skillgrid 0.0.24 → 0.0.25-dev-40846-input.1178444
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/components/InputBase/Input.type.d.ts +6 -2
- package/dist/components/InputBase/InputBase.type.d.ts +8 -4
- package/dist/components/List/List.d.ts +2 -3
- package/dist/components/Palette/Palette.d.ts +0 -1
- package/dist/components/TextArea/TextArea.type.d.ts +7 -3
- package/dist/components/TextArea/lib/constants.d.ts +17 -17
- package/dist/components/TextArea/lib/getters.d.ts +1 -1
- package/dist/components/TextInput/TextInput.type.d.ts +7 -3
- package/dist/components/TextInput/lib/constants.d.ts +4 -3
- package/dist/components/TextInput/lib/getters.d.ts +10 -6
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1390 -1298
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const m=require("react"),q=require("clsx");function Qt(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(r,a,s.get?s:{enumerable:!0,get:()=>t[a]})}}return r.default=t,Object.freeze(r)}const vt=Qt(m);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=m,r=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,o=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,h={},b=null,y=null;f!==void 0&&(b=""+f),d.key!==void 0&&(b=""+d.key),d.ref!==void 0&&(y=d.ref);for(p in d)s.call(d,p)&&!n.hasOwnProperty(p)&&(h[p]=d[p]);if(_&&_.defaultProps)for(p in d=_.defaultProps,d)h[p]===void 0&&(h[p]=d[p]);return{$$typeof:r,type:_,key:b,ref:y,props:h,_owner:o.current}}return Re.Fragment=a,Re.jsx=c,Re.jsxs=c,Re}var ke={};/**
|
|
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=
|
|
18
|
-
`+ue+e}}var
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var ut;function aa(){return ut||(ut=1,process.env.NODE_ENV!=="production"&&function(){var t=m,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=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"),h=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),C=Symbol.iterator,j="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var l=C&&e[C]||e[j];return typeof l=="function"?l:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){{for(var l=arguments.length,u=new Array(l>1?l-1:0),v=1;v<l;v++)u[v-1]=arguments[v];R("error",e,u)}}function R(e,l,u){{var v=w.ReactDebugCurrentFrame,T=v.getStackAddendum();T!==""&&(l+="%s",u=u.concat([T]));var I=u.map(function(E){return String(E)});I.unshift("Warning: "+l),Function.prototype.apply.call(console[e],console,I)}}var M=!1,N=!1,O=!1,A=!1,B=!1,P;P=Symbol.for("react.module.reference");function U(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===n||B||e===o||e===f||e===p||A||e===y||M||N||O||typeof e=="object"&&e!==null&&(e.$$typeof===b||e.$$typeof===h||e.$$typeof===c||e.$$typeof===_||e.$$typeof===d||e.$$typeof===P||e.getModuleId!==void 0))}function H(e,l,u){var v=e.displayName;if(v)return v;var T=l.displayName||l.name||"";return T!==""?u+"("+T+")":u}function D(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case a:return"Portal";case n:return"Profiler";case o:return"StrictMode";case f:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var l=e;return D(l)+".Consumer";case c:var u=e;return D(u._context)+".Provider";case d:return H(e,e.render,"ForwardRef");case h:var v=e.displayName||null;return v!==null?v:x(e.type)||"Memo";case b:{var T=e,I=T._payload,E=T._init;try{return x(E(I))}catch{return null}}}return null}var k=Object.assign,F=0,X,G,ee,ne,K,ae,oe;function de(){}de.__reactDisabledLog=!0;function me(){{if(F===0){X=console.log,G=console.info,ee=console.warn,ne=console.error,K=console.group,ae=console.groupCollapsed,oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:de,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}F++}}function ye(){{if(F--,F===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:X}),info:k({},e,{value:G}),warn:k({},e,{value:ee}),error:k({},e,{value:ne}),group:k({},e,{value:K}),groupCollapsed:k({},e,{value:ae}),groupEnd:k({},e,{value:oe})})}F<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var re=w.ReactCurrentDispatcher,ue;function le(e,l,u){{if(ue===void 0)try{throw Error()}catch(T){var v=T.stack.trim().match(/\n( *(at )?)/);ue=v&&v[1]||""}return`
|
|
18
|
+
`+ue+e}}var xe=!1,_e;{var ve=typeof WeakMap=="function"?WeakMap:Map;_e=new ve}function Me(e,l){if(!e||xe)return"";{var u=_e.get(e);if(u!==void 0)return u}var v;xe=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var I;I=re.current,re.current=null,me();try{if(l){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(te){v=te}Reflect.construct(e,[],E)}else{try{E.call()}catch(te){v=te}e.call(E.prototype)}}else{try{throw Error()}catch(te){v=te}e()}}catch(te){if(te&&v&&typeof te.stack=="string"){for(var S=te.stack.split(`
|
|
19
|
+
`),Q=v.stack.split(`
|
|
20
|
+
`),z=S.length-1,V=Q.length-1;z>=1&&V>=0&&S[z]!==Q[V];)V--;for(;z>=1&&V>=0;z--,V--)if(S[z]!==Q[V]){if(z!==1||V!==1)do if(z--,V--,V<0||S[z]!==Q[V]){var ie=`
|
|
21
|
+
`+S[z].replace(" at new "," at ");return e.displayName&&ie.includes("<anonymous>")&&(ie=ie.replace("<anonymous>",e.displayName)),typeof e=="function"&&_e.set(e,ie),ie}while(z>=1&&V>=0);break}}}finally{xe=!1,re.current=I,ye(),Error.prepareStackTrace=T}var Le=e?e.displayName||e.name:"",Ce=Le?le(Le):"";return typeof e=="function"&&_e.set(e,Ce),Ce}function Pe(e,l,u){return Me(e,!1)}function Fe(e){var l=e.prototype;return!!(l&&l.isReactComponent)}function Y(e,l,u){if(e==null)return"";if(typeof e=="function")return Me(e,Fe(e));if(typeof e=="string")return le(e);switch(e){case f:return le("Suspense");case p:return le("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Pe(e.render);case h:return Y(e.type,l,u);case b:{var v=e,T=v._payload,I=v._init;try{return Y(I(T),l,u)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,ce={},Je=w.ReactDebugCurrentFrame;function Ne(e){if(e){var l=e._owner,u=Y(e.type,e._source,l?l.type:null);Je.setExtraStackFrame(u)}else Je.setExtraStackFrame(null)}function Tt(e,l,u,v,T){{var I=Function.call.bind(J);for(var E in e)if(I(e,E)){var S=void 0;try{if(typeof e[E]!="function"){var Q=Error((v||"React class")+": "+u+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q.name="Invariant Violation",Q}S=e[E](l,E,v,u,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(z){S=z}S&&!(S instanceof Error)&&(Ne(T),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",v||"React class",u,E,typeof S),Ne(null)),S instanceof Error&&!(S.message in ce)&&(ce[S.message]=!0,Ne(T),g("Failed %s type: %s",u,S.message),Ne(null))}}}var It=Array.isArray;function ze(e){return It(e)}function Mt(e){{var l=typeof Symbol=="function"&&Symbol.toStringTag,u=l&&e[Symbol.toStringTag]||e.constructor.name||"Object";return u}}function Nt(e){try{return Ke(e),!1}catch{return!0}}function Ke(e){return""+e}function Qe(e){if(Nt(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Mt(e)),Ke(e)}var et=w.ReactCurrentOwner,Ot={key:!0,ref:!0,__self:!0,__source:!0},tt,at;function At(e){if(J.call(e,"ref")){var l=Object.getOwnPropertyDescriptor(e,"ref").get;if(l&&l.isReactWarning)return!1}return e.ref!==void 0}function Bt(e){if(J.call(e,"key")){var l=Object.getOwnPropertyDescriptor(e,"key").get;if(l&&l.isReactWarning)return!1}return e.key!==void 0}function Dt(e,l){typeof e.ref=="string"&&et.current}function Pt(e,l){{var u=function(){tt||(tt=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"key",{get:u,configurable:!0})}}function Ft(e,l){{var u=function(){at||(at=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",l))};u.isReactWarning=!0,Object.defineProperty(e,"ref",{get:u,configurable:!0})}}var zt=function(e,l,u,v,T,I,E){var S={$$typeof:r,type:e,key:l,ref:u,props:E,_owner:I};return S._store={},Object.defineProperty(S._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(S,"_self",{configurable:!1,enumerable:!1,writable:!1,value:v}),Object.defineProperty(S,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(S.props),Object.freeze(S)),S};function Wt(e,l,u,v,T){{var I,E={},S=null,Q=null;u!==void 0&&(Qe(u),S=""+u),Bt(l)&&(Qe(l.key),S=""+l.key),At(l)&&(Q=l.ref,Dt(l,T));for(I in l)J.call(l,I)&&!Ot.hasOwnProperty(I)&&(E[I]=l[I]);if(e&&e.defaultProps){var z=e.defaultProps;for(I in z)E[I]===void 0&&(E[I]=z[I])}if(S||Q){var V=typeof e=="function"?e.displayName||e.name||"Unknown":e;S&&Pt(E,V),Q&&Ft(E,V)}return zt(e,S,Q,T,v,et.current,E)}}var We=w.ReactCurrentOwner,rt=w.ReactDebugCurrentFrame;function Se(e){if(e){var l=e._owner,u=Y(e.type,e._source,l?l.type:null);rt.setExtraStackFrame(u)}else rt.setExtraStackFrame(null)}var He;He=!1;function Ve(e){return typeof e=="object"&&e!==null&&e.$$typeof===r}function st(){{if(We.current){var e=x(We.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function Ht(e){return""}var nt={};function Vt(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=
|
|
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=Vt(l);if(nt[u])return;nt[u]=!0;var v="";e&&e._owner&&e._owner!==We.current&&(v=" It was passed a child from "+x(e._owner.type)+"."),Se(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',u,v),Se(null)}}function it(e,l){{if(typeof e!="object")return;if(ze(e))for(var u=0;u<e.length;u++){var v=e[u];Ve(v)&&ot(v,l)}else if(Ve(e))e._store&&(e._store.validated=!0);else if(e){var T=$(e);if(typeof T=="function"&&T!==e.entries)for(var I=T.call(e),E;!(E=I.next()).done;)Ve(E.value)&&ot(E.value,l)}}}function qt(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===h))u=l.propTypes;else return;if(u){var v=x(l);Tt(u,e.props,"prop",v,e)}else if(l.PropTypes!==void 0&&!He){He=!0;var T=x(l);g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof l.getDefaultProps=="function"&&!l.getDefaultProps.isReactClassApproved&&g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(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),g("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),g("Invalid attribute `ref` supplied to `React.Fragment`."),Se(null))}}var lt={};function ct(e,l,u,v,T,I){{var E=U(e);if(!E){var S="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(S+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Q=Ht();Q?S+=Q:S+=st();var z;e===null?z="null":ze(e)?z="array":e!==void 0&&e.$$typeof===r?(z="<"+(x(e.type)||"Unknown")+" />",S=" Did you accidentally export a JSX literal instead of a component?"):z=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",z,S)}var V=Wt(e,l,u,T,I);if(V==null)return V;if(E){var ie=l.children;if(ie!==void 0)if(v)if(ze(ie)){for(var Le=0;Le<ie.length;Le++)it(ie[Le],e);Object.freeze&&Object.freeze(ie)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else it(ie,e)}if(J.call(l,"key")){var Ce=x(e),te=Object.keys(l).filter(function(Kt){return Kt!=="key"}),qe=te.length>0?"{key: someKey, "+te.join(": ..., ")+": ...}":"{key: someKey}";if(!lt[Ce+qe]){var Jt=te.length>0?"{"+te.join(": ..., ")+": ...}":"{}";g(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,qe,
|
|
30
|
+
<%s key={someKey} {...props} />`,qe,Ce,Jt,Ce),lt[Ce+qe]=!0}}return e===s?Zt(V):qt(V),V}}function Gt(e,l,u){return ct(e,l,u,!0)}function Ut(e,l,u){return ct(e,l,u,!1)}var Xt=Ut,Yt=Gt;ke.Fragment=s,ke.jsx=Xt,ke.jsxs=Yt}()),ke}var _t;function ra(){return _t||(_t=1,process.env.NODE_ENV==="production"?Oe.exports=ta():Oe.exports=aa()),Oe.exports}var i=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",_a="_negative_1abee_271",pa="_contrast_1abee_275",fa="_special_1abee_279",ga="_primary_1abee_284",ha="_secondary_1abee_285",ba="_tertiary_1abee_286",ya="_label_1abee_321",xa="_rightGroup_1abee_333",ma="_iconOnly_1abee_349",va="_large_1abee_357",Ca="_medium_1abee_361",wa="_small_1abee_365",Sa="_spaceBetween_1abee_370",La="_stretched_1abee_384",$a="_icon_1abee_349",Ea="_badge_1abee_705",ja="_badgeMedium_1abee_721",Ra="_circular_1abee_738",ka="_badgeSmall_1abee_743",Ta="_badgeExtraSmall_1abee_765",Ia="_withSubcaption_1abee_784",Ma="_subcaption_1abee_797",Na="_loader_1abee_804",Oa="_spin_1abee_1",Aa="_l_1abee_237",Ba="_m_1abee_361",Da="_s_1abee_279",Pa="_xs_1abee_869",W={button:oa,disabled:ia,loading:la,neutral:ca,accent:da,positive:ua,negative:_a,contrast:pa,special:fa,primary:ga,secondary:ha,tertiary:ba,label:ya,rightGroup:xa,iconOnly:ma,large:va,medium:Ca,small:wa,spaceBetween:Sa,stretched:La,icon:$a,badge:Ea,badgeMedium:ja,circular:Ra,badgeSmall:ka,badgeExtraSmall:Ta,withSubcaption:Ia,subcaption:Ma,loader:Na,spin:Oa,l:Aa,m:Ba,s:Da,xs:Pa},pt=({isLoading:t,showBadge:r,badgeValue:a,badgeSize:s,icon:o,children:n,postfix:c,showSubcaption:_,subcaption:d,size:f})=>{if(t)return i.jsx("span",{className:W.loader,"data-testid":"button-loader","aria-hidden":"true"});const p=s==="extra-small",h=parseInt(String(a),10),b=!isNaN(h)&&h>=0&&h<=9;return i.jsxs(i.Fragment,{children:[r&&(a||p)&&i.jsx("span",{"data-testid":"button-badge",className:q.clsx(W.badge,W[`badge${p?"ExtraSmall":s==="medium"?"Medium":"Small"}`],{[W.circular]:b&&!p}),children:!p&&a}),_&&f!=="s"&&f!=="xs"?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:W.label,children:n}),i.jsx("span",{"data-testid":"button-subcaption",className:W.subcaption,children:d})]}):n?i.jsxs(i.Fragment,{children:[i.jsx("span",{"data-testid":"button-label",className:W.label,children:n}),i.jsxs("div",{"data-testid":"button-right-group",className:W.rightGroup,children:[o&&i.jsx("span",{"data-testid":"button-icon",className:W.icon,children:o}),c&&i.jsx("span",{"data-testid":"button-postfix",className:W.postfix,children:c})]})]}):i.jsx("span",{"data-testid":"button-icon",className:W.icon,children:o})]})},Fa=m.forwardRef((t,r)=>{const{mode:a="primary",size:s="m",buttonStyle:o="neutral",loading:n=!1,disabled:c=!1,showBadge:_=!1,badgeSize:d="small",badgeValue:f,showSubcaption:p=!1,subcaption:h,stretched:b=!1,spaceBetween:y=!1,icon:C,postfix:j,className:$,children:w}=t,g=c,R=n,M=!g&&!R,N=!!C&&!w,O=q.clsx(W.button,W[s],W[a],W[o],{[W.disabled]:g,[W.loading]:R,[W.stretched]:b,[W.spaceBetween]:y&&b,[W.withSubcaption]:p&&h&&s!=="s"&&s!=="xs",[W.iconOnly]:N},$),A={isLoading:R,showBadge:_,badgeValue:f,badgeSize:d,icon:C,children:w,postfix:j,showSubcaption:p,subcaption:h,size:s};if(sa(t)){const{href:B,onClick:P,mode:U,size:H,buttonStyle:D,loading:x,disabled:k,showBadge:F,badgeSize:X,badgeValue:G,showSubcaption:ee,subcaption:ne,stretched:K,spaceBetween:ae,icon:oe,postfix:de,className:me,tabIndex:ye,children:re,"data-testid":ue,style:le,...xe}=t,_e=ve=>{M&&P&&P(ve)};return i.jsx("a",{ref:r,className:O,href:M?B:void 0,tabIndex:t.tabIndex,onClick:_e,"data-testid":ue,"aria-disabled":g||R,style:le,...xe,children:i.jsx(pt,{...A})})}if(na(t)){const{type:B="button",onClick:P,mode:U,size:H,buttonStyle:D,loading:x,disabled:k,showBadge:F,badgeSize:X,badgeValue:G,showSubcaption:ee,subcaption:ne,stretched:K,spaceBetween:ae,icon:oe,postfix:de,className:me,tabIndex:ye,children:re,"data-testid":ue,style:le,...xe}=t,_e=ve=>{M&&P&&P(ve)};return i.jsx("button",{ref:r,type:B,className:O,disabled:g,tabIndex:t.tabIndex,onClick:_e,"data-testid":ue,"aria-disabled":g||R,style:le,...xe,children:i.jsx(pt,{...A})})}return null});var Ze={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 p=arguments[c];p&&(n=i(n,s(p)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return a.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var c="";for(var p in n)r.call(n,p)&&n[p]&&(c=i(c,p));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 $e=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=b.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:i=!1,isDisabled:n=!1,shape:c="circle",variant:p="filled",placeholderType:d="neutral",name:_,imgSrc:f,imgAlt:g,icon:h,imgProps:y,colorScheme:m,className:E,"data-testid":w,...S}=t,{onClick:x,onPointerDown:j}=S,D=!n&&!i&&(!!x||!!j),[O,k]=b.useState(!1);b.useEffect(()=>{f&&k(!1)},[f]);const P=f&&!O?"image":h?"icon":_?"name":"placeholder",N=m||P==="name"&&Xa(_)||"gray",W=ar(s),C=Ct(s,c),q=G.clsx(E,de.avatar,de[`variant-${p}`],de[`color-${N}`],Te[W],{[de.disabled]:n,[de.loading]:i,[de.clickable]:D}),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",{...y,"data-testid":"avatar-placeholder",className:de.image,src:ir[d],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...y,className:de.image,src:f||void 0,alt:g||void 0,onLoad:()=>k(!1),onError:H=>{var Z;k(!0),(Z=y==null?void 0:y.onError)==null||Z.call(y,H)}})},B=H=>{D&&(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 p=Math.min(i,n)/2,d=Math.min(c,p),_=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),f=[`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}`}const pr=3,fr=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:i="circle",overflowCount:n=0,overflowProps:c}=t,p=a*s,d=-p+pr,_=Ct(a,i),g=b.useRef(dr()).current.toString(),h=$e(cr.avatarGroup),y=ur(a,a,a-p,0,a,a,_);return r.length===0?null:o.jsxs("div",{className:h,children:[r.map((m,E,w)=>{const S=E+1>=w.length;if(m.wrapper){const x=m.wrapper;return o.jsx("div",{style:{clipPath:S&&!n?void 0:`url(#${g})`,marginRight:d},children:o.jsx(x,{children:o.jsx(Ue,{size:a,shape:i,...m})})},Ye(m)+E)}return o.jsx("div",{style:{clipPath:S&&!n?void 0:`url(#${g})`,marginRight:d},children:o.jsx(Ue,{size:a,shape:i,...m})},Ye(m)+E)}),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:y,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=b.useRef(null),[r,a]=b.useState(null);return b.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=b.forwardRef((t,r)=>{const{icon:a,children:s,variant:i="filled",label:n,isHidden:c=!1,colorScheme:p="red",size:d=20,position:_="top-right",positionOffset:f={x:0,y:0},cutoutBackground:g,isDisabled:h,className:y,"data-testid":m="badge",...E}=t,{onClick:w,onPointerDown:S}=E,{ref:x,bgColor:j}=wr(),A=g||j,O=!h&&(!!w||!!S),k=$e(fe.badge__container,fe[`position-${_}`]),P=$e(y,fe.badge__content,fe[`color-${p}`],fe[`variant-${i}`],{[fe.disabled]:h,[fe.icon]:!!a,[fe.interactive]:O}),N={"--badge-height":`${d}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...A&&{"--badge-cutout-bg":A},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},W=(a==null?void 0:a({}))||n,C=q=>{O&&(w==null||w(q))};return o.jsxs("div",{className:fe.wrapper,ref:x,"data-testid":m+"-wrapper",children:[s,!c&&o.jsx("span",{className:k,style:N,"data-testid":m+"-container",children:o.jsx("span",{...E,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=b.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:i,...n},c)=>{const p=$e(ke.loader,ke[r],ke[`size-${t}`],a);return o.jsx("svg",{ref:c,className:p,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style: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=b.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:i="accent",children:n,className:c,style:p,"data-testid":d,..._}=t,f=$e(ke.container,c);return o.jsxs("div",{ref:r,className:f,style:p,"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=b.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=b.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:i,isLoading:n=!1,className:c,"data-testid":p="image",onError:d,onLoad:_,...f}=t,[g,h]=b.useState("loading"),y=g==="error",m=(n||g==="loading")&&!y,E=g==="loaded"&&!n,w=$e(Ve.image,{[Ve.loading]:m},c),S=b.useCallback(A=>{h("loaded"),_==null||_(A)},[_]),x=b.useCallback(A=>{h("error"),d==null||d(A)},[d]),j={loader:o.jsxs(b.Fragment,{children:[o.jsx(St,{size:48,variant:"special","data-testid":`${p}-loader`}),o.jsx("img",{alt:a,src:i,onLoad:S,onError:x,style:{display:"none"}})]}),error:o.jsx(Br,{"data-testid":`${p}-fallback`}),image:o.jsx("img",{ref:r,alt:a,"data-testid":p,loading:s,src:i,className:w})};return b.useEffect(()=>{if(!i){h("error");return}h("loading")},[i]),o.jsxs("div",{className:Ve.container,"data-testid":`${p}-container`,...f,children:[m&&j.loader,y&&j.error,E&&j.image]})}),Et={},Lt=b.createContext({locale:Et}),Mt=()=>{const t=b.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})=>(b.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([n,c])=>{i.style.setProperty(n,c)})}},[r]),o.jsxs(b.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=b.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:i="neutral",size:n="medium",disabled:c=!1,showLabel:p=!!s,slotStart:d,slotEnd:_,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":h}=t,{className:y,...m}=f,{className:E,...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,y]),...m,children:d}),p&&o.jsx("span",{className:G.clsx([ve.label]),children:s}),_&&o.jsx("span",{className:G.clsx([ve.iconWrapper,E]),...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=b.forwardRef((t,r)=>{const{name:a,value:s,size:i="medium",indeterminate:n=!1,loading:c=!1,error:p,disabled:d=!1,containerClassName:_,className:f,containerStyle:g,style:h,children:y,clickableLabel:m=!0,tabIndex:E,onChange:w,"data-testid":S="checkbox"}=t,[x,j]=b.useState(!1),A=s??x,D=d||c,O=!!p,k=A||n,P=G.clsx(ge.container,ge[i],_),N=G.clsx(ge.checkbox,ge[i],{[ge.error]:O},f),W=R=>{D||(j(R.target.checked),w==null||w(R.target.checked,R))},C=R=>{if(R.key==="Enter"&&!D){R.preventDefault();const B=!k;j(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":S,"data-clickable-label":m,children:[o.jsx("div",{className:ge.checkboxWrapper,children:o.jsxs("div",{tabIndex:E||0,className:N,style:h,onKeyDown:C,"aria-checked":k,"aria-disabled":D,"aria-invalid":O,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${S}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:k,disabled:D,className:ge.input,onChange:W,onClick:U,"aria-checked":k,"aria-invalid":O,"aria-describedby":p?`${a}-error`:void 0,"data-testid":`${S}-input`}),o.jsx(ws,{name:a,size:i,isChecked:k,isDisabled:D,indeterminate:n,dataTestId:S})]})}),y&&o.jsx("span",{"data-testid":`${S}-label-text`,"data-clickable-label":m,className:ge.label,onClick:q,children:y})]})}),Es="_typography_zt7xg_1",Ls="_disabled_zt7xg_8",Ms="_primary_zt7xg_13",$s="_secondary_zt7xg_18",Rs="_tertiary_zt7xg_23",js="_accent_zt7xg_28",Is="_positive_zt7xg_38",ks="_negative_zt7xg_48",Ts="_warning_zt7xg_58",As="_special_zt7xg_68",Ns="_contrast_zt7xg_78",Me={typography:Es,disabled:Ls,primary:Ms,secondary:$s,tertiary:Rs,accent:js,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Is,"positive-secondary":"_positive-secondary_zt7xg_43",negative:ks,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Ts,"warning-secondary":"_warning-secondary_zt7xg_63",special:As,"special-secondary":"_special-secondary_zt7xg_73",contrast:Ns,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Ds={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:i,"data-testid":n,as:c,fontWeight:p="semibold",disabled:d=!1,typographyStyle:_="primary",...f},g)=>{const h=c||Ds[a],y=G.clsx(Me.typography,Te[`typography-${t}-${a}-${p}`],Me[_],{[Me.disabled]:d},i);return s?o.jsx(h,{ref:g,className:y,"data-testid":n,...f,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:p="regular",disabled:d=!1,typographyStyle:_="primary",...f},g)=>{const h=c,y=G.clsx(Me.typography,Te[`typography-${t}-${a}-${p}`],Me[_],{[Me.disabled]:d},i);return s?o.jsx(h,{ref:g,className:y,"data-testid":n,...f,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 p={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[a],...r};return o.jsx("svg",{className:t,style:p,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick: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=b.useRef(null),s=b.useRef(null);return b.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 b.useEffect(s,[t,r]),b.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},dn=(t,r,a,s)=>({handleGripMouseDown:b.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${$.wrapper}`);if(!c)return;const p=n.clientY,d=c.clientHeight,_=g=>{const h=g.clientY-p,y=Math.min(100,d),m=Math.max(y,d+h);c.style.height=`${m}px`},f=()=>{document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",f)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",f)},[t,r,a,s])}),mt=30,un=b.forwardRef(({component:t="input",size:r="medium",value:a="",placeholder:s,disabled:i=!1,loading:n=!1,onFocus:c,onBlur:p,onChange:d,onKeyUp:_,maxLength:f,className:g,style:h,truncate:y=!1,shouldShowFloatingLabelClass:m=!1,"aria-invalid":E,"aria-errormessage":w,id:S,resize:x,...j},A)=>{const{textareaRef:D,inputRef:O,currentRef:k}=ln(a,t);if(cn(a,x,D),b.useImperativeHandle(A,()=>k.current,[k]),t==="textarea")return o.jsx("textarea",{ref:D,id:S,value:a,placeholder:s,disabled:i||n,onFocus:c,onBlur:p,onChange:d,onKeyUp:_,maxLength:f,className:G.clsx($.textarea,$[`size-${r}`],m&&$["with-floating-label"],g),style:h,"aria-invalid":E,"aria-errormessage":w,"aria-describedby":w?`${S}-error`:void 0,tabIndex:0,"data-resize":x,...j});if(t==="input")return o.jsx("input",{ref:O,id:S,value:a,placeholder:s,disabled:i||n,onFocus:c,onBlur:p,onChange:d,onKeyUp:_,maxLength:f,className:G.clsx($.input,$[`size-${r}`],m&&$["with-floating-label"],y&&$.truncate,g),style:h,"aria-invalid":E,"aria-errormessage":w,"aria-describedby":w?`${S}-error`:void 0,tabIndex:0,...j});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=b.forwardRef(({children:t,size:r="medium",error:a=!1,disabled:s=!1,loading:i=!1,className:n,wrapperProps:c,wrapperStyles:p,floatingLabelStyles:d,prefixStyles:_,suffixStyles:f,labelProps:g,helperProps:h,showLimit:y=!1,maxLength:m,hint:E,showHint:w=!1,showHintOnEmpty:S=!1,prefix:x,suffix:j,placeholder:A,showLabel:D=!0,labelClassName:O,hasValue:k=!1,helper:P,id:N,value:W="",resize:C,showGrip:q=!1,...U},R)=>{const B=b.useId(),H=N||B,Z=w&&E&&(k||S),Y=E&&E.length>mt?E.substring(0,mt)+"...":E,te=G.clsx($.wrapper,a&&$.error,s&&$.disabled,i&&$.loading,Z&&$["has-hint"],n),ae=G.clsx($.floatingLabel,$[r],k&&$.filled,O),{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:p,"data-resize":C,"data-show-grip":q?"true":"false",...c,children:[x&&o.jsx("label",{htmlFor:H,className:$.leftSection,style:_,children:x}),j&&o.jsx("label",{htmlFor:H,className:$.rightSection,style:f,children:j}),A&&D&&o.jsx("label",{htmlFor:H,className:ae,style:d,...g,children:A}),t,q&&!y&&(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,k&&$.truncate),"data-disabled":s||i,children:Y}),y&&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=b.forwardRef(({component:t="input",size:r="medium",className:a,error:s=!1,disabled:i=!1,loading:n=!1,placeholder:c,showLabel:p=!0,labelClassName:d,helper:_,prefix:f,suffix:g,id:h,onFocus:y,onBlur:m,onChange:E,value:w="",wrapperProps:S,wrapperStyles:x,floatingLabelStyles:j,prefixStyles:A,suffixStyles:D,textareaStyles:O,labelProps:k,helperProps:P,showLimit:N=!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=b.useId(),re=h||ae,[be,se]=b.useState(w),ye=w!==void 0?w:be,Ce=(ye||"").length>0,ue=p&&(r==="large"||t==="textarea")&&!f,ie=b.useCallback(X=>{var ee;i||n||(y==null||y(),(ee=C==null?void 0:C.onFocus)==null||ee.call(C,X))},[y,C,i,n]),pe=b.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=b.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=b.useCallback(X=>{var ce;if(i||n)return;const ee=X.target.value;se(ee),E==null||E(ee),(ce=C==null?void 0:C.onChange)==null||ce.call(C,X)},[E,C,i,n]);return b.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:S,wrapperStyles:x,floatingLabelStyles:j,prefixStyles:A,suffixStyles:D,labelProps:k,helperProps:P,showLimit:N,maxLength:W,hint:q,showHint:U,showHintOnEmpty:R,prefix:f,suffix:g,placeholder:c,showLabel:p,labelClassName:d,hasValue:Ce,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":!Ce,shouldShowFloatingLabelClass:ue,style:t==="textarea"?O: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=b.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:i,minLength:n,autoComplete:c,autoFocus:p,size:d=K.MEDIUM,inputProps:_,error:f,disabled:g,loading:h,helper:y,prefix:m,suffix:E,clearable:w=!1,id:S,showLabel:x=!0,onFocus:j,onBlur:A,className:D,truncate:O=!0,hint:k,showHint:P=!1,showHintOnEmpty:N=!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"}):E,be={type:a,minLength:n,autoComplete:c,autoFocus:p,..._},se=yn(d,Y,B,Z);return o.jsx(jt,{size:d,error:f,disabled:g||h,loading:h,helper:y,prefix:m,suffix:re,id:S,showLabel:Y,onFocus:j,onBlur:A,onChange:r,value:t||"",placeholder:s,className:D,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:k,showHint:P,showHintOnEmpty:N,truncate:O,...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"},Le={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 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}},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=b.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:i,autoFocus:n,size:c=oe.MEDIUM,textareaProps:p,error:d,disabled:_,loading:f,helper:g,suffix:h,clearable:y=!1,id:m,showLabel:E=!0,onFocus:w,onBlur:S,className:x,rows:j=1,showLimit:A=!1,wrapperProps:D,labelProps:O,helperProps:k,showGrip:P,minHeight:N,resize:W,...C},q)=>{const U=(t||"").length>0,R=E&&!!a&&(c===oe.SMALL||N!==48),B=y&&U&&!(_||f),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,N,R&&U,W),te=Sn(c,N),ae={rows:j,minLength:i,autoFocus:n,resize:W,...p};return o.jsx(jt,{ref:q,component:"textarea",size:te,error:d,disabled:_||f,loading:f,helper:g,suffix:Z,id:m,showLabel:R,onFocus:w,onBlur:S,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:D,labelProps:O,helperProps:k,showLimit:A&&(N===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":p})=>{const d=!!r,_=G.clsx(Ze.helper,d&&Ze["helper--error"],i&&Ze["helper--disabled"],a),f=i?t:r||t;return o.jsx("div",{className:_,style:s,"data-testid":n,"aria-label":c,"aria-describedby":p,children:o.jsx("p",{children:f})})};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 za(){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=o(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=o(c,_));return c}function o(n,c){return c?n?n+" "+c:n+c:n}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Ze)),Ze.exports}var Wa=za();const je=ea(Wa),Ha="_avatar_1kyiq_17",Va="_clickable_1kyiq_41",qa="_icon_1kyiq_58",Za="_disabled_1kyiq_63",Ga="_loading_1kyiq_68",Ua="_image_1kyiq_74",Xa="_name_1kyiq_74",pe={avatar:Ha,clickable:Va,icon:qa,disabled:Za,loading:Ga,image:Ua,name:Xa,"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"},Ie={"typography-title-1-semibold":"_typography-title-1-semibold_1lyxn_1","typography-title-2-semibold":"_typography-title-2-semibold_1lyxn_10","typography-title-3-semibold":"_typography-title-3-semibold_1lyxn_19","typography-title-4-semibold":"_typography-title-4-semibold_1lyxn_28","typography-title-5-semibold":"_typography-title-5-semibold_1lyxn_37","typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-subtitle-2-semibold":"_typography-subtitle-2-semibold_1lyxn_53","typography-subtitle-3-semibold":"_typography-subtitle-3-semibold_1lyxn_62","typography-subtitle-4-semibold":"_typography-subtitle-4-semibold_1lyxn_71","typography-label-1-medium":"_typography-label-1-medium_1lyxn_80","typography-label-2-medium":"_typography-label-2-medium_1lyxn_89","typography-label-3-medium":"_typography-label-3-medium_1lyxn_97","typography-label-4-medium":"_typography-label-4-medium_1lyxn_106","typography-label-5-medium":"_typography-label-5-medium_1lyxn_115","typography-label-1-regular":"_typography-label-1-regular_1lyxn_124","typography-label-2-regular":"_typography-label-2-regular_1lyxn_133","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141","typography-label-4-regular":"_typography-label-4-regular_1lyxn_150","typography-label-5-regular":"_typography-label-5-regular_1lyxn_159","typography-paragraph-1-regular":"_typography-paragraph-1-regular_1lyxn_168","typography-paragraph-2-regular":"_typography-paragraph-2-regular_1lyxn_176","typography-paragraph-3-regular":"_typography-paragraph-3-regular_1lyxn_185","typography-paragraph-4-regular":"_typography-paragraph-4-regular_1lyxn_194"},gt=99;function Ya(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 o=r.charCodeAt(s);a=(a<<5)+a+o}return a>>>0}const Ja=["red","orange","yellow","green","blue","lightblue","purple"];function Ka(t,r=Ja){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},Be=m.forwardRef((t,r)=>{const{style:a,size:s=40,isLoading:o=!1,isDisabled:n=!1,shape:c="circle",variant:_="filled",placeholderType:d="neutral",name:f,imgSrc:p,imgAlt:h,icon:b,imgProps:y,colorScheme:C,className:j,"data-testid":$,...w}=t,{onClick:g,onPointerDown:R}=w,N=!n&&!o&&(!!g||!!R),[O,A]=m.useState(!1);m.useEffect(()=>{p&&A(!1)},[p]);const B=p&&!O?"image":b?"icon":f?"name":"placeholder",P=C||B==="name"&&Ka(f)||"gray",U=ar(s),H=Ct(s,c),D=q.clsx(j,pe.avatar,pe[`variant-${_}`],pe[`color-${P}`],Ie[U],{[pe.disabled]:n,[pe.loading]:o,[pe.clickable]:N}),x={"--avatar-size":`${s}px`,"--avatar-border-radius":`${H}px`,...a},k={icon:()=>i.jsx("span",{"data-testid":"avatar-icon",title:h||void 0,role:"img",className:pe.icon,children:b==null?void 0:b({})}),name:()=>i.jsx("span",{role:"textbox","data-testid":"avatar-name",className:pe.name,title:h||void 0,children:Qa(f||"")}),placeholder:()=>i.jsx("img",{...y,"data-testid":"avatar-placeholder",className:pe.image,src:ir[d],alt:h||void 0}),image:()=>i.jsx("img",{"data-testid":"avatar-image",...y,className:pe.image,src:p||void 0,alt:h||void 0,onLoad:()=>A(!1),onError:X=>{var G;A(!0),(G=y==null?void 0:y.onError)==null||G.call(y,X)}})},F=X=>{N&&(g==null||g(X))};return i.jsx("div",{ref:r,onClick:F,className:D,style:x,"data-testid":$,"aria-disabled":n||o,children:k[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,o,n,c){const _=Math.min(o,n)/2,d=Math.min(c,_),f=["M0,0",`H${t}`,`V${r}`,"H0","V0","Z"].join(" "),p=[`M${a+d},${s}`,`L${a+o-d},${s}`,`A${d},${d} 0 0 1 ${a+o},${s+d}`,`L${a+o},${s+n-d}`,`A${d},${d} 0 0 1 ${a+o-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 _r=3,pr=t=>{const{avatars:r=[],size:a=40,overlap:s=.3,shape:o="circle",overflowCount:n=0,overflowProps:c}=t,_=a*s,d=-_+_r,f=Ct(a,o),h=m.useRef(dr()).current.toString(),b=je(cr.avatarGroup),y=ur(a,a,a-_,0,a,a,f);return r.length===0?null:i.jsxs("div",{className:b,children:[r.map((C,j,$)=>{const w=j+1>=$.length;if(C.wrapper){const g=C.wrapper;return i.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:i.jsx(g,{children:i.jsx(Be,{size:a,shape:o,...C})})},Ye(C)+j)}return i.jsx("div",{style:{clipPath:w&&!n?void 0:`url(#${h})`,marginRight:d},children:i.jsx(Be,{size:a,shape:o,...C})},Ye(C)+j)}),n>0&&i.jsx("div",{style:{marginRight:d},children:i.jsx(Be,{size:a,shape:o,icon:()=>Ya(n),colorScheme:"gray",variant:"light",...c})}),i.jsx("svg",{width:"0",height:"0",children:i.jsx("clipPath",{id:`${h}`,children:i.jsx("path",{clipPathUnits:"objectBoundingBox",d:y,clipRule:"evenodd"})})})]})},fr=Object.assign(Be,{Group:pr}),gr="_wrapper_ecbsu_5",hr="_badge__container_ecbsu_6",br="_badge__content_ecbsu_7",yr="_interactive_ecbsu_20",xr="_disabled_ecbsu_21",mr="_icon_ecbsu_22",fe={wrapper:gr,badge__container:hr,badge__content:br,interactive:yr,disabled:xr,icon:mr,"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=m.useRef(null),[r,a]=m.useState(null);return m.useEffect(()=>{if(t.current){const s=Cr(t.current);a(s)}},[]),{ref:t,bgColor:r}},Sr=m.forwardRef((t,r)=>{const{icon:a,children:s,variant:o="filled",label:n,isHidden:c=!1,colorScheme:_="red",size:d=20,position:f="top-right",positionOffset:p={x:0,y:0},cutoutBackground:h,isDisabled:b,className:y,"data-testid":C="badge",...j}=t,{onClick:$,onPointerDown:w}=j,{ref:g,bgColor:R}=wr(),M=h||R,O=!b&&(!!$||!!w),A=je(fe.badge__container,fe[`position-${f}`]),B=je(y,fe.badge__content,fe[`color-${_}`],fe[`variant-${o}`],{[fe.disabled]:b,[fe.icon]:!!a,[fe.interactive]:O}),P={"--badge-height":`${d}px`,"--badge-offset-x":`${p.x}px`,"--badge-offset-y":`${p.y}px`,...M&&{"--badge-cutout-bg":M},...o==="transparent"&&{"--badge-cutout-bg":"transparent"}},U=(a==null?void 0:a({}))||n,H=D=>{O&&($==null||$(D))};return i.jsxs("div",{className:fe.wrapper,ref:g,"data-testid":C+"-wrapper",children:[s,!c&&i.jsx("span",{className:A,style:P,"data-testid":C+"-container",children:i.jsx("span",{...j,onClick:H,className:B,"data-testid":C+"-content",ref:r,"aria-disabled":b,children:U})})]})}),Lr="_container_op5yl_7",$r="_image_op5yl_22",Er="_loading_op5yl_34",Ge={container:Lr,image:$r,loading:Er},jr="_loader_isv17_1",Rr="_spin_isv17_1",kr="_accent_isv17_19",Tr="_neutral_isv17_23",Ir="_positive_isv17_27",Mr="_negative_isv17_31",Nr="_gray_isv17_35",Or="_special_isv17_39",Ar="_contrast_isv17_43",Br="_container_isv17_47",Dr="_overlay_isv17_57",Te={loader:jr,spin:Rr,accent:kr,neutral:Tr,positive:Ir,negative:Mr,gray:Nr,special:Or,contrast:Ar,container:Br,overlay:Dr,"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=m.forwardRef(({size:t=24,variant:r="accent",className:a,"data-testid":s="loader",style:o,...n},c)=>{const _=je(Te.loader,Te[r],Te[`size-${t}`],a);return i.jsx("svg",{ref:c,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:o,...n,children:i.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=m.forwardRef((t,r)=>{const{loading:a=!1,size:s=24,variant:o="accent",children:n,className:c,style:_,"data-testid":d,...f}=t,p=je(Te.container,c);return i.jsxs("div",{ref:r,className:p,style:_,"data-testid":d,...f,children:[n,a&&i.jsx("div",{className:Te.overlay,children:i.jsx(wt,{size:s,variant:o,"data-testid":`${d}-spinner`})})]})}),St=m.forwardRef((t,r)=>t.children?i.jsx(Pr,{ref:r,...t}):i.jsx(wt,{ref:r,...t})),Fr=({width:t=48,height:r=48,className:a,"data-testid":s})=>i.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:i.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=m.forwardRef((t,r)=>{const{alt:a="",loading:s="lazy",src:o,isLoading:n=!1,className:c,"data-testid":_="image",onError:d,onLoad:f,...p}=t,[h,b]=m.useState("loading"),y=h==="error",C=(n||h==="loading")&&!y,j=h==="loaded"&&!n,$=je(Ge.image,{[Ge.loading]:C},c),w=m.useCallback(M=>{b("loaded"),f==null||f(M)},[f]),g=m.useCallback(M=>{b("error"),d==null||d(M)},[d]),R={loader:i.jsxs(m.Fragment,{children:[i.jsx(St,{size:48,variant:"special","data-testid":`${_}-loader`}),i.jsx("img",{alt:a,src:o,onLoad:w,onError:g,style:{display:"none"}})]}),error:i.jsx(Fr,{"data-testid":`${_}-fallback`}),image:i.jsx("img",{ref:r,alt:a,"data-testid":_,loading:s,src:o,className:$})};return m.useEffect(()=>{if(!o){b("error");return}b("loading")},[o]),i.jsxs("div",{className:Ge.container,"data-testid":`${_}-container`,...p,children:[C&&R.loader,y&&R.error,j&&R.image]})}),Lt={},$t=m.createContext({locale:Lt}),Et=()=>{const t=m.useContext($t);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Wr=()=>{const{locale:t}=Et();return t},Hr={},Vr={},qr={},Zr=({locale:t={},theme:r,children:a,className:s})=>(m.useLayoutEffect(()=>{if(r){const o=document.documentElement;Object.entries(r).forEach(([n,c])=>{o.style.setProperty(n,c)})}},[r]),i.jsxs(m.Fragment,{children:[i.jsx("div",{"data-testid":"ConfigProvider-component",className:q.clsx(Hr,Vr,qr,s)}),i.jsx($t.Provider,{value:{locale:t},children:a})]})),Gr={},Ur="_tag_1llsi_1",Xr="_label_1llsi_16",Yr="_iconWrapper_1llsi_20",Jr="_medium_1llsi_27",Kr="_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",we={tag:Ur,label:Xr,iconWrapper:Yr,medium:Jr,large:Kr,disabled:Qr,neutral:es,positive:ts,negative:as,warning:rs,vivid:ss,special:ns,accent:os,blue:is,lovely:ls,dreamy:cs},ds=m.forwardRef((t,r)=>{const{className:a,children:s,componentStyle:o="neutral",size:n="medium",disabled:c=!1,showLabel:_=!!s,slotStart:d,slotEnd:f,slotStartWrapperProps:p={},slotEndWrapperProps:h={},"data-testid":b}=t,{className:y,...C}=p,{className:j,...$}=h;return i.jsxs("div",{className:q.clsx(we.tag,we[n],we[o],{[we.disabled]:c,[Ie["typography-label-3-regular"]]:n==="medium",[Ie["typography-subtitle-1-semibold"]]:n==="large"},a),"data-testid":b||"tag-component",ref:r,children:[d&&i.jsx("span",{className:q.clsx([we.iconWrapper,y]),...C,children:d}),_&&i.jsx("span",{className:q.clsx([we.label]),children:s}),f&&i.jsx("span",{className:q.clsx([we.iconWrapper,j]),...$,children:f})]})}),us="_checkbox_qo5f5_43",_s="_input_qo5f5_59",ps="_icon_qo5f5_67",fs="_container_qo5f5_84",gs="_error_qo5f5_135",hs="_checkboxWrapper_qo5f5_147",bs="_medium_qo5f5_201",ys="_large_qo5f5_206",xs="_label_qo5f5_247",he={checkbox:us,input:_s,icon:ps,container:fs,error:gs,checkboxWrapper:hs,medium:bs,large:ys,label:xs},ms=({width:t=12,height:r=9,className:a="",color:s="currentColor",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.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",...o})=>i.jsx("svg",{className:a,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...o,children:i.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:o})=>{const{width:n,height:c}=Cs[t];return i.jsx("div",{className:he.icon,"data-testid":`${o}-icon`,"data-checked":r,"data-disabled":a,"data-indeterminate":s,children:s?i.jsx(vs,{width:n,height:c}):i.jsx(ms,{width:n,height:c})})},Ss=m.forwardRef((t,r)=>{const{name:a,value:s,size:o="medium",indeterminate:n=!1,loading:c=!1,error:_,disabled:d=!1,containerClassName:f,className:p,containerStyle:h,style:b,children:y,clickableLabel:C=!0,tabIndex:j,onChange:$,"data-testid":w="checkbox"}=t,[g,R]=m.useState(!1),M=s??g,N=d||c,O=!!_,A=M||n,B=q.clsx(he.container,he[o],f),P=q.clsx(he.checkbox,he[o],{[he.error]:O},p),U=k=>{N||(R(k.target.checked),$==null||$(k.target.checked,k))},H=k=>{if(k.key==="Enter"&&!N){k.preventDefault();const F=!A;R(F),$==null||$(F)}},D=k=>{C||k.preventDefault()},x=k=>k.stopPropagation();return i.jsxs("label",{className:B,htmlFor:a,style:h,"data-testid":w,"data-clickable-label":C,children:[i.jsx("div",{className:he.checkboxWrapper,children:i.jsxs("div",{tabIndex:j||0,className:P,style:b,onKeyDown:H,"aria-checked":A,"aria-disabled":N,"aria-invalid":O,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-label`,children:[i.jsx("input",{ref:r,type:"checkbox",id:a,name:a,checked:A,disabled:N,className:he.input,onChange:U,onClick:x,"aria-checked":A,"aria-invalid":O,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${w}-input`}),i.jsx(ws,{name:a,size:o,isChecked:A,isDisabled:N,indeterminate:n,dataTestId:w})]})}),y&&i.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":C,className:he.label,onClick:D,children:y})]})}),Ls="_typography_zt7xg_1",$s="_disabled_zt7xg_8",Es="_primary_zt7xg_13",js="_secondary_zt7xg_18",Rs="_tertiary_zt7xg_23",ks="_accent_zt7xg_28",Ts="_positive_zt7xg_38",Is="_negative_zt7xg_48",Ms="_warning_zt7xg_58",Ns="_special_zt7xg_68",Os="_contrast_zt7xg_78",Ee={typography:Ls,disabled:$s,primary:Es,secondary:js,tertiary:Rs,accent:ks,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Ts,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Is,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Ms,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ns,"special-secondary":"_special-secondary_zt7xg_73",contrast:Os,"contrast-secondary":"_contrast-secondary_zt7xg_83"},As={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},bt=t=>{const r=vt.forwardRef(({size:a=3,children:s,className:o,"data-testid":n,as:c,fontWeight:_="semibold",disabled:d=!1,typographyStyle:f="primary",...p},h)=>{const b=c||As[a],y=q.clsx(Ee.typography,Ie[`typography-${t}-${a}-${_}`],Ee[f],{[Ee.disabled]:d},o);return s?i.jsx(b,{ref:h,className:y,"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:o,"data-testid":n,as:c="p",fontWeight:_="regular",disabled:d=!1,typographyStyle:f="primary",...p},h)=>{const b=c,y=q.clsx(Ee.typography,Ie[`typography-${t}-${a}-${_}`],Ee[f],{[Ee.disabled]:d},o);return s?i.jsx(b,{ref:h,className:y,"data-testid":n,...p,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Bs={Title:bt("title"),Subtitle:bt("subtitle"),Label:yt("label"),Paragraph:yt("paragraph")},Ds="_base_19671_1",Ps="_content_19671_1",Fs="_background_19671_1",zs="_button_19671_1",Ws="_link_19671_1",Hs="_input_19671_96",Vs="_suffix_19671_1",qs="_prefix_19671_1",Zs="_tooltip_19671_1",Gs="_hint_19671_746",Us="_dropdown_19671_1",Xs="_popover_19671_1",Ys="_modalBackdrop_19671_1",Js="_modal_19671_1",Ks="_overlay_19671_1",Qs="_drawer_19671_1",en="_notification_19671_1",tn="_alert_19671_1",an="_toast_19671_1",rn="_loading_19671_280",sn="_error_19671_241",nn="_critical_19671_1",on="_inputBase_19671_96",ln="_wrapper_19671_106",cn="_gripHandle_19671_180",dn="_tabFocused_19671_248",un="_disabled_19671_273",_n="_label_19671_290",pn="_S_19671_303",fn="_M_19671_309",gn="_XL_19671_316",hn="_leftSection_19671_323",bn="_rightSection_19671_332",yn="_helper_19671_368",xn="_floatingLabel_19671_393",mn="_focused_19671_451",vn="_filled_19671_452",Cn="_L_19671_486",wn="_characterLimit_19671_527",Sn="_textarea_19671_120",Ln="_truncate_19671_664",L={base:Ds,content:Ps,background:Fs,button:zs,link:Ws,input:Hs,suffix:Vs,prefix:qs,tooltip:Zs,hint:Gs,dropdown:Us,popover:Xs,modalBackdrop:Ys,modal:Js,overlay:Ks,drawer:Qs,notification:en,alert:tn,toast:an,loading:rn,error:sn,critical:nn,inputBase:on,wrapper:ln,"textarea-wrapper":"_textarea-wrapper_19671_120",gripHandle:cn,tabFocused:dn,disabled:un,label:_n,S:pn,M:fn,XL:gn,leftSection:hn,rightSection:bn,helper:yn,floatingLabel:xn,focused:mn,filled:vn,L:Cn,characterLimit:wn,textarea:Sn,"size-S":"_size-S_19671_603","size-M":"_size-M_19671_613","size-L":"_size-L_19671_619","size-XL":"_size-XL_19671_625","with-floating-label":"_with-floating-label_19671_632",truncate:Ln,"has-hint":"_has-hint_19671_763","has-suffix":"_has-suffix_19671_769","has-limit":"_has-limit_19671_792"},$n=({width:t=8,height:r=8,className:a,color:s="#AABBCA"})=>i.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,children:i.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})}),jt=({className:t="",style:r,size:a="md",color:s="currentColor",onClick:o,...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 i.jsx("svg",{className:t,style:_,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:o,...n,children:i.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},En=(t,r)=>{const a=m.useRef(null),s=m.useRef(null);return m.useEffect(()=>{const o=r==="textarea"?a.current:s.current;o&&o.value!==t&&(o.value=t||"")},[t,r]),{textareaRef:a,inputRef:s,currentRef:r==="textarea"?a:s}},jn=(t,r,a)=>{const s=()=>{if(!a.current||r!=="hug")return;const o=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=o;const c=a.current.closest(`.${L.wrapper}`);c&&(c.setAttribute("data-resize","hug"),c.setAttribute("data-show-grip","false"))};return m.useEffect(s,[t,r]),m.useEffect(()=>{r==="hug"&&a.current&&s()},[]),{resizeTextArea:s}},Rn=(t,r,a,s)=>({handleGripMouseDown:m.useCallback(n=>{if(!t||r||a||!(s==="fixed"||!s))return;n.preventDefault(),n.stopPropagation();const c=n.currentTarget.closest(`.${L.wrapper}`);if(!c)return;const _=n.clientY,d=c.clientHeight,f=h=>{const b=h.clientY-_,y=Math.min(100,d),C=Math.max(y,d+b);c.style.height=`${C}px`},p=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",p)},[t,r,a,s])}),xt=30,kn=m.forwardRef(({component:t="input",size:r="L",value:a="",placeholder:s,disabled:o=!1,loading:n=!1,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:h,className:b,style:y,truncate:C=!1,shouldShowFloatingLabelClass:j=!1,"aria-invalid":$,"aria-errormessage":w,id:g,resize:R,...M},N)=>{const{textareaRef:O,inputRef:A,currentRef:B}=En(a,t);if(jn(a,R,O),m.useImperativeHandle(N,()=>B.current,[B]),t==="textarea")return i.jsx("textarea",{ref:O,id:g,value:a,placeholder:s,disabled:o||n,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:h,className:q.clsx(L.textarea,L[`size-${r}`],j&&L["with-floating-label"],b),style:y,"aria-invalid":$,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,"data-resize":R,...M});if(t==="input")return i.jsx("input",{ref:A,id:g,value:a,placeholder:s,disabled:o||n,onFocus:c,onBlur:_,onChange:d,onKeyDown:f,onKeyUp:p,maxLength:h,className:q.clsx(L.input,L[`size-${r}`],j&&L["with-floating-label"],C&&L.truncate,b),style:y,"aria-invalid":$,"aria-errormessage":w,"aria-describedby":w?`${g}-error`:void 0,tabIndex:0,...M});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),Rt=m.forwardRef(({children:t,size:r="L",error:a=!1,disabled:s=!1,loading:o=!1,className:n,wrapperProps:c,wrapperStyles:_,floatingLabelStyles:d,prefixStyles:f,suffixStyles:p,labelProps:h,helperProps:b,showLimit:y=!1,maxLength:C,hint:j,showHint:$=!1,showHintOnEmpty:w=!1,prefix:g,suffix:R,onSuffixClick:M,placeholder:N,showLabel:O=!0,labelClassName:A,hasValue:B=!1,helper:P,id:U,value:H="",resize:D,showGrip:x=!1,...k},F)=>{const X=m.useId(),G=U||X,ee=$&&j&&(B||w),ne=j&&j.length>xt?j.substring(0,xt)+"...":j,K=q.clsx(L.wrapper,L[`size-${r}`],a&&L.error,s&&L.disabled,o&&L.loading,ee&&L["has-hint"],R&&L["has-suffix"],y&&L["has-limit"],n),ae=q.clsx(L.floatingLabel,L[r],B&&L.filled,A),{handleGripMouseDown:oe}=Rn(x,s,o,D);return i.jsxs("div",{ref:F,className:L.inputBase,"data-testid":"input-base-wrapper",...k,children:[i.jsxs("div",{className:K,style:_,"data-resize":D,"data-show-grip":x?"true":"false",...c,children:[g&&i.jsx("label",{htmlFor:G,className:L.leftSection,style:f,children:g}),R&&i.jsx("label",{htmlFor:G,className:L.rightSection,style:p,onClick:M,children:R}),N&&O&&i.jsx("label",{htmlFor:G,className:ae,style:d,...h,children:N}),t,x&&!y&&(D==="fixed"||!D)&&i.jsx("div",{className:L.gripHandle,onMouseDown:oe,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:i.jsx($n,{})}),ee&&i.jsx("div",{className:q.clsx(L.hint,B&&L.truncate),"data-disabled":s||o,children:ne}),y&&C&&i.jsxs("div",{className:L.characterLimit,children:[(H||"").length," из ",C]})]}),P&&i.jsx("div",{className:q.clsx(L.helper,a&&L.error,(s||o)&&L.disabled),...b,id:a?`${G}-error`:void 0,children:P})]})});Rt.displayName="InputWrapperComponent";const mt=Object.assign(kn,{Wrapper:Rt}),kt=m.forwardRef(({component:t="input",size:r="L",className:a,error:s=!1,disabled:o=!1,loading:n=!1,placeholder:c,showLabel:_=!0,labelClassName:d,helper:f,prefix:p,suffix:h,id:b,onFocus:y,onBlur:C,onKeyDown:j,onSuffixClick:$,onChange:w,value:g="",wrapperProps:R,wrapperStyles:M,floatingLabelStyles:N,prefixStyles:O,suffixStyles:A,textareaStyles:B,labelProps:P,helperProps:U,showLimit:H=!1,maxLength:D,inputProps:x,hint:k,showHint:F=!1,showHintOnEmpty:X=!1,truncate:G=!1,resize:ee,showGrip:ne=!1,...K},ae)=>{const oe=m.useId(),de=b||oe,[me,ye]=m.useState(g),re=g!==void 0?g:me,ue=(re||"").length>0,le=re||"",_e=_&&(r==="XL"||t==="textarea")&&!p,ve=m.useCallback(Y=>{var J;o||n||(y==null||y(),(J=x==null?void 0:x.onFocus)==null||J.call(x,Y))},[y,x,o,n]),Me=m.useCallback(Y=>{var J;if(Y.key==="Tab"){const ce=Y.target.closest(`.${L.wrapper}`);ce&&ce.classList.add(L.tabFocused)}(J=x==null?void 0:x.onKeyUp)==null||J.call(x,Y)},[x]),Pe=m.useCallback(Y=>{var ce;const J=Y.target.closest(`.${L.wrapper}`);J&&J.classList.remove(L.tabFocused),C==null||C(),(ce=x==null?void 0:x.onBlur)==null||ce.call(x,Y)},[C,x]),Fe=m.useCallback(Y=>{var ce;if(o||n)return;const J=Y.target.value;ye(J),w==null||w(J,Y),(ce=x==null?void 0:x.onChange)==null||ce.call(x,Y)},[w,x,o,n]);return m.useEffect(()=>{ye(g||"")},[g]),i.jsx(mt.Wrapper,{ref:ae,size:r,error:s,disabled:o||n,loading:n,className:q.clsx(a,t==="textarea"&&L["textarea-wrapper"]),wrapperProps:R,wrapperStyles:M,floatingLabelStyles:N,prefixStyles:O,suffixStyles:A,labelProps:P,helperProps:U,showLimit:H,maxLength:D,hint:k,showHint:F,showHintOnEmpty:X,prefix:p,suffix:h,onSuffixClick:$,placeholder:c,showLabel:_,labelClassName:d,hasValue:ue,helper:f,id:de,value:le,showGrip:ne,resize:ee,...K,children:i.jsx(mt,{component:t,size:r,value:le,placeholder:c,disabled:o,loading:n,onFocus:ve,onBlur:Pe,onChange:Fe,onKeyDown:j,onKeyUp:Me,maxLength:D,truncate:G,"data-empty":!ue,shouldShowFloatingLabelClass:_e,style:t==="textarea"?B:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${de}-error`:void 0,id:de,resize:ee,...x})})}),Z={S:"S",M:"M",L:"L",XL:"XL"},Tn=(t,r,a,s)=>{switch(t){case Z.XL:return r&&a?"8px 16px 8px 16px":"16px 16px 16px 16px";case Z.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case Z.M:return"10px 12px 10px 12px";case Z.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},In=t=>{switch(t){case Z.XL:return"56px";case Z.L:return"48px";case Z.M:return"40px";case Z.S:return"32px";default:return"48px"}},Mn=t=>{switch(t){case Z.S:case Z.M:case Z.L:return 4;case Z.XL:return 8;default:return 8}},Nn=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),On=(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`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),An=(t,r,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${a}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),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`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Dn=(t,r,a,s)=>{const o=In(t),n=Tn(t,r,a,s),c=Mn(t);switch(t){case Z.XL:return On(o,n,c);case Z.L:return An(o,n,c);case Z.M:return Bn(o,n,c);case Z.S:return Nn(o,n,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Pn=m.forwardRef(({value:t="",onChange:r,type:a="text",placeholder:s,maxLength:o,minLength:n,autoComplete:c,autoFocus:_,size:d=Z.L,inputProps:f,error:p,disabled:h,loading:b,helper:y,prefix:C,suffix:j,clearable:$=!1,id:w,showLabel:g=!0,onFocus:R,onBlur:M,onSuffixClick:N,onClear:O,className:A,truncate:B=!0,hint:P,showHint:U=!1,showHintOnEmpty:H=!1,wrapperProps:D,labelProps:x,helperProps:k,...F},X)=>{const G=(t||"").length>0,ee=d===Z.XL,ne=!!C,K=ee&&g&&!C,ae=$&&G&&!(h||b),oe=()=>{r==null||r(""),O==null||O()},de=()=>{ae&&oe(),N==null||N()},me=ae?i.jsx(jt,{size:d===Z.S||d===Z.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):j,ye={type:a,minLength:n,autoComplete:c,autoFocus:_,...f},re=Dn(d,K,G,ne);return i.jsx(kt,{size:d,error:p,disabled:h||b,loading:b,helper:y,prefix:C,suffix:me,id:w,showLabel:K,onFocus:R,onBlur:M,onSuffixClick:de,onChange:r,value:t,placeholder:s,className:A,wrapperStyles:re.wrapperStyles,floatingLabelStyles:re.floatingLabelStyles,prefixStyles:re.prefixStyles,suffixStyles:re.suffixStyles,wrapperProps:D,labelProps:x,helperProps:k,showLimit:!1,maxLength:o,inputProps:ye,hint:P,showHint:U,showHintOnEmpty:H,truncate:B,...F})}),se={M:"M",L:"L"},De={M:"12px",L:"16px"},Fn={M:"xs",L:"sm"},Ae={FILL:"fill",FIXED:"fixed"},Ue={M:"112px",L:"56px"},$e={M:"48px",L:"22px"},ge={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},be={M:48,L:56,XL:112},zn=(t,r)=>{if(t===se.M)return Ue.M;if(r)return`${r}px`;switch(t){case se.L:return Ue.L;default:return Ue.L}},Wn=(t,r)=>{if(t===se.M)return $e.M;if(r)switch(r){case be.M:case be.L:return $e.L;case be.XL:return $e.M;default:return $e.L}switch(t){case se.L:return $e.L;default:return $e.L}},Hn=(t,r,a)=>{if(t===se.M)return ge.M;if(r)switch(r){case be.M:return ge.L_WITH_PREFIX;case be.L:return a?ge.L_FLOATING_LABEL:ge.L;case be.XL:return ge.L;default:return ge.L}switch(t){case se.L:return a?ge.L_FLOATING_LABEL:ge.L;default:return ge.L}},Vn=(t,r)=>{if(t===se.M)return"M";if(r)switch(r){case be.M:return"M";case be.L:return"L";case be.XL:return"L";default:return"L"}return t},qn=t=>Fn[t],Zn=t=>De[t],Gn=(t,r,a,s)=>{const o=zn(t,r),n=Wn(t,r),c=Hn(t,r,a);return{wrapperStyles:{minHeight:o,...s===Ae.FILL&&{height:"100%"},...s===Ae.FIXED&&r&&{height:o},boxSizing:"border-box",padding:c},floatingLabelStyles:{left:t===se.M?De.M:De.L,transformOrigin:"left top",top:r===112&&a&&t===se.L?De.L:void 0},suffixStyles:{right:Zn(t),top:r===48&&t===se.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:n,...s===Ae.FILL&&{flex:1,minHeight:0},...s===Ae.FIXED&&r&&{height:n}}}},Un=m.forwardRef(({value:t="",onChange:r,placeholder:a,maxLength:s,minLength:o,autoFocus:n,size:c=se.L,textareaProps:_,error:d,disabled:f,loading:p,helper:h,suffix:b,clearable:y=!1,id:C,showLabel:j=!0,onFocus:$,onBlur:w,onClear:g,onKeyDown:R,className:M,rows:N=1,showLimit:O=!1,wrapperProps:A,labelProps:B,helperProps:P,showGrip:U,minHeight:H,resize:D,...x},k)=>{const F=(t||"").length>0,X=j&&!!a&&(c===se.M||H!==48),G=y&&F&&!(f||p),ee=()=>{r==null||r(""),g==null||g()},ne=G?i.jsx(jt,{size:qn(c),color:"var(--icon-secondary)",onClick:ee,style:{cursor:"pointer"},"data-testid":"x-icon"}):b,K=Gn(c,H,X&&F,D),ae=Vn(c,H),oe={rows:N,minLength:o,autoFocus:n,resize:D,..._};return i.jsx(kt,{ref:k,component:"textarea",size:ae,error:d,disabled:f||p,loading:p,helper:h,suffix:ne,id:C,showLabel:X,onFocus:$,onBlur:w,onKeyDown:R,onChange:r,value:t||"",placeholder:a,className:M,"data-floating-label":X,wrapperStyles:K.wrapperStyles,floatingLabelStyles:K.floatingLabelStyles,suffixStyles:K.suffixStyles,textareaStyles:K.textareaStyles,wrapperProps:A,labelProps:B,helperProps:P,showLimit:O&&(H===112||c===se.M),maxLength:s,inputProps:oe,resize:D,showGrip:U,...x})}),Xn="_helper_1vhgl_16",Xe={helper:Xn,"helper--error":"_helper--error_1vhgl_27","helper--disabled":"_helper--disabled_1vhgl_32"},Yn=({title:t,error:r,className:a="",style:s,disabled:o=!1,"data-testid":n,"aria-label":c,"aria-describedby":_})=>{const d=!!r,f=q.clsx(Xe.helper,d&&Xe["helper--error"],o&&Xe["helper--disabled"],a),p=o?t:r||t;return i.jsx("div",{className:f,style:s,"data-testid":n,"aria-label":c,"aria-describedby":_,children:i.jsx("p",{children:p})})};exports.Avatar=fr;exports.Badge=Sr;exports.Button=Fa;exports.Checkbox=Ss;exports.ConfigProvider=Zr;exports.Helper=Yn;exports.Image=zr;exports.Loader=St;exports.Tag=ds;exports.TextArea=Un;exports.TextInput=Pn;exports.Typography=Bs;exports.enUS=Lt;exports.ruRU=Gr;exports.useConfig=Et;exports.useLocale=Wr;
|