skillgrid 0.0.23-dev-31782-34252-avatar-and-badge.1141916 → 0.0.23-dev-31782-34252-avatar-and-badge.1144012

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.
@@ -1,7 +1,19 @@
1
1
  import { AvatarProps } from './Avatar.type';
2
2
  /**
3
3
  * Компонент для отображения аватара пользователя в виде изображения, инициалов, иконки или плейсхолдера.
4
- * @returns {ReactElement} Аватар с выбранным типом отображения.
4
+ * @param props - Пропсы компонента.
5
+ * @param ref - Ref для DOM-элемента.
6
+ *
7
+ * @example
8
+ * // Изображение
9
+ * <Avatar imgSrc="url/to/image.jpg" />
10
+ * // Инициалы
11
+ * <Avatar name="John Doe" />
12
+ * // Иконка
13
+ * <Avatar icon={SomeIconComponent} />
14
+ *
15
+ * @see {@link AvatarProps}
16
+ * @returns Аватар с выбранным типом отображения.
5
17
  */
6
18
  declare const AvatarComponent: import('react').ForwardRefExoticComponent<AvatarProps & import('react').RefAttributes<HTMLDivElement>>;
7
19
  export { AvatarComponent };
@@ -1,14 +1,15 @@
1
- import { ComponentPropsWithoutRef, CSSProperties, FC, HTMLProps, MouseEvent, PropsWithChildren } from 'react';
1
+ import { ComponentPropsWithoutRef, CSSProperties, FC, HTMLProps, PropsWithChildren } from 'react';
2
2
  /** Типы режимов отображения аватара */
3
3
  export type AvatarModeType = 'image' | 'icon' | 'name' | 'placeholder';
4
4
  type CommonEventsType = 'onClick' | 'onFocus' | 'onBlur' | 'onPointerDown' | 'onPointerUp' | 'onPointerEnter' | 'onPointerLeave' | 'onPointerCancel' | 'onPointerOut' | 'onPointerOver';
5
+ export type AvatarSize = 24 | 32 | 40 | 44 | 48 | 56 | 84 | 96 | 208;
5
6
  /** Пропсы компонента Avatar */
6
7
  export interface AvatarProps extends Pick<HTMLProps<HTMLSpanElement>, 'className' | 'style' | 'children' | CommonEventsType> {
7
8
  /**
8
9
  * Размер аватара в пикселях
9
10
  * @default 40
10
11
  */
11
- size?: 24 | 32 | 40 | 48 | 56 | 84 | 96 | 208;
12
+ size?: AvatarSize;
12
13
  /**
13
14
  * Форма аватара
14
15
  * @default 'circle'
@@ -83,8 +84,8 @@ export interface AvatarGroupProps {
83
84
  /** Число для счетчика переполнения. Максимально 99+ */
84
85
  overflowCount?: number;
85
86
  /** Обработчик клика на счетчик переполнения */
86
- overflowOnClick?: (event: MouseEvent<HTMLDivElement>) => void;
87
+ overflowProps?: Omit<AvatarProps, 'size' | 'name' | 'icon' | 'shape'>;
87
88
  /** Степень перекрытия аватаров (0.25 | 0.3 | 0.5) */
88
- overlap?: 0.5 | 0.3 | 0.25;
89
+ overlap?: 0.5 | 0.4 | 0.3 | 0.25 | 0.2 | 0.1;
89
90
  }
90
91
  export {};
@@ -5,8 +5,6 @@ import { AvatarGroupProps } from '../Avatar.type';
5
5
  * - Перекрытия аватаров с заданным коэффициентом overlap
6
6
  * - Отображения счетчика скрытых аватаров через overflowCount
7
7
  * - Поддержки различных форм (круг/квадрат) и размеров
8
- *
9
- * @returns {ReactElement} Группа аватаров с эффектом перекрытия.
10
8
  */
11
9
  declare const AvatarGroup: FC<AvatarGroupProps>;
12
10
  export { AvatarGroup };
@@ -1,8 +1,9 @@
1
- import { AvatarProps } from '../Avatar.type';
1
+ import { AvatarProps, AvatarSize } from '../Avatar.type';
2
2
  /**
3
- * NOTE: This logic is duplicated from Avatar.module.css.
4
- * If you change the border-radius there, change it here too.
5
- * This is necessary for calculating the clipPath in AvatarGroup.
3
+ * Возвращает радиус границы аватара в зависимости от его размера и формы.
4
+ * @param size - Размер аватара.
5
+ * @param shape - Форма аватара ('circle' или 'square').
6
+ * @returns Радиус границы в пикселях.
6
7
  */
7
- declare function getAvatarBorderRadiusBySizeAndShape(size: number, shape: AvatarProps['shape']): number;
8
+ declare function getAvatarBorderRadiusBySizeAndShape(size: AvatarSize, shape: AvatarProps['shape']): number;
8
9
  export { getAvatarBorderRadiusBySizeAndShape };
@@ -1,4 +1,10 @@
1
1
  import { AvatarProps } from '../Avatar.type';
2
2
  type AvatarColorType = AvatarProps['colorScheme'];
3
- export declare function getInitialsColor(name: string, colors?: AvatarColorType[]): "contrast" | "brand" | "red" | "orange" | "yellow" | "green" | "blue" | "lightblue" | "purple" | "gray" | undefined;
3
+ /**
4
+ * Генерирует цвет для инициалов на основе имени.
5
+ * @param name - Имя пользователя.
6
+ * @param colors - Массив доступных цветов.
7
+ * @returns Цвет из списка `colors` или 'gray', если имя не предоставлено.
8
+ */
9
+ export declare function getInitialsColor(name?: string | null, colors?: AvatarColorType[]): AvatarColorType;
4
10
  export {};
@@ -1 +1,6 @@
1
+ /**
2
+ * Возвращает инициалы из полного имени.
3
+ * @param name - Полное имя.
4
+ * @returns Инициалы в верхнем регистре (не более 2-х символов) или первые две буквы имени.
5
+ */
1
6
  export declare function getInitials(name: string): string;
@@ -1,2 +1,7 @@
1
+ /**
2
+ * Форматирует число для отображения в круге переполнения.
3
+ * @param overflowCount - Число элементов, которые не поместились.
4
+ * @returns Строку вида `+N` или `99+`, если число больше или равно `MAX_OVERFLOW`.
5
+ */
1
6
  declare function getOverflowCountText(overflowCount: number): string;
2
7
  export { getOverflowCountText };
@@ -0,0 +1,10 @@
1
+ import { AvatarSize } from '../Avatar.type';
2
+ import { default as t } from '../../../styles/typography.module.css';
3
+ type TypographyClassesType = keyof typeof t;
4
+ /**
5
+ * Возвращает класс типографики в зависимости от размера аватара.
6
+ * @param size - Размер аватара.
7
+ * @returns Класс типографики.
8
+ */
9
+ declare function getTypographyClassFromAvatarSize(size: AvatarSize): TypographyClassesType;
10
+ export { getTypographyClassFromAvatarSize };
@@ -2,3 +2,4 @@ export { getOverflowCountText } from './get-overflow-count-text';
2
2
  export { getInitialsColor } from './get-initials-color';
3
3
  export { getInitials } from './get-initials';
4
4
  export { getAvatarBorderRadiusBySizeAndShape } from './get-avatar-border-radius-by-size-and-shape';
5
+ export { getTypographyClassFromAvatarSize } from './get-typography-classes-from-avatar-size';
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const E=require("react"),U=require("clsx");function Mt(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const it=Mt(E);function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Re={exports:{}},ue={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const S=require("react"),Z=require("clsx");function Dt(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const it=Dt(S);function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Se={exports:{}},pe={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Qe;function Dt(){if(Qe)return ue;Qe=1;var t=E,o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(_,c,b){var f,g={},h=null,C=null;b!==void 0&&(h=""+b),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(C=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(g[f]=c[f]);if(_&&_.defaultProps)for(f in c=_.defaultProps,c)g[f]===void 0&&(g[f]=c[f]);return{$$typeof:o,type:_,key:h,ref:C,props:g,_owner:d.current}}return ue.Fragment=r,ue.jsx=u,ue.jsxs=u,ue}var _e={};/**
9
+ */var Qe;function Bt(){if(Qe)return pe;Qe=1;var t=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(_,c,b){var f,g={},h=null,C=null;b!==void 0&&(h=""+b),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(C=c.ref);for(f in c)o.call(c,f)&&!i.hasOwnProperty(f)&&(g[f]=c[f]);if(_&&_.defaultProps)for(f in c=_.defaultProps,c)g[f]===void 0&&(g[f]=c[f]);return{$$typeof:n,type:_,key:h,ref:C,props:g,_owner:d.current}}return pe.Fragment=a,pe.jsx=u,pe.jsxs=u,pe}var fe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,21 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Xe;function Bt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var t=E,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),_=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),w=Symbol.iterator,N="@@iterator";function S(e){if(e===null||typeof e!="object")return null;var a=w&&e[w]||e[N];return typeof a=="function"?a:null}var R=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var a=arguments.length,l=new Array(a>1?a-1:0),p=1;p<a;p++)l[p-1]=arguments[p];P("error",e,l)}}function P(e,a,l){{var p=R.ReactDebugCurrentFrame,x=p.getStackAddendum();x!==""&&(a+="%s",l=l.concat([x]));var j=l.map(function(v){return String(v)});j.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,j)}}var L=!1,F=!1,I=!1,A=!1,q=!1,D;D=Symbol.for("react.module.reference");function Y(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===i||q||e===d||e===b||e===f||A||e===C||L||F||I||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===u||e.$$typeof===_||e.$$typeof===c||e.$$typeof===D||e.getModuleId!==void 0))}function H(e,a,l){var p=e.displayName;if(p)return p;var x=a.displayName||a.name||"";return x!==""?l+"("+x+")":l}function V(e){return e.displayName||"Context"}function M(e){if(e==null)return null;if(typeof e.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case d:return"StrictMode";case b:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var a=e;return V(a)+".Consumer";case u:var l=e;return V(l._context)+".Provider";case c:return H(e,e.render,"ForwardRef");case g:var p=e.displayName||null;return p!==null?p:M(e.type)||"Memo";case h:{var x=e,j=x._payload,v=x._init;try{return M(v(j))}catch{return null}}}return null}var T=Object.assign,G=0,fe,ge,be,he,ye,ve,me;function Ce(){}Ce.__reactDisabledLog=!0;function Se(){{if(G===0){fe=console.log,ge=console.info,be=console.warn,he=console.error,ye=console.group,ve=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function $e(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},e,{value:fe}),info:T({},e,{value:ge}),warn:T({},e,{value:be}),error:T({},e,{value:he}),group:T({},e,{value:ye}),groupCollapsed:T({},e,{value:ve}),groupEnd:T({},e,{value:me})})}G<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=R.ReactCurrentDispatcher,te;function X(e,a,l){{if(te===void 0)try{throw Error()}catch(x){var p=x.stack.trim().match(/\n( *(at )?)/);te=p&&p[1]||""}return`
18
- `+te+e}}var ae=!1,ee;{var ce=typeof WeakMap=="function"?WeakMap:Map;ee=new ce}function Me(e,a){if(!e||ae)return"";{var l=ee.get(e);if(l!==void 0)return l}var p;ae=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var j;j=le.current,le.current=null,Se();try{if(a){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(B){p=B}Reflect.construct(e,[],v)}else{try{v.call()}catch(B){p=B}e.call(v.prototype)}}else{try{throw Error()}catch(B){p=B}e()}}catch(B){if(B&&p&&typeof B.stack=="string"){for(var y=B.stack.split(`
19
- `),z=p.stack.split(`
20
- `),$=y.length-1,O=z.length-1;$>=1&&O>=0&&y[$]!==z[O];)O--;for(;$>=1&&O>=0;$--,O--)if(y[$]!==z[O]){if($!==1||O!==1)do if($--,O--,O<0||y[$]!==z[O]){var W=`
21
- `+y[$].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,W),W}while($>=1&&O>=0);break}}}finally{ae=!1,le.current=j,$e(),Error.prepareStackTrace=x}var se=e?e.displayName||e.name:"",re=se?X(se):"";return typeof e=="function"&&ee.set(e,re),re}function pt(e,a,l){return Me(e,!1)}function ft(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function xe(e,a,l){if(e==null)return"";if(typeof e=="function")return Me(e,ft(e));if(typeof e=="string")return X(e);switch(e){case b:return X("Suspense");case f:return X("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return pt(e.render);case g:return xe(e.type,a,l);case h:{var p=e,x=p._payload,j=p._init;try{return xe(j(x),a,l)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,ze={},De=R.ReactDebugCurrentFrame;function we(e){if(e){var a=e._owner,l=xe(e.type,e._source,a?a.type:null);De.setExtraStackFrame(l)}else De.setExtraStackFrame(null)}function gt(e,a,l,p,x){{var j=Function.call.bind(de);for(var v in e)if(j(e,v)){var y=void 0;try{if(typeof e[v]!="function"){var z=Error((p||"React class")+": "+l+" 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`.");throw z.name="Invariant Violation",z}y=e[v](a,v,p,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){y=$}y&&!(y instanceof Error)&&(we(x),m("%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).",p||"React class",l,v,typeof y),we(null)),y instanceof Error&&!(y.message in ze)&&(ze[y.message]=!0,we(x),m("Failed %s type: %s",l,y.message),we(null))}}}var bt=Array.isArray;function ke(e){return bt(e)}function ht(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,l=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function yt(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function Fe(e){if(yt(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(e)),Be(e)}var Ve=R.ReactCurrentOwner,vt={key:!0,ref:!0,__self:!0,__source:!0},We,Ze;function mt(e){if(de.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Ct(e){if(de.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function xt(e,a){typeof e.ref=="string"&&Ve.current}function wt(e,a){{var l=function(){We||(We=!0,m("%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)",a))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function Rt(e,a){{var l=function(){Ze||(Ze=!0,m("%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)",a))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var jt=function(e,a,l,p,x,j,v){var y={$$typeof:o,type:e,key:a,ref:l,props:v,_owner:j};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function Et(e,a,l,p,x){{var j,v={},y=null,z=null;l!==void 0&&(Fe(l),y=""+l),Ct(a)&&(Fe(a.key),y=""+a.key),mt(a)&&(z=a.ref,xt(a,x));for(j in a)de.call(a,j)&&!vt.hasOwnProperty(j)&&(v[j]=a[j]);if(e&&e.defaultProps){var $=e.defaultProps;for(j in $)v[j]===void 0&&(v[j]=$[j])}if(y||z){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;y&&wt(v,O),z&&Rt(v,O)}return jt(e,y,z,x,p,Ve.current,v)}}var Te=R.ReactCurrentOwner,qe=R.ReactDebugCurrentFrame;function oe(e){if(e){var a=e._owner,l=xe(e.type,e._source,a?a.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var Oe;Oe=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ue(){{if(Te.current){var e=M(Te.current.type);if(e)return`
17
+ */var Xe;function Ft(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var t=S,n=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"),u=Symbol.for("react.provider"),_=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),w=Symbol.iterator,N="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var r=w&&e[w]||e[N];return typeof r=="function"?r:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var r=arguments.length,l=new Array(r>1?r-1:0),p=1;p<r;p++)l[p-1]=arguments[p];P("error",e,l)}}function P(e,r,l){{var p=k.ReactDebugCurrentFrame,x=p.getStackAddendum();x!==""&&(r+="%s",l=l.concat([x]));var R=l.map(function(v){return String(v)});R.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,R)}}var I=!1,B=!1,F=!1,L=!1,q=!1,M;M=Symbol.for("react.module.reference");function Y(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===i||q||e===d||e===b||e===f||L||e===C||I||B||F||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===u||e.$$typeof===_||e.$$typeof===c||e.$$typeof===M||e.getModuleId!==void 0))}function H(e,r,l){var p=e.displayName;if(p)return p;var x=r.displayName||r.name||"";return x!==""?l+"("+x+")":l}function U(e){return e.displayName||"Context"}function D(e){if(e==null)return null;if(typeof e.tag=="number"&&m("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case o:return"Fragment";case a:return"Portal";case i:return"Profiler";case d:return"StrictMode";case b:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var r=e;return U(r)+".Consumer";case u:var l=e;return U(l._context)+".Provider";case c:return H(e,e.render,"ForwardRef");case g:var p=e.displayName||null;return p!==null?p:D(e.type)||"Memo";case h:{var x=e,R=x._payload,v=x._init;try{return D(v(R))}catch{return null}}}return null}var j=Object.assign,V=0,X,ae,he,ye,me,ve,Ce;function xe(){}xe.__reactDisabledLog=!0;function $e(){{if(V===0){X=console.log,ae=console.info,he=console.warn,ye=console.error,me=console.group,ve=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function je(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:X}),info:j({},e,{value:ae}),warn:j({},e,{value:he}),error:j({},e,{value:ye}),group:j({},e,{value:me}),groupCollapsed:j({},e,{value:ve}),groupEnd:j({},e,{value:Ce})})}V<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=k.ReactCurrentDispatcher,re;function ee(e,r,l){{if(re===void 0)try{throw Error()}catch(x){var p=x.stack.trim().match(/\n( *(at )?)/);re=p&&p[1]||""}return`
18
+ `+re+e}}var ne=!1,te;{var ue=typeof WeakMap=="function"?WeakMap:Map;te=new ue}function Me(e,r){if(!e||ne)return"";{var l=te.get(e);if(l!==void 0)return l}var p;ne=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=de.current,de.current=null,$e();try{if(r){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(z){p=z}Reflect.construct(e,[],v)}else{try{v.call()}catch(z){p=z}e.call(v.prototype)}}else{try{throw Error()}catch(z){p=z}e()}}catch(z){if(z&&p&&typeof z.stack=="string"){for(var y=z.stack.split(`
19
+ `),A=p.stack.split(`
20
+ `),E=y.length-1,O=A.length-1;E>=1&&O>=0&&y[E]!==A[O];)O--;for(;E>=1&&O>=0;E--,O--)if(y[E]!==A[O]){if(E!==1||O!==1)do if(E--,O--,O<0||y[E]!==A[O]){var W=`
21
+ `+y[E].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,W),W}while(E>=1&&O>=0);break}}}finally{ne=!1,de.current=R,je(),Error.prepareStackTrace=x}var le=e?e.displayName||e.name:"",oe=le?ee(le):"";return typeof e=="function"&&te.set(e,oe),oe}function ft(e,r,l){return Me(e,!1)}function gt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function we(e,r,l){if(e==null)return"";if(typeof e=="function")return Me(e,gt(e));if(typeof e=="string")return ee(e);switch(e){case b:return ee("Suspense");case f:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return ft(e.render);case g:return we(e.type,r,l);case h:{var p=e,x=p._payload,R=p._init;try{return we(R(x),r,l)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,De={},ze=k.ReactDebugCurrentFrame;function Re(e){if(e){var r=e._owner,l=we(e.type,e._source,r?r.type:null);ze.setExtraStackFrame(l)}else ze.setExtraStackFrame(null)}function bt(e,r,l,p,x){{var R=Function.call.bind(_e);for(var v in e)if(R(e,v)){var y=void 0;try{if(typeof e[v]!="function"){var A=Error((p||"React class")+": "+l+" 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`.");throw A.name="Invariant Violation",A}y=e[v](r,v,p,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){y=E}y&&!(y instanceof Error)&&(Re(x),m("%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).",p||"React class",l,v,typeof y),Re(null)),y instanceof Error&&!(y.message in De)&&(De[y.message]=!0,Re(x),m("Failed %s type: %s",l,y.message),Re(null))}}}var ht=Array.isArray;function Ee(e){return ht(e)}function yt(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,l=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function mt(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function Fe(e){if(mt(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),Be(e)}var qe=k.ReactCurrentOwner,vt={key:!0,ref:!0,__self:!0,__source:!0},Ve,We;function Ct(e){if(_e.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function xt(e){if(_e.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function wt(e,r){typeof e.ref=="string"&&qe.current}function Rt(e,r){{var l=function(){Ve||(Ve=!0,m("%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)",r))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function St(e,r){{var l=function(){We||(We=!0,m("%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)",r))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var kt=function(e,r,l,p,x,R,v){var y={$$typeof:n,type:e,key:r,ref:l,props:v,_owner:R};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function $t(e,r,l,p,x){{var R,v={},y=null,A=null;l!==void 0&&(Fe(l),y=""+l),xt(r)&&(Fe(r.key),y=""+r.key),Ct(r)&&(A=r.ref,wt(r,x));for(R in r)_e.call(r,R)&&!vt.hasOwnProperty(R)&&(v[R]=r[R]);if(e&&e.defaultProps){var E=e.defaultProps;for(R in E)v[R]===void 0&&(v[R]=E[R])}if(y||A){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;y&&Rt(v,O),A&&St(v,O)}return kt(e,y,A,x,p,qe.current,v)}}var Te=k.ReactCurrentOwner,Ze=k.ReactDebugCurrentFrame;function ie(e){if(e){var r=e._owner,l=we(e.type,e._source,r?r.type:null);Ze.setExtraStackFrame(l)}else Ze.setExtraStackFrame(null)}var Oe;Oe=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ue(){{if(Te.current){var e=D(Te.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function St(e){return""}var Ge={};function $t(e){{var a=Ue();if(!a){var l=typeof e=="string"?e:e.displayName||e.name;l&&(a=`
23
+ Check the render method of \``+e+"`."}return""}}function jt(e){return""}var Ge={};function Et(e){{var r=Ue();if(!r){var l=typeof e=="string"?e:e.displayName||e.name;l&&(r=`
24
24
 
25
- Check the top-level render call using <`+l+">.")}return a}}function Ye(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=$t(a);if(Ge[l])return;Ge[l]=!0;var p="";e&&e._owner&&e._owner!==Te.current&&(p=" It was passed a child from "+M(e._owner.type)+"."),oe(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,p),oe(null)}}function He(e,a){{if(typeof e!="object")return;if(ke(e))for(var l=0;l<e.length;l++){var p=e[l];Ne(p)&&Ye(p,a)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var x=S(e);if(typeof x=="function"&&x!==e.entries)for(var j=x.call(e),v;!(v=j.next()).done;)Ne(v.value)&&Ye(v.value,a)}}}function kt(e){{var a=e.type;if(a==null||typeof a=="string")return;var l;if(typeof a=="function")l=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===c||a.$$typeof===g))l=a.propTypes;else return;if(l){var p=M(a);gt(l,e.props,"prop",p,e)}else if(a.PropTypes!==void 0&&!Oe){Oe=!0;var x=M(a);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var a=Object.keys(e.props),l=0;l<a.length;l++){var p=a[l];if(p!=="children"&&p!=="key"){oe(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),oe(null);break}}e.ref!==null&&(oe(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}}var Je={};function Ke(e,a,l,p,x,j){{var v=Y(e);if(!v){var y="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var z=St();z?y+=z:y+=Ue();var $;e===null?$="null":ke(e)?$="array":e!==void 0&&e.$$typeof===o?($="<"+(M(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):$=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,y)}var O=Et(e,a,l,x,j);if(O==null)return O;if(v){var W=a.children;if(W!==void 0)if(p)if(ke(W)){for(var se=0;se<W.length;se++)He(W[se],e);Object.freeze&&Object.freeze(W)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else He(W,e)}if(de.call(a,"key")){var re=M(e),B=Object.keys(a).filter(function(At){return At!=="key"}),Pe=B.length>0?"{key: someKey, "+B.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[re+Pe]){var It=B.length>0?"{"+B.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+l+">.")}return r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=Et(r);if(Ge[l])return;Ge[l]=!0;var p="";e&&e._owner&&e._owner!==Te.current&&(p=" It was passed a child from "+D(e._owner.type)+"."),ie(e),m('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,p),ie(null)}}function He(e,r){{if(typeof e!="object")return;if(Ee(e))for(var l=0;l<e.length;l++){var p=e[l];Ne(p)&&Ye(p,r)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var x=$(e);if(typeof x=="function"&&x!==e.entries)for(var R=x.call(e),v;!(v=R.next()).done;)Ne(v.value)&&Ye(v.value,r)}}}function Tt(e){{var r=e.type;if(r==null||typeof r=="string")return;var l;if(typeof r=="function")l=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===g))l=r.propTypes;else return;if(l){var p=D(r);bt(l,e.props,"prop",p,e)}else if(r.PropTypes!==void 0&&!Oe){Oe=!0;var x=D(r);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var r=Object.keys(e.props),l=0;l<r.length;l++){var p=r[l];if(p!=="children"&&p!=="key"){ie(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),ie(null);break}}e.ref!==null&&(ie(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var Je={};function Ke(e,r,l,p,x,R){{var v=Y(e);if(!v){var y="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(y+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var A=jt();A?y+=A:y+=Ue();var E;e===null?E="null":Ee(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+(D(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,y)}var O=$t(e,r,l,x,R);if(O==null)return O;if(v){var W=r.children;if(W!==void 0)if(p)if(Ee(W)){for(var le=0;le<W.length;le++)He(W[le],e);Object.freeze&&Object.freeze(W)}else m("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else He(W,e)}if(_e.call(r,"key")){var oe=D(e),z=Object.keys(r).filter(function(Mt){return Mt!=="key"}),Pe=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[oe+Pe]){var At=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";m(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Pe,re,It,re),Je[re+Pe]=!0}}return e===n?Tt(O):kt(O),O}}function Ot(e,a,l){return Ke(e,a,l,!0)}function Nt(e,a,l){return Ke(e,a,l,!1)}var Pt=Nt,Lt=Ot;_e.Fragment=n,_e.jsx=Pt,_e.jsxs=Lt}()),_e}var et;function Ft(){return et||(et=1,process.env.NODE_ENV==="production"?Re.exports=Dt():Re.exports=Bt()),Re.exports}var s=Ft();const Vt=t=>t.as==="a",Wt=t=>t.as===void 0||t.as==="button",Zt="_button_1abee_213",qt="_disabled_1abee_237",Ut="_loading_1abee_237",Gt="_neutral_1abee_259",Yt="_accent_1abee_263",Ht="_positive_1abee_267",Jt="_negative_1abee_271",Kt="_contrast_1abee_275",Qt="_special_1abee_279",Xt="_primary_1abee_284",ea="_secondary_1abee_285",ta="_tertiary_1abee_286",aa="_label_1abee_321",ra="_rightGroup_1abee_333",na="_iconOnly_1abee_349",oa="_large_1abee_357",sa="_medium_1abee_361",ia="_small_1abee_365",la="_spaceBetween_1abee_370",ca="_stretched_1abee_384",da="_icon_1abee_349",ua="_badge_1abee_705",_a="_badgeMedium_1abee_721",pa="_circular_1abee_738",fa="_badgeSmall_1abee_743",ga="_badgeExtraSmall_1abee_765",ba="_withSubcaption_1abee_784",ha="_subcaption_1abee_797",ya="_loader_1abee_804",va="_spin_1abee_1",ma="_l_1abee_237",Ca="_m_1abee_361",xa="_s_1abee_279",wa="_xs_1abee_869",k={button:Zt,disabled:qt,loading:Ut,neutral:Gt,accent:Yt,positive:Ht,negative:Jt,contrast:Kt,special:Qt,primary:Xt,secondary:ea,tertiary:ta,label:aa,rightGroup:ra,iconOnly:na,large:oa,medium:sa,small:ia,spaceBetween:la,stretched:ca,icon:da,badge:ua,badgeMedium:_a,circular:pa,badgeSmall:fa,badgeExtraSmall:ga,withSubcaption:ba,subcaption:ha,loader:ya,spin:va,l:ma,m:Ca,s:xa,xs:wa},tt=({isLoading:t,showBadge:o,badgeValue:r,badgeSize:n,icon:d,children:i,postfix:u,showSubcaption:_,subcaption:c,size:b})=>{if(t)return s.jsx("span",{className:k.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=n==="extra-small",g=parseInt(String(r),10),h=!isNaN(g)&&g>=0&&g<=9;return s.jsxs(s.Fragment,{children:[o&&(r||f)&&s.jsx("span",{"data-testid":"button-badge",className:U.clsx(k.badge,k[`badge${f?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[k.circular]:h&&!f}),children:!f&&r}),_&&b!=="s"&&b!=="xs"?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:k.label,children:i}),s.jsx("span",{"data-testid":"button-subcaption",className:k.subcaption,children:c})]}):i?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:k.label,children:i}),s.jsxs("div",{"data-testid":"button-right-group",className:k.rightGroup,children:[d&&s.jsx("span",{"data-testid":"button-icon",className:k.icon,children:d}),u&&s.jsx("span",{"data-testid":"button-postfix",className:k.postfix,children:u})]})]}):s.jsx("span",{"data-testid":"button-icon",className:k.icon,children:d})]})},Ra=E.forwardRef((t,o)=>{const{mode:r="primary",size:n="m",buttonStyle:d="neutral",loading:i=!1,disabled:u=!1,showBadge:_=!1,badgeSize:c="small",badgeValue:b,showSubcaption:f=!1,subcaption:g,stretched:h=!1,spaceBetween:C=!1,icon:w,postfix:N,className:S,children:R}=t,m=u,P=i,L=!m&&!P,F=!!w&&!R,I=U.clsx(k.button,k[n],k[r],k[d],{[k.disabled]:m,[k.loading]:P,[k.stretched]:h,[k.spaceBetween]:C&&h,[k.withSubcaption]:f&&g&&n!=="s"&&n!=="xs",[k.iconOnly]:F},S),A={isLoading:P,showBadge:_,badgeValue:b,badgeSize:c,icon:w,children:R,postfix:N,showSubcaption:f,subcaption:g,size:n};if(Vt(t)){const{href:q,onClick:D,mode:Y,size:H,buttonStyle:V,loading:M,disabled:T,showBadge:G,badgeSize:fe,badgeValue:ge,showSubcaption:be,subcaption:he,stretched:ye,spaceBetween:ve,icon:me,postfix:Ce,className:Se,tabIndex:$e,children:le,"data-testid":te,style:X,...ae}=t,ee=ce=>{L&&D&&D(ce)};return s.jsx("a",{ref:o,className:I,href:L?q:void 0,tabIndex:t.tabIndex,onClick:ee,"data-testid":te,"aria-disabled":m||P,style:X,...ae,children:s.jsx(tt,{...A})})}if(Wt(t)){const{type:q="button",onClick:D,mode:Y,size:H,buttonStyle:V,loading:M,disabled:T,showBadge:G,badgeSize:fe,badgeValue:ge,showSubcaption:be,subcaption:he,stretched:ye,spaceBetween:ve,icon:me,postfix:Ce,className:Se,tabIndex:$e,children:le,"data-testid":te,style:X,...ae}=t,ee=ce=>{L&&D&&D(ce)};return s.jsx("button",{ref:o,type:q,className:I,disabled:m,tabIndex:t.tabIndex,onClick:ee,"data-testid":te,"aria-disabled":m||P,style:X,...ae,children:s.jsx(tt,{...A})})}return null});var Le={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,Pe,oe,At,oe),Je[oe+Pe]=!0}}return e===o?Ot(O):Tt(O),O}}function Nt(e,r,l){return Ke(e,r,l,!0)}function Pt(e,r,l){return Ke(e,r,l,!1)}var Lt=Pt,It=Nt;fe.Fragment=o,fe.jsx=Lt,fe.jsxs=It}()),fe}var et;function qt(){return et||(et=1,process.env.NODE_ENV==="production"?Se.exports=Bt():Se.exports=Ft()),Se.exports}var s=qt();const Vt=t=>t.as==="a",Wt=t=>t.as===void 0||t.as==="button",Zt="_button_1abee_213",Ut="_disabled_1abee_237",Gt="_loading_1abee_237",Yt="_neutral_1abee_259",Ht="_accent_1abee_263",Jt="_positive_1abee_267",Kt="_negative_1abee_271",Qt="_contrast_1abee_275",Xt="_special_1abee_279",ea="_primary_1abee_284",ta="_secondary_1abee_285",aa="_tertiary_1abee_286",ra="_label_1abee_321",na="_rightGroup_1abee_333",oa="_iconOnly_1abee_349",sa="_large_1abee_357",ia="_medium_1abee_361",la="_small_1abee_365",ca="_spaceBetween_1abee_370",da="_stretched_1abee_384",ua="_icon_1abee_349",_a="_badge_1abee_705",pa="_badgeMedium_1abee_721",fa="_circular_1abee_738",ga="_badgeSmall_1abee_743",ba="_badgeExtraSmall_1abee_765",ha="_withSubcaption_1abee_784",ya="_subcaption_1abee_797",ma="_loader_1abee_804",va="_spin_1abee_1",Ca="_l_1abee_237",xa="_m_1abee_361",wa="_s_1abee_279",Ra="_xs_1abee_869",T={button:Zt,disabled:Ut,loading:Gt,neutral:Yt,accent:Ht,positive:Jt,negative:Kt,contrast:Qt,special:Xt,primary:ea,secondary:ta,tertiary:aa,label:ra,rightGroup:na,iconOnly:oa,large:sa,medium:ia,small:la,spaceBetween:ca,stretched:da,icon:ua,badge:_a,badgeMedium:pa,circular:fa,badgeSmall:ga,badgeExtraSmall:ba,withSubcaption:ha,subcaption:ya,loader:ma,spin:va,l:Ca,m:xa,s:wa,xs:Ra},tt=({isLoading:t,showBadge:n,badgeValue:a,badgeSize:o,icon:d,children:i,postfix:u,showSubcaption:_,subcaption:c,size:b})=>{if(t)return s.jsx("span",{className:T.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=o==="extra-small",g=parseInt(String(a),10),h=!isNaN(g)&&g>=0&&g<=9;return s.jsxs(s.Fragment,{children:[n&&(a||f)&&s.jsx("span",{"data-testid":"button-badge",className:Z.clsx(T.badge,T[`badge${f?"ExtraSmall":o==="medium"?"Medium":"Small"}`],{[T.circular]:h&&!f}),children:!f&&a}),_&&b!=="s"&&b!=="xs"?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:T.label,children:i}),s.jsx("span",{"data-testid":"button-subcaption",className:T.subcaption,children:c})]}):i?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:T.label,children:i}),s.jsxs("div",{"data-testid":"button-right-group",className:T.rightGroup,children:[d&&s.jsx("span",{"data-testid":"button-icon",className:T.icon,children:d}),u&&s.jsx("span",{"data-testid":"button-postfix",className:T.postfix,children:u})]})]}):s.jsx("span",{"data-testid":"button-icon",className:T.icon,children:d})]})},Sa=S.forwardRef((t,n)=>{const{mode:a="primary",size:o="m",buttonStyle:d="neutral",loading:i=!1,disabled:u=!1,showBadge:_=!1,badgeSize:c="small",badgeValue:b,showSubcaption:f=!1,subcaption:g,stretched:h=!1,spaceBetween:C=!1,icon:w,postfix:N,className:$,children:k}=t,m=u,P=i,I=!m&&!P,B=!!w&&!k,F=Z.clsx(T.button,T[o],T[a],T[d],{[T.disabled]:m,[T.loading]:P,[T.stretched]:h,[T.spaceBetween]:C&&h,[T.withSubcaption]:f&&g&&o!=="s"&&o!=="xs",[T.iconOnly]:B},$),L={isLoading:P,showBadge:_,badgeValue:b,badgeSize:c,icon:w,children:k,postfix:N,showSubcaption:f,subcaption:g,size:o};if(Vt(t)){const{href:q,onClick:M,mode:Y,size:H,buttonStyle:U,loading:D,disabled:j,showBadge:V,badgeSize:X,badgeValue:ae,showSubcaption:he,subcaption:ye,stretched:me,spaceBetween:ve,icon:Ce,postfix:xe,className:$e,tabIndex:je,children:de,"data-testid":re,style:ee,...ne}=t,te=ue=>{I&&M&&M(ue)};return s.jsx("a",{ref:n,className:F,href:I?q:void 0,tabIndex:t.tabIndex,onClick:te,"data-testid":re,"aria-disabled":m||P,style:ee,...ne,children:s.jsx(tt,{...L})})}if(Wt(t)){const{type:q="button",onClick:M,mode:Y,size:H,buttonStyle:U,loading:D,disabled:j,showBadge:V,badgeSize:X,badgeValue:ae,showSubcaption:he,subcaption:ye,stretched:me,spaceBetween:ve,icon:Ce,postfix:xe,className:$e,tabIndex:je,children:de,"data-testid":re,style:ee,...ne}=t,te=ue=>{I&&M&&M(ue)};return s.jsx("button",{ref:n,type:q,className:F,disabled:m,tabIndex:t.tabIndex,onClick:te,"data-testid":re,"aria-disabled":m||P,style:ee,...ne,children:s.jsx(tt,{...L})})}return null});var Le={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */var at;function ja(){return at||(at=1,function(t){(function(){var o={}.hasOwnProperty;function r(){for(var i="",u=0;u<arguments.length;u++){var _=arguments[u];_&&(i=d(i,n(_)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var u="";for(var _ in i)o.call(i,_)&&i[_]&&(u=d(u,_));return u}function d(i,u){return u?i?i+" "+u:i+u:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()}(Le)),Le.exports}var Ea=ja();const Q=zt(Ea),Sa="_avatar_s7gid_4",$a="_clickable_s7gid_23",ka="_icon_s7gid_40",Ta="_disabled_s7gid_45",Oa="_loading_s7gid_50",Na="_image_s7gid_56",Pa="_name_s7gid_56",La="_circle_s7gid_165",Ia="_square_s7gid_169",Z={avatar:Sa,clickable:$a,icon:ka,disabled:Ta,loading:Oa,image:Na,name:Pa,"size-208":"_size-208_s7gid_109","size-96":"_size-96_s7gid_116","size-84":"_size-84_s7gid_123","size-56":"_size-56_s7gid_130","size-48":"_size-48_s7gid_137","size-40":"_size-40_s7gid_144","size-32":"_size-32_s7gid_151","size-24":"_size-24_s7gid_158",circle:La,square:Ia,"variant-filled":"_variant-filled_s7gid_190","color-brand":"_color-brand_s7gid_195","color-red":"_color-red_s7gid_199","color-orange":"_color-orange_s7gid_203","color-yellow":"_color-yellow_s7gid_207","color-green":"_color-green_s7gid_211","color-blue":"_color-blue_s7gid_215","color-lightblue":"_color-lightblue_s7gid_219","color-purple":"_color-purple_s7gid_223","color-gray":"_color-gray_s7gid_227","color-contrast":"_color-contrast_s7gid_231","variant-light":"_variant-light_s7gid_237","variant-outline":"_variant-outline_s7gid_309"},rt=99;function Aa(t){return t<rt?`+${t}`:`${rt}+`}function Ae(t){const o=typeof t=="string"?t:JSON.stringify(t);let r=5381;for(let n=0;n<o.length;n++){const d=o.charCodeAt(n);r=(r<<5)+r+d}return r>>>0}const Ma=["red","orange","yellow","green","blue","lightblue","purple"];function za(t,o=Ma){const r=Ae(t),n=Math.abs(r)%o.length;return o[n]}const nt=2;function Da(t){if(!t)return"";const o=t.trim().split(/\s+/);return o.length===1?t.slice(0,nt).toUpperCase():o.map(r=>r[0]).slice(0,nt).join("").toUpperCase()}function Ba(t,o){return o==="circle"?t/2:t===24||t===208?8:t===32||t===40||t===48?12:t===56?16:t===84||t===96?24:12}const Fa="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",Va="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",Wa="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",Za="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",qa={male:Fa,female:Va,org:Za,neutral:Wa},je=E.forwardRef((t,o)=>{const{style:r,size:n=40,isLoading:d=!1,isDisabled:i=!1,shape:u="circle",variant:_="light",placeholderType:c="neutral",name:b="",imgSrc:f,imgAlt:g="",icon:h,imgProps:C,colorScheme:w,"data-testid":N,...S}=t,{onClick:R,onPointerDown:m}=S,L=!i&&!d&&(!!R||!!m),[F,I]=E.useState(!1);E.useEffect(()=>{f&&I(!1)},[f]);const A=f&&!F?"image":h?"icon":b?"name":"placeholder",q=w||A==="name"&&za(b)||"gray",D=Q(Z.avatar,Z[u],Z[`size-${n}`],Z[`variant-${_}`],Z[`color-${q}`],{[Z.disabled]:i,[Z.loading]:d,[Z.clickable]:L}),Y={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:Q(Z.icon),children:h==null?void 0:h({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:Q(Z.name),title:g,children:Da(b)}),placeholder:()=>s.jsx("img",{...C,"data-testid":"avatar-placeholder",className:Z.image,src:qa[c],alt:g}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...C,className:Z.image,src:f,alt:g,onLoad:()=>I(!1),onError:V=>{var M;I(!0),(M=C==null?void 0:C.onError)==null||M.call(C,V)}})},H=V=>{L&&(R==null||R(V))};return s.jsx("div",{ref:o,onClick:H,className:D,style:r,"data-testid":N,"aria-disabled":i||d,children:Y[A](null)})}),Ua="_avatarGroup_157g4_1",Ga={avatarGroup:Ua};let Ya=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((o,r)=>(r&=63,r<36?o+=r.toString(36):r<62?o+=(r-26).toString(36).toUpperCase():r>62?o+="-":o+="_",o),"");function Ha(t,o,r,n,d,i,u){const _=Math.min(d,i)/2,c=Math.min(u,_),b=["M0,0",`H${t}`,`V${o}`,"H0","V0","Z"].join(" "),f=[`M${r+c},${n}`,`L${r+d-c},${n}`,`A${c},${c} 0 0 1 ${r+d},${n+c}`,`L${r+d},${n+i-c}`,`A${c},${c} 0 0 1 ${r+d-c},${n+i}`,`L${r+c},${n+i}`,`A${c},${c} 0 0 1 ${r},${n+i-c}`,`L${r},${n+c}`,`A${c},${c} 0 0 1 ${r+c},${n}`,"Z"].join(" ");return`${b} ${f}`}const Ja=2,Ka=t=>{const{avatars:o=[],overflowCount:r=0,size:n=40,overlap:d=.3,shape:i="circle",overflowOnClick:u}=t,_=n*d,c=-_+Ja,b=Ba(n,i),g=E.useRef(Ya()).current.toString(),h=Q(Ga.avatarGroup),C=Ha(n,n,n-_,0,n,n,b);return o.length===0?null:s.jsxs("div",{className:h,children:[o.map((w,N,S)=>{const R=N+1>=S.length;if(w.wrapper){const m=w.wrapper;return s.jsx("div",{style:{clipPath:R&&!r?void 0:`url(#${g})`,marginRight:c},children:s.jsx(m,{children:s.jsx(je,{size:n,shape:i,...w})})},Ae(w)+N)}return s.jsx("div",{style:{clipPath:R&&!r?void 0:`url(#${g})`,marginRight:c},children:s.jsx(je,{size:n,shape:i,...w})},Ae(w)+N)}),r>0&&s.jsx("div",{style:{marginRight:c},children:s.jsx(je,{size:n,shape:i,onClick:u,icon:()=>Aa(r),colorScheme:"gray"})}),s.jsx("svg",{width:"0",height:"0",children:s.jsx("clipPath",{id:`${g}`,children:s.jsx("path",{clipPathUnits:"objectBoundingBox",d:C,clipRule:"evenodd"})})})]})},Qa=Object.assign(je,{Group:Ka}),Xa="_wrapper_1ncab_5",er="_badge__container_1ncab_6",tr="_badge__content_1ncab_7",ar="_interactive_1ncab_20",rr="_disabled_1ncab_21",nr="_icon_1ncab_22",J={wrapper:Xa,badge__container:er,badge__content:tr,interactive:ar,disabled:rr,icon:nr,"variant-filled":"_variant-filled_1ncab_101","color-brand":"_color-brand_1ncab_106","color-red":"_color-red_1ncab_110","color-orange":"_color-orange_1ncab_114","color-yellow":"_color-yellow_1ncab_118","color-green":"_color-green_1ncab_122","color-blue":"_color-blue_1ncab_126","color-lightblue":"_color-lightblue_1ncab_130","color-purple":"_color-purple_1ncab_134","color-gray":"_color-gray_1ncab_138","color-contrast":"_color-contrast_1ncab_142","variant-light":"_variant-light_1ncab_148","variant-outline":"_variant-outline_1ncab_220","variant-transparent":"_variant-transparent_1ncab_294","position-top-left":"_position-top-left_1ncab_361","position-top-right":"_position-top-right_1ncab_367","position-bottom-left":"_position-bottom-left_1ncab_373","position-bottom-right":"_position-bottom-right_1ncab_379","position-top-center":"_position-top-center_1ncab_385","position-bottom-center":"_position-bottom-center_1ncab_391","position-middle-left":"_position-middle-left_1ncab_397","position-middle-right":"_position-middle-right_1ncab_403","position-middle-center":"_position-middle-center_1ncab_409","position-top-left-inside":"_position-top-left-inside_1ncab_416","position-top-right-inside":"_position-top-right-inside_1ncab_422","position-bottom-left-inside":"_position-bottom-left-inside_1ncab_428","position-bottom-right-inside":"_position-bottom-right-inside_1ncab_434","position-top-center-inside":"_position-top-center-inside_1ncab_440","position-bottom-center-inside":"_position-bottom-center-inside_1ncab_446","position-middle-left-inside":"_position-middle-left-inside_1ncab_452","position-middle-right-inside":"_position-middle-right-inside_1ncab_458"},or=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),sr=t=>{if(!t)return null;let o=t;for(;o;){const n=window.getComputedStyle(o).backgroundColor;if(!or(n))return n;o=o.parentElement}return null},ir=()=>{const t=E.useRef(null),[o,r]=E.useState(null);return E.useEffect(()=>{if(t.current){const n=sr(t.current);r(n)}},[]),{ref:t,bgColor:o}},lr=E.forwardRef((t,o)=>{const{icon:r,children:n,variant:d="filled",label:i,isHidden:u=!1,colorScheme:_="red",size:c=20,position:b="top-right",positionOffset:f={x:0,y:0},cutoutBackground:g,isDisabled:h,className:C,"data-testid":w="badge",...N}=t,{onClick:S,onPointerDown:R}=N,{ref:m,bgColor:P}=ir(),L=g||P,I=!h&&(!!S||!!R),A=Q(J.badge__container,J[`position-${b}`]),q=Q(C,J.badge__content,J[`color-${_}`],J[`variant-${d}`],{[J.disabled]:h,[J.icon]:!!r,[J.interactive]:I}),D={"--badge-height":`${c}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...L&&{"--badge-cutout-bg":L},...d==="transparent"&&{"--badge-cutout-bg":"transparent"}},Y=(r==null?void 0:r({}))||i,H=V=>{I&&(S==null||S(V))};return s.jsxs("div",{className:J.wrapper,ref:m,"data-testid":w+"-wrapper",children:[n,!u&&s.jsx("span",{className:A,style:D,"data-testid":w+"-container",children:s.jsx("span",{...N,onClick:H,className:q,"data-testid":w+"-content",ref:o,"aria-disabled":h,children:Y})})]})}),cr="_container_chiat_7",dr="_image_chiat_19",ur="_loading_chiat_28",Ie={container:cr,image:dr,loading:ur},_r="_loader_1tevf_1",pr="_spin_1tevf_1",fr="_accent_1tevf_20",gr="_neutral_1tevf_24",br="_positive_1tevf_28",hr="_negative_1tevf_32",yr="_gray_1tevf_36",vr="_special_1tevf_40",mr="_contrast_1tevf_44",Cr="_container_1tevf_48",xr="_overlay_1tevf_56",pe={loader:_r,spin:pr,accent:fr,neutral:gr,positive:br,negative:hr,gray:yr,special:vr,contrast:mr,container:Cr,overlay:xr,"size-16":"_size-16_1tevf_71","size-24":"_size-24_1tevf_75","size-48":"_size-48_1tevf_79","size-64":"_size-64_1tevf_83","size-96":"_size-96_1tevf_87"},lt=E.forwardRef(({size:t=24,variant:o="accent",className:r,"data-testid":n="loader",style:d,...i},u)=>{const _=Q(pe.loader,pe[o],pe[`size-${t}`],r);return s.jsx("svg",{ref:u,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:d,...i,children:s.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),wr=E.forwardRef((t,o)=>{const{loading:r=!1,size:n=24,variant:d="accent",children:i,className:u,style:_,"data-testid":c,...b}=t,f=Q(pe.container,u);return s.jsxs("div",{ref:o,className:f,style:_,"data-testid":c,...b,children:[i,r&&s.jsx("div",{className:pe.overlay,children:s.jsx(lt,{size:n,variant:d,"data-testid":`${c}-spinner`})})]})}),ct=E.forwardRef((t,o)=>t.children?s.jsx(wr,{ref:o,...t}):s.jsx(lt,{ref:o,...t})),Rr=({width:t=48,height:o=48,className:r,"data-testid":n})=>s.jsx("svg",{width:t,height:o,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,"data-testid":n,children:s.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),jr=E.forwardRef((t,o)=>{const{alt:r="",loading:n="lazy",src:d,isLoading:i=!1,className:u,"data-testid":_="image",onError:c,onLoad:b,...f}=t,[g,h]=E.useState("loading"),C=g==="error",w=(i||g==="loading")&&!C,N=g==="loaded"&&!i,S=Q(Ie.image,{[Ie.loading]:w},u),R=E.useCallback(L=>{h("loaded"),b==null||b(L)},[b]),m=E.useCallback(L=>{h("error"),c==null||c(L)},[c]),P={loader:s.jsxs(E.Fragment,{children:[s.jsx(ct,{size:48,variant:"special","data-testid":`${_}-loader`}),s.jsx("img",{alt:r,src:d,onLoad:R,onError:m,style:{display:"none"}})]}),error:s.jsx(Rr,{"data-testid":`${_}-fallback`}),image:s.jsx("img",{ref:o,alt:r,"data-testid":_,loading:n,src:d,className:S})};return E.useEffect(()=>{if(!d){h("error");return}h("loading")},[d]),s.jsxs("div",{className:Ie.container,"data-testid":`${_}-container`,...f,children:[w&&P.loader,C&&P.error,N&&P.image]})}),dt={},ut=E.createContext({locale:dt}),_t=()=>{const t=E.useContext(ut);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Er=()=>{const{locale:t}=_t();return t},Sr={},$r={},kr={},Tr=({locale:t={},theme:o,children:r,className:n})=>{const d=o?{...Object.fromEntries(Object.entries(o))}:{};return s.jsx("div",{"data-testid":"ConfigProvider-component",style:d,className:U.clsx(Sr,$r,kr,n),children:s.jsx(ut.Provider,{value:{locale:t},children:r})})},Or={},Nr="_tag_1llsi_1",Pr="_label_1llsi_16",Lr="_iconWrapper_1llsi_20",Ir="_medium_1llsi_27",Ar="_large_1llsi_33",Mr="_disabled_1llsi_43",zr="_neutral_1llsi_47",Dr="_positive_1llsi_53",Br="_negative_1llsi_59",Fr="_warning_1llsi_65",Vr="_vivid_1llsi_71",Wr="_special_1llsi_77",Zr="_accent_1llsi_84",qr="_blue_1llsi_90",Ur="_lovely_1llsi_96",Gr="_dreamy_1llsi_102",ne={tag:Nr,label:Pr,iconWrapper:Lr,medium:Ir,large:Ar,disabled:Mr,neutral:zr,positive:Dr,negative:Br,warning:Fr,vivid:Vr,special:Wr,accent:Zr,blue:qr,lovely:Ur,dreamy:Gr},Ee={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},Yr=E.forwardRef((t,o)=>{const{className:r,children:n,componentStyle:d="neutral",size:i="medium",disabled:u=!1,showLabel:_=!!n,slotStart:c,slotEnd:b,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":h}=t,{className:C,...w}=f,{className:N,...S}=g;return s.jsxs("div",{className:U.clsx(ne.tag,ne[i],ne[d],{[ne.disabled]:u,[Ee["typography-label-3-regular"]]:i==="medium",[Ee["typography-subtitle-1-semibold"]]:i==="large"},r),"data-testid":h||"tag-component",ref:o,children:[c&&s.jsx("span",{className:U.clsx([ne.iconWrapper,C]),...w,children:c}),_&&s.jsx("span",{className:U.clsx([ne.label]),children:n}),b&&s.jsx("span",{className:U.clsx([ne.iconWrapper,N]),...S,children:b})]})}),Hr="_checkbox_qo5f5_43",Jr="_input_qo5f5_59",Kr="_icon_qo5f5_67",Qr="_container_qo5f5_84",Xr="_error_qo5f5_135",en="_checkboxWrapper_qo5f5_147",tn="_medium_qo5f5_201",an="_large_qo5f5_206",rn="_label_qo5f5_247",K={checkbox:Hr,input:Jr,icon:Kr,container:Qr,error:Xr,checkboxWrapper:en,medium:tn,large:an,label:rn},nn=({width:t=12,height:o=9,className:r="",color:n="currentColor",...d})=>s.jsx("svg",{className:r,width:t,height:o,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:n})}),on=({width:t=12,height:o=2,className:r="",color:n="currentColor",...d})=>s.jsx("svg",{className:r,width:t,height:o,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:n})}),sn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ln=({size:t,isChecked:o,isDisabled:r,indeterminate:n,dataTestId:d})=>{const{width:i,height:u}=sn[t];return s.jsx("div",{className:K.icon,"data-testid":`${d}-icon`,"data-checked":o,"data-disabled":r,"data-indeterminate":n,children:n?s.jsx(on,{width:i,height:u}):s.jsx(nn,{width:i,height:u})})},cn=E.forwardRef((t,o)=>{const{name:r,value:n,size:d="medium",indeterminate:i=!1,loading:u=!1,error:_,disabled:c=!1,containerClassName:b,className:f,containerStyle:g,style:h,children:C,clickableLabel:w=!0,tabIndex:N,onChange:S,"data-testid":R="checkbox"}=t,[m,P]=E.useState(!1),L=n??m,F=c||u,I=!!_,A=L||i,q=U(K.container,K[d],b),D=U(K.checkbox,K[d],{[K.error]:I},f),Y=T=>{F||(P(T.target.checked),S==null||S(T.target.checked,T))},H=T=>{if(T.key==="Enter"&&!F){T.preventDefault();const G=!A;P(G),S==null||S(G)}},V=T=>{w||T.preventDefault()},M=T=>T.stopPropagation();return s.jsxs("label",{className:q,htmlFor:r,style:g,"data-testid":R,"data-clickable-label":w,children:[s.jsx("div",{className:K.checkboxWrapper,children:s.jsxs("div",{tabIndex:N||0,className:D,style:h,onKeyDown:H,"aria-checked":A,"aria-disabled":F,"aria-invalid":I,"aria-describedby":_?`${r}-error`:void 0,"data-testid":`${R}-label`,children:[s.jsx("input",{ref:o,type:"checkbox",id:r,name:r,checked:A,disabled:F,className:K.input,onChange:Y,onClick:M,"aria-checked":A,"aria-invalid":I,"aria-describedby":_?`${r}-error`:void 0,"data-testid":`${R}-input`}),s.jsx(ln,{name:r,size:d,isChecked:A,isDisabled:F,indeterminate:i,dataTestId:R})]})}),C&&s.jsx("span",{"data-testid":`${R}-label-text`,"data-clickable-label":w,className:K.label,onClick:V,children:C})]})}),dn="_typography_zt7xg_1",un="_disabled_zt7xg_8",_n="_primary_zt7xg_13",pn="_secondary_zt7xg_18",fn="_tertiary_zt7xg_23",gn="_accent_zt7xg_28",bn="_positive_zt7xg_38",hn="_negative_zt7xg_48",yn="_warning_zt7xg_58",vn="_special_zt7xg_68",mn="_contrast_zt7xg_78",ie={typography:dn,disabled:un,primary:_n,secondary:pn,tertiary:fn,accent:gn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:bn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:hn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:yn,"warning-secondary":"_warning-secondary_zt7xg_63",special:vn,"special-secondary":"_special-secondary_zt7xg_73",contrast:mn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Cn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},ot=t=>{const o=it.forwardRef(({size:r=3,children:n,className:d,"data-testid":i,as:u,fontWeight:_="semibold",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const h=u||Cn[r],C=U.clsx(ie.typography,Ee[`typography-${t}-${r}-${_}`],ie[b],{[ie.disabled]:c},d);return n?s.jsx(h,{ref:g,className:C,"data-testid":i,...f,children:n}):null});return o.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,o},st=t=>{const o=it.forwardRef(({size:r=3,children:n,className:d,"data-testid":i,as:u="p",fontWeight:_="regular",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const h=u,C=U.clsx(ie.typography,Ee[`typography-${t}-${r}-${_}`],ie[b],{[ie.disabled]:c},d);return n?s.jsx(h,{ref:g,className:C,"data-testid":i,...f,children:n}):null});return o.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,o},xn={Title:ot("title"),Subtitle:ot("subtitle"),Label:st("label"),Paragraph:st("paragraph")};exports.Avatar=Qa;exports.Badge=lr;exports.Button=Ra;exports.Checkbox=cn;exports.ConfigProvider=Tr;exports.Image=jr;exports.Loader=ct;exports.Tag=Yr;exports.Typography=xn;exports.enUS=dt;exports.ruRU=Or;exports.useConfig=_t;exports.useLocale=Er;
34
+ */var at;function ka(){return at||(at=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var i="",u=0;u<arguments.length;u++){var _=arguments[u];_&&(i=d(i,o(_)))}return i}function o(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return a.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var u="";for(var _ in i)n.call(i,_)&&i[_]&&(u=d(u,_));return u}function d(i,u){return u?i?i+" "+u:i+u:i}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Le)),Le.exports}var $a=ka();const Q=zt($a),ja="_avatar_1kyiq_17",Ea="_clickable_1kyiq_41",Ta="_icon_1kyiq_58",Oa="_disabled_1kyiq_63",Na="_loading_1kyiq_68",Pa="_image_1kyiq_74",La="_name_1kyiq_74",G={avatar:ja,clickable:Ea,icon:Ta,disabled:Oa,loading:Na,image:Pa,name:La,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},be={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},rt=99;function Ia(t){return t<rt?`+${t}`:`${rt}+`}function Ae(t){const n=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let o=0;o<n.length;o++){const d=n.charCodeAt(o);a=(a<<5)+a+d}return a>>>0}const Aa=["red","orange","yellow","green","blue","lightblue","purple"];function Ma(t,n=Aa){if(!t)return"gray";const a=Ae(t),o=Math.abs(a)%n.length;return n[o]}const nt=2;function Da(t){if(!t)return"";const n=t.trim().split(/\s+/);return n.length===1?t.slice(0,nt).toUpperCase():n.map(a=>a[0]).slice(0,nt).join("").toUpperCase()}const za={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function lt(t,n){return n==="circle"?t/2:za[t]||12}const Ba={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function Fa(t){return Ba[t]||"typography-subtitle-1-semibold"}const qa="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",Va="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",Wa="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",Za="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",Ua={male:qa,female:Va,org:Za,neutral:Wa},ke=S.forwardRef((t,n)=>{const{style:a,size:o=40,isLoading:d=!1,isDisabled:i=!1,shape:u="circle",variant:_="filled",placeholderType:c="neutral",name:b="",imgSrc:f,imgAlt:g="",icon:h,imgProps:C,colorScheme:w,className:N,"data-testid":$,...k}=t,{onClick:m,onPointerDown:P}=k,B=!i&&!d&&(!!m||!!P),[F,L]=S.useState(!1);S.useEffect(()=>{f&&L(!1)},[f]);const q=f&&!F?"image":h?"icon":b?"name":"placeholder",M=w||q==="name"&&Ma(b)||"gray",Y=Fa(o),H=lt(o,u),U=Q(N,G.avatar,G[`variant-${_}`],G[`color-${M}`],be[Y],{[G.disabled]:i,[G.loading]:d,[G.clickable]:B}),D={"--avatar-size":`${o}px`,"--avatar-border-radius":`${H}px`,...a},j={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:Q(G.icon),children:h==null?void 0:h({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:Q(G.name),title:g,children:Da(b)}),placeholder:()=>s.jsx("img",{...C,"data-testid":"avatar-placeholder",className:G.image,src:Ua[c],alt:g}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...C,className:G.image,src:f,alt:g,onLoad:()=>L(!1),onError:X=>{var ae;L(!0),(ae=C==null?void 0:C.onError)==null||ae.call(C,X)}})},V=X=>{B&&(m==null||m(X))};return s.jsx("div",{ref:n,onClick:V,className:U,style:D,"data-testid":$,"aria-disabled":i||d,children:j[q](null)})}),Ga="_avatarGroup_157g4_1",Ya={avatarGroup:Ga};let Ha=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((n,a)=>(a&=63,a<36?n+=a.toString(36):a<62?n+=(a-26).toString(36).toUpperCase():a>62?n+="-":n+="_",n),"");function Ja(t,n,a,o,d,i,u){const _=Math.min(d,i)/2,c=Math.min(u,_),b=["M0,0",`H${t}`,`V${n}`,"H0","V0","Z"].join(" "),f=[`M${a+c},${o}`,`L${a+d-c},${o}`,`A${c},${c} 0 0 1 ${a+d},${o+c}`,`L${a+d},${o+i-c}`,`A${c},${c} 0 0 1 ${a+d-c},${o+i}`,`L${a+c},${o+i}`,`A${c},${c} 0 0 1 ${a},${o+i-c}`,`L${a},${o+c}`,`A${c},${c} 0 0 1 ${a+c},${o}`,"Z"].join(" ");return`${b} ${f}`}const Ka=3,Qa=t=>{const{avatars:n=[],size:a=40,overlap:o=.3,shape:d="circle",overflowCount:i=0,overflowProps:u}=t,_=a*o,c=-_+Ka,b=lt(a,d),g=S.useRef(Ha()).current.toString(),h=Q(Ya.avatarGroup),C=Ja(a,a,a-_,0,a,a,b);return n.length===0?null:s.jsxs("div",{className:h,children:[n.map((w,N,$)=>{const k=N+1>=$.length;if(w.wrapper){const m=w.wrapper;return s.jsx("div",{style:{clipPath:k&&!i?void 0:`url(#${g})`,marginRight:c},children:s.jsx(m,{children:s.jsx(ke,{size:a,shape:d,...w})})},Ae(w)+N)}return s.jsx("div",{style:{clipPath:k&&!i?void 0:`url(#${g})`,marginRight:c},children:s.jsx(ke,{size:a,shape:d,...w})},Ae(w)+N)}),i>0&&s.jsx("div",{style:{marginRight:c},children:s.jsx(ke,{size:a,shape:d,icon:()=>Ia(i),colorScheme:"gray",variant:"light",...u})}),s.jsx("svg",{width:"0",height:"0",children:s.jsx("clipPath",{id:`${g}`,children:s.jsx("path",{clipPathUnits:"objectBoundingBox",d:C,clipRule:"evenodd"})})})]})},Xa=Object.assign(ke,{Group:Qa}),er="_wrapper_ecbsu_5",tr="_badge__container_ecbsu_6",ar="_badge__content_ecbsu_7",rr="_interactive_ecbsu_20",nr="_disabled_ecbsu_21",or="_icon_ecbsu_22",J={wrapper:er,badge__container:tr,badge__content:ar,interactive:rr,disabled:nr,icon:or,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},sr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),ir=t=>{if(!t)return null;let n=t;for(;n;){const o=window.getComputedStyle(n).backgroundColor;if(!sr(o))return o;n=n.parentElement}return null},lr=()=>{const t=S.useRef(null),[n,a]=S.useState(null);return S.useEffect(()=>{if(t.current){const o=ir(t.current);a(o)}},[]),{ref:t,bgColor:n}},cr=S.forwardRef((t,n)=>{const{icon:a,children:o,variant:d="filled",label:i,isHidden:u=!1,colorScheme:_="red",size:c=20,position:b="top-right",positionOffset:f={x:0,y:0},cutoutBackground:g,isDisabled:h,className:C,"data-testid":w="badge",...N}=t,{onClick:$,onPointerDown:k}=N,{ref:m,bgColor:P}=lr(),I=g||P,F=!h&&(!!$||!!k),L=Q(J.badge__container,J[`position-${b}`]),q=Q(C,J.badge__content,J[`color-${_}`],J[`variant-${d}`],{[J.disabled]:h,[J.icon]:!!a,[J.interactive]:F}),M={"--badge-height":`${c}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...I&&{"--badge-cutout-bg":I},...d==="transparent"&&{"--badge-cutout-bg":"transparent"}},Y=(a==null?void 0:a({}))||i,H=U=>{F&&($==null||$(U))};return s.jsxs("div",{className:J.wrapper,ref:m,"data-testid":w+"-wrapper",children:[o,!u&&s.jsx("span",{className:L,style:M,"data-testid":w+"-container",children:s.jsx("span",{...N,onClick:H,className:q,"data-testid":w+"-content",ref:n,"aria-disabled":h,children:Y})})]})}),dr="_container_chiat_7",ur="_image_chiat_19",_r="_loading_chiat_28",Ie={container:dr,image:ur,loading:_r},pr="_loader_1tevf_1",fr="_spin_1tevf_1",gr="_accent_1tevf_20",br="_neutral_1tevf_24",hr="_positive_1tevf_28",yr="_negative_1tevf_32",mr="_gray_1tevf_36",vr="_special_1tevf_40",Cr="_contrast_1tevf_44",xr="_container_1tevf_48",wr="_overlay_1tevf_56",ge={loader:pr,spin:fr,accent:gr,neutral:br,positive:hr,negative:yr,gray:mr,special:vr,contrast:Cr,container:xr,overlay:wr,"size-16":"_size-16_1tevf_71","size-24":"_size-24_1tevf_75","size-48":"_size-48_1tevf_79","size-64":"_size-64_1tevf_83","size-96":"_size-96_1tevf_87"},ct=S.forwardRef(({size:t=24,variant:n="accent",className:a,"data-testid":o="loader",style:d,...i},u)=>{const _=Q(ge.loader,ge[n],ge[`size-${t}`],a);return s.jsx("svg",{ref:u,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":o,style:d,...i,children:s.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Rr=S.forwardRef((t,n)=>{const{loading:a=!1,size:o=24,variant:d="accent",children:i,className:u,style:_,"data-testid":c,...b}=t,f=Q(ge.container,u);return s.jsxs("div",{ref:n,className:f,style:_,"data-testid":c,...b,children:[i,a&&s.jsx("div",{className:ge.overlay,children:s.jsx(ct,{size:o,variant:d,"data-testid":`${c}-spinner`})})]})}),dt=S.forwardRef((t,n)=>t.children?s.jsx(Rr,{ref:n,...t}):s.jsx(ct,{ref:n,...t})),Sr=({width:t=48,height:n=48,className:a,"data-testid":o})=>s.jsx("svg",{width:t,height:n,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":o,children:s.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),kr=S.forwardRef((t,n)=>{const{alt:a="",loading:o="lazy",src:d,isLoading:i=!1,className:u,"data-testid":_="image",onError:c,onLoad:b,...f}=t,[g,h]=S.useState("loading"),C=g==="error",w=(i||g==="loading")&&!C,N=g==="loaded"&&!i,$=Q(Ie.image,{[Ie.loading]:w},u),k=S.useCallback(I=>{h("loaded"),b==null||b(I)},[b]),m=S.useCallback(I=>{h("error"),c==null||c(I)},[c]),P={loader:s.jsxs(S.Fragment,{children:[s.jsx(dt,{size:48,variant:"special","data-testid":`${_}-loader`}),s.jsx("img",{alt:a,src:d,onLoad:k,onError:m,style:{display:"none"}})]}),error:s.jsx(Sr,{"data-testid":`${_}-fallback`}),image:s.jsx("img",{ref:n,alt:a,"data-testid":_,loading:o,src:d,className:$})};return S.useEffect(()=>{if(!d){h("error");return}h("loading")},[d]),s.jsxs("div",{className:Ie.container,"data-testid":`${_}-container`,...f,children:[w&&P.loader,C&&P.error,N&&P.image]})}),ut={},_t=S.createContext({locale:ut}),pt=()=>{const t=S.useContext(_t);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},$r=()=>{const{locale:t}=pt();return t},jr={},Er={},Tr={},Or=({locale:t={},theme:n,children:a,className:o})=>{const d=n?{...Object.fromEntries(Object.entries(n))}:{};return s.jsx("div",{"data-testid":"ConfigProvider-component",style:d,className:Z.clsx(jr,Er,Tr,o),children:s.jsx(_t.Provider,{value:{locale:t},children:a})})},Nr={},Pr="_tag_1llsi_1",Lr="_label_1llsi_16",Ir="_iconWrapper_1llsi_20",Ar="_medium_1llsi_27",Mr="_large_1llsi_33",Dr="_disabled_1llsi_43",zr="_neutral_1llsi_47",Br="_positive_1llsi_53",Fr="_negative_1llsi_59",qr="_warning_1llsi_65",Vr="_vivid_1llsi_71",Wr="_special_1llsi_77",Zr="_accent_1llsi_84",Ur="_blue_1llsi_90",Gr="_lovely_1llsi_96",Yr="_dreamy_1llsi_102",se={tag:Pr,label:Lr,iconWrapper:Ir,medium:Ar,large:Mr,disabled:Dr,neutral:zr,positive:Br,negative:Fr,warning:qr,vivid:Vr,special:Wr,accent:Zr,blue:Ur,lovely:Gr,dreamy:Yr},Hr=S.forwardRef((t,n)=>{const{className:a,children:o,componentStyle:d="neutral",size:i="medium",disabled:u=!1,showLabel:_=!!o,slotStart:c,slotEnd:b,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":h}=t,{className:C,...w}=f,{className:N,...$}=g;return s.jsxs("div",{className:Z.clsx(se.tag,se[i],se[d],{[se.disabled]:u,[be["typography-label-3-regular"]]:i==="medium",[be["typography-subtitle-1-semibold"]]:i==="large"},a),"data-testid":h||"tag-component",ref:n,children:[c&&s.jsx("span",{className:Z.clsx([se.iconWrapper,C]),...w,children:c}),_&&s.jsx("span",{className:Z.clsx([se.label]),children:o}),b&&s.jsx("span",{className:Z.clsx([se.iconWrapper,N]),...$,children:b})]})}),Jr="_checkbox_qo5f5_43",Kr="_input_qo5f5_59",Qr="_icon_qo5f5_67",Xr="_container_qo5f5_84",en="_error_qo5f5_135",tn="_checkboxWrapper_qo5f5_147",an="_medium_qo5f5_201",rn="_large_qo5f5_206",nn="_label_qo5f5_247",K={checkbox:Jr,input:Kr,icon:Qr,container:Xr,error:en,checkboxWrapper:tn,medium:an,large:rn,label:nn},on=({width:t=12,height:n=9,className:a="",color:o="currentColor",...d})=>s.jsx("svg",{className:a,width:t,height:n,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:o})}),sn=({width:t=12,height:n=2,className:a="",color:o="currentColor",...d})=>s.jsx("svg",{className:a,width:t,height:n,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:o})}),ln={medium:{width:10.83,height:7.5},large:{width:13,height:9}},cn=({size:t,isChecked:n,isDisabled:a,indeterminate:o,dataTestId:d})=>{const{width:i,height:u}=ln[t];return s.jsx("div",{className:K.icon,"data-testid":`${d}-icon`,"data-checked":n,"data-disabled":a,"data-indeterminate":o,children:o?s.jsx(sn,{width:i,height:u}):s.jsx(on,{width:i,height:u})})},dn=S.forwardRef((t,n)=>{const{name:a,value:o,size:d="medium",indeterminate:i=!1,loading:u=!1,error:_,disabled:c=!1,containerClassName:b,className:f,containerStyle:g,style:h,children:C,clickableLabel:w=!0,tabIndex:N,onChange:$,"data-testid":k="checkbox"}=t,[m,P]=S.useState(!1),I=o??m,B=c||u,F=!!_,L=I||i,q=Z(K.container,K[d],b),M=Z(K.checkbox,K[d],{[K.error]:F},f),Y=j=>{B||(P(j.target.checked),$==null||$(j.target.checked,j))},H=j=>{if(j.key==="Enter"&&!B){j.preventDefault();const V=!L;P(V),$==null||$(V)}},U=j=>{w||j.preventDefault()},D=j=>j.stopPropagation();return s.jsxs("label",{className:q,htmlFor:a,style:g,"data-testid":k,"data-clickable-label":w,children:[s.jsx("div",{className:K.checkboxWrapper,children:s.jsxs("div",{tabIndex:N||0,className:M,style:h,onKeyDown:H,"aria-checked":L,"aria-disabled":B,"aria-invalid":F,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${k}-label`,children:[s.jsx("input",{ref:n,type:"checkbox",id:a,name:a,checked:L,disabled:B,className:K.input,onChange:Y,onClick:D,"aria-checked":L,"aria-invalid":F,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${k}-input`}),s.jsx(cn,{name:a,size:d,isChecked:L,isDisabled:B,indeterminate:i,dataTestId:k})]})}),C&&s.jsx("span",{"data-testid":`${k}-label-text`,"data-clickable-label":w,className:K.label,onClick:U,children:C})]})}),un="_typography_zt7xg_1",_n="_disabled_zt7xg_8",pn="_primary_zt7xg_13",fn="_secondary_zt7xg_18",gn="_tertiary_zt7xg_23",bn="_accent_zt7xg_28",hn="_positive_zt7xg_38",yn="_negative_zt7xg_48",mn="_warning_zt7xg_58",vn="_special_zt7xg_68",Cn="_contrast_zt7xg_78",ce={typography:un,disabled:_n,primary:pn,secondary:fn,tertiary:gn,accent:bn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:hn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:yn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:mn,"warning-secondary":"_warning-secondary_zt7xg_63",special:vn,"special-secondary":"_special-secondary_zt7xg_73",contrast:Cn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},xn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},ot=t=>{const n=it.forwardRef(({size:a=3,children:o,className:d,"data-testid":i,as:u,fontWeight:_="semibold",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const h=u||xn[a],C=Z.clsx(ce.typography,be[`typography-${t}-${a}-${_}`],ce[b],{[ce.disabled]:c},d);return o?s.jsx(h,{ref:g,className:C,"data-testid":i,...f,children:o}):null});return n.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,n},st=t=>{const n=it.forwardRef(({size:a=3,children:o,className:d,"data-testid":i,as:u="p",fontWeight:_="regular",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const h=u,C=Z.clsx(ce.typography,be[`typography-${t}-${a}-${_}`],ce[b],{[ce.disabled]:c},d);return o?s.jsx(h,{ref:g,className:C,"data-testid":i,...f,children:o}):null});return n.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,n},wn={Title:ot("title"),Subtitle:ot("subtitle"),Label:st("label"),Paragraph:st("paragraph")};exports.Avatar=Xa;exports.Badge=cr;exports.Button=Sa;exports.Checkbox=dn;exports.ConfigProvider=Or;exports.Image=kr;exports.Loader=dt;exports.Tag=Hr;exports.Typography=wn;exports.enUS=ut;exports.ruRU=Nr;exports.useConfig=pt;exports.useLocale=$r;