skillgrid 0.0.25-dev-40846-input.1178444 → 0.0.25-dev-40846-input.1178553

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.
@@ -17,25 +17,29 @@ export declare const getPadding: (size: TextInputSize, showFloatingLabel: boolea
17
17
  */
18
18
  export declare const getHeight: (size: TextInputSize) => string;
19
19
  /**
20
- * Получает отступы префикса и суффикса
20
+ * Получает отступы суффикса
21
21
  */
22
- export declare const getPrefixSuffixSpacing: (size: TextInputSize) => number;
22
+ export declare const getSuffixSpacing: (size: TextInputSize) => number;
23
+ /**
24
+ * Получает отступы префикса
25
+ */
26
+ export declare const getPrefixSpacing: (size: TextInputSize) => number;
23
27
  /**
24
28
  * Получает стили для S размера
25
29
  */
26
- export declare const getSSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
30
+ export declare const getSSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
27
31
  /**
28
32
  * Получает стили для XL размера
29
33
  */
30
- export declare const getXLSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
34
+ export declare const getXLSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
31
35
  /**
32
36
  * Получает стили для L размера
33
37
  */
34
- export declare const getLSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
38
+ export declare const getLSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
35
39
  /**
36
40
  * Получает стили для M размера
37
41
  */
38
- export declare const getMSizeStyles: (height: string, padding: string, spacing: number) => SizeStyles;
42
+ export declare const getMSizeStyles: (height: string, padding: string, prefixSpacing: number, suffixSpacing: number) => SizeStyles;
39
43
  /**
40
44
  * Основная функция для получения стилей размеров
41
45
  */
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const m=require("react"),q=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 vt=Qt(m);function ea(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oe={exports:{}},Re={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const m=require("react"),Z=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 vt=Qt(m);function ea(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oe={exports:{}},Re={};/**
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 Re;dt=1;var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(_,d,f){var p,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(p in d)s.call(d,p)&&!n.hasOwnProperty(p)&&(h[p]=d[p]);if(_&&_.defaultProps)for(p in d=_.defaultProps,d)h[p]===void 0&&(h[p]=d[p]);return{$$typeof:r,type:_,key:b,ref:y,props:h,_owner:o.current}}return Re.Fragment=a,Re.jsx=c,Re.jsxs=c,Re}var ke={};/**
9
+ */var dt;function ta(){if(dt)return Re;dt=1;var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function c(u,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(u&&u.defaultProps)for(_ in d=u.defaultProps,d)h[_]===void 0&&(h[_]=d[_]);return{$$typeof:r,type:u,key:b,ref:y,props:h,_owner:o.current}}return Re.Fragment=a,Re.jsx=c,Re.jsxs=c,Re}var ke={};/**
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=m,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C=Symbol.iterator,j="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var l=C&&e[C]||e[j];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var l=arguments.length,u=new Array(l>1?l-1:0),v=1;v<l;v++)u[v-1]=arguments[v];R("error",e,u)}}function R(e,l,u){{var v=w.ReactDebugCurrentFrame,T=v.getStackAddendum();T!==""&&(l+="%s",u=u.concat([T]));var I=u.map(function(E){return String(E)});I.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,I)}}var M=!1,N=!1,O=!1,A=!1,B=!1,P;P=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===n||B||e===o||e===f||e===p||A||e===y||M||N||O||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===P||e.getModuleId!==void 0))}function H(e,l,u){var v=e.displayName;if(v)return v;var T=l.displayName||l.name||"";return T!==""?u+"("+T+")":u}function D(e){return e.displayName||"Context"}function x(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 o:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var l=e;return D(l)+".Consumer";case c:var u=e;return D(u._context)+".Provider";case d:return H(e,e.render,"ForwardRef");case h:var v=e.displayName||null;return v!==null?v:x(e.type)||"Memo";case b:{var T=e,I=T._payload,E=T._init;try{return x(E(I))}catch{return null}}}return null}var k=Object.assign,F=0,X,G,ee,ne,K,ae,oe;function de(){}de.__reactDisabledLog=!0;function me(){{if(F===0){X=console.log,G=console.info,ee=console.warn,ne=console.error,K=console.group,ae=console.groupCollapsed,oe=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 ye(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:X}),info:k({},e,{value:G}),warn:k({},e,{value:ee}),error:k({},e,{value:ne}),group:k({},e,{value:K}),groupCollapsed:k({},e,{value:ae}),groupEnd:k({},e,{value:oe})})}F<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=w.ReactCurrentDispatcher,ue;function le(e,l,u){{if(ue===void 0)try{throw Error()}catch(T){var v=T.stack.trim().match(/\n( *(at )?)/);ue=v&&v[1]||""}return`
18
- `+ue+e}}var xe=!1,_e;{var ve=typeof WeakMap=="function"?WeakMap:Map;_e=new ve}function Me(e,l){if(!e||xe)return"";{var u=_e.get(e);if(u!==void 0)return u}var v;xe=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=re.current,re.current=null,me();try{if(l){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(te){v=te}Reflect.construct(e,[],E)}else{try{E.call()}catch(te){v=te}e.call(E.prototype)}}else{try{throw Error()}catch(te){v=te}e()}}catch(te){if(te&&v&&typeof te.stack=="string"){for(var S=te.stack.split(`
17
+ */var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=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"),C=Symbol.iterator,j="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var l=C&&e[C]||e[j];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var l=arguments.length,p=new Array(l>1?l-1:0),v=1;v<l;v++)p[v-1]=arguments[v];R("error",e,p)}}function R(e,l,p){{var v=w.ReactDebugCurrentFrame,T=v.getStackAddendum();T!==""&&(l+="%s",p=p.concat([T]));var I=p.map(function(E){return String(E)});I.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,I)}}var M=!1,N=!1,O=!1,A=!1,B=!1,F;F=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===n||B||e===o||e===f||e===_||A||e===y||M||N||O||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===F||e.getModuleId!==void 0))}function V(e,l,p){var v=e.displayName;if(v)return v;var T=l.displayName||l.name||"";return T!==""?p+"("+T+")":p}function D(e){return e.displayName||"Context"}function x(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 o:return"StrictMode";case f:return"Suspense";case _:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case u:var l=e;return D(l)+".Consumer";case c:var p=e;return D(p._context)+".Provider";case d:return V(e,e.render,"ForwardRef");case h:var v=e.displayName||null;return v!==null?v:x(e.type)||"Memo";case b:{var T=e,I=T._payload,E=T._init;try{return x(E(I))}catch{return null}}}return null}var k=Object.assign,z=0,X,G,ee,ne,K,ae,oe;function de(){}de.__reactDisabledLog=!0;function me(){{if(z===0){X=console.log,G=console.info,ee=console.warn,ne=console.error,K=console.group,ae=console.groupCollapsed,oe=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})}z++}}function ye(){{if(z--,z===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:X}),info:k({},e,{value:G}),warn:k({},e,{value:ee}),error:k({},e,{value:ne}),group:k({},e,{value:K}),groupCollapsed:k({},e,{value:ae}),groupEnd:k({},e,{value:oe})})}z<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=w.ReactCurrentDispatcher,ue;function le(e,l,p){{if(ue===void 0)try{throw Error()}catch(T){var v=T.stack.trim().match(/\n( *(at )?)/);ue=v&&v[1]||""}return`
18
+ `+ue+e}}var xe=!1,pe;{var ve=typeof WeakMap=="function"?WeakMap:Map;pe=new ve}function Me(e,l){if(!e||xe)return"";{var p=pe.get(e);if(p!==void 0)return p}var v;xe=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=re.current,re.current=null,me();try{if(l){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(te){v=te}Reflect.construct(e,[],E)}else{try{E.call()}catch(te){v=te}e.call(E.prototype)}}else{try{throw Error()}catch(te){v=te}e()}}catch(te){if(te&&v&&typeof te.stack=="string"){for(var S=te.stack.split(`
19
19
  `),Q=v.stack.split(`
20
- `),z=S.length-1,V=Q.length-1;z>=1&&V>=0&&S[z]!==Q[V];)V--;for(;z>=1&&V>=0;z--,V--)if(S[z]!==Q[V]){if(z!==1||V!==1)do if(z--,V--,V<0||S[z]!==Q[V]){var ie=`
21
- `+S[z].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),typeof e=="function"&&_e.set(e,ie),ie}while(z>=1&&V>=0);break}}}finally{xe=!1,re.current=I,ye(),Error.prepareStackTrace=T}var Le=e?e.displayName||e.name:"",Ce=Le?le(Le):"";return typeof e=="function"&&_e.set(e,Ce),Ce}function Pe(e,l,u){return Me(e,!1)}function Fe(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Y(e,l,u){if(e==null)return"";if(typeof e=="function")return Me(e,Fe(e));if(typeof e=="string")return le(e);switch(e){case f:return le("Suspense");case p:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Pe(e.render);case h:return Y(e.type,l,u);case b:{var v=e,T=v._payload,I=v._init;try{return Y(I(T),l,u)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,ce={},Je=w.ReactDebugCurrentFrame;function Ne(e){if(e){var l=e._owner,u=Y(e.type,e._source,l?l.type:null);Je.setExtraStackFrame(u)}else Je.setExtraStackFrame(null)}function Tt(e,l,u,v,T){{var I=Function.call.bind(J);for(var E in e)if(I(e,E)){var S=void 0;try{if(typeof e[E]!="function"){var Q=Error((v||"React class")+": "+u+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q.name="Invariant Violation",Q}S=e[E](l,E,v,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){S=z}S&&!(S instanceof Error)&&(Ne(T),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).",v||"React class",u,E,typeof S),Ne(null)),S instanceof Error&&!(S.message in ce)&&(ce[S.message]=!0,Ne(T),g("Failed %s type: %s",u,S.message),Ne(null))}}}var It=Array.isArray;function ze(e){return It(e)}function Mt(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,u=l&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function Nt(e){try{return Ke(e),!1}catch{return!0}}function Ke(e){return""+e}function Qe(e){if(Nt(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(e)),Ke(e)}var et=w.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},tt,at;function At(e){if(J.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Bt(e){if(J.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Dt(e,l){typeof e.ref=="string"&&et.current}function Pt(e,l){{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)",l))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Ft(e,l){{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)",l))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var zt=function(e,l,u,v,T,I,E){var S={$$typeof:r,type:e,key:l,ref:u,props:E,_owner:I};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function Wt(e,l,u,v,T){{var I,E={},S=null,Q=null;u!==void 0&&(Qe(u),S=""+u),Bt(l)&&(Qe(l.key),S=""+l.key),At(l)&&(Q=l.ref,Dt(l,T));for(I in l)J.call(l,I)&&!Ot.hasOwnProperty(I)&&(E[I]=l[I]);if(e&&e.defaultProps){var z=e.defaultProps;for(I in z)E[I]===void 0&&(E[I]=z[I])}if(S||Q){var V=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&Pt(E,V),Q&&Ft(E,V)}return zt(e,S,Q,T,v,et.current,E)}}var We=w.ReactCurrentOwner,rt=w.ReactDebugCurrentFrame;function Se(e){if(e){var l=e._owner,u=Y(e.type,e._source,l?l.type:null);rt.setExtraStackFrame(u)}else rt.setExtraStackFrame(null)}var He;He=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(We.current){var e=x(We.current.type);if(e)return`
20
+ `),W=S.length-1,q=Q.length-1;W>=1&&q>=0&&S[W]!==Q[q];)q--;for(;W>=1&&q>=0;W--,q--)if(S[W]!==Q[q]){if(W!==1||q!==1)do if(W--,q--,q<0||S[W]!==Q[q]){var ie=`
21
+ `+S[W].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),typeof e=="function"&&pe.set(e,ie),ie}while(W>=1&&q>=0);break}}}finally{xe=!1,re.current=I,ye(),Error.prepareStackTrace=T}var Le=e?e.displayName||e.name:"",Ce=Le?le(Le):"";return typeof e=="function"&&pe.set(e,Ce),Ce}function Pe(e,l,p){return Me(e,!1)}function Fe(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Y(e,l,p){if(e==null)return"";if(typeof e=="function")return Me(e,Fe(e));if(typeof e=="string")return le(e);switch(e){case f:return le("Suspense");case _:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Pe(e.render);case h:return Y(e.type,l,p);case b:{var v=e,T=v._payload,I=v._init;try{return Y(I(T),l,p)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,ce={},Je=w.ReactDebugCurrentFrame;function Ne(e){if(e){var l=e._owner,p=Y(e.type,e._source,l?l.type:null);Je.setExtraStackFrame(p)}else Je.setExtraStackFrame(null)}function Tt(e,l,p,v,T){{var I=Function.call.bind(J);for(var E in e)if(I(e,E)){var S=void 0;try{if(typeof e[E]!="function"){var Q=Error((v||"React class")+": "+p+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q.name="Invariant Violation",Q}S=e[E](l,E,v,p,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(W){S=W}S&&!(S instanceof Error)&&(Ne(T),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).",v||"React class",p,E,typeof S),Ne(null)),S instanceof Error&&!(S.message in ce)&&(ce[S.message]=!0,Ne(T),g("Failed %s type: %s",p,S.message),Ne(null))}}}var It=Array.isArray;function ze(e){return It(e)}function Mt(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,p=l&&e[Symbol.toStringTag]||e.constructor.name||"Object";return p}}function Nt(e){try{return Ke(e),!1}catch{return!0}}function Ke(e){return""+e}function Qe(e){if(Nt(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(e)),Ke(e)}var et=w.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},tt,at;function At(e){if(J.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Bt(e){if(J.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Dt(e,l){typeof e.ref=="string"&&et.current}function Pt(e,l){{var p=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)",l))};p.isReactWarning=!0,Object.defineProperty(e,"key",{get:p,configurable:!0})}}function Ft(e,l){{var p=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)",l))};p.isReactWarning=!0,Object.defineProperty(e,"ref",{get:p,configurable:!0})}}var zt=function(e,l,p,v,T,I,E){var S={$$typeof:r,type:e,key:l,ref:p,props:E,_owner:I};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function Wt(e,l,p,v,T){{var I,E={},S=null,Q=null;p!==void 0&&(Qe(p),S=""+p),Bt(l)&&(Qe(l.key),S=""+l.key),At(l)&&(Q=l.ref,Dt(l,T));for(I in l)J.call(l,I)&&!Ot.hasOwnProperty(I)&&(E[I]=l[I]);if(e&&e.defaultProps){var W=e.defaultProps;for(I in W)E[I]===void 0&&(E[I]=W[I])}if(S||Q){var q=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&Pt(E,q),Q&&Ft(E,q)}return zt(e,S,Q,T,v,et.current,E)}}var We=w.ReactCurrentOwner,rt=w.ReactDebugCurrentFrame;function Se(e){if(e){var l=e._owner,p=Y(e.type,e._source,l?l.type:null);rt.setExtraStackFrame(p)}else rt.setExtraStackFrame(null)}var He;He=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(We.current){var e=x(We.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function Ht(e){return""}var nt={};function Vt(e){{var l=st();if(!l){var u=typeof e=="string"?e:e.displayName||e.name;u&&(l=`
23
+ Check the render method of \``+e+"`."}return""}}function Ht(e){return""}var nt={};function Vt(e){{var l=st();if(!l){var p=typeof e=="string"?e:e.displayName||e.name;p&&(l=`
24
24
 
25
- Check the top-level render call using <`+u+">.")}return l}}function ot(e,l){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Vt(l);if(nt[u])return;nt[u]=!0;var v="";e&&e._owner&&e._owner!==We.current&&(v=" It was passed a child from "+x(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,v),Se(null)}}function it(e,l){{if(typeof e!="object")return;if(ze(e))for(var u=0;u<e.length;u++){var v=e[u];Ve(v)&&ot(v,l)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var T=$(e);if(typeof T=="function"&&T!==e.entries)for(var I=T.call(e),E;!(E=I.next()).done;)Ve(E.value)&&ot(E.value,l)}}}function qt(e){{var l=e.type;if(l==null||typeof l=="string")return;var u;if(typeof l=="function")u=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===d||l.$$typeof===h))u=l.propTypes;else return;if(u){var v=x(l);Tt(u,e.props,"prop",v,e)}else if(l.PropTypes!==void 0&&!He){He=!0;var T=x(l);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(e){{for(var l=Object.keys(e.props),u=0;u<l.length;u++){var v=l[u];if(v!=="children"&&v!=="key"){Se(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),Se(null);break}}e.ref!==null&&(Se(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}var lt={};function ct(e,l,u,v,T,I){{var E=U(e);if(!E){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Q=Ht();Q?S+=Q:S+=st();var z;e===null?z="null":ze(e)?z="array":e!==void 0&&e.$$typeof===r?(z="<"+(x(e.type)||"Unknown")+" />",S=" 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,S)}var V=Wt(e,l,u,T,I);if(V==null)return V;if(E){var ie=l.children;if(ie!==void 0)if(v)if(ze(ie)){for(var Le=0;Le<ie.length;Le++)it(ie[Le],e);Object.freeze&&Object.freeze(ie)}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 it(ie,e)}if(J.call(l,"key")){var Ce=x(e),te=Object.keys(l).filter(function(Kt){return Kt!=="key"}),qe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!lt[Ce+qe]){var Jt=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+p+">.")}return l}}function ot(e,l){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var p=Vt(l);if(nt[p])return;nt[p]=!0;var v="";e&&e._owner&&e._owner!==We.current&&(v=" It was passed a child from "+x(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.',p,v),Se(null)}}function it(e,l){{if(typeof e!="object")return;if(ze(e))for(var p=0;p<e.length;p++){var v=e[p];Ve(v)&&ot(v,l)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var T=$(e);if(typeof T=="function"&&T!==e.entries)for(var I=T.call(e),E;!(E=I.next()).done;)Ve(E.value)&&ot(E.value,l)}}}function qt(e){{var l=e.type;if(l==null||typeof l=="string")return;var p;if(typeof l=="function")p=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===d||l.$$typeof===h))p=l.propTypes;else return;if(p){var v=x(l);Tt(p,e.props,"prop",v,e)}else if(l.PropTypes!==void 0&&!He){He=!0;var T=x(l);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(e){{for(var l=Object.keys(e.props),p=0;p<l.length;p++){var v=l[p];if(v!=="children"&&v!=="key"){Se(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),Se(null);break}}e.ref!==null&&(Se(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}var lt={};function ct(e,l,p,v,T,I){{var E=U(e);if(!E){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Q=Ht();Q?S+=Q:S+=st();var W;e===null?W="null":ze(e)?W="array":e!==void 0&&e.$$typeof===r?(W="<"+(x(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):W=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",W,S)}var q=Wt(e,l,p,T,I);if(q==null)return q;if(E){var ie=l.children;if(ie!==void 0)if(v)if(ze(ie)){for(var Le=0;Le<ie.length;Le++)it(ie[Le],e);Object.freeze&&Object.freeze(ie)}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 it(ie,e)}if(J.call(l,"key")){var Ce=x(e),te=Object.keys(l).filter(function(Kt){return Kt!=="key"}),qe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!lt[Ce+qe]){var Jt=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} />`,qe,Ce,Jt,Ce),lt[Ce+qe]=!0}}return e===s?Zt(V):qt(V),V}}function Gt(e,l,u){return ct(e,l,u,!0)}function Ut(e,l,u){return ct(e,l,u,!1)}var Xt=Ut,Yt=Gt;ke.Fragment=s,ke.jsx=Xt,ke.jsxs=Yt}()),ke}var _t;function ra(){return _t||(_t=1,process.env.NODE_ENV==="production"?Oe.exports=ta():Oe.exports=aa()),Oe.exports}var i=ra();const sa=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",oa="_button_1abee_213",ia="_disabled_1abee_237",la="_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",xa="_rightGroup_1abee_333",ma="_iconOnly_1abee_349",va="_large_1abee_357",Ca="_medium_1abee_361",wa="_small_1abee_365",Sa="_spaceBetween_1abee_370",La="_stretched_1abee_384",$a="_icon_1abee_349",Ea="_badge_1abee_705",ja="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ka="_badgeSmall_1abee_743",Ta="_badgeExtraSmall_1abee_765",Ia="_withSubcaption_1abee_784",Ma="_subcaption_1abee_797",Na="_loader_1abee_804",Oa="_spin_1abee_1",Aa="_l_1abee_237",Ba="_m_1abee_361",Da="_s_1abee_279",Pa="_xs_1abee_869",W={button:oa,disabled:ia,loading:la,neutral:ca,accent:da,positive:ua,negative:_a,contrast:pa,special:fa,primary:ga,secondary:ha,tertiary:ba,label:ya,rightGroup:xa,iconOnly:ma,large:va,medium:Ca,small:wa,spaceBetween:Sa,stretched:La,icon:$a,badge:Ea,badgeMedium:ja,circular:Ra,badgeSmall:ka,badgeExtraSmall:Ta,withSubcaption:Ia,subcaption:Ma,loader:Na,spin:Oa,l:Aa,m:Ba,s:Da,xs:Pa},pt=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:s,icon:o,children:n,postfix:c,showSubcaption:_,subcaption:d,size:f})=>{if(t)return i.jsx("span",{className:W.loader,"data-testid":"button-loader","aria-hidden":"true"});const p=s==="extra-small",h=parseInt(String(a),10),b=!isNaN(h)&&h>=0&&h<=9;return i.jsxs(i.Fragment,{children:[r&&(a||p)&&i.jsx("span",{"data-testid":"button-badge",className:q.clsx(W.badge,W[`badge${p?"ExtraSmall":s==="medium"?"Medium":"Small"}`],{[W.circular]:b&&!p}),children:!p&&a}),_&&f!=="s"&&f!=="xs"?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:W.label,children:n}),i.jsx("span",{"data-testid":"button-subcaption",className:W.subcaption,children:d})]}):n?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:W.label,children:n}),i.jsxs("div",{"data-testid":"button-right-group",className:W.rightGroup,children:[o&&i.jsx("span",{"data-testid":"button-icon",className:W.icon,children:o}),c&&i.jsx("span",{"data-testid":"button-postfix",className:W.postfix,children:c})]})]}):i.jsx("span",{"data-testid":"button-icon",className:W.icon,children:o})]})},Fa=m.forwardRef((t,r)=>{const{mode:a="primary",size:s="m",buttonStyle:o="neutral",loading:n=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:f,showSubcaption:p=!1,subcaption:h,stretched:b=!1,spaceBetween:y=!1,icon:C,postfix:j,className:$,children:w}=t,g=c,R=n,M=!g&&!R,N=!!C&&!w,O=q.clsx(W.button,W[s],W[a],W[o],{[W.disabled]:g,[W.loading]:R,[W.stretched]:b,[W.spaceBetween]:y&&b,[W.withSubcaption]:p&&h&&s!=="s"&&s!=="xs",[W.iconOnly]:N},$),A={isLoading:R,showBadge:_,badgeValue:f,badgeSize:d,icon:C,children:w,postfix:j,showSubcaption:p,subcaption:h,size:s};if(sa(t)){const{href:B,onClick:P,mode:U,size:H,buttonStyle:D,loading:x,disabled:k,showBadge:F,badgeSize:X,badgeValue:G,showSubcaption:ee,subcaption:ne,stretched:K,spaceBetween:ae,icon:oe,postfix:de,className:me,tabIndex:ye,children:re,"data-testid":ue,style:le,...xe}=t,_e=ve=>{M&&P&&P(ve)};return i.jsx("a",{ref:r,className:O,href:M?B:void 0,tabIndex:t.tabIndex,onClick:_e,"data-testid":ue,"aria-disabled":g||R,style:le,...xe,children:i.jsx(pt,{...A})})}if(na(t)){const{type:B="button",onClick:P,mode:U,size:H,buttonStyle:D,loading:x,disabled:k,showBadge:F,badgeSize:X,badgeValue:G,showSubcaption:ee,subcaption:ne,stretched:K,spaceBetween:ae,icon:oe,postfix:de,className:me,tabIndex:ye,children:re,"data-testid":ue,style:le,...xe}=t,_e=ve=>{M&&P&&P(ve)};return i.jsx("button",{ref:r,type:B,className:O,disabled:g,tabIndex:t.tabIndex,onClick:_e,"data-testid":ue,"aria-disabled":g||R,style:le,...xe,children:i.jsx(pt,{...A})})}return null});var Ze={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,qe,Ce,Jt,Ce),lt[Ce+qe]=!0}}return e===s?Zt(q):qt(q),q}}function Gt(e,l,p){return ct(e,l,p,!0)}function Ut(e,l,p){return ct(e,l,p,!1)}var Xt=Ut,Yt=Gt;ke.Fragment=s,ke.jsx=Xt,ke.jsxs=Yt}()),ke}var pt;function ra(){return pt||(pt=1,process.env.NODE_ENV==="production"?Oe.exports=ta():Oe.exports=aa()),Oe.exports}var i=ra();const sa=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",oa="_button_1abee_213",ia="_disabled_1abee_237",la="_loading_1abee_237",ca="_neutral_1abee_259",da="_accent_1abee_263",ua="_positive_1abee_267",pa="_negative_1abee_271",_a="_contrast_1abee_275",fa="_special_1abee_279",ga="_primary_1abee_284",ha="_secondary_1abee_285",ba="_tertiary_1abee_286",ya="_label_1abee_321",xa="_rightGroup_1abee_333",ma="_iconOnly_1abee_349",va="_large_1abee_357",Ca="_medium_1abee_361",wa="_small_1abee_365",Sa="_spaceBetween_1abee_370",La="_stretched_1abee_384",$a="_icon_1abee_349",Ea="_badge_1abee_705",ja="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ka="_badgeSmall_1abee_743",Ta="_badgeExtraSmall_1abee_765",Ia="_withSubcaption_1abee_784",Ma="_subcaption_1abee_797",Na="_loader_1abee_804",Oa="_spin_1abee_1",Aa="_l_1abee_237",Ba="_m_1abee_361",Da="_s_1abee_279",Pa="_xs_1abee_869",H={button:oa,disabled:ia,loading:la,neutral:ca,accent:da,positive:ua,negative:pa,contrast:_a,special:fa,primary:ga,secondary:ha,tertiary:ba,label:ya,rightGroup:xa,iconOnly:ma,large:va,medium:Ca,small:wa,spaceBetween:Sa,stretched:La,icon:$a,badge:Ea,badgeMedium:ja,circular:Ra,badgeSmall:ka,badgeExtraSmall:Ta,withSubcaption:Ia,subcaption:Ma,loader:Na,spin:Oa,l:Aa,m:Ba,s:Da,xs:Pa},_t=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:s,icon:o,children:n,postfix:c,showSubcaption:u,subcaption:d,size:f})=>{if(t)return i.jsx("span",{className:H.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 i.jsxs(i.Fragment,{children:[r&&(a||_)&&i.jsx("span",{"data-testid":"button-badge",className:Z.clsx(H.badge,H[`badge${_?"ExtraSmall":s==="medium"?"Medium":"Small"}`],{[H.circular]:b&&!_}),children:!_&&a}),u&&f!=="s"&&f!=="xs"?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:H.label,children:n}),i.jsx("span",{"data-testid":"button-subcaption",className:H.subcaption,children:d})]}):n?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:H.label,children:n}),i.jsxs("div",{"data-testid":"button-right-group",className:H.rightGroup,children:[o&&i.jsx("span",{"data-testid":"button-icon",className:H.icon,children:o}),c&&i.jsx("span",{"data-testid":"button-postfix",className:H.postfix,children:c})]})]}):i.jsx("span",{"data-testid":"button-icon",className:H.icon,children:o})]})},Fa=m.forwardRef((t,r)=>{const{mode:a="primary",size:s="m",buttonStyle:o="neutral",loading:n=!1,disabled:c=!1,showBadge:u=!1,badgeSize:d="small",badgeValue:f,showSubcaption:_=!1,subcaption:h,stretched:b=!1,spaceBetween:y=!1,icon:C,postfix:j,className:$,children:w}=t,g=c,R=n,M=!g&&!R,N=!!C&&!w,O=Z.clsx(H.button,H[s],H[a],H[o],{[H.disabled]:g,[H.loading]:R,[H.stretched]:b,[H.spaceBetween]:y&&b,[H.withSubcaption]:_&&h&&s!=="s"&&s!=="xs",[H.iconOnly]:N},$),A={isLoading:R,showBadge:u,badgeValue:f,badgeSize:d,icon:C,children:w,postfix:j,showSubcaption:_,subcaption:h,size:s};if(sa(t)){const{href:B,onClick:F,mode:U,size:V,buttonStyle:D,loading:x,disabled:k,showBadge:z,badgeSize:X,badgeValue:G,showSubcaption:ee,subcaption:ne,stretched:K,spaceBetween:ae,icon:oe,postfix:de,className:me,tabIndex:ye,children:re,"data-testid":ue,style:le,...xe}=t,pe=ve=>{M&&F&&F(ve)};return i.jsx("a",{ref:r,className:O,href:M?B:void 0,tabIndex:t.tabIndex,onClick:pe,"data-testid":ue,"aria-disabled":g||R,style:le,...xe,children:i.jsx(_t,{...A})})}if(na(t)){const{type:B="button",onClick:F,mode:U,size:V,buttonStyle:D,loading:x,disabled:k,showBadge:z,badgeSize:X,badgeValue:G,showSubcaption:ee,subcaption:ne,stretched:K,spaceBetween:ae,icon:oe,postfix:de,className:me,tabIndex:ye,children:re,"data-testid":ue,style:le,...xe}=t,pe=ve=>{M&&F&&F(ve)};return i.jsx("button",{ref:r,type:B,className:O,disabled:g,tabIndex:t.tabIndex,onClick:pe,"data-testid":ue,"aria-disabled":g||R,style:le,...xe,children:i.jsx(_t,{...A})})}return null});var Ze={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */var ft;function za(){return ft||(ft=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var n="",c=0;c<arguments.length;c++){var _=arguments[c];_&&(n=o(n,s(_)))}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 _ in n)r.call(n,_)&&n[_]&&(c=o(c,_));return c}function o(n,c){return c?n?n+" "+c:n+c:n}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Ze)),Ze.exports}var Wa=za();const je=ea(Wa),Ha="_avatar_1kyiq_17",Va="_clickable_1kyiq_41",qa="_icon_1kyiq_58",Za="_disabled_1kyiq_63",Ga="_loading_1kyiq_68",Ua="_image_1kyiq_74",Xa="_name_1kyiq_74",pe={avatar:Ha,clickable:Va,icon:qa,disabled:Za,loading:Ga,image:Ua,name:Xa,"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"},Ie={"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 Ya(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 o=r.charCodeAt(s);a=(a<<5)+a+o}return a>>>0}const Ja=["red","orange","yellow","green","blue","lightblue","purple"];function Ka(t,r=Ja){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},Be=m.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:o=!1,isDisabled:n=!1,shape:c="circle",variant:_="filled",placeholderType:d="neutral",name:f,imgSrc:p,imgAlt:h,icon:b,imgProps:y,colorScheme:C,className:j,"data-testid":$,...w}=t,{onClick:g,onPointerDown:R}=w,N=!n&&!o&&(!!g||!!R),[O,A]=m.useState(!1);m.useEffect(()=>{p&&A(!1)},[p]);const B=p&&!O?"image":b?"icon":f?"name":"placeholder",P=C||B==="name"&&Ka(f)||"gray",U=ar(s),H=Ct(s,c),D=q.clsx(j,pe.avatar,pe[`variant-${_}`],pe[`color-${P}`],Ie[U],{[pe.disabled]:n,[pe.loading]:o,[pe.clickable]:N}),x={"--avatar-size":`${s}px`,"--avatar-border-radius":`${H}px`,...a},k={icon:()=>i.jsx("span",{"data-testid":"avatar-icon",title:h||void 0,role:"img",className:pe.icon,children:b==null?void 0:b({})}),name:()=>i.jsx("span",{role:"textbox","data-testid":"avatar-name",className:pe.name,title:h||void 0,children:Qa(f||"")}),placeholder:()=>i.jsx("img",{...y,"data-testid":"avatar-placeholder",className:pe.image,src:ir[d],alt:h||void 0}),image:()=>i.jsx("img",{"data-testid":"avatar-image",...y,className:pe.image,src:p||void 0,alt:h||void 0,onLoad:()=>A(!1),onError:X=>{var G;A(!0),(G=y==null?void 0:y.onError)==null||G.call(y,X)}})},F=X=>{N&&(g==null||g(X))};return i.jsx("div",{ref:r,onClick:F,className:D,style:x,"data-testid":$,"aria-disabled":n||o,children:k[B](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,o,n,c){const _=Math.min(o,n)/2,d=Math.min(c,_),f=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),p=[`M${a+d},${s}`,`L${a+o-d},${s}`,`A${d},${d} 0 0 1 ${a+o},${s+d}`,`L${a+o},${s+n-d}`,`A${d},${d} 0 0 1 ${a+o-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} ${p}`}const _r=3,pr=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:o="circle",overflowCount:n=0,overflowProps:c}=t,_=a*s,d=-_+_r,f=Ct(a,o),h=m.useRef(dr()).current.toString(),b=je(cr.avatarGroup),y=ur(a,a,a-_,0,a,a,f);return r.length===0?null:i.jsxs("div",{className:b,children:[r.map((C,j,$)=>{const w=j+1>=$.length;if(C.wrapper){const g=C.wrapper;return i.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:i.jsx(g,{children:i.jsx(Be,{size:a,shape:o,...C})})},Ye(C)+j)}return i.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:i.jsx(Be,{size:a,shape:o,...C})},Ye(C)+j)}),n>0&&i.jsx("div",{style:{marginRight:d},children:i.jsx(Be,{size:a,shape:o,icon:()=>Ya(n),colorScheme:"gray",variant:"light",...c})}),i.jsx("svg",{width:"0",height:"0",children:i.jsx("clipPath",{id:`${h}`,children:i.jsx("path",{clipPathUnits:"objectBoundingBox",d:y,clipRule:"evenodd"})})})]})},fr=Object.assign(Be,{Group:pr}),gr="_wrapper_ecbsu_5",hr="_badge__container_ecbsu_6",br="_badge__content_ecbsu_7",yr="_interactive_ecbsu_20",xr="_disabled_ecbsu_21",mr="_icon_ecbsu_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:yr,disabled:xr,icon:mr,"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=m.useRef(null),[r,a]=m.useState(null);return m.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=m.forwardRef((t,r)=>{const{icon:a,children:s,variant:o="filled",label:n,isHidden:c=!1,colorScheme:_="red",size:d=20,position:f="top-right",positionOffset:p={x:0,y:0},cutoutBackground:h,isDisabled:b,className:y,"data-testid":C="badge",...j}=t,{onClick:$,onPointerDown:w}=j,{ref:g,bgColor:R}=wr(),M=h||R,O=!b&&(!!$||!!w),A=je(fe.badge__container,fe[`position-${f}`]),B=je(y,fe.badge__content,fe[`color-${_}`],fe[`variant-${o}`],{[fe.disabled]:b,[fe.icon]:!!a,[fe.interactive]:O}),P={"--badge-height":`${d}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...M&&{"--badge-cutout-bg":M},...o==="transparent"&&{"--badge-cutout-bg":"transparent"}},U=(a==null?void 0:a({}))||n,H=D=>{O&&($==null||$(D))};return i.jsxs("div",{className:fe.wrapper,ref:g,"data-testid":C+"-wrapper",children:[s,!c&&i.jsx("span",{className:A,style:P,"data-testid":C+"-container",children:i.jsx("span",{...j,onClick:H,className:B,"data-testid":C+"-content",ref:r,"aria-disabled":b,children:U})})]})}),Lr="_container_op5yl_7",$r="_image_op5yl_22",Er="_loading_op5yl_34",Ge={container:Lr,image:$r,loading:Er},jr="_loader_isv17_1",Rr="_spin_isv17_1",kr="_accent_isv17_19",Tr="_neutral_isv17_23",Ir="_positive_isv17_27",Mr="_negative_isv17_31",Nr="_gray_isv17_35",Or="_special_isv17_39",Ar="_contrast_isv17_43",Br="_container_isv17_47",Dr="_overlay_isv17_57",Te={loader:jr,spin:Rr,accent:kr,neutral:Tr,positive:Ir,negative:Mr,gray:Nr,special:Or,contrast:Ar,container:Br,overlay:Dr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},wt=m.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:o,...n},c)=>{const _=je(Te.loader,Te[r],Te[`size-${t}`],a);return i.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:o,...n,children:i.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Pr=m.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:o="accent",children:n,className:c,style:_,"data-testid":d,...f}=t,p=je(Te.container,c);return i.jsxs("div",{ref:r,className:p,style:_,"data-testid":d,...f,children:[n,a&&i.jsx("div",{className:Te.overlay,children:i.jsx(wt,{size:s,variant:o,"data-testid":`${d}-spinner`})})]})}),St=m.forwardRef((t,r)=>t.children?i.jsx(Pr,{ref:r,...t}):i.jsx(wt,{ref:r,...t})),Fr=({width:t=48,height:r=48,className:a,"data-testid":s})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":s,children:i.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),zr=m.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:o,isLoading:n=!1,className:c,"data-testid":_="image",onError:d,onLoad:f,...p}=t,[h,b]=m.useState("loading"),y=h==="error",C=(n||h==="loading")&&!y,j=h==="loaded"&&!n,$=je(Ge.image,{[Ge.loading]:C},c),w=m.useCallback(M=>{b("loaded"),f==null||f(M)},[f]),g=m.useCallback(M=>{b("error"),d==null||d(M)},[d]),R={loader:i.jsxs(m.Fragment,{children:[i.jsx(St,{size:48,variant:"special","data-testid":`${_}-loader`}),i.jsx("img",{alt:a,src:o,onLoad:w,onError:g,style:{display:"none"}})]}),error:i.jsx(Fr,{"data-testid":`${_}-fallback`}),image:i.jsx("img",{ref:r,alt:a,"data-testid":_,loading:s,src:o,className:$})};return m.useEffect(()=>{if(!o){b("error");return}b("loading")},[o]),i.jsxs("div",{className:Ge.container,"data-testid":`${_}-container`,...p,children:[C&&R.loader,y&&R.error,j&&R.image]})}),Lt={},$t=m.createContext({locale:Lt}),Et=()=>{const t=m.useContext($t);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Wr=()=>{const{locale:t}=Et();return t},Hr={},Vr={},qr={},Zr=({locale:t={},theme:r,children:a,className:s})=>(m.useLayoutEffect(()=>{if(r){const o=document.documentElement;Object.entries(r).forEach(([n,c])=>{o.style.setProperty(n,c)})}},[r]),i.jsxs(m.Fragment,{children:[i.jsx("div",{"data-testid":"ConfigProvider-component",className:q.clsx(Hr,Vr,qr,s)}),i.jsx($t.Provider,{value:{locale:t},children:a})]})),Gr={},Ur="_tag_1llsi_1",Xr="_label_1llsi_16",Yr="_iconWrapper_1llsi_20",Jr="_medium_1llsi_27",Kr="_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",we={tag:Ur,label:Xr,iconWrapper:Yr,medium:Jr,large:Kr,disabled:Qr,neutral:es,positive:ts,negative:as,warning:rs,vivid:ss,special:ns,accent:os,blue:is,lovely:ls,dreamy:cs},ds=m.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:o="neutral",size:n="medium",disabled:c=!1,showLabel:_=!!s,slotStart:d,slotEnd:f,slotStartWrapperProps:p={},slotEndWrapperProps:h={},"data-testid":b}=t,{className:y,...C}=p,{className:j,...$}=h;return i.jsxs("div",{className:q.clsx(we.tag,we[n],we[o],{[we.disabled]:c,[Ie["typography-label-3-regular"]]:n==="medium",[Ie["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&i.jsx("span",{className:q.clsx([we.iconWrapper,y]),...C,children:d}),_&&i.jsx("span",{className:q.clsx([we.label]),children:s}),f&&i.jsx("span",{className:q.clsx([we.iconWrapper,j]),...$,children:f})]})}),us="_checkbox_qo5f5_43",_s="_input_qo5f5_59",ps="_icon_qo5f5_67",fs="_container_qo5f5_84",gs="_error_qo5f5_135",hs="_checkboxWrapper_qo5f5_147",bs="_medium_qo5f5_201",ys="_large_qo5f5_206",xs="_label_qo5f5_247",he={checkbox:us,input:_s,icon:ps,container:fs,error:gs,checkboxWrapper:hs,medium:bs,large:ys,label:xs},ms=({width:t=12,height:r=9,className:a="",color:s="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),vs=({width:t=12,height:r=2,className:a="",color:s="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Cs={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ws=({size:t,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:o})=>{const{width:n,height:c}=Cs[t];return i.jsx("div",{className:he.icon,"data-testid":`${o}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?i.jsx(vs,{width:n,height:c}):i.jsx(ms,{width:n,height:c})})},Ss=m.forwardRef((t,r)=>{const{name:a,value:s,size:o="medium",indeterminate:n=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:f,className:p,containerStyle:h,style:b,children:y,clickableLabel:C=!0,tabIndex:j,onChange:$,"data-testid":w="checkbox"}=t,[g,R]=m.useState(!1),M=s??g,N=d||c,O=!!_,A=M||n,B=q.clsx(he.container,he[o],f),P=q.clsx(he.checkbox,he[o],{[he.error]:O},p),U=k=>{N||(R(k.target.checked),$==null||$(k.target.checked,k))},H=k=>{if(k.key==="Enter"&&!N){k.preventDefault();const F=!A;R(F),$==null||$(F)}},D=k=>{C||k.preventDefault()},x=k=>k.stopPropagation();return i.jsxs("label",{className:B,htmlFor:a,style:h,"data-testid":w,"data-clickable-label":C,children:[i.jsx("div",{className:he.checkboxWrapper,children:i.jsxs("div",{tabIndex:j||0,className:P,style:b,onKeyDown:H,"aria-checked":A,"aria-disabled":N,"aria-invalid":O,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[i.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:A,disabled:N,className:he.input,onChange:U,onClick:x,"aria-checked":A,"aria-invalid":O,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-input`}),i.jsx(ws,{name:a,size:o,isChecked:A,isDisabled:N,indeterminate:n,dataTestId:w})]})}),y&&i.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":C,className:he.label,onClick:D,children:y})]})}),Ls="_typography_zt7xg_1",$s="_disabled_zt7xg_8",Es="_primary_zt7xg_13",js="_secondary_zt7xg_18",Rs="_tertiary_zt7xg_23",ks="_accent_zt7xg_28",Ts="_positive_zt7xg_38",Is="_negative_zt7xg_48",Ms="_warning_zt7xg_58",Ns="_special_zt7xg_68",Os="_contrast_zt7xg_78",Ee={typography:Ls,disabled:$s,primary:Es,secondary:js,tertiary:Rs,accent:ks,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Ts,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Is,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Ms,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ns,"special-secondary":"_special-secondary_zt7xg_73",contrast:Os,"contrast-secondary":"_contrast-secondary_zt7xg_83"},As={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:o,"data-testid":n,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:f="primary",...p},h)=>{const b=c||As[a],y=q.clsx(Ee.typography,Ie[`typography-${t}-${a}-${_}`],Ee[f],{[Ee.disabled]:d},o);return s?i.jsx(b,{ref:h,className:y,"data-testid":n,...p,children:s}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},yt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:o,"data-testid":n,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:f="primary",...p},h)=>{const b=c,y=q.clsx(Ee.typography,Ie[`typography-${t}-${a}-${_}`],Ee[f],{[Ee.disabled]:d},o);return s?i.jsx(b,{ref:h,className:y,"data-testid":n,...p,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Bs={Title:bt("title"),Subtitle:bt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Ds="_base_19671_1",Ps="_content_19671_1",Fs="_background_19671_1",zs="_button_19671_1",Ws="_link_19671_1",Hs="_input_19671_96",Vs="_suffix_19671_1",qs="_prefix_19671_1",Zs="_tooltip_19671_1",Gs="_hint_19671_746",Us="_dropdown_19671_1",Xs="_popover_19671_1",Ys="_modalBackdrop_19671_1",Js="_modal_19671_1",Ks="_overlay_19671_1",Qs="_drawer_19671_1",en="_notification_19671_1",tn="_alert_19671_1",an="_toast_19671_1",rn="_loading_19671_280",sn="_error_19671_241",nn="_critical_19671_1",on="_inputBase_19671_96",ln="_wrapper_19671_106",cn="_gripHandle_19671_180",dn="_tabFocused_19671_248",un="_disabled_19671_273",_n="_label_19671_290",pn="_S_19671_303",fn="_M_19671_309",gn="_XL_19671_316",hn="_leftSection_19671_323",bn="_rightSection_19671_332",yn="_helper_19671_368",xn="_floatingLabel_19671_393",mn="_focused_19671_451",vn="_filled_19671_452",Cn="_L_19671_486",wn="_characterLimit_19671_527",Sn="_textarea_19671_120",Ln="_truncate_19671_664",L={base:Ds,content:Ps,background:Fs,button:zs,link:Ws,input:Hs,suffix:Vs,prefix:qs,tooltip:Zs,hint:Gs,dropdown:Us,popover:Xs,modalBackdrop:Ys,modal:Js,overlay:Ks,drawer:Qs,notification:en,alert:tn,toast:an,loading:rn,error:sn,critical:nn,inputBase:on,wrapper:ln,"textarea-wrapper":"_textarea-wrapper_19671_120",gripHandle:cn,tabFocused:dn,disabled:un,label:_n,S:pn,M:fn,XL:gn,leftSection:hn,rightSection:bn,helper:yn,floatingLabel:xn,focused:mn,filled:vn,L:Cn,characterLimit:wn,textarea:Sn,"size-S":"_size-S_19671_603","size-M":"_size-M_19671_613","size-L":"_size-L_19671_619","size-XL":"_size-XL_19671_625","with-floating-label":"_with-floating-label_19671_632",truncate:Ln,"has-hint":"_has-hint_19671_763","has-suffix":"_has-suffix_19671_769","has-limit":"_has-limit_19671_792"},$n=({width:t=8,height:r=8,className:a,color:s="#AABBCA"})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),jt=({className:t="",style:r,size:a="md",color:s="currentColor",onClick:o,...n})=>{const _={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 i.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,...n,children:i.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},En=(t,r)=>{const a=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{const o=r==="textarea"?a.current:s.current;o&&o.value!==t&&(o.value=t||"")},[t,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},jn=(t,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const o=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=o;const c=a.current.closest(`.${L.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return m.useEffect(s,[t,r]),m.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},Rn=(t,r,a,s)=>({handleGripMouseDown:m.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${L.wrapper}`);if(!c)return;const _=n.clientY,d=c.clientHeight,f=h=>{const b=h.clientY-_,y=Math.min(100,d),C=Math.max(y,d+b);c.style.height=`${C}px`},p=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)},[t,r,a,s])}),xt=30,kn=m.forwardRef(({component:t="input",size:r="L",value:a="",placeholder:s,disabled:o=!1,loading:n=!1,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:h,className:b,style:y,truncate:C=!1,shouldShowFloatingLabelClass:j=!1,"aria-invalid":$,"aria-errormessage":w,id:g,resize:R,...M},N)=>{const{textareaRef:O,inputRef:A,currentRef:B}=En(a,t);if(jn(a,R,O),m.useImperativeHandle(N,()=>B.current,[B]),t==="textarea")return i.jsx("textarea",{ref:O,id:g,value:a,placeholder:s,disabled:o||n,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:h,className:q.clsx(L.textarea,L[`size-${r}`],j&&L["with-floating-label"],b),style:y,"aria-invalid":$,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,"data-resize":R,...M});if(t==="input")return i.jsx("input",{ref:A,id:g,value:a,placeholder:s,disabled:o||n,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:h,className:q.clsx(L.input,L[`size-${r}`],j&&L["with-floating-label"],C&&L.truncate,b),style:y,"aria-invalid":$,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,...M});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=m.forwardRef(({children:t,size:r="L",error:a=!1,disabled:s=!1,loading:o=!1,className:n,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:f,suffixStyles:p,labelProps:h,helperProps:b,showLimit:y=!1,maxLength:C,hint:j,showHint:$=!1,showHintOnEmpty:w=!1,prefix:g,suffix:R,onSuffixClick:M,placeholder:N,showLabel:O=!0,labelClassName:A,hasValue:B=!1,helper:P,id:U,value:H="",resize:D,showGrip:x=!1,...k},F)=>{const X=m.useId(),G=U||X,ee=$&&j&&(B||w),ne=j&&j.length>xt?j.substring(0,xt)+"...":j,K=q.clsx(L.wrapper,L[`size-${r}`],a&&L.error,s&&L.disabled,o&&L.loading,ee&&L["has-hint"],R&&L["has-suffix"],y&&L["has-limit"],n),ae=q.clsx(L.floatingLabel,L[r],B&&L.filled,A),{handleGripMouseDown:oe}=Rn(x,s,o,D);return i.jsxs("div",{ref:F,className:L.inputBase,"data-testid":"input-base-wrapper",...k,children:[i.jsxs("div",{className:K,style:_,"data-resize":D,"data-show-grip":x?"true":"false",...c,children:[g&&i.jsx("label",{htmlFor:G,className:L.leftSection,style:f,children:g}),R&&i.jsx("label",{htmlFor:G,className:L.rightSection,style:p,onClick:M,children:R}),N&&O&&i.jsx("label",{htmlFor:G,className:ae,style:d,...h,children:N}),t,x&&!y&&(D==="fixed"||!D)&&i.jsx("div",{className:L.gripHandle,onMouseDown:oe,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:i.jsx($n,{})}),ee&&i.jsx("div",{className:q.clsx(L.hint,B&&L.truncate),"data-disabled":s||o,children:ne}),y&&C&&i.jsxs("div",{className:L.characterLimit,children:[(H||"").length," из ",C]})]}),P&&i.jsx("div",{className:q.clsx(L.helper,a&&L.error,(s||o)&&L.disabled),...b,id:a?`${G}-error`:void 0,children:P})]})});Rt.displayName="InputWrapperComponent";const mt=Object.assign(kn,{Wrapper:Rt}),kt=m.forwardRef(({component:t="input",size:r="L",className:a,error:s=!1,disabled:o=!1,loading:n=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:f,prefix:p,suffix:h,id:b,onFocus:y,onBlur:C,onKeyDown:j,onSuffixClick:$,onChange:w,value:g="",wrapperProps:R,wrapperStyles:M,floatingLabelStyles:N,prefixStyles:O,suffixStyles:A,textareaStyles:B,labelProps:P,helperProps:U,showLimit:H=!1,maxLength:D,inputProps:x,hint:k,showHint:F=!1,showHintOnEmpty:X=!1,truncate:G=!1,resize:ee,showGrip:ne=!1,...K},ae)=>{const oe=m.useId(),de=b||oe,[me,ye]=m.useState(g),re=g!==void 0?g:me,ue=(re||"").length>0,le=re||"",_e=_&&(r==="XL"||t==="textarea")&&!p,ve=m.useCallback(Y=>{var J;o||n||(y==null||y(),(J=x==null?void 0:x.onFocus)==null||J.call(x,Y))},[y,x,o,n]),Me=m.useCallback(Y=>{var J;if(Y.key==="Tab"){const ce=Y.target.closest(`.${L.wrapper}`);ce&&ce.classList.add(L.tabFocused)}(J=x==null?void 0:x.onKeyUp)==null||J.call(x,Y)},[x]),Pe=m.useCallback(Y=>{var ce;const J=Y.target.closest(`.${L.wrapper}`);J&&J.classList.remove(L.tabFocused),C==null||C(),(ce=x==null?void 0:x.onBlur)==null||ce.call(x,Y)},[C,x]),Fe=m.useCallback(Y=>{var ce;if(o||n)return;const J=Y.target.value;ye(J),w==null||w(J,Y),(ce=x==null?void 0:x.onChange)==null||ce.call(x,Y)},[w,x,o,n]);return m.useEffect(()=>{ye(g||"")},[g]),i.jsx(mt.Wrapper,{ref:ae,size:r,error:s,disabled:o||n,loading:n,className:q.clsx(a,t==="textarea"&&L["textarea-wrapper"]),wrapperProps:R,wrapperStyles:M,floatingLabelStyles:N,prefixStyles:O,suffixStyles:A,labelProps:P,helperProps:U,showLimit:H,maxLength:D,hint:k,showHint:F,showHintOnEmpty:X,prefix:p,suffix:h,onSuffixClick:$,placeholder:c,showLabel:_,labelClassName:d,hasValue:ue,helper:f,id:de,value:le,showGrip:ne,resize:ee,...K,children:i.jsx(mt,{component:t,size:r,value:le,placeholder:c,disabled:o,loading:n,onFocus:ve,onBlur:Pe,onChange:Fe,onKeyDown:j,onKeyUp:Me,maxLength:D,truncate:G,"data-empty":!ue,shouldShowFloatingLabelClass:_e,style:t==="textarea"?B:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${de}-error`:void 0,id:de,resize:ee,...x})})}),Z={S:"S",M:"M",L:"L",XL:"XL"},Tn=(t,r,a,s)=>{switch(t){case Z.XL:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case Z.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case Z.M:return"10px 12px 10px 12px";case Z.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},In=t=>{switch(t){case Z.XL:return"56px";case Z.L:return"48px";case Z.M:return"40px";case Z.S:return"32px";default:return"48px"}},Mn=t=>{switch(t){case Z.S:case Z.M:case Z.L:return 4;case Z.XL:return 8;default:return 8}},Nn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),On=(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`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),An=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),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`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Dn=(t,r,a,s)=>{const o=In(t),n=Tn(t,r,a,s),c=Mn(t);switch(t){case Z.XL:return On(o,n,c);case Z.L:return An(o,n,c);case Z.M:return Bn(o,n,c);case Z.S:return Nn(o,n,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Pn=m.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:o,minLength:n,autoComplete:c,autoFocus:_,size:d=Z.L,inputProps:f,error:p,disabled:h,loading:b,helper:y,prefix:C,suffix:j,clearable:$=!1,id:w,showLabel:g=!0,onFocus:R,onBlur:M,onSuffixClick:N,onClear:O,className:A,truncate:B=!0,hint:P,showHint:U=!1,showHintOnEmpty:H=!1,wrapperProps:D,labelProps:x,helperProps:k,...F},X)=>{const G=(t||"").length>0,ee=d===Z.XL,ne=!!C,K=ee&&g&&!C,ae=$&&G&&!(h||b),oe=()=>{r==null||r(""),O==null||O()},de=()=>{ae&&oe(),N==null||N()},me=ae?i.jsx(jt,{size:d===Z.S||d===Z.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):j,ye={type:a,minLength:n,autoComplete:c,autoFocus:_,...f},re=Dn(d,K,G,ne);return i.jsx(kt,{size:d,error:p,disabled:h||b,loading:b,helper:y,prefix:C,suffix:me,id:w,showLabel:K,onFocus:R,onBlur:M,onSuffixClick:de,onChange:r,value:t,placeholder:s,className:A,wrapperStyles:re.wrapperStyles,floatingLabelStyles:re.floatingLabelStyles,prefixStyles:re.prefixStyles,suffixStyles:re.suffixStyles,wrapperProps:D,labelProps:x,helperProps:k,showLimit:!1,maxLength:o,inputProps:ye,hint:P,showHint:U,showHintOnEmpty:H,truncate:B,...F})}),se={M:"M",L:"L"},De={M:"12px",L:"16px"},Fn={M:"xs",L:"sm"},Ae={FILL:"fill",FIXED:"fixed"},Ue={M:"112px",L:"56px"},$e={M:"48px",L:"22px"},ge={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},be={M:48,L:56,XL:112},zn=(t,r)=>{if(t===se.M)return Ue.M;if(r)return`${r}px`;switch(t){case se.L:return Ue.L;default:return Ue.L}},Wn=(t,r)=>{if(t===se.M)return $e.M;if(r)switch(r){case be.M:case be.L:return $e.L;case be.XL:return $e.M;default:return $e.L}switch(t){case se.L:return $e.L;default:return $e.L}},Hn=(t,r,a)=>{if(t===se.M)return ge.M;if(r)switch(r){case be.M:return ge.L_WITH_PREFIX;case be.L:return a?ge.L_FLOATING_LABEL:ge.L;case be.XL:return ge.L;default:return ge.L}switch(t){case se.L:return a?ge.L_FLOATING_LABEL:ge.L;default:return ge.L}},Vn=(t,r)=>{if(t===se.M)return"M";if(r)switch(r){case be.M:return"M";case be.L:return"L";case be.XL:return"L";default:return"L"}return t},qn=t=>Fn[t],Zn=t=>De[t],Gn=(t,r,a,s)=>{const o=zn(t,r),n=Wn(t,r),c=Hn(t,r,a);return{wrapperStyles:{minHeight:o,...s===Ae.FILL&&{height:"100%"},...s===Ae.FIXED&&r&&{height:o},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===se.M?De.M:De.L,transformOrigin:"left top",top:r===112&&a&&t===se.L?De.L:void 0},suffixStyles:{right:Zn(t),top:r===48&&t===se.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:n,...s===Ae.FILL&&{flex:1,minHeight:0},...s===Ae.FIXED&&r&&{height:n}}}},Un=m.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:o,autoFocus:n,size:c=se.L,textareaProps:_,error:d,disabled:f,loading:p,helper:h,suffix:b,clearable:y=!1,id:C,showLabel:j=!0,onFocus:$,onBlur:w,onClear:g,onKeyDown:R,className:M,rows:N=1,showLimit:O=!1,wrapperProps:A,labelProps:B,helperProps:P,showGrip:U,minHeight:H,resize:D,...x},k)=>{const F=(t||"").length>0,X=j&&!!a&&(c===se.M||H!==48),G=y&&F&&!(f||p),ee=()=>{r==null||r(""),g==null||g()},ne=G?i.jsx(jt,{size:qn(c),color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,K=Gn(c,H,X&&F,D),ae=Vn(c,H),oe={rows:N,minLength:o,autoFocus:n,resize:D,..._};return i.jsx(kt,{ref:k,component:"textarea",size:ae,error:d,disabled:f||p,loading:p,helper:h,suffix:ne,id:C,showLabel:X,onFocus:$,onBlur:w,onKeyDown:R,onChange:r,value:t||"",placeholder:a,className:M,"data-floating-label":X,wrapperStyles:K.wrapperStyles,floatingLabelStyles:K.floatingLabelStyles,suffixStyles:K.suffixStyles,textareaStyles:K.textareaStyles,wrapperProps:A,labelProps:B,helperProps:P,showLimit:O&&(H===112||c===se.M),maxLength:s,inputProps:oe,resize:D,showGrip:U,...x})}),Xn="_helper_1vhgl_16",Xe={helper:Xn,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Yn=({title:t,error:r,className:a="",style:s,disabled:o=!1,"data-testid":n,"aria-label":c,"aria-describedby":_})=>{const d=!!r,f=q.clsx(Xe.helper,d&&Xe["helper--error"],o&&Xe["helper--disabled"],a),p=o?t:r||t;return i.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":c,"aria-describedby":_,children:i.jsx("p",{children:p})})};exports.Avatar=fr;exports.Badge=Sr;exports.Button=Fa;exports.Checkbox=Ss;exports.ConfigProvider=Zr;exports.Helper=Yn;exports.Image=zr;exports.Loader=St;exports.Tag=ds;exports.TextArea=Un;exports.TextInput=Pn;exports.Typography=Bs;exports.enUS=Lt;exports.ruRU=Gr;exports.useConfig=Et;exports.useLocale=Wr;
34
+ */var ft;function za(){return ft||(ft=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var n="",c=0;c<arguments.length;c++){var u=arguments[c];u&&(n=o(n,s(u)))}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 u in n)r.call(n,u)&&n[u]&&(c=o(c,u));return c}function o(n,c){return c?n?n+" "+c:n+c:n}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Ze)),Ze.exports}var Wa=za();const je=ea(Wa),Ha="_avatar_1kyiq_17",Va="_clickable_1kyiq_41",qa="_icon_1kyiq_58",Za="_disabled_1kyiq_63",Ga="_loading_1kyiq_68",Ua="_image_1kyiq_74",Xa="_name_1kyiq_74",_e={avatar:Ha,clickable:Va,icon:qa,disabled:Za,loading:Ga,image:Ua,name:Xa,"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"},Ie={"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 Ya(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 o=r.charCodeAt(s);a=(a<<5)+a+o}return a>>>0}const Ja=["red","orange","yellow","green","blue","lightblue","purple"];function Ka(t,r=Ja){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},Be=m.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:o=!1,isDisabled:n=!1,shape:c="circle",variant:u="filled",placeholderType:d="neutral",name:f,imgSrc:_,imgAlt:h,icon:b,imgProps:y,colorScheme:C,className:j,"data-testid":$,...w}=t,{onClick:g,onPointerDown:R}=w,N=!n&&!o&&(!!g||!!R),[O,A]=m.useState(!1);m.useEffect(()=>{_&&A(!1)},[_]);const B=_&&!O?"image":b?"icon":f?"name":"placeholder",F=C||B==="name"&&Ka(f)||"gray",U=ar(s),V=Ct(s,c),D=Z.clsx(j,_e.avatar,_e[`variant-${u}`],_e[`color-${F}`],Ie[U],{[_e.disabled]:n,[_e.loading]:o,[_e.clickable]:N}),x={"--avatar-size":`${s}px`,"--avatar-border-radius":`${V}px`,...a},k={icon:()=>i.jsx("span",{"data-testid":"avatar-icon",title:h||void 0,role:"img",className:_e.icon,children:b==null?void 0:b({})}),name:()=>i.jsx("span",{role:"textbox","data-testid":"avatar-name",className:_e.name,title:h||void 0,children:Qa(f||"")}),placeholder:()=>i.jsx("img",{...y,"data-testid":"avatar-placeholder",className:_e.image,src:ir[d],alt:h||void 0}),image:()=>i.jsx("img",{"data-testid":"avatar-image",...y,className:_e.image,src:_||void 0,alt:h||void 0,onLoad:()=>A(!1),onError:X=>{var G;A(!0),(G=y==null?void 0:y.onError)==null||G.call(y,X)}})},z=X=>{N&&(g==null||g(X))};return i.jsx("div",{ref:r,onClick:z,className:D,style:x,"data-testid":$,"aria-disabled":n||o,children:k[B](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,o,n,c){const u=Math.min(o,n)/2,d=Math.min(c,u),f=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),_=[`M${a+d},${s}`,`L${a+o-d},${s}`,`A${d},${d} 0 0 1 ${a+o},${s+d}`,`L${a+o},${s+n-d}`,`A${d},${d} 0 0 1 ${a+o-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,_r=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:o="circle",overflowCount:n=0,overflowProps:c}=t,u=a*s,d=-u+pr,f=Ct(a,o),h=m.useRef(dr()).current.toString(),b=je(cr.avatarGroup),y=ur(a,a,a-u,0,a,a,f);return r.length===0?null:i.jsxs("div",{className:b,children:[r.map((C,j,$)=>{const w=j+1>=$.length;if(C.wrapper){const g=C.wrapper;return i.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:i.jsx(g,{children:i.jsx(Be,{size:a,shape:o,...C})})},Ye(C)+j)}return i.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:i.jsx(Be,{size:a,shape:o,...C})},Ye(C)+j)}),n>0&&i.jsx("div",{style:{marginRight:d},children:i.jsx(Be,{size:a,shape:o,icon:()=>Ya(n),colorScheme:"gray",variant:"light",...c})}),i.jsx("svg",{width:"0",height:"0",children:i.jsx("clipPath",{id:`${h}`,children:i.jsx("path",{clipPathUnits:"objectBoundingBox",d:y,clipRule:"evenodd"})})})]})},fr=Object.assign(Be,{Group:_r}),gr="_wrapper_ecbsu_5",hr="_badge__container_ecbsu_6",br="_badge__content_ecbsu_7",yr="_interactive_ecbsu_20",xr="_disabled_ecbsu_21",mr="_icon_ecbsu_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:yr,disabled:xr,icon:mr,"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=m.useRef(null),[r,a]=m.useState(null);return m.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=m.forwardRef((t,r)=>{const{icon:a,children:s,variant:o="filled",label:n,isHidden:c=!1,colorScheme:u="red",size:d=20,position:f="top-right",positionOffset:_={x:0,y:0},cutoutBackground:h,isDisabled:b,className:y,"data-testid":C="badge",...j}=t,{onClick:$,onPointerDown:w}=j,{ref:g,bgColor:R}=wr(),M=h||R,O=!b&&(!!$||!!w),A=je(fe.badge__container,fe[`position-${f}`]),B=je(y,fe.badge__content,fe[`color-${u}`],fe[`variant-${o}`],{[fe.disabled]:b,[fe.icon]:!!a,[fe.interactive]:O}),F={"--badge-height":`${d}px`,"--badge-offset-x":`${_.x}px`,"--badge-offset-y":`${_.y}px`,...M&&{"--badge-cutout-bg":M},...o==="transparent"&&{"--badge-cutout-bg":"transparent"}},U=(a==null?void 0:a({}))||n,V=D=>{O&&($==null||$(D))};return i.jsxs("div",{className:fe.wrapper,ref:g,"data-testid":C+"-wrapper",children:[s,!c&&i.jsx("span",{className:A,style:F,"data-testid":C+"-container",children:i.jsx("span",{...j,onClick:V,className:B,"data-testid":C+"-content",ref:r,"aria-disabled":b,children:U})})]})}),Lr="_container_op5yl_7",$r="_image_op5yl_22",Er="_loading_op5yl_34",Ge={container:Lr,image:$r,loading:Er},jr="_loader_isv17_1",Rr="_spin_isv17_1",kr="_accent_isv17_19",Tr="_neutral_isv17_23",Ir="_positive_isv17_27",Mr="_negative_isv17_31",Nr="_gray_isv17_35",Or="_special_isv17_39",Ar="_contrast_isv17_43",Br="_container_isv17_47",Dr="_overlay_isv17_57",Te={loader:jr,spin:Rr,accent:kr,neutral:Tr,positive:Ir,negative:Mr,gray:Nr,special:Or,contrast:Ar,container:Br,overlay:Dr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},wt=m.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:o,...n},c)=>{const u=je(Te.loader,Te[r],Te[`size-${t}`],a);return i.jsx("svg",{ref:c,className:u,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:o,...n,children:i.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Pr=m.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:o="accent",children:n,className:c,style:u,"data-testid":d,...f}=t,_=je(Te.container,c);return i.jsxs("div",{ref:r,className:_,style:u,"data-testid":d,...f,children:[n,a&&i.jsx("div",{className:Te.overlay,children:i.jsx(wt,{size:s,variant:o,"data-testid":`${d}-spinner`})})]})}),St=m.forwardRef((t,r)=>t.children?i.jsx(Pr,{ref:r,...t}):i.jsx(wt,{ref:r,...t})),Fr=({width:t=48,height:r=48,className:a,"data-testid":s})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":s,children:i.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),zr=m.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:o,isLoading:n=!1,className:c,"data-testid":u="image",onError:d,onLoad:f,..._}=t,[h,b]=m.useState("loading"),y=h==="error",C=(n||h==="loading")&&!y,j=h==="loaded"&&!n,$=je(Ge.image,{[Ge.loading]:C},c),w=m.useCallback(M=>{b("loaded"),f==null||f(M)},[f]),g=m.useCallback(M=>{b("error"),d==null||d(M)},[d]),R={loader:i.jsxs(m.Fragment,{children:[i.jsx(St,{size:48,variant:"special","data-testid":`${u}-loader`}),i.jsx("img",{alt:a,src:o,onLoad:w,onError:g,style:{display:"none"}})]}),error:i.jsx(Fr,{"data-testid":`${u}-fallback`}),image:i.jsx("img",{ref:r,alt:a,"data-testid":u,loading:s,src:o,className:$})};return m.useEffect(()=>{if(!o){b("error");return}b("loading")},[o]),i.jsxs("div",{className:Ge.container,"data-testid":`${u}-container`,..._,children:[C&&R.loader,y&&R.error,j&&R.image]})}),Lt={},$t=m.createContext({locale:Lt}),Et=()=>{const t=m.useContext($t);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Wr=()=>{const{locale:t}=Et();return t},Hr={},Vr={},qr={},Zr=({locale:t={},theme:r,children:a,className:s})=>(m.useLayoutEffect(()=>{if(r){const o=document.documentElement;Object.entries(r).forEach(([n,c])=>{o.style.setProperty(n,c)})}},[r]),i.jsxs(m.Fragment,{children:[i.jsx("div",{"data-testid":"ConfigProvider-component",className:Z.clsx(Hr,Vr,qr,s)}),i.jsx($t.Provider,{value:{locale:t},children:a})]})),Gr={},Ur="_tag_1llsi_1",Xr="_label_1llsi_16",Yr="_iconWrapper_1llsi_20",Jr="_medium_1llsi_27",Kr="_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",we={tag:Ur,label:Xr,iconWrapper:Yr,medium:Jr,large:Kr,disabled:Qr,neutral:es,positive:ts,negative:as,warning:rs,vivid:ss,special:ns,accent:os,blue:is,lovely:ls,dreamy:cs},ds=m.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:o="neutral",size:n="medium",disabled:c=!1,showLabel:u=!!s,slotStart:d,slotEnd:f,slotStartWrapperProps:_={},slotEndWrapperProps:h={},"data-testid":b}=t,{className:y,...C}=_,{className:j,...$}=h;return i.jsxs("div",{className:Z.clsx(we.tag,we[n],we[o],{[we.disabled]:c,[Ie["typography-label-3-regular"]]:n==="medium",[Ie["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&i.jsx("span",{className:Z.clsx([we.iconWrapper,y]),...C,children:d}),u&&i.jsx("span",{className:Z.clsx([we.label]),children:s}),f&&i.jsx("span",{className:Z.clsx([we.iconWrapper,j]),...$,children:f})]})}),us="_checkbox_qo5f5_43",ps="_input_qo5f5_59",_s="_icon_qo5f5_67",fs="_container_qo5f5_84",gs="_error_qo5f5_135",hs="_checkboxWrapper_qo5f5_147",bs="_medium_qo5f5_201",ys="_large_qo5f5_206",xs="_label_qo5f5_247",he={checkbox:us,input:ps,icon:_s,container:fs,error:gs,checkboxWrapper:hs,medium:bs,large:ys,label:xs},ms=({width:t=12,height:r=9,className:a="",color:s="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),vs=({width:t=12,height:r=2,className:a="",color:s="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Cs={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ws=({size:t,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:o})=>{const{width:n,height:c}=Cs[t];return i.jsx("div",{className:he.icon,"data-testid":`${o}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?i.jsx(vs,{width:n,height:c}):i.jsx(ms,{width:n,height:c})})},Ss=m.forwardRef((t,r)=>{const{name:a,value:s,size:o="medium",indeterminate:n=!1,loading:c=!1,error:u,disabled:d=!1,containerClassName:f,className:_,containerStyle:h,style:b,children:y,clickableLabel:C=!0,tabIndex:j,onChange:$,"data-testid":w="checkbox"}=t,[g,R]=m.useState(!1),M=s??g,N=d||c,O=!!u,A=M||n,B=Z.clsx(he.container,he[o],f),F=Z.clsx(he.checkbox,he[o],{[he.error]:O},_),U=k=>{N||(R(k.target.checked),$==null||$(k.target.checked,k))},V=k=>{if(k.key==="Enter"&&!N){k.preventDefault();const z=!A;R(z),$==null||$(z)}},D=k=>{C||k.preventDefault()},x=k=>k.stopPropagation();return i.jsxs("label",{className:B,htmlFor:a,style:h,"data-testid":w,"data-clickable-label":C,children:[i.jsx("div",{className:he.checkboxWrapper,children:i.jsxs("div",{tabIndex:j||0,className:F,style:b,onKeyDown:V,"aria-checked":A,"aria-disabled":N,"aria-invalid":O,"aria-describedby":u?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[i.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:A,disabled:N,className:he.input,onChange:U,onClick:x,"aria-checked":A,"aria-invalid":O,"aria-describedby":u?`${a}-error`:void 0,"data-testid":`${w}-input`}),i.jsx(ws,{name:a,size:o,isChecked:A,isDisabled:N,indeterminate:n,dataTestId:w})]})}),y&&i.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":C,className:he.label,onClick:D,children:y})]})}),Ls="_typography_zt7xg_1",$s="_disabled_zt7xg_8",Es="_primary_zt7xg_13",js="_secondary_zt7xg_18",Rs="_tertiary_zt7xg_23",ks="_accent_zt7xg_28",Ts="_positive_zt7xg_38",Is="_negative_zt7xg_48",Ms="_warning_zt7xg_58",Ns="_special_zt7xg_68",Os="_contrast_zt7xg_78",Ee={typography:Ls,disabled:$s,primary:Es,secondary:js,tertiary:Rs,accent:ks,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Ts,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Is,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Ms,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ns,"special-secondary":"_special-secondary_zt7xg_73",contrast:Os,"contrast-secondary":"_contrast-secondary_zt7xg_83"},As={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:o,"data-testid":n,as:c,fontWeight:u="semibold",disabled:d=!1,typographyStyle:f="primary",..._},h)=>{const b=c||As[a],y=Z.clsx(Ee.typography,Ie[`typography-${t}-${a}-${u}`],Ee[f],{[Ee.disabled]:d},o);return s?i.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=vt.forwardRef(({size:a=3,children:s,className:o,"data-testid":n,as:c="p",fontWeight:u="regular",disabled:d=!1,typographyStyle:f="primary",..._},h)=>{const b=c,y=Z.clsx(Ee.typography,Ie[`typography-${t}-${a}-${u}`],Ee[f],{[Ee.disabled]:d},o);return s?i.jsx(b,{ref:h,className:y,"data-testid":n,..._,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Bs={Title:bt("title"),Subtitle:bt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Ds="_base_19671_1",Ps="_content_19671_1",Fs="_background_19671_1",zs="_button_19671_1",Ws="_link_19671_1",Hs="_input_19671_96",Vs="_suffix_19671_1",qs="_prefix_19671_1",Zs="_tooltip_19671_1",Gs="_hint_19671_746",Us="_dropdown_19671_1",Xs="_popover_19671_1",Ys="_modalBackdrop_19671_1",Js="_modal_19671_1",Ks="_overlay_19671_1",Qs="_drawer_19671_1",en="_notification_19671_1",tn="_alert_19671_1",an="_toast_19671_1",rn="_loading_19671_280",sn="_error_19671_241",nn="_critical_19671_1",on="_inputBase_19671_96",ln="_wrapper_19671_106",cn="_gripHandle_19671_180",dn="_tabFocused_19671_248",un="_disabled_19671_273",pn="_label_19671_290",_n="_S_19671_303",fn="_M_19671_309",gn="_XL_19671_316",hn="_leftSection_19671_323",bn="_rightSection_19671_332",yn="_helper_19671_368",xn="_floatingLabel_19671_393",mn="_focused_19671_451",vn="_filled_19671_452",Cn="_L_19671_486",wn="_characterLimit_19671_527",Sn="_textarea_19671_120",Ln="_truncate_19671_664",L={base:Ds,content:Ps,background:Fs,button:zs,link:Ws,input:Hs,suffix:Vs,prefix:qs,tooltip:Zs,hint:Gs,dropdown:Us,popover:Xs,modalBackdrop:Ys,modal:Js,overlay:Ks,drawer:Qs,notification:en,alert:tn,toast:an,loading:rn,error:sn,critical:nn,inputBase:on,wrapper:ln,"textarea-wrapper":"_textarea-wrapper_19671_120",gripHandle:cn,tabFocused:dn,disabled:un,label:pn,S:_n,M:fn,XL:gn,leftSection:hn,rightSection:bn,helper:yn,floatingLabel:xn,focused:mn,filled:vn,L:Cn,characterLimit:wn,textarea:Sn,"size-S":"_size-S_19671_603","size-M":"_size-M_19671_613","size-L":"_size-L_19671_619","size-XL":"_size-XL_19671_625","with-floating-label":"_with-floating-label_19671_632",truncate:Ln,"has-hint":"_has-hint_19671_763","has-suffix":"_has-suffix_19671_769","has-limit":"_has-limit_19671_792"},$n=({width:t=8,height:r=8,className:a,color:s="#AABBCA"})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),jt=({className:t="",style:r,size:a="md",color:s="currentColor",onClick:o,...n})=>{const u={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 i.jsx("svg",{className:t,style:u,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,...n,children:i.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},En=(t,r)=>{const a=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{const o=r==="textarea"?a.current:s.current;o&&o.value!==t&&(o.value=t||"")},[t,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},jn=(t,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const o=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=o;const c=a.current.closest(`.${L.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return m.useEffect(s,[t,r]),m.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},Rn=(t,r,a,s)=>({handleGripMouseDown:m.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${L.wrapper}`);if(!c)return;const u=n.clientY,d=c.clientHeight,f=h=>{const b=h.clientY-u,y=Math.min(100,d),C=Math.max(y,d+b);c.style.height=`${C}px`},_=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",_)},[t,r,a,s])}),xt=30,kn=m.forwardRef(({component:t="input",size:r="L",value:a="",placeholder:s,disabled:o=!1,loading:n=!1,onFocus:c,onBlur:u,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:b,style:y,truncate:C=!1,shouldShowFloatingLabelClass:j=!1,"aria-invalid":$,"aria-errormessage":w,id:g,resize:R,...M},N)=>{const{textareaRef:O,inputRef:A,currentRef:B}=En(a,t);if(jn(a,R,O),m.useImperativeHandle(N,()=>B.current,[B]),t==="textarea")return i.jsx("textarea",{ref:O,id:g,value:a,placeholder:s,disabled:o||n,onFocus:c,onBlur:u,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:Z.clsx(L.textarea,L[`size-${r}`],j&&L["with-floating-label"],b),style:y,"aria-invalid":$,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,"data-resize":R,...M});if(t==="input")return i.jsx("input",{ref:A,id:g,value:a,placeholder:s,disabled:o||n,onFocus:c,onBlur:u,onChange:d,onKeyDown:f,onKeyUp:_,maxLength:h,className:Z.clsx(L.input,L[`size-${r}`],j&&L["with-floating-label"],C&&L.truncate,b),style:y,"aria-invalid":$,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,...M});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=m.forwardRef(({children:t,size:r="L",error:a=!1,disabled:s=!1,loading:o=!1,className:n,wrapperProps:c,wrapperStyles:u,floatingLabelStyles:d,prefixStyles:f,suffixStyles:_,labelProps:h,helperProps:b,showLimit:y=!1,maxLength:C,hint:j,showHint:$=!1,showHintOnEmpty:w=!1,prefix:g,suffix:R,onSuffixClick:M,placeholder:N,showLabel:O=!0,labelClassName:A,hasValue:B=!1,helper:F,id:U,value:V="",resize:D,showGrip:x=!1,...k},z)=>{const X=m.useId(),G=U||X,ee=$&&j&&(B||w),ne=j&&j.length>xt?j.substring(0,xt)+"...":j,K=Z.clsx(L.wrapper,L[`size-${r}`],a&&L.error,s&&L.disabled,o&&L.loading,ee&&L["has-hint"],R&&L["has-suffix"],y&&L["has-limit"],n),ae=Z.clsx(L.floatingLabel,L[r],B&&L.filled,A),{handleGripMouseDown:oe}=Rn(x,s,o,D);return i.jsxs("div",{ref:z,className:L.inputBase,"data-testid":"input-base-wrapper",...k,children:[i.jsxs("div",{className:K,style:u,"data-resize":D,"data-show-grip":x?"true":"false",...c,children:[g&&i.jsx("label",{htmlFor:G,className:L.leftSection,style:f,children:g}),R&&i.jsx("label",{htmlFor:G,className:L.rightSection,style:_,onClick:M,children:R}),N&&O&&i.jsx("label",{htmlFor:G,className:ae,style:d,...h,children:N}),t,x&&!y&&(D==="fixed"||!D)&&i.jsx("div",{className:L.gripHandle,onMouseDown:oe,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:i.jsx($n,{})}),ee&&i.jsx("div",{className:Z.clsx(L.hint,B&&L.truncate),"data-disabled":s||o,children:ne}),y&&C&&i.jsxs("div",{className:L.characterLimit,children:[(V||"").length," из ",C]})]}),F&&i.jsx("div",{className:Z.clsx(L.helper,a&&L.error,(s||o)&&L.disabled),...b,id:a?`${G}-error`:void 0,children:F})]})});Rt.displayName="InputWrapperComponent";const mt=Object.assign(kn,{Wrapper:Rt}),kt=m.forwardRef(({component:t="input",size:r="L",className:a,error:s=!1,disabled:o=!1,loading:n=!1,placeholder:c,showLabel:u=!0,labelClassName:d,helper:f,prefix:_,suffix:h,id:b,onFocus:y,onBlur:C,onKeyDown:j,onSuffixClick:$,onChange:w,value:g="",wrapperProps:R,wrapperStyles:M,floatingLabelStyles:N,prefixStyles:O,suffixStyles:A,textareaStyles:B,labelProps:F,helperProps:U,showLimit:V=!1,maxLength:D,inputProps:x,hint:k,showHint:z=!1,showHintOnEmpty:X=!1,truncate:G=!1,resize:ee,showGrip:ne=!1,...K},ae)=>{const oe=m.useId(),de=b||oe,[me,ye]=m.useState(g),re=g!==void 0?g:me,ue=(re||"").length>0,le=re||"",pe=u&&(r==="XL"||t==="textarea")&&!_,ve=m.useCallback(Y=>{var J;o||n||(y==null||y(),(J=x==null?void 0:x.onFocus)==null||J.call(x,Y))},[y,x,o,n]),Me=m.useCallback(Y=>{var J;if(Y.key==="Tab"){const ce=Y.target.closest(`.${L.wrapper}`);ce&&ce.classList.add(L.tabFocused)}(J=x==null?void 0:x.onKeyUp)==null||J.call(x,Y)},[x]),Pe=m.useCallback(Y=>{var ce;const J=Y.target.closest(`.${L.wrapper}`);J&&J.classList.remove(L.tabFocused),C==null||C(),(ce=x==null?void 0:x.onBlur)==null||ce.call(x,Y)},[C,x]),Fe=m.useCallback(Y=>{var ce;if(o||n)return;const J=Y.target.value;ye(J),w==null||w(J,Y),(ce=x==null?void 0:x.onChange)==null||ce.call(x,Y)},[w,x,o,n]);return m.useEffect(()=>{ye(g||"")},[g]),i.jsx(mt.Wrapper,{ref:ae,size:r,error:s,disabled:o||n,loading:n,className:Z.clsx(a,t==="textarea"&&L["textarea-wrapper"]),wrapperProps:R,wrapperStyles:M,floatingLabelStyles:N,prefixStyles:O,suffixStyles:A,labelProps:F,helperProps:U,showLimit:V,maxLength:D,hint:k,showHint:z,showHintOnEmpty:X,prefix:_,suffix:h,onSuffixClick:$,placeholder:c,showLabel:u,labelClassName:d,hasValue:ue,helper:f,id:de,value:le,showGrip:ne,resize:ee,...K,children:i.jsx(mt,{component:t,size:r,value:le,placeholder:c,disabled:o,loading:n,onFocus:ve,onBlur:Pe,onChange:Fe,onKeyDown:j,onKeyUp:Me,maxLength:D,truncate:G,"data-empty":!ue,shouldShowFloatingLabelClass:pe,style:t==="textarea"?B:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${de}-error`:void 0,id:de,resize:ee,...x})})}),P={S:"S",M:"M",L:"L",XL:"XL"},Tn=(t,r,a,s)=>{switch(t){case P.XL:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case P.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case P.M:return"10px 12px 10px 12px";case P.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},In=t=>{switch(t){case P.XL:return"56px";case P.L:return"48px";case P.M:return"40px";case P.S:return"32px";default:return"48px"}},Mn=t=>{switch(t){case P.S:case P.M:case P.L:return 4;case P.XL:return 8;default:return 8}},Nn=t=>{switch(t){case P.S:case P.M:return 8;case P.L:case P.XL:return 12;default:return 12}},On=(t,r,a,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),An=(t,r,a,s)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Bn=(t,r,a,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Dn=(t,r,a,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Pn=(t,r,a,s)=>{const o=In(t),n=Tn(t,r,a,s),c=Nn(t),u=Mn(t);switch(t){case P.XL:return An(o,n,c,u);case P.L:return Bn(o,n,c,u);case P.M:return Dn(o,n,c,u);case P.S:return On(o,n,c,u);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Fn=m.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:o,minLength:n,autoComplete:c,autoFocus:u,size:d=P.L,inputProps:f,error:_,disabled:h,loading:b,helper:y,prefix:C,suffix:j,clearable:$=!1,id:w,showLabel:g=!0,onFocus:R,onBlur:M,onSuffixClick:N,onClear:O,className:A,truncate:B=!0,hint:F,showHint:U=!1,showHintOnEmpty:V=!1,wrapperProps:D,labelProps:x,helperProps:k,...z},X)=>{const G=(t||"").length>0,ee=d===P.XL,ne=!!C,K=ee&&g&&!C,ae=$&&G&&!(h||b),oe=()=>{r==null||r(""),O==null||O()},de=()=>{ae&&oe(),N==null||N()},me=ae?i.jsx(jt,{size:d===P.S||d===P.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):j,ye={type:a,minLength:n,autoComplete:c,autoFocus:u,...f},re=Pn(d,K,G,ne);return i.jsx(kt,{size:d,error:_,disabled:h||b,loading:b,helper:y,prefix:C,suffix:me,id:w,showLabel:K,onFocus:R,onBlur:M,onSuffixClick:de,onChange:r,value:t,placeholder:s,className:A,wrapperStyles:re.wrapperStyles,floatingLabelStyles:re.floatingLabelStyles,prefixStyles:re.prefixStyles,suffixStyles:re.suffixStyles,wrapperProps:D,labelProps:x,helperProps:k,showLimit:!1,maxLength:o,inputProps:ye,hint:F,showHint:U,showHintOnEmpty:V,truncate:B,...z})}),se={M:"M",L:"L"},De={M:"12px",L:"16px"},zn={M:"xs",L:"sm"},Ae={FILL:"fill",FIXED:"fixed"},Ue={M:"112px",L:"56px"},$e={M:"48px",L:"22px"},ge={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},be={M:48,L:56,XL:112},Wn=(t,r)=>{if(t===se.M)return Ue.M;if(r)return`${r}px`;switch(t){case se.L:return Ue.L;default:return Ue.L}},Hn=(t,r)=>{if(t===se.M)return $e.M;if(r)switch(r){case be.M:case be.L:return $e.L;case be.XL:return $e.M;default:return $e.L}switch(t){case se.L:return $e.L;default:return $e.L}},Vn=(t,r,a)=>{if(t===se.M)return ge.M;if(r)switch(r){case be.M:return ge.L_WITH_PREFIX;case be.L:return a?ge.L_FLOATING_LABEL:ge.L;case be.XL:return ge.L;default:return ge.L}switch(t){case se.L:return a?ge.L_FLOATING_LABEL:ge.L;default:return ge.L}},qn=(t,r)=>{if(t===se.M)return"M";if(r)switch(r){case be.M:return"M";case be.L:return"L";case be.XL:return"L";default:return"L"}return t},Zn=t=>zn[t],Gn=t=>De[t],Un=(t,r,a,s)=>{const o=Wn(t,r),n=Hn(t,r),c=Vn(t,r,a);return{wrapperStyles:{minHeight:o,...s===Ae.FILL&&{height:"100%"},...s===Ae.FIXED&&r&&{height:o},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===se.M?De.M:De.L,transformOrigin:"left top",top:r===112&&a&&t===se.L?De.L:void 0},suffixStyles:{right:Gn(t),top:r===48&&t===se.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:n,...s===Ae.FILL&&{flex:1,minHeight:0},...s===Ae.FIXED&&r&&{height:n}}}},Xn=m.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:o,autoFocus:n,size:c=se.L,textareaProps:u,error:d,disabled:f,loading:_,helper:h,suffix:b,clearable:y=!1,id:C,showLabel:j=!0,onFocus:$,onBlur:w,onClear:g,onKeyDown:R,className:M,rows:N=1,showLimit:O=!1,wrapperProps:A,labelProps:B,helperProps:F,showGrip:U,minHeight:V,resize:D,...x},k)=>{const z=(t||"").length>0,X=j&&!!a&&(c===se.M||V!==48),G=y&&z&&!(f||_),ee=()=>{r==null||r(""),g==null||g()},ne=G?i.jsx(jt,{size:Zn(c),color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,K=Un(c,V,X&&z,D),ae=qn(c,V),oe={rows:N,minLength:o,autoFocus:n,resize:D,...u};return i.jsx(kt,{ref:k,component:"textarea",size:ae,error:d,disabled:f||_,loading:_,helper:h,suffix:ne,id:C,showLabel:X,onFocus:$,onBlur:w,onKeyDown:R,onChange:r,value:t||"",placeholder:a,className:M,"data-floating-label":X,wrapperStyles:K.wrapperStyles,floatingLabelStyles:K.floatingLabelStyles,suffixStyles:K.suffixStyles,textareaStyles:K.textareaStyles,wrapperProps:A,labelProps:B,helperProps:F,showLimit:O&&(V===112||c===se.M),maxLength:s,inputProps:oe,resize:D,showGrip:U,...x})}),Yn="_helper_1vhgl_16",Xe={helper:Yn,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Jn=({title:t,error:r,className:a="",style:s,disabled:o=!1,"data-testid":n,"aria-label":c,"aria-describedby":u})=>{const d=!!r,f=Z.clsx(Xe.helper,d&&Xe["helper--error"],o&&Xe["helper--disabled"],a),_=o?t:r||t;return i.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":c,"aria-describedby":u,children:i.jsx("p",{children:_})})};exports.Avatar=fr;exports.Badge=Sr;exports.Button=Fa;exports.Checkbox=Ss;exports.ConfigProvider=Zr;exports.Helper=Jn;exports.Image=zr;exports.Loader=St;exports.Tag=ds;exports.TextArea=Xn;exports.TextInput=Fn;exports.Typography=Bs;exports.enUS=Lt;exports.ruRU=Gr;exports.useConfig=Et;exports.useLocale=Wr;