skillgrid 0.0.25-dev-38682-image.1172030 → 0.0.26

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