@arkyn/components 1.3.6 → 1.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -70,14 +70,14 @@ function An() {
70
70
  e.unshift("Warning: " + d), Function.prototype.apply.call(console[r], console, e);
71
71
  }
72
72
  }
73
- var H = !1, z = !1, J = !1, X = !1, Q = !1, re;
74
- re = Symbol.for("react.module.reference");
73
+ var H = !1, z = !1, q = !1, K = !1, J = !1, te;
74
+ te = Symbol.for("react.module.reference");
75
75
  function V(r) {
76
- return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || Q || r === l || r === o || r === y || X || r === b || H || z || J || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof === T || r.$$typeof === h || r.$$typeof === u || r.$$typeof === p || // This needs to include all possible module reference object
76
+ return !!(typeof r == "string" || typeof r == "function" || r === s || r === c || J || r === l || r === o || r === y || K || r === b || H || z || q || typeof r == "object" && r !== null && (r.$$typeof === k || r.$$typeof === T || r.$$typeof === h || r.$$typeof === u || r.$$typeof === p || // This needs to include all possible module reference object
77
77
  // types supported by any Flight configuration anywhere since
78
78
  // we don't know which Flight build this will end up being used
79
79
  // with.
80
- r.$$typeof === re || r.getModuleId !== void 0));
80
+ r.$$typeof === te || r.getModuleId !== void 0));
81
81
  }
82
82
  function F(r, d, g) {
83
83
  var S = r.displayName;
@@ -86,7 +86,7 @@ function An() {
86
86
  var Y = d.displayName || d.name || "";
87
87
  return Y !== "" ? g + "(" + Y + ")" : g;
88
88
  }
89
- function te(r) {
89
+ function ne(r) {
90
90
  return r.displayName || "Context";
91
91
  }
92
92
  function N(r) {
@@ -114,10 +114,10 @@ function An() {
114
114
  switch (r.$$typeof) {
115
115
  case u:
116
116
  var d = r;
117
- return te(d) + ".Consumer";
117
+ return ne(d) + ".Consumer";
118
118
  case h:
119
119
  var g = r;
120
- return te(g._context) + ".Provider";
120
+ return ne(g._context) + ".Provider";
121
121
  case p:
122
122
  return F(r, r.render, "ForwardRef");
123
123
  case T:
@@ -134,14 +134,14 @@ function An() {
134
134
  }
135
135
  return null;
136
136
  }
137
- var R = Object.assign, B = 0, K, ue, ee, se, G, D, x;
137
+ var R = Object.assign, B = 0, Z, se, ee, ie, G, D, x;
138
138
  function U() {
139
139
  }
140
140
  U.__reactDisabledLog = !0;
141
141
  function I() {
142
142
  {
143
143
  if (B === 0) {
144
- K = console.log, ue = console.info, ee = console.warn, se = console.error, G = console.group, D = console.groupCollapsed, x = console.groupEnd;
144
+ Z = console.log, se = console.info, ee = console.warn, ie = console.error, G = console.group, D = console.groupCollapsed, x = console.groupEnd;
145
145
  var r = {
146
146
  configurable: !0,
147
147
  enumerable: !0,
@@ -161,7 +161,7 @@ function An() {
161
161
  B++;
162
162
  }
163
163
  }
164
- function ce() {
164
+ function ue() {
165
165
  {
166
166
  if (B--, B === 0) {
167
167
  var r = {
@@ -171,16 +171,16 @@ function An() {
171
171
  };
172
172
  Object.defineProperties(console, {
173
173
  log: R({}, r, {
174
- value: K
174
+ value: Z
175
175
  }),
176
176
  info: R({}, r, {
177
- value: ue
177
+ value: se
178
178
  }),
179
179
  warn: R({}, r, {
180
180
  value: ee
181
181
  }),
182
182
  error: R({}, r, {
183
- value: se
183
+ value: ie
184
184
  }),
185
185
  group: R({}, r, {
186
186
  value: G
@@ -241,29 +241,29 @@ function An() {
241
241
  }), typeof Reflect == "object" && Reflect.construct) {
242
242
  try {
243
243
  Reflect.construct(f, []);
244
- } catch (q) {
245
- S = q;
244
+ } catch (X) {
245
+ S = X;
246
246
  }
247
247
  Reflect.construct(r, [], f);
248
248
  } else {
249
249
  try {
250
250
  f.call();
251
- } catch (q) {
252
- S = q;
251
+ } catch (X) {
252
+ S = X;
253
253
  }
254
254
  r.call(f.prototype);
255
255
  }
256
256
  } else {
257
257
  try {
258
258
  throw Error();
259
- } catch (q) {
260
- S = q;
259
+ } catch (X) {
260
+ S = X;
261
261
  }
262
262
  r();
263
263
  }
264
- } catch (q) {
265
- if (q && S && typeof q.stack == "string") {
266
- for (var i = q.stack.split(`
264
+ } catch (X) {
265
+ if (X && S && typeof X.stack == "string") {
266
+ for (var i = X.stack.split(`
267
267
  `), A = S.stack.split(`
268
268
  `), j = i.length - 1, L = A.length - 1; j >= 1 && L >= 0 && i[j] !== A[L]; )
269
269
  L--;
@@ -272,16 +272,16 @@ function An() {
272
272
  if (j !== 1 || L !== 1)
273
273
  do
274
274
  if (j--, L--, L < 0 || i[j] !== A[L]) {
275
- var ie = `
275
+ var le = `
276
276
  ` + i[j].replace(" at new ", " at ");
277
- return r.displayName && ie.includes("<anonymous>") && (ie = ie.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, ie), ie;
277
+ return r.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", r.displayName)), typeof r == "function" && we.set(r, le), le;
278
278
  }
279
279
  while (j >= 1 && L >= 0);
280
280
  break;
281
281
  }
282
282
  }
283
283
  } finally {
284
- Ie = !1, M.current = e, ce(), Error.prepareStackTrace = Y;
284
+ Ie = !1, M.current = e, ue(), Error.prepareStackTrace = Y;
285
285
  }
286
286
  var ge = r ? r.displayName || r.name : "", de = ge ? ve(ge) : "";
287
287
  return typeof r == "function" && we.set(r, de), de;
@@ -380,7 +380,7 @@ function An() {
380
380
  __source: !0
381
381
  }, He, Fe, Ce;
382
382
  Ce = {};
383
- function le(r) {
383
+ function ce(r) {
384
384
  if (me.call(r, "ref")) {
385
385
  var d = Object.getOwnPropertyDescriptor(r, "ref").get;
386
386
  if (d && d.isReactWarning)
@@ -424,7 +424,7 @@ function An() {
424
424
  });
425
425
  }
426
426
  }
427
- var Z = function(r, d, g, S, Y, e, f) {
427
+ var Q = function(r, d, g, S, Y, e, f) {
428
428
  var i = {
429
429
  // This tag allows us to uniquely identify this as a React Element
430
430
  $$typeof: t,
@@ -456,7 +456,7 @@ function An() {
456
456
  function Ee(r, d, g, S, Y) {
457
457
  {
458
458
  var e, f = {}, i = null, A = null;
459
- g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), le(d) && (A = d.ref, Ye(d, Y));
459
+ g !== void 0 && (Ue(g), i = "" + g), ze(d) && (Ue(d.key), i = "" + d.key), ce(d) && (A = d.ref, Ye(d, Y));
460
460
  for (e in d)
461
461
  me.call(d, e) && !We.hasOwnProperty(e) && (f[e] = d[e]);
462
462
  if (r && r.defaultProps) {
@@ -468,16 +468,16 @@ function An() {
468
468
  var L = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
469
469
  i && E(f, L), A && oe(f, L);
470
470
  }
471
- return Z(r, i, A, Y, S, Me.current, f);
471
+ return Q(r, i, A, Y, S, Me.current, f);
472
472
  }
473
473
  }
474
- var he = _.ReactCurrentOwner, ne = _.ReactDebugCurrentFrame;
474
+ var he = _.ReactCurrentOwner, re = _.ReactDebugCurrentFrame;
475
475
  function be(r) {
476
476
  if (r) {
477
477
  var d = r._owner, g = ae(r.type, r._source, d ? d.type : null);
478
- ne.setExtraStackFrame(g);
478
+ re.setExtraStackFrame(g);
479
479
  } else
480
- ne.setExtraStackFrame(null);
480
+ re.setExtraStackFrame(null);
481
481
  }
482
482
  var st;
483
483
  st = !1;
@@ -605,24 +605,24 @@ Check the top-level render call using <` + g + ">.");
605
605
  if (L == null)
606
606
  return L;
607
607
  if (f) {
608
- var ie = d.children;
609
- if (ie !== void 0)
608
+ var le = d.children;
609
+ if (le !== void 0)
610
610
  if (S)
611
- if (Se(ie)) {
612
- for (var ge = 0; ge < ie.length; ge++)
613
- ct(ie[ge], r);
614
- Object.freeze && Object.freeze(ie);
611
+ if (Se(le)) {
612
+ for (var ge = 0; ge < le.length; ge++)
613
+ ct(le[ge], r);
614
+ Object.freeze && Object.freeze(le);
615
615
  } else
616
616
  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.");
617
617
  else
618
- ct(ie, r);
618
+ ct(le, r);
619
619
  }
620
620
  if (me.call(d, "key")) {
621
- var de = N(r), q = Object.keys(d).filter(function(xn) {
621
+ var de = N(r), X = Object.keys(d).filter(function(xn) {
622
622
  return xn !== "key";
623
- }), rt = q.length > 0 ? "{key: someKey, " + q.join(": ..., ") + ": ...}" : "{key: someKey}";
623
+ }), rt = X.length > 0 ? "{key: someKey, " + X.join(": ..., ") + ": ...}" : "{key: someKey}";
624
624
  if (!nt[de + rt]) {
625
- var xt = q.length > 0 ? "{" + q.join(": ..., ") + ": ...}" : "{}";
625
+ var xt = X.length > 0 ? "{" + X.join(": ..., ") + ": ...}" : "{}";
626
626
  w(`A props object containing a "key" prop is being spread into JSX:
627
627
  let props = %s;
628
628
  <%s {...props} />
@@ -857,9 +857,9 @@ function jn(n, t) {
857
857
  } = n;
858
858
  function H(R) {
859
859
  let B = Bt(R);
860
- const K = dn(B);
860
+ const Z = dn(B);
861
861
  if (!(B.length > fn))
862
- return B = un(B, Ut[K]), B;
862
+ return B = un(B, Ut[Z]), B;
863
863
  }
864
864
  const z = y ? "right" : "left", F = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || b || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, N = { md: 20, lg: 20 }[l];
865
865
  return {
@@ -898,20 +898,20 @@ function Dn(n) {
898
898
  readOnly: C,
899
899
  onFocus: H,
900
900
  onBlur: z,
901
- RightIcon: J,
902
- Spinner: X,
903
- onChange: Q,
904
- value: re,
901
+ RightIcon: q,
902
+ Spinner: K,
903
+ onChange: J,
904
+ value: te,
905
905
  defaultValue: V,
906
906
  ...F
907
- } = jn({ ...n, id: c, isError: p }, t), [te, N] = De(V), R = w && !_, B = J && !_, K = W === "left" && _, ue = W === "right" && _;
907
+ } = jn({ ...n, id: c, isError: p }, t), [ne, N] = De(V), R = w && !_, B = q && !_, Z = W === "left" && _, se = W === "right" && _;
908
908
  function ee() {
909
909
  o || !(u != null && u.current) || (a(!0), u.current.focus());
910
910
  }
911
- function se(x) {
911
+ function ie(x) {
912
912
  let U = Bt(x.target.value);
913
913
  const I = dn(U);
914
- U.length > fn || (U = un(U, Ut[I]), x.target.value = U, N(U), Q && Q(x));
914
+ U.length > fn || (U = un(U, Ut[I]), x.target.value = U, N(U), J && J(x));
915
915
  }
916
916
  function G(x) {
917
917
  a(!0), H && H(x);
@@ -928,7 +928,7 @@ function Dn(n) {
928
928
  className: k,
929
929
  children: [
930
930
  b,
931
- K && X,
931
+ Z && K,
932
932
  R && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
933
933
  /* @__PURE__ */ m.jsx(
934
934
  "input",
@@ -936,15 +936,15 @@ function Dn(n) {
936
936
  disabled: o || _,
937
937
  readOnly: C,
938
938
  ref: u,
939
- value: re || te,
939
+ value: te || ne,
940
940
  onFocus: G,
941
- onChange: se,
941
+ onChange: ie,
942
942
  onBlur: D,
943
943
  ...F
944
944
  }
945
945
  ),
946
- B && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
947
- ue && X,
946
+ B && /* @__PURE__ */ m.jsx(q, { size: P, strokeWidth: 2.5 }),
947
+ se && K,
948
948
  O
949
949
  ]
950
950
  }
@@ -1020,7 +1020,9 @@ function Bn(n) {
1020
1020
  p > Number(s) || l(p);
1021
1021
  }
1022
1022
  function Un(n) {
1023
- const [t, a] = De(!1), [s, l] = De(n.defaultValue || 0), c = at(null), { inputRef: h, id: u, error: p } = Ke(), o = h || c, y = n.isError || !!p, {
1023
+ const [t, a] = De(!1), [s, l] = De(
1024
+ n.defaultValue * 100 || 0
1025
+ ), c = at(null), { inputRef: h, id: u, error: p } = Ke(), o = h || c, y = n.isError || !!p, {
1024
1026
  disabled: T,
1025
1027
  title: k,
1026
1028
  style: b,
@@ -1032,28 +1034,28 @@ function Un(n) {
1032
1034
  isLoading: C,
1033
1035
  LeftIcon: H,
1034
1036
  readOnly: z,
1035
- onFocus: J,
1036
- onBlur: X,
1037
- RightIcon: Q,
1038
- Spinner: re,
1037
+ onFocus: q,
1038
+ onBlur: K,
1039
+ RightIcon: J,
1040
+ Spinner: te,
1039
1041
  value: V,
1040
1042
  max: F,
1041
- onKeyDown: te,
1043
+ onKeyDown: ne,
1042
1044
  onChange: N,
1043
1045
  showCents: R,
1044
1046
  ...B
1045
- } = Mn({ ...n, id: u, isError: y }, t), K = H && !C, ue = Q && !C, ee = w === "left" && C, se = w === "right" && C;
1047
+ } = Mn({ ...n, id: u, isError: y }, t), Z = H && !C, se = J && !C, ee = w === "left" && C, ie = w === "right" && C;
1046
1048
  function G() {
1047
1049
  T || !(o != null && o.current) || (a(!0), o.current.focus());
1048
1050
  }
1049
1051
  function D(I) {
1050
- Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), N && N(s), te && te(I);
1052
+ Bn({ currencyValue: s, event: I, max: F, setCurrencyValue: l }), N && N(s / 100), ne && ne(I);
1051
1053
  }
1052
1054
  function x(I) {
1053
- a(!0), J && J(I);
1055
+ a(!0), q && q(I);
1054
1056
  }
1055
1057
  function U(I) {
1056
- a(!1), X && X(I);
1058
+ a(!1), K && K(I);
1057
1059
  }
1058
1060
  return /* @__PURE__ */ m.jsxs(
1059
1061
  "section",
@@ -1064,8 +1066,8 @@ function Un(n) {
1064
1066
  className: O,
1065
1067
  children: [
1066
1068
  P,
1067
- ee && re,
1068
- K && /* @__PURE__ */ m.jsx(H, { size: _, strokeWidth: 2.5 }),
1069
+ ee && te,
1070
+ Z && /* @__PURE__ */ m.jsx(H, { size: _, strokeWidth: 2.5 }),
1069
1071
  /* @__PURE__ */ m.jsx(
1070
1072
  "input",
1071
1073
  {
@@ -1081,8 +1083,8 @@ function Un(n) {
1081
1083
  ...B
1082
1084
  }
1083
1085
  ),
1084
- se && re,
1085
- ue && /* @__PURE__ */ m.jsx(Q, { size: _, strokeWidth: 2.5 }),
1086
+ ie && te,
1087
+ se && /* @__PURE__ */ m.jsx(J, { size: _, strokeWidth: 2.5 }),
1086
1088
  W
1087
1089
  ]
1088
1090
  }
@@ -1147,18 +1149,18 @@ function Yn(n) {
1147
1149
  readOnly: C,
1148
1150
  onFocus: H,
1149
1151
  onBlur: z,
1150
- RightIcon: J,
1151
- Spinner: X,
1152
- ...Q
1153
- } = Wn({ ...n, id: c, isError: p }, t), re = w && !_, V = J && !_, F = W === "left" && _, te = W === "right" && _;
1152
+ RightIcon: q,
1153
+ Spinner: K,
1154
+ ...J
1155
+ } = Wn({ ...n, id: c, isError: p }, t), te = w && !_, V = q && !_, F = W === "left" && _, ne = W === "right" && _;
1154
1156
  function N() {
1155
1157
  o || !(u != null && u.current) || (a(!0), u.current.focus());
1156
1158
  }
1157
- function R(K) {
1158
- a(!0), H && H(K);
1159
+ function R(Z) {
1160
+ a(!0), H && H(Z);
1159
1161
  }
1160
- function B(K) {
1161
- a(!1), z && z(K);
1162
+ function B(Z) {
1163
+ a(!1), z && z(Z);
1162
1164
  }
1163
1165
  return /* @__PURE__ */ m.jsxs(
1164
1166
  "section",
@@ -1169,8 +1171,8 @@ function Yn(n) {
1169
1171
  className: k,
1170
1172
  children: [
1171
1173
  b,
1172
- F && X,
1173
- re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1174
+ F && K,
1175
+ te && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1174
1176
  /* @__PURE__ */ m.jsx(
1175
1177
  kn,
1176
1178
  {
@@ -1178,11 +1180,11 @@ function Yn(n) {
1178
1180
  ref: u,
1179
1181
  onFocus: R,
1180
1182
  onBlur: B,
1181
- ...Q
1183
+ ...J
1182
1184
  }
1183
1185
  ),
1184
- V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1185
- te && X,
1186
+ V && /* @__PURE__ */ m.jsx(q, { size: P, strokeWidth: 2.5 }),
1187
+ ne && K,
1186
1188
  O
1187
1189
  ]
1188
1190
  }
@@ -1207,10 +1209,10 @@ function Vn(n, t) {
1207
1209
  style: W,
1208
1210
  onChange: _,
1209
1211
  ...w
1210
- } = n, C = y ? "right" : "left", re = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, F = { md: 20, lg: 20 }[l];
1212
+ } = n, C = y ? "right" : "left", te = `arkyn_input ${u ? "hasPrefix" : ""} ${p ? "hasSufix" : ""} ${h} ${l} ${T || k || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, F = { md: 20, lg: 20 }[l];
1211
1213
  return {
1212
1214
  isLoading: a,
1213
- className: re,
1215
+ className: te,
1214
1216
  prefix: Ge(u, F, "prefix"),
1215
1217
  sufix: Ge(p, F, "sufix"),
1216
1218
  LeftIcon: o,
@@ -1243,43 +1245,45 @@ function Gn(n) {
1243
1245
  readOnly: C,
1244
1246
  onFocus: H,
1245
1247
  onBlur: z,
1246
- RightIcon: J,
1247
- Spinner: X,
1248
- ...Q
1249
- } = Vn({ ...n, id: c, isError: p }, t), re = w && !_, V = J && !_, F = W === "left" && _, te = W === "right" && _;
1250
- function N() {
1248
+ RightIcon: q,
1249
+ type: K,
1250
+ Spinner: J,
1251
+ ...te
1252
+ } = Vn({ ...n, id: c, isError: p }, t), V = w && !_, F = q && !_, ne = W === "left" && _, N = W === "right" && _;
1253
+ function R() {
1251
1254
  o || !(u != null && u.current) || (a(!0), u.current.focus());
1252
1255
  }
1253
- function R(K) {
1254
- a(!0), H && H(K);
1256
+ function B(se) {
1257
+ a(!0), H && H(se);
1255
1258
  }
1256
- function B(K) {
1257
- a(!1), z && z(K);
1259
+ function Z(se) {
1260
+ a(!1), z && z(se);
1258
1261
  }
1259
- return /* @__PURE__ */ m.jsxs(
1262
+ return K === "hidden" ? /* @__PURE__ */ m.jsx("input", { type: "hidden", ...te }) : /* @__PURE__ */ m.jsxs(
1260
1263
  "section",
1261
1264
  {
1262
1265
  title: y,
1263
1266
  style: T,
1264
- onClick: N,
1267
+ onClick: R,
1265
1268
  className: k,
1266
1269
  children: [
1267
1270
  b,
1268
- F && X,
1269
- re && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1271
+ ne && J,
1272
+ V && /* @__PURE__ */ m.jsx(w, { size: P, strokeWidth: 2.5 }),
1270
1273
  /* @__PURE__ */ m.jsx(
1271
1274
  "input",
1272
1275
  {
1273
1276
  disabled: o || _,
1274
1277
  readOnly: C,
1275
1278
  ref: u,
1276
- onFocus: R,
1277
- onBlur: B,
1278
- ...Q
1279
+ onFocus: B,
1280
+ onBlur: Z,
1281
+ type: K,
1282
+ ...te
1279
1283
  }
1280
1284
  ),
1281
- V && /* @__PURE__ */ m.jsx(J, { size: P, strokeWidth: 2.5 }),
1282
- te && X,
1285
+ F && /* @__PURE__ */ m.jsx(q, { size: P, strokeWidth: 2.5 }),
1286
+ N && J,
1283
1287
  O
1284
1288
  ]
1285
1289
  }
@@ -1313,11 +1317,11 @@ function Xn(n, t) {
1313
1317
  style: O,
1314
1318
  isSearchable: P = !1,
1315
1319
  ...W
1316
- } = n, z = `arkyn_select ${u ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, X = { md: 20, lg: 20 }[l];
1320
+ } = n, z = `arkyn_select ${u ? "hasPrefix" : ""} ${h} ${l} ${o || y || a ? "opacity" : ""} ${s ? "errored" : ""} ${t ? "focused" : ""} ${c}`, K = { md: 20, lg: 20 }[l];
1317
1321
  return {
1318
1322
  isLoading: a,
1319
1323
  className: z,
1320
- prefix: Kn(u, X, "prefix"),
1324
+ prefix: Kn(u, K, "prefix"),
1321
1325
  LeftIcon: p,
1322
1326
  disabled: o,
1323
1327
  readOnly: y,
@@ -1326,13 +1330,13 @@ function Xn(n, t) {
1326
1330
  title: b,
1327
1331
  style: O,
1328
1332
  isSearchable: P,
1329
- iconSize: X,
1330
- Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: X, strokeWidth: 2.5 }),
1333
+ iconSize: K,
1334
+ Spinner: /* @__PURE__ */ m.jsx(Qe, { className: "spinner", size: K, strokeWidth: 2.5 }),
1331
1335
  ...W
1332
1336
  };
1333
1337
  }
1334
1338
  function oa(n) {
1335
- var ce;
1339
+ var ue;
1336
1340
  const [t, a] = De(!1), { inputRef: s, id: l, error: c } = Ke(), h = at(null), u = s || h, p = n.isError || !!c, {
1337
1341
  disabled: o,
1338
1342
  title: y,
@@ -1347,32 +1351,32 @@ function oa(n) {
1347
1351
  readOnly: C,
1348
1352
  onFocus: H,
1349
1353
  onBlur: z,
1350
- Spinner: J,
1351
- name: X,
1352
- isSearchable: Q,
1353
- placeholder: re,
1354
+ Spinner: q,
1355
+ name: K,
1356
+ isSearchable: J,
1357
+ placeholder: te,
1354
1358
  onSelect: V,
1355
1359
  options: F,
1356
- optionMaxHeight: te,
1360
+ optionMaxHeight: ne,
1357
1361
  ...N
1358
- } = Xn({ ...n, id: l, isError: p }, t), [R, B] = De(w), [K, ue] = De("");
1362
+ } = Xn({ ...n, id: l, isError: p }, t), [R, B] = De(w), [Z, se] = De("");
1359
1363
  function ee() {
1360
1364
  o || !(u != null && u.current) || (a(!0), u.current.focus());
1361
1365
  }
1362
- function se(M) {
1366
+ function ie(M) {
1363
1367
  a(!0), H && H(M);
1364
1368
  }
1365
1369
  function G() {
1366
1370
  a(!1), z && u.current && u.current.blur();
1367
1371
  }
1368
- const D = typeof _ == "string" ? _ : R, x = ((ce = F.find((M) => M.value === D)) == null ? void 0 : ce.label) || "", U = () => {
1369
- if (Q) {
1372
+ const D = typeof _ == "string" ? _ : R, x = ((ue = F.find((M) => M.value === D)) == null ? void 0 : ue.label) || "", U = () => {
1373
+ if (J) {
1370
1374
  if (!t && x)
1371
1375
  return !0;
1372
1376
  if (!t && !x || t)
1373
1377
  return !1;
1374
1378
  }
1375
- if (!Q) {
1379
+ if (!J) {
1376
1380
  if (!t && x)
1377
1381
  return !0;
1378
1382
  if (!t && !x)
@@ -1382,7 +1386,7 @@ function oa(n) {
1382
1386
  if (t && !x)
1383
1387
  return !1;
1384
1388
  }
1385
- }, I = F.filter((M) => Q ? M.label.toLowerCase().includes(K.toLowerCase()) : !0);
1389
+ }, I = F.filter((M) => J ? M.label.toLowerCase().includes(Z.toLowerCase()) : !0);
1386
1390
  return /* @__PURE__ */ m.jsxs(m.Fragment, { children: [
1387
1391
  /* @__PURE__ */ m.jsxs(
1388
1392
  "section",
@@ -1398,22 +1402,22 @@ function oa(n) {
1398
1402
  "input",
1399
1403
  {
1400
1404
  disabled: o || P,
1401
- readOnly: !Q,
1402
- value: K || "",
1403
- placeholder: x || re,
1405
+ readOnly: !J,
1406
+ value: Z || "",
1407
+ placeholder: x || te,
1404
1408
  ref: u,
1405
- onFocus: se,
1406
- onBlur: () => ue(""),
1409
+ onFocus: ie,
1410
+ onBlur: () => se(""),
1407
1411
  ...N,
1408
- onChange: (M) => ue(M.target.value)
1412
+ onChange: (M) => se(M.target.value)
1409
1413
  }
1410
1414
  ),
1411
- /* @__PURE__ */ m.jsx("input", { type: "hidden", name: X, value: D || "", readOnly: !0 }),
1415
+ /* @__PURE__ */ m.jsx("input", { type: "hidden", name: K, value: D || "", readOnly: !0 }),
1412
1416
  t && /* @__PURE__ */ m.jsxs(
1413
1417
  "ul",
1414
1418
  {
1415
1419
  className: "arkyn_select_content",
1416
- style: { overflow: "auto", maxHeight: te },
1420
+ style: { overflow: "auto", maxHeight: ne },
1417
1421
  children: [
1418
1422
  I.map(({ label: M, value: pe }) => /* @__PURE__ */ m.jsxs(
1419
1423
  "li",
@@ -1442,7 +1446,7 @@ function oa(n) {
1442
1446
  strokeWidth: 2.5
1443
1447
  }
1444
1448
  ),
1445
- P && J
1449
+ P && q
1446
1450
  ]
1447
1451
  }
1448
1452
  ),
@@ -1713,14 +1717,14 @@ function bn() {
1713
1717
  let e = a.createElement("template");
1714
1718
  e.content && e.content.ownerDocument && (a = e.content.ownerDocument);
1715
1719
  }
1716
- let C, H = "", { implementation: z, createNodeIterator: J, createDocumentFragment: X, getElementsByTagName: Q } = a, { importNode: re } = s, V = {};
1720
+ let C, H = "", { implementation: z, createNodeIterator: q, createDocumentFragment: K, getElementsByTagName: J } = a, { importNode: te } = s, V = {};
1717
1721
  t.isSupported = typeof hn == "function" && typeof w == "function" && z && z.createHTMLDocument !== void 0;
1718
- let { MUSTACHE_EXPR: F, ERB_EXPR: te, TMPLIT_EXPR: N, DATA_ATTR: R, ARIA_ATTR: B, IS_SCRIPT_OR_DATA: K, ATTR_WHITESPACE: ue, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: se } = rn, G = null, D = $({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, U = $({}, [...tn, ...Dt, ...nn, ...St]), I = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), ce = null, M = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, ae = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = $({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", le = "http://www.w3.org/1999/xhtml", ze = le, Ye = !1, E = null, oe = $({}, [Fe, Ce, le], Lt), Z = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", ne = null, be = null, st = a.createElement("form"), et = function(e) {
1722
+ let { MUSTACHE_EXPR: F, ERB_EXPR: ne, TMPLIT_EXPR: N, DATA_ATTR: R, ARIA_ATTR: B, IS_SCRIPT_OR_DATA: Z, ATTR_WHITESPACE: se, CUSTOM_ELEMENT: ee } = rn, { IS_ALLOWED_URI: ie } = rn, G = null, D = $({}, [...Qt, ...Ot, ...Pt, ...jt, ...en]), x = null, U = $({}, [...tn, ...Dt, ...nn, ...St]), I = Object.seal(gn(null, { tagNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, attributeNameCheck: { writable: !0, configurable: !1, enumerable: !0, value: null }, allowCustomizedBuiltInElements: { writable: !0, configurable: !1, enumerable: !0, value: !1 } })), ue = null, M = null, pe = !0, ve = !0, Ie = !1, we = !0, Ae = !1, fe = !1, Xe = !1, qe = !1, ae = !1, me = !1, $e = !1, Je = !0, Ne = !1, ot = "user-content-", Be = !0, Se = !1, ye = {}, Le = null, ke = $({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]), Ue = null, Me = $({}, ["audio", "video", "img", "source", "image", "track"]), We = null, He = $({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Fe = "http://www.w3.org/1998/Math/MathML", Ce = "http://www.w3.org/2000/svg", ce = "http://www.w3.org/1999/xhtml", ze = ce, Ye = !1, E = null, oe = $({}, [Fe, Ce, ce], Lt), Q = null, Ee = ["application/xhtml+xml", "text/html"], he = "text/html", re = null, be = null, st = a.createElement("form"), et = function(e) {
1719
1723
  return e instanceof RegExp || e instanceof Function;
1720
1724
  }, tt = function() {
1721
1725
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1722
1726
  if (!(be && be === e)) {
1723
- if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Z = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, ne = Z === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? $({}, e.ALLOWED_TAGS, ne) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, ne) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, ne) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, ne) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, ne) : ke, ce = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, ne) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, e.FORBID_ATTR, ne) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, ae = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, se = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || le, I = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (ae = !0), ye && (G = $({}, en), x = [], ye.html === !0 && ($(G, Qt), $(x, tn)), ye.svg === !0 && ($(G, Ot), $(x, Dt), $(x, St)), ye.svgFilters === !0 && ($(G, Pt), $(x, Dt), $(x, St)), ye.mathMl === !0 && ($(G, jt), $(x, nn), $(x, St))), e.ADD_TAGS && (G === D && (G = Ze(G)), $(G, e.ADD_TAGS, ne)), e.ADD_ATTR && (x === U && (x = Ze(x)), $(x, e.ADD_ATTR, ne)), e.ADD_URI_SAFE_ATTR && $(We, e.ADD_URI_SAFE_ATTR, ne), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), $(Le, e.FORBID_CONTENTS, ne)), Be && (G["#text"] = !0), fe && $(G, ["html", "head", "body"]), G.table && ($(G, ["tbody"]), delete ce.tbody), e.TRUSTED_TYPES_POLICY) {
1727
+ if ((!e || typeof e != "object") && (e = {}), e = Ze(e), Q = Ee.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? he : e.PARSER_MEDIA_TYPE, re = Q === "application/xhtml+xml" ? Lt : Nt, G = Pe(e, "ALLOWED_TAGS") ? $({}, e.ALLOWED_TAGS, re) : D, x = Pe(e, "ALLOWED_ATTR") ? $({}, e.ALLOWED_ATTR, re) : U, E = Pe(e, "ALLOWED_NAMESPACES") ? $({}, e.ALLOWED_NAMESPACES, Lt) : oe, We = Pe(e, "ADD_URI_SAFE_ATTR") ? $(Ze(He), e.ADD_URI_SAFE_ATTR, re) : He, Ue = Pe(e, "ADD_DATA_URI_TAGS") ? $(Ze(Me), e.ADD_DATA_URI_TAGS, re) : Me, Le = Pe(e, "FORBID_CONTENTS") ? $({}, e.FORBID_CONTENTS, re) : ke, ue = Pe(e, "FORBID_TAGS") ? $({}, e.FORBID_TAGS, re) : {}, M = Pe(e, "FORBID_ATTR") ? $({}, e.FORBID_ATTR, re) : {}, ye = Pe(e, "USE_PROFILES") ? e.USE_PROFILES : !1, pe = e.ALLOW_ARIA_ATTR !== !1, ve = e.ALLOW_DATA_ATTR !== !1, Ie = e.ALLOW_UNKNOWN_PROTOCOLS || !1, we = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Ae = e.SAFE_FOR_TEMPLATES || !1, fe = e.WHOLE_DOCUMENT || !1, ae = e.RETURN_DOM || !1, me = e.RETURN_DOM_FRAGMENT || !1, $e = e.RETURN_TRUSTED_TYPE || !1, qe = e.FORCE_BODY || !1, Je = e.SANITIZE_DOM !== !1, Ne = e.SANITIZE_NAMED_PROPS || !1, Be = e.KEEP_CONTENT !== !1, Se = e.IN_PLACE || !1, ie = e.ALLOWED_URI_REGEXP || vn, ze = e.NAMESPACE || ce, I = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (I.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (I.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (I.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Ae && (ve = !1), me && (ae = !0), ye && (G = $({}, en), x = [], ye.html === !0 && ($(G, Qt), $(x, tn)), ye.svg === !0 && ($(G, Ot), $(x, Dt), $(x, St)), ye.svgFilters === !0 && ($(G, Pt), $(x, Dt), $(x, St)), ye.mathMl === !0 && ($(G, jt), $(x, nn), $(x, St))), e.ADD_TAGS && (G === D && (G = Ze(G)), $(G, e.ADD_TAGS, re)), e.ADD_ATTR && (x === U && (x = Ze(x)), $(x, e.ADD_ATTR, re)), e.ADD_URI_SAFE_ATTR && $(We, e.ADD_URI_SAFE_ATTR, re), e.FORBID_CONTENTS && (Le === ke && (Le = Ze(Le)), $(Le, e.FORBID_CONTENTS, re)), Be && (G["#text"] = !0), fe && $(G, ["html", "head", "body"]), G.table && ($(G, ["tbody"]), delete ue.tbody), e.TRUSTED_TYPES_POLICY) {
1724
1728
  if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function")
1725
1729
  throw ht('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
1726
1730
  if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function")
@@ -1734,7 +1738,7 @@ function bn() {
1734
1738
  let f = w(e);
1735
1739
  (!f || !f.tagName) && (f = { namespaceURI: ze, tagName: "template" });
1736
1740
  let i = Nt(e.tagName), A = Nt(f.tagName);
1737
- return E[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === le ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (A === "annotation-xml" || vt[A]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === le ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[A] : !!ct[i] : e.namespaceURI === le ? f.namespaceURI === Ce && !it[A] || f.namespaceURI === Fe && !vt[A] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Z === "application/xhtml+xml" && E[e.namespaceURI]) : !1;
1741
+ return E[e.namespaceURI] ? e.namespaceURI === Ce ? f.namespaceURI === ce ? i === "svg" : f.namespaceURI === Fe ? i === "svg" && (A === "annotation-xml" || vt[A]) : !!lt[i] : e.namespaceURI === Fe ? f.namespaceURI === ce ? i === "math" : f.namespaceURI === Ce ? i === "math" && it[A] : !!ct[i] : e.namespaceURI === ce ? f.namespaceURI === Ce && !it[A] || f.namespaceURI === Fe && !vt[A] ? !1 : !ct[i] && (Rt[i] || !lt[i]) : !!(Q === "application/xhtml+xml" && E[e.namespaceURI]) : !1;
1738
1742
  }, Ve = function(e) {
1739
1743
  mt(t.removed, { element: e });
1740
1744
  try {
@@ -1767,11 +1771,11 @@ function bn() {
1767
1771
  let L = Zt(e, /^[\r\n\t ]+/);
1768
1772
  i = L && L[0];
1769
1773
  }
1770
- Z === "application/xhtml+xml" && ze === le && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1774
+ Q === "application/xhtml+xml" && ze === ce && (e = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + e + "</body></html>");
1771
1775
  let A = C ? C.createHTML(e) : e;
1772
- if (ze === le)
1776
+ if (ze === ce)
1773
1777
  try {
1774
- f = new k().parseFromString(A, Z);
1778
+ f = new k().parseFromString(A, Q);
1775
1779
  } catch {
1776
1780
  }
1777
1781
  if (!f || !f.documentElement) {
@@ -1782,9 +1786,9 @@ function bn() {
1782
1786
  }
1783
1787
  }
1784
1788
  let j = f.body || f.documentElement;
1785
- return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === le ? Q.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
1789
+ return e && i && j.insertBefore(a.createTextNode(i), j.childNodes[0] || null), ze === ce ? J.call(f, fe ? "html" : "body")[0] : fe ? f.documentElement : j;
1786
1790
  }, yt = function(e) {
1787
- return J.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1791
+ return q.call(e.ownerDocument || e, e, o.SHOW_ELEMENT | o.SHOW_COMMENT | o.SHOW_TEXT | o.SHOW_PROCESSING_INSTRUCTION, null);
1788
1792
  }, At = function(e) {
1789
1793
  return e instanceof T && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof y) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
1790
1794
  }, bt = function(e) {
@@ -1797,23 +1801,23 @@ function bn() {
1797
1801
  let f = null;
1798
1802
  if (Oe("beforeSanitizeElements", e, null), At(e))
1799
1803
  return Ve(e), !0;
1800
- let i = ne(e.nodeName);
1804
+ let i = re(e.nodeName);
1801
1805
  if (Oe("uponSanitizeElement", e, { tagName: i, allowedTags: G }), e.hasChildNodes() && !bt(e.firstElementChild) && Te(/<[/\w]/g, e.innerHTML) && Te(/<[/\w]/g, e.textContent))
1802
1806
  return Ve(e), !0;
1803
- if (!G[i] || ce[i]) {
1804
- if (!ce[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
1807
+ if (!G[i] || ue[i]) {
1808
+ if (!ue[i] && g(i) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i)))
1805
1809
  return !1;
1806
1810
  if (Be && !Le[i]) {
1807
1811
  let A = w(e) || e.parentNode, j = _(e) || e.childNodes;
1808
1812
  if (j && A) {
1809
1813
  let L = j.length;
1810
- for (let ie = L - 1; ie >= 0; --ie)
1811
- A.insertBefore(P(j[ie], !0), W(e));
1814
+ for (let le = L - 1; le >= 0; --le)
1815
+ A.insertBefore(P(j[le], !0), W(e));
1812
1816
  }
1813
1817
  }
1814
1818
  return Ve(e), !0;
1815
1819
  }
1816
- return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([F, te, N], (A) => {
1820
+ return e instanceof p && !It(e) || (i === "noscript" || i === "noembed" || i === "noframes") && Te(/<\/no(script|embed|frames)/i, e.innerHTML) ? (Ve(e), !0) : (Ae && e.nodeType === 3 && (f = e.textContent, wt([F, ne, N], (A) => {
1817
1821
  f = pt(f, A, " ");
1818
1822
  }), e.textContent !== f && (mt(t.removed, { element: e.cloneNode() }), e.textContent = f)), Oe("afterSanitizeElements", e, null), !1);
1819
1823
  }, d = function(e, f, i) {
@@ -1823,7 +1827,7 @@ function bn() {
1823
1827
  if (!x[f] || M[f]) {
1824
1828
  if (!(g(e) && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, e) || I.tagNameCheck instanceof Function && I.tagNameCheck(e)) && (I.attributeNameCheck instanceof RegExp && Te(I.attributeNameCheck, f) || I.attributeNameCheck instanceof Function && I.attributeNameCheck(f)) || f === "is" && I.allowCustomizedBuiltInElements && (I.tagNameCheck instanceof RegExp && Te(I.tagNameCheck, i) || I.tagNameCheck instanceof Function && I.tagNameCheck(i))))
1825
1829
  return !1;
1826
- } else if (!We[f] && !Te(se, pt(i, ue, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(K, pt(i, ue, ""))) && i)
1830
+ } else if (!We[f] && !Te(ie, pt(i, se, "")) && !((f === "src" || f === "xlink:href" || f === "href") && e !== "script" && ar(i, "data:") === 0 && Ue[e]) && !(Ie && !Te(Z, pt(i, se, ""))) && i)
1827
1831
  return !1;
1828
1832
  }
1829
1833
  return !0;
@@ -1836,31 +1840,31 @@ function bn() {
1836
1840
  return;
1837
1841
  let i = { attrName: "", attrValue: "", keepAttr: !0, allowedAttributes: x }, A = f.length;
1838
1842
  for (; A--; ) {
1839
- let j = f[A], { name: L, namespaceURI: ie, value: ge } = j, de = ne(L), q = L === "value" ? ge : or(ge);
1840
- if (i.attrName = de, i.attrValue = q, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), q = i.attrValue, i.forceKeepAttr || (nt(L, e), !i.keepAttr))
1843
+ let j = f[A], { name: L, namespaceURI: le, value: ge } = j, de = re(L), X = L === "value" ? ge : or(ge);
1844
+ if (i.attrName = de, i.attrValue = X, i.keepAttr = !0, i.forceKeepAttr = void 0, Oe("uponSanitizeAttribute", e, i), X = i.attrValue, i.forceKeepAttr || (nt(L, e), !i.keepAttr))
1841
1845
  continue;
1842
- if (!we && Te(/\/>/i, q)) {
1846
+ if (!we && Te(/\/>/i, X)) {
1843
1847
  nt(L, e);
1844
1848
  continue;
1845
1849
  }
1846
- Ae && wt([F, te, N], (xt) => {
1847
- q = pt(q, xt, " ");
1850
+ Ae && wt([F, ne, N], (xt) => {
1851
+ X = pt(X, xt, " ");
1848
1852
  });
1849
- let rt = ne(e.nodeName);
1850
- if (d(rt, de, q)) {
1851
- if (Ne && (de === "id" || de === "name") && (nt(L, e), q = ot + q), C && typeof b == "object" && typeof b.getAttributeType == "function" && !ie)
1853
+ let rt = re(e.nodeName);
1854
+ if (d(rt, de, X)) {
1855
+ if (Ne && (de === "id" || de === "name") && (nt(L, e), X = ot + X), C && typeof b == "object" && typeof b.getAttributeType == "function" && !le)
1852
1856
  switch (b.getAttributeType(rt, de)) {
1853
1857
  case "TrustedHTML": {
1854
- q = C.createHTML(q);
1858
+ X = C.createHTML(X);
1855
1859
  break;
1856
1860
  }
1857
1861
  case "TrustedScriptURL": {
1858
- q = C.createScriptURL(q);
1862
+ X = C.createScriptURL(X);
1859
1863
  break;
1860
1864
  }
1861
1865
  }
1862
1866
  try {
1863
- ie ? e.setAttributeNS(ie, L, q) : e.setAttribute(L, q), Jt(t.removed);
1867
+ le ? e.setAttributeNS(le, L, X) : e.setAttribute(L, X), Jt(t.removed);
1864
1868
  } catch {
1865
1869
  }
1866
1870
  }
@@ -1884,8 +1888,8 @@ function bn() {
1884
1888
  return e;
1885
1889
  if (Xe || tt(f), t.removed = [], typeof e == "string" && (Se = !1), Se) {
1886
1890
  if (e.nodeName) {
1887
- let de = ne(e.nodeName);
1888
- if (!G[de] || ce[de])
1891
+ let de = re(e.nodeName);
1892
+ if (!G[de] || ue[de])
1889
1893
  throw ht("root node is forbidden and cannot be sanitized in-place");
1890
1894
  }
1891
1895
  } else if (e instanceof u)
@@ -1897,22 +1901,22 @@ function bn() {
1897
1901
  return ae ? null : $e ? H : "";
1898
1902
  }
1899
1903
  i && qe && Ve(i.firstChild);
1900
- let ie = yt(Se ? e : i);
1901
- for (; j = ie.nextNode(); )
1904
+ let le = yt(Se ? e : i);
1905
+ for (; j = le.nextNode(); )
1902
1906
  r(j) || (j.content instanceof c && Y(j.content), S(j));
1903
1907
  if (Se)
1904
1908
  return e;
1905
1909
  if (ae) {
1906
1910
  if (me)
1907
- for (L = X.call(i.ownerDocument); i.firstChild; )
1911
+ for (L = K.call(i.ownerDocument); i.firstChild; )
1908
1912
  L.appendChild(i.firstChild);
1909
1913
  else
1910
1914
  L = i;
1911
- return (x.shadowroot || x.shadowrootmode) && (L = re.call(s, L, !0)), L;
1915
+ return (x.shadowroot || x.shadowrootmode) && (L = te.call(s, L, !0)), L;
1912
1916
  }
1913
1917
  let ge = fe ? i.outerHTML : i.innerHTML;
1914
1918
  return fe && G["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && Te(yn, i.ownerDocument.doctype.name) && (ge = "<!DOCTYPE " + i.ownerDocument.doctype.name + `>
1915
- ` + ge), Ae && wt([F, te, N], (de) => {
1919
+ ` + ge), Ae && wt([F, ne, N], (de) => {
1916
1920
  ge = pt(ge, de, " ");
1917
1921
  }), C && $e ? C.createHTML(ge) : ge;
1918
1922
  }, t.setConfig = function() {
@@ -1922,7 +1926,7 @@ function bn() {
1922
1926
  be = null, Xe = !1;
1923
1927
  }, t.isValidAttribute = function(e, f, i) {
1924
1928
  be || tt({});
1925
- let A = ne(e), j = ne(f);
1929
+ let A = re(e), j = re(f);
1926
1930
  return d(A, j, i);
1927
1931
  }, t.addHook = function(e, f) {
1928
1932
  typeof f == "function" && (V[e] = V[e] || [], mt(V[e], f));
@@ -2023,21 +2027,21 @@ function Fr(...n) {
2023
2027
  }
2024
2028
  var Br = (n) => {
2025
2029
  var t, a, s, l, c, h, u;
2026
- let { invert: p, toast: o, unstyled: y, interacting: T, setHeights: k, visibleToasts: b, heights: O, index: P, toasts: W, expanded: _, removeToast: w, closeButton: C, style: H, cancelButtonStyle: z, actionButtonStyle: J, className: X = "", descriptionClassName: Q = "", duration: re, position: V, gap: F, loadingIcon: te, expandByDefault: N, classNames: R, icons: B, closeButtonAriaLabel: K = "Close toast", pauseWhenPageIsHidden: ue, cn: ee } = n, [se, G] = v.useState(!1), [D, x] = v.useState(!1), [U, I] = v.useState(!1), [ce, M] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = P === 0, qe = P + 1 <= b, ae = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((E) => E.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
2030
+ let { invert: p, toast: o, unstyled: y, interacting: T, setHeights: k, visibleToasts: b, heights: O, index: P, toasts: W, expanded: _, removeToast: w, closeButton: C, style: H, cancelButtonStyle: z, actionButtonStyle: q, className: K = "", descriptionClassName: J = "", duration: te, position: V, gap: F, loadingIcon: ne, expandByDefault: N, classNames: R, icons: B, closeButtonAriaLabel: Z = "Close toast", pauseWhenPageIsHidden: se, cn: ee } = n, [ie, G] = v.useState(!1), [D, x] = v.useState(!1), [U, I] = v.useState(!1), [ue, M] = v.useState(!1), [pe, ve] = v.useState(0), [Ie, we] = v.useState(0), Ae = v.useRef(null), fe = v.useRef(null), Xe = P === 0, qe = P + 1 <= b, ae = o.type, me = o.dismissible !== !1, $e = o.className || "", Je = o.descriptionClassName || "", Ne = v.useMemo(() => O.findIndex((E) => E.toastId === o.id) || 0, [O, o.id]), ot = v.useMemo(() => {
2027
2031
  var E;
2028
2032
  return (E = o.closeButton) != null ? E : C;
2029
- }, [o.closeButton, C]), Be = v.useMemo(() => o.duration || re || jr, [o.duration, re]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = V.split("-"), We = v.useMemo(() => O.reduce((E, oe, Z) => Z >= Ne ? E : E + oe.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = ae === "loading";
2033
+ }, [o.closeButton, C]), Be = v.useMemo(() => o.duration || te || jr, [o.duration, te]), Se = v.useRef(0), ye = v.useRef(0), Le = v.useRef(0), ke = v.useRef(null), [Ue, Me] = V.split("-"), We = v.useMemo(() => O.reduce((E, oe, Q) => Q >= Ne ? E : E + oe.height, 0), [O, Ne]), He = Cr(), Fe = o.invert || p, Ce = ae === "loading";
2030
2034
  ye.current = v.useMemo(() => Ne * F + We, [Ne, We]), v.useEffect(() => {
2031
2035
  G(!0);
2032
2036
  }, []), v.useLayoutEffect(() => {
2033
- if (!se)
2037
+ if (!ie)
2034
2038
  return;
2035
2039
  let E = fe.current, oe = E.style.height;
2036
2040
  E.style.height = "auto";
2037
- let Z = E.getBoundingClientRect().height;
2038
- E.style.height = oe, we(Z), k((Ee) => Ee.find((he) => he.toastId === o.id) ? Ee.map((he) => he.toastId === o.id ? { ...he, height: Z } : he) : [{ toastId: o.id, height: Z, position: o.position }, ...Ee]);
2039
- }, [se, o.title, o.description, k, o.id]);
2040
- let le = v.useCallback(() => {
2041
+ let Q = E.getBoundingClientRect().height;
2042
+ E.style.height = oe, we(Q), k((Ee) => Ee.find((he) => he.toastId === o.id) ? Ee.map((he) => he.toastId === o.id ? { ...he, height: Q } : he) : [{ toastId: o.id, height: Q, position: o.position }, ...Ee]);
2043
+ }, [ie, o.title, o.description, k, o.id]);
2044
+ let ce = v.useCallback(() => {
2041
2045
  x(!0), ve(ye.current), k((E) => E.filter((oe) => oe.toastId !== o.id)), setTimeout(() => {
2042
2046
  w(o);
2043
2047
  }, $r);
@@ -2046,41 +2050,41 @@ var Br = (n) => {
2046
2050
  if (o.promise && ae === "loading" || o.duration === 1 / 0 || o.type === "loading")
2047
2051
  return;
2048
2052
  let E, oe = Be;
2049
- return _ || T || ue && He ? (() => {
2053
+ return _ || T || se && He ? (() => {
2050
2054
  if (Le.current < Se.current) {
2051
- let Z = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2052
- oe = oe - Z;
2055
+ let Q = (/* @__PURE__ */ new Date()).getTime() - Se.current;
2056
+ oe = oe - Q;
2053
2057
  }
2054
2058
  Le.current = (/* @__PURE__ */ new Date()).getTime();
2055
2059
  })() : oe !== 1 / 0 && (Se.current = (/* @__PURE__ */ new Date()).getTime(), E = setTimeout(() => {
2056
- var Z;
2057
- (Z = o.onAutoClose) == null || Z.call(o, o), le();
2060
+ var Q;
2061
+ (Q = o.onAutoClose) == null || Q.call(o, o), ce();
2058
2062
  }, oe)), () => clearTimeout(E);
2059
- }, [_, T, N, o, Be, le, o.promise, ae, ue, He]), v.useEffect(() => {
2063
+ }, [_, T, N, o, Be, ce, o.promise, ae, se, He]), v.useEffect(() => {
2060
2064
  let E = fe.current;
2061
2065
  if (E) {
2062
2066
  let oe = E.getBoundingClientRect().height;
2063
- return we(oe), k((Z) => [{ toastId: o.id, height: oe, position: o.position }, ...Z]), () => k((Z) => Z.filter((Ee) => Ee.toastId !== o.id));
2067
+ return we(oe), k((Q) => [{ toastId: o.id, height: oe, position: o.position }, ...Q]), () => k((Q) => Q.filter((Ee) => Ee.toastId !== o.id));
2064
2068
  }
2065
2069
  }, [k, o.id]), v.useEffect(() => {
2066
- o.delete && le();
2067
- }, [le, o.delete]);
2070
+ o.delete && ce();
2071
+ }, [ce, o.delete]);
2068
2072
  function ze() {
2069
- return B != null && B.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, B.loading) : te ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, te) : v.createElement(Sr, { visible: ae === "loading" });
2073
+ return B != null && B.loading ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, B.loading) : ne ? v.createElement("div", { className: "sonner-loader", "data-visible": ae === "loading" }, ne) : v.createElement(Sr, { visible: ae === "loading" });
2070
2074
  }
2071
2075
  function Ye(E) {
2072
2076
  return { __html: xr.sanitize(E) };
2073
2077
  }
2074
- return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(X, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": se, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ce, "data-expanded": !!(_ || N && se), style: { "--index": P, "--toasts-before": P, "--z-index": W.length - P, "--offset": `${D ? pe : ye.current}px`, "--initial-height": N ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (E) => {
2078
+ return v.createElement("li", { "aria-live": o.important ? "assertive" : "polite", "aria-atomic": "true", role: "status", tabIndex: 0, ref: fe, className: ee(K, $e, R == null ? void 0 : R.toast, (t = o == null ? void 0 : o.classNames) == null ? void 0 : t.toast, R == null ? void 0 : R.default, R == null ? void 0 : R[ae], (a = o == null ? void 0 : o.classNames) == null ? void 0 : a[ae]), "data-sonner-toast": "", "data-styled": !(o.jsx || o.unstyled || y), "data-mounted": ie, "data-promise": !!o.promise, "data-removed": D, "data-visible": qe, "data-y-position": Ue, "data-x-position": Me, "data-index": P, "data-front": Xe, "data-swiping": U, "data-dismissible": me, "data-type": ae, "data-invert": Fe, "data-swipe-out": ue, "data-expanded": !!(_ || N && ie), style: { "--index": P, "--toasts-before": P, "--z-index": W.length - P, "--offset": `${D ? pe : ye.current}px`, "--initial-height": N ? "auto" : `${Ie}px`, ...H, ...o.style }, onPointerDown: (E) => {
2075
2079
  Ce || !me || (Ae.current = /* @__PURE__ */ new Date(), ve(ye.current), E.target.setPointerCapture(E.pointerId), E.target.tagName !== "BUTTON" && (I(!0), ke.current = { x: E.clientX, y: E.clientY }));
2076
2080
  }, onPointerUp: () => {
2077
- var E, oe, Z, Ee;
2078
- if (ce || !me)
2081
+ var E, oe, Q, Ee;
2082
+ if (ue || !me)
2079
2083
  return;
2080
2084
  ke.current = null;
2081
- let he = Number(((E = fe.current) == null ? void 0 : E.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), ne = (/* @__PURE__ */ new Date()).getTime() - ((oe = Ae.current) == null ? void 0 : oe.getTime()), be = Math.abs(he) / ne;
2085
+ let he = Number(((E = fe.current) == null ? void 0 : E.style.getPropertyValue("--swipe-amount").replace("px", "")) || 0), re = (/* @__PURE__ */ new Date()).getTime() - ((oe = Ae.current) == null ? void 0 : oe.getTime()), be = Math.abs(he) / re;
2082
2086
  if (Math.abs(he) >= zr || be > 0.11) {
2083
- ve(ye.current), (Z = o.onDismiss) == null || Z.call(o, o), le(), M(!0);
2087
+ ve(ye.current), (Q = o.onDismiss) == null || Q.call(o, o), ce(), M(!0);
2084
2088
  return;
2085
2089
  }
2086
2090
  (Ee = fe.current) == null || Ee.style.setProperty("--swipe-amount", "0px"), I(!1);
@@ -2088,16 +2092,16 @@ var Br = (n) => {
2088
2092
  var oe;
2089
2093
  if (!ke.current || !me)
2090
2094
  return;
2091
- let Z = E.clientY - ke.current.y, Ee = E.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Z), ne = E.pointerType === "touch" ? 10 : 2;
2092
- Math.abs(he) > ne ? (oe = fe.current) == null || oe.style.setProperty("--swipe-amount", `${Z}px`) : Math.abs(Ee) > ne && (ke.current = null);
2093
- } }, ot && !o.jsx ? v.createElement("button", { "aria-label": K, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2095
+ let Q = E.clientY - ke.current.y, Ee = E.clientX - ke.current.x, he = (Ue === "top" ? Math.min : Math.max)(0, Q), re = E.pointerType === "touch" ? 10 : 2;
2096
+ Math.abs(he) > re ? (oe = fe.current) == null || oe.style.setProperty("--swipe-amount", `${Q}px`) : Math.abs(Ee) > re && (ke.current = null);
2097
+ } }, ot && !o.jsx ? v.createElement("button", { "aria-label": Z, "data-disabled": Ce, "data-close-button": !0, onClick: Ce || !me ? () => {
2094
2098
  } : () => {
2095
2099
  var E;
2096
- le(), (E = o.onDismiss) == null || E.call(o, o);
2097
- }, className: ee(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.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" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, ae || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: ee(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || (B == null ? void 0 : B[ae]) || wr(ae) : null) : null, v.createElement("div", { "data-content": "", className: ee(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: ee(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: ee(Q, Je, R == null ? void 0 : R.description, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || z, onClick: (E) => {
2098
- _t(o.cancel) && me && (le(), o.cancel.onClick(E));
2099
- }, className: ee(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || J, onClick: (E) => {
2100
- _t(o.action) && (o.action.onClick(E), !E.defaultPrevented && le());
2100
+ ce(), (E = o.onDismiss) == null || E.call(o, o);
2101
+ }, className: ee(R == null ? void 0 : R.closeButton, (s = o == null ? void 0 : o.classNames) == null ? void 0 : s.closeButton) }, v.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" }, v.createElement("line", { x1: "18", y1: "6", x2: "6", y2: "18" }), v.createElement("line", { x1: "6", y1: "6", x2: "18", y2: "18" }))) : null, o.jsx || v.isValidElement(o.title) ? o.jsx || o.title : v.createElement(v.Fragment, null, ae || o.icon || o.promise ? v.createElement("div", { "data-icon": "", className: ee(R == null ? void 0 : R.icon) }, o.promise || o.type === "loading" && !o.icon ? o.icon || ze() : null, o.type !== "loading" ? o.icon || (B == null ? void 0 : B[ae]) || wr(ae) : null) : null, v.createElement("div", { "data-content": "", className: ee(R == null ? void 0 : R.content) }, v.createElement("div", { "data-title": "", className: ee(R == null ? void 0 : R.title, (l = o == null ? void 0 : o.classNames) == null ? void 0 : l.title), dangerouslySetInnerHTML: Ye(o.title) }), o.description ? v.createElement("div", { "data-description": "", className: ee(J, Je, R == null ? void 0 : R.description, (c = o == null ? void 0 : o.classNames) == null ? void 0 : c.description), dangerouslySetInnerHTML: Ye(o.description) }) : null), v.isValidElement(o.cancel) ? o.cancel : o.cancel && _t(o.cancel) ? v.createElement("button", { "data-button": !0, "data-cancel": !0, style: o.cancelButtonStyle || z, onClick: (E) => {
2102
+ _t(o.cancel) && me && (ce(), o.cancel.onClick(E));
2103
+ }, className: ee(R == null ? void 0 : R.cancelButton, (h = o == null ? void 0 : o.classNames) == null ? void 0 : h.cancelButton) }, o.cancel.label) : null, v.isValidElement(o.action) ? o.action : o.action && _t(o.action) ? v.createElement("button", { "data-button": "", style: o.actionButtonStyle || q, onClick: (E) => {
2104
+ _t(o.action) && (o.action.onClick(E), !E.defaultPrevented && ce());
2101
2105
  }, className: ee(R == null ? void 0 : R.actionButton, (u = o == null ? void 0 : o.classNames) == null ? void 0 : u.actionButton) }, o.action.label) : null));
2102
2106
  };
2103
2107
  function an() {
@@ -2107,15 +2111,15 @@ function an() {
2107
2111
  return n === "auto" || !n ? window.getComputedStyle(document.documentElement).direction : n;
2108
2112
  }
2109
2113
  var Ur = (n) => {
2110
- let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style: T, visibleToasts: k = Or, toastOptions: b, dir: O = an(), gap: P = Mr, loadingIcon: W, icons: _, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C, cn: H = Fr } = n, [z, J] = v.useState([]), X = v.useMemo(() => Array.from(new Set([a].concat(z.filter((D) => D.position).map((D) => D.position)))), [z, a]), [Q, re] = v.useState([]), [V, F] = v.useState(!1), [te, N] = v.useState(!1), [R, B] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), K = v.useRef(null), ue = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), se = v.useRef(!1), G = v.useCallback((D) => J((x) => x.filter(({ id: U }) => U !== D.id)), []);
2114
+ let { invert: t, position: a = "bottom-right", hotkey: s = ["altKey", "KeyT"], expand: l, closeButton: c, className: h, offset: u, theme: p = "light", richColors: o, duration: y, style: T, visibleToasts: k = Or, toastOptions: b, dir: O = an(), gap: P = Mr, loadingIcon: W, icons: _, containerAriaLabel: w = "Notifications", pauseWhenPageIsHidden: C, cn: H = Fr } = n, [z, q] = v.useState([]), K = v.useMemo(() => Array.from(new Set([a].concat(z.filter((D) => D.position).map((D) => D.position)))), [z, a]), [J, te] = v.useState([]), [V, F] = v.useState(!1), [ne, N] = v.useState(!1), [R, B] = v.useState(p !== "system" ? p : typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light"), Z = v.useRef(null), se = s.join("+").replace(/Key/g, "").replace(/Digit/g, ""), ee = v.useRef(null), ie = v.useRef(!1), G = v.useCallback((D) => q((x) => x.filter(({ id: U }) => U !== D.id)), []);
2111
2115
  return v.useEffect(() => je.subscribe((D) => {
2112
2116
  if (D.dismiss) {
2113
- J((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
2117
+ q((x) => x.map((U) => U.id === D.id ? { ...U, delete: !0 } : U));
2114
2118
  return;
2115
2119
  }
2116
2120
  setTimeout(() => {
2117
2121
  Rn.flushSync(() => {
2118
- J((x) => {
2122
+ q((x) => {
2119
2123
  let U = x.findIndex((I) => I.id === D.id);
2120
2124
  return U !== -1 ? [...x.slice(0, U), { ...x[U], ...D }, ...x.slice(U + 1)] : [D, ...x];
2121
2125
  });
@@ -2134,28 +2138,28 @@ var Ur = (n) => {
2134
2138
  }, [z]), v.useEffect(() => {
2135
2139
  let D = (x) => {
2136
2140
  var U, I;
2137
- s.every((ce) => x[ce] || x.code === ce) && (F(!0), (U = K.current) == null || U.focus()), x.code === "Escape" && (document.activeElement === K.current || (I = K.current) != null && I.contains(document.activeElement)) && F(!1);
2141
+ s.every((ue) => x[ue] || x.code === ue) && (F(!0), (U = Z.current) == null || U.focus()), x.code === "Escape" && (document.activeElement === Z.current || (I = Z.current) != null && I.contains(document.activeElement)) && F(!1);
2138
2142
  };
2139
2143
  return document.addEventListener("keydown", D), () => document.removeEventListener("keydown", D);
2140
2144
  }, [s]), v.useEffect(() => {
2141
- if (K.current)
2145
+ if (Z.current)
2142
2146
  return () => {
2143
- ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, se.current = !1);
2147
+ ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null, ie.current = !1);
2144
2148
  };
2145
- }, [K.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${ue}`, tabIndex: -1 }, X.map((D, x) => {
2149
+ }, [Z.current]), z.length ? v.createElement("section", { "aria-label": `${w} ${se}`, tabIndex: -1 }, K.map((D, x) => {
2146
2150
  var U;
2147
- let [I, ce] = D.split("-");
2148
- return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: K, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ce, style: { "--front-toast-height": `${((U = Q[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...T }, onBlur: (M) => {
2149
- se.current && !M.currentTarget.contains(M.relatedTarget) && (se.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2151
+ let [I, ue] = D.split("-");
2152
+ return v.createElement("ol", { key: D, dir: O === "auto" ? an() : O, tabIndex: -1, ref: Z, className: h, "data-sonner-toaster": !0, "data-theme": R, "data-rich-colors": o, "data-y-position": I, "data-x-position": ue, style: { "--front-toast-height": `${((U = J[0]) == null ? void 0 : U.height) || 0}px`, "--offset": typeof u == "number" ? `${u}px` : u || Pr, "--width": `${Dr}px`, "--gap": `${P}px`, ...T }, onBlur: (M) => {
2153
+ ie.current && !M.currentTarget.contains(M.relatedTarget) && (ie.current = !1, ee.current && (ee.current.focus({ preventScroll: !0 }), ee.current = null));
2150
2154
  }, onFocus: (M) => {
2151
- M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || se.current || (se.current = !0, ee.current = M.relatedTarget);
2155
+ M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || ie.current || (ie.current = !0, ee.current = M.relatedTarget);
2152
2156
  }, onMouseEnter: () => F(!0), onMouseMove: () => F(!0), onMouseLeave: () => {
2153
- te || F(!1);
2157
+ ne || F(!1);
2154
2158
  }, onPointerDown: (M) => {
2155
2159
  M.target instanceof HTMLElement && M.target.dataset.dismissible === "false" || N(!0);
2156
2160
  }, onPointerUp: () => N(!1) }, z.filter((M) => !M.position && x === 0 || M.position === D).map((M, pe) => {
2157
2161
  var ve, Ie;
2158
- return v.createElement(Br, { key: M.id, icons: _, index: pe, toast: M, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: k, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : c, interacting: te, position: D, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: z.filter((we) => we.position == M.position), heights: Q.filter((we) => we.position == M.position), setHeights: re, expandByDefault: l, gap: P, loadingIcon: W, expanded: V, pauseWhenPageIsHidden: C, cn: H });
2162
+ return v.createElement(Br, { key: M.id, icons: _, index: pe, toast: M, duration: (ve = b == null ? void 0 : b.duration) != null ? ve : y, className: b == null ? void 0 : b.className, descriptionClassName: b == null ? void 0 : b.descriptionClassName, invert: t, visibleToasts: k, closeButton: (Ie = b == null ? void 0 : b.closeButton) != null ? Ie : c, interacting: ne, position: D, style: b == null ? void 0 : b.style, unstyled: b == null ? void 0 : b.unstyled, classNames: b == null ? void 0 : b.classNames, cancelButtonStyle: b == null ? void 0 : b.cancelButtonStyle, actionButtonStyle: b == null ? void 0 : b.actionButtonStyle, removeToast: G, toasts: z.filter((we) => we.position == M.position), heights: J.filter((we) => we.position == M.position), setHeights: te, expandByDefault: l, gap: P, loadingIcon: W, expanded: V, pauseWhenPageIsHidden: C, cn: H });
2159
2163
  }));
2160
2164
  })) : null;
2161
2165
  };