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