skillgrid 0.0.21-dev-39472-brand-colors.1146058 → 0.0.21-dev-31775-segmented-control-component.1157511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,5 @@
1
+ import { SegmentedControlProps } from './SegmentedControl.type';
2
+ /**
3
+ * SegmentedControl component
4
+ */
5
+ export declare const SegmentedControl: <T>(props: SegmentedControlProps<T>) => import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,38 @@
1
+ import { ReactNode } from 'react';
2
+ type Segment<T> = {
3
+ value: T;
4
+ label?: ReactNode;
5
+ };
6
+ export interface SegmentedControlProps<T> {
7
+ className?: string;
8
+ /**
9
+ * Размер компонента
10
+ */
11
+ size?: 's' | 'm' | 'l';
12
+ /**
13
+ * Должен ли компонент растягиваться на всю ширину контейнера
14
+ */
15
+ stretched?: boolean;
16
+ /**
17
+ * Значение
18
+ */
19
+ value?: T;
20
+ /**
21
+ * Массив сегментов
22
+ */
23
+ segments: Array<Segment<T>>;
24
+ /**
25
+ * Значение по умолчанию
26
+ */
27
+ defaultValue?: T;
28
+ /** Режим отображения сегментов
29
+ * * icon - только иконка
30
+ * * text - текстовый лейбл
31
+ */
32
+ mode?: 'icon' | 'label';
33
+ /**
34
+ * Хэндлер изменения активного сегмента
35
+ */
36
+ onChange?: (value: T) => void;
37
+ }
38
+ export {};
@@ -0,0 +1,2 @@
1
+ export { SegmentedControl } from './SegmentedControl';
2
+ export type { SegmentedControlProps } from './SegmentedControl.type';
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const m=require("react"),G=require("clsx");function Xt(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const xt=Xt(m);function Qt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ne={exports:{}},Ie={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const h=require("react"),U=require("clsx");function ea(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const wt=ea(h);function ta(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Oe={exports:{}},ke={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ct;function ea(){if(ct)return Ie;ct=1;var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(_,d,p){var f,g={},b=null,h=null;p!==void 0&&(b=""+p),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(h=d.ref);for(f in d)n.call(d,f)&&!s.hasOwnProperty(f)&&(g[f]=d[f]);if(_&&_.defaultProps)for(f in d=_.defaultProps,d)g[f]===void 0&&(g[f]=d[f]);return{$$typeof:r,type:_,key:b,ref:h,props:g,_owner:o.current}}return Ie.Fragment=a,Ie.jsx=c,Ie.jsxs=c,Ie}var je={};/**
9
+ */var ut;function aa(){if(ut)return ke;ut=1;var t=h,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(_,d,p){var f,g={},b=null,m=null;p!==void 0&&(b=""+p),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(m=d.ref);for(f in d)n.call(d,f)&&!s.hasOwnProperty(f)&&(g[f]=d[f]);if(_&&_.defaultProps)for(f in d=_.defaultProps,d)g[f]===void 0&&(g[f]=d[f]);return{$$typeof:r,type:_,key:b,ref:m,props:g,_owner:i.current}}return ke.Fragment=a,ke.jsx=c,ke.jsxs=c,ke}var Te={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,21 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var dt;function ta(){return dt||(dt=1,process.env.NODE_ENV!=="production"&&function(){var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v=Symbol.iterator,S="@@iterator";function E(e){if(e===null||typeof e!="object")return null;var l=v&&e[v]||e[S];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var l=arguments.length,u=new Array(l>1?l-1:0),y=1;y<l;y++)u[y-1]=arguments[y];$("error",e,u)}}function $(e,l,u){{var y=w.ReactDebugCurrentFrame,I=y.getStackAddendum();I!==""&&(l+="%s",u=u.concat([I]));var T=u.map(function(M){return String(M)});T.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,T)}}var A=!1,N=!1,P=!1,k=!1,F=!1,D;D=Symbol.for("react.module.reference");function z(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||F||e===o||e===p||e===f||k||e===h||A||N||P||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===D||e.getModuleId!==void 0))}function x(e,l,u){var y=e.displayName;if(y)return y;var I=l.displayName||l.name||"";return I!==""?u+"("+I+")":u}function W(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case a:return"Portal";case s:return"Profiler";case o:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var l=e;return W(l)+".Consumer";case c:var u=e;return W(u._context)+".Provider";case d:return x(e,e.render,"ForwardRef");case g:var y=e.displayName||null;return y!==null?y:O(e.type)||"Memo";case b:{var I=e,T=I._payload,M=I._init;try{return O(M(T))}catch{return null}}}return null}var j=Object.assign,H=0,Z,Q,q,te,ae,re,me;function ne(){}ne.__reactDisabledLog=!0;function ye(){{if(H===0){Z=console.log,Q=console.info,q=console.warn,te=console.error,ae=console.group,re=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}H++}}function we(){{if(H--,H===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:Z}),info:j({},e,{value:Q}),warn:j({},e,{value:q}),error:j({},e,{value:te}),group:j({},e,{value:ae}),groupCollapsed:j({},e,{value:re}),groupEnd:j({},e,{value:me})})}H<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=w.ReactCurrentDispatcher,ue;function le(e,l,u){{if(ue===void 0)try{throw Error()}catch(I){var y=I.stack.trim().match(/\n( *(at )?)/);ue=y&&y[1]||""}return`
18
- `+ue+e}}var _e=!1,ce;{var xe=typeof WeakMap=="function"?WeakMap:Map;ce=new xe}function K(e,l){if(!e||_e)return"";{var u=ce.get(e);if(u!==void 0)return u}var y;_e=!0;var I=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var T;T=Se.current,Se.current=null,ye();try{if(l){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(X){y=X}Reflect.construct(e,[],M)}else{try{M.call()}catch(X){y=X}e.call(M.prototype)}}else{try{throw Error()}catch(X){y=X}e()}}catch(X){if(X&&y&&typeof X.stack=="string"){for(var L=X.stack.split(`
19
- `),Y=y.stack.split(`
20
- `),U=L.length-1,V=Y.length-1;U>=1&&V>=0&&L[U]!==Y[V];)V--;for(;U>=1&&V>=0;U--,V--)if(L[U]!==Y[V]){if(U!==1||V!==1)do if(U--,V--,V<0||L[U]!==Y[V]){var se=`
21
- `+L[U].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),typeof e=="function"&&ce.set(e,se),se}while(U>=1&&V>=0);break}}}finally{_e=!1,Se.current=T,we(),Error.prepareStackTrace=I}var Le=e?e.displayName||e.name:"",ve=Le?le(Le):"";return typeof e=="function"&&ce.set(e,ve),ve}function ee(e,l,u){return K(e,!1)}function de(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Te(e,l,u){if(e==null)return"";if(typeof e=="function")return K(e,de(e));if(typeof e=="string")return le(e);switch(e){case p:return le("Suspense");case f:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ee(e.render);case g:return Te(e.type,l,u);case b:{var y=e,I=y._payload,T=y._init;try{return Te(T(I),l,u)}catch{}}}return""}var $e=Object.prototype.hasOwnProperty,Ye={},Je=w.ReactDebugCurrentFrame;function Ae(e){if(e){var l=e._owner,u=Te(e.type,e._source,l?l.type:null);Je.setExtraStackFrame(u)}else Je.setExtraStackFrame(null)}function It(e,l,u,y,I){{var T=Function.call.bind($e);for(var M in e)if(T(e,M)){var L=void 0;try{if(typeof e[M]!="function"){var Y=Error((y||"React class")+": "+u+" type `"+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[M]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}L=e[M](l,M,y,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){L=U}L&&!(L instanceof Error)&&(Ae(I),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",y||"React class",u,M,typeof L),Ae(null)),L instanceof Error&&!(L.message in Ye)&&(Ye[L.message]=!0,Ae(I),C("Failed %s type: %s",u,L.message),Ae(null))}}}var jt=Array.isArray;function Ue(e){return jt(e)}function kt(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,u=l&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function Tt(e){try{return Ke(e),!1}catch{return!0}}function Ke(e){return""+e}function Xe(e){if(Tt(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",kt(e)),Ke(e)}var Qe=w.ReactCurrentOwner,At={key:!0,ref:!0,__self:!0,__source:!0},et,tt;function Nt(e){if($e.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Dt(e){if($e.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Ot(e,l){typeof e.ref=="string"&&Qe.current}function Pt(e,l){{var u=function(){et||(et=!0,C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Ut(e,l){{var u=function(){tt||(tt=!0,C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Bt=function(e,l,u,y,I,T,M){var L={$$typeof:r,type:e,key:l,ref:u,props:M,_owner:T};return L._store={},Object.defineProperty(L._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(L,"_self",{configurable:!1,enumerable:!1,writable:!1,value:y}),Object.defineProperty(L,"_source",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.freeze&&(Object.freeze(L.props),Object.freeze(L)),L};function Ft(e,l,u,y,I){{var T,M={},L=null,Y=null;u!==void 0&&(Xe(u),L=""+u),Dt(l)&&(Xe(l.key),L=""+l.key),Nt(l)&&(Y=l.ref,Ot(l,I));for(T in l)$e.call(l,T)&&!At.hasOwnProperty(T)&&(M[T]=l[T]);if(e&&e.defaultProps){var U=e.defaultProps;for(T in U)M[T]===void 0&&(M[T]=U[T])}if(L||Y){var V=typeof e=="function"?e.displayName||e.name||"Unknown":e;L&&Pt(M,V),Y&&Ut(M,V)}return Bt(e,L,Y,I,y,Qe.current,M)}}var Be=w.ReactCurrentOwner,at=w.ReactDebugCurrentFrame;function Ee(e){if(e){var l=e._owner,u=Te(e.type,e._source,l?l.type:null);at.setExtraStackFrame(u)}else at.setExtraStackFrame(null)}var Fe;Fe=!1;function ze(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function rt(){{if(Be.current){var e=O(Be.current.type);if(e)return`
17
+ */var _t;function ra(){return _t||(_t=1,process.env.NODE_ENV!=="production"&&function(){var t=h,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),_=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator,E="@@iterator";function L(e){if(e===null||typeof e!="object")return null;var l=y&&e[y]||e[E];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function x(e){{for(var l=arguments.length,u=new Array(l>1?l-1:0),v=1;v<l;v++)u[v-1]=arguments[v];S("error",e,u)}}function S(e,l,u){{var v=w.ReactDebugCurrentFrame,j=v.getStackAddendum();j!==""&&(l+="%s",u=u.concat([j]));var N=u.map(function(I){return String(I)});N.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,N)}}var $=!1,A=!1,D=!1,T=!1,F=!1,O;O=Symbol.for("react.module.reference");function V(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===s||F||e===i||e===p||e===f||T||e===m||$||A||D||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===g||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===O||e.getModuleId!==void 0))}function C(e,l,u){var v=e.displayName;if(v)return v;var j=l.displayName||l.name||"";return j!==""?u+"("+j+")":u}function W(e){return e.displayName||"Context"}function P(e){if(e==null)return null;if(typeof e.tag=="number"&&x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case n:return"Fragment";case a:return"Portal";case s:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var l=e;return W(l)+".Consumer";case c:var u=e;return W(u._context)+".Provider";case d:return C(e,e.render,"ForwardRef");case g:var v=e.displayName||null;return v!==null?v:P(e.type)||"Memo";case b:{var j=e,N=j._payload,I=j._init;try{return P(I(N))}catch{return null}}}return null}var k=Object.assign,G=0,Z,Q,q,te,ae,re,me;function ne(){}ne.__reactDisabledLog=!0;function ye(){{if(G===0){Z=console.log,Q=console.info,q=console.warn,te=console.error,ae=console.group,re=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ne,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function Se(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:Z}),info:k({},e,{value:Q}),warn:k({},e,{value:q}),error:k({},e,{value:te}),group:k({},e,{value:ae}),groupCollapsed:k({},e,{value:re}),groupEnd:k({},e,{value:me})})}G<0&&x("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=w.ReactCurrentDispatcher,ue;function le(e,l,u){{if(ue===void 0)try{throw Error()}catch(j){var v=j.stack.trim().match(/\n( *(at )?)/);ue=v&&v[1]||""}return`
18
+ `+ue+e}}var _e=!1,ce;{var ve=typeof WeakMap=="function"?WeakMap:Map;ce=new ve}function K(e,l){if(!e||_e)return"";{var u=ce.get(e);if(u!==void 0)return u}var v;_e=!0;var j=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var N;N=Ee.current,Ee.current=null,ye();try{if(l){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(X){v=X}Reflect.construct(e,[],I)}else{try{I.call()}catch(X){v=X}e.call(I.prototype)}}else{try{throw Error()}catch(X){v=X}e()}}catch(X){if(X&&v&&typeof X.stack=="string"){for(var M=X.stack.split(`
19
+ `),Y=v.stack.split(`
20
+ `),z=M.length-1,H=Y.length-1;z>=1&&H>=0&&M[z]!==Y[H];)H--;for(;z>=1&&H>=0;z--,H--)if(M[z]!==Y[H]){if(z!==1||H!==1)do if(z--,H--,H<0||M[z]!==Y[H]){var se=`
21
+ `+M[z].replace(" at new "," at ");return e.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",e.displayName)),typeof e=="function"&&ce.set(e,se),se}while(z>=1&&H>=0);break}}}finally{_e=!1,Ee.current=N,Se(),Error.prepareStackTrace=j}var Me=e?e.displayName||e.name:"",xe=Me?le(Me):"";return typeof e=="function"&&ce.set(e,xe),xe}function ee(e,l,u){return K(e,!1)}function de(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Ne(e,l,u){if(e==null)return"";if(typeof e=="function")return K(e,de(e));if(typeof e=="string")return le(e);switch(e){case p:return le("Suspense");case f:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return ee(e.render);case g:return Ne(e.type,l,u);case b:{var v=e,j=v._payload,N=v._init;try{return Ne(N(j),l,u)}catch{}}}return""}var je=Object.prototype.hasOwnProperty,Ke={},Xe=w.ReactDebugCurrentFrame;function De(e){if(e){var l=e._owner,u=Ne(e.type,e._source,l?l.type:null);Xe.setExtraStackFrame(u)}else Xe.setExtraStackFrame(null)}function kt(e,l,u,v,j){{var N=Function.call.bind(je);for(var I in e)if(N(e,I)){var M=void 0;try{if(typeof e[I]!="function"){var Y=Error((v||"React class")+": "+u+" type `"+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[I]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Y.name="Invariant Violation",Y}M=e[I](l,I,v,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){M=z}M&&!(M instanceof Error)&&(De(j),x("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",u,I,typeof M),De(null)),M instanceof Error&&!(M.message in Ke)&&(Ke[M.message]=!0,De(j),x("Failed %s type: %s",u,M.message),De(null))}}}var Tt=Array.isArray;function ze(e){return Tt(e)}function At(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,u=l&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function Nt(e){try{return Qe(e),!1}catch{return!0}}function Qe(e){return""+e}function et(e){if(Nt(e))return x("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",At(e)),Qe(e)}var tt=w.ReactCurrentOwner,Dt={key:!0,ref:!0,__self:!0,__source:!0},at,rt;function Ot(e){if(je.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Pt(e){if(je.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Ut(e,l){typeof e.ref=="string"&&tt.current}function zt(e,l){{var u=function(){at||(at=!0,x("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Bt(e,l){{var u=function(){rt||(rt=!0,x("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var Ft=function(e,l,u,v,j,N,I){var M={$$typeof:r,type:e,key:l,ref:u,props:I,_owner:N};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function Vt(e,l,u,v,j){{var N,I={},M=null,Y=null;u!==void 0&&(et(u),M=""+u),Pt(l)&&(et(l.key),M=""+l.key),Ot(l)&&(Y=l.ref,Ut(l,j));for(N in l)je.call(l,N)&&!Dt.hasOwnProperty(N)&&(I[N]=l[N]);if(e&&e.defaultProps){var z=e.defaultProps;for(N in z)I[N]===void 0&&(I[N]=z[N])}if(M||Y){var H=typeof e=="function"?e.displayName||e.name||"Unknown":e;M&&zt(I,H),Y&&Bt(I,H)}return Ft(e,M,Y,j,v,tt.current,I)}}var Be=w.ReactCurrentOwner,nt=w.ReactDebugCurrentFrame;function Le(e){if(e){var l=e._owner,u=Ne(e.type,e._source,l?l.type:null);nt.setExtraStackFrame(u)}else nt.setExtraStackFrame(null)}var Fe;Fe=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(Be.current){var e=P(Be.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function zt(e){return""}var nt={};function Wt(e){{var l=rt();if(!l){var u=typeof e=="string"?e:e.displayName||e.name;u&&(l=`
23
+ Check the render method of \``+e+"`."}return""}}function Wt(e){return""}var ot={};function Ht(e){{var l=st();if(!l){var u=typeof e=="string"?e:e.displayName||e.name;u&&(l=`
24
24
 
25
- Check the top-level render call using <`+u+">.")}return l}}function st(e,l){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Wt(l);if(nt[u])return;nt[u]=!0;var y="";e&&e._owner&&e._owner!==Be.current&&(y=" It was passed a child from "+O(e._owner.type)+"."),Ee(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,y),Ee(null)}}function ot(e,l){{if(typeof e!="object")return;if(Ue(e))for(var u=0;u<e.length;u++){var y=e[u];ze(y)&&st(y,l)}else if(ze(e))e._store&&(e._store.validated=!0);else if(e){var I=E(e);if(typeof I=="function"&&I!==e.entries)for(var T=I.call(e),M;!(M=T.next()).done;)ze(M.value)&&st(M.value,l)}}}function Vt(e){{var l=e.type;if(l==null||typeof l=="string")return;var u;if(typeof l=="function")u=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===d||l.$$typeof===g))u=l.propTypes;else return;if(u){var y=O(l);It(u,e.props,"prop",y,e)}else if(l.PropTypes!==void 0&&!Fe){Fe=!0;var I=O(l);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",I||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ht(e){{for(var l=Object.keys(e.props),u=0;u<l.length;u++){var y=l[u];if(y!=="children"&&y!=="key"){Ee(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",y),Ee(null);break}}e.ref!==null&&(Ee(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),Ee(null))}}var it={};function lt(e,l,u,y,I,T){{var M=z(e);if(!M){var L="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(L+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Y=zt();Y?L+=Y:L+=rt();var U;e===null?U="null":Ue(e)?U="array":e!==void 0&&e.$$typeof===r?(U="<"+(O(e.type)||"Unknown")+" />",L=" Did you accidentally export a JSX literal instead of a component?"):U=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,L)}var V=Ft(e,l,u,I,T);if(V==null)return V;if(M){var se=l.children;if(se!==void 0)if(y)if(Ue(se)){for(var Le=0;Le<se.length;Le++)ot(se[Le],e);Object.freeze&&Object.freeze(se)}else C("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ot(se,e)}if($e.call(l,"key")){var ve=O(e),X=Object.keys(l).filter(function(Kt){return Kt!=="key"}),We=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!it[ve+We]){var Jt=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+u+">.")}return l}}function it(e,l){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var u=Ht(l);if(ot[u])return;ot[u]=!0;var v="";e&&e._owner&&e._owner!==Be.current&&(v=" It was passed a child from "+P(e._owner.type)+"."),Le(e),x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,v),Le(null)}}function lt(e,l){{if(typeof e!="object")return;if(ze(e))for(var u=0;u<e.length;u++){var v=e[u];Ve(v)&&it(v,l)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var j=L(e);if(typeof j=="function"&&j!==e.entries)for(var N=j.call(e),I;!(I=N.next()).done;)Ve(I.value)&&it(I.value,l)}}}function Gt(e){{var l=e.type;if(l==null||typeof l=="string")return;var u;if(typeof l=="function")u=l.propTypes;else if(typeof l=="object"&&(l.$$typeof===d||l.$$typeof===g))u=l.propTypes;else return;if(u){var v=P(l);kt(u,e.props,"prop",v,e)}else if(l.PropTypes!==void 0&&!Fe){Fe=!0;var j=P(l);x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",j||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(e){{for(var l=Object.keys(e.props),u=0;u<l.length;u++){var v=l[u];if(v!=="children"&&v!=="key"){Le(e),x("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",v),Le(null);break}}e.ref!==null&&(Le(e),x("Invalid attribute `ref` supplied to `React.Fragment`."),Le(null))}}var ct={};function dt(e,l,u,v,j,N){{var I=V(e);if(!I){var M="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(M+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Y=Wt();Y?M+=Y:M+=st();var z;e===null?z="null":ze(e)?z="array":e!==void 0&&e.$$typeof===r?(z="<"+(P(e.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):z=typeof e,x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,M)}var H=Vt(e,l,u,j,N);if(H==null)return H;if(I){var se=l.children;if(se!==void 0)if(v)if(ze(se)){for(var Me=0;Me<se.length;Me++)lt(se[Me],e);Object.freeze&&Object.freeze(se)}else x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else lt(se,e)}if(je.call(l,"key")){var xe=P(e),X=Object.keys(l).filter(function(Qt){return Qt!=="key"}),We=X.length>0?"{key: someKey, "+X.join(": ..., ")+": ...}":"{key: someKey}";if(!ct[xe+We]){var Xt=X.length>0?"{"+X.join(": ..., ")+": ...}":"{}";x(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,We,ve,Jt,ve),it[ve+We]=!0}}return e===n?Ht(V):Vt(V),V}}function Gt(e,l,u){return lt(e,l,u,!0)}function Zt(e,l,u){return lt(e,l,u,!1)}var qt=Zt,Yt=Gt;je.Fragment=n,je.jsx=qt,je.jsxs=Yt}()),je}var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV==="production"?Ne.exports=ea():Ne.exports=ta()),Ne.exports}var i=aa();const ra=t=>t.as==="a",na=t=>t.as===void 0||t.as==="button",sa="_button_1abee_213",oa="_disabled_1abee_237",ia="_loading_1abee_237",la="_neutral_1abee_259",ca="_accent_1abee_263",da="_positive_1abee_267",ua="_negative_1abee_271",_a="_contrast_1abee_275",fa="_special_1abee_279",pa="_primary_1abee_284",ga="_secondary_1abee_285",ba="_tertiary_1abee_286",ha="_label_1abee_321",ma="_rightGroup_1abee_333",ya="_iconOnly_1abee_349",xa="_large_1abee_357",va="_medium_1abee_361",Ca="_small_1abee_365",wa="_spaceBetween_1abee_370",Sa="_stretched_1abee_384",Ea="_icon_1abee_349",La="_badge_1abee_705",Ma="_badgeMedium_1abee_721",Ra="_circular_1abee_738",$a="_badgeSmall_1abee_743",Ia="_badgeExtraSmall_1abee_765",ja="_withSubcaption_1abee_784",ka="_subcaption_1abee_797",Ta="_loader_1abee_804",Aa="_spin_1abee_1",Na="_l_1abee_237",Da="_m_1abee_361",Oa="_s_1abee_279",Pa="_xs_1abee_869",B={button:sa,disabled:oa,loading:ia,neutral:la,accent:ca,positive:da,negative:ua,contrast:_a,special:fa,primary:pa,secondary:ga,tertiary:ba,label:ha,rightGroup:ma,iconOnly:ya,large:xa,medium:va,small:Ca,spaceBetween:wa,stretched:Sa,icon:Ea,badge:La,badgeMedium:Ma,circular:Ra,badgeSmall:$a,badgeExtraSmall:Ia,withSubcaption:ja,subcaption:ka,loader:Ta,spin:Aa,l:Na,m:Da,s:Oa,xs:Pa},_t=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:n,icon:o,children:s,postfix:c,showSubcaption:_,subcaption:d,size:p})=>{if(t)return i.jsx("span",{className:B.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=n==="extra-small",g=parseInt(String(a),10),b=!isNaN(g)&&g>=0&&g<=9;return i.jsxs(i.Fragment,{children:[r&&(a||f)&&i.jsx("span",{"data-testid":"button-badge",className:G.clsx(B.badge,B[`badge${f?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[B.circular]:b&&!f}),children:!f&&a}),_&&p!=="s"&&p!=="xs"?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),i.jsx("span",{"data-testid":"button-subcaption",className:B.subcaption,children:d})]}):s?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),i.jsxs("div",{"data-testid":"button-right-group",className:B.rightGroup,children:[o&&i.jsx("span",{"data-testid":"button-icon",className:B.icon,children:o}),c&&i.jsx("span",{"data-testid":"button-postfix",className:B.postfix,children:c})]})]}):i.jsx("span",{"data-testid":"button-icon",className:B.icon,children:o})]})},Ua=m.forwardRef((t,r)=>{const{mode:a="primary",size:n="m",buttonStyle:o="neutral",loading:s=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:p,showSubcaption:f=!1,subcaption:g,stretched:b=!1,spaceBetween:h=!1,icon:v,postfix:S,className:E,children:w}=t,C=c,$=s,A=!C&&!$,N=!!v&&!w,P=G.clsx(B.button,B[n],B[a],B[o],{[B.disabled]:C,[B.loading]:$,[B.stretched]:b,[B.spaceBetween]:h&&b,[B.withSubcaption]:f&&g&&n!=="s"&&n!=="xs",[B.iconOnly]:N},E),k={isLoading:$,showBadge:_,badgeValue:p,badgeSize:d,icon:v,children:w,postfix:S,showSubcaption:f,subcaption:g,size:n};if(ra(t)){const{href:F,onClick:D,mode:z,size:x,buttonStyle:W,loading:O,disabled:j,showBadge:H,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:we,children:Se,"data-testid":ue,style:le,..._e}=t,ce=xe=>{A&&D&&D(xe)};return i.jsx("a",{ref:r,className:P,href:A?F:void 0,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":C||$,style:le,..._e,children:i.jsx(_t,{...k})})}if(na(t)){const{type:F="button",onClick:D,mode:z,size:x,buttonStyle:W,loading:O,disabled:j,showBadge:H,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:we,children:Se,"data-testid":ue,style:le,..._e}=t,ce=xe=>{A&&D&&D(xe)};return i.jsx("button",{ref:r,type:F,className:P,disabled:C,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":C||$,style:le,..._e,children:i.jsx(_t,{...k})})}return null});var Ve={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,We,xe,Xt,xe),ct[xe+We]=!0}}return e===n?Zt(H):Gt(H),H}}function qt(e,l,u){return dt(e,l,u,!0)}function Yt(e,l,u){return dt(e,l,u,!1)}var Jt=Yt,Kt=qt;Te.Fragment=n,Te.jsx=Jt,Te.jsxs=Kt}()),Te}var ft;function na(){return ft||(ft=1,process.env.NODE_ENV==="production"?Oe.exports=aa():Oe.exports=ra()),Oe.exports}var o=na();const sa=t=>t.as==="a",oa=t=>t.as===void 0||t.as==="button",ia="_button_1abee_213",la="_disabled_1abee_237",ca="_loading_1abee_237",da="_neutral_1abee_259",ua="_accent_1abee_263",_a="_positive_1abee_267",fa="_negative_1abee_271",pa="_contrast_1abee_275",ga="_special_1abee_279",ha="_primary_1abee_284",ba="_secondary_1abee_285",ma="_tertiary_1abee_286",ya="_label_1abee_321",va="_rightGroup_1abee_333",xa="_iconOnly_1abee_349",Ca="_large_1abee_357",wa="_medium_1abee_361",Sa="_small_1abee_365",Ea="_spaceBetween_1abee_370",La="_stretched_1abee_384",Ma="_icon_1abee_349",$a="_badge_1abee_705",Ia="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ja="_badgeSmall_1abee_743",ka="_badgeExtraSmall_1abee_765",Ta="_withSubcaption_1abee_784",Aa="_subcaption_1abee_797",Na="_loader_1abee_804",Da="_spin_1abee_1",Oa="_l_1abee_237",Pa="_m_1abee_361",Ua="_s_1abee_279",za="_xs_1abee_869",B={button:ia,disabled:la,loading:ca,neutral:da,accent:ua,positive:_a,negative:fa,contrast:pa,special:ga,primary:ha,secondary:ba,tertiary:ma,label:ya,rightGroup:va,iconOnly:xa,large:Ca,medium:wa,small:Sa,spaceBetween:Ea,stretched:La,icon:Ma,badge:$a,badgeMedium:Ia,circular:Ra,badgeSmall:ja,badgeExtraSmall:ka,withSubcaption:Ta,subcaption:Aa,loader:Na,spin:Da,l:Oa,m:Pa,s:Ua,xs:za},pt=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:n,icon:i,children:s,postfix:c,showSubcaption:_,subcaption:d,size:p})=>{if(t)return o.jsx("span",{className:B.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=n==="extra-small",g=parseInt(String(a),10),b=!isNaN(g)&&g>=0&&g<=9;return o.jsxs(o.Fragment,{children:[r&&(a||f)&&o.jsx("span",{"data-testid":"button-badge",className:U.clsx(B.badge,B[`badge${f?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[B.circular]:b&&!f}),children:!f&&a}),_&&p!=="s"&&p!=="xs"?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),o.jsx("span",{"data-testid":"button-subcaption",className:B.subcaption,children:d})]}):s?o.jsxs(o.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:B.label,children:s}),o.jsxs("div",{"data-testid":"button-right-group",className:B.rightGroup,children:[i&&o.jsx("span",{"data-testid":"button-icon",className:B.icon,children:i}),c&&o.jsx("span",{"data-testid":"button-postfix",className:B.postfix,children:c})]})]}):o.jsx("span",{"data-testid":"button-icon",className:B.icon,children:i})]})},Ba=h.forwardRef((t,r)=>{const{mode:a="primary",size:n="m",buttonStyle:i="neutral",loading:s=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:p,showSubcaption:f=!1,subcaption:g,stretched:b=!1,spaceBetween:m=!1,icon:y,postfix:E,className:L,children:w}=t,x=c,S=s,$=!x&&!S,A=!!y&&!w,D=U.clsx(B.button,B[n],B[a],B[i],{[B.disabled]:x,[B.loading]:S,[B.stretched]:b,[B.spaceBetween]:m&&b,[B.withSubcaption]:f&&g&&n!=="s"&&n!=="xs",[B.iconOnly]:A},L),T={isLoading:S,showBadge:_,badgeValue:p,badgeSize:d,icon:y,children:w,postfix:E,showSubcaption:f,subcaption:g,size:n};if(sa(t)){const{href:F,onClick:O,mode:V,size:C,buttonStyle:W,loading:P,disabled:k,showBadge:G,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:Se,children:Ee,"data-testid":ue,style:le,..._e}=t,ce=ve=>{$&&O&&O(ve)};return o.jsx("a",{ref:r,className:D,href:$?F:void 0,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":x||S,style:le,..._e,children:o.jsx(pt,{...T})})}if(oa(t)){const{type:F="button",onClick:O,mode:V,size:C,buttonStyle:W,loading:P,disabled:k,showBadge:G,badgeSize:Z,badgeValue:Q,showSubcaption:q,subcaption:te,stretched:ae,spaceBetween:re,icon:me,postfix:ne,className:ye,tabIndex:Se,children:Ee,"data-testid":ue,style:le,..._e}=t,ce=ve=>{$&&O&&O(ve)};return o.jsx("button",{ref:r,type:F,className:D,disabled:x,tabIndex:t.tabIndex,onClick:ce,"data-testid":ue,"aria-disabled":x||S,style:le,..._e,children:o.jsx(pt,{...T})})}return null});var He={exports:{}};/*!
31
31
  Copyright (c) 2018 Jed Watson.
32
32
  Licensed under the MIT License (MIT), see
33
33
  http://jedwatson.github.io/classnames
34
- */var ft;function Ba(){return ft||(ft=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",c=0;c<arguments.length;c++){var _=arguments[c];_&&(s=o(s,n(_)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var _ in s)r.call(s,_)&&s[_]&&(c=o(c,_));return c}function o(s,c){return c?s?s+" "+c:s+c:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Ve)),Ve.exports}var Fa=Ba();const be=Qt(Fa),za="_avatar_1ob17_4",Wa="_clickable_1ob17_23",Va="_icon_1ob17_40",Ha="_disabled_1ob17_45",Ga="_image_1ob17_51",Za="_name_1ob17_51",qa="_circle_1ob17_160",Ya="_square_1ob17_164",oe={avatar:za,clickable:Wa,icon:Va,disabled:Ha,image:Ga,name:Za,"size-208":"_size-208_1ob17_104","size-96":"_size-96_1ob17_111","size-84":"_size-84_1ob17_118","size-56":"_size-56_1ob17_125","size-48":"_size-48_1ob17_132","size-40":"_size-40_1ob17_139","size-32":"_size-32_1ob17_146","size-24":"_size-24_1ob17_153",circle:qa,square:Ya,"variant-filled":"_variant-filled_1ob17_185","color-brand":"_color-brand_1ob17_190","color-red":"_color-red_1ob17_194","color-orange":"_color-orange_1ob17_198","color-yellow":"_color-yellow_1ob17_202","color-green":"_color-green_1ob17_206","color-blue":"_color-blue_1ob17_210","color-lightblue":"_color-lightblue_1ob17_214","color-purple":"_color-purple_1ob17_218","color-gray":"_color-gray_1ob17_222","color-contrast":"_color-contrast_1ob17_226","variant-light":"_variant-light_1ob17_232","variant-outline":"_variant-outline_1ob17_304"},pt=99;function Ja(t){return t<pt?`+${t}`:`${pt}+`}function vt(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let n=0;n<r.length;n++){const o=r.charCodeAt(n);a=(a<<5)+a+o}return a>>>0}const Ka=["red","orange","yellow","green","blue","lightblue","purple"];function Xa(t,r=Ka){const a=vt(t),n=Math.abs(a)%r.length;return r[n]}const gt=2;function Qa(t){const r=t.split(" ");return r.length===1?t.slice(0,gt).toUpperCase():r.map(a=>a[0]).slice(0,gt).join("").toUpperCase()}function er(t,r){return r==="circle"?t/2:t===24||t===208?8:t===32||t===40||t===48?12:t===56?16:t===84||t===96?24:12}const tr="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ar="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",rr="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",nr="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",sr={male:tr,female:ar,org:nr,neutral:rr},qe=m.forwardRef((t,r)=>{const{style:a,size:n=40,isLoading:o=!1,isDisabled:s=!1,shape:c="circle",variant:_="light",placeholderType:d="neutral",name:p="",imgSrc:f,imgAlt:g="",icon:b,imgProps:h,colorScheme:v,"data-testid":S,...E}=t,{onClick:w,onPointerDown:C}=E,A=!s&&!o&&(!!w||!!C),[N,P]=m.useState(!f),k=f&&!N?"image":b?"icon":p?"name":"placeholder",F=k==="name"?v||Xa(p):v||"gray",D=be(oe.avatar,oe[c],oe[`size-${n}`],oe[`variant-${_}`],oe[`color-${F}`],{[oe.disabled]:s,[oe.loading]:o,[oe.clickable]:A}),z={icon:()=>i.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:be(oe.icon),children:b==null?void 0:b({})}),name:()=>i.jsx("span",{role:"textbox","data-testid":"avatar-name",className:be(oe.name),title:g,children:Qa(p)}),placeholder:()=>i.jsx("img",{...h,"data-testid":"avatar-placeholder",className:oe.image,src:sr[d],alt:g}),image:()=>i.jsx("img",{"data-testid":"avatar-image",...h,className:oe.image,src:f,alt:g,onLoad:()=>P(!1),onError:W=>{var O;P(!0),(O=h==null?void 0:h.onError)==null||O.call(h,W)}})},x=W=>{A&&(w==null||w(W))};return i.jsx("div",{ref:r,onClick:x,className:D,style:a,"data-testid":S,"aria-disabled":s||o,children:z[k](null)})}),or="_avatarGroup_157g4_1",ir={avatarGroup:or};let lr=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function cr(t,r,a,n,o,s,c){const _=Math.min(o,s)/2,d=Math.min(c,_),p=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),f=[`M${a+d},${n}`,`L${a+o-d},${n}`,`A${d},${d} 0 0 1 ${a+o},${n+d}`,`L${a+o},${n+s-d}`,`A${d},${d} 0 0 1 ${a+o-d},${n+s}`,`L${a+d},${n+s}`,`A${d},${d} 0 0 1 ${a},${n+s-d}`,`L${a},${n+d}`,`A${d},${d} 0 0 1 ${a+d},${n}`,"Z"].join(" ");return`${p} ${f}`}const dr=2,ur=t=>{const{avatars:r=[],overflowCount:a=0,size:n=40,overlap:o=.3,shape:s="circle",overflowOnClick:c}=t,_=n*o,d=-_+dr,p=er(n,s),g=m.useRef(lr()).current.toString(),b=be(ir.avatarGroup),h=cr(n,n,n-_,0,n,n,p);return r.length===0?null:i.jsxs("div",{className:b,children:[r.map((v,S,E)=>{const w=S+1>=E.length;return i.jsx("div",{style:{clipPath:w&&!a?void 0:`url(#${g})`,marginRight:d},children:i.jsx(qe,{size:n,shape:s,...v})},vt(v)+S)}),a>0&&i.jsx("div",{style:{marginRight:d},children:i.jsx(qe,{size:n,shape:s,onClick:c,icon:()=>Ja(a),colorScheme:"gray"})}),i.jsx("svg",{width:"0",height:"0",children:i.jsx("clipPath",{id:`${g}`,children:i.jsx("path",{clipPathUnits:"objectBoundingBox",d:h,clipRule:"evenodd"})})})]})},_r=Object.assign(qe,{Group:ur}),fr="_wrapper_1ncab_5",pr="_badge__container_1ncab_6",gr="_badge__content_1ncab_7",br="_interactive_1ncab_20",hr="_disabled_1ncab_21",mr="_icon_1ncab_22",fe={wrapper:fr,badge__container:pr,badge__content:gr,interactive:br,disabled:hr,icon:mr,"variant-filled":"_variant-filled_1ncab_101","color-brand":"_color-brand_1ncab_106","color-red":"_color-red_1ncab_110","color-orange":"_color-orange_1ncab_114","color-yellow":"_color-yellow_1ncab_118","color-green":"_color-green_1ncab_122","color-blue":"_color-blue_1ncab_126","color-lightblue":"_color-lightblue_1ncab_130","color-purple":"_color-purple_1ncab_134","color-gray":"_color-gray_1ncab_138","color-contrast":"_color-contrast_1ncab_142","variant-light":"_variant-light_1ncab_148","variant-outline":"_variant-outline_1ncab_220","variant-transparent":"_variant-transparent_1ncab_294","position-top-left":"_position-top-left_1ncab_361","position-top-right":"_position-top-right_1ncab_367","position-bottom-left":"_position-bottom-left_1ncab_373","position-bottom-right":"_position-bottom-right_1ncab_379","position-top-center":"_position-top-center_1ncab_385","position-bottom-center":"_position-bottom-center_1ncab_391","position-middle-left":"_position-middle-left_1ncab_397","position-middle-right":"_position-middle-right_1ncab_403","position-middle-center":"_position-middle-center_1ncab_409","position-top-left-inside":"_position-top-left-inside_1ncab_416","position-top-right-inside":"_position-top-right-inside_1ncab_422","position-bottom-left-inside":"_position-bottom-left-inside_1ncab_428","position-bottom-right-inside":"_position-bottom-right-inside_1ncab_434","position-top-center-inside":"_position-top-center-inside_1ncab_440","position-bottom-center-inside":"_position-bottom-center-inside_1ncab_446","position-middle-left-inside":"_position-middle-left-inside_1ncab_452","position-middle-right-inside":"_position-middle-right-inside_1ncab_458"},yr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),xr=t=>{if(!t)return null;let r=t;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!yr(n))return n;r=r.parentElement}return null},vr=()=>{const t=m.useRef(null),[r,a]=m.useState(null);return m.useEffect(()=>{if(t.current){const n=xr(t.current);a(n)}},[]),{ref:t,bgColor:r}},Cr=m.forwardRef((t,r)=>{const{icon:a,children:n,variant:o="filled",label:s,colorScheme:c="red",size:_=20,position:d="top-right",positionOffset:p={x:0,y:0},cutoutBackground:f,isDisabled:g,className:b,"data-testid":h="badge",...v}=t,{onClick:S,onPointerDown:E}=v,{ref:w,bgColor:C}=vr(),$=f||C,N=!g&&(!!S||!!E),P=be(fe.badge__container,fe[`position-${d}`]),k=be(b,fe.badge__content,fe[`color-${c}`],fe[`variant-${o}`],{[fe.icon]:!!a,[fe.interactive]:N,[fe.disabled]:g}),F={"--badge-height":`${_}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...$&&{"--badge-cutout-bg":$},...o==="transparent"&&{"--badge-cutout-bg":"transparent"}},D=(a==null?void 0:a({}))||s,z=x=>{N&&(S==null||S(x))};return i.jsxs("div",{className:fe.wrapper,ref:w,"data-testid":h+"-wrapper",children:[n,i.jsx("span",{className:P,style:F,"data-testid":h+"-container",children:i.jsx("span",{...v,onClick:z,className:k,"data-testid":h+"-content",ref:r,"aria-disabled":g,children:D})})]})}),wr="_container_op5yl_7",Sr="_image_op5yl_22",Er="_loading_op5yl_34",He={container:wr,image:Sr,loading:Er},Lr="_loader_isv17_1",Mr="_spin_isv17_1",Rr="_accent_isv17_19",$r="_neutral_isv17_23",Ir="_positive_isv17_27",jr="_negative_isv17_31",kr="_gray_isv17_35",Tr="_special_isv17_39",Ar="_contrast_isv17_43",Nr="_container_isv17_47",Dr="_overlay_isv17_57",ke={loader:Lr,spin:Mr,accent:Rr,neutral:$r,positive:Ir,negative:jr,gray:kr,special:Tr,contrast:Ar,container:Nr,overlay:Dr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Ct=m.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":n="loader",style:o,...s},c)=>{const _=be(ke.loader,ke[r],ke[`size-${t}`],a);return i.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:o,...s,children:i.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Or=m.forwardRef((t,r)=>{const{loading:a=!1,size:n=24,variant:o="accent",children:s,className:c,style:_,"data-testid":d,...p}=t,f=be(ke.container,c);return i.jsxs("div",{ref:r,className:f,style:_,"data-testid":d,...p,children:[s,a&&i.jsx("div",{className:ke.overlay,children:i.jsx(Ct,{size:n,variant:o,"data-testid":`${d}-spinner`})})]})}),wt=m.forwardRef((t,r)=>t.children?i.jsx(Or,{ref:r,...t}):i.jsx(Ct,{ref:r,...t})),Pr=({width:t=48,height:r=48,className:a,"data-testid":n})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:i.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),Ur=m.forwardRef((t,r)=>{const{alt:a="",loading:n="lazy",src:o,isLoading:s=!1,className:c,"data-testid":_="image",onError:d,onLoad:p,...f}=t,[g,b]=m.useState("loading"),h=g==="error",v=(s||g==="loading")&&!h,S=g==="loaded"&&!s,E=be(He.image,{[He.loading]:v},c),w=m.useCallback(A=>{b("loaded"),p==null||p(A)},[p]),C=m.useCallback(A=>{b("error"),d==null||d(A)},[d]),$={loader:i.jsxs(m.Fragment,{children:[i.jsx(wt,{size:48,variant:"special","data-testid":`${_}-loader`}),i.jsx("img",{alt:a,src:o,onLoad:w,onError:C,style:{display:"none"}})]}),error:i.jsx(Pr,{"data-testid":`${_}-fallback`}),image:i.jsx("img",{ref:r,alt:a,"data-testid":_,loading:n,src:o,className:E})};return m.useEffect(()=>{if(!o){b("error");return}b("loading")},[o]),i.jsxs("div",{className:He.container,"data-testid":`${_}-container`,...f,children:[v&&$.loader,h&&$.error,S&&$.image]})}),St={},Et=m.createContext({locale:St}),Lt=()=>{const t=m.useContext(Et);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Br=()=>{const{locale:t}=Lt();return t},Fr={},zr={},Wr={},Vr=({locale:t={},theme:r,children:a,className:n})=>(m.useLayoutEffect(()=>{if(r){const o=document.documentElement;return Object.entries(r).forEach(([s,c])=>{o.style.setProperty(s,c)}),()=>{Object.keys(r).forEach(s=>{o.style.removeProperty(s)})}}},[r]),i.jsxs(m.Fragment,{children:[i.jsx("div",{"data-testid":"ConfigProvider-component",className:G.clsx(Fr,zr,Wr,n)}),i.jsx(Et.Provider,{value:{locale:t},children:a})]})),Hr={},Gr="_tag_1llsi_1",Zr="_label_1llsi_16",qr="_iconWrapper_1llsi_20",Yr="_medium_1llsi_27",Jr="_large_1llsi_33",Kr="_disabled_1llsi_43",Xr="_neutral_1llsi_47",Qr="_positive_1llsi_53",en="_negative_1llsi_59",tn="_warning_1llsi_65",an="_vivid_1llsi_71",rn="_special_1llsi_77",nn="_accent_1llsi_84",sn="_blue_1llsi_90",on="_lovely_1llsi_96",ln="_dreamy_1llsi_102",Ce={tag:Gr,label:Zr,iconWrapper:qr,medium:Yr,large:Jr,disabled:Kr,neutral:Xr,positive:Qr,negative:en,warning:tn,vivid:an,special:rn,accent:nn,blue:sn,lovely:on,dreamy:ln},Pe={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},cn=m.forwardRef((t,r)=>{const{className:a,children:n,componentStyle:o="neutral",size:s="medium",disabled:c=!1,showLabel:_=!!n,slotStart:d,slotEnd:p,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":b}=t,{className:h,...v}=f,{className:S,...E}=g;return i.jsxs("div",{className:G.clsx(Ce.tag,Ce[s],Ce[o],{[Ce.disabled]:c,[Pe["typography-label-3-regular"]]:s==="medium",[Pe["typography-subtitle-1-semibold"]]:s==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&i.jsx("span",{className:G.clsx([Ce.iconWrapper,h]),...v,children:d}),_&&i.jsx("span",{className:G.clsx([Ce.label]),children:n}),p&&i.jsx("span",{className:G.clsx([Ce.iconWrapper,S]),...E,children:p})]})}),dn="_checkbox_qo5f5_43",un="_input_qo5f5_59",_n="_icon_qo5f5_67",fn="_container_qo5f5_84",pn="_error_qo5f5_135",gn="_checkboxWrapper_qo5f5_147",bn="_medium_qo5f5_201",hn="_large_qo5f5_206",mn="_label_qo5f5_247",ge={checkbox:dn,input:un,icon:_n,container:fn,error:pn,checkboxWrapper:gn,medium:bn,large:hn,label:mn},yn=({width:t=12,height:r=9,className:a="",color:n="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:n})}),xn=({width:t=12,height:r=2,className:a="",color:n="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:n})}),vn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Cn=({size:t,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:o})=>{const{width:s,height:c}=vn[t];return i.jsx("div",{className:ge.icon,"data-testid":`${o}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?i.jsx(xn,{width:s,height:c}):i.jsx(yn,{width:s,height:c})})},wn=m.forwardRef((t,r)=>{const{name:a,value:n,size:o="medium",indeterminate:s=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:p,className:f,containerStyle:g,style:b,children:h,clickableLabel:v=!0,tabIndex:S,onChange:E,"data-testid":w="checkbox"}=t,[C,$]=m.useState(!1),A=n??C,N=d||c,P=!!_,k=A||s,F=G(ge.container,ge[o],p),D=G(ge.checkbox,ge[o],{[ge.error]:P},f),z=j=>{N||($(j.target.checked),E==null||E(j.target.checked,j))},x=j=>{if(j.key==="Enter"&&!N){j.preventDefault();const H=!k;$(H),E==null||E(H)}},W=j=>{v||j.preventDefault()},O=j=>j.stopPropagation();return i.jsxs("label",{className:F,htmlFor:a,style:g,"data-testid":w,"data-clickable-label":v,children:[i.jsx("div",{className:ge.checkboxWrapper,children:i.jsxs("div",{tabIndex:S||0,className:D,style:b,onKeyDown:x,"aria-checked":k,"aria-disabled":N,"aria-invalid":P,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[i.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:k,disabled:N,className:ge.input,onChange:z,onClick:O,"aria-checked":k,"aria-invalid":P,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-input`}),i.jsx(Cn,{name:a,size:o,isChecked:k,isDisabled:N,indeterminate:s,dataTestId:w})]})}),h&&i.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":v,className:ge.label,onClick:W,children:h})]})}),Sn="_typography_zt7xg_1",En="_disabled_zt7xg_8",Ln="_primary_zt7xg_13",Mn="_secondary_zt7xg_18",Rn="_tertiary_zt7xg_23",$n="_accent_zt7xg_28",In="_positive_zt7xg_38",jn="_negative_zt7xg_48",kn="_warning_zt7xg_58",Tn="_special_zt7xg_68",An="_contrast_zt7xg_78",Re={typography:Sn,disabled:En,primary:Ln,secondary:Mn,tertiary:Rn,accent:$n,"accent-secondary":"_accent-secondary_zt7xg_33",positive:In,"positive-secondary":"_positive-secondary_zt7xg_43",negative:jn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:kn,"warning-secondary":"_warning-secondary_zt7xg_63",special:Tn,"special-secondary":"_special-secondary_zt7xg_73",contrast:An,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Nn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=xt.forwardRef(({size:a=3,children:n,className:o,"data-testid":s,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c||Nn[a],h=G.clsx(Re.typography,Pe[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},o);return n?i.jsx(b,{ref:g,className:h,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},ht=t=>{const r=xt.forwardRef(({size:a=3,children:n,className:o,"data-testid":s,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c,h=G.clsx(Re.typography,Pe[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},o);return n?i.jsx(b,{ref:g,className:h,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Dn={Title:bt("title"),Subtitle:bt("subtitle"),Label:ht("label"),Paragraph:ht("paragraph")},On="_inputBase_1m6fe_85",Pn="_wrapper_1m6fe_95",Un="_gripHandle_1m6fe_169",Bn="_error_1m6fe_230",Fn="_tabFocused_1m6fe_237",zn="_disabled_1m6fe_262",Wn="_loading_1m6fe_269",Vn="_label_1m6fe_279",Hn="_small_1m6fe_292",Gn="_large_1m6fe_299",Zn="_leftSection_1m6fe_306",qn="_rightSection_1m6fe_315",Yn="_helper_1m6fe_351",Jn="_floatingLabel_1m6fe_376",Kn="_focused_1m6fe_434",Xn="_filled_1m6fe_435",Qn="_medium_1m6fe_469",es="_characterLimit_1m6fe_510",ts="_input_1m6fe_85",as="_textarea_1m6fe_109",rs="_truncate_1m6fe_637",ns="_hint_1m6fe_719",R={inputBase:On,wrapper:Pn,"textarea-wrapper":"_textarea-wrapper_1m6fe_109",gripHandle:Un,error:Bn,tabFocused:Fn,disabled:zn,loading:Wn,label:Vn,small:Hn,large:Gn,leftSection:Zn,rightSection:qn,helper:Yn,floatingLabel:Jn,focused:Kn,filled:Xn,medium:Qn,characterLimit:es,input:ts,textarea:as,"size-small":"_size-small_1m6fe_586","size-medium":"_size-medium_1m6fe_592","size-large":"_size-large_1m6fe_598","with-floating-label":"_with-floating-label_1m6fe_605",truncate:rs,hint:ns,"has-hint":"_has-hint_1m6fe_736"},ss=({width:t=8,height:r=8,className:a,color:n="#AABBCA"})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:i.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:n})}),os=(t,r)=>{const a=m.useRef(null),n=m.useRef(null);return m.useEffect(()=>{const o=r==="textarea"?a.current:n.current;o&&o.value!==t&&(o.value=t||"")},[t,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},is=(t,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const o=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const s=a.current.scrollHeight+"px";a.current.style.setProperty("height",s,"important"),a.current.scrollTop=o;const c=a.current.closest(`.${R.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return m.useEffect(n,[t,r]),m.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},ls=(t,r,a,n)=>({handleGripMouseDown:m.useCallback(s=>{if(!t||r||a||!(n==="fixed"||!n))return;s.preventDefault(),s.stopPropagation();const c=s.currentTarget.closest(`.${R.wrapper}`);if(!c)return;const _=s.clientY,d=c.clientHeight,p=g=>{const b=g.clientY-_,h=Math.min(100,d),v=Math.max(h,d+b);c.style.height=`${v}px`},f=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",f)},[t,r,a,n])}),mt=30,cs=m.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:n,disabled:o=!1,loading:s=!1,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:g,style:b,truncate:h=!1,shouldShowFloatingLabelClass:v=!1,"aria-invalid":S,"aria-errormessage":E,id:w,resize:C,...$},A)=>{const{textareaRef:N,inputRef:P,currentRef:k}=os(a,t);if(is(a,C,N),m.useImperativeHandle(A,()=>k.current,[k]),t==="textarea")return i.jsx("textarea",{ref:N,id:w,value:a,placeholder:n,disabled:o||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:G(R.textarea,R[`size-${r}`],v&&R["with-floating-label"],g),style:b,"aria-invalid":S,"aria-errormessage":E,"aria-describedby":E?`${w}-error`:void 0,tabIndex:0,"data-resize":C,...$});if(t==="input")return i.jsx("input",{ref:P,id:w,value:a,placeholder:n,disabled:o||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:G(R.input,R[`size-${r}`],v&&R["with-floating-label"],h&&R.truncate,g),style:b,"aria-invalid":S,"aria-errormessage":E,"aria-describedby":E?`${w}-error`:void 0,tabIndex:0,...$});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${t}". Допустимые значения: 'input', 'textarea'`),null}),Mt=m.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:n=!1,loading:o=!1,className:s,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:p,suffixStyles:f,labelProps:g,helperProps:b,showLimit:h=!1,maxLength:v,hint:S,showHint:E=!1,showHintOnEmpty:w=!1,prefix:C,suffix:$,placeholder:A,showLabel:N=!0,labelClassName:P,hasValue:k=!1,helper:F,id:D,value:z="",resize:x,showGrip:W=!1,...O},j)=>{const H=m.useId(),Z=D||H,Q=E&&S&&(k||w),q=S&&S.length>mt?S.substring(0,mt)+"...":S,te=G(R.wrapper,a&&R.error,n&&R.disabled,o&&R.loading,Q&&R["has-hint"],s),ae=G(R.floatingLabel,R[r],k&&R.filled,P),{handleGripMouseDown:re}=ls(W,n,o,x);return i.jsxs("div",{ref:j,className:R.inputBase,"data-testid":"input-base-wrapper",...O,children:[i.jsxs("div",{className:te,style:_,"data-resize":x,"data-show-grip":W?"true":"false",...c,children:[C&&i.jsx("label",{htmlFor:Z,className:R.leftSection,style:p,children:C}),$&&i.jsx("label",{htmlFor:Z,className:R.rightSection,style:f,children:$}),A&&N&&i.jsx("label",{htmlFor:Z,className:ae,style:d,...g,children:A}),t,W&&!h&&(x==="fixed"||!x)&&i.jsx("div",{className:R.gripHandle,onMouseDown:re,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:i.jsx(ss,{})}),Q&&i.jsx("div",{className:G(R.hint,k&&R.truncate),"data-disabled":n||o,children:q}),h&&v&&i.jsxs("div",{className:R.characterLimit,children:[(z||"").length," из ",v]})]}),F&&i.jsx("div",{className:G(R.helper,a&&R.error,(n||o)&&R.disabled),...b,id:a?`${Z}-error`:void 0,children:F})]})});Mt.displayName="InputWrapperComponent";const yt=Object.assign(cs,{Wrapper:Mt}),Rt=m.forwardRef(({component:t="input",size:r="medium",className:a,error:n=!1,disabled:o=!1,loading:s=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:p,prefix:f,suffix:g,id:b,onFocus:h,onBlur:v,onChange:S,value:E="",wrapperProps:w,wrapperStyles:C,floatingLabelStyles:$,prefixStyles:A,suffixStyles:N,textareaStyles:P,labelProps:k,helperProps:F,showLimit:D=!1,maxLength:z,inputProps:x,hint:W,showHint:O=!1,showHintOnEmpty:j=!1,truncate:H=!1,resize:Z,showGrip:Q=!1,...q},te)=>{const ae=m.useId(),re=b||ae,[me,ne]=m.useState(E),ye=E!==void 0?E:me,we=(ye||"").length>0,ue=_&&(r==="large"||t==="textarea")&&!f,le=m.useCallback(K=>{var ee;o||s||(h==null||h(),(ee=x==null?void 0:x.onFocus)==null||ee.call(x,K))},[h,x,o,s]),_e=m.useCallback(K=>{var ee;if(K.key==="Tab"){const de=K.target.closest(`.${R.wrapper}`);de&&de.classList.add(R.tabFocused)}(ee=x==null?void 0:x.onKeyUp)==null||ee.call(x,K)},[x]),ce=m.useCallback(K=>{var de;const ee=K.target.closest(`.${R.wrapper}`);ee&&ee.classList.remove(R.tabFocused),v==null||v(),(de=x==null?void 0:x.onBlur)==null||de.call(x,K)},[v,x]),xe=m.useCallback(K=>{var de;if(o||s)return;const ee=K.target.value;ne(ee),S==null||S(ee),(de=x==null?void 0:x.onChange)==null||de.call(x,K)},[S,x,o,s]);return m.useEffect(()=>{ne(E)},[E]),i.jsx(yt.Wrapper,{ref:te,size:r,error:n,disabled:o||s,loading:s,className:G.clsx(a,t==="textarea"&&R["textarea-wrapper"]),wrapperProps:w,wrapperStyles:C,floatingLabelStyles:$,prefixStyles:A,suffixStyles:N,labelProps:k,helperProps:F,showLimit:D,maxLength:z,hint:W,showHint:O,showHintOnEmpty:j,prefix:f,suffix:g,placeholder:c,showLabel:_,labelClassName:d,hasValue:we,helper:p,id:re,value:ye,showGrip:Q,resize:Z,...q,children:i.jsx(yt,{component:t,size:r,value:ye,placeholder:c,disabled:o,loading:s,onFocus:le,onBlur:ce,onChange:xe,onKeyUp:_e,maxLength:z,truncate:H,"data-empty":!we,shouldShowFloatingLabelClass:ue,style:t==="textarea"?P:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${re}-error`:void 0,id:re,resize:Z,...x})})}),$t=({className:t="",style:r,size:a="md",color:n="currentColor",onClick:o,...s})=>{const _={display:"inline-block",color:n,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return i.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,...s,children:i.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},J={SMALL:"small",MEDIUM:"medium",LARGE:"large"},ds=(t,r,a,n)=>{switch(t){case J.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case J.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case J.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},us=t=>{switch(t){case J.LARGE:return"56px";case J.MEDIUM:return"48px";case J.SMALL:return"40px";default:return"48px"}},_s=t=>{switch(t){case J.SMALL:return 8;case J.MEDIUM:case J.LARGE:return 12;default:return 12}},fs=(t,r,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),ps=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),gs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),bs=(t,r,a,n)=>{const o=us(t),s=ds(t,r,a,n),c=_s(t);switch(t){case J.LARGE:return fs(o,s,c);case J.MEDIUM:return ps(o,s,c);case J.SMALL:return gs(o,s,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},hs=m.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:n,maxLength:o,minLength:s,autoComplete:c,autoFocus:_,size:d=J.MEDIUM,inputProps:p,error:f,disabled:g,loading:b,helper:h,prefix:v,suffix:S,clearable:E=!1,id:w,showLabel:C=!0,onFocus:$,onBlur:A,className:N,truncate:P=!0,hint:k,showHint:F=!1,showHintOnEmpty:D=!1,wrapperProps:z,labelProps:x,helperProps:W,...O},j)=>{const H=(t||"").length>0,Z=d===J.LARGE,Q=!!v,q=Z&&C&&!v,te=E&&H&&!(g||b),ae=()=>{r==null||r("")},re=te?i.jsx($t,{size:d===J.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ae,style:{cursor:"pointer"},"data-testid":"x-icon"}):S,me={type:a,minLength:s,autoComplete:c,autoFocus:_,...p},ne=bs(d,q,H,Q);return i.jsx(Rt,{size:d,error:f,disabled:g||b,loading:b,helper:h,prefix:v,suffix:re,id:w,showLabel:q,onFocus:$,onBlur:A,onChange:r,value:t||"",placeholder:n,className:N,wrapperStyles:ne.wrapperStyles,floatingLabelStyles:ne.floatingLabelStyles,prefixStyles:ne.prefixStyles,suffixStyles:ne.suffixStyles,wrapperProps:z,labelProps:x,helperProps:W,showLimit:!1,maxLength:o,inputProps:me,hint:k,showHint:F,showHintOnEmpty:D,truncate:P,...O})}),ie={SMALL:"small",MEDIUM:"medium"},Oe={SMALL:"12px",MEDIUM:"16px"},ms={SMALL:"xs",MEDIUM:"sm"},De={FILL:"fill",FIXED:"fixed"},Ge={SMALL:"112px",MEDIUM:"56px"},Me={SMALL:"48px",MEDIUM:"22px"},pe={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},he={SMALL:48,MEDIUM:56,LARGE:112},ys=(t,r)=>{if(t===ie.SMALL)return Ge.SMALL;if(r)return`${r}px`;switch(t){case ie.MEDIUM:return Ge.MEDIUM;default:return Ge.MEDIUM}},xs=(t,r)=>{if(t===ie.SMALL)return Me.SMALL;if(r)switch(r){case he.SMALL:case he.MEDIUM:return Me.MEDIUM;case he.LARGE:return Me.SMALL;default:return Me.MEDIUM}switch(t){case ie.MEDIUM:return Me.MEDIUM;default:return Me.MEDIUM}},vs=(t,r,a)=>{if(t===ie.SMALL)return pe.SMALL;if(r)switch(r){case he.SMALL:return pe.MEDIUM_WITH_PREFIX;case he.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;case he.LARGE:return pe.MEDIUM;default:return pe.MEDIUM}switch(t){case ie.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;default:return pe.MEDIUM}},Cs=(t,r)=>{if(t===ie.SMALL)return"small";if(r)switch(r){case he.SMALL:return"small";case he.MEDIUM:return"medium";case he.LARGE:return"medium";default:return"medium"}return t},ws=t=>ms[t.toUpperCase()],Ss=t=>Oe[t.toUpperCase()],Es=(t,r,a,n)=>{const o=ys(t,r),s=xs(t,r),c=vs(t,r,a);return{wrapperStyles:{minHeight:o,...n===De.FILL&&{height:"100%"},...n===De.FIXED&&r&&{height:o},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===ie.SMALL?Oe.SMALL:Oe.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===ie.MEDIUM?Oe.MEDIUM:void 0},suffixStyles:{right:Ss(t)},textareaStyles:{minHeight:s,...n===De.FILL&&{flex:1,minHeight:0},...n===De.FIXED&&r&&{height:s}}}},Ls=m.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:n,minLength:o,autoFocus:s,size:c=ie.MEDIUM,textareaProps:_,error:d,disabled:p,loading:f,helper:g,suffix:b,clearable:h=!1,id:v,showLabel:S=!0,onFocus:E,onBlur:w,className:C,rows:$=1,showLimit:A=!1,wrapperProps:N,labelProps:P,helperProps:k,showGrip:F,minHeight:D,resize:z,...x},W)=>{const O=(t||"").length>0,j=S&&!!a&&(c===ie.SMALL||D!==48),H=h&&O&&!(p||f),Z=()=>{r==null||r("")},Q=H?i.jsx($t,{size:ws(c),color:"var(--icon-secondary)",onClick:Z,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,q=Es(c,D,j&&O,z),te=Cs(c,D),ae={rows:$,minLength:o,autoFocus:s,resize:z,..._};return i.jsx(Rt,{ref:W,component:"textarea",size:te,error:d,disabled:p||f,loading:f,helper:g,suffix:Q,id:v,showLabel:j,onFocus:E,onBlur:w,onChange:r,value:t||"",placeholder:a,className:C,"data-floating-label":j,wrapperStyles:q.wrapperStyles,floatingLabelStyles:q.floatingLabelStyles,suffixStyles:q.suffixStyles,textareaStyles:q.textareaStyles,wrapperProps:N,labelProps:P,helperProps:k,showLimit:A&&(D===112||c===ie.SMALL),maxLength:n,inputProps:ae,resize:z,showGrip:F,...x})}),Ms="_helper_1vhgl_16",Ze={helper:Ms,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Rs=({title:t,error:r,className:a="",style:n,disabled:o=!1,"data-testid":s,"aria-label":c,"aria-describedby":_})=>{const d=!!r,p=G.clsx(Ze.helper,d&&Ze["helper--error"],o&&Ze["helper--disabled"],a),f=o?t:r||t;return i.jsx("div",{className:p,style:n,"data-testid":s,"aria-label":c,"aria-describedby":_,children:i.jsx("p",{children:f})})};exports.Avatar=_r;exports.Badge=Cr;exports.Button=Ua;exports.Checkbox=wn;exports.ConfigProvider=Vr;exports.Helper=Rs;exports.Image=Ur;exports.Loader=wt;exports.Tag=cn;exports.TextArea=Ls;exports.TextInput=hs;exports.Typography=Dn;exports.enUS=St;exports.ruRU=Hr;exports.useConfig=Lt;exports.useLocale=Br;
34
+ */var gt;function Fa(){return gt||(gt=1,function(t){(function(){var r={}.hasOwnProperty;function a(){for(var s="",c=0;c<arguments.length;c++){var _=arguments[c];_&&(s=i(s,n(_)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return a.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var c="";for(var _ in s)r.call(s,_)&&s[_]&&(c=i(c,_));return c}function i(s,c){return c?s?s+" "+c:s+c:s}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(He)),He.exports}var Va=Fa();const he=ta(Va),Wa="_avatar_1ob17_4",Ha="_clickable_1ob17_23",Ga="_icon_1ob17_40",Za="_disabled_1ob17_45",qa="_image_1ob17_51",Ya="_name_1ob17_51",Ja="_circle_1ob17_160",Ka="_square_1ob17_164",oe={avatar:Wa,clickable:Ha,icon:Ga,disabled:Za,image:qa,name:Ya,"size-208":"_size-208_1ob17_104","size-96":"_size-96_1ob17_111","size-84":"_size-84_1ob17_118","size-56":"_size-56_1ob17_125","size-48":"_size-48_1ob17_132","size-40":"_size-40_1ob17_139","size-32":"_size-32_1ob17_146","size-24":"_size-24_1ob17_153",circle:Ja,square:Ka,"variant-filled":"_variant-filled_1ob17_185","color-brand":"_color-brand_1ob17_190","color-red":"_color-red_1ob17_194","color-orange":"_color-orange_1ob17_198","color-yellow":"_color-yellow_1ob17_202","color-green":"_color-green_1ob17_206","color-blue":"_color-blue_1ob17_210","color-lightblue":"_color-lightblue_1ob17_214","color-purple":"_color-purple_1ob17_218","color-gray":"_color-gray_1ob17_222","color-contrast":"_color-contrast_1ob17_226","variant-light":"_variant-light_1ob17_232","variant-outline":"_variant-outline_1ob17_304"},ht=99;function Xa(t){return t<ht?`+${t}`:`${ht}+`}function Je(t){const r=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let n=0;n<r.length;n++){const i=r.charCodeAt(n);a=(a<<5)+a+i}return a>>>0}const Qa=["red","orange","yellow","green","blue","lightblue","purple"];function er(t,r=Qa){const a=Je(t),n=Math.abs(a)%r.length;return r[n]}const bt=2;function tr(t){const r=t.split(" ");return r.length===1?t.slice(0,bt).toUpperCase():r.map(a=>a[0]).slice(0,bt).join("").toUpperCase()}function ar(t,r){return r==="circle"?t/2:t===24||t===208?8:t===32||t===40||t===48?12:t===56?16:t===84||t===96?24:12}const rr="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",nr="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",sr="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",or="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",ir={male:rr,female:nr,org:or,neutral:sr},Ye=h.forwardRef((t,r)=>{const{style:a,size:n=40,isLoading:i=!1,isDisabled:s=!1,shape:c="circle",variant:_="light",placeholderType:d="neutral",name:p="",imgSrc:f,imgAlt:g="",icon:b,imgProps:m,colorScheme:y,"data-testid":E,...L}=t,{onClick:w,onPointerDown:x}=L,$=!s&&!i&&(!!w||!!x),[A,D]=h.useState(!f),T=f&&!A?"image":b?"icon":p?"name":"placeholder",F=T==="name"?y||er(p):y||"gray",O=he(oe.avatar,oe[c],oe[`size-${n}`],oe[`variant-${_}`],oe[`color-${F}`],{[oe.disabled]:s,[oe.loading]:i,[oe.clickable]:$}),V={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:he(oe.icon),children:b==null?void 0:b({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:he(oe.name),title:g,children:tr(p)}),placeholder:()=>o.jsx("img",{...m,"data-testid":"avatar-placeholder",className:oe.image,src:ir[d],alt:g}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...m,className:oe.image,src:f,alt:g,onLoad:()=>D(!1),onError:W=>{var P;D(!0),(P=m==null?void 0:m.onError)==null||P.call(m,W)}})},C=W=>{$&&(w==null||w(W))};return o.jsx("div",{ref:r,onClick:C,className:O,style:a,"data-testid":E,"aria-disabled":s||i,children:V[T](null)})}),lr="_avatarGroup_157g4_1",cr={avatarGroup:lr};let dr=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");function ur(t,r,a,n,i,s,c){const _=Math.min(i,s)/2,d=Math.min(c,_),p=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),f=[`M${a+d},${n}`,`L${a+i-d},${n}`,`A${d},${d} 0 0 1 ${a+i},${n+d}`,`L${a+i},${n+s-d}`,`A${d},${d} 0 0 1 ${a+i-d},${n+s}`,`L${a+d},${n+s}`,`A${d},${d} 0 0 1 ${a},${n+s-d}`,`L${a},${n+d}`,`A${d},${d} 0 0 1 ${a+d},${n}`,"Z"].join(" ");return`${p} ${f}`}const _r=2,fr=t=>{const{avatars:r=[],overflowCount:a=0,size:n=40,overlap:i=.3,shape:s="circle",overflowOnClick:c}=t,_=n*i,d=-_+_r,p=ar(n,s),g=h.useRef(dr()).current.toString(),b=he(cr.avatarGroup),m=ur(n,n,n-_,0,n,n,p);return r.length===0?null:o.jsxs("div",{className:b,children:[r.map((y,E,L)=>{const w=E+1>=L.length;return o.jsx("div",{style:{clipPath:w&&!a?void 0:`url(#${g})`,marginRight:d},children:o.jsx(Ye,{size:n,shape:s,...y})},Je(y)+E)}),a>0&&o.jsx("div",{style:{marginRight:d},children:o.jsx(Ye,{size:n,shape:s,onClick:c,icon:()=>Xa(a),colorScheme:"gray"})}),o.jsx("svg",{width:"0",height:"0",children:o.jsx("clipPath",{id:`${g}`,children:o.jsx("path",{clipPathUnits:"objectBoundingBox",d:m,clipRule:"evenodd"})})})]})},pr=Object.assign(Ye,{Group:fr}),gr="_wrapper_1ncab_5",hr="_badge__container_1ncab_6",br="_badge__content_1ncab_7",mr="_interactive_1ncab_20",yr="_disabled_1ncab_21",vr="_icon_1ncab_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:mr,disabled:yr,icon:vr,"variant-filled":"_variant-filled_1ncab_101","color-brand":"_color-brand_1ncab_106","color-red":"_color-red_1ncab_110","color-orange":"_color-orange_1ncab_114","color-yellow":"_color-yellow_1ncab_118","color-green":"_color-green_1ncab_122","color-blue":"_color-blue_1ncab_126","color-lightblue":"_color-lightblue_1ncab_130","color-purple":"_color-purple_1ncab_134","color-gray":"_color-gray_1ncab_138","color-contrast":"_color-contrast_1ncab_142","variant-light":"_variant-light_1ncab_148","variant-outline":"_variant-outline_1ncab_220","variant-transparent":"_variant-transparent_1ncab_294","position-top-left":"_position-top-left_1ncab_361","position-top-right":"_position-top-right_1ncab_367","position-bottom-left":"_position-bottom-left_1ncab_373","position-bottom-right":"_position-bottom-right_1ncab_379","position-top-center":"_position-top-center_1ncab_385","position-bottom-center":"_position-bottom-center_1ncab_391","position-middle-left":"_position-middle-left_1ncab_397","position-middle-right":"_position-middle-right_1ncab_403","position-middle-center":"_position-middle-center_1ncab_409","position-top-left-inside":"_position-top-left-inside_1ncab_416","position-top-right-inside":"_position-top-right-inside_1ncab_422","position-bottom-left-inside":"_position-bottom-left-inside_1ncab_428","position-bottom-right-inside":"_position-bottom-right-inside_1ncab_434","position-top-center-inside":"_position-top-center-inside_1ncab_440","position-bottom-center-inside":"_position-bottom-center-inside_1ncab_446","position-middle-left-inside":"_position-middle-left-inside_1ncab_452","position-middle-right-inside":"_position-middle-right-inside_1ncab_458"},xr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),Cr=t=>{if(!t)return null;let r=t;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!xr(n))return n;r=r.parentElement}return null},wr=()=>{const t=h.useRef(null),[r,a]=h.useState(null);return h.useEffect(()=>{if(t.current){const n=Cr(t.current);a(n)}},[]),{ref:t,bgColor:r}},Sr=h.forwardRef((t,r)=>{const{icon:a,children:n,variant:i="filled",label:s,colorScheme:c="red",size:_=20,position:d="top-right",positionOffset:p={x:0,y:0},cutoutBackground:f,isDisabled:g,className:b,"data-testid":m="badge",...y}=t,{onClick:E,onPointerDown:L}=y,{ref:w,bgColor:x}=wr(),S=f||x,A=!g&&(!!E||!!L),D=he(fe.badge__container,fe[`position-${d}`]),T=he(b,fe.badge__content,fe[`color-${c}`],fe[`variant-${i}`],{[fe.icon]:!!a,[fe.interactive]:A,[fe.disabled]:g}),F={"--badge-height":`${_}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...S&&{"--badge-cutout-bg":S},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},O=(a==null?void 0:a({}))||s,V=C=>{A&&(E==null||E(C))};return o.jsxs("div",{className:fe.wrapper,ref:w,"data-testid":m+"-wrapper",children:[n,o.jsx("span",{className:D,style:F,"data-testid":m+"-container",children:o.jsx("span",{...y,onClick:V,className:T,"data-testid":m+"-content",ref:r,"aria-disabled":g,children:O})})]})}),Er="_container_op5yl_7",Lr="_image_op5yl_22",Mr="_loading_op5yl_34",Ge={container:Er,image:Lr,loading:Mr},$r="_loader_isv17_1",Ir="_spin_isv17_1",Rr="_accent_isv17_19",jr="_neutral_isv17_23",kr="_positive_isv17_27",Tr="_negative_isv17_31",Ar="_gray_isv17_35",Nr="_special_isv17_39",Dr="_contrast_isv17_43",Or="_container_isv17_47",Pr="_overlay_isv17_57",Ae={loader:$r,spin:Ir,accent:Rr,neutral:jr,positive:kr,negative:Tr,gray:Ar,special:Nr,contrast:Dr,container:Or,overlay:Pr,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},St=h.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":n="loader",style:i,...s},c)=>{const _=he(Ae.loader,Ae[r],Ae[`size-${t}`],a);return o.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:i,...s,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Ur=h.forwardRef((t,r)=>{const{loading:a=!1,size:n=24,variant:i="accent",children:s,className:c,style:_,"data-testid":d,...p}=t,f=he(Ae.container,c);return o.jsxs("div",{ref:r,className:f,style:_,"data-testid":d,...p,children:[s,a&&o.jsx("div",{className:Ae.overlay,children:o.jsx(St,{size:n,variant:i,"data-testid":`${d}-spinner`})})]})}),Et=h.forwardRef((t,r)=>t.children?o.jsx(Ur,{ref:r,...t}):o.jsx(St,{ref:r,...t})),zr=({width:t=48,height:r=48,className:a,"data-testid":n})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),Br=h.forwardRef((t,r)=>{const{alt:a="",loading:n="lazy",src:i,isLoading:s=!1,className:c,"data-testid":_="image",onError:d,onLoad:p,...f}=t,[g,b]=h.useState("loading"),m=g==="error",y=(s||g==="loading")&&!m,E=g==="loaded"&&!s,L=he(Ge.image,{[Ge.loading]:y},c),w=h.useCallback($=>{b("loaded"),p==null||p($)},[p]),x=h.useCallback($=>{b("error"),d==null||d($)},[d]),S={loader:o.jsxs(h.Fragment,{children:[o.jsx(Et,{size:48,variant:"special","data-testid":`${_}-loader`}),o.jsx("img",{alt:a,src:i,onLoad:w,onError:x,style:{display:"none"}})]}),error:o.jsx(zr,{"data-testid":`${_}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":_,loading:n,src:i,className:L})};return h.useEffect(()=>{if(!i){b("error");return}b("loading")},[i]),o.jsxs("div",{className:Ge.container,"data-testid":`${_}-container`,...f,children:[y&&S.loader,m&&S.error,E&&S.image]})}),Lt={},Mt=h.createContext({locale:Lt}),$t=()=>{const t=h.useContext(Mt);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Fr=()=>{const{locale:t}=$t();return t},Vr={},Wr={},Hr={},Gr=({locale:t={},theme:r,children:a,className:n})=>(h.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([s,c])=>{i.style.setProperty(s,c)})}},[r]),o.jsxs(h.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:U.clsx(Vr,Wr,Hr,n)}),o.jsx(Mt.Provider,{value:{locale:t},children:a})]})),Zr={},qr="_tag_1llsi_1",Yr="_label_1llsi_16",Jr="_iconWrapper_1llsi_20",Kr="_medium_1llsi_27",Xr="_large_1llsi_33",Qr="_disabled_1llsi_43",en="_neutral_1llsi_47",tn="_positive_1llsi_53",an="_negative_1llsi_59",rn="_warning_1llsi_65",nn="_vivid_1llsi_71",sn="_special_1llsi_77",on="_accent_1llsi_84",ln="_blue_1llsi_90",cn="_lovely_1llsi_96",dn="_dreamy_1llsi_102",Ce={tag:qr,label:Yr,iconWrapper:Jr,medium:Kr,large:Xr,disabled:Qr,neutral:en,positive:tn,negative:an,warning:rn,vivid:nn,special:sn,accent:on,blue:ln,lovely:cn,dreamy:dn},we={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},un=h.forwardRef((t,r)=>{const{className:a,children:n,componentStyle:i="neutral",size:s="medium",disabled:c=!1,showLabel:_=!!n,slotStart:d,slotEnd:p,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":b}=t,{className:m,...y}=f,{className:E,...L}=g;return o.jsxs("div",{className:U.clsx(Ce.tag,Ce[s],Ce[i],{[Ce.disabled]:c,[we["typography-label-3-regular"]]:s==="medium",[we["typography-subtitle-1-semibold"]]:s==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&o.jsx("span",{className:U.clsx([Ce.iconWrapper,m]),...y,children:d}),_&&o.jsx("span",{className:U.clsx([Ce.label]),children:n}),p&&o.jsx("span",{className:U.clsx([Ce.iconWrapper,E]),...L,children:p})]})}),_n="_checkbox_qo5f5_43",fn="_input_qo5f5_59",pn="_icon_qo5f5_67",gn="_container_qo5f5_84",hn="_error_qo5f5_135",bn="_checkboxWrapper_qo5f5_147",mn="_medium_qo5f5_201",yn="_large_qo5f5_206",vn="_label_qo5f5_247",ge={checkbox:_n,input:fn,icon:pn,container:gn,error:hn,checkboxWrapper:bn,medium:mn,large:yn,label:vn},xn=({width:t=12,height:r=9,className:a="",color:n="currentColor",...i})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:n})}),Cn=({width:t=12,height:r=2,className:a="",color:n="currentColor",...i})=>o.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:n})}),wn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Sn=({size:t,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:i})=>{const{width:s,height:c}=wn[t];return o.jsx("div",{className:ge.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?o.jsx(Cn,{width:s,height:c}):o.jsx(xn,{width:s,height:c})})},En=h.forwardRef((t,r)=>{const{name:a,value:n,size:i="medium",indeterminate:s=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:p,className:f,containerStyle:g,style:b,children:m,clickableLabel:y=!0,tabIndex:E,onChange:L,"data-testid":w="checkbox"}=t,[x,S]=h.useState(!1),$=n??x,A=d||c,D=!!_,T=$||s,F=U(ge.container,ge[i],p),O=U(ge.checkbox,ge[i],{[ge.error]:D},f),V=k=>{A||(S(k.target.checked),L==null||L(k.target.checked,k))},C=k=>{if(k.key==="Enter"&&!A){k.preventDefault();const G=!T;S(G),L==null||L(G)}},W=k=>{y||k.preventDefault()},P=k=>k.stopPropagation();return o.jsxs("label",{className:F,htmlFor:a,style:g,"data-testid":w,"data-clickable-label":y,children:[o.jsx("div",{className:ge.checkboxWrapper,children:o.jsxs("div",{tabIndex:E||0,className:O,style:b,onKeyDown:C,"aria-checked":T,"aria-disabled":A,"aria-invalid":D,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:T,disabled:A,className:ge.input,onChange:V,onClick:P,"aria-checked":T,"aria-invalid":D,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-input`}),o.jsx(Sn,{name:a,size:i,isChecked:T,isDisabled:A,indeterminate:s,dataTestId:w})]})}),m&&o.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":y,className:ge.label,onClick:W,children:m})]})}),Ln="_typography_zt7xg_1",Mn="_disabled_zt7xg_8",$n="_primary_zt7xg_13",In="_secondary_zt7xg_18",Rn="_tertiary_zt7xg_23",jn="_accent_zt7xg_28",kn="_positive_zt7xg_38",Tn="_negative_zt7xg_48",An="_warning_zt7xg_58",Nn="_special_zt7xg_68",Dn="_contrast_zt7xg_78",Re={typography:Ln,disabled:Mn,primary:$n,secondary:In,tertiary:Rn,accent:jn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:kn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Tn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:An,"warning-secondary":"_warning-secondary_zt7xg_63",special:Nn,"special-secondary":"_special-secondary_zt7xg_73",contrast:Dn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},On={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},mt=t=>{const r=wt.forwardRef(({size:a=3,children:n,className:i,"data-testid":s,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c||On[a],m=U.clsx(Re.typography,we[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},i);return n?o.jsx(b,{ref:g,className:m,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},yt=t=>{const r=wt.forwardRef(({size:a=3,children:n,className:i,"data-testid":s,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:p="primary",...f},g)=>{const b=c,m=U.clsx(Re.typography,we[`typography-${t}-${a}-${_}`],Re[p],{[Re.disabled]:d},i);return n?o.jsx(b,{ref:g,className:m,"data-testid":s,...f,children:n}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Pn={Title:mt("title"),Subtitle:mt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Un="_inputBase_1m6fe_85",zn="_wrapper_1m6fe_95",Bn="_gripHandle_1m6fe_169",Fn="_error_1m6fe_230",Vn="_tabFocused_1m6fe_237",Wn="_disabled_1m6fe_262",Hn="_loading_1m6fe_269",Gn="_label_1m6fe_279",Zn="_small_1m6fe_292",qn="_large_1m6fe_299",Yn="_leftSection_1m6fe_306",Jn="_rightSection_1m6fe_315",Kn="_helper_1m6fe_351",Xn="_floatingLabel_1m6fe_376",Qn="_focused_1m6fe_434",es="_filled_1m6fe_435",ts="_medium_1m6fe_469",as="_characterLimit_1m6fe_510",rs="_input_1m6fe_85",ns="_textarea_1m6fe_109",ss="_truncate_1m6fe_637",os="_hint_1m6fe_719",R={inputBase:Un,wrapper:zn,"textarea-wrapper":"_textarea-wrapper_1m6fe_109",gripHandle:Bn,error:Fn,tabFocused:Vn,disabled:Wn,loading:Hn,label:Gn,small:Zn,large:qn,leftSection:Yn,rightSection:Jn,helper:Kn,floatingLabel:Xn,focused:Qn,filled:es,medium:ts,characterLimit:as,input:rs,textarea:ns,"size-small":"_size-small_1m6fe_586","size-medium":"_size-medium_1m6fe_592","size-large":"_size-large_1m6fe_598","with-floating-label":"_with-floating-label_1m6fe_605",truncate:ss,hint:os,"has-hint":"_has-hint_1m6fe_736"},is=({width:t=8,height:r=8,className:a,color:n="#AABBCA"})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:n})}),ls=(t,r)=>{const a=h.useRef(null),n=h.useRef(null);return h.useEffect(()=>{const i=r==="textarea"?a.current:n.current;i&&i.value!==t&&(i.value=t||"")},[t,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},cs=(t,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!t)return;const s=a.current.scrollHeight+"px";a.current.style.setProperty("height",s,"important"),a.current.scrollTop=i;const c=a.current.closest(`.${R.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return h.useEffect(n,[t,r]),h.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},ds=(t,r,a,n)=>({handleGripMouseDown:h.useCallback(s=>{if(!t||r||a||!(n==="fixed"||!n))return;s.preventDefault(),s.stopPropagation();const c=s.currentTarget.closest(`.${R.wrapper}`);if(!c)return;const _=s.clientY,d=c.clientHeight,p=g=>{const b=g.clientY-_,m=Math.min(100,d),y=Math.max(m,d+b);c.style.height=`${y}px`},f=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",f)},[t,r,a,n])}),vt=30,us=h.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:n,disabled:i=!1,loading:s=!1,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:g,style:b,truncate:m=!1,shouldShowFloatingLabelClass:y=!1,"aria-invalid":E,"aria-errormessage":L,id:w,resize:x,...S},$)=>{const{textareaRef:A,inputRef:D,currentRef:T}=ls(a,t);if(cs(a,x,A),h.useImperativeHandle($,()=>T.current,[T]),t==="textarea")return o.jsx("textarea",{ref:A,id:w,value:a,placeholder:n,disabled:i||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:U(R.textarea,R[`size-${r}`],y&&R["with-floating-label"],g),style:b,"aria-invalid":E,"aria-errormessage":L,"aria-describedby":L?`${w}-error`:void 0,tabIndex:0,"data-resize":x,...S});if(t==="input")return o.jsx("input",{ref:D,id:w,value:a,placeholder:n,disabled:i||s,onFocus:c,onBlur:_,onChange:d,onKeyUp:p,maxLength:f,className:U(R.input,R[`size-${r}`],y&&R["with-floating-label"],m&&R.truncate,g),style:b,"aria-invalid":E,"aria-errormessage":L,"aria-describedby":L?`${w}-error`:void 0,tabIndex:0,...S});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),It=h.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:n=!1,loading:i=!1,className:s,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:p,suffixStyles:f,labelProps:g,helperProps:b,showLimit:m=!1,maxLength:y,hint:E,showHint:L=!1,showHintOnEmpty:w=!1,prefix:x,suffix:S,placeholder:$,showLabel:A=!0,labelClassName:D,hasValue:T=!1,helper:F,id:O,value:V="",resize:C,showGrip:W=!1,...P},k)=>{const G=h.useId(),Z=O||G,Q=L&&E&&(T||w),q=E&&E.length>vt?E.substring(0,vt)+"...":E,te=U(R.wrapper,a&&R.error,n&&R.disabled,i&&R.loading,Q&&R["has-hint"],s),ae=U(R.floatingLabel,R[r],T&&R.filled,D),{handleGripMouseDown:re}=ds(W,n,i,C);return o.jsxs("div",{ref:k,className:R.inputBase,"data-testid":"input-base-wrapper",...P,children:[o.jsxs("div",{className:te,style:_,"data-resize":C,"data-show-grip":W?"true":"false",...c,children:[x&&o.jsx("label",{htmlFor:Z,className:R.leftSection,style:p,children:x}),S&&o.jsx("label",{htmlFor:Z,className:R.rightSection,style:f,children:S}),$&&A&&o.jsx("label",{htmlFor:Z,className:ae,style:d,...g,children:$}),t,W&&!m&&(C==="fixed"||!C)&&o.jsx("div",{className:R.gripHandle,onMouseDown:re,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(is,{})}),Q&&o.jsx("div",{className:U(R.hint,T&&R.truncate),"data-disabled":n||i,children:q}),m&&y&&o.jsxs("div",{className:R.characterLimit,children:[(V||"").length," из ",y]})]}),F&&o.jsx("div",{className:U(R.helper,a&&R.error,(n||i)&&R.disabled),...b,id:a?`${Z}-error`:void 0,children:F})]})});It.displayName="InputWrapperComponent";const xt=Object.assign(us,{Wrapper:It}),Rt=h.forwardRef(({component:t="input",size:r="medium",className:a,error:n=!1,disabled:i=!1,loading:s=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:p,prefix:f,suffix:g,id:b,onFocus:m,onBlur:y,onChange:E,value:L="",wrapperProps:w,wrapperStyles:x,floatingLabelStyles:S,prefixStyles:$,suffixStyles:A,textareaStyles:D,labelProps:T,helperProps:F,showLimit:O=!1,maxLength:V,inputProps:C,hint:W,showHint:P=!1,showHintOnEmpty:k=!1,truncate:G=!1,resize:Z,showGrip:Q=!1,...q},te)=>{const ae=h.useId(),re=b||ae,[me,ne]=h.useState(L),ye=L!==void 0?L:me,Se=(ye||"").length>0,ue=_&&(r==="large"||t==="textarea")&&!f,le=h.useCallback(K=>{var ee;i||s||(m==null||m(),(ee=C==null?void 0:C.onFocus)==null||ee.call(C,K))},[m,C,i,s]),_e=h.useCallback(K=>{var ee;if(K.key==="Tab"){const de=K.target.closest(`.${R.wrapper}`);de&&de.classList.add(R.tabFocused)}(ee=C==null?void 0:C.onKeyUp)==null||ee.call(C,K)},[C]),ce=h.useCallback(K=>{var de;const ee=K.target.closest(`.${R.wrapper}`);ee&&ee.classList.remove(R.tabFocused),y==null||y(),(de=C==null?void 0:C.onBlur)==null||de.call(C,K)},[y,C]),ve=h.useCallback(K=>{var de;if(i||s)return;const ee=K.target.value;ne(ee),E==null||E(ee),(de=C==null?void 0:C.onChange)==null||de.call(C,K)},[E,C,i,s]);return h.useEffect(()=>{ne(L)},[L]),o.jsx(xt.Wrapper,{ref:te,size:r,error:n,disabled:i||s,loading:s,className:U.clsx(a,t==="textarea"&&R["textarea-wrapper"]),wrapperProps:w,wrapperStyles:x,floatingLabelStyles:S,prefixStyles:$,suffixStyles:A,labelProps:T,helperProps:F,showLimit:O,maxLength:V,hint:W,showHint:P,showHintOnEmpty:k,prefix:f,suffix:g,placeholder:c,showLabel:_,labelClassName:d,hasValue:Se,helper:p,id:re,value:ye,showGrip:Q,resize:Z,...q,children:o.jsx(xt,{component:t,size:r,value:ye,placeholder:c,disabled:i,loading:s,onFocus:le,onBlur:ce,onChange:ve,onKeyUp:_e,maxLength:V,truncate:G,"data-empty":!Se,shouldShowFloatingLabelClass:ue,style:t==="textarea"?D:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${re}-error`:void 0,id:re,resize:Z,...C})})}),jt=({className:t="",style:r,size:a="md",color:n="currentColor",onClick:i,...s})=>{const _={display:"inline-block",color:n,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return o.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...s,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},J={SMALL:"small",MEDIUM:"medium",LARGE:"large"},_s=(t,r,a,n)=>{switch(t){case J.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case J.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case J.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},fs=t=>{switch(t){case J.LARGE:return"56px";case J.MEDIUM:return"48px";case J.SMALL:return"40px";default:return"48px"}},ps=t=>{switch(t){case J.SMALL:return 8;case J.MEDIUM:case J.LARGE:return 12;default:return 12}},gs=(t,r,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),hs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),bs=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),ms=(t,r,a,n)=>{const i=fs(t),s=_s(t,r,a,n),c=ps(t);switch(t){case J.LARGE:return gs(i,s,c);case J.MEDIUM:return hs(i,s,c);case J.SMALL:return bs(i,s,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},ys=h.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:n,maxLength:i,minLength:s,autoComplete:c,autoFocus:_,size:d=J.MEDIUM,inputProps:p,error:f,disabled:g,loading:b,helper:m,prefix:y,suffix:E,clearable:L=!1,id:w,showLabel:x=!0,onFocus:S,onBlur:$,className:A,truncate:D=!0,hint:T,showHint:F=!1,showHintOnEmpty:O=!1,wrapperProps:V,labelProps:C,helperProps:W,...P},k)=>{const G=(t||"").length>0,Z=d===J.LARGE,Q=!!y,q=Z&&x&&!y,te=L&&G&&!(g||b),ae=()=>{r==null||r("")},re=te?o.jsx(jt,{size:d===J.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ae,style:{cursor:"pointer"},"data-testid":"x-icon"}):E,me={type:a,minLength:s,autoComplete:c,autoFocus:_,...p},ne=ms(d,q,G,Q);return o.jsx(Rt,{size:d,error:f,disabled:g||b,loading:b,helper:m,prefix:y,suffix:re,id:w,showLabel:q,onFocus:S,onBlur:$,onChange:r,value:t||"",placeholder:n,className:A,wrapperStyles:ne.wrapperStyles,floatingLabelStyles:ne.floatingLabelStyles,prefixStyles:ne.prefixStyles,suffixStyles:ne.suffixStyles,wrapperProps:V,labelProps:C,helperProps:W,showLimit:!1,maxLength:i,inputProps:me,hint:T,showHint:F,showHintOnEmpty:O,truncate:D,...P})}),ie={SMALL:"small",MEDIUM:"medium"},Ue={SMALL:"12px",MEDIUM:"16px"},vs={SMALL:"xs",MEDIUM:"sm"},Pe={FILL:"fill",FIXED:"fixed"},Ze={SMALL:"112px",MEDIUM:"56px"},$e={SMALL:"48px",MEDIUM:"22px"},pe={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},be={SMALL:48,MEDIUM:56,LARGE:112},xs=(t,r)=>{if(t===ie.SMALL)return Ze.SMALL;if(r)return`${r}px`;switch(t){case ie.MEDIUM:return Ze.MEDIUM;default:return Ze.MEDIUM}},Cs=(t,r)=>{if(t===ie.SMALL)return $e.SMALL;if(r)switch(r){case be.SMALL:case be.MEDIUM:return $e.MEDIUM;case be.LARGE:return $e.SMALL;default:return $e.MEDIUM}switch(t){case ie.MEDIUM:return $e.MEDIUM;default:return $e.MEDIUM}},ws=(t,r,a)=>{if(t===ie.SMALL)return pe.SMALL;if(r)switch(r){case be.SMALL:return pe.MEDIUM_WITH_PREFIX;case be.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;case be.LARGE:return pe.MEDIUM;default:return pe.MEDIUM}switch(t){case ie.MEDIUM:return a?pe.MEDIUM_FLOATING_LABEL:pe.MEDIUM;default:return pe.MEDIUM}},Ss=(t,r)=>{if(t===ie.SMALL)return"small";if(r)switch(r){case be.SMALL:return"small";case be.MEDIUM:return"medium";case be.LARGE:return"medium";default:return"medium"}return t},Es=t=>vs[t.toUpperCase()],Ls=t=>Ue[t.toUpperCase()],Ms=(t,r,a,n)=>{const i=xs(t,r),s=Cs(t,r),c=ws(t,r,a);return{wrapperStyles:{minHeight:i,...n===Pe.FILL&&{height:"100%"},...n===Pe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===ie.SMALL?Ue.SMALL:Ue.MEDIUM,transformOrigin:"left top",top:r===112&&a&&t===ie.MEDIUM?Ue.MEDIUM:void 0},suffixStyles:{right:Ls(t)},textareaStyles:{minHeight:s,...n===Pe.FILL&&{flex:1,minHeight:0},...n===Pe.FIXED&&r&&{height:s}}}},$s=h.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:n,minLength:i,autoFocus:s,size:c=ie.MEDIUM,textareaProps:_,error:d,disabled:p,loading:f,helper:g,suffix:b,clearable:m=!1,id:y,showLabel:E=!0,onFocus:L,onBlur:w,className:x,rows:S=1,showLimit:$=!1,wrapperProps:A,labelProps:D,helperProps:T,showGrip:F,minHeight:O,resize:V,...C},W)=>{const P=(t||"").length>0,k=E&&!!a&&(c===ie.SMALL||O!==48),G=m&&P&&!(p||f),Z=()=>{r==null||r("")},Q=G?o.jsx(jt,{size:Es(c),color:"var(--icon-secondary)",onClick:Z,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,q=Ms(c,O,k&&P,V),te=Ss(c,O),ae={rows:S,minLength:i,autoFocus:s,resize:V,..._};return o.jsx(Rt,{ref:W,component:"textarea",size:te,error:d,disabled:p||f,loading:f,helper:g,suffix:Q,id:y,showLabel:k,onFocus:L,onBlur:w,onChange:r,value:t||"",placeholder:a,className:x,"data-floating-label":k,wrapperStyles:q.wrapperStyles,floatingLabelStyles:q.floatingLabelStyles,suffixStyles:q.suffixStyles,textareaStyles:q.textareaStyles,wrapperProps:A,labelProps:D,helperProps:T,showLimit:$&&(O===112||c===ie.SMALL),maxLength:n,inputProps:ae,resize:V,showGrip:F,...C})}),Is="_helper_1vhgl_16",qe={helper:Is,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Rs=({title:t,error:r,className:a="",style:n,disabled:i=!1,"data-testid":s,"aria-label":c,"aria-describedby":_})=>{const d=!!r,p=U.clsx(qe.helper,d&&qe["helper--error"],i&&qe["helper--disabled"],a),f=i?t:r||t;return o.jsx("div",{className:p,style:n,"data-testid":s,"aria-label":c,"aria-describedby":_,children:o.jsx("p",{children:f})})},js="_segmentedControl_1yvz7_5",ks="_segment_1yvz7_5",Ts="_activeSegmentIndicator_1yvz7_51",As="_stretched_1yvz7_82",Ns="_s_1yvz7_5",Ds="_icon_1yvz7_90",Os="_label_1yvz7_94",Ps="_m_1yvz7_98",Us="_l_1yvz7_94",Ie={segmentedControl:js,segment:ks,activeSegmentIndicator:Ts,stretched:As,s:Ns,icon:Ds,label:Os,m:Ps,l:Us},Ct={s:we["typography-label-3-regular"],m:we["typography-label-2-regular"],l:we["typography-label-2-regular"]},zs=t=>{var x;const{className:r,defaultValue:a,value:n,size:i="m",segments:s,stretched:c,mode:_="label",onChange:d}=t,p=h.useId(),[f,g]=h.useState(a||s[0].value),[b,m]=h.useState({width:0,left:0}),y=h.useRef(null);h.useEffect(()=>{n&&g(n)},[n]),h.useEffect(()=>{E()},[f,s,i,c,_]);const E=()=>{if(!(y!=null&&y.current))return;const S=y.current.querySelector('[data-is-active-segment="true"]');S&&m({width:S.offsetWidth,left:S.offsetLeft})},L=(x=s.find(S=>S.value===f))==null?void 0:x.label,w=S=>{g(S),d==null||d(S)};return(s==null?void 0:s.length)===0?null:o.jsxs("div",{className:U.clsx(Ie.segmentedControl,Ie[i],Ie[_],{[Ie.stretched]:c},r),"data-testid":"segmented-control-container",ref:y,children:[s==null?void 0:s.map(({label:S,value:$},A)=>{const D=()=>w($);return o.jsxs(h.Fragment,{children:[o.jsx("input",{id:p+JSON.stringify($),value:JSON.stringify($),type:"radio",checked:f===$,onClick:D}),o.jsx("label",{"data-is-active-segment":f===$,className:U.clsx(Ie.segment,Ct[i]),htmlFor:p+JSON.stringify($),"data-testid":"segmented-control-segment",children:S})]},Je(JSON.stringify($))+A)}),o.jsx("div",{className:U.clsx(Ie.activeSegmentIndicator,Ct[i]),"data-testid":"segmented-control-active-segment",style:{width:b.width,left:b.left},children:L})]})};exports.Avatar=pr;exports.Badge=Sr;exports.Button=Ba;exports.Checkbox=En;exports.ConfigProvider=Gr;exports.Helper=Rs;exports.Image=Br;exports.Loader=Et;exports.SegmentedControl=zs;exports.Tag=un;exports.TextArea=$s;exports.TextInput=ys;exports.Typography=Pn;exports.enUS=Lt;exports.ruRU=Zr;exports.useConfig=$t;exports.useLocale=Fr;