skillgrid 0.0.21-dev-39472-brand-colors.1146058 → 0.0.21-dev-39768-inputs.1152485

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,6 +35,8 @@ 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;
38
40
  /** Максимальная длина */
39
41
  maxLength?: number;
40
42
  /** CSS классы */
@@ -102,6 +104,8 @@ export interface InputWrapperProps extends Omit<HTMLAttributes<HTMLDivElement>,
102
104
  prefix?: React.ReactNode;
103
105
  /** Суффикс (иконка справа) */
104
106
  suffix?: React.ReactNode;
107
+ /** Обработчик клика по суффиксу */
108
+ onSuffixClick?: () => void;
105
109
  /** Плейсхолдер для поля */
106
110
  placeholder?: string;
107
111
  /** Показывать ли метку */
@@ -1,4 +1,4 @@
1
- import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes } from 'react';
1
+ import { ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, HTMLAttributes, ChangeEvent } from 'react';
2
2
  /**
3
3
  * Размеры для компонента InputBase
4
4
  */
@@ -43,10 +43,14 @@ 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;
46
50
  /** Обработчик изменения значения */
47
- onChange?: (value: string) => void;
51
+ onChange?: (text: string, e?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
48
52
  /** Текущее значение */
49
- value?: string;
53
+ value?: string | null;
50
54
  /** Стили для обертки */
51
55
  wrapperProps?: HTMLAttributes<HTMLDivElement>;
52
56
  /** Стили для метки */
@@ -1,4 +1,4 @@
1
- import { TextareaHTMLAttributes, ReactNode } from 'react';
1
+ import { TextareaHTMLAttributes, ReactNode, ChangeEvent } 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?: (value: string | null) => void;
13
+ onChange?: (text: string, e?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
14
14
  /** Плейсхолдер для поля */
15
15
  placeholder?: string;
16
16
  /** Максимальная длина */
@@ -41,6 +41,10 @@ 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;
44
48
  /** Дополнительные CSS классы */
45
49
  className?: string;
46
50
  /** Количество строк для textarea */
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, ReactNode } from 'react';
1
+ import { InputHTMLAttributes, ReactNode, ChangeEvent } 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?: (value: string | null) => void;
13
+ onChange?: (text: string, e?: ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => void;
14
14
  /** Плейсхолдер для поля */
15
15
  placeholder?: string;
16
16
  /** Тип элемента input */
@@ -47,6 +47,10 @@ export interface TextInputProps {
47
47
  onFocus?: () => void;
48
48
  /** Обработчик потери фокуса */
49
49
  onBlur?: () => void;
50
+ /** Обработчик клика по суффиксу */
51
+ onSuffixClick?: () => void;
52
+ /** Обработчик очистки поля */
53
+ onClear?: () => void;
50
54
  /** Дополнительные CSS классы */
51
55
  className?: string;
52
56
  /** Включить обрезку текста с многоточием */
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const m=require("react"),G=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 xt=Xt(m);function Qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ne={exports:{}},Ie={};/**
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={};/**
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 Ie;ct=1;var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=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,h=null;p!==void 0&&(b=""+p),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(h=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:h,props:g,_owner:o.current}}return Ie.Fragment=a,Ie.jsx=c,Ie.jsxs=c,Ie}var je={};/**
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={};/**
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=m,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=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"),h=Symbol.for("react.offscreen"),v=Symbol.iterator,S="@@iterator";function E(e){if(e===null||typeof e!="object")return null;var l=v&&e[v]||e[S];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var l=arguments.length,u=new Array(l>1?l-1:0),y=1;y<l;y++)u[y-1]=arguments[y];$("error",e,u)}}function $(e,l,u){{var y=w.ReactDebugCurrentFrame,I=y.getStackAddendum();I!==""&&(l+="%s",u=u.concat([I]));var T=u.map(function(M){return String(M)});T.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,T)}}var A=!1,N=!1,P=!1,k=!1,F=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||F||e===o||e===p||e===f||k||e===h||A||N||P||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===D||e.getModuleId!==void 0))}function x(e,l,u){var y=e.displayName;if(y)return y;var I=l.displayName||l.name||"";return I!==""?u+"("+I+")":u}function W(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")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 o: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 x(e,e.render,"ForwardRef");case g:var y=e.displayName||null;return y!==null?y:O(e.type)||"Memo";case b:{var I=e,T=I._payload,M=I._init;try{return O(M(T))}catch{return null}}}return null}var j=Object.assign,H=0,Z,Q,q,te,ae,re,me;function ne(){}ne.__reactDisabledLog=!0;function ye(){{if(H===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})}H++}}function we(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:Z}),info:j({},e,{value:Q}),warn:j({},e,{value:q}),error:j({},e,{value:te}),group:j({},e,{value:ae}),groupCollapsed:j({},e,{value:re}),groupEnd:j({},e,{value:me})})}H<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=w.ReactCurrentDispatcher,ue;function le(e,l,u){{if(ue===void 0)try{throw Error()}catch(I){var y=I.stack.trim().match(/\n( *(at )?)/);ue=y&&y[1]||""}return`
18
- `+ue+e}}var _e=!1,ce;{var xe=typeof WeakMap=="function"?WeakMap:Map;ce=new xe}function K(e,l){if(!e||_e)return"";{var u=ce.get(e);if(u!==void 0)return u}var y;_e=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=Se.current,Se.current=null,ye();try{if(l){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(X){y=X}Reflect.construct(e,[],M)}else{try{M.call()}catch(X){y=X}e.call(M.prototype)}}else{try{throw Error()}catch(X){y=X}e()}}catch(X){if(X&&y&&typeof X.stack=="string"){for(var L=X.stack.split(`
19
- `),Y=y.stack.split(`
20
- `),U=L.length-1,V=Y.length-1;U>=1&&V>=0&&L[U]!==Y[V];)V--;for(;U>=1&&V>=0;U--,V--)if(L[U]!==Y[V]){if(U!==1||V!==1)do if(U--,V--,V<0||L[U]!==Y[V]){var se=`
21
- `+L[U].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(U>=1&&V>=0);break}}}finally{_e=!1,Se.current=T,we(),Error.prepareStackTrace=I}var Le=e?e.displayName||e.name:"",ve=Le?le(Le):"";return typeof e=="function"&&ce.set(e,ve),ve}function ee(e,l,u){return K(e,!1)}function de(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Te(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 Te(e.type,l,u);case b:{var y=e,I=y._payload,T=y._init;try{return Te(T(I),l,u)}catch{}}}return""}var $e=Object.prototype.hasOwnProperty,Ye={},Je=w.ReactDebugCurrentFrame;function Ae(e){if(e){var l=e._owner,u=Te(e.type,e._source,l?l.type:null);Je.setExtraStackFrame(u)}else Je.setExtraStackFrame(null)}function It(e,l,u,y,I){{var T=Function.call.bind($e);for(var M in e)if(T(e,M)){var L=void 0;try{if(typeof e[M]!="function"){var Y=Error((y||"React class")+": "+u+" type `"+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[M]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}L=e[M](l,M,y,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){L=U}L&&!(L instanceof Error)&&(Ae(I),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",u,M,typeof L),Ae(null)),L instanceof Error&&!(L.message in Ye)&&(Ye[L.message]=!0,Ae(I),C("Failed %s type: %s",u,L.message),Ae(null))}}}var jt=Array.isArray;function Ue(e){return jt(e)}function kt(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,u=l&&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 C("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=w.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},et,tt;function Nt(e){if($e.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Dt(e){if($e.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Ot(e,l){typeof e.ref=="string"&&Qe.current}function Pt(e,l){{var u=function(){et||(et=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Ut(e,l){{var u=function(){tt||(tt=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Bt=function(e,l,u,y,I,T,M){var L={$$typeof:r,type:e,key:l,ref:u,props:M,_owner:T};return L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(L,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L};function Ft(e,l,u,y,I){{var T,M={},L=null,Y=null;u!==void 0&&(Xe(u),L=""+u),Dt(l)&&(Xe(l.key),L=""+l.key),Nt(l)&&(Y=l.ref,Ot(l,I));for(T in l)$e.call(l,T)&&!At.hasOwnProperty(T)&&(M[T]=l[T]);if(e&&e.defaultProps){var U=e.defaultProps;for(T in U)M[T]===void 0&&(M[T]=U[T])}if(L||Y){var V=typeof e=="function"?e.displayName||e.name||"Unknown":e;L&&Pt(M,V),Y&&Ut(M,V)}return Bt(e,L,Y,I,y,Qe.current,M)}}var Be=w.ReactCurrentOwner,at=w.ReactDebugCurrentFrame;function Ee(e){if(e){var l=e._owner,u=Te(e.type,e._source,l?l.type:null);at.setExtraStackFrame(u)}else at.setExtraStackFrame(null)}var Fe;Fe=!1;function ze(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function rt(){{if(Be.current){var e=O(Be.current.type);if(e)return`
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`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function zt(e){return""}var nt={};function Wt(e){{var l=rt();if(!l){var u=typeof e=="string"?e:e.displayName||e.name;u&&(l=`
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=`
24
24
 
25
- Check the top-level render call using <`+u+">.")}return l}}function st(e,l){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Wt(l);if(nt[u])return;nt[u]=!0;var y="";e&&e._owner&&e._owner!==Be.current&&(y=" It was passed a child from "+O(e._owner.type)+"."),Ee(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,y),Ee(null)}}function ot(e,l){{if(typeof e!="object")return;if(Ue(e))for(var u=0;u<e.length;u++){var y=e[u];ze(y)&&st(y,l)}else if(ze(e))e._store&&(e._store.validated=!0);else if(e){var I=E(e);if(typeof I=="function"&&I!==e.entries)for(var T=I.call(e),M;!(M=T.next()).done;)ze(M.value)&&st(M.value,l)}}}function Vt(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 y=O(l);It(u,e.props,"prop",y,e)}else if(l.PropTypes!==void 0&&!Fe){Fe=!0;var I=O(l);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ht(e){{for(var l=Object.keys(e.props),u=0;u<l.length;u++){var y=l[u];if(y!=="children"&&y!=="key"){Ee(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),Ee(null);break}}e.ref!==null&&(Ee(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ee(null))}}var it={};function lt(e,l,u,y,I,T){{var M=z(e);if(!M){var L="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(L+=" 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=zt();Y?L+=Y:L+=rt();var U;e===null?U="null":Ue(e)?U="array":e!==void 0&&e.$$typeof===r?(U="<"+(O(e.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):U=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,L)}var V=Ft(e,l,u,I,T);if(V==null)return V;if(M){var se=l.children;if(se!==void 0)if(y)if(Ue(se)){for(var Le=0;Le<se.length;Le++)ot(se[Le],e);Object.freeze&&Object.freeze(se)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ot(se,e)}if($e.call(l,"key")){var ve=O(e),X=Object.keys(l).filter(function(Kt){return Kt!=="key"}),We=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!it[ve+We]){var Jt=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
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:
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,ve,Jt,ve),it[ve+We]=!0}}return e===n?Ht(V):Vt(V),V}}function Gt(e,l,u){return lt(e,l,u,!0)}function Zt(e,l,u){return lt(e,l,u,!1)}var qt=Zt,Yt=Gt;je.Fragment=n,je.jsx=qt,je.jsxs=Yt}()),je}var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV==="production"?Ne.exports=ea():Ne.exports=ta()),Ne.exports}var i=aa();const ra=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",sa="_button_1abee_213",oa="_disabled_1abee_237",ia="_loading_1abee_237",la="_neutral_1abee_259",ca="_accent_1abee_263",da="_positive_1abee_267",ua="_negative_1abee_271",_a="_contrast_1abee_275",fa="_special_1abee_279",pa="_primary_1abee_284",ga="_secondary_1abee_285",ba="_tertiary_1abee_286",ha="_label_1abee_321",ma="_rightGroup_1abee_333",ya="_iconOnly_1abee_349",xa="_large_1abee_357",va="_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",B={button:sa,disabled:oa,loading:ia,neutral:la,accent:ca,positive:da,negative:ua,contrast:_a,special:fa,primary:pa,secondary:ga,tertiary:ba,label:ha,rightGroup:ma,iconOnly:ya,large:xa,medium:va,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:o,children:s,postfix:c,showSubcaption:_,subcaption:d,size:p})=>{if(t)return i.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 i.jsxs(i.Fragment,{children:[r&&(a||f)&&i.jsx("span",{"data-testid":"button-badge",className:G.clsx(B.badge,B[`badge${f?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[B.circular]:b&&!f}),children:!f&&a}),_&&p!=="s"&&p!=="xs"?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),i.jsx("span",{"data-testid":"button-subcaption",className:B.subcaption,children:d})]}):s?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),i.jsxs("div",{"data-testid":"button-right-group",className:B.rightGroup,children:[o&&i.jsx("span",{"data-testid":"button-icon",className:B.icon,children:o}),c&&i.jsx("span",{"data-testid":"button-postfix",className:B.postfix,children:c})]})]}):i.jsx("span",{"data-testid":"button-icon",className:B.icon,children:o})]})},Ua=m.forwardRef((t,r)=>{const{mode:a="primary",size:n="m",buttonStyle:o="neutral",loading:s=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:p,showSubcaption:f=!1,subcaption:g,stretched:b=!1,spaceBetween:h=!1,icon:v,postfix:S,className:E,children:w}=t,C=c,$=s,A=!C&&!$,N=!!v&&!w,P=G.clsx(B.button,B[n],B[a],B[o],{[B.disabled]:C,[B.loading]:$,[B.stretched]:b,[B.spaceBetween]:h&&b,[B.withSubcaption]:f&&g&&n!=="s"&&n!=="xs",[B.iconOnly]:N},E),k={isLoading:$,showBadge:_,badgeValue:p,badgeSize:d,icon:v,children:w,postfix:S,showSubcaption:f,subcaption:g,size:n};if(ra(t)){const{href:F,onClick:D,mode:z,size:x,buttonStyle:W,loading:O,disabled:j,showBadge:H,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:we,children:Se,"data-testid":ue,style:le,..._e}=t,ce=xe=>{A&&D&&D(xe)};return i.jsx("a",{ref:r,className:P,href:A?F:void 0,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":C||$,style:le,..._e,children:i.jsx(_t,{...k})})}if(na(t)){const{type:F="button",onClick:D,mode:z,size:x,buttonStyle:W,loading:O,disabled:j,showBadge:H,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:we,children:Se,"data-testid":ue,style:le,..._e}=t,ce=xe=>{A&&D&&D(xe)};return i.jsx("button",{ref:r,type:F,className:P,disabled:C,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":C||$,style:le,..._e,children:i.jsx(_t,{...k})})}return null});var Ve={exports:{}};/*!
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:{}};/*!
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 ft;function Ba(){return ft||(ft=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",c=0;c<arguments.length;c++){var _=arguments[c];_&&(s=o(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=o(c,_));return c}function o(s,c){return c?s?s+" "+c:s+c:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Ve)),Ve.exports}var Fa=Ba();const be=Qt(Fa),za="_avatar_1ob17_4",Wa="_clickable_1ob17_23",Va="_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:Wa,icon:Va,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"},pt=99;function Ja(t){return t<pt?`+${t}`:`${pt}+`}function vt(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let n=0;n<r.length;n++){const o=r.charCodeAt(n);a=(a<<5)+a+o}return a>>>0}const Ka=["red","orange","yellow","green","blue","lightblue","purple"];function Xa(t,r=Ka){const a=vt(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},qe=m.forwardRef((t,r)=>{const{style:a,size:n=40,isLoading:o=!1,isDisabled:s=!1,shape:c="circle",variant:_="light",placeholderType:d="neutral",name:p="",imgSrc:f,imgAlt:g="",icon:b,imgProps:h,colorScheme:v,"data-testid":S,...E}=t,{onClick:w,onPointerDown:C}=E,A=!s&&!o&&(!!w||!!C),[N,P]=m.useState(!f),k=f&&!N?"image":b?"icon":p?"name":"placeholder",F=k==="name"?v||Xa(p):v||"gray",D=be(oe.avatar,oe[c],oe[`size-${n}`],oe[`variant-${_}`],oe[`color-${F}`],{[oe.disabled]:s,[oe.loading]:o,[oe.clickable]:A}),z={icon:()=>i.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:be(oe.icon),children:b==null?void 0:b({})}),name:()=>i.jsx("span",{role:"textbox","data-testid":"avatar-name",className:be(oe.name),title:g,children:Qa(p)}),placeholder:()=>i.jsx("img",{...h,"data-testid":"avatar-placeholder",className:oe.image,src:sr[d],alt:g}),image:()=>i.jsx("img",{"data-testid":"avatar-image",...h,className:oe.image,src:f,alt:g,onLoad:()=>P(!1),onError:W=>{var O;P(!0),(O=h==null?void 0:h.onError)==null||O.call(h,W)}})},x=W=>{A&&(w==null||w(W))};return i.jsx("div",{ref:r,onClick:x,className:D,style:a,"data-testid":S,"aria-disabled":s||o,children:z[k](null)})}),or="_avatarGroup_157g4_1",ir={avatarGroup:or};let lr=(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,o,s,c){const _=Math.min(o,s)/2,d=Math.min(c,_),p=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),f=[`M${a+d},${n}`,`L${a+o-d},${n}`,`A${d},${d} 0 0 1 ${a+o},${n+d}`,`L${a+o},${n+s-d}`,`A${d},${d} 0 0 1 ${a+o-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 dr=2,ur=t=>{const{avatars:r=[],overflowCount:a=0,size:n=40,overlap:o=.3,shape:s="circle",overflowOnClick:c}=t,_=n*o,d=-_+dr,p=er(n,s),g=m.useRef(lr()).current.toString(),b=be(ir.avatarGroup),h=cr(n,n,n-_,0,n,n,p);return r.length===0?null:i.jsxs("div",{className:b,children:[r.map((v,S,E)=>{const w=S+1>=E.length;return i.jsx("div",{style:{clipPath:w&&!a?void 0:`url(#${g})`,marginRight:d},children:i.jsx(qe,{size:n,shape:s,...v})},vt(v)+S)}),a>0&&i.jsx("div",{style:{marginRight:d},children:i.jsx(qe,{size:n,shape:s,onClick:c,icon:()=>Ja(a),colorScheme:"gray"})}),i.jsx("svg",{width:"0",height:"0",children:i.jsx("clipPath",{id:`${g}`,children:i.jsx("path",{clipPathUnits:"objectBoundingBox",d:h,clipRule:"evenodd"})})})]})},_r=Object.assign(qe,{Group:ur}),fr="_wrapper_1ncab_5",pr="_badge__container_1ncab_6",gr="_badge__content_1ncab_7",br="_interactive_1ncab_20",hr="_disabled_1ncab_21",mr="_icon_1ncab_22",fe={wrapper:fr,badge__container:pr,badge__content:gr,interactive:br,disabled:hr,icon:mr,"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"},yr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),xr=t=>{if(!t)return null;let r=t;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!yr(n))return n;r=r.parentElement}return null},vr=()=>{const t=m.useRef(null),[r,a]=m.useState(null);return m.useEffect(()=>{if(t.current){const n=xr(t.current);a(n)}},[]),{ref:t,bgColor:r}},Cr=m.forwardRef((t,r)=>{const{icon:a,children:n,variant:o="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":h="badge",...v}=t,{onClick:S,onPointerDown:E}=v,{ref:w,bgColor:C}=vr(),$=f||C,N=!g&&(!!S||!!E),P=be(fe.badge__container,fe[`position-${d}`]),k=be(b,fe.badge__content,fe[`color-${c}`],fe[`variant-${o}`],{[fe.icon]:!!a,[fe.interactive]:N,[fe.disabled]:g}),F={"--badge-height":`${_}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...$&&{"--badge-cutout-bg":$},...o==="transparent"&&{"--badge-cutout-bg":"transparent"}},D=(a==null?void 0:a({}))||s,z=x=>{N&&(S==null||S(x))};return i.jsxs("div",{className:fe.wrapper,ref:w,"data-testid":h+"-wrapper",children:[n,i.jsx("span",{className:P,style:F,"data-testid":h+"-container",children:i.jsx("span",{...v,onClick:z,className:k,"data-testid":h+"-content",ref:r,"aria-disabled":g,children:D})})]})}),wr="_container_op5yl_7",Sr="_image_op5yl_22",Er="_loading_op5yl_34",He={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",ke={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=m.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":n="loader",style:o,...s},c)=>{const _=be(ke.loader,ke[r],ke[`size-${t}`],a);return i.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:o,...s,children:i.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=m.forwardRef((t,r)=>{const{loading:a=!1,size:n=24,variant:o="accent",children:s,className:c,style:_,"data-testid":d,...p}=t,f=be(ke.container,c);return i.jsxs("div",{ref:r,className:f,style:_,"data-testid":d,...p,children:[s,a&&i.jsx("div",{className:ke.overlay,children:i.jsx(Ct,{size:n,variant:o,"data-testid":`${d}-spinner`})})]})}),wt=m.forwardRef((t,r)=>t.children?i.jsx(Or,{ref:r,...t}):i.jsx(Ct,{ref:r,...t})),Pr=({width:t=48,height:r=48,className:a,"data-testid":n})=>i.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:i.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=m.forwardRef((t,r)=>{const{alt:a="",loading:n="lazy",src:o,isLoading:s=!1,className:c,"data-testid":_="image",onError:d,onLoad:p,...f}=t,[g,b]=m.useState("loading"),h=g==="error",v=(s||g==="loading")&&!h,S=g==="loaded"&&!s,E=be(He.image,{[He.loading]:v},c),w=m.useCallback(A=>{b("loaded"),p==null||p(A)},[p]),C=m.useCallback(A=>{b("error"),d==null||d(A)},[d]),$={loader:i.jsxs(m.Fragment,{children:[i.jsx(wt,{size:48,variant:"special","data-testid":`${_}-loader`}),i.jsx("img",{alt:a,src:o,onLoad:w,onError:C,style:{display:"none"}})]}),error:i.jsx(Pr,{"data-testid":`${_}-fallback`}),image:i.jsx("img",{ref:r,alt:a,"data-testid":_,loading:n,src:o,className:E})};return m.useEffect(()=>{if(!o){b("error");return}b("loading")},[o]),i.jsxs("div",{className:He.container,"data-testid":`${_}-container`,...f,children:[v&&$.loader,h&&$.error,S&&$.image]})}),St={},Et=m.createContext({locale:St}),Lt=()=>{const t=m.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={},Wr={},Vr=({locale:t={},theme:r,children:a,className:n})=>(m.useLayoutEffect(()=>{if(r){const o=document.documentElement;return Object.entries(r).forEach(([s,c])=>{o.style.setProperty(s,c)}),()=>{Object.keys(r).forEach(s=>{o.style.removeProperty(s)})}}},[r]),i.jsxs(m.Fragment,{children:[i.jsx("div",{"data-testid":"ConfigProvider-component",className:G.clsx(Fr,zr,Wr,n)}),i.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",Ce={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},Pe={"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=m.forwardRef((t,r)=>{const{className:a,children:n,componentStyle:o="neutral",size:s="medium",disabled:c=!1,showLabel:_=!!n,slotStart:d,slotEnd:p,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":b}=t,{className:h,...v}=f,{className:S,...E}=g;return i.jsxs("div",{className:G.clsx(Ce.tag,Ce[s],Ce[o],{[Ce.disabled]:c,[Pe["typography-label-3-regular"]]:s==="medium",[Pe["typography-subtitle-1-semibold"]]:s==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&i.jsx("span",{className:G.clsx([Ce.iconWrapper,h]),...v,children:d}),_&&i.jsx("span",{className:G.clsx([Ce.label]),children:n}),p&&i.jsx("span",{className:G.clsx([Ce.iconWrapper,S]),...E,children:p})]})}),dn="_checkbox_qo5f5_43",un="_input_qo5f5_59",_n="_icon_qo5f5_67",fn="_container_qo5f5_84",pn="_error_qo5f5_135",gn="_checkboxWrapper_qo5f5_147",bn="_medium_qo5f5_201",hn="_large_qo5f5_206",mn="_label_qo5f5_247",ge={checkbox:dn,input:un,icon:_n,container:fn,error:pn,checkboxWrapper:gn,medium:bn,large:hn,label:mn},yn=({width:t=12,height:r=9,className:a="",color:n="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.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})}),xn=({width:t=12,height:r=2,className:a="",color:n="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.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})}),vn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Cn=({size:t,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:o})=>{const{width:s,height:c}=vn[t];return i.jsx("div",{className:ge.icon,"data-testid":`${o}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?i.jsx(xn,{width:s,height:c}):i.jsx(yn,{width:s,height:c})})},wn=m.forwardRef((t,r)=>{const{name:a,value:n,size:o="medium",indeterminate:s=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:p,className:f,containerStyle:g,style:b,children:h,clickableLabel:v=!0,tabIndex:S,onChange:E,"data-testid":w="checkbox"}=t,[C,$]=m.useState(!1),A=n??C,N=d||c,P=!!_,k=A||s,F=G(ge.container,ge[o],p),D=G(ge.checkbox,ge[o],{[ge.error]:P},f),z=j=>{N||($(j.target.checked),E==null||E(j.target.checked,j))},x=j=>{if(j.key==="Enter"&&!N){j.preventDefault();const H=!k;$(H),E==null||E(H)}},W=j=>{v||j.preventDefault()},O=j=>j.stopPropagation();return i.jsxs("label",{className:F,htmlFor:a,style:g,"data-testid":w,"data-clickable-label":v,children:[i.jsx("div",{className:ge.checkboxWrapper,children:i.jsxs("div",{tabIndex:S||0,className:D,style:b,onKeyDown:x,"aria-checked":k,"aria-disabled":N,"aria-invalid":P,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[i.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:k,disabled:N,className:ge.input,onChange:z,onClick:O,"aria-checked":k,"aria-invalid":P,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-input`}),i.jsx(Cn,{name:a,size:o,isChecked:k,isDisabled:N,indeterminate:s,dataTestId:w})]})}),h&&i.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":v,className:ge.label,onClick:W,children:h})]})}),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=xt.forwardRef(({size:a=3,children:n,className:o,"data-testid":s,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c||Nn[a],h=G.clsx(Re.typography,Pe[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},o);return n?i.jsx(b,{ref:g,className:h,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},ht=t=>{const r=xt.forwardRef(({size:a=3,children:n,className:o,"data-testid":s,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c,h=G.clsx(Re.typography,Pe[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},o);return n?i.jsx(b,{ref:g,className:h,"data-testid":s,...f,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_1m6fe_85",Pn="_wrapper_1m6fe_95",Un="_gripHandle_1m6fe_169",Bn="_error_1m6fe_230",Fn="_tabFocused_1m6fe_237",zn="_disabled_1m6fe_262",Wn="_loading_1m6fe_269",Vn="_label_1m6fe_279",Hn="_small_1m6fe_292",Gn="_large_1m6fe_299",Zn="_leftSection_1m6fe_306",qn="_rightSection_1m6fe_315",Yn="_helper_1m6fe_351",Jn="_floatingLabel_1m6fe_376",Kn="_focused_1m6fe_434",Xn="_filled_1m6fe_435",Qn="_medium_1m6fe_469",es="_characterLimit_1m6fe_510",ts="_input_1m6fe_85",as="_textarea_1m6fe_109",rs="_truncate_1m6fe_637",ns="_hint_1m6fe_719",R={inputBase:On,wrapper:Pn,"textarea-wrapper":"_textarea-wrapper_1m6fe_109",gripHandle:Un,error:Bn,tabFocused:Fn,disabled:zn,loading:Wn,label:Vn,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_1m6fe_586","size-medium":"_size-medium_1m6fe_592","size-large":"_size-large_1m6fe_598","with-floating-label":"_with-floating-label_1m6fe_605",truncate:rs,hint:ns,"has-hint":"_has-hint_1m6fe_736"},ss=({width:t=8,height:r=8,className:a,color:n="#AABBCA"})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:i.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=m.useRef(null),n=m.useRef(null);return m.useEffect(()=>{const o=r==="textarea"?a.current:n.current;o&&o.value!==t&&(o.value=t||"")},[t,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},is=(t,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const o=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=o;const c=a.current.closest(`.${R.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return m.useEffect(n,[t,r]),m.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},ls=(t,r,a,n)=>({handleGripMouseDown:m.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-_,h=Math.min(100,d),v=Math.max(h,d+b);c.style.height=`${v}px`},f=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",f)},[t,r,a,n])}),mt=30,cs=m.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:n,disabled:o=!1,loading:s=!1,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:g,style:b,truncate:h=!1,shouldShowFloatingLabelClass:v=!1,"aria-invalid":S,"aria-errormessage":E,id:w,resize:C,...$},A)=>{const{textareaRef:N,inputRef:P,currentRef:k}=os(a,t);if(is(a,C,N),m.useImperativeHandle(A,()=>k.current,[k]),t==="textarea")return i.jsx("textarea",{ref:N,id:w,value:a,placeholder:n,disabled:o||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:G(R.textarea,R[`size-${r}`],v&&R["with-floating-label"],g),style:b,"aria-invalid":S,"aria-errormessage":E,"aria-describedby":E?`${w}-error`:void 0,tabIndex:0,"data-resize":C,...$});if(t==="input")return i.jsx("input",{ref:P,id:w,value:a,placeholder:n,disabled:o||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:G(R.input,R[`size-${r}`],v&&R["with-floating-label"],h&&R.truncate,g),style:b,"aria-invalid":S,"aria-errormessage":E,"aria-describedby":E?`${w}-error`:void 0,tabIndex:0,...$});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${t}". Допустимые значения: 'input', 'textarea'`),null}),Mt=m.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:n=!1,loading:o=!1,className:s,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:p,suffixStyles:f,labelProps:g,helperProps:b,showLimit:h=!1,maxLength:v,hint:S,showHint:E=!1,showHintOnEmpty:w=!1,prefix:C,suffix:$,placeholder:A,showLabel:N=!0,labelClassName:P,hasValue:k=!1,helper:F,id:D,value:z="",resize:x,showGrip:W=!1,...O},j)=>{const H=m.useId(),Z=D||H,Q=E&&S&&(k||w),q=S&&S.length>mt?S.substring(0,mt)+"...":S,te=G(R.wrapper,a&&R.error,n&&R.disabled,o&&R.loading,Q&&R["has-hint"],s),ae=G(R.floatingLabel,R[r],k&&R.filled,P),{handleGripMouseDown:re}=ls(W,n,o,x);return i.jsxs("div",{ref:j,className:R.inputBase,"data-testid":"input-base-wrapper",...O,children:[i.jsxs("div",{className:te,style:_,"data-resize":x,"data-show-grip":W?"true":"false",...c,children:[C&&i.jsx("label",{htmlFor:Z,className:R.leftSection,style:p,children:C}),$&&i.jsx("label",{htmlFor:Z,className:R.rightSection,style:f,children:$}),A&&N&&i.jsx("label",{htmlFor:Z,className:ae,style:d,...g,children:A}),t,W&&!h&&(x==="fixed"||!x)&&i.jsx("div",{className:R.gripHandle,onMouseDown:re,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:i.jsx(ss,{})}),Q&&i.jsx("div",{className:G(R.hint,k&&R.truncate),"data-disabled":n||o,children:q}),h&&v&&i.jsxs("div",{className:R.characterLimit,children:[(z||"").length," из ",v]})]}),F&&i.jsx("div",{className:G(R.helper,a&&R.error,(n||o)&&R.disabled),...b,id:a?`${Z}-error`:void 0,children:F})]})});Mt.displayName="InputWrapperComponent";const yt=Object.assign(cs,{Wrapper:Mt}),Rt=m.forwardRef(({component:t="input",size:r="medium",className:a,error:n=!1,disabled:o=!1,loading:s=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:p,prefix:f,suffix:g,id:b,onFocus:h,onBlur:v,onChange:S,value:E="",wrapperProps:w,wrapperStyles:C,floatingLabelStyles:$,prefixStyles:A,suffixStyles:N,textareaStyles:P,labelProps:k,helperProps:F,showLimit:D=!1,maxLength:z,inputProps:x,hint:W,showHint:O=!1,showHintOnEmpty:j=!1,truncate:H=!1,resize:Z,showGrip:Q=!1,...q},te)=>{const ae=m.useId(),re=b||ae,[me,ne]=m.useState(E),ye=E!==void 0?E:me,we=(ye||"").length>0,ue=_&&(r==="large"||t==="textarea")&&!f,le=m.useCallback(K=>{var ee;o||s||(h==null||h(),(ee=x==null?void 0:x.onFocus)==null||ee.call(x,K))},[h,x,o,s]),_e=m.useCallback(K=>{var ee;if(K.key==="Tab"){const de=K.target.closest(`.${R.wrapper}`);de&&de.classList.add(R.tabFocused)}(ee=x==null?void 0:x.onKeyUp)==null||ee.call(x,K)},[x]),ce=m.useCallback(K=>{var de;const ee=K.target.closest(`.${R.wrapper}`);ee&&ee.classList.remove(R.tabFocused),v==null||v(),(de=x==null?void 0:x.onBlur)==null||de.call(x,K)},[v,x]),xe=m.useCallback(K=>{var de;if(o||s)return;const ee=K.target.value;ne(ee),S==null||S(ee),(de=x==null?void 0:x.onChange)==null||de.call(x,K)},[S,x,o,s]);return m.useEffect(()=>{ne(E)},[E]),i.jsx(yt.Wrapper,{ref:te,size:r,error:n,disabled:o||s,loading:s,className:G.clsx(a,t==="textarea"&&R["textarea-wrapper"]),wrapperProps:w,wrapperStyles:C,floatingLabelStyles:$,prefixStyles:A,suffixStyles:N,labelProps:k,helperProps:F,showLimit:D,maxLength:z,hint:W,showHint:O,showHintOnEmpty:j,prefix:f,suffix:g,placeholder:c,showLabel:_,labelClassName:d,hasValue:we,helper:p,id:re,value:ye,showGrip:Q,resize:Z,...q,children:i.jsx(yt,{component:t,size:r,value:ye,placeholder:c,disabled:o,loading:s,onFocus:le,onBlur:ce,onChange:xe,onKeyUp:_e,maxLength:z,truncate:H,"data-empty":!we,shouldShowFloatingLabelClass:ue,style:t==="textarea"?P:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${re}-error`:void 0,id:re,resize:Z,...x})})}),$t=({className:t="",style:r,size:a="md",color:n="currentColor",onClick:o,...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 i.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,...s,children:i.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},J={SMALL:"small",MEDIUM:"medium",LARGE:"large"},ds=(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"}},us=t=>{switch(t){case J.LARGE:return"56px";case J.MEDIUM:return"48px";case J.SMALL:return"40px";default:return"48px"}},_s=t=>{switch(t){case J.SMALL:return 8;case J.MEDIUM:case J.LARGE:return 12;default:return 12}},fs=(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`}}),ps=(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 o=us(t),s=ds(t,r,a,n),c=_s(t);switch(t){case J.LARGE:return fs(o,s,c);case J.MEDIUM:return ps(o,s,c);case J.SMALL:return gs(o,s,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},hs=m.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:n,maxLength:o,minLength:s,autoComplete:c,autoFocus:_,size:d=J.MEDIUM,inputProps:p,error:f,disabled:g,loading:b,helper:h,prefix:v,suffix:S,clearable:E=!1,id:w,showLabel:C=!0,onFocus:$,onBlur:A,className:N,truncate:P=!0,hint:k,showHint:F=!1,showHintOnEmpty:D=!1,wrapperProps:z,labelProps:x,helperProps:W,...O},j)=>{const H=(t||"").length>0,Z=d===J.LARGE,Q=!!v,q=Z&&C&&!v,te=E&&H&&!(g||b),ae=()=>{r==null||r("")},re=te?i.jsx($t,{size:d===J.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ae,style:{cursor:"pointer"},"data-testid":"x-icon"}):S,me={type:a,minLength:s,autoComplete:c,autoFocus:_,...p},ne=bs(d,q,H,Q);return i.jsx(Rt,{size:d,error:f,disabled:g||b,loading:b,helper:h,prefix:v,suffix:re,id:w,showLabel:q,onFocus:$,onBlur:A,onChange:r,value:t||"",placeholder:n,className:N,wrapperStyles:ne.wrapperStyles,floatingLabelStyles:ne.floatingLabelStyles,prefixStyles:ne.prefixStyles,suffixStyles:ne.suffixStyles,wrapperProps:z,labelProps:x,helperProps:W,showLimit:!1,maxLength:o,inputProps:me,hint:k,showHint:F,showHintOnEmpty:D,truncate:P,...O})}),ie={SMALL:"small",MEDIUM:"medium"},Oe={SMALL:"12px",MEDIUM:"16px"},ms={SMALL:"xs",MEDIUM:"sm"},De={FILL:"fill",FIXED:"fixed"},Ge={SMALL:"112px",MEDIUM:"56px"},Me={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"},he={SMALL:48,MEDIUM:56,LARGE:112},ys=(t,r)=>{if(t===ie.SMALL)return Ge.SMALL;if(r)return`${r}px`;switch(t){case ie.MEDIUM:return Ge.MEDIUM;default:return Ge.MEDIUM}},xs=(t,r)=>{if(t===ie.SMALL)return Me.SMALL;if(r)switch(r){case he.SMALL:case he.MEDIUM:return Me.MEDIUM;case he.LARGE:return Me.SMALL;default:return Me.MEDIUM}switch(t){case ie.MEDIUM:return Me.MEDIUM;default:return Me.MEDIUM}},vs=(t,r,a)=>{if(t===ie.SMALL)return pe.SMALL;if(r)switch(r){case he.SMALL:return pe.MEDIUM_WITH_PREFIX;case he.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;case he.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}},Cs=(t,r)=>{if(t===ie.SMALL)return"small";if(r)switch(r){case he.SMALL:return"small";case he.MEDIUM:return"medium";case he.LARGE:return"medium";default:return"medium"}return t},ws=t=>ms[t.toUpperCase()],Ss=t=>Oe[t.toUpperCase()],Es=(t,r,a,n)=>{const o=ys(t,r),s=xs(t,r),c=vs(t,r,a);return{wrapperStyles:{minHeight:o,...n===De.FILL&&{height:"100%"},...n===De.FIXED&&r&&{height:o},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===ie.SMALL?Oe.SMALL:Oe.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===ie.MEDIUM?Oe.MEDIUM:void 0},suffixStyles:{right:Ss(t)},textareaStyles:{minHeight:s,...n===De.FILL&&{flex:1,minHeight:0},...n===De.FIXED&&r&&{height:s}}}},Ls=m.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:n,minLength:o,autoFocus:s,size:c=ie.MEDIUM,textareaProps:_,error:d,disabled:p,loading:f,helper:g,suffix:b,clearable:h=!1,id:v,showLabel:S=!0,onFocus:E,onBlur:w,className:C,rows:$=1,showLimit:A=!1,wrapperProps:N,labelProps:P,helperProps:k,showGrip:F,minHeight:D,resize:z,...x},W)=>{const O=(t||"").length>0,j=S&&!!a&&(c===ie.SMALL||D!==48),H=h&&O&&!(p||f),Z=()=>{r==null||r("")},Q=H?i.jsx($t,{size:ws(c),color:"var(--icon-secondary)",onClick:Z,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,q=Es(c,D,j&&O,z),te=Cs(c,D),ae={rows:$,minLength:o,autoFocus:s,resize:z,..._};return i.jsx(Rt,{ref:W,component:"textarea",size:te,error:d,disabled:p||f,loading:f,helper:g,suffix:Q,id:v,showLabel:j,onFocus:E,onBlur:w,onChange:r,value:t||"",placeholder:a,className:C,"data-floating-label":j,wrapperStyles:q.wrapperStyles,floatingLabelStyles:q.floatingLabelStyles,suffixStyles:q.suffixStyles,textareaStyles:q.textareaStyles,wrapperProps:N,labelProps:P,helperProps:k,showLimit:A&&(D===112||c===ie.SMALL),maxLength:n,inputProps:ae,resize:z,showGrip:F,...x})}),Ms="_helper_1vhgl_16",Ze={helper:Ms,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Rs=({title:t,error:r,className:a="",style:n,disabled:o=!1,"data-testid":s,"aria-label":c,"aria-describedby":_})=>{const d=!!r,p=G.clsx(Ze.helper,d&&Ze["helper--error"],o&&Ze["helper--disabled"],a),f=o?t:r||t;return i.jsx("div",{className:p,style:n,"data-testid":s,"aria-label":c,"aria-describedby":_,children:i.jsx("p",{children:f})})};exports.Avatar=_r;exports.Badge=Cr;exports.Button=Ua;exports.Checkbox=wn;exports.ConfigProvider=Vr;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 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;