@arkyn/components 1.3.22 → 1.3.24

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.
Files changed (40) hide show
  1. package/dist/bundle.js +380 -378
  2. package/dist/bundle.umd.cjs +8 -8
  3. package/dist/components/Select/index.d.ts.map +1 -1
  4. package/dist/components/Select/index.js +17 -8
  5. package/dist/hooks/useAutomation.d.ts.map +1 -1
  6. package/dist/hooks/useAutomation.js +2 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/newComponents/Modal/Container/index.d.ts.map +1 -0
  11. package/dist/newComponents/Modal/Footer/index.d.ts.map +1 -0
  12. package/dist/newComponents/Modal/Header/index.d.ts.map +1 -0
  13. package/dist/newComponents/Modal/index.d.ts.map +1 -0
  14. package/dist/style.css +1 -1
  15. package/dist/utils/generateIcon.d.ts.map +1 -1
  16. package/package.json +1 -1
  17. package/src/components/Select/index.tsx +24 -11
  18. package/src/components/Select/styles.css +8 -8
  19. package/src/hooks/useAutomation.ts +2 -1
  20. package/src/index.ts +1 -1
  21. package/src/{components → newComponents}/Modal/Container/styles.css +1 -1
  22. package/src/{components → newComponents}/Modal/Footer/styles.css +1 -1
  23. package/src/{components → newComponents}/Modal/Header/styles.css +5 -4
  24. package/src/utils/generateIcon.tsx +0 -1
  25. package/dist/components/Modal/Container/index.d.ts.map +0 -1
  26. package/dist/components/Modal/Footer/index.d.ts.map +0 -1
  27. package/dist/components/Modal/Header/index.d.ts.map +0 -1
  28. package/dist/components/Modal/index.d.ts.map +0 -1
  29. /package/dist/{components → newComponents}/Modal/Container/index.d.ts +0 -0
  30. /package/dist/{components → newComponents}/Modal/Container/index.js +0 -0
  31. /package/dist/{components → newComponents}/Modal/Footer/index.d.ts +0 -0
  32. /package/dist/{components → newComponents}/Modal/Footer/index.js +0 -0
  33. /package/dist/{components → newComponents}/Modal/Header/index.d.ts +0 -0
  34. /package/dist/{components → newComponents}/Modal/Header/index.js +0 -0
  35. /package/dist/{components → newComponents}/Modal/index.d.ts +0 -0
  36. /package/dist/{components → newComponents}/Modal/index.js +0 -0
  37. /package/src/{components → newComponents}/Modal/Container/index.tsx +0 -0
  38. /package/src/{components → newComponents}/Modal/Footer/index.tsx +0 -0
  39. /package/src/{components → newComponents}/Modal/Header/index.tsx +0 -0
  40. /package/src/{components → newComponents}/Modal/index.ts +0 -0
package/dist/bundle.js CHANGED
@@ -1,4 +1,4 @@
1
- import f, { createContext as qe, useRef as $e, useId as At, useContext as Be, useState as pe, forwardRef as Wt, useEffect as mt } from "react";
1
+ import f, { createContext as qe, useRef as Te, useId as At, useContext as Be, useState as ge, forwardRef as Wt, useEffect as mt } from "react";
2
2
  import { Loader2 as je, Check as Et, ChevronDown as Vt, ChevronRight as pt, X as Yt } from "lucide-react";
3
3
  import { useActionData as kt, useLocation as St, Link as Ut } from "@remix-run/react";
4
4
  import { InputMask as Ht } from "@react-input/mask";
@@ -41,11 +41,11 @@ var Me = {};
41
41
  var bt;
42
42
  function qt() {
43
43
  return bt || (bt = 1, process.env.NODE_ENV !== "production" && function() {
44
- var t = f, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), I = Symbol.iterator, j = "@@iterator";
44
+ var t = f, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), h = Symbol.for("react.provider"), s = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), a = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), I = Symbol.iterator, S = "@@iterator";
45
45
  function P(e) {
46
46
  if (e === null || typeof e != "object")
47
47
  return null;
48
- var i = I && e[I] || e[j];
48
+ var i = I && e[I] || e[S];
49
49
  return typeof i == "function" ? i : null;
50
50
  }
51
51
  var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
@@ -60,20 +60,20 @@ function qt() {
60
60
  {
61
61
  var x = b.ReactDebugCurrentFrame, F = x.getStackAddendum();
62
62
  F !== "" && (i += "%s", m = m.concat([F]));
63
- var V = m.map(function($) {
64
- return String($);
63
+ var V = m.map(function(T) {
64
+ return String(T);
65
65
  });
66
66
  V.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, V);
67
67
  }
68
68
  }
69
- var L = !1, R = !1, A = !1, U = !1, M = !1, J;
70
- J = Symbol.for("react.module.reference");
71
- function X(e) {
69
+ var L = !1, R = !1, A = !1, U = !1, M = !1, q;
70
+ q = Symbol.for("react.module.reference");
71
+ function G(e) {
72
72
  return !!(typeof e == "string" || typeof e == "function" || e === o || e === c || M || e === l || e === p || e === g || U || e === v || L || R || A || typeof e == "object" && e !== null && (e.$$typeof === a || e.$$typeof === w || e.$$typeof === h || e.$$typeof === s || e.$$typeof === d || // 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
- e.$$typeof === J || e.getModuleId !== void 0));
76
+ e.$$typeof === q || e.getModuleId !== void 0));
77
77
  }
78
78
  function O(e, i, m) {
79
79
  var x = e.displayName;
@@ -82,10 +82,10 @@ function qt() {
82
82
  var F = i.displayName || i.name || "";
83
83
  return F !== "" ? m + "(" + F + ")" : m;
84
84
  }
85
- function G(e) {
85
+ function Q(e) {
86
86
  return e.displayName || "Context";
87
87
  }
88
- function C(e) {
88
+ function k(e) {
89
89
  if (e == null)
90
90
  return null;
91
91
  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")
@@ -110,19 +110,19 @@ function qt() {
110
110
  switch (e.$$typeof) {
111
111
  case s:
112
112
  var i = e;
113
- return G(i) + ".Consumer";
113
+ return Q(i) + ".Consumer";
114
114
  case h:
115
115
  var m = e;
116
- return G(m._context) + ".Provider";
116
+ return Q(m._context) + ".Provider";
117
117
  case d:
118
118
  return O(e, e.render, "ForwardRef");
119
119
  case w:
120
120
  var x = e.displayName || null;
121
- return x !== null ? x : C(e.type) || "Memo";
121
+ return x !== null ? x : k(e.type) || "Memo";
122
122
  case a: {
123
- var F = e, V = F._payload, $ = F._init;
123
+ var F = e, V = F._payload, T = F._init;
124
124
  try {
125
- return C($(V));
125
+ return k(T(V));
126
126
  } catch {
127
127
  return null;
128
128
  }
@@ -130,18 +130,18 @@ function qt() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var K = Object.assign, z = 0, W, Z, N, Q, de, _, S;
134
- function E() {
133
+ var J = Object.assign, z = 0, W, ee, N, te, fe, $, C;
134
+ function j() {
135
135
  }
136
- E.__reactDisabledLog = !0;
137
- function re() {
136
+ j.__reactDisabledLog = !0;
137
+ function K() {
138
138
  {
139
139
  if (z === 0) {
140
- W = console.log, Z = console.info, N = console.warn, Q = console.error, de = console.group, _ = console.groupCollapsed, S = console.groupEnd;
140
+ W = console.log, ee = console.info, N = console.warn, te = console.error, fe = console.group, $ = console.groupCollapsed, C = console.groupEnd;
141
141
  var e = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
- value: E,
144
+ value: j,
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
@@ -157,7 +157,7 @@ function qt() {
157
157
  z++;
158
158
  }
159
159
  }
160
- function ee() {
160
+ function ne() {
161
161
  {
162
162
  if (z--, z === 0) {
163
163
  var e = {
@@ -166,121 +166,121 @@ function qt() {
166
166
  writable: !0
167
167
  };
168
168
  Object.defineProperties(console, {
169
- log: K({}, e, {
169
+ log: J({}, e, {
170
170
  value: W
171
171
  }),
172
- info: K({}, e, {
173
- value: Z
172
+ info: J({}, e, {
173
+ value: ee
174
174
  }),
175
- warn: K({}, e, {
175
+ warn: J({}, e, {
176
176
  value: N
177
177
  }),
178
- error: K({}, e, {
179
- value: Q
178
+ error: J({}, e, {
179
+ value: te
180
180
  }),
181
- group: K({}, e, {
182
- value: de
181
+ group: J({}, e, {
182
+ value: fe
183
183
  }),
184
- groupCollapsed: K({}, e, {
185
- value: _
184
+ groupCollapsed: J({}, e, {
185
+ value: $
186
186
  }),
187
- groupEnd: K({}, e, {
188
- value: S
187
+ groupEnd: J({}, e, {
188
+ value: C
189
189
  })
190
190
  });
191
191
  }
192
192
  z < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var Y = b.ReactCurrentDispatcher, ne;
196
- function oe(e, i, m) {
195
+ var Y = b.ReactCurrentDispatcher, ve;
196
+ function X(e, i, m) {
197
197
  {
198
- if (ne === void 0)
198
+ if (ve === void 0)
199
199
  try {
200
200
  throw Error();
201
201
  } catch (F) {
202
202
  var x = F.stack.trim().match(/\n( *(at )?)/);
203
- ne = x && x[1] || "";
203
+ ve = x && x[1] || "";
204
204
  }
205
205
  return `
206
- ` + ne + e;
206
+ ` + ve + e;
207
207
  }
208
208
  }
209
- var be = !1, ge;
209
+ var oe = !1, le;
210
210
  {
211
211
  var Ge = typeof WeakMap == "function" ? WeakMap : Map;
212
- ge = new Ge();
212
+ le = new Ge();
213
213
  }
214
214
  function Ne(e, i) {
215
- if (!e || be)
215
+ if (!e || oe)
216
216
  return "";
217
217
  {
218
- var m = ge.get(e);
218
+ var m = le.get(e);
219
219
  if (m !== void 0)
220
220
  return m;
221
221
  }
222
222
  var x;
223
- be = !0;
223
+ oe = !0;
224
224
  var F = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
226
  var V;
227
- V = Y.current, Y.current = null, re();
227
+ V = Y.current, Y.current = null, K();
228
228
  try {
229
229
  if (i) {
230
- var $ = function() {
230
+ var T = function() {
231
231
  throw Error();
232
232
  };
233
- if (Object.defineProperty($.prototype, "props", {
233
+ if (Object.defineProperty(T.prototype, "props", {
234
234
  set: function() {
235
235
  throw Error();
236
236
  }
237
237
  }), typeof Reflect == "object" && Reflect.construct) {
238
238
  try {
239
- Reflect.construct($, []);
240
- } catch (ce) {
241
- x = ce;
239
+ Reflect.construct(T, []);
240
+ } catch (ue) {
241
+ x = ue;
242
242
  }
243
- Reflect.construct(e, [], $);
243
+ Reflect.construct(e, [], T);
244
244
  } else {
245
245
  try {
246
- $.call();
247
- } catch (ce) {
248
- x = ce;
246
+ T.call();
247
+ } catch (ue) {
248
+ x = ue;
249
249
  }
250
- e.call($.prototype);
250
+ e.call(T.prototype);
251
251
  }
252
252
  } else {
253
253
  try {
254
254
  throw Error();
255
- } catch (ce) {
256
- x = ce;
255
+ } catch (ue) {
256
+ x = ue;
257
257
  }
258
258
  e();
259
259
  }
260
- } catch (ce) {
261
- if (ce && x && typeof ce.stack == "string") {
262
- for (var T = ce.stack.split(`
260
+ } catch (ue) {
261
+ if (ue && x && typeof ue.stack == "string") {
262
+ for (var _ = ue.stack.split(`
263
263
  `), ie = x.stack.split(`
264
- `), q = T.length - 1, te = ie.length - 1; q >= 1 && te >= 0 && T[q] !== ie[te]; )
265
- te--;
266
- for (; q >= 1 && te >= 0; q--, te--)
267
- if (T[q] !== ie[te]) {
268
- if (q !== 1 || te !== 1)
264
+ `), Z = _.length - 1, re = ie.length - 1; Z >= 1 && re >= 0 && _[Z] !== ie[re]; )
265
+ re--;
266
+ for (; Z >= 1 && re >= 0; Z--, re--)
267
+ if (_[Z] !== ie[re]) {
268
+ if (Z !== 1 || re !== 1)
269
269
  do
270
- if (q--, te--, te < 0 || T[q] !== ie[te]) {
271
- var me = `
272
- ` + T[q].replace(" at new ", " at ");
273
- return e.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", e.displayName)), typeof e == "function" && ge.set(e, me), me;
270
+ if (Z--, re--, re < 0 || _[Z] !== ie[re]) {
271
+ var pe = `
272
+ ` + _[Z].replace(" at new ", " at ");
273
+ return e.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", e.displayName)), typeof e == "function" && le.set(e, pe), pe;
274
274
  }
275
- while (q >= 1 && te >= 0);
275
+ while (Z >= 1 && re >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- be = !1, Y.current = V, ee(), Error.prepareStackTrace = F;
280
+ oe = !1, Y.current = V, ne(), Error.prepareStackTrace = F;
281
281
  }
282
- var Te = e ? e.displayName || e.name : "", Ce = Te ? oe(Te) : "";
283
- return typeof e == "function" && ge.set(e, Ce), Ce;
282
+ var $e = e ? e.displayName || e.name : "", Ce = $e ? X($e) : "";
283
+ return typeof e == "function" && le.set(e, Ce), Ce;
284
284
  }
285
285
  function Ze(e, i, m) {
286
286
  return Ne(e, !1);
@@ -295,12 +295,12 @@ function qt() {
295
295
  if (typeof e == "function")
296
296
  return Ne(e, De(e));
297
297
  if (typeof e == "string")
298
- return oe(e);
298
+ return X(e);
299
299
  switch (e) {
300
300
  case p:
301
- return oe("Suspense");
301
+ return X("Suspense");
302
302
  case g:
303
- return oe("SuspenseList");
303
+ return X("SuspenseList");
304
304
  }
305
305
  if (typeof e == "object")
306
306
  switch (e.$$typeof) {
@@ -318,7 +318,7 @@ function qt() {
318
318
  }
319
319
  return "";
320
320
  }
321
- var fe = Object.prototype.hasOwnProperty, Ae = {}, We = b.ReactDebugCurrentFrame;
321
+ var he = Object.prototype.hasOwnProperty, Ae = {}, We = b.ReactDebugCurrentFrame;
322
322
  function ae(e) {
323
323
  if (e) {
324
324
  var i = e._owner, m = Se(e.type, e._source, i ? i.type : null);
@@ -328,20 +328,20 @@ function qt() {
328
328
  }
329
329
  function xe(e, i, m, x, F) {
330
330
  {
331
- var V = Function.call.bind(fe);
332
- for (var $ in e)
333
- if (V(e, $)) {
334
- var T = void 0;
331
+ var V = Function.call.bind(he);
332
+ for (var T in e)
333
+ if (V(e, T)) {
334
+ var _ = void 0;
335
335
  try {
336
- if (typeof e[$] != "function") {
337
- var ie = Error((x || "React class") + ": " + m + " type `" + $ + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[$] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
+ if (typeof e[T] != "function") {
337
+ var ie = Error((x || "React class") + ": " + m + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
338
  throw ie.name = "Invariant Violation", ie;
339
339
  }
340
- T = e[$](i, $, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (q) {
342
- T = q;
340
+ _ = e[T](i, T, x, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (Z) {
342
+ _ = Z;
343
343
  }
344
- T && !(T instanceof Error) && (ae(F), 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).", x || "React class", m, $, typeof T), ae(null)), T instanceof Error && !(T.message in Ae) && (Ae[T.message] = !0, ae(F), y("Failed %s type: %s", m, T.message), ae(null));
344
+ _ && !(_ instanceof Error) && (ae(F), 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).", x || "React class", m, T, typeof _), ae(null)), _ instanceof Error && !(_.message in Ae) && (Ae[_.message] = !0, ae(F), y("Failed %s type: %s", m, _.message), ae(null));
345
345
  }
346
346
  }
347
347
  }
@@ -369,7 +369,7 @@ function qt() {
369
369
  if (et(e))
370
370
  return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Re(e)), Pe(e);
371
371
  }
372
- var he = b.ReactCurrentOwner, Ve = {
372
+ var me = b.ReactCurrentOwner, Ve = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
@@ -377,7 +377,7 @@ function qt() {
377
377
  }, ye, Oe, ze;
378
378
  ze = {};
379
379
  function Ye(e) {
380
- if (fe.call(e, "ref")) {
380
+ if (he.call(e, "ref")) {
381
381
  var i = Object.getOwnPropertyDescriptor(e, "ref").get;
382
382
  if (i && i.isReactWarning)
383
383
  return !1;
@@ -385,7 +385,7 @@ function qt() {
385
385
  return e.ref !== void 0;
386
386
  }
387
387
  function Ue(e) {
388
- if (fe.call(e, "key")) {
388
+ if (he.call(e, "key")) {
389
389
  var i = Object.getOwnPropertyDescriptor(e, "key").get;
390
390
  if (i && i.isReactWarning)
391
391
  return !1;
@@ -393,9 +393,9 @@ function qt() {
393
393
  return e.key !== void 0;
394
394
  }
395
395
  function tt(e, i) {
396
- if (typeof e.ref == "string" && he.current && i && he.current.stateNode !== i) {
397
- var m = C(he.current.type);
398
- ze[m] || (y('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', C(he.current.type), e.ref), ze[m] = !0);
396
+ if (typeof e.ref == "string" && me.current && i && me.current.stateNode !== i) {
397
+ var m = k(me.current.type);
398
+ ze[m] || (y('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', k(me.current.type), e.ref), ze[m] = !0);
399
399
  }
400
400
  }
401
401
  function Fe(e, i) {
@@ -409,7 +409,7 @@ function qt() {
409
409
  });
410
410
  }
411
411
  }
412
- function ve(e, i) {
412
+ function be(e, i) {
413
413
  {
414
414
  var m = function() {
415
415
  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)", i));
@@ -420,51 +420,51 @@ function qt() {
420
420
  });
421
421
  }
422
422
  }
423
- var rt = function(e, i, m, x, F, V, $) {
424
- var T = {
423
+ var rt = function(e, i, m, x, F, V, T) {
424
+ var _ = {
425
425
  // This tag allows us to uniquely identify this as a React Element
426
426
  $$typeof: r,
427
427
  // Built-in properties that belong on the element
428
428
  type: e,
429
429
  key: i,
430
430
  ref: m,
431
- props: $,
431
+ props: T,
432
432
  // Record the component responsible for creating this element.
433
433
  _owner: V
434
434
  };
435
- return T._store = {}, Object.defineProperty(T._store, "validated", {
435
+ return _._store = {}, Object.defineProperty(_._store, "validated", {
436
436
  configurable: !1,
437
437
  enumerable: !1,
438
438
  writable: !0,
439
439
  value: !1
440
- }), Object.defineProperty(T, "_self", {
440
+ }), Object.defineProperty(_, "_self", {
441
441
  configurable: !1,
442
442
  enumerable: !1,
443
443
  writable: !1,
444
444
  value: x
445
- }), Object.defineProperty(T, "_source", {
445
+ }), Object.defineProperty(_, "_source", {
446
446
  configurable: !1,
447
447
  enumerable: !1,
448
448
  writable: !1,
449
449
  value: F
450
- }), Object.freeze && (Object.freeze(T.props), Object.freeze(T)), T;
450
+ }), Object.freeze && (Object.freeze(_.props), Object.freeze(_)), _;
451
451
  };
452
- function k(e, i, m, x, F) {
452
+ function E(e, i, m, x, F) {
453
453
  {
454
- var V, $ = {}, T = null, ie = null;
455
- m !== void 0 && (_e(m), T = "" + m), Ue(i) && (_e(i.key), T = "" + i.key), Ye(i) && (ie = i.ref, tt(i, F));
454
+ var V, T = {}, _ = null, ie = null;
455
+ m !== void 0 && (_e(m), _ = "" + m), Ue(i) && (_e(i.key), _ = "" + i.key), Ye(i) && (ie = i.ref, tt(i, F));
456
456
  for (V in i)
457
- fe.call(i, V) && !Ve.hasOwnProperty(V) && ($[V] = i[V]);
457
+ he.call(i, V) && !Ve.hasOwnProperty(V) && (T[V] = i[V]);
458
458
  if (e && e.defaultProps) {
459
- var q = e.defaultProps;
460
- for (V in q)
461
- $[V] === void 0 && ($[V] = q[V]);
459
+ var Z = e.defaultProps;
460
+ for (V in Z)
461
+ T[V] === void 0 && (T[V] = Z[V]);
462
462
  }
463
- if (T || ie) {
464
- var te = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
- T && Fe($, te), ie && ve($, te);
463
+ if (_ || ie) {
464
+ var re = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
465
+ _ && Fe(T, re), ie && be(T, re);
466
466
  }
467
- return rt(e, T, ie, F, x, he.current, $);
467
+ return rt(e, _, ie, F, x, me.current, T);
468
468
  }
469
469
  }
470
470
  var B = b.ReactCurrentOwner, D = b.ReactDebugCurrentFrame;
@@ -475,15 +475,15 @@ function qt() {
475
475
  } else
476
476
  D.setExtraStackFrame(null);
477
477
  }
478
- var le;
479
- le = !1;
478
+ var ce;
479
+ ce = !1;
480
480
  function we(e) {
481
481
  return typeof e == "object" && e !== null && e.$$typeof === r;
482
482
  }
483
483
  function He() {
484
484
  {
485
485
  if (B.current) {
486
- var e = C(B.current.type);
486
+ var e = k(B.current.type);
487
487
  if (e)
488
488
  return `
489
489
 
@@ -492,7 +492,7 @@ Check the render method of \`` + e + "`.";
492
492
  return "";
493
493
  }
494
494
  }
495
- function $t(e) {
495
+ function Tt(e) {
496
496
  {
497
497
  if (e !== void 0) {
498
498
  var i = e.fileName.replace(/^.*[\\\/]/, ""), m = e.lineNumber;
@@ -526,7 +526,7 @@ Check the top-level render call using <` + m + ">.");
526
526
  return;
527
527
  ct[m] = !0;
528
528
  var x = "";
529
- e && e._owner && e._owner !== B.current && (x = " It was passed a child from " + C(e._owner.type) + "."), se(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.', m, x), se(null);
529
+ e && e._owner && e._owner !== B.current && (x = " It was passed a child from " + k(e._owner.type) + "."), se(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.', m, x), se(null);
530
530
  }
531
531
  }
532
532
  function dt(e, i) {
@@ -543,8 +543,8 @@ Check the top-level render call using <` + m + ">.");
543
543
  else if (e) {
544
544
  var F = P(e);
545
545
  if (typeof F == "function" && F !== e.entries)
546
- for (var V = F.call(e), $; !($ = V.next()).done; )
547
- we($.value) && ut($.value, i);
546
+ for (var V = F.call(e), T; !(T = V.next()).done; )
547
+ we(T.value) && ut(T.value, i);
548
548
  }
549
549
  }
550
550
  }
@@ -563,11 +563,11 @@ Check the top-level render call using <` + m + ">.");
563
563
  else
564
564
  return;
565
565
  if (m) {
566
- var x = C(i);
566
+ var x = k(i);
567
567
  xe(m, e.props, "prop", x, e);
568
- } else if (i.PropTypes !== void 0 && !le) {
569
- le = !0;
570
- var F = C(i);
568
+ } else if (i.PropTypes !== void 0 && !ce) {
569
+ ce = !0;
570
+ var F = k(i);
571
571
  y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", F || "Unknown");
572
572
  }
573
573
  typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
@@ -588,37 +588,37 @@ Check the top-level render call using <` + m + ">.");
588
588
  var ft = {};
589
589
  function ht(e, i, m, x, F, V) {
590
590
  {
591
- var $ = X(e);
592
- if (!$) {
593
- var T = "";
594
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).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 ie = $t(F);
596
- ie ? T += ie : T += He();
597
- var q;
598
- e === null ? q = "null" : Ie(e) ? q = "array" : e !== void 0 && e.$$typeof === r ? (q = "<" + (C(e.type) || "Unknown") + " />", T = " Did you accidentally export a JSX literal instead of a component?") : q = 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", q, T);
591
+ var T = G(e);
592
+ if (!T) {
593
+ var _ = "";
594
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (_ += " 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 = Tt(F);
596
+ ie ? _ += ie : _ += He();
597
+ var Z;
598
+ e === null ? Z = "null" : Ie(e) ? Z = "array" : e !== void 0 && e.$$typeof === r ? (Z = "<" + (k(e.type) || "Unknown") + " />", _ = " Did you accidentally export a JSX literal instead of a component?") : Z = 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", Z, _);
599
599
  }
600
- var te = k(e, i, m, F, V);
601
- if (te == null)
602
- return te;
603
- if ($) {
604
- var me = i.children;
605
- if (me !== void 0)
600
+ var re = E(e, i, m, F, V);
601
+ if (re == null)
602
+ return re;
603
+ if (T) {
604
+ var pe = i.children;
605
+ if (pe !== void 0)
606
606
  if (x)
607
- if (Ie(me)) {
608
- for (var Te = 0; Te < me.length; Te++)
609
- dt(me[Te], e);
610
- Object.freeze && Object.freeze(me);
607
+ if (Ie(pe)) {
608
+ for (var $e = 0; $e < pe.length; $e++)
609
+ dt(pe[$e], e);
610
+ Object.freeze && Object.freeze(pe);
611
611
  } else
612
612
  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.");
613
613
  else
614
- dt(me, e);
614
+ dt(pe, e);
615
615
  }
616
- if (fe.call(i, "key")) {
617
- var Ce = C(e), ce = Object.keys(i).filter(function(Dt) {
616
+ if (he.call(i, "key")) {
617
+ var Ce = k(e), ue = Object.keys(i).filter(function(Dt) {
618
618
  return Dt !== "key";
619
- }), nt = ce.length > 0 ? "{key: someKey, " + ce.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ }), nt = ue.length > 0 ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}";
620
620
  if (!ft[Ce + nt]) {
621
- var Bt = ce.length > 0 ? "{" + ce.join(": ..., ") + ": ...}" : "{}";
621
+ var Bt = ue.length > 0 ? "{" + ue.join(": ..., ") + ": ...}" : "{}";
622
622
  y(`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} />`, nt, Ce, Bt, Ce), ft[Ce + nt] = !0;
628
628
  }
629
629
  }
630
- return e === o ? Ot(te) : Pt(te), te;
630
+ return e === o ? Ot(re) : Pt(re), re;
631
631
  }
632
632
  }
633
633
  function zt(e, i, m) {
@@ -726,7 +726,7 @@ function en(t) {
726
726
  const Ct = qe({});
727
727
  function tn({ children: t, ...r }) {
728
728
  var s, d;
729
- const n = kt(), o = $e(null), l = ((s = o.current) == null ? void 0 : s.name) || "", c = ((d = n == null ? void 0 : n.fieldErrors) == null ? void 0 : d[l]) || null, h = At();
729
+ const n = kt(), o = Te(null), l = ((s = o.current) == null ? void 0 : s.name) || "", c = ((d = n == null ? void 0 : n.fieldErrors) == null ? void 0 : d[l]) || null, h = At();
730
730
  return /* @__PURE__ */ u.jsx(Ct.Provider, { value: { error: c, id: h, inputRef: o }, children: /* @__PURE__ */ u.jsx("section", { className: "arkyn_form_controller", ...r, children: t }) });
731
731
  }
732
732
  function ke() {
@@ -743,10 +743,10 @@ function rn(t) {
743
743
  onCheck: s,
744
744
  value: d,
745
745
  ...p
746
- } = t, { id: g, inputRef: w, error: a } = ke(), v = l || !!a, [I, j] = pe(c || !1), P = typeof h == "boolean" ? h : I, b = `arkyn_checkbox ${o} ${v ? "error" : ""} ${P ? "checked" : ""} ${n}`;
746
+ } = t, { id: g, inputRef: w, error: a } = ke(), v = l || !!a, [I, S] = ge(c || !1), P = typeof h == "boolean" ? h : I, b = `arkyn_checkbox ${o} ${v ? "error" : ""} ${P ? "checked" : ""} ${n}`;
747
747
  function y() {
748
748
  const H = I;
749
- j(!H), s && s(H ? "" : d || "checked");
749
+ S(!H), s && s(H ? "" : d || "checked");
750
750
  }
751
751
  return /* @__PURE__ */ u.jsxs("div", { id: g, className: b, onClick: y, ...p, children: [
752
752
  /* @__PURE__ */ u.jsx(
@@ -843,49 +843,49 @@ function er(t, r) {
843
843
  defaultValue: a,
844
844
  readOnly: v,
845
845
  onFocus: I,
846
- onBlur: j,
846
+ onBlur: S,
847
847
  title: P,
848
848
  style: b,
849
849
  onChange: y,
850
850
  ...H
851
851
  } = t;
852
- function L(K) {
853
- let z = ot(K);
852
+ function L(J) {
853
+ let z = ot(J);
854
854
  const W = Nt(z);
855
855
  if (!(z.length > Rt))
856
856
  return z = jt(z, it[W]), z;
857
857
  }
858
- const R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || v || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, C = { md: 20, lg: 20 }[l];
858
+ const R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || v || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, k = { md: 20, lg: 20 }[l];
859
859
  return {
860
860
  isLoading: n,
861
861
  className: O,
862
- prefix: Ee(s, C, "prefix"),
863
- sufix: Ee(d, C, "sufix"),
862
+ prefix: Ee(s, k, "prefix"),
863
+ sufix: Ee(d, k, "sufix"),
864
864
  LeftIcon: p,
865
865
  RightIcon: g,
866
866
  defaultValue: L(a || ""),
867
867
  disabled: w,
868
868
  readOnly: v,
869
869
  onFocus: I,
870
- onBlur: j,
870
+ onBlur: S,
871
871
  title: P,
872
872
  style: b,
873
873
  onChange: y,
874
874
  loadingPosition: R,
875
- iconSize: C,
876
- Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: C, strokeWidth: 2.5 }),
875
+ iconSize: k,
876
+ Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: k, strokeWidth: 2.5 }),
877
877
  ...H
878
878
  };
879
879
  }
880
880
  function tr(t) {
881
- const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
881
+ const [r, n] = ge(!1), o = Te(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
882
882
  disabled: p,
883
883
  title: g,
884
884
  style: w,
885
885
  className: a,
886
886
  prefix: v,
887
887
  sufix: I,
888
- iconSize: j,
888
+ iconSize: S,
889
889
  loadingPosition: P,
890
890
  isLoading: b,
891
891
  LeftIcon: y,
@@ -895,23 +895,23 @@ function tr(t) {
895
895
  RightIcon: A,
896
896
  Spinner: U,
897
897
  onChange: M,
898
- value: J,
899
- defaultValue: X,
898
+ value: q,
899
+ defaultValue: G,
900
900
  ...O
901
- } = er({ ...t, id: c, isError: d }, r), [G, C] = pe(X), K = y && !b, z = A && !b, W = P === "left" && b, Z = P === "right" && b;
901
+ } = er({ ...t, id: c, isError: d }, r), [Q, k] = ge(G), J = y && !b, z = A && !b, W = P === "left" && b, ee = P === "right" && b;
902
902
  function N() {
903
903
  p || !(s != null && s.current) || (n(!0), s.current.focus());
904
904
  }
905
- function Q(S) {
906
- let E = ot(S.target.value);
907
- const re = Nt(E);
908
- E.length > Rt || (E = jt(E, it[re]), S.target.value = E, C(E), M && M(S));
905
+ function te(C) {
906
+ let j = ot(C.target.value);
907
+ const K = Nt(j);
908
+ j.length > Rt || (j = jt(j, it[K]), C.target.value = j, k(j), M && M(C));
909
909
  }
910
- function de(S) {
911
- n(!0), L && L(S);
910
+ function fe(C) {
911
+ n(!0), L && L(C);
912
912
  }
913
- function _(S) {
914
- n(!1), R && R(S);
913
+ function $(C) {
914
+ n(!1), R && R(C);
915
915
  }
916
916
  return /* @__PURE__ */ u.jsxs(
917
917
  "section",
@@ -923,22 +923,22 @@ function tr(t) {
923
923
  children: [
924
924
  v,
925
925
  W && U,
926
- K && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
926
+ J && /* @__PURE__ */ u.jsx(y, { size: S, strokeWidth: 2.5 }),
927
927
  /* @__PURE__ */ u.jsx(
928
928
  "input",
929
929
  {
930
930
  disabled: p || b,
931
931
  readOnly: H,
932
932
  ref: s,
933
- value: J || G,
934
- onFocus: de,
935
- onChange: Q,
936
- onBlur: _,
933
+ value: q || Q,
934
+ onFocus: fe,
935
+ onChange: te,
936
+ onBlur: $,
937
937
  ...O
938
938
  }
939
939
  ),
940
- z && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
941
- Z && U,
940
+ z && /* @__PURE__ */ u.jsx(A, { size: S, strokeWidth: 2.5 }),
941
+ ee && U,
942
942
  I
943
943
  ]
944
944
  }
@@ -959,32 +959,32 @@ function rr(t, r) {
959
959
  readOnly: a,
960
960
  onFocus: v,
961
961
  onBlur: I,
962
- title: j,
962
+ title: S,
963
963
  style: P,
964
964
  showCents: b = !1,
965
965
  max: y = 1e9,
966
966
  onChange: H,
967
967
  ...L
968
- } = t, R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, C = { md: 20, lg: 20 }[l];
968
+ } = t, R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, k = { md: 20, lg: 20 }[l];
969
969
  return {
970
970
  isLoading: n,
971
971
  className: O,
972
- prefix: Ee(s, C, "prefix"),
973
- sufix: Ee(d, C, "sufix"),
972
+ prefix: Ee(s, k, "prefix"),
973
+ sufix: Ee(d, k, "sufix"),
974
974
  LeftIcon: p,
975
975
  RightIcon: g,
976
976
  disabled: w,
977
977
  readOnly: a,
978
978
  onFocus: v,
979
979
  onBlur: I,
980
- title: j,
980
+ title: S,
981
981
  style: P,
982
982
  max: y,
983
983
  onChange: H,
984
984
  showCents: b,
985
985
  loadingPosition: R,
986
- iconSize: C,
987
- Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: C, strokeWidth: 2.5 }),
986
+ iconSize: k,
987
+ Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: k, strokeWidth: 2.5 }),
988
988
  ...L
989
989
  };
990
990
  }
@@ -1013,14 +1013,14 @@ function or(t) {
1013
1013
  d > Number(o) || l(d);
1014
1014
  }
1015
1015
  function ir(t) {
1016
- const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
1016
+ const [r, n] = ge(!1), o = Te(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
1017
1017
  disabled: p,
1018
1018
  title: g,
1019
1019
  style: w,
1020
1020
  className: a,
1021
1021
  prefix: v,
1022
1022
  sufix: I,
1023
- iconSize: j,
1023
+ iconSize: S,
1024
1024
  loadingPosition: P,
1025
1025
  isLoading: b,
1026
1026
  LeftIcon: y,
@@ -1030,53 +1030,53 @@ function ir(t) {
1030
1030
  RightIcon: A,
1031
1031
  Spinner: U,
1032
1032
  value: M,
1033
- max: J,
1034
- onKeyDown: X,
1033
+ max: q,
1034
+ onKeyDown: G,
1035
1035
  onChange: O,
1036
- showCents: G,
1037
- defaultValue: C,
1038
- ...K
1039
- } = rr({ ...t, id: c, isError: d }, r), [z, W] = pe(C * 100 || 0), Z = y && !b, N = A && !b, Q = P === "left" && b, de = P === "right" && b;
1040
- function _() {
1036
+ showCents: Q,
1037
+ defaultValue: k,
1038
+ ...J
1039
+ } = rr({ ...t, id: c, isError: d }, r), [z, W] = ge(k * 100 || 0), ee = y && !b, N = A && !b, te = P === "left" && b, fe = P === "right" && b;
1040
+ function $() {
1041
1041
  p || !(s != null && s.current) || (n(!0), s.current.focus());
1042
1042
  }
1043
- function S(ee) {
1044
- or({ currencyValue: z, event: ee, max: J, setCurrencyValue: W }), O && O(z / 100), X && X(ee);
1043
+ function C(ne) {
1044
+ or({ currencyValue: z, event: ne, max: q, setCurrencyValue: W }), O && O(z / 100), G && G(ne);
1045
1045
  }
1046
- function E(ee) {
1047
- n(!0), L && L(ee);
1046
+ function j(ne) {
1047
+ n(!0), L && L(ne);
1048
1048
  }
1049
- function re(ee) {
1050
- n(!1), R && R(ee);
1049
+ function K(ne) {
1050
+ n(!1), R && R(ne);
1051
1051
  }
1052
1052
  return /* @__PURE__ */ u.jsxs(
1053
1053
  "section",
1054
1054
  {
1055
1055
  title: g,
1056
1056
  style: w,
1057
- onClick: _,
1057
+ onClick: $,
1058
1058
  className: a,
1059
1059
  children: [
1060
1060
  v,
1061
- Q && U,
1062
- Z && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
1061
+ te && U,
1062
+ ee && /* @__PURE__ */ u.jsx(y, { size: S, strokeWidth: 2.5 }),
1063
1063
  /* @__PURE__ */ u.jsx(
1064
1064
  "input",
1065
1065
  {
1066
- value: sr(M || z, G),
1067
- onKeyDown: S,
1066
+ value: sr(M || z, Q),
1067
+ onKeyDown: C,
1068
1068
  disabled: p || b,
1069
1069
  readOnly: H,
1070
1070
  ref: s,
1071
- onFocus: E,
1072
- onBlur: re,
1071
+ onFocus: j,
1072
+ onBlur: K,
1073
1073
  onChange: () => {
1074
1074
  },
1075
- ...K
1075
+ ...J
1076
1076
  }
1077
1077
  ),
1078
- de && U,
1079
- N && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
1078
+ fe && U,
1079
+ N && /* @__PURE__ */ u.jsx(A, { size: S, strokeWidth: 2.5 }),
1080
1080
  I
1081
1081
  ]
1082
1082
  }
@@ -1097,44 +1097,44 @@ function lr(t, r) {
1097
1097
  readOnly: a,
1098
1098
  onFocus: v,
1099
1099
  onBlur: I,
1100
- title: j,
1100
+ title: S,
1101
1101
  style: P,
1102
1102
  onChange: b,
1103
1103
  showMask: y = !1,
1104
1104
  type: H,
1105
1105
  ...L
1106
- } = t, R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, C = { md: 20, lg: 20 }[l];
1106
+ } = t, R = g ? "right" : "left", O = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, k = { md: 20, lg: 20 }[l];
1107
1107
  return {
1108
1108
  isLoading: n,
1109
1109
  className: O,
1110
- prefix: Ee(s, C, "prefix"),
1111
- sufix: Ee(d, C, "sufix"),
1110
+ prefix: Ee(s, k, "prefix"),
1111
+ sufix: Ee(d, k, "sufix"),
1112
1112
  LeftIcon: p,
1113
1113
  RightIcon: g,
1114
1114
  disabled: w,
1115
1115
  readOnly: a,
1116
1116
  onFocus: v,
1117
1117
  onBlur: I,
1118
- title: j,
1118
+ title: S,
1119
1119
  style: P,
1120
1120
  onChange: b,
1121
1121
  loadingPosition: R,
1122
- iconSize: C,
1122
+ iconSize: k,
1123
1123
  showMask: y,
1124
- Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: C, strokeWidth: 2.5 }),
1124
+ Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: k, strokeWidth: 2.5 }),
1125
1125
  ...L
1126
1126
  };
1127
1127
  }
1128
1128
  const cr = Wt((t, r) => /* @__PURE__ */ u.jsx("input", { ref: r, ...t }));
1129
1129
  function ur(t) {
1130
- const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
1130
+ const [r, n] = ge(!1), o = Te(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
1131
1131
  disabled: p,
1132
1132
  title: g,
1133
1133
  style: w,
1134
1134
  className: a,
1135
1135
  prefix: v,
1136
1136
  sufix: I,
1137
- iconSize: j,
1137
+ iconSize: S,
1138
1138
  loadingPosition: P,
1139
1139
  isLoading: b,
1140
1140
  LeftIcon: y,
@@ -1144,11 +1144,11 @@ function ur(t) {
1144
1144
  RightIcon: A,
1145
1145
  Spinner: U,
1146
1146
  ...M
1147
- } = lr({ ...t, id: c, isError: d }, r), J = y && !b, X = A && !b, O = P === "left" && b, G = P === "right" && b;
1148
- function C() {
1147
+ } = lr({ ...t, id: c, isError: d }, r), q = y && !b, G = A && !b, O = P === "left" && b, Q = P === "right" && b;
1148
+ function k() {
1149
1149
  p || !(s != null && s.current) || (n(!0), s.current.focus());
1150
1150
  }
1151
- function K(W) {
1151
+ function J(W) {
1152
1152
  n(!0), L && L(W);
1153
1153
  }
1154
1154
  function z(W) {
@@ -1159,24 +1159,24 @@ function ur(t) {
1159
1159
  {
1160
1160
  title: g,
1161
1161
  style: w,
1162
- onClick: C,
1162
+ onClick: k,
1163
1163
  className: a,
1164
1164
  children: [
1165
1165
  v,
1166
1166
  O && U,
1167
- J && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
1167
+ q && /* @__PURE__ */ u.jsx(y, { size: S, strokeWidth: 2.5 }),
1168
1168
  /* @__PURE__ */ u.jsx(
1169
1169
  Ht,
1170
1170
  {
1171
1171
  component: cr,
1172
1172
  ref: s,
1173
- onFocus: K,
1173
+ onFocus: J,
1174
1174
  onBlur: z,
1175
1175
  ...M
1176
1176
  }
1177
1177
  ),
1178
- X && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
1179
- G && U,
1178
+ G && /* @__PURE__ */ u.jsx(A, { size: S, strokeWidth: 2.5 }),
1179
+ Q && U,
1180
1180
  I
1181
1181
  ]
1182
1182
  }
@@ -1197,14 +1197,14 @@ function dr(t, r) {
1197
1197
  readOnly: a,
1198
1198
  onFocus: v,
1199
1199
  onBlur: I,
1200
- title: j,
1200
+ title: S,
1201
1201
  style: P,
1202
1202
  onChange: b,
1203
1203
  ...y
1204
- } = t, H = g ? "right" : "left", J = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, O = { md: 20, lg: 20 }[l];
1204
+ } = t, H = g ? "right" : "left", q = `arkyn_input ${s ? "hasPrefix" : ""} ${d ? "hasSufix" : ""} ${h} ${l} ${w || a || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, O = { md: 20, lg: 20 }[l];
1205
1205
  return {
1206
1206
  isLoading: n,
1207
- className: J,
1207
+ className: q,
1208
1208
  prefix: Ee(s, O, "prefix"),
1209
1209
  sufix: Ee(d, O, "sufix"),
1210
1210
  LeftIcon: p,
@@ -1213,7 +1213,7 @@ function dr(t, r) {
1213
1213
  readOnly: a,
1214
1214
  onFocus: v,
1215
1215
  onBlur: I,
1216
- title: j,
1216
+ title: S,
1217
1217
  style: P,
1218
1218
  onChange: b,
1219
1219
  loadingPosition: H,
@@ -1223,14 +1223,14 @@ function dr(t, r) {
1223
1223
  };
1224
1224
  }
1225
1225
  function fr(t) {
1226
- const [r, n] = pe(!1), o = $e(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
1226
+ const [r, n] = ge(!1), o = Te(null), { inputRef: l, id: c, error: h } = ke(), s = l || o, d = t.isError || !!h, {
1227
1227
  disabled: p,
1228
1228
  title: g,
1229
1229
  style: w,
1230
1230
  className: a,
1231
1231
  prefix: v,
1232
1232
  sufix: I,
1233
- iconSize: j,
1233
+ iconSize: S,
1234
1234
  loadingPosition: P,
1235
1235
  isLoading: b,
1236
1236
  LeftIcon: y,
@@ -1240,28 +1240,28 @@ function fr(t) {
1240
1240
  RightIcon: A,
1241
1241
  type: U,
1242
1242
  Spinner: M,
1243
- ...J
1244
- } = dr({ ...t, id: c, isError: d }, r), X = y && !b, O = A && !b, G = P === "left" && b, C = P === "right" && b;
1245
- function K() {
1243
+ ...q
1244
+ } = dr({ ...t, id: c, isError: d }, r), G = y && !b, O = A && !b, Q = P === "left" && b, k = P === "right" && b;
1245
+ function J() {
1246
1246
  p || !(s != null && s.current) || (n(!0), s.current.focus());
1247
1247
  }
1248
- function z(Z) {
1249
- n(!0), L && L(Z);
1248
+ function z(ee) {
1249
+ n(!0), L && L(ee);
1250
1250
  }
1251
- function W(Z) {
1252
- n(!1), R && R(Z);
1251
+ function W(ee) {
1252
+ n(!1), R && R(ee);
1253
1253
  }
1254
- return U === "hidden" ? /* @__PURE__ */ u.jsx("input", { type: "hidden", ref: s, ...J }) : /* @__PURE__ */ u.jsxs(
1254
+ return U === "hidden" ? /* @__PURE__ */ u.jsx("input", { type: "hidden", ref: s, ...q }) : /* @__PURE__ */ u.jsxs(
1255
1255
  "section",
1256
1256
  {
1257
1257
  title: g,
1258
1258
  style: w,
1259
- onClick: K,
1259
+ onClick: J,
1260
1260
  className: a,
1261
1261
  children: [
1262
1262
  v,
1263
- G && M,
1264
- X && /* @__PURE__ */ u.jsx(y, { size: j, strokeWidth: 2.5 }),
1263
+ Q && M,
1264
+ G && /* @__PURE__ */ u.jsx(y, { size: S, strokeWidth: 2.5 }),
1265
1265
  /* @__PURE__ */ u.jsx(
1266
1266
  "input",
1267
1267
  {
@@ -1271,11 +1271,11 @@ function fr(t) {
1271
1271
  onFocus: z,
1272
1272
  onBlur: W,
1273
1273
  type: U,
1274
- ...J
1274
+ ...q
1275
1275
  }
1276
1276
  ),
1277
- O && /* @__PURE__ */ u.jsx(A, { size: j, strokeWidth: 2.5 }),
1278
- C && M,
1277
+ O && /* @__PURE__ */ u.jsx(A, { size: S, strokeWidth: 2.5 }),
1278
+ k && M,
1279
1279
  I
1280
1280
  ]
1281
1281
  }
@@ -1305,7 +1305,7 @@ function mr(t, r) {
1305
1305
  onBlur: a,
1306
1306
  title: v,
1307
1307
  style: I,
1308
- isSearchable: j = !1,
1308
+ isSearchable: S = !1,
1309
1309
  closeOnSelect: P = !0,
1310
1310
  ...b
1311
1311
  } = t, A = `arkyn_select ${s ? "hasPrefix" : ""} ${h} ${l} ${p || g || n ? "opacity" : ""} ${o ? "errored" : ""} ${r ? "focused" : ""} ${c}`, M = { md: 20, lg: 20 }[l];
@@ -1321,22 +1321,22 @@ function mr(t, r) {
1321
1321
  title: v,
1322
1322
  closeOnSelect: P,
1323
1323
  style: I,
1324
- isSearchable: j,
1324
+ isSearchable: S,
1325
1325
  iconSize: M,
1326
1326
  Spinner: /* @__PURE__ */ u.jsx(je, { className: "spinner", size: M, strokeWidth: 2.5 }),
1327
1327
  ...b
1328
1328
  };
1329
1329
  }
1330
1330
  function ln(t) {
1331
- var Y;
1332
- const [r, n] = pe(!1), { inputRef: o, id: l, error: c } = ke(), h = $e(null), s = o || h, d = t.isError || !!c, {
1331
+ var ve;
1332
+ const [r, n] = ge(!1), { inputRef: o, id: l, error: c } = ke(), h = Te(null), s = o || h, d = t.isError || !!c, {
1333
1333
  disabled: p,
1334
1334
  title: g,
1335
1335
  style: w,
1336
1336
  className: a,
1337
1337
  prefix: v,
1338
1338
  iconSize: I,
1339
- isLoading: j,
1339
+ isLoading: S,
1340
1340
  LeftIcon: P,
1341
1341
  value: b = null,
1342
1342
  defaultValue: y = "",
@@ -1346,56 +1346,60 @@ function ln(t) {
1346
1346
  Spinner: A,
1347
1347
  name: U,
1348
1348
  isSearchable: M,
1349
- placeholder: J,
1350
- onSelect: X,
1349
+ placeholder: q,
1350
+ onSelect: G,
1351
1351
  options: O,
1352
- optionMaxHeight: G,
1353
- closeOnSelect: C,
1354
- ...K
1355
- } = mr({ ...t, id: l, isError: d }, r), [z, W] = pe(y), [Z, N] = pe("");
1356
- function Q() {
1352
+ optionMaxHeight: Q,
1353
+ closeOnSelect: k,
1354
+ ...J
1355
+ } = mr({ ...t, id: l, isError: d }, r), [z, W] = ge(y), [ee, N] = ge("");
1356
+ function te() {
1357
1357
  p || !(s != null && s.current) || (n(!0), s.current.focus());
1358
1358
  }
1359
- function de(ne) {
1360
- n(!0), L && L(ne);
1359
+ function fe(X) {
1360
+ n(!0), L && L(X);
1361
1361
  }
1362
- function _() {
1362
+ function $() {
1363
1363
  n(!1), R && s.current && s.current.blur();
1364
1364
  }
1365
- const S = typeof b == "string" ? b : z, E = ((Y = O.find((ne) => ne.value === S)) == null ? void 0 : Y.label) || "", re = () => {
1365
+ function C(X) {
1366
+ const { label: oe, value: le } = X;
1367
+ W(z !== le ? le : ""), G && G({ label: oe, value: le }), k && (s.current.blur(), n(!1), console.log("fecha"));
1368
+ }
1369
+ const j = typeof b == "string" ? b : z, K = ((ve = O.find((X) => X.value === j)) == null ? void 0 : ve.label) || "", ne = () => {
1366
1370
  if (M) {
1367
- if (!r && E) return !0;
1368
- if (!r && !E || r) return !1;
1371
+ if (!r && K) return !0;
1372
+ if (!r && !K || r) return !1;
1369
1373
  }
1370
1374
  if (!M) {
1371
- if (!r && E) return !0;
1372
- if (!r && !E) return !1;
1373
- if (r && E) return !0;
1374
- if (r && !E) return !1;
1375
+ if (!r && K) return !0;
1376
+ if (!r && !K) return !1;
1377
+ if (r && K) return !0;
1378
+ if (r && !K) return !1;
1375
1379
  }
1376
- }, ee = O.filter((ne) => M ? ne.label.toLowerCase().includes(Z.toLowerCase()) : !0);
1380
+ }, Y = O.filter((X) => M ? X.label.toLowerCase().includes(ee.toLowerCase()) : !0);
1377
1381
  return /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
1378
1382
  /* @__PURE__ */ u.jsxs(
1379
1383
  "section",
1380
1384
  {
1381
1385
  title: g,
1382
1386
  style: w,
1383
- onClick: Q,
1384
- className: `${a} placeholder_dark_${re()}`,
1387
+ onClick: te,
1388
+ className: `${a} placeholder_dark_${ne()}`,
1385
1389
  children: [
1386
1390
  v,
1387
1391
  P && /* @__PURE__ */ u.jsx(P, { size: I, strokeWidth: 2.5 }),
1388
1392
  /* @__PURE__ */ u.jsx(
1389
1393
  "input",
1390
1394
  {
1391
- disabled: p || j,
1395
+ disabled: p || S,
1392
1396
  readOnly: !M,
1393
- value: Z || "",
1394
- placeholder: E || J,
1395
- onFocus: de,
1397
+ value: ee || "",
1398
+ placeholder: K || q,
1399
+ onFocus: fe,
1396
1400
  onBlur: () => N(""),
1397
- ...K,
1398
- onChange: (ne) => N(ne.target.value)
1401
+ ...J,
1402
+ onChange: (X) => N(X.target.value)
1399
1403
  }
1400
1404
  ),
1401
1405
  /* @__PURE__ */ u.jsx(
@@ -1404,36 +1408,34 @@ function ln(t) {
1404
1408
  type: "hidden",
1405
1409
  ref: s,
1406
1410
  name: U,
1407
- value: S || "",
1411
+ value: j || "",
1408
1412
  readOnly: !0
1409
1413
  }
1410
1414
  ),
1411
1415
  r && /* @__PURE__ */ u.jsxs(
1412
- "ul",
1416
+ "div",
1413
1417
  {
1414
1418
  className: "arkyn_select_content",
1415
- style: { overflow: "auto", maxHeight: G },
1419
+ style: { overflow: "auto", maxHeight: Q },
1416
1420
  children: [
1417
- ee.map(({ label: ne, value: oe }) => /* @__PURE__ */ u.jsxs(
1418
- "li",
1421
+ Y.map(({ label: X, value: oe }) => /* @__PURE__ */ u.jsxs(
1422
+ "div",
1419
1423
  {
1420
- className: S === oe ? "active" : "",
1421
- onClick: () => {
1422
- W(z !== oe ? oe : ""), X && X({ label: ne, value: oe }), C && setTimeout(() => _(), 100);
1423
- },
1424
+ onClick: () => C({ label: X, value: oe }),
1425
+ className: j === oe ? "arkyn_select_option active" : "arkyn_select_option",
1424
1426
  children: [
1425
- ne,
1427
+ X,
1426
1428
  " ",
1427
1429
  /* @__PURE__ */ u.jsx(Et, {})
1428
1430
  ]
1429
1431
  },
1430
1432
  oe
1431
1433
  )),
1432
- ee.length <= 0 && /* @__PURE__ */ u.jsx("p", { children: "Sem opções disponíveis" })
1434
+ Y.length <= 0 && /* @__PURE__ */ u.jsx("p", { children: "Sem opções disponíveis" })
1433
1435
  ]
1434
1436
  }
1435
1437
  ),
1436
- !j && /* @__PURE__ */ u.jsx(
1438
+ !S && /* @__PURE__ */ u.jsx(
1437
1439
  Vt,
1438
1440
  {
1439
1441
  className: "arkyn_select_arrow",
@@ -1441,11 +1443,11 @@ function ln(t) {
1441
1443
  strokeWidth: 2.5
1442
1444
  }
1443
1445
  ),
1444
- j && A
1446
+ S && A
1445
1447
  ]
1446
1448
  }
1447
1449
  ),
1448
- r && /* @__PURE__ */ u.jsx("aside", { className: "arkyn_select_overlay", onClick: _ })
1450
+ r && /* @__PURE__ */ u.jsx("aside", { className: "arkyn_select_overlay", onClick: $ })
1449
1451
  ] });
1450
1452
  }
1451
1453
  function pr(t) {
@@ -1547,9 +1549,9 @@ function fn(t) {
1547
1549
  }
1548
1550
  );
1549
1551
  }
1550
- const lt = qe({}), Tt = qe({});
1552
+ const lt = qe({}), $t = qe({});
1551
1553
  function xr() {
1552
- const t = Be(Tt);
1554
+ const t = Be($t);
1553
1555
  if (Object.entries(t).length === 0)
1554
1556
  throw new Error("useToast must be used within a Provider");
1555
1557
  return t;
@@ -1560,7 +1562,7 @@ function hn() {
1560
1562
  const l = t == null ? void 0 : t.closeModalKey;
1561
1563
  l && r(l);
1562
1564
  }, [t]), mt(() => {
1563
- typeof (t == null ? void 0 : t.message) == "string" && typeof (t == null ? void 0 : t.success) == "boolean" && (t != null && t.success ? n(t == null ? void 0 : t.message) : o(t == null ? void 0 : t.message));
1565
+ typeof (t == null ? void 0 : t.message) == "string" && typeof (t == null ? void 0 : t.success) == "boolean" && t.message !== "" && (t != null && t.success ? n(t == null ? void 0 : t.message) : o(t == null ? void 0 : t.message));
1564
1566
  }, [t]);
1565
1567
  }
1566
1568
  function mn(t) {
@@ -1594,7 +1596,7 @@ function pn(t = "") {
1594
1596
  };
1595
1597
  }
1596
1598
  function gn(t) {
1597
- const { children: r = !1 } = t, [n, o] = pe([]);
1599
+ const { children: r = !1 } = t, [n, o] = ge([]);
1598
1600
  function l(d) {
1599
1601
  return !!n.some((p) => p.key === d);
1600
1602
  }
@@ -1659,7 +1661,7 @@ var wr = (t) => {
1659
1661
  r.loading !== void 0 && (n = this.create({ ...r, promise: t, type: "loading", message: r.loading, description: typeof r.description != "function" ? r.description : void 0 }));
1660
1662
  let o = t instanceof Promise ? t : t(), l = n !== void 0;
1661
1663
  return o.then(async (c) => {
1662
- if ($r(c) && !c.ok) {
1664
+ if (Tr(c) && !c.ok) {
1663
1665
  l = !1;
1664
1666
  let h = typeof r.error == "function" ? await r.error(`HTTP error! status: ${c.status}`) : r.error, s = typeof r.description == "function" ? await r.description(`HTTP error! status: ${c.status}`) : r.description;
1665
1667
  this.create({ id: n, type: "error", message: h, description: s });
@@ -1683,10 +1685,10 @@ var wr = (t) => {
1683
1685
  return this.create({ jsx: t(n), id: n, ...r }), n;
1684
1686
  }, this.subscribers = [], this.toasts = [];
1685
1687
  }
1686
- }, ue = new _r(), Tr = (t, r) => {
1688
+ }, de = new _r(), $r = (t, r) => {
1687
1689
  let n = (r == null ? void 0 : r.id) || st++;
1688
- return ue.addToast({ title: t, ...r, id: n }), n;
1689
- }, $r = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", Ir = Tr, Pr = () => ue.toasts, Ke = Object.assign(Ir, { 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: Pr });
1690
+ return de.addToast({ title: t, ...r, id: n }), n;
1691
+ }, Tr = (t) => t && typeof t == "object" && "ok" in t && typeof t.ok == "boolean" && "status" in t && typeof t.status == "number", Ir = $r, Pr = () => de.toasts, Ke = Object.assign(Ir, { success: de.success, info: de.info, warning: de.warning, error: de.error, custom: de.custom, message: de.message, promise: de.promise, dismiss: de.dismiss, loading: de.loading }, { getHistory: Pr });
1690
1692
  function Or(t, { insertAt: r } = {}) {
1691
1693
  if (!t || typeof document > "u") return;
1692
1694
  let n = document.head || document.getElementsByTagName("head")[0], o = document.createElement("style");
@@ -1703,77 +1705,77 @@ function Wr(...t) {
1703
1705
  }
1704
1706
  var Vr = (t) => {
1705
1707
  var r, n, o, l, c, h, s, d, p, g;
1706
- let { invert: w, toast: a, unstyled: v, interacting: I, setHeights: j, visibleToasts: P, heights: b, index: y, toasts: H, expanded: L, removeToast: R, defaultRichColors: A, closeButton: U, style: M, cancelButtonStyle: J, actionButtonStyle: X, className: O = "", descriptionClassName: G = "", duration: C, position: K, gap: z, loadingIcon: W, expandByDefault: Z, classNames: N, icons: Q, closeButtonAriaLabel: de = "Close toast", pauseWhenPageIsHidden: _, cn: S } = t, [E, re] = f.useState(!1), [ee, Y] = f.useState(!1), [ne, oe] = f.useState(!1), [be, ge] = f.useState(!1), [Ge, Ne] = f.useState(0), [Ze, De] = f.useState(0), Se = f.useRef(null), fe = f.useRef(null), Ae = y === 0, We = y + 1 <= P, ae = a.type, xe = a.dismissible !== !1, Qe = a.className || "", Ie = a.descriptionClassName || "", Re = f.useMemo(() => b.findIndex((k) => k.toastId === a.id) || 0, [b, a.id]), et = f.useMemo(() => {
1707
- var k;
1708
- return (k = a.closeButton) != null ? k : U;
1709
- }, [a.closeButton, U]), Pe = f.useMemo(() => a.duration || C || Lr, [a.duration, C]), _e = f.useRef(0), he = f.useRef(0), Ve = f.useRef(0), ye = f.useRef(null), [Oe, ze] = K.split("-"), Ye = f.useMemo(() => b.reduce((k, B, D) => D >= Re ? k : k + B.height, 0), [b, Re]), Ue = Rr(), tt = a.invert || w, Fe = ae === "loading";
1710
- he.current = f.useMemo(() => Re * z + Ye, [Re, Ye]), f.useEffect(() => {
1711
- re(!0);
1708
+ let { invert: w, toast: a, unstyled: v, interacting: I, setHeights: S, visibleToasts: P, heights: b, index: y, toasts: H, expanded: L, removeToast: R, defaultRichColors: A, closeButton: U, style: M, cancelButtonStyle: q, actionButtonStyle: G, className: O = "", descriptionClassName: Q = "", duration: k, position: J, gap: z, loadingIcon: W, expandByDefault: ee, classNames: N, icons: te, closeButtonAriaLabel: fe = "Close toast", pauseWhenPageIsHidden: $, cn: C } = t, [j, K] = f.useState(!1), [ne, Y] = f.useState(!1), [ve, X] = f.useState(!1), [oe, le] = f.useState(!1), [Ge, Ne] = f.useState(0), [Ze, De] = f.useState(0), Se = f.useRef(null), he = f.useRef(null), Ae = y === 0, We = y + 1 <= P, ae = a.type, xe = a.dismissible !== !1, Qe = a.className || "", Ie = a.descriptionClassName || "", Re = f.useMemo(() => b.findIndex((E) => E.toastId === a.id) || 0, [b, a.id]), et = f.useMemo(() => {
1709
+ var E;
1710
+ return (E = a.closeButton) != null ? E : U;
1711
+ }, [a.closeButton, U]), Pe = f.useMemo(() => a.duration || k || Lr, [a.duration, k]), _e = f.useRef(0), me = f.useRef(0), Ve = f.useRef(0), ye = f.useRef(null), [Oe, ze] = J.split("-"), Ye = f.useMemo(() => b.reduce((E, B, D) => D >= Re ? E : E + B.height, 0), [b, Re]), Ue = Rr(), tt = a.invert || w, Fe = ae === "loading";
1712
+ me.current = f.useMemo(() => Re * z + Ye, [Re, Ye]), f.useEffect(() => {
1713
+ K(!0);
1712
1714
  }, []), f.useLayoutEffect(() => {
1713
- if (!E) return;
1714
- let k = fe.current, B = k.style.height;
1715
- k.style.height = "auto";
1716
- let D = k.getBoundingClientRect().height;
1717
- k.style.height = B, De(D), j((se) => se.find((le) => le.toastId === a.id) ? se.map((le) => le.toastId === a.id ? { ...le, height: D } : le) : [{ toastId: a.id, height: D, position: a.position }, ...se]);
1718
- }, [E, a.title, a.description, j, a.id]);
1719
- let ve = f.useCallback(() => {
1720
- Y(!0), Ne(he.current), j((k) => k.filter((B) => B.toastId !== a.id)), setTimeout(() => {
1715
+ if (!j) return;
1716
+ let E = he.current, B = E.style.height;
1717
+ E.style.height = "auto";
1718
+ let D = E.getBoundingClientRect().height;
1719
+ E.style.height = B, De(D), S((se) => se.find((ce) => ce.toastId === a.id) ? se.map((ce) => ce.toastId === a.id ? { ...ce, height: D } : ce) : [{ toastId: a.id, height: D, position: a.position }, ...se]);
1720
+ }, [j, a.title, a.description, S, a.id]);
1721
+ let be = f.useCallback(() => {
1722
+ Y(!0), Ne(me.current), S((E) => E.filter((B) => B.toastId !== a.id)), setTimeout(() => {
1721
1723
  R(a);
1722
1724
  }, Ar);
1723
- }, [a, R, j, he]);
1725
+ }, [a, R, S, me]);
1724
1726
  f.useEffect(() => {
1725
1727
  if (a.promise && ae === "loading" || a.duration === 1 / 0 || a.type === "loading") return;
1726
- let k, B = Pe;
1727
- return L || I || _ && Ue ? (() => {
1728
+ let E, B = Pe;
1729
+ return L || I || $ && Ue ? (() => {
1728
1730
  if (Ve.current < _e.current) {
1729
1731
  let D = (/* @__PURE__ */ new Date()).getTime() - _e.current;
1730
1732
  B = B - D;
1731
1733
  }
1732
1734
  Ve.current = (/* @__PURE__ */ new Date()).getTime();
1733
- })() : B !== 1 / 0 && (_e.current = (/* @__PURE__ */ new Date()).getTime(), k = setTimeout(() => {
1735
+ })() : B !== 1 / 0 && (_e.current = (/* @__PURE__ */ new Date()).getTime(), E = setTimeout(() => {
1734
1736
  var D;
1735
- (D = a.onAutoClose) == null || D.call(a, a), ve();
1736
- }, B)), () => clearTimeout(k);
1737
- }, [L, I, Z, a, Pe, ve, a.promise, ae, _, Ue]), f.useEffect(() => {
1738
- let k = fe.current;
1739
- if (k) {
1740
- let B = k.getBoundingClientRect().height;
1741
- return De(B), j((D) => [{ toastId: a.id, height: B, position: a.position }, ...D]), () => j((D) => D.filter((se) => se.toastId !== a.id));
1737
+ (D = a.onAutoClose) == null || D.call(a, a), be();
1738
+ }, B)), () => clearTimeout(E);
1739
+ }, [L, I, ee, a, Pe, be, a.promise, ae, $, Ue]), f.useEffect(() => {
1740
+ let E = he.current;
1741
+ if (E) {
1742
+ let B = E.getBoundingClientRect().height;
1743
+ return De(B), S((D) => [{ toastId: a.id, height: B, position: a.position }, ...D]), () => S((D) => D.filter((se) => se.toastId !== a.id));
1742
1744
  }
1743
- }, [j, a.id]), f.useEffect(() => {
1744
- a.delete && ve();
1745
- }, [ve, a.delete]);
1745
+ }, [S, a.id]), f.useEffect(() => {
1746
+ a.delete && be();
1747
+ }, [be, a.delete]);
1746
1748
  function rt() {
1747
- return Q != null && Q.loading ? f.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, Q.loading) : W ? f.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, W) : f.createElement(kr, { visible: ae === "loading" });
1749
+ return te != null && te.loading ? f.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, te.loading) : W ? f.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, W) : f.createElement(kr, { visible: ae === "loading" });
1748
1750
  }
1749
- return f.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: S(O, Qe, N == null ? void 0 : N.toast, (r = a == null ? void 0 : a.classNames) == null ? void 0 : r.toast, N == null ? void 0 : N.default, N == null ? void 0 : N[ae], (n = a == null ? void 0 : a.classNames) == null ? void 0 : n[ae]), "data-sonner-toast": "", "data-rich-colors": (o = a.richColors) != null ? o : A, "data-styled": !(a.jsx || a.unstyled || v), "data-mounted": E, "data-promise": !!a.promise, "data-removed": ee, "data-visible": We, "data-y-position": Oe, "data-x-position": ze, "data-index": y, "data-front": Ae, "data-swiping": ne, "data-dismissible": xe, "data-type": ae, "data-invert": tt, "data-swipe-out": be, "data-expanded": !!(L || Z && E), style: { "--index": y, "--toasts-before": y, "--z-index": H.length - y, "--offset": `${ee ? Ge : he.current}px`, "--initial-height": Z ? "auto" : `${Ze}px`, ...M, ...a.style }, onPointerDown: (k) => {
1750
- Fe || !xe || (Se.current = /* @__PURE__ */ new Date(), Ne(he.current), k.target.setPointerCapture(k.pointerId), k.target.tagName !== "BUTTON" && (oe(!0), ye.current = { x: k.clientX, y: k.clientY }));
1751
+ return f.createElement("li", { "aria-live": a.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: he, className: C(O, Qe, N == null ? void 0 : N.toast, (r = a == null ? void 0 : a.classNames) == null ? void 0 : r.toast, N == null ? void 0 : N.default, N == null ? void 0 : N[ae], (n = a == null ? void 0 : a.classNames) == null ? void 0 : n[ae]), "data-sonner-toast": "", "data-rich-colors": (o = a.richColors) != null ? o : A, "data-styled": !(a.jsx || a.unstyled || v), "data-mounted": j, "data-promise": !!a.promise, "data-removed": ne, "data-visible": We, "data-y-position": Oe, "data-x-position": ze, "data-index": y, "data-front": Ae, "data-swiping": ve, "data-dismissible": xe, "data-type": ae, "data-invert": tt, "data-swipe-out": oe, "data-expanded": !!(L || ee && j), style: { "--index": y, "--toasts-before": y, "--z-index": H.length - y, "--offset": `${ne ? Ge : me.current}px`, "--initial-height": ee ? "auto" : `${Ze}px`, ...M, ...a.style }, onPointerDown: (E) => {
1752
+ Fe || !xe || (Se.current = /* @__PURE__ */ new Date(), Ne(me.current), E.target.setPointerCapture(E.pointerId), E.target.tagName !== "BUTTON" && (X(!0), ye.current = { x: E.clientX, y: E.clientY }));
1751
1753
  }, onPointerUp: () => {
1752
- var k, B, D, se;
1753
- if (be || !xe) return;
1754
+ var E, B, D, se;
1755
+ if (oe || !xe) return;
1754
1756
  ye.current = null;
1755
- let le = Number(((k = fe.current) == null ? void 0 : k.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((B = Se.current) == null ? void 0 : B.getTime()), He = Math.abs(le) / we;
1756
- if (Math.abs(le) >= Dr || He > 0.11) {
1757
- Ne(he.current), (D = a.onDismiss) == null || D.call(a, a), ve(), ge(!0);
1757
+ let ce = Number(((E = he.current) == null ? void 0 : E.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), we = (/* @__PURE__ */ new Date()).getTime() - ((B = Se.current) == null ? void 0 : B.getTime()), He = Math.abs(ce) / we;
1758
+ if (Math.abs(ce) >= Dr || He > 0.11) {
1759
+ Ne(me.current), (D = a.onDismiss) == null || D.call(a, a), be(), le(!0);
1758
1760
  return;
1759
1761
  }
1760
- (se = fe.current) == null || se.style.setProperty("--swipe-amount", "0px"), oe(!1);
1761
- }, onPointerMove: (k) => {
1762
+ (se = he.current) == null || se.style.setProperty("--swipe-amount", "0px"), X(!1);
1763
+ }, onPointerMove: (E) => {
1762
1764
  var B;
1763
1765
  if (!ye.current || !xe) return;
1764
- let D = k.clientY - ye.current.y, se = k.clientX - ye.current.x, le = (Oe === "top" ? Math.min : Math.max)(0, D), we = k.pointerType === "touch" ? 10 : 2;
1765
- Math.abs(le) > we ? (B = fe.current) == null || B.style.setProperty("--swipe-amount", `${D}px`) : Math.abs(se) > we && (ye.current = null);
1766
- } }, et && !a.jsx ? f.createElement("button", { "aria-label": de, "data-disabled": Fe, "data-close-button": !0, onClick: Fe || !xe ? () => {
1766
+ let D = E.clientY - ye.current.y, se = E.clientX - ye.current.x, ce = (Oe === "top" ? Math.min : Math.max)(0, D), we = E.pointerType === "touch" ? 10 : 2;
1767
+ Math.abs(ce) > we ? (B = he.current) == null || B.style.setProperty("--swipe-amount", `${D}px`) : Math.abs(se) > we && (ye.current = null);
1768
+ } }, et && !a.jsx ? f.createElement("button", { "aria-label": fe, "data-disabled": Fe, "data-close-button": !0, onClick: Fe || !xe ? () => {
1767
1769
  } : () => {
1768
- var k;
1769
- ve(), (k = a.onDismiss) == null || k.call(a, a);
1770
- }, className: S(N == null ? void 0 : N.closeButton, (l = a == null ? void 0 : a.classNames) == null ? void 0 : l.closeButton) }, f.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" }, f.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), f.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, a.jsx || f.isValidElement(a.title) ? a.jsx || a.title : f.createElement(f.Fragment, null, ae || a.icon || a.promise ? f.createElement("div", { "data-icon": "", className: S(N == null ? void 0 : N.icon, (c = a == null ? void 0 : a.classNames) == null ? void 0 : c.icon) }, a.promise || a.type === "loading" && !a.icon ? a.icon || rt() : null, a.type !== "loading" ? a.icon || (Q == null ? void 0 : Q[ae]) || wr(ae) : null) : null, f.createElement("div", { "data-content": "", className: S(N == null ? void 0 : N.content, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.content) }, f.createElement("div", { "data-title": "", className: S(N == null ? void 0 : N.title, (s = a == null ? void 0 : a.classNames) == null ? void 0 : s.title) }, a.title), a.description ? f.createElement("div", { "data-description": "", className: S(G, Ie, N == null ? void 0 : N.description, (d = a == null ? void 0 : a.classNames) == null ? void 0 : d.description) }, a.description) : null), f.isValidElement(a.cancel) ? a.cancel : a.cancel && Je(a.cancel) ? f.createElement("button", { "data-button": !0, "data-cancel": !0, style: a.cancelButtonStyle || J, onClick: (k) => {
1770
+ var E;
1771
+ be(), (E = a.onDismiss) == null || E.call(a, a);
1772
+ }, className: C(N == null ? void 0 : N.closeButton, (l = a == null ? void 0 : a.classNames) == null ? void 0 : l.closeButton) }, f.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" }, f.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), f.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, a.jsx || f.isValidElement(a.title) ? a.jsx || a.title : f.createElement(f.Fragment, null, ae || a.icon || a.promise ? f.createElement("div", { "data-icon": "", className: C(N == null ? void 0 : N.icon, (c = a == null ? void 0 : a.classNames) == null ? void 0 : c.icon) }, a.promise || a.type === "loading" && !a.icon ? a.icon || rt() : null, a.type !== "loading" ? a.icon || (te == null ? void 0 : te[ae]) || wr(ae) : null) : null, f.createElement("div", { "data-content": "", className: C(N == null ? void 0 : N.content, (h = a == null ? void 0 : a.classNames) == null ? void 0 : h.content) }, f.createElement("div", { "data-title": "", className: C(N == null ? void 0 : N.title, (s = a == null ? void 0 : a.classNames) == null ? void 0 : s.title) }, a.title), a.description ? f.createElement("div", { "data-description": "", className: C(Q, Ie, N == null ? void 0 : N.description, (d = a == null ? void 0 : a.classNames) == null ? void 0 : d.description) }, a.description) : null), f.isValidElement(a.cancel) ? a.cancel : a.cancel && Je(a.cancel) ? f.createElement("button", { "data-button": !0, "data-cancel": !0, style: a.cancelButtonStyle || q, onClick: (E) => {
1771
1773
  var B, D;
1772
- Je(a.cancel) && xe && ((D = (B = a.cancel).onClick) == null || D.call(B, k), ve());
1773
- }, className: S(N == null ? void 0 : N.cancelButton, (p = a == null ? void 0 : a.classNames) == null ? void 0 : p.cancelButton) }, a.cancel.label) : null, f.isValidElement(a.action) ? a.action : a.action && Je(a.action) ? f.createElement("button", { "data-button": !0, "data-action": !0, style: a.actionButtonStyle || X, onClick: (k) => {
1774
+ Je(a.cancel) && xe && ((D = (B = a.cancel).onClick) == null || D.call(B, E), be());
1775
+ }, className: C(N == null ? void 0 : N.cancelButton, (p = a == null ? void 0 : a.classNames) == null ? void 0 : p.cancelButton) }, a.cancel.label) : null, f.isValidElement(a.action) ? a.action : a.action && Je(a.action) ? f.createElement("button", { "data-button": !0, "data-action": !0, style: a.actionButtonStyle || G, onClick: (E) => {
1774
1776
  var B, D;
1775
- Je(a.action) && (k.defaultPrevented || ((D = (B = a.action).onClick) == null || D.call(B, k), ve()));
1776
- }, className: S(N == null ? void 0 : N.actionButton, (g = a == null ? void 0 : a.classNames) == null ? void 0 : g.actionButton) }, a.action.label) : null));
1777
+ Je(a.action) && (E.defaultPrevented || ((D = (B = a.action).onClick) == null || D.call(B, E), be()));
1778
+ }, className: C(N == null ? void 0 : N.actionButton, (g = a == null ? void 0 : a.classNames) == null ? void 0 : g.actionButton) }, a.action.label) : null));
1777
1779
  };
1778
1780
  function wt() {
1779
1781
  if (typeof window > "u" || typeof document > "u") return "ltr";
@@ -1781,20 +1783,20 @@ function wt() {
1781
1783
  return t === "auto" || !t ? window.getComputedStyle(document.documentElement).direction : t;
1782
1784
  }
1783
1785
  var Yr = (t) => {
1784
- let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: s, theme: d = "light", richColors: p, duration: g, style: w, visibleToasts: a = zr, toastOptions: v, dir: I = wt(), gap: j = Br, loadingIcon: P, icons: b, containerAriaLabel: y = "Notifications", pauseWhenPageIsHidden: H, cn: L = Wr } = t, [R, A] = f.useState([]), U = f.useMemo(() => Array.from(new Set([n].concat(R.filter((_) => _.position).map((_) => _.position)))), [R, n]), [M, J] = f.useState([]), [X, O] = f.useState(!1), [G, C] = f.useState(!1), [K, z] = f.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), W = f.useRef(null), Z = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = f.useRef(null), Q = f.useRef(!1), de = f.useCallback((_) => {
1785
- var S;
1786
- (S = R.find((E) => E.id === _.id)) != null && S.delete || ue.dismiss(_.id), A((E) => E.filter(({ id: re }) => re !== _.id));
1786
+ let { invert: r, position: n = "bottom-right", hotkey: o = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: s, theme: d = "light", richColors: p, duration: g, style: w, visibleToasts: a = zr, toastOptions: v, dir: I = wt(), gap: S = Br, loadingIcon: P, icons: b, containerAriaLabel: y = "Notifications", pauseWhenPageIsHidden: H, cn: L = Wr } = t, [R, A] = f.useState([]), U = f.useMemo(() => Array.from(new Set([n].concat(R.filter(($) => $.position).map(($) => $.position)))), [R, n]), [M, q] = f.useState([]), [G, O] = f.useState(!1), [Q, k] = f.useState(!1), [J, z] = f.useState(d !== "system" ? d : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), W = f.useRef(null), ee = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), N = f.useRef(null), te = f.useRef(!1), fe = f.useCallback(($) => {
1787
+ var C;
1788
+ (C = R.find((j) => j.id === $.id)) != null && C.delete || de.dismiss($.id), A((j) => j.filter(({ id: K }) => K !== $.id));
1787
1789
  }, [R]);
1788
- return f.useEffect(() => ue.subscribe((_) => {
1789
- if (_.dismiss) {
1790
- A((S) => S.map((E) => E.id === _.id ? { ...E, delete: !0 } : E));
1790
+ return f.useEffect(() => de.subscribe(($) => {
1791
+ if ($.dismiss) {
1792
+ A((C) => C.map((j) => j.id === $.id ? { ...j, delete: !0 } : j));
1791
1793
  return;
1792
1794
  }
1793
1795
  setTimeout(() => {
1794
1796
  Jt.flushSync(() => {
1795
- A((S) => {
1796
- let E = S.findIndex((re) => re.id === _.id);
1797
- return E !== -1 ? [...S.slice(0, E), { ...S[E], ..._ }, ...S.slice(E + 1)] : [_, ...S];
1797
+ A((C) => {
1798
+ let j = C.findIndex((K) => K.id === $.id);
1799
+ return j !== -1 ? [...C.slice(0, j), { ...C[j], ...$ }, ...C.slice(j + 1)] : [$, ...C];
1798
1800
  });
1799
1801
  });
1800
1802
  });
@@ -1803,35 +1805,35 @@ var Yr = (t) => {
1803
1805
  z(d);
1804
1806
  return;
1805
1807
  }
1806
- d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: _ }) => {
1807
- z(_ ? "dark" : "light");
1808
+ d === "system" && (window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? z("dark") : z("light")), typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change", ({ matches: $ }) => {
1809
+ z($ ? "dark" : "light");
1808
1810
  });
1809
1811
  }, [d]), f.useEffect(() => {
1810
1812
  R.length <= 1 && O(!1);
1811
1813
  }, [R]), f.useEffect(() => {
1812
- let _ = (S) => {
1813
- var E, re;
1814
- o.every((ee) => S[ee] || S.code === ee) && (O(!0), (E = W.current) == null || E.focus()), S.code === "Escape" && (document.activeElement === W.current || (re = W.current) != null && re.contains(document.activeElement)) && O(!1);
1814
+ let $ = (C) => {
1815
+ var j, K;
1816
+ o.every((ne) => C[ne] || C.code === ne) && (O(!0), (j = W.current) == null || j.focus()), C.code === "Escape" && (document.activeElement === W.current || (K = W.current) != null && K.contains(document.activeElement)) && O(!1);
1815
1817
  };
1816
- return document.addEventListener("keydown", _), () => document.removeEventListener("keydown", _);
1818
+ return document.addEventListener("keydown", $), () => document.removeEventListener("keydown", $);
1817
1819
  }, [o]), f.useEffect(() => {
1818
1820
  if (W.current) return () => {
1819
- N.current && (N.current.focus({ preventScroll: !0 }), N.current = null, Q.current = !1);
1821
+ N.current && (N.current.focus({ preventScroll: !0 }), N.current = null, te.current = !1);
1820
1822
  };
1821
- }, [W.current]), R.length ? f.createElement("section", { "aria-label": `${y} ${Z}`, tabIndex: -1 }, U.map((_, S) => {
1822
- var E;
1823
- let [re, ee] = _.split("-");
1824
- return f.createElement("ol", { key: _, dir: I === "auto" ? wt() : I, tabIndex: -1, ref: W, className: h, "data-sonner-toaster": !0, "data-theme": K, "data-y-position": re, "data-x-position": ee, style: { "--front-toast-height": `${((E = M[0]) == null ? void 0 : E.height) || 0}px`, "--offset": typeof s == "number" ? `${s}px` : s || Fr, "--width": `${Mr}px`, "--gap": `${j}px`, ...w }, onBlur: (Y) => {
1825
- Q.current && !Y.currentTarget.contains(Y.relatedTarget) && (Q.current = !1, N.current && (N.current.focus({ preventScroll: !0 }), N.current = null));
1823
+ }, [W.current]), R.length ? f.createElement("section", { "aria-label": `${y} ${ee}`, tabIndex: -1 }, U.map(($, C) => {
1824
+ var j;
1825
+ let [K, ne] = $.split("-");
1826
+ return f.createElement("ol", { key: $, dir: I === "auto" ? wt() : I, tabIndex: -1, ref: W, className: h, "data-sonner-toaster": !0, "data-theme": J, "data-y-position": K, "data-x-position": ne, style: { "--front-toast-height": `${((j = M[0]) == null ? void 0 : j.height) || 0}px`, "--offset": typeof s == "number" ? `${s}px` : s || Fr, "--width": `${Mr}px`, "--gap": `${S}px`, ...w }, onBlur: (Y) => {
1827
+ te.current && !Y.currentTarget.contains(Y.relatedTarget) && (te.current = !1, N.current && (N.current.focus({ preventScroll: !0 }), N.current = null));
1826
1828
  }, onFocus: (Y) => {
1827
- Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || Q.current || (Q.current = !0, N.current = Y.relatedTarget);
1829
+ Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || te.current || (te.current = !0, N.current = Y.relatedTarget);
1828
1830
  }, onMouseEnter: () => O(!0), onMouseMove: () => O(!0), onMouseLeave: () => {
1829
- G || O(!1);
1831
+ Q || O(!1);
1830
1832
  }, onPointerDown: (Y) => {
1831
- Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || C(!0);
1832
- }, onPointerUp: () => C(!1) }, R.filter((Y) => !Y.position && S === 0 || Y.position === _).map((Y, ne) => {
1833
- var oe, be;
1834
- return f.createElement(Vr, { key: Y.id, icons: b, index: ne, toast: Y, defaultRichColors: p, duration: (oe = v == null ? void 0 : v.duration) != null ? oe : g, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: r, visibleToasts: a, closeButton: (be = v == null ? void 0 : v.closeButton) != null ? be : c, interacting: G, position: _, 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: de, toasts: R.filter((ge) => ge.position == Y.position), heights: M.filter((ge) => ge.position == Y.position), setHeights: J, expandByDefault: l, gap: j, loadingIcon: P, expanded: X, pauseWhenPageIsHidden: H, cn: L });
1833
+ Y.target instanceof HTMLElement && Y.target.dataset.dismissible === "false" || k(!0);
1834
+ }, onPointerUp: () => k(!1) }, R.filter((Y) => !Y.position && C === 0 || Y.position === $).map((Y, ve) => {
1835
+ var X, oe;
1836
+ return f.createElement(Vr, { key: Y.id, icons: b, index: ve, toast: Y, defaultRichColors: p, duration: (X = v == null ? void 0 : v.duration) != null ? X : g, className: v == null ? void 0 : v.className, descriptionClassName: v == null ? void 0 : v.descriptionClassName, invert: r, visibleToasts: a, closeButton: (oe = v == null ? void 0 : v.closeButton) != null ? oe : c, interacting: Q, position: $, 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: fe, toasts: R.filter((le) => le.position == Y.position), heights: M.filter((le) => le.position == Y.position), setHeights: q, expandByDefault: l, gap: S, loadingIcon: P, expanded: G, pauseWhenPageIsHidden: H, cn: L });
1835
1837
  }));
1836
1838
  })) : null;
1837
1839
  };
@@ -1849,7 +1851,7 @@ function vn({ children: t }) {
1849
1851
  Ke.warning(c);
1850
1852
  }
1851
1853
  return /* @__PURE__ */ u.jsxs(
1852
- Tt.Provider,
1854
+ $t.Provider,
1853
1855
  {
1854
1856
  value: { errorToast: o, warningToast: l, successToast: r, infoToast: n },
1855
1857
  children: [