skillgrid 0.0.28 → 0.0.29-dev-39184-segmented-control-and-tag-updates.1186340

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as Vt from "react";
2
- import _t, { forwardRef as X, Fragment as Oe, useState as de, useEffect as oe, useRef as Be, useCallback as Se, useMemo as Er, createContext as Ht, useContext as Gt, useLayoutEffect as jr, useImperativeHandle as kr, useId as pt } from "react";
2
+ import _t, { forwardRef as X, Fragment as Oe, useState as ce, useEffect as de, useRef as qe, useCallback as Le, useMemo as jr, createContext as Ht, useContext as Gt, useLayoutEffect as Zt, useImperativeHandle as kr, useId as pt } from "react";
3
3
  import { clsx as k } from "clsx";
4
4
  import $r from "rc-tooltip";
5
5
  import './index.css';function Mr(e) {
6
6
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
7
7
  }
8
- var Ge = { exports: {} }, ze = {};
8
+ var Ge = { exports: {} }, Ue = {};
9
9
  /**
10
10
  * @license React
11
11
  * react-jsx-runtime.production.min.js
@@ -17,19 +17,19 @@ var Ge = { exports: {} }, ze = {};
17
17
  */
18
18
  var jt;
19
19
  function Ir() {
20
- if (jt) return ze;
20
+ if (jt) return Ue;
21
21
  jt = 1;
22
22
  var e = _t, a = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
23
- function l(d, c, f) {
24
- var p, h = {}, y = null, b = null;
25
- f !== void 0 && (y = "" + f), c.key !== void 0 && (y = "" + c.key), c.ref !== void 0 && (b = c.ref);
26
- for (p in c) s.call(c, p) && !o.hasOwnProperty(p) && (h[p] = c[p]);
27
- if (d && d.defaultProps) for (p in c = d.defaultProps, c) h[p] === void 0 && (h[p] = c[p]);
28
- return { $$typeof: a, type: d, key: y, ref: b, props: h, _owner: i.current };
23
+ function l(d, c, p) {
24
+ var f, g = {}, m = null, h = null;
25
+ p !== void 0 && (m = "" + p), c.key !== void 0 && (m = "" + c.key), c.ref !== void 0 && (h = c.ref);
26
+ for (f in c) s.call(c, f) && !o.hasOwnProperty(f) && (g[f] = c[f]);
27
+ if (d && d.defaultProps) for (f in c = d.defaultProps, c) g[f] === void 0 && (g[f] = c[f]);
28
+ return { $$typeof: a, type: d, key: m, ref: h, props: g, _owner: i.current };
29
29
  }
30
- return ze.Fragment = r, ze.jsx = l, ze.jsxs = l, ze;
30
+ return Ue.Fragment = r, Ue.jsx = l, Ue.jsxs = l, Ue;
31
31
  }
32
- var Ue = {};
32
+ var ze = {};
33
33
  /**
34
34
  * @license React
35
35
  * react-jsx-runtime.development.js
@@ -42,46 +42,46 @@ var Ue = {};
42
42
  var kt;
43
43
  function Rr() {
44
44
  return kt || (kt = 1, process.env.NODE_ENV !== "production" && function() {
45
- var e = _t, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), m = Symbol.iterator, S = "@@iterator";
45
+ var e = _t, a = Symbol.for("react.element"), r = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), y = Symbol.iterator, S = "@@iterator";
46
46
  function v(t) {
47
47
  if (t === null || typeof t != "object")
48
48
  return null;
49
- var u = m && t[m] || t[S];
49
+ var u = y && t[y] || t[S];
50
50
  return typeof u == "function" ? u : null;
51
51
  }
52
52
  var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
53
53
  function _(t) {
54
54
  {
55
- for (var u = arguments.length, g = new Array(u > 1 ? u - 1 : 0), E = 1; E < u; E++)
56
- g[E - 1] = arguments[E];
57
- w("error", t, g);
55
+ for (var u = arguments.length, b = new Array(u > 1 ? u - 1 : 0), E = 1; E < u; E++)
56
+ b[E - 1] = arguments[E];
57
+ w("error", t, b);
58
58
  }
59
59
  }
60
- function w(t, u, g) {
60
+ function w(t, u, b) {
61
61
  {
62
- var E = x.ReactDebugCurrentFrame, P = E.getStackAddendum();
63
- P !== "" && (u += "%s", g = g.concat([P]));
64
- var q = g.map(function(T) {
65
- return String(T);
62
+ var E = x.ReactDebugCurrentFrame, q = E.getStackAddendum();
63
+ q !== "" && (u += "%s", b = b.concat([q]));
64
+ var U = b.map(function(N) {
65
+ return String(N);
66
66
  });
67
- q.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, q);
67
+ U.unshift("Warning: " + u), Function.prototype.apply.call(console[t], console, U);
68
68
  }
69
69
  }
70
- var L = !1, $ = !1, j = !1, M = !1, A = !1, D;
70
+ var L = !1, M = !1, j = !1, $ = !1, R = !1, D;
71
71
  D = Symbol.for("react.module.reference");
72
- function z(t) {
73
- return !!(typeof t == "string" || typeof t == "function" || t === s || t === o || A || t === i || t === f || t === p || M || t === b || L || $ || j || typeof t == "object" && t !== null && (t.$$typeof === y || t.$$typeof === h || t.$$typeof === l || t.$$typeof === d || t.$$typeof === c || // This needs to include all possible module reference object
72
+ function P(t) {
73
+ return !!(typeof t == "string" || typeof t == "function" || t === s || t === o || R || t === i || t === p || t === f || $ || t === h || L || M || j || typeof t == "object" && t !== null && (t.$$typeof === m || t.$$typeof === g || t.$$typeof === l || t.$$typeof === d || t.$$typeof === c || // This needs to include all possible module reference object
74
74
  // types supported by any Flight configuration anywhere since
75
75
  // we don't know which Flight build this will end up being used
76
76
  // with.
77
77
  t.$$typeof === D || t.getModuleId !== void 0));
78
78
  }
79
- function F(t, u, g) {
79
+ function F(t, u, b) {
80
80
  var E = t.displayName;
81
81
  if (E)
82
82
  return E;
83
- var P = u.displayName || u.name || "";
84
- return P !== "" ? g + "(" + P + ")" : g;
83
+ var q = u.displayName || u.name || "";
84
+ return q !== "" ? b + "(" + q + ")" : b;
85
85
  }
86
86
  function O(t) {
87
87
  return t.displayName || "Context";
@@ -102,9 +102,9 @@ function Rr() {
102
102
  return "Profiler";
103
103
  case i:
104
104
  return "StrictMode";
105
- case f:
106
- return "Suspense";
107
105
  case p:
106
+ return "Suspense";
107
+ case f:
108
108
  return "SuspenseList";
109
109
  }
110
110
  if (typeof t == "object")
@@ -113,17 +113,17 @@ function Rr() {
113
113
  var u = t;
114
114
  return O(u) + ".Consumer";
115
115
  case l:
116
- var g = t;
117
- return O(g._context) + ".Provider";
116
+ var b = t;
117
+ return O(b._context) + ".Provider";
118
118
  case c:
119
119
  return F(t, t.render, "ForwardRef");
120
- case h:
120
+ case g:
121
121
  var E = t.displayName || null;
122
122
  return E !== null ? E : C(t.type) || "Memo";
123
- case y: {
124
- var P = t, q = P._payload, T = P._init;
123
+ case m: {
124
+ var q = t, U = q._payload, N = q._init;
125
125
  try {
126
- return C(T(q));
126
+ return C(N(U));
127
127
  } catch {
128
128
  return null;
129
129
  }
@@ -131,14 +131,14 @@ function Rr() {
131
131
  }
132
132
  return null;
133
133
  }
134
- var R = Object.assign, B = 0, U, V, Q, ie, Z, ue, ee;
134
+ var T = Object.assign, B = 0, z, V, Q, ie, Z, ue, ee;
135
135
  function Ce() {
136
136
  }
137
137
  Ce.__reactDisabledLog = !0;
138
- function qe() {
138
+ function Be() {
139
139
  {
140
140
  if (B === 0) {
141
- U = console.log, V = console.info, Q = console.warn, ie = console.error, Z = console.group, ue = console.groupCollapsed, ee = console.groupEnd;
141
+ z = console.log, V = console.info, Q = console.warn, ie = console.error, Z = console.group, ue = console.groupCollapsed, ee = console.groupEnd;
142
142
  var t = {
143
143
  configurable: !0,
144
144
  enumerable: !0,
@@ -167,25 +167,25 @@ function Rr() {
167
167
  writable: !0
168
168
  };
169
169
  Object.defineProperties(console, {
170
- log: R({}, t, {
171
- value: U
170
+ log: T({}, t, {
171
+ value: z
172
172
  }),
173
- info: R({}, t, {
173
+ info: T({}, t, {
174
174
  value: V
175
175
  }),
176
- warn: R({}, t, {
176
+ warn: T({}, t, {
177
177
  value: Q
178
178
  }),
179
- error: R({}, t, {
179
+ error: T({}, t, {
180
180
  value: ie
181
181
  }),
182
- group: R({}, t, {
182
+ group: T({}, t, {
183
183
  value: Z
184
184
  }),
185
- groupCollapsed: R({}, t, {
185
+ groupCollapsed: T({}, t, {
186
186
  value: ue
187
187
  }),
188
- groupEnd: R({}, t, {
188
+ groupEnd: T({}, t, {
189
189
  value: ee
190
190
  })
191
191
  });
@@ -193,62 +193,62 @@ function Rr() {
193
193
  B < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
194
194
  }
195
195
  }
196
- var $e = x.ReactCurrentDispatcher, Me;
197
- function Ee(t, u, g) {
196
+ var Me = x.ReactCurrentDispatcher, Ie;
197
+ function je(t, u, b) {
198
198
  {
199
- if (Me === void 0)
199
+ if (Ie === void 0)
200
200
  try {
201
201
  throw Error();
202
- } catch (P) {
203
- var E = P.stack.trim().match(/\n( *(at )?)/);
204
- Me = E && E[1] || "";
202
+ } catch (q) {
203
+ var E = q.stack.trim().match(/\n( *(at )?)/);
204
+ Ie = E && E[1] || "";
205
205
  }
206
206
  return `
207
- ` + Me + t;
207
+ ` + Ie + t;
208
208
  }
209
209
  }
210
- var We = !1, Ie;
210
+ var We = !1, Re;
211
211
  {
212
212
  var Xe = typeof WeakMap == "function" ? WeakMap : Map;
213
- Ie = new Xe();
213
+ Re = new Xe();
214
214
  }
215
215
  function Ve(t, u) {
216
216
  if (!t || We)
217
217
  return "";
218
218
  {
219
- var g = Ie.get(t);
220
- if (g !== void 0)
221
- return g;
219
+ var b = Re.get(t);
220
+ if (b !== void 0)
221
+ return b;
222
222
  }
223
223
  var E;
224
224
  We = !0;
225
- var P = Error.prepareStackTrace;
225
+ var q = Error.prepareStackTrace;
226
226
  Error.prepareStackTrace = void 0;
227
- var q;
228
- q = $e.current, $e.current = null, qe();
227
+ var U;
228
+ U = Me.current, Me.current = null, Be();
229
229
  try {
230
230
  if (u) {
231
- var T = function() {
231
+ var N = function() {
232
232
  throw Error();
233
233
  };
234
- if (Object.defineProperty(T.prototype, "props", {
234
+ if (Object.defineProperty(N.prototype, "props", {
235
235
  set: function() {
236
236
  throw Error();
237
237
  }
238
238
  }), typeof Reflect == "object" && Reflect.construct) {
239
239
  try {
240
- Reflect.construct(T, []);
240
+ Reflect.construct(N, []);
241
241
  } catch (ae) {
242
242
  E = ae;
243
243
  }
244
- Reflect.construct(t, [], T);
244
+ Reflect.construct(t, [], N);
245
245
  } else {
246
246
  try {
247
- T.call();
247
+ N.call();
248
248
  } catch (ae) {
249
249
  E = ae;
250
250
  }
251
- t.call(T.prototype);
251
+ t.call(N.prototype);
252
252
  }
253
253
  } else {
254
254
  try {
@@ -271,112 +271,112 @@ function Rr() {
271
271
  if (H--, G--, G < 0 || I[H] !== te[G]) {
272
272
  var _e = `
273
273
  ` + I[H].replace(" at new ", " at ");
274
- return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" && Ie.set(t, _e), _e;
274
+ return t.displayName && _e.includes("<anonymous>") && (_e = _e.replace("<anonymous>", t.displayName)), typeof t == "function" && Re.set(t, _e), _e;
275
275
  }
276
276
  while (H >= 1 && G >= 0);
277
277
  break;
278
278
  }
279
279
  }
280
280
  } finally {
281
- We = !1, $e.current = q, me(), Error.prepareStackTrace = P;
281
+ We = !1, Me.current = U, me(), Error.prepareStackTrace = q;
282
282
  }
283
- var Te = t ? t.displayName || t.name : "", je = Te ? Ee(Te) : "";
284
- return typeof t == "function" && Ie.set(t, je), je;
283
+ var Ne = t ? t.displayName || t.name : "", ke = Ne ? je(Ne) : "";
284
+ return typeof t == "function" && Re.set(t, ke), ke;
285
285
  }
286
- function Qe(t, u, g) {
286
+ function Qe(t, u, b) {
287
287
  return Ve(t, !1);
288
288
  }
289
289
  function et(t) {
290
290
  var u = t.prototype;
291
291
  return !!(u && u.isReactComponent);
292
292
  }
293
- function Y(t, u, g) {
293
+ function Y(t, u, b) {
294
294
  if (t == null)
295
295
  return "";
296
296
  if (typeof t == "function")
297
297
  return Ve(t, et(t));
298
298
  if (typeof t == "string")
299
- return Ee(t);
299
+ return je(t);
300
300
  switch (t) {
301
- case f:
302
- return Ee("Suspense");
303
301
  case p:
304
- return Ee("SuspenseList");
302
+ return je("Suspense");
303
+ case f:
304
+ return je("SuspenseList");
305
305
  }
306
306
  if (typeof t == "object")
307
307
  switch (t.$$typeof) {
308
308
  case c:
309
309
  return Qe(t.render);
310
- case h:
311
- return Y(t.type, u, g);
312
- case y: {
313
- var E = t, P = E._payload, q = E._init;
310
+ case g:
311
+ return Y(t.type, u, b);
312
+ case m: {
313
+ var E = t, q = E._payload, U = E._init;
314
314
  try {
315
- return Y(q(P), u, g);
315
+ return Y(U(q), u, b);
316
316
  } catch {
317
317
  }
318
318
  }
319
319
  }
320
320
  return "";
321
321
  }
322
- var J = Object.prototype.hasOwnProperty, be = {}, ft = x.ReactDebugCurrentFrame;
322
+ var J = Object.prototype.hasOwnProperty, he = {}, ft = x.ReactDebugCurrentFrame;
323
323
  function He(t) {
324
324
  if (t) {
325
- var u = t._owner, g = Y(t.type, t._source, u ? u.type : null);
326
- ft.setExtraStackFrame(g);
325
+ var u = t._owner, b = Y(t.type, t._source, u ? u.type : null);
326
+ ft.setExtraStackFrame(b);
327
327
  } else
328
328
  ft.setExtraStackFrame(null);
329
329
  }
330
- function sr(t, u, g, E, P) {
330
+ function nr(t, u, b, E, q) {
331
331
  {
332
- var q = Function.call.bind(J);
333
- for (var T in t)
334
- if (q(t, T)) {
332
+ var U = Function.call.bind(J);
333
+ for (var N in t)
334
+ if (U(t, N)) {
335
335
  var I = void 0;
336
336
  try {
337
- if (typeof t[T] != "function") {
338
- var te = Error((E || "React class") + ": " + g + " type `" + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[T] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ if (typeof t[N] != "function") {
338
+ var te = Error((E || "React class") + ": " + b + " type `" + N + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[N] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
339
  throw te.name = "Invariant Violation", te;
340
340
  }
341
- I = t[T](u, T, E, g, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ I = t[N](u, N, E, b, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
342
  } catch (H) {
343
343
  I = H;
344
344
  }
345
- I && !(I instanceof Error) && (He(P), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", g, T, typeof I), He(null)), I instanceof Error && !(I.message in be) && (be[I.message] = !0, He(P), _("Failed %s type: %s", g, I.message), He(null));
345
+ I && !(I instanceof Error) && (He(q), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", b, N, typeof I), He(null)), I instanceof Error && !(I.message in he) && (he[I.message] = !0, He(q), _("Failed %s type: %s", b, I.message), He(null));
346
346
  }
347
347
  }
348
348
  }
349
- var nr = Array.isArray;
349
+ var or = Array.isArray;
350
350
  function tt(t) {
351
- return nr(t);
351
+ return or(t);
352
352
  }
353
- function or(t) {
353
+ function ir(t) {
354
354
  {
355
- var u = typeof Symbol == "function" && Symbol.toStringTag, g = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
356
- return g;
355
+ var u = typeof Symbol == "function" && Symbol.toStringTag, b = u && t[Symbol.toStringTag] || t.constructor.name || "Object";
356
+ return b;
357
357
  }
358
358
  }
359
- function ir(t) {
359
+ function lr(t) {
360
360
  try {
361
- return ht(t), !1;
361
+ return gt(t), !1;
362
362
  } catch {
363
363
  return !0;
364
364
  }
365
365
  }
366
- function ht(t) {
366
+ function gt(t) {
367
367
  return "" + t;
368
368
  }
369
- function bt(t) {
370
- if (ir(t))
371
- return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", or(t)), ht(t);
369
+ function ht(t) {
370
+ if (lr(t))
371
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ir(t)), gt(t);
372
372
  }
373
- var gt = x.ReactCurrentOwner, lr = {
373
+ var bt = x.ReactCurrentOwner, cr = {
374
374
  key: !0,
375
375
  ref: !0,
376
376
  __self: !0,
377
377
  __source: !0
378
378
  }, mt, yt;
379
- function cr(t) {
379
+ function dr(t) {
380
380
  if (J.call(t, "ref")) {
381
381
  var u = Object.getOwnPropertyDescriptor(t, "ref").get;
382
382
  if (u && u.isReactWarning)
@@ -384,7 +384,7 @@ function Rr() {
384
384
  }
385
385
  return t.ref !== void 0;
386
386
  }
387
- function dr(t) {
387
+ function ur(t) {
388
388
  if (J.call(t, "key")) {
389
389
  var u = Object.getOwnPropertyDescriptor(t, "key").get;
390
390
  if (u && u.isReactWarning)
@@ -392,42 +392,42 @@ function Rr() {
392
392
  }
393
393
  return t.key !== void 0;
394
394
  }
395
- function ur(t, u) {
396
- typeof t.ref == "string" && gt.current;
397
- }
398
395
  function _r(t, u) {
396
+ typeof t.ref == "string" && bt.current;
397
+ }
398
+ function pr(t, u) {
399
399
  {
400
- var g = function() {
400
+ var b = function() {
401
401
  mt || (mt = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
402
402
  };
403
- g.isReactWarning = !0, Object.defineProperty(t, "key", {
404
- get: g,
403
+ b.isReactWarning = !0, Object.defineProperty(t, "key", {
404
+ get: b,
405
405
  configurable: !0
406
406
  });
407
407
  }
408
408
  }
409
- function pr(t, u) {
409
+ function fr(t, u) {
410
410
  {
411
- var g = function() {
411
+ var b = function() {
412
412
  yt || (yt = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", u));
413
413
  };
414
- g.isReactWarning = !0, Object.defineProperty(t, "ref", {
415
- get: g,
414
+ b.isReactWarning = !0, Object.defineProperty(t, "ref", {
415
+ get: b,
416
416
  configurable: !0
417
417
  });
418
418
  }
419
419
  }
420
- var fr = function(t, u, g, E, P, q, T) {
420
+ var gr = function(t, u, b, E, q, U, N) {
421
421
  var I = {
422
422
  // This tag allows us to uniquely identify this as a React Element
423
423
  $$typeof: a,
424
424
  // Built-in properties that belong on the element
425
425
  type: t,
426
426
  key: u,
427
- ref: g,
428
- props: T,
427
+ ref: b,
428
+ props: N,
429
429
  // Record the component responsible for creating this element.
430
- _owner: q
430
+ _owner: U
431
431
  };
432
432
  return I._store = {}, Object.defineProperty(I._store, "validated", {
433
433
  configurable: !1,
@@ -443,32 +443,32 @@ function Rr() {
443
443
  configurable: !1,
444
444
  enumerable: !1,
445
445
  writable: !1,
446
- value: P
446
+ value: q
447
447
  }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
448
448
  };
449
- function hr(t, u, g, E, P) {
449
+ function hr(t, u, b, E, q) {
450
450
  {
451
- var q, T = {}, I = null, te = null;
452
- g !== void 0 && (bt(g), I = "" + g), dr(u) && (bt(u.key), I = "" + u.key), cr(u) && (te = u.ref, ur(u, P));
453
- for (q in u)
454
- J.call(u, q) && !lr.hasOwnProperty(q) && (T[q] = u[q]);
451
+ var U, N = {}, I = null, te = null;
452
+ b !== void 0 && (ht(b), I = "" + b), ur(u) && (ht(u.key), I = "" + u.key), dr(u) && (te = u.ref, _r(u, q));
453
+ for (U in u)
454
+ J.call(u, U) && !cr.hasOwnProperty(U) && (N[U] = u[U]);
455
455
  if (t && t.defaultProps) {
456
456
  var H = t.defaultProps;
457
- for (q in H)
458
- T[q] === void 0 && (T[q] = H[q]);
457
+ for (U in H)
458
+ N[U] === void 0 && (N[U] = H[U]);
459
459
  }
460
460
  if (I || te) {
461
461
  var G = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
462
- I && _r(T, G), te && pr(T, G);
462
+ I && pr(N, G), te && fr(N, G);
463
463
  }
464
- return fr(t, I, te, P, E, gt.current, T);
464
+ return gr(t, I, te, q, E, bt.current, N);
465
465
  }
466
466
  }
467
467
  var rt = x.ReactCurrentOwner, vt = x.ReactDebugCurrentFrame;
468
- function Re(t) {
468
+ function Te(t) {
469
469
  if (t) {
470
- var u = t._owner, g = Y(t.type, t._source, u ? u.type : null);
471
- vt.setExtraStackFrame(g);
470
+ var u = t._owner, b = Y(t.type, t._source, u ? u.type : null);
471
+ vt.setExtraStackFrame(b);
472
472
  } else
473
473
  vt.setExtraStackFrame(null);
474
474
  }
@@ -493,14 +493,14 @@ Check the render method of \`` + t + "`.";
493
493
  return "";
494
494
  }
495
495
  var wt = {};
496
- function gr(t) {
496
+ function mr(t) {
497
497
  {
498
498
  var u = xt();
499
499
  if (!u) {
500
- var g = typeof t == "string" ? t : t.displayName || t.name;
501
- g && (u = `
500
+ var b = typeof t == "string" ? t : t.displayName || t.name;
501
+ b && (u = `
502
502
 
503
- Check the top-level render call using <` + g + ">.");
503
+ Check the top-level render call using <` + b + ">.");
504
504
  }
505
505
  return u;
506
506
  }
@@ -510,12 +510,12 @@ Check the top-level render call using <` + g + ">.");
510
510
  if (!t._store || t._store.validated || t.key != null)
511
511
  return;
512
512
  t._store.validated = !0;
513
- var g = gr(u);
514
- if (wt[g])
513
+ var b = mr(u);
514
+ if (wt[b])
515
515
  return;
516
- wt[g] = !0;
516
+ wt[b] = !0;
517
517
  var E = "";
518
- t && t._owner && t._owner !== rt.current && (E = " It was passed a child from " + C(t._owner.type) + "."), Re(t), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', g, E), Re(null);
518
+ t && t._owner && t._owner !== rt.current && (E = " It was passed a child from " + C(t._owner.type) + "."), Te(t), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', b, E), Te(null);
519
519
  }
520
520
  }
521
521
  function St(t, u) {
@@ -523,62 +523,62 @@ Check the top-level render call using <` + g + ">.");
523
523
  if (typeof t != "object")
524
524
  return;
525
525
  if (tt(t))
526
- for (var g = 0; g < t.length; g++) {
527
- var E = t[g];
526
+ for (var b = 0; b < t.length; b++) {
527
+ var E = t[b];
528
528
  st(E) && Ct(E, u);
529
529
  }
530
530
  else if (st(t))
531
531
  t._store && (t._store.validated = !0);
532
532
  else if (t) {
533
- var P = v(t);
534
- if (typeof P == "function" && P !== t.entries)
535
- for (var q = P.call(t), T; !(T = q.next()).done; )
536
- st(T.value) && Ct(T.value, u);
533
+ var q = v(t);
534
+ if (typeof q == "function" && q !== t.entries)
535
+ for (var U = q.call(t), N; !(N = U.next()).done; )
536
+ st(N.value) && Ct(N.value, u);
537
537
  }
538
538
  }
539
539
  }
540
- function mr(t) {
540
+ function yr(t) {
541
541
  {
542
542
  var u = t.type;
543
543
  if (u == null || typeof u == "string")
544
544
  return;
545
- var g;
545
+ var b;
546
546
  if (typeof u == "function")
547
- g = u.propTypes;
547
+ b = u.propTypes;
548
548
  else if (typeof u == "object" && (u.$$typeof === c || // Note: Memo only checks outer props here.
549
549
  // Inner props are checked in the reconciler.
550
- u.$$typeof === h))
551
- g = u.propTypes;
550
+ u.$$typeof === g))
551
+ b = u.propTypes;
552
552
  else
553
553
  return;
554
- if (g) {
554
+ if (b) {
555
555
  var E = C(u);
556
- sr(g, t.props, "prop", E, t);
556
+ nr(b, t.props, "prop", E, t);
557
557
  } else if (u.PropTypes !== void 0 && !at) {
558
558
  at = !0;
559
- var P = C(u);
560
- _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", P || "Unknown");
559
+ var q = C(u);
560
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", q || "Unknown");
561
561
  }
562
562
  typeof u.getDefaultProps == "function" && !u.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
563
563
  }
564
564
  }
565
- function yr(t) {
565
+ function vr(t) {
566
566
  {
567
- for (var u = Object.keys(t.props), g = 0; g < u.length; g++) {
568
- var E = u[g];
567
+ for (var u = Object.keys(t.props), b = 0; b < u.length; b++) {
568
+ var E = u[b];
569
569
  if (E !== "children" && E !== "key") {
570
- Re(t), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Re(null);
570
+ Te(t), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Te(null);
571
571
  break;
572
572
  }
573
573
  }
574
- t.ref !== null && (Re(t), _("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
574
+ t.ref !== null && (Te(t), _("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
575
575
  }
576
576
  }
577
577
  var Lt = {};
578
- function Et(t, u, g, E, P, q) {
578
+ function Et(t, u, b, E, q, U) {
579
579
  {
580
- var T = z(t);
581
- if (!T) {
580
+ var N = P(t);
581
+ if (!N) {
582
582
  var I = "";
583
583
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (I += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
584
584
  var te = br();
@@ -586,16 +586,16 @@ Check the top-level render call using <` + g + ">.");
586
586
  var H;
587
587
  t === null ? H = "null" : tt(t) ? H = "array" : t !== void 0 && t.$$typeof === a ? (H = "<" + (C(t.type) || "Unknown") + " />", I = " Did you accidentally export a JSX literal instead of a component?") : H = typeof t, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, I);
588
588
  }
589
- var G = hr(t, u, g, P, q);
589
+ var G = hr(t, u, b, q, U);
590
590
  if (G == null)
591
591
  return G;
592
- if (T) {
592
+ if (N) {
593
593
  var _e = u.children;
594
594
  if (_e !== void 0)
595
595
  if (E)
596
596
  if (tt(_e)) {
597
- for (var Te = 0; Te < _e.length; Te++)
598
- St(_e[Te], t);
597
+ for (var Ne = 0; Ne < _e.length; Ne++)
598
+ St(_e[Ne], t);
599
599
  Object.freeze && Object.freeze(_e);
600
600
  } else
601
601
  _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
@@ -603,45 +603,45 @@ Check the top-level render call using <` + g + ">.");
603
603
  St(_e, t);
604
604
  }
605
605
  if (J.call(u, "key")) {
606
- var je = C(t), ae = Object.keys(u).filter(function(Lr) {
607
- return Lr !== "key";
606
+ var ke = C(t), ae = Object.keys(u).filter(function(Er) {
607
+ return Er !== "key";
608
608
  }), nt = ae.length > 0 ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}";
609
- if (!Lt[je + nt]) {
610
- var Sr = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
609
+ if (!Lt[ke + nt]) {
610
+ var Lr = ae.length > 0 ? "{" + ae.join(": ..., ") + ": ...}" : "{}";
611
611
  _(`A props object containing a "key" prop is being spread into JSX:
612
612
  let props = %s;
613
613
  <%s {...props} />
614
614
  React keys must be passed directly to JSX without using spread:
615
615
  let props = %s;
616
- <%s key={someKey} {...props} />`, nt, je, Sr, je), Lt[je + nt] = !0;
616
+ <%s key={someKey} {...props} />`, nt, ke, Lr, ke), Lt[ke + nt] = !0;
617
617
  }
618
618
  }
619
- return t === s ? yr(G) : mr(G), G;
619
+ return t === s ? vr(G) : yr(G), G;
620
620
  }
621
621
  }
622
- function vr(t, u, g) {
623
- return Et(t, u, g, !0);
622
+ function xr(t, u, b) {
623
+ return Et(t, u, b, !0);
624
624
  }
625
- function xr(t, u, g) {
626
- return Et(t, u, g, !1);
625
+ function wr(t, u, b) {
626
+ return Et(t, u, b, !1);
627
627
  }
628
- var wr = xr, Cr = vr;
629
- Ue.Fragment = s, Ue.jsx = wr, Ue.jsxs = Cr;
630
- }()), Ue;
628
+ var Cr = wr, Sr = xr;
629
+ ze.Fragment = s, ze.jsx = Cr, ze.jsxs = Sr;
630
+ }()), ze;
631
631
  }
632
632
  var $t;
633
633
  function Tr() {
634
634
  return $t || ($t = 1, process.env.NODE_ENV === "production" ? Ge.exports = Ir() : Ge.exports = Rr()), Ge.exports;
635
635
  }
636
636
  var n = Tr();
637
- const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button", Ne = (e) => e.displayAs === void 0 || e.displayAs === "button", ot = (e) => e.displayAs === "link", Dr = "_button_6bymk_1", Or = "_link_6bymk_17", Pr = "_disabled_6bymk_22", Br = "_loading_6bymk_22", qr = "_neutral_6bymk_50", zr = "_accent_6bymk_54", Ur = "_positive_6bymk_58", Fr = "_negative_6bymk_62", Wr = "_contrast_6bymk_66", Vr = "_special_6bymk_70", Hr = "_primary_6bymk_74", Gr = "_secondary_6bymk_75", Zr = "_tertiary_6bymk_76", Yr = "_spaceBetween_6bymk_116", Jr = "_rightGroup_6bymk_116", Kr = "_label_6bymk_136", Xr = "_iconOnly_6bymk_155", Qr = "_stretched_6bymk_171", ea = "_icon_6bymk_155", ta = "_postfix_6bymk_176", ra = "_underline_6bymk_202", aa = "_warning_6bymk_1082", sa = "_withSubcaption_6bymk_1268", na = "_subcaption_6bymk_1273", oa = "_loader_6bymk_1279", ia = "_spin_6bymk_1", la = "_l_6bymk_17", ca = "_m_6bymk_1318", da = "_s_6bymk_70", ua = "_xs_6bymk_1364", _a = "_iconRight_6bymk_1410", W = {
637
+ const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button", Ae = (e) => e.displayAs === void 0 || e.displayAs === "button", ot = (e) => e.displayAs === "link", Dr = "_button_6bymk_1", Or = "_link_6bymk_17", Pr = "_disabled_6bymk_22", qr = "_loading_6bymk_22", Br = "_neutral_6bymk_50", Ur = "_accent_6bymk_54", zr = "_positive_6bymk_58", Fr = "_negative_6bymk_62", Wr = "_contrast_6bymk_66", Vr = "_special_6bymk_70", Hr = "_primary_6bymk_74", Gr = "_secondary_6bymk_75", Zr = "_tertiary_6bymk_76", Yr = "_spaceBetween_6bymk_116", Jr = "_rightGroup_6bymk_116", Kr = "_label_6bymk_136", Xr = "_iconOnly_6bymk_155", Qr = "_stretched_6bymk_171", ea = "_icon_6bymk_155", ta = "_postfix_6bymk_176", ra = "_underline_6bymk_202", aa = "_warning_6bymk_1082", sa = "_withSubcaption_6bymk_1268", na = "_subcaption_6bymk_1273", oa = "_loader_6bymk_1279", ia = "_spin_6bymk_1", la = "_l_6bymk_17", ca = "_m_6bymk_1318", da = "_s_6bymk_70", ua = "_xs_6bymk_1364", _a = "_iconRight_6bymk_1410", W = {
638
638
  button: Dr,
639
639
  link: Or,
640
640
  disabled: Pr,
641
- loading: Br,
642
- neutral: qr,
643
- accent: zr,
644
- positive: Ur,
641
+ loading: qr,
642
+ neutral: Br,
643
+ accent: Ur,
644
+ positive: zr,
645
645
  negative: Fr,
646
646
  contrast: Wr,
647
647
  special: Vr,
@@ -693,10 +693,10 @@ const Nr = (e) => e.as === "a", Ar = (e) => e.as === void 0 || e.as === "button"
693
693
  m: "typography-label-2-regular",
694
694
  s: "typography-label-3-regular"
695
695
  };
696
- function ha(e) {
696
+ function ga(e) {
697
697
  return fa[e] || "typography-label-2-regular";
698
698
  }
699
- const ce = {
699
+ const oe = {
700
700
  "typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
701
701
  "typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
702
702
  "typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
@@ -732,13 +732,13 @@ const ce = {
732
732
  }) => {
733
733
  if (e && d)
734
734
  return /* @__PURE__ */ n.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
735
- const c = a && d || a && !d && l, f = o && d && l !== "s" && l !== "xs";
735
+ const c = a && d || a && !d && l, p = o && d && l !== "s" && l !== "xs";
736
736
  return /* @__PURE__ */ n.jsxs(Oe, { children: [
737
- f && /* @__PURE__ */ n.jsxs(Oe, { children: [
737
+ p && /* @__PURE__ */ n.jsxs(Oe, { children: [
738
738
  /* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: s }),
739
739
  /* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: o })
740
740
  ] }),
741
- !f && s && /* @__PURE__ */ n.jsxs(Oe, { children: [
741
+ !p && s && /* @__PURE__ */ n.jsxs(Oe, { children: [
742
742
  /* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
743
743
  !d && r && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: r }),
744
744
  s,
@@ -749,48 +749,48 @@ const ce = {
749
749
  i && d && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
750
750
  ] })
751
751
  ] }),
752
- !f && !s && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: a })
752
+ !p && !s && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: a })
753
753
  ] });
754
- }, ba = X((e, a) => {
754
+ }, ha = X((e, a) => {
755
755
  const {
756
756
  mode: r = "primary",
757
757
  size: s = "m",
758
- buttonStyle: i = Ne(e) ? "neutral" : "accent",
758
+ buttonStyle: i = Ae(e) ? "neutral" : "accent",
759
759
  disabled: o = !1,
760
760
  displayAs: l = "button",
761
761
  iconRight: d,
762
762
  className: c,
763
- children: f,
764
- tabIndex: p
765
- } = e, h = Ne(e) ? e.subcaption : void 0, y = Ne(e) ? e.postfix : void 0, b = Ne(e) ? e.stretched : void 0, m = !(ot(e) && e.size === void 0), S = ot(e) && m ? e.iconLeft : void 0, v = !!(l === "button" && "loading" in e && e.loading), x = Ne(e) ? o : o || v, _ = !x && !v, w = m ? d : void 0, L = !!(w && !f), $ = typeof b == "object" ? b.justify === "space-between" : void 0, j = ot(e) ? ha(e.size ?? "m") : void 0, M = j ? ce[j] : void 0, A = x || v ? -1 : p, D = k(
763
+ children: p,
764
+ tabIndex: f
765
+ } = e, g = Ae(e) ? e.subcaption : void 0, m = Ae(e) ? e.postfix : void 0, h = Ae(e) ? e.stretched : void 0, y = !(ot(e) && e.size === void 0), S = ot(e) && y ? e.iconLeft : void 0, v = !!(l === "button" && "loading" in e && e.loading), x = Ae(e) ? o : o || v, _ = !x && !v, w = y ? d : void 0, L = !!(w && !p), M = typeof h == "object" ? h.justify === "space-between" : void 0, j = ot(e) ? ga(e.size ?? "m") : void 0, $ = j ? oe[j] : void 0, R = x || v ? -1 : f, D = k(
766
766
  W.button,
767
767
  W[s],
768
768
  W[r],
769
769
  W[i],
770
- M,
770
+ $,
771
771
  {
772
772
  [W.disabled]: x,
773
773
  [W.loading]: l === "button" && "loading" in e && e.loading,
774
- [W.stretched]: b,
775
- [W.spaceBetween]: $,
776
- [W.withSubcaption]: h && s !== "s" && s !== "xs",
774
+ [W.stretched]: h,
775
+ [W.spaceBetween]: M,
776
+ [W.withSubcaption]: g && s !== "s" && s !== "xs",
777
777
  [W.iconOnly]: L,
778
778
  [W.link]: l === "link",
779
779
  [W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
780
780
  },
781
781
  c
782
- ), z = {
782
+ ), P = {
783
783
  isLoading: v,
784
784
  iconRight: w,
785
785
  iconLeft: S,
786
- children: f,
787
- postfix: y,
788
- subcaption: h,
786
+ children: p,
787
+ postfix: m,
788
+ subcaption: g,
789
789
  size: s,
790
- isAsButton: Ne(e)
790
+ isAsButton: Ae(e)
791
791
  };
792
792
  if (Nr(e)) {
793
- const { href: F, onClick: O, style: C, target: R, rel: B, "data-testid": U, ...V } = e, Q = Mt(V), ie = R ?? (e.isExternal ? "_blank" : void 0);
793
+ const { href: F, onClick: O, style: C, target: T, rel: B, "data-testid": z, ...V } = e, Q = Mt(V), ie = T ?? (e.isExternal ? "_blank" : void 0);
794
794
  let Z = B;
795
795
  if (ie === "_blank") {
796
796
  const ee = new Set((B ?? "").split(/\s+/).filter(Boolean));
@@ -809,20 +809,20 @@ const ce = {
809
809
  ref: a,
810
810
  className: D,
811
811
  href: _ ? F : void 0,
812
- tabIndex: A,
812
+ tabIndex: R,
813
813
  onClick: ue,
814
- "data-testid": U,
814
+ "data-testid": z,
815
815
  "aria-disabled": x || v,
816
816
  style: C,
817
817
  target: ie,
818
818
  rel: Z,
819
819
  ...Q,
820
- children: /* @__PURE__ */ n.jsx(It, { ...z })
820
+ children: /* @__PURE__ */ n.jsx(It, { ...P })
821
821
  }
822
822
  );
823
823
  }
824
824
  if (Ar(e)) {
825
- const { type: F = "button", onClick: O, style: C, "data-testid": R, ...B } = e, U = Mt(B), V = (Q) => {
825
+ const { type: F = "button", onClick: O, style: C, "data-testid": T, ...B } = e, z = Mt(B), V = (Q) => {
826
826
  _ && O && O(Q);
827
827
  };
828
828
  return /* @__PURE__ */ n.jsx(
@@ -832,13 +832,13 @@ const ce = {
832
832
  type: F,
833
833
  className: D,
834
834
  disabled: x,
835
- tabIndex: A,
835
+ tabIndex: R,
836
836
  onClick: V,
837
- "data-testid": R,
837
+ "data-testid": T,
838
838
  "aria-disabled": x || v,
839
839
  style: C,
840
- ...U,
841
- children: /* @__PURE__ */ n.jsx(It, { ...z })
840
+ ...z,
841
+ children: /* @__PURE__ */ n.jsx(It, { ...P })
842
842
  }
843
843
  );
844
844
  }
@@ -851,7 +851,7 @@ var it = { exports: {} };
851
851
  http://jedwatson.github.io/classnames
852
852
  */
853
853
  var Rt;
854
- function ga() {
854
+ function ba() {
855
855
  return Rt || (Rt = 1, function(e) {
856
856
  (function() {
857
857
  var a = {}.hasOwnProperty;
@@ -883,8 +883,8 @@ function ga() {
883
883
  })();
884
884
  }(it)), it.exports;
885
885
  }
886
- var ma = ga();
887
- const Le = /* @__PURE__ */ Mr(ma), ya = "_avatar_1kyiq_17", va = "_clickable_1kyiq_41", xa = "_icon_1kyiq_58", wa = "_disabled_1kyiq_63", Ca = "_loading_1kyiq_68", Sa = "_image_1kyiq_74", La = "_name_1kyiq_74", ge = {
886
+ var ma = ba();
887
+ const Ee = /* @__PURE__ */ Mr(ma), ya = "_avatar_1kyiq_17", va = "_clickable_1kyiq_41", xa = "_icon_1kyiq_58", wa = "_disabled_1kyiq_63", Ca = "_loading_1kyiq_68", Sa = "_image_1kyiq_74", La = "_name_1kyiq_74", be = {
888
888
  avatar: ya,
889
889
  clickable: va,
890
890
  icon: xa,
@@ -949,7 +949,7 @@ const Ma = {
949
949
  96: 24,
950
950
  208: 8
951
951
  };
952
- function Zt(e, a) {
952
+ function Yt(e, a) {
953
953
  return a === "circle" ? e / 2 : Ma[e] || 12;
954
954
  }
955
955
  const Ia = {
@@ -980,73 +980,73 @@ const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
980
980
  shape: l = "circle",
981
981
  variant: d = "filled",
982
982
  placeholderType: c = "neutral",
983
- name: f,
984
- imgSrc: p,
985
- imgAlt: h,
986
- icon: y,
987
- imgProps: b,
988
- colorScheme: m,
983
+ name: p,
984
+ imgSrc: f,
985
+ imgAlt: g,
986
+ icon: m,
987
+ imgProps: h,
988
+ colorScheme: y,
989
989
  className: S,
990
990
  "data-testid": v,
991
991
  ...x
992
- } = e, { onClick: _, onPointerDown: w } = x, $ = !o && !i && (!!_ || !!w), [j, M] = de(!1);
993
- oe(() => {
994
- p && M(!1);
995
- }, [p]);
996
- const A = p && !j ? "image" : y ? "icon" : f ? "name" : "placeholder", D = m || A === "name" && ka(f) || "gray", z = Ra(s), F = Zt(s, l), O = k(
992
+ } = e, { onClick: _, onPointerDown: w } = x, M = !o && !i && (!!_ || !!w), [j, $] = ce(!1);
993
+ de(() => {
994
+ f && $(!1);
995
+ }, [f]);
996
+ const R = f && !j ? "image" : m ? "icon" : p ? "name" : "placeholder", D = y || R === "name" && ka(p) || "gray", P = Ra(s), F = Yt(s, l), O = k(
997
997
  S,
998
- ge.avatar,
999
- ge[`variant-${d}`],
1000
- ge[`color-${D}`],
1001
- ce[z],
998
+ be.avatar,
999
+ be[`variant-${d}`],
1000
+ be[`color-${D}`],
1001
+ oe[P],
1002
1002
  {
1003
- [ge.disabled]: o,
1004
- [ge.loading]: i,
1005
- [ge.clickable]: $
1003
+ [be.disabled]: o,
1004
+ [be.loading]: i,
1005
+ [be.clickable]: M
1006
1006
  }
1007
1007
  ), C = {
1008
1008
  "--avatar-size": `${s}px`,
1009
1009
  "--avatar-border-radius": `${F}px`,
1010
1010
  ...r
1011
- }, R = {
1012
- icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: ge.icon, children: y == null ? void 0 : y({}) }),
1011
+ }, T = {
1012
+ icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: g || void 0, role: "img", className: be.icon, children: m == null ? void 0 : m({}) }),
1013
1013
  name: () => /* @__PURE__ */ n.jsx(
1014
1014
  "span",
1015
1015
  {
1016
1016
  role: "textbox",
1017
1017
  "data-testid": "avatar-name",
1018
- className: ge.name,
1019
- title: h || void 0,
1020
- children: $a(f || "")
1018
+ className: be.name,
1019
+ title: g || void 0,
1020
+ children: $a(p || "")
1021
1021
  }
1022
1022
  ),
1023
1023
  placeholder: () => /* @__PURE__ */ n.jsx(
1024
1024
  "img",
1025
1025
  {
1026
- ...b,
1026
+ ...h,
1027
1027
  "data-testid": "avatar-placeholder",
1028
- className: ge.image,
1028
+ className: be.image,
1029
1029
  src: Oa[c],
1030
- alt: h || void 0
1030
+ alt: g || void 0
1031
1031
  }
1032
1032
  ),
1033
1033
  image: () => /* @__PURE__ */ n.jsx(
1034
1034
  "img",
1035
1035
  {
1036
1036
  "data-testid": "avatar-image",
1037
- ...b,
1038
- className: ge.image,
1039
- src: p || void 0,
1040
- alt: h || void 0,
1041
- onLoad: () => M(!1),
1042
- onError: (U) => {
1037
+ ...h,
1038
+ className: be.image,
1039
+ src: f || void 0,
1040
+ alt: g || void 0,
1041
+ onLoad: () => $(!1),
1042
+ onError: (z) => {
1043
1043
  var V;
1044
- M(!0), (V = b == null ? void 0 : b.onError) == null || V.call(b, U);
1044
+ $(!0), (V = h == null ? void 0 : h.onError) == null || V.call(h, z);
1045
1045
  }
1046
1046
  }
1047
1047
  )
1048
- }, B = (U) => {
1049
- $ && (_ == null || _(U));
1048
+ }, B = (z) => {
1049
+ M && (_ == null || _(z));
1050
1050
  };
1051
1051
  return /* @__PURE__ */ n.jsx(
1052
1052
  "div",
@@ -1057,15 +1057,15 @@ const Ta = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
1057
1057
  style: C,
1058
1058
  "data-testid": v,
1059
1059
  "aria-disabled": o || i,
1060
- children: R[A](null)
1060
+ children: T[R](null)
1061
1061
  }
1062
1062
  );
1063
- }), Pa = "_avatarGroup_157g4_1", Ba = {
1063
+ }), Pa = "_avatarGroup_157g4_1", qa = {
1064
1064
  avatarGroup: Pa
1065
1065
  };
1066
- let qa = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((a, r) => (r &= 63, r < 36 ? a += r.toString(36) : r < 62 ? a += (r - 26).toString(36).toUpperCase() : r > 62 ? a += "-" : a += "_", a), "");
1067
- function za(e, a, r, s, i, o, l) {
1068
- const d = Math.min(i, o) / 2, c = Math.min(l, d), f = ["M0,0", `H${e}`, `V${a}`, "H0", "V0", "Z"].join(" "), p = [
1066
+ let Ba = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((a, r) => (r &= 63, r < 36 ? a += r.toString(36) : r < 62 ? a += (r - 26).toString(36).toUpperCase() : r > 62 ? a += "-" : a += "_", a), "");
1067
+ function Ua(e, a, r, s, i, o, l) {
1068
+ const d = Math.min(i, o) / 2, c = Math.min(l, d), p = ["M0,0", `H${e}`, `V${a}`, "H0", "V0", "Z"].join(" "), f = [
1069
1069
  `M${r + c},${s}`,
1070
1070
  `L${r + i - c},${s}`,
1071
1071
  // Верхний правый угол
@@ -1081,9 +1081,9 @@ function za(e, a, r, s, i, o, l) {
1081
1081
  `A${c},${c} 0 0 1 ${r + c},${s}`,
1082
1082
  "Z"
1083
1083
  ].join(" ");
1084
- return `${f} ${p}`;
1084
+ return `${p} ${f}`;
1085
1085
  }
1086
- const Ua = 3, Fa = (e) => {
1086
+ const za = 3, Fa = (e) => {
1087
1087
  const {
1088
1088
  avatars: a = [],
1089
1089
  size: r = 40,
@@ -1091,7 +1091,7 @@ const Ua = 3, Fa = (e) => {
1091
1091
  shape: i = "circle",
1092
1092
  overflowCount: o = 0,
1093
1093
  overflowProps: l
1094
- } = e, d = r * s, c = -d + Ua, f = Zt(r, i), h = Be(qa()).current.toString(), y = Le(Ba.avatarGroup), b = za(
1094
+ } = e, d = r * s, c = -d + za, p = Yt(r, i), g = qe(Ba()).current.toString(), m = Ee(qa.avatarGroup), h = Ua(
1095
1095
  r,
1096
1096
  r,
1097
1097
  r - d,
@@ -1100,24 +1100,24 @@ const Ua = 3, Fa = (e) => {
1100
1100
  // Y-координата начала выреза
1101
1101
  r,
1102
1102
  r,
1103
- f
1103
+ p
1104
1104
  );
1105
- return a.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: y, children: [
1106
- a.map((m, S, v) => {
1105
+ return a.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: m, children: [
1106
+ a.map((y, S, v) => {
1107
1107
  const x = S + 1 >= v.length;
1108
- if (m.wrapper) {
1109
- const _ = m.wrapper;
1108
+ if (y.wrapper) {
1109
+ const _ = y.wrapper;
1110
1110
  return /* @__PURE__ */ n.jsx(
1111
1111
  "div",
1112
1112
  {
1113
1113
  style: {
1114
1114
  // Для последнего видимого аватара без overflowCount не применяем обрезку
1115
- clipPath: x && !o ? void 0 : `url(#${h})`,
1115
+ clipPath: x && !o ? void 0 : `url(#${g})`,
1116
1116
  marginRight: c
1117
1117
  },
1118
- children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...m }) })
1118
+ children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...y }) })
1119
1119
  },
1120
- Ke(m) + S
1120
+ Ke(y) + S
1121
1121
  );
1122
1122
  }
1123
1123
  return /* @__PURE__ */ n.jsx(
@@ -1125,12 +1125,12 @@ const Ua = 3, Fa = (e) => {
1125
1125
  {
1126
1126
  style: {
1127
1127
  // Для последнего видимого аватара без overflowCount не применяем обрезку
1128
- clipPath: x && !o ? void 0 : `url(#${h})`,
1128
+ clipPath: x && !o ? void 0 : `url(#${g})`,
1129
1129
  marginRight: c
1130
1130
  },
1131
- children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...m })
1131
+ children: /* @__PURE__ */ n.jsx(Ye, { size: r, shape: i, ...y })
1132
1132
  },
1133
- Ke(m) + S
1133
+ Ke(y) + S
1134
1134
  );
1135
1135
  }),
1136
1136
  o > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ n.jsx(
@@ -1144,9 +1144,9 @@ const Ua = 3, Fa = (e) => {
1144
1144
  ...l
1145
1145
  }
1146
1146
  ) }),
1147
- /* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ n.jsx("path", { clipPathUnits: "objectBoundingBox", d: b, clipRule: "evenodd" }) }) })
1147
+ /* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ n.jsx("path", { clipPathUnits: "objectBoundingBox", d: h, clipRule: "evenodd" }) }) })
1148
1148
  ] });
1149
- }, Hi = Object.assign(Ye, {
1149
+ }, yl = Object.assign(Ye, {
1150
1150
  Group: Fa
1151
1151
  }), Wa = "_wrapper_ecbsu_5", Va = "_badge__container_ecbsu_6", Ha = "_badge__content_ecbsu_7", Ga = "_interactive_ecbsu_20", Za = "_disabled_ecbsu_21", Ya = "_icon_ecbsu_22", ye = {
1152
1152
  wrapper: Wa,
@@ -1195,9 +1195,9 @@ const Ua = 3, Fa = (e) => {
1195
1195
  a = a.parentElement;
1196
1196
  }
1197
1197
  return null;
1198
- }, Yt = () => {
1199
- const e = Be(null), [a, r] = de(null);
1200
- return oe(() => {
1198
+ }, Jt = () => {
1199
+ const e = qe(null), [a, r] = ce(null);
1200
+ return de(() => {
1201
1201
  if (e.current) {
1202
1202
  const s = Ka(e.current);
1203
1203
  r(s);
@@ -1205,23 +1205,23 @@ const Ua = 3, Fa = (e) => {
1205
1205
  }, []), { ref: e, bgColor: a };
1206
1206
  };
1207
1207
  function At(e, a, r) {
1208
- oe(() => (window.addEventListener(e, a, r), () => window.removeEventListener(e, a, r)), [e, a]);
1208
+ de(() => (window.addEventListener(e, a, r), () => window.removeEventListener(e, a, r)), [e, a]);
1209
1209
  }
1210
1210
  const Dt = {
1211
1211
  passive: !0
1212
1212
  };
1213
1213
  function Xa() {
1214
- const [e, a] = de({
1214
+ const [e, a] = ce({
1215
1215
  width: 0,
1216
1216
  height: 0
1217
- }), r = Se(() => {
1217
+ }), r = Le(() => {
1218
1218
  a({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
1219
1219
  }, []);
1220
- return At("resize", r, Dt), At("orientationchange", r, Dt), oe(r, []), e;
1220
+ return At("resize", r, Dt), At("orientationchange", r, Dt), de(r, []), e;
1221
1221
  }
1222
1222
  function Qa(e = 768) {
1223
1223
  const { width: a } = Xa();
1224
- return Er(() => a <= e, [a, e]);
1224
+ return jr(() => a <= e, [a, e]);
1225
1225
  }
1226
1226
  const es = X((e, a) => {
1227
1227
  const {
@@ -1232,50 +1232,50 @@ const es = X((e, a) => {
1232
1232
  isHidden: l = !1,
1233
1233
  colorScheme: d = "red",
1234
1234
  size: c = 20,
1235
- position: f = "top-right",
1236
- positionOffset: p = { x: 0, y: 0 },
1237
- cutoutBackground: h,
1238
- isDisabled: y,
1239
- className: b,
1240
- "data-testid": m = "badge",
1235
+ position: p = "top-right",
1236
+ positionOffset: f = { x: 0, y: 0 },
1237
+ cutoutBackground: g,
1238
+ isDisabled: m,
1239
+ className: h,
1240
+ "data-testid": y = "badge",
1241
1241
  ...S
1242
- } = e, { onClick: v, onPointerDown: x } = S, { ref: _, bgColor: w } = Yt(), L = h || w, j = !y && (!!v || !!x), M = Le(ye.badge__container, ye[`position-${f}`]), A = Le(
1243
- b,
1242
+ } = e, { onClick: v, onPointerDown: x } = S, { ref: _, bgColor: w } = Jt(), L = g || w, j = !m && (!!v || !!x), $ = Ee(ye.badge__container, ye[`position-${p}`]), R = Ee(
1243
+ h,
1244
1244
  ye.badge__content,
1245
1245
  ye[`color-${d}`],
1246
1246
  ye[`variant-${i}`],
1247
1247
  {
1248
- [ye.disabled]: y,
1248
+ [ye.disabled]: m,
1249
1249
  [ye.icon]: !!r,
1250
1250
  [ye.interactive]: j
1251
1251
  }
1252
1252
  ), D = {
1253
1253
  "--badge-height": `${c}px`,
1254
- "--badge-offset-x": `${p.x}px`,
1255
- "--badge-offset-y": `${p.y}px`,
1254
+ "--badge-offset-x": `${f.x}px`,
1255
+ "--badge-offset-y": `${f.y}px`,
1256
1256
  ...L && { "--badge-cutout-bg": L },
1257
1257
  ...i === "transparent" && { "--badge-cutout-bg": "transparent" }
1258
- }, z = (r == null ? void 0 : r({})) || o, F = (O) => {
1258
+ }, P = (r == null ? void 0 : r({})) || o, F = (O) => {
1259
1259
  j && (v == null || v(O));
1260
1260
  };
1261
- return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: _, "data-testid": m + "-wrapper", children: [
1261
+ return /* @__PURE__ */ n.jsxs("div", { className: ye.wrapper, ref: _, "data-testid": y + "-wrapper", children: [
1262
1262
  s,
1263
1263
  !l && /* @__PURE__ */ n.jsx(
1264
1264
  "span",
1265
1265
  {
1266
- className: M,
1266
+ className: $,
1267
1267
  style: D,
1268
- "data-testid": m + "-container",
1268
+ "data-testid": y + "-container",
1269
1269
  children: /* @__PURE__ */ n.jsx(
1270
1270
  "span",
1271
1271
  {
1272
1272
  ...S,
1273
1273
  onClick: F,
1274
- className: A,
1275
- "data-testid": m + "-content",
1274
+ className: R,
1275
+ "data-testid": y + "-content",
1276
1276
  ref: a,
1277
- "aria-disabled": y,
1278
- children: z
1277
+ "aria-disabled": m,
1278
+ children: P
1279
1279
  }
1280
1280
  )
1281
1281
  }
@@ -1302,7 +1302,7 @@ const es = X((e, a) => {
1302
1302
  "size-48": "_size-48_isv17_80",
1303
1303
  "size-64": "_size-64_isv17_84",
1304
1304
  "size-96": "_size-96_isv17_88"
1305
- }, Jt = X(
1305
+ }, Kt = X(
1306
1306
  ({
1307
1307
  size: e = 24,
1308
1308
  variant: a = "accent",
@@ -1311,7 +1311,7 @@ const es = X((e, a) => {
1311
1311
  style: i,
1312
1312
  ...o
1313
1313
  }, l) => {
1314
- const d = Le(
1314
+ const d = Ee(
1315
1315
  Fe.loader,
1316
1316
  Fe[a],
1317
1317
  Fe[`size-${e}`],
@@ -1340,7 +1340,7 @@ const es = X((e, a) => {
1340
1340
  }
1341
1341
  );
1342
1342
  }
1343
- ), hs = X((e, a) => {
1343
+ ), gs = X((e, a) => {
1344
1344
  const {
1345
1345
  loading: r = !1,
1346
1346
  size: s = 24,
@@ -1349,19 +1349,19 @@ const es = X((e, a) => {
1349
1349
  className: l,
1350
1350
  style: d,
1351
1351
  "data-testid": c,
1352
- ...f
1353
- } = e, p = Le(Fe.container, l);
1354
- return /* @__PURE__ */ n.jsxs("div", { ref: a, className: p, style: d, "data-testid": c, ...f, children: [
1352
+ ...p
1353
+ } = e, f = Ee(Fe.container, l);
1354
+ return /* @__PURE__ */ n.jsxs("div", { ref: a, className: f, style: d, "data-testid": c, ...p, children: [
1355
1355
  o,
1356
- r && /* @__PURE__ */ n.jsx("div", { className: Fe.overlay, children: /* @__PURE__ */ n.jsx(Jt, { size: s, variant: i, "data-testid": `${c}-spinner` }) })
1356
+ r && /* @__PURE__ */ n.jsx("div", { className: Fe.overlay, children: /* @__PURE__ */ n.jsx(Kt, { size: s, variant: i, "data-testid": `${c}-spinner` }) })
1357
1357
  ] });
1358
- }), bs = X((e, a) => e.children ? /* @__PURE__ */ n.jsx(
1359
- hs,
1358
+ }), hs = X((e, a) => e.children ? /* @__PURE__ */ n.jsx(
1359
+ gs,
1360
1360
  {
1361
1361
  ref: a,
1362
1362
  ...e
1363
1363
  }
1364
- ) : /* @__PURE__ */ n.jsx(Jt, { ref: a, ...e })), gs = ({ width: e = 48, height: a = 48, className: r, "data-testid": s }) => /* @__PURE__ */ n.jsx(
1364
+ ) : /* @__PURE__ */ n.jsx(Kt, { ref: a, ...e })), bs = ({ width: e = 48, height: a = 48, className: r, "data-testid": s }) => /* @__PURE__ */ n.jsx(
1365
1365
  "svg",
1366
1366
  {
1367
1367
  width: e,
@@ -1382,7 +1382,7 @@ const es = X((e, a) => {
1382
1382
  }
1383
1383
  )
1384
1384
  }
1385
- ), Gi = X((e, a) => {
1385
+ ), vl = X((e, a) => {
1386
1386
  const {
1387
1387
  alt: r = "",
1388
1388
  loading: s = "lazy",
@@ -1391,27 +1391,27 @@ const es = X((e, a) => {
1391
1391
  className: l,
1392
1392
  "data-testid": d = "image",
1393
1393
  onError: c,
1394
- onLoad: f,
1395
- ...p
1396
- } = e, [h, y] = de("loading"), b = h === "error", m = (o || h === "loading") && !b, S = h === "loaded" && !o, v = Le(
1394
+ onLoad: p,
1395
+ ...f
1396
+ } = e, [g, m] = ce("loading"), h = g === "error", y = (o || g === "loading") && !h, S = g === "loaded" && !o, v = Ee(
1397
1397
  lt.image,
1398
1398
  {
1399
- [lt.loading]: m
1399
+ [lt.loading]: y
1400
1400
  },
1401
1401
  l
1402
- ), x = Se(
1402
+ ), x = Le(
1403
1403
  (L) => {
1404
- y("loaded"), f == null || f(L);
1404
+ m("loaded"), p == null || p(L);
1405
1405
  },
1406
- [f]
1407
- ), _ = Se(
1406
+ [p]
1407
+ ), _ = Le(
1408
1408
  (L) => {
1409
- y("error"), c == null || c(L);
1409
+ m("error"), c == null || c(L);
1410
1410
  },
1411
1411
  [c]
1412
1412
  ), w = {
1413
1413
  loader: /* @__PURE__ */ n.jsxs(Oe, { children: [
1414
- /* @__PURE__ */ n.jsx(bs, { size: 48, variant: "special", "data-testid": `${d}-loader` }),
1414
+ /* @__PURE__ */ n.jsx(hs, { size: 48, variant: "special", "data-testid": `${d}-loader` }),
1415
1415
  /* @__PURE__ */ n.jsx(
1416
1416
  "img",
1417
1417
  {
@@ -1423,7 +1423,7 @@ const es = X((e, a) => {
1423
1423
  }
1424
1424
  )
1425
1425
  ] }),
1426
- error: /* @__PURE__ */ n.jsx(gs, { "data-testid": `${d}-fallback` }),
1426
+ error: /* @__PURE__ */ n.jsx(bs, { "data-testid": `${d}-fallback` }),
1427
1427
  image: /* @__PURE__ */ n.jsx(
1428
1428
  "img",
1429
1429
  {
@@ -1436,33 +1436,56 @@ const es = X((e, a) => {
1436
1436
  }
1437
1437
  )
1438
1438
  };
1439
- return oe(() => {
1439
+ return de(() => {
1440
1440
  if (!i) {
1441
- y("error");
1441
+ m("error");
1442
1442
  return;
1443
1443
  }
1444
- y("loading");
1445
- }, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${d}-container`, ...p, children: [
1446
- m && w.loader,
1447
- b && w.error,
1444
+ m("loading");
1445
+ }, [i]), /* @__PURE__ */ n.jsxs("div", { className: lt.container, "data-testid": `${d}-container`, ...f, children: [
1446
+ y && w.loader,
1447
+ h && w.error,
1448
1448
  S && w.image
1449
1449
  ] });
1450
- }), ms = {}, Kt = Ht({
1450
+ }), ms = {}, Xt = Ht({
1451
1451
  locale: ms
1452
1452
  }), ys = () => {
1453
- const e = Gt(Kt);
1453
+ const e = Gt(Xt);
1454
1454
  if (!e)
1455
1455
  throw new Error("useConfig must be used within a ConfigProvider");
1456
1456
  return e;
1457
- }, Zi = () => {
1457
+ }, xl = () => {
1458
1458
  const { locale: e } = ys();
1459
1459
  return e;
1460
- }, vs = {}, xs = {}, ws = {}, Yi = ({
1460
+ }, vs = {}, xs = {}, ws = {}, Cs = {}, Ss = {}, Ls = "_base_1p0qo_50", Es = "_content_1p0qo_54", js = "_background_1p0qo_58", ks = "_button_1p0qo_62", $s = "_link_1p0qo_66", Ms = "_input_1p0qo_70", Is = "_suffix_1p0qo_74", Rs = "_prefix_1p0qo_78", Ts = "_tooltip_1p0qo_82", Ns = "_hint_1p0qo_86", As = "_dropdown_1p0qo_90", Ds = "_popover_1p0qo_94", Os = "_modalBackdrop_1p0qo_98", Ps = "_modal_1p0qo_98", qs = "_overlay_1p0qo_106", Bs = "_drawer_1p0qo_110", Us = "_notification_1p0qo_114", zs = "_alert_1p0qo_118", Fs = "_toast_1p0qo_122", Ws = "_loading_1p0qo_126", Vs = "_error_1p0qo_130", Hs = "_critical_1p0qo_134", Gs = {
1461
+ base: Ls,
1462
+ content: Es,
1463
+ background: js,
1464
+ button: ks,
1465
+ link: $s,
1466
+ input: Ms,
1467
+ suffix: Is,
1468
+ prefix: Rs,
1469
+ tooltip: Ts,
1470
+ hint: Ns,
1471
+ dropdown: As,
1472
+ popover: Ds,
1473
+ modalBackdrop: Os,
1474
+ modal: Ps,
1475
+ overlay: qs,
1476
+ drawer: Bs,
1477
+ notification: Us,
1478
+ alert: zs,
1479
+ toast: Fs,
1480
+ loading: Ws,
1481
+ error: Vs,
1482
+ critical: Hs
1483
+ }, wl = ({
1461
1484
  locale: e = {},
1462
1485
  theme: a,
1463
1486
  children: r,
1464
1487
  className: s
1465
- }) => (jr(() => {
1488
+ }) => (Zt(() => {
1466
1489
  if (a) {
1467
1490
  const i = document.documentElement;
1468
1491
  Object.entries(a).forEach(([o, l]) => {
@@ -1474,28 +1497,28 @@ const es = X((e, a) => {
1474
1497
  "div",
1475
1498
  {
1476
1499
  "data-testid": "ConfigProvider-component",
1477
- className: k(vs, xs, ws, s)
1500
+ className: k(vs, xs, ws, Cs, Ss, Gs, oe, s)
1478
1501
  }
1479
1502
  ),
1480
- /* @__PURE__ */ n.jsx(Kt.Provider, { value: { locale: e }, children: r })
1481
- ] })), Ji = {}, Cs = "_tag_1llsi_1", Ss = "_label_1llsi_16", Ls = "_iconWrapper_1llsi_20", Es = "_medium_1llsi_27", js = "_large_1llsi_33", ks = "_disabled_1llsi_43", $s = "_neutral_1llsi_47", Ms = "_positive_1llsi_53", Is = "_negative_1llsi_59", Rs = "_warning_1llsi_65", Ts = "_vivid_1llsi_71", Ns = "_special_1llsi_77", As = "_accent_1llsi_84", Ds = "_blue_1llsi_90", Os = "_lovely_1llsi_96", Ps = "_dreamy_1llsi_102", ke = {
1482
- tag: Cs,
1483
- label: Ss,
1484
- iconWrapper: Ls,
1485
- medium: Es,
1486
- large: js,
1487
- disabled: ks,
1488
- neutral: $s,
1489
- positive: Ms,
1490
- negative: Is,
1491
- warning: Rs,
1492
- vivid: Ts,
1493
- special: Ns,
1494
- accent: As,
1495
- blue: Ds,
1496
- lovely: Os,
1497
- dreamy: Ps
1498
- }, Ki = X((e, a) => {
1503
+ /* @__PURE__ */ n.jsx(Xt.Provider, { value: { locale: e }, children: r })
1504
+ ] })), Cl = {}, Zs = "_tag_1llsi_1", Ys = "_label_1llsi_16", Js = "_iconWrapper_1llsi_20", Ks = "_medium_1llsi_27", Xs = "_large_1llsi_33", Qs = "_disabled_1llsi_43", en = "_neutral_1llsi_47", tn = "_positive_1llsi_53", rn = "_negative_1llsi_59", an = "_warning_1llsi_65", sn = "_vivid_1llsi_71", nn = "_special_1llsi_77", on = "_accent_1llsi_84", ln = "_blue_1llsi_90", cn = "_lovely_1llsi_96", dn = "_dreamy_1llsi_102", $e = {
1505
+ tag: Zs,
1506
+ label: Ys,
1507
+ iconWrapper: Js,
1508
+ medium: Ks,
1509
+ large: Xs,
1510
+ disabled: Qs,
1511
+ neutral: en,
1512
+ positive: tn,
1513
+ negative: rn,
1514
+ warning: an,
1515
+ vivid: sn,
1516
+ special: nn,
1517
+ accent: on,
1518
+ blue: ln,
1519
+ lovely: cn,
1520
+ dreamy: dn
1521
+ }, Sl = X((e, a) => {
1499
1522
  const {
1500
1523
  className: r,
1501
1524
  children: s,
@@ -1504,45 +1527,47 @@ const es = X((e, a) => {
1504
1527
  disabled: l = !1,
1505
1528
  showLabel: d = !!s,
1506
1529
  slotStart: c,
1507
- slotEnd: f,
1508
- slotStartWrapperProps: p = {},
1509
- slotEndWrapperProps: h = {},
1510
- "data-testid": y
1511
- } = e, { className: b, ...m } = p, { className: S, ...v } = h;
1530
+ slotEnd: p,
1531
+ slotStartWrapperProps: f = {},
1532
+ slotEndWrapperProps: g = {},
1533
+ "data-testid": m,
1534
+ ...h
1535
+ } = e, { className: y, ...S } = f, { className: v, ...x } = g;
1512
1536
  return /* @__PURE__ */ n.jsxs(
1513
1537
  "div",
1514
1538
  {
1515
1539
  className: k(
1516
- ke.tag,
1517
- ke[o],
1518
- ke[i],
1540
+ $e.tag,
1541
+ $e[o],
1542
+ $e[i],
1519
1543
  {
1520
- [ke.disabled]: l,
1521
- [ce["typography-label-3-regular"]]: o === "medium",
1522
- [ce["typography-subtitle-1-semibold"]]: o === "large"
1544
+ [$e.disabled]: l,
1545
+ [oe["typography-label-3-regular"]]: o === "medium",
1546
+ [oe["typography-subtitle-1-semibold"]]: o === "large"
1523
1547
  },
1524
1548
  r
1525
1549
  ),
1526
- "data-testid": y || "tag-component",
1550
+ "data-testid": m || "tag-component",
1527
1551
  ref: a,
1552
+ ...h,
1528
1553
  children: [
1529
- c && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, b]), ...m, children: c }),
1530
- d && /* @__PURE__ */ n.jsx("span", { className: k([ke.label]), children: s }),
1531
- f && /* @__PURE__ */ n.jsx("span", { className: k([ke.iconWrapper, S]), ...v, children: f })
1554
+ c && /* @__PURE__ */ n.jsx("span", { className: k([$e.iconWrapper, y]), ...S, children: c }),
1555
+ d && /* @__PURE__ */ n.jsx("span", { className: k([$e.label]), children: s }),
1556
+ p && /* @__PURE__ */ n.jsx("span", { className: k([$e.iconWrapper, v]), ...x, children: p })
1532
1557
  ]
1533
1558
  }
1534
1559
  );
1535
- }), Bs = "_checkbox_17txq_43", qs = "_input_17txq_64", zs = "_icon_17txq_72", Us = "_container_17txq_92", Fs = "_error_17txq_143", Ws = "_checkboxWrapper_17txq_156", Vs = "_medium_17txq_211", Hs = "_large_17txq_216", Gs = "_label_17txq_258", xe = {
1536
- checkbox: Bs,
1537
- input: qs,
1538
- icon: zs,
1539
- container: Us,
1540
- error: Fs,
1541
- checkboxWrapper: Ws,
1542
- medium: Vs,
1543
- large: Hs,
1544
- label: Gs
1545
- }, Zs = ({
1560
+ }), un = "_checkbox_17txq_43", _n = "_input_17txq_64", pn = "_icon_17txq_72", fn = "_container_17txq_92", gn = "_error_17txq_143", hn = "_checkboxWrapper_17txq_156", bn = "_medium_17txq_211", mn = "_large_17txq_216", yn = "_label_17txq_258", xe = {
1561
+ checkbox: un,
1562
+ input: _n,
1563
+ icon: pn,
1564
+ container: fn,
1565
+ error: gn,
1566
+ checkboxWrapper: hn,
1567
+ medium: bn,
1568
+ large: mn,
1569
+ label: yn
1570
+ }, vn = ({
1546
1571
  width: e = 12,
1547
1572
  height: a = 9,
1548
1573
  className: r = "",
@@ -1568,7 +1593,7 @@ const es = X((e, a) => {
1568
1593
  }
1569
1594
  )
1570
1595
  }
1571
- ), Ys = ({
1596
+ ), xn = ({
1572
1597
  width: e = 12,
1573
1598
  height: a = 2,
1574
1599
  className: r = "",
@@ -1594,17 +1619,17 @@ const es = X((e, a) => {
1594
1619
  }
1595
1620
  )
1596
1621
  }
1597
- ), Js = {
1622
+ ), wn = {
1598
1623
  medium: { width: 10.83, height: 7.5 },
1599
1624
  large: { width: 13, height: 9 }
1600
- }, Ks = ({
1625
+ }, Cn = ({
1601
1626
  size: e,
1602
1627
  isChecked: a,
1603
1628
  isDisabled: r,
1604
1629
  indeterminate: s,
1605
1630
  dataTestId: i
1606
1631
  }) => {
1607
- const { width: o, height: l } = Js[e];
1632
+ const { width: o, height: l } = wn[e];
1608
1633
  return /* @__PURE__ */ n.jsx(
1609
1634
  "div",
1610
1635
  {
@@ -1613,10 +1638,10 @@ const es = X((e, a) => {
1613
1638
  "data-checked": a,
1614
1639
  "data-disabled": r,
1615
1640
  "data-indeterminate": s,
1616
- children: s ? /* @__PURE__ */ n.jsx(Ys, { width: o, height: l }) : /* @__PURE__ */ n.jsx(Zs, { width: o, height: l })
1641
+ children: s ? /* @__PURE__ */ n.jsx(xn, { width: o, height: l }) : /* @__PURE__ */ n.jsx(vn, { width: o, height: l })
1617
1642
  }
1618
1643
  );
1619
- }, Xi = X((e, a) => {
1644
+ }, Ll = X((e, a) => {
1620
1645
  const {
1621
1646
  name: r,
1622
1647
  value: s,
@@ -1625,51 +1650,51 @@ const es = X((e, a) => {
1625
1650
  loading: l = !1,
1626
1651
  error: d,
1627
1652
  disabled: c = !1,
1628
- containerClassName: f,
1629
- className: p,
1630
- containerStyle: h,
1631
- style: y,
1632
- children: b,
1633
- clickableLabel: m = !0,
1653
+ containerClassName: p,
1654
+ className: f,
1655
+ containerStyle: g,
1656
+ style: m,
1657
+ children: h,
1658
+ clickableLabel: y = !0,
1634
1659
  tabIndex: S,
1635
1660
  onChange: v,
1636
1661
  "data-testid": x = "checkbox"
1637
- } = e, [_, w] = de(!1), L = s ?? _, $ = c || l, j = !!d, M = L || o, A = k(xe.container, xe[i], f), D = k(
1662
+ } = e, [_, w] = ce(!1), L = s ?? _, M = c || l, j = !!d, $ = L || o, R = k(xe.container, xe[i], p), D = k(
1638
1663
  xe.checkbox,
1639
1664
  xe[i],
1640
1665
  {
1641
1666
  [xe.error]: j
1642
1667
  },
1643
- p
1644
- ), z = (R) => {
1645
- $ || (w(R.target.checked), v == null || v(R.target.checked, R));
1646
- }, F = (R) => {
1647
- if (R.key === "Enter" && !$) {
1648
- R.preventDefault();
1649
- const B = !M;
1668
+ f
1669
+ ), P = (T) => {
1670
+ M || (w(T.target.checked), v == null || v(T.target.checked, T));
1671
+ }, F = (T) => {
1672
+ if (T.key === "Enter" && !M) {
1673
+ T.preventDefault();
1674
+ const B = !$;
1650
1675
  w(B), v == null || v(B);
1651
1676
  }
1652
- }, O = (R) => {
1653
- m || R.preventDefault();
1654
- }, C = (R) => R.stopPropagation();
1677
+ }, O = (T) => {
1678
+ y || T.preventDefault();
1679
+ }, C = (T) => T.stopPropagation();
1655
1680
  return /* @__PURE__ */ n.jsxs(
1656
1681
  "label",
1657
1682
  {
1658
- className: A,
1683
+ className: R,
1659
1684
  htmlFor: r,
1660
- style: h,
1685
+ style: g,
1661
1686
  "data-testid": x,
1662
- "data-clickable-label": m,
1687
+ "data-clickable-label": y,
1663
1688
  children: [
1664
1689
  /* @__PURE__ */ n.jsx("div", { className: xe.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
1665
1690
  "div",
1666
1691
  {
1667
1692
  tabIndex: S || 0,
1668
1693
  className: D,
1669
- style: y,
1694
+ style: m,
1670
1695
  onKeyDown: F,
1671
- "aria-checked": M,
1672
- "aria-disabled": $,
1696
+ "aria-checked": $,
1697
+ "aria-disabled": M,
1673
1698
  "aria-invalid": j,
1674
1699
  "aria-describedby": d ? `${r}-error` : void 0,
1675
1700
  "data-testid": `${x}-label`,
@@ -1681,24 +1706,24 @@ const es = X((e, a) => {
1681
1706
  type: "checkbox",
1682
1707
  id: r,
1683
1708
  name: r,
1684
- checked: M,
1685
- disabled: $,
1709
+ checked: $,
1710
+ disabled: M,
1686
1711
  className: xe.input,
1687
- onChange: z,
1712
+ onChange: P,
1688
1713
  onClick: C,
1689
- "aria-checked": M,
1714
+ "aria-checked": $,
1690
1715
  "aria-invalid": j,
1691
1716
  "aria-describedby": d ? `${r}-error` : void 0,
1692
1717
  "data-testid": `${x}-input`
1693
1718
  }
1694
1719
  ),
1695
1720
  /* @__PURE__ */ n.jsx(
1696
- Ks,
1721
+ Cn,
1697
1722
  {
1698
1723
  name: r,
1699
1724
  size: i,
1700
- isChecked: M,
1701
- isDisabled: $,
1725
+ isChecked: $,
1726
+ isDisabled: M,
1702
1727
  indeterminate: o,
1703
1728
  dataTestId: x
1704
1729
  }
@@ -1706,38 +1731,38 @@ const es = X((e, a) => {
1706
1731
  ]
1707
1732
  }
1708
1733
  ) }),
1709
- b && /* @__PURE__ */ n.jsx(
1734
+ h && /* @__PURE__ */ n.jsx(
1710
1735
  "span",
1711
1736
  {
1712
1737
  "data-testid": `${x}-label-text`,
1713
- "data-clickable-label": m,
1738
+ "data-clickable-label": y,
1714
1739
  className: xe.label,
1715
1740
  onClick: O,
1716
- children: b
1741
+ children: h
1717
1742
  }
1718
1743
  )
1719
1744
  ]
1720
1745
  }
1721
1746
  );
1722
- }), Xs = "_typography_zt7xg_1", Qs = "_disabled_zt7xg_8", en = "_primary_zt7xg_13", tn = "_secondary_zt7xg_18", rn = "_tertiary_zt7xg_23", an = "_accent_zt7xg_28", sn = "_positive_zt7xg_38", nn = "_negative_zt7xg_48", on = "_warning_zt7xg_58", ln = "_special_zt7xg_68", cn = "_contrast_zt7xg_78", Pe = {
1723
- typography: Xs,
1724
- disabled: Qs,
1725
- primary: en,
1726
- secondary: tn,
1727
- tertiary: rn,
1728
- accent: an,
1747
+ }), Sn = "_typography_zt7xg_1", Ln = "_disabled_zt7xg_8", En = "_primary_zt7xg_13", jn = "_secondary_zt7xg_18", kn = "_tertiary_zt7xg_23", $n = "_accent_zt7xg_28", Mn = "_positive_zt7xg_38", In = "_negative_zt7xg_48", Rn = "_warning_zt7xg_58", Tn = "_special_zt7xg_68", Nn = "_contrast_zt7xg_78", Pe = {
1748
+ typography: Sn,
1749
+ disabled: Ln,
1750
+ primary: En,
1751
+ secondary: jn,
1752
+ tertiary: kn,
1753
+ accent: $n,
1729
1754
  "accent-secondary": "_accent-secondary_zt7xg_33",
1730
- positive: sn,
1755
+ positive: Mn,
1731
1756
  "positive-secondary": "_positive-secondary_zt7xg_43",
1732
- negative: nn,
1757
+ negative: In,
1733
1758
  "negative-secondary": "_negative-secondary_zt7xg_53",
1734
- warning: on,
1759
+ warning: Rn,
1735
1760
  "warning-secondary": "_warning-secondary_zt7xg_63",
1736
- special: ln,
1761
+ special: Tn,
1737
1762
  "special-secondary": "_special-secondary_zt7xg_73",
1738
- contrast: cn,
1763
+ contrast: Nn,
1739
1764
  "contrast-secondary": "_contrast-secondary_zt7xg_83"
1740
- }, dn = {
1765
+ }, An = {
1741
1766
  1: "h1",
1742
1767
  2: "h2",
1743
1768
  3: "h3",
@@ -1753,19 +1778,19 @@ const es = X((e, a) => {
1753
1778
  as: l,
1754
1779
  fontWeight: d = "semibold",
1755
1780
  disabled: c = !1,
1756
- typographyStyle: f = "primary",
1757
- ...p
1758
- }, h) => {
1759
- const y = l || dn[r], b = k(
1781
+ typographyStyle: p = "primary",
1782
+ ...f
1783
+ }, g) => {
1784
+ const m = l || An[r], h = k(
1760
1785
  Pe.typography,
1761
- ce[`typography-${e}-${r}-${d}`],
1762
- Pe[f],
1786
+ oe[`typography-${e}-${r}-${d}`],
1787
+ Pe[p],
1763
1788
  {
1764
1789
  [Pe.disabled]: c
1765
1790
  },
1766
1791
  i
1767
1792
  );
1768
- return s ? /* @__PURE__ */ n.jsx(y, { ref: h, className: b, "data-testid": o, ...p, children: s }) : null;
1793
+ return s ? /* @__PURE__ */ n.jsx(m, { ref: g, className: h, "data-testid": o, ...f, children: s }) : null;
1769
1794
  }
1770
1795
  );
1771
1796
  return a.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, a;
@@ -1779,68 +1804,68 @@ const es = X((e, a) => {
1779
1804
  as: l = "p",
1780
1805
  fontWeight: d = "regular",
1781
1806
  disabled: c = !1,
1782
- typographyStyle: f = "primary",
1783
- ...p
1784
- }, h) => {
1785
- const y = l, b = k(
1807
+ typographyStyle: p = "primary",
1808
+ ...f
1809
+ }, g) => {
1810
+ const m = l, h = k(
1786
1811
  Pe.typography,
1787
- ce[`typography-${e}-${r}-${d}`],
1788
- Pe[f],
1812
+ oe[`typography-${e}-${r}-${d}`],
1813
+ Pe[p],
1789
1814
  {
1790
1815
  [Pe.disabled]: c
1791
1816
  },
1792
1817
  i
1793
1818
  );
1794
1819
  return s ? /* @__PURE__ */ n.jsx(
1795
- y,
1820
+ m,
1796
1821
  {
1797
- ref: h,
1798
- className: b,
1822
+ ref: g,
1823
+ className: h,
1799
1824
  "data-testid": o,
1800
- ...p,
1825
+ ...f,
1801
1826
  children: s
1802
1827
  }
1803
1828
  ) : null;
1804
1829
  }
1805
1830
  );
1806
1831
  return a.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, a;
1807
- }, Bt = {
1832
+ }, qt = {
1808
1833
  Title: Ot("title"),
1809
1834
  Subtitle: Ot("subtitle"),
1810
1835
  Label: Pt("label"),
1811
1836
  Paragraph: Pt("paragraph")
1812
- }, un = "_inputBase_1q54n_82", _n = "_wrapper_1q54n_92", pn = "_gripHandle_1q54n_172", fn = "_error_1q54n_238", hn = "_tabFocused_1q54n_245", bn = "_disabled_1q54n_270", gn = "_loading_1q54n_277", mn = "_label_1q54n_287", yn = "_small_1q54n_301", vn = "_large_1q54n_308", xn = "_leftSection_1q54n_315", wn = "_rightSection_1q54n_327", Cn = "_helper_1q54n_365", Sn = "_floatingLabel_1q54n_393", Ln = "_focused_1q54n_461", En = "_filled_1q54n_462", jn = "_medium_1q54n_503", kn = "_characterLimit_1q54n_545", $n = "_input_1q54n_82", Mn = "_textarea_1q54n_110", In = "_truncate_1q54n_678", Rn = "_hint_1q54n_765", N = {
1813
- inputBase: un,
1814
- wrapper: _n,
1837
+ }, Dn = "_inputBase_1q54n_82", On = "_wrapper_1q54n_92", Pn = "_gripHandle_1q54n_172", qn = "_error_1q54n_238", Bn = "_tabFocused_1q54n_245", Un = "_disabled_1q54n_270", zn = "_loading_1q54n_277", Fn = "_label_1q54n_287", Wn = "_small_1q54n_301", Vn = "_large_1q54n_308", Hn = "_leftSection_1q54n_315", Gn = "_rightSection_1q54n_327", Zn = "_helper_1q54n_365", Yn = "_floatingLabel_1q54n_393", Jn = "_focused_1q54n_461", Kn = "_filled_1q54n_462", Xn = "_medium_1q54n_503", Qn = "_characterLimit_1q54n_545", eo = "_input_1q54n_82", to = "_textarea_1q54n_110", ro = "_truncate_1q54n_678", ao = "_hint_1q54n_765", A = {
1838
+ inputBase: Dn,
1839
+ wrapper: On,
1815
1840
  "textarea-wrapper": "_textarea-wrapper_1q54n_110",
1816
- gripHandle: pn,
1817
- error: fn,
1818
- tabFocused: hn,
1819
- disabled: bn,
1820
- loading: gn,
1821
- label: mn,
1822
- small: yn,
1823
- large: vn,
1824
- leftSection: xn,
1825
- rightSection: wn,
1826
- helper: Cn,
1827
- floatingLabel: Sn,
1828
- focused: Ln,
1829
- filled: En,
1830
- medium: jn,
1831
- characterLimit: kn,
1832
- input: $n,
1833
- textarea: Mn,
1841
+ gripHandle: Pn,
1842
+ error: qn,
1843
+ tabFocused: Bn,
1844
+ disabled: Un,
1845
+ loading: zn,
1846
+ label: Fn,
1847
+ small: Wn,
1848
+ large: Vn,
1849
+ leftSection: Hn,
1850
+ rightSection: Gn,
1851
+ helper: Zn,
1852
+ floatingLabel: Yn,
1853
+ focused: Jn,
1854
+ filled: Kn,
1855
+ medium: Xn,
1856
+ characterLimit: Qn,
1857
+ input: eo,
1858
+ textarea: to,
1834
1859
  "size-small": "_size-small_1q54n_627",
1835
1860
  "size-medium": "_size-medium_1q54n_633",
1836
1861
  "size-large": "_size-large_1q54n_639",
1837
1862
  "with-floating-label": "_with-floating-label_1q54n_646",
1838
- truncate: In,
1839
- hint: Rn,
1863
+ truncate: ro,
1864
+ hint: ao,
1840
1865
  "has-hint": "_has-hint_1q54n_786",
1841
1866
  "has-suffix": "_has-suffix_1q54n_792",
1842
1867
  "has-limit": "_has-limit_1q54n_798"
1843
- }, Tn = ({
1868
+ }, so = ({
1844
1869
  width: e = 8,
1845
1870
  height: a = 8,
1846
1871
  className: r,
@@ -1864,7 +1889,7 @@ const es = X((e, a) => {
1864
1889
  }
1865
1890
  )
1866
1891
  }
1867
- ), Xt = ({
1892
+ ), Qt = ({
1868
1893
  className: e = "",
1869
1894
  style: a,
1870
1895
  size: r = "md",
@@ -1907,9 +1932,9 @@ const es = X((e, a) => {
1907
1932
  )
1908
1933
  }
1909
1934
  );
1910
- }, Nn = (e, a) => {
1911
- const r = Be(null), s = Be(null);
1912
- return oe(() => {
1935
+ }, no = (e, a) => {
1936
+ const r = qe(null), s = qe(null);
1937
+ return de(() => {
1913
1938
  const i = a === "textarea" ? r.current : s.current;
1914
1939
  i && i.value !== e && (i.value = e || "");
1915
1940
  }, [e, a]), {
@@ -1917,35 +1942,35 @@ const es = X((e, a) => {
1917
1942
  inputRef: s,
1918
1943
  currentRef: a === "textarea" ? r : s
1919
1944
  };
1920
- }, An = (e, a, r) => {
1945
+ }, oo = (e, a, r) => {
1921
1946
  const s = () => {
1922
1947
  if (!r.current || a !== "hug") return;
1923
1948
  const i = r.current.scrollTop;
1924
1949
  if (r.current.style.setProperty("height", "auto", "important"), !e) return;
1925
1950
  const o = r.current.scrollHeight + "px";
1926
1951
  r.current.style.setProperty("height", o, "important"), r.current.scrollTop = i;
1927
- const l = r.current.closest(`.${N.wrapper}`);
1952
+ const l = r.current.closest(`.${A.wrapper}`);
1928
1953
  l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
1929
1954
  };
1930
- return oe(s, [e, a]), oe(() => {
1955
+ return de(s, [e, a]), de(() => {
1931
1956
  a === "hug" && r.current && s();
1932
1957
  }, []), { resizeTextArea: s };
1933
- }, Dn = (e, a, r, s) => ({ handleGripMouseDown: Se(
1958
+ }, io = (e, a, r, s) => ({ handleGripMouseDown: Le(
1934
1959
  (o) => {
1935
1960
  if (!e || a || r || !(s === "fixed" || !s)) return;
1936
1961
  o.preventDefault(), o.stopPropagation();
1937
- const l = o.currentTarget.closest(`.${N.wrapper}`);
1962
+ const l = o.currentTarget.closest(`.${A.wrapper}`);
1938
1963
  if (!l) return;
1939
- const d = o.clientY, c = l.clientHeight, f = (h) => {
1940
- const y = h.clientY - d, b = Math.min(100, c), m = Math.max(b, c + y);
1941
- l.style.height = `${m}px`;
1942
- }, p = () => {
1943
- document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
1964
+ const d = o.clientY, c = l.clientHeight, p = (g) => {
1965
+ const m = g.clientY - d, h = Math.min(100, c), y = Math.max(h, c + m);
1966
+ l.style.height = `${y}px`;
1967
+ }, f = () => {
1968
+ document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", f);
1944
1969
  };
1945
- document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
1970
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
1946
1971
  },
1947
1972
  [e, a, r, s]
1948
- ) }), qt = 30, On = X(
1973
+ ) }), Bt = 30, lo = X(
1949
1974
  ({
1950
1975
  component: e = "input",
1951
1976
  size: a = "medium",
@@ -1956,21 +1981,21 @@ const es = X((e, a) => {
1956
1981
  onFocus: l,
1957
1982
  onBlur: d,
1958
1983
  onChange: c,
1959
- onKeyDown: f,
1960
- onKeyUp: p,
1961
- maxLength: h,
1962
- className: y,
1963
- style: b,
1964
- truncate: m = !1,
1984
+ onKeyDown: p,
1985
+ onKeyUp: f,
1986
+ maxLength: g,
1987
+ className: m,
1988
+ style: h,
1989
+ truncate: y = !1,
1965
1990
  shouldShowFloatingLabelClass: S = !1,
1966
1991
  "aria-invalid": v,
1967
1992
  "aria-errormessage": x,
1968
1993
  id: _,
1969
1994
  resize: w,
1970
1995
  ...L
1971
- }, $) => {
1972
- const { textareaRef: j, inputRef: M, currentRef: A } = Nn(r, e);
1973
- if (An(r, w, j), kr($, () => A.current, [A]), e === "textarea")
1996
+ }, M) => {
1997
+ const { textareaRef: j, inputRef: $, currentRef: R } = no(r, e);
1998
+ if (oo(r, w, j), kr(M, () => R.current, [R]), e === "textarea")
1974
1999
  return /* @__PURE__ */ n.jsx(
1975
2000
  "textarea",
1976
2001
  {
@@ -1982,16 +2007,16 @@ const es = X((e, a) => {
1982
2007
  onFocus: l,
1983
2008
  onBlur: d,
1984
2009
  onChange: c,
1985
- onKeyDown: f,
1986
- onKeyUp: p,
1987
- maxLength: h,
2010
+ onKeyDown: p,
2011
+ onKeyUp: f,
2012
+ maxLength: g,
1988
2013
  className: k(
1989
- N.textarea,
1990
- N[`size-${a}`],
1991
- S && N["with-floating-label"],
1992
- y
2014
+ A.textarea,
2015
+ A[`size-${a}`],
2016
+ S && A["with-floating-label"],
2017
+ m
1993
2018
  ),
1994
- style: b,
2019
+ style: h,
1995
2020
  "aria-invalid": v,
1996
2021
  "aria-errormessage": x,
1997
2022
  "aria-describedby": x ? `${_}-error` : void 0,
@@ -2004,7 +2029,7 @@ const es = X((e, a) => {
2004
2029
  return /* @__PURE__ */ n.jsx(
2005
2030
  "input",
2006
2031
  {
2007
- ref: M,
2032
+ ref: $,
2008
2033
  id: _,
2009
2034
  value: r,
2010
2035
  placeholder: s,
@@ -2012,17 +2037,17 @@ const es = X((e, a) => {
2012
2037
  onFocus: l,
2013
2038
  onBlur: d,
2014
2039
  onChange: c,
2015
- onKeyDown: f,
2016
- onKeyUp: p,
2017
- maxLength: h,
2040
+ onKeyDown: p,
2041
+ onKeyUp: f,
2042
+ maxLength: g,
2018
2043
  className: k(
2019
- N.input,
2020
- N[`size-${a}`],
2021
- S && N["with-floating-label"],
2022
- m && N.truncate,
2023
- y
2044
+ A.input,
2045
+ A[`size-${a}`],
2046
+ S && A["with-floating-label"],
2047
+ y && A.truncate,
2048
+ m
2024
2049
  ),
2025
- style: b,
2050
+ style: h,
2026
2051
  "aria-invalid": v,
2027
2052
  "aria-errormessage": x,
2028
2053
  "aria-describedby": x ? `${_}-error` : void 0,
@@ -2035,7 +2060,7 @@ const es = X((e, a) => {
2035
2060
  `[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
2036
2061
  ), null;
2037
2062
  }
2038
- ), Qt = X(
2063
+ ), er = X(
2039
2064
  ({
2040
2065
  children: e,
2041
2066
  size: a = "medium",
@@ -2046,45 +2071,45 @@ const es = X((e, a) => {
2046
2071
  wrapperProps: l,
2047
2072
  wrapperStyles: d,
2048
2073
  floatingLabelStyles: c,
2049
- prefixStyles: f,
2050
- suffixStyles: p,
2051
- labelProps: h,
2052
- helperProps: y,
2053
- showLimit: b = !1,
2054
- maxLength: m,
2074
+ prefixStyles: p,
2075
+ suffixStyles: f,
2076
+ labelProps: g,
2077
+ helperProps: m,
2078
+ showLimit: h = !1,
2079
+ maxLength: y,
2055
2080
  hint: S,
2056
2081
  showHint: v = !1,
2057
2082
  showHintOnEmpty: x = !1,
2058
2083
  prefix: _,
2059
2084
  suffix: w,
2060
2085
  onSuffixClick: L,
2061
- placeholder: $,
2086
+ placeholder: M,
2062
2087
  showLabel: j = !0,
2063
- labelClassName: M,
2064
- hasValue: A = !1,
2088
+ labelClassName: $,
2089
+ hasValue: R = !1,
2065
2090
  helper: D,
2066
- id: z,
2091
+ id: P,
2067
2092
  value: F = "",
2068
2093
  resize: O,
2069
2094
  showGrip: C = !1,
2070
- ...R
2095
+ ...T
2071
2096
  }, B) => {
2072
- const U = pt(), V = z || U, Q = v && S && (A || x), ie = S && S.length > qt ? S.substring(0, qt) + "..." : S, Z = k(
2073
- N.wrapper,
2074
- r && N.error,
2075
- s && N.disabled,
2076
- i && N.loading,
2077
- Q && N["has-hint"],
2078
- w && N["has-suffix"],
2079
- b && N["has-limit"],
2097
+ const z = pt(), V = P || z, Q = v && S && (R || x), ie = S && S.length > Bt ? S.substring(0, Bt) + "..." : S, Z = k(
2098
+ A.wrapper,
2099
+ r && A.error,
2100
+ s && A.disabled,
2101
+ i && A.loading,
2102
+ Q && A["has-hint"],
2103
+ w && A["has-suffix"],
2104
+ h && A["has-limit"],
2080
2105
  o
2081
2106
  ), ue = k(
2082
- N.floatingLabel,
2083
- N[a],
2084
- A && N.filled,
2085
- M
2086
- ), { handleGripMouseDown: ee } = Dn(C, s, i, O);
2087
- return /* @__PURE__ */ n.jsxs("div", { ref: B, className: N.inputBase, "data-testid": "input-base-wrapper", ...R, children: [
2107
+ A.floatingLabel,
2108
+ A[a],
2109
+ R && A.filled,
2110
+ $
2111
+ ), { handleGripMouseDown: ee } = io(C, s, i, O);
2112
+ return /* @__PURE__ */ n.jsxs("div", { ref: B, className: A.inputBase, "data-testid": "input-base-wrapper", ...T, children: [
2088
2113
  /* @__PURE__ */ n.jsxs(
2089
2114
  "div",
2090
2115
  {
@@ -2094,51 +2119,51 @@ const es = X((e, a) => {
2094
2119
  "data-show-grip": C ? "true" : "false",
2095
2120
  ...l,
2096
2121
  children: [
2097
- _ && /* @__PURE__ */ n.jsx("label", { htmlFor: V, className: N.leftSection, style: f, children: _ }),
2122
+ _ && /* @__PURE__ */ n.jsx("label", { htmlFor: V, className: A.leftSection, style: p, children: _ }),
2098
2123
  w && /* @__PURE__ */ n.jsx(
2099
2124
  "label",
2100
2125
  {
2101
2126
  htmlFor: V,
2102
- className: N.rightSection,
2103
- style: p,
2127
+ className: A.rightSection,
2128
+ style: f,
2104
2129
  onClick: L,
2105
2130
  children: w
2106
2131
  }
2107
2132
  ),
2108
- $ && j && /* @__PURE__ */ n.jsx(
2133
+ M && j && /* @__PURE__ */ n.jsx(
2109
2134
  "label",
2110
2135
  {
2111
2136
  htmlFor: V,
2112
2137
  className: ue,
2113
2138
  style: c,
2114
- ...h,
2115
- children: $
2139
+ ...g,
2140
+ children: M
2116
2141
  }
2117
2142
  ),
2118
2143
  e,
2119
- C && !b && (O === "fixed" || !O) && /* @__PURE__ */ n.jsx(
2144
+ C && !h && (O === "fixed" || !O) && /* @__PURE__ */ n.jsx(
2120
2145
  "div",
2121
2146
  {
2122
- className: N.gripHandle,
2147
+ className: A.gripHandle,
2123
2148
  onMouseDown: ee,
2124
2149
  role: "button",
2125
2150
  tabIndex: -1,
2126
2151
  "aria-label": "Изменить размер",
2127
- children: /* @__PURE__ */ n.jsx(Tn, {})
2152
+ children: /* @__PURE__ */ n.jsx(so, {})
2128
2153
  }
2129
2154
  ),
2130
2155
  Q && /* @__PURE__ */ n.jsx(
2131
2156
  "div",
2132
2157
  {
2133
- className: k(N.hint, A && N.truncate),
2158
+ className: k(A.hint, R && A.truncate),
2134
2159
  "data-disabled": s || i,
2135
2160
  children: ie
2136
2161
  }
2137
2162
  ),
2138
- b && m && /* @__PURE__ */ n.jsxs("div", { className: N.characterLimit, children: [
2163
+ h && y && /* @__PURE__ */ n.jsxs("div", { className: A.characterLimit, children: [
2139
2164
  (F || "").length,
2140
2165
  " из ",
2141
- m
2166
+ y
2142
2167
  ] })
2143
2168
  ]
2144
2169
  }
@@ -2147,11 +2172,11 @@ const es = X((e, a) => {
2147
2172
  "div",
2148
2173
  {
2149
2174
  className: k(
2150
- N.helper,
2151
- r && N.error,
2152
- (s || i) && N.disabled
2175
+ A.helper,
2176
+ r && A.error,
2177
+ (s || i) && A.disabled
2153
2178
  ),
2154
- ...y,
2179
+ ...m,
2155
2180
  id: r ? `${V}-error` : void 0,
2156
2181
  children: D
2157
2182
  }
@@ -2159,10 +2184,10 @@ const es = X((e, a) => {
2159
2184
  ] });
2160
2185
  }
2161
2186
  );
2162
- Qt.displayName = "InputWrapperComponent";
2163
- const zt = Object.assign(On, {
2164
- Wrapper: Qt
2165
- }), er = X(
2187
+ er.displayName = "InputWrapperComponent";
2188
+ const Ut = Object.assign(lo, {
2189
+ Wrapper: er
2190
+ }), tr = X(
2166
2191
  ({
2167
2192
  component: e = "input",
2168
2193
  size: a = "medium",
@@ -2173,50 +2198,50 @@ const zt = Object.assign(On, {
2173
2198
  placeholder: l,
2174
2199
  showLabel: d = !0,
2175
2200
  labelClassName: c,
2176
- helper: f,
2177
- prefix: p,
2178
- suffix: h,
2179
- id: y,
2180
- onFocus: b,
2181
- onBlur: m,
2201
+ helper: p,
2202
+ prefix: f,
2203
+ suffix: g,
2204
+ id: m,
2205
+ onFocus: h,
2206
+ onBlur: y,
2182
2207
  onKeyDown: S,
2183
2208
  onSuffixClick: v,
2184
2209
  onChange: x,
2185
2210
  value: _ = "",
2186
2211
  wrapperProps: w,
2187
2212
  wrapperStyles: L,
2188
- floatingLabelStyles: $,
2213
+ floatingLabelStyles: M,
2189
2214
  prefixStyles: j,
2190
- suffixStyles: M,
2191
- textareaStyles: A,
2215
+ suffixStyles: $,
2216
+ textareaStyles: R,
2192
2217
  labelProps: D,
2193
- helperProps: z,
2218
+ helperProps: P,
2194
2219
  showLimit: F = !1,
2195
2220
  maxLength: O,
2196
2221
  inputProps: C,
2197
- hint: R,
2222
+ hint: T,
2198
2223
  showHint: B = !1,
2199
- showHintOnEmpty: U = !1,
2224
+ showHintOnEmpty: z = !1,
2200
2225
  truncate: V = !1,
2201
2226
  resize: Q,
2202
2227
  showGrip: ie = !1,
2203
2228
  ...Z
2204
2229
  }, ue) => {
2205
- const ee = pt(), Ce = y || ee, [qe, me] = de(_), $e = _ !== void 0 ? _ : qe, Me = ($e || "").length > 0, Ee = $e || "", Ie = d && (a === "large" || e === "textarea") && !p, Xe = Se(
2230
+ const ee = pt(), Ce = m || ee, [Be, me] = ce(_), Me = _ !== void 0 ? _ : Be, Ie = (Me || "").length > 0, je = Me || "", Re = d && (a === "large" || e === "textarea") && !f, Xe = Le(
2206
2231
  (Y) => {
2207
2232
  var J;
2208
- i || o || (b == null || b(), (J = C == null ? void 0 : C.onFocus) == null || J.call(
2233
+ i || o || (h == null || h(), (J = C == null ? void 0 : C.onFocus) == null || J.call(
2209
2234
  C,
2210
2235
  Y
2211
2236
  ));
2212
2237
  },
2213
- [b, C, i, o]
2214
- ), Ve = Se(
2238
+ [h, C, i, o]
2239
+ ), Ve = Le(
2215
2240
  (Y) => {
2216
2241
  var J;
2217
2242
  if (Y.key === "Tab") {
2218
- const be = Y.target.closest(`.${N.wrapper}`);
2219
- be && be.classList.add(N.tabFocused);
2243
+ const he = Y.target.closest(`.${A.wrapper}`);
2244
+ he && he.classList.add(A.tabFocused);
2220
2245
  }
2221
2246
  (J = C == null ? void 0 : C.onKeyUp) == null || J.call(
2222
2247
  C,
@@ -2224,70 +2249,70 @@ const zt = Object.assign(On, {
2224
2249
  );
2225
2250
  },
2226
2251
  [C]
2227
- ), Qe = Se(
2252
+ ), Qe = Le(
2228
2253
  (Y) => {
2229
- var be;
2230
- const J = Y.target.closest(`.${N.wrapper}`);
2231
- J && J.classList.remove(N.tabFocused), m == null || m(), (be = C == null ? void 0 : C.onBlur) == null || be.call(
2254
+ var he;
2255
+ const J = Y.target.closest(`.${A.wrapper}`);
2256
+ J && J.classList.remove(A.tabFocused), y == null || y(), (he = C == null ? void 0 : C.onBlur) == null || he.call(
2232
2257
  C,
2233
2258
  Y
2234
2259
  );
2235
2260
  },
2236
- [m, C]
2237
- ), et = Se(
2261
+ [y, C]
2262
+ ), et = Le(
2238
2263
  (Y) => {
2239
- var be;
2264
+ var he;
2240
2265
  if (i || o) return;
2241
2266
  const J = Y.target.value;
2242
- me(J), x == null || x(J, Y), (be = C == null ? void 0 : C.onChange) == null || be.call(
2267
+ me(J), x == null || x(J, Y), (he = C == null ? void 0 : C.onChange) == null || he.call(
2243
2268
  C,
2244
2269
  Y
2245
2270
  );
2246
2271
  },
2247
2272
  [x, C, i, o]
2248
2273
  );
2249
- return oe(() => {
2274
+ return de(() => {
2250
2275
  me(_ || "");
2251
2276
  }, [_]), /* @__PURE__ */ n.jsx(
2252
- zt.Wrapper,
2277
+ Ut.Wrapper,
2253
2278
  {
2254
2279
  ref: ue,
2255
2280
  size: a,
2256
2281
  error: s,
2257
2282
  disabled: i || o,
2258
2283
  loading: o,
2259
- className: k(r, e === "textarea" && N["textarea-wrapper"]),
2284
+ className: k(r, e === "textarea" && A["textarea-wrapper"]),
2260
2285
  wrapperProps: w,
2261
2286
  wrapperStyles: L,
2262
- floatingLabelStyles: $,
2287
+ floatingLabelStyles: M,
2263
2288
  prefixStyles: j,
2264
- suffixStyles: M,
2289
+ suffixStyles: $,
2265
2290
  labelProps: D,
2266
- helperProps: z,
2291
+ helperProps: P,
2267
2292
  showLimit: F,
2268
2293
  maxLength: O,
2269
- hint: R,
2294
+ hint: T,
2270
2295
  showHint: B,
2271
- showHintOnEmpty: U,
2272
- prefix: p,
2273
- suffix: h,
2296
+ showHintOnEmpty: z,
2297
+ prefix: f,
2298
+ suffix: g,
2274
2299
  onSuffixClick: v,
2275
2300
  placeholder: l,
2276
2301
  showLabel: d,
2277
2302
  labelClassName: c,
2278
- hasValue: Me,
2279
- helper: f,
2303
+ hasValue: Ie,
2304
+ helper: p,
2280
2305
  id: Ce,
2281
- value: Ee,
2306
+ value: je,
2282
2307
  showGrip: ie,
2283
2308
  resize: Q,
2284
2309
  ...Z,
2285
2310
  children: /* @__PURE__ */ n.jsx(
2286
- zt,
2311
+ Ut,
2287
2312
  {
2288
2313
  component: e,
2289
2314
  size: a,
2290
- value: Ee,
2315
+ value: je,
2291
2316
  placeholder: l,
2292
2317
  disabled: i,
2293
2318
  loading: o,
@@ -2298,9 +2323,9 @@ const zt = Object.assign(On, {
2298
2323
  onKeyUp: Ve,
2299
2324
  maxLength: O,
2300
2325
  truncate: V,
2301
- "data-empty": !Me,
2302
- shouldShowFloatingLabelClass: Ie,
2303
- style: e === "textarea" ? A : void 0,
2326
+ "data-empty": !Ie,
2327
+ shouldShowFloatingLabelClass: Re,
2328
+ style: e === "textarea" ? R : void 0,
2304
2329
  "aria-invalid": !!s,
2305
2330
  "aria-errormessage": s ? `${Ce}-error` : void 0,
2306
2331
  id: Ce,
@@ -2315,7 +2340,7 @@ const zt = Object.assign(On, {
2315
2340
  SMALL: "small",
2316
2341
  MEDIUM: "medium",
2317
2342
  LARGE: "large"
2318
- }, Pn = (e, a, r, s) => {
2343
+ }, co = (e, a, r, s) => {
2319
2344
  switch (e) {
2320
2345
  case re.LARGE:
2321
2346
  return a && r ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
@@ -2326,7 +2351,7 @@ const zt = Object.assign(On, {
2326
2351
  default:
2327
2352
  return "12px 16px 12px 16px";
2328
2353
  }
2329
- }, Bn = (e) => {
2354
+ }, uo = (e) => {
2330
2355
  switch (e) {
2331
2356
  case re.LARGE:
2332
2357
  return "56px";
@@ -2337,7 +2362,7 @@ const zt = Object.assign(On, {
2337
2362
  default:
2338
2363
  return "48px";
2339
2364
  }
2340
- }, qn = (e) => {
2365
+ }, _o = (e) => {
2341
2366
  switch (e) {
2342
2367
  case re.SMALL:
2343
2368
  return 8;
@@ -2349,7 +2374,7 @@ const zt = Object.assign(On, {
2349
2374
  default:
2350
2375
  return 12;
2351
2376
  }
2352
- }, zn = (e, a, r) => ({
2377
+ }, po = (e, a, r) => ({
2353
2378
  wrapperStyles: {
2354
2379
  height: e,
2355
2380
  minHeight: e,
@@ -2367,7 +2392,7 @@ const zt = Object.assign(On, {
2367
2392
  suffixStyles: {
2368
2393
  right: `${r}px`
2369
2394
  }
2370
- }), Un = (e, a, r) => ({
2395
+ }), fo = (e, a, r) => ({
2371
2396
  wrapperStyles: {
2372
2397
  minHeight: e,
2373
2398
  maxHeight: e,
@@ -2383,7 +2408,7 @@ const zt = Object.assign(On, {
2383
2408
  suffixStyles: {
2384
2409
  right: `${r}px`
2385
2410
  }
2386
- }), Fn = (e, a, r) => ({
2411
+ }), go = (e, a, r) => ({
2387
2412
  wrapperStyles: {
2388
2413
  minHeight: e,
2389
2414
  maxHeight: e,
@@ -2399,15 +2424,15 @@ const zt = Object.assign(On, {
2399
2424
  suffixStyles: {
2400
2425
  right: `${r}px`
2401
2426
  }
2402
- }), Wn = (e, a, r, s) => {
2403
- const i = Bn(e), o = Pn(e, a, r, s), l = qn(e);
2427
+ }), ho = (e, a, r, s) => {
2428
+ const i = uo(e), o = co(e, a, r, s), l = _o(e);
2404
2429
  switch (e) {
2405
2430
  case re.LARGE:
2406
- return zn(i, o, l);
2431
+ return po(i, o, l);
2407
2432
  case re.MEDIUM:
2408
- return Un(i, o, l);
2433
+ return fo(i, o, l);
2409
2434
  case re.SMALL:
2410
- return Fn(i, o, l);
2435
+ return go(i, o, l);
2411
2436
  default:
2412
2437
  return {
2413
2438
  wrapperStyles: {},
@@ -2416,7 +2441,7 @@ const zt = Object.assign(On, {
2416
2441
  suffixStyles: {}
2417
2442
  };
2418
2443
  }
2419
- }, Qi = X(
2444
+ }, El = X(
2420
2445
  ({
2421
2446
  value: e = "",
2422
2447
  onChange: a,
@@ -2427,34 +2452,34 @@ const zt = Object.assign(On, {
2427
2452
  autoComplete: l,
2428
2453
  autoFocus: d,
2429
2454
  size: c = re.MEDIUM,
2430
- inputProps: f,
2431
- error: p,
2432
- disabled: h,
2433
- loading: y,
2434
- helper: b,
2435
- prefix: m,
2455
+ inputProps: p,
2456
+ error: f,
2457
+ disabled: g,
2458
+ loading: m,
2459
+ helper: h,
2460
+ prefix: y,
2436
2461
  suffix: S,
2437
2462
  clearable: v = !1,
2438
2463
  id: x,
2439
2464
  showLabel: _ = !0,
2440
2465
  onFocus: w,
2441
2466
  onBlur: L,
2442
- onSuffixClick: $,
2467
+ onSuffixClick: M,
2443
2468
  onClear: j,
2444
- className: M,
2445
- truncate: A = !0,
2469
+ className: $,
2470
+ truncate: R = !0,
2446
2471
  hint: D,
2447
- showHint: z = !1,
2472
+ showHint: P = !1,
2448
2473
  showHintOnEmpty: F = !1,
2449
2474
  wrapperProps: O,
2450
2475
  labelProps: C,
2451
- helperProps: R,
2476
+ helperProps: T,
2452
2477
  ...B
2453
- }, U) => {
2454
- const V = (e || "").length > 0, Q = c === re.LARGE, ie = !!m, Z = Q && _ && !m, ue = v && V && !(h || y), ee = () => {
2478
+ }, z) => {
2479
+ const V = (e || "").length > 0, Q = c === re.LARGE, ie = !!y, Z = Q && _ && !y, ue = v && V && !(g || m), ee = () => {
2455
2480
  a == null || a(""), j == null || j();
2456
2481
  }, Ce = ue ? /* @__PURE__ */ n.jsx(
2457
- Xt,
2482
+ Qt,
2458
2483
  {
2459
2484
  size: c === re.SMALL ? "xs" : "sm",
2460
2485
  color: "var(--icon-secondary)",
@@ -2462,57 +2487,57 @@ const zt = Object.assign(On, {
2462
2487
  style: { cursor: "pointer" },
2463
2488
  "data-testid": "x-icon"
2464
2489
  }
2465
- ) : S, qe = {
2490
+ ) : S, Be = {
2466
2491
  type: r,
2467
2492
  minLength: o,
2468
2493
  autoComplete: l,
2469
2494
  autoFocus: d,
2470
- ...f
2471
- }, me = Wn(c, Z, V, ie);
2495
+ ...p
2496
+ }, me = ho(c, Z, V, ie);
2472
2497
  return /* @__PURE__ */ n.jsx(
2473
- er,
2498
+ tr,
2474
2499
  {
2475
2500
  size: c,
2476
- error: p,
2477
- disabled: h || y,
2478
- loading: y,
2479
- helper: b,
2480
- prefix: m,
2501
+ error: f,
2502
+ disabled: g || m,
2503
+ loading: m,
2504
+ helper: h,
2505
+ prefix: y,
2481
2506
  suffix: Ce,
2482
2507
  id: x,
2483
2508
  showLabel: Z,
2484
2509
  onFocus: w,
2485
2510
  onBlur: L,
2486
- onSuffixClick: $,
2511
+ onSuffixClick: M,
2487
2512
  onChange: a,
2488
2513
  value: e,
2489
2514
  placeholder: s,
2490
- className: M,
2515
+ className: $,
2491
2516
  wrapperStyles: me.wrapperStyles,
2492
2517
  floatingLabelStyles: me.floatingLabelStyles,
2493
2518
  prefixStyles: me.prefixStyles,
2494
2519
  suffixStyles: me.suffixStyles,
2495
2520
  wrapperProps: O,
2496
2521
  labelProps: C,
2497
- helperProps: R,
2522
+ helperProps: T,
2498
2523
  showLimit: !1,
2499
2524
  maxLength: i,
2500
- inputProps: qe,
2525
+ inputProps: Be,
2501
2526
  hint: D,
2502
- showHint: z,
2527
+ showHint: P,
2503
2528
  showHintOnEmpty: F,
2504
- truncate: A,
2529
+ truncate: R,
2505
2530
  ...B
2506
2531
  }
2507
2532
  );
2508
2533
  }
2509
- ), he = {
2534
+ ), ge = {
2510
2535
  SMALL: "small",
2511
2536
  MEDIUM: "medium"
2512
2537
  }, Je = {
2513
2538
  SMALL: "12px",
2514
2539
  MEDIUM: "16px"
2515
- }, Vn = {
2540
+ }, bo = {
2516
2541
  SMALL: "xs",
2517
2542
  MEDIUM: "sm"
2518
2543
  }, Ze = {
@@ -2521,7 +2546,7 @@ const zt = Object.assign(On, {
2521
2546
  }, ct = {
2522
2547
  SMALL: "112px",
2523
2548
  MEDIUM: "56px"
2524
- }, Ae = {
2549
+ }, De = {
2525
2550
  SMALL: "48px",
2526
2551
  MEDIUM: "22px"
2527
2552
  }, ve = {
@@ -2533,38 +2558,38 @@ const zt = Object.assign(On, {
2533
2558
  SMALL: 48,
2534
2559
  MEDIUM: 56,
2535
2560
  LARGE: 112
2536
- }, Hn = (e, a) => {
2537
- if (e === he.SMALL)
2561
+ }, mo = (e, a) => {
2562
+ if (e === ge.SMALL)
2538
2563
  return ct.SMALL;
2539
2564
  if (a)
2540
2565
  return `${a}px`;
2541
2566
  switch (e) {
2542
- case he.MEDIUM:
2567
+ case ge.MEDIUM:
2543
2568
  return ct.MEDIUM;
2544
2569
  default:
2545
2570
  return ct.MEDIUM;
2546
2571
  }
2547
- }, Gn = (e, a) => {
2548
- if (e === he.SMALL)
2549
- return Ae.SMALL;
2572
+ }, yo = (e, a) => {
2573
+ if (e === ge.SMALL)
2574
+ return De.SMALL;
2550
2575
  if (a)
2551
2576
  switch (a) {
2552
2577
  case we.SMALL:
2553
2578
  case we.MEDIUM:
2554
- return Ae.MEDIUM;
2579
+ return De.MEDIUM;
2555
2580
  case we.LARGE:
2556
- return Ae.SMALL;
2581
+ return De.SMALL;
2557
2582
  default:
2558
- return Ae.MEDIUM;
2583
+ return De.MEDIUM;
2559
2584
  }
2560
2585
  switch (e) {
2561
- case he.MEDIUM:
2562
- return Ae.MEDIUM;
2586
+ case ge.MEDIUM:
2587
+ return De.MEDIUM;
2563
2588
  default:
2564
- return Ae.MEDIUM;
2589
+ return De.MEDIUM;
2565
2590
  }
2566
- }, Zn = (e, a, r) => {
2567
- if (e === he.SMALL)
2591
+ }, vo = (e, a, r) => {
2592
+ if (e === ge.SMALL)
2568
2593
  return ve.SMALL;
2569
2594
  if (a)
2570
2595
  switch (a) {
@@ -2578,13 +2603,13 @@ const zt = Object.assign(On, {
2578
2603
  return ve.MEDIUM;
2579
2604
  }
2580
2605
  switch (e) {
2581
- case he.MEDIUM:
2606
+ case ge.MEDIUM:
2582
2607
  return r ? ve.MEDIUM_FLOATING_LABEL : ve.MEDIUM;
2583
2608
  default:
2584
2609
  return ve.MEDIUM;
2585
2610
  }
2586
- }, Yn = (e, a) => {
2587
- if (e === he.SMALL)
2611
+ }, xo = (e, a) => {
2612
+ if (e === ge.SMALL)
2588
2613
  return "small";
2589
2614
  if (a)
2590
2615
  switch (a) {
@@ -2598,8 +2623,8 @@ const zt = Object.assign(On, {
2598
2623
  return "medium";
2599
2624
  }
2600
2625
  return e;
2601
- }, Jn = (e) => Vn[e.toUpperCase()], Kn = (e) => Je[e.toUpperCase()], Xn = (e, a, r, s) => {
2602
- const i = Hn(e, a), o = Gn(e, a), l = Zn(e, a, r);
2626
+ }, wo = (e) => bo[e.toUpperCase()], Co = (e) => Je[e.toUpperCase()], So = (e, a, r, s) => {
2627
+ const i = mo(e, a), o = yo(e, a), l = vo(e, a, r);
2603
2628
  return {
2604
2629
  wrapperStyles: {
2605
2630
  minHeight: i,
@@ -2611,12 +2636,12 @@ const zt = Object.assign(On, {
2611
2636
  padding: l
2612
2637
  },
2613
2638
  floatingLabelStyles: {
2614
- left: e === he.SMALL ? Je.SMALL : Je.MEDIUM,
2639
+ left: e === ge.SMALL ? Je.SMALL : Je.MEDIUM,
2615
2640
  transformOrigin: "left top",
2616
- top: a === 112 && r && e === he.MEDIUM ? Je.MEDIUM : void 0
2641
+ top: a === 112 && r && e === ge.MEDIUM ? Je.MEDIUM : void 0
2617
2642
  },
2618
2643
  suffixStyles: {
2619
- right: Kn(e)
2644
+ right: Co(e)
2620
2645
  },
2621
2646
  textareaStyles: {
2622
2647
  minHeight: o,
@@ -2626,7 +2651,7 @@ const zt = Object.assign(On, {
2626
2651
  ...s === Ze.FIXED && a && { height: o }
2627
2652
  }
2628
2653
  };
2629
- }, el = X(
2654
+ }, jl = X(
2630
2655
  ({
2631
2656
  value: e = "",
2632
2657
  onChange: a,
@@ -2634,62 +2659,62 @@ const zt = Object.assign(On, {
2634
2659
  maxLength: s,
2635
2660
  minLength: i,
2636
2661
  autoFocus: o,
2637
- size: l = he.MEDIUM,
2662
+ size: l = ge.MEDIUM,
2638
2663
  textareaProps: d,
2639
2664
  error: c,
2640
- disabled: f,
2641
- loading: p,
2642
- helper: h,
2643
- suffix: y,
2644
- clearable: b = !1,
2645
- id: m,
2665
+ disabled: p,
2666
+ loading: f,
2667
+ helper: g,
2668
+ suffix: m,
2669
+ clearable: h = !1,
2670
+ id: y,
2646
2671
  showLabel: S = !0,
2647
2672
  onFocus: v,
2648
2673
  onBlur: x,
2649
2674
  onClear: _,
2650
2675
  onKeyDown: w,
2651
2676
  className: L,
2652
- rows: $ = 1,
2677
+ rows: M = 1,
2653
2678
  showLimit: j = !1,
2654
- wrapperProps: M,
2655
- labelProps: A,
2679
+ wrapperProps: $,
2680
+ labelProps: R,
2656
2681
  helperProps: D,
2657
- showGrip: z,
2682
+ showGrip: P,
2658
2683
  minHeight: F,
2659
2684
  resize: O,
2660
2685
  ...C
2661
- }, R) => {
2662
- const B = (e || "").length > 0, U = S && !!r && (l === he.SMALL || F !== 48), V = b && B && !(f || p), Q = () => {
2686
+ }, T) => {
2687
+ const B = (e || "").length > 0, z = S && !!r && (l === ge.SMALL || F !== 48), V = h && B && !(p || f), Q = () => {
2663
2688
  a == null || a(""), _ == null || _();
2664
2689
  }, ie = V ? /* @__PURE__ */ n.jsx(
2665
- Xt,
2690
+ Qt,
2666
2691
  {
2667
- size: Jn(l),
2692
+ size: wo(l),
2668
2693
  color: "var(--icon-secondary)",
2669
2694
  onClick: Q,
2670
2695
  style: { cursor: "pointer" },
2671
2696
  "data-testid": "x-icon"
2672
2697
  }
2673
- ) : y, Z = Xn(l, F, U && B, O), ue = Yn(l, F), ee = {
2674
- rows: $,
2698
+ ) : m, Z = So(l, F, z && B, O), ue = xo(l, F), ee = {
2699
+ rows: M,
2675
2700
  minLength: i,
2676
2701
  autoFocus: o,
2677
2702
  resize: O,
2678
2703
  ...d
2679
2704
  };
2680
2705
  return /* @__PURE__ */ n.jsx(
2681
- er,
2706
+ tr,
2682
2707
  {
2683
- ref: R,
2708
+ ref: T,
2684
2709
  component: "textarea",
2685
2710
  size: ue,
2686
2711
  error: c,
2687
- disabled: f || p,
2688
- loading: p,
2689
- helper: h,
2712
+ disabled: p || f,
2713
+ loading: f,
2714
+ helper: g,
2690
2715
  suffix: ie,
2691
- id: m,
2692
- showLabel: U,
2716
+ id: y,
2717
+ showLabel: z,
2693
2718
  onFocus: v,
2694
2719
  onBlur: x,
2695
2720
  onKeyDown: w,
@@ -2697,28 +2722,28 @@ const zt = Object.assign(On, {
2697
2722
  value: e || "",
2698
2723
  placeholder: r,
2699
2724
  className: L,
2700
- "data-floating-label": U,
2725
+ "data-floating-label": z,
2701
2726
  wrapperStyles: Z.wrapperStyles,
2702
2727
  floatingLabelStyles: Z.floatingLabelStyles,
2703
2728
  suffixStyles: Z.suffixStyles,
2704
2729
  textareaStyles: Z.textareaStyles,
2705
- wrapperProps: M,
2706
- labelProps: A,
2730
+ wrapperProps: $,
2731
+ labelProps: R,
2707
2732
  helperProps: D,
2708
- showLimit: j && (F === 112 || l === he.SMALL),
2733
+ showLimit: j && (F === 112 || l === ge.SMALL),
2709
2734
  maxLength: s,
2710
2735
  inputProps: ee,
2711
2736
  resize: O,
2712
- showGrip: z,
2737
+ showGrip: P,
2713
2738
  ...C
2714
2739
  }
2715
2740
  );
2716
2741
  }
2717
- ), Qn = "_helper_1jq7j_16", dt = {
2718
- helper: Qn,
2742
+ ), Lo = "_helper_1jq7j_16", dt = {
2743
+ helper: Lo,
2719
2744
  "helper--error": "_helper--error_1jq7j_28",
2720
2745
  "helper--disabled": "_helper--disabled_1jq7j_33"
2721
- }, tl = ({
2746
+ }, kl = ({
2722
2747
  title: e,
2723
2748
  error: a,
2724
2749
  className: r = "",
@@ -2728,40 +2753,40 @@ const zt = Object.assign(On, {
2728
2753
  "aria-label": l,
2729
2754
  "aria-describedby": d
2730
2755
  }) => {
2731
- const c = !!a, f = k(
2756
+ const c = !!a, p = k(
2732
2757
  dt.helper,
2733
2758
  c && dt["helper--error"],
2734
2759
  i && dt["helper--disabled"],
2735
2760
  r
2736
- ), p = i ? e : a || e;
2761
+ ), f = i ? e : a || e;
2737
2762
  return /* @__PURE__ */ n.jsx(
2738
2763
  "div",
2739
2764
  {
2740
- className: f,
2765
+ className: p,
2741
2766
  style: s,
2742
2767
  "data-testid": o,
2743
2768
  "aria-label": l,
2744
2769
  "aria-describedby": d,
2745
- children: /* @__PURE__ */ n.jsx("p", { children: p })
2770
+ children: /* @__PURE__ */ n.jsx("p", { children: f })
2746
2771
  }
2747
2772
  );
2748
- }, eo = "_radio_1q34w_54", to = "_checked_1q34w_75", ro = "_error_1q34w_80", ao = "_disabled_1q34w_89", so = "_icon_1q34w_125", no = "_small_1q34w_133", oo = "_medium_1q34w_140", io = "_large_1q34w_147", lo = "_label_1q34w_154", co = "_container_1q34w_180", uo = "_input_1q34w_193", _o = "_card_1q34w_200", po = "_smallCard_1q34w_206", fo = "_mediumCard_1q34w_210", ho = "_largeCard_1q34w_214", le = {
2749
- radio: eo,
2750
- checked: to,
2751
- error: ro,
2752
- disabled: ao,
2753
- icon: so,
2754
- small: no,
2755
- medium: oo,
2756
- large: io,
2757
- label: lo,
2758
- container: co,
2759
- input: uo,
2760
- card: _o,
2761
- smallCard: po,
2762
- mediumCard: fo,
2763
- largeCard: ho
2764
- }, bo = "radio-container-", go = "radio-label", tr = X(
2773
+ }, Eo = "_radio_1q34w_54", jo = "_checked_1q34w_75", ko = "_error_1q34w_80", $o = "_disabled_1q34w_89", Mo = "_icon_1q34w_125", Io = "_small_1q34w_133", Ro = "_medium_1q34w_140", To = "_large_1q34w_147", No = "_label_1q34w_154", Ao = "_container_1q34w_180", Do = "_input_1q34w_193", Oo = "_card_1q34w_200", Po = "_smallCard_1q34w_206", qo = "_mediumCard_1q34w_210", Bo = "_largeCard_1q34w_214", le = {
2774
+ radio: Eo,
2775
+ checked: jo,
2776
+ error: ko,
2777
+ disabled: $o,
2778
+ icon: Mo,
2779
+ small: Io,
2780
+ medium: Ro,
2781
+ large: To,
2782
+ label: No,
2783
+ container: Ao,
2784
+ input: Do,
2785
+ card: Oo,
2786
+ smallCard: Po,
2787
+ mediumCard: qo,
2788
+ largeCard: Bo
2789
+ }, Uo = "radio-container-", zo = "radio-label", rr = X(
2765
2790
  (e, a) => {
2766
2791
  const {
2767
2792
  name: r,
@@ -2771,49 +2796,49 @@ const zt = Object.assign(On, {
2771
2796
  loading: l = !1,
2772
2797
  error: d,
2773
2798
  disabled: c = !1,
2774
- checked: f = !1,
2775
- containerClassName: p,
2776
- className: h,
2777
- children: y,
2778
- clickable: b = "all",
2779
- mode: m = "default",
2799
+ checked: p = !1,
2800
+ containerClassName: f,
2801
+ className: g,
2802
+ children: m,
2803
+ clickable: h = "all",
2804
+ mode: y = "default",
2780
2805
  tabIndex: S,
2781
2806
  style: v,
2782
2807
  containerStyle: x,
2783
2808
  onChange: _,
2784
2809
  "data-testid": w,
2785
2810
  ...L
2786
- } = e, $ = !!d, j = c || l, M = b === "all", A = m === "card", D = le[`${o}Card`], z = s ?? r, F = (U) => {
2787
- j || _ == null || _(i, U);
2788
- }, O = (U) => {
2789
- U.key === "Enter" && !j && (U.preventDefault(), _ == null || _(i));
2790
- }, C = (U) => U.stopPropagation(), R = () => /* @__PURE__ */ n.jsxs(
2811
+ } = e, M = !!d, j = c || l, $ = h === "all", R = y === "card", D = le[`${o}Card`], P = s ?? r, F = (z) => {
2812
+ j || _ == null || _(i, z);
2813
+ }, O = (z) => {
2814
+ z.key === "Enter" && !j && (z.preventDefault(), _ == null || _(i));
2815
+ }, C = (z) => z.stopPropagation(), T = () => /* @__PURE__ */ n.jsxs(
2791
2816
  "div",
2792
2817
  {
2793
2818
  className: k(
2794
2819
  le.radio,
2795
2820
  le[o],
2796
2821
  {
2797
- [le.checked]: f,
2822
+ [le.checked]: p,
2798
2823
  [le.disabled]: j,
2799
- [le.error]: $ && !j
2824
+ [le.error]: M && !j
2800
2825
  },
2801
- h
2826
+ g
2802
2827
  ),
2803
2828
  style: v,
2804
2829
  tabIndex: S || 1,
2805
- "data-testid": `${bo}${z}`,
2830
+ "data-testid": `${Uo}${P}`,
2806
2831
  children: [
2807
2832
  /* @__PURE__ */ n.jsx(
2808
2833
  "input",
2809
2834
  {
2810
2835
  "aria-errormessage": d,
2811
- "aria-invalid": $,
2812
- checked: f,
2836
+ "aria-invalid": M,
2837
+ checked: p,
2813
2838
  className: le.input,
2814
- "data-testid": `radio-${z}`,
2839
+ "data-testid": `radio-${P}`,
2815
2840
  disabled: j,
2816
- id: z,
2841
+ id: P,
2817
2842
  name: r,
2818
2843
  ref: a,
2819
2844
  type: "radio",
@@ -2822,48 +2847,48 @@ const zt = Object.assign(On, {
2822
2847
  onClick: C
2823
2848
  }
2824
2849
  ),
2825
- /* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${z}`, viewBox: "0 0 8 8", className: le.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
2850
+ /* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${P}`, viewBox: "0 0 8 8", className: le.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
2826
2851
  ]
2827
2852
  }
2828
2853
  ), B = () => /* @__PURE__ */ n.jsxs(
2829
2854
  "label",
2830
2855
  {
2831
- "aria-checked": f,
2856
+ "aria-checked": p,
2832
2857
  "aria-disabled": j,
2833
- "data-testid": M ? w : go,
2834
- htmlFor: z,
2858
+ "data-testid": $ ? w : zo,
2859
+ htmlFor: P,
2835
2860
  style: x,
2836
2861
  className: k(le.label, {
2837
- [k(le.container, le[m], p)]: M,
2838
- [D]: M && A
2862
+ [k(le.container, le[y], f)]: $,
2863
+ [D]: $ && R
2839
2864
  }),
2840
2865
  onKeyDown: O,
2841
2866
  ...L,
2842
2867
  children: [
2843
- R(),
2844
- M && y
2868
+ T(),
2869
+ $ && m
2845
2870
  ]
2846
2871
  }
2847
2872
  );
2848
- return M ? B() : /* @__PURE__ */ n.jsxs(
2873
+ return $ ? B() : /* @__PURE__ */ n.jsxs(
2849
2874
  "div",
2850
2875
  {
2851
- className: k(le.container, le[m], p, {
2852
- [D]: A
2876
+ className: k(le.container, le[y], f, {
2877
+ [D]: R
2853
2878
  }),
2854
2879
  "data-testid": w,
2855
2880
  children: [
2856
2881
  B(),
2857
- y
2882
+ m
2858
2883
  ]
2859
2884
  }
2860
2885
  );
2861
2886
  }
2862
- ), mo = "_group_o6mjt_7", yo = "_vertical_o6mjt_12", vo = "_horizontal_o6mjt_16", Ut = {
2863
- group: mo,
2864
- vertical: yo,
2865
- horizontal: vo
2866
- }, xo = X(
2887
+ ), Fo = "_group_o6mjt_7", Wo = "_vertical_o6mjt_12", Vo = "_horizontal_o6mjt_16", zt = {
2888
+ group: Fo,
2889
+ vertical: Wo,
2890
+ horizontal: Vo
2891
+ }, Ho = X(
2867
2892
  (e, a) => {
2868
2893
  const {
2869
2894
  id: r,
@@ -2873,31 +2898,31 @@ const zt = Object.assign(On, {
2873
2898
  className: l,
2874
2899
  radioClassName: d,
2875
2900
  disabled: c = !1,
2876
- layout: f = "vertical",
2877
- "data-testid": p,
2878
- ...h
2901
+ layout: p = "vertical",
2902
+ "data-testid": f,
2903
+ ...g
2879
2904
  } = e;
2880
2905
  return /* @__PURE__ */ n.jsx(
2881
2906
  "div",
2882
2907
  {
2883
- className: Le(Ut.group, Ut[f], l),
2884
- "data-testid": p ?? `radio-group-${s}`,
2908
+ className: Ee(zt.group, zt[p], l),
2909
+ "data-testid": f ?? `radio-group-${s}`,
2885
2910
  id: r,
2886
2911
  ref: a,
2887
- children: o.map(({ label: y, value: b, disabled: m }) => {
2888
- const S = `${s}-${String(b)}`, v = String(b) === String(i);
2912
+ children: o.map(({ label: m, value: h, disabled: y }) => {
2913
+ const S = `${s}-${String(h)}`, v = String(h) === String(i);
2889
2914
  return /* @__PURE__ */ n.jsx(
2890
- tr,
2915
+ rr,
2891
2916
  {
2892
2917
  id: S,
2893
2918
  checked: v,
2894
2919
  "data-testid": S,
2895
- disabled: c || m,
2920
+ disabled: c || y,
2896
2921
  name: s,
2897
- value: b,
2922
+ value: h,
2898
2923
  className: d,
2899
- ...h,
2900
- children: y
2924
+ ...g,
2925
+ children: m
2901
2926
  },
2902
2927
  S
2903
2928
  );
@@ -2905,20 +2930,20 @@ const zt = Object.assign(On, {
2905
2930
  }
2906
2931
  );
2907
2932
  }
2908
- ), rl = Object.assign(tr, {
2909
- Group: xo
2910
- }), wo = "_root_1jj3e_25", Co = "_unordered_1jj3e_39", So = "_ordered_1jj3e_43", Lo = "_sm_1jj3e_48", Eo = "_md_1jj3e_59", jo = "_lg_1jj3e_70", ko = "_xl_1jj3e_81", ut = {
2911
- root: wo,
2912
- unordered: Co,
2913
- ordered: So,
2914
- sm: Lo,
2915
- md: Eo,
2916
- lg: jo,
2917
- xl: ko
2918
- }, $o = (e) => {
2933
+ ), $l = Object.assign(rr, {
2934
+ Group: Ho
2935
+ }), Go = "_root_1jj3e_25", Zo = "_unordered_1jj3e_39", Yo = "_ordered_1jj3e_43", Jo = "_sm_1jj3e_48", Ko = "_md_1jj3e_59", Xo = "_lg_1jj3e_70", Qo = "_xl_1jj3e_81", ut = {
2936
+ root: Go,
2937
+ unordered: Zo,
2938
+ ordered: Yo,
2939
+ sm: Jo,
2940
+ md: Ko,
2941
+ lg: Xo,
2942
+ xl: Qo
2943
+ }, ei = (e) => {
2919
2944
  const { children: a, className: r, "data-testid": s = "list-item" } = e;
2920
2945
  return /* @__PURE__ */ n.jsx("li", { "data-testid": s, className: r, children: a });
2921
- }, al = Object.assign(
2946
+ }, Ml = Object.assign(
2922
2947
  X((e, a) => {
2923
2948
  const {
2924
2949
  variant: r = "unordered",
@@ -2933,33 +2958,33 @@ const zt = Object.assign(On, {
2933
2958
  {
2934
2959
  "data-testid": l,
2935
2960
  ref: a,
2936
- className: Le(ut.root, ut[r], ut[o], s),
2961
+ className: Ee(ut.root, ut[r], ut[o], s),
2937
2962
  ...r === "ordered" && d,
2938
2963
  children: i
2939
2964
  }
2940
2965
  );
2941
2966
  }),
2942
- { Item: $o }
2943
- ), Mo = "_wrapper_1v8xn_5", Io = "_viewport_1v8xn_12", Ro = "_mask_1v8xn_26", To = "_maskLeft_1v8xn_37", No = "_maskRight_1v8xn_42", Ao = "_visible_1v8xn_46", Do = "_control_1v8xn_51", Oo = "_xs_1v8xn_70", Po = "_sm_1v8xn_73", Bo = "_md_1v8xn_76", qo = "_left_1v8xn_80", zo = "_right_1v8xn_83", se = {
2944
- wrapper: Mo,
2945
- viewport: Io,
2946
- mask: Ro,
2947
- maskLeft: To,
2948
- maskRight: No,
2949
- visible: Ao,
2950
- control: Do,
2951
- xs: Oo,
2952
- sm: Po,
2953
- md: Bo,
2954
- left: qo,
2955
- right: zo
2956
- }, Uo = "white", Fo = ({
2967
+ { Item: ei }
2968
+ ), ti = "_wrapper_1v8xn_5", ri = "_viewport_1v8xn_12", ai = "_mask_1v8xn_26", si = "_maskLeft_1v8xn_37", ni = "_maskRight_1v8xn_42", oi = "_visible_1v8xn_46", ii = "_control_1v8xn_51", li = "_xs_1v8xn_70", ci = "_sm_1v8xn_73", di = "_md_1v8xn_76", ui = "_left_1v8xn_80", _i = "_right_1v8xn_83", se = {
2969
+ wrapper: ti,
2970
+ viewport: ri,
2971
+ mask: ai,
2972
+ maskLeft: si,
2973
+ maskRight: ni,
2974
+ visible: oi,
2975
+ control: ii,
2976
+ xs: li,
2977
+ sm: ci,
2978
+ md: di,
2979
+ left: ui,
2980
+ right: _i
2981
+ }, pi = "white", fi = ({
2957
2982
  children: e,
2958
2983
  withControls: a = !0,
2959
2984
  className: r,
2960
2985
  size: s
2961
2986
  }) => {
2962
- const i = Be(null), [o, l] = de(!1), [d, c] = de(!1), { ref: f, bgColor: p } = Yt(), h = f ?? { current: null }, y = p ?? Uo, b = a && o, m = a && d, S = ({ direction: _ }) => /* @__PURE__ */ n.jsx(
2987
+ const i = qe(null), [o, l] = ce(!1), [d, c] = ce(!1), { ref: p, bgColor: f } = Jt(), g = p ?? { current: null }, m = f ?? pi, h = a && o, y = a && d, S = ({ direction: _ }) => /* @__PURE__ */ n.jsx(
2963
2988
  "svg",
2964
2989
  {
2965
2990
  height: "12px",
@@ -2977,49 +3002,49 @@ const zt = Object.assign(On, {
2977
3002
  ), v = () => {
2978
3003
  const _ = i.current;
2979
3004
  if (!_) return;
2980
- const w = Math.round(_.scrollLeft), L = Math.round(_.scrollLeft + _.clientWidth), $ = Math.round(_.scrollWidth);
2981
- l(w > 0), c(L < $);
3005
+ const w = Math.round(_.scrollLeft), L = Math.round(_.scrollLeft + _.clientWidth), M = Math.round(_.scrollWidth);
3006
+ l(w > 0), c(L < M);
2982
3007
  }, x = (_) => {
2983
3008
  const w = i.current;
2984
3009
  if (!w) return;
2985
3010
  const L = w.clientWidth;
2986
3011
  w.scrollBy({ left: _ === "left" ? -L : L, behavior: "smooth" });
2987
3012
  };
2988
- return oe(() => {
3013
+ return de(() => {
2989
3014
  const _ = i.current;
2990
3015
  if (!_) return;
2991
3016
  const w = (L) => {
2992
3017
  Math.abs(L.deltaX) > Math.abs(L.deltaY) || _.scrollWidth > _.clientWidth && (L.preventDefault(), _.scrollBy({ left: L.deltaY, behavior: "auto" }));
2993
3018
  };
2994
3019
  return _.addEventListener("wheel", w, { passive: !1 }), () => _.removeEventListener("wheel", w);
2995
- }, []), oe(() => {
3020
+ }, []), de(() => {
2996
3021
  v();
2997
3022
  const _ = i.current;
2998
3023
  if (_)
2999
3024
  return _.addEventListener("scroll", v, { passive: !0 }), window.addEventListener("resize", v), () => {
3000
3025
  _.removeEventListener("scroll", v), window.removeEventListener("resize", v);
3001
3026
  };
3002
- }, []), /* @__PURE__ */ n.jsxs("div", { ref: h, className: k(se.wrapper, r), children: [
3003
- b && /* @__PURE__ */ n.jsx(
3027
+ }, []), /* @__PURE__ */ n.jsxs("div", { ref: g, className: k(se.wrapper, r), children: [
3028
+ h && /* @__PURE__ */ n.jsx(
3004
3029
  "div",
3005
3030
  {
3006
3031
  className: k(se.mask, se.maskLeft, o && se.visible),
3007
3032
  style: {
3008
- background: `linear-gradient(to right, ${y} 17%, transparent 80%)`
3033
+ background: `linear-gradient(to right, ${m} 17%, transparent 80%)`
3009
3034
  }
3010
3035
  }
3011
3036
  ),
3012
- m && /* @__PURE__ */ n.jsx(
3037
+ y && /* @__PURE__ */ n.jsx(
3013
3038
  "div",
3014
3039
  {
3015
3040
  className: k(se.mask, se.maskRight, d && se.visible),
3016
3041
  style: {
3017
- background: `linear-gradient(to left, ${y} 17%, transparent 80%)`
3042
+ background: `linear-gradient(to left, ${m} 17%, transparent 80%)`
3018
3043
  }
3019
3044
  }
3020
3045
  ),
3021
3046
  /* @__PURE__ */ n.jsx("div", { ref: i, className: se.viewport, children: e }),
3022
- b && /* @__PURE__ */ n.jsx(
3047
+ h && /* @__PURE__ */ n.jsx(
3023
3048
  "button",
3024
3049
  {
3025
3050
  type: "button",
@@ -3030,7 +3055,7 @@ const zt = Object.assign(On, {
3030
3055
  children: /* @__PURE__ */ n.jsx(S, { direction: "left" })
3031
3056
  }
3032
3057
  ),
3033
- m && /* @__PURE__ */ n.jsx(
3058
+ y && /* @__PURE__ */ n.jsx(
3034
3059
  "button",
3035
3060
  {
3036
3061
  type: "button",
@@ -3042,34 +3067,34 @@ const zt = Object.assign(On, {
3042
3067
  }
3043
3068
  )
3044
3069
  ] });
3045
- }, Wo = "_tabBar_1ndpm_82", Vo = "_primary_1ndpm_88", Ho = "_secondary_1ndpm_93", Go = "_tab_1ndpm_82", Zo = "_md_1ndpm_125", Yo = "_sm_1ndpm_129", Jo = "_xs_1ndpm_133", Ko = "_disabled_1ndpm_137", Xo = "_selected_1ndpm_143", Qo = "_tabLabel_1ndpm_222", ei = "_tabPrefix_1ndpm_234", ti = "_tabPostfix_1ndpm_270", K = {
3046
- tabBar: Wo,
3047
- primary: Vo,
3048
- secondary: Ho,
3049
- tab: Go,
3050
- md: Zo,
3051
- sm: Yo,
3052
- xs: Jo,
3053
- disabled: Ko,
3054
- selected: Xo,
3055
- tabLabel: Qo,
3056
- tabPrefix: ei,
3057
- tabPostfix: ti
3058
- }, ri = "md", ai = !1, si = 8, ni = "top-right-inside", rr = Ht(null), ar = () => {
3059
- const e = Gt(rr);
3070
+ }, gi = "_tabBar_1ndpm_82", hi = "_primary_1ndpm_88", bi = "_secondary_1ndpm_93", mi = "_tab_1ndpm_82", yi = "_md_1ndpm_125", vi = "_sm_1ndpm_129", xi = "_xs_1ndpm_133", wi = "_disabled_1ndpm_137", Ci = "_selected_1ndpm_143", Si = "_tabLabel_1ndpm_222", Li = "_tabPrefix_1ndpm_234", Ei = "_tabPostfix_1ndpm_270", K = {
3071
+ tabBar: gi,
3072
+ primary: hi,
3073
+ secondary: bi,
3074
+ tab: mi,
3075
+ md: yi,
3076
+ sm: vi,
3077
+ xs: xi,
3078
+ disabled: wi,
3079
+ selected: Ci,
3080
+ tabLabel: Si,
3081
+ tabPrefix: Li,
3082
+ tabPostfix: Ei
3083
+ }, ji = "md", ki = !1, $i = 8, Mi = "top-right-inside", ar = Ht(null), sr = () => {
3084
+ const e = Gt(ar);
3060
3085
  if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
3061
3086
  return e;
3062
- }, oi = ({
3087
+ }, Ii = ({
3063
3088
  children: e,
3064
3089
  defaultActiveTab: a,
3065
3090
  activeTab: r,
3066
3091
  onChange: s
3067
3092
  }) => {
3068
- const [i, o] = de(a), l = r !== void 0, d = l ? r : i, c = (f) => {
3069
- l || o(f), s && s(f);
3093
+ const [i, o] = ce(a), l = r !== void 0, d = l ? r : i, c = (p) => {
3094
+ l || o(p), s && s(p);
3070
3095
  };
3071
- return /* @__PURE__ */ n.jsx(rr.Provider, { value: { activeTab: d, setTab: c }, children: e });
3072
- }, ii = ({
3096
+ return /* @__PURE__ */ n.jsx(ar.Provider, { value: { activeTab: d, setTab: c }, children: e });
3097
+ }, Ri = ({
3073
3098
  mode: e,
3074
3099
  item: a,
3075
3100
  isActive: r,
@@ -3081,26 +3106,26 @@ const zt = Object.assign(On, {
3081
3106
  }) => {
3082
3107
  const {
3083
3108
  value: c,
3084
- label: f,
3085
- prefix: p,
3086
- prefixWrapperProps: h = {},
3087
- postfix: y,
3088
- postfixWrapperProps: b = {}
3089
- } = a, { className: m, ...S } = h, { className: v, ...x } = b, _ = {
3090
- primary: ce["typography-label-3-medium"],
3091
- secondary: ce["typography-label-3-regular"],
3092
- prefix: ce["typography-label-3-medium"],
3093
- postfix: ce["typography-label-3-medium"]
3109
+ label: p,
3110
+ prefix: f,
3111
+ prefixWrapperProps: g = {},
3112
+ postfix: m,
3113
+ postfixWrapperProps: h = {}
3114
+ } = a, { className: y, ...S } = g, { className: v, ...x } = h, _ = {
3115
+ primary: oe["typography-label-3-medium"],
3116
+ secondary: oe["typography-label-3-regular"],
3117
+ prefix: oe["typography-label-3-medium"],
3118
+ postfix: oe["typography-label-3-medium"]
3094
3119
  }, w = {
3095
- size: si,
3096
- position: ni,
3120
+ size: $i,
3121
+ position: Mi,
3097
3122
  ...i
3098
3123
  }, L = k(K.tab, K[e], K[o], {
3099
3124
  [K.selected]: r,
3100
3125
  [K.disabled]: l
3101
- }), $ = k(
3126
+ }), M = k(
3102
3127
  K.tabPrefix,
3103
- m,
3128
+ y,
3104
3129
  K[e],
3105
3130
  _.prefix,
3106
3131
  {
@@ -3116,51 +3141,51 @@ const zt = Object.assign(On, {
3116
3141
  [K.selected]: r,
3117
3142
  [K.disabled]: l
3118
3143
  }
3119
- ), M = k(K.tabLabel, K[e], _[e]), A = (z) => {
3120
- r || l || (d(c), z.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
3144
+ ), $ = k(K.tabLabel, K[e], _[e]), R = (P) => {
3145
+ r || l || (d(c), P.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
3121
3146
  }, D = /* @__PURE__ */ n.jsxs(
3122
3147
  "button",
3123
3148
  {
3124
3149
  className: L,
3125
3150
  role: "tab",
3126
- "aria-label": f,
3151
+ "aria-label": p,
3127
3152
  "aria-selected": r,
3128
3153
  "aria-disabled": l,
3129
3154
  "aria-controls": `tab-panel-${c}`,
3130
3155
  "data-testid": `tab-item-${c}`,
3131
- onClick: A,
3156
+ onClick: R,
3132
3157
  children: [
3133
- p && /* @__PURE__ */ n.jsx(
3158
+ f && /* @__PURE__ */ n.jsx(
3134
3159
  "span",
3135
3160
  {
3136
- className: $,
3161
+ className: M,
3137
3162
  ...S,
3138
3163
  "data-testid": `tab-prefix-${c}`,
3139
- children: p
3164
+ children: f
3140
3165
  }
3141
3166
  ),
3142
- /* @__PURE__ */ n.jsx("span", { className: M, "data-testid": `tab-label-${c}`, children: f }),
3143
- y && /* @__PURE__ */ n.jsx(
3167
+ /* @__PURE__ */ n.jsx("span", { className: $, "data-testid": `tab-label-${c}`, children: p }),
3168
+ m && /* @__PURE__ */ n.jsx(
3144
3169
  "span",
3145
3170
  {
3146
3171
  className: j,
3147
3172
  ...x,
3148
3173
  "data-testid": `tab-postfix-${c}`,
3149
- children: y
3174
+ children: m
3150
3175
  }
3151
3176
  )
3152
3177
  ]
3153
3178
  }
3154
3179
  );
3155
3180
  return s ? /* @__PURE__ */ n.jsx(es, { ...w, "data-testid": `tab-badge-${c}`, children: D }) : D;
3156
- }, li = ({
3181
+ }, Ti = ({
3157
3182
  mode: e,
3158
3183
  items: a,
3159
- size: r = ri,
3160
- isAllItemsDisabled: s = ai
3184
+ size: r = ji,
3185
+ isAllItemsDisabled: s = ki
3161
3186
  }) => {
3162
- const { activeTab: i, setTab: o } = ar(), l = Qa();
3163
- return /* @__PURE__ */ n.jsx(Fo, { size: r, withControls: l, children: /* @__PURE__ */ n.jsx(
3187
+ const { activeTab: i, setTab: o } = sr(), l = Qa();
3188
+ return /* @__PURE__ */ n.jsx(fi, { size: r, withControls: l, children: /* @__PURE__ */ n.jsx(
3164
3189
  "div",
3165
3190
  {
3166
3191
  role: "tablist",
@@ -3168,7 +3193,7 @@ const zt = Object.assign(On, {
3168
3193
  "aria-orientation": "horizontal",
3169
3194
  className: k(K.tabBar, K[e]),
3170
3195
  children: a.map((d) => /* @__PURE__ */ n.jsx(
3171
- ii,
3196
+ Ri,
3172
3197
  {
3173
3198
  size: r,
3174
3199
  item: d,
@@ -3183,7 +3208,7 @@ const zt = Object.assign(On, {
3183
3208
  ))
3184
3209
  }
3185
3210
  ) });
3186
- }, ci = ({ tabValue: e, children: a, ...r }) => /* @__PURE__ */ n.jsx(
3211
+ }, Ni = ({ tabValue: e, children: a, ...r }) => /* @__PURE__ */ n.jsx(
3187
3212
  "div",
3188
3213
  {
3189
3214
  role: "tabpanel",
@@ -3192,32 +3217,32 @@ const zt = Object.assign(On, {
3192
3217
  ...r,
3193
3218
  children: a
3194
3219
  }
3195
- ), di = ({ children: e, ...a }) => {
3196
- const { activeTab: r } = ar(), s = Array.isArray(e) ? e : [e], i = (o, l) => _t.isValidElement(o) && typeof o.props == "object" && o.props !== null && l in o.props;
3220
+ ), Ai = ({ children: e, ...a }) => {
3221
+ const { activeTab: r } = sr(), s = Array.isArray(e) ? e : [e], i = (o, l) => _t.isValidElement(o) && typeof o.props == "object" && o.props !== null && l in o.props;
3197
3222
  return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...a, children: s.map((o) => i(o, "tabValue") && String(o.props.tabValue) === r ? o : null) });
3198
- }, sl = {
3199
- Provider: oi,
3200
- Content: di,
3201
- Panel: ci,
3202
- Bar: li
3203
- }, ui = "_root_1fbbw_34", _i = "_open_1fbbw_51", pi = "_xs_1fbbw_55", fi = "_s_1fbbw_61", hi = "_m_1fbbw_67", bi = "_neutral_1fbbw_73", gi = "_contrast_1fbbw_78", mi = "_accent_1fbbw_84", yi = "_typography_1fbbw_89", vi = "_title_1fbbw_89", xi = "_text_1fbbw_93", wi = "_mediaWrapper_1fbbw_97", Ci = "_content_1fbbw_112", Si = "_closeButton_1fbbw_116", Li = "_hasMedia_1fbbw_142", Ei = "_buttonStack_1fbbw_148", ne = {
3204
- root: ui,
3205
- open: _i,
3206
- xs: pi,
3207
- s: fi,
3208
- m: hi,
3209
- neutral: bi,
3210
- contrast: gi,
3211
- accent: mi,
3212
- typography: yi,
3213
- title: vi,
3214
- text: xi,
3215
- mediaWrapper: wi,
3216
- content: Ci,
3217
- closeButton: Si,
3218
- hasMedia: Li,
3219
- buttonStack: Ei
3220
- }, ji = () => /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), ki = () => /* @__PURE__ */ n.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
3223
+ }, Il = {
3224
+ Provider: Ii,
3225
+ Content: Ai,
3226
+ Panel: Ni,
3227
+ Bar: Ti
3228
+ }, Di = "_root_1fbbw_34", Oi = "_open_1fbbw_51", Pi = "_xs_1fbbw_55", qi = "_s_1fbbw_61", Bi = "_m_1fbbw_67", Ui = "_neutral_1fbbw_73", zi = "_contrast_1fbbw_78", Fi = "_accent_1fbbw_84", Wi = "_typography_1fbbw_89", Vi = "_title_1fbbw_89", Hi = "_text_1fbbw_93", Gi = "_mediaWrapper_1fbbw_97", Zi = "_content_1fbbw_112", Yi = "_closeButton_1fbbw_116", Ji = "_hasMedia_1fbbw_142", Ki = "_buttonStack_1fbbw_148", ne = {
3229
+ root: Di,
3230
+ open: Oi,
3231
+ xs: Pi,
3232
+ s: qi,
3233
+ m: Bi,
3234
+ neutral: Ui,
3235
+ contrast: zi,
3236
+ accent: Fi,
3237
+ typography: Wi,
3238
+ title: Vi,
3239
+ text: Hi,
3240
+ mediaWrapper: Gi,
3241
+ content: Zi,
3242
+ closeButton: Yi,
3243
+ hasMedia: Ji,
3244
+ buttonStack: Ki
3245
+ }, Xi = () => /* @__PURE__ */ n.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ n.jsx("path", { d: "M18 6 6 18M6 6l12 12" }) }), Qi = () => /* @__PURE__ */ n.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 9", fill: "currentColor", children: [
3221
3246
  /* @__PURE__ */ n.jsx(
3222
3247
  "path",
3223
3248
  {
@@ -3228,7 +3253,7 @@ const zt = Object.assign(On, {
3228
3253
  ] }), pe = {
3229
3254
  shiftX: 64,
3230
3255
  adjustY: 1
3231
- }, fe = { adjustX: 1, shiftY: !0 }, $i = {
3256
+ }, fe = { adjustX: 1, shiftY: !0 }, el = {
3232
3257
  left: {
3233
3258
  points: ["cr", "cl"],
3234
3259
  overflow: fe,
@@ -3289,7 +3314,7 @@ const zt = Object.assign(On, {
3289
3314
  overflow: fe,
3290
3315
  offset: [-22, 0]
3291
3316
  }
3292
- }, Mi = {
3317
+ }, tl = {
3293
3318
  left: {
3294
3319
  points: ["cr", "cl"],
3295
3320
  overflow: fe,
@@ -3350,7 +3375,7 @@ const zt = Object.assign(On, {
3350
3375
  overflow: fe,
3351
3376
  offset: [-16, 0]
3352
3377
  }
3353
- }, Ii = {
3378
+ }, rl = {
3354
3379
  neutral: {
3355
3380
  1: [{ mode: "secondary", buttonStyle: "neutral", size: "s" }],
3356
3381
  2: [
@@ -3387,8 +3412,8 @@ const zt = Object.assign(On, {
3387
3412
  { mode: "primary", buttonStyle: "accent", size: "s" }
3388
3413
  ]
3389
3414
  }
3390
- }, Ri = (e, a, r) => Math.min(Math.max(e, a), r), Ti = (e, a, r) => {
3391
- const s = Ri(a, 1, 3), i = Ii[r][s];
3415
+ }, al = (e, a, r) => Math.min(Math.max(e, a), r), sl = (e, a, r) => {
3416
+ const s = al(a, 1, 3), i = rl[r][s];
3392
3417
  return i[Math.min(e, i.length - 1)];
3393
3418
  }, Ft = ({
3394
3419
  text: e,
@@ -3400,27 +3425,27 @@ const zt = Object.assign(On, {
3400
3425
  onClose: l,
3401
3426
  buttons: d,
3402
3427
  buttonProps: c,
3403
- showClose: f
3428
+ showClose: p
3404
3429
  }) => {
3405
- const p = ["neutral", "accent"].includes(s) ? "contrast" : "primary", h = i === "m", y = !!(a && h), b = !!(r && h), m = d && !!d.length, S = !!(f && h) || !f && h && !m, v = i === "xs" ? 4 : 3;
3430
+ const f = ["neutral", "accent"].includes(s) ? "contrast" : "primary", g = i === "m", m = !!(a && g), h = !!(r && g), y = d && !!d.length, S = !!(p && g) || !p && g && !y, v = i === "xs" ? 4 : 3;
3406
3431
  return /* @__PURE__ */ n.jsxs("div", { className: ne.content, children: [
3407
- b && /* @__PURE__ */ n.jsx("div", { className: k(ne.mediaWrapper, o.mediaWrapper), children: r }),
3432
+ h && /* @__PURE__ */ n.jsx("div", { className: k(ne.mediaWrapper, o.mediaWrapper), children: r }),
3408
3433
  /* @__PURE__ */ n.jsxs("div", { className: o.textWrapper, children: [
3409
- y && /* @__PURE__ */ n.jsx(
3410
- Bt.Subtitle,
3434
+ m && /* @__PURE__ */ n.jsx(
3435
+ qt.Subtitle,
3411
3436
  {
3412
3437
  className: k(ne.typography, ne.title, o.typography),
3413
3438
  size: 1,
3414
3439
  as: "h3",
3415
- typographyStyle: p,
3440
+ typographyStyle: f,
3416
3441
  children: a
3417
3442
  }
3418
3443
  ),
3419
3444
  /* @__PURE__ */ n.jsx(
3420
- Bt.Label,
3445
+ qt.Label,
3421
3446
  {
3422
3447
  className: k(ne.typography, ne.text, o.typography),
3423
- typographyStyle: p,
3448
+ typographyStyle: f,
3424
3449
  size: v,
3425
3450
  children: e
3426
3451
  }
@@ -3431,34 +3456,34 @@ const zt = Object.assign(On, {
3431
3456
  {
3432
3457
  type: "button",
3433
3458
  className: k(ne.closeButton, ne[s], o.closeButton, {
3434
- [ne.hasMedia]: b
3459
+ [ne.hasMedia]: h
3435
3460
  }),
3436
3461
  onClick: l,
3437
3462
  "aria-label": "Закрыть подсказку",
3438
3463
  "data-testid": "tooltip-close-button",
3439
- children: /* @__PURE__ */ n.jsx(ji, {})
3464
+ children: /* @__PURE__ */ n.jsx(Xi, {})
3440
3465
  }
3441
3466
  ),
3442
- h && m && /* @__PURE__ */ n.jsx("div", { className: ne.buttonStack, children: d.map((x, _) => {
3467
+ g && y && /* @__PURE__ */ n.jsx("div", { className: ne.buttonStack, children: d.map((x, _) => {
3443
3468
  const L = {
3444
- ...Ti(_, d.length, s),
3469
+ ...sl(_, d.length, s),
3445
3470
  ...c,
3446
3471
  ...x
3447
- }, { closeOnClick: $, ...j } = L, M = (A) => {
3472
+ }, { closeOnClick: M, ...j } = L, $ = (R) => {
3448
3473
  var D;
3449
- (D = j.onClick) == null || D.call(j, A), $ && (l == null || l());
3474
+ (D = j.onClick) == null || D.call(j, R), M && (l == null || l());
3450
3475
  };
3451
3476
  return /* @__PURE__ */ n.jsx(
3452
- ba,
3477
+ ha,
3453
3478
  {
3454
3479
  ...j,
3455
- onClick: M
3480
+ onClick: $
3456
3481
  },
3457
3482
  _
3458
3483
  );
3459
3484
  }) })
3460
3485
  ] });
3461
- }, nl = ({
3486
+ }, Rl = ({
3462
3487
  customContent: e,
3463
3488
  children: a,
3464
3489
  placement: r = "top",
@@ -3468,89 +3493,90 @@ const zt = Object.assign(On, {
3468
3493
  showArrow: l = !0,
3469
3494
  showClose: d = !0,
3470
3495
  trigger: c = "hover",
3471
- variant: f = "neutral",
3472
- size: p = "s",
3473
- text: h,
3474
- title: y,
3475
- media: b,
3476
- buttons: m,
3496
+ variant: p = "neutral",
3497
+ size: f = "s",
3498
+ text: g,
3499
+ title: m,
3500
+ media: h,
3501
+ buttons: y,
3477
3502
  buttonProps: S,
3478
3503
  onClose: v,
3479
3504
  ...x
3480
3505
  }) => {
3481
- const [_, w] = de(!1), [L, $] = de(!1), j = p === "m" ? $i : Mi, M = () => {
3506
+ const [_, w] = ce(!1), [L, M] = ce(!1), j = f === "m" ? el : tl, $ = () => {
3482
3507
  w(!1), v == null || v();
3483
- }, A = e || (p === "m" ? /* @__PURE__ */ n.jsx(
3508
+ }, R = e || (f === "m" ? /* @__PURE__ */ n.jsx(
3484
3509
  Ft,
3485
3510
  {
3486
3511
  classNames: s,
3487
- text: h,
3488
- variant: f,
3489
- size: p,
3490
- onClose: M,
3491
- title: y,
3492
- media: b,
3512
+ text: g,
3513
+ variant: p,
3514
+ size: f,
3515
+ onClose: $,
3516
+ title: m,
3517
+ media: h,
3493
3518
  showClose: d,
3494
- buttons: m,
3519
+ buttons: y,
3495
3520
  buttonProps: S
3496
3521
  }
3497
3522
  ) : /* @__PURE__ */ n.jsx(
3498
3523
  Ft,
3499
3524
  {
3500
3525
  classNames: s,
3501
- text: h,
3502
- variant: f,
3503
- size: p,
3504
- onClose: M
3526
+ text: g,
3527
+ variant: p,
3528
+ size: f,
3529
+ onClose: $
3505
3530
  }
3506
3531
  ));
3507
- return oe(() => {
3532
+ return de(() => {
3508
3533
  if (_) {
3509
- const D = requestAnimationFrame(() => $(!0));
3534
+ const D = requestAnimationFrame(() => M(!0));
3510
3535
  return () => cancelAnimationFrame(D);
3511
3536
  }
3512
- $(!1);
3537
+ M(!1);
3513
3538
  }, [_]), /* @__PURE__ */ n.jsx(
3514
3539
  $r,
3515
3540
  {
3516
3541
  visible: _,
3517
3542
  onVisibleChange: w,
3518
3543
  classNames: {
3519
- root: k(ne.root, ne[f], ne[p], L && ne.open),
3544
+ root: k(ne.root, ne[p], ne[f], L && ne.open),
3520
3545
  ...x.classNames
3521
3546
  },
3522
3547
  placement: r,
3523
- overlay: () => A,
3548
+ overlay: () => R,
3524
3549
  trigger: c,
3525
3550
  mouseEnterDelay: i,
3526
3551
  mouseLeaveDelay: o,
3527
3552
  motion: { motionName: "tooltipMotion" },
3528
3553
  builtinPlacements: j,
3529
3554
  showArrow: l ? {
3530
- content: /* @__PURE__ */ n.jsx(ki, {}),
3531
- className: `tooltipArrow tooltipArrow-${p}`
3555
+ content: /* @__PURE__ */ n.jsx(Qi, {}),
3556
+ className: `tooltipArrow tooltipArrow-${f}`
3532
3557
  } : !1,
3533
3558
  destroyTooltipOnHide: !0,
3534
3559
  ...x,
3535
3560
  children: a
3536
3561
  }
3537
3562
  );
3538
- }, Ni = "_segmentedControl_1yvz7_5", Ai = "_segment_1yvz7_5", Di = "_activeSegmentIndicator_1yvz7_51", Oi = "_stretched_1yvz7_82", Pi = "_s_1yvz7_5", Bi = "_icon_1yvz7_90", qi = "_label_1yvz7_94", zi = "_m_1yvz7_98", Ui = "_l_1yvz7_94", De = {
3539
- segmentedControl: Ni,
3540
- segment: Ai,
3541
- activeSegmentIndicator: Di,
3542
- stretched: Oi,
3543
- s: Pi,
3544
- icon: Bi,
3545
- label: qi,
3546
- m: zi,
3547
- l: Ui
3563
+ }, nl = "_segmentedControl_1ggwv_5", ol = "_segment_1ggwv_5", il = "_activeSegmentIndicator_1ggwv_54", ll = "_selected_1ggwv_78", cl = "_stretched_1ggwv_87", dl = "_disabled_1ggwv_95", ul = "_s_1ggwv_5", _l = "_icon_1ggwv_108", pl = "_label_1ggwv_112", fl = "_m_1ggwv_116", gl = "_l_1ggwv_112", Se = {
3564
+ segmentedControl: nl,
3565
+ segment: ol,
3566
+ activeSegmentIndicator: il,
3567
+ selected: ll,
3568
+ stretched: cl,
3569
+ disabled: dl,
3570
+ s: ul,
3571
+ icon: _l,
3572
+ label: pl,
3573
+ m: fl,
3574
+ l: gl
3548
3575
  }, Wt = {
3549
- s: ce["typography-label-3-regular"],
3550
- m: ce["typography-label-2-regular"],
3551
- l: ce["typography-label-2-regular"]
3552
- }, ol = (e) => {
3553
- var _;
3576
+ s: oe["typography-label-3-regular"],
3577
+ m: oe["typography-label-2-regular"],
3578
+ l: oe["typography-label-2-regular"]
3579
+ }, Tl = (e) => {
3554
3580
  const {
3555
3581
  className: a,
3556
3582
  defaultValue: r,
@@ -3558,76 +3584,83 @@ const zt = Object.assign(On, {
3558
3584
  size: i = "m",
3559
3585
  segments: o,
3560
3586
  stretched: l,
3561
- mode: d = "label",
3562
- onChange: c
3563
- } = e, f = pt(), [p, h] = de(r || o[0].value), [y, b] = de({ width: 0, left: 0 }), m = Be(null);
3564
- oe(() => {
3587
+ disabled: d = !1,
3588
+ mode: c = "label",
3589
+ onChange: p,
3590
+ ...f
3591
+ } = e, g = pt(), [m, h] = ce(r || o[0].value), [y, S] = ce({ width: 0, left: 0, height: 0 }), v = qe(null);
3592
+ de(() => {
3565
3593
  s && h(s);
3566
- }, [s]), oe(() => {
3567
- S();
3568
- }, [p, o, i, l, d]);
3569
- const S = () => {
3570
- if (!(m != null && m.current)) return;
3571
- const w = m.current.querySelector(
3594
+ }, [s]), Zt(() => {
3595
+ x();
3596
+ }, [m, o, i, l, c]);
3597
+ const x = () => {
3598
+ if (!(v != null && v.current)) return;
3599
+ const w = v.current.querySelector(
3572
3600
  '[data-is-active-segment="true"]'
3573
3601
  );
3574
- w && b({
3602
+ w && S({
3575
3603
  width: w.offsetWidth,
3576
- left: w.offsetLeft
3604
+ left: w.offsetLeft,
3605
+ height: w.offsetHeight
3577
3606
  });
3578
- }, v = (_ = o.find((w) => w.value === p)) == null ? void 0 : _.label, x = (w) => {
3579
- h(w), c == null || c(w);
3607
+ }, _ = (w) => {
3608
+ d || (h(w), p == null || p(w));
3580
3609
  };
3581
3610
  return (o == null ? void 0 : o.length) === 0 ? null : /* @__PURE__ */ n.jsxs(
3582
3611
  "div",
3583
3612
  {
3584
3613
  className: k(
3585
- De.segmentedControl,
3586
- De[i],
3587
- De[d],
3614
+ Se.segmentedControl,
3615
+ Se[i],
3616
+ Se[c],
3588
3617
  {
3589
- [De.stretched]: l
3618
+ [Se.stretched]: l,
3619
+ [Se.disabled]: d
3590
3620
  },
3591
3621
  a
3592
3622
  ),
3593
3623
  "data-testid": "segmented-control-container",
3594
- ref: m,
3624
+ ref: v,
3625
+ ...f,
3595
3626
  children: [
3596
- o == null ? void 0 : o.map(({ label: w, value: L }, $) => {
3597
- const j = () => x(L);
3627
+ o == null ? void 0 : o.map(({ label: w, value: L, containerProps: M = {} }, j) => {
3628
+ const { className: $, ...R } = M, D = () => _(L), P = m === L;
3598
3629
  return /* @__PURE__ */ n.jsxs(Oe, { children: [
3599
3630
  /* @__PURE__ */ n.jsx(
3600
3631
  "input",
3601
3632
  {
3602
- id: f + JSON.stringify(L),
3633
+ id: g + JSON.stringify(L),
3603
3634
  value: JSON.stringify(L),
3604
3635
  type: "radio",
3605
- checked: p === L,
3606
- onClick: j
3636
+ checked: P,
3637
+ readOnly: !0
3607
3638
  }
3608
3639
  ),
3609
3640
  /* @__PURE__ */ n.jsx(
3610
3641
  "label",
3611
3642
  {
3612
- "data-is-active-segment": p === L,
3613
- className: k(De.segment, Wt[i]),
3614
- htmlFor: f + JSON.stringify(L),
3643
+ "data-is-active-segment": P,
3644
+ className: k(Se.segment, Wt[i], { [Se.selected]: P }, $),
3645
+ htmlFor: g + JSON.stringify(L),
3615
3646
  "data-testid": "segmented-control-segment",
3647
+ onClick: D,
3648
+ ...R,
3616
3649
  children: w
3617
3650
  }
3618
3651
  )
3619
- ] }, Ke(JSON.stringify(L)) + $);
3652
+ ] }, Ke(JSON.stringify(L)) + j);
3620
3653
  }),
3621
3654
  /* @__PURE__ */ n.jsx(
3622
3655
  "div",
3623
3656
  {
3624
- className: k(De.activeSegmentIndicator, Wt[i]),
3625
- "data-testid": "segmented-control-active-segment",
3657
+ className: k(Se.activeSegmentIndicator, Wt[i]),
3658
+ "data-testid": "segmented-control-segment-active-indicator",
3626
3659
  style: {
3627
3660
  width: y.width,
3628
- left: y.left
3629
- },
3630
- children: v
3661
+ left: y.left,
3662
+ height: y.height
3663
+ }
3631
3664
  }
3632
3665
  )
3633
3666
  ]
@@ -3635,25 +3668,25 @@ const zt = Object.assign(On, {
3635
3668
  );
3636
3669
  };
3637
3670
  export {
3638
- Hi as Avatar,
3671
+ yl as Avatar,
3639
3672
  es as Badge,
3640
- ba as Button,
3641
- Xi as Checkbox,
3642
- Yi as ConfigProvider,
3643
- tl as Helper,
3644
- Gi as Image,
3645
- al as List,
3646
- bs as Loader,
3647
- rl as Radio,
3648
- ol as SegmentedControl,
3649
- sl as Tabs,
3650
- Ki as Tag,
3651
- el as TextArea,
3652
- Qi as TextInput,
3653
- nl as Tooltip,
3654
- Bt as Typography,
3673
+ ha as Button,
3674
+ Ll as Checkbox,
3675
+ wl as ConfigProvider,
3676
+ kl as Helper,
3677
+ vl as Image,
3678
+ Ml as List,
3679
+ hs as Loader,
3680
+ $l as Radio,
3681
+ Tl as SegmentedControl,
3682
+ Il as Tabs,
3683
+ Sl as Tag,
3684
+ jl as TextArea,
3685
+ El as TextInput,
3686
+ Rl as Tooltip,
3687
+ qt as Typography,
3655
3688
  ms as enUS,
3656
- Ji as ruRU,
3689
+ Cl as ruRU,
3657
3690
  ys as useConfig,
3658
- Zi as useLocale
3691
+ xl as useLocale
3659
3692
  };