skillgrid 0.0.21-dev-39768-inputs.1152485 → 0.0.21-dev-31775-segmented-control-component.1157511

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.
@@ -35,8 +35,6 @@ export interface InputProps {
35
35
  onChange?: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
36
36
  /** Обработчик нажатия клавиши */
37
37
  onKeyUp?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
38
- /** Обработчик нажатия клавиши */
39
- onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
40
38
  /** Максимальная длина */
41
39
  maxLength?: number;
42
40
  /** CSS классы */
@@ -104,8 +102,6 @@ export interface InputWrapperProps extends Omit<HTMLAttributes<HTMLDivElement>,
104
102
  prefix?: React.ReactNode;
105
103
  /** Суффикс (иконка справа) */
106
104
  suffix?: React.ReactNode;
107
- /** Обработчик клика по суффиксу */
108
- onSuffixClick?: () => void;
109
105
  /** Плейсхолдер для поля */
110
106
  placeholder?: string;
111
107
  /** Показывать ли метку */
@@ -1,4 +1,4 @@
1
- import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent } from 'react';
1
+ import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes } from 'react';
2
2
  /**
3
3
  * Размеры для компонента InputBase
4
4
  */
@@ -43,14 +43,10 @@ export interface InputBaseProps {
43
43
  onFocus?: () => void;
44
44
  /** Обработчик потери фокуса */
45
45
  onBlur?: () => void;
46
- /** Обработчик нажатия клавиши */
47
- onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
48
- /** Обработчик клика по суффиксу */
49
- onSuffixClick?: () => void;
50
46
  /** Обработчик изменения значения */
51
- onChange?: (text: string, e?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
47
+ onChange?: (value: string) => void;
52
48
  /** Текущее значение */
53
- value?: string | null;
49
+ value?: string;
54
50
  /** Стили для обертки */
55
51
  wrapperProps?: HTMLAttributes<HTMLDivElement>;
56
52
  /** Стили для метки */
@@ -0,0 +1,5 @@
1
+ import { SegmentedControlProps } from './SegmentedControl.type';
2
+ /**
3
+ * SegmentedControl component
4
+ */
5
+ export declare const SegmentedControl: <T>(props: SegmentedControlProps<T>) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,38 @@
1
+ import { ReactNode } from 'react';
2
+ type Segment<T> = {
3
+ value: T;
4
+ label?: ReactNode;
5
+ };
6
+ export interface SegmentedControlProps<T> {
7
+ className?: string;
8
+ /**
9
+ * Размер компонента
10
+ */
11
+ size?: 's' | 'm' | 'l';
12
+ /**
13
+ * Должен ли компонент растягиваться на всю ширину контейнера
14
+ */
15
+ stretched?: boolean;
16
+ /**
17
+ * Значение
18
+ */
19
+ value?: T;
20
+ /**
21
+ * Массив сегментов
22
+ */
23
+ segments: Array<Segment<T>>;
24
+ /**
25
+ * Значение по умолчанию
26
+ */
27
+ defaultValue?: T;
28
+ /** Режим отображения сегментов
29
+ * * icon - только иконка
30
+ * * text - текстовый лейбл
31
+ */
32
+ mode?: 'icon' | 'label';
33
+ /**
34
+ * Хэндлер изменения активного сегмента
35
+ */
36
+ onChange?: (value: T) => void;
37
+ }
38
+ export {};
@@ -0,0 +1,2 @@
1
+ export { SegmentedControl } from './SegmentedControl';
2
+ export type { SegmentedControlProps } from './SegmentedControl.type';
@@ -1,4 +1,4 @@
1
- import { TextareaHTMLAttributes, ReactNode, ChangeEvent } from 'react';
1
+ import { TextareaHTMLAttributes, ReactNode } from 'react';
2
2
  /**
3
3
  * Размеры для компонента TextArea
4
4
  */
@@ -10,7 +10,7 @@ export interface TextAreaProps {
10
10
  /** Значение поля */
11
11
  value?: string | null;
12
12
  /** Обработчик изменения значения */
13
- onChange?: (text: string, e?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
13
+ onChange?: (value: string | null) => void;
14
14
  /** Плейсхолдер для поля */
15
15
  placeholder?: string;
16
16
  /** Максимальная длина */
@@ -41,10 +41,6 @@ export interface TextAreaProps {
41
41
  onFocus?: () => void;
42
42
  /** Обработчик потери фокуса */
43
43
  onBlur?: () => void;
44
- /** Обработчик очистки поля */
45
- onClear?: () => void;
46
- /** Обработчик нажатия клавиши */
47
- onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
48
44
  /** Дополнительные CSS классы */
49
45
  className?: string;
50
46
  /** Количество строк для textarea */
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, ReactNode, ChangeEvent } from 'react';
1
+ import { InputHTMLAttributes, ReactNode } from 'react';
2
2
  /**
3
3
  * Размеры для компонента TextInput
4
4
  */
@@ -10,7 +10,7 @@ export interface TextInputProps {
10
10
  /** Значение поля */
11
11
  value?: string | null;
12
12
  /** Обработчик изменения значения */
13
- onChange?: (text: string, e?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
13
+ onChange?: (value: string | null) => void;
14
14
  /** Плейсхолдер для поля */
15
15
  placeholder?: string;
16
16
  /** Тип элемента input */
@@ -47,10 +47,6 @@ export interface TextInputProps {
47
47
  onFocus?: () => void;
48
48
  /** Обработчик потери фокуса */
49
49
  onBlur?: () => void;
50
- /** Обработчик клика по суффиксу */
51
- onSuffixClick?: () => void;
52
- /** Обработчик очистки поля */
53
- onClear?: () => void;
54
50
  /** Дополнительные CSS классы */
55
51
  className?: string;
56
52
  /** Включить обрезку текста с многоточием */
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const v=require("react"),H=require("clsx");function Xt(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const vt=Xt(v);function Qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ae={exports:{}},$e={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const h=require("react"),U=require("clsx");function ea(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const wt=ea(h);function ta(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oe={exports:{}},ke={};/**
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 ct;function ea(){if(ct)return $e;ct=1;var t=v,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(_,d,f){var p,g={},h=null,b=null;f!==void 0&&(h=""+f),d.key!==void 0&&(h=""+d.key),d.ref!==void 0&&(b=d.ref);for(p in d)n.call(d,p)&&!s.hasOwnProperty(p)&&(g[p]=d[p]);if(_&&_.defaultProps)for(p in d=_.defaultProps,d)g[p]===void 0&&(g[p]=d[p]);return{$$typeof:r,type:_,key:h,ref:b,props:g,_owner:l.current}}return $e.Fragment=a,$e.jsx=c,$e.jsxs=c,$e}var Ie={};/**
9
+ */var ut;function aa(){if(ut)return ke;ut=1;var t=h,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(_,d,p){var f,g={},b=null,m=null;p!==void 0&&(b=""+p),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(m=d.ref);for(f in d)n.call(d,f)&&!s.hasOwnProperty(f)&&(g[f]=d[f]);if(_&&_.defaultProps)for(f in d=_.defaultProps,d)g[f]===void 0&&(g[f]=d[f]);return{$$typeof:r,type:_,key:b,ref:m,props:g,_owner:i.current}}return ke.Fragment=a,ke.jsx=c,ke.jsxs=c,ke}var Te={};/**
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 dt;function ta(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&function(){var t=v,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w=Symbol.iterator,E="@@iterator";function R(e){if(e===null||typeof e!="object")return null;var i=w&&e[w]||e[E];return typeof i=="function"?i:null}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var i=arguments.length,u=new Array(i>1?i-1:0),x=1;x<i;x++)u[x-1]=arguments[x];$("error",e,u)}}function $(e,i,u){{var x=C.ReactDebugCurrentFrame,I=x.getStackAddendum();I!==""&&(i+="%s",u=u.concat([I]));var k=u.map(function(L){return String(L)});k.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,k)}}var T=!1,N=!1,A=!1,D=!1,O=!1,U;U=Symbol.for("react.module.reference");function G(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||O||e===l||e===f||e===p||D||e===b||T||N||A||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===U||e.getModuleId!==void 0))}function z(e,i,u){var x=e.displayName;if(x)return x;var I=i.displayName||i.name||"";return I!==""?u+"("+I+")":u}function P(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case a:return"Portal";case s:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var i=e;return P(i)+".Consumer";case c:var u=e;return P(u._context)+".Provider";case d:return z(e,e.render,"ForwardRef");case g:var x=e.displayName||null;return x!==null?x:m(e.type)||"Memo";case h:{var I=e,k=I._payload,L=I._init;try{return m(L(k))}catch{return null}}}return null}var j=Object.assign,W=0,te,Y,Q,ae,J,re,ne;function ue(){}ue.__reactDisabledLog=!0;function xe(){{if(W===0){te=console.log,Y=console.info,Q=console.warn,ae=console.error,J=console.group,re=console.groupCollapsed,ne=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ue,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function ie(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:te}),info:j({},e,{value:Y}),warn:j({},e,{value:Q}),error:j({},e,{value:ae}),group:j({},e,{value:J}),groupCollapsed:j({},e,{value:re}),groupEnd:j({},e,{value:ne})})}W<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=C.ReactCurrentDispatcher,_e;function ce(e,i,u){{if(_e===void 0)try{throw Error()}catch(I){var x=I.stack.trim().match(/\n( *(at )?)/);_e=x&&x[1]||""}return`
18
- `+_e+e}}var ve=!1,pe;{var Ce=typeof WeakMap=="function"?WeakMap:Map;pe=new Ce}function ke(e,i){if(!e||ve)return"";{var u=pe.get(e);if(u!==void 0)return u}var x;ve=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var k;k=me.current,me.current=null,xe();try{if(i){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(ee){x=ee}Reflect.construct(e,[],L)}else{try{L.call()}catch(ee){x=ee}e.call(L.prototype)}}else{try{throw Error()}catch(ee){x=ee}e()}}catch(ee){if(ee&&x&&typeof ee.stack=="string"){for(var S=ee.stack.split(`
19
- `),K=x.stack.split(`
20
- `),B=S.length-1,V=K.length-1;B>=1&&V>=0&&S[B]!==K[V];)V--;for(;B>=1&&V>=0;B--,V--)if(S[B]!==K[V]){if(B!==1||V!==1)do if(B--,V--,V<0||S[B]!==K[V]){var se=`
21
- `+S[B].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),typeof e=="function"&&pe.set(e,se),se}while(B>=1&&V>=0);break}}}finally{ve=!1,me.current=k,ie(),Error.prepareStackTrace=I}var Le=e?e.displayName||e.name:"",we=Le?ce(Le):"";return typeof e=="function"&&pe.set(e,we),we}function Pe(e,i,u){return ke(e,!1)}function Ue(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function Z(e,i,u){if(e==null)return"";if(typeof e=="function")return ke(e,Ue(e));if(typeof e=="string")return ce(e);switch(e){case f:return ce("Suspense");case p:return ce("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Pe(e.render);case g:return Z(e.type,i,u);case h:{var x=e,I=x._payload,k=x._init;try{return Z(k(I),i,u)}catch{}}}return""}var q=Object.prototype.hasOwnProperty,de={},Je=C.ReactDebugCurrentFrame;function Te(e){if(e){var i=e._owner,u=Z(e.type,e._source,i?i.type:null);Je.setExtraStackFrame(u)}else Je.setExtraStackFrame(null)}function It(e,i,u,x,I){{var k=Function.call.bind(q);for(var L in e)if(k(e,L)){var S=void 0;try{if(typeof e[L]!="function"){var K=Error((x||"React class")+": "+u+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw K.name="Invariant Violation",K}S=e[L](i,L,x,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(B){S=B}S&&!(S instanceof Error)&&(Te(I),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",x||"React class",u,L,typeof S),Te(null)),S instanceof Error&&!(S.message in de)&&(de[S.message]=!0,Te(I),y("Failed %s type: %s",u,S.message),Te(null))}}}var jt=Array.isArray;function Be(e){return jt(e)}function kt(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function Tt(e){try{return Ke(e),!1}catch{return!0}}function Ke(e){return""+e}function Xe(e){if(Tt(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kt(e)),Ke(e)}var Qe=C.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},et,tt;function Nt(e){if(q.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function Dt(e){if(q.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function Ot(e,i){typeof e.ref=="string"&&Qe.current}function Pt(e,i){{var u=function(){et||(et=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Ut(e,i){{var u=function(){tt||(tt=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Bt=function(e,i,u,x,I,k,L){var S={$$typeof:r,type:e,key:i,ref:u,props:L,_owner:k};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function Ft(e,i,u,x,I){{var k,L={},S=null,K=null;u!==void 0&&(Xe(u),S=""+u),Dt(i)&&(Xe(i.key),S=""+i.key),Nt(i)&&(K=i.ref,Ot(i,I));for(k in i)q.call(i,k)&&!At.hasOwnProperty(k)&&(L[k]=i[k]);if(e&&e.defaultProps){var B=e.defaultProps;for(k in B)L[k]===void 0&&(L[k]=B[k])}if(S||K){var V=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&Pt(L,V),K&&Ut(L,V)}return Bt(e,S,K,I,x,Qe.current,L)}}var Fe=C.ReactCurrentOwner,at=C.ReactDebugCurrentFrame;function Ee(e){if(e){var i=e._owner,u=Z(e.type,e._source,i?i.type:null);at.setExtraStackFrame(u)}else at.setExtraStackFrame(null)}var ze;ze=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function rt(){{if(Fe.current){var e=m(Fe.current.type);if(e)return`
17
+ */var _t;function ra(){return _t||(_t=1,process.env.NODE_ENV!=="production"&&function(){var t=h,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,E="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var l=y&&e[y]||e[E];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){{for(var l=arguments.length,u=new Array(l>1?l-1:0),v=1;v<l;v++)u[v-1]=arguments[v];S("error",e,u)}}function S(e,l,u){{var v=w.ReactDebugCurrentFrame,j=v.getStackAddendum();j!==""&&(l+="%s",u=u.concat([j]));var N=u.map(function(I){return String(I)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,N)}}var $=!1,A=!1,D=!1,T=!1,F=!1,O;O=Symbol.for("react.module.reference");function V(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||F||e===i||e===p||e===f||T||e===m||$||A||D||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===O||e.getModuleId!==void 0))}function C(e,l,u){var v=e.displayName;if(v)return v;var j=l.displayName||l.name||"";return j!==""?u+"("+j+")":u}function W(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&x("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 a:return"Portal";case s:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var l=e;return W(l)+".Consumer";case c:var u=e;return W(u._context)+".Provider";case d:return C(e,e.render,"ForwardRef");case g:var v=e.displayName||null;return v!==null?v:P(e.type)||"Memo";case b:{var j=e,N=j._payload,I=j._init;try{return P(I(N))}catch{return null}}}return null}var k=Object.assign,G=0,Z,Q,q,te,ae,re,me;function ne(){}ne.__reactDisabledLog=!0;function ye(){{if(G===0){Z=console.log,Q=console.info,q=console.warn,te=console.error,ae=console.group,re=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function Se(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:Z}),info:k({},e,{value:Q}),warn:k({},e,{value:q}),error:k({},e,{value:te}),group:k({},e,{value:ae}),groupCollapsed:k({},e,{value:re}),groupEnd:k({},e,{value:me})})}G<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=w.ReactCurrentDispatcher,ue;function le(e,l,u){{if(ue===void 0)try{throw Error()}catch(j){var v=j.stack.trim().match(/\n( *(at )?)/);ue=v&&v[1]||""}return`
18
+ `+ue+e}}var _e=!1,ce;{var ve=typeof WeakMap=="function"?WeakMap:Map;ce=new ve}function K(e,l){if(!e||_e)return"";{var u=ce.get(e);if(u!==void 0)return u}var v;_e=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var N;N=Ee.current,Ee.current=null,ye();try{if(l){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(X){v=X}Reflect.construct(e,[],I)}else{try{I.call()}catch(X){v=X}e.call(I.prototype)}}else{try{throw Error()}catch(X){v=X}e()}}catch(X){if(X&&v&&typeof X.stack=="string"){for(var M=X.stack.split(`
19
+ `),Y=v.stack.split(`
20
+ `),z=M.length-1,H=Y.length-1;z>=1&&H>=0&&M[z]!==Y[H];)H--;for(;z>=1&&H>=0;z--,H--)if(M[z]!==Y[H]){if(z!==1||H!==1)do if(z--,H--,H<0||M[z]!==Y[H]){var se=`
21
+ `+M[z].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),typeof e=="function"&&ce.set(e,se),se}while(z>=1&&H>=0);break}}}finally{_e=!1,Ee.current=N,Se(),Error.prepareStackTrace=j}var Me=e?e.displayName||e.name:"",xe=Me?le(Me):"";return typeof e=="function"&&ce.set(e,xe),xe}function ee(e,l,u){return K(e,!1)}function de(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Ne(e,l,u){if(e==null)return"";if(typeof e=="function")return K(e,de(e));if(typeof e=="string")return le(e);switch(e){case p:return le("Suspense");case f:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ee(e.render);case g:return Ne(e.type,l,u);case b:{var v=e,j=v._payload,N=v._init;try{return Ne(N(j),l,u)}catch{}}}return""}var je=Object.prototype.hasOwnProperty,Ke={},Xe=w.ReactDebugCurrentFrame;function De(e){if(e){var l=e._owner,u=Ne(e.type,e._source,l?l.type:null);Xe.setExtraStackFrame(u)}else Xe.setExtraStackFrame(null)}function kt(e,l,u,v,j){{var N=Function.call.bind(je);for(var I in e)if(N(e,I)){var M=void 0;try{if(typeof e[I]!="function"){var Y=Error((v||"React class")+": "+u+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}M=e[I](l,I,v,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){M=z}M&&!(M instanceof Error)&&(De(j),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",u,I,typeof M),De(null)),M instanceof Error&&!(M.message in Ke)&&(Ke[M.message]=!0,De(j),x("Failed %s type: %s",u,M.message),De(null))}}}var Tt=Array.isArray;function ze(e){return Tt(e)}function At(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,u=l&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function Nt(e){try{return Qe(e),!1}catch{return!0}}function Qe(e){return""+e}function et(e){if(Nt(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(e)),Qe(e)}var tt=w.ReactCurrentOwner,Dt={key:!0,ref:!0,__self:!0,__source:!0},at,rt;function Ot(e){if(je.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(je.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Ut(e,l){typeof e.ref=="string"&&tt.current}function zt(e,l){{var u=function(){at||(at=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Bt(e,l){{var u=function(){rt||(rt=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Ft=function(e,l,u,v,j,N,I){var M={$$typeof:r,type:e,key:l,ref:u,props:I,_owner:N};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function Vt(e,l,u,v,j){{var N,I={},M=null,Y=null;u!==void 0&&(et(u),M=""+u),Pt(l)&&(et(l.key),M=""+l.key),Ot(l)&&(Y=l.ref,Ut(l,j));for(N in l)je.call(l,N)&&!Dt.hasOwnProperty(N)&&(I[N]=l[N]);if(e&&e.defaultProps){var z=e.defaultProps;for(N in z)I[N]===void 0&&(I[N]=z[N])}if(M||Y){var H=typeof e=="function"?e.displayName||e.name||"Unknown":e;M&&zt(I,H),Y&&Bt(I,H)}return Ft(e,M,Y,j,v,tt.current,I)}}var Be=w.ReactCurrentOwner,nt=w.ReactDebugCurrentFrame;function Le(e){if(e){var l=e._owner,u=Ne(e.type,e._source,l?l.type:null);nt.setExtraStackFrame(u)}else nt.setExtraStackFrame(null)}var Fe;Fe=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(Be.current){var e=P(Be.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function zt(e){return""}var nt={};function Vt(e){{var i=rt();if(!i){var u=typeof e=="string"?e:e.displayName||e.name;u&&(i=`
23
+ Check the render method of \``+e+"`."}return""}}function Wt(e){return""}var ot={};function Ht(e){{var l=st();if(!l){var u=typeof e=="string"?e:e.displayName||e.name;u&&(l=`
24
24
 
25
- Check the top-level render call using <`+u+">.")}return i}}function st(e,i){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Vt(i);if(nt[u])return;nt[u]=!0;var x="";e&&e._owner&&e._owner!==Fe.current&&(x=" It was passed a child from "+m(e._owner.type)+"."),Ee(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,x),Ee(null)}}function ot(e,i){{if(typeof e!="object")return;if(Be(e))for(var u=0;u<e.length;u++){var x=e[u];Ve(x)&&st(x,i)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var I=R(e);if(typeof I=="function"&&I!==e.entries)for(var k=I.call(e),L;!(L=k.next()).done;)Ve(L.value)&&st(L.value,i)}}}function Wt(e){{var i=e.type;if(i==null||typeof i=="string")return;var u;if(typeof i=="function")u=i.propTypes;else if(typeof i=="object"&&(i.$$typeof===d||i.$$typeof===g))u=i.propTypes;else return;if(u){var x=m(i);It(u,e.props,"prop",x,e)}else if(i.PropTypes!==void 0&&!ze){ze=!0;var I=m(i);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ht(e){{for(var i=Object.keys(e.props),u=0;u<i.length;u++){var x=i[u];if(x!=="children"&&x!=="key"){Ee(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Ee(null);break}}e.ref!==null&&(Ee(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),Ee(null))}}var lt={};function it(e,i,u,x,I,k){{var L=G(e);if(!L){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var K=zt();K?S+=K:S+=rt();var B;e===null?B="null":Be(e)?B="array":e!==void 0&&e.$$typeof===r?(B="<"+(m(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):B=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",B,S)}var V=Ft(e,i,u,I,k);if(V==null)return V;if(L){var se=i.children;if(se!==void 0)if(x)if(Be(se)){for(var Le=0;Le<se.length;Le++)ot(se[Le],e);Object.freeze&&Object.freeze(se)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ot(se,e)}if(q.call(i,"key")){var we=m(e),ee=Object.keys(i).filter(function(Kt){return Kt!=="key"}),We=ee.length>0?"{key: someKey, "+ee.join(": ..., ")+": ...}":"{key: someKey}";if(!lt[we+We]){var Jt=ee.length>0?"{"+ee.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+u+">.")}return l}}function it(e,l){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Ht(l);if(ot[u])return;ot[u]=!0;var v="";e&&e._owner&&e._owner!==Be.current&&(v=" It was passed a child from "+P(e._owner.type)+"."),Le(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,v),Le(null)}}function lt(e,l){{if(typeof e!="object")return;if(ze(e))for(var u=0;u<e.length;u++){var v=e[u];Ve(v)&&it(v,l)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var j=L(e);if(typeof j=="function"&&j!==e.entries)for(var N=j.call(e),I;!(I=N.next()).done;)Ve(I.value)&&it(I.value,l)}}}function Gt(e){{var l=e.type;if(l==null||typeof l=="string")return;var u;if(typeof l=="function")u=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===d||l.$$typeof===g))u=l.propTypes;else return;if(u){var v=P(l);kt(u,e.props,"prop",v,e)}else if(l.PropTypes!==void 0&&!Fe){Fe=!0;var j=P(l);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(e){{for(var l=Object.keys(e.props),u=0;u<l.length;u++){var v=l[u];if(v!=="children"&&v!=="key"){Le(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),Le(null);break}}e.ref!==null&&(Le(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),Le(null))}}var ct={};function dt(e,l,u,v,j,N){{var I=V(e);if(!I){var M="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(M+=" 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 Y=Wt();Y?M+=Y:M+=st();var z;e===null?z="null":ze(e)?z="array":e!==void 0&&e.$$typeof===r?(z="<"+(P(e.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):z=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,M)}var H=Vt(e,l,u,j,N);if(H==null)return H;if(I){var se=l.children;if(se!==void 0)if(v)if(ze(se)){for(var Me=0;Me<se.length;Me++)lt(se[Me],e);Object.freeze&&Object.freeze(se)}else x("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 lt(se,e)}if(je.call(l,"key")){var xe=P(e),X=Object.keys(l).filter(function(Qt){return Qt!=="key"}),We=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!ct[xe+We]){var Xt=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";x(`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} />`,We,we,Jt,we),lt[we+We]=!0}}return e===n?Ht(V):Wt(V),V}}function Gt(e,i,u){return it(e,i,u,!0)}function Zt(e,i,u){return it(e,i,u,!1)}var qt=Zt,Yt=Gt;Ie.Fragment=n,Ie.jsx=qt,Ie.jsxs=Yt}()),Ie}var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV==="production"?Ae.exports=ea():Ae.exports=ta()),Ae.exports}var o=aa();const ra=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",sa="_button_1abee_213",oa="_disabled_1abee_237",la="_loading_1abee_237",ia="_neutral_1abee_259",ca="_accent_1abee_263",da="_positive_1abee_267",ua="_negative_1abee_271",_a="_contrast_1abee_275",pa="_special_1abee_279",fa="_primary_1abee_284",ga="_secondary_1abee_285",ba="_tertiary_1abee_286",ha="_label_1abee_321",ya="_rightGroup_1abee_333",ma="_iconOnly_1abee_349",va="_large_1abee_357",xa="_medium_1abee_361",Ca="_small_1abee_365",wa="_spaceBetween_1abee_370",Sa="_stretched_1abee_384",Ea="_icon_1abee_349",La="_badge_1abee_705",Ma="_badgeMedium_1abee_721",Ra="_circular_1abee_738",$a="_badgeSmall_1abee_743",Ia="_badgeExtraSmall_1abee_765",ja="_withSubcaption_1abee_784",ka="_subcaption_1abee_797",Ta="_loader_1abee_804",Aa="_spin_1abee_1",Na="_l_1abee_237",Da="_m_1abee_361",Oa="_s_1abee_279",Pa="_xs_1abee_869",F={button:sa,disabled:oa,loading:la,neutral:ia,accent:ca,positive:da,negative:ua,contrast:_a,special:pa,primary:fa,secondary:ga,tertiary:ba,label:ha,rightGroup:ya,iconOnly:ma,large:va,medium:xa,small:Ca,spaceBetween:wa,stretched:Sa,icon:Ea,badge:La,badgeMedium:Ma,circular:Ra,badgeSmall:$a,badgeExtraSmall:Ia,withSubcaption:ja,subcaption:ka,loader:Ta,spin:Aa,l:Na,m:Da,s:Oa,xs:Pa},_t=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:n,icon:l,children:s,postfix:c,showSubcaption:_,subcaption:d,size:f})=>{if(t)return o.jsx("span",{className:F.loader,"data-testid":"button-loader","aria-hidden":"true"});const p=n==="extra-small",g=parseInt(String(a),10),h=!isNaN(g)&&g>=0&&g<=9;return o.jsxs(o.Fragment,{children:[r&&(a||p)&&o.jsx("span",{"data-testid":"button-badge",className:H.clsx(F.badge,F[`badge${p?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[F.circular]:h&&!p}),children:!p&&a}),_&&f!=="s"&&f!=="xs"?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:F.label,children:s}),o.jsx("span",{"data-testid":"button-subcaption",className:F.subcaption,children:d})]}):s?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:F.label,children:s}),o.jsxs("div",{"data-testid":"button-right-group",className:F.rightGroup,children:[l&&o.jsx("span",{"data-testid":"button-icon",className:F.icon,children:l}),c&&o.jsx("span",{"data-testid":"button-postfix",className:F.postfix,children:c})]})]}):o.jsx("span",{"data-testid":"button-icon",className:F.icon,children:l})]})},Ua=v.forwardRef((t,r)=>{const{mode:a="primary",size:n="m",buttonStyle:l="neutral",loading:s=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:f,showSubcaption:p=!1,subcaption:g,stretched:h=!1,spaceBetween:b=!1,icon:w,postfix:E,className:R,children:C}=t,y=c,$=s,T=!y&&!$,N=!!w&&!C,A=H.clsx(F.button,F[n],F[a],F[l],{[F.disabled]:y,[F.loading]:$,[F.stretched]:h,[F.spaceBetween]:b&&h,[F.withSubcaption]:p&&g&&n!=="s"&&n!=="xs",[F.iconOnly]:N},R),D={isLoading:$,showBadge:_,badgeValue:f,badgeSize:d,icon:w,children:C,postfix:E,showSubcaption:p,subcaption:g,size:n};if(ra(t)){const{href:O,onClick:U,mode:G,size:z,buttonStyle:P,loading:m,disabled:j,showBadge:W,badgeSize:te,badgeValue:Y,showSubcaption:Q,subcaption:ae,stretched:J,spaceBetween:re,icon:ne,postfix:ue,className:xe,tabIndex:ie,children:me,"data-testid":_e,style:ce,...ve}=t,pe=Ce=>{T&&U&&U(Ce)};return o.jsx("a",{ref:r,className:A,href:T?O:void 0,tabIndex:t.tabIndex,onClick:pe,"data-testid":_e,"aria-disabled":y||$,style:ce,...ve,children:o.jsx(_t,{...D})})}if(na(t)){const{type:O="button",onClick:U,mode:G,size:z,buttonStyle:P,loading:m,disabled:j,showBadge:W,badgeSize:te,badgeValue:Y,showSubcaption:Q,subcaption:ae,stretched:J,spaceBetween:re,icon:ne,postfix:ue,className:xe,tabIndex:ie,children:me,"data-testid":_e,style:ce,...ve}=t,pe=Ce=>{T&&U&&U(Ce)};return o.jsx("button",{ref:r,type:O,className:A,disabled:y,tabIndex:t.tabIndex,onClick:pe,"data-testid":_e,"aria-disabled":y||$,style:ce,...ve,children:o.jsx(_t,{...D})})}return null});var He={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,We,xe,Xt,xe),ct[xe+We]=!0}}return e===n?Zt(H):Gt(H),H}}function qt(e,l,u){return dt(e,l,u,!0)}function Yt(e,l,u){return dt(e,l,u,!1)}var Jt=Yt,Kt=qt;Te.Fragment=n,Te.jsx=Jt,Te.jsxs=Kt}()),Te}var ft;function na(){return ft||(ft=1,process.env.NODE_ENV==="production"?Oe.exports=aa():Oe.exports=ra()),Oe.exports}var o=na();const sa=t=>t.as==="a",oa=t=>t.as===void 0||t.as==="button",ia="_button_1abee_213",la="_disabled_1abee_237",ca="_loading_1abee_237",da="_neutral_1abee_259",ua="_accent_1abee_263",_a="_positive_1abee_267",fa="_negative_1abee_271",pa="_contrast_1abee_275",ga="_special_1abee_279",ha="_primary_1abee_284",ba="_secondary_1abee_285",ma="_tertiary_1abee_286",ya="_label_1abee_321",va="_rightGroup_1abee_333",xa="_iconOnly_1abee_349",Ca="_large_1abee_357",wa="_medium_1abee_361",Sa="_small_1abee_365",Ea="_spaceBetween_1abee_370",La="_stretched_1abee_384",Ma="_icon_1abee_349",$a="_badge_1abee_705",Ia="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ja="_badgeSmall_1abee_743",ka="_badgeExtraSmall_1abee_765",Ta="_withSubcaption_1abee_784",Aa="_subcaption_1abee_797",Na="_loader_1abee_804",Da="_spin_1abee_1",Oa="_l_1abee_237",Pa="_m_1abee_361",Ua="_s_1abee_279",za="_xs_1abee_869",B={button:ia,disabled:la,loading:ca,neutral:da,accent:ua,positive:_a,negative:fa,contrast:pa,special:ga,primary:ha,secondary:ba,tertiary:ma,label:ya,rightGroup:va,iconOnly:xa,large:Ca,medium:wa,small:Sa,spaceBetween:Ea,stretched:La,icon:Ma,badge:$a,badgeMedium:Ia,circular:Ra,badgeSmall:ja,badgeExtraSmall:ka,withSubcaption:Ta,subcaption:Aa,loader:Na,spin:Da,l:Oa,m:Pa,s:Ua,xs:za},pt=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:n,icon:i,children:s,postfix:c,showSubcaption:_,subcaption:d,size:p})=>{if(t)return o.jsx("span",{className:B.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=n==="extra-small",g=parseInt(String(a),10),b=!isNaN(g)&&g>=0&&g<=9;return o.jsxs(o.Fragment,{children:[r&&(a||f)&&o.jsx("span",{"data-testid":"button-badge",className:U.clsx(B.badge,B[`badge${f?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[B.circular]:b&&!f}),children:!f&&a}),_&&p!=="s"&&p!=="xs"?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),o.jsx("span",{"data-testid":"button-subcaption",className:B.subcaption,children:d})]}):s?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),o.jsxs("div",{"data-testid":"button-right-group",className:B.rightGroup,children:[i&&o.jsx("span",{"data-testid":"button-icon",className:B.icon,children:i}),c&&o.jsx("span",{"data-testid":"button-postfix",className:B.postfix,children:c})]})]}):o.jsx("span",{"data-testid":"button-icon",className:B.icon,children:i})]})},Ba=h.forwardRef((t,r)=>{const{mode:a="primary",size:n="m",buttonStyle:i="neutral",loading:s=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:p,showSubcaption:f=!1,subcaption:g,stretched:b=!1,spaceBetween:m=!1,icon:y,postfix:E,className:L,children:w}=t,x=c,S=s,$=!x&&!S,A=!!y&&!w,D=U.clsx(B.button,B[n],B[a],B[i],{[B.disabled]:x,[B.loading]:S,[B.stretched]:b,[B.spaceBetween]:m&&b,[B.withSubcaption]:f&&g&&n!=="s"&&n!=="xs",[B.iconOnly]:A},L),T={isLoading:S,showBadge:_,badgeValue:p,badgeSize:d,icon:y,children:w,postfix:E,showSubcaption:f,subcaption:g,size:n};if(sa(t)){const{href:F,onClick:O,mode:V,size:C,buttonStyle:W,loading:P,disabled:k,showBadge:G,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:Se,children:Ee,"data-testid":ue,style:le,..._e}=t,ce=ve=>{$&&O&&O(ve)};return o.jsx("a",{ref:r,className:D,href:$?F:void 0,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":x||S,style:le,..._e,children:o.jsx(pt,{...T})})}if(oa(t)){const{type:F="button",onClick:O,mode:V,size:C,buttonStyle:W,loading:P,disabled:k,showBadge:G,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:Se,children:Ee,"data-testid":ue,style:le,..._e}=t,ce=ve=>{$&&O&&O(ve)};return o.jsx("button",{ref:r,type:F,className:D,disabled:x,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":x||S,style:le,..._e,children:o.jsx(pt,{...T})})}return null});var He={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 pt;function Ba(){return pt||(pt=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",c=0;c<arguments.length;c++){var _=arguments[c];_&&(s=l(s,n(_)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var _ in s)r.call(s,_)&&s[_]&&(c=l(c,_));return c}function l(s,c){return c?s?s+" "+c:s+c:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(He)),He.exports}var Fa=Ba();const he=Qt(Fa),za="_avatar_1ob17_4",Va="_clickable_1ob17_23",Wa="_icon_1ob17_40",Ha="_disabled_1ob17_45",Ga="_image_1ob17_51",Za="_name_1ob17_51",qa="_circle_1ob17_160",Ya="_square_1ob17_164",oe={avatar:za,clickable:Va,icon:Wa,disabled:Ha,image:Ga,name:Za,"size-208":"_size-208_1ob17_104","size-96":"_size-96_1ob17_111","size-84":"_size-84_1ob17_118","size-56":"_size-56_1ob17_125","size-48":"_size-48_1ob17_132","size-40":"_size-40_1ob17_139","size-32":"_size-32_1ob17_146","size-24":"_size-24_1ob17_153",circle:qa,square:Ya,"variant-filled":"_variant-filled_1ob17_185","color-brand":"_color-brand_1ob17_190","color-red":"_color-red_1ob17_194","color-orange":"_color-orange_1ob17_198","color-yellow":"_color-yellow_1ob17_202","color-green":"_color-green_1ob17_206","color-blue":"_color-blue_1ob17_210","color-lightblue":"_color-lightblue_1ob17_214","color-purple":"_color-purple_1ob17_218","color-gray":"_color-gray_1ob17_222","color-contrast":"_color-contrast_1ob17_226","variant-light":"_variant-light_1ob17_232","variant-outline":"_variant-outline_1ob17_304"},ft=99;function Ja(t){return t<ft?`+${t}`:`${ft}+`}function xt(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let n=0;n<r.length;n++){const l=r.charCodeAt(n);a=(a<<5)+a+l}return a>>>0}const Ka=["red","orange","yellow","green","blue","lightblue","purple"];function Xa(t,r=Ka){const a=xt(t),n=Math.abs(a)%r.length;return r[n]}const gt=2;function Qa(t){const r=t.split(" ");return r.length===1?t.slice(0,gt).toUpperCase():r.map(a=>a[0]).slice(0,gt).join("").toUpperCase()}function er(t,r){return r==="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 tr="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",ar="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",rr="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",nr="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",sr={male:tr,female:ar,org:nr,neutral:rr},Ye=v.forwardRef((t,r)=>{const{style:a,size:n=40,isLoading:l=!1,isDisabled:s=!1,shape:c="circle",variant:_="light",placeholderType:d="neutral",name:f="",imgSrc:p,imgAlt:g="",icon:h,imgProps:b,colorScheme:w,"data-testid":E,...R}=t,{onClick:C,onPointerDown:y}=R,T=!s&&!l&&(!!C||!!y),[N,A]=v.useState(!p),D=p&&!N?"image":h?"icon":f?"name":"placeholder",O=D==="name"?w||Xa(f):w||"gray",U=he(oe.avatar,oe[c],oe[`size-${n}`],oe[`variant-${_}`],oe[`color-${O}`],{[oe.disabled]:s,[oe.loading]:l,[oe.clickable]:T}),G={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:he(oe.icon),children:h==null?void 0:h({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:he(oe.name),title:g,children:Qa(f)}),placeholder:()=>o.jsx("img",{...b,"data-testid":"avatar-placeholder",className:oe.image,src:sr[d],alt:g}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...b,className:oe.image,src:p,alt:g,onLoad:()=>A(!1),onError:P=>{var m;A(!0),(m=b==null?void 0:b.onError)==null||m.call(b,P)}})},z=P=>{T&&(C==null||C(P))};return o.jsx("div",{ref:r,onClick:z,className:U,style:a,"data-testid":E,"aria-disabled":s||l,children:G[D](null)})}),or="_avatarGroup_157g4_1",lr={avatarGroup:or};let ir=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function cr(t,r,a,n,l,s,c){const _=Math.min(l,s)/2,d=Math.min(c,_),f=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),p=[`M${a+d},${n}`,`L${a+l-d},${n}`,`A${d},${d} 0 0 1 ${a+l},${n+d}`,`L${a+l},${n+s-d}`,`A${d},${d} 0 0 1 ${a+l-d},${n+s}`,`L${a+d},${n+s}`,`A${d},${d} 0 0 1 ${a},${n+s-d}`,`L${a},${n+d}`,`A${d},${d} 0 0 1 ${a+d},${n}`,"Z"].join(" ");return`${f} ${p}`}const dr=2,ur=t=>{const{avatars:r=[],overflowCount:a=0,size:n=40,overlap:l=.3,shape:s="circle",overflowOnClick:c}=t,_=n*l,d=-_+dr,f=er(n,s),g=v.useRef(ir()).current.toString(),h=he(lr.avatarGroup),b=cr(n,n,n-_,0,n,n,f);return r.length===0?null:o.jsxs("div",{className:h,children:[r.map((w,E,R)=>{const C=E+1>=R.length;return o.jsx("div",{style:{clipPath:C&&!a?void 0:`url(#${g})`,marginRight:d},children:o.jsx(Ye,{size:n,shape:s,...w})},xt(w)+E)}),a>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(Ye,{size:n,shape:s,onClick:c,icon:()=>Ja(a),colorScheme:"gray"})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${g}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:b,clipRule:"evenodd"})})})]})},_r=Object.assign(Ye,{Group:ur}),pr="_wrapper_1ncab_5",fr="_badge__container_1ncab_6",gr="_badge__content_1ncab_7",br="_interactive_1ncab_20",hr="_disabled_1ncab_21",yr="_icon_1ncab_22",fe={wrapper:pr,badge__container:fr,badge__content:gr,interactive:br,disabled:hr,icon:yr,"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"},mr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),vr=t=>{if(!t)return null;let r=t;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!mr(n))return n;r=r.parentElement}return null},xr=()=>{const t=v.useRef(null),[r,a]=v.useState(null);return v.useEffect(()=>{if(t.current){const n=vr(t.current);a(n)}},[]),{ref:t,bgColor:r}},Cr=v.forwardRef((t,r)=>{const{icon:a,children:n,variant:l="filled",label:s,colorScheme:c="red",size:_=20,position:d="top-right",positionOffset:f={x:0,y:0},cutoutBackground:p,isDisabled:g,className:h,"data-testid":b="badge",...w}=t,{onClick:E,onPointerDown:R}=w,{ref:C,bgColor:y}=xr(),$=p||y,N=!g&&(!!E||!!R),A=he(fe.badge__container,fe[`position-${d}`]),D=he(h,fe.badge__content,fe[`color-${c}`],fe[`variant-${l}`],{[fe.icon]:!!a,[fe.interactive]:N,[fe.disabled]:g}),O={"--badge-height":`${_}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...$&&{"--badge-cutout-bg":$},...l==="transparent"&&{"--badge-cutout-bg":"transparent"}},U=(a==null?void 0:a({}))||s,G=z=>{N&&(E==null||E(z))};return o.jsxs("div",{className:fe.wrapper,ref:C,"data-testid":b+"-wrapper",children:[n,o.jsx("span",{className:A,style:O,"data-testid":b+"-container",children:o.jsx("span",{...w,onClick:G,className:D,"data-testid":b+"-content",ref:r,"aria-disabled":g,children:U})})]})}),wr="_container_op5yl_7",Sr="_image_op5yl_22",Er="_loading_op5yl_34",Ge={container:wr,image:Sr,loading:Er},Lr="_loader_isv17_1",Mr="_spin_isv17_1",Rr="_accent_isv17_19",$r="_neutral_isv17_23",Ir="_positive_isv17_27",jr="_negative_isv17_31",kr="_gray_isv17_35",Tr="_special_isv17_39",Ar="_contrast_isv17_43",Nr="_container_isv17_47",Dr="_overlay_isv17_57",je={loader:Lr,spin:Mr,accent:Rr,neutral:$r,positive:Ir,negative:jr,gray:kr,special:Tr,contrast:Ar,container:Nr,overlay:Dr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Ct=v.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":n="loader",style:l,...s},c)=>{const _=he(je.loader,je[r],je[`size-${t}`],a);return o.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:l,...s,children:o.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"})})}),Or=v.forwardRef((t,r)=>{const{loading:a=!1,size:n=24,variant:l="accent",children:s,className:c,style:_,"data-testid":d,...f}=t,p=he(je.container,c);return o.jsxs("div",{ref:r,className:p,style:_,"data-testid":d,...f,children:[s,a&&o.jsx("div",{className:je.overlay,children:o.jsx(Ct,{size:n,variant:l,"data-testid":`${d}-spinner`})})]})}),wt=v.forwardRef((t,r)=>t.children?o.jsx(Or,{ref:r,...t}):o.jsx(Ct,{ref:r,...t})),Pr=({width:t=48,height:r=48,className:a,"data-testid":n})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:o.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"})}),Ur=v.forwardRef((t,r)=>{const{alt:a="",loading:n="lazy",src:l,isLoading:s=!1,className:c,"data-testid":_="image",onError:d,onLoad:f,...p}=t,[g,h]=v.useState("loading"),b=g==="error",w=(s||g==="loading")&&!b,E=g==="loaded"&&!s,R=he(Ge.image,{[Ge.loading]:w},c),C=v.useCallback(T=>{h("loaded"),f==null||f(T)},[f]),y=v.useCallback(T=>{h("error"),d==null||d(T)},[d]),$={loader:o.jsxs(v.Fragment,{children:[o.jsx(wt,{size:48,variant:"special","data-testid":`${_}-loader`}),o.jsx("img",{alt:a,src:l,onLoad:C,onError:y,style:{display:"none"}})]}),error:o.jsx(Pr,{"data-testid":`${_}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":_,loading:n,src:l,className:R})};return v.useEffect(()=>{if(!l){h("error");return}h("loading")},[l]),o.jsxs("div",{className:Ge.container,"data-testid":`${_}-container`,...p,children:[w&&$.loader,b&&$.error,E&&$.image]})}),St={},Et=v.createContext({locale:St}),Lt=()=>{const t=v.useContext(Et);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Br=()=>{const{locale:t}=Lt();return t},Fr={},zr={},Vr={},Wr=({locale:t={},theme:r,children:a,className:n})=>(v.useLayoutEffect(()=>{if(r){const l=document.documentElement;Object.entries(r).forEach(([s,c])=>{l.style.setProperty(s,c)})}},[r]),o.jsxs(v.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:H.clsx(Fr,zr,Vr,n)}),o.jsx(Et.Provider,{value:{locale:t},children:a})]})),Hr={},Gr="_tag_1llsi_1",Zr="_label_1llsi_16",qr="_iconWrapper_1llsi_20",Yr="_medium_1llsi_27",Jr="_large_1llsi_33",Kr="_disabled_1llsi_43",Xr="_neutral_1llsi_47",Qr="_positive_1llsi_53",en="_negative_1llsi_59",tn="_warning_1llsi_65",an="_vivid_1llsi_71",rn="_special_1llsi_77",nn="_accent_1llsi_84",sn="_blue_1llsi_90",on="_lovely_1llsi_96",ln="_dreamy_1llsi_102",Se={tag:Gr,label:Zr,iconWrapper:qr,medium:Yr,large:Jr,disabled:Kr,neutral:Xr,positive:Qr,negative:en,warning:tn,vivid:an,special:rn,accent:nn,blue:sn,lovely:on,dreamy:ln},Oe={"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"},cn=v.forwardRef((t,r)=>{const{className:a,children:n,componentStyle:l="neutral",size:s="medium",disabled:c=!1,showLabel:_=!!n,slotStart:d,slotEnd:f,slotStartWrapperProps:p={},slotEndWrapperProps:g={},"data-testid":h}=t,{className:b,...w}=p,{className:E,...R}=g;return o.jsxs("div",{className:H.clsx(Se.tag,Se[s],Se[l],{[Se.disabled]:c,[Oe["typography-label-3-regular"]]:s==="medium",[Oe["typography-subtitle-1-semibold"]]:s==="large"},a),"data-testid":h||"tag-component",ref:r,children:[d&&o.jsx("span",{className:H.clsx([Se.iconWrapper,b]),...w,children:d}),_&&o.jsx("span",{className:H.clsx([Se.label]),children:n}),f&&o.jsx("span",{className:H.clsx([Se.iconWrapper,E]),...R,children:f})]})}),dn="_checkbox_qo5f5_43",un="_input_qo5f5_59",_n="_icon_qo5f5_67",pn="_container_qo5f5_84",fn="_error_qo5f5_135",gn="_checkboxWrapper_qo5f5_147",bn="_medium_qo5f5_201",hn="_large_qo5f5_206",yn="_label_qo5f5_247",be={checkbox:dn,input:un,icon:_n,container:pn,error:fn,checkboxWrapper:gn,medium:bn,large:hn,label:yn},mn=({width:t=12,height:r=9,className:a="",color:n="currentColor",...l})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:o.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})}),vn=({width:t=12,height:r=2,className:a="",color:n="currentColor",...l})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...l,children:o.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})}),xn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Cn=({size:t,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:l})=>{const{width:s,height:c}=xn[t];return o.jsx("div",{className:be.icon,"data-testid":`${l}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?o.jsx(vn,{width:s,height:c}):o.jsx(mn,{width:s,height:c})})},wn=v.forwardRef((t,r)=>{const{name:a,value:n,size:l="medium",indeterminate:s=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:f,className:p,containerStyle:g,style:h,children:b,clickableLabel:w=!0,tabIndex:E,onChange:R,"data-testid":C="checkbox"}=t,[y,$]=v.useState(!1),T=n??y,N=d||c,A=!!_,D=T||s,O=H(be.container,be[l],f),U=H(be.checkbox,be[l],{[be.error]:A},p),G=j=>{N||($(j.target.checked),R==null||R(j.target.checked,j))},z=j=>{if(j.key==="Enter"&&!N){j.preventDefault();const W=!D;$(W),R==null||R(W)}},P=j=>{w||j.preventDefault()},m=j=>j.stopPropagation();return o.jsxs("label",{className:O,htmlFor:a,style:g,"data-testid":C,"data-clickable-label":w,children:[o.jsx("div",{className:be.checkboxWrapper,children:o.jsxs("div",{tabIndex:E||0,className:U,style:h,onKeyDown:z,"aria-checked":D,"aria-disabled":N,"aria-invalid":A,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${C}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:D,disabled:N,className:be.input,onChange:G,onClick:m,"aria-checked":D,"aria-invalid":A,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${C}-input`}),o.jsx(Cn,{name:a,size:l,isChecked:D,isDisabled:N,indeterminate:s,dataTestId:C})]})}),b&&o.jsx("span",{"data-testid":`${C}-label-text`,"data-clickable-label":w,className:be.label,onClick:P,children:b})]})}),Sn="_typography_zt7xg_1",En="_disabled_zt7xg_8",Ln="_primary_zt7xg_13",Mn="_secondary_zt7xg_18",Rn="_tertiary_zt7xg_23",$n="_accent_zt7xg_28",In="_positive_zt7xg_38",jn="_negative_zt7xg_48",kn="_warning_zt7xg_58",Tn="_special_zt7xg_68",An="_contrast_zt7xg_78",Re={typography:Sn,disabled:En,primary:Ln,secondary:Mn,tertiary:Rn,accent:$n,"accent-secondary":"_accent-secondary_zt7xg_33",positive:In,"positive-secondary":"_positive-secondary_zt7xg_43",negative:jn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:kn,"warning-secondary":"_warning-secondary_zt7xg_63",special:Tn,"special-secondary":"_special-secondary_zt7xg_73",contrast:An,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Nn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=vt.forwardRef(({size:a=3,children:n,className:l,"data-testid":s,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:f="primary",...p},g)=>{const h=c||Nn[a],b=H.clsx(Re.typography,Oe[`typography-${t}-${a}-${_}`],Re[f],{[Re.disabled]:d},l);return n?o.jsx(h,{ref:g,className:b,"data-testid":s,...p,children:n}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},ht=t=>{const r=vt.forwardRef(({size:a=3,children:n,className:l,"data-testid":s,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:f="primary",...p},g)=>{const h=c,b=H.clsx(Re.typography,Oe[`typography-${t}-${a}-${_}`],Re[f],{[Re.disabled]:d},l);return n?o.jsx(h,{ref:g,className:b,"data-testid":s,...p,children:n}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Dn={Title:bt("title"),Subtitle:bt("subtitle"),Label:ht("label"),Paragraph:ht("paragraph")},On="_inputBase_2vlla_85",Pn="_wrapper_2vlla_95",Un="_gripHandle_2vlla_169",Bn="_error_2vlla_230",Fn="_tabFocused_2vlla_237",zn="_disabled_2vlla_262",Vn="_loading_2vlla_269",Wn="_label_2vlla_279",Hn="_small_2vlla_292",Gn="_large_2vlla_299",Zn="_leftSection_2vlla_306",qn="_rightSection_2vlla_315",Yn="_helper_2vlla_351",Jn="_floatingLabel_2vlla_376",Kn="_focused_2vlla_434",Xn="_filled_2vlla_435",Qn="_medium_2vlla_469",es="_characterLimit_2vlla_510",ts="_input_2vlla_85",as="_textarea_2vlla_109",rs="_truncate_2vlla_637",ns="_hint_2vlla_719",M={inputBase:On,wrapper:Pn,"textarea-wrapper":"_textarea-wrapper_2vlla_109",gripHandle:Un,error:Bn,tabFocused:Fn,disabled:zn,loading:Vn,label:Wn,small:Hn,large:Gn,leftSection:Zn,rightSection:qn,helper:Yn,floatingLabel:Jn,focused:Kn,filled:Xn,medium:Qn,characterLimit:es,input:ts,textarea:as,"size-small":"_size-small_2vlla_586","size-medium":"_size-medium_2vlla_592","size-large":"_size-large_2vlla_598","with-floating-label":"_with-floating-label_2vlla_605",truncate:rs,hint:ns,"has-hint":"_has-hint_2vlla_736","has-suffix":"_has-suffix_2vlla_742","has-limit":"_has-limit_2vlla_748"},ss=({width:t=8,height:r=8,className:a,color:n="#AABBCA"})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:n})}),os=(t,r)=>{const a=v.useRef(null),n=v.useRef(null);return v.useEffect(()=>{const l=r==="textarea"?a.current:n.current;l&&l.value!==t&&(l.value=t||"")},[t,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},ls=(t,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const l=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const s=a.current.scrollHeight+"px";a.current.style.setProperty("height",s,"important"),a.current.scrollTop=l;const c=a.current.closest(`.${M.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return v.useEffect(n,[t,r]),v.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},is=(t,r,a,n)=>({handleGripMouseDown:v.useCallback(s=>{if(!t||r||a||!(n==="fixed"||!n))return;s.preventDefault(),s.stopPropagation();const c=s.currentTarget.closest(`.${M.wrapper}`);if(!c)return;const _=s.clientY,d=c.clientHeight,f=g=>{const h=g.clientY-_,b=Math.min(100,d),w=Math.max(b,d+h);c.style.height=`${w}px`},p=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)},[t,r,a,n])}),yt=30,cs=v.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:n,disabled:l=!1,loading:s=!1,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:g,className:h,style:b,truncate:w=!1,shouldShowFloatingLabelClass:E=!1,"aria-invalid":R,"aria-errormessage":C,id:y,resize:$,...T},N)=>{const{textareaRef:A,inputRef:D,currentRef:O}=os(a,t);if(ls(a,$,A),v.useImperativeHandle(N,()=>O.current,[O]),t==="textarea")return o.jsx("textarea",{ref:A,id:y,value:a,placeholder:n,disabled:l||s,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:g,className:H.clsx(M.textarea,M[`size-${r}`],E&&M["with-floating-label"],h),style:b,"aria-invalid":R,"aria-errormessage":C,"aria-describedby":C?`${y}-error`:void 0,tabIndex:0,"data-resize":$,...T});if(t==="input")return o.jsx("input",{ref:D,id:y,value:a,placeholder:n,disabled:l||s,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:g,className:H.clsx(M.input,M[`size-${r}`],E&&M["with-floating-label"],w&&M.truncate,h),style:b,"aria-invalid":R,"aria-errormessage":C,"aria-describedby":C?`${y}-error`:void 0,tabIndex:0,...T});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Mt=v.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:n=!1,loading:l=!1,className:s,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:f,suffixStyles:p,labelProps:g,helperProps:h,showLimit:b=!1,maxLength:w,hint:E,showHint:R=!1,showHintOnEmpty:C=!1,prefix:y,suffix:$,onSuffixClick:T,placeholder:N,showLabel:A=!0,labelClassName:D,hasValue:O=!1,helper:U,id:G,value:z="",resize:P,showGrip:m=!1,...j},W)=>{const te=v.useId(),Y=G||te,Q=R&&E&&(O||C),ae=E&&E.length>yt?E.substring(0,yt)+"...":E,J=H.clsx(M.wrapper,a&&M.error,n&&M.disabled,l&&M.loading,Q&&M["has-hint"],$&&M["has-suffix"],b&&M["has-limit"],s),re=H.clsx(M.floatingLabel,M[r],O&&M.filled,D),{handleGripMouseDown:ne}=is(m,n,l,P);return o.jsxs("div",{ref:W,className:M.inputBase,"data-testid":"input-base-wrapper",...j,children:[o.jsxs("div",{className:J,style:_,"data-resize":P,"data-show-grip":m?"true":"false",...c,children:[y&&o.jsx("label",{htmlFor:Y,className:M.leftSection,style:f,children:y}),$&&o.jsx("label",{htmlFor:Y,className:M.rightSection,style:p,onClick:T,children:$}),N&&A&&o.jsx("label",{htmlFor:Y,className:re,style:d,...g,children:N}),t,m&&!b&&(P==="fixed"||!P)&&o.jsx("div",{className:M.gripHandle,onMouseDown:ne,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(ss,{})}),Q&&o.jsx("div",{className:H.clsx(M.hint,O&&M.truncate),"data-disabled":n||l,children:ae}),b&&w&&o.jsxs("div",{className:M.characterLimit,children:[(z||"").length," из ",w]})]}),U&&o.jsx("div",{className:H.clsx(M.helper,a&&M.error,(n||l)&&M.disabled),...h,id:a?`${Y}-error`:void 0,children:U})]})});Mt.displayName="InputWrapperComponent";const mt=Object.assign(cs,{Wrapper:Mt}),Rt=v.forwardRef(({component:t="input",size:r="medium",className:a,error:n=!1,disabled:l=!1,loading:s=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:f,prefix:p,suffix:g,id:h,onFocus:b,onBlur:w,onKeyDown:E,onSuffixClick:R,onChange:C,value:y="",wrapperProps:$,wrapperStyles:T,floatingLabelStyles:N,prefixStyles:A,suffixStyles:D,textareaStyles:O,labelProps:U,helperProps:G,showLimit:z=!1,maxLength:P,inputProps:m,hint:j,showHint:W=!1,showHintOnEmpty:te=!1,truncate:Y=!1,resize:Q,showGrip:ae=!1,...J},re)=>{const ne=v.useId(),ue=h||ne,[xe,ie]=v.useState(y),me=y!==void 0?y:xe,_e=(me||"").length>0,ce=me||"",pe=_&&(r==="large"||t==="textarea")&&!p,Ce=v.useCallback(Z=>{var q;l||s||(b==null||b(),(q=m==null?void 0:m.onFocus)==null||q.call(m,Z))},[b,m,l,s]),ke=v.useCallback(Z=>{var q;if(Z.key==="Tab"){const de=Z.target.closest(`.${M.wrapper}`);de&&de.classList.add(M.tabFocused)}(q=m==null?void 0:m.onKeyUp)==null||q.call(m,Z)},[m]),Pe=v.useCallback(Z=>{var de;const q=Z.target.closest(`.${M.wrapper}`);q&&q.classList.remove(M.tabFocused),w==null||w(),(de=m==null?void 0:m.onBlur)==null||de.call(m,Z)},[w,m]),Ue=v.useCallback(Z=>{var de;if(l||s)return;const q=Z.target.value;ie(q),C==null||C(q,Z),(de=m==null?void 0:m.onChange)==null||de.call(m,Z)},[C,m,l,s]);return v.useEffect(()=>{ie(y||"")},[y]),o.jsx(mt.Wrapper,{ref:re,size:r,error:n,disabled:l||s,loading:s,className:H.clsx(a,t==="textarea"&&M["textarea-wrapper"]),wrapperProps:$,wrapperStyles:T,floatingLabelStyles:N,prefixStyles:A,suffixStyles:D,labelProps:U,helperProps:G,showLimit:z,maxLength:P,hint:j,showHint:W,showHintOnEmpty:te,prefix:p,suffix:g,onSuffixClick:R,placeholder:c,showLabel:_,labelClassName:d,hasValue:_e,helper:f,id:ue,value:ce,showGrip:ae,resize:Q,...J,children:o.jsx(mt,{component:t,size:r,value:ce,placeholder:c,disabled:l,loading:s,onFocus:Ce,onBlur:Pe,onChange:Ue,onKeyDown:E,onKeyUp:ke,maxLength:P,truncate:Y,"data-empty":!_e,shouldShowFloatingLabelClass:pe,style:t==="textarea"?O:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${ue}-error`:void 0,id:ue,resize:Q,...m})})}),$t=({className:t="",style:r,size:a="md",color:n="currentColor",onClick:l,...s})=>{const _={display:"inline-block",color:n,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return o.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:l,...s,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},X={SMALL:"small",MEDIUM:"medium",LARGE:"large"},ds=(t,r,a,n)=>{switch(t){case X.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case X.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case X.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},us=t=>{switch(t){case X.LARGE:return"56px";case X.MEDIUM:return"48px";case X.SMALL:return"40px";default:return"48px"}},_s=t=>{switch(t){case X.SMALL:return 8;case X.MEDIUM:case X.LARGE:return 12;default:return 12}},ps=(t,r,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),fs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),gs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),bs=(t,r,a,n)=>{const l=us(t),s=ds(t,r,a,n),c=_s(t);switch(t){case X.LARGE:return ps(l,s,c);case X.MEDIUM:return fs(l,s,c);case X.SMALL:return gs(l,s,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},hs=v.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:n,maxLength:l,minLength:s,autoComplete:c,autoFocus:_,size:d=X.MEDIUM,inputProps:f,error:p,disabled:g,loading:h,helper:b,prefix:w,suffix:E,clearable:R=!1,id:C,showLabel:y=!0,onFocus:$,onBlur:T,onSuffixClick:N,onClear:A,className:D,truncate:O=!0,hint:U,showHint:G=!1,showHintOnEmpty:z=!1,wrapperProps:P,labelProps:m,helperProps:j,...W},te)=>{const Y=(t||"").length>0,Q=d===X.LARGE,ae=!!w,J=Q&&y&&!w,re=R&&Y&&!(g||h),ne=()=>{r==null||r(""),A==null||A()},ue=re?o.jsx($t,{size:d===X.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ne,style:{cursor:"pointer"},"data-testid":"x-icon"}):E,xe={type:a,minLength:s,autoComplete:c,autoFocus:_,...f},ie=bs(d,J,Y,ae);return o.jsx(Rt,{size:d,error:p,disabled:g||h,loading:h,helper:b,prefix:w,suffix:ue,id:C,showLabel:J,onFocus:$,onBlur:T,onSuffixClick:N,onChange:r,value:t,placeholder:n,className:D,wrapperStyles:ie.wrapperStyles,floatingLabelStyles:ie.floatingLabelStyles,prefixStyles:ie.prefixStyles,suffixStyles:ie.suffixStyles,wrapperProps:P,labelProps:m,helperProps:j,showLimit:!1,maxLength:l,inputProps:xe,hint:U,showHint:G,showHintOnEmpty:z,truncate:O,...W})}),le={SMALL:"small",MEDIUM:"medium"},De={SMALL:"12px",MEDIUM:"16px"},ys={SMALL:"xs",MEDIUM:"sm"},Ne={FILL:"fill",FIXED:"fixed"},Ze={SMALL:"112px",MEDIUM:"56px"},Me={SMALL:"48px",MEDIUM:"22px"},ge={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},ye={SMALL:48,MEDIUM:56,LARGE:112},ms=(t,r)=>{if(t===le.SMALL)return Ze.SMALL;if(r)return`${r}px`;switch(t){case le.MEDIUM:return Ze.MEDIUM;default:return Ze.MEDIUM}},vs=(t,r)=>{if(t===le.SMALL)return Me.SMALL;if(r)switch(r){case ye.SMALL:case ye.MEDIUM:return Me.MEDIUM;case ye.LARGE:return Me.SMALL;default:return Me.MEDIUM}switch(t){case le.MEDIUM:return Me.MEDIUM;default:return Me.MEDIUM}},xs=(t,r,a)=>{if(t===le.SMALL)return ge.SMALL;if(r)switch(r){case ye.SMALL:return ge.MEDIUM_WITH_PREFIX;case ye.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;case ye.LARGE:return ge.MEDIUM;default:return ge.MEDIUM}switch(t){case le.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;default:return ge.MEDIUM}},Cs=(t,r)=>{if(t===le.SMALL)return"small";if(r)switch(r){case ye.SMALL:return"small";case ye.MEDIUM:return"medium";case ye.LARGE:return"medium";default:return"medium"}return t},ws=t=>ys[t.toUpperCase()],Ss=t=>De[t.toUpperCase()],Es=(t,r,a,n)=>{const l=ms(t,r),s=vs(t,r),c=xs(t,r,a);return{wrapperStyles:{minHeight:l,...n===Ne.FILL&&{height:"100%"},...n===Ne.FIXED&&r&&{height:l},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===le.SMALL?De.SMALL:De.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===le.MEDIUM?De.MEDIUM:void 0},suffixStyles:{right:Ss(t)},textareaStyles:{minHeight:s,...n===Ne.FILL&&{flex:1,minHeight:0},...n===Ne.FIXED&&r&&{height:s}}}},Ls=v.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:n,minLength:l,autoFocus:s,size:c=le.MEDIUM,textareaProps:_,error:d,disabled:f,loading:p,helper:g,suffix:h,clearable:b=!1,id:w,showLabel:E=!0,onFocus:R,onBlur:C,onClear:y,onKeyDown:$,className:T,rows:N=1,showLimit:A=!1,wrapperProps:D,labelProps:O,helperProps:U,showGrip:G,minHeight:z,resize:P,...m},j)=>{const W=(t||"").length>0,te=E&&!!a&&(c===le.SMALL||z!==48),Y=b&&W&&!(f||p),Q=()=>{r==null||r(""),y==null||y()},ae=Y?o.jsx($t,{size:ws(c),color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):h,J=Es(c,z,te&&W,P),re=Cs(c,z),ne={rows:N,minLength:l,autoFocus:s,resize:P,..._};return o.jsx(Rt,{ref:j,component:"textarea",size:re,error:d,disabled:f||p,loading:p,helper:g,suffix:ae,id:w,showLabel:te,onFocus:R,onBlur:C,onKeyDown:$,onChange:r,value:t||"",placeholder:a,className:T,"data-floating-label":te,wrapperStyles:J.wrapperStyles,floatingLabelStyles:J.floatingLabelStyles,suffixStyles:J.suffixStyles,textareaStyles:J.textareaStyles,wrapperProps:D,labelProps:O,helperProps:U,showLimit:A&&(z===112||c===le.SMALL),maxLength:n,inputProps:ne,resize:P,showGrip:G,...m})}),Ms="_helper_1vhgl_16",qe={helper:Ms,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Rs=({title:t,error:r,className:a="",style:n,disabled:l=!1,"data-testid":s,"aria-label":c,"aria-describedby":_})=>{const d=!!r,f=H.clsx(qe.helper,d&&qe["helper--error"],l&&qe["helper--disabled"],a),p=l?t:r||t;return o.jsx("div",{className:f,style:n,"data-testid":s,"aria-label":c,"aria-describedby":_,children:o.jsx("p",{children:p})})};exports.Avatar=_r;exports.Badge=Cr;exports.Button=Ua;exports.Checkbox=wn;exports.ConfigProvider=Wr;exports.Helper=Rs;exports.Image=Ur;exports.Loader=wt;exports.Tag=cn;exports.TextArea=Ls;exports.TextInput=hs;exports.Typography=Dn;exports.enUS=St;exports.ruRU=Hr;exports.useConfig=Lt;exports.useLocale=Br;
34
+ */var gt;function Fa(){return gt||(gt=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",c=0;c<arguments.length;c++){var _=arguments[c];_&&(s=i(s,n(_)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var _ in s)r.call(s,_)&&s[_]&&(c=i(c,_));return c}function i(s,c){return c?s?s+" "+c:s+c:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(He)),He.exports}var Va=Fa();const he=ta(Va),Wa="_avatar_1ob17_4",Ha="_clickable_1ob17_23",Ga="_icon_1ob17_40",Za="_disabled_1ob17_45",qa="_image_1ob17_51",Ya="_name_1ob17_51",Ja="_circle_1ob17_160",Ka="_square_1ob17_164",oe={avatar:Wa,clickable:Ha,icon:Ga,disabled:Za,image:qa,name:Ya,"size-208":"_size-208_1ob17_104","size-96":"_size-96_1ob17_111","size-84":"_size-84_1ob17_118","size-56":"_size-56_1ob17_125","size-48":"_size-48_1ob17_132","size-40":"_size-40_1ob17_139","size-32":"_size-32_1ob17_146","size-24":"_size-24_1ob17_153",circle:Ja,square:Ka,"variant-filled":"_variant-filled_1ob17_185","color-brand":"_color-brand_1ob17_190","color-red":"_color-red_1ob17_194","color-orange":"_color-orange_1ob17_198","color-yellow":"_color-yellow_1ob17_202","color-green":"_color-green_1ob17_206","color-blue":"_color-blue_1ob17_210","color-lightblue":"_color-lightblue_1ob17_214","color-purple":"_color-purple_1ob17_218","color-gray":"_color-gray_1ob17_222","color-contrast":"_color-contrast_1ob17_226","variant-light":"_variant-light_1ob17_232","variant-outline":"_variant-outline_1ob17_304"},ht=99;function Xa(t){return t<ht?`+${t}`:`${ht}+`}function Je(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let n=0;n<r.length;n++){const i=r.charCodeAt(n);a=(a<<5)+a+i}return a>>>0}const Qa=["red","orange","yellow","green","blue","lightblue","purple"];function er(t,r=Qa){const a=Je(t),n=Math.abs(a)%r.length;return r[n]}const bt=2;function tr(t){const r=t.split(" ");return r.length===1?t.slice(0,bt).toUpperCase():r.map(a=>a[0]).slice(0,bt).join("").toUpperCase()}function ar(t,r){return r==="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 rr="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",nr="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",sr="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",or="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",ir={male:rr,female:nr,org:or,neutral:sr},Ye=h.forwardRef((t,r)=>{const{style:a,size:n=40,isLoading:i=!1,isDisabled:s=!1,shape:c="circle",variant:_="light",placeholderType:d="neutral",name:p="",imgSrc:f,imgAlt:g="",icon:b,imgProps:m,colorScheme:y,"data-testid":E,...L}=t,{onClick:w,onPointerDown:x}=L,$=!s&&!i&&(!!w||!!x),[A,D]=h.useState(!f),T=f&&!A?"image":b?"icon":p?"name":"placeholder",F=T==="name"?y||er(p):y||"gray",O=he(oe.avatar,oe[c],oe[`size-${n}`],oe[`variant-${_}`],oe[`color-${F}`],{[oe.disabled]:s,[oe.loading]:i,[oe.clickable]:$}),V={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:he(oe.icon),children:b==null?void 0:b({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:he(oe.name),title:g,children:tr(p)}),placeholder:()=>o.jsx("img",{...m,"data-testid":"avatar-placeholder",className:oe.image,src:ir[d],alt:g}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...m,className:oe.image,src:f,alt:g,onLoad:()=>D(!1),onError:W=>{var P;D(!0),(P=m==null?void 0:m.onError)==null||P.call(m,W)}})},C=W=>{$&&(w==null||w(W))};return o.jsx("div",{ref:r,onClick:C,className:O,style:a,"data-testid":E,"aria-disabled":s||i,children:V[T](null)})}),lr="_avatarGroup_157g4_1",cr={avatarGroup:lr};let dr=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function ur(t,r,a,n,i,s,c){const _=Math.min(i,s)/2,d=Math.min(c,_),p=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),f=[`M${a+d},${n}`,`L${a+i-d},${n}`,`A${d},${d} 0 0 1 ${a+i},${n+d}`,`L${a+i},${n+s-d}`,`A${d},${d} 0 0 1 ${a+i-d},${n+s}`,`L${a+d},${n+s}`,`A${d},${d} 0 0 1 ${a},${n+s-d}`,`L${a},${n+d}`,`A${d},${d} 0 0 1 ${a+d},${n}`,"Z"].join(" ");return`${p} ${f}`}const _r=2,fr=t=>{const{avatars:r=[],overflowCount:a=0,size:n=40,overlap:i=.3,shape:s="circle",overflowOnClick:c}=t,_=n*i,d=-_+_r,p=ar(n,s),g=h.useRef(dr()).current.toString(),b=he(cr.avatarGroup),m=ur(n,n,n-_,0,n,n,p);return r.length===0?null:o.jsxs("div",{className:b,children:[r.map((y,E,L)=>{const w=E+1>=L.length;return o.jsx("div",{style:{clipPath:w&&!a?void 0:`url(#${g})`,marginRight:d},children:o.jsx(Ye,{size:n,shape:s,...y})},Je(y)+E)}),a>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(Ye,{size:n,shape:s,onClick:c,icon:()=>Xa(a),colorScheme:"gray"})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${g}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:m,clipRule:"evenodd"})})})]})},pr=Object.assign(Ye,{Group:fr}),gr="_wrapper_1ncab_5",hr="_badge__container_1ncab_6",br="_badge__content_1ncab_7",mr="_interactive_1ncab_20",yr="_disabled_1ncab_21",vr="_icon_1ncab_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:mr,disabled:yr,icon:vr,"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"},xr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),Cr=t=>{if(!t)return null;let r=t;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!xr(n))return n;r=r.parentElement}return null},wr=()=>{const t=h.useRef(null),[r,a]=h.useState(null);return h.useEffect(()=>{if(t.current){const n=Cr(t.current);a(n)}},[]),{ref:t,bgColor:r}},Sr=h.forwardRef((t,r)=>{const{icon:a,children:n,variant:i="filled",label:s,colorScheme:c="red",size:_=20,position:d="top-right",positionOffset:p={x:0,y:0},cutoutBackground:f,isDisabled:g,className:b,"data-testid":m="badge",...y}=t,{onClick:E,onPointerDown:L}=y,{ref:w,bgColor:x}=wr(),S=f||x,A=!g&&(!!E||!!L),D=he(fe.badge__container,fe[`position-${d}`]),T=he(b,fe.badge__content,fe[`color-${c}`],fe[`variant-${i}`],{[fe.icon]:!!a,[fe.interactive]:A,[fe.disabled]:g}),F={"--badge-height":`${_}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...S&&{"--badge-cutout-bg":S},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},O=(a==null?void 0:a({}))||s,V=C=>{A&&(E==null||E(C))};return o.jsxs("div",{className:fe.wrapper,ref:w,"data-testid":m+"-wrapper",children:[n,o.jsx("span",{className:D,style:F,"data-testid":m+"-container",children:o.jsx("span",{...y,onClick:V,className:T,"data-testid":m+"-content",ref:r,"aria-disabled":g,children:O})})]})}),Er="_container_op5yl_7",Lr="_image_op5yl_22",Mr="_loading_op5yl_34",Ge={container:Er,image:Lr,loading:Mr},$r="_loader_isv17_1",Ir="_spin_isv17_1",Rr="_accent_isv17_19",jr="_neutral_isv17_23",kr="_positive_isv17_27",Tr="_negative_isv17_31",Ar="_gray_isv17_35",Nr="_special_isv17_39",Dr="_contrast_isv17_43",Or="_container_isv17_47",Pr="_overlay_isv17_57",Ae={loader:$r,spin:Ir,accent:Rr,neutral:jr,positive:kr,negative:Tr,gray:Ar,special:Nr,contrast:Dr,container:Or,overlay:Pr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},St=h.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":n="loader",style:i,...s},c)=>{const _=he(Ae.loader,Ae[r],Ae[`size-${t}`],a);return o.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:i,...s,children:o.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"})})}),Ur=h.forwardRef((t,r)=>{const{loading:a=!1,size:n=24,variant:i="accent",children:s,className:c,style:_,"data-testid":d,...p}=t,f=he(Ae.container,c);return o.jsxs("div",{ref:r,className:f,style:_,"data-testid":d,...p,children:[s,a&&o.jsx("div",{className:Ae.overlay,children:o.jsx(St,{size:n,variant:i,"data-testid":`${d}-spinner`})})]})}),Et=h.forwardRef((t,r)=>t.children?o.jsx(Ur,{ref:r,...t}):o.jsx(St,{ref:r,...t})),zr=({width:t=48,height:r=48,className:a,"data-testid":n})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:o.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"})}),Br=h.forwardRef((t,r)=>{const{alt:a="",loading:n="lazy",src:i,isLoading:s=!1,className:c,"data-testid":_="image",onError:d,onLoad:p,...f}=t,[g,b]=h.useState("loading"),m=g==="error",y=(s||g==="loading")&&!m,E=g==="loaded"&&!s,L=he(Ge.image,{[Ge.loading]:y},c),w=h.useCallback($=>{b("loaded"),p==null||p($)},[p]),x=h.useCallback($=>{b("error"),d==null||d($)},[d]),S={loader:o.jsxs(h.Fragment,{children:[o.jsx(Et,{size:48,variant:"special","data-testid":`${_}-loader`}),o.jsx("img",{alt:a,src:i,onLoad:w,onError:x,style:{display:"none"}})]}),error:o.jsx(zr,{"data-testid":`${_}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":_,loading:n,src:i,className:L})};return h.useEffect(()=>{if(!i){b("error");return}b("loading")},[i]),o.jsxs("div",{className:Ge.container,"data-testid":`${_}-container`,...f,children:[y&&S.loader,m&&S.error,E&&S.image]})}),Lt={},Mt=h.createContext({locale:Lt}),$t=()=>{const t=h.useContext(Mt);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Fr=()=>{const{locale:t}=$t();return t},Vr={},Wr={},Hr={},Gr=({locale:t={},theme:r,children:a,className:n})=>(h.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([s,c])=>{i.style.setProperty(s,c)})}},[r]),o.jsxs(h.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:U.clsx(Vr,Wr,Hr,n)}),o.jsx(Mt.Provider,{value:{locale:t},children:a})]})),Zr={},qr="_tag_1llsi_1",Yr="_label_1llsi_16",Jr="_iconWrapper_1llsi_20",Kr="_medium_1llsi_27",Xr="_large_1llsi_33",Qr="_disabled_1llsi_43",en="_neutral_1llsi_47",tn="_positive_1llsi_53",an="_negative_1llsi_59",rn="_warning_1llsi_65",nn="_vivid_1llsi_71",sn="_special_1llsi_77",on="_accent_1llsi_84",ln="_blue_1llsi_90",cn="_lovely_1llsi_96",dn="_dreamy_1llsi_102",Ce={tag:qr,label:Yr,iconWrapper:Jr,medium:Kr,large:Xr,disabled:Qr,neutral:en,positive:tn,negative:an,warning:rn,vivid:nn,special:sn,accent:on,blue:ln,lovely:cn,dreamy:dn},we={"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"},un=h.forwardRef((t,r)=>{const{className:a,children:n,componentStyle:i="neutral",size:s="medium",disabled:c=!1,showLabel:_=!!n,slotStart:d,slotEnd:p,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":b}=t,{className:m,...y}=f,{className:E,...L}=g;return o.jsxs("div",{className:U.clsx(Ce.tag,Ce[s],Ce[i],{[Ce.disabled]:c,[we["typography-label-3-regular"]]:s==="medium",[we["typography-subtitle-1-semibold"]]:s==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&o.jsx("span",{className:U.clsx([Ce.iconWrapper,m]),...y,children:d}),_&&o.jsx("span",{className:U.clsx([Ce.label]),children:n}),p&&o.jsx("span",{className:U.clsx([Ce.iconWrapper,E]),...L,children:p})]})}),_n="_checkbox_qo5f5_43",fn="_input_qo5f5_59",pn="_icon_qo5f5_67",gn="_container_qo5f5_84",hn="_error_qo5f5_135",bn="_checkboxWrapper_qo5f5_147",mn="_medium_qo5f5_201",yn="_large_qo5f5_206",vn="_label_qo5f5_247",ge={checkbox:_n,input:fn,icon:pn,container:gn,error:hn,checkboxWrapper:bn,medium:mn,large:yn,label:vn},xn=({width:t=12,height:r=9,className:a="",color:n="currentColor",...i})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.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})}),Cn=({width:t=12,height:r=2,className:a="",color:n="currentColor",...i})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.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})}),wn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Sn=({size:t,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:i})=>{const{width:s,height:c}=wn[t];return o.jsx("div",{className:ge.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?o.jsx(Cn,{width:s,height:c}):o.jsx(xn,{width:s,height:c})})},En=h.forwardRef((t,r)=>{const{name:a,value:n,size:i="medium",indeterminate:s=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:p,className:f,containerStyle:g,style:b,children:m,clickableLabel:y=!0,tabIndex:E,onChange:L,"data-testid":w="checkbox"}=t,[x,S]=h.useState(!1),$=n??x,A=d||c,D=!!_,T=$||s,F=U(ge.container,ge[i],p),O=U(ge.checkbox,ge[i],{[ge.error]:D},f),V=k=>{A||(S(k.target.checked),L==null||L(k.target.checked,k))},C=k=>{if(k.key==="Enter"&&!A){k.preventDefault();const G=!T;S(G),L==null||L(G)}},W=k=>{y||k.preventDefault()},P=k=>k.stopPropagation();return o.jsxs("label",{className:F,htmlFor:a,style:g,"data-testid":w,"data-clickable-label":y,children:[o.jsx("div",{className:ge.checkboxWrapper,children:o.jsxs("div",{tabIndex:E||0,className:O,style:b,onKeyDown:C,"aria-checked":T,"aria-disabled":A,"aria-invalid":D,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:T,disabled:A,className:ge.input,onChange:V,onClick:P,"aria-checked":T,"aria-invalid":D,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-input`}),o.jsx(Sn,{name:a,size:i,isChecked:T,isDisabled:A,indeterminate:s,dataTestId:w})]})}),m&&o.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":y,className:ge.label,onClick:W,children:m})]})}),Ln="_typography_zt7xg_1",Mn="_disabled_zt7xg_8",$n="_primary_zt7xg_13",In="_secondary_zt7xg_18",Rn="_tertiary_zt7xg_23",jn="_accent_zt7xg_28",kn="_positive_zt7xg_38",Tn="_negative_zt7xg_48",An="_warning_zt7xg_58",Nn="_special_zt7xg_68",Dn="_contrast_zt7xg_78",Re={typography:Ln,disabled:Mn,primary:$n,secondary:In,tertiary:Rn,accent:jn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:kn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Tn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:An,"warning-secondary":"_warning-secondary_zt7xg_63",special:Nn,"special-secondary":"_special-secondary_zt7xg_73",contrast:Dn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},On={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},mt=t=>{const r=wt.forwardRef(({size:a=3,children:n,className:i,"data-testid":s,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c||On[a],m=U.clsx(Re.typography,we[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},i);return n?o.jsx(b,{ref:g,className:m,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},yt=t=>{const r=wt.forwardRef(({size:a=3,children:n,className:i,"data-testid":s,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c,m=U.clsx(Re.typography,we[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},i);return n?o.jsx(b,{ref:g,className:m,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Pn={Title:mt("title"),Subtitle:mt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Un="_inputBase_1m6fe_85",zn="_wrapper_1m6fe_95",Bn="_gripHandle_1m6fe_169",Fn="_error_1m6fe_230",Vn="_tabFocused_1m6fe_237",Wn="_disabled_1m6fe_262",Hn="_loading_1m6fe_269",Gn="_label_1m6fe_279",Zn="_small_1m6fe_292",qn="_large_1m6fe_299",Yn="_leftSection_1m6fe_306",Jn="_rightSection_1m6fe_315",Kn="_helper_1m6fe_351",Xn="_floatingLabel_1m6fe_376",Qn="_focused_1m6fe_434",es="_filled_1m6fe_435",ts="_medium_1m6fe_469",as="_characterLimit_1m6fe_510",rs="_input_1m6fe_85",ns="_textarea_1m6fe_109",ss="_truncate_1m6fe_637",os="_hint_1m6fe_719",R={inputBase:Un,wrapper:zn,"textarea-wrapper":"_textarea-wrapper_1m6fe_109",gripHandle:Bn,error:Fn,tabFocused:Vn,disabled:Wn,loading:Hn,label:Gn,small:Zn,large:qn,leftSection:Yn,rightSection:Jn,helper:Kn,floatingLabel:Xn,focused:Qn,filled:es,medium:ts,characterLimit:as,input:rs,textarea:ns,"size-small":"_size-small_1m6fe_586","size-medium":"_size-medium_1m6fe_592","size-large":"_size-large_1m6fe_598","with-floating-label":"_with-floating-label_1m6fe_605",truncate:ss,hint:os,"has-hint":"_has-hint_1m6fe_736"},is=({width:t=8,height:r=8,className:a,color:n="#AABBCA"})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:n})}),ls=(t,r)=>{const a=h.useRef(null),n=h.useRef(null);return h.useEffect(()=>{const i=r==="textarea"?a.current:n.current;i&&i.value!==t&&(i.value=t||"")},[t,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},cs=(t,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const s=a.current.scrollHeight+"px";a.current.style.setProperty("height",s,"important"),a.current.scrollTop=i;const c=a.current.closest(`.${R.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return h.useEffect(n,[t,r]),h.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},ds=(t,r,a,n)=>({handleGripMouseDown:h.useCallback(s=>{if(!t||r||a||!(n==="fixed"||!n))return;s.preventDefault(),s.stopPropagation();const c=s.currentTarget.closest(`.${R.wrapper}`);if(!c)return;const _=s.clientY,d=c.clientHeight,p=g=>{const b=g.clientY-_,m=Math.min(100,d),y=Math.max(m,d+b);c.style.height=`${y}px`},f=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",f)},[t,r,a,n])}),vt=30,us=h.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:n,disabled:i=!1,loading:s=!1,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:g,style:b,truncate:m=!1,shouldShowFloatingLabelClass:y=!1,"aria-invalid":E,"aria-errormessage":L,id:w,resize:x,...S},$)=>{const{textareaRef:A,inputRef:D,currentRef:T}=ls(a,t);if(cs(a,x,A),h.useImperativeHandle($,()=>T.current,[T]),t==="textarea")return o.jsx("textarea",{ref:A,id:w,value:a,placeholder:n,disabled:i||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:U(R.textarea,R[`size-${r}`],y&&R["with-floating-label"],g),style:b,"aria-invalid":E,"aria-errormessage":L,"aria-describedby":L?`${w}-error`:void 0,tabIndex:0,"data-resize":x,...S});if(t==="input")return o.jsx("input",{ref:D,id:w,value:a,placeholder:n,disabled:i||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:U(R.input,R[`size-${r}`],y&&R["with-floating-label"],m&&R.truncate,g),style:b,"aria-invalid":E,"aria-errormessage":L,"aria-describedby":L?`${w}-error`:void 0,tabIndex:0,...S});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),It=h.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:n=!1,loading:i=!1,className:s,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:p,suffixStyles:f,labelProps:g,helperProps:b,showLimit:m=!1,maxLength:y,hint:E,showHint:L=!1,showHintOnEmpty:w=!1,prefix:x,suffix:S,placeholder:$,showLabel:A=!0,labelClassName:D,hasValue:T=!1,helper:F,id:O,value:V="",resize:C,showGrip:W=!1,...P},k)=>{const G=h.useId(),Z=O||G,Q=L&&E&&(T||w),q=E&&E.length>vt?E.substring(0,vt)+"...":E,te=U(R.wrapper,a&&R.error,n&&R.disabled,i&&R.loading,Q&&R["has-hint"],s),ae=U(R.floatingLabel,R[r],T&&R.filled,D),{handleGripMouseDown:re}=ds(W,n,i,C);return o.jsxs("div",{ref:k,className:R.inputBase,"data-testid":"input-base-wrapper",...P,children:[o.jsxs("div",{className:te,style:_,"data-resize":C,"data-show-grip":W?"true":"false",...c,children:[x&&o.jsx("label",{htmlFor:Z,className:R.leftSection,style:p,children:x}),S&&o.jsx("label",{htmlFor:Z,className:R.rightSection,style:f,children:S}),$&&A&&o.jsx("label",{htmlFor:Z,className:ae,style:d,...g,children:$}),t,W&&!m&&(C==="fixed"||!C)&&o.jsx("div",{className:R.gripHandle,onMouseDown:re,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(is,{})}),Q&&o.jsx("div",{className:U(R.hint,T&&R.truncate),"data-disabled":n||i,children:q}),m&&y&&o.jsxs("div",{className:R.characterLimit,children:[(V||"").length," из ",y]})]}),F&&o.jsx("div",{className:U(R.helper,a&&R.error,(n||i)&&R.disabled),...b,id:a?`${Z}-error`:void 0,children:F})]})});It.displayName="InputWrapperComponent";const xt=Object.assign(us,{Wrapper:It}),Rt=h.forwardRef(({component:t="input",size:r="medium",className:a,error:n=!1,disabled:i=!1,loading:s=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:p,prefix:f,suffix:g,id:b,onFocus:m,onBlur:y,onChange:E,value:L="",wrapperProps:w,wrapperStyles:x,floatingLabelStyles:S,prefixStyles:$,suffixStyles:A,textareaStyles:D,labelProps:T,helperProps:F,showLimit:O=!1,maxLength:V,inputProps:C,hint:W,showHint:P=!1,showHintOnEmpty:k=!1,truncate:G=!1,resize:Z,showGrip:Q=!1,...q},te)=>{const ae=h.useId(),re=b||ae,[me,ne]=h.useState(L),ye=L!==void 0?L:me,Se=(ye||"").length>0,ue=_&&(r==="large"||t==="textarea")&&!f,le=h.useCallback(K=>{var ee;i||s||(m==null||m(),(ee=C==null?void 0:C.onFocus)==null||ee.call(C,K))},[m,C,i,s]),_e=h.useCallback(K=>{var ee;if(K.key==="Tab"){const de=K.target.closest(`.${R.wrapper}`);de&&de.classList.add(R.tabFocused)}(ee=C==null?void 0:C.onKeyUp)==null||ee.call(C,K)},[C]),ce=h.useCallback(K=>{var de;const ee=K.target.closest(`.${R.wrapper}`);ee&&ee.classList.remove(R.tabFocused),y==null||y(),(de=C==null?void 0:C.onBlur)==null||de.call(C,K)},[y,C]),ve=h.useCallback(K=>{var de;if(i||s)return;const ee=K.target.value;ne(ee),E==null||E(ee),(de=C==null?void 0:C.onChange)==null||de.call(C,K)},[E,C,i,s]);return h.useEffect(()=>{ne(L)},[L]),o.jsx(xt.Wrapper,{ref:te,size:r,error:n,disabled:i||s,loading:s,className:U.clsx(a,t==="textarea"&&R["textarea-wrapper"]),wrapperProps:w,wrapperStyles:x,floatingLabelStyles:S,prefixStyles:$,suffixStyles:A,labelProps:T,helperProps:F,showLimit:O,maxLength:V,hint:W,showHint:P,showHintOnEmpty:k,prefix:f,suffix:g,placeholder:c,showLabel:_,labelClassName:d,hasValue:Se,helper:p,id:re,value:ye,showGrip:Q,resize:Z,...q,children:o.jsx(xt,{component:t,size:r,value:ye,placeholder:c,disabled:i,loading:s,onFocus:le,onBlur:ce,onChange:ve,onKeyUp:_e,maxLength:V,truncate:G,"data-empty":!Se,shouldShowFloatingLabelClass:ue,style:t==="textarea"?D:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${re}-error`:void 0,id:re,resize:Z,...C})})}),jt=({className:t="",style:r,size:a="md",color:n="currentColor",onClick:i,...s})=>{const _={display:"inline-block",color:n,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return o.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...s,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},J={SMALL:"small",MEDIUM:"medium",LARGE:"large"},_s=(t,r,a,n)=>{switch(t){case J.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case J.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case J.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},fs=t=>{switch(t){case J.LARGE:return"56px";case J.MEDIUM:return"48px";case J.SMALL:return"40px";default:return"48px"}},ps=t=>{switch(t){case J.SMALL:return 8;case J.MEDIUM:case J.LARGE:return 12;default:return 12}},gs=(t,r,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),hs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),bs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),ms=(t,r,a,n)=>{const i=fs(t),s=_s(t,r,a,n),c=ps(t);switch(t){case J.LARGE:return gs(i,s,c);case J.MEDIUM:return hs(i,s,c);case J.SMALL:return bs(i,s,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},ys=h.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:n,maxLength:i,minLength:s,autoComplete:c,autoFocus:_,size:d=J.MEDIUM,inputProps:p,error:f,disabled:g,loading:b,helper:m,prefix:y,suffix:E,clearable:L=!1,id:w,showLabel:x=!0,onFocus:S,onBlur:$,className:A,truncate:D=!0,hint:T,showHint:F=!1,showHintOnEmpty:O=!1,wrapperProps:V,labelProps:C,helperProps:W,...P},k)=>{const G=(t||"").length>0,Z=d===J.LARGE,Q=!!y,q=Z&&x&&!y,te=L&&G&&!(g||b),ae=()=>{r==null||r("")},re=te?o.jsx(jt,{size:d===J.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ae,style:{cursor:"pointer"},"data-testid":"x-icon"}):E,me={type:a,minLength:s,autoComplete:c,autoFocus:_,...p},ne=ms(d,q,G,Q);return o.jsx(Rt,{size:d,error:f,disabled:g||b,loading:b,helper:m,prefix:y,suffix:re,id:w,showLabel:q,onFocus:S,onBlur:$,onChange:r,value:t||"",placeholder:n,className:A,wrapperStyles:ne.wrapperStyles,floatingLabelStyles:ne.floatingLabelStyles,prefixStyles:ne.prefixStyles,suffixStyles:ne.suffixStyles,wrapperProps:V,labelProps:C,helperProps:W,showLimit:!1,maxLength:i,inputProps:me,hint:T,showHint:F,showHintOnEmpty:O,truncate:D,...P})}),ie={SMALL:"small",MEDIUM:"medium"},Ue={SMALL:"12px",MEDIUM:"16px"},vs={SMALL:"xs",MEDIUM:"sm"},Pe={FILL:"fill",FIXED:"fixed"},Ze={SMALL:"112px",MEDIUM:"56px"},$e={SMALL:"48px",MEDIUM:"22px"},pe={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},be={SMALL:48,MEDIUM:56,LARGE:112},xs=(t,r)=>{if(t===ie.SMALL)return Ze.SMALL;if(r)return`${r}px`;switch(t){case ie.MEDIUM:return Ze.MEDIUM;default:return Ze.MEDIUM}},Cs=(t,r)=>{if(t===ie.SMALL)return $e.SMALL;if(r)switch(r){case be.SMALL:case be.MEDIUM:return $e.MEDIUM;case be.LARGE:return $e.SMALL;default:return $e.MEDIUM}switch(t){case ie.MEDIUM:return $e.MEDIUM;default:return $e.MEDIUM}},ws=(t,r,a)=>{if(t===ie.SMALL)return pe.SMALL;if(r)switch(r){case be.SMALL:return pe.MEDIUM_WITH_PREFIX;case be.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;case be.LARGE:return pe.MEDIUM;default:return pe.MEDIUM}switch(t){case ie.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;default:return pe.MEDIUM}},Ss=(t,r)=>{if(t===ie.SMALL)return"small";if(r)switch(r){case be.SMALL:return"small";case be.MEDIUM:return"medium";case be.LARGE:return"medium";default:return"medium"}return t},Es=t=>vs[t.toUpperCase()],Ls=t=>Ue[t.toUpperCase()],Ms=(t,r,a,n)=>{const i=xs(t,r),s=Cs(t,r),c=ws(t,r,a);return{wrapperStyles:{minHeight:i,...n===Pe.FILL&&{height:"100%"},...n===Pe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===ie.SMALL?Ue.SMALL:Ue.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===ie.MEDIUM?Ue.MEDIUM:void 0},suffixStyles:{right:Ls(t)},textareaStyles:{minHeight:s,...n===Pe.FILL&&{flex:1,minHeight:0},...n===Pe.FIXED&&r&&{height:s}}}},$s=h.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:n,minLength:i,autoFocus:s,size:c=ie.MEDIUM,textareaProps:_,error:d,disabled:p,loading:f,helper:g,suffix:b,clearable:m=!1,id:y,showLabel:E=!0,onFocus:L,onBlur:w,className:x,rows:S=1,showLimit:$=!1,wrapperProps:A,labelProps:D,helperProps:T,showGrip:F,minHeight:O,resize:V,...C},W)=>{const P=(t||"").length>0,k=E&&!!a&&(c===ie.SMALL||O!==48),G=m&&P&&!(p||f),Z=()=>{r==null||r("")},Q=G?o.jsx(jt,{size:Es(c),color:"var(--icon-secondary)",onClick:Z,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,q=Ms(c,O,k&&P,V),te=Ss(c,O),ae={rows:S,minLength:i,autoFocus:s,resize:V,..._};return o.jsx(Rt,{ref:W,component:"textarea",size:te,error:d,disabled:p||f,loading:f,helper:g,suffix:Q,id:y,showLabel:k,onFocus:L,onBlur:w,onChange:r,value:t||"",placeholder:a,className:x,"data-floating-label":k,wrapperStyles:q.wrapperStyles,floatingLabelStyles:q.floatingLabelStyles,suffixStyles:q.suffixStyles,textareaStyles:q.textareaStyles,wrapperProps:A,labelProps:D,helperProps:T,showLimit:$&&(O===112||c===ie.SMALL),maxLength:n,inputProps:ae,resize:V,showGrip:F,...C})}),Is="_helper_1vhgl_16",qe={helper:Is,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Rs=({title:t,error:r,className:a="",style:n,disabled:i=!1,"data-testid":s,"aria-label":c,"aria-describedby":_})=>{const d=!!r,p=U.clsx(qe.helper,d&&qe["helper--error"],i&&qe["helper--disabled"],a),f=i?t:r||t;return o.jsx("div",{className:p,style:n,"data-testid":s,"aria-label":c,"aria-describedby":_,children:o.jsx("p",{children:f})})},js="_segmentedControl_1yvz7_5",ks="_segment_1yvz7_5",Ts="_activeSegmentIndicator_1yvz7_51",As="_stretched_1yvz7_82",Ns="_s_1yvz7_5",Ds="_icon_1yvz7_90",Os="_label_1yvz7_94",Ps="_m_1yvz7_98",Us="_l_1yvz7_94",Ie={segmentedControl:js,segment:ks,activeSegmentIndicator:Ts,stretched:As,s:Ns,icon:Ds,label:Os,m:Ps,l:Us},Ct={s:we["typography-label-3-regular"],m:we["typography-label-2-regular"],l:we["typography-label-2-regular"]},zs=t=>{var x;const{className:r,defaultValue:a,value:n,size:i="m",segments:s,stretched:c,mode:_="label",onChange:d}=t,p=h.useId(),[f,g]=h.useState(a||s[0].value),[b,m]=h.useState({width:0,left:0}),y=h.useRef(null);h.useEffect(()=>{n&&g(n)},[n]),h.useEffect(()=>{E()},[f,s,i,c,_]);const E=()=>{if(!(y!=null&&y.current))return;const S=y.current.querySelector('[data-is-active-segment="true"]');S&&m({width:S.offsetWidth,left:S.offsetLeft})},L=(x=s.find(S=>S.value===f))==null?void 0:x.label,w=S=>{g(S),d==null||d(S)};return(s==null?void 0:s.length)===0?null:o.jsxs("div",{className:U.clsx(Ie.segmentedControl,Ie[i],Ie[_],{[Ie.stretched]:c},r),"data-testid":"segmented-control-container",ref:y,children:[s==null?void 0:s.map(({label:S,value:$},A)=>{const D=()=>w($);return o.jsxs(h.Fragment,{children:[o.jsx("input",{id:p+JSON.stringify($),value:JSON.stringify($),type:"radio",checked:f===$,onClick:D}),o.jsx("label",{"data-is-active-segment":f===$,className:U.clsx(Ie.segment,Ct[i]),htmlFor:p+JSON.stringify($),"data-testid":"segmented-control-segment",children:S})]},Je(JSON.stringify($))+A)}),o.jsx("div",{className:U.clsx(Ie.activeSegmentIndicator,Ct[i]),"data-testid":"segmented-control-active-segment",style:{width:b.width,left:b.left},children:L})]})};exports.Avatar=pr;exports.Badge=Sr;exports.Button=Ba;exports.Checkbox=En;exports.ConfigProvider=Gr;exports.Helper=Rs;exports.Image=Br;exports.Loader=Et;exports.SegmentedControl=zs;exports.Tag=un;exports.TextArea=$s;exports.TextInput=ys;exports.Typography=Pn;exports.enUS=Lt;exports.ruRU=Zr;exports.useConfig=$t;exports.useLocale=Fr;