@akad/design-system 1.0.0-alpha.5 → 1.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,29 @@
1
- import { jsx as c, jsxs as I, Fragment as pt } from "react/jsx-runtime";
2
- import ke, { useMemo as be, useState as P, useEffect as Q, useRef as Qe, useCallback as xe, useLayoutEffect as kn, createElement as bn } from "react";
3
- function En(t) {
1
+ import { jsx as c, jsxs as R, Fragment as pt } from "react/jsx-runtime";
2
+ import Se, { useMemo as ve, useState as j, useEffect as G, useRef as He, useCallback as Te, useLayoutEffect as kn, createElement as bn } from "react";
3
+ const En = "pushClickEvent: missing required field(s). Required: eventLabel";
4
+ function Sn(t) {
5
+ return !!(t.eventLabel && typeof t.eventLabel == "string" && t.eventLabel.trim());
6
+ }
7
+ function Cn(t) {
8
+ var n;
9
+ if (!Sn(t))
10
+ throw new Error(En);
11
+ if (!((n = globalThis.window) != null && n.dataLayer)) return;
12
+ const e = {};
13
+ Object.keys(t).forEach((r) => {
14
+ const a = t[r];
15
+ a != null && (typeof a == "string" && !a.trim() || (e[r] = a));
16
+ });
17
+ const s = {
18
+ event: "clickEvent",
19
+ userClick: e
20
+ };
21
+ globalThis.window.dataLayer.push(s);
22
+ }
23
+ function xn(t) {
4
24
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
25
  }
6
- var Tt = { exports: {} }, st = { exports: {} }, z = {};
26
+ var Tt = { exports: {} }, st = { exports: {} }, H = {};
7
27
  /** @license React v16.13.1
8
28
  * react-is.production.min.js
9
29
  *
@@ -13,14 +33,14 @@ var Tt = { exports: {} }, st = { exports: {} }, z = {};
13
33
  * LICENSE file in the root directory of this source tree.
14
34
  */
15
35
  var jt;
16
- function Sn() {
17
- if (jt) return z;
36
+ function wn() {
37
+ if (jt) return H;
18
38
  jt = 1;
19
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, F = t ? Symbol.for("react.responder") : 60118, j = t ? Symbol.for("react.scope") : 60119;
20
- function A(p) {
39
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
40
+ function T(p) {
21
41
  if (typeof p == "object" && p !== null) {
22
- var x = p.$$typeof;
23
- switch (x) {
42
+ var A = p.$$typeof;
43
+ switch (A) {
24
44
  case e:
25
45
  switch (p = p.type, p) {
26
46
  case u:
@@ -34,51 +54,51 @@ function Sn() {
34
54
  switch (p = p && p.$$typeof, p) {
35
55
  case l:
36
56
  case h:
37
- case b:
57
+ case S:
38
58
  case y:
39
59
  case i:
40
60
  return p;
41
61
  default:
42
- return x;
62
+ return A;
43
63
  }
44
64
  }
45
65
  case s:
46
- return x;
66
+ return A;
47
67
  }
48
68
  }
49
69
  }
50
- function C(p) {
51
- return A(p) === d;
70
+ function w(p) {
71
+ return T(p) === d;
52
72
  }
53
- return z.AsyncMode = u, z.ConcurrentMode = d, z.ContextConsumer = l, z.ContextProvider = i, z.Element = e, z.ForwardRef = h, z.Fragment = n, z.Lazy = b, z.Memo = y, z.Portal = s, z.Profiler = a, z.StrictMode = r, z.Suspense = f, z.isAsyncMode = function(p) {
54
- return C(p) || A(p) === u;
55
- }, z.isConcurrentMode = C, z.isContextConsumer = function(p) {
56
- return A(p) === l;
57
- }, z.isContextProvider = function(p) {
58
- return A(p) === i;
59
- }, z.isElement = function(p) {
73
+ return H.AsyncMode = u, H.ConcurrentMode = d, H.ContextConsumer = l, H.ContextProvider = i, H.Element = e, H.ForwardRef = h, H.Fragment = n, H.Lazy = S, H.Memo = y, H.Portal = s, H.Profiler = a, H.StrictMode = r, H.Suspense = f, H.isAsyncMode = function(p) {
74
+ return w(p) || T(p) === u;
75
+ }, H.isConcurrentMode = w, H.isContextConsumer = function(p) {
76
+ return T(p) === l;
77
+ }, H.isContextProvider = function(p) {
78
+ return T(p) === i;
79
+ }, H.isElement = function(p) {
60
80
  return typeof p == "object" && p !== null && p.$$typeof === e;
61
- }, z.isForwardRef = function(p) {
62
- return A(p) === h;
63
- }, z.isFragment = function(p) {
64
- return A(p) === n;
65
- }, z.isLazy = function(p) {
66
- return A(p) === b;
67
- }, z.isMemo = function(p) {
68
- return A(p) === y;
69
- }, z.isPortal = function(p) {
70
- return A(p) === s;
71
- }, z.isProfiler = function(p) {
72
- return A(p) === a;
73
- }, z.isStrictMode = function(p) {
74
- return A(p) === r;
75
- }, z.isSuspense = function(p) {
76
- return A(p) === f;
77
- }, z.isValidElementType = function(p) {
78
- return typeof p == "string" || typeof p == "function" || p === n || p === d || p === a || p === r || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === b || p.$$typeof === y || p.$$typeof === i || p.$$typeof === l || p.$$typeof === h || p.$$typeof === m || p.$$typeof === F || p.$$typeof === j || p.$$typeof === v);
79
- }, z.typeOf = A, z;
81
+ }, H.isForwardRef = function(p) {
82
+ return T(p) === h;
83
+ }, H.isFragment = function(p) {
84
+ return T(p) === n;
85
+ }, H.isLazy = function(p) {
86
+ return T(p) === S;
87
+ }, H.isMemo = function(p) {
88
+ return T(p) === y;
89
+ }, H.isPortal = function(p) {
90
+ return T(p) === s;
91
+ }, H.isProfiler = function(p) {
92
+ return T(p) === a;
93
+ }, H.isStrictMode = function(p) {
94
+ return T(p) === r;
95
+ }, H.isSuspense = function(p) {
96
+ return T(p) === f;
97
+ }, H.isValidElementType = function(p) {
98
+ return typeof p == "string" || typeof p == "function" || p === n || p === d || p === a || p === r || p === f || p === _ || typeof p == "object" && p !== null && (p.$$typeof === S || p.$$typeof === y || p.$$typeof === i || p.$$typeof === l || p.$$typeof === h || p.$$typeof === m || p.$$typeof === C || p.$$typeof === U || p.$$typeof === v);
99
+ }, H.typeOf = T, H;
80
100
  }
81
- var H = {};
101
+ var W = {};
82
102
  /** @license React v16.13.1
83
103
  * react-is.development.js
84
104
  *
@@ -88,17 +108,17 @@ var H = {};
88
108
  * LICENSE file in the root directory of this source tree.
89
109
  */
90
110
  var Pt;
91
- function Cn() {
111
+ function An() {
92
112
  return Pt || (Pt = 1, process.env.NODE_ENV !== "production" && function() {
93
- var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, b = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, F = t ? Symbol.for("react.responder") : 60118, j = t ? Symbol.for("react.scope") : 60119;
94
- function A(k) {
113
+ var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, s = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, a = t ? Symbol.for("react.profiler") : 60114, i = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, u = t ? Symbol.for("react.async_mode") : 60111, d = t ? Symbol.for("react.concurrent_mode") : 60111, h = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, _ = t ? Symbol.for("react.suspense_list") : 60120, y = t ? Symbol.for("react.memo") : 60115, S = t ? Symbol.for("react.lazy") : 60116, v = t ? Symbol.for("react.block") : 60121, m = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, U = t ? Symbol.for("react.scope") : 60119;
114
+ function T(k) {
95
115
  return typeof k == "string" || typeof k == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
96
- k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === b || k.$$typeof === y || k.$$typeof === i || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === F || k.$$typeof === j || k.$$typeof === v);
116
+ k === n || k === d || k === a || k === r || k === f || k === _ || typeof k == "object" && k !== null && (k.$$typeof === S || k.$$typeof === y || k.$$typeof === i || k.$$typeof === l || k.$$typeof === h || k.$$typeof === m || k.$$typeof === C || k.$$typeof === U || k.$$typeof === v);
97
117
  }
98
- function C(k) {
118
+ function w(k) {
99
119
  if (typeof k == "object" && k !== null) {
100
- var Ee = k.$$typeof;
101
- switch (Ee) {
120
+ var xe = k.$$typeof;
121
+ switch (xe) {
102
122
  case e:
103
123
  var tt = k.type;
104
124
  switch (tt) {
@@ -114,65 +134,65 @@ function Cn() {
114
134
  switch (Lt) {
115
135
  case l:
116
136
  case h:
117
- case b:
137
+ case S:
118
138
  case y:
119
139
  case i:
120
140
  return Lt;
121
141
  default:
122
- return Ee;
142
+ return xe;
123
143
  }
124
144
  }
125
145
  case s:
126
- return Ee;
146
+ return xe;
127
147
  }
128
148
  }
129
149
  }
130
- var p = u, x = d, R = l, X = i, O = e, te = h, ue = n, ce = b, Ae = y, me = s, Ve = a, oe = r, ve = f, Te = !1;
131
- function Re(k) {
132
- return Te || (Te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || C(k) === u;
150
+ var p = u, A = d, B = l, z = i, L = e, te = h, le = n, ue = S, ye = y, se = s, De = a, re = r, ce = f, ke = !1;
151
+ function Ce(k) {
152
+ return ke || (ke = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), g(k) || w(k) === u;
133
153
  }
134
154
  function g(k) {
135
- return C(k) === d;
155
+ return w(k) === d;
136
156
  }
137
157
  function E(k) {
138
- return C(k) === l;
158
+ return w(k) === l;
139
159
  }
140
- function V(k) {
141
- return C(k) === i;
160
+ function $(k) {
161
+ return w(k) === i;
142
162
  }
143
- function B(k) {
163
+ function N(k) {
144
164
  return typeof k == "object" && k !== null && k.$$typeof === e;
145
165
  }
146
- function N(k) {
147
- return C(k) === h;
166
+ function I(k) {
167
+ return w(k) === h;
148
168
  }
149
- function w(k) {
150
- return C(k) === n;
169
+ function b(k) {
170
+ return w(k) === n;
151
171
  }
152
- function $(k) {
153
- return C(k) === b;
172
+ function D(k) {
173
+ return w(k) === S;
154
174
  }
155
- function L(k) {
156
- return C(k) === y;
175
+ function V(k) {
176
+ return w(k) === y;
157
177
  }
158
- function U(k) {
159
- return C(k) === s;
178
+ function q(k) {
179
+ return w(k) === s;
160
180
  }
161
- function T(k) {
162
- return C(k) === a;
181
+ function F(k) {
182
+ return w(k) === a;
163
183
  }
164
- function q(k) {
165
- return C(k) === r;
184
+ function P(k) {
185
+ return w(k) === r;
166
186
  }
167
187
  function J(k) {
168
- return C(k) === f;
188
+ return w(k) === f;
169
189
  }
170
- H.AsyncMode = p, H.ConcurrentMode = x, H.ContextConsumer = R, H.ContextProvider = X, H.Element = O, H.ForwardRef = te, H.Fragment = ue, H.Lazy = ce, H.Memo = Ae, H.Portal = me, H.Profiler = Ve, H.StrictMode = oe, H.Suspense = ve, H.isAsyncMode = Re, H.isConcurrentMode = g, H.isContextConsumer = E, H.isContextProvider = V, H.isElement = B, H.isForwardRef = N, H.isFragment = w, H.isLazy = $, H.isMemo = L, H.isPortal = U, H.isProfiler = T, H.isStrictMode = q, H.isSuspense = J, H.isValidElementType = A, H.typeOf = C;
171
- }()), H;
190
+ W.AsyncMode = p, W.ConcurrentMode = A, W.ContextConsumer = B, W.ContextProvider = z, W.Element = L, W.ForwardRef = te, W.Fragment = le, W.Lazy = ue, W.Memo = ye, W.Portal = se, W.Profiler = De, W.StrictMode = re, W.Suspense = ce, W.isAsyncMode = Ce, W.isConcurrentMode = g, W.isContextConsumer = E, W.isContextProvider = $, W.isElement = N, W.isForwardRef = I, W.isFragment = b, W.isLazy = D, W.isMemo = V, W.isPortal = q, W.isProfiler = F, W.isStrictMode = P, W.isSuspense = J, W.isValidElementType = T, W.typeOf = w;
191
+ }()), W;
172
192
  }
173
193
  var qt;
174
194
  function ss() {
175
- return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports = Sn() : st.exports = Cn()), st.exports;
195
+ return qt || (qt = 1, process.env.NODE_ENV === "production" ? st.exports = wn() : st.exports = An()), st.exports;
176
196
  }
177
197
  /*
178
198
  object-assign
@@ -180,7 +200,7 @@ object-assign
180
200
  @license MIT
181
201
  */
182
202
  var vt, Ut;
183
- function xn() {
203
+ function Tn() {
184
204
  if (Ut) return vt;
185
205
  Ut = 1;
186
206
  var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, s = Object.prototype.propertyIsEnumerable;
@@ -237,7 +257,7 @@ function ns() {
237
257
  return Ht || (Ht = 1, yt = Function.call.bind(Object.prototype.hasOwnProperty)), yt;
238
258
  }
239
259
  var kt, Wt;
240
- function wn() {
260
+ function Fn() {
241
261
  if (Wt) return kt;
242
262
  Wt = 1;
243
263
  var t = function() {
@@ -266,8 +286,8 @@ function wn() {
266
286
  throw _.name = "Invariant Violation", _;
267
287
  }
268
288
  f = a[h](i, h, u, l, null, e);
269
- } catch (b) {
270
- f = b;
289
+ } catch (S) {
290
+ f = S;
271
291
  }
272
292
  if (f && !(f instanceof Error) && t(
273
293
  (u || "React class") + ": type specification of " + l + " `" + h + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof f + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -286,10 +306,10 @@ function wn() {
286
306
  }, kt = r, kt;
287
307
  }
288
308
  var bt, Yt;
289
- function An() {
309
+ function Dn() {
290
310
  if (Yt) return bt;
291
311
  Yt = 1;
292
- var t = ss(), e = xn(), s = Rt(), n = ns(), r = wn(), a = function() {
312
+ var t = ss(), e = Tn(), s = Rt(), n = ns(), r = Fn(), a = function() {
293
313
  };
294
314
  process.env.NODE_ENV !== "production" && (a = function(l) {
295
315
  var u = "Warning: " + l;
@@ -310,27 +330,27 @@ function An() {
310
330
  return E;
311
331
  }
312
332
  var _ = "<<anonymous>>", y = {
313
- array: F("array"),
314
- bigint: F("bigint"),
315
- bool: F("boolean"),
316
- func: F("function"),
317
- number: F("number"),
318
- object: F("object"),
319
- string: F("string"),
320
- symbol: F("symbol"),
321
- any: j(),
322
- arrayOf: A,
323
- element: C(),
333
+ array: C("array"),
334
+ bigint: C("bigint"),
335
+ bool: C("boolean"),
336
+ func: C("function"),
337
+ number: C("number"),
338
+ object: C("object"),
339
+ string: C("string"),
340
+ symbol: C("symbol"),
341
+ any: U(),
342
+ arrayOf: T,
343
+ element: w(),
324
344
  elementType: p(),
325
- instanceOf: x,
345
+ instanceOf: A,
326
346
  node: te(),
327
- objectOf: X,
328
- oneOf: R,
329
- oneOfType: O,
330
- shape: ce,
331
- exact: Ae
347
+ objectOf: z,
348
+ oneOf: B,
349
+ oneOfType: L,
350
+ shape: ue,
351
+ exact: ye
332
352
  };
333
- function b(g, E) {
353
+ function S(g, E) {
334
354
  return g === E ? g !== 0 || 1 / g === 1 / E : g !== g && E !== E;
335
355
  }
336
356
  function v(g, E) {
@@ -339,34 +359,34 @@ function An() {
339
359
  v.prototype = Error.prototype;
340
360
  function m(g) {
341
361
  if (process.env.NODE_ENV !== "production")
342
- var E = {}, V = 0;
343
- function B(w, $, L, U, T, q, J) {
344
- if (U = U || _, q = q || L, J !== s) {
362
+ var E = {}, $ = 0;
363
+ function N(b, D, V, q, F, P, J) {
364
+ if (q = q || _, P = P || V, J !== s) {
345
365
  if (u) {
346
366
  var k = new Error(
347
367
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
348
368
  );
349
369
  throw k.name = "Invariant Violation", k;
350
370
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
351
- var Ee = U + ":" + L;
352
- !E[Ee] && // Avoid spamming the console because they are often not actionable except for lib authors
353
- V < 3 && (a(
354
- "You are manually calling a React.PropTypes validation function for the `" + q + "` prop on `" + U + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
355
- ), E[Ee] = !0, V++);
371
+ var xe = q + ":" + V;
372
+ !E[xe] && // Avoid spamming the console because they are often not actionable except for lib authors
373
+ $ < 3 && (a(
374
+ "You are manually calling a React.PropTypes validation function for the `" + P + "` prop on `" + q + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
375
+ ), E[xe] = !0, $++);
356
376
  }
357
377
  }
358
- return $[L] == null ? w ? $[L] === null ? new v("The " + T + " `" + q + "` is marked as required " + ("in `" + U + "`, but its value is `null`.")) : new v("The " + T + " `" + q + "` is marked as required in " + ("`" + U + "`, but its value is `undefined`.")) : null : g($, L, U, T, q);
378
+ return D[V] == null ? b ? D[V] === null ? new v("The " + F + " `" + P + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new v("The " + F + " `" + P + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : g(D, V, q, F, P);
359
379
  }
360
- var N = B.bind(null, !1);
361
- return N.isRequired = B.bind(null, !0), N;
362
- }
363
- function F(g) {
364
- function E(V, B, N, w, $, L) {
365
- var U = V[B], T = oe(U);
366
- if (T !== g) {
367
- var q = ve(U);
380
+ var I = N.bind(null, !1);
381
+ return I.isRequired = N.bind(null, !0), I;
382
+ }
383
+ function C(g) {
384
+ function E($, N, I, b, D, V) {
385
+ var q = $[N], F = re(q);
386
+ if (F !== g) {
387
+ var P = ce(q);
368
388
  return new v(
369
- "Invalid " + w + " `" + $ + "` of type " + ("`" + q + "` supplied to `" + N + "`, expected ") + ("`" + g + "`."),
389
+ "Invalid " + b + " `" + D + "` of type " + ("`" + P + "` supplied to `" + I + "`, expected ") + ("`" + g + "`."),
370
390
  { expectedType: g }
371
391
  );
372
392
  }
@@ -374,136 +394,136 @@ function An() {
374
394
  }
375
395
  return m(E);
376
396
  }
377
- function j() {
397
+ function U() {
378
398
  return m(i);
379
399
  }
380
- function A(g) {
381
- function E(V, B, N, w, $) {
400
+ function T(g) {
401
+ function E($, N, I, b, D) {
382
402
  if (typeof g != "function")
383
- return new v("Property `" + $ + "` of component `" + N + "` has invalid PropType notation inside arrayOf.");
384
- var L = V[B];
385
- if (!Array.isArray(L)) {
386
- var U = oe(L);
387
- return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an array."));
403
+ return new v("Property `" + D + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
404
+ var V = $[N];
405
+ if (!Array.isArray(V)) {
406
+ var q = re(V);
407
+ return new v("Invalid " + b + " `" + D + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an array."));
388
408
  }
389
- for (var T = 0; T < L.length; T++) {
390
- var q = g(L, T, N, w, $ + "[" + T + "]", s);
391
- if (q instanceof Error)
392
- return q;
409
+ for (var F = 0; F < V.length; F++) {
410
+ var P = g(V, F, I, b, D + "[" + F + "]", s);
411
+ if (P instanceof Error)
412
+ return P;
393
413
  }
394
414
  return null;
395
415
  }
396
416
  return m(E);
397
417
  }
398
- function C() {
399
- function g(E, V, B, N, w) {
400
- var $ = E[V];
401
- if (!l($)) {
402
- var L = oe($);
403
- return new v("Invalid " + N + " `" + w + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement."));
418
+ function w() {
419
+ function g(E, $, N, I, b) {
420
+ var D = E[$];
421
+ if (!l(D)) {
422
+ var V = re(D);
423
+ return new v("Invalid " + I + " `" + b + "` of type " + ("`" + V + "` supplied to `" + N + "`, expected a single ReactElement."));
404
424
  }
405
425
  return null;
406
426
  }
407
427
  return m(g);
408
428
  }
409
429
  function p() {
410
- function g(E, V, B, N, w) {
411
- var $ = E[V];
412
- if (!t.isValidElementType($)) {
413
- var L = oe($);
414
- return new v("Invalid " + N + " `" + w + "` of type " + ("`" + L + "` supplied to `" + B + "`, expected a single ReactElement type."));
430
+ function g(E, $, N, I, b) {
431
+ var D = E[$];
432
+ if (!t.isValidElementType(D)) {
433
+ var V = re(D);
434
+ return new v("Invalid " + I + " `" + b + "` of type " + ("`" + V + "` supplied to `" + N + "`, expected a single ReactElement type."));
415
435
  }
416
436
  return null;
417
437
  }
418
438
  return m(g);
419
439
  }
420
- function x(g) {
421
- function E(V, B, N, w, $) {
422
- if (!(V[B] instanceof g)) {
423
- var L = g.name || _, U = Re(V[B]);
424
- return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected ") + ("instance of `" + L + "`."));
440
+ function A(g) {
441
+ function E($, N, I, b, D) {
442
+ if (!($[N] instanceof g)) {
443
+ var V = g.name || _, q = Ce($[N]);
444
+ return new v("Invalid " + b + " `" + D + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected ") + ("instance of `" + V + "`."));
425
445
  }
426
446
  return null;
427
447
  }
428
448
  return m(E);
429
449
  }
430
- function R(g) {
450
+ function B(g) {
431
451
  if (!Array.isArray(g))
432
452
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
433
453
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
434
454
  ) : a("Invalid argument supplied to oneOf, expected an array.")), i;
435
- function E(V, B, N, w, $) {
436
- for (var L = V[B], U = 0; U < g.length; U++)
437
- if (b(L, g[U]))
455
+ function E($, N, I, b, D) {
456
+ for (var V = $[N], q = 0; q < g.length; q++)
457
+ if (S(V, g[q]))
438
458
  return null;
439
- var T = JSON.stringify(g, function(J, k) {
440
- var Ee = ve(k);
441
- return Ee === "symbol" ? String(k) : k;
459
+ var F = JSON.stringify(g, function(J, k) {
460
+ var xe = ce(k);
461
+ return xe === "symbol" ? String(k) : k;
442
462
  });
443
- return new v("Invalid " + w + " `" + $ + "` of value `" + String(L) + "` " + ("supplied to `" + N + "`, expected one of " + T + "."));
463
+ return new v("Invalid " + b + " `" + D + "` of value `" + String(V) + "` " + ("supplied to `" + I + "`, expected one of " + F + "."));
444
464
  }
445
465
  return m(E);
446
466
  }
447
- function X(g) {
448
- function E(V, B, N, w, $) {
467
+ function z(g) {
468
+ function E($, N, I, b, D) {
449
469
  if (typeof g != "function")
450
- return new v("Property `" + $ + "` of component `" + N + "` has invalid PropType notation inside objectOf.");
451
- var L = V[B], U = oe(L);
452
- if (U !== "object")
453
- return new v("Invalid " + w + " `" + $ + "` of type " + ("`" + U + "` supplied to `" + N + "`, expected an object."));
454
- for (var T in L)
455
- if (n(L, T)) {
456
- var q = g(L, T, N, w, $ + "." + T, s);
457
- if (q instanceof Error)
458
- return q;
470
+ return new v("Property `" + D + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
471
+ var V = $[N], q = re(V);
472
+ if (q !== "object")
473
+ return new v("Invalid " + b + " `" + D + "` of type " + ("`" + q + "` supplied to `" + I + "`, expected an object."));
474
+ for (var F in V)
475
+ if (n(V, F)) {
476
+ var P = g(V, F, I, b, D + "." + F, s);
477
+ if (P instanceof Error)
478
+ return P;
459
479
  }
460
480
  return null;
461
481
  }
462
482
  return m(E);
463
483
  }
464
- function O(g) {
484
+ function L(g) {
465
485
  if (!Array.isArray(g))
466
486
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), i;
467
487
  for (var E = 0; E < g.length; E++) {
468
- var V = g[E];
469
- if (typeof V != "function")
488
+ var $ = g[E];
489
+ if (typeof $ != "function")
470
490
  return a(
471
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Te(V) + " at index " + E + "."
491
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ke($) + " at index " + E + "."
472
492
  ), i;
473
493
  }
474
- function B(N, w, $, L, U) {
475
- for (var T = [], q = 0; q < g.length; q++) {
476
- var J = g[q], k = J(N, w, $, L, U, s);
494
+ function N(I, b, D, V, q) {
495
+ for (var F = [], P = 0; P < g.length; P++) {
496
+ var J = g[P], k = J(I, b, D, V, q, s);
477
497
  if (k == null)
478
498
  return null;
479
- k.data && n(k.data, "expectedType") && T.push(k.data.expectedType);
499
+ k.data && n(k.data, "expectedType") && F.push(k.data.expectedType);
480
500
  }
481
- var Ee = T.length > 0 ? ", expected one of type [" + T.join(", ") + "]" : "";
482
- return new v("Invalid " + L + " `" + U + "` supplied to " + ("`" + $ + "`" + Ee + "."));
501
+ var xe = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
502
+ return new v("Invalid " + V + " `" + q + "` supplied to " + ("`" + D + "`" + xe + "."));
483
503
  }
484
- return m(B);
504
+ return m(N);
485
505
  }
486
506
  function te() {
487
- function g(E, V, B, N, w) {
488
- return me(E[V]) ? null : new v("Invalid " + N + " `" + w + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
507
+ function g(E, $, N, I, b) {
508
+ return se(E[$]) ? null : new v("Invalid " + I + " `" + b + "` supplied to " + ("`" + N + "`, expected a ReactNode."));
489
509
  }
490
510
  return m(g);
491
511
  }
492
- function ue(g, E, V, B, N) {
512
+ function le(g, E, $, N, I) {
493
513
  return new v(
494
- (g || "React class") + ": " + E + " type `" + V + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + N + "`."
514
+ (g || "React class") + ": " + E + " type `" + $ + "." + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
495
515
  );
496
516
  }
497
- function ce(g) {
498
- function E(V, B, N, w, $) {
499
- var L = V[B], U = oe(L);
500
- if (U !== "object")
501
- return new v("Invalid " + w + " `" + $ + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`."));
502
- for (var T in g) {
503
- var q = g[T];
504
- if (typeof q != "function")
505
- return ue(N, w, $, T, ve(q));
506
- var J = q(L, T, N, w, $ + "." + T, s);
517
+ function ue(g) {
518
+ function E($, N, I, b, D) {
519
+ var V = $[N], q = re(V);
520
+ if (q !== "object")
521
+ return new v("Invalid " + b + " `" + D + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
522
+ for (var F in g) {
523
+ var P = g[F];
524
+ if (typeof P != "function")
525
+ return le(I, b, D, F, ce(P));
526
+ var J = P(V, F, I, b, D + "." + F, s);
507
527
  if (J)
508
528
  return J;
509
529
  }
@@ -511,22 +531,22 @@ function An() {
511
531
  }
512
532
  return m(E);
513
533
  }
514
- function Ae(g) {
515
- function E(V, B, N, w, $) {
516
- var L = V[B], U = oe(L);
517
- if (U !== "object")
518
- return new v("Invalid " + w + " `" + $ + "` of type `" + U + "` " + ("supplied to `" + N + "`, expected `object`."));
519
- var T = e({}, V[B], g);
520
- for (var q in T) {
521
- var J = g[q];
522
- if (n(g, q) && typeof J != "function")
523
- return ue(N, w, $, q, ve(J));
534
+ function ye(g) {
535
+ function E($, N, I, b, D) {
536
+ var V = $[N], q = re(V);
537
+ if (q !== "object")
538
+ return new v("Invalid " + b + " `" + D + "` of type `" + q + "` " + ("supplied to `" + I + "`, expected `object`."));
539
+ var F = e({}, $[N], g);
540
+ for (var P in F) {
541
+ var J = g[P];
542
+ if (n(g, P) && typeof J != "function")
543
+ return le(I, b, D, P, ce(J));
524
544
  if (!J)
525
545
  return new v(
526
- "Invalid " + w + " `" + $ + "` key `" + q + "` supplied to `" + N + "`.\nBad object: " + JSON.stringify(V[B], null, " ") + `
546
+ "Invalid " + b + " `" + D + "` key `" + P + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify($[N], null, " ") + `
527
547
  Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
528
548
  );
529
- var k = J(L, q, N, w, $ + "." + q, s);
549
+ var k = J(V, P, I, b, D + "." + P, s);
530
550
  if (k)
531
551
  return k;
532
552
  }
@@ -534,7 +554,7 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
534
554
  }
535
555
  return m(E);
536
556
  }
537
- function me(g) {
557
+ function se(g) {
538
558
  switch (typeof g) {
539
559
  case "number":
540
560
  case "string":
@@ -544,20 +564,20 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
544
564
  return !g;
545
565
  case "object":
546
566
  if (Array.isArray(g))
547
- return g.every(me);
567
+ return g.every(se);
548
568
  if (g === null || l(g))
549
569
  return !0;
550
570
  var E = f(g);
551
571
  if (E) {
552
- var V = E.call(g), B;
572
+ var $ = E.call(g), N;
553
573
  if (E !== g.entries) {
554
- for (; !(B = V.next()).done; )
555
- if (!me(B.value))
574
+ for (; !(N = $.next()).done; )
575
+ if (!se(N.value))
556
576
  return !1;
557
577
  } else
558
- for (; !(B = V.next()).done; ) {
559
- var N = B.value;
560
- if (N && !me(N[1]))
578
+ for (; !(N = $.next()).done; ) {
579
+ var I = N.value;
580
+ if (I && !se(I[1]))
561
581
  return !1;
562
582
  }
563
583
  } else
@@ -567,17 +587,17 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
567
587
  return !1;
568
588
  }
569
589
  }
570
- function Ve(g, E) {
590
+ function De(g, E) {
571
591
  return g === "symbol" ? !0 : E ? E["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && E instanceof Symbol : !1;
572
592
  }
573
- function oe(g) {
593
+ function re(g) {
574
594
  var E = typeof g;
575
- return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : Ve(E, g) ? "symbol" : E;
595
+ return Array.isArray(g) ? "array" : g instanceof RegExp ? "object" : De(E, g) ? "symbol" : E;
576
596
  }
577
- function ve(g) {
597
+ function ce(g) {
578
598
  if (typeof g > "u" || g === null)
579
599
  return "" + g;
580
- var E = oe(g);
600
+ var E = re(g);
581
601
  if (E === "object") {
582
602
  if (g instanceof Date)
583
603
  return "date";
@@ -586,8 +606,8 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
586
606
  }
587
607
  return E;
588
608
  }
589
- function Te(g) {
590
- var E = ve(g);
609
+ function ke(g) {
610
+ var E = ce(g);
591
611
  switch (E) {
592
612
  case "array":
593
613
  case "object":
@@ -600,14 +620,14 @@ Valid keys: ` + JSON.stringify(Object.keys(g), null, " ")
600
620
  return E;
601
621
  }
602
622
  }
603
- function Re(g) {
623
+ function Ce(g) {
604
624
  return !g.constructor || !g.constructor.name ? _ : g.constructor.name;
605
625
  }
606
626
  return y.checkPropTypes = r, y.resetWarningCache = r.resetWarningCache, y.PropTypes = y, y;
607
627
  }, bt;
608
628
  }
609
629
  var Et, Xt;
610
- function Tn() {
630
+ function On() {
611
631
  if (Xt) return Et;
612
632
  Xt = 1;
613
633
  var t = Rt();
@@ -655,14 +675,14 @@ function Tn() {
655
675
  }, Et;
656
676
  }
657
677
  if (process.env.NODE_ENV !== "production") {
658
- var Fn = ss(), On = !0;
659
- Tt.exports = An()(Fn.isElement, On);
678
+ var In = ss(), Rn = !0;
679
+ Tt.exports = Dn()(In.isElement, Rn);
660
680
  } else
661
- Tt.exports = Tn()();
662
- var Dn = Tt.exports;
663
- const o = /* @__PURE__ */ En(Dn);
664
- var rs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(rs || {}), as = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(as || {}), is = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(is || {}), os = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(os || {}), In = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(In || {});
665
- const Y = {
681
+ Tt.exports = On()();
682
+ var Nn = Tt.exports;
683
+ const o = /* @__PURE__ */ xn(Nn);
684
+ var rs = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.Secondary = "secondary", t.Info = "info", t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Neutral = "neutral", t))(rs || {}), as = /* @__PURE__ */ ((t) => (t.Solid = "solid", t.Outline = "outline", t.Text = "text", t))(as || {}), is = /* @__PURE__ */ ((t) => (t.Large = "lg", t.Medium = "md", t.Small = "sm", t))(is || {}), os = /* @__PURE__ */ ((t) => (t.Right = "right", t.Left = "left", t))(os || {}), Bn = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Bn || {});
685
+ const X = {
666
686
  name: "Button",
667
687
  class: "ds-button",
668
688
  props: {
@@ -719,15 +739,11 @@ const Y = {
719
739
  fullSize: {
720
740
  type: Boolean,
721
741
  default: !1
722
- },
723
- trackLabel: {
724
- type: String,
725
- default: ""
726
742
  }
727
743
  }
728
744
  };
729
745
  var ls = /* @__PURE__ */ ((t) => (t.Primary = "primary", t.PrimaryLightest = "primary-lightest", t.PrimaryLighter = "primary-lighter", t.PrimaryLight = "primary-light", t.PrimaryDark = "primary-dark", t.PrimaryDarker = "primary-darker", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.Secondary = "secondary", t.SecondaryLightest = "secondary-lightest", t.SecondaryLighter = "secondary-lighter", t.SecondaryLight = "secondary-light", t.SecondaryDark = "secondary-dark", t.SecondaryDarker = "secondary-darker", t.Success = "success", t.SuccessLighter = "success-lighter", t.SuccessLight = "success-light", t.SuccessDark = "success-dark", t.Warning = "warning", t.WarningLighter = "warning-lighter", t.WarningLight = "warning-light", t.WarningDark = "warning-dark", t.Danger = "danger", t.DangerLighter = "danger-lighter", t.DangerLight = "danger-light", t.DangerDark = "danger-dark", t.Info = "info", t.InfoLighter = "info-lighter", t.InfoLight = "info-light", t.InfoDark = "info-dark", t))(ls || {}), us = /* @__PURE__ */ ((t) => (t.Outlined = "outlined", t.Rounded = "rounded", t.Sharp = "sharp", t))(us || {}), cs = /* @__PURE__ */ ((t) => (t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t.MD = "md", t.LG = "lg", t.XL = "xl", t.XXL = "xxl", t.XXXL = "xxxl", t.Huge = "huge", t))(cs || {}), ds = /* @__PURE__ */ ((t) => (t.Bold = "bold", t.Semibold = "semibold", t.Medium = "medium", t.Regular = "regular", t.Light = "light", t.Extralight = "extralight", t))(ds || {});
730
- const pe = {
746
+ const fe = {
731
747
  name: "Icon",
732
748
  class: "ds-icon",
733
749
  props: {
@@ -779,32 +795,32 @@ const pe = {
779
795
  }
780
796
  };
781
797
  var lt = /* @__PURE__ */ ((t) => (t["primary-darker"] = "primary--darker", t["primary-dark"] = "primary--dark", t["primary-light"] = "primary--light", t["primary-lighter"] = "primary--lighter", t["primary-lightest"] = "primary--lightest", t["secondary-darker"] = "secondary--darker", t["secondary-dark"] = "secondary--dark", t["secondary-light"] = "secondary--light", t["secondary-lighter"] = "secondary--lighter", t["secondary-lightest"] = "secondary--lightest", t["success-dark"] = "success--dark", t["success-light"] = "success--light", t["success-lighter"] = "success--lighter", t["warning-dark"] = "warning--dark", t["warning-light"] = "warning--light", t["warning-lighter"] = "warning--lighter", t["danger-dark"] = "danger--dark", t["danger-light"] = "danger--light", t["danger-lighter"] = "danger--lighter", t["info-dark"] = "info--dark", t["info-light"] = "info--light", t["info-lighter"] = "info--lighter", t))(lt || {});
782
- const Rn = {
798
+ const $n = {
783
799
  bold: 700,
784
800
  semibold: 600,
785
801
  medium: 500,
786
802
  regular: 400,
787
803
  light: 300,
788
804
  extralight: 200
789
- }, G = ({
790
- image: t = pe.props.image.default,
791
- color: e = pe.props.color.default,
805
+ }, Z = ({
806
+ image: t = fe.props.image.default,
807
+ color: e = fe.props.color.default,
792
808
  className: s,
793
- size: n = pe.props.size.default,
794
- fill: r = pe.props.fill.default,
795
- weight: a = pe.props.weight.default,
796
- testId: i = pe.props.testId.default,
797
- onClick: l = pe.props.onClick.default
809
+ size: n = fe.props.size.default,
810
+ fill: r = fe.props.fill.default,
811
+ weight: a = fe.props.weight.default,
812
+ testId: i = fe.props.testId.default,
813
+ onClick: l = fe.props.onClick.default
798
814
  }) => {
799
- const u = "material-symbols-rounded", d = e && pe.props.color.options.find((f) => f === e) && `color__${lt[e] ?? e}`, h = be(() => ({
800
- fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'GRAD' 0,'wght' ${Rn[a]}, 'opsz' 48`
815
+ const u = "material-symbols-rounded", d = e && fe.props.color.options.find((f) => f === e) && `color__${lt[e] ?? e}`, h = ve(() => ({
816
+ fontVariationSettings: `'FILL' ${r ? 1 : 0}, 'GRAD' 0,'wght' ${$n[a]}, 'opsz' 48`
801
817
  }), [a, r]);
802
818
  return /* @__PURE__ */ c(
803
819
  "i",
804
820
  {
805
821
  className: [
806
- `${pe.class}--${n}`,
807
- pe.class,
822
+ `${fe.class}--${n}`,
823
+ fe.class,
808
824
  u,
809
825
  d,
810
826
  s
@@ -817,56 +833,57 @@ const Rn = {
817
833
  }
818
834
  );
819
835
  };
820
- G.propTypes = {
821
- color: o.oneOf(pe.props.color.options),
836
+ Z.propTypes = {
837
+ color: o.oneOf(fe.props.color.options),
822
838
  image: o.string,
823
839
  fontVariationSettings: o.object,
824
- size: o.oneOf(pe.props.size.options),
840
+ size: o.oneOf(fe.props.size.options),
825
841
  fill: o.bool,
826
- weight: o.oneOf(pe.props.weight.options),
842
+ weight: o.oneOf(fe.props.weight.options),
827
843
  onClick: o.func
828
844
  };
829
- G.displayName = "DsIcon";
845
+ Z.displayName = "DsIcon";
830
846
  const ut = ({
831
847
  children: t,
832
848
  className: e,
833
849
  onClick: s,
834
- size: n = Y.props.size.default,
835
- disabled: r = Y.props.disabled.default,
836
- icon: a = Y.props.icon.default,
837
- id: i = Y.props.id.default,
838
- testId: l = Y.props.testId.default,
850
+ size: n = X.props.size.default,
851
+ disabled: r = X.props.disabled.default,
852
+ icon: a = X.props.icon.default,
853
+ id: i = X.props.id.default,
854
+ testId: l = X.props.testId.default,
839
855
  elevation: u,
840
- variant: d = Y.props.variant.default,
841
- color: h = Y.props.color.default,
842
- iconFill: f = Y.props.iconFill.default,
843
- iconPosition: _ = Y.props.iconPosition.default,
844
- fullSize: y = Y.props.fullSize.default,
845
- trackLabel: b
856
+ variant: d = X.props.variant.default,
857
+ color: h = X.props.color.default,
858
+ iconFill: f = X.props.iconFill.default,
859
+ iconPosition: _ = X.props.iconPosition.default,
860
+ fullSize: y = X.props.fullSize.default,
861
+ trackingData: S
846
862
  }) => {
847
- const v = n && Y.props.size.options.find((R) => R === n) ? `${Y.class}--${n}` : `${Y.class}__${Y.props.size.default}`, m = r && `${Y.class}--disabled`, F = `${Y.class}__${h}--${d}`, j = u && `${Y.class}--elevation-${u}`, A = a && `${Y.class}--with-icon`, C = y ? `${Y.class}--full-size` : "", p = _ === "right" ? `${Y.class}__icon` : `${Y.class}__icon--left`, x = _ === "right" ? `${Y.class}__text` : `${Y.class}__text--reversed`;
863
+ const v = n && X.props.size.options.find((z) => z === n) ? `${X.class}--${n}` : `${X.class}__${X.props.size.default}`, m = r && `${X.class}--disabled`, C = `${X.class}__${h}--${d}`, U = u && `${X.class}--elevation-${u}`, T = a && `${X.class}--with-icon`, w = y ? `${X.class}--full-size` : "", p = _ === "right" ? `${X.class}__icon` : `${X.class}__icon--left`, A = _ === "right" ? `${X.class}__text` : `${X.class}__text--reversed`, B = (z) => {
864
+ S && Cn(S), s && s(z);
865
+ };
848
866
  return /* @__PURE__ */ c(
849
867
  "button",
850
868
  {
851
869
  className: [
852
- Y.class,
853
- C,
870
+ X.class,
871
+ w,
854
872
  m,
855
873
  v,
856
- F,
857
- j,
858
- A,
874
+ C,
875
+ U,
876
+ T,
859
877
  e
860
- ].filter((R) => R).join(" "),
878
+ ].filter((z) => z).join(" "),
861
879
  "data-testid": l,
862
- ...b && { "data-tracklabel": b },
863
880
  disabled: r,
864
881
  id: i,
865
- onClick: r ? void 0 : s,
866
- children: /* @__PURE__ */ I("span", { className: ["ds-button__text", x].join(" "), children: [
882
+ onClick: r ? void 0 : B,
883
+ children: /* @__PURE__ */ R("span", { className: ["ds-button__text", A].join(" "), children: [
867
884
  t,
868
885
  a && /* @__PURE__ */ c(
869
- G,
886
+ Z,
870
887
  {
871
888
  className: ["ds-button__icon", p].join(" "),
872
889
  fill: f,
@@ -879,20 +896,20 @@ const ut = ({
879
896
  );
880
897
  };
881
898
  ut.propTypes = {
882
- color: o.oneOf(Y.props.color.options),
883
- variant: o.oneOf(Y.props.variant.options),
884
- size: o.oneOf(Y.props.size.options),
899
+ color: o.oneOf(X.props.color.options),
900
+ variant: o.oneOf(X.props.variant.options),
901
+ size: o.oneOf(X.props.size.options),
885
902
  disabled: o.bool,
886
903
  icon: o.string,
887
904
  iconFill: o.bool,
888
- iconPosition: o.oneOf(Y.props.iconPosition.options),
905
+ iconPosition: o.oneOf(X.props.iconPosition.options),
889
906
  testId: o.string,
890
907
  id: o.string,
891
908
  fullSize: o.bool,
892
- trackLabel: o.string
909
+ trackingData: o.object
893
910
  };
894
911
  ut.displayName = "DsButton";
895
- const Nn = {
912
+ const Mn = {
896
913
  name: "Caption",
897
914
  class: "ds-caption"
898
915
  }, ps = ({
@@ -902,7 +919,7 @@ const Nn = {
902
919
  }) => /* @__PURE__ */ c(
903
920
  "p",
904
921
  {
905
- className: [Nn.class, e].filter((n) => n).join(" "),
922
+ className: [Mn.class, e].filter((n) => n).join(" "),
906
923
  "data-testid": s,
907
924
  children: t
908
925
  }
@@ -913,8 +930,8 @@ ps.propTypes = {
913
930
  testId: o.string
914
931
  };
915
932
  ps.displayName = "DsCaption";
916
- var Ft = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(Ft || {}), Bn = /* @__PURE__ */ ((t) => (t[t.Elevation = 0] = "Elevation", t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Bn || {});
917
- const Ne = {
933
+ var Ft = /* @__PURE__ */ ((t) => (t.None = "", t.PrimaryDarker = "primary-darker", t.PrimaryDark = "primary-dark", t.Primary = "primary", t.PrimaryLight = "primary-light", t.PrimaryLighter = "primary-lighter", t.PrimaryLightest = "primary-lightest", t.SecondaryDarker = "secondary-darker", t.SecondaryDark = "secondary-dark", t.Secondary = "secondary", t.SecondaryLight = "secondary-light", t.SecondaryLighter = "secondary-lighter", t.SecondaryLightest = "secondary-lightest", t.Neutral90 = "neutral-90", t.Neutral80 = "neutral-80", t.Neutral60 = "neutral-60", t.Neutral40 = "neutral-40", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t.SuccessDark = "success-dark", t.Success = "success", t.SuccessLight = "success-light", t.SuccessLighter = "success-lighter", t.WarningDark = "warning-dark", t.Warning = "warning", t.WarningLight = "warning-light", t.WarningLighter = "warning-lighter", t.DangerDark = "danger-dark", t.Danger = "danger", t.DangerLight = "danger-light", t.DangerLighter = "danger-lighter", t.InfoDark = "info-dark", t.Info = "info", t.InfoLight = "info-light", t.InfoLighter = "info-lighter", t))(Ft || {}), Vn = /* @__PURE__ */ ((t) => (t[t.Elevation = 0] = "Elevation", t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(Vn || {});
934
+ const Be = {
918
935
  name: "Card",
919
936
  class: "ds-card",
920
937
  props: {
@@ -947,35 +964,29 @@ const Ne = {
947
964
  testId: {
948
965
  type: String,
949
966
  default: "ds-card"
950
- },
951
- trackLabel: {
952
- type: String,
953
- default: ""
954
967
  }
955
968
  }
956
969
  }, hs = ({
957
970
  id: t,
958
- testId: e = Ne.props.testId.default,
971
+ testId: e = Be.props.testId.default,
959
972
  children: s,
960
973
  className: n,
961
- elevation: r = Ne.props.elevation.default,
962
- backgroundColor: a = Ne.props.backgroundColor.default,
963
- borderColor: i = Ne.props.borderColor.default,
964
- trackLabel: l
974
+ elevation: r = Be.props.elevation.default,
975
+ backgroundColor: a = Be.props.backgroundColor.default,
976
+ borderColor: i = Be.props.borderColor.default
965
977
  }) => {
966
- const u = r && `elevation-${r}`, d = i && `border-color__${lt[i] ?? i}`, h = a && `bg-color__${lt[a] ?? a}`;
978
+ const l = r && `elevation-${r}`, u = i && `border-color__${lt[i] ?? i}`, d = a && `bg-color__${lt[a] ?? a}`;
967
979
  return /* @__PURE__ */ c(
968
980
  "div",
969
981
  {
970
982
  className: [
971
- Ne.class,
983
+ Be.class,
972
984
  n,
985
+ l,
973
986
  u,
974
- d,
975
- h
976
- ].filter((f) => f).join(" "),
987
+ d
988
+ ].filter((h) => h).join(" "),
977
989
  "data-testid": e,
978
- ...l && { "data-tracklabel": l },
979
990
  id: t,
980
991
  children: s
981
992
  }
@@ -984,13 +995,12 @@ const Ne = {
984
995
  hs.propTypes = {
985
996
  id: o.string,
986
997
  testId: o.string,
987
- backgroundColor: o.oneOf(Ne.props.backgroundColor.options),
988
- borderColor: o.oneOf(Ne.props.borderColor.options),
989
- elevation: o.oneOf(Ne.props.elevation.options),
990
- trackLabel: o.string
998
+ backgroundColor: o.oneOf(Be.props.backgroundColor.options),
999
+ borderColor: o.oneOf(Be.props.borderColor.options),
1000
+ elevation: o.oneOf(Be.props.elevation.options)
991
1001
  };
992
1002
  hs.displayName = "DsCard";
993
- const ie = {
1003
+ const de = {
994
1004
  name: "Checkbox",
995
1005
  class: "ds-checkbox",
996
1006
  props: {
@@ -1027,31 +1037,31 @@ const ie = {
1027
1037
  default: () => ({})
1028
1038
  }
1029
1039
  }
1030
- }, fs = ke.forwardRef(
1040
+ }, fs = Se.forwardRef(
1031
1041
  ({
1032
1042
  id: t,
1033
1043
  className: e,
1034
1044
  name: s,
1035
- testId: n = ie.props.testId.default,
1036
- label: r = ie.props.label.default,
1037
- description: a = ie.props.description.default,
1038
- checked: i = ie.props.checked.default,
1039
- disabled: l = ie.props.disabled.default,
1040
- changeByChecked: u = ie.props.changeByChecked.default,
1045
+ testId: n = de.props.testId.default,
1046
+ label: r = de.props.label.default,
1047
+ description: a = de.props.description.default,
1048
+ checked: i = de.props.checked.default,
1049
+ disabled: l = de.props.disabled.default,
1050
+ changeByChecked: u = de.props.changeByChecked.default,
1041
1051
  onChangeHandler: d
1042
1052
  }, h) => {
1043
- const f = u ?? !1, _ = i ?? !1, [y, b] = P(_), v = {
1053
+ const f = u ?? !1, _ = i ?? !1, [y, S] = j(_), v = {
1044
1054
  image: y ? "check_box" : "check_box_outline_blank",
1045
- class: y ? `${ie.class}__icon--checked` : `${ie.class}__icon--unchecked`
1046
- }, m = l && `${ie.class}--disabled`, F = (j) => {
1047
- l || (b((A) => !A), d && d(j));
1055
+ class: y ? `${de.class}__icon--checked` : `${de.class}__icon--unchecked`
1056
+ }, m = l && `${de.class}--disabled`, C = (U) => {
1057
+ l || (S((T) => !T), d && d(U));
1048
1058
  };
1049
- return Q(() => {
1050
- f && b(i);
1051
- }, [i, f]), /* @__PURE__ */ I(
1059
+ return G(() => {
1060
+ f && S(i);
1061
+ }, [i, f]), /* @__PURE__ */ R(
1052
1062
  "label",
1053
1063
  {
1054
- className: [ie.class, m, e].join(
1064
+ className: [de.class, m, e].join(
1055
1065
  " "
1056
1066
  ),
1057
1067
  htmlFor: t || s,
@@ -1060,31 +1070,31 @@ const ie = {
1060
1070
  "input",
1061
1071
  {
1062
1072
  checked: y,
1063
- className: `${ie.class}__input`,
1073
+ className: `${de.class}__input`,
1064
1074
  "data-testid": n,
1065
1075
  disabled: l,
1066
1076
  id: t || s,
1067
1077
  name: s,
1068
- onChange: F,
1078
+ onChange: C,
1069
1079
  ref: h,
1070
1080
  type: "checkbox"
1071
1081
  }
1072
1082
  ),
1073
1083
  /* @__PURE__ */ c(
1074
- G,
1084
+ Z,
1075
1085
  {
1076
- className: `${ie.class}__icon ${v.class}`,
1086
+ className: `${de.class}__icon ${v.class}`,
1077
1087
  fill: !0,
1078
1088
  image: v.image,
1079
1089
  size: "xxl",
1080
1090
  testId: `${n}-icon`
1081
1091
  }
1082
1092
  ),
1083
- (a || r) && /* @__PURE__ */ I("div", { className: `${ie.class}__label`, children: [
1093
+ (a || r) && /* @__PURE__ */ R("div", { className: `${de.class}__label`, children: [
1084
1094
  r && /* @__PURE__ */ c(
1085
1095
  "label",
1086
1096
  {
1087
- className: `${ie.class}__label-title`,
1097
+ className: `${de.class}__label-title`,
1088
1098
  htmlFor: t || s,
1089
1099
  children: r
1090
1100
  }
@@ -1092,7 +1102,7 @@ const ie = {
1092
1102
  a && /* @__PURE__ */ c(
1093
1103
  "label",
1094
1104
  {
1095
- className: `${ie.class}__label-description`,
1105
+ className: `${de.class}__label-description`,
1096
1106
  htmlFor: t || s,
1097
1107
  children: a
1098
1108
  }
@@ -1114,7 +1124,7 @@ fs.propTypes = {
1114
1124
  };
1115
1125
  fs.displayName = "DsCheckbox";
1116
1126
  var gs = /* @__PURE__ */ ((t) => (t.Heading1 = "heading-1", t.Heading2 = "heading-2", t.Heading3 = "heading-3", t.Heading4 = "heading-4", t.Heading5 = "heading-5", t.Heading6 = "heading-6", t))(gs || {});
1117
- const Ke = {
1127
+ const Ge = {
1118
1128
  name: "Heading",
1119
1129
  class: "ds-heading",
1120
1130
  props: {
@@ -1127,7 +1137,7 @@ const Ke = {
1127
1137
  }, Nt = ({
1128
1138
  children: t,
1129
1139
  testId: e = "ds-heading-test",
1130
- type: s = Ke.props.type.default,
1140
+ type: s = Ge.props.type.default,
1131
1141
  className: n
1132
1142
  }) => {
1133
1143
  const r = {
@@ -1137,11 +1147,11 @@ const Ke = {
1137
1147
  "heading-4": "h4",
1138
1148
  "heading-5": "h5",
1139
1149
  "heading-6": "h6"
1140
- }, a = s.replace("heading-", ""), i = Ke.props.type.options.find((d) => d === s) && `${Ke.class}--${a}`, u = r[s];
1150
+ }, a = s.replace("heading-", ""), i = Ge.props.type.options.find((d) => d === s) && `${Ge.class}--${a}`, u = r[s];
1141
1151
  return /* @__PURE__ */ c(
1142
1152
  u,
1143
1153
  {
1144
- className: [Ke.class, i, n].filter((d) => d).join(" "),
1154
+ className: [Ge.class, i, n].filter((d) => d).join(" "),
1145
1155
  "data-testid": e,
1146
1156
  children: t
1147
1157
  }
@@ -1150,7 +1160,7 @@ const Ke = {
1150
1160
  Nt.propTypes = {
1151
1161
  className: o.string,
1152
1162
  testId: o.string,
1153
- type: o.oneOf(Ke.props.type.options)
1163
+ type: o.oneOf(Ge.props.type.options)
1154
1164
  };
1155
1165
  Nt.displayName = "DsHeading";
1156
1166
  var ms = /* @__PURE__ */ ((t) => (t.None = "", t.Dashed = "dashed", t.Dotted = "dotted", t))(ms || {}), vs = /* @__PURE__ */ ((t) => (t.None = "", t.Small = "small", t.Large = "large", t))(vs || {});
@@ -1191,7 +1201,7 @@ _s.propTypes = {
1191
1201
  borderStyle: o.oneOf(Pe.props.borderStyle.options)
1192
1202
  };
1193
1203
  _s.displayName = "DsHR";
1194
- function $e(t) {
1204
+ function Me(t) {
1195
1205
  return typeof t == "string" || t instanceof String;
1196
1206
  }
1197
1207
  function Gt(t) {
@@ -1204,19 +1214,19 @@ function ys(t, e) {
1204
1214
  return e(a, r) && (s[r] = a), s;
1205
1215
  }, {});
1206
1216
  }
1207
- const S = {
1217
+ const x = {
1208
1218
  NONE: "NONE",
1209
1219
  LEFT: "LEFT",
1210
1220
  FORCE_LEFT: "FORCE_LEFT",
1211
1221
  RIGHT: "RIGHT",
1212
1222
  FORCE_RIGHT: "FORCE_RIGHT"
1213
1223
  };
1214
- function $n(t) {
1224
+ function Ln(t) {
1215
1225
  switch (t) {
1216
- case S.LEFT:
1217
- return S.FORCE_LEFT;
1218
- case S.RIGHT:
1219
- return S.FORCE_RIGHT;
1226
+ case x.LEFT:
1227
+ return x.FORCE_LEFT;
1228
+ case x.RIGHT:
1229
+ return x.FORCE_RIGHT;
1220
1230
  default:
1221
1231
  return t;
1222
1232
  }
@@ -1249,7 +1259,7 @@ function ct(t, e) {
1249
1259
  return e.toString() === t.toString();
1250
1260
  return !1;
1251
1261
  }
1252
- class Mn {
1262
+ class jn {
1253
1263
  /** Current input value */
1254
1264
  /** Current cursor position */
1255
1265
  /** Old input value */
@@ -1292,29 +1302,29 @@ class Mn {
1292
1302
  }
1293
1303
  /** Remove direction */
1294
1304
  get removeDirection() {
1295
- return !this.removedCount || this.insertedCount ? S.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
1296
- this.oldSelection.end === this.oldSelection.start ? S.RIGHT : S.LEFT;
1305
+ return !this.removedCount || this.insertedCount ? x.NONE : (this.oldSelection.end === this.cursorPos || this.oldSelection.start === this.cursorPos) && // if not range removed (event with backspace)
1306
+ this.oldSelection.end === this.oldSelection.start ? x.RIGHT : x.LEFT;
1297
1307
  }
1298
1308
  }
1299
- function D(t, e) {
1300
- return new D.InputMask(t, e);
1309
+ function O(t, e) {
1310
+ return new O.InputMask(t, e);
1301
1311
  }
1302
1312
  function ks(t) {
1303
1313
  if (t == null) throw new Error("mask property should be defined");
1304
- return t instanceof RegExp ? D.MaskedRegExp : $e(t) ? D.MaskedPattern : t === Date ? D.MaskedDate : t === Number ? D.MaskedNumber : Array.isArray(t) || t === Array ? D.MaskedDynamic : D.Masked && t.prototype instanceof D.Masked ? t : D.Masked && t instanceof D.Masked ? t.constructor : t instanceof Function ? D.MaskedFunction : (console.warn("Mask not found for mask", t), D.Masked);
1314
+ return t instanceof RegExp ? O.MaskedRegExp : Me(t) ? O.MaskedPattern : t === Date ? O.MaskedDate : t === Number ? O.MaskedNumber : Array.isArray(t) || t === Array ? O.MaskedDynamic : O.Masked && t.prototype instanceof O.Masked ? t : O.Masked && t instanceof O.Masked ? t.constructor : t instanceof Function ? O.MaskedFunction : (console.warn("Mask not found for mask", t), O.Masked);
1305
1315
  }
1306
1316
  function Je(t) {
1307
1317
  if (!t) throw new Error("Options in not defined");
1308
- if (D.Masked) {
1309
- if (t.prototype instanceof D.Masked) return {
1318
+ if (O.Masked) {
1319
+ if (t.prototype instanceof O.Masked) return {
1310
1320
  mask: t
1311
1321
  };
1312
1322
  const {
1313
1323
  mask: e = void 0,
1314
1324
  ...s
1315
- } = t instanceof D.Masked ? {
1325
+ } = t instanceof O.Masked ? {
1316
1326
  mask: t
1317
- } : Gt(t) && t.mask instanceof D.Masked ? t : {};
1327
+ } : Gt(t) && t.mask instanceof O.Masked ? t : {};
1318
1328
  if (e) {
1319
1329
  const n = e.mask;
1320
1330
  return {
@@ -1331,13 +1341,13 @@ function Je(t) {
1331
1341
  mask: t
1332
1342
  };
1333
1343
  }
1334
- function De(t) {
1335
- if (D.Masked && t instanceof D.Masked) return t;
1344
+ function Re(t) {
1345
+ if (O.Masked && t instanceof O.Masked) return t;
1336
1346
  const e = Je(t), s = ks(e.mask);
1337
1347
  if (!s) throw new Error("Masked class is not found for provided mask " + e.mask + ", appropriate module needs to be imported manually before creating mask.");
1338
1348
  return e.mask === s && delete e.mask, e._mask && (e.mask = e._mask, delete e._mask), new s(e);
1339
1349
  }
1340
- D.createMask = De;
1350
+ O.createMask = Re;
1341
1351
  class Bt {
1342
1352
  /** */
1343
1353
  /** */
@@ -1376,8 +1386,8 @@ class Bt {
1376
1386
  /** */
1377
1387
  /** */
1378
1388
  }
1379
- D.MaskElement = Bt;
1380
- const Zt = 90, Vn = 89;
1389
+ O.MaskElement = Bt;
1390
+ const Zt = 90, Pn = 89;
1381
1391
  class ht extends Bt {
1382
1392
  /** HTMLElement to use mask on */
1383
1393
  constructor(e) {
@@ -1396,7 +1406,7 @@ class ht extends Bt {
1396
1406
  this.input.addEventListener("keydown", this._onKeydown), this.input.addEventListener("input", this._onInput), this.input.addEventListener("beforeinput", this._onBeforeinput), this.input.addEventListener("compositionend", this._onCompositionEnd), this.input.addEventListener("drop", e.drop), this.input.addEventListener("click", e.click), this.input.addEventListener("focus", e.focus), this.input.addEventListener("blur", e.commit), this._handlers = e;
1397
1407
  }
1398
1408
  _onKeydown(e) {
1399
- if (this._handlers.redo && (e.keyCode === Zt && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === Vn && e.ctrlKey))
1409
+ if (this._handlers.redo && (e.keyCode === Zt && e.shiftKey && (e.metaKey || e.ctrlKey) || e.keyCode === Pn && e.ctrlKey))
1400
1410
  return e.preventDefault(), this._handlers.redo(e);
1401
1411
  if (this._handlers.undo && e.keyCode === Zt && (e.metaKey || e.ctrlKey))
1402
1412
  return e.preventDefault(), this._handlers.undo(e);
@@ -1419,8 +1429,8 @@ class ht extends Bt {
1419
1429
  this.input.removeEventListener("keydown", this._onKeydown), this.input.removeEventListener("input", this._onInput), this.input.removeEventListener("beforeinput", this._onBeforeinput), this.input.removeEventListener("compositionend", this._onCompositionEnd), this.input.removeEventListener("drop", this._handlers.drop), this.input.removeEventListener("click", this._handlers.click), this.input.removeEventListener("focus", this._handlers.focus), this.input.removeEventListener("blur", this._handlers.commit), this._handlers = {};
1420
1430
  }
1421
1431
  }
1422
- D.HTMLMaskElement = ht;
1423
- class Ln extends ht {
1432
+ O.HTMLMaskElement = ht;
1433
+ class qn extends ht {
1424
1434
  /** InputElement to use mask on */
1425
1435
  constructor(e) {
1426
1436
  super(e), this.input = e;
@@ -1444,7 +1454,7 @@ class Ln extends ht {
1444
1454
  this.input.value = e;
1445
1455
  }
1446
1456
  }
1447
- D.HTMLMaskElement = ht;
1457
+ O.HTMLMaskElement = ht;
1448
1458
  class bs extends ht {
1449
1459
  /** Returns HTMLElement selection start */
1450
1460
  get _unsafeSelectionStart() {
@@ -1472,7 +1482,7 @@ class bs extends ht {
1472
1482
  this.input.textContent = e;
1473
1483
  }
1474
1484
  }
1475
- D.HTMLContenteditableMaskElement = bs;
1485
+ O.HTMLContenteditableMaskElement = bs;
1476
1486
  class ft {
1477
1487
  constructor() {
1478
1488
  this.states = [], this.currentIndex = 0;
@@ -1500,13 +1510,13 @@ class ft {
1500
1510
  }
1501
1511
  }
1502
1512
  ft.MAX_LENGTH = 100;
1503
- class jn {
1513
+ class Un {
1504
1514
  /**
1505
1515
  View element
1506
1516
  */
1507
1517
  /** Internal {@link Masked} model */
1508
1518
  constructor(e, s) {
1509
- this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new Ln(e), this.masked = De(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ft(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
1519
+ this.el = e instanceof Bt ? e : e.isContentEditable && e.tagName !== "INPUT" && e.tagName !== "TEXTAREA" ? new bs(e) : new qn(e), this.masked = Re(s), this._listeners = {}, this._value = "", this._unmaskedValue = "", this._rawInputValue = "", this.history = new ft(), this._saveSelection = this._saveSelection.bind(this), this._onInput = this._onInput.bind(this), this._onChange = this._onChange.bind(this), this._onDrop = this._onDrop.bind(this), this._onFocus = this._onFocus.bind(this), this._onClick = this._onClick.bind(this), this._onUndo = this._onUndo.bind(this), this._onRedo = this._onRedo.bind(this), this.alignCursor = this.alignCursor.bind(this), this.alignCursorFriendly = this.alignCursorFriendly.bind(this), this._bindEvents(), this.updateValue(), this._onChange();
1510
1520
  }
1511
1521
  maskEquals(e) {
1512
1522
  var s;
@@ -1518,13 +1528,13 @@ class jn {
1518
1528
  }
1519
1529
  set mask(e) {
1520
1530
  if (this.maskEquals(e)) return;
1521
- if (!(e instanceof D.Masked) && this.masked.constructor === ks(e)) {
1531
+ if (!(e instanceof O.Masked) && this.masked.constructor === ks(e)) {
1522
1532
  this.masked.updateOptions({
1523
1533
  mask: e
1524
1534
  });
1525
1535
  return;
1526
1536
  }
1527
- const s = e instanceof D.Masked ? e : De({
1537
+ const s = e instanceof O.Masked ? e : Re({
1528
1538
  mask: e
1529
1539
  });
1530
1540
  s.unmaskedValue = this.masked.unmaskedValue, this.masked = s;
@@ -1644,7 +1654,7 @@ class jn {
1644
1654
  }
1645
1655
  /** Aligns cursor to nearest available position */
1646
1656
  alignCursor() {
1647
- this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, S.LEFT));
1657
+ this.cursorPos = this.masked.nearestInputPos(this.masked.nearestInputPos(this.cursorPos, x.LEFT));
1648
1658
  }
1649
1659
  /** Aligns cursor only if selection is empty */
1650
1660
  alignCursorFriendly() {
@@ -1665,7 +1675,7 @@ class jn {
1665
1675
  /** Handles view input event */
1666
1676
  _onInput(e) {
1667
1677
  this._inputEvent = e, this._abortUpdateCursor();
1668
- const s = new Mn({
1678
+ const s = new jn({
1669
1679
  // new state
1670
1680
  value: this.el.value,
1671
1681
  cursorPos: this.cursorPos,
@@ -1675,9 +1685,9 @@ class jn {
1675
1685
  }), n = this.masked.rawInputValue, r = this.masked.splice(s.startChangePos, s.removed.length, s.inserted, s.removeDirection, {
1676
1686
  input: !0,
1677
1687
  raw: !0
1678
- }).offset, a = n === this.masked.rawInputValue ? s.removeDirection : S.NONE;
1688
+ }).offset, a = n === this.masked.rawInputValue ? s.removeDirection : x.NONE;
1679
1689
  let i = this.masked.nearestInputPos(s.startChangePos + r, a);
1680
- a !== S.NONE && (i = this.masked.nearestInputPos(i, S.NONE)), this.updateControl(i), delete this._inputEvent;
1690
+ a !== x.NONE && (i = this.masked.nearestInputPos(i, x.NONE)), this.updateControl(i), delete this._inputEvent;
1681
1691
  }
1682
1692
  /** Handles view change event and commits model value */
1683
1693
  _onChange() {
@@ -1709,7 +1719,7 @@ class jn {
1709
1719
  this._unbindEvents(), this._listeners.length = 0, delete this.el;
1710
1720
  }
1711
1721
  }
1712
- D.InputMask = jn;
1722
+ O.InputMask = Un;
1713
1723
  class M {
1714
1724
  /** Inserted symbols */
1715
1725
  /** Additional offset if any changes occurred before tail */
@@ -1741,8 +1751,8 @@ class M {
1741
1751
  return this.inserted === e.inserted && this.tailShift === e.tailShift && this.rawInserted === e.rawInserted && this.skip === e.skip;
1742
1752
  }
1743
1753
  }
1744
- D.ChangeDetails = M;
1745
- class we {
1754
+ O.ChangeDetails = M;
1755
+ class Fe {
1746
1756
  /** Tail value as string */
1747
1757
  /** Tail start position */
1748
1758
  /** Start position */
@@ -1781,7 +1791,7 @@ class we {
1781
1791
  return this.value = this.value.slice(0, -1), e;
1782
1792
  }
1783
1793
  }
1784
- class re {
1794
+ class ie {
1785
1795
  /** */
1786
1796
  /** */
1787
1797
  /** Transforms value before mask processing */
@@ -1797,7 +1807,7 @@ class re {
1797
1807
  /** */
1798
1808
  constructor(e) {
1799
1809
  this._value = "", this._update({
1800
- ...re.DEFAULTS,
1810
+ ...ie.DEFAULTS,
1801
1811
  ...e
1802
1812
  }), this._initialized = !0;
1803
1813
  }
@@ -1882,11 +1892,11 @@ class re {
1882
1892
  }
1883
1893
  /** Extracts tail in range */
1884
1894
  extractTail(e, s) {
1885
- return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new we(this.extractInput(e, s), e);
1895
+ return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new Fe(this.extractInput(e, s), e);
1886
1896
  }
1887
1897
  /** Appends tail */
1888
1898
  appendTail(e) {
1889
- return $e(e) && (e = new we(String(e))), e.appendTo(this);
1899
+ return Me(e) && (e = new Fe(String(e))), e.appendTo(this);
1890
1900
  }
1891
1901
  /** Appends char */
1892
1902
  _appendCharRaw(e, s) {
@@ -1939,8 +1949,8 @@ class re {
1939
1949
  }
1940
1950
  /** Appends symbols considering flags */
1941
1951
  append(e, s, n) {
1942
- if (!$e(e)) throw new Error("value should be string");
1943
- const r = $e(n) ? new we(String(n)) : n;
1952
+ if (!Me(e)) throw new Error("value should be string");
1953
+ const r = Me(n) ? new Fe(String(n)) : n;
1944
1954
  s != null && s.tail && (s._beforeTailState = this.state);
1945
1955
  let a;
1946
1956
  [e, a] = this.doPrepare(e, s);
@@ -1987,24 +1997,24 @@ class re {
1987
1997
  this.commit && this.commit(this.value, this);
1988
1998
  }
1989
1999
  splice(e, s, n, r, a) {
1990
- n === void 0 && (n = ""), r === void 0 && (r = S.NONE), a === void 0 && (a = {
2000
+ n === void 0 && (n = ""), r === void 0 && (r = x.NONE), a === void 0 && (a = {
1991
2001
  input: !0
1992
2002
  });
1993
2003
  const i = e + s, l = this.extractTail(i), u = this.eager === !0 || this.eager === "remove";
1994
2004
  let d;
1995
- u && (r = $n(r), d = this.extractInput(0, i, {
2005
+ u && (r = Ln(r), d = this.extractInput(0, i, {
1996
2006
  raw: !0
1997
2007
  }));
1998
2008
  let h = e;
1999
2009
  const f = new M();
2000
- if (r !== S.NONE && (h = this.nearestInputPos(e, s > 1 && e !== 0 && !u ? S.NONE : r), f.tailShift = h - e), f.aggregate(this.remove(h)), u && r !== S.NONE && d === this.rawInputValue)
2001
- if (r === S.FORCE_LEFT) {
2010
+ if (r !== x.NONE && (h = this.nearestInputPos(e, s > 1 && e !== 0 && !u ? x.NONE : r), f.tailShift = h - e), f.aggregate(this.remove(h)), u && r !== x.NONE && d === this.rawInputValue)
2011
+ if (r === x.FORCE_LEFT) {
2002
2012
  let _;
2003
2013
  for (; d === this.rawInputValue && (_ = this.displayValue.length); )
2004
2014
  f.aggregate(new M({
2005
2015
  tailShift: -1
2006
2016
  })).aggregate(this.remove(_ - 1));
2007
- } else r === S.FORCE_RIGHT && l.unshift();
2017
+ } else r === x.FORCE_RIGHT && l.unshift();
2008
2018
  return f.aggregate(this.append(n, a, l));
2009
2019
  }
2010
2020
  maskEquals(e) {
@@ -2015,17 +2025,17 @@ class re {
2015
2025
  }
2016
2026
  typedValueEquals(e) {
2017
2027
  const s = this.typedValue;
2018
- return e === s || re.EMPTY_VALUES.includes(e) && re.EMPTY_VALUES.includes(s) || (this.format ? this.format(e, this) === this.format(this.typedValue, this) : !1);
2028
+ return e === s || ie.EMPTY_VALUES.includes(e) && ie.EMPTY_VALUES.includes(s) || (this.format ? this.format(e, this) === this.format(this.typedValue, this) : !1);
2019
2029
  }
2020
2030
  pad(e) {
2021
2031
  return new M();
2022
2032
  }
2023
2033
  }
2024
- re.DEFAULTS = {
2034
+ ie.DEFAULTS = {
2025
2035
  skipInvalid: !0
2026
2036
  };
2027
- re.EMPTY_VALUES = [void 0, null, ""];
2028
- D.Masked = re;
2037
+ ie.EMPTY_VALUES = [void 0, null, ""];
2038
+ O.Masked = ie;
2029
2039
  class qe {
2030
2040
  /** */
2031
2041
  constructor(e, s) {
@@ -2036,11 +2046,11 @@ class qe {
2036
2046
  }
2037
2047
  extend(e) {
2038
2048
  if (!String(e)) return;
2039
- e = $e(e) ? new we(String(e)) : e;
2049
+ e = Me(e) ? new Fe(String(e)) : e;
2040
2050
  const s = this.chunks[this.chunks.length - 1], n = s && // if stops are same or tail has no stop
2041
2051
  (s.stop === e.stop || e.stop == null) && // if tail chunk goes just after last chunk
2042
2052
  e.from === s.from + s.toString().length;
2043
- if (e instanceof we)
2053
+ if (e instanceof Fe)
2044
2054
  n ? s.extend(e.toString()) : this.chunks.push(e);
2045
2055
  else if (e instanceof qe) {
2046
2056
  if (e.stop == null) {
@@ -2052,8 +2062,8 @@ class qe {
2052
2062
  }
2053
2063
  }
2054
2064
  appendTo(e) {
2055
- if (!(e instanceof D.MaskedPattern))
2056
- return new we(this.toString()).appendTo(e);
2065
+ if (!(e instanceof O.MaskedPattern))
2066
+ return new Fe(this.toString()).appendTo(e);
2057
2067
  const s = new M();
2058
2068
  for (let n = 0; n < this.chunks.length; ++n) {
2059
2069
  const r = this.chunks[n], a = e._mapPosToBlock(e.displayValue.length), i = r.stop;
@@ -2088,7 +2098,7 @@ class qe {
2088
2098
  ...n
2089
2099
  } = e;
2090
2100
  Object.assign(this, n), this.chunks = s.map((r) => {
2091
- const a = "chunks" in r ? new qe() : new we();
2101
+ const a = "chunks" in r ? new qe() : new Fe();
2092
2102
  return a.state = r, a;
2093
2103
  });
2094
2104
  }
@@ -2122,7 +2132,7 @@ class qe {
2122
2132
  return "";
2123
2133
  }
2124
2134
  }
2125
- class Pn {
2135
+ class zn {
2126
2136
  constructor(e, s) {
2127
2137
  this.masked = e, this._log = [];
2128
2138
  const {
@@ -2183,38 +2193,38 @@ class Pn {
2183
2193
  }
2184
2194
  pushLeftBeforeFilled() {
2185
2195
  return this._pushLeft(() => {
2186
- if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, S.FORCE_LEFT), this.offset !== 0))
2196
+ if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, x.FORCE_LEFT), this.offset !== 0))
2187
2197
  return !0;
2188
2198
  });
2189
2199
  }
2190
2200
  pushLeftBeforeInput() {
2191
2201
  return this._pushLeft(() => {
2192
2202
  if (!this.block.isFixed)
2193
- return this.offset = this.block.nearestInputPos(this.offset, S.LEFT), !0;
2203
+ return this.offset = this.block.nearestInputPos(this.offset, x.LEFT), !0;
2194
2204
  });
2195
2205
  }
2196
2206
  pushLeftBeforeRequired() {
2197
2207
  return this._pushLeft(() => {
2198
2208
  if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
2199
- return this.offset = this.block.nearestInputPos(this.offset, S.LEFT), !0;
2209
+ return this.offset = this.block.nearestInputPos(this.offset, x.LEFT), !0;
2200
2210
  });
2201
2211
  }
2202
2212
  pushRightBeforeFilled() {
2203
2213
  return this._pushRight(() => {
2204
- if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, S.FORCE_RIGHT), this.offset !== this.block.value.length))
2214
+ if (!(this.block.isFixed || !this.block.value) && (this.offset = this.block.nearestInputPos(this.offset, x.FORCE_RIGHT), this.offset !== this.block.value.length))
2205
2215
  return !0;
2206
2216
  });
2207
2217
  }
2208
2218
  pushRightBeforeInput() {
2209
2219
  return this._pushRight(() => {
2210
2220
  if (!this.block.isFixed)
2211
- return this.offset = this.block.nearestInputPos(this.offset, S.NONE), !0;
2221
+ return this.offset = this.block.nearestInputPos(this.offset, x.NONE), !0;
2212
2222
  });
2213
2223
  }
2214
2224
  pushRightBeforeRequired() {
2215
2225
  return this._pushRight(() => {
2216
2226
  if (!(this.block.isFixed || this.block.isOptional && !this.block.value))
2217
- return this.offset = this.block.nearestInputPos(this.offset, S.NONE), !0;
2227
+ return this.offset = this.block.nearestInputPos(this.offset, x.NONE), !0;
2218
2228
  });
2219
2229
  }
2220
2230
  }
@@ -2247,15 +2257,15 @@ class Es {
2247
2257
  return e === void 0 && (e = 0), s === void 0 && (s = this._value.length), this._value = this._value.slice(0, e) + this._value.slice(s), this._value || (this._isRawInput = !1), new M();
2248
2258
  }
2249
2259
  nearestInputPos(e, s) {
2250
- s === void 0 && (s = S.NONE);
2260
+ s === void 0 && (s = x.NONE);
2251
2261
  const n = 0, r = this._value.length;
2252
2262
  switch (s) {
2253
- case S.LEFT:
2254
- case S.FORCE_LEFT:
2263
+ case x.LEFT:
2264
+ case x.FORCE_LEFT:
2255
2265
  return n;
2256
- case S.NONE:
2257
- case S.RIGHT:
2258
- case S.FORCE_RIGHT:
2266
+ case x.NONE:
2267
+ case x.RIGHT:
2268
+ case x.FORCE_RIGHT:
2259
2269
  default:
2260
2270
  return r;
2261
2271
  }
@@ -2290,10 +2300,10 @@ class Es {
2290
2300
  return this.isFilled || (this._value = e.inserted = this.char), e;
2291
2301
  }
2292
2302
  extractTail() {
2293
- return new we("");
2303
+ return new Fe("");
2294
2304
  }
2295
2305
  appendTail(e) {
2296
- return $e(e) && (e = new we(String(e))), e.appendTo(this);
2306
+ return Me(e) && (e = new Fe(String(e))), e.appendTo(this);
2297
2307
  }
2298
2308
  append(e, s, n) {
2299
2309
  const r = this._appendChar(e[0], s);
@@ -2333,7 +2343,7 @@ class dt {
2333
2343
  eager: l,
2334
2344
  ...u
2335
2345
  } = e;
2336
- this.masked = De(u), Object.assign(this, {
2346
+ this.masked = Re(u), Object.assign(this, {
2337
2347
  parent: s,
2338
2348
  isOptional: n,
2339
2349
  placeholderChar: r,
@@ -2390,16 +2400,16 @@ class dt {
2390
2400
  return e === void 0 && (e = 0), s === void 0 && (s = this.value.length), this.masked.extractInput(e, s, n);
2391
2401
  }
2392
2402
  nearestInputPos(e, s) {
2393
- s === void 0 && (s = S.NONE);
2403
+ s === void 0 && (s = x.NONE);
2394
2404
  const n = 0, r = this.value.length, a = Math.min(Math.max(e, n), r);
2395
2405
  switch (s) {
2396
- case S.LEFT:
2397
- case S.FORCE_LEFT:
2406
+ case x.LEFT:
2407
+ case x.FORCE_LEFT:
2398
2408
  return this.isComplete ? a : n;
2399
- case S.RIGHT:
2400
- case S.FORCE_RIGHT:
2409
+ case x.RIGHT:
2410
+ case x.FORCE_RIGHT:
2401
2411
  return this.isComplete ? a : r;
2402
- case S.NONE:
2412
+ case x.NONE:
2403
2413
  default:
2404
2414
  return a;
2405
2415
  }
@@ -2441,7 +2451,7 @@ dt.DEFAULT_DEFINITIONS = {
2441
2451
  // http://stackoverflow.com/a/22075070
2442
2452
  "*": /./
2443
2453
  };
2444
- class qn extends re {
2454
+ class Hn extends ie {
2445
2455
  /** */
2446
2456
  /** Enable characters overwriting */
2447
2457
  /** */
@@ -2455,8 +2465,8 @@ class qn extends re {
2455
2465
  s && (e.validate = (n) => n.search(s) >= 0), super._update(e);
2456
2466
  }
2457
2467
  }
2458
- D.MaskedRegExp = qn;
2459
- class ae extends re {
2468
+ O.MaskedRegExp = Hn;
2469
+ class oe extends ie {
2460
2470
  /** */
2461
2471
  /** */
2462
2472
  /** Single char for empty input */
@@ -2468,7 +2478,7 @@ class ae extends re {
2468
2478
  /** */
2469
2479
  constructor(e) {
2470
2480
  super({
2471
- ...ae.DEFAULTS,
2481
+ ...oe.DEFAULTS,
2472
2482
  ...e,
2473
2483
  definitions: Object.assign({}, dt.DEFAULT_DEFINITIONS, e == null ? void 0 : e.definitions)
2474
2484
  });
@@ -2494,7 +2504,7 @@ class ae extends re {
2494
2504
  const {
2495
2505
  expose: _,
2496
2506
  repeat: y,
2497
- ...b
2507
+ ...S
2498
2508
  } = Je(this.blocks[f]), v = {
2499
2509
  lazy: this.lazy,
2500
2510
  eager: this.eager,
@@ -2502,19 +2512,19 @@ class ae extends re {
2502
2512
  displayChar: this.displayChar,
2503
2513
  overwrite: this.overwrite,
2504
2514
  autofix: this.autofix,
2505
- ...b,
2515
+ ...S,
2506
2516
  repeat: y,
2507
2517
  parent: this
2508
- }, m = y != null ? new D.RepeatBlock(
2518
+ }, m = y != null ? new O.RepeatBlock(
2509
2519
  v
2510
2520
  /* TODO */
2511
- ) : De(v);
2521
+ ) : Re(v);
2512
2522
  m && (this._blocks.push(m), _ && (this.exposeBlock = m), this._maskedBlocks[f] || (this._maskedBlocks[f] = []), this._maskedBlocks[f].push(this._blocks.length - 1)), a += f.length - 1;
2513
2523
  continue;
2514
2524
  }
2515
2525
  }
2516
2526
  let i = s[a], l = i in e;
2517
- if (i === ae.STOP_CHAR) {
2527
+ if (i === oe.STOP_CHAR) {
2518
2528
  this._stops.push(this._blocks.length);
2519
2529
  continue;
2520
2530
  }
@@ -2526,7 +2536,7 @@ class ae extends re {
2526
2536
  r = !r;
2527
2537
  continue;
2528
2538
  }
2529
- if (i === ae.ESCAPE_CHAR) {
2539
+ if (i === oe.ESCAPE_CHAR) {
2530
2540
  if (++a, i = s[a], !i) break;
2531
2541
  l = !1;
2532
2542
  }
@@ -2717,22 +2727,22 @@ class ae extends re {
2717
2727
  }), n;
2718
2728
  }
2719
2729
  nearestInputPos(e, s) {
2720
- if (s === void 0 && (s = S.NONE), !this._blocks.length) return 0;
2721
- const n = new Pn(this, e);
2722
- if (s === S.NONE)
2730
+ if (s === void 0 && (s = x.NONE), !this._blocks.length) return 0;
2731
+ const n = new zn(this, e);
2732
+ if (s === x.NONE)
2723
2733
  return n.pushRightBeforeInput() || (n.popState(), n.pushLeftBeforeInput()) ? n.pos : this.displayValue.length;
2724
- if (s === S.LEFT || s === S.FORCE_LEFT) {
2725
- if (s === S.LEFT) {
2734
+ if (s === x.LEFT || s === x.FORCE_LEFT) {
2735
+ if (s === x.LEFT) {
2726
2736
  if (n.pushRightBeforeFilled(), n.ok && n.pos === e) return e;
2727
2737
  n.popState();
2728
2738
  }
2729
- if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s === S.LEFT) {
2739
+ if (n.pushLeftBeforeInput(), n.pushLeftBeforeRequired(), n.pushLeftBeforeFilled(), s === x.LEFT) {
2730
2740
  if (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.ok && n.pos <= e || (n.popState(), n.ok && n.pos <= e)) return n.pos;
2731
2741
  n.popState();
2732
2742
  }
2733
- return n.ok ? n.pos : s === S.FORCE_LEFT ? 0 : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : 0);
2743
+ return n.ok ? n.pos : s === x.FORCE_LEFT ? 0 : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : 0);
2734
2744
  }
2735
- return s === S.RIGHT || s === S.FORCE_RIGHT ? (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.pushRightBeforeFilled() ? n.pos : s === S.FORCE_RIGHT ? this.displayValue.length : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : this.nearestInputPos(e, S.LEFT))) : e;
2745
+ return s === x.RIGHT || s === x.FORCE_RIGHT ? (n.pushRightBeforeInput(), n.pushRightBeforeRequired(), n.pushRightBeforeFilled() ? n.pos : s === x.FORCE_RIGHT ? this.displayValue.length : (n.popState(), n.ok || (n.popState(), n.ok) ? n.pos : this.nearestInputPos(e, x.LEFT))) : e;
2736
2746
  }
2737
2747
  totalInputPositions(e, s) {
2738
2748
  e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length);
@@ -2755,17 +2765,17 @@ class ae extends re {
2755
2765
  return this._forEachBlocksInRange(0, this.displayValue.length, (n) => s.aggregate(n.pad(e))), s;
2756
2766
  }
2757
2767
  }
2758
- ae.DEFAULTS = {
2759
- ...re.DEFAULTS,
2768
+ oe.DEFAULTS = {
2769
+ ...ie.DEFAULTS,
2760
2770
  lazy: !0,
2761
2771
  placeholderChar: "_"
2762
2772
  };
2763
- ae.STOP_CHAR = "`";
2764
- ae.ESCAPE_CHAR = "\\";
2765
- ae.InputDefinition = dt;
2766
- ae.FixedDefinition = Es;
2767
- D.MaskedPattern = ae;
2768
- class it extends ae {
2773
+ oe.STOP_CHAR = "`";
2774
+ oe.ESCAPE_CHAR = "\\";
2775
+ oe.InputDefinition = dt;
2776
+ oe.FixedDefinition = Es;
2777
+ O.MaskedPattern = oe;
2778
+ class it extends oe {
2769
2779
  /**
2770
2780
  Optionally sets max length of pattern.
2771
2781
  Used when pattern length is longer then `to` param length. Pads zeros at start in this case.
@@ -2832,9 +2842,9 @@ class it extends ae {
2832
2842
  return s;
2833
2843
  }
2834
2844
  }
2835
- D.MaskedRange = it;
2836
- const Un = "d{.}`m{.}`Y";
2837
- class Oe extends ae {
2845
+ O.MaskedRange = it;
2846
+ const Wn = "d{.}`m{.}`Y";
2847
+ class Ie extends oe {
2838
2848
  static extractPatternOptions(e) {
2839
2849
  const {
2840
2850
  mask: s,
@@ -2843,7 +2853,7 @@ class Oe extends ae {
2843
2853
  } = e;
2844
2854
  return {
2845
2855
  ...r,
2846
- mask: $e(s) ? s : n
2856
+ mask: Me(s) ? s : n
2847
2857
  };
2848
2858
  }
2849
2859
  /** Pattern mask for date according to {@link MaskedDate#format} */
@@ -2852,8 +2862,8 @@ class Oe extends ae {
2852
2862
  /** Format typed value to string */
2853
2863
  /** Parse string to get typed value */
2854
2864
  constructor(e) {
2855
- super(Oe.extractPatternOptions({
2856
- ...Oe.DEFAULTS,
2865
+ super(Ie.extractPatternOptions({
2866
+ ...Ie.DEFAULTS,
2857
2867
  ...e
2858
2868
  }));
2859
2869
  }
@@ -2867,12 +2877,12 @@ class Oe extends ae {
2867
2877
  blocks: r,
2868
2878
  ...a
2869
2879
  } = {
2870
- ...Oe.DEFAULTS,
2880
+ ...Ie.DEFAULTS,
2871
2881
  ...e
2872
- }, i = Object.assign({}, Oe.GET_DEFAULT_BLOCKS());
2882
+ }, i = Object.assign({}, Ie.GET_DEFAULT_BLOCKS());
2873
2883
  e.min && (i.Y.from = e.min.getFullYear()), e.max && (i.Y.to = e.max.getFullYear()), e.min && e.max && i.Y.from === i.Y.to && (i.m.from = e.min.getMonth() + 1, i.m.to = e.max.getMonth() + 1, i.m.from === i.m.to && (i.d.from = e.min.getDate(), i.d.to = e.max.getDate())), Object.assign(i, this.blocks, r), super._update({
2874
2884
  ...a,
2875
- mask: $e(s) ? s : n,
2885
+ mask: Me(s) ? s : n,
2876
2886
  blocks: i
2877
2887
  });
2878
2888
  }
@@ -2901,10 +2911,10 @@ class Oe extends ae {
2901
2911
  return e === Date || super.maskEquals(e);
2902
2912
  }
2903
2913
  optionsIsChanged(e) {
2904
- return super.optionsIsChanged(Oe.extractPatternOptions(e));
2914
+ return super.optionsIsChanged(Ie.extractPatternOptions(e));
2905
2915
  }
2906
2916
  }
2907
- Oe.GET_DEFAULT_BLOCKS = () => ({
2917
+ Ie.GET_DEFAULT_BLOCKS = () => ({
2908
2918
  d: {
2909
2919
  mask: it,
2910
2920
  from: 1,
@@ -2923,10 +2933,10 @@ Oe.GET_DEFAULT_BLOCKS = () => ({
2923
2933
  to: 9999
2924
2934
  }
2925
2935
  });
2926
- Oe.DEFAULTS = {
2927
- ...ae.DEFAULTS,
2936
+ Ie.DEFAULTS = {
2937
+ ...oe.DEFAULTS,
2928
2938
  mask: Date,
2929
- pattern: Un,
2939
+ pattern: Wn,
2930
2940
  format: (t, e) => {
2931
2941
  if (!t) return "";
2932
2942
  const s = String(t.getDate()).padStart(2, "0"), n = String(t.getMonth() + 1).padStart(2, "0"), r = t.getFullYear();
@@ -2937,8 +2947,8 @@ Oe.DEFAULTS = {
2937
2947
  return new Date(r, n - 1, s);
2938
2948
  }
2939
2949
  };
2940
- D.MaskedDate = Oe;
2941
- class gt extends re {
2950
+ O.MaskedDate = Ie;
2951
+ class gt extends ie {
2942
2952
  constructor(e) {
2943
2953
  super({
2944
2954
  ...gt.DEFAULTS,
@@ -2953,7 +2963,7 @@ class gt extends re {
2953
2963
  const {
2954
2964
  expose: n,
2955
2965
  ...r
2956
- } = Je(s), a = De({
2966
+ } = Je(s), a = Re({
2957
2967
  overwrite: this._overwrite,
2958
2968
  eager: this._eager,
2959
2969
  skipInvalid: this._skipInvalid,
@@ -3135,24 +3145,24 @@ class gt extends re {
3135
3145
  }
3136
3146
  }
3137
3147
  gt.DEFAULTS = {
3138
- ...re.DEFAULTS,
3148
+ ...ie.DEFAULTS,
3139
3149
  dispatch: (t, e, s, n) => {
3140
3150
  if (!e.compiledMasks.length) return;
3141
3151
  const r = e.rawInputValue, a = e.compiledMasks.map((i, l) => {
3142
- const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, S.FORCE_LEFT);
3152
+ const u = e.currentMask === i, d = u ? i.displayValue.length : i.nearestInputPos(i.displayValue.length, x.FORCE_LEFT);
3143
3153
  return i.rawInputValue !== r ? (i.reset(), i.append(r, {
3144
3154
  raw: !0
3145
3155
  })) : u || i.remove(d), i.append(t, e.currentMaskFlags(s)), i.appendTail(n), {
3146
3156
  index: l,
3147
3157
  weight: i.rawInputValue.length,
3148
- totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, S.FORCE_LEFT)))
3158
+ totalInputPositions: i.totalInputPositions(0, Math.max(d, i.nearestInputPos(i.displayValue.length, x.FORCE_LEFT)))
3149
3159
  };
3150
3160
  });
3151
3161
  return a.sort((i, l) => l.weight - i.weight || l.totalInputPositions - i.totalInputPositions), e.compiledMasks[a[0].index];
3152
3162
  }
3153
3163
  };
3154
- D.MaskedDynamic = gt;
3155
- class mt extends ae {
3164
+ O.MaskedDynamic = gt;
3165
+ class mt extends oe {
3156
3166
  constructor(e) {
3157
3167
  super({
3158
3168
  ...mt.DEFAULTS,
@@ -3175,7 +3185,7 @@ class mt extends ae {
3175
3185
  }
3176
3186
  _appendCharRaw(e, s) {
3177
3187
  s === void 0 && (s = {});
3178
- const n = Math.min(this.nearestInputPos(0, S.FORCE_RIGHT), this.value.length), r = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, n));
3188
+ const n = Math.min(this.nearestInputPos(0, x.FORCE_RIGHT), this.value.length), r = this.enum.filter((a) => this.matchValue(a, this.unmaskedValue + e, n));
3179
3189
  if (r.length) {
3180
3190
  r.length === 1 && this._forEachBlocksInRange(0, this.value.length, (i, l) => {
3181
3191
  const u = r[0][l];
@@ -3189,11 +3199,11 @@ class mt extends ae {
3189
3199
  });
3190
3200
  }
3191
3201
  extractTail(e, s) {
3192
- return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new we("", e);
3202
+ return e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), new Fe("", e);
3193
3203
  }
3194
3204
  remove(e, s) {
3195
3205
  if (e === void 0 && (e = 0), s === void 0 && (s = this.displayValue.length), e === s) return new M();
3196
- const n = Math.min(super.nearestInputPos(0, S.FORCE_RIGHT), this.value.length);
3206
+ const n = Math.min(super.nearestInputPos(0, x.FORCE_RIGHT), this.value.length);
3197
3207
  let r;
3198
3208
  for (r = e; r >= 0 && !(this.enum.filter((l) => this.matchValue(l, this.value.slice(n, r), n)).length > 1); --r)
3199
3209
  ;
@@ -3205,11 +3215,11 @@ class mt extends ae {
3205
3215
  }
3206
3216
  }
3207
3217
  mt.DEFAULTS = {
3208
- ...ae.DEFAULTS,
3218
+ ...oe.DEFAULTS,
3209
3219
  matchValue: (t, e, s) => t.indexOf(e, s) === s
3210
3220
  };
3211
- D.MaskedEnum = mt;
3212
- class zn extends re {
3221
+ O.MaskedEnum = mt;
3222
+ class Yn extends ie {
3213
3223
  /** */
3214
3224
  /** Enable characters overwriting */
3215
3225
  /** */
@@ -3225,9 +3235,9 @@ class zn extends re {
3225
3235
  });
3226
3236
  }
3227
3237
  }
3228
- D.MaskedFunction = zn;
3238
+ O.MaskedFunction = Yn;
3229
3239
  var Ss;
3230
- class he extends re {
3240
+ class ge extends ie {
3231
3241
  /** Single char */
3232
3242
  /** Single char */
3233
3243
  /** Array of single chars */
@@ -3244,7 +3254,7 @@ class he extends re {
3244
3254
  /** Parse string to get typed value */
3245
3255
  constructor(e) {
3246
3256
  super({
3247
- ...he.DEFAULTS,
3257
+ ...ge.DEFAULTS,
3248
3258
  ...e
3249
3259
  });
3250
3260
  }
@@ -3301,7 +3311,7 @@ class he extends re {
3301
3311
  let l = !isNaN(i), u = !1;
3302
3312
  if (l) {
3303
3313
  let _;
3304
- this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(he.UNMASKED_RADIX, this.radix), u || (u = a === this._value && !s.tail)) : l = !1), l && (l = !!this._value.match(this._numberRegExp));
3314
+ this.min != null && this.min < 0 && this.number < this.min && (_ = this.min), this.max != null && this.max > 0 && this.number > this.max && (_ = this.max), _ != null && (this.autofix ? (this._value = this.format(_, this).replace(ge.UNMASKED_RADIX, this.radix), u || (u = a === this._value && !s.tail)) : l = !1), l && (l = !!this._value.match(this._numberRegExp));
3305
3315
  }
3306
3316
  let d;
3307
3317
  l ? d = new M({
@@ -3337,19 +3347,19 @@ class he extends re {
3337
3347
  nearestInputPos(e, s) {
3338
3348
  if (!this.thousandsSeparator) return e;
3339
3349
  switch (s) {
3340
- case S.NONE:
3341
- case S.LEFT:
3342
- case S.FORCE_LEFT: {
3350
+ case x.NONE:
3351
+ case x.LEFT:
3352
+ case x.FORCE_LEFT: {
3343
3353
  const n = this._findSeparatorAround(e - 1);
3344
3354
  if (n >= 0) {
3345
3355
  const r = n + this.thousandsSeparator.length;
3346
- if (e < r || this.value.length <= r || s === S.FORCE_LEFT)
3356
+ if (e < r || this.value.length <= r || s === x.FORCE_LEFT)
3347
3357
  return n;
3348
3358
  }
3349
3359
  break;
3350
3360
  }
3351
- case S.RIGHT:
3352
- case S.FORCE_RIGHT: {
3361
+ case x.RIGHT:
3362
+ case x.FORCE_RIGHT: {
3353
3363
  const n = this._findSeparatorAround(e);
3354
3364
  if (n >= 0)
3355
3365
  return n + this.thousandsSeparator.length;
@@ -3378,11 +3388,11 @@ class he extends re {
3378
3388
  }
3379
3389
  doSkipInvalid(e, s, n) {
3380
3390
  s === void 0 && (s = {});
3381
- const r = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === he.UNMASKED_RADIX || this.mapToRadix.includes(e));
3391
+ const r = this.scale === 0 && e !== this.thousandsSeparator && (e === this.radix || e === ge.UNMASKED_RADIX || this.mapToRadix.includes(e));
3382
3392
  return super.doSkipInvalid(e, s, n) && !r;
3383
3393
  }
3384
3394
  get unmaskedValue() {
3385
- return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, he.UNMASKED_RADIX);
3395
+ return this._removeThousandsSeparators(this._normalizeZeros(this.value)).replace(this.radix, ge.UNMASKED_RADIX);
3386
3396
  }
3387
3397
  set unmaskedValue(e) {
3388
3398
  super.unmaskedValue = e;
@@ -3391,7 +3401,7 @@ class he extends re {
3391
3401
  return this.parse(this.unmaskedValue, this);
3392
3402
  }
3393
3403
  set typedValue(e) {
3394
- this.rawInputValue = this.format(e, this).replace(he.UNMASKED_RADIX, this.radix);
3404
+ this.rawInputValue = this.format(e, this).replace(ge.UNMASKED_RADIX, this.radix);
3395
3405
  }
3396
3406
  /** Parsed Number */
3397
3407
  get number() {
@@ -3407,14 +3417,14 @@ class he extends re {
3407
3417
  return this.min != null && this.min > 0 || this.max != null && this.max > 0;
3408
3418
  }
3409
3419
  typedValueEquals(e) {
3410
- return (super.typedValueEquals(e) || he.EMPTY_VALUES.includes(e) && he.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
3420
+ return (super.typedValueEquals(e) || ge.EMPTY_VALUES.includes(e) && ge.EMPTY_VALUES.includes(this.typedValue)) && !(e === 0 && this.value === "");
3411
3421
  }
3412
3422
  }
3413
- Ss = he;
3414
- he.UNMASKED_RADIX = ".";
3415
- he.EMPTY_VALUES = [...re.EMPTY_VALUES, 0];
3416
- he.DEFAULTS = {
3417
- ...re.DEFAULTS,
3423
+ Ss = ge;
3424
+ ge.UNMASKED_RADIX = ".";
3425
+ ge.EMPTY_VALUES = [...ie.EMPTY_VALUES, 0];
3426
+ ge.DEFAULTS = {
3427
+ ...ie.DEFAULTS,
3418
3428
  mask: Number,
3419
3429
  radix: ",",
3420
3430
  thousandsSeparator: "",
@@ -3430,24 +3440,24 @@ he.DEFAULTS = {
3430
3440
  maximumFractionDigits: 20
3431
3441
  })
3432
3442
  };
3433
- D.MaskedNumber = he;
3434
- const Ot = {
3443
+ O.MaskedNumber = ge;
3444
+ const Dt = {
3435
3445
  MASKED: "value",
3436
3446
  UNMASKED: "unmaskedValue",
3437
3447
  TYPED: "typedValue"
3438
3448
  };
3439
3449
  function Cs(t, e, s) {
3440
- e === void 0 && (e = Ot.MASKED), s === void 0 && (s = Ot.MASKED);
3441
- const n = De(t);
3450
+ e === void 0 && (e = Dt.MASKED), s === void 0 && (s = Dt.MASKED);
3451
+ const n = Re(t);
3442
3452
  return (r) => n.runIsolated((a) => (a[e] = r, a[s]));
3443
3453
  }
3444
- function Hn(t, e, s, n) {
3454
+ function Xn(t, e, s, n) {
3445
3455
  return Cs(e, s, n)(t);
3446
3456
  }
3447
- D.PIPE_TYPE = Ot;
3448
- D.createPipe = Cs;
3449
- D.pipe = Hn;
3450
- class Wn extends ae {
3457
+ O.PIPE_TYPE = Dt;
3458
+ O.createPipe = Cs;
3459
+ O.pipe = Xn;
3460
+ class Kn extends oe {
3451
3461
  get repeatFrom() {
3452
3462
  var e;
3453
3463
  return (e = Array.isArray(this.repeat) ? this.repeat[0] : this.repeat === 1 / 0 ? 0 : this.repeat) != null ? e : 0;
@@ -3469,7 +3479,7 @@ class Wn extends ae {
3469
3479
  ...i
3470
3480
  } = Je(e);
3471
3481
  this._blockOpts = Object.assign({}, this._blockOpts, i);
3472
- const l = De(this._blockOpts);
3482
+ const l = Re(this._blockOpts);
3473
3483
  this.repeat = (s = (n = a ?? l.repeat) != null ? n : this.repeat) != null ? s : 1 / 0, super._update({
3474
3484
  mask: "m".repeat(Math.max(this.repeatTo === 1 / 0 && ((r = this._blocks) == null ? void 0 : r.length) || 0, this.repeatFrom)),
3475
3485
  blocks: {
@@ -3486,7 +3496,7 @@ class Wn extends ae {
3486
3496
  _allocateBlock(e) {
3487
3497
  if (e < this._blocks.length) return this._blocks[e];
3488
3498
  if (this.repeatTo === 1 / 0 || this._blocks.length < this.repeatTo)
3489
- return this._blocks.push(De(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
3499
+ return this._blocks.push(Re(this._blockOpts)), this.mask += "m", this._blocks[this._blocks.length - 1];
3490
3500
  }
3491
3501
  _appendCharRaw(e, s) {
3492
3502
  s === void 0 && (s = {});
@@ -3540,14 +3550,14 @@ class Wn extends ae {
3540
3550
  this._blocks.length = e._blocks.length, this.mask = this.mask.slice(0, this._blocks.length), super.state = e;
3541
3551
  }
3542
3552
  }
3543
- D.RepeatBlock = Wn;
3553
+ O.RepeatBlock = Kn;
3544
3554
  try {
3545
- globalThis.IMask = D;
3555
+ globalThis.IMask = O;
3546
3556
  } catch {
3547
3557
  }
3548
3558
  const xs = {
3549
3559
  // common
3550
- mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, D.Masked]), o.instanceOf(D.Masked)]),
3560
+ mask: o.oneOfType([o.array, o.func, o.string, o.instanceOf(RegExp), o.oneOf([Date, Number, O.Masked]), o.instanceOf(O.Masked)]),
3551
3561
  value: o.any,
3552
3562
  unmask: o.oneOfType([o.bool, o.oneOf(["typed"])]),
3553
3563
  prepare: o.func,
@@ -3592,10 +3602,10 @@ const xs = {
3592
3602
  inputRef: o.oneOfType([o.func, o.shape({
3593
3603
  current: o.object
3594
3604
  })])
3595
- }, ws = Object.keys(xs).filter((t) => t !== "value"), Yn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Xn = ws.filter((t) => Yn.indexOf(t) < 0);
3596
- function Kn(t) {
3605
+ }, ws = Object.keys(xs).filter((t) => t !== "value"), Gn = ["value", "unmask", "onAccept", "onComplete", "inputRef"], Zn = ws.filter((t) => Gn.indexOf(t) < 0);
3606
+ function Qn(t) {
3597
3607
  var e;
3598
- const s = (e = class extends ke.Component {
3608
+ const s = (e = class extends Se.Component {
3599
3609
  constructor(a) {
3600
3610
  super(a), this._inputRef = this._inputRef.bind(this);
3601
3611
  }
@@ -3618,7 +3628,7 @@ function Kn(t) {
3618
3628
  this.element = a, this.props.inputRef && (Object.prototype.hasOwnProperty.call(this.props.inputRef, "current") ? this.props.inputRef.current = a : this.props.inputRef(a));
3619
3629
  }
3620
3630
  initMask(a) {
3621
- a === void 0 && (a = this._extractMaskOptionsFromProps(this.props)), this.maskRef = D(this.element, a).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
3631
+ a === void 0 && (a = this._extractMaskOptionsFromProps(this.props)), this.maskRef = O(this.element, a).on("accept", this._onAccept.bind(this)).on("complete", this._onComplete.bind(this)), "value" in this.props && this.props.value !== void 0 && (this.maskValue = this.props.value);
3622
3632
  }
3623
3633
  destroyMask() {
3624
3634
  this.maskRef && (this.maskRef.destroy(), delete this.maskRef);
@@ -3627,7 +3637,7 @@ function Kn(t) {
3627
3637
  const {
3628
3638
  ...i
3629
3639
  } = a;
3630
- return Object.keys(i).filter((l) => Xn.indexOf(l) < 0).forEach((l) => {
3640
+ return Object.keys(i).filter((l) => Zn.indexOf(l) < 0).forEach((l) => {
3631
3641
  delete i[l];
3632
3642
  }), i;
3633
3643
  }
@@ -3652,95 +3662,95 @@ function Kn(t) {
3652
3662
  this.props.onComplete && this.maskRef && this.props.onComplete(this.maskValue, this.maskRef, a);
3653
3663
  }
3654
3664
  render() {
3655
- return ke.createElement(t, {
3665
+ return Se.createElement(t, {
3656
3666
  ...this._extractNonMaskProps(this.props),
3657
3667
  inputRef: this._inputRef
3658
3668
  });
3659
3669
  }
3660
3670
  }, e.displayName = void 0, e.propTypes = void 0, e), n = t.displayName || t.name || "Component";
3661
- return s.displayName = "IMask(" + n + ")", s.propTypes = xs, ke.forwardRef((r, a) => ke.createElement(s, {
3671
+ return s.displayName = "IMask(" + n + ")", s.propTypes = xs, Se.forwardRef((r, a) => Se.createElement(s, {
3662
3672
  ...r,
3663
3673
  ref: a
3664
3674
  }));
3665
3675
  }
3666
- const Gn = Kn((t) => {
3676
+ const Jn = Qn((t) => {
3667
3677
  let {
3668
3678
  inputRef: e,
3669
3679
  ...s
3670
3680
  } = t;
3671
- return ke.createElement("input", {
3681
+ return Se.createElement("input", {
3672
3682
  ...s,
3673
3683
  ref: e
3674
3684
  });
3675
- }), Zn = (t, e) => ke.createElement(Gn, {
3685
+ }), er = (t, e) => Se.createElement(Jn, {
3676
3686
  ...t,
3677
3687
  ref: e
3678
3688
  });
3679
- ke.forwardRef(Zn);
3680
- function Qn(t, e) {
3689
+ Se.forwardRef(er);
3690
+ function tr(t, e) {
3681
3691
  let {
3682
3692
  onAccept: s,
3683
3693
  onComplete: n,
3684
- ref: r = Qe(null),
3694
+ ref: r = He(null),
3685
3695
  defaultValue: a,
3686
3696
  defaultUnmaskedValue: i,
3687
3697
  defaultTypedValue: l
3688
3698
  } = e === void 0 ? {} : e;
3689
- const u = Qe(null), [d, h] = P({}), [f, _] = P(""), [y, b] = P(""), [v, m] = P(), F = xe(() => {
3699
+ const u = He(null), [d, h] = j({}), [f, _] = j(""), [y, S] = j(""), [v, m] = j(), C = Te(() => {
3690
3700
  var p;
3691
3701
  (p = u.current) == null || p.destroy(), u.current = null;
3692
- }, []), j = xe(() => {
3702
+ }, []), U = Te(() => {
3693
3703
  const p = u.current;
3694
3704
  p && (h({
3695
3705
  value: p.value,
3696
3706
  unmaskedValue: p.unmaskedValue,
3697
3707
  typedValue: p.typedValue
3698
- }), m(p.typedValue), b(p.unmaskedValue), _(p.value));
3699
- }, []), A = xe((p) => {
3700
- const x = u.current;
3701
- x && (j(), s == null || s(x.value, x, p));
3702
- }, [s]), C = xe((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
3703
- return Q(() => {
3708
+ }), m(p.typedValue), S(p.unmaskedValue), _(p.value));
3709
+ }, []), T = Te((p) => {
3710
+ const A = u.current;
3711
+ A && (U(), s == null || s(A.value, A, p));
3712
+ }, [s]), w = Te((p) => u.current && (n == null ? void 0 : n(u.current.value, u.current, p)), [n]);
3713
+ return G(() => {
3704
3714
  const {
3705
3715
  value: p,
3706
- ...x
3707
- } = d, R = u.current;
3708
- !R || f === void 0 || (p !== f && (R.value = f, R.value !== f && A()), h(x));
3709
- }, [f]), Q(() => {
3716
+ ...A
3717
+ } = d, B = u.current;
3718
+ !B || f === void 0 || (p !== f && (B.value = f, B.value !== f && T()), h(A));
3719
+ }, [f]), G(() => {
3710
3720
  const {
3711
3721
  unmaskedValue: p,
3712
- ...x
3713
- } = d, R = u.current;
3714
- !R || y === void 0 || (p !== y && (R.unmaskedValue = y, R.unmaskedValue !== y && A()), h(x));
3715
- }, [y]), Q(() => {
3722
+ ...A
3723
+ } = d, B = u.current;
3724
+ !B || y === void 0 || (p !== y && (B.unmaskedValue = y, B.unmaskedValue !== y && T()), h(A));
3725
+ }, [y]), G(() => {
3716
3726
  const {
3717
3727
  typedValue: p,
3718
- ...x
3719
- } = d, R = u.current;
3720
- !R || v === void 0 || (p !== v && (R.typedValue = v, R.masked.typedValueEquals(v) || A()), h(x));
3721
- }, [v]), Q(() => {
3728
+ ...A
3729
+ } = d, B = u.current;
3730
+ !B || v === void 0 || (p !== v && (B.typedValue = v, B.masked.typedValueEquals(v) || T()), h(A));
3731
+ }, [v]), G(() => {
3722
3732
  const p = r.current;
3723
- if (!p || !(t != null && t.mask)) return F();
3724
- const x = u.current;
3725
- x ? x == null || x.updateOptions(t) : p && t != null && t.mask && (u.current = D(p, t), j(), a !== void 0 && _(a), i !== void 0 && b(i), l !== void 0 && m(l));
3726
- }, [t, F, A]), Q(() => {
3733
+ if (!p || !(t != null && t.mask)) return C();
3734
+ const A = u.current;
3735
+ A ? A == null || A.updateOptions(t) : p && t != null && t.mask && (u.current = O(p, t), U(), a !== void 0 && _(a), i !== void 0 && S(i), l !== void 0 && m(l));
3736
+ }, [t, C, T]), G(() => {
3727
3737
  if (!u.current) return;
3728
3738
  const p = u.current;
3729
- return p.on("accept", A), p.on("complete", C), () => {
3730
- p.off("accept", A), p.off("complete", C);
3739
+ return p.on("accept", T), p.on("complete", w), () => {
3740
+ p.off("accept", T), p.off("complete", w);
3731
3741
  };
3732
- }, [A, C]), Q(() => F, [F]), {
3742
+ }, [T, w]), G(() => C, [C]), {
3733
3743
  ref: r,
3734
3744
  maskRef: u,
3735
3745
  value: f,
3736
3746
  setValue: _,
3737
3747
  unmaskedValue: y,
3738
- setUnmaskedValue: b,
3748
+ setUnmaskedValue: S,
3739
3749
  typedValue: v,
3740
3750
  setTypedValue: m
3741
3751
  };
3742
3752
  }
3743
- var As = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(As || {}), Ts = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ts || {}), Fs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Fs || {}), Os = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Os || {}), Ds = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Ds || {});
3753
+ var As = /* @__PURE__ */ ((t) => (t.Text = "text", t.Password = "password", t.Email = "email", t.Date = "date", t.Number = "number", t))(As || {}), Ts = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ts || {}), Fs = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Fs || {}), Ds = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ds || {}), Os = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Os || {});
3744
3754
  const K = {
3745
3755
  name: "Input",
3746
3756
  class: "ds-input",
@@ -3819,12 +3829,12 @@ const K = {
3819
3829
  tooltipPlacement: {
3820
3830
  type: String,
3821
3831
  default: "center",
3822
- options: Object.values(Os)
3832
+ options: Object.values(Ds)
3823
3833
  },
3824
3834
  tooltipPosition: {
3825
3835
  type: String,
3826
3836
  default: "top",
3827
- options: Object.values(Ds)
3837
+ options: Object.values(Os)
3828
3838
  },
3829
3839
  mask: {
3830
3840
  type: String,
@@ -3878,7 +3888,7 @@ const K = {
3878
3888
  }
3879
3889
  };
3880
3890
  var Is = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Is || {}), Rs = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Rs || {});
3881
- const Se = {
3891
+ const we = {
3882
3892
  name: "Tooltip",
3883
3893
  class: "ds-tooltip",
3884
3894
  props: {
@@ -3901,23 +3911,23 @@ const Se = {
3901
3911
  default: "ds-tooltip"
3902
3912
  }
3903
3913
  }
3904
- }, He = ({
3914
+ }, We = ({
3905
3915
  children: t,
3906
- position: e = Se.props.position.default,
3907
- placement: s = Se.props.placement.default,
3908
- text: n = Se.props.text.default,
3909
- testId: r = Se.props.testId.default,
3916
+ position: e = we.props.position.default,
3917
+ placement: s = we.props.placement.default,
3918
+ text: n = we.props.text.default,
3919
+ testId: r = we.props.testId.default,
3910
3920
  className: a
3911
3921
  }) => {
3912
- const i = Qe(null), [l, u] = P(0), [d, h] = P(0), [f, _] = P(!1), y = e && Se.props.position.options.find(
3913
- (F) => F === e
3914
- ) && `${Se.class}--${e}`, b = s && Se.props.placement.options.find(
3915
- (F) => F === s
3916
- ) && `${Se.class}--${s}`;
3922
+ const i = He(null), [l, u] = j(0), [d, h] = j(0), [f, _] = j(!1), y = e && we.props.position.options.find(
3923
+ (C) => C === e
3924
+ ) && `${we.class}--${e}`, S = s && we.props.placement.options.find(
3925
+ (C) => C === s
3926
+ ) && `${we.class}--${s}`;
3917
3927
  let v;
3918
3928
  kn(() => {
3919
- var F, j;
3920
- i.current && (u((F = i == null ? void 0 : i.current) == null ? void 0 : F.offsetHeight), h((j = i == null ? void 0 : i.current) == null ? void 0 : j.offsetWidth));
3929
+ var C, U;
3930
+ i.current && (u((C = i == null ? void 0 : i.current) == null ? void 0 : C.offsetHeight), h((U = i == null ? void 0 : i.current) == null ? void 0 : U.offsetWidth));
3921
3931
  }, []);
3922
3932
  const m = 9;
3923
3933
  switch (e) {
@@ -3974,10 +3984,10 @@ const Se = {
3974
3984
  };
3975
3985
  break;
3976
3986
  }
3977
- return /* @__PURE__ */ I(
3987
+ return /* @__PURE__ */ R(
3978
3988
  "div",
3979
3989
  {
3980
- className: [Se.class, a].join(" "),
3990
+ className: [we.class, a].join(" "),
3981
3991
  "data-testid": r,
3982
3992
  onMouseEnter: () => _(!0),
3983
3993
  onMouseLeave: () => _(!1),
@@ -3988,11 +3998,11 @@ const Se = {
3988
3998
  f && /* @__PURE__ */ c(
3989
3999
  "div",
3990
4000
  {
3991
- className: [y, b].filter((F) => F).join(" "),
4001
+ className: [y, S].filter((C) => C).join(" "),
3992
4002
  children: /* @__PURE__ */ c(
3993
4003
  "span",
3994
4004
  {
3995
- className: `${Se.class}__wrapper`,
4005
+ className: `${we.class}__wrapper`,
3996
4006
  "data-testid": "ds-tooltip-wrapper",
3997
4007
  style: v,
3998
4008
  children: n
@@ -4004,14 +4014,14 @@ const Se = {
4004
4014
  }
4005
4015
  );
4006
4016
  };
4007
- He.propTypes = {
4017
+ We.propTypes = {
4008
4018
  position: o.string,
4009
4019
  placement: o.string,
4010
4020
  text: o.oneOfType([o.string, o.node]),
4011
4021
  testId: o.string
4012
4022
  };
4013
- He.displayName = "DsTooltip";
4014
- const et = ke.forwardRef(
4023
+ We.displayName = "DsTooltip";
4024
+ const et = Se.forwardRef(
4015
4025
  ({
4016
4026
  name: t,
4017
4027
  testId: e = K.props.testId.default,
@@ -4027,64 +4037,64 @@ const et = ke.forwardRef(
4027
4037
  tooltipPosition: f = K.props.tooltipPosition.default,
4028
4038
  tooltipPlacement: _ = K.props.tooltipPlacement.default,
4029
4039
  icon: y = K.props.icon.default,
4030
- status: b = K.props.status.default,
4040
+ status: S = K.props.status.default,
4031
4041
  feedback: v,
4032
4042
  hasFeedback: m = K.props.hasFeedback.default,
4033
- noMargin: F = K.props.noMargin.default,
4034
- disabled: j = K.props.disabled.default,
4035
- className: A,
4036
- mask: C,
4043
+ noMargin: C = K.props.noMargin.default,
4044
+ disabled: U = K.props.disabled.default,
4045
+ className: T,
4046
+ mask: w,
4037
4047
  onChangeHandler: p = K.props.onChangeHandler.default,
4038
- onBlurHandler: x,
4039
- onKeyDownHandler: R,
4040
- onFocusHandler: X
4041
- }, O) => {
4042
- const [te, ue] = P(!1), [ce, Ae] = P(!1), me = !!p && !!C, Ve = (T, q, J) => {
4043
- if (me && J) {
4048
+ onBlurHandler: A,
4049
+ onKeyDownHandler: B,
4050
+ onFocusHandler: z
4051
+ }, L) => {
4052
+ const [te, le] = j(!1), [ue, ye] = j(!1), se = !!p && !!w, De = (F, P, J) => {
4053
+ if (se && J) {
4044
4054
  const k = {
4045
4055
  ...J,
4046
4056
  target: {
4047
4057
  ...J.target,
4048
4058
  name: t,
4049
- maskedValue: T,
4050
- value: q.unmaskedValue,
4059
+ maskedValue: F,
4060
+ value: P.unmaskedValue,
4051
4061
  type: "text"
4052
4062
  }
4053
4063
  };
4054
4064
  p(k);
4055
4065
  }
4056
- }, oe = be(() => typeof C == "object" ? { lazy: !0, ...C } : Qt[C] ? {
4057
- ...Qt[C],
4066
+ }, re = ve(() => typeof w == "object" ? { lazy: !0, ...w } : Qt[w] ? {
4067
+ ...Qt[w],
4058
4068
  min: u,
4059
4069
  max: d,
4060
4070
  lazy: !0
4061
- } : { mask: C ?? "", min: u, max: d, lazy: !0 }, [C]), { ref: ve, setUnmaskedValue: Te } = Qn(
4062
- oe,
4071
+ } : { mask: w ?? "", min: u, max: d, lazy: !0 }, [w]), { ref: ce, setUnmaskedValue: ke } = tr(
4072
+ re,
4063
4073
  {
4064
- onAccept: Ve
4074
+ onAccept: De
4065
4075
  }
4066
- ), Re = (T) => {
4067
- p && !me && p(T);
4068
- }, g = (T) => {
4069
- R && R(T);
4070
- }, E = (T) => {
4071
- ue(!1), x && x(T);
4072
- }, V = (T) => {
4073
- ue(!0), X && X(T);
4074
- }, B = () => {
4075
- Ae((T) => !T);
4076
- }, N = be(() => ce && s === "password" ? "text" : s, [ce, s]), w = () => {
4077
- const T = [`${K.class}`];
4078
- return r && T.push(`${K.class}--${r}`), n && T.push(`${K.class}--animated`), F && T.push(`${K.class}--no-margin`), y && T.push(`${K.class}--with-icon`), b && T.push(`${K.class}--${b}`), A && T.push(A), T.join(" ");
4079
- }, $ = be(() => {
4080
- const T = [`${K.class}__label`];
4081
- return (te || l) && T.push(`${K.class}__label--active`), T.join(" ");
4082
- }, [l, te]), L = () => !n && i ? i : "", U = () => b && b === "error" ? "info" : "check_circle";
4083
- return Q(() => {
4084
- C && Te(l ?? "");
4085
- }, [l, C, Te]), /* @__PURE__ */ I("div", { className: w(), ref: O, children: [
4086
- m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ I(pt, { children: [
4087
- /* @__PURE__ */ c(G, { image: U() }),
4076
+ ), Ce = (F) => {
4077
+ p && !se && p(F);
4078
+ }, g = (F) => {
4079
+ B && B(F);
4080
+ }, E = (F) => {
4081
+ le(!1), A && A(F);
4082
+ }, $ = (F) => {
4083
+ le(!0), z && z(F);
4084
+ }, N = () => {
4085
+ ye((F) => !F);
4086
+ }, I = ve(() => ue && s === "password" ? "text" : s, [ue, s]), b = () => {
4087
+ const F = [`${K.class}`];
4088
+ return r && F.push(`${K.class}--${r}`), n && F.push(`${K.class}--animated`), C && F.push(`${K.class}--no-margin`), y && F.push(`${K.class}--with-icon`), S && F.push(`${K.class}--${S}`), T && F.push(T), F.join(" ");
4089
+ }, D = ve(() => {
4090
+ const F = [`${K.class}__label`];
4091
+ return (te || l) && F.push(`${K.class}__label--active`), F.join(" ");
4092
+ }, [l, te]), V = () => !n && i ? i : "", q = () => S && S === "error" ? "info" : "check_circle";
4093
+ return G(() => {
4094
+ w && ke(l ?? "");
4095
+ }, [l, w, ke]), /* @__PURE__ */ R("div", { className: b(), ref: L, children: [
4096
+ m && /* @__PURE__ */ c("div", { className: "ds-input__feedback", children: v && /* @__PURE__ */ R(pt, { children: [
4097
+ /* @__PURE__ */ c(Z, { image: q() }),
4088
4098
  v
4089
4099
  ] }) }),
4090
4100
  /* @__PURE__ */ c(
@@ -4092,42 +4102,42 @@ const et = ke.forwardRef(
4092
4102
  {
4093
4103
  className: "ds-input__input",
4094
4104
  "data-testid": e,
4095
- disabled: j,
4105
+ disabled: U,
4096
4106
  id: t,
4097
4107
  max: d,
4098
4108
  min: u,
4099
4109
  name: t,
4100
4110
  onBlur: E,
4101
- onChange: Re,
4102
- onFocus: V,
4103
- onInput: Re,
4111
+ onChange: Ce,
4112
+ onFocus: $,
4113
+ onInput: Ce,
4104
4114
  onKeyDown: g,
4105
- placeholder: L(),
4106
- ref: ve,
4107
- type: N,
4108
- ...!C && { value: l ?? "" }
4115
+ placeholder: V(),
4116
+ ref: ce,
4117
+ type: I,
4118
+ ...!w && { value: l ?? "" }
4109
4119
  }
4110
4120
  ),
4111
- /* @__PURE__ */ I("label", { className: $, htmlFor: t, children: [
4121
+ /* @__PURE__ */ R("label", { className: D, htmlFor: t, children: [
4112
4122
  a,
4113
4123
  h && /* @__PURE__ */ c(
4114
- He,
4124
+ We,
4115
4125
  {
4116
4126
  className: "ds-input__tooltip",
4117
4127
  placement: _,
4118
4128
  position: f,
4119
4129
  text: h,
4120
- children: /* @__PURE__ */ c(G, { className: "ds-input__icon", image: "info" })
4130
+ children: /* @__PURE__ */ c(Z, { className: "ds-input__icon", image: "info" })
4121
4131
  }
4122
4132
  )
4123
4133
  ] }),
4124
- y && /* @__PURE__ */ c(G, { className: "ds-input__icon", image: y }),
4134
+ y && /* @__PURE__ */ c(Z, { className: "ds-input__icon", image: y }),
4125
4135
  s === "password" && /* @__PURE__ */ c(
4126
- G,
4136
+ Z,
4127
4137
  {
4128
4138
  className: "ds-input__password-icon",
4129
- image: ce ? "visibility_off" : "visibility",
4130
- onClick: B,
4139
+ image: ue ? "visibility_off" : "visibility",
4140
+ onClick: N,
4131
4141
  size: "xl"
4132
4142
  }
4133
4143
  )
@@ -4160,7 +4170,7 @@ et.propTypes = {
4160
4170
  };
4161
4171
  et.displayName = "DsInput";
4162
4172
  var Ns = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Ns || {}), Bs = /* @__PURE__ */ ((t) => (t.None = "", t.Neutral20 = "neutral-20", t.Neutral10 = "neutral-10", t.Neutral05 = "neutral-05", t.Neutral00 = "neutral-00", t))(Bs || {});
4163
- const de = {
4173
+ const he = {
4164
4174
  name: "Loading",
4165
4175
  class: "ds-loading",
4166
4176
  props: {
@@ -4193,20 +4203,20 @@ const de = {
4193
4203
  }
4194
4204
  }, $t = ({
4195
4205
  id: t,
4196
- testId: e = de.props.testId.default,
4206
+ testId: e = he.props.testId.default,
4197
4207
  className: s,
4198
- size: n = de.props.size.default,
4199
- opacity: r = de.props.opacity.default,
4200
- fullscreen: a = de.props.fullscreen.default,
4201
- backgroundColor: i = de.props.backgroundColor.default
4208
+ size: n = he.props.size.default,
4209
+ opacity: r = he.props.opacity.default,
4210
+ fullscreen: a = he.props.fullscreen.default,
4211
+ backgroundColor: i = he.props.backgroundColor.default
4202
4212
  }) => {
4203
- const l = !a && `${de.class}--absolute`, u = n && `${de.class}__dots--${n}`, d = i && de.props.backgroundColor.options.find(
4213
+ const l = !a && `${he.class}--absolute`, u = n && `${he.class}__dots--${n}`, d = i && he.props.backgroundColor.options.find(
4204
4214
  (f) => f === i
4205
- ) && `${de.class}__background--${i}`, h = r && `${de.class}__background--opacity`;
4206
- return /* @__PURE__ */ I(
4215
+ ) && `${he.class}__background--${i}`, h = r && `${he.class}__background--opacity`;
4216
+ return /* @__PURE__ */ R(
4207
4217
  "div",
4208
4218
  {
4209
- className: [de.class, s, l].filter((f) => f).join(" "),
4219
+ className: [he.class, s, l].filter((f) => f).join(" "),
4210
4220
  "data-testid": e,
4211
4221
  id: t,
4212
4222
  children: [
@@ -4214,7 +4224,7 @@ const de = {
4214
4224
  "div",
4215
4225
  {
4216
4226
  className: [
4217
- `${de.class}__background`,
4227
+ `${he.class}__background`,
4218
4228
  d,
4219
4229
  h
4220
4230
  ].filter((f) => f).join(" ")
@@ -4234,13 +4244,13 @@ const de = {
4234
4244
  $t.propTypes = {
4235
4245
  id: o.string,
4236
4246
  testId: o.string,
4237
- size: o.oneOf(de.props.size.options),
4247
+ size: o.oneOf(he.props.size.options),
4238
4248
  opacity: o.bool,
4239
4249
  fullscreen: o.bool,
4240
4250
  backgroundColor: o.string
4241
4251
  };
4242
4252
  $t.displayName = "DsLoading";
4243
- const Fe = {
4253
+ const Oe = {
4244
4254
  name: "Option",
4245
4255
  class: "ds-option",
4246
4256
  props: {
@@ -4287,15 +4297,15 @@ const Fe = {
4287
4297
  detail: s,
4288
4298
  name: n,
4289
4299
  testId: r = n ?? "ds-option-test",
4290
- disabled: a = Fe.props.disabled.default,
4300
+ disabled: a = Oe.props.disabled.default,
4291
4301
  value: i,
4292
- checked: l = Fe.props.checked.default,
4293
- onChangeHandler: u = Fe.props.onChangeHandler.default
4302
+ checked: l = Oe.props.checked.default,
4303
+ onChangeHandler: u = Oe.props.onChangeHandler.default
4294
4304
  }) => {
4295
- const [d] = P(crypto.randomUUID());
4296
- return /* @__PURE__ */ I("div", { className: (() => {
4297
- const f = [Fe.class];
4298
- return a && f.push(`${Fe.class}--disabled`), f.join(" ");
4305
+ const [d] = j(crypto.randomUUID());
4306
+ return /* @__PURE__ */ R("div", { className: (() => {
4307
+ const f = [Oe.class];
4308
+ return a && f.push(`${Oe.class}--disabled`), f.join(" ");
4299
4309
  })(), children: [
4300
4310
  /* @__PURE__ */ c(
4301
4311
  "input",
@@ -4311,18 +4321,18 @@ const Fe = {
4311
4321
  }
4312
4322
  ),
4313
4323
  /* @__PURE__ */ c(
4314
- G,
4324
+ Z,
4315
4325
  {
4316
- className: `${Fe.class}__icon`,
4326
+ className: `${Oe.class}__icon`,
4317
4327
  image: l ? "radio_button_checked" : "radio_button_unchecked",
4318
4328
  size: "xxl"
4319
4329
  }
4320
4330
  ),
4321
- /* @__PURE__ */ I("div", { className: `${Fe.class}__text-container`, children: [
4331
+ /* @__PURE__ */ R("div", { className: `${Oe.class}__text-container`, children: [
4322
4332
  e && /* @__PURE__ */ c(
4323
4333
  "label",
4324
4334
  {
4325
- className: `${Fe.class}__label`,
4335
+ className: `${Oe.class}__label`,
4326
4336
  htmlFor: t ?? String(d),
4327
4337
  children: e
4328
4338
  }
@@ -4330,7 +4340,7 @@ const Fe = {
4330
4340
  s && /* @__PURE__ */ c(
4331
4341
  "label",
4332
4342
  {
4333
- className: `${Fe.class}__detail`,
4343
+ className: `${Oe.class}__detail`,
4334
4344
  htmlFor: t ?? String(d),
4335
4345
  children: s
4336
4346
  }
@@ -4361,7 +4371,7 @@ const ot = {
4361
4371
  options: Object.values(Ms)
4362
4372
  }
4363
4373
  }
4364
- }, Ie = ({
4374
+ }, Ne = ({
4365
4375
  children: t,
4366
4376
  className: e,
4367
4377
  testId: s = "ds-paragraph-test",
@@ -4377,12 +4387,12 @@ const ot = {
4377
4387
  }
4378
4388
  );
4379
4389
  };
4380
- Ie.propTypes = {
4390
+ Ne.propTypes = {
4381
4391
  className: o.string,
4382
4392
  testId: o.string,
4383
4393
  type: o.oneOf(ot.props.type.options)
4384
4394
  };
4385
- Ie.displayName = "DsParagraph";
4395
+ Ne.displayName = "DsParagraph";
4386
4396
  var Vs = /* @__PURE__ */ ((t) => (t.Success = "success", t.SuccessDark = "success-dark", t.Warning = "warning", t.Danger = "danger", t))(Vs || {});
4387
4397
  const Jt = {
4388
4398
  name: "Progress",
@@ -4450,7 +4460,7 @@ const Le = {
4450
4460
  options: Object.values(Us)
4451
4461
  }
4452
4462
  }
4453
- }, Me = ({
4463
+ }, Ve = ({
4454
4464
  children: t,
4455
4465
  className: e,
4456
4466
  justifyContent: s = Le.props.justifyContent.default,
@@ -4476,7 +4486,7 @@ const Le = {
4476
4486
  });
4477
4487
  return /* @__PURE__ */ c("div", { className: d(), style: h(), children: t });
4478
4488
  };
4479
- Me.propTypes = {
4489
+ Ve.propTypes = {
4480
4490
  className: o.string,
4481
4491
  justifyContent: o.string,
4482
4492
  alignItems: o.string,
@@ -4486,7 +4496,7 @@ Me.propTypes = {
4486
4496
  height: o.string,
4487
4497
  gap: o.string
4488
4498
  };
4489
- Me.displayName = "DsFlexLayout";
4499
+ Ve.displayName = "DsFlexLayout";
4490
4500
  const Ct = {
4491
4501
  name: "Flex-Element",
4492
4502
  class: "ds-flex-element",
@@ -4502,7 +4512,7 @@ const Ct = {
4502
4512
  required: !1
4503
4513
  }
4504
4514
  }
4505
- }, ne = ({
4515
+ }, ae = ({
4506
4516
  children: t,
4507
4517
  flex: e = Ct.props.flex.default,
4508
4518
  className: s = Ct.props.className.default
@@ -4512,59 +4522,59 @@ const Ct = {
4512
4522
  });
4513
4523
  return /* @__PURE__ */ c("div", { className: n(), style: r(), children: t });
4514
4524
  };
4515
- ne.propTypes = {
4525
+ ae.propTypes = {
4516
4526
  className: o.string,
4517
4527
  flex: o.string
4518
4528
  };
4519
- ne.displayName = "DsFlexElement";
4520
- var Dt = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Dt || {});
4521
- const Ge = {
4529
+ ae.displayName = "DsFlexElement";
4530
+ var Ot = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.XXXS = "xxxs", t.XXS = "xxs", t.XS = "xs", t.SM = "sm", t))(Ot || {});
4531
+ const Ze = {
4522
4532
  name: "Spacer",
4523
4533
  class: "ds-spacer",
4524
4534
  props: {
4525
4535
  vertical: {
4526
4536
  type: String,
4527
4537
  default: "none",
4528
- options: Object.values(Dt)
4538
+ options: Object.values(Ot)
4529
4539
  },
4530
4540
  horizontal: {
4531
4541
  type: String,
4532
4542
  default: "none",
4533
- options: Object.values(Dt)
4543
+ options: Object.values(Ot)
4534
4544
  }
4535
4545
  }
4536
- }, ge = ({
4537
- vertical: t = Ge.props.vertical.default,
4538
- horizontal: e = Ge.props.horizontal.default
4546
+ }, _e = ({
4547
+ vertical: t = Ze.props.vertical.default,
4548
+ horizontal: e = Ze.props.horizontal.default
4539
4549
  }) => {
4540
4550
  const s = t && `ds-spacer__vertical--${t}`, n = e && `ds-spacer__horizontal--${e}`;
4541
4551
  return /* @__PURE__ */ c(
4542
4552
  "div",
4543
4553
  {
4544
- className: [Ge.class, s, n].filter((r) => r).join(" "),
4554
+ className: [Ze.class, s, n].filter((r) => r).join(" "),
4545
4555
  "data-testid": "ds-spacer"
4546
4556
  }
4547
4557
  );
4548
4558
  };
4549
- ge.propTypes = {
4550
- vertical: o.oneOf(Ge.props.vertical.options),
4551
- horizontal: o.oneOf(Ge.props.horizontal.options)
4559
+ _e.propTypes = {
4560
+ vertical: o.oneOf(Ze.props.vertical.options),
4561
+ horizontal: o.oneOf(Ze.props.horizontal.options)
4552
4562
  };
4553
- ge.displayName = "DsSpacer";
4563
+ _e.displayName = "DsSpacer";
4554
4564
  const zs = ({
4555
4565
  label: t,
4556
4566
  progress: e = Jt.props.progress.default,
4557
4567
  color: s = Jt.props.color.default
4558
4568
  }) => {
4559
- const n = be(
4569
+ const n = ve(
4560
4570
  () => e > 100 ? 100 : e < 0 ? 0 : e,
4561
4571
  [e]
4562
- ), r = be(
4572
+ ), r = ve(
4563
4573
  () => `ds-progress__progress--${s}`,
4564
4574
  [s]
4565
- ), a = be(() => s === "success-dark" ? "color__success--dark" : s === "warning" ? "color__warning--dark" : `color__${s}`, [s]);
4566
- return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ I(Me, { flexDirection: "column", children: [
4567
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
4575
+ ), a = ve(() => s === "success-dark" ? "color__success--dark" : s === "warning" ? "color__warning--dark" : `color__${s}`, [s]);
4576
+ return /* @__PURE__ */ c("div", { className: "ds-progress", children: /* @__PURE__ */ R(Ve, { flexDirection: "column", children: [
4577
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
4568
4578
  "div",
4569
4579
  {
4570
4580
  "aria-valuemax": 100,
@@ -4582,15 +4592,15 @@ const zs = ({
4582
4592
  )
4583
4593
  }
4584
4594
  ) }),
4585
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ I(
4586
- Me,
4595
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ R(
4596
+ Ve,
4587
4597
  {
4588
4598
  alignItems: "flex-end",
4589
4599
  flexDirection: "column",
4590
4600
  justifyContent: "center",
4591
4601
  children: [
4592
- /* @__PURE__ */ c(ge, { vertical: "quark" }),
4593
- /* @__PURE__ */ c(pt, { children: t && /* @__PURE__ */ c(Ie, { className: a, children: t }) })
4602
+ /* @__PURE__ */ c(_e, { vertical: "quark" }),
4603
+ /* @__PURE__ */ c(pt, { children: t && /* @__PURE__ */ c(Ne, { className: a, children: t }) })
4594
4604
  ]
4595
4605
  }
4596
4606
  ) })
@@ -4602,7 +4612,7 @@ zs.propTypes = {
4602
4612
  color: o.string
4603
4613
  };
4604
4614
  var Hs = /* @__PURE__ */ ((t) => (t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(Hs || {}), Ws = /* @__PURE__ */ ((t) => (t.Default = "", t.Error = "error", t.Success = "success", t))(Ws || {}), Ys = /* @__PURE__ */ ((t) => (t.Center = "center", t.End = "end", t.Initial = "initial", t))(Ys || {}), Xs = /* @__PURE__ */ ((t) => (t.Top = "top", t.Right = "right", t.Bottom = "bottom", t.Left = "left", t))(Xs || {});
4605
- const Z = {
4615
+ const Q = {
4606
4616
  name: "Select",
4607
4617
  class: "ds-select",
4608
4618
  props: {
@@ -4676,57 +4686,57 @@ const Z = {
4676
4686
  },
4677
4687
  options: []
4678
4688
  }
4679
- }, Ks = ke.forwardRef(
4689
+ }, Ks = Se.forwardRef(
4680
4690
  ({
4681
4691
  label: t,
4682
4692
  className: e,
4683
- disabled: s = Z.props.disabled.default,
4684
- animated: n = Z.props.animated.default,
4685
- multiple: r = Z.props.multiple.default,
4686
- testId: a = Z.props.testId.default,
4693
+ disabled: s = Q.props.disabled.default,
4694
+ animated: n = Q.props.animated.default,
4695
+ multiple: r = Q.props.multiple.default,
4696
+ testId: a = Q.props.testId.default,
4687
4697
  name: i,
4688
4698
  options: l,
4689
4699
  value: u,
4690
4700
  placeholder: d,
4691
4701
  onChange: h,
4692
4702
  onChangeHandler: f,
4693
- size: _ = Z.props.size.default,
4694
- status: y = Z.props.status.default,
4695
- tooltip: b,
4696
- tooltipPosition: v = Z.props.tooltipPosition.default,
4697
- tooltipPlacement: m = Z.props.tooltipPlacement.default,
4698
- feedback: F,
4699
- ...j
4700
- }, A) => {
4701
- const [C, p] = P(!1), x = (O) => {
4702
- p(!1), h && h(O, O.target.value), f && f(O, O.target.value);
4703
- }, R = () => {
4704
- const O = [Z.class, "select-placeholder"];
4705
- return O.push(`${Z.class}--${_}`), y && O.push(`${Z.class}--${y}`), C && O.push(`${Z.class}--active`), s && O.push(`${Z.class}--disabled`), e && O.push(e), O.join(" ");
4706
- }, X = be(() => {
4707
- const O = [`${Z.class}__label`];
4708
- return !n && O.push(`${Z.class}__label--not-animated`), u && O.push(`${Z.class}__label--has-value`), n && !u && !b && O.push(`${Z.class}__label--hidden`), O.join(" ");
4703
+ size: _ = Q.props.size.default,
4704
+ status: y = Q.props.status.default,
4705
+ tooltip: S,
4706
+ tooltipPosition: v = Q.props.tooltipPosition.default,
4707
+ tooltipPlacement: m = Q.props.tooltipPlacement.default,
4708
+ feedback: C,
4709
+ ...U
4710
+ }, T) => {
4711
+ const [w, p] = j(!1), A = (L) => {
4712
+ p(!1), h && h(L, L.target.value), f && f(L, L.target.value);
4713
+ }, B = () => {
4714
+ const L = [Q.class, "select-placeholder"];
4715
+ return L.push(`${Q.class}--${_}`), y && L.push(`${Q.class}--${y}`), w && L.push(`${Q.class}--active`), s && L.push(`${Q.class}--disabled`), e && L.push(e), L.join(" ");
4716
+ }, z = ve(() => {
4717
+ const L = [`${Q.class}__label`];
4718
+ return !n && L.push(`${Q.class}__label--not-animated`), u && L.push(`${Q.class}__label--has-value`), n && !u && !S && L.push(`${Q.class}__label--hidden`), L.join(" ");
4709
4719
  }, [u]);
4710
- return /* @__PURE__ */ I("div", { className: R(), "data-testid": "ds-select-component", children: [
4711
- t && /* @__PURE__ */ I(
4720
+ return /* @__PURE__ */ R("div", { className: B(), "data-testid": "ds-select-component", children: [
4721
+ t && /* @__PURE__ */ R(
4712
4722
  "label",
4713
4723
  {
4714
- className: X,
4724
+ className: z,
4715
4725
  "data-testid": "ds-label-id",
4716
4726
  htmlFor: i,
4717
4727
  children: [
4718
4728
  t,
4719
- b && /* @__PURE__ */ c(
4720
- He,
4729
+ S && /* @__PURE__ */ c(
4730
+ We,
4721
4731
  {
4722
- className: `${Z.class}__tooltip`,
4732
+ className: `${Q.class}__tooltip`,
4723
4733
  placement: m,
4724
4734
  position: v,
4725
- text: b,
4735
+ text: S,
4726
4736
  children: /* @__PURE__ */ c(
4727
- G,
4737
+ Z,
4728
4738
  {
4729
- className: `${Z.class}__icon`,
4739
+ className: `${Q.class}__icon`,
4730
4740
  image: "info"
4731
4741
  }
4732
4742
  )
@@ -4735,7 +4745,7 @@ const Z = {
4735
4745
  ]
4736
4746
  }
4737
4747
  ),
4738
- /* @__PURE__ */ I(
4748
+ /* @__PURE__ */ R(
4739
4749
  "select",
4740
4750
  {
4741
4751
  "data-testid": a,
@@ -4744,29 +4754,29 @@ const Z = {
4744
4754
  multiple: r,
4745
4755
  name: i,
4746
4756
  onBlur: () => p(!1),
4747
- onChange: (O) => x(O),
4757
+ onChange: (L) => A(L),
4748
4758
  onFocus: () => p(!0),
4749
- ref: A,
4759
+ ref: T,
4750
4760
  value: u ?? "",
4751
- ...j,
4761
+ ...U,
4752
4762
  children: [
4753
4763
  (d || n) && /* @__PURE__ */ c("option", { disabled: !0, value: "", children: d ?? t }),
4754
- l == null ? void 0 : l.map((O, te) => {
4755
- var ue;
4756
- return "options" in O ? /* @__PURE__ */ c("optgroup", { label: O.label, children: (ue = O.options) == null ? void 0 : ue.map((ce, Ae) => /* @__PURE__ */ c(
4764
+ l == null ? void 0 : l.map((L, te) => {
4765
+ var le;
4766
+ return "options" in L ? /* @__PURE__ */ c("optgroup", { label: L.label, children: (le = L.options) == null ? void 0 : le.map((ue, ye) => /* @__PURE__ */ c(
4757
4767
  "option",
4758
4768
  {
4759
- className: `${Z.class}__option-select`,
4760
- value: ce.value,
4761
- children: ce.label ?? ce.value
4769
+ className: `${Q.class}__option-select`,
4770
+ value: ue.value,
4771
+ children: ue.label ?? ue.value
4762
4772
  },
4763
- Ae
4773
+ ye
4764
4774
  )) }, te) : /* @__PURE__ */ c(
4765
4775
  "option",
4766
4776
  {
4767
- className: `${Z.class}__option-select`,
4768
- value: O.value,
4769
- children: O.label ?? O.value
4777
+ className: `${Q.class}__option-select`,
4778
+ value: L.value,
4779
+ children: L.label ?? L.value
4770
4780
  },
4771
4781
  te
4772
4782
  );
@@ -4774,15 +4784,15 @@ const Z = {
4774
4784
  ]
4775
4785
  }
4776
4786
  ),
4777
- F && /* @__PURE__ */ I("div", { className: "ds-select__feedback-container", children: [
4787
+ C && /* @__PURE__ */ R("div", { className: "ds-select__feedback-container", children: [
4778
4788
  /* @__PURE__ */ c(
4779
- G,
4789
+ Z,
4780
4790
  {
4781
4791
  className: "ds-select__icon",
4782
4792
  image: y === "success" ? "check_circle" : "info"
4783
4793
  }
4784
4794
  ),
4785
- /* @__PURE__ */ c("span", { className: "ds-select__feedback", children: F })
4795
+ /* @__PURE__ */ c("span", { className: "ds-select__feedback", children: C })
4786
4796
  ] })
4787
4797
  ] });
4788
4798
  }
@@ -4800,8 +4810,8 @@ Ks.propTypes = {
4800
4810
  onChange: o.func,
4801
4811
  onChangeHandler: o.func,
4802
4812
  value: o.oneOfType([o.string, o.number]),
4803
- size: o.oneOf(Z.props.size.options),
4804
- status: o.oneOf(Z.props.status.options),
4813
+ size: o.oneOf(Q.props.size.options),
4814
+ status: o.oneOf(Q.props.status.options),
4805
4815
  tooltip: o.string,
4806
4816
  tooltipPosition: o.string,
4807
4817
  tooltipPlacement: o.string,
@@ -4819,7 +4829,7 @@ const xt = {
4819
4829
  options: Object.values(Gs)
4820
4830
  }
4821
4831
  }
4822
- }, Jn = ({
4832
+ }, sr = ({
4823
4833
  children: t,
4824
4834
  className: e,
4825
4835
  testId: s = "ds-subtitle-test",
@@ -4835,9 +4845,9 @@ const xt = {
4835
4845
  }
4836
4846
  );
4837
4847
  };
4838
- Jn.displayName = "DsSubtitle";
4848
+ sr.displayName = "DsSubtitle";
4839
4849
  var Zs = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(Zs || {}), Qs = /* @__PURE__ */ ((t) => (t.Text = "text", t))(Qs || {}), Js = /* @__PURE__ */ ((t) => (t.None = "", t.Error = "error", t.Success = "success", t))(Js || {}), en = /* @__PURE__ */ ((t) => (t.None = "none", t.Both = "both", t.Horizontal = "horizontal", t.Vertical = "vertical", t.Block = "block", t.Inline = "inline", t))(en || {});
4840
- const se = {
4850
+ const ne = {
4841
4851
  name: "TextArea",
4842
4852
  class: "ds-textarea",
4843
4853
  props: {
@@ -4923,12 +4933,12 @@ const se = {
4923
4933
  }
4924
4934
  }
4925
4935
  }
4926
- }, tn = ke.forwardRef(
4936
+ }, tn = Se.forwardRef(
4927
4937
  ({
4928
4938
  name: t,
4929
- testId: e = se.props.testId.default,
4930
- animated: s = se.props.animated.default,
4931
- size: n = se.props.size.default,
4939
+ testId: e = ne.props.testId.default,
4940
+ animated: s = ne.props.animated.default,
4941
+ size: n = ne.props.size.default,
4932
4942
  label: r,
4933
4943
  placeholder: a,
4934
4944
  value: i,
@@ -4936,54 +4946,54 @@ const se = {
4936
4946
  maxLength: u,
4937
4947
  tooltip: d,
4938
4948
  icon: h,
4939
- status: f = se.props.status.default,
4949
+ status: f = ne.props.status.default,
4940
4950
  feedback: _,
4941
- disabled: y = se.props.disabled.default,
4942
- required: b,
4951
+ disabled: y = ne.props.disabled.default,
4952
+ required: S,
4943
4953
  className: v,
4944
- resize: m = se.props.resize.default,
4945
- onChangeHandler: F,
4946
- onBlurHandler: j,
4947
- onKeyDownHandler: A,
4948
- onFocusHandler: C,
4949
- rows: p = se.props.rows.default,
4950
- cols: x,
4951
- description: R,
4952
- style: X
4953
- }, O) => {
4954
- const [te, ue] = P(!1), [ce, Ae] = P(0), [me, Ve] = P(crypto.randomUUID());
4955
- Q(() => {
4956
- i == null && Ve(crypto.randomUUID());
4954
+ resize: m = ne.props.resize.default,
4955
+ onChangeHandler: C,
4956
+ onBlurHandler: U,
4957
+ onKeyDownHandler: T,
4958
+ onFocusHandler: w,
4959
+ rows: p = ne.props.rows.default,
4960
+ cols: A,
4961
+ description: B,
4962
+ style: z
4963
+ }, L) => {
4964
+ const [te, le] = j(!1), [ue, ye] = j(0), [se, De] = j(crypto.randomUUID());
4965
+ G(() => {
4966
+ i == null && De(crypto.randomUUID());
4957
4967
  }, [i]);
4958
- const oe = (w) => {
4959
- Ae(w.target.value.length), F && F(w);
4960
- }, ve = (w) => {
4961
- A && A(w);
4962
- }, Te = (w) => {
4963
- ue(!1), j && j(w);
4964
- }, Re = (w) => {
4965
- ue(!0), C && C(w);
4968
+ const re = (b) => {
4969
+ ye(b.target.value.length), C && C(b);
4970
+ }, ce = (b) => {
4971
+ T && T(b);
4972
+ }, ke = (b) => {
4973
+ le(!1), U && U(b);
4974
+ }, Ce = (b) => {
4975
+ le(!0), w && w(b);
4966
4976
  }, g = () => {
4967
- const w = [`${se.class}`];
4968
- return n && w.push(`${se.class}--${n}`), s && w.push(`${se.class}--animated`), d && w.push(`${se.class}--with-icon`), f && w.push(`${se.class}--${f}`), v && w.push(v), w.join(" ");
4969
- }, E = be(() => {
4970
- const w = [`${se.class}__label`];
4971
- return (te || i) && w.push(`${se.class}__label--active`), w.join(" ");
4972
- }, [i, te]), V = () => !s && a ? a : "", B = () => f && f === "error" ? "info" : "check_circle", N = {
4977
+ const b = [`${ne.class}`];
4978
+ return n && b.push(`${ne.class}--${n}`), s && b.push(`${ne.class}--animated`), d && b.push(`${ne.class}--with-icon`), f && b.push(`${ne.class}--${f}`), v && b.push(v), b.join(" ");
4979
+ }, E = ve(() => {
4980
+ const b = [`${ne.class}__label`];
4981
+ return (te || i) && b.push(`${ne.class}__label--active`), b.join(" ");
4982
+ }, [i, te]), $ = () => !s && a ? a : "", N = () => f && f === "error" ? "info" : "check_circle", I = {
4973
4983
  resize: m,
4974
- ...X ?? {}
4984
+ ...z ?? {}
4975
4985
  };
4976
- return /* @__PURE__ */ I("div", { className: g(), children: [
4977
- R && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: R }),
4978
- _ && /* @__PURE__ */ I("div", { className: "ds-textarea__feedback", children: [
4979
- /* @__PURE__ */ c(G, { image: B() }),
4986
+ return /* @__PURE__ */ R("div", { className: g(), children: [
4987
+ B && /* @__PURE__ */ c("span", { className: "ds-textarea__description", children: B }),
4988
+ _ && /* @__PURE__ */ R("div", { className: "ds-textarea__feedback", children: [
4989
+ /* @__PURE__ */ c(Z, { image: N() }),
4980
4990
  _
4981
4991
  ] }),
4982
4992
  /* @__PURE__ */ c(
4983
4993
  "textarea",
4984
4994
  {
4985
4995
  className: "ds-textarea__textarea",
4986
- cols: x,
4996
+ cols: A,
4987
4997
  "data-testid": e,
4988
4998
  defaultValue: i ?? "",
4989
4999
  disabled: y,
@@ -4991,46 +5001,46 @@ const se = {
4991
5001
  maxLength: u,
4992
5002
  minLength: l,
4993
5003
  name: t,
4994
- onBlur: Te,
4995
- onChange: oe,
4996
- onFocus: Re,
4997
- onKeyDown: ve,
4998
- placeholder: V(),
4999
- ref: O,
5000
- required: b,
5004
+ onBlur: ke,
5005
+ onChange: re,
5006
+ onFocus: Ce,
5007
+ onKeyDown: ce,
5008
+ placeholder: $(),
5009
+ ref: L,
5010
+ required: S,
5001
5011
  rows: p,
5002
- style: N
5012
+ style: I
5003
5013
  }
5004
5014
  ),
5005
5015
  /* @__PURE__ */ c("label", { className: E, htmlFor: t, children: r }),
5006
- u && /* @__PURE__ */ I("span", { className: "ds-textarea__count", children: [
5007
- ce,
5016
+ u && /* @__PURE__ */ R("span", { className: "ds-textarea__count", children: [
5017
+ ue,
5008
5018
  "/",
5009
5019
  u
5010
5020
  ] }),
5011
5021
  d && /* @__PURE__ */ c(
5012
- He,
5022
+ We,
5013
5023
  {
5014
5024
  className: "ds-textarea__tooltip",
5015
5025
  placement: "end",
5016
5026
  text: d,
5017
- children: /* @__PURE__ */ c(G, { className: "ds-textarea__icon", image: h })
5027
+ children: /* @__PURE__ */ c(Z, { className: "ds-textarea__icon", image: h })
5018
5028
  }
5019
5029
  )
5020
- ] }, me);
5030
+ ] }, se);
5021
5031
  }
5022
5032
  );
5023
5033
  tn.propTypes = {
5024
5034
  name: o.string,
5025
5035
  testId: o.string,
5026
5036
  animated: o.bool,
5027
- size: o.oneOf(se.props.size.options),
5037
+ size: o.oneOf(ne.props.size.options),
5028
5038
  label: o.string,
5029
5039
  placeholder: o.string,
5030
5040
  value: o.oneOfType([o.string]),
5031
5041
  tooltip: o.string,
5032
5042
  icon: o.string,
5033
- status: o.oneOf(se.props.status.options),
5043
+ status: o.oneOf(ne.props.status.options),
5034
5044
  feedback: o.string,
5035
5045
  minLength: o.number,
5036
5046
  maxLength: o.number,
@@ -5042,7 +5052,7 @@ tn.propTypes = {
5042
5052
  onBlur: o.func,
5043
5053
  onKeyDown: o.func,
5044
5054
  onFocus: o.func,
5045
- resize: o.oneOf(se.props.resize.options).isRequired,
5055
+ resize: o.oneOf(ne.props.resize.options).isRequired,
5046
5056
  description: o.string,
5047
5057
  style: o.object
5048
5058
  };
@@ -5136,11 +5146,11 @@ function es() {
5136
5146
  height: e
5137
5147
  };
5138
5148
  }
5139
- function er() {
5140
- const [t, e] = P(
5149
+ function nr() {
5150
+ const [t, e] = j(
5141
5151
  es()
5142
5152
  );
5143
- return Q(() => {
5153
+ return G(() => {
5144
5154
  function s() {
5145
5155
  e(es());
5146
5156
  }
@@ -5159,14 +5169,14 @@ const nn = ({
5159
5169
  height: u = ee.props.height.default
5160
5170
  }) => {
5161
5171
  const d = n && `${ee.class}__v-gap--${s}`, h = r && `${ee.class}__h-gap--${s}`, f = a && ee.props.horizontalAlign.options.find(
5162
- (A) => A === a
5172
+ (T) => T === a
5163
5173
  ) ? `${ee.class}--h-${a}` : null, _ = i && ee.props.verticalAlign.options.find(
5164
- (A) => A === i
5165
- ) ? `${ee.class}--v-${i}` : null, { width: y } = er(), [b, v] = P("auto");
5166
- Q(() => {
5174
+ (T) => T === i
5175
+ ) ? `${ee.class}--v-${i}` : null, { width: y } = nr(), [S, v] = j("auto");
5176
+ G(() => {
5167
5177
  y <= 768 ? v("6") : v("12");
5168
5178
  }, [y]);
5169
- const m = (A) => /^[+-]?\d+$/.test(A), F = () => e.split(",").map((C) => (C = C.trim(), C === "0" || C === "*" || C === "auto" ? "auto" : m(C) ? C + "fr" : C)).join(" "), j = () => `repeat(${b}, minmax(0, 1fr))`;
5179
+ const m = (T) => /^[+-]?\d+$/.test(T), C = () => e.split(",").map((w) => (w = w.trim(), w === "0" || w === "*" || w === "auto" ? "auto" : m(w) ? w + "fr" : w)).join(" "), U = () => `repeat(${S}, minmax(0, 1fr))`;
5170
5180
  return /* @__PURE__ */ c(
5171
5181
  "div",
5172
5182
  {
@@ -5176,12 +5186,12 @@ const nn = ({
5176
5186
  _,
5177
5187
  d,
5178
5188
  h
5179
- ].filter((A) => A).join(" "),
5189
+ ].filter((T) => T).join(" "),
5180
5190
  style: {
5181
5191
  width: l,
5182
5192
  height: u,
5183
- gridTemplateColumns: j(),
5184
- gridTemplateRows: F()
5193
+ gridTemplateColumns: U(),
5194
+ gridTemplateRows: C()
5185
5195
  },
5186
5196
  children: t
5187
5197
  }
@@ -5205,16 +5215,16 @@ nn.propTypes = {
5205
5215
  verticalAlign: o.oneOf(ee.props.verticalAlign.options)
5206
5216
  };
5207
5217
  nn.displayName = "DsGridLayout";
5208
- const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, tr = ({ children: t, grid: e }) => {
5209
- const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i, l] = P(ts());
5210
- Q(() => {
5218
+ const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth : 0, rr = ({ children: t, grid: e }) => {
5219
+ const { row: s, col: n, mobileRow: r, mobileCol: a } = e, [i, l] = j(ts());
5220
+ G(() => {
5211
5221
  const d = () => {
5212
5222
  l(ts());
5213
5223
  };
5214
5224
  if (typeof window < "u")
5215
5225
  return window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
5216
5226
  }, []);
5217
- const u = be(() => i <= 768 ? {
5227
+ const u = ve(() => i <= 768 ? {
5218
5228
  gridRow: r ?? s,
5219
5229
  gridColumn: a ?? n
5220
5230
  } : {
@@ -5223,8 +5233,8 @@ const ts = () => typeof window < "u" && window.innerWidth ? window.innerWidth :
5223
5233
  }, [i, s, n, r, a]);
5224
5234
  return /* @__PURE__ */ c("div", { style: u, children: t });
5225
5235
  };
5226
- tr.displayName = "DsGridElement";
5227
- const gr = {
5236
+ rr.displayName = "DsGridElement";
5237
+ const kr = {
5228
5238
  name: "Grid-Element",
5229
5239
  class: "ds-grid-element",
5230
5240
  props: {
@@ -5238,7 +5248,7 @@ const gr = {
5238
5248
  }
5239
5249
  };
5240
5250
  var ze = /* @__PURE__ */ ((t) => (t.None = "none", t.Quark = "quark", t.Nano = "nano", t.ExtraSmall = "xs", t.Small = "sm", t.Medium = "md", t.Large = "lg", t))(ze || {});
5241
- const _e = {
5251
+ const be = {
5242
5252
  name: "Wrapper",
5243
5253
  class: "ds-wrapper",
5244
5254
  props: {
@@ -5268,20 +5278,20 @@ const _e = {
5268
5278
  options: Object.values(ze)
5269
5279
  }
5270
5280
  }
5271
- }, Ze = ({
5281
+ }, Qe = ({
5272
5282
  children: t,
5273
- space: e = _e.props.space.default,
5274
- top: s = _e.props.top.default,
5275
- right: n = _e.props.right.default,
5276
- bottom: r = _e.props.bottom.default,
5277
- left: a = _e.props.left.default
5283
+ space: e = be.props.space.default,
5284
+ top: s = be.props.top.default,
5285
+ right: n = be.props.right.default,
5286
+ bottom: r = be.props.bottom.default,
5287
+ left: a = be.props.left.default
5278
5288
  }) => {
5279
- const i = s && `${_e.class}__top--${s}`, l = n && `${_e.class}__right--${n}`, u = r && `${_e.class}__bottom--${r}`, d = a && `${_e.class}__left--${a}`, h = e && `${_e.class}--${e}`;
5289
+ const i = s && `${be.class}__top--${s}`, l = n && `${be.class}__right--${n}`, u = r && `${be.class}__bottom--${r}`, d = a && `${be.class}__left--${a}`, h = e && `${be.class}--${e}`;
5280
5290
  return /* @__PURE__ */ c(
5281
5291
  "div",
5282
5292
  {
5283
5293
  className: [
5284
- _e.class,
5294
+ be.class,
5285
5295
  i,
5286
5296
  l,
5287
5297
  u,
@@ -5292,7 +5302,7 @@ const _e = {
5292
5302
  }
5293
5303
  );
5294
5304
  };
5295
- Ze.displayName = "DsWrapper";
5305
+ Qe.displayName = "DsWrapper";
5296
5306
  const wt = {
5297
5307
  name: "Accordion",
5298
5308
  class: "ds-accordion",
@@ -5339,12 +5349,12 @@ const wt = {
5339
5349
  disabled: r = Ue.props.disabled.default
5340
5350
  }) => {
5341
5351
  const a = n && `${Ue.class}--active`;
5342
- return /* @__PURE__ */ I(
5352
+ return /* @__PURE__ */ R(
5343
5353
  "li",
5344
5354
  {
5345
5355
  className: [Ue.class, a].filter((i) => i).join(" "),
5346
5356
  children: [
5347
- /* @__PURE__ */ I(
5357
+ /* @__PURE__ */ R(
5348
5358
  "button",
5349
5359
  {
5350
5360
  className: `${Ue.class}__button`,
@@ -5353,7 +5363,7 @@ const wt = {
5353
5363
  children: [
5354
5364
  t,
5355
5365
  /* @__PURE__ */ c(
5356
- G,
5366
+ Z,
5357
5367
  {
5358
5368
  className: `${Ue.class}__icon`,
5359
5369
  color: "neutral-90",
@@ -5381,12 +5391,12 @@ const rn = ({
5381
5391
  activeItem: e = wt.props.activeItem.default,
5382
5392
  onClick: s
5383
5393
  }) => {
5384
- const [n, r] = P(-1);
5385
- Q(() => {
5394
+ const [n, r] = j(-1);
5395
+ G(() => {
5386
5396
  t.map((i, l) => {
5387
5397
  i.active && r(l);
5388
5398
  });
5389
- }, [t]), Q(() => {
5399
+ }, [t]), G(() => {
5390
5400
  e != null && r(e);
5391
5401
  }, [e]);
5392
5402
  const a = (i) => {
@@ -5413,25 +5423,25 @@ rn.propTypes = {
5413
5423
  activeItem: o.number
5414
5424
  };
5415
5425
  rn.displayName = "DsAccordion";
5416
- const sr = ({
5426
+ const ar = ({
5417
5427
  title: t,
5418
5428
  activeTags: e,
5419
5429
  handleTagClose: s
5420
- }) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ I(pt, { children: [
5421
- /* @__PURE__ */ c(Ie, { className: "active-tags__title", children: t }),
5430
+ }) => /* @__PURE__ */ c("div", { className: "active-tags", children: e.length > 0 && /* @__PURE__ */ R(pt, { children: [
5431
+ /* @__PURE__ */ c(Ne, { className: "active-tags__title", children: t }),
5422
5432
  /* @__PURE__ */ c("div", { className: "active-tags__list", "data-testid": "ds-list", children: e.map((n, r) => /* @__PURE__ */ c(
5423
- He,
5433
+ We,
5424
5434
  {
5425
5435
  text: `Filtro ${n.text} aplicado`,
5426
- children: /* @__PURE__ */ I(
5436
+ children: /* @__PURE__ */ R(
5427
5437
  "div",
5428
5438
  {
5429
5439
  className: `active-tags__item ${n.hiddenClose && "active-tags__item--no-close"}`,
5430
5440
  "data-testid": `ds-active-tag-${r}`,
5431
5441
  children: [
5432
- /* @__PURE__ */ I(Me, { alignItems: "center", gap: "nano", children: [
5433
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
5434
- G,
5442
+ /* @__PURE__ */ R(Ve, { alignItems: "center", gap: "nano", children: [
5443
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
5444
+ Z,
5435
5445
  {
5436
5446
  className: "active-tags__icon",
5437
5447
  color: n.hiddenClose ? "neutral-00" : "neutral-90",
@@ -5440,10 +5450,10 @@ const sr = ({
5440
5450
  testId: `icon-${r}`
5441
5451
  }
5442
5452
  ) }),
5443
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Ie, { type: "small", children: n.text }) })
5453
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { type: "small", children: n.text }) })
5444
5454
  ] }),
5445
5455
  !n.hiddenClose && /* @__PURE__ */ c(
5446
- G,
5456
+ Z,
5447
5457
  {
5448
5458
  image: "close",
5449
5459
  onClick: () => s(r),
@@ -5458,8 +5468,8 @@ const sr = ({
5458
5468
  `ds-tooltip-key-${n.id}-${n.text}`
5459
5469
  )) })
5460
5470
  ] }) });
5461
- sr.displayName = "DsActiveTags";
5462
- const mr = {
5471
+ ar.displayName = "DsActiveTags";
5472
+ const br = {
5463
5473
  name: "ActiveTags",
5464
5474
  class: "ds-active-tags",
5465
5475
  props: {
@@ -5477,11 +5487,11 @@ const mr = {
5477
5487
  }
5478
5488
  }
5479
5489
  }
5480
- }, We = {
5490
+ }, Ye = {
5481
5491
  name: "Carousel",
5482
5492
  class: "ds-carousel",
5483
5493
  props: {}
5484
- }, nr = ({
5494
+ }, ir = ({
5485
5495
  slides: t,
5486
5496
  interval: e = 3e3,
5487
5497
  imageHeight: s = 100,
@@ -5489,17 +5499,17 @@ const mr = {
5489
5499
  imageMaxHeight: r,
5490
5500
  imageMaxWidth: a
5491
5501
  }) => {
5492
- const [i, l] = P(0), [u, d] = P(!1), h = Qe(null);
5493
- Q(() => (u || (h.current = setInterval(() => {
5502
+ const [i, l] = j(0), [u, d] = j(!1), h = He(null);
5503
+ G(() => (u || (h.current = setInterval(() => {
5494
5504
  l((y) => y === t.length - 1 ? 0 : y + 1);
5495
5505
  }, e)), () => {
5496
5506
  h.current && clearInterval(h.current);
5497
5507
  }), [u, e, t.length]);
5498
5508
  const f = () => d(!0), _ = () => d(!1);
5499
- return /* @__PURE__ */ I(
5509
+ return /* @__PURE__ */ R(
5500
5510
  "div",
5501
5511
  {
5502
- className: `${We.class}`,
5512
+ className: `${Ye.class}`,
5503
5513
  "data-testid": "ds-carousel",
5504
5514
  onMouseEnter: f,
5505
5515
  onMouseLeave: _,
@@ -5507,18 +5517,18 @@ const mr = {
5507
5517
  /* @__PURE__ */ c(
5508
5518
  "div",
5509
5519
  {
5510
- className: `${We.class}__image-wrapper`,
5520
+ className: `${Ye.class}__image-wrapper`,
5511
5521
  style: {
5512
5522
  height: s,
5513
5523
  width: n,
5514
5524
  maxHeight: r,
5515
5525
  maxWidth: a
5516
5526
  },
5517
- children: t.map((y, b) => /* @__PURE__ */ c(
5527
+ children: t.map((y, S) => /* @__PURE__ */ c(
5518
5528
  "img",
5519
5529
  {
5520
5530
  alt: y.title,
5521
- className: `${We.class}__image ${b === i ? "active" : "inactive"}`,
5531
+ className: `${Ye.class}__image ${S === i ? "active" : "inactive"}`,
5522
5532
  height: s,
5523
5533
  src: y.image,
5524
5534
  style: {
@@ -5527,28 +5537,28 @@ const mr = {
5527
5537
  },
5528
5538
  width: n
5529
5539
  },
5530
- b
5540
+ S
5531
5541
  ))
5532
5542
  }
5533
5543
  ),
5534
- /* @__PURE__ */ c(ge, { vertical: "xxs" }),
5544
+ /* @__PURE__ */ c(_e, { vertical: "xxs" }),
5535
5545
  /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Nt, { className: "color__primary", type: "heading-4", children: t[i].title }) }),
5536
- /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Ie, { type: "large", children: t[i].description }) }),
5537
- /* @__PURE__ */ c(ge, { vertical: "xxs" }),
5538
- /* @__PURE__ */ c("div", { className: `${We.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${We.class}__dots-wrapper`, children: t.map((y, b) => /* @__PURE__ */ c(
5546
+ /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(Ne, { type: "large", children: t[i].description }) }),
5547
+ /* @__PURE__ */ c(_e, { vertical: "xxs" }),
5548
+ /* @__PURE__ */ c("div", { className: `${Ye.class}__dots`, children: /* @__PURE__ */ c("div", { className: `${Ye.class}__dots-wrapper`, children: t.map((y, S) => /* @__PURE__ */ c(
5539
5549
  "button",
5540
5550
  {
5541
- "aria-label": `Go to slide ${b + 1}`,
5542
- className: `dot ${i === b ? "dot--active" : ""}`,
5543
- onClick: () => l(b)
5551
+ "aria-label": `Go to slide ${S + 1}`,
5552
+ className: `dot ${i === S ? "dot--active" : ""}`,
5553
+ onClick: () => l(S)
5544
5554
  },
5545
- b
5555
+ S
5546
5556
  )) }) })
5547
5557
  ]
5548
5558
  }
5549
5559
  );
5550
5560
  };
5551
- nr.propTypes = {
5561
+ ir.propTypes = {
5552
5562
  slides: o.arrayOf(
5553
5563
  o.shape({
5554
5564
  title: o.string.isRequired,
@@ -5564,7 +5574,7 @@ nr.propTypes = {
5564
5574
  imageMaxWidth: o.oneOfType([o.number, o.string])
5565
5575
  };
5566
5576
  var an = /* @__PURE__ */ ((t) => (t.Small = "small", t.Medium = "medium", t.Large = "large", t))(an || {});
5567
- const W = {
5577
+ const Y = {
5568
5578
  name: "EditableSelect",
5569
5579
  class: "ds-editable-select",
5570
5580
  props: {
@@ -5641,98 +5651,144 @@ const W = {
5641
5651
  }
5642
5652
  }
5643
5653
  }
5644
- }, rr = ({
5645
- label: t = W.props.label.default,
5646
- name: e = W.props.name.default,
5647
- testId: s = W.props.testId.default,
5648
- value: n = W.props.value.default,
5649
- options: r = W.props.options.default,
5650
- size: a = W.props.size.default,
5651
- onChangeHandler: i = W.props.onChangeHandler.default,
5652
- onSelectHandler: l = W.props.onSelectHandler.default,
5653
- icon: u = W.props.icon.default,
5654
- noOptionsMessage: d = W.props.noOptionsMessage.default,
5655
- disabled: h = W.props.disabled.default,
5656
- status: f = W.props.status.default,
5657
- onBlurHandler: _ = W.props.onBlurHandler.default,
5658
- onFocusHandler: y = W.props.onFocusHandler.default,
5659
- animated: b = W.props.animated.default,
5660
- placeholder: v = W.props.placeholder.default,
5661
- loading: m
5654
+ }, or = (t, e) => {
5655
+ if (!e) return t;
5656
+ const s = e.toLowerCase();
5657
+ return t.filter((n) => n.label.toLowerCase().includes(s));
5658
+ }, lr = (t) => t, ur = ({
5659
+ label: t = Y.props.label.default,
5660
+ name: e = Y.props.name.default,
5661
+ testId: s = Y.props.testId.default,
5662
+ value: n = Y.props.value.default,
5663
+ options: r = Y.props.options.default,
5664
+ size: a = Y.props.size.default,
5665
+ onChangeHandler: i = Y.props.onChangeHandler.default,
5666
+ onSelectHandler: l = Y.props.onSelectHandler.default,
5667
+ icon: u = Y.props.icon.default,
5668
+ noOptionsMessage: d = Y.props.noOptionsMessage.default,
5669
+ disabled: h = Y.props.disabled.default,
5670
+ status: f = Y.props.status.default,
5671
+ onBlurHandler: _ = Y.props.onBlurHandler.default,
5672
+ onFocusHandler: y = Y.props.onFocusHandler.default,
5673
+ animated: S = Y.props.animated.default,
5674
+ placeholder: v = Y.props.placeholder.default,
5675
+ loading: m,
5676
+ showOptionsOnFocus: C = !1,
5677
+ inputType: U,
5678
+ inputMin: T,
5679
+ inputMax: w,
5680
+ inputTooltip: p,
5681
+ inputTooltipPosition: A,
5682
+ inputTooltipPlacement: B,
5683
+ inputFeedback: z,
5684
+ inputHasFeedback: L,
5685
+ inputNoMargin: te,
5686
+ inputMask: le,
5687
+ inputOnKeyDownHandler: ue
5662
5688
  }) => {
5663
- const [F, j] = P(!1), [A, C] = P(n), p = (O) => {
5664
- i(O), (m == null && O.currentTarget.value.length || !m && O.currentTarget.value.length > 2) && j(!0);
5665
- }, x = (O) => {
5666
- l(O), _(), C(crypto.randomUUID().toString()), j(!1);
5667
- }, R = (O) => {
5668
- h || x(O);
5689
+ const [ye, se] = j(!1), [De, re] = j(n), ce = He(null), ke = (b) => {
5690
+ i(b);
5691
+ const D = b.currentTarget.value.length;
5692
+ (C || m == null && D > 0 || !m && D > 2) && se(!0);
5693
+ }, Ce = () => {
5694
+ y(), C && se(!0);
5695
+ }, g = () => {
5696
+ _();
5697
+ }, E = (b) => {
5698
+ l(b), _(), C || re(crypto.randomUUID().toString()), se(!1);
5699
+ }, $ = (b) => {
5700
+ h || E(b);
5669
5701
  };
5670
- Q(() => {
5671
- n.length === 0 && j(!1);
5672
- }, [n]);
5673
- const X = () => r.length > 0 ? r.map((O, te) => /* @__PURE__ */ c(
5702
+ G(() => {
5703
+ !C && n.length === 0 && se(!1);
5704
+ }, [n, C]), G(() => {
5705
+ if (!C) return;
5706
+ const b = (D) => {
5707
+ ce.current && !ce.current.contains(D.target) && se(!1);
5708
+ };
5709
+ return document.addEventListener("mousedown", b), () => document.removeEventListener("mousedown", b);
5710
+ }, [C]);
5711
+ const N = ve(() => C ? or(r, n) : lr(r), [r, n, C]), I = () => N.length > 0 ? N.map((b, D) => /* @__PURE__ */ c(
5674
5712
  "button",
5675
5713
  {
5676
- className: `${W.class}__option ${W.class}__option--${a}`,
5677
- "data-testid": `ds-option-${O.id ?? O.label}`,
5678
- onClick: () => R(O),
5679
- children: O.label
5714
+ className: `${Y.class}__option ${Y.class}__option--${a}`,
5715
+ "data-testid": `ds-option-${b.id ?? b.label}`,
5716
+ onClick: () => $(b),
5717
+ children: b.label
5680
5718
  },
5681
- te
5719
+ D
5682
5720
  )) : /* @__PURE__ */ c(
5683
5721
  "div",
5684
5722
  {
5685
- className: `${W.class}__option ${W.class}__option--not-found--${a}`,
5723
+ className: `${Y.class}__option ${Y.class}__option--not-found--${a}`,
5686
5724
  children: d
5687
5725
  },
5688
5726
  "no_option"
5689
5727
  );
5690
- return /* @__PURE__ */ I("div", { className: `${W.class}__container`, children: [
5691
- /* @__PURE__ */ c(
5692
- et,
5693
- {
5694
- animated: b,
5695
- className: `${W.class}__input`,
5696
- disabled: h,
5697
- label: t,
5698
- name: e,
5699
- onBlurHandler: _,
5700
- onChangeHandler: p,
5701
- onFocusHandler: y,
5702
- placeholder: v,
5703
- size: a,
5704
- status: f,
5705
- testId: s,
5706
- value: n
5707
- },
5708
- A
5709
- ),
5710
- (u || m) && (m ? /* @__PURE__ */ c(
5711
- "div",
5712
- {
5713
- className: `${W.class}__loading ${W.class}__loading--${a}`,
5714
- style: { width: "18px" },
5715
- children: /* @__PURE__ */ c($t, { fullscreen: !1 })
5716
- }
5717
- ) : u && /* @__PURE__ */ c(
5718
- G,
5719
- {
5720
- className: `${W.class}__icon ${W.class}__icon--${a}`,
5721
- image: u
5722
- }
5723
- )),
5724
- F && /* @__PURE__ */ c(
5725
- "div",
5726
- {
5727
- className: `${W.class}__list ${W.class}__list--${a}`,
5728
- "data-testid": "ds-list",
5729
- children: X()
5730
- }
5731
- )
5732
- ] });
5728
+ return /* @__PURE__ */ R(
5729
+ "div",
5730
+ {
5731
+ className: `${Y.class}__container`,
5732
+ ref: ce,
5733
+ children: [
5734
+ /* @__PURE__ */ c(
5735
+ et,
5736
+ {
5737
+ animated: S,
5738
+ className: `${Y.class}__input`,
5739
+ disabled: h,
5740
+ feedback: z,
5741
+ hasFeedback: L,
5742
+ label: t,
5743
+ mask: le,
5744
+ max: w,
5745
+ min: T,
5746
+ name: e,
5747
+ noMargin: te,
5748
+ onBlurHandler: g,
5749
+ onChangeHandler: ke,
5750
+ onFocusHandler: Ce,
5751
+ onKeyDownHandler: ue,
5752
+ placeholder: v,
5753
+ size: a,
5754
+ status: f,
5755
+ testId: s,
5756
+ tooltip: p,
5757
+ tooltipPlacement: B,
5758
+ tooltipPosition: A,
5759
+ type: U,
5760
+ value: n
5761
+ },
5762
+ De
5763
+ ),
5764
+ (u || m) && (m ? /* @__PURE__ */ c(
5765
+ "div",
5766
+ {
5767
+ className: `${Y.class}__loading ${Y.class}__loading--${a}`,
5768
+ style: { width: "18px" },
5769
+ children: /* @__PURE__ */ c($t, { fullscreen: !1 })
5770
+ }
5771
+ ) : u && /* @__PURE__ */ c(
5772
+ Z,
5773
+ {
5774
+ className: `${Y.class}__icon ${Y.class}__icon--${a}`,
5775
+ image: u
5776
+ }
5777
+ )),
5778
+ ye && /* @__PURE__ */ c(
5779
+ "div",
5780
+ {
5781
+ className: `${Y.class}__list ${Y.class}__list--${a}`,
5782
+ "data-testid": "ds-list",
5783
+ children: I()
5784
+ }
5785
+ )
5786
+ ]
5787
+ }
5788
+ );
5733
5789
  };
5734
- rr.displayName = "DsEditableSelect";
5735
- const Ye = {
5790
+ ur.displayName = "DsEditableSelect";
5791
+ const Xe = {
5736
5792
  name: "DsIndicator",
5737
5793
  class: "ds-indicator",
5738
5794
  props: {
@@ -5745,12 +5801,12 @@ const Ye = {
5745
5801
  required: !0
5746
5802
  }
5747
5803
  }
5748
- }, vr = ({
5804
+ }, Er = ({
5749
5805
  length: t,
5750
- current: e = Ye.props.current.default
5806
+ current: e = Xe.props.current.default
5751
5807
  }) => {
5752
- const [s, n] = P(e), r = (i) => i < s ? `${Ye.class}__step--older` : i === s ? `${Ye.class}__step--active` : "";
5753
- Q(() => {
5808
+ const [s, n] = j(e), r = (i) => i < s ? `${Xe.class}__step--older` : i === s ? `${Xe.class}__step--active` : "";
5809
+ G(() => {
5754
5810
  n(e);
5755
5811
  }, [e]);
5756
5812
  const a = [];
@@ -5759,14 +5815,14 @@ const Ye = {
5759
5815
  /* @__PURE__ */ c(
5760
5816
  "div",
5761
5817
  {
5762
- className: `${Ye.class}__step ${r(i)}`,
5818
+ className: `${Xe.class}__step ${r(i)}`,
5763
5819
  "data-testid": `ds-indicator-step-${i}`
5764
5820
  },
5765
5821
  i
5766
5822
  )
5767
5823
  );
5768
- return /* @__PURE__ */ c("div", { className: Ye.class, children: a });
5769
- }, ar = {
5824
+ return /* @__PURE__ */ c("div", { className: Xe.class, children: a });
5825
+ }, cr = {
5770
5826
  name: "DsInlineEditable",
5771
5827
  class: "ds-inline-editable",
5772
5828
  props: {
@@ -5809,8 +5865,8 @@ const Ye = {
5809
5865
  max: a,
5810
5866
  onChangeHandler: i
5811
5867
  }) => {
5812
- const l = Qe(null), [u, d] = P(!1), [h, f] = P("");
5813
- Q(() => {
5868
+ const l = He(null), [u, d] = j(!1), [h, f] = j("");
5869
+ G(() => {
5814
5870
  f(e ?? "");
5815
5871
  }, [e]);
5816
5872
  const _ = (m) => {
@@ -5819,13 +5875,13 @@ const Ye = {
5819
5875
  function y(m) {
5820
5876
  d(!1), i && (r && parseInt(r) >= parseInt(h === "" ? r : h) ? (m.currentTarget.value = r, f(r)) : a && parseInt(a) < parseInt(h) ? (m.currentTarget.value = a, f(a)) : m.currentTarget.value = h, i(m));
5821
5877
  }
5822
- const b = (m) => {
5878
+ const S = (m) => {
5823
5879
  f(m.currentTarget.value);
5824
5880
  }, v = async () => {
5825
5881
  var m;
5826
5882
  await d(!0), (m = l.current) == null || m.focus();
5827
5883
  };
5828
- return /* @__PURE__ */ c("div", { className: ar.class, children: u ? /* @__PURE__ */ c(
5884
+ return /* @__PURE__ */ c("div", { className: cr.class, children: u ? /* @__PURE__ */ c(
5829
5885
  "input",
5830
5886
  {
5831
5887
  className: "ds-input__input",
@@ -5834,7 +5890,7 @@ const Ye = {
5834
5890
  min: r,
5835
5891
  name: t,
5836
5892
  onBlur: y,
5837
- onChange: b,
5893
+ onChange: S,
5838
5894
  onKeyDown: _,
5839
5895
  ref: l,
5840
5896
  type: "number",
@@ -5845,13 +5901,13 @@ const Ye = {
5845
5901
  {
5846
5902
  "data-testid": "ds-inline-editible-div-click",
5847
5903
  onClick: v,
5848
- children: /* @__PURE__ */ I(Me, { alignItems: "center", gap: "nano", children: [
5849
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Ie, { children: /* @__PURE__ */ I("b", { children: [
5904
+ children: /* @__PURE__ */ R(Ve, { alignItems: "center", gap: "nano", children: [
5905
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { children: /* @__PURE__ */ R("b", { children: [
5850
5906
  s,
5851
5907
  e,
5852
5908
  n
5853
5909
  ] }) }) }),
5854
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(G, { image: "edit_square" }) })
5910
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Z, { image: "edit_square" }) })
5855
5911
  ] })
5856
5912
  }
5857
5913
  ) });
@@ -5860,8 +5916,8 @@ on.propTypes = {
5860
5916
  value: o.string
5861
5917
  };
5862
5918
  on.displayName = "DsInlineEditable";
5863
- var ir = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(ir || {}), ln = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(ln || {});
5864
- const fe = {
5919
+ var dr = /* @__PURE__ */ ((t) => (t[t.Elevation1 = 1] = "Elevation1", t[t.Elevation2 = 2] = "Elevation2", t[t.Elevation3 = 3] = "Elevation3", t[t.Elevation4 = 4] = "Elevation4", t))(dr || {}), ln = /* @__PURE__ */ ((t) => (t.Squared = "squared", t.Rounded = "rounded", t))(ln || {});
5920
+ const me = {
5865
5921
  name: "Modal",
5866
5922
  class: "ds-modal",
5867
5923
  props: {
@@ -5897,58 +5953,58 @@ const fe = {
5897
5953
  className: t,
5898
5954
  title: e,
5899
5955
  content: s,
5900
- cancelBtnText: n = fe.props.cancelBtnText.default,
5901
- confirmBtnText: r = fe.props.confirmBtnText.default,
5902
- variant: a = fe.props.variant.default,
5956
+ cancelBtnText: n = me.props.cancelBtnText.default,
5957
+ confirmBtnText: r = me.props.confirmBtnText.default,
5958
+ variant: a = me.props.variant.default,
5903
5959
  elevation: i,
5904
- isModalOpen: l = fe.props.isModalOpen.default,
5960
+ isModalOpen: l = me.props.isModalOpen.default,
5905
5961
  onClose: u,
5906
5962
  onCancel: d,
5907
5963
  onConfirm: h,
5908
5964
  ...f
5909
5965
  }) => {
5910
- const _ = a && fe.props.variant.options.find((m) => m === a) ? `${fe.class}--${a}` : `${fe.class}--${fe.props.variant.default}`, y = i && `${fe.class}--elevation-${i}`, b = h || d, v = xe(
5966
+ const _ = a && me.props.variant.options.find((m) => m === a) ? `${me.class}--${a}` : `${me.class}--${me.props.variant.default}`, y = i && `${me.class}--elevation-${i}`, S = h || d, v = Te(
5911
5967
  (m) => {
5912
5968
  m.keyCode === 27 && u();
5913
5969
  },
5914
5970
  [u]
5915
5971
  );
5916
- return Q(() => (l && window && !b && window.addEventListener("keyup", v), () => {
5972
+ return G(() => (l && window && !S && window.addEventListener("keyup", v), () => {
5917
5973
  window.removeEventListener("keyup", v);
5918
- }), [b, v]), l ? /* @__PURE__ */ I(pt, { children: [
5974
+ }), [S, v]), l ? /* @__PURE__ */ R(pt, { children: [
5919
5975
  /* @__PURE__ */ c(
5920
5976
  "div",
5921
5977
  {
5922
5978
  className: "ds-modal-overlay",
5923
5979
  "data-testid": "ds-modal-overlay",
5924
5980
  ...f,
5925
- onClick: () => b ? () => {
5981
+ onClick: () => S ? () => {
5926
5982
  } : u()
5927
5983
  }
5928
5984
  ),
5929
- /* @__PURE__ */ I(
5985
+ /* @__PURE__ */ R(
5930
5986
  "div",
5931
5987
  {
5932
- className: [fe.class, _, y, t].filter((m) => m).join(" "),
5988
+ className: [me.class, _, y, t].filter((m) => m).join(" "),
5933
5989
  "data-testid": "ds-modal",
5934
5990
  children: [
5935
- !b && /* @__PURE__ */ c(
5991
+ !S && /* @__PURE__ */ c(
5936
5992
  "button",
5937
5993
  {
5938
5994
  className: "ds-modal__closeBtn",
5939
5995
  "data-testid": "ds-modal-close-button",
5940
5996
  onClick: u,
5941
- children: /* @__PURE__ */ c(G, { image: "close", size: "lg" })
5997
+ children: /* @__PURE__ */ c(Z, { image: "close", size: "lg" })
5942
5998
  }
5943
5999
  ),
5944
- /* @__PURE__ */ I("div", { className: "ds-modal__content", children: [
6000
+ /* @__PURE__ */ R("div", { className: "ds-modal__content", children: [
5945
6001
  /* @__PURE__ */ c("div", { className: "ds-modal__content__title", children: e }),
5946
- e && /* @__PURE__ */ c(ge, { vertical: "xxxs" }),
6002
+ e && /* @__PURE__ */ c(_e, { vertical: "xxxs" }),
5947
6003
  /* @__PURE__ */ c("div", { className: "ds-modal__content__content", children: s })
5948
6004
  ] }),
5949
- b && /* @__PURE__ */ c(ge, { vertical: "sm" }),
5950
- !b && /* @__PURE__ */ c(ge, { vertical: "xxs" }),
5951
- /* @__PURE__ */ I("div", { className: "ds-modal__cta", children: [
6005
+ S && /* @__PURE__ */ c(_e, { vertical: "sm" }),
6006
+ !S && /* @__PURE__ */ c(_e, { vertical: "xxs" }),
6007
+ /* @__PURE__ */ R("div", { className: "ds-modal__cta", children: [
5952
6008
  d && /* @__PURE__ */ c(
5953
6009
  ut,
5954
6010
  {
@@ -5977,15 +6033,15 @@ un.propTypes = {
5977
6033
  firstButtonText: o.string,
5978
6034
  confirmBtnText: o.string,
5979
6035
  cancelBtnText: o.string,
5980
- variant: o.oneOf(fe.props.variant.options),
5981
- elevation: o.oneOf(fe.props.elevation.options),
6036
+ variant: o.oneOf(me.props.variant.options),
6037
+ elevation: o.oneOf(me.props.elevation.options),
5982
6038
  isModalOpen: o.bool,
5983
6039
  title: o.node,
5984
6040
  content: o.node
5985
6041
  };
5986
6042
  un.displayName = "DsModal";
5987
6043
  var cn = /* @__PURE__ */ ((t) => (t.Success = "success", t.Danger = "danger", t.Warning = "warning", t.Info = "info", t))(cn || {}), dn = /* @__PURE__ */ ((t) => (t.Rounded = "rounded", t.Squared = "squared", t))(dn || {});
5988
- const le = {
6044
+ const pe = {
5989
6045
  name: "DsNotification",
5990
6046
  class: "ds-notification",
5991
6047
  props: {
@@ -6031,73 +6087,73 @@ const le = {
6031
6087
  var pn = /* @__PURE__ */ ((t) => (t.success = "check", t.danger = "error", t.warning = "warning", t.info = "info", t))(pn || {});
6032
6088
  const hn = ({
6033
6089
  className: t,
6034
- type: e = le.props.type.default,
6035
- variant: s = le.props.variant.default,
6090
+ type: e = pe.props.type.default,
6091
+ variant: s = pe.props.variant.default,
6036
6092
  id: n,
6037
6093
  children: r,
6038
6094
  message: a,
6039
- autoClose: i = le.props.autoClose.default,
6040
- autoCloseTimer: l = le.props.autoCloseTimer.default,
6041
- dismissible: u = le.props.dismissible.default,
6095
+ autoClose: i = pe.props.autoClose.default,
6096
+ autoCloseTimer: l = pe.props.autoCloseTimer.default,
6097
+ dismissible: u = pe.props.dismissible.default,
6042
6098
  elevation: d,
6043
- progressBar: h = le.props.progressBar.default,
6099
+ progressBar: h = pe.props.progressBar.default,
6044
6100
  handleClose: f,
6045
- testId: _ = le.props.testId.default
6101
+ testId: _ = pe.props.testId.default
6046
6102
  }) => {
6047
- const [y, b] = P(l), [v, m] = P(!1), [F, j] = P(!0), A = [
6048
- le.class,
6049
- e && `${le.class}--${e}`,
6050
- s && `${le.class}--${s}`,
6051
- d && `${le.class}--elevation-${d}`,
6103
+ const [y, S] = j(l), [v, m] = j(!1), [C, U] = j(!0), T = [
6104
+ pe.class,
6105
+ e && `${pe.class}--${e}`,
6106
+ s && `${pe.class}--${s}`,
6107
+ d && `${pe.class}--elevation-${d}`,
6052
6108
  t
6053
- ].join(" "), C = () => b((X) => (X === 0 && j(!1), X - 100));
6054
- Q(() => {
6055
- !i && !u && j(!0);
6056
- let X;
6057
- return !v && i && (X = setInterval(C, 100)), () => {
6058
- clearInterval(X);
6109
+ ].join(" "), w = () => S((z) => (z === 0 && U(!1), z - 100));
6110
+ G(() => {
6111
+ !i && !u && U(!0);
6112
+ let z;
6113
+ return !v && i && (z = setInterval(w, 100)), () => {
6114
+ clearInterval(z);
6059
6115
  };
6060
- }, [v, i, l, F, u]);
6116
+ }, [v, i, l, C, u]);
6061
6117
  const p = () => {
6062
6118
  m(!0);
6063
- }, x = () => {
6119
+ }, A = () => {
6064
6120
  m(!1);
6065
- }, R = (X) => {
6066
- j(!1), f && f(X);
6121
+ }, B = (z) => {
6122
+ U(!1), f && f(z);
6067
6123
  };
6068
- return F ? /* @__PURE__ */ I(
6124
+ return C ? /* @__PURE__ */ R(
6069
6125
  "div",
6070
6126
  {
6071
- className: A,
6127
+ className: T,
6072
6128
  "data-testid": _,
6073
6129
  id: n,
6074
6130
  onMouseEnter: p,
6075
- onMouseLeave: x,
6131
+ onMouseLeave: A,
6076
6132
  children: [
6077
- /* @__PURE__ */ c(Ze, { bottom: "nano", top: "nano", children: /* @__PURE__ */ I(Me, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
6078
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
6079
- G,
6133
+ /* @__PURE__ */ c(Qe, { bottom: "nano", top: "nano", children: /* @__PURE__ */ R(Ve, { alignItems: "center", flexWrap: "nowrap", gap: "xxxs", children: [
6134
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
6135
+ Z,
6080
6136
  {
6081
6137
  color: e,
6082
6138
  fill: !0,
6083
6139
  image: pn[e]
6084
6140
  }
6085
6141
  ) }),
6086
- /* @__PURE__ */ c(ne, { flex: "1", children: /* @__PURE__ */ c(Ze, { left: "none", right: "none", space: "nano", children: r ?? a }) }),
6087
- /* @__PURE__ */ c(ne, { children: u ? /* @__PURE__ */ c(
6142
+ /* @__PURE__ */ c(ae, { flex: "1", children: /* @__PURE__ */ c(Qe, { left: "none", right: "none", space: "nano", children: r ?? a }) }),
6143
+ /* @__PURE__ */ c(ae, { children: u ? /* @__PURE__ */ c(
6088
6144
  "div",
6089
6145
  {
6090
- className: `${le.class}__button`,
6146
+ className: `${pe.class}__button`,
6091
6147
  "data-testid": `${_}-close`,
6092
- onClick: (X) => R(X),
6093
- children: /* @__PURE__ */ c(Ze, { children: /* @__PURE__ */ c(G, { image: "close" }) })
6148
+ onClick: (z) => B(z),
6149
+ children: /* @__PURE__ */ c(Qe, { children: /* @__PURE__ */ c(Z, { image: "close" }) })
6094
6150
  }
6095
- ) : /* @__PURE__ */ c(ge, { horizontal: "quark" }) })
6151
+ ) : /* @__PURE__ */ c(_e, { horizontal: "quark" }) })
6096
6152
  ] }) }),
6097
6153
  h && i && /* @__PURE__ */ c(
6098
6154
  "div",
6099
6155
  {
6100
- className: `${le.class}__progress-bar ${le.class}__progress-bar--${e}`,
6156
+ className: `${pe.class}__progress-bar ${pe.class}__progress-bar--${e}`,
6101
6157
  "data-testid": `${_}-progress-bar`,
6102
6158
  style: {
6103
6159
  width: `${y / l * 100}%`
@@ -6159,83 +6215,83 @@ const At = {
6159
6215
  instructionLabel: s = At.props.instructionLabel.default,
6160
6216
  testId: n = At.props.testId.default
6161
6217
  }) => {
6162
- const [r, a] = P(""), [i, l] = P(""), [u, d] = P([]), [h, f] = P({
6218
+ const [r, a] = j(""), [i, l] = j(""), [u, d] = j([]), [h, f] = j({
6163
6219
  score: 0,
6164
6220
  color: "danger",
6165
6221
  label: "Fraco"
6166
- }), [_, y] = P(!1), b = xe(
6222
+ }), [_, y] = j(!1), S = Te(
6167
6223
  (p) => {
6168
- const x = e.map(
6169
- (R) => R == null ? void 0 : R.rule(p)
6224
+ const A = e.map(
6225
+ (B) => B == null ? void 0 : B.rule(p)
6170
6226
  );
6171
- return d(x), x;
6227
+ return d(A), A;
6172
6228
  },
6173
6229
  [e]
6174
- ), v = xe(
6230
+ ), v = Te(
6175
6231
  (p) => {
6176
6232
  a(p.currentTarget.value);
6177
- const x = b(p.currentTarget.value), R = A(x);
6233
+ const A = S(p.currentTarget.value), B = T(A);
6178
6234
  t({
6179
6235
  password: p.currentTarget.value,
6180
6236
  confirmationPassword: i,
6181
6237
  isEqual: i === p.currentTarget.value,
6182
- feedback: R
6238
+ feedback: B
6183
6239
  });
6184
6240
  },
6185
- [i, t, b]
6186
- ), m = xe(
6241
+ [i, t, S]
6242
+ ), m = Te(
6187
6243
  (p) => {
6188
6244
  l(p.currentTarget.value);
6189
- const x = b(r), R = A(x);
6245
+ const A = S(r), B = T(A);
6190
6246
  t({
6191
6247
  password: r,
6192
6248
  confirmationPassword: p.currentTarget.value,
6193
6249
  isEqual: r === p.currentTarget.value,
6194
- feedback: R
6250
+ feedback: B
6195
6251
  });
6196
6252
  },
6197
- [r, t, b]
6198
- ), F = be(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), j = xe(
6253
+ [r, t, S]
6254
+ ), C = ve(() => r !== i && _ ? { status: "error", feedback: "As senhas são diferentes" } : { status: "", feedback: "" }, [r, i, _]), U = Te(
6199
6255
  (p) => {
6200
- const x = {
6256
+ const A = {
6201
6257
  score: p,
6202
6258
  color: "danger",
6203
6259
  label: rt.weak
6204
6260
  };
6205
- return p > 30 && p < 75 ? (x.color = "warning", x.label = rt.medium) : p >= 75 && p < 100 ? (x.color = "success", x.label = rt.good) : p === 100 && (x.color = "success-dark", x.label = rt.strong), x;
6261
+ return p > 30 && p < 75 ? (A.color = "warning", A.label = rt.medium) : p >= 75 && p < 100 ? (A.color = "success", A.label = rt.good) : p === 100 && (A.color = "success-dark", A.label = rt.strong), A;
6206
6262
  },
6207
6263
  []
6208
- ), A = xe(
6264
+ ), T = Te(
6209
6265
  (p) => {
6210
- const x = p.reduce(
6211
- (X, O) => {
6212
- let te = X;
6213
- return O ? (te++, te) : X;
6266
+ const A = p.reduce(
6267
+ (z, L) => {
6268
+ let te = z;
6269
+ return L ? (te++, te) : z;
6214
6270
  },
6215
6271
  0
6216
- ), R = j(
6217
- x * 100 / p.length
6272
+ ), B = U(
6273
+ A * 100 / p.length
6218
6274
  );
6219
- return f(R), R;
6220
- },
6221
- [j]
6222
- ), C = () => /* @__PURE__ */ c("ul", { children: e.map((p, x) => {
6223
- const R = u[x] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
6224
- return /* @__PURE__ */ I("li", { className: R, children: [
6225
- u[x] ? /* @__PURE__ */ c(
6226
- G,
6275
+ return f(B), B;
6276
+ },
6277
+ [U]
6278
+ ), w = () => /* @__PURE__ */ c("ul", { children: e.map((p, A) => {
6279
+ const B = u[A] ? "ds-password-confirmation__list" : "ds-password-confirmation__list--disc";
6280
+ return /* @__PURE__ */ R("li", { className: B, children: [
6281
+ u[A] ? /* @__PURE__ */ c(
6282
+ Z,
6227
6283
  {
6228
6284
  color: "success-dark",
6229
6285
  image: "check",
6230
6286
  testId: "ds-check-icon"
6231
6287
  }
6232
6288
  ) : null,
6233
- /* @__PURE__ */ c(ge, { horizontal: "quark" }),
6234
- /* @__PURE__ */ c(Ie, { children: p.title })
6235
- ] }, x + p.title);
6289
+ /* @__PURE__ */ c(_e, { horizontal: "quark" }),
6290
+ /* @__PURE__ */ c(Ne, { children: p.title })
6291
+ ] }, A + p.title);
6236
6292
  }) });
6237
- return /* @__PURE__ */ I(Me, { className: "ds-password-confirmation", flexDirection: "column", children: [
6238
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
6293
+ return /* @__PURE__ */ R(Ve, { className: "ds-password-confirmation", flexDirection: "column", children: [
6294
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
6239
6295
  et,
6240
6296
  {
6241
6297
  label: "Senha",
@@ -6246,7 +6302,7 @@ const At = {
6246
6302
  value: r
6247
6303
  }
6248
6304
  ) }),
6249
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
6305
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
6250
6306
  zs,
6251
6307
  {
6252
6308
  color: h == null ? void 0 : h.color,
@@ -6254,19 +6310,19 @@ const At = {
6254
6310
  progress: h == null ? void 0 : h.score
6255
6311
  }
6256
6312
  ) }),
6257
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(Ie, { children: s }) }),
6258
- /* @__PURE__ */ c(ne, { children: C() }),
6259
- /* @__PURE__ */ c(ge, { vertical: "xxs" }),
6260
- /* @__PURE__ */ c(ne, { children: /* @__PURE__ */ c(
6313
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(Ne, { children: s }) }),
6314
+ /* @__PURE__ */ c(ae, { children: w() }),
6315
+ /* @__PURE__ */ c(_e, { vertical: "xxs" }),
6316
+ /* @__PURE__ */ c(ae, { children: /* @__PURE__ */ c(
6261
6317
  et,
6262
6318
  {
6263
- feedback: F.feedback,
6319
+ feedback: C.feedback,
6264
6320
  label: "Confirme a senha",
6265
6321
  name: "confirmPassword",
6266
6322
  onBlurHandler: () => y(!0),
6267
6323
  onChangeHandler: m,
6268
6324
  onFocusHandler: () => y(!0),
6269
- status: F.status,
6325
+ status: C.status,
6270
6326
  testId: `${n}-confirm-input`,
6271
6327
  type: "password",
6272
6328
  value: i
@@ -6281,7 +6337,7 @@ fn.propTypes = {
6281
6337
  testId: o.string
6282
6338
  };
6283
6339
  fn.displayName = "DsPasswordConfirmation";
6284
- const ye = {
6340
+ const Ee = {
6285
6341
  name: "DsStepper",
6286
6342
  class: "ds-stepper",
6287
6343
  props: {
@@ -6294,30 +6350,30 @@ const ye = {
6294
6350
  default: 0
6295
6351
  }
6296
6352
  }
6297
- }, or = ({
6353
+ }, pr = ({
6298
6354
  steps: t,
6299
- selectedStep: e = ye.props.selectedStep.default,
6355
+ selectedStep: e = Ee.props.selectedStep.default,
6300
6356
  onChange: s
6301
6357
  }) => {
6302
- const [n, r] = P(e), a = (i, l) => {
6303
- const u = [`${ye.class}__button`];
6304
- return l !== i && u.push(`${ye.class}__button--round`), t[i] && t[i].disabled && u.push(`${ye.class}__button--disabled`), u.join(" ");
6358
+ const [n, r] = j(e), a = (i, l) => {
6359
+ const u = [`${Ee.class}__button`];
6360
+ return l !== i && u.push(`${Ee.class}__button--round`), t[i] && t[i].disabled && u.push(`${Ee.class}__button--disabled`), u.join(" ");
6305
6361
  };
6306
- return Q(() => {
6362
+ return G(() => {
6307
6363
  r(e);
6308
- }, [e]), Q(() => {
6364
+ }, [e]), G(() => {
6309
6365
  s(n);
6310
- }, [n]), /* @__PURE__ */ I("div", { className: ye.class, children: [
6311
- /* @__PURE__ */ I("span", { className: `${ye.class}__step-counter`, children: [
6366
+ }, [n]), /* @__PURE__ */ R("div", { className: Ee.class, children: [
6367
+ /* @__PURE__ */ R("span", { className: `${Ee.class}__step-counter`, children: [
6312
6368
  "Etapa ",
6313
6369
  n + 1,
6314
6370
  " de ",
6315
6371
  t == null ? void 0 : t.length
6316
6372
  ] }),
6317
- /* @__PURE__ */ c("div", { className: `${ye.class}__step`, children: t.map((i, l) => /* @__PURE__ */ c(
6373
+ /* @__PURE__ */ c("div", { className: `${Ee.class}__step`, children: t.map((i, l) => /* @__PURE__ */ c(
6318
6374
  "div",
6319
6375
  {
6320
- className: `${ye.class}__content`,
6376
+ className: `${Ee.class}__content`,
6321
6377
  children: /* @__PURE__ */ c(
6322
6378
  "button",
6323
6379
  {
@@ -6325,19 +6381,19 @@ const ye = {
6325
6381
  "data-testid": `ds-button-${l}`,
6326
6382
  disabled: i.disabled,
6327
6383
  onClick: () => r(l),
6328
- children: /* @__PURE__ */ I("span", { className: `${ye.class}__text`, children: [
6329
- n === l ? /* @__PURE__ */ c(Ze, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
6330
- G,
6384
+ children: /* @__PURE__ */ R("span", { className: `${Ee.class}__text`, children: [
6385
+ n === l ? /* @__PURE__ */ c(Qe, { bottom: "none", left: "nano", right: "nano", top: "none", children: /* @__PURE__ */ c(
6386
+ Z,
6331
6387
  {
6332
- className: `${ye.class}__icon`,
6388
+ className: `${Ee.class}__icon`,
6333
6389
  fill: !0,
6334
6390
  image: i.icon,
6335
6391
  testId: `ds-icon-${l}`
6336
6392
  }
6337
6393
  ) }) : /* @__PURE__ */ c(
6338
- G,
6394
+ Z,
6339
6395
  {
6340
- className: `${ye.class}__icon`,
6396
+ className: `${Ee.class}__icon`,
6341
6397
  fill: !0,
6342
6398
  image: i.icon,
6343
6399
  testId: `ds-icon-${l}`
@@ -6352,8 +6408,8 @@ const ye = {
6352
6408
  )) })
6353
6409
  ] });
6354
6410
  };
6355
- or.displayName = "DsStepper";
6356
- const Ce = {
6411
+ pr.displayName = "DsStepper";
6412
+ const Ae = {
6357
6413
  name: "Table",
6358
6414
  class: "ds-table",
6359
6415
  props: {
@@ -6370,13 +6426,13 @@ const Ce = {
6370
6426
  default: []
6371
6427
  }
6372
6428
  }
6373
- }, gn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Ce.class}__row`, children: e.map((s, n) => {
6374
- const r = s.align && `${Ce.class}__cell--align-${s.align}`;
6429
+ }, gn = ({ item: t, columns: e }) => /* @__PURE__ */ c("tr", { className: `${Ae.class}__row`, children: e.map((s, n) => {
6430
+ const r = s.align && `${Ae.class}__cell--align-${s.align}`;
6375
6431
  return /* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(
6376
6432
  "div",
6377
6433
  {
6378
6434
  className: [
6379
- `${Ce.class}__cell`,
6435
+ `${Ae.class}__cell`,
6380
6436
  r,
6381
6437
  s.className
6382
6438
  ].filter((a) => a).join(" "),
@@ -6385,28 +6441,28 @@ const Ce = {
6385
6441
  ) }, n);
6386
6442
  }) });
6387
6443
  gn.displayName = "DsTableRow";
6388
- const lr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ce.class}__wrapper`, children: /* @__PURE__ */ I(
6444
+ const hr = ({ columns: t, data: e, className: s }) => /* @__PURE__ */ c("div", { className: `${Ae.class}__wrapper`, children: /* @__PURE__ */ R(
6389
6445
  "table",
6390
6446
  {
6391
- className: [`${Ce.class}`, s].filter((n) => n).join(" "),
6447
+ className: [`${Ae.class}`, s].filter((n) => n).join(" "),
6392
6448
  children: [
6393
- /* @__PURE__ */ c("thead", { className: `${Ce.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Ce.class}__row`, children: t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ c("th", { style: { width: n.size }, children: /* @__PURE__ */ c(
6449
+ /* @__PURE__ */ c("thead", { className: `${Ae.class}__head`, children: /* @__PURE__ */ c("tr", { className: `${Ae.class}__row`, children: t == null ? void 0 : t.map((n, r) => /* @__PURE__ */ c("th", { style: { width: n.size }, children: /* @__PURE__ */ c(
6394
6450
  "div",
6395
6451
  {
6396
6452
  className: [
6397
- `${Ce.class}__cell`,
6398
- n.align && `${Ce.class}__cell--align-${n.align}`
6453
+ `${Ae.class}__cell`,
6454
+ n.align && `${Ae.class}__cell--align-${n.align}`
6399
6455
  ].filter((a) => a).join(" "),
6400
6456
  children: n.label
6401
6457
  }
6402
6458
  ) }, r)) }) }),
6403
- /* @__PURE__ */ c("tbody", { className: `${Ce.class}__body`, children: e && e.map((n, r) => /* @__PURE__ */ c(gn, { columns: t, item: n }, r)) })
6459
+ /* @__PURE__ */ c("tbody", { className: `${Ae.class}__body`, children: e && e.map((n, r) => /* @__PURE__ */ c(gn, { columns: t, item: n }, r)) })
6404
6460
  ]
6405
6461
  }
6406
6462
  ) });
6407
- lr.displayName = "DsTable";
6463
+ hr.displayName = "DsTable";
6408
6464
  var mn = /* @__PURE__ */ ((t) => (t.None = "", t.Primary = "primary", t.Secondary = "secondary", t.Neutral = "neutral", t.Success = "success", t.Warning = "warning", t.Danger = "danger", t.Info = "info", t))(mn || {});
6409
- const Be = {
6465
+ const $e = {
6410
6466
  name: "DsTabs",
6411
6467
  class: "ds-tabs",
6412
6468
  props: {
@@ -6433,7 +6489,7 @@ const Be = {
6433
6489
  }
6434
6490
  }
6435
6491
  }
6436
- }, ur = ({
6492
+ }, fr = ({
6437
6493
  active: t,
6438
6494
  className: e,
6439
6495
  color: s,
@@ -6444,10 +6500,10 @@ const Be = {
6444
6500
  onClick: l
6445
6501
  }) => {
6446
6502
  const u = [
6447
- `${Be.class}__tab`,
6448
- `${Be.class}__tab-color--${s}`,
6449
- t && `${Be.class}__tab--active`,
6450
- n && `${Be.class}__tab--disabled`,
6503
+ `${$e.class}__tab`,
6504
+ `${$e.class}__tab-color--${s}`,
6505
+ t && `${$e.class}__tab--active`,
6506
+ n && `${$e.class}__tab--disabled`,
6451
6507
  e
6452
6508
  ].join(" "), d = (h) => {
6453
6509
  l && !n && l(h);
@@ -6462,24 +6518,24 @@ const Be = {
6462
6518
  children: i
6463
6519
  }
6464
6520
  );
6465
- }, _r = ({
6521
+ }, Sr = ({
6466
6522
  tabs: t,
6467
6523
  color: e,
6468
- selectedTab: s = Be.props.selectedTab.default,
6524
+ selectedTab: s = $e.props.selectedTab.default,
6469
6525
  className: n,
6470
6526
  onChange: r
6471
6527
  }) => {
6472
- const [a, i] = P(s), l = (u) => {
6528
+ const [a, i] = j(s), l = (u) => {
6473
6529
  i(u), r && r(u);
6474
6530
  };
6475
- return Q(() => i(s), [s]), /* @__PURE__ */ I(
6531
+ return G(() => i(s), [s]), /* @__PURE__ */ R(
6476
6532
  "div",
6477
6533
  {
6478
- className: [Be.class, n].filter((u) => u).join(" "),
6534
+ className: [$e.class, n].filter((u) => u).join(" "),
6479
6535
  "data-testid": "ds-tabs",
6480
6536
  children: [
6481
- /* @__PURE__ */ c("div", { className: `${Be.class}__header`, children: t.map((u, d) => /* @__PURE__ */ bn(
6482
- ur,
6537
+ /* @__PURE__ */ c("div", { className: `${$e.class}__header`, children: t.map((u, d) => /* @__PURE__ */ bn(
6538
+ fr,
6483
6539
  {
6484
6540
  ...u,
6485
6541
  active: a === d,
@@ -6489,15 +6545,15 @@ const Be = {
6489
6545
  onClick: () => l(d)
6490
6546
  }
6491
6547
  )) }),
6492
- /* @__PURE__ */ c("div", { className: `${Be.class}__content`, children: t[a].content })
6548
+ /* @__PURE__ */ c("div", { className: `${$e.class}__content`, children: t[a].content })
6493
6549
  ]
6494
6550
  }
6495
6551
  );
6496
6552
  };
6497
- function cr({ library: t, children: e, theme: s }) {
6553
+ function gr({ library: t, children: e, theme: s }) {
6498
6554
  return /* @__PURE__ */ c("div", { "data-library": t, "data-theme": s, children: /* @__PURE__ */ c("div", { className: "ds-theme", children: e }) });
6499
6555
  }
6500
- cr.propTypes = {
6556
+ gr.propTypes = {
6501
6557
  library: o.string,
6502
6558
  children: o.node.isRequired,
6503
6559
  theme: o.string
@@ -6562,22 +6618,22 @@ _n.propTypes = {
6562
6618
  removeNotification: o.func
6563
6619
  };
6564
6620
  _n.displayName = "DsNotificationList";
6565
- const Xe = {
6621
+ const Ke = {
6566
6622
  class: "ds-split-layout"
6567
- }, dr = ({
6623
+ }, mr = ({
6568
6624
  leftContent: t,
6569
6625
  rightContent: e,
6570
6626
  leftBackgroundColor: s,
6571
6627
  rightBackgroundColor: n,
6572
6628
  reverseOnMobile: r = !1
6573
6629
  }) => {
6574
- const a = s ? `bg-color__${s}` : "", i = n ? `bg-color__${n}` : "", l = r ? `${Xe.class}__content--mobile-order-2` : "", u = r ? `${Xe.class}__content--mobile-order-1` : "", d = `${Xe.class}__content ${a} ${l}`, h = `${Xe.class}__content ${i} ${u}`;
6575
- return /* @__PURE__ */ I("div", { className: Xe.class, children: [
6630
+ const a = s ? `bg-color__${s}` : "", i = n ? `bg-color__${n}` : "", l = r ? `${Ke.class}__content--mobile-order-2` : "", u = r ? `${Ke.class}__content--mobile-order-1` : "", d = `${Ke.class}__content ${a} ${l}`, h = `${Ke.class}__content ${i} ${u}`;
6631
+ return /* @__PURE__ */ R("div", { className: Ke.class, children: [
6576
6632
  /* @__PURE__ */ c("div", { className: d, children: t }),
6577
6633
  /* @__PURE__ */ c("div", { className: h, children: e })
6578
6634
  ] });
6579
6635
  };
6580
- dr.displayName = "DsSplitLayout";
6636
+ mr.displayName = "DsSplitLayout";
6581
6637
  const at = {
6582
6638
  name: "TwoColumns",
6583
6639
  class: "ds-two-columns",
@@ -6587,11 +6643,11 @@ const at = {
6587
6643
  main: e,
6588
6644
  sidebar: s,
6589
6645
  breadcrumb: n
6590
- }) => /* @__PURE__ */ I(Mt, { children: [
6591
- /* @__PURE__ */ I("div", { className: "ds-grid", children: [
6646
+ }) => /* @__PURE__ */ R(Mt, { children: [
6647
+ /* @__PURE__ */ R("div", { className: "ds-grid", children: [
6592
6648
  /* @__PURE__ */ c("div", { className: "ds-grid__row", children: /* @__PURE__ */ c("div", { className: "ds-grid__col ds-grid__col-12", children: n }) }),
6593
- /* @__PURE__ */ I("div", { className: `${at.class}__content ds-grid__row`, children: [
6594
- /* @__PURE__ */ I("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: [
6649
+ /* @__PURE__ */ R("div", { className: `${at.class}__content ds-grid__row`, children: [
6650
+ /* @__PURE__ */ R("div", { className: "ds-grid__col ds-grid__col--lg-8 ds-grid__col--sm-12 ds-grid__col-12", children: [
6595
6651
  /* @__PURE__ */ c("div", { className: `${at.class}__header`, children: t }),
6596
6652
  /* @__PURE__ */ c("div", { className: `${at.class}__main`, children: e })
6597
6653
  ] }),
@@ -6604,7 +6660,7 @@ const at = {
6604
6660
  )
6605
6661
  ] })
6606
6662
  ] }),
6607
- /* @__PURE__ */ c(ge, { vertical: "sm" })
6663
+ /* @__PURE__ */ c(_e, { vertical: "sm" })
6608
6664
  ] });
6609
6665
  yn.propTypes = {
6610
6666
  breadcrumb: o.node,
@@ -6615,30 +6671,30 @@ yn.propTypes = {
6615
6671
  yn.displayName = "DsTwoColumns";
6616
6672
  export {
6617
6673
  rs as ButtonColor,
6618
- In as ButtonElevation,
6674
+ Bn as ButtonElevation,
6619
6675
  os as ButtonIconPosition,
6620
6676
  is as ButtonSize,
6621
6677
  as as ButtonVariant,
6622
6678
  Ft as CardColor,
6623
- Bn as CardElevation,
6679
+ Vn as CardElevation,
6624
6680
  rn as DsAccordion,
6625
6681
  Vt as DsAccordionItem,
6626
- sr as DsActiveTags,
6682
+ ar as DsActiveTags,
6627
6683
  ut as DsButton,
6628
6684
  ps as DsCaption,
6629
6685
  hs as DsCard,
6630
- nr as DsCarousel,
6686
+ ir as DsCarousel,
6631
6687
  fs as DsCheckbox,
6632
6688
  Mt as DsContainer,
6633
- rr as DsEditableSelect,
6634
- ne as DsFlexElement,
6635
- Me as DsFlexLayout,
6636
- tr as DsGridElement,
6689
+ ur as DsEditableSelect,
6690
+ ae as DsFlexElement,
6691
+ Ve as DsFlexLayout,
6692
+ rr as DsGridElement,
6637
6693
  nn as DsGridLayout,
6638
6694
  _s as DsHR,
6639
6695
  Nt as DsHeading,
6640
- G as DsIcon,
6641
- vr as DsIndicator,
6696
+ Z as DsIcon,
6697
+ Er as DsIndicator,
6642
6698
  on as DsInlineEditable,
6643
6699
  et as DsInput,
6644
6700
  $t as DsLoading,
@@ -6646,20 +6702,20 @@ export {
6646
6702
  hn as DsNotification,
6647
6703
  _n as DsNotificationList,
6648
6704
  $s as DsOption,
6649
- Ie as DsParagraph,
6705
+ Ne as DsParagraph,
6650
6706
  fn as DsPasswordConfirmation,
6651
6707
  zs as DsProgress,
6652
6708
  Ks as DsSelect,
6653
- ge as DsSpacer,
6654
- dr as DsSplitLayout,
6655
- or as DsStepper,
6656
- Jn as DsSubtitle,
6657
- lr as DsTable,
6658
- _r as DsTabs,
6709
+ _e as DsSpacer,
6710
+ mr as DsSplitLayout,
6711
+ pr as DsStepper,
6712
+ sr as DsSubtitle,
6713
+ hr as DsTable,
6714
+ Sr as DsTabs,
6659
6715
  tn as DsTextArea,
6660
- He as DsTooltip,
6716
+ We as DsTooltip,
6661
6717
  yn as DsTwoColumns,
6662
- Ze as DsWrapper,
6718
+ Qe as DsWrapper,
6663
6719
  an as EditableSelectSize,
6664
6720
  js as FlexLayoutAlignItems,
6665
6721
  Ps as FlexLayoutDirection,
@@ -6677,12 +6733,12 @@ export {
6677
6733
  ds as IconWeight,
6678
6734
  Ts as InputSize,
6679
6735
  Fs as InputStatus,
6680
- Os as InputTooltipPlacement,
6681
- Ds as InputTooltipPosition,
6736
+ Ds as InputTooltipPlacement,
6737
+ Os as InputTooltipPosition,
6682
6738
  As as InputType,
6683
6739
  Bs as LoadingBackgroundColor,
6684
6740
  Ns as LoadingSize,
6685
- ir as ModalElevation,
6741
+ dr as ModalElevation,
6686
6742
  ln as ModalVariant,
6687
6743
  vn as NotificationListPosition,
6688
6744
  cn as NotificationType,
@@ -6693,53 +6749,53 @@ export {
6693
6749
  Ws as SelectStatus,
6694
6750
  Ys as SelectTooltipPlacement,
6695
6751
  Xs as SelectTooltipPosition,
6696
- Dt as SpacerSize,
6752
+ Ot as SpacerSize,
6697
6753
  Gs as SubtitleType,
6698
6754
  mn as TabsColor,
6699
6755
  en as TextAreaResize,
6700
6756
  Zs as TextAreaSize,
6701
6757
  Js as TextAreaStatus,
6702
6758
  Qs as TextAreaType,
6703
- cr as ThemeProvider,
6759
+ gr as ThemeProvider,
6704
6760
  Rs as TooltipPlacement,
6705
6761
  Is as TooltipPosition,
6706
6762
  ze as WrapperSpace,
6707
6763
  wt as accordionConfig,
6708
6764
  Ue as accordionItemConfig,
6709
- mr as activeTagsConfig,
6710
- Y as buttonConfig,
6711
- Nn as captionConfig,
6712
- Ne as cardConfig,
6713
- We as carouselConfig,
6714
- ie as checkboxConfig,
6765
+ br as activeTagsConfig,
6766
+ X as buttonConfig,
6767
+ Mn as captionConfig,
6768
+ Be as cardConfig,
6769
+ Ye as carouselConfig,
6770
+ de as checkboxConfig,
6715
6771
  nt as containerConfig,
6716
- W as editableSelectConfig,
6772
+ Y as editableSelectConfig,
6717
6773
  Ct as flexElementConfig,
6718
6774
  Le as flexLayoutConfig,
6719
- gr as gridElementConfig,
6775
+ kr as gridElementConfig,
6720
6776
  ee as gridLayoutConfig,
6721
- Ke as headingConfig,
6777
+ Ge as headingConfig,
6722
6778
  Pe as horizontalRuleConfig,
6723
- pe as iconConfig,
6724
- Ye as indicatorConfig,
6725
- ar as inlineEditableConfig,
6779
+ fe as iconConfig,
6780
+ Xe as indicatorConfig,
6781
+ cr as inlineEditableConfig,
6726
6782
  K as inputConfig,
6727
- de as loadingConfig,
6728
- fe as modalConfig,
6729
- le as notificationConfig,
6783
+ he as loadingConfig,
6784
+ me as modalConfig,
6785
+ pe as notificationConfig,
6730
6786
  je as notificationListConfig,
6731
- Fe as optionConfig,
6787
+ Oe as optionConfig,
6732
6788
  ot as paragraphConfig,
6733
6789
  At as passwordConfirmationConfig,
6734
6790
  Jt as progressConfig,
6735
- Z as selectConfig,
6736
- Ge as spacerConfig,
6737
- ye as stepperConfig,
6791
+ Q as selectConfig,
6792
+ Ze as spacerConfig,
6793
+ Ee as stepperConfig,
6738
6794
  xt as subtitleConfig,
6739
- Ce as tableConfig,
6740
- Be as tabsConfig,
6741
- se as textAreaConfig,
6742
- Se as tooltipConfig,
6795
+ Ae as tableConfig,
6796
+ $e as tabsConfig,
6797
+ ne as textAreaConfig,
6798
+ we as tooltipConfig,
6743
6799
  at as twoColumnsConfig,
6744
- _e as wrapperConfig
6800
+ be as wrapperConfig
6745
6801
  };