skillgrid 0.0.21 → 0.0.22-dev-31782-avatar.1141064
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/Avatar/Avatar.type.d.ts +5 -2
- package/dist/components/Avatar/lib/get-avatar-border-radius-by-size-and-shape.d.ts +5 -0
- package/dist/components/Button/Button.d.ts +2 -3
- package/dist/components/Checkbox/Checkbox.d.ts +18 -0
- package/dist/components/Checkbox/Checkbox.type.d.ts +90 -0
- package/dist/components/Checkbox/assets/CheckIcon.d.ts +16 -0
- package/dist/components/Checkbox/assets/LineIcon.d.ts +16 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Helper/Helper.d.ts +7 -0
- package/dist/components/Helper/Helper.type.d.ts +17 -0
- package/dist/components/Helper/index.d.ts +2 -0
- package/dist/components/InputBase/Input.d.ts +9 -0
- package/dist/components/InputBase/Input.type.d.ts +138 -0
- package/dist/components/InputBase/InputBase.d.ts +6 -0
- package/dist/components/InputBase/InputBase.type.d.ts +110 -0
- package/dist/components/InputBase/assets/GripIcon.d.ts +8 -0
- package/dist/components/InputBase/assets/SearchIcon.d.ts +17 -0
- package/dist/components/InputBase/assets/XIcon.d.ts +18 -0
- package/dist/components/InputBase/assets/index.d.ts +3 -0
- package/dist/components/InputBase/index.d.ts +3 -0
- package/dist/components/InputBase/lib/constants.d.ts +4 -0
- package/dist/components/InputBase/lib/index.d.ts +4 -0
- package/dist/components/InputBase/lib/useGripResize.d.ts +11 -0
- package/dist/components/InputBase/lib/useInputSync.d.ts +11 -0
- package/dist/components/InputBase/lib/useTextareaResize.d.ts +9 -0
- package/dist/components/List/List.d.ts +5 -0
- package/dist/components/List/List.type.d.ts +34 -0
- package/dist/components/List/ListItem/ListItem.d.ts +9 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +6 -0
- package/dist/components/TextArea/TextArea.type.d.ts +66 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/TextArea/lib/constants.d.ts +65 -0
- package/dist/components/TextArea/lib/getters.d.ts +38 -0
- package/dist/components/TextArea/lib/index.d.ts +2 -0
- package/dist/components/TextInput/TextInput.d.ts +6 -0
- package/dist/components/TextInput/TextInput.type.d.ts +72 -0
- package/dist/components/TextInput/index.d.ts +2 -0
- package/dist/components/TextInput/lib/constants.d.ts +9 -0
- package/dist/components/TextInput/lib/getters.d.ts +38 -0
- package/dist/components/TextInput/lib/index.d.ts +2 -0
- package/dist/components/Typography/Typography.constants.d.ts +2 -0
- package/dist/components/Typography/Typography.d.ts +21 -0
- package/dist/components/Typography/Typography.type.d.ts +68 -0
- package/dist/components/Typography/index.d.ts +1 -0
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1208 -886
- package/dist/utils/other.d.ts +8 -0
- package/package.json +3 -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 E=require("react"),q=require("clsx");function Mt(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(o,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return o.default=t,Object.freeze(o)}const it=Mt(E);function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Re={exports:{}},ue={};/**
|
|
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
|
|
9
|
+
*/var Qe;function Dt(){if(Qe)return ue;Qe=1;var t=E,o=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,d=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(_,c,b){var f,g={},y=null,m=null;b!==void 0&&(y=""+b),c.key!==void 0&&(y=""+c.key),c.ref!==void 0&&(m=c.ref);for(f in c)n.call(c,f)&&!i.hasOwnProperty(f)&&(g[f]=c[f]);if(_&&_.defaultProps)for(f in c=_.defaultProps,c)g[f]===void 0&&(g[f]=c[f]);return{$$typeof:o,type:_,key:y,ref:m,props:g,_owner:d.current}}return ue.Fragment=r,ue.jsx=u,ue.jsxs=u,ue}var _e={};/**
|
|
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
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Xe;function Bt(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var t=E,o=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),_=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),j=Symbol.iterator,k="@@iterator";function T(e){if(e===null||typeof e!="object")return null;var a=j&&e[j]||e[k];return typeof a=="function"?a:null}var w=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(e){{for(var a=arguments.length,l=new Array(a>1?a-1:0),p=1;p<a;p++)l[p-1]=arguments[p];P("error",e,l)}}function P(e,a,l){{var p=w.ReactDebugCurrentFrame,x=p.getStackAddendum();x!==""&&(a+="%s",l=l.concat([x]));var R=l.map(function(v){return String(v)});R.unshift("Warning: "+a),Function.prototype.apply.call(console[e],console,R)}}var L=!1,z=!1,D=!1,I=!1,Z=!1,B;B=Symbol.for("react.module.reference");function Y(e){return!!(typeof e=="string"||typeof e=="function"||e===n||e===i||Z||e===d||e===b||e===f||I||e===m||L||z||D||typeof e=="object"&&e!==null&&(e.$$typeof===y||e.$$typeof===g||e.$$typeof===u||e.$$typeof===_||e.$$typeof===c||e.$$typeof===B||e.getModuleId!==void 0))}function H(e,a,l){var p=e.displayName;if(p)return p;var x=a.displayName||a.name||"";return x!==""?l+"("+x+")":l}function U(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&C("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 n:return"Fragment";case r:return"Portal";case i:return"Profiler";case d:return"StrictMode";case b:return"Suspense";case f:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var a=e;return U(a)+".Consumer";case u:var l=e;return U(l._context)+".Provider";case c:return H(e,e.render,"ForwardRef");case g:var p=e.displayName||null;return p!==null?p:A(e.type)||"Memo";case y:{var x=e,R=x._payload,v=x._init;try{return A(v(R))}catch{return null}}}return null}var O=Object.assign,G=0,fe,ge,be,he,ye,ve,me;function Ce(){}Ce.__reactDisabledLog=!0;function Se(){{if(G===0){fe=console.log,ge=console.info,be=console.warn,he=console.error,ye=console.group,ve=console.groupCollapsed,me=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Ce,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function $e(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},e,{value:fe}),info:O({},e,{value:ge}),warn:O({},e,{value:be}),error:O({},e,{value:he}),group:O({},e,{value:ye}),groupCollapsed:O({},e,{value:ve}),groupEnd:O({},e,{value:me})})}G<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=w.ReactCurrentDispatcher,te;function X(e,a,l){{if(te===void 0)try{throw Error()}catch(x){var p=x.stack.trim().match(/\n( *(at )?)/);te=p&&p[1]||""}return`
|
|
18
|
+
`+te+e}}var ae=!1,ee;{var ce=typeof WeakMap=="function"?WeakMap:Map;ee=new ce}function Me(e,a){if(!e||ae)return"";{var l=ee.get(e);if(l!==void 0)return l}var p;ae=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=le.current,le.current=null,Se();try{if(a){var v=function(){throw Error()};if(Object.defineProperty(v.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(v,[])}catch(F){p=F}Reflect.construct(e,[],v)}else{try{v.call()}catch(F){p=F}e.call(v.prototype)}}else{try{throw Error()}catch(F){p=F}e()}}catch(F){if(F&&p&&typeof F.stack=="string"){for(var h=F.stack.split(`
|
|
19
|
+
`),M=p.stack.split(`
|
|
20
|
+
`),S=h.length-1,N=M.length-1;S>=1&&N>=0&&h[S]!==M[N];)N--;for(;S>=1&&N>=0;S--,N--)if(h[S]!==M[N]){if(S!==1||N!==1)do if(S--,N--,N<0||h[S]!==M[N]){var V=`
|
|
21
|
+
`+h[S].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),typeof e=="function"&&ee.set(e,V),V}while(S>=1&&N>=0);break}}}finally{ae=!1,le.current=R,$e(),Error.prepareStackTrace=x}var se=e?e.displayName||e.name:"",re=se?X(se):"";return typeof e=="function"&&ee.set(e,re),re}function pt(e,a,l){return Me(e,!1)}function ft(e){var a=e.prototype;return!!(a&&a.isReactComponent)}function xe(e,a,l){if(e==null)return"";if(typeof e=="function")return Me(e,ft(e));if(typeof e=="string")return X(e);switch(e){case b:return X("Suspense");case f:return X("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return pt(e.render);case g:return xe(e.type,a,l);case y:{var p=e,x=p._payload,R=p._init;try{return xe(R(x),a,l)}catch{}}}return""}var de=Object.prototype.hasOwnProperty,ze={},De=w.ReactDebugCurrentFrame;function we(e){if(e){var a=e._owner,l=xe(e.type,e._source,a?a.type:null);De.setExtraStackFrame(l)}else De.setExtraStackFrame(null)}function gt(e,a,l,p,x){{var R=Function.call.bind(de);for(var v in e)if(R(e,v)){var h=void 0;try{if(typeof e[v]!="function"){var M=Error((p||"React class")+": "+l+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw M.name="Invariant Violation",M}h=e[v](a,v,p,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(S){h=S}h&&!(h instanceof Error)&&(we(x),C("%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).",p||"React class",l,v,typeof h),we(null)),h instanceof Error&&!(h.message in ze)&&(ze[h.message]=!0,we(x),C("Failed %s type: %s",l,h.message),we(null))}}}var bt=Array.isArray;function ke(e){return bt(e)}function ht(e){{var a=typeof Symbol=="function"&&Symbol.toStringTag,l=a&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function yt(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function Fe(e){if(yt(e))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ht(e)),Be(e)}var Ve=w.ReactCurrentOwner,vt={key:!0,ref:!0,__self:!0,__source:!0},We,Ze;function mt(e){if(de.call(e,"ref")){var a=Object.getOwnPropertyDescriptor(e,"ref").get;if(a&&a.isReactWarning)return!1}return e.ref!==void 0}function Ct(e){if(de.call(e,"key")){var a=Object.getOwnPropertyDescriptor(e,"key").get;if(a&&a.isReactWarning)return!1}return e.key!==void 0}function xt(e,a){typeof e.ref=="string"&&Ve.current}function wt(e,a){{var l=function(){We||(We=!0,C("%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)",a))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function Rt(e,a){{var l=function(){Ze||(Ze=!0,C("%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)",a))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var jt=function(e,a,l,p,x,R,v){var h={$$typeof:o,type:e,key:a,ref:l,props:v,_owner:R};return h._store={},Object.defineProperty(h._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(h,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(h,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(h.props),Object.freeze(h)),h};function Et(e,a,l,p,x){{var R,v={},h=null,M=null;l!==void 0&&(Fe(l),h=""+l),Ct(a)&&(Fe(a.key),h=""+a.key),mt(a)&&(M=a.ref,xt(a,x));for(R in a)de.call(a,R)&&!vt.hasOwnProperty(R)&&(v[R]=a[R]);if(e&&e.defaultProps){var S=e.defaultProps;for(R in S)v[R]===void 0&&(v[R]=S[R])}if(h||M){var N=typeof e=="function"?e.displayName||e.name||"Unknown":e;h&&wt(v,N),M&&Rt(v,N)}return jt(e,h,M,x,p,Ve.current,v)}}var Te=w.ReactCurrentOwner,qe=w.ReactDebugCurrentFrame;function oe(e){if(e){var a=e._owner,l=xe(e.type,e._source,a?a.type:null);qe.setExtraStackFrame(l)}else qe.setExtraStackFrame(null)}var Oe;Oe=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===o}function Ue(){{if(Te.current){var e=A(Te.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 St(e){return""}var Ge={};function $t(e){{var a=Ue();if(!a){var l=typeof e=="string"?e:e.displayName||e.name;l&&(a=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+l+">.")}return a}}function Ye(e,a){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=$t(a);if(Ge[l])return;Ge[l]=!0;var p="";e&&e._owner&&e._owner!==Te.current&&(p=" It was passed a child from "+A(e._owner.type)+"."),oe(e),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',l,p),oe(null)}}function He(e,a){{if(typeof e!="object")return;if(ke(e))for(var l=0;l<e.length;l++){var p=e[l];Ne(p)&&Ye(p,a)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var x=T(e);if(typeof x=="function"&&x!==e.entries)for(var R=x.call(e),v;!(v=R.next()).done;)Ne(v.value)&&Ye(v.value,a)}}}function kt(e){{var a=e.type;if(a==null||typeof a=="string")return;var l;if(typeof a=="function")l=a.propTypes;else if(typeof a=="object"&&(a.$$typeof===c||a.$$typeof===g))l=a.propTypes;else return;if(l){var p=A(a);gt(l,e.props,"prop",p,e)}else if(a.PropTypes!==void 0&&!Oe){Oe=!0;var x=A(a);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof a.getDefaultProps=="function"&&!a.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Tt(e){{for(var a=Object.keys(e.props),l=0;l<a.length;l++){var p=a[l];if(p!=="children"&&p!=="key"){oe(e),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),oe(null);break}}e.ref!==null&&(oe(e),C("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}}var Je={};function Ke(e,a,l,p,x,R){{var v=Y(e);if(!v){var h="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(h+=" 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 M=St();M?h+=M:h+=Ue();var S;e===null?S="null":ke(e)?S="array":e!==void 0&&e.$$typeof===o?(S="<"+(A(e.type)||"Unknown")+" />",h=" Did you accidentally export a JSX literal instead of a component?"):S=typeof e,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",S,h)}var N=Et(e,a,l,x,R);if(N==null)return N;if(v){var V=a.children;if(V!==void 0)if(p)if(ke(V)){for(var se=0;se<V.length;se++)He(V[se],e);Object.freeze&&Object.freeze(V)}else C("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 He(V,e)}if(de.call(a,"key")){var re=A(e),F=Object.keys(a).filter(function(At){return At!=="key"}),Pe=F.length>0?"{key: someKey, "+F.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[re+Pe]){var It=F.length>0?"{"+F.join(": ..., ")+": ...}":"{}";C(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Pe,re,It,re),Je[re+Pe]=!0}}return e===n?Tt(N):kt(N),N}}function Ot(e,a,l){return Ke(e,a,l,!0)}function Nt(e,a,l){return Ke(e,a,l,!1)}var Pt=Nt,Lt=Ot;_e.Fragment=n,_e.jsx=Pt,_e.jsxs=Lt}()),_e}var et;function Ft(){return et||(et=1,process.env.NODE_ENV==="production"?Re.exports=Dt():Re.exports=Bt()),Re.exports}var s=Ft();const Vt=t=>t.as==="a",Wt=t=>t.as===void 0||t.as==="button",Zt="_button_1abee_213",qt="_disabled_1abee_237",Ut="_loading_1abee_237",Gt="_neutral_1abee_259",Yt="_accent_1abee_263",Ht="_positive_1abee_267",Jt="_negative_1abee_271",Kt="_contrast_1abee_275",Qt="_special_1abee_279",Xt="_primary_1abee_284",ea="_secondary_1abee_285",ta="_tertiary_1abee_286",aa="_label_1abee_321",ra="_rightGroup_1abee_333",na="_iconOnly_1abee_349",oa="_large_1abee_357",sa="_medium_1abee_361",ia="_small_1abee_365",la="_spaceBetween_1abee_370",ca="_stretched_1abee_384",da="_icon_1abee_349",ua="_badge_1abee_705",_a="_badgeMedium_1abee_721",pa="_circular_1abee_738",fa="_badgeSmall_1abee_743",ga="_badgeExtraSmall_1abee_765",ba="_withSubcaption_1abee_784",ha="_subcaption_1abee_797",ya="_loader_1abee_804",va="_spin_1abee_1",ma="_l_1abee_237",Ca="_m_1abee_361",xa="_s_1abee_279",wa="_xs_1abee_869",$={button:Zt,disabled:qt,loading:Ut,neutral:Gt,accent:Yt,positive:Ht,negative:Jt,contrast:Kt,special:Qt,primary:Xt,secondary:ea,tertiary:ta,label:aa,rightGroup:ra,iconOnly:na,large:oa,medium:sa,small:ia,spaceBetween:la,stretched:ca,icon:da,badge:ua,badgeMedium:_a,circular:pa,badgeSmall:fa,badgeExtraSmall:ga,withSubcaption:ba,subcaption:ha,loader:ya,spin:va,l:ma,m:Ca,s:xa,xs:wa},tt=({isLoading:t,showBadge:o,badgeValue:r,badgeSize:n,icon:d,children:i,postfix:u,showSubcaption:_,subcaption:c,size:b})=>{if(t)return s.jsx("span",{className:$.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=n==="extra-small",g=parseInt(String(r),10),y=!isNaN(g)&&g>=0&&g<=9;return s.jsxs(s.Fragment,{children:[o&&(r||f)&&s.jsx("span",{"data-testid":"button-badge",className:q.clsx($.badge,$[`badge${f?"ExtraSmall":n==="medium"?"Medium":"Small"}`],{[$.circular]:y&&!f}),children:!f&&r}),_&&b!=="s"&&b!=="xs"?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:$.label,children:i}),s.jsx("span",{"data-testid":"button-subcaption",className:$.subcaption,children:c})]}):i?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:$.label,children:i}),s.jsxs("div",{"data-testid":"button-right-group",className:$.rightGroup,children:[d&&s.jsx("span",{"data-testid":"button-icon",className:$.icon,children:d}),u&&s.jsx("span",{"data-testid":"button-postfix",className:$.postfix,children:u})]})]}):s.jsx("span",{"data-testid":"button-icon",className:$.icon,children:d})]})},Ra=E.forwardRef((t,o)=>{const{mode:r="primary",size:n="m",buttonStyle:d="neutral",loading:i=!1,disabled:u=!1,showBadge:_=!1,badgeSize:c="small",badgeValue:b,showSubcaption:f=!1,subcaption:g,stretched:y=!1,spaceBetween:m=!1,icon:j,postfix:k,className:T,children:w}=t,C=u,P=i,L=!C&&!P,z=!!j&&!w,D=q.clsx($.button,$[n],$[r],$[d],{[$.disabled]:C,[$.loading]:P,[$.stretched]:y,[$.spaceBetween]:m&&y,[$.withSubcaption]:f&&g&&n!=="s"&&n!=="xs",[$.iconOnly]:z},T),I={isLoading:P,showBadge:_,badgeValue:b,badgeSize:c,icon:j,children:w,postfix:k,showSubcaption:f,subcaption:g,size:n};if(Vt(t)){const{href:Z,onClick:B,mode:Y,size:H,buttonStyle:U,loading:A,disabled:O,showBadge:G,badgeSize:fe,badgeValue:ge,showSubcaption:be,subcaption:he,stretched:ye,spaceBetween:ve,icon:me,postfix:Ce,className:Se,tabIndex:$e,children:le,"data-testid":te,style:X,...ae}=t,ee=ce=>{L&&B&&B(ce)};return s.jsx("a",{ref:o,className:D,href:L?Z:void 0,tabIndex:t.tabIndex,onClick:ee,"data-testid":te,"aria-disabled":C||P,style:X,...ae,children:s.jsx(tt,{...I})})}if(Wt(t)){const{type:Z="button",onClick:B,mode:Y,size:H,buttonStyle:U,loading:A,disabled:O,showBadge:G,badgeSize:fe,badgeValue:ge,showSubcaption:be,subcaption:he,stretched:ye,spaceBetween:ve,icon:me,postfix:Ce,className:Se,tabIndex:$e,children:le,"data-testid":te,style:X,...ae}=t,ee=ce=>{L&&B&&B(ce)};return s.jsx("button",{ref:o,type:Z,className:D,disabled:C,tabIndex:t.tabIndex,onClick:ee,"data-testid":te,"aria-disabled":C||P,style:X,...ae,children:s.jsx(tt,{...I})})}return null});var Le={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 Qe;function m2(){return Qe||(Qe=1,function(r){(function(){var s={}.hasOwnProperty;function a(){for(var i="",f=0;f<arguments.length;f++){var _=arguments[f];_&&(i=d(i,o(_)))}return i}function o(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return a.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var f="";for(var _ in i)s.call(i,_)&&i[_]&&(f=d(f,_));return f}function d(i,f){return f?i?i+" "+f:i+f:i}r.exports?(a.default=a,r.exports=a):window.classNames=a})()}(Te)),Te.exports}var C2=m2();const U=Pt(C2),y2="_avatar_1ob17_4",x2="_clickable_1ob17_23",w2="_icon_1ob17_40",R2="_disabled_1ob17_45",E2="_image_1ob17_51",S2="_name_1ob17_51",j2="_circle_1ob17_160",$2="_square_1ob17_164",B={avatar:y2,clickable:x2,icon:w2,disabled:R2,image:E2,name:S2,"size-208":"_size-208_1ob17_104","size-96":"_size-96_1ob17_111","size-84":"_size-84_1ob17_118","size-56":"_size-56_1ob17_125","size-48":"_size-48_1ob17_132","size-40":"_size-40_1ob17_139","size-32":"_size-32_1ob17_146","size-24":"_size-24_1ob17_153",circle:j2,square:$2,"variant-filled":"_variant-filled_1ob17_185","color-brand":"_color-brand_1ob17_190","color-red":"_color-red_1ob17_194","color-orange":"_color-orange_1ob17_198","color-yellow":"_color-yellow_1ob17_202","color-green":"_color-green_1ob17_206","color-blue":"_color-blue_1ob17_210","color-lightblue":"_color-lightblue_1ob17_214","color-purple":"_color-purple_1ob17_218","color-gray":"_color-gray_1ob17_222","color-contrast":"_color-contrast_1ob17_226","variant-light":"_variant-light_1ob17_232","variant-outline":"_variant-outline_1ob17_304"},Xe=99;function k2(r){return r<Xe?`+${r}`:`${Xe}+`}function rt(r){const s=typeof r=="string"?r:JSON.stringify(r);let a=5381;for(let o=0;o<s.length;o++){const d=s.charCodeAt(o);a=(a<<5)+a+d}return a>>>0}const T2=["red","orange","yellow","green","blue","lightblue","purple"];function O2(r,s=T2){const a=rt(r),o=Math.abs(a)%s.length;return s[o]}const et=2;function P2(r){const s=r.split(" ");return s.length===1?r.slice(0,et).toUpperCase():s.map(a=>a[0]).slice(0,et).join("").toUpperCase()}function L2(r,s){return s==="circle"?r/2:r===24||r===208?8:r===32||r===40||r===48?12:r===56?16:r===84||r===96?24:12}const N2="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",I2="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",A2="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",M2="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",D2={male:N2,female:I2,org:M2,neutral:A2},Pe=R.forwardRef((r,s)=>{const{style:a,size:o=40,isLoading:d=!1,isDisabled:i=!1,shape:f="circle",variant:_="light",placeholderType:c="neutral",name:h="",imgSrc:p,imgAlt:g="",icon:C,imgProps:w,colorScheme:k,"data-testid":T,...N}=r,{onClick:j,onPointerDown:y}=N,I=!i&&!d&&(!!j||!!y),[q,F]=R.useState(!p),z=p&&!q?"image":C?"icon":h?"name":"placeholder",V=z==="name"?k||O2(h):k||"gray",M=U(B.avatar,B[f],B[`size-${o}`],B[`variant-${_}`],B[`color-${V}`],{[B.disabled]:i,[B.loading]:d,[B.clickable]:I}),J={icon:()=>l.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:U(B.icon),children:C==null?void 0:C({})}),name:()=>l.jsx("span",{role:"textbox","data-testid":"avatar-name",className:U(B.name),title:g,children:P2(h)}),placeholder:()=>l.jsx("img",{...w,"data-testid":"avatar-placeholder",className:B.image,src:D2[c],alt:g}),image:()=>l.jsx("img",{"data-testid":"avatar-image",...w,className:B.image,src:p,alt:g,onLoad:()=>F(!1),onError:G=>{var A;F(!0),(A=w==null?void 0:w.onError)==null||A.call(w,G)}})},K=G=>{I&&(j==null||j(G))};return l.jsx("div",{ref:s,onClick:K,className:M,style:a,"data-testid":T,"aria-disabled":i||d,children:J[z](null)})}),B2="_avatarGroup_157g4_1",F2={avatarGroup:B2};let z2=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((s,a)=>(a&=63,a<36?s+=a.toString(36):a<62?s+=(a-26).toString(36).toUpperCase():a>62?s+="-":s+="_",s),"");function V2(r,s,a,o,d,i,f){const _=Math.min(d,i)/2,c=Math.min(f,_),h=["M0,0",`H${r}`,`V${s}`,"H0","V0","Z"].join(" "),p=[`M${a+c},${o}`,`L${a+d-c},${o}`,`A${c},${c} 0 0 1 ${a+d},${o+c}`,`L${a+d},${o+i-c}`,`A${c},${c} 0 0 1 ${a+d-c},${o+i}`,`L${a+c},${o+i}`,`A${c},${c} 0 0 1 ${a},${o+i-c}`,`L${a},${o+c}`,`A${c},${c} 0 0 1 ${a+c},${o}`,"Z"].join(" ");return`${h} ${p}`}const W2=2,Z2=r=>{const{avatars:s=[],overflowCount:a=0,size:o=40,overlap:d=.3,shape:i="circle",overflowOnClick:f}=r,_=o*d,c=-_+W2,h=L2(o,i),g=R.useRef(z2()).current.toString(),C=U(F2.avatarGroup),w=V2(o,o,o-_,0,o,o,h);return s.length===0?null:l.jsxs("div",{className:C,children:[s.map((k,T,N)=>{const j=T+1>=N.length;return l.jsx("div",{style:{clipPath:j&&!a?void 0:`url(#${g})`,marginRight:c},children:l.jsx(Pe,{size:o,shape:i,...k})},rt(k)+T)}),a>0&&l.jsx("div",{style:{marginRight:c},children:l.jsx(Pe,{size:o,shape:i,onClick:f,icon:()=>k2(a),colorScheme:"gray"})}),l.jsx("svg",{width:"0",height:"0",children:l.jsx("clipPath",{id:`${g}`,children:l.jsx("path",{clipPathUnits:"objectBoundingBox",d:w,clipRule:"evenodd"})})})]})},U2=Object.assign(Pe,{Group:Z2}),q2="_wrapper_1ncab_5",G2="_badge__container_1ncab_6",Y2="_badge__content_1ncab_7",H2="_interactive_1ncab_20",J2="_disabled_1ncab_21",K2="_icon_1ncab_22",Z={wrapper:q2,badge__container:G2,badge__content:Y2,interactive:H2,disabled:J2,icon:K2,"variant-filled":"_variant-filled_1ncab_101","color-brand":"_color-brand_1ncab_106","color-red":"_color-red_1ncab_110","color-orange":"_color-orange_1ncab_114","color-yellow":"_color-yellow_1ncab_118","color-green":"_color-green_1ncab_122","color-blue":"_color-blue_1ncab_126","color-lightblue":"_color-lightblue_1ncab_130","color-purple":"_color-purple_1ncab_134","color-gray":"_color-gray_1ncab_138","color-contrast":"_color-contrast_1ncab_142","variant-light":"_variant-light_1ncab_148","variant-outline":"_variant-outline_1ncab_220","variant-transparent":"_variant-transparent_1ncab_294","position-top-left":"_position-top-left_1ncab_361","position-top-right":"_position-top-right_1ncab_367","position-bottom-left":"_position-bottom-left_1ncab_373","position-bottom-right":"_position-bottom-right_1ncab_379","position-top-center":"_position-top-center_1ncab_385","position-bottom-center":"_position-bottom-center_1ncab_391","position-middle-left":"_position-middle-left_1ncab_397","position-middle-right":"_position-middle-right_1ncab_403","position-middle-center":"_position-middle-center_1ncab_409","position-top-left-inside":"_position-top-left-inside_1ncab_416","position-top-right-inside":"_position-top-right-inside_1ncab_422","position-bottom-left-inside":"_position-bottom-left-inside_1ncab_428","position-bottom-right-inside":"_position-bottom-right-inside_1ncab_434","position-top-center-inside":"_position-top-center-inside_1ncab_440","position-bottom-center-inside":"_position-bottom-center-inside_1ncab_446","position-middle-left-inside":"_position-middle-left-inside_1ncab_452","position-middle-right-inside":"_position-middle-right-inside_1ncab_458"},Q2=r=>r==="rgba(0, 0, 0, 0)"||r==="transparent"||r.startsWith("rgba")&&r.endsWith(", 0)"),X2=r=>{if(!r)return null;let s=r;for(;s;){const o=window.getComputedStyle(s).backgroundColor;if(!Q2(o))return o;s=s.parentElement}return null},er=()=>{const r=R.useRef(null),[s,a]=R.useState(null);return R.useEffect(()=>{if(r.current){const o=X2(r.current);a(o)}},[]),{ref:r,bgColor:s}},tr=R.forwardRef((r,s)=>{const{icon:a,children:o,variant:d="filled",label:i,colorScheme:f="red",size:_=20,position:c="top-right",positionOffset:h={x:0,y:0},cutoutBackground:p,isDisabled:g,className:C,"data-testid":w="badge",...k}=r,{onClick:T,onPointerDown:N}=k,{ref:j,bgColor:y}=er(),O=p||y,q=!g&&(!!T||!!N),F=U(Z.badge__container,Z[`position-${c}`]),z=U(C,Z.badge__content,Z[`color-${f}`],Z[`variant-${d}`],{[Z.icon]:!!a,[Z.interactive]:q,[Z.disabled]:g}),V={"--badge-height":`${_}px`,"--badge-offset-x":`${h.x}px`,"--badge-offset-y":`${h.y}px`,...O&&{"--badge-cutout-bg":O},...d==="transparent"&&{"--badge-cutout-bg":"transparent"}},M=(a==null?void 0:a({}))||i,J=K=>{q&&(T==null||T(K))};return l.jsxs("div",{className:Z.wrapper,ref:j,"data-testid":w+"-wrapper",children:[o,l.jsx("span",{className:F,style:V,"data-testid":w+"-container",children:l.jsx("span",{...k,onClick:J,className:z,"data-testid":w+"-content",ref:s,"aria-disabled":g,children:M})})]})}),rr="_container_chiat_7",ar="_image_chiat_19",nr="_loading_chiat_28",Oe={container:rr,image:ar,loading:nr},or="_loader_1tevf_1",sr="_spin_1tevf_1",ir="_accent_1tevf_20",lr="_neutral_1tevf_24",cr="_positive_1tevf_28",ur="_negative_1tevf_32",dr="_gray_1tevf_36",fr="_special_1tevf_40",_r="_contrast_1tevf_44",pr="_container_1tevf_48",br="_overlay_1tevf_56",de={loader:or,spin:sr,accent:ir,neutral:lr,positive:cr,negative:ur,gray:dr,special:fr,contrast:_r,container:pr,overlay:br,"size-16":"_size-16_1tevf_71","size-24":"_size-24_1tevf_75","size-48":"_size-48_1tevf_79","size-64":"_size-64_1tevf_83","size-96":"_size-96_1tevf_87"},at=R.forwardRef(({size:r=24,variant:s="accent",className:a,"data-testid":o="loader",style:d,...i},f)=>{const _=U(de.loader,de[s],de[`size-${r}`],a);return l.jsx("svg",{ref:f,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":o,style:d,...i,children:l.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"})})}),gr=R.forwardRef((r,s)=>{const{loading:a=!1,size:o=24,variant:d="accent",children:i,className:f,style:_,"data-testid":c,...h}=r,p=U(de.container,f);return l.jsxs("div",{ref:s,className:p,style:_,"data-testid":c,...h,children:[i,a&&l.jsx("div",{className:de.overlay,children:l.jsx(at,{size:o,variant:d,"data-testid":`${c}-spinner`})})]})}),nt=R.forwardRef((r,s)=>r.children?l.jsx(gr,{ref:s,...r}):l.jsx(at,{ref:s,...r})),vr=({width:r=48,height:s=48,className:a,"data-testid":o})=>l.jsx("svg",{width:r,height:s,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":o,children:l.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"})}),hr=R.forwardRef((r,s)=>{const{alt:a="",loading:o="lazy",src:d,isLoading:i=!1,className:f,"data-testid":_="image",onError:c,onLoad:h,...p}=r,[g,C]=R.useState("loading"),w=g==="error",k=(i||g==="loading")&&!w,T=g==="loaded"&&!i,N=U(Oe.image,{[Oe.loading]:k},f),j=R.useCallback(I=>{C("loaded"),h==null||h(I)},[h]),y=R.useCallback(I=>{C("error"),c==null||c(I)},[c]),O={loader:l.jsxs(R.Fragment,{children:[l.jsx(nt,{size:48,variant:"special","data-testid":`${_}-loader`}),l.jsx("img",{alt:a,src:d,onLoad:j,onError:y,style:{display:"none"}})]}),error:l.jsx(vr,{"data-testid":`${_}-fallback`}),image:l.jsx("img",{ref:s,alt:a,"data-testid":_,loading:o,src:d,className:N})};return R.useEffect(()=>{if(!d){C("error");return}C("loading")},[d]),l.jsxs("div",{className:Oe.container,"data-testid":`${_}-container`,...p,children:[k&&O.loader,w&&O.error,T&&O.image]})}),ot={},st=R.createContext({locale:ot}),it=()=>{const r=R.useContext(st);if(!r)throw new Error("useConfig must be used within a ConfigProvider");return r},mr=()=>{const{locale:r}=it();return r},Cr={},yr={},xr={},wr=({locale:r={},theme:s,children:a,className:o})=>{const d=s?{...Object.fromEntries(Object.entries(s))}:{};return l.jsx("div",{"data-testid":"ConfigProvider-component",style:d,className:ae.clsx(Cr,yr,xr,o),children:l.jsx(st.Provider,{value:{locale:r},children:a})})},Rr={},Er="_tag_1llsi_1",Sr="_label_1llsi_16",jr="_iconWrapper_1llsi_20",$r="_medium_1llsi_27",kr="_large_1llsi_33",Tr="_disabled_1llsi_43",Or="_neutral_1llsi_47",Pr="_positive_1llsi_53",Lr="_negative_1llsi_59",Nr="_warning_1llsi_65",Ir="_vivid_1llsi_71",Ar="_special_1llsi_77",Mr="_accent_1llsi_84",Dr="_blue_1llsi_90",Br="_lovely_1llsi_96",Fr="_dreamy_1llsi_102",re={tag:Er,label:Sr,iconWrapper:jr,medium:$r,large:kr,disabled:Tr,neutral:Or,positive:Pr,negative:Lr,warning:Nr,vivid:Ir,special:Ar,accent:Mr,blue:Dr,lovely:Br,dreamy:Fr},tt={"typography-subtitle-1-semibold":"_typography-subtitle-1-semibold_1lyxn_45","typography-label-3-regular":"_typography-label-3-regular_1lyxn_141"},zr=R.forwardRef((r,s)=>{const{className:a,children:o,componentStyle:d="neutral",size:i="medium",disabled:f=!1,showLabel:_=!!o,slotStart:c,slotEnd:h,slotStartWrapperProps:p={},slotEndWrapperProps:g={},"data-testid":C}=r,{className:w,...k}=p,{className:T,...N}=g;return l.jsxs("div",{className:ae.clsx(re.tag,re[i],re[d],{[re.disabled]:f,[tt["typography-label-3-regular"]]:i==="medium",[tt["typography-subtitle-1-semibold"]]:i==="large"},a),"data-testid":C||"tag-component",ref:s,children:[c&&l.jsx("span",{className:ae.clsx([re.iconWrapper,w]),...k,children:c}),_&&l.jsx("span",{className:ae.clsx([re.label]),children:o}),h&&l.jsx("span",{className:ae.clsx([re.iconWrapper,T]),...N,children:h})]})});exports.Avatar=U2;exports.Badge=tr;exports.Button=h2;exports.ConfigProvider=wr;exports.Image=hr;exports.Loader=nt;exports.Tag=zr;exports.enUS=ot;exports.ruRU=Rr;exports.useConfig=it;exports.useLocale=mr;
|
|
34
|
+
*/var at;function ja(){return at||(at=1,function(t){(function(){var o={}.hasOwnProperty;function r(){for(var i="",u=0;u<arguments.length;u++){var _=arguments[u];_&&(i=d(i,n(_)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var u="";for(var _ in i)o.call(i,_)&&i[_]&&(u=d(u,_));return u}function d(i,u){return u?i?i+" "+u:i+u:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()}(Le)),Le.exports}var Ea=ja();const Q=zt(Ea),Sa="_avatar_s7gid_4",$a="_clickable_s7gid_23",ka="_icon_s7gid_40",Ta="_disabled_s7gid_45",Oa="_loading_s7gid_50",Na="_image_s7gid_56",Pa="_name_s7gid_56",La="_circle_s7gid_165",Ia="_square_s7gid_169",W={avatar:Sa,clickable:$a,icon:ka,disabled:Ta,loading:Oa,image:Na,name:Pa,"size-208":"_size-208_s7gid_109","size-96":"_size-96_s7gid_116","size-84":"_size-84_s7gid_123","size-56":"_size-56_s7gid_130","size-48":"_size-48_s7gid_137","size-40":"_size-40_s7gid_144","size-32":"_size-32_s7gid_151","size-24":"_size-24_s7gid_158",circle:La,square:Ia,"variant-filled":"_variant-filled_s7gid_190","color-brand":"_color-brand_s7gid_195","color-red":"_color-red_s7gid_199","color-orange":"_color-orange_s7gid_203","color-yellow":"_color-yellow_s7gid_207","color-green":"_color-green_s7gid_211","color-blue":"_color-blue_s7gid_215","color-lightblue":"_color-lightblue_s7gid_219","color-purple":"_color-purple_s7gid_223","color-gray":"_color-gray_s7gid_227","color-contrast":"_color-contrast_s7gid_231","variant-light":"_variant-light_s7gid_237","variant-outline":"_variant-outline_s7gid_309"},rt=99;function Aa(t){return t<rt?`+${t}`:`${rt}+`}function Ae(t){const o=typeof t=="string"?t:JSON.stringify(t);let r=5381;for(let n=0;n<o.length;n++){const d=o.charCodeAt(n);r=(r<<5)+r+d}return r>>>0}const Ma=["red","orange","yellow","green","blue","lightblue","purple"];function za(t,o=Ma){const r=Ae(t),n=Math.abs(r)%o.length;return o[n]}const nt=2;function Da(t){if(!t)return"";const o=t.trim().split(/\s+/);return o.length===1?t.slice(0,nt).toUpperCase():o.map(r=>r[0]).slice(0,nt).join("").toUpperCase()}function Ba(t,o){return o==="circle"?t/2:t===24||t===208?8:t===32||t===40||t===48?12:t===56?16:t===84||t===96?24:12}const Fa="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",Va="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",Wa="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",Za="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",qa={male:Fa,female:Va,org:Za,neutral:Wa},je=E.forwardRef((t,o)=>{const{style:r,size:n=40,isLoading:d=!1,isDisabled:i=!1,shape:u="circle",variant:_="light",placeholderType:c="neutral",name:b="",imgSrc:f,imgAlt:g="",icon:y,imgProps:m,colorScheme:j,"data-testid":k,...T}=t,{onClick:w,onPointerDown:C}=T,L=!i&&!d&&(!!w||!!C),[z,D]=E.useState(!1);E.useEffect(()=>{f&&D(!1)},[f]);const I=f&&!z?"image":y?"icon":b?"name":"placeholder",Z=j||I==="name"&&za(b)||"gray",B=Q(W.avatar,W[u],W[`size-${n}`],W[`variant-${_}`],W[`color-${Z}`],{[W.disabled]:i,[W.loading]:d,[W.clickable]:L}),Y={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:Q(W.icon),children:y==null?void 0:y({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:Q(W.name),title:g,children:Da(b)}),placeholder:()=>s.jsx("img",{...m,"data-testid":"avatar-placeholder",className:W.image,src:qa[c],alt:g}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...m,className:W.image,src:f,alt:g,onLoad:()=>D(!1),onError:U=>{var A;D(!0),(A=m==null?void 0:m.onError)==null||A.call(m,U)}})},H=U=>{L&&(w==null||w(U))};return s.jsx("div",{ref:o,onClick:H,className:B,style:r,"data-testid":k,"aria-disabled":i||d,children:Y[I](null)})}),Ua="_avatarGroup_157g4_1",Ga={avatarGroup:Ua};let Ya=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((o,r)=>(r&=63,r<36?o+=r.toString(36):r<62?o+=(r-26).toString(36).toUpperCase():r>62?o+="-":o+="_",o),"");function Ha(t,o,r,n,d,i,u){const _=Math.min(d,i)/2,c=Math.min(u,_),b=["M0,0",`H${t}`,`V${o}`,"H0","V0","Z"].join(" "),f=[`M${r+c},${n}`,`L${r+d-c},${n}`,`A${c},${c} 0 0 1 ${r+d},${n+c}`,`L${r+d},${n+i-c}`,`A${c},${c} 0 0 1 ${r+d-c},${n+i}`,`L${r+c},${n+i}`,`A${c},${c} 0 0 1 ${r},${n+i-c}`,`L${r},${n+c}`,`A${c},${c} 0 0 1 ${r+c},${n}`,"Z"].join(" ");return`${b} ${f}`}const Ja=2,Ka=t=>{const{avatars:o=[],overflowCount:r=0,size:n=40,overlap:d=.3,shape:i="circle",overflowOnClick:u}=t,_=n*d,c=-_+Ja,b=Ba(n,i),g=E.useRef(Ya()).current.toString(),y=Q(Ga.avatarGroup),m=Ha(n,n,n-_,0,n,n,b);return o.length===0?null:s.jsxs("div",{className:y,children:[o.map((j,k,T)=>{const w=k+1>=T.length;if(j.wrapper){const C=j.wrapper;return s.jsx("div",{style:{clipPath:w&&!r?void 0:`url(#${g})`,marginRight:c},children:s.jsx(C,{children:s.jsx(je,{size:n,shape:i,...j})})},Ae(j)+k)}return s.jsx("div",{style:{clipPath:w&&!r?void 0:`url(#${g})`,marginRight:c},children:s.jsx(je,{size:n,shape:i,...j})},Ae(j)+k)}),r>0&&s.jsx("div",{style:{marginRight:c},children:s.jsx(je,{size:n,shape:i,onClick:u,icon:()=>Aa(r),colorScheme:"gray"})}),s.jsx("svg",{width:"0",height:"0",children:s.jsx("clipPath",{id:`${g}`,children:s.jsx("path",{clipPathUnits:"objectBoundingBox",d:m,clipRule:"evenodd"})})})]})},Qa=Object.assign(je,{Group:Ka}),Xa="_wrapper_1ncab_5",er="_badge__container_1ncab_6",tr="_badge__content_1ncab_7",ar="_interactive_1ncab_20",rr="_disabled_1ncab_21",nr="_icon_1ncab_22",J={wrapper:Xa,badge__container:er,badge__content:tr,interactive:ar,disabled:rr,icon:nr,"variant-filled":"_variant-filled_1ncab_101","color-brand":"_color-brand_1ncab_106","color-red":"_color-red_1ncab_110","color-orange":"_color-orange_1ncab_114","color-yellow":"_color-yellow_1ncab_118","color-green":"_color-green_1ncab_122","color-blue":"_color-blue_1ncab_126","color-lightblue":"_color-lightblue_1ncab_130","color-purple":"_color-purple_1ncab_134","color-gray":"_color-gray_1ncab_138","color-contrast":"_color-contrast_1ncab_142","variant-light":"_variant-light_1ncab_148","variant-outline":"_variant-outline_1ncab_220","variant-transparent":"_variant-transparent_1ncab_294","position-top-left":"_position-top-left_1ncab_361","position-top-right":"_position-top-right_1ncab_367","position-bottom-left":"_position-bottom-left_1ncab_373","position-bottom-right":"_position-bottom-right_1ncab_379","position-top-center":"_position-top-center_1ncab_385","position-bottom-center":"_position-bottom-center_1ncab_391","position-middle-left":"_position-middle-left_1ncab_397","position-middle-right":"_position-middle-right_1ncab_403","position-middle-center":"_position-middle-center_1ncab_409","position-top-left-inside":"_position-top-left-inside_1ncab_416","position-top-right-inside":"_position-top-right-inside_1ncab_422","position-bottom-left-inside":"_position-bottom-left-inside_1ncab_428","position-bottom-right-inside":"_position-bottom-right-inside_1ncab_434","position-top-center-inside":"_position-top-center-inside_1ncab_440","position-bottom-center-inside":"_position-bottom-center-inside_1ncab_446","position-middle-left-inside":"_position-middle-left-inside_1ncab_452","position-middle-right-inside":"_position-middle-right-inside_1ncab_458"},or=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),sr=t=>{if(!t)return null;let o=t;for(;o;){const n=window.getComputedStyle(o).backgroundColor;if(!or(n))return n;o=o.parentElement}return null},ir=()=>{const t=E.useRef(null),[o,r]=E.useState(null);return E.useEffect(()=>{if(t.current){const n=sr(t.current);r(n)}},[]),{ref:t,bgColor:o}},lr=E.forwardRef((t,o)=>{const{icon:r,children:n,variant:d="filled",label:i,colorScheme:u="red",size:_=20,position:c="top-right",positionOffset:b={x:0,y:0},cutoutBackground:f,isDisabled:g,className:y,"data-testid":m="badge",...j}=t,{onClick:k,onPointerDown:T}=j,{ref:w,bgColor:C}=ir(),P=f||C,z=!g&&(!!k||!!T),D=Q(J.badge__container,J[`position-${c}`]),I=Q(y,J.badge__content,J[`color-${u}`],J[`variant-${d}`],{[J.icon]:!!r,[J.interactive]:z,[J.disabled]:g}),Z={"--badge-height":`${_}px`,"--badge-offset-x":`${b.x}px`,"--badge-offset-y":`${b.y}px`,...P&&{"--badge-cutout-bg":P},...d==="transparent"&&{"--badge-cutout-bg":"transparent"}},B=(r==null?void 0:r({}))||i,Y=H=>{z&&(k==null||k(H))};return s.jsxs("div",{className:J.wrapper,ref:w,"data-testid":m+"-wrapper",children:[n,s.jsx("span",{className:D,style:Z,"data-testid":m+"-container",children:s.jsx("span",{...j,onClick:Y,className:I,"data-testid":m+"-content",ref:o,"aria-disabled":g,children:B})})]})}),cr="_container_chiat_7",dr="_image_chiat_19",ur="_loading_chiat_28",Ie={container:cr,image:dr,loading:ur},_r="_loader_1tevf_1",pr="_spin_1tevf_1",fr="_accent_1tevf_20",gr="_neutral_1tevf_24",br="_positive_1tevf_28",hr="_negative_1tevf_32",yr="_gray_1tevf_36",vr="_special_1tevf_40",mr="_contrast_1tevf_44",Cr="_container_1tevf_48",xr="_overlay_1tevf_56",pe={loader:_r,spin:pr,accent:fr,neutral:gr,positive:br,negative:hr,gray:yr,special:vr,contrast:mr,container:Cr,overlay:xr,"size-16":"_size-16_1tevf_71","size-24":"_size-24_1tevf_75","size-48":"_size-48_1tevf_79","size-64":"_size-64_1tevf_83","size-96":"_size-96_1tevf_87"},lt=E.forwardRef(({size:t=24,variant:o="accent",className:r,"data-testid":n="loader",style:d,...i},u)=>{const _=Q(pe.loader,pe[o],pe[`size-${t}`],r);return s.jsx("svg",{ref:u,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":n,style:d,...i,children:s.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),wr=E.forwardRef((t,o)=>{const{loading:r=!1,size:n=24,variant:d="accent",children:i,className:u,style:_,"data-testid":c,...b}=t,f=Q(pe.container,u);return s.jsxs("div",{ref:o,className:f,style:_,"data-testid":c,...b,children:[i,r&&s.jsx("div",{className:pe.overlay,children:s.jsx(lt,{size:n,variant:d,"data-testid":`${c}-spinner`})})]})}),ct=E.forwardRef((t,o)=>t.children?s.jsx(wr,{ref:o,...t}):s.jsx(lt,{ref:o,...t})),Rr=({width:t=48,height:o=48,className:r,"data-testid":n})=>s.jsx("svg",{width:t,height:o,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:r,"data-testid":n,children:s.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),jr=E.forwardRef((t,o)=>{const{alt:r="",loading:n="lazy",src:d,isLoading:i=!1,className:u,"data-testid":_="image",onError:c,onLoad:b,...f}=t,[g,y]=E.useState("loading"),m=g==="error",j=(i||g==="loading")&&!m,k=g==="loaded"&&!i,T=Q(Ie.image,{[Ie.loading]:j},u),w=E.useCallback(L=>{y("loaded"),b==null||b(L)},[b]),C=E.useCallback(L=>{y("error"),c==null||c(L)},[c]),P={loader:s.jsxs(E.Fragment,{children:[s.jsx(ct,{size:48,variant:"special","data-testid":`${_}-loader`}),s.jsx("img",{alt:r,src:d,onLoad:w,onError:C,style:{display:"none"}})]}),error:s.jsx(Rr,{"data-testid":`${_}-fallback`}),image:s.jsx("img",{ref:o,alt:r,"data-testid":_,loading:n,src:d,className:T})};return E.useEffect(()=>{if(!d){y("error");return}y("loading")},[d]),s.jsxs("div",{className:Ie.container,"data-testid":`${_}-container`,...f,children:[j&&P.loader,m&&P.error,k&&P.image]})}),dt={},ut=E.createContext({locale:dt}),_t=()=>{const t=E.useContext(ut);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Er=()=>{const{locale:t}=_t();return t},Sr={},$r={},kr={},Tr=({locale:t={},theme:o,children:r,className:n})=>{const d=o?{...Object.fromEntries(Object.entries(o))}:{};return s.jsx("div",{"data-testid":"ConfigProvider-component",style:d,className:q.clsx(Sr,$r,kr,n),children:s.jsx(ut.Provider,{value:{locale:t},children:r})})},Or={},Nr="_tag_1llsi_1",Pr="_label_1llsi_16",Lr="_iconWrapper_1llsi_20",Ir="_medium_1llsi_27",Ar="_large_1llsi_33",Mr="_disabled_1llsi_43",zr="_neutral_1llsi_47",Dr="_positive_1llsi_53",Br="_negative_1llsi_59",Fr="_warning_1llsi_65",Vr="_vivid_1llsi_71",Wr="_special_1llsi_77",Zr="_accent_1llsi_84",qr="_blue_1llsi_90",Ur="_lovely_1llsi_96",Gr="_dreamy_1llsi_102",ne={tag:Nr,label:Pr,iconWrapper:Lr,medium:Ir,large:Ar,disabled:Mr,neutral:zr,positive:Dr,negative:Br,warning:Fr,vivid:Vr,special:Wr,accent:Zr,blue:qr,lovely:Ur,dreamy:Gr},Ee={"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"},Yr=E.forwardRef((t,o)=>{const{className:r,children:n,componentStyle:d="neutral",size:i="medium",disabled:u=!1,showLabel:_=!!n,slotStart:c,slotEnd:b,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":y}=t,{className:m,...j}=f,{className:k,...T}=g;return s.jsxs("div",{className:q.clsx(ne.tag,ne[i],ne[d],{[ne.disabled]:u,[Ee["typography-label-3-regular"]]:i==="medium",[Ee["typography-subtitle-1-semibold"]]:i==="large"},r),"data-testid":y||"tag-component",ref:o,children:[c&&s.jsx("span",{className:q.clsx([ne.iconWrapper,m]),...j,children:c}),_&&s.jsx("span",{className:q.clsx([ne.label]),children:n}),b&&s.jsx("span",{className:q.clsx([ne.iconWrapper,k]),...T,children:b})]})}),Hr="_checkbox_qo5f5_43",Jr="_input_qo5f5_59",Kr="_icon_qo5f5_67",Qr="_container_qo5f5_84",Xr="_error_qo5f5_135",en="_checkboxWrapper_qo5f5_147",tn="_medium_qo5f5_201",an="_large_qo5f5_206",rn="_label_qo5f5_247",K={checkbox:Hr,input:Jr,icon:Kr,container:Qr,error:Xr,checkboxWrapper:en,medium:tn,large:an,label:rn},nn=({width:t=12,height:o=9,className:r="",color:n="currentColor",...d})=>s.jsx("svg",{className:r,width:t,height:o,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:n})}),on=({width:t=12,height:o=2,className:r="",color:n="currentColor",...d})=>s.jsx("svg",{className:r,width:t,height:o,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...d,children:s.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:n})}),sn={medium:{width:10.83,height:7.5},large:{width:13,height:9}},ln=({size:t,isChecked:o,isDisabled:r,indeterminate:n,dataTestId:d})=>{const{width:i,height:u}=sn[t];return s.jsx("div",{className:K.icon,"data-testid":`${d}-icon`,"data-checked":o,"data-disabled":r,"data-indeterminate":n,children:n?s.jsx(on,{width:i,height:u}):s.jsx(nn,{width:i,height:u})})},cn=E.forwardRef((t,o)=>{const{name:r,value:n,size:d="medium",indeterminate:i=!1,loading:u=!1,error:_,disabled:c=!1,containerClassName:b,className:f,containerStyle:g,style:y,children:m,clickableLabel:j=!0,tabIndex:k,onChange:T,"data-testid":w="checkbox"}=t,[C,P]=E.useState(!1),L=n??C,z=c||u,D=!!_,I=L||i,Z=q(K.container,K[d],b),B=q(K.checkbox,K[d],{[K.error]:D},f),Y=O=>{z||(P(O.target.checked),T==null||T(O.target.checked,O))},H=O=>{if(O.key==="Enter"&&!z){O.preventDefault();const G=!I;P(G),T==null||T(G)}},U=O=>{j||O.preventDefault()},A=O=>O.stopPropagation();return s.jsxs("label",{className:Z,htmlFor:r,style:g,"data-testid":w,"data-clickable-label":j,children:[s.jsx("div",{className:K.checkboxWrapper,children:s.jsxs("div",{tabIndex:k||0,className:B,style:y,onKeyDown:H,"aria-checked":I,"aria-disabled":z,"aria-invalid":D,"aria-describedby":_?`${r}-error`:void 0,"data-testid":`${w}-label`,children:[s.jsx("input",{ref:o,type:"checkbox",id:r,name:r,checked:I,disabled:z,className:K.input,onChange:Y,onClick:A,"aria-checked":I,"aria-invalid":D,"aria-describedby":_?`${r}-error`:void 0,"data-testid":`${w}-input`}),s.jsx(ln,{name:r,size:d,isChecked:I,isDisabled:z,indeterminate:i,dataTestId:w})]})}),m&&s.jsx("span",{"data-testid":`${w}-label-text`,"data-clickable-label":j,className:K.label,onClick:U,children:m})]})}),dn="_typography_zt7xg_1",un="_disabled_zt7xg_8",_n="_primary_zt7xg_13",pn="_secondary_zt7xg_18",fn="_tertiary_zt7xg_23",gn="_accent_zt7xg_28",bn="_positive_zt7xg_38",hn="_negative_zt7xg_48",yn="_warning_zt7xg_58",vn="_special_zt7xg_68",mn="_contrast_zt7xg_78",ie={typography:dn,disabled:un,primary:_n,secondary:pn,tertiary:fn,accent:gn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:bn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:hn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:yn,"warning-secondary":"_warning-secondary_zt7xg_63",special:vn,"special-secondary":"_special-secondary_zt7xg_73",contrast:mn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Cn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},ot=t=>{const o=it.forwardRef(({size:r=3,children:n,className:d,"data-testid":i,as:u,fontWeight:_="semibold",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const y=u||Cn[r],m=q.clsx(ie.typography,Ee[`typography-${t}-${r}-${_}`],ie[b],{[ie.disabled]:c},d);return n?s.jsx(y,{ref:g,className:m,"data-testid":i,...f,children:n}):null});return o.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,o},st=t=>{const o=it.forwardRef(({size:r=3,children:n,className:d,"data-testid":i,as:u="p",fontWeight:_="regular",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const y=u,m=q.clsx(ie.typography,Ee[`typography-${t}-${r}-${_}`],ie[b],{[ie.disabled]:c},d);return n?s.jsx(y,{ref:g,className:m,"data-testid":i,...f,children:n}):null});return o.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,o},xn={Title:ot("title"),Subtitle:ot("subtitle"),Label:st("label"),Paragraph:st("paragraph")};exports.Avatar=Qa;exports.Badge=lr;exports.Button=Ra;exports.Checkbox=cn;exports.ConfigProvider=Tr;exports.Image=jr;exports.Loader=ct;exports.Tag=Yr;exports.Typography=xn;exports.enUS=dt;exports.ruRU=Or;exports.useConfig=_t;exports.useLocale=Er;
|