skillgrid 0.0.25 → 0.0.27

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 (36) hide show
  1. package/dist/components/Button/Button.d.ts +1 -1
  2. package/dist/components/Button/Button.type.d.ts +121 -43
  3. package/dist/components/Button/assets/ArrowIcon.d.ts +5 -0
  4. package/dist/components/Button/assets/ArrowRightIcon.d.ts +5 -0
  5. package/dist/components/Button/assets/CrossIcon.d.ts +5 -0
  6. package/dist/components/Button/assets/DownloadIcon.d.ts +5 -0
  7. package/dist/components/Button/assets/FollowIcon.d.ts +5 -0
  8. package/dist/components/Button/assets/HeartIcon.d.ts +5 -0
  9. package/dist/components/Button/assets/LocationIcon.d.ts +5 -0
  10. package/dist/components/Button/assets/MapMarkerIcon.d.ts +5 -0
  11. package/dist/components/Button/assets/index.d.ts +9 -0
  12. package/dist/components/Button/assets/types.d.ts +7 -0
  13. package/dist/components/Button/lib/get-safe-props.d.ts +8 -0
  14. package/dist/components/Button/lib/get-safe-props.test.d.ts +1 -0
  15. package/dist/components/Button/lib/get-typography.d.ts +11 -0
  16. package/dist/components/Button/lib/get-typography.test.d.ts +1 -0
  17. package/dist/components/Button/preview/index.d.ts +8 -0
  18. package/dist/components/Radio/Radio.type.d.ts +14 -2
  19. package/dist/components/Radio/RadioGroup/RadioGroup.d.ts +2 -1
  20. package/dist/components/Radio/RadioGroup/RadioGroup.type.d.ts +1 -1
  21. package/dist/components/Radio/index.d.ts +4 -2
  22. package/dist/components/Tabs/ScrollWrapper.d.ts +9 -0
  23. package/dist/components/Tabs/Tabs.d.ts +99 -0
  24. package/dist/components/Tabs/Tabs.type.d.ts +199 -0
  25. package/dist/components/Tabs/index.d.ts +2 -0
  26. package/dist/hooks/index.d.ts +1 -0
  27. package/dist/hooks/useIsMobile.d.ts +1 -0
  28. package/dist/hooks/useViewPortSize.d.ts +4 -0
  29. package/dist/hooks/useWindowEvent.d.ts +3 -0
  30. package/dist/index.cjs.js +13 -11
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +3 -0
  33. package/dist/index.es.js +2089 -1625
  34. package/dist/types/common.d.ts +1 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/package.json +2 -1
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as Et from "react";
2
- import Lt, { forwardRef as te, useState as Ne, useEffect as Ee, useRef as ze, useCallback as Se, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
3
- import { clsx as V } from "clsx";
4
- import './index.css';function ia(t) {
5
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ import * as Ot from "react";
2
+ import lt, { forwardRef as X, Fragment as Oe, useState as ye, useEffect as ue, useRef as qe, useCallback as xe, useMemo as ya, createContext as Pt, useContext as qt, useLayoutEffect as va, useImperativeHandle as xa, useId as Ut } from "react";
3
+ import { clsx as I } from "clsx";
4
+ import './index.css';function Ca(e) {
5
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
6
6
  }
7
- var Ue = { exports: {} }, Re = {};
7
+ var ze = { exports: {} }, Ne = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -14,21 +14,21 @@ var Ue = { exports: {} }, Re = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var ft;
18
- function la() {
19
- if (ft) return Re;
20
- ft = 1;
21
- var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function c(_, d, f) {
23
- var p, h = {}, b = null, y = null;
24
- f !== void 0 && (b = "" + f), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (y = d.ref);
25
- for (p in d) s.call(d, p) && !n.hasOwnProperty(p) && (h[p] = d[p]);
26
- if (_ && _.defaultProps) for (p in d = _.defaultProps, d) h[p] === void 0 && (h[p] = d[p]);
27
- return { $$typeof: r, type: _, key: b, ref: y, props: h, _owner: i.current };
17
+ var Ct;
18
+ function wa() {
19
+ if (Ct) return Ne;
20
+ Ct = 1;
21
+ var e = lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
22
+ function l(u, c, p) {
23
+ var h, m = {}, b = null, g = null;
24
+ p !== void 0 && (b = "" + p), c.key !== void 0 && (b = "" + c.key), c.ref !== void 0 && (g = c.ref);
25
+ for (h in c) s.call(c, h) && !o.hasOwnProperty(h) && (m[h] = c[h]);
26
+ if (u && u.defaultProps) for (h in c = u.defaultProps, c) m[h] === void 0 && (m[h] = c[h]);
27
+ return { $$typeof: r, type: u, key: b, ref: g, props: m, _owner: i.current };
28
28
  }
29
- return Re.Fragment = a, Re.jsx = c, Re.jsxs = c, Re;
29
+ return Ne.Fragment = a, Ne.jsx = l, Ne.jsxs = l, Ne;
30
30
  }
31
- var ke = {};
31
+ var De = {};
32
32
  /**
33
33
  * @license React
34
34
  * react-jsx-runtime.development.js
@@ -38,91 +38,91 @@ var ke = {};
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
- var gt;
42
- function ca() {
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"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = 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"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), x = Symbol.iterator, M = "@@iterator";
45
- function S(e) {
46
- if (e === null || typeof e != "object")
41
+ var wt;
42
+ function Sa() {
43
+ return wt || (wt = 1, process.env.NODE_ENV !== "production" && function() {
44
+ var e = lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), u = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), g = Symbol.for("react.offscreen"), y = Symbol.iterator, S = "@@iterator";
45
+ function x(t) {
46
+ if (t === null || typeof t != "object")
47
47
  return null;
48
- var l = x && e[x] || e[M];
49
- return typeof l == "function" ? l : null;
48
+ var d = y && t[y] || t[S];
49
+ return typeof d == "function" ? d : null;
50
50
  }
51
- var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
- function g(e) {
51
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
52
+ function _(t) {
53
53
  {
54
- for (var l = arguments.length, u = new Array(l > 1 ? l - 1 : 0), v = 1; v < l; v++)
55
- u[v - 1] = arguments[v];
56
- $("error", e, u);
54
+ for (var d = arguments.length, f = new Array(d > 1 ? d - 1 : 0), w = 1; w < d; w++)
55
+ f[w - 1] = arguments[w];
56
+ L("error", t, f);
57
57
  }
58
58
  }
59
- function $(e, l, u) {
59
+ function L(t, d, f) {
60
60
  {
61
- var v = C.ReactDebugCurrentFrame, I = v.getStackAddendum();
62
- I !== "" && (l += "%s", u = u.concat([I]));
63
- var R = u.map(function(E) {
64
- return String(E);
61
+ var w = C.ReactDebugCurrentFrame, D = w.getStackAddendum();
62
+ D !== "" && (d += "%s", f = f.concat([D]));
63
+ var q = f.map(function(R) {
64
+ return String(R);
65
65
  });
66
- R.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, R);
66
+ q.unshift("Warning: " + d), Function.prototype.apply.call(console[t], console, q);
67
67
  }
68
68
  }
69
- var k = !1, D = !1, T = !1, A = !1, N = !1, U;
69
+ var E = !1, A = !1, j = !1, T = !1, O = !1, U;
70
70
  U = Symbol.for("react.module.reference");
71
- function q(e) {
72
- return !!(typeof e == "string" || typeof e == "function" || e === s || e === n || N || e === i || e === f || e === p || A || e === y || k || D || T || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
71
+ function B(t) {
72
+ return !!(typeof t == "string" || typeof t == "function" || t === s || t === o || O || t === i || t === p || t === h || T || t === g || E || A || j || typeof t == "object" && t !== null && (t.$$typeof === b || t.$$typeof === m || t.$$typeof === l || t.$$typeof === u || t.$$typeof === c || // This needs to include all possible module reference object
73
73
  // types supported by any Flight configuration anywhere since
74
74
  // we don't know which Flight build this will end up being used
75
75
  // with.
76
- e.$$typeof === U || e.getModuleId !== void 0));
76
+ t.$$typeof === U || t.getModuleId !== void 0));
77
77
  }
78
- function z(e, l, u) {
79
- var v = e.displayName;
80
- if (v)
81
- return v;
82
- var I = l.displayName || l.name || "";
83
- return I !== "" ? u + "(" + I + ")" : u;
78
+ function z(t, d, f) {
79
+ var w = t.displayName;
80
+ if (w)
81
+ return w;
82
+ var D = d.displayName || d.name || "";
83
+ return D !== "" ? f + "(" + D + ")" : f;
84
84
  }
85
- function O(e) {
86
- return e.displayName || "Context";
85
+ function N(t) {
86
+ return t.displayName || "Context";
87
87
  }
88
- function m(e) {
89
- if (e == null)
88
+ function v(t) {
89
+ if (t == null)
90
90
  return null;
91
- if (typeof e.tag == "number" && g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
92
- return e.displayName || e.name || null;
93
- if (typeof e == "string")
94
- return e;
95
- switch (e) {
91
+ if (typeof t.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
92
+ return t.displayName || t.name || null;
93
+ if (typeof t == "string")
94
+ return t;
95
+ switch (t) {
96
96
  case s:
97
97
  return "Fragment";
98
98
  case a:
99
99
  return "Portal";
100
- case n:
100
+ case o:
101
101
  return "Profiler";
102
102
  case i:
103
103
  return "StrictMode";
104
- case f:
105
- return "Suspense";
106
104
  case p:
105
+ return "Suspense";
106
+ case h:
107
107
  return "SuspenseList";
108
108
  }
109
- if (typeof e == "object")
110
- switch (e.$$typeof) {
111
- case _:
112
- var l = e;
113
- return O(l) + ".Consumer";
109
+ if (typeof t == "object")
110
+ switch (t.$$typeof) {
111
+ case u:
112
+ var d = t;
113
+ return N(d) + ".Consumer";
114
+ case l:
115
+ var f = t;
116
+ return N(f._context) + ".Provider";
114
117
  case c:
115
- var u = e;
116
- return O(u._context) + ".Provider";
117
- case d:
118
- return z(e, e.render, "ForwardRef");
119
- case h:
120
- var v = e.displayName || null;
121
- return v !== null ? v : m(e.type) || "Memo";
118
+ return z(t, t.render, "ForwardRef");
119
+ case m:
120
+ var w = t.displayName || null;
121
+ return w !== null ? w : v(t.type) || "Memo";
122
122
  case b: {
123
- var I = e, R = I._payload, E = I._init;
123
+ var D = t, q = D._payload, R = D._init;
124
124
  try {
125
- return m(E(R));
125
+ return v(R(q));
126
126
  } catch {
127
127
  return null;
128
128
  }
@@ -130,764 +130,767 @@ function ca() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var j = Object.assign, B = 0, G, H, Q, ae, J, re, se;
134
- function de() {
135
- }
136
- de.__reactDisabledLog = !0;
133
+ var $ = Object.assign, P = 0, F, G, Q, ne, Z, ie, ee;
137
134
  function ve() {
135
+ }
136
+ ve.__reactDisabledLog = !0;
137
+ function Ae() {
138
138
  {
139
- if (B === 0) {
140
- G = console.log, H = console.info, Q = console.warn, ae = console.error, J = console.group, re = console.groupCollapsed, se = console.groupEnd;
141
- var e = {
139
+ if (P === 0) {
140
+ F = console.log, G = console.info, Q = console.warn, ne = console.error, Z = console.group, ie = console.groupCollapsed, ee = console.groupEnd;
141
+ var t = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
144
- value: de,
144
+ value: ve,
145
145
  writable: !0
146
146
  };
147
147
  Object.defineProperties(console, {
148
- info: e,
149
- log: e,
150
- warn: e,
151
- error: e,
152
- group: e,
153
- groupCollapsed: e,
154
- groupEnd: e
148
+ info: t,
149
+ log: t,
150
+ warn: t,
151
+ error: t,
152
+ group: t,
153
+ groupCollapsed: t,
154
+ groupEnd: t
155
155
  });
156
156
  }
157
- B++;
157
+ P++;
158
158
  }
159
159
  }
160
- function ie() {
160
+ function fe() {
161
161
  {
162
- if (B--, B === 0) {
163
- var e = {
162
+ if (P--, P === 0) {
163
+ var t = {
164
164
  configurable: !0,
165
165
  enumerable: !0,
166
166
  writable: !0
167
167
  };
168
168
  Object.defineProperties(console, {
169
- log: j({}, e, {
170
- value: G
169
+ log: $({}, t, {
170
+ value: F
171
171
  }),
172
- info: j({}, e, {
173
- value: H
172
+ info: $({}, t, {
173
+ value: G
174
174
  }),
175
- warn: j({}, e, {
175
+ warn: $({}, t, {
176
176
  value: Q
177
177
  }),
178
- error: j({}, e, {
179
- value: ae
178
+ error: $({}, t, {
179
+ value: ne
180
180
  }),
181
- group: j({}, e, {
182
- value: J
181
+ group: $({}, t, {
182
+ value: Z
183
183
  }),
184
- groupCollapsed: j({}, e, {
185
- value: re
184
+ groupCollapsed: $({}, t, {
185
+ value: ie
186
186
  }),
187
- groupEnd: j({}, e, {
188
- value: se
187
+ groupEnd: $({}, t, {
188
+ value: ee
189
189
  })
190
190
  });
191
191
  }
192
- B < 0 && g("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ P < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
- var ye = C.ReactCurrentDispatcher, ue;
196
- function le(e, l, u) {
195
+ var Ee = C.ReactCurrentDispatcher, ke;
196
+ function we(t, d, f) {
197
197
  {
198
- if (ue === void 0)
198
+ if (ke === void 0)
199
199
  try {
200
200
  throw Error();
201
- } catch (I) {
202
- var v = I.stack.trim().match(/\n( *(at )?)/);
203
- ue = v && v[1] || "";
201
+ } catch (D) {
202
+ var w = D.stack.trim().match(/\n( *(at )?)/);
203
+ ke = w && w[1] || "";
204
204
  }
205
205
  return `
206
- ` + ue + e;
206
+ ` + ke + t;
207
207
  }
208
208
  }
209
- var me = !1, _e;
209
+ var Ue = !1, je;
210
210
  {
211
- var xe = typeof WeakMap == "function" ? WeakMap : Map;
212
- _e = new xe();
211
+ var Ve = typeof WeakMap == "function" ? WeakMap : Map;
212
+ je = new Ve();
213
213
  }
214
- function De(e, l) {
215
- if (!e || me)
214
+ function Be(t, d) {
215
+ if (!t || Ue)
216
216
  return "";
217
217
  {
218
- var u = _e.get(e);
219
- if (u !== void 0)
220
- return u;
218
+ var f = je.get(t);
219
+ if (f !== void 0)
220
+ return f;
221
221
  }
222
- var v;
223
- me = !0;
224
- var I = Error.prepareStackTrace;
222
+ var w;
223
+ Ue = !0;
224
+ var D = Error.prepareStackTrace;
225
225
  Error.prepareStackTrace = void 0;
226
- var R;
227
- R = ye.current, ye.current = null, ve();
226
+ var q;
227
+ q = Ee.current, Ee.current = null, Ae();
228
228
  try {
229
- if (l) {
230
- var E = function() {
229
+ if (d) {
230
+ var R = function() {
231
231
  throw Error();
232
232
  };
233
- if (Object.defineProperty(E.prototype, "props", {
233
+ if (Object.defineProperty(R.prototype, "props", {
234
234
  set: function() {
235
235
  throw Error();
236
236
  }
237
237
  }), typeof Reflect == "object" && Reflect.construct) {
238
238
  try {
239
- Reflect.construct(E, []);
240
- } catch (ee) {
241
- v = ee;
239
+ Reflect.construct(R, []);
240
+ } catch (re) {
241
+ w = re;
242
242
  }
243
- Reflect.construct(e, [], E);
243
+ Reflect.construct(t, [], R);
244
244
  } else {
245
245
  try {
246
- E.call();
247
- } catch (ee) {
248
- v = ee;
246
+ R.call();
247
+ } catch (re) {
248
+ w = re;
249
249
  }
250
- e.call(E.prototype);
250
+ t.call(R.prototype);
251
251
  }
252
252
  } else {
253
253
  try {
254
254
  throw Error();
255
- } catch (ee) {
256
- v = ee;
255
+ } catch (re) {
256
+ w = re;
257
257
  }
258
- e();
258
+ t();
259
259
  }
260
- } catch (ee) {
261
- if (ee && v && typeof ee.stack == "string") {
262
- for (var w = ee.stack.split(`
263
- `), K = v.stack.split(`
264
- `), F = w.length - 1, W = K.length - 1; F >= 1 && W >= 0 && w[F] !== K[W]; )
265
- W--;
266
- for (; F >= 1 && W >= 0; F--, W--)
267
- if (w[F] !== K[W]) {
268
- if (F !== 1 || W !== 1)
260
+ } catch (re) {
261
+ if (re && w && typeof re.stack == "string") {
262
+ for (var k = re.stack.split(`
263
+ `), te = w.stack.split(`
264
+ `), H = k.length - 1, V = te.length - 1; H >= 1 && V >= 0 && k[H] !== te[V]; )
265
+ V--;
266
+ for (; H >= 1 && V >= 0; H--, V--)
267
+ if (k[H] !== te[V]) {
268
+ if (H !== 1 || V !== 1)
269
269
  do
270
- if (F--, W--, W < 0 || w[F] !== K[W]) {
271
- var ne = `
272
- ` + w[F].replace(" at new ", " at ");
273
- return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && _e.set(e, ne), ne;
270
+ if (H--, V--, V < 0 || k[H] !== te[V]) {
271
+ var le = `
272
+ ` + k[H].replace(" at new ", " at ");
273
+ return t.displayName && le.includes("<anonymous>") && (le = le.replace("<anonymous>", t.displayName)), typeof t == "function" && je.set(t, le), le;
274
274
  }
275
- while (F >= 1 && W >= 0);
275
+ while (H >= 1 && V >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- me = !1, ye.current = R, ie(), Error.prepareStackTrace = I;
280
+ Ue = !1, Ee.current = q, fe(), Error.prepareStackTrace = D;
281
281
  }
282
- var Me = e ? e.displayName || e.name : "", Ce = Me ? le(Me) : "";
283
- return typeof e == "function" && _e.set(e, Ce), Ce;
282
+ var Re = t ? t.displayName || t.name : "", Se = Re ? we(Re) : "";
283
+ return typeof t == "function" && je.set(t, Se), Se;
284
284
  }
285
- function We(e, l, u) {
286
- return De(e, !1);
285
+ function Ze(t, d, f) {
286
+ return Be(t, !1);
287
287
  }
288
- function Ve(e) {
289
- var l = e.prototype;
290
- return !!(l && l.isReactComponent);
288
+ function Ye(t) {
289
+ var d = t.prototype;
290
+ return !!(d && d.isReactComponent);
291
291
  }
292
- function Z(e, l, u) {
293
- if (e == null)
292
+ function Y(t, d, f) {
293
+ if (t == null)
294
294
  return "";
295
- if (typeof e == "function")
296
- return De(e, Ve(e));
297
- if (typeof e == "string")
298
- return le(e);
299
- switch (e) {
300
- case f:
301
- return le("Suspense");
295
+ if (typeof t == "function")
296
+ return Be(t, Ye(t));
297
+ if (typeof t == "string")
298
+ return we(t);
299
+ switch (t) {
302
300
  case p:
303
- return le("SuspenseList");
301
+ return we("Suspense");
302
+ case h:
303
+ return we("SuspenseList");
304
304
  }
305
- if (typeof e == "object")
306
- switch (e.$$typeof) {
307
- case d:
308
- return We(e.render);
309
- case h:
310
- return Z(e.type, l, u);
305
+ if (typeof t == "object")
306
+ switch (t.$$typeof) {
307
+ case c:
308
+ return Ze(t.render);
309
+ case m:
310
+ return Y(t.type, d, f);
311
311
  case b: {
312
- var v = e, I = v._payload, R = v._init;
312
+ var w = t, D = w._payload, q = w._init;
313
313
  try {
314
- return Z(R(I), l, u);
314
+ return Y(q(D), d, f);
315
315
  } catch {
316
316
  }
317
317
  }
318
318
  }
319
319
  return "";
320
320
  }
321
- var Y = Object.prototype.hasOwnProperty, ce = {}, tt = C.ReactDebugCurrentFrame;
322
- function Oe(e) {
323
- if (e) {
324
- var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
325
- tt.setExtraStackFrame(u);
321
+ var K = Object.prototype.hasOwnProperty, de = {}, ct = C.ReactDebugCurrentFrame;
322
+ function Fe(t) {
323
+ if (t) {
324
+ var d = t._owner, f = Y(t.type, t._source, d ? d.type : null);
325
+ ct.setExtraStackFrame(f);
326
326
  } else
327
- tt.setExtraStackFrame(null);
327
+ ct.setExtraStackFrame(null);
328
328
  }
329
- function Nt(e, l, u, v, I) {
329
+ function Jt(t, d, f, w, D) {
330
330
  {
331
- var R = Function.call.bind(Y);
332
- for (var E in e)
333
- if (R(e, E)) {
334
- var w = void 0;
331
+ var q = Function.call.bind(K);
332
+ for (var R in t)
333
+ if (q(t, R)) {
334
+ var k = void 0;
335
335
  try {
336
- if (typeof e[E] != "function") {
337
- var K = Error((v || "React class") + ": " + u + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw K.name = "Invariant Violation", K;
336
+ if (typeof t[R] != "function") {
337
+ var te = Error((w || "React class") + ": " + f + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
+ throw te.name = "Invariant Violation", te;
339
339
  }
340
- w = e[E](l, E, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (F) {
342
- w = F;
340
+ k = t[R](d, R, w, f, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
+ } catch (H) {
342
+ k = H;
343
343
  }
344
- w && !(w instanceof Error) && (Oe(I), g("%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).", v || "React class", u, E, typeof w), Oe(null)), w instanceof Error && !(w.message in ce) && (ce[w.message] = !0, Oe(I), g("Failed %s type: %s", u, w.message), Oe(null));
344
+ k && !(k instanceof Error) && (Fe(D), _("%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).", w || "React class", f, R, typeof k), Fe(null)), k instanceof Error && !(k.message in de) && (de[k.message] = !0, Fe(D), _("Failed %s type: %s", f, k.message), Fe(null));
345
345
  }
346
346
  }
347
347
  }
348
- var Dt = Array.isArray;
349
- function He(e) {
350
- return Dt(e);
348
+ var Xt = Array.isArray;
349
+ function Ke(t) {
350
+ return Xt(t);
351
351
  }
352
- function Ot(e) {
352
+ function Qt(t) {
353
353
  {
354
- var l = typeof Symbol == "function" && Symbol.toStringTag, u = l && e[Symbol.toStringTag] || e.constructor.name || "Object";
355
- return u;
354
+ var d = typeof Symbol == "function" && Symbol.toStringTag, f = d && t[Symbol.toStringTag] || t.constructor.name || "Object";
355
+ return f;
356
356
  }
357
357
  }
358
- function Ut(e) {
358
+ function ea(t) {
359
359
  try {
360
- return at(e), !1;
360
+ return dt(t), !1;
361
361
  } catch {
362
362
  return !0;
363
363
  }
364
364
  }
365
- function at(e) {
366
- return "" + e;
365
+ function dt(t) {
366
+ return "" + t;
367
367
  }
368
- function rt(e) {
369
- if (Ut(e))
370
- return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ot(e)), at(e);
368
+ function ut(t) {
369
+ if (ea(t))
370
+ return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Qt(t)), dt(t);
371
371
  }
372
- var st = C.ReactCurrentOwner, Bt = {
372
+ var _t = C.ReactCurrentOwner, ta = {
373
373
  key: !0,
374
374
  ref: !0,
375
375
  __self: !0,
376
376
  __source: !0
377
- }, nt, ot;
378
- function Ft(e) {
379
- if (Y.call(e, "ref")) {
380
- var l = Object.getOwnPropertyDescriptor(e, "ref").get;
381
- if (l && l.isReactWarning)
377
+ }, pt, ft;
378
+ function aa(t) {
379
+ if (K.call(t, "ref")) {
380
+ var d = Object.getOwnPropertyDescriptor(t, "ref").get;
381
+ if (d && d.isReactWarning)
382
382
  return !1;
383
383
  }
384
- return e.ref !== void 0;
384
+ return t.ref !== void 0;
385
385
  }
386
- function Pt(e) {
387
- if (Y.call(e, "key")) {
388
- var l = Object.getOwnPropertyDescriptor(e, "key").get;
389
- if (l && l.isReactWarning)
386
+ function ra(t) {
387
+ if (K.call(t, "key")) {
388
+ var d = Object.getOwnPropertyDescriptor(t, "key").get;
389
+ if (d && d.isReactWarning)
390
390
  return !1;
391
391
  }
392
- return e.key !== void 0;
392
+ return t.key !== void 0;
393
393
  }
394
- function zt(e, l) {
395
- typeof e.ref == "string" && st.current;
394
+ function sa(t, d) {
395
+ typeof t.ref == "string" && _t.current;
396
396
  }
397
- function Wt(e, l) {
397
+ function na(t, d) {
398
398
  {
399
- var u = function() {
400
- nt || (nt = !0, g("%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)", l));
399
+ var f = function() {
400
+ pt || (pt = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
401
401
  };
402
- u.isReactWarning = !0, Object.defineProperty(e, "key", {
403
- get: u,
402
+ f.isReactWarning = !0, Object.defineProperty(t, "key", {
403
+ get: f,
404
404
  configurable: !0
405
405
  });
406
406
  }
407
407
  }
408
- function Vt(e, l) {
408
+ function oa(t, d) {
409
409
  {
410
- var u = function() {
411
- ot || (ot = !0, g("%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)", l));
410
+ var f = function() {
411
+ ft || (ft = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", d));
412
412
  };
413
- u.isReactWarning = !0, Object.defineProperty(e, "ref", {
414
- get: u,
413
+ f.isReactWarning = !0, Object.defineProperty(t, "ref", {
414
+ get: f,
415
415
  configurable: !0
416
416
  });
417
417
  }
418
418
  }
419
- var Ht = function(e, l, u, v, I, R, E) {
420
- var w = {
419
+ var ia = function(t, d, f, w, D, q, R) {
420
+ var k = {
421
421
  // This tag allows us to uniquely identify this as a React Element
422
422
  $$typeof: r,
423
423
  // Built-in properties that belong on the element
424
- type: e,
425
- key: l,
426
- ref: u,
427
- props: E,
424
+ type: t,
425
+ key: d,
426
+ ref: f,
427
+ props: R,
428
428
  // Record the component responsible for creating this element.
429
- _owner: R
429
+ _owner: q
430
430
  };
431
- return w._store = {}, Object.defineProperty(w._store, "validated", {
431
+ return k._store = {}, Object.defineProperty(k._store, "validated", {
432
432
  configurable: !1,
433
433
  enumerable: !1,
434
434
  writable: !0,
435
435
  value: !1
436
- }), Object.defineProperty(w, "_self", {
436
+ }), Object.defineProperty(k, "_self", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
- value: v
441
- }), Object.defineProperty(w, "_source", {
440
+ value: w
441
+ }), Object.defineProperty(k, "_source", {
442
442
  configurable: !1,
443
443
  enumerable: !1,
444
444
  writable: !1,
445
- value: I
446
- }), Object.freeze && (Object.freeze(w.props), Object.freeze(w)), w;
445
+ value: D
446
+ }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
447
447
  };
448
- function qt(e, l, u, v, I) {
448
+ function la(t, d, f, w, D) {
449
449
  {
450
- var R, E = {}, w = null, K = null;
451
- u !== void 0 && (rt(u), w = "" + u), Pt(l) && (rt(l.key), w = "" + l.key), Ft(l) && (K = l.ref, zt(l, I));
452
- for (R in l)
453
- Y.call(l, R) && !Bt.hasOwnProperty(R) && (E[R] = l[R]);
454
- if (e && e.defaultProps) {
455
- var F = e.defaultProps;
456
- for (R in F)
457
- E[R] === void 0 && (E[R] = F[R]);
450
+ var q, R = {}, k = null, te = null;
451
+ f !== void 0 && (ut(f), k = "" + f), ra(d) && (ut(d.key), k = "" + d.key), aa(d) && (te = d.ref, sa(d, D));
452
+ for (q in d)
453
+ K.call(d, q) && !ta.hasOwnProperty(q) && (R[q] = d[q]);
454
+ if (t && t.defaultProps) {
455
+ var H = t.defaultProps;
456
+ for (q in H)
457
+ R[q] === void 0 && (R[q] = H[q]);
458
458
  }
459
- if (w || K) {
460
- var W = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
461
- w && Wt(E, W), K && Vt(E, W);
459
+ if (k || te) {
460
+ var V = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
461
+ k && na(R, V), te && oa(R, V);
462
462
  }
463
- return Ht(e, w, K, I, v, st.current, E);
463
+ return ia(t, k, te, D, w, _t.current, R);
464
464
  }
465
465
  }
466
- var qe = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
467
- function Le(e) {
468
- if (e) {
469
- var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
470
- it.setExtraStackFrame(u);
466
+ var Je = C.ReactCurrentOwner, ht = C.ReactDebugCurrentFrame;
467
+ function $e(t) {
468
+ if (t) {
469
+ var d = t._owner, f = Y(t.type, t._source, d ? d.type : null);
470
+ ht.setExtraStackFrame(f);
471
471
  } else
472
- it.setExtraStackFrame(null);
472
+ ht.setExtraStackFrame(null);
473
473
  }
474
- var Ge;
475
- Ge = !1;
476
- function Ze(e) {
477
- return typeof e == "object" && e !== null && e.$$typeof === r;
474
+ var Xe;
475
+ Xe = !1;
476
+ function Qe(t) {
477
+ return typeof t == "object" && t !== null && t.$$typeof === r;
478
478
  }
479
- function lt() {
479
+ function gt() {
480
480
  {
481
- if (qe.current) {
482
- var e = m(qe.current.type);
483
- if (e)
481
+ if (Je.current) {
482
+ var t = v(Je.current.type);
483
+ if (t)
484
484
  return `
485
485
 
486
- Check the render method of \`` + e + "`.";
486
+ Check the render method of \`` + t + "`.";
487
487
  }
488
488
  return "";
489
489
  }
490
490
  }
491
- function Gt(e) {
491
+ function ca(t) {
492
492
  return "";
493
493
  }
494
- var ct = {};
495
- function Zt(e) {
494
+ var bt = {};
495
+ function da(t) {
496
496
  {
497
- var l = lt();
498
- if (!l) {
499
- var u = typeof e == "string" ? e : e.displayName || e.name;
500
- u && (l = `
497
+ var d = gt();
498
+ if (!d) {
499
+ var f = typeof t == "string" ? t : t.displayName || t.name;
500
+ f && (d = `
501
501
 
502
- Check the top-level render call using <` + u + ">.");
502
+ Check the top-level render call using <` + f + ">.");
503
503
  }
504
- return l;
504
+ return d;
505
505
  }
506
506
  }
507
- function dt(e, l) {
507
+ function mt(t, d) {
508
508
  {
509
- if (!e._store || e._store.validated || e.key != null)
509
+ if (!t._store || t._store.validated || t.key != null)
510
510
  return;
511
- e._store.validated = !0;
512
- var u = Zt(l);
513
- if (ct[u])
511
+ t._store.validated = !0;
512
+ var f = da(d);
513
+ if (bt[f])
514
514
  return;
515
- ct[u] = !0;
516
- var v = "";
517
- e && e._owner && e._owner !== qe.current && (v = " It was passed a child from " + m(e._owner.type) + "."), Le(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Le(null);
515
+ bt[f] = !0;
516
+ var w = "";
517
+ t && t._owner && t._owner !== Je.current && (w = " It was passed a child from " + v(t._owner.type) + "."), $e(t), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', f, w), $e(null);
518
518
  }
519
519
  }
520
- function ut(e, l) {
520
+ function yt(t, d) {
521
521
  {
522
- if (typeof e != "object")
522
+ if (typeof t != "object")
523
523
  return;
524
- if (He(e))
525
- for (var u = 0; u < e.length; u++) {
526
- var v = e[u];
527
- Ze(v) && dt(v, l);
524
+ if (Ke(t))
525
+ for (var f = 0; f < t.length; f++) {
526
+ var w = t[f];
527
+ Qe(w) && mt(w, d);
528
528
  }
529
- else if (Ze(e))
530
- e._store && (e._store.validated = !0);
531
- else if (e) {
532
- var I = S(e);
533
- if (typeof I == "function" && I !== e.entries)
534
- for (var R = I.call(e), E; !(E = R.next()).done; )
535
- Ze(E.value) && dt(E.value, l);
529
+ else if (Qe(t))
530
+ t._store && (t._store.validated = !0);
531
+ else if (t) {
532
+ var D = x(t);
533
+ if (typeof D == "function" && D !== t.entries)
534
+ for (var q = D.call(t), R; !(R = q.next()).done; )
535
+ Qe(R.value) && mt(R.value, d);
536
536
  }
537
537
  }
538
538
  }
539
- function Yt(e) {
539
+ function ua(t) {
540
540
  {
541
- var l = e.type;
542
- if (l == null || typeof l == "string")
541
+ var d = t.type;
542
+ if (d == null || typeof d == "string")
543
543
  return;
544
- var u;
545
- if (typeof l == "function")
546
- u = l.propTypes;
547
- else if (typeof l == "object" && (l.$$typeof === d || // Note: Memo only checks outer props here.
544
+ var f;
545
+ if (typeof d == "function")
546
+ f = d.propTypes;
547
+ else if (typeof d == "object" && (d.$$typeof === c || // Note: Memo only checks outer props here.
548
548
  // Inner props are checked in the reconciler.
549
- l.$$typeof === h))
550
- u = l.propTypes;
549
+ d.$$typeof === m))
550
+ f = d.propTypes;
551
551
  else
552
552
  return;
553
- if (u) {
554
- var v = m(l);
555
- Nt(u, e.props, "prop", v, e);
556
- } else if (l.PropTypes !== void 0 && !Ge) {
557
- Ge = !0;
558
- var I = m(l);
559
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
553
+ if (f) {
554
+ var w = v(d);
555
+ Jt(f, t.props, "prop", w, t);
556
+ } else if (d.PropTypes !== void 0 && !Xe) {
557
+ Xe = !0;
558
+ var D = v(d);
559
+ _("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", D || "Unknown");
560
560
  }
561
- typeof l.getDefaultProps == "function" && !l.getDefaultProps.isReactClassApproved && g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
561
+ typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
562
562
  }
563
563
  }
564
- function Jt(e) {
564
+ function _a(t) {
565
565
  {
566
- for (var l = Object.keys(e.props), u = 0; u < l.length; u++) {
567
- var v = l[u];
568
- if (v !== "children" && v !== "key") {
569
- Le(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Le(null);
566
+ for (var d = Object.keys(t.props), f = 0; f < d.length; f++) {
567
+ var w = d[f];
568
+ if (w !== "children" && w !== "key") {
569
+ $e(t), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), $e(null);
570
570
  break;
571
571
  }
572
572
  }
573
- e.ref !== null && (Le(e), g("Invalid attribute `ref` supplied to `React.Fragment`."), Le(null));
573
+ t.ref !== null && ($e(t), _("Invalid attribute `ref` supplied to `React.Fragment`."), $e(null));
574
574
  }
575
575
  }
576
- var _t = {};
577
- function pt(e, l, u, v, I, R) {
576
+ var vt = {};
577
+ function xt(t, d, f, w, D, q) {
578
578
  {
579
- var E = q(e);
580
- if (!E) {
581
- var w = "";
582
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " 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 K = Gt();
584
- K ? w += K : w += lt();
585
- var F;
586
- e === null ? F = "null" : He(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (m(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
579
+ var R = B(t);
580
+ if (!R) {
581
+ var k = "";
582
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (k += " 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 te = ca();
584
+ te ? k += te : k += gt();
585
+ var H;
586
+ t === null ? H = "null" : Ke(t) ? H = "array" : t !== void 0 && t.$$typeof === r ? (H = "<" + (v(t.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : H = typeof t, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, k);
587
587
  }
588
- var W = qt(e, l, u, I, R);
589
- if (W == null)
590
- return W;
591
- if (E) {
592
- var ne = l.children;
593
- if (ne !== void 0)
594
- if (v)
595
- if (He(ne)) {
596
- for (var Me = 0; Me < ne.length; Me++)
597
- ut(ne[Me], e);
598
- Object.freeze && Object.freeze(ne);
588
+ var V = la(t, d, f, D, q);
589
+ if (V == null)
590
+ return V;
591
+ if (R) {
592
+ var le = d.children;
593
+ if (le !== void 0)
594
+ if (w)
595
+ if (Ke(le)) {
596
+ for (var Re = 0; Re < le.length; Re++)
597
+ yt(le[Re], t);
598
+ Object.freeze && Object.freeze(le);
599
599
  } else
600
- g("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
+ _("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
601
601
  else
602
- ut(ne, e);
602
+ yt(le, t);
603
603
  }
604
- if (Y.call(l, "key")) {
605
- var Ce = m(e), ee = Object.keys(l).filter(function(aa) {
606
- return aa !== "key";
607
- }), Ye = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
608
- if (!_t[Ce + Ye]) {
609
- var ta = ee.length > 0 ? "{" + ee.join(": ..., ") + ": ...}" : "{}";
610
- g(`A props object containing a "key" prop is being spread into JSX:
604
+ if (K.call(d, "key")) {
605
+ var Se = v(t), re = Object.keys(d).filter(function(ma) {
606
+ return ma !== "key";
607
+ }), et = re.length > 0 ? "{key: someKey, " + re.join(": ..., ") + ": ...}" : "{key: someKey}";
608
+ if (!vt[Se + et]) {
609
+ var ba = re.length > 0 ? "{" + re.join(": ..., ") + ": ...}" : "{}";
610
+ _(`A props object containing a "key" prop is being spread into JSX:
611
611
  let props = %s;
612
612
  <%s {...props} />
613
613
  React keys must be passed directly to JSX without using spread:
614
614
  let props = %s;
615
- <%s key={someKey} {...props} />`, Ye, Ce, ta, Ce), _t[Ce + Ye] = !0;
615
+ <%s key={someKey} {...props} />`, et, Se, ba, Se), vt[Se + et] = !0;
616
616
  }
617
617
  }
618
- return e === s ? Jt(W) : Yt(W), W;
618
+ return t === s ? _a(V) : ua(V), V;
619
619
  }
620
620
  }
621
- function Kt(e, l, u) {
622
- return pt(e, l, u, !0);
621
+ function pa(t, d, f) {
622
+ return xt(t, d, f, !0);
623
623
  }
624
- function Xt(e, l, u) {
625
- return pt(e, l, u, !1);
624
+ function fa(t, d, f) {
625
+ return xt(t, d, f, !1);
626
626
  }
627
- var Qt = Xt, ea = Kt;
628
- ke.Fragment = s, ke.jsx = Qt, ke.jsxs = ea;
629
- }()), ke;
627
+ var ha = fa, ga = pa;
628
+ De.Fragment = s, De.jsx = ha, De.jsxs = ga;
629
+ }()), De;
630
+ }
631
+ var St;
632
+ function La() {
633
+ return St || (St = 1, process.env.NODE_ENV === "production" ? ze.exports = wa() : ze.exports = Sa()), ze.exports;
630
634
  }
631
- var ht;
632
- function da() {
633
- return ht || (ht = 1, process.env.NODE_ENV === "production" ? Ue.exports = la() : Ue.exports = ca()), Ue.exports;
635
+ var n = La();
636
+ const Ea = (e) => e.as === "a", ka = (e) => e.as === void 0 || e.as === "button", Me = (e) => e.displayAs === void 0 || e.displayAs === "button", tt = (e) => e.displayAs === "link", ja = "_button_6bymk_1", $a = "_link_6bymk_17", Ra = "_disabled_6bymk_22", Ma = "_loading_6bymk_22", Ia = "_neutral_6bymk_50", Ta = "_accent_6bymk_54", Aa = "_positive_6bymk_58", Na = "_negative_6bymk_62", Da = "_contrast_6bymk_66", Oa = "_special_6bymk_70", Pa = "_primary_6bymk_74", qa = "_secondary_6bymk_75", Ua = "_tertiary_6bymk_76", Ba = "_spaceBetween_6bymk_116", Fa = "_rightGroup_6bymk_116", za = "_label_6bymk_136", Wa = "_iconOnly_6bymk_155", Ga = "_stretched_6bymk_171", Ha = "_icon_6bymk_155", Va = "_postfix_6bymk_176", Za = "_underline_6bymk_202", Ya = "_warning_6bymk_1082", Ka = "_withSubcaption_6bymk_1268", Ja = "_subcaption_6bymk_1273", Xa = "_loader_6bymk_1279", Qa = "_spin_6bymk_1", er = "_l_6bymk_17", tr = "_m_6bymk_1318", ar = "_s_6bymk_70", rr = "_xs_6bymk_1364", sr = "_iconRight_6bymk_1410", W = {
637
+ button: ja,
638
+ link: $a,
639
+ disabled: Ra,
640
+ loading: Ma,
641
+ neutral: Ia,
642
+ accent: Ta,
643
+ positive: Aa,
644
+ negative: Na,
645
+ contrast: Da,
646
+ special: Oa,
647
+ primary: Pa,
648
+ secondary: qa,
649
+ tertiary: Ua,
650
+ spaceBetween: Ba,
651
+ rightGroup: Fa,
652
+ label: za,
653
+ iconOnly: Wa,
654
+ stretched: Ga,
655
+ icon: Ha,
656
+ postfix: Va,
657
+ underline: Za,
658
+ warning: Ya,
659
+ withSubcaption: Ka,
660
+ subcaption: Ja,
661
+ loader: Xa,
662
+ spin: Qa,
663
+ l: er,
664
+ m: tr,
665
+ s: ar,
666
+ xs: rr,
667
+ iconRight: sr
668
+ }, nr = /* @__PURE__ */ new Set([
669
+ "mode",
670
+ "size",
671
+ "buttonStyle",
672
+ "loading",
673
+ "disabled",
674
+ "displayAs",
675
+ "stretched",
676
+ "iconRight",
677
+ "className",
678
+ "children",
679
+ "subcaption",
680
+ "postfix",
681
+ "iconLeft",
682
+ "as",
683
+ "showUnderline",
684
+ "isExternal"
685
+ ]), Lt = (e) => {
686
+ const r = {};
687
+ for (const a in e)
688
+ nr.has(a) || (r[a] = e[a]);
689
+ return r;
690
+ }, or = {
691
+ l: "typography-subtitle-1-semibold",
692
+ m: "typography-label-2-regular",
693
+ s: "typography-label-3-regular"
694
+ };
695
+ function ir(e) {
696
+ return or[e] || "typography-label-2-regular";
634
697
  }
635
- var o = da();
636
- const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button", pa = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", P = {
637
- button: pa,
638
- disabled: fa,
639
- loading: ga,
640
- neutral: ha,
641
- accent: ba,
642
- positive: ya,
643
- negative: ma,
644
- contrast: va,
645
- special: xa,
646
- primary: Ca,
647
- secondary: wa,
648
- tertiary: Sa,
649
- label: Ea,
650
- rightGroup: La,
651
- iconOnly: Ma,
652
- large: $a,
653
- medium: ja,
654
- small: Ia,
655
- spaceBetween: Ra,
656
- stretched: ka,
657
- icon: Ta,
658
- badge: Aa,
659
- badgeMedium: Na,
660
- circular: Da,
661
- badgeSmall: Oa,
662
- badgeExtraSmall: Ua,
663
- withSubcaption: Ba,
664
- subcaption: Fa,
665
- loader: Pa,
666
- spin: za,
667
- l: Wa,
668
- m: Va,
669
- s: Ha,
670
- xs: qa
671
- }, bt = ({
672
- isLoading: t,
673
- showBadge: r,
674
- badgeValue: a,
675
- badgeSize: s,
676
- icon: i,
677
- children: n,
678
- postfix: c,
679
- showSubcaption: _,
680
- subcaption: d,
681
- size: f
698
+ const pe = {
699
+ "typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
700
+ "typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
701
+ "typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
702
+ "typography-title-4-semibold": "_typography-title-4-semibold_1lyxn_28",
703
+ "typography-title-5-semibold": "_typography-title-5-semibold_1lyxn_37",
704
+ "typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
705
+ "typography-subtitle-2-semibold": "_typography-subtitle-2-semibold_1lyxn_53",
706
+ "typography-subtitle-3-semibold": "_typography-subtitle-3-semibold_1lyxn_62",
707
+ "typography-subtitle-4-semibold": "_typography-subtitle-4-semibold_1lyxn_71",
708
+ "typography-label-1-medium": "_typography-label-1-medium_1lyxn_80",
709
+ "typography-label-2-medium": "_typography-label-2-medium_1lyxn_89",
710
+ "typography-label-3-medium": "_typography-label-3-medium_1lyxn_97",
711
+ "typography-label-4-medium": "_typography-label-4-medium_1lyxn_106",
712
+ "typography-label-5-medium": "_typography-label-5-medium_1lyxn_115",
713
+ "typography-label-1-regular": "_typography-label-1-regular_1lyxn_124",
714
+ "typography-label-2-regular": "_typography-label-2-regular_1lyxn_133",
715
+ "typography-label-3-regular": "_typography-label-3-regular_1lyxn_141",
716
+ "typography-label-4-regular": "_typography-label-4-regular_1lyxn_150",
717
+ "typography-label-5-regular": "_typography-label-5-regular_1lyxn_159",
718
+ "typography-paragraph-1-regular": "_typography-paragraph-1-regular_1lyxn_168",
719
+ "typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
720
+ "typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
721
+ "typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
722
+ }, Et = ({
723
+ isLoading: e,
724
+ iconRight: r,
725
+ iconLeft: a,
726
+ children: s,
727
+ postfix: i,
728
+ subcaption: o,
729
+ size: l,
730
+ isAsButton: u
682
731
  }) => {
683
- if (t)
684
- return /* @__PURE__ */ o.jsx("span", { className: P.loader, "data-testid": "button-loader", "aria-hidden": "true" });
685
- const p = s === "extra-small", h = parseInt(String(a), 10), b = !isNaN(h) && h >= 0 && h <= 9;
686
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
687
- r && (a || p) && /* @__PURE__ */ o.jsx(
688
- "span",
689
- {
690
- "data-testid": "button-badge",
691
- className: V(
692
- P.badge,
693
- P[`badge${p ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
694
- { [P.circular]: b && !p }
695
- ),
696
- children: !p && a
697
- }
698
- ),
699
- _ && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
700
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
701
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: P.subcaption, children: d })
702
- ] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
703
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
704
- /* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: P.rightGroup, children: [
705
- i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i }),
706
- c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: P.postfix, children: c })
732
+ if (e && u)
733
+ return /* @__PURE__ */ n.jsx("span", { className: W.loader, "data-testid": "button-loader", "aria-hidden": "true" });
734
+ const c = r && u || r && !u && l, p = o && u && l !== "s" && l !== "xs";
735
+ return /* @__PURE__ */ n.jsxs(Oe, { children: [
736
+ p && /* @__PURE__ */ n.jsxs(Oe, { children: [
737
+ /* @__PURE__ */ n.jsx("span", { "data-testid": "button-label", className: W.label, children: s }),
738
+ /* @__PURE__ */ n.jsx("span", { "data-testid": "button-subcaption", className: W.subcaption, children: o })
739
+ ] }),
740
+ !p && s && /* @__PURE__ */ n.jsxs(Oe, { children: [
741
+ /* @__PURE__ */ n.jsxs("span", { "data-testid": "button-label", className: W.label, children: [
742
+ !u && a && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-left-icon", className: W.icon, children: a }),
743
+ s,
744
+ !u && r && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: I(W.icon, W.iconRight), children: r })
745
+ ] }),
746
+ u && /* @__PURE__ */ n.jsxs("div", { "data-testid": "button-right-group", className: W.rightGroup, children: [
747
+ c && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r }),
748
+ i && u && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-postfix", className: W.postfix, children: i })
707
749
  ] })
708
- ] }) : /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i })
750
+ ] }),
751
+ !p && !s && /* @__PURE__ */ n.jsx("span", { "data-testid": "button-icon", className: W.icon, children: r })
709
752
  ] });
710
- }, In = te((t, r) => {
753
+ }, si = X((e, r) => {
711
754
  const {
712
755
  mode: a = "primary",
713
756
  size: s = "m",
714
- buttonStyle: i = "neutral",
715
- loading: n = !1,
716
- disabled: c = !1,
717
- showBadge: _ = !1,
718
- badgeSize: d = "small",
719
- badgeValue: f,
720
- showSubcaption: p = !1,
721
- subcaption: h,
722
- stretched: b = !1,
723
- spaceBetween: y = !1,
724
- icon: x,
725
- postfix: M,
726
- className: S,
727
- children: C
728
- } = t, g = c, $ = n, k = !g && !$, D = !!x && !C, T = V(
729
- P.button,
730
- P[s],
731
- P[a],
732
- P[i],
757
+ buttonStyle: i = Me(e) ? "neutral" : "accent",
758
+ disabled: o = !1,
759
+ displayAs: l = "button",
760
+ iconRight: u,
761
+ className: c,
762
+ children: p,
763
+ tabIndex: h
764
+ } = e, m = Me(e) ? e.subcaption : void 0, b = Me(e) ? e.postfix : void 0, g = Me(e) ? e.stretched : void 0, y = !(tt(e) && e.size === void 0), S = tt(e) && y ? e.iconLeft : void 0, x = !!(l === "button" && "loading" in e && e.loading), C = Me(e) ? o : o || x, _ = !C && !x, L = y ? u : void 0, E = !!(L && !p), A = typeof g == "object" ? g.justify === "space-between" : void 0, j = tt(e) ? ir(e.size ?? "m") : void 0, T = j ? pe[j] : void 0, O = C || x ? -1 : h, U = I(
765
+ W.button,
766
+ W[s],
767
+ W[a],
768
+ W[i],
769
+ T,
733
770
  {
734
- [P.disabled]: g,
735
- [P.loading]: $,
736
- [P.stretched]: b,
737
- [P.spaceBetween]: y && b,
738
- [P.withSubcaption]: p && h && s !== "s" && s !== "xs",
739
- [P.iconOnly]: D
771
+ [W.disabled]: C,
772
+ [W.loading]: l === "button" && "loading" in e && e.loading,
773
+ [W.stretched]: g,
774
+ [W.spaceBetween]: A,
775
+ [W.withSubcaption]: m && s !== "s" && s !== "xs",
776
+ [W.iconOnly]: E,
777
+ [W.link]: l === "link",
778
+ [W.underline]: l === "link" && "showUnderline" in e && e.showUnderline
740
779
  },
741
- S
742
- ), A = {
743
- isLoading: $,
744
- showBadge: _,
745
- badgeValue: f,
746
- badgeSize: d,
747
- icon: x,
748
- children: C,
749
- postfix: M,
750
- showSubcaption: p,
751
- subcaption: h,
752
- size: s
780
+ c
781
+ ), B = {
782
+ isLoading: x,
783
+ iconRight: L,
784
+ iconLeft: S,
785
+ children: p,
786
+ postfix: b,
787
+ subcaption: m,
788
+ size: s,
789
+ isAsButton: Me(e)
753
790
  };
754
- if (ua(t)) {
755
- const {
756
- href: N,
757
- onClick: U,
758
- mode: q,
759
- size: z,
760
- buttonStyle: O,
761
- loading: m,
762
- disabled: j,
763
- showBadge: B,
764
- badgeSize: G,
765
- badgeValue: H,
766
- showSubcaption: Q,
767
- subcaption: ae,
768
- stretched: J,
769
- spaceBetween: re,
770
- icon: se,
771
- postfix: de,
772
- className: ve,
773
- tabIndex: ie,
774
- children: ye,
775
- "data-testid": ue,
776
- style: le,
777
- ...me
778
- } = t, _e = (xe) => {
779
- k && U && U(xe);
791
+ if (Ea(e)) {
792
+ const { href: z, onClick: N, style: v, target: $, rel: P, "data-testid": F, ...G } = e, Q = Lt(G), ne = $ ?? (e.isExternal ? "_blank" : void 0);
793
+ let Z = P;
794
+ if (ne === "_blank") {
795
+ const ee = new Set((P ?? "").split(/\s+/).filter(Boolean));
796
+ ee.add("noopener").add("noreferrer"), Z = Array.from(ee).join(" ");
797
+ }
798
+ const ie = (ee) => {
799
+ if (!_) {
800
+ ee.preventDefault();
801
+ return;
802
+ }
803
+ N == null || N(ee);
780
804
  };
781
- return /* @__PURE__ */ o.jsx(
805
+ return /* @__PURE__ */ n.jsx(
782
806
  "a",
783
807
  {
784
808
  ref: r,
785
- className: T,
786
- href: k ? N : void 0,
787
- tabIndex: t.tabIndex,
788
- onClick: _e,
789
- "data-testid": ue,
790
- "aria-disabled": g || $,
791
- style: le,
792
- ...me,
793
- children: /* @__PURE__ */ o.jsx(bt, { ...A })
809
+ className: U,
810
+ href: _ ? z : void 0,
811
+ tabIndex: O,
812
+ onClick: ie,
813
+ "data-testid": F,
814
+ "aria-disabled": C || x,
815
+ style: v,
816
+ target: ne,
817
+ rel: Z,
818
+ ...Q,
819
+ children: /* @__PURE__ */ n.jsx(Et, { ...B })
794
820
  }
795
821
  );
796
822
  }
797
- if (_a(t)) {
798
- const {
799
- type: N = "button",
800
- onClick: U,
801
- mode: q,
802
- size: z,
803
- buttonStyle: O,
804
- loading: m,
805
- disabled: j,
806
- showBadge: B,
807
- badgeSize: G,
808
- badgeValue: H,
809
- showSubcaption: Q,
810
- subcaption: ae,
811
- stretched: J,
812
- spaceBetween: re,
813
- icon: se,
814
- postfix: de,
815
- className: ve,
816
- tabIndex: ie,
817
- children: ye,
818
- "data-testid": ue,
819
- style: le,
820
- ...me
821
- } = t, _e = (xe) => {
822
- k && U && U(xe);
823
+ if (ka(e)) {
824
+ const { type: z = "button", onClick: N, style: v, "data-testid": $, ...P } = e, F = Lt(P), G = (Q) => {
825
+ _ && N && N(Q);
823
826
  };
824
- return /* @__PURE__ */ o.jsx(
827
+ return /* @__PURE__ */ n.jsx(
825
828
  "button",
826
829
  {
827
830
  ref: r,
828
- type: N,
829
- className: T,
830
- disabled: g,
831
- tabIndex: t.tabIndex,
832
- onClick: _e,
833
- "data-testid": ue,
834
- "aria-disabled": g || $,
835
- style: le,
836
- ...me,
837
- children: /* @__PURE__ */ o.jsx(bt, { ...A })
831
+ type: z,
832
+ className: U,
833
+ disabled: C,
834
+ tabIndex: O,
835
+ onClick: G,
836
+ "data-testid": $,
837
+ "aria-disabled": C || x,
838
+ style: v,
839
+ ...F,
840
+ children: /* @__PURE__ */ n.jsx(Et, { ...B })
838
841
  }
839
842
  );
840
843
  }
841
844
  return null;
842
845
  });
843
- var Je = { exports: {} };
846
+ var at = { exports: {} };
844
847
  /*!
845
848
  Copyright (c) 2018 Jed Watson.
846
849
  Licensed under the MIT License (MIT), see
847
850
  http://jedwatson.github.io/classnames
848
851
  */
849
- var yt;
850
- function Ga() {
851
- return yt || (yt = 1, function(t) {
852
+ var kt;
853
+ function lr() {
854
+ return kt || (kt = 1, function(e) {
852
855
  (function() {
853
856
  var r = {}.hasOwnProperty;
854
857
  function a() {
855
- for (var n = "", c = 0; c < arguments.length; c++) {
856
- var _ = arguments[c];
857
- _ && (n = i(n, s(_)));
858
+ for (var o = "", l = 0; l < arguments.length; l++) {
859
+ var u = arguments[l];
860
+ u && (o = i(o, s(u)));
858
861
  }
859
- return n;
862
+ return o;
860
863
  }
861
- function s(n) {
862
- if (typeof n == "string" || typeof n == "number")
863
- return n;
864
- if (typeof n != "object")
864
+ function s(o) {
865
+ if (typeof o == "string" || typeof o == "number")
866
+ return o;
867
+ if (typeof o != "object")
865
868
  return "";
866
- if (Array.isArray(n))
867
- return a.apply(null, n);
868
- if (n.toString !== Object.prototype.toString && !n.toString.toString().includes("[native code]"))
869
- return n.toString();
870
- var c = "";
871
- for (var _ in n)
872
- r.call(n, _) && n[_] && (c = i(c, _));
873
- return c;
869
+ if (Array.isArray(o))
870
+ return a.apply(null, o);
871
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]"))
872
+ return o.toString();
873
+ var l = "";
874
+ for (var u in o)
875
+ r.call(o, u) && o[u] && (l = i(l, u));
876
+ return l;
874
877
  }
875
- function i(n, c) {
876
- return c ? n ? n + " " + c : n + c : n;
878
+ function i(o, l) {
879
+ return l ? o ? o + " " + l : o + l : o;
877
880
  }
878
- t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
881
+ e.exports ? (a.default = a, e.exports = a) : window.classNames = a;
879
882
  })();
880
- }(Je)), Je.exports;
883
+ }(at)), at.exports;
881
884
  }
882
- var Za = Ga();
883
- const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1kyiq_41", Ka = "_icon_1kyiq_58", Xa = "_disabled_1kyiq_63", Qa = "_loading_1kyiq_68", er = "_image_1kyiq_74", tr = "_name_1kyiq_74", pe = {
884
- avatar: Ya,
885
- clickable: Ja,
886
- icon: Ka,
887
- disabled: Xa,
888
- loading: Qa,
889
- image: er,
890
- name: tr,
885
+ var cr = lr();
886
+ const Ce = /* @__PURE__ */ Ca(cr), dr = "_avatar_1kyiq_17", ur = "_clickable_1kyiq_41", _r = "_icon_1kyiq_58", pr = "_disabled_1kyiq_63", fr = "_loading_1kyiq_68", hr = "_image_1kyiq_74", gr = "_name_1kyiq_74", _e = {
887
+ avatar: dr,
888
+ clickable: ur,
889
+ icon: _r,
890
+ disabled: pr,
891
+ loading: fr,
892
+ image: hr,
893
+ name: gr,
891
894
  "variant-filled": "_variant-filled_1kyiq_126",
892
895
  "color-brand": "_color-brand_1kyiq_131",
893
896
  "color-red": "_color-red_1kyiq_135",
@@ -901,36 +904,12 @@ const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
901
904
  "color-contrast": "_color-contrast_1kyiq_167",
902
905
  "variant-light": "_variant-light_1kyiq_173",
903
906
  "variant-outline": "_variant-outline_1kyiq_245"
904
- }, Ae = {
905
- "typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
906
- "typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
907
- "typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
908
- "typography-title-4-semibold": "_typography-title-4-semibold_1lyxn_28",
909
- "typography-title-5-semibold": "_typography-title-5-semibold_1lyxn_37",
910
- "typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
911
- "typography-subtitle-2-semibold": "_typography-subtitle-2-semibold_1lyxn_53",
912
- "typography-subtitle-3-semibold": "_typography-subtitle-3-semibold_1lyxn_62",
913
- "typography-subtitle-4-semibold": "_typography-subtitle-4-semibold_1lyxn_71",
914
- "typography-label-1-medium": "_typography-label-1-medium_1lyxn_80",
915
- "typography-label-2-medium": "_typography-label-2-medium_1lyxn_89",
916
- "typography-label-3-medium": "_typography-label-3-medium_1lyxn_97",
917
- "typography-label-4-medium": "_typography-label-4-medium_1lyxn_106",
918
- "typography-label-5-medium": "_typography-label-5-medium_1lyxn_115",
919
- "typography-label-1-regular": "_typography-label-1-regular_1lyxn_124",
920
- "typography-label-2-regular": "_typography-label-2-regular_1lyxn_133",
921
- "typography-label-3-regular": "_typography-label-3-regular_1lyxn_141",
922
- "typography-label-4-regular": "_typography-label-4-regular_1lyxn_150",
923
- "typography-label-5-regular": "_typography-label-5-regular_1lyxn_159",
924
- "typography-paragraph-1-regular": "_typography-paragraph-1-regular_1lyxn_168",
925
- "typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
926
- "typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
927
- "typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
928
- }, mt = 99;
929
- function ar(t) {
930
- return t < mt ? `+${t}` : `${mt}+`;
907
+ }, jt = 99;
908
+ function br(e) {
909
+ return e < jt ? `+${e}` : `${jt}+`;
931
910
  }
932
- function et(t) {
933
- const r = typeof t == "string" ? t : JSON.stringify(t);
911
+ function it(e) {
912
+ const r = typeof e == "string" ? e : JSON.stringify(e);
934
913
  let a = 5381;
935
914
  for (let s = 0; s < r.length; s++) {
936
915
  const i = r.charCodeAt(s);
@@ -938,7 +917,7 @@ function et(t) {
938
917
  }
939
918
  return a >>> 0;
940
919
  }
941
- const rr = [
920
+ const mr = [
942
921
  "red",
943
922
  "orange",
944
923
  "yellow",
@@ -947,18 +926,18 @@ const rr = [
947
926
  "lightblue",
948
927
  "purple"
949
928
  ];
950
- function sr(t, r = rr) {
951
- if (!t) return "gray";
952
- const a = et(t), s = Math.abs(a) % r.length;
929
+ function yr(e, r = mr) {
930
+ if (!e) return "gray";
931
+ const a = it(e), s = Math.abs(a) % r.length;
953
932
  return r[s];
954
933
  }
955
- const vt = 2;
956
- function nr(t) {
957
- if (!t) return "";
958
- const r = t.trim().split(/\s+/);
959
- return r.length === 1 ? t.slice(0, vt).toUpperCase() : r.map((a) => a[0]).slice(0, vt).join("").toUpperCase();
934
+ const $t = 2;
935
+ function vr(e) {
936
+ if (!e) return "";
937
+ const r = e.trim().split(/\s+/);
938
+ return r.length === 1 ? e.slice(0, $t).toUpperCase() : r.map((a) => a[0]).slice(0, $t).join("").toUpperCase();
960
939
  }
961
- const or = {
940
+ const xr = {
962
941
  24: 8,
963
942
  32: 12,
964
943
  40: 12,
@@ -969,10 +948,10 @@ const or = {
969
948
  96: 24,
970
949
  208: 8
971
950
  };
972
- function jt(t, r) {
973
- return r === "circle" ? t / 2 : or[t] || 12;
951
+ function Bt(e, r) {
952
+ return r === "circle" ? e / 2 : xr[e] || 12;
974
953
  }
975
- const ir = {
954
+ const Cr = {
976
955
  24: "typography-subtitle-4-semibold",
977
956
  32: "typography-subtitle-2-semibold",
978
957
  40: "typography-subtitle-1-semibold",
@@ -983,198 +962,198 @@ const ir = {
983
962
  96: "typography-title-3-semibold",
984
963
  208: "typography-title-1-semibold"
985
964
  };
986
- function lr(t) {
987
- return ir[t] || "typography-subtitle-1-semibold";
965
+ function wr(e) {
966
+ return Cr[e] || "typography-subtitle-1-semibold";
988
967
  }
989
- const cr = "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", dr = "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", ur = "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", _r = "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", pr = {
990
- male: cr,
991
- female: dr,
992
- org: _r,
993
- neutral: ur
994
- }, Fe = te((t, r) => {
968
+ const Sr = "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", Er = "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", kr = "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", jr = {
969
+ male: Sr,
970
+ female: Lr,
971
+ org: kr,
972
+ neutral: Er
973
+ }, Ge = X((e, r) => {
995
974
  const {
996
975
  style: a,
997
976
  size: s = 40,
998
977
  isLoading: i = !1,
999
- isDisabled: n = !1,
1000
- shape: c = "circle",
1001
- variant: _ = "filled",
1002
- placeholderType: d = "neutral",
1003
- name: f,
1004
- imgSrc: p,
1005
- imgAlt: h,
978
+ isDisabled: o = !1,
979
+ shape: l = "circle",
980
+ variant: u = "filled",
981
+ placeholderType: c = "neutral",
982
+ name: p,
983
+ imgSrc: h,
984
+ imgAlt: m,
1006
985
  icon: b,
1007
- imgProps: y,
1008
- colorScheme: x,
1009
- className: M,
1010
- "data-testid": S,
986
+ imgProps: g,
987
+ colorScheme: y,
988
+ className: S,
989
+ "data-testid": x,
1011
990
  ...C
1012
- } = t, { onClick: g, onPointerDown: $ } = C, D = !n && !i && (!!g || !!$), [T, A] = Ne(!1);
1013
- Ee(() => {
1014
- p && A(!1);
1015
- }, [p]);
1016
- const N = p && !T ? "image" : b ? "icon" : f ? "name" : "placeholder", U = x || N === "name" && sr(f) || "gray", q = lr(s), z = jt(s, c), O = V(
1017
- M,
1018
- pe.avatar,
1019
- pe[`variant-${_}`],
1020
- pe[`color-${U}`],
1021
- Ae[q],
991
+ } = e, { onClick: _, onPointerDown: L } = C, A = !o && !i && (!!_ || !!L), [j, T] = ye(!1);
992
+ ue(() => {
993
+ h && T(!1);
994
+ }, [h]);
995
+ const O = h && !j ? "image" : b ? "icon" : p ? "name" : "placeholder", U = y || O === "name" && yr(p) || "gray", B = wr(s), z = Bt(s, l), N = I(
996
+ S,
997
+ _e.avatar,
998
+ _e[`variant-${u}`],
999
+ _e[`color-${U}`],
1000
+ pe[B],
1022
1001
  {
1023
- [pe.disabled]: n,
1024
- [pe.loading]: i,
1025
- [pe.clickable]: D
1002
+ [_e.disabled]: o,
1003
+ [_e.loading]: i,
1004
+ [_e.clickable]: A
1026
1005
  }
1027
- ), m = {
1006
+ ), v = {
1028
1007
  "--avatar-size": `${s}px`,
1029
1008
  "--avatar-border-radius": `${z}px`,
1030
1009
  ...a
1031
- }, j = {
1032
- icon: () => /* @__PURE__ */ o.jsx("span", { "data-testid": "avatar-icon", title: h || void 0, role: "img", className: pe.icon, children: b == null ? void 0 : b({}) }),
1033
- name: () => /* @__PURE__ */ o.jsx(
1010
+ }, $ = {
1011
+ icon: () => /* @__PURE__ */ n.jsx("span", { "data-testid": "avatar-icon", title: m || void 0, role: "img", className: _e.icon, children: b == null ? void 0 : b({}) }),
1012
+ name: () => /* @__PURE__ */ n.jsx(
1034
1013
  "span",
1035
1014
  {
1036
1015
  role: "textbox",
1037
1016
  "data-testid": "avatar-name",
1038
- className: pe.name,
1039
- title: h || void 0,
1040
- children: nr(f || "")
1017
+ className: _e.name,
1018
+ title: m || void 0,
1019
+ children: vr(p || "")
1041
1020
  }
1042
1021
  ),
1043
- placeholder: () => /* @__PURE__ */ o.jsx(
1022
+ placeholder: () => /* @__PURE__ */ n.jsx(
1044
1023
  "img",
1045
1024
  {
1046
- ...y,
1025
+ ...g,
1047
1026
  "data-testid": "avatar-placeholder",
1048
- className: pe.image,
1049
- src: pr[d],
1050
- alt: h || void 0
1027
+ className: _e.image,
1028
+ src: jr[c],
1029
+ alt: m || void 0
1051
1030
  }
1052
1031
  ),
1053
- image: () => /* @__PURE__ */ o.jsx(
1032
+ image: () => /* @__PURE__ */ n.jsx(
1054
1033
  "img",
1055
1034
  {
1056
1035
  "data-testid": "avatar-image",
1057
- ...y,
1058
- className: pe.image,
1059
- src: p || void 0,
1060
- alt: h || void 0,
1061
- onLoad: () => A(!1),
1062
- onError: (G) => {
1063
- var H;
1064
- A(!0), (H = y == null ? void 0 : y.onError) == null || H.call(y, G);
1036
+ ...g,
1037
+ className: _e.image,
1038
+ src: h || void 0,
1039
+ alt: m || void 0,
1040
+ onLoad: () => T(!1),
1041
+ onError: (F) => {
1042
+ var G;
1043
+ T(!0), (G = g == null ? void 0 : g.onError) == null || G.call(g, F);
1065
1044
  }
1066
1045
  }
1067
1046
  )
1068
- }, B = (G) => {
1069
- D && (g == null || g(G));
1047
+ }, P = (F) => {
1048
+ A && (_ == null || _(F));
1070
1049
  };
1071
- return /* @__PURE__ */ o.jsx(
1050
+ return /* @__PURE__ */ n.jsx(
1072
1051
  "div",
1073
1052
  {
1074
1053
  ref: r,
1075
- onClick: B,
1076
- className: O,
1077
- style: m,
1078
- "data-testid": S,
1079
- "aria-disabled": n || i,
1080
- children: j[N](null)
1054
+ onClick: P,
1055
+ className: N,
1056
+ style: v,
1057
+ "data-testid": x,
1058
+ "aria-disabled": o || i,
1059
+ children: $[O](null)
1081
1060
  }
1082
1061
  );
1083
- }), fr = "_avatarGroup_157g4_1", gr = {
1084
- avatarGroup: fr
1062
+ }), $r = "_avatarGroup_157g4_1", Rr = {
1063
+ avatarGroup: $r
1085
1064
  };
1086
- let hr = (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), "");
1087
- function br(t, r, a, s, i, n, c) {
1088
- const _ = Math.min(i, n) / 2, d = Math.min(c, _), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), p = [
1089
- `M${a + d},${s}`,
1090
- `L${a + i - d},${s}`,
1065
+ let Mr = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((r, a) => (a &= 63, a < 36 ? r += a.toString(36) : a < 62 ? r += (a - 26).toString(36).toUpperCase() : a > 62 ? r += "-" : r += "_", r), "");
1066
+ function Ir(e, r, a, s, i, o, l) {
1067
+ const u = Math.min(i, o) / 2, c = Math.min(l, u), p = ["M0,0", `H${e}`, `V${r}`, "H0", "V0", "Z"].join(" "), h = [
1068
+ `M${a + c},${s}`,
1069
+ `L${a + i - c},${s}`,
1091
1070
  // Верхний правый угол
1092
- `A${d},${d} 0 0 1 ${a + i},${s + d}`,
1093
- `L${a + i},${s + n - d}`,
1071
+ `A${c},${c} 0 0 1 ${a + i},${s + c}`,
1072
+ `L${a + i},${s + o - c}`,
1094
1073
  // Нижний правый угол
1095
- `A${d},${d} 0 0 1 ${a + i - d},${s + n}`,
1096
- `L${a + d},${s + n}`,
1074
+ `A${c},${c} 0 0 1 ${a + i - c},${s + o}`,
1075
+ `L${a + c},${s + o}`,
1097
1076
  // Нижний левый угол
1098
- `A${d},${d} 0 0 1 ${a},${s + n - d}`,
1099
- `L${a},${s + d}`,
1077
+ `A${c},${c} 0 0 1 ${a},${s + o - c}`,
1078
+ `L${a},${s + c}`,
1100
1079
  // Верхний левый угол
1101
- `A${d},${d} 0 0 1 ${a + d},${s}`,
1080
+ `A${c},${c} 0 0 1 ${a + c},${s}`,
1102
1081
  "Z"
1103
1082
  ].join(" ");
1104
- return `${f} ${p}`;
1083
+ return `${p} ${h}`;
1105
1084
  }
1106
- const yr = 3, mr = (t) => {
1085
+ const Tr = 3, Ar = (e) => {
1107
1086
  const {
1108
1087
  avatars: r = [],
1109
1088
  size: a = 40,
1110
1089
  overlap: s = 0.3,
1111
1090
  shape: i = "circle",
1112
- overflowCount: n = 0,
1113
- overflowProps: c
1114
- } = t, _ = a * s, d = -_ + yr, f = jt(a, i), h = ze(hr()).current.toString(), b = Ie(gr.avatarGroup), y = br(
1091
+ overflowCount: o = 0,
1092
+ overflowProps: l
1093
+ } = e, u = a * s, c = -u + Tr, p = Bt(a, i), m = qe(Mr()).current.toString(), b = Ce(Rr.avatarGroup), g = Ir(
1115
1094
  a,
1116
1095
  a,
1117
- a - _,
1096
+ a - u,
1118
1097
  // X-координата начала выреза
1119
1098
  0,
1120
1099
  // Y-координата начала выреза
1121
1100
  a,
1122
1101
  a,
1123
- f
1102
+ p
1124
1103
  );
1125
- return r.length === 0 ? null : /* @__PURE__ */ o.jsxs("div", { className: b, children: [
1126
- r.map((x, M, S) => {
1127
- const C = M + 1 >= S.length;
1128
- if (x.wrapper) {
1129
- const g = x.wrapper;
1130
- return /* @__PURE__ */ o.jsx(
1104
+ return r.length === 0 ? null : /* @__PURE__ */ n.jsxs("div", { className: b, children: [
1105
+ r.map((y, S, x) => {
1106
+ const C = S + 1 >= x.length;
1107
+ if (y.wrapper) {
1108
+ const _ = y.wrapper;
1109
+ return /* @__PURE__ */ n.jsx(
1131
1110
  "div",
1132
1111
  {
1133
1112
  style: {
1134
1113
  // Для последнего видимого аватара без overflowCount не применяем обрезку
1135
- clipPath: C && !n ? void 0 : `url(#${h})`,
1136
- marginRight: d
1114
+ clipPath: C && !o ? void 0 : `url(#${m})`,
1115
+ marginRight: c
1137
1116
  },
1138
- children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x }) })
1117
+ children: /* @__PURE__ */ n.jsx(_, { children: /* @__PURE__ */ n.jsx(Ge, { size: a, shape: i, ...y }) })
1139
1118
  },
1140
- et(x) + M
1119
+ it(y) + S
1141
1120
  );
1142
1121
  }
1143
- return /* @__PURE__ */ o.jsx(
1122
+ return /* @__PURE__ */ n.jsx(
1144
1123
  "div",
1145
1124
  {
1146
1125
  style: {
1147
1126
  // Для последнего видимого аватара без overflowCount не применяем обрезку
1148
- clipPath: C && !n ? void 0 : `url(#${h})`,
1149
- marginRight: d
1127
+ clipPath: C && !o ? void 0 : `url(#${m})`,
1128
+ marginRight: c
1150
1129
  },
1151
- children: /* @__PURE__ */ o.jsx(Fe, { size: a, shape: i, ...x })
1130
+ children: /* @__PURE__ */ n.jsx(Ge, { size: a, shape: i, ...y })
1152
1131
  },
1153
- et(x) + M
1132
+ it(y) + S
1154
1133
  );
1155
1134
  }),
1156
- n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
1157
- Fe,
1135
+ o > 0 && /* @__PURE__ */ n.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ n.jsx(
1136
+ Ge,
1158
1137
  {
1159
1138
  size: a,
1160
1139
  shape: i,
1161
- icon: () => ar(n),
1140
+ icon: () => br(o),
1162
1141
  colorScheme: "gray",
1163
1142
  variant: "light",
1164
- ...c
1143
+ ...l
1165
1144
  }
1166
1145
  ) }),
1167
- /* @__PURE__ */ o.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ o.jsx("clipPath", { id: `${h}`, children: /* @__PURE__ */ o.jsx("path", { clipPathUnits: "objectBoundingBox", d: y, clipRule: "evenodd" }) }) })
1146
+ /* @__PURE__ */ n.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ n.jsx("clipPath", { id: `${m}`, children: /* @__PURE__ */ n.jsx("path", { clipPathUnits: "objectBoundingBox", d: g, clipRule: "evenodd" }) }) })
1168
1147
  ] });
1169
- }, Rn = Object.assign(Fe, {
1170
- Group: mr
1171
- }), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", fe = {
1172
- wrapper: vr,
1173
- badge__container: xr,
1174
- badge__content: Cr,
1175
- interactive: wr,
1176
- disabled: Sr,
1177
- icon: Er,
1148
+ }, ni = Object.assign(Ge, {
1149
+ Group: Ar
1150
+ }), Nr = "_wrapper_ecbsu_5", Dr = "_badge__container_ecbsu_6", Or = "_badge__content_ecbsu_7", Pr = "_interactive_ecbsu_20", qr = "_disabled_ecbsu_21", Ur = "_icon_ecbsu_22", he = {
1151
+ wrapper: Nr,
1152
+ badge__container: Dr,
1153
+ badge__content: Or,
1154
+ interactive: Pr,
1155
+ disabled: qr,
1156
+ icon: Ur,
1178
1157
  "variant-filled": "_variant-filled_ecbsu_102",
1179
1158
  "color-brand": "_color-brand_ecbsu_107",
1180
1159
  "color-red": "_color-red_ecbsu_111",
@@ -1206,129 +1185,154 @@ const yr = 3, mr = (t) => {
1206
1185
  "position-bottom-center-inside": "_position-bottom-center-inside_ecbsu_447",
1207
1186
  "position-middle-left-inside": "_position-middle-left-inside_ecbsu_453",
1208
1187
  "position-middle-right-inside": "_position-middle-right-inside_ecbsu_459"
1209
- }, Lr = (t) => t === "rgba(0, 0, 0, 0)" || t === "transparent" || t.startsWith("rgba") && t.endsWith(", 0)"), Mr = (t) => {
1210
- if (!t) return null;
1211
- let r = t;
1188
+ }, Br = (e) => e === "rgba(0, 0, 0, 0)" || e === "transparent" || e.startsWith("rgba") && e.endsWith(", 0)"), Fr = (e) => {
1189
+ if (!e) return null;
1190
+ let r = e;
1212
1191
  for (; r; ) {
1213
1192
  const s = window.getComputedStyle(r).backgroundColor;
1214
- if (!Lr(s)) return s;
1193
+ if (!Br(s)) return s;
1215
1194
  r = r.parentElement;
1216
1195
  }
1217
1196
  return null;
1218
- }, $r = () => {
1219
- const t = ze(null), [r, a] = Ne(null);
1220
- return Ee(() => {
1221
- if (t.current) {
1222
- const s = Mr(t.current);
1197
+ }, Ft = () => {
1198
+ const e = qe(null), [r, a] = ye(null);
1199
+ return ue(() => {
1200
+ if (e.current) {
1201
+ const s = Fr(e.current);
1223
1202
  a(s);
1224
1203
  }
1225
- }, []), { ref: t, bgColor: r };
1226
- }, kn = te((t, r) => {
1204
+ }, []), { ref: e, bgColor: r };
1205
+ };
1206
+ function Rt(e, r, a) {
1207
+ ue(() => {
1208
+ const s = r;
1209
+ return window.addEventListener(e, s, a), () => {
1210
+ window.removeEventListener(e, s, a);
1211
+ };
1212
+ }, [e, r, a]);
1213
+ }
1214
+ const Mt = {
1215
+ passive: !0
1216
+ };
1217
+ function zr() {
1218
+ const [e, r] = ye({
1219
+ width: 0,
1220
+ height: 0
1221
+ }), a = xe(() => {
1222
+ r({ width: window.innerWidth || 0, height: window.innerHeight || 0 });
1223
+ }, []);
1224
+ return Rt("resize", a, Mt), Rt("orientationchange", a, Mt), ue(a, []), e;
1225
+ }
1226
+ function Wr(e = 768) {
1227
+ const { width: r } = zr();
1228
+ return ya(() => r <= e, [r, e]);
1229
+ }
1230
+ const Gr = X((e, r) => {
1227
1231
  const {
1228
1232
  icon: a,
1229
1233
  children: s,
1230
1234
  variant: i = "filled",
1231
- label: n,
1232
- isHidden: c = !1,
1233
- colorScheme: _ = "red",
1234
- size: d = 20,
1235
- position: f = "top-right",
1236
- positionOffset: p = { x: 0, y: 0 },
1237
- cutoutBackground: h,
1235
+ label: o,
1236
+ isHidden: l = !1,
1237
+ colorScheme: u = "red",
1238
+ size: c = 20,
1239
+ position: p = "top-right",
1240
+ positionOffset: h = { x: 0, y: 0 },
1241
+ cutoutBackground: m,
1238
1242
  isDisabled: b,
1239
- className: y,
1240
- "data-testid": x = "badge",
1241
- ...M
1242
- } = t, { onClick: S, onPointerDown: C } = M, { ref: g, bgColor: $ } = $r(), k = h || $, T = !b && (!!S || !!C), A = Ie(fe.badge__container, fe[`position-${f}`]), N = Ie(
1243
- y,
1244
- fe.badge__content,
1245
- fe[`color-${_}`],
1246
- fe[`variant-${i}`],
1243
+ className: g,
1244
+ "data-testid": y = "badge",
1245
+ ...S
1246
+ } = e, { onClick: x, onPointerDown: C } = S, { ref: _, bgColor: L } = Ft(), E = m || L, j = !b && (!!x || !!C), T = Ce(he.badge__container, he[`position-${p}`]), O = Ce(
1247
+ g,
1248
+ he.badge__content,
1249
+ he[`color-${u}`],
1250
+ he[`variant-${i}`],
1247
1251
  {
1248
- [fe.disabled]: b,
1249
- [fe.icon]: !!a,
1250
- [fe.interactive]: T
1252
+ [he.disabled]: b,
1253
+ [he.icon]: !!a,
1254
+ [he.interactive]: j
1251
1255
  }
1252
1256
  ), U = {
1253
- "--badge-height": `${d}px`,
1254
- "--badge-offset-x": `${p.x}px`,
1255
- "--badge-offset-y": `${p.y}px`,
1256
- ...k && { "--badge-cutout-bg": k },
1257
+ "--badge-height": `${c}px`,
1258
+ "--badge-offset-x": `${h.x}px`,
1259
+ "--badge-offset-y": `${h.y}px`,
1260
+ ...E && { "--badge-cutout-bg": E },
1257
1261
  ...i === "transparent" && { "--badge-cutout-bg": "transparent" }
1258
- }, q = (a == null ? void 0 : a({})) || n, z = (O) => {
1259
- T && (S == null || S(O));
1262
+ }, B = (a == null ? void 0 : a({})) || o, z = (N) => {
1263
+ j && (x == null || x(N));
1260
1264
  };
1261
- return /* @__PURE__ */ o.jsxs("div", { className: fe.wrapper, ref: g, "data-testid": x + "-wrapper", children: [
1265
+ return /* @__PURE__ */ n.jsxs("div", { className: he.wrapper, ref: _, "data-testid": y + "-wrapper", children: [
1262
1266
  s,
1263
- !c && /* @__PURE__ */ o.jsx(
1267
+ !l && /* @__PURE__ */ n.jsx(
1264
1268
  "span",
1265
1269
  {
1266
- className: A,
1270
+ className: T,
1267
1271
  style: U,
1268
- "data-testid": x + "-container",
1269
- children: /* @__PURE__ */ o.jsx(
1272
+ "data-testid": y + "-container",
1273
+ children: /* @__PURE__ */ n.jsx(
1270
1274
  "span",
1271
1275
  {
1272
- ...M,
1276
+ ...S,
1273
1277
  onClick: z,
1274
- className: N,
1275
- "data-testid": x + "-content",
1278
+ className: O,
1279
+ "data-testid": y + "-content",
1276
1280
  ref: r,
1277
1281
  "aria-disabled": b,
1278
- children: q
1282
+ children: B
1279
1283
  }
1280
1284
  )
1281
1285
  }
1282
1286
  )
1283
1287
  ] });
1284
- }), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34", Ke = {
1285
- container: jr,
1286
- image: Ir,
1287
- loading: Rr
1288
- }, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57", Te = {
1289
- loader: kr,
1290
- spin: Tr,
1291
- accent: Ar,
1292
- neutral: Nr,
1293
- positive: Dr,
1294
- negative: Or,
1295
- gray: Ur,
1296
- special: Br,
1297
- contrast: Fr,
1298
- container: Pr,
1299
- overlay: zr,
1288
+ }), Hr = "_container_op5yl_7", Vr = "_image_op5yl_22", Zr = "_loading_op5yl_34", rt = {
1289
+ container: Hr,
1290
+ image: Vr,
1291
+ loading: Zr
1292
+ }, Yr = "_loader_isv17_1", Kr = "_spin_isv17_1", Jr = "_accent_isv17_19", Xr = "_neutral_isv17_23", Qr = "_positive_isv17_27", es = "_negative_isv17_31", ts = "_gray_isv17_35", as = "_special_isv17_39", rs = "_contrast_isv17_43", ss = "_container_isv17_47", ns = "_overlay_isv17_57", Pe = {
1293
+ loader: Yr,
1294
+ spin: Kr,
1295
+ accent: Jr,
1296
+ neutral: Xr,
1297
+ positive: Qr,
1298
+ negative: es,
1299
+ gray: ts,
1300
+ special: as,
1301
+ contrast: rs,
1302
+ container: ss,
1303
+ overlay: ns,
1300
1304
  "size-16": "_size-16_isv17_72",
1301
1305
  "size-24": "_size-24_isv17_76",
1302
1306
  "size-48": "_size-48_isv17_80",
1303
1307
  "size-64": "_size-64_isv17_84",
1304
1308
  "size-96": "_size-96_isv17_88"
1305
- }, It = te(
1309
+ }, zt = X(
1306
1310
  ({
1307
- size: t = 24,
1311
+ size: e = 24,
1308
1312
  variant: r = "accent",
1309
1313
  className: a,
1310
1314
  "data-testid": s = "loader",
1311
1315
  style: i,
1312
- ...n
1313
- }, c) => {
1314
- const _ = Ie(
1315
- Te.loader,
1316
- Te[r],
1317
- Te[`size-${t}`],
1316
+ ...o
1317
+ }, l) => {
1318
+ const u = Ce(
1319
+ Pe.loader,
1320
+ Pe[r],
1321
+ Pe[`size-${e}`],
1318
1322
  a
1319
1323
  );
1320
- return /* @__PURE__ */ o.jsx(
1324
+ return /* @__PURE__ */ n.jsx(
1321
1325
  "svg",
1322
1326
  {
1323
- ref: c,
1324
- className: _,
1327
+ ref: l,
1328
+ className: u,
1325
1329
  fill: "none",
1326
1330
  viewBox: "0 0 16 16",
1327
1331
  xmlns: "http://www.w3.org/2000/svg",
1328
1332
  "data-testid": s,
1329
1333
  style: i,
1330
- ...n,
1331
- children: /* @__PURE__ */ o.jsx(
1334
+ ...o,
1335
+ children: /* @__PURE__ */ n.jsx(
1332
1336
  "path",
1333
1337
  {
1334
1338
  d: "M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",
@@ -1340,38 +1344,38 @@ const yr = 3, mr = (t) => {
1340
1344
  }
1341
1345
  );
1342
1346
  }
1343
- ), Wr = te((t, r) => {
1347
+ ), os = X((e, r) => {
1344
1348
  const {
1345
1349
  loading: a = !1,
1346
1350
  size: s = 24,
1347
1351
  variant: i = "accent",
1348
- children: n,
1349
- className: c,
1350
- style: _,
1351
- "data-testid": d,
1352
- ...f
1353
- } = t, p = Ie(Te.container, c);
1354
- return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
1355
- n,
1356
- a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
1352
+ children: o,
1353
+ className: l,
1354
+ style: u,
1355
+ "data-testid": c,
1356
+ ...p
1357
+ } = e, h = Ce(Pe.container, l);
1358
+ return /* @__PURE__ */ n.jsxs("div", { ref: r, className: h, style: u, "data-testid": c, ...p, children: [
1359
+ o,
1360
+ a && /* @__PURE__ */ n.jsx("div", { className: Pe.overlay, children: /* @__PURE__ */ n.jsx(zt, { size: s, variant: i, "data-testid": `${c}-spinner` }) })
1357
1361
  ] });
1358
- }), Vr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
1359
- Wr,
1362
+ }), is = X((e, r) => e.children ? /* @__PURE__ */ n.jsx(
1363
+ os,
1360
1364
  {
1361
1365
  ref: r,
1362
- ...t
1366
+ ...e
1363
1367
  }
1364
- ) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), Hr = ({ width: t = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ o.jsx(
1368
+ ) : /* @__PURE__ */ n.jsx(zt, { ref: r, ...e })), ls = ({ width: e = 48, height: r = 48, className: a, "data-testid": s }) => /* @__PURE__ */ n.jsx(
1365
1369
  "svg",
1366
1370
  {
1367
- width: t,
1371
+ width: e,
1368
1372
  height: r,
1369
1373
  viewBox: "0 0 48 48",
1370
1374
  fill: "none",
1371
1375
  xmlns: "http://www.w3.org/2000/svg",
1372
1376
  className: a,
1373
1377
  "data-testid": s,
1374
- children: /* @__PURE__ */ o.jsx(
1378
+ children: /* @__PURE__ */ n.jsx(
1375
1379
  "path",
1376
1380
  {
1377
1381
  d: "M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",
@@ -1382,183 +1386,183 @@ const yr = 3, mr = (t) => {
1382
1386
  }
1383
1387
  )
1384
1388
  }
1385
- ), Tn = te((t, r) => {
1389
+ ), oi = X((e, r) => {
1386
1390
  const {
1387
1391
  alt: a = "",
1388
1392
  loading: s = "lazy",
1389
1393
  src: i,
1390
- isLoading: n = !1,
1391
- className: c,
1392
- "data-testid": _ = "image",
1393
- onError: d,
1394
- onLoad: f,
1395
- ...p
1396
- } = t, [h, b] = Ne("loading"), y = h === "error", x = (n || h === "loading") && !y, M = h === "loaded" && !n, S = Ie(
1397
- Ke.image,
1394
+ isLoading: o = !1,
1395
+ className: l,
1396
+ "data-testid": u = "image",
1397
+ onError: c,
1398
+ onLoad: p,
1399
+ ...h
1400
+ } = e, [m, b] = ye("loading"), g = m === "error", y = (o || m === "loading") && !g, S = m === "loaded" && !o, x = Ce(
1401
+ rt.image,
1398
1402
  {
1399
- [Ke.loading]: x
1403
+ [rt.loading]: y
1400
1404
  },
1401
- c
1402
- ), C = Se(
1403
- (k) => {
1404
- b("loaded"), f == null || f(k);
1405
+ l
1406
+ ), C = xe(
1407
+ (E) => {
1408
+ b("loaded"), p == null || p(E);
1405
1409
  },
1406
- [f]
1407
- ), g = Se(
1408
- (k) => {
1409
- b("error"), d == null || d(k);
1410
+ [p]
1411
+ ), _ = xe(
1412
+ (E) => {
1413
+ b("error"), c == null || c(E);
1410
1414
  },
1411
- [d]
1412
- ), $ = {
1413
- loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
1414
- /* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
1415
- /* @__PURE__ */ o.jsx(
1415
+ [c]
1416
+ ), L = {
1417
+ loader: /* @__PURE__ */ n.jsxs(Oe, { children: [
1418
+ /* @__PURE__ */ n.jsx(is, { size: 48, variant: "special", "data-testid": `${u}-loader` }),
1419
+ /* @__PURE__ */ n.jsx(
1416
1420
  "img",
1417
1421
  {
1418
1422
  alt: a,
1419
1423
  src: i,
1420
1424
  onLoad: C,
1421
- onError: g,
1425
+ onError: _,
1422
1426
  style: { display: "none" }
1423
1427
  }
1424
1428
  )
1425
1429
  ] }),
1426
- error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${_}-fallback` }),
1427
- image: /* @__PURE__ */ o.jsx(
1430
+ error: /* @__PURE__ */ n.jsx(ls, { "data-testid": `${u}-fallback` }),
1431
+ image: /* @__PURE__ */ n.jsx(
1428
1432
  "img",
1429
1433
  {
1430
1434
  ref: r,
1431
1435
  alt: a,
1432
- "data-testid": _,
1436
+ "data-testid": u,
1433
1437
  loading: s,
1434
1438
  src: i,
1435
- className: S
1439
+ className: x
1436
1440
  }
1437
1441
  )
1438
1442
  };
1439
- return Ee(() => {
1443
+ return ue(() => {
1440
1444
  if (!i) {
1441
1445
  b("error");
1442
1446
  return;
1443
1447
  }
1444
1448
  b("loading");
1445
- }, [i]), /* @__PURE__ */ o.jsxs("div", { className: Ke.container, "data-testid": `${_}-container`, ...p, children: [
1446
- x && $.loader,
1447
- y && $.error,
1448
- M && $.image
1449
+ }, [i]), /* @__PURE__ */ n.jsxs("div", { className: rt.container, "data-testid": `${u}-container`, ...h, children: [
1450
+ y && L.loader,
1451
+ g && L.error,
1452
+ S && L.image
1449
1453
  ] });
1450
- }), qr = {}, Rt = ra({
1451
- locale: qr
1452
- }), Gr = () => {
1453
- const t = sa(Rt);
1454
- if (!t)
1454
+ }), cs = {}, Wt = Pt({
1455
+ locale: cs
1456
+ }), ds = () => {
1457
+ const e = qt(Wt);
1458
+ if (!e)
1455
1459
  throw new Error("useConfig must be used within a ConfigProvider");
1456
- return t;
1457
- }, An = () => {
1458
- const { locale: t } = Gr();
1459
- return t;
1460
- }, Zr = {}, Yr = {}, Jr = {}, Nn = ({
1461
- locale: t = {},
1460
+ return e;
1461
+ }, ii = () => {
1462
+ const { locale: e } = ds();
1463
+ return e;
1464
+ }, us = {}, _s = {}, ps = {}, li = ({
1465
+ locale: e = {},
1462
1466
  theme: r,
1463
1467
  children: a,
1464
1468
  className: s
1465
- }) => (na(() => {
1469
+ }) => (va(() => {
1466
1470
  if (r) {
1467
1471
  const i = document.documentElement;
1468
- Object.entries(r).forEach(([n, c]) => {
1469
- i.style.setProperty(n, c);
1472
+ Object.entries(r).forEach(([o, l]) => {
1473
+ i.style.setProperty(o, l);
1470
1474
  });
1471
1475
  }
1472
- }, [r]), /* @__PURE__ */ o.jsxs(Mt, { children: [
1473
- /* @__PURE__ */ o.jsx(
1476
+ }, [r]), /* @__PURE__ */ n.jsxs(Oe, { children: [
1477
+ /* @__PURE__ */ n.jsx(
1474
1478
  "div",
1475
1479
  {
1476
1480
  "data-testid": "ConfigProvider-component",
1477
- className: V(Zr, Yr, Jr, s)
1481
+ className: I(us, _s, ps, s)
1478
1482
  }
1479
1483
  ),
1480
- /* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
1481
- ] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96", _s = "_dreamy_1llsi_102", we = {
1482
- tag: Kr,
1483
- label: Xr,
1484
- iconWrapper: Qr,
1485
- medium: es,
1486
- large: ts,
1487
- disabled: as,
1488
- neutral: rs,
1489
- positive: ss,
1490
- negative: ns,
1491
- warning: os,
1492
- vivid: is,
1493
- special: ls,
1494
- accent: cs,
1495
- blue: ds,
1496
- lovely: us,
1497
- dreamy: _s
1498
- }, On = te((t, r) => {
1484
+ /* @__PURE__ */ n.jsx(Wt.Provider, { value: { locale: e }, children: a })
1485
+ ] })), ci = {}, fs = "_tag_1llsi_1", hs = "_label_1llsi_16", gs = "_iconWrapper_1llsi_20", bs = "_medium_1llsi_27", ms = "_large_1llsi_33", ys = "_disabled_1llsi_43", vs = "_neutral_1llsi_47", xs = "_positive_1llsi_53", Cs = "_negative_1llsi_59", ws = "_warning_1llsi_65", Ss = "_vivid_1llsi_71", Ls = "_special_1llsi_77", Es = "_accent_1llsi_84", ks = "_blue_1llsi_90", js = "_lovely_1llsi_96", $s = "_dreamy_1llsi_102", Le = {
1486
+ tag: fs,
1487
+ label: hs,
1488
+ iconWrapper: gs,
1489
+ medium: bs,
1490
+ large: ms,
1491
+ disabled: ys,
1492
+ neutral: vs,
1493
+ positive: xs,
1494
+ negative: Cs,
1495
+ warning: ws,
1496
+ vivid: Ss,
1497
+ special: Ls,
1498
+ accent: Es,
1499
+ blue: ks,
1500
+ lovely: js,
1501
+ dreamy: $s
1502
+ }, di = X((e, r) => {
1499
1503
  const {
1500
1504
  className: a,
1501
1505
  children: s,
1502
1506
  componentStyle: i = "neutral",
1503
- size: n = "medium",
1504
- disabled: c = !1,
1505
- showLabel: _ = !!s,
1506
- slotStart: d,
1507
- slotEnd: f,
1508
- slotStartWrapperProps: p = {},
1509
- slotEndWrapperProps: h = {},
1507
+ size: o = "medium",
1508
+ disabled: l = !1,
1509
+ showLabel: u = !!s,
1510
+ slotStart: c,
1511
+ slotEnd: p,
1512
+ slotStartWrapperProps: h = {},
1513
+ slotEndWrapperProps: m = {},
1510
1514
  "data-testid": b
1511
- } = t, { className: y, ...x } = p, { className: M, ...S } = h;
1512
- return /* @__PURE__ */ o.jsxs(
1515
+ } = e, { className: g, ...y } = h, { className: S, ...x } = m;
1516
+ return /* @__PURE__ */ n.jsxs(
1513
1517
  "div",
1514
1518
  {
1515
- className: V(
1516
- we.tag,
1517
- we[n],
1518
- we[i],
1519
+ className: I(
1520
+ Le.tag,
1521
+ Le[o],
1522
+ Le[i],
1519
1523
  {
1520
- [we.disabled]: c,
1521
- [Ae["typography-label-3-regular"]]: n === "medium",
1522
- [Ae["typography-subtitle-1-semibold"]]: n === "large"
1524
+ [Le.disabled]: l,
1525
+ [pe["typography-label-3-regular"]]: o === "medium",
1526
+ [pe["typography-subtitle-1-semibold"]]: o === "large"
1523
1527
  },
1524
1528
  a
1525
1529
  ),
1526
1530
  "data-testid": b || "tag-component",
1527
1531
  ref: r,
1528
1532
  children: [
1529
- d && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, y]), ...x, children: d }),
1530
- _ && /* @__PURE__ */ o.jsx("span", { className: V([we.label]), children: s }),
1531
- f && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, M]), ...S, children: f })
1533
+ c && /* @__PURE__ */ n.jsx("span", { className: I([Le.iconWrapper, g]), ...y, children: c }),
1534
+ u && /* @__PURE__ */ n.jsx("span", { className: I([Le.label]), children: s }),
1535
+ p && /* @__PURE__ */ n.jsx("span", { className: I([Le.iconWrapper, S]), ...x, children: p })
1532
1536
  ]
1533
1537
  }
1534
1538
  );
1535
- }), ps = "_checkbox_qo5f5_43", fs = "_input_qo5f5_59", gs = "_icon_qo5f5_67", hs = "_container_qo5f5_84", bs = "_error_qo5f5_135", ys = "_checkboxWrapper_qo5f5_147", ms = "_medium_qo5f5_201", vs = "_large_qo5f5_206", xs = "_label_qo5f5_247", he = {
1536
- checkbox: ps,
1537
- input: fs,
1538
- icon: gs,
1539
- container: hs,
1540
- error: bs,
1541
- checkboxWrapper: ys,
1542
- medium: ms,
1543
- large: vs,
1544
- label: xs
1545
- }, Cs = ({
1546
- width: t = 12,
1539
+ }), Rs = "_checkbox_17txq_43", Ms = "_input_17txq_64", Is = "_icon_17txq_72", Ts = "_container_17txq_92", As = "_error_17txq_143", Ns = "_checkboxWrapper_17txq_156", Ds = "_medium_17txq_211", Os = "_large_17txq_216", Ps = "_label_17txq_258", be = {
1540
+ checkbox: Rs,
1541
+ input: Ms,
1542
+ icon: Is,
1543
+ container: Ts,
1544
+ error: As,
1545
+ checkboxWrapper: Ns,
1546
+ medium: Ds,
1547
+ large: Os,
1548
+ label: Ps
1549
+ }, qs = ({
1550
+ width: e = 12,
1547
1551
  height: r = 9,
1548
1552
  className: a = "",
1549
1553
  color: s = "currentColor",
1550
1554
  ...i
1551
- }) => /* @__PURE__ */ o.jsx(
1555
+ }) => /* @__PURE__ */ n.jsx(
1552
1556
  "svg",
1553
1557
  {
1554
1558
  className: a,
1555
- width: t,
1559
+ width: e,
1556
1560
  height: r,
1557
1561
  viewBox: "0 0 14 10",
1558
1562
  fill: "none",
1559
1563
  xmlns: "http://www.w3.org/2000/svg",
1560
1564
  ...i,
1561
- children: /* @__PURE__ */ o.jsx(
1565
+ children: /* @__PURE__ */ n.jsx(
1562
1566
  "path",
1563
1567
  {
1564
1568
  fillRule: "evenodd",
@@ -1568,23 +1572,23 @@ const yr = 3, mr = (t) => {
1568
1572
  }
1569
1573
  )
1570
1574
  }
1571
- ), ws = ({
1572
- width: t = 12,
1575
+ ), Us = ({
1576
+ width: e = 12,
1573
1577
  height: r = 2,
1574
1578
  className: a = "",
1575
1579
  color: s = "currentColor",
1576
1580
  ...i
1577
- }) => /* @__PURE__ */ o.jsx(
1581
+ }) => /* @__PURE__ */ n.jsx(
1578
1582
  "svg",
1579
1583
  {
1580
1584
  className: a,
1581
- width: t,
1585
+ width: e,
1582
1586
  height: r,
1583
1587
  viewBox: "0 0 12 2",
1584
1588
  fill: "none",
1585
1589
  xmlns: "http://www.w3.org/2000/svg",
1586
1590
  ...i,
1587
- children: /* @__PURE__ */ o.jsx(
1591
+ children: /* @__PURE__ */ n.jsx(
1588
1592
  "path",
1589
1593
  {
1590
1594
  fillRule: "evenodd",
@@ -1594,267 +1598,267 @@ const yr = 3, mr = (t) => {
1594
1598
  }
1595
1599
  )
1596
1600
  }
1597
- ), Ss = {
1601
+ ), Bs = {
1598
1602
  medium: { width: 10.83, height: 7.5 },
1599
1603
  large: { width: 13, height: 9 }
1600
- }, Es = ({
1601
- size: t,
1604
+ }, Fs = ({
1605
+ size: e,
1602
1606
  isChecked: r,
1603
1607
  isDisabled: a,
1604
1608
  indeterminate: s,
1605
1609
  dataTestId: i
1606
1610
  }) => {
1607
- const { width: n, height: c } = Ss[t];
1608
- return /* @__PURE__ */ o.jsx(
1611
+ const { width: o, height: l } = Bs[e];
1612
+ return /* @__PURE__ */ n.jsx(
1609
1613
  "div",
1610
1614
  {
1611
- className: he.icon,
1615
+ className: be.icon,
1612
1616
  "data-testid": `${i}-icon`,
1613
1617
  "data-checked": r,
1614
1618
  "data-disabled": a,
1615
1619
  "data-indeterminate": s,
1616
- children: s ? /* @__PURE__ */ o.jsx(ws, { width: n, height: c }) : /* @__PURE__ */ o.jsx(Cs, { width: n, height: c })
1620
+ children: s ? /* @__PURE__ */ n.jsx(Us, { width: o, height: l }) : /* @__PURE__ */ n.jsx(qs, { width: o, height: l })
1617
1621
  }
1618
1622
  );
1619
- }, Un = te((t, r) => {
1623
+ }, ui = X((e, r) => {
1620
1624
  const {
1621
1625
  name: a,
1622
1626
  value: s,
1623
1627
  size: i = "medium",
1624
- indeterminate: n = !1,
1625
- loading: c = !1,
1626
- error: _,
1627
- disabled: d = !1,
1628
- containerClassName: f,
1629
- className: p,
1630
- containerStyle: h,
1628
+ indeterminate: o = !1,
1629
+ loading: l = !1,
1630
+ error: u,
1631
+ disabled: c = !1,
1632
+ containerClassName: p,
1633
+ className: h,
1634
+ containerStyle: m,
1631
1635
  style: b,
1632
- children: y,
1633
- clickableLabel: x = !0,
1634
- tabIndex: M,
1635
- onChange: S,
1636
+ children: g,
1637
+ clickableLabel: y = !0,
1638
+ tabIndex: S,
1639
+ onChange: x,
1636
1640
  "data-testid": C = "checkbox"
1637
- } = t, [g, $] = Ne(!1), k = s ?? g, D = d || c, T = !!_, A = k || n, N = V(he.container, he[i], f), U = V(
1638
- he.checkbox,
1639
- he[i],
1641
+ } = e, [_, L] = ye(!1), E = s ?? _, A = c || l, j = !!u, T = E || o, O = I(be.container, be[i], p), U = I(
1642
+ be.checkbox,
1643
+ be[i],
1640
1644
  {
1641
- [he.error]: T
1645
+ [be.error]: j
1642
1646
  },
1643
- p
1644
- ), q = (j) => {
1645
- D || ($(j.target.checked), S == null || S(j.target.checked, j));
1646
- }, z = (j) => {
1647
- if (j.key === "Enter" && !D) {
1648
- j.preventDefault();
1649
- const B = !A;
1650
- $(B), S == null || S(B);
1651
- }
1652
- }, O = (j) => {
1653
- x || j.preventDefault();
1654
- }, m = (j) => j.stopPropagation();
1655
- return /* @__PURE__ */ o.jsxs(
1647
+ h
1648
+ ), B = ($) => {
1649
+ A || (L($.target.checked), x == null || x($.target.checked, $));
1650
+ }, z = ($) => {
1651
+ if ($.key === "Enter" && !A) {
1652
+ $.preventDefault();
1653
+ const P = !T;
1654
+ L(P), x == null || x(P);
1655
+ }
1656
+ }, N = ($) => {
1657
+ y || $.preventDefault();
1658
+ }, v = ($) => $.stopPropagation();
1659
+ return /* @__PURE__ */ n.jsxs(
1656
1660
  "label",
1657
1661
  {
1658
- className: N,
1662
+ className: O,
1659
1663
  htmlFor: a,
1660
- style: h,
1664
+ style: m,
1661
1665
  "data-testid": C,
1662
- "data-clickable-label": x,
1666
+ "data-clickable-label": y,
1663
1667
  children: [
1664
- /* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
1668
+ /* @__PURE__ */ n.jsx("div", { className: be.checkboxWrapper, children: /* @__PURE__ */ n.jsxs(
1665
1669
  "div",
1666
1670
  {
1667
- tabIndex: M || 0,
1671
+ tabIndex: S || 0,
1668
1672
  className: U,
1669
1673
  style: b,
1670
1674
  onKeyDown: z,
1671
- "aria-checked": A,
1672
- "aria-disabled": D,
1673
- "aria-invalid": T,
1674
- "aria-describedby": _ ? `${a}-error` : void 0,
1675
+ "aria-checked": T,
1676
+ "aria-disabled": A,
1677
+ "aria-invalid": j,
1678
+ "aria-describedby": u ? `${a}-error` : void 0,
1675
1679
  "data-testid": `${C}-label`,
1676
1680
  children: [
1677
- /* @__PURE__ */ o.jsx(
1681
+ /* @__PURE__ */ n.jsx(
1678
1682
  "input",
1679
1683
  {
1680
1684
  ref: r,
1681
1685
  type: "checkbox",
1682
1686
  id: a,
1683
1687
  name: a,
1684
- checked: A,
1685
- disabled: D,
1686
- className: he.input,
1687
- onChange: q,
1688
- onClick: m,
1689
- "aria-checked": A,
1690
- "aria-invalid": T,
1691
- "aria-describedby": _ ? `${a}-error` : void 0,
1688
+ checked: T,
1689
+ disabled: A,
1690
+ className: be.input,
1691
+ onChange: B,
1692
+ onClick: v,
1693
+ "aria-checked": T,
1694
+ "aria-invalid": j,
1695
+ "aria-describedby": u ? `${a}-error` : void 0,
1692
1696
  "data-testid": `${C}-input`
1693
1697
  }
1694
1698
  ),
1695
- /* @__PURE__ */ o.jsx(
1696
- Es,
1699
+ /* @__PURE__ */ n.jsx(
1700
+ Fs,
1697
1701
  {
1698
1702
  name: a,
1699
1703
  size: i,
1700
- isChecked: A,
1701
- isDisabled: D,
1702
- indeterminate: n,
1704
+ isChecked: T,
1705
+ isDisabled: A,
1706
+ indeterminate: o,
1703
1707
  dataTestId: C
1704
1708
  }
1705
1709
  )
1706
1710
  ]
1707
1711
  }
1708
1712
  ) }),
1709
- y && /* @__PURE__ */ o.jsx(
1713
+ g && /* @__PURE__ */ n.jsx(
1710
1714
  "span",
1711
1715
  {
1712
1716
  "data-testid": `${C}-label-text`,
1713
- "data-clickable-label": x,
1714
- className: he.label,
1715
- onClick: O,
1716
- children: y
1717
+ "data-clickable-label": y,
1718
+ className: be.label,
1719
+ onClick: N,
1720
+ children: g
1717
1721
  }
1718
1722
  )
1719
1723
  ]
1720
1724
  }
1721
1725
  );
1722
- }), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78", je = {
1723
- typography: Ls,
1724
- disabled: Ms,
1725
- primary: $s,
1726
- secondary: js,
1727
- tertiary: Is,
1728
- accent: Rs,
1726
+ }), zs = "_typography_zt7xg_1", Ws = "_disabled_zt7xg_8", Gs = "_primary_zt7xg_13", Hs = "_secondary_zt7xg_18", Vs = "_tertiary_zt7xg_23", Zs = "_accent_zt7xg_28", Ys = "_positive_zt7xg_38", Ks = "_negative_zt7xg_48", Js = "_warning_zt7xg_58", Xs = "_special_zt7xg_68", Qs = "_contrast_zt7xg_78", Te = {
1727
+ typography: zs,
1728
+ disabled: Ws,
1729
+ primary: Gs,
1730
+ secondary: Hs,
1731
+ tertiary: Vs,
1732
+ accent: Zs,
1729
1733
  "accent-secondary": "_accent-secondary_zt7xg_33",
1730
- positive: ks,
1734
+ positive: Ys,
1731
1735
  "positive-secondary": "_positive-secondary_zt7xg_43",
1732
- negative: Ts,
1736
+ negative: Ks,
1733
1737
  "negative-secondary": "_negative-secondary_zt7xg_53",
1734
- warning: As,
1738
+ warning: Js,
1735
1739
  "warning-secondary": "_warning-secondary_zt7xg_63",
1736
- special: Ns,
1740
+ special: Xs,
1737
1741
  "special-secondary": "_special-secondary_zt7xg_73",
1738
- contrast: Ds,
1742
+ contrast: Qs,
1739
1743
  "contrast-secondary": "_contrast-secondary_zt7xg_83"
1740
- }, Os = {
1744
+ }, en = {
1741
1745
  1: "h1",
1742
1746
  2: "h2",
1743
1747
  3: "h3",
1744
1748
  4: "h4",
1745
1749
  5: "h5"
1746
- }, xt = (t) => {
1747
- const r = Et.forwardRef(
1750
+ }, It = (e) => {
1751
+ const r = Ot.forwardRef(
1748
1752
  ({
1749
1753
  size: a = 3,
1750
1754
  children: s,
1751
1755
  className: i,
1752
- "data-testid": n,
1753
- as: c,
1754
- fontWeight: _ = "semibold",
1755
- disabled: d = !1,
1756
- typographyStyle: f = "primary",
1757
- ...p
1758
- }, h) => {
1759
- const b = c || Os[a], y = V(
1760
- je.typography,
1761
- Ae[`typography-${t}-${a}-${_}`],
1762
- je[f],
1756
+ "data-testid": o,
1757
+ as: l,
1758
+ fontWeight: u = "semibold",
1759
+ disabled: c = !1,
1760
+ typographyStyle: p = "primary",
1761
+ ...h
1762
+ }, m) => {
1763
+ const b = l || en[a], g = I(
1764
+ Te.typography,
1765
+ pe[`typography-${e}-${a}-${u}`],
1766
+ Te[p],
1763
1767
  {
1764
- [je.disabled]: d
1768
+ [Te.disabled]: c
1765
1769
  },
1766
1770
  i
1767
1771
  );
1768
- return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: y, "data-testid": n, ...p, children: s }) : null;
1772
+ return s ? /* @__PURE__ */ n.jsx(b, { ref: m, className: g, "data-testid": o, ...h, children: s }) : null;
1769
1773
  }
1770
1774
  );
1771
- return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
1772
- }, Ct = (t) => {
1773
- const r = Et.forwardRef(
1775
+ return r.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, r;
1776
+ }, Tt = (e) => {
1777
+ const r = Ot.forwardRef(
1774
1778
  ({
1775
1779
  size: a = 3,
1776
1780
  children: s,
1777
1781
  className: i,
1778
- "data-testid": n,
1779
- as: c = "p",
1780
- fontWeight: _ = "regular",
1781
- disabled: d = !1,
1782
- typographyStyle: f = "primary",
1783
- ...p
1784
- }, h) => {
1785
- const b = c, y = V(
1786
- je.typography,
1787
- Ae[`typography-${t}-${a}-${_}`],
1788
- je[f],
1782
+ "data-testid": o,
1783
+ as: l = "p",
1784
+ fontWeight: u = "regular",
1785
+ disabled: c = !1,
1786
+ typographyStyle: p = "primary",
1787
+ ...h
1788
+ }, m) => {
1789
+ const b = l, g = I(
1790
+ Te.typography,
1791
+ pe[`typography-${e}-${a}-${u}`],
1792
+ Te[p],
1789
1793
  {
1790
- [je.disabled]: d
1794
+ [Te.disabled]: c
1791
1795
  },
1792
1796
  i
1793
1797
  );
1794
- return s ? /* @__PURE__ */ o.jsx(
1798
+ return s ? /* @__PURE__ */ n.jsx(
1795
1799
  b,
1796
1800
  {
1797
- ref: h,
1798
- className: y,
1799
- "data-testid": n,
1800
- ...p,
1801
+ ref: m,
1802
+ className: g,
1803
+ "data-testid": o,
1804
+ ...h,
1801
1805
  children: s
1802
1806
  }
1803
1807
  ) : null;
1804
1808
  }
1805
1809
  );
1806
- return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
1807
- }, Bn = {
1808
- Title: xt("title"),
1809
- Subtitle: xt("subtitle"),
1810
- Label: Ct("label"),
1811
- Paragraph: Ct("paragraph")
1812
- }, Us = "_inputBase_2vlla_85", Bs = "_wrapper_2vlla_95", Fs = "_gripHandle_2vlla_169", Ps = "_error_2vlla_230", zs = "_tabFocused_2vlla_237", Ws = "_disabled_2vlla_262", Vs = "_loading_2vlla_269", Hs = "_label_2vlla_279", qs = "_small_2vlla_292", Gs = "_large_2vlla_299", Zs = "_leftSection_2vlla_306", Ys = "_rightSection_2vlla_315", Js = "_helper_2vlla_351", Ks = "_floatingLabel_2vlla_376", Xs = "_focused_2vlla_434", Qs = "_filled_2vlla_435", en = "_medium_2vlla_469", tn = "_characterLimit_2vlla_510", an = "_input_2vlla_85", rn = "_textarea_2vlla_109", sn = "_truncate_2vlla_637", nn = "_hint_2vlla_719", L = {
1813
- inputBase: Us,
1814
- wrapper: Bs,
1815
- "textarea-wrapper": "_textarea-wrapper_2vlla_109",
1816
- gripHandle: Fs,
1817
- error: Ps,
1818
- tabFocused: zs,
1819
- disabled: Ws,
1820
- loading: Vs,
1821
- label: Hs,
1822
- small: qs,
1823
- large: Gs,
1824
- leftSection: Zs,
1825
- rightSection: Ys,
1826
- helper: Js,
1827
- floatingLabel: Ks,
1828
- focused: Xs,
1829
- filled: Qs,
1830
- medium: en,
1831
- characterLimit: tn,
1832
- input: an,
1833
- textarea: rn,
1834
- "size-small": "_size-small_2vlla_586",
1835
- "size-medium": "_size-medium_2vlla_592",
1836
- "size-large": "_size-large_2vlla_598",
1837
- "with-floating-label": "_with-floating-label_2vlla_605",
1838
- truncate: sn,
1839
- hint: nn,
1840
- "has-hint": "_has-hint_2vlla_736",
1841
- "has-suffix": "_has-suffix_2vlla_742",
1842
- "has-limit": "_has-limit_2vlla_748"
1843
- }, on = ({
1844
- width: t = 8,
1810
+ return r.displayName = `Typography.${e.charAt(0).toUpperCase() + e.slice(1)}`, r;
1811
+ }, _i = {
1812
+ Title: It("title"),
1813
+ Subtitle: It("subtitle"),
1814
+ Label: Tt("label"),
1815
+ Paragraph: Tt("paragraph")
1816
+ }, tn = "_inputBase_1q54n_82", an = "_wrapper_1q54n_92", rn = "_gripHandle_1q54n_172", sn = "_error_1q54n_238", nn = "_tabFocused_1q54n_245", on = "_disabled_1q54n_270", ln = "_loading_1q54n_277", cn = "_label_1q54n_287", dn = "_small_1q54n_301", un = "_large_1q54n_308", _n = "_leftSection_1q54n_315", pn = "_rightSection_1q54n_327", fn = "_helper_1q54n_365", hn = "_floatingLabel_1q54n_393", gn = "_focused_1q54n_461", bn = "_filled_1q54n_462", mn = "_medium_1q54n_503", yn = "_characterLimit_1q54n_545", vn = "_input_1q54n_82", xn = "_textarea_1q54n_110", Cn = "_truncate_1q54n_678", wn = "_hint_1q54n_765", M = {
1817
+ inputBase: tn,
1818
+ wrapper: an,
1819
+ "textarea-wrapper": "_textarea-wrapper_1q54n_110",
1820
+ gripHandle: rn,
1821
+ error: sn,
1822
+ tabFocused: nn,
1823
+ disabled: on,
1824
+ loading: ln,
1825
+ label: cn,
1826
+ small: dn,
1827
+ large: un,
1828
+ leftSection: _n,
1829
+ rightSection: pn,
1830
+ helper: fn,
1831
+ floatingLabel: hn,
1832
+ focused: gn,
1833
+ filled: bn,
1834
+ medium: mn,
1835
+ characterLimit: yn,
1836
+ input: vn,
1837
+ textarea: xn,
1838
+ "size-small": "_size-small_1q54n_627",
1839
+ "size-medium": "_size-medium_1q54n_633",
1840
+ "size-large": "_size-large_1q54n_639",
1841
+ "with-floating-label": "_with-floating-label_1q54n_646",
1842
+ truncate: Cn,
1843
+ hint: wn,
1844
+ "has-hint": "_has-hint_1q54n_786",
1845
+ "has-suffix": "_has-suffix_1q54n_792",
1846
+ "has-limit": "_has-limit_1q54n_798"
1847
+ }, Sn = ({
1848
+ width: e = 8,
1845
1849
  height: r = 8,
1846
1850
  className: a,
1847
1851
  color: s = "#AABBCA"
1848
- }) => /* @__PURE__ */ o.jsx(
1852
+ }) => /* @__PURE__ */ n.jsx(
1849
1853
  "svg",
1850
1854
  {
1851
- width: t,
1855
+ width: e,
1852
1856
  height: r,
1853
1857
  viewBox: "0 0 8 8",
1854
1858
  fill: "none",
1855
1859
  xmlns: "http://www.w3.org/2000/svg",
1856
1860
  className: a,
1857
- children: /* @__PURE__ */ o.jsx(
1861
+ children: /* @__PURE__ */ n.jsx(
1858
1862
  "path",
1859
1863
  {
1860
1864
  fillRule: "evenodd",
@@ -1864,15 +1868,15 @@ const yr = 3, mr = (t) => {
1864
1868
  }
1865
1869
  )
1866
1870
  }
1867
- ), kt = ({
1868
- className: t = "",
1871
+ ), Gt = ({
1872
+ className: e = "",
1869
1873
  style: r,
1870
1874
  size: a = "md",
1871
1875
  color: s = "currentColor",
1872
1876
  onClick: i,
1873
- ...n
1877
+ ...o
1874
1878
  }) => {
1875
- const _ = {
1879
+ const u = {
1876
1880
  display: "inline-block",
1877
1881
  color: s,
1878
1882
  ...{
@@ -1885,17 +1889,17 @@ const yr = 3, mr = (t) => {
1885
1889
  }[a],
1886
1890
  ...r
1887
1891
  };
1888
- return /* @__PURE__ */ o.jsx(
1892
+ return /* @__PURE__ */ n.jsx(
1889
1893
  "svg",
1890
1894
  {
1891
- className: t,
1892
- style: _,
1895
+ className: e,
1896
+ style: u,
1893
1897
  viewBox: "0 0 16 16",
1894
1898
  fill: "none",
1895
1899
  xmlns: "http://www.w3.org/2000/svg",
1896
1900
  onClick: i,
1897
- ...n,
1898
- children: /* @__PURE__ */ o.jsx(
1901
+ ...o,
1902
+ children: /* @__PURE__ */ n.jsx(
1899
1903
  "path",
1900
1904
  {
1901
1905
  d: "M12 4L4 12M4 4L12 12",
@@ -1907,453 +1911,453 @@ const yr = 3, mr = (t) => {
1907
1911
  )
1908
1912
  }
1909
1913
  );
1910
- }, ln = (t, r) => {
1911
- const a = ze(null), s = ze(null);
1912
- return Ee(() => {
1914
+ }, Ln = (e, r) => {
1915
+ const a = qe(null), s = qe(null);
1916
+ return ue(() => {
1913
1917
  const i = r === "textarea" ? a.current : s.current;
1914
- i && i.value !== t && (i.value = t || "");
1915
- }, [t, r]), {
1918
+ i && i.value !== e && (i.value = e || "");
1919
+ }, [e, r]), {
1916
1920
  textareaRef: a,
1917
1921
  inputRef: s,
1918
1922
  currentRef: r === "textarea" ? a : s
1919
1923
  };
1920
- }, cn = (t, r, a) => {
1924
+ }, En = (e, r, a) => {
1921
1925
  const s = () => {
1922
1926
  if (!a.current || r !== "hug") return;
1923
1927
  const i = a.current.scrollTop;
1924
- if (a.current.style.setProperty("height", "auto", "important"), !t) return;
1925
- const n = a.current.scrollHeight + "px";
1926
- a.current.style.setProperty("height", n, "important"), a.current.scrollTop = i;
1927
- const c = a.current.closest(`.${L.wrapper}`);
1928
- c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
1928
+ if (a.current.style.setProperty("height", "auto", "important"), !e) return;
1929
+ const o = a.current.scrollHeight + "px";
1930
+ a.current.style.setProperty("height", o, "important"), a.current.scrollTop = i;
1931
+ const l = a.current.closest(`.${M.wrapper}`);
1932
+ l && (l.setAttribute("data-resize", "hug"), l.setAttribute("data-show-grip", "false"));
1929
1933
  };
1930
- return Ee(s, [t, r]), Ee(() => {
1934
+ return ue(s, [e, r]), ue(() => {
1931
1935
  r === "hug" && a.current && s();
1932
1936
  }, []), { resizeTextArea: s };
1933
- }, dn = (t, r, a, s) => ({ handleGripMouseDown: Se(
1934
- (n) => {
1935
- if (!t || r || a || !(s === "fixed" || !s)) return;
1936
- n.preventDefault(), n.stopPropagation();
1937
- const c = n.currentTarget.closest(`.${L.wrapper}`);
1938
- if (!c) return;
1939
- const _ = n.clientY, d = c.clientHeight, f = (h) => {
1940
- const b = h.clientY - _, y = Math.min(100, d), x = Math.max(y, d + b);
1941
- c.style.height = `${x}px`;
1942
- }, p = () => {
1943
- document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
1937
+ }, kn = (e, r, a, s) => ({ handleGripMouseDown: xe(
1938
+ (o) => {
1939
+ if (!e || r || a || !(s === "fixed" || !s)) return;
1940
+ o.preventDefault(), o.stopPropagation();
1941
+ const l = o.currentTarget.closest(`.${M.wrapper}`);
1942
+ if (!l) return;
1943
+ const u = o.clientY, c = l.clientHeight, p = (m) => {
1944
+ const b = m.clientY - u, g = Math.min(100, c), y = Math.max(g, c + b);
1945
+ l.style.height = `${y}px`;
1946
+ }, h = () => {
1947
+ document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", h);
1944
1948
  };
1945
- document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
1949
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", h);
1946
1950
  },
1947
- [t, r, a, s]
1948
- ) }), wt = 30, un = te(
1951
+ [e, r, a, s]
1952
+ ) }), At = 30, jn = X(
1949
1953
  ({
1950
- component: t = "input",
1954
+ component: e = "input",
1951
1955
  size: r = "medium",
1952
1956
  value: a = "",
1953
1957
  placeholder: s,
1954
1958
  disabled: i = !1,
1955
- loading: n = !1,
1956
- onFocus: c,
1957
- onBlur: _,
1958
- onChange: d,
1959
- onKeyDown: f,
1960
- onKeyUp: p,
1961
- maxLength: h,
1959
+ loading: o = !1,
1960
+ onFocus: l,
1961
+ onBlur: u,
1962
+ onChange: c,
1963
+ onKeyDown: p,
1964
+ onKeyUp: h,
1965
+ maxLength: m,
1962
1966
  className: b,
1963
- style: y,
1964
- truncate: x = !1,
1965
- shouldShowFloatingLabelClass: M = !1,
1966
- "aria-invalid": S,
1967
+ style: g,
1968
+ truncate: y = !1,
1969
+ shouldShowFloatingLabelClass: S = !1,
1970
+ "aria-invalid": x,
1967
1971
  "aria-errormessage": C,
1968
- id: g,
1969
- resize: $,
1970
- ...k
1971
- }, D) => {
1972
- const { textareaRef: T, inputRef: A, currentRef: N } = ln(a, t);
1973
- if (cn(a, $, T), oa(D, () => N.current, [N]), t === "textarea")
1974
- return /* @__PURE__ */ o.jsx(
1972
+ id: _,
1973
+ resize: L,
1974
+ ...E
1975
+ }, A) => {
1976
+ const { textareaRef: j, inputRef: T, currentRef: O } = Ln(a, e);
1977
+ if (En(a, L, j), xa(A, () => O.current, [O]), e === "textarea")
1978
+ return /* @__PURE__ */ n.jsx(
1975
1979
  "textarea",
1976
1980
  {
1977
- ref: T,
1978
- id: g,
1981
+ ref: j,
1982
+ id: _,
1979
1983
  value: a,
1980
1984
  placeholder: s,
1981
- disabled: i || n,
1982
- onFocus: c,
1983
- onBlur: _,
1984
- onChange: d,
1985
- onKeyDown: f,
1986
- onKeyUp: p,
1987
- maxLength: h,
1988
- className: V(
1989
- L.textarea,
1990
- L[`size-${r}`],
1991
- M && L["with-floating-label"],
1985
+ disabled: i || o,
1986
+ onFocus: l,
1987
+ onBlur: u,
1988
+ onChange: c,
1989
+ onKeyDown: p,
1990
+ onKeyUp: h,
1991
+ maxLength: m,
1992
+ className: I(
1993
+ M.textarea,
1994
+ M[`size-${r}`],
1995
+ S && M["with-floating-label"],
1992
1996
  b
1993
1997
  ),
1994
- style: y,
1995
- "aria-invalid": S,
1998
+ style: g,
1999
+ "aria-invalid": x,
1996
2000
  "aria-errormessage": C,
1997
- "aria-describedby": C ? `${g}-error` : void 0,
2001
+ "aria-describedby": C ? `${_}-error` : void 0,
1998
2002
  tabIndex: 0,
1999
- "data-resize": $,
2000
- ...k
2003
+ "data-resize": L,
2004
+ ...E
2001
2005
  }
2002
2006
  );
2003
- if (t === "input")
2004
- return /* @__PURE__ */ o.jsx(
2007
+ if (e === "input")
2008
+ return /* @__PURE__ */ n.jsx(
2005
2009
  "input",
2006
2010
  {
2007
- ref: A,
2008
- id: g,
2011
+ ref: T,
2012
+ id: _,
2009
2013
  value: a,
2010
2014
  placeholder: s,
2011
- disabled: i || n,
2012
- onFocus: c,
2013
- onBlur: _,
2014
- onChange: d,
2015
- onKeyDown: f,
2016
- onKeyUp: p,
2017
- maxLength: h,
2018
- className: V(
2019
- L.input,
2020
- L[`size-${r}`],
2021
- M && L["with-floating-label"],
2022
- x && L.truncate,
2015
+ disabled: i || o,
2016
+ onFocus: l,
2017
+ onBlur: u,
2018
+ onChange: c,
2019
+ onKeyDown: p,
2020
+ onKeyUp: h,
2021
+ maxLength: m,
2022
+ className: I(
2023
+ M.input,
2024
+ M[`size-${r}`],
2025
+ S && M["with-floating-label"],
2026
+ y && M.truncate,
2023
2027
  b
2024
2028
  ),
2025
- style: y,
2026
- "aria-invalid": S,
2029
+ style: g,
2030
+ "aria-invalid": x,
2027
2031
  "aria-errormessage": C,
2028
- "aria-describedby": C ? `${g}-error` : void 0,
2032
+ "aria-describedby": C ? `${_}-error` : void 0,
2029
2033
  tabIndex: 0,
2030
- ...k
2034
+ ...E
2031
2035
  }
2032
2036
  );
2033
- if (t !== "input" && t !== "textarea")
2037
+ if (e !== "input" && e !== "textarea")
2034
2038
  return console.error(
2035
- `[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
2039
+ `[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
2036
2040
  ), null;
2037
2041
  }
2038
- ), Tt = te(
2042
+ ), Ht = X(
2039
2043
  ({
2040
- children: t,
2044
+ children: e,
2041
2045
  size: r = "medium",
2042
2046
  error: a = !1,
2043
2047
  disabled: s = !1,
2044
2048
  loading: i = !1,
2045
- className: n,
2046
- wrapperProps: c,
2047
- wrapperStyles: _,
2048
- floatingLabelStyles: d,
2049
- prefixStyles: f,
2050
- suffixStyles: p,
2051
- labelProps: h,
2049
+ className: o,
2050
+ wrapperProps: l,
2051
+ wrapperStyles: u,
2052
+ floatingLabelStyles: c,
2053
+ prefixStyles: p,
2054
+ suffixStyles: h,
2055
+ labelProps: m,
2052
2056
  helperProps: b,
2053
- showLimit: y = !1,
2054
- maxLength: x,
2055
- hint: M,
2056
- showHint: S = !1,
2057
+ showLimit: g = !1,
2058
+ maxLength: y,
2059
+ hint: S,
2060
+ showHint: x = !1,
2057
2061
  showHintOnEmpty: C = !1,
2058
- prefix: g,
2059
- suffix: $,
2060
- onSuffixClick: k,
2061
- placeholder: D,
2062
- showLabel: T = !0,
2063
- labelClassName: A,
2064
- hasValue: N = !1,
2062
+ prefix: _,
2063
+ suffix: L,
2064
+ onSuffixClick: E,
2065
+ placeholder: A,
2066
+ showLabel: j = !0,
2067
+ labelClassName: T,
2068
+ hasValue: O = !1,
2065
2069
  helper: U,
2066
- id: q,
2070
+ id: B,
2067
2071
  value: z = "",
2068
- resize: O,
2069
- showGrip: m = !1,
2070
- ...j
2071
- }, B) => {
2072
- const G = $t(), H = q || G, Q = S && M && (N || C), ae = M && M.length > wt ? M.substring(0, wt) + "..." : M, J = V(
2073
- L.wrapper,
2074
- a && L.error,
2075
- s && L.disabled,
2076
- i && L.loading,
2077
- Q && L["has-hint"],
2078
- $ && L["has-suffix"],
2079
- y && L["has-limit"],
2080
- n
2081
- ), re = V(
2082
- L.floatingLabel,
2083
- L[r],
2084
- N && L.filled,
2085
- A
2086
- ), { handleGripMouseDown: se } = dn(m, s, i, O);
2087
- return /* @__PURE__ */ o.jsxs("div", { ref: B, className: L.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
2088
- /* @__PURE__ */ o.jsxs(
2072
+ resize: N,
2073
+ showGrip: v = !1,
2074
+ ...$
2075
+ }, P) => {
2076
+ const F = Ut(), G = B || F, Q = x && S && (O || C), ne = S && S.length > At ? S.substring(0, At) + "..." : S, Z = I(
2077
+ M.wrapper,
2078
+ a && M.error,
2079
+ s && M.disabled,
2080
+ i && M.loading,
2081
+ Q && M["has-hint"],
2082
+ L && M["has-suffix"],
2083
+ g && M["has-limit"],
2084
+ o
2085
+ ), ie = I(
2086
+ M.floatingLabel,
2087
+ M[r],
2088
+ O && M.filled,
2089
+ T
2090
+ ), { handleGripMouseDown: ee } = kn(v, s, i, N);
2091
+ return /* @__PURE__ */ n.jsxs("div", { ref: P, className: M.inputBase, "data-testid": "input-base-wrapper", ...$, children: [
2092
+ /* @__PURE__ */ n.jsxs(
2089
2093
  "div",
2090
2094
  {
2091
- className: J,
2092
- style: _,
2093
- "data-resize": O,
2094
- "data-show-grip": m ? "true" : "false",
2095
- ...c,
2095
+ className: Z,
2096
+ style: u,
2097
+ "data-resize": N,
2098
+ "data-show-grip": v ? "true" : "false",
2099
+ ...l,
2096
2100
  children: [
2097
- g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: L.leftSection, style: f, children: g }),
2098
- $ && /* @__PURE__ */ o.jsx(
2101
+ _ && /* @__PURE__ */ n.jsx("label", { htmlFor: G, className: M.leftSection, style: p, children: _ }),
2102
+ L && /* @__PURE__ */ n.jsx(
2099
2103
  "label",
2100
2104
  {
2101
- htmlFor: H,
2102
- className: L.rightSection,
2103
- style: p,
2104
- onClick: k,
2105
- children: $
2105
+ htmlFor: G,
2106
+ className: M.rightSection,
2107
+ style: h,
2108
+ onClick: E,
2109
+ children: L
2106
2110
  }
2107
2111
  ),
2108
- D && T && /* @__PURE__ */ o.jsx(
2112
+ A && j && /* @__PURE__ */ n.jsx(
2109
2113
  "label",
2110
2114
  {
2111
- htmlFor: H,
2112
- className: re,
2113
- style: d,
2114
- ...h,
2115
- children: D
2115
+ htmlFor: G,
2116
+ className: ie,
2117
+ style: c,
2118
+ ...m,
2119
+ children: A
2116
2120
  }
2117
2121
  ),
2118
- t,
2119
- m && !y && (O === "fixed" || !O) && /* @__PURE__ */ o.jsx(
2122
+ e,
2123
+ v && !g && (N === "fixed" || !N) && /* @__PURE__ */ n.jsx(
2120
2124
  "div",
2121
2125
  {
2122
- className: L.gripHandle,
2123
- onMouseDown: se,
2126
+ className: M.gripHandle,
2127
+ onMouseDown: ee,
2124
2128
  role: "button",
2125
2129
  tabIndex: -1,
2126
2130
  "aria-label": "Изменить размер",
2127
- children: /* @__PURE__ */ o.jsx(on, {})
2131
+ children: /* @__PURE__ */ n.jsx(Sn, {})
2128
2132
  }
2129
2133
  ),
2130
- Q && /* @__PURE__ */ o.jsx(
2134
+ Q && /* @__PURE__ */ n.jsx(
2131
2135
  "div",
2132
2136
  {
2133
- className: V(L.hint, N && L.truncate),
2137
+ className: I(M.hint, O && M.truncate),
2134
2138
  "data-disabled": s || i,
2135
- children: ae
2139
+ children: ne
2136
2140
  }
2137
2141
  ),
2138
- y && x && /* @__PURE__ */ o.jsxs("div", { className: L.characterLimit, children: [
2142
+ g && y && /* @__PURE__ */ n.jsxs("div", { className: M.characterLimit, children: [
2139
2143
  (z || "").length,
2140
2144
  " из ",
2141
- x
2145
+ y
2142
2146
  ] })
2143
2147
  ]
2144
2148
  }
2145
2149
  ),
2146
- U && /* @__PURE__ */ o.jsx(
2150
+ U && /* @__PURE__ */ n.jsx(
2147
2151
  "div",
2148
2152
  {
2149
- className: V(
2150
- L.helper,
2151
- a && L.error,
2152
- (s || i) && L.disabled
2153
+ className: I(
2154
+ M.helper,
2155
+ a && M.error,
2156
+ (s || i) && M.disabled
2153
2157
  ),
2154
2158
  ...b,
2155
- id: a ? `${H}-error` : void 0,
2159
+ id: a ? `${G}-error` : void 0,
2156
2160
  children: U
2157
2161
  }
2158
2162
  )
2159
2163
  ] });
2160
2164
  }
2161
2165
  );
2162
- Tt.displayName = "InputWrapperComponent";
2163
- const St = Object.assign(un, {
2164
- Wrapper: Tt
2165
- }), At = te(
2166
+ Ht.displayName = "InputWrapperComponent";
2167
+ const Nt = Object.assign(jn, {
2168
+ Wrapper: Ht
2169
+ }), Vt = X(
2166
2170
  ({
2167
- component: t = "input",
2171
+ component: e = "input",
2168
2172
  size: r = "medium",
2169
2173
  className: a,
2170
2174
  error: s = !1,
2171
2175
  disabled: i = !1,
2172
- loading: n = !1,
2173
- placeholder: c,
2174
- showLabel: _ = !0,
2175
- labelClassName: d,
2176
- helper: f,
2177
- prefix: p,
2178
- suffix: h,
2176
+ loading: o = !1,
2177
+ placeholder: l,
2178
+ showLabel: u = !0,
2179
+ labelClassName: c,
2180
+ helper: p,
2181
+ prefix: h,
2182
+ suffix: m,
2179
2183
  id: b,
2180
- onFocus: y,
2181
- onBlur: x,
2182
- onKeyDown: M,
2183
- onSuffixClick: S,
2184
+ onFocus: g,
2185
+ onBlur: y,
2186
+ onKeyDown: S,
2187
+ onSuffixClick: x,
2184
2188
  onChange: C,
2185
- value: g = "",
2186
- wrapperProps: $,
2187
- wrapperStyles: k,
2188
- floatingLabelStyles: D,
2189
- prefixStyles: T,
2190
- suffixStyles: A,
2191
- textareaStyles: N,
2189
+ value: _ = "",
2190
+ wrapperProps: L,
2191
+ wrapperStyles: E,
2192
+ floatingLabelStyles: A,
2193
+ prefixStyles: j,
2194
+ suffixStyles: T,
2195
+ textareaStyles: O,
2192
2196
  labelProps: U,
2193
- helperProps: q,
2197
+ helperProps: B,
2194
2198
  showLimit: z = !1,
2195
- maxLength: O,
2196
- inputProps: m,
2197
- hint: j,
2198
- showHint: B = !1,
2199
- showHintOnEmpty: G = !1,
2200
- truncate: H = !1,
2199
+ maxLength: N,
2200
+ inputProps: v,
2201
+ hint: $,
2202
+ showHint: P = !1,
2203
+ showHintOnEmpty: F = !1,
2204
+ truncate: G = !1,
2201
2205
  resize: Q,
2202
- showGrip: ae = !1,
2203
- ...J
2204
- }, re) => {
2205
- const se = $t(), de = b || se, [ve, ie] = Ne(g), ye = g !== void 0 ? g : ve, ue = (ye || "").length > 0, le = ye || "", _e = _ && (r === "large" || t === "textarea") && !p, xe = Se(
2206
- (Z) => {
2207
- var Y;
2208
- i || n || (y == null || y(), (Y = m == null ? void 0 : m.onFocus) == null || Y.call(
2209
- m,
2210
- Z
2206
+ showGrip: ne = !1,
2207
+ ...Z
2208
+ }, ie) => {
2209
+ const ee = Ut(), ve = b || ee, [Ae, fe] = ye(_), Ee = _ !== void 0 ? _ : Ae, ke = (Ee || "").length > 0, we = Ee || "", je = u && (r === "large" || e === "textarea") && !h, Ve = xe(
2210
+ (Y) => {
2211
+ var K;
2212
+ i || o || (g == null || g(), (K = v == null ? void 0 : v.onFocus) == null || K.call(
2213
+ v,
2214
+ Y
2211
2215
  ));
2212
2216
  },
2213
- [y, m, i, n]
2214
- ), De = Se(
2215
- (Z) => {
2216
- var Y;
2217
- if (Z.key === "Tab") {
2218
- const ce = Z.target.closest(`.${L.wrapper}`);
2219
- ce && ce.classList.add(L.tabFocused);
2217
+ [g, v, i, o]
2218
+ ), Be = xe(
2219
+ (Y) => {
2220
+ var K;
2221
+ if (Y.key === "Tab") {
2222
+ const de = Y.target.closest(`.${M.wrapper}`);
2223
+ de && de.classList.add(M.tabFocused);
2220
2224
  }
2221
- (Y = m == null ? void 0 : m.onKeyUp) == null || Y.call(
2222
- m,
2223
- Z
2225
+ (K = v == null ? void 0 : v.onKeyUp) == null || K.call(
2226
+ v,
2227
+ Y
2224
2228
  );
2225
2229
  },
2226
- [m]
2227
- ), We = Se(
2228
- (Z) => {
2229
- var ce;
2230
- const Y = Z.target.closest(`.${L.wrapper}`);
2231
- Y && Y.classList.remove(L.tabFocused), x == null || x(), (ce = m == null ? void 0 : m.onBlur) == null || ce.call(
2232
- m,
2233
- Z
2230
+ [v]
2231
+ ), Ze = xe(
2232
+ (Y) => {
2233
+ var de;
2234
+ const K = Y.target.closest(`.${M.wrapper}`);
2235
+ K && K.classList.remove(M.tabFocused), y == null || y(), (de = v == null ? void 0 : v.onBlur) == null || de.call(
2236
+ v,
2237
+ Y
2234
2238
  );
2235
2239
  },
2236
- [x, m]
2237
- ), Ve = Se(
2238
- (Z) => {
2239
- var ce;
2240
- if (i || n) return;
2241
- const Y = Z.target.value;
2242
- ie(Y), C == null || C(Y, Z), (ce = m == null ? void 0 : m.onChange) == null || ce.call(
2243
- m,
2244
- Z
2240
+ [y, v]
2241
+ ), Ye = xe(
2242
+ (Y) => {
2243
+ var de;
2244
+ if (i || o) return;
2245
+ const K = Y.target.value;
2246
+ fe(K), C == null || C(K, Y), (de = v == null ? void 0 : v.onChange) == null || de.call(
2247
+ v,
2248
+ Y
2245
2249
  );
2246
2250
  },
2247
- [C, m, i, n]
2251
+ [C, v, i, o]
2248
2252
  );
2249
- return Ee(() => {
2250
- ie(g || "");
2251
- }, [g]), /* @__PURE__ */ o.jsx(
2252
- St.Wrapper,
2253
+ return ue(() => {
2254
+ fe(_ || "");
2255
+ }, [_]), /* @__PURE__ */ n.jsx(
2256
+ Nt.Wrapper,
2253
2257
  {
2254
- ref: re,
2258
+ ref: ie,
2255
2259
  size: r,
2256
2260
  error: s,
2257
- disabled: i || n,
2258
- loading: n,
2259
- className: V(a, t === "textarea" && L["textarea-wrapper"]),
2260
- wrapperProps: $,
2261
- wrapperStyles: k,
2262
- floatingLabelStyles: D,
2263
- prefixStyles: T,
2264
- suffixStyles: A,
2261
+ disabled: i || o,
2262
+ loading: o,
2263
+ className: I(a, e === "textarea" && M["textarea-wrapper"]),
2264
+ wrapperProps: L,
2265
+ wrapperStyles: E,
2266
+ floatingLabelStyles: A,
2267
+ prefixStyles: j,
2268
+ suffixStyles: T,
2265
2269
  labelProps: U,
2266
- helperProps: q,
2270
+ helperProps: B,
2267
2271
  showLimit: z,
2268
- maxLength: O,
2269
- hint: j,
2270
- showHint: B,
2271
- showHintOnEmpty: G,
2272
- prefix: p,
2273
- suffix: h,
2274
- onSuffixClick: S,
2275
- placeholder: c,
2276
- showLabel: _,
2277
- labelClassName: d,
2278
- hasValue: ue,
2279
- helper: f,
2280
- id: de,
2281
- value: le,
2282
- showGrip: ae,
2272
+ maxLength: N,
2273
+ hint: $,
2274
+ showHint: P,
2275
+ showHintOnEmpty: F,
2276
+ prefix: h,
2277
+ suffix: m,
2278
+ onSuffixClick: x,
2279
+ placeholder: l,
2280
+ showLabel: u,
2281
+ labelClassName: c,
2282
+ hasValue: ke,
2283
+ helper: p,
2284
+ id: ve,
2285
+ value: we,
2286
+ showGrip: ne,
2283
2287
  resize: Q,
2284
- ...J,
2285
- children: /* @__PURE__ */ o.jsx(
2286
- St,
2288
+ ...Z,
2289
+ children: /* @__PURE__ */ n.jsx(
2290
+ Nt,
2287
2291
  {
2288
- component: t,
2292
+ component: e,
2289
2293
  size: r,
2290
- value: le,
2291
- placeholder: c,
2294
+ value: we,
2295
+ placeholder: l,
2292
2296
  disabled: i,
2293
- loading: n,
2294
- onFocus: xe,
2295
- onBlur: We,
2296
- onChange: Ve,
2297
- onKeyDown: M,
2298
- onKeyUp: De,
2299
- maxLength: O,
2300
- truncate: H,
2301
- "data-empty": !ue,
2302
- shouldShowFloatingLabelClass: _e,
2303
- style: t === "textarea" ? N : void 0,
2297
+ loading: o,
2298
+ onFocus: Ve,
2299
+ onBlur: Ze,
2300
+ onChange: Ye,
2301
+ onKeyDown: S,
2302
+ onKeyUp: Be,
2303
+ maxLength: N,
2304
+ truncate: G,
2305
+ "data-empty": !ke,
2306
+ shouldShowFloatingLabelClass: je,
2307
+ style: e === "textarea" ? O : void 0,
2304
2308
  "aria-invalid": !!s,
2305
- "aria-errormessage": s ? `${de}-error` : void 0,
2306
- id: de,
2309
+ "aria-errormessage": s ? `${ve}-error` : void 0,
2310
+ id: ve,
2307
2311
  resize: Q,
2308
- ...m
2312
+ ...v
2309
2313
  }
2310
2314
  )
2311
2315
  }
2312
2316
  );
2313
2317
  }
2314
- ), X = {
2318
+ ), ae = {
2315
2319
  SMALL: "small",
2316
2320
  MEDIUM: "medium",
2317
2321
  LARGE: "large"
2318
- }, _n = (t, r, a, s) => {
2319
- switch (t) {
2320
- case X.LARGE:
2322
+ }, $n = (e, r, a, s) => {
2323
+ switch (e) {
2324
+ case ae.LARGE:
2321
2325
  return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
2322
- case X.MEDIUM:
2326
+ case ae.MEDIUM:
2323
2327
  return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
2324
- case X.SMALL:
2328
+ case ae.SMALL:
2325
2329
  return "10px 12px 10px 12px";
2326
2330
  default:
2327
2331
  return "12px 16px 12px 16px";
2328
2332
  }
2329
- }, pn = (t) => {
2330
- switch (t) {
2331
- case X.LARGE:
2333
+ }, Rn = (e) => {
2334
+ switch (e) {
2335
+ case ae.LARGE:
2332
2336
  return "56px";
2333
- case X.MEDIUM:
2337
+ case ae.MEDIUM:
2334
2338
  return "48px";
2335
- case X.SMALL:
2339
+ case ae.SMALL:
2336
2340
  return "40px";
2337
2341
  default:
2338
2342
  return "48px";
2339
2343
  }
2340
- }, fn = (t) => {
2341
- switch (t) {
2342
- case X.SMALL:
2344
+ }, Mn = (e) => {
2345
+ switch (e) {
2346
+ case ae.SMALL:
2343
2347
  return 8;
2344
2348
  // 8px для small
2345
- case X.MEDIUM:
2346
- case X.LARGE:
2349
+ case ae.MEDIUM:
2350
+ case ae.LARGE:
2347
2351
  return 12;
2348
2352
  // 12px для medium и large
2349
2353
  default:
2350
2354
  return 12;
2351
2355
  }
2352
- }, gn = (t, r, a) => ({
2356
+ }, In = (e, r, a) => ({
2353
2357
  wrapperStyles: {
2354
- height: t,
2355
- minHeight: t,
2356
- maxHeight: t,
2358
+ height: e,
2359
+ minHeight: e,
2360
+ maxHeight: e,
2357
2361
  boxSizing: "border-box",
2358
2362
  padding: r
2359
2363
  },
@@ -2367,10 +2371,10 @@ const St = Object.assign(un, {
2367
2371
  suffixStyles: {
2368
2372
  right: `${a}px`
2369
2373
  }
2370
- }), hn = (t, r, a) => ({
2374
+ }), Tn = (e, r, a) => ({
2371
2375
  wrapperStyles: {
2372
- minHeight: t,
2373
- maxHeight: t,
2376
+ minHeight: e,
2377
+ maxHeight: e,
2374
2378
  boxSizing: "border-box",
2375
2379
  padding: r
2376
2380
  },
@@ -2383,10 +2387,10 @@ const St = Object.assign(un, {
2383
2387
  suffixStyles: {
2384
2388
  right: `${a}px`
2385
2389
  }
2386
- }), bn = (t, r, a) => ({
2390
+ }), An = (e, r, a) => ({
2387
2391
  wrapperStyles: {
2388
- minHeight: t,
2389
- maxHeight: t,
2392
+ minHeight: e,
2393
+ maxHeight: e,
2390
2394
  boxSizing: "border-box",
2391
2395
  padding: r
2392
2396
  },
@@ -2399,15 +2403,15 @@ const St = Object.assign(un, {
2399
2403
  suffixStyles: {
2400
2404
  right: `${a}px`
2401
2405
  }
2402
- }), yn = (t, r, a, s) => {
2403
- const i = pn(t), n = _n(t, r, a, s), c = fn(t);
2404
- switch (t) {
2405
- case X.LARGE:
2406
- return gn(i, n, c);
2407
- case X.MEDIUM:
2408
- return hn(i, n, c);
2409
- case X.SMALL:
2410
- return bn(i, n, c);
2406
+ }), Nn = (e, r, a, s) => {
2407
+ const i = Rn(e), o = $n(e, r, a, s), l = Mn(e);
2408
+ switch (e) {
2409
+ case ae.LARGE:
2410
+ return In(i, o, l);
2411
+ case ae.MEDIUM:
2412
+ return Tn(i, o, l);
2413
+ case ae.SMALL:
2414
+ return An(i, o, l);
2411
2415
  default:
2412
2416
  return {
2413
2417
  wrapperStyles: {},
@@ -2416,112 +2420,112 @@ const St = Object.assign(un, {
2416
2420
  suffixStyles: {}
2417
2421
  };
2418
2422
  }
2419
- }, Fn = te(
2423
+ }, pi = X(
2420
2424
  ({
2421
- value: t = "",
2425
+ value: e = "",
2422
2426
  onChange: r,
2423
2427
  type: a = "text",
2424
2428
  placeholder: s,
2425
2429
  maxLength: i,
2426
- minLength: n,
2427
- autoComplete: c,
2428
- autoFocus: _,
2429
- size: d = X.MEDIUM,
2430
- inputProps: f,
2431
- error: p,
2432
- disabled: h,
2430
+ minLength: o,
2431
+ autoComplete: l,
2432
+ autoFocus: u,
2433
+ size: c = ae.MEDIUM,
2434
+ inputProps: p,
2435
+ error: h,
2436
+ disabled: m,
2433
2437
  loading: b,
2434
- helper: y,
2435
- prefix: x,
2436
- suffix: M,
2437
- clearable: S = !1,
2438
+ helper: g,
2439
+ prefix: y,
2440
+ suffix: S,
2441
+ clearable: x = !1,
2438
2442
  id: C,
2439
- showLabel: g = !0,
2440
- onFocus: $,
2441
- onBlur: k,
2442
- onSuffixClick: D,
2443
- onClear: T,
2444
- className: A,
2445
- truncate: N = !0,
2443
+ showLabel: _ = !0,
2444
+ onFocus: L,
2445
+ onBlur: E,
2446
+ onSuffixClick: A,
2447
+ onClear: j,
2448
+ className: T,
2449
+ truncate: O = !0,
2446
2450
  hint: U,
2447
- showHint: q = !1,
2451
+ showHint: B = !1,
2448
2452
  showHintOnEmpty: z = !1,
2449
- wrapperProps: O,
2450
- labelProps: m,
2451
- helperProps: j,
2452
- ...B
2453
- }, G) => {
2454
- const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!x, J = Q && g && !x, re = S && H && !(h || b), se = () => {
2455
- r == null || r(""), T == null || T();
2456
- }, de = re ? /* @__PURE__ */ o.jsx(
2457
- kt,
2453
+ wrapperProps: N,
2454
+ labelProps: v,
2455
+ helperProps: $,
2456
+ ...P
2457
+ }, F) => {
2458
+ const G = (e || "").length > 0, Q = c === ae.LARGE, ne = !!y, Z = Q && _ && !y, ie = x && G && !(m || b), ee = () => {
2459
+ r == null || r(""), j == null || j();
2460
+ }, ve = ie ? /* @__PURE__ */ n.jsx(
2461
+ Gt,
2458
2462
  {
2459
- size: d === X.SMALL ? "xs" : "sm",
2463
+ size: c === ae.SMALL ? "xs" : "sm",
2460
2464
  color: "var(--icon-secondary)",
2461
- onClick: se,
2465
+ onClick: ee,
2462
2466
  style: { cursor: "pointer" },
2463
2467
  "data-testid": "x-icon"
2464
2468
  }
2465
- ) : M, ve = {
2469
+ ) : S, Ae = {
2466
2470
  type: a,
2467
- minLength: n,
2468
- autoComplete: c,
2469
- autoFocus: _,
2470
- ...f
2471
- }, ie = yn(d, J, H, ae);
2472
- return /* @__PURE__ */ o.jsx(
2473
- At,
2471
+ minLength: o,
2472
+ autoComplete: l,
2473
+ autoFocus: u,
2474
+ ...p
2475
+ }, fe = Nn(c, Z, G, ne);
2476
+ return /* @__PURE__ */ n.jsx(
2477
+ Vt,
2474
2478
  {
2475
- size: d,
2476
- error: p,
2477
- disabled: h || b,
2479
+ size: c,
2480
+ error: h,
2481
+ disabled: m || b,
2478
2482
  loading: b,
2479
- helper: y,
2480
- prefix: x,
2481
- suffix: de,
2483
+ helper: g,
2484
+ prefix: y,
2485
+ suffix: ve,
2482
2486
  id: C,
2483
- showLabel: J,
2484
- onFocus: $,
2485
- onBlur: k,
2486
- onSuffixClick: D,
2487
+ showLabel: Z,
2488
+ onFocus: L,
2489
+ onBlur: E,
2490
+ onSuffixClick: A,
2487
2491
  onChange: r,
2488
- value: t,
2492
+ value: e,
2489
2493
  placeholder: s,
2490
- className: A,
2491
- wrapperStyles: ie.wrapperStyles,
2492
- floatingLabelStyles: ie.floatingLabelStyles,
2493
- prefixStyles: ie.prefixStyles,
2494
- suffixStyles: ie.suffixStyles,
2495
- wrapperProps: O,
2496
- labelProps: m,
2497
- helperProps: j,
2494
+ className: T,
2495
+ wrapperStyles: fe.wrapperStyles,
2496
+ floatingLabelStyles: fe.floatingLabelStyles,
2497
+ prefixStyles: fe.prefixStyles,
2498
+ suffixStyles: fe.suffixStyles,
2499
+ wrapperProps: N,
2500
+ labelProps: v,
2501
+ helperProps: $,
2498
2502
  showLimit: !1,
2499
2503
  maxLength: i,
2500
- inputProps: ve,
2504
+ inputProps: Ae,
2501
2505
  hint: U,
2502
- showHint: q,
2506
+ showHint: B,
2503
2507
  showHintOnEmpty: z,
2504
- truncate: N,
2505
- ...B
2508
+ truncate: O,
2509
+ ...P
2506
2510
  }
2507
2511
  );
2508
2512
  }
2509
- ), oe = {
2513
+ ), ce = {
2510
2514
  SMALL: "small",
2511
2515
  MEDIUM: "medium"
2512
- }, Pe = {
2516
+ }, He = {
2513
2517
  SMALL: "12px",
2514
2518
  MEDIUM: "16px"
2515
- }, mn = {
2519
+ }, Dn = {
2516
2520
  SMALL: "xs",
2517
2521
  MEDIUM: "sm"
2518
- }, Be = {
2522
+ }, We = {
2519
2523
  FILL: "fill",
2520
2524
  FIXED: "fixed"
2521
- }, Xe = {
2525
+ }, st = {
2522
2526
  SMALL: "112px",
2523
2527
  MEDIUM: "56px"
2524
- }, $e = {
2528
+ }, Ie = {
2525
2529
  SMALL: "48px",
2526
2530
  MEDIUM: "22px"
2527
2531
  }, ge = {
@@ -2529,238 +2533,698 @@ const St = Object.assign(un, {
2529
2533
  MEDIUM: "16px 16px 16px 16px",
2530
2534
  MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
2531
2535
  MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
2532
- }, be = {
2536
+ }, me = {
2533
2537
  SMALL: 48,
2534
2538
  MEDIUM: 56,
2535
2539
  LARGE: 112
2536
- }, vn = (t, r) => {
2537
- if (t === oe.SMALL)
2538
- return Xe.SMALL;
2540
+ }, On = (e, r) => {
2541
+ if (e === ce.SMALL)
2542
+ return st.SMALL;
2539
2543
  if (r)
2540
2544
  return `${r}px`;
2541
- switch (t) {
2542
- case oe.MEDIUM:
2543
- return Xe.MEDIUM;
2545
+ switch (e) {
2546
+ case ce.MEDIUM:
2547
+ return st.MEDIUM;
2544
2548
  default:
2545
- return Xe.MEDIUM;
2549
+ return st.MEDIUM;
2546
2550
  }
2547
- }, xn = (t, r) => {
2548
- if (t === oe.SMALL)
2549
- return $e.SMALL;
2551
+ }, Pn = (e, r) => {
2552
+ if (e === ce.SMALL)
2553
+ return Ie.SMALL;
2550
2554
  if (r)
2551
2555
  switch (r) {
2552
- case be.SMALL:
2553
- case be.MEDIUM:
2554
- return $e.MEDIUM;
2555
- case be.LARGE:
2556
- return $e.SMALL;
2556
+ case me.SMALL:
2557
+ case me.MEDIUM:
2558
+ return Ie.MEDIUM;
2559
+ case me.LARGE:
2560
+ return Ie.SMALL;
2557
2561
  default:
2558
- return $e.MEDIUM;
2562
+ return Ie.MEDIUM;
2559
2563
  }
2560
- switch (t) {
2561
- case oe.MEDIUM:
2562
- return $e.MEDIUM;
2564
+ switch (e) {
2565
+ case ce.MEDIUM:
2566
+ return Ie.MEDIUM;
2563
2567
  default:
2564
- return $e.MEDIUM;
2568
+ return Ie.MEDIUM;
2565
2569
  }
2566
- }, Cn = (t, r, a) => {
2567
- if (t === oe.SMALL)
2570
+ }, qn = (e, r, a) => {
2571
+ if (e === ce.SMALL)
2568
2572
  return ge.SMALL;
2569
2573
  if (r)
2570
2574
  switch (r) {
2571
- case be.SMALL:
2575
+ case me.SMALL:
2572
2576
  return ge.MEDIUM_WITH_PREFIX;
2573
- case be.MEDIUM:
2577
+ case me.MEDIUM:
2574
2578
  return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
2575
- case be.LARGE:
2579
+ case me.LARGE:
2576
2580
  return ge.MEDIUM;
2577
2581
  default:
2578
2582
  return ge.MEDIUM;
2579
2583
  }
2580
- switch (t) {
2581
- case oe.MEDIUM:
2584
+ switch (e) {
2585
+ case ce.MEDIUM:
2582
2586
  return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
2583
2587
  default:
2584
2588
  return ge.MEDIUM;
2585
2589
  }
2586
- }, wn = (t, r) => {
2587
- if (t === oe.SMALL)
2590
+ }, Un = (e, r) => {
2591
+ if (e === ce.SMALL)
2588
2592
  return "small";
2589
2593
  if (r)
2590
2594
  switch (r) {
2591
- case be.SMALL:
2595
+ case me.SMALL:
2592
2596
  return "small";
2593
- case be.MEDIUM:
2597
+ case me.MEDIUM:
2594
2598
  return "medium";
2595
- case be.LARGE:
2599
+ case me.LARGE:
2596
2600
  return "medium";
2597
2601
  default:
2598
2602
  return "medium";
2599
2603
  }
2600
- return t;
2601
- }, Sn = (t) => mn[t.toUpperCase()], En = (t) => Pe[t.toUpperCase()], Ln = (t, r, a, s) => {
2602
- const i = vn(t, r), n = xn(t, r), c = Cn(t, r, a);
2604
+ return e;
2605
+ }, Bn = (e) => Dn[e.toUpperCase()], Fn = (e) => He[e.toUpperCase()], zn = (e, r, a, s) => {
2606
+ const i = On(e, r), o = Pn(e, r), l = qn(e, r, a);
2603
2607
  return {
2604
2608
  wrapperStyles: {
2605
2609
  minHeight: i,
2606
2610
  // Для fill resize устанавливаем height: 100%
2607
- ...s === Be.FILL && { height: "100%" },
2611
+ ...s === We.FILL && { height: "100%" },
2608
2612
  // Для fixed resize устанавливаем фиксированную высоту
2609
- ...s === Be.FIXED && r && { height: i },
2613
+ ...s === We.FIXED && r && { height: i },
2610
2614
  boxSizing: "border-box",
2611
- padding: c
2615
+ padding: l
2612
2616
  },
2613
2617
  floatingLabelStyles: {
2614
- left: t === oe.SMALL ? Pe.SMALL : Pe.MEDIUM,
2618
+ left: e === ce.SMALL ? He.SMALL : He.MEDIUM,
2615
2619
  transformOrigin: "left top",
2616
- top: r === 112 && a && t === oe.MEDIUM ? Pe.MEDIUM : void 0
2620
+ top: r === 112 && a && e === ce.MEDIUM ? He.MEDIUM : void 0
2617
2621
  },
2618
2622
  suffixStyles: {
2619
- right: En(t)
2623
+ right: Fn(e)
2620
2624
  },
2621
2625
  textareaStyles: {
2622
- minHeight: n,
2626
+ minHeight: o,
2623
2627
  // Для fill resize flex: 1
2624
- ...s === Be.FILL && { flex: 1, minHeight: 0 },
2628
+ ...s === We.FILL && { flex: 1, minHeight: 0 },
2625
2629
  // Для fixed resize фиксированная высота
2626
- ...s === Be.FIXED && r && { height: n }
2630
+ ...s === We.FIXED && r && { height: o }
2627
2631
  }
2628
2632
  };
2629
- }, Pn = te(
2633
+ }, fi = X(
2630
2634
  ({
2631
- value: t = "",
2635
+ value: e = "",
2632
2636
  onChange: r,
2633
2637
  placeholder: a,
2634
2638
  maxLength: s,
2635
2639
  minLength: i,
2636
- autoFocus: n,
2637
- size: c = oe.MEDIUM,
2638
- textareaProps: _,
2639
- error: d,
2640
- disabled: f,
2641
- loading: p,
2642
- helper: h,
2640
+ autoFocus: o,
2641
+ size: l = ce.MEDIUM,
2642
+ textareaProps: u,
2643
+ error: c,
2644
+ disabled: p,
2645
+ loading: h,
2646
+ helper: m,
2643
2647
  suffix: b,
2644
- clearable: y = !1,
2645
- id: x,
2646
- showLabel: M = !0,
2647
- onFocus: S,
2648
+ clearable: g = !1,
2649
+ id: y,
2650
+ showLabel: S = !0,
2651
+ onFocus: x,
2648
2652
  onBlur: C,
2649
- onClear: g,
2650
- onKeyDown: $,
2651
- className: k,
2652
- rows: D = 1,
2653
- showLimit: T = !1,
2654
- wrapperProps: A,
2655
- labelProps: N,
2653
+ onClear: _,
2654
+ onKeyDown: L,
2655
+ className: E,
2656
+ rows: A = 1,
2657
+ showLimit: j = !1,
2658
+ wrapperProps: T,
2659
+ labelProps: O,
2656
2660
  helperProps: U,
2657
- showGrip: q,
2661
+ showGrip: B,
2658
2662
  minHeight: z,
2659
- resize: O,
2660
- ...m
2661
- }, j) => {
2662
- const B = (t || "").length > 0, G = M && !!a && (c === oe.SMALL || z !== 48), H = y && B && !(f || p), Q = () => {
2663
- r == null || r(""), g == null || g();
2664
- }, ae = H ? /* @__PURE__ */ o.jsx(
2665
- kt,
2663
+ resize: N,
2664
+ ...v
2665
+ }, $) => {
2666
+ const P = (e || "").length > 0, F = S && !!a && (l === ce.SMALL || z !== 48), G = g && P && !(p || h), Q = () => {
2667
+ r == null || r(""), _ == null || _();
2668
+ }, ne = G ? /* @__PURE__ */ n.jsx(
2669
+ Gt,
2666
2670
  {
2667
- size: Sn(c),
2671
+ size: Bn(l),
2668
2672
  color: "var(--icon-secondary)",
2669
2673
  onClick: Q,
2670
2674
  style: { cursor: "pointer" },
2671
2675
  "data-testid": "x-icon"
2672
2676
  }
2673
- ) : b, J = Ln(c, z, G && B, O), re = wn(c, z), se = {
2674
- rows: D,
2677
+ ) : b, Z = zn(l, z, F && P, N), ie = Un(l, z), ee = {
2678
+ rows: A,
2675
2679
  minLength: i,
2676
- autoFocus: n,
2677
- resize: O,
2678
- ..._
2680
+ autoFocus: o,
2681
+ resize: N,
2682
+ ...u
2679
2683
  };
2680
- return /* @__PURE__ */ o.jsx(
2681
- At,
2684
+ return /* @__PURE__ */ n.jsx(
2685
+ Vt,
2682
2686
  {
2683
- ref: j,
2687
+ ref: $,
2684
2688
  component: "textarea",
2685
- size: re,
2686
- error: d,
2687
- disabled: f || p,
2688
- loading: p,
2689
- helper: h,
2690
- suffix: ae,
2691
- id: x,
2692
- showLabel: G,
2693
- onFocus: S,
2689
+ size: ie,
2690
+ error: c,
2691
+ disabled: p || h,
2692
+ loading: h,
2693
+ helper: m,
2694
+ suffix: ne,
2695
+ id: y,
2696
+ showLabel: F,
2697
+ onFocus: x,
2694
2698
  onBlur: C,
2695
- onKeyDown: $,
2699
+ onKeyDown: L,
2696
2700
  onChange: r,
2697
- value: t || "",
2701
+ value: e || "",
2698
2702
  placeholder: a,
2699
- className: k,
2700
- "data-floating-label": G,
2701
- wrapperStyles: J.wrapperStyles,
2702
- floatingLabelStyles: J.floatingLabelStyles,
2703
- suffixStyles: J.suffixStyles,
2704
- textareaStyles: J.textareaStyles,
2705
- wrapperProps: A,
2706
- labelProps: N,
2703
+ className: E,
2704
+ "data-floating-label": F,
2705
+ wrapperStyles: Z.wrapperStyles,
2706
+ floatingLabelStyles: Z.floatingLabelStyles,
2707
+ suffixStyles: Z.suffixStyles,
2708
+ textareaStyles: Z.textareaStyles,
2709
+ wrapperProps: T,
2710
+ labelProps: O,
2707
2711
  helperProps: U,
2708
- showLimit: T && (z === 112 || c === oe.SMALL),
2712
+ showLimit: j && (z === 112 || l === ce.SMALL),
2709
2713
  maxLength: s,
2710
- inputProps: se,
2711
- resize: O,
2712
- showGrip: q,
2713
- ...m
2714
+ inputProps: ee,
2715
+ resize: N,
2716
+ showGrip: B,
2717
+ ...v
2714
2718
  }
2715
2719
  );
2716
2720
  }
2717
- ), Mn = "_helper_1vhgl_16", Qe = {
2718
- helper: Mn,
2719
- "helper--error": "_helper--error_1vhgl_27",
2720
- "helper--disabled": "_helper--disabled_1vhgl_32"
2721
- }, zn = ({
2722
- title: t,
2721
+ ), Wn = "_helper_1jq7j_16", nt = {
2722
+ helper: Wn,
2723
+ "helper--error": "_helper--error_1jq7j_28",
2724
+ "helper--disabled": "_helper--disabled_1jq7j_33"
2725
+ }, hi = ({
2726
+ title: e,
2723
2727
  error: r,
2724
2728
  className: a = "",
2725
2729
  style: s,
2726
2730
  disabled: i = !1,
2727
- "data-testid": n,
2728
- "aria-label": c,
2729
- "aria-describedby": _
2731
+ "data-testid": o,
2732
+ "aria-label": l,
2733
+ "aria-describedby": u
2730
2734
  }) => {
2731
- const d = !!r, f = V(
2732
- Qe.helper,
2733
- d && Qe["helper--error"],
2734
- i && Qe["helper--disabled"],
2735
+ const c = !!r, p = I(
2736
+ nt.helper,
2737
+ c && nt["helper--error"],
2738
+ i && nt["helper--disabled"],
2735
2739
  a
2736
- ), p = i ? t : r || t;
2737
- return /* @__PURE__ */ o.jsx(
2740
+ ), h = i ? e : r || e;
2741
+ return /* @__PURE__ */ n.jsx(
2738
2742
  "div",
2739
2743
  {
2740
- className: f,
2744
+ className: p,
2741
2745
  style: s,
2742
- "data-testid": n,
2743
- "aria-label": c,
2744
- "aria-describedby": _,
2745
- children: /* @__PURE__ */ o.jsx("p", { children: p })
2746
+ "data-testid": o,
2747
+ "aria-label": l,
2748
+ "aria-describedby": u,
2749
+ children: /* @__PURE__ */ n.jsx("p", { children: h })
2746
2750
  }
2747
2751
  );
2752
+ }, Gn = "_radio_1q34w_54", Hn = "_checked_1q34w_75", Vn = "_error_1q34w_80", Zn = "_disabled_1q34w_89", Yn = "_icon_1q34w_125", Kn = "_small_1q34w_133", Jn = "_medium_1q34w_140", Xn = "_large_1q34w_147", Qn = "_label_1q34w_154", eo = "_container_1q34w_180", to = "_input_1q34w_193", ao = "_card_1q34w_200", ro = "_smallCard_1q34w_206", so = "_mediumCard_1q34w_210", no = "_largeCard_1q34w_214", oe = {
2753
+ radio: Gn,
2754
+ checked: Hn,
2755
+ error: Vn,
2756
+ disabled: Zn,
2757
+ icon: Yn,
2758
+ small: Kn,
2759
+ medium: Jn,
2760
+ large: Xn,
2761
+ label: Qn,
2762
+ container: eo,
2763
+ input: to,
2764
+ card: ao,
2765
+ smallCard: ro,
2766
+ mediumCard: so,
2767
+ largeCard: no
2768
+ }, oo = "radio-container-", io = "radio-label", Zt = X(
2769
+ (e, r) => {
2770
+ const {
2771
+ name: a,
2772
+ id: s,
2773
+ value: i,
2774
+ size: o = "large",
2775
+ loading: l = !1,
2776
+ error: u,
2777
+ disabled: c = !1,
2778
+ checked: p = !1,
2779
+ containerClassName: h,
2780
+ className: m,
2781
+ children: b,
2782
+ clickable: g = "all",
2783
+ mode: y = "default",
2784
+ tabIndex: S,
2785
+ style: x,
2786
+ containerStyle: C,
2787
+ onChange: _,
2788
+ "data-testid": L,
2789
+ ...E
2790
+ } = e, A = !!u, j = c || l, T = g === "all", O = y === "card", U = oe[`${o}Card`], B = s ?? a, z = (F) => {
2791
+ j || _ == null || _(i, F);
2792
+ }, N = (F) => {
2793
+ F.key === "Enter" && !j && (F.preventDefault(), _ == null || _(i));
2794
+ }, v = (F) => F.stopPropagation(), $ = () => /* @__PURE__ */ n.jsxs(
2795
+ "div",
2796
+ {
2797
+ className: I(
2798
+ oe.radio,
2799
+ oe[o],
2800
+ {
2801
+ [oe.checked]: p,
2802
+ [oe.disabled]: j,
2803
+ [oe.error]: A && !j
2804
+ },
2805
+ m
2806
+ ),
2807
+ style: x,
2808
+ tabIndex: S || 1,
2809
+ "data-testid": `${oo}${B}`,
2810
+ children: [
2811
+ /* @__PURE__ */ n.jsx(
2812
+ "input",
2813
+ {
2814
+ "aria-errormessage": u,
2815
+ "aria-invalid": A,
2816
+ checked: p,
2817
+ className: oe.input,
2818
+ "data-testid": `radio-${B}`,
2819
+ disabled: j,
2820
+ id: B,
2821
+ name: a,
2822
+ ref: r,
2823
+ type: "radio",
2824
+ value: i,
2825
+ onChange: z,
2826
+ onClick: v
2827
+ }
2828
+ ),
2829
+ /* @__PURE__ */ n.jsx("svg", { "data-testid": `radio-icon-${B}`, viewBox: "0 0 8 8", className: oe.icon, children: /* @__PURE__ */ n.jsx("circle", { cx: 4, cy: 4, fill: "current", r: 4 }) })
2830
+ ]
2831
+ }
2832
+ ), P = () => /* @__PURE__ */ n.jsxs(
2833
+ "label",
2834
+ {
2835
+ "aria-checked": p,
2836
+ "aria-disabled": j,
2837
+ "data-testid": T ? L : io,
2838
+ htmlFor: B,
2839
+ style: C,
2840
+ className: I(oe.label, {
2841
+ [I(oe.container, oe[y], h)]: T,
2842
+ [U]: T && O
2843
+ }),
2844
+ onKeyDown: N,
2845
+ ...E,
2846
+ children: [
2847
+ $(),
2848
+ T && b
2849
+ ]
2850
+ }
2851
+ );
2852
+ return T ? P() : /* @__PURE__ */ n.jsxs(
2853
+ "div",
2854
+ {
2855
+ className: I(oe.container, oe[y], h, {
2856
+ [U]: O
2857
+ }),
2858
+ "data-testid": L,
2859
+ children: [
2860
+ P(),
2861
+ b
2862
+ ]
2863
+ }
2864
+ );
2865
+ }
2866
+ ), lo = "_group_o6mjt_7", co = "_vertical_o6mjt_12", uo = "_horizontal_o6mjt_16", Dt = {
2867
+ group: lo,
2868
+ vertical: co,
2869
+ horizontal: uo
2870
+ }, _o = X(
2871
+ (e, r) => {
2872
+ const {
2873
+ id: a,
2874
+ name: s,
2875
+ value: i,
2876
+ options: o,
2877
+ className: l,
2878
+ radioClassName: u,
2879
+ disabled: c = !1,
2880
+ layout: p = "vertical",
2881
+ "data-testid": h,
2882
+ ...m
2883
+ } = e;
2884
+ return /* @__PURE__ */ n.jsx(
2885
+ "div",
2886
+ {
2887
+ className: Ce(Dt.group, Dt[p], l),
2888
+ "data-testid": h ?? `radio-group-${s}`,
2889
+ id: a,
2890
+ ref: r,
2891
+ children: o.map(({ label: b, value: g, disabled: y }) => {
2892
+ const S = `${s}-${String(g)}`, x = String(g) === String(i);
2893
+ return /* @__PURE__ */ n.jsx(
2894
+ Zt,
2895
+ {
2896
+ id: S,
2897
+ checked: x,
2898
+ "data-testid": S,
2899
+ disabled: c || y,
2900
+ name: s,
2901
+ value: g,
2902
+ className: u,
2903
+ ...m,
2904
+ children: b
2905
+ },
2906
+ S
2907
+ );
2908
+ })
2909
+ }
2910
+ );
2911
+ }
2912
+ ), gi = Object.assign(Zt, {
2913
+ Group: _o
2914
+ }), po = "_root_1jj3e_25", fo = "_unordered_1jj3e_39", ho = "_ordered_1jj3e_43", go = "_sm_1jj3e_48", bo = "_md_1jj3e_59", mo = "_lg_1jj3e_70", yo = "_xl_1jj3e_81", ot = {
2915
+ root: po,
2916
+ unordered: fo,
2917
+ ordered: ho,
2918
+ sm: go,
2919
+ md: bo,
2920
+ lg: mo,
2921
+ xl: yo
2922
+ }, vo = (e) => {
2923
+ const { children: r, className: a, "data-testid": s = "list-item" } = e;
2924
+ return /* @__PURE__ */ n.jsx("li", { "data-testid": s, className: a, children: r });
2925
+ }, bi = Object.assign(
2926
+ X((e, r) => {
2927
+ const {
2928
+ variant: a = "unordered",
2929
+ className: s,
2930
+ children: i,
2931
+ size: o = "md",
2932
+ "data-testid": l = "list",
2933
+ ...u
2934
+ } = e, c = a === "ordered" ? "ol" : "ul";
2935
+ return /* @__PURE__ */ n.jsx(
2936
+ c,
2937
+ {
2938
+ "data-testid": l,
2939
+ ref: r,
2940
+ className: Ce(ot.root, ot[a], ot[o], s),
2941
+ ...a === "ordered" && u,
2942
+ children: i
2943
+ }
2944
+ );
2945
+ }),
2946
+ { Item: vo }
2947
+ ), xo = "_wrapper_1v8xn_5", Co = "_viewport_1v8xn_12", wo = "_mask_1v8xn_26", So = "_maskLeft_1v8xn_37", Lo = "_maskRight_1v8xn_42", Eo = "_visible_1v8xn_46", ko = "_control_1v8xn_51", jo = "_xs_1v8xn_70", $o = "_sm_1v8xn_73", Ro = "_md_1v8xn_76", Mo = "_left_1v8xn_80", Io = "_right_1v8xn_83", se = {
2948
+ wrapper: xo,
2949
+ viewport: Co,
2950
+ mask: wo,
2951
+ maskLeft: So,
2952
+ maskRight: Lo,
2953
+ visible: Eo,
2954
+ control: ko,
2955
+ xs: jo,
2956
+ sm: $o,
2957
+ md: Ro,
2958
+ left: Mo,
2959
+ right: Io
2960
+ }, To = "white", Ao = ({
2961
+ children: e,
2962
+ withControls: r = !0,
2963
+ className: a,
2964
+ size: s
2965
+ }) => {
2966
+ const i = qe(null), [o, l] = ye(!1), [u, c] = ye(!1), { ref: p, bgColor: h } = Ft(), m = p ?? { current: null }, b = h ?? To, g = r && o, y = r && u, S = ({ direction: _ }) => /* @__PURE__ */ n.jsx(
2967
+ "svg",
2968
+ {
2969
+ height: "12px",
2970
+ width: "12px",
2971
+ viewBox: "0 0 185.343 185.343",
2972
+ xmlns: "http://www.w3.org/2000/svg",
2973
+ children: /* @__PURE__ */ n.jsx("g", { transform: _ === "left" ? "scale(-1,1) translate(-185.343,0)" : void 0, children: /* @__PURE__ */ n.jsx(
2974
+ "path",
2975
+ {
2976
+ fill: "currentColor",
2977
+ d: `M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175
2978
+ l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934
2979
+ c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z`
2980
+ }
2981
+ ) })
2982
+ }
2983
+ ), x = () => {
2984
+ const _ = i.current;
2985
+ if (!_) return;
2986
+ const L = Math.round(_.scrollLeft), E = Math.round(_.scrollLeft + _.clientWidth), A = Math.round(_.scrollWidth);
2987
+ l(L > 0), c(E < A);
2988
+ }, C = (_) => {
2989
+ const L = i.current;
2990
+ if (!L) return;
2991
+ const E = L.clientWidth;
2992
+ L.scrollBy({ left: _ === "left" ? -E : E, behavior: "smooth" });
2993
+ };
2994
+ return ue(() => {
2995
+ const _ = i.current;
2996
+ if (!_) return;
2997
+ const L = (E) => {
2998
+ Math.abs(E.deltaX) > Math.abs(E.deltaY) || _.scrollWidth > _.clientWidth && (E.preventDefault(), _.scrollBy({ left: E.deltaY, behavior: "auto" }));
2999
+ };
3000
+ return _.addEventListener("wheel", L, { passive: !1 }), () => _.removeEventListener("wheel", L);
3001
+ }, []), ue(() => {
3002
+ x();
3003
+ const _ = i.current;
3004
+ if (_)
3005
+ return _.addEventListener("scroll", x, { passive: !0 }), window.addEventListener("resize", x), () => {
3006
+ _.removeEventListener("scroll", x), window.removeEventListener("resize", x);
3007
+ };
3008
+ }, []), /* @__PURE__ */ n.jsxs("div", { ref: m, className: I(se.wrapper, a), children: [
3009
+ g && /* @__PURE__ */ n.jsx(
3010
+ "div",
3011
+ {
3012
+ className: I(se.mask, se.maskLeft, o && se.visible),
3013
+ style: {
3014
+ background: `linear-gradient(to right, ${b} 17%, transparent 80%)`
3015
+ }
3016
+ }
3017
+ ),
3018
+ y && /* @__PURE__ */ n.jsx(
3019
+ "div",
3020
+ {
3021
+ className: I(se.mask, se.maskRight, u && se.visible),
3022
+ style: {
3023
+ background: `linear-gradient(to left, ${b} 17%, transparent 80%)`
3024
+ }
3025
+ }
3026
+ ),
3027
+ /* @__PURE__ */ n.jsx("div", { ref: i, className: se.viewport, children: e }),
3028
+ g && /* @__PURE__ */ n.jsx(
3029
+ "button",
3030
+ {
3031
+ type: "button",
3032
+ tabIndex: -1,
3033
+ "aria-hidden": "true",
3034
+ className: I(se.control, se.left, se[s]),
3035
+ onClick: () => C("left"),
3036
+ children: /* @__PURE__ */ n.jsx(S, { direction: "left" })
3037
+ }
3038
+ ),
3039
+ y && /* @__PURE__ */ n.jsx(
3040
+ "button",
3041
+ {
3042
+ type: "button",
3043
+ tabIndex: -1,
3044
+ "aria-hidden": "true",
3045
+ className: I(se.control, se.right, se[s]),
3046
+ onClick: () => C("right"),
3047
+ children: /* @__PURE__ */ n.jsx(S, { direction: "right" })
3048
+ }
3049
+ )
3050
+ ] });
3051
+ }, No = "_tabBar_1ndpm_82", Do = "_primary_1ndpm_88", Oo = "_secondary_1ndpm_93", Po = "_tab_1ndpm_82", qo = "_md_1ndpm_125", Uo = "_sm_1ndpm_129", Bo = "_xs_1ndpm_133", Fo = "_disabled_1ndpm_137", zo = "_selected_1ndpm_143", Wo = "_tabLabel_1ndpm_222", Go = "_tabPrefix_1ndpm_234", Ho = "_tabPostfix_1ndpm_270", J = {
3052
+ tabBar: No,
3053
+ primary: Do,
3054
+ secondary: Oo,
3055
+ tab: Po,
3056
+ md: qo,
3057
+ sm: Uo,
3058
+ xs: Bo,
3059
+ disabled: Fo,
3060
+ selected: zo,
3061
+ tabLabel: Wo,
3062
+ tabPrefix: Go,
3063
+ tabPostfix: Ho
3064
+ }, Vo = "md", Zo = !1, Yo = 8, Ko = "top-right-inside", Yt = Pt(null), Kt = () => {
3065
+ const e = qt(Yt);
3066
+ if (!e) throw new Error("useTabs должен использоваться внутри TabsProvider");
3067
+ return e;
3068
+ }, Jo = ({
3069
+ children: e,
3070
+ defaultActiveTab: r,
3071
+ activeTab: a,
3072
+ onChange: s
3073
+ }) => {
3074
+ const [i, o] = ye(r), l = a !== void 0, u = l ? a : i, c = (p) => {
3075
+ l || o(p), s && s(p);
3076
+ };
3077
+ return /* @__PURE__ */ n.jsx(Yt.Provider, { value: { activeTab: u, setTab: c }, children: e });
3078
+ }, Xo = ({
3079
+ mode: e,
3080
+ item: r,
3081
+ isActive: a,
3082
+ showBadge: s,
3083
+ badgeProps: i,
3084
+ size: o,
3085
+ isDisabled: l,
3086
+ onSelectTab: u
3087
+ }) => {
3088
+ const {
3089
+ value: c,
3090
+ label: p,
3091
+ prefix: h,
3092
+ prefixWrapperProps: m = {},
3093
+ postfix: b,
3094
+ postfixWrapperProps: g = {}
3095
+ } = r, { className: y, ...S } = m, { className: x, ...C } = g, _ = {
3096
+ primary: pe["typography-label-3-medium"],
3097
+ secondary: pe["typography-label-3-regular"],
3098
+ prefix: pe["typography-label-3-medium"],
3099
+ postfix: pe["typography-label-3-medium"]
3100
+ }, L = {
3101
+ size: Yo,
3102
+ position: Ko,
3103
+ ...i
3104
+ }, E = I(J.tab, J[e], J[o], {
3105
+ [J.selected]: a,
3106
+ [J.disabled]: l
3107
+ }), A = I(
3108
+ J.tabPrefix,
3109
+ y,
3110
+ J[e],
3111
+ _.prefix,
3112
+ {
3113
+ [J.selected]: a,
3114
+ [J.disabled]: l
3115
+ }
3116
+ ), j = I(
3117
+ J.tabPostfix,
3118
+ x,
3119
+ J[e],
3120
+ _.postfix,
3121
+ {
3122
+ [J.selected]: a,
3123
+ [J.disabled]: l
3124
+ }
3125
+ ), T = I(J.tabLabel, J[e], _[e]), O = (B) => {
3126
+ a || l || (u(c), B.currentTarget.scrollIntoView({ behavior: "smooth", inline: "center", block: "nearest" }));
3127
+ }, U = /* @__PURE__ */ n.jsxs(
3128
+ "button",
3129
+ {
3130
+ className: E,
3131
+ role: "tab",
3132
+ "aria-label": p,
3133
+ "aria-selected": a,
3134
+ "aria-disabled": l,
3135
+ "aria-controls": `tab-panel-${c}`,
3136
+ "data-testid": `tab-item-${c}`,
3137
+ onClick: O,
3138
+ children: [
3139
+ h && /* @__PURE__ */ n.jsx(
3140
+ "span",
3141
+ {
3142
+ className: A,
3143
+ ...S,
3144
+ "data-testid": `tab-prefix-${c}`,
3145
+ children: h
3146
+ }
3147
+ ),
3148
+ /* @__PURE__ */ n.jsx("span", { className: T, "data-testid": `tab-label-${c}`, children: p }),
3149
+ b && /* @__PURE__ */ n.jsx(
3150
+ "span",
3151
+ {
3152
+ className: j,
3153
+ ...C,
3154
+ "data-testid": `tab-postfix-${c}`,
3155
+ children: b
3156
+ }
3157
+ )
3158
+ ]
3159
+ }
3160
+ );
3161
+ return s ? /* @__PURE__ */ n.jsx(Gr, { ...L, "data-testid": `tab-badge-${c}`, children: U }) : U;
3162
+ }, Qo = ({
3163
+ mode: e,
3164
+ items: r,
3165
+ size: a = Vo,
3166
+ isAllItemsDisabled: s = Zo
3167
+ }) => {
3168
+ const { activeTab: i, setTab: o } = Kt(), l = Wr();
3169
+ return /* @__PURE__ */ n.jsx(Ao, { size: a, withControls: l, children: /* @__PURE__ */ n.jsx(
3170
+ "div",
3171
+ {
3172
+ role: "tablist",
3173
+ "data-testid": "tabs-bar",
3174
+ "aria-orientation": "horizontal",
3175
+ className: I(J.tabBar, J[e]),
3176
+ children: r.map((u) => /* @__PURE__ */ n.jsx(
3177
+ Xo,
3178
+ {
3179
+ size: a,
3180
+ item: u,
3181
+ mode: e,
3182
+ showBadge: u.showBadge,
3183
+ badgeProps: u.badgeProps,
3184
+ isActive: i === u.value,
3185
+ isDisabled: s || u.isDisabled,
3186
+ onSelectTab: o
3187
+ },
3188
+ u.value
3189
+ ))
3190
+ }
3191
+ ) });
3192
+ }, ei = ({ tabValue: e, children: r, ...a }) => /* @__PURE__ */ n.jsx(
3193
+ "div",
3194
+ {
3195
+ role: "tabpanel",
3196
+ "data-testid": `tab-panel-${e}`,
3197
+ "aria-labelledby": `tab-item-${e}`,
3198
+ ...a,
3199
+ children: r
3200
+ }
3201
+ ), ti = ({ children: e, ...r }) => {
3202
+ const { activeTab: a } = Kt(), s = lt.Children.toArray(e);
3203
+ return /* @__PURE__ */ n.jsx("div", { "data-testid": "tab-content", ...r, children: s.map((i) => i.props.tabValue === a ? i : null) });
3204
+ }, mi = {
3205
+ Provider: Jo,
3206
+ Content: ti,
3207
+ Panel: ei,
3208
+ Bar: Qo
2748
3209
  };
2749
3210
  export {
2750
- Rn as Avatar,
2751
- kn as Badge,
2752
- In as Button,
2753
- Un as Checkbox,
2754
- Nn as ConfigProvider,
2755
- zn as Helper,
2756
- Tn as Image,
2757
- Vr as Loader,
2758
- On as Tag,
2759
- Pn as TextArea,
2760
- Fn as TextInput,
2761
- Bn as Typography,
2762
- qr as enUS,
2763
- Dn as ruRU,
2764
- Gr as useConfig,
2765
- An as useLocale
3211
+ ni as Avatar,
3212
+ Gr as Badge,
3213
+ si as Button,
3214
+ ui as Checkbox,
3215
+ li as ConfigProvider,
3216
+ hi as Helper,
3217
+ oi as Image,
3218
+ bi as List,
3219
+ is as Loader,
3220
+ gi as Radio,
3221
+ mi as Tabs,
3222
+ di as Tag,
3223
+ fi as TextArea,
3224
+ pi as TextInput,
3225
+ _i as Typography,
3226
+ cs as enUS,
3227
+ ci as ruRU,
3228
+ ds as useConfig,
3229
+ ii as useLocale
2766
3230
  };