skillgrid 0.0.31 → 0.0.35

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 (47) hide show
  1. package/dist/components/Alert/Alert.d.ts +9 -0
  2. package/dist/components/Alert/Alert.type.d.ts +25 -0
  3. package/dist/components/Alert/assets/index.d.ts +1 -0
  4. package/dist/components/Alert/assets/react-svg-icons.d.ts +6 -0
  5. package/dist/components/Alert/index.d.ts +2 -0
  6. package/dist/components/Alert/lib/constants.d.ts +7 -0
  7. package/dist/components/Alert/lib/index.d.ts +1 -0
  8. package/dist/components/Button/Button.d.ts +4 -11
  9. package/dist/components/Button/Button.type.d.ts +184 -54
  10. package/dist/components/Button/assets/ArrowLeftIcon.d.ts +6 -0
  11. package/dist/components/Button/assets/CrossIcon.d.ts +2 -2
  12. package/dist/components/Button/assets/index.d.ts +1 -0
  13. package/dist/components/Button/assets/types.d.ts +2 -5
  14. package/dist/components/Button/lib/get-button-typography.d.ts +5 -0
  15. package/dist/components/Button/lib/get-button-typography.test.d.ts +1 -0
  16. package/dist/components/Button/lib/get-loader-variant.d.ts +7 -0
  17. package/dist/components/Button/lib/get-loader-variant.test.d.ts +1 -0
  18. package/dist/components/Button/lib/get-typography.d.ts +3 -3
  19. package/dist/components/Button/preview/index.d.ts +1 -0
  20. package/dist/components/Dialog/Dialog.d.ts +8 -0
  21. package/dist/components/Dialog/Dialog.type.d.ts +29 -0
  22. package/dist/components/Dialog/index.d.ts +2 -0
  23. package/dist/components/Dialog/lib/index.d.ts +1 -0
  24. package/dist/components/Dialog/lib/use-dialog.d.ts +43 -0
  25. package/dist/components/Dialog/lib/use-dialog.test.d.ts +1 -0
  26. package/dist/components/Loader/Loader.d.ts +1 -1
  27. package/dist/components/Modal/Modal.d.ts +7 -0
  28. package/dist/components/Modal/Modal.type.d.ts +34 -0
  29. package/dist/components/Modal/index.d.ts +2 -0
  30. package/dist/components/Placeholder/Placeholder.d.ts +14 -0
  31. package/dist/components/Placeholder/Placeholder.type.d.ts +20 -0
  32. package/dist/components/Placeholder/index.d.ts +2 -0
  33. package/dist/components/Placeholder/lib/get-typography-classes-from-placeholder-size.d.ts +13 -0
  34. package/dist/components/Placeholder/lib/get-typography-classes-from-placeholder-size.test.d.ts +1 -0
  35. package/dist/components/Placeholder/lib/index.d.ts +1 -0
  36. package/dist/components/SegmentedControl/SegmentedControl.type.d.ts +8 -4
  37. package/dist/components/SegmentedControl/index.d.ts +1 -1
  38. package/dist/components/Tooltip/Tooltip.type.d.ts +4 -1
  39. package/dist/components/Tooltip/utils/index.d.ts +1 -0
  40. package/dist/components/Tooltip/utils/merge-tooltip-button-props.d.ts +2 -0
  41. package/dist/components/Tooltip/utils/merge-tooltip-button-props.test.d.ts +1 -0
  42. package/dist/components/Typography/Typography.d.ts +2 -2
  43. package/dist/index.cjs.js +11 -11
  44. package/dist/index.css +1 -1
  45. package/dist/index.d.ts +3 -0
  46. package/dist/index.es.js +2591 -2025
  47. 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 g=require("react"),E=require("clsx"),vr=require("rc-tooltip");function wr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const 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 zt=wr(g);function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var We={exports:{}},Ae={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const h=require("react"),S=require("clsx"),Se=require("@floating-ui/react"),Rr=require("rc-tooltip");function Nr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const Xt=Nr(h);function Ir(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var He={exports:{}},Oe={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var wt;function Sr(){if(wt)return Ae;wt=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,n={key:!0,ref:!0,__self:!0,__source:!0};function l(c,_,f){var p,m={},y=null,b=null;f!==void 0&&(y=""+f),_.key!==void 0&&(y=""+_.key),_.ref!==void 0&&(b=_.ref);for(p in _)s.call(_,p)&&!n.hasOwnProperty(p)&&(m[p]=_[p]);if(c&&c.defaultProps)for(p in _=c.defaultProps,_)m[p]===void 0&&(m[p]=_[p]);return{$$typeof:r,type:c,key:y,ref:b,props:m,_owner:i.current}}return Ae.Fragment=a,Ae.jsx=l,Ae.jsxs=l,Ae}var Pe={};/**
9
+ */var Tt;function Mr(){if(Tt)return Oe;Tt=1;var e=h,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(c,u,f){var d,g={},m=null,b=null;f!==void 0&&(m=""+f),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(b=u.ref);for(d in u)a.call(u,d)&&!s.hasOwnProperty(d)&&(g[d]=u[d]);if(c&&c.defaultProps)for(d in u=c.defaultProps,u)g[d]===void 0&&(g[d]=u[d]);return{$$typeof:r,type:c,key:m,ref:b,props:g,_owner:i.current}}return Oe.Fragment=n,Oe.jsx=l,Oe.jsxs=l,Oe}var Pe={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,21 +14,21 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ct;function Lr(){return Ct||(Ct=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"),n=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),x=Symbol.iterator,S="@@iterator";function v(t){if(t===null||typeof t!="object")return null;var d=x&&t[x]||t[S];return typeof d=="function"?d:null}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function u(t){{for(var d=arguments.length,h=new Array(d>1?d-1:0),k=1;k<d;k++)h[k-1]=arguments[k];C("error",t,h)}}function C(t,d,h){{var k=w.ReactDebugCurrentFrame,z=k.getStackAddendum();z!==""&&(d+="%s",h=h.concat([z]));var F=h.map(function(O){return String(O)});F.unshift("Warning: "+d),Function.prototype.apply.call(console[t],console,F)}}var j=!1,T=!1,$=!1,R=!1,A=!1,P;P=Symbol.for("react.module.reference");function W(t){return!!(typeof t=="string"||typeof t=="function"||t===s||t===n||A||t===i||t===f||t===p||R||t===b||j||T||$||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===_||t.$$typeof===P||t.getModuleId!==void 0))}function H(t,d,h){var k=t.displayName;if(k)return k;var z=d.displayName||d.name||"";return z!==""?h+"("+z+")":h}function B(t){return t.displayName||"Context"}function L(t){if(t==null)return null;if(typeof t.tag=="number"&&u("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 n:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var d=t;return B(d)+".Consumer";case l:var h=t;return B(h._context)+".Provider";case _:return H(t,t.render,"ForwardRef");case m:var k=t.displayName||null;return k!==null?k:L(t.type)||"Memo";case y:{var z=t,F=z._payload,O=z._init;try{return L(O(F))}catch{return null}}}return null}var M=Object.assign,D=0,q,Y,Q,le,ae,ee,te;function be(){}be.__reactDisabledLog=!0;function Oe(){{if(D===0){q=console.log,Y=console.info,Q=console.warn,le=console.error,ae=console.group,ee=console.groupCollapsed,te=console.groupEnd;var t={configurable:!0,enumerable:!0,value:be,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}D++}}function je(){{if(D--,D===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},t,{value:q}),info:M({},t,{value:Y}),warn:M({},t,{value:Q}),error:M({},t,{value:le}),group:M({},t,{value:ae}),groupCollapsed:M({},t,{value:ee}),groupEnd:M({},t,{value:te})})}D<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=w.ReactCurrentDispatcher,ke;function Ce(t,d,h){{if(ke===void 0)try{throw Error()}catch(z){var k=z.stack.trim().match(/\n( *(at )?)/);ke=k&&k[1]||""}return`
18
- `+ke+t}}var ze=!1,$e;{var Ye=typeof WeakMap=="function"?WeakMap:Map;$e=new Ye}function De(t,d){if(!t||ze)return"";{var h=$e.get(t);if(h!==void 0)return h}var k;ze=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=fe.current,fe.current=null,Oe();try{if(d){var O=function(){throw Error()};if(Object.defineProperty(O.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(O,[])}catch(se){k=se}Reflect.construct(t,[],O)}else{try{O.call()}catch(se){k=se}t.call(O.prototype)}}else{try{throw Error()}catch(se){k=se}t()}}catch(se){if(se&&k&&typeof se.stack=="string"){for(var N=se.stack.split(`
19
- `),re=k.stack.split(`
20
- `),Z=N.length-1,G=re.length-1;Z>=1&&G>=0&&N[Z]!==re[G];)G--;for(;Z>=1&&G>=0;Z--,G--)if(N[Z]!==re[G]){if(Z!==1||G!==1)do if(Z--,G--,G<0||N[Z]!==re[G]){var ue=`
21
- `+N[Z].replace(" at new "," at ");return t.displayName&&ue.includes("<anonymous>")&&(ue=ue.replace("<anonymous>",t.displayName)),typeof t=="function"&&$e.set(t,ue),ue}while(Z>=1&&G>=0);break}}}finally{ze=!1,fe.current=F,je(),Error.prepareStackTrace=z}var Te=t?t.displayName||t.name:"",Se=Te?Ce(Te):"";return typeof t=="function"&&$e.set(t,Se),Se}function Ze(t,d,h){return De(t,!1)}function Ge(t){var d=t.prototype;return!!(d&&d.isReactComponent)}function U(t,d,h){if(t==null)return"";if(typeof t=="function")return De(t,Ge(t));if(typeof t=="string")return Ce(t);switch(t){case f:return Ce("Suspense");case p:return Ce("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case _:return Ze(t.render);case m:return U(t.type,d,h);case y:{var k=t,z=k._payload,F=k._init;try{return U(F(z),d,h)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,ge={},ct=w.ReactDebugCurrentFrame;function Fe(t){if(t){var d=t._owner,h=U(t.type,t._source,d?d.type:null);ct.setExtraStackFrame(h)}else ct.setExtraStackFrame(null)}function Qt(t,d,h,k,z){{var F=Function.call.bind(J);for(var O in t)if(F(t,O)){var N=void 0;try{if(typeof t[O]!="function"){var re=Error((k||"React class")+": "+h+" type `"+O+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[O]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw re.name="Invariant Violation",re}N=t[O](d,O,k,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){N=Z}N&&!(N instanceof Error)&&(Fe(z),u("%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).",k||"React class",h,O,typeof N),Fe(null)),N instanceof Error&&!(N.message in ge)&&(ge[N.message]=!0,Fe(z),u("Failed %s type: %s",h,N.message),Fe(null))}}}var er=Array.isArray;function Ue(t){return er(t)}function tr(t){{var d=typeof Symbol=="function"&&Symbol.toStringTag,h=d&&t[Symbol.toStringTag]||t.constructor.name||"Object";return h}}function rr(t){try{return dt(t),!1}catch{return!0}}function dt(t){return""+t}function ut(t){if(rr(t))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tr(t)),dt(t)}var _t=w.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},pt,ft;function sr(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 or(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 nr(t,d){typeof t.ref=="string"&&_t.current}function ir(t,d){{var h=function(){pt||(pt=!0,u("%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))};h.isReactWarning=!0,Object.defineProperty(t,"key",{get:h,configurable:!0})}}function lr(t,d){{var h=function(){ft||(ft=!0,u("%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))};h.isReactWarning=!0,Object.defineProperty(t,"ref",{get:h,configurable:!0})}}var cr=function(t,d,h,k,z,F,O){var N={$$typeof:r,type:t,key:d,ref:h,props:O,_owner:F};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function dr(t,d,h,k,z){{var F,O={},N=null,re=null;h!==void 0&&(ut(h),N=""+h),or(d)&&(ut(d.key),N=""+d.key),sr(d)&&(re=d.ref,nr(d,z));for(F in d)J.call(d,F)&&!ar.hasOwnProperty(F)&&(O[F]=d[F]);if(t&&t.defaultProps){var Z=t.defaultProps;for(F in Z)O[F]===void 0&&(O[F]=Z[F])}if(N||re){var G=typeof t=="function"?t.displayName||t.name||"Unknown":t;N&&ir(O,G),re&&lr(O,G)}return cr(t,N,re,z,k,_t.current,O)}}var Je=w.ReactCurrentOwner,gt=w.ReactDebugCurrentFrame;function Ee(t){if(t){var d=t._owner,h=U(t.type,t._source,d?d.type:null);gt.setExtraStackFrame(h)}else gt.setExtraStackFrame(null)}var Ke;Ke=!1;function Qe(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function bt(){{if(Je.current){var t=L(Je.current.type);if(t)return`
17
+ */var Et;function Br(){return Et||(Et=1,process.env.NODE_ENV!=="production"&&function(){var e=h,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),w=Symbol.iterator,C="@@iterator";function x(t){if(t===null||typeof t!="object")return null;var p=w&&t[w]||t[C];return typeof p=="function"?p:null}var y=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(t){{for(var p=arguments.length,v=new Array(p>1?p-1:0),$=1;$<p;$++)v[$-1]=arguments[$];k("error",t,v)}}function k(t,p,v){{var $=y.ReactDebugCurrentFrame,z=$.getStackAddendum();z!==""&&(p+="%s",v=v.concat([z]));var q=v.map(function(B){return String(B)});q.unshift("Warning: "+p),Function.prototype.apply.call(console[t],console,q)}}var L=!1,E=!1,T=!1,R=!1,M=!1,O;O=Symbol.for("react.module.reference");function P(t){return!!(typeof t=="string"||typeof t=="function"||t===a||t===s||M||t===i||t===f||t===d||R||t===b||L||E||T||typeof t=="object"&&t!==null&&(t.$$typeof===m||t.$$typeof===g||t.$$typeof===l||t.$$typeof===c||t.$$typeof===u||t.$$typeof===O||t.getModuleId!==void 0))}function F(t,p,v){var $=t.displayName;if($)return $;var z=p.displayName||p.name||"";return z!==""?v+"("+z+")":v}function W(t){return t.displayName||"Context"}function j(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 a:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case d:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var p=t;return W(p)+".Consumer";case l:var v=t;return W(v._context)+".Provider";case u:return F(t,t.render,"ForwardRef");case g:var $=t.displayName||null;return $!==null?$:j(t.type)||"Memo";case m:{var z=t,q=z._payload,B=z._init;try{return j(B(q))}catch{return null}}}return null}var A=Object.assign,H=0,V,X,K,oe,re,J,ae;function se(){}se.__reactDisabledLog=!0;function ve(){{if(H===0){V=console.log,X=console.info,K=console.warn,oe=console.error,re=console.group,J=console.groupCollapsed,ae=console.groupEnd;var t={configurable:!0,enumerable:!0,value:se,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}H++}}function xe(){{if(H--,H===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:A({},t,{value:V}),info:A({},t,{value:X}),warn:A({},t,{value:K}),error:A({},t,{value:oe}),group:A({},t,{value:re}),groupCollapsed:A({},t,{value:J}),groupEnd:A({},t,{value:ae})})}H<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ie=y.ReactCurrentDispatcher,je;function ue(t,p,v){{if(je===void 0)try{throw Error()}catch(z){var $=z.stack.trim().match(/\n( *(at )?)/);je=$&&$[1]||""}return`
18
+ `+je+t}}var Fe=!1,Ne;{var Qe=typeof WeakMap=="function"?WeakMap:Map;Ne=new Qe}function qe(t,p){if(!t||Fe)return"";{var v=Ne.get(t);if(v!==void 0)return v}var $;Fe=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var q;q=ie.current,ie.current=null,ve();try{if(p){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(le){$=le}Reflect.construct(t,[],B)}else{try{B.call()}catch(le){$=le}t.call(B.prototype)}}else{try{throw Error()}catch(le){$=le}t()}}catch(le){if(le&&$&&typeof le.stack=="string"){for(var N=le.stack.split(`
19
+ `),ne=$.stack.split(`
20
+ `),Y=N.length-1,G=ne.length-1;Y>=1&&G>=0&&N[Y]!==ne[G];)G--;for(;Y>=1&&G>=0;Y--,G--)if(N[Y]!==ne[G]){if(Y!==1||G!==1)do if(Y--,G--,G<0||N[Y]!==ne[G]){var fe=`
21
+ `+N[Y].replace(" at new "," at ");return t.displayName&&fe.includes("<anonymous>")&&(fe=fe.replace("<anonymous>",t.displayName)),typeof t=="function"&&Ne.set(t,fe),fe}while(Y>=1&&G>=0);break}}}finally{Fe=!1,ie.current=q,xe(),Error.prepareStackTrace=z}var Me=t?t.displayName||t.name:"",Ee=Me?ue(Me):"";return typeof t=="function"&&Ne.set(t,Ee),Ee}function et(t,p,v){return qe(t,!1)}function tt(t){var p=t.prototype;return!!(p&&p.isReactComponent)}function Q(t,p,v){if(t==null)return"";if(typeof t=="function")return qe(t,tt(t));if(typeof t=="string")return ue(t);switch(t){case f:return ue("Suspense");case d:return ue("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case u:return et(t.render);case g:return Q(t.type,p,v);case m:{var $=t,z=$._payload,q=$._init;try{return Q(q(z),p,v)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,me={},ht=y.ReactDebugCurrentFrame;function We(t){if(t){var p=t._owner,v=Q(t.type,t._source,p?p.type:null);ht.setExtraStackFrame(v)}else ht.setExtraStackFrame(null)}function cr(t,p,v,$,z){{var q=Function.call.bind(ee);for(var B in t)if(q(t,B)){var N=void 0;try{if(typeof t[B]!="function"){var ne=Error(($||"React class")+": "+v+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ne.name="Invariant Violation",ne}N=t[B](p,B,$,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Y){N=Y}N&&!(N instanceof Error)&&(We(z),_("%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).",$||"React class",v,B,typeof N),We(null)),N instanceof Error&&!(N.message in me)&&(me[N.message]=!0,We(z),_("Failed %s type: %s",v,N.message),We(null))}}}var dr=Array.isArray;function rt(t){return dr(t)}function ur(t){{var p=typeof Symbol=="function"&&Symbol.toStringTag,v=p&&t[Symbol.toStringTag]||t.constructor.name||"Object";return v}}function _r(t){try{return bt(t),!1}catch{return!0}}function bt(t){return""+t}function xt(t){if(_r(t))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ur(t)),bt(t)}var mt=y.ReactCurrentOwner,pr={key:!0,ref:!0,__self:!0,__source:!0},yt,vt;function fr(t){if(ee.call(t,"ref")){var p=Object.getOwnPropertyDescriptor(t,"ref").get;if(p&&p.isReactWarning)return!1}return t.ref!==void 0}function gr(t){if(ee.call(t,"key")){var p=Object.getOwnPropertyDescriptor(t,"key").get;if(p&&p.isReactWarning)return!1}return t.key!==void 0}function hr(t,p){typeof t.ref=="string"&&mt.current}function br(t,p){{var v=function(){yt||(yt=!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)",p))};v.isReactWarning=!0,Object.defineProperty(t,"key",{get:v,configurable:!0})}}function xr(t,p){{var v=function(){vt||(vt=!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)",p))};v.isReactWarning=!0,Object.defineProperty(t,"ref",{get:v,configurable:!0})}}var mr=function(t,p,v,$,z,q,B){var N={$$typeof:r,type:t,key:p,ref:v,props:B,_owner:q};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:$}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function yr(t,p,v,$,z){{var q,B={},N=null,ne=null;v!==void 0&&(xt(v),N=""+v),gr(p)&&(xt(p.key),N=""+p.key),fr(p)&&(ne=p.ref,hr(p,z));for(q in p)ee.call(p,q)&&!pr.hasOwnProperty(q)&&(B[q]=p[q]);if(t&&t.defaultProps){var Y=t.defaultProps;for(q in Y)B[q]===void 0&&(B[q]=Y[q])}if(N||ne){var G=typeof t=="function"?t.displayName||t.name||"Unknown":t;N&&br(B,G),ne&&xr(B,G)}return mr(t,N,ne,z,$,mt.current,B)}}var nt=y.ReactCurrentOwner,Ct=y.ReactDebugCurrentFrame;function Ie(t){if(t){var p=t._owner,v=Q(t.type,t._source,p?p.type:null);Ct.setExtraStackFrame(v)}else Ct.setExtraStackFrame(null)}var ot;ot=!1;function at(t){return typeof t=="object"&&t!==null&&t.$$typeof===r}function wt(){{if(nt.current){var t=j(nt.current.type);if(t)return`
22
22
 
23
- Check the render method of \``+t+"`."}return""}}function ur(t){return""}var ht={};function _r(t){{var d=bt();if(!d){var h=typeof t=="string"?t:t.displayName||t.name;h&&(d=`
23
+ Check the render method of \``+t+"`."}return""}}function vr(t){return""}var kt={};function Cr(t){{var p=wt();if(!p){var v=typeof t=="string"?t:t.displayName||t.name;v&&(p=`
24
24
 
25
- Check the top-level render call using <`+h+">.")}return d}}function mt(t,d){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var h=_r(d);if(ht[h])return;ht[h]=!0;var k="";t&&t._owner&&t._owner!==Je.current&&(k=" It was passed a child from "+L(t._owner.type)+"."),Ee(t),u('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',h,k),Ee(null)}}function yt(t,d){{if(typeof t!="object")return;if(Ue(t))for(var h=0;h<t.length;h++){var k=t[h];Qe(k)&&mt(k,d)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var z=v(t);if(typeof z=="function"&&z!==t.entries)for(var F=z.call(t),O;!(O=F.next()).done;)Qe(O.value)&&mt(O.value,d)}}}function pr(t){{var d=t.type;if(d==null||typeof d=="string")return;var h;if(typeof d=="function")h=d.propTypes;else if(typeof d=="object"&&(d.$$typeof===_||d.$$typeof===m))h=d.propTypes;else return;if(h){var k=L(d);Qt(h,t.props,"prop",k,t)}else if(d.PropTypes!==void 0&&!Ke){Ke=!0;var z=L(d);u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof d.getDefaultProps=="function"&&!d.getDefaultProps.isReactClassApproved&&u("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(t){{for(var d=Object.keys(t.props),h=0;h<d.length;h++){var k=d[h];if(k!=="children"&&k!=="key"){Ee(t),u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),Ee(null);break}}t.ref!==null&&(Ee(t),u("Invalid attribute `ref` supplied to `React.Fragment`."),Ee(null))}}var xt={};function vt(t,d,h,k,z,F){{var O=W(t);if(!O){var N="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(N+=" 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 re=ur();re?N+=re:N+=bt();var Z;t===null?Z="null":Ue(t)?Z="array":t!==void 0&&t.$$typeof===r?(Z="<"+(L(t.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof t,u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,N)}var G=dr(t,d,h,z,F);if(G==null)return G;if(O){var ue=d.children;if(ue!==void 0)if(k)if(Ue(ue)){for(var Te=0;Te<ue.length;Te++)yt(ue[Te],t);Object.freeze&&Object.freeze(ue)}else u("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else yt(ue,t)}if(J.call(d,"key")){var Se=L(t),se=Object.keys(d).filter(function(xr){return xr!=="key"}),et=se.length>0?"{key: someKey, "+se.join(": ..., ")+": ...}":"{key: someKey}";if(!xt[Se+et]){var yr=se.length>0?"{"+se.join(": ..., ")+": ...}":"{}";u(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+v+">.")}return p}}function St(t,p){{if(!t._store||t._store.validated||t.key!=null)return;t._store.validated=!0;var v=Cr(p);if(kt[v])return;kt[v]=!0;var $="";t&&t._owner&&t._owner!==nt.current&&($=" It was passed a child from "+j(t._owner.type)+"."),Ie(t),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,$),Ie(null)}}function Lt(t,p){{if(typeof t!="object")return;if(rt(t))for(var v=0;v<t.length;v++){var $=t[v];at($)&&St($,p)}else if(at(t))t._store&&(t._store.validated=!0);else if(t){var z=x(t);if(typeof z=="function"&&z!==t.entries)for(var q=z.call(t),B;!(B=q.next()).done;)at(B.value)&&St(B.value,p)}}}function wr(t){{var p=t.type;if(p==null||typeof p=="string")return;var v;if(typeof p=="function")v=p.propTypes;else if(typeof p=="object"&&(p.$$typeof===u||p.$$typeof===g))v=p.propTypes;else return;if(v){var $=j(p);cr(v,t.props,"prop",$,t)}else if(p.PropTypes!==void 0&&!ot){ot=!0;var z=j(p);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof p.getDefaultProps=="function"&&!p.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kr(t){{for(var p=Object.keys(t.props),v=0;v<p.length;v++){var $=p[v];if($!=="children"&&$!=="key"){Ie(t),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",$),Ie(null);break}}t.ref!==null&&(Ie(t),_("Invalid attribute `ref` supplied to `React.Fragment`."),Ie(null))}}var jt={};function $t(t,p,v,$,z,q){{var B=P(t);if(!B){var N="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(N+=" 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 ne=vr();ne?N+=ne:N+=wt();var Y;t===null?Y="null":rt(t)?Y="array":t!==void 0&&t.$$typeof===r?(Y="<"+(j(t.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):Y=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",Y,N)}var G=yr(t,p,v,z,q);if(G==null)return G;if(B){var fe=p.children;if(fe!==void 0)if($)if(rt(fe)){for(var Me=0;Me<fe.length;Me++)Lt(fe[Me],t);Object.freeze&&Object.freeze(fe)}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 Lt(fe,t)}if(ee.call(p,"key")){var Ee=j(t),le=Object.keys(p).filter(function(Er){return Er!=="key"}),st=le.length>0?"{key: someKey, "+le.join(": ..., ")+": ...}":"{key: someKey}";if(!jt[Ee+st]){var Tr=le.length>0?"{"+le.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} />`,et,Se,yr,Se),xt[Se+et]=!0}}return t===s?fr(G):pr(G),G}}function gr(t,d,h){return vt(t,d,h,!0)}function br(t,d,h){return vt(t,d,h,!1)}var hr=br,mr=gr;Pe.Fragment=s,Pe.jsx=hr,Pe.jsxs=mr}()),Pe}var St;function jr(){return St||(St=1,process.env.NODE_ENV==="production"?We.exports=Sr():We.exports=Lr()),We.exports}var o=jr();const kr=e=>e.as==="a",$r=e=>e.as===void 0||e.as==="button",Re=e=>e.displayAs===void 0||e.displayAs==="button",tt=e=>e.displayAs==="link",Er="_button_6bymk_1",Tr="_link_6bymk_17",Rr="_disabled_6bymk_22",Nr="_loading_6bymk_22",Ir="_neutral_6bymk_50",Mr="_accent_6bymk_54",Or="_positive_6bymk_58",Ar="_negative_6bymk_62",Pr="_contrast_6bymk_66",Br="_special_6bymk_70",zr="_primary_6bymk_74",Dr="_secondary_6bymk_75",Fr="_tertiary_6bymk_76",Wr="_spaceBetween_6bymk_116",qr="_rightGroup_6bymk_116",Hr="_label_6bymk_136",Vr="_iconOnly_6bymk_155",Xr="_stretched_6bymk_171",Yr="_icon_6bymk_155",Zr="_postfix_6bymk_176",Gr="_underline_6bymk_202",Ur="_warning_6bymk_1082",Jr="_withSubcaption_6bymk_1268",Kr="_subcaption_6bymk_1273",Qr="_loader_6bymk_1279",ea="_spin_6bymk_1",ta="_l_6bymk_17",ra="_m_6bymk_1318",aa="_s_6bymk_70",sa="_xs_6bymk_1364",oa="_iconRight_6bymk_1410",X={button:Er,link:Tr,disabled:Rr,loading:Nr,neutral:Ir,accent:Mr,positive:Or,negative:Ar,contrast:Pr,special:Br,primary:zr,secondary:Dr,tertiary:Fr,spaceBetween:Wr,rightGroup:qr,label:Hr,iconOnly:Vr,stretched:Xr,icon:Yr,postfix:Zr,underline:Gr,warning:Ur,withSubcaption:Jr,subcaption:Kr,loader:Qr,spin:ea,l:ta,m:ra,s:aa,xs:sa,iconRight:oa},na=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),Lt=e=>{const r={};for(const a in e)na.has(a)||(r[a]=e[a]);return r},ia={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function la(e){return ia[e]||"typography-label-2-regular"}const ie={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},jt=({isLoading:e,iconRight:r,iconLeft:a,children:s,postfix:i,subcaption:n,size:l,isAsButton:c})=>{if(e&&c)return o.jsx("span",{className:X.loader,"data-testid":"button-loader","aria-hidden":"true"});const _=r&&c||r&&!c&&l,f=n&&c&&l!=="s"&&l!=="xs";return o.jsxs(g.Fragment,{children:[f&&o.jsxs(g.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:X.label,children:s}),o.jsx("span",{"data-testid":"button-subcaption",className:X.subcaption,children:n})]}),!f&&s&&o.jsxs(g.Fragment,{children:[o.jsxs("span",{"data-testid":"button-label",className:X.label,children:[!c&&a&&o.jsx("span",{"data-testid":"button-left-icon",className:X.icon,children:a}),s,!c&&r&&o.jsx("span",{"data-testid":"button-icon",className:E.clsx(X.icon,X.iconRight),children:r})]}),c&&o.jsxs("div",{"data-testid":"button-right-group",className:X.rightGroup,children:[_&&o.jsx("span",{"data-testid":"button-icon",className:X.icon,children:r}),i&&c&&o.jsx("span",{"data-testid":"button-postfix",className:X.postfix,children:i})]})]}),!f&&!s&&o.jsx("span",{"data-testid":"button-icon",className:X.icon,children:r})]})},Dt=g.forwardRef((e,r)=>{const{mode:a="primary",size:s="m",buttonStyle:i=Re(e)?"neutral":"accent",disabled:n=!1,displayAs:l="button",iconRight:c,className:_,children:f,tabIndex:p}=e,m=Re(e)?e.subcaption:void 0,y=Re(e)?e.postfix:void 0,b=Re(e)?e.stretched:void 0,x=!(tt(e)&&e.size===void 0),S=tt(e)&&x?e.iconLeft:void 0,v=!!(l==="button"&&"loading"in e&&e.loading),w=Re(e)?n:n||v,u=!w&&!v,C=x?c:void 0,j=!!(C&&!f),T=typeof b=="object"?b.justify==="space-between":void 0,$=tt(e)?la(e.size??"m"):void 0,R=$?ie[$]:void 0,A=w||v?-1:p,P=E.clsx(X.button,X[s],X[a],X[i],R,{[X.disabled]:w,[X.loading]:l==="button"&&"loading"in e&&e.loading,[X.stretched]:b,[X.spaceBetween]:T,[X.withSubcaption]:m&&s!=="s"&&s!=="xs",[X.iconOnly]:j,[X.link]:l==="link",[X.underline]:l==="link"&&"showUnderline"in e&&e.showUnderline},_),W={isLoading:v,iconRight:C,iconLeft:S,children:f,postfix:y,subcaption:m,size:s,isAsButton:Re(e)};if(kr(e)){const{href:H,onClick:B,style:L,target:M,rel:D,"data-testid":q,...Y}=e,Q=Lt(Y),le=M??(e.isExternal?"_blank":void 0);let ae=D;if(le==="_blank"){const te=new Set((D??"").split(/\s+/).filter(Boolean));te.add("noopener").add("noreferrer"),ae=Array.from(te).join(" ")}const ee=te=>{if(!u){te.preventDefault();return}B==null||B(te)};return o.jsx("a",{ref:r,className:P,href:u?H:void 0,tabIndex:A,onClick:ee,"data-testid":q,"aria-disabled":w||v,style:L,target:le,rel:ae,...Q,children:o.jsx(jt,{...W})})}if($r(e)){const{type:H="button",onClick:B,style:L,"data-testid":M,...D}=e,q=Lt(D),Y=Q=>{u&&B&&B(Q)};return o.jsx("button",{ref:r,type:H,className:P,disabled:w,tabIndex:A,onClick:Y,"data-testid":M,"aria-disabled":w||v,style:L,...q,children:o.jsx(jt,{...W})})}return null});var rt={exports:{}};/*!
30
+ <%s key={someKey} {...props} />`,st,Ee,Tr,Ee),jt[Ee+st]=!0}}return t===a?kr(G):wr(G),G}}function Sr(t,p,v){return $t(t,p,v,!0)}function Lr(t,p,v){return $t(t,p,v,!1)}var jr=Lr,$r=Sr;Pe.Fragment=a,Pe.jsx=jr,Pe.jsxs=$r}()),Pe}var Rt;function Ar(){return Rt||(Rt=1,process.env.NODE_ENV==="production"?He.exports=Mr():He.exports=Br()),He.exports}var o=Ar();const Or=e=>e.as==="a",Pr=e=>e.as===void 0||e.as==="button",Nt=e=>e.displayAs===void 0||e.displayAs==="button",zr=e=>e.displayAs==="link",Dr="_button_11kkg_1",Fr="_link_11kkg_22",qr="_disabled_11kkg_27",Wr="_loading_11kkg_27",Hr="_neutral_11kkg_59",Vr="_accent_11kkg_63",Zr="_positive_11kkg_67",Xr="_negative_11kkg_71",Yr="_contrast_11kkg_75",Gr="_primary_11kkg_79",Ur="_secondary_11kkg_80",Kr="_tertiary_11kkg_81",Jr="_gray_11kkg_91",Qr="_spaceBetween_11kkg_119",en="_rightGroup_11kkg_119",tn="_withSubcaption_11kkg_127",rn="_label_11kkg_139",nn="_icon_11kkg_148",on="_labelText_11kkg_153",an="_isLink_11kkg_159",sn="_iconOnly_11kkg_174",ln="_stretched_11kkg_190",cn="_postfix_11kkg_195",dn="_underline_11kkg_225",un="_backButton_11kkg_428",_n="_warning_11kkg_1159",pn="_subcaption_11kkg_1389",fn="_content_11kkg_1394",gn="_contentHidden_11kkg_1398",hn="_loaderWrapper_11kkg_1402",bn="_l_11kkg_22",xn="_m_11kkg_1441",mn="_s_11kkg_80",yn="_xs_11kkg_1484",vn="_noPaddings_11kkg_1506",Cn="_iconRight_11kkg_1542",wn="_spin_11kkg_1",D={button:Dr,link:Fr,disabled:qr,loading:Wr,neutral:Hr,accent:Vr,positive:Zr,negative:Xr,contrast:Yr,primary:Gr,secondary:Ur,tertiary:Kr,gray:Jr,spaceBetween:Qr,rightGroup:en,withSubcaption:tn,label:rn,icon:nn,labelText:on,isLink:an,iconOnly:sn,stretched:ln,postfix:cn,underline:dn,backButton:un,warning:_n,subcaption:pn,content:fn,contentHidden:gn,loaderWrapper:hn,l:bn,m:xn,s:mn,xs:yn,noPaddings:vn,iconRight:Cn,spin:wn},kn=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal","asBackButton","paddings"]),It=e=>{const r={};for(const n in e)kn.has(n)||(r[n]=e[n]);return r},Sn={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function Ln(e){return Sn[e]||"typography-label-2-regular"}const jn=(e,r,n)=>e?"gray":r==="primary"?{contrast:"neutral",gray:"gray"}[n]??"contrast":n==="warning"?"neutral":n,U={"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"},$n="_loader_isv17_1",Tn="_spin_isv17_1",En="_accent_isv17_19",Rn="_neutral_isv17_23",Nn="_positive_isv17_27",In="_negative_isv17_31",Mn="_gray_isv17_35",Bn="_special_isv17_39",An="_contrast_isv17_43",On="_container_isv17_47",Pn="_overlay_isv17_57",De={loader:$n,spin:Tn,accent:En,neutral:Rn,positive:Nn,negative:In,gray:Mn,special:Bn,contrast:An,container:On,overlay:Pn,"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"};var it={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 kt;function ca(){return kt||(kt=1,function(e){(function(){var r={}.hasOwnProperty;function a(){for(var n="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(n=i(n,s(c)))}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 l="";for(var c in n)r.call(n,c)&&n[c]&&(l=i(l,c));return l}function i(n,l){return l?n?n+" "+l:n+l:n}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(rt)),rt.exports}var da=ca();const we=Cr(da),ua="_avatar_19ug4_18",_a="_clickable_19ug4_40",pa="_icon_19ug4_57",fa="_disabled_19ug4_62",ga="_loading_19ug4_67",ba="_image_19ug4_73",ha="_name_19ug4_73",he={avatar:ua,clickable:_a,icon:pa,disabled:fa,loading:ga,image:ba,name:ha,"variant-filled":"_variant-filled_19ug4_125","color-brand":"_color-brand_19ug4_130","color-red":"_color-red_19ug4_134","color-orange":"_color-orange_19ug4_138","color-yellow":"_color-yellow_19ug4_142","color-green":"_color-green_19ug4_146","color-blue":"_color-blue_19ug4_150","color-lightblue":"_color-lightblue_19ug4_154","color-purple":"_color-purple_19ug4_158","color-gray":"_color-gray_19ug4_162","color-contrast":"_color-contrast_19ug4_166","variant-light":"_variant-light_19ug4_172","variant-outline":"_variant-outline_19ug4_244"},$t=99;function ma(e){return e<$t?`+${e}`:`${$t}+`}function Xe(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 ya=(e,r,a)=>Math.min(Math.max(e,r),a),xa=["red","orange","yellow","green","blue","lightblue","purple"];function va(e,r=xa){if(!e)return"gray";const a=Xe(e),s=Math.abs(a)%r.length;return r[s]}const Et=2;function wa(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,Et).toUpperCase():r.map(a=>a[0]).slice(0,Et).join("").toUpperCase()}const Ca={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Sa(e,r){return r==="circle"?e/2:Ca[e]||12}const La={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 ja(e){return La[e]||"typography-subtitle-1-semibold"}const ka="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",$a="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",Ea="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",Ta="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",Ra={male:ka,female:$a,org:Ta,neutral:Ea},He=g.forwardRef((e,r)=>{const{style:a,size:s=40,isLoading:i=!1,isDisabled:n=!1,shape:l="circle",variant:c="filled",placeholderType:_="neutral",name:f,imgSrc:p,imgAlt:m,icon:y,imgProps:b,colorScheme:x,className:S,"data-testid":v,...w}=e,{onClick:u,onPointerDown:C}=w,T=!n&&!i&&(!!u||!!C),[$,R]=g.useState(!1);g.useEffect(()=>{p&&R(!1)},[p]);const A=p&&!$?"image":y?"icon":f?"name":"placeholder",P=x||A==="name"&&va(f)||"gray",W=ja(s),H=Sa(s,l),B=E.clsx(S,he.avatar,he[`variant-${c}`],he[`color-${P}`],ie[W],{[he.disabled]:n,[he.loading]:i,[he.clickable]:T}),L={"--avatar-size":`${s}px`,"--avatar-border-radius":`${H}px`,...a},M={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:m||void 0,role:"img",className:he.icon,children:y==null?void 0:y({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:he.name,title:m||void 0,children:wa(f||"")}),placeholder:()=>o.jsx("img",{...b,"data-testid":"avatar-placeholder",className:he.image,src:Ra[_],alt:m||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...b,className:he.image,src:p||void 0,alt:m||void 0,onLoad:()=>R(!1),onError:q=>{var Y;R(!0),(Y=b==null?void 0:b.onError)==null||Y.call(b,q)}})},D=q=>{T&&(u==null||u(q))};return o.jsx("div",{ref:r,onClick:D,className:B,style:L,"data-testid":v,"aria-disabled":n||i,children:M[A](null)})}),Na="_avatarGroup_157g4_1",Ia={avatarGroup:Na},Ma=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Oa=e=>{if(!e)return null;let r=e;for(;r;){const s=window.getComputedStyle(r).backgroundColor;if(!Ma(s))return s;r=r.parentElement}return null},lt=()=>{const e=g.useRef(null),[r,a]=g.useState(null);return g.useEffect(()=>{if(e.current){const s=Oa(e.current);a(s)}},[]),{ref:e,bgColor:r}};function Tt(e,r,a){g.useEffect(()=>(window.addEventListener(e,r,a),()=>window.removeEventListener(e,r,a)),[e,r])}const Rt={passive:!0};function Aa(){const[e,r]=g.useState({width:0,height:0}),a=g.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Tt("resize",a,Rt),Tt("orientationchange",a,Rt),g.useEffect(a,[]),e}function Pa(e=768){const{width:r}=Aa();return g.useMemo(()=>r<=e,[r,e])}const Ba=2,za=e=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:i="circle",overflowCount:n=0,overflowProps:l,cutoutBackground:c}=e,f=-(a*s)+Ba,{ref:p,bgColor:m}=lt(),y=c||m||"#ffffff",b=we(Ia.avatarGroup),x={"--avatar-cutout-bg":y};return r.length===0?null:o.jsxs("div",{className:b,ref:p,style:x,children:[r.map((S,v)=>{if(S.wrapper){const w=S.wrapper;return o.jsx("div",{style:{marginRight:f},children:o.jsx(w,{children:o.jsx(He,{size:a,shape:i,...S})})},Xe(S)+v)}return o.jsx("div",{style:{marginRight:f},children:o.jsx(He,{size:a,shape:i,...S})},Xe(S)+v)}),n>0&&o.jsx("div",{style:{marginRight:f},children:o.jsx(He,{size:a,shape:i,icon:()=>ma(n),colorScheme:"gray",variant:"light",...l})})]})},Da=Object.assign(He,{Group:za}),Fa="_wrapper_ecbsu_5",Wa="_badge__container_ecbsu_6",qa="_badge__content_ecbsu_7",Ha="_interactive_ecbsu_20",Va="_disabled_ecbsu_21",Xa="_icon_ecbsu_22",me={wrapper:Fa,badge__container:Wa,badge__content:qa,interactive:Ha,disabled:Va,icon:Xa,"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"},Ft=g.forwardRef((e,r)=>{const{icon:a,children:s,variant:i="filled",label:n,isHidden:l=!1,colorScheme:c="red",size:_=20,position:f="top-right",positionOffset:p={x:0,y:0},cutoutBackground:m,isDisabled:y,className:b,"data-testid":x="badge",...S}=e,{onClick:v,onPointerDown:w}=S,{ref:u,bgColor:C}=lt(),j=m||C,$=!y&&(!!v||!!w),R=we(me.badge__container,me[`position-${f}`]),A=we(b,me.badge__content,me[`color-${c}`],me[`variant-${i}`],{[me.disabled]:y,[me.icon]:!!a,[me.interactive]:$}),P={"--badge-height":`${_}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...j&&{"--badge-cutout-bg":j},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},W=(a==null?void 0:a({}))||n,H=B=>{$&&(v==null||v(B))};return o.jsxs("div",{className:me.wrapper,ref:u,"data-testid":x+"-wrapper",children:[s,!l&&o.jsx("span",{className:R,style:P,"data-testid":x+"-container",children:o.jsx("span",{...S,onClick:H,className:A,"data-testid":x+"-content",ref:r,"aria-disabled":y,children:W})})]})}),Ya="_container_op5yl_7",Za="_image_op5yl_22",Ga="_loading_op5yl_34",at={container:Ya,image:Za,loading:Ga},Ua="_loader_isv17_1",Ja="_spin_isv17_1",Ka="_accent_isv17_19",Qa="_neutral_isv17_23",es="_positive_isv17_27",ts="_negative_isv17_31",rs="_gray_isv17_35",as="_special_isv17_39",ss="_contrast_isv17_43",os="_container_isv17_47",ns="_overlay_isv17_57",Be={loader:Ua,spin:Ja,accent:Ka,neutral:Qa,positive:es,negative:ts,gray:rs,special:as,contrast:ss,container:os,overlay:ns,"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=g.forwardRef(({size:e=24,variant:r="accent",className:a,"data-testid":s="loader",style:i,...n},l)=>{const c=we(Be.loader,Be[r],Be[`size-${e}`],a);return o.jsx("svg",{ref:l,className:c,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...n,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),is=g.forwardRef((e,r)=>{const{loading:a=!1,size:s=24,variant:i="accent",children:n,className:l,style:c,"data-testid":_,...f}=e,p=we(Be.container,l);return o.jsxs("div",{ref:r,className:p,style:c,"data-testid":_,...f,children:[n,a&&o.jsx("div",{className:Be.overlay,children:o.jsx(Wt,{size:s,variant:i,"data-testid":`${_}-spinner`})})]})}),qt=g.forwardRef((e,r)=>e.children?o.jsx(is,{ref:r,...e}):o.jsx(Wt,{ref:r,...e})),ls=({width:e=48,height:r=48,className:a,"data-testid":s})=>o.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: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"})}),cs=g.forwardRef((e,r)=>{const{alt:a="",loading:s="lazy",src:i,isLoading:n=!1,className:l,"data-testid":c="image",onError:_,onLoad:f,...p}=e,[m,y]=g.useState("loading"),b=m==="error",x=(n||m==="loading")&&!b,S=m==="loaded"&&!n,v=we(at.image,{[at.loading]:x},l),w=g.useCallback(j=>{y("loaded"),f==null||f(j)},[f]),u=g.useCallback(j=>{y("error"),_==null||_(j)},[_]),C={loader:o.jsxs(g.Fragment,{children:[o.jsx(qt,{size:48,variant:"special","data-testid":`${c}-loader`}),o.jsx("img",{alt:a,src:i,onLoad:w,onError:u,style:{display:"none"}})]}),error:o.jsx(ls,{"data-testid":`${c}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":c,loading:s,src:i,className:v})};return g.useEffect(()=>{if(!i){y("error");return}y("loading")},[i]),o.jsxs("div",{className:at.container,"data-testid":`${c}-container`,...p,children:[x&&C.loader,b&&C.error,S&&C.image]})}),Ht={},Vt=g.createContext({locale:Ht}),Xt=()=>{const e=g.useContext(Vt);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},ds=()=>{const{locale:e}=Xt();return e},us={},_s={},ps={},fs={},gs={},bs="_base_1p0qo_50",hs="_content_1p0qo_54",ms="_background_1p0qo_58",ys="_button_1p0qo_62",xs="_link_1p0qo_66",vs="_input_1p0qo_70",ws="_suffix_1p0qo_74",Cs="_prefix_1p0qo_78",Ss="_tooltip_1p0qo_82",Ls="_hint_1p0qo_86",js="_dropdown_1p0qo_90",ks="_popover_1p0qo_94",$s="_modalBackdrop_1p0qo_98",Es="_modal_1p0qo_98",Ts="_overlay_1p0qo_106",Rs="_drawer_1p0qo_110",Ns="_notification_1p0qo_114",Is="_alert_1p0qo_118",Ms="_toast_1p0qo_122",Os="_loading_1p0qo_126",As="_error_1p0qo_130",Ps="_critical_1p0qo_134",Bs={base:bs,content:hs,background:ms,button:ys,link:xs,input:vs,suffix:ws,prefix:Cs,tooltip:Ss,hint:Ls,dropdown:js,popover:ks,modalBackdrop:$s,modal:Es,overlay:Ts,drawer:Rs,notification:Ns,alert:Is,toast:Ms,loading:Os,error:As,critical:Ps},zs=({locale:e={},theme:r,children:a,className:s})=>(g.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([n,l])=>{i.style.setProperty(n,l)})}},[r]),o.jsxs(g.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:E.clsx(us,_s,ps,fs,gs,Bs,ie,s)}),o.jsx(Vt.Provider,{value:{locale:e},children:a})]})),Ds={},Fs="_tag_1llsi_1",Ws="_label_1llsi_16",qs="_iconWrapper_1llsi_20",Hs="_medium_1llsi_27",Vs="_large_1llsi_33",Xs="_disabled_1llsi_43",Ys="_neutral_1llsi_47",Zs="_positive_1llsi_53",Gs="_negative_1llsi_59",Us="_warning_1llsi_65",Js="_vivid_1llsi_71",Ks="_special_1llsi_77",Qs="_accent_1llsi_84",eo="_blue_1llsi_90",to="_lovely_1llsi_96",ro="_dreamy_1llsi_102",Le={tag:Fs,label:Ws,iconWrapper:qs,medium:Hs,large:Vs,disabled:Xs,neutral:Ys,positive:Zs,negative:Gs,warning:Us,vivid:Js,special:Ks,accent:Qs,blue:eo,lovely:to,dreamy:ro},ao=g.forwardRef((e,r)=>{const{className:a,children:s,componentStyle:i="neutral",size:n="medium",disabled:l=!1,showLabel:c=!!s,slotStart:_,slotEnd:f,slotStartWrapperProps:p={},slotEndWrapperProps:m={},"data-testid":y}=e,{className:b,...x}=p,{className:S,...v}=m;return o.jsxs("div",{className:E.clsx(Le.tag,Le[n],Le[i],{[Le.disabled]:l,[ie["typography-label-3-regular"]]:n==="medium",[ie["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":y||"tag-component",ref:r,children:[_&&o.jsx("span",{className:E.clsx([Le.iconWrapper,b]),...x,children:_}),c&&o.jsx("span",{className:E.clsx([Le.label]),children:s}),f&&o.jsx("span",{className:E.clsx([Le.iconWrapper,S]),...v,children:f})]})}),so="_checkbox_17txq_43",oo="_input_17txq_64",no="_icon_17txq_72",io="_container_17txq_92",lo="_error_17txq_143",co="_checkboxWrapper_17txq_156",uo="_medium_17txq_211",_o="_large_17txq_216",po="_label_17txq_258",xe={checkbox:so,input:oo,icon:no,container:io,error:lo,checkboxWrapper:co,medium:uo,large:_o,label:po},fo=({width:e=12,height:r=9,className:a="",color:s="currentColor",...i})=>o.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),go=({width:e=12,height:r=2,className:a="",color:s="currentColor",...i})=>o.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),bo={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ho=({size:e,isChecked:r,isDisabled:a,indeterminate:s,dataTestId:i})=>{const{width:n,height:l}=bo[e];return o.jsx("div",{className:xe.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?o.jsx(go,{width:n,height:l}):o.jsx(fo,{width:n,height:l})})},mo=g.forwardRef((e,r)=>{const{name:a,value:s,size:i="medium",indeterminate:n=!1,loading:l=!1,error:c,disabled:_=!1,containerClassName:f,className:p,containerStyle:m,style:y,children:b,clickableLabel:x=!0,tabIndex:S,onChange:v,"data-testid":w="checkbox"}=e,[u,C]=g.useState(!1),j=s??u,T=_||l,$=!!c,R=j||n,A=E.clsx(xe.container,xe[i],f),P=E.clsx(xe.checkbox,xe[i],{[xe.error]:$},p),W=M=>{T||(C(M.target.checked),v==null||v(M.target.checked,M))},H=M=>{if(M.key==="Enter"&&!T){M.preventDefault();const D=!R;C(D),v==null||v(D)}},B=M=>{x||M.preventDefault()},L=M=>M.stopPropagation();return o.jsxs("label",{className:A,htmlFor:a,style:m,"data-testid":w,"data-clickable-label":x,children:[o.jsx("div",{className:xe.checkboxWrapper,children:o.jsxs("div",{tabIndex:S||0,className:P,style:y,onKeyDown:H,"aria-checked":R,"aria-disabled":T,"aria-invalid":$,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:R,disabled:T,className:xe.input,onChange:W,onClick:L,"aria-checked":R,"aria-invalid":$,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${w}-input`}),o.jsx(ho,{name:a,size:i,isChecked:R,isDisabled:T,indeterminate:n,dataTestId:w})]})}),b&&o.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":x,className:xe.label,onClick:B,children:b})]})}),yo="_typography_zt7xg_1",xo="_disabled_zt7xg_8",vo="_primary_zt7xg_13",wo="_secondary_zt7xg_18",Co="_tertiary_zt7xg_23",So="_accent_zt7xg_28",Lo="_positive_zt7xg_38",jo="_negative_zt7xg_48",ko="_warning_zt7xg_58",$o="_special_zt7xg_68",Eo="_contrast_zt7xg_78",Me={typography:yo,disabled:xo,primary:vo,secondary:wo,tertiary:Co,accent:So,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Lo,"positive-secondary":"_positive-secondary_zt7xg_43",negative:jo,"negative-secondary":"_negative-secondary_zt7xg_53",warning:ko,"warning-secondary":"_warning-secondary_zt7xg_63",special:$o,"special-secondary":"_special-secondary_zt7xg_73",contrast:Eo,"contrast-secondary":"_contrast-secondary_zt7xg_83"},To={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Nt=e=>{const r=zt.forwardRef(({size:a=3,children:s,className:i,"data-testid":n,as:l,fontWeight:c="semibold",disabled:_=!1,typographyStyle:f="primary",...p},m)=>{const y=l||To[a],b=E.clsx(Me.typography,ie[`typography-${e}-${a}-${c}`],Me[f],{[Me.disabled]:_},i);return s?o.jsx(y,{ref:m,className:b,"data-testid":n,...p,children:s}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},It=e=>{const r=zt.forwardRef(({size:a=3,children:s,className:i,"data-testid":n,as:l="p",fontWeight:c="regular",disabled:_=!1,typographyStyle:f="primary",...p},m)=>{const y=l,b=E.clsx(Me.typography,ie[`typography-${e}-${a}-${c}`],Me[f],{[Me.disabled]:_},i);return s?o.jsx(y,{ref:m,className:b,"data-testid":n,...p,children:s}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},it={Title:Nt("title"),Subtitle:Nt("subtitle"),Label:It("label"),Paragraph:It("paragraph")},Ro="_base_10oxr_1",No="_content_10oxr_1",Io="_background_10oxr_1",Mo="_button_10oxr_1",Oo="_link_10oxr_1",Ao="_input_10oxr_96",Po="_suffix_10oxr_1",Bo="_prefix_10oxr_1",zo="_tooltip_10oxr_1",Do="_hint_10oxr_794",Fo="_dropdown_10oxr_1",Wo="_popover_10oxr_1",qo="_modalBackdrop_10oxr_1",Ho="_modal_10oxr_1",Vo="_overlay_10oxr_1",Xo="_drawer_10oxr_1",Yo="_notification_10oxr_1",Zo="_alert_10oxr_1",Go="_toast_10oxr_1",Uo="_loading_10oxr_291",Jo="_error_10oxr_252",Ko="_critical_10oxr_1",Qo="_inputBase_10oxr_96",en="_wrapper_10oxr_106",tn="_gripHandle_10oxr_186",rn="_tabFocused_10oxr_259",an="_disabled_10oxr_284",sn="_label_10oxr_301",on="_S_10oxr_315",nn="_M_10oxr_321",ln="_XL_10oxr_328",cn="_leftSection_10oxr_335",dn="_rightSection_10oxr_347",un="_helper_10oxr_385",_n="_floatingLabel_10oxr_415",pn="_focused_10oxr_481",fn="_filled_10oxr_482",gn="_L_10oxr_522",bn="_characterLimit_10oxr_564",hn="_textarea_10oxr_124",mn="_truncate_10oxr_707",I={base:Ro,content:No,background:Io,button:Mo,link:Oo,input:Ao,suffix:Po,prefix:Bo,tooltip:zo,hint:Do,dropdown:Fo,popover:Wo,modalBackdrop:qo,modal:Ho,overlay:Vo,drawer:Xo,notification:Yo,alert:Zo,toast:Go,loading:Uo,error:Jo,critical:Ko,inputBase:Qo,wrapper:en,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:tn,tabFocused:rn,disabled:an,label:sn,S:on,M:nn,XL:ln,leftSection:cn,rightSection:dn,helper:un,floatingLabel:_n,focused:pn,filled:fn,L:gn,characterLimit:bn,textarea:hn,"size-S":"_size-S_10oxr_646","size-M":"_size-M_10oxr_656","size-L":"_size-L_10oxr_662","size-XL":"_size-XL_10oxr_668","with-floating-label":"_with-floating-label_10oxr_675",truncate:mn,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},yn=({width:e=8,height:r=8,className:a,color:s="#AABBCA"})=>o.jsx("svg",{width:e,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})}),Yt=({className:e="",style:r,size:a="md",color:s="currentColor",onClick:i,...n})=>{const c={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:e,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...n,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},xn=(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}},vn=(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 n=a.current.scrollHeight+"px";a.current.style.setProperty("height",n,"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}},wn=(e,r,a,s)=>({handleGripMouseDown:g.useCallback(n=>{if(!e||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const l=n.currentTarget.closest(`.${I.wrapper}`);if(!l)return;const c=n.clientY,_=l.clientHeight,f=m=>{const y=m.clientY-c,b=Math.min(100,_),x=Math.max(b,_+y);l.style.height=`${x}px`},p=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)},[e,r,a,s])}),Mt=30,Cn=g.forwardRef(({component:e="input",size:r="L",value:a="",placeholder:s,disabled:i=!1,loading:n=!1,onFocus:l,onBlur:c,onChange:_,onKeyDown:f,onKeyUp:p,maxLength:m,className:y,style:b,truncate:x=!1,shouldShowFloatingLabelClass:S=!1,"aria-invalid":v,"aria-errormessage":w,id:u,resize:C,...j},T)=>{const{textareaRef:$,inputRef:R,currentRef:A}=xn(a,e);if(vn(a,C,$),g.useImperativeHandle(T,()=>A.current,[A]),e==="textarea")return o.jsx("textarea",{ref:$,id:u,value:a,placeholder:s,disabled:i||n,onFocus:l,onBlur:c,onChange:_,onKeyDown:f,onKeyUp:p,maxLength:m,className:E.clsx(I.textarea,I[`size-${r}`],S&&I["with-floating-label"],y),style:b,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${u}-error`:void 0,tabIndex:0,"data-resize":C,...j});if(e==="input")return o.jsx("input",{ref:R,id:u,value:a,placeholder:s,disabled:i||n,onFocus:l,onBlur:c,onChange:_,onKeyDown:f,onKeyUp:p,maxLength:m,className:E.clsx(I.input,I[`size-${r}`],S&&I["with-floating-label"],x&&I.truncate,y),style:b,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${u}-error`:void 0,tabIndex:0,...j});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Zt=g.forwardRef(({children:e,size:r="L",error:a=!1,disabled:s=!1,loading:i=!1,className:n,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:_,prefixStyles:f,suffixStyles:p,labelProps:m,helperProps:y,showLimit:b=!1,maxLength:x,hint:S,showHint:v=!1,showHintOnEmpty:w=!1,prefix:u,suffix:C,onSuffixClick:j,placeholder:T,showLabel:$=!0,labelClassName:R,hasValue:A=!1,helper:P,id:W,value:H="",resize:B,showGrip:L=!1,...M},D)=>{const q=g.useId(),Y=W||q,Q=v&&S&&(A||w),le=S&&S.length>Mt?S.substring(0,Mt)+"...":S,ae=E.clsx(I.wrapper,I[`size-${r}`],a&&I.error,s&&I.disabled,i&&I.loading,Q&&I["has-hint"],C&&I["has-suffix"],b&&I["has-limit"],n),ee=E.clsx(I.floatingLabel,I[r],A&&I.filled,R),{handleGripMouseDown:te}=wn(L,s,i,B);return o.jsxs("div",{ref:D,className:I.inputBase,"data-testid":"input-base-wrapper",...M,children:[o.jsxs("div",{className:ae,style:c,"data-resize":B,"data-show-grip":L?"true":"false",...l,children:[u&&o.jsx("label",{htmlFor:Y,className:I.leftSection,style:f,children:u}),C&&o.jsx("label",{htmlFor:Y,className:I.rightSection,style:p,onClick:j,children:C}),T&&$&&o.jsx("label",{htmlFor:Y,className:ee,style:_,...m,children:T}),e,L&&!b&&(B==="fixed"||!B)&&o.jsx("div",{className:I.gripHandle,onMouseDown:te,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(yn,{})}),Q&&o.jsx("div",{className:E.clsx(I.hint,A&&I.truncate),"data-disabled":s||i,children:le}),b&&x&&o.jsxs("div",{className:I.characterLimit,children:[(H||"").length," из ",x]})]}),P&&o.jsx("div",{className:E.clsx(I.helper,a&&I.error,(s||i)&&I.disabled),...y,id:a?`${Y}-error`:void 0,children:P})]})});Zt.displayName="InputWrapperComponent";const Ot=Object.assign(Cn,{Wrapper:Zt}),Gt=g.forwardRef(({component:e="input",size:r="L",className:a,error:s=!1,disabled:i=!1,loading:n=!1,placeholder:l,showLabel:c=!0,labelClassName:_,helper:f,prefix:p,suffix:m,id:y,onFocus:b,onBlur:x,onKeyDown:S,onSuffixClick:v,onChange:w,value:u="",wrapperProps:C,wrapperStyles:j,floatingLabelStyles:T,prefixStyles:$,suffixStyles:R,textareaStyles:A,labelProps:P,helperProps:W,showLimit:H=!1,maxLength:B,inputProps:L,hint:M,showHint:D=!1,showHintOnEmpty:q=!1,truncate:Y=!1,resize:Q,showGrip:le=!1,...ae},ee)=>{const te=g.useId(),be=y||te,[Oe,je]=g.useState(u),fe=u!==void 0?u:Oe,ke=(fe||"").length>0,Ce=fe||"",$e=c&&(r==="XL"||e==="textarea")&&!p,Ye=g.useCallback(U=>{var J;i||n||(b==null||b(),(J=L==null?void 0:L.onFocus)==null||J.call(L,U))},[b,L,i,n]),De=g.useCallback(U=>{var J;if(U.key==="Tab"){const ge=U.target.closest(`.${I.wrapper}`);ge&&ge.classList.add(I.tabFocused)}(J=L==null?void 0:L.onKeyUp)==null||J.call(L,U)},[L]),Ze=g.useCallback(U=>{var ge;const J=U.target.closest(`.${I.wrapper}`);J&&J.classList.remove(I.tabFocused),x==null||x(),(ge=L==null?void 0:L.onBlur)==null||ge.call(L,U)},[x,L]),Ge=g.useCallback(U=>{var ge;if(i||n)return;const J=U.target.value;je(J),w==null||w(J,U),(ge=L==null?void 0:L.onChange)==null||ge.call(L,U)},[w,L,i,n]);return g.useEffect(()=>{je(u||"")},[u]),o.jsx(Ot.Wrapper,{ref:ee,size:r,error:s,disabled:i||n,loading:n,className:E.clsx(a,e==="textarea"&&I["textarea-wrapper"]),wrapperProps:C,wrapperStyles:j,floatingLabelStyles:T,prefixStyles:$,suffixStyles:R,labelProps:P,helperProps:W,showLimit:H,maxLength:B,hint:M,showHint:D,showHintOnEmpty:q,prefix:p,suffix:m,onSuffixClick:v,placeholder:l,showLabel:c,labelClassName:_,hasValue:ke,helper:f,id:be,value:Ce,showGrip:le,resize:Q,...ae,children:o.jsx(Ot,{component:e,size:r,value:Ce,placeholder:l,disabled:i,loading:n,onFocus:Ye,onBlur:Ze,onChange:Ge,onKeyDown:S,onKeyUp:De,maxLength:B,truncate:Y,"data-empty":!ke,shouldShowFloatingLabelClass:$e,style:e==="textarea"?A:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${be}-error`:void 0,id:be,resize:Q,...L})})}),V={S:"S",M:"M",L:"L",XL:"XL"},Sn=(e,r,a,s)=>{switch(e){case V.XL:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case V.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case V.M:return"10px 12px 10px 12px";case V.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},Ln=e=>{switch(e){case V.XL:return"56px";case V.L:return"48px";case V.M:return"40px";case V.S:return"32px";default:return"48px"}},jn=e=>{switch(e){case V.S:case V.M:case V.L:return 4;case V.XL:return 8;default:return 8}},kn=e=>{switch(e){case V.S:case V.M:return 8;case V.L:case V.XL:return 12;default:return 12}},$n=(e,r,a,s)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),En=(e,r,a,s)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Tn=(e,r,a,s)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Rn=(e,r,a,s)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Nn=(e,r,a,s)=>{const i=Ln(e),n=Sn(e,r,a,s),l=kn(e),c=jn(e);switch(e){case V.XL:return En(i,n,l,c);case V.L:return Tn(i,n,l,c);case V.M:return Rn(i,n,l,c);case V.S:return $n(i,n,l,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},In=g.forwardRef(({value:e="",onChange:r,type:a="text",placeholder:s,maxLength:i,minLength:n,autoComplete:l,autoFocus:c,size:_=V.L,inputProps:f,error:p,disabled:m,loading:y,helper:b,prefix:x,suffix:S,clearable:v=!1,id:w,showLabel:u=!0,onFocus:C,onBlur:j,onSuffixClick:T,onClear:$,className:R,truncate:A=!0,hint:P,showHint:W=!1,showHintOnEmpty:H=!1,wrapperProps:B,labelProps:L,helperProps:M,...D},q)=>{const Y=(e||"").length>0,Q=_===V.XL,le=!!x,ae=Q&&u&&!x,ee=v&&Y&&!(m||y),te=()=>{r==null||r(""),$==null||$()},be=()=>{ee&&te(),T==null||T()},Oe=ee?o.jsx(Yt,{size:_===V.S||_===V.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):S,je={type:a,minLength:n,autoComplete:l,autoFocus:c,...f},fe=Nn(_,ae,Y,le);return o.jsx(Gt,{size:_,error:p,disabled:m||y,loading:y,helper:b,prefix:x,suffix:Oe,id:w,showLabel:ae,onFocus:C,onBlur:j,onSuffixClick:be,onChange:r,value:e,placeholder:s,className:R,wrapperStyles:fe.wrapperStyles,floatingLabelStyles:fe.floatingLabelStyles,prefixStyles:fe.prefixStyles,suffixStyles:fe.suffixStyles,wrapperProps:B,labelProps:L,helperProps:M,showLimit:!1,maxLength:i,inputProps:je,hint:P,showHint:W,showHintOnEmpty:H,truncate:A,...D})}),de={M:"M",L:"L"},Ve={M:"12px",L:"16px"},Mn={M:"xs",L:"sm"},qe={FILL:"fill",FIXED:"fixed"},st={M:"112px",L:"56px"},Ne={M:"48px",L:"22px"},ye={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},ve={M:48,L:56,XL:112},On=(e,r)=>{if(e===de.M)return st.M;if(r)return`${r}px`;switch(e){case de.L:return st.L;default:return st.L}},An=(e,r)=>{if(e===de.M)return Ne.M;if(r)switch(r){case ve.M:case ve.L:return Ne.L;case ve.XL:return Ne.M;default:return Ne.L}switch(e){case de.L:return Ne.L;default:return Ne.L}},Pn=(e,r,a)=>{if(e===de.M)return ye.M;if(r)switch(r){case ve.M:return ye.L_WITH_PREFIX;case ve.L:return a?ye.L_FLOATING_LABEL:ye.L;case ve.XL:return ye.L;default:return ye.L}switch(e){case de.L:return a?ye.L_FLOATING_LABEL:ye.L;default:return ye.L}},Bn=(e,r)=>{if(e===de.M)return"M";if(r)switch(r){case ve.M:return"M";case ve.L:return"L";case ve.XL:return"L";default:return"L"}return e},zn=e=>Mn[e],Dn=e=>Ve[e],Fn=(e,r,a,s)=>{const i=On(e,r),n=An(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===de.M?Ve.M:Ve.L,transformOrigin:"left top",top:r===112&&a&&e===de.L?Ve.L:void 0},suffixStyles:{right:Dn(e),top:r===48&&e===de.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:n,...s===qe.FILL&&{flex:1,minHeight:0},...s===qe.FIXED&&r&&{height:n}}}},Wn=g.forwardRef(({value:e="",onChange:r,placeholder:a,maxLength:s,minLength:i,autoFocus:n,size:l=de.L,textareaProps:c,error:_,disabled:f,loading:p,helper:m,suffix:y,clearable:b=!1,id:x,showLabel:S=!0,onFocus:v,onBlur:w,onClear:u,onKeyDown:C,className:j,rows:T=1,showLimit:$=!1,wrapperProps:R,labelProps:A,helperProps:P,showGrip:W,minHeight:H,resize:B,...L},M)=>{const D=(e||"").length>0,q=S&&!!a&&(l===de.M||H!==48),Y=b&&D&&!(f||p),Q=()=>{r==null||r(""),u==null||u()},le=()=>{Y&&Q()},ae=Y?o.jsx(Yt,{size:zn(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):y,ee=Fn(l,H,q&&D,B),te=Bn(l,H),be={rows:T,minLength:i,autoFocus:n,resize:B,...c};return o.jsx(Gt,{ref:M,component:"textarea",size:te,error:_,disabled:f||p,loading:p,onSuffixClick:le,helper:m,suffix:ae,id:x,showLabel:q,onFocus:v,onBlur:w,onKeyDown:C,onChange:r,value:e||"",placeholder:a,className:j,"data-floating-label":q,wrapperStyles:ee.wrapperStyles,floatingLabelStyles:ee.floatingLabelStyles,suffixStyles:ee.suffixStyles,textareaStyles:ee.textareaStyles,wrapperProps:R,labelProps:A,helperProps:P,showLimit:$&&(H===112||l===de.M),maxLength:s,inputProps:be,resize:B,showGrip:W,...L})}),qn="_helper_1jq7j_16",ot={helper:qn,"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":n,"aria-label":l,"aria-describedby":c})=>{const _=!!r,f=E.clsx(ot.helper,_&&ot["helper--error"],i&&ot["helper--disabled"],a),p=i?e:r||e;return o.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":l,"aria-describedby":c,children:o.jsx("p",{children:p})})},Vn="_radio_1q34w_54",Xn="_checked_1q34w_75",Yn="_error_1q34w_80",Zn="_disabled_1q34w_89",Gn="_icon_1q34w_125",Un="_small_1q34w_133",Jn="_medium_1q34w_140",Kn="_large_1q34w_147",Qn="_label_1q34w_154",ei="_container_1q34w_180",ti="_input_1q34w_193",ri="_card_1q34w_200",ai="_smallCard_1q34w_206",si="_mediumCard_1q34w_210",oi="_largeCard_1q34w_214",ce={radio:Vn,checked:Xn,error:Yn,disabled:Zn,icon:Gn,small:Un,medium:Jn,large:Kn,label:Qn,container:ei,input:ti,card:ri,smallCard:ai,mediumCard:si,largeCard:oi},ni="radio-container-",ii="radio-label",Ut=g.forwardRef((e,r)=>{const{name:a,id:s,value:i,size:n="large",loading:l=!1,error:c,disabled:_=!1,checked:f=!1,containerClassName:p,className:m,children:y,clickable:b="all",mode:x="default",tabIndex:S,style:v,containerStyle:w,onChange:u,"data-testid":C,...j}=e,T=!!c,$=_||l,R=b==="all",A=x==="card",P=ce[`${n}Card`],W=s??a,H=q=>{$||u==null||u(i,q)},B=q=>{q.key==="Enter"&&!$&&(q.preventDefault(),u==null||u(i))},L=q=>q.stopPropagation(),M=()=>o.jsxs("div",{className:E.clsx(ce.radio,ce[n],{[ce.checked]:f,[ce.disabled]:$,[ce.error]:T&&!$},m),style:v,tabIndex:S||1,"data-testid":`${ni}${W}`,children:[o.jsx("input",{"aria-errormessage":c,"aria-invalid":T,checked:f,className:ce.input,"data-testid":`radio-${W}`,disabled:$,id:W,name:a,ref:r,type:"radio",value:i,onChange:H,onClick:L}),o.jsx("svg",{"data-testid":`radio-icon-${W}`,viewBox:"0 0 8 8",className:ce.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),D=()=>o.jsxs("label",{"aria-checked":f,"aria-disabled":$,"data-testid":R?C:ii,htmlFor:W,style:w,className:E.clsx(ce.label,{[E.clsx(ce.container,ce[x],p)]:R,[P]:R&&A}),onKeyDown:B,...j,children:[M(),R&&y]});return R?D():o.jsxs("div",{className:E.clsx(ce.container,ce[x],p,{[P]:A}),"data-testid":C,children:[D(),y]})}),li="_group_o6mjt_7",ci="_vertical_o6mjt_12",di="_horizontal_o6mjt_16",At={group:li,vertical:ci,horizontal:di},ui=g.forwardRef((e,r)=>{const{id:a,name:s,value:i,options:n,className:l,radioClassName:c,disabled:_=!1,layout:f="vertical","data-testid":p,...m}=e;return o.jsx("div",{className:we(At.group,At[f],l),"data-testid":p??`radio-group-${s}`,id:a,ref:r,children:n.map(({label:y,value:b,disabled:x})=>{const S=`${s}-${String(b)}`,v=String(b)===String(i);return o.jsx(Ut,{id:S,checked:v,"data-testid":S,disabled:_||x,name:s,value:b,className:c,...m,children:y},S)})})}),_i=Object.assign(Ut,{Group:ui}),pi="_root_1jj3e_25",fi="_unordered_1jj3e_39",gi="_ordered_1jj3e_43",bi="_sm_1jj3e_48",hi="_md_1jj3e_59",mi="_lg_1jj3e_70",yi="_xl_1jj3e_81",nt={root:pi,unordered:fi,ordered:gi,sm:bi,md:hi,lg:mi,xl:yi},xi=e=>{const{children:r,className:a,"data-testid":s="list-item"}=e;return o.jsx("li",{"data-testid":s,className:a,children:r})},vi=Object.assign(g.forwardRef((e,r)=>{const{variant:a="unordered",className:s,children:i,size:n="md","data-testid":l="list",...c}=e,_=a==="ordered"?"ol":"ul";return o.jsx(_,{"data-testid":l,ref:r,className:we(nt.root,nt[a],nt[n],s),...a==="ordered"&&c,children:i})}),{Item:xi}),wi="_wrapper_1v8xn_5",Ci="_viewport_1v8xn_12",Si="_mask_1v8xn_26",Li="_maskLeft_1v8xn_37",ji="_maskRight_1v8xn_42",ki="_visible_1v8xn_46",$i="_control_1v8xn_51",Ei="_xs_1v8xn_70",Ti="_sm_1v8xn_73",Ri="_md_1v8xn_76",Ni="_left_1v8xn_80",Ii="_right_1v8xn_83",oe={wrapper:wi,viewport:Ci,mask:Si,maskLeft:Li,maskRight:ji,visible:ki,control:$i,xs:Ei,sm:Ti,md:Ri,left:Ni,right:Ii},Mi="white",Oi=({children:e,withControls:r=!0,className:a,size:s})=>{const i=g.useRef(null),[n,l]=g.useState(!1),[c,_]=g.useState(!1),{ref:f,bgColor:p}=lt(),m=f??{current:null},y=p??Mi,b=r&&n,x=r&&c,S=({direction:u})=>o.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("g",{transform:u==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:o.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),v=()=>{const u=i.current;if(!u)return;const C=Math.round(u.scrollLeft),j=Math.round(u.scrollLeft+u.clientWidth),T=Math.round(u.scrollWidth);l(C>0),_(j<T)},w=u=>{const C=i.current;if(!C)return;const j=C.clientWidth;C.scrollBy({left:u==="left"?-j:j,behavior:"smooth"})};return g.useEffect(()=>{const u=i.current;if(!u)return;const C=j=>{Math.abs(j.deltaX)>Math.abs(j.deltaY)||u.scrollWidth>u.clientWidth&&(j.preventDefault(),u.scrollBy({left:j.deltaY,behavior:"auto"}))};return u.addEventListener("wheel",C,{passive:!1}),()=>u.removeEventListener("wheel",C)},[]),g.useEffect(()=>{v();const u=i.current;if(u)return u.addEventListener("scroll",v,{passive:!0}),window.addEventListener("resize",v),()=>{u.removeEventListener("scroll",v),window.removeEventListener("resize",v)}},[]),o.jsxs("div",{ref:m,className:E.clsx(oe.wrapper,a),children:[b&&o.jsx("div",{className:E.clsx(oe.mask,oe.maskLeft,n&&oe.visible),style:{background:`linear-gradient(to right, ${y} 17%, transparent 80%)`}}),x&&o.jsx("div",{className:E.clsx(oe.mask,oe.maskRight,c&&oe.visible),style:{background:`linear-gradient(to left, ${y} 17%, transparent 80%)`}}),o.jsx("div",{ref:i,className:oe.viewport,children:e}),b&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:E.clsx(oe.control,oe.left,oe[s]),onClick:()=>w("left"),children:o.jsx(S,{direction:"left"})}),x&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:E.clsx(oe.control,oe.right,oe[s]),onClick:()=>w("right"),children:o.jsx(S,{direction:"right"})})]})},Ai="_tabBar_1ndpm_82",Pi="_primary_1ndpm_88",Bi="_secondary_1ndpm_93",zi="_tab_1ndpm_82",Di="_md_1ndpm_125",Fi="_sm_1ndpm_129",Wi="_xs_1ndpm_133",qi="_disabled_1ndpm_137",Hi="_selected_1ndpm_143",Vi="_tabLabel_1ndpm_222",Xi="_tabPrefix_1ndpm_234",Yi="_tabPostfix_1ndpm_270",K={tabBar:Ai,primary:Pi,secondary:Bi,tab:zi,md:Di,sm:Fi,xs:Wi,disabled:qi,selected:Hi,tabLabel:Vi,tabPrefix:Xi,tabPostfix:Yi},Zi="md",Gi=!1,Ui=8,Ji="top-right-inside",Jt=g.createContext(null),Kt=()=>{const e=g.useContext(Jt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},Ki=({children:e,defaultActiveTab:r,activeTab:a,onChange:s})=>{const[i,n]=g.useState(r),l=a!==void 0,c=l?a:i,_=f=>{l||n(f),s&&s(f)};return o.jsx(Jt.Provider,{value:{activeTab:c,setTab:_},children:e})},Qi=({mode:e,item:r,isActive:a,showBadge:s,badgeProps:i,size:n,isDisabled:l,onSelectTab:c})=>{const{value:_,label:f,prefix:p,prefixWrapperProps:m={},postfix:y,postfixWrapperProps:b={}}=r,{className:x,...S}=m,{className:v,...w}=b,u={primary:ie["typography-label-3-medium"],secondary:ie["typography-label-3-regular"],prefix:ie["typography-label-3-medium"],postfix:ie["typography-label-3-medium"]},C={size:Ui,position:Ji,...i},j=E.clsx(K.tab,K[e],K[n],{[K.selected]:a,[K.disabled]:l}),T=E.clsx(K.tabPrefix,x,K[e],u.prefix,{[K.selected]:a,[K.disabled]:l}),$=E.clsx(K.tabPostfix,v,K[e],u.postfix,{[K.selected]:a,[K.disabled]:l}),R=E.clsx(K.tabLabel,K[e],u[e]),A=W=>{a||l||(c(_),W.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},P=o.jsxs("button",{className:j,role:"tab","aria-label":f,"aria-selected":a,"aria-disabled":l,"aria-controls":`tab-panel-${_}`,"data-testid":`tab-item-${_}`,onClick:A,children:[p&&o.jsx("span",{className:T,...S,"data-testid":`tab-prefix-${_}`,children:p}),o.jsx("span",{className:R,"data-testid":`tab-label-${_}`,children:f}),y&&o.jsx("span",{className:$,...w,"data-testid":`tab-postfix-${_}`,children:y})]});return s?o.jsx(Ft,{...C,"data-testid":`tab-badge-${_}`,children:P}):P},el=({mode:e,items:r,size:a=Zi,isAllItemsDisabled:s=Gi})=>{const{activeTab:i,setTab:n}=Kt(),l=Pa();return o.jsx(Oi,{size:a,withControls:l,children:o.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:E.clsx(K.tabBar,K[e]),children:r.map(c=>o.jsx(Qi,{size:a,item:c,mode:e,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:s||c.isDisabled,onSelectTab:n},c.value))})})},tl=({tabValue:e,children:r,...a})=>o.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...a,children:r}),rl=({children:e,...r})=>{const{activeTab:a}=Kt(),s=Array.isArray(e)?e:[e],i=(n,l)=>g.isValidElement(n)&&typeof n.props=="object"&&n.props!==null&&l in n.props;return o.jsx("div",{"data-testid":"tab-content",...r,children:s.map(n=>i(n,"tabValue")&&String(n.props.tabValue)===a?n:null)})},al={Provider:Ki,Content:rl,Panel:tl,Bar:el},sl="_root_1fbbw_34",ol="_open_1fbbw_51",nl="_xs_1fbbw_55",il="_s_1fbbw_61",ll="_m_1fbbw_67",cl="_neutral_1fbbw_73",dl="_contrast_1fbbw_78",ul="_accent_1fbbw_84",_l="_typography_1fbbw_89",pl="_title_1fbbw_89",fl="_text_1fbbw_93",gl="_mediaWrapper_1fbbw_97",bl="_content_1fbbw_112",hl="_closeButton_1fbbw_116",ml="_hasMedia_1fbbw_142",yl="_buttonStack_1fbbw_148",ne={root:sl,open:ol,xs:nl,s:il,m:ll,neutral:cl,contrast:dl,accent:ul,typography:_l,title:pl,text:fl,mediaWrapper:gl,content:bl,closeButton:hl,hasMedia:ml,buttonStack:yl},xl=()=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),vl=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[o.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),o.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),_e={shiftX:64,adjustY:1},pe={adjustX:1,shiftY:!0},wl={left:{points:["cr","cl"],overflow:pe,offset:[-22,0]},right:{points:["cl","cr"],overflow:pe,offset:[22,0]},top:{points:["bc","tc"],overflow:_e,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:_e,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-22,0]},topRight:{points:["br","tr"],overflow:_e,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:pe,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:_e,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:pe,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:pe,offset:[-22,0]}},Cl={left:{points:["cr","cl"],overflow:pe,offset:[-16,0]},right:{points:["cl","cr"],overflow:pe,offset:[16,0]},top:{points:["bc","tc"],overflow:_e,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:_e,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:_e,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:pe,offset:[-16,0]},topRight:{points:["br","tr"],overflow:_e,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:pe,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:_e,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:pe,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:_e,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:pe,offset:[-16,0]}},Sl={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},Ll=(e,r,a)=>{const s=ya(r,1,3),i=Sl[a][s];return i[Math.min(e,i.length-1)]},Pt=({text:e,title:r,media:a,variant:s="neutral",size:i,classNames:n={},onClose:l,buttons:c,buttonProps:_,showClose:f})=>{const p=["neutral","accent"].includes(s)?"contrast":"primary",m=i==="m",y=!!(r&&m),b=!!(a&&m),x=c&&!!c.length,S=!!(f&&m)||!f&&m&&!x,v=i==="xs"?4:3;return o.jsxs("div",{className:ne.content,children:[b&&o.jsx("div",{className:E.clsx(ne.mediaWrapper,n.mediaWrapper),children:a}),o.jsxs("div",{className:n.textWrapper,children:[y&&o.jsx(it.Subtitle,{className:E.clsx(ne.typography,ne.title,n.typography),size:1,as:"h3",typographyStyle:p,children:r}),o.jsx(it.Label,{className:E.clsx(ne.typography,ne.text,n.typography),typographyStyle:p,size:v,children:e})]}),S&&o.jsx("button",{type:"button",className:E.clsx(ne.closeButton,ne[s],n.closeButton,{[ne.hasMedia]:b}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:o.jsx(xl,{})}),m&&x&&o.jsx("div",{className:ne.buttonStack,children:c.map((w,u)=>{const j={...Ll(u,c.length,s),..._,...w},{closeOnClick:T,...$}=j,R=A=>{var P;(P=$.onClick)==null||P.call($,A),T&&(l==null||l())};return o.jsx(Dt,{...$,onClick:R},u)})})]})},jl=({customContent:e,children:r,placement:a="top",contentClassNames:s,mouseEnterDelay:i=0,mouseLeaveDelay:n=.1,showArrow:l=!0,showClose:c=!0,trigger:_="hover",variant:f="neutral",size:p="s",text:m,title:y,media:b,buttons:x,buttonProps:S,onClose:v,...w})=>{const[u,C]=g.useState(!1),[j,T]=g.useState(!1),$=p==="m"?wl:Cl,R=()=>{C(!1),v==null||v()},A=e||(p==="m"?o.jsx(Pt,{classNames:s,text:m,variant:f,size:p,onClose:R,title:y,media:b,showClose:c,buttons:x,buttonProps:S}):o.jsx(Pt,{classNames:s,text:m,variant:f,size:p,onClose:R}));return g.useEffect(()=>{if(u){const P=requestAnimationFrame(()=>T(!0));return()=>cancelAnimationFrame(P)}T(!1)},[u]),o.jsx(vr,{visible:u,onVisibleChange:C,classNames:{root:E.clsx(ne.root,ne[f],ne[p],j&&ne.open),...w.classNames},placement:a,overlay:()=>A,trigger:_,mouseEnterDelay:i,mouseLeaveDelay:n,motion:{motionName:"tooltipMotion"},builtinPlacements:$,showArrow:l?{content:o.jsx(vl,{}),className:`tooltipArrow tooltipArrow-${p}`}:!1,destroyTooltipOnHide:!0,...w,children:r})},kl="_segmentedControl_1yvz7_5",$l="_segment_1yvz7_5",El="_activeSegmentIndicator_1yvz7_51",Tl="_stretched_1yvz7_82",Rl="_s_1yvz7_5",Nl="_icon_1yvz7_90",Il="_label_1yvz7_94",Ml="_m_1yvz7_98",Ol="_l_1yvz7_94",Ie={segmentedControl:kl,segment:$l,activeSegmentIndicator:El,stretched:Tl,s:Rl,icon:Nl,label:Il,m:Ml,l:Ol},Bt={s:ie["typography-label-3-regular"],m:ie["typography-label-2-regular"],l:ie["typography-label-2-regular"]},Al=e=>{var u;const{className:r,defaultValue:a,value:s,size:i="m",segments:n,stretched:l,mode:c="label",onChange:_}=e,f=g.useId(),[p,m]=g.useState(a||n[0].value),[y,b]=g.useState({width:0,left:0}),x=g.useRef(null);g.useEffect(()=>{s&&m(s)},[s]),g.useEffect(()=>{S()},[p,n,i,l,c]);const S=()=>{if(!(x!=null&&x.current))return;const C=x.current.querySelector('[data-is-active-segment="true"]');C&&b({width:C.offsetWidth,left:C.offsetLeft})},v=(u=n.find(C=>C.value===p))==null?void 0:u.label,w=C=>{m(C),_==null||_(C)};return(n==null?void 0:n.length)===0?null:o.jsxs("div",{className:E.clsx(Ie.segmentedControl,Ie[i],Ie[c],{[Ie.stretched]:l},r),"data-testid":"segmented-control-container",ref:x,children:[n==null?void 0:n.map(({label:C,value:j},T)=>{const $=()=>w(j);return o.jsxs(g.Fragment,{children:[o.jsx("input",{id:f+JSON.stringify(j),value:JSON.stringify(j),type:"radio",checked:p===j,onClick:$}),o.jsx("label",{"data-is-active-segment":p===j,className:E.clsx(Ie.segment,Bt[i]),htmlFor:f+JSON.stringify(j),"data-testid":"segmented-control-segment",children:C})]},Xe(JSON.stringify(j))+T)}),o.jsx("div",{className:E.clsx(Ie.activeSegmentIndicator,Bt[i]),"data-testid":"segmented-control-active-segment",style:{width:y.width,left:y.left},children:v})]})};exports.Avatar=Da;exports.Badge=Ft;exports.Button=Dt;exports.Checkbox=mo;exports.ConfigProvider=zs;exports.Helper=Hn;exports.Image=cs;exports.List=vi;exports.Loader=qt;exports.Radio=_i;exports.SegmentedControl=Al;exports.Tabs=al;exports.Tag=ao;exports.TextArea=Wn;exports.TextInput=In;exports.Tooltip=jl;exports.Typography=it;exports.enUS=Ht;exports.ruRU=Ds;exports.useConfig=Xt;exports.useLocale=ds;
34
+ */var Mt;function zn(){return Mt||(Mt=1,function(e){(function(){var r={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,a(c)))}return s}function a(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)r.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(it)),it.exports}var Dn=zn();const Te=Ir(Dn),Yt=h.forwardRef(({size:e=24,variant:r="accent",className:n,"data-testid":a="loader",style:i,...s},l)=>{const c=Te(De.loader,De[r],De[`size-${e}`],n);return o.jsx("svg",{ref:l,className:c,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":a,style:i,...s,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Fn=h.forwardRef((e,r)=>{const{loading:n=!1,size:a=24,variant:i="accent",children:s,className:l,style:c,"data-testid":u,...f}=e,d=Te(De.container,l);return o.jsxs("div",{ref:r,className:d,style:c,"data-testid":u,...f,children:[s,n&&o.jsx("div",{className:De.overlay,children:o.jsx(Yt,{size:a,variant:i,"data-testid":`${u}-spinner`})})]})}),pt=h.forwardRef((e,r)=>e.children?o.jsx(Fn,{ref:r,...e}):o.jsx(Yt,{ref:r,...e})),qn=e=>o.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx("path",{d:"M14 2L2 14M2 2L14 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Wn=({width:e=24,height:r=24,className:n="",color:a="currentColor",...i})=>o.jsx("svg",{className:n,width:e,height:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),Hn={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},Vn=e=>Hn[e]||"typography-subtitle-2-semibold",Bt=({iconRight:e,iconLeft:r,children:n,postfix:a,subcaption:i,size:s,isAsButton:l})=>{const c=!!(i&&l&&s==="l"),u=!!(!n&&l&&r),f=l&&!!(c&&!n&&a||a&&!c);return o.jsxs(h.Fragment,{children:[c&&n&&o.jsxs(h.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:S.clsx(D.label,D.labelText),children:n}),o.jsx("span",{"data-testid":"button-subcaption",className:S.clsx(D.subcaption,U["typography-label-4-regular"]),children:i})]}),!c&&n&&o.jsxs("span",{"data-testid":"button-label",className:D.label,children:[r&&o.jsx("span",{"data-testid":"button-left-icon",className:D.icon,children:r}),o.jsx("span",{className:S.clsx(D.labelText,{[D.isLink]:!l}),children:n}),!l&&e&&o.jsx("span",{"data-testid":"button-icon",className:S.clsx(D.icon,D.iconRight),children:e})]}),u&&o.jsx("span",{"data-testid":"button-icon",className:D.icon,children:l?r:e}),f&&o.jsx("div",{"data-testid":"button-right-group",className:D.rightGroup,children:o.jsx("span",{"data-testid":"button-postfix",className:S.clsx(D.postfix,U["typography-subtitle-2-semibold"]),children:a})})]})},ft=h.forwardRef((e,r)=>{const{mode:n="primary",size:a="m",buttonStyle:i=Nt(e)?"neutral":"accent",disabled:s=!1,className:l,children:c,tabIndex:u}=e,f=n==="tertiary",d=Nt(e),g=zr(e),m=f&&"paddings"in e?e.paddings??!0:!0,b=d?e.subcaption:void 0,w=d?e.postfix:void 0,C=d?e.stretched:void 0,x=!(g&&e.size===void 0),y=g&&x?e.iconLeft:void 0,_=g&&x?e.iconRight:void 0,k=!!(d&&"loading"in e&&e.loading),L=d?s:s||k,E=!L&&!k,T=d?e.iconLeft:void 0,R=!!(!c&&(d&&T&&!w||g&&_)),M=typeof C=="object"?C.justify==="space-between":void 0,O=Vn(a),P=U[O],F=g?Ln(e.size??"m"):void 0,W=F?U[F]:void 0,j=jn(L,n,i),A=L||k?-1:u,H=S.clsx(D.button,D[a],D[n],D[i],g&&W,d&&P,{[D.disabled]:L,[D.loading]:d&&"loading"in e&&e.loading,[D.stretched]:C,[D.spaceBetween]:M,[D.withSubcaption]:!!(b&&a==="l"&&c),[D.iconOnly]:R,[D.link]:g,[D.underline]:g&&"showUnderline"in e&&e.showUnderline,[D.noPaddings]:f&&d&&!m},l),V={iconRight:_,iconLeft:d?T:y,children:c,postfix:w,subcaption:b,size:a,isAsButton:d};if(Or(e)){const{href:X,onClick:K,style:oe,target:re,rel:J,"data-testid":ae,...se}=e,ve=It(se),xe=re??(e.isExternal?"_blank":void 0);let ie=J;if(xe==="_blank"){const ue=new Set((J??"").split(/\s+/).filter(Boolean));ue.add("noopener").add("noreferrer"),ie=Array.from(ue).join(" ")}const je=ue=>{if(!E){ue.preventDefault();return}K==null||K(ue)};return o.jsx("a",{ref:r,className:H,href:E?X:void 0,tabIndex:A,onClick:je,"data-testid":ae,"aria-disabled":L||k,style:oe,target:xe,rel:ie,...ve,children:o.jsx(Bt,{...V})})}if(Pr(e)){const{type:X="button",onClick:K,style:oe,"data-testid":re,...J}=e,ae=It(J),se=a==="l"?24:16,ve=xe=>{E&&K&&K(xe)};return o.jsxs("button",{ref:r,type:X,className:H,disabled:L,tabIndex:A,onClick:ve,"data-testid":re,"aria-disabled":L||k,style:oe,...ae,children:[o.jsx("div",{className:S.clsx(D.content,{[D.contentHidden]:k}),children:o.jsx(Bt,{...V})}),k&&o.jsx("div",{className:D.loaderWrapper,children:o.jsx(pt,{variant:j,"aria-hidden":"true","data-testid":"button-loader",size:se})})]})}return null});ft.displayName="Button";const Gt=h.forwardRef((e,r)=>{const{iconLeft:n,className:a,...i}=e,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:n??o.jsx(Wn,{}),className:S.clsx(D.backButton,U["typography-subtitle-1-semibold"],a)};return o.jsx(ft,{ref:r,...l})});Gt.displayName="Button.Back";const Ue=Object.assign(ft,{Back:Gt}),Zn="_avatar_19ug4_18",Xn="_clickable_19ug4_40",Yn="_icon_19ug4_57",Gn="_disabled_19ug4_62",Un="_loading_19ug4_67",Kn="_image_19ug4_73",Jn="_name_19ug4_73",ye={avatar:Zn,clickable:Xn,icon:Yn,disabled:Gn,loading:Un,image:Kn,name:Jn,"variant-filled":"_variant-filled_19ug4_125","color-brand":"_color-brand_19ug4_130","color-red":"_color-red_19ug4_134","color-orange":"_color-orange_19ug4_138","color-yellow":"_color-yellow_19ug4_142","color-green":"_color-green_19ug4_146","color-blue":"_color-blue_19ug4_150","color-lightblue":"_color-lightblue_19ug4_154","color-purple":"_color-purple_19ug4_158","color-gray":"_color-gray_19ug4_162","color-contrast":"_color-contrast_19ug4_166","variant-light":"_variant-light_19ug4_172","variant-outline":"_variant-outline_19ug4_244"},At=99;function Qn(e){return e<At?`+${e}`:`${At}+`}function Ke(e){const r=typeof e=="string"?e:JSON.stringify(e);let n=5381;for(let a=0;a<r.length;a++){const i=r.charCodeAt(a);n=(n<<5)+n+i}return n>>>0}const eo=(e,r,n)=>Math.min(Math.max(e,r),n),to=["red","orange","yellow","green","blue","lightblue","purple"];function ro(e,r=to){if(!e)return"gray";const n=Ke(e),a=Math.abs(n)%r.length;return r[a]}const Ot=2;function no(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,Ot).toUpperCase():r.map(n=>n[0]).slice(0,Ot).join("").toUpperCase()}const oo={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function ao(e,r){return r==="circle"?e/2:oo[e]||12}const so={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 io(e){return so[e]||"typography-subtitle-1-semibold"}const lo="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",co="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",uo="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",_o="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",po={male:lo,female:co,org:_o,neutral:uo},Ye=h.forwardRef((e,r)=>{const{style:n,size:a=40,isLoading:i=!1,isDisabled:s=!1,shape:l="circle",variant:c="filled",placeholderType:u="neutral",name:f,imgSrc:d,imgAlt:g,icon:m,imgProps:b,colorScheme:w,className:C,"data-testid":x,...y}=e,{onClick:_,onPointerDown:k}=y,E=!s&&!i&&(!!_||!!k),[T,R]=h.useState(!1);h.useEffect(()=>{d&&R(!1)},[d]);const M=d&&!T?"image":m?"icon":f?"name":"placeholder",O=w||M==="name"&&ro(f)||"gray",P=io(a),F=ao(a,l),W=S.clsx(C,ye.avatar,ye[`variant-${c}`],ye[`color-${O}`],U[P],{[ye.disabled]:s,[ye.loading]:i,[ye.clickable]:E}),j={"--avatar-size":`${a}px`,"--avatar-border-radius":`${F}px`,...n},A={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:ye.icon,children:m==null?void 0:m({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:ye.name,title:g||void 0,children:no(f||"")}),placeholder:()=>o.jsx("img",{...b,"data-testid":"avatar-placeholder",className:ye.image,src:po[u],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...b,className:ye.image,src:d||void 0,alt:g||void 0,onLoad:()=>R(!1),onError:V=>{var X;R(!0),(X=b==null?void 0:b.onError)==null||X.call(b,V)}})},H=V=>{E&&(_==null||_(V))};return o.jsx("div",{ref:r,onClick:H,className:W,style:j,"data-testid":x,"aria-disabled":s||i,children:A[M](null)})}),fo="_avatarGroup_157g4_1",go={avatarGroup:fo},ho=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),bo=e=>{if(!e)return null;let r=e;for(;r;){const a=window.getComputedStyle(r).backgroundColor;if(!ho(a))return a;r=r.parentElement}return null},gt=()=>{const e=h.useRef(null),[r,n]=h.useState(null);return h.useEffect(()=>{if(e.current){const a=bo(e.current);n(a)}},[]),{ref:e,bgColor:r}};function Pt(e,r,n){h.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}const zt={passive:!0};function xo(){const[e,r]=h.useState({width:0,height:0}),n=h.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Pt("resize",n,zt),Pt("orientationchange",n,zt),h.useEffect(n,[]),e}function mo(e=768){const{width:r}=xo();return h.useMemo(()=>r<=e,[r,e])}const yo=2,vo=e=>{const{avatars:r=[],size:n=40,overlap:a=.3,shape:i="circle",overflowCount:s=0,overflowProps:l,cutoutBackground:c}=e,f=-(n*a)+yo,{ref:d,bgColor:g}=gt(),m=c||g||"#ffffff",b=Te(go.avatarGroup),w={"--avatar-cutout-bg":m};return r.length===0?null:o.jsxs("div",{className:b,ref:d,style:w,children:[r.map((C,x)=>{if(C.wrapper){const y=C.wrapper;return o.jsx("div",{style:{marginRight:f},children:o.jsx(y,{children:o.jsx(Ye,{size:n,shape:i,...C})})},Ke(C)+x)}return o.jsx("div",{style:{marginRight:f},children:o.jsx(Ye,{size:n,shape:i,...C})},Ke(C)+x)}),s>0&&o.jsx("div",{style:{marginRight:f},children:o.jsx(Ye,{size:n,shape:i,icon:()=>Qn(s),colorScheme:"gray",variant:"light",...l})})]})},Ut=Object.assign(Ye,{Group:vo}),Co="_overlay_g6rp8_6",wo="_container_g6rp8_20",lt={overlay:Co,container:wo,"placement-default":"_placement-default_g6rp8_34","placement-default-stretched":"_placement-default-stretched_g6rp8_41","placement-center":"_placement-center_g6rp8_48","placement-center-stretched":"_placement-center-stretched_g6rp8_54","placement-left-drawer":"_placement-left-drawer_g6rp8_62","placement-right-drawer":"_placement-right-drawer_g6rp8_66","placement-mobile":"_placement-mobile_g6rp8_71"};function ko(e){switch(e){case"default":return"top";case"mobile":return"bottom";case"center":default:return}}const So=e=>{switch(e){case"mobile":return{initial:{transform:"translateY(100%)"},open:{opacity:1,transform:"translateY(0)"},close:{transform:"translateY(100%)"}};case"right-drawer":return{initial:{transform:"translateX(100%)"},open:{opacity:1,transform:"translateX(0)"},close:{transform:"translateX(100%)"}};case"left-drawer":return{initial:{transform:"translateX(-100%)"},open:{opacity:1,transform:"translateX(0)"},close:{transform:"translateX(-100%)"}};default:return{initial:{transform:"scale(0.95)"},open:{opacity:1,transform:"scale(1)"},close:{transform:"scale(0.95)"}}}};function Lo({open:e,onOpenChange:r,placement:n="center",disableOutsideClick:a=!1,disableEscapeKey:i=!1}){const s=h.useCallback(C=>{r==null||r(C)},[r]),l=ko(n),{context:c,refs:u}=Se.useFloating({open:e,onOpenChange:s,placement:l}),f=So(n),{isMounted:d,styles:g}=Se.useTransitionStyles(c,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:l,position:"fixed",opacity:0},...f}),m=Se.useDismiss(c,{outsidePress:!a,outsidePressEvent:"mousedown",escapeKey:!i}),b=Se.useRole(c,{role:"dialog"}),{getFloatingProps:w}=Se.useInteractions([m,b]);return h.useMemo(()=>({isMounted:d,transitionStyles:g,context:c,refs:u,getFloatingProps:w}),[d,g,c,u,w])}const Kt=h.forwardRef((e,r)=>{const{placement:n="default",open:a,onOpenChange:i,overlayClassName:s,children:l,disableOutsideClick:c=!1,disableEscapeKey:u=!1,className:f,style:d,"data-testid":g,...m}=e;a===void 0&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const b=Lo({open:a,onOpenChange:i,placement:n,disableOutsideClick:c,disableEscapeKey:u}),{isMounted:w,transitionStyles:C}=b,x=Se.useMergeRefs([r,b.refs.setFloating]);return w?o.jsxs(Se.FloatingPortal,{children:[o.jsx(Se.FloatingOverlay,{"data-testid":"dialog-overlay",className:S.clsx(lt.overlay,s),lockScroll:!0,style:{opacity:C==null?void 0:C.opacity,transition:C==null?void 0:C.transition}}),o.jsx(Se.FloatingFocusManager,{context:b.context,children:o.jsx("div",{ref:x,"aria-modal":"true",role:"dialog",className:S.clsx(f,lt.container,lt[`placement-${n}`]),style:{...d,...C},"data-testid":g,...b.getFloatingProps(m),children:l})})]}):null}),jo="_container_e56bn_5",$o="_header_e56bn_22",To="_title_e56bn_32",Eo="_subTitle_e56bn_36",Ro="_actions_e56bn_40",No="_content_e56bn_62",Io="_footer_e56bn_75",Mo="_divider_e56bn_82",ge={container:jo,header:$o,title:To,subTitle:Eo,actions:Ro,"title-text":"_title-text_e56bn_46","description-text":"_description-text_e56bn_54",content:No,"content-for-side-drawer":"_content-for-side-drawer_e56bn_69",footer:Io,divider:Mo},Bo="_typography_zt7xg_1",Ao="_disabled_zt7xg_8",Oo="_primary_zt7xg_13",Po="_secondary_zt7xg_18",zo="_tertiary_zt7xg_23",Do="_accent_zt7xg_28",Fo="_positive_zt7xg_38",qo="_negative_zt7xg_48",Wo="_warning_zt7xg_58",Ho="_special_zt7xg_68",Vo="_contrast_zt7xg_78",Ae={typography:Bo,disabled:Ao,primary:Oo,secondary:Po,tertiary:zo,accent:Do,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Fo,"positive-secondary":"_positive-secondary_zt7xg_43",negative:qo,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Wo,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ho,"special-secondary":"_special-secondary_zt7xg_73",contrast:Vo,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Zo={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Dt=e=>{const r=Xt.forwardRef(({size:n=3,children:a,className:i,"data-testid":s,as:l,fontWeight:c="semibold",disabled:u=!1,typographyStyle:f="primary",...d},g)=>{const m=l||Zo[n],b=S.clsx(Ae.typography,U[`typography-${e}-${n}-${c}`],Ae[f],{[Ae.disabled]:u},i);return a?o.jsx(m,{ref:g,className:b,"data-testid":s,...d,children:a}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},Ft=e=>{const r=Xt.forwardRef(({size:n=3,children:a,className:i,"data-testid":s,as:l="p",fontWeight:c="regular",disabled:u=!1,typographyStyle:f="primary",...d},g)=>{const m=l,b=S.clsx(Ae.typography,U[`typography-${e}-${n}-${c}`],Ae[f],{[Ae.disabled]:u},i);return a?o.jsx(m,{ref:g,className:b,"data-testid":s,...d,children:a}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},Je={Title:Dt("title"),Subtitle:Dt("subtitle"),Label:Ft("label"),Paragraph:Ft("paragraph")},{Paragraph:Xo,Title:Yo}=Je,Go=["right-drawer","left-drawer"],Uo=e=>{const{closeButtonProps:r,onOpenChange:n}=e,{wrapper:a,...i}=r||{},s={size:"xs",mode:"primary",buttonStyle:"gray",iconLeft:o.jsx(qn,{}),"aria-label":"Close modal",onClick:()=>n(!1),...i};return a?o.jsx(a,{children:o.jsx(Ue,{...s})}):o.jsx(Ue,{...s})},Ko=h.forwardRef((e,r)=>{const{open:n,onOpenChange:a,size:i,placement:s="default",showCloseButton:l=!0,closeButtonProps:c,title:u,subTitle:f,actions:d,children:g,footer:m,hideHeaderDivider:b,hideFooterDivider:w,className:C,classNames:x,styles:y,..._}=e,k=Go.includes(s),L=!!(u||f||d);return o.jsx(Kt,{open:n,onOpenChange:a,placement:s,ref:r,style:{width:i},..._,children:o.jsxs("div",{className:S.clsx(ge.container,C,x==null?void 0:x.container),style:{width:i,...y==null?void 0:y.container},"data-testid":_["data-testid"]?`${_["data-testid"]}-container`:void 0,children:[L&&o.jsxs("div",{className:ge.header,children:[o.jsx("div",{className:S.clsx(ge.title,x==null?void 0:x.title),style:y==null?void 0:y.title,children:typeof u=="string"?o.jsx(Yo,{size:5,className:ge["title-text"],children:u}):u}),o.jsxs("div",{className:ge.actions,children:[d,l&&o.jsx(Uo,{closeButtonProps:c,onOpenChange:a})]}),f&&o.jsx("div",{className:S.clsx(ge.subTitle,x==null?void 0:x.subTitle),style:y==null?void 0:y.subTitle,children:typeof f=="string"?o.jsx(Xo,{size:2,typographyStyle:"secondary",className:ge["description-text"],children:f}):f})]}),!b&&L&&o.jsx("hr",{className:ge.divider}),o.jsx("div",{className:S.clsx(k?ge["content-for-side-drawer"]:ge.content,x==null?void 0:x.content),style:{...y==null?void 0:y.content},"data-testid":_["data-testid"]?`${_["data-testid"]}-content`:void 0,children:g}),!w&&m&&o.jsx("hr",{className:ge.divider}),m&&o.jsx("div",{className:S.clsx(ge.footer,x==null?void 0:x.footer),style:y==null?void 0:y.footer,children:m})]})})}),Jo=()=>o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9H12.01C12.5623 9 13.01 8.55228 13.01 8C13.01 7.44772 12.5623 7 12.01 7H12ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V12Z"})}),Qo=()=>o.jsx("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M5.09436 10.2288C5.03221 9.82823 4.99996 9.41786 4.99996 9C4.99996 4.58172 8.60525 1 13.0526 1C17.4999 1 21.1052 4.58172 21.1052 9C21.1052 9.99807 20.9213 10.9535 20.5852 11.8345C20.5154 12.0175 20.4804 12.109 20.4646 12.1804C20.4489 12.2512 20.4428 12.301 20.4411 12.3735C20.4394 12.4466 20.4493 12.5272 20.4692 12.6883L20.8717 15.9585C20.9153 16.3125 20.9371 16.4895 20.8782 16.6182C20.8266 16.731 20.735 16.8205 20.6211 16.8695C20.4911 16.9254 20.3146 16.8995 19.9617 16.8478L16.7765 16.3809C16.6101 16.3565 16.527 16.3443 16.4512 16.3448C16.3763 16.3452 16.3245 16.3507 16.2511 16.3661C16.177 16.3817 16.0823 16.4172 15.893 16.4881C15.0097 16.819 14.0524 17 13.0526 17C12.6344 17 12.2237 16.9683 11.8227 16.9073M6.63158 21C9.59648 21 12 18.5376 12 15.5C12 12.4624 9.59648 10 6.63158 10C3.66668 10 1.26316 12.4624 1.26316 15.5C1.26316 16.1106 1.36028 16.6979 1.53955 17.2467C1.61533 17.4787 1.65322 17.5947 1.66566 17.6739C1.67864 17.7567 1.68091 17.8031 1.67608 17.8867C1.67145 17.9668 1.65141 18.0573 1.61134 18.2383L1 21L3.9948 20.591C4.15827 20.5687 4.24 20.5575 4.31137 20.558C4.38652 20.5585 4.42641 20.5626 4.50011 20.5773C4.5701 20.5912 4.67416 20.6279 4.88227 20.7014C5.43059 20.8949 6.01911 21 6.63158 21Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ea=()=>o.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11C22 17.0751 17.0751 22 11 22C4.92487 22 0 17.0751 0 11ZM16.2071 7.29289C16.5976 7.68342 16.5976 8.31658 16.2071 8.70711L10.2071 14.7071C9.81658 15.0976 9.18342 15.0976 8.79289 14.7071L5.79289 11.7071C5.40237 11.3166 5.40237 10.6834 5.79289 10.2929C6.18342 9.90237 6.81658 9.90237 7.20711 10.2929L9.5 12.5858L14.7929 7.29289C15.1834 6.90237 15.8166 6.90237 16.2071 7.29289Z"})}),ta=()=>o.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0C4.92487 0 0 4.92487 0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11C22 4.92487 17.0751 0 11 0ZM12 7C12 6.44772 11.5523 6 11 6C10.4477 6 10 6.44772 10 7V11C10 11.5523 10.4477 12 11 12C11.5523 12 12 11.5523 12 11V7ZM11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16H11.01C11.5623 16 12.01 15.5523 12.01 15C12.01 14.4477 11.5623 14 11.01 14H11Z"})}),ra=()=>o.jsx("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.556 0.392576C9.99433 0.136202 10.4918 0 11 0C11.5082 0 12.0057 0.136202 12.444 0.392576C12.882 0.648777 13.2446 1.01526 13.5002 1.45305L13.503 1.45776L21.6098 15.5175L21.6175 15.5312C21.8676 15.9811 21.9986 16.4885 22 17.0032C22.0014 17.5179 21.8731 18.026 21.6255 18.4773C21.3778 18.9288 21.018 19.3098 20.5781 19.5786C20.1379 19.8477 19.6345 19.994 19.1182 19.9999L19.1068 20.0001L2.88178 20C2.36548 19.9941 1.86205 19.8477 1.4219 19.5786C0.982049 19.3098 0.62222 18.9288 0.374484 18.4773C0.126864 18.026 -0.00137604 17.5179 1.1135e-05 17.0032C0.00139837 16.4885 0.132377 15.9811 0.382473 15.5312L0.390218 15.5175L8.49974 1.45305C8.75537 1.01525 9.11797 0.648777 9.556 0.392576ZM12 7.06811C12 6.51582 11.5523 6.06811 11 6.06811C10.4477 6.06811 10 6.51582 10 7.06811V11.0454C10 11.5977 10.4477 12.0454 11 12.0454C11.5523 12.0454 12 11.5977 12 11.0454V7.06811ZM11 14.0227C10.4477 14.0227 10 14.4704 10 15.0227C10 15.575 10.4477 16.0227 11 16.0227H11.0096C11.5619 16.0227 12.0096 15.575 12.0096 15.0227C12.0096 14.4704 11.5619 14.0227 11.0096 14.0227H11Z"})}),Ve={avatar:{icon:null,colorScheme:"gray"},info:{icon:Jo,colorScheme:"gray"},success:{icon:ea,colorScheme:"green"},warning:{icon:ra,colorScheme:"yellow"},error:{icon:ta,colorScheme:"red"},dialog:{icon:Qo,colorScheme:"blue"}},na="_container_dd9oq_1",oa={container:na},aa="_container_r24j4_1",sa="_iconContainer_r24j4_11",ia="_textContainer_r24j4_18",la="_title_r24j4_27",ca="_subtitle_r24j4_27",ze={container:aa,iconContainer:sa,textContainer:ia,title:la,subtitle:ca},Ze={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function da(e){return(Ze==null?void 0:Ze[e])||Ze.m}const Jt=e=>{const{iconSlot:r,title:n,subTitle:a,titleProps:i,subTitleProps:s,className:l,children:c,"data-testid":u,size:f="m",style:d}=e,g=da(f);return o.jsxs("div",{className:S.clsx(ze.container,l),"data-testid":u,style:d,children:[!!r&&o.jsx("div",{className:ze.iconContainer,children:r}),(n||a)&&o.jsxs("div",{className:ze.textContainer,children:[n&&o.jsx("p",{style:i==null?void 0:i.style,className:S.clsx(ze.title,U[g.title],i==null?void 0:i.className),children:n}),a&&o.jsx("p",{style:s==null?void 0:s.style,className:S.clsx(ze.subtitle,U[g.subtitle],s==null?void 0:s.className),children:a})]}),c]})},ua=e=>{const{open:r,onOpenChange:n,placement:a="default",variant:i="info",title:s,description:l,children:c,variantAvatarProps:u,"data-testid":f}=e,{icon:d,colorScheme:g}=(Ve==null?void 0:Ve[i])||Ve.info,b=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",...u}:{size:48,icon:d,colorScheme:g,variant:"light",style:{fontSize:24,outline:"none"},"data-testid":"alert-icon"};return o.jsx(Kt,{open:r,onOpenChange:n,placement:a,"data-testid":f,className:oa.container,children:o.jsx(Jt,{title:s,subTitle:l,size:"m",iconSlot:o.jsx(Ut,{...b}),children:c})})},_a="_wrapper_ecbsu_5",pa="_badge__container_ecbsu_6",fa="_badge__content_ecbsu_7",ga="_interactive_ecbsu_20",ha="_disabled_ecbsu_21",ba="_icon_ecbsu_22",Ce={wrapper:_a,badge__container:pa,badge__content:fa,interactive:ga,disabled:ha,icon:ba,"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"},Qt=h.forwardRef((e,r)=>{const{icon:n,children:a,variant:i="filled",label:s,isHidden:l=!1,colorScheme:c="red",size:u=20,position:f="top-right",positionOffset:d={x:0,y:0},cutoutBackground:g,isDisabled:m,className:b,"data-testid":w="badge",...C}=e,{onClick:x,onPointerDown:y}=C,{ref:_,bgColor:k}=gt(),L=g||k,T=!m&&(!!x||!!y),R=Te(Ce.badge__container,Ce[`position-${f}`]),M=Te(b,Ce.badge__content,Ce[`color-${c}`],Ce[`variant-${i}`],{[Ce.disabled]:m,[Ce.icon]:!!n,[Ce.interactive]:T}),O={"--badge-height":`${u}px`,"--badge-offset-x":`${d.x}px`,"--badge-offset-y":`${d.y}px`,...L&&{"--badge-cutout-bg":L},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},P=(n==null?void 0:n({}))||s,F=W=>{T&&(x==null||x(W))};return o.jsxs("div",{className:Ce.wrapper,ref:_,"data-testid":w+"-wrapper",children:[a,!l&&o.jsx("span",{className:R,style:O,"data-testid":w+"-container",children:o.jsx("span",{...C,onClick:F,className:M,"data-testid":w+"-content",ref:r,"aria-disabled":m,children:P})})]})}),xa="_container_op5yl_7",ma="_image_op5yl_22",ya="_loading_op5yl_34",ct={container:xa,image:ma,loading:ya},va=({width:e=48,height:r=48,className:n,"data-testid":a})=>o.jsx("svg",{width:e,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"data-testid":a,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"})}),Ca=h.forwardRef((e,r)=>{const{alt:n="",loading:a="lazy",src:i,isLoading:s=!1,className:l,"data-testid":c="image",onError:u,onLoad:f,...d}=e,[g,m]=h.useState("loading"),b=g==="error",w=(s||g==="loading")&&!b,C=g==="loaded"&&!s,x=Te(ct.image,{[ct.loading]:w},l),y=h.useCallback(L=>{m("loaded"),f==null||f(L)},[f]),_=h.useCallback(L=>{m("error"),u==null||u(L)},[u]),k={loader:o.jsxs(h.Fragment,{children:[o.jsx(pt,{size:48,variant:"special","data-testid":`${c}-loader`}),o.jsx("img",{alt:n,src:i,onLoad:y,onError:_,style:{display:"none"}})]}),error:o.jsx(va,{"data-testid":`${c}-fallback`}),image:o.jsx("img",{ref:r,alt:n,"data-testid":c,loading:a,src:i,className:x})};return h.useEffect(()=>{if(!i){m("error");return}m("loading")},[i]),o.jsxs("div",{className:ct.container,"data-testid":`${c}-container`,...d,children:[w&&k.loader,b&&k.error,C&&k.image]})}),er={},tr=h.createContext({locale:er}),rr=()=>{const e=h.useContext(tr);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},wa=()=>{const{locale:e}=rr();return e},ka={},Sa={},La={},ja={},$a={},Ta="_base_1p0qo_50",Ea="_content_1p0qo_54",Ra="_background_1p0qo_58",Na="_button_1p0qo_62",Ia="_link_1p0qo_66",Ma="_input_1p0qo_70",Ba="_suffix_1p0qo_74",Aa="_prefix_1p0qo_78",Oa="_tooltip_1p0qo_82",Pa="_hint_1p0qo_86",za="_dropdown_1p0qo_90",Da="_popover_1p0qo_94",Fa="_modalBackdrop_1p0qo_98",qa="_modal_1p0qo_98",Wa="_overlay_1p0qo_106",Ha="_drawer_1p0qo_110",Va="_notification_1p0qo_114",Za="_alert_1p0qo_118",Xa="_toast_1p0qo_122",Ya="_loading_1p0qo_126",Ga="_error_1p0qo_130",Ua="_critical_1p0qo_134",Ka={base:Ta,content:Ea,background:Ra,button:Na,link:Ia,input:Ma,suffix:Ba,prefix:Aa,tooltip:Oa,hint:Pa,dropdown:za,popover:Da,modalBackdrop:Fa,modal:qa,overlay:Wa,drawer:Ha,notification:Va,alert:Za,toast:Xa,loading:Ya,error:Ga,critical:Ua},Ja=({locale:e={},theme:r,children:n,className:a})=>(h.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([s,l])=>{i.style.setProperty(s,l)})}},[r]),o.jsxs(h.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:S.clsx(ka,Sa,La,ja,$a,Ka,U,a)}),o.jsx(tr.Provider,{value:{locale:e},children:n})]})),Qa={},es="_tag_1llsi_1",ts="_label_1llsi_16",rs="_iconWrapper_1llsi_20",ns="_medium_1llsi_27",os="_large_1llsi_33",as="_disabled_1llsi_43",ss="_neutral_1llsi_47",is="_positive_1llsi_53",ls="_negative_1llsi_59",cs="_warning_1llsi_65",ds="_vivid_1llsi_71",us="_special_1llsi_77",_s="_accent_1llsi_84",ps="_blue_1llsi_90",fs="_lovely_1llsi_96",gs="_dreamy_1llsi_102",Re={tag:es,label:ts,iconWrapper:rs,medium:ns,large:os,disabled:as,neutral:ss,positive:is,negative:ls,warning:cs,vivid:ds,special:us,accent:_s,blue:ps,lovely:fs,dreamy:gs},hs=h.forwardRef((e,r)=>{const{className:n,children:a,componentStyle:i="neutral",size:s="medium",disabled:l=!1,showLabel:c=!!a,slotStart:u,slotEnd:f,slotStartWrapperProps:d={},slotEndWrapperProps:g={},"data-testid":m,...b}=e,{className:w,...C}=d,{className:x,...y}=g;return o.jsxs("div",{className:S.clsx(Re.tag,Re[s],Re[i],{[Re.disabled]:l,[U["typography-label-3-regular"]]:s==="medium",[U["typography-subtitle-1-semibold"]]:s==="large"},n),"data-testid":m||"tag-component",ref:r,...b,children:[u&&o.jsx("span",{className:S.clsx([Re.iconWrapper,w]),...C,children:u}),c&&o.jsx("span",{className:S.clsx([Re.label]),children:a}),f&&o.jsx("span",{className:S.clsx([Re.iconWrapper,x]),...y,children:f})]})}),bs="_checkbox_17txq_43",xs="_input_17txq_64",ms="_icon_17txq_72",ys="_container_17txq_92",vs="_error_17txq_143",Cs="_checkboxWrapper_17txq_156",ws="_medium_17txq_211",ks="_large_17txq_216",Ss="_label_17txq_258",ke={checkbox:bs,input:xs,icon:ms,container:ys,error:vs,checkboxWrapper:Cs,medium:ws,large:ks,label:Ss},Ls=({width:e=12,height:r=9,className:n="",color:a="currentColor",...i})=>o.jsx("svg",{className:n,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:a})}),js=({width:e=12,height:r=2,className:n="",color:a="currentColor",...i})=>o.jsx("svg",{className:n,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:a})}),$s={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Ts=({size:e,isChecked:r,isDisabled:n,indeterminate:a,dataTestId:i})=>{const{width:s,height:l}=$s[e];return o.jsx("div",{className:ke.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":n,"data-indeterminate":a,children:a?o.jsx(js,{width:s,height:l}):o.jsx(Ls,{width:s,height:l})})},Es=h.forwardRef((e,r)=>{const{name:n,value:a,size:i="medium",indeterminate:s=!1,loading:l=!1,error:c,disabled:u=!1,containerClassName:f,className:d,containerStyle:g,style:m,children:b,clickableLabel:w=!0,tabIndex:C,onChange:x,"data-testid":y="checkbox"}=e,[_,k]=h.useState(!1),L=a??_,E=u||l,T=!!c,R=L||s,M=S.clsx(ke.container,ke[i],f),O=S.clsx(ke.checkbox,ke[i],{[ke.error]:T},d),P=A=>{E||(k(A.target.checked),x==null||x(A.target.checked,A))},F=A=>{if(A.key==="Enter"&&!E){A.preventDefault();const H=!R;k(H),x==null||x(H)}},W=A=>{w||A.preventDefault()},j=A=>A.stopPropagation();return o.jsxs("label",{className:M,htmlFor:n,style:g,"data-testid":y,"data-clickable-label":w,children:[o.jsx("div",{className:ke.checkboxWrapper,children:o.jsxs("div",{tabIndex:C||0,className:O,style:m,onKeyDown:F,"aria-checked":R,"aria-disabled":E,"aria-invalid":T,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${y}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:n,name:n,checked:R,disabled:E,className:ke.input,onChange:P,onClick:j,"aria-checked":R,"aria-invalid":T,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${y}-input`}),o.jsx(Ts,{name:n,size:i,isChecked:R,isDisabled:E,indeterminate:s,dataTestId:y})]})}),b&&o.jsx("span",{"data-testid":`${y}-label-text`,"data-clickable-label":w,className:ke.label,onClick:W,children:b})]})}),Rs="_base_10oxr_1",Ns="_content_10oxr_1",Is="_background_10oxr_1",Ms="_button_10oxr_1",Bs="_link_10oxr_1",As="_input_10oxr_96",Os="_suffix_10oxr_1",Ps="_prefix_10oxr_1",zs="_tooltip_10oxr_1",Ds="_hint_10oxr_794",Fs="_dropdown_10oxr_1",qs="_popover_10oxr_1",Ws="_modalBackdrop_10oxr_1",Hs="_modal_10oxr_1",Vs="_overlay_10oxr_1",Zs="_drawer_10oxr_1",Xs="_notification_10oxr_1",Ys="_alert_10oxr_1",Gs="_toast_10oxr_1",Us="_loading_10oxr_291",Ks="_error_10oxr_252",Js="_critical_10oxr_1",Qs="_inputBase_10oxr_96",ei="_wrapper_10oxr_106",ti="_gripHandle_10oxr_186",ri="_tabFocused_10oxr_259",ni="_disabled_10oxr_284",oi="_label_10oxr_301",ai="_S_10oxr_315",si="_M_10oxr_321",ii="_XL_10oxr_328",li="_leftSection_10oxr_335",ci="_rightSection_10oxr_347",di="_helper_10oxr_385",ui="_floatingLabel_10oxr_415",_i="_focused_10oxr_481",pi="_filled_10oxr_482",fi="_L_10oxr_522",gi="_characterLimit_10oxr_564",hi="_textarea_10oxr_124",bi="_truncate_10oxr_707",I={base:Rs,content:Ns,background:Is,button:Ms,link:Bs,input:As,suffix:Os,prefix:Ps,tooltip:zs,hint:Ds,dropdown:Fs,popover:qs,modalBackdrop:Ws,modal:Hs,overlay:Vs,drawer:Zs,notification:Xs,alert:Ys,toast:Gs,loading:Us,error:Ks,critical:Js,inputBase:Qs,wrapper:ei,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:ti,tabFocused:ri,disabled:ni,label:oi,S:ai,M:si,XL:ii,leftSection:li,rightSection:ci,helper:di,floatingLabel:ui,focused:_i,filled:pi,L:fi,characterLimit:gi,textarea:hi,"size-S":"_size-S_10oxr_646","size-M":"_size-M_10oxr_656","size-L":"_size-L_10oxr_662","size-XL":"_size-XL_10oxr_668","with-floating-label":"_with-floating-label_10oxr_675",truncate:bi,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},xi=({width:e=8,height:r=8,className:n,color:a="#AABBCA"})=>o.jsx("svg",{width:e,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,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:a})}),nr=({className:e="",style:r,size:n="md",color:a="currentColor",onClick:i,...s})=>{const c={display:"inline-block",color:a,...{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"}}[n],...r};return o.jsx("svg",{className:e,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...s,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},mi=(e,r)=>{const n=h.useRef(null),a=h.useRef(null);return h.useEffect(()=>{const i=r==="textarea"?n.current:a.current;i&&i.value!==e&&(i.value=e||"")},[e,r]),{textareaRef:n,inputRef:a,currentRef:r==="textarea"?n:a}},yi=(e,r,n)=>{const a=()=>{if(!n.current||r!=="hug")return;const i=n.current.scrollTop;if(n.current.style.setProperty("height","auto","important"),!e)return;const s=n.current.scrollHeight+"px";n.current.style.setProperty("height",s,"important"),n.current.scrollTop=i;const l=n.current.closest(`.${I.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return h.useEffect(a,[e,r]),h.useEffect(()=>{r==="hug"&&n.current&&a()},[]),{resizeTextArea:a}},vi=(e,r,n,a)=>({handleGripMouseDown:h.useCallback(s=>{if(!e||r||n||!(a==="fixed"||!a))return;s.preventDefault(),s.stopPropagation();const l=s.currentTarget.closest(`.${I.wrapper}`);if(!l)return;const c=s.clientY,u=l.clientHeight,f=g=>{const m=g.clientY-c,b=Math.min(100,u),w=Math.max(b,u+m);l.style.height=`${w}px`},d=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",d)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",d)},[e,r,n,a])}),qt=30,Ci=h.forwardRef(({component:e="input",size:r="L",value:n="",placeholder:a,disabled:i=!1,loading:s=!1,onFocus:l,onBlur:c,onChange:u,onKeyDown:f,onKeyUp:d,maxLength:g,className:m,style:b,truncate:w=!1,shouldShowFloatingLabelClass:C=!1,"aria-invalid":x,"aria-errormessage":y,id:_,resize:k,...L},E)=>{const{textareaRef:T,inputRef:R,currentRef:M}=mi(n,e);if(yi(n,k,T),h.useImperativeHandle(E,()=>M.current,[M]),e==="textarea")return o.jsx("textarea",{ref:T,id:_,value:n,placeholder:a,disabled:i||s,onFocus:l,onBlur:c,onChange:u,onKeyDown:f,onKeyUp:d,maxLength:g,className:S.clsx(I.textarea,I[`size-${r}`],C&&I["with-floating-label"],m),style:b,"aria-invalid":x,"aria-errormessage":y,"aria-describedby":y?`${_}-error`:void 0,tabIndex:0,"data-resize":k,...L});if(e==="input")return o.jsx("input",{ref:R,id:_,value:n,placeholder:a,disabled:i||s,onFocus:l,onBlur:c,onChange:u,onKeyDown:f,onKeyUp:d,maxLength:g,className:S.clsx(I.input,I[`size-${r}`],C&&I["with-floating-label"],w&&I.truncate,m),style:b,"aria-invalid":x,"aria-errormessage":y,"aria-describedby":y?`${_}-error`:void 0,tabIndex:0,...L});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),or=h.forwardRef(({children:e,size:r="L",error:n=!1,disabled:a=!1,loading:i=!1,className:s,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:u,prefixStyles:f,suffixStyles:d,labelProps:g,helperProps:m,showLimit:b=!1,maxLength:w,hint:C,showHint:x=!1,showHintOnEmpty:y=!1,prefix:_,suffix:k,onSuffixClick:L,placeholder:E,showLabel:T=!0,labelClassName:R,hasValue:M=!1,helper:O,id:P,value:F="",resize:W,showGrip:j=!1,...A},H)=>{const V=h.useId(),X=P||V,K=x&&C&&(M||y),oe=C&&C.length>qt?C.substring(0,qt)+"...":C,re=S.clsx(I.wrapper,I[`size-${r}`],n&&I.error,a&&I.disabled,i&&I.loading,K&&I["has-hint"],k&&I["has-suffix"],b&&I["has-limit"],s),J=S.clsx(I.floatingLabel,I[r],M&&I.filled,R),{handleGripMouseDown:ae}=vi(j,a,i,W);return o.jsxs("div",{ref:H,className:I.inputBase,"data-testid":"input-base-wrapper",...A,children:[o.jsxs("div",{className:re,style:c,"data-resize":W,"data-show-grip":j?"true":"false",...l,children:[_&&o.jsx("label",{htmlFor:X,className:I.leftSection,style:f,children:_}),k&&o.jsx("label",{htmlFor:X,className:I.rightSection,style:d,onClick:L,children:k}),E&&T&&o.jsx("label",{htmlFor:X,className:J,style:u,...g,children:E}),e,j&&!b&&(W==="fixed"||!W)&&o.jsx("div",{className:I.gripHandle,onMouseDown:ae,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(xi,{})}),K&&o.jsx("div",{className:S.clsx(I.hint,M&&I.truncate),"data-disabled":a||i,children:oe}),b&&w&&o.jsxs("div",{className:I.characterLimit,children:[(F||"").length," из ",w]})]}),O&&o.jsx("div",{className:S.clsx(I.helper,n&&I.error,(a||i)&&I.disabled),...m,id:n?`${X}-error`:void 0,children:O})]})});or.displayName="InputWrapperComponent";const Wt=Object.assign(Ci,{Wrapper:or}),ar=h.forwardRef(({component:e="input",size:r="L",className:n,error:a=!1,disabled:i=!1,loading:s=!1,placeholder:l,showLabel:c=!0,labelClassName:u,helper:f,prefix:d,suffix:g,id:m,onFocus:b,onBlur:w,onKeyDown:C,onSuffixClick:x,onChange:y,value:_="",wrapperProps:k,wrapperStyles:L,floatingLabelStyles:E,prefixStyles:T,suffixStyles:R,textareaStyles:M,labelProps:O,helperProps:P,showLimit:F=!1,maxLength:W,inputProps:j,hint:A,showHint:H=!1,showHintOnEmpty:V=!1,truncate:X=!1,resize:K,showGrip:oe=!1,...re},J)=>{const ae=h.useId(),se=m||ae,[ve,xe]=h.useState(_),ie=_!==void 0?_:ve,je=(ie||"").length>0,ue=ie||"",Ne=c&&(r==="XL"||e==="textarea")&&!d,Qe=h.useCallback(Q=>{var ee;i||s||(b==null||b(),(ee=j==null?void 0:j.onFocus)==null||ee.call(j,Q))},[b,j,i,s]),qe=h.useCallback(Q=>{var ee;if(Q.key==="Tab"){const me=Q.target.closest(`.${I.wrapper}`);me&&me.classList.add(I.tabFocused)}(ee=j==null?void 0:j.onKeyUp)==null||ee.call(j,Q)},[j]),et=h.useCallback(Q=>{var me;const ee=Q.target.closest(`.${I.wrapper}`);ee&&ee.classList.remove(I.tabFocused),w==null||w(),(me=j==null?void 0:j.onBlur)==null||me.call(j,Q)},[w,j]),tt=h.useCallback(Q=>{var me;if(i||s)return;const ee=Q.target.value;xe(ee),y==null||y(ee,Q),(me=j==null?void 0:j.onChange)==null||me.call(j,Q)},[y,j,i,s]);return h.useEffect(()=>{xe(_||"")},[_]),o.jsx(Wt.Wrapper,{ref:J,size:r,error:a,disabled:i||s,loading:s,className:S.clsx(n,e==="textarea"&&I["textarea-wrapper"]),wrapperProps:k,wrapperStyles:L,floatingLabelStyles:E,prefixStyles:T,suffixStyles:R,labelProps:O,helperProps:P,showLimit:F,maxLength:W,hint:A,showHint:H,showHintOnEmpty:V,prefix:d,suffix:g,onSuffixClick:x,placeholder:l,showLabel:c,labelClassName:u,hasValue:je,helper:f,id:se,value:ue,showGrip:oe,resize:K,...re,children:o.jsx(Wt,{component:e,size:r,value:ue,placeholder:l,disabled:i,loading:s,onFocus:Qe,onBlur:et,onChange:tt,onKeyDown:C,onKeyUp:qe,maxLength:W,truncate:X,"data-empty":!je,shouldShowFloatingLabelClass:Ne,style:e==="textarea"?M:void 0,"aria-invalid":!!a,"aria-errormessage":a?`${se}-error`:void 0,id:se,resize:K,...j})})}),Z={S:"S",M:"M",L:"L",XL:"XL"},wi=(e,r,n,a)=>{switch(e){case Z.XL:return r&&n?"8px 16px 8px 16px":"16px 16px 16px 16px";case Z.L:return a?"12px 12px 12px 12px":"12px 16px 12px 16px";case Z.M:return"10px 12px 10px 12px";case Z.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},ki=e=>{switch(e){case Z.XL:return"56px";case Z.L:return"48px";case Z.M:return"40px";case Z.S:return"32px";default:return"48px"}},Si=e=>{switch(e){case Z.S:case Z.M:case Z.L:return 4;case Z.XL:return 8;default:return 8}},Li=e=>{switch(e){case Z.S:case Z.M:return 8;case Z.L:case Z.XL:return 12;default:return 12}},ji=(e,r,n,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),$i=(e,r,n,a)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Ti=(e,r,n,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Ei=(e,r,n,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ri=(e,r,n,a)=>{const i=ki(e),s=wi(e,r,n,a),l=Li(e),c=Si(e);switch(e){case Z.XL:return $i(i,s,l,c);case Z.L:return Ti(i,s,l,c);case Z.M:return Ei(i,s,l,c);case Z.S:return ji(i,s,l,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Ni=h.forwardRef(({value:e="",onChange:r,type:n="text",placeholder:a,maxLength:i,minLength:s,autoComplete:l,autoFocus:c,size:u=Z.L,inputProps:f,error:d,disabled:g,loading:m,helper:b,prefix:w,suffix:C,clearable:x=!1,id:y,showLabel:_=!0,onFocus:k,onBlur:L,onSuffixClick:E,onClear:T,className:R,truncate:M=!0,hint:O,showHint:P=!1,showHintOnEmpty:F=!1,wrapperProps:W,labelProps:j,helperProps:A,...H},V)=>{const X=(e||"").length>0,K=u===Z.XL,oe=!!w,re=K&&_&&!w,J=x&&X&&!(g||m),ae=()=>{r==null||r(""),T==null||T()},se=()=>{J&&ae(),E==null||E()},ve=J?o.jsx(nr,{size:u===Z.S||u===Z.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):C,xe={type:n,minLength:s,autoComplete:l,autoFocus:c,...f},ie=Ri(u,re,X,oe);return o.jsx(ar,{size:u,error:d,disabled:g||m,loading:m,helper:b,prefix:w,suffix:ve,id:y,showLabel:re,onFocus:k,onBlur:L,onSuffixClick:se,onChange:r,value:e,placeholder:a,className:R,wrapperStyles:ie.wrapperStyles,floatingLabelStyles:ie.floatingLabelStyles,prefixStyles:ie.prefixStyles,suffixStyles:ie.suffixStyles,wrapperProps:W,labelProps:j,helperProps:A,showLimit:!1,maxLength:i,inputProps:xe,hint:O,showHint:P,showHintOnEmpty:F,truncate:M,...H})}),pe={M:"M",L:"L"},Ge={M:"12px",L:"16px"},Ii={M:"xs",L:"sm"},Xe={FILL:"fill",FIXED:"fixed"},dt={M:"112px",L:"56px"},Be={M:"48px",L:"22px"},we={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},Le={M:48,L:56,XL:112},Mi=(e,r)=>{if(e===pe.M)return dt.M;if(r)return`${r}px`;switch(e){case pe.L:return dt.L;default:return dt.L}},Bi=(e,r)=>{if(e===pe.M)return Be.M;if(r)switch(r){case Le.M:case Le.L:return Be.L;case Le.XL:return Be.M;default:return Be.L}switch(e){case pe.L:return Be.L;default:return Be.L}},Ai=(e,r,n)=>{if(e===pe.M)return we.M;if(r)switch(r){case Le.M:return we.L_WITH_PREFIX;case Le.L:return n?we.L_FLOATING_LABEL:we.L;case Le.XL:return we.L;default:return we.L}switch(e){case pe.L:return n?we.L_FLOATING_LABEL:we.L;default:return we.L}},Oi=(e,r)=>{if(e===pe.M)return"M";if(r)switch(r){case Le.M:return"M";case Le.L:return"L";case Le.XL:return"L";default:return"L"}return e},Pi=e=>Ii[e],zi=e=>Ge[e],Di=(e,r,n,a)=>{const i=Mi(e,r),s=Bi(e,r),l=Ai(e,r,n);return{wrapperStyles:{minHeight:i,...a===Xe.FILL&&{height:"100%"},...a===Xe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===pe.M?Ge.M:Ge.L,transformOrigin:"left top",top:r===112&&n&&e===pe.L?Ge.L:void 0},suffixStyles:{right:zi(e),top:r===48&&e===pe.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:s,...a===Xe.FILL&&{flex:1,minHeight:0},...a===Xe.FIXED&&r&&{height:s}}}},Fi=h.forwardRef(({value:e="",onChange:r,placeholder:n,maxLength:a,minLength:i,autoFocus:s,size:l=pe.L,textareaProps:c,error:u,disabled:f,loading:d,helper:g,suffix:m,clearable:b=!1,id:w,showLabel:C=!0,onFocus:x,onBlur:y,onClear:_,onKeyDown:k,className:L,rows:E=1,showLimit:T=!1,wrapperProps:R,labelProps:M,helperProps:O,showGrip:P,minHeight:F,resize:W,...j},A)=>{const H=(e||"").length>0,V=C&&!!n&&(l===pe.M||F!==48),X=b&&H&&!(f||d),K=()=>{r==null||r(""),_==null||_()},oe=()=>{X&&K()},re=X?o.jsx(nr,{size:Pi(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):m,J=Di(l,F,V&&H,W),ae=Oi(l,F),se={rows:E,minLength:i,autoFocus:s,resize:W,...c};return o.jsx(ar,{ref:A,component:"textarea",size:ae,error:u,disabled:f||d,loading:d,onSuffixClick:oe,helper:g,suffix:re,id:w,showLabel:V,onFocus:x,onBlur:y,onKeyDown:k,onChange:r,value:e||"",placeholder:n,className:L,"data-floating-label":V,wrapperStyles:J.wrapperStyles,floatingLabelStyles:J.floatingLabelStyles,suffixStyles:J.suffixStyles,textareaStyles:J.textareaStyles,wrapperProps:R,labelProps:M,helperProps:O,showLimit:T&&(F===112||l===pe.M),maxLength:a,inputProps:se,resize:W,showGrip:P,...j})}),qi="_helper_1jq7j_16",ut={helper:qi,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Wi=({title:e,error:r,className:n="",style:a,disabled:i=!1,"data-testid":s,"aria-label":l,"aria-describedby":c})=>{const u=!!r,f=S.clsx(ut.helper,u&&ut["helper--error"],i&&ut["helper--disabled"],n),d=i?e:r||e;return o.jsx("div",{className:f,style:a,"data-testid":s,"aria-label":l,"aria-describedby":c,children:o.jsx("p",{children:d})})},Hi="_radio_1n8zx_59",Vi="_checked_1n8zx_80",Zi="_error_1n8zx_85",Xi="_disabled_1n8zx_94",Yi="_icon_1n8zx_130",Gi="_small_1n8zx_138",Ui="_medium_1n8zx_145",Ki="_large_1n8zx_152",Ji="_label_1n8zx_159",Qi="_container_1n8zx_185",el="_input_1n8zx_198",tl="_card_1n8zx_205",rl="_smallCard_1n8zx_211",nl="_mediumCard_1n8zx_215",ol="_largeCard_1n8zx_219",_e={default:"_default_1n8zx_53",radio:Hi,checked:Vi,error:Zi,disabled:Xi,icon:Yi,small:Gi,medium:Ui,large:Ki,label:Ji,container:Qi,input:el,card:tl,smallCard:rl,mediumCard:nl,largeCard:ol},al="radio-container-",sl="radio-label",sr=h.forwardRef((e,r)=>{const{name:n,id:a,value:i,size:s="large",loading:l=!1,error:c,disabled:u=!1,checked:f=!1,containerClassName:d,className:g,children:m,clickable:b="all",mode:w="default",tabIndex:C,style:x,containerStyle:y,onChange:_,"data-testid":k,...L}=e,E=!!c,T=u||l,R=b==="all",M=w==="card",O=_e[`${s}Card`],P=a??n,F=V=>{T||_==null||_(i,V)},W=V=>{V.key==="Enter"&&!T&&(V.preventDefault(),_==null||_(i))},j=V=>V.stopPropagation(),A=()=>o.jsxs("div",{className:S.clsx(_e.radio,_e[s],{[_e.checked]:f,[_e.disabled]:T,[_e.error]:E&&!T},g),style:x,tabIndex:C||1,"data-testid":`${al}${P}`,children:[o.jsx("input",{"aria-errormessage":c,"aria-invalid":E,checked:f,className:_e.input,"data-testid":`radio-${P}`,disabled:T,id:P,name:n,ref:r,type:"radio",value:i,onChange:F,onClick:j}),o.jsx("svg",{"data-testid":`radio-icon-${P}`,viewBox:"0 0 8 8",className:_e.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),H=()=>o.jsxs("label",{"aria-checked":f,"aria-disabled":T,"data-testid":R?k:sl,htmlFor:P,style:y,className:S.clsx(_e.label,{[S.clsx(_e.container,_e[w],d)]:R,[O]:R&&M}),onKeyDown:W,...L,children:[A(),R&&m]});return R?H():o.jsxs("div",{className:S.clsx(_e.container,_e[w],d,{[O]:M}),"data-testid":k,children:[H(),m]})}),il="_group_tnviu_7",ll="_vertical_tnviu_12",cl="_horizontal_tnviu_16",Ht={group:il,vertical:ll,horizontal:cl},dl=h.forwardRef((e,r)=>{const{id:n,name:a,value:i,options:s,className:l,radioClassName:c,disabled:u=!1,layout:f="vertical","data-testid":d,...g}=e;return o.jsx("div",{className:Te(Ht.group,Ht[f],l),"data-testid":d??`radio-group-${a}`,id:n,ref:r,children:s.map(({label:m,value:b,disabled:w})=>{const C=`${a}-${String(b)}`,x=String(b)===String(i);return o.jsx(sr,{id:C,checked:x,"data-testid":C,disabled:u||w,name:a,value:b,className:c,...g,children:m},C)})})}),ul=Object.assign(sr,{Group:dl}),_l="_root_1jj3e_25",pl="_unordered_1jj3e_39",fl="_ordered_1jj3e_43",gl="_sm_1jj3e_48",hl="_md_1jj3e_59",bl="_lg_1jj3e_70",xl="_xl_1jj3e_81",_t={root:_l,unordered:pl,ordered:fl,sm:gl,md:hl,lg:bl,xl},ml=e=>{const{children:r,className:n,"data-testid":a="list-item"}=e;return o.jsx("li",{"data-testid":a,className:n,children:r})},yl=Object.assign(h.forwardRef((e,r)=>{const{variant:n="unordered",className:a,children:i,size:s="md","data-testid":l="list",...c}=e,u=n==="ordered"?"ol":"ul";return o.jsx(u,{"data-testid":l,ref:r,className:Te(_t.root,_t[n],_t[s],a),...n==="ordered"&&c,children:i})}),{Item:ml}),vl="_wrapper_1v8xn_5",Cl="_viewport_1v8xn_12",wl="_mask_1v8xn_26",kl="_maskLeft_1v8xn_37",Sl="_maskRight_1v8xn_42",Ll="_visible_1v8xn_46",jl="_control_1v8xn_51",$l="_xs_1v8xn_70",Tl="_sm_1v8xn_73",El="_md_1v8xn_76",Rl="_left_1v8xn_80",Nl="_right_1v8xn_83",ce={wrapper:vl,viewport:Cl,mask:wl,maskLeft:kl,maskRight:Sl,visible:Ll,control:jl,xs:$l,sm:Tl,md:El,left:Rl,right:Nl},Il="white",Ml=({children:e,withControls:r=!0,className:n,size:a})=>{const i=h.useRef(null),[s,l]=h.useState(!1),[c,u]=h.useState(!1),{ref:f,bgColor:d}=gt(),g=f??{current:null},m=d??Il,b=r&&s,w=r&&c,C=({direction:_})=>o.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("g",{transform:_==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:o.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),x=()=>{const _=i.current;if(!_)return;const k=Math.round(_.scrollLeft),L=Math.round(_.scrollLeft+_.clientWidth),E=Math.round(_.scrollWidth);l(k>0),u(L<E)},y=_=>{const k=i.current;if(!k)return;const L=k.clientWidth;k.scrollBy({left:_==="left"?-L:L,behavior:"smooth"})};return h.useEffect(()=>{const _=i.current;if(!_)return;const k=L=>{Math.abs(L.deltaX)>Math.abs(L.deltaY)||_.scrollWidth>_.clientWidth&&(L.preventDefault(),_.scrollBy({left:L.deltaY,behavior:"auto"}))};return _.addEventListener("wheel",k,{passive:!1}),()=>_.removeEventListener("wheel",k)},[]),h.useEffect(()=>{x();const _=i.current;if(_)return _.addEventListener("scroll",x,{passive:!0}),window.addEventListener("resize",x),()=>{_.removeEventListener("scroll",x),window.removeEventListener("resize",x)}},[]),o.jsxs("div",{ref:g,className:S.clsx(ce.wrapper,n),children:[b&&o.jsx("div",{className:S.clsx(ce.mask,ce.maskLeft,s&&ce.visible),style:{background:`linear-gradient(to right, ${m} 17%, transparent 80%)`}}),w&&o.jsx("div",{className:S.clsx(ce.mask,ce.maskRight,c&&ce.visible),style:{background:`linear-gradient(to left, ${m} 17%, transparent 80%)`}}),o.jsx("div",{ref:i,className:ce.viewport,children:e}),b&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(ce.control,ce.left,ce[a]),onClick:()=>y("left"),children:o.jsx(C,{direction:"left"})}),w&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(ce.control,ce.right,ce[a]),onClick:()=>y("right"),children:o.jsx(C,{direction:"right"})})]})},Bl="_tabBar_1ndpm_82",Al="_primary_1ndpm_88",Ol="_secondary_1ndpm_93",Pl="_tab_1ndpm_82",zl="_md_1ndpm_125",Dl="_sm_1ndpm_129",Fl="_xs_1ndpm_133",ql="_disabled_1ndpm_137",Wl="_selected_1ndpm_143",Hl="_tabLabel_1ndpm_222",Vl="_tabPrefix_1ndpm_234",Zl="_tabPostfix_1ndpm_270",te={tabBar:Bl,primary:Al,secondary:Ol,tab:Pl,md:zl,sm:Dl,xs:Fl,disabled:ql,selected:Wl,tabLabel:Hl,tabPrefix:Vl,tabPostfix:Zl},Xl="md",Yl=!1,Gl=8,Ul="top-right-inside",ir=h.createContext(null),lr=()=>{const e=h.useContext(ir);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},Kl=({children:e,defaultActiveTab:r,activeTab:n,onChange:a})=>{const[i,s]=h.useState(r),l=n!==void 0,c=l?n:i,u=f=>{l||s(f),a&&a(f)};return o.jsx(ir.Provider,{value:{activeTab:c,setTab:u},children:e})},Jl=({mode:e,item:r,isActive:n,showBadge:a,badgeProps:i,size:s,isDisabled:l,onSelectTab:c})=>{const{value:u,label:f,prefix:d,prefixWrapperProps:g={},postfix:m,postfixWrapperProps:b={}}=r,{className:w,...C}=g,{className:x,...y}=b,_={primary:U["typography-label-3-medium"],secondary:U["typography-label-3-regular"],prefix:U["typography-label-3-medium"],postfix:U["typography-label-3-medium"]},k={size:Gl,position:Ul,...i},L=S.clsx(te.tab,te[e],te[s],{[te.selected]:n,[te.disabled]:l}),E=S.clsx(te.tabPrefix,w,te[e],_.prefix,{[te.selected]:n,[te.disabled]:l}),T=S.clsx(te.tabPostfix,x,te[e],_.postfix,{[te.selected]:n,[te.disabled]:l}),R=S.clsx(te.tabLabel,te[e],_[e]),M=P=>{n||l||(c(u),P.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},O=o.jsxs("button",{className:L,role:"tab","aria-label":f,"aria-selected":n,"aria-disabled":l,"aria-controls":`tab-panel-${u}`,"data-testid":`tab-item-${u}`,onClick:M,children:[d&&o.jsx("span",{className:E,...C,"data-testid":`tab-prefix-${u}`,children:d}),o.jsx("span",{className:R,"data-testid":`tab-label-${u}`,children:f}),m&&o.jsx("span",{className:T,...y,"data-testid":`tab-postfix-${u}`,children:m})]});return a?o.jsx(Qt,{...k,"data-testid":`tab-badge-${u}`,children:O}):O},Ql=({mode:e,items:r,size:n=Xl,isAllItemsDisabled:a=Yl})=>{const{activeTab:i,setTab:s}=lr(),l=mo();return o.jsx(Ml,{size:n,withControls:l,children:o.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:S.clsx(te.tabBar,te[e]),children:r.map(c=>o.jsx(Jl,{size:n,item:c,mode:e,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:a||c.isDisabled,onSelectTab:s},c.value))})})},ec=({tabValue:e,children:r,...n})=>o.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...n,children:r}),tc=({children:e,...r})=>{const{activeTab:n}=lr(),a=Array.isArray(e)?e:[e],i=(s,l)=>h.isValidElement(s)&&typeof s.props=="object"&&s.props!==null&&l in s.props;return o.jsx("div",{"data-testid":"tab-content",...r,children:a.map(s=>i(s,"tabValue")&&String(s.props.tabValue)===n?s:null)})},rc={Provider:Kl,Content:tc,Panel:ec,Bar:Ql},nc="_root_1fbbw_34",oc="_open_1fbbw_51",ac="_xs_1fbbw_55",sc="_s_1fbbw_61",ic="_m_1fbbw_67",lc="_neutral_1fbbw_73",cc="_contrast_1fbbw_78",dc="_accent_1fbbw_84",uc="_typography_1fbbw_89",_c="_title_1fbbw_89",pc="_text_1fbbw_93",fc="_mediaWrapper_1fbbw_97",gc="_content_1fbbw_112",hc="_closeButton_1fbbw_116",bc="_hasMedia_1fbbw_142",xc="_buttonStack_1fbbw_148",de={root:nc,open:oc,xs:ac,s:sc,m:ic,neutral:lc,contrast:cc,accent:dc,typography:uc,title:_c,text:pc,mediaWrapper:fc,content:gc,closeButton:hc,hasMedia:bc,buttonStack:xc},mc=()=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),yc=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[o.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),o.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),he={shiftX:64,adjustY:1},be={adjustX:1,shiftY:!0},vc={left:{points:["cr","cl"],overflow:be,offset:[-22,0]},right:{points:["cl","cr"],overflow:be,offset:[22,0]},top:{points:["bc","tc"],overflow:he,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:he,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:he,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:be,offset:[-22,0]},topRight:{points:["br","tr"],overflow:he,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:be,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:he,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:be,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:he,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:be,offset:[-22,0]}},Cc={left:{points:["cr","cl"],overflow:be,offset:[-16,0]},right:{points:["cl","cr"],overflow:be,offset:[16,0]},top:{points:["bc","tc"],overflow:he,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:he,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:he,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:be,offset:[-16,0]},topRight:{points:["br","tr"],overflow:he,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:be,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:he,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:be,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:he,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:be,offset:[-16,0]}},wc={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},kc=(e,r,n)=>({...r,...n??{},...e}),Sc=(e,r,n)=>{const a=eo(r,1,3),i=wc[n][a];return i[Math.min(e,i.length-1)]},Vt=({text:e,title:r,media:n,variant:a="neutral",size:i,classNames:s={},onClose:l,buttons:c,buttonProps:u,showClose:f})=>{const d=["neutral","accent"].includes(a)?"contrast":"primary",g=i==="m",m=!!(r&&g),b=!!(n&&g),w=c&&!!c.length,C=!!(f&&g)||!f&&g&&!w,x=i==="xs"?4:3;return o.jsxs("div",{className:de.content,children:[b&&o.jsx("div",{className:S.clsx(de.mediaWrapper,s.mediaWrapper),children:n}),o.jsxs("div",{className:s.textWrapper,children:[m&&o.jsx(Je.Subtitle,{className:S.clsx(de.typography,de.title,s.typography),size:1,as:"h3",typographyStyle:d,children:r}),o.jsx(Je.Label,{className:S.clsx(de.typography,de.text,s.typography),typographyStyle:d,size:x,children:e})]}),C&&o.jsx("button",{type:"button",className:S.clsx(de.closeButton,de[a],s.closeButton,{[de.hasMedia]:b}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:o.jsx(mc,{})}),g&&w&&o.jsx("div",{className:de.buttonStack,children:c.map((y,_)=>{const k=Sc(_,c.length,a),L=kc(y,k,u),{closeOnClick:E,...T}=L,R=M=>{var O;(O=T.onClick)==null||O.call(T,M),E&&(l==null||l())};return o.jsx(Ue,{...T,onClick:R},_)})})]})},Lc=({customContent:e,children:r,placement:n="top",contentClassNames:a,mouseEnterDelay:i=0,mouseLeaveDelay:s=.1,showArrow:l=!0,showClose:c=!0,trigger:u="hover",variant:f="neutral",size:d="s",text:g,title:m,media:b,buttons:w,buttonProps:C,onClose:x,...y})=>{const[_,k]=h.useState(!1),[L,E]=h.useState(!1),T=d==="m"?vc:Cc,R=()=>{k(!1),x==null||x()},M=e||(d==="m"?o.jsx(Vt,{classNames:a,text:g,variant:f,size:d,onClose:R,title:m,media:b,showClose:c,buttons:w,buttonProps:C}):o.jsx(Vt,{classNames:a,text:g,variant:f,size:d,onClose:R}));return h.useEffect(()=>{if(_){const O=requestAnimationFrame(()=>E(!0));return()=>cancelAnimationFrame(O)}E(!1)},[_]),o.jsx(Rr,{visible:_,onVisibleChange:k,classNames:{root:S.clsx(de.root,de[f],de[d],L&&de.open),...y.classNames},placement:n,overlay:()=>M,trigger:u,mouseEnterDelay:i,mouseLeaveDelay:s,motion:{motionName:"tooltipMotion"},builtinPlacements:T,showArrow:l?{content:o.jsx(yc,{}),className:`tooltipArrow tooltipArrow-${d}`}:!1,destroyTooltipOnHide:!0,...y,children:r})},jc="_base_4dkq5_1",$c="_content_4dkq5_1",Tc="_background_4dkq5_1",Ec="_button_4dkq5_1",Rc="_link_4dkq5_1",Nc="_input_4dkq5_1",Ic="_suffix_4dkq5_1",Mc="_prefix_4dkq5_1",Bc="_tooltip_4dkq5_1",Ac="_hint_4dkq5_1",Oc="_dropdown_4dkq5_1",Pc="_popover_4dkq5_1",zc="_modalBackdrop_4dkq5_1",Dc="_modal_4dkq5_1",Fc="_overlay_4dkq5_1",qc="_drawer_4dkq5_1",Wc="_notification_4dkq5_1",Hc="_alert_4dkq5_1",Vc="_toast_4dkq5_1",Zc="_loading_4dkq5_1",Xc="_error_4dkq5_1",Yc="_critical_4dkq5_1",Gc="_segmentedControl_4dkq5_7",Uc="_segment_4dkq5_7",Kc="_activeSegmentIndicator_4dkq5_61",Jc="_selected_4dkq5_80",Qc="_stretched_4dkq5_89",e1="_disabled_4dkq5_97",t1="_s_4dkq5_7",r1="_icon_4dkq5_110",n1="_label_4dkq5_114",o1="_m_4dkq5_1",a1="_l_4dkq5_114",$e={base:jc,content:$c,background:Tc,button:Ec,link:Rc,input:Nc,suffix:Ic,prefix:Mc,tooltip:Bc,hint:Ac,dropdown:Oc,popover:Pc,modalBackdrop:zc,modal:Dc,overlay:Fc,drawer:qc,notification:Wc,alert:Hc,toast:Vc,loading:Zc,error:Xc,critical:Yc,segmentedControl:Gc,segment:Uc,activeSegmentIndicator:Kc,selected:Jc,stretched:Qc,disabled:e1,s:t1,icon:r1,label:n1,m:o1,l:a1},Zt={s:U["typography-label-3-regular"],m:U["typography-label-2-regular"],l:U["typography-label-2-regular"]},s1=e=>{const{className:r,defaultValue:n,value:a,size:i="m",segments:s,stretched:l,disabled:c=!1,mode:u="label",onChange:f,...d}=e,g=h.useId(),[m,b]=h.useState(n||s[0].value),[w,C]=h.useState({width:0,left:0,height:0}),x=h.useRef(null);h.useEffect(()=>{a!=null&&b(a)},[a]),h.useLayoutEffect(()=>{y()},[m,s,i,l,u]);const y=()=>{if(!(x!=null&&x.current))return;const k=x.current.querySelector('[data-is-active-segment="true"]');k&&C({width:k.offsetWidth,left:k.offsetLeft,height:k.offsetHeight})},_=k=>{c||(b(k),f==null||f(k))};return(s==null?void 0:s.length)===0?null:o.jsxs("fieldset",{className:S.clsx($e.segmentedControl,$e[i],$e[u],{[$e.stretched]:l,[$e.disabled]:c},r),"data-testid":"segmented-control-container",ref:x,disabled:c,...d,children:[s==null?void 0:s.map(({label:k,value:L,containerProps:E={}},T)=>{const{className:R,...M}=E,O=()=>_(L),P=JSON.stringify(L),F=m===L;return o.jsxs(h.Fragment,{children:[o.jsx("input",{id:g+P,value:P,type:"radio",checked:F,readOnly:!0}),o.jsx("label",{"data-is-active-segment":F,className:S.clsx($e.segment,Zt[i],{[$e.selected]:F},R),htmlFor:g+P,"data-testid":"segmented-control-segment",onClick:O,...M,children:k})]},Ke(P)+T)}),o.jsx("div",{className:S.clsx($e.activeSegmentIndicator,Zt[i]),"data-testid":"segmented-control-segment-active-indicator",style:w})]})};exports.Alert=ua;exports.Avatar=Ut;exports.Badge=Qt;exports.Button=Ue;exports.Checkbox=Es;exports.ConfigProvider=Ja;exports.Helper=Wi;exports.Image=Ca;exports.List=yl;exports.Loader=pt;exports.Modal=Ko;exports.Placeholder=Jt;exports.Radio=ul;exports.SegmentedControl=s1;exports.Tabs=rc;exports.Tag=hs;exports.TextArea=Fi;exports.TextInput=Ni;exports.Tooltip=Lc;exports.Typography=Je;exports.enUS=er;exports.ruRU=Qa;exports.useConfig=rr;exports.useLocale=wa;