skillgrid 0.0.21-dev-36347-gornyi.1125678 → 0.0.21-imports.1141086

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +151 -1
  2. package/dist/components/Button/Button.d.ts +2 -3
  3. package/dist/components/Checkbox/Checkbox.d.ts +18 -0
  4. package/dist/components/Checkbox/Checkbox.type.d.ts +90 -0
  5. package/dist/components/Checkbox/assets/CheckIcon.d.ts +16 -0
  6. package/dist/components/Checkbox/assets/LineIcon.d.ts +16 -0
  7. package/dist/components/Checkbox/index.d.ts +2 -0
  8. package/dist/components/Helper/Helper.d.ts +7 -0
  9. package/dist/components/Helper/Helper.type.d.ts +17 -0
  10. package/dist/components/Helper/index.d.ts +2 -0
  11. package/dist/components/InputBase/Input.d.ts +9 -0
  12. package/dist/components/InputBase/Input.type.d.ts +138 -0
  13. package/dist/components/InputBase/InputBase.d.ts +6 -0
  14. package/dist/components/InputBase/InputBase.type.d.ts +110 -0
  15. package/dist/components/InputBase/assets/GripIcon.d.ts +8 -0
  16. package/dist/components/InputBase/assets/SearchIcon.d.ts +17 -0
  17. package/dist/components/InputBase/assets/XIcon.d.ts +18 -0
  18. package/dist/components/InputBase/assets/index.d.ts +3 -0
  19. package/dist/components/InputBase/index.d.ts +3 -0
  20. package/dist/components/InputBase/lib/constants.d.ts +4 -0
  21. package/dist/components/InputBase/lib/index.d.ts +4 -0
  22. package/dist/components/InputBase/lib/useGripResize.d.ts +11 -0
  23. package/dist/components/InputBase/lib/useInputSync.d.ts +11 -0
  24. package/dist/components/InputBase/lib/useTextareaResize.d.ts +9 -0
  25. package/dist/components/List/List.d.ts +5 -0
  26. package/dist/components/List/List.type.d.ts +34 -0
  27. package/dist/components/List/ListItem/ListItem.d.ts +9 -0
  28. package/dist/components/List/index.d.ts +2 -0
  29. package/dist/components/TextArea/TextArea.d.ts +6 -0
  30. package/dist/components/TextArea/TextArea.type.d.ts +66 -0
  31. package/dist/components/TextArea/index.d.ts +2 -0
  32. package/dist/components/TextArea/lib/constants.d.ts +65 -0
  33. package/dist/components/TextArea/lib/getters.d.ts +38 -0
  34. package/dist/components/TextArea/lib/index.d.ts +2 -0
  35. package/dist/components/TextInput/TextInput.d.ts +6 -0
  36. package/dist/components/TextInput/TextInput.type.d.ts +72 -0
  37. package/dist/components/TextInput/index.d.ts +2 -0
  38. package/dist/components/TextInput/lib/constants.d.ts +9 -0
  39. package/dist/components/TextInput/lib/getters.d.ts +38 -0
  40. package/dist/components/TextInput/lib/index.d.ts +2 -0
  41. package/dist/components/Typography/Typography.constants.d.ts +2 -0
  42. package/dist/components/Typography/Typography.d.ts +21 -0
  43. package/dist/components/Typography/Typography.type.d.ts +68 -0
  44. package/dist/components/Typography/index.d.ts +1 -0
  45. package/dist/index.cjs.js +11 -11
  46. package/dist/index.css +1 -1
  47. package/dist/index.d.ts +5 -0
  48. package/dist/index.es.js +2084 -871
  49. package/dist/utils/other.d.ts +8 -0
  50. package/package.json +4 -2
package/dist/index.es.js CHANGED
@@ -1,9 +1,10 @@
1
- import nt, { forwardRef as H, useState as Le, useRef as ot, useEffect as st, useCallback as He, Fragment as Nt, createContext as It, useContext as At } from "react";
2
- import { clsx as ae } from "clsx";
3
- import './index.css';function Mt(r) {
4
- return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1
+ import * as Et from "react";
2
+ import Lt, { forwardRef as K, useState as De, useRef as ze, useEffect as Re, useCallback as Se, Fragment as aa, createContext as ra, useContext as na, useImperativeHandle as sa, useId as Mt } from "react";
3
+ import ye, { clsx as ie } from "clsx";
4
+ import './index.css';function oa(t) {
5
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
5
6
  }
6
- var xe = { exports: {} }, ce = {};
7
+ var Pe = { exports: {} }, Te = {};
7
8
  /**
8
9
  * @license React
9
10
  * react-jsx-runtime.production.min.js
@@ -13,21 +14,21 @@ var xe = { exports: {} }, ce = {};
13
14
  * This source code is licensed under the MIT license found in the
14
15
  * LICENSE file in the root directory of this source tree.
15
16
  */
16
- var Je;
17
- function Dt() {
18
- if (Je) return ce;
19
- Je = 1;
20
- var r = nt, s = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
21
- function _(f, c, h) {
22
- var p, g = {}, C = null, w = null;
23
- h !== void 0 && (C = "" + h), c.key !== void 0 && (C = "" + c.key), c.ref !== void 0 && (w = c.ref);
24
- for (p in c) o.call(c, p) && !i.hasOwnProperty(p) && (g[p] = c[p]);
25
- if (f && f.defaultProps) for (p in c = f.defaultProps, c) g[p] === void 0 && (g[p] = c[p]);
26
- return { $$typeof: s, type: f, key: C, ref: w, props: g, _owner: d.current };
17
+ var ft;
18
+ function ia() {
19
+ if (ft) return Te;
20
+ ft = 1;
21
+ var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function c(_, d, f) {
23
+ var p, g = {}, h = null, b = null;
24
+ f !== void 0 && (h = "" + f), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (b = d.ref);
25
+ for (p in d) n.call(d, p) && !s.hasOwnProperty(p) && (g[p] = d[p]);
26
+ if (_ && _.defaultProps) for (p in d = _.defaultProps, d) g[p] === void 0 && (g[p] = d[p]);
27
+ return { $$typeof: r, type: _, key: h, ref: b, props: g, _owner: o.current };
27
28
  }
28
- return ce.Fragment = a, ce.jsx = _, ce.jsxs = _, ce;
29
+ return Te.Fragment = a, Te.jsx = c, Te.jsxs = c, Te;
29
30
  }
30
- var ue = {};
31
+ var Ae = {};
31
32
  /**
32
33
  * @license React
33
34
  * react-jsx-runtime.development.js
@@ -37,91 +38,91 @@ var ue = {};
37
38
  * This source code is licensed under the MIT license found in the
38
39
  * LICENSE file in the root directory of this source tree.
39
40
  */
40
- var Ke;
41
- function Bt() {
42
- return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
43
- var r = nt, s = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), f = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), $ = Symbol.iterator, k = "@@iterator";
44
- function L(e) {
41
+ var gt;
42
+ function la() {
43
+ return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), v = Symbol.iterator, w = "@@iterator";
45
+ function S(e) {
45
46
  if (e === null || typeof e != "object")
46
47
  return null;
47
- var t = $ && e[$] || e[k];
48
- return typeof t == "function" ? t : null;
48
+ var i = v && e[v] || e[w];
49
+ return typeof i == "function" ? i : null;
49
50
  }
50
- var S = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
- function y(e) {
51
+ var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function x(e) {
52
53
  {
53
- for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
54
- n[u - 1] = arguments[u];
55
- T("error", e, n);
54
+ for (var i = arguments.length, u = new Array(i > 1 ? i - 1 : 0), m = 1; m < i; m++)
55
+ u[m - 1] = arguments[m];
56
+ $("error", e, u);
56
57
  }
57
58
  }
58
- function T(e, t, n) {
59
+ function $(e, i, u) {
59
60
  {
60
- var u = S.ReactDebugCurrentFrame, m = u.getStackAddendum();
61
- m !== "" && (t += "%s", n = n.concat([m]));
62
- var x = n.map(function(v) {
63
- return String(v);
61
+ var m = C.ReactDebugCurrentFrame, I = m.getStackAddendum();
62
+ I !== "" && (i += "%s", u = u.concat([I]));
63
+ var k = u.map(function(L) {
64
+ return String(L);
64
65
  });
65
- x.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, x);
66
+ k.unshift("Warning: " + i), Function.prototype.apply.call(console[e], console, k);
66
67
  }
67
68
  }
68
- var N = !1, U = !1, B = !1, F = !1, z = !1, A;
69
- A = Symbol.for("react.module.reference");
70
- function J(e) {
71
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === i || z || e === d || e === h || e === p || F || e === w || N || U || B || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === _ || e.$$typeof === f || e.$$typeof === c || // This needs to include all possible module reference object
69
+ var T = !1, A = !1, O = !1, R = !1, B = !1, N;
70
+ N = Symbol.for("react.module.reference");
71
+ function F(e) {
72
+ return !!(typeof e == "string" || typeof e == "function" || e === n || e === s || B || e === o || e === f || e === p || R || e === b || T || A || O || typeof e == "object" && e !== null && (e.$$typeof === h || e.$$typeof === g || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
72
73
  // types supported by any Flight configuration anywhere since
73
74
  // we don't know which Flight build this will end up being used
74
75
  // with.
75
- e.$$typeof === A || e.getModuleId !== void 0));
76
+ e.$$typeof === N || e.getModuleId !== void 0));
76
77
  }
77
- function K(e, t, n) {
78
- var u = e.displayName;
79
- if (u)
80
- return u;
81
- var m = t.displayName || t.name || "";
82
- return m !== "" ? n + "(" + m + ")" : n;
78
+ function y(e, i, u) {
79
+ var m = e.displayName;
80
+ if (m)
81
+ return m;
82
+ var I = i.displayName || i.name || "";
83
+ return I !== "" ? u + "(" + I + ")" : u;
83
84
  }
84
- function G(e) {
85
+ function z(e) {
85
86
  return e.displayName || "Context";
86
87
  }
87
- function I(e) {
88
+ function D(e) {
88
89
  if (e == null)
89
90
  return null;
90
- if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
92
  return e.displayName || e.name || null;
92
93
  if (typeof e == "string")
93
94
  return e;
94
95
  switch (e) {
95
- case o:
96
+ case n:
96
97
  return "Fragment";
97
98
  case a:
98
99
  return "Portal";
99
- case i:
100
+ case s:
100
101
  return "Profiler";
101
- case d:
102
+ case o:
102
103
  return "StrictMode";
103
- case h:
104
+ case f:
104
105
  return "Suspense";
105
106
  case p:
106
107
  return "SuspenseList";
107
108
  }
108
109
  if (typeof e == "object")
109
110
  switch (e.$$typeof) {
110
- case f:
111
- var t = e;
112
- return G(t) + ".Consumer";
113
111
  case _:
114
- var n = e;
115
- return G(n._context) + ".Provider";
112
+ var i = e;
113
+ return z(i) + ".Consumer";
116
114
  case c:
117
- return K(e, e.render, "ForwardRef");
115
+ var u = e;
116
+ return z(u._context) + ".Provider";
117
+ case d:
118
+ return y(e, e.render, "ForwardRef");
118
119
  case g:
119
- var u = e.displayName || null;
120
- return u !== null ? u : I(e.type) || "Memo";
121
- case C: {
122
- var m = e, x = m._payload, v = m._init;
120
+ var m = e.displayName || null;
121
+ return m !== null ? m : D(e.type) || "Memo";
122
+ case h: {
123
+ var I = e, k = I._payload, L = I._init;
123
124
  try {
124
- return I(v(x));
125
+ return D(L(k));
125
126
  } catch {
126
127
  return null;
127
128
  }
@@ -129,18 +130,18 @@ function Bt() {
129
130
  }
130
131
  return null;
131
132
  }
132
- var V = Object.assign, Q = 0, _e, fe, pe, be, ge, ve, he;
133
- function me() {
133
+ var j = Object.assign, V = 0, H, X, G, ee, te, ae, me;
134
+ function re() {
134
135
  }
135
- me.__reactDisabledLog = !0;
136
- function we() {
136
+ re.__reactDisabledLog = !0;
137
+ function ve() {
137
138
  {
138
- if (Q === 0) {
139
- _e = console.log, fe = console.info, pe = console.warn, be = console.error, ge = console.group, ve = console.groupCollapsed, he = console.groupEnd;
139
+ if (V === 0) {
140
+ H = console.log, X = console.info, G = console.warn, ee = console.error, te = console.group, ae = console.groupCollapsed, me = console.groupEnd;
140
141
  var e = {
141
142
  configurable: !0,
142
143
  enumerable: !0,
143
- value: me,
144
+ value: re,
144
145
  writable: !0
145
146
  };
146
147
  Object.defineProperties(console, {
@@ -153,332 +154,332 @@ function Bt() {
153
154
  groupEnd: e
154
155
  });
155
156
  }
156
- Q++;
157
+ V++;
157
158
  }
158
159
  }
159
160
  function Ee() {
160
161
  {
161
- if (Q--, Q === 0) {
162
+ if (V--, V === 0) {
162
163
  var e = {
163
164
  configurable: !0,
164
165
  enumerable: !0,
165
166
  writable: !0
166
167
  };
167
168
  Object.defineProperties(console, {
168
- log: V({}, e, {
169
- value: _e
169
+ log: j({}, e, {
170
+ value: H
170
171
  }),
171
- info: V({}, e, {
172
- value: fe
172
+ info: j({}, e, {
173
+ value: X
173
174
  }),
174
- warn: V({}, e, {
175
- value: pe
175
+ warn: j({}, e, {
176
+ value: G
176
177
  }),
177
- error: V({}, e, {
178
- value: be
178
+ error: j({}, e, {
179
+ value: ee
179
180
  }),
180
- group: V({}, e, {
181
- value: ge
181
+ group: j({}, e, {
182
+ value: te
182
183
  }),
183
- groupCollapsed: V({}, e, {
184
- value: ve
184
+ groupCollapsed: j({}, e, {
185
+ value: ae
185
186
  }),
186
- groupEnd: V({}, e, {
187
- value: he
187
+ groupEnd: j({}, e, {
188
+ value: me
188
189
  })
189
190
  });
190
191
  }
191
- Q < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ V < 0 && x("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
193
  }
193
194
  }
194
- var se = S.ReactCurrentDispatcher, X;
195
- function Y(e, t, n) {
195
+ var Le = C.ReactCurrentDispatcher, ue;
196
+ function le(e, i, u) {
196
197
  {
197
- if (X === void 0)
198
+ if (ue === void 0)
198
199
  try {
199
200
  throw Error();
200
- } catch (m) {
201
- var u = m.stack.trim().match(/\n( *(at )?)/);
202
- X = u && u[1] || "";
201
+ } catch (I) {
202
+ var m = I.stack.trim().match(/\n( *(at )?)/);
203
+ ue = m && m[1] || "";
203
204
  }
204
205
  return `
205
- ` + X + e;
206
+ ` + ue + e;
206
207
  }
207
208
  }
208
- var ee = !1, q;
209
+ var _e = !1, ce;
209
210
  {
210
- var ie = typeof WeakMap == "function" ? WeakMap : Map;
211
- q = new ie();
211
+ var xe = typeof WeakMap == "function" ? WeakMap : Map;
212
+ ce = new xe();
212
213
  }
213
- function Ne(e, t) {
214
- if (!e || ee)
214
+ function Y(e, i) {
215
+ if (!e || _e)
215
216
  return "";
216
217
  {
217
- var n = q.get(e);
218
- if (n !== void 0)
219
- return n;
218
+ var u = ce.get(e);
219
+ if (u !== void 0)
220
+ return u;
220
221
  }
221
- var u;
222
- ee = !0;
223
- var m = Error.prepareStackTrace;
222
+ var m;
223
+ _e = !0;
224
+ var I = Error.prepareStackTrace;
224
225
  Error.prepareStackTrace = void 0;
225
- var x;
226
- x = se.current, se.current = null, we();
226
+ var k;
227
+ k = Le.current, Le.current = null, ve();
227
228
  try {
228
- if (t) {
229
- var v = function() {
229
+ if (i) {
230
+ var L = function() {
230
231
  throw Error();
231
232
  };
232
- if (Object.defineProperty(v.prototype, "props", {
233
+ if (Object.defineProperty(L.prototype, "props", {
233
234
  set: function() {
234
235
  throw Error();
235
236
  }
236
237
  }), typeof Reflect == "object" && Reflect.construct) {
237
238
  try {
238
- Reflect.construct(v, []);
239
- } catch (P) {
240
- u = P;
239
+ Reflect.construct(L, []);
240
+ } catch (J) {
241
+ m = J;
241
242
  }
242
- Reflect.construct(e, [], v);
243
+ Reflect.construct(e, [], L);
243
244
  } else {
244
245
  try {
245
- v.call();
246
- } catch (P) {
247
- u = P;
246
+ L.call();
247
+ } catch (J) {
248
+ m = J;
248
249
  }
249
- e.call(v.prototype);
250
+ e.call(L.prototype);
250
251
  }
251
252
  } else {
252
253
  try {
253
254
  throw Error();
254
- } catch (P) {
255
- u = P;
255
+ } catch (J) {
256
+ m = J;
256
257
  }
257
258
  e();
258
259
  }
259
- } catch (P) {
260
- if (P && u && typeof P.stack == "string") {
261
- for (var b = P.stack.split(`
262
- `), O = u.stack.split(`
263
- `), E = b.length - 1, j = O.length - 1; E >= 1 && j >= 0 && b[E] !== O[j]; )
264
- j--;
265
- for (; E >= 1 && j >= 0; E--, j--)
266
- if (b[E] !== O[j]) {
267
- if (E !== 1 || j !== 1)
260
+ } catch (J) {
261
+ if (J && m && typeof J.stack == "string") {
262
+ for (var E = J.stack.split(`
263
+ `), Z = m.stack.split(`
264
+ `), U = E.length - 1, W = Z.length - 1; U >= 1 && W >= 0 && E[U] !== Z[W]; )
265
+ W--;
266
+ for (; U >= 1 && W >= 0; U--, W--)
267
+ if (E[U] !== Z[W]) {
268
+ if (U !== 1 || W !== 1)
268
269
  do
269
- if (E--, j--, j < 0 || b[E] !== O[j]) {
270
- var M = `
271
- ` + b[E].replace(" at new ", " at ");
272
- return e.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, M), M;
270
+ if (U--, W--, W < 0 || E[U] !== Z[W]) {
271
+ var ne = `
272
+ ` + E[U].replace(" at new ", " at ");
273
+ return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && ce.set(e, ne), ne;
273
274
  }
274
- while (E >= 1 && j >= 0);
275
+ while (U >= 1 && W >= 0);
275
276
  break;
276
277
  }
277
278
  }
278
279
  } finally {
279
- ee = !1, se.current = x, Ee(), Error.prepareStackTrace = m;
280
+ _e = !1, Le.current = k, Ee(), Error.prepareStackTrace = I;
280
281
  }
281
- var oe = e ? e.displayName || e.name : "", te = oe ? Y(oe) : "";
282
- return typeof e == "function" && q.set(e, te), te;
282
+ var $e = e ? e.displayName || e.name : "", Ce = $e ? le($e) : "";
283
+ return typeof e == "function" && ce.set(e, Ce), Ce;
283
284
  }
284
- function ut(e, t, n) {
285
- return Ne(e, !1);
285
+ function Q(e, i, u) {
286
+ return Y(e, !1);
286
287
  }
287
- function dt(e) {
288
- var t = e.prototype;
289
- return !!(t && t.isReactComponent);
288
+ function de(e) {
289
+ var i = e.prototype;
290
+ return !!(i && i.isReactComponent);
290
291
  }
291
- function Ce(e, t, n) {
292
+ function Oe(e, i, u) {
292
293
  if (e == null)
293
294
  return "";
294
295
  if (typeof e == "function")
295
- return Ne(e, dt(e));
296
+ return Y(e, de(e));
296
297
  if (typeof e == "string")
297
- return Y(e);
298
+ return le(e);
298
299
  switch (e) {
299
- case h:
300
- return Y("Suspense");
300
+ case f:
301
+ return le("Suspense");
301
302
  case p:
302
- return Y("SuspenseList");
303
+ return le("SuspenseList");
303
304
  }
304
305
  if (typeof e == "object")
305
306
  switch (e.$$typeof) {
306
- case c:
307
- return ut(e.render);
307
+ case d:
308
+ return Q(e.render);
308
309
  case g:
309
- return Ce(e.type, t, n);
310
- case C: {
311
- var u = e, m = u._payload, x = u._init;
310
+ return Oe(e.type, i, u);
311
+ case h: {
312
+ var m = e, I = m._payload, k = m._init;
312
313
  try {
313
- return Ce(x(m), t, n);
314
+ return Oe(k(I), i, u);
314
315
  } catch {
315
316
  }
316
317
  }
317
318
  }
318
319
  return "";
319
320
  }
320
- var le = Object.prototype.hasOwnProperty, Ie = {}, Ae = S.ReactDebugCurrentFrame;
321
- function ye(e) {
321
+ var ke = Object.prototype.hasOwnProperty, et = {}, tt = C.ReactDebugCurrentFrame;
322
+ function Ue(e) {
322
323
  if (e) {
323
- var t = e._owner, n = Ce(e.type, e._source, t ? t.type : null);
324
- Ae.setExtraStackFrame(n);
324
+ var i = e._owner, u = Oe(e.type, e._source, i ? i.type : null);
325
+ tt.setExtraStackFrame(u);
325
326
  } else
326
- Ae.setExtraStackFrame(null);
327
+ tt.setExtraStackFrame(null);
327
328
  }
328
- function _t(e, t, n, u, m) {
329
+ function At(e, i, u, m, I) {
329
330
  {
330
- var x = Function.call.bind(le);
331
- for (var v in e)
332
- if (x(e, v)) {
333
- var b = void 0;
331
+ var k = Function.call.bind(ke);
332
+ for (var L in e)
333
+ if (k(e, L)) {
334
+ var E = void 0;
334
335
  try {
335
- if (typeof e[v] != "function") {
336
- var O = Error((u || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
- throw O.name = "Invariant Violation", O;
336
+ if (typeof e[L] != "function") {
337
+ var Z = Error((m || "React class") + ": " + u + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw Z.name = "Invariant Violation", Z;
338
339
  }
339
- b = e[v](t, v, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
- } catch (E) {
341
- b = E;
340
+ E = e[L](i, L, m, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (U) {
342
+ E = U;
342
343
  }
343
- b && !(b instanceof Error) && (ye(m), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", n, v, typeof b), ye(null)), b instanceof Error && !(b.message in Ie) && (Ie[b.message] = !0, ye(m), y("Failed %s type: %s", n, b.message), ye(null));
344
+ E && !(E instanceof Error) && (Ue(I), x("%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).", m || "React class", u, L, typeof E), Ue(null)), E instanceof Error && !(E.message in et) && (et[E.message] = !0, Ue(I), x("Failed %s type: %s", u, E.message), Ue(null));
344
345
  }
345
346
  }
346
347
  }
347
- var ft = Array.isArray;
348
- function Re(e) {
349
- return ft(e);
348
+ var Nt = Array.isArray;
349
+ function Ve(e) {
350
+ return Nt(e);
350
351
  }
351
- function pt(e) {
352
+ function Dt(e) {
352
353
  {
353
- var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
- return n;
354
+ var i = typeof Symbol == "function" && Symbol.toStringTag, u = i && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
+ return u;
355
356
  }
356
357
  }
357
- function bt(e) {
358
+ function Ot(e) {
358
359
  try {
359
- return Me(e), !1;
360
+ return at(e), !1;
360
361
  } catch {
361
362
  return !0;
362
363
  }
363
364
  }
364
- function Me(e) {
365
+ function at(e) {
365
366
  return "" + e;
366
367
  }
367
- function De(e) {
368
- if (bt(e))
369
- return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(e)), Me(e);
368
+ function rt(e) {
369
+ if (Ot(e))
370
+ return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Dt(e)), at(e);
370
371
  }
371
- var Be = S.ReactCurrentOwner, gt = {
372
+ var nt = C.ReactCurrentOwner, Ut = {
372
373
  key: !0,
373
374
  ref: !0,
374
375
  __self: !0,
375
376
  __source: !0
376
- }, Fe, ze;
377
- function vt(e) {
378
- if (le.call(e, "ref")) {
379
- var t = Object.getOwnPropertyDescriptor(e, "ref").get;
380
- if (t && t.isReactWarning)
377
+ }, st, ot;
378
+ function Pt(e) {
379
+ if (ke.call(e, "ref")) {
380
+ var i = Object.getOwnPropertyDescriptor(e, "ref").get;
381
+ if (i && i.isReactWarning)
381
382
  return !1;
382
383
  }
383
384
  return e.ref !== void 0;
384
385
  }
385
- function ht(e) {
386
- if (le.call(e, "key")) {
387
- var t = Object.getOwnPropertyDescriptor(e, "key").get;
388
- if (t && t.isReactWarning)
386
+ function Bt(e) {
387
+ if (ke.call(e, "key")) {
388
+ var i = Object.getOwnPropertyDescriptor(e, "key").get;
389
+ if (i && i.isReactWarning)
389
390
  return !1;
390
391
  }
391
392
  return e.key !== void 0;
392
393
  }
393
- function mt(e, t) {
394
- typeof e.ref == "string" && Be.current;
394
+ function Ft(e, i) {
395
+ typeof e.ref == "string" && nt.current;
395
396
  }
396
- function Ct(e, t) {
397
+ function zt(e, i) {
397
398
  {
398
- var n = function() {
399
- Fe || (Fe = !0, y("%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)", t));
399
+ var u = function() {
400
+ st || (st = !0, x("%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)", i));
400
401
  };
401
- n.isReactWarning = !0, Object.defineProperty(e, "key", {
402
- get: n,
402
+ u.isReactWarning = !0, Object.defineProperty(e, "key", {
403
+ get: u,
403
404
  configurable: !0
404
405
  });
405
406
  }
406
407
  }
407
- function yt(e, t) {
408
+ function Wt(e, i) {
408
409
  {
409
- var n = function() {
410
- ze || (ze = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
410
+ var u = function() {
411
+ ot || (ot = !0, x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", i));
411
412
  };
412
- n.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
- get: n,
413
+ u.isReactWarning = !0, Object.defineProperty(e, "ref", {
414
+ get: u,
414
415
  configurable: !0
415
416
  });
416
417
  }
417
418
  }
418
- var xt = function(e, t, n, u, m, x, v) {
419
- var b = {
419
+ var Vt = function(e, i, u, m, I, k, L) {
420
+ var E = {
420
421
  // This tag allows us to uniquely identify this as a React Element
421
- $$typeof: s,
422
+ $$typeof: r,
422
423
  // Built-in properties that belong on the element
423
424
  type: e,
424
- key: t,
425
- ref: n,
426
- props: v,
425
+ key: i,
426
+ ref: u,
427
+ props: L,
427
428
  // Record the component responsible for creating this element.
428
- _owner: x
429
+ _owner: k
429
430
  };
430
- return b._store = {}, Object.defineProperty(b._store, "validated", {
431
+ return E._store = {}, Object.defineProperty(E._store, "validated", {
431
432
  configurable: !1,
432
433
  enumerable: !1,
433
434
  writable: !0,
434
435
  value: !1
435
- }), Object.defineProperty(b, "_self", {
436
+ }), Object.defineProperty(E, "_self", {
436
437
  configurable: !1,
437
438
  enumerable: !1,
438
439
  writable: !1,
439
- value: u
440
- }), Object.defineProperty(b, "_source", {
440
+ value: m
441
+ }), Object.defineProperty(E, "_source", {
441
442
  configurable: !1,
442
443
  enumerable: !1,
443
444
  writable: !1,
444
- value: m
445
- }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
445
+ value: I
446
+ }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
446
447
  };
447
- function wt(e, t, n, u, m) {
448
+ function Ht(e, i, u, m, I) {
448
449
  {
449
- var x, v = {}, b = null, O = null;
450
- n !== void 0 && (De(n), b = "" + n), ht(t) && (De(t.key), b = "" + t.key), vt(t) && (O = t.ref, mt(t, m));
451
- for (x in t)
452
- le.call(t, x) && !gt.hasOwnProperty(x) && (v[x] = t[x]);
450
+ var k, L = {}, E = null, Z = null;
451
+ u !== void 0 && (rt(u), E = "" + u), Bt(i) && (rt(i.key), E = "" + i.key), Pt(i) && (Z = i.ref, Ft(i, I));
452
+ for (k in i)
453
+ ke.call(i, k) && !Ut.hasOwnProperty(k) && (L[k] = i[k]);
453
454
  if (e && e.defaultProps) {
454
- var E = e.defaultProps;
455
- for (x in E)
456
- v[x] === void 0 && (v[x] = E[x]);
455
+ var U = e.defaultProps;
456
+ for (k in U)
457
+ L[k] === void 0 && (L[k] = U[k]);
457
458
  }
458
- if (b || O) {
459
- var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
460
- b && Ct(v, j), O && yt(v, j);
459
+ if (E || Z) {
460
+ var W = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
461
+ E && zt(L, W), Z && Wt(L, W);
461
462
  }
462
- return xt(e, b, O, m, u, Be.current, v);
463
+ return Vt(e, E, Z, I, m, nt.current, L);
463
464
  }
464
465
  }
465
- var Se = S.ReactCurrentOwner, Ve = S.ReactDebugCurrentFrame;
466
- function ne(e) {
466
+ var He = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
467
+ function Me(e) {
467
468
  if (e) {
468
- var t = e._owner, n = Ce(e.type, e._source, t ? t.type : null);
469
- Ve.setExtraStackFrame(n);
469
+ var i = e._owner, u = Oe(e.type, e._source, i ? i.type : null);
470
+ it.setExtraStackFrame(u);
470
471
  } else
471
- Ve.setExtraStackFrame(null);
472
+ it.setExtraStackFrame(null);
472
473
  }
473
- var je;
474
- je = !1;
475
- function $e(e) {
476
- return typeof e == "object" && e !== null && e.$$typeof === s;
474
+ var Ge;
475
+ Ge = !1;
476
+ function Ze(e) {
477
+ return typeof e == "object" && e !== null && e.$$typeof === r;
477
478
  }
478
- function We() {
479
+ function lt() {
479
480
  {
480
- if (Se.current) {
481
- var e = I(Se.current.type);
481
+ if (He.current) {
482
+ var e = D(He.current.type);
482
483
  if (e)
483
484
  return `
484
485
 
@@ -487,405 +488,405 @@ Check the render method of \`` + e + "`.";
487
488
  return "";
488
489
  }
489
490
  }
490
- function Et(e) {
491
+ function Gt(e) {
491
492
  return "";
492
493
  }
493
- var Ze = {};
494
- function Rt(e) {
494
+ var ct = {};
495
+ function Zt(e) {
495
496
  {
496
- var t = We();
497
- if (!t) {
498
- var n = typeof e == "string" ? e : e.displayName || e.name;
499
- n && (t = `
497
+ var i = lt();
498
+ if (!i) {
499
+ var u = typeof e == "string" ? e : e.displayName || e.name;
500
+ u && (i = `
500
501
 
501
- Check the top-level render call using <` + n + ">.");
502
+ Check the top-level render call using <` + u + ">.");
502
503
  }
503
- return t;
504
+ return i;
504
505
  }
505
506
  }
506
- function Ue(e, t) {
507
+ function dt(e, i) {
507
508
  {
508
509
  if (!e._store || e._store.validated || e.key != null)
509
510
  return;
510
511
  e._store.validated = !0;
511
- var n = Rt(t);
512
- if (Ze[n])
512
+ var u = Zt(i);
513
+ if (ct[u])
513
514
  return;
514
- Ze[n] = !0;
515
- var u = "";
516
- e && e._owner && e._owner !== Se.current && (u = " It was passed a child from " + I(e._owner.type) + "."), ne(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, u), ne(null);
515
+ ct[u] = !0;
516
+ var m = "";
517
+ e && e._owner && e._owner !== He.current && (m = " It was passed a child from " + D(e._owner.type) + "."), Me(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, m), Me(null);
517
518
  }
518
519
  }
519
- function Ge(e, t) {
520
+ function ut(e, i) {
520
521
  {
521
522
  if (typeof e != "object")
522
523
  return;
523
- if (Re(e))
524
- for (var n = 0; n < e.length; n++) {
525
- var u = e[n];
526
- $e(u) && Ue(u, t);
524
+ if (Ve(e))
525
+ for (var u = 0; u < e.length; u++) {
526
+ var m = e[u];
527
+ Ze(m) && dt(m, i);
527
528
  }
528
- else if ($e(e))
529
+ else if (Ze(e))
529
530
  e._store && (e._store.validated = !0);
530
531
  else if (e) {
531
- var m = L(e);
532
- if (typeof m == "function" && m !== e.entries)
533
- for (var x = m.call(e), v; !(v = x.next()).done; )
534
- $e(v.value) && Ue(v.value, t);
532
+ var I = S(e);
533
+ if (typeof I == "function" && I !== e.entries)
534
+ for (var k = I.call(e), L; !(L = k.next()).done; )
535
+ Ze(L.value) && dt(L.value, i);
535
536
  }
536
537
  }
537
538
  }
538
- function St(e) {
539
+ function qt(e) {
539
540
  {
540
- var t = e.type;
541
- if (t == null || typeof t == "string")
541
+ var i = e.type;
542
+ if (i == null || typeof i == "string")
542
543
  return;
543
- var n;
544
- if (typeof t == "function")
545
- n = t.propTypes;
546
- else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
544
+ var u;
545
+ if (typeof i == "function")
546
+ u = i.propTypes;
547
+ else if (typeof i == "object" && (i.$$typeof === d || // Note: Memo only checks outer props here.
547
548
  // Inner props are checked in the reconciler.
548
- t.$$typeof === g))
549
- n = t.propTypes;
549
+ i.$$typeof === g))
550
+ u = i.propTypes;
550
551
  else
551
552
  return;
552
- if (n) {
553
- var u = I(t);
554
- _t(n, e.props, "prop", u, e);
555
- } else if (t.PropTypes !== void 0 && !je) {
556
- je = !0;
557
- var m = I(t);
558
- y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
553
+ if (u) {
554
+ var m = D(i);
555
+ At(u, e.props, "prop", m, e);
556
+ } else if (i.PropTypes !== void 0 && !Ge) {
557
+ Ge = !0;
558
+ var I = D(i);
559
+ x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
559
560
  }
560
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
+ typeof i.getDefaultProps == "function" && !i.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
562
  }
562
563
  }
563
- function jt(e) {
564
+ function Yt(e) {
564
565
  {
565
- for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
566
- var u = t[n];
567
- if (u !== "children" && u !== "key") {
568
- ne(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), ne(null);
566
+ for (var i = Object.keys(e.props), u = 0; u < i.length; u++) {
567
+ var m = i[u];
568
+ if (m !== "children" && m !== "key") {
569
+ Me(e), x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", m), Me(null);
569
570
  break;
570
571
  }
571
572
  }
572
- e.ref !== null && (ne(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
573
+ e.ref !== null && (Me(e), x("Invalid attribute `ref` supplied to `React.Fragment`."), Me(null));
573
574
  }
574
575
  }
575
- var Ye = {};
576
- function qe(e, t, n, u, m, x) {
576
+ var _t = {};
577
+ function pt(e, i, u, m, I, k) {
577
578
  {
578
- var v = J(e);
579
- if (!v) {
580
- var b = "";
581
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
- var O = Et();
583
- O ? b += O : b += We();
584
- var E;
585
- e === null ? E = "null" : Re(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (I(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, b);
579
+ var L = F(e);
580
+ if (!L) {
581
+ var E = "";
582
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (E += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
583
+ var Z = Gt();
584
+ Z ? E += Z : E += lt();
585
+ var U;
586
+ e === null ? U = "null" : Ve(e) ? U = "array" : e !== void 0 && e.$$typeof === r ? (U = "<" + (D(e.type) || "Unknown") + " />", E = " Did you accidentally export a JSX literal instead of a component?") : U = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", U, E);
586
587
  }
587
- var j = wt(e, t, n, m, x);
588
- if (j == null)
589
- return j;
590
- if (v) {
591
- var M = t.children;
592
- if (M !== void 0)
593
- if (u)
594
- if (Re(M)) {
595
- for (var oe = 0; oe < M.length; oe++)
596
- Ge(M[oe], e);
597
- Object.freeze && Object.freeze(M);
588
+ var W = Ht(e, i, u, I, k);
589
+ if (W == null)
590
+ return W;
591
+ if (L) {
592
+ var ne = i.children;
593
+ if (ne !== void 0)
594
+ if (m)
595
+ if (Ve(ne)) {
596
+ for (var $e = 0; $e < ne.length; $e++)
597
+ ut(ne[$e], e);
598
+ Object.freeze && Object.freeze(ne);
598
599
  } else
599
- y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
+ x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
600
601
  else
601
- Ge(M, e);
602
+ ut(ne, e);
602
603
  }
603
- if (le.call(t, "key")) {
604
- var te = I(e), P = Object.keys(t).filter(function(Lt) {
605
- return Lt !== "key";
606
- }), ke = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
607
- if (!Ye[te + ke]) {
608
- var Pt = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
609
- y(`A props object containing a "key" prop is being spread into JSX:
604
+ if (ke.call(i, "key")) {
605
+ var Ce = D(e), J = Object.keys(i).filter(function(ta) {
606
+ return ta !== "key";
607
+ }), qe = J.length > 0 ? "{key: someKey, " + J.join(": ..., ") + ": ...}" : "{key: someKey}";
608
+ if (!_t[Ce + qe]) {
609
+ var ea = J.length > 0 ? "{" + J.join(": ..., ") + ": ...}" : "{}";
610
+ x(`A props object containing a "key" prop is being spread into JSX:
610
611
  let props = %s;
611
612
  <%s {...props} />
612
613
  React keys must be passed directly to JSX without using spread:
613
614
  let props = %s;
614
- <%s key={someKey} {...props} />`, ke, te, Pt, te), Ye[te + ke] = !0;
615
+ <%s key={someKey} {...props} />`, qe, Ce, ea, Ce), _t[Ce + qe] = !0;
615
616
  }
616
617
  }
617
- return e === o ? jt(j) : St(j), j;
618
+ return e === n ? Yt(W) : qt(W), W;
618
619
  }
619
620
  }
620
- function $t(e, t, n) {
621
- return qe(e, t, n, !0);
621
+ function Jt(e, i, u) {
622
+ return pt(e, i, u, !0);
622
623
  }
623
- function kt(e, t, n) {
624
- return qe(e, t, n, !1);
624
+ function Kt(e, i, u) {
625
+ return pt(e, i, u, !1);
625
626
  }
626
- var Tt = kt, Ot = $t;
627
- ue.Fragment = o, ue.jsx = Tt, ue.jsxs = Ot;
628
- }()), ue;
627
+ var Xt = Kt, Qt = Jt;
628
+ Ae.Fragment = n, Ae.jsx = Xt, Ae.jsxs = Qt;
629
+ }()), Ae;
629
630
  }
630
- var Qe;
631
- function Ft() {
632
- return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? xe.exports = Dt() : xe.exports = Bt()), xe.exports;
631
+ var ht;
632
+ function ca() {
633
+ return ht || (ht = 1, process.env.NODE_ENV === "production" ? Pe.exports = ia() : Pe.exports = la()), Pe.exports;
633
634
  }
634
- var l = Ft();
635
- const zt = (r) => r.as === "a", Vt = (r) => r.as === void 0 || r.as === "button", Wt = "_button_unbux_213", Zt = "_disabled_unbux_237", Ut = "_loading_unbux_237", Gt = "_neutral_unbux_259", Yt = "_accent_unbux_263", qt = "_positive_unbux_267", Ht = "_negative_unbux_271", Jt = "_contrast_unbux_275", Kt = "_special_unbux_279", Qt = "_primary_unbux_284", Xt = "_secondary_unbux_285", e2 = "_tertiary_unbux_286", t2 = "_label_unbux_321", r2 = "_rightGroup_unbux_333", a2 = "_iconOnly_unbux_349", n2 = "_large_unbux_357", o2 = "_medium_unbux_361", s2 = "_small_unbux_365", i2 = "_spaceBetween_unbux_370", l2 = "_stretched_unbux_384", c2 = "_icon_unbux_349", u2 = "_badge_unbux_705", d2 = "_badgeMedium_unbux_721", _2 = "_circular_unbux_738", f2 = "_badgeSmall_unbux_743", p2 = "_badgeExtraSmall_unbux_765", b2 = "_withSubcaption_unbux_784", g2 = "_subcaption_unbux_797", v2 = "_loader_unbux_804", h2 = "_spin_unbux_1", m2 = "_l_unbux_237", C2 = "_m_unbux_361", y2 = "_s_unbux_279", x2 = "_xs_unbux_869", R = {
636
- button: Wt,
637
- disabled: Zt,
638
- loading: Ut,
639
- neutral: Gt,
640
- accent: Yt,
641
- positive: qt,
642
- negative: Ht,
643
- contrast: Jt,
644
- special: Kt,
645
- primary: Qt,
646
- secondary: Xt,
647
- tertiary: e2,
648
- label: t2,
649
- rightGroup: r2,
650
- iconOnly: a2,
651
- large: n2,
652
- medium: o2,
653
- small: s2,
654
- spaceBetween: i2,
655
- stretched: l2,
656
- icon: c2,
657
- badge: u2,
658
- badgeMedium: d2,
659
- circular: _2,
660
- badgeSmall: f2,
661
- badgeExtraSmall: p2,
662
- withSubcaption: b2,
663
- subcaption: g2,
664
- loader: v2,
665
- spin: h2,
666
- l: m2,
667
- m: C2,
668
- s: y2,
669
- xs: x2
670
- }, Xe = ({
671
- isLoading: r,
672
- showBadge: s,
635
+ var l = ca();
636
+ const da = (t) => t.as === "a", ua = (t) => t.as === void 0 || t.as === "button", _a = "_button_1abee_213", pa = "_disabled_1abee_237", fa = "_loading_1abee_237", ga = "_neutral_1abee_259", ha = "_accent_1abee_263", ba = "_positive_1abee_267", ma = "_negative_1abee_271", ya = "_contrast_1abee_275", va = "_special_1abee_279", xa = "_primary_1abee_284", Ca = "_secondary_1abee_285", wa = "_tertiary_1abee_286", Sa = "_label_1abee_321", Ea = "_rightGroup_1abee_333", La = "_iconOnly_1abee_349", Ma = "_large_1abee_357", $a = "_medium_1abee_361", Ia = "_small_1abee_365", ja = "_spaceBetween_1abee_370", Ra = "_stretched_1abee_384", ka = "_icon_1abee_349", Ta = "_badge_1abee_705", Aa = "_badgeMedium_1abee_721", Na = "_circular_1abee_738", Da = "_badgeSmall_1abee_743", Oa = "_badgeExtraSmall_1abee_765", Ua = "_withSubcaption_1abee_784", Pa = "_subcaption_1abee_797", Ba = "_loader_1abee_804", Fa = "_spin_1abee_1", za = "_l_1abee_237", Wa = "_m_1abee_361", Va = "_s_1abee_279", Ha = "_xs_1abee_869", P = {
637
+ button: _a,
638
+ disabled: pa,
639
+ loading: fa,
640
+ neutral: ga,
641
+ accent: ha,
642
+ positive: ba,
643
+ negative: ma,
644
+ contrast: ya,
645
+ special: va,
646
+ primary: xa,
647
+ secondary: Ca,
648
+ tertiary: wa,
649
+ label: Sa,
650
+ rightGroup: Ea,
651
+ iconOnly: La,
652
+ large: Ma,
653
+ medium: $a,
654
+ small: Ia,
655
+ spaceBetween: ja,
656
+ stretched: Ra,
657
+ icon: ka,
658
+ badge: Ta,
659
+ badgeMedium: Aa,
660
+ circular: Na,
661
+ badgeSmall: Da,
662
+ badgeExtraSmall: Oa,
663
+ withSubcaption: Ua,
664
+ subcaption: Pa,
665
+ loader: Ba,
666
+ spin: Fa,
667
+ l: za,
668
+ m: Wa,
669
+ s: Va,
670
+ xs: Ha
671
+ }, bt = ({
672
+ isLoading: t,
673
+ showBadge: r,
673
674
  badgeValue: a,
674
- badgeSize: o,
675
- icon: d,
676
- children: i,
677
- postfix: _,
678
- showSubcaption: f,
679
- subcaption: c,
680
- size: h
675
+ badgeSize: n,
676
+ icon: o,
677
+ children: s,
678
+ postfix: c,
679
+ showSubcaption: _,
680
+ subcaption: d,
681
+ size: f
681
682
  }) => {
682
- if (r)
683
- return /* @__PURE__ */ l.jsx("span", { className: R.loader, "data-testid": "button-loader", "aria-hidden": "true" });
684
- const p = o === "extra-small", g = parseInt(String(a), 10), C = !isNaN(g) && g >= 0 && g <= 9;
683
+ if (t)
684
+ return /* @__PURE__ */ l.jsx("span", { className: P.loader, "data-testid": "button-loader", "aria-hidden": "true" });
685
+ const p = n === "extra-small", g = parseInt(String(a), 10), h = !isNaN(g) && g >= 0 && g <= 9;
685
686
  return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
686
- s && (a || p) && /* @__PURE__ */ l.jsx(
687
+ r && (a || p) && /* @__PURE__ */ l.jsx(
687
688
  "span",
688
689
  {
689
690
  "data-testid": "button-badge",
690
- className: ae(
691
- R.badge,
692
- R[`badge${p ? "ExtraSmall" : o === "medium" ? "Medium" : "Small"}`],
693
- { [R.circular]: C && !p }
691
+ className: ie(
692
+ P.badge,
693
+ P[`badge${p ? "ExtraSmall" : n === "medium" ? "Medium" : "Small"}`],
694
+ { [P.circular]: h && !p }
694
695
  ),
695
696
  children: !p && a
696
697
  }
697
698
  ),
698
- f && h !== "s" && h !== "xs" ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
699
- /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: R.label, children: i }),
700
- /* @__PURE__ */ l.jsx("span", { "data-testid": "button-subcaption", className: R.subcaption, children: c })
701
- ] }) : i ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
702
- /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: R.label, children: i }),
703
- /* @__PURE__ */ l.jsxs("div", { "data-testid": "button-right-group", className: R.rightGroup, children: [
704
- d && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: R.icon, children: d }),
705
- _ && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-postfix", className: R.postfix, children: _ })
699
+ _ && f !== "s" && f !== "xs" ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
700
+ /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: P.label, children: s }),
701
+ /* @__PURE__ */ l.jsx("span", { "data-testid": "button-subcaption", className: P.subcaption, children: d })
702
+ ] }) : s ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
703
+ /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: P.label, children: s }),
704
+ /* @__PURE__ */ l.jsxs("div", { "data-testid": "button-right-group", className: P.rightGroup, children: [
705
+ o && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: P.icon, children: o }),
706
+ c && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-postfix", className: P.postfix, children: c })
706
707
  ] })
707
- ] }) : /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: R.icon, children: d })
708
+ ] }) : /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: P.icon, children: o })
708
709
  ] });
709
- }, Zr = H((r, s) => {
710
+ }, $s = K((t, r) => {
710
711
  const {
711
712
  mode: a = "primary",
712
- size: o = "m",
713
- buttonStyle: d = "neutral",
714
- loading: i = !1,
715
- disabled: _ = !1,
716
- showBadge: f = !1,
717
- badgeSize: c = "small",
718
- badgeValue: h,
713
+ size: n = "m",
714
+ buttonStyle: o = "neutral",
715
+ loading: s = !1,
716
+ disabled: c = !1,
717
+ showBadge: _ = !1,
718
+ badgeSize: d = "small",
719
+ badgeValue: f,
719
720
  showSubcaption: p = !1,
720
721
  subcaption: g,
721
- stretched: C = !1,
722
- spaceBetween: w = !1,
723
- icon: $,
724
- postfix: k,
725
- className: L,
726
- children: S
727
- } = r, y = _, T = i, N = !y && !T, U = !!$ && !S, B = ae(
728
- R.button,
729
- R[o],
730
- R[a],
731
- R[d],
722
+ stretched: h = !1,
723
+ spaceBetween: b = !1,
724
+ icon: v,
725
+ postfix: w,
726
+ className: S,
727
+ children: C
728
+ } = t, x = c, $ = s, T = !x && !$, A = !!v && !C, O = ie(
729
+ P.button,
730
+ P[n],
731
+ P[a],
732
+ P[o],
732
733
  {
733
- [R.disabled]: y,
734
- [R.loading]: T,
735
- [R.stretched]: C,
736
- [R.spaceBetween]: w && C,
737
- [R.withSubcaption]: p && g && o !== "s" && o !== "xs",
738
- [R.iconOnly]: U
734
+ [P.disabled]: x,
735
+ [P.loading]: $,
736
+ [P.stretched]: h,
737
+ [P.spaceBetween]: b && h,
738
+ [P.withSubcaption]: p && g && n !== "s" && n !== "xs",
739
+ [P.iconOnly]: A
739
740
  },
740
- L
741
- ), F = {
742
- isLoading: T,
743
- showBadge: f,
744
- badgeValue: h,
745
- badgeSize: c,
746
- icon: $,
747
- children: S,
748
- postfix: k,
741
+ S
742
+ ), R = {
743
+ isLoading: $,
744
+ showBadge: _,
745
+ badgeValue: f,
746
+ badgeSize: d,
747
+ icon: v,
748
+ children: C,
749
+ postfix: w,
749
750
  showSubcaption: p,
750
751
  subcaption: g,
751
- size: o
752
+ size: n
752
753
  };
753
- if (zt(r)) {
754
+ if (da(t)) {
754
755
  const {
755
- href: z,
756
- onClick: A,
757
- mode: J,
758
- size: K,
759
- buttonStyle: G,
760
- loading: I,
761
- disabled: V,
762
- showBadge: Q,
763
- badgeSize: _e,
764
- badgeValue: fe,
765
- showSubcaption: pe,
766
- subcaption: be,
767
- stretched: ge,
768
- spaceBetween: ve,
769
- icon: he,
770
- postfix: me,
771
- className: we,
756
+ href: B,
757
+ onClick: N,
758
+ mode: F,
759
+ size: y,
760
+ buttonStyle: z,
761
+ loading: D,
762
+ disabled: j,
763
+ showBadge: V,
764
+ badgeSize: H,
765
+ badgeValue: X,
766
+ showSubcaption: G,
767
+ subcaption: ee,
768
+ stretched: te,
769
+ spaceBetween: ae,
770
+ icon: me,
771
+ postfix: re,
772
+ className: ve,
772
773
  tabIndex: Ee,
773
- children: se,
774
- "data-testid": X,
775
- style: Y,
776
- ...ee
777
- } = r, q = (ie) => {
778
- N && A && A(ie);
774
+ children: Le,
775
+ "data-testid": ue,
776
+ style: le,
777
+ ..._e
778
+ } = t, ce = (xe) => {
779
+ T && N && N(xe);
779
780
  };
780
781
  return /* @__PURE__ */ l.jsx(
781
782
  "a",
782
783
  {
783
- ref: s,
784
- className: B,
785
- href: N ? z : void 0,
786
- tabIndex: r.tabIndex,
787
- onClick: q,
788
- "data-testid": X,
789
- "aria-disabled": y || T,
790
- style: Y,
791
- ...ee,
792
- children: /* @__PURE__ */ l.jsx(Xe, { ...F })
784
+ ref: r,
785
+ className: O,
786
+ href: T ? B : void 0,
787
+ tabIndex: t.tabIndex,
788
+ onClick: ce,
789
+ "data-testid": ue,
790
+ "aria-disabled": x || $,
791
+ style: le,
792
+ ..._e,
793
+ children: /* @__PURE__ */ l.jsx(bt, { ...R })
793
794
  }
794
795
  );
795
796
  }
796
- if (Vt(r)) {
797
+ if (ua(t)) {
797
798
  const {
798
- type: z = "button",
799
- onClick: A,
800
- mode: J,
801
- size: K,
802
- buttonStyle: G,
803
- loading: I,
804
- disabled: V,
805
- showBadge: Q,
806
- badgeSize: _e,
807
- badgeValue: fe,
808
- showSubcaption: pe,
809
- subcaption: be,
810
- stretched: ge,
811
- spaceBetween: ve,
812
- icon: he,
813
- postfix: me,
814
- className: we,
799
+ type: B = "button",
800
+ onClick: N,
801
+ mode: F,
802
+ size: y,
803
+ buttonStyle: z,
804
+ loading: D,
805
+ disabled: j,
806
+ showBadge: V,
807
+ badgeSize: H,
808
+ badgeValue: X,
809
+ showSubcaption: G,
810
+ subcaption: ee,
811
+ stretched: te,
812
+ spaceBetween: ae,
813
+ icon: me,
814
+ postfix: re,
815
+ className: ve,
815
816
  tabIndex: Ee,
816
- children: se,
817
- "data-testid": X,
818
- style: Y,
819
- ...ee
820
- } = r, q = (ie) => {
821
- N && A && A(ie);
817
+ children: Le,
818
+ "data-testid": ue,
819
+ style: le,
820
+ ..._e
821
+ } = t, ce = (xe) => {
822
+ T && N && N(xe);
822
823
  };
823
824
  return /* @__PURE__ */ l.jsx(
824
825
  "button",
825
826
  {
826
- ref: s,
827
- type: z,
828
- className: B,
829
- disabled: y,
830
- tabIndex: r.tabIndex,
831
- onClick: q,
832
- "data-testid": X,
833
- "aria-disabled": y || T,
834
- style: Y,
835
- ...ee,
836
- children: /* @__PURE__ */ l.jsx(Xe, { ...F })
827
+ ref: r,
828
+ type: B,
829
+ className: O,
830
+ disabled: x,
831
+ tabIndex: t.tabIndex,
832
+ onClick: ce,
833
+ "data-testid": ue,
834
+ "aria-disabled": x || $,
835
+ style: le,
836
+ ..._e,
837
+ children: /* @__PURE__ */ l.jsx(bt, { ...R })
837
838
  }
838
839
  );
839
840
  }
840
841
  return null;
841
842
  });
842
- var Te = { exports: {} };
843
+ var Ye = { exports: {} };
843
844
  /*!
844
845
  Copyright (c) 2018 Jed Watson.
845
846
  Licensed under the MIT License (MIT), see
846
847
  http://jedwatson.github.io/classnames
847
848
  */
848
- var et;
849
- function w2() {
850
- return et || (et = 1, function(r) {
849
+ var mt;
850
+ function Ga() {
851
+ return mt || (mt = 1, function(t) {
851
852
  (function() {
852
- var s = {}.hasOwnProperty;
853
+ var r = {}.hasOwnProperty;
853
854
  function a() {
854
- for (var i = "", _ = 0; _ < arguments.length; _++) {
855
- var f = arguments[_];
856
- f && (i = d(i, o(f)));
855
+ for (var s = "", c = 0; c < arguments.length; c++) {
856
+ var _ = arguments[c];
857
+ _ && (s = o(s, n(_)));
857
858
  }
858
- return i;
859
+ return s;
859
860
  }
860
- function o(i) {
861
- if (typeof i == "string" || typeof i == "number")
862
- return i;
863
- if (typeof i != "object")
861
+ function n(s) {
862
+ if (typeof s == "string" || typeof s == "number")
863
+ return s;
864
+ if (typeof s != "object")
864
865
  return "";
865
- if (Array.isArray(i))
866
- return a.apply(null, i);
867
- if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
868
- return i.toString();
869
- var _ = "";
870
- for (var f in i)
871
- s.call(i, f) && i[f] && (_ = d(_, f));
872
- return _;
866
+ if (Array.isArray(s))
867
+ return a.apply(null, s);
868
+ if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
869
+ return s.toString();
870
+ var c = "";
871
+ for (var _ in s)
872
+ r.call(s, _) && s[_] && (c = o(c, _));
873
+ return c;
873
874
  }
874
- function d(i, _) {
875
- return _ ? i ? i + " " + _ : i + _ : i;
875
+ function o(s, c) {
876
+ return c ? s ? s + " " + c : s + c : s;
876
877
  }
877
- r.exports ? (a.default = a, r.exports = a) : window.classNames = a;
878
+ t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
878
879
  })();
879
- }(Te)), Te.exports;
880
+ }(Ye)), Ye.exports;
880
881
  }
881
- var E2 = w2();
882
- const Z = /* @__PURE__ */ Mt(E2), R2 = "_avatar_1ob17_4", S2 = "_clickable_1ob17_23", j2 = "_icon_1ob17_40", $2 = "_disabled_1ob17_45", k2 = "_image_1ob17_51", T2 = "_name_1ob17_51", O2 = "_circle_1ob17_160", P2 = "_square_1ob17_164", D = {
883
- avatar: R2,
884
- clickable: S2,
885
- icon: j2,
886
- disabled: $2,
887
- image: k2,
888
- name: T2,
882
+ var Za = Ga();
883
+ const he = /* @__PURE__ */ oa(Za), qa = "_avatar_1ob17_4", Ya = "_clickable_1ob17_23", Ja = "_icon_1ob17_40", Ka = "_disabled_1ob17_45", Xa = "_image_1ob17_51", Qa = "_name_1ob17_51", er = "_circle_1ob17_160", tr = "_square_1ob17_164", se = {
884
+ avatar: qa,
885
+ clickable: Ya,
886
+ icon: Ja,
887
+ disabled: Ka,
888
+ image: Xa,
889
+ name: Qa,
889
890
  "size-208": "_size-208_1ob17_104",
890
891
  "size-96": "_size-96_1ob17_111",
891
892
  "size-84": "_size-84_1ob17_118",
@@ -894,8 +895,8 @@ const Z = /* @__PURE__ */ Mt(E2), R2 = "_avatar_1ob17_4", S2 = "_clickable_1ob17
894
895
  "size-40": "_size-40_1ob17_139",
895
896
  "size-32": "_size-32_1ob17_146",
896
897
  "size-24": "_size-24_1ob17_153",
897
- circle: O2,
898
- square: P2,
898
+ circle: er,
899
+ square: tr,
899
900
  "variant-filled": "_variant-filled_1ob17_185",
900
901
  "color-brand": "_color-brand_1ob17_190",
901
902
  "color-red": "_color-red_1ob17_194",
@@ -909,20 +910,20 @@ const Z = /* @__PURE__ */ Mt(E2), R2 = "_avatar_1ob17_4", S2 = "_clickable_1ob17
909
910
  "color-contrast": "_color-contrast_1ob17_226",
910
911
  "variant-light": "_variant-light_1ob17_232",
911
912
  "variant-outline": "_variant-outline_1ob17_304"
912
- }, tt = 99;
913
- function L2(r) {
914
- return r < tt ? `+${r}` : `${tt}+`;
913
+ }, yt = 99;
914
+ function ar(t) {
915
+ return t < yt ? `+${t}` : `${yt}+`;
915
916
  }
916
- function it(r) {
917
- const s = typeof r == "string" ? r : JSON.stringify(r);
917
+ function $t(t) {
918
+ const r = typeof t == "string" ? t : JSON.stringify(t);
918
919
  let a = 5381;
919
- for (let o = 0; o < s.length; o++) {
920
- const d = s.charCodeAt(o);
921
- a = (a << 5) + a + d;
920
+ for (let n = 0; n < r.length; n++) {
921
+ const o = r.charCodeAt(n);
922
+ a = (a << 5) + a + o;
922
923
  }
923
924
  return a >>> 0;
924
925
  }
925
- const N2 = [
926
+ const rr = [
926
927
  "red",
927
928
  "orange",
928
929
  "yellow",
@@ -931,70 +932,70 @@ const N2 = [
931
932
  "lightblue",
932
933
  "purple"
933
934
  ];
934
- function I2(r, s = N2) {
935
- const a = it(r), o = Math.abs(a) % s.length;
936
- return s[o];
935
+ function nr(t, r = rr) {
936
+ const a = $t(t), n = Math.abs(a) % r.length;
937
+ return r[n];
937
938
  }
938
- const rt = 2;
939
- function A2(r) {
940
- const s = r.split(" ");
941
- return s.length === 1 ? r.slice(0, rt).toUpperCase() : s.map((a) => a[0]).slice(0, rt).join("").toUpperCase();
939
+ const vt = 2;
940
+ function sr(t) {
941
+ const r = t.split(" ");
942
+ return r.length === 1 ? t.slice(0, vt).toUpperCase() : r.map((a) => a[0]).slice(0, vt).join("").toUpperCase();
942
943
  }
943
- function M2(r, s) {
944
- return s === "circle" ? r / 2 : r === 24 || r === 208 ? 8 : r === 32 || r === 40 || r === 48 ? 12 : r === 56 ? 16 : r === 84 || r === 96 ? 24 : 12;
944
+ function or(t, r) {
945
+ return r === "circle" ? t / 2 : t === 24 || t === 208 ? 8 : t === 32 || t === 40 || t === 48 ? 12 : t === 56 ? 16 : t === 84 || t === 96 ? 24 : 12;
945
946
  }
946
- const D2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", B2 = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", F2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", z2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", V2 = {
947
- male: D2,
948
- female: B2,
949
- org: z2,
950
- neutral: F2
951
- }, Pe = H((r, s) => {
947
+ const ir = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", lr = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", cr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", dr = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", ur = {
948
+ male: ir,
949
+ female: lr,
950
+ org: dr,
951
+ neutral: cr
952
+ }, Qe = K((t, r) => {
952
953
  const {
953
954
  style: a,
954
- size: o = 40,
955
- isLoading: d = !1,
956
- isDisabled: i = !1,
957
- shape: _ = "circle",
958
- variant: f = "light",
959
- placeholderType: c = "neutral",
960
- name: h = "",
955
+ size: n = 40,
956
+ isLoading: o = !1,
957
+ isDisabled: s = !1,
958
+ shape: c = "circle",
959
+ variant: _ = "light",
960
+ placeholderType: d = "neutral",
961
+ name: f = "",
961
962
  imgSrc: p,
962
963
  imgAlt: g = "",
963
- icon: C,
964
- imgProps: w,
965
- colorScheme: $,
966
- "data-testid": k,
967
- ...L
968
- } = r, { onClick: S, onPointerDown: y } = L, N = !i && !d && (!!S || !!y), [U, B] = Le(!p), F = p && !U ? "image" : C ? "icon" : h ? "name" : "placeholder", z = F === "name" ? $ || I2(h) : $ || "gray", A = Z(
969
- D.avatar,
970
- D[_],
971
- D[`size-${o}`],
972
- D[`variant-${f}`],
973
- D[`color-${z}`],
964
+ icon: h,
965
+ imgProps: b,
966
+ colorScheme: v,
967
+ "data-testid": w,
968
+ ...S
969
+ } = t, { onClick: C, onPointerDown: x } = S, T = !s && !o && (!!C || !!x), [A, O] = De(!p), R = p && !A ? "image" : h ? "icon" : f ? "name" : "placeholder", B = R === "name" ? v || nr(f) : v || "gray", N = he(
970
+ se.avatar,
971
+ se[c],
972
+ se[`size-${n}`],
973
+ se[`variant-${_}`],
974
+ se[`color-${B}`],
974
975
  {
975
- [D.disabled]: i,
976
- [D.loading]: d,
977
- [D.clickable]: N
976
+ [se.disabled]: s,
977
+ [se.loading]: o,
978
+ [se.clickable]: T
978
979
  }
979
- ), J = {
980
- icon: () => /* @__PURE__ */ l.jsx("span", { "data-testid": "avatar-icon", title: g, role: "img", className: Z(D.icon), children: C == null ? void 0 : C({}) }),
980
+ ), F = {
981
+ icon: () => /* @__PURE__ */ l.jsx("span", { "data-testid": "avatar-icon", title: g, role: "img", className: he(se.icon), children: h == null ? void 0 : h({}) }),
981
982
  name: () => /* @__PURE__ */ l.jsx(
982
983
  "span",
983
984
  {
984
985
  role: "textbox",
985
986
  "data-testid": "avatar-name",
986
- className: Z(D.name),
987
+ className: he(se.name),
987
988
  title: g,
988
- children: A2(h)
989
+ children: sr(f)
989
990
  }
990
991
  ),
991
992
  placeholder: () => /* @__PURE__ */ l.jsx(
992
993
  "img",
993
994
  {
994
- ...w,
995
+ ...b,
995
996
  "data-testid": "avatar-placeholder",
996
- className: D.image,
997
- src: V2[c],
997
+ className: se.image,
998
+ src: ur[d],
998
999
  alt: g
999
1000
  }
1000
1001
  ),
@@ -1002,111 +1003,111 @@ const D2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
1002
1003
  "img",
1003
1004
  {
1004
1005
  "data-testid": "avatar-image",
1005
- ...w,
1006
- className: D.image,
1006
+ ...b,
1007
+ className: se.image,
1007
1008
  src: p,
1008
1009
  alt: g,
1009
- onLoad: () => B(!1),
1010
- onError: (G) => {
1011
- var I;
1012
- B(!0), (I = w == null ? void 0 : w.onError) == null || I.call(w, G);
1010
+ onLoad: () => O(!1),
1011
+ onError: (z) => {
1012
+ var D;
1013
+ O(!0), (D = b == null ? void 0 : b.onError) == null || D.call(b, z);
1013
1014
  }
1014
1015
  }
1015
1016
  )
1016
- }, K = (G) => {
1017
- N && (S == null || S(G));
1017
+ }, y = (z) => {
1018
+ T && (C == null || C(z));
1018
1019
  };
1019
1020
  return /* @__PURE__ */ l.jsx(
1020
1021
  "div",
1021
1022
  {
1022
- ref: s,
1023
- onClick: K,
1024
- className: A,
1023
+ ref: r,
1024
+ onClick: y,
1025
+ className: N,
1025
1026
  style: a,
1026
- "data-testid": k,
1027
- "aria-disabled": i || d,
1028
- children: J[F](null)
1027
+ "data-testid": w,
1028
+ "aria-disabled": s || o,
1029
+ children: F[R](null)
1029
1030
  }
1030
1031
  );
1031
- }), W2 = "_avatarGroup_157g4_1", Z2 = {
1032
- avatarGroup: W2
1032
+ }), _r = "_avatarGroup_157g4_1", pr = {
1033
+ avatarGroup: _r
1033
1034
  };
1034
- let U2 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((s, a) => (a &= 63, a < 36 ? s += a.toString(36) : a < 62 ? s += (a - 26).toString(36).toUpperCase() : a > 62 ? s += "-" : s += "_", s), "");
1035
- function G2(r, s, a, o, d, i, _) {
1036
- const f = Math.min(d, i) / 2, c = Math.min(_, f), h = ["M0,0", `H${r}`, `V${s}`, "H0", "V0", "Z"].join(" "), p = [
1037
- `M${a + c},${o}`,
1038
- `L${a + d - c},${o}`,
1035
+ let fr = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
1036
+ function gr(t, r, a, n, o, s, c) {
1037
+ const _ = Math.min(o, s) / 2, d = Math.min(c, _), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), p = [
1038
+ `M${a + d},${n}`,
1039
+ `L${a + o - d},${n}`,
1039
1040
  // Верхний правый угол
1040
- `A${c},${c} 0 0 1 ${a + d},${o + c}`,
1041
- `L${a + d},${o + i - c}`,
1041
+ `A${d},${d} 0 0 1 ${a + o},${n + d}`,
1042
+ `L${a + o},${n + s - d}`,
1042
1043
  // Нижний правый угол
1043
- `A${c},${c} 0 0 1 ${a + d - c},${o + i}`,
1044
- `L${a + c},${o + i}`,
1044
+ `A${d},${d} 0 0 1 ${a + o - d},${n + s}`,
1045
+ `L${a + d},${n + s}`,
1045
1046
  // Нижний левый угол
1046
- `A${c},${c} 0 0 1 ${a},${o + i - c}`,
1047
- `L${a},${o + c}`,
1047
+ `A${d},${d} 0 0 1 ${a},${n + s - d}`,
1048
+ `L${a},${n + d}`,
1048
1049
  // Верхний левый угол
1049
- `A${c},${c} 0 0 1 ${a + c},${o}`,
1050
+ `A${d},${d} 0 0 1 ${a + d},${n}`,
1050
1051
  "Z"
1051
1052
  ].join(" ");
1052
- return `${h} ${p}`;
1053
+ return `${f} ${p}`;
1053
1054
  }
1054
- const Y2 = 2, q2 = (r) => {
1055
+ const hr = 2, br = (t) => {
1055
1056
  const {
1056
- avatars: s = [],
1057
+ avatars: r = [],
1057
1058
  overflowCount: a = 0,
1058
- size: o = 40,
1059
- overlap: d = 0.3,
1060
- shape: i = "circle",
1061
- overflowOnClick: _
1062
- } = r, f = o * d, c = -f + Y2, h = M2(o, i), g = ot(U2()).current.toString(), C = Z(Z2.avatarGroup), w = G2(
1063
- o,
1064
- o,
1065
- o - f,
1059
+ size: n = 40,
1060
+ overlap: o = 0.3,
1061
+ shape: s = "circle",
1062
+ overflowOnClick: c
1063
+ } = t, _ = n * o, d = -_ + hr, f = or(n, s), g = ze(fr()).current.toString(), h = he(pr.avatarGroup), b = gr(
1064
+ n,
1065
+ n,
1066
+ n - _,
1066
1067
  // X-координата начала выреза
1067
1068
  0,
1068
1069
  // Y-координата начала выреза
1069
- o,
1070
- o,
1071
- h
1070
+ n,
1071
+ n,
1072
+ f
1072
1073
  );
1073
- return s.length === 0 ? null : /* @__PURE__ */ l.jsxs("div", { className: C, children: [
1074
- s.map(($, k, L) => {
1075
- const S = k + 1 >= L.length;
1074
+ return r.length === 0 ? null : /* @__PURE__ */ l.jsxs("div", { className: h, children: [
1075
+ r.map((v, w, S) => {
1076
+ const C = w + 1 >= S.length;
1076
1077
  return /* @__PURE__ */ l.jsx(
1077
1078
  "div",
1078
1079
  {
1079
1080
  style: {
1080
1081
  // Для последнего видимого аватара без overflowCount не применяем обрезку
1081
- clipPath: S && !a ? void 0 : `url(#${g})`,
1082
- marginRight: c
1082
+ clipPath: C && !a ? void 0 : `url(#${g})`,
1083
+ marginRight: d
1083
1084
  },
1084
- children: /* @__PURE__ */ l.jsx(Pe, { size: o, shape: i, ...$ })
1085
+ children: /* @__PURE__ */ l.jsx(Qe, { size: n, shape: s, ...v })
1085
1086
  },
1086
- it($) + k
1087
+ $t(v) + w
1087
1088
  );
1088
1089
  }),
1089
- a > 0 && /* @__PURE__ */ l.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ l.jsx(
1090
- Pe,
1090
+ a > 0 && /* @__PURE__ */ l.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ l.jsx(
1091
+ Qe,
1091
1092
  {
1092
- size: o,
1093
- shape: i,
1094
- onClick: _,
1095
- icon: () => L2(a),
1093
+ size: n,
1094
+ shape: s,
1095
+ onClick: c,
1096
+ icon: () => ar(a),
1096
1097
  colorScheme: "gray"
1097
1098
  }
1098
1099
  ) }),
1099
- /* @__PURE__ */ l.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ l.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ l.jsx("path", { clipPathUnits: "objectBoundingBox", d: w, clipRule: "evenodd" }) }) })
1100
+ /* @__PURE__ */ l.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ l.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ l.jsx("path", { clipPathUnits: "objectBoundingBox", d: b, clipRule: "evenodd" }) }) })
1100
1101
  ] });
1101
- }, Ur = Object.assign(Pe, {
1102
- Group: q2
1103
- }), H2 = "_wrapper_1ncab_5", J2 = "_badge__container_1ncab_6", K2 = "_badge__content_1ncab_7", Q2 = "_interactive_1ncab_20", X2 = "_disabled_1ncab_21", er = "_icon_1ncab_22", W = {
1104
- wrapper: H2,
1105
- badge__container: J2,
1106
- badge__content: K2,
1107
- interactive: Q2,
1108
- disabled: X2,
1109
- icon: er,
1102
+ }, Is = Object.assign(Qe, {
1103
+ Group: br
1104
+ }), mr = "_wrapper_1ncab_5", yr = "_badge__container_1ncab_6", vr = "_badge__content_1ncab_7", xr = "_interactive_1ncab_20", Cr = "_disabled_1ncab_21", wr = "_icon_1ncab_22", pe = {
1105
+ wrapper: mr,
1106
+ badge__container: yr,
1107
+ badge__content: vr,
1108
+ interactive: xr,
1109
+ disabled: Cr,
1110
+ icon: wr,
1110
1111
  "variant-filled": "_variant-filled_1ncab_101",
1111
1112
  "color-brand": "_color-brand_1ncab_106",
1112
1113
  "color-red": "_color-red_1ncab_110",
@@ -1138,127 +1139,127 @@ const Y2 = 2, q2 = (r) => {
1138
1139
  "position-bottom-center-inside": "_position-bottom-center-inside_1ncab_446",
1139
1140
  "position-middle-left-inside": "_position-middle-left-inside_1ncab_452",
1140
1141
  "position-middle-right-inside": "_position-middle-right-inside_1ncab_458"
1141
- }, tr = (r) => r === "rgba(0, 0, 0, 0)" || r === "transparent" || r.startsWith("rgba") && r.endsWith(", 0)"), rr = (r) => {
1142
- if (!r) return null;
1143
- let s = r;
1144
- for (; s; ) {
1145
- const o = window.getComputedStyle(s).backgroundColor;
1146
- if (!tr(o)) return o;
1147
- s = s.parentElement;
1142
+ }, Sr = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), Er = (t) => {
1143
+ if (!t) return null;
1144
+ let r = t;
1145
+ for (; r; ) {
1146
+ const n = window.getComputedStyle(r).backgroundColor;
1147
+ if (!Sr(n)) return n;
1148
+ r = r.parentElement;
1148
1149
  }
1149
1150
  return null;
1150
- }, ar = () => {
1151
- const r = ot(null), [s, a] = Le(null);
1152
- return st(() => {
1153
- if (r.current) {
1154
- const o = rr(r.current);
1155
- a(o);
1151
+ }, Lr = () => {
1152
+ const t = ze(null), [r, a] = De(null);
1153
+ return Re(() => {
1154
+ if (t.current) {
1155
+ const n = Er(t.current);
1156
+ a(n);
1156
1157
  }
1157
- }, []), { ref: r, bgColor: s };
1158
- }, Gr = H((r, s) => {
1158
+ }, []), { ref: t, bgColor: r };
1159
+ }, js = K((t, r) => {
1159
1160
  const {
1160
1161
  icon: a,
1161
- children: o,
1162
- variant: d = "filled",
1163
- label: i,
1164
- colorScheme: _ = "red",
1165
- size: f = 20,
1166
- position: c = "top-right",
1167
- positionOffset: h = { x: 0, y: 0 },
1162
+ children: n,
1163
+ variant: o = "filled",
1164
+ label: s,
1165
+ colorScheme: c = "red",
1166
+ size: _ = 20,
1167
+ position: d = "top-right",
1168
+ positionOffset: f = { x: 0, y: 0 },
1168
1169
  cutoutBackground: p,
1169
1170
  isDisabled: g,
1170
- className: C,
1171
- "data-testid": w = "badge",
1172
- ...$
1173
- } = r, { onClick: k, onPointerDown: L } = $, { ref: S, bgColor: y } = ar(), T = p || y, U = !g && (!!k || !!L), B = Z(W.badge__container, W[`position-${c}`]), F = Z(
1174
- C,
1175
- W.badge__content,
1176
- W[`color-${_}`],
1177
- W[`variant-${d}`],
1171
+ className: h,
1172
+ "data-testid": b = "badge",
1173
+ ...v
1174
+ } = t, { onClick: w, onPointerDown: S } = v, { ref: C, bgColor: x } = Lr(), $ = p || x, A = !g && (!!w || !!S), O = he(pe.badge__container, pe[`position-${d}`]), R = he(
1175
+ h,
1176
+ pe.badge__content,
1177
+ pe[`color-${c}`],
1178
+ pe[`variant-${o}`],
1178
1179
  {
1179
- [W.icon]: !!a,
1180
- [W.interactive]: U,
1181
- [W.disabled]: g
1180
+ [pe.icon]: !!a,
1181
+ [pe.interactive]: A,
1182
+ [pe.disabled]: g
1182
1183
  }
1183
- ), z = {
1184
- "--badge-height": `${f}px`,
1185
- "--badge-offset-x": `${h.x}px`,
1186
- "--badge-offset-y": `${h.y}px`,
1187
- ...T && { "--badge-cutout-bg": T },
1188
- ...d === "transparent" && { "--badge-cutout-bg": "transparent" }
1189
- }, A = (a == null ? void 0 : a({})) || i, J = (K) => {
1190
- U && (k == null || k(K));
1184
+ ), B = {
1185
+ "--badge-height": `${_}px`,
1186
+ "--badge-offset-x": `${f.x}px`,
1187
+ "--badge-offset-y": `${f.y}px`,
1188
+ ...$ && { "--badge-cutout-bg": $ },
1189
+ ...o === "transparent" && { "--badge-cutout-bg": "transparent" }
1190
+ }, N = (a == null ? void 0 : a({})) || s, F = (y) => {
1191
+ A && (w == null || w(y));
1191
1192
  };
1192
- return /* @__PURE__ */ l.jsxs("div", { className: W.wrapper, ref: S, "data-testid": w + "-wrapper", children: [
1193
- o,
1193
+ return /* @__PURE__ */ l.jsxs("div", { className: pe.wrapper, ref: C, "data-testid": b + "-wrapper", children: [
1194
+ n,
1194
1195
  /* @__PURE__ */ l.jsx(
1195
1196
  "span",
1196
1197
  {
1197
- className: B,
1198
- style: z,
1199
- "data-testid": w + "-container",
1198
+ className: O,
1199
+ style: B,
1200
+ "data-testid": b + "-container",
1200
1201
  children: /* @__PURE__ */ l.jsx(
1201
1202
  "span",
1202
1203
  {
1203
- ...$,
1204
- onClick: J,
1205
- className: F,
1206
- "data-testid": w + "-content",
1207
- ref: s,
1204
+ ...v,
1205
+ onClick: F,
1206
+ className: R,
1207
+ "data-testid": b + "-content",
1208
+ ref: r,
1208
1209
  "aria-disabled": g,
1209
- children: A
1210
+ children: N
1210
1211
  }
1211
1212
  )
1212
1213
  }
1213
1214
  )
1214
1215
  ] });
1215
- }), nr = "_container_chiat_7", or = "_image_chiat_19", sr = "_loading_chiat_28", Oe = {
1216
- container: nr,
1217
- image: or,
1218
- loading: sr
1219
- }, ir = "_loader_1tevf_1", lr = "_spin_1tevf_1", cr = "_accent_1tevf_20", ur = "_neutral_1tevf_24", dr = "_positive_1tevf_28", _r = "_negative_1tevf_32", fr = "_gray_1tevf_36", pr = "_special_1tevf_40", br = "_contrast_1tevf_44", gr = "_container_1tevf_48", vr = "_overlay_1tevf_56", de = {
1220
- loader: ir,
1221
- spin: lr,
1222
- accent: cr,
1223
- neutral: ur,
1224
- positive: dr,
1225
- negative: _r,
1226
- gray: fr,
1227
- special: pr,
1228
- contrast: br,
1229
- container: gr,
1230
- overlay: vr,
1216
+ }), Mr = "_container_chiat_7", $r = "_image_chiat_19", Ir = "_loading_chiat_28", Je = {
1217
+ container: Mr,
1218
+ image: $r,
1219
+ loading: Ir
1220
+ }, jr = "_loader_1tevf_1", Rr = "_spin_1tevf_1", kr = "_accent_1tevf_20", Tr = "_neutral_1tevf_24", Ar = "_positive_1tevf_28", Nr = "_negative_1tevf_32", Dr = "_gray_1tevf_36", Or = "_special_1tevf_40", Ur = "_contrast_1tevf_44", Pr = "_container_1tevf_48", Br = "_overlay_1tevf_56", Ne = {
1221
+ loader: jr,
1222
+ spin: Rr,
1223
+ accent: kr,
1224
+ neutral: Tr,
1225
+ positive: Ar,
1226
+ negative: Nr,
1227
+ gray: Dr,
1228
+ special: Or,
1229
+ contrast: Ur,
1230
+ container: Pr,
1231
+ overlay: Br,
1231
1232
  "size-16": "_size-16_1tevf_71",
1232
1233
  "size-24": "_size-24_1tevf_75",
1233
1234
  "size-48": "_size-48_1tevf_79",
1234
1235
  "size-64": "_size-64_1tevf_83",
1235
1236
  "size-96": "_size-96_1tevf_87"
1236
- }, lt = H(
1237
+ }, It = K(
1237
1238
  ({
1238
- size: r = 24,
1239
- variant: s = "accent",
1239
+ size: t = 24,
1240
+ variant: r = "accent",
1240
1241
  className: a,
1241
- "data-testid": o = "loader",
1242
- style: d,
1243
- ...i
1244
- }, _) => {
1245
- const f = Z(
1246
- de.loader,
1247
- de[s],
1248
- de[`size-${r}`],
1242
+ "data-testid": n = "loader",
1243
+ style: o,
1244
+ ...s
1245
+ }, c) => {
1246
+ const _ = he(
1247
+ Ne.loader,
1248
+ Ne[r],
1249
+ Ne[`size-${t}`],
1249
1250
  a
1250
1251
  );
1251
1252
  return /* @__PURE__ */ l.jsx(
1252
1253
  "svg",
1253
1254
  {
1254
- ref: _,
1255
- className: f,
1255
+ ref: c,
1256
+ className: _,
1256
1257
  fill: "none",
1257
1258
  viewBox: "0 0 16 16",
1258
1259
  xmlns: "http://www.w3.org/2000/svg",
1259
- "data-testid": o,
1260
- style: d,
1261
- ...i,
1260
+ "data-testid": n,
1261
+ style: o,
1262
+ ...s,
1262
1263
  children: /* @__PURE__ */ l.jsx(
1263
1264
  "path",
1264
1265
  {
@@ -1271,37 +1272,37 @@ const Y2 = 2, q2 = (r) => {
1271
1272
  }
1272
1273
  );
1273
1274
  }
1274
- ), hr = H((r, s) => {
1275
+ ), Fr = K((t, r) => {
1275
1276
  const {
1276
1277
  loading: a = !1,
1277
- size: o = 24,
1278
- variant: d = "accent",
1279
- children: i,
1280
- className: _,
1281
- style: f,
1282
- "data-testid": c,
1283
- ...h
1284
- } = r, p = Z(de.container, _);
1285
- return /* @__PURE__ */ l.jsxs("div", { ref: s, className: p, style: f, "data-testid": c, ...h, children: [
1286
- i,
1287
- a && /* @__PURE__ */ l.jsx("div", { className: de.overlay, children: /* @__PURE__ */ l.jsx(lt, { size: o, variant: d, "data-testid": `${c}-spinner` }) })
1278
+ size: n = 24,
1279
+ variant: o = "accent",
1280
+ children: s,
1281
+ className: c,
1282
+ style: _,
1283
+ "data-testid": d,
1284
+ ...f
1285
+ } = t, p = he(Ne.container, c);
1286
+ return /* @__PURE__ */ l.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
1287
+ s,
1288
+ a && /* @__PURE__ */ l.jsx("div", { className: Ne.overlay, children: /* @__PURE__ */ l.jsx(It, { size: n, variant: o, "data-testid": `${d}-spinner` }) })
1288
1289
  ] });
1289
- }), mr = H((r, s) => r.children ? /* @__PURE__ */ l.jsx(
1290
- hr,
1290
+ }), zr = K((t, r) => t.children ? /* @__PURE__ */ l.jsx(
1291
+ Fr,
1291
1292
  {
1292
- ref: s,
1293
- ...r
1293
+ ref: r,
1294
+ ...t
1294
1295
  }
1295
- ) : /* @__PURE__ */ l.jsx(lt, { ref: s, ...r })), Cr = ({ width: r = 48, height: s = 48, className: a, "data-testid": o }) => /* @__PURE__ */ l.jsx(
1296
+ ) : /* @__PURE__ */ l.jsx(It, { ref: r, ...t })), Wr = ({ width: t = 48, height: r = 48, className: a, "data-testid": n }) => /* @__PURE__ */ l.jsx(
1296
1297
  "svg",
1297
1298
  {
1298
- width: r,
1299
- height: s,
1299
+ width: t,
1300
+ height: r,
1300
1301
  viewBox: "0 0 48 48",
1301
1302
  fill: "none",
1302
1303
  xmlns: "http://www.w3.org/2000/svg",
1303
1304
  className: a,
1304
- "data-testid": o,
1305
+ "data-testid": n,
1305
1306
  children: /* @__PURE__ */ l.jsx(
1306
1307
  "path",
1307
1308
  {
@@ -1313,170 +1314,1382 @@ const Y2 = 2, q2 = (r) => {
1313
1314
  }
1314
1315
  )
1315
1316
  }
1316
- ), Yr = H((r, s) => {
1317
+ ), Rs = K((t, r) => {
1317
1318
  const {
1318
1319
  alt: a = "",
1319
- loading: o = "lazy",
1320
- src: d,
1321
- isLoading: i = !1,
1322
- className: _,
1323
- "data-testid": f = "image",
1324
- onError: c,
1325
- onLoad: h,
1320
+ loading: n = "lazy",
1321
+ src: o,
1322
+ isLoading: s = !1,
1323
+ className: c,
1324
+ "data-testid": _ = "image",
1325
+ onError: d,
1326
+ onLoad: f,
1326
1327
  ...p
1327
- } = r, [g, C] = Le("loading"), w = g === "error", $ = (i || g === "loading") && !w, k = g === "loaded" && !i, L = Z(
1328
- Oe.image,
1328
+ } = t, [g, h] = De("loading"), b = g === "error", v = (s || g === "loading") && !b, w = g === "loaded" && !s, S = he(
1329
+ Je.image,
1329
1330
  {
1330
- [Oe.loading]: $
1331
+ [Je.loading]: v
1331
1332
  },
1332
- _
1333
- ), S = He(
1334
- (N) => {
1335
- C("loaded"), h == null || h(N);
1333
+ c
1334
+ ), C = Se(
1335
+ (T) => {
1336
+ h("loaded"), f == null || f(T);
1336
1337
  },
1337
- [h]
1338
- ), y = He(
1339
- (N) => {
1340
- C("error"), c == null || c(N);
1338
+ [f]
1339
+ ), x = Se(
1340
+ (T) => {
1341
+ h("error"), d == null || d(T);
1341
1342
  },
1342
- [c]
1343
- ), T = {
1344
- loader: /* @__PURE__ */ l.jsxs(Nt, { children: [
1345
- /* @__PURE__ */ l.jsx(mr, { size: 48, variant: "special", "data-testid": `${f}-loader` }),
1343
+ [d]
1344
+ ), $ = {
1345
+ loader: /* @__PURE__ */ l.jsxs(aa, { children: [
1346
+ /* @__PURE__ */ l.jsx(zr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
1346
1347
  /* @__PURE__ */ l.jsx(
1347
1348
  "img",
1348
1349
  {
1349
1350
  alt: a,
1350
- src: d,
1351
- onLoad: S,
1352
- onError: y,
1351
+ src: o,
1352
+ onLoad: C,
1353
+ onError: x,
1353
1354
  style: { display: "none" }
1354
1355
  }
1355
1356
  )
1356
1357
  ] }),
1357
- error: /* @__PURE__ */ l.jsx(Cr, { "data-testid": `${f}-fallback` }),
1358
+ error: /* @__PURE__ */ l.jsx(Wr, { "data-testid": `${_}-fallback` }),
1358
1359
  image: /* @__PURE__ */ l.jsx(
1359
1360
  "img",
1360
1361
  {
1361
- ref: s,
1362
+ ref: r,
1362
1363
  alt: a,
1363
- "data-testid": f,
1364
- loading: o,
1365
- src: d,
1366
- className: L
1364
+ "data-testid": _,
1365
+ loading: n,
1366
+ src: o,
1367
+ className: S
1367
1368
  }
1368
1369
  )
1369
1370
  };
1370
- return st(() => {
1371
- if (!d) {
1372
- C("error");
1371
+ return Re(() => {
1372
+ if (!o) {
1373
+ h("error");
1373
1374
  return;
1374
1375
  }
1375
- C("loading");
1376
- }, [d]), /* @__PURE__ */ l.jsxs("div", { className: Oe.container, "data-testid": `${f}-container`, ...p, children: [
1377
- $ && T.loader,
1378
- w && T.error,
1379
- k && T.image
1376
+ h("loading");
1377
+ }, [o]), /* @__PURE__ */ l.jsxs("div", { className: Je.container, "data-testid": `${_}-container`, ...p, children: [
1378
+ v && $.loader,
1379
+ b && $.error,
1380
+ w && $.image
1380
1381
  ] });
1381
- }), yr = {}, ct = It({
1382
- locale: yr
1383
- }), xr = () => {
1384
- const r = At(ct);
1385
- if (!r)
1382
+ }), Vr = {}, jt = ra({
1383
+ locale: Vr
1384
+ }), Hr = () => {
1385
+ const t = na(jt);
1386
+ if (!t)
1386
1387
  throw new Error("useConfig must be used within a ConfigProvider");
1387
- return r;
1388
- }, qr = () => {
1389
- const { locale: r } = xr();
1390
- return r;
1391
- }, wr = {}, Er = {}, Rr = {}, Hr = ({
1392
- locale: r = {},
1393
- theme: s,
1388
+ return t;
1389
+ }, ks = () => {
1390
+ const { locale: t } = Hr();
1391
+ return t;
1392
+ }, Gr = {}, Zr = {}, qr = {}, Ts = ({
1393
+ locale: t = {},
1394
+ theme: r,
1394
1395
  children: a,
1395
- className: o
1396
+ className: n
1396
1397
  }) => {
1397
- const d = s ? { ...Object.fromEntries(Object.entries(s)) } : {};
1398
+ const o = r ? { ...Object.fromEntries(Object.entries(r)) } : {};
1398
1399
  return /* @__PURE__ */ l.jsx(
1399
1400
  "div",
1400
1401
  {
1401
1402
  "data-testid": "ConfigProvider-component",
1402
- style: d,
1403
- className: ae(
1404
- wr,
1405
- Er,
1406
- Rr,
1407
- o
1403
+ style: o,
1404
+ className: ie(
1405
+ Gr,
1406
+ Zr,
1407
+ qr,
1408
+ n
1408
1409
  ),
1409
- children: /* @__PURE__ */ l.jsx(ct.Provider, { value: { locale: r }, children: a })
1410
+ children: /* @__PURE__ */ l.jsx(jt.Provider, { value: { locale: t }, children: a })
1410
1411
  }
1411
1412
  );
1412
- }, Jr = {}, Sr = "_tag_1llsi_1", jr = "_label_1llsi_16", $r = "_iconWrapper_1llsi_20", kr = "_medium_1llsi_27", Tr = "_large_1llsi_33", Or = "_disabled_1llsi_43", Pr = "_neutral_1llsi_47", Lr = "_positive_1llsi_53", Nr = "_negative_1llsi_59", Ir = "_warning_1llsi_65", Ar = "_vivid_1llsi_71", Mr = "_special_1llsi_77", Dr = "_accent_1llsi_84", Br = "_blue_1llsi_90", Fr = "_lovely_1llsi_96", zr = "_dreamy_1llsi_102", re = {
1413
- tag: Sr,
1414
- label: jr,
1415
- iconWrapper: $r,
1416
- medium: kr,
1417
- large: Tr,
1418
- disabled: Or,
1419
- neutral: Pr,
1420
- positive: Lr,
1421
- negative: Nr,
1422
- warning: Ir,
1423
- vivid: Ar,
1424
- special: Mr,
1425
- accent: Dr,
1426
- blue: Br,
1427
- lovely: Fr,
1428
- dreamy: zr
1429
- }, at = {
1413
+ }, As = {}, Yr = "_tag_1llsi_1", Jr = "_label_1llsi_16", Kr = "_iconWrapper_1llsi_20", Xr = "_medium_1llsi_27", Qr = "_large_1llsi_33", en = "_disabled_1llsi_43", tn = "_neutral_1llsi_47", an = "_positive_1llsi_53", rn = "_negative_1llsi_59", nn = "_warning_1llsi_65", sn = "_vivid_1llsi_71", on = "_special_1llsi_77", ln = "_accent_1llsi_84", cn = "_blue_1llsi_90", dn = "_lovely_1llsi_96", un = "_dreamy_1llsi_102", we = {
1414
+ tag: Yr,
1415
+ label: Jr,
1416
+ iconWrapper: Kr,
1417
+ medium: Xr,
1418
+ large: Qr,
1419
+ disabled: en,
1420
+ neutral: tn,
1421
+ positive: an,
1422
+ negative: rn,
1423
+ warning: nn,
1424
+ vivid: sn,
1425
+ special: on,
1426
+ accent: ln,
1427
+ blue: cn,
1428
+ lovely: dn,
1429
+ dreamy: un
1430
+ }, We = {
1431
+ "typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
1432
+ "typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
1433
+ "typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
1434
+ "typography-title-4-semibold": "_typography-title-4-semibold_1lyxn_28",
1435
+ "typography-title-5-semibold": "_typography-title-5-semibold_1lyxn_37",
1430
1436
  "typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
1431
- "typography-label-3-regular": "_typography-label-3-regular_1lyxn_141"
1432
- }, Kr = H((r, s) => {
1437
+ "typography-subtitle-2-semibold": "_typography-subtitle-2-semibold_1lyxn_53",
1438
+ "typography-subtitle-3-semibold": "_typography-subtitle-3-semibold_1lyxn_62",
1439
+ "typography-subtitle-4-semibold": "_typography-subtitle-4-semibold_1lyxn_71",
1440
+ "typography-label-1-medium": "_typography-label-1-medium_1lyxn_80",
1441
+ "typography-label-2-medium": "_typography-label-2-medium_1lyxn_89",
1442
+ "typography-label-3-medium": "_typography-label-3-medium_1lyxn_97",
1443
+ "typography-label-4-medium": "_typography-label-4-medium_1lyxn_106",
1444
+ "typography-label-5-medium": "_typography-label-5-medium_1lyxn_115",
1445
+ "typography-label-1-regular": "_typography-label-1-regular_1lyxn_124",
1446
+ "typography-label-2-regular": "_typography-label-2-regular_1lyxn_133",
1447
+ "typography-label-3-regular": "_typography-label-3-regular_1lyxn_141",
1448
+ "typography-label-4-regular": "_typography-label-4-regular_1lyxn_150",
1449
+ "typography-label-5-regular": "_typography-label-5-regular_1lyxn_159",
1450
+ "typography-paragraph-1-regular": "_typography-paragraph-1-regular_1lyxn_168",
1451
+ "typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
1452
+ "typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
1453
+ "typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
1454
+ }, Ns = K((t, r) => {
1433
1455
  const {
1434
1456
  className: a,
1435
- children: o,
1436
- componentStyle: d = "neutral",
1437
- size: i = "medium",
1438
- disabled: _ = !1,
1439
- showLabel: f = !!o,
1440
- slotStart: c,
1441
- slotEnd: h,
1457
+ children: n,
1458
+ componentStyle: o = "neutral",
1459
+ size: s = "medium",
1460
+ disabled: c = !1,
1461
+ showLabel: _ = !!n,
1462
+ slotStart: d,
1463
+ slotEnd: f,
1442
1464
  slotStartWrapperProps: p = {},
1443
1465
  slotEndWrapperProps: g = {},
1444
- "data-testid": C
1445
- } = r, { className: w, ...$ } = p, { className: k, ...L } = g;
1466
+ "data-testid": h
1467
+ } = t, { className: b, ...v } = p, { className: w, ...S } = g;
1446
1468
  return /* @__PURE__ */ l.jsxs(
1447
1469
  "div",
1448
1470
  {
1449
- className: ae(
1450
- re.tag,
1451
- re[i],
1452
- re[d],
1471
+ className: ie(
1472
+ we.tag,
1473
+ we[s],
1474
+ we[o],
1453
1475
  {
1454
- [re.disabled]: _,
1455
- [at["typography-label-3-regular"]]: i === "medium",
1456
- [at["typography-subtitle-1-semibold"]]: i === "large"
1476
+ [we.disabled]: c,
1477
+ [We["typography-label-3-regular"]]: s === "medium",
1478
+ [We["typography-subtitle-1-semibold"]]: s === "large"
1457
1479
  },
1458
1480
  a
1459
1481
  ),
1460
- "data-testid": C || "tag-component",
1461
- ref: s,
1482
+ "data-testid": h || "tag-component",
1483
+ ref: r,
1462
1484
  children: [
1463
- c && /* @__PURE__ */ l.jsx("span", { className: ae([re.iconWrapper, w]), ...$, children: c }),
1464
- f && /* @__PURE__ */ l.jsx("span", { className: ae([re.label]), children: o }),
1465
- h && /* @__PURE__ */ l.jsx("span", { className: ae([re.iconWrapper, k]), ...L, children: h })
1485
+ d && /* @__PURE__ */ l.jsx("span", { className: ie([we.iconWrapper, b]), ...v, children: d }),
1486
+ _ && /* @__PURE__ */ l.jsx("span", { className: ie([we.label]), children: n }),
1487
+ f && /* @__PURE__ */ l.jsx("span", { className: ie([we.iconWrapper, w]), ...S, children: f })
1466
1488
  ]
1467
1489
  }
1468
1490
  );
1469
- });
1491
+ }), _n = "_checkbox_qo5f5_43", pn = "_input_qo5f5_59", fn = "_icon_qo5f5_67", gn = "_container_qo5f5_84", hn = "_error_qo5f5_135", bn = "_checkboxWrapper_qo5f5_147", mn = "_medium_qo5f5_201", yn = "_large_qo5f5_206", vn = "_label_qo5f5_247", ge = {
1492
+ checkbox: _n,
1493
+ input: pn,
1494
+ icon: fn,
1495
+ container: gn,
1496
+ error: hn,
1497
+ checkboxWrapper: bn,
1498
+ medium: mn,
1499
+ large: yn,
1500
+ label: vn
1501
+ }, xn = ({
1502
+ width: t = 12,
1503
+ height: r = 9,
1504
+ className: a = "",
1505
+ color: n = "currentColor",
1506
+ ...o
1507
+ }) => /* @__PURE__ */ l.jsx(
1508
+ "svg",
1509
+ {
1510
+ className: a,
1511
+ width: t,
1512
+ height: r,
1513
+ viewBox: "0 0 14 10",
1514
+ fill: "none",
1515
+ xmlns: "http://www.w3.org/2000/svg",
1516
+ ...o,
1517
+ children: /* @__PURE__ */ l.jsx(
1518
+ "path",
1519
+ {
1520
+ fillRule: "evenodd",
1521
+ clipRule: "evenodd",
1522
+ d: "M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",
1523
+ fill: n
1524
+ }
1525
+ )
1526
+ }
1527
+ ), Cn = ({
1528
+ width: t = 12,
1529
+ height: r = 2,
1530
+ className: a = "",
1531
+ color: n = "currentColor",
1532
+ ...o
1533
+ }) => /* @__PURE__ */ l.jsx(
1534
+ "svg",
1535
+ {
1536
+ className: a,
1537
+ width: t,
1538
+ height: r,
1539
+ viewBox: "0 0 12 2",
1540
+ fill: "none",
1541
+ xmlns: "http://www.w3.org/2000/svg",
1542
+ ...o,
1543
+ children: /* @__PURE__ */ l.jsx(
1544
+ "path",
1545
+ {
1546
+ fillRule: "evenodd",
1547
+ clipRule: "evenodd",
1548
+ d: "M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",
1549
+ fill: n
1550
+ }
1551
+ )
1552
+ }
1553
+ ), wn = {
1554
+ medium: { width: 10.83, height: 7.5 },
1555
+ large: { width: 13, height: 9 }
1556
+ }, Sn = ({
1557
+ size: t,
1558
+ isChecked: r,
1559
+ isDisabled: a,
1560
+ indeterminate: n,
1561
+ dataTestId: o
1562
+ }) => {
1563
+ const { width: s, height: c } = wn[t];
1564
+ return /* @__PURE__ */ l.jsx(
1565
+ "div",
1566
+ {
1567
+ className: ge.icon,
1568
+ "data-testid": `${o}-icon`,
1569
+ "data-checked": r,
1570
+ "data-disabled": a,
1571
+ "data-indeterminate": n,
1572
+ children: n ? /* @__PURE__ */ l.jsx(Cn, { width: s, height: c }) : /* @__PURE__ */ l.jsx(xn, { width: s, height: c })
1573
+ }
1574
+ );
1575
+ }, Ds = K((t, r) => {
1576
+ const {
1577
+ name: a,
1578
+ value: n,
1579
+ size: o = "medium",
1580
+ indeterminate: s = !1,
1581
+ loading: c = !1,
1582
+ error: _,
1583
+ disabled: d = !1,
1584
+ containerClassName: f,
1585
+ className: p,
1586
+ containerStyle: g,
1587
+ style: h,
1588
+ children: b,
1589
+ clickableLabel: v = !0,
1590
+ tabIndex: w,
1591
+ onChange: S,
1592
+ "data-testid": C = "checkbox"
1593
+ } = t, [x, $] = De(!1), T = n ?? x, A = d || c, O = !!_, R = T || s, B = ye(ge.container, ge[o], f), N = ye(
1594
+ ge.checkbox,
1595
+ ge[o],
1596
+ {
1597
+ [ge.error]: O
1598
+ },
1599
+ p
1600
+ ), F = (j) => {
1601
+ A || ($(j.target.checked), S == null || S(j.target.checked, j));
1602
+ }, y = (j) => {
1603
+ if (j.key === "Enter" && !A) {
1604
+ j.preventDefault();
1605
+ const V = !R;
1606
+ $(V), S == null || S(V);
1607
+ }
1608
+ }, z = (j) => {
1609
+ v || j.preventDefault();
1610
+ }, D = (j) => j.stopPropagation();
1611
+ return /* @__PURE__ */ l.jsxs(
1612
+ "label",
1613
+ {
1614
+ className: B,
1615
+ htmlFor: a,
1616
+ style: g,
1617
+ "data-testid": C,
1618
+ "data-clickable-label": v,
1619
+ children: [
1620
+ /* @__PURE__ */ l.jsx("div", { className: ge.checkboxWrapper, children: /* @__PURE__ */ l.jsxs(
1621
+ "div",
1622
+ {
1623
+ tabIndex: w || 0,
1624
+ className: N,
1625
+ style: h,
1626
+ onKeyDown: y,
1627
+ "aria-checked": R,
1628
+ "aria-disabled": A,
1629
+ "aria-invalid": O,
1630
+ "aria-describedby": _ ? `${a}-error` : void 0,
1631
+ "data-testid": `${C}-label`,
1632
+ children: [
1633
+ /* @__PURE__ */ l.jsx(
1634
+ "input",
1635
+ {
1636
+ ref: r,
1637
+ type: "checkbox",
1638
+ id: a,
1639
+ name: a,
1640
+ checked: R,
1641
+ disabled: A,
1642
+ className: ge.input,
1643
+ onChange: F,
1644
+ onClick: D,
1645
+ "aria-checked": R,
1646
+ "aria-invalid": O,
1647
+ "aria-describedby": _ ? `${a}-error` : void 0,
1648
+ "data-testid": `${C}-input`
1649
+ }
1650
+ ),
1651
+ /* @__PURE__ */ l.jsx(
1652
+ Sn,
1653
+ {
1654
+ name: a,
1655
+ size: o,
1656
+ isChecked: R,
1657
+ isDisabled: A,
1658
+ indeterminate: s,
1659
+ dataTestId: C
1660
+ }
1661
+ )
1662
+ ]
1663
+ }
1664
+ ) }),
1665
+ b && /* @__PURE__ */ l.jsx(
1666
+ "span",
1667
+ {
1668
+ "data-testid": `${C}-label-text`,
1669
+ "data-clickable-label": v,
1670
+ className: ge.label,
1671
+ onClick: z,
1672
+ children: b
1673
+ }
1674
+ )
1675
+ ]
1676
+ }
1677
+ );
1678
+ }), En = "_typography_zt7xg_1", Ln = "_disabled_zt7xg_8", Mn = "_primary_zt7xg_13", $n = "_secondary_zt7xg_18", In = "_tertiary_zt7xg_23", jn = "_accent_zt7xg_28", Rn = "_positive_zt7xg_38", kn = "_negative_zt7xg_48", Tn = "_warning_zt7xg_58", An = "_special_zt7xg_68", Nn = "_contrast_zt7xg_78", je = {
1679
+ typography: En,
1680
+ disabled: Ln,
1681
+ primary: Mn,
1682
+ secondary: $n,
1683
+ tertiary: In,
1684
+ accent: jn,
1685
+ "accent-secondary": "_accent-secondary_zt7xg_33",
1686
+ positive: Rn,
1687
+ "positive-secondary": "_positive-secondary_zt7xg_43",
1688
+ negative: kn,
1689
+ "negative-secondary": "_negative-secondary_zt7xg_53",
1690
+ warning: Tn,
1691
+ "warning-secondary": "_warning-secondary_zt7xg_63",
1692
+ special: An,
1693
+ "special-secondary": "_special-secondary_zt7xg_73",
1694
+ contrast: Nn,
1695
+ "contrast-secondary": "_contrast-secondary_zt7xg_83"
1696
+ }, Dn = {
1697
+ 1: "h1",
1698
+ 2: "h2",
1699
+ 3: "h3",
1700
+ 4: "h4",
1701
+ 5: "h5"
1702
+ }, xt = (t) => {
1703
+ const r = Et.forwardRef(
1704
+ ({
1705
+ size: a = 3,
1706
+ children: n,
1707
+ className: o,
1708
+ "data-testid": s,
1709
+ as: c,
1710
+ fontWeight: _ = "semibold",
1711
+ disabled: d = !1,
1712
+ typographyStyle: f = "primary",
1713
+ ...p
1714
+ }, g) => {
1715
+ const h = c || Dn[a], b = ie(
1716
+ je.typography,
1717
+ We[`typography-${t}-${a}-${_}`],
1718
+ je[f],
1719
+ {
1720
+ [je.disabled]: d
1721
+ },
1722
+ o
1723
+ );
1724
+ return n ? /* @__PURE__ */ l.jsx(h, { ref: g, className: b, "data-testid": s, ...p, children: n }) : null;
1725
+ }
1726
+ );
1727
+ return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
1728
+ }, Ct = (t) => {
1729
+ const r = Et.forwardRef(
1730
+ ({
1731
+ size: a = 3,
1732
+ children: n,
1733
+ className: o,
1734
+ "data-testid": s,
1735
+ as: c = "p",
1736
+ fontWeight: _ = "regular",
1737
+ disabled: d = !1,
1738
+ typographyStyle: f = "primary",
1739
+ ...p
1740
+ }, g) => {
1741
+ const h = c, b = ie(
1742
+ je.typography,
1743
+ We[`typography-${t}-${a}-${_}`],
1744
+ je[f],
1745
+ {
1746
+ [je.disabled]: d
1747
+ },
1748
+ o
1749
+ );
1750
+ return n ? /* @__PURE__ */ l.jsx(
1751
+ h,
1752
+ {
1753
+ ref: g,
1754
+ className: b,
1755
+ "data-testid": s,
1756
+ ...p,
1757
+ children: n
1758
+ }
1759
+ ) : null;
1760
+ }
1761
+ );
1762
+ return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
1763
+ }, Os = {
1764
+ Title: xt("title"),
1765
+ Subtitle: xt("subtitle"),
1766
+ Label: Ct("label"),
1767
+ Paragraph: Ct("paragraph")
1768
+ }, On = "_inputBase_1m6fe_85", Un = "_wrapper_1m6fe_95", Pn = "_gripHandle_1m6fe_169", Bn = "_error_1m6fe_230", Fn = "_tabFocused_1m6fe_237", zn = "_disabled_1m6fe_262", Wn = "_loading_1m6fe_269", Vn = "_label_1m6fe_279", Hn = "_small_1m6fe_292", Gn = "_large_1m6fe_299", Zn = "_leftSection_1m6fe_306", qn = "_rightSection_1m6fe_315", Yn = "_helper_1m6fe_351", Jn = "_floatingLabel_1m6fe_376", Kn = "_focused_1m6fe_434", Xn = "_filled_1m6fe_435", Qn = "_medium_1m6fe_469", es = "_characterLimit_1m6fe_510", ts = "_input_1m6fe_85", as = "_textarea_1m6fe_109", rs = "_truncate_1m6fe_637", ns = "_hint_1m6fe_719", M = {
1769
+ inputBase: On,
1770
+ wrapper: Un,
1771
+ "textarea-wrapper": "_textarea-wrapper_1m6fe_109",
1772
+ gripHandle: Pn,
1773
+ error: Bn,
1774
+ tabFocused: Fn,
1775
+ disabled: zn,
1776
+ loading: Wn,
1777
+ label: Vn,
1778
+ small: Hn,
1779
+ large: Gn,
1780
+ leftSection: Zn,
1781
+ rightSection: qn,
1782
+ helper: Yn,
1783
+ floatingLabel: Jn,
1784
+ focused: Kn,
1785
+ filled: Xn,
1786
+ medium: Qn,
1787
+ characterLimit: es,
1788
+ input: ts,
1789
+ textarea: as,
1790
+ "size-small": "_size-small_1m6fe_586",
1791
+ "size-medium": "_size-medium_1m6fe_592",
1792
+ "size-large": "_size-large_1m6fe_598",
1793
+ "with-floating-label": "_with-floating-label_1m6fe_605",
1794
+ truncate: rs,
1795
+ hint: ns,
1796
+ "has-hint": "_has-hint_1m6fe_736"
1797
+ }, ss = ({
1798
+ width: t = 8,
1799
+ height: r = 8,
1800
+ className: a,
1801
+ color: n = "#AABBCA"
1802
+ }) => /* @__PURE__ */ l.jsx(
1803
+ "svg",
1804
+ {
1805
+ width: t,
1806
+ height: r,
1807
+ viewBox: "0 0 8 8",
1808
+ fill: "none",
1809
+ xmlns: "http://www.w3.org/2000/svg",
1810
+ className: a,
1811
+ children: /* @__PURE__ */ l.jsx(
1812
+ "path",
1813
+ {
1814
+ fillRule: "evenodd",
1815
+ clipRule: "evenodd",
1816
+ d: "M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",
1817
+ fill: n
1818
+ }
1819
+ )
1820
+ }
1821
+ ), os = (t, r) => {
1822
+ const a = ze(null), n = ze(null);
1823
+ return Re(() => {
1824
+ const o = r === "textarea" ? a.current : n.current;
1825
+ o && o.value !== t && (o.value = t || "");
1826
+ }, [t, r]), {
1827
+ textareaRef: a,
1828
+ inputRef: n,
1829
+ currentRef: r === "textarea" ? a : n
1830
+ };
1831
+ }, is = (t, r, a) => {
1832
+ const n = () => {
1833
+ if (!a.current || r !== "hug") return;
1834
+ const o = a.current.scrollTop;
1835
+ if (a.current.style.setProperty("height", "auto", "important"), !t) return;
1836
+ const s = a.current.scrollHeight + "px";
1837
+ a.current.style.setProperty("height", s, "important"), a.current.scrollTop = o;
1838
+ const c = a.current.closest(`.${M.wrapper}`);
1839
+ c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
1840
+ };
1841
+ return Re(n, [t, r]), Re(() => {
1842
+ r === "hug" && a.current && n();
1843
+ }, []), { resizeTextArea: n };
1844
+ }, ls = (t, r, a, n) => ({ handleGripMouseDown: Se(
1845
+ (s) => {
1846
+ if (!t || r || a || !(n === "fixed" || !n)) return;
1847
+ s.preventDefault(), s.stopPropagation();
1848
+ const c = s.currentTarget.closest(`.${M.wrapper}`);
1849
+ if (!c) return;
1850
+ const _ = s.clientY, d = c.clientHeight, f = (g) => {
1851
+ const h = g.clientY - _, b = Math.min(100, d), v = Math.max(b, d + h);
1852
+ c.style.height = `${v}px`;
1853
+ }, p = () => {
1854
+ document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
1855
+ };
1856
+ document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
1857
+ },
1858
+ [t, r, a, n]
1859
+ ) }), wt = 30, cs = K(
1860
+ ({
1861
+ component: t = "input",
1862
+ size: r = "medium",
1863
+ value: a = "",
1864
+ placeholder: n,
1865
+ disabled: o = !1,
1866
+ loading: s = !1,
1867
+ onFocus: c,
1868
+ onBlur: _,
1869
+ onChange: d,
1870
+ onKeyUp: f,
1871
+ maxLength: p,
1872
+ className: g,
1873
+ style: h,
1874
+ truncate: b = !1,
1875
+ shouldShowFloatingLabelClass: v = !1,
1876
+ "aria-invalid": w,
1877
+ "aria-errormessage": S,
1878
+ id: C,
1879
+ resize: x,
1880
+ ...$
1881
+ }, T) => {
1882
+ const { textareaRef: A, inputRef: O, currentRef: R } = os(a, t);
1883
+ if (is(a, x, A), sa(T, () => R.current, [R]), t === "textarea")
1884
+ return /* @__PURE__ */ l.jsx(
1885
+ "textarea",
1886
+ {
1887
+ ref: A,
1888
+ id: C,
1889
+ value: a,
1890
+ placeholder: n,
1891
+ disabled: o || s,
1892
+ onFocus: c,
1893
+ onBlur: _,
1894
+ onChange: d,
1895
+ onKeyUp: f,
1896
+ maxLength: p,
1897
+ className: ye(
1898
+ M.textarea,
1899
+ M[`size-${r}`],
1900
+ v && M["with-floating-label"],
1901
+ g
1902
+ ),
1903
+ style: h,
1904
+ "aria-invalid": w,
1905
+ "aria-errormessage": S,
1906
+ "aria-describedby": S ? `${C}-error` : void 0,
1907
+ tabIndex: 0,
1908
+ "data-resize": x,
1909
+ ...$
1910
+ }
1911
+ );
1912
+ if (t === "input")
1913
+ return /* @__PURE__ */ l.jsx(
1914
+ "input",
1915
+ {
1916
+ ref: O,
1917
+ id: C,
1918
+ value: a,
1919
+ placeholder: n,
1920
+ disabled: o || s,
1921
+ onFocus: c,
1922
+ onBlur: _,
1923
+ onChange: d,
1924
+ onKeyUp: f,
1925
+ maxLength: p,
1926
+ className: ye(
1927
+ M.input,
1928
+ M[`size-${r}`],
1929
+ v && M["with-floating-label"],
1930
+ b && M.truncate,
1931
+ g
1932
+ ),
1933
+ style: h,
1934
+ "aria-invalid": w,
1935
+ "aria-errormessage": S,
1936
+ "aria-describedby": S ? `${C}-error` : void 0,
1937
+ tabIndex: 0,
1938
+ ...$
1939
+ }
1940
+ );
1941
+ if (t !== "input" && t !== "textarea")
1942
+ return console.error(
1943
+ `[Input] Недопустимое значение prop 'component': "${t}". Допустимые значения: 'input', 'textarea'`
1944
+ ), null;
1945
+ }
1946
+ ), Rt = K(
1947
+ ({
1948
+ children: t,
1949
+ size: r = "medium",
1950
+ error: a = !1,
1951
+ disabled: n = !1,
1952
+ loading: o = !1,
1953
+ className: s,
1954
+ wrapperProps: c,
1955
+ wrapperStyles: _,
1956
+ floatingLabelStyles: d,
1957
+ prefixStyles: f,
1958
+ suffixStyles: p,
1959
+ labelProps: g,
1960
+ helperProps: h,
1961
+ showLimit: b = !1,
1962
+ maxLength: v,
1963
+ hint: w,
1964
+ showHint: S = !1,
1965
+ showHintOnEmpty: C = !1,
1966
+ prefix: x,
1967
+ suffix: $,
1968
+ placeholder: T,
1969
+ showLabel: A = !0,
1970
+ labelClassName: O,
1971
+ hasValue: R = !1,
1972
+ helper: B,
1973
+ id: N,
1974
+ value: F = "",
1975
+ resize: y,
1976
+ showGrip: z = !1,
1977
+ ...D
1978
+ }, j) => {
1979
+ const V = Mt(), H = N || V, X = S && w && (R || C), G = w && w.length > wt ? w.substring(0, wt) + "..." : w, ee = ye(
1980
+ M.wrapper,
1981
+ a && M.error,
1982
+ n && M.disabled,
1983
+ o && M.loading,
1984
+ X && M["has-hint"],
1985
+ s
1986
+ ), te = ye(
1987
+ M.floatingLabel,
1988
+ M[r],
1989
+ R && M.filled,
1990
+ O
1991
+ ), { handleGripMouseDown: ae } = ls(z, n, o, y);
1992
+ return /* @__PURE__ */ l.jsxs("div", { ref: j, className: M.inputBase, "data-testid": "input-base-wrapper", ...D, children: [
1993
+ /* @__PURE__ */ l.jsxs(
1994
+ "div",
1995
+ {
1996
+ className: ee,
1997
+ style: _,
1998
+ "data-resize": y,
1999
+ "data-show-grip": z ? "true" : "false",
2000
+ ...c,
2001
+ children: [
2002
+ x && /* @__PURE__ */ l.jsx("label", { htmlFor: H, className: M.leftSection, style: f, children: x }),
2003
+ $ && /* @__PURE__ */ l.jsx("label", { htmlFor: H, className: M.rightSection, style: p, children: $ }),
2004
+ T && A && /* @__PURE__ */ l.jsx(
2005
+ "label",
2006
+ {
2007
+ htmlFor: H,
2008
+ className: te,
2009
+ style: d,
2010
+ ...g,
2011
+ children: T
2012
+ }
2013
+ ),
2014
+ t,
2015
+ z && !b && (y === "fixed" || !y) && /* @__PURE__ */ l.jsx(
2016
+ "div",
2017
+ {
2018
+ className: M.gripHandle,
2019
+ onMouseDown: ae,
2020
+ role: "button",
2021
+ tabIndex: -1,
2022
+ "aria-label": "Изменить размер",
2023
+ children: /* @__PURE__ */ l.jsx(ss, {})
2024
+ }
2025
+ ),
2026
+ X && /* @__PURE__ */ l.jsx(
2027
+ "div",
2028
+ {
2029
+ className: ye(M.hint, R && M.truncate),
2030
+ "data-disabled": n || o,
2031
+ children: G
2032
+ }
2033
+ ),
2034
+ b && v && /* @__PURE__ */ l.jsxs("div", { className: M.characterLimit, children: [
2035
+ (F || "").length,
2036
+ " из ",
2037
+ v
2038
+ ] })
2039
+ ]
2040
+ }
2041
+ ),
2042
+ B && /* @__PURE__ */ l.jsx(
2043
+ "div",
2044
+ {
2045
+ className: ye(
2046
+ M.helper,
2047
+ a && M.error,
2048
+ (n || o) && M.disabled
2049
+ ),
2050
+ ...h,
2051
+ id: a ? `${H}-error` : void 0,
2052
+ children: B
2053
+ }
2054
+ )
2055
+ ] });
2056
+ }
2057
+ );
2058
+ Rt.displayName = "InputWrapperComponent";
2059
+ const St = Object.assign(cs, {
2060
+ Wrapper: Rt
2061
+ }), kt = K(
2062
+ ({
2063
+ component: t = "input",
2064
+ size: r = "medium",
2065
+ className: a,
2066
+ error: n = !1,
2067
+ disabled: o = !1,
2068
+ loading: s = !1,
2069
+ placeholder: c,
2070
+ showLabel: _ = !0,
2071
+ labelClassName: d,
2072
+ helper: f,
2073
+ prefix: p,
2074
+ suffix: g,
2075
+ id: h,
2076
+ onFocus: b,
2077
+ onBlur: v,
2078
+ onChange: w,
2079
+ value: S = "",
2080
+ wrapperProps: C,
2081
+ wrapperStyles: x,
2082
+ floatingLabelStyles: $,
2083
+ prefixStyles: T,
2084
+ suffixStyles: A,
2085
+ textareaStyles: O,
2086
+ labelProps: R,
2087
+ helperProps: B,
2088
+ showLimit: N = !1,
2089
+ maxLength: F,
2090
+ inputProps: y,
2091
+ hint: z,
2092
+ showHint: D = !1,
2093
+ showHintOnEmpty: j = !1,
2094
+ truncate: V = !1,
2095
+ resize: H,
2096
+ showGrip: X = !1,
2097
+ ...G
2098
+ }, ee) => {
2099
+ const te = Mt(), ae = h || te, [me, re] = De(S), ve = S !== void 0 ? S : me, Ee = (ve || "").length > 0, ue = _ && (r === "large" || t === "textarea") && !p, le = Se(
2100
+ (Y) => {
2101
+ var Q;
2102
+ o || s || (b == null || b(), (Q = y == null ? void 0 : y.onFocus) == null || Q.call(
2103
+ y,
2104
+ Y
2105
+ ));
2106
+ },
2107
+ [b, y, o, s]
2108
+ ), _e = Se(
2109
+ (Y) => {
2110
+ var Q;
2111
+ if (Y.key === "Tab") {
2112
+ const de = Y.target.closest(`.${M.wrapper}`);
2113
+ de && de.classList.add(M.tabFocused);
2114
+ }
2115
+ (Q = y == null ? void 0 : y.onKeyUp) == null || Q.call(
2116
+ y,
2117
+ Y
2118
+ );
2119
+ },
2120
+ [y]
2121
+ ), ce = Se(
2122
+ (Y) => {
2123
+ var de;
2124
+ const Q = Y.target.closest(`.${M.wrapper}`);
2125
+ Q && Q.classList.remove(M.tabFocused), v == null || v(), (de = y == null ? void 0 : y.onBlur) == null || de.call(
2126
+ y,
2127
+ Y
2128
+ );
2129
+ },
2130
+ [v, y]
2131
+ ), xe = Se(
2132
+ (Y) => {
2133
+ var de;
2134
+ if (o || s) return;
2135
+ const Q = Y.target.value;
2136
+ re(Q), w == null || w(Q), (de = y == null ? void 0 : y.onChange) == null || de.call(
2137
+ y,
2138
+ Y
2139
+ );
2140
+ },
2141
+ [w, y, o, s]
2142
+ );
2143
+ return Re(() => {
2144
+ re(S);
2145
+ }, [S]), /* @__PURE__ */ l.jsx(
2146
+ St.Wrapper,
2147
+ {
2148
+ ref: ee,
2149
+ size: r,
2150
+ error: n,
2151
+ disabled: o || s,
2152
+ loading: s,
2153
+ className: ie(a, t === "textarea" && M["textarea-wrapper"]),
2154
+ wrapperProps: C,
2155
+ wrapperStyles: x,
2156
+ floatingLabelStyles: $,
2157
+ prefixStyles: T,
2158
+ suffixStyles: A,
2159
+ labelProps: R,
2160
+ helperProps: B,
2161
+ showLimit: N,
2162
+ maxLength: F,
2163
+ hint: z,
2164
+ showHint: D,
2165
+ showHintOnEmpty: j,
2166
+ prefix: p,
2167
+ suffix: g,
2168
+ placeholder: c,
2169
+ showLabel: _,
2170
+ labelClassName: d,
2171
+ hasValue: Ee,
2172
+ helper: f,
2173
+ id: ae,
2174
+ value: ve,
2175
+ showGrip: X,
2176
+ resize: H,
2177
+ ...G,
2178
+ children: /* @__PURE__ */ l.jsx(
2179
+ St,
2180
+ {
2181
+ component: t,
2182
+ size: r,
2183
+ value: ve,
2184
+ placeholder: c,
2185
+ disabled: o,
2186
+ loading: s,
2187
+ onFocus: le,
2188
+ onBlur: ce,
2189
+ onChange: xe,
2190
+ onKeyUp: _e,
2191
+ maxLength: F,
2192
+ truncate: V,
2193
+ "data-empty": !Ee,
2194
+ shouldShowFloatingLabelClass: ue,
2195
+ style: t === "textarea" ? O : void 0,
2196
+ "aria-invalid": !!n,
2197
+ "aria-errormessage": n ? `${ae}-error` : void 0,
2198
+ id: ae,
2199
+ resize: H,
2200
+ ...y
2201
+ }
2202
+ )
2203
+ }
2204
+ );
2205
+ }
2206
+ ), Tt = ({
2207
+ className: t = "",
2208
+ style: r,
2209
+ size: a = "md",
2210
+ color: n = "currentColor",
2211
+ onClick: o,
2212
+ ...s
2213
+ }) => {
2214
+ const _ = {
2215
+ display: "inline-block",
2216
+ color: n,
2217
+ ...{
2218
+ xxxs: { width: "8px", height: "8px" },
2219
+ xxs: { width: "12px", height: "12px" },
2220
+ xs: { width: "16px", height: "16px" },
2221
+ sm: { width: "24px", height: "24px" },
2222
+ md: { width: "32px", height: "32px" },
2223
+ lg: { width: "40px", height: "40px" }
2224
+ }[a],
2225
+ ...r
2226
+ };
2227
+ return /* @__PURE__ */ l.jsx(
2228
+ "svg",
2229
+ {
2230
+ className: t,
2231
+ style: _,
2232
+ viewBox: "0 0 16 16",
2233
+ fill: "none",
2234
+ xmlns: "http://www.w3.org/2000/svg",
2235
+ onClick: o,
2236
+ ...s,
2237
+ children: /* @__PURE__ */ l.jsx(
2238
+ "path",
2239
+ {
2240
+ d: "M12 4L4 12M4 4L12 12",
2241
+ stroke: "currentColor",
2242
+ strokeWidth: "1.33333",
2243
+ strokeLinecap: "round",
2244
+ strokeLinejoin: "round"
2245
+ }
2246
+ )
2247
+ }
2248
+ );
2249
+ }, q = {
2250
+ SMALL: "small",
2251
+ MEDIUM: "medium",
2252
+ LARGE: "large"
2253
+ }, ds = (t, r, a, n) => {
2254
+ switch (t) {
2255
+ case q.LARGE:
2256
+ return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
2257
+ case q.MEDIUM:
2258
+ return n ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
2259
+ case q.SMALL:
2260
+ return "10px 12px 10px 12px";
2261
+ default:
2262
+ return "12px 16px 12px 16px";
2263
+ }
2264
+ }, us = (t) => {
2265
+ switch (t) {
2266
+ case q.LARGE:
2267
+ return "56px";
2268
+ case q.MEDIUM:
2269
+ return "48px";
2270
+ case q.SMALL:
2271
+ return "40px";
2272
+ default:
2273
+ return "48px";
2274
+ }
2275
+ }, _s = (t) => {
2276
+ switch (t) {
2277
+ case q.SMALL:
2278
+ return 8;
2279
+ // 8px для small
2280
+ case q.MEDIUM:
2281
+ case q.LARGE:
2282
+ return 12;
2283
+ // 12px для medium и large
2284
+ default:
2285
+ return 12;
2286
+ }
2287
+ }, ps = (t, r, a) => ({
2288
+ wrapperStyles: {
2289
+ height: t,
2290
+ minHeight: t,
2291
+ maxHeight: t,
2292
+ boxSizing: "border-box",
2293
+ padding: r
2294
+ },
2295
+ floatingLabelStyles: {
2296
+ left: "16px",
2297
+ transformOrigin: "left top"
2298
+ },
2299
+ prefixStyles: {
2300
+ paddingRight: `${a}px`
2301
+ },
2302
+ suffixStyles: {
2303
+ right: `${a}px`
2304
+ }
2305
+ }), fs = (t, r, a) => ({
2306
+ wrapperStyles: {
2307
+ minHeight: t,
2308
+ maxHeight: t,
2309
+ boxSizing: "border-box",
2310
+ padding: r
2311
+ },
2312
+ floatingLabelStyles: {
2313
+ left: "16px"
2314
+ },
2315
+ prefixStyles: {
2316
+ paddingRight: `${a}px`
2317
+ },
2318
+ suffixStyles: {
2319
+ right: `${a}px`
2320
+ }
2321
+ }), gs = (t, r, a) => ({
2322
+ wrapperStyles: {
2323
+ minHeight: t,
2324
+ maxHeight: t,
2325
+ boxSizing: "border-box",
2326
+ padding: r
2327
+ },
2328
+ floatingLabelStyles: {
2329
+ left: "12px"
2330
+ },
2331
+ prefixStyles: {
2332
+ paddingRight: `${a}px`
2333
+ },
2334
+ suffixStyles: {
2335
+ right: `${a}px`
2336
+ }
2337
+ }), hs = (t, r, a, n) => {
2338
+ const o = us(t), s = ds(t, r, a, n), c = _s(t);
2339
+ switch (t) {
2340
+ case q.LARGE:
2341
+ return ps(o, s, c);
2342
+ case q.MEDIUM:
2343
+ return fs(o, s, c);
2344
+ case q.SMALL:
2345
+ return gs(o, s, c);
2346
+ default:
2347
+ return {
2348
+ wrapperStyles: {},
2349
+ floatingLabelStyles: {},
2350
+ prefixStyles: {},
2351
+ suffixStyles: {}
2352
+ };
2353
+ }
2354
+ }, Us = K(
2355
+ ({
2356
+ value: t = "",
2357
+ onChange: r,
2358
+ type: a = "text",
2359
+ placeholder: n,
2360
+ maxLength: o,
2361
+ minLength: s,
2362
+ autoComplete: c,
2363
+ autoFocus: _,
2364
+ size: d = q.MEDIUM,
2365
+ inputProps: f,
2366
+ error: p,
2367
+ disabled: g,
2368
+ loading: h,
2369
+ helper: b,
2370
+ prefix: v,
2371
+ suffix: w,
2372
+ clearable: S = !1,
2373
+ id: C,
2374
+ showLabel: x = !0,
2375
+ onFocus: $,
2376
+ onBlur: T,
2377
+ className: A,
2378
+ truncate: O = !0,
2379
+ hint: R,
2380
+ showHint: B = !1,
2381
+ showHintOnEmpty: N = !1,
2382
+ wrapperProps: F,
2383
+ labelProps: y,
2384
+ helperProps: z,
2385
+ ...D
2386
+ }, j) => {
2387
+ const V = (t || "").length > 0, H = d === q.LARGE, X = !!v, G = H && x && !v, ee = S && V && !(g || h), te = () => {
2388
+ r == null || r("");
2389
+ }, ae = ee ? /* @__PURE__ */ l.jsx(
2390
+ Tt,
2391
+ {
2392
+ size: d === q.SMALL ? "xs" : "sm",
2393
+ color: "var(--icon-secondary)",
2394
+ onClick: te,
2395
+ style: { cursor: "pointer" },
2396
+ "data-testid": "x-icon"
2397
+ }
2398
+ ) : w, me = {
2399
+ type: a,
2400
+ minLength: s,
2401
+ autoComplete: c,
2402
+ autoFocus: _,
2403
+ ...f
2404
+ }, re = hs(d, G, V, X);
2405
+ return /* @__PURE__ */ l.jsx(
2406
+ kt,
2407
+ {
2408
+ size: d,
2409
+ error: p,
2410
+ disabled: g || h,
2411
+ loading: h,
2412
+ helper: b,
2413
+ prefix: v,
2414
+ suffix: ae,
2415
+ id: C,
2416
+ showLabel: G,
2417
+ onFocus: $,
2418
+ onBlur: T,
2419
+ onChange: r,
2420
+ value: t || "",
2421
+ placeholder: n,
2422
+ className: A,
2423
+ wrapperStyles: re.wrapperStyles,
2424
+ floatingLabelStyles: re.floatingLabelStyles,
2425
+ prefixStyles: re.prefixStyles,
2426
+ suffixStyles: re.suffixStyles,
2427
+ wrapperProps: F,
2428
+ labelProps: y,
2429
+ helperProps: z,
2430
+ showLimit: !1,
2431
+ maxLength: o,
2432
+ inputProps: me,
2433
+ hint: R,
2434
+ showHint: B,
2435
+ showHintOnEmpty: N,
2436
+ truncate: O,
2437
+ ...D
2438
+ }
2439
+ );
2440
+ }
2441
+ ), oe = {
2442
+ SMALL: "small",
2443
+ MEDIUM: "medium"
2444
+ }, Fe = {
2445
+ SMALL: "12px",
2446
+ MEDIUM: "16px"
2447
+ }, bs = {
2448
+ SMALL: "xs",
2449
+ MEDIUM: "sm"
2450
+ }, Be = {
2451
+ FILL: "fill",
2452
+ FIXED: "fixed"
2453
+ }, Ke = {
2454
+ SMALL: "112px",
2455
+ MEDIUM: "56px"
2456
+ }, Ie = {
2457
+ SMALL: "48px",
2458
+ MEDIUM: "22px"
2459
+ }, fe = {
2460
+ SMALL: "12px 12px 12px 12px",
2461
+ MEDIUM: "16px 16px 16px 16px",
2462
+ MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
2463
+ MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
2464
+ }, be = {
2465
+ SMALL: 48,
2466
+ MEDIUM: 56,
2467
+ LARGE: 112
2468
+ }, ms = (t, r) => {
2469
+ if (t === oe.SMALL)
2470
+ return Ke.SMALL;
2471
+ if (r)
2472
+ return `${r}px`;
2473
+ switch (t) {
2474
+ case oe.MEDIUM:
2475
+ return Ke.MEDIUM;
2476
+ default:
2477
+ return Ke.MEDIUM;
2478
+ }
2479
+ }, ys = (t, r) => {
2480
+ if (t === oe.SMALL)
2481
+ return Ie.SMALL;
2482
+ if (r)
2483
+ switch (r) {
2484
+ case be.SMALL:
2485
+ case be.MEDIUM:
2486
+ return Ie.MEDIUM;
2487
+ case be.LARGE:
2488
+ return Ie.SMALL;
2489
+ default:
2490
+ return Ie.MEDIUM;
2491
+ }
2492
+ switch (t) {
2493
+ case oe.MEDIUM:
2494
+ return Ie.MEDIUM;
2495
+ default:
2496
+ return Ie.MEDIUM;
2497
+ }
2498
+ }, vs = (t, r, a) => {
2499
+ if (t === oe.SMALL)
2500
+ return fe.SMALL;
2501
+ if (r)
2502
+ switch (r) {
2503
+ case be.SMALL:
2504
+ return fe.MEDIUM_WITH_PREFIX;
2505
+ case be.MEDIUM:
2506
+ return a ? fe.MEDIUM_FLOATING_LABEL : fe.MEDIUM;
2507
+ case be.LARGE:
2508
+ return fe.MEDIUM;
2509
+ default:
2510
+ return fe.MEDIUM;
2511
+ }
2512
+ switch (t) {
2513
+ case oe.MEDIUM:
2514
+ return a ? fe.MEDIUM_FLOATING_LABEL : fe.MEDIUM;
2515
+ default:
2516
+ return fe.MEDIUM;
2517
+ }
2518
+ }, xs = (t, r) => {
2519
+ if (t === oe.SMALL)
2520
+ return "small";
2521
+ if (r)
2522
+ switch (r) {
2523
+ case be.SMALL:
2524
+ return "small";
2525
+ case be.MEDIUM:
2526
+ return "medium";
2527
+ case be.LARGE:
2528
+ return "medium";
2529
+ default:
2530
+ return "medium";
2531
+ }
2532
+ return t;
2533
+ }, Cs = (t) => bs[t.toUpperCase()], ws = (t) => Fe[t.toUpperCase()], Ss = (t, r, a, n) => {
2534
+ const o = ms(t, r), s = ys(t, r), c = vs(t, r, a);
2535
+ return {
2536
+ wrapperStyles: {
2537
+ minHeight: o,
2538
+ // Для fill resize устанавливаем height: 100%
2539
+ ...n === Be.FILL && { height: "100%" },
2540
+ // Для fixed resize устанавливаем фиксированную высоту
2541
+ ...n === Be.FIXED && r && { height: o },
2542
+ boxSizing: "border-box",
2543
+ padding: c
2544
+ },
2545
+ floatingLabelStyles: {
2546
+ left: t === oe.SMALL ? Fe.SMALL : Fe.MEDIUM,
2547
+ transformOrigin: "left top",
2548
+ top: r === 112 && a && t === oe.MEDIUM ? Fe.MEDIUM : void 0
2549
+ },
2550
+ suffixStyles: {
2551
+ right: ws(t)
2552
+ },
2553
+ textareaStyles: {
2554
+ minHeight: s,
2555
+ // Для fill resize flex: 1
2556
+ ...n === Be.FILL && { flex: 1, minHeight: 0 },
2557
+ // Для fixed resize фиксированная высота
2558
+ ...n === Be.FIXED && r && { height: s }
2559
+ }
2560
+ };
2561
+ }, Ps = K(
2562
+ ({
2563
+ value: t = "",
2564
+ onChange: r,
2565
+ placeholder: a,
2566
+ maxLength: n,
2567
+ minLength: o,
2568
+ autoFocus: s,
2569
+ size: c = oe.MEDIUM,
2570
+ textareaProps: _,
2571
+ error: d,
2572
+ disabled: f,
2573
+ loading: p,
2574
+ helper: g,
2575
+ suffix: h,
2576
+ clearable: b = !1,
2577
+ id: v,
2578
+ showLabel: w = !0,
2579
+ onFocus: S,
2580
+ onBlur: C,
2581
+ className: x,
2582
+ rows: $ = 1,
2583
+ showLimit: T = !1,
2584
+ wrapperProps: A,
2585
+ labelProps: O,
2586
+ helperProps: R,
2587
+ showGrip: B,
2588
+ minHeight: N,
2589
+ resize: F,
2590
+ ...y
2591
+ }, z) => {
2592
+ const D = (t || "").length > 0, j = w && !!a && (c === oe.SMALL || N !== 48), V = b && D && !(f || p), H = () => {
2593
+ r == null || r("");
2594
+ }, X = V ? /* @__PURE__ */ l.jsx(
2595
+ Tt,
2596
+ {
2597
+ size: Cs(c),
2598
+ color: "var(--icon-secondary)",
2599
+ onClick: H,
2600
+ style: { cursor: "pointer" },
2601
+ "data-testid": "x-icon"
2602
+ }
2603
+ ) : h, G = Ss(c, N, j && D, F), ee = xs(c, N), te = {
2604
+ rows: $,
2605
+ minLength: o,
2606
+ autoFocus: s,
2607
+ resize: F,
2608
+ ..._
2609
+ };
2610
+ return /* @__PURE__ */ l.jsx(
2611
+ kt,
2612
+ {
2613
+ ref: z,
2614
+ component: "textarea",
2615
+ size: ee,
2616
+ error: d,
2617
+ disabled: f || p,
2618
+ loading: p,
2619
+ helper: g,
2620
+ suffix: X,
2621
+ id: v,
2622
+ showLabel: j,
2623
+ onFocus: S,
2624
+ onBlur: C,
2625
+ onChange: r,
2626
+ value: t || "",
2627
+ placeholder: a,
2628
+ className: x,
2629
+ "data-floating-label": j,
2630
+ wrapperStyles: G.wrapperStyles,
2631
+ floatingLabelStyles: G.floatingLabelStyles,
2632
+ suffixStyles: G.suffixStyles,
2633
+ textareaStyles: G.textareaStyles,
2634
+ wrapperProps: A,
2635
+ labelProps: O,
2636
+ helperProps: R,
2637
+ showLimit: T && (N === 112 || c === oe.SMALL),
2638
+ maxLength: n,
2639
+ inputProps: te,
2640
+ resize: F,
2641
+ showGrip: B,
2642
+ ...y
2643
+ }
2644
+ );
2645
+ }
2646
+ ), Es = "_helper_1vhgl_16", Xe = {
2647
+ helper: Es,
2648
+ "helper--error": "_helper--error_1vhgl_27",
2649
+ "helper--disabled": "_helper--disabled_1vhgl_32"
2650
+ }, Bs = ({
2651
+ title: t,
2652
+ error: r,
2653
+ className: a = "",
2654
+ style: n,
2655
+ disabled: o = !1,
2656
+ "data-testid": s,
2657
+ "aria-label": c,
2658
+ "aria-describedby": _
2659
+ }) => {
2660
+ const d = !!r, f = ie(
2661
+ Xe.helper,
2662
+ d && Xe["helper--error"],
2663
+ o && Xe["helper--disabled"],
2664
+ a
2665
+ ), p = o ? t : r || t;
2666
+ return /* @__PURE__ */ l.jsx(
2667
+ "div",
2668
+ {
2669
+ className: f,
2670
+ style: n,
2671
+ "data-testid": s,
2672
+ "aria-label": c,
2673
+ "aria-describedby": _,
2674
+ children: /* @__PURE__ */ l.jsx("p", { children: p })
2675
+ }
2676
+ );
2677
+ };
1470
2678
  export {
1471
- Ur as Avatar,
1472
- Gr as Badge,
1473
- Zr as Button,
1474
- Hr as ConfigProvider,
1475
- Yr as Image,
1476
- mr as Loader,
1477
- Kr as Tag,
1478
- yr as enUS,
1479
- Jr as ruRU,
1480
- xr as useConfig,
1481
- qr as useLocale
2679
+ Is as Avatar,
2680
+ js as Badge,
2681
+ $s as Button,
2682
+ Ds as Checkbox,
2683
+ Ts as ConfigProvider,
2684
+ Bs as Helper,
2685
+ Rs as Image,
2686
+ zr as Loader,
2687
+ Ns as Tag,
2688
+ Ps as TextArea,
2689
+ Us as TextInput,
2690
+ Os as Typography,
2691
+ Vr as enUS,
2692
+ As as ruRU,
2693
+ Hr as useConfig,
2694
+ ks as useLocale
1482
2695
  };