skillgrid 0.0.13 → 0.0.16-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,8 +1,9 @@
1
- import tt, { forwardRef as te, useState as Te, useRef as rt, useEffect as at, useCallback as Ye, Fragment as Tt, createContext as Pt, useContext as Lt } from "react";
2
- import './index.css';function Nt(r) {
1
+ import nt, { forwardRef as H, useState as Le, useRef as ot, useEffect as st, useCallback as He, Fragment as Nt, createContext as It, useContext as At } from "react";
2
+ import { clsx as ae } from "clsx";
3
+ import './index.css';function Mt(r) {
3
4
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
5
  }
5
- var Ce = { exports: {} }, se = {};
6
+ var xe = { exports: {} }, ce = {};
6
7
  /**
7
8
  * @license React
8
9
  * react-jsx-runtime.production.min.js
@@ -12,21 +13,21 @@ var Ce = { exports: {} }, se = {};
12
13
  * This source code is licensed under the MIT license found in the
13
14
  * LICENSE file in the root directory of this source tree.
14
15
  */
15
- var qe;
16
- function At() {
17
- if (qe) return se;
18
- qe = 1;
19
- var r = tt, i = Symbol.for("react.element"), n = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
20
- function f(_, c, m) {
21
- var b, v = {}, y = null, w = null;
22
- m !== void 0 && (y = "" + m), c.key !== void 0 && (y = "" + c.key), c.ref !== void 0 && (w = c.ref);
23
- for (b in c) o.call(c, b) && !s.hasOwnProperty(b) && (v[b] = c[b]);
24
- if (_ && _.defaultProps) for (b in c = _.defaultProps, c) v[b] === void 0 && (v[b] = c[b]);
25
- return { $$typeof: i, type: _, key: y, ref: w, props: v, _owner: d.current };
16
+ var Je;
17
+ function Dt() {
18
+ if (Je) return ce;
19
+ Je = 1;
20
+ var r = nt, s = Symbol.for("react.element"), a = Symbol.for("react.fragment"), o = Object.prototype.hasOwnProperty, d = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
21
+ function _(f, c, h) {
22
+ var p, g = {}, C = null, w = null;
23
+ h !== void 0 && (C = "" + h), c.key !== void 0 && (C = "" + c.key), c.ref !== void 0 && (w = c.ref);
24
+ for (p in c) o.call(c, p) && !i.hasOwnProperty(p) && (g[p] = c[p]);
25
+ if (f && f.defaultProps) for (p in c = f.defaultProps, c) g[p] === void 0 && (g[p] = c[p]);
26
+ return { $$typeof: s, type: f, key: C, ref: w, props: g, _owner: d.current };
26
27
  }
27
- return se.Fragment = n, se.jsx = f, se.jsxs = f, se;
28
+ return ce.Fragment = a, ce.jsx = _, ce.jsxs = _, ce;
28
29
  }
29
- var ce = {};
30
+ var ue = {};
30
31
  /**
31
32
  * @license React
32
33
  * react-jsx-runtime.development.js
@@ -36,91 +37,91 @@ var ce = {};
36
37
  * This source code is licensed under the MIT license found in the
37
38
  * LICENSE file in the root directory of this source tree.
38
39
  */
39
- var He;
40
- function Mt() {
41
- return He || (He = 1, process.env.NODE_ENV !== "production" && function() {
42
- var r = tt, i = Symbol.for("react.element"), n = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), f = Symbol.for("react.provider"), _ = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), $ = Symbol.iterator, k = "@@iterator";
43
- function B(e) {
40
+ var Ke;
41
+ function Bt() {
42
+ return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var r = nt, s = Symbol.for("react.element"), a = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), d = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), f = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), g = Symbol.for("react.memo"), C = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), $ = Symbol.iterator, k = "@@iterator";
44
+ function L(e) {
44
45
  if (e === null || typeof e != "object")
45
46
  return null;
46
47
  var t = $ && e[$] || e[k];
47
48
  return typeof t == "function" ? t : null;
48
49
  }
49
50
  var S = r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
50
- function C(e) {
51
+ function y(e) {
51
52
  {
52
- for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
53
- a[u - 1] = arguments[u];
54
- O("error", e, a);
53
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
54
+ n[u - 1] = arguments[u];
55
+ T("error", e, n);
55
56
  }
56
57
  }
57
- function O(e, t, a) {
58
+ function T(e, t, n) {
58
59
  {
59
- var u = S.ReactDebugCurrentFrame, h = u.getStackAddendum();
60
- h !== "" && (t += "%s", a = a.concat([h]));
61
- var x = a.map(function(g) {
62
- return String(g);
60
+ var u = S.ReactDebugCurrentFrame, m = u.getStackAddendum();
61
+ m !== "" && (t += "%s", n = n.concat([m]));
62
+ var x = n.map(function(v) {
63
+ return String(v);
63
64
  });
64
65
  x.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, x);
65
66
  }
66
67
  }
67
- var L = !1, U = !1, F = !1, z = !1, V = !1, A;
68
+ var N = !1, U = !1, B = !1, F = !1, z = !1, A;
68
69
  A = Symbol.for("react.module.reference");
69
- function H(e) {
70
- return !!(typeof e == "string" || typeof e == "function" || e === o || e === s || V || e === d || e === m || e === b || z || e === w || L || U || F || typeof e == "object" && e !== null && (e.$$typeof === y || e.$$typeof === v || e.$$typeof === f || e.$$typeof === _ || e.$$typeof === c || // This needs to include all possible module reference object
70
+ function J(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === o || e === i || z || e === d || e === h || e === p || F || e === w || N || U || B || typeof e == "object" && e !== null && (e.$$typeof === C || e.$$typeof === g || e.$$typeof === _ || e.$$typeof === f || e.$$typeof === c || // This needs to include all possible module reference object
71
72
  // types supported by any Flight configuration anywhere since
72
73
  // we don't know which Flight build this will end up being used
73
74
  // with.
74
75
  e.$$typeof === A || e.getModuleId !== void 0));
75
76
  }
76
- function J(e, t, a) {
77
+ function K(e, t, n) {
77
78
  var u = e.displayName;
78
79
  if (u)
79
80
  return u;
80
- var h = t.displayName || t.name || "";
81
- return h !== "" ? a + "(" + h + ")" : a;
81
+ var m = t.displayName || t.name || "";
82
+ return m !== "" ? n + "(" + m + ")" : n;
82
83
  }
83
84
  function G(e) {
84
85
  return e.displayName || "Context";
85
86
  }
86
- function N(e) {
87
+ function I(e) {
87
88
  if (e == null)
88
89
  return null;
89
- if (typeof e.tag == "number" && C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
+ if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
90
91
  return e.displayName || e.name || null;
91
92
  if (typeof e == "string")
92
93
  return e;
93
94
  switch (e) {
94
95
  case o:
95
96
  return "Fragment";
96
- case n:
97
+ case a:
97
98
  return "Portal";
98
- case s:
99
+ case i:
99
100
  return "Profiler";
100
101
  case d:
101
102
  return "StrictMode";
102
- case m:
103
+ case h:
103
104
  return "Suspense";
104
- case b:
105
+ case p:
105
106
  return "SuspenseList";
106
107
  }
107
108
  if (typeof e == "object")
108
109
  switch (e.$$typeof) {
109
- case _:
110
+ case f:
110
111
  var t = e;
111
112
  return G(t) + ".Consumer";
112
- case f:
113
- var a = e;
114
- return G(a._context) + ".Provider";
113
+ case _:
114
+ var n = e;
115
+ return G(n._context) + ".Provider";
115
116
  case c:
116
- return J(e, e.render, "ForwardRef");
117
- case v:
117
+ return K(e, e.render, "ForwardRef");
118
+ case g:
118
119
  var u = e.displayName || null;
119
- return u !== null ? u : N(e.type) || "Memo";
120
- case y: {
121
- var h = e, x = h._payload, g = h._init;
120
+ return u !== null ? u : I(e.type) || "Memo";
121
+ case C: {
122
+ var m = e, x = m._payload, v = m._init;
122
123
  try {
123
- return N(g(x));
124
+ return I(v(x));
124
125
  } catch {
125
126
  return null;
126
127
  }
@@ -128,18 +129,18 @@ function Mt() {
128
129
  }
129
130
  return null;
130
131
  }
131
- var W = Object.assign, K = 0, ue, de, fe, _e, pe, be, ge;
132
- function ve() {
132
+ var V = Object.assign, Q = 0, _e, fe, pe, be, ge, ve, he;
133
+ function me() {
133
134
  }
134
- ve.__reactDisabledLog = !0;
135
- function xe() {
135
+ me.__reactDisabledLog = !0;
136
+ function we() {
136
137
  {
137
- if (K === 0) {
138
- ue = console.log, de = console.info, fe = console.warn, _e = console.error, pe = console.group, be = console.groupCollapsed, ge = console.groupEnd;
138
+ if (Q === 0) {
139
+ _e = console.log, fe = console.info, pe = console.warn, be = console.error, ge = console.group, ve = console.groupCollapsed, he = console.groupEnd;
139
140
  var e = {
140
141
  configurable: !0,
141
142
  enumerable: !0,
142
- value: ve,
143
+ value: me,
143
144
  writable: !0
144
145
  };
145
146
  Object.defineProperties(console, {
@@ -152,100 +153,100 @@ function Mt() {
152
153
  groupEnd: e
153
154
  });
154
155
  }
155
- K++;
156
+ Q++;
156
157
  }
157
158
  }
158
- function ye() {
159
+ function Ee() {
159
160
  {
160
- if (K--, K === 0) {
161
+ if (Q--, Q === 0) {
161
162
  var e = {
162
163
  configurable: !0,
163
164
  enumerable: !0,
164
165
  writable: !0
165
166
  };
166
167
  Object.defineProperties(console, {
167
- log: W({}, e, {
168
- value: ue
169
- }),
170
- info: W({}, e, {
171
- value: de
168
+ log: V({}, e, {
169
+ value: _e
172
170
  }),
173
- warn: W({}, e, {
171
+ info: V({}, e, {
174
172
  value: fe
175
173
  }),
176
- error: W({}, e, {
177
- value: _e
178
- }),
179
- group: W({}, e, {
174
+ warn: V({}, e, {
180
175
  value: pe
181
176
  }),
182
- groupCollapsed: W({}, e, {
177
+ error: V({}, e, {
183
178
  value: be
184
179
  }),
185
- groupEnd: W({}, e, {
180
+ group: V({}, e, {
186
181
  value: ge
182
+ }),
183
+ groupCollapsed: V({}, e, {
184
+ value: ve
185
+ }),
186
+ groupEnd: V({}, e, {
187
+ value: he
187
188
  })
188
189
  });
189
190
  }
190
- K < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ Q < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
192
  }
192
193
  }
193
- var ne = S.ReactCurrentDispatcher, Q;
194
- function Y(e, t, a) {
194
+ var se = S.ReactCurrentDispatcher, X;
195
+ function Y(e, t, n) {
195
196
  {
196
- if (Q === void 0)
197
+ if (X === void 0)
197
198
  try {
198
199
  throw Error();
199
- } catch (h) {
200
- var u = h.stack.trim().match(/\n( *(at )?)/);
201
- Q = u && u[1] || "";
200
+ } catch (m) {
201
+ var u = m.stack.trim().match(/\n( *(at )?)/);
202
+ X = u && u[1] || "";
202
203
  }
203
204
  return `
204
- ` + Q + e;
205
+ ` + X + e;
205
206
  }
206
207
  }
207
- var X = !1, q;
208
+ var ee = !1, q;
208
209
  {
209
- var oe = typeof WeakMap == "function" ? WeakMap : Map;
210
- q = new oe();
210
+ var ie = typeof WeakMap == "function" ? WeakMap : Map;
211
+ q = new ie();
211
212
  }
212
- function Pe(e, t) {
213
- if (!e || X)
213
+ function Ne(e, t) {
214
+ if (!e || ee)
214
215
  return "";
215
216
  {
216
- var a = q.get(e);
217
- if (a !== void 0)
218
- return a;
217
+ var n = q.get(e);
218
+ if (n !== void 0)
219
+ return n;
219
220
  }
220
221
  var u;
221
- X = !0;
222
- var h = Error.prepareStackTrace;
222
+ ee = !0;
223
+ var m = Error.prepareStackTrace;
223
224
  Error.prepareStackTrace = void 0;
224
225
  var x;
225
- x = ne.current, ne.current = null, xe();
226
+ x = se.current, se.current = null, we();
226
227
  try {
227
228
  if (t) {
228
- var g = function() {
229
+ var v = function() {
229
230
  throw Error();
230
231
  };
231
- if (Object.defineProperty(g.prototype, "props", {
232
+ if (Object.defineProperty(v.prototype, "props", {
232
233
  set: function() {
233
234
  throw Error();
234
235
  }
235
236
  }), typeof Reflect == "object" && Reflect.construct) {
236
237
  try {
237
- Reflect.construct(g, []);
238
+ Reflect.construct(v, []);
238
239
  } catch (P) {
239
240
  u = P;
240
241
  }
241
- Reflect.construct(e, [], g);
242
+ Reflect.construct(e, [], v);
242
243
  } else {
243
244
  try {
244
- g.call();
245
+ v.call();
245
246
  } catch (P) {
246
247
  u = P;
247
248
  }
248
- e.call(g.prototype);
249
+ e.call(v.prototype);
249
250
  }
250
251
  } else {
251
252
  try {
@@ -257,17 +258,17 @@ function Mt() {
257
258
  }
258
259
  } catch (P) {
259
260
  if (P && u && typeof P.stack == "string") {
260
- for (var p = P.stack.split(`
261
- `), T = u.stack.split(`
262
- `), E = p.length - 1, j = T.length - 1; E >= 1 && j >= 0 && p[E] !== T[j]; )
261
+ for (var b = P.stack.split(`
262
+ `), O = u.stack.split(`
263
+ `), E = b.length - 1, j = O.length - 1; E >= 1 && j >= 0 && b[E] !== O[j]; )
263
264
  j--;
264
265
  for (; E >= 1 && j >= 0; E--, j--)
265
- if (p[E] !== T[j]) {
266
+ if (b[E] !== O[j]) {
266
267
  if (E !== 1 || j !== 1)
267
268
  do
268
- if (E--, j--, j < 0 || p[E] !== T[j]) {
269
+ if (E--, j--, j < 0 || b[E] !== O[j]) {
269
270
  var M = `
270
- ` + p[E].replace(" at new ", " at ");
271
+ ` + b[E].replace(" at new ", " at ");
271
272
  return e.displayName && M.includes("<anonymous>") && (M = M.replace("<anonymous>", e.displayName)), typeof e == "function" && q.set(e, M), M;
272
273
  }
273
274
  while (E >= 1 && j >= 0);
@@ -275,209 +276,209 @@ function Mt() {
275
276
  }
276
277
  }
277
278
  } finally {
278
- X = !1, ne.current = x, ye(), Error.prepareStackTrace = h;
279
+ ee = !1, se.current = x, Ee(), Error.prepareStackTrace = m;
279
280
  }
280
- var ae = e ? e.displayName || e.name : "", ee = ae ? Y(ae) : "";
281
- return typeof e == "function" && q.set(e, ee), ee;
281
+ var oe = e ? e.displayName || e.name : "", te = oe ? Y(oe) : "";
282
+ return typeof e == "function" && q.set(e, te), te;
282
283
  }
283
- function st(e, t, a) {
284
- return Pe(e, !1);
284
+ function ut(e, t, n) {
285
+ return Ne(e, !1);
285
286
  }
286
- function ct(e) {
287
+ function dt(e) {
287
288
  var t = e.prototype;
288
289
  return !!(t && t.isReactComponent);
289
290
  }
290
- function he(e, t, a) {
291
+ function Ce(e, t, n) {
291
292
  if (e == null)
292
293
  return "";
293
294
  if (typeof e == "function")
294
- return Pe(e, ct(e));
295
+ return Ne(e, dt(e));
295
296
  if (typeof e == "string")
296
297
  return Y(e);
297
298
  switch (e) {
298
- case m:
299
+ case h:
299
300
  return Y("Suspense");
300
- case b:
301
+ case p:
301
302
  return Y("SuspenseList");
302
303
  }
303
304
  if (typeof e == "object")
304
305
  switch (e.$$typeof) {
305
306
  case c:
306
- return st(e.render);
307
- case v:
308
- return he(e.type, t, a);
309
- case y: {
310
- var u = e, h = u._payload, x = u._init;
307
+ return ut(e.render);
308
+ case g:
309
+ return Ce(e.type, t, n);
310
+ case C: {
311
+ var u = e, m = u._payload, x = u._init;
311
312
  try {
312
- return he(x(h), t, a);
313
+ return Ce(x(m), t, n);
313
314
  } catch {
314
315
  }
315
316
  }
316
317
  }
317
318
  return "";
318
319
  }
319
- var ie = Object.prototype.hasOwnProperty, Le = {}, Ne = S.ReactDebugCurrentFrame;
320
- function me(e) {
320
+ var le = Object.prototype.hasOwnProperty, Ie = {}, Ae = S.ReactDebugCurrentFrame;
321
+ function ye(e) {
321
322
  if (e) {
322
- var t = e._owner, a = he(e.type, e._source, t ? t.type : null);
323
- Ne.setExtraStackFrame(a);
323
+ var t = e._owner, n = Ce(e.type, e._source, t ? t.type : null);
324
+ Ae.setExtraStackFrame(n);
324
325
  } else
325
- Ne.setExtraStackFrame(null);
326
+ Ae.setExtraStackFrame(null);
326
327
  }
327
- function lt(e, t, a, u, h) {
328
+ function _t(e, t, n, u, m) {
328
329
  {
329
- var x = Function.call.bind(ie);
330
- for (var g in e)
331
- if (x(e, g)) {
332
- var p = void 0;
330
+ var x = Function.call.bind(le);
331
+ for (var v in e)
332
+ if (x(e, v)) {
333
+ var b = void 0;
333
334
  try {
334
- if (typeof e[g] != "function") {
335
- var T = Error((u || "React class") + ": " + a + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
336
- throw T.name = "Invariant Violation", T;
335
+ if (typeof e[v] != "function") {
336
+ var O = Error((u || "React class") + ": " + n + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw O.name = "Invariant Violation", O;
337
338
  }
338
- p = e[g](t, g, u, a, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
+ b = e[v](t, v, u, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
339
340
  } catch (E) {
340
- p = E;
341
+ b = E;
341
342
  }
342
- p && !(p instanceof Error) && (me(h), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", a, g, typeof p), me(null)), p instanceof Error && !(p.message in Le) && (Le[p.message] = !0, me(h), C("Failed %s type: %s", a, p.message), me(null));
343
+ b && !(b instanceof Error) && (ye(m), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", u || "React class", n, v, typeof b), ye(null)), b instanceof Error && !(b.message in Ie) && (Ie[b.message] = !0, ye(m), y("Failed %s type: %s", n, b.message), ye(null));
343
344
  }
344
345
  }
345
346
  }
346
- var ut = Array.isArray;
347
- function we(e) {
348
- return ut(e);
347
+ var ft = Array.isArray;
348
+ function Re(e) {
349
+ return ft(e);
349
350
  }
350
- function dt(e) {
351
+ function pt(e) {
351
352
  {
352
- var t = typeof Symbol == "function" && Symbol.toStringTag, a = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
353
- return a;
353
+ var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
+ return n;
354
355
  }
355
356
  }
356
- function ft(e) {
357
+ function bt(e) {
357
358
  try {
358
- return Ae(e), !1;
359
+ return Me(e), !1;
359
360
  } catch {
360
361
  return !0;
361
362
  }
362
363
  }
363
- function Ae(e) {
364
+ function Me(e) {
364
365
  return "" + e;
365
366
  }
366
- function Me(e) {
367
- if (ft(e))
368
- return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dt(e)), Ae(e);
367
+ function De(e) {
368
+ if (bt(e))
369
+ return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", pt(e)), Me(e);
369
370
  }
370
- var Ie = S.ReactCurrentOwner, _t = {
371
+ var Be = S.ReactCurrentOwner, gt = {
371
372
  key: !0,
372
373
  ref: !0,
373
374
  __self: !0,
374
375
  __source: !0
375
- }, De, Be;
376
- function pt(e) {
377
- if (ie.call(e, "ref")) {
376
+ }, Fe, ze;
377
+ function vt(e) {
378
+ if (le.call(e, "ref")) {
378
379
  var t = Object.getOwnPropertyDescriptor(e, "ref").get;
379
380
  if (t && t.isReactWarning)
380
381
  return !1;
381
382
  }
382
383
  return e.ref !== void 0;
383
384
  }
384
- function bt(e) {
385
- if (ie.call(e, "key")) {
385
+ function ht(e) {
386
+ if (le.call(e, "key")) {
386
387
  var t = Object.getOwnPropertyDescriptor(e, "key").get;
387
388
  if (t && t.isReactWarning)
388
389
  return !1;
389
390
  }
390
391
  return e.key !== void 0;
391
392
  }
392
- function gt(e, t) {
393
- typeof e.ref == "string" && Ie.current;
393
+ function mt(e, t) {
394
+ typeof e.ref == "string" && Be.current;
394
395
  }
395
- function vt(e, t) {
396
+ function Ct(e, t) {
396
397
  {
397
- var a = function() {
398
- De || (De = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
398
+ var n = function() {
399
+ Fe || (Fe = !0, y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
399
400
  };
400
- a.isReactWarning = !0, Object.defineProperty(e, "key", {
401
- get: a,
401
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
402
+ get: n,
402
403
  configurable: !0
403
404
  });
404
405
  }
405
406
  }
406
- function ht(e, t) {
407
+ function yt(e, t) {
407
408
  {
408
- var a = function() {
409
- Be || (Be = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
409
+ var n = function() {
410
+ ze || (ze = !0, y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", t));
410
411
  };
411
- a.isReactWarning = !0, Object.defineProperty(e, "ref", {
412
- get: a,
412
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
413
+ get: n,
413
414
  configurable: !0
414
415
  });
415
416
  }
416
417
  }
417
- var mt = function(e, t, a, u, h, x, g) {
418
- var p = {
418
+ var xt = function(e, t, n, u, m, x, v) {
419
+ var b = {
419
420
  // This tag allows us to uniquely identify this as a React Element
420
- $$typeof: i,
421
+ $$typeof: s,
421
422
  // Built-in properties that belong on the element
422
423
  type: e,
423
424
  key: t,
424
- ref: a,
425
- props: g,
425
+ ref: n,
426
+ props: v,
426
427
  // Record the component responsible for creating this element.
427
428
  _owner: x
428
429
  };
429
- return p._store = {}, Object.defineProperty(p._store, "validated", {
430
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
430
431
  configurable: !1,
431
432
  enumerable: !1,
432
433
  writable: !0,
433
434
  value: !1
434
- }), Object.defineProperty(p, "_self", {
435
+ }), Object.defineProperty(b, "_self", {
435
436
  configurable: !1,
436
437
  enumerable: !1,
437
438
  writable: !1,
438
439
  value: u
439
- }), Object.defineProperty(p, "_source", {
440
+ }), Object.defineProperty(b, "_source", {
440
441
  configurable: !1,
441
442
  enumerable: !1,
442
443
  writable: !1,
443
- value: h
444
- }), Object.freeze && (Object.freeze(p.props), Object.freeze(p)), p;
444
+ value: m
445
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
445
446
  };
446
- function Ct(e, t, a, u, h) {
447
+ function wt(e, t, n, u, m) {
447
448
  {
448
- var x, g = {}, p = null, T = null;
449
- a !== void 0 && (Me(a), p = "" + a), bt(t) && (Me(t.key), p = "" + t.key), pt(t) && (T = t.ref, gt(t, h));
449
+ var x, v = {}, b = null, O = null;
450
+ n !== void 0 && (De(n), b = "" + n), ht(t) && (De(t.key), b = "" + t.key), vt(t) && (O = t.ref, mt(t, m));
450
451
  for (x in t)
451
- ie.call(t, x) && !_t.hasOwnProperty(x) && (g[x] = t[x]);
452
+ le.call(t, x) && !gt.hasOwnProperty(x) && (v[x] = t[x]);
452
453
  if (e && e.defaultProps) {
453
454
  var E = e.defaultProps;
454
455
  for (x in E)
455
- g[x] === void 0 && (g[x] = E[x]);
456
+ v[x] === void 0 && (v[x] = E[x]);
456
457
  }
457
- if (p || T) {
458
+ if (b || O) {
458
459
  var j = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
459
- p && vt(g, j), T && ht(g, j);
460
+ b && Ct(v, j), O && yt(v, j);
460
461
  }
461
- return mt(e, p, T, h, u, Ie.current, g);
462
+ return xt(e, b, O, m, u, Be.current, v);
462
463
  }
463
464
  }
464
- var Ee = S.ReactCurrentOwner, Fe = S.ReactDebugCurrentFrame;
465
- function re(e) {
465
+ var Se = S.ReactCurrentOwner, Ve = S.ReactDebugCurrentFrame;
466
+ function ne(e) {
466
467
  if (e) {
467
- var t = e._owner, a = he(e.type, e._source, t ? t.type : null);
468
- Fe.setExtraStackFrame(a);
468
+ var t = e._owner, n = Ce(e.type, e._source, t ? t.type : null);
469
+ Ve.setExtraStackFrame(n);
469
470
  } else
470
- Fe.setExtraStackFrame(null);
471
+ Ve.setExtraStackFrame(null);
471
472
  }
472
- var Re;
473
- Re = !1;
474
- function Se(e) {
475
- return typeof e == "object" && e !== null && e.$$typeof === i;
473
+ var je;
474
+ je = !1;
475
+ function $e(e) {
476
+ return typeof e == "object" && e !== null && e.$$typeof === s;
476
477
  }
477
- function ze() {
478
+ function We() {
478
479
  {
479
- if (Ee.current) {
480
- var e = N(Ee.current.type);
480
+ if (Se.current) {
481
+ var e = I(Se.current.type);
481
482
  if (e)
482
483
  return `
483
484
 
@@ -486,197 +487,405 @@ Check the render method of \`` + e + "`.";
486
487
  return "";
487
488
  }
488
489
  }
489
- function xt(e) {
490
+ function Et(e) {
490
491
  return "";
491
492
  }
492
- var Ve = {};
493
- function yt(e) {
493
+ var Ze = {};
494
+ function Rt(e) {
494
495
  {
495
- var t = ze();
496
+ var t = We();
496
497
  if (!t) {
497
- var a = typeof e == "string" ? e : e.displayName || e.name;
498
- a && (t = `
498
+ var n = typeof e == "string" ? e : e.displayName || e.name;
499
+ n && (t = `
499
500
 
500
- Check the top-level render call using <` + a + ">.");
501
+ Check the top-level render call using <` + n + ">.");
501
502
  }
502
503
  return t;
503
504
  }
504
505
  }
505
- function We(e, t) {
506
+ function Ue(e, t) {
506
507
  {
507
508
  if (!e._store || e._store.validated || e.key != null)
508
509
  return;
509
510
  e._store.validated = !0;
510
- var a = yt(t);
511
- if (Ve[a])
511
+ var n = Rt(t);
512
+ if (Ze[n])
512
513
  return;
513
- Ve[a] = !0;
514
+ Ze[n] = !0;
514
515
  var u = "";
515
- e && e._owner && e._owner !== Ee.current && (u = " It was passed a child from " + N(e._owner.type) + "."), re(e), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', a, u), re(null);
516
+ e && e._owner && e._owner !== Se.current && (u = " It was passed a child from " + I(e._owner.type) + "."), ne(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, u), ne(null);
516
517
  }
517
518
  }
518
- function Ze(e, t) {
519
+ function Ge(e, t) {
519
520
  {
520
521
  if (typeof e != "object")
521
522
  return;
522
- if (we(e))
523
- for (var a = 0; a < e.length; a++) {
524
- var u = e[a];
525
- Se(u) && We(u, t);
523
+ if (Re(e))
524
+ for (var n = 0; n < e.length; n++) {
525
+ var u = e[n];
526
+ $e(u) && Ue(u, t);
526
527
  }
527
- else if (Se(e))
528
+ else if ($e(e))
528
529
  e._store && (e._store.validated = !0);
529
530
  else if (e) {
530
- var h = B(e);
531
- if (typeof h == "function" && h !== e.entries)
532
- for (var x = h.call(e), g; !(g = x.next()).done; )
533
- Se(g.value) && We(g.value, t);
531
+ var m = L(e);
532
+ if (typeof m == "function" && m !== e.entries)
533
+ for (var x = m.call(e), v; !(v = x.next()).done; )
534
+ $e(v.value) && Ue(v.value, t);
534
535
  }
535
536
  }
536
537
  }
537
- function wt(e) {
538
+ function St(e) {
538
539
  {
539
540
  var t = e.type;
540
541
  if (t == null || typeof t == "string")
541
542
  return;
542
- var a;
543
+ var n;
543
544
  if (typeof t == "function")
544
- a = t.propTypes;
545
+ n = t.propTypes;
545
546
  else if (typeof t == "object" && (t.$$typeof === c || // Note: Memo only checks outer props here.
546
547
  // Inner props are checked in the reconciler.
547
- t.$$typeof === v))
548
- a = t.propTypes;
548
+ t.$$typeof === g))
549
+ n = t.propTypes;
549
550
  else
550
551
  return;
551
- if (a) {
552
- var u = N(t);
553
- lt(a, e.props, "prop", u, e);
554
- } else if (t.PropTypes !== void 0 && !Re) {
555
- Re = !0;
556
- var h = N(t);
557
- C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
552
+ if (n) {
553
+ var u = I(t);
554
+ _t(n, e.props, "prop", u, e);
555
+ } else if (t.PropTypes !== void 0 && !je) {
556
+ je = !0;
557
+ var m = I(t);
558
+ y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
558
559
  }
559
- typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
560
561
  }
561
562
  }
562
- function Et(e) {
563
+ function jt(e) {
563
564
  {
564
- for (var t = Object.keys(e.props), a = 0; a < t.length; a++) {
565
- var u = t[a];
565
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
566
+ var u = t[n];
566
567
  if (u !== "children" && u !== "key") {
567
- re(e), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), re(null);
568
+ ne(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", u), ne(null);
568
569
  break;
569
570
  }
570
571
  }
571
- e.ref !== null && (re(e), C("Invalid attribute `ref` supplied to `React.Fragment`."), re(null));
572
+ e.ref !== null && (ne(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), ne(null));
572
573
  }
573
574
  }
574
- var Ue = {};
575
- function Ge(e, t, a, u, h, x) {
575
+ var Ye = {};
576
+ function qe(e, t, n, u, m, x) {
576
577
  {
577
- var g = H(e);
578
- if (!g) {
579
- var p = "";
580
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (p += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
581
- var T = xt();
582
- T ? p += T : p += ze();
578
+ var v = J(e);
579
+ if (!v) {
580
+ var b = "";
581
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
582
+ var O = Et();
583
+ O ? b += O : b += We();
583
584
  var E;
584
- e === null ? E = "null" : we(e) ? E = "array" : e !== void 0 && e.$$typeof === i ? (E = "<" + (N(e.type) || "Unknown") + " />", p = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, p);
585
+ e === null ? E = "null" : Re(e) ? E = "array" : e !== void 0 && e.$$typeof === s ? (E = "<" + (I(e.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : E = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, b);
585
586
  }
586
- var j = Ct(e, t, a, h, x);
587
+ var j = wt(e, t, n, m, x);
587
588
  if (j == null)
588
589
  return j;
589
- if (g) {
590
+ if (v) {
590
591
  var M = t.children;
591
592
  if (M !== void 0)
592
593
  if (u)
593
- if (we(M)) {
594
- for (var ae = 0; ae < M.length; ae++)
595
- Ze(M[ae], e);
594
+ if (Re(M)) {
595
+ for (var oe = 0; oe < M.length; oe++)
596
+ Ge(M[oe], e);
596
597
  Object.freeze && Object.freeze(M);
597
598
  } else
598
- C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
+ y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
599
600
  else
600
- Ze(M, e);
601
+ Ge(M, e);
601
602
  }
602
- if (ie.call(t, "key")) {
603
- var ee = N(e), P = Object.keys(t).filter(function(Ot) {
604
- return Ot !== "key";
605
- }), je = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
606
- if (!Ue[ee + je]) {
607
- var kt = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
608
- C(`A props object containing a "key" prop is being spread into JSX:
603
+ if (le.call(t, "key")) {
604
+ var te = I(e), P = Object.keys(t).filter(function(Lt) {
605
+ return Lt !== "key";
606
+ }), ke = P.length > 0 ? "{key: someKey, " + P.join(": ..., ") + ": ...}" : "{key: someKey}";
607
+ if (!Ye[te + ke]) {
608
+ var Pt = P.length > 0 ? "{" + P.join(": ..., ") + ": ...}" : "{}";
609
+ y(`A props object containing a "key" prop is being spread into JSX:
609
610
  let props = %s;
610
611
  <%s {...props} />
611
612
  React keys must be passed directly to JSX without using spread:
612
613
  let props = %s;
613
- <%s key={someKey} {...props} />`, je, ee, kt, ee), Ue[ee + je] = !0;
614
+ <%s key={someKey} {...props} />`, ke, te, Pt, te), Ye[te + ke] = !0;
614
615
  }
615
616
  }
616
- return e === o ? Et(j) : wt(j), j;
617
+ return e === o ? jt(j) : St(j), j;
617
618
  }
618
619
  }
619
- function Rt(e, t, a) {
620
- return Ge(e, t, a, !0);
620
+ function $t(e, t, n) {
621
+ return qe(e, t, n, !0);
621
622
  }
622
- function St(e, t, a) {
623
- return Ge(e, t, a, !1);
623
+ function kt(e, t, n) {
624
+ return qe(e, t, n, !1);
624
625
  }
625
- var jt = St, $t = Rt;
626
- ce.Fragment = o, ce.jsx = jt, ce.jsxs = $t;
627
- }()), ce;
626
+ var Tt = kt, Ot = $t;
627
+ ue.Fragment = o, ue.jsx = Tt, ue.jsxs = Ot;
628
+ }()), ue;
628
629
  }
629
- var Je;
630
- function It() {
631
- return Je || (Je = 1, process.env.NODE_ENV === "production" ? Ce.exports = At() : Ce.exports = Mt()), Ce.exports;
630
+ var Qe;
631
+ function Ft() {
632
+ return Qe || (Qe = 1, process.env.NODE_ENV === "production" ? xe.exports = Dt() : xe.exports = Bt()), xe.exports;
632
633
  }
633
- var l = It(), $e = { exports: {} };
634
+ var l = Ft();
635
+ const zt = (r) => r.as === "a", Vt = (r) => r.as === void 0 || r.as === "button", Wt = "_button_unbux_213", Zt = "_disabled_unbux_237", Ut = "_loading_unbux_237", Gt = "_neutral_unbux_259", Yt = "_accent_unbux_263", qt = "_positive_unbux_267", Ht = "_negative_unbux_271", Jt = "_contrast_unbux_275", Kt = "_special_unbux_279", Qt = "_primary_unbux_284", Xt = "_secondary_unbux_285", e2 = "_tertiary_unbux_286", t2 = "_label_unbux_321", r2 = "_rightGroup_unbux_333", a2 = "_iconOnly_unbux_349", n2 = "_large_unbux_357", o2 = "_medium_unbux_361", s2 = "_small_unbux_365", i2 = "_spaceBetween_unbux_370", l2 = "_stretched_unbux_384", c2 = "_icon_unbux_349", u2 = "_badge_unbux_705", d2 = "_badgeMedium_unbux_721", _2 = "_circular_unbux_738", f2 = "_badgeSmall_unbux_743", p2 = "_badgeExtraSmall_unbux_765", b2 = "_withSubcaption_unbux_784", g2 = "_subcaption_unbux_797", v2 = "_loader_unbux_804", h2 = "_spin_unbux_1", m2 = "_l_unbux_237", C2 = "_m_unbux_361", y2 = "_s_unbux_279", x2 = "_xs_unbux_869", R = {
636
+ button: Wt,
637
+ disabled: Zt,
638
+ loading: Ut,
639
+ neutral: Gt,
640
+ accent: Yt,
641
+ positive: qt,
642
+ negative: Ht,
643
+ contrast: Jt,
644
+ special: Kt,
645
+ primary: Qt,
646
+ secondary: Xt,
647
+ tertiary: e2,
648
+ label: t2,
649
+ rightGroup: r2,
650
+ iconOnly: a2,
651
+ large: n2,
652
+ medium: o2,
653
+ small: s2,
654
+ spaceBetween: i2,
655
+ stretched: l2,
656
+ icon: c2,
657
+ badge: u2,
658
+ badgeMedium: d2,
659
+ circular: _2,
660
+ badgeSmall: f2,
661
+ badgeExtraSmall: p2,
662
+ withSubcaption: b2,
663
+ subcaption: g2,
664
+ loader: v2,
665
+ spin: h2,
666
+ l: m2,
667
+ m: C2,
668
+ s: y2,
669
+ xs: x2
670
+ }, Xe = ({
671
+ isLoading: r,
672
+ showBadge: s,
673
+ badgeValue: a,
674
+ badgeSize: o,
675
+ icon: d,
676
+ children: i,
677
+ postfix: _,
678
+ showSubcaption: f,
679
+ subcaption: c,
680
+ size: h
681
+ }) => {
682
+ if (r)
683
+ return /* @__PURE__ */ l.jsx("span", { className: R.loader, "data-testid": "button-loader", "aria-hidden": "true" });
684
+ const p = o === "extra-small", g = parseInt(String(a), 10), C = !isNaN(g) && g >= 0 && g <= 9;
685
+ return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
686
+ s && (a || p) && /* @__PURE__ */ l.jsx(
687
+ "span",
688
+ {
689
+ "data-testid": "button-badge",
690
+ className: ae(
691
+ R.badge,
692
+ R[`badge${p ? "ExtraSmall" : o === "medium" ? "Medium" : "Small"}`],
693
+ { [R.circular]: C && !p }
694
+ ),
695
+ children: !p && a
696
+ }
697
+ ),
698
+ f && h !== "s" && h !== "xs" ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
699
+ /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: R.label, children: i }),
700
+ /* @__PURE__ */ l.jsx("span", { "data-testid": "button-subcaption", className: R.subcaption, children: c })
701
+ ] }) : i ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
702
+ /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: R.label, children: i }),
703
+ /* @__PURE__ */ l.jsxs("div", { "data-testid": "button-right-group", className: R.rightGroup, children: [
704
+ d && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: R.icon, children: d }),
705
+ _ && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-postfix", className: R.postfix, children: _ })
706
+ ] })
707
+ ] }) : /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: R.icon, children: d })
708
+ ] });
709
+ }, Zr = H((r, s) => {
710
+ const {
711
+ mode: a = "primary",
712
+ size: o = "m",
713
+ buttonStyle: d = "neutral",
714
+ loading: i = !1,
715
+ disabled: _ = !1,
716
+ showBadge: f = !1,
717
+ badgeSize: c = "small",
718
+ badgeValue: h,
719
+ showSubcaption: p = !1,
720
+ subcaption: g,
721
+ stretched: C = !1,
722
+ spaceBetween: w = !1,
723
+ icon: $,
724
+ postfix: k,
725
+ className: L,
726
+ children: S
727
+ } = r, y = _, T = i, N = !y && !T, U = !!$ && !S, B = ae(
728
+ R.button,
729
+ R[o],
730
+ R[a],
731
+ R[d],
732
+ {
733
+ [R.disabled]: y,
734
+ [R.loading]: T,
735
+ [R.stretched]: C,
736
+ [R.spaceBetween]: w && C,
737
+ [R.withSubcaption]: p && g && o !== "s" && o !== "xs",
738
+ [R.iconOnly]: U
739
+ },
740
+ L
741
+ ), F = {
742
+ isLoading: T,
743
+ showBadge: f,
744
+ badgeValue: h,
745
+ badgeSize: c,
746
+ icon: $,
747
+ children: S,
748
+ postfix: k,
749
+ showSubcaption: p,
750
+ subcaption: g,
751
+ size: o
752
+ };
753
+ if (zt(r)) {
754
+ const {
755
+ href: z,
756
+ onClick: A,
757
+ mode: J,
758
+ size: K,
759
+ buttonStyle: G,
760
+ loading: I,
761
+ disabled: V,
762
+ showBadge: Q,
763
+ badgeSize: _e,
764
+ badgeValue: fe,
765
+ showSubcaption: pe,
766
+ subcaption: be,
767
+ stretched: ge,
768
+ spaceBetween: ve,
769
+ icon: he,
770
+ postfix: me,
771
+ className: we,
772
+ tabIndex: Ee,
773
+ children: se,
774
+ "data-testid": X,
775
+ style: Y,
776
+ ...ee
777
+ } = r, q = (ie) => {
778
+ N && A && A(ie);
779
+ };
780
+ return /* @__PURE__ */ l.jsx(
781
+ "a",
782
+ {
783
+ ref: s,
784
+ className: B,
785
+ href: N ? z : void 0,
786
+ tabIndex: r.tabIndex,
787
+ onClick: q,
788
+ "data-testid": X,
789
+ "aria-disabled": y || T,
790
+ style: Y,
791
+ ...ee,
792
+ children: /* @__PURE__ */ l.jsx(Xe, { ...F })
793
+ }
794
+ );
795
+ }
796
+ if (Vt(r)) {
797
+ const {
798
+ type: z = "button",
799
+ onClick: A,
800
+ mode: J,
801
+ size: K,
802
+ buttonStyle: G,
803
+ loading: I,
804
+ disabled: V,
805
+ showBadge: Q,
806
+ badgeSize: _e,
807
+ badgeValue: fe,
808
+ showSubcaption: pe,
809
+ subcaption: be,
810
+ stretched: ge,
811
+ spaceBetween: ve,
812
+ icon: he,
813
+ postfix: me,
814
+ className: we,
815
+ tabIndex: Ee,
816
+ children: se,
817
+ "data-testid": X,
818
+ style: Y,
819
+ ...ee
820
+ } = r, q = (ie) => {
821
+ N && A && A(ie);
822
+ };
823
+ return /* @__PURE__ */ l.jsx(
824
+ "button",
825
+ {
826
+ ref: s,
827
+ type: z,
828
+ className: B,
829
+ disabled: y,
830
+ tabIndex: r.tabIndex,
831
+ onClick: q,
832
+ "data-testid": X,
833
+ "aria-disabled": y || T,
834
+ style: Y,
835
+ ...ee,
836
+ children: /* @__PURE__ */ l.jsx(Xe, { ...F })
837
+ }
838
+ );
839
+ }
840
+ return null;
841
+ });
842
+ var Te = { exports: {} };
634
843
  /*!
635
844
  Copyright (c) 2018 Jed Watson.
636
845
  Licensed under the MIT License (MIT), see
637
846
  http://jedwatson.github.io/classnames
638
847
  */
639
- var Ke;
640
- function Dt() {
641
- return Ke || (Ke = 1, function(r) {
848
+ var et;
849
+ function w2() {
850
+ return et || (et = 1, function(r) {
642
851
  (function() {
643
- var i = {}.hasOwnProperty;
644
- function n() {
645
- for (var s = "", f = 0; f < arguments.length; f++) {
646
- var _ = arguments[f];
647
- _ && (s = d(s, o(_)));
852
+ var s = {}.hasOwnProperty;
853
+ function a() {
854
+ for (var i = "", _ = 0; _ < arguments.length; _++) {
855
+ var f = arguments[_];
856
+ f && (i = d(i, o(f)));
648
857
  }
649
- return s;
858
+ return i;
650
859
  }
651
- function o(s) {
652
- if (typeof s == "string" || typeof s == "number")
653
- return s;
654
- if (typeof s != "object")
860
+ function o(i) {
861
+ if (typeof i == "string" || typeof i == "number")
862
+ return i;
863
+ if (typeof i != "object")
655
864
  return "";
656
- if (Array.isArray(s))
657
- return n.apply(null, s);
658
- if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]"))
659
- return s.toString();
660
- var f = "";
661
- for (var _ in s)
662
- i.call(s, _) && s[_] && (f = d(f, _));
663
- return f;
865
+ if (Array.isArray(i))
866
+ return a.apply(null, i);
867
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
868
+ return i.toString();
869
+ var _ = "";
870
+ for (var f in i)
871
+ s.call(i, f) && i[f] && (_ = d(_, f));
872
+ return _;
664
873
  }
665
- function d(s, f) {
666
- return f ? s ? s + " " + f : s + f : s;
874
+ function d(i, _) {
875
+ return _ ? i ? i + " " + _ : i + _ : i;
667
876
  }
668
- r.exports ? (n.default = n, r.exports = n) : window.classNames = n;
877
+ r.exports ? (a.default = a, r.exports = a) : window.classNames = a;
669
878
  })();
670
- }($e)), $e.exports;
879
+ }(Te)), Te.exports;
671
880
  }
672
- var Bt = Dt();
673
- const D = /* @__PURE__ */ Nt(Bt), Ft = "_avatar_1ob17_4", zt = "_clickable_1ob17_23", Vt = "_icon_1ob17_40", Wt = "_disabled_1ob17_45", Zt = "_image_1ob17_51", Ut = "_name_1ob17_51", Gt = "_circle_1ob17_160", Yt = "_square_1ob17_164", I = {
674
- avatar: Ft,
675
- clickable: zt,
676
- icon: Vt,
677
- disabled: Wt,
678
- image: Zt,
679
- name: Ut,
881
+ var E2 = w2();
882
+ const Z = /* @__PURE__ */ Mt(E2), R2 = "_avatar_1ob17_4", S2 = "_clickable_1ob17_23", j2 = "_icon_1ob17_40", $2 = "_disabled_1ob17_45", k2 = "_image_1ob17_51", T2 = "_name_1ob17_51", O2 = "_circle_1ob17_160", P2 = "_square_1ob17_164", D = {
883
+ avatar: R2,
884
+ clickable: S2,
885
+ icon: j2,
886
+ disabled: $2,
887
+ image: k2,
888
+ name: T2,
680
889
  "size-208": "_size-208_1ob17_104",
681
890
  "size-96": "_size-96_1ob17_111",
682
891
  "size-84": "_size-84_1ob17_118",
@@ -685,8 +894,8 @@ const D = /* @__PURE__ */ Nt(Bt), Ft = "_avatar_1ob17_4", zt = "_clickable_1ob17
685
894
  "size-40": "_size-40_1ob17_139",
686
895
  "size-32": "_size-32_1ob17_146",
687
896
  "size-24": "_size-24_1ob17_153",
688
- circle: Gt,
689
- square: Yt,
897
+ circle: O2,
898
+ square: P2,
690
899
  "variant-filled": "_variant-filled_1ob17_185",
691
900
  "color-brand": "_color-brand_1ob17_190",
692
901
  "color-red": "_color-red_1ob17_194",
@@ -700,20 +909,20 @@ const D = /* @__PURE__ */ Nt(Bt), Ft = "_avatar_1ob17_4", zt = "_clickable_1ob17
700
909
  "color-contrast": "_color-contrast_1ob17_226",
701
910
  "variant-light": "_variant-light_1ob17_232",
702
911
  "variant-outline": "_variant-outline_1ob17_304"
703
- }, Qe = 99;
704
- function qt(r) {
705
- return r < Qe ? `+${r}` : `${Qe}+`;
912
+ }, tt = 99;
913
+ function L2(r) {
914
+ return r < tt ? `+${r}` : `${tt}+`;
706
915
  }
707
- function nt(r) {
708
- const i = typeof r == "string" ? r : JSON.stringify(r);
709
- let n = 5381;
710
- for (let o = 0; o < i.length; o++) {
711
- const d = i.charCodeAt(o);
712
- n = (n << 5) + n + d;
916
+ function it(r) {
917
+ const s = typeof r == "string" ? r : JSON.stringify(r);
918
+ let a = 5381;
919
+ for (let o = 0; o < s.length; o++) {
920
+ const d = s.charCodeAt(o);
921
+ a = (a << 5) + a + d;
713
922
  }
714
- return n >>> 0;
923
+ return a >>> 0;
715
924
  }
716
- const Ht = [
925
+ const N2 = [
717
926
  "red",
718
927
  "orange",
719
928
  "yellow",
@@ -722,62 +931,71 @@ const Ht = [
722
931
  "lightblue",
723
932
  "purple"
724
933
  ];
725
- function Jt(r, i = Ht) {
726
- const n = nt(r), o = Math.abs(n) % i.length;
727
- return i[o];
934
+ function I2(r, s = N2) {
935
+ const a = it(r), o = Math.abs(a) % s.length;
936
+ return s[o];
728
937
  }
729
- const Xe = 2;
730
- function Kt(r) {
731
- const i = r.split(" ");
732
- return i.length === 1 ? r.slice(0, Xe).toUpperCase() : i.map((n) => n[0]).slice(0, Xe).join("").toUpperCase();
938
+ const rt = 2;
939
+ function A2(r) {
940
+ const s = r.split(" ");
941
+ return s.length === 1 ? r.slice(0, rt).toUpperCase() : s.map((a) => a[0]).slice(0, rt).join("").toUpperCase();
733
942
  }
734
- function Qt(r, i) {
735
- return i === "circle" ? r / 2 : r === 24 || r === 208 ? 8 : r === 32 || r === 40 || r === 48 ? 12 : r === 56 ? 16 : r === 84 || r === 96 ? 24 : 12;
943
+ function M2(r, s) {
944
+ return s === "circle" ? r / 2 : r === 24 || r === 208 ? 8 : r === 32 || r === 40 || r === 48 ? 12 : r === 56 ? 16 : r === 84 || r === 96 ? 24 : 12;
736
945
  }
737
- const Xt = "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", e2 = "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", t2 = "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", r2 = "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", a2 = {
738
- male: Xt,
739
- female: e2,
740
- org: r2,
741
- neutral: t2
742
- }, Oe = te((r, i) => {
946
+ const D2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", B2 = "data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", F2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e", z2 = "data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e", V2 = {
947
+ male: D2,
948
+ female: B2,
949
+ org: z2,
950
+ neutral: F2
951
+ }, Pe = H((r, s) => {
743
952
  const {
744
- style: n,
953
+ style: a,
745
954
  size: o = 40,
746
955
  isLoading: d = !1,
747
- isDisabled: s = !1,
748
- shape: f = "circle",
749
- variant: _ = "light",
956
+ isDisabled: i = !1,
957
+ shape: _ = "circle",
958
+ variant: f = "light",
750
959
  placeholderType: c = "neutral",
751
- name: m = "",
752
- imgSrc: b,
753
- imgAlt: v = "",
754
- icon: y,
960
+ name: h = "",
961
+ imgSrc: p,
962
+ imgAlt: g = "",
963
+ icon: C,
755
964
  imgProps: w,
756
965
  colorScheme: $,
757
966
  "data-testid": k,
758
- ...B
759
- } = r, { onClick: S, onPointerDown: C } = B, L = !s && !d && (!!S || !!C), [U, F] = Te(!b), z = b && !U ? "image" : y ? "icon" : m ? "name" : "placeholder", V = z === "name" ? $ || Jt(m) : $ || "gray", A = D(
760
- I.avatar,
761
- I[f],
762
- I[`size-${o}`],
763
- I[`variant-${_}`],
764
- I[`color-${V}`],
967
+ ...L
968
+ } = r, { onClick: S, onPointerDown: y } = L, N = !i && !d && (!!S || !!y), [U, B] = Le(!p), F = p && !U ? "image" : C ? "icon" : h ? "name" : "placeholder", z = F === "name" ? $ || I2(h) : $ || "gray", A = Z(
969
+ D.avatar,
970
+ D[_],
971
+ D[`size-${o}`],
972
+ D[`variant-${f}`],
973
+ D[`color-${z}`],
765
974
  {
766
- [I.disabled]: s,
767
- [I.loading]: d,
768
- [I.clickable]: L
975
+ [D.disabled]: i,
976
+ [D.loading]: d,
977
+ [D.clickable]: N
769
978
  }
770
- ), H = {
771
- icon: () => /* @__PURE__ */ l.jsx("span", { "data-testid": "avatar-icon", title: v, role: "img", className: D(I.icon), children: y == null ? void 0 : y({}) }),
772
- name: () => /* @__PURE__ */ l.jsx("span", { role: "textbox", "data-testid": "avatar-name", className: D(I.name), title: v, children: Kt(m) }),
979
+ ), J = {
980
+ icon: () => /* @__PURE__ */ l.jsx("span", { "data-testid": "avatar-icon", title: g, role: "img", className: Z(D.icon), children: C == null ? void 0 : C({}) }),
981
+ name: () => /* @__PURE__ */ l.jsx(
982
+ "span",
983
+ {
984
+ role: "textbox",
985
+ "data-testid": "avatar-name",
986
+ className: Z(D.name),
987
+ title: g,
988
+ children: A2(h)
989
+ }
990
+ ),
773
991
  placeholder: () => /* @__PURE__ */ l.jsx(
774
992
  "img",
775
993
  {
776
994
  ...w,
777
995
  "data-testid": "avatar-placeholder",
778
- className: I.image,
779
- src: a2[c],
780
- alt: v
996
+ className: D.image,
997
+ src: V2[c],
998
+ alt: g
781
999
  }
782
1000
  ),
783
1001
  image: () => /* @__PURE__ */ l.jsx(
@@ -785,110 +1003,110 @@ const Xt = "data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMi
785
1003
  {
786
1004
  "data-testid": "avatar-image",
787
1005
  ...w,
788
- className: I.image,
789
- src: b,
790
- alt: v,
791
- onLoad: () => F(!1),
1006
+ className: D.image,
1007
+ src: p,
1008
+ alt: g,
1009
+ onLoad: () => B(!1),
792
1010
  onError: (G) => {
793
- var N;
794
- F(!0), (N = w == null ? void 0 : w.onError) == null || N.call(w, G);
1011
+ var I;
1012
+ B(!0), (I = w == null ? void 0 : w.onError) == null || I.call(w, G);
795
1013
  }
796
1014
  }
797
1015
  )
798
- }, J = (G) => {
799
- L && (S == null || S(G));
1016
+ }, K = (G) => {
1017
+ N && (S == null || S(G));
800
1018
  };
801
1019
  return /* @__PURE__ */ l.jsx(
802
1020
  "div",
803
1021
  {
804
- ref: i,
805
- onClick: J,
1022
+ ref: s,
1023
+ onClick: K,
806
1024
  className: A,
807
- style: n,
1025
+ style: a,
808
1026
  "data-testid": k,
809
- "aria-disabled": s || d,
810
- children: H[z](null)
1027
+ "aria-disabled": i || d,
1028
+ children: J[F](null)
811
1029
  }
812
1030
  );
813
- }), n2 = "_avatarGroup_157g4_1", o2 = {
814
- avatarGroup: n2
1031
+ }), W2 = "_avatarGroup_157g4_1", Z2 = {
1032
+ avatarGroup: W2
815
1033
  };
816
- let i2 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((i, n) => (n &= 63, n < 36 ? i += n.toString(36) : n < 62 ? i += (n - 26).toString(36).toUpperCase() : n > 62 ? i += "-" : i += "_", i), "");
817
- function s2(r, i, n, o, d, s, f) {
818
- const _ = Math.min(d, s) / 2, c = Math.min(f, _), m = ["M0,0", `H${r}`, `V${i}`, "H0", "V0", "Z"].join(" "), b = [
819
- `M${n + c},${o}`,
820
- `L${n + d - c},${o}`,
1034
+ let U2 = (r = 21) => crypto.getRandomValues(new Uint8Array(r)).reduce((s, a) => (a &= 63, a < 36 ? s += a.toString(36) : a < 62 ? s += (a - 26).toString(36).toUpperCase() : a > 62 ? s += "-" : s += "_", s), "");
1035
+ function G2(r, s, a, o, d, i, _) {
1036
+ const f = Math.min(d, i) / 2, c = Math.min(_, f), h = ["M0,0", `H${r}`, `V${s}`, "H0", "V0", "Z"].join(" "), p = [
1037
+ `M${a + c},${o}`,
1038
+ `L${a + d - c},${o}`,
821
1039
  // Верхний правый угол
822
- `A${c},${c} 0 0 1 ${n + d},${o + c}`,
823
- `L${n + d},${o + s - c}`,
1040
+ `A${c},${c} 0 0 1 ${a + d},${o + c}`,
1041
+ `L${a + d},${o + i - c}`,
824
1042
  // Нижний правый угол
825
- `A${c},${c} 0 0 1 ${n + d - c},${o + s}`,
826
- `L${n + c},${o + s}`,
1043
+ `A${c},${c} 0 0 1 ${a + d - c},${o + i}`,
1044
+ `L${a + c},${o + i}`,
827
1045
  // Нижний левый угол
828
- `A${c},${c} 0 0 1 ${n},${o + s - c}`,
829
- `L${n},${o + c}`,
1046
+ `A${c},${c} 0 0 1 ${a},${o + i - c}`,
1047
+ `L${a},${o + c}`,
830
1048
  // Верхний левый угол
831
- `A${c},${c} 0 0 1 ${n + c},${o}`,
1049
+ `A${c},${c} 0 0 1 ${a + c},${o}`,
832
1050
  "Z"
833
1051
  ].join(" ");
834
- return `${m} ${b}`;
1052
+ return `${h} ${p}`;
835
1053
  }
836
- const c2 = 2, l2 = (r) => {
1054
+ const Y2 = 2, q2 = (r) => {
837
1055
  const {
838
- avatars: i = [],
839
- overflowCount: n = 0,
1056
+ avatars: s = [],
1057
+ overflowCount: a = 0,
840
1058
  size: o = 40,
841
1059
  overlap: d = 0.3,
842
- shape: s = "circle",
843
- overflowOnClick: f
844
- } = r, _ = o * d, c = -_ + c2, m = Qt(o, s), v = rt(i2()).current.toString(), y = D(o2.avatarGroup), w = s2(
1060
+ shape: i = "circle",
1061
+ overflowOnClick: _
1062
+ } = r, f = o * d, c = -f + Y2, h = M2(o, i), g = ot(U2()).current.toString(), C = Z(Z2.avatarGroup), w = G2(
845
1063
  o,
846
1064
  o,
847
- o - _,
1065
+ o - f,
848
1066
  // X-координата начала выреза
849
1067
  0,
850
1068
  // Y-координата начала выреза
851
1069
  o,
852
1070
  o,
853
- m
1071
+ h
854
1072
  );
855
- return i.length === 0 ? null : /* @__PURE__ */ l.jsxs("div", { className: y, children: [
856
- i.map(($, k, B) => {
857
- const S = k + 1 >= B.length;
1073
+ return s.length === 0 ? null : /* @__PURE__ */ l.jsxs("div", { className: C, children: [
1074
+ s.map(($, k, L) => {
1075
+ const S = k + 1 >= L.length;
858
1076
  return /* @__PURE__ */ l.jsx(
859
1077
  "div",
860
1078
  {
861
1079
  style: {
862
1080
  // Для последнего видимого аватара без overflowCount не применяем обрезку
863
- clipPath: S && !n ? void 0 : `url(#${v})`,
1081
+ clipPath: S && !a ? void 0 : `url(#${g})`,
864
1082
  marginRight: c
865
1083
  },
866
- children: /* @__PURE__ */ l.jsx(Oe, { size: o, shape: s, ...$ })
1084
+ children: /* @__PURE__ */ l.jsx(Pe, { size: o, shape: i, ...$ })
867
1085
  },
868
- nt($) + k
1086
+ it($) + k
869
1087
  );
870
1088
  }),
871
- n > 0 && /* @__PURE__ */ l.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ l.jsx(
872
- Oe,
1089
+ a > 0 && /* @__PURE__ */ l.jsx("div", { style: { marginRight: c }, children: /* @__PURE__ */ l.jsx(
1090
+ Pe,
873
1091
  {
874
1092
  size: o,
875
- shape: s,
876
- onClick: f,
877
- icon: () => qt(n),
1093
+ shape: i,
1094
+ onClick: _,
1095
+ icon: () => L2(a),
878
1096
  colorScheme: "gray"
879
1097
  }
880
1098
  ) }),
881
- /* @__PURE__ */ l.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ l.jsx("clipPath", { id: `${v}`, children: /* @__PURE__ */ l.jsx("path", { clipPathUnits: "objectBoundingBox", d: w, clipRule: "evenodd" }) }) })
1099
+ /* @__PURE__ */ l.jsx("svg", { width: "0", height: "0", children: /* @__PURE__ */ l.jsx("clipPath", { id: `${g}`, children: /* @__PURE__ */ l.jsx("path", { clipPathUnits: "objectBoundingBox", d: w, clipRule: "evenodd" }) }) })
882
1100
  ] });
883
- }, Sr = Object.assign(Oe, {
884
- Group: l2
885
- }), u2 = "_wrapper_1ncab_5", d2 = "_badge__container_1ncab_6", f2 = "_badge__content_1ncab_7", _2 = "_interactive_1ncab_20", p2 = "_disabled_1ncab_21", b2 = "_icon_1ncab_22", Z = {
886
- wrapper: u2,
887
- badge__container: d2,
888
- badge__content: f2,
889
- interactive: _2,
890
- disabled: p2,
891
- icon: b2,
1101
+ }, Ur = Object.assign(Pe, {
1102
+ Group: q2
1103
+ }), H2 = "_wrapper_1ncab_5", J2 = "_badge__container_1ncab_6", K2 = "_badge__content_1ncab_7", Q2 = "_interactive_1ncab_20", X2 = "_disabled_1ncab_21", er = "_icon_1ncab_22", W = {
1104
+ wrapper: H2,
1105
+ badge__container: J2,
1106
+ badge__content: K2,
1107
+ interactive: Q2,
1108
+ disabled: X2,
1109
+ icon: er,
892
1110
  "variant-filled": "_variant-filled_1ncab_101",
893
1111
  "color-brand": "_color-brand_1ncab_106",
894
1112
  "color-red": "_color-red_1ncab_110",
@@ -920,333 +1138,127 @@ const c2 = 2, l2 = (r) => {
920
1138
  "position-bottom-center-inside": "_position-bottom-center-inside_1ncab_446",
921
1139
  "position-middle-left-inside": "_position-middle-left-inside_1ncab_452",
922
1140
  "position-middle-right-inside": "_position-middle-right-inside_1ncab_458"
923
- }, g2 = (r) => r === "rgba(0, 0, 0, 0)" || r === "transparent" || r.startsWith("rgba") && r.endsWith(", 0)"), v2 = (r) => {
1141
+ }, tr = (r) => r === "rgba(0, 0, 0, 0)" || r === "transparent" || r.startsWith("rgba") && r.endsWith(", 0)"), rr = (r) => {
924
1142
  if (!r) return null;
925
- let i = r;
926
- for (; i; ) {
927
- const o = window.getComputedStyle(i).backgroundColor;
928
- if (!g2(o)) return o;
929
- i = i.parentElement;
1143
+ let s = r;
1144
+ for (; s; ) {
1145
+ const o = window.getComputedStyle(s).backgroundColor;
1146
+ if (!tr(o)) return o;
1147
+ s = s.parentElement;
930
1148
  }
931
1149
  return null;
932
- }, h2 = () => {
933
- const r = rt(null), [i, n] = Te(null);
934
- return at(() => {
1150
+ }, ar = () => {
1151
+ const r = ot(null), [s, a] = Le(null);
1152
+ return st(() => {
935
1153
  if (r.current) {
936
- const o = v2(r.current);
937
- n(o);
1154
+ const o = rr(r.current);
1155
+ a(o);
938
1156
  }
939
- }, []), { ref: r, bgColor: i };
940
- }, jr = te((r, i) => {
1157
+ }, []), { ref: r, bgColor: s };
1158
+ }, Gr = H((r, s) => {
941
1159
  const {
942
- icon: n,
1160
+ icon: a,
943
1161
  children: o,
944
1162
  variant: d = "filled",
945
- label: s,
946
- colorScheme: f = "red",
947
- size: _ = 20,
1163
+ label: i,
1164
+ colorScheme: _ = "red",
1165
+ size: f = 20,
948
1166
  position: c = "top-right",
949
- positionOffset: m = { x: 0, y: 0 },
950
- cutoutBackground: b,
951
- isDisabled: v,
952
- className: y,
1167
+ positionOffset: h = { x: 0, y: 0 },
1168
+ cutoutBackground: p,
1169
+ isDisabled: g,
1170
+ className: C,
953
1171
  "data-testid": w = "badge",
954
1172
  ...$
955
- } = r, { onClick: k, onPointerDown: B } = $, { ref: S, bgColor: C } = h2(), O = b || C, U = !v && (!!k || !!B), F = D(Z.badge__container, Z[`position-${c}`]), z = D(
956
- y,
957
- Z.badge__content,
958
- Z[`color-${f}`],
959
- Z[`variant-${d}`],
1173
+ } = r, { onClick: k, onPointerDown: L } = $, { ref: S, bgColor: y } = ar(), T = p || y, U = !g && (!!k || !!L), B = Z(W.badge__container, W[`position-${c}`]), F = Z(
1174
+ C,
1175
+ W.badge__content,
1176
+ W[`color-${_}`],
1177
+ W[`variant-${d}`],
960
1178
  {
961
- [Z.icon]: !!n,
962
- [Z.interactive]: U,
963
- [Z.disabled]: v
1179
+ [W.icon]: !!a,
1180
+ [W.interactive]: U,
1181
+ [W.disabled]: g
964
1182
  }
965
- ), V = {
966
- "--badge-height": `${_}px`,
967
- "--badge-offset-x": `${m.x}px`,
968
- "--badge-offset-y": `${m.y}px`,
969
- ...O && { "--badge-cutout-bg": O },
1183
+ ), z = {
1184
+ "--badge-height": `${f}px`,
1185
+ "--badge-offset-x": `${h.x}px`,
1186
+ "--badge-offset-y": `${h.y}px`,
1187
+ ...T && { "--badge-cutout-bg": T },
970
1188
  ...d === "transparent" && { "--badge-cutout-bg": "transparent" }
971
- }, A = (n == null ? void 0 : n({})) || s, H = (J) => {
972
- U && (k == null || k(J));
1189
+ }, A = (a == null ? void 0 : a({})) || i, J = (K) => {
1190
+ U && (k == null || k(K));
973
1191
  };
974
- return /* @__PURE__ */ l.jsxs("div", { className: Z.wrapper, ref: S, "data-testid": w + "-wrapper", children: [
1192
+ return /* @__PURE__ */ l.jsxs("div", { className: W.wrapper, ref: S, "data-testid": w + "-wrapper", children: [
975
1193
  o,
976
1194
  /* @__PURE__ */ l.jsx(
977
1195
  "span",
978
1196
  {
979
- className: F,
980
- style: V,
1197
+ className: B,
1198
+ style: z,
981
1199
  "data-testid": w + "-container",
982
1200
  children: /* @__PURE__ */ l.jsx(
983
1201
  "span",
984
1202
  {
985
1203
  ...$,
986
- onClick: H,
987
- className: z,
1204
+ onClick: J,
1205
+ className: F,
988
1206
  "data-testid": w + "-content",
989
- ref: i,
990
- "aria-disabled": v,
1207
+ ref: s,
1208
+ "aria-disabled": g,
991
1209
  children: A
992
1210
  }
993
1211
  )
994
1212
  }
995
1213
  )
996
1214
  ] });
997
- }), m2 = (r) => r.as === "a", C2 = (r) => r.as === void 0 || r.as === "button", x2 = "_button_unbux_213", y2 = "_disabled_unbux_237", w2 = "_loading_unbux_237", E2 = "_neutral_unbux_259", R2 = "_accent_unbux_263", S2 = "_positive_unbux_267", j2 = "_negative_unbux_271", $2 = "_contrast_unbux_275", k2 = "_special_unbux_279", O2 = "_primary_unbux_284", T2 = "_secondary_unbux_285", P2 = "_tertiary_unbux_286", L2 = "_label_unbux_321", N2 = "_rightGroup_unbux_333", A2 = "_iconOnly_unbux_349", M2 = "_large_unbux_357", I2 = "_medium_unbux_361", D2 = "_small_unbux_365", B2 = "_spaceBetween_unbux_370", F2 = "_stretched_unbux_384", z2 = "_icon_unbux_349", V2 = "_badge_unbux_705", W2 = "_badgeMedium_unbux_721", Z2 = "_circular_unbux_738", U2 = "_badgeSmall_unbux_743", G2 = "_badgeExtraSmall_unbux_765", Y2 = "_withSubcaption_unbux_784", q2 = "_subcaption_unbux_797", H2 = "_loader_unbux_804", J2 = "_spin_unbux_1", K2 = "_l_unbux_237", Q2 = "_m_unbux_361", X2 = "_s_unbux_279", er = "_xs_unbux_869", R = {
998
- button: x2,
999
- disabled: y2,
1000
- loading: w2,
1001
- neutral: E2,
1002
- accent: R2,
1003
- positive: S2,
1004
- negative: j2,
1005
- contrast: $2,
1006
- special: k2,
1007
- primary: O2,
1008
- secondary: T2,
1009
- tertiary: P2,
1010
- label: L2,
1011
- rightGroup: N2,
1012
- iconOnly: A2,
1013
- large: M2,
1014
- medium: I2,
1015
- small: D2,
1016
- spaceBetween: B2,
1017
- stretched: F2,
1018
- icon: z2,
1019
- badge: V2,
1020
- badgeMedium: W2,
1021
- circular: Z2,
1022
- badgeSmall: U2,
1023
- badgeExtraSmall: G2,
1024
- withSubcaption: Y2,
1025
- subcaption: q2,
1026
- loader: H2,
1027
- spin: J2,
1028
- l: K2,
1029
- m: Q2,
1030
- s: X2,
1031
- xs: er
1032
- }, et = ({
1033
- isLoading: r,
1034
- showBadge: i,
1035
- badgeValue: n,
1036
- badgeSize: o,
1037
- icon: d,
1038
- children: s,
1039
- postfix: f,
1040
- showSubcaption: _,
1041
- subcaption: c,
1042
- size: m
1043
- }) => {
1044
- if (r)
1045
- return /* @__PURE__ */ l.jsx("span", { className: R.loader, "data-testid": "button-loader", "aria-hidden": "true" });
1046
- const b = o === "extra-small", v = parseInt(String(n), 10), y = !isNaN(v) && v >= 0 && v <= 9;
1047
- return /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1048
- i && (n || b) && /* @__PURE__ */ l.jsx(
1049
- "span",
1050
- {
1051
- "data-testid": "button-badge",
1052
- className: D(
1053
- R.badge,
1054
- R[`badge${b ? "ExtraSmall" : o === "medium" ? "Medium" : "Small"}`],
1055
- { [R.circular]: y && !b }
1056
- ),
1057
- children: !b && n
1058
- }
1059
- ),
1060
- _ && m !== "s" && m !== "xs" ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1061
- /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: R.label, children: s }),
1062
- /* @__PURE__ */ l.jsx("span", { "data-testid": "button-subcaption", className: R.subcaption, children: c })
1063
- ] }) : s ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
1064
- /* @__PURE__ */ l.jsx("span", { "data-testid": "button-label", className: R.label, children: s }),
1065
- /* @__PURE__ */ l.jsxs("div", { "data-testid": "button-right-group", className: R.rightGroup, children: [
1066
- d && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: R.icon, children: d }),
1067
- f && /* @__PURE__ */ l.jsx("span", { "data-testid": "button-postfix", className: R.postfix, children: f })
1068
- ] })
1069
- ] }) : /* @__PURE__ */ l.jsx("span", { "data-testid": "button-icon", className: R.icon, children: d })
1070
- ] });
1071
- }, $r = te((r, i) => {
1072
- const {
1073
- mode: n = "primary",
1074
- size: o = "m",
1075
- buttonStyle: d = "neutral",
1076
- loading: s = !1,
1077
- disabled: f = !1,
1078
- showBadge: _ = !1,
1079
- badgeSize: c = "small",
1080
- badgeValue: m,
1081
- showSubcaption: b = !1,
1082
- subcaption: v,
1083
- stretched: y = !1,
1084
- spaceBetween: w = !1,
1085
- icon: $,
1086
- postfix: k,
1087
- className: B,
1088
- children: S
1089
- } = r, C = f, O = s, L = !C && !O, U = !!$ && !S, F = D(
1090
- R.button,
1091
- R[o],
1092
- R[n],
1093
- R[d],
1094
- {
1095
- [R.disabled]: C,
1096
- [R.loading]: O,
1097
- [R.stretched]: y,
1098
- [R.spaceBetween]: w && y,
1099
- [R.withSubcaption]: b && v && o !== "s" && o !== "xs",
1100
- [R.iconOnly]: U
1101
- },
1102
- B
1103
- ), z = {
1104
- isLoading: O,
1105
- showBadge: _,
1106
- badgeValue: m,
1107
- badgeSize: c,
1108
- icon: $,
1109
- children: S,
1110
- postfix: k,
1111
- showSubcaption: b,
1112
- subcaption: v,
1113
- size: o
1114
- };
1115
- if (m2(r)) {
1116
- const {
1117
- href: V,
1118
- onClick: A,
1119
- mode: H,
1120
- size: J,
1121
- buttonStyle: G,
1122
- loading: N,
1123
- disabled: W,
1124
- showBadge: K,
1125
- badgeSize: ue,
1126
- badgeValue: de,
1127
- showSubcaption: fe,
1128
- subcaption: _e,
1129
- stretched: pe,
1130
- spaceBetween: be,
1131
- icon: ge,
1132
- postfix: ve,
1133
- className: xe,
1134
- tabIndex: ye,
1135
- children: ne,
1136
- "data-testid": Q,
1137
- style: Y,
1138
- ...X
1139
- } = r, q = (oe) => {
1140
- L && A && A(oe);
1141
- };
1142
- return /* @__PURE__ */ l.jsx(
1143
- "a",
1144
- {
1145
- ref: i,
1146
- className: F,
1147
- href: L ? V : void 0,
1148
- tabIndex: r.tabIndex,
1149
- onClick: q,
1150
- "data-testid": Q,
1151
- "aria-disabled": C || O,
1152
- style: Y,
1153
- ...X,
1154
- children: /* @__PURE__ */ l.jsx(et, { ...z })
1155
- }
1156
- );
1157
- }
1158
- if (C2(r)) {
1159
- const {
1160
- type: V = "button",
1161
- onClick: A,
1162
- mode: H,
1163
- size: J,
1164
- buttonStyle: G,
1165
- loading: N,
1166
- disabled: W,
1167
- showBadge: K,
1168
- badgeSize: ue,
1169
- badgeValue: de,
1170
- showSubcaption: fe,
1171
- subcaption: _e,
1172
- stretched: pe,
1173
- spaceBetween: be,
1174
- icon: ge,
1175
- postfix: ve,
1176
- className: xe,
1177
- tabIndex: ye,
1178
- children: ne,
1179
- "data-testid": Q,
1180
- style: Y,
1181
- ...X
1182
- } = r, q = (oe) => {
1183
- L && A && A(oe);
1184
- };
1185
- return /* @__PURE__ */ l.jsx(
1186
- "button",
1187
- {
1188
- ref: i,
1189
- type: V,
1190
- className: F,
1191
- disabled: C,
1192
- tabIndex: r.tabIndex,
1193
- onClick: q,
1194
- "data-testid": Q,
1195
- "aria-disabled": C || O,
1196
- style: Y,
1197
- ...X,
1198
- children: /* @__PURE__ */ l.jsx(et, { ...z })
1199
- }
1200
- );
1201
- }
1202
- return null;
1203
- }), tr = "_container_chiat_7", rr = "_image_chiat_19", ar = "_loading_chiat_28", ke = {
1204
- container: tr,
1205
- image: rr,
1206
- loading: ar
1207
- }, nr = "_loader_1tevf_1", or = "_spin_1tevf_1", ir = "_accent_1tevf_20", sr = "_neutral_1tevf_24", cr = "_positive_1tevf_28", lr = "_negative_1tevf_32", ur = "_gray_1tevf_36", dr = "_special_1tevf_40", fr = "_contrast_1tevf_44", _r = "_container_1tevf_48", pr = "_overlay_1tevf_56", le = {
1208
- loader: nr,
1209
- spin: or,
1210
- accent: ir,
1211
- neutral: sr,
1212
- positive: cr,
1213
- negative: lr,
1214
- gray: ur,
1215
- special: dr,
1216
- contrast: fr,
1217
- container: _r,
1218
- overlay: pr,
1215
+ }), nr = "_container_chiat_7", or = "_image_chiat_19", sr = "_loading_chiat_28", Oe = {
1216
+ container: nr,
1217
+ image: or,
1218
+ loading: sr
1219
+ }, ir = "_loader_1tevf_1", lr = "_spin_1tevf_1", cr = "_accent_1tevf_20", ur = "_neutral_1tevf_24", dr = "_positive_1tevf_28", _r = "_negative_1tevf_32", fr = "_gray_1tevf_36", pr = "_special_1tevf_40", br = "_contrast_1tevf_44", gr = "_container_1tevf_48", vr = "_overlay_1tevf_56", de = {
1220
+ loader: ir,
1221
+ spin: lr,
1222
+ accent: cr,
1223
+ neutral: ur,
1224
+ positive: dr,
1225
+ negative: _r,
1226
+ gray: fr,
1227
+ special: pr,
1228
+ contrast: br,
1229
+ container: gr,
1230
+ overlay: vr,
1219
1231
  "size-16": "_size-16_1tevf_71",
1220
1232
  "size-24": "_size-24_1tevf_75",
1221
1233
  "size-48": "_size-48_1tevf_79",
1222
1234
  "size-64": "_size-64_1tevf_83",
1223
1235
  "size-96": "_size-96_1tevf_87"
1224
- }, ot = te(
1236
+ }, lt = H(
1225
1237
  ({
1226
1238
  size: r = 24,
1227
- variant: i = "accent",
1228
- className: n,
1239
+ variant: s = "accent",
1240
+ className: a,
1229
1241
  "data-testid": o = "loader",
1230
1242
  style: d,
1231
- ...s
1232
- }, f) => {
1233
- const _ = D(
1234
- le.loader,
1235
- le[i],
1236
- le[`size-${r}`],
1237
- n
1243
+ ...i
1244
+ }, _) => {
1245
+ const f = Z(
1246
+ de.loader,
1247
+ de[s],
1248
+ de[`size-${r}`],
1249
+ a
1238
1250
  );
1239
1251
  return /* @__PURE__ */ l.jsx(
1240
1252
  "svg",
1241
1253
  {
1242
- ref: f,
1243
- className: _,
1254
+ ref: _,
1255
+ className: f,
1244
1256
  fill: "none",
1245
1257
  viewBox: "0 0 16 16",
1246
1258
  xmlns: "http://www.w3.org/2000/svg",
1247
1259
  "data-testid": o,
1248
1260
  style: d,
1249
- ...s,
1261
+ ...i,
1250
1262
  children: /* @__PURE__ */ l.jsx(
1251
1263
  "path",
1252
1264
  {
@@ -1259,36 +1271,36 @@ const c2 = 2, l2 = (r) => {
1259
1271
  }
1260
1272
  );
1261
1273
  }
1262
- ), br = te((r, i) => {
1274
+ ), hr = H((r, s) => {
1263
1275
  const {
1264
- loading: n = !1,
1276
+ loading: a = !1,
1265
1277
  size: o = 24,
1266
1278
  variant: d = "accent",
1267
- children: s,
1268
- className: f,
1269
- style: _,
1279
+ children: i,
1280
+ className: _,
1281
+ style: f,
1270
1282
  "data-testid": c,
1271
- ...m
1272
- } = r, b = D(le.container, f);
1273
- return /* @__PURE__ */ l.jsxs("div", { ref: i, className: b, style: _, "data-testid": c, ...m, children: [
1274
- s,
1275
- n && /* @__PURE__ */ l.jsx("div", { className: le.overlay, children: /* @__PURE__ */ l.jsx(ot, { size: o, variant: d, "data-testid": `${c}-spinner` }) })
1283
+ ...h
1284
+ } = r, p = Z(de.container, _);
1285
+ return /* @__PURE__ */ l.jsxs("div", { ref: s, className: p, style: f, "data-testid": c, ...h, children: [
1286
+ i,
1287
+ a && /* @__PURE__ */ l.jsx("div", { className: de.overlay, children: /* @__PURE__ */ l.jsx(lt, { size: o, variant: d, "data-testid": `${c}-spinner` }) })
1276
1288
  ] });
1277
- }), gr = te((r, i) => r.children ? /* @__PURE__ */ l.jsx(
1278
- br,
1289
+ }), mr = H((r, s) => r.children ? /* @__PURE__ */ l.jsx(
1290
+ hr,
1279
1291
  {
1280
- ref: i,
1292
+ ref: s,
1281
1293
  ...r
1282
1294
  }
1283
- ) : /* @__PURE__ */ l.jsx(ot, { ref: i, ...r })), vr = ({ width: r = 48, height: i = 48, className: n, "data-testid": o }) => /* @__PURE__ */ l.jsx(
1295
+ ) : /* @__PURE__ */ l.jsx(lt, { ref: s, ...r })), Cr = ({ width: r = 48, height: s = 48, className: a, "data-testid": o }) => /* @__PURE__ */ l.jsx(
1284
1296
  "svg",
1285
1297
  {
1286
1298
  width: r,
1287
- height: i,
1299
+ height: s,
1288
1300
  viewBox: "0 0 48 48",
1289
1301
  fill: "none",
1290
1302
  xmlns: "http://www.w3.org/2000/svg",
1291
- className: n,
1303
+ className: a,
1292
1304
  "data-testid": o,
1293
1305
  children: /* @__PURE__ */ l.jsx(
1294
1306
  "path",
@@ -1301,115 +1313,170 @@ const c2 = 2, l2 = (r) => {
1301
1313
  }
1302
1314
  )
1303
1315
  }
1304
- ), kr = te((r, i) => {
1316
+ ), Yr = H((r, s) => {
1305
1317
  const {
1306
- alt: n = "",
1318
+ alt: a = "",
1307
1319
  loading: o = "lazy",
1308
1320
  src: d,
1309
- isLoading: s = !1,
1310
- className: f,
1311
- "data-testid": _ = "image",
1321
+ isLoading: i = !1,
1322
+ className: _,
1323
+ "data-testid": f = "image",
1312
1324
  onError: c,
1313
- onLoad: m,
1314
- ...b
1315
- } = r, [v, y] = Te("loading"), w = v === "error", $ = (s || v === "loading") && !w, k = v === "loaded" && !s, B = D(
1316
- ke.image,
1325
+ onLoad: h,
1326
+ ...p
1327
+ } = r, [g, C] = Le("loading"), w = g === "error", $ = (i || g === "loading") && !w, k = g === "loaded" && !i, L = Z(
1328
+ Oe.image,
1317
1329
  {
1318
- [ke.loading]: $
1330
+ [Oe.loading]: $
1319
1331
  },
1320
- f
1321
- ), S = Ye(
1322
- (L) => {
1323
- y("loaded"), m == null || m(L);
1332
+ _
1333
+ ), S = He(
1334
+ (N) => {
1335
+ C("loaded"), h == null || h(N);
1324
1336
  },
1325
- [m]
1326
- ), C = Ye(
1327
- (L) => {
1328
- y("error"), c == null || c(L);
1337
+ [h]
1338
+ ), y = He(
1339
+ (N) => {
1340
+ C("error"), c == null || c(N);
1329
1341
  },
1330
1342
  [c]
1331
- ), O = {
1332
- loader: /* @__PURE__ */ l.jsxs(Tt, { children: [
1333
- /* @__PURE__ */ l.jsx(gr, { size: 48, variant: "special", "data-testid": `${_}-loader` }),
1343
+ ), T = {
1344
+ loader: /* @__PURE__ */ l.jsxs(Nt, { children: [
1345
+ /* @__PURE__ */ l.jsx(mr, { size: 48, variant: "special", "data-testid": `${f}-loader` }),
1334
1346
  /* @__PURE__ */ l.jsx(
1335
1347
  "img",
1336
1348
  {
1337
- alt: n,
1349
+ alt: a,
1338
1350
  src: d,
1339
1351
  onLoad: S,
1340
- onError: C,
1352
+ onError: y,
1341
1353
  style: { display: "none" }
1342
1354
  }
1343
1355
  )
1344
1356
  ] }),
1345
- error: /* @__PURE__ */ l.jsx(vr, { "data-testid": `${_}-fallback` }),
1357
+ error: /* @__PURE__ */ l.jsx(Cr, { "data-testid": `${f}-fallback` }),
1346
1358
  image: /* @__PURE__ */ l.jsx(
1347
1359
  "img",
1348
1360
  {
1349
- ref: i,
1350
- alt: n,
1351
- "data-testid": _,
1361
+ ref: s,
1362
+ alt: a,
1363
+ "data-testid": f,
1352
1364
  loading: o,
1353
1365
  src: d,
1354
- className: B
1366
+ className: L
1355
1367
  }
1356
1368
  )
1357
1369
  };
1358
- return at(() => {
1370
+ return st(() => {
1359
1371
  if (!d) {
1360
- y("error");
1372
+ C("error");
1361
1373
  return;
1362
1374
  }
1363
- y("loading");
1364
- }, [d]), /* @__PURE__ */ l.jsxs("div", { className: ke.container, "data-testid": `${_}-container`, ...b, children: [
1365
- $ && O.loader,
1366
- w && O.error,
1367
- k && O.image
1375
+ C("loading");
1376
+ }, [d]), /* @__PURE__ */ l.jsxs("div", { className: Oe.container, "data-testid": `${f}-container`, ...p, children: [
1377
+ $ && T.loader,
1378
+ w && T.error,
1379
+ k && T.image
1368
1380
  ] });
1369
- }), hr = {}, it = Pt({
1370
- locale: hr
1371
- }), mr = () => {
1372
- const r = Lt(it);
1381
+ }), yr = {}, ct = It({
1382
+ locale: yr
1383
+ }), xr = () => {
1384
+ const r = At(ct);
1373
1385
  if (!r)
1374
1386
  throw new Error("useConfig must be used within a ConfigProvider");
1375
1387
  return r;
1376
- }, Or = () => {
1377
- const { locale: r } = mr();
1388
+ }, qr = () => {
1389
+ const { locale: r } = xr();
1378
1390
  return r;
1379
- }, Cr = "_wrapper_1ukzl_1", xr = {
1380
- wrapper: Cr
1381
- }, yr = {}, wr = {}, Er = {}, Tr = ({
1391
+ }, wr = {}, Er = {}, Rr = {}, Hr = ({
1382
1392
  locale: r = {},
1383
- theme: i,
1384
- children: n,
1393
+ theme: s,
1394
+ children: a,
1385
1395
  className: o
1386
1396
  }) => {
1387
- const d = i ? { ...Object.fromEntries(Object.entries(i)) } : {};
1397
+ const d = s ? { ...Object.fromEntries(Object.entries(s)) } : {};
1388
1398
  return /* @__PURE__ */ l.jsx(
1389
1399
  "div",
1390
1400
  {
1391
1401
  "data-testid": "ConfigProvider-component",
1392
1402
  style: d,
1393
- className: D(
1394
- xr.wrapper,
1395
- yr.root,
1396
- wr.root,
1397
- Er.root,
1403
+ className: ae(
1404
+ wr,
1405
+ Er,
1406
+ Rr,
1398
1407
  o
1399
1408
  ),
1400
- children: /* @__PURE__ */ l.jsx(it.Provider, { value: { locale: r }, children: n })
1409
+ children: /* @__PURE__ */ l.jsx(ct.Provider, { value: { locale: r }, children: a })
1410
+ }
1411
+ );
1412
+ }, Jr = {}, Sr = "_tag_1llsi_1", jr = "_label_1llsi_16", $r = "_iconWrapper_1llsi_20", kr = "_medium_1llsi_27", Tr = "_large_1llsi_33", Or = "_disabled_1llsi_43", Pr = "_neutral_1llsi_47", Lr = "_positive_1llsi_53", Nr = "_negative_1llsi_59", Ir = "_warning_1llsi_65", Ar = "_vivid_1llsi_71", Mr = "_special_1llsi_77", Dr = "_accent_1llsi_84", Br = "_blue_1llsi_90", Fr = "_lovely_1llsi_96", zr = "_dreamy_1llsi_102", re = {
1413
+ tag: Sr,
1414
+ label: jr,
1415
+ iconWrapper: $r,
1416
+ medium: kr,
1417
+ large: Tr,
1418
+ disabled: Or,
1419
+ neutral: Pr,
1420
+ positive: Lr,
1421
+ negative: Nr,
1422
+ warning: Ir,
1423
+ vivid: Ar,
1424
+ special: Mr,
1425
+ accent: Dr,
1426
+ blue: Br,
1427
+ lovely: Fr,
1428
+ dreamy: zr
1429
+ }, at = {
1430
+ "typography-subtitle-1-semibold": "_typography-subtitle-1-semibold_1lyxn_45",
1431
+ "typography-label-3-regular": "_typography-label-3-regular_1lyxn_141"
1432
+ }, Kr = H((r, s) => {
1433
+ const {
1434
+ className: a,
1435
+ children: o,
1436
+ componentStyle: d = "neutral",
1437
+ size: i = "medium",
1438
+ disabled: _ = !1,
1439
+ showLabel: f = !!o,
1440
+ slotStart: c,
1441
+ slotEnd: h,
1442
+ slotStartWrapperProps: p = {},
1443
+ slotEndWrapperProps: g = {},
1444
+ "data-testid": C
1445
+ } = r, { className: w, ...$ } = p, { className: k, ...L } = g;
1446
+ return /* @__PURE__ */ l.jsxs(
1447
+ "div",
1448
+ {
1449
+ className: ae(
1450
+ re.tag,
1451
+ re[i],
1452
+ re[d],
1453
+ {
1454
+ [re.disabled]: _,
1455
+ [at["typography-label-3-regular"]]: i === "medium",
1456
+ [at["typography-subtitle-1-semibold"]]: i === "large"
1457
+ },
1458
+ a
1459
+ ),
1460
+ "data-testid": C || "tag-component",
1461
+ ref: s,
1462
+ children: [
1463
+ c && /* @__PURE__ */ l.jsx("span", { className: ae([re.iconWrapper, w]), ...$, children: c }),
1464
+ f && /* @__PURE__ */ l.jsx("span", { className: ae([re.label]), children: o }),
1465
+ h && /* @__PURE__ */ l.jsx("span", { className: ae([re.iconWrapper, k]), ...L, children: h })
1466
+ ]
1401
1467
  }
1402
1468
  );
1403
- }, Pr = {};
1469
+ });
1404
1470
  export {
1405
- Sr as Avatar,
1406
- jr as Badge,
1407
- $r as Button,
1408
- Tr as ConfigProvider,
1409
- kr as Image,
1410
- gr as Loader,
1411
- hr as enUS,
1412
- Pr as ruRU,
1413
- mr as useConfig,
1414
- Or as useLocale
1471
+ Ur as Avatar,
1472
+ Gr as Badge,
1473
+ Zr as Button,
1474
+ Hr as ConfigProvider,
1475
+ Yr as Image,
1476
+ mr as Loader,
1477
+ Kr as Tag,
1478
+ yr as enUS,
1479
+ Jr as ruRU,
1480
+ xr as useConfig,
1481
+ qr as useLocale
1415
1482
  };