skillgrid 0.0.25 → 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 (36) hide show
  1. package/dist/components/Button/Button.d.ts +1 -1
  2. package/dist/components/Button/Button.type.d.ts +121 -43
  3. package/dist/components/Button/assets/ArrowIcon.d.ts +5 -0
  4. package/dist/components/Button/assets/ArrowRightIcon.d.ts +5 -0
  5. package/dist/components/Button/assets/CrossIcon.d.ts +5 -0
  6. package/dist/components/Button/assets/DownloadIcon.d.ts +5 -0
  7. package/dist/components/Button/assets/FollowIcon.d.ts +5 -0
  8. package/dist/components/Button/assets/HeartIcon.d.ts +5 -0
  9. package/dist/components/Button/assets/LocationIcon.d.ts +5 -0
  10. package/dist/components/Button/assets/MapMarkerIcon.d.ts +5 -0
  11. package/dist/components/Button/assets/index.d.ts +9 -0
  12. package/dist/components/Button/assets/types.d.ts +7 -0
  13. package/dist/components/Button/lib/get-safe-props.d.ts +8 -0
  14. package/dist/components/Button/lib/get-safe-props.test.d.ts +1 -0
  15. package/dist/components/Button/lib/get-typography.d.ts +11 -0
  16. package/dist/components/Button/lib/get-typography.test.d.ts +1 -0
  17. package/dist/components/Button/preview/index.d.ts +8 -0
  18. package/dist/components/Radio/Radio.type.d.ts +14 -2
  19. package/dist/components/Radio/RadioGroup/RadioGroup.d.ts +2 -1
  20. package/dist/components/Radio/RadioGroup/RadioGroup.type.d.ts +1 -1
  21. package/dist/components/Radio/index.d.ts +4 -2
  22. package/dist/components/Tabs/ScrollWrapper.d.ts +13 -0
  23. package/dist/components/Tabs/Tabs.d.ts +27 -0
  24. package/dist/components/Tabs/Tabs.type.d.ts +199 -0
  25. package/dist/components/Tabs/index.d.ts +2 -0
  26. package/dist/hooks/index.d.ts +1 -0
  27. package/dist/hooks/useIsMobile.d.ts +1 -0
  28. package/dist/hooks/useViewPortSize.d.ts +4 -0
  29. package/dist/hooks/useWindowEvent.d.ts +1 -0
  30. package/dist/index.cjs.js +11 -11
  31. package/dist/index.css +1 -1
  32. package/dist/index.d.ts +2 -0
  33. package/dist/index.es.js +1905 -1729
  34. package/dist/types/common.d.ts +1 -0
  35. package/dist/types/index.d.ts +1 -0
  36. package/package.json +2 -1
package/dist/index.es.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as Et from "react";
2
- import Lt, { forwardRef as te, useState as Ne, useEffect as Ee, useRef as ze, useCallback as Se, Fragment as Mt, createContext as ra, useContext as sa, useLayoutEffect as na, useImperativeHandle as oa, useId as $t } from "react";
3
- import { clsx as V } from "clsx";
4
- import './index.css';function ia(t) {
5
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ import * as 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
+ import { clsx as B } from "clsx";
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 Ue = { exports: {} }, Re = {};
7
+ var Pe = { exports: {} }, Ie = {};
8
8
  /**
9
9
  * @license React
10
10
  * react-jsx-runtime.production.min.js
@@ -14,21 +14,21 @@ var Ue = { exports: {} }, Re = {};
14
14
  * This source code is licensed under the MIT license found in the
15
15
  * LICENSE file in the root directory of this source tree.
16
16
  */
17
- var ft;
18
- function la() {
19
- if (ft) return Re;
20
- ft = 1;
21
- var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = { key: !0, ref: !0, __self: !0, __source: !0 };
22
- function c(_, d, f) {
23
- var p, h = {}, b = null, y = null;
24
- f !== void 0 && (b = "" + f), d.key !== void 0 && (b = "" + d.key), d.ref !== void 0 && (y = d.ref);
25
- for (p in d) s.call(d, p) && !n.hasOwnProperty(p) && (h[p] = d[p]);
26
- if (_ && _.defaultProps) for (p in d = _.defaultProps, d) h[p] === void 0 && (h[p] = d[p]);
27
- return { $$typeof: r, type: _, key: b, ref: y, props: h, _owner: i.current };
17
+ var 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 Re.Fragment = a, Re.jsx = c, Re.jsxs = c, Re;
29
+ return Ie.Fragment = r, Ie.jsx = c, Ie.jsxs = c, Ie;
30
30
  }
31
- var ke = {};
31
+ var Te = {};
32
32
  /**
33
33
  * @license React
34
34
  * react-jsx-runtime.development.js
@@ -38,91 +38,91 @@ var ke = {};
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
- var gt;
42
- function ca() {
43
- return gt || (gt = 1, process.env.NODE_ENV !== "production" && function() {
44
- var t = Lt, r = Symbol.for("react.element"), a = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), n = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), _ = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), f = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), x = Symbol.iterator, M = "@@iterator";
45
- function S(e) {
46
- if (e === null || typeof e != "object")
41
+ var 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 = x && e[x] || e[M];
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), v = 1; v < l; v++)
55
- u[v - 1] = arguments[v];
56
- $("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 $(e, l, u) {
59
+ function M(t, l, _) {
60
60
  {
61
- var v = C.ReactDebugCurrentFrame, I = v.getStackAddendum();
62
- I !== "" && (l += "%s", u = u.concat([I]));
63
- var R = u.map(function(E) {
64
- return String(E);
61
+ var 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
- R.unshift("Warning: " + l), Function.prototype.apply.call(console[e], console, R);
66
+ O.unshift("Warning: " + l), Function.prototype.apply.call(console[t], console, O);
67
67
  }
68
68
  }
69
- var k = !1, D = !1, T = !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 === p || A || e === y || k || D || T || typeof e == "object" && e !== null && (e.$$typeof === b || e.$$typeof === h || e.$$typeof === c || e.$$typeof === _ || e.$$typeof === d || // This needs to include all possible module reference object
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 z(e, l, u) {
79
- var v = e.displayName;
80
- if (v)
81
- return v;
82
- var I = l.displayName || l.name || "";
83
- return I !== "" ? u + "(" + I + ")" : u;
78
+ function 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:
105
- return "Suspense";
106
104
  case p:
105
+ return "Suspense";
106
+ case f:
107
107
  return "SuspenseList";
108
108
  }
109
- if (typeof e == "object")
110
- switch (e.$$typeof) {
111
- case _:
112
- var l = e;
113
- return O(l) + ".Consumer";
109
+ if (typeof t == "object")
110
+ switch (t.$$typeof) {
111
+ case u:
112
+ var 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 z(e, e.render, "ForwardRef");
119
- case h:
120
- var v = e.displayName || null;
121
- return v !== null ? v : m(e.type) || "Memo";
122
- case b: {
123
- var I = e, R = I._payload, E = 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(E(R));
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, B = 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 (B === 0) {
140
- G = console.log, H = console.info, Q = console.warn, ae = console.error, J = console.group, re = console.groupCollapsed, se = console.groupEnd;
141
- var e = {
139
+ if (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
- B++;
157
+ D++;
158
158
  }
159
159
  }
160
- function ie() {
160
+ function de() {
161
161
  {
162
- if (B--, B === 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
- B < 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 v = I.stack.trim().match(/\n( *(at )?)/);
203
- ue = v && v[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 De(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 v;
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 R;
227
- R = 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 E = function() {
230
+ var k = function() {
231
231
  throw Error();
232
232
  };
233
- if (Object.defineProperty(E.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(E, []);
240
- } catch (ee) {
241
- v = ee;
239
+ Reflect.construct(k, []);
240
+ } catch (re) {
241
+ C = re;
242
242
  }
243
- Reflect.construct(e, [], E);
243
+ Reflect.construct(t, [], k);
244
244
  } else {
245
245
  try {
246
- E.call();
247
- } catch (ee) {
248
- v = ee;
246
+ k.call();
247
+ } catch (re) {
248
+ C = re;
249
249
  }
250
- e.call(E.prototype);
250
+ t.call(k.prototype);
251
251
  }
252
252
  } else {
253
253
  try {
254
254
  throw Error();
255
- } catch (ee) {
256
- v = ee;
255
+ } catch (re) {
256
+ C = re;
257
257
  }
258
- e();
258
+ t();
259
259
  }
260
- } catch (ee) {
261
- if (ee && v && typeof ee.stack == "string") {
262
- for (var w = ee.stack.split(`
263
- `), K = v.stack.split(`
264
- `), F = w.length - 1, W = K.length - 1; F >= 1 && W >= 0 && w[F] !== K[W]; )
265
- W--;
266
- for (; F >= 1 && W >= 0; F--, W--)
267
- if (w[F] !== K[W]) {
268
- if (F !== 1 || W !== 1)
260
+ } catch (re) {
261
+ if (re && 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
+ V--;
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 (F--, W--, W < 0 || w[F] !== K[W]) {
271
- var ne = `
272
- ` + w[F].replace(" at new ", " at ");
273
- return e.displayName && ne.includes("<anonymous>") && (ne = ne.replace("<anonymous>", e.displayName)), typeof e == "function" && _e.set(e, ne), ne;
270
+ if (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 (F >= 1 && W >= 0);
275
+ while (G >= 1 && V >= 0);
276
276
  break;
277
277
  }
278
278
  }
279
279
  } finally {
280
- me = !1, ye.current = R, 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 We(e, l, u) {
286
- return De(e, !1);
285
+ function Ge(t, l, _) {
286
+ return qe(t, !1);
287
287
  }
288
- function Ve(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 De(e, Ve(e));
297
- if (typeof e == "string")
298
- return le(e);
299
- switch (e) {
300
- case f:
301
- return le("Suspense");
295
+ if (typeof t == "function")
296
+ return qe(t, Ve(t));
297
+ if (typeof t == "string")
298
+ return ye(t);
299
+ switch (t) {
302
300
  case p:
303
- return le("SuspenseList");
301
+ return ye("Suspense");
302
+ case f:
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 We(e.render);
309
- case h:
310
- return Z(e.type, l, u);
311
- case b: {
312
- var v = e, I = v._payload, R = v._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(R(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 Oe(e) {
323
- if (e) {
324
- var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
325
- tt.setExtraStackFrame(u);
321
+ var K = Object.prototype.hasOwnProperty, 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, v, I) {
329
+ function Bt(t, l, _, C, T) {
330
330
  {
331
- var R = Function.call.bind(Y);
332
- for (var E in e)
333
- if (R(e, E)) {
334
- var w = void 0;
331
+ var 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[E] != "function") {
337
- var K = Error((v || "React class") + ": " + u + " type `" + E + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[E] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
338
- throw K.name = "Invariant Violation", K;
336
+ if (typeof t[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
- w = e[E](l, E, v, u, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
341
- } catch (F) {
342
- w = F;
340
+ 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
- w && !(w instanceof Error) && (Oe(I), g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", v || "React class", u, E, typeof w), Oe(null)), w instanceof Error && !(w.message in ce) && (ce[w.message] = !0, Oe(I), g("Failed %s type: %s", u, w.message), Oe(null));
344
+ 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 He(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, v, I, R, E) {
420
- var w = {
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: E,
426
+ ref: _,
427
+ props: k,
428
428
  // Record the component responsible for creating this element.
429
- _owner: R
429
+ _owner: O
430
430
  };
431
- return w._store = {}, Object.defineProperty(w._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(w, "_self", {
436
+ }), Object.defineProperty(E, "_self", {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
- value: v
441
- }), Object.defineProperty(w, "_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(w.props), Object.freeze(w)), w;
445
+ value: T
446
+ }), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
447
447
  };
448
- function qt(e, l, u, v, I) {
448
+ function Qt(t, l, _, C, T) {
449
449
  {
450
- var R, E = {}, w = null, K = null;
451
- u !== void 0 && (rt(u), w = "" + u), Pt(l) && (rt(l.key), w = "" + l.key), Ft(l) && (K = l.ref, zt(l, I));
452
- for (R in l)
453
- Y.call(l, R) && !Bt.hasOwnProperty(R) && (E[R] = l[R]);
454
- if (e && e.defaultProps) {
455
- var F = e.defaultProps;
456
- for (R in F)
457
- E[R] === void 0 && (E[R] = F[R]);
450
+ var 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 (w || K) {
460
- var W = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
461
- w && Wt(E, W), K && Vt(E, W);
459
+ if (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, w, K, I, v, st.current, E);
463
+ return Xt(t, E, ee, T, C, ct.current, k);
464
464
  }
465
465
  }
466
- var qe = C.ReactCurrentOwner, it = C.ReactDebugCurrentFrame;
467
- function Le(e) {
468
- if (e) {
469
- var l = e._owner, u = Z(e.type, e._source, l ? l.type : null);
470
- it.setExtraStackFrame(u);
466
+ var 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 Ge;
475
- Ge = !1;
476
- function Ze(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 (qe.current) {
482
- var e = m(qe.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 v = "";
517
- e && e._owner && e._owner !== qe.current && (v = " It was passed a child from " + m(e._owner.type) + "."), Le(e), g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', u, v), Le(null);
515
+ 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 (He(e))
525
- for (var u = 0; u < e.length; u++) {
526
- var v = e[u];
527
- Ze(v) && dt(v, 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 (Ze(e))
530
- e._store && (e._store.validated = !0);
531
- else if (e) {
532
- var I = S(e);
533
- if (typeof I == "function" && I !== e.entries)
534
- for (var R = I.call(e), E; !(E = R.next()).done; )
535
- Ze(E.value) && dt(E.value, l);
529
+ else if (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 v = m(l);
555
- Nt(u, e.props, "prop", v, e);
556
- } else if (l.PropTypes !== void 0 && !Ge) {
557
- Ge = !0;
558
- var I = m(l);
559
- g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", I || "Unknown");
553
+ if (_) {
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 v = l[u];
568
- if (v !== "children" && v !== "key") {
569
- Le(e), g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), Le(null);
566
+ for (var 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, v, I, R) {
576
+ var yt = {};
577
+ function mt(t, l, _, C, T, O) {
578
578
  {
579
- var E = q(e);
580
- if (!E) {
581
- var w = "";
582
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (w += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
583
- var K = Gt();
584
- K ? w += K : w += lt();
585
- var F;
586
- e === null ? F = "null" : He(e) ? F = "array" : e !== void 0 && e.$$typeof === r ? (F = "<" + (m(e.type) || "Unknown") + " />", w = " Did you accidentally export a JSX literal instead of a component?") : F = typeof e, g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", F, w);
579
+ var 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 W = qt(e, l, u, I, R);
589
- if (W == null)
590
- return W;
591
- if (E) {
592
- var ne = l.children;
593
- if (ne !== void 0)
594
- if (v)
595
- if (He(ne)) {
596
- for (var Me = 0; Me < ne.length; Me++)
597
- ut(ne[Me], e);
598
- Object.freeze && Object.freeze(ne);
588
+ var V = Qt(t, l, _, T, O);
589
+ if (V == null)
590
+ return V;
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
- }), Ye = ee.length > 0 ? "{key: someKey, " + ee.join(": ..., ") + ": ...}" : "{key: someKey}";
608
- if (!_t[Ce + Ye]) {
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} />`, Ye, Ce, ta, Ce), _t[Ce + Ye] = !0;
615
+ <%s key={someKey} {...props} />`, Xe, me, lr, me), yt[me + Xe] = !0;
616
616
  }
617
617
  }
618
- return e === s ? Jt(W) : Yt(W), W;
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
- ke.Fragment = s, ke.jsx = Qt, ke.jsxs = ea;
629
- }()), ke;
627
+ var or = sr, ir = nr;
628
+ Te.Fragment = n, Te.jsx = or, Te.jsxs = ir;
629
+ }()), Te;
630
630
  }
631
- var ht;
632
- function da() {
633
- return ht || (ht = 1, process.env.NODE_ENV === "production" ? Ue.exports = la() : Ue.exports = ca()), Ue.exports;
631
+ var xt;
632
+ function yr() {
633
+ return xt || (xt = 1, process.env.NODE_ENV === "production" ? Pe.exports = gr() : Pe.exports = hr()), Pe.exports;
634
634
  }
635
- var o = da();
636
- const ua = (t) => t.as === "a", _a = (t) => t.as === void 0 || t.as === "button", pa = "_button_1abee_213", fa = "_disabled_1abee_237", ga = "_loading_1abee_237", ha = "_neutral_1abee_259", ba = "_accent_1abee_263", ya = "_positive_1abee_267", ma = "_negative_1abee_271", va = "_contrast_1abee_275", xa = "_special_1abee_279", Ca = "_primary_1abee_284", wa = "_secondary_1abee_285", Sa = "_tertiary_1abee_286", Ea = "_label_1abee_321", La = "_rightGroup_1abee_333", Ma = "_iconOnly_1abee_349", $a = "_large_1abee_357", ja = "_medium_1abee_361", Ia = "_small_1abee_365", Ra = "_spaceBetween_1abee_370", ka = "_stretched_1abee_384", Ta = "_icon_1abee_349", Aa = "_badge_1abee_705", Na = "_badgeMedium_1abee_721", Da = "_circular_1abee_738", Oa = "_badgeSmall_1abee_743", Ua = "_badgeExtraSmall_1abee_765", Ba = "_withSubcaption_1abee_784", Fa = "_subcaption_1abee_797", Pa = "_loader_1abee_804", za = "_spin_1abee_1", Wa = "_l_1abee_237", Va = "_m_1abee_361", Ha = "_s_1abee_279", qa = "_xs_1abee_869", P = {
637
- button: pa,
638
- disabled: fa,
639
- loading: ga,
640
- neutral: ha,
641
- accent: ba,
642
- positive: ya,
643
- negative: ma,
644
- contrast: va,
645
- special: xa,
646
- primary: Ca,
647
- secondary: wa,
648
- tertiary: Sa,
649
- label: Ea,
650
- rightGroup: La,
651
- iconOnly: Ma,
652
- large: $a,
653
- medium: ja,
654
- small: Ia,
655
- spaceBetween: Ra,
656
- stretched: ka,
657
- icon: Ta,
658
- badge: Aa,
659
- badgeMedium: Na,
660
- circular: Da,
661
- badgeSmall: Oa,
662
- badgeExtraSmall: Ua,
663
- withSubcaption: Ba,
664
- subcaption: Fa,
665
- loader: Pa,
666
- spin: za,
667
- l: Wa,
668
- m: Va,
669
- s: Ha,
670
- xs: qa
671
- }, bt = ({
672
- isLoading: t,
673
- showBadge: r,
674
- badgeValue: a,
675
- badgeSize: s,
676
- icon: i,
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";
697
+ }
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: _,
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: P.loader, "data-testid": "button-loader", "aria-hidden": "true" });
685
- const p = s === "extra-small", h = parseInt(String(a), 10), b = !isNaN(h) && h >= 0 && h <= 9;
686
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
687
- r && (a || p) && /* @__PURE__ */ o.jsx(
688
- "span",
689
- {
690
- "data-testid": "button-badge",
691
- className: V(
692
- P.badge,
693
- P[`badge${p ? "ExtraSmall" : s === "medium" ? "Medium" : "Small"}`],
694
- { [P.circular]: b && !p }
695
- ),
696
- children: !p && a
697
- }
698
- ),
699
- _ && f !== "s" && f !== "xs" ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
700
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
701
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-subcaption", className: P.subcaption, children: d })
702
- ] }) : n ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
703
- /* @__PURE__ */ o.jsx("span", { "data-testid": "button-label", className: P.label, children: n }),
704
- /* @__PURE__ */ o.jsxs("div", { "data-testid": "button-right-group", className: P.rightGroup, children: [
705
- i && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: P.icon, children: i }),
706
- c && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-postfix", className: P.postfix, children: c })
732
+ if (e && u)
733
+ return /* @__PURE__ */ 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: P.icon, children: i })
750
+ ] }),
751
+ !p && !n && /* @__PURE__ */ o.jsx("span", { "data-testid": "button-icon", className: W.icon, children: a })
709
752
  ] });
710
- }, In = 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: _ = !1,
718
- badgeSize: d = "small",
719
- badgeValue: f,
720
- showSubcaption: p = !1,
721
- subcaption: h,
722
- stretched: b = !1,
723
- spaceBetween: y = !1,
724
- icon: x,
725
- postfix: M,
726
- className: S,
727
- children: C
728
- } = t, g = c, $ = n, k = !g && !$, D = !!x && !C, T = V(
729
- P.button,
730
- P[s],
731
- P[a],
732
- P[i],
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
- [P.disabled]: g,
735
- [P.loading]: $,
736
- [P.stretched]: b,
737
- [P.spaceBetween]: y && b,
738
- [P.withSubcaption]: p && h && s !== "s" && s !== "xs",
739
- [P.iconOnly]: D
771
+ [W.disabled]: 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
- S
742
- ), A = {
743
- isLoading: $,
744
- showBadge: _,
745
- badgeValue: f,
746
- badgeSize: d,
747
- icon: x,
748
- children: C,
749
- postfix: M,
750
- showSubcaption: p,
751
- subcaption: h,
752
- size: s
780
+ 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: z,
760
- buttonStyle: O,
761
- loading: m,
762
- disabled: j,
763
- showBadge: B,
764
- badgeSize: G,
765
- badgeValue: H,
766
- showSubcaption: Q,
767
- subcaption: ae,
768
- stretched: J,
769
- spaceBetween: re,
770
- icon: se,
771
- postfix: de,
772
- className: ve,
773
- tabIndex: ie,
774
- children: ye,
775
- "data-testid": ue,
776
- style: le,
777
- ...me
778
- } = t, _e = (xe) => {
779
- k && U && U(xe);
791
+ if (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: T,
786
- href: k ? N : void 0,
787
- tabIndex: t.tabIndex,
788
- onClick: _e,
789
- "data-testid": ue,
790
- "aria-disabled": g || $,
791
- style: le,
792
- ...me,
793
- children: /* @__PURE__ */ o.jsx(bt, { ...A })
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: z,
803
- buttonStyle: O,
804
- loading: m,
805
- disabled: j,
806
- showBadge: B,
807
- badgeSize: G,
808
- badgeValue: H,
809
- showSubcaption: Q,
810
- subcaption: ae,
811
- stretched: J,
812
- spaceBetween: re,
813
- icon: se,
814
- postfix: de,
815
- className: ve,
816
- tabIndex: ie,
817
- children: ye,
818
- "data-testid": ue,
819
- style: le,
820
- ...me
821
- } = t, _e = (xe) => {
822
- k && U && U(xe);
823
+ if (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: T,
830
- disabled: g,
831
- tabIndex: t.tabIndex,
832
- onClick: _e,
833
- "data-testid": ue,
834
- "aria-disabled": g || $,
835
- style: le,
836
- ...me,
837
- children: /* @__PURE__ */ o.jsx(bt, { ...A })
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 Je = { 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 _ = arguments[c];
857
- _ && (n = i(n, s(_)));
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 _ in n)
872
- r.call(n, _) && n[_] && (c = i(c, _));
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
- }(Je)), Je.exports;
883
+ }(et)), et.exports;
881
884
  }
882
- var Za = Ga();
883
- const Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1kyiq_41", Ka = "_icon_1kyiq_58", Xa = "_disabled_1kyiq_63", Qa = "_loading_1kyiq_68", er = "_image_1kyiq_74", tr = "_name_1kyiq_74", pe = {
884
- avatar: Ya,
885
- clickable: Ja,
886
- icon: Ka,
887
- disabled: Xa,
888
- loading: Qa,
889
- image: er,
890
- name: tr,
885
+ var 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 Ie = /* @__PURE__ */ ia(Za), Ya = "_avatar_1kyiq_17", Ja = "_clickable_1ky
901
904
  "color-contrast": "_color-contrast_1kyiq_167",
902
905
  "variant-light": "_variant-light_1kyiq_173",
903
906
  "variant-outline": "_variant-outline_1kyiq_245"
904
- }, Ae = {
905
- "typography-title-1-semibold": "_typography-title-1-semibold_1lyxn_1",
906
- "typography-title-2-semibold": "_typography-title-2-semibold_1lyxn_10",
907
- "typography-title-3-semibold": "_typography-title-3-semibold_1lyxn_19",
908
- "typography-title-4-semibold": "_typography-title-4-semibold_1lyxn_28",
909
- "typography-title-5-semibold": "_typography-title-5-semibold_1lyxn_37",
910
- "typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
911
- "typography-subtitle-2-semibold": "_typography-subtitle-2-semibold_1lyxn_53",
912
- "typography-subtitle-3-semibold": "_typography-subtitle-3-semibold_1lyxn_62",
913
- "typography-subtitle-4-semibold": "_typography-subtitle-4-semibold_1lyxn_71",
914
- "typography-label-1-medium": "_typography-label-1-medium_1lyxn_80",
915
- "typography-label-2-medium": "_typography-label-2-medium_1lyxn_89",
916
- "typography-label-3-medium": "_typography-label-3-medium_1lyxn_97",
917
- "typography-label-4-medium": "_typography-label-4-medium_1lyxn_106",
918
- "typography-label-5-medium": "_typography-label-5-medium_1lyxn_115",
919
- "typography-label-1-regular": "_typography-label-1-regular_1lyxn_124",
920
- "typography-label-2-regular": "_typography-label-2-regular_1lyxn_133",
921
- "typography-label-3-regular": "_typography-label-3-regular_1lyxn_141",
922
- "typography-label-4-regular": "_typography-label-4-regular_1lyxn_150",
923
- "typography-label-5-regular": "_typography-label-5-regular_1lyxn_159",
924
- "typography-paragraph-1-regular": "_typography-paragraph-1-regular_1lyxn_168",
925
- "typography-paragraph-2-regular": "_typography-paragraph-2-regular_1lyxn_176",
926
- "typography-paragraph-3-regular": "_typography-paragraph-3-regular_1lyxn_185",
927
- "typography-paragraph-4-regular": "_typography-paragraph-4-regular_1lyxn_194"
928
- }, mt = 99;
929
- function ar(t) {
930
- return t < mt ? `+${t}` : `${mt}+`;
907
+ }, 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,161 +962,161 @@ 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
- }, Fe = 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: _ = "filled",
980
+ variant: u = "filled",
1002
981
  placeholderType: d = "neutral",
1003
- name: f,
1004
- imgSrc: p,
1005
- imgAlt: h,
1006
- icon: b,
1007
- imgProps: y,
1008
- colorScheme: x,
1009
- className: M,
1010
- "data-testid": S,
1011
- ...C
1012
- } = t, { onClick: g, onPointerDown: $ } = C, D = !n && !i && (!!g || !!$), [T, A] = Ne(!1);
1013
- Ee(() => {
1014
- p && A(!1);
1015
- }, [p]);
1016
- const N = p && !T ? "image" : b ? "icon" : f ? "name" : "placeholder", U = x || N === "name" && sr(f) || "gray", q = lr(s), z = jt(s, c), O = V(
1017
- M,
1018
- pe.avatar,
1019
- pe[`variant-${_}`],
1020
- pe[`color-${U}`],
1021
- Ae[q],
982
+ name: p,
983
+ imgSrc: f,
984
+ imgAlt: y,
985
+ icon: m,
986
+ imgProps: h,
987
+ colorScheme: v,
988
+ className: S,
989
+ "data-testid": w,
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]: D
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": `${z}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: p || 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
- }, B = (G) => {
1069
- D && (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: B,
1076
- className: O,
1077
- style: m,
1078
- "data-testid": S,
1079
- "aria-disabled": n || i,
1080
- children: j[N](null)
1053
+ ref: a,
1054
+ onClick: D,
1055
+ className: I,
1056
+ style: b,
1057
+ "data-testid": w,
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 _ = Math.min(i, n) / 2, d = Math.min(c, _), f = ["M0,0", `H${t}`, `V${r}`, "H0", "V0", "Z"].join(" "), p = [
1089
- `M${a + d},${s}`,
1090
- `L${a + i - d},${s}`,
1065
+ let 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} ${p}`;
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, _ = a * s, d = -_ + yr, f = jt(a, i), h = ze(hr()).current.toString(), b = Ie(gr.avatarGroup), y = br(
1115
- a,
1116
- a,
1117
- a - _,
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((x, M, S) => {
1127
- const C = M + 1 >= S.length;
1128
- if (x.wrapper) {
1129
- const g = x.wrapper;
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;
1107
+ if (v.wrapper) {
1108
+ const g = v.wrapper;
1130
1109
  return /* @__PURE__ */ o.jsx(
1131
1110
  "div",
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(Fe, { size: a, shape: i, ...x }) })
1117
+ children: /* @__PURE__ */ o.jsx(g, { children: /* @__PURE__ */ o.jsx(Be, { size: r, shape: i, ...v }) })
1139
1118
  },
1140
- et(x) + M
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(Fe, { size: a, shape: i, ...x })
1130
+ children: /* @__PURE__ */ o.jsx(Be, { size: r, shape: i, ...v })
1152
1131
  },
1153
- et(x) + M
1132
+ st(v) + S
1154
1133
  );
1155
1134
  }),
1156
- n > 0 && /* @__PURE__ */ o.jsx("div", { style: { marginRight: d }, children: /* @__PURE__ */ o.jsx(
1157
- Fe,
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
- }, Rn = Object.assign(Fe, {
1170
- Group: mr
1171
- }), vr = "_wrapper_ecbsu_5", xr = "_badge__container_ecbsu_6", Cr = "_badge__content_ecbsu_7", wr = "_interactive_ecbsu_20", Sr = "_disabled_ecbsu_21", Er = "_icon_ecbsu_22", fe = {
1172
- wrapper: vr,
1173
- badge__container: xr,
1174
- badge__content: Cr,
1175
- interactive: wr,
1176
- disabled: Sr,
1177
- icon: Er,
1148
+ }, 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,128 +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 = ze(null), [r, a] = Ne(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
- }, kn = 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: _ = "red",
1212
+ colorScheme: u = "red",
1234
1213
  size: d = 20,
1235
- position: f = "top-right",
1236
- positionOffset: p = { x: 0, y: 0 },
1237
- cutoutBackground: h,
1238
- isDisabled: b,
1239
- className: y,
1240
- "data-testid": x = "badge",
1241
- ...M
1242
- } = t, { onClick: S, onPointerDown: C } = M, { ref: g, bgColor: $ } = $r(), k = h || $, T = !b && (!!S || !!C), A = Ie(fe.badge__container, fe[`position-${f}`]), N = Ie(
1243
- y,
1244
- fe.badge__content,
1245
- fe[`color-${_}`],
1246
- fe[`variant-${i}`],
1214
+ position: p = "top-right",
1215
+ positionOffset: f = { x: 0, y: 0 },
1216
+ cutoutBackground: y,
1217
+ isDisabled: m,
1218
+ className: h,
1219
+ "data-testid": v = "badge",
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]: T
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": `${p.x}px`,
1255
- "--badge-offset-y": `${p.y}px`,
1256
- ...k && { "--badge-cutout-bg": k },
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, z = (O) => {
1259
- T && (S == null || S(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": x + "-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,
1268
- "data-testid": x + "-container",
1245
+ className: R,
1246
+ style: z,
1247
+ "data-testid": v + "-container",
1269
1248
  children: /* @__PURE__ */ o.jsx(
1270
1249
  "span",
1271
1250
  {
1272
- ...M,
1273
- onClick: z,
1251
+ ...S,
1252
+ onClick: F,
1274
1253
  className: N,
1275
- "data-testid": x + "-content",
1276
- ref: r,
1277
- "aria-disabled": b,
1278
- children: q
1254
+ "data-testid": v + "-content",
1255
+ ref: a,
1256
+ "aria-disabled": m,
1257
+ children: P
1279
1258
  }
1280
1259
  )
1281
1260
  }
1282
1261
  )
1283
1262
  ] });
1284
- }), jr = "_container_op5yl_7", Ir = "_image_op5yl_22", Rr = "_loading_op5yl_34", Ke = {
1285
- container: jr,
1286
- image: Ir,
1287
- loading: Rr
1288
- }, kr = "_loader_isv17_1", Tr = "_spin_isv17_1", Ar = "_accent_isv17_19", Nr = "_neutral_isv17_23", Dr = "_positive_isv17_27", Or = "_negative_isv17_31", Ur = "_gray_isv17_35", Br = "_special_isv17_39", Fr = "_contrast_isv17_43", Pr = "_container_isv17_47", zr = "_overlay_isv17_57", Te = {
1289
- loader: kr,
1290
- spin: Tr,
1291
- accent: Ar,
1292
- neutral: Nr,
1293
- positive: Dr,
1294
- negative: Or,
1295
- gray: Ur,
1296
- special: Br,
1297
- contrast: Fr,
1298
- container: Pr,
1299
- overlay: zr,
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,
1300
1279
  "size-16": "_size-16_isv17_72",
1301
1280
  "size-24": "_size-24_isv17_76",
1302
1281
  "size-48": "_size-48_isv17_80",
1303
1282
  "size-64": "_size-64_isv17_84",
1304
1283
  "size-96": "_size-96_isv17_88"
1305
- }, It = te(
1284
+ }, Dt = J(
1306
1285
  ({
1307
- size: t = 24,
1308
- variant: r = "accent",
1309
- className: a,
1310
- "data-testid": s = "loader",
1286
+ size: e = 24,
1287
+ variant: a = "accent",
1288
+ className: r,
1289
+ "data-testid": n = "loader",
1311
1290
  style: i,
1312
- ...n
1291
+ ...s
1313
1292
  }, c) => {
1314
- const _ = Ie(
1315
- Te.loader,
1316
- Te[r],
1317
- Te[`size-${t}`],
1318
- a
1293
+ const u = he(
1294
+ Ne.loader,
1295
+ Ne[a],
1296
+ Ne[`size-${e}`],
1297
+ r
1319
1298
  );
1320
1299
  return /* @__PURE__ */ o.jsx(
1321
1300
  "svg",
1322
1301
  {
1323
1302
  ref: c,
1324
- className: _,
1303
+ className: u,
1325
1304
  fill: "none",
1326
1305
  viewBox: "0 0 16 16",
1327
1306
  xmlns: "http://www.w3.org/2000/svg",
1328
- "data-testid": s,
1307
+ "data-testid": n,
1329
1308
  style: i,
1330
- ...n,
1309
+ ...s,
1331
1310
  children: /* @__PURE__ */ o.jsx(
1332
1311
  "path",
1333
1312
  {
@@ -1340,37 +1319,37 @@ const yr = 3, mr = (t) => {
1340
1319
  }
1341
1320
  );
1342
1321
  }
1343
- ), Wr = te((t, r) => {
1322
+ ), Ka = J((e, a) => {
1344
1323
  const {
1345
- loading: a = !1,
1346
- size: s = 24,
1324
+ loading: r = !1,
1325
+ size: n = 24,
1347
1326
  variant: i = "accent",
1348
- children: n,
1327
+ children: s,
1349
1328
  className: c,
1350
- style: _,
1329
+ style: u,
1351
1330
  "data-testid": d,
1352
- ...f
1353
- } = t, p = Ie(Te.container, c);
1354
- return /* @__PURE__ */ o.jsxs("div", { ref: r, className: p, style: _, "data-testid": d, ...f, children: [
1355
- n,
1356
- a && /* @__PURE__ */ o.jsx("div", { className: Te.overlay, children: /* @__PURE__ */ o.jsx(It, { size: s, variant: i, "data-testid": `${d}-spinner` }) })
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` }) })
1357
1336
  ] });
1358
- }), Vr = te((t, r) => t.children ? /* @__PURE__ */ o.jsx(
1359
- Wr,
1337
+ }), Ja = J((e, a) => e.children ? /* @__PURE__ */ o.jsx(
1338
+ Ka,
1360
1339
  {
1361
- ref: r,
1362
- ...t
1340
+ ref: a,
1341
+ ...e
1363
1342
  }
1364
- ) : /* @__PURE__ */ o.jsx(It, { ref: r, ...t })), Hr = ({ 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(
1365
1344
  "svg",
1366
1345
  {
1367
- width: t,
1368
- height: r,
1346
+ width: e,
1347
+ height: a,
1369
1348
  viewBox: "0 0 48 48",
1370
1349
  fill: "none",
1371
1350
  xmlns: "http://www.w3.org/2000/svg",
1372
- className: a,
1373
- "data-testid": s,
1351
+ className: r,
1352
+ "data-testid": n,
1374
1353
  children: /* @__PURE__ */ o.jsx(
1375
1354
  "path",
1376
1355
  {
@@ -1382,178 +1361,178 @@ const yr = 3, mr = (t) => {
1382
1361
  }
1383
1362
  )
1384
1363
  }
1385
- ), Tn = te((t, r) => {
1364
+ ), ho = J((e, a) => {
1386
1365
  const {
1387
- alt: a = "",
1388
- loading: s = "lazy",
1366
+ alt: r = "",
1367
+ loading: n = "lazy",
1389
1368
  src: i,
1390
- isLoading: n = !1,
1369
+ isLoading: s = !1,
1391
1370
  className: c,
1392
- "data-testid": _ = "image",
1371
+ "data-testid": u = "image",
1393
1372
  onError: d,
1394
- onLoad: f,
1395
- ...p
1396
- } = t, [h, b] = Ne("loading"), y = h === "error", x = (n || h === "loading") && !y, M = h === "loaded" && !n, S = Ie(
1397
- Ke.image,
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,
1398
1377
  {
1399
- [Ke.loading]: x
1378
+ [tt.loading]: v
1400
1379
  },
1401
1380
  c
1402
- ), C = Se(
1403
- (k) => {
1404
- b("loaded"), f == null || f(k);
1381
+ ), x = ve(
1382
+ (q) => {
1383
+ m("loaded"), p == null || p(q);
1405
1384
  },
1406
- [f]
1407
- ), g = Se(
1408
- (k) => {
1409
- b("error"), d == null || d(k);
1385
+ [p]
1386
+ ), g = ve(
1387
+ (q) => {
1388
+ m("error"), d == null || d(q);
1410
1389
  },
1411
1390
  [d]
1412
- ), $ = {
1413
- loader: /* @__PURE__ */ o.jsxs(Mt, { children: [
1414
- /* @__PURE__ */ o.jsx(Vr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
1391
+ ), M = {
1392
+ loader: /* @__PURE__ */ o.jsxs(Ae, { children: [
1393
+ /* @__PURE__ */ o.jsx(Ja, { size: 48, variant: "special", "data-testid": `${u}-loader` }),
1415
1394
  /* @__PURE__ */ o.jsx(
1416
1395
  "img",
1417
1396
  {
1418
- alt: a,
1397
+ alt: r,
1419
1398
  src: i,
1420
- onLoad: C,
1399
+ onLoad: x,
1421
1400
  onError: g,
1422
1401
  style: { display: "none" }
1423
1402
  }
1424
1403
  )
1425
1404
  ] }),
1426
- error: /* @__PURE__ */ o.jsx(Hr, { "data-testid": `${_}-fallback` }),
1405
+ error: /* @__PURE__ */ o.jsx(Xa, { "data-testid": `${u}-fallback` }),
1427
1406
  image: /* @__PURE__ */ o.jsx(
1428
1407
  "img",
1429
1408
  {
1430
- ref: r,
1431
- alt: a,
1432
- "data-testid": _,
1433
- loading: s,
1409
+ ref: a,
1410
+ alt: r,
1411
+ "data-testid": u,
1412
+ loading: n,
1434
1413
  src: i,
1435
- className: S
1414
+ className: w
1436
1415
  }
1437
1416
  )
1438
1417
  };
1439
- return Ee(() => {
1418
+ return xe(() => {
1440
1419
  if (!i) {
1441
- b("error");
1420
+ m("error");
1442
1421
  return;
1443
1422
  }
1444
- b("loading");
1445
- }, [i]), /* @__PURE__ */ o.jsxs("div", { className: Ke.container, "data-testid": `${_}-container`, ...p, children: [
1446
- x && $.loader,
1447
- y && $.error,
1448
- M && $.image
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
1449
1428
  ] });
1450
- }), qr = {}, Rt = ra({
1451
- locale: qr
1452
- }), Gr = () => {
1453
- const t = sa(Rt);
1454
- if (!t)
1429
+ }), Qa = {}, Ot = dr({
1430
+ locale: Qa
1431
+ }), en = () => {
1432
+ const e = ur(Ot);
1433
+ if (!e)
1455
1434
  throw new Error("useConfig must be used within a ConfigProvider");
1456
- return t;
1457
- }, An = () => {
1458
- const { locale: t } = Gr();
1459
- return t;
1460
- }, Zr = {}, Yr = {}, Jr = {}, Nn = ({
1461
- locale: t = {},
1462
- theme: r,
1463
- children: a,
1464
- className: s
1465
- }) => (na(() => {
1466
- 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) {
1467
1446
  const i = document.documentElement;
1468
- Object.entries(r).forEach(([n, c]) => {
1469
- i.style.setProperty(n, c);
1447
+ Object.entries(a).forEach(([s, c]) => {
1448
+ i.style.setProperty(s, c);
1470
1449
  });
1471
1450
  }
1472
- }, [r]), /* @__PURE__ */ o.jsxs(Mt, { children: [
1451
+ }, [a]), /* @__PURE__ */ o.jsxs(Ae, { children: [
1473
1452
  /* @__PURE__ */ o.jsx(
1474
1453
  "div",
1475
1454
  {
1476
1455
  "data-testid": "ConfigProvider-component",
1477
- className: V(Zr, Yr, Jr, s)
1456
+ className: B(tn, rn, an, n)
1478
1457
  }
1479
1458
  ),
1480
- /* @__PURE__ */ o.jsx(Rt.Provider, { value: { locale: t }, children: a })
1481
- ] })), Dn = {}, Kr = "_tag_1llsi_1", Xr = "_label_1llsi_16", Qr = "_iconWrapper_1llsi_20", es = "_medium_1llsi_27", ts = "_large_1llsi_33", as = "_disabled_1llsi_43", rs = "_neutral_1llsi_47", ss = "_positive_1llsi_53", ns = "_negative_1llsi_59", os = "_warning_1llsi_65", is = "_vivid_1llsi_71", ls = "_special_1llsi_77", cs = "_accent_1llsi_84", ds = "_blue_1llsi_90", us = "_lovely_1llsi_96", _s = "_dreamy_1llsi_102", we = {
1482
- tag: Kr,
1483
- label: Xr,
1484
- iconWrapper: Qr,
1485
- medium: es,
1486
- large: ts,
1487
- disabled: as,
1488
- neutral: rs,
1489
- positive: ss,
1490
- negative: ns,
1491
- warning: os,
1492
- vivid: is,
1493
- special: ls,
1494
- accent: cs,
1495
- blue: ds,
1496
- lovely: us,
1497
- dreamy: _s
1498
- }, On = te((t, r) => {
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) => {
1499
1478
  const {
1500
- className: a,
1501
- children: s,
1479
+ className: r,
1480
+ children: n,
1502
1481
  componentStyle: i = "neutral",
1503
- size: n = "medium",
1482
+ size: s = "medium",
1504
1483
  disabled: c = !1,
1505
- showLabel: _ = !!s,
1484
+ showLabel: u = !!n,
1506
1485
  slotStart: d,
1507
- slotEnd: f,
1508
- slotStartWrapperProps: p = {},
1509
- slotEndWrapperProps: h = {},
1510
- "data-testid": b
1511
- } = t, { className: y, ...x } = p, { className: M, ...S } = h;
1486
+ slotEnd: p,
1487
+ slotStartWrapperProps: f = {},
1488
+ slotEndWrapperProps: y = {},
1489
+ "data-testid": m
1490
+ } = e, { className: h, ...v } = f, { className: S, ...w } = y;
1512
1491
  return /* @__PURE__ */ o.jsxs(
1513
1492
  "div",
1514
1493
  {
1515
- className: V(
1516
- we.tag,
1517
- we[n],
1518
- we[i],
1494
+ className: B(
1495
+ be.tag,
1496
+ be[s],
1497
+ be[i],
1519
1498
  {
1520
- [we.disabled]: c,
1521
- [Ae["typography-label-3-regular"]]: n === "medium",
1522
- [Ae["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"
1523
1502
  },
1524
- a
1503
+ r
1525
1504
  ),
1526
- "data-testid": b || "tag-component",
1527
- ref: r,
1505
+ "data-testid": m || "tag-component",
1506
+ ref: a,
1528
1507
  children: [
1529
- d && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, y]), ...x, children: d }),
1530
- _ && /* @__PURE__ */ o.jsx("span", { className: V([we.label]), children: s }),
1531
- f && /* @__PURE__ */ o.jsx("span", { className: V([we.iconWrapper, M]), ...S, children: f })
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 })
1532
1511
  ]
1533
1512
  }
1534
1513
  );
1535
- }), ps = "_checkbox_qo5f5_43", fs = "_input_qo5f5_59", gs = "_icon_qo5f5_67", hs = "_container_qo5f5_84", bs = "_error_qo5f5_135", ys = "_checkboxWrapper_qo5f5_147", ms = "_medium_qo5f5_201", vs = "_large_qo5f5_206", xs = "_label_qo5f5_247", he = {
1536
- checkbox: ps,
1537
- input: fs,
1538
- icon: gs,
1539
- container: hs,
1540
- error: bs,
1541
- checkboxWrapper: ys,
1542
- medium: ms,
1543
- large: vs,
1544
- label: xs
1545
- }, Cs = ({
1546
- width: t = 12,
1547
- height: r = 9,
1548
- className: a = "",
1549
- 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",
1550
1529
  ...i
1551
1530
  }) => /* @__PURE__ */ o.jsx(
1552
1531
  "svg",
1553
1532
  {
1554
- className: a,
1555
- width: t,
1556
- height: r,
1533
+ className: r,
1534
+ width: e,
1535
+ height: a,
1557
1536
  viewBox: "0 0 14 10",
1558
1537
  fill: "none",
1559
1538
  xmlns: "http://www.w3.org/2000/svg",
@@ -1564,22 +1543,22 @@ const yr = 3, mr = (t) => {
1564
1543
  fillRule: "evenodd",
1565
1544
  clipRule: "evenodd",
1566
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",
1567
- fill: s
1546
+ fill: n
1568
1547
  }
1569
1548
  )
1570
1549
  }
1571
- ), ws = ({
1572
- width: t = 12,
1573
- height: r = 2,
1574
- className: a = "",
1575
- color: s = "currentColor",
1550
+ ), Rn = ({
1551
+ width: e = 12,
1552
+ height: a = 2,
1553
+ className: r = "",
1554
+ color: n = "currentColor",
1576
1555
  ...i
1577
1556
  }) => /* @__PURE__ */ o.jsx(
1578
1557
  "svg",
1579
1558
  {
1580
- className: a,
1581
- width: t,
1582
- height: r,
1559
+ className: r,
1560
+ width: e,
1561
+ height: a,
1583
1562
  viewBox: "0 0 12 2",
1584
1563
  fill: "none",
1585
1564
  xmlns: "http://www.w3.org/2000/svg",
@@ -1590,291 +1569,291 @@ const yr = 3, mr = (t) => {
1590
1569
  fillRule: "evenodd",
1591
1570
  clipRule: "evenodd",
1592
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",
1593
- fill: s
1572
+ fill: n
1594
1573
  }
1595
1574
  )
1596
1575
  }
1597
- ), Ss = {
1576
+ ), In = {
1598
1577
  medium: { width: 10.83, height: 7.5 },
1599
1578
  large: { width: 13, height: 9 }
1600
- }, Es = ({
1601
- size: t,
1602
- isChecked: r,
1603
- isDisabled: a,
1604
- indeterminate: s,
1579
+ }, Tn = ({
1580
+ size: e,
1581
+ isChecked: a,
1582
+ isDisabled: r,
1583
+ indeterminate: n,
1605
1584
  dataTestId: i
1606
1585
  }) => {
1607
- const { width: n, height: c } = Ss[t];
1586
+ const { width: s, height: c } = In[e];
1608
1587
  return /* @__PURE__ */ o.jsx(
1609
1588
  "div",
1610
1589
  {
1611
- className: he.icon,
1590
+ className: pe.icon,
1612
1591
  "data-testid": `${i}-icon`,
1613
- "data-checked": r,
1614
- "data-disabled": a,
1615
- "data-indeterminate": s,
1616
- children: s ? /* @__PURE__ */ o.jsx(ws, { width: n, height: c }) : /* @__PURE__ */ o.jsx(Cs, { 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 })
1617
1596
  }
1618
1597
  );
1619
- }, Un = te((t, r) => {
1598
+ }, xo = J((e, a) => {
1620
1599
  const {
1621
- name: a,
1622
- value: s,
1600
+ name: r,
1601
+ value: n,
1623
1602
  size: i = "medium",
1624
- indeterminate: n = !1,
1603
+ indeterminate: s = !1,
1625
1604
  loading: c = !1,
1626
- error: _,
1605
+ error: u,
1627
1606
  disabled: d = !1,
1628
- containerClassName: f,
1629
- className: p,
1630
- containerStyle: h,
1631
- style: b,
1632
- children: y,
1633
- clickableLabel: x = !0,
1634
- tabIndex: M,
1635
- onChange: S,
1636
- "data-testid": C = "checkbox"
1637
- } = t, [g, $] = Ne(!1), k = s ?? g, D = d || c, T = !!_, A = k || n, N = V(he.container, he[i], f), U = V(
1638
- he.checkbox,
1639
- he[i],
1607
+ containerClassName: p,
1608
+ className: f,
1609
+ containerStyle: y,
1610
+ style: m,
1611
+ children: h,
1612
+ clickableLabel: v = !0,
1613
+ tabIndex: S,
1614
+ onChange: w,
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],
1640
1619
  {
1641
- [he.error]: T
1620
+ [pe.error]: $
1642
1621
  },
1643
- p
1644
- ), q = (j) => {
1645
- D || ($(j.target.checked), S == null || S(j.target.checked, j));
1646
- }, z = (j) => {
1647
- if (j.key === "Enter" && !D) {
1648
- j.preventDefault();
1649
- const B = !A;
1650
- $(B), S == null || S(B);
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);
1651
1630
  }
1652
- }, O = (j) => {
1653
- x || j.preventDefault();
1654
- }, m = (j) => j.stopPropagation();
1631
+ }, I = (L) => {
1632
+ v || L.preventDefault();
1633
+ }, b = (L) => L.stopPropagation();
1655
1634
  return /* @__PURE__ */ o.jsxs(
1656
1635
  "label",
1657
1636
  {
1658
1637
  className: N,
1659
- htmlFor: a,
1660
- style: h,
1661
- "data-testid": C,
1662
- "data-clickable-label": x,
1638
+ htmlFor: r,
1639
+ style: y,
1640
+ "data-testid": x,
1641
+ "data-clickable-label": v,
1663
1642
  children: [
1664
- /* @__PURE__ */ o.jsx("div", { className: he.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
1643
+ /* @__PURE__ */ o.jsx("div", { className: pe.checkboxWrapper, children: /* @__PURE__ */ o.jsxs(
1665
1644
  "div",
1666
1645
  {
1667
- tabIndex: M || 0,
1668
- className: U,
1669
- style: b,
1670
- onKeyDown: z,
1671
- "aria-checked": A,
1672
- "aria-disabled": D,
1673
- "aria-invalid": T,
1674
- "aria-describedby": _ ? `${a}-error` : void 0,
1675
- "data-testid": `${C}-label`,
1646
+ tabIndex: S || 0,
1647
+ className: z,
1648
+ style: m,
1649
+ onKeyDown: F,
1650
+ "aria-checked": R,
1651
+ "aria-disabled": A,
1652
+ "aria-invalid": $,
1653
+ "aria-describedby": u ? `${r}-error` : void 0,
1654
+ "data-testid": `${x}-label`,
1676
1655
  children: [
1677
1656
  /* @__PURE__ */ o.jsx(
1678
1657
  "input",
1679
1658
  {
1680
- ref: r,
1659
+ ref: a,
1681
1660
  type: "checkbox",
1682
- id: a,
1683
- name: a,
1684
- checked: A,
1685
- disabled: D,
1686
- className: he.input,
1687
- onChange: q,
1688
- onClick: m,
1689
- "aria-checked": A,
1690
- "aria-invalid": T,
1691
- "aria-describedby": _ ? `${a}-error` : void 0,
1692
- "data-testid": `${C}-input`
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,
1669
+ "aria-invalid": $,
1670
+ "aria-describedby": u ? `${r}-error` : void 0,
1671
+ "data-testid": `${x}-input`
1693
1672
  }
1694
1673
  ),
1695
1674
  /* @__PURE__ */ o.jsx(
1696
- Es,
1675
+ Tn,
1697
1676
  {
1698
- name: a,
1677
+ name: r,
1699
1678
  size: i,
1700
- isChecked: A,
1701
- isDisabled: D,
1702
- indeterminate: n,
1703
- dataTestId: C
1679
+ isChecked: R,
1680
+ isDisabled: A,
1681
+ indeterminate: s,
1682
+ dataTestId: x
1704
1683
  }
1705
1684
  )
1706
1685
  ]
1707
1686
  }
1708
1687
  ) }),
1709
- y && /* @__PURE__ */ o.jsx(
1688
+ h && /* @__PURE__ */ o.jsx(
1710
1689
  "span",
1711
1690
  {
1712
- "data-testid": `${C}-label-text`,
1713
- "data-clickable-label": x,
1714
- className: he.label,
1715
- onClick: O,
1716
- children: y
1691
+ "data-testid": `${x}-label-text`,
1692
+ "data-clickable-label": v,
1693
+ className: pe.label,
1694
+ onClick: I,
1695
+ children: h
1717
1696
  }
1718
1697
  )
1719
1698
  ]
1720
1699
  }
1721
1700
  );
1722
- }), Ls = "_typography_zt7xg_1", Ms = "_disabled_zt7xg_8", $s = "_primary_zt7xg_13", js = "_secondary_zt7xg_18", Is = "_tertiary_zt7xg_23", Rs = "_accent_zt7xg_28", ks = "_positive_zt7xg_38", Ts = "_negative_zt7xg_48", As = "_warning_zt7xg_58", Ns = "_special_zt7xg_68", Ds = "_contrast_zt7xg_78", je = {
1723
- typography: Ls,
1724
- disabled: Ms,
1725
- primary: $s,
1726
- secondary: js,
1727
- tertiary: Is,
1728
- accent: Rs,
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,
1729
1708
  "accent-secondary": "_accent-secondary_zt7xg_33",
1730
- positive: ks,
1709
+ positive: Pn,
1731
1710
  "positive-secondary": "_positive-secondary_zt7xg_43",
1732
- negative: Ts,
1711
+ negative: Fn,
1733
1712
  "negative-secondary": "_negative-secondary_zt7xg_53",
1734
- warning: As,
1713
+ warning: Bn,
1735
1714
  "warning-secondary": "_warning-secondary_zt7xg_63",
1736
- special: Ns,
1715
+ special: zn,
1737
1716
  "special-secondary": "_special-secondary_zt7xg_73",
1738
- contrast: Ds,
1717
+ contrast: Wn,
1739
1718
  "contrast-secondary": "_contrast-secondary_zt7xg_83"
1740
- }, Os = {
1719
+ }, Hn = {
1741
1720
  1: "h1",
1742
1721
  2: "h2",
1743
1722
  3: "h3",
1744
1723
  4: "h4",
1745
1724
  5: "h5"
1746
- }, xt = (t) => {
1747
- const r = Et.forwardRef(
1725
+ }, kt = (e) => {
1726
+ const a = It.forwardRef(
1748
1727
  ({
1749
- size: a = 3,
1750
- children: s,
1728
+ size: r = 3,
1729
+ children: n,
1751
1730
  className: i,
1752
- "data-testid": n,
1731
+ "data-testid": s,
1753
1732
  as: c,
1754
- fontWeight: _ = "semibold",
1733
+ fontWeight: u = "semibold",
1755
1734
  disabled: d = !1,
1756
- typographyStyle: f = "primary",
1757
- ...p
1758
- }, h) => {
1759
- const b = c || Os[a], y = V(
1760
- je.typography,
1761
- Ae[`typography-${t}-${a}-${_}`],
1762
- je[f],
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],
1763
1742
  {
1764
- [je.disabled]: d
1743
+ [$e.disabled]: d
1765
1744
  },
1766
1745
  i
1767
1746
  );
1768
- return s ? /* @__PURE__ */ o.jsx(b, { ref: h, className: y, "data-testid": n, ...p, children: s }) : null;
1747
+ return n ? /* @__PURE__ */ o.jsx(m, { ref: y, className: h, "data-testid": s, ...f, children: n }) : null;
1769
1748
  }
1770
1749
  );
1771
- return r.displayName = `Typography.${t === "title" ? "Title" : "Subtitle"}`, r;
1772
- }, Ct = (t) => {
1773
- const r = Et.forwardRef(
1750
+ return a.displayName = `Typography.${e === "title" ? "Title" : "Subtitle"}`, a;
1751
+ }, jt = (e) => {
1752
+ const a = It.forwardRef(
1774
1753
  ({
1775
- size: a = 3,
1776
- children: s,
1754
+ size: r = 3,
1755
+ children: n,
1777
1756
  className: i,
1778
- "data-testid": n,
1757
+ "data-testid": s,
1779
1758
  as: c = "p",
1780
- fontWeight: _ = "regular",
1759
+ fontWeight: u = "regular",
1781
1760
  disabled: d = !1,
1782
- typographyStyle: f = "primary",
1783
- ...p
1784
- }, h) => {
1785
- const b = c, y = V(
1786
- je.typography,
1787
- Ae[`typography-${t}-${a}-${_}`],
1788
- je[f],
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],
1789
1768
  {
1790
- [je.disabled]: d
1769
+ [$e.disabled]: d
1791
1770
  },
1792
1771
  i
1793
1772
  );
1794
- return s ? /* @__PURE__ */ o.jsx(
1795
- b,
1773
+ return n ? /* @__PURE__ */ o.jsx(
1774
+ m,
1796
1775
  {
1797
- ref: h,
1798
- className: y,
1799
- "data-testid": n,
1800
- ...p,
1801
- children: s
1776
+ ref: y,
1777
+ className: h,
1778
+ "data-testid": s,
1779
+ ...f,
1780
+ children: n
1802
1781
  }
1803
1782
  ) : null;
1804
1783
  }
1805
1784
  );
1806
- return r.displayName = `Typography.${t.charAt(0).toUpperCase() + t.slice(1)}`, r;
1807
- }, Bn = {
1808
- Title: xt("title"),
1809
- Subtitle: xt("subtitle"),
1810
- Label: Ct("label"),
1811
- Paragraph: Ct("paragraph")
1812
- }, Us = "_inputBase_2vlla_85", Bs = "_wrapper_2vlla_95", Fs = "_gripHandle_2vlla_169", Ps = "_error_2vlla_230", zs = "_tabFocused_2vlla_237", Ws = "_disabled_2vlla_262", Vs = "_loading_2vlla_269", Hs = "_label_2vlla_279", qs = "_small_2vlla_292", Gs = "_large_2vlla_299", Zs = "_leftSection_2vlla_306", Ys = "_rightSection_2vlla_315", Js = "_helper_2vlla_351", Ks = "_floatingLabel_2vlla_376", Xs = "_focused_2vlla_434", Qs = "_filled_2vlla_435", en = "_medium_2vlla_469", tn = "_characterLimit_2vlla_510", an = "_input_2vlla_85", rn = "_textarea_2vlla_109", sn = "_truncate_2vlla_637", nn = "_hint_2vlla_719", L = {
1813
- inputBase: Us,
1814
- wrapper: Bs,
1815
- "textarea-wrapper": "_textarea-wrapper_2vlla_109",
1816
- gripHandle: Fs,
1817
- error: Ps,
1818
- tabFocused: zs,
1819
- disabled: Ws,
1820
- loading: Vs,
1821
- label: Hs,
1822
- small: qs,
1823
- large: Gs,
1824
- leftSection: Zs,
1825
- rightSection: Ys,
1826
- helper: Js,
1827
- floatingLabel: Ks,
1828
- focused: Xs,
1829
- filled: Qs,
1830
- medium: en,
1831
- characterLimit: tn,
1832
- input: an,
1833
- textarea: rn,
1834
- "size-small": "_size-small_2vlla_586",
1835
- "size-medium": "_size-medium_2vlla_592",
1836
- "size-large": "_size-large_2vlla_598",
1837
- "with-floating-label": "_with-floating-label_2vlla_605",
1838
- truncate: sn,
1839
- hint: nn,
1840
- "has-hint": "_has-hint_2vlla_736",
1841
- "has-suffix": "_has-suffix_2vlla_742",
1842
- "has-limit": "_has-limit_2vlla_748"
1843
- }, on = ({
1844
- width: t = 8,
1845
- height: r = 8,
1846
- className: a,
1847
- 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"
1848
1827
  }) => /* @__PURE__ */ o.jsx(
1849
1828
  "svg",
1850
1829
  {
1851
- width: t,
1852
- height: r,
1830
+ width: e,
1831
+ height: a,
1853
1832
  viewBox: "0 0 8 8",
1854
1833
  fill: "none",
1855
1834
  xmlns: "http://www.w3.org/2000/svg",
1856
- className: a,
1835
+ className: r,
1857
1836
  children: /* @__PURE__ */ o.jsx(
1858
1837
  "path",
1859
1838
  {
1860
1839
  fillRule: "evenodd",
1861
1840
  clipRule: "evenodd",
1862
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",
1863
- fill: s
1842
+ fill: n
1864
1843
  }
1865
1844
  )
1866
1845
  }
1867
- ), kt = ({
1868
- className: t = "",
1869
- style: r,
1870
- size: a = "md",
1871
- color: s = "currentColor",
1846
+ ), qt = ({
1847
+ className: e = "",
1848
+ style: a,
1849
+ size: r = "md",
1850
+ color: n = "currentColor",
1872
1851
  onClick: i,
1873
- ...n
1852
+ ...s
1874
1853
  }) => {
1875
- const _ = {
1854
+ const u = {
1876
1855
  display: "inline-block",
1877
- color: s,
1856
+ color: n,
1878
1857
  ...{
1879
1858
  xxxs: { width: "8px", height: "8px" },
1880
1859
  xxs: { width: "12px", height: "12px" },
@@ -1882,19 +1861,19 @@ const yr = 3, mr = (t) => {
1882
1861
  sm: { width: "24px", height: "24px" },
1883
1862
  md: { width: "32px", height: "32px" },
1884
1863
  lg: { width: "40px", height: "40px" }
1885
- }[a],
1886
- ...r
1864
+ }[r],
1865
+ ...a
1887
1866
  };
1888
1867
  return /* @__PURE__ */ o.jsx(
1889
1868
  "svg",
1890
1869
  {
1891
- className: t,
1892
- style: _,
1870
+ className: e,
1871
+ style: u,
1893
1872
  viewBox: "0 0 16 16",
1894
1873
  fill: "none",
1895
1874
  xmlns: "http://www.w3.org/2000/svg",
1896
1875
  onClick: i,
1897
- ...n,
1876
+ ...s,
1898
1877
  children: /* @__PURE__ */ o.jsx(
1899
1878
  "path",
1900
1879
  {
@@ -1907,507 +1886,507 @@ const yr = 3, mr = (t) => {
1907
1886
  )
1908
1887
  }
1909
1888
  );
1910
- }, ln = (t, r) => {
1911
- const a = ze(null), s = ze(null);
1912
- return Ee(() => {
1913
- const i = r === "textarea" ? a.current : s.current;
1914
- i && i.value !== t && (i.value = t || "");
1915
- }, [t, r]), {
1916
- textareaRef: a,
1917
- inputRef: s,
1918
- 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
1919
1898
  };
1920
- }, cn = (t, r, a) => {
1921
- const s = () => {
1922
- if (!a.current || r !== "hug") return;
1923
- const i = a.current.scrollTop;
1924
- if (a.current.style.setProperty("height", "auto", "important"), !t) return;
1925
- const n = a.current.scrollHeight + "px";
1926
- a.current.style.setProperty("height", n, "important"), a.current.scrollTop = i;
1927
- const c = a.current.closest(`.${L.wrapper}`);
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}`);
1928
1907
  c && (c.setAttribute("data-resize", "hug"), c.setAttribute("data-show-grip", "false"));
1929
1908
  };
1930
- return Ee(s, [t, r]), Ee(() => {
1931
- r === "hug" && a.current && s();
1932
- }, []), { resizeTextArea: s };
1933
- }, dn = (t, r, a, s) => ({ handleGripMouseDown: Se(
1934
- (n) => {
1935
- if (!t || r || a || !(s === "fixed" || !s)) return;
1936
- n.preventDefault(), n.stopPropagation();
1937
- const c = n.currentTarget.closest(`.${L.wrapper}`);
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}`);
1938
1917
  if (!c) return;
1939
- const _ = n.clientY, d = c.clientHeight, f = (h) => {
1940
- const b = h.clientY - _, y = Math.min(100, d), x = Math.max(y, d + b);
1941
- c.style.height = `${x}px`;
1942
- }, p = () => {
1943
- document.removeEventListener("mousemove", f), document.removeEventListener("mouseup", p);
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);
1920
+ c.style.height = `${v}px`;
1921
+ }, f = () => {
1922
+ document.removeEventListener("mousemove", p), document.removeEventListener("mouseup", f);
1944
1923
  };
1945
- document.addEventListener("mousemove", f), document.addEventListener("mouseup", p);
1924
+ document.addEventListener("mousemove", p), document.addEventListener("mouseup", f);
1946
1925
  },
1947
- [t, r, a, s]
1948
- ) }), wt = 30, un = te(
1926
+ [e, a, r, n]
1927
+ ) }), $t = 30, ms = J(
1949
1928
  ({
1950
- component: t = "input",
1951
- size: r = "medium",
1952
- value: a = "",
1953
- placeholder: s,
1929
+ component: e = "input",
1930
+ size: a = "medium",
1931
+ value: r = "",
1932
+ placeholder: n,
1954
1933
  disabled: i = !1,
1955
- loading: n = !1,
1934
+ loading: s = !1,
1956
1935
  onFocus: c,
1957
- onBlur: _,
1936
+ onBlur: u,
1958
1937
  onChange: d,
1959
- onKeyDown: f,
1960
- onKeyUp: p,
1961
- maxLength: h,
1962
- className: b,
1963
- style: y,
1964
- truncate: x = !1,
1965
- shouldShowFloatingLabelClass: M = !1,
1966
- "aria-invalid": S,
1967
- "aria-errormessage": C,
1938
+ onKeyDown: p,
1939
+ onKeyUp: f,
1940
+ maxLength: y,
1941
+ className: m,
1942
+ style: h,
1943
+ truncate: v = !1,
1944
+ shouldShowFloatingLabelClass: S = !1,
1945
+ "aria-invalid": w,
1946
+ "aria-errormessage": x,
1968
1947
  id: g,
1969
- resize: $,
1970
- ...k
1971
- }, D) => {
1972
- const { textareaRef: T, inputRef: A, currentRef: N } = ln(a, t);
1973
- if (cn(a, $, T), oa(D, () => N.current, [N]), t === "textarea")
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")
1974
1953
  return /* @__PURE__ */ o.jsx(
1975
1954
  "textarea",
1976
1955
  {
1977
- ref: T,
1956
+ ref: $,
1978
1957
  id: g,
1979
- value: a,
1980
- placeholder: s,
1981
- disabled: i || n,
1958
+ value: r,
1959
+ placeholder: n,
1960
+ disabled: i || s,
1982
1961
  onFocus: c,
1983
- onBlur: _,
1962
+ onBlur: u,
1984
1963
  onChange: d,
1985
- onKeyDown: f,
1986
- onKeyUp: p,
1987
- maxLength: h,
1988
- className: V(
1989
- L.textarea,
1990
- L[`size-${r}`],
1991
- M && L["with-floating-label"],
1992
- b
1964
+ onKeyDown: p,
1965
+ onKeyUp: f,
1966
+ maxLength: y,
1967
+ className: B(
1968
+ j.textarea,
1969
+ j[`size-${a}`],
1970
+ S && j["with-floating-label"],
1971
+ m
1993
1972
  ),
1994
- style: y,
1995
- "aria-invalid": S,
1996
- "aria-errormessage": C,
1997
- "aria-describedby": C ? `${g}-error` : void 0,
1973
+ style: h,
1974
+ "aria-invalid": w,
1975
+ "aria-errormessage": x,
1976
+ "aria-describedby": x ? `${g}-error` : void 0,
1998
1977
  tabIndex: 0,
1999
- "data-resize": $,
2000
- ...k
1978
+ "data-resize": M,
1979
+ ...q
2001
1980
  }
2002
1981
  );
2003
- if (t === "input")
1982
+ if (e === "input")
2004
1983
  return /* @__PURE__ */ o.jsx(
2005
1984
  "input",
2006
1985
  {
2007
- ref: A,
1986
+ ref: R,
2008
1987
  id: g,
2009
- value: a,
2010
- placeholder: s,
2011
- disabled: i || n,
1988
+ value: r,
1989
+ placeholder: n,
1990
+ disabled: i || s,
2012
1991
  onFocus: c,
2013
- onBlur: _,
1992
+ onBlur: u,
2014
1993
  onChange: d,
2015
- onKeyDown: f,
2016
- onKeyUp: p,
2017
- maxLength: h,
2018
- className: V(
2019
- L.input,
2020
- L[`size-${r}`],
2021
- M && L["with-floating-label"],
2022
- x && L.truncate,
2023
- b
1994
+ onKeyDown: p,
1995
+ onKeyUp: f,
1996
+ maxLength: y,
1997
+ className: B(
1998
+ j.input,
1999
+ j[`size-${a}`],
2000
+ S && j["with-floating-label"],
2001
+ v && j.truncate,
2002
+ m
2024
2003
  ),
2025
- style: y,
2026
- "aria-invalid": S,
2027
- "aria-errormessage": C,
2028
- "aria-describedby": C ? `${g}-error` : void 0,
2004
+ style: h,
2005
+ "aria-invalid": w,
2006
+ "aria-errormessage": x,
2007
+ "aria-describedby": x ? `${g}-error` : void 0,
2029
2008
  tabIndex: 0,
2030
- ...k
2009
+ ...q
2031
2010
  }
2032
2011
  );
2033
- if (t !== "input" && t !== "textarea")
2012
+ if (e !== "input" && e !== "textarea")
2034
2013
  return console.error(
2035
- `[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`
2014
+ `[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`
2036
2015
  ), null;
2037
2016
  }
2038
- ), Tt = te(
2017
+ ), Ut = J(
2039
2018
  ({
2040
- children: t,
2041
- size: r = "medium",
2042
- error: a = !1,
2043
- disabled: s = !1,
2019
+ children: e,
2020
+ size: a = "medium",
2021
+ error: r = !1,
2022
+ disabled: n = !1,
2044
2023
  loading: i = !1,
2045
- className: n,
2024
+ className: s,
2046
2025
  wrapperProps: c,
2047
- wrapperStyles: _,
2026
+ wrapperStyles: u,
2048
2027
  floatingLabelStyles: d,
2049
- prefixStyles: f,
2050
- suffixStyles: p,
2051
- labelProps: h,
2052
- helperProps: b,
2053
- showLimit: y = !1,
2054
- maxLength: x,
2055
- hint: M,
2056
- showHint: S = !1,
2057
- showHintOnEmpty: C = !1,
2028
+ prefixStyles: p,
2029
+ suffixStyles: f,
2030
+ labelProps: y,
2031
+ helperProps: m,
2032
+ showLimit: h = !1,
2033
+ maxLength: v,
2034
+ hint: S,
2035
+ showHint: w = !1,
2036
+ showHintOnEmpty: x = !1,
2058
2037
  prefix: g,
2059
- suffix: $,
2060
- onSuffixClick: k,
2061
- placeholder: D,
2062
- showLabel: T = !0,
2063
- labelClassName: A,
2038
+ suffix: M,
2039
+ onSuffixClick: q,
2040
+ placeholder: A,
2041
+ showLabel: $ = !0,
2042
+ labelClassName: R,
2064
2043
  hasValue: N = !1,
2065
- helper: U,
2066
- id: q,
2067
- value: z = "",
2068
- resize: O,
2069
- showGrip: m = !1,
2070
- ...j
2071
- }, B) => {
2072
- const G = $t(), H = q || G, Q = S && M && (N || C), ae = M && M.length > wt ? M.substring(0, wt) + "..." : M, J = V(
2073
- L.wrapper,
2074
- a && L.error,
2075
- s && L.disabled,
2076
- i && L.loading,
2077
- Q && L["has-hint"],
2078
- $ && L["has-suffix"],
2079
- y && L["has-limit"],
2080
- n
2081
- ), re = V(
2082
- L.floatingLabel,
2083
- L[r],
2084
- N && L.filled,
2085
- A
2086
- ), { handleGripMouseDown: se } = dn(m, s, i, O);
2087
- return /* @__PURE__ */ o.jsxs("div", { ref: B, className: L.inputBase, "data-testid": "input-base-wrapper", ...j, children: [
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: [
2088
2067
  /* @__PURE__ */ o.jsxs(
2089
2068
  "div",
2090
2069
  {
2091
- className: J,
2092
- style: _,
2093
- "data-resize": O,
2094
- "data-show-grip": m ? "true" : "false",
2070
+ className: Z,
2071
+ style: u,
2072
+ "data-resize": I,
2073
+ "data-show-grip": b ? "true" : "false",
2095
2074
  ...c,
2096
2075
  children: [
2097
- g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: L.leftSection, style: f, children: g }),
2098
- $ && /* @__PURE__ */ o.jsx(
2076
+ g && /* @__PURE__ */ o.jsx("label", { htmlFor: H, className: j.leftSection, style: p, children: g }),
2077
+ M && /* @__PURE__ */ o.jsx(
2099
2078
  "label",
2100
2079
  {
2101
2080
  htmlFor: H,
2102
- className: L.rightSection,
2103
- style: p,
2104
- onClick: k,
2105
- children: $
2081
+ className: j.rightSection,
2082
+ style: f,
2083
+ onClick: q,
2084
+ children: M
2106
2085
  }
2107
2086
  ),
2108
- D && T && /* @__PURE__ */ o.jsx(
2087
+ A && $ && /* @__PURE__ */ o.jsx(
2109
2088
  "label",
2110
2089
  {
2111
2090
  htmlFor: H,
2112
- className: re,
2091
+ className: se,
2113
2092
  style: d,
2114
- ...h,
2115
- children: D
2093
+ ...y,
2094
+ children: A
2116
2095
  }
2117
2096
  ),
2118
- t,
2119
- m && !y && (O === "fixed" || !O) && /* @__PURE__ */ o.jsx(
2097
+ e,
2098
+ b && !h && (I === "fixed" || !I) && /* @__PURE__ */ o.jsx(
2120
2099
  "div",
2121
2100
  {
2122
- className: L.gripHandle,
2123
- onMouseDown: se,
2101
+ className: j.gripHandle,
2102
+ onMouseDown: Q,
2124
2103
  role: "button",
2125
2104
  tabIndex: -1,
2126
2105
  "aria-label": "Изменить размер",
2127
- children: /* @__PURE__ */ o.jsx(on, {})
2106
+ children: /* @__PURE__ */ o.jsx(fs, {})
2128
2107
  }
2129
2108
  ),
2130
- Q && /* @__PURE__ */ o.jsx(
2109
+ X && /* @__PURE__ */ o.jsx(
2131
2110
  "div",
2132
2111
  {
2133
- className: V(L.hint, N && L.truncate),
2134
- "data-disabled": s || i,
2112
+ className: B(j.hint, N && j.truncate),
2113
+ "data-disabled": n || i,
2135
2114
  children: ae
2136
2115
  }
2137
2116
  ),
2138
- y && x && /* @__PURE__ */ o.jsxs("div", { className: L.characterLimit, children: [
2139
- (z || "").length,
2117
+ h && v && /* @__PURE__ */ o.jsxs("div", { className: j.characterLimit, children: [
2118
+ (F || "").length,
2140
2119
  " из ",
2141
- x
2120
+ v
2142
2121
  ] })
2143
2122
  ]
2144
2123
  }
2145
2124
  ),
2146
- U && /* @__PURE__ */ o.jsx(
2125
+ z && /* @__PURE__ */ o.jsx(
2147
2126
  "div",
2148
2127
  {
2149
- className: V(
2150
- L.helper,
2151
- a && L.error,
2152
- (s || i) && L.disabled
2128
+ className: B(
2129
+ j.helper,
2130
+ r && j.error,
2131
+ (n || i) && j.disabled
2153
2132
  ),
2154
- ...b,
2155
- id: a ? `${H}-error` : void 0,
2156
- children: U
2133
+ ...m,
2134
+ id: r ? `${H}-error` : void 0,
2135
+ children: z
2157
2136
  }
2158
2137
  )
2159
2138
  ] });
2160
2139
  }
2161
2140
  );
2162
- Tt.displayName = "InputWrapperComponent";
2163
- const St = Object.assign(un, {
2164
- Wrapper: Tt
2165
- }), At = te(
2141
+ Ut.displayName = "InputWrapperComponent";
2142
+ const Mt = Object.assign(ms, {
2143
+ Wrapper: Ut
2144
+ }), Pt = J(
2166
2145
  ({
2167
- component: t = "input",
2168
- size: r = "medium",
2169
- className: a,
2170
- error: s = !1,
2146
+ component: e = "input",
2147
+ size: a = "medium",
2148
+ className: r,
2149
+ error: n = !1,
2171
2150
  disabled: i = !1,
2172
- loading: n = !1,
2151
+ loading: s = !1,
2173
2152
  placeholder: c,
2174
- showLabel: _ = !0,
2153
+ showLabel: u = !0,
2175
2154
  labelClassName: d,
2176
- helper: f,
2177
- prefix: p,
2178
- suffix: h,
2179
- id: b,
2180
- onFocus: y,
2181
- onBlur: x,
2182
- onKeyDown: M,
2183
- onSuffixClick: S,
2184
- onChange: C,
2155
+ helper: p,
2156
+ prefix: f,
2157
+ suffix: y,
2158
+ id: m,
2159
+ onFocus: h,
2160
+ onBlur: v,
2161
+ onKeyDown: S,
2162
+ onSuffixClick: w,
2163
+ onChange: x,
2185
2164
  value: g = "",
2186
- wrapperProps: $,
2187
- wrapperStyles: k,
2188
- floatingLabelStyles: D,
2189
- prefixStyles: T,
2190
- suffixStyles: A,
2165
+ wrapperProps: M,
2166
+ wrapperStyles: q,
2167
+ floatingLabelStyles: A,
2168
+ prefixStyles: $,
2169
+ suffixStyles: R,
2191
2170
  textareaStyles: N,
2192
- labelProps: U,
2193
- helperProps: q,
2194
- showLimit: z = !1,
2195
- maxLength: O,
2196
- inputProps: m,
2197
- hint: j,
2198
- showHint: B = !1,
2199
- 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,
2200
2179
  truncate: H = !1,
2201
- resize: Q,
2180
+ resize: X,
2202
2181
  showGrip: ae = !1,
2203
- ...J
2204
- }, re) => {
2205
- const se = $t(), de = b || se, [ve, ie] = Ne(g), ye = g !== void 0 ? g : ve, ue = (ye || "").length > 0, le = ye || "", _e = _ && (r === "large" || t === "textarea") && !p, xe = Se(
2206
- (Z) => {
2207
- var Y;
2208
- i || n || (y == null || y(), (Y = m == null ? void 0 : m.onFocus) == null || Y.call(
2209
- m,
2210
- Z
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
2211
2190
  ));
2212
2191
  },
2213
- [y, m, i, n]
2214
- ), De = Se(
2215
- (Z) => {
2216
- var Y;
2217
- if (Z.key === "Tab") {
2218
- const ce = Z.target.closest(`.${L.wrapper}`);
2219
- ce && ce.classList.add(L.tabFocused);
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);
2220
2199
  }
2221
- (Y = m == null ? void 0 : m.onKeyUp) == null || Y.call(
2222
- m,
2223
- Z
2200
+ (K = b == null ? void 0 : b.onKeyUp) == null || K.call(
2201
+ b,
2202
+ Y
2224
2203
  );
2225
2204
  },
2226
- [m]
2227
- ), We = Se(
2228
- (Z) => {
2229
- var ce;
2230
- const Y = Z.target.closest(`.${L.wrapper}`);
2231
- Y && Y.classList.remove(L.tabFocused), x == null || x(), (ce = m == null ? void 0 : m.onBlur) == null || ce.call(
2232
- m,
2233
- Z
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
2234
2213
  );
2235
2214
  },
2236
- [x, m]
2237
- ), Ve = Se(
2238
- (Z) => {
2239
- var ce;
2240
- if (i || n) return;
2241
- const Y = Z.target.value;
2242
- ie(Y), C == null || C(Y, Z), (ce = m == null ? void 0 : m.onChange) == null || ce.call(
2243
- m,
2244
- Z
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
2245
2224
  );
2246
2225
  },
2247
- [C, m, i, n]
2226
+ [x, b, i, s]
2248
2227
  );
2249
- return Ee(() => {
2250
- ie(g || "");
2228
+ return xe(() => {
2229
+ de(g || "");
2251
2230
  }, [g]), /* @__PURE__ */ o.jsx(
2252
- St.Wrapper,
2231
+ Mt.Wrapper,
2253
2232
  {
2254
- ref: re,
2255
- size: r,
2256
- error: s,
2257
- disabled: i || n,
2258
- loading: n,
2259
- className: V(a, t === "textarea" && L["textarea-wrapper"]),
2260
- wrapperProps: $,
2261
- wrapperStyles: k,
2262
- floatingLabelStyles: D,
2263
- prefixStyles: T,
2264
- suffixStyles: A,
2265
- labelProps: U,
2266
- helperProps: q,
2267
- showLimit: z,
2268
- maxLength: O,
2269
- hint: j,
2270
- showHint: B,
2271
- showHintOnEmpty: G,
2272
- prefix: p,
2273
- suffix: h,
2274
- onSuffixClick: S,
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,
2242
+ prefixStyles: $,
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,
2253
+ onSuffixClick: w,
2275
2254
  placeholder: c,
2276
- showLabel: _,
2255
+ showLabel: u,
2277
2256
  labelClassName: d,
2278
- hasValue: ue,
2279
- helper: f,
2280
- id: de,
2281
- value: le,
2257
+ hasValue: we,
2258
+ helper: p,
2259
+ id: ge,
2260
+ value: ye,
2282
2261
  showGrip: ae,
2283
- resize: Q,
2284
- ...J,
2262
+ resize: X,
2263
+ ...Z,
2285
2264
  children: /* @__PURE__ */ o.jsx(
2286
- St,
2265
+ Mt,
2287
2266
  {
2288
- component: t,
2289
- size: r,
2290
- value: le,
2267
+ component: e,
2268
+ size: a,
2269
+ value: ye,
2291
2270
  placeholder: c,
2292
2271
  disabled: i,
2293
- loading: n,
2294
- onFocus: xe,
2295
- onBlur: We,
2272
+ loading: s,
2273
+ onFocus: He,
2274
+ onBlur: Ge,
2296
2275
  onChange: Ve,
2297
- onKeyDown: M,
2298
- onKeyUp: De,
2299
- maxLength: O,
2276
+ onKeyDown: S,
2277
+ onKeyUp: qe,
2278
+ maxLength: I,
2300
2279
  truncate: H,
2301
- "data-empty": !ue,
2302
- shouldShowFloatingLabelClass: _e,
2303
- style: t === "textarea" ? N : void 0,
2304
- "aria-invalid": !!s,
2305
- "aria-errormessage": s ? `${de}-error` : void 0,
2306
- id: de,
2307
- resize: Q,
2308
- ...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
2309
2288
  }
2310
2289
  )
2311
2290
  }
2312
2291
  );
2313
2292
  }
2314
- ), X = {
2293
+ ), te = {
2315
2294
  SMALL: "small",
2316
2295
  MEDIUM: "medium",
2317
2296
  LARGE: "large"
2318
- }, _n = (t, r, a, s) => {
2319
- switch (t) {
2320
- case X.LARGE:
2321
- return r && a ? "8px 16px 8px 16px" : "16px 16px 16px 16px";
2322
- case X.MEDIUM:
2323
- return s ? "12px 12px 12px 12px" : "12px 12px 12px 16px";
2324
- 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:
2325
2304
  return "10px 12px 10px 12px";
2326
2305
  default:
2327
2306
  return "12px 16px 12px 16px";
2328
2307
  }
2329
- }, pn = (t) => {
2330
- switch (t) {
2331
- case X.LARGE:
2308
+ }, vs = (e) => {
2309
+ switch (e) {
2310
+ case te.LARGE:
2332
2311
  return "56px";
2333
- case X.MEDIUM:
2312
+ case te.MEDIUM:
2334
2313
  return "48px";
2335
- case X.SMALL:
2314
+ case te.SMALL:
2336
2315
  return "40px";
2337
2316
  default:
2338
2317
  return "48px";
2339
2318
  }
2340
- }, fn = (t) => {
2341
- switch (t) {
2342
- case X.SMALL:
2319
+ }, xs = (e) => {
2320
+ switch (e) {
2321
+ case te.SMALL:
2343
2322
  return 8;
2344
2323
  // 8px для small
2345
- case X.MEDIUM:
2346
- case X.LARGE:
2324
+ case te.MEDIUM:
2325
+ case te.LARGE:
2347
2326
  return 12;
2348
2327
  // 12px для medium и large
2349
2328
  default:
2350
2329
  return 12;
2351
2330
  }
2352
- }, gn = (t, r, a) => ({
2331
+ }, Cs = (e, a, r) => ({
2353
2332
  wrapperStyles: {
2354
- height: t,
2355
- minHeight: t,
2356
- maxHeight: t,
2333
+ height: e,
2334
+ minHeight: e,
2335
+ maxHeight: e,
2357
2336
  boxSizing: "border-box",
2358
- padding: r
2337
+ padding: a
2359
2338
  },
2360
2339
  floatingLabelStyles: {
2361
2340
  left: "16px",
2362
2341
  transformOrigin: "left top"
2363
2342
  },
2364
2343
  prefixStyles: {
2365
- paddingRight: `${a}px`
2344
+ paddingRight: `${r}px`
2366
2345
  },
2367
2346
  suffixStyles: {
2368
- right: `${a}px`
2347
+ right: `${r}px`
2369
2348
  }
2370
- }), hn = (t, r, a) => ({
2349
+ }), ws = (e, a, r) => ({
2371
2350
  wrapperStyles: {
2372
- minHeight: t,
2373
- maxHeight: t,
2351
+ minHeight: e,
2352
+ maxHeight: e,
2374
2353
  boxSizing: "border-box",
2375
- padding: r
2354
+ padding: a
2376
2355
  },
2377
2356
  floatingLabelStyles: {
2378
2357
  left: "16px"
2379
2358
  },
2380
2359
  prefixStyles: {
2381
- paddingRight: `${a}px`
2360
+ paddingRight: `${r}px`
2382
2361
  },
2383
2362
  suffixStyles: {
2384
- right: `${a}px`
2363
+ right: `${r}px`
2385
2364
  }
2386
- }), bn = (t, r, a) => ({
2365
+ }), Ss = (e, a, r) => ({
2387
2366
  wrapperStyles: {
2388
- minHeight: t,
2389
- maxHeight: t,
2367
+ minHeight: e,
2368
+ maxHeight: e,
2390
2369
  boxSizing: "border-box",
2391
- padding: r
2370
+ padding: a
2392
2371
  },
2393
2372
  floatingLabelStyles: {
2394
2373
  left: "12px"
2395
2374
  },
2396
2375
  prefixStyles: {
2397
- paddingRight: `${a}px`
2376
+ paddingRight: `${r}px`
2398
2377
  },
2399
2378
  suffixStyles: {
2400
- right: `${a}px`
2379
+ right: `${r}px`
2401
2380
  }
2402
- }), yn = (t, r, a, s) => {
2403
- const i = pn(t), n = _n(t, r, a, s), c = fn(t);
2404
- switch (t) {
2405
- case X.LARGE:
2406
- return gn(i, n, c);
2407
- case X.MEDIUM:
2408
- return hn(i, n, c);
2409
- case X.SMALL:
2410
- return bn(i, n, c);
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);
2411
2390
  default:
2412
2391
  return {
2413
2392
  wrapperStyles: {},
@@ -2416,351 +2395,548 @@ const St = Object.assign(un, {
2416
2395
  suffixStyles: {}
2417
2396
  };
2418
2397
  }
2419
- }, Fn = te(
2398
+ }, wo = J(
2420
2399
  ({
2421
- value: t = "",
2422
- onChange: r,
2423
- type: a = "text",
2424
- placeholder: s,
2400
+ value: e = "",
2401
+ onChange: a,
2402
+ type: r = "text",
2403
+ placeholder: n,
2425
2404
  maxLength: i,
2426
- minLength: n,
2405
+ minLength: s,
2427
2406
  autoComplete: c,
2428
- autoFocus: _,
2429
- size: d = X.MEDIUM,
2430
- inputProps: f,
2431
- error: p,
2432
- disabled: h,
2433
- loading: b,
2434
- helper: y,
2435
- prefix: x,
2436
- suffix: M,
2437
- clearable: S = !1,
2438
- id: C,
2407
+ autoFocus: u,
2408
+ size: d = te.MEDIUM,
2409
+ inputProps: p,
2410
+ error: f,
2411
+ disabled: y,
2412
+ loading: m,
2413
+ helper: h,
2414
+ prefix: v,
2415
+ suffix: S,
2416
+ clearable: w = !1,
2417
+ id: x,
2439
2418
  showLabel: g = !0,
2440
- onFocus: $,
2441
- onBlur: k,
2442
- onSuffixClick: D,
2443
- onClear: T,
2444
- className: A,
2419
+ onFocus: M,
2420
+ onBlur: q,
2421
+ onSuffixClick: A,
2422
+ onClear: $,
2423
+ className: R,
2445
2424
  truncate: N = !0,
2446
- hint: U,
2447
- showHint: q = !1,
2448
- showHintOnEmpty: z = !1,
2449
- wrapperProps: O,
2450
- labelProps: m,
2451
- helperProps: j,
2452
- ...B
2453
- }, G) => {
2454
- const H = (t || "").length > 0, Q = d === X.LARGE, ae = !!x, J = Q && g && !x, re = S && H && !(h || b), se = () => {
2455
- r == null || r(""), T == null || T();
2456
- }, de = re ? /* @__PURE__ */ o.jsx(
2457
- kt,
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,
2458
2437
  {
2459
- size: d === X.SMALL ? "xs" : "sm",
2438
+ size: d === te.SMALL ? "xs" : "sm",
2460
2439
  color: "var(--icon-secondary)",
2461
- onClick: se,
2440
+ onClick: Q,
2462
2441
  style: { cursor: "pointer" },
2463
2442
  "data-testid": "x-icon"
2464
2443
  }
2465
- ) : M, ve = {
2466
- type: a,
2467
- minLength: n,
2444
+ ) : S, Re = {
2445
+ type: r,
2446
+ minLength: s,
2468
2447
  autoComplete: c,
2469
- autoFocus: _,
2470
- ...f
2471
- }, ie = yn(d, J, H, ae);
2448
+ autoFocus: u,
2449
+ ...p
2450
+ }, de = Es(d, Z, H, ae);
2472
2451
  return /* @__PURE__ */ o.jsx(
2473
- At,
2452
+ Pt,
2474
2453
  {
2475
2454
  size: d,
2476
- error: p,
2477
- disabled: h || b,
2478
- loading: b,
2479
- helper: y,
2480
- prefix: x,
2481
- suffix: de,
2482
- id: C,
2483
- showLabel: J,
2484
- onFocus: $,
2485
- onBlur: k,
2486
- onSuffixClick: D,
2487
- onChange: r,
2488
- value: t,
2489
- placeholder: s,
2490
- className: A,
2491
- wrapperStyles: ie.wrapperStyles,
2492
- floatingLabelStyles: ie.floatingLabelStyles,
2493
- prefixStyles: ie.prefixStyles,
2494
- suffixStyles: ie.suffixStyles,
2495
- wrapperProps: O,
2496
- labelProps: m,
2497
- helperProps: j,
2455
+ error: f,
2456
+ disabled: y || m,
2457
+ loading: m,
2458
+ helper: h,
2459
+ prefix: v,
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,
2498
2477
  showLimit: !1,
2499
2478
  maxLength: i,
2500
- inputProps: ve,
2501
- hint: U,
2502
- showHint: q,
2503
- showHintOnEmpty: z,
2479
+ inputProps: Re,
2480
+ hint: z,
2481
+ showHint: P,
2482
+ showHintOnEmpty: F,
2504
2483
  truncate: N,
2505
- ...B
2484
+ ...D
2506
2485
  }
2507
2486
  );
2508
2487
  }
2509
- ), oe = {
2488
+ ), ie = {
2510
2489
  SMALL: "small",
2511
2490
  MEDIUM: "medium"
2512
- }, Pe = {
2491
+ }, ze = {
2513
2492
  SMALL: "12px",
2514
2493
  MEDIUM: "16px"
2515
- }, mn = {
2494
+ }, Ls = {
2516
2495
  SMALL: "xs",
2517
2496
  MEDIUM: "sm"
2518
- }, Be = {
2497
+ }, Fe = {
2519
2498
  FILL: "fill",
2520
2499
  FIXED: "fixed"
2521
- }, Xe = {
2500
+ }, rt = {
2522
2501
  SMALL: "112px",
2523
2502
  MEDIUM: "56px"
2524
- }, $e = {
2503
+ }, je = {
2525
2504
  SMALL: "48px",
2526
2505
  MEDIUM: "22px"
2527
- }, ge = {
2506
+ }, _e = {
2528
2507
  SMALL: "12px 12px 12px 12px",
2529
2508
  MEDIUM: "16px 16px 16px 16px",
2530
2509
  MEDIUM_WITH_PREFIX: "12px 16px 12px 16px",
2531
2510
  MEDIUM_FLOATING_LABEL: "8px 16px 8px 16px"
2532
- }, be = {
2511
+ }, fe = {
2533
2512
  SMALL: 48,
2534
2513
  MEDIUM: 56,
2535
2514
  LARGE: 112
2536
- }, vn = (t, r) => {
2537
- if (t === oe.SMALL)
2538
- return Xe.SMALL;
2539
- if (r)
2540
- return `${r}px`;
2541
- switch (t) {
2542
- case oe.MEDIUM:
2543
- 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;
2544
2523
  default:
2545
- return Xe.MEDIUM;
2524
+ return rt.MEDIUM;
2546
2525
  }
2547
- }, xn = (t, r) => {
2548
- if (t === oe.SMALL)
2549
- return $e.SMALL;
2550
- if (r)
2551
- switch (r) {
2552
- case be.SMALL:
2553
- case be.MEDIUM:
2554
- return $e.MEDIUM;
2555
- case be.LARGE:
2556
- 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;
2557
2536
  default:
2558
- return $e.MEDIUM;
2537
+ return je.MEDIUM;
2559
2538
  }
2560
- switch (t) {
2561
- case oe.MEDIUM:
2562
- return $e.MEDIUM;
2539
+ switch (e) {
2540
+ case ie.MEDIUM:
2541
+ return je.MEDIUM;
2563
2542
  default:
2564
- return $e.MEDIUM;
2543
+ return je.MEDIUM;
2565
2544
  }
2566
- }, Cn = (t, r, a) => {
2567
- if (t === oe.SMALL)
2568
- return ge.SMALL;
2569
- if (r)
2570
- switch (r) {
2571
- case be.SMALL:
2572
- return ge.MEDIUM_WITH_PREFIX;
2573
- case be.MEDIUM:
2574
- return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
2575
- case be.LARGE:
2576
- 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;
2577
2556
  default:
2578
- return ge.MEDIUM;
2557
+ return _e.MEDIUM;
2579
2558
  }
2580
- switch (t) {
2581
- case oe.MEDIUM:
2582
- return a ? ge.MEDIUM_FLOATING_LABEL : ge.MEDIUM;
2559
+ switch (e) {
2560
+ case ie.MEDIUM:
2561
+ return r ? _e.MEDIUM_FLOATING_LABEL : _e.MEDIUM;
2583
2562
  default:
2584
- return ge.MEDIUM;
2563
+ return _e.MEDIUM;
2585
2564
  }
2586
- }, wn = (t, r) => {
2587
- if (t === oe.SMALL)
2565
+ }, Ms = (e, a) => {
2566
+ if (e === ie.SMALL)
2588
2567
  return "small";
2589
- if (r)
2590
- switch (r) {
2591
- case be.SMALL:
2568
+ if (a)
2569
+ switch (a) {
2570
+ case fe.SMALL:
2592
2571
  return "small";
2593
- case be.MEDIUM:
2572
+ case fe.MEDIUM:
2594
2573
  return "medium";
2595
- case be.LARGE:
2574
+ case fe.LARGE:
2596
2575
  return "medium";
2597
2576
  default:
2598
2577
  return "medium";
2599
2578
  }
2600
- return t;
2601
- }, Sn = (t) => mn[t.toUpperCase()], En = (t) => Pe[t.toUpperCase()], Ln = (t, r, a, s) => {
2602
- const i = vn(t, r), n = xn(t, r), c = Cn(t, r, a);
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);
2603
2582
  return {
2604
2583
  wrapperStyles: {
2605
2584
  minHeight: i,
2606
2585
  // Для fill resize устанавливаем height: 100%
2607
- ...s === Be.FILL && { height: "100%" },
2586
+ ...n === Fe.FILL && { height: "100%" },
2608
2587
  // Для fixed resize устанавливаем фиксированную высоту
2609
- ...s === Be.FIXED && r && { height: i },
2588
+ ...n === Fe.FIXED && a && { height: i },
2610
2589
  boxSizing: "border-box",
2611
2590
  padding: c
2612
2591
  },
2613
2592
  floatingLabelStyles: {
2614
- left: t === oe.SMALL ? Pe.SMALL : Pe.MEDIUM,
2593
+ left: e === ie.SMALL ? ze.SMALL : ze.MEDIUM,
2615
2594
  transformOrigin: "left top",
2616
- top: r === 112 && a && t === oe.MEDIUM ? Pe.MEDIUM : void 0
2595
+ top: a === 112 && r && e === ie.MEDIUM ? ze.MEDIUM : void 0
2617
2596
  },
2618
2597
  suffixStyles: {
2619
- right: En(t)
2598
+ right: Is(e)
2620
2599
  },
2621
2600
  textareaStyles: {
2622
- minHeight: n,
2601
+ minHeight: s,
2623
2602
  // Для fill resize flex: 1
2624
- ...s === Be.FILL && { flex: 1, minHeight: 0 },
2603
+ ...n === Fe.FILL && { flex: 1, minHeight: 0 },
2625
2604
  // Для fixed resize фиксированная высота
2626
- ...s === Be.FIXED && r && { height: n }
2605
+ ...n === Fe.FIXED && a && { height: s }
2627
2606
  }
2628
2607
  };
2629
- }, Pn = te(
2608
+ }, So = J(
2630
2609
  ({
2631
- value: t = "",
2632
- onChange: r,
2633
- placeholder: a,
2634
- maxLength: s,
2610
+ value: e = "",
2611
+ onChange: a,
2612
+ placeholder: r,
2613
+ maxLength: n,
2635
2614
  minLength: i,
2636
- autoFocus: n,
2637
- size: c = oe.MEDIUM,
2638
- textareaProps: _,
2615
+ autoFocus: s,
2616
+ size: c = ie.MEDIUM,
2617
+ textareaProps: u,
2639
2618
  error: d,
2640
- disabled: f,
2641
- loading: p,
2642
- helper: h,
2643
- suffix: b,
2644
- clearable: y = !1,
2645
- id: x,
2646
- showLabel: M = !0,
2647
- onFocus: S,
2648
- onBlur: C,
2619
+ disabled: p,
2620
+ loading: f,
2621
+ helper: y,
2622
+ suffix: m,
2623
+ clearable: h = !1,
2624
+ id: v,
2625
+ showLabel: S = !0,
2626
+ onFocus: w,
2627
+ onBlur: x,
2649
2628
  onClear: g,
2650
- onKeyDown: $,
2651
- className: k,
2652
- rows: D = 1,
2653
- showLimit: T = !1,
2654
- wrapperProps: A,
2629
+ onKeyDown: M,
2630
+ className: q,
2631
+ rows: A = 1,
2632
+ showLimit: $ = !1,
2633
+ wrapperProps: R,
2655
2634
  labelProps: N,
2656
- helperProps: U,
2657
- showGrip: q,
2658
- minHeight: z,
2659
- resize: O,
2660
- ...m
2661
- }, j) => {
2662
- const B = (t || "").length > 0, G = M && !!a && (c === oe.SMALL || z !== 48), H = y && B && !(f || p), Q = () => {
2663
- r == null || r(""), g == null || g();
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();
2664
2643
  }, ae = H ? /* @__PURE__ */ o.jsx(
2665
- kt,
2644
+ qt,
2666
2645
  {
2667
- size: Sn(c),
2646
+ size: Rs(c),
2668
2647
  color: "var(--icon-secondary)",
2669
- onClick: Q,
2648
+ onClick: X,
2670
2649
  style: { cursor: "pointer" },
2671
2650
  "data-testid": "x-icon"
2672
2651
  }
2673
- ) : b, J = Ln(c, z, G && B, O), re = wn(c, z), se = {
2674
- rows: D,
2652
+ ) : m, Z = Ts(c, F, U && D, I), se = Ms(c, F), Q = {
2653
+ rows: A,
2675
2654
  minLength: i,
2676
- autoFocus: n,
2677
- resize: O,
2678
- ..._
2655
+ autoFocus: s,
2656
+ resize: I,
2657
+ ...u
2679
2658
  };
2680
2659
  return /* @__PURE__ */ o.jsx(
2681
- At,
2660
+ Pt,
2682
2661
  {
2683
- ref: j,
2662
+ ref: L,
2684
2663
  component: "textarea",
2685
- size: re,
2664
+ size: se,
2686
2665
  error: d,
2687
- disabled: f || p,
2688
- loading: p,
2689
- helper: h,
2666
+ disabled: p || f,
2667
+ loading: f,
2668
+ helper: y,
2690
2669
  suffix: ae,
2691
- id: x,
2692
- showLabel: G,
2693
- onFocus: S,
2694
- onBlur: C,
2695
- onKeyDown: $,
2696
- onChange: r,
2697
- value: t || "",
2698
- placeholder: a,
2699
- className: k,
2700
- "data-floating-label": G,
2701
- wrapperStyles: J.wrapperStyles,
2702
- floatingLabelStyles: J.floatingLabelStyles,
2703
- suffixStyles: J.suffixStyles,
2704
- textareaStyles: J.textareaStyles,
2705
- wrapperProps: A,
2670
+ id: v,
2671
+ showLabel: U,
2672
+ onFocus: w,
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,
2706
2685
  labelProps: N,
2707
- helperProps: U,
2708
- showLimit: T && (z === 112 || c === oe.SMALL),
2709
- maxLength: s,
2710
- inputProps: se,
2711
- resize: O,
2712
- showGrip: q,
2713
- ...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
2714
2693
  }
2715
2694
  );
2716
2695
  }
2717
- ), Mn = "_helper_1vhgl_16", Qe = {
2718
- helper: Mn,
2719
- "helper--error": "_helper--error_1vhgl_27",
2720
- "helper--disabled": "_helper--disabled_1vhgl_32"
2721
- }, zn = ({
2722
- title: t,
2723
- error: r,
2724
- className: a = "",
2725
- 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,
2726
2705
  disabled: i = !1,
2727
- "data-testid": n,
2706
+ "data-testid": s,
2728
2707
  "aria-label": c,
2729
- "aria-describedby": _
2708
+ "aria-describedby": u
2730
2709
  }) => {
2731
- const d = !!r, f = V(
2732
- Qe.helper,
2733
- d && Qe["helper--error"],
2734
- i && Qe["helper--disabled"],
2735
- a
2736
- ), p = 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;
2737
2716
  return /* @__PURE__ */ o.jsx(
2738
2717
  "div",
2739
2718
  {
2740
- className: f,
2741
- style: s,
2742
- "data-testid": n,
2719
+ className: p,
2720
+ style: n,
2721
+ "data-testid": s,
2743
2722
  "aria-label": c,
2744
- "aria-describedby": _,
2745
- children: /* @__PURE__ */ o.jsx("p", { children: p })
2723
+ "aria-describedby": u,
2724
+ children: /* @__PURE__ */ o.jsx("p", { children: f })
2746
2725
  }
2747
2726
  );
2748
- };
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
+ );
2749
2923
  export {
2750
- Rn as Avatar,
2751
- kn as Badge,
2752
- In as Button,
2753
- Un as Checkbox,
2754
- Nn as ConfigProvider,
2755
- zn as Helper,
2756
- Tn as Image,
2757
- Vr as Loader,
2758
- On as Tag,
2759
- Pn as TextArea,
2760
- Fn as TextInput,
2761
- Bn as Typography,
2762
- qr as enUS,
2763
- Dn as ruRU,
2764
- Gr as useConfig,
2765
- An as useLocale
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
2766
2942
  };