skillgrid 0.0.28-dev-41308-avatar-group.1182312 → 0.0.28-dev-41308-avatar-group.1187736
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const g=require("react"),R=require("clsx"),vr=require("rc-tooltip");function wr(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return r.default=e,Object.freeze(r)}const Bt=wr(g);function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={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 Oe;wt=1;var e=
|
|
9
|
+
*/var wt;function Sr(){if(wt)return Oe;wt=1;var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function l(c,f,p){var _,m={},y=null,b=null;p!==void 0&&(y=""+p),f.key!==void 0&&(y=""+f.key),f.ref!==void 0&&(b=f.ref);for(_ in f)n.call(f,_)&&!o.hasOwnProperty(_)&&(m[_]=f[_]);if(c&&c.defaultProps)for(_ in f=c.defaultProps,f)m[_]===void 0&&(m[_]=f[_]);return{$$typeof:r,type:c,key:y,ref:b,props:m,_owner:i.current}}return Oe.Fragment=a,Oe.jsx=l,Oe.jsxs=l,Oe}var De={};/**
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),te=
|
|
17
|
+
*/var Ct;function jr(){return Ct||(Ct=1,process.env.NODE_ENV!=="production"&&function(){var e=g,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=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),L=1;L<d;L++)h[L-1]=arguments[L];C("error",t,h)}}function C(t,d,h){{var L=w.ReactDebugCurrentFrame,B=L.getStackAddendum();B!==""&&(d+="%s",h=h.concat([B]));var F=h.map(function(N){return String(N)});F.unshift("Warning: "+d),Function.prototype.apply.call(console[t],console,F)}}var E=!1,M=!1,k=!1,I=!1,O=!1,D;D=Symbol.for("react.module.reference");function U(t){return!!(typeof t=="string"||typeof t=="function"||t===n||t===o||O||t===i||t===p||t===_||I||t===b||E||M||k||typeof t=="object"&&t!==null&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===l||t.$$typeof===c||t.$$typeof===f||t.$$typeof===D||t.getModuleId!==void 0))}function W(t,d,h){var L=t.displayName;if(L)return L;var B=d.displayName||d.name||"";return B!==""?h+"("+B+")":h}function P(t){return t.displayName||"Context"}function j(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 n:return"Fragment";case a:return"Portal";case o:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case _:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case c:var d=t;return P(d)+".Consumer";case l:var h=t;return P(h._context)+".Provider";case f:return W(t,t.render,"ForwardRef");case m:var L=t.displayName||null;return L!==null?L:j(t.type)||"Memo";case y:{var B=t,F=B._payload,N=B._init;try{return j(N(F))}catch{return null}}}return null}var $=Object.assign,z=0,q,V,Q,oe,Z,ce,ee;function ve(){}ve.__reactDisabledLog=!0;function Ae(){{if(z===0){q=console.log,V=console.info,Q=console.warn,oe=console.error,Z=console.group,ce=console.groupCollapsed,ee=console.groupEnd;var t={configurable:!0,enumerable:!0,value:ve,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}z++}}function be(){{if(z--,z===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:$({},t,{value:q}),info:$({},t,{value:V}),warn:$({},t,{value:Q}),error:$({},t,{value:oe}),group:$({},t,{value:Z}),groupCollapsed:$({},t,{value:ce}),groupEnd:$({},t,{value:ee})})}z<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ee=w.ReactCurrentDispatcher,Le;function Ce(t,d,h){{if(Le===void 0)try{throw Error()}catch(B){var L=B.stack.trim().match(/\n( *(at )?)/);Le=L&&L[1]||""}return`
|
|
18
|
+
`+Le+t}}var Be=!1,ke;{var Ge=typeof WeakMap=="function"?WeakMap:Map;ke=new Ge}function ze(t,d){if(!t||Be)return"";{var h=ke.get(t);if(h!==void 0)return h}var L;Be=!0;var B=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=Ee.current,Ee.current=null,Ae();try{if(d){var N=function(){throw Error()};if(Object.defineProperty(N.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(N,[])}catch(ae){L=ae}Reflect.construct(t,[],N)}else{try{N.call()}catch(ae){L=ae}t.call(N.prototype)}}else{try{throw Error()}catch(ae){L=ae}t()}}catch(ae){if(ae&&L&&typeof ae.stack=="string"){for(var T=ae.stack.split(`
|
|
19
|
+
`),te=L.stack.split(`
|
|
20
20
|
`),G=T.length-1,Y=te.length-1;G>=1&&Y>=0&&T[G]!==te[Y];)Y--;for(;G>=1&&Y>=0;G--,Y--)if(T[G]!==te[Y]){if(G!==1||Y!==1)do if(G--,Y--,Y<0||T[G]!==te[Y]){var de=`
|
|
21
|
-
`+T[G].replace(" at new "," at ");return t.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",t.displayName)),typeof t=="function"&&ke.set(t,de),de}while(G>=1&&Y>=0);break}}}finally{
|
|
21
|
+
`+T[G].replace(" at new "," at ");return t.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",t.displayName)),typeof t=="function"&&ke.set(t,de),de}while(G>=1&&Y>=0);break}}}finally{Be=!1,Ee.current=F,be(),Error.prepareStackTrace=B}var Me=t?t.displayName||t.name:"",Se=Me?Ce(Me):"";return typeof t=="function"&&ke.set(t,Se),Se}function Ye(t,d,h){return ze(t,!1)}function Ze(t){var d=t.prototype;return!!(d&&d.isReactComponent)}function X(t,d,h){if(t==null)return"";if(typeof t=="function")return ze(t,Ze(t));if(typeof t=="string")return Ce(t);switch(t){case p:return Ce("Suspense");case _:return Ce("SuspenseList")}if(typeof t=="object")switch(t.$$typeof){case f:return Ye(t.render);case m:return X(t.type,d,h);case y:{var L=t,B=L._payload,F=L._init;try{return X(F(B),d,h)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,pe={},ct=w.ReactDebugCurrentFrame;function Fe(t){if(t){var d=t._owner,h=X(t.type,t._source,d?d.type:null);ct.setExtraStackFrame(h)}else ct.setExtraStackFrame(null)}function Qt(t,d,h,L,B){{var F=Function.call.bind(J);for(var N in t)if(F(t,N)){var T=void 0;try{if(typeof t[N]!="function"){var te=Error((L||"React class")+": "+h+" type `"+N+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof t[N]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw te.name="Invariant Violation",te}T=t[N](d,N,L,h,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(G){T=G}T&&!(T instanceof Error)&&(Fe(B),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).",L||"React class",h,N,typeof T),Fe(null)),T instanceof Error&&!(T.message in pe)&&(pe[T.message]=!0,Fe(B),u("Failed %s type: %s",h,T.message),Fe(null))}}}var er=Array.isArray;function Xe(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 ft=w.ReactCurrentOwner,ar={key:!0,ref:!0,__self:!0,__source:!0},_t,pt;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 nr(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 or(t,d){typeof t.ref=="string"&&ft.current}function ir(t,d){{var h=function(){_t||(_t=!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(){pt||(pt=!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,L,B,F,N){var T={$$typeof:r,type:t,key:d,ref:h,props:N,_owner:F};return T._store={},Object.defineProperty(T._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(T,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(T,"_source",{configurable:!1,enumerable:!1,writable:!1,value:B}),Object.freeze&&(Object.freeze(T.props),Object.freeze(T)),T};function dr(t,d,h,L,B){{var F,N={},T=null,te=null;h!==void 0&&(ut(h),T=""+h),nr(d)&&(ut(d.key),T=""+d.key),sr(d)&&(te=d.ref,or(d,B));for(F in d)J.call(d,F)&&!ar.hasOwnProperty(F)&&(N[F]=d[F]);if(t&&t.defaultProps){var G=t.defaultProps;for(F in G)N[F]===void 0&&(N[F]=G[F])}if(T||te){var Y=typeof t=="function"?t.displayName||t.name||"Unknown":t;T&&ir(N,Y),te&&lr(N,Y)}return cr(t,T,te,B,L,ft.current,N)}}var Je=w.ReactCurrentOwner,gt=w.ReactDebugCurrentFrame;function Re(t){if(t){var d=t._owner,h=X(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=j(Je.current.type);if(t)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+t+"`."}return""}}function ur(t){return""}var ht={};function fr(t){{var
|
|
23
|
+
Check the render method of \``+t+"`."}return""}}function ur(t){return""}var ht={};function fr(t){{var d=bt();if(!d){var h=typeof t=="string"?t:t.displayName||t.name;h&&(d=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
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=fr(d);if(ht[h])return;ht[h]=!0;var L="";t&&t._owner&&t._owner!==Je.current&&(L=" It was passed a child from "+j(t._owner.type)+"."),Re(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,L),Re(null)}}function yt(t,d){{if(typeof t!="object")return;if(Xe(t))for(var h=0;h<t.length;h++){var L=t[h];Qe(L)&&mt(L,d)}else if(Qe(t))t._store&&(t._store.validated=!0);else if(t){var B=v(t);if(typeof B=="function"&&B!==t.entries)for(var F=B.call(t),N;!(N=F.next()).done;)Qe(N.value)&&mt(N.value,d)}}}function _r(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===f||d.$$typeof===m))h=d.propTypes;else return;if(h){var L=j(d);Qt(h,t.props,"prop",L,t)}else if(d.PropTypes!==void 0&&!Ke){Ke=!0;var B=j(d);u("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",B||"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 pr(t){{for(var d=Object.keys(t.props),h=0;h<d.length;h++){var L=d[h];if(L!=="children"&&L!=="key"){Re(t),u("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),Re(null);break}}t.ref!==null&&(Re(t),u("Invalid attribute `ref` supplied to `React.Fragment`."),Re(null))}}var xt={};function vt(t,d,h,L,B,F){{var N=U(t);if(!N){var T="";(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(T+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var te=ur();te?T+=te:T+=bt();var G;t===null?G="null":Xe(t)?G="array":t!==void 0&&t.$$typeof===r?(G="<"+(j(t.type)||"Unknown")+" />",T=" Did you accidentally export a JSX literal instead of a component?"):G=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",G,T)}var Y=dr(t,d,h,B,F);if(Y==null)return Y;if(N){var de=d.children;if(de!==void 0)if(L)if(Xe(de)){for(var Me=0;Me<de.length;Me++)yt(de[Me],t);Object.freeze&&Object.freeze(de)}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(de,t)}if(J.call(d,"key")){var Se=j(t),ae=Object.keys(d).filter(function(xr){return xr!=="key"}),et=ae.length>0?"{key: someKey, "+ae.join(": ..., ")+": ...}":"{key: someKey}";if(!xt[Se+et]){var yr=ae.length>0?"{"+ae.join(": ..., ")+": ...}":"{}";u(`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===n?pr(Y):_r(Y),Y}}function
|
|
30
|
+
<%s key={someKey} {...props} />`,et,Se,yr,Se),xt[Se+et]=!0}}return t===n?pr(Y):_r(Y),Y}}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;De.Fragment=n,De.jsx=hr,De.jsxs=mr}()),De}var St;function Er(){return St||(St=1,process.env.NODE_ENV==="production"?Ue.exports=Sr():Ue.exports=jr()),Ue.exports}var s=Er();const Lr=e=>e.as==="a",kr=e=>e.as===void 0||e.as==="button",Ie=e=>e.displayAs===void 0||e.displayAs==="button",tt=e=>e.displayAs==="link",Rr="_button_6bymk_1",Mr="_link_6bymk_17",Ir="_disabled_6bymk_22",Tr="_loading_6bymk_22",$r="_neutral_6bymk_50",Nr="_accent_6bymk_54",Ar="_positive_6bymk_58",Or="_negative_6bymk_62",Dr="_contrast_6bymk_66",Pr="_special_6bymk_70",Br="_primary_6bymk_74",zr="_secondary_6bymk_75",Fr="_tertiary_6bymk_76",Ur="_spaceBetween_6bymk_116",qr="_rightGroup_6bymk_116",Wr="_label_6bymk_136",Hr="_iconOnly_6bymk_155",Vr="_stretched_6bymk_171",Gr="_icon_6bymk_155",Yr="_postfix_6bymk_176",Zr="_underline_6bymk_202",Xr="_warning_6bymk_1082",Jr="_withSubcaption_6bymk_1268",Kr="_subcaption_6bymk_1273",Qr="_loader_6bymk_1279",ea="_spin_6bymk_1",ta="_l_6bymk_17",ra="_m_6bymk_1318",aa="_s_6bymk_70",sa="_xs_6bymk_1364",na="_iconRight_6bymk_1410",H={button:Rr,link:Mr,disabled:Ir,loading:Tr,neutral:$r,accent:Nr,positive:Ar,negative:Or,contrast:Dr,special:Pr,primary:Br,secondary:zr,tertiary:Fr,spaceBetween:Ur,rightGroup:qr,label:Wr,iconOnly:Hr,stretched:Vr,icon:Gr,postfix:Yr,underline:Zr,warning:Xr,withSubcaption:Jr,subcaption:Kr,loader:Qr,spin:ea,l:ta,m:ra,s:aa,xs:sa,iconRight:na},oa=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal"]),jt=e=>{const r={};for(const a in e)oa.has(a)||(r[a]=e[a]);return r},ia={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function la(e){return ia[e]||"typography-label-2-regular"}const le={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},Et=({isLoading:e,iconRight:r,iconLeft:a,children:n,postfix:i,subcaption:o,size:l,isAsButton:c})=>{if(e&&c)return s.jsx("span",{className:H.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=r&&c||r&&!c&&l,p=o&&c&&l!=="s"&&l!=="xs";return s.jsxs(g.Fragment,{children:[p&&s.jsxs(g.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:H.label,children:n}),s.jsx("span",{"data-testid":"button-subcaption",className:H.subcaption,children:o})]}),!p&&n&&s.jsxs(g.Fragment,{children:[s.jsxs("span",{"data-testid":"button-label",className:H.label,children:[!c&&a&&s.jsx("span",{"data-testid":"button-left-icon",className:H.icon,children:a}),n,!c&&r&&s.jsx("span",{"data-testid":"button-icon",className:R.clsx(H.icon,H.iconRight),children:r})]}),c&&s.jsxs("div",{"data-testid":"button-right-group",className:H.rightGroup,children:[f&&s.jsx("span",{"data-testid":"button-icon",className:H.icon,children:r}),i&&c&&s.jsx("span",{"data-testid":"button-postfix",className:H.postfix,children:i})]})]}),!p&&!n&&s.jsx("span",{"data-testid":"button-icon",className:H.icon,children:r})]})},zt=g.forwardRef((e,r)=>{const{mode:a="primary",size:n="m",buttonStyle:i=Ie(e)?"neutral":"accent",disabled:o=!1,displayAs:l="button",iconRight:c,className:f,children:p,tabIndex:_}=e,m=Ie(e)?e.subcaption:void 0,y=Ie(e)?e.postfix:void 0,b=Ie(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=Ie(e)?o:o||v,u=!w&&!v,C=x?c:void 0,E=!!(C&&!p),M=typeof b=="object"?b.justify==="space-between":void 0,k=tt(e)?la(e.size??"m"):void 0,I=k?le[k]:void 0,O=w||v?-1:_,D=R.clsx(H.button,H[n],H[a],H[i],I,{[H.disabled]:w,[H.loading]:l==="button"&&"loading"in e&&e.loading,[H.stretched]:b,[H.spaceBetween]:M,[H.withSubcaption]:m&&n!=="s"&&n!=="xs",[H.iconOnly]:E,[H.link]:l==="link",[H.underline]:l==="link"&&"showUnderline"in e&&e.showUnderline},f),U={isLoading:v,iconRight:C,iconLeft:S,children:p,postfix:y,subcaption:m,size:n,isAsButton:Ie(e)};if(Lr(e)){const{href:W,onClick:P,style:j,target:$,rel:z,"data-testid":q,...V}=e,Q=jt(V),oe=$??(e.isExternal?"_blank":void 0);let Z=z;if(oe==="_blank"){const ee=new Set((z??"").split(/\s+/).filter(Boolean));ee.add("noopener").add("noreferrer"),Z=Array.from(ee).join(" ")}const ce=ee=>{if(!u){ee.preventDefault();return}P==null||P(ee)};return s.jsx("a",{ref:r,className:D,href:u?W:void 0,tabIndex:O,onClick:ce,"data-testid":q,"aria-disabled":w||v,style:j,target:oe,rel:Z,...Q,children:s.jsx(Et,{...U})})}if(kr(e)){const{type:W="button",onClick:P,style:j,"data-testid":$,...z}=e,q=jt(z),V=Q=>{u&&P&&P(Q)};return s.jsx("button",{ref:r,type:W,className:D,disabled:w,tabIndex:O,onClick:V,"data-testid":$,"aria-disabled":w||v,style:j,...q,children:s.jsx(Et,{...U})})}return null});var rt={exports:{}};/*!
|
|
31
31
|
Copyright (c) 2018 Jed Watson.
|
|
32
32
|
Licensed under the MIT License (MIT), see
|
|
33
33
|
http://jedwatson.github.io/classnames
|
|
34
|
-
*/var jt;function ca(){return jt||(jt=1,function(e){(function(){var r={}.hasOwnProperty;function a(){for(var o="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(o=i(o,n(c)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return a.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var c in o)r.call(o,c)&&o[c]&&(l=i(l,c));return l}function i(o,l){return l?o?o+" "+l:o+l:o}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(rt)),rt.exports}var da=ca();const we=Cr(da),ua="_avatar_zfczn_17",fa="_clickable_zfczn_40",_a="_icon_zfczn_57",pa="_disabled_zfczn_62",ba="_loading_zfczn_67",ga="_image_zfczn_73",ha="_name_zfczn_73",be={avatar:ua,clickable:fa,icon:_a,disabled:pa,loading:ba,image:ga,name:ha,"variant-filled":"_variant-filled_zfczn_125","color-brand":"_color-brand_zfczn_130","color-red":"_color-red_zfczn_134","color-orange":"_color-orange_zfczn_138","color-yellow":"_color-yellow_zfczn_142","color-green":"_color-green_zfczn_146","color-blue":"_color-blue_zfczn_150","color-lightblue":"_color-lightblue_zfczn_154","color-purple":"_color-purple_zfczn_158","color-gray":"_color-gray_zfczn_162","color-contrast":"_color-contrast_zfczn_166","variant-light":"_variant-light_zfczn_172","variant-outline":"_variant-outline_zfczn_244"},kt=99;function ma(e){return e<kt?`+${e}`:`${kt}+`}function Ve(e){const r=typeof e=="string"?e:JSON.stringify(e);let a=5381;for(let n=0;n<r.length;n++){const i=r.charCodeAt(n);a=(a<<5)+a+i}return a>>>0}const ya=["red","orange","yellow","green","blue","lightblue","purple"];function xa(e,r=ya){if(!e)return"gray";const a=Ve(e),n=Math.abs(a)%r.length;return r[n]}const Rt=2;function va(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,Rt).toUpperCase():r.map(a=>a[0]).slice(0,Rt).join("").toUpperCase()}const wa={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function Ca(e,r){return r==="circle"?e/2:wa[e]||12}const Sa={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function Ea(e){return Sa[e]||"typography-subtitle-1-semibold"}const La="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ja="data:image/svg+xml,%3csvg%20viewBox='0%200%20208%20208'%20opacity='0.9'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20filter='url(%23shadow)'%20d='M127.173%2079.8894C127.189%2079.1933%20128.026%2079.1201%20128.436%2079.4316C128.754%2079.6091%20128.895%2080.1021%20128.809%2080.5518C129.241%2083.1982%20129.581%2085.7106%20130.013%2088.357C136.835%2079.7558%20149.235%2076.9989%20158.979%2083.174C168.086%2088.9941%20171.001%20111.745%20135.501%20120.502C131.5%20123.502%20117%20125.002%20111.753%20103.279C111.682%2093.2427%20118.526%2084.529%20127.173%2079.8894Z'%20fill='darkgrey'/%3e%3cpath%20d='M28.0441%20167.788C21.826%20195.052%2018.7311%20223.361%2014.1881%20250.885C9.42226%20279.982%204.68042%20308.967%20-0.0853729%20338.064L-1.00047%20342.848C14.5039%20346.419%2030.8401%20350.407%2046.3671%20353.868C90.9428%20363.918%20134.837%20376.598%20179.293%20387.201C200.345%20337.142%20219.778%20286.027%20235.82%20234.041C243.806%20208.213%20244.758%20181.282%20225.443%20160.043C216.099%20149.841%20204.347%20143.858%20191.629%20140.212C188.924%20139.377%20186.108%20138.517%20183.355%20137.905C179.635%20136.959%20175.781%20136.1%20171.989%20135.487C167.45%20134.592%20162.753%20133.893%20158.277%20133.243L127.871%20128.671L116.251%20126.895C115.457%20126.833%20114.686%20126.662%20113.915%20126.49C102.87%20124.724%2091.7381%20122.824%2080.6188%20123.013C69.1682%20123.13%2056.9012%20125.964%2047.8363%20133.224C36.9821%20141.825%2031.1109%20154.087%2028.0441%20167.788Z'%20fill='darkgrey'/%3e%3cpath%20d='M103.74%20123.732L95.6984%20197.532C95.6984%20197.532%20137.13%20157.315%20158.742%20133.268C155.051%20132.316%20151.227%20131.449%20147.465%20130.831C142.962%20129.929%20138.302%20129.224%20133.861%20128.569L103.74%20123.732Z'%20fill='white'/%3e%3cpath%20d='M97.8143%20115.298C99.0227%20116.625%20108.229%20179.332%20108.229%20179.332L148.012%20142.157L129%20100L97.8143%20115.298Z'%20fill='white'/%3e%3cpath%20d='M101.71%20148.534C100.068%20137.868%2098.402%20127.706%2098.0001%20127.274L112.673%20122C113.831%20131.449%20108.467%20141.173%20101.71%20148.534Z'%20fill='grey'/%3e%3cpath%20d='M121.545%2040.7383C111.161%2030.599%2085.3871%2035.4814%2071.93%2046.2862C66.0912%2051.0172%2060.5415%2047.9025%2061.6427%2054.0842C64.3767%2069.3597%2074.0239%20120.283%2082.7631%20126.794C100.374%20139.728%20121.191%20125.699%20127.329%20107.658C133.554%2089.7517%20136.293%2055.2372%20121.545%2040.7383Z'%20fill='white'/%3e%3cpath%20d='M56.0176%2041.9837C61.9834%2036.7831%2074.9427%2037.4243%2081.3074%2039.639C95.1733%2033.9235%20112.672%2032.6801%20120.968%2040.1438C131.22%2049.4771%20133.446%2067.5345%20132.042%2083.8281C125.848%2083.0025%20122.779%2078.6471%20116.718%2075.0286C97.7466%2073.2611%2084.9353%2061.0313%2082.042%2054.2301C78.3492%2058.2067%2063.3398%2059.3993%2058.12%2055.1646C51.1278%2048.7596%2054.1283%2043.6248%2056.0176%2041.9837Z'%20fill='darkgrey'/%3e%3cpath%20d='M142.838%2074.8316C138.561%2067.841%20123.674%2066.785%20116.5%2075.5006C118.078%2084.3219%20121.503%2092.5524%20122.726%20101.41C127.77%20102.657%20137.388%20100.869%20141.908%2095.386C147.168%2089.1414%20147.462%2082.3637%20142.838%2074.8316Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='0'%20dy='0'%20stdDeviation='3'%20flood-color='rgba(0,0,0,0.3)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",ka="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='currentColor'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cmask%20id='hole'%3e%3crect%20width='100%25'%20height='100%25'%20fill='white'/%3e%3ccircle%20cx='121.333'%20cy='121.333'%20r='52'%20fill='black'/%3e%3c/mask%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='10'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadow)'%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='darkgray'/%3e%3ccircle%20cx='104'%20cy='225.333'%20r='95.3333'%20fill='white'%20mask='url(%23hole)'/%3e%3ccircle%20cx='104'%20cy='86.6666'%20r='52'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Ra="data:image/svg+xml,%3csvg%20opacity='0.9'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23shadow)'%3e%3cpath%20d='M168%20208V118.053C168%20113.824%20165.34%20110.052%20161.356%20108.633L134%2098.885V208H168Z'%20fill='darkgrey'/%3e%3cpath%20d='M40%2072.3726C40%2070.7381%2040.9944%2069.268%2042.5116%2068.6598L111.951%2040.8215C113.226%2040.3102%20114.675%2040.4893%20115.787%2041.2958L129.87%2051.5056C132.464%2053.3866%20134%2056.397%20134%2059.6017V208H40V72.3726Z'%20fill='white'/%3e%3cpath%20d='M114%2047.5001L126.325%2056.3036C127.376%2057.0544%20128%2058.2667%20128%2059.5585V208H114V47.5001Z'%20fill='darkgrey'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='shadow'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='7'%20flood-color='rgba(0,0,0,0.2)'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",Ma={male:La,female:ja,org:Ra,neutral:ka},We=b.forwardRef((e,r)=>{const{style:a,size:n=40,isLoading:i=!1,isDisabled:o=!1,shape:l="circle",variant:c="filled",placeholderType:f="neutral",name:_,imgSrc:p,imgAlt:g,icon:y,imgProps:h,colorScheme:x,className:L,"data-testid":w,...v}=e,{onClick:d,onPointerDown:C}=v,M=!o&&!i&&(!!d||!!C),[k,I]=b.useState(!1);b.useEffect(()=>{p&&I(!1)},[p]);const O=p&&!k?"image":y?"icon":_?"name":"placeholder",z=x||O==="name"&&xa(_)||"gray",F=Ea(n),W=Ca(n,l),D=R.clsx(L,be.avatar,be[`variant-${c}`],be[`color-${z}`],le[F],{[be.disabled]:o,[be.loading]:i,[be.clickable]:M}),E={"--avatar-size":`${n}px`,"--avatar-border-radius":`${W}px`,...a},$={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:be.icon,children:y==null?void 0:y({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:be.name,title:g||void 0,children:va(_||"")}),placeholder:()=>s.jsx("img",{...h,"data-testid":"avatar-placeholder",className:be.image,src:Ma[f],alt:g||void 0}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...h,className:be.image,src:p||void 0,alt:g||void 0,onLoad:()=>I(!1),onError:q=>{var V;I(!0),(V=h==null?void 0:h.onError)==null||V.call(h,q)}})},B=q=>{M&&(d==null||d(q))};return s.jsx("div",{ref:r,onClick:B,className:D,style:E,"data-testid":w,"aria-disabled":o||i,children:$[O](null)})}),Ia="_avatarGroup_1nhee_1",Ta={avatarGroup:Ia};let $a=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((r,a)=>(a&=63,a<36?r+=a.toString(36):a<62?r+=(a-26).toString(36).toUpperCase():a>62?r+="-":r+="_",r),"");const Na=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Aa=e=>{if(!e)return null;let r=e;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!Na(n))return n;r=r.parentElement}return null},lt=()=>{const e=b.useRef(null),[r,a]=b.useState(null);return b.useEffect(()=>{if(e.current){const n=Aa(e.current);a(n)}},[]),{ref:e,bgColor:r}};function Mt(e,r,a){b.useEffect(()=>(window.addEventListener(e,r,a),()=>window.removeEventListener(e,r,a)),[e,r])}const It={passive:!0};function Oa(){const[e,r]=b.useState({width:0,height:0}),a=b.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Mt("resize",a,It),Mt("orientationchange",a,It),b.useEffect(a,[]),e}function za(e=768){const{width:r}=Oa();return b.useMemo(()=>r<=e,[r,e])}const Da=2,Pa=e=>{const{avatars:r=[],size:a=40,overlap:n=.3,shape:i="circle",overflowCount:o=0,overflowProps:l,cutoutBackground:c}=e,_=-(a*n)+Da,g=b.useRef($a()).current.toString(),{ref:y,bgColor:h}=lt(),x=c||h,L=we(Ta.avatarGroup),w={...x&&{"--avatar-cutout-bg":x}};return r.length===0?null:s.jsxs("div",{className:L,ref:y,style:w,children:[r.map((v,d,C)=>{const S=d+1>=C.length;if(v.wrapper){const M=v.wrapper;return s.jsx("div",{style:{clipPath:S&&!o?void 0:`url(#${g})`,marginRight:_},children:s.jsx(M,{children:s.jsx(We,{size:a,shape:i,...v})})},Ve(v)+d)}return s.jsx("div",{style:{clipPath:S&&!o?void 0:`url(#${g})`,marginRight:_},children:s.jsx(We,{size:a,shape:i,...v})},Ve(v)+d)}),o>0&&s.jsx("div",{style:{marginRight:_},children:s.jsx(We,{size:a,shape:i,icon:()=>ma(o),colorScheme:"gray",variant:"light",...l})})]})},Ba=Object.assign(We,{Group:Pa}),Ua="_wrapper_ecbsu_5",Fa="_badge__container_ecbsu_6",qa="_badge__content_ecbsu_7",Wa="_interactive_ecbsu_20",Ha="_disabled_ecbsu_21",Va="_icon_ecbsu_22",he={wrapper:Ua,badge__container:Fa,badge__content:qa,interactive:Wa,disabled:Ha,icon:Va,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Ut=b.forwardRef((e,r)=>{const{icon:a,children:n,variant:i="filled",label:o,isHidden:l=!1,colorScheme:c="red",size:f=20,position:_="top-right",positionOffset:p={x:0,y:0},cutoutBackground:g,isDisabled:y,className:h,"data-testid":x="badge",...L}=e,{onClick:w,onPointerDown:v}=L,{ref:d,bgColor:C}=lt(),S=g||C,k=!y&&(!!w||!!v),I=we(he.badge__container,he[`position-${_}`]),O=we(h,he.badge__content,he[`color-${c}`],he[`variant-${i}`],{[he.disabled]:y,[he.icon]:!!a,[he.interactive]:k}),z={"--badge-height":`${f}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...S&&{"--badge-cutout-bg":S},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},F=(a==null?void 0:a({}))||o,W=D=>{k&&(w==null||w(D))};return s.jsxs("div",{className:he.wrapper,ref:d,"data-testid":x+"-wrapper",children:[n,!l&&s.jsx("span",{className:I,style:z,"data-testid":x+"-container",children:s.jsx("span",{...L,onClick:W,className:O,"data-testid":x+"-content",ref:r,"aria-disabled":y,children:F})})]})}),Ga="_container_op5yl_7",Ya="_image_op5yl_22",Za="_loading_op5yl_34",at={container:Ga,image:Ya,loading:Za},Xa="_loader_isv17_1",Ja="_spin_isv17_1",Ka="_accent_isv17_19",Qa="_neutral_isv17_23",es="_positive_isv17_27",ts="_negative_isv17_31",rs="_gray_isv17_35",as="_special_isv17_39",ss="_contrast_isv17_43",ns="_container_isv17_47",os="_overlay_isv17_57",De={loader:Xa,spin:Ja,accent:Ka,neutral:Qa,positive:es,negative:ts,gray:rs,special:as,contrast:ss,container:ns,overlay:os,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Ft=b.forwardRef(({size:e=24,variant:r="accent",className:a,"data-testid":n="loader",style:i,...o},l)=>{const c=we(De.loader,De[r],De[`size-${e}`],a);return s.jsx("svg",{ref:l,className:c,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:i,...o,children:s.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),is=b.forwardRef((e,r)=>{const{loading:a=!1,size:n=24,variant:i="accent",children:o,className:l,style:c,"data-testid":f,..._}=e,p=we(De.container,l);return s.jsxs("div",{ref:r,className:p,style:c,"data-testid":f,..._,children:[o,a&&s.jsx("div",{className:De.overlay,children:s.jsx(Ft,{size:n,variant:i,"data-testid":`${f}-spinner`})})]})}),qt=b.forwardRef((e,r)=>e.children?s.jsx(is,{ref:r,...e}):s.jsx(Ft,{ref:r,...e})),ls=({width:e=48,height:r=48,className:a,"data-testid":n})=>s.jsx("svg",{width:e,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:s.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),cs=b.forwardRef((e,r)=>{const{alt:a="",loading:n="lazy",src:i,isLoading:o=!1,className:l,"data-testid":c="image",onError:f,onLoad:_,...p}=e,[g,y]=b.useState("loading"),h=g==="error",x=(o||g==="loading")&&!h,L=g==="loaded"&&!o,w=we(at.image,{[at.loading]:x},l),v=b.useCallback(S=>{y("loaded"),_==null||_(S)},[_]),d=b.useCallback(S=>{y("error"),f==null||f(S)},[f]),C={loader:s.jsxs(b.Fragment,{children:[s.jsx(qt,{size:48,variant:"special","data-testid":`${c}-loader`}),s.jsx("img",{alt:a,src:i,onLoad:v,onError:d,style:{display:"none"}})]}),error:s.jsx(ls,{"data-testid":`${c}-fallback`}),image:s.jsx("img",{ref:r,alt:a,"data-testid":c,loading:n,src:i,className:w})};return b.useEffect(()=>{if(!i){y("error");return}y("loading")},[i]),s.jsxs("div",{className:at.container,"data-testid":`${c}-container`,...p,children:[x&&C.loader,h&&C.error,L&&C.image]})}),Wt={},Ht=b.createContext({locale:Wt}),Vt=()=>{const e=b.useContext(Ht);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},ds=()=>{const{locale:e}=Vt();return e},us={},fs={},_s={},ps=({locale:e={},theme:r,children:a,className:n})=>(b.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([o,l])=>{i.style.setProperty(o,l)})}},[r]),s.jsxs(b.Fragment,{children:[s.jsx("div",{"data-testid":"ConfigProvider-component",className:R.clsx(us,fs,_s,n)}),s.jsx(Ht.Provider,{value:{locale:e},children:a})]})),bs={},gs="_tag_1llsi_1",hs="_label_1llsi_16",ms="_iconWrapper_1llsi_20",ys="_medium_1llsi_27",xs="_large_1llsi_33",vs="_disabled_1llsi_43",ws="_neutral_1llsi_47",Cs="_positive_1llsi_53",Ss="_negative_1llsi_59",Es="_warning_1llsi_65",Ls="_vivid_1llsi_71",js="_special_1llsi_77",ks="_accent_1llsi_84",Rs="_blue_1llsi_90",Ms="_lovely_1llsi_96",Is="_dreamy_1llsi_102",Ee={tag:gs,label:hs,iconWrapper:ms,medium:ys,large:xs,disabled:vs,neutral:ws,positive:Cs,negative:Ss,warning:Es,vivid:Ls,special:js,accent:ks,blue:Rs,lovely:Ms,dreamy:Is},Ts=b.forwardRef((e,r)=>{const{className:a,children:n,componentStyle:i="neutral",size:o="medium",disabled:l=!1,showLabel:c=!!n,slotStart:f,slotEnd:_,slotStartWrapperProps:p={},slotEndWrapperProps:g={},"data-testid":y}=e,{className:h,...x}=p,{className:L,...w}=g;return s.jsxs("div",{className:R.clsx(Ee.tag,Ee[o],Ee[i],{[Ee.disabled]:l,[le["typography-label-3-regular"]]:o==="medium",[le["typography-subtitle-1-semibold"]]:o==="large"},a),"data-testid":y||"tag-component",ref:r,children:[f&&s.jsx("span",{className:R.clsx([Ee.iconWrapper,h]),...x,children:f}),c&&s.jsx("span",{className:R.clsx([Ee.label]),children:n}),_&&s.jsx("span",{className:R.clsx([Ee.iconWrapper,L]),...w,children:_})]})}),$s="_checkbox_17txq_43",Ns="_input_17txq_64",As="_icon_17txq_72",Os="_container_17txq_92",zs="_error_17txq_143",Ds="_checkboxWrapper_17txq_156",Ps="_medium_17txq_211",Bs="_large_17txq_216",Us="_label_17txq_258",ye={checkbox:$s,input:Ns,icon:As,container:Os,error:zs,checkboxWrapper:Ds,medium:Ps,large:Bs,label:Us},Fs=({width:e=12,height:r=9,className:a="",color:n="currentColor",...i})=>s.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:n})}),qs=({width:e=12,height:r=2,className:a="",color:n="currentColor",...i})=>s.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:n})}),Ws={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Hs=({size:e,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:i})=>{const{width:o,height:l}=Ws[e];return s.jsx("div",{className:ye.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?s.jsx(qs,{width:o,height:l}):s.jsx(Fs,{width:o,height:l})})},Vs=b.forwardRef((e,r)=>{const{name:a,value:n,size:i="medium",indeterminate:o=!1,loading:l=!1,error:c,disabled:f=!1,containerClassName:_,className:p,containerStyle:g,style:y,children:h,clickableLabel:x=!0,tabIndex:L,onChange:w,"data-testid":v="checkbox"}=e,[d,C]=b.useState(!1),S=n??d,M=f||l,k=!!c,I=S||o,O=R.clsx(ye.container,ye[i],_),z=R.clsx(ye.checkbox,ye[i],{[ye.error]:k},p),F=$=>{M||(C($.target.checked),w==null||w($.target.checked,$))},W=$=>{if($.key==="Enter"&&!M){$.preventDefault();const B=!I;C(B),w==null||w(B)}},D=$=>{x||$.preventDefault()},E=$=>$.stopPropagation();return s.jsxs("label",{className:O,htmlFor:a,style:g,"data-testid":v,"data-clickable-label":x,children:[s.jsx("div",{className:ye.checkboxWrapper,children:s.jsxs("div",{tabIndex:L||0,className:z,style:y,onKeyDown:W,"aria-checked":I,"aria-disabled":M,"aria-invalid":k,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${v}-label`,children:[s.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:I,disabled:M,className:ye.input,onChange:F,onClick:E,"aria-checked":I,"aria-invalid":k,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${v}-input`}),s.jsx(Hs,{name:a,size:i,isChecked:I,isDisabled:M,indeterminate:o,dataTestId:v})]})}),h&&s.jsx("span",{"data-testid":`${v}-label-text`,"data-clickable-label":x,className:ye.label,onClick:D,children:h})]})}),Gs="_typography_zt7xg_1",Ys="_disabled_zt7xg_8",Zs="_primary_zt7xg_13",Xs="_secondary_zt7xg_18",Js="_tertiary_zt7xg_23",Ks="_accent_zt7xg_28",Qs="_positive_zt7xg_38",en="_negative_zt7xg_48",tn="_warning_zt7xg_58",rn="_special_zt7xg_68",an="_contrast_zt7xg_78",Ne={typography:Gs,disabled:Ys,primary:Zs,secondary:Xs,tertiary:Js,accent:Ks,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Qs,"positive-secondary":"_positive-secondary_zt7xg_43",negative:en,"negative-secondary":"_negative-secondary_zt7xg_53",warning:tn,"warning-secondary":"_warning-secondary_zt7xg_63",special:rn,"special-secondary":"_special-secondary_zt7xg_73",contrast:an,"contrast-secondary":"_contrast-secondary_zt7xg_83"},sn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Tt=e=>{const r=Pt.forwardRef(({size:a=3,children:n,className:i,"data-testid":o,as:l,fontWeight:c="semibold",disabled:f=!1,typographyStyle:_="primary",...p},g)=>{const y=l||sn[a],h=R.clsx(Ne.typography,le[`typography-${e}-${a}-${c}`],Ne[_],{[Ne.disabled]:f},i);return n?s.jsx(y,{ref:g,className:h,"data-testid":o,...p,children:n}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},$t=e=>{const r=Pt.forwardRef(({size:a=3,children:n,className:i,"data-testid":o,as:l="p",fontWeight:c="regular",disabled:f=!1,typographyStyle:_="primary",...p},g)=>{const y=l,h=R.clsx(Ne.typography,le[`typography-${e}-${a}-${c}`],Ne[_],{[Ne.disabled]:f},i);return n?s.jsx(y,{ref:g,className:h,"data-testid":o,...p,children:n}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},it={Title:Tt("title"),Subtitle:Tt("subtitle"),Label:$t("label"),Paragraph:$t("paragraph")},nn="_inputBase_1q54n_82",on="_wrapper_1q54n_92",ln="_gripHandle_1q54n_172",cn="_error_1q54n_238",dn="_tabFocused_1q54n_245",un="_disabled_1q54n_270",fn="_loading_1q54n_277",_n="_label_1q54n_287",pn="_small_1q54n_301",bn="_large_1q54n_308",gn="_leftSection_1q54n_315",hn="_rightSection_1q54n_327",mn="_helper_1q54n_365",yn="_floatingLabel_1q54n_393",xn="_focused_1q54n_461",vn="_filled_1q54n_462",wn="_medium_1q54n_503",Cn="_characterLimit_1q54n_545",Sn="_input_1q54n_82",En="_textarea_1q54n_110",Ln="_truncate_1q54n_678",jn="_hint_1q54n_765",A={inputBase:nn,wrapper:on,"textarea-wrapper":"_textarea-wrapper_1q54n_110",gripHandle:ln,error:cn,tabFocused:dn,disabled:un,loading:fn,label:_n,small:pn,large:bn,leftSection:gn,rightSection:hn,helper:mn,floatingLabel:yn,focused:xn,filled:vn,medium:wn,characterLimit:Cn,input:Sn,textarea:En,"size-small":"_size-small_1q54n_627","size-medium":"_size-medium_1q54n_633","size-large":"_size-large_1q54n_639","with-floating-label":"_with-floating-label_1q54n_646",truncate:Ln,hint:jn,"has-hint":"_has-hint_1q54n_786","has-suffix":"_has-suffix_1q54n_792","has-limit":"_has-limit_1q54n_798"},kn=({width:e=8,height:r=8,className:a,color:n="#AABBCA"})=>s.jsx("svg",{width:e,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:n})}),Gt=({className:e="",style:r,size:a="md",color:n="currentColor",onClick:i,...o})=>{const c={display:"inline-block",color:n,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return s.jsx("svg",{className:e,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...o,children:s.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},Rn=(e,r)=>{const a=b.useRef(null),n=b.useRef(null);return b.useEffect(()=>{const i=r==="textarea"?a.current:n.current;i&&i.value!==e&&(i.value=e||"")},[e,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},Mn=(e,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!e)return;const o=a.current.scrollHeight+"px";a.current.style.setProperty("height",o,"important"),a.current.scrollTop=i;const l=a.current.closest(`.${A.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return b.useEffect(n,[e,r]),b.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},In=(e,r,a,n)=>({handleGripMouseDown:b.useCallback(o=>{if(!e||r||a||!(n==="fixed"||!n))return;o.preventDefault(),o.stopPropagation();const l=o.currentTarget.closest(`.${A.wrapper}`);if(!l)return;const c=o.clientY,f=l.clientHeight,_=g=>{const y=g.clientY-c,h=Math.min(100,f),x=Math.max(h,f+y);l.style.height=`${x}px`},p=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",p)},[e,r,a,n])}),Nt=30,Tn=b.forwardRef(({component:e="input",size:r="medium",value:a="",placeholder:n,disabled:i=!1,loading:o=!1,onFocus:l,onBlur:c,onChange:f,onKeyDown:_,onKeyUp:p,maxLength:g,className:y,style:h,truncate:x=!1,shouldShowFloatingLabelClass:L=!1,"aria-invalid":w,"aria-errormessage":v,id:d,resize:C,...S},M)=>{const{textareaRef:k,inputRef:I,currentRef:O}=Rn(a,e);if(Mn(a,C,k),b.useImperativeHandle(M,()=>O.current,[O]),e==="textarea")return s.jsx("textarea",{ref:k,id:d,value:a,placeholder:n,disabled:i||o,onFocus:l,onBlur:c,onChange:f,onKeyDown:_,onKeyUp:p,maxLength:g,className:R.clsx(A.textarea,A[`size-${r}`],L&&A["with-floating-label"],y),style:h,"aria-invalid":w,"aria-errormessage":v,"aria-describedby":v?`${d}-error`:void 0,tabIndex:0,"data-resize":C,...S});if(e==="input")return s.jsx("input",{ref:I,id:d,value:a,placeholder:n,disabled:i||o,onFocus:l,onBlur:c,onChange:f,onKeyDown:_,onKeyUp:p,maxLength:g,className:R.clsx(A.input,A[`size-${r}`],L&&A["with-floating-label"],x&&A.truncate,y),style:h,"aria-invalid":w,"aria-errormessage":v,"aria-describedby":v?`${d}-error`:void 0,tabIndex:0,...S});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Yt=b.forwardRef(({children:e,size:r="medium",error:a=!1,disabled:n=!1,loading:i=!1,className:o,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:f,prefixStyles:_,suffixStyles:p,labelProps:g,helperProps:y,showLimit:h=!1,maxLength:x,hint:L,showHint:w=!1,showHintOnEmpty:v=!1,prefix:d,suffix:C,onSuffixClick:S,placeholder:M,showLabel:k=!0,labelClassName:I,hasValue:O=!1,helper:z,id:F,value:W="",resize:D,showGrip:E=!1,...$},B)=>{const q=b.useId(),V=F||q,Q=w&&L&&(O||v),oe=L&&L.length>Nt?L.substring(0,Nt)+"...":L,Z=R.clsx(A.wrapper,a&&A.error,n&&A.disabled,i&&A.loading,Q&&A["has-hint"],C&&A["has-suffix"],h&&A["has-limit"],o),ce=R.clsx(A.floatingLabel,A[r],O&&A.filled,I),{handleGripMouseDown:ee}=In(E,n,i,D);return s.jsxs("div",{ref:B,className:A.inputBase,"data-testid":"input-base-wrapper",...$,children:[s.jsxs("div",{className:Z,style:c,"data-resize":D,"data-show-grip":E?"true":"false",...l,children:[d&&s.jsx("label",{htmlFor:V,className:A.leftSection,style:_,children:d}),C&&s.jsx("label",{htmlFor:V,className:A.rightSection,style:p,onClick:S,children:C}),M&&k&&s.jsx("label",{htmlFor:V,className:ce,style:f,...g,children:M}),e,E&&!h&&(D==="fixed"||!D)&&s.jsx("div",{className:A.gripHandle,onMouseDown:ee,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:s.jsx(kn,{})}),Q&&s.jsx("div",{className:R.clsx(A.hint,O&&A.truncate),"data-disabled":n||i,children:oe}),h&&x&&s.jsxs("div",{className:A.characterLimit,children:[(W||"").length," из ",x]})]}),z&&s.jsx("div",{className:R.clsx(A.helper,a&&A.error,(n||i)&&A.disabled),...y,id:a?`${V}-error`:void 0,children:z})]})});Yt.displayName="InputWrapperComponent";const At=Object.assign(Tn,{Wrapper:Yt}),Zt=b.forwardRef(({component:e="input",size:r="medium",className:a,error:n=!1,disabled:i=!1,loading:o=!1,placeholder:l,showLabel:c=!0,labelClassName:f,helper:_,prefix:p,suffix:g,id:y,onFocus:h,onBlur:x,onKeyDown:L,onSuffixClick:w,onChange:v,value:d="",wrapperProps:C,wrapperStyles:S,floatingLabelStyles:M,prefixStyles:k,suffixStyles:I,textareaStyles:O,labelProps:z,helperProps:F,showLimit:W=!1,maxLength:D,inputProps:E,hint:$,showHint:B=!1,showHintOnEmpty:q=!1,truncate:V=!1,resize:Q,showGrip:oe=!1,...Z},ce)=>{const ee=b.useId(),ve=y||ee,[Ae,ge]=b.useState(d),Le=d!==void 0?d:Ae,je=(Le||"").length>0,Ce=Le||"",ke=c&&(r==="large"||e==="textarea")&&!p,Ge=b.useCallback(X=>{var J;i||o||(h==null||h(),(J=E==null?void 0:E.onFocus)==null||J.call(E,X))},[h,E,i,o]),Be=b.useCallback(X=>{var J;if(X.key==="Tab"){const pe=X.target.closest(`.${A.wrapper}`);pe&&pe.classList.add(A.tabFocused)}(J=E==null?void 0:E.onKeyUp)==null||J.call(E,X)},[E]),Ye=b.useCallback(X=>{var pe;const J=X.target.closest(`.${A.wrapper}`);J&&J.classList.remove(A.tabFocused),x==null||x(),(pe=E==null?void 0:E.onBlur)==null||pe.call(E,X)},[x,E]),Ze=b.useCallback(X=>{var pe;if(i||o)return;const J=X.target.value;ge(J),v==null||v(J,X),(pe=E==null?void 0:E.onChange)==null||pe.call(E,X)},[v,E,i,o]);return b.useEffect(()=>{ge(d||"")},[d]),s.jsx(At.Wrapper,{ref:ce,size:r,error:n,disabled:i||o,loading:o,className:R.clsx(a,e==="textarea"&&A["textarea-wrapper"]),wrapperProps:C,wrapperStyles:S,floatingLabelStyles:M,prefixStyles:k,suffixStyles:I,labelProps:z,helperProps:F,showLimit:W,maxLength:D,hint:$,showHint:B,showHintOnEmpty:q,prefix:p,suffix:g,onSuffixClick:w,placeholder:l,showLabel:c,labelClassName:f,hasValue:je,helper:_,id:ve,value:Ce,showGrip:oe,resize:Q,...Z,children:s.jsx(At,{component:e,size:r,value:Ce,placeholder:l,disabled:i,loading:o,onFocus:Ge,onBlur:Ye,onChange:Ze,onKeyDown:L,onKeyUp:Be,maxLength:D,truncate:V,"data-empty":!je,shouldShowFloatingLabelClass:ke,style:e==="textarea"?O:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${ve}-error`:void 0,id:ve,resize:Q,...E})})}),re={SMALL:"small",MEDIUM:"medium",LARGE:"large"},$n=(e,r,a,n)=>{switch(e){case re.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case re.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case re.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},Nn=e=>{switch(e){case re.LARGE:return"56px";case re.MEDIUM:return"48px";case re.SMALL:return"40px";default:return"48px"}},An=e=>{switch(e){case re.SMALL:return 8;case re.MEDIUM:case re.LARGE:return 12;default:return 12}},On=(e,r,a)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),zn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Dn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Pn=(e,r,a,n)=>{const i=Nn(e),o=$n(e,r,a,n),l=An(e);switch(e){case re.LARGE:return On(i,o,l);case re.MEDIUM:return zn(i,o,l);case re.SMALL:return Dn(i,o,l);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Bn=b.forwardRef(({value:e="",onChange:r,type:a="text",placeholder:n,maxLength:i,minLength:o,autoComplete:l,autoFocus:c,size:f=re.MEDIUM,inputProps:_,error:p,disabled:g,loading:y,helper:h,prefix:x,suffix:L,clearable:w=!1,id:v,showLabel:d=!0,onFocus:C,onBlur:S,onSuffixClick:M,onClear:k,className:I,truncate:O=!0,hint:z,showHint:F=!1,showHintOnEmpty:W=!1,wrapperProps:D,labelProps:E,helperProps:$,...B},q)=>{const V=(e||"").length>0,Q=f===re.LARGE,oe=!!x,Z=Q&&d&&!x,ce=w&&V&&!(g||y),ee=()=>{r==null||r(""),k==null||k()},ve=ce?s.jsx(Gt,{size:f===re.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):L,Ae={type:a,minLength:o,autoComplete:l,autoFocus:c,..._},ge=Pn(f,Z,V,oe);return s.jsx(Zt,{size:f,error:p,disabled:g||y,loading:y,helper:h,prefix:x,suffix:ve,id:v,showLabel:Z,onFocus:C,onBlur:S,onSuffixClick:M,onChange:r,value:e,placeholder:n,className:I,wrapperStyles:ge.wrapperStyles,floatingLabelStyles:ge.floatingLabelStyles,prefixStyles:ge.prefixStyles,suffixStyles:ge.suffixStyles,wrapperProps:D,labelProps:E,helperProps:$,showLimit:!1,maxLength:i,inputProps:Ae,hint:z,showHint:F,showHintOnEmpty:W,truncate:O,...B})}),_e={SMALL:"small",MEDIUM:"medium"},He={SMALL:"12px",MEDIUM:"16px"},Un={SMALL:"xs",MEDIUM:"sm"},qe={FILL:"fill",FIXED:"fixed"},st={SMALL:"112px",MEDIUM:"56px"},Te={SMALL:"48px",MEDIUM:"22px"},me={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},xe={SMALL:48,MEDIUM:56,LARGE:112},Fn=(e,r)=>{if(e===_e.SMALL)return st.SMALL;if(r)return`${r}px`;switch(e){case _e.MEDIUM:return st.MEDIUM;default:return st.MEDIUM}},qn=(e,r)=>{if(e===_e.SMALL)return Te.SMALL;if(r)switch(r){case xe.SMALL:case xe.MEDIUM:return Te.MEDIUM;case xe.LARGE:return Te.SMALL;default:return Te.MEDIUM}switch(e){case _e.MEDIUM:return Te.MEDIUM;default:return Te.MEDIUM}},Wn=(e,r,a)=>{if(e===_e.SMALL)return me.SMALL;if(r)switch(r){case xe.SMALL:return me.MEDIUM_WITH_PREFIX;case xe.MEDIUM:return a?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;case xe.LARGE:return me.MEDIUM;default:return me.MEDIUM}switch(e){case _e.MEDIUM:return a?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;default:return me.MEDIUM}},Hn=(e,r)=>{if(e===_e.SMALL)return"small";if(r)switch(r){case xe.SMALL:return"small";case xe.MEDIUM:return"medium";case xe.LARGE:return"medium";default:return"medium"}return e},Vn=e=>Un[e.toUpperCase()],Gn=e=>He[e.toUpperCase()],Yn=(e,r,a,n)=>{const i=Fn(e,r),o=qn(e,r),l=Wn(e,r,a);return{wrapperStyles:{minHeight:i,...n===qe.FILL&&{height:"100%"},...n===qe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===_e.SMALL?He.SMALL:He.MEDIUM,transformOrigin:"left top",top:r===112&&a&&e===_e.MEDIUM?He.MEDIUM:void 0},suffixStyles:{right:Gn(e)},textareaStyles:{minHeight:o,...n===qe.FILL&&{flex:1,minHeight:0},...n===qe.FIXED&&r&&{height:o}}}},Zn=b.forwardRef(({value:e="",onChange:r,placeholder:a,maxLength:n,minLength:i,autoFocus:o,size:l=_e.MEDIUM,textareaProps:c,error:f,disabled:_,loading:p,helper:g,suffix:y,clearable:h=!1,id:x,showLabel:L=!0,onFocus:w,onBlur:v,onClear:d,onKeyDown:C,className:S,rows:M=1,showLimit:k=!1,wrapperProps:I,labelProps:O,helperProps:z,showGrip:F,minHeight:W,resize:D,...E},$)=>{const B=(e||"").length>0,q=L&&!!a&&(l===_e.SMALL||W!==48),V=h&&B&&!(_||p),Q=()=>{r==null||r(""),d==null||d()},oe=V?s.jsx(Gt,{size:Vn(l),color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):y,Z=Yn(l,W,q&&B,D),ce=Hn(l,W),ee={rows:M,minLength:i,autoFocus:o,resize:D,...c};return s.jsx(Zt,{ref:$,component:"textarea",size:ce,error:f,disabled:_||p,loading:p,helper:g,suffix:oe,id:x,showLabel:q,onFocus:w,onBlur:v,onKeyDown:C,onChange:r,value:e||"",placeholder:a,className:S,"data-floating-label":q,wrapperStyles:Z.wrapperStyles,floatingLabelStyles:Z.floatingLabelStyles,suffixStyles:Z.suffixStyles,textareaStyles:Z.textareaStyles,wrapperProps:I,labelProps:O,helperProps:z,showLimit:k&&(W===112||l===_e.SMALL),maxLength:n,inputProps:ee,resize:D,showGrip:F,...E})}),Xn="_helper_1jq7j_16",nt={helper:Xn,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Jn=({title:e,error:r,className:a="",style:n,disabled:i=!1,"data-testid":o,"aria-label":l,"aria-describedby":c})=>{const f=!!r,_=R.clsx(nt.helper,f&&nt["helper--error"],i&&nt["helper--disabled"],a),p=i?e:r||e;return s.jsx("div",{className:_,style:n,"data-testid":o,"aria-label":l,"aria-describedby":c,children:s.jsx("p",{children:p})})},Kn="_radio_1q34w_54",Qn="_checked_1q34w_75",eo="_error_1q34w_80",to="_disabled_1q34w_89",ro="_icon_1q34w_125",ao="_small_1q34w_133",so="_medium_1q34w_140",no="_large_1q34w_147",oo="_label_1q34w_154",io="_container_1q34w_180",lo="_input_1q34w_193",co="_card_1q34w_200",uo="_smallCard_1q34w_206",fo="_mediumCard_1q34w_210",_o="_largeCard_1q34w_214",ie={radio:Kn,checked:Qn,error:eo,disabled:to,icon:ro,small:ao,medium:so,large:no,label:oo,container:io,input:lo,card:co,smallCard:uo,mediumCard:fo,largeCard:_o},po="radio-container-",bo="radio-label",Xt=b.forwardRef((e,r)=>{const{name:a,id:n,value:i,size:o="large",loading:l=!1,error:c,disabled:f=!1,checked:_=!1,containerClassName:p,className:g,children:y,clickable:h="all",mode:x="default",tabIndex:L,style:w,containerStyle:v,onChange:d,"data-testid":C,...S}=e,M=!!c,k=f||l,I=h==="all",O=x==="card",z=ie[`${o}Card`],F=n??a,W=q=>{k||d==null||d(i,q)},D=q=>{q.key==="Enter"&&!k&&(q.preventDefault(),d==null||d(i))},E=q=>q.stopPropagation(),$=()=>s.jsxs("div",{className:R.clsx(ie.radio,ie[o],{[ie.checked]:_,[ie.disabled]:k,[ie.error]:M&&!k},g),style:w,tabIndex:L||1,"data-testid":`${po}${F}`,children:[s.jsx("input",{"aria-errormessage":c,"aria-invalid":M,checked:_,className:ie.input,"data-testid":`radio-${F}`,disabled:k,id:F,name:a,ref:r,type:"radio",value:i,onChange:W,onClick:E}),s.jsx("svg",{"data-testid":`radio-icon-${F}`,viewBox:"0 0 8 8",className:ie.icon,children:s.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),B=()=>s.jsxs("label",{"aria-checked":_,"aria-disabled":k,"data-testid":I?C:bo,htmlFor:F,style:v,className:R.clsx(ie.label,{[R.clsx(ie.container,ie[x],p)]:I,[z]:I&&O}),onKeyDown:D,...S,children:[$(),I&&y]});return I?B():s.jsxs("div",{className:R.clsx(ie.container,ie[x],p,{[z]:O}),"data-testid":C,children:[B(),y]})}),go="_group_o6mjt_7",ho="_vertical_o6mjt_12",mo="_horizontal_o6mjt_16",Ot={group:go,vertical:ho,horizontal:mo},yo=b.forwardRef((e,r)=>{const{id:a,name:n,value:i,options:o,className:l,radioClassName:c,disabled:f=!1,layout:_="vertical","data-testid":p,...g}=e;return s.jsx("div",{className:we(Ot.group,Ot[_],l),"data-testid":p??`radio-group-${n}`,id:a,ref:r,children:o.map(({label:y,value:h,disabled:x})=>{const L=`${n}-${String(h)}`,w=String(h)===String(i);return s.jsx(Xt,{id:L,checked:w,"data-testid":L,disabled:f||x,name:n,value:h,className:c,...g,children:y},L)})})}),xo=Object.assign(Xt,{Group:yo}),vo="_root_1jj3e_25",wo="_unordered_1jj3e_39",Co="_ordered_1jj3e_43",So="_sm_1jj3e_48",Eo="_md_1jj3e_59",Lo="_lg_1jj3e_70",jo="_xl_1jj3e_81",ot={root:vo,unordered:wo,ordered:Co,sm:So,md:Eo,lg:Lo,xl:jo},ko=e=>{const{children:r,className:a,"data-testid":n="list-item"}=e;return s.jsx("li",{"data-testid":n,className:a,children:r})},Ro=Object.assign(b.forwardRef((e,r)=>{const{variant:a="unordered",className:n,children:i,size:o="md","data-testid":l="list",...c}=e,f=a==="ordered"?"ol":"ul";return s.jsx(f,{"data-testid":l,ref:r,className:we(ot.root,ot[a],ot[o],n),...a==="ordered"&&c,children:i})}),{Item:ko}),Mo="_wrapper_1v8xn_5",Io="_viewport_1v8xn_12",To="_mask_1v8xn_26",$o="_maskLeft_1v8xn_37",No="_maskRight_1v8xn_42",Ao="_visible_1v8xn_46",Oo="_control_1v8xn_51",zo="_xs_1v8xn_70",Do="_sm_1v8xn_73",Po="_md_1v8xn_76",Bo="_left_1v8xn_80",Uo="_right_1v8xn_83",se={wrapper:Mo,viewport:Io,mask:To,maskLeft:$o,maskRight:No,visible:Ao,control:Oo,xs:zo,sm:Do,md:Po,left:Bo,right:Uo},Fo="white",qo=({children:e,withControls:r=!0,className:a,size:n})=>{const i=b.useRef(null),[o,l]=b.useState(!1),[c,f]=b.useState(!1),{ref:_,bgColor:p}=lt(),g=_??{current:null},y=p??Fo,h=r&&o,x=r&&c,L=({direction:d})=>s.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{transform:d==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:s.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),w=()=>{const d=i.current;if(!d)return;const C=Math.round(d.scrollLeft),S=Math.round(d.scrollLeft+d.clientWidth),M=Math.round(d.scrollWidth);l(C>0),f(S<M)},v=d=>{const C=i.current;if(!C)return;const S=C.clientWidth;C.scrollBy({left:d==="left"?-S:S,behavior:"smooth"})};return b.useEffect(()=>{const d=i.current;if(!d)return;const C=S=>{Math.abs(S.deltaX)>Math.abs(S.deltaY)||d.scrollWidth>d.clientWidth&&(S.preventDefault(),d.scrollBy({left:S.deltaY,behavior:"auto"}))};return d.addEventListener("wheel",C,{passive:!1}),()=>d.removeEventListener("wheel",C)},[]),b.useEffect(()=>{w();const d=i.current;if(d)return d.addEventListener("scroll",w,{passive:!0}),window.addEventListener("resize",w),()=>{d.removeEventListener("scroll",w),window.removeEventListener("resize",w)}},[]),s.jsxs("div",{ref:g,className:R.clsx(se.wrapper,a),children:[h&&s.jsx("div",{className:R.clsx(se.mask,se.maskLeft,o&&se.visible),style:{background:`linear-gradient(to right, ${y} 17%, transparent 80%)`}}),x&&s.jsx("div",{className:R.clsx(se.mask,se.maskRight,c&&se.visible),style:{background:`linear-gradient(to left, ${y} 17%, transparent 80%)`}}),s.jsx("div",{ref:i,className:se.viewport,children:e}),h&&s.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:R.clsx(se.control,se.left,se[n]),onClick:()=>v("left"),children:s.jsx(L,{direction:"left"})}),x&&s.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:R.clsx(se.control,se.right,se[n]),onClick:()=>v("right"),children:s.jsx(L,{direction:"right"})})]})},Wo="_tabBar_1ndpm_82",Ho="_primary_1ndpm_88",Vo="_secondary_1ndpm_93",Go="_tab_1ndpm_82",Yo="_md_1ndpm_125",Zo="_sm_1ndpm_129",Xo="_xs_1ndpm_133",Jo="_disabled_1ndpm_137",Ko="_selected_1ndpm_143",Qo="_tabLabel_1ndpm_222",ei="_tabPrefix_1ndpm_234",ti="_tabPostfix_1ndpm_270",K={tabBar:Wo,primary:Ho,secondary:Vo,tab:Go,md:Yo,sm:Zo,xs:Xo,disabled:Jo,selected:Ko,tabLabel:Qo,tabPrefix:ei,tabPostfix:ti},ri="md",ai=!1,si=8,ni="top-right-inside",Jt=b.createContext(null),Kt=()=>{const e=b.useContext(Jt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},oi=({children:e,defaultActiveTab:r,activeTab:a,onChange:n})=>{const[i,o]=b.useState(r),l=a!==void 0,c=l?a:i,f=_=>{l||o(_),n&&n(_)};return s.jsx(Jt.Provider,{value:{activeTab:c,setTab:f},children:e})},ii=({mode:e,item:r,isActive:a,showBadge:n,badgeProps:i,size:o,isDisabled:l,onSelectTab:c})=>{const{value:f,label:_,prefix:p,prefixWrapperProps:g={},postfix:y,postfixWrapperProps:h={}}=r,{className:x,...L}=g,{className:w,...v}=h,d={primary:le["typography-label-3-medium"],secondary:le["typography-label-3-regular"],prefix:le["typography-label-3-medium"],postfix:le["typography-label-3-medium"]},C={size:si,position:ni,...i},S=R.clsx(K.tab,K[e],K[o],{[K.selected]:a,[K.disabled]:l}),M=R.clsx(K.tabPrefix,x,K[e],d.prefix,{[K.selected]:a,[K.disabled]:l}),k=R.clsx(K.tabPostfix,w,K[e],d.postfix,{[K.selected]:a,[K.disabled]:l}),I=R.clsx(K.tabLabel,K[e],d[e]),O=F=>{a||l||(c(f),F.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},z=s.jsxs("button",{className:S,role:"tab","aria-label":_,"aria-selected":a,"aria-disabled":l,"aria-controls":`tab-panel-${f}`,"data-testid":`tab-item-${f}`,onClick:O,children:[p&&s.jsx("span",{className:M,...L,"data-testid":`tab-prefix-${f}`,children:p}),s.jsx("span",{className:I,"data-testid":`tab-label-${f}`,children:_}),y&&s.jsx("span",{className:k,...v,"data-testid":`tab-postfix-${f}`,children:y})]});return n?s.jsx(Ut,{...C,"data-testid":`tab-badge-${f}`,children:z}):z},li=({mode:e,items:r,size:a=ri,isAllItemsDisabled:n=ai})=>{const{activeTab:i,setTab:o}=Kt(),l=za();return s.jsx(qo,{size:a,withControls:l,children:s.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:R.clsx(K.tabBar,K[e]),children:r.map(c=>s.jsx(ii,{size:a,item:c,mode:e,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:n||c.isDisabled,onSelectTab:o},c.value))})})},ci=({tabValue:e,children:r,...a})=>s.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...a,children:r}),di=({children:e,...r})=>{const{activeTab:a}=Kt(),n=Array.isArray(e)?e:[e],i=(o,l)=>b.isValidElement(o)&&typeof o.props=="object"&&o.props!==null&&l in o.props;return s.jsx("div",{"data-testid":"tab-content",...r,children:n.map(o=>i(o,"tabValue")&&String(o.props.tabValue)===a?o:null)})},ui={Provider:oi,Content:di,Panel:ci,Bar:li},fi="_root_1fbbw_34",_i="_open_1fbbw_51",pi="_xs_1fbbw_55",bi="_s_1fbbw_61",gi="_m_1fbbw_67",hi="_neutral_1fbbw_73",mi="_contrast_1fbbw_78",yi="_accent_1fbbw_84",xi="_typography_1fbbw_89",vi="_title_1fbbw_89",wi="_text_1fbbw_93",Ci="_mediaWrapper_1fbbw_97",Si="_content_1fbbw_112",Ei="_closeButton_1fbbw_116",Li="_hasMedia_1fbbw_142",ji="_buttonStack_1fbbw_148",ne={root:fi,open:_i,xs:pi,s:bi,m:gi,neutral:hi,contrast:mi,accent:yi,typography:xi,title:vi,text:wi,mediaWrapper:Ci,content:Si,closeButton:Ei,hasMedia:Li,buttonStack:ji},ki=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Ri=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[s.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),s.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),ue={shiftX:64,adjustY:1},fe={adjustX:1,shiftY:!0},Mi={left:{points:["cr","cl"],overflow:fe,offset:[-22,0]},right:{points:["cl","cr"],overflow:fe,offset:[22,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-22,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:fe,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:fe,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:fe,offset:[-22,0]}},Ii={left:{points:["cr","cl"],overflow:fe,offset:[-16,0]},right:{points:["cl","cr"],overflow:fe,offset:[16,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-16,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:fe,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:fe,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:fe,offset:[-16,0]}},Ti={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},$i=(e,r,a)=>Math.min(Math.max(e,r),a),Ni=(e,r,a)=>{const n=$i(r,1,3),i=Ti[a][n];return i[Math.min(e,i.length-1)]},zt=({text:e,title:r,media:a,variant:n="neutral",size:i,classNames:o={},onClose:l,buttons:c,buttonProps:f,showClose:_})=>{const p=["neutral","accent"].includes(n)?"contrast":"primary",g=i==="m",y=!!(r&&g),h=!!(a&&g),x=c&&!!c.length,L=!!(_&&g)||!_&&g&&!x,w=i==="xs"?4:3;return s.jsxs("div",{className:ne.content,children:[h&&s.jsx("div",{className:R.clsx(ne.mediaWrapper,o.mediaWrapper),children:a}),s.jsxs("div",{className:o.textWrapper,children:[y&&s.jsx(it.Subtitle,{className:R.clsx(ne.typography,ne.title,o.typography),size:1,as:"h3",typographyStyle:p,children:r}),s.jsx(it.Label,{className:R.clsx(ne.typography,ne.text,o.typography),typographyStyle:p,size:w,children:e})]}),L&&s.jsx("button",{type:"button",className:R.clsx(ne.closeButton,ne[n],o.closeButton,{[ne.hasMedia]:h}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:s.jsx(ki,{})}),g&&x&&s.jsx("div",{className:ne.buttonStack,children:c.map((v,d)=>{const S={...Ni(d,c.length,n),...f,...v},{closeOnClick:M,...k}=S,I=O=>{var z;(z=k.onClick)==null||z.call(k,O),M&&(l==null||l())};return s.jsx(Bt,{...k,onClick:I},d)})})]})},Ai=({customContent:e,children:r,placement:a="top",contentClassNames:n,mouseEnterDelay:i=0,mouseLeaveDelay:o=.1,showArrow:l=!0,showClose:c=!0,trigger:f="hover",variant:_="neutral",size:p="s",text:g,title:y,media:h,buttons:x,buttonProps:L,onClose:w,...v})=>{const[d,C]=b.useState(!1),[S,M]=b.useState(!1),k=p==="m"?Mi:Ii,I=()=>{C(!1),w==null||w()},O=e||(p==="m"?s.jsx(zt,{classNames:n,text:g,variant:_,size:p,onClose:I,title:y,media:h,showClose:c,buttons:x,buttonProps:L}):s.jsx(zt,{classNames:n,text:g,variant:_,size:p,onClose:I}));return b.useEffect(()=>{if(d){const z=requestAnimationFrame(()=>M(!0));return()=>cancelAnimationFrame(z)}M(!1)},[d]),s.jsx(vr,{visible:d,onVisibleChange:C,classNames:{root:R.clsx(ne.root,ne[_],ne[p],S&&ne.open),...v.classNames},placement:a,overlay:()=>O,trigger:f,mouseEnterDelay:i,mouseLeaveDelay:o,motion:{motionName:"tooltipMotion"},builtinPlacements:k,showArrow:l?{content:s.jsx(Ri,{}),className:`tooltipArrow tooltipArrow-${p}`}:!1,destroyTooltipOnHide:!0,...v,children:r})},Oi="_segmentedControl_1yvz7_5",zi="_segment_1yvz7_5",Di="_activeSegmentIndicator_1yvz7_51",Pi="_stretched_1yvz7_82",Bi="_s_1yvz7_5",Ui="_icon_1yvz7_90",Fi="_label_1yvz7_94",qi="_m_1yvz7_98",Wi="_l_1yvz7_94",$e={segmentedControl:Oi,segment:zi,activeSegmentIndicator:Di,stretched:Pi,s:Bi,icon:Ui,label:Fi,m:qi,l:Wi},Dt={s:le["typography-label-3-regular"],m:le["typography-label-2-regular"],l:le["typography-label-2-regular"]},Hi=e=>{var d;const{className:r,defaultValue:a,value:n,size:i="m",segments:o,stretched:l,mode:c="label",onChange:f}=e,_=b.useId(),[p,g]=b.useState(a||o[0].value),[y,h]=b.useState({width:0,left:0}),x=b.useRef(null);b.useEffect(()=>{n&&g(n)},[n]),b.useEffect(()=>{L()},[p,o,i,l,c]);const L=()=>{if(!(x!=null&&x.current))return;const C=x.current.querySelector('[data-is-active-segment="true"]');C&&h({width:C.offsetWidth,left:C.offsetLeft})},w=(d=o.find(C=>C.value===p))==null?void 0:d.label,v=C=>{g(C),f==null||f(C)};return(o==null?void 0:o.length)===0?null:s.jsxs("div",{className:R.clsx($e.segmentedControl,$e[i],$e[c],{[$e.stretched]:l},r),"data-testid":"segmented-control-container",ref:x,children:[o==null?void 0:o.map(({label:C,value:S},M)=>{const k=()=>v(S);return s.jsxs(b.Fragment,{children:[s.jsx("input",{id:_+JSON.stringify(S),value:JSON.stringify(S),type:"radio",checked:p===S,onClick:k}),s.jsx("label",{"data-is-active-segment":p===S,className:R.clsx($e.segment,Dt[i]),htmlFor:_+JSON.stringify(S),"data-testid":"segmented-control-segment",children:C})]},Ve(JSON.stringify(S))+M)}),s.jsx("div",{className:R.clsx($e.activeSegmentIndicator,Dt[i]),"data-testid":"segmented-control-active-segment",style:{width:y.width,left:y.left},children:w})]})};exports.Avatar=Ba;exports.Badge=Ut;exports.Button=Bt;exports.Checkbox=Vs;exports.ConfigProvider=ps;exports.Helper=Jn;exports.Image=cs;exports.List=Ro;exports.Loader=qt;exports.Radio=xo;exports.SegmentedControl=Hi;exports.Tabs=ui;exports.Tag=Ts;exports.TextArea=Zn;exports.TextInput=Bn;exports.Tooltip=Ai;exports.Typography=it;exports.enUS=Wt;exports.ruRU=bs;exports.useConfig=Vt;exports.useLocale=ds;
|
|
34
|
+
*/var Lt;function ca(){return Lt||(Lt=1,function(e){(function(){var r={}.hasOwnProperty;function a(){for(var o="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(o=i(o,n(c)))}return o}function n(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return a.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var c in o)r.call(o,c)&&o[c]&&(l=i(l,c));return l}function i(o,l){return l?o?o+" "+l:o+l:o}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(rt)),rt.exports}var da=ca();const we=Cr(da),ua="_avatar_47gdj_18",fa="_clickable_47gdj_42",_a="_icon_47gdj_59",pa="_disabled_47gdj_64",ga="_loading_47gdj_69",ba="_image_47gdj_75",ha="_name_47gdj_75",ge={avatar:ua,clickable:fa,icon:_a,disabled:pa,loading:ga,image:ba,name:ha,"variant-filled":"_variant-filled_47gdj_127","color-brand":"_color-brand_47gdj_132","color-red":"_color-red_47gdj_136","color-orange":"_color-orange_47gdj_140","color-yellow":"_color-yellow_47gdj_144","color-green":"_color-green_47gdj_148","color-blue":"_color-blue_47gdj_152","color-lightblue":"_color-lightblue_47gdj_156","color-purple":"_color-purple_47gdj_160","color-gray":"_color-gray_47gdj_164","color-contrast":"_color-contrast_47gdj_168","variant-light":"_variant-light_47gdj_174","variant-outline":"_variant-outline_47gdj_246"},kt=99;function ma(e){return e<kt?`+${e}`:`${kt}+`}function Ve(e){const r=typeof e=="string"?e:JSON.stringify(e);let a=5381;for(let n=0;n<r.length;n++){const i=r.charCodeAt(n);a=(a<<5)+a+i}return a>>>0}const ya=(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=Ve(e),n=Math.abs(a)%r.length;return r[n]}const Rt=2;function wa(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,Rt).toUpperCase():r.map(a=>a[0]).slice(0,Rt).join("").toUpperCase()}const 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 ja={24:"typography-subtitle-4-semibold",32:"typography-subtitle-2-semibold",40:"typography-subtitle-1-semibold",44:"typography-subtitle-1-semibold",48:"typography-subtitle-1-semibold",56:"typography-subtitle-1-semibold",84:"typography-title-3-semibold",96:"typography-title-3-semibold",208:"typography-title-1-semibold"};function Ea(e){return ja[e]||"typography-subtitle-1-semibold"}const La="data:image/svg+xml,%3csvg%20opacity='0.9'%20preserveAspectRatio='xMinYMin%20meet'%20viewBox='0%200%20208%20208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cdefs%3e%3cfilter%20id='shadowW'%20filterUnits='userSpaceOnUse'%3e%3cfeDropShadow%20dx='-2'%20dy='-1'%20stdDeviation='5'%20flood-color='rgba(0,0,0,0.5)'/%3e%3c/filter%3e%3c/defs%3e%3cg%20filter='url(%23shadowW)'%3e%3cpath%20d='M23.9835%20174.59L113.41%20157.735L225.224%20191.671C225.224%20191.671%20250.259%20479.463%20243.525%20478.31C236.655%20477.167%20-7.79434%20482.039%20-8.17876%20476.943C-8.56308%20471.849%20-34.4445%20341.701%20-34.4445%20341.701L23.9835%20174.59Z'%20fill='darkgrey'/%3e%3cpath%20d='M-54.5558%20212.781C-85.688%20282.842%20-94.2122%20303.839%20-94.2122%20303.839L-213.504%20213.002C-214.953%20197.465%20-218.637%20181.68%20-225.636%20167.806C-234.412%20150.606%20-246.154%20149.138%20-259.595%20136.166C-267.368%20128.583%20-275.073%20140.242%20-267.3%20147.825L-259.338%20156.087C-258.869%20160.482%20-255.518%20171.861%20-254.634%20176.226C-267.475%20165.702%20-284.704%20150.246%20-300.665%20144.25C-305.079%20142.644%20-308.958%20144.46%20-311.08%20147.528C-314.628%20148.211%20-317.292%20151.458%20-317.858%20154.963C-321.103%20157.839%20-322.625%20163.354%20-319.254%20167.67C-321.407%20170.323%20-322.376%20173.998%20-320.433%20177.728C-320.274%20177.993%20-320.127%20178.12%20-320.106%20178.395C-320.997%20179.432%20-319.498%20182.78%20-320.337%20184.506C-324.035%20192.401%20-309.357%20221.757%20-285.221%20235.167C-277.291%20250.355%20-262.477%20259.485%20-261.354%20259.677C-234.512%20290.608%20-141.301%20400.999%20-97.2451%20436.169C-47.2868%20476.158%20-12.9855%20418.735%2010.6424%20317.115C34.2598%20215.358%2037.6457%20181.315%2037.6457%20181.315L116.374%20158.482C14.4423%20160.079%20-23.2964%20142.572%20-54.5558%20212.781Z'%20fill='darkgrey'/%3e%3cpath%20d='M116.781%20158.313L114.885%20158.871L61.4974%20174.391L38.0516%20181.145C38.0516%20181.145%2034.6758%20215.325%2011.0481%20316.945C9.47097%20323.572%207.88344%20330.061%206.27525%20336.275C-22.5942%20315.191%20-52.217%20295.131%20-82.0946%20275.368C-75.9632%20261.197%20-67.1116%20240.867%20-54.4359%20212.493C-30.4015%20158.477%20-2.57835%20156.516%2055.793%20157.512C72.5674%20157.77%2091.7239%20158.403%20114.133%20158.096C114.98%20158.309%20115.807%20158.247%20116.781%20158.313Z'%20fill='darkgrey'/%3e%3cpath%20d='M113.269%20157.745C175.26%20159.023%20252.771%20143.897%20266.382%20199.504C279.867%20255.26%20288.576%20280.774%20295.899%20320.932C303.221%20361.091%20322.043%20408.689%20271.897%20417.595C221.75%20426.502%20106.238%20444.495%20106.238%20444.495L78.8767%20384.662C78.8767%20384.662%20170.648%20343.813%20200.242%20332.303L185.17%20211.448L113.269%20157.745Z'%20fill='darkgrey'/%3e%3cpath%20d='M292.122%20302.108C260.506%20305.187%20228.942%20308.953%20198.219%20316.533L185.178%20211.585L140.855%20178.374L114.874%20158.871L114.144%20158.372L113.266%20157.746C127.138%20158.084%20141.774%20157.534%20156.283%20157.131C206.726%20155.818%20255.78%20156.271%20266.252%20199.654C277.643%20246.012%20285.665%20271.578%20292.122%20302.108Z'%20fill='darkgrey'/%3e%3cpath%20d='M108.001%20172.269C119.623%20168.485%20130.939%20164.308%20142.395%20160.12L112.224%20101.608L68.8441%20124.959C69.7222%20125.585%2079.0944%20154.372%2086.547%20177.904C93.7406%20175.977%20100.965%20174.463%20108.001%20172.269Z'%20fill='white'/%3e%3cpath%20d='M99.3655%20112.96C99.0934%20111.18%2098.8213%20109.401%2098.2722%20107.642L68.9864%20125.083C69.5682%20125.455%2073.8492%20138.148%2078.7406%20153.426C89.4856%20141.676%2097.5757%20127.773%2099.3655%20112.96Z'%20fill='darkgrey'/%3e%3cpath%20d='M144.524%2069.1209C143.075%2053.5829%20118.601%2039.3668%2099.9856%2038.5556C91.9262%2038.1943%2089.5107%2031.8684%2086.0605%2037.5291C77.5782%2051.7392%2049.6837%2094.9694%2052.2654%20110.837C56.0862%20133.951%2084.5691%20137.063%20102.228%20127.008C120.022%20116.942%20146.6%2091.1195%20144.524%2069.1209Z'%20fill='white'/%3e%3cpath%20d='M145.753%2072.4915C147.93%2068.3116%20146.317%2063.4483%20142.804%2060.944C142.656%2060.8166%20142.656%2060.8166%20142.507%2060.6894C143.028%2052.8957%20136.915%2047.1257%20129.979%2046.9567C129.007%2045.0914%20127.379%2043.691%20125.24%2042.883C124.903%2042.0778%20124.575%2041.4101%20123.982%2040.9009C122.651%2039.7551%20121.095%2039.3187%20119.441%2039.4435C118.081%2036.0843%20115.925%2033.2005%20112.495%2031.7977C110.348%2030.8519%20108.027%2031.304%20106.311%2032.4027C102.006%2028.5734%2096.789%2025.5051%2091.8112%2025.6038C89.736%2025.6218%2085.678%2026.8973%2084.2724%2032.1268C82.1968%2032.1449%2080.3522%2033.3917%2079.5546%2035.6676C78.427%2039.0759%2080.339%2042.3935%2083.1109%2044.2613C84.719%2045.3863%2086.9841%2046.0462%2089.0391%2045.7526C95.9026%2052.2969%20114.028%2063.1149%20118.148%2062.6657C115.532%2070.202%20113.218%2087.2698%20122.007%2088.1299C124.21%2095.3028%20116.99%20107.894%20121.368%20112.688C129.639%20104.863%20137.246%2095.5655%20141.359%2085.8391C141.496%2085.8288%20141.772%2085.808%20142.047%2085.7872C148.14%2083.9429%20149.527%2076.6377%20145.753%2072.4915Z'%20fill='darkgrey'/%3e%3cpath%20d='M140.151%20104.76C141.594%2096.3432%20132.67%2086.3542%20121.049%2088.3387C116.251%2096.3166%20111.305%20104.167%20106.21%20111.89C109.317%20116.364%20118.141%20121.376%20125.535%20120.264C133.872%20118.804%20138.613%20113.738%20140.151%20104.76Z'%20fill='white'/%3e%3cpath%20d='M156.755%20156.883C153.217%20165.043%20147.805%20172.237%20141.188%20178.136C133.925%20184.639%20125.011%20189.465%20114.809%20191.896C95.2214%20196.558%2072.2825%20189.842%2061.6836%20174.164C58.5559%20169.414%2056.4778%20163.894%2056%20157.561C72.7744%20157.818%2091.9311%20158.451%20114.34%20158.144L113.462%20157.519C127.463%20157.709%20142.098%20157.159%20156.755%20156.883Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",ka="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",Ra="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",Ma="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",Ia={male:La,female:ka,org:Ma,neutral:Ra},We=g.forwardRef((e,r)=>{const{style:a,size:n=40,isLoading:i=!1,isDisabled:o=!1,shape:l="circle",variant:c="filled",placeholderType:f="neutral",name:p,imgSrc:_,imgAlt:m,icon:y,imgProps:b,colorScheme:x,className:S,"data-testid":v,...w}=e,{onClick:u,onPointerDown:C}=w,M=!o&&!i&&(!!u||!!C),[k,I]=g.useState(!1);g.useEffect(()=>{_&&I(!1)},[_]);const O=_&&!k?"image":y?"icon":p?"name":"placeholder",D=x||O==="name"&&va(p)||"gray",U=Ea(n),W=Sa(n,l),P=R.clsx(S,ge.avatar,ge[`variant-${c}`],ge[`color-${D}`],le[U],{[ge.disabled]:o,[ge.loading]:i,[ge.clickable]:M}),j={"--avatar-size":`${n}px`,"--avatar-border-radius":`${W}px`,...a},$={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:m||void 0,role:"img",className:ge.icon,children:y==null?void 0:y({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:ge.name,title:m||void 0,children:wa(p||"")}),placeholder:()=>s.jsx("img",{...b,"data-testid":"avatar-placeholder",className:ge.image,src:Ia[f],alt:m||void 0}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...b,className:ge.image,src:_||void 0,alt:m||void 0,onLoad:()=>I(!1),onError:q=>{var V;I(!0),(V=b==null?void 0:b.onError)==null||V.call(b,q)}})},z=q=>{M&&(u==null||u(q))};return s.jsx("div",{ref:r,onClick:z,className:P,style:j,"data-testid":v,"aria-disabled":o||i,children:$[O](null)})}),Ta="_avatarGroup_157g4_1",$a={avatarGroup:Ta},Na=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Aa=e=>{if(!e)return null;let r=e;for(;r;){const n=window.getComputedStyle(r).backgroundColor;if(!Na(n))return n;r=r.parentElement}return null},lt=()=>{const e=g.useRef(null),[r,a]=g.useState(null);return g.useEffect(()=>{if(e.current){const n=Aa(e.current);a(n)}},[]),{ref:e,bgColor:r}};function Mt(e,r,a){g.useEffect(()=>(window.addEventListener(e,r,a),()=>window.removeEventListener(e,r,a)),[e,r])}const It={passive:!0};function Oa(){const[e,r]=g.useState({width:0,height:0}),a=g.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Mt("resize",a,It),Mt("orientationchange",a,It),g.useEffect(a,[]),e}function Da(e=768){const{width:r}=Oa();return g.useMemo(()=>r<=e,[r,e])}const Pa=2,Ba=e=>{const{avatars:r=[],size:a=40,overlap:n=.3,shape:i="circle",overflowCount:o=0,overflowProps:l,cutoutBackground:c}=e,p=-(a*n)+Pa,{ref:_,bgColor:m}=lt(),y=c||m||"#ffffff",b=we($a.avatarGroup),x={"--avatar-cutout-bg":y};return r.length===0?null:s.jsxs("div",{className:b,ref:_,style:x,children:[r.map((S,v)=>{if(S.wrapper){const w=S.wrapper;return s.jsx("div",{style:{marginRight:p},children:s.jsx(w,{children:s.jsx(We,{size:a,shape:i,...S})})},Ve(S)+v)}return s.jsx("div",{style:{marginRight:p},children:s.jsx(We,{size:a,shape:i,...S})},Ve(S)+v)}),o>0&&s.jsx("div",{style:{marginRight:p},children:s.jsx(We,{size:a,shape:i,icon:()=>ma(o),colorScheme:"gray",variant:"light",...l})})]})},za=Object.assign(We,{Group:Ba}),Fa="_wrapper_ecbsu_5",Ua="_badge__container_ecbsu_6",qa="_badge__content_ecbsu_7",Wa="_interactive_ecbsu_20",Ha="_disabled_ecbsu_21",Va="_icon_ecbsu_22",he={wrapper:Fa,badge__container:Ua,badge__content:qa,interactive:Wa,disabled:Ha,icon:Va,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Ft=g.forwardRef((e,r)=>{const{icon:a,children:n,variant:i="filled",label:o,isHidden:l=!1,colorScheme:c="red",size:f=20,position:p="top-right",positionOffset:_={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(),E=m||C,k=!y&&(!!v||!!w),I=we(he.badge__container,he[`position-${p}`]),O=we(b,he.badge__content,he[`color-${c}`],he[`variant-${i}`],{[he.disabled]:y,[he.icon]:!!a,[he.interactive]:k}),D={"--badge-height":`${f}px`,"--badge-offset-x":`${_.x}px`,"--badge-offset-y":`${_.y}px`,...E&&{"--badge-cutout-bg":E},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},U=(a==null?void 0:a({}))||o,W=P=>{k&&(v==null||v(P))};return s.jsxs("div",{className:he.wrapper,ref:u,"data-testid":x+"-wrapper",children:[n,!l&&s.jsx("span",{className:I,style:D,"data-testid":x+"-container",children:s.jsx("span",{...S,onClick:W,className:O,"data-testid":x+"-content",ref:r,"aria-disabled":y,children:U})})]})}),Ga="_container_op5yl_7",Ya="_image_op5yl_22",Za="_loading_op5yl_34",at={container:Ga,image:Ya,loading:Za},Xa="_loader_isv17_1",Ja="_spin_isv17_1",Ka="_accent_isv17_19",Qa="_neutral_isv17_23",es="_positive_isv17_27",ts="_negative_isv17_31",rs="_gray_isv17_35",as="_special_isv17_39",ss="_contrast_isv17_43",ns="_container_isv17_47",os="_overlay_isv17_57",Pe={loader:Xa,spin:Ja,accent:Ka,neutral:Qa,positive:es,negative:ts,gray:rs,special:as,contrast:ss,container:ns,overlay:os,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"},Ut=g.forwardRef(({size:e=24,variant:r="accent",className:a,"data-testid":n="loader",style:i,...o},l)=>{const c=we(Pe.loader,Pe[r],Pe[`size-${e}`],a);return s.jsx("svg",{ref:l,className:c,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:i,...o,children:s.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),is=g.forwardRef((e,r)=>{const{loading:a=!1,size:n=24,variant:i="accent",children:o,className:l,style:c,"data-testid":f,...p}=e,_=we(Pe.container,l);return s.jsxs("div",{ref:r,className:_,style:c,"data-testid":f,...p,children:[o,a&&s.jsx("div",{className:Pe.overlay,children:s.jsx(Ut,{size:n,variant:i,"data-testid":`${f}-spinner`})})]})}),qt=g.forwardRef((e,r)=>e.children?s.jsx(is,{ref:r,...e}):s.jsx(Ut,{ref:r,...e})),ls=({width:e=48,height:r=48,className:a,"data-testid":n})=>s.jsx("svg",{width:e,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":n,children:s.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),cs=g.forwardRef((e,r)=>{const{alt:a="",loading:n="lazy",src:i,isLoading:o=!1,className:l,"data-testid":c="image",onError:f,onLoad:p,..._}=e,[m,y]=g.useState("loading"),b=m==="error",x=(o||m==="loading")&&!b,S=m==="loaded"&&!o,v=we(at.image,{[at.loading]:x},l),w=g.useCallback(E=>{y("loaded"),p==null||p(E)},[p]),u=g.useCallback(E=>{y("error"),f==null||f(E)},[f]),C={loader:s.jsxs(g.Fragment,{children:[s.jsx(qt,{size:48,variant:"special","data-testid":`${c}-loader`}),s.jsx("img",{alt:a,src:i,onLoad:w,onError:u,style:{display:"none"}})]}),error:s.jsx(ls,{"data-testid":`${c}-fallback`}),image:s.jsx("img",{ref:r,alt:a,"data-testid":c,loading:n,src:i,className:v})};return g.useEffect(()=>{if(!i){y("error");return}y("loading")},[i]),s.jsxs("div",{className:at.container,"data-testid":`${c}-container`,..._,children:[x&&C.loader,b&&C.error,S&&C.image]})}),Wt={},Ht=g.createContext({locale:Wt}),Vt=()=>{const e=g.useContext(Ht);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},ds=()=>{const{locale:e}=Vt();return e},us={},fs={},_s={},ps=({locale:e={},theme:r,children:a,className:n})=>(g.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([o,l])=>{i.style.setProperty(o,l)})}},[r]),s.jsxs(g.Fragment,{children:[s.jsx("div",{"data-testid":"ConfigProvider-component",className:R.clsx(us,fs,_s,n)}),s.jsx(Ht.Provider,{value:{locale:e},children:a})]})),gs={},bs="_tag_1llsi_1",hs="_label_1llsi_16",ms="_iconWrapper_1llsi_20",ys="_medium_1llsi_27",xs="_large_1llsi_33",vs="_disabled_1llsi_43",ws="_neutral_1llsi_47",Cs="_positive_1llsi_53",Ss="_negative_1llsi_59",js="_warning_1llsi_65",Es="_vivid_1llsi_71",Ls="_special_1llsi_77",ks="_accent_1llsi_84",Rs="_blue_1llsi_90",Ms="_lovely_1llsi_96",Is="_dreamy_1llsi_102",je={tag:bs,label:hs,iconWrapper:ms,medium:ys,large:xs,disabled:vs,neutral:ws,positive:Cs,negative:Ss,warning:js,vivid:Es,special:Ls,accent:ks,blue:Rs,lovely:Ms,dreamy:Is},Ts=g.forwardRef((e,r)=>{const{className:a,children:n,componentStyle:i="neutral",size:o="medium",disabled:l=!1,showLabel:c=!!n,slotStart:f,slotEnd:p,slotStartWrapperProps:_={},slotEndWrapperProps:m={},"data-testid":y}=e,{className:b,...x}=_,{className:S,...v}=m;return s.jsxs("div",{className:R.clsx(je.tag,je[o],je[i],{[je.disabled]:l,[le["typography-label-3-regular"]]:o==="medium",[le["typography-subtitle-1-semibold"]]:o==="large"},a),"data-testid":y||"tag-component",ref:r,children:[f&&s.jsx("span",{className:R.clsx([je.iconWrapper,b]),...x,children:f}),c&&s.jsx("span",{className:R.clsx([je.label]),children:n}),p&&s.jsx("span",{className:R.clsx([je.iconWrapper,S]),...v,children:p})]})}),$s="_checkbox_17txq_43",Ns="_input_17txq_64",As="_icon_17txq_72",Os="_container_17txq_92",Ds="_error_17txq_143",Ps="_checkboxWrapper_17txq_156",Bs="_medium_17txq_211",zs="_large_17txq_216",Fs="_label_17txq_258",ye={checkbox:$s,input:Ns,icon:As,container:Os,error:Ds,checkboxWrapper:Ps,medium:Bs,large:zs,label:Fs},Us=({width:e=12,height:r=9,className:a="",color:n="currentColor",...i})=>s.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:n})}),qs=({width:e=12,height:r=2,className:a="",color:n="currentColor",...i})=>s.jsx("svg",{className:a,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:n})}),Ws={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Hs=({size:e,isChecked:r,isDisabled:a,indeterminate:n,dataTestId:i})=>{const{width:o,height:l}=Ws[e];return s.jsx("div",{className:ye.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":n,children:n?s.jsx(qs,{width:o,height:l}):s.jsx(Us,{width:o,height:l})})},Vs=g.forwardRef((e,r)=>{const{name:a,value:n,size:i="medium",indeterminate:o=!1,loading:l=!1,error:c,disabled:f=!1,containerClassName:p,className:_,containerStyle:m,style:y,children:b,clickableLabel:x=!0,tabIndex:S,onChange:v,"data-testid":w="checkbox"}=e,[u,C]=g.useState(!1),E=n??u,M=f||l,k=!!c,I=E||o,O=R.clsx(ye.container,ye[i],p),D=R.clsx(ye.checkbox,ye[i],{[ye.error]:k},_),U=$=>{M||(C($.target.checked),v==null||v($.target.checked,$))},W=$=>{if($.key==="Enter"&&!M){$.preventDefault();const z=!I;C(z),v==null||v(z)}},P=$=>{x||$.preventDefault()},j=$=>$.stopPropagation();return s.jsxs("label",{className:O,htmlFor:a,style:m,"data-testid":w,"data-clickable-label":x,children:[s.jsx("div",{className:ye.checkboxWrapper,children:s.jsxs("div",{tabIndex:S||0,className:D,style:y,onKeyDown:W,"aria-checked":I,"aria-disabled":M,"aria-invalid":k,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[s.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:I,disabled:M,className:ye.input,onChange:U,onClick:j,"aria-checked":I,"aria-invalid":k,"aria-describedby":c?`${a}-error`:void 0,"data-testid":`${w}-input`}),s.jsx(Hs,{name:a,size:i,isChecked:I,isDisabled:M,indeterminate:o,dataTestId:w})]})}),b&&s.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":x,className:ye.label,onClick:P,children:b})]})}),Gs="_typography_zt7xg_1",Ys="_disabled_zt7xg_8",Zs="_primary_zt7xg_13",Xs="_secondary_zt7xg_18",Js="_tertiary_zt7xg_23",Ks="_accent_zt7xg_28",Qs="_positive_zt7xg_38",en="_negative_zt7xg_48",tn="_warning_zt7xg_58",rn="_special_zt7xg_68",an="_contrast_zt7xg_78",Ne={typography:Gs,disabled:Ys,primary:Zs,secondary:Xs,tertiary:Js,accent:Ks,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Qs,"positive-secondary":"_positive-secondary_zt7xg_43",negative:en,"negative-secondary":"_negative-secondary_zt7xg_53",warning:tn,"warning-secondary":"_warning-secondary_zt7xg_63",special:rn,"special-secondary":"_special-secondary_zt7xg_73",contrast:an,"contrast-secondary":"_contrast-secondary_zt7xg_83"},sn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Tt=e=>{const r=Bt.forwardRef(({size:a=3,children:n,className:i,"data-testid":o,as:l,fontWeight:c="semibold",disabled:f=!1,typographyStyle:p="primary",..._},m)=>{const y=l||sn[a],b=R.clsx(Ne.typography,le[`typography-${e}-${a}-${c}`],Ne[p],{[Ne.disabled]:f},i);return n?s.jsx(y,{ref:m,className:b,"data-testid":o,..._,children:n}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},$t=e=>{const r=Bt.forwardRef(({size:a=3,children:n,className:i,"data-testid":o,as:l="p",fontWeight:c="regular",disabled:f=!1,typographyStyle:p="primary",..._},m)=>{const y=l,b=R.clsx(Ne.typography,le[`typography-${e}-${a}-${c}`],Ne[p],{[Ne.disabled]:f},i);return n?s.jsx(y,{ref:m,className:b,"data-testid":o,..._,children:n}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},it={Title:Tt("title"),Subtitle:Tt("subtitle"),Label:$t("label"),Paragraph:$t("paragraph")},nn="_inputBase_1q54n_82",on="_wrapper_1q54n_92",ln="_gripHandle_1q54n_172",cn="_error_1q54n_238",dn="_tabFocused_1q54n_245",un="_disabled_1q54n_270",fn="_loading_1q54n_277",_n="_label_1q54n_287",pn="_small_1q54n_301",gn="_large_1q54n_308",bn="_leftSection_1q54n_315",hn="_rightSection_1q54n_327",mn="_helper_1q54n_365",yn="_floatingLabel_1q54n_393",xn="_focused_1q54n_461",vn="_filled_1q54n_462",wn="_medium_1q54n_503",Cn="_characterLimit_1q54n_545",Sn="_input_1q54n_82",jn="_textarea_1q54n_110",En="_truncate_1q54n_678",Ln="_hint_1q54n_765",A={inputBase:nn,wrapper:on,"textarea-wrapper":"_textarea-wrapper_1q54n_110",gripHandle:ln,error:cn,tabFocused:dn,disabled:un,loading:fn,label:_n,small:pn,large:gn,leftSection:bn,rightSection:hn,helper:mn,floatingLabel:yn,focused:xn,filled:vn,medium:wn,characterLimit:Cn,input:Sn,textarea:jn,"size-small":"_size-small_1q54n_627","size-medium":"_size-medium_1q54n_633","size-large":"_size-large_1q54n_639","with-floating-label":"_with-floating-label_1q54n_646",truncate:En,hint:Ln,"has-hint":"_has-hint_1q54n_786","has-suffix":"_has-suffix_1q54n_792","has-limit":"_has-limit_1q54n_798"},kn=({width:e=8,height:r=8,className:a,color:n="#AABBCA"})=>s.jsx("svg",{width:e,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:n})}),Gt=({className:e="",style:r,size:a="md",color:n="currentColor",onClick:i,...o})=>{const c={display:"inline-block",color:n,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return s.jsx("svg",{className:e,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...o,children:s.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},Rn=(e,r)=>{const a=g.useRef(null),n=g.useRef(null);return g.useEffect(()=>{const i=r==="textarea"?a.current:n.current;i&&i.value!==e&&(i.value=e||"")},[e,r]),{textareaRef:a,inputRef:n,currentRef:r==="textarea"?a:n}},Mn=(e,r,a)=>{const n=()=>{if(!a.current||r!=="hug")return;const i=a.current.scrollTop;if(a.current.style.setProperty("height","auto","important"),!e)return;const o=a.current.scrollHeight+"px";a.current.style.setProperty("height",o,"important"),a.current.scrollTop=i;const l=a.current.closest(`.${A.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return g.useEffect(n,[e,r]),g.useEffect(()=>{r==="hug"&&a.current&&n()},[]),{resizeTextArea:n}},In=(e,r,a,n)=>({handleGripMouseDown:g.useCallback(o=>{if(!e||r||a||!(n==="fixed"||!n))return;o.preventDefault(),o.stopPropagation();const l=o.currentTarget.closest(`.${A.wrapper}`);if(!l)return;const c=o.clientY,f=l.clientHeight,p=m=>{const y=m.clientY-c,b=Math.min(100,f),x=Math.max(b,f+y);l.style.height=`${x}px`},_=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",_)},[e,r,a,n])}),Nt=30,Tn=g.forwardRef(({component:e="input",size:r="medium",value:a="",placeholder:n,disabled:i=!1,loading:o=!1,onFocus:l,onBlur:c,onChange:f,onKeyDown:p,onKeyUp:_,maxLength:m,className:y,style:b,truncate:x=!1,shouldShowFloatingLabelClass:S=!1,"aria-invalid":v,"aria-errormessage":w,id:u,resize:C,...E},M)=>{const{textareaRef:k,inputRef:I,currentRef:O}=Rn(a,e);if(Mn(a,C,k),g.useImperativeHandle(M,()=>O.current,[O]),e==="textarea")return s.jsx("textarea",{ref:k,id:u,value:a,placeholder:n,disabled:i||o,onFocus:l,onBlur:c,onChange:f,onKeyDown:p,onKeyUp:_,maxLength:m,className:R.clsx(A.textarea,A[`size-${r}`],S&&A["with-floating-label"],y),style:b,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${u}-error`:void 0,tabIndex:0,"data-resize":C,...E});if(e==="input")return s.jsx("input",{ref:I,id:u,value:a,placeholder:n,disabled:i||o,onFocus:l,onBlur:c,onChange:f,onKeyDown:p,onKeyUp:_,maxLength:m,className:R.clsx(A.input,A[`size-${r}`],S&&A["with-floating-label"],x&&A.truncate,y),style:b,"aria-invalid":v,"aria-errormessage":w,"aria-describedby":w?`${u}-error`:void 0,tabIndex:0,...E});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),Yt=g.forwardRef(({children:e,size:r="medium",error:a=!1,disabled:n=!1,loading:i=!1,className:o,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:f,prefixStyles:p,suffixStyles:_,labelProps:m,helperProps:y,showLimit:b=!1,maxLength:x,hint:S,showHint:v=!1,showHintOnEmpty:w=!1,prefix:u,suffix:C,onSuffixClick:E,placeholder:M,showLabel:k=!0,labelClassName:I,hasValue:O=!1,helper:D,id:U,value:W="",resize:P,showGrip:j=!1,...$},z)=>{const q=g.useId(),V=U||q,Q=v&&S&&(O||w),oe=S&&S.length>Nt?S.substring(0,Nt)+"...":S,Z=R.clsx(A.wrapper,a&&A.error,n&&A.disabled,i&&A.loading,Q&&A["has-hint"],C&&A["has-suffix"],b&&A["has-limit"],o),ce=R.clsx(A.floatingLabel,A[r],O&&A.filled,I),{handleGripMouseDown:ee}=In(j,n,i,P);return s.jsxs("div",{ref:z,className:A.inputBase,"data-testid":"input-base-wrapper",...$,children:[s.jsxs("div",{className:Z,style:c,"data-resize":P,"data-show-grip":j?"true":"false",...l,children:[u&&s.jsx("label",{htmlFor:V,className:A.leftSection,style:p,children:u}),C&&s.jsx("label",{htmlFor:V,className:A.rightSection,style:_,onClick:E,children:C}),M&&k&&s.jsx("label",{htmlFor:V,className:ce,style:f,...m,children:M}),e,j&&!b&&(P==="fixed"||!P)&&s.jsx("div",{className:A.gripHandle,onMouseDown:ee,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:s.jsx(kn,{})}),Q&&s.jsx("div",{className:R.clsx(A.hint,O&&A.truncate),"data-disabled":n||i,children:oe}),b&&x&&s.jsxs("div",{className:A.characterLimit,children:[(W||"").length," из ",x]})]}),D&&s.jsx("div",{className:R.clsx(A.helper,a&&A.error,(n||i)&&A.disabled),...y,id:a?`${V}-error`:void 0,children:D})]})});Yt.displayName="InputWrapperComponent";const At=Object.assign(Tn,{Wrapper:Yt}),Zt=g.forwardRef(({component:e="input",size:r="medium",className:a,error:n=!1,disabled:i=!1,loading:o=!1,placeholder:l,showLabel:c=!0,labelClassName:f,helper:p,prefix:_,suffix:m,id:y,onFocus:b,onBlur:x,onKeyDown:S,onSuffixClick:v,onChange:w,value:u="",wrapperProps:C,wrapperStyles:E,floatingLabelStyles:M,prefixStyles:k,suffixStyles:I,textareaStyles:O,labelProps:D,helperProps:U,showLimit:W=!1,maxLength:P,inputProps:j,hint:$,showHint:z=!1,showHintOnEmpty:q=!1,truncate:V=!1,resize:Q,showGrip:oe=!1,...Z},ce)=>{const ee=g.useId(),ve=y||ee,[Ae,be]=g.useState(u),Ee=u!==void 0?u:Ae,Le=(Ee||"").length>0,Ce=Ee||"",ke=c&&(r==="large"||e==="textarea")&&!_,Ge=g.useCallback(X=>{var J;i||o||(b==null||b(),(J=j==null?void 0:j.onFocus)==null||J.call(j,X))},[b,j,i,o]),ze=g.useCallback(X=>{var J;if(X.key==="Tab"){const pe=X.target.closest(`.${A.wrapper}`);pe&&pe.classList.add(A.tabFocused)}(J=j==null?void 0:j.onKeyUp)==null||J.call(j,X)},[j]),Ye=g.useCallback(X=>{var pe;const J=X.target.closest(`.${A.wrapper}`);J&&J.classList.remove(A.tabFocused),x==null||x(),(pe=j==null?void 0:j.onBlur)==null||pe.call(j,X)},[x,j]),Ze=g.useCallback(X=>{var pe;if(i||o)return;const J=X.target.value;be(J),w==null||w(J,X),(pe=j==null?void 0:j.onChange)==null||pe.call(j,X)},[w,j,i,o]);return g.useEffect(()=>{be(u||"")},[u]),s.jsx(At.Wrapper,{ref:ce,size:r,error:n,disabled:i||o,loading:o,className:R.clsx(a,e==="textarea"&&A["textarea-wrapper"]),wrapperProps:C,wrapperStyles:E,floatingLabelStyles:M,prefixStyles:k,suffixStyles:I,labelProps:D,helperProps:U,showLimit:W,maxLength:P,hint:$,showHint:z,showHintOnEmpty:q,prefix:_,suffix:m,onSuffixClick:v,placeholder:l,showLabel:c,labelClassName:f,hasValue:Le,helper:p,id:ve,value:Ce,showGrip:oe,resize:Q,...Z,children:s.jsx(At,{component:e,size:r,value:Ce,placeholder:l,disabled:i,loading:o,onFocus:Ge,onBlur:Ye,onChange:Ze,onKeyDown:S,onKeyUp:ze,maxLength:P,truncate:V,"data-empty":!Le,shouldShowFloatingLabelClass:ke,style:e==="textarea"?O:void 0,"aria-invalid":!!n,"aria-errormessage":n?`${ve}-error`:void 0,id:ve,resize:Q,...j})})}),re={SMALL:"small",MEDIUM:"medium",LARGE:"large"},$n=(e,r,a,n)=>{switch(e){case re.LARGE:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case re.MEDIUM:return n?"12px 12px 12px 12px":"12px 12px 12px 16px";case re.SMALL:return"10px 12px 10px 12px";default:return"12px 16px 12px 16px"}},Nn=e=>{switch(e){case re.LARGE:return"56px";case re.MEDIUM:return"48px";case re.SMALL:return"40px";default:return"48px"}},An=e=>{switch(e){case re.SMALL:return 8;case re.MEDIUM:case re.LARGE:return 12;default:return 12}},On=(e,r,a)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Dn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Pn=(e,r,a)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`}}),Bn=(e,r,a,n)=>{const i=Nn(e),o=$n(e,r,a,n),l=An(e);switch(e){case re.LARGE:return On(i,o,l);case re.MEDIUM:return Dn(i,o,l);case re.SMALL:return Pn(i,o,l);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},zn=g.forwardRef(({value:e="",onChange:r,type:a="text",placeholder:n,maxLength:i,minLength:o,autoComplete:l,autoFocus:c,size:f=re.MEDIUM,inputProps:p,error:_,disabled:m,loading:y,helper:b,prefix:x,suffix:S,clearable:v=!1,id:w,showLabel:u=!0,onFocus:C,onBlur:E,onSuffixClick:M,onClear:k,className:I,truncate:O=!0,hint:D,showHint:U=!1,showHintOnEmpty:W=!1,wrapperProps:P,labelProps:j,helperProps:$,...z},q)=>{const V=(e||"").length>0,Q=f===re.LARGE,oe=!!x,Z=Q&&u&&!x,ce=v&&V&&!(m||y),ee=()=>{r==null||r(""),k==null||k()},ve=ce?s.jsx(Gt,{size:f===re.SMALL?"xs":"sm",color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):S,Ae={type:a,minLength:o,autoComplete:l,autoFocus:c,...p},be=Bn(f,Z,V,oe);return s.jsx(Zt,{size:f,error:_,disabled:m||y,loading:y,helper:b,prefix:x,suffix:ve,id:w,showLabel:Z,onFocus:C,onBlur:E,onSuffixClick:M,onChange:r,value:e,placeholder:n,className:I,wrapperStyles:be.wrapperStyles,floatingLabelStyles:be.floatingLabelStyles,prefixStyles:be.prefixStyles,suffixStyles:be.suffixStyles,wrapperProps:P,labelProps:j,helperProps:$,showLimit:!1,maxLength:i,inputProps:Ae,hint:D,showHint:U,showHintOnEmpty:W,truncate:O,...z})}),_e={SMALL:"small",MEDIUM:"medium"},He={SMALL:"12px",MEDIUM:"16px"},Fn={SMALL:"xs",MEDIUM:"sm"},qe={FILL:"fill",FIXED:"fixed"},st={SMALL:"112px",MEDIUM:"56px"},Te={SMALL:"48px",MEDIUM:"22px"},me={SMALL:"12px 12px 12px 12px",MEDIUM:"16px 16px 16px 16px",MEDIUM_WITH_PREFIX:"12px 16px 12px 16px",MEDIUM_FLOATING_LABEL:"8px 16px 8px 16px"},xe={SMALL:48,MEDIUM:56,LARGE:112},Un=(e,r)=>{if(e===_e.SMALL)return st.SMALL;if(r)return`${r}px`;switch(e){case _e.MEDIUM:return st.MEDIUM;default:return st.MEDIUM}},qn=(e,r)=>{if(e===_e.SMALL)return Te.SMALL;if(r)switch(r){case xe.SMALL:case xe.MEDIUM:return Te.MEDIUM;case xe.LARGE:return Te.SMALL;default:return Te.MEDIUM}switch(e){case _e.MEDIUM:return Te.MEDIUM;default:return Te.MEDIUM}},Wn=(e,r,a)=>{if(e===_e.SMALL)return me.SMALL;if(r)switch(r){case xe.SMALL:return me.MEDIUM_WITH_PREFIX;case xe.MEDIUM:return a?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;case xe.LARGE:return me.MEDIUM;default:return me.MEDIUM}switch(e){case _e.MEDIUM:return a?me.MEDIUM_FLOATING_LABEL:me.MEDIUM;default:return me.MEDIUM}},Hn=(e,r)=>{if(e===_e.SMALL)return"small";if(r)switch(r){case xe.SMALL:return"small";case xe.MEDIUM:return"medium";case xe.LARGE:return"medium";default:return"medium"}return e},Vn=e=>Fn[e.toUpperCase()],Gn=e=>He[e.toUpperCase()],Yn=(e,r,a,n)=>{const i=Un(e,r),o=qn(e,r),l=Wn(e,r,a);return{wrapperStyles:{minHeight:i,...n===qe.FILL&&{height:"100%"},...n===qe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===_e.SMALL?He.SMALL:He.MEDIUM,transformOrigin:"left top",top:r===112&&a&&e===_e.MEDIUM?He.MEDIUM:void 0},suffixStyles:{right:Gn(e)},textareaStyles:{minHeight:o,...n===qe.FILL&&{flex:1,minHeight:0},...n===qe.FIXED&&r&&{height:o}}}},Zn=g.forwardRef(({value:e="",onChange:r,placeholder:a,maxLength:n,minLength:i,autoFocus:o,size:l=_e.MEDIUM,textareaProps:c,error:f,disabled:p,loading:_,helper:m,suffix:y,clearable:b=!1,id:x,showLabel:S=!0,onFocus:v,onBlur:w,onClear:u,onKeyDown:C,className:E,rows:M=1,showLimit:k=!1,wrapperProps:I,labelProps:O,helperProps:D,showGrip:U,minHeight:W,resize:P,...j},$)=>{const z=(e||"").length>0,q=S&&!!a&&(l===_e.SMALL||W!==48),V=b&&z&&!(p||_),Q=()=>{r==null||r(""),u==null||u()},oe=V?s.jsx(Gt,{size:Vn(l),color:"var(--icon-secondary)",onClick:Q,style:{cursor:"pointer"},"data-testid":"x-icon"}):y,Z=Yn(l,W,q&&z,P),ce=Hn(l,W),ee={rows:M,minLength:i,autoFocus:o,resize:P,...c};return s.jsx(Zt,{ref:$,component:"textarea",size:ce,error:f,disabled:p||_,loading:_,helper:m,suffix:oe,id:x,showLabel:q,onFocus:v,onBlur:w,onKeyDown:C,onChange:r,value:e||"",placeholder:a,className:E,"data-floating-label":q,wrapperStyles:Z.wrapperStyles,floatingLabelStyles:Z.floatingLabelStyles,suffixStyles:Z.suffixStyles,textareaStyles:Z.textareaStyles,wrapperProps:I,labelProps:O,helperProps:D,showLimit:k&&(W===112||l===_e.SMALL),maxLength:n,inputProps:ee,resize:P,showGrip:U,...j})}),Xn="_helper_1jq7j_16",nt={helper:Xn,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Jn=({title:e,error:r,className:a="",style:n,disabled:i=!1,"data-testid":o,"aria-label":l,"aria-describedby":c})=>{const f=!!r,p=R.clsx(nt.helper,f&&nt["helper--error"],i&&nt["helper--disabled"],a),_=i?e:r||e;return s.jsx("div",{className:p,style:n,"data-testid":o,"aria-label":l,"aria-describedby":c,children:s.jsx("p",{children:_})})},Kn="_radio_1q34w_54",Qn="_checked_1q34w_75",eo="_error_1q34w_80",to="_disabled_1q34w_89",ro="_icon_1q34w_125",ao="_small_1q34w_133",so="_medium_1q34w_140",no="_large_1q34w_147",oo="_label_1q34w_154",io="_container_1q34w_180",lo="_input_1q34w_193",co="_card_1q34w_200",uo="_smallCard_1q34w_206",fo="_mediumCard_1q34w_210",_o="_largeCard_1q34w_214",ie={radio:Kn,checked:Qn,error:eo,disabled:to,icon:ro,small:ao,medium:so,large:no,label:oo,container:io,input:lo,card:co,smallCard:uo,mediumCard:fo,largeCard:_o},po="radio-container-",go="radio-label",Xt=g.forwardRef((e,r)=>{const{name:a,id:n,value:i,size:o="large",loading:l=!1,error:c,disabled:f=!1,checked:p=!1,containerClassName:_,className:m,children:y,clickable:b="all",mode:x="default",tabIndex:S,style:v,containerStyle:w,onChange:u,"data-testid":C,...E}=e,M=!!c,k=f||l,I=b==="all",O=x==="card",D=ie[`${o}Card`],U=n??a,W=q=>{k||u==null||u(i,q)},P=q=>{q.key==="Enter"&&!k&&(q.preventDefault(),u==null||u(i))},j=q=>q.stopPropagation(),$=()=>s.jsxs("div",{className:R.clsx(ie.radio,ie[o],{[ie.checked]:p,[ie.disabled]:k,[ie.error]:M&&!k},m),style:v,tabIndex:S||1,"data-testid":`${po}${U}`,children:[s.jsx("input",{"aria-errormessage":c,"aria-invalid":M,checked:p,className:ie.input,"data-testid":`radio-${U}`,disabled:k,id:U,name:a,ref:r,type:"radio",value:i,onChange:W,onClick:j}),s.jsx("svg",{"data-testid":`radio-icon-${U}`,viewBox:"0 0 8 8",className:ie.icon,children:s.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),z=()=>s.jsxs("label",{"aria-checked":p,"aria-disabled":k,"data-testid":I?C:go,htmlFor:U,style:w,className:R.clsx(ie.label,{[R.clsx(ie.container,ie[x],_)]:I,[D]:I&&O}),onKeyDown:P,...E,children:[$(),I&&y]});return I?z():s.jsxs("div",{className:R.clsx(ie.container,ie[x],_,{[D]:O}),"data-testid":C,children:[z(),y]})}),bo="_group_o6mjt_7",ho="_vertical_o6mjt_12",mo="_horizontal_o6mjt_16",Ot={group:bo,vertical:ho,horizontal:mo},yo=g.forwardRef((e,r)=>{const{id:a,name:n,value:i,options:o,className:l,radioClassName:c,disabled:f=!1,layout:p="vertical","data-testid":_,...m}=e;return s.jsx("div",{className:we(Ot.group,Ot[p],l),"data-testid":_??`radio-group-${n}`,id:a,ref:r,children:o.map(({label:y,value:b,disabled:x})=>{const S=`${n}-${String(b)}`,v=String(b)===String(i);return s.jsx(Xt,{id:S,checked:v,"data-testid":S,disabled:f||x,name:n,value:b,className:c,...m,children:y},S)})})}),xo=Object.assign(Xt,{Group:yo}),vo="_root_1jj3e_25",wo="_unordered_1jj3e_39",Co="_ordered_1jj3e_43",So="_sm_1jj3e_48",jo="_md_1jj3e_59",Eo="_lg_1jj3e_70",Lo="_xl_1jj3e_81",ot={root:vo,unordered:wo,ordered:Co,sm:So,md:jo,lg:Eo,xl:Lo},ko=e=>{const{children:r,className:a,"data-testid":n="list-item"}=e;return s.jsx("li",{"data-testid":n,className:a,children:r})},Ro=Object.assign(g.forwardRef((e,r)=>{const{variant:a="unordered",className:n,children:i,size:o="md","data-testid":l="list",...c}=e,f=a==="ordered"?"ol":"ul";return s.jsx(f,{"data-testid":l,ref:r,className:we(ot.root,ot[a],ot[o],n),...a==="ordered"&&c,children:i})}),{Item:ko}),Mo="_wrapper_1v8xn_5",Io="_viewport_1v8xn_12",To="_mask_1v8xn_26",$o="_maskLeft_1v8xn_37",No="_maskRight_1v8xn_42",Ao="_visible_1v8xn_46",Oo="_control_1v8xn_51",Do="_xs_1v8xn_70",Po="_sm_1v8xn_73",Bo="_md_1v8xn_76",zo="_left_1v8xn_80",Fo="_right_1v8xn_83",se={wrapper:Mo,viewport:Io,mask:To,maskLeft:$o,maskRight:No,visible:Ao,control:Oo,xs:Do,sm:Po,md:Bo,left:zo,right:Fo},Uo="white",qo=({children:e,withControls:r=!0,className:a,size:n})=>{const i=g.useRef(null),[o,l]=g.useState(!1),[c,f]=g.useState(!1),{ref:p,bgColor:_}=lt(),m=p??{current:null},y=_??Uo,b=r&&o,x=r&&c,S=({direction:u})=>s.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:s.jsx("g",{transform:u==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:s.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),v=()=>{const u=i.current;if(!u)return;const C=Math.round(u.scrollLeft),E=Math.round(u.scrollLeft+u.clientWidth),M=Math.round(u.scrollWidth);l(C>0),f(E<M)},w=u=>{const C=i.current;if(!C)return;const E=C.clientWidth;C.scrollBy({left:u==="left"?-E:E,behavior:"smooth"})};return g.useEffect(()=>{const u=i.current;if(!u)return;const C=E=>{Math.abs(E.deltaX)>Math.abs(E.deltaY)||u.scrollWidth>u.clientWidth&&(E.preventDefault(),u.scrollBy({left:E.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)}},[]),s.jsxs("div",{ref:m,className:R.clsx(se.wrapper,a),children:[b&&s.jsx("div",{className:R.clsx(se.mask,se.maskLeft,o&&se.visible),style:{background:`linear-gradient(to right, ${y} 17%, transparent 80%)`}}),x&&s.jsx("div",{className:R.clsx(se.mask,se.maskRight,c&&se.visible),style:{background:`linear-gradient(to left, ${y} 17%, transparent 80%)`}}),s.jsx("div",{ref:i,className:se.viewport,children:e}),b&&s.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:R.clsx(se.control,se.left,se[n]),onClick:()=>w("left"),children:s.jsx(S,{direction:"left"})}),x&&s.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:R.clsx(se.control,se.right,se[n]),onClick:()=>w("right"),children:s.jsx(S,{direction:"right"})})]})},Wo="_tabBar_1ndpm_82",Ho="_primary_1ndpm_88",Vo="_secondary_1ndpm_93",Go="_tab_1ndpm_82",Yo="_md_1ndpm_125",Zo="_sm_1ndpm_129",Xo="_xs_1ndpm_133",Jo="_disabled_1ndpm_137",Ko="_selected_1ndpm_143",Qo="_tabLabel_1ndpm_222",ei="_tabPrefix_1ndpm_234",ti="_tabPostfix_1ndpm_270",K={tabBar:Wo,primary:Ho,secondary:Vo,tab:Go,md:Yo,sm:Zo,xs:Xo,disabled:Jo,selected:Ko,tabLabel:Qo,tabPrefix:ei,tabPostfix:ti},ri="md",ai=!1,si=8,ni="top-right-inside",Jt=g.createContext(null),Kt=()=>{const e=g.useContext(Jt);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},oi=({children:e,defaultActiveTab:r,activeTab:a,onChange:n})=>{const[i,o]=g.useState(r),l=a!==void 0,c=l?a:i,f=p=>{l||o(p),n&&n(p)};return s.jsx(Jt.Provider,{value:{activeTab:c,setTab:f},children:e})},ii=({mode:e,item:r,isActive:a,showBadge:n,badgeProps:i,size:o,isDisabled:l,onSelectTab:c})=>{const{value:f,label:p,prefix:_,prefixWrapperProps:m={},postfix:y,postfixWrapperProps:b={}}=r,{className:x,...S}=m,{className:v,...w}=b,u={primary:le["typography-label-3-medium"],secondary:le["typography-label-3-regular"],prefix:le["typography-label-3-medium"],postfix:le["typography-label-3-medium"]},C={size:si,position:ni,...i},E=R.clsx(K.tab,K[e],K[o],{[K.selected]:a,[K.disabled]:l}),M=R.clsx(K.tabPrefix,x,K[e],u.prefix,{[K.selected]:a,[K.disabled]:l}),k=R.clsx(K.tabPostfix,v,K[e],u.postfix,{[K.selected]:a,[K.disabled]:l}),I=R.clsx(K.tabLabel,K[e],u[e]),O=U=>{a||l||(c(f),U.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},D=s.jsxs("button",{className:E,role:"tab","aria-label":p,"aria-selected":a,"aria-disabled":l,"aria-controls":`tab-panel-${f}`,"data-testid":`tab-item-${f}`,onClick:O,children:[_&&s.jsx("span",{className:M,...S,"data-testid":`tab-prefix-${f}`,children:_}),s.jsx("span",{className:I,"data-testid":`tab-label-${f}`,children:p}),y&&s.jsx("span",{className:k,...w,"data-testid":`tab-postfix-${f}`,children:y})]});return n?s.jsx(Ft,{...C,"data-testid":`tab-badge-${f}`,children:D}):D},li=({mode:e,items:r,size:a=ri,isAllItemsDisabled:n=ai})=>{const{activeTab:i,setTab:o}=Kt(),l=Da();return s.jsx(qo,{size:a,withControls:l,children:s.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:R.clsx(K.tabBar,K[e]),children:r.map(c=>s.jsx(ii,{size:a,item:c,mode:e,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:n||c.isDisabled,onSelectTab:o},c.value))})})},ci=({tabValue:e,children:r,...a})=>s.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...a,children:r}),di=({children:e,...r})=>{const{activeTab:a}=Kt(),n=Array.isArray(e)?e:[e],i=(o,l)=>g.isValidElement(o)&&typeof o.props=="object"&&o.props!==null&&l in o.props;return s.jsx("div",{"data-testid":"tab-content",...r,children:n.map(o=>i(o,"tabValue")&&String(o.props.tabValue)===a?o:null)})},ui={Provider:oi,Content:di,Panel:ci,Bar:li},fi="_root_1fbbw_34",_i="_open_1fbbw_51",pi="_xs_1fbbw_55",gi="_s_1fbbw_61",bi="_m_1fbbw_67",hi="_neutral_1fbbw_73",mi="_contrast_1fbbw_78",yi="_accent_1fbbw_84",xi="_typography_1fbbw_89",vi="_title_1fbbw_89",wi="_text_1fbbw_93",Ci="_mediaWrapper_1fbbw_97",Si="_content_1fbbw_112",ji="_closeButton_1fbbw_116",Ei="_hasMedia_1fbbw_142",Li="_buttonStack_1fbbw_148",ne={root:fi,open:_i,xs:pi,s:gi,m:bi,neutral:hi,contrast:mi,accent:yi,typography:xi,title:vi,text:wi,mediaWrapper:Ci,content:Si,closeButton:ji,hasMedia:Ei,buttonStack:Li},ki=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:s.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Ri=()=>s.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[s.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),s.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),ue={shiftX:64,adjustY:1},fe={adjustX:1,shiftY:!0},Mi={left:{points:["cr","cl"],overflow:fe,offset:[-22,0]},right:{points:["cl","cr"],overflow:fe,offset:[22,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-22,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:fe,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:fe,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:fe,offset:[-22,0]}},Ii={left:{points:["cr","cl"],overflow:fe,offset:[-16,0]},right:{points:["cl","cr"],overflow:fe,offset:[16,0]},top:{points:["bc","tc"],overflow:ue,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:ue,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:ue,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:fe,offset:[-16,0]},topRight:{points:["br","tr"],overflow:ue,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:fe,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:ue,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:fe,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:ue,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:fe,offset:[-16,0]}},Ti={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},$i=(e,r,a)=>{const n=ya(r,1,3),i=Ti[a][n];return i[Math.min(e,i.length-1)]},Dt=({text:e,title:r,media:a,variant:n="neutral",size:i,classNames:o={},onClose:l,buttons:c,buttonProps:f,showClose:p})=>{const _=["neutral","accent"].includes(n)?"contrast":"primary",m=i==="m",y=!!(r&&m),b=!!(a&&m),x=c&&!!c.length,S=!!(p&&m)||!p&&m&&!x,v=i==="xs"?4:3;return s.jsxs("div",{className:ne.content,children:[b&&s.jsx("div",{className:R.clsx(ne.mediaWrapper,o.mediaWrapper),children:a}),s.jsxs("div",{className:o.textWrapper,children:[y&&s.jsx(it.Subtitle,{className:R.clsx(ne.typography,ne.title,o.typography),size:1,as:"h3",typographyStyle:_,children:r}),s.jsx(it.Label,{className:R.clsx(ne.typography,ne.text,o.typography),typographyStyle:_,size:v,children:e})]}),S&&s.jsx("button",{type:"button",className:R.clsx(ne.closeButton,ne[n],o.closeButton,{[ne.hasMedia]:b}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:s.jsx(ki,{})}),m&&x&&s.jsx("div",{className:ne.buttonStack,children:c.map((w,u)=>{const E={...$i(u,c.length,n),...f,...w},{closeOnClick:M,...k}=E,I=O=>{var D;(D=k.onClick)==null||D.call(k,O),M&&(l==null||l())};return s.jsx(zt,{...k,onClick:I},u)})})]})},Ni=({customContent:e,children:r,placement:a="top",contentClassNames:n,mouseEnterDelay:i=0,mouseLeaveDelay:o=.1,showArrow:l=!0,showClose:c=!0,trigger:f="hover",variant:p="neutral",size:_="s",text:m,title:y,media:b,buttons:x,buttonProps:S,onClose:v,...w})=>{const[u,C]=g.useState(!1),[E,M]=g.useState(!1),k=_==="m"?Mi:Ii,I=()=>{C(!1),v==null||v()},O=e||(_==="m"?s.jsx(Dt,{classNames:n,text:m,variant:p,size:_,onClose:I,title:y,media:b,showClose:c,buttons:x,buttonProps:S}):s.jsx(Dt,{classNames:n,text:m,variant:p,size:_,onClose:I}));return g.useEffect(()=>{if(u){const D=requestAnimationFrame(()=>M(!0));return()=>cancelAnimationFrame(D)}M(!1)},[u]),s.jsx(vr,{visible:u,onVisibleChange:C,classNames:{root:R.clsx(ne.root,ne[p],ne[_],E&&ne.open),...w.classNames},placement:a,overlay:()=>O,trigger:f,mouseEnterDelay:i,mouseLeaveDelay:o,motion:{motionName:"tooltipMotion"},builtinPlacements:k,showArrow:l?{content:s.jsx(Ri,{}),className:`tooltipArrow tooltipArrow-${_}`}:!1,destroyTooltipOnHide:!0,...w,children:r})},Ai="_segmentedControl_1yvz7_5",Oi="_segment_1yvz7_5",Di="_activeSegmentIndicator_1yvz7_51",Pi="_stretched_1yvz7_82",Bi="_s_1yvz7_5",zi="_icon_1yvz7_90",Fi="_label_1yvz7_94",Ui="_m_1yvz7_98",qi="_l_1yvz7_94",$e={segmentedControl:Ai,segment:Oi,activeSegmentIndicator:Di,stretched:Pi,s:Bi,icon:zi,label:Fi,m:Ui,l:qi},Pt={s:le["typography-label-3-regular"],m:le["typography-label-2-regular"],l:le["typography-label-2-regular"]},Wi=e=>{var u;const{className:r,defaultValue:a,value:n,size:i="m",segments:o,stretched:l,mode:c="label",onChange:f}=e,p=g.useId(),[_,m]=g.useState(a||o[0].value),[y,b]=g.useState({width:0,left:0}),x=g.useRef(null);g.useEffect(()=>{n&&m(n)},[n]),g.useEffect(()=>{S()},[_,o,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=o.find(C=>C.value===_))==null?void 0:u.label,w=C=>{m(C),f==null||f(C)};return(o==null?void 0:o.length)===0?null:s.jsxs("div",{className:R.clsx($e.segmentedControl,$e[i],$e[c],{[$e.stretched]:l},r),"data-testid":"segmented-control-container",ref:x,children:[o==null?void 0:o.map(({label:C,value:E},M)=>{const k=()=>w(E);return s.jsxs(g.Fragment,{children:[s.jsx("input",{id:p+JSON.stringify(E),value:JSON.stringify(E),type:"radio",checked:_===E,onClick:k}),s.jsx("label",{"data-is-active-segment":_===E,className:R.clsx($e.segment,Pt[i]),htmlFor:p+JSON.stringify(E),"data-testid":"segmented-control-segment",children:C})]},Ve(JSON.stringify(E))+M)}),s.jsx("div",{className:R.clsx($e.activeSegmentIndicator,Pt[i]),"data-testid":"segmented-control-active-segment",style:{width:y.width,left:y.left},children:v})]})};exports.Avatar=za;exports.Badge=Ft;exports.Button=zt;exports.Checkbox=Vs;exports.ConfigProvider=ps;exports.Helper=Jn;exports.Image=cs;exports.List=Ro;exports.Loader=qt;exports.Radio=xo;exports.SegmentedControl=Wi;exports.Tabs=ui;exports.Tag=Ts;exports.TextArea=Zn;exports.TextInput=zn;exports.Tooltip=Ni;exports.Typography=it;exports.enUS=Wt;exports.ruRU=gs;exports.useConfig=Vt;exports.useLocale=ds;
|