skillgrid 0.0.25 → 0.0.27

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