skillgrid 0.0.22 → 0.0.23-dev-31782-34252-avatar-and-badge.1144012
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/README.md +188 -194
- package/dist/components/Avatar/Avatar.d.ts +13 -1
- package/dist/components/Avatar/Avatar.type.d.ts +9 -5
- package/dist/components/Avatar/AvatarGroup/AvatarGroup.d.ts +0 -2
- package/dist/components/Avatar/lib/get-avatar-border-radius-by-size-and-shape.d.ts +8 -2
- package/dist/components/Avatar/lib/get-initials-color.d.ts +7 -1
- package/dist/components/Avatar/lib/get-initials.d.ts +5 -0
- package/dist/components/Avatar/lib/get-overflow-count-text.d.ts +5 -0
- package/dist/components/Avatar/lib/get-typography-classes-from-avatar-size.d.ts +10 -0
- package/dist/components/Avatar/lib/index.d.ts +1 -0
- package/dist/components/Badge/Badge.type.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 +1250 -905
- package/dist/utils/other.d.ts +8 -0
- package/package.json +8 -5
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 S=require("react"),Z=require("clsx");function Dt(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const o=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:()=>t[a]})}}return n.default=t,Object.freeze(n)}const it=Dt(S);function zt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Se={exports:{}},pe={};/**
|
|
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 Bt(){if(Qe)return pe;Qe=1;var t=S,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=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={},h=null,C=null;b!==void 0&&(h=""+b),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(C=c.ref);for(f in c)o.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:n,type:_,key:h,ref:C,props:g,_owner:d.current}}return pe.Fragment=a,pe.jsx=u,pe.jsxs=u,pe}var fe={};/**
|
|
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
|
-
`),E=
|
|
21
|
-
`+
|
|
17
|
+
*/var Xe;function Ft(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var t=S,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=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"),h=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),w=Symbol.iterator,N="@@iterator";function $(e){if(e===null||typeof e!="object")return null;var r=w&&e[w]||e[N];return typeof r=="function"?r:null}var k=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function m(e){{for(var r=arguments.length,l=new Array(r>1?r-1:0),p=1;p<r;p++)l[p-1]=arguments[p];P("error",e,l)}}function P(e,r,l){{var p=k.ReactDebugCurrentFrame,x=p.getStackAddendum();x!==""&&(r+="%s",l=l.concat([x]));var R=l.map(function(v){return String(v)});R.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,R)}}var I=!1,B=!1,F=!1,L=!1,q=!1,M;M=Symbol.for("react.module.reference");function Y(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===i||q||e===d||e===b||e===f||L||e===C||I||B||F||typeof e=="object"&&e!==null&&(e.$$typeof===h||e.$$typeof===g||e.$$typeof===u||e.$$typeof===_||e.$$typeof===c||e.$$typeof===M||e.getModuleId!==void 0))}function H(e,r,l){var p=e.displayName;if(p)return p;var x=r.displayName||r.name||"";return x!==""?l+"("+x+")":l}function U(e){return e.displayName||"Context"}function D(e){if(e==null)return null;if(typeof e.tag=="number"&&m("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 o:return"Fragment";case a: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 r=e;return U(r)+".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:D(e.type)||"Memo";case h:{var x=e,R=x._payload,v=x._init;try{return D(v(R))}catch{return null}}}return null}var j=Object.assign,V=0,X,ae,he,ye,me,ve,Ce;function xe(){}xe.__reactDisabledLog=!0;function $e(){{if(V===0){X=console.log,ae=console.info,he=console.warn,ye=console.error,me=console.group,ve=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:xe,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function je(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},e,{value:X}),info:j({},e,{value:ae}),warn:j({},e,{value:he}),error:j({},e,{value:ye}),group:j({},e,{value:me}),groupCollapsed:j({},e,{value:ve}),groupEnd:j({},e,{value:Ce})})}V<0&&m("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=k.ReactCurrentDispatcher,re;function ee(e,r,l){{if(re===void 0)try{throw Error()}catch(x){var p=x.stack.trim().match(/\n( *(at )?)/);re=p&&p[1]||""}return`
|
|
18
|
+
`+re+e}}var ne=!1,te;{var ue=typeof WeakMap=="function"?WeakMap:Map;te=new ue}function Me(e,r){if(!e||ne)return"";{var l=te.get(e);if(l!==void 0)return l}var p;ne=!0;var x=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var R;R=de.current,de.current=null,$e();try{if(r){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(z){p=z}Reflect.construct(e,[],v)}else{try{v.call()}catch(z){p=z}e.call(v.prototype)}}else{try{throw Error()}catch(z){p=z}e()}}catch(z){if(z&&p&&typeof z.stack=="string"){for(var y=z.stack.split(`
|
|
19
|
+
`),A=p.stack.split(`
|
|
20
|
+
`),E=y.length-1,O=A.length-1;E>=1&&O>=0&&y[E]!==A[O];)O--;for(;E>=1&&O>=0;E--,O--)if(y[E]!==A[O]){if(E!==1||O!==1)do if(E--,O--,O<0||y[E]!==A[O]){var W=`
|
|
21
|
+
`+y[E].replace(" at new "," at ");return e.displayName&&W.includes("<anonymous>")&&(W=W.replace("<anonymous>",e.displayName)),typeof e=="function"&&te.set(e,W),W}while(E>=1&&O>=0);break}}}finally{ne=!1,de.current=R,je(),Error.prepareStackTrace=x}var le=e?e.displayName||e.name:"",oe=le?ee(le):"";return typeof e=="function"&&te.set(e,oe),oe}function ft(e,r,l){return Me(e,!1)}function gt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function we(e,r,l){if(e==null)return"";if(typeof e=="function")return Me(e,gt(e));if(typeof e=="string")return ee(e);switch(e){case b:return ee("Suspense");case f:return ee("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return ft(e.render);case g:return we(e.type,r,l);case h:{var p=e,x=p._payload,R=p._init;try{return we(R(x),r,l)}catch{}}}return""}var _e=Object.prototype.hasOwnProperty,De={},ze=k.ReactDebugCurrentFrame;function Re(e){if(e){var r=e._owner,l=we(e.type,e._source,r?r.type:null);ze.setExtraStackFrame(l)}else ze.setExtraStackFrame(null)}function bt(e,r,l,p,x){{var R=Function.call.bind(_e);for(var v in e)if(R(e,v)){var y=void 0;try{if(typeof e[v]!="function"){var A=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 A.name="Invariant Violation",A}y=e[v](r,v,p,l,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){y=E}y&&!(y instanceof Error)&&(Re(x),m("%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 y),Re(null)),y instanceof Error&&!(y.message in De)&&(De[y.message]=!0,Re(x),m("Failed %s type: %s",l,y.message),Re(null))}}}var ht=Array.isArray;function Ee(e){return ht(e)}function yt(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,l=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return l}}function mt(e){try{return Be(e),!1}catch{return!0}}function Be(e){return""+e}function Fe(e){if(mt(e))return m("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yt(e)),Be(e)}var qe=k.ReactCurrentOwner,vt={key:!0,ref:!0,__self:!0,__source:!0},Ve,We;function Ct(e){if(_e.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function xt(e){if(_e.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function wt(e,r){typeof e.ref=="string"&&qe.current}function Rt(e,r){{var l=function(){Ve||(Ve=!0,m("%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)",r))};l.isReactWarning=!0,Object.defineProperty(e,"key",{get:l,configurable:!0})}}function St(e,r){{var l=function(){We||(We=!0,m("%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)",r))};l.isReactWarning=!0,Object.defineProperty(e,"ref",{get:l,configurable:!0})}}var kt=function(e,r,l,p,x,R,v){var y={$$typeof:n,type:e,key:r,ref:l,props:v,_owner:R};return y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(y,"_self",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.defineProperty(y,"_source",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y};function $t(e,r,l,p,x){{var R,v={},y=null,A=null;l!==void 0&&(Fe(l),y=""+l),xt(r)&&(Fe(r.key),y=""+r.key),Ct(r)&&(A=r.ref,wt(r,x));for(R in r)_e.call(r,R)&&!vt.hasOwnProperty(R)&&(v[R]=r[R]);if(e&&e.defaultProps){var E=e.defaultProps;for(R in E)v[R]===void 0&&(v[R]=E[R])}if(y||A){var O=typeof e=="function"?e.displayName||e.name||"Unknown":e;y&&Rt(v,O),A&&St(v,O)}return kt(e,y,A,x,p,qe.current,v)}}var Te=k.ReactCurrentOwner,Ze=k.ReactDebugCurrentFrame;function ie(e){if(e){var r=e._owner,l=we(e.type,e._source,r?r.type:null);Ze.setExtraStackFrame(l)}else Ze.setExtraStackFrame(null)}var Oe;Oe=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function Ue(){{if(Te.current){var e=D(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 jt(e){return""}var Ge={};function Et(e){{var r=Ue();if(!r){var l=typeof e=="string"?e:e.displayName||e.name;l&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+l+">.")}return r}}function Ye(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var l=Et(r);if(Ge[l])return;Ge[l]=!0;var p="";e&&e._owner&&e._owner!==Te.current&&(p=" It was passed a child from "+D(e._owner.type)+"."),ie(e),m('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),ie(null)}}function He(e,r){{if(typeof e!="object")return;if(Ee(e))for(var l=0;l<e.length;l++){var p=e[l];Ne(p)&&Ye(p,r)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var x=$(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,r)}}}function Tt(e){{var r=e.type;if(r==null||typeof r=="string")return;var l;if(typeof r=="function")l=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===g))l=r.propTypes;else return;if(l){var p=D(r);bt(l,e.props,"prop",p,e)}else if(r.PropTypes!==void 0&&!Oe){Oe=!0;var x=D(r);m("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",x||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&m("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ot(e){{for(var r=Object.keys(e.props),l=0;l<r.length;l++){var p=r[l];if(p!=="children"&&p!=="key"){ie(e),m("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",p),ie(null);break}}e.ref!==null&&(ie(e),m("Invalid attribute `ref` supplied to `React.Fragment`."),ie(null))}}var Je={};function Ke(e,r,l,p,x,R){{var v=Y(e);if(!v){var y="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(y+=" 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 A=jt();A?y+=A:y+=Ue();var E;e===null?E="null":Ee(e)?E="array":e!==void 0&&e.$$typeof===n?(E="<"+(D(e.type)||"Unknown")+" />",y=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,m("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,y)}var O=$t(e,r,l,x,R);if(O==null)return O;if(v){var W=r.children;if(W!==void 0)if(p)if(Ee(W)){for(var le=0;le<W.length;le++)He(W[le],e);Object.freeze&&Object.freeze(W)}else m("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(W,e)}if(_e.call(r,"key")){var oe=D(e),z=Object.keys(r).filter(function(Mt){return Mt!=="key"}),Pe=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!Je[oe+Pe]){var At=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";m(`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,oe,At,oe),Je[oe+Pe]=!0}}return e===o?Ot(O):Tt(O),O}}function Nt(e,r,l){return Ke(e,r,l,!0)}function Pt(e,r,l){return Ke(e,r,l,!1)}var Lt=Pt,It=Nt;fe.Fragment=o,fe.jsx=Lt,fe.jsxs=It}()),fe}var et;function qt(){return et||(et=1,process.env.NODE_ENV==="production"?Se.exports=Bt():Se.exports=Ft()),Se.exports}var s=qt();const Vt=t=>t.as==="a",Wt=t=>t.as===void 0||t.as==="button",Zt="_button_1abee_213",Ut="_disabled_1abee_237",Gt="_loading_1abee_237",Yt="_neutral_1abee_259",Ht="_accent_1abee_263",Jt="_positive_1abee_267",Kt="_negative_1abee_271",Qt="_contrast_1abee_275",Xt="_special_1abee_279",ea="_primary_1abee_284",ta="_secondary_1abee_285",aa="_tertiary_1abee_286",ra="_label_1abee_321",na="_rightGroup_1abee_333",oa="_iconOnly_1abee_349",sa="_large_1abee_357",ia="_medium_1abee_361",la="_small_1abee_365",ca="_spaceBetween_1abee_370",da="_stretched_1abee_384",ua="_icon_1abee_349",_a="_badge_1abee_705",pa="_badgeMedium_1abee_721",fa="_circular_1abee_738",ga="_badgeSmall_1abee_743",ba="_badgeExtraSmall_1abee_765",ha="_withSubcaption_1abee_784",ya="_subcaption_1abee_797",ma="_loader_1abee_804",va="_spin_1abee_1",Ca="_l_1abee_237",xa="_m_1abee_361",wa="_s_1abee_279",Ra="_xs_1abee_869",T={button:Zt,disabled:Ut,loading:Gt,neutral:Yt,accent:Ht,positive:Jt,negative:Kt,contrast:Qt,special:Xt,primary:ea,secondary:ta,tertiary:aa,label:ra,rightGroup:na,iconOnly:oa,large:sa,medium:ia,small:la,spaceBetween:ca,stretched:da,icon:ua,badge:_a,badgeMedium:pa,circular:fa,badgeSmall:ga,badgeExtraSmall:ba,withSubcaption:ha,subcaption:ya,loader:ma,spin:va,l:Ca,m:xa,s:wa,xs:Ra},tt=({isLoading:t,showBadge:n,badgeValue:a,badgeSize:o,icon:d,children:i,postfix:u,showSubcaption:_,subcaption:c,size:b})=>{if(t)return s.jsx("span",{className:T.loader,"data-testid":"button-loader","aria-hidden":"true"});const f=o==="extra-small",g=parseInt(String(a),10),h=!isNaN(g)&&g>=0&&g<=9;return s.jsxs(s.Fragment,{children:[n&&(a||f)&&s.jsx("span",{"data-testid":"button-badge",className:Z.clsx(T.badge,T[`badge${f?"ExtraSmall":o==="medium"?"Medium":"Small"}`],{[T.circular]:h&&!f}),children:!f&&a}),_&&b!=="s"&&b!=="xs"?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:T.label,children:i}),s.jsx("span",{"data-testid":"button-subcaption",className:T.subcaption,children:c})]}):i?s.jsxs(s.Fragment,{children:[s.jsx("span",{"data-testid":"button-label",className:T.label,children:i}),s.jsxs("div",{"data-testid":"button-right-group",className:T.rightGroup,children:[d&&s.jsx("span",{"data-testid":"button-icon",className:T.icon,children:d}),u&&s.jsx("span",{"data-testid":"button-postfix",className:T.postfix,children:u})]})]}):s.jsx("span",{"data-testid":"button-icon",className:T.icon,children:d})]})},Sa=S.forwardRef((t,n)=>{const{mode:a="primary",size:o="m",buttonStyle:d="neutral",loading:i=!1,disabled:u=!1,showBadge:_=!1,badgeSize:c="small",badgeValue:b,showSubcaption:f=!1,subcaption:g,stretched:h=!1,spaceBetween:C=!1,icon:w,postfix:N,className:$,children:k}=t,m=u,P=i,I=!m&&!P,B=!!w&&!k,F=Z.clsx(T.button,T[o],T[a],T[d],{[T.disabled]:m,[T.loading]:P,[T.stretched]:h,[T.spaceBetween]:C&&h,[T.withSubcaption]:f&&g&&o!=="s"&&o!=="xs",[T.iconOnly]:B},$),L={isLoading:P,showBadge:_,badgeValue:b,badgeSize:c,icon:w,children:k,postfix:N,showSubcaption:f,subcaption:g,size:o};if(Vt(t)){const{href:q,onClick:M,mode:Y,size:H,buttonStyle:U,loading:D,disabled:j,showBadge:V,badgeSize:X,badgeValue:ae,showSubcaption:he,subcaption:ye,stretched:me,spaceBetween:ve,icon:Ce,postfix:xe,className:$e,tabIndex:je,children:de,"data-testid":re,style:ee,...ne}=t,te=ue=>{I&&M&&M(ue)};return s.jsx("a",{ref:n,className:F,href:I?q:void 0,tabIndex:t.tabIndex,onClick:te,"data-testid":re,"aria-disabled":m||P,style:ee,...ne,children:s.jsx(tt,{...L})})}if(Wt(t)){const{type:q="button",onClick:M,mode:Y,size:H,buttonStyle:U,loading:D,disabled:j,showBadge:V,badgeSize:X,badgeValue:ae,showSubcaption:he,subcaption:ye,stretched:me,spaceBetween:ve,icon:Ce,postfix:xe,className:$e,tabIndex:je,children:de,"data-testid":re,style:ee,...ne}=t,te=ue=>{I&&M&&M(ue)};return s.jsx("button",{ref:n,type:q,className:F,disabled:m,tabIndex:t.tabIndex,onClick:te,"data-testid":re,"aria-disabled":m||P,style:ee,...ne,children:s.jsx(tt,{...L})})}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 ka(){return at||(at=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var i="",u=0;u<arguments.length;u++){var _=arguments[u];_&&(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 u="";for(var _ in i)n.call(i,_)&&i[_]&&(u=d(u,_));return u}function d(i,u){return u?i?i+" "+u:i+u:i}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Le)),Le.exports}var $a=ka();const Q=zt($a),ja="_avatar_1kyiq_17",Ea="_clickable_1kyiq_41",Ta="_icon_1kyiq_58",Oa="_disabled_1kyiq_63",Na="_loading_1kyiq_68",Pa="_image_1kyiq_74",La="_name_1kyiq_74",G={avatar:ja,clickable:Ea,icon:Ta,disabled:Oa,loading:Na,image:Pa,name:La,"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"},be={"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"},rt=99;function Ia(t){return t<rt?`+${t}`:`${rt}+`}function Ae(t){const n=typeof t=="string"?t:JSON.stringify(t);let a=5381;for(let o=0;o<n.length;o++){const d=n.charCodeAt(o);a=(a<<5)+a+d}return a>>>0}const Aa=["red","orange","yellow","green","blue","lightblue","purple"];function Ma(t,n=Aa){if(!t)return"gray";const a=Ae(t),o=Math.abs(a)%n.length;return n[o]}const nt=2;function Da(t){if(!t)return"";const n=t.trim().split(/\s+/);return n.length===1?t.slice(0,nt).toUpperCase():n.map(a=>a[0]).slice(0,nt).join("").toUpperCase()}const za={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function lt(t,n){return n==="circle"?t/2:za[t]||12}const Ba={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 Fa(t){return Ba[t]||"typography-subtitle-1-semibold"}const qa="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",Ua={male:qa,female:Va,org:Za,neutral:Wa},ke=S.forwardRef((t,n)=>{const{style:a,size:o=40,isLoading:d=!1,isDisabled:i=!1,shape:u="circle",variant:_="filled",placeholderType:c="neutral",name:b="",imgSrc:f,imgAlt:g="",icon:h,imgProps:C,colorScheme:w,className:N,"data-testid":$,...k}=t,{onClick:m,onPointerDown:P}=k,B=!i&&!d&&(!!m||!!P),[F,L]=S.useState(!1);S.useEffect(()=>{f&&L(!1)},[f]);const q=f&&!F?"image":h?"icon":b?"name":"placeholder",M=w||q==="name"&&Ma(b)||"gray",Y=Fa(o),H=lt(o,u),U=Q(N,G.avatar,G[`variant-${_}`],G[`color-${M}`],be[Y],{[G.disabled]:i,[G.loading]:d,[G.clickable]:B}),D={"--avatar-size":`${o}px`,"--avatar-border-radius":`${H}px`,...a},j={icon:()=>s.jsx("span",{"data-testid":"avatar-icon",title:g,role:"img",className:Q(G.icon),children:h==null?void 0:h({})}),name:()=>s.jsx("span",{role:"textbox","data-testid":"avatar-name",className:Q(G.name),title:g,children:Da(b)}),placeholder:()=>s.jsx("img",{...C,"data-testid":"avatar-placeholder",className:G.image,src:Ua[c],alt:g}),image:()=>s.jsx("img",{"data-testid":"avatar-image",...C,className:G.image,src:f,alt:g,onLoad:()=>L(!1),onError:X=>{var ae;L(!0),(ae=C==null?void 0:C.onError)==null||ae.call(C,X)}})},V=X=>{B&&(m==null||m(X))};return s.jsx("div",{ref:n,onClick:V,className:U,style:D,"data-testid":$,"aria-disabled":i||d,children:j[q](null)})}),Ga="_avatarGroup_157g4_1",Ya={avatarGroup:Ga};let Ha=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((n,a)=>(a&=63,a<36?n+=a.toString(36):a<62?n+=(a-26).toString(36).toUpperCase():a>62?n+="-":n+="_",n),"");function Ja(t,n,a,o,d,i,u){const _=Math.min(d,i)/2,c=Math.min(u,_),b=["M0,0",`H${t}`,`V${n}`,"H0","V0","Z"].join(" "),f=[`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`${b} ${f}`}const Ka=3,Qa=t=>{const{avatars:n=[],size:a=40,overlap:o=.3,shape:d="circle",overflowCount:i=0,overflowProps:u}=t,_=a*o,c=-_+Ka,b=lt(a,d),g=S.useRef(Ha()).current.toString(),h=Q(Ya.avatarGroup),C=Ja(a,a,a-_,0,a,a,b);return n.length===0?null:s.jsxs("div",{className:h,children:[n.map((w,N,$)=>{const k=N+1>=$.length;if(w.wrapper){const m=w.wrapper;return s.jsx("div",{style:{clipPath:k&&!i?void 0:`url(#${g})`,marginRight:c},children:s.jsx(m,{children:s.jsx(ke,{size:a,shape:d,...w})})},Ae(w)+N)}return s.jsx("div",{style:{clipPath:k&&!i?void 0:`url(#${g})`,marginRight:c},children:s.jsx(ke,{size:a,shape:d,...w})},Ae(w)+N)}),i>0&&s.jsx("div",{style:{marginRight:c},children:s.jsx(ke,{size:a,shape:d,icon:()=>Ia(i),colorScheme:"gray",variant:"light",...u})}),s.jsx("svg",{width:"0",height:"0",children:s.jsx("clipPath",{id:`${g}`,children:s.jsx("path",{clipPathUnits:"objectBoundingBox",d:C,clipRule:"evenodd"})})})]})},Xa=Object.assign(ke,{Group:Qa}),er="_wrapper_ecbsu_5",tr="_badge__container_ecbsu_6",ar="_badge__content_ecbsu_7",rr="_interactive_ecbsu_20",nr="_disabled_ecbsu_21",or="_icon_ecbsu_22",J={wrapper:er,badge__container:tr,badge__content:ar,interactive:rr,disabled:nr,icon:or,"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"},sr=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),ir=t=>{if(!t)return null;let n=t;for(;n;){const o=window.getComputedStyle(n).backgroundColor;if(!sr(o))return o;n=n.parentElement}return null},lr=()=>{const t=S.useRef(null),[n,a]=S.useState(null);return S.useEffect(()=>{if(t.current){const o=ir(t.current);a(o)}},[]),{ref:t,bgColor:n}},cr=S.forwardRef((t,n)=>{const{icon:a,children:o,variant:d="filled",label:i,isHidden:u=!1,colorScheme:_="red",size:c=20,position:b="top-right",positionOffset:f={x:0,y:0},cutoutBackground:g,isDisabled:h,className:C,"data-testid":w="badge",...N}=t,{onClick:$,onPointerDown:k}=N,{ref:m,bgColor:P}=lr(),I=g||P,F=!h&&(!!$||!!k),L=Q(J.badge__container,J[`position-${b}`]),q=Q(C,J.badge__content,J[`color-${_}`],J[`variant-${d}`],{[J.disabled]:h,[J.icon]:!!a,[J.interactive]:F}),M={"--badge-height":`${c}px`,"--badge-offset-x":`${f.x}px`,"--badge-offset-y":`${f.y}px`,...I&&{"--badge-cutout-bg":I},...d==="transparent"&&{"--badge-cutout-bg":"transparent"}},Y=(a==null?void 0:a({}))||i,H=U=>{F&&($==null||$(U))};return s.jsxs("div",{className:J.wrapper,ref:m,"data-testid":w+"-wrapper",children:[o,!u&&s.jsx("span",{className:L,style:M,"data-testid":w+"-container",children:s.jsx("span",{...N,onClick:H,className:q,"data-testid":w+"-content",ref:n,"aria-disabled":h,children:Y})})]})}),dr="_container_chiat_7",ur="_image_chiat_19",_r="_loading_chiat_28",Ie={container:dr,image:ur,loading:_r},pr="_loader_1tevf_1",fr="_spin_1tevf_1",gr="_accent_1tevf_20",br="_neutral_1tevf_24",hr="_positive_1tevf_28",yr="_negative_1tevf_32",mr="_gray_1tevf_36",vr="_special_1tevf_40",Cr="_contrast_1tevf_44",xr="_container_1tevf_48",wr="_overlay_1tevf_56",ge={loader:pr,spin:fr,accent:gr,neutral:br,positive:hr,negative:yr,gray:mr,special:vr,contrast:Cr,container:xr,overlay:wr,"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"},ct=S.forwardRef(({size:t=24,variant:n="accent",className:a,"data-testid":o="loader",style:d,...i},u)=>{const _=Q(ge.loader,ge[n],ge[`size-${t}`],a);return s.jsx("svg",{ref:u,className:_,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":o,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"})})}),Rr=S.forwardRef((t,n)=>{const{loading:a=!1,size:o=24,variant:d="accent",children:i,className:u,style:_,"data-testid":c,...b}=t,f=Q(ge.container,u);return s.jsxs("div",{ref:n,className:f,style:_,"data-testid":c,...b,children:[i,a&&s.jsx("div",{className:ge.overlay,children:s.jsx(ct,{size:o,variant:d,"data-testid":`${c}-spinner`})})]})}),dt=S.forwardRef((t,n)=>t.children?s.jsx(Rr,{ref:n,...t}):s.jsx(ct,{ref:n,...t})),Sr=({width:t=48,height:n=48,className:a,"data-testid":o})=>s.jsx("svg",{width:t,height:n,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a,"data-testid":o,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"})}),kr=S.forwardRef((t,n)=>{const{alt:a="",loading:o="lazy",src:d,isLoading:i=!1,className:u,"data-testid":_="image",onError:c,onLoad:b,...f}=t,[g,h]=S.useState("loading"),C=g==="error",w=(i||g==="loading")&&!C,N=g==="loaded"&&!i,$=Q(Ie.image,{[Ie.loading]:w},u),k=S.useCallback(I=>{h("loaded"),b==null||b(I)},[b]),m=S.useCallback(I=>{h("error"),c==null||c(I)},[c]),P={loader:s.jsxs(S.Fragment,{children:[s.jsx(dt,{size:48,variant:"special","data-testid":`${_}-loader`}),s.jsx("img",{alt:a,src:d,onLoad:k,onError:m,style:{display:"none"}})]}),error:s.jsx(Sr,{"data-testid":`${_}-fallback`}),image:s.jsx("img",{ref:n,alt:a,"data-testid":_,loading:o,src:d,className:$})};return S.useEffect(()=>{if(!d){h("error");return}h("loading")},[d]),s.jsxs("div",{className:Ie.container,"data-testid":`${_}-container`,...f,children:[w&&P.loader,C&&P.error,N&&P.image]})}),ut={},_t=S.createContext({locale:ut}),pt=()=>{const t=S.useContext(_t);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},$r=()=>{const{locale:t}=pt();return t},jr={},Er={},Tr={},Or=({locale:t={},theme:n,children:a,className:o})=>{const d=n?{...Object.fromEntries(Object.entries(n))}:{};return s.jsx("div",{"data-testid":"ConfigProvider-component",style:d,className:Z.clsx(jr,Er,Tr,o),children:s.jsx(_t.Provider,{value:{locale:t},children:a})})},Nr={},Pr="_tag_1llsi_1",Lr="_label_1llsi_16",Ir="_iconWrapper_1llsi_20",Ar="_medium_1llsi_27",Mr="_large_1llsi_33",Dr="_disabled_1llsi_43",zr="_neutral_1llsi_47",Br="_positive_1llsi_53",Fr="_negative_1llsi_59",qr="_warning_1llsi_65",Vr="_vivid_1llsi_71",Wr="_special_1llsi_77",Zr="_accent_1llsi_84",Ur="_blue_1llsi_90",Gr="_lovely_1llsi_96",Yr="_dreamy_1llsi_102",se={tag:Pr,label:Lr,iconWrapper:Ir,medium:Ar,large:Mr,disabled:Dr,neutral:zr,positive:Br,negative:Fr,warning:qr,vivid:Vr,special:Wr,accent:Zr,blue:Ur,lovely:Gr,dreamy:Yr},Hr=S.forwardRef((t,n)=>{const{className:a,children:o,componentStyle:d="neutral",size:i="medium",disabled:u=!1,showLabel:_=!!o,slotStart:c,slotEnd:b,slotStartWrapperProps:f={},slotEndWrapperProps:g={},"data-testid":h}=t,{className:C,...w}=f,{className:N,...$}=g;return s.jsxs("div",{className:Z.clsx(se.tag,se[i],se[d],{[se.disabled]:u,[be["typography-label-3-regular"]]:i==="medium",[be["typography-subtitle-1-semibold"]]:i==="large"},a),"data-testid":h||"tag-component",ref:n,children:[c&&s.jsx("span",{className:Z.clsx([se.iconWrapper,C]),...w,children:c}),_&&s.jsx("span",{className:Z.clsx([se.label]),children:o}),b&&s.jsx("span",{className:Z.clsx([se.iconWrapper,N]),...$,children:b})]})}),Jr="_checkbox_qo5f5_43",Kr="_input_qo5f5_59",Qr="_icon_qo5f5_67",Xr="_container_qo5f5_84",en="_error_qo5f5_135",tn="_checkboxWrapper_qo5f5_147",an="_medium_qo5f5_201",rn="_large_qo5f5_206",nn="_label_qo5f5_247",K={checkbox:Jr,input:Kr,icon:Qr,container:Xr,error:en,checkboxWrapper:tn,medium:an,large:rn,label:nn},on=({width:t=12,height:n=9,className:a="",color:o="currentColor",...d})=>s.jsx("svg",{className:a,width:t,height:n,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:o})}),sn=({width:t=12,height:n=2,className:a="",color:o="currentColor",...d})=>s.jsx("svg",{className:a,width:t,height:n,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:o})}),ln={medium:{width:10.83,height:7.5},large:{width:13,height:9}},cn=({size:t,isChecked:n,isDisabled:a,indeterminate:o,dataTestId:d})=>{const{width:i,height:u}=ln[t];return s.jsx("div",{className:K.icon,"data-testid":`${d}-icon`,"data-checked":n,"data-disabled":a,"data-indeterminate":o,children:o?s.jsx(sn,{width:i,height:u}):s.jsx(on,{width:i,height:u})})},dn=S.forwardRef((t,n)=>{const{name:a,value:o,size:d="medium",indeterminate:i=!1,loading:u=!1,error:_,disabled:c=!1,containerClassName:b,className:f,containerStyle:g,style:h,children:C,clickableLabel:w=!0,tabIndex:N,onChange:$,"data-testid":k="checkbox"}=t,[m,P]=S.useState(!1),I=o??m,B=c||u,F=!!_,L=I||i,q=Z(K.container,K[d],b),M=Z(K.checkbox,K[d],{[K.error]:F},f),Y=j=>{B||(P(j.target.checked),$==null||$(j.target.checked,j))},H=j=>{if(j.key==="Enter"&&!B){j.preventDefault();const V=!L;P(V),$==null||$(V)}},U=j=>{w||j.preventDefault()},D=j=>j.stopPropagation();return s.jsxs("label",{className:q,htmlFor:a,style:g,"data-testid":k,"data-clickable-label":w,children:[s.jsx("div",{className:K.checkboxWrapper,children:s.jsxs("div",{tabIndex:N||0,className:M,style:h,onKeyDown:H,"aria-checked":L,"aria-disabled":B,"aria-invalid":F,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${k}-label`,children:[s.jsx("input",{ref:n,type:"checkbox",id:a,name:a,checked:L,disabled:B,className:K.input,onChange:Y,onClick:D,"aria-checked":L,"aria-invalid":F,"aria-describedby":_?`${a}-error`:void 0,"data-testid":`${k}-input`}),s.jsx(cn,{name:a,size:d,isChecked:L,isDisabled:B,indeterminate:i,dataTestId:k})]})}),C&&s.jsx("span",{"data-testid":`${k}-label-text`,"data-clickable-label":w,className:K.label,onClick:U,children:C})]})}),un="_typography_zt7xg_1",_n="_disabled_zt7xg_8",pn="_primary_zt7xg_13",fn="_secondary_zt7xg_18",gn="_tertiary_zt7xg_23",bn="_accent_zt7xg_28",hn="_positive_zt7xg_38",yn="_negative_zt7xg_48",mn="_warning_zt7xg_58",vn="_special_zt7xg_68",Cn="_contrast_zt7xg_78",ce={typography:un,disabled:_n,primary:pn,secondary:fn,tertiary:gn,accent:bn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:hn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:yn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:mn,"warning-secondary":"_warning-secondary_zt7xg_63",special:vn,"special-secondary":"_special-secondary_zt7xg_73",contrast:Cn,"contrast-secondary":"_contrast-secondary_zt7xg_83"},xn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},ot=t=>{const n=it.forwardRef(({size:a=3,children:o,className:d,"data-testid":i,as:u,fontWeight:_="semibold",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const h=u||xn[a],C=Z.clsx(ce.typography,be[`typography-${t}-${a}-${_}`],ce[b],{[ce.disabled]:c},d);return o?s.jsx(h,{ref:g,className:C,"data-testid":i,...f,children:o}):null});return n.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,n},st=t=>{const n=it.forwardRef(({size:a=3,children:o,className:d,"data-testid":i,as:u="p",fontWeight:_="regular",disabled:c=!1,typographyStyle:b="primary",...f},g)=>{const h=u,C=Z.clsx(ce.typography,be[`typography-${t}-${a}-${_}`],ce[b],{[ce.disabled]:c},d);return o?s.jsx(h,{ref:g,className:C,"data-testid":i,...f,children:o}):null});return n.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,n},wn={Title:ot("title"),Subtitle:ot("subtitle"),Label:st("label"),Paragraph:st("paragraph")};exports.Avatar=Xa;exports.Badge=cr;exports.Button=Sa;exports.Checkbox=dn;exports.ConfigProvider=Or;exports.Image=kr;exports.Loader=dt;exports.Tag=Hr;exports.Typography=wn;exports.enUS=ut;exports.ruRU=Nr;exports.useConfig=pt;exports.useLocale=$r;
|