skillgrid 0.0.14 → 0.0.16-beta
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/assets/react-svg-icons.d.ts +3 -3
- package/dist/components/Avatar/lib/get-initials-color.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +3 -1
- package/dist/components/LanguageSwitcher/LanguageSwitcher.d.ts +1 -1
- package/dist/components/Tag/Tag.d.ts +14 -0
- package/dist/components/Tag/Tag.type.d.ts +36 -0
- package/dist/components/Tag/index.d.ts +2 -0
- package/dist/index.cjs.js +10 -10
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +840 -773
- package/package.json +23 -15
- package/dist/App.d.ts +0 -2
- package/dist/components/StoryComponents.d.ts +0 -295
- package/dist/main.d.ts +0 -0
- package/dist/setupTests.d.ts +0 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const HomeIcon: () => import("react").JSX.Element;
|
|
2
|
-
declare const NotificationIcon: () => import("react").JSX.Element;
|
|
3
|
-
declare const CheckIcon: () => import("react").JSX.Element;
|
|
1
|
+
declare const HomeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const NotificationIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const CheckIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export { HomeIcon, NotificationIcon, CheckIcon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AvatarProps } from '../Avatar.type';
|
|
2
2
|
type AvatarColorType = AvatarProps['colorScheme'];
|
|
3
|
-
export declare function getInitialsColor(name: string, colors?: AvatarColorType[]): "brand" | "red" | "orange" | "yellow" | "green" | "blue" | "lightblue" | "purple" | "gray" |
|
|
3
|
+
export declare function getInitialsColor(name: string, colors?: AvatarColorType[]): "contrast" | "brand" | "red" | "orange" | "yellow" | "green" | "blue" | "lightblue" | "purple" | "gray" | undefined;
|
|
4
4
|
export {};
|
|
@@ -11,4 +11,4 @@ import { ButtonProps } from './Button.type';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare const Button: React.ForwardRefExoticComponent<(ButtonProps & {
|
|
13
13
|
style?: React.CSSProperties;
|
|
14
|
-
}) & React.RefAttributes<
|
|
14
|
+
}) & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
@@ -6,8 +6,10 @@ import { ConfigProviderProps } from './ConfigProvider.type.ts';
|
|
|
6
6
|
* @component
|
|
7
7
|
* @example
|
|
8
8
|
* import enUS from 'skillgrid/locale/en_US';
|
|
9
|
+
*
|
|
10
|
+
*
|
|
9
11
|
* <ConfigProvider locale={enUS} theme={{ '--button-background-accent': '#FF0000' }}>
|
|
10
12
|
* <Button mode="primary" buttonStyle="accent">Primary</Button>
|
|
11
13
|
* </ConfigProvider>
|
|
12
14
|
*/
|
|
13
|
-
export declare const ConfigProvider: ({ locale, theme, children, className, }: ConfigProviderProps) => import("react").JSX.Element;
|
|
15
|
+
export declare const ConfigProvider: ({ locale, theme, children, className, }: ConfigProviderProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -11,4 +11,4 @@ import { LanguageSwitcherProps } from './LanguageSwitcher.type';
|
|
|
11
11
|
* @param {LanguageSwitcherProps} props - The component props
|
|
12
12
|
* @returns {JSX.Element} A React component
|
|
13
13
|
*/
|
|
14
|
-
export declare const LanguageSwitcher: ({ className }: LanguageSwitcherProps) => import("react").JSX.Element;
|
|
14
|
+
export declare const LanguageSwitcher: ({ className }: LanguageSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TagProps } from './Tag.type';
|
|
2
|
+
/**
|
|
3
|
+
* Tag component
|
|
4
|
+
*
|
|
5
|
+
* @component
|
|
6
|
+
* @example
|
|
7
|
+
* ```tsx
|
|
8
|
+
* <Tag />
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @param props - The component props
|
|
12
|
+
* @returns A React component
|
|
13
|
+
*/
|
|
14
|
+
export declare const Tag: import('react').ForwardRefExoticComponent<Omit<TagProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
export interface TagProps extends ComponentProps<'div'> {
|
|
3
|
+
className?: string;
|
|
4
|
+
/** Слот для строки с текстом */
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** Размер компонента
|
|
7
|
+
* @default "medium"
|
|
8
|
+
*/
|
|
9
|
+
size?: 'medium' | 'large';
|
|
10
|
+
/** Цвет компонента
|
|
11
|
+
* @default "neutral"
|
|
12
|
+
*/
|
|
13
|
+
componentStyle?: 'neutral' | 'positive' | 'negative' | 'warning' | 'vivid' | 'special' | 'accent' | 'blue' | 'lovely' | 'dreamy';
|
|
14
|
+
/** Задизейблен ли компонент
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** Отображается ли текст
|
|
19
|
+
* @default true - если есть текст
|
|
20
|
+
*/
|
|
21
|
+
showLabel?: boolean;
|
|
22
|
+
/** Иконка перед текстом */
|
|
23
|
+
slotStart?: ReactNode;
|
|
24
|
+
/** Иконка после текстом */
|
|
25
|
+
slotEnd?: ReactNode;
|
|
26
|
+
/** Пропсы для контейнера иконки перед текстом */
|
|
27
|
+
slotStartWrapperProps?: ComponentProps<'span'> & {
|
|
28
|
+
'data-testid'?: string;
|
|
29
|
+
};
|
|
30
|
+
/** Пропсы для контейнера иконки после текста */
|
|
31
|
+
slotEndWrapperProps?: ComponentProps<'span'> & {
|
|
32
|
+
'data-testid'?: string;
|
|
33
|
+
};
|
|
34
|
+
/** Id для тестирования */
|
|
35
|
+
'data-testid'?: string;
|
|
36
|
+
}
|
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 R=require("react"),ae=require("clsx");function Pt(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var xe={exports:{}},ce={};/**
|
|
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 Ye;function Lt(){if(Ye)return ce;Ye=1;var r=R,s=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,d=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function f(_,c,h){var p,g={},C=null,w=null;h!==void 0&&(C=""+h),c.key!==void 0&&(C=""+c.key),c.ref!==void 0&&(w=c.ref);for(p in c)o.call(c,p)&&!i.hasOwnProperty(p)&&(g[p]=c[p]);if(_&&_.defaultProps)for(p in c=_.defaultProps,c)g[p]===void 0&&(g[p]=c[p]);return{$$typeof:s,type:_,key:C,ref:w,props:g,_owner:d.current}}return ce.Fragment=a,ce.jsx=f,ce.jsxs=f,ce}var ue={};/**
|
|
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
|
-
`+X+e}}var ee=!1,H;{var
|
|
17
|
+
*/var He;function Nt(){return He||(He=1,process.env.NODE_ENV!=="production"&&function(){var r=R,s=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"),f=Symbol.for("react.provider"),_=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),w=Symbol.for("react.offscreen"),k=Symbol.iterator,T="@@iterator";function N(e){if(e===null||typeof e!="object")return null;var t=k&&e[k]||e[T];return typeof t=="function"?t:null}var j=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var t=arguments.length,n=new Array(t>1?t-1:0),u=1;u<t;u++)n[u-1]=arguments[u];O("error",e,n)}}function O(e,t,n){{var u=j.ReactDebugCurrentFrame,m=u.getStackAddendum();m!==""&&(t+="%s",n=n.concat([m]));var x=n.map(function(v){return String(v)});x.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,x)}}var I=!1,q=!1,F=!1,z=!1,V=!1,M;M=Symbol.for("react.module.reference");function J(e){return!!(typeof e=="string"||typeof e=="function"||e===o||e===i||V||e===d||e===h||e===p||z||e===w||I||q||F||typeof e=="object"&&e!==null&&(e.$$typeof===C||e.$$typeof===g||e.$$typeof===f||e.$$typeof===_||e.$$typeof===c||e.$$typeof===M||e.getModuleId!==void 0))}function K(e,t,n){var u=e.displayName;if(u)return u;var m=t.displayName||t.name||"";return m!==""?n+"("+m+")":n}function G(e){return e.displayName||"Context"}function A(e){if(e==null)return null;if(typeof e.tag=="number"&&y("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 h:return"Suspense";case p:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case _:var t=e;return G(t)+".Consumer";case f:var n=e;return G(n._context)+".Provider";case c:return K(e,e.render,"ForwardRef");case g:var u=e.displayName||null;return u!==null?u:A(e.type)||"Memo";case C:{var m=e,x=m._payload,v=m._init;try{return A(v(x))}catch{return null}}}return null}var W=Object.assign,Q=0,fe,_e,pe,be,ge,ve,he;function me(){}me.__reactDisabledLog=!0;function we(){{if(Q===0){fe=console.log,_e=console.info,pe=console.warn,be=console.error,ge=console.group,ve=console.groupCollapsed,he=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Q++}}function Re(){{if(Q--,Q===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},e,{value:fe}),info:W({},e,{value:_e}),warn:W({},e,{value:pe}),error:W({},e,{value:be}),group:W({},e,{value:ge}),groupCollapsed:W({},e,{value:ve}),groupEnd:W({},e,{value:he})})}Q<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var se=j.ReactCurrentDispatcher,X;function Y(e,t,n){{if(X===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);X=u&&u[1]||""}return`
|
|
18
|
+
`+X+e}}var ee=!1,H;{var ie=typeof WeakMap=="function"?WeakMap:Map;H=new ie}function Le(e,t){if(!e||ee)return"";{var n=H.get(e);if(n!==void 0)return n}var u;ee=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var x;x=se.current,se.current=null,we();try{if(t){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(L){u=L}Reflect.construct(e,[],v)}else{try{v.call()}catch(L){u=L}e.call(v.prototype)}}else{try{throw Error()}catch(L){u=L}e()}}catch(L){if(L&&u&&typeof L.stack=="string"){for(var b=L.stack.split(`
|
|
19
19
|
`),P=u.stack.split(`
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
20
|
+
`),E=b.length-1,$=P.length-1;E>=1&&$>=0&&b[E]!==P[$];)$--;for(;E>=1&&$>=0;E--,$--)if(b[E]!==P[$]){if(E!==1||$!==1)do if(E--,$--,$<0||b[E]!==P[$]){var D=`
|
|
21
|
+
`+b[E].replace(" at new "," at ");return e.displayName&&D.includes("<anonymous>")&&(D=D.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,D),D}while(E>=1&&$>=0);break}}}finally{ee=!1,se.current=x,Re(),Error.prepareStackTrace=m}var oe=e?e.displayName||e.name:"",te=oe?Y(oe):"";return typeof e=="function"&&H.set(e,te),te}function lt(e,t,n){return Le(e,!1)}function ct(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Ce(e,t,n){if(e==null)return"";if(typeof e=="function")return Le(e,ct(e));if(typeof e=="string")return Y(e);switch(e){case h:return Y("Suspense");case p:return Y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return lt(e.render);case g:return Ce(e.type,t,n);case C:{var u=e,m=u._payload,x=u._init;try{return Ce(x(m),t,n)}catch{}}}return""}var le=Object.prototype.hasOwnProperty,Ne={},Ie=j.ReactDebugCurrentFrame;function ye(e){if(e){var t=e._owner,n=Ce(e.type,e._source,t?t.type:null);Ie.setExtraStackFrame(n)}else Ie.setExtraStackFrame(null)}function ut(e,t,n,u,m){{var x=Function.call.bind(le);for(var v in e)if(x(e,v)){var b=void 0;try{if(typeof e[v]!="function"){var P=Error((u||"React class")+": "+n+" 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 P.name="Invariant Violation",P}b=e[v](t,v,u,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){b=E}b&&!(b instanceof Error)&&(ye(m),y("%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).",u||"React class",n,v,typeof b),ye(null)),b instanceof Error&&!(b.message in Ne)&&(Ne[b.message]=!0,ye(m),y("Failed %s type: %s",n,b.message),ye(null))}}}var dt=Array.isArray;function Ee(e){return dt(e)}function ft(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function _t(e){try{return Ae(e),!1}catch{return!0}}function Ae(e){return""+e}function Me(e){if(_t(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ft(e)),Ae(e)}var De=j.ReactCurrentOwner,pt={key:!0,ref:!0,__self:!0,__source:!0},Be,Fe;function bt(e){if(le.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return e.ref!==void 0}function gt(e){if(le.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function vt(e,t){typeof e.ref=="string"&&De.current}function ht(e,t){{var n=function(){Be||(Be=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}}function mt(e,t){{var n=function(){Fe||(Fe=!0,y("%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)",t))};n.isReactWarning=!0,Object.defineProperty(e,"ref",{get:n,configurable:!0})}}var Ct=function(e,t,n,u,m,x,v){var b={$$typeof:s,type:e,key:t,ref:n,props:v,_owner:x};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:u}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:m}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function yt(e,t,n,u,m){{var x,v={},b=null,P=null;n!==void 0&&(Me(n),b=""+n),gt(t)&&(Me(t.key),b=""+t.key),bt(t)&&(P=t.ref,vt(t,m));for(x in t)le.call(t,x)&&!pt.hasOwnProperty(x)&&(v[x]=t[x]);if(e&&e.defaultProps){var E=e.defaultProps;for(x in E)v[x]===void 0&&(v[x]=E[x])}if(b||P){var $=typeof e=="function"?e.displayName||e.name||"Unknown":e;b&&ht(v,$),P&&mt(v,$)}return Ct(e,b,P,m,u,De.current,v)}}var Se=j.ReactCurrentOwner,ze=j.ReactDebugCurrentFrame;function ne(e){if(e){var t=e._owner,n=Ce(e.type,e._source,t?t.type:null);ze.setExtraStackFrame(n)}else ze.setExtraStackFrame(null)}var je;je=!1;function $e(e){return typeof e=="object"&&e!==null&&e.$$typeof===s}function Ve(){{if(Se.current){var e=A(Se.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 xt(e){return""}var We={};function wt(e){{var t=Ve();if(!t){var n=typeof e=="string"?e:e.displayName||e.name;n&&(t=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+n+">.")}return t}}function Ze(e,t){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var n=wt(t);if(We[n])return;We[n]=!0;var u="";e&&e._owner&&e._owner!==Se.current&&(u=" It was passed a child from "+A(e._owner.type)+"."),ne(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,u),ne(null)}}function Ue(e,t){{if(typeof e!="object")return;if(Ee(e))for(var n=0;n<e.length;n++){var u=e[n];$e(u)&&Ze(u,t)}else if($e(e))e._store&&(e._store.validated=!0);else if(e){var m=N(e);if(typeof m=="function"&&m!==e.entries)for(var x=m.call(e),v;!(v=x.next()).done;)$e(v.value)&&Ze(v.value,t)}}}function Rt(e){{var t=e.type;if(t==null||typeof t=="string")return;var n;if(typeof t=="function")n=t.propTypes;else if(typeof t=="object"&&(t.$$typeof===c||t.$$typeof===g))n=t.propTypes;else return;if(n){var u=A(t);ut(n,e.props,"prop",u,e)}else if(t.PropTypes!==void 0&&!je){je=!0;var m=A(t);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",m||"Unknown")}typeof t.getDefaultProps=="function"&&!t.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Et(e){{for(var t=Object.keys(e.props),n=0;n<t.length;n++){var u=t[n];if(u!=="children"&&u!=="key"){ne(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",u),ne(null);break}}e.ref!==null&&(ne(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}}var qe={};function Ge(e,t,n,u,m,x){{var v=J(e);if(!v){var b="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(b+=" 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 P=xt();P?b+=P:b+=Ve();var E;e===null?E="null":Ee(e)?E="array":e!==void 0&&e.$$typeof===s?(E="<"+(A(e.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):E=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,b)}var $=yt(e,t,n,m,x);if($==null)return $;if(v){var D=t.children;if(D!==void 0)if(u)if(Ee(D)){for(var oe=0;oe<D.length;oe++)Ue(D[oe],e);Object.freeze&&Object.freeze(D)}else y("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 Ue(D,e)}if(le.call(t,"key")){var te=A(e),L=Object.keys(t).filter(function(Ot){return Ot!=="key"}),ke=L.length>0?"{key: someKey, "+L.join(": ..., ")+": ...}":"{key: someKey}";if(!qe[te+ke]){var Tt=L.length>0?"{"+L.join(": ..., ")+": ...}":"{}";y(`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} />`,ke,te,Tt,te),qe[te+ke]=!0}}return e===o?Et($):Rt($),$}}function St(e,t,n){return Ge(e,t,n,!0)}function jt(e,t,n){return Ge(e,t,n,!1)}var $t=jt,kt=St;ue.Fragment=o,ue.jsx=$t,ue.jsxs=kt}()),ue}var Je;function It(){return Je||(Je=1,process.env.NODE_ENV==="production"?xe.exports=Lt():xe.exports=Nt()),xe.exports}var l=It();const At=r=>r.as==="a",Mt=r=>r.as===void 0||r.as==="button",Dt="_button_unbux_213",Bt="_disabled_unbux_237",Ft="_loading_unbux_237",zt="_neutral_unbux_259",Vt="_accent_unbux_263",Wt="_positive_unbux_267",Zt="_negative_unbux_271",Ut="_contrast_unbux_275",qt="_special_unbux_279",Gt="_primary_unbux_284",Yt="_secondary_unbux_285",Ht="_tertiary_unbux_286",Jt="_label_unbux_321",Kt="_rightGroup_unbux_333",Qt="_iconOnly_unbux_349",Xt="_large_unbux_357",e2="_medium_unbux_361",t2="_small_unbux_365",r2="_spaceBetween_unbux_370",a2="_stretched_unbux_384",n2="_icon_unbux_349",o2="_badge_unbux_705",s2="_badgeMedium_unbux_721",i2="_circular_unbux_738",l2="_badgeSmall_unbux_743",c2="_badgeExtraSmall_unbux_765",u2="_withSubcaption_unbux_784",d2="_subcaption_unbux_797",f2="_loader_unbux_804",_2="_spin_unbux_1",p2="_l_unbux_237",b2="_m_unbux_361",g2="_s_unbux_279",v2="_xs_unbux_869",S={button:Dt,disabled:Bt,loading:Ft,neutral:zt,accent:Vt,positive:Wt,negative:Zt,contrast:Ut,special:qt,primary:Gt,secondary:Yt,tertiary:Ht,label:Jt,rightGroup:Kt,iconOnly:Qt,large:Xt,medium:e2,small:t2,spaceBetween:r2,stretched:a2,icon:n2,badge:o2,badgeMedium:s2,circular:i2,badgeSmall:l2,badgeExtraSmall:c2,withSubcaption:u2,subcaption:d2,loader:f2,spin:_2,l:p2,m:b2,s:g2,xs:v2},Ke=({isLoading:r,showBadge:s,badgeValue:a,badgeSize:o,icon:d,children:i,postfix:f,showSubcaption:_,subcaption:c,size:h})=>{if(r)return l.jsx("span",{className:S.loader,"data-testid":"button-loader","aria-hidden":"true"});const p=o==="extra-small",g=parseInt(String(a),10),C=!isNaN(g)&&g>=0&&g<=9;return l.jsxs(l.Fragment,{children:[s&&(a||p)&&l.jsx("span",{"data-testid":"button-badge",className:ae.clsx(S.badge,S[`badge${p?"ExtraSmall":o==="medium"?"Medium":"Small"}`],{[S.circular]:C&&!p}),children:!p&&a}),_&&h!=="s"&&h!=="xs"?l.jsxs(l.Fragment,{children:[l.jsx("span",{"data-testid":"button-label",className:S.label,children:i}),l.jsx("span",{"data-testid":"button-subcaption",className:S.subcaption,children:c})]}):i?l.jsxs(l.Fragment,{children:[l.jsx("span",{"data-testid":"button-label",className:S.label,children:i}),l.jsxs("div",{"data-testid":"button-right-group",className:S.rightGroup,children:[d&&l.jsx("span",{"data-testid":"button-icon",className:S.icon,children:d}),f&&l.jsx("span",{"data-testid":"button-postfix",className:S.postfix,children:f})]})]}):l.jsx("span",{"data-testid":"button-icon",className:S.icon,children:d})]})},h2=R.forwardRef((r,s)=>{const{mode:a="primary",size:o="m",buttonStyle:d="neutral",loading:i=!1,disabled:f=!1,showBadge:_=!1,badgeSize:c="small",badgeValue:h,showSubcaption:p=!1,subcaption:g,stretched:C=!1,spaceBetween:w=!1,icon:k,postfix:T,className:N,children:j}=r,y=f,O=i,I=!y&&!O,q=!!k&&!j,F=ae.clsx(S.button,S[o],S[a],S[d],{[S.disabled]:y,[S.loading]:O,[S.stretched]:C,[S.spaceBetween]:w&&C,[S.withSubcaption]:p&&g&&o!=="s"&&o!=="xs",[S.iconOnly]:q},N),z={isLoading:O,showBadge:_,badgeValue:h,badgeSize:c,icon:k,children:j,postfix:T,showSubcaption:p,subcaption:g,size:o};if(At(r)){const{href:V,onClick:M,mode:J,size:K,buttonStyle:G,loading:A,disabled:W,showBadge:Q,badgeSize:fe,badgeValue:_e,showSubcaption:pe,subcaption:be,stretched:ge,spaceBetween:ve,icon:he,postfix:me,className:we,tabIndex:Re,children:se,"data-testid":X,style:Y,...ee}=r,H=ie=>{I&&M&&M(ie)};return l.jsx("a",{ref:s,className:F,href:I?V:void 0,tabIndex:r.tabIndex,onClick:H,"data-testid":X,"aria-disabled":y||O,style:Y,...ee,children:l.jsx(Ke,{...z})})}if(Mt(r)){const{type:V="button",onClick:M,mode:J,size:K,buttonStyle:G,loading:A,disabled:W,showBadge:Q,badgeSize:fe,badgeValue:_e,showSubcaption:pe,subcaption:be,stretched:ge,spaceBetween:ve,icon:he,postfix:me,className:we,tabIndex:Re,children:se,"data-testid":X,style:Y,...ee}=r,H=ie=>{I&&M&&M(ie)};return l.jsx("button",{ref:s,type:V,className:F,disabled:y,tabIndex:r.tabIndex,onClick:H,"data-testid":X,"aria-disabled":y||O,style:Y,...ee,children:l.jsx(Ke,{...z})})}return null});var Te={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 He;function Lt(){return He||(He=1,function(r){(function(){var i={}.hasOwnProperty;function n(){for(var s="",f=0;f<arguments.length;f++){var _=arguments[f];_&&(s=d(s,o(_)))}return s}function o(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var f="";for(var _ in s)i.call(s,_)&&s[_]&&(f=d(f,_));return f}function d(s,f){return f?s?s+" "+f:s+f:s}r.exports?(n.default=n,r.exports=n):window.classNames=n})()}($e)),$e.exports}var Nt=Lt();const B=kt(Nt),At="_avatar_1ob17_4",Mt="_clickable_1ob17_23",It="_icon_1ob17_40",Dt="_disabled_1ob17_45",Bt="_image_1ob17_51",Ft="_name_1ob17_51",zt="_circle_1ob17_160",Vt="_square_1ob17_164",D={avatar:At,clickable:Mt,icon:It,disabled:Dt,image:Bt,name:Ft,"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:zt,square:Vt,"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"},Je=99;function Wt(r){return r<Je?`+${r}`:`${Je}+`}function Xe(r){const i=typeof r=="string"?r:JSON.stringify(r);let n=5381;for(let o=0;o<i.length;o++){const d=i.charCodeAt(o);n=(n<<5)+n+d}return n>>>0}const Zt=["red","orange","yellow","green","blue","lightblue","purple"];function Ut(r,i=Zt){const n=Xe(r),o=Math.abs(n)%i.length;return i[o]}const Ke=2;function Gt(r){const i=r.split(" ");return i.length===1?r.slice(0,Ke).toUpperCase():i.map(n=>n[0]).slice(0,Ke).join("").toUpperCase()}function qt(r,i){return i==="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 Yt="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",Ht="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",Jt="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",Kt="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",Qt={male:Yt,female:Ht,org:Kt,neutral:Jt},Oe=S.forwardRef((r,i)=>{const{style:n,size:o=40,isLoading:d=!1,isDisabled:s=!1,shape:f="circle",variant:_="light",placeholderType:c="neutral",name:m="",imgSrc:b,imgAlt:v="",icon:x,imgProps:w,colorScheme:k,"data-testid":O,...F}=r,{onClick:j,onPointerDown:C}=F,N=!s&&!d&&(!!j||!!C),[G,z]=S.useState(!b),V=b&&!G?"image":x?"icon":m?"name":"placeholder",W=V==="name"?k||Ut(m):k||"gray",M=B(D.avatar,D[f],D[`size-${o}`],D[`variant-${_}`],D[`color-${W}`],{[D.disabled]:s,[D.loading]:d,[D.clickable]:N}),J={icon:()=>l.jsx("span",{"data-testid":"avatar-icon",title:v,role:"img",className:B(D.icon),children:x==null?void 0:x({})}),name:()=>l.jsx("span",{role:"textbox","data-testid":"avatar-name",className:B(D.name),title:v,children:Gt(m)}),placeholder:()=>l.jsx("img",{...w,"data-testid":"avatar-placeholder",className:D.image,src:Qt[c],alt:v}),image:()=>l.jsx("img",{"data-testid":"avatar-image",...w,className:D.image,src:b,alt:v,onLoad:()=>z(!1),onError:q=>{var A;z(!0),(A=w==null?void 0:w.onError)==null||A.call(w,q)}})},K=q=>{N&&(j==null||j(q))};return l.jsx("div",{ref:i,onClick:K,className:M,style:n,"data-testid":O,"aria-disabled":s||d,children:J[V](null)})}),Xt="_avatarGroup_157g4_1",e2={avatarGroup:Xt};let t2=(r=21)=>crypto.getRandomValues(new Uint8Array(r)).reduce((i,n)=>(n&=63,n<36?i+=n.toString(36):n<62?i+=(n-26).toString(36).toUpperCase():n>62?i+="-":i+="_",i),"");function r2(r,i,n,o,d,s,f){const _=Math.min(d,s)/2,c=Math.min(f,_),m=["M0,0",`H${r}`,`V${i}`,"H0","V0","Z"].join(" "),b=[`M${n+c},${o}`,`L${n+d-c},${o}`,`A${c},${c} 0 0 1 ${n+d},${o+c}`,`L${n+d},${o+s-c}`,`A${c},${c} 0 0 1 ${n+d-c},${o+s}`,`L${n+c},${o+s}`,`A${c},${c} 0 0 1 ${n},${o+s-c}`,`L${n},${o+c}`,`A${c},${c} 0 0 1 ${n+c},${o}`,"Z"].join(" ");return`${m} ${b}`}const a2=2,n2=r=>{const{avatars:i=[],overflowCount:n=0,size:o=40,overlap:d=.3,shape:s="circle",overflowOnClick:f}=r,_=o*d,c=-_+a2,m=qt(o,s),v=S.useRef(t2()).current.toString(),x=B(e2.avatarGroup),w=r2(o,o,o-_,0,o,o,m);return i.length===0?null:l.jsxs("div",{className:x,children:[i.map((k,O,F)=>{const j=O+1>=F.length;return l.jsx("div",{style:{clipPath:j&&!n?void 0:`url(#${v})`,marginRight:c},children:l.jsx(Oe,{size:o,shape:s,...k})},Xe(k)+O)}),n>0&&l.jsx("div",{style:{marginRight:c},children:l.jsx(Oe,{size:o,shape:s,onClick:f,icon:()=>Wt(n),colorScheme:"gray"})}),l.jsx("svg",{width:"0",height:"0",children:l.jsx("clipPath",{id:`${v}`,children:l.jsx("path",{clipPathUnits:"objectBoundingBox",d:w,clipRule:"evenodd"})})})]})},o2=Object.assign(Oe,{Group:n2}),i2="_wrapper_1ncab_5",s2="_badge__container_1ncab_6",c2="_badge__content_1ncab_7",l2="_interactive_1ncab_20",u2="_disabled_1ncab_21",d2="_icon_1ncab_22",U={wrapper:i2,badge__container:s2,badge__content:c2,interactive:l2,disabled:u2,icon:d2,"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"},f2=r=>r==="rgba(0, 0, 0, 0)"||r==="transparent"||r.startsWith("rgba")&&r.endsWith(", 0)"),_2=r=>{if(!r)return null;let i=r;for(;i;){const o=window.getComputedStyle(i).backgroundColor;if(!f2(o))return o;i=i.parentElement}return null},p2=()=>{const r=S.useRef(null),[i,n]=S.useState(null);return S.useEffect(()=>{if(r.current){const o=_2(r.current);n(o)}},[]),{ref:r,bgColor:i}},b2=S.forwardRef((r,i)=>{const{icon:n,children:o,variant:d="filled",label:s,colorScheme:f="red",size:_=20,position:c="top-right",positionOffset:m={x:0,y:0},cutoutBackground:b,isDisabled:v,className:x,"data-testid":w="badge",...k}=r,{onClick:O,onPointerDown:F}=k,{ref:j,bgColor:C}=p2(),T=b||C,G=!v&&(!!O||!!F),z=B(U.badge__container,U[`position-${c}`]),V=B(x,U.badge__content,U[`color-${f}`],U[`variant-${d}`],{[U.icon]:!!n,[U.interactive]:G,[U.disabled]:v}),W={"--badge-height":`${_}px`,"--badge-offset-x":`${m.x}px`,"--badge-offset-y":`${m.y}px`,...T&&{"--badge-cutout-bg":T},...d==="transparent"&&{"--badge-cutout-bg":"transparent"}},M=(n==null?void 0:n({}))||s,J=K=>{G&&(O==null||O(K))};return l.jsxs("div",{className:U.wrapper,ref:j,"data-testid":w+"-wrapper",children:[o,l.jsx("span",{className:z,style:W,"data-testid":w+"-container",children:l.jsx("span",{...k,onClick:J,className:V,"data-testid":w+"-content",ref:i,"aria-disabled":v,children:M})})]})}),g2=r=>r.as==="a",v2=r=>r.as===void 0||r.as==="button",h2="_button_unbux_213",m2="_disabled_unbux_237",C2="_loading_unbux_237",y2="_neutral_unbux_259",x2="_accent_unbux_263",w2="_positive_unbux_267",R2="_negative_unbux_271",E2="_contrast_unbux_275",S2="_special_unbux_279",j2="_primary_unbux_284",$2="_secondary_unbux_285",k2="_tertiary_unbux_286",O2="_label_unbux_321",T2="_rightGroup_unbux_333",P2="_iconOnly_unbux_349",L2="_large_unbux_357",N2="_medium_unbux_361",A2="_small_unbux_365",M2="_spaceBetween_unbux_370",I2="_stretched_unbux_384",D2="_icon_unbux_349",B2="_badge_unbux_705",F2="_badgeMedium_unbux_721",z2="_circular_unbux_738",V2="_badgeSmall_unbux_743",W2="_badgeExtraSmall_unbux_765",Z2="_withSubcaption_unbux_784",U2="_subcaption_unbux_797",G2="_loader_unbux_804",q2="_spin_unbux_1",Y2="_l_unbux_237",H2="_m_unbux_361",J2="_s_unbux_279",K2="_xs_unbux_869",E={button:h2,disabled:m2,loading:C2,neutral:y2,accent:x2,positive:w2,negative:R2,contrast:E2,special:S2,primary:j2,secondary:$2,tertiary:k2,label:O2,rightGroup:T2,iconOnly:P2,large:L2,medium:N2,small:A2,spaceBetween:M2,stretched:I2,icon:D2,badge:B2,badgeMedium:F2,circular:z2,badgeSmall:V2,badgeExtraSmall:W2,withSubcaption:Z2,subcaption:U2,loader:G2,spin:q2,l:Y2,m:H2,s:J2,xs:K2},Qe=({isLoading:r,showBadge:i,badgeValue:n,badgeSize:o,icon:d,children:s,postfix:f,showSubcaption:_,subcaption:c,size:m})=>{if(r)return l.jsx("span",{className:E.loader,"data-testid":"button-loader","aria-hidden":"true"});const b=o==="extra-small",v=parseInt(String(n),10),x=!isNaN(v)&&v>=0&&v<=9;return l.jsxs(l.Fragment,{children:[i&&(n||b)&&l.jsx("span",{"data-testid":"button-badge",className:B(E.badge,E[`badge${b?"ExtraSmall":o==="medium"?"Medium":"Small"}`],{[E.circular]:x&&!b}),children:!b&&n}),_&&m!=="s"&&m!=="xs"?l.jsxs(l.Fragment,{children:[l.jsx("span",{"data-testid":"button-label",className:E.label,children:s}),l.jsx("span",{"data-testid":"button-subcaption",className:E.subcaption,children:c})]}):s?l.jsxs(l.Fragment,{children:[l.jsx("span",{"data-testid":"button-label",className:E.label,children:s}),l.jsxs("div",{"data-testid":"button-right-group",className:E.rightGroup,children:[d&&l.jsx("span",{"data-testid":"button-icon",className:E.icon,children:d}),f&&l.jsx("span",{"data-testid":"button-postfix",className:E.postfix,children:f})]})]}):l.jsx("span",{"data-testid":"button-icon",className:E.icon,children:d})]})},Q2=S.forwardRef((r,i)=>{const{mode:n="primary",size:o="m",buttonStyle:d="neutral",loading:s=!1,disabled:f=!1,showBadge:_=!1,badgeSize:c="small",badgeValue:m,showSubcaption:b=!1,subcaption:v,stretched:x=!1,spaceBetween:w=!1,icon:k,postfix:O,className:F,children:j}=r,C=f,T=s,N=!C&&!T,G=!!k&&!j,z=B(E.button,E[o],E[n],E[d],{[E.disabled]:C,[E.loading]:T,[E.stretched]:x,[E.spaceBetween]:w&&x,[E.withSubcaption]:b&&v&&o!=="s"&&o!=="xs",[E.iconOnly]:G},F),V={isLoading:T,showBadge:_,badgeValue:m,badgeSize:c,icon:k,children:j,postfix:O,showSubcaption:b,subcaption:v,size:o};if(g2(r)){const{href:W,onClick:M,mode:J,size:K,buttonStyle:q,loading:A,disabled:Z,showBadge:Q,badgeSize:ue,badgeValue:de,showSubcaption:fe,subcaption:_e,stretched:pe,spaceBetween:be,icon:ge,postfix:ve,className:ye,tabIndex:xe,children:ne,"data-testid":X,style:Y,...ee}=r,H=oe=>{N&&M&&M(oe)};return l.jsx("a",{ref:i,className:z,href:N?W:void 0,tabIndex:r.tabIndex,onClick:H,"data-testid":X,"aria-disabled":C||T,style:Y,...ee,children:l.jsx(Qe,{...V})})}if(v2(r)){const{type:W="button",onClick:M,mode:J,size:K,buttonStyle:q,loading:A,disabled:Z,showBadge:Q,badgeSize:ue,badgeValue:de,showSubcaption:fe,subcaption:_e,stretched:pe,spaceBetween:be,icon:ge,postfix:ve,className:ye,tabIndex:xe,children:ne,"data-testid":X,style:Y,...ee}=r,H=oe=>{N&&M&&M(oe)};return l.jsx("button",{ref:i,type:W,className:z,disabled:C,tabIndex:r.tabIndex,onClick:H,"data-testid":X,"aria-disabled":C||T,style:Y,...ee,children:l.jsx(Qe,{...V})})}return null}),X2="_container_chiat_7",er="_image_chiat_19",tr="_loading_chiat_28",ke={container:X2,image:er,loading:tr},rr="_loader_1tevf_1",ar="_spin_1tevf_1",nr="_accent_1tevf_20",or="_neutral_1tevf_24",ir="_positive_1tevf_28",sr="_negative_1tevf_32",cr="_gray_1tevf_36",lr="_special_1tevf_40",ur="_contrast_1tevf_44",dr="_container_1tevf_48",fr="_overlay_1tevf_56",le={loader:rr,spin:ar,accent:nr,neutral:or,positive:ir,negative:sr,gray:cr,special:lr,contrast:ur,container:dr,overlay:fr,"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"},et=S.forwardRef(({size:r=24,variant:i="accent",className:n,"data-testid":o="loader",style:d,...s},f)=>{const _=B(le.loader,le[i],le[`size-${r}`],n);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,...s,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"})})}),_r=S.forwardRef((r,i)=>{const{loading:n=!1,size:o=24,variant:d="accent",children:s,className:f,style:_,"data-testid":c,...m}=r,b=B(le.container,f);return l.jsxs("div",{ref:i,className:b,style:_,"data-testid":c,...m,children:[s,n&&l.jsx("div",{className:le.overlay,children:l.jsx(et,{size:o,variant:d,"data-testid":`${c}-spinner`})})]})}),tt=S.forwardRef((r,i)=>r.children?l.jsx(_r,{ref:i,...r}):l.jsx(et,{ref:i,...r})),pr=({width:r=48,height:i=48,className:n,"data-testid":o})=>l.jsx("svg",{width:r,height:i,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"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"})}),br=S.forwardRef((r,i)=>{const{alt:n="",loading:o="lazy",src:d,isLoading:s=!1,className:f,"data-testid":_="image",onError:c,onLoad:m,...b}=r,[v,x]=S.useState("loading"),w=v==="error",k=(s||v==="loading")&&!w,O=v==="loaded"&&!s,F=B(ke.image,{[ke.loading]:k},f),j=S.useCallback(N=>{x("loaded"),m==null||m(N)},[m]),C=S.useCallback(N=>{x("error"),c==null||c(N)},[c]),T={loader:l.jsxs(S.Fragment,{children:[l.jsx(tt,{size:48,variant:"special","data-testid":`${_}-loader`}),l.jsx("img",{alt:n,src:d,onLoad:j,onError:C,style:{display:"none"}})]}),error:l.jsx(pr,{"data-testid":`${_}-fallback`}),image:l.jsx("img",{ref:i,alt:n,"data-testid":_,loading:o,src:d,className:F})};return S.useEffect(()=>{if(!d){x("error");return}x("loading")},[d]),l.jsxs("div",{className:ke.container,"data-testid":`${_}-container`,...b,children:[k&&T.loader,w&&T.error,O&&T.image]})}),rt={},at=S.createContext({locale:rt}),nt=()=>{const r=S.useContext(at);if(!r)throw new Error("useConfig must be used within a ConfigProvider");return r},gr=()=>{const{locale:r}=nt();return r},vr="_wrapper_1ukzl_1",hr={wrapper:vr},mr={},Cr={},yr={},xr=({locale:r={},theme:i,children:n,className:o})=>{const d=i?{...Object.fromEntries(Object.entries(i))}:{};return l.jsx("div",{"data-testid":"ConfigProvider-component",style:d,className:B(hr.wrapper,mr.root,Cr.root,yr.root,o),children:l.jsx(at.Provider,{value:{locale:r},children:n})})},wr={};exports.Avatar=o2;exports.Badge=b2;exports.Button=Q2;exports.ConfigProvider=xr;exports.Image=br;exports.Loader=tt;exports.enUS=rt;exports.ruRU=wr;exports.useConfig=nt;exports.useLocale=gr;
|
|
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;
|