skillgrid 0.0.24 → 0.0.25-dev-38682-image.1172030
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Image/Image.type.d.ts +4 -0
- package/dist/components/InputBase/Input.type.d.ts +4 -0
- package/dist/components/InputBase/InputBase.type.d.ts +7 -3
- package/dist/components/Loader/Loader.type.d.ts +1 -1
- package/dist/components/TextArea/TextArea.type.d.ts +6 -2
- package/dist/components/TextInput/TextInput.type.d.ts +6 -2
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1023 -987
- package/package.json +2 -2
|
@@ -20,6 +20,10 @@ export interface ImageProps extends Omit<React.ImgHTMLAttributes<HTMLImageElemen
|
|
|
20
20
|
* Дополнительный CSS класс
|
|
21
21
|
*/
|
|
22
22
|
className?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Дополнительный CSS класс для контейнера
|
|
25
|
+
*/
|
|
26
|
+
containerClassName?: string;
|
|
23
27
|
/**
|
|
24
28
|
* Test ID для тестирования
|
|
25
29
|
* @default 'image'
|
|
@@ -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?: (
|
|
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
|
/** Стили для метки */
|
|
@@ -9,7 +9,7 @@ export interface BaseLoaderProps {
|
|
|
9
9
|
* Вариант цвета лоадера
|
|
10
10
|
* @default 'accent'
|
|
11
11
|
*/
|
|
12
|
-
variant?: 'accent' | 'neutral' | 'positive' | 'negative' | 'contrast' | 'gray' | 'special';
|
|
12
|
+
variant?: 'accent' | 'neutral' | 'positive' | 'negative' | 'contrast' | 'gray' | 'special' | 'custom';
|
|
13
13
|
/**
|
|
14
14
|
* Дополнительный CSS класс
|
|
15
15
|
*/
|
|
@@ -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?: (
|
|
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?: (
|
|
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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const v=require("react"),B=require("clsx");function Qt(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const xt=Qt(v);function ea(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var De={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 dt;function ta(){if(dt)return
|
|
9
|
+
*/var dt;function ta(){if(dt)return $e;dt=1;var t=v,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(p,d,f){var _,h={},b=null,y=null;f!==void 0&&(b=""+f),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(y=d.ref);for(_ in d)s.call(d,_)&&!n.hasOwnProperty(_)&&(h[_]=d[_]);if(p&&p.defaultProps)for(_ in d=p.defaultProps,d)h[_]===void 0&&(h[_]=d[_]);return{$$typeof:r,type:p,key:b,ref:y,props:h,_owner:l.current}}return $e.Fragment=a,$e.jsx=c,$e.jsxs=c,$e}var Re={};/**
|
|
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 ut;function aa(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var t=
|
|
18
|
-
`+ue+e}}var
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var t=v,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),p=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),x=Symbol.iterator,L="@@iterator";function S(e){if(e===null||typeof e!="object")return null;var i=x&&e[x]||e[L];return typeof i=="function"?i:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var i=arguments.length,u=new Array(i>1?i-1:0),C=1;C<i;C++)u[C-1]=arguments[C];k("error",e,u)}}function k(e,i,u){{var C=w.ReactDebugCurrentFrame,I=C.getStackAddendum();I!==""&&(i+="%s",u=u.concat([I]));var A=u.map(function(M){return String(M)});A.unshift("Warning: "+i),Function.prototype.apply.call(console[e],console,A)}}var O=!1,T=!1,R=!1,N=!1,D=!1,P;P=Symbol.for("react.module.reference");function G(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===n||D||e===l||e===f||e===_||N||e===y||O||T||R||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===p||e.$$typeof===d||e.$$typeof===P||e.getModuleId!==void 0))}function V(e,i,u){var C=e.displayName;if(C)return C;var I=i.displayName||i.name||"";return I!==""?u+"("+I+")":u}function U(e){return e.displayName||"Context"}function m(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case a:return"Portal";case n:return"Profiler";case l:return"StrictMode";case f:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case p:var i=e;return U(i)+".Consumer";case c:var u=e;return U(u._context)+".Provider";case d:return V(e,e.render,"ForwardRef");case h:var C=e.displayName||null;return C!==null?C:m(e.type)||"Memo";case b:{var I=e,A=I._payload,M=I._init;try{return m(M(A))}catch{return null}}}return null}var j=Object.assign,F=0,Z,H,ee,ae,K,re,se;function de(){}de.__reactDisabledLog=!0;function ve(){{if(F===0){Z=console.log,H=console.info,ee=console.warn,ae=console.error,K=console.group,re=console.groupCollapsed,se=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function le(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:Z}),info:j({},e,{value:H}),warn:j({},e,{value:ee}),error:j({},e,{value:ae}),group:j({},e,{value:K}),groupCollapsed:j({},e,{value:re}),groupEnd:j({},e,{value:se})})}F<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ye=w.ReactCurrentDispatcher,ue;function ie(e,i,u){{if(ue===void 0)try{throw Error()}catch(I){var C=I.stack.trim().match(/\n( *(at )?)/);ue=C&&C[1]||""}return`
|
|
18
|
+
`+ue+e}}var me=!1,_e;{var xe=typeof WeakMap=="function"?WeakMap:Map;_e=new xe}function Ae(e,i){if(!e||me)return"";{var u=_e.get(e);if(u!==void 0)return u}var C;me=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var A;A=ye.current,ye.current=null,ve();try{if(i){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(te){C=te}Reflect.construct(e,[],M)}else{try{M.call()}catch(te){C=te}e.call(M.prototype)}}else{try{throw Error()}catch(te){C=te}e()}}catch(te){if(te&&C&&typeof te.stack=="string"){for(var E=te.stack.split(`
|
|
19
|
+
`),X=C.stack.split(`
|
|
20
|
+
`),z=E.length-1,q=X.length-1;z>=1&&q>=0&&E[z]!==X[q];)q--;for(;z>=1&&q>=0;z--,q--)if(E[z]!==X[q]){if(z!==1||q!==1)do if(z--,q--,q<0||E[z]!==X[q]){var ne=`
|
|
21
|
+
`+E[z].replace(" at new "," at ");return e.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",e.displayName)),typeof e=="function"&&_e.set(e,ne),ne}while(z>=1&&q>=0);break}}}finally{me=!1,ye.current=A,le(),Error.prepareStackTrace=I}var Ee=e?e.displayName||e.name:"",Ce=Ee?ie(Ee):"";return typeof e=="function"&&_e.set(e,Ce),Ce}function Be(e,i,u){return Ae(e,!1)}function Fe(e){var i=e.prototype;return!!(i&&i.isReactComponent)}function Y(e,i,u){if(e==null)return"";if(typeof e=="function")return Ae(e,Fe(e));if(typeof e=="string")return ie(e);switch(e){case f:return ie("Suspense");case _:return ie("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Be(e.render);case h:return Y(e.type,i,u);case b:{var C=e,I=C._payload,A=C._init;try{return Y(A(I),i,u)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,ce={},Ke=w.ReactDebugCurrentFrame;function Ne(e){if(e){var i=e._owner,u=Y(e.type,e._source,i?i.type:null);Ke.setExtraStackFrame(u)}else Ke.setExtraStackFrame(null)}function It(e,i,u,C,I){{var A=Function.call.bind(J);for(var M in e)if(A(e,M)){var E=void 0;try{if(typeof e[M]!="function"){var X=Error((C||"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 X.name="Invariant Violation",X}E=e[M](i,M,C,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){E=z}E&&!(E instanceof Error)&&(Ne(I),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",C||"React class",u,M,typeof E),Ne(null)),E instanceof Error&&!(E.message in ce)&&(ce[E.message]=!0,Ne(I),g("Failed %s type: %s",u,E.message),Ne(null))}}}var kt=Array.isArray;function ze(e){return kt(e)}function Tt(e){{var i=typeof Symbol=="function"&&Symbol.toStringTag,u=i&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function At(e){try{return Xe(e),!1}catch{return!0}}function Xe(e){return""+e}function Qe(e){if(At(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Tt(e)),Xe(e)}var et=w.ReactCurrentOwner,Nt={key:!0,ref:!0,__self:!0,__source:!0},tt,at;function Dt(e){if(J.call(e,"ref")){var i=Object.getOwnPropertyDescriptor(e,"ref").get;if(i&&i.isReactWarning)return!1}return e.ref!==void 0}function Ot(e){if(J.call(e,"key")){var i=Object.getOwnPropertyDescriptor(e,"key").get;if(i&&i.isReactWarning)return!1}return e.key!==void 0}function Ut(e,i){typeof e.ref=="string"&&et.current}function Pt(e,i){{var u=function(){tt||(tt=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Bt(e,i){{var u=function(){at||(at=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",i))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Ft=function(e,i,u,C,I,A,M){var E={$$typeof:r,type:e,key:i,ref:u,props:M,_owner:A};return E._store={},Object.defineProperty(E._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(E,"_self",{configurable:!1,enumerable:!1,writable:!1,value:C}),Object.defineProperty(E,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(E.props),Object.freeze(E)),E};function zt(e,i,u,C,I){{var A,M={},E=null,X=null;u!==void 0&&(Qe(u),E=""+u),Ot(i)&&(Qe(i.key),E=""+i.key),Dt(i)&&(X=i.ref,Ut(i,I));for(A in i)J.call(i,A)&&!Nt.hasOwnProperty(A)&&(M[A]=i[A]);if(e&&e.defaultProps){var z=e.defaultProps;for(A in z)M[A]===void 0&&(M[A]=z[A])}if(E||X){var q=typeof e=="function"?e.displayName||e.name||"Unknown":e;E&&Pt(M,q),X&&Bt(M,q)}return Ft(e,E,X,I,C,et.current,M)}}var We=w.ReactCurrentOwner,rt=w.ReactDebugCurrentFrame;function Se(e){if(e){var i=e._owner,u=Y(e.type,e._source,i?i.type:null);rt.setExtraStackFrame(u)}else rt.setExtraStackFrame(null)}var Ve;Ve=!1;function qe(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(We.current){var e=m(We.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function Wt(e){return""}var nt={};function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Wt(e){return""}var nt={};function Vt(e){{var i=st();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
|
|
25
|
+
Check the top-level render call using <`+u+">.")}return i}}function ot(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 C="";e&&e._owner&&e._owner!==We.current&&(C=" It was passed a child from "+m(e._owner.type)+"."),Se(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,C),Se(null)}}function lt(e,i){{if(typeof e!="object")return;if(ze(e))for(var u=0;u<e.length;u++){var C=e[u];qe(C)&&ot(C,i)}else if(qe(e))e._store&&(e._store.validated=!0);else if(e){var I=S(e);if(typeof I=="function"&&I!==e.entries)for(var A=I.call(e),M;!(M=A.next()).done;)qe(M.value)&&ot(M.value,i)}}}function qt(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===h))u=i.propTypes;else return;if(u){var C=m(i);It(u,e.props,"prop",C,e)}else if(i.PropTypes!==void 0&&!Ve){Ve=!0;var I=m(i);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof i.getDefaultProps=="function"&&!i.getDefaultProps.isReactClassApproved&&g("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 C=i[u];if(C!=="children"&&C!=="key"){Se(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",C),Se(null);break}}e.ref!==null&&(Se(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}var it={};function ct(e,i,u,C,I,A){{var M=G(e);if(!M){var E="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(E+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var X=Wt();X?E+=X:E+=st();var z;e===null?z="null":ze(e)?z="array":e!==void 0&&e.$$typeof===r?(z="<"+(m(e.type)||"Unknown")+" />",E=" Did you accidentally export a JSX literal instead of a component?"):z=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,E)}var q=zt(e,i,u,I,A);if(q==null)return q;if(M){var ne=i.children;if(ne!==void 0)if(C)if(ze(ne)){for(var Ee=0;Ee<ne.length;Ee++)lt(ne[Ee],e);Object.freeze&&Object.freeze(ne)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else lt(ne,e)}if(J.call(i,"key")){var Ce=m(e),te=Object.keys(i).filter(function(Xt){return Xt!=="key"}),He=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!it[Ce+He]){var Kt=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";g(`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} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,He,Ce,Kt,Ce),it[Ce+He]=!0}}return e===s?Ht(q):qt(q),q}}function Gt(e,i,u){return ct(e,i,u,!0)}function Zt(e,i,u){return ct(e,i,u,!1)}var Yt=Zt,Jt=Gt;Re.Fragment=s,Re.jsx=Yt,Re.jsxs=Jt}()),Re}var _t;function ra(){return _t||(_t=1,process.env.NODE_ENV==="production"?De.exports=ta():De.exports=aa()),De.exports}var o=ra();const sa=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",oa="_button_1abee_213",la="_disabled_1abee_237",ia="_loading_1abee_237",ca="_neutral_1abee_259",da="_accent_1abee_263",ua="_positive_1abee_267",_a="_negative_1abee_271",pa="_contrast_1abee_275",fa="_special_1abee_279",ga="_primary_1abee_284",ha="_secondary_1abee_285",ba="_tertiary_1abee_286",ya="_label_1abee_321",ma="_rightGroup_1abee_333",va="_iconOnly_1abee_349",xa="_large_1abee_357",Ca="_medium_1abee_361",wa="_small_1abee_365",Sa="_spaceBetween_1abee_370",Ea="_stretched_1abee_384",La="_icon_1abee_349",Ma="_badge_1abee_705",$a="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ja="_badgeSmall_1abee_743",Ia="_badgeExtraSmall_1abee_765",ka="_withSubcaption_1abee_784",Ta="_subcaption_1abee_797",Aa="_loader_1abee_804",Na="_spin_1abee_1",Da="_l_1abee_237",Oa="_m_1abee_361",Ua="_s_1abee_279",Pa="_xs_1abee_869",W={button:oa,disabled:la,loading:ia,neutral:ca,accent:da,positive:ua,negative:_a,contrast:pa,special:fa,primary:ga,secondary:ha,tertiary:ba,label:ya,rightGroup:ma,iconOnly:va,large:xa,medium:Ca,small:wa,spaceBetween:Sa,stretched:Ea,icon:La,badge:Ma,badgeMedium:$a,circular:Ra,badgeSmall:ja,badgeExtraSmall:Ia,withSubcaption:ka,subcaption:Ta,loader:Aa,spin:Na,l:Da,m:Oa,s:Ua,xs:Pa},pt=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:s,icon:l,children:n,postfix:c,showSubcaption:p,subcaption:d,size:f})=>{if(t)return o.jsx("span",{className:W.loader,"data-testid":"button-loader","aria-hidden":"true"});const _=s==="extra-small",h=parseInt(String(a),10),b=!isNaN(h)&&h>=0&&h<=9;return o.jsxs(o.Fragment,{children:[r&&(a||_)&&o.jsx("span",{"data-testid":"button-badge",className:B.clsx(W.badge,W[`badge${_?"ExtraSmall":s==="medium"?"Medium":"Small"}`],{[W.circular]:b&&!_}),children:!_&&a}),p&&f!=="s"&&f!=="xs"?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:W.label,children:n}),o.jsx("span",{"data-testid":"button-subcaption",className:W.subcaption,children:d})]}):n?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:W.label,children:n}),o.jsxs("div",{"data-testid":"button-right-group",className:W.rightGroup,children:[l&&o.jsx("span",{"data-testid":"button-icon",className:W.icon,children:l}),c&&o.jsx("span",{"data-testid":"button-postfix",className:W.postfix,children:c})]})]}):o.jsx("span",{"data-testid":"button-icon",className:W.icon,children:l})]})},Ba=v.forwardRef((t,r)=>{const{mode:a="primary",size:s="m",buttonStyle:l="neutral",loading:n=!1,disabled:c=!1,showBadge:p=!1,badgeSize:d="small",badgeValue:f,showSubcaption:_=!1,subcaption:h,stretched:b=!1,spaceBetween:y=!1,icon:x,postfix:L,className:S,children:w}=t,g=c,k=n,O=!g&&!k,T=!!x&&!w,R=B.clsx(W.button,W[s],W[a],W[l],{[W.disabled]:g,[W.loading]:k,[W.stretched]:b,[W.spaceBetween]:y&&b,[W.withSubcaption]:_&&h&&s!=="s"&&s!=="xs",[W.iconOnly]:T},S),N={isLoading:k,showBadge:p,badgeValue:f,badgeSize:d,icon:x,children:w,postfix:L,showSubcaption:_,subcaption:h,size:s};if(sa(t)){const{href:D,onClick:P,mode:G,size:V,buttonStyle:U,loading:m,disabled:j,showBadge:F,badgeSize:Z,badgeValue:H,showSubcaption:ee,subcaption:ae,stretched:K,spaceBetween:re,icon:se,postfix:de,className:ve,tabIndex:le,children:ye,"data-testid":ue,style:ie,...me}=t,_e=xe=>{O&&P&&P(xe)};return o.jsx("a",{ref:r,className:R,href:O?D:void 0,tabIndex:t.tabIndex,onClick:_e,"data-testid":ue,"aria-disabled":g||k,style:ie,...me,children:o.jsx(pt,{...N})})}if(na(t)){const{type:D="button",onClick:P,mode:G,size:V,buttonStyle:U,loading:m,disabled:j,showBadge:F,badgeSize:Z,badgeValue:H,showSubcaption:ee,subcaption:ae,stretched:K,spaceBetween:re,icon:se,postfix:de,className:ve,tabIndex:le,children:ye,"data-testid":ue,style:ie,...me}=t,_e=xe=>{O&&P&&P(xe)};return o.jsx("button",{ref:r,type:D,className:R,disabled:g,tabIndex:t.tabIndex,onClick:_e,"data-testid":ue,"aria-disabled":g||k,style:ie,...me,children:o.jsx(pt,{...N})})}return null});var Ge={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 _t;function Fa(){return _t||(_t=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var n="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(n=i(n,s(p)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return a.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var c="";for(var p in n)r.call(n,p)&&n[p]&&(c=i(c,p));return c}function i(n,c){return c?n?n+" "+c:n+c:n}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(He)),He.exports}var za=Fa();const $e=ea(za),Wa="_avatar_1kyiq_17",qa="_clickable_1kyiq_41",Ha="_icon_1kyiq_58",Va="_disabled_1kyiq_63",Ga="_loading_1kyiq_68",Za="_image_1kyiq_74",Ya="_name_1kyiq_74",de={avatar:Wa,clickable:qa,icon:Ha,disabled:Va,loading:Ga,image:Za,name:Ya,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},Te={"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"},gt=99;function Ja(t){return t<gt?`+${t}`:`${gt}+`}function Ye(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let s=0;s<r.length;s++){const i=r.charCodeAt(s);a=(a<<5)+a+i}return a>>>0}const Ka=["red","orange","yellow","green","blue","lightblue","purple"];function Xa(t,r=Ka){if(!t)return"gray";const a=Ye(t),s=Math.abs(a)%r.length;return r[s]}const ht=2;function Qa(t){if(!t)return"";const r=t.trim().split(/\s+/);return r.length===1?t.slice(0,ht).toUpperCase():r.map(a=>a[0]).slice(0,ht).join("").toUpperCase()}const er={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Ct(t,r){return r==="circle"?t/2:er[t]||12}const tr={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function ar(t){return tr[t]||"typography-subtitle-1-semibold"}const rr="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",sr="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",nr="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",ir={male:rr,female:sr,org:or,neutral:nr},Ue=b.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:i=!1,isDisabled:n=!1,shape:c="circle",variant:p="filled",placeholderType:d="neutral",name:_,imgSrc:f,imgAlt:g,icon:h,imgProps:y,colorScheme:m,className:E,"data-testid":w,...S}=t,{onClick:x,onPointerDown:j}=S,D=!n&&!i&&(!!x||!!j),[O,k]=b.useState(!1);b.useEffect(()=>{f&&k(!1)},[f]);const P=f&&!O?"image":h?"icon":_?"name":"placeholder",N=m||P==="name"&&Xa(_)||"gray",W=ar(s),C=Ct(s,c),q=G.clsx(E,de.avatar,de[`variant-${p}`],de[`color-${N}`],Te[W],{[de.disabled]:n,[de.loading]:i,[de.clickable]:D}),U={"--avatar-size":`${s}px`,"--avatar-border-radius":`${C}px`,...a},R={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:de.icon,children:h==null?void 0:h({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:de.name,title:g||void 0,children:Qa(_||"")}),placeholder:()=>o.jsx("img",{...y,"data-testid":"avatar-placeholder",className:de.image,src:ir[d],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...y,className:de.image,src:f||void 0,alt:g||void 0,onLoad:()=>k(!1),onError:H=>{var Z;k(!0),(Z=y==null?void 0:y.onError)==null||Z.call(y,H)}})},B=H=>{D&&(x==null||x(H))};return o.jsx("div",{ref:r,onClick:B,className:q,style:U,"data-testid":w,"aria-disabled":n||i,children:R[P](null)})}),lr="_avatarGroup_157g4_1",cr={avatarGroup:lr};let dr=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function ur(t,r,a,s,i,n,c){const p=Math.min(i,n)/2,d=Math.min(c,p),_=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),f=[`M${a+d},${s}`,`L${a+i-d},${s}`,`A${d},${d} 0 0 1 ${a+i},${s+d}`,`L${a+i},${s+n-d}`,`A${d},${d} 0 0 1 ${a+i-d},${s+n}`,`L${a+d},${s+n}`,`A${d},${d} 0 0 1 ${a},${s+n-d}`,`L${a},${s+d}`,`A${d},${d} 0 0 1 ${a+d},${s}`,"Z"].join(" ");return`${_} ${f}`}const pr=3,fr=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:i="circle",overflowCount:n=0,overflowProps:c}=t,p=a*s,d=-p+pr,_=Ct(a,i),g=b.useRef(dr()).current.toString(),h=$e(cr.avatarGroup),y=ur(a,a,a-p,0,a,a,_);return r.length===0?null:o.jsxs("div",{className:h,children:[r.map((m,E,w)=>{const S=E+1>=w.length;if(m.wrapper){const x=m.wrapper;return o.jsx("div",{style:{clipPath:S&&!n?void 0:`url(#${g})`,marginRight:d},children:o.jsx(x,{children:o.jsx(Ue,{size:a,shape:i,...m})})},Ye(m)+E)}return o.jsx("div",{style:{clipPath:S&&!n?void 0:`url(#${g})`,marginRight:d},children:o.jsx(Ue,{size:a,shape:i,...m})},Ye(m)+E)}),n>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(Ue,{size:a,shape:i,icon:()=>Ja(n),colorScheme:"gray",variant:"light",...c})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${g}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:y,clipRule:"evenodd"})})})]})},_r=Object.assign(Ue,{Group:fr}),gr="_wrapper_ecbsu_5",hr="_badge__container_ecbsu_6",br="_badge__content_ecbsu_7",yr="_interactive_ecbsu_20",mr="_disabled_ecbsu_21",xr="_icon_ecbsu_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:yr,disabled:mr,icon:xr,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},vr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),Cr=t=>{if(!t)return null;let r=t;for(;r;){const s=window.getComputedStyle(r).backgroundColor;if(!vr(s))return s;r=r.parentElement}return null},wr=()=>{const t=b.useRef(null),[r,a]=b.useState(null);return b.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=b.forwardRef((t,r)=>{const{icon:a,children:s,variant:i="filled",label:n,isHidden:c=!1,colorScheme:p="red",size:d=20,position:_="top-right",positionOffset:f={x:0,y:0},cutoutBackground:g,isDisabled:h,className:y,"data-testid":m="badge",...E}=t,{onClick:w,onPointerDown:S}=E,{ref:x,bgColor:j}=wr(),A=g||j,O=!h&&(!!w||!!S),k=$e(fe.badge__container,fe[`position-${_}`]),P=$e(y,fe.badge__content,fe[`color-${p}`],fe[`variant-${i}`],{[fe.disabled]:h,[fe.icon]:!!a,[fe.interactive]:O}),N={"--badge-height":`${d}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...A&&{"--badge-cutout-bg":A},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},W=(a==null?void 0:a({}))||n,C=q=>{O&&(w==null||w(q))};return o.jsxs("div",{className:fe.wrapper,ref:x,"data-testid":m+"-wrapper",children:[s,!c&&o.jsx("span",{className:k,style:N,"data-testid":m+"-container",children:o.jsx("span",{...E,onClick:C,className:P,"data-testid":m+"-content",ref:r,"aria-disabled":h,children:W})})]})}),Er="_container_op5yl_7",Lr="_image_op5yl_22",Mr="_loading_op5yl_34",Ve={container:Er,image:Lr,loading:Mr},$r="_loader_isv17_1",Rr="_spin_isv17_1",jr="_accent_isv17_19",Ir="_neutral_isv17_23",kr="_positive_isv17_27",Tr="_negative_isv17_31",Ar="_gray_isv17_35",Nr="_special_isv17_39",Dr="_contrast_isv17_43",Or="_container_isv17_47",Ur="_overlay_isv17_57",ke={loader:$r,spin:Rr,accent:jr,neutral:Ir,positive:kr,negative:Tr,gray:Ar,special:Nr,contrast:Dr,container:Or,overlay:Ur,"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"},wt=b.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:i,...n},c)=>{const p=$e(ke.loader,ke[r],ke[`size-${t}`],a);return o.jsx("svg",{ref:c,className:p,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...n,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"})})}),Pr=b.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:i="accent",children:n,className:c,style:p,"data-testid":d,..._}=t,f=$e(ke.container,c);return o.jsxs("div",{ref:r,className:f,style:p,"data-testid":d,..._,children:[n,a&&o.jsx("div",{className:ke.overlay,children:o.jsx(wt,{size:s,variant:i,"data-testid":`${d}-spinner`})})]})}),St=b.forwardRef((t,r)=>t.children?o.jsx(Pr,{ref:r,...t}):o.jsx(wt,{ref:r,...t})),Br=({width:t=48,height:r=48,className:a,"data-testid":s})=>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":s,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"})}),Fr=b.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:i,isLoading:n=!1,className:c,"data-testid":p="image",onError:d,onLoad:_,...f}=t,[g,h]=b.useState("loading"),y=g==="error",m=(n||g==="loading")&&!y,E=g==="loaded"&&!n,w=$e(Ve.image,{[Ve.loading]:m},c),S=b.useCallback(A=>{h("loaded"),_==null||_(A)},[_]),x=b.useCallback(A=>{h("error"),d==null||d(A)},[d]),j={loader:o.jsxs(b.Fragment,{children:[o.jsx(St,{size:48,variant:"special","data-testid":`${p}-loader`}),o.jsx("img",{alt:a,src:i,onLoad:S,onError:x,style:{display:"none"}})]}),error:o.jsx(Br,{"data-testid":`${p}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":p,loading:s,src:i,className:w})};return b.useEffect(()=>{if(!i){h("error");return}h("loading")},[i]),o.jsxs("div",{className:Ve.container,"data-testid":`${p}-container`,...f,children:[m&&j.loader,y&&j.error,E&&j.image]})}),Et={},Lt=b.createContext({locale:Et}),Mt=()=>{const t=b.useContext(Lt);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},zr=()=>{const{locale:t}=Mt();return t},Wr={},qr={},Hr={},Vr=({locale:t={},theme:r,children:a,className:s})=>(b.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([n,c])=>{i.style.setProperty(n,c)})}},[r]),o.jsxs(b.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:G.clsx(Wr,qr,Hr,s)}),o.jsx(Lt.Provider,{value:{locale:t},children:a})]})),Gr={},Zr="_tag_1llsi_1",Yr="_label_1llsi_16",Jr="_iconWrapper_1llsi_20",Kr="_medium_1llsi_27",Xr="_large_1llsi_33",Qr="_disabled_1llsi_43",es="_neutral_1llsi_47",ts="_positive_1llsi_53",as="_negative_1llsi_59",rs="_warning_1llsi_65",ss="_vivid_1llsi_71",ns="_special_1llsi_77",os="_accent_1llsi_84",is="_blue_1llsi_90",ls="_lovely_1llsi_96",cs="_dreamy_1llsi_102",ve={tag:Zr,label:Yr,iconWrapper:Jr,medium:Kr,large:Xr,disabled:Qr,neutral:es,positive:ts,negative:as,warning:rs,vivid:ss,special:ns,accent:os,blue:is,lovely:ls,dreamy:cs},ds=b.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:i="neutral",size:n="medium",disabled:c=!1,showLabel:p=!!s,slotStart:d,slotEnd:_,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":h}=t,{className:y,...m}=f,{className:E,...w}=g;return o.jsxs("div",{className:G.clsx(ve.tag,ve[n],ve[i],{[ve.disabled]:c,[Te["typography-label-3-regular"]]:n==="medium",[Te["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":h||"tag-component",ref:r,children:[d&&o.jsx("span",{className:G.clsx([ve.iconWrapper,y]),...m,children:d}),p&&o.jsx("span",{className:G.clsx([ve.label]),children:s}),_&&o.jsx("span",{className:G.clsx([ve.iconWrapper,E]),...w,children:_})]})}),us="_checkbox_qo5f5_43",ps="_input_qo5f5_59",fs="_icon_qo5f5_67",_s="_container_qo5f5_84",gs="_error_qo5f5_135",hs="_checkboxWrapper_qo5f5_147",bs="_medium_qo5f5_201",ys="_large_qo5f5_206",ms="_label_qo5f5_247",ge={checkbox:us,input:ps,icon:fs,container:_s,error:gs,checkboxWrapper:hs,medium:bs,large:ys,label:ms},xs=({width:t=12,height:r=9,className:a="",color:s="currentColor",...i})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),vs=({width:t=12,height:r=2,className:a="",color:s="currentColor",...i})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Cs={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ws=({size:t,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:i})=>{const{width:n,height:c}=Cs[t];return o.jsx("div",{className:ge.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?o.jsx(vs,{width:n,height:c}):o.jsx(xs,{width:n,height:c})})},Ss=b.forwardRef((t,r)=>{const{name:a,value:s,size:i="medium",indeterminate:n=!1,loading:c=!1,error:p,disabled:d=!1,containerClassName:_,className:f,containerStyle:g,style:h,children:y,clickableLabel:m=!0,tabIndex:E,onChange:w,"data-testid":S="checkbox"}=t,[x,j]=b.useState(!1),A=s??x,D=d||c,O=!!p,k=A||n,P=G.clsx(ge.container,ge[i],_),N=G.clsx(ge.checkbox,ge[i],{[ge.error]:O},f),W=R=>{D||(j(R.target.checked),w==null||w(R.target.checked,R))},C=R=>{if(R.key==="Enter"&&!D){R.preventDefault();const B=!k;j(B),w==null||w(B)}},q=R=>{m||R.preventDefault()},U=R=>R.stopPropagation();return o.jsxs("label",{className:P,htmlFor:a,style:g,"data-testid":S,"data-clickable-label":m,children:[o.jsx("div",{className:ge.checkboxWrapper,children:o.jsxs("div",{tabIndex:E||0,className:N,style:h,onKeyDown:C,"aria-checked":k,"aria-disabled":D,"aria-invalid":O,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${S}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:k,disabled:D,className:ge.input,onChange:W,onClick:U,"aria-checked":k,"aria-invalid":O,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${S}-input`}),o.jsx(ws,{name:a,size:i,isChecked:k,isDisabled:D,indeterminate:n,dataTestId:S})]})}),y&&o.jsx("span",{"data-testid":`${S}-label-text`,"data-clickable-label":m,className:ge.label,onClick:q,children:y})]})}),Es="_typography_zt7xg_1",Ls="_disabled_zt7xg_8",Ms="_primary_zt7xg_13",$s="_secondary_zt7xg_18",Rs="_tertiary_zt7xg_23",js="_accent_zt7xg_28",Is="_positive_zt7xg_38",ks="_negative_zt7xg_48",Ts="_warning_zt7xg_58",As="_special_zt7xg_68",Ns="_contrast_zt7xg_78",Me={typography:Es,disabled:Ls,primary:Ms,secondary:$s,tertiary:Rs,accent:js,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Is,"positive-secondary":"_positive-secondary_zt7xg_43",negative:ks,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Ts,"warning-secondary":"_warning-secondary_zt7xg_63",special:As,"special-secondary":"_special-secondary_zt7xg_73",contrast:Ns,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Ds={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:i,"data-testid":n,as:c,fontWeight:p="semibold",disabled:d=!1,typographyStyle:_="primary",...f},g)=>{const h=c||Ds[a],y=G.clsx(Me.typography,Te[`typography-${t}-${a}-${p}`],Me[_],{[Me.disabled]:d},i);return s?o.jsx(h,{ref:g,className:y,"data-testid":n,...f,children:s}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},yt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:i,"data-testid":n,as:c="p",fontWeight:p="regular",disabled:d=!1,typographyStyle:_="primary",...f},g)=>{const h=c,y=G.clsx(Me.typography,Te[`typography-${t}-${a}-${p}`],Me[_],{[Me.disabled]:d},i);return s?o.jsx(h,{ref:g,className:y,"data-testid":n,...f,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Os={Title:bt("title"),Subtitle:bt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Us="_inputBase_1m6fe_85",Ps="_wrapper_1m6fe_95",Bs="_gripHandle_1m6fe_169",Fs="_error_1m6fe_230",zs="_tabFocused_1m6fe_237",Ws="_disabled_1m6fe_262",qs="_loading_1m6fe_269",Hs="_label_1m6fe_279",Vs="_small_1m6fe_292",Gs="_large_1m6fe_299",Zs="_leftSection_1m6fe_306",Ys="_rightSection_1m6fe_315",Js="_helper_1m6fe_351",Ks="_floatingLabel_1m6fe_376",Xs="_focused_1m6fe_434",Qs="_filled_1m6fe_435",en="_medium_1m6fe_469",tn="_characterLimit_1m6fe_510",an="_input_1m6fe_85",rn="_textarea_1m6fe_109",sn="_truncate_1m6fe_637",nn="_hint_1m6fe_719",$={inputBase:Us,wrapper:Ps,"textarea-wrapper":"_textarea-wrapper_1m6fe_109",gripHandle:Bs,error:Fs,tabFocused:zs,disabled:Ws,loading:qs,label:Hs,small:Vs,large:Gs,leftSection:Zs,rightSection:Ys,helper:Js,floatingLabel:Ks,focused:Xs,filled:Qs,medium:en,characterLimit:tn,input:an,textarea:rn,"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:sn,hint:nn,"has-hint":"_has-hint_1m6fe_736"},on=({width:t=8,height:r=8,className:a,color:s="#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:s})}),$t=({className:t="",style:r,size:a="md",color:s="currentColor",onClick:i,...n})=>{const p={display:"inline-block",color:s,...{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:p,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...n,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},ln=(t,r)=>{const a=b.useRef(null),s=b.useRef(null);return b.useEffect(()=>{const i=r==="textarea"?a.current:s.current;i&&i.value!==t&&(i.value=t||"")},[t,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},cn=(t,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const n=a.current.scrollHeight+"px";a.current.style.setProperty("height",n,"important"),a.current.scrollTop=i;const c=a.current.closest(`.${$.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return b.useEffect(s,[t,r]),b.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},dn=(t,r,a,s)=>({handleGripMouseDown:b.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${$.wrapper}`);if(!c)return;const p=n.clientY,d=c.clientHeight,_=g=>{const h=g.clientY-p,y=Math.min(100,d),m=Math.max(y,d+h);c.style.height=`${m}px`},f=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",f)},[t,r,a,s])}),mt=30,un=b.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:s,disabled:i=!1,loading:n=!1,onFocus:c,onBlur:p,onChange:d,onKeyUp:_,maxLength:f,className:g,style:h,truncate:y=!1,shouldShowFloatingLabelClass:m=!1,"aria-invalid":E,"aria-errormessage":w,id:S,resize:x,...j},A)=>{const{textareaRef:D,inputRef:O,currentRef:k}=ln(a,t);if(cn(a,x,D),b.useImperativeHandle(A,()=>k.current,[k]),t==="textarea")return o.jsx("textarea",{ref:D,id:S,value:a,placeholder:s,disabled:i||n,onFocus:c,onBlur:p,onChange:d,onKeyUp:_,maxLength:f,className:G.clsx($.textarea,$[`size-${r}`],m&&$["with-floating-label"],g),style:h,"aria-invalid":E,"aria-errormessage":w,"aria-describedby":w?`${S}-error`:void 0,tabIndex:0,"data-resize":x,...j});if(t==="input")return o.jsx("input",{ref:O,id:S,value:a,placeholder:s,disabled:i||n,onFocus:c,onBlur:p,onChange:d,onKeyUp:_,maxLength:f,className:G.clsx($.input,$[`size-${r}`],m&&$["with-floating-label"],y&&$.truncate,g),style:h,"aria-invalid":E,"aria-errormessage":w,"aria-describedby":w?`${S}-error`:void 0,tabIndex:0,...j});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=b.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:s=!1,loading:i=!1,className:n,wrapperProps:c,wrapperStyles:p,floatingLabelStyles:d,prefixStyles:_,suffixStyles:f,labelProps:g,helperProps:h,showLimit:y=!1,maxLength:m,hint:E,showHint:w=!1,showHintOnEmpty:S=!1,prefix:x,suffix:j,placeholder:A,showLabel:D=!0,labelClassName:O,hasValue:k=!1,helper:P,id:N,value:W="",resize:C,showGrip:q=!1,...U},R)=>{const B=b.useId(),H=N||B,Z=w&&E&&(k||S),Y=E&&E.length>mt?E.substring(0,mt)+"...":E,te=G.clsx($.wrapper,a&&$.error,s&&$.disabled,i&&$.loading,Z&&$["has-hint"],n),ae=G.clsx($.floatingLabel,$[r],k&&$.filled,O),{handleGripMouseDown:re}=dn(q,s,i,C);return o.jsxs("div",{ref:R,className:$.inputBase,"data-testid":"input-base-wrapper",...U,children:[o.jsxs("div",{className:te,style:p,"data-resize":C,"data-show-grip":q?"true":"false",...c,children:[x&&o.jsx("label",{htmlFor:H,className:$.leftSection,style:_,children:x}),j&&o.jsx("label",{htmlFor:H,className:$.rightSection,style:f,children:j}),A&&D&&o.jsx("label",{htmlFor:H,className:ae,style:d,...g,children:A}),t,q&&!y&&(C==="fixed"||!C)&&o.jsx("div",{className:$.gripHandle,onMouseDown:re,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(on,{})}),Z&&o.jsx("div",{className:G.clsx($.hint,k&&$.truncate),"data-disabled":s||i,children:Y}),y&&m&&o.jsxs("div",{className:$.characterLimit,children:[(W||"").length," из ",m]})]}),P&&o.jsx("div",{className:G.clsx($.helper,a&&$.error,(s||i)&&$.disabled),...h,id:a?`${H}-error`:void 0,children:P})]})});Rt.displayName="InputWrapperComponent";const xt=Object.assign(un,{Wrapper:Rt}),jt=b.forwardRef(({component:t="input",size:r="medium",className:a,error:s=!1,disabled:i=!1,loading:n=!1,placeholder:c,showLabel:p=!0,labelClassName:d,helper:_,prefix:f,suffix:g,id:h,onFocus:y,onBlur:m,onChange:E,value:w="",wrapperProps:S,wrapperStyles:x,floatingLabelStyles:j,prefixStyles:A,suffixStyles:D,textareaStyles:O,labelProps:k,helperProps:P,showLimit:N=!1,maxLength:W,inputProps:C,hint:q,showHint:U=!1,showHintOnEmpty:R=!1,truncate:B=!1,resize:H,showGrip:Z=!1,...Y},te)=>{const ae=b.useId(),re=h||ae,[be,se]=b.useState(w),ye=w!==void 0?w:be,Ce=(ye||"").length>0,ue=p&&(r==="large"||t==="textarea")&&!f,ie=b.useCallback(X=>{var ee;i||n||(y==null||y(),(ee=C==null?void 0:C.onFocus)==null||ee.call(C,X))},[y,C,i,n]),pe=b.useCallback(X=>{var ee;if(X.key==="Tab"){const ce=X.target.closest(`.${$.wrapper}`);ce&&ce.classList.add($.tabFocused)}(ee=C==null?void 0:C.onKeyUp)==null||ee.call(C,X)},[C]),le=b.useCallback(X=>{var ce;const ee=X.target.closest(`.${$.wrapper}`);ee&&ee.classList.remove($.tabFocused),m==null||m(),(ce=C==null?void 0:C.onBlur)==null||ce.call(C,X)},[m,C]),me=b.useCallback(X=>{var ce;if(i||n)return;const ee=X.target.value;se(ee),E==null||E(ee),(ce=C==null?void 0:C.onChange)==null||ce.call(C,X)},[E,C,i,n]);return b.useEffect(()=>{se(w)},[w]),o.jsx(xt.Wrapper,{ref:te,size:r,error:s,disabled:i||n,loading:n,className:G.clsx(a,t==="textarea"&&$["textarea-wrapper"]),wrapperProps:S,wrapperStyles:x,floatingLabelStyles:j,prefixStyles:A,suffixStyles:D,labelProps:k,helperProps:P,showLimit:N,maxLength:W,hint:q,showHint:U,showHintOnEmpty:R,prefix:f,suffix:g,placeholder:c,showLabel:p,labelClassName:d,hasValue:Ce,helper:_,id:re,value:ye,showGrip:Z,resize:H,...Y,children:o.jsx(xt,{component:t,size:r,value:ye,placeholder:c,disabled:i,loading:n,onFocus:ie,onBlur:le,onChange:me,onKeyUp:pe,maxLength:W,truncate:B,"data-empty":!Ce,shouldShowFloatingLabelClass:ue,style:t==="textarea"?O:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${re}-error`:void 0,id:re,resize:H,...C})})}),K={SMALL:"small",MEDIUM:"medium",LARGE:"large"},pn=(t,r,a,s)=>{switch(t){case K.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case K.MEDIUM:return s?"12px 12px 12px 12px":"12px 12px 12px 16px";case K.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},fn=t=>{switch(t){case K.LARGE:return"56px";case K.MEDIUM:return"48px";case K.SMALL:return"40px";default:return"48px"}},_n=t=>{switch(t){case K.SMALL:return 8;case K.MEDIUM:case K.LARGE:return 12;default:return 12}},gn=(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`}}),hn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),bn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),yn=(t,r,a,s)=>{const i=fn(t),n=pn(t,r,a,s),c=_n(t);switch(t){case K.LARGE:return gn(i,n,c);case K.MEDIUM:return hn(i,n,c);case K.SMALL:return bn(i,n,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},mn=b.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:i,minLength:n,autoComplete:c,autoFocus:p,size:d=K.MEDIUM,inputProps:_,error:f,disabled:g,loading:h,helper:y,prefix:m,suffix:E,clearable:w=!1,id:S,showLabel:x=!0,onFocus:j,onBlur:A,className:D,truncate:O=!0,hint:k,showHint:P=!1,showHintOnEmpty:N=!1,wrapperProps:W,labelProps:C,helperProps:q,...U},R)=>{const B=(t||"").length>0,H=d===K.LARGE,Z=!!m,Y=H&&x&&!m,te=w&&B&&!(g||h),ae=()=>{r==null||r("")},re=te?o.jsx($t,{size:d===K.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ae,style:{cursor:"pointer"},"data-testid":"x-icon"}):E,be={type:a,minLength:n,autoComplete:c,autoFocus:p,..._},se=yn(d,Y,B,Z);return o.jsx(jt,{size:d,error:f,disabled:g||h,loading:h,helper:y,prefix:m,suffix:re,id:S,showLabel:Y,onFocus:j,onBlur:A,onChange:r,value:t||"",placeholder:s,className:D,wrapperStyles:se.wrapperStyles,floatingLabelStyles:se.floatingLabelStyles,prefixStyles:se.prefixStyles,suffixStyles:se.suffixStyles,wrapperProps:W,labelProps:C,helperProps:q,showLimit:!1,maxLength:i,inputProps:be,hint:k,showHint:P,showHintOnEmpty:N,truncate:O,...U})}),oe={SMALL:"small",MEDIUM:"medium"},Pe={SMALL:"12px",MEDIUM:"16px"},xn={SMALL:"xs",MEDIUM:"sm"},Oe={FILL:"fill",FIXED:"fixed"},Ge={SMALL:"112px",MEDIUM:"56px"},Le={SMALL:"48px",MEDIUM:"22px"},_e={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},vn=(t,r)=>{if(t===oe.SMALL)return Ge.SMALL;if(r)return`${r}px`;switch(t){case oe.MEDIUM:return Ge.MEDIUM;default:return Ge.MEDIUM}},Cn=(t,r)=>{if(t===oe.SMALL)return Le.SMALL;if(r)switch(r){case he.SMALL:case he.MEDIUM:return Le.MEDIUM;case he.LARGE:return Le.SMALL;default:return Le.MEDIUM}switch(t){case oe.MEDIUM:return Le.MEDIUM;default:return Le.MEDIUM}},wn=(t,r,a)=>{if(t===oe.SMALL)return _e.SMALL;if(r)switch(r){case he.SMALL:return _e.MEDIUM_WITH_PREFIX;case he.MEDIUM:return a?_e.MEDIUM_FLOATING_LABEL:_e.MEDIUM;case he.LARGE:return _e.MEDIUM;default:return _e.MEDIUM}switch(t){case oe.MEDIUM:return a?_e.MEDIUM_FLOATING_LABEL:_e.MEDIUM;default:return _e.MEDIUM}},Sn=(t,r)=>{if(t===oe.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},En=t=>xn[t.toUpperCase()],Ln=t=>Pe[t.toUpperCase()],Mn=(t,r,a,s)=>{const i=vn(t,r),n=Cn(t,r),c=wn(t,r,a);return{wrapperStyles:{minHeight:i,...s===Oe.FILL&&{height:"100%"},...s===Oe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===oe.SMALL?Pe.SMALL:Pe.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===oe.MEDIUM?Pe.MEDIUM:void 0},suffixStyles:{right:Ln(t)},textareaStyles:{minHeight:n,...s===Oe.FILL&&{flex:1,minHeight:0},...s===Oe.FIXED&&r&&{height:n}}}},$n=b.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:i,autoFocus:n,size:c=oe.MEDIUM,textareaProps:p,error:d,disabled:_,loading:f,helper:g,suffix:h,clearable:y=!1,id:m,showLabel:E=!0,onFocus:w,onBlur:S,className:x,rows:j=1,showLimit:A=!1,wrapperProps:D,labelProps:O,helperProps:k,showGrip:P,minHeight:N,resize:W,...C},q)=>{const U=(t||"").length>0,R=E&&!!a&&(c===oe.SMALL||N!==48),B=y&&U&&!(_||f),H=()=>{r==null||r("")},Z=B?o.jsx($t,{size:En(c),color:"var(--icon-secondary)",onClick:H,style:{cursor:"pointer"},"data-testid":"x-icon"}):h,Y=Mn(c,N,R&&U,W),te=Sn(c,N),ae={rows:j,minLength:i,autoFocus:n,resize:W,...p};return o.jsx(jt,{ref:q,component:"textarea",size:te,error:d,disabled:_||f,loading:f,helper:g,suffix:Z,id:m,showLabel:R,onFocus:w,onBlur:S,onChange:r,value:t||"",placeholder:a,className:x,"data-floating-label":R,wrapperStyles:Y.wrapperStyles,floatingLabelStyles:Y.floatingLabelStyles,suffixStyles:Y.suffixStyles,textareaStyles:Y.textareaStyles,wrapperProps:D,labelProps:O,helperProps:k,showLimit:A&&(N===112||c===oe.SMALL),maxLength:s,inputProps:ae,resize:W,showGrip:P,...C})}),Rn="_helper_1vhgl_16",Ze={helper:Rn,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},jn=({title:t,error:r,className:a="",style:s,disabled:i=!1,"data-testid":n,"aria-label":c,"aria-describedby":p})=>{const d=!!r,_=G.clsx(Ze.helper,d&&Ze["helper--error"],i&&Ze["helper--disabled"],a),f=i?t:r||t;return o.jsx("div",{className:_,style:s,"data-testid":n,"aria-label":c,"aria-describedby":p,children:o.jsx("p",{children:f})})};exports.Avatar=_r;exports.Badge=Sr;exports.Button=Ba;exports.Checkbox=Ss;exports.ConfigProvider=Vr;exports.Helper=jn;exports.Image=Fr;exports.Loader=St;exports.Tag=ds;exports.TextArea=$n;exports.TextInput=mn;exports.Typography=Os;exports.enUS=Et;exports.ruRU=Gr;exports.useConfig=Mt;exports.useLocale=zr;
|
|
34
|
+
*/var ft;function Fa(){return ft||(ft=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var n="",c=0;c<arguments.length;c++){var p=arguments[c];p&&(n=l(n,s(p)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return a.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var c="";for(var p in n)r.call(n,p)&&n[p]&&(c=l(c,p));return c}function l(n,c){return c?n?n+" "+c:n+c:n}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Ge)),Ge.exports}var za=Fa();const ke=ea(za),Wa="_avatar_1kyiq_17",Va="_clickable_1kyiq_41",qa="_icon_1kyiq_58",Ha="_disabled_1kyiq_63",Ga="_loading_1kyiq_68",Za="_image_1kyiq_74",Ya="_name_1kyiq_74",pe={avatar:Wa,clickable:Va,icon:qa,disabled:Ha,loading:Ga,image:Za,name:Ya,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},Te={"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"},gt=99;function Ja(t){return t<gt?`+${t}`:`${gt}+`}function Je(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let s=0;s<r.length;s++){const l=r.charCodeAt(s);a=(a<<5)+a+l}return a>>>0}const Ka=["red","orange","yellow","green","blue","lightblue","purple"];function Xa(t,r=Ka){if(!t)return"gray";const a=Je(t),s=Math.abs(a)%r.length;return r[s]}const ht=2;function Qa(t){if(!t)return"";const r=t.trim().split(/\s+/);return r.length===1?t.slice(0,ht).toUpperCase():r.map(a=>a[0]).slice(0,ht).join("").toUpperCase()}const er={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Ct(t,r){return r==="circle"?t/2:er[t]||12}const tr={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function ar(t){return tr[t]||"typography-subtitle-1-semibold"}const rr="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",sr="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",nr="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",lr={male:rr,female:sr,org:or,neutral:nr},Ue=v.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:l=!1,isDisabled:n=!1,shape:c="circle",variant:p="filled",placeholderType:d="neutral",name:f,imgSrc:_,imgAlt:h,icon:b,imgProps:y,colorScheme:x,className:L,"data-testid":S,...w}=t,{onClick:g,onPointerDown:k}=w,T=!n&&!l&&(!!g||!!k),[R,N]=v.useState(!1);v.useEffect(()=>{_&&N(!1)},[_]);const D=_&&!R?"image":b?"icon":f?"name":"placeholder",P=x||D==="name"&&Xa(f)||"gray",G=ar(s),V=Ct(s,c),U=B.clsx(L,pe.avatar,pe[`variant-${p}`],pe[`color-${P}`],Te[G],{[pe.disabled]:n,[pe.loading]:l,[pe.clickable]:T}),m={"--avatar-size":`${s}px`,"--avatar-border-radius":`${V}px`,...a},j={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:h||void 0,role:"img",className:pe.icon,children:b==null?void 0:b({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:pe.name,title:h||void 0,children:Qa(f||"")}),placeholder:()=>o.jsx("img",{...y,"data-testid":"avatar-placeholder",className:pe.image,src:lr[d],alt:h||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...y,className:pe.image,src:_||void 0,alt:h||void 0,onLoad:()=>N(!1),onError:Z=>{var H;N(!0),(H=y==null?void 0:y.onError)==null||H.call(y,Z)}})},F=Z=>{T&&(g==null||g(Z))};return o.jsx("div",{ref:r,onClick:F,className:U,style:m,"data-testid":S,"aria-disabled":n||l,children:j[D](null)})}),ir="_avatarGroup_157g4_1",cr={avatarGroup:ir};let dr=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function ur(t,r,a,s,l,n,c){const p=Math.min(l,n)/2,d=Math.min(c,p),f=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),_=[`M${a+d},${s}`,`L${a+l-d},${s}`,`A${d},${d} 0 0 1 ${a+l},${s+d}`,`L${a+l},${s+n-d}`,`A${d},${d} 0 0 1 ${a+l-d},${s+n}`,`L${a+d},${s+n}`,`A${d},${d} 0 0 1 ${a},${s+n-d}`,`L${a},${s+d}`,`A${d},${d} 0 0 1 ${a+d},${s}`,"Z"].join(" ");return`${f} ${_}`}const _r=3,pr=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:l="circle",overflowCount:n=0,overflowProps:c}=t,p=a*s,d=-p+_r,f=Ct(a,l),h=v.useRef(dr()).current.toString(),b=ke(cr.avatarGroup),y=ur(a,a,a-p,0,a,a,f);return r.length===0?null:o.jsxs("div",{className:b,children:[r.map((x,L,S)=>{const w=L+1>=S.length;if(x.wrapper){const g=x.wrapper;return o.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:o.jsx(g,{children:o.jsx(Ue,{size:a,shape:l,...x})})},Je(x)+L)}return o.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:o.jsx(Ue,{size:a,shape:l,...x})},Je(x)+L)}),n>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(Ue,{size:a,shape:l,icon:()=>Ja(n),colorScheme:"gray",variant:"light",...c})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${h}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:y,clipRule:"evenodd"})})})]})},fr=Object.assign(Ue,{Group:pr}),gr="_wrapper_ecbsu_5",hr="_badge__container_ecbsu_6",br="_badge__content_ecbsu_7",yr="_interactive_ecbsu_20",mr="_disabled_ecbsu_21",vr="_icon_ecbsu_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:yr,disabled:mr,icon:vr,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},xr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),Cr=t=>{if(!t)return null;let r=t;for(;r;){const s=window.getComputedStyle(r).backgroundColor;if(!xr(s))return s;r=r.parentElement}return null},wr=()=>{const t=v.useRef(null),[r,a]=v.useState(null);return v.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=v.forwardRef((t,r)=>{const{icon:a,children:s,variant:l="filled",label:n,isHidden:c=!1,colorScheme:p="red",size:d=20,position:f="top-right",positionOffset:_={x:0,y:0},cutoutBackground:h,isDisabled:b,className:y,"data-testid":x="badge",...L}=t,{onClick:S,onPointerDown:w}=L,{ref:g,bgColor:k}=wr(),O=h||k,R=!b&&(!!S||!!w),N=ke(fe.badge__container,fe[`position-${f}`]),D=ke(y,fe.badge__content,fe[`color-${p}`],fe[`variant-${l}`],{[fe.disabled]:b,[fe.icon]:!!a,[fe.interactive]:R}),P={"--badge-height":`${d}px`,"--badge-offset-x":`${_.x}px`,"--badge-offset-y":`${_.y}px`,...O&&{"--badge-cutout-bg":O},...l==="transparent"&&{"--badge-cutout-bg":"transparent"}},G=(a==null?void 0:a({}))||n,V=U=>{R&&(S==null||S(U))};return o.jsxs("div",{className:fe.wrapper,ref:g,"data-testid":x+"-wrapper",children:[s,!c&&o.jsx("span",{className:N,style:P,"data-testid":x+"-container",children:o.jsx("span",{...L,onClick:V,className:D,"data-testid":x+"-content",ref:r,"aria-disabled":b,children:G})})]})}),Er="_container_1gkrm_7",Lr="_loading_1gkrm_17",Mr="_error_1gkrm_18",$r="_image_1gkrm_22",je={container:Er,loading:Lr,error:Mr,image:$r},Rr="_loader_isv17_1",jr="_spin_isv17_1",Ir="_accent_isv17_19",kr="_neutral_isv17_23",Tr="_positive_isv17_27",Ar="_negative_isv17_31",Nr="_gray_isv17_35",Dr="_special_isv17_39",Or="_contrast_isv17_43",Ur="_container_isv17_47",Pr="_overlay_isv17_57",Ie={loader:Rr,spin:jr,accent:Ir,neutral:kr,positive:Tr,negative:Ar,gray:Nr,special:Dr,contrast:Or,container:Ur,overlay:Pr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},wt=v.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:l,...n},c)=>{const p=ke(Ie.loader,Ie[r],Ie[`size-${t}`],a);return o.jsx("svg",{ref:c,className:p,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:l,...n,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"})})}),Br=v.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:l="accent",children:n,className:c,style:p,"data-testid":d,...f}=t,_=ke(Ie.container,c);return o.jsxs("div",{ref:r,className:_,style:p,"data-testid":d,...f,children:[n,a&&o.jsx("div",{className:Ie.overlay,children:o.jsx(wt,{size:s,variant:l,"data-testid":`${d}-spinner`})})]})}),St=v.forwardRef((t,r)=>t.children?o.jsx(Br,{ref:r,...t}):o.jsx(wt,{ref:r,...t})),Fr=({width:t=48,height:r=48,className:a,"data-testid":s})=>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":s,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"})}),zr=v.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:l,isLoading:n=!1,className:c,containerClassName:p,"data-testid":d="image",onError:f,onLoad:_,...h}=t,[b,y]=v.useState("loading"),x=b==="error",L=(n||b==="loading")&&!x,S=b==="loaded"&&!n,w=B.clsx(je.container,{[je.loading]:L&&!S,[je.error]:x&&!S},p),g=B.clsx(je.image,{[je.loading]:L},c),k=v.useCallback(R=>{y("loaded"),_==null||_(R)},[_]),O=v.useCallback(R=>{y("error"),f==null||f(R)},[f]),T={loader:o.jsxs(v.Fragment,{children:[o.jsx(St,{size:48,variant:"special","data-testid":`${d}-loader`}),o.jsx("img",{alt:a,src:l,onLoad:k,onError:O,style:{display:"none"}})]}),error:o.jsx(Fr,{"data-testid":`${d}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":d,loading:s,src:l,className:g})};return v.useEffect(()=>{if(!l){y("error");return}y("loading")},[l]),o.jsxs("div",{className:w,"data-testid":`${d}-container`,...h,children:[L&&T.loader,x&&T.error,S&&T.image]})}),Et={},Lt=v.createContext({locale:Et}),Mt=()=>{const t=v.useContext(Lt);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Wr=()=>{const{locale:t}=Mt();return t},Vr={},qr={},Hr={},Gr=({locale:t={},theme:r,children:a,className:s})=>(v.useLayoutEffect(()=>{if(r){const l=document.documentElement;Object.entries(r).forEach(([n,c])=>{l.style.setProperty(n,c)})}},[r]),o.jsxs(v.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:B.clsx(Vr,qr,Hr,s)}),o.jsx(Lt.Provider,{value:{locale:t},children:a})]})),Zr={},Yr="_tag_1llsi_1",Jr="_label_1llsi_16",Kr="_iconWrapper_1llsi_20",Xr="_medium_1llsi_27",Qr="_large_1llsi_33",es="_disabled_1llsi_43",ts="_neutral_1llsi_47",as="_positive_1llsi_53",rs="_negative_1llsi_59",ss="_warning_1llsi_65",ns="_vivid_1llsi_71",os="_special_1llsi_77",ls="_accent_1llsi_84",is="_blue_1llsi_90",cs="_lovely_1llsi_96",ds="_dreamy_1llsi_102",we={tag:Yr,label:Jr,iconWrapper:Kr,medium:Xr,large:Qr,disabled:es,neutral:ts,positive:as,negative:rs,warning:ss,vivid:ns,special:os,accent:ls,blue:is,lovely:cs,dreamy:ds},us=v.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:l="neutral",size:n="medium",disabled:c=!1,showLabel:p=!!s,slotStart:d,slotEnd:f,slotStartWrapperProps:_={},slotEndWrapperProps:h={},"data-testid":b}=t,{className:y,...x}=_,{className:L,...S}=h;return o.jsxs("div",{className:B.clsx(we.tag,we[n],we[l],{[we.disabled]:c,[Te["typography-label-3-regular"]]:n==="medium",[Te["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&o.jsx("span",{className:B.clsx([we.iconWrapper,y]),...x,children:d}),p&&o.jsx("span",{className:B.clsx([we.label]),children:s}),f&&o.jsx("span",{className:B.clsx([we.iconWrapper,L]),...S,children:f})]})}),_s="_checkbox_qo5f5_43",ps="_input_qo5f5_59",fs="_icon_qo5f5_67",gs="_container_qo5f5_84",hs="_error_qo5f5_135",bs="_checkboxWrapper_qo5f5_147",ys="_medium_qo5f5_201",ms="_large_qo5f5_206",vs="_label_qo5f5_247",he={checkbox:_s,input:ps,icon:fs,container:gs,error:hs,checkboxWrapper:bs,medium:ys,large:ms,label:vs},xs=({width:t=12,height:r=9,className:a="",color:s="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:s})}),Cs=({width:t=12,height:r=2,className:a="",color:s="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:s})}),ws={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Ss=({size:t,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:l})=>{const{width:n,height:c}=ws[t];return o.jsx("div",{className:he.icon,"data-testid":`${l}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?o.jsx(Cs,{width:n,height:c}):o.jsx(xs,{width:n,height:c})})},Es=v.forwardRef((t,r)=>{const{name:a,value:s,size:l="medium",indeterminate:n=!1,loading:c=!1,error:p,disabled:d=!1,containerClassName:f,className:_,containerStyle:h,style:b,children:y,clickableLabel:x=!0,tabIndex:L,onChange:S,"data-testid":w="checkbox"}=t,[g,k]=v.useState(!1),O=s??g,T=d||c,R=!!p,N=O||n,D=B.clsx(he.container,he[l],f),P=B.clsx(he.checkbox,he[l],{[he.error]:R},_),G=j=>{T||(k(j.target.checked),S==null||S(j.target.checked,j))},V=j=>{if(j.key==="Enter"&&!T){j.preventDefault();const F=!N;k(F),S==null||S(F)}},U=j=>{x||j.preventDefault()},m=j=>j.stopPropagation();return o.jsxs("label",{className:D,htmlFor:a,style:h,"data-testid":w,"data-clickable-label":x,children:[o.jsx("div",{className:he.checkboxWrapper,children:o.jsxs("div",{tabIndex:L||0,className:P,style:b,onKeyDown:V,"aria-checked":N,"aria-disabled":T,"aria-invalid":R,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:N,disabled:T,className:he.input,onChange:G,onClick:m,"aria-checked":N,"aria-invalid":R,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${w}-input`}),o.jsx(Ss,{name:a,size:l,isChecked:N,isDisabled:T,indeterminate:n,dataTestId:w})]})}),y&&o.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":x,className:he.label,onClick:U,children:y})]})}),Ls="_typography_zt7xg_1",Ms="_disabled_zt7xg_8",$s="_primary_zt7xg_13",Rs="_secondary_zt7xg_18",js="_tertiary_zt7xg_23",Is="_accent_zt7xg_28",ks="_positive_zt7xg_38",Ts="_negative_zt7xg_48",As="_warning_zt7xg_58",Ns="_special_zt7xg_68",Ds="_contrast_zt7xg_78",Me={typography:Ls,disabled:Ms,primary:$s,secondary:Rs,tertiary:js,accent:Is,"accent-secondary":"_accent-secondary_zt7xg_33",positive:ks,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Ts,"negative-secondary":"_negative-secondary_zt7xg_53",warning:As,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ns,"special-secondary":"_special-secondary_zt7xg_73",contrast:Ds,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Os={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=xt.forwardRef(({size:a=3,children:s,className:l,"data-testid":n,as:c,fontWeight:p="semibold",disabled:d=!1,typographyStyle:f="primary",..._},h)=>{const b=c||Os[a],y=B.clsx(Me.typography,Te[`typography-${t}-${a}-${p}`],Me[f],{[Me.disabled]:d},l);return s?o.jsx(b,{ref:h,className:y,"data-testid":n,..._,children:s}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},yt=t=>{const r=xt.forwardRef(({size:a=3,children:s,className:l,"data-testid":n,as:c="p",fontWeight:p="regular",disabled:d=!1,typographyStyle:f="primary",..._},h)=>{const b=c,y=B.clsx(Me.typography,Te[`typography-${t}-${a}-${p}`],Me[f],{[Me.disabled]:d},l);return s?o.jsx(b,{ref:h,className:y,"data-testid":n,..._,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Us={Title:bt("title"),Subtitle:bt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Ps="_inputBase_2vlla_85",Bs="_wrapper_2vlla_95",Fs="_gripHandle_2vlla_169",zs="_error_2vlla_230",Ws="_tabFocused_2vlla_237",Vs="_disabled_2vlla_262",qs="_loading_2vlla_269",Hs="_label_2vlla_279",Gs="_small_2vlla_292",Zs="_large_2vlla_299",Ys="_leftSection_2vlla_306",Js="_rightSection_2vlla_315",Ks="_helper_2vlla_351",Xs="_floatingLabel_2vlla_376",Qs="_focused_2vlla_434",en="_filled_2vlla_435",tn="_medium_2vlla_469",an="_characterLimit_2vlla_510",rn="_input_2vlla_85",sn="_textarea_2vlla_109",nn="_truncate_2vlla_637",on="_hint_2vlla_719",$={inputBase:Ps,wrapper:Bs,"textarea-wrapper":"_textarea-wrapper_2vlla_109",gripHandle:Fs,error:zs,tabFocused:Ws,disabled:Vs,loading:qs,label:Hs,small:Gs,large:Zs,leftSection:Ys,rightSection:Js,helper:Ks,floatingLabel:Xs,focused:Qs,filled:en,medium:tn,characterLimit:an,input:rn,textarea:sn,"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:nn,hint:on,"has-hint":"_has-hint_2vlla_736","has-suffix":"_has-suffix_2vlla_742","has-limit":"_has-limit_2vlla_748"},ln=({width:t=8,height:r=8,className:a,color:s="#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:s})}),$t=({className:t="",style:r,size:a="md",color:s="currentColor",onClick:l,...n})=>{const p={display:"inline-block",color:s,...{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:p,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:l,...n,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},cn=(t,r)=>{const a=v.useRef(null),s=v.useRef(null);return v.useEffect(()=>{const l=r==="textarea"?a.current:s.current;l&&l.value!==t&&(l.value=t||"")},[t,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},dn=(t,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const l=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const n=a.current.scrollHeight+"px";a.current.style.setProperty("height",n,"important"),a.current.scrollTop=l;const c=a.current.closest(`.${$.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return v.useEffect(s,[t,r]),v.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},un=(t,r,a,s)=>({handleGripMouseDown:v.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${$.wrapper}`);if(!c)return;const p=n.clientY,d=c.clientHeight,f=h=>{const b=h.clientY-p,y=Math.min(100,d),x=Math.max(y,d+b);c.style.height=`${x}px`},_=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",_)},[t,r,a,s])}),mt=30,_n=v.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:s,disabled:l=!1,loading:n=!1,onFocus:c,onBlur:p,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:b,style:y,truncate:x=!1,shouldShowFloatingLabelClass:L=!1,"aria-invalid":S,"aria-errormessage":w,id:g,resize:k,...O},T)=>{const{textareaRef:R,inputRef:N,currentRef:D}=cn(a,t);if(dn(a,k,R),v.useImperativeHandle(T,()=>D.current,[D]),t==="textarea")return o.jsx("textarea",{ref:R,id:g,value:a,placeholder:s,disabled:l||n,onFocus:c,onBlur:p,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:B.clsx($.textarea,$[`size-${r}`],L&&$["with-floating-label"],b),style:y,"aria-invalid":S,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,"data-resize":k,...O});if(t==="input")return o.jsx("input",{ref:N,id:g,value:a,placeholder:s,disabled:l||n,onFocus:c,onBlur:p,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:B.clsx($.input,$[`size-${r}`],L&&$["with-floating-label"],x&&$.truncate,b),style:y,"aria-invalid":S,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,...O});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=v.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:s=!1,loading:l=!1,className:n,wrapperProps:c,wrapperStyles:p,floatingLabelStyles:d,prefixStyles:f,suffixStyles:_,labelProps:h,helperProps:b,showLimit:y=!1,maxLength:x,hint:L,showHint:S=!1,showHintOnEmpty:w=!1,prefix:g,suffix:k,onSuffixClick:O,placeholder:T,showLabel:R=!0,labelClassName:N,hasValue:D=!1,helper:P,id:G,value:V="",resize:U,showGrip:m=!1,...j},F)=>{const Z=v.useId(),H=G||Z,ee=S&&L&&(D||w),ae=L&&L.length>mt?L.substring(0,mt)+"...":L,K=B.clsx($.wrapper,a&&$.error,s&&$.disabled,l&&$.loading,ee&&$["has-hint"],k&&$["has-suffix"],y&&$["has-limit"],n),re=B.clsx($.floatingLabel,$[r],D&&$.filled,N),{handleGripMouseDown:se}=un(m,s,l,U);return o.jsxs("div",{ref:F,className:$.inputBase,"data-testid":"input-base-wrapper",...j,children:[o.jsxs("div",{className:K,style:p,"data-resize":U,"data-show-grip":m?"true":"false",...c,children:[g&&o.jsx("label",{htmlFor:H,className:$.leftSection,style:f,children:g}),k&&o.jsx("label",{htmlFor:H,className:$.rightSection,style:_,onClick:O,children:k}),T&&R&&o.jsx("label",{htmlFor:H,className:re,style:d,...h,children:T}),t,m&&!y&&(U==="fixed"||!U)&&o.jsx("div",{className:$.gripHandle,onMouseDown:se,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(ln,{})}),ee&&o.jsx("div",{className:B.clsx($.hint,D&&$.truncate),"data-disabled":s||l,children:ae}),y&&x&&o.jsxs("div",{className:$.characterLimit,children:[(V||"").length," из ",x]})]}),P&&o.jsx("div",{className:B.clsx($.helper,a&&$.error,(s||l)&&$.disabled),...b,id:a?`${H}-error`:void 0,children:P})]})});Rt.displayName="InputWrapperComponent";const vt=Object.assign(_n,{Wrapper:Rt}),jt=v.forwardRef(({component:t="input",size:r="medium",className:a,error:s=!1,disabled:l=!1,loading:n=!1,placeholder:c,showLabel:p=!0,labelClassName:d,helper:f,prefix:_,suffix:h,id:b,onFocus:y,onBlur:x,onKeyDown:L,onSuffixClick:S,onChange:w,value:g="",wrapperProps:k,wrapperStyles:O,floatingLabelStyles:T,prefixStyles:R,suffixStyles:N,textareaStyles:D,labelProps:P,helperProps:G,showLimit:V=!1,maxLength:U,inputProps:m,hint:j,showHint:F=!1,showHintOnEmpty:Z=!1,truncate:H=!1,resize:ee,showGrip:ae=!1,...K},re)=>{const se=v.useId(),de=b||se,[ve,le]=v.useState(g),ye=g!==void 0?g:ve,ue=(ye||"").length>0,ie=ye||"",_e=p&&(r==="large"||t==="textarea")&&!_,xe=v.useCallback(Y=>{var J;l||n||(y==null||y(),(J=m==null?void 0:m.onFocus)==null||J.call(m,Y))},[y,m,l,n]),Ae=v.useCallback(Y=>{var J;if(Y.key==="Tab"){const ce=Y.target.closest(`.${$.wrapper}`);ce&&ce.classList.add($.tabFocused)}(J=m==null?void 0:m.onKeyUp)==null||J.call(m,Y)},[m]),Be=v.useCallback(Y=>{var ce;const J=Y.target.closest(`.${$.wrapper}`);J&&J.classList.remove($.tabFocused),x==null||x(),(ce=m==null?void 0:m.onBlur)==null||ce.call(m,Y)},[x,m]),Fe=v.useCallback(Y=>{var ce;if(l||n)return;const J=Y.target.value;le(J),w==null||w(J,Y),(ce=m==null?void 0:m.onChange)==null||ce.call(m,Y)},[w,m,l,n]);return v.useEffect(()=>{le(g||"")},[g]),o.jsx(vt.Wrapper,{ref:re,size:r,error:s,disabled:l||n,loading:n,className:B.clsx(a,t==="textarea"&&$["textarea-wrapper"]),wrapperProps:k,wrapperStyles:O,floatingLabelStyles:T,prefixStyles:R,suffixStyles:N,labelProps:P,helperProps:G,showLimit:V,maxLength:U,hint:j,showHint:F,showHintOnEmpty:Z,prefix:_,suffix:h,onSuffixClick:S,placeholder:c,showLabel:p,labelClassName:d,hasValue:ue,helper:f,id:de,value:ie,showGrip:ae,resize:ee,...K,children:o.jsx(vt,{component:t,size:r,value:ie,placeholder:c,disabled:l,loading:n,onFocus:xe,onBlur:Be,onChange:Fe,onKeyDown:L,onKeyUp:Ae,maxLength:U,truncate:H,"data-empty":!ue,shouldShowFloatingLabelClass:_e,style:t==="textarea"?D:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${de}-error`:void 0,id:de,resize:ee,...m})})}),Q={SMALL:"small",MEDIUM:"medium",LARGE:"large"},pn=(t,r,a,s)=>{switch(t){case Q.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case Q.MEDIUM:return s?"12px 12px 12px 12px":"12px 12px 12px 16px";case Q.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},fn=t=>{switch(t){case Q.LARGE:return"56px";case Q.MEDIUM:return"48px";case Q.SMALL:return"40px";default:return"48px"}},gn=t=>{switch(t){case Q.SMALL:return 8;case Q.MEDIUM:case Q.LARGE:return 12;default:return 12}},hn=(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`}}),bn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),yn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),mn=(t,r,a,s)=>{const l=fn(t),n=pn(t,r,a,s),c=gn(t);switch(t){case Q.LARGE:return hn(l,n,c);case Q.MEDIUM:return bn(l,n,c);case Q.SMALL:return yn(l,n,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},vn=v.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:l,minLength:n,autoComplete:c,autoFocus:p,size:d=Q.MEDIUM,inputProps:f,error:_,disabled:h,loading:b,helper:y,prefix:x,suffix:L,clearable:S=!1,id:w,showLabel:g=!0,onFocus:k,onBlur:O,onSuffixClick:T,onClear:R,className:N,truncate:D=!0,hint:P,showHint:G=!1,showHintOnEmpty:V=!1,wrapperProps:U,labelProps:m,helperProps:j,...F},Z)=>{const H=(t||"").length>0,ee=d===Q.LARGE,ae=!!x,K=ee&&g&&!x,re=S&&H&&!(h||b),se=()=>{r==null||r(""),R==null||R()},de=re?o.jsx($t,{size:d===Q.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:se,style:{cursor:"pointer"},"data-testid":"x-icon"}):L,ve={type:a,minLength:n,autoComplete:c,autoFocus:p,...f},le=mn(d,K,H,ae);return o.jsx(jt,{size:d,error:_,disabled:h||b,loading:b,helper:y,prefix:x,suffix:de,id:w,showLabel:K,onFocus:k,onBlur:O,onSuffixClick:T,onChange:r,value:t,placeholder:s,className:N,wrapperStyles:le.wrapperStyles,floatingLabelStyles:le.floatingLabelStyles,prefixStyles:le.prefixStyles,suffixStyles:le.suffixStyles,wrapperProps:U,labelProps:m,helperProps:j,showLimit:!1,maxLength:l,inputProps:ve,hint:P,showHint:G,showHintOnEmpty:V,truncate:D,...F})}),oe={SMALL:"small",MEDIUM:"medium"},Pe={SMALL:"12px",MEDIUM:"16px"},xn={SMALL:"xs",MEDIUM:"sm"},Oe={FILL:"fill",FIXED:"fixed"},Ze={SMALL:"112px",MEDIUM:"56px"},Le={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"},be={SMALL:48,MEDIUM:56,LARGE:112},Cn=(t,r)=>{if(t===oe.SMALL)return Ze.SMALL;if(r)return`${r}px`;switch(t){case oe.MEDIUM:return Ze.MEDIUM;default:return Ze.MEDIUM}},wn=(t,r)=>{if(t===oe.SMALL)return Le.SMALL;if(r)switch(r){case be.SMALL:case be.MEDIUM:return Le.MEDIUM;case be.LARGE:return Le.SMALL;default:return Le.MEDIUM}switch(t){case oe.MEDIUM:return Le.MEDIUM;default:return Le.MEDIUM}},Sn=(t,r,a)=>{if(t===oe.SMALL)return ge.SMALL;if(r)switch(r){case be.SMALL:return ge.MEDIUM_WITH_PREFIX;case be.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;case be.LARGE:return ge.MEDIUM;default:return ge.MEDIUM}switch(t){case oe.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;default:return ge.MEDIUM}},En=(t,r)=>{if(t===oe.SMALL)return"small";if(r)switch(r){case be.SMALL:return"small";case be.MEDIUM:return"medium";case be.LARGE:return"medium";default:return"medium"}return t},Ln=t=>xn[t.toUpperCase()],Mn=t=>Pe[t.toUpperCase()],$n=(t,r,a,s)=>{const l=Cn(t,r),n=wn(t,r),c=Sn(t,r,a);return{wrapperStyles:{minHeight:l,...s===Oe.FILL&&{height:"100%"},...s===Oe.FIXED&&r&&{height:l},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===oe.SMALL?Pe.SMALL:Pe.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===oe.MEDIUM?Pe.MEDIUM:void 0},suffixStyles:{right:Mn(t)},textareaStyles:{minHeight:n,...s===Oe.FILL&&{flex:1,minHeight:0},...s===Oe.FIXED&&r&&{height:n}}}},Rn=v.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:l,autoFocus:n,size:c=oe.MEDIUM,textareaProps:p,error:d,disabled:f,loading:_,helper:h,suffix:b,clearable:y=!1,id:x,showLabel:L=!0,onFocus:S,onBlur:w,onClear:g,onKeyDown:k,className:O,rows:T=1,showLimit:R=!1,wrapperProps:N,labelProps:D,helperProps:P,showGrip:G,minHeight:V,resize:U,...m},j)=>{const F=(t||"").length>0,Z=L&&!!a&&(c===oe.SMALL||V!==48),H=y&&F&&!(f||_),ee=()=>{r==null||r(""),g==null||g()},ae=H?o.jsx($t,{size:Ln(c),color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,K=$n(c,V,Z&&F,U),re=En(c,V),se={rows:T,minLength:l,autoFocus:n,resize:U,...p};return o.jsx(jt,{ref:j,component:"textarea",size:re,error:d,disabled:f||_,loading:_,helper:h,suffix:ae,id:x,showLabel:Z,onFocus:S,onBlur:w,onKeyDown:k,onChange:r,value:t||"",placeholder:a,className:O,"data-floating-label":Z,wrapperStyles:K.wrapperStyles,floatingLabelStyles:K.floatingLabelStyles,suffixStyles:K.suffixStyles,textareaStyles:K.textareaStyles,wrapperProps:N,labelProps:D,helperProps:P,showLimit:R&&(V===112||c===oe.SMALL),maxLength:s,inputProps:se,resize:U,showGrip:G,...m})}),jn="_helper_1vhgl_16",Ye={helper:jn,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},In=({title:t,error:r,className:a="",style:s,disabled:l=!1,"data-testid":n,"aria-label":c,"aria-describedby":p})=>{const d=!!r,f=B.clsx(Ye.helper,d&&Ye["helper--error"],l&&Ye["helper--disabled"],a),_=l?t:r||t;return o.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":c,"aria-describedby":p,children:o.jsx("p",{children:_})})};exports.Avatar=fr;exports.Badge=Sr;exports.Button=Ba;exports.Checkbox=Es;exports.ConfigProvider=Gr;exports.Helper=In;exports.Image=zr;exports.Loader=St;exports.Tag=us;exports.TextArea=Rn;exports.TextInput=vn;exports.Typography=Us;exports.enUS=Et;exports.ruRU=Zr;exports.useConfig=Mt;exports.useLocale=Wr;
|