skillgrid 0.0.36-dev-43185-badge.1226757 → 0.0.36-dev-40511-42085-40506-alert-placeholder-modal-fix.1230731
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/Alert/Alert.type.d.ts +10 -5
- package/dist/components/Dialog/Dialog.d.ts +12 -3
- package/dist/components/Dialog/Dialog.type.d.ts +44 -12
- package/dist/components/Dialog/lib/index.d.ts +1 -0
- package/dist/components/Dialog/lib/use-dialog-draggable.d.ts +42 -0
- package/dist/components/Dialog/lib/use-dialog.d.ts +17 -9
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.type.d.ts +28 -12
- package/dist/components/Modal/assets/CrossIcon.d.ts +2 -0
- package/dist/components/Modal/assets/LeftChevronIcon.d.ts +2 -0
- package/dist/components/Modal/assets/index.d.ts +2 -0
- package/dist/components/Placeholder/Placeholder.type.d.ts +8 -5
- package/dist/components/Tabs/Tabs.type.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +2210 -1987
- package/package.json +1 -1
- package/dist/components/Snackbar/Provider/SnackbarProvider.d.ts +0 -9
- package/dist/components/Snackbar/Provider/SnackbarProvider.type.d.ts +0 -69
- package/dist/components/Snackbar/Provider/index.d.ts +0 -2
- package/dist/components/Snackbar/Snackbar.d.ts +0 -2
- package/dist/components/Snackbar/Snackbar.type.d.ts +0 -74
- package/dist/components/Snackbar/assets/close.d.ts +0 -1
- package/dist/components/Snackbar/assets/error.d.ts +0 -3
- package/dist/components/Snackbar/assets/index.d.ts +0 -4
- package/dist/components/Snackbar/assets/info.d.ts +0 -3
- package/dist/components/Snackbar/assets/success.d.ts +0 -3
- package/dist/components/Snackbar/index.d.ts +0 -2
- package/dist/components/Snackbar/lib/constants.d.ts +0 -6
- package/dist/components/Snackbar/lib/index.d.ts +0 -4
- package/dist/components/Snackbar/lib/snackbarReducer/index.d.ts +0 -1
- package/dist/components/Snackbar/lib/snackbarReducer/snackbarReducer.d.ts +0 -2
- package/dist/components/Snackbar/lib/useSnackbar.d.ts +0 -3
- package/dist/components/Snackbar/lib/useSwipe.d.ts +0 -52
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const b=require("react"),S=require("clsx"),St=require("@floating-ui/react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const b=require("react"),S=require("clsx"),St=require("@floating-ui/react"),Ir=require("rc-tooltip");function Mr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const Ze=Mr(b);function Nr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Xt={exports:{}},Ot={};/**
|
|
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 Te;function
|
|
9
|
+
*/var Te;function Ar(){if(Te)return Ot;Te=1;var t=b,e=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function l(d,p,f){var c,g={},v=null,m=null;f!==void 0&&(v=""+f),p.key!==void 0&&(v=""+p.key),p.ref!==void 0&&(m=p.ref);for(c in p)s.call(p,c)&&!a.hasOwnProperty(c)&&(g[c]=p[c]);if(d&&d.defaultProps)for(c in p=d.defaultProps,p)g[c]===void 0&&(g[c]=p[c]);return{$$typeof:e,type:d,key:v,ref:m,props:g,_owner:i.current}}return Ot.Fragment=o,Ot.jsx=l,Ot.jsxs=l,Ot}var zt={};/**
|
|
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 Ee;function Br(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&
|
|
18
|
-
`+jt+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Ee;function Br(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&function(){var t=b,e=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),C=Symbol.iterator,w="@@iterator";function u(r){if(r===null||typeof r!="object")return null;var h=C&&r[C]||r[w];return typeof h=="function"?h:null}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(r){{for(var h=arguments.length,k=new Array(h>1?h-1:0),I=1;I<h;I++)k[I-1]=arguments[I];y("error",r,k)}}function y(r,h,k){{var I=x.ReactDebugCurrentFrame,z=I.getStackAddendum();z!==""&&(h+="%s",k=k.concat([z]));var W=k.map(function(B){return String(B)});W.unshift("Warning: "+h),Function.prototype.apply.call(console[r],console,W)}}var j=!1,R=!1,L=!1,$=!1,T=!1,M;M=Symbol.for("react.module.reference");function P(r){return!!(typeof r=="string"||typeof r=="function"||r===s||r===a||T||r===i||r===f||r===c||$||r===m||j||R||L||typeof r=="object"&&r!==null&&(r.$$typeof===v||r.$$typeof===g||r.$$typeof===l||r.$$typeof===d||r.$$typeof===p||r.$$typeof===M||r.getModuleId!==void 0))}function F(r,h,k){var I=r.displayName;if(I)return I;var z=h.displayName||h.name||"";return z!==""?k+"("+z+")":k}function q(r){return r.displayName||"Context"}function E(r){if(r==null)return null;if(typeof r.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case s:return"Fragment";case o:return"Portal";case a:return"Profiler";case i:return"StrictMode";case f:return"Suspense";case c:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case d:var h=r;return q(h)+".Consumer";case l:var k=r;return q(k._context)+".Provider";case p:return F(r,r.render,"ForwardRef");case g:var I=r.displayName||null;return I!==null?I:E(r.type)||"Memo";case v:{var z=r,W=z._payload,B=z._init;try{return E(B(W))}catch{return null}}}return null}var O=Object.assign,H=0,V,Y,K,nt,rt,J,at;function st(){}st.__reactDisabledLog=!0;function vt(){{if(H===0){V=console.log,Y=console.info,K=console.warn,nt=console.error,rt=console.group,J=console.groupCollapsed,at=console.groupEnd;var r={configurable:!0,enumerable:!0,value:st,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}H++}}function xt(){{if(H--,H===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},r,{value:V}),info:O({},r,{value:Y}),warn:O({},r,{value:K}),error:O({},r,{value:nt}),group:O({},r,{value:rt}),groupCollapsed:O({},r,{value:J}),groupEnd:O({},r,{value:at})})}H<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=x.ReactCurrentDispatcher,jt;function ut(r,h,k){{if(jt===void 0)try{throw Error()}catch(z){var I=z.stack.trim().match(/\n( *(at )?)/);jt=I&&I[1]||""}return`
|
|
18
|
+
`+jt+r}}var qt=!1,It;{var ee=typeof WeakMap=="function"?WeakMap:Map;It=new ee}function Ht(r,h){if(!r||qt)return"";{var k=It.get(r);if(k!==void 0)return k}var I;qt=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var W;W=it.current,it.current=null,vt();try{if(h){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(lt){I=lt}Reflect.construct(r,[],B)}else{try{B.call()}catch(lt){I=lt}r.call(B.prototype)}}else{try{throw Error()}catch(lt){I=lt}r()}}catch(lt){if(lt&&I&&typeof lt.stack=="string"){for(var N=lt.stack.split(`
|
|
19
|
+
`),ot=I.stack.split(`
|
|
20
|
+
`),Z=N.length-1,U=ot.length-1;Z>=1&&U>=0&&N[Z]!==ot[U];)U--;for(;Z>=1&&U>=0;Z--,U--)if(N[Z]!==ot[U]){if(Z!==1||U!==1)do if(Z--,U--,U<0||N[Z]!==ot[U]){var ft=`
|
|
21
|
+
`+N[Z].replace(" at new "," at ");return r.displayName&&ft.includes("<anonymous>")&&(ft=ft.replace("<anonymous>",r.displayName)),typeof r=="function"&&It.set(r,ft),ft}while(Z>=1&&U>=0);break}}}finally{qt=!1,it.current=W,xt(),Error.prepareStackTrace=z}var Nt=r?r.displayName||r.name:"",Tt=Nt?ut(Nt):"";return typeof r=="function"&&It.set(r,Tt),Tt}function re(r,h,k){return Ht(r,!1)}function oe(r){var h=r.prototype;return!!(h&&h.isReactComponent)}function Q(r,h,k){if(r==null)return"";if(typeof r=="function")return Ht(r,oe(r));if(typeof r=="string")return ut(r);switch(r){case f:return ut("Suspense");case c:return ut("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case p:return re(r.render);case g:return Q(r.type,h,k);case v:{var I=r,z=I._payload,W=I._init;try{return Q(W(z),h,k)}catch{}}}return""}var tt=Object.prototype.hasOwnProperty,bt={},he=x.ReactDebugCurrentFrame;function Vt(r){if(r){var h=r._owner,k=Q(r.type,r._source,h?h.type:null);he.setExtraStackFrame(k)}else he.setExtraStackFrame(null)}function dr(r,h,k,I,z){{var W=Function.call.bind(tt);for(var B in r)if(W(r,B)){var N=void 0;try{if(typeof r[B]!="function"){var ot=Error((I||"React class")+": "+k+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ot.name="Invariant Violation",ot}N=r[B](h,B,I,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){N=Z}N&&!(N instanceof Error)&&(Vt(z),_("%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).",I||"React class",k,B,typeof N),Vt(null)),N instanceof Error&&!(N.message in bt)&&(bt[N.message]=!0,Vt(z),_("Failed %s type: %s",k,N.message),Vt(null))}}}var ur=Array.isArray;function ne(r){return ur(r)}function _r(r){{var h=typeof Symbol=="function"&&Symbol.toStringTag,k=h&&r[Symbol.toStringTag]||r.constructor.name||"Object";return k}}function pr(r){try{return xe(r),!1}catch{return!0}}function xe(r){return""+r}function be(r){if(pr(r))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_r(r)),xe(r)}var me=x.ReactCurrentOwner,fr={key:!0,ref:!0,__self:!0,__source:!0},ye,ve;function gr(r){if(tt.call(r,"ref")){var h=Object.getOwnPropertyDescriptor(r,"ref").get;if(h&&h.isReactWarning)return!1}return r.ref!==void 0}function hr(r){if(tt.call(r,"key")){var h=Object.getOwnPropertyDescriptor(r,"key").get;if(h&&h.isReactWarning)return!1}return r.key!==void 0}function xr(r,h){typeof r.ref=="string"&&me.current}function br(r,h){{var k=function(){ye||(ye=!0,_("%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)",h))};k.isReactWarning=!0,Object.defineProperty(r,"key",{get:k,configurable:!0})}}function mr(r,h){{var k=function(){ve||(ve=!0,_("%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)",h))};k.isReactWarning=!0,Object.defineProperty(r,"ref",{get:k,configurable:!0})}}var yr=function(r,h,k,I,z,W,B){var N={$$typeof:e,type:r,key:h,ref:k,props:B,_owner:W};return N._store={},Object.defineProperty(N._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(N,"_self",{configurable:!1,enumerable:!1,writable:!1,value:I}),Object.defineProperty(N,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(N.props),Object.freeze(N)),N};function vr(r,h,k,I,z){{var W,B={},N=null,ot=null;k!==void 0&&(be(k),N=""+k),hr(h)&&(be(h.key),N=""+h.key),gr(h)&&(ot=h.ref,xr(h,z));for(W in h)tt.call(h,W)&&!fr.hasOwnProperty(W)&&(B[W]=h[W]);if(r&&r.defaultProps){var Z=r.defaultProps;for(W in Z)B[W]===void 0&&(B[W]=Z[W])}if(N||ot){var U=typeof r=="function"?r.displayName||r.name||"Unknown":r;N&&br(B,U),ot&&mr(B,U)}return yr(r,N,ot,z,I,me.current,B)}}var ae=x.ReactCurrentOwner,we=x.ReactDebugCurrentFrame;function Mt(r){if(r){var h=r._owner,k=Q(r.type,r._source,h?h.type:null);we.setExtraStackFrame(k)}else we.setExtraStackFrame(null)}var se;se=!1;function ie(r){return typeof r=="object"&&r!==null&&r.$$typeof===e}function Ce(){{if(ae.current){var r=E(ae.current.type);if(r)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+r+"`."}return""}}function wr(r){return""}var ke={};function Cr(r){{var h=Ce();if(!h){var k=typeof r=="string"?r:r.displayName||r.name;k&&(h=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+k+">.")}return h}}function Se(r,h){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var k=Cr(h);if(ke[k])return;ke[k]=!0;var I="";r&&r._owner&&r._owner!==ae.current&&(I=" It was passed a child from "+E(r._owner.type)+"."),Mt(r),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',k,I),Mt(null)}}function Le(r,h){{if(typeof r!="object")return;if(ne(r))for(var k=0;k<r.length;k++){var I=r[k];ie(I)&&Se(I,h)}else if(ie(r))r._store&&(r._store.validated=!0);else if(r){var z=u(r);if(typeof z=="function"&&z!==r.entries)for(var W=z.call(r),B;!(B=W.next()).done;)ie(B.value)&&Se(B.value,h)}}}function kr(r){{var h=r.type;if(h==null||typeof h=="string")return;var k;if(typeof h=="function")k=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===p||h.$$typeof===g))k=h.propTypes;else return;if(k){var I=E(h);dr(k,r.props,"prop",I,r)}else if(h.PropTypes!==void 0&&!se){se=!0;var z=E(h);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Sr(r){{for(var h=Object.keys(r.props),k=0;k<h.length;k++){var I=h[k];if(I!=="children"&&I!=="key"){Mt(r),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",I),Mt(null);break}}r.ref!==null&&(Mt(r),_("Invalid attribute `ref` supplied to `React.Fragment`."),Mt(null))}}var je={};function $e(r,h,k,I,z,W){{var B=P(r);if(!B){var N="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(N+=" 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 ot=wr();ot?N+=ot:N+=Ce();var Z;r===null?Z="null":ne(r)?Z="array":r!==void 0&&r.$$typeof===e?(Z="<"+(E(r.type)||"Unknown")+" />",N=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof r,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,N)}var U=vr(r,h,k,z,W);if(U==null)return U;if(B){var ft=h.children;if(ft!==void 0)if(I)if(ne(ft)){for(var Nt=0;Nt<ft.length;Nt++)Le(ft[Nt],r);Object.freeze&&Object.freeze(ft)}else _("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 Le(ft,r)}if(tt.call(h,"key")){var Tt=E(r),lt=Object.keys(h).filter(function(Rr){return Rr!=="key"}),le=lt.length>0?"{key: someKey, "+lt.join(": ..., ")+": ...}":"{key: someKey}";if(!je[Tt+le]){var Er=lt.length>0?"{"+lt.join(": ..., ")+": ...}":"{}";_(`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} />`,le,Tt,Er,Tt),je[Tt+le]=!0}}return r===s?Sr(U):kr(U),U}}function Lr(r,h,k){return $e(r,h,k,!0)}function jr(r,h,k){return $e(r,h,k,!1)}var $r=jr,Tr=Lr;zt.Fragment=s,zt.jsx=$r,zt.jsxs=Tr}()),zt}var Re;function Pr(){return Re||(Re=1,process.env.NODE_ENV==="production"?Xt.exports=Ar():Xt.exports=Br()),Xt.exports}var n=Pr();const Or=t=>t.as==="a",zr=t=>t.as===void 0||t.as==="button",Ie=t=>t.displayAs===void 0||t.displayAs==="button",Dr=t=>t.displayAs==="link",Fr="_button_11kkg_1",Wr="_link_11kkg_22",qr="_disabled_11kkg_27",Hr="_loading_11kkg_27",Vr="_neutral_11kkg_59",Xr="_accent_11kkg_63",Yr="_positive_11kkg_67",Zr="_negative_11kkg_71",Ur="_contrast_11kkg_75",Gr="_primary_11kkg_79",Kr="_secondary_11kkg_80",Jr="_tertiary_11kkg_81",Qr="_gray_11kkg_91",to="_spaceBetween_11kkg_119",eo="_rightGroup_11kkg_119",ro="_withSubcaption_11kkg_127",oo="_label_11kkg_139",no="_icon_11kkg_148",ao="_labelText_11kkg_153",so="_isLink_11kkg_159",io="_iconOnly_11kkg_174",lo="_stretched_11kkg_190",co="_postfix_11kkg_195",uo="_underline_11kkg_225",_o="_backButton_11kkg_428",po="_warning_11kkg_1159",fo="_subcaption_11kkg_1389",go="_content_11kkg_1394",ho="_contentHidden_11kkg_1398",xo="_loaderWrapper_11kkg_1402",bo="_l_11kkg_22",mo="_m_11kkg_1441",yo="_s_11kkg_80",vo="_xs_11kkg_1484",wo="_noPaddings_11kkg_1506",Co="_iconRight_11kkg_1542",ko="_spin_11kkg_1",D={button:Fr,link:Wr,disabled:qr,loading:Hr,neutral:Vr,accent:Xr,positive:Yr,negative:Zr,contrast:Ur,primary:Gr,secondary:Kr,tertiary:Jr,gray:Qr,spaceBetween:to,rightGroup:eo,withSubcaption:ro,label:oo,icon:no,labelText:ao,isLink:so,iconOnly:io,stretched:lo,postfix:co,underline:uo,backButton:_o,warning:po,subcaption:fo,content:go,contentHidden:ho,loaderWrapper:xo,l:bo,m:mo,s:yo,xs:vo,noPaddings:wo,iconRight:Co,spin:ko},So=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal","asBackButton","paddings"]),Me=t=>{const e={};for(const o in t)So.has(o)||(e[o]=t[o]);return e},Lo={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function jo(t){return Lo[t]||"typography-label-2-regular"}const $o=(t,e,o)=>t?"gray":e==="primary"?{contrast:"neutral",gray:"gray"}[o]??"contrast":o==="warning"?"neutral":o,G={"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"},To="_loader_isv17_1",Eo="_spin_isv17_1",Ro="_accent_isv17_19",Io="_neutral_isv17_23",Mo="_positive_isv17_27",No="_negative_isv17_31",Ao="_gray_isv17_35",Bo="_special_isv17_39",Po="_contrast_isv17_43",Oo="_container_isv17_47",zo="_overlay_isv17_57",Wt={loader:To,spin:Eo,accent:Ro,neutral:Io,positive:Mo,negative:No,gray:Ao,special:Bo,contrast:Po,container:Oo,overlay:zo,"size-16":"_size-16_isv17_72","size-24":"_size-24_isv17_76","size-48":"_size-48_isv17_80","size-64":"_size-64_isv17_84","size-96":"_size-96_isv17_88"};var ce={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 Me;function zn(){return Me||(Me=1,(function(t){(function(){var r={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,a(c)))}return s}function a(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 l="";for(var c in s)r.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(le)),le.exports}var Dn=zn();const Rt=Ir(Dn),Ye=b.forwardRef(({size:t=24,variant:r="accent",className:n,"data-testid":a="loader",style:i,...s},l)=>{const c=Rt(Ft.loader,Ft[r],Ft[`size-${t}`],n);return o.jsx("svg",{ref:l,className:c,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":a,style:i,...s,children:o.jsx("path",{d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.33333"})})}),Fn=b.forwardRef((t,r)=>{const{loading:n=!1,size:a=24,variant:i="accent",children:s,className:l,style:c,"data-testid":_,...f}=t,d=Rt(Ft.container,l);return o.jsxs("div",{ref:r,className:d,style:c,"data-testid":_,...f,children:[s,n&&o.jsx("div",{className:Ft.overlay,children:o.jsx(Ye,{size:a,variant:i,"data-testid":`${_}-spinner`})})]})}),pe=b.forwardRef((t,r)=>t.children?o.jsx(Fn,{ref:r,...t}):o.jsx(Ye,{ref:r,...t})),Wn=t=>o.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t,children:o.jsx("path",{d:"M14 2L2 14M2 2L14 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),qn=({width:t=24,height:r=24,className:n="",color:a="currentColor",...i})=>o.jsx("svg",{className:n,width:t,height:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),Hn={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},Vn=t=>Hn[t]||"typography-subtitle-2-semibold",Be=({iconRight:t,iconLeft:r,children:n,postfix:a,subcaption:i,size:s,isAsButton:l})=>{const c=!!(i&&l&&s==="l"),_=!!(!n&&l&&r),f=l&&!!(c&&!n&&a||a&&!c);return o.jsxs(b.Fragment,{children:[c&&n&&o.jsxs(b.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:S.clsx(D.label,D.labelText),children:n}),o.jsx("span",{"data-testid":"button-subcaption",className:S.clsx(D.subcaption,U["typography-label-4-regular"]),children:i})]}),!c&&n&&o.jsxs("span",{"data-testid":"button-label",className:D.label,children:[r&&o.jsx("span",{"data-testid":"button-left-icon",className:D.icon,children:r}),o.jsx("span",{className:S.clsx(D.labelText,{[D.isLink]:!l}),children:n}),!l&&t&&o.jsx("span",{"data-testid":"button-icon",className:S.clsx(D.icon,D.iconRight),children:t})]}),_&&o.jsx("span",{"data-testid":"button-icon",className:D.icon,children:l?r:t}),f&&o.jsx("div",{"data-testid":"button-right-group",className:D.rightGroup,children:o.jsx("span",{"data-testid":"button-postfix",className:S.clsx(D.postfix,U["typography-subtitle-2-semibold"]),children:a})})]})},fe=b.forwardRef((t,r)=>{const{mode:n="primary",size:a="m",buttonStyle:i=Ne(t)?"neutral":"accent",disabled:s=!1,className:l,children:c,tabIndex:_}=t,f=n==="tertiary",d=Ne(t),g=zr(t),m=f&&"paddings"in t?t.paddings??!0:!0,x=d?t.subcaption:void 0,w=d?t.postfix:void 0,v=d?t.stretched:void 0,h=!(g&&t.size===void 0),y=g&&h?t.iconLeft:void 0,u=g&&h?t.iconRight:void 0,k=!!(d&&"loading"in t&&t.loading),L=d?s:s||k,R=!L&&!k,$=d?t.iconLeft:void 0,N=!!(!c&&(d&&$&&!w||g&&u)),E=typeof v=="object"?v.justify==="space-between":void 0,I=Vn(a),P=U[I],F=g?Ln(t.size??"m"):void 0,q=F?U[F]:void 0,j=jn(L,n,i),O=L||k?-1:_,H=S.clsx(D.button,D[a],D[n],D[i],g&&q,d&&P,{[D.disabled]:L,[D.loading]:d&&"loading"in t&&t.loading,[D.stretched]:v,[D.spaceBetween]:E,[D.withSubcaption]:!!(x&&a==="l"&&c),[D.iconOnly]:N,[D.link]:g,[D.underline]:g&&"showUnderline"in t&&t.showUnderline,[D.noPaddings]:f&&d&&!m},l),V={iconRight:u,iconLeft:d?$:y,children:c,postfix:w,subcaption:x,size:a,isAsButton:d};if(Or(t)){const{href:X,onClick:K,style:ot,target:rt,rel:J,"data-testid":at,...st}=t,vt=Ie(st),xt=rt??(t.isExternal?"_blank":void 0);let it=J;if(xt==="_blank"){const ut=new Set((J??"").split(/\s+/).filter(Boolean));ut.add("noopener").add("noreferrer"),it=Array.from(ut).join(" ")}const jt=ut=>{if(!R){ut.preventDefault();return}K==null||K(ut)};return o.jsx("a",{ref:r,className:H,href:R?X:void 0,tabIndex:O,onClick:jt,"data-testid":at,"aria-disabled":L||k,style:ot,target:xt,rel:it,...vt,children:o.jsx(Be,{...V})})}if(Pr(t)){const{type:X="button",onClick:K,style:ot,"data-testid":rt,...J}=t,at=Ie(J),st=a==="l"?24:16,vt=xt=>{R&&K&&K(xt)};return o.jsxs("button",{ref:r,type:X,className:H,disabled:L,tabIndex:O,onClick:vt,"data-testid":rt,"aria-disabled":L||k,style:ot,...at,children:[o.jsx("div",{className:S.clsx(D.content,{[D.contentHidden]:k}),children:o.jsx(Be,{...V})}),k&&o.jsx("div",{className:D.loaderWrapper,children:o.jsx(pe,{variant:j,"aria-hidden":"true","data-testid":"button-loader",size:st})})]})}return null});fe.displayName="Button";const Ge=b.forwardRef((t,r)=>{const{iconLeft:n,className:a,...i}=t,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:n??o.jsx(qn,{}),className:S.clsx(D.backButton,U["typography-subtitle-1-semibold"],a)};return o.jsx(fe,{ref:r,...l})});Ge.displayName="Button.Back";const Kt=Object.assign(fe,{Back:Ge}),Zn="_avatar_19ug4_18",Xn="_clickable_19ug4_40",Yn="_icon_19ug4_57",Gn="_disabled_19ug4_62",Un="_loading_19ug4_67",Kn="_image_19ug4_73",Jn="_name_19ug4_73",yt={avatar:Zn,clickable:Xn,icon:Yn,disabled:Gn,loading:Un,image:Kn,name:Jn,"variant-filled":"_variant-filled_19ug4_125","color-brand":"_color-brand_19ug4_130","color-red":"_color-red_19ug4_134","color-orange":"_color-orange_19ug4_138","color-yellow":"_color-yellow_19ug4_142","color-green":"_color-green_19ug4_146","color-blue":"_color-blue_19ug4_150","color-lightblue":"_color-lightblue_19ug4_154","color-purple":"_color-purple_19ug4_158","color-gray":"_color-gray_19ug4_162","color-contrast":"_color-contrast_19ug4_166","variant-light":"_variant-light_19ug4_172","variant-outline":"_variant-outline_19ug4_244"},Ae=99;function Qn(t){return t<Ae?`+${t}`:`${Ae}+`}function Jt(t){const r=typeof t=="string"?t:JSON.stringify(t);let n=5381;for(let a=0;a<r.length;a++){const i=r.charCodeAt(a);n=(n<<5)+n+i}return n>>>0}const to=(t,r,n)=>Math.min(Math.max(t,r),n),eo=["red","orange","yellow","green","blue","lightblue","purple"];function ro(t,r=eo){if(!t)return"gray";const n=Jt(t),a=Math.abs(n)%r.length;return r[a]}const Oe=2;function no(t){if(!t)return"";const r=t.trim().split(/\s+/);return r.length===1?t.slice(0,Oe).toUpperCase():r.map(n=>n[0]).slice(0,Oe).join("").toUpperCase()}const oo={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function ao(t,r){return r==="circle"?t/2:oo[t]||12}const so={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 io(t){return so[t]||"typography-subtitle-1-semibold"}const lo="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",co="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",uo="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",_o="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",po={male:lo,female:co,org:_o,neutral:uo},Gt=b.forwardRef((t,r)=>{const{style:n,size:a=40,isLoading:i=!1,isDisabled:s=!1,shape:l="circle",variant:c="filled",placeholderType:_="neutral",name:f,imgSrc:d,imgAlt:g,icon:m,imgProps:x,colorScheme:w,className:v,"data-testid":h,...y}=t,{onClick:u,onPointerDown:k}=y,R=!s&&!i&&(!!u||!!k),[$,N]=b.useState(!1);b.useEffect(()=>{d&&N(!1)},[d]);const E=d&&!$?"image":m?"icon":f?"name":"placeholder",I=w||E==="name"&&ro(f)||"gray",P=io(a),F=ao(a,l),q=S.clsx(v,yt.avatar,yt[`variant-${c}`],yt[`color-${I}`],U[P],{[yt.disabled]:s,[yt.loading]:i,[yt.clickable]:R}),j={"--avatar-size":`${a}px`,"--avatar-border-radius":`${F}px`,...n},O={icon:()=>o.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:yt.icon,children:m==null?void 0:m({})}),name:()=>o.jsx("span",{role:"textbox","data-testid":"avatar-name",className:yt.name,title:g||void 0,children:no(f||"")}),placeholder:()=>o.jsx("img",{...x,"data-testid":"avatar-placeholder",className:yt.image,src:po[_],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...x,className:yt.image,src:d||void 0,alt:g||void 0,onLoad:()=>N(!1),onError:V=>{var X;N(!0),(X=x==null?void 0:x.onError)==null||X.call(x,V)}})},H=V=>{R&&(u==null||u(V))};return o.jsx("div",{ref:r,onClick:H,className:q,style:j,"data-testid":h,"aria-disabled":s||i,children:O[E](null)})}),fo="_avatarGroup_157g4_1",go={avatarGroup:fo},ho=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),bo=t=>{if(!t)return null;let r=t;for(;r;){const a=window.getComputedStyle(r).backgroundColor;if(!ho(a))return a;r=r.parentElement}return null},ge=()=>{const t=b.useRef(null),[r,n]=b.useState(null);return b.useEffect(()=>{if(t.current){const a=bo(t.current);n(a)}},[]),{ref:t,bgColor:r}};function Pe(t,r,n){b.useEffect(()=>(window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n)),[t,r])}const ze={passive:!0};function xo(){const[t,r]=b.useState({width:0,height:0}),n=b.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Pe("resize",n,ze),Pe("orientationchange",n,ze),b.useEffect(n,[]),t}function mo(t=768){const{width:r}=xo();return b.useMemo(()=>r<=t,[r,t])}const yo=2,vo=t=>{const{avatars:r=[],size:n=40,overlap:a=.3,shape:i="circle",overflowCount:s=0,overflowProps:l,cutoutBackground:c}=t,f=-(n*a)+yo,{ref:d,bgColor:g}=ge(),m=c||g||"#ffffff",x=Rt(go.avatarGroup),w={"--avatar-cutout-bg":m};return r.length===0?null:o.jsxs("div",{className:x,ref:d,style:w,children:[r.map((v,h)=>{if(v.wrapper){const y=v.wrapper;return o.jsx("div",{style:{marginRight:f},children:o.jsx(y,{children:o.jsx(Gt,{size:n,shape:i,...v})})},Jt(v)+h)}return o.jsx("div",{style:{marginRight:f},children:o.jsx(Gt,{size:n,shape:i,...v})},Jt(v)+h)}),s>0&&o.jsx("div",{style:{marginRight:f},children:o.jsx(Gt,{size:n,shape:i,icon:()=>Qn(s),colorScheme:"gray",variant:"light",...l})})]})},Ue=Object.assign(Gt,{Group:vo}),Co="_overlay_g6rp8_6",wo="_container_g6rp8_20",ce={overlay:Co,container:wo,"placement-default":"_placement-default_g6rp8_34","placement-default-stretched":"_placement-default-stretched_g6rp8_41","placement-center":"_placement-center_g6rp8_48","placement-center-stretched":"_placement-center-stretched_g6rp8_54","placement-left-drawer":"_placement-left-drawer_g6rp8_62","placement-right-drawer":"_placement-right-drawer_g6rp8_66","placement-mobile":"_placement-mobile_g6rp8_71"};function ko(t){switch(t){case"default":return"top";case"mobile":return"bottom";case"center":default:return}}const So=t=>{switch(t){case"mobile":return{initial:{transform:"translateY(100%)"},open:{opacity:1,transform:"translateY(0)"},close:{transform:"translateY(100%)"}};case"right-drawer":return{initial:{transform:"translateX(100%)"},open:{opacity:1,transform:"translateX(0)"},close:{transform:"translateX(100%)"}};case"left-drawer":return{initial:{transform:"translateX(-100%)"},open:{opacity:1,transform:"translateX(0)"},close:{transform:"translateX(-100%)"}};default:return{initial:{transform:"scale(0.95)"},open:{opacity:1,transform:"scale(1)"},close:{transform:"scale(0.95)"}}}};function Lo({open:t,onOpenChange:r,placement:n="center",disableOutsideClick:a=!1,disableEscapeKey:i=!1}){const s=b.useCallback(v=>{r==null||r(v)},[r]),l=ko(n),{context:c,refs:_}=St.useFloating({open:t,onOpenChange:s,placement:l}),f=So(n),{isMounted:d,styles:g}=St.useTransitionStyles(c,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:l,position:"fixed",opacity:0},...f}),m=St.useDismiss(c,{outsidePress:!a,outsidePressEvent:"mousedown",escapeKey:!i}),x=St.useRole(c,{role:"dialog"}),{getFloatingProps:w}=St.useInteractions([m,x]);return b.useMemo(()=>({isMounted:d,transitionStyles:g,context:c,refs:_,getFloatingProps:w}),[d,g,c,_,w])}const Ke=b.forwardRef((t,r)=>{const{placement:n="default",open:a,onOpenChange:i,overlayClassName:s,children:l,disableOutsideClick:c=!1,disableEscapeKey:_=!1,className:f,style:d,"data-testid":g,...m}=t;a===void 0&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const x=Lo({open:a,onOpenChange:i,placement:n,disableOutsideClick:c,disableEscapeKey:_}),{isMounted:w,transitionStyles:v}=x,h=St.useMergeRefs([r,x.refs.setFloating]);return w?o.jsxs(St.FloatingPortal,{children:[o.jsx(St.FloatingOverlay,{"data-testid":"dialog-overlay",className:S.clsx(ce.overlay,s),lockScroll:!0,style:{opacity:v==null?void 0:v.opacity,transition:v==null?void 0:v.transition}}),o.jsx(St.FloatingFocusManager,{context:x.context,children:o.jsx("div",{ref:h,"aria-modal":"true",role:"dialog",className:S.clsx(f,ce.container,ce[`placement-${n}`]),style:{...d,...v},"data-testid":g,...x.getFloatingProps(m),children:l})})]}):null}),jo="_container_e56bn_5",$o="_header_e56bn_22",To="_title_e56bn_32",Eo="_subTitle_e56bn_36",Ro="_actions_e56bn_40",No="_content_e56bn_62",Io="_footer_e56bn_75",Mo="_divider_e56bn_82",gt={container:jo,header:$o,title:To,subTitle:Eo,actions:Ro,"title-text":"_title-text_e56bn_46","description-text":"_description-text_e56bn_54",content:No,"content-for-side-drawer":"_content-for-side-drawer_e56bn_69",footer:Io,divider:Mo},Bo="_typography_zt7xg_1",Ao="_disabled_zt7xg_8",Oo="_primary_zt7xg_13",Po="_secondary_zt7xg_18",zo="_tertiary_zt7xg_23",Do="_accent_zt7xg_28",Fo="_positive_zt7xg_38",Wo="_negative_zt7xg_48",qo="_warning_zt7xg_58",Ho="_special_zt7xg_68",Vo="_contrast_zt7xg_78",At={typography:Bo,disabled:Ao,primary:Oo,secondary:Po,tertiary:zo,accent:Do,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Fo,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Wo,"negative-secondary":"_negative-secondary_zt7xg_53",warning:qo,"warning-secondary":"_warning-secondary_zt7xg_63",special:Ho,"special-secondary":"_special-secondary_zt7xg_73",contrast:Vo,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Zo={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},De=t=>{const r=Xe.forwardRef(({size:n=3,children:a,className:i,"data-testid":s,as:l,fontWeight:c="semibold",disabled:_=!1,typographyStyle:f="primary",...d},g)=>{const m=l||Zo[n],x=S.clsx(At.typography,U[`typography-${t}-${n}-${c}`],At[f],{[At.disabled]:_},i);return a?o.jsx(m,{ref:g,className:x,"data-testid":s,...d,children:a}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},Fe=t=>{const r=Xe.forwardRef(({size:n=3,children:a,className:i,"data-testid":s,as:l="p",fontWeight:c="regular",disabled:_=!1,typographyStyle:f="primary",...d},g)=>{const m=l,x=S.clsx(At.typography,U[`typography-${t}-${n}-${c}`],At[f],{[At.disabled]:_},i);return a?o.jsx(m,{ref:g,className:x,"data-testid":s,...d,children:a}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Qt={Title:De("title"),Subtitle:De("subtitle"),Label:Fe("label"),Paragraph:Fe("paragraph")},{Paragraph:Xo,Title:Yo}=Qt,Go=["right-drawer","left-drawer"],Uo=t=>{const{closeButtonProps:r,onOpenChange:n}=t,{wrapper:a,...i}=r||{},s={size:"xs",mode:"primary",buttonStyle:"gray",iconLeft:o.jsx(Wn,{}),"aria-label":"Close modal",onClick:()=>n(!1),...i};return a?o.jsx(a,{children:o.jsx(Kt,{...s})}):o.jsx(Kt,{...s})},Ko=b.forwardRef((t,r)=>{const{open:n,onOpenChange:a,size:i,placement:s="default",showCloseButton:l=!0,closeButtonProps:c,title:_,subTitle:f,actions:d,children:g,footer:m,hideHeaderDivider:x,hideFooterDivider:w,className:v,classNames:h,styles:y,...u}=t,k=Go.includes(s),L=!!(_||f||d);return o.jsx(Ke,{open:n,onOpenChange:a,placement:s,ref:r,style:{width:i},...u,children:o.jsxs("div",{className:S.clsx(gt.container,v,h==null?void 0:h.container),style:{width:i,...y==null?void 0:y.container},"data-testid":u["data-testid"]?`${u["data-testid"]}-container`:void 0,children:[L&&o.jsxs("div",{className:gt.header,children:[o.jsx("div",{className:S.clsx(gt.title,h==null?void 0:h.title),style:y==null?void 0:y.title,children:typeof _=="string"?o.jsx(Yo,{size:5,className:gt["title-text"],children:_}):_}),o.jsxs("div",{className:gt.actions,children:[d,l&&o.jsx(Uo,{closeButtonProps:c,onOpenChange:a})]}),f&&o.jsx("div",{className:S.clsx(gt.subTitle,h==null?void 0:h.subTitle),style:y==null?void 0:y.subTitle,children:typeof f=="string"?o.jsx(Xo,{size:2,typographyStyle:"secondary",className:gt["description-text"],children:f}):f})]}),!x&&L&&o.jsx("hr",{className:gt.divider}),o.jsx("div",{className:S.clsx(k?gt["content-for-side-drawer"]:gt.content,h==null?void 0:h.content),style:{...y==null?void 0:y.content},"data-testid":u["data-testid"]?`${u["data-testid"]}-content`:void 0,children:g}),!w&&m&&o.jsx("hr",{className:gt.divider}),m&&o.jsx("div",{className:S.clsx(gt.footer,h==null?void 0:h.footer),style:y==null?void 0:y.footer,children:m})]})})}),Jo=()=>o.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9H12.01C12.5623 9 13.01 8.55228 13.01 8C13.01 7.44772 12.5623 7 12.01 7H12ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V12Z"})}),Qo=()=>o.jsx("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{d:"M5.09436 10.2288C5.03221 9.82823 4.99996 9.41786 4.99996 9C4.99996 4.58172 8.60525 1 13.0526 1C17.4999 1 21.1052 4.58172 21.1052 9C21.1052 9.99807 20.9213 10.9535 20.5852 11.8345C20.5154 12.0175 20.4804 12.109 20.4646 12.1804C20.4489 12.2512 20.4428 12.301 20.4411 12.3735C20.4394 12.4466 20.4493 12.5272 20.4692 12.6883L20.8717 15.9585C20.9153 16.3125 20.9371 16.4895 20.8782 16.6182C20.8266 16.731 20.735 16.8205 20.6211 16.8695C20.4911 16.9254 20.3146 16.8995 19.9617 16.8478L16.7765 16.3809C16.6101 16.3565 16.527 16.3443 16.4512 16.3448C16.3763 16.3452 16.3245 16.3507 16.2511 16.3661C16.177 16.3817 16.0823 16.4172 15.893 16.4881C15.0097 16.819 14.0524 17 13.0526 17C12.6344 17 12.2237 16.9683 11.8227 16.9073M6.63158 21C9.59648 21 12 18.5376 12 15.5C12 12.4624 9.59648 10 6.63158 10C3.66668 10 1.26316 12.4624 1.26316 15.5C1.26316 16.1106 1.36028 16.6979 1.53955 17.2467C1.61533 17.4787 1.65322 17.5947 1.66566 17.6739C1.67864 17.7567 1.68091 17.8031 1.67608 17.8867C1.67145 17.9668 1.65141 18.0573 1.61134 18.2383L1 21L3.9948 20.591C4.15827 20.5687 4.24 20.5575 4.31137 20.558C4.38652 20.5585 4.42641 20.5626 4.50011 20.5773C4.5701 20.5912 4.67416 20.6279 4.88227 20.7014C5.43059 20.8949 6.01911 21 6.63158 21Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ta=()=>o.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11C22 17.0751 17.0751 22 11 22C4.92487 22 0 17.0751 0 11ZM16.2071 7.29289C16.5976 7.68342 16.5976 8.31658 16.2071 8.70711L10.2071 14.7071C9.81658 15.0976 9.18342 15.0976 8.79289 14.7071L5.79289 11.7071C5.40237 11.3166 5.40237 10.6834 5.79289 10.2929C6.18342 9.90237 6.81658 9.90237 7.20711 10.2929L9.5 12.5858L14.7929 7.29289C15.1834 6.90237 15.8166 6.90237 16.2071 7.29289Z"})}),ea=()=>o.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0C4.92487 0 0 4.92487 0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11C22 4.92487 17.0751 0 11 0ZM12 7C12 6.44772 11.5523 6 11 6C10.4477 6 10 6.44772 10 7V11C10 11.5523 10.4477 12 11 12C11.5523 12 12 11.5523 12 11V7ZM11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16H11.01C11.5623 16 12.01 15.5523 12.01 15C12.01 14.4477 11.5623 14 11.01 14H11Z"})}),ra=()=>o.jsx("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.556 0.392576C9.99433 0.136202 10.4918 0 11 0C11.5082 0 12.0057 0.136202 12.444 0.392576C12.882 0.648777 13.2446 1.01526 13.5002 1.45305L13.503 1.45776L21.6098 15.5175L21.6175 15.5312C21.8676 15.9811 21.9986 16.4885 22 17.0032C22.0014 17.5179 21.8731 18.026 21.6255 18.4773C21.3778 18.9288 21.018 19.3098 20.5781 19.5786C20.1379 19.8477 19.6345 19.994 19.1182 19.9999L19.1068 20.0001L2.88178 20C2.36548 19.9941 1.86205 19.8477 1.4219 19.5786C0.982049 19.3098 0.62222 18.9288 0.374484 18.4773C0.126864 18.026 -0.00137604 17.5179 1.1135e-05 17.0032C0.00139837 16.4885 0.132377 15.9811 0.382473 15.5312L0.390218 15.5175L8.49974 1.45305C8.75537 1.01525 9.11797 0.648777 9.556 0.392576ZM12 7.06811C12 6.51582 11.5523 6.06811 11 6.06811C10.4477 6.06811 10 6.51582 10 7.06811V11.0454C10 11.5977 10.4477 12.0454 11 12.0454C11.5523 12.0454 12 11.5977 12 11.0454V7.06811ZM11 14.0227C10.4477 14.0227 10 14.4704 10 15.0227C10 15.575 10.4477 16.0227 11 16.0227H11.0096C11.5619 16.0227 12.0096 15.575 12.0096 15.0227C12.0096 14.4704 11.5619 14.0227 11.0096 14.0227H11Z"})}),Zt={avatar:{icon:null,colorScheme:"gray"},info:{icon:Jo,colorScheme:"gray"},success:{icon:ta,colorScheme:"green"},warning:{icon:ra,colorScheme:"yellow"},error:{icon:ea,colorScheme:"red"},dialog:{icon:Qo,colorScheme:"blue"}},na="_container_dd9oq_1",oa={container:na},aa="_container_r24j4_1",sa="_iconContainer_r24j4_11",ia="_textContainer_r24j4_18",la="_title_r24j4_27",ca="_subtitle_r24j4_27",zt={container:aa,iconContainer:sa,textContainer:ia,title:la,subtitle:ca},Xt={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function da(t){return(Xt==null?void 0:Xt[t])||Xt.m}const Je=t=>{const{iconSlot:r,title:n,subTitle:a,titleProps:i,subTitleProps:s,className:l,children:c,"data-testid":_,size:f="m",style:d}=t,g=da(f);return o.jsxs("div",{className:S.clsx(zt.container,l),"data-testid":_,style:d,children:[!!r&&o.jsx("div",{className:zt.iconContainer,children:r}),(n||a)&&o.jsxs("div",{className:zt.textContainer,children:[n&&o.jsx("p",{style:i==null?void 0:i.style,className:S.clsx(zt.title,U[g.title],i==null?void 0:i.className),children:n}),a&&o.jsx("p",{style:s==null?void 0:s.style,className:S.clsx(zt.subtitle,U[g.subtitle],s==null?void 0:s.className),children:a})]}),c]})},ua=t=>{const{open:r,onOpenChange:n,placement:a="default",variant:i="info",title:s,description:l,children:c,variantAvatarProps:_,"data-testid":f}=t,{icon:d,colorScheme:g}=(Zt==null?void 0:Zt[i])||Zt.info,x=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",..._}:{size:48,icon:d,colorScheme:g,variant:"light",style:{fontSize:24,outline:"none"},"data-testid":"alert-icon"};return o.jsx(Ke,{open:r,onOpenChange:n,placement:a,"data-testid":f,className:oa.container,children:o.jsx(Je,{title:s,subTitle:l,size:"m",iconSlot:o.jsx(Ue,{...x}),children:c})})},_a="_wrapper_1tbse_5",pa="_badge__container_1tbse_6",fa="_badge__content_1tbse_7",ga="_interactive_1tbse_20",ha="_disabled_1tbse_21",ba="_icon_1tbse_22",Ct={wrapper:_a,badge__container:pa,badge__content:fa,interactive:ga,disabled:ha,icon:ba,"variant-filled":"_variant-filled_1tbse_98","color-brand":"_color-brand_1tbse_103","color-red":"_color-red_1tbse_111","color-orange":"_color-orange_1tbse_119","color-yellow":"_color-yellow_1tbse_127","color-green":"_color-green_1tbse_135","color-blue":"_color-blue_1tbse_143","color-lightblue":"_color-lightblue_1tbse_151","color-purple":"_color-purple_1tbse_159","color-gray":"_color-gray_1tbse_167","color-contrast":"_color-contrast_1tbse_175","variant-light":"_variant-light_1tbse_184","variant-outline":"_variant-outline_1tbse_261","variant-transparent":"_variant-transparent_1tbse_339","position-top-left":"_position-top-left_1tbse_410","position-top-right":"_position-top-right_1tbse_416","position-bottom-left":"_position-bottom-left_1tbse_422","position-bottom-right":"_position-bottom-right_1tbse_428","position-top-center":"_position-top-center_1tbse_434","position-bottom-center":"_position-bottom-center_1tbse_440","position-middle-left":"_position-middle-left_1tbse_446","position-middle-right":"_position-middle-right_1tbse_452","position-middle-center":"_position-middle-center_1tbse_458","position-top-left-inside":"_position-top-left-inside_1tbse_465","position-top-right-inside":"_position-top-right-inside_1tbse_471","position-bottom-left-inside":"_position-bottom-left-inside_1tbse_477","position-bottom-right-inside":"_position-bottom-right-inside_1tbse_483","position-top-center-inside":"_position-top-center-inside_1tbse_489","position-bottom-center-inside":"_position-bottom-center-inside_1tbse_495","position-middle-left-inside":"_position-middle-left-inside_1tbse_501","position-middle-right-inside":"_position-middle-right-inside_1tbse_507"},Qe=b.forwardRef((t,r)=>{const{icon:n,children:a,variant:i="filled",label:s,isHidden:l=!1,colorScheme:c="red",size:_=20,position:f="top-right",positionOffset:d={x:0,y:0},cutoutBackground:g,isDisabled:m,className:x,"data-testid":w="badge",...v}=t,{onClick:h,onPointerDown:y}=v,{ref:u,bgColor:k}=ge(),L=g||k,$=!m&&(!!h||!!y),N=Rt(Ct.badge__container,Ct[`position-${f}`]),E=Rt(x,Ct.badge__content,Ct[`color-${c}`],Ct[`variant-${i}`],{[Ct.disabled]:m,[Ct.icon]:!!n,[Ct.interactive]:$}),I={"--badge-height":`${_}px`,"--badge-offset-x":`${d.x}px`,"--badge-offset-y":`${d.y}px`,...L&&{"--badge-cutout-bg":L},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},P=(n==null?void 0:n({}))||s,F=q=>{$&&(h==null||h(q))};return o.jsxs("div",{className:Ct.wrapper,ref:u,"data-testid":w+"-wrapper",children:[a,!l&&o.jsx("span",{className:N,style:I,"data-testid":w+"-container",children:o.jsx("span",{...v,onClick:F,className:E,"data-testid":w+"-content",ref:r,"aria-disabled":m,children:P})})]})}),xa="_container_yn8yz_7",ma="_loading_yn8yz_17",ya="_error_yn8yz_18",va="_image_yn8yz_22",Dt={container:xa,loading:ma,error:ya,image:va},Ca=({width:t=48,height:r=48,className:n,"data-testid":a})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"data-testid":a,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),wa=b.forwardRef((t,r)=>{const{alt:n="",loading:a="lazy",src:i,isLoading:s=!1,style:l,className:c,containerProps:_,"data-testid":f="image",onError:d,onLoad:g,...m}=t,{className:x,...w}=_??{},[v,h]=b.useState("loading"),y=v==="error",u=(s||v==="loading")&&!y,k=v==="loaded"&&!s,L=S.clsx(Dt.container,{[Dt.loading]:u&&!k,[Dt.error]:y&&!k},x),R=S.clsx(Dt.image,{[Dt.loading]:u},c),$=b.useCallback(I=>{h("loaded"),g==null||g(I)},[g]),N=b.useCallback(I=>{h("error"),d==null||d(I)},[d]),E={loader:o.jsxs(b.Fragment,{children:[o.jsx(pe,{size:48,variant:"special","data-testid":`${f}-loader`}),o.jsx("img",{alt:n,src:i,onLoad:$,onError:N,style:{display:"none"}})]}),error:o.jsx(Ca,{"data-testid":`${f}-fallback`}),image:o.jsx("img",{ref:r,alt:n,"data-testid":f,loading:a,src:i,className:R,...m})};return b.useEffect(()=>{if(!i){h("error");return}h("loading")},[i]),o.jsxs("div",{className:L,"data-testid":`${f}-container`,style:l,...w,children:[u&&E.loader,y&&E.error,k&&E.image]})}),tr={},er=b.createContext({locale:tr}),rr=()=>{const t=b.useContext(er);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},ka=()=>{const{locale:t}=rr();return t},Sa={},La={},ja={},$a={},Ta={},Ea="_base_1p0qo_50",Ra="_content_1p0qo_54",Na="_background_1p0qo_58",Ia="_button_1p0qo_62",Ma="_link_1p0qo_66",Ba="_input_1p0qo_70",Aa="_suffix_1p0qo_74",Oa="_prefix_1p0qo_78",Pa="_tooltip_1p0qo_82",za="_hint_1p0qo_86",Da="_dropdown_1p0qo_90",Fa="_popover_1p0qo_94",Wa="_modalBackdrop_1p0qo_98",qa="_modal_1p0qo_98",Ha="_overlay_1p0qo_106",Va="_drawer_1p0qo_110",Za="_notification_1p0qo_114",Xa="_alert_1p0qo_118",Ya="_toast_1p0qo_122",Ga="_loading_1p0qo_126",Ua="_error_1p0qo_130",Ka="_critical_1p0qo_134",Ja={base:Ea,content:Ra,background:Na,button:Ia,link:Ma,input:Ba,suffix:Aa,prefix:Oa,tooltip:Pa,hint:za,dropdown:Da,popover:Fa,modalBackdrop:Wa,modal:qa,overlay:Ha,drawer:Va,notification:Za,alert:Xa,toast:Ya,loading:Ga,error:Ua,critical:Ka},Qa=({locale:t={},theme:r,children:n,className:a})=>(b.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([s,l])=>{i.style.setProperty(s,l)})}},[r]),o.jsxs(b.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:S.clsx(Sa,La,ja,$a,Ta,Ja,U,a)}),o.jsx(er.Provider,{value:{locale:t},children:n})]})),ts={},es="_tag_1llsi_1",rs="_label_1llsi_16",ns="_iconWrapper_1llsi_20",os="_medium_1llsi_27",as="_large_1llsi_33",ss="_disabled_1llsi_43",is="_neutral_1llsi_47",ls="_positive_1llsi_53",cs="_negative_1llsi_59",ds="_warning_1llsi_65",us="_vivid_1llsi_71",_s="_special_1llsi_77",ps="_accent_1llsi_84",fs="_blue_1llsi_90",gs="_lovely_1llsi_96",hs="_dreamy_1llsi_102",Et={tag:es,label:rs,iconWrapper:ns,medium:os,large:as,disabled:ss,neutral:is,positive:ls,negative:cs,warning:ds,vivid:us,special:_s,accent:ps,blue:fs,lovely:gs,dreamy:hs},bs=b.forwardRef((t,r)=>{const{className:n,children:a,componentStyle:i="neutral",size:s="medium",disabled:l=!1,showLabel:c=!!a,slotStart:_,slotEnd:f,slotStartWrapperProps:d={},slotEndWrapperProps:g={},"data-testid":m,...x}=t,{className:w,...v}=d,{className:h,...y}=g;return o.jsxs("div",{className:S.clsx(Et.tag,Et[s],Et[i],{[Et.disabled]:l,[U["typography-label-3-regular"]]:s==="medium",[U["typography-subtitle-1-semibold"]]:s==="large"},n),"data-testid":m||"tag-component",ref:r,...x,children:[_&&o.jsx("span",{className:S.clsx([Et.iconWrapper,w]),...v,children:_}),c&&o.jsx("span",{className:S.clsx([Et.label]),children:a}),f&&o.jsx("span",{className:S.clsx([Et.iconWrapper,h]),...y,children:f})]})}),xs="_checkbox_gtrs6_43",ms="_input_gtrs6_64",ys="_icon_gtrs6_72",vs="_container_gtrs6_92",Cs="_error_gtrs6_143",ws="_checkboxWrapper_gtrs6_156",ks="_medium_gtrs6_211",Ss="_large_gtrs6_216",Ls="_label_gtrs6_258",kt={checkbox:xs,input:ms,icon:ys,container:vs,error:Cs,checkboxWrapper:ws,medium:ks,large:Ss,label:Ls},js=({width:t=12,height:r=9,className:n="",color:a="currentColor",...i})=>o.jsx("svg",{className:n,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:a})}),$s=({width:t=12,height:r=2,className:n="",color:a="currentColor",...i})=>o.jsx("svg",{className:n,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:a})}),Ts={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Es=({size:t,isChecked:r,isDisabled:n,indeterminate:a,dataTestId:i})=>{const{width:s,height:l}=Ts[t];return o.jsx("div",{className:kt.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":n,"data-indeterminate":a,children:a?o.jsx($s,{width:s,height:l}):o.jsx(js,{width:s,height:l})})},Rs=b.forwardRef((t,r)=>{const{name:n,value:a,size:i="medium",indeterminate:s=!1,loading:l=!1,error:c,disabled:_=!1,containerClassName:f,className:d,containerStyle:g,style:m,children:x,clickableLabel:w=!0,tabIndex:v,onChange:h,onClick:y,"data-testid":u="checkbox"}=t,[k,L]=b.useState(!1),R=a??k,$=_||l,N=!!c,E=R||s,I=S.clsx(kt.container,kt[i],f),P=S.clsx(kt.checkbox,kt[i],{[kt.error]:N},d),F=O=>{$||(L(O.target.checked),h==null||h(O.target.checked,O))},q=O=>{if(O.key==="Enter"&&!$){O.preventDefault();const H=!E;L(H),h==null||h(H)}},j=O=>{w||O.preventDefault(),y==null||y(O)};return o.jsxs("label",{className:I,htmlFor:n,style:g,"data-testid":u,"data-clickable-label":w,children:[o.jsx("div",{className:kt.checkboxWrapper,children:o.jsxs("div",{tabIndex:v||0,className:P,style:m,onKeyDown:q,"aria-checked":E,"aria-disabled":$,"aria-invalid":N,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${u}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:n,name:n,checked:E,disabled:$,className:kt.input,onChange:F,"aria-checked":E,"aria-invalid":N,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${u}-input`}),o.jsx(Es,{name:n,size:i,isChecked:E,isDisabled:$,indeterminate:s,dataTestId:u})]})}),x&&o.jsx("span",{"data-testid":`${u}-label-text`,"data-clickable-label":w,className:kt.label,onClick:j,children:x})]})}),Ns="_base_10oxr_1",Is="_content_10oxr_1",Ms="_background_10oxr_1",Bs="_button_10oxr_1",As="_link_10oxr_1",Os="_input_10oxr_96",Ps="_suffix_10oxr_1",zs="_prefix_10oxr_1",Ds="_tooltip_10oxr_1",Fs="_hint_10oxr_794",Ws="_dropdown_10oxr_1",qs="_popover_10oxr_1",Hs="_modalBackdrop_10oxr_1",Vs="_modal_10oxr_1",Zs="_overlay_10oxr_1",Xs="_drawer_10oxr_1",Ys="_notification_10oxr_1",Gs="_alert_10oxr_1",Us="_toast_10oxr_1",Ks="_loading_10oxr_291",Js="_error_10oxr_252",Qs="_critical_10oxr_1",ti="_inputBase_10oxr_96",ei="_wrapper_10oxr_106",ri="_gripHandle_10oxr_186",ni="_tabFocused_10oxr_259",oi="_disabled_10oxr_284",ai="_label_10oxr_301",si="_S_10oxr_315",ii="_M_10oxr_321",li="_XL_10oxr_328",ci="_leftSection_10oxr_335",di="_rightSection_10oxr_347",ui="_helper_10oxr_385",_i="_floatingLabel_10oxr_415",pi="_focused_10oxr_481",fi="_filled_10oxr_482",gi="_L_10oxr_522",hi="_characterLimit_10oxr_564",bi="_textarea_10oxr_124",xi="_truncate_10oxr_707",B={base:Ns,content:Is,background:Ms,button:Bs,link:As,input:Os,suffix:Ps,prefix:zs,tooltip:Ds,hint:Fs,dropdown:Ws,popover:qs,modalBackdrop:Hs,modal:Vs,overlay:Zs,drawer:Xs,notification:Ys,alert:Gs,toast:Us,loading:Ks,error:Js,critical:Qs,inputBase:ti,wrapper:ei,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:ri,tabFocused:ni,disabled:oi,label:ai,S:si,M:ii,XL:li,leftSection:ci,rightSection:di,helper:ui,floatingLabel:_i,focused:pi,filled:fi,L:gi,characterLimit:hi,textarea:bi,"size-S":"_size-S_10oxr_646","size-M":"_size-M_10oxr_656","size-L":"_size-L_10oxr_662","size-XL":"_size-XL_10oxr_668","with-floating-label":"_with-floating-label_10oxr_675",truncate:xi,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},mi=({width:t=8,height:r=8,className:n,color:a="#AABBCA"})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:a})}),nr=({className:t="",style:r,size:n="md",color:a="currentColor",onClick:i,...s})=>{const c={display:"inline-block",color:a,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"20px",height:"20px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[n],...r};return o.jsx("svg",{className:t,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...s,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},yi=(t,r)=>{const n=b.useRef(null),a=b.useRef(null);return b.useEffect(()=>{const i=r==="textarea"?n.current:a.current;i&&i.value!==t&&(i.value=t||"")},[t,r]),{textareaRef:n,inputRef:a,currentRef:r==="textarea"?n:a}},vi=(t,r,n)=>{const a=()=>{if(!n.current||r!=="hug")return;const i=n.current.scrollTop;if(n.current.style.setProperty("height","auto","important"),!t)return;const s=n.current.scrollHeight+"px";n.current.style.setProperty("height",s,"important"),n.current.scrollTop=i;const l=n.current.closest(`.${B.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return b.useEffect(a,[t,r]),b.useEffect(()=>{r==="hug"&&n.current&&a()},[]),{resizeTextArea:a}},Ci=(t,r,n,a)=>({handleGripMouseDown:b.useCallback(s=>{if(!t||r||n||!(a==="fixed"||!a))return;s.preventDefault(),s.stopPropagation();const l=s.currentTarget.closest(`.${B.wrapper}`);if(!l)return;const c=s.clientY,_=l.clientHeight,f=g=>{const m=g.clientY-c,x=Math.min(100,_),w=Math.max(x,_+m);l.style.height=`${w}px`},d=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",d)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",d)},[t,r,n,a])}),We=30,wi=b.forwardRef(({component:t="input",size:r="L",value:n="",placeholder:a,disabled:i=!1,loading:s=!1,onFocus:l,onBlur:c,onChange:_,onKeyDown:f,onKeyUp:d,maxLength:g,className:m,style:x,truncate:w=!1,shouldShowFloatingLabelClass:v=!1,"aria-invalid":h,"aria-errormessage":y,id:u,resize:k,...L},R)=>{const{textareaRef:$,inputRef:N,currentRef:E}=yi(n,t);if(vi(n,k,$),b.useImperativeHandle(R,()=>E.current,[E]),t==="textarea")return o.jsx("textarea",{ref:$,id:u,value:n,placeholder:a,disabled:i||s,onFocus:l,onBlur:c,onChange:_,onKeyDown:f,onKeyUp:d,maxLength:g,className:S.clsx(B.textarea,B[`size-${r}`],v&&B["with-floating-label"],m),style:x,"aria-invalid":h,"aria-errormessage":y,"aria-describedby":y?`${u}-error`:void 0,tabIndex:0,"data-resize":k,...L});if(t==="input")return o.jsx("input",{ref:N,id:u,value:n,placeholder:a,disabled:i||s,onFocus:l,onBlur:c,onChange:_,onKeyDown:f,onKeyUp:d,maxLength:g,className:S.clsx(B.input,B[`size-${r}`],v&&B["with-floating-label"],w&&B.truncate,m),style:x,"aria-invalid":h,"aria-errormessage":y,"aria-describedby":y?`${u}-error`:void 0,tabIndex:0,...L});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),or=b.forwardRef(({children:t,size:r="L",error:n=!1,disabled:a=!1,loading:i=!1,className:s,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:_,prefixStyles:f,suffixStyles:d,labelProps:g,helperProps:m,showLimit:x=!1,maxLength:w,hint:v,showHint:h=!1,showHintOnEmpty:y=!1,prefix:u,suffix:k,onSuffixClick:L,placeholder:R,showLabel:$=!0,labelClassName:N,hasValue:E=!1,helper:I,id:P,value:F="",resize:q,showGrip:j=!1,...O},H)=>{const V=b.useId(),X=P||V,K=h&&v&&(E||y),ot=v&&v.length>We?v.substring(0,We)+"...":v,rt=S.clsx(B.wrapper,B[`size-${r}`],n&&B.error,a&&B.disabled,i&&B.loading,K&&B["has-hint"],k&&B["has-suffix"],x&&B["has-limit"],s),J=S.clsx(B.floatingLabel,B[r],E&&B.filled,N),{handleGripMouseDown:at}=Ci(j,a,i,q);return o.jsxs("div",{ref:H,className:B.inputBase,"data-testid":"input-base-wrapper",...O,children:[o.jsxs("div",{className:rt,style:c,"data-resize":q,"data-show-grip":j?"true":"false",...l,children:[u&&o.jsx("label",{htmlFor:X,className:B.leftSection,style:f,children:u}),k&&o.jsx("label",{htmlFor:X,className:B.rightSection,style:d,onClick:L,children:k}),R&&$&&o.jsx("label",{htmlFor:X,className:J,style:_,...g,children:R}),t,j&&!x&&(q==="fixed"||!q)&&o.jsx("div",{className:B.gripHandle,onMouseDown:at,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(mi,{})}),K&&o.jsx("div",{className:S.clsx(B.hint,E&&B.truncate),"data-disabled":a||i,children:ot}),x&&w&&o.jsxs("div",{className:B.characterLimit,children:[(F||"").length," из ",w]})]}),I&&o.jsx("div",{className:S.clsx(B.helper,n&&B.error,(a||i)&&B.disabled),...m,id:n?`${X}-error`:void 0,children:I})]})});or.displayName="InputWrapperComponent";const qe=Object.assign(wi,{Wrapper:or}),ar=b.forwardRef(({component:t="input",size:r="L",className:n,error:a=!1,disabled:i=!1,loading:s=!1,placeholder:l,showLabel:c=!0,labelClassName:_,helper:f,prefix:d,suffix:g,id:m,onFocus:x,onBlur:w,onKeyDown:v,onSuffixClick:h,onChange:y,value:u="",wrapperProps:k,wrapperStyles:L,floatingLabelStyles:R,prefixStyles:$,suffixStyles:N,textareaStyles:E,labelProps:I,helperProps:P,showLimit:F=!1,maxLength:q,inputProps:j,hint:O,showHint:H=!1,showHintOnEmpty:V=!1,truncate:X=!1,resize:K,showGrip:ot=!1,...rt},J)=>{const at=b.useId(),st=m||at,[vt,xt]=b.useState(u),it=u!==void 0?u:vt,jt=(it||"").length>0,ut=it||"",Nt=c&&(r==="XL"||t==="textarea")&&!d,te=b.useCallback(Q=>{var tt;i||s||(x==null||x(),(tt=j==null?void 0:j.onFocus)==null||tt.call(j,Q))},[x,j,i,s]),qt=b.useCallback(Q=>{var tt;if(Q.key==="Tab"){const mt=Q.target.closest(`.${B.wrapper}`);mt&&mt.classList.add(B.tabFocused)}(tt=j==null?void 0:j.onKeyUp)==null||tt.call(j,Q)},[j]),ee=b.useCallback(Q=>{var mt;const tt=Q.target.closest(`.${B.wrapper}`);tt&&tt.classList.remove(B.tabFocused),w==null||w(),(mt=j==null?void 0:j.onBlur)==null||mt.call(j,Q)},[w,j]),re=b.useCallback(Q=>{var mt;if(i||s)return;const tt=Q.target.value;xt(tt),y==null||y(tt,Q),(mt=j==null?void 0:j.onChange)==null||mt.call(j,Q)},[y,j,i,s]);return b.useEffect(()=>{xt(u||"")},[u]),o.jsx(qe.Wrapper,{ref:J,size:r,error:a,disabled:i||s,loading:s,className:S.clsx(n,t==="textarea"&&B["textarea-wrapper"]),wrapperProps:k,wrapperStyles:L,floatingLabelStyles:R,prefixStyles:$,suffixStyles:N,labelProps:I,helperProps:P,showLimit:F,maxLength:q,hint:O,showHint:H,showHintOnEmpty:V,prefix:d,suffix:g,onSuffixClick:h,placeholder:l,showLabel:c,labelClassName:_,hasValue:jt,helper:f,id:st,value:ut,showGrip:ot,resize:K,...rt,children:o.jsx(qe,{component:t,size:r,value:ut,placeholder:l,disabled:i,loading:s,onFocus:te,onBlur:ee,onChange:re,onKeyDown:v,onKeyUp:qt,maxLength:q,truncate:X,"data-empty":!jt,shouldShowFloatingLabelClass:Nt,style:t==="textarea"?E:void 0,"aria-invalid":!!a,"aria-errormessage":a?`${st}-error`:void 0,id:st,resize:K,...j})})}),Z={S:"S",M:"M",L:"L",XL:"XL"},ki=(t,r,n,a)=>{switch(t){case Z.XL:return r&&n?"8px 16px 8px 16px":"16px 16px 16px 16px";case Z.L:return a?"12px 12px 12px 12px":"12px 16px 12px 16px";case Z.M:return"10px 12px 10px 12px";case Z.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},Si=t=>{switch(t){case Z.XL:return"56px";case Z.L:return"48px";case Z.M:return"40px";case Z.S:return"32px";default:return"48px"}},Li=t=>{switch(t){case Z.S:case Z.M:case Z.L:return 4;case Z.XL:return 8;default:return 8}},ji=t=>{switch(t){case Z.S:case Z.M:return 8;case Z.L:case Z.XL:return 12;default:return 12}},$i=(t,r,n,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ti=(t,r,n,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Ei=(t,r,n,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Ri=(t,r,n,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ni=(t,r,n,a)=>{const i=Si(t),s=ki(t,r,n,a),l=ji(t),c=Li(t);switch(t){case Z.XL:return Ti(i,s,l,c);case Z.L:return Ei(i,s,l,c);case Z.M:return Ri(i,s,l,c);case Z.S:return $i(i,s,l,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Ii=b.forwardRef(({value:t="",onChange:r,type:n="text",placeholder:a,maxLength:i,minLength:s,autoComplete:l,autoFocus:c,size:_=Z.L,inputProps:f,error:d,disabled:g,loading:m,helper:x,prefix:w,suffix:v,clearable:h=!1,id:y,showLabel:u=!0,onFocus:k,onBlur:L,onSuffixClick:R,onClear:$,className:N,truncate:E=!0,hint:I,showHint:P=!1,showHintOnEmpty:F=!1,wrapperProps:q,labelProps:j,helperProps:O,...H},V)=>{const X=(t||"").length>0,K=_===Z.XL,ot=!!w,rt=K&&u&&!w,J=h&&X&&!(g||m),at=()=>{r==null||r(""),$==null||$()},st=()=>{J&&at(),R==null||R()},vt=J?o.jsx(nr,{size:_===Z.S||_===Z.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):v,xt={type:n,minLength:s,autoComplete:l,autoFocus:c,...f},it=Ni(_,rt,X,ot);return o.jsx(ar,{size:_,error:d,disabled:g||m,loading:m,helper:x,prefix:w,suffix:vt,id:y,showLabel:rt,onFocus:k,onBlur:L,onSuffixClick:st,onChange:r,value:t,placeholder:a,className:N,wrapperStyles:it.wrapperStyles,floatingLabelStyles:it.floatingLabelStyles,prefixStyles:it.prefixStyles,suffixStyles:it.suffixStyles,wrapperProps:q,labelProps:j,helperProps:O,showLimit:!1,maxLength:i,inputProps:xt,hint:I,showHint:P,showHintOnEmpty:F,truncate:E,...H})}),pt={M:"M",L:"L"},Ut={M:"12px",L:"16px"},Mi={M:"xs",L:"sm"},Yt={FILL:"fill",FIXED:"fixed"},de={M:"112px",L:"56px"},Bt={M:"48px",L:"22px"},wt={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},Lt={M:48,L:56,XL:112},Bi=(t,r)=>{if(t===pt.M)return de.M;if(r)return`${r}px`;switch(t){case pt.L:return de.L;default:return de.L}},Ai=(t,r)=>{if(t===pt.M)return Bt.M;if(r)switch(r){case Lt.M:case Lt.L:return Bt.L;case Lt.XL:return Bt.M;default:return Bt.L}switch(t){case pt.L:return Bt.L;default:return Bt.L}},Oi=(t,r,n)=>{if(t===pt.M)return wt.M;if(r)switch(r){case Lt.M:return wt.L_WITH_PREFIX;case Lt.L:return n?wt.L_FLOATING_LABEL:wt.L;case Lt.XL:return wt.L;default:return wt.L}switch(t){case pt.L:return n?wt.L_FLOATING_LABEL:wt.L;default:return wt.L}},Pi=(t,r)=>{if(t===pt.M)return"M";if(r)switch(r){case Lt.M:return"M";case Lt.L:return"L";case Lt.XL:return"L";default:return"L"}return t},zi=t=>Mi[t],Di=t=>Ut[t],Fi=(t,r,n,a)=>{const i=Bi(t,r),s=Ai(t,r),l=Oi(t,r,n);return{wrapperStyles:{minHeight:i,...a===Yt.FILL&&{height:"100%"},...a===Yt.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:t===pt.M?Ut.M:Ut.L,transformOrigin:"left top",top:r===112&&n&&t===pt.L?Ut.L:void 0},suffixStyles:{right:Di(t),top:r===48&&t===pt.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:s,...a===Yt.FILL&&{flex:1,minHeight:0},...a===Yt.FIXED&&r&&{height:s}}}},Wi=b.forwardRef(({value:t="",onChange:r,placeholder:n,maxLength:a,minLength:i,autoFocus:s,size:l=pt.L,textareaProps:c,error:_,disabled:f,loading:d,helper:g,suffix:m,clearable:x=!1,id:w,showLabel:v=!0,onFocus:h,onBlur:y,onClear:u,onKeyDown:k,className:L,rows:R=1,showLimit:$=!1,wrapperProps:N,labelProps:E,helperProps:I,showGrip:P,minHeight:F,resize:q,...j},O)=>{const H=(t||"").length>0,V=v&&!!n&&(l===pt.M||F!==48),X=x&&H&&!(f||d),K=()=>{r==null||r(""),u==null||u()},ot=()=>{X&&K()},rt=X?o.jsx(nr,{size:zi(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):m,J=Fi(l,F,V&&H,q),at=Pi(l,F),st={rows:R,minLength:i,autoFocus:s,resize:q,...c};return o.jsx(ar,{ref:O,component:"textarea",size:at,error:_,disabled:f||d,loading:d,onSuffixClick:ot,helper:g,suffix:rt,id:w,showLabel:V,onFocus:h,onBlur:y,onKeyDown:k,onChange:r,value:t||"",placeholder:n,className:L,"data-floating-label":V,wrapperStyles:J.wrapperStyles,floatingLabelStyles:J.floatingLabelStyles,suffixStyles:J.suffixStyles,textareaStyles:J.textareaStyles,wrapperProps:N,labelProps:E,helperProps:I,showLimit:$&&(F===112||l===pt.M),maxLength:a,inputProps:st,resize:q,showGrip:P,...j})}),qi="_helper_1jq7j_16",ue={helper:qi,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Hi=({title:t,error:r,className:n="",style:a,disabled:i=!1,"data-testid":s,"aria-label":l,"aria-describedby":c})=>{const _=!!r,f=S.clsx(ue.helper,_&&ue["helper--error"],i&&ue["helper--disabled"],n),d=i?t:r||t;return o.jsx("div",{className:f,style:a,"data-testid":s,"aria-label":l,"aria-describedby":c,children:o.jsx("p",{children:d})})},Vi="_radio_1n8zx_59",Zi="_checked_1n8zx_80",Xi="_error_1n8zx_85",Yi="_disabled_1n8zx_94",Gi="_icon_1n8zx_130",Ui="_small_1n8zx_138",Ki="_medium_1n8zx_145",Ji="_large_1n8zx_152",Qi="_label_1n8zx_159",tl="_container_1n8zx_185",el="_input_1n8zx_198",rl="_card_1n8zx_205",nl="_smallCard_1n8zx_211",ol="_mediumCard_1n8zx_215",al="_largeCard_1n8zx_219",_t={default:"_default_1n8zx_53",radio:Vi,checked:Zi,error:Xi,disabled:Yi,icon:Gi,small:Ui,medium:Ki,large:Ji,label:Qi,container:tl,input:el,card:rl,smallCard:nl,mediumCard:ol,largeCard:al},sl="radio-container-",il="radio-label",sr=b.forwardRef((t,r)=>{const{name:n,id:a,value:i,size:s="large",loading:l=!1,error:c,disabled:_=!1,checked:f=!1,containerClassName:d,className:g,children:m,clickable:x="all",mode:w="default",tabIndex:v,style:h,containerStyle:y,onChange:u,"data-testid":k,...L}=t,R=!!c,$=_||l,N=x==="all",E=w==="card",I=_t[`${s}Card`],P=a??n,F=V=>{$||u==null||u(i,V)},q=V=>{V.key==="Enter"&&!$&&(V.preventDefault(),u==null||u(i))},j=V=>V.stopPropagation(),O=()=>o.jsxs("div",{className:S.clsx(_t.radio,_t[s],{[_t.checked]:f,[_t.disabled]:$,[_t.error]:R&&!$},g),style:h,tabIndex:v||1,"data-testid":`${sl}${P}`,children:[o.jsx("input",{"aria-errormessage":c,"aria-invalid":R,checked:f,className:_t.input,"data-testid":`radio-${P}`,disabled:$,id:P,name:n,ref:r,type:"radio",value:i,onChange:F,onClick:j}),o.jsx("svg",{"data-testid":`radio-icon-${P}`,viewBox:"0 0 8 8",className:_t.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),H=()=>o.jsxs("label",{"aria-checked":f,"aria-disabled":$,"data-testid":N?k:il,htmlFor:P,style:y,className:S.clsx(_t.label,{[S.clsx(_t.container,_t[w],d)]:N,[I]:N&&E}),onKeyDown:q,...L,children:[O(),N&&m]});return N?H():o.jsxs("div",{className:S.clsx(_t.container,_t[w],d,{[I]:E}),"data-testid":k,children:[H(),m]})}),ll="_group_tnviu_7",cl="_vertical_tnviu_12",dl="_horizontal_tnviu_16",He={group:ll,vertical:cl,horizontal:dl},ul=b.forwardRef((t,r)=>{const{id:n,name:a,value:i,options:s,className:l,radioClassName:c,disabled:_=!1,layout:f="vertical","data-testid":d,...g}=t;return o.jsx("div",{className:Rt(He.group,He[f],l),"data-testid":d??`radio-group-${a}`,id:n,ref:r,children:s.map(({label:m,value:x,disabled:w})=>{const v=`${a}-${String(x)}`,h=String(x)===String(i);return o.jsx(sr,{id:v,checked:h,"data-testid":v,disabled:_||w,name:a,value:x,className:c,...g,children:m},v)})})}),_l=Object.assign(sr,{Group:ul}),pl="_root_1jj3e_25",fl="_unordered_1jj3e_39",gl="_ordered_1jj3e_43",hl="_sm_1jj3e_48",bl="_md_1jj3e_59",xl="_lg_1jj3e_70",ml="_xl_1jj3e_81",_e={root:pl,unordered:fl,ordered:gl,sm:hl,md:bl,lg:xl,xl:ml},yl=t=>{const{children:r,className:n,"data-testid":a="list-item"}=t;return o.jsx("li",{"data-testid":a,className:n,children:r})},vl=Object.assign(b.forwardRef((t,r)=>{const{variant:n="unordered",className:a,children:i,size:s="md","data-testid":l="list",...c}=t,_=n==="ordered"?"ol":"ul";return o.jsx(_,{"data-testid":l,ref:r,className:Rt(_e.root,_e[n],_e[s],a),...n==="ordered"&&c,children:i})}),{Item:yl}),Cl="_wrapper_1v8xn_5",wl="_viewport_1v8xn_12",kl="_mask_1v8xn_26",Sl="_maskLeft_1v8xn_37",Ll="_maskRight_1v8xn_42",jl="_visible_1v8xn_46",$l="_control_1v8xn_51",Tl="_xs_1v8xn_70",El="_sm_1v8xn_73",Rl="_md_1v8xn_76",Nl="_left_1v8xn_80",Il="_right_1v8xn_83",ct={wrapper:Cl,viewport:wl,mask:kl,maskLeft:Sl,maskRight:Ll,visible:jl,control:$l,xs:Tl,sm:El,md:Rl,left:Nl,right:Il},Ml="white",Bl=({children:t,withControls:r=!0,className:n,size:a})=>{const i=b.useRef(null),[s,l]=b.useState(!1),[c,_]=b.useState(!1),{ref:f,bgColor:d}=ge(),g=f??{current:null},m=d??Ml,x=r&&s,w=r&&c,v=({direction:u})=>o.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("g",{transform:u==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:o.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),h=()=>{const u=i.current;if(!u)return;const k=Math.round(u.scrollLeft),L=Math.round(u.scrollLeft+u.clientWidth),R=Math.round(u.scrollWidth);l(k>0),_(L<R)},y=u=>{const k=i.current;if(!k)return;const L=k.clientWidth;k.scrollBy({left:u==="left"?-L:L,behavior:"smooth"})};return b.useEffect(()=>{const u=i.current;if(!u)return;const k=L=>{Math.abs(L.deltaX)>Math.abs(L.deltaY)||u.scrollWidth>u.clientWidth&&(L.preventDefault(),u.scrollBy({left:L.deltaY,behavior:"auto"}))};return u.addEventListener("wheel",k,{passive:!1}),()=>u.removeEventListener("wheel",k)},[]),b.useEffect(()=>{h();const u=i.current;if(u)return u.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",h),()=>{u.removeEventListener("scroll",h),window.removeEventListener("resize",h)}},[]),o.jsxs("div",{ref:g,className:S.clsx(ct.wrapper,n),children:[x&&o.jsx("div",{className:S.clsx(ct.mask,ct.maskLeft,s&&ct.visible),style:{background:`linear-gradient(to right, ${m} 17%, transparent 80%)`}}),w&&o.jsx("div",{className:S.clsx(ct.mask,ct.maskRight,c&&ct.visible),style:{background:`linear-gradient(to left, ${m} 17%, transparent 80%)`}}),o.jsx("div",{ref:i,className:ct.viewport,children:t}),x&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(ct.control,ct.left,ct[a]),onClick:()=>y("left"),children:o.jsx(v,{direction:"left"})}),w&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(ct.control,ct.right,ct[a]),onClick:()=>y("right"),children:o.jsx(v,{direction:"right"})})]})},Al="_tabBar_1ndpm_82",Ol="_primary_1ndpm_88",Pl="_secondary_1ndpm_93",zl="_tab_1ndpm_82",Dl="_md_1ndpm_125",Fl="_sm_1ndpm_129",Wl="_xs_1ndpm_133",ql="_disabled_1ndpm_137",Hl="_selected_1ndpm_143",Vl="_tabLabel_1ndpm_222",Zl="_tabPrefix_1ndpm_234",Xl="_tabPostfix_1ndpm_270",et={tabBar:Al,primary:Ol,secondary:Pl,tab:zl,md:Dl,sm:Fl,xs:Wl,disabled:ql,selected:Hl,tabLabel:Vl,tabPrefix:Zl,tabPostfix:Xl},Yl="md",Gl=!1,Ul=8,Kl="top-right-inside",ir=b.createContext(null),lr=()=>{const t=b.useContext(ir);if(!t)throw new Error("useTabs должен использоваться внутри TabsProvider");return t},Jl=({children:t,defaultActiveTab:r,activeTab:n,onChange:a})=>{const[i,s]=b.useState(r),l=n!==void 0,c=l?n:i,_=f=>{l||s(f),a&&a(f)};return o.jsx(ir.Provider,{value:{activeTab:c,setTab:_},children:t})},Ql=({mode:t,item:r,isActive:n,showBadge:a,badgeProps:i,size:s,isDisabled:l,onSelectTab:c})=>{const{value:_,label:f,prefix:d,prefixWrapperProps:g={},postfix:m,postfixWrapperProps:x={}}=r,{className:w,...v}=g,{className:h,...y}=x,u={primary:U["typography-label-3-medium"],secondary:U["typography-label-3-regular"],prefix:U["typography-label-3-medium"],postfix:U["typography-label-3-medium"]},k={size:Ul,position:Kl,...i},L=S.clsx(et.tab,et[t],et[s],{[et.selected]:n,[et.disabled]:l}),R=S.clsx(et.tabPrefix,w,et[t],u.prefix,{[et.selected]:n,[et.disabled]:l}),$=S.clsx(et.tabPostfix,h,et[t],u.postfix,{[et.selected]:n,[et.disabled]:l}),N=S.clsx(et.tabLabel,et[t],u[t]),E=P=>{n||l||(c(_),P.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},I=o.jsxs("button",{className:L,role:"tab","aria-label":f,"aria-selected":n,"aria-disabled":l,"aria-controls":`tab-panel-${_}`,"data-testid":`tab-item-${_}`,onClick:E,children:[d&&o.jsx("span",{className:R,...v,"data-testid":`tab-prefix-${_}`,children:d}),o.jsx("span",{className:N,"data-testid":`tab-label-${_}`,children:f}),m&&o.jsx("span",{className:$,...y,"data-testid":`tab-postfix-${_}`,children:m})]});return a?o.jsx(Qe,{...k,"data-testid":`tab-badge-${_}`,children:I}):I},tc=({mode:t,items:r,size:n=Yl,isAllItemsDisabled:a=Gl})=>{const{activeTab:i,setTab:s}=lr(),l=mo();return o.jsx(Bl,{size:n,withControls:l,children:o.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:S.clsx(et.tabBar,et[t]),children:r.map(c=>o.jsx(Ql,{size:n,item:c,mode:t,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:a||c.isDisabled,onSelectTab:s},c.value))})})},ec=({tabValue:t,children:r,...n})=>o.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${t}`,"aria-labelledby":`tab-item-${t}`,...n,children:r}),rc=({children:t,...r})=>{const{activeTab:n}=lr(),a=Array.isArray(t)?t:[t],i=(s,l)=>b.isValidElement(s)&&typeof s.props=="object"&&s.props!==null&&l in s.props;return o.jsx("div",{"data-testid":"tab-content",...r,children:a.map(s=>i(s,"tabValue")&&String(s.props.tabValue)===n?s:null)})},nc={Provider:Jl,Content:rc,Panel:ec,Bar:tc},oc="_root_1fbbw_34",ac="_open_1fbbw_51",sc="_xs_1fbbw_55",ic="_s_1fbbw_61",lc="_m_1fbbw_67",cc="_neutral_1fbbw_73",dc="_contrast_1fbbw_78",uc="_accent_1fbbw_84",_c="_typography_1fbbw_89",pc="_title_1fbbw_89",fc="_text_1fbbw_93",gc="_mediaWrapper_1fbbw_97",hc="_content_1fbbw_112",bc="_closeButton_1fbbw_116",xc="_hasMedia_1fbbw_142",mc="_buttonStack_1fbbw_148",dt={root:oc,open:ac,xs:sc,s:ic,m:lc,neutral:cc,contrast:dc,accent:uc,typography:_c,title:pc,text:fc,mediaWrapper:gc,content:hc,closeButton:bc,hasMedia:xc,buttonStack:mc},yc=()=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:o.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),vc=()=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[o.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),o.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),ht={shiftX:64,adjustY:1},bt={adjustX:1,shiftY:!0},Cc={left:{points:["cr","cl"],overflow:bt,offset:[-22,0]},right:{points:["cl","cr"],overflow:bt,offset:[22,0]},top:{points:["bc","tc"],overflow:ht,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:ht,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:ht,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:bt,offset:[-22,0]},topRight:{points:["br","tr"],overflow:ht,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:bt,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:ht,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:bt,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:ht,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:bt,offset:[-22,0]}},wc={left:{points:["cr","cl"],overflow:bt,offset:[-16,0]},right:{points:["cl","cr"],overflow:bt,offset:[16,0]},top:{points:["bc","tc"],overflow:ht,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:ht,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:ht,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:bt,offset:[-16,0]},topRight:{points:["br","tr"],overflow:ht,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:bt,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:ht,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:bt,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:ht,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:bt,offset:[-16,0]}},kc={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},Sc=(t,r,n)=>({...r,...n??{},...t}),Lc=(t,r,n)=>{const a=to(r,1,3),i=kc[n][a];return i[Math.min(t,i.length-1)]},Ve=({text:t,title:r,media:n,variant:a="neutral",size:i,classNames:s={},onClose:l,buttons:c,buttonProps:_,showClose:f})=>{const d=["neutral","accent"].includes(a)?"contrast":"primary",g=i==="m",m=!!(r&&g),x=!!(n&&g),w=c&&!!c.length,v=!!(f&&g)||!f&&g&&!w,h=i==="xs"?4:3;return o.jsxs("div",{className:dt.content,children:[x&&o.jsx("div",{className:S.clsx(dt.mediaWrapper,s.mediaWrapper),children:n}),o.jsxs("div",{className:s.textWrapper,children:[m&&o.jsx(Qt.Subtitle,{className:S.clsx(dt.typography,dt.title,s.typography),size:1,as:"h3",typographyStyle:d,children:r}),o.jsx(Qt.Label,{className:S.clsx(dt.typography,dt.text,s.typography),typographyStyle:d,size:h,children:t})]}),v&&o.jsx("button",{type:"button",className:S.clsx(dt.closeButton,dt[a],s.closeButton,{[dt.hasMedia]:x}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:o.jsx(yc,{})}),g&&w&&o.jsx("div",{className:dt.buttonStack,children:c.map((y,u)=>{const k=Lc(u,c.length,a),L=Sc(y,k,_),{closeOnClick:R,...$}=L,N=E=>{var I;(I=$.onClick)==null||I.call($,E),R&&(l==null||l())};return o.jsx(Kt,{...$,onClick:N},u)})})]})},jc=({customContent:t,children:r,placement:n="top",contentClassNames:a,mouseEnterDelay:i=0,mouseLeaveDelay:s=.1,showArrow:l=!0,showClose:c=!0,trigger:_="hover",variant:f="neutral",size:d="s",text:g,title:m,media:x,buttons:w,buttonProps:v,onClose:h,...y})=>{const[u,k]=b.useState(!1),[L,R]=b.useState(!1),$=d==="m"?Cc:wc,N=()=>{k(!1),h==null||h()},E=t||(d==="m"?o.jsx(Ve,{classNames:a,text:g,variant:f,size:d,onClose:N,title:m,media:x,showClose:c,buttons:w,buttonProps:v}):o.jsx(Ve,{classNames:a,text:g,variant:f,size:d,onClose:N}));return b.useEffect(()=>{if(u){const I=requestAnimationFrame(()=>R(!0));return()=>cancelAnimationFrame(I)}R(!1)},[u]),o.jsx(Rr,{visible:u,onVisibleChange:k,classNames:{root:S.clsx(dt.root,dt[f],dt[d],L&&dt.open),...y.classNames},placement:n,overlay:()=>E,trigger:_,mouseEnterDelay:i,mouseLeaveDelay:s,motion:{motionName:"tooltipMotion"},builtinPlacements:$,showArrow:l?{content:o.jsx(vc,{}),className:`tooltipArrow tooltipArrow-${d}`}:!1,destroyTooltipOnHide:!0,...y,children:r})},$c="_base_4dkq5_1",Tc="_content_4dkq5_1",Ec="_background_4dkq5_1",Rc="_button_4dkq5_1",Nc="_link_4dkq5_1",Ic="_input_4dkq5_1",Mc="_suffix_4dkq5_1",Bc="_prefix_4dkq5_1",Ac="_tooltip_4dkq5_1",Oc="_hint_4dkq5_1",Pc="_dropdown_4dkq5_1",zc="_popover_4dkq5_1",Dc="_modalBackdrop_4dkq5_1",Fc="_modal_4dkq5_1",Wc="_overlay_4dkq5_1",qc="_drawer_4dkq5_1",Hc="_notification_4dkq5_1",Vc="_alert_4dkq5_1",Zc="_toast_4dkq5_1",Xc="_loading_4dkq5_1",Yc="_error_4dkq5_1",Gc="_critical_4dkq5_1",Uc="_segmentedControl_4dkq5_7",Kc="_segment_4dkq5_7",Jc="_activeSegmentIndicator_4dkq5_61",Qc="_selected_4dkq5_80",t1="_stretched_4dkq5_89",e1="_disabled_4dkq5_97",r1="_s_4dkq5_7",n1="_icon_4dkq5_110",o1="_label_4dkq5_114",a1="_m_4dkq5_1",s1="_l_4dkq5_114",$t={base:$c,content:Tc,background:Ec,button:Rc,link:Nc,input:Ic,suffix:Mc,prefix:Bc,tooltip:Ac,hint:Oc,dropdown:Pc,popover:zc,modalBackdrop:Dc,modal:Fc,overlay:Wc,drawer:qc,notification:Hc,alert:Vc,toast:Zc,loading:Xc,error:Yc,critical:Gc,segmentedControl:Uc,segment:Kc,activeSegmentIndicator:Jc,selected:Qc,stretched:t1,disabled:e1,s:r1,icon:n1,label:o1,m:a1,l:s1},Ze={s:U["typography-label-3-regular"],m:U["typography-label-2-regular"],l:U["typography-label-2-regular"]},i1=t=>{const{className:r,defaultValue:n,value:a,size:i="m",segments:s,stretched:l,disabled:c=!1,mode:_="label",onChange:f,...d}=t,g=b.useId(),[m,x]=b.useState(n||s[0].value),[w,v]=b.useState({width:0,left:0,height:0}),h=b.useRef(null);b.useEffect(()=>{a!=null&&x(a)},[a]),b.useLayoutEffect(()=>{y()},[m,s,i,l,_]);const y=()=>{if(!(h!=null&&h.current))return;const k=h.current.querySelector('[data-is-active-segment="true"]');k&&v({width:k.offsetWidth,left:k.offsetLeft,height:k.offsetHeight})},u=k=>{c||(x(k),f==null||f(k))};return(s==null?void 0:s.length)===0?null:o.jsxs("fieldset",{className:S.clsx($t.segmentedControl,$t[i],$t[_],{[$t.stretched]:l,[$t.disabled]:c},r),"data-testid":"segmented-control-container",ref:h,disabled:c,...d,children:[s==null?void 0:s.map(({label:k,value:L,containerProps:R={}},$)=>{const{className:N,...E}=R,I=()=>u(L),P=JSON.stringify(L),F=m===L;return o.jsxs(b.Fragment,{children:[o.jsx("input",{id:g+P,value:P,type:"radio",checked:F,readOnly:!0}),o.jsx("label",{"data-is-active-segment":F,className:S.clsx($t.segment,Ze[i],{[$t.selected]:F},N),htmlFor:g+P,"data-testid":"segmented-control-segment",onClick:I,...E,children:k})]},Jt(P)+$)}),o.jsx("div",{className:S.clsx($t.activeSegmentIndicator,Ze[i]),"data-testid":"segmented-control-segment-active-indicator",style:w})]})};exports.Alert=ua;exports.Avatar=Ue;exports.Badge=Qe;exports.Button=Kt;exports.Checkbox=Rs;exports.ConfigProvider=Qa;exports.Helper=Hi;exports.Image=wa;exports.List=vl;exports.Loader=pe;exports.Modal=Ko;exports.Placeholder=Je;exports.Radio=_l;exports.SegmentedControl=i1;exports.Tabs=nc;exports.Tag=bs;exports.TextArea=Wi;exports.TextInput=Ii;exports.Tooltip=jc;exports.Typography=Qt;exports.enUS=tr;exports.ruRU=ts;exports.useConfig=rr;exports.useLocale=ka;
|
|
34
|
+
*/var Ne;function Do(){return Ne||(Ne=1,function(t){(function(){var e={}.hasOwnProperty;function o(){for(var a="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(a=i(a,s(d)))}return a}function s(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return o.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var d in a)e.call(a,d)&&a[d]&&(l=i(l,d));return l}function i(a,l){return l?a?a+" "+l:a+l:a}t.exports?(o.default=o,t.exports=o):window.classNames=o})()}(ce)),ce.exports}var Fo=Do();const Rt=Nr(Fo),Ue=b.forwardRef(({size:t=24,variant:e="accent",className:o,"data-testid":s="loader",style:i,...a},l)=>{const d=Rt(Wt.loader,Wt[e],Wt[`size-${t}`],o);return n.jsx("svg",{ref:l,className:d,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":s,style:i,...a,children:n.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"})})}),Wo=b.forwardRef((t,e)=>{const{loading:o=!1,size:s=24,variant:i="accent",children:a,className:l,style:d,"data-testid":p,...f}=t,c=Rt(Wt.container,l);return n.jsxs("div",{ref:e,className:c,style:d,"data-testid":p,...f,children:[a,o&&n.jsx("div",{className:Wt.overlay,children:n.jsx(Ue,{size:s,variant:i,"data-testid":`${p}-spinner`})})]})}),pe=b.forwardRef((t,e)=>t.children?n.jsx(Wo,{ref:e,...t}):n.jsx(Ue,{ref:e,...t})),qo=({width:t=24,height:e=24,className:o="",color:s="currentColor",...i})=>n.jsx("svg",{className:o,width:t,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7",stroke:s,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),Ho={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},Vo=t=>Ho[t]||"typography-subtitle-2-semibold",Ae=({iconRight:t,iconLeft:e,children:o,postfix:s,subcaption:i,size:a,isAsButton:l})=>{const d=!!(i&&l&&a==="l"),p=!!(!o&&l&&e),f=l&&!!(d&&!o&&s||s&&!d);return n.jsxs(b.Fragment,{children:[d&&o&&n.jsxs(b.Fragment,{children:[n.jsx("span",{"data-testid":"button-label",className:S.clsx(D.label,D.labelText),children:o}),n.jsx("span",{"data-testid":"button-subcaption",className:S.clsx(D.subcaption,G["typography-label-4-regular"]),children:i})]}),!d&&o&&n.jsxs("span",{"data-testid":"button-label",className:D.label,children:[e&&n.jsx("span",{"data-testid":"button-left-icon",className:D.icon,children:e}),n.jsx("span",{className:S.clsx(D.labelText,{[D.isLink]:!l}),children:o}),!l&&t&&n.jsx("span",{"data-testid":"button-icon",className:S.clsx(D.icon,D.iconRight),children:t})]}),p&&n.jsx("span",{"data-testid":"button-icon",className:D.icon,children:l?e:t}),f&&n.jsx("div",{"data-testid":"button-right-group",className:D.rightGroup,children:n.jsx("span",{"data-testid":"button-postfix",className:S.clsx(D.postfix,G["typography-subtitle-2-semibold"]),children:s})})]})},fe=b.forwardRef((t,e)=>{const{mode:o="primary",size:s="m",buttonStyle:i=Ie(t)?"neutral":"accent",disabled:a=!1,className:l,children:d,tabIndex:p}=t,f=o==="tertiary",c=Ie(t),g=Dr(t),v=f&&"paddings"in t?t.paddings??!0:!0,m=c?t.subcaption:void 0,C=c?t.postfix:void 0,w=c?t.stretched:void 0,u=!(g&&t.size===void 0),x=g&&u?t.iconLeft:void 0,_=g&&u?t.iconRight:void 0,y=!!(c&&"loading"in t&&t.loading),j=c?a:a||y,R=!j&&!y,L=c?t.iconLeft:void 0,$=!!(!d&&(c&&L&&!C||g&&_)),T=typeof w=="object"?w.justify==="space-between":void 0,M=Vo(s),P=G[M],F=g?jo(t.size??"m"):void 0,q=F?G[F]:void 0,E=$o(j,o,i),O=j||y?-1:p,H=S.clsx(D.button,D[s],D[o],D[i],g&&q,c&&P,{[D.disabled]:j,[D.loading]:c&&"loading"in t&&t.loading,[D.stretched]:w,[D.spaceBetween]:T,[D.withSubcaption]:!!(m&&s==="l"&&d),[D.iconOnly]:$,[D.link]:g,[D.underline]:g&&"showUnderline"in t&&t.showUnderline,[D.noPaddings]:f&&c&&!v},l),V={iconRight:_,iconLeft:c?L:x,children:d,postfix:C,subcaption:m,size:s,isAsButton:c};if(Or(t)){const{href:Y,onClick:K,style:nt,target:rt,rel:J,"data-testid":at,...st}=t,vt=Me(st),xt=rt??(t.isExternal?"_blank":void 0);let it=J;if(xt==="_blank"){const ut=new Set((J??"").split(/\s+/).filter(Boolean));ut.add("noopener").add("noreferrer"),it=Array.from(ut).join(" ")}const jt=ut=>{if(!R){ut.preventDefault();return}K==null||K(ut)};return n.jsx("a",{ref:e,className:H,href:R?Y:void 0,tabIndex:O,onClick:jt,"data-testid":at,"aria-disabled":j||y,style:nt,target:xt,rel:it,...vt,children:n.jsx(Ae,{...V})})}if(zr(t)){const{type:Y="button",onClick:K,style:nt,"data-testid":rt,...J}=t,at=Me(J),st=s==="l"?24:16,vt=xt=>{R&&K&&K(xt)};return n.jsxs("button",{ref:e,type:Y,className:H,disabled:j,tabIndex:O,onClick:vt,"data-testid":rt,"aria-disabled":j||y,style:nt,...at,children:[n.jsx("div",{className:S.clsx(D.content,{[D.contentHidden]:y}),children:n.jsx(Ae,{...V})}),y&&n.jsx("div",{className:D.loaderWrapper,children:n.jsx(pe,{variant:E,"aria-hidden":"true","data-testid":"button-loader",size:st})})]})}return null});fe.displayName="Button";const Ge=b.forwardRef((t,e)=>{const{iconLeft:o,className:s,...i}=t,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:o??n.jsx(qo,{}),className:S.clsx(D.backButton,G["typography-subtitle-1-semibold"],s)};return n.jsx(fe,{ref:e,...l})});Ge.displayName="Button.Back";const Jt=Object.assign(fe,{Back:Ge}),Xo="_avatar_19ug4_18",Yo="_clickable_19ug4_40",Zo="_icon_19ug4_57",Uo="_disabled_19ug4_62",Go="_loading_19ug4_67",Ko="_image_19ug4_73",Jo="_name_19ug4_73",yt={avatar:Xo,clickable:Yo,icon:Zo,disabled:Uo,loading:Go,image:Ko,name:Jo,"variant-filled":"_variant-filled_19ug4_125","color-brand":"_color-brand_19ug4_130","color-red":"_color-red_19ug4_134","color-orange":"_color-orange_19ug4_138","color-yellow":"_color-yellow_19ug4_142","color-green":"_color-green_19ug4_146","color-blue":"_color-blue_19ug4_150","color-lightblue":"_color-lightblue_19ug4_154","color-purple":"_color-purple_19ug4_158","color-gray":"_color-gray_19ug4_162","color-contrast":"_color-contrast_19ug4_166","variant-light":"_variant-light_19ug4_172","variant-outline":"_variant-outline_19ug4_244"},Be=99;function Qo(t){return t<Be?`+${t}`:`${Be}+`}function Qt(t){const e=typeof t=="string"?t:JSON.stringify(t);let o=5381;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);o=(o<<5)+o+i}return o>>>0}const tn=(t,e,o)=>Math.min(Math.max(t,e),o),en=["red","orange","yellow","green","blue","lightblue","purple"];function rn(t,e=en){if(!t)return"gray";const o=Qt(t),s=Math.abs(o)%e.length;return e[s]}const Pe=2;function on(t){if(!t)return"";const e=t.trim().split(/\s+/);return e.length===1?t.slice(0,Pe).toUpperCase():e.map(o=>o[0]).slice(0,Pe).join("").toUpperCase()}const nn={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function an(t,e){return e==="circle"?t/2:nn[t]||12}const sn={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 ln(t){return sn[t]||"typography-subtitle-1-semibold"}const cn="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",dn="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",un="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",_n="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",pn={male:cn,female:dn,org:_n,neutral:un},Gt=b.forwardRef((t,e)=>{const{style:o,size:s=40,isLoading:i=!1,isDisabled:a=!1,shape:l="circle",variant:d="filled",placeholderType:p="neutral",name:f,imgSrc:c,imgAlt:g,icon:v,imgProps:m,colorScheme:C,className:w,"data-testid":u,...x}=t,{onClick:_,onPointerDown:y}=x,R=!a&&!i&&(!!_||!!y),[L,$]=b.useState(!1);b.useEffect(()=>{c&&$(!1)},[c]);const T=c&&!L?"image":v?"icon":f?"name":"placeholder",M=C||T==="name"&&rn(f)||"gray",P=ln(s),F=an(s,l),q=S.clsx(w,yt.avatar,yt[`variant-${d}`],yt[`color-${M}`],G[P],{[yt.disabled]:a,[yt.loading]:i,[yt.clickable]:R}),E={"--avatar-size":`${s}px`,"--avatar-border-radius":`${F}px`,...o},O={icon:()=>n.jsx("span",{"data-testid":"avatar-icon",title:g||void 0,role:"img",className:yt.icon,children:v==null?void 0:v({})}),name:()=>n.jsx("span",{role:"textbox","data-testid":"avatar-name",className:yt.name,title:g||void 0,children:on(f||"")}),placeholder:()=>n.jsx("img",{...m,"data-testid":"avatar-placeholder",className:yt.image,src:pn[p],alt:g||void 0}),image:()=>n.jsx("img",{"data-testid":"avatar-image",...m,className:yt.image,src:c||void 0,alt:g||void 0,onLoad:()=>$(!1),onError:V=>{var Y;$(!0),(Y=m==null?void 0:m.onError)==null||Y.call(m,V)}})},H=V=>{R&&(_==null||_(V))};return n.jsx("div",{ref:e,onClick:H,className:q,style:E,"data-testid":u,"aria-disabled":a||i,children:O[T](null)})}),fn="_avatarGroup_157g4_1",gn={avatarGroup:fn},hn=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),xn=t=>{if(!t)return null;let e=t;for(;e;){const s=window.getComputedStyle(e).backgroundColor;if(!hn(s))return s;e=e.parentElement}return null},ge=()=>{const t=b.useRef(null),[e,o]=b.useState(null);return b.useEffect(()=>{if(t.current){const s=xn(t.current);o(s)}},[]),{ref:t,bgColor:e}};function Oe(t,e,o){b.useEffect(()=>(window.addEventListener(t,e,o),()=>window.removeEventListener(t,e,o)),[t,e])}const ze={passive:!0};function bn(){const[t,e]=b.useState({width:0,height:0}),o=b.useCallback(()=>{e({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Oe("resize",o,ze),Oe("orientationchange",o,ze),b.useEffect(o,[]),t}function mn(t=768){const{width:e}=bn();return b.useMemo(()=>e<=t,[e,t])}const yn=2,vn=t=>{const{avatars:e=[],size:o=40,overlap:s=.3,shape:i="circle",overflowCount:a=0,overflowProps:l,cutoutBackground:d}=t,f=-(o*s)+yn,{ref:c,bgColor:g}=ge(),v=d||g||"#ffffff",m=Rt(gn.avatarGroup),C={"--avatar-cutout-bg":v};return e.length===0?null:n.jsxs("div",{className:m,ref:c,style:C,children:[e.map((w,u)=>{if(w.wrapper){const x=w.wrapper;return n.jsx("div",{style:{marginRight:f},children:n.jsx(x,{children:n.jsx(Gt,{size:o,shape:i,...w})})},Qt(w)+u)}return n.jsx("div",{style:{marginRight:f},children:n.jsx(Gt,{size:o,shape:i,...w})},Qt(w)+u)}),a>0&&n.jsx("div",{style:{marginRight:f},children:n.jsx(Gt,{size:o,shape:i,icon:()=>Qo(a),colorScheme:"gray",variant:"light",...l})})]})},Ke=Object.assign(Gt,{Group:vn}),wn="_overlay_1k1w9_6",Cn="_container_1k1w9_20",kn="_grabber_1k1w9_98",Dt={overlay:wn,container:Cn,"placement-default":"_placement-default_1k1w9_33","placement-bottom-left":"_placement-bottom-left_1k1w9_46","placement-bottom-right":"_placement-bottom-right_1k1w9_55","placement-center":"_placement-center_1k1w9_65","placement-left-drawer":"_placement-left-drawer_1k1w9_77","placement-right-drawer":"_placement-right-drawer_1k1w9_82","placement-bottom-sheet":"_placement-bottom-sheet_1k1w9_87",grabber:kn,"grabber-top":"_grabber-top_1k1w9_116","grabber-bottom":"_grabber-bottom_1k1w9_117","grabber-right":"_grabber-right_1k1w9_123","grabber-left":"_grabber-left_1k1w9_132"};function Sn(t){switch(t){case"default":return"top";case"bottom-sheet":return"bottom";case"center":default:return}}const Ln=t=>{switch(t){case"bottom-sheet":return{initial:{transform:"translateY(100%)"},open:{opacity:1,transform:"translateY(0)"},close:{transform:"translateY(100%)"}};case"default":return{initial:{transform:"translateY(-100%)"},open:{opacity:1,transform:"translateY(0)"},close:{transform:"translateY(-100%)"}};case"bottom-right":case"right-drawer":return{initial:{transform:"translateX(100%)"},open:{opacity:1,transform:"translateX(0)"},close:{transform:"translateX(100%)"}};case"bottom-left":case"left-drawer":return{initial:{transform:"translateX(-100%)"},open:{opacity:1,transform:"translateX(0)"},close:{transform:"translateX(-100%)"}};default:return{initial:{transform:"scale(0.95)"},open:{opacity:1,transform:"scale(1)"},close:{transform:"scale(0.95)"}}}};function jn({open:t,onOpenChange:e,placement:o="center",disableEscapeKey:s=!1}){const i=b.useCallback(C=>{e==null||e(C)},[e]),a=Sn(o),{context:l,refs:d}=St.useFloating({open:t,onOpenChange:i,placement:a}),p=Ln(o),{isMounted:f,styles:c}=St.useTransitionStyles(l,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:a??"center",position:"fixed",opacity:0},...p}),g=St.useDismiss(l,{escapeKey:!s,outsidePress:!1}),v=St.useRole(l,{role:"dialog"}),{getFloatingProps:m}=St.useInteractions([g,v]);return b.useMemo(()=>({isMounted:f,transitionStyles:c,context:l,refs:d,getFloatingProps:m}),[f,c,l,d,m])}const $n=80;function Tn({open:t,onOpenChange:e,placement:o="center",disableEscapeKey:s=!1,closeOnDrag:i}){const{getFloatingProps:a,transitionStyles:l,isMounted:d,context:p,refs:f}=jn({open:t,onOpenChange:e,placement:o,disableEscapeKey:s}),c=b.useRef({startX:0,startY:0,dragging:!1}),[g,v]=b.useState(0),m=i==null?void 0:i.direction,C=(i==null?void 0:i.threshold)??$n,w=m==="top"||m==="bottom",u=t&&!!m;b.useEffect(()=>{t||(c.current.dragging=!1,v(0))},[t]);const x=b.useCallback(L=>{u&&(c.current.dragging=!0,c.current.startX=L.clientX,c.current.startY=L.clientY,v(0))},[u]),_=b.useCallback(L=>{if(!c.current.dragging||!u)return;const $=L.clientX-c.current.startX,T=L.clientY-c.current.startY;let M;switch(m){case"bottom":M=Math.max(0,T);break;case"top":M=Math.max(0,-T);break;case"right":M=Math.max(0,$);break;case"left":M=Math.max(0,-$);break;default:M=w?T:$}v(M)},[u,m,w]),y=b.useCallback(L=>{var $,T;if(!(!c.current.dragging||!u)){c.current.dragging=!1;try{(T=($=L.currentTarget).hasPointerCapture)!=null&&T.call($,L.pointerId)&&L.currentTarget.releasePointerCapture(L.pointerId)}catch{}g>=C?e(!1):v(0)}},[g,C,e,u]),j=b.useMemo(()=>{if(!u)return l;if(c.current.dragging){const L={...l,transitionProperty:"none"};if(g>0){const $=m==="left"||m==="top"?-g:g;L.transform=w?`translateY(${$}px)`:`translateX(${$}px)`}return L}return l},[l,g,u,w,m]),R=b.useCallback(L=>a(u?{...L,onPointerDown:x,onPointerUp:y,onPointerMove:_,onPointerCancel:y}:L),[a,x,_,y,u]);return b.useMemo(()=>({isMounted:d,context:p,refs:f,transitionStyles:j,getFloatingProps:R}),[d,j,R,p,f])}const Je=b.forwardRef((t,e)=>{const{placement:o="default",open:s,onOpenChange:i,overlayProps:a,portalProps:l,focusManagement:d,children:p,disableOutsideClick:f=!1,disableEscapeKey:c=!1,disableOverlay:g=!1,closeOnDrag:v,className:m,style:C,"data-testid":w,...u}=t;s===void 0&&process.env.NODE_ENV!=="production"&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const x=Tn({open:s,onOpenChange:i,placement:o,disableEscapeKey:c,closeOnDrag:v}),{isMounted:_,transitionStyles:y}=x,j=St.useMergeRefs([e,x.refs.setFloating]),R=()=>{f||i(!1)};return _?n.jsxs(St.FloatingPortal,{...l,children:[!g&&n.jsx(St.FloatingOverlay,{onPointerDown:R,"data-testid":"dialog-overlay",className:S.clsx(Dt.overlay,a==null?void 0:a.className),lockScroll:(a==null?void 0:a.lockScroll)??!0,style:{opacity:y==null?void 0:y.opacity,transition:y==null?void 0:y.transition,...a==null?void 0:a.style}}),n.jsx(St.FloatingFocusManager,{context:x.context,...d,children:n.jsxs("section",{ref:j,"aria-modal":"true",role:"dialog",className:S.clsx(m,Dt.container,Dt[`placement-${o}`]),style:{...C,...y},"data-testid":w,...x.getFloatingProps(u),children:[p,v&&n.jsx("div",{className:S.clsx(Dt.grabber,Dt[`grabber-${v.direction}`]),role:"presentation","aria-hidden":"true","data-testid":w?`${w}-grabber`:void 0})]})})]}):null}),En="_container_uoevo_1",Rn="_header_uoevo_20",In="_withBorder_uoevo_54",Mn="_title_uoevo_38",Nn="_subTitle_uoevo_69",An="_leftActionsStack_uoevo_80",Bn="_rightActionsStack_uoevo_87",Pn="_content_uoevo_94",On="_footer_uoevo_102",mt={container:En,header:Rn,"title-actions-actions":"_title-actions-actions_uoevo_38","actions-title-actions":"_actions-title-actions_uoevo_46",withBorder:In,title:Mn,subTitle:Nn,leftActionsStack:An,rightActionsStack:Bn,content:Pn,footer:On},zn="_typography_zt7xg_1",Dn="_disabled_zt7xg_8",Fn="_primary_zt7xg_13",Wn="_secondary_zt7xg_18",qn="_tertiary_zt7xg_23",Hn="_accent_zt7xg_28",Vn="_positive_zt7xg_38",Xn="_negative_zt7xg_48",Yn="_warning_zt7xg_58",Zn="_special_zt7xg_68",Un="_contrast_zt7xg_78",Pt={typography:zn,disabled:Dn,primary:Fn,secondary:Wn,tertiary:qn,accent:Hn,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Vn,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Xn,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Yn,"warning-secondary":"_warning-secondary_zt7xg_63",special:Zn,"special-secondary":"_special-secondary_zt7xg_73",contrast:Un,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Gn={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},De=t=>{const e=Ze.forwardRef(({size:o=3,children:s,className:i,"data-testid":a,as:l,fontWeight:d="semibold",disabled:p=!1,typographyStyle:f="primary",...c},g)=>{const v=l||Gn[o],m=S.clsx(Pt.typography,G[`typography-${t}-${o}-${d}`],Pt[f],{[Pt.disabled]:p},i);return s?n.jsx(v,{ref:g,className:m,"data-testid":a,...c,children:s}):null});return e.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,e},Fe=t=>{const e=Ze.forwardRef(({size:o=3,children:s,className:i,"data-testid":a,as:l="p",fontWeight:d="regular",disabled:p=!1,typographyStyle:f="primary",...c},g)=>{const v=l,m=S.clsx(Pt.typography,G[`typography-${t}-${o}-${d}`],Pt[f],{[Pt.disabled]:p},i);return s?n.jsx(v,{ref:g,className:m,"data-testid":a,...c,children:s}):null});return e.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,e},te={Title:De("title"),Subtitle:De("subtitle"),Label:Fe("label"),Paragraph:Fe("paragraph")},Kn=t=>n.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:n.jsx("path",{d:"M14 2L2 14M2 2L14 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Jn=t=>n.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t,children:n.jsx("path",{d:"M11 2 L5 8 L11 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),{Paragraph:Qn,Title:ta}=te,ea={size:"xs",mode:"primary",buttonStyle:"gray"},We=t=>{const{props:e,wrapper:o}=t,s={...ea,...e};return o?n.jsx(o,{children:n.jsx(Jt,{...s})}):n.jsx(Jt,{...s})},ra=b.forwardRef((t,e)=>{const{open:o,onOpenChange:s,size:i,placement:a="default",rightActionsSlot:l=[],leftActionsSlot:d=[],closeButton:p={show:!0},backButton:f={show:!1},title:c,subTitle:g,children:v,footer:m,hideHeaderDivider:C=!1,hideFooterDivider:w=!1,classNames:u,styles:x,headerTemplate:_,"data-testid":y,...j}=t,R=a==="bottom-sheet"?"actions-title-actions":"title-actions-actions",L=a==="bottom-sheet"?{direction:"bottom",threshold:80}:t==null?void 0:t.closeOnDrag,$=()=>s(!1),T=!!(c||g||p.show||f.show||l.length||d.length),M=c?`${y||"modal"}-title`:void 0,P=g?`${y||"modal"}-subtitle`:void 0;return n.jsx(Je,{open:o,onOpenChange:s,placement:a,ref:e,style:{width:i,...x==null?void 0:x.dialog},closeOnDrag:L,className:u==null?void 0:u.dialog,...j,children:n.jsxs("div",{className:S.clsx(mt.container,u==null?void 0:u.container),style:{width:i,...x==null?void 0:x.container},"data-testid":y?`${y}-container`:void 0,children:[T&&n.jsxs("div",{"data-testid":y?`${y}-header`:void 0,className:S.clsx(mt.header,!C&&mt.withBorder,mt[_||R],u==null?void 0:u.header),style:x==null?void 0:x.header,children:[n.jsxs("div",{className:S.clsx(mt.leftActionsStack,u==null?void 0:u.leftActionsStack),style:x==null?void 0:x.leftActionsStack,children:[f.show&&n.jsx(We,{wrapper:f.wrapper,props:{iconLeft:n.jsx(Jn,{}),"aria-label":"Back",onClick:$,...f==null?void 0:f.props}}),...d]}),n.jsx("div",{id:M,className:S.clsx(mt.title,u==null?void 0:u.title),style:x==null?void 0:x.title,children:typeof c=="string"?n.jsx(ta,{size:5,children:c}):c}),n.jsxs("div",{className:S.clsx(mt.rightActionsStack,u==null?void 0:u.rightActionsStack),style:x==null?void 0:x.rightActionsStack,children:[...l,p.show&&n.jsx(We,{wrapper:p.wrapper,props:{iconLeft:n.jsx(Kn,{}),"aria-label":"Close modal",onClick:$,...p==null?void 0:p.props}})]}),g&&n.jsx("div",{id:P,className:S.clsx(mt.subTitle,u==null?void 0:u.subTitle),style:x==null?void 0:x.subTitle,children:typeof g=="string"?n.jsx(Qn,{size:2,typographyStyle:"secondary",children:g}):g})]}),n.jsx("div",{className:S.clsx(mt.content,u==null?void 0:u.content),style:{...x==null?void 0:x.content},"data-testid":y?`${y}-content`:void 0,children:v}),m&&n.jsx("div",{"data-testid":y?`${y}-footer`:void 0,className:S.clsx(mt.footer,!w&&mt.withBorder,u==null?void 0:u.footer),style:x==null?void 0:x.footer,children:m})]})})}),oa=()=>n.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9H12.01C12.5623 9 13.01 8.55228 13.01 8C13.01 7.44772 12.5623 7 12.01 7H12ZM13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V12Z"})}),na=()=>n.jsx("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{d:"M5.09436 10.2288C5.03221 9.82823 4.99996 9.41786 4.99996 9C4.99996 4.58172 8.60525 1 13.0526 1C17.4999 1 21.1052 4.58172 21.1052 9C21.1052 9.99807 20.9213 10.9535 20.5852 11.8345C20.5154 12.0175 20.4804 12.109 20.4646 12.1804C20.4489 12.2512 20.4428 12.301 20.4411 12.3735C20.4394 12.4466 20.4493 12.5272 20.4692 12.6883L20.8717 15.9585C20.9153 16.3125 20.9371 16.4895 20.8782 16.6182C20.8266 16.731 20.735 16.8205 20.6211 16.8695C20.4911 16.9254 20.3146 16.8995 19.9617 16.8478L16.7765 16.3809C16.6101 16.3565 16.527 16.3443 16.4512 16.3448C16.3763 16.3452 16.3245 16.3507 16.2511 16.3661C16.177 16.3817 16.0823 16.4172 15.893 16.4881C15.0097 16.819 14.0524 17 13.0526 17C12.6344 17 12.2237 16.9683 11.8227 16.9073M6.63158 21C9.59648 21 12 18.5376 12 15.5C12 12.4624 9.59648 10 6.63158 10C3.66668 10 1.26316 12.4624 1.26316 15.5C1.26316 16.1106 1.36028 16.6979 1.53955 17.2467C1.61533 17.4787 1.65322 17.5947 1.66566 17.6739C1.67864 17.7567 1.68091 17.8031 1.67608 17.8867C1.67145 17.9668 1.65141 18.0573 1.61134 18.2383L1 21L3.9948 20.591C4.15827 20.5687 4.24 20.5575 4.31137 20.558C4.38652 20.5585 4.42641 20.5626 4.50011 20.5773C4.5701 20.5912 4.67416 20.6279 4.88227 20.7014C5.43059 20.8949 6.01911 21 6.63158 21Z",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),aa=()=>n.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 11C0 4.92487 4.92487 0 11 0C17.0751 0 22 4.92487 22 11C22 17.0751 17.0751 22 11 22C4.92487 22 0 17.0751 0 11ZM16.2071 7.29289C16.5976 7.68342 16.5976 8.31658 16.2071 8.70711L10.2071 14.7071C9.81658 15.0976 9.18342 15.0976 8.79289 14.7071L5.79289 11.7071C5.40237 11.3166 5.40237 10.6834 5.79289 10.2929C6.18342 9.90237 6.81658 9.90237 7.20711 10.2929L9.5 12.5858L14.7929 7.29289C15.1834 6.90237 15.8166 6.90237 16.2071 7.29289Z"})}),sa=()=>n.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 0C4.92487 0 0 4.92487 0 11C0 17.0751 4.92487 22 11 22C17.0751 22 22 17.0751 22 11C22 4.92487 17.0751 0 11 0ZM12 7C12 6.44772 11.5523 6 11 6C10.4477 6 10 6.44772 10 7V11C10 11.5523 10.4477 12 11 12C11.5523 12 12 11.5523 12 11V7ZM11 14C10.4477 14 10 14.4477 10 15C10 15.5523 10.4477 16 11 16H11.01C11.5623 16 12.01 15.5523 12.01 15C12.01 14.4477 11.5623 14 11.01 14H11Z"})}),ia=()=>n.jsx("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.556 0.392576C9.99433 0.136202 10.4918 0 11 0C11.5082 0 12.0057 0.136202 12.444 0.392576C12.882 0.648777 13.2446 1.01526 13.5002 1.45305L13.503 1.45776L21.6098 15.5175L21.6175 15.5312C21.8676 15.9811 21.9986 16.4885 22 17.0032C22.0014 17.5179 21.8731 18.026 21.6255 18.4773C21.3778 18.9288 21.018 19.3098 20.5781 19.5786C20.1379 19.8477 19.6345 19.994 19.1182 19.9999L19.1068 20.0001L2.88178 20C2.36548 19.9941 1.86205 19.8477 1.4219 19.5786C0.982049 19.3098 0.62222 18.9288 0.374484 18.4773C0.126864 18.026 -0.00137604 17.5179 1.1135e-05 17.0032C0.00139837 16.4885 0.132377 15.9811 0.382473 15.5312L0.390218 15.5175L8.49974 1.45305C8.75537 1.01525 9.11797 0.648777 9.556 0.392576ZM12 7.06811C12 6.51582 11.5523 6.06811 11 6.06811C10.4477 6.06811 10 6.51582 10 7.06811V11.0454C10 11.5977 10.4477 12.0454 11 12.0454C11.5523 12.0454 12 11.5977 12 11.0454V7.06811ZM11 14.0227C10.4477 14.0227 10 14.4704 10 15.0227C10 15.575 10.4477 16.0227 11 16.0227H11.0096C11.5619 16.0227 12.0096 15.575 12.0096 15.0227C12.0096 14.4704 11.5619 14.0227 11.0096 14.0227H11Z"})}),Yt={avatar:{icon:null,colorScheme:"gray"},info:{icon:oa,colorScheme:"gray"},success:{icon:aa,colorScheme:"green"},warning:{icon:ia,colorScheme:"yellow"},error:{icon:sa,colorScheme:"red"},dialog:{icon:na,colorScheme:"blue"}},la="_container_dd9oq_1",ca={container:la},da="_container_p9e62_1",ua="_children_p9e62_11",_a="_iconSlot_p9e62_11",pa="_textBlock_p9e62_18",fa="_title_p9e62_25",ga="_subtitle_p9e62_25",At={container:da,children:ua,iconSlot:_a,textBlock:pa,title:fa,subtitle:ga},Zt={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function ha(t){return(Zt==null?void 0:Zt[t])||Zt.m}const Qe=t=>{const{iconSlot:e,title:o,subTitle:s,styles:i,classNames:a,children:l,"data-testid":d,size:p="m"}=t,f=ha(p);return n.jsxs("div",{className:S.clsx(At.container,a==null?void 0:a.container),style:i==null?void 0:i.container,"data-testid":d,children:[e&&n.jsx("div",{style:i==null?void 0:i.iconSlot,className:S.clsx(At.iconSlot,a==null?void 0:a.iconSlot),children:e}),(o||s)&&n.jsxs("div",{className:S.clsx(At.textBlock,a==null?void 0:a.textBlock),children:[o&&n.jsx("p",{style:i==null?void 0:i.title,className:S.clsx(At.title,G[f.title],a==null?void 0:a.title),children:o}),s&&n.jsx("p",{style:i==null?void 0:i.subTitle,className:S.clsx(At.subtitle,G[f.subtitle],a==null?void 0:a.subTitle),children:s})]}),l&&n.jsx("div",{className:S.clsx(At.children,a==null?void 0:a.children),children:l})]})},xa=t=>{const{open:e,onOpenChange:o,placement:s="default",variant:i="info",title:a,description:l,children:d,variantAvatarProps:p,"data-testid":f,styles:c,classNames:g,...v}=t,{icon:m,colorScheme:C}=(Yt==null?void 0:Yt[i])||Yt.info,u=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",...p}:{size:48,icon:m,colorScheme:C,variant:"light",style:{fontSize:24,outline:"none"},"data-testid":"alert-icon"};return n.jsx(Je,{open:e,onOpenChange:o,placement:s,"data-testid":f,className:S.clsx(ca.container,g==null?void 0:g.dialog),style:c==null?void 0:c.dialog,...v,children:n.jsx(Qe,{title:a,subTitle:l,classNames:g,styles:c,size:"m",iconSlot:n.jsx(Ke,{...u}),children:d})})},ba="_wrapper_1mnix_5",ma="_badge__container_1mnix_6",ya="_badge__content_1mnix_7",va="_interactive_1mnix_20",wa="_disabled_1mnix_21",Ca="_icon_1mnix_22",wt={wrapper:ba,badge__container:ma,badge__content:ya,interactive:va,disabled:wa,icon:Ca,"variant-filled":"_variant-filled_1mnix_98","color-brand":"_color-brand_1mnix_103","color-red":"_color-red_1mnix_111","color-orange":"_color-orange_1mnix_119","color-yellow":"_color-yellow_1mnix_127","color-green":"_color-green_1mnix_135","color-blue":"_color-blue_1mnix_143","color-lightblue":"_color-lightblue_1mnix_151","color-purple":"_color-purple_1mnix_159","color-gray":"_color-gray_1mnix_167","color-contrast":"_color-contrast_1mnix_175","variant-light":"_variant-light_1mnix_184","variant-outline":"_variant-outline_1mnix_260","variant-transparent":"_variant-transparent_1mnix_338","position-top-left":"_position-top-left_1mnix_409","position-top-right":"_position-top-right_1mnix_415","position-bottom-left":"_position-bottom-left_1mnix_421","position-bottom-right":"_position-bottom-right_1mnix_427","position-top-center":"_position-top-center_1mnix_433","position-bottom-center":"_position-bottom-center_1mnix_439","position-middle-left":"_position-middle-left_1mnix_445","position-middle-right":"_position-middle-right_1mnix_451","position-middle-center":"_position-middle-center_1mnix_457","position-top-left-inside":"_position-top-left-inside_1mnix_464","position-top-right-inside":"_position-top-right-inside_1mnix_470","position-bottom-left-inside":"_position-bottom-left-inside_1mnix_476","position-bottom-right-inside":"_position-bottom-right-inside_1mnix_482","position-top-center-inside":"_position-top-center-inside_1mnix_488","position-bottom-center-inside":"_position-bottom-center-inside_1mnix_494","position-middle-left-inside":"_position-middle-left-inside_1mnix_500","position-middle-right-inside":"_position-middle-right-inside_1mnix_506"},tr=b.forwardRef((t,e)=>{const{icon:o,children:s,variant:i="filled",label:a,isHidden:l=!1,colorScheme:d="red",size:p=20,position:f="top-right",positionOffset:c={x:0,y:0},cutoutBackground:g,isDisabled:v,className:m,"data-testid":C="badge",...w}=t,{onClick:u,onPointerDown:x}=w,{ref:_,bgColor:y}=ge(),j=g||y,L=!v&&(!!u||!!x),$=Rt(wt.badge__container,wt[`position-${f}`]),T=Rt(m,wt.badge__content,wt[`color-${d}`],wt[`variant-${i}`],{[wt.disabled]:v,[wt.icon]:!!o,[wt.interactive]:L}),M={"--badge-height":`${p}px`,"--badge-offset-x":`${c.x}px`,"--badge-offset-y":`${c.y}px`,...j&&{"--badge-cutout-bg":j},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},P=(o==null?void 0:o({}))||a,F=q=>{L&&(u==null||u(q))};return n.jsxs("div",{className:wt.wrapper,ref:_,"data-testid":C+"-wrapper",children:[s,!l&&n.jsx("span",{className:$,style:M,"data-testid":C+"-container",children:n.jsx("span",{...w,onClick:F,className:T,"data-testid":C+"-content",ref:e,"aria-disabled":v,children:P})})]})}),ka="_container_yn8yz_7",Sa="_loading_yn8yz_17",La="_error_yn8yz_18",ja="_image_yn8yz_22",Ft={container:ka,loading:Sa,error:La,image:ja},$a=({width:t=48,height:e=48,className:o,"data-testid":s})=>n.jsx("svg",{width:t,height:e,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,"data-testid":s,children:n.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"})}),Ta=b.forwardRef((t,e)=>{const{alt:o="",loading:s="lazy",src:i,isLoading:a=!1,style:l,className:d,containerProps:p,"data-testid":f="image",onError:c,onLoad:g,...v}=t,{className:m,...C}=p??{},[w,u]=b.useState("loading"),x=w==="error",_=(a||w==="loading")&&!x,y=w==="loaded"&&!a,j=S.clsx(Ft.container,{[Ft.loading]:_&&!y,[Ft.error]:x&&!y},m),R=S.clsx(Ft.image,{[Ft.loading]:_},d),L=b.useCallback(M=>{u("loaded"),g==null||g(M)},[g]),$=b.useCallback(M=>{u("error"),c==null||c(M)},[c]),T={loader:n.jsxs(b.Fragment,{children:[n.jsx(pe,{size:48,variant:"special","data-testid":`${f}-loader`}),n.jsx("img",{alt:o,src:i,onLoad:L,onError:$,style:{display:"none"}})]}),error:n.jsx($a,{"data-testid":`${f}-fallback`}),image:n.jsx("img",{ref:e,alt:o,"data-testid":f,loading:s,src:i,className:R,...v})};return b.useEffect(()=>{if(!i){u("error");return}u("loading")},[i]),n.jsxs("div",{className:j,"data-testid":`${f}-container`,style:l,...C,children:[_&&T.loader,x&&T.error,y&&T.image]})}),er={},rr=b.createContext({locale:er}),or=()=>{const t=b.useContext(rr);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Ea=()=>{const{locale:t}=or();return t},Ra={},Ia={},Ma={},Na={},Aa={},Ba="_base_1p0qo_50",Pa="_content_1p0qo_54",Oa="_background_1p0qo_58",za="_button_1p0qo_62",Da="_link_1p0qo_66",Fa="_input_1p0qo_70",Wa="_suffix_1p0qo_74",qa="_prefix_1p0qo_78",Ha="_tooltip_1p0qo_82",Va="_hint_1p0qo_86",Xa="_dropdown_1p0qo_90",Ya="_popover_1p0qo_94",Za="_modalBackdrop_1p0qo_98",Ua="_modal_1p0qo_98",Ga="_overlay_1p0qo_106",Ka="_drawer_1p0qo_110",Ja="_notification_1p0qo_114",Qa="_alert_1p0qo_118",ts="_toast_1p0qo_122",es="_loading_1p0qo_126",rs="_error_1p0qo_130",os="_critical_1p0qo_134",ns={base:Ba,content:Pa,background:Oa,button:za,link:Da,input:Fa,suffix:Wa,prefix:qa,tooltip:Ha,hint:Va,dropdown:Xa,popover:Ya,modalBackdrop:Za,modal:Ua,overlay:Ga,drawer:Ka,notification:Ja,alert:Qa,toast:ts,loading:es,error:rs,critical:os},as=({locale:t={},theme:e,children:o,className:s})=>(b.useLayoutEffect(()=>{if(e){const i=document.documentElement;Object.entries(e).forEach(([a,l])=>{i.style.setProperty(a,l)})}},[e]),n.jsxs(b.Fragment,{children:[n.jsx("div",{"data-testid":"ConfigProvider-component",className:S.clsx(Ra,Ia,Ma,Na,Aa,ns,G,s)}),n.jsx(rr.Provider,{value:{locale:t},children:o})]})),ss={},is="_tag_1llsi_1",ls="_label_1llsi_16",cs="_iconWrapper_1llsi_20",ds="_medium_1llsi_27",us="_large_1llsi_33",_s="_disabled_1llsi_43",ps="_neutral_1llsi_47",fs="_positive_1llsi_53",gs="_negative_1llsi_59",hs="_warning_1llsi_65",xs="_vivid_1llsi_71",bs="_special_1llsi_77",ms="_accent_1llsi_84",ys="_blue_1llsi_90",vs="_lovely_1llsi_96",ws="_dreamy_1llsi_102",Et={tag:is,label:ls,iconWrapper:cs,medium:ds,large:us,disabled:_s,neutral:ps,positive:fs,negative:gs,warning:hs,vivid:xs,special:bs,accent:ms,blue:ys,lovely:vs,dreamy:ws},Cs=b.forwardRef((t,e)=>{const{className:o,children:s,componentStyle:i="neutral",size:a="medium",disabled:l=!1,showLabel:d=!!s,slotStart:p,slotEnd:f,slotStartWrapperProps:c={},slotEndWrapperProps:g={},"data-testid":v,...m}=t,{className:C,...w}=c,{className:u,...x}=g;return n.jsxs("div",{className:S.clsx(Et.tag,Et[a],Et[i],{[Et.disabled]:l,[G["typography-label-3-regular"]]:a==="medium",[G["typography-subtitle-1-semibold"]]:a==="large"},o),"data-testid":v||"tag-component",ref:e,...m,children:[p&&n.jsx("span",{className:S.clsx([Et.iconWrapper,C]),...w,children:p}),d&&n.jsx("span",{className:S.clsx([Et.label]),children:s}),f&&n.jsx("span",{className:S.clsx([Et.iconWrapper,u]),...x,children:f})]})}),ks="_checkbox_gtrs6_43",Ss="_input_gtrs6_64",Ls="_icon_gtrs6_72",js="_container_gtrs6_92",$s="_error_gtrs6_143",Ts="_checkboxWrapper_gtrs6_156",Es="_medium_gtrs6_211",Rs="_large_gtrs6_216",Is="_label_gtrs6_258",kt={checkbox:ks,input:Ss,icon:Ls,container:js,error:$s,checkboxWrapper:Ts,medium:Es,large:Rs,label:Is},Ms=({width:t=12,height:e=9,className:o="",color:s="currentColor",...i})=>n.jsx("svg",{className:o,width:t,height:e,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),Ns=({width:t=12,height:e=2,className:o="",color:s="currentColor",...i})=>n.jsx("svg",{className:o,width:t,height:e,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),As={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Bs=({size:t,isChecked:e,isDisabled:o,indeterminate:s,dataTestId:i})=>{const{width:a,height:l}=As[t];return n.jsx("div",{className:kt.icon,"data-testid":`${i}-icon`,"data-checked":e,"data-disabled":o,"data-indeterminate":s,children:s?n.jsx(Ns,{width:a,height:l}):n.jsx(Ms,{width:a,height:l})})},Ps=b.forwardRef((t,e)=>{const{name:o,value:s,size:i="medium",indeterminate:a=!1,loading:l=!1,error:d,disabled:p=!1,containerClassName:f,className:c,containerStyle:g,style:v,children:m,clickableLabel:C=!0,tabIndex:w,onChange:u,onClick:x,"data-testid":_="checkbox"}=t,[y,j]=b.useState(!1),R=s??y,L=p||l,$=!!d,T=R||a,M=S.clsx(kt.container,kt[i],f),P=S.clsx(kt.checkbox,kt[i],{[kt.error]:$},c),F=O=>{L||(j(O.target.checked),u==null||u(O.target.checked,O))},q=O=>{if(O.key==="Enter"&&!L){O.preventDefault();const H=!T;j(H),u==null||u(H)}},E=O=>{C||O.preventDefault(),x==null||x(O)};return n.jsxs("label",{className:M,htmlFor:o,style:g,"data-testid":_,"data-clickable-label":C,children:[n.jsx("div",{className:kt.checkboxWrapper,children:n.jsxs("div",{tabIndex:w||0,className:P,style:v,onKeyDown:q,"aria-checked":T,"aria-disabled":L,"aria-invalid":$,"aria-describedby":d?`${o}-error`:void 0,"data-testid":`${_}-label`,children:[n.jsx("input",{ref:e,type:"checkbox",id:o,name:o,checked:T,disabled:L,className:kt.input,onChange:F,"aria-checked":T,"aria-invalid":$,"aria-describedby":d?`${o}-error`:void 0,"data-testid":`${_}-input`}),n.jsx(Bs,{name:o,size:i,isChecked:T,isDisabled:L,indeterminate:a,dataTestId:_})]})}),m&&n.jsx("span",{"data-testid":`${_}-label-text`,"data-clickable-label":C,className:kt.label,onClick:E,children:m})]})}),Os="_base_10oxr_1",zs="_content_10oxr_1",Ds="_background_10oxr_1",Fs="_button_10oxr_1",Ws="_link_10oxr_1",qs="_input_10oxr_96",Hs="_suffix_10oxr_1",Vs="_prefix_10oxr_1",Xs="_tooltip_10oxr_1",Ys="_hint_10oxr_794",Zs="_dropdown_10oxr_1",Us="_popover_10oxr_1",Gs="_modalBackdrop_10oxr_1",Ks="_modal_10oxr_1",Js="_overlay_10oxr_1",Qs="_drawer_10oxr_1",ti="_notification_10oxr_1",ei="_alert_10oxr_1",ri="_toast_10oxr_1",oi="_loading_10oxr_291",ni="_error_10oxr_252",ai="_critical_10oxr_1",si="_inputBase_10oxr_96",ii="_wrapper_10oxr_106",li="_gripHandle_10oxr_186",ci="_tabFocused_10oxr_259",di="_disabled_10oxr_284",ui="_label_10oxr_301",_i="_S_10oxr_315",pi="_M_10oxr_321",fi="_XL_10oxr_328",gi="_leftSection_10oxr_335",hi="_rightSection_10oxr_347",xi="_helper_10oxr_385",bi="_floatingLabel_10oxr_415",mi="_focused_10oxr_481",yi="_filled_10oxr_482",vi="_L_10oxr_522",wi="_characterLimit_10oxr_564",Ci="_textarea_10oxr_124",ki="_truncate_10oxr_707",A={base:Os,content:zs,background:Ds,button:Fs,link:Ws,input:qs,suffix:Hs,prefix:Vs,tooltip:Xs,hint:Ys,dropdown:Zs,popover:Us,modalBackdrop:Gs,modal:Ks,overlay:Js,drawer:Qs,notification:ti,alert:ei,toast:ri,loading:oi,error:ni,critical:ai,inputBase:si,wrapper:ii,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:li,tabFocused:ci,disabled:di,label:ui,S:_i,M:pi,XL:fi,leftSection:gi,rightSection:hi,helper:xi,floatingLabel:bi,focused:mi,filled:yi,L:vi,characterLimit:wi,textarea:Ci,"size-S":"_size-S_10oxr_646","size-M":"_size-M_10oxr_656","size-L":"_size-L_10oxr_662","size-XL":"_size-XL_10oxr_668","with-floating-label":"_with-floating-label_10oxr_675",truncate:ki,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},Si=({width:t=8,height:e=8,className:o,color:s="#AABBCA"})=>n.jsx("svg",{width:t,height:e,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:o,children:n.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:s})}),nr=({className:t="",style:e,size:o="md",color:s="currentColor",onClick:i,...a})=>{const d={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"20px",height:"20px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[o],...e};return n.jsx("svg",{className:t,style:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...a,children:n.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},Li=(t,e)=>{const o=b.useRef(null),s=b.useRef(null);return b.useEffect(()=>{const i=e==="textarea"?o.current:s.current;i&&i.value!==t&&(i.value=t||"")},[t,e]),{textareaRef:o,inputRef:s,currentRef:e==="textarea"?o:s}},ji=(t,e,o)=>{const s=()=>{if(!o.current||e!=="hug")return;const i=o.current.scrollTop;if(o.current.style.setProperty("height","auto","important"),!t)return;const a=o.current.scrollHeight+"px";o.current.style.setProperty("height",a,"important"),o.current.scrollTop=i;const l=o.current.closest(`.${A.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return b.useEffect(s,[t,e]),b.useEffect(()=>{e==="hug"&&o.current&&s()},[]),{resizeTextArea:s}},$i=(t,e,o,s)=>({handleGripMouseDown:b.useCallback(a=>{if(!t||e||o||!(s==="fixed"||!s))return;a.preventDefault(),a.stopPropagation();const l=a.currentTarget.closest(`.${A.wrapper}`);if(!l)return;const d=a.clientY,p=l.clientHeight,f=g=>{const v=g.clientY-d,m=Math.min(100,p),C=Math.max(m,p+v);l.style.height=`${C}px`},c=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",c)},[t,e,o,s])}),qe=30,Ti=b.forwardRef(({component:t="input",size:e="L",value:o="",placeholder:s,disabled:i=!1,loading:a=!1,onFocus:l,onBlur:d,onChange:p,onKeyDown:f,onKeyUp:c,maxLength:g,className:v,style:m,truncate:C=!1,shouldShowFloatingLabelClass:w=!1,"aria-invalid":u,"aria-errormessage":x,id:_,resize:y,...j},R)=>{const{textareaRef:L,inputRef:$,currentRef:T}=Li(o,t);if(ji(o,y,L),b.useImperativeHandle(R,()=>T.current,[T]),t==="textarea")return n.jsx("textarea",{ref:L,id:_,value:o,placeholder:s,disabled:i||a,onFocus:l,onBlur:d,onChange:p,onKeyDown:f,onKeyUp:c,maxLength:g,className:S.clsx(A.textarea,A[`size-${e}`],w&&A["with-floating-label"],v),style:m,"aria-invalid":u,"aria-errormessage":x,"aria-describedby":x?`${_}-error`:void 0,tabIndex:0,"data-resize":y,...j});if(t==="input")return n.jsx("input",{ref:$,id:_,value:o,placeholder:s,disabled:i||a,onFocus:l,onBlur:d,onChange:p,onKeyDown:f,onKeyUp:c,maxLength:g,className:S.clsx(A.input,A[`size-${e}`],w&&A["with-floating-label"],C&&A.truncate,v),style:m,"aria-invalid":u,"aria-errormessage":x,"aria-describedby":x?`${_}-error`:void 0,tabIndex:0,...j});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),ar=b.forwardRef(({children:t,size:e="L",error:o=!1,disabled:s=!1,loading:i=!1,className:a,wrapperProps:l,wrapperStyles:d,floatingLabelStyles:p,prefixStyles:f,suffixStyles:c,labelProps:g,helperProps:v,showLimit:m=!1,maxLength:C,hint:w,showHint:u=!1,showHintOnEmpty:x=!1,prefix:_,suffix:y,onSuffixClick:j,placeholder:R,showLabel:L=!0,labelClassName:$,hasValue:T=!1,helper:M,id:P,value:F="",resize:q,showGrip:E=!1,...O},H)=>{const V=b.useId(),Y=P||V,K=u&&w&&(T||x),nt=w&&w.length>qe?w.substring(0,qe)+"...":w,rt=S.clsx(A.wrapper,A[`size-${e}`],o&&A.error,s&&A.disabled,i&&A.loading,K&&A["has-hint"],y&&A["has-suffix"],m&&A["has-limit"],a),J=S.clsx(A.floatingLabel,A[e],T&&A.filled,$),{handleGripMouseDown:at}=$i(E,s,i,q);return n.jsxs("div",{ref:H,className:A.inputBase,"data-testid":"input-base-wrapper",...O,children:[n.jsxs("div",{className:rt,style:d,"data-resize":q,"data-show-grip":E?"true":"false",...l,children:[_&&n.jsx("label",{htmlFor:Y,className:A.leftSection,style:f,children:_}),y&&n.jsx("label",{htmlFor:Y,className:A.rightSection,style:c,onClick:j,children:y}),R&&L&&n.jsx("label",{htmlFor:Y,className:J,style:p,...g,children:R}),t,E&&!m&&(q==="fixed"||!q)&&n.jsx("div",{className:A.gripHandle,onMouseDown:at,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:n.jsx(Si,{})}),K&&n.jsx("div",{className:S.clsx(A.hint,T&&A.truncate),"data-disabled":s||i,children:nt}),m&&C&&n.jsxs("div",{className:A.characterLimit,children:[(F||"").length," из ",C]})]}),M&&n.jsx("div",{className:S.clsx(A.helper,o&&A.error,(s||i)&&A.disabled),...v,id:o?`${Y}-error`:void 0,children:M})]})});ar.displayName="InputWrapperComponent";const He=Object.assign(Ti,{Wrapper:ar}),sr=b.forwardRef(({component:t="input",size:e="L",className:o,error:s=!1,disabled:i=!1,loading:a=!1,placeholder:l,showLabel:d=!0,labelClassName:p,helper:f,prefix:c,suffix:g,id:v,onFocus:m,onBlur:C,onKeyDown:w,onSuffixClick:u,onChange:x,value:_="",wrapperProps:y,wrapperStyles:j,floatingLabelStyles:R,prefixStyles:L,suffixStyles:$,textareaStyles:T,labelProps:M,helperProps:P,showLimit:F=!1,maxLength:q,inputProps:E,hint:O,showHint:H=!1,showHintOnEmpty:V=!1,truncate:Y=!1,resize:K,showGrip:nt=!1,...rt},J)=>{const at=b.useId(),st=v||at,[vt,xt]=b.useState(_),it=_!==void 0?_:vt,jt=(it||"").length>0,ut=it||"",It=d&&(e==="XL"||t==="textarea")&&!c,ee=b.useCallback(Q=>{var tt;i||a||(m==null||m(),(tt=E==null?void 0:E.onFocus)==null||tt.call(E,Q))},[m,E,i,a]),Ht=b.useCallback(Q=>{var tt;if(Q.key==="Tab"){const bt=Q.target.closest(`.${A.wrapper}`);bt&&bt.classList.add(A.tabFocused)}(tt=E==null?void 0:E.onKeyUp)==null||tt.call(E,Q)},[E]),re=b.useCallback(Q=>{var bt;const tt=Q.target.closest(`.${A.wrapper}`);tt&&tt.classList.remove(A.tabFocused),C==null||C(),(bt=E==null?void 0:E.onBlur)==null||bt.call(E,Q)},[C,E]),oe=b.useCallback(Q=>{var bt;if(i||a)return;const tt=Q.target.value;xt(tt),x==null||x(tt,Q),(bt=E==null?void 0:E.onChange)==null||bt.call(E,Q)},[x,E,i,a]);return b.useEffect(()=>{xt(_||"")},[_]),n.jsx(He.Wrapper,{ref:J,size:e,error:s,disabled:i||a,loading:a,className:S.clsx(o,t==="textarea"&&A["textarea-wrapper"]),wrapperProps:y,wrapperStyles:j,floatingLabelStyles:R,prefixStyles:L,suffixStyles:$,labelProps:M,helperProps:P,showLimit:F,maxLength:q,hint:O,showHint:H,showHintOnEmpty:V,prefix:c,suffix:g,onSuffixClick:u,placeholder:l,showLabel:d,labelClassName:p,hasValue:jt,helper:f,id:st,value:ut,showGrip:nt,resize:K,...rt,children:n.jsx(He,{component:t,size:e,value:ut,placeholder:l,disabled:i,loading:a,onFocus:ee,onBlur:re,onChange:oe,onKeyDown:w,onKeyUp:Ht,maxLength:q,truncate:Y,"data-empty":!jt,shouldShowFloatingLabelClass:It,style:t==="textarea"?T:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${st}-error`:void 0,id:st,resize:K,...E})})}),X={S:"S",M:"M",L:"L",XL:"XL"},Ei=(t,e,o,s)=>{switch(t){case X.XL:return e&&o?"8px 16px 8px 16px":"16px 16px 16px 16px";case X.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case X.M:return"10px 12px 10px 12px";case X.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},Ri=t=>{switch(t){case X.XL:return"56px";case X.L:return"48px";case X.M:return"40px";case X.S:return"32px";default:return"48px"}},Ii=t=>{switch(t){case X.S:case X.M:case X.L:return 4;case X.XL:return 8;default:return 8}},Mi=t=>{switch(t){case X.S:case X.M:return 8;case X.L:case X.XL:return 12;default:return 12}},Ni=(t,e,o,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${o}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ai=(t,e,o,s)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${o}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Bi=(t,e,o,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${o}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Pi=(t,e,o,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${o}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Oi=(t,e,o,s)=>{const i=Ri(t),a=Ei(t,e,o,s),l=Mi(t),d=Ii(t);switch(t){case X.XL:return Ai(i,a,l,d);case X.L:return Bi(i,a,l,d);case X.M:return Pi(i,a,l,d);case X.S:return Ni(i,a,l,d);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},zi=b.forwardRef(({value:t="",onChange:e,type:o="text",placeholder:s,maxLength:i,minLength:a,autoComplete:l,autoFocus:d,size:p=X.L,inputProps:f,error:c,disabled:g,loading:v,helper:m,prefix:C,suffix:w,clearable:u=!1,id:x,showLabel:_=!0,onFocus:y,onBlur:j,onSuffixClick:R,onClear:L,className:$,truncate:T=!0,hint:M,showHint:P=!1,showHintOnEmpty:F=!1,wrapperProps:q,labelProps:E,helperProps:O,...H},V)=>{const Y=(t||"").length>0,K=p===X.XL,nt=!!C,rt=K&&_&&!C,J=u&&Y&&!(g||v),at=()=>{e==null||e(""),L==null||L()},st=()=>{J&&at(),R==null||R()},vt=J?n.jsx(nr,{size:p===X.S||p===X.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):w,xt={type:o,minLength:a,autoComplete:l,autoFocus:d,...f},it=Oi(p,rt,Y,nt);return n.jsx(sr,{size:p,error:c,disabled:g||v,loading:v,helper:m,prefix:C,suffix:vt,id:x,showLabel:rt,onFocus:y,onBlur:j,onSuffixClick:st,onChange:e,value:t,placeholder:s,className:$,wrapperStyles:it.wrapperStyles,floatingLabelStyles:it.floatingLabelStyles,prefixStyles:it.prefixStyles,suffixStyles:it.suffixStyles,wrapperProps:q,labelProps:E,helperProps:O,showLimit:!1,maxLength:i,inputProps:xt,hint:M,showHint:P,showHintOnEmpty:F,truncate:T,...H})}),pt={M:"M",L:"L"},Kt={M:"12px",L:"16px"},Di={M:"xs",L:"sm"},Ut={FILL:"fill",FIXED:"fixed"},de={M:"112px",L:"56px"},Bt={M:"48px",L:"22px"},Ct={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},Lt={M:48,L:56,XL:112},Fi=(t,e)=>{if(t===pt.M)return de.M;if(e)return`${e}px`;switch(t){case pt.L:return de.L;default:return de.L}},Wi=(t,e)=>{if(t===pt.M)return Bt.M;if(e)switch(e){case Lt.M:case Lt.L:return Bt.L;case Lt.XL:return Bt.M;default:return Bt.L}switch(t){case pt.L:return Bt.L;default:return Bt.L}},qi=(t,e,o)=>{if(t===pt.M)return Ct.M;if(e)switch(e){case Lt.M:return Ct.L_WITH_PREFIX;case Lt.L:return o?Ct.L_FLOATING_LABEL:Ct.L;case Lt.XL:return Ct.L;default:return Ct.L}switch(t){case pt.L:return o?Ct.L_FLOATING_LABEL:Ct.L;default:return Ct.L}},Hi=(t,e)=>{if(t===pt.M)return"M";if(e)switch(e){case Lt.M:return"M";case Lt.L:return"L";case Lt.XL:return"L";default:return"L"}return t},Vi=t=>Di[t],Xi=t=>Kt[t],Yi=(t,e,o,s)=>{const i=Fi(t,e),a=Wi(t,e),l=qi(t,e,o);return{wrapperStyles:{minHeight:i,...s===Ut.FILL&&{height:"100%"},...s===Ut.FIXED&&e&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:t===pt.M?Kt.M:Kt.L,transformOrigin:"left top",top:e===112&&o&&t===pt.L?Kt.L:void 0},suffixStyles:{right:Xi(t),top:e===48&&t===pt.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:a,...s===Ut.FILL&&{flex:1,minHeight:0},...s===Ut.FIXED&&e&&{height:a}}}},Zi=b.forwardRef(({value:t="",onChange:e,placeholder:o,maxLength:s,minLength:i,autoFocus:a,size:l=pt.L,textareaProps:d,error:p,disabled:f,loading:c,helper:g,suffix:v,clearable:m=!1,id:C,showLabel:w=!0,onFocus:u,onBlur:x,onClear:_,onKeyDown:y,className:j,rows:R=1,showLimit:L=!1,wrapperProps:$,labelProps:T,helperProps:M,showGrip:P,minHeight:F,resize:q,...E},O)=>{const H=(t||"").length>0,V=w&&!!o&&(l===pt.M||F!==48),Y=m&&H&&!(f||c),K=()=>{e==null||e(""),_==null||_()},nt=()=>{Y&&K()},rt=Y?n.jsx(nr,{size:Vi(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):v,J=Yi(l,F,V&&H,q),at=Hi(l,F),st={rows:R,minLength:i,autoFocus:a,resize:q,...d};return n.jsx(sr,{ref:O,component:"textarea",size:at,error:p,disabled:f||c,loading:c,onSuffixClick:nt,helper:g,suffix:rt,id:C,showLabel:V,onFocus:u,onBlur:x,onKeyDown:y,onChange:e,value:t||"",placeholder:o,className:j,"data-floating-label":V,wrapperStyles:J.wrapperStyles,floatingLabelStyles:J.floatingLabelStyles,suffixStyles:J.suffixStyles,textareaStyles:J.textareaStyles,wrapperProps:$,labelProps:T,helperProps:M,showLimit:L&&(F===112||l===pt.M),maxLength:s,inputProps:st,resize:q,showGrip:P,...E})}),Ui="_helper_1jq7j_16",ue={helper:Ui,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Gi=({title:t,error:e,className:o="",style:s,disabled:i=!1,"data-testid":a,"aria-label":l,"aria-describedby":d})=>{const p=!!e,f=S.clsx(ue.helper,p&&ue["helper--error"],i&&ue["helper--disabled"],o),c=i?t:e||t;return n.jsx("div",{className:f,style:s,"data-testid":a,"aria-label":l,"aria-describedby":d,children:n.jsx("p",{children:c})})},Ki="_radio_1n8zx_59",Ji="_checked_1n8zx_80",Qi="_error_1n8zx_85",tl="_disabled_1n8zx_94",el="_icon_1n8zx_130",rl="_small_1n8zx_138",ol="_medium_1n8zx_145",nl="_large_1n8zx_152",al="_label_1n8zx_159",sl="_container_1n8zx_185",il="_input_1n8zx_198",ll="_card_1n8zx_205",cl="_smallCard_1n8zx_211",dl="_mediumCard_1n8zx_215",ul="_largeCard_1n8zx_219",_t={default:"_default_1n8zx_53",radio:Ki,checked:Ji,error:Qi,disabled:tl,icon:el,small:rl,medium:ol,large:nl,label:al,container:sl,input:il,card:ll,smallCard:cl,mediumCard:dl,largeCard:ul},_l="radio-container-",pl="radio-label",ir=b.forwardRef((t,e)=>{const{name:o,id:s,value:i,size:a="large",loading:l=!1,error:d,disabled:p=!1,checked:f=!1,containerClassName:c,className:g,children:v,clickable:m="all",mode:C="default",tabIndex:w,style:u,containerStyle:x,onChange:_,"data-testid":y,...j}=t,R=!!d,L=p||l,$=m==="all",T=C==="card",M=_t[`${a}Card`],P=s??o,F=V=>{L||_==null||_(i,V)},q=V=>{V.key==="Enter"&&!L&&(V.preventDefault(),_==null||_(i))},E=V=>V.stopPropagation(),O=()=>n.jsxs("div",{className:S.clsx(_t.radio,_t[a],{[_t.checked]:f,[_t.disabled]:L,[_t.error]:R&&!L},g),style:u,tabIndex:w||1,"data-testid":`${_l}${P}`,children:[n.jsx("input",{"aria-errormessage":d,"aria-invalid":R,checked:f,className:_t.input,"data-testid":`radio-${P}`,disabled:L,id:P,name:o,ref:e,type:"radio",value:i,onChange:F,onClick:E}),n.jsx("svg",{"data-testid":`radio-icon-${P}`,viewBox:"0 0 8 8",className:_t.icon,children:n.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),H=()=>n.jsxs("label",{"aria-checked":f,"aria-disabled":L,"data-testid":$?y:pl,htmlFor:P,style:x,className:S.clsx(_t.label,{[S.clsx(_t.container,_t[C],c)]:$,[M]:$&&T}),onKeyDown:q,...j,children:[O(),$&&v]});return $?H():n.jsxs("div",{className:S.clsx(_t.container,_t[C],c,{[M]:T}),"data-testid":y,children:[H(),v]})}),fl="_group_tnviu_7",gl="_vertical_tnviu_12",hl="_horizontal_tnviu_16",Ve={group:fl,vertical:gl,horizontal:hl},xl=b.forwardRef((t,e)=>{const{id:o,name:s,value:i,options:a,className:l,radioClassName:d,disabled:p=!1,layout:f="vertical","data-testid":c,...g}=t;return n.jsx("div",{className:Rt(Ve.group,Ve[f],l),"data-testid":c??`radio-group-${s}`,id:o,ref:e,children:a.map(({label:v,value:m,disabled:C})=>{const w=`${s}-${String(m)}`,u=String(m)===String(i);return n.jsx(ir,{id:w,checked:u,"data-testid":w,disabled:p||C,name:s,value:m,className:d,...g,children:v},w)})})}),bl=Object.assign(ir,{Group:xl}),ml="_root_1jj3e_25",yl="_unordered_1jj3e_39",vl="_ordered_1jj3e_43",wl="_sm_1jj3e_48",Cl="_md_1jj3e_59",kl="_lg_1jj3e_70",Sl="_xl_1jj3e_81",_e={root:ml,unordered:yl,ordered:vl,sm:wl,md:Cl,lg:kl,xl:Sl},Ll=t=>{const{children:e,className:o,"data-testid":s="list-item"}=t;return n.jsx("li",{"data-testid":s,className:o,children:e})},jl=Object.assign(b.forwardRef((t,e)=>{const{variant:o="unordered",className:s,children:i,size:a="md","data-testid":l="list",...d}=t,p=o==="ordered"?"ol":"ul";return n.jsx(p,{"data-testid":l,ref:e,className:Rt(_e.root,_e[o],_e[a],s),...o==="ordered"&&d,children:i})}),{Item:Ll}),$l="_wrapper_1v8xn_5",Tl="_viewport_1v8xn_12",El="_mask_1v8xn_26",Rl="_maskLeft_1v8xn_37",Il="_maskRight_1v8xn_42",Ml="_visible_1v8xn_46",Nl="_control_1v8xn_51",Al="_xs_1v8xn_70",Bl="_sm_1v8xn_73",Pl="_md_1v8xn_76",Ol="_left_1v8xn_80",zl="_right_1v8xn_83",ct={wrapper:$l,viewport:Tl,mask:El,maskLeft:Rl,maskRight:Il,visible:Ml,control:Nl,xs:Al,sm:Bl,md:Pl,left:Ol,right:zl},Dl="white",Fl=({children:t,withControls:e=!0,className:o,size:s})=>{const i=b.useRef(null),[a,l]=b.useState(!1),[d,p]=b.useState(!1),{ref:f,bgColor:c}=ge(),g=f??{current:null},v=c??Dl,m=e&&a,C=e&&d,w=({direction:_})=>n.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:n.jsx("g",{transform:_==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:n.jsx("path",{fill:"currentColor",d:"M51.707,185.343c-2.741,0-5.493-1.044-7.593-3.149c-4.194-4.194-4.194-10.981,0-15.175 l74.352-74.347L44.114,18.32c-4.194-4.194-4.194-10.987,0-15.175c4.194-4.194,10.987-4.194,15.18,0l81.934,81.934 c4.194,4.194,4.194,10.987,0,15.175l-81.934,81.939C57.201,184.293,54.454,185.343,51.707,185.343z"})})}),u=()=>{const _=i.current;if(!_)return;const y=Math.round(_.scrollLeft),j=Math.round(_.scrollLeft+_.clientWidth),R=Math.round(_.scrollWidth);l(y>0),p(j<R)},x=_=>{const y=i.current;if(!y)return;const j=y.clientWidth;y.scrollBy({left:_==="left"?-j:j,behavior:"smooth"})};return b.useEffect(()=>{const _=i.current;if(!_)return;const y=j=>{Math.abs(j.deltaX)>Math.abs(j.deltaY)||_.scrollWidth>_.clientWidth&&(j.preventDefault(),_.scrollBy({left:j.deltaY,behavior:"auto"}))};return _.addEventListener("wheel",y,{passive:!1}),()=>_.removeEventListener("wheel",y)},[]),b.useEffect(()=>{u();const _=i.current;if(_)return _.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",u),()=>{_.removeEventListener("scroll",u),window.removeEventListener("resize",u)}},[]),n.jsxs("div",{ref:g,className:S.clsx(ct.wrapper,o),children:[m&&n.jsx("div",{className:S.clsx(ct.mask,ct.maskLeft,a&&ct.visible),style:{background:`linear-gradient(to right, ${v} 17%, transparent 80%)`}}),C&&n.jsx("div",{className:S.clsx(ct.mask,ct.maskRight,d&&ct.visible),style:{background:`linear-gradient(to left, ${v} 17%, transparent 80%)`}}),n.jsx("div",{ref:i,className:ct.viewport,children:t}),m&&n.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(ct.control,ct.left,ct[s]),onClick:()=>x("left"),children:n.jsx(w,{direction:"left"})}),C&&n.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(ct.control,ct.right,ct[s]),onClick:()=>x("right"),children:n.jsx(w,{direction:"right"})})]})},Wl="_tabBar_1ndpm_82",ql="_primary_1ndpm_88",Hl="_secondary_1ndpm_93",Vl="_tab_1ndpm_82",Xl="_md_1ndpm_125",Yl="_sm_1ndpm_129",Zl="_xs_1ndpm_133",Ul="_disabled_1ndpm_137",Gl="_selected_1ndpm_143",Kl="_tabLabel_1ndpm_222",Jl="_tabPrefix_1ndpm_234",Ql="_tabPostfix_1ndpm_270",et={tabBar:Wl,primary:ql,secondary:Hl,tab:Vl,md:Xl,sm:Yl,xs:Zl,disabled:Ul,selected:Gl,tabLabel:Kl,tabPrefix:Jl,tabPostfix:Ql},tc="md",ec=!1,rc=8,oc="top-right-inside",lr=b.createContext(null),cr=()=>{const t=b.useContext(lr);if(!t)throw new Error("useTabs должен использоваться внутри TabsProvider");return t},nc=({children:t,defaultActiveTab:e,activeTab:o,onChange:s})=>{const[i,a]=b.useState(e),l=o!==void 0,d=l?o:i,p=f=>{l||a(f),s&&s(f)};return n.jsx(lr.Provider,{value:{activeTab:d,setTab:p},children:t})},ac=({mode:t,item:e,isActive:o,showBadge:s,badgeProps:i,size:a,isDisabled:l,onSelectTab:d})=>{const{value:p,label:f,prefix:c,prefixWrapperProps:g={},postfix:v,postfixWrapperProps:m={}}=e,{className:C,...w}=g,{className:u,...x}=m,_={primary:G["typography-label-3-medium"],secondary:G["typography-label-3-regular"],prefix:G["typography-label-3-medium"],postfix:G["typography-label-3-medium"]},y={size:rc,position:oc,...i},j=S.clsx(et.tab,et[t],et[a],{[et.selected]:o,[et.disabled]:l}),R=S.clsx(et.tabPrefix,C,et[t],_.prefix,{[et.selected]:o,[et.disabled]:l}),L=S.clsx(et.tabPostfix,u,et[t],_.postfix,{[et.selected]:o,[et.disabled]:l}),$=S.clsx(et.tabLabel,et[t],_[t]),T=P=>{o||l||(d(p),P.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},M=n.jsxs("button",{className:j,role:"tab","aria-label":f,"aria-selected":o,"aria-disabled":l,"aria-controls":`tab-panel-${p}`,"data-testid":`tab-item-${p}`,onClick:T,children:[c&&n.jsx("span",{className:R,...w,"data-testid":`tab-prefix-${p}`,children:c}),n.jsx("span",{className:$,"data-testid":`tab-label-${p}`,children:f}),v&&n.jsx("span",{className:L,...x,"data-testid":`tab-postfix-${p}`,children:v})]});return s?n.jsx(tr,{...y,"data-testid":`tab-badge-${p}`,children:M}):M},sc=({mode:t,items:e,size:o=tc,isAllItemsDisabled:s=ec})=>{const{activeTab:i,setTab:a}=cr(),l=mn();return n.jsx(Fl,{size:o,withControls:l,children:n.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:S.clsx(et.tabBar,et[t]),children:e.map(d=>n.jsx(ac,{size:o,item:d,mode:t,showBadge:d.showBadge,badgeProps:d.badgeProps,isActive:i===d.value,isDisabled:s||d.isDisabled,onSelectTab:a},d.value))})})},ic=({tabValue:t,children:e,...o})=>n.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${t}`,"aria-labelledby":`tab-item-${t}`,...o,children:e}),lc=({children:t,...e})=>{const{activeTab:o}=cr(),s=Array.isArray(t)?t:[t],i=(a,l)=>b.isValidElement(a)&&typeof a.props=="object"&&a.props!==null&&l in a.props;return n.jsx("div",{"data-testid":"tab-content",...e,children:s.map(a=>i(a,"tabValue")&&String(a.props.tabValue)===o?a:null)})},cc={Provider:nc,Content:lc,Panel:ic,Bar:sc},dc="_root_1fbbw_34",uc="_open_1fbbw_51",_c="_xs_1fbbw_55",pc="_s_1fbbw_61",fc="_m_1fbbw_67",gc="_neutral_1fbbw_73",hc="_contrast_1fbbw_78",xc="_accent_1fbbw_84",bc="_typography_1fbbw_89",mc="_title_1fbbw_89",yc="_text_1fbbw_93",vc="_mediaWrapper_1fbbw_97",wc="_content_1fbbw_112",Cc="_closeButton_1fbbw_116",kc="_hasMedia_1fbbw_142",Sc="_buttonStack_1fbbw_148",dt={root:dc,open:uc,xs:_c,s:pc,m:fc,neutral:gc,contrast:hc,accent:xc,typography:bc,title:mc,text:yc,mediaWrapper:vc,content:wc,closeButton:Cc,hasMedia:kc,buttonStack:Sc},Lc=()=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:n.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),jc=()=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[n.jsx("path",{d:"M0.155001 0.000390053L23.845 0.000390053C21.4147 0.000390053 19.1162 1.10511 17.598 3.00283L13.5617 8.04822C12.7611 9.04903 11.2389 9.04903 10.4383 8.04822L6.40195 3.00283C4.88377 1.10511 2.58527 0.000390053 0.155001 0.000390053Z"}),n.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),gt={shiftX:64,adjustY:1},ht={adjustX:1,shiftY:!0},$c={left:{points:["cr","cl"],overflow:ht,offset:[-22,0]},right:{points:["cl","cr"],overflow:ht,offset:[22,0]},top:{points:["bc","tc"],overflow:gt,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:gt,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:gt,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:ht,offset:[-22,0]},topRight:{points:["br","tr"],overflow:gt,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:ht,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:gt,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:ht,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:gt,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:ht,offset:[-22,0]}},Tc={left:{points:["cr","cl"],overflow:ht,offset:[-16,0]},right:{points:["cl","cr"],overflow:ht,offset:[16,0]},top:{points:["bc","tc"],overflow:gt,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:gt,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:gt,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:ht,offset:[-16,0]},topRight:{points:["br","tr"],overflow:gt,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:ht,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:gt,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:ht,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:gt,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:ht,offset:[-16,0]}},Ec={neutral:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"}]},contrast:{1:[{mode:"primary",buttonStyle:"neutral",size:"s"}],2:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}],3:[{mode:"primary",buttonStyle:"accent",size:"s"},{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"}]},accent:{1:[{mode:"secondary",buttonStyle:"neutral",size:"s"}],2:[{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}],3:[{mode:"primary",buttonStyle:"neutral",size:"s"},{mode:"secondary",buttonStyle:"neutral",size:"s"},{mode:"primary",buttonStyle:"accent",size:"s"}]}},Rc=(t,e,o)=>({...e,...o??{},...t}),Ic=(t,e,o)=>{const s=tn(e,1,3),i=Ec[o][s];return i[Math.min(t,i.length-1)]},Xe=({text:t,title:e,media:o,variant:s="neutral",size:i,classNames:a={},onClose:l,buttons:d,buttonProps:p,showClose:f})=>{const c=["neutral","accent"].includes(s)?"contrast":"primary",g=i==="m",v=!!(e&&g),m=!!(o&&g),C=d&&!!d.length,w=!!(f&&g)||!f&&g&&!C,u=i==="xs"?4:3;return n.jsxs("div",{className:dt.content,children:[m&&n.jsx("div",{className:S.clsx(dt.mediaWrapper,a.mediaWrapper),children:o}),n.jsxs("div",{className:a.textWrapper,children:[v&&n.jsx(te.Subtitle,{className:S.clsx(dt.typography,dt.title,a.typography),size:1,as:"h3",typographyStyle:c,children:e}),n.jsx(te.Label,{className:S.clsx(dt.typography,dt.text,a.typography),typographyStyle:c,size:u,children:t})]}),w&&n.jsx("button",{type:"button",className:S.clsx(dt.closeButton,dt[s],a.closeButton,{[dt.hasMedia]:m}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:n.jsx(Lc,{})}),g&&C&&n.jsx("div",{className:dt.buttonStack,children:d.map((x,_)=>{const y=Ic(_,d.length,s),j=Rc(x,y,p),{closeOnClick:R,...L}=j,$=T=>{var M;(M=L.onClick)==null||M.call(L,T),R&&(l==null||l())};return n.jsx(Jt,{...L,onClick:$},_)})})]})},Mc=({customContent:t,children:e,placement:o="top",contentClassNames:s,mouseEnterDelay:i=0,mouseLeaveDelay:a=.1,showArrow:l=!0,showClose:d=!0,trigger:p="hover",variant:f="neutral",size:c="s",text:g,title:v,media:m,buttons:C,buttonProps:w,onClose:u,...x})=>{const[_,y]=b.useState(!1),[j,R]=b.useState(!1),L=c==="m"?$c:Tc,$=()=>{y(!1),u==null||u()},T=t||(c==="m"?n.jsx(Xe,{classNames:s,text:g,variant:f,size:c,onClose:$,title:v,media:m,showClose:d,buttons:C,buttonProps:w}):n.jsx(Xe,{classNames:s,text:g,variant:f,size:c,onClose:$}));return b.useEffect(()=>{if(_){const M=requestAnimationFrame(()=>R(!0));return()=>cancelAnimationFrame(M)}R(!1)},[_]),n.jsx(Ir,{visible:_,onVisibleChange:y,classNames:{root:S.clsx(dt.root,dt[f],dt[c],j&&dt.open),...x.classNames},placement:o,overlay:()=>T,trigger:p,mouseEnterDelay:i,mouseLeaveDelay:a,motion:{motionName:"tooltipMotion"},builtinPlacements:L,showArrow:l?{content:n.jsx(jc,{}),className:`tooltipArrow tooltipArrow-${c}`}:!1,destroyTooltipOnHide:!0,...x,children:e})},Nc="_base_4dkq5_1",Ac="_content_4dkq5_1",Bc="_background_4dkq5_1",Pc="_button_4dkq5_1",Oc="_link_4dkq5_1",zc="_input_4dkq5_1",Dc="_suffix_4dkq5_1",Fc="_prefix_4dkq5_1",Wc="_tooltip_4dkq5_1",qc="_hint_4dkq5_1",Hc="_dropdown_4dkq5_1",Vc="_popover_4dkq5_1",Xc="_modalBackdrop_4dkq5_1",Yc="_modal_4dkq5_1",Zc="_overlay_4dkq5_1",Uc="_drawer_4dkq5_1",Gc="_notification_4dkq5_1",Kc="_alert_4dkq5_1",Jc="_toast_4dkq5_1",Qc="_loading_4dkq5_1",t1="_error_4dkq5_1",e1="_critical_4dkq5_1",r1="_segmentedControl_4dkq5_7",o1="_segment_4dkq5_7",n1="_activeSegmentIndicator_4dkq5_61",a1="_selected_4dkq5_80",s1="_stretched_4dkq5_89",i1="_disabled_4dkq5_97",l1="_s_4dkq5_7",c1="_icon_4dkq5_110",d1="_label_4dkq5_114",u1="_m_4dkq5_1",_1="_l_4dkq5_114",$t={base:Nc,content:Ac,background:Bc,button:Pc,link:Oc,input:zc,suffix:Dc,prefix:Fc,tooltip:Wc,hint:qc,dropdown:Hc,popover:Vc,modalBackdrop:Xc,modal:Yc,overlay:Zc,drawer:Uc,notification:Gc,alert:Kc,toast:Jc,loading:Qc,error:t1,critical:e1,segmentedControl:r1,segment:o1,activeSegmentIndicator:n1,selected:a1,stretched:s1,disabled:i1,s:l1,icon:c1,label:d1,m:u1,l:_1},Ye={s:G["typography-label-3-regular"],m:G["typography-label-2-regular"],l:G["typography-label-2-regular"]},p1=t=>{const{className:e,defaultValue:o,value:s,size:i="m",segments:a,stretched:l,disabled:d=!1,mode:p="label",onChange:f,...c}=t,g=b.useId(),[v,m]=b.useState(o||a[0].value),[C,w]=b.useState({width:0,left:0,height:0}),u=b.useRef(null);b.useEffect(()=>{s!=null&&m(s)},[s]),b.useLayoutEffect(()=>{x()},[v,a,i,l,p]);const x=()=>{if(!(u!=null&&u.current))return;const y=u.current.querySelector('[data-is-active-segment="true"]');y&&w({width:y.offsetWidth,left:y.offsetLeft,height:y.offsetHeight})},_=y=>{d||(m(y),f==null||f(y))};return(a==null?void 0:a.length)===0?null:n.jsxs("fieldset",{className:S.clsx($t.segmentedControl,$t[i],$t[p],{[$t.stretched]:l,[$t.disabled]:d},e),"data-testid":"segmented-control-container",ref:u,disabled:d,...c,children:[a==null?void 0:a.map(({label:y,value:j,containerProps:R={}},L)=>{const{className:$,...T}=R,M=()=>_(j),P=JSON.stringify(j),F=v===j;return n.jsxs(b.Fragment,{children:[n.jsx("input",{id:g+P,value:P,type:"radio",checked:F,readOnly:!0}),n.jsx("label",{"data-is-active-segment":F,className:S.clsx($t.segment,Ye[i],{[$t.selected]:F},$),htmlFor:g+P,"data-testid":"segmented-control-segment",onClick:M,...T,children:y})]},Qt(P)+L)}),n.jsx("div",{className:S.clsx($t.activeSegmentIndicator,Ye[i]),"data-testid":"segmented-control-segment-active-indicator",style:C})]})};exports.Alert=xa;exports.Avatar=Ke;exports.Badge=tr;exports.Button=Jt;exports.Checkbox=Ps;exports.ConfigProvider=as;exports.Helper=Gi;exports.Image=Ta;exports.List=jl;exports.Loader=pe;exports.Modal=ra;exports.Placeholder=Qe;exports.Radio=bl;exports.SegmentedControl=p1;exports.Tabs=cc;exports.Tag=Cs;exports.TextArea=Zi;exports.TextInput=zi;exports.Tooltip=Mc;exports.Typography=te;exports.enUS=er;exports.ruRU=ss;exports.useConfig=or;exports.useLocale=Ea;
|