skillgrid 0.0.34-dev-40511-42085-40506-alert-placeholder-modal-fix.1213385 → 0.0.34-dev-40511-42085-40506-alert-placeholder-modal-fix.1217629
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/Dialog/Dialog.d.ts +12 -3
- package/dist/components/Dialog/Dialog.type.d.ts +27 -11
- 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 +18 -8
- package/dist/components/Modal/Modal.type.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +1823 -1687
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const h=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const h=require("react"),L=require("clsx"),kt=require("@floating-ui/react"),Ir=require("rc-tooltip");function Nr(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,s.get?s:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const Ye=Nr(h);function Mr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Vt={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 Br(){if(Te)return Ot;Te=1;var t=h,e=Symbol.for("react.element"),n=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(c,u,p){var _,g={},m=null,y=null;p!==void 0&&(m=""+p),u.key!==void 0&&(m=""+u.key),u.ref!==void 0&&(y=u.ref);for(_ in u)s.call(u,_)&&!a.hasOwnProperty(_)&&(g[_]=u[_]);if(c&&c.defaultProps)for(_ in u=c.defaultProps,u)g[_]===void 0&&(g[_]=u[_]);return{$$typeof:e,type:c,key:m,ref:y,props:g,_owner:i.current}}return Ot.Fragment=n,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
|
|
18
|
-
`+jt+
|
|
19
|
-
`),nt
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var Ee;function Pr(){return Ee||(Ee=1,process.env.NODE_ENV!=="production"&&function(){var t=h,e=Symbol.for("react.element"),n=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"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),v=Symbol.iterator,S="@@iterator";function b(r){if(r===null||typeof r!="object")return null;var f=v&&r[v]||r[S];return typeof f=="function"?f:null}var x=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function d(r){{for(var f=arguments.length,w=new Array(f>1?f-1:0),R=1;R<f;R++)w[R-1]=arguments[R];C("error",r,w)}}function C(r,f,w){{var R=x.ReactDebugCurrentFrame,z=R.getStackAddendum();z!==""&&(f+="%s",w=w.concat([z]));var F=w.map(function(P){return String(P)});F.unshift("Warning: "+f),Function.prototype.apply.call(console[r],console,F)}}var k=!1,T=!1,E=!1,j=!1,I=!1,N;N=Symbol.for("react.module.reference");function O(r){return!!(typeof r=="string"||typeof r=="function"||r===s||r===a||I||r===i||r===p||r===_||j||r===y||k||T||E||typeof r=="object"&&r!==null&&(r.$$typeof===m||r.$$typeof===g||r.$$typeof===l||r.$$typeof===c||r.$$typeof===u||r.$$typeof===N||r.getModuleId!==void 0))}function X(r,f,w){var R=r.displayName;if(R)return R;var z=f.displayName||f.name||"";return z!==""?w+"("+z+")":w}function W(r){return r.displayName||"Context"}function $(r){if(r==null)return null;if(typeof r.tag=="number"&&d("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 n:return"Portal";case a:return"Profiler";case i:return"StrictMode";case p:return"Suspense";case _:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case c:var f=r;return W(f)+".Consumer";case l:var w=r;return W(w._context)+".Provider";case u:return X(r,r.render,"ForwardRef");case g:var R=r.displayName||null;return R!==null?R:$(r.type)||"Memo";case m:{var z=r,F=z._payload,P=z._init;try{return $(P(F))}catch{return null}}}return null}var A=Object.assign,H=0,V,Y,K,ot,rt,J,at;function st(){}st.__reactDisabledLog=!0;function vt(){{if(H===0){V=console.log,Y=console.info,K=console.warn,ot=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:A({},r,{value:V}),info:A({},r,{value:Y}),warn:A({},r,{value:K}),error:A({},r,{value:ot}),group:A({},r,{value:rt}),groupCollapsed:A({},r,{value:J}),groupEnd:A({},r,{value:at})})}H<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var it=x.ReactCurrentDispatcher,jt;function _t(r,f,w){{if(jt===void 0)try{throw Error()}catch(z){var R=z.stack.trim().match(/\n( *(at )?)/);jt=R&&R[1]||""}return`
|
|
18
|
+
`+jt+r}}var Ft=!1,Rt;{var Qt=typeof WeakMap=="function"?WeakMap:Map;Rt=new Qt}function Wt(r,f){if(!r||Ft)return"";{var w=Rt.get(r);if(w!==void 0)return w}var R;Ft=!0;var z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var F;F=it.current,it.current=null,vt();try{if(f){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(lt){R=lt}Reflect.construct(r,[],P)}else{try{P.call()}catch(lt){R=lt}r.call(P.prototype)}}else{try{throw Error()}catch(lt){R=lt}r()}}catch(lt){if(lt&&R&&typeof lt.stack=="string"){for(var M=lt.stack.split(`
|
|
19
|
+
`),nt=R.stack.split(`
|
|
20
|
+
`),Z=M.length-1,U=nt.length-1;Z>=1&&U>=0&&M[Z]!==nt[U];)U--;for(;Z>=1&&U>=0;Z--,U--)if(M[Z]!==nt[U]){if(Z!==1||U!==1)do if(Z--,U--,U<0||M[Z]!==nt[U]){var gt=`
|
|
21
|
+
`+M[Z].replace(" at new "," at ");return r.displayName&>.includes("<anonymous>")&&(gt=gt.replace("<anonymous>",r.displayName)),typeof r=="function"&&Rt.set(r,gt),gt}while(Z>=1&&U>=0);break}}}finally{Ft=!1,it.current=F,xt(),Error.prepareStackTrace=z}var Nt=r?r.displayName||r.name:"",Tt=Nt?_t(Nt):"";return typeof r=="function"&&Rt.set(r,Tt),Tt}function te(r,f,w){return Wt(r,!1)}function ee(r){var f=r.prototype;return!!(f&&f.isReactComponent)}function Q(r,f,w){if(r==null)return"";if(typeof r=="function")return Wt(r,ee(r));if(typeof r=="string")return _t(r);switch(r){case p:return _t("Suspense");case _:return _t("SuspenseList")}if(typeof r=="object")switch(r.$$typeof){case u:return te(r.render);case g:return Q(r.type,f,w);case m:{var R=r,z=R._payload,F=R._init;try{return Q(F(z),f,w)}catch{}}}return""}var tt=Object.prototype.hasOwnProperty,mt={},he=x.ReactDebugCurrentFrame;function Ht(r){if(r){var f=r._owner,w=Q(r.type,r._source,f?f.type:null);he.setExtraStackFrame(w)}else he.setExtraStackFrame(null)}function dr(r,f,w,R,z){{var F=Function.call.bind(tt);for(var P in r)if(F(r,P)){var M=void 0;try{if(typeof r[P]!="function"){var nt=Error((R||"React class")+": "+w+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw nt.name="Invariant Violation",nt}M=r[P](f,P,R,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Z){M=Z}M&&!(M instanceof Error)&&(Ht(z),d("%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).",R||"React class",w,P,typeof M),Ht(null)),M instanceof Error&&!(M.message in mt)&&(mt[M.message]=!0,Ht(z),d("Failed %s type: %s",w,M.message),Ht(null))}}}var ur=Array.isArray;function re(r){return ur(r)}function _r(r){{var f=typeof Symbol=="function"&&Symbol.toStringTag,w=f&&r[Symbol.toStringTag]||r.constructor.name||"Object";return w}}function pr(r){try{return be(r),!1}catch{return!0}}function be(r){return""+r}function xe(r){if(pr(r))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",_r(r)),be(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 f=Object.getOwnPropertyDescriptor(r,"ref").get;if(f&&f.isReactWarning)return!1}return r.ref!==void 0}function hr(r){if(tt.call(r,"key")){var f=Object.getOwnPropertyDescriptor(r,"key").get;if(f&&f.isReactWarning)return!1}return r.key!==void 0}function br(r,f){typeof r.ref=="string"&&me.current}function xr(r,f){{var w=function(){ye||(ye=!0,d("%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)",f))};w.isReactWarning=!0,Object.defineProperty(r,"key",{get:w,configurable:!0})}}function mr(r,f){{var w=function(){ve||(ve=!0,d("%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)",f))};w.isReactWarning=!0,Object.defineProperty(r,"ref",{get:w,configurable:!0})}}var yr=function(r,f,w,R,z,F,P){var M={$$typeof:e,type:r,key:f,ref:w,props:P,_owner:F};return M._store={},Object.defineProperty(M._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(M,"_self",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.defineProperty(M,"_source",{configurable:!1,enumerable:!1,writable:!1,value:z}),Object.freeze&&(Object.freeze(M.props),Object.freeze(M)),M};function vr(r,f,w,R,z){{var F,P={},M=null,nt=null;w!==void 0&&(xe(w),M=""+w),hr(f)&&(xe(f.key),M=""+f.key),gr(f)&&(nt=f.ref,br(f,z));for(F in f)tt.call(f,F)&&!fr.hasOwnProperty(F)&&(P[F]=f[F]);if(r&&r.defaultProps){var Z=r.defaultProps;for(F in Z)P[F]===void 0&&(P[F]=Z[F])}if(M||nt){var U=typeof r=="function"?r.displayName||r.name||"Unknown":r;M&&xr(P,U),nt&&mr(P,U)}return yr(r,M,nt,z,R,me.current,P)}}var ne=x.ReactCurrentOwner,Ce=x.ReactDebugCurrentFrame;function It(r){if(r){var f=r._owner,w=Q(r.type,r._source,f?f.type:null);Ce.setExtraStackFrame(w)}else Ce.setExtraStackFrame(null)}var oe;oe=!1;function ae(r){return typeof r=="object"&&r!==null&&r.$$typeof===e}function we(){{if(ne.current){var r=$(ne.current.type);if(r)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+r+"`."}return""}}function Cr(r){return""}var Se={};function wr(r){{var f=we();if(!f){var w=typeof r=="string"?r:r.displayName||r.name;w&&(f=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+
|
|
25
|
+
Check the top-level render call using <`+w+">.")}return f}}function ke(r,f){{if(!r._store||r._store.validated||r.key!=null)return;r._store.validated=!0;var w=wr(f);if(Se[w])return;Se[w]=!0;var R="";r&&r._owner&&r._owner!==ne.current&&(R=" It was passed a child from "+$(r._owner.type)+"."),It(r),d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,R),It(null)}}function Le(r,f){{if(typeof r!="object")return;if(re(r))for(var w=0;w<r.length;w++){var R=r[w];ae(R)&&ke(R,f)}else if(ae(r))r._store&&(r._store.validated=!0);else if(r){var z=b(r);if(typeof z=="function"&&z!==r.entries)for(var F=z.call(r),P;!(P=F.next()).done;)ae(P.value)&&ke(P.value,f)}}}function Sr(r){{var f=r.type;if(f==null||typeof f=="string")return;var w;if(typeof f=="function")w=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===u||f.$$typeof===g))w=f.propTypes;else return;if(w){var R=$(f);dr(w,r.props,"prop",R,r)}else if(f.PropTypes!==void 0&&!oe){oe=!0;var z=$(f);d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",z||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function kr(r){{for(var f=Object.keys(r.props),w=0;w<f.length;w++){var R=f[w];if(R!=="children"&&R!=="key"){It(r),d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",R),It(null);break}}r.ref!==null&&(It(r),d("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}var je={};function $e(r,f,w,R,z,F){{var P=O(r);if(!P){var M="";(r===void 0||typeof r=="object"&&r!==null&&Object.keys(r).length===0)&&(M+=" 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 nt=Cr();nt?M+=nt:M+=we();var Z;r===null?Z="null":re(r)?Z="array":r!==void 0&&r.$$typeof===e?(Z="<"+($(r.type)||"Unknown")+" />",M=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof r,d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,M)}var U=vr(r,f,w,z,F);if(U==null)return U;if(P){var gt=f.children;if(gt!==void 0)if(R)if(re(gt)){for(var Nt=0;Nt<gt.length;Nt++)Le(gt[Nt],r);Object.freeze&&Object.freeze(gt)}else d("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(gt,r)}if(tt.call(f,"key")){var Tt=$(r),lt=Object.keys(f).filter(function(Rr){return Rr!=="key"}),se=lt.length>0?"{key: someKey, "+lt.join(": ..., ")+": ...}":"{key: someKey}";if(!je[Tt+se]){var Er=lt.length>0?"{"+lt.join(": ..., ")+": ...}":"{}";d(`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} />`,se,Tt,
|
|
30
|
+
<%s key={someKey} {...props} />`,se,Tt,Er,Tt),je[Tt+se]=!0}}return r===s?kr(U):Sr(U),U}}function Lr(r,f,w){return $e(r,f,w,!0)}function jr(r,f,w){return $e(r,f,w,!1)}var $r=jr,Tr=Lr;zt.Fragment=s,zt.jsx=$r,zt.jsxs=Tr}()),zt}var Re;function Ar(){return Re||(Re=1,process.env.NODE_ENV==="production"?Vt.exports=Br():Vt.exports=Pr()),Vt.exports}var o=Ar();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",Hr="_disabled_11kkg_27",Vr="_loading_11kkg_27",qr="_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",tn="_spaceBetween_11kkg_119",en="_rightGroup_11kkg_119",rn="_withSubcaption_11kkg_127",nn="_label_11kkg_139",on="_icon_11kkg_148",an="_labelText_11kkg_153",sn="_isLink_11kkg_159",ln="_iconOnly_11kkg_174",cn="_stretched_11kkg_190",dn="_postfix_11kkg_195",un="_underline_11kkg_225",_n="_backButton_11kkg_428",pn="_warning_11kkg_1159",fn="_subcaption_11kkg_1389",gn="_content_11kkg_1394",hn="_contentHidden_11kkg_1398",bn="_loaderWrapper_11kkg_1402",xn="_l_11kkg_22",mn="_m_11kkg_1441",yn="_s_11kkg_80",vn="_xs_11kkg_1484",Cn="_noPaddings_11kkg_1506",wn="_iconRight_11kkg_1542",Sn="_spin_11kkg_1",D={button:Fr,link:Wr,disabled:Hr,loading:Vr,neutral:qr,accent:Xr,positive:Yr,negative:Zr,contrast:Ur,primary:Gr,secondary:Kr,tertiary:Jr,gray:Qr,spaceBetween:tn,rightGroup:en,withSubcaption:rn,label:nn,icon:on,labelText:an,isLink:sn,iconOnly:ln,stretched:cn,postfix:dn,underline:un,backButton:_n,warning:pn,subcaption:fn,content:gn,contentHidden:hn,loaderWrapper:bn,l:xn,m:mn,s:yn,xs:vn,noPaddings:Cn,iconRight:wn,spin:Sn},kn=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal","asBackButton","paddings"]),Ne=t=>{const e={};for(const n in t)kn.has(n)||(e[n]=t[n]);return e},Ln={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function jn(t){return Ln[t]||"typography-label-2-regular"}const $n=(t,e,n)=>t?"gray":e==="primary"?{contrast:"neutral",gray:"gray"}[n]??"contrast":n==="warning"?"neutral":n,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"},Tn="_loader_isv17_1",En="_spin_isv17_1",Rn="_accent_isv17_19",In="_neutral_isv17_23",Nn="_positive_isv17_27",Mn="_negative_isv17_31",Bn="_gray_isv17_35",Pn="_special_isv17_39",An="_contrast_isv17_43",On="_container_isv17_47",zn="_overlay_isv17_57",Dt={loader:Tn,spin:En,accent:Rn,neutral:In,positive:Nn,negative:Mn,gray:Bn,special:Pn,contrast:An,container:On,overlay:zn,"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 ie={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 Pn(){return Me||(Me=1,function(t){(function(){var r={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=i(a,s(c)))}return a}function s(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)r.call(a,c)&&a[c]&&(l=i(l,c));return l}function i(a,l){return l?a?a+" "+l:a+l:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(ie)),ie.exports}var Dn=Pn();const $t=Nr(Dn),Ye=h.forwardRef(({size:t=24,variant:r="accent",className:n,"data-testid":s="loader",style:i,...a},l)=>{const c=$t(Dt.loader,Dt[r],Dt[`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":s,style:i,...a,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=h.forwardRef((t,r)=>{const{loading:n=!1,size:s=24,variant:i="accent",children:a,className:l,style:c,"data-testid":u,...f}=t,d=$t(Dt.container,l);return o.jsxs("div",{ref:r,className:d,style:c,"data-testid":u,...f,children:[a,n&&o.jsx("div",{className:Dt.overlay,children:o.jsx(Ye,{size:s,variant:i,"data-testid":`${u}-spinner`})})]})}),_e=h.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"})}),Hn=({width:t=24,height:r=24,className:n="",color:s="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:s,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),qn={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},Vn=t=>qn[t]||"typography-subtitle-2-semibold",ze=({iconRight:t,iconLeft:r,children:n,postfix:s,subcaption:i,size:a,isAsButton:l})=>{const c=!!(i&&l&&a==="l"),u=!!(!n&&l&&r),f=l&&!!(c&&!n&&s||s&&!c);return o.jsxs(h.Fragment,{children:[c&&n&&o.jsxs(h.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:k.clsx(P.label,P.labelText),children:n}),o.jsx("span",{"data-testid":"button-subcaption",className:k.clsx(P.subcaption,U["typography-label-4-regular"]),children:i})]}),!c&&n&&o.jsxs("span",{"data-testid":"button-label",className:P.label,children:[r&&o.jsx("span",{"data-testid":"button-left-icon",className:P.icon,children:r}),o.jsx("span",{className:k.clsx(P.labelText,{[P.isLink]:!l}),children:n}),!l&&t&&o.jsx("span",{"data-testid":"button-icon",className:k.clsx(P.icon,P.iconRight),children:t})]}),u&&o.jsx("span",{"data-testid":"button-icon",className:P.icon,children:l?r:t}),f&&o.jsx("div",{"data-testid":"button-right-group",className:P.rightGroup,children:o.jsx("span",{"data-testid":"button-postfix",className:k.clsx(P.postfix,U["typography-subtitle-2-semibold"]),children:s})})]})},fe=h.forwardRef((t,r)=>{const{mode:n="primary",size:s="m",buttonStyle:i=Ie(t)?"neutral":"accent",disabled:a=!1,className:l,children:c,tabIndex:u}=t,f=n==="tertiary",d=Ie(t),g=Pr(t),m=f&&"paddings"in t?t.paddings??!0:!0,y=d?t.subcaption:void 0,v=d?t.postfix:void 0,S=d?t.stretched:void 0,x=!(g&&t.size===void 0),b=g&&x?t.iconLeft:void 0,p=g&&x?t.iconRight:void 0,w=!!(d&&"loading"in t&&t.loading),L=d?a:a||w,E=!L&&!w,T=d?t.iconLeft:void 0,R=!!(!c&&(d&&T&&!v||g&&p)),B=typeof S=="object"?S.justify==="space-between":void 0,O=Vn(s),W=U[O],Z=g?Ln(t.size??"m"):void 0,F=Z?U[Z]:void 0,j=jn(L,n,i),z=L||w?-1:u,H=k.clsx(P.button,P[s],P[n],P[i],g&&F,d&&W,{[P.disabled]:L,[P.loading]:d&&"loading"in t&&t.loading,[P.stretched]:S,[P.spaceBetween]:B,[P.withSubcaption]:!!(y&&s==="l"&&c),[P.iconOnly]:R,[P.link]:g,[P.underline]:g&&"showUnderline"in t&&t.showUnderline,[P.noPaddings]:f&&d&&!m},l),q={iconRight:p,iconLeft:d?T:b,children:c,postfix:v,subcaption:y,size:s,isAsButton:d};if(Or(t)){const{href:X,onClick:K,style:ot,target:rt,rel:J,"data-testid":at,...st}=t,vt=Ne(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(!E){ut.preventDefault();return}K==null||K(ut)};return o.jsx("a",{ref:r,className:H,href:E?X:void 0,tabIndex:z,onClick:jt,"data-testid":at,"aria-disabled":L||w,style:ot,target:xt,rel:it,...vt,children:o.jsx(ze,{...q})})}if(Ar(t)){const{type:X="button",onClick:K,style:ot,"data-testid":rt,...J}=t,at=Ne(J),st=s==="l"?24:16,vt=xt=>{E&&K&&K(xt)};return o.jsxs("button",{ref:r,type:X,className:H,disabled:L,tabIndex:z,onClick:vt,"data-testid":rt,"aria-disabled":L||w,style:ot,...at,children:[o.jsx("div",{className:k.clsx(P.content,{[P.contentHidden]:w}),children:o.jsx(ze,{...q})}),w&&o.jsx("div",{className:P.loaderWrapper,children:o.jsx(_e,{variant:j,"aria-hidden":"true","data-testid":"button-loader",size:st})})]})}return null});fe.displayName="Button";const Ge=h.forwardRef((t,r)=>{const{iconLeft:n,className:s,...i}=t,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:n??o.jsx(Hn,{}),className:k.clsx(P.backButton,U["typography-subtitle-1-semibold"],s)};return o.jsx(fe,{ref:r,...l})});Ge.displayName="Button.Back";const Ut=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"},Be=99;function Qn(t){return t<Be?`+${t}`:`${Be}+`}function Kt(t){const r=typeof t=="string"?t:JSON.stringify(t);let n=5381;for(let s=0;s<r.length;s++){const i=r.charCodeAt(s);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=Kt(t),s=Math.abs(n)%r.length;return r[s]}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",po="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",_o={male:lo,female:co,org:po,neutral:uo},Yt=h.forwardRef((t,r)=>{const{style:n,size:s=40,isLoading:i=!1,isDisabled:a=!1,shape:l="circle",variant:c="filled",placeholderType:u="neutral",name:f,imgSrc:d,imgAlt:g,icon:m,imgProps:y,colorScheme:v,className:S,"data-testid":x,...b}=t,{onClick:p,onPointerDown:w}=b,E=!a&&!i&&(!!p||!!w),[T,R]=h.useState(!1);h.useEffect(()=>{d&&R(!1)},[d]);const B=d&&!T?"image":m?"icon":f?"name":"placeholder",O=v||B==="name"&&ro(f)||"gray",W=io(s),Z=ao(s,l),F=k.clsx(S,yt.avatar,yt[`variant-${c}`],yt[`color-${O}`],U[W],{[yt.disabled]:a,[yt.loading]:i,[yt.clickable]:E}),j={"--avatar-size":`${s}px`,"--avatar-border-radius":`${Z}px`,...n},z={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",{...y,"data-testid":"avatar-placeholder",className:yt.image,src:_o[u],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...y,className:yt.image,src:d||void 0,alt:g||void 0,onLoad:()=>R(!1),onError:q=>{var X;R(!0),(X=y==null?void 0:y.onError)==null||X.call(y,q)}})},H=q=>{E&&(p==null||p(q))};return o.jsx("div",{ref:r,onClick:H,className:F,style:j,"data-testid":x,"aria-disabled":a||i,children:z[B](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 s=window.getComputedStyle(r).backgroundColor;if(!ho(s))return s;r=r.parentElement}return null},ge=()=>{const t=h.useRef(null),[r,n]=h.useState(null);return h.useEffect(()=>{if(t.current){const s=bo(t.current);n(s)}},[]),{ref:t,bgColor:r}};function Ae(t,r,n){h.useEffect(()=>(window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n)),[t,r])}const Pe={passive:!0};function xo(){const[t,r]=h.useState({width:0,height:0}),n=h.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Ae("resize",n,Pe),Ae("orientationchange",n,Pe),h.useEffect(n,[]),t}function mo(t=768){const{width:r}=xo();return h.useMemo(()=>r<=t,[r,t])}const yo=2,vo=t=>{const{avatars:r=[],size:n=40,overlap:s=.3,shape:i="circle",overflowCount:a=0,overflowProps:l,cutoutBackground:c}=t,f=-(n*s)+yo,{ref:d,bgColor:g}=ge(),m=c||g||"#ffffff",y=$t(go.avatarGroup),v={"--avatar-cutout-bg":m};return r.length===0?null:o.jsxs("div",{className:y,ref:d,style:v,children:[r.map((S,x)=>{if(S.wrapper){const b=S.wrapper;return o.jsx("div",{style:{marginRight:f},children:o.jsx(b,{children:o.jsx(Yt,{size:n,shape:i,...S})})},Kt(S)+x)}return o.jsx("div",{style:{marginRight:f},children:o.jsx(Yt,{size:n,shape:i,...S})},Kt(S)+x)}),a>0&&o.jsx("div",{style:{marginRight:f},children:o.jsx(Yt,{size:n,shape:i,icon:()=>Qn(a),colorScheme:"gray",variant:"light",...l})})]})},Ue=Object.assign(Yt,{Group:vo}),Co="_overlay_g6rp8_6",wo="_container_g6rp8_20",le={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 So(t){switch(t){case"default":return"top";case"mobile":return"bottom";case"center":default:return}}const ko=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:s=!1,disableEscapeKey:i=!1}){const a=h.useCallback(S=>{r==null||r(S)},[r]),l=So(n),{context:c,refs:u}=kt.useFloating({open:t,onOpenChange:a,placement:l}),f=ko(n),{isMounted:d,styles:g}=kt.useTransitionStyles(c,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:l,position:"fixed",opacity:0},...f}),m=kt.useDismiss(c,{outsidePress:!s,outsidePressEvent:"mousedown",escapeKey:!i}),y=kt.useRole(c,{role:"dialog"}),{getFloatingProps:v}=kt.useInteractions([m,y]);return h.useMemo(()=>({isMounted:d,transitionStyles:g,context:c,refs:u,getFloatingProps:v}),[d,g,c,u,v])}const Ke=h.forwardRef((t,r)=>{const{placement:n="default",open:s,onOpenChange:i,overlayProps:a,portalProps:l,children:c,disableOutsideClick:u=!1,disableEscapeKey:f=!1,disableOverlay:d=!1,className:g,style:m,"data-testid":y,...v}=t;s===void 0&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const S=Lo({open:s,onOpenChange:i,placement:n,disableOutsideClick:u,disableEscapeKey:f}),{isMounted:x,transitionStyles:b}=S,p=kt.useMergeRefs([r,S.refs.setFloating]);return x?o.jsxs(kt.FloatingPortal,{...l,children:[!d&&o.jsx(kt.FloatingOverlay,{"data-testid":"dialog-overlay",className:k.clsx(le.overlay,a==null?void 0:a.className),lockScroll:(a==null?void 0:a.lockScroll)??!0,style:{opacity:b==null?void 0:b.opacity,transition:b==null?void 0:b.transition,...a==null?void 0:a.style}}),o.jsx(kt.FloatingFocusManager,{context:S.context,children:o.jsx("div",{ref:p,"aria-modal":"true",role:"dialog",className:k.clsx(g,le.container,le[`placement-${n}`]),style:{...m,...b},"data-testid":y,...S.getFloatingProps(v),children:c})})]}):null}),jo="_container_1y3z3_5",$o="_header_1y3z3_22",To="_title_1y3z3_31",Eo="_subTitle_1y3z3_35",Ro="_actions_1y3z3_40",Io="_content_1y3z3_62",No="_footer_1y3z3_75",Mo="_divider_1y3z3_82",gt={container:jo,header:$o,title:To,subTitle:Eo,actions:Ro,"title-text":"_title-text_1y3z3_46","description-text":"_description-text_1y3z3_54",content:Io,"content-for-side-drawer":"_content-for-side-drawer_1y3z3_69",footer:No,divider:Mo},zo="_typography_zt7xg_1",Bo="_disabled_zt7xg_8",Oo="_primary_zt7xg_13",Ao="_secondary_zt7xg_18",Po="_tertiary_zt7xg_23",Do="_accent_zt7xg_28",Fo="_positive_zt7xg_38",Wo="_negative_zt7xg_48",Ho="_warning_zt7xg_58",qo="_special_zt7xg_68",Vo="_contrast_zt7xg_78",Ot={typography:zo,disabled:Bo,primary:Oo,secondary:Ao,tertiary:Po,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:Ho,"warning-secondary":"_warning-secondary_zt7xg_63",special:qo,"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:s,className:i,"data-testid":a,as:l,fontWeight:c="semibold",disabled:u=!1,typographyStyle:f="primary",...d},g)=>{const m=l||Zo[n],y=k.clsx(Ot.typography,U[`typography-${t}-${n}-${c}`],Ot[f],{[Ot.disabled]:u},i);return s?o.jsx(m,{ref:g,className:y,"data-testid":a,...d,children:s}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},Fe=t=>{const r=Xe.forwardRef(({size:n=3,children:s,className:i,"data-testid":a,as:l="p",fontWeight:c="regular",disabled:u=!1,typographyStyle:f="primary",...d},g)=>{const m=l,y=k.clsx(Ot.typography,U[`typography-${t}-${n}-${c}`],Ot[f],{[Ot.disabled]:u},i);return s?o.jsx(m,{ref:g,className:y,"data-testid":a,...d,children:s}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},Jt={Title:De("title"),Subtitle:De("subtitle"),Label:Fe("label"),Paragraph:Fe("paragraph")},{Paragraph:Xo,Title:Yo}=Jt,Go=["right-drawer","left-drawer"],Uo=t=>{const{closeButtonProps:r,onOpenChange:n}=t,{wrapper:s,...i}=r||{},a={size:"xs",mode:"primary",buttonStyle:"gray",iconLeft:o.jsx(Wn,{}),"aria-label":"Close modal",onClick:()=>n(!1),...i};return s?o.jsx(s,{children:o.jsx(Ut,{...a})}):o.jsx(Ut,{...a})},Ko=h.forwardRef((t,r)=>{const{open:n,onOpenChange:s,size:i,placement:a="default",showCloseButton:l=!0,closeButtonProps:c,title:u,subTitle:f,actions:d,children:g,footer:m,hideHeaderDivider:y,hideFooterDivider:v,className:S,classNames:x,styles:b,...p}=t,w=Go.includes(a),L=!!(u||f||d);return o.jsx(Ke,{open:n,onOpenChange:s,placement:a,ref:r,style:{width:i},...p,children:o.jsxs("div",{className:k.clsx(gt.container,S,x==null?void 0:x.container),style:{width:i,...b==null?void 0:b.container},"data-testid":p["data-testid"]?`${p["data-testid"]}-container`:void 0,children:[L&&o.jsxs("div",{className:k.clsx(gt.header,x==null?void 0:x.header),style:b==null?void 0:b.header,children:[o.jsx("div",{className:k.clsx(gt.title,x==null?void 0:x.title),style:b==null?void 0:b.title,children:typeof u=="string"?o.jsx(Yo,{size:5,className:gt["title-text"],children:u}):u}),o.jsxs("div",{className:gt.actions,children:[d,l&&o.jsx(Uo,{closeButtonProps:c,onOpenChange:s})]}),f&&o.jsx("div",{className:k.clsx(gt.subTitle,x==null?void 0:x.subTitle),style:b==null?void 0:b.subTitle,children:typeof f=="string"?o.jsx(Xo,{size:2,typographyStyle:"secondary",className:gt["description-text"],children:f}):f})]}),!y&&L&&o.jsx("hr",{className:gt.divider}),o.jsx("div",{className:k.clsx(w?gt["content-for-side-drawer"]:gt.content,x==null?void 0:x.content),style:{...b==null?void 0:b.content},"data-testid":p["data-testid"]?`${p["data-testid"]}-content`:void 0,children:g}),!v&&m&&o.jsx("hr",{className:gt.divider}),m&&o.jsx("div",{className:k.clsx(gt.footer,x==null?void 0:x.footer),style:b==null?void 0:b.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"})}),Vt={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_qzz9e_1",sa="_children_qzz9e_11",ia="_iconSlot_qzz9e_11",la="_textBlock_qzz9e_17",ca="_title_qzz9e_24",da="_subtitle_qzz9e_24",Mt={container:aa,children:sa,iconSlot:ia,textBlock:la,title:ca,subtitle:da},Zt={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function ua(t){return(Zt==null?void 0:Zt[t])||Zt.m}const Je=t=>{const{iconSlot:r,title:n,subTitle:s,styles:i,classNames:a,children:l,"data-testid":c,size:u="m"}=t,f=ua(u);return o.jsxs("div",{className:k.clsx(Mt.container,a==null?void 0:a.container),style:i==null?void 0:i.container,"data-testid":c,children:[r&&o.jsx("div",{style:i==null?void 0:i.iconSlot,className:k.clsx(Mt.iconSlot,a==null?void 0:a.iconSlot),children:r}),(n||s)&&o.jsxs("div",{className:k.clsx(Mt.textBlock,a==null?void 0:a.textBlock),children:[n&&o.jsx("p",{style:i==null?void 0:i.title,className:k.clsx(Mt.title,U[f.title],a==null?void 0:a.title),children:n}),s&&o.jsx("p",{style:i==null?void 0:i.subTitle,className:k.clsx(Mt.subtitle,U[f.subtitle],a==null?void 0:a.subTitle),children:s})]}),l&&o.jsx("div",{className:k.clsx(Mt.children,a==null?void 0:a.children),children:l})]})},pa=t=>{const{open:r,onOpenChange:n,placement:s="default",variant:i="info",title:a,description:l,children:c,variantAvatarProps:u,"data-testid":f}=t,{icon:d,colorScheme:g}=(Vt==null?void 0:Vt[i])||Vt.info,y=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",...u}:{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:s,"data-testid":f,className:oa.container,children:o.jsx(Je,{title:a,subTitle:l,size:"m",iconSlot:o.jsx(Ue,{...y}),children:c})})},_a="_wrapper_ecbsu_5",fa="_badge__container_ecbsu_6",ga="_badge__content_ecbsu_7",ha="_interactive_ecbsu_20",ba="_disabled_ecbsu_21",xa="_icon_ecbsu_22",Ct={wrapper:_a,badge__container:fa,badge__content:ga,interactive:ha,disabled:ba,icon:xa,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},Qe=h.forwardRef((t,r)=>{const{icon:n,children:s,variant:i="filled",label:a,isHidden:l=!1,colorScheme:c="red",size:u=20,position:f="top-right",positionOffset:d={x:0,y:0},cutoutBackground:g,isDisabled:m,className:y,"data-testid":v="badge",...S}=t,{onClick:x,onPointerDown:b}=S,{ref:p,bgColor:w}=ge(),L=g||w,T=!m&&(!!x||!!b),R=$t(Ct.badge__container,Ct[`position-${f}`]),B=$t(y,Ct.badge__content,Ct[`color-${c}`],Ct[`variant-${i}`],{[Ct.disabled]:m,[Ct.icon]:!!n,[Ct.interactive]:T}),O={"--badge-height":`${u}px`,"--badge-offset-x":`${d.x}px`,"--badge-offset-y":`${d.y}px`,...L&&{"--badge-cutout-bg":L},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},W=(n==null?void 0:n({}))||a,Z=F=>{T&&(x==null||x(F))};return o.jsxs("div",{className:Ct.wrapper,ref:p,"data-testid":v+"-wrapper",children:[s,!l&&o.jsx("span",{className:R,style:O,"data-testid":v+"-container",children:o.jsx("span",{...S,onClick:Z,className:B,"data-testid":v+"-content",ref:r,"aria-disabled":m,children:W})})]})}),ma="_container_op5yl_7",ya="_image_op5yl_22",va="_loading_op5yl_34",ce={container:ma,image:ya,loading:va},Ca=({width:t=48,height:r=48,className:n,"data-testid":s})=>o.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"data-testid":s,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),wa=h.forwardRef((t,r)=>{const{alt:n="",loading:s="lazy",src:i,isLoading:a=!1,className:l,"data-testid":c="image",onError:u,onLoad:f,...d}=t,[g,m]=h.useState("loading"),y=g==="error",v=(a||g==="loading")&&!y,S=g==="loaded"&&!a,x=$t(ce.image,{[ce.loading]:v},l),b=h.useCallback(L=>{m("loaded"),f==null||f(L)},[f]),p=h.useCallback(L=>{m("error"),u==null||u(L)},[u]),w={loader:o.jsxs(h.Fragment,{children:[o.jsx(_e,{size:48,variant:"special","data-testid":`${c}-loader`}),o.jsx("img",{alt:n,src:i,onLoad:b,onError:p,style:{display:"none"}})]}),error:o.jsx(Ca,{"data-testid":`${c}-fallback`}),image:o.jsx("img",{ref:r,alt:n,"data-testid":c,loading:s,src:i,className:x})};return h.useEffect(()=>{if(!i){m("error");return}m("loading")},[i]),o.jsxs("div",{className:ce.container,"data-testid":`${c}-container`,...d,children:[v&&w.loader,y&&w.error,S&&w.image]})}),tr={},er=h.createContext({locale:tr}),rr=()=>{const t=h.useContext(er);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Sa=()=>{const{locale:t}=rr();return t},ka={},La={},ja={},$a={},Ta={},Ea="_base_1p0qo_50",Ra="_content_1p0qo_54",Ia="_background_1p0qo_58",Na="_button_1p0qo_62",Ma="_link_1p0qo_66",za="_input_1p0qo_70",Ba="_suffix_1p0qo_74",Oa="_prefix_1p0qo_78",Aa="_tooltip_1p0qo_82",Pa="_hint_1p0qo_86",Da="_dropdown_1p0qo_90",Fa="_popover_1p0qo_94",Wa="_modalBackdrop_1p0qo_98",Ha="_modal_1p0qo_98",qa="_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:Ia,button:Na,link:Ma,input:za,suffix:Ba,prefix:Oa,tooltip:Aa,hint:Pa,dropdown:Da,popover:Fa,modalBackdrop:Wa,modal:Ha,overlay:qa,drawer:Va,notification:Za,alert:Xa,toast:Ya,loading:Ga,error:Ua,critical:Ka},Qa=({locale:t={},theme:r,children:n,className:s})=>(h.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([a,l])=>{i.style.setProperty(a,l)})}},[r]),o.jsxs(h.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:k.clsx(ka,La,ja,$a,Ta,Ja,U,s)}),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",ps="_special_1llsi_77",_s="_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:ps,accent:_s,blue:fs,lovely:gs,dreamy:hs},bs=h.forwardRef((t,r)=>{const{className:n,children:s,componentStyle:i="neutral",size:a="medium",disabled:l=!1,showLabel:c=!!s,slotStart:u,slotEnd:f,slotStartWrapperProps:d={},slotEndWrapperProps:g={},"data-testid":m}=t,{className:y,...v}=d,{className:S,...x}=g;return o.jsxs("div",{className:k.clsx(Et.tag,Et[a],Et[i],{[Et.disabled]:l,[U["typography-label-3-regular"]]:a==="medium",[U["typography-subtitle-1-semibold"]]:a==="large"},n),"data-testid":m||"tag-component",ref:r,children:[u&&o.jsx("span",{className:k.clsx([Et.iconWrapper,y]),...v,children:u}),c&&o.jsx("span",{className:k.clsx([Et.label]),children:s}),f&&o.jsx("span",{className:k.clsx([Et.iconWrapper,S]),...x,children:f})]})}),xs="_checkbox_17txq_43",ms="_input_17txq_64",ys="_icon_17txq_72",vs="_container_17txq_92",Cs="_error_17txq_143",ws="_checkboxWrapper_17txq_156",Ss="_medium_17txq_211",ks="_large_17txq_216",Ls="_label_17txq_258",St={checkbox:xs,input:ms,icon:ys,container:vs,error:Cs,checkboxWrapper:ws,medium:Ss,large:ks,label:Ls},js=({width:t=12,height:r=9,className:n="",color:s="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:s})}),$s=({width:t=12,height:r=2,className:n="",color:s="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:s})}),Ts={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Es=({size:t,isChecked:r,isDisabled:n,indeterminate:s,dataTestId:i})=>{const{width:a,height:l}=Ts[t];return o.jsx("div",{className:St.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":n,"data-indeterminate":s,children:s?o.jsx($s,{width:a,height:l}):o.jsx(js,{width:a,height:l})})},Rs=h.forwardRef((t,r)=>{const{name:n,value:s,size:i="medium",indeterminate:a=!1,loading:l=!1,error:c,disabled:u=!1,containerClassName:f,className:d,containerStyle:g,style:m,children:y,clickableLabel:v=!0,tabIndex:S,onChange:x,"data-testid":b="checkbox"}=t,[p,w]=h.useState(!1),L=s??p,E=u||l,T=!!c,R=L||a,B=k.clsx(St.container,St[i],f),O=k.clsx(St.checkbox,St[i],{[St.error]:T},d),W=z=>{E||(w(z.target.checked),x==null||x(z.target.checked,z))},Z=z=>{if(z.key==="Enter"&&!E){z.preventDefault();const H=!R;w(H),x==null||x(H)}},F=z=>{v||z.preventDefault()},j=z=>z.stopPropagation();return o.jsxs("label",{className:B,htmlFor:n,style:g,"data-testid":b,"data-clickable-label":v,children:[o.jsx("div",{className:St.checkboxWrapper,children:o.jsxs("div",{tabIndex:S||0,className:O,style:m,onKeyDown:Z,"aria-checked":R,"aria-disabled":E,"aria-invalid":T,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${b}-label`,children:[o.jsx("input",{ref:r,type:"checkbox",id:n,name:n,checked:R,disabled:E,className:St.input,onChange:W,onClick:j,"aria-checked":R,"aria-invalid":T,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${b}-input`}),o.jsx(Es,{name:n,size:i,isChecked:R,isDisabled:E,indeterminate:a,dataTestId:b})]})}),y&&o.jsx("span",{"data-testid":`${b}-label-text`,"data-clickable-label":v,className:St.label,onClick:F,children:y})]})}),Is="_base_10oxr_1",Ns="_content_10oxr_1",Ms="_background_10oxr_1",zs="_button_10oxr_1",Bs="_link_10oxr_1",Os="_input_10oxr_96",As="_suffix_10oxr_1",Ps="_prefix_10oxr_1",Ds="_tooltip_10oxr_1",Fs="_hint_10oxr_794",Ws="_dropdown_10oxr_1",Hs="_popover_10oxr_1",qs="_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",pi="_floatingLabel_10oxr_415",_i="_focused_10oxr_481",fi="_filled_10oxr_482",gi="_L_10oxr_522",hi="_characterLimit_10oxr_564",bi="_textarea_10oxr_124",xi="_truncate_10oxr_707",N={base:Is,content:Ns,background:Ms,button:zs,link:Bs,input:Os,suffix:As,prefix:Ps,tooltip:Ds,hint:Fs,dropdown:Ws,popover:Hs,modalBackdrop:qs,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:pi,focused:_i,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:s="#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:s})}),nr=({className:t="",style:r,size:n="md",color:s="currentColor",onClick:i,...a})=>{const c={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[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,...a,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},yi=(t,r)=>{const n=h.useRef(null),s=h.useRef(null);return h.useEffect(()=>{const i=r==="textarea"?n.current:s.current;i&&i.value!==t&&(i.value=t||"")},[t,r]),{textareaRef:n,inputRef:s,currentRef:r==="textarea"?n:s}},vi=(t,r,n)=>{const s=()=>{if(!n.current||r!=="hug")return;const i=n.current.scrollTop;if(n.current.style.setProperty("height","auto","important"),!t)return;const a=n.current.scrollHeight+"px";n.current.style.setProperty("height",a,"important"),n.current.scrollTop=i;const l=n.current.closest(`.${N.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return h.useEffect(s,[t,r]),h.useEffect(()=>{r==="hug"&&n.current&&s()},[]),{resizeTextArea:s}},Ci=(t,r,n,s)=>({handleGripMouseDown:h.useCallback(a=>{if(!t||r||n||!(s==="fixed"||!s))return;a.preventDefault(),a.stopPropagation();const l=a.currentTarget.closest(`.${N.wrapper}`);if(!l)return;const c=a.clientY,u=l.clientHeight,f=g=>{const m=g.clientY-c,y=Math.min(100,u),v=Math.max(y,u+m);l.style.height=`${v}px`},d=()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",d)};document.addEventListener("mousemove",f),document.addEventListener("mouseup",d)},[t,r,n,s])}),We=30,wi=h.forwardRef(({component:t="input",size:r="L",value:n="",placeholder:s,disabled:i=!1,loading:a=!1,onFocus:l,onBlur:c,onChange:u,onKeyDown:f,onKeyUp:d,maxLength:g,className:m,style:y,truncate:v=!1,shouldShowFloatingLabelClass:S=!1,"aria-invalid":x,"aria-errormessage":b,id:p,resize:w,...L},E)=>{const{textareaRef:T,inputRef:R,currentRef:B}=yi(n,t);if(vi(n,w,T),h.useImperativeHandle(E,()=>B.current,[B]),t==="textarea")return o.jsx("textarea",{ref:T,id:p,value:n,placeholder:s,disabled:i||a,onFocus:l,onBlur:c,onChange:u,onKeyDown:f,onKeyUp:d,maxLength:g,className:k.clsx(N.textarea,N[`size-${r}`],S&&N["with-floating-label"],m),style:y,"aria-invalid":x,"aria-errormessage":b,"aria-describedby":b?`${p}-error`:void 0,tabIndex:0,"data-resize":w,...L});if(t==="input")return o.jsx("input",{ref:R,id:p,value:n,placeholder:s,disabled:i||a,onFocus:l,onBlur:c,onChange:u,onKeyDown:f,onKeyUp:d,maxLength:g,className:k.clsx(N.input,N[`size-${r}`],S&&N["with-floating-label"],v&&N.truncate,m),style:y,"aria-invalid":x,"aria-errormessage":b,"aria-describedby":b?`${p}-error`:void 0,tabIndex:0,...L});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),or=h.forwardRef(({children:t,size:r="L",error:n=!1,disabled:s=!1,loading:i=!1,className:a,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:u,prefixStyles:f,suffixStyles:d,labelProps:g,helperProps:m,showLimit:y=!1,maxLength:v,hint:S,showHint:x=!1,showHintOnEmpty:b=!1,prefix:p,suffix:w,onSuffixClick:L,placeholder:E,showLabel:T=!0,labelClassName:R,hasValue:B=!1,helper:O,id:W,value:Z="",resize:F,showGrip:j=!1,...z},H)=>{const q=h.useId(),X=W||q,K=x&&S&&(B||b),ot=S&&S.length>We?S.substring(0,We)+"...":S,rt=k.clsx(N.wrapper,N[`size-${r}`],n&&N.error,s&&N.disabled,i&&N.loading,K&&N["has-hint"],w&&N["has-suffix"],y&&N["has-limit"],a),J=k.clsx(N.floatingLabel,N[r],B&&N.filled,R),{handleGripMouseDown:at}=Ci(j,s,i,F);return o.jsxs("div",{ref:H,className:N.inputBase,"data-testid":"input-base-wrapper",...z,children:[o.jsxs("div",{className:rt,style:c,"data-resize":F,"data-show-grip":j?"true":"false",...l,children:[p&&o.jsx("label",{htmlFor:X,className:N.leftSection,style:f,children:p}),w&&o.jsx("label",{htmlFor:X,className:N.rightSection,style:d,onClick:L,children:w}),E&&T&&o.jsx("label",{htmlFor:X,className:J,style:u,...g,children:E}),t,j&&!y&&(F==="fixed"||!F)&&o.jsx("div",{className:N.gripHandle,onMouseDown:at,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(mi,{})}),K&&o.jsx("div",{className:k.clsx(N.hint,B&&N.truncate),"data-disabled":s||i,children:ot}),y&&v&&o.jsxs("div",{className:N.characterLimit,children:[(Z||"").length," из ",v]})]}),O&&o.jsx("div",{className:k.clsx(N.helper,n&&N.error,(s||i)&&N.disabled),...m,id:n?`${X}-error`:void 0,children:O})]})});or.displayName="InputWrapperComponent";const He=Object.assign(wi,{Wrapper:or}),ar=h.forwardRef(({component:t="input",size:r="L",className:n,error:s=!1,disabled:i=!1,loading:a=!1,placeholder:l,showLabel:c=!0,labelClassName:u,helper:f,prefix:d,suffix:g,id:m,onFocus:y,onBlur:v,onKeyDown:S,onSuffixClick:x,onChange:b,value:p="",wrapperProps:w,wrapperStyles:L,floatingLabelStyles:E,prefixStyles:T,suffixStyles:R,textareaStyles:B,labelProps:O,helperProps:W,showLimit:Z=!1,maxLength:F,inputProps:j,hint:z,showHint:H=!1,showHintOnEmpty:q=!1,truncate:X=!1,resize:K,showGrip:ot=!1,...rt},J)=>{const at=h.useId(),st=m||at,[vt,xt]=h.useState(p),it=p!==void 0?p:vt,jt=(it||"").length>0,ut=it||"",Rt=c&&(r==="XL"||t==="textarea")&&!d,Qt=h.useCallback(Q=>{var tt;i||a||(y==null||y(),(tt=j==null?void 0:j.onFocus)==null||tt.call(j,Q))},[y,j,i,a]),Wt=h.useCallback(Q=>{var tt;if(Q.key==="Tab"){const mt=Q.target.closest(`.${N.wrapper}`);mt&&mt.classList.add(N.tabFocused)}(tt=j==null?void 0:j.onKeyUp)==null||tt.call(j,Q)},[j]),te=h.useCallback(Q=>{var mt;const tt=Q.target.closest(`.${N.wrapper}`);tt&&tt.classList.remove(N.tabFocused),v==null||v(),(mt=j==null?void 0:j.onBlur)==null||mt.call(j,Q)},[v,j]),ee=h.useCallback(Q=>{var mt;if(i||a)return;const tt=Q.target.value;xt(tt),b==null||b(tt,Q),(mt=j==null?void 0:j.onChange)==null||mt.call(j,Q)},[b,j,i,a]);return h.useEffect(()=>{xt(p||"")},[p]),o.jsx(He.Wrapper,{ref:J,size:r,error:s,disabled:i||a,loading:a,className:k.clsx(n,t==="textarea"&&N["textarea-wrapper"]),wrapperProps:w,wrapperStyles:L,floatingLabelStyles:E,prefixStyles:T,suffixStyles:R,labelProps:O,helperProps:W,showLimit:Z,maxLength:F,hint:z,showHint:H,showHintOnEmpty:q,prefix:d,suffix:g,onSuffixClick:x,placeholder:l,showLabel:c,labelClassName:u,hasValue:jt,helper:f,id:st,value:ut,showGrip:ot,resize:K,...rt,children:o.jsx(He,{component:t,size:r,value:ut,placeholder:l,disabled:i,loading:a,onFocus:Qt,onBlur:te,onChange:ee,onKeyDown:S,onKeyUp:Wt,maxLength:F,truncate:X,"data-empty":!jt,shouldShowFloatingLabelClass:Rt,style:t==="textarea"?B:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${st}-error`:void 0,id:st,resize:K,...j})})}),V={S:"S",M:"M",L:"L",XL:"XL"},Si=(t,r,n,s)=>{switch(t){case V.XL:return r&&n?"8px 16px 8px 16px":"16px 16px 16px 16px";case V.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case V.M:return"10px 12px 10px 12px";case V.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},ki=t=>{switch(t){case V.XL:return"56px";case V.L:return"48px";case V.M:return"40px";case V.S:return"32px";default:return"48px"}},Li=t=>{switch(t){case V.S:case V.M:case V.L:return 4;case V.XL:return 8;default:return 8}},ji=t=>{switch(t){case V.S:case V.M:return 8;case V.L:case V.XL:return 12;default:return 12}},$i=(t,r,n,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ti=(t,r,n,s)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Ei=(t,r,n,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Ri=(t,r,n,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ii=(t,r,n,s)=>{const i=ki(t),a=Si(t,r,n,s),l=ji(t),c=Li(t);switch(t){case V.XL:return Ti(i,a,l,c);case V.L:return Ei(i,a,l,c);case V.M:return Ri(i,a,l,c);case V.S:return $i(i,a,l,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Ni=h.forwardRef(({value:t="",onChange:r,type:n="text",placeholder:s,maxLength:i,minLength:a,autoComplete:l,autoFocus:c,size:u=V.L,inputProps:f,error:d,disabled:g,loading:m,helper:y,prefix:v,suffix:S,clearable:x=!1,id:b,showLabel:p=!0,onFocus:w,onBlur:L,onSuffixClick:E,onClear:T,className:R,truncate:B=!0,hint:O,showHint:W=!1,showHintOnEmpty:Z=!1,wrapperProps:F,labelProps:j,helperProps:z,...H},q)=>{const X=(t||"").length>0,K=u===V.XL,ot=!!v,rt=K&&p&&!v,J=x&&X&&!(g||m),at=()=>{r==null||r(""),T==null||T()},st=()=>{J&&at(),E==null||E()},vt=J?o.jsx(nr,{size:u===V.S||u===V.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):S,xt={type:n,minLength:a,autoComplete:l,autoFocus:c,...f},it=Ii(u,rt,X,ot);return o.jsx(ar,{size:u,error:d,disabled:g||m,loading:m,helper:y,prefix:v,suffix:vt,id:b,showLabel:rt,onFocus:w,onBlur:L,onSuffixClick:st,onChange:r,value:t,placeholder:s,className:R,wrapperStyles:it.wrapperStyles,floatingLabelStyles:it.floatingLabelStyles,prefixStyles:it.prefixStyles,suffixStyles:it.suffixStyles,wrapperProps:F,labelProps:j,helperProps:z,showLimit:!1,maxLength:i,inputProps:xt,hint:O,showHint:W,showHintOnEmpty:Z,truncate:B,...H})}),_t={M:"M",L:"L"},Gt={M:"12px",L:"16px"},Mi={M:"xs",L:"sm"},Xt={FILL:"fill",FIXED:"fixed"},de={M:"112px",L:"56px"},zt={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},zi=(t,r)=>{if(t===_t.M)return de.M;if(r)return`${r}px`;switch(t){case _t.L:return de.L;default:return de.L}},Bi=(t,r)=>{if(t===_t.M)return zt.M;if(r)switch(r){case Lt.M:case Lt.L:return zt.L;case Lt.XL:return zt.M;default:return zt.L}switch(t){case _t.L:return zt.L;default:return zt.L}},Oi=(t,r,n)=>{if(t===_t.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 _t.L:return n?wt.L_FLOATING_LABEL:wt.L;default:return wt.L}},Ai=(t,r)=>{if(t===_t.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},Pi=t=>Mi[t],Di=t=>Gt[t],Fi=(t,r,n,s)=>{const i=zi(t,r),a=Bi(t,r),l=Oi(t,r,n);return{wrapperStyles:{minHeight:i,...s===Xt.FILL&&{height:"100%"},...s===Xt.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:t===_t.M?Gt.M:Gt.L,transformOrigin:"left top",top:r===112&&n&&t===_t.L?Gt.L:void 0},suffixStyles:{right:Di(t),top:r===48&&t===_t.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:a,...s===Xt.FILL&&{flex:1,minHeight:0},...s===Xt.FIXED&&r&&{height:a}}}},Wi=h.forwardRef(({value:t="",onChange:r,placeholder:n,maxLength:s,minLength:i,autoFocus:a,size:l=_t.L,textareaProps:c,error:u,disabled:f,loading:d,helper:g,suffix:m,clearable:y=!1,id:v,showLabel:S=!0,onFocus:x,onBlur:b,onClear:p,onKeyDown:w,className:L,rows:E=1,showLimit:T=!1,wrapperProps:R,labelProps:B,helperProps:O,showGrip:W,minHeight:Z,resize:F,...j},z)=>{const H=(t||"").length>0,q=S&&!!n&&(l===_t.M||Z!==48),X=y&&H&&!(f||d),K=()=>{r==null||r(""),p==null||p()},ot=()=>{X&&K()},rt=X?o.jsx(nr,{size:Pi(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):m,J=Fi(l,Z,q&&H,F),at=Ai(l,Z),st={rows:E,minLength:i,autoFocus:a,resize:F,...c};return o.jsx(ar,{ref:z,component:"textarea",size:at,error:u,disabled:f||d,loading:d,onSuffixClick:ot,helper:g,suffix:rt,id:v,showLabel:q,onFocus:x,onBlur:b,onKeyDown:w,onChange:r,value:t||"",placeholder:n,className:L,"data-floating-label":q,wrapperStyles:J.wrapperStyles,floatingLabelStyles:J.floatingLabelStyles,suffixStyles:J.suffixStyles,textareaStyles:J.textareaStyles,wrapperProps:R,labelProps:B,helperProps:O,showLimit:T&&(Z===112||l===_t.M),maxLength:s,inputProps:st,resize:F,showGrip:W,...j})}),Hi="_helper_1jq7j_16",ue={helper:Hi,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},qi=({title:t,error:r,className:n="",style:s,disabled:i=!1,"data-testid":a,"aria-label":l,"aria-describedby":c})=>{const u=!!r,f=k.clsx(ue.helper,u&&ue["helper--error"],i&&ue["helper--disabled"],n),d=i?t:r||t;return o.jsx("div",{className:f,style:s,"data-testid":a,"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",pt={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=h.forwardRef((t,r)=>{const{name:n,id:s,value:i,size:a="large",loading:l=!1,error:c,disabled:u=!1,checked:f=!1,containerClassName:d,className:g,children:m,clickable:y="all",mode:v="default",tabIndex:S,style:x,containerStyle:b,onChange:p,"data-testid":w,...L}=t,E=!!c,T=u||l,R=y==="all",B=v==="card",O=pt[`${a}Card`],W=s??n,Z=q=>{T||p==null||p(i,q)},F=q=>{q.key==="Enter"&&!T&&(q.preventDefault(),p==null||p(i))},j=q=>q.stopPropagation(),z=()=>o.jsxs("div",{className:k.clsx(pt.radio,pt[a],{[pt.checked]:f,[pt.disabled]:T,[pt.error]:E&&!T},g),style:x,tabIndex:S||1,"data-testid":`${sl}${W}`,children:[o.jsx("input",{"aria-errormessage":c,"aria-invalid":E,checked:f,className:pt.input,"data-testid":`radio-${W}`,disabled:T,id:W,name:n,ref:r,type:"radio",value:i,onChange:Z,onClick:j}),o.jsx("svg",{"data-testid":`radio-icon-${W}`,viewBox:"0 0 8 8",className:pt.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),H=()=>o.jsxs("label",{"aria-checked":f,"aria-disabled":T,"data-testid":R?w:il,htmlFor:W,style:b,className:k.clsx(pt.label,{[k.clsx(pt.container,pt[v],d)]:R,[O]:R&&B}),onKeyDown:F,...L,children:[z(),R&&m]});return R?H():o.jsxs("div",{className:k.clsx(pt.container,pt[v],d,{[O]:B}),"data-testid":w,children:[H(),m]})}),ll="_group_tnviu_7",cl="_vertical_tnviu_12",dl="_horizontal_tnviu_16",qe={group:ll,vertical:cl,horizontal:dl},ul=h.forwardRef((t,r)=>{const{id:n,name:s,value:i,options:a,className:l,radioClassName:c,disabled:u=!1,layout:f="vertical","data-testid":d,...g}=t;return o.jsx("div",{className:$t(qe.group,qe[f],l),"data-testid":d??`radio-group-${s}`,id:n,ref:r,children:a.map(({label:m,value:y,disabled:v})=>{const S=`${s}-${String(y)}`,x=String(y)===String(i);return o.jsx(sr,{id:S,checked:x,"data-testid":S,disabled:u||v,name:s,value:y,className:c,...g,children:m},S)})})}),pl=Object.assign(sr,{Group:ul}),_l="_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",pe={root:_l,unordered:fl,ordered:gl,sm:hl,md:bl,lg:xl,xl:ml},yl=t=>{const{children:r,className:n,"data-testid":s="list-item"}=t;return o.jsx("li",{"data-testid":s,className:n,children:r})},vl=Object.assign(h.forwardRef((t,r)=>{const{variant:n="unordered",className:s,children:i,size:a="md","data-testid":l="list",...c}=t,u=n==="ordered"?"ol":"ul";return o.jsx(u,{"data-testid":l,ref:r,className:$t(pe.root,pe[n],pe[a],s),...n==="ordered"&&c,children:i})}),{Item:yl}),Cl="_wrapper_1v8xn_5",wl="_viewport_1v8xn_12",Sl="_mask_1v8xn_26",kl="_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",Il="_left_1v8xn_80",Nl="_right_1v8xn_83",ct={wrapper:Cl,viewport:wl,mask:Sl,maskLeft:kl,maskRight:Ll,visible:jl,control:$l,xs:Tl,sm:El,md:Rl,left:Il,right:Nl},Ml="white",zl=({children:t,withControls:r=!0,className:n,size:s})=>{const i=h.useRef(null),[a,l]=h.useState(!1),[c,u]=h.useState(!1),{ref:f,bgColor:d}=ge(),g=f??{current:null},m=d??Ml,y=r&&a,v=r&&c,S=({direction:p})=>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:p==="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"})})}),x=()=>{const p=i.current;if(!p)return;const w=Math.round(p.scrollLeft),L=Math.round(p.scrollLeft+p.clientWidth),E=Math.round(p.scrollWidth);l(w>0),u(L<E)},b=p=>{const w=i.current;if(!w)return;const L=w.clientWidth;w.scrollBy({left:p==="left"?-L:L,behavior:"smooth"})};return h.useEffect(()=>{const p=i.current;if(!p)return;const w=L=>{Math.abs(L.deltaX)>Math.abs(L.deltaY)||p.scrollWidth>p.clientWidth&&(L.preventDefault(),p.scrollBy({left:L.deltaY,behavior:"auto"}))};return p.addEventListener("wheel",w,{passive:!1}),()=>p.removeEventListener("wheel",w)},[]),h.useEffect(()=>{x();const p=i.current;if(p)return p.addEventListener("scroll",x,{passive:!0}),window.addEventListener("resize",x),()=>{p.removeEventListener("scroll",x),window.removeEventListener("resize",x)}},[]),o.jsxs("div",{ref:g,className:k.clsx(ct.wrapper,n),children:[y&&o.jsx("div",{className:k.clsx(ct.mask,ct.maskLeft,a&&ct.visible),style:{background:`linear-gradient(to right, ${m} 17%, transparent 80%)`}}),v&&o.jsx("div",{className:k.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}),y&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:k.clsx(ct.control,ct.left,ct[s]),onClick:()=>b("left"),children:o.jsx(S,{direction:"left"})}),v&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:k.clsx(ct.control,ct.right,ct[s]),onClick:()=>b("right"),children:o.jsx(S,{direction:"right"})})]})},Bl="_tabBar_1ndpm_82",Ol="_primary_1ndpm_88",Al="_secondary_1ndpm_93",Pl="_tab_1ndpm_82",Dl="_md_1ndpm_125",Fl="_sm_1ndpm_129",Wl="_xs_1ndpm_133",Hl="_disabled_1ndpm_137",ql="_selected_1ndpm_143",Vl="_tabLabel_1ndpm_222",Zl="_tabPrefix_1ndpm_234",Xl="_tabPostfix_1ndpm_270",et={tabBar:Bl,primary:Ol,secondary:Al,tab:Pl,md:Dl,sm:Fl,xs:Wl,disabled:Hl,selected:ql,tabLabel:Vl,tabPrefix:Zl,tabPostfix:Xl},Yl="md",Gl=!1,Ul=8,Kl="top-right-inside",ir=h.createContext(null),lr=()=>{const t=h.useContext(ir);if(!t)throw new Error("useTabs должен использоваться внутри TabsProvider");return t},Jl=({children:t,defaultActiveTab:r,activeTab:n,onChange:s})=>{const[i,a]=h.useState(r),l=n!==void 0,c=l?n:i,u=f=>{l||a(f),s&&s(f)};return o.jsx(ir.Provider,{value:{activeTab:c,setTab:u},children:t})},Ql=({mode:t,item:r,isActive:n,showBadge:s,badgeProps:i,size:a,isDisabled:l,onSelectTab:c})=>{const{value:u,label:f,prefix:d,prefixWrapperProps:g={},postfix:m,postfixWrapperProps:y={}}=r,{className:v,...S}=g,{className:x,...b}=y,p={primary:U["typography-label-3-medium"],secondary:U["typography-label-3-regular"],prefix:U["typography-label-3-medium"],postfix:U["typography-label-3-medium"]},w={size:Ul,position:Kl,...i},L=k.clsx(et.tab,et[t],et[a],{[et.selected]:n,[et.disabled]:l}),E=k.clsx(et.tabPrefix,v,et[t],p.prefix,{[et.selected]:n,[et.disabled]:l}),T=k.clsx(et.tabPostfix,x,et[t],p.postfix,{[et.selected]:n,[et.disabled]:l}),R=k.clsx(et.tabLabel,et[t],p[t]),B=W=>{n||l||(c(u),W.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},O=o.jsxs("button",{className:L,role:"tab","aria-label":f,"aria-selected":n,"aria-disabled":l,"aria-controls":`tab-panel-${u}`,"data-testid":`tab-item-${u}`,onClick:B,children:[d&&o.jsx("span",{className:E,...S,"data-testid":`tab-prefix-${u}`,children:d}),o.jsx("span",{className:R,"data-testid":`tab-label-${u}`,children:f}),m&&o.jsx("span",{className:T,...b,"data-testid":`tab-postfix-${u}`,children:m})]});return s?o.jsx(Qe,{...w,"data-testid":`tab-badge-${u}`,children:O}):O},tc=({mode:t,items:r,size:n=Yl,isAllItemsDisabled:s=Gl})=>{const{activeTab:i,setTab:a}=lr(),l=mo();return o.jsx(zl,{size:n,withControls:l,children:o.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:k.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:s||c.isDisabled,onSelectTab:a},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(),s=Array.isArray(t)?t:[t],i=(a,l)=>h.isValidElement(a)&&typeof a.props=="object"&&a.props!==null&&l in a.props;return o.jsx("div",{"data-testid":"tab-content",...r,children:s.map(a=>i(a,"tabValue")&&String(a.props.tabValue)===n?a: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",pc="_typography_1fbbw_89",_c="_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:pc,title:_c,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]}},Sc={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"}]}},kc=(t,r,n)=>({...r,...n??{},...t}),Lc=(t,r,n)=>{const s=to(r,1,3),i=Sc[n][s];return i[Math.min(t,i.length-1)]},Ve=({text:t,title:r,media:n,variant:s="neutral",size:i,classNames:a={},onClose:l,buttons:c,buttonProps:u,showClose:f})=>{const d=["neutral","accent"].includes(s)?"contrast":"primary",g=i==="m",m=!!(r&&g),y=!!(n&&g),v=c&&!!c.length,S=!!(f&&g)||!f&&g&&!v,x=i==="xs"?4:3;return o.jsxs("div",{className:dt.content,children:[y&&o.jsx("div",{className:k.clsx(dt.mediaWrapper,a.mediaWrapper),children:n}),o.jsxs("div",{className:a.textWrapper,children:[m&&o.jsx(Jt.Subtitle,{className:k.clsx(dt.typography,dt.title,a.typography),size:1,as:"h3",typographyStyle:d,children:r}),o.jsx(Jt.Label,{className:k.clsx(dt.typography,dt.text,a.typography),typographyStyle:d,size:x,children:t})]}),S&&o.jsx("button",{type:"button",className:k.clsx(dt.closeButton,dt[s],a.closeButton,{[dt.hasMedia]:y}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:o.jsx(yc,{})}),g&&v&&o.jsx("div",{className:dt.buttonStack,children:c.map((b,p)=>{const w=Lc(p,c.length,s),L=kc(b,w,u),{closeOnClick:E,...T}=L,R=B=>{var O;(O=T.onClick)==null||O.call(T,B),E&&(l==null||l())};return o.jsx(Ut,{...T,onClick:R},p)})})]})},jc=({customContent:t,children:r,placement:n="top",contentClassNames:s,mouseEnterDelay:i=0,mouseLeaveDelay:a=.1,showArrow:l=!0,showClose:c=!0,trigger:u="hover",variant:f="neutral",size:d="s",text:g,title:m,media:y,buttons:v,buttonProps:S,onClose:x,...b})=>{const[p,w]=h.useState(!1),[L,E]=h.useState(!1),T=d==="m"?Cc:wc,R=()=>{w(!1),x==null||x()},B=t||(d==="m"?o.jsx(Ve,{classNames:s,text:g,variant:f,size:d,onClose:R,title:m,media:y,showClose:c,buttons:v,buttonProps:S}):o.jsx(Ve,{classNames:s,text:g,variant:f,size:d,onClose:R}));return h.useEffect(()=>{if(p){const O=requestAnimationFrame(()=>E(!0));return()=>cancelAnimationFrame(O)}E(!1)},[p]),o.jsx(Rr,{visible:p,onVisibleChange:w,classNames:{root:k.clsx(dt.root,dt[f],dt[d],L&&dt.open),...b.classNames},placement:n,overlay:()=>B,trigger:u,mouseEnterDelay:i,mouseLeaveDelay:a,motion:{motionName:"tooltipMotion"},builtinPlacements:T,showArrow:l?{content:o.jsx(vc,{}),className:`tooltipArrow tooltipArrow-${d}`}:!1,destroyTooltipOnHide:!0,...b,children:r})},$c="_segmentedControl_1yvz7_5",Tc="_segment_1yvz7_5",Ec="_activeSegmentIndicator_1yvz7_51",Rc="_stretched_1yvz7_82",Ic="_s_1yvz7_5",Nc="_icon_1yvz7_90",Mc="_label_1yvz7_94",zc="_m_1yvz7_98",Bc="_l_1yvz7_94",Bt={segmentedControl:$c,segment:Tc,activeSegmentIndicator:Ec,stretched:Rc,s:Ic,icon:Nc,label:Mc,m:zc,l:Bc},Ze={s:U["typography-label-3-regular"],m:U["typography-label-2-regular"],l:U["typography-label-2-regular"]},Oc=t=>{var p;const{className:r,defaultValue:n,value:s,size:i="m",segments:a,stretched:l,mode:c="label",onChange:u}=t,f=h.useId(),[d,g]=h.useState(n||a[0].value),[m,y]=h.useState({width:0,left:0}),v=h.useRef(null);h.useEffect(()=>{s&&g(s)},[s]),h.useEffect(()=>{S()},[d,a,i,l,c]);const S=()=>{if(!(v!=null&&v.current))return;const w=v.current.querySelector('[data-is-active-segment="true"]');w&&y({width:w.offsetWidth,left:w.offsetLeft})},x=(p=a.find(w=>w.value===d))==null?void 0:p.label,b=w=>{g(w),u==null||u(w)};return(a==null?void 0:a.length)===0?null:o.jsxs("div",{className:k.clsx(Bt.segmentedControl,Bt[i],Bt[c],{[Bt.stretched]:l},r),"data-testid":"segmented-control-container",ref:v,children:[a==null?void 0:a.map(({label:w,value:L},E)=>{const T=()=>b(L);return o.jsxs(h.Fragment,{children:[o.jsx("input",{id:f+JSON.stringify(L),value:JSON.stringify(L),type:"radio",checked:d===L,onClick:T}),o.jsx("label",{"data-is-active-segment":d===L,className:k.clsx(Bt.segment,Ze[i]),htmlFor:f+JSON.stringify(L),"data-testid":"segmented-control-segment",children:w})]},Kt(JSON.stringify(L))+E)}),o.jsx("div",{className:k.clsx(Bt.activeSegmentIndicator,Ze[i]),"data-testid":"segmented-control-active-segment",style:{width:m.width,left:m.left},children:x})]})};exports.Alert=pa;exports.Avatar=Ue;exports.Badge=Qe;exports.Button=Ut;exports.Checkbox=Rs;exports.ConfigProvider=Qa;exports.Helper=qi;exports.Image=wa;exports.List=vl;exports.Loader=_e;exports.Modal=Ko;exports.Placeholder=Je;exports.Radio=pl;exports.SegmentedControl=Oc;exports.Tabs=nc;exports.Tag=bs;exports.TextArea=Wi;exports.TextInput=Ni;exports.Tooltip=jc;exports.Typography=Jt;exports.enUS=tr;exports.ruRU=ts;exports.useConfig=rr;exports.useLocale=Sa;
|
|
34
|
+
*/var Me;function Dn(){return Me||(Me=1,function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=i(a,s(c)))}return a}function s(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)e.call(a,c)&&a[c]&&(l=i(l,c));return l}function i(a,l){return l?a?a+" "+l:a+l:a}t.exports?(n.default=n,t.exports=n):window.classNames=n})()}(ie)),ie.exports}var Fn=Dn();const $t=Mr(Fn),Ze=h.forwardRef(({size:t=24,variant:e="accent",className:n,"data-testid":s="loader",style:i,...a},l)=>{const c=$t(Dt.loader,Dt[e],Dt[`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":s,style:i,...a,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"})})}),Wn=h.forwardRef((t,e)=>{const{loading:n=!1,size:s=24,variant:i="accent",children:a,className:l,style:c,"data-testid":u,...p}=t,_=$t(Dt.container,l);return o.jsxs("div",{ref:e,className:_,style:c,"data-testid":u,...p,children:[a,n&&o.jsx("div",{className:Dt.overlay,children:o.jsx(Ze,{size:s,variant:i,"data-testid":`${u}-spinner`})})]})}),pe=h.forwardRef((t,e)=>t.children?o.jsx(Wn,{ref:e,...t}):o.jsx(Ze,{ref:e,...t})),Hn=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"})}),Vn=({width:t=24,height:e=24,className:n="",color:s="currentColor",...i})=>o.jsx("svg",{className:n,width:t,height:e,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:s,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),qn={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},Xn=t=>qn[t]||"typography-subtitle-2-semibold",Be=({iconRight:t,iconLeft:e,children:n,postfix:s,subcaption:i,size:a,isAsButton:l})=>{const c=!!(i&&l&&a==="l"),u=!!(!n&&l&&e),p=l&&!!(c&&!n&&s||s&&!c);return o.jsxs(h.Fragment,{children:[c&&n&&o.jsxs(h.Fragment,{children:[o.jsx("span",{"data-testid":"button-label",className:L.clsx(D.label,D.labelText),children:n}),o.jsx("span",{"data-testid":"button-subcaption",className:L.clsx(D.subcaption,G["typography-label-4-regular"]),children:i})]}),!c&&n&&o.jsxs("span",{"data-testid":"button-label",className:D.label,children:[e&&o.jsx("span",{"data-testid":"button-left-icon",className:D.icon,children:e}),o.jsx("span",{className:L.clsx(D.labelText,{[D.isLink]:!l}),children:n}),!l&&t&&o.jsx("span",{"data-testid":"button-icon",className:L.clsx(D.icon,D.iconRight),children:t})]}),u&&o.jsx("span",{"data-testid":"button-icon",className:D.icon,children:l?e:t}),p&&o.jsx("div",{"data-testid":"button-right-group",className:D.rightGroup,children:o.jsx("span",{"data-testid":"button-postfix",className:L.clsx(D.postfix,G["typography-subtitle-2-semibold"]),children:s})})]})},fe=h.forwardRef((t,e)=>{const{mode:n="primary",size:s="m",buttonStyle:i=Ie(t)?"neutral":"accent",disabled:a=!1,className:l,children:c,tabIndex:u}=t,p=n==="tertiary",_=Ie(t),g=Dr(t),m=p&&"paddings"in t?t.paddings??!0:!0,y=_?t.subcaption:void 0,v=_?t.postfix:void 0,S=_?t.stretched:void 0,b=!(g&&t.size===void 0),x=g&&b?t.iconLeft:void 0,d=g&&b?t.iconRight:void 0,C=!!(_&&"loading"in t&&t.loading),k=_?a:a||C,T=!k&&!C,E=_?t.iconLeft:void 0,j=!!(!c&&(_&&E&&!v||g&&d)),I=typeof S=="object"?S.justify==="space-between":void 0,N=Xn(s),O=G[N],X=g?jn(t.size??"m"):void 0,W=X?G[X]:void 0,$=$n(k,n,i),A=k||C?-1:u,H=L.clsx(D.button,D[s],D[n],D[i],g&&W,_&&O,{[D.disabled]:k,[D.loading]:_&&"loading"in t&&t.loading,[D.stretched]:S,[D.spaceBetween]:I,[D.withSubcaption]:!!(y&&s==="l"&&c),[D.iconOnly]:j,[D.link]:g,[D.underline]:g&&"showUnderline"in t&&t.showUnderline,[D.noPaddings]:p&&_&&!m},l),V={iconRight:d,iconLeft:_?E:x,children:c,postfix:v,subcaption:y,size:s,isAsButton:_};if(Or(t)){const{href:Y,onClick:K,style:ot,target:rt,rel:J,"data-testid":at,...st}=t,vt=Ne(st),xt=rt??(t.isExternal?"_blank":void 0);let it=J;if(xt==="_blank"){const _t=new Set((J??"").split(/\s+/).filter(Boolean));_t.add("noopener").add("noreferrer"),it=Array.from(_t).join(" ")}const jt=_t=>{if(!T){_t.preventDefault();return}K==null||K(_t)};return o.jsx("a",{ref:e,className:H,href:T?Y:void 0,tabIndex:A,onClick:jt,"data-testid":at,"aria-disabled":k||C,style:ot,target:xt,rel:it,...vt,children:o.jsx(Be,{...V})})}if(zr(t)){const{type:Y="button",onClick:K,style:ot,"data-testid":rt,...J}=t,at=Ne(J),st=s==="l"?24:16,vt=xt=>{T&&K&&K(xt)};return o.jsxs("button",{ref:e,type:Y,className:H,disabled:k,tabIndex:A,onClick:vt,"data-testid":rt,"aria-disabled":k||C,style:ot,...at,children:[o.jsx("div",{className:L.clsx(D.content,{[D.contentHidden]:C}),children:o.jsx(Be,{...V})}),C&&o.jsx("div",{className:D.loaderWrapper,children:o.jsx(pe,{variant:$,"aria-hidden":"true","data-testid":"button-loader",size:st})})]})}return null});fe.displayName="Button";const Ue=h.forwardRef((t,e)=>{const{iconLeft:n,className:s,...i}=t,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:n??o.jsx(Vn,{}),className:L.clsx(D.backButton,G["typography-subtitle-1-semibold"],s)};return o.jsx(fe,{ref:e,...l})});Ue.displayName="Button.Back";const Gt=Object.assign(fe,{Back:Ue}),Yn="_avatar_19ug4_18",Zn="_clickable_19ug4_40",Un="_icon_19ug4_57",Gn="_disabled_19ug4_62",Kn="_loading_19ug4_67",Jn="_image_19ug4_73",Qn="_name_19ug4_73",yt={avatar:Yn,clickable:Zn,icon:Un,disabled:Gn,loading:Kn,image:Jn,name:Qn,"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"},Pe=99;function to(t){return t<Pe?`+${t}`:`${Pe}+`}function Kt(t){const e=typeof t=="string"?t:JSON.stringify(t);let n=5381;for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);n=(n<<5)+n+i}return n>>>0}const eo=(t,e,n)=>Math.min(Math.max(t,e),n),ro=["red","orange","yellow","green","blue","lightblue","purple"];function no(t,e=ro){if(!t)return"gray";const n=Kt(t),s=Math.abs(n)%e.length;return e[s]}const Ae=2;function oo(t){if(!t)return"";const e=t.trim().split(/\s+/);return e.length===1?t.slice(0,Ae).toUpperCase():e.map(n=>n[0]).slice(0,Ae).join("").toUpperCase()}const ao={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function so(t,e){return e==="circle"?t/2:ao[t]||12}const io={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 lo(t){return io[t]||"typography-subtitle-1-semibold"}const co="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",uo="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",_o="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",po="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",fo={male:co,female:uo,org:po,neutral:_o},Zt=h.forwardRef((t,e)=>{const{style:n,size:s=40,isLoading:i=!1,isDisabled:a=!1,shape:l="circle",variant:c="filled",placeholderType:u="neutral",name:p,imgSrc:_,imgAlt:g,icon:m,imgProps:y,colorScheme:v,className:S,"data-testid":b,...x}=t,{onClick:d,onPointerDown:C}=x,T=!a&&!i&&(!!d||!!C),[E,j]=h.useState(!1);h.useEffect(()=>{_&&j(!1)},[_]);const I=_&&!E?"image":m?"icon":p?"name":"placeholder",N=v||I==="name"&&no(p)||"gray",O=lo(s),X=so(s,l),W=L.clsx(S,yt.avatar,yt[`variant-${c}`],yt[`color-${N}`],G[O],{[yt.disabled]:a,[yt.loading]:i,[yt.clickable]:T}),$={"--avatar-size":`${s}px`,"--avatar-border-radius":`${X}px`,...n},A={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:oo(p||"")}),placeholder:()=>o.jsx("img",{...y,"data-testid":"avatar-placeholder",className:yt.image,src:fo[u],alt:g||void 0}),image:()=>o.jsx("img",{"data-testid":"avatar-image",...y,className:yt.image,src:_||void 0,alt:g||void 0,onLoad:()=>j(!1),onError:V=>{var Y;j(!0),(Y=y==null?void 0:y.onError)==null||Y.call(y,V)}})},H=V=>{T&&(d==null||d(V))};return o.jsx("div",{ref:e,onClick:H,className:W,style:$,"data-testid":b,"aria-disabled":a||i,children:A[I](null)})}),go="_avatarGroup_157g4_1",ho={avatarGroup:go},bo=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),xo=t=>{if(!t)return null;let e=t;for(;e;){const s=window.getComputedStyle(e).backgroundColor;if(!bo(s))return s;e=e.parentElement}return null},ge=()=>{const t=h.useRef(null),[e,n]=h.useState(null);return h.useEffect(()=>{if(t.current){const s=xo(t.current);n(s)}},[]),{ref:t,bgColor:e}};function Oe(t,e,n){h.useEffect(()=>(window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)),[t,e])}const ze={passive:!0};function mo(){const[t,e]=h.useState({width:0,height:0}),n=h.useCallback(()=>{e({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Oe("resize",n,ze),Oe("orientationchange",n,ze),h.useEffect(n,[]),t}function yo(t=768){const{width:e}=mo();return h.useMemo(()=>e<=t,[e,t])}const vo=2,Co=t=>{const{avatars:e=[],size:n=40,overlap:s=.3,shape:i="circle",overflowCount:a=0,overflowProps:l,cutoutBackground:c}=t,p=-(n*s)+vo,{ref:_,bgColor:g}=ge(),m=c||g||"#ffffff",y=$t(ho.avatarGroup),v={"--avatar-cutout-bg":m};return e.length===0?null:o.jsxs("div",{className:y,ref:_,style:v,children:[e.map((S,b)=>{if(S.wrapper){const x=S.wrapper;return o.jsx("div",{style:{marginRight:p},children:o.jsx(x,{children:o.jsx(Zt,{size:n,shape:i,...S})})},Kt(S)+b)}return o.jsx("div",{style:{marginRight:p},children:o.jsx(Zt,{size:n,shape:i,...S})},Kt(S)+b)}),a>0&&o.jsx("div",{style:{marginRight:p},children:o.jsx(Zt,{size:n,shape:i,icon:()=>to(a),colorScheme:"gray",variant:"light",...l})})]})},Ge=Object.assign(Zt,{Group:Co}),wo="_overlay_bhki4_6",So="_container_bhki4_20",le={overlay:wo,container:So,"placement-default":"_placement-default_bhki4_34","placement-bottom-left":"_placement-bottom-left_bhki4_41","placement-bottom-right":"_placement-bottom-right_bhki4_46","placement-default-stretched":"_placement-default-stretched_bhki4_51","placement-center":"_placement-center_bhki4_58","placement-center-stretched":"_placement-center-stretched_bhki4_64","placement-left-drawer":"_placement-left-drawer_bhki4_72","placement-right-drawer":"_placement-right-drawer_bhki4_76","placement-bottom-sheet":"_placement-bottom-sheet_bhki4_81"};function ko(t){switch(t){case"default":return"top";case"bottom-sheet":return"bottom";case"center":default:return}}const Lo=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 Ke({open:t,onOpenChange:e,placement:n="center",disableOutsideClick:s=!1,disableEscapeKey:i=!1}){const a=h.useCallback(S=>{e==null||e(S)},[e]),l=ko(n),{context:c,refs:u}=kt.useFloating({open:t,onOpenChange:a,placement:l}),p=Lo(n),{isMounted:_,styles:g}=kt.useTransitionStyles(c,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:l??"center",position:"fixed",opacity:0},...p}),m=kt.useDismiss(c,{outsidePress:!s,outsidePressEvent:"pointerdown",escapeKey:!i}),y=kt.useRole(c,{role:"dialog"}),{getFloatingProps:v}=kt.useInteractions([m,y]);return h.useMemo(()=>({isMounted:_,transitionStyles:g,context:c,refs:u,getFloatingProps:v}),[_,g,c,u,v])}const jo=80;function $o({open:t,onOpenChange:e,placement:n="center",disableOutsideClick:s=!1,disableEscapeKey:i=!1,closeOnDrag:a}){const{getFloatingProps:l,transitionStyles:c,isMounted:u,context:p,refs:_}=Ke({open:t,onOpenChange:e,placement:n,disableOutsideClick:s,disableEscapeKey:i}),g=h.useRef({startX:0,startY:0,dragging:!1}),[m,y]=h.useState(0),v=a==null?void 0:a.direction,S=(a==null?void 0:a.threshold)??jo,b=v==="top"||v==="bottom",x=t&&!!v;h.useEffect(()=>{t||(g.current.dragging=!1,y(0))},[t]);const d=h.useCallback(j=>{if(x){g.current.dragging=!0,g.current.startX=j.clientX,g.current.startY=j.clientY,y(0);try{j.currentTarget.setPointerCapture(j.pointerId)}catch{}}},[x]),C=h.useCallback(j=>{if(!g.current.dragging||!x)return;const I=j.clientX-g.current.startX,N=j.clientY-g.current.startY;let O;switch(v){case"bottom":O=Math.max(0,N);break;case"top":O=Math.max(0,-N);break;case"right":O=Math.max(0,I);break;case"left":O=Math.max(0,-I);break;default:O=b?N:I}y(O)},[x,v,b]),k=h.useCallback(j=>{var I,N;if(!(!g.current.dragging||!x)){g.current.dragging=!1;try{(N=(I=j.currentTarget).hasPointerCapture)!=null&&N.call(I,j.pointerId)&&j.currentTarget.releasePointerCapture(j.pointerId)}catch{}m>=S?e(!1):y(0)}},[m,S,e,x]),T=h.useMemo(()=>{if(!x)return c;if(g.current.dragging){const j={...c,transitionProperty:"none"};if(m>0){const I=v==="left"||v==="top"?-m:m;j.transform=b?`translateY(${I}px)`:`translateX(${I}px)`}return j}return c},[c,m,x,b,v]),E=h.useCallback(j=>l(x?{...j,onPointerDown:d,onPointerMove:C,onPointerUp:k,onPointerCancel:k}:j),[l,d,C,k,x]);return h.useMemo(()=>({isMounted:u,context:p,refs:_,transitionStyles:T,getFloatingProps:E}),[u,T,E,p,_])}const Je=h.forwardRef((t,e)=>{const{placement:n="default",open:s,onOpenChange:i,overlayProps:a,portalProps:l,children:c,disableOutsideClick:u=!1,disableEscapeKey:p=!1,disableOverlay:_=!1,closeOnDrag:g,className:m,style:y,"data-testid":v,...S}=t;s===void 0&&process.env.NODE_ENV!=="production"&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const b=g?$o({open:s,onOpenChange:i,placement:n,disableOutsideClick:u,disableEscapeKey:p,closeOnDrag:g}):Ke({open:s,onOpenChange:i,placement:n,disableOutsideClick:u,disableEscapeKey:p}),{isMounted:x,transitionStyles:d}=b,C=kt.useMergeRefs([e,b.refs.setFloating]);return x?o.jsxs(kt.FloatingPortal,{...l,children:[!_&&o.jsx(kt.FloatingOverlay,{"data-testid":"dialog-overlay",className:L.clsx(le.overlay,a==null?void 0:a.className),lockScroll:(a==null?void 0:a.lockScroll)??!0,style:{opacity:d==null?void 0:d.opacity,transition:d==null?void 0:d.transition,...a==null?void 0:a.style}}),o.jsx(kt.FloatingFocusManager,{context:b.context,children:o.jsx("div",{ref:C,"aria-modal":"true",role:"dialog",className:L.clsx(m,le.container,le[`placement-${n}`]),style:{...y,...d},"data-testid":v,...b.getFloatingProps(S),children:c})})]}):null}),To="_container_1641f_5",Eo="_header_1641f_22",Ro="_title_1641f_31",Io="_subTitle_1641f_37",No="_actions_1641f_42",Mo="_content_1641f_64",Bo="_footer_1641f_77",Po="_divider_1641f_84",Ao="_grabber_1641f_90",ct={container:To,header:Eo,title:Ro,subTitle:Io,actions:No,"title-text":"_title-text_1641f_48","description-text":"_description-text_1641f_56",content:Mo,"content-for-side-drawer":"_content-for-side-drawer_1641f_71",footer:Bo,divider:Po,grabber:Ao,"grabber-top":"_grabber-top_1641f_107","grabber-bottom":"_grabber-bottom_1641f_108","grabber-right":"_grabber-right_1641f_114","grabber-left":"_grabber-left_1641f_123"},Oo="_typography_zt7xg_1",zo="_disabled_zt7xg_8",Do="_primary_zt7xg_13",Fo="_secondary_zt7xg_18",Wo="_tertiary_zt7xg_23",Ho="_accent_zt7xg_28",Vo="_positive_zt7xg_38",qo="_negative_zt7xg_48",Xo="_warning_zt7xg_58",Yo="_special_zt7xg_68",Zo="_contrast_zt7xg_78",At={typography:Oo,disabled:zo,primary:Do,secondary:Fo,tertiary:Wo,accent:Ho,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Vo,"positive-secondary":"_positive-secondary_zt7xg_43",negative:qo,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Xo,"warning-secondary":"_warning-secondary_zt7xg_63",special:Yo,"special-secondary":"_special-secondary_zt7xg_73",contrast:Zo,"contrast-secondary":"_contrast-secondary_zt7xg_83"},Uo={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},De=t=>{const e=Ye.forwardRef(({size:n=3,children:s,className:i,"data-testid":a,as:l,fontWeight:c="semibold",disabled:u=!1,typographyStyle:p="primary",..._},g)=>{const m=l||Uo[n],y=L.clsx(At.typography,G[`typography-${t}-${n}-${c}`],At[p],{[At.disabled]:u},i);return s?o.jsx(m,{ref:g,className:y,"data-testid":a,..._,children:s}):null});return e.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,e},Fe=t=>{const e=Ye.forwardRef(({size:n=3,children:s,className:i,"data-testid":a,as:l="p",fontWeight:c="regular",disabled:u=!1,typographyStyle:p="primary",..._},g)=>{const m=l,y=L.clsx(At.typography,G[`typography-${t}-${n}-${c}`],At[p],{[At.disabled]:u},i);return s?o.jsx(m,{ref:g,className:y,"data-testid":a,..._,children:s}):null});return e.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,e},Jt={Title:De("title"),Subtitle:De("subtitle"),Label:Fe("label"),Paragraph:Fe("paragraph")},{Paragraph:Go,Title:Ko}=Jt,Jo=["right-drawer","left-drawer"],Qo=t=>{const{closeButtonProps:e,onOpenChange:n}=t,{wrapper:s,...i}=e||{},a={size:"xs",mode:"primary",buttonStyle:"gray",iconLeft:o.jsx(Hn,{}),"aria-label":"Close modal",onClick:()=>n(!1),...i};return s?o.jsx(s,{children:o.jsx(Gt,{...a})}):o.jsx(Gt,{...a})},ta=h.forwardRef((t,e)=>{const{open:n,onOpenChange:s,size:i,placement:a="default",showCloseButton:l=!0,closeButtonProps:c,title:u,subTitle:p,actions:_,children:g,footer:m,hideHeaderDivider:y,hideFooterDivider:v,className:S,classNames:b,styles:x,...d}=t,C=Jo.includes(a),k=!!(u||p||_),T=a==="bottom-sheet"?{direction:"bottom",threshold:80}:t==null?void 0:t.closeOnDrag;return o.jsx(Je,{open:n,onOpenChange:s,placement:a,ref:e,style:{width:i},closeOnDrag:T,...d,children:o.jsxs("div",{className:L.clsx(ct.container,S,b==null?void 0:b.container),style:{width:i,...x==null?void 0:x.container},"data-testid":d["data-testid"]?`${d["data-testid"]}-container`:void 0,children:[T&&o.jsx("div",{className:L.clsx(ct.grabber,ct[`grabber-${T.direction}`],b==null?void 0:b.grabber),role:"presentation","aria-hidden":"true","data-testid":d["data-testid"]?`${d["data-testid"]}-grabber`:void 0}),k&&o.jsxs("div",{className:L.clsx(ct.header,b==null?void 0:b.header),style:x==null?void 0:x.header,children:[o.jsx("div",{className:L.clsx(ct.title,b==null?void 0:b.title),style:x==null?void 0:x.title,children:typeof u=="string"?o.jsx(Ko,{size:5,className:ct["title-text"],children:u}):u}),o.jsxs("div",{className:ct.actions,children:[_,l&&o.jsx(Qo,{closeButtonProps:c,onOpenChange:s})]}),p&&o.jsx("div",{className:L.clsx(ct.subTitle,b==null?void 0:b.subTitle),style:x==null?void 0:x.subTitle,children:typeof p=="string"?o.jsx(Go,{size:2,typographyStyle:"secondary",className:ct["description-text"],children:p}):p})]}),!y&&k&&o.jsx("hr",{className:ct.divider}),o.jsx("div",{className:L.clsx(C?ct["content-for-side-drawer"]:ct.content,b==null?void 0:b.content),style:{...x==null?void 0:x.content},"data-testid":d["data-testid"]?`${d["data-testid"]}-content`:void 0,children:g}),!v&&m&&o.jsx("hr",{className:ct.divider}),m&&o.jsx("div",{className:L.clsx(ct.footer,b==null?void 0:b.footer),style:x==null?void 0:x.footer,children:m})]})})}),ea=()=>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"})}),ra=()=>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"})}),na=()=>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"})}),oa=()=>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"})}),aa=()=>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"})}),qt={avatar:{icon:null,colorScheme:"gray"},info:{icon:ea,colorScheme:"gray"},success:{icon:na,colorScheme:"green"},warning:{icon:aa,colorScheme:"yellow"},error:{icon:oa,colorScheme:"red"},dialog:{icon:ra,colorScheme:"blue"}},sa="_container_dd9oq_1",ia={container:sa},la="_container_qzz9e_1",ca="_children_qzz9e_11",da="_iconSlot_qzz9e_11",ua="_textBlock_qzz9e_17",_a="_title_qzz9e_24",pa="_subtitle_qzz9e_24",Mt={container:la,children:ca,iconSlot:da,textBlock:ua,title:_a,subtitle:pa},Xt={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function fa(t){return(Xt==null?void 0:Xt[t])||Xt.m}const Qe=t=>{const{iconSlot:e,title:n,subTitle:s,styles:i,classNames:a,children:l,"data-testid":c,size:u="m"}=t,p=fa(u);return o.jsxs("div",{className:L.clsx(Mt.container,a==null?void 0:a.container),style:i==null?void 0:i.container,"data-testid":c,children:[e&&o.jsx("div",{style:i==null?void 0:i.iconSlot,className:L.clsx(Mt.iconSlot,a==null?void 0:a.iconSlot),children:e}),(n||s)&&o.jsxs("div",{className:L.clsx(Mt.textBlock,a==null?void 0:a.textBlock),children:[n&&o.jsx("p",{style:i==null?void 0:i.title,className:L.clsx(Mt.title,G[p.title],a==null?void 0:a.title),children:n}),s&&o.jsx("p",{style:i==null?void 0:i.subTitle,className:L.clsx(Mt.subtitle,G[p.subtitle],a==null?void 0:a.subTitle),children:s})]}),l&&o.jsx("div",{className:L.clsx(Mt.children,a==null?void 0:a.children),children:l})]})},ga=t=>{const{open:e,onOpenChange:n,placement:s="default",variant:i="info",title:a,description:l,children:c,variantAvatarProps:u,"data-testid":p}=t,{icon:_,colorScheme:g}=(qt==null?void 0:qt[i])||qt.info,y=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",...u}:{size:48,icon:_,colorScheme:g,variant:"light",style:{fontSize:24,outline:"none"},"data-testid":"alert-icon"};return o.jsx(Je,{open:e,onOpenChange:n,placement:s,"data-testid":p,className:ia.container,children:o.jsx(Qe,{title:a,subTitle:l,size:"m",iconSlot:o.jsx(Ge,{...y}),children:c})})},ha="_wrapper_ecbsu_5",ba="_badge__container_ecbsu_6",xa="_badge__content_ecbsu_7",ma="_interactive_ecbsu_20",ya="_disabled_ecbsu_21",va="_icon_ecbsu_22",Ct={wrapper:ha,badge__container:ba,badge__content:xa,interactive:ma,disabled:ya,icon:va,"variant-filled":"_variant-filled_ecbsu_102","color-brand":"_color-brand_ecbsu_107","color-red":"_color-red_ecbsu_111","color-orange":"_color-orange_ecbsu_115","color-yellow":"_color-yellow_ecbsu_119","color-green":"_color-green_ecbsu_123","color-blue":"_color-blue_ecbsu_127","color-lightblue":"_color-lightblue_ecbsu_131","color-purple":"_color-purple_ecbsu_135","color-gray":"_color-gray_ecbsu_139","color-contrast":"_color-contrast_ecbsu_143","variant-light":"_variant-light_ecbsu_149","variant-outline":"_variant-outline_ecbsu_221","variant-transparent":"_variant-transparent_ecbsu_295","position-top-left":"_position-top-left_ecbsu_362","position-top-right":"_position-top-right_ecbsu_368","position-bottom-left":"_position-bottom-left_ecbsu_374","position-bottom-right":"_position-bottom-right_ecbsu_380","position-top-center":"_position-top-center_ecbsu_386","position-bottom-center":"_position-bottom-center_ecbsu_392","position-middle-left":"_position-middle-left_ecbsu_398","position-middle-right":"_position-middle-right_ecbsu_404","position-middle-center":"_position-middle-center_ecbsu_410","position-top-left-inside":"_position-top-left-inside_ecbsu_417","position-top-right-inside":"_position-top-right-inside_ecbsu_423","position-bottom-left-inside":"_position-bottom-left-inside_ecbsu_429","position-bottom-right-inside":"_position-bottom-right-inside_ecbsu_435","position-top-center-inside":"_position-top-center-inside_ecbsu_441","position-bottom-center-inside":"_position-bottom-center-inside_ecbsu_447","position-middle-left-inside":"_position-middle-left-inside_ecbsu_453","position-middle-right-inside":"_position-middle-right-inside_ecbsu_459"},tr=h.forwardRef((t,e)=>{const{icon:n,children:s,variant:i="filled",label:a,isHidden:l=!1,colorScheme:c="red",size:u=20,position:p="top-right",positionOffset:_={x:0,y:0},cutoutBackground:g,isDisabled:m,className:y,"data-testid":v="badge",...S}=t,{onClick:b,onPointerDown:x}=S,{ref:d,bgColor:C}=ge(),k=g||C,E=!m&&(!!b||!!x),j=$t(Ct.badge__container,Ct[`position-${p}`]),I=$t(y,Ct.badge__content,Ct[`color-${c}`],Ct[`variant-${i}`],{[Ct.disabled]:m,[Ct.icon]:!!n,[Ct.interactive]:E}),N={"--badge-height":`${u}px`,"--badge-offset-x":`${_.x}px`,"--badge-offset-y":`${_.y}px`,...k&&{"--badge-cutout-bg":k},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},O=(n==null?void 0:n({}))||a,X=W=>{E&&(b==null||b(W))};return o.jsxs("div",{className:Ct.wrapper,ref:d,"data-testid":v+"-wrapper",children:[s,!l&&o.jsx("span",{className:j,style:N,"data-testid":v+"-container",children:o.jsx("span",{...S,onClick:X,className:I,"data-testid":v+"-content",ref:e,"aria-disabled":m,children:O})})]})}),Ca="_container_op5yl_7",wa="_image_op5yl_22",Sa="_loading_op5yl_34",ce={container:Ca,image:wa,loading:Sa},ka=({width:t=48,height:e=48,className:n,"data-testid":s})=>o.jsx("svg",{width:t,height:e,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"data-testid":s,children:o.jsx("path",{d:"M32.4 42H13.8627C12.6511 42 12.0453 42 11.7648 41.7604C11.5214 41.5525 11.3922 41.2407 11.4173 40.9215C11.4462 40.5538 11.8746 40.1254 12.7314 39.2686L29.7373 22.2627C30.5293 21.4707 30.9253 21.0747 31.382 20.9263C31.7837 20.7958 32.2163 20.7958 32.618 20.9263C33.0747 21.0747 33.4707 21.4707 34.2627 22.2627L42 30V32.4M32.4 42C35.7603 42 37.4405 42 38.7239 41.346C39.8529 40.7708 40.7708 39.8529 41.346 38.7239C42 37.4405 42 35.7603 42 32.4M32.4 42H15.6C12.2397 42 10.5595 42 9.27606 41.346C8.14708 40.7708 7.2292 39.8529 6.65396 38.7239C6 37.4405 6 35.7603 6 32.4V15.6C6 12.2397 6 10.5595 6.65396 9.27606C7.2292 8.14708 8.14708 7.2292 9.27606 6.65396C10.5595 6 12.2397 6 15.6 6H32.4C35.7603 6 37.4405 6 38.7239 6.65396C39.8529 7.2292 40.7708 8.14708 41.346 9.27606C42 10.5595 42 12.2397 42 15.6V32.4M21 17C21 19.2091 19.2091 21 17 21C14.7909 21 13 19.2091 13 17C13 14.7909 14.7909 13 17 13C19.2091 13 21 14.7909 21 17Z",stroke:"#AABBCA",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round"})}),La=h.forwardRef((t,e)=>{const{alt:n="",loading:s="lazy",src:i,isLoading:a=!1,className:l,"data-testid":c="image",onError:u,onLoad:p,..._}=t,[g,m]=h.useState("loading"),y=g==="error",v=(a||g==="loading")&&!y,S=g==="loaded"&&!a,b=$t(ce.image,{[ce.loading]:v},l),x=h.useCallback(k=>{m("loaded"),p==null||p(k)},[p]),d=h.useCallback(k=>{m("error"),u==null||u(k)},[u]),C={loader:o.jsxs(h.Fragment,{children:[o.jsx(pe,{size:48,variant:"special","data-testid":`${c}-loader`}),o.jsx("img",{alt:n,src:i,onLoad:x,onError:d,style:{display:"none"}})]}),error:o.jsx(ka,{"data-testid":`${c}-fallback`}),image:o.jsx("img",{ref:e,alt:n,"data-testid":c,loading:s,src:i,className:b})};return h.useEffect(()=>{if(!i){m("error");return}m("loading")},[i]),o.jsxs("div",{className:ce.container,"data-testid":`${c}-container`,..._,children:[v&&C.loader,y&&C.error,S&&C.image]})}),er={},rr=h.createContext({locale:er}),nr=()=>{const t=h.useContext(rr);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},ja=()=>{const{locale:t}=nr();return t},$a={},Ta={},Ea={},Ra={},Ia={},Na="_base_1p0qo_50",Ma="_content_1p0qo_54",Ba="_background_1p0qo_58",Pa="_button_1p0qo_62",Aa="_link_1p0qo_66",Oa="_input_1p0qo_70",za="_suffix_1p0qo_74",Da="_prefix_1p0qo_78",Fa="_tooltip_1p0qo_82",Wa="_hint_1p0qo_86",Ha="_dropdown_1p0qo_90",Va="_popover_1p0qo_94",qa="_modalBackdrop_1p0qo_98",Xa="_modal_1p0qo_98",Ya="_overlay_1p0qo_106",Za="_drawer_1p0qo_110",Ua="_notification_1p0qo_114",Ga="_alert_1p0qo_118",Ka="_toast_1p0qo_122",Ja="_loading_1p0qo_126",Qa="_error_1p0qo_130",ts="_critical_1p0qo_134",es={base:Na,content:Ma,background:Ba,button:Pa,link:Aa,input:Oa,suffix:za,prefix:Da,tooltip:Fa,hint:Wa,dropdown:Ha,popover:Va,modalBackdrop:qa,modal:Xa,overlay:Ya,drawer:Za,notification:Ua,alert:Ga,toast:Ka,loading:Ja,error:Qa,critical:ts},rs=({locale:t={},theme:e,children:n,className:s})=>(h.useLayoutEffect(()=>{if(e){const i=document.documentElement;Object.entries(e).forEach(([a,l])=>{i.style.setProperty(a,l)})}},[e]),o.jsxs(h.Fragment,{children:[o.jsx("div",{"data-testid":"ConfigProvider-component",className:L.clsx($a,Ta,Ea,Ra,Ia,es,G,s)}),o.jsx(rr.Provider,{value:{locale:t},children:n})]})),ns={},os="_tag_1llsi_1",as="_label_1llsi_16",ss="_iconWrapper_1llsi_20",is="_medium_1llsi_27",ls="_large_1llsi_33",cs="_disabled_1llsi_43",ds="_neutral_1llsi_47",us="_positive_1llsi_53",_s="_negative_1llsi_59",ps="_warning_1llsi_65",fs="_vivid_1llsi_71",gs="_special_1llsi_77",hs="_accent_1llsi_84",bs="_blue_1llsi_90",xs="_lovely_1llsi_96",ms="_dreamy_1llsi_102",Et={tag:os,label:as,iconWrapper:ss,medium:is,large:ls,disabled:cs,neutral:ds,positive:us,negative:_s,warning:ps,vivid:fs,special:gs,accent:hs,blue:bs,lovely:xs,dreamy:ms},ys=h.forwardRef((t,e)=>{const{className:n,children:s,componentStyle:i="neutral",size:a="medium",disabled:l=!1,showLabel:c=!!s,slotStart:u,slotEnd:p,slotStartWrapperProps:_={},slotEndWrapperProps:g={},"data-testid":m}=t,{className:y,...v}=_,{className:S,...b}=g;return o.jsxs("div",{className:L.clsx(Et.tag,Et[a],Et[i],{[Et.disabled]:l,[G["typography-label-3-regular"]]:a==="medium",[G["typography-subtitle-1-semibold"]]:a==="large"},n),"data-testid":m||"tag-component",ref:e,children:[u&&o.jsx("span",{className:L.clsx([Et.iconWrapper,y]),...v,children:u}),c&&o.jsx("span",{className:L.clsx([Et.label]),children:s}),p&&o.jsx("span",{className:L.clsx([Et.iconWrapper,S]),...b,children:p})]})}),vs="_checkbox_17txq_43",Cs="_input_17txq_64",ws="_icon_17txq_72",Ss="_container_17txq_92",ks="_error_17txq_143",Ls="_checkboxWrapper_17txq_156",js="_medium_17txq_211",$s="_large_17txq_216",Ts="_label_17txq_258",St={checkbox:vs,input:Cs,icon:ws,container:Ss,error:ks,checkboxWrapper:Ls,medium:js,large:$s,label:Ts},Es=({width:t=12,height:e=9,className:n="",color:s="currentColor",...i})=>o.jsx("svg",{className:n,width:t,height:e,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:s})}),Rs=({width:t=12,height:e=2,className:n="",color:s="currentColor",...i})=>o.jsx("svg",{className:n,width:t,height:e,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:o.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:s})}),Is={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Ns=({size:t,isChecked:e,isDisabled:n,indeterminate:s,dataTestId:i})=>{const{width:a,height:l}=Is[t];return o.jsx("div",{className:St.icon,"data-testid":`${i}-icon`,"data-checked":e,"data-disabled":n,"data-indeterminate":s,children:s?o.jsx(Rs,{width:a,height:l}):o.jsx(Es,{width:a,height:l})})},Ms=h.forwardRef((t,e)=>{const{name:n,value:s,size:i="medium",indeterminate:a=!1,loading:l=!1,error:c,disabled:u=!1,containerClassName:p,className:_,containerStyle:g,style:m,children:y,clickableLabel:v=!0,tabIndex:S,onChange:b,"data-testid":x="checkbox"}=t,[d,C]=h.useState(!1),k=s??d,T=u||l,E=!!c,j=k||a,I=L.clsx(St.container,St[i],p),N=L.clsx(St.checkbox,St[i],{[St.error]:E},_),O=A=>{T||(C(A.target.checked),b==null||b(A.target.checked,A))},X=A=>{if(A.key==="Enter"&&!T){A.preventDefault();const H=!j;C(H),b==null||b(H)}},W=A=>{v||A.preventDefault()},$=A=>A.stopPropagation();return o.jsxs("label",{className:I,htmlFor:n,style:g,"data-testid":x,"data-clickable-label":v,children:[o.jsx("div",{className:St.checkboxWrapper,children:o.jsxs("div",{tabIndex:S||0,className:N,style:m,onKeyDown:X,"aria-checked":j,"aria-disabled":T,"aria-invalid":E,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${x}-label`,children:[o.jsx("input",{ref:e,type:"checkbox",id:n,name:n,checked:j,disabled:T,className:St.input,onChange:O,onClick:$,"aria-checked":j,"aria-invalid":E,"aria-describedby":c?`${n}-error`:void 0,"data-testid":`${x}-input`}),o.jsx(Ns,{name:n,size:i,isChecked:j,isDisabled:T,indeterminate:a,dataTestId:x})]})}),y&&o.jsx("span",{"data-testid":`${x}-label-text`,"data-clickable-label":v,className:St.label,onClick:W,children:y})]})}),Bs="_base_10oxr_1",Ps="_content_10oxr_1",As="_background_10oxr_1",Os="_button_10oxr_1",zs="_link_10oxr_1",Ds="_input_10oxr_96",Fs="_suffix_10oxr_1",Ws="_prefix_10oxr_1",Hs="_tooltip_10oxr_1",Vs="_hint_10oxr_794",qs="_dropdown_10oxr_1",Xs="_popover_10oxr_1",Ys="_modalBackdrop_10oxr_1",Zs="_modal_10oxr_1",Us="_overlay_10oxr_1",Gs="_drawer_10oxr_1",Ks="_notification_10oxr_1",Js="_alert_10oxr_1",Qs="_toast_10oxr_1",ti="_loading_10oxr_291",ei="_error_10oxr_252",ri="_critical_10oxr_1",ni="_inputBase_10oxr_96",oi="_wrapper_10oxr_106",ai="_gripHandle_10oxr_186",si="_tabFocused_10oxr_259",ii="_disabled_10oxr_284",li="_label_10oxr_301",ci="_S_10oxr_315",di="_M_10oxr_321",ui="_XL_10oxr_328",_i="_leftSection_10oxr_335",pi="_rightSection_10oxr_347",fi="_helper_10oxr_385",gi="_floatingLabel_10oxr_415",hi="_focused_10oxr_481",bi="_filled_10oxr_482",xi="_L_10oxr_522",mi="_characterLimit_10oxr_564",yi="_textarea_10oxr_124",vi="_truncate_10oxr_707",B={base:Bs,content:Ps,background:As,button:Os,link:zs,input:Ds,suffix:Fs,prefix:Ws,tooltip:Hs,hint:Vs,dropdown:qs,popover:Xs,modalBackdrop:Ys,modal:Zs,overlay:Us,drawer:Gs,notification:Ks,alert:Js,toast:Qs,loading:ti,error:ei,critical:ri,inputBase:ni,wrapper:oi,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:ai,tabFocused:si,disabled:ii,label:li,S:ci,M:di,XL:ui,leftSection:_i,rightSection:pi,helper:fi,floatingLabel:gi,focused:hi,filled:bi,L:xi,characterLimit:mi,textarea:yi,"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:vi,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},Ci=({width:t=8,height:e=8,className:n,color:s="#AABBCA"})=>o.jsx("svg",{width:t,height:e,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:s})}),or=({className:t="",style:e,size:n="md",color:s="currentColor",onClick:i,...a})=>{const c={display:"inline-block",color:s,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"16px",height:"16px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[n],...e};return o.jsx("svg",{className:t,style:c,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...a,children:o.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},wi=(t,e)=>{const n=h.useRef(null),s=h.useRef(null);return h.useEffect(()=>{const i=e==="textarea"?n.current:s.current;i&&i.value!==t&&(i.value=t||"")},[t,e]),{textareaRef:n,inputRef:s,currentRef:e==="textarea"?n:s}},Si=(t,e,n)=>{const s=()=>{if(!n.current||e!=="hug")return;const i=n.current.scrollTop;if(n.current.style.setProperty("height","auto","important"),!t)return;const a=n.current.scrollHeight+"px";n.current.style.setProperty("height",a,"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 h.useEffect(s,[t,e]),h.useEffect(()=>{e==="hug"&&n.current&&s()},[]),{resizeTextArea:s}},ki=(t,e,n,s)=>({handleGripMouseDown:h.useCallback(a=>{if(!t||e||n||!(s==="fixed"||!s))return;a.preventDefault(),a.stopPropagation();const l=a.currentTarget.closest(`.${B.wrapper}`);if(!l)return;const c=a.clientY,u=l.clientHeight,p=g=>{const m=g.clientY-c,y=Math.min(100,u),v=Math.max(y,u+m);l.style.height=`${v}px`},_=()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",_)};document.addEventListener("mousemove",p),document.addEventListener("mouseup",_)},[t,e,n,s])}),We=30,Li=h.forwardRef(({component:t="input",size:e="L",value:n="",placeholder:s,disabled:i=!1,loading:a=!1,onFocus:l,onBlur:c,onChange:u,onKeyDown:p,onKeyUp:_,maxLength:g,className:m,style:y,truncate:v=!1,shouldShowFloatingLabelClass:S=!1,"aria-invalid":b,"aria-errormessage":x,id:d,resize:C,...k},T)=>{const{textareaRef:E,inputRef:j,currentRef:I}=wi(n,t);if(Si(n,C,E),h.useImperativeHandle(T,()=>I.current,[I]),t==="textarea")return o.jsx("textarea",{ref:E,id:d,value:n,placeholder:s,disabled:i||a,onFocus:l,onBlur:c,onChange:u,onKeyDown:p,onKeyUp:_,maxLength:g,className:L.clsx(B.textarea,B[`size-${e}`],S&&B["with-floating-label"],m),style:y,"aria-invalid":b,"aria-errormessage":x,"aria-describedby":x?`${d}-error`:void 0,tabIndex:0,"data-resize":C,...k});if(t==="input")return o.jsx("input",{ref:j,id:d,value:n,placeholder:s,disabled:i||a,onFocus:l,onBlur:c,onChange:u,onKeyDown:p,onKeyUp:_,maxLength:g,className:L.clsx(B.input,B[`size-${e}`],S&&B["with-floating-label"],v&&B.truncate,m),style:y,"aria-invalid":b,"aria-errormessage":x,"aria-describedby":x?`${d}-error`:void 0,tabIndex:0,...k});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),ar=h.forwardRef(({children:t,size:e="L",error:n=!1,disabled:s=!1,loading:i=!1,className:a,wrapperProps:l,wrapperStyles:c,floatingLabelStyles:u,prefixStyles:p,suffixStyles:_,labelProps:g,helperProps:m,showLimit:y=!1,maxLength:v,hint:S,showHint:b=!1,showHintOnEmpty:x=!1,prefix:d,suffix:C,onSuffixClick:k,placeholder:T,showLabel:E=!0,labelClassName:j,hasValue:I=!1,helper:N,id:O,value:X="",resize:W,showGrip:$=!1,...A},H)=>{const V=h.useId(),Y=O||V,K=b&&S&&(I||x),ot=S&&S.length>We?S.substring(0,We)+"...":S,rt=L.clsx(B.wrapper,B[`size-${e}`],n&&B.error,s&&B.disabled,i&&B.loading,K&&B["has-hint"],C&&B["has-suffix"],y&&B["has-limit"],a),J=L.clsx(B.floatingLabel,B[e],I&&B.filled,j),{handleGripMouseDown:at}=ki($,s,i,W);return o.jsxs("div",{ref:H,className:B.inputBase,"data-testid":"input-base-wrapper",...A,children:[o.jsxs("div",{className:rt,style:c,"data-resize":W,"data-show-grip":$?"true":"false",...l,children:[d&&o.jsx("label",{htmlFor:Y,className:B.leftSection,style:p,children:d}),C&&o.jsx("label",{htmlFor:Y,className:B.rightSection,style:_,onClick:k,children:C}),T&&E&&o.jsx("label",{htmlFor:Y,className:J,style:u,...g,children:T}),t,$&&!y&&(W==="fixed"||!W)&&o.jsx("div",{className:B.gripHandle,onMouseDown:at,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:o.jsx(Ci,{})}),K&&o.jsx("div",{className:L.clsx(B.hint,I&&B.truncate),"data-disabled":s||i,children:ot}),y&&v&&o.jsxs("div",{className:B.characterLimit,children:[(X||"").length," из ",v]})]}),N&&o.jsx("div",{className:L.clsx(B.helper,n&&B.error,(s||i)&&B.disabled),...m,id:n?`${Y}-error`:void 0,children:N})]})});ar.displayName="InputWrapperComponent";const He=Object.assign(Li,{Wrapper:ar}),sr=h.forwardRef(({component:t="input",size:e="L",className:n,error:s=!1,disabled:i=!1,loading:a=!1,placeholder:l,showLabel:c=!0,labelClassName:u,helper:p,prefix:_,suffix:g,id:m,onFocus:y,onBlur:v,onKeyDown:S,onSuffixClick:b,onChange:x,value:d="",wrapperProps:C,wrapperStyles:k,floatingLabelStyles:T,prefixStyles:E,suffixStyles:j,textareaStyles:I,labelProps:N,helperProps:O,showLimit:X=!1,maxLength:W,inputProps:$,hint:A,showHint:H=!1,showHintOnEmpty:V=!1,truncate:Y=!1,resize:K,showGrip:ot=!1,...rt},J)=>{const at=h.useId(),st=m||at,[vt,xt]=h.useState(d),it=d!==void 0?d:vt,jt=(it||"").length>0,_t=it||"",Rt=c&&(e==="XL"||t==="textarea")&&!_,Qt=h.useCallback(Q=>{var tt;i||a||(y==null||y(),(tt=$==null?void 0:$.onFocus)==null||tt.call($,Q))},[y,$,i,a]),Wt=h.useCallback(Q=>{var tt;if(Q.key==="Tab"){const mt=Q.target.closest(`.${B.wrapper}`);mt&&mt.classList.add(B.tabFocused)}(tt=$==null?void 0:$.onKeyUp)==null||tt.call($,Q)},[$]),te=h.useCallback(Q=>{var mt;const tt=Q.target.closest(`.${B.wrapper}`);tt&&tt.classList.remove(B.tabFocused),v==null||v(),(mt=$==null?void 0:$.onBlur)==null||mt.call($,Q)},[v,$]),ee=h.useCallback(Q=>{var mt;if(i||a)return;const tt=Q.target.value;xt(tt),x==null||x(tt,Q),(mt=$==null?void 0:$.onChange)==null||mt.call($,Q)},[x,$,i,a]);return h.useEffect(()=>{xt(d||"")},[d]),o.jsx(He.Wrapper,{ref:J,size:e,error:s,disabled:i||a,loading:a,className:L.clsx(n,t==="textarea"&&B["textarea-wrapper"]),wrapperProps:C,wrapperStyles:k,floatingLabelStyles:T,prefixStyles:E,suffixStyles:j,labelProps:N,helperProps:O,showLimit:X,maxLength:W,hint:A,showHint:H,showHintOnEmpty:V,prefix:_,suffix:g,onSuffixClick:b,placeholder:l,showLabel:c,labelClassName:u,hasValue:jt,helper:p,id:st,value:_t,showGrip:ot,resize:K,...rt,children:o.jsx(He,{component:t,size:e,value:_t,placeholder:l,disabled:i,loading:a,onFocus:Qt,onBlur:te,onChange:ee,onKeyDown:S,onKeyUp:Wt,maxLength:W,truncate:Y,"data-empty":!jt,shouldShowFloatingLabelClass:Rt,style:t==="textarea"?I:void 0,"aria-invalid":!!s,"aria-errormessage":s?`${st}-error`:void 0,id:st,resize:K,...$})})}),q={S:"S",M:"M",L:"L",XL:"XL"},ji=(t,e,n,s)=>{switch(t){case q.XL:return e&&n?"8px 16px 8px 16px":"16px 16px 16px 16px";case q.L:return s?"12px 12px 12px 12px":"12px 16px 12px 16px";case q.M:return"10px 12px 10px 12px";case q.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},$i=t=>{switch(t){case q.XL:return"56px";case q.L:return"48px";case q.M:return"40px";case q.S:return"32px";default:return"48px"}},Ti=t=>{switch(t){case q.S:case q.M:case q.L:return 4;case q.XL:return 8;default:return 8}},Ei=t=>{switch(t){case q.S:case q.M:return 8;case q.L:case q.XL:return 12;default:return 12}},Ri=(t,e,n,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ii=(t,e,n,s)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Ni=(t,e,n,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Mi=(t,e,n,s)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:e},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${s}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Bi=(t,e,n,s)=>{const i=$i(t),a=ji(t,e,n,s),l=Ei(t),c=Ti(t);switch(t){case q.XL:return Ii(i,a,l,c);case q.L:return Ni(i,a,l,c);case q.M:return Mi(i,a,l,c);case q.S:return Ri(i,a,l,c);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Pi=h.forwardRef(({value:t="",onChange:e,type:n="text",placeholder:s,maxLength:i,minLength:a,autoComplete:l,autoFocus:c,size:u=q.L,inputProps:p,error:_,disabled:g,loading:m,helper:y,prefix:v,suffix:S,clearable:b=!1,id:x,showLabel:d=!0,onFocus:C,onBlur:k,onSuffixClick:T,onClear:E,className:j,truncate:I=!0,hint:N,showHint:O=!1,showHintOnEmpty:X=!1,wrapperProps:W,labelProps:$,helperProps:A,...H},V)=>{const Y=(t||"").length>0,K=u===q.XL,ot=!!v,rt=K&&d&&!v,J=b&&Y&&!(g||m),at=()=>{e==null||e(""),E==null||E()},st=()=>{J&&at(),T==null||T()},vt=J?o.jsx(or,{size:u===q.S||u===q.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):S,xt={type:n,minLength:a,autoComplete:l,autoFocus:c,...p},it=Bi(u,rt,Y,ot);return o.jsx(sr,{size:u,error:_,disabled:g||m,loading:m,helper:y,prefix:v,suffix:vt,id:x,showLabel:rt,onFocus:C,onBlur:k,onSuffixClick:st,onChange:e,value:t,placeholder:s,className:j,wrapperStyles:it.wrapperStyles,floatingLabelStyles:it.floatingLabelStyles,prefixStyles:it.prefixStyles,suffixStyles:it.suffixStyles,wrapperProps:W,labelProps:$,helperProps:A,showLimit:!1,maxLength:i,inputProps:xt,hint:N,showHint:O,showHintOnEmpty:X,truncate:I,...H})}),ft={M:"M",L:"L"},Ut={M:"12px",L:"16px"},Ai={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},Oi=(t,e)=>{if(t===ft.M)return de.M;if(e)return`${e}px`;switch(t){case ft.L:return de.L;default:return de.L}},zi=(t,e)=>{if(t===ft.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 ft.L:return Bt.L;default:return Bt.L}},Di=(t,e,n)=>{if(t===ft.M)return wt.M;if(e)switch(e){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 ft.L:return n?wt.L_FLOATING_LABEL:wt.L;default:return wt.L}},Fi=(t,e)=>{if(t===ft.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},Wi=t=>Ai[t],Hi=t=>Ut[t],Vi=(t,e,n,s)=>{const i=Oi(t,e),a=zi(t,e),l=Di(t,e,n);return{wrapperStyles:{minHeight:i,...s===Yt.FILL&&{height:"100%"},...s===Yt.FIXED&&e&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:t===ft.M?Ut.M:Ut.L,transformOrigin:"left top",top:e===112&&n&&t===ft.L?Ut.L:void 0},suffixStyles:{right:Hi(t),top:e===48&&t===ft.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:a,...s===Yt.FILL&&{flex:1,minHeight:0},...s===Yt.FIXED&&e&&{height:a}}}},qi=h.forwardRef(({value:t="",onChange:e,placeholder:n,maxLength:s,minLength:i,autoFocus:a,size:l=ft.L,textareaProps:c,error:u,disabled:p,loading:_,helper:g,suffix:m,clearable:y=!1,id:v,showLabel:S=!0,onFocus:b,onBlur:x,onClear:d,onKeyDown:C,className:k,rows:T=1,showLimit:E=!1,wrapperProps:j,labelProps:I,helperProps:N,showGrip:O,minHeight:X,resize:W,...$},A)=>{const H=(t||"").length>0,V=S&&!!n&&(l===ft.M||X!==48),Y=y&&H&&!(p||_),K=()=>{e==null||e(""),d==null||d()},ot=()=>{Y&&K()},rt=Y?o.jsx(or,{size:Wi(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):m,J=Vi(l,X,V&&H,W),at=Fi(l,X),st={rows:T,minLength:i,autoFocus:a,resize:W,...c};return o.jsx(sr,{ref:A,component:"textarea",size:at,error:u,disabled:p||_,loading:_,onSuffixClick:ot,helper:g,suffix:rt,id:v,showLabel:V,onFocus:b,onBlur:x,onKeyDown:C,onChange:e,value:t||"",placeholder:n,className:k,"data-floating-label":V,wrapperStyles:J.wrapperStyles,floatingLabelStyles:J.floatingLabelStyles,suffixStyles:J.suffixStyles,textareaStyles:J.textareaStyles,wrapperProps:j,labelProps:I,helperProps:N,showLimit:E&&(X===112||l===ft.M),maxLength:s,inputProps:st,resize:W,showGrip:O,...$})}),Xi="_helper_1jq7j_16",ue={helper:Xi,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},Yi=({title:t,error:e,className:n="",style:s,disabled:i=!1,"data-testid":a,"aria-label":l,"aria-describedby":c})=>{const u=!!e,p=L.clsx(ue.helper,u&&ue["helper--error"],i&&ue["helper--disabled"],n),_=i?t:e||t;return o.jsx("div",{className:p,style:s,"data-testid":a,"aria-label":l,"aria-describedby":c,children:o.jsx("p",{children:_})})},Zi="_radio_1n8zx_59",Ui="_checked_1n8zx_80",Gi="_error_1n8zx_85",Ki="_disabled_1n8zx_94",Ji="_icon_1n8zx_130",Qi="_small_1n8zx_138",tl="_medium_1n8zx_145",el="_large_1n8zx_152",rl="_label_1n8zx_159",nl="_container_1n8zx_185",ol="_input_1n8zx_198",al="_card_1n8zx_205",sl="_smallCard_1n8zx_211",il="_mediumCard_1n8zx_215",ll="_largeCard_1n8zx_219",pt={default:"_default_1n8zx_53",radio:Zi,checked:Ui,error:Gi,disabled:Ki,icon:Ji,small:Qi,medium:tl,large:el,label:rl,container:nl,input:ol,card:al,smallCard:sl,mediumCard:il,largeCard:ll},cl="radio-container-",dl="radio-label",ir=h.forwardRef((t,e)=>{const{name:n,id:s,value:i,size:a="large",loading:l=!1,error:c,disabled:u=!1,checked:p=!1,containerClassName:_,className:g,children:m,clickable:y="all",mode:v="default",tabIndex:S,style:b,containerStyle:x,onChange:d,"data-testid":C,...k}=t,T=!!c,E=u||l,j=y==="all",I=v==="card",N=pt[`${a}Card`],O=s??n,X=V=>{E||d==null||d(i,V)},W=V=>{V.key==="Enter"&&!E&&(V.preventDefault(),d==null||d(i))},$=V=>V.stopPropagation(),A=()=>o.jsxs("div",{className:L.clsx(pt.radio,pt[a],{[pt.checked]:p,[pt.disabled]:E,[pt.error]:T&&!E},g),style:b,tabIndex:S||1,"data-testid":`${cl}${O}`,children:[o.jsx("input",{"aria-errormessage":c,"aria-invalid":T,checked:p,className:pt.input,"data-testid":`radio-${O}`,disabled:E,id:O,name:n,ref:e,type:"radio",value:i,onChange:X,onClick:$}),o.jsx("svg",{"data-testid":`radio-icon-${O}`,viewBox:"0 0 8 8",className:pt.icon,children:o.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),H=()=>o.jsxs("label",{"aria-checked":p,"aria-disabled":E,"data-testid":j?C:dl,htmlFor:O,style:x,className:L.clsx(pt.label,{[L.clsx(pt.container,pt[v],_)]:j,[N]:j&&I}),onKeyDown:W,...k,children:[A(),j&&m]});return j?H():o.jsxs("div",{className:L.clsx(pt.container,pt[v],_,{[N]:I}),"data-testid":C,children:[H(),m]})}),ul="_group_tnviu_7",_l="_vertical_tnviu_12",pl="_horizontal_tnviu_16",Ve={group:ul,vertical:_l,horizontal:pl},fl=h.forwardRef((t,e)=>{const{id:n,name:s,value:i,options:a,className:l,radioClassName:c,disabled:u=!1,layout:p="vertical","data-testid":_,...g}=t;return o.jsx("div",{className:$t(Ve.group,Ve[p],l),"data-testid":_??`radio-group-${s}`,id:n,ref:e,children:a.map(({label:m,value:y,disabled:v})=>{const S=`${s}-${String(y)}`,b=String(y)===String(i);return o.jsx(ir,{id:S,checked:b,"data-testid":S,disabled:u||v,name:s,value:y,className:c,...g,children:m},S)})})}),gl=Object.assign(ir,{Group:fl}),hl="_root_1jj3e_25",bl="_unordered_1jj3e_39",xl="_ordered_1jj3e_43",ml="_sm_1jj3e_48",yl="_md_1jj3e_59",vl="_lg_1jj3e_70",Cl="_xl_1jj3e_81",_e={root:hl,unordered:bl,ordered:xl,sm:ml,md:yl,lg:vl,xl:Cl},wl=t=>{const{children:e,className:n,"data-testid":s="list-item"}=t;return o.jsx("li",{"data-testid":s,className:n,children:e})},Sl=Object.assign(h.forwardRef((t,e)=>{const{variant:n="unordered",className:s,children:i,size:a="md","data-testid":l="list",...c}=t,u=n==="ordered"?"ol":"ul";return o.jsx(u,{"data-testid":l,ref:e,className:$t(_e.root,_e[n],_e[a],s),...n==="ordered"&&c,children:i})}),{Item:wl}),kl="_wrapper_1v8xn_5",Ll="_viewport_1v8xn_12",jl="_mask_1v8xn_26",$l="_maskLeft_1v8xn_37",Tl="_maskRight_1v8xn_42",El="_visible_1v8xn_46",Rl="_control_1v8xn_51",Il="_xs_1v8xn_70",Nl="_sm_1v8xn_73",Ml="_md_1v8xn_76",Bl="_left_1v8xn_80",Pl="_right_1v8xn_83",dt={wrapper:kl,viewport:Ll,mask:jl,maskLeft:$l,maskRight:Tl,visible:El,control:Rl,xs:Il,sm:Nl,md:Ml,left:Bl,right:Pl},Al="white",Ol=({children:t,withControls:e=!0,className:n,size:s})=>{const i=h.useRef(null),[a,l]=h.useState(!1),[c,u]=h.useState(!1),{ref:p,bgColor:_}=ge(),g=p??{current:null},m=_??Al,y=e&&a,v=e&&c,S=({direction:d})=>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:d==="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"})})}),b=()=>{const d=i.current;if(!d)return;const C=Math.round(d.scrollLeft),k=Math.round(d.scrollLeft+d.clientWidth),T=Math.round(d.scrollWidth);l(C>0),u(k<T)},x=d=>{const C=i.current;if(!C)return;const k=C.clientWidth;C.scrollBy({left:d==="left"?-k:k,behavior:"smooth"})};return h.useEffect(()=>{const d=i.current;if(!d)return;const C=k=>{Math.abs(k.deltaX)>Math.abs(k.deltaY)||d.scrollWidth>d.clientWidth&&(k.preventDefault(),d.scrollBy({left:k.deltaY,behavior:"auto"}))};return d.addEventListener("wheel",C,{passive:!1}),()=>d.removeEventListener("wheel",C)},[]),h.useEffect(()=>{b();const d=i.current;if(d)return d.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",b),()=>{d.removeEventListener("scroll",b),window.removeEventListener("resize",b)}},[]),o.jsxs("div",{ref:g,className:L.clsx(dt.wrapper,n),children:[y&&o.jsx("div",{className:L.clsx(dt.mask,dt.maskLeft,a&&dt.visible),style:{background:`linear-gradient(to right, ${m} 17%, transparent 80%)`}}),v&&o.jsx("div",{className:L.clsx(dt.mask,dt.maskRight,c&&dt.visible),style:{background:`linear-gradient(to left, ${m} 17%, transparent 80%)`}}),o.jsx("div",{ref:i,className:dt.viewport,children:t}),y&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:L.clsx(dt.control,dt.left,dt[s]),onClick:()=>x("left"),children:o.jsx(S,{direction:"left"})}),v&&o.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:L.clsx(dt.control,dt.right,dt[s]),onClick:()=>x("right"),children:o.jsx(S,{direction:"right"})})]})},zl="_tabBar_1ndpm_82",Dl="_primary_1ndpm_88",Fl="_secondary_1ndpm_93",Wl="_tab_1ndpm_82",Hl="_md_1ndpm_125",Vl="_sm_1ndpm_129",ql="_xs_1ndpm_133",Xl="_disabled_1ndpm_137",Yl="_selected_1ndpm_143",Zl="_tabLabel_1ndpm_222",Ul="_tabPrefix_1ndpm_234",Gl="_tabPostfix_1ndpm_270",et={tabBar:zl,primary:Dl,secondary:Fl,tab:Wl,md:Hl,sm:Vl,xs:ql,disabled:Xl,selected:Yl,tabLabel:Zl,tabPrefix:Ul,tabPostfix:Gl},Kl="md",Jl=!1,Ql=8,tc="top-right-inside",lr=h.createContext(null),cr=()=>{const t=h.useContext(lr);if(!t)throw new Error("useTabs должен использоваться внутри TabsProvider");return t},ec=({children:t,defaultActiveTab:e,activeTab:n,onChange:s})=>{const[i,a]=h.useState(e),l=n!==void 0,c=l?n:i,u=p=>{l||a(p),s&&s(p)};return o.jsx(lr.Provider,{value:{activeTab:c,setTab:u},children:t})},rc=({mode:t,item:e,isActive:n,showBadge:s,badgeProps:i,size:a,isDisabled:l,onSelectTab:c})=>{const{value:u,label:p,prefix:_,prefixWrapperProps:g={},postfix:m,postfixWrapperProps:y={}}=e,{className:v,...S}=g,{className:b,...x}=y,d={primary:G["typography-label-3-medium"],secondary:G["typography-label-3-regular"],prefix:G["typography-label-3-medium"],postfix:G["typography-label-3-medium"]},C={size:Ql,position:tc,...i},k=L.clsx(et.tab,et[t],et[a],{[et.selected]:n,[et.disabled]:l}),T=L.clsx(et.tabPrefix,v,et[t],d.prefix,{[et.selected]:n,[et.disabled]:l}),E=L.clsx(et.tabPostfix,b,et[t],d.postfix,{[et.selected]:n,[et.disabled]:l}),j=L.clsx(et.tabLabel,et[t],d[t]),I=O=>{n||l||(c(u),O.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},N=o.jsxs("button",{className:k,role:"tab","aria-label":p,"aria-selected":n,"aria-disabled":l,"aria-controls":`tab-panel-${u}`,"data-testid":`tab-item-${u}`,onClick:I,children:[_&&o.jsx("span",{className:T,...S,"data-testid":`tab-prefix-${u}`,children:_}),o.jsx("span",{className:j,"data-testid":`tab-label-${u}`,children:p}),m&&o.jsx("span",{className:E,...x,"data-testid":`tab-postfix-${u}`,children:m})]});return s?o.jsx(tr,{...C,"data-testid":`tab-badge-${u}`,children:N}):N},nc=({mode:t,items:e,size:n=Kl,isAllItemsDisabled:s=Jl})=>{const{activeTab:i,setTab:a}=cr(),l=yo();return o.jsx(Ol,{size:n,withControls:l,children:o.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:L.clsx(et.tabBar,et[t]),children:e.map(c=>o.jsx(rc,{size:n,item:c,mode:t,showBadge:c.showBadge,badgeProps:c.badgeProps,isActive:i===c.value,isDisabled:s||c.isDisabled,onSelectTab:a},c.value))})})},oc=({tabValue:t,children:e,...n})=>o.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${t}`,"aria-labelledby":`tab-item-${t}`,...n,children:e}),ac=({children:t,...e})=>{const{activeTab:n}=cr(),s=Array.isArray(t)?t:[t],i=(a,l)=>h.isValidElement(a)&&typeof a.props=="object"&&a.props!==null&&l in a.props;return o.jsx("div",{"data-testid":"tab-content",...e,children:s.map(a=>i(a,"tabValue")&&String(a.props.tabValue)===n?a:null)})},sc={Provider:ec,Content:ac,Panel:oc,Bar:nc},ic="_root_1fbbw_34",lc="_open_1fbbw_51",cc="_xs_1fbbw_55",dc="_s_1fbbw_61",uc="_m_1fbbw_67",_c="_neutral_1fbbw_73",pc="_contrast_1fbbw_78",fc="_accent_1fbbw_84",gc="_typography_1fbbw_89",hc="_title_1fbbw_89",bc="_text_1fbbw_93",xc="_mediaWrapper_1fbbw_97",mc="_content_1fbbw_112",yc="_closeButton_1fbbw_116",vc="_hasMedia_1fbbw_142",Cc="_buttonStack_1fbbw_148",ut={root:ic,open:lc,xs:cc,s:dc,m:uc,neutral:_c,contrast:pc,accent:fc,typography:gc,title:hc,text:bc,mediaWrapper:xc,content:mc,closeButton:yc,hasMedia:vc,buttonStack:Cc},wc=()=>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"})}),Sc=()=>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},kc={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]}},Lc={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]}},jc={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"}]}},$c=(t,e,n)=>({...e,...n??{},...t}),Tc=(t,e,n)=>{const s=eo(e,1,3),i=jc[n][s];return i[Math.min(t,i.length-1)]},qe=({text:t,title:e,media:n,variant:s="neutral",size:i,classNames:a={},onClose:l,buttons:c,buttonProps:u,showClose:p})=>{const _=["neutral","accent"].includes(s)?"contrast":"primary",g=i==="m",m=!!(e&&g),y=!!(n&&g),v=c&&!!c.length,S=!!(p&&g)||!p&&g&&!v,b=i==="xs"?4:3;return o.jsxs("div",{className:ut.content,children:[y&&o.jsx("div",{className:L.clsx(ut.mediaWrapper,a.mediaWrapper),children:n}),o.jsxs("div",{className:a.textWrapper,children:[m&&o.jsx(Jt.Subtitle,{className:L.clsx(ut.typography,ut.title,a.typography),size:1,as:"h3",typographyStyle:_,children:e}),o.jsx(Jt.Label,{className:L.clsx(ut.typography,ut.text,a.typography),typographyStyle:_,size:b,children:t})]}),S&&o.jsx("button",{type:"button",className:L.clsx(ut.closeButton,ut[s],a.closeButton,{[ut.hasMedia]:y}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:o.jsx(wc,{})}),g&&v&&o.jsx("div",{className:ut.buttonStack,children:c.map((x,d)=>{const C=Tc(d,c.length,s),k=$c(x,C,u),{closeOnClick:T,...E}=k,j=I=>{var N;(N=E.onClick)==null||N.call(E,I),T&&(l==null||l())};return o.jsx(Gt,{...E,onClick:j},d)})})]})},Ec=({customContent:t,children:e,placement:n="top",contentClassNames:s,mouseEnterDelay:i=0,mouseLeaveDelay:a=.1,showArrow:l=!0,showClose:c=!0,trigger:u="hover",variant:p="neutral",size:_="s",text:g,title:m,media:y,buttons:v,buttonProps:S,onClose:b,...x})=>{const[d,C]=h.useState(!1),[k,T]=h.useState(!1),E=_==="m"?kc:Lc,j=()=>{C(!1),b==null||b()},I=t||(_==="m"?o.jsx(qe,{classNames:s,text:g,variant:p,size:_,onClose:j,title:m,media:y,showClose:c,buttons:v,buttonProps:S}):o.jsx(qe,{classNames:s,text:g,variant:p,size:_,onClose:j}));return h.useEffect(()=>{if(d){const N=requestAnimationFrame(()=>T(!0));return()=>cancelAnimationFrame(N)}T(!1)},[d]),o.jsx(Ir,{visible:d,onVisibleChange:C,classNames:{root:L.clsx(ut.root,ut[p],ut[_],k&&ut.open),...x.classNames},placement:n,overlay:()=>I,trigger:u,mouseEnterDelay:i,mouseLeaveDelay:a,motion:{motionName:"tooltipMotion"},builtinPlacements:E,showArrow:l?{content:o.jsx(Sc,{}),className:`tooltipArrow tooltipArrow-${_}`}:!1,destroyTooltipOnHide:!0,...x,children:e})},Rc="_segmentedControl_1yvz7_5",Ic="_segment_1yvz7_5",Nc="_activeSegmentIndicator_1yvz7_51",Mc="_stretched_1yvz7_82",Bc="_s_1yvz7_5",Pc="_icon_1yvz7_90",Ac="_label_1yvz7_94",Oc="_m_1yvz7_98",zc="_l_1yvz7_94",Pt={segmentedControl:Rc,segment:Ic,activeSegmentIndicator:Nc,stretched:Mc,s:Bc,icon:Pc,label:Ac,m:Oc,l:zc},Xe={s:G["typography-label-3-regular"],m:G["typography-label-2-regular"],l:G["typography-label-2-regular"]},Dc=t=>{var d;const{className:e,defaultValue:n,value:s,size:i="m",segments:a,stretched:l,mode:c="label",onChange:u}=t,p=h.useId(),[_,g]=h.useState(n||a[0].value),[m,y]=h.useState({width:0,left:0}),v=h.useRef(null);h.useEffect(()=>{s&&g(s)},[s]),h.useEffect(()=>{S()},[_,a,i,l,c]);const S=()=>{if(!(v!=null&&v.current))return;const C=v.current.querySelector('[data-is-active-segment="true"]');C&&y({width:C.offsetWidth,left:C.offsetLeft})},b=(d=a.find(C=>C.value===_))==null?void 0:d.label,x=C=>{g(C),u==null||u(C)};return(a==null?void 0:a.length)===0?null:o.jsxs("div",{className:L.clsx(Pt.segmentedControl,Pt[i],Pt[c],{[Pt.stretched]:l},e),"data-testid":"segmented-control-container",ref:v,children:[a==null?void 0:a.map(({label:C,value:k},T)=>{const E=()=>x(k);return o.jsxs(h.Fragment,{children:[o.jsx("input",{id:p+JSON.stringify(k),value:JSON.stringify(k),type:"radio",checked:_===k,onClick:E}),o.jsx("label",{"data-is-active-segment":_===k,className:L.clsx(Pt.segment,Xe[i]),htmlFor:p+JSON.stringify(k),"data-testid":"segmented-control-segment",children:C})]},Kt(JSON.stringify(k))+T)}),o.jsx("div",{className:L.clsx(Pt.activeSegmentIndicator,Xe[i]),"data-testid":"segmented-control-active-segment",style:{width:m.width,left:m.left},children:b})]})};exports.Alert=ga;exports.Avatar=Ge;exports.Badge=tr;exports.Button=Gt;exports.Checkbox=Ms;exports.ConfigProvider=rs;exports.Helper=Yi;exports.Image=La;exports.List=Sl;exports.Loader=pe;exports.Modal=ta;exports.Placeholder=Qe;exports.Radio=gl;exports.SegmentedControl=Dc;exports.Tabs=sc;exports.Tag=ys;exports.TextArea=qi;exports.TextInput=Pi;exports.Tooltip=Ec;exports.Typography=Jt;exports.enUS=er;exports.ruRU=ns;exports.useConfig=nr;exports.useLocale=ja;
|