skillgrid 0.0.27 → 0.0.28-dev-41308-avatar-group.1182312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const g=require("react"),T=require("clsx");function fa(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const Mt=fa(g);function ga(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pe={exports:{}},Ie={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const b=require("react"),R=require("clsx"),vr=require("rc-tooltip");function wr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const Pt=wr(b);function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fe={exports:{}},Oe={};/**
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 ht;function ha(){if(ht)return Ie;ht=1;var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(u,c,p){var h,m={},y=null,b=null;p!==void 0&&(y=""+p),c.key!==void 0&&(y=""+c.key),c.ref!==void 0&&(b=c.ref);for(h in c)s.call(c,h)&&!o.hasOwnProperty(h)&&(m[h]=c[h]);if(u&&u.defaultProps)for(h in c=u.defaultProps,c)m[h]===void 0&&(m[h]=c[h]);return{$$typeof:r,type:u,key:y,ref:b,props:m,_owner:i.current}}return Ie.Fragment=a,Ie.jsx=l,Ie.jsxs=l,Ie}var Te={};/**
9
+ */var wt;function Sr(){if(wt)return Oe;wt=1;var e=b,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(c,f,_){var p,g={},y=null,h=null;_!==void 0&&(y=""+_),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(h=f.ref);for(p in f)n.call(f,p)&&!o.hasOwnProperty(p)&&(g[p]=f[p]);if(c&&c.defaultProps)for(p in f=c.defaultProps,f)g[p]===void 0&&(g[p]=f[p]);return{$$typeof:r,type:c,key:y,ref:h,props:g,_owner:i.current}}return Oe.Fragment=a,Oe.jsx=l,Oe.jsxs=l,Oe}var ze={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,23 +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 bt;function ba(){return bt||(bt=1,process.env.NODE_ENV!=="production"&&function(){var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x=Symbol.iterator,E="@@iterator";function C(t){if(t===null||typeof t!="object")return null;var d=x&&t[x]||t[E];return typeof d=="function"?d:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(t){{for(var d=arguments.length,f=new Array(d>1?d-1:0),S=1;S<d;S++)f[S-1]=arguments[S];L("error",t,f)}}function L(t,d,f){{var S=w.ReactDebugCurrentFrame,O=S.getStackAddendum();O!==""&&(d+="%s",f=f.concat([O]));var U=f.map(function(M){return String(M)});U.unshift("Warning: "+d),Function.prototype.apply.call(console[t],console,U)}}var k=!1,N=!1,$=!1,A=!1,P=!1,B;B=Symbol.for("react.module.reference");function F(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===o||P||t===i||t===p||t===h||A||t===b||k||N||$||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===l||t.$$typeof===u||t.$$typeof===c||t.$$typeof===B||t.getModuleId!==void 0))}function W(t,d,f){var S=t.displayName;if(S)return S;var O=d.displayName||d.name||"";return O!==""?f+"("+O+")":f}function D(t){return t.displayName||"Context"}function v(t){if(t==null)return null;if(typeof t.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case s:return"Fragment";case a:return"Portal";case o:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case h:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case u:var d=t;return D(d)+".Consumer";case l:var f=t;return D(f._context)+".Provider";case c:return W(t,t.render,"ForwardRef");case m:var S=t.displayName||null;return S!==null?S:v(t.type)||"Memo";case y:{var O=t,U=O._payload,M=O._init;try{return v(M(U))}catch{return null}}}return null}var R=Object.assign,q=0,z,G,Q,ne,Y,ie,ee;function ye(){}ye.__reactDisabledLog=!0;function Me(){{if(q===0){z=console.log,G=console.info,Q=console.warn,ne=console.error,Y=console.group,ie=console.groupCollapsed,ee=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ye,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}q++}}function pe(){{if(q--,q===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:R({},t,{value:z}),info:R({},t,{value:G}),warn:R({},t,{value:Q}),error:R({},t,{value:ne}),group:R({},t,{value:Y}),groupCollapsed:R({},t,{value:ie}),groupEnd:R({},t,{value:ee})})}q<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var we=w.ReactCurrentDispatcher,Se;function xe(t,d,f){{if(Se===void 0)try{throw Error()}catch(O){var S=O.stack.trim().match(/\n( *(at )?)/);Se=S&&S[1]||""}return`
18
- `+Se+t}}var Ne=!1,Ee;{var Fe=typeof WeakMap=="function"?WeakMap:Map;Ee=new Fe}function De(t,d){if(!t||Ne)return"";{var f=Ee.get(t);if(f!==void 0)return f}var S;Ne=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var U;U=we.current,we.current=null,Me();try{if(d){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(re){S=re}Reflect.construct(t,[],M)}else{try{M.call()}catch(re){S=re}t.call(M.prototype)}}else{try{throw Error()}catch(re){S=re}t()}}catch(re){if(re&&S&&typeof re.stack=="string"){for(var j=re.stack.split(`
19
- `),te=S.stack.split(`
20
- `),V=j.length-1,Z=te.length-1;V>=1&&Z>=0&&j[V]!==te[Z];)Z--;for(;V>=1&&Z>=0;V--,Z--)if(j[V]!==te[Z]){if(V!==1||Z!==1)do if(V--,Z--,Z<0||j[V]!==te[Z]){var le=`
21
- `+j[V].replace(" at new "," at ");return t.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ee.set(t,le),le}while(V>=1&&Z>=0);break}}}finally{Ne=!1,we.current=U,pe(),Error.prepareStackTrace=O}var ke=t?t.displayName||t.name:"",ve=ke?xe(ke):"";return typeof t=="function"&&Ee.set(t,ve),ve}function ze(t,d,f){return De(t,!1)}function We(t){var d=t.prototype;return!!(d&&d.isReactComponent)}function K(t,d,f){if(t==null)return"";if(typeof t=="function")return De(t,We(t));if(typeof t=="string")return xe(t);switch(t){case p:return xe("Suspense");case h:return xe("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case c:return ze(t.render);case m:return K(t.type,d,f);case y:{var S=t,O=S._payload,U=S._init;try{return K(U(O),d,f)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,de={},rt=w.ReactDebugCurrentFrame;function Oe(t){if(t){var d=t._owner,f=K(t.type,t._source,d?d.type:null);rt.setExtraStackFrame(f)}else rt.setExtraStackFrame(null)}function Gt(t,d,f,S,O){{var U=Function.call.bind(J);for(var M in t)if(U(t,M)){var j=void 0;try{if(typeof t[M]!="function"){var te=Error((S||"React class")+": "+f+" type `"+M+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[M]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}j=t[M](d,M,S,f,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(V){j=V}j&&!(j instanceof Error)&&(Oe(O),_("%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).",S||"React class",f,M,typeof j),Oe(null)),j instanceof Error&&!(j.message in de)&&(de[j.message]=!0,Oe(O),_("Failed %s type: %s",f,j.message),Oe(null))}}}var Vt=Array.isArray;function He(t){return Vt(t)}function Zt(t){{var d=typeof Symbol=="function"&&Symbol.toStringTag,f=d&&t[Symbol.toStringTag]||t.constructor.name||"Object";return f}}function Yt(t){try{return st(t),!1}catch{return!0}}function st(t){return""+t}function nt(t){if(Yt(t))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Zt(t)),st(t)}var ot=w.ReactCurrentOwner,Kt={key:!0,ref:!0,__self:!0,__source:!0},it,lt;function Jt(t){if(J.call(t,"ref")){var d=Object.getOwnPropertyDescriptor(t,"ref").get;if(d&&d.isReactWarning)return!1}return t.ref!==void 0}function Xt(t){if(J.call(t,"key")){var d=Object.getOwnPropertyDescriptor(t,"key").get;if(d&&d.isReactWarning)return!1}return t.key!==void 0}function Qt(t,d){typeof t.ref=="string"&&ot.current}function ea(t,d){{var f=function(){it||(it=!0,_("%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)",d))};f.isReactWarning=!0,Object.defineProperty(t,"key",{get:f,configurable:!0})}}function ta(t,d){{var f=function(){lt||(lt=!0,_("%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)",d))};f.isReactWarning=!0,Object.defineProperty(t,"ref",{get:f,configurable:!0})}}var aa=function(t,d,f,S,O,U,M){var j={$$typeof:r,type:t,key:d,ref:f,props:M,_owner:U};return j._store={},Object.defineProperty(j._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(j,"_self",{configurable:!1,enumerable:!1,writable:!1,value:S}),Object.defineProperty(j,"_source",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.freeze&&(Object.freeze(j.props),Object.freeze(j)),j};function ra(t,d,f,S,O){{var U,M={},j=null,te=null;f!==void 0&&(nt(f),j=""+f),Xt(d)&&(nt(d.key),j=""+d.key),Jt(d)&&(te=d.ref,Qt(d,O));for(U in d)J.call(d,U)&&!Kt.hasOwnProperty(U)&&(M[U]=d[U]);if(t&&t.defaultProps){var V=t.defaultProps;for(U in V)M[U]===void 0&&(M[U]=V[U])}if(j||te){var Z=typeof t=="function"?t.displayName||t.name||"Unknown":t;j&&ea(M,Z),te&&ta(M,Z)}return aa(t,j,te,O,S,ot.current,M)}}var Ge=w.ReactCurrentOwner,ct=w.ReactDebugCurrentFrame;function Le(t){if(t){var d=t._owner,f=K(t.type,t._source,d?d.type:null);ct.setExtraStackFrame(f)}else ct.setExtraStackFrame(null)}var Ve;Ve=!1;function Ze(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function dt(){{if(Ge.current){var t=v(Ge.current.type);if(t)return`
17
+ */var Ct;function Er(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var e=b,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),x=Symbol.iterator,L="@@iterator";function w(t){if(t===null||typeof t!="object")return null;var u=x&&t[x]||t[L];return typeof u=="function"?u:null}var v=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(t){{for(var u=arguments.length,m=new Array(u>1?u-1:0),j=1;j<u;j++)m[j-1]=arguments[j];C("error",t,m)}}function C(t,u,m){{var j=v.ReactDebugCurrentFrame,P=j.getStackAddendum();P!==""&&(u+="%s",m=m.concat([P]));var U=m.map(function(N){return String(N)});U.unshift("Warning: "+u),Function.prototype.apply.call(console[t],console,U)}}var S=!1,M=!1,k=!1,I=!1,O=!1,z;z=Symbol.for("react.module.reference");function F(t){return!!(typeof t=="string"||typeof t=="function"||t===n||t===o||O||t===i||t===_||t===p||I||t===h||S||M||k||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===g||t.$$typeof===l||t.$$typeof===c||t.$$typeof===f||t.$$typeof===z||t.getModuleId!==void 0))}function W(t,u,m){var j=t.displayName;if(j)return j;var P=u.displayName||u.name||"";return P!==""?m+"("+P+")":m}function D(t){return t.displayName||"Context"}function E(t){if(t==null)return null;if(typeof t.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case n:return"Fragment";case a:return"Portal";case o:return"Profiler";case i:return"StrictMode";case _:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var u=t;return D(u)+".Consumer";case l:var m=t;return D(m._context)+".Provider";case f:return W(t,t.render,"ForwardRef");case g:var j=t.displayName||null;return j!==null?j:E(t.type)||"Memo";case y:{var P=t,U=P._payload,N=P._init;try{return E(N(U))}catch{return null}}}return null}var $=Object.assign,B=0,q,V,Q,oe,Z,ce,ee;function ve(){}ve.__reactDisabledLog=!0;function Ae(){{if(B===0){q=console.log,V=console.info,Q=console.warn,oe=console.error,Z=console.group,ce=console.groupCollapsed,ee=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}B++}}function ge(){{if(B--,B===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},t,{value:q}),info:$({},t,{value:V}),warn:$({},t,{value:Q}),error:$({},t,{value:oe}),group:$({},t,{value:Z}),groupCollapsed:$({},t,{value:ce}),groupEnd:$({},t,{value:ee})})}B<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Le=v.ReactCurrentDispatcher,je;function Ce(t,u,m){{if(je===void 0)try{throw Error()}catch(P){var j=P.stack.trim().match(/\n( *(at )?)/);je=j&&j[1]||""}return`
18
+ `+je+t}}var Pe=!1,ke;{var Ge=typeof WeakMap=="function"?WeakMap:Map;ke=new Ge}function Be(t,u){if(!t||Pe)return"";{var m=ke.get(t);if(m!==void 0)return m}var j;Pe=!0;var P=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var U;U=Le.current,Le.current=null,Ae();try{if(u){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(ae){j=ae}Reflect.construct(t,[],N)}else{try{N.call()}catch(ae){j=ae}t.call(N.prototype)}}else{try{throw Error()}catch(ae){j=ae}t()}}catch(ae){if(ae&&j&&typeof ae.stack=="string"){for(var T=ae.stack.split(`
19
+ `),te=j.stack.split(`
20
+ `),G=T.length-1,Y=te.length-1;G>=1&&Y>=0&&T[G]!==te[Y];)Y--;for(;G>=1&&Y>=0;G--,Y--)if(T[G]!==te[Y]){if(G!==1||Y!==1)do if(G--,Y--,Y<0||T[G]!==te[Y]){var de=`
21
+ `+T[G].replace(" at new "," at ");return t.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",t.displayName)),typeof t=="function"&&ke.set(t,de),de}while(G>=1&&Y>=0);break}}}finally{Pe=!1,Le.current=U,ge(),Error.prepareStackTrace=P}var Me=t?t.displayName||t.name:"",Se=Me?Ce(Me):"";return typeof t=="function"&&ke.set(t,Se),Se}function Ye(t,u,m){return Be(t,!1)}function Ze(t){var u=t.prototype;return!!(u&&u.isReactComponent)}function X(t,u,m){if(t==null)return"";if(typeof t=="function")return Be(t,Ze(t));if(typeof t=="string")return Ce(t);switch(t){case _:return Ce("Suspense");case p:return Ce("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return Ye(t.render);case g:return X(t.type,u,m);case y:{var j=t,P=j._payload,U=j._init;try{return X(U(P),u,m)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,pe={},ct=v.ReactDebugCurrentFrame;function Ue(t){if(t){var u=t._owner,m=X(t.type,t._source,u?u.type:null);ct.setExtraStackFrame(m)}else ct.setExtraStackFrame(null)}function Qt(t,u,m,j,P){{var U=Function.call.bind(J);for(var N in t)if(U(t,N)){var T=void 0;try{if(typeof t[N]!="function"){var te=Error((j||"React class")+": "+m+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}T=t[N](u,N,j,m,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){T=G}T&&!(T instanceof Error)&&(Ue(P),d("%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).",j||"React class",m,N,typeof T),Ue(null)),T instanceof Error&&!(T.message in pe)&&(pe[T.message]=!0,Ue(P),d("Failed %s type: %s",m,T.message),Ue(null))}}}var er=Array.isArray;function Xe(t){return er(t)}function tr(t){{var u=typeof Symbol=="function"&&Symbol.toStringTag,m=u&&t[Symbol.toStringTag]||t.constructor.name||"Object";return m}}function rr(t){try{return dt(t),!1}catch{return!0}}function dt(t){return""+t}function ut(t){if(rr(t))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(t)),dt(t)}var ft=v.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},_t,pt;function sr(t){if(J.call(t,"ref")){var u=Object.getOwnPropertyDescriptor(t,"ref").get;if(u&&u.isReactWarning)return!1}return t.ref!==void 0}function nr(t){if(J.call(t,"key")){var u=Object.getOwnPropertyDescriptor(t,"key").get;if(u&&u.isReactWarning)return!1}return t.key!==void 0}function or(t,u){typeof t.ref=="string"&&ft.current}function ir(t,u){{var m=function(){_t||(_t=!0,d("%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)",u))};m.isReactWarning=!0,Object.defineProperty(t,"key",{get:m,configurable:!0})}}function lr(t,u){{var m=function(){pt||(pt=!0,d("%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)",u))};m.isReactWarning=!0,Object.defineProperty(t,"ref",{get:m,configurable:!0})}}var cr=function(t,u,m,j,P,U,N){var T={$$typeof:r,type:t,key:u,ref:m,props:N,_owner:U};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:j}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:P}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function dr(t,u,m,j,P){{var U,N={},T=null,te=null;m!==void 0&&(ut(m),T=""+m),nr(u)&&(ut(u.key),T=""+u.key),sr(u)&&(te=u.ref,or(u,P));for(U in u)J.call(u,U)&&!ar.hasOwnProperty(U)&&(N[U]=u[U]);if(t&&t.defaultProps){var G=t.defaultProps;for(U in G)N[U]===void 0&&(N[U]=G[U])}if(T||te){var Y=typeof t=="function"?t.displayName||t.name||"Unknown":t;T&&ir(N,Y),te&&lr(N,Y)}return cr(t,T,te,P,j,ft.current,N)}}var Je=v.ReactCurrentOwner,bt=v.ReactDebugCurrentFrame;function Re(t){if(t){var u=t._owner,m=X(t.type,t._source,u?u.type:null);bt.setExtraStackFrame(m)}else bt.setExtraStackFrame(null)}var Ke;Ke=!1;function Qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function gt(){{if(Je.current){var t=E(Je.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function sa(t){return""}var ut={};function na(t){{var d=dt();if(!d){var f=typeof t=="string"?t:t.displayName||t.name;f&&(d=`
23
+ Check the render method of \``+t+"`."}return""}}function ur(t){return""}var ht={};function fr(t){{var u=gt();if(!u){var m=typeof t=="string"?t:t.displayName||t.name;m&&(u=`
24
24
 
25
- Check the top-level render call using <`+f+">.")}return d}}function _t(t,d){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var f=na(d);if(ut[f])return;ut[f]=!0;var S="";t&&t._owner&&t._owner!==Ge.current&&(S=" It was passed a child from "+v(t._owner.type)+"."),Le(t),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',f,S),Le(null)}}function pt(t,d){{if(typeof t!="object")return;if(He(t))for(var f=0;f<t.length;f++){var S=t[f];Ze(S)&&_t(S,d)}else if(Ze(t))t._store&&(t._store.validated=!0);else if(t){var O=C(t);if(typeof O=="function"&&O!==t.entries)for(var U=O.call(t),M;!(M=U.next()).done;)Ze(M.value)&&_t(M.value,d)}}}function oa(t){{var d=t.type;if(d==null||typeof d=="string")return;var f;if(typeof d=="function")f=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===c||d.$$typeof===m))f=d.propTypes;else return;if(f){var S=v(d);Gt(f,t.props,"prop",S,t)}else if(d.PropTypes!==void 0&&!Ve){Ve=!0;var O=v(d);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",O||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ia(t){{for(var d=Object.keys(t.props),f=0;f<d.length;f++){var S=d[f];if(S!=="children"&&S!=="key"){Le(t),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",S),Le(null);break}}t.ref!==null&&(Le(t),_("Invalid attribute `ref` supplied to `React.Fragment`."),Le(null))}}var ft={};function gt(t,d,f,S,O,U){{var M=F(t);if(!M){var j="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(j+=" 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 te=sa();te?j+=te:j+=dt();var V;t===null?V="null":He(t)?V="array":t!==void 0&&t.$$typeof===r?(V="<"+(v(t.type)||"Unknown")+" />",j=" Did you accidentally export a JSX literal instead of a component?"):V=typeof t,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",V,j)}var Z=ra(t,d,f,O,U);if(Z==null)return Z;if(M){var le=d.children;if(le!==void 0)if(S)if(He(le)){for(var ke=0;ke<le.length;ke++)pt(le[ke],t);Object.freeze&&Object.freeze(le)}else _("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 pt(le,t)}if(J.call(d,"key")){var ve=v(t),re=Object.keys(d).filter(function(pa){return pa!=="key"}),Ye=re.length>0?"{key: someKey, "+re.join(": ..., ")+": ...}":"{key: someKey}";if(!ft[ve+Ye]){var _a=re.length>0?"{"+re.join(": ..., ")+": ...}":"{}";_(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+m+">.")}return u}}function mt(t,u){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var m=fr(u);if(ht[m])return;ht[m]=!0;var j="";t&&t._owner&&t._owner!==Je.current&&(j=" It was passed a child from "+E(t._owner.type)+"."),Re(t),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',m,j),Re(null)}}function yt(t,u){{if(typeof t!="object")return;if(Xe(t))for(var m=0;m<t.length;m++){var j=t[m];Qe(j)&&mt(j,u)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var P=w(t);if(typeof P=="function"&&P!==t.entries)for(var U=P.call(t),N;!(N=U.next()).done;)Qe(N.value)&&mt(N.value,u)}}}function _r(t){{var u=t.type;if(u==null||typeof u=="string")return;var m;if(typeof u=="function")m=u.propTypes;else if(typeof u=="object"&&(u.$$typeof===f||u.$$typeof===g))m=u.propTypes;else return;if(m){var j=E(u);Qt(m,t.props,"prop",j,t)}else if(u.PropTypes!==void 0&&!Ke){Ke=!0;var P=E(u);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",P||"Unknown")}typeof u.getDefaultProps=="function"&&!u.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function pr(t){{for(var u=Object.keys(t.props),m=0;m<u.length;m++){var j=u[m];if(j!=="children"&&j!=="key"){Re(t),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),Re(null);break}}t.ref!==null&&(Re(t),d("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}var xt={};function vt(t,u,m,j,P,U){{var N=F(t);if(!N){var T="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(T+=" 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 te=ur();te?T+=te:T+=gt();var G;t===null?G="null":Xe(t)?G="array":t!==void 0&&t.$$typeof===r?(G="<"+(E(t.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):G=typeof t,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",G,T)}var Y=dr(t,u,m,P,U);if(Y==null)return Y;if(N){var de=u.children;if(de!==void 0)if(j)if(Xe(de)){for(var Me=0;Me<de.length;Me++)yt(de[Me],t);Object.freeze&&Object.freeze(de)}else d("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 yt(de,t)}if(J.call(u,"key")){var Se=E(t),ae=Object.keys(u).filter(function(xr){return xr!=="key"}),et=ae.length>0?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}";if(!xt[Se+et]){var yr=ae.length>0?"{"+ae.join(": ..., ")+": ...}":"{}";d(`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} />`,Ye,ve,_a,ve),ft[ve+Ye]=!0}}return t===s?ia(Z):oa(Z),Z}}function la(t,d,f){return gt(t,d,f,!0)}function ca(t,d,f){return gt(t,d,f,!1)}var da=ca,ua=la;Te.Fragment=s,Te.jsx=da,Te.jsxs=ua}()),Te}var yt;function ya(){return yt||(yt=1,process.env.NODE_ENV==="production"?Pe.exports=ha():Pe.exports=ba()),Pe.exports}var n=ya();const ma=e=>e.as==="a",xa=e=>e.as===void 0||e.as==="button",je=e=>e.displayAs===void 0||e.displayAs==="button",Ke=e=>e.displayAs==="link",va="_button_6bymk_1",Ca="_link_6bymk_17",wa="_disabled_6bymk_22",Sa="_loading_6bymk_22",Ea="_neutral_6bymk_50",La="_accent_6bymk_54",ka="_positive_6bymk_58",ja="_negative_6bymk_62",$a="_contrast_6bymk_66",Ra="_special_6bymk_70",Ma="_primary_6bymk_74",Ia="_secondary_6bymk_75",Ta="_tertiary_6bymk_76",Aa="_spaceBetween_6bymk_116",Na="_rightGroup_6bymk_116",Da="_label_6bymk_136",Oa="_iconOnly_6bymk_155",Pa="_stretched_6bymk_171",qa="_icon_6bymk_155",Ua="_postfix_6bymk_176",Ba="_underline_6bymk_202",Fa="_warning_6bymk_1082",za="_withSubcaption_6bymk_1268",Wa="_subcaption_6bymk_1273",Ha="_loader_6bymk_1279",Ga="_spin_6bymk_1",Va="_l_6bymk_17",Za="_m_6bymk_1318",Ya="_s_6bymk_70",Ka="_xs_6bymk_1364",Ja="_iconRight_6bymk_1410",H={button:va,link:Ca,disabled:wa,loading:Sa,neutral:Ea,accent:La,positive:ka,negative:ja,contrast:$a,special:Ra,primary:Ma,secondary:Ia,tertiary:Ta,spaceBetween:Aa,rightGroup:Na,label:Da,iconOnly:Oa,stretched:Pa,icon:qa,postfix:Ua,underline:Ba,warning:Fa,withSubcaption:za,subcaption:Wa,loader:Ha,spin:Ga,l:Va,m:Za,s:Ya,xs:Ka,iconRight:Ja},Xa=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),mt=e=>{const r={};for(const a in e)Xa.has(a)||(r[a]=e[a]);return r},Qa={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function er(e){return Qa[e]||"typography-label-2-regular"}const _e={"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"},xt=({isLoading:e,iconRight:r,iconLeft:a,children:s,postfix:i,subcaption:o,size:l,isAsButton:u})=>{if(e&&u)return n.jsx("span",{className:H.loader,"data-testid":"button-loader","aria-hidden":"true"});const c=r&&u||r&&!u&&l,p=o&&u&&l!=="s"&&l!=="xs";return n.jsxs(g.Fragment,{children:[p&&n.jsxs(g.Fragment,{children:[n.jsx("span",{"data-testid":"button-label",className:H.label,children:s}),n.jsx("span",{"data-testid":"button-subcaption",className:H.subcaption,children:o})]}),!p&&s&&n.jsxs(g.Fragment,{children:[n.jsxs("span",{"data-testid":"button-label",className:H.label,children:[!u&&a&&n.jsx("span",{"data-testid":"button-left-icon",className:H.icon,children:a}),s,!u&&r&&n.jsx("span",{"data-testid":"button-icon",className:T.clsx(H.icon,H.iconRight),children:r})]}),u&&n.jsxs("div",{"data-testid":"button-right-group",className:H.rightGroup,children:[c&&n.jsx("span",{"data-testid":"button-icon",className:H.icon,children:r}),i&&u&&n.jsx("span",{"data-testid":"button-postfix",className:H.postfix,children:i})]})]}),!p&&!s&&n.jsx("span",{"data-testid":"button-icon",className:H.icon,children:r})]})},tr=g.forwardRef((e,r)=>{const{mode:a="primary",size:s="m",buttonStyle:i=je(e)?"neutral":"accent",disabled:o=!1,displayAs:l="button",iconRight:u,className:c,children:p,tabIndex:h}=e,m=je(e)?e.subcaption:void 0,y=je(e)?e.postfix:void 0,b=je(e)?e.stretched:void 0,x=!(Ke(e)&&e.size===void 0),E=Ke(e)&&x?e.iconLeft:void 0,C=!!(l==="button"&&"loading"in e&&e.loading),w=je(e)?o:o||C,_=!w&&!C,L=x?u:void 0,k=!!(L&&!p),N=typeof b=="object"?b.justify==="space-between":void 0,$=Ke(e)?er(e.size??"m"):void 0,A=$?_e[$]:void 0,P=w||C?-1:h,B=T.clsx(H.button,H[s],H[a],H[i],A,{[H.disabled]:w,[H.loading]:l==="button"&&"loading"in e&&e.loading,[H.stretched]:b,[H.spaceBetween]:N,[H.withSubcaption]:m&&s!=="s"&&s!=="xs",[H.iconOnly]:k,[H.link]:l==="link",[H.underline]:l==="link"&&"showUnderline"in e&&e.showUnderline},c),F={isLoading:C,iconRight:L,iconLeft:E,children:p,postfix:y,subcaption:m,size:s,isAsButton:je(e)};if(ma(e)){const{href:W,onClick:D,style:v,target:R,rel:q,"data-testid":z,...G}=e,Q=mt(G),ne=R??(e.isExternal?"_blank":void 0);let Y=q;if(ne==="_blank"){const ee=new Set((q??"").split(/\s+/).filter(Boolean));ee.add("noopener").add("noreferrer"),Y=Array.from(ee).join(" ")}const ie=ee=>{if(!_){ee.preventDefault();return}D==null||D(ee)};return n.jsx("a",{ref:r,className:B,href:_?W:void 0,tabIndex:P,onClick:ie,"data-testid":z,"aria-disabled":w||C,style:v,target:ne,rel:Y,...Q,children:n.jsx(xt,{...F})})}if(xa(e)){const{type:W="button",onClick:D,style:v,"data-testid":R,...q}=e,z=mt(q),G=Q=>{_&&D&&D(Q)};return n.jsx("button",{ref:r,type:W,className:B,disabled:w,tabIndex:P,onClick:G,"data-testid":R,"aria-disabled":w||C,style:v,...z,children:n.jsx(xt,{...F})})}return null});var Je={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,et,Se,yr,Se),xt[Se+et]=!0}}return t===n?pr(Y):_r(Y),Y}}function br(t,u,m){return vt(t,u,m,!0)}function gr(t,u,m){return vt(t,u,m,!1)}var hr=gr,mr=br;ze.Fragment=n,ze.jsx=hr,ze.jsxs=mr}()),ze}var St;function Lr(){return St||(St=1,process.env.NODE_ENV==="production"?Fe.exports=Sr():Fe.exports=Er()),Fe.exports}var s=Lr();const jr=e=>e.as==="a",kr=e=>e.as===void 0||e.as==="button",Ie=e=>e.displayAs===void 0||e.displayAs==="button",tt=e=>e.displayAs==="link",Rr="_button_6bymk_1",Mr="_link_6bymk_17",Ir="_disabled_6bymk_22",Tr="_loading_6bymk_22",$r="_neutral_6bymk_50",Nr="_accent_6bymk_54",Ar="_positive_6bymk_58",Or="_negative_6bymk_62",zr="_contrast_6bymk_66",Dr="_special_6bymk_70",Pr="_primary_6bymk_74",Br="_secondary_6bymk_75",Ur="_tertiary_6bymk_76",Fr="_spaceBetween_6bymk_116",qr="_rightGroup_6bymk_116",Wr="_label_6bymk_136",Hr="_iconOnly_6bymk_155",Vr="_stretched_6bymk_171",Gr="_icon_6bymk_155",Yr="_postfix_6bymk_176",Zr="_underline_6bymk_202",Xr="_warning_6bymk_1082",Jr="_withSubcaption_6bymk_1268",Kr="_subcaption_6bymk_1273",Qr="_loader_6bymk_1279",ea="_spin_6bymk_1",ta="_l_6bymk_17",ra="_m_6bymk_1318",aa="_s_6bymk_70",sa="_xs_6bymk_1364",na="_iconRight_6bymk_1410",H={button:Rr,link:Mr,disabled:Ir,loading:Tr,neutral:$r,accent:Nr,positive:Ar,negative:Or,contrast:zr,special:Dr,primary:Pr,secondary:Br,tertiary:Ur,spaceBetween:Fr,rightGroup:qr,label:Wr,iconOnly:Hr,stretched:Vr,icon:Gr,postfix:Yr,underline:Zr,warning:Xr,withSubcaption:Jr,subcaption:Kr,loader:Qr,spin:ea,l:ta,m:ra,s:aa,xs:sa,iconRight:na},oa=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),Et=e=>{const r={};for(const a in e)oa.has(a)||(r[a]=e[a]);return r},ia={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function la(e){return ia[e]||"typography-label-2-regular"}const le={"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"},Lt=({isLoading:e,iconRight:r,iconLeft:a,children:n,postfix:i,subcaption:o,size:l,isAsButton:c})=>{if(e&&c)return s.jsx("span",{className:H.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=r&&c||r&&!c&&l,_=o&&c&&l!=="s"&&l!=="xs";return s.jsxs(b.Fragment,{children:[_&&s.jsxs(b.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:H.label,children:n}),s.jsx("span",{"data-testid":"button-subcaption",className:H.subcaption,children:o})]}),!_&&n&&s.jsxs(b.Fragment,{children:[s.jsxs("span",{"data-testid":"button-label",className:H.label,children:[!c&&a&&s.jsx("span",{"data-testid":"button-left-icon",className:H.icon,children:a}),n,!c&&r&&s.jsx("span",{"data-testid":"button-icon",className:R.clsx(H.icon,H.iconRight),children:r})]}),c&&s.jsxs("div",{"data-testid":"button-right-group",className:H.rightGroup,children:[f&&s.jsx("span",{"data-testid":"button-icon",className:H.icon,children:r}),i&&c&&s.jsx("span",{"data-testid":"button-postfix",className:H.postfix,children:i})]})]}),!_&&!n&&s.jsx("span",{"data-testid":"button-icon",className:H.icon,children:r})]})},Bt=b.forwardRef((e,r)=>{const{mode:a="primary",size:n="m",buttonStyle:i=Ie(e)?"neutral":"accent",disabled:o=!1,displayAs:l="button",iconRight:c,className:f,children:_,tabIndex:p}=e,g=Ie(e)?e.subcaption:void 0,y=Ie(e)?e.postfix:void 0,h=Ie(e)?e.stretched:void 0,x=!(tt(e)&&e.size===void 0),L=tt(e)&&x?e.iconLeft:void 0,w=!!(l==="button"&&"loading"in e&&e.loading),v=Ie(e)?o:o||w,d=!v&&!w,C=x?c:void 0,S=!!(C&&!_),M=typeof h=="object"?h.justify==="space-between":void 0,k=tt(e)?la(e.size??"m"):void 0,I=k?le[k]:void 0,O=v||w?-1:p,z=R.clsx(H.button,H[n],H[a],H[i],I,{[H.disabled]:v,[H.loading]:l==="button"&&"loading"in e&&e.loading,[H.stretched]:h,[H.spaceBetween]:M,[H.withSubcaption]:g&&n!=="s"&&n!=="xs",[H.iconOnly]:S,[H.link]:l==="link",[H.underline]:l==="link"&&"showUnderline"in e&&e.showUnderline},f),F={isLoading:w,iconRight:C,iconLeft:L,children:_,postfix:y,subcaption:g,size:n,isAsButton:Ie(e)};if(jr(e)){const{href:W,onClick:D,style:E,target:$,rel:B,"data-testid":q,...V}=e,Q=Et(V),oe=$??(e.isExternal?"_blank":void 0);let Z=B;if(oe==="_blank"){const ee=new Set((B??"").split(/\s+/).filter(Boolean));ee.add("noopener").add("noreferrer"),Z=Array.from(ee).join(" ")}const ce=ee=>{if(!d){ee.preventDefault();return}D==null||D(ee)};return s.jsx("a",{ref:r,className:z,href:d?W:void 0,tabIndex:O,onClick:ce,"data-testid":q,"aria-disabled":v||w,style:E,target:oe,rel:Z,...Q,children:s.jsx(Lt,{...F})})}if(kr(e)){const{type:W="button",onClick:D,style:E,"data-testid":$,...B}=e,q=Et(B),V=Q=>{d&&D&&D(Q)};return s.jsx("button",{ref:r,type:W,className:z,disabled:v,tabIndex:O,onClick:V,"data-testid":$,"aria-disabled":v||w,style:E,...q,children:s.jsx(Lt,{...F})})}return null});var rt={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 vt;function ar(){return vt||(vt=1,function(e){(function(){var r={}.hasOwnProperty;function a(){for(var o="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(o=i(o,s(u)))}return o}function s(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return a.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var u in o)r.call(o,u)&&o[u]&&(l=i(l,u));return l}function i(o,l){return l?o?o+" "+l:o+l:o}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(Je)),Je.exports}var rr=ar();const me=ga(rr),sr="_avatar_1kyiq_17",nr="_clickable_1kyiq_41",or="_icon_1kyiq_58",ir="_disabled_1kyiq_63",lr="_loading_1kyiq_68",cr="_image_1kyiq_74",dr="_name_1kyiq_74",ue={avatar:sr,clickable:nr,icon:or,disabled:ir,loading:lr,image:cr,name:dr,"variant-filled":"_variant-filled_1kyiq_126","color-brand":"_color-brand_1kyiq_131","color-red":"_color-red_1kyiq_135","color-orange":"_color-orange_1kyiq_139","color-yellow":"_color-yellow_1kyiq_143","color-green":"_color-green_1kyiq_147","color-blue":"_color-blue_1kyiq_151","color-lightblue":"_color-lightblue_1kyiq_155","color-purple":"_color-purple_1kyiq_159","color-gray":"_color-gray_1kyiq_163","color-contrast":"_color-contrast_1kyiq_167","variant-light":"_variant-light_1kyiq_173","variant-outline":"_variant-outline_1kyiq_245"},Ct=99;function ur(e){return e<Ct?`+${e}`:`${Ct}+`}function at(e){const r=typeof e=="string"?e:JSON.stringify(e);let a=5381;for(let s=0;s<r.length;s++){const i=r.charCodeAt(s);a=(a<<5)+a+i}return a>>>0}const _r=["red","orange","yellow","green","blue","lightblue","purple"];function pr(e,r=_r){if(!e)return"gray";const a=at(e),s=Math.abs(a)%r.length;return r[s]}const wt=2;function fr(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,wt).toUpperCase():r.map(a=>a[0]).slice(0,wt).join("").toUpperCase()}const gr={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function It(e,r){return r==="circle"?e/2:gr[e]||12}const hr={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function br(e){return hr[e]||"typography-subtitle-1-semibold"}const yr="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",mr="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",xr="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",vr="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",Cr={male:yr,female:mr,org:vr,neutral:xr},Ue=g.forwardRef((e,r)=>{const{style:a,size:s=40,isLoading:i=!1,isDisabled:o=!1,shape:l="circle",variant:u="filled",placeholderType:c="neutral",name:p,imgSrc:h,imgAlt:m,icon:y,imgProps:b,colorScheme:x,className:E,"data-testid":C,...w}=e,{onClick:_,onPointerDown:L}=w,N=!o&&!i&&(!!_||!!L),[$,A]=g.useState(!1);g.useEffect(()=>{h&&A(!1)},[h]);const P=h&&!$?"image":y?"icon":p?"name":"placeholder",B=x||P==="name"&&pr(p)||"gray",F=br(s),W=It(s,l),D=T.clsx(E,ue.avatar,ue[`variant-${u}`],ue[`color-${B}`],_e[F],{[ue.disabled]:o,[ue.loading]:i,[ue.clickable]:N}),v={"--avatar-size":`${s}px`,"--avatar-border-radius":`${W}px`,...a},R={icon:()=>n.jsx("span",{"data-testid":"avatar-icon",title:m||void 0,role:"img",className:ue.icon,children:y==null?void 0:y({})}),name:()=>n.jsx("span",{role:"textbox","data-testid":"avatar-name",className:ue.name,title:m||void 0,children:fr(p||"")}),placeholder:()=>n.jsx("img",{...b,"data-testid":"avatar-placeholder",className:ue.image,src:Cr[c],alt:m||void 0}),image:()=>n.jsx("img",{"data-testid":"avatar-image",...b,className:ue.image,src:h||void 0,alt:m||void 0,onLoad:()=>A(!1),onError:z=>{var G;A(!0),(G=b==null?void 0:b.onError)==null||G.call(b,z)}})},q=z=>{N&&(_==null||_(z))};return n.jsx("div",{ref:r,onClick:q,className:D,style:v,"data-testid":C,"aria-disabled":o||i,children:R[P](null)})}),wr="_avatarGroup_157g4_1",Sr={avatarGroup:wr};let Er=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).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 Lr(e,r,a,s,i,o,l){const u=Math.min(i,o)/2,c=Math.min(l,u),p=["M0,0",`H${e}`,`V${r}`,"H0","V0","Z"].join(" "),h=[`M${a+c},${s}`,`L${a+i-c},${s}`,`A${c},${c} 0 0 1 ${a+i},${s+c}`,`L${a+i},${s+o-c}`,`A${c},${c} 0 0 1 ${a+i-c},${s+o}`,`L${a+c},${s+o}`,`A${c},${c} 0 0 1 ${a},${s+o-c}`,`L${a},${s+c}`,`A${c},${c} 0 0 1 ${a+c},${s}`,"Z"].join(" ");return`${p} ${h}`}const kr=3,jr=e=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:i="circle",overflowCount:o=0,overflowProps:l}=e,u=a*s,c=-u+kr,p=It(a,i),m=g.useRef(Er()).current.toString(),y=me(Sr.avatarGroup),b=Lr(a,a,a-u,0,a,a,p);return r.length===0?null:n.jsxs("div",{className:y,children:[r.map((x,E,C)=>{const w=E+1>=C.length;if(x.wrapper){const _=x.wrapper;return n.jsx("div",{style:{clipPath:w&&!o?void 0:`url(#${m})`,marginRight:c},children:n.jsx(_,{children:n.jsx(Ue,{size:a,shape:i,...x})})},at(x)+E)}return n.jsx("div",{style:{clipPath:w&&!o?void 0:`url(#${m})`,marginRight:c},children:n.jsx(Ue,{size:a,shape:i,...x})},at(x)+E)}),o>0&&n.jsx("div",{style:{marginRight:c},children:n.jsx(Ue,{size:a,shape:i,icon:()=>ur(o),colorScheme:"gray",variant:"light",...l})}),n.jsx("svg",{width:"0",height:"0",children:n.jsx("clipPath",{id:`${m}`,children:n.jsx("path",{clipPathUnits:"objectBoundingBox",d:b,clipRule:"evenodd"})})})]})},$r=Object.assign(Ue,{Group:jr}),Rr="_wrapper_ecbsu_5",Mr="_badge__container_ecbsu_6",Ir="_badge__content_ecbsu_7",Tr="_interactive_ecbsu_20",Ar="_disabled_ecbsu_21",Nr="_icon_ecbsu_22",fe={wrapper:Rr,badge__container:Mr,badge__content:Ir,interactive:Tr,disabled:Ar,icon:Nr,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Dr=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Or=e=>{if(!e)return null;let r=e;for(;r;){const s=window.getComputedStyle(r).backgroundColor;if(!Dr(s))return s;r=r.parentElement}return null},Tt=()=>{const e=g.useRef(null),[r,a]=g.useState(null);return g.useEffect(()=>{if(e.current){const s=Or(e.current);a(s)}},[]),{ref:e,bgColor:r}};function St(e,r,a){g.useEffect(()=>{const s=r;return window.addEventListener(e,s,a),()=>{window.removeEventListener(e,s,a)}},[e,r,a])}const Et={passive:!0};function Pr(){const[e,r]=g.useState({width:0,height:0}),a=g.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return St("resize",a,Et),St("orientationchange",a,Et),g.useEffect(a,[]),e}function qr(e=768){const{width:r}=Pr();return g.useMemo(()=>r<=e,[r,e])}const At=g.forwardRef((e,r)=>{const{icon:a,children:s,variant:i="filled",label:o,isHidden:l=!1,colorScheme:u="red",size:c=20,position:p="top-right",positionOffset:h={x:0,y:0},cutoutBackground:m,isDisabled:y,className:b,"data-testid":x="badge",...E}=e,{onClick:C,onPointerDown:w}=E,{ref:_,bgColor:L}=Tt(),k=m||L,$=!y&&(!!C||!!w),A=me(fe.badge__container,fe[`position-${p}`]),P=me(b,fe.badge__content,fe[`color-${u}`],fe[`variant-${i}`],{[fe.disabled]:y,[fe.icon]:!!a,[fe.interactive]:$}),B={"--badge-height":`${c}px`,"--badge-offset-x":`${h.x}px`,"--badge-offset-y":`${h.y}px`,...k&&{"--badge-cutout-bg":k},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},F=(a==null?void 0:a({}))||o,W=D=>{$&&(C==null||C(D))};return n.jsxs("div",{className:fe.wrapper,ref:_,"data-testid":x+"-wrapper",children:[s,!l&&n.jsx("span",{className:A,style:B,"data-testid":x+"-container",children:n.jsx("span",{...E,onClick:W,className:P,"data-testid":x+"-content",ref:r,"aria-disabled":y,children:F})})]})}),Ur="_container_op5yl_7",Br="_image_op5yl_22",Fr="_loading_op5yl_34",Xe={container:Ur,image:Br,loading:Fr},zr="_loader_isv17_1",Wr="_spin_isv17_1",Hr="_accent_isv17_19",Gr="_neutral_isv17_23",Vr="_positive_isv17_27",Zr="_negative_isv17_31",Yr="_gray_isv17_35",Kr="_special_isv17_39",Jr="_contrast_isv17_43",Xr="_container_isv17_47",Qr="_overlay_isv17_57",Ae={loader:zr,spin:Wr,accent:Hr,neutral:Gr,positive:Vr,negative:Zr,gray:Yr,special:Kr,contrast:Jr,container:Xr,overlay:Qr,"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"},Nt=g.forwardRef(({size:e=24,variant:r="accent",className:a,"data-testid":s="loader",style:i,...o},l)=>{const u=me(Ae.loader,Ae[r],Ae[`size-${e}`],a);return n.jsx("svg",{ref:l,className:u,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...o,children:n.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"})})}),es=g.forwardRef((e,r)=>{const{loading:a=!1,size:s=24,variant:i="accent",children:o,className:l,style:u,"data-testid":c,...p}=e,h=me(Ae.container,l);return n.jsxs("div",{ref:r,className:h,style:u,"data-testid":c,...p,children:[o,a&&n.jsx("div",{className:Ae.overlay,children:n.jsx(Nt,{size:s,variant:i,"data-testid":`${c}-spinner`})})]})}),Dt=g.forwardRef((e,r)=>e.children?n.jsx(es,{ref:r,...e}):n.jsx(Nt,{ref:r,...e})),ts=({width:e=48,height:r=48,className:a,"data-testid":s})=>n.jsx("svg",{width:e,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":s,children:n.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"})}),as=g.forwardRef((e,r)=>{const{alt:a="",loading:s="lazy",src:i,isLoading:o=!1,className:l,"data-testid":u="image",onError:c,onLoad:p,...h}=e,[m,y]=g.useState("loading"),b=m==="error",x=(o||m==="loading")&&!b,E=m==="loaded"&&!o,C=me(Xe.image,{[Xe.loading]:x},l),w=g.useCallback(k=>{y("loaded"),p==null||p(k)},[p]),_=g.useCallback(k=>{y("error"),c==null||c(k)},[c]),L={loader:n.jsxs(g.Fragment,{children:[n.jsx(Dt,{size:48,variant:"special","data-testid":`${u}-loader`}),n.jsx("img",{alt:a,src:i,onLoad:w,onError:_,style:{display:"none"}})]}),error:n.jsx(ts,{"data-testid":`${u}-fallback`}),image:n.jsx("img",{ref:r,alt:a,"data-testid":u,loading:s,src:i,className:C})};return g.useEffect(()=>{if(!i){y("error");return}y("loading")},[i]),n.jsxs("div",{className:Xe.container,"data-testid":`${u}-container`,...h,children:[x&&L.loader,b&&L.error,E&&L.image]})}),Ot={},Pt=g.createContext({locale:Ot}),qt=()=>{const e=g.useContext(Pt);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},rs=()=>{const{locale:e}=qt();return e},ss={},ns={},os={},is=({locale:e={},theme:r,children:a,className:s})=>(g.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([o,l])=>{i.style.setProperty(o,l)})}},[r]),n.jsxs(g.Fragment,{children:[n.jsx("div",{"data-testid":"ConfigProvider-component",className:T.clsx(ss,ns,os,s)}),n.jsx(Pt.Provider,{value:{locale:e},children:a})]})),ls={},cs="_tag_1llsi_1",ds="_label_1llsi_16",us="_iconWrapper_1llsi_20",_s="_medium_1llsi_27",ps="_large_1llsi_33",fs="_disabled_1llsi_43",gs="_neutral_1llsi_47",hs="_positive_1llsi_53",bs="_negative_1llsi_59",ys="_warning_1llsi_65",ms="_vivid_1llsi_71",xs="_special_1llsi_77",vs="_accent_1llsi_84",Cs="_blue_1llsi_90",ws="_lovely_1llsi_96",Ss="_dreamy_1llsi_102",Ce={tag:cs,label:ds,iconWrapper:us,medium:_s,large:ps,disabled:fs,neutral:gs,positive:hs,negative:bs,warning:ys,vivid:ms,special:xs,accent:vs,blue:Cs,lovely:ws,dreamy:Ss},Es=g.forwardRef((e,r)=>{const{className:a,children:s,componentStyle:i="neutral",size:o="medium",disabled:l=!1,showLabel:u=!!s,slotStart:c,slotEnd:p,slotStartWrapperProps:h={},slotEndWrapperProps:m={},"data-testid":y}=e,{className:b,...x}=h,{className:E,...C}=m;return n.jsxs("div",{className:T.clsx(Ce.tag,Ce[o],Ce[i],{[Ce.disabled]:l,[_e["typography-label-3-regular"]]:o==="medium",[_e["typography-subtitle-1-semibold"]]:o==="large"},a),"data-testid":y||"tag-component",ref:r,children:[c&&n.jsx("span",{className:T.clsx([Ce.iconWrapper,b]),...x,children:c}),u&&n.jsx("span",{className:T.clsx([Ce.label]),children:s}),p&&n.jsx("span",{className:T.clsx([Ce.iconWrapper,E]),...C,children:p})]})}),Ls="_checkbox_17txq_43",ks="_input_17txq_64",js="_icon_17txq_72",$s="_container_17txq_92",Rs="_error_17txq_143",Ms="_checkboxWrapper_17txq_156",Is="_medium_17txq_211",Ts="_large_17txq_216",As="_label_17txq_258",he={checkbox:Ls,input:ks,icon:js,container:$s,error:Rs,checkboxWrapper:Ms,medium:Is,large:Ts,label:As},Ns=({width:e=12,height:r=9,className:a="",color:s="currentColor",...i})=>n.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),Ds=({width:e=12,height:r=2,className:a="",color:s="currentColor",...i})=>n.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Os={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Ps=({size:e,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:i})=>{const{width:o,height:l}=Os[e];return n.jsx("div",{className:he.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?n.jsx(Ds,{width:o,height:l}):n.jsx(Ns,{width:o,height:l})})},qs=g.forwardRef((e,r)=>{const{name:a,value:s,size:i="medium",indeterminate:o=!1,loading:l=!1,error:u,disabled:c=!1,containerClassName:p,className:h,containerStyle:m,style:y,children:b,clickableLabel:x=!0,tabIndex:E,onChange:C,"data-testid":w="checkbox"}=e,[_,L]=g.useState(!1),k=s??_,N=c||l,$=!!u,A=k||o,P=T.clsx(he.container,he[i],p),B=T.clsx(he.checkbox,he[i],{[he.error]:$},h),F=R=>{N||(L(R.target.checked),C==null||C(R.target.checked,R))},W=R=>{if(R.key==="Enter"&&!N){R.preventDefault();const q=!A;L(q),C==null||C(q)}},D=R=>{x||R.preventDefault()},v=R=>R.stopPropagation();return n.jsxs("label",{className:P,htmlFor:a,style:m,"data-testid":w,"data-clickable-label":x,children:[n.jsx("div",{className:he.checkboxWrapper,children:n.jsxs("div",{tabIndex:E||0,className:B,style:y,onKeyDown:W,"aria-checked":A,"aria-disabled":N,"aria-invalid":$,"aria-describedby":u?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[n.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:A,disabled:N,className:he.input,onChange:F,onClick:v,"aria-checked":A,"aria-invalid":$,"aria-describedby":u?`${a}-error`:void 0,"data-testid":`${w}-input`}),n.jsx(Ps,{name:a,size:i,isChecked:A,isDisabled:N,indeterminate:o,dataTestId:w})]})}),b&&n.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":x,className:he.label,onClick:D,children:b})]})}),Us="_typography_zt7xg_1",Bs="_disabled_zt7xg_8",Fs="_primary_zt7xg_13",zs="_secondary_zt7xg_18",Ws="_tertiary_zt7xg_23",Hs="_accent_zt7xg_28",Gs="_positive_zt7xg_38",Vs="_negative_zt7xg_48",Zs="_warning_zt7xg_58",Ys="_special_zt7xg_68",Ks="_contrast_zt7xg_78",Re={typography:Us,disabled:Bs,primary:Fs,secondary:zs,tertiary:Ws,accent:Hs,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Gs,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Vs,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Zs,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ys,"special-secondary":"_special-secondary_zt7xg_73",contrast:Ks,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Js={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Lt=e=>{const r=Mt.forwardRef(({size:a=3,children:s,className:i,"data-testid":o,as:l,fontWeight:u="semibold",disabled:c=!1,typographyStyle:p="primary",...h},m)=>{const y=l||Js[a],b=T.clsx(Re.typography,_e[`typography-${e}-${a}-${u}`],Re[p],{[Re.disabled]:c},i);return s?n.jsx(y,{ref:m,className:b,"data-testid":o,...h,children:s}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},kt=e=>{const r=Mt.forwardRef(({size:a=3,children:s,className:i,"data-testid":o,as:l="p",fontWeight:u="regular",disabled:c=!1,typographyStyle:p="primary",...h},m)=>{const y=l,b=T.clsx(Re.typography,_e[`typography-${e}-${a}-${u}`],Re[p],{[Re.disabled]:c},i);return s?n.jsx(y,{ref:m,className:b,"data-testid":o,...h,children:s}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},Xs={Title:Lt("title"),Subtitle:Lt("subtitle"),Label:kt("label"),Paragraph:kt("paragraph")},Qs="_inputBase_1q54n_82",en="_wrapper_1q54n_92",tn="_gripHandle_1q54n_172",an="_error_1q54n_238",rn="_tabFocused_1q54n_245",sn="_disabled_1q54n_270",nn="_loading_1q54n_277",on="_label_1q54n_287",ln="_small_1q54n_301",cn="_large_1q54n_308",dn="_leftSection_1q54n_315",un="_rightSection_1q54n_327",_n="_helper_1q54n_365",pn="_floatingLabel_1q54n_393",fn="_focused_1q54n_461",gn="_filled_1q54n_462",hn="_medium_1q54n_503",bn="_characterLimit_1q54n_545",yn="_input_1q54n_82",mn="_textarea_1q54n_110",xn="_truncate_1q54n_678",vn="_hint_1q54n_765",I={inputBase:Qs,wrapper:en,"textarea-wrapper":"_textarea-wrapper_1q54n_110",gripHandle:tn,error:an,tabFocused:rn,disabled:sn,loading:nn,label:on,small:ln,large:cn,leftSection:dn,rightSection:un,helper:_n,floatingLabel:pn,focused:fn,filled:gn,medium:hn,characterLimit:bn,input:yn,textarea:mn,"size-small":"_size-small_1q54n_627","size-medium":"_size-medium_1q54n_633","size-large":"_size-large_1q54n_639","with-floating-label":"_with-floating-label_1q54n_646",truncate:xn,hint:vn,"has-hint":"_has-hint_1q54n_786","has-suffix":"_has-suffix_1q54n_792","has-limit":"_has-limit_1q54n_798"},Cn=({width:e=8,height:r=8,className:a,color:s="#AABBCA"})=>n.jsx("svg",{width:e,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),Ut=({className:e="",style:r,size:a="md",color:s="currentColor",onClick:i,...o})=>{const u={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return n.jsx("svg",{className:e,style:u,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...o,children:n.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},wn=(e,r)=>{const a=g.useRef(null),s=g.useRef(null);return g.useEffect(()=>{const i=r==="textarea"?a.current:s.current;i&&i.value!==e&&(i.value=e||"")},[e,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},Sn=(e,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!e)return;const o=a.current.scrollHeight+"px";a.current.style.setProperty("height",o,"important"),a.current.scrollTop=i;const l=a.current.closest(`.${I.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return g.useEffect(s,[e,r]),g.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},En=(e,r,a,s)=>({handleGripMouseDown:g.useCallback(o=>{if(!e||r||a||!(s==="fixed"||!s))return;o.preventDefault(),o.stopPropagation();const l=o.currentTarget.closest(`.${I.wrapper}`);if(!l)return;const u=o.clientY,c=l.clientHeight,p=m=>{const y=m.clientY-u,b=Math.min(100,c),x=Math.max(b,c+y);l.style.height=`${x}px`},h=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",h)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",h)},[e,r,a,s])}),jt=30,Ln=g.forwardRef(({component:e="input",size:r="medium",value:a="",placeholder:s,disabled:i=!1,loading:o=!1,onFocus:l,onBlur:u,onChange:c,onKeyDown:p,onKeyUp:h,maxLength:m,className:y,style:b,truncate:x=!1,shouldShowFloatingLabelClass:E=!1,"aria-invalid":C,"aria-errormessage":w,id:_,resize:L,...k},N)=>{const{textareaRef:$,inputRef:A,currentRef:P}=wn(a,e);if(Sn(a,L,$),g.useImperativeHandle(N,()=>P.current,[P]),e==="textarea")return n.jsx("textarea",{ref:$,id:_,value:a,placeholder:s,disabled:i||o,onFocus:l,onBlur:u,onChange:c,onKeyDown:p,onKeyUp:h,maxLength:m,className:T.clsx(I.textarea,I[`size-${r}`],E&&I["with-floating-label"],y),style:b,"aria-invalid":C,"aria-errormessage":w,"aria-describedby":w?`${_}-error`:void 0,tabIndex:0,"data-resize":L,...k});if(e==="input")return n.jsx("input",{ref:A,id:_,value:a,placeholder:s,disabled:i||o,onFocus:l,onBlur:u,onChange:c,onKeyDown:p,onKeyUp:h,maxLength:m,className:T.clsx(I.input,I[`size-${r}`],E&&I["with-floating-label"],x&&I.truncate,y),style:b,"aria-invalid":C,"aria-errormessage":w,"aria-describedby":w?`${_}-error`:void 0,tabIndex:0,...k});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Bt=g.forwardRef(({children:e,size:r="medium",error:a=!1,disabled:s=!1,loading:i=!1,className:o,wrapperProps:l,wrapperStyles:u,floatingLabelStyles:c,prefixStyles:p,suffixStyles:h,labelProps:m,helperProps:y,showLimit:b=!1,maxLength:x,hint:E,showHint:C=!1,showHintOnEmpty:w=!1,prefix:_,suffix:L,onSuffixClick:k,placeholder:N,showLabel:$=!0,labelClassName:A,hasValue:P=!1,helper:B,id:F,value:W="",resize:D,showGrip:v=!1,...R},q)=>{const z=g.useId(),G=F||z,Q=C&&E&&(P||w),ne=E&&E.length>jt?E.substring(0,jt)+"...":E,Y=T.clsx(I.wrapper,a&&I.error,s&&I.disabled,i&&I.loading,Q&&I["has-hint"],L&&I["has-suffix"],b&&I["has-limit"],o),ie=T.clsx(I.floatingLabel,I[r],P&&I.filled,A),{handleGripMouseDown:ee}=En(v,s,i,D);return n.jsxs("div",{ref:q,className:I.inputBase,"data-testid":"input-base-wrapper",...R,children:[n.jsxs("div",{className:Y,style:u,"data-resize":D,"data-show-grip":v?"true":"false",...l,children:[_&&n.jsx("label",{htmlFor:G,className:I.leftSection,style:p,children:_}),L&&n.jsx("label",{htmlFor:G,className:I.rightSection,style:h,onClick:k,children:L}),N&&$&&n.jsx("label",{htmlFor:G,className:ie,style:c,...m,children:N}),e,v&&!b&&(D==="fixed"||!D)&&n.jsx("div",{className:I.gripHandle,onMouseDown:ee,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:n.jsx(Cn,{})}),Q&&n.jsx("div",{className:T.clsx(I.hint,P&&I.truncate),"data-disabled":s||i,children:ne}),b&&x&&n.jsxs("div",{className:I.characterLimit,children:[(W||"").length," из ",x]})]}),B&&n.jsx("div",{className:T.clsx(I.helper,a&&I.error,(s||i)&&I.disabled),...y,id:a?`${G}-error`:void 0,children:B})]})});Bt.displayName="InputWrapperComponent";const $t=Object.assign(Ln,{Wrapper:Bt}),Ft=g.forwardRef(({component:e="input",size:r="medium",className:a,error:s=!1,disabled:i=!1,loading:o=!1,placeholder:l,showLabel:u=!0,labelClassName:c,helper:p,prefix:h,suffix:m,id:y,onFocus:b,onBlur:x,onKeyDown:E,onSuffixClick:C,onChange:w,value:_="",wrapperProps:L,wrapperStyles:k,floatingLabelStyles:N,prefixStyles:$,suffixStyles:A,textareaStyles:P,labelProps:B,helperProps:F,showLimit:W=!1,maxLength:D,inputProps:v,hint:R,showHint:q=!1,showHintOnEmpty:z=!1,truncate:G=!1,resize:Q,showGrip:ne=!1,...Y},ie)=>{const ee=g.useId(),ye=y||ee,[Me,pe]=g.useState(_),we=_!==void 0?_:Me,Se=(we||"").length>0,xe=we||"",Ee=u&&(r==="large"||e==="textarea")&&!h,Fe=g.useCallback(K=>{var J;i||o||(b==null||b(),(J=v==null?void 0:v.onFocus)==null||J.call(v,K))},[b,v,i,o]),De=g.useCallback(K=>{var J;if(K.key==="Tab"){const de=K.target.closest(`.${I.wrapper}`);de&&de.classList.add(I.tabFocused)}(J=v==null?void 0:v.onKeyUp)==null||J.call(v,K)},[v]),ze=g.useCallback(K=>{var de;const J=K.target.closest(`.${I.wrapper}`);J&&J.classList.remove(I.tabFocused),x==null||x(),(de=v==null?void 0:v.onBlur)==null||de.call(v,K)},[x,v]),We=g.useCallback(K=>{var de;if(i||o)return;const J=K.target.value;pe(J),w==null||w(J,K),(de=v==null?void 0:v.onChange)==null||de.call(v,K)},[w,v,i,o]);return g.useEffect(()=>{pe(_||"")},[_]),n.jsx($t.Wrapper,{ref:ie,size:r,error:s,disabled:i||o,loading:o,className:T.clsx(a,e==="textarea"&&I["textarea-wrapper"]),wrapperProps:L,wrapperStyles:k,floatingLabelStyles:N,prefixStyles:$,suffixStyles:A,labelProps:B,helperProps:F,showLimit:W,maxLength:D,hint:R,showHint:q,showHintOnEmpty:z,prefix:h,suffix:m,onSuffixClick:C,placeholder:l,showLabel:u,labelClassName:c,hasValue:Se,helper:p,id:ye,value:xe,showGrip:ne,resize:Q,...Y,children:n.jsx($t,{component:e,size:r,value:xe,placeholder:l,disabled:i,loading:o,onFocus:Fe,onBlur:ze,onChange:We,onKeyDown:E,onKeyUp:De,maxLength:D,truncate:G,"data-empty":!Se,shouldShowFloatingLabelClass:Ee,style:e==="textarea"?P:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${ye}-error`:void 0,id:ye,resize:Q,...v})})}),ae={SMALL:"small",MEDIUM:"medium",LARGE:"large"},kn=(e,r,a,s)=>{switch(e){case ae.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case ae.MEDIUM:return s?"12px 12px 12px 12px":"12px 12px 12px 16px";case ae.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},jn=e=>{switch(e){case ae.LARGE:return"56px";case ae.MEDIUM:return"48px";case ae.SMALL:return"40px";default:return"48px"}},$n=e=>{switch(e){case ae.SMALL:return 8;case ae.MEDIUM:case ae.LARGE:return 12;default:return 12}},Rn=(e,r,a)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Mn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),In=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Tn=(e,r,a,s)=>{const i=jn(e),o=kn(e,r,a,s),l=$n(e);switch(e){case ae.LARGE:return Rn(i,o,l);case ae.MEDIUM:return Mn(i,o,l);case ae.SMALL:return In(i,o,l);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},An=g.forwardRef(({value:e="",onChange:r,type:a="text",placeholder:s,maxLength:i,minLength:o,autoComplete:l,autoFocus:u,size:c=ae.MEDIUM,inputProps:p,error:h,disabled:m,loading:y,helper:b,prefix:x,suffix:E,clearable:C=!1,id:w,showLabel:_=!0,onFocus:L,onBlur:k,onSuffixClick:N,onClear:$,className:A,truncate:P=!0,hint:B,showHint:F=!1,showHintOnEmpty:W=!1,wrapperProps:D,labelProps:v,helperProps:R,...q},z)=>{const G=(e||"").length>0,Q=c===ae.LARGE,ne=!!x,Y=Q&&_&&!x,ie=C&&G&&!(m||y),ee=()=>{r==null||r(""),$==null||$()},ye=ie?n.jsx(Ut,{size:c===ae.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):E,Me={type:a,minLength:o,autoComplete:l,autoFocus:u,...p},pe=Tn(c,Y,G,ne);return n.jsx(Ft,{size:c,error:h,disabled:m||y,loading:y,helper:b,prefix:x,suffix:ye,id:w,showLabel:Y,onFocus:L,onBlur:k,onSuffixClick:N,onChange:r,value:e,placeholder:s,className:A,wrapperStyles:pe.wrapperStyles,floatingLabelStyles:pe.floatingLabelStyles,prefixStyles:pe.prefixStyles,suffixStyles:pe.suffixStyles,wrapperProps:D,labelProps:v,helperProps:R,showLimit:!1,maxLength:i,inputProps:Me,hint:B,showHint:F,showHintOnEmpty:W,truncate:P,...q})}),ce={SMALL:"small",MEDIUM:"medium"},Be={SMALL:"12px",MEDIUM:"16px"},Nn={SMALL:"xs",MEDIUM:"sm"},qe={FILL:"fill",FIXED:"fixed"},Qe={SMALL:"112px",MEDIUM:"56px"},$e={SMALL:"48px",MEDIUM:"22px"},ge={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},be={SMALL:48,MEDIUM:56,LARGE:112},Dn=(e,r)=>{if(e===ce.SMALL)return Qe.SMALL;if(r)return`${r}px`;switch(e){case ce.MEDIUM:return Qe.MEDIUM;default:return Qe.MEDIUM}},On=(e,r)=>{if(e===ce.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(e){case ce.MEDIUM:return $e.MEDIUM;default:return $e.MEDIUM}},Pn=(e,r,a)=>{if(e===ce.SMALL)return ge.SMALL;if(r)switch(r){case be.SMALL:return ge.MEDIUM_WITH_PREFIX;case be.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;case be.LARGE:return ge.MEDIUM;default:return ge.MEDIUM}switch(e){case ce.MEDIUM:return a?ge.MEDIUM_FLOATING_LABEL:ge.MEDIUM;default:return ge.MEDIUM}},qn=(e,r)=>{if(e===ce.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 e},Un=e=>Nn[e.toUpperCase()],Bn=e=>Be[e.toUpperCase()],Fn=(e,r,a,s)=>{const i=Dn(e,r),o=On(e,r),l=Pn(e,r,a);return{wrapperStyles:{minHeight:i,...s===qe.FILL&&{height:"100%"},...s===qe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===ce.SMALL?Be.SMALL:Be.MEDIUM,transformOrigin:"left top",top:r===112&&a&&e===ce.MEDIUM?Be.MEDIUM:void 0},suffixStyles:{right:Bn(e)},textareaStyles:{minHeight:o,...s===qe.FILL&&{flex:1,minHeight:0},...s===qe.FIXED&&r&&{height:o}}}},zn=g.forwardRef(({value:e="",onChange:r,placeholder:a,maxLength:s,minLength:i,autoFocus:o,size:l=ce.MEDIUM,textareaProps:u,error:c,disabled:p,loading:h,helper:m,suffix:y,clearable:b=!1,id:x,showLabel:E=!0,onFocus:C,onBlur:w,onClear:_,onKeyDown:L,className:k,rows:N=1,showLimit:$=!1,wrapperProps:A,labelProps:P,helperProps:B,showGrip:F,minHeight:W,resize:D,...v},R)=>{const q=(e||"").length>0,z=E&&!!a&&(l===ce.SMALL||W!==48),G=b&&q&&!(p||h),Q=()=>{r==null||r(""),_==null||_()},ne=G?n.jsx(Ut,{size:Un(l),color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):y,Y=Fn(l,W,z&&q,D),ie=qn(l,W),ee={rows:N,minLength:i,autoFocus:o,resize:D,...u};return n.jsx(Ft,{ref:R,component:"textarea",size:ie,error:c,disabled:p||h,loading:h,helper:m,suffix:ne,id:x,showLabel:z,onFocus:C,onBlur:w,onKeyDown:L,onChange:r,value:e||"",placeholder:a,className:k,"data-floating-label":z,wrapperStyles:Y.wrapperStyles,floatingLabelStyles:Y.floatingLabelStyles,suffixStyles:Y.suffixStyles,textareaStyles:Y.textareaStyles,wrapperProps:A,labelProps:P,helperProps:B,showLimit:$&&(W===112||l===ce.SMALL),maxLength:s,inputProps:ee,resize:D,showGrip:F,...v})}),Wn="_helper_1jq7j_16",et={helper:Wn,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Hn=({title:e,error:r,className:a="",style:s,disabled:i=!1,"data-testid":o,"aria-label":l,"aria-describedby":u})=>{const c=!!r,p=T.clsx(et.helper,c&&et["helper--error"],i&&et["helper--disabled"],a),h=i?e:r||e;return n.jsx("div",{className:p,style:s,"data-testid":o,"aria-label":l,"aria-describedby":u,children:n.jsx("p",{children:h})})},Gn="_radio_1q34w_54",Vn="_checked_1q34w_75",Zn="_error_1q34w_80",Yn="_disabled_1q34w_89",Kn="_icon_1q34w_125",Jn="_small_1q34w_133",Xn="_medium_1q34w_140",Qn="_large_1q34w_147",eo="_label_1q34w_154",to="_container_1q34w_180",ao="_input_1q34w_193",ro="_card_1q34w_200",so="_smallCard_1q34w_206",no="_mediumCard_1q34w_210",oo="_largeCard_1q34w_214",oe={radio:Gn,checked:Vn,error:Zn,disabled:Yn,icon:Kn,small:Jn,medium:Xn,large:Qn,label:eo,container:to,input:ao,card:ro,smallCard:so,mediumCard:no,largeCard:oo},io="radio-container-",lo="radio-label",zt=g.forwardRef((e,r)=>{const{name:a,id:s,value:i,size:o="large",loading:l=!1,error:u,disabled:c=!1,checked:p=!1,containerClassName:h,className:m,children:y,clickable:b="all",mode:x="default",tabIndex:E,style:C,containerStyle:w,onChange:_,"data-testid":L,...k}=e,N=!!u,$=c||l,A=b==="all",P=x==="card",B=oe[`${o}Card`],F=s??a,W=z=>{$||_==null||_(i,z)},D=z=>{z.key==="Enter"&&!$&&(z.preventDefault(),_==null||_(i))},v=z=>z.stopPropagation(),R=()=>n.jsxs("div",{className:T.clsx(oe.radio,oe[o],{[oe.checked]:p,[oe.disabled]:$,[oe.error]:N&&!$},m),style:C,tabIndex:E||1,"data-testid":`${io}${F}`,children:[n.jsx("input",{"aria-errormessage":u,"aria-invalid":N,checked:p,className:oe.input,"data-testid":`radio-${F}`,disabled:$,id:F,name:a,ref:r,type:"radio",value:i,onChange:W,onClick:v}),n.jsx("svg",{"data-testid":`radio-icon-${F}`,viewBox:"0 0 8 8",className:oe.icon,children:n.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),q=()=>n.jsxs("label",{"aria-checked":p,"aria-disabled":$,"data-testid":A?L:lo,htmlFor:F,style:w,className:T.clsx(oe.label,{[T.clsx(oe.container,oe[x],h)]:A,[B]:A&&P}),onKeyDown:D,...k,children:[R(),A&&y]});return A?q():n.jsxs("div",{className:T.clsx(oe.container,oe[x],h,{[B]:P}),"data-testid":L,children:[q(),y]})}),co="_group_o6mjt_7",uo="_vertical_o6mjt_12",_o="_horizontal_o6mjt_16",Rt={group:co,vertical:uo,horizontal:_o},po=g.forwardRef((e,r)=>{const{id:a,name:s,value:i,options:o,className:l,radioClassName:u,disabled:c=!1,layout:p="vertical","data-testid":h,...m}=e;return n.jsx("div",{className:me(Rt.group,Rt[p],l),"data-testid":h??`radio-group-${s}`,id:a,ref:r,children:o.map(({label:y,value:b,disabled:x})=>{const E=`${s}-${String(b)}`,C=String(b)===String(i);return n.jsx(zt,{id:E,checked:C,"data-testid":E,disabled:c||x,name:s,value:b,className:u,...m,children:y},E)})})}),fo=Object.assign(zt,{Group:po}),go="_root_1jj3e_25",ho="_unordered_1jj3e_39",bo="_ordered_1jj3e_43",yo="_sm_1jj3e_48",mo="_md_1jj3e_59",xo="_lg_1jj3e_70",vo="_xl_1jj3e_81",tt={root:go,unordered:ho,ordered:bo,sm:yo,md:mo,lg:xo,xl:vo},Co=e=>{const{children:r,className:a,"data-testid":s="list-item"}=e;return n.jsx("li",{"data-testid":s,className:a,children:r})},wo=Object.assign(g.forwardRef((e,r)=>{const{variant:a="unordered",className:s,children:i,size:o="md","data-testid":l="list",...u}=e,c=a==="ordered"?"ol":"ul";return n.jsx(c,{"data-testid":l,ref:r,className:me(tt.root,tt[a],tt[o],s),...a==="ordered"&&u,children:i})}),{Item:Co}),So="_wrapper_1v8xn_5",Eo="_viewport_1v8xn_12",Lo="_mask_1v8xn_26",ko="_maskLeft_1v8xn_37",jo="_maskRight_1v8xn_42",$o="_visible_1v8xn_46",Ro="_control_1v8xn_51",Mo="_xs_1v8xn_70",Io="_sm_1v8xn_73",To="_md_1v8xn_76",Ao="_left_1v8xn_80",No="_right_1v8xn_83",se={wrapper:So,viewport:Eo,mask:Lo,maskLeft:ko,maskRight:jo,visible:$o,control:Ro,xs:Mo,sm:Io,md:To,left:Ao,right:No},Do="white",Oo=({children:e,withControls:r=!0,className:a,size:s})=>{const i=g.useRef(null),[o,l]=g.useState(!1),[u,c]=g.useState(!1),{ref:p,bgColor:h}=Tt(),m=p??{current:null},y=h??Do,b=r&&o,x=r&&u,E=({direction:_})=>n.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("g",{transform:_==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:n.jsx("path",{fill:"currentColor",d:`M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175
35
- l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934
36
- c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z`})})}),C=()=>{const _=i.current;if(!_)return;const L=Math.round(_.scrollLeft),k=Math.round(_.scrollLeft+_.clientWidth),N=Math.round(_.scrollWidth);l(L>0),c(k<N)},w=_=>{const L=i.current;if(!L)return;const k=L.clientWidth;L.scrollBy({left:_==="left"?-k:k,behavior:"smooth"})};return g.useEffect(()=>{const _=i.current;if(!_)return;const L=k=>{Math.abs(k.deltaX)>Math.abs(k.deltaY)||_.scrollWidth>_.clientWidth&&(k.preventDefault(),_.scrollBy({left:k.deltaY,behavior:"auto"}))};return _.addEventListener("wheel",L,{passive:!1}),()=>_.removeEventListener("wheel",L)},[]),g.useEffect(()=>{C();const _=i.current;if(_)return _.addEventListener("scroll",C,{passive:!0}),window.addEventListener("resize",C),()=>{_.removeEventListener("scroll",C),window.removeEventListener("resize",C)}},[]),n.jsxs("div",{ref:m,className:T.clsx(se.wrapper,a),children:[b&&n.jsx("div",{className:T.clsx(se.mask,se.maskLeft,o&&se.visible),style:{background:`linear-gradient(to right, ${y} 17%, transparent 80%)`}}),x&&n.jsx("div",{className:T.clsx(se.mask,se.maskRight,u&&se.visible),style:{background:`linear-gradient(to left, ${y} 17%, transparent 80%)`}}),n.jsx("div",{ref:i,className:se.viewport,children:e}),b&&n.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:T.clsx(se.control,se.left,se[s]),onClick:()=>w("left"),children:n.jsx(E,{direction:"left"})}),x&&n.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:T.clsx(se.control,se.right,se[s]),onClick:()=>w("right"),children:n.jsx(E,{direction:"right"})})]})},Po="_tabBar_1ndpm_82",qo="_primary_1ndpm_88",Uo="_secondary_1ndpm_93",Bo="_tab_1ndpm_82",Fo="_md_1ndpm_125",zo="_sm_1ndpm_129",Wo="_xs_1ndpm_133",Ho="_disabled_1ndpm_137",Go="_selected_1ndpm_143",Vo="_tabLabel_1ndpm_222",Zo="_tabPrefix_1ndpm_234",Yo="_tabPostfix_1ndpm_270",X={tabBar:Po,primary:qo,secondary:Uo,tab:Bo,md:Fo,sm:zo,xs:Wo,disabled:Ho,selected:Go,tabLabel:Vo,tabPrefix:Zo,tabPostfix:Yo},Ko="md",Jo=!1,Xo=8,Qo="top-right-inside",Wt=g.createContext(null),Ht=()=>{const e=g.useContext(Wt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},ei=({children:e,defaultActiveTab:r,activeTab:a,onChange:s})=>{const[i,o]=g.useState(r),l=a!==void 0,u=l?a:i,c=p=>{l||o(p),s&&s(p)};return n.jsx(Wt.Provider,{value:{activeTab:u,setTab:c},children:e})},ti=({mode:e,item:r,isActive:a,showBadge:s,badgeProps:i,size:o,isDisabled:l,onSelectTab:u})=>{const{value:c,label:p,prefix:h,prefixWrapperProps:m={},postfix:y,postfixWrapperProps:b={}}=r,{className:x,...E}=m,{className:C,...w}=b,_={primary:_e["typography-label-3-medium"],secondary:_e["typography-label-3-regular"],prefix:_e["typography-label-3-medium"],postfix:_e["typography-label-3-medium"]},L={size:Xo,position:Qo,...i},k=T.clsx(X.tab,X[e],X[o],{[X.selected]:a,[X.disabled]:l}),N=T.clsx(X.tabPrefix,x,X[e],_.prefix,{[X.selected]:a,[X.disabled]:l}),$=T.clsx(X.tabPostfix,C,X[e],_.postfix,{[X.selected]:a,[X.disabled]:l}),A=T.clsx(X.tabLabel,X[e],_[e]),P=F=>{a||l||(u(c),F.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},B=n.jsxs("button",{className:k,role:"tab","aria-label":p,"aria-selected":a,"aria-disabled":l,"aria-controls":`tab-panel-${c}`,"data-testid":`tab-item-${c}`,onClick:P,children:[h&&n.jsx("span",{className:N,...E,"data-testid":`tab-prefix-${c}`,children:h}),n.jsx("span",{className:A,"data-testid":`tab-label-${c}`,children:p}),y&&n.jsx("span",{className:$,...w,"data-testid":`tab-postfix-${c}`,children:y})]});return s?n.jsx(At,{...L,"data-testid":`tab-badge-${c}`,children:B}):B},ai=({mode:e,items:r,size:a=Ko,isAllItemsDisabled:s=Jo})=>{const{activeTab:i,setTab:o}=Ht(),l=qr();return n.jsx(Oo,{size:a,withControls:l,children:n.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:T.clsx(X.tabBar,X[e]),children:r.map(u=>n.jsx(ti,{size:a,item:u,mode:e,showBadge:u.showBadge,badgeProps:u.badgeProps,isActive:i===u.value,isDisabled:s||u.isDisabled,onSelectTab:o},u.value))})})},ri=({tabValue:e,children:r,...a})=>n.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...a,children:r}),si=({children:e,...r})=>{const{activeTab:a}=Ht(),s=g.Children.toArray(e);return n.jsx("div",{"data-testid":"tab-content",...r,children:s.map(i=>i.props.tabValue===a?i:null)})},ni={Provider:ei,Content:si,Panel:ri,Bar:ai};exports.Avatar=$r;exports.Badge=At;exports.Button=tr;exports.Checkbox=qs;exports.ConfigProvider=is;exports.Helper=Hn;exports.Image=as;exports.List=wo;exports.Loader=Dt;exports.Radio=fo;exports.Tabs=ni;exports.Tag=Es;exports.TextArea=zn;exports.TextInput=An;exports.Typography=Xs;exports.enUS=Ot;exports.ruRU=ls;exports.useConfig=qt;exports.useLocale=rs;
34
+ */var jt;function ca(){return jt||(jt=1,function(e){(function(){var r={}.hasOwnProperty;function a(){for(var o="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(o=i(o,n(c)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return a.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var c in o)r.call(o,c)&&o[c]&&(l=i(l,c));return l}function i(o,l){return l?o?o+" "+l:o+l:o}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(rt)),rt.exports}var da=ca();const we=Cr(da),ua="_avatar_zfczn_17",fa="_clickable_zfczn_40",_a="_icon_zfczn_57",pa="_disabled_zfczn_62",ba="_loading_zfczn_67",ga="_image_zfczn_73",ha="_name_zfczn_73",be={avatar:ua,clickable:fa,icon:_a,disabled:pa,loading:ba,image:ga,name:ha,"variant-filled":"_variant-filled_zfczn_125","color-brand":"_color-brand_zfczn_130","color-red":"_color-red_zfczn_134","color-orange":"_color-orange_zfczn_138","color-yellow":"_color-yellow_zfczn_142","color-green":"_color-green_zfczn_146","color-blue":"_color-blue_zfczn_150","color-lightblue":"_color-lightblue_zfczn_154","color-purple":"_color-purple_zfczn_158","color-gray":"_color-gray_zfczn_162","color-contrast":"_color-contrast_zfczn_166","variant-light":"_variant-light_zfczn_172","variant-outline":"_variant-outline_zfczn_244"},kt=99;function ma(e){return e<kt?`+${e}`:`${kt}+`}function Ve(e){const r=typeof e=="string"?e:JSON.stringify(e);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 ya=["red","orange","yellow","green","blue","lightblue","purple"];function xa(e,r=ya){if(!e)return"gray";const a=Ve(e),n=Math.abs(a)%r.length;return r[n]}const Rt=2;function va(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,Rt).toUpperCase():r.map(a=>a[0]).slice(0,Rt).join("").toUpperCase()}const wa={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Ca(e,r){return r==="circle"?e/2:wa[e]||12}const Sa={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function Ea(e){return Sa[e]||"typography-subtitle-1-semibold"}const La="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",ja="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",ka="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",Ra="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",Ma={male:La,female:ja,org:Ra,neutral:ka},We=b.forwardRef((e,r)=>{const{style:a,size:n=40,isLoading:i=!1,isDisabled:o=!1,shape:l="circle",variant:c="filled",placeholderType:f="neutral",name:_,imgSrc:p,imgAlt:g,icon:y,imgProps:h,colorScheme:x,className:L,"data-testid":w,...v}=e,{onClick:d,onPointerDown:C}=v,M=!o&&!i&&(!!d||!!C),[k,I]=b.useState(!1);b.useEffect(()=>{p&&I(!1)},[p]);const O=p&&!k?"image":y?"icon":_?"name":"placeholder",z=x||O==="name"&&xa(_)||"gray",F=Ea(n),W=Ca(n,l),D=R.clsx(L,be.avatar,be[`variant-${c}`],be[`color-${z}`],le[F],{[be.disabled]:o,[be.loading]:i,[be.clickable]:M}),E={"--avatar-size":`${n}px`,"--avatar-border-radius":`${W}px`,...a},$={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:be.icon,children:y==null?void 0:y({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:be.name,title:g||void 0,children:va(_||"")}),placeholder:()=>s.jsx("img",{...h,"data-testid":"avatar-placeholder",className:be.image,src:Ma[f],alt:g||void 0}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...h,className:be.image,src:p||void 0,alt:g||void 0,onLoad:()=>I(!1),onError:q=>{var V;I(!0),(V=h==null?void 0:h.onError)==null||V.call(h,q)}})},B=q=>{M&&(d==null||d(q))};return s.jsx("div",{ref:r,onClick:B,className:D,style:E,"data-testid":w,"aria-disabled":o||i,children:$[O](null)})}),Ia="_avatarGroup_1nhee_1",Ta={avatarGroup:Ia};let $a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");const Na=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Aa=e=>{if(!e)return null;let r=e;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!Na(n))return n;r=r.parentElement}return null},lt=()=>{const e=b.useRef(null),[r,a]=b.useState(null);return b.useEffect(()=>{if(e.current){const n=Aa(e.current);a(n)}},[]),{ref:e,bgColor:r}};function Mt(e,r,a){b.useEffect(()=>(window.addEventListener(e,r,a),()=>window.removeEventListener(e,r,a)),[e,r])}const It={passive:!0};function Oa(){const[e,r]=b.useState({width:0,height:0}),a=b.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Mt("resize",a,It),Mt("orientationchange",a,It),b.useEffect(a,[]),e}function za(e=768){const{width:r}=Oa();return b.useMemo(()=>r<=e,[r,e])}const Da=2,Pa=e=>{const{avatars:r=[],size:a=40,overlap:n=.3,shape:i="circle",overflowCount:o=0,overflowProps:l,cutoutBackground:c}=e,_=-(a*n)+Da,g=b.useRef($a()).current.toString(),{ref:y,bgColor:h}=lt(),x=c||h,L=we(Ta.avatarGroup),w={...x&&{"--avatar-cutout-bg":x}};return r.length===0?null:s.jsxs("div",{className:L,ref:y,style:w,children:[r.map((v,d,C)=>{const S=d+1>=C.length;if(v.wrapper){const M=v.wrapper;return s.jsx("div",{style:{clipPath:S&&!o?void 0:`url(#${g})`,marginRight:_},children:s.jsx(M,{children:s.jsx(We,{size:a,shape:i,...v})})},Ve(v)+d)}return s.jsx("div",{style:{clipPath:S&&!o?void 0:`url(#${g})`,marginRight:_},children:s.jsx(We,{size:a,shape:i,...v})},Ve(v)+d)}),o>0&&s.jsx("div",{style:{marginRight:_},children:s.jsx(We,{size:a,shape:i,icon:()=>ma(o),colorScheme:"gray",variant:"light",...l})})]})},Ba=Object.assign(We,{Group:Pa}),Ua="_wrapper_ecbsu_5",Fa="_badge__container_ecbsu_6",qa="_badge__content_ecbsu_7",Wa="_interactive_ecbsu_20",Ha="_disabled_ecbsu_21",Va="_icon_ecbsu_22",he={wrapper:Ua,badge__container:Fa,badge__content:qa,interactive:Wa,disabled:Ha,icon:Va,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Ut=b.forwardRef((e,r)=>{const{icon:a,children:n,variant:i="filled",label:o,isHidden:l=!1,colorScheme:c="red",size:f=20,position:_="top-right",positionOffset:p={x:0,y:0},cutoutBackground:g,isDisabled:y,className:h,"data-testid":x="badge",...L}=e,{onClick:w,onPointerDown:v}=L,{ref:d,bgColor:C}=lt(),S=g||C,k=!y&&(!!w||!!v),I=we(he.badge__container,he[`position-${_}`]),O=we(h,he.badge__content,he[`color-${c}`],he[`variant-${i}`],{[he.disabled]:y,[he.icon]:!!a,[he.interactive]:k}),z={"--badge-height":`${f}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...S&&{"--badge-cutout-bg":S},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},F=(a==null?void 0:a({}))||o,W=D=>{k&&(w==null||w(D))};return s.jsxs("div",{className:he.wrapper,ref:d,"data-testid":x+"-wrapper",children:[n,!l&&s.jsx("span",{className:I,style:z,"data-testid":x+"-container",children:s.jsx("span",{...L,onClick:W,className:O,"data-testid":x+"-content",ref:r,"aria-disabled":y,children:F})})]})}),Ga="_container_op5yl_7",Ya="_image_op5yl_22",Za="_loading_op5yl_34",at={container:Ga,image:Ya,loading:Za},Xa="_loader_isv17_1",Ja="_spin_isv17_1",Ka="_accent_isv17_19",Qa="_neutral_isv17_23",es="_positive_isv17_27",ts="_negative_isv17_31",rs="_gray_isv17_35",as="_special_isv17_39",ss="_contrast_isv17_43",ns="_container_isv17_47",os="_overlay_isv17_57",De={loader:Xa,spin:Ja,accent:Ka,neutral:Qa,positive:es,negative:ts,gray:rs,special:as,contrast:ss,container:ns,overlay:os,"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"},Ft=b.forwardRef(({size:e=24,variant:r="accent",className:a,"data-testid":n="loader",style:i,...o},l)=>{const c=we(De.loader,De[r],De[`size-${e}`],a);return s.jsx("svg",{ref:l,className:c,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:i,...o,children:s.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"})})}),is=b.forwardRef((e,r)=>{const{loading:a=!1,size:n=24,variant:i="accent",children:o,className:l,style:c,"data-testid":f,..._}=e,p=we(De.container,l);return s.jsxs("div",{ref:r,className:p,style:c,"data-testid":f,..._,children:[o,a&&s.jsx("div",{className:De.overlay,children:s.jsx(Ft,{size:n,variant:i,"data-testid":`${f}-spinner`})})]})}),qt=b.forwardRef((e,r)=>e.children?s.jsx(is,{ref:r,...e}):s.jsx(Ft,{ref:r,...e})),ls=({width:e=48,height:r=48,className:a,"data-testid":n})=>s.jsx("svg",{width:e,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:s.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"})}),cs=b.forwardRef((e,r)=>{const{alt:a="",loading:n="lazy",src:i,isLoading:o=!1,className:l,"data-testid":c="image",onError:f,onLoad:_,...p}=e,[g,y]=b.useState("loading"),h=g==="error",x=(o||g==="loading")&&!h,L=g==="loaded"&&!o,w=we(at.image,{[at.loading]:x},l),v=b.useCallback(S=>{y("loaded"),_==null||_(S)},[_]),d=b.useCallback(S=>{y("error"),f==null||f(S)},[f]),C={loader:s.jsxs(b.Fragment,{children:[s.jsx(qt,{size:48,variant:"special","data-testid":`${c}-loader`}),s.jsx("img",{alt:a,src:i,onLoad:v,onError:d,style:{display:"none"}})]}),error:s.jsx(ls,{"data-testid":`${c}-fallback`}),image:s.jsx("img",{ref:r,alt:a,"data-testid":c,loading:n,src:i,className:w})};return b.useEffect(()=>{if(!i){y("error");return}y("loading")},[i]),s.jsxs("div",{className:at.container,"data-testid":`${c}-container`,...p,children:[x&&C.loader,h&&C.error,L&&C.image]})}),Wt={},Ht=b.createContext({locale:Wt}),Vt=()=>{const e=b.useContext(Ht);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},ds=()=>{const{locale:e}=Vt();return e},us={},fs={},_s={},ps=({locale:e={},theme:r,children:a,className:n})=>(b.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([o,l])=>{i.style.setProperty(o,l)})}},[r]),s.jsxs(b.Fragment,{children:[s.jsx("div",{"data-testid":"ConfigProvider-component",className:R.clsx(us,fs,_s,n)}),s.jsx(Ht.Provider,{value:{locale:e},children:a})]})),bs={},gs="_tag_1llsi_1",hs="_label_1llsi_16",ms="_iconWrapper_1llsi_20",ys="_medium_1llsi_27",xs="_large_1llsi_33",vs="_disabled_1llsi_43",ws="_neutral_1llsi_47",Cs="_positive_1llsi_53",Ss="_negative_1llsi_59",Es="_warning_1llsi_65",Ls="_vivid_1llsi_71",js="_special_1llsi_77",ks="_accent_1llsi_84",Rs="_blue_1llsi_90",Ms="_lovely_1llsi_96",Is="_dreamy_1llsi_102",Ee={tag:gs,label:hs,iconWrapper:ms,medium:ys,large:xs,disabled:vs,neutral:ws,positive:Cs,negative:Ss,warning:Es,vivid:Ls,special:js,accent:ks,blue:Rs,lovely:Ms,dreamy:Is},Ts=b.forwardRef((e,r)=>{const{className:a,children:n,componentStyle:i="neutral",size:o="medium",disabled:l=!1,showLabel:c=!!n,slotStart:f,slotEnd:_,slotStartWrapperProps:p={},slotEndWrapperProps:g={},"data-testid":y}=e,{className:h,...x}=p,{className:L,...w}=g;return s.jsxs("div",{className:R.clsx(Ee.tag,Ee[o],Ee[i],{[Ee.disabled]:l,[le["typography-label-3-regular"]]:o==="medium",[le["typography-subtitle-1-semibold"]]:o==="large"},a),"data-testid":y||"tag-component",ref:r,children:[f&&s.jsx("span",{className:R.clsx([Ee.iconWrapper,h]),...x,children:f}),c&&s.jsx("span",{className:R.clsx([Ee.label]),children:n}),_&&s.jsx("span",{className:R.clsx([Ee.iconWrapper,L]),...w,children:_})]})}),$s="_checkbox_17txq_43",Ns="_input_17txq_64",As="_icon_17txq_72",Os="_container_17txq_92",zs="_error_17txq_143",Ds="_checkboxWrapper_17txq_156",Ps="_medium_17txq_211",Bs="_large_17txq_216",Us="_label_17txq_258",ye={checkbox:$s,input:Ns,icon:As,container:Os,error:zs,checkboxWrapper:Ds,medium:Ps,large:Bs,label:Us},Fs=({width:e=12,height:r=9,className:a="",color:n="currentColor",...i})=>s.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:s.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})}),qs=({width:e=12,height:r=2,className:a="",color:n="currentColor",...i})=>s.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:s.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})}),Ws={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Hs=({size:e,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:i})=>{const{width:o,height:l}=Ws[e];return s.jsx("div",{className:ye.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?s.jsx(qs,{width:o,height:l}):s.jsx(Fs,{width:o,height:l})})},Vs=b.forwardRef((e,r)=>{const{name:a,value:n,size:i="medium",indeterminate:o=!1,loading:l=!1,error:c,disabled:f=!1,containerClassName:_,className:p,containerStyle:g,style:y,children:h,clickableLabel:x=!0,tabIndex:L,onChange:w,"data-testid":v="checkbox"}=e,[d,C]=b.useState(!1),S=n??d,M=f||l,k=!!c,I=S||o,O=R.clsx(ye.container,ye[i],_),z=R.clsx(ye.checkbox,ye[i],{[ye.error]:k},p),F=$=>{M||(C($.target.checked),w==null||w($.target.checked,$))},W=$=>{if($.key==="Enter"&&!M){$.preventDefault();const B=!I;C(B),w==null||w(B)}},D=$=>{x||$.preventDefault()},E=$=>$.stopPropagation();return s.jsxs("label",{className:O,htmlFor:a,style:g,"data-testid":v,"data-clickable-label":x,children:[s.jsx("div",{className:ye.checkboxWrapper,children:s.jsxs("div",{tabIndex:L||0,className:z,style:y,onKeyDown:W,"aria-checked":I,"aria-disabled":M,"aria-invalid":k,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${v}-label`,children:[s.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:I,disabled:M,className:ye.input,onChange:F,onClick:E,"aria-checked":I,"aria-invalid":k,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${v}-input`}),s.jsx(Hs,{name:a,size:i,isChecked:I,isDisabled:M,indeterminate:o,dataTestId:v})]})}),h&&s.jsx("span",{"data-testid":`${v}-label-text`,"data-clickable-label":x,className:ye.label,onClick:D,children:h})]})}),Gs="_typography_zt7xg_1",Ys="_disabled_zt7xg_8",Zs="_primary_zt7xg_13",Xs="_secondary_zt7xg_18",Js="_tertiary_zt7xg_23",Ks="_accent_zt7xg_28",Qs="_positive_zt7xg_38",en="_negative_zt7xg_48",tn="_warning_zt7xg_58",rn="_special_zt7xg_68",an="_contrast_zt7xg_78",Ne={typography:Gs,disabled:Ys,primary:Zs,secondary:Xs,tertiary:Js,accent:Ks,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Qs,"positive-secondary":"_positive-secondary_zt7xg_43",negative:en,"negative-secondary":"_negative-secondary_zt7xg_53",warning:tn,"warning-secondary":"_warning-secondary_zt7xg_63",special:rn,"special-secondary":"_special-secondary_zt7xg_73",contrast:an,"contrast-secondary":"_contrast-secondary_zt7xg_83"},sn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Tt=e=>{const r=Pt.forwardRef(({size:a=3,children:n,className:i,"data-testid":o,as:l,fontWeight:c="semibold",disabled:f=!1,typographyStyle:_="primary",...p},g)=>{const y=l||sn[a],h=R.clsx(Ne.typography,le[`typography-${e}-${a}-${c}`],Ne[_],{[Ne.disabled]:f},i);return n?s.jsx(y,{ref:g,className:h,"data-testid":o,...p,children:n}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},$t=e=>{const r=Pt.forwardRef(({size:a=3,children:n,className:i,"data-testid":o,as:l="p",fontWeight:c="regular",disabled:f=!1,typographyStyle:_="primary",...p},g)=>{const y=l,h=R.clsx(Ne.typography,le[`typography-${e}-${a}-${c}`],Ne[_],{[Ne.disabled]:f},i);return n?s.jsx(y,{ref:g,className:h,"data-testid":o,...p,children:n}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},it={Title:Tt("title"),Subtitle:Tt("subtitle"),Label:$t("label"),Paragraph:$t("paragraph")},nn="_inputBase_1q54n_82",on="_wrapper_1q54n_92",ln="_gripHandle_1q54n_172",cn="_error_1q54n_238",dn="_tabFocused_1q54n_245",un="_disabled_1q54n_270",fn="_loading_1q54n_277",_n="_label_1q54n_287",pn="_small_1q54n_301",bn="_large_1q54n_308",gn="_leftSection_1q54n_315",hn="_rightSection_1q54n_327",mn="_helper_1q54n_365",yn="_floatingLabel_1q54n_393",xn="_focused_1q54n_461",vn="_filled_1q54n_462",wn="_medium_1q54n_503",Cn="_characterLimit_1q54n_545",Sn="_input_1q54n_82",En="_textarea_1q54n_110",Ln="_truncate_1q54n_678",jn="_hint_1q54n_765",A={inputBase:nn,wrapper:on,"textarea-wrapper":"_textarea-wrapper_1q54n_110",gripHandle:ln,error:cn,tabFocused:dn,disabled:un,loading:fn,label:_n,small:pn,large:bn,leftSection:gn,rightSection:hn,helper:mn,floatingLabel:yn,focused:xn,filled:vn,medium:wn,characterLimit:Cn,input:Sn,textarea:En,"size-small":"_size-small_1q54n_627","size-medium":"_size-medium_1q54n_633","size-large":"_size-large_1q54n_639","with-floating-label":"_with-floating-label_1q54n_646",truncate:Ln,hint:jn,"has-hint":"_has-hint_1q54n_786","has-suffix":"_has-suffix_1q54n_792","has-limit":"_has-limit_1q54n_798"},kn=({width:e=8,height:r=8,className:a,color:n="#AABBCA"})=>s.jsx("svg",{width:e,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:s.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})}),Gt=({className:e="",style:r,size:a="md",color:n="currentColor",onClick:i,...o})=>{const c={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 s.jsx("svg",{className:e,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...o,children:s.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},Rn=(e,r)=>{const a=b.useRef(null),n=b.useRef(null);return b.useEffect(()=>{const i=r==="textarea"?a.current:n.current;i&&i.value!==e&&(i.value=e||"")},[e,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},Mn=(e,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!e)return;const o=a.current.scrollHeight+"px";a.current.style.setProperty("height",o,"important"),a.current.scrollTop=i;const l=a.current.closest(`.${A.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return b.useEffect(n,[e,r]),b.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},In=(e,r,a,n)=>({handleGripMouseDown:b.useCallback(o=>{if(!e||r||a||!(n==="fixed"||!n))return;o.preventDefault(),o.stopPropagation();const l=o.currentTarget.closest(`.${A.wrapper}`);if(!l)return;const c=o.clientY,f=l.clientHeight,_=g=>{const y=g.clientY-c,h=Math.min(100,f),x=Math.max(h,f+y);l.style.height=`${x}px`},p=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",p)},[e,r,a,n])}),Nt=30,Tn=b.forwardRef(({component:e="input",size:r="medium",value:a="",placeholder:n,disabled:i=!1,loading:o=!1,onFocus:l,onBlur:c,onChange:f,onKeyDown:_,onKeyUp:p,maxLength:g,className:y,style:h,truncate:x=!1,shouldShowFloatingLabelClass:L=!1,"aria-invalid":w,"aria-errormessage":v,id:d,resize:C,...S},M)=>{const{textareaRef:k,inputRef:I,currentRef:O}=Rn(a,e);if(Mn(a,C,k),b.useImperativeHandle(M,()=>O.current,[O]),e==="textarea")return s.jsx("textarea",{ref:k,id:d,value:a,placeholder:n,disabled:i||o,onFocus:l,onBlur:c,onChange:f,onKeyDown:_,onKeyUp:p,maxLength:g,className:R.clsx(A.textarea,A[`size-${r}`],L&&A["with-floating-label"],y),style:h,"aria-invalid":w,"aria-errormessage":v,"aria-describedby":v?`${d}-error`:void 0,tabIndex:0,"data-resize":C,...S});if(e==="input")return s.jsx("input",{ref:I,id:d,value:a,placeholder:n,disabled:i||o,onFocus:l,onBlur:c,onChange:f,onKeyDown:_,onKeyUp:p,maxLength:g,className:R.clsx(A.input,A[`size-${r}`],L&&A["with-floating-label"],x&&A.truncate,y),style:h,"aria-invalid":w,"aria-errormessage":v,"aria-describedby":v?`${d}-error`:void 0,tabIndex:0,...S});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Yt=b.forwardRef(({children:e,size:r="medium",error:a=!1,disabled:n=!1,loading:i=!1,className:o,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:f,prefixStyles:_,suffixStyles:p,labelProps:g,helperProps:y,showLimit:h=!1,maxLength:x,hint:L,showHint:w=!1,showHintOnEmpty:v=!1,prefix:d,suffix:C,onSuffixClick:S,placeholder:M,showLabel:k=!0,labelClassName:I,hasValue:O=!1,helper:z,id:F,value:W="",resize:D,showGrip:E=!1,...$},B)=>{const q=b.useId(),V=F||q,Q=w&&L&&(O||v),oe=L&&L.length>Nt?L.substring(0,Nt)+"...":L,Z=R.clsx(A.wrapper,a&&A.error,n&&A.disabled,i&&A.loading,Q&&A["has-hint"],C&&A["has-suffix"],h&&A["has-limit"],o),ce=R.clsx(A.floatingLabel,A[r],O&&A.filled,I),{handleGripMouseDown:ee}=In(E,n,i,D);return s.jsxs("div",{ref:B,className:A.inputBase,"data-testid":"input-base-wrapper",...$,children:[s.jsxs("div",{className:Z,style:c,"data-resize":D,"data-show-grip":E?"true":"false",...l,children:[d&&s.jsx("label",{htmlFor:V,className:A.leftSection,style:_,children:d}),C&&s.jsx("label",{htmlFor:V,className:A.rightSection,style:p,onClick:S,children:C}),M&&k&&s.jsx("label",{htmlFor:V,className:ce,style:f,...g,children:M}),e,E&&!h&&(D==="fixed"||!D)&&s.jsx("div",{className:A.gripHandle,onMouseDown:ee,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:s.jsx(kn,{})}),Q&&s.jsx("div",{className:R.clsx(A.hint,O&&A.truncate),"data-disabled":n||i,children:oe}),h&&x&&s.jsxs("div",{className:A.characterLimit,children:[(W||"").length," из ",x]})]}),z&&s.jsx("div",{className:R.clsx(A.helper,a&&A.error,(n||i)&&A.disabled),...y,id:a?`${V}-error`:void 0,children:z})]})});Yt.displayName="InputWrapperComponent";const At=Object.assign(Tn,{Wrapper:Yt}),Zt=b.forwardRef(({component:e="input",size:r="medium",className:a,error:n=!1,disabled:i=!1,loading:o=!1,placeholder:l,showLabel:c=!0,labelClassName:f,helper:_,prefix:p,suffix:g,id:y,onFocus:h,onBlur:x,onKeyDown:L,onSuffixClick:w,onChange:v,value:d="",wrapperProps:C,wrapperStyles:S,floatingLabelStyles:M,prefixStyles:k,suffixStyles:I,textareaStyles:O,labelProps:z,helperProps:F,showLimit:W=!1,maxLength:D,inputProps:E,hint:$,showHint:B=!1,showHintOnEmpty:q=!1,truncate:V=!1,resize:Q,showGrip:oe=!1,...Z},ce)=>{const ee=b.useId(),ve=y||ee,[Ae,ge]=b.useState(d),Le=d!==void 0?d:Ae,je=(Le||"").length>0,Ce=Le||"",ke=c&&(r==="large"||e==="textarea")&&!p,Ge=b.useCallback(X=>{var J;i||o||(h==null||h(),(J=E==null?void 0:E.onFocus)==null||J.call(E,X))},[h,E,i,o]),Be=b.useCallback(X=>{var J;if(X.key==="Tab"){const pe=X.target.closest(`.${A.wrapper}`);pe&&pe.classList.add(A.tabFocused)}(J=E==null?void 0:E.onKeyUp)==null||J.call(E,X)},[E]),Ye=b.useCallback(X=>{var pe;const J=X.target.closest(`.${A.wrapper}`);J&&J.classList.remove(A.tabFocused),x==null||x(),(pe=E==null?void 0:E.onBlur)==null||pe.call(E,X)},[x,E]),Ze=b.useCallback(X=>{var pe;if(i||o)return;const J=X.target.value;ge(J),v==null||v(J,X),(pe=E==null?void 0:E.onChange)==null||pe.call(E,X)},[v,E,i,o]);return b.useEffect(()=>{ge(d||"")},[d]),s.jsx(At.Wrapper,{ref:ce,size:r,error:n,disabled:i||o,loading:o,className:R.clsx(a,e==="textarea"&&A["textarea-wrapper"]),wrapperProps:C,wrapperStyles:S,floatingLabelStyles:M,prefixStyles:k,suffixStyles:I,labelProps:z,helperProps:F,showLimit:W,maxLength:D,hint:$,showHint:B,showHintOnEmpty:q,prefix:p,suffix:g,onSuffixClick:w,placeholder:l,showLabel:c,labelClassName:f,hasValue:je,helper:_,id:ve,value:Ce,showGrip:oe,resize:Q,...Z,children:s.jsx(At,{component:e,size:r,value:Ce,placeholder:l,disabled:i,loading:o,onFocus:Ge,onBlur:Ye,onChange:Ze,onKeyDown:L,onKeyUp:Be,maxLength:D,truncate:V,"data-empty":!je,shouldShowFloatingLabelClass:ke,style:e==="textarea"?O:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${ve}-error`:void 0,id:ve,resize:Q,...E})})}),re={SMALL:"small",MEDIUM:"medium",LARGE:"large"},$n=(e,r,a,n)=>{switch(e){case re.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case re.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case re.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},Nn=e=>{switch(e){case re.LARGE:return"56px";case re.MEDIUM:return"48px";case re.SMALL:return"40px";default:return"48px"}},An=e=>{switch(e){case re.SMALL:return 8;case re.MEDIUM:case re.LARGE:return 12;default:return 12}},On=(e,r,a)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),zn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Dn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Pn=(e,r,a,n)=>{const i=Nn(e),o=$n(e,r,a,n),l=An(e);switch(e){case re.LARGE:return On(i,o,l);case re.MEDIUM:return zn(i,o,l);case re.SMALL:return Dn(i,o,l);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Bn=b.forwardRef(({value:e="",onChange:r,type:a="text",placeholder:n,maxLength:i,minLength:o,autoComplete:l,autoFocus:c,size:f=re.MEDIUM,inputProps:_,error:p,disabled:g,loading:y,helper:h,prefix:x,suffix:L,clearable:w=!1,id:v,showLabel:d=!0,onFocus:C,onBlur:S,onSuffixClick:M,onClear:k,className:I,truncate:O=!0,hint:z,showHint:F=!1,showHintOnEmpty:W=!1,wrapperProps:D,labelProps:E,helperProps:$,...B},q)=>{const V=(e||"").length>0,Q=f===re.LARGE,oe=!!x,Z=Q&&d&&!x,ce=w&&V&&!(g||y),ee=()=>{r==null||r(""),k==null||k()},ve=ce?s.jsx(Gt,{size:f===re.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):L,Ae={type:a,minLength:o,autoComplete:l,autoFocus:c,..._},ge=Pn(f,Z,V,oe);return s.jsx(Zt,{size:f,error:p,disabled:g||y,loading:y,helper:h,prefix:x,suffix:ve,id:v,showLabel:Z,onFocus:C,onBlur:S,onSuffixClick:M,onChange:r,value:e,placeholder:n,className:I,wrapperStyles:ge.wrapperStyles,floatingLabelStyles:ge.floatingLabelStyles,prefixStyles:ge.prefixStyles,suffixStyles:ge.suffixStyles,wrapperProps:D,labelProps:E,helperProps:$,showLimit:!1,maxLength:i,inputProps:Ae,hint:z,showHint:F,showHintOnEmpty:W,truncate:O,...B})}),_e={SMALL:"small",MEDIUM:"medium"},He={SMALL:"12px",MEDIUM:"16px"},Un={SMALL:"xs",MEDIUM:"sm"},qe={FILL:"fill",FIXED:"fixed"},st={SMALL:"112px",MEDIUM:"56px"},Te={SMALL:"48px",MEDIUM:"22px"},me={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},xe={SMALL:48,MEDIUM:56,LARGE:112},Fn=(e,r)=>{if(e===_e.SMALL)return st.SMALL;if(r)return`${r}px`;switch(e){case _e.MEDIUM:return st.MEDIUM;default:return st.MEDIUM}},qn=(e,r)=>{if(e===_e.SMALL)return Te.SMALL;if(r)switch(r){case xe.SMALL:case xe.MEDIUM:return Te.MEDIUM;case xe.LARGE:return Te.SMALL;default:return Te.MEDIUM}switch(e){case _e.MEDIUM:return Te.MEDIUM;default:return Te.MEDIUM}},Wn=(e,r,a)=>{if(e===_e.SMALL)return me.SMALL;if(r)switch(r){case xe.SMALL:return me.MEDIUM_WITH_PREFIX;case xe.MEDIUM:return a?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;case xe.LARGE:return me.MEDIUM;default:return me.MEDIUM}switch(e){case _e.MEDIUM:return a?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;default:return me.MEDIUM}},Hn=(e,r)=>{if(e===_e.SMALL)return"small";if(r)switch(r){case xe.SMALL:return"small";case xe.MEDIUM:return"medium";case xe.LARGE:return"medium";default:return"medium"}return e},Vn=e=>Un[e.toUpperCase()],Gn=e=>He[e.toUpperCase()],Yn=(e,r,a,n)=>{const i=Fn(e,r),o=qn(e,r),l=Wn(e,r,a);return{wrapperStyles:{minHeight:i,...n===qe.FILL&&{height:"100%"},...n===qe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===_e.SMALL?He.SMALL:He.MEDIUM,transformOrigin:"left top",top:r===112&&a&&e===_e.MEDIUM?He.MEDIUM:void 0},suffixStyles:{right:Gn(e)},textareaStyles:{minHeight:o,...n===qe.FILL&&{flex:1,minHeight:0},...n===qe.FIXED&&r&&{height:o}}}},Zn=b.forwardRef(({value:e="",onChange:r,placeholder:a,maxLength:n,minLength:i,autoFocus:o,size:l=_e.MEDIUM,textareaProps:c,error:f,disabled:_,loading:p,helper:g,suffix:y,clearable:h=!1,id:x,showLabel:L=!0,onFocus:w,onBlur:v,onClear:d,onKeyDown:C,className:S,rows:M=1,showLimit:k=!1,wrapperProps:I,labelProps:O,helperProps:z,showGrip:F,minHeight:W,resize:D,...E},$)=>{const B=(e||"").length>0,q=L&&!!a&&(l===_e.SMALL||W!==48),V=h&&B&&!(_||p),Q=()=>{r==null||r(""),d==null||d()},oe=V?s.jsx(Gt,{size:Vn(l),color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):y,Z=Yn(l,W,q&&B,D),ce=Hn(l,W),ee={rows:M,minLength:i,autoFocus:o,resize:D,...c};return s.jsx(Zt,{ref:$,component:"textarea",size:ce,error:f,disabled:_||p,loading:p,helper:g,suffix:oe,id:x,showLabel:q,onFocus:w,onBlur:v,onKeyDown:C,onChange:r,value:e||"",placeholder:a,className:S,"data-floating-label":q,wrapperStyles:Z.wrapperStyles,floatingLabelStyles:Z.floatingLabelStyles,suffixStyles:Z.suffixStyles,textareaStyles:Z.textareaStyles,wrapperProps:I,labelProps:O,helperProps:z,showLimit:k&&(W===112||l===_e.SMALL),maxLength:n,inputProps:ee,resize:D,showGrip:F,...E})}),Xn="_helper_1jq7j_16",nt={helper:Xn,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Jn=({title:e,error:r,className:a="",style:n,disabled:i=!1,"data-testid":o,"aria-label":l,"aria-describedby":c})=>{const f=!!r,_=R.clsx(nt.helper,f&&nt["helper--error"],i&&nt["helper--disabled"],a),p=i?e:r||e;return s.jsx("div",{className:_,style:n,"data-testid":o,"aria-label":l,"aria-describedby":c,children:s.jsx("p",{children:p})})},Kn="_radio_1q34w_54",Qn="_checked_1q34w_75",eo="_error_1q34w_80",to="_disabled_1q34w_89",ro="_icon_1q34w_125",ao="_small_1q34w_133",so="_medium_1q34w_140",no="_large_1q34w_147",oo="_label_1q34w_154",io="_container_1q34w_180",lo="_input_1q34w_193",co="_card_1q34w_200",uo="_smallCard_1q34w_206",fo="_mediumCard_1q34w_210",_o="_largeCard_1q34w_214",ie={radio:Kn,checked:Qn,error:eo,disabled:to,icon:ro,small:ao,medium:so,large:no,label:oo,container:io,input:lo,card:co,smallCard:uo,mediumCard:fo,largeCard:_o},po="radio-container-",bo="radio-label",Xt=b.forwardRef((e,r)=>{const{name:a,id:n,value:i,size:o="large",loading:l=!1,error:c,disabled:f=!1,checked:_=!1,containerClassName:p,className:g,children:y,clickable:h="all",mode:x="default",tabIndex:L,style:w,containerStyle:v,onChange:d,"data-testid":C,...S}=e,M=!!c,k=f||l,I=h==="all",O=x==="card",z=ie[`${o}Card`],F=n??a,W=q=>{k||d==null||d(i,q)},D=q=>{q.key==="Enter"&&!k&&(q.preventDefault(),d==null||d(i))},E=q=>q.stopPropagation(),$=()=>s.jsxs("div",{className:R.clsx(ie.radio,ie[o],{[ie.checked]:_,[ie.disabled]:k,[ie.error]:M&&!k},g),style:w,tabIndex:L||1,"data-testid":`${po}${F}`,children:[s.jsx("input",{"aria-errormessage":c,"aria-invalid":M,checked:_,className:ie.input,"data-testid":`radio-${F}`,disabled:k,id:F,name:a,ref:r,type:"radio",value:i,onChange:W,onClick:E}),s.jsx("svg",{"data-testid":`radio-icon-${F}`,viewBox:"0 0 8 8",className:ie.icon,children:s.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),B=()=>s.jsxs("label",{"aria-checked":_,"aria-disabled":k,"data-testid":I?C:bo,htmlFor:F,style:v,className:R.clsx(ie.label,{[R.clsx(ie.container,ie[x],p)]:I,[z]:I&&O}),onKeyDown:D,...S,children:[$(),I&&y]});return I?B():s.jsxs("div",{className:R.clsx(ie.container,ie[x],p,{[z]:O}),"data-testid":C,children:[B(),y]})}),go="_group_o6mjt_7",ho="_vertical_o6mjt_12",mo="_horizontal_o6mjt_16",Ot={group:go,vertical:ho,horizontal:mo},yo=b.forwardRef((e,r)=>{const{id:a,name:n,value:i,options:o,className:l,radioClassName:c,disabled:f=!1,layout:_="vertical","data-testid":p,...g}=e;return s.jsx("div",{className:we(Ot.group,Ot[_],l),"data-testid":p??`radio-group-${n}`,id:a,ref:r,children:o.map(({label:y,value:h,disabled:x})=>{const L=`${n}-${String(h)}`,w=String(h)===String(i);return s.jsx(Xt,{id:L,checked:w,"data-testid":L,disabled:f||x,name:n,value:h,className:c,...g,children:y},L)})})}),xo=Object.assign(Xt,{Group:yo}),vo="_root_1jj3e_25",wo="_unordered_1jj3e_39",Co="_ordered_1jj3e_43",So="_sm_1jj3e_48",Eo="_md_1jj3e_59",Lo="_lg_1jj3e_70",jo="_xl_1jj3e_81",ot={root:vo,unordered:wo,ordered:Co,sm:So,md:Eo,lg:Lo,xl:jo},ko=e=>{const{children:r,className:a,"data-testid":n="list-item"}=e;return s.jsx("li",{"data-testid":n,className:a,children:r})},Ro=Object.assign(b.forwardRef((e,r)=>{const{variant:a="unordered",className:n,children:i,size:o="md","data-testid":l="list",...c}=e,f=a==="ordered"?"ol":"ul";return s.jsx(f,{"data-testid":l,ref:r,className:we(ot.root,ot[a],ot[o],n),...a==="ordered"&&c,children:i})}),{Item:ko}),Mo="_wrapper_1v8xn_5",Io="_viewport_1v8xn_12",To="_mask_1v8xn_26",$o="_maskLeft_1v8xn_37",No="_maskRight_1v8xn_42",Ao="_visible_1v8xn_46",Oo="_control_1v8xn_51",zo="_xs_1v8xn_70",Do="_sm_1v8xn_73",Po="_md_1v8xn_76",Bo="_left_1v8xn_80",Uo="_right_1v8xn_83",se={wrapper:Mo,viewport:Io,mask:To,maskLeft:$o,maskRight:No,visible:Ao,control:Oo,xs:zo,sm:Do,md:Po,left:Bo,right:Uo},Fo="white",qo=({children:e,withControls:r=!0,className:a,size:n})=>{const i=b.useRef(null),[o,l]=b.useState(!1),[c,f]=b.useState(!1),{ref:_,bgColor:p}=lt(),g=_??{current:null},y=p??Fo,h=r&&o,x=r&&c,L=({direction:d})=>s.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{transform:d==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:s.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),w=()=>{const d=i.current;if(!d)return;const C=Math.round(d.scrollLeft),S=Math.round(d.scrollLeft+d.clientWidth),M=Math.round(d.scrollWidth);l(C>0),f(S<M)},v=d=>{const C=i.current;if(!C)return;const S=C.clientWidth;C.scrollBy({left:d==="left"?-S:S,behavior:"smooth"})};return b.useEffect(()=>{const d=i.current;if(!d)return;const C=S=>{Math.abs(S.deltaX)>Math.abs(S.deltaY)||d.scrollWidth>d.clientWidth&&(S.preventDefault(),d.scrollBy({left:S.deltaY,behavior:"auto"}))};return d.addEventListener("wheel",C,{passive:!1}),()=>d.removeEventListener("wheel",C)},[]),b.useEffect(()=>{w();const d=i.current;if(d)return d.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",w),()=>{d.removeEventListener("scroll",w),window.removeEventListener("resize",w)}},[]),s.jsxs("div",{ref:g,className:R.clsx(se.wrapper,a),children:[h&&s.jsx("div",{className:R.clsx(se.mask,se.maskLeft,o&&se.visible),style:{background:`linear-gradient(to right, ${y} 17%, transparent 80%)`}}),x&&s.jsx("div",{className:R.clsx(se.mask,se.maskRight,c&&se.visible),style:{background:`linear-gradient(to left, ${y} 17%, transparent 80%)`}}),s.jsx("div",{ref:i,className:se.viewport,children:e}),h&&s.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:R.clsx(se.control,se.left,se[n]),onClick:()=>v("left"),children:s.jsx(L,{direction:"left"})}),x&&s.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:R.clsx(se.control,se.right,se[n]),onClick:()=>v("right"),children:s.jsx(L,{direction:"right"})})]})},Wo="_tabBar_1ndpm_82",Ho="_primary_1ndpm_88",Vo="_secondary_1ndpm_93",Go="_tab_1ndpm_82",Yo="_md_1ndpm_125",Zo="_sm_1ndpm_129",Xo="_xs_1ndpm_133",Jo="_disabled_1ndpm_137",Ko="_selected_1ndpm_143",Qo="_tabLabel_1ndpm_222",ei="_tabPrefix_1ndpm_234",ti="_tabPostfix_1ndpm_270",K={tabBar:Wo,primary:Ho,secondary:Vo,tab:Go,md:Yo,sm:Zo,xs:Xo,disabled:Jo,selected:Ko,tabLabel:Qo,tabPrefix:ei,tabPostfix:ti},ri="md",ai=!1,si=8,ni="top-right-inside",Jt=b.createContext(null),Kt=()=>{const e=b.useContext(Jt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},oi=({children:e,defaultActiveTab:r,activeTab:a,onChange:n})=>{const[i,o]=b.useState(r),l=a!==void 0,c=l?a:i,f=_=>{l||o(_),n&&n(_)};return s.jsx(Jt.Provider,{value:{activeTab:c,setTab:f},children:e})},ii=({mode:e,item:r,isActive:a,showBadge:n,badgeProps:i,size:o,isDisabled:l,onSelectTab:c})=>{const{value:f,label:_,prefix:p,prefixWrapperProps:g={},postfix:y,postfixWrapperProps:h={}}=r,{className:x,...L}=g,{className:w,...v}=h,d={primary:le["typography-label-3-medium"],secondary:le["typography-label-3-regular"],prefix:le["typography-label-3-medium"],postfix:le["typography-label-3-medium"]},C={size:si,position:ni,...i},S=R.clsx(K.tab,K[e],K[o],{[K.selected]:a,[K.disabled]:l}),M=R.clsx(K.tabPrefix,x,K[e],d.prefix,{[K.selected]:a,[K.disabled]:l}),k=R.clsx(K.tabPostfix,w,K[e],d.postfix,{[K.selected]:a,[K.disabled]:l}),I=R.clsx(K.tabLabel,K[e],d[e]),O=F=>{a||l||(c(f),F.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},z=s.jsxs("button",{className:S,role:"tab","aria-label":_,"aria-selected":a,"aria-disabled":l,"aria-controls":`tab-panel-${f}`,"data-testid":`tab-item-${f}`,onClick:O,children:[p&&s.jsx("span",{className:M,...L,"data-testid":`tab-prefix-${f}`,children:p}),s.jsx("span",{className:I,"data-testid":`tab-label-${f}`,children:_}),y&&s.jsx("span",{className:k,...v,"data-testid":`tab-postfix-${f}`,children:y})]});return n?s.jsx(Ut,{...C,"data-testid":`tab-badge-${f}`,children:z}):z},li=({mode:e,items:r,size:a=ri,isAllItemsDisabled:n=ai})=>{const{activeTab:i,setTab:o}=Kt(),l=za();return s.jsx(qo,{size:a,withControls:l,children:s.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:R.clsx(K.tabBar,K[e]),children:r.map(c=>s.jsx(ii,{size:a,item:c,mode:e,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:n||c.isDisabled,onSelectTab:o},c.value))})})},ci=({tabValue:e,children:r,...a})=>s.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...a,children:r}),di=({children:e,...r})=>{const{activeTab:a}=Kt(),n=Array.isArray(e)?e:[e],i=(o,l)=>b.isValidElement(o)&&typeof o.props=="object"&&o.props!==null&&l in o.props;return s.jsx("div",{"data-testid":"tab-content",...r,children:n.map(o=>i(o,"tabValue")&&String(o.props.tabValue)===a?o:null)})},ui={Provider:oi,Content:di,Panel:ci,Bar:li},fi="_root_1fbbw_34",_i="_open_1fbbw_51",pi="_xs_1fbbw_55",bi="_s_1fbbw_61",gi="_m_1fbbw_67",hi="_neutral_1fbbw_73",mi="_contrast_1fbbw_78",yi="_accent_1fbbw_84",xi="_typography_1fbbw_89",vi="_title_1fbbw_89",wi="_text_1fbbw_93",Ci="_mediaWrapper_1fbbw_97",Si="_content_1fbbw_112",Ei="_closeButton_1fbbw_116",Li="_hasMedia_1fbbw_142",ji="_buttonStack_1fbbw_148",ne={root:fi,open:_i,xs:pi,s:bi,m:gi,neutral:hi,contrast:mi,accent:yi,typography:xi,title:vi,text:wi,mediaWrapper:Ci,content:Si,closeButton:Ei,hasMedia:Li,buttonStack:ji},ki=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Ri=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[s.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),s.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),ue={shiftX:64,adjustY:1},fe={adjustX:1,shiftY:!0},Mi={left:{points:["cr","cl"],overflow:fe,offset:[-22,0]},right:{points:["cl","cr"],overflow:fe,offset:[22,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-22,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:fe,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:fe,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:fe,offset:[-22,0]}},Ii={left:{points:["cr","cl"],overflow:fe,offset:[-16,0]},right:{points:["cl","cr"],overflow:fe,offset:[16,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-16,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:fe,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:fe,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:fe,offset:[-16,0]}},Ti={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},$i=(e,r,a)=>Math.min(Math.max(e,r),a),Ni=(e,r,a)=>{const n=$i(r,1,3),i=Ti[a][n];return i[Math.min(e,i.length-1)]},zt=({text:e,title:r,media:a,variant:n="neutral",size:i,classNames:o={},onClose:l,buttons:c,buttonProps:f,showClose:_})=>{const p=["neutral","accent"].includes(n)?"contrast":"primary",g=i==="m",y=!!(r&&g),h=!!(a&&g),x=c&&!!c.length,L=!!(_&&g)||!_&&g&&!x,w=i==="xs"?4:3;return s.jsxs("div",{className:ne.content,children:[h&&s.jsx("div",{className:R.clsx(ne.mediaWrapper,o.mediaWrapper),children:a}),s.jsxs("div",{className:o.textWrapper,children:[y&&s.jsx(it.Subtitle,{className:R.clsx(ne.typography,ne.title,o.typography),size:1,as:"h3",typographyStyle:p,children:r}),s.jsx(it.Label,{className:R.clsx(ne.typography,ne.text,o.typography),typographyStyle:p,size:w,children:e})]}),L&&s.jsx("button",{type:"button",className:R.clsx(ne.closeButton,ne[n],o.closeButton,{[ne.hasMedia]:h}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:s.jsx(ki,{})}),g&&x&&s.jsx("div",{className:ne.buttonStack,children:c.map((v,d)=>{const S={...Ni(d,c.length,n),...f,...v},{closeOnClick:M,...k}=S,I=O=>{var z;(z=k.onClick)==null||z.call(k,O),M&&(l==null||l())};return s.jsx(Bt,{...k,onClick:I},d)})})]})},Ai=({customContent:e,children:r,placement:a="top",contentClassNames:n,mouseEnterDelay:i=0,mouseLeaveDelay:o=.1,showArrow:l=!0,showClose:c=!0,trigger:f="hover",variant:_="neutral",size:p="s",text:g,title:y,media:h,buttons:x,buttonProps:L,onClose:w,...v})=>{const[d,C]=b.useState(!1),[S,M]=b.useState(!1),k=p==="m"?Mi:Ii,I=()=>{C(!1),w==null||w()},O=e||(p==="m"?s.jsx(zt,{classNames:n,text:g,variant:_,size:p,onClose:I,title:y,media:h,showClose:c,buttons:x,buttonProps:L}):s.jsx(zt,{classNames:n,text:g,variant:_,size:p,onClose:I}));return b.useEffect(()=>{if(d){const z=requestAnimationFrame(()=>M(!0));return()=>cancelAnimationFrame(z)}M(!1)},[d]),s.jsx(vr,{visible:d,onVisibleChange:C,classNames:{root:R.clsx(ne.root,ne[_],ne[p],S&&ne.open),...v.classNames},placement:a,overlay:()=>O,trigger:f,mouseEnterDelay:i,mouseLeaveDelay:o,motion:{motionName:"tooltipMotion"},builtinPlacements:k,showArrow:l?{content:s.jsx(Ri,{}),className:`tooltipArrow tooltipArrow-${p}`}:!1,destroyTooltipOnHide:!0,...v,children:r})},Oi="_segmentedControl_1yvz7_5",zi="_segment_1yvz7_5",Di="_activeSegmentIndicator_1yvz7_51",Pi="_stretched_1yvz7_82",Bi="_s_1yvz7_5",Ui="_icon_1yvz7_90",Fi="_label_1yvz7_94",qi="_m_1yvz7_98",Wi="_l_1yvz7_94",$e={segmentedControl:Oi,segment:zi,activeSegmentIndicator:Di,stretched:Pi,s:Bi,icon:Ui,label:Fi,m:qi,l:Wi},Dt={s:le["typography-label-3-regular"],m:le["typography-label-2-regular"],l:le["typography-label-2-regular"]},Hi=e=>{var d;const{className:r,defaultValue:a,value:n,size:i="m",segments:o,stretched:l,mode:c="label",onChange:f}=e,_=b.useId(),[p,g]=b.useState(a||o[0].value),[y,h]=b.useState({width:0,left:0}),x=b.useRef(null);b.useEffect(()=>{n&&g(n)},[n]),b.useEffect(()=>{L()},[p,o,i,l,c]);const L=()=>{if(!(x!=null&&x.current))return;const C=x.current.querySelector('[data-is-active-segment="true"]');C&&h({width:C.offsetWidth,left:C.offsetLeft})},w=(d=o.find(C=>C.value===p))==null?void 0:d.label,v=C=>{g(C),f==null||f(C)};return(o==null?void 0:o.length)===0?null:s.jsxs("div",{className:R.clsx($e.segmentedControl,$e[i],$e[c],{[$e.stretched]:l},r),"data-testid":"segmented-control-container",ref:x,children:[o==null?void 0:o.map(({label:C,value:S},M)=>{const k=()=>v(S);return s.jsxs(b.Fragment,{children:[s.jsx("input",{id:_+JSON.stringify(S),value:JSON.stringify(S),type:"radio",checked:p===S,onClick:k}),s.jsx("label",{"data-is-active-segment":p===S,className:R.clsx($e.segment,Dt[i]),htmlFor:_+JSON.stringify(S),"data-testid":"segmented-control-segment",children:C})]},Ve(JSON.stringify(S))+M)}),s.jsx("div",{className:R.clsx($e.activeSegmentIndicator,Dt[i]),"data-testid":"segmented-control-active-segment",style:{width:y.width,left:y.left},children:w})]})};exports.Avatar=Ba;exports.Badge=Ut;exports.Button=Bt;exports.Checkbox=Vs;exports.ConfigProvider=ps;exports.Helper=Jn;exports.Image=cs;exports.List=Ro;exports.Loader=qt;exports.Radio=xo;exports.SegmentedControl=Hi;exports.Tabs=ui;exports.Tag=Ts;exports.TextArea=Zn;exports.TextInput=Bn;exports.Tooltip=Ai;exports.Typography=it;exports.enUS=Wt;exports.ruRU=bs;exports.useConfig=Vt;exports.useLocale=ds;