skillgrid 0.0.39 → 0.0.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.type.d.ts +10 -5
- package/dist/components/Dialog/Dialog.d.ts +12 -3
- package/dist/components/Dialog/Dialog.type.d.ts +44 -12
- package/dist/components/Dialog/lib/index.d.ts +1 -0
- package/dist/components/Dialog/lib/use-dialog-draggable.d.ts +42 -0
- package/dist/components/Dialog/lib/use-dialog.d.ts +17 -9
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.type.d.ts +28 -12
- package/dist/components/Modal/assets/CrossIcon.d.ts +2 -0
- package/dist/components/Modal/assets/LeftChevronIcon.d.ts +2 -0
- package/dist/components/Modal/assets/index.d.ts +2 -0
- package/dist/components/Placeholder/Placeholder.type.d.ts +8 -5
- package/dist/components/Tabs/Tabs.type.d.ts +1 -1
- package/dist/index.cjs.js +11 -11
- package/dist/index.css +1 -1
- package/dist/index.es.js +2651 -2420
- 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
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./index.css');const g=require("react"),S=require("clsx"),$t=require("@floating-ui/react"),qr=require("rc-tooltip"),Ae=require("react-dom");function Hr(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return r.default=t,Object.freeze(r)}const nr=Hr(g);function Vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Kt={exports:{}},Wt={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var Oe;function Xr(){if(Oe)return Wt;Oe=1;var t=g,r=Symbol.for("react.element"),n=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function l(d,h,x){var c,b={},C=null,u=null;x!==void 0&&(C=""+x),h.key!==void 0&&(C=""+h.key),h.ref!==void 0&&(u=h.ref);for(c in h)a.call(h,c)&&!s.hasOwnProperty(c)&&(b[c]=h[c]);if(d&&d.defaultProps)for(c in h=d.defaultProps,h)b[c]===void 0&&(b[c]=h[c]);return{$$typeof:r,type:d,key:C,ref:u,props:b,_owner:i.current}}return Wt.Fragment=n,Wt.jsx=l,Wt.jsxs=l,Wt}var qt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,21 +14,21 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),J=O.length-1,
|
|
21
|
-
`+O[J].replace(" at new "," at ");return
|
|
17
|
+
*/var Be;function Ur(){return Be||(Be=1,process.env.NODE_ENV!=="production"&&(function(){var t=g,r=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),u=Symbol.for("react.offscreen"),f=Symbol.iterator,y="@@iterator";function _(o){if(o===null||typeof o!="object")return null;var w=f&&o[f]||o[y];return typeof w=="function"?w:null}var m=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function p(o){{for(var w=arguments.length,j=new Array(w>1?w-1:0),N=1;N<w;N++)j[N-1]=arguments[N];v("error",o,j)}}function v(o,w,j){{var N=m.ReactDebugCurrentFrame,W=N.getStackAddendum();W!==""&&(w+="%s",j=j.concat([W]));var X=j.map(function(P){return String(P)});X.unshift("Warning: "+w),Function.prototype.apply.call(console[o],console,X)}}var L=!1,T=!1,k=!1,$=!1,R=!1,I;I=Symbol.for("react.module.reference");function A(o){return!!(typeof o=="string"||typeof o=="function"||o===a||o===s||R||o===i||o===x||o===c||$||o===u||L||T||k||typeof o=="object"&&o!==null&&(o.$$typeof===C||o.$$typeof===b||o.$$typeof===l||o.$$typeof===d||o.$$typeof===h||o.$$typeof===I||o.getModuleId!==void 0))}function D(o,w,j){var N=o.displayName;if(N)return N;var W=w.displayName||w.name||"";return W!==""?j+"("+W+")":j}function F(o){return o.displayName||"Context"}function E(o){if(o==null)return null;if(typeof o.tag=="number"&&p("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case a:return"Fragment";case n:return"Portal";case s:return"Profiler";case i:return"StrictMode";case x:return"Suspense";case c:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case d:var w=o;return F(w)+".Consumer";case l:var j=o;return F(j._context)+".Provider";case h:return D(o,o.render,"ForwardRef");case b:var N=o.displayName||null;return N!==null?N:E(o.type)||"Memo";case C:{var W=o,X=W._payload,P=W._init;try{return E(P(X))}catch{return null}}}return null}var M=Object.assign,q=0,H,U,G,z,K,Z,Q;function it(){}it.__reactDisabledLog=!0;function kt(){{if(q===0){H=console.log,U=console.info,G=console.warn,z=console.error,K=console.group,Z=console.groupCollapsed,Q=console.groupEnd;var o={configurable:!0,enumerable:!0,value:it,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}q++}}function bt(){{if(q--,q===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},o,{value:H}),info:M({},o,{value:U}),warn:M({},o,{value:G}),error:M({},o,{value:z}),group:M({},o,{value:K}),groupCollapsed:M({},o,{value:Z}),groupEnd:M({},o,{value:Q})})}q<0&&p("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var lt=m.ReactCurrentDispatcher,Et;function pt(o,w,j){{if(Et===void 0)try{throw Error()}catch(W){var N=W.stack.trim().match(/\n( *(at )?)/);Et=N&&N[1]||""}return`
|
|
18
|
+
`+Et+o}}var Zt=!1,At;{var se=typeof WeakMap=="function"?WeakMap:Map;At=new se}function Yt(o,w){if(!o||Zt)return"";{var j=At.get(o);if(j!==void 0)return j}var N;Zt=!0;var W=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var X;X=lt.current,lt.current=null,kt();try{if(w){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(ct){N=ct}Reflect.construct(o,[],P)}else{try{P.call()}catch(ct){N=ct}o.call(P.prototype)}}else{try{throw Error()}catch(ct){N=ct}o()}}catch(ct){if(ct&&N&&typeof ct.stack=="string"){for(var O=ct.stack.split(`
|
|
19
|
+
`),st=N.stack.split(`
|
|
20
|
+
`),J=O.length-1,tt=st.length-1;J>=1&&tt>=0&&O[J]!==st[tt];)tt--;for(;J>=1&&tt>=0;J--,tt--)if(O[J]!==st[tt]){if(J!==1||tt!==1)do if(J--,tt--,tt<0||O[J]!==st[tt]){var ht=`
|
|
21
|
+
`+O[J].replace(" at new "," at ");return o.displayName&&ht.includes("<anonymous>")&&(ht=ht.replace("<anonymous>",o.displayName)),typeof o=="function"&&At.set(o,ht),ht}while(J>=1&&tt>=0);break}}}finally{Zt=!1,lt.current=X,bt(),Error.prepareStackTrace=W}var Bt=o?o.displayName||o.name:"",Nt=Bt?pt(Bt):"";return typeof o=="function"&&At.set(o,Nt),Nt}function ie(o,w,j){return Yt(o,!1)}function le(o){var w=o.prototype;return!!(w&&w.isReactComponent)}function nt(o,w,j){if(o==null)return"";if(typeof o=="function")return Yt(o,le(o));if(typeof o=="string")return pt(o);switch(o){case x:return pt("Suspense");case c:return pt("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case h:return ie(o.render);case b:return nt(o.type,w,j);case C:{var N=o,W=N._payload,X=N._init;try{return nt(X(W),w,j)}catch{}}}return""}var ot=Object.prototype.hasOwnProperty,yt={},we=m.ReactDebugCurrentFrame;function Gt(o){if(o){var w=o._owner,j=nt(o.type,o._source,w?w.type:null);we.setExtraStackFrame(j)}else we.setExtraStackFrame(null)}function vr(o,w,j,N,W){{var X=Function.call.bind(ot);for(var P in o)if(X(o,P)){var O=void 0;try{if(typeof o[P]!="function"){var st=Error((N||"React class")+": "+j+" type `"+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[P]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}O=o[P](w,P,N,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(J){O=J}O&&!(O instanceof Error)&&(Gt(W),p("%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).",N||"React class",j,P,typeof O),Gt(null)),O instanceof Error&&!(O.message in yt)&&(yt[O.message]=!0,Gt(W),p("Failed %s type: %s",j,O.message),Gt(null))}}}var wr=Array.isArray;function ce(o){return wr(o)}function Cr(o){{var w=typeof Symbol=="function"&&Symbol.toStringTag,j=w&&o[Symbol.toStringTag]||o.constructor.name||"Object";return j}}function kr(o){try{return Ce(o),!1}catch{return!0}}function Ce(o){return""+o}function ke(o){if(kr(o))return p("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Cr(o)),Ce(o)}var Se=m.ReactCurrentOwner,Sr={key:!0,ref:!0,__self:!0,__source:!0},Le,je;function Lr(o){if(ot.call(o,"ref")){var w=Object.getOwnPropertyDescriptor(o,"ref").get;if(w&&w.isReactWarning)return!1}return o.ref!==void 0}function jr(o){if(ot.call(o,"key")){var w=Object.getOwnPropertyDescriptor(o,"key").get;if(w&&w.isReactWarning)return!1}return o.key!==void 0}function $r(o,w){typeof o.ref=="string"&&Se.current}function Tr(o,w){{var j=function(){Le||(Le=!0,p("%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)",w))};j.isReactWarning=!0,Object.defineProperty(o,"key",{get:j,configurable:!0})}}function Er(o,w){{var j=function(){je||(je=!0,p("%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)",w))};j.isReactWarning=!0,Object.defineProperty(o,"ref",{get:j,configurable:!0})}}var Rr=function(o,w,j,N,W,X,P){var O={$$typeof:r,type:o,key:w,ref:j,props:P,_owner:X};return O._store={},Object.defineProperty(O._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(O,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(O,"_source",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.freeze&&(Object.freeze(O.props),Object.freeze(O)),O};function Ir(o,w,j,N,W){{var X,P={},O=null,st=null;j!==void 0&&(ke(j),O=""+j),jr(w)&&(ke(w.key),O=""+w.key),Lr(w)&&(st=w.ref,$r(w,W));for(X in w)ot.call(w,X)&&!Sr.hasOwnProperty(X)&&(P[X]=w[X]);if(o&&o.defaultProps){var J=o.defaultProps;for(X in J)P[X]===void 0&&(P[X]=J[X])}if(O||st){var tt=typeof o=="function"?o.displayName||o.name||"Unknown":o;O&&Tr(P,tt),st&&Er(P,tt)}return Rr(o,O,st,W,N,Se.current,P)}}var de=m.ReactCurrentOwner,$e=m.ReactDebugCurrentFrame;function Ot(o){if(o){var w=o._owner,j=nt(o.type,o._source,w?w.type:null);$e.setExtraStackFrame(j)}else $e.setExtraStackFrame(null)}var ue;ue=!1;function _e(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}function Te(){{if(de.current){var o=E(de.current.type);if(o)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+
|
|
23
|
+
Check the render method of \``+o+"`."}return""}}function Nr(o){return""}var Ee={};function Mr(o){{var w=Te();if(!w){var j=typeof o=="string"?o:o.displayName||o.name;j&&(w=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+j+">.")}return
|
|
25
|
+
Check the top-level render call using <`+j+">.")}return w}}function Re(o,w){{if(!o._store||o._store.validated||o.key!=null)return;o._store.validated=!0;var j=Mr(w);if(Ee[j])return;Ee[j]=!0;var N="";o&&o._owner&&o._owner!==de.current&&(N=" It was passed a child from "+E(o._owner.type)+"."),Ot(o),p('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,N),Ot(null)}}function Ie(o,w){{if(typeof o!="object")return;if(ce(o))for(var j=0;j<o.length;j++){var N=o[j];_e(N)&&Re(N,w)}else if(_e(o))o._store&&(o._store.validated=!0);else if(o){var W=_(o);if(typeof W=="function"&&W!==o.entries)for(var X=W.call(o),P;!(P=X.next()).done;)_e(P.value)&&Re(P.value,w)}}}function Ar(o){{var w=o.type;if(w==null||typeof w=="string")return;var j;if(typeof w=="function")j=w.propTypes;else if(typeof w=="object"&&(w.$$typeof===h||w.$$typeof===b))j=w.propTypes;else return;if(j){var N=E(w);vr(j,o.props,"prop",N,o)}else if(w.PropTypes!==void 0&&!ue){ue=!0;var W=E(w);p("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",W||"Unknown")}typeof w.getDefaultProps=="function"&&!w.getDefaultProps.isReactClassApproved&&p("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Or(o){{for(var w=Object.keys(o.props),j=0;j<w.length;j++){var N=w[j];if(N!=="children"&&N!=="key"){Ot(o),p("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),Ot(null);break}}o.ref!==null&&(Ot(o),p("Invalid attribute `ref` supplied to `React.Fragment`."),Ot(null))}}var Ne={};function Me(o,w,j,N,W,X){{var P=A(o);if(!P){var O="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(O+=" 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 st=Nr();st?O+=st:O+=Te();var J;o===null?J="null":ce(o)?J="array":o!==void 0&&o.$$typeof===r?(J="<"+(E(o.type)||"Unknown")+" />",O=" Did you accidentally export a JSX literal instead of a component?"):J=typeof o,p("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",J,O)}var tt=Ir(o,w,j,W,X);if(tt==null)return tt;if(P){var ht=w.children;if(ht!==void 0)if(N)if(ce(ht)){for(var Bt=0;Bt<ht.length;Bt++)Ie(ht[Bt],o);Object.freeze&&Object.freeze(ht)}else p("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 Ie(ht,o)}if(ot.call(w,"key")){var Nt=E(o),ct=Object.keys(w).filter(function(Wr){return Wr!=="key"}),pe=ct.length>0?"{key: someKey, "+ct.join(": ..., ")+": ...}":"{key: someKey}";if(!Ne[Nt+pe]){var Fr=ct.length>0?"{"+ct.join(": ..., ")+": ...}":"{}";p(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,pe,Nt,Fr,Nt),Ne[Nt+pe]=!0}}return o===a?Or(tt):Ar(tt),tt}}function Br(o,w,j){return Me(o,w,j,!0)}function Pr(o,w,j){return Me(o,w,j,!1)}var zr=Pr,Dr=Br;qt.Fragment=a,qt.jsx=zr,qt.jsxs=Dr})()),qt}var Pe;function Zr(){return Pe||(Pe=1,process.env.NODE_ENV==="production"?Kt.exports=Xr():Kt.exports=Ur()),Kt.exports}var e=Zr();const Yr=t=>t.as==="a",Gr=t=>t.as===void 0||t.as==="button",ze=t=>t.displayAs===void 0||t.displayAs==="button",Kr=t=>t.displayAs==="link",Jr="_button_11kkg_1",Qr="_link_11kkg_22",tn="_disabled_11kkg_27",en="_loading_11kkg_27",rn="_neutral_11kkg_59",nn="_accent_11kkg_63",on="_positive_11kkg_67",an="_negative_11kkg_71",sn="_contrast_11kkg_75",ln="_primary_11kkg_79",cn="_secondary_11kkg_80",dn="_tertiary_11kkg_81",un="_gray_11kkg_91",_n="_spaceBetween_11kkg_119",pn="_rightGroup_11kkg_119",fn="_withSubcaption_11kkg_127",gn="_label_11kkg_139",hn="_icon_11kkg_148",xn="_labelText_11kkg_153",mn="_isLink_11kkg_159",bn="_iconOnly_11kkg_174",yn="_stretched_11kkg_190",vn="_postfix_11kkg_195",wn="_underline_11kkg_225",Cn="_backButton_11kkg_428",kn="_warning_11kkg_1159",Sn="_subcaption_11kkg_1389",Ln="_content_11kkg_1394",jn="_contentHidden_11kkg_1398",$n="_loaderWrapper_11kkg_1402",Tn="_l_11kkg_22",En="_m_11kkg_1441",Rn="_s_11kkg_80",In="_xs_11kkg_1484",Nn="_noPaddings_11kkg_1506",Mn="_iconRight_11kkg_1542",An="_spin_11kkg_1",V={button:Jr,link:Qr,disabled:tn,loading:en,neutral:rn,accent:nn,positive:on,negative:an,contrast:sn,primary:ln,secondary:cn,tertiary:dn,gray:un,spaceBetween:_n,rightGroup:pn,withSubcaption:fn,label:gn,icon:hn,labelText:xn,isLink:mn,iconOnly:bn,stretched:yn,postfix:vn,underline:wn,backButton:Cn,warning:kn,subcaption:Sn,content:Ln,contentHidden:jn,loaderWrapper:$n,l:Tn,m:En,s:Rn,xs:In,noPaddings:Nn,iconRight:Mn,spin:An},On=new Set(["mode","size","buttonStyle","loading","disabled","displayAs","stretched","iconRight","className","children","subcaption","postfix","iconLeft","as","showUnderline","isExternal","asBackButton","paddings"]),De=t=>{const r={};for(const n in t)On.has(n)||(r[n]=t[n]);return r},Bn={l:"typography-subtitle-1-semibold",m:"typography-label-2-regular",s:"typography-label-3-regular"};function Pn(t){return Bn[t]||"typography-label-2-regular"}const zn=(t,r,n)=>t?"gray":r==="primary"?{contrast:"neutral",gray:"gray"}[n]??"contrast":n==="warning"?"neutral":n,et={"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"},Dn="_loader_isv17_1",Fn="_spin_isv17_1",Wn="_accent_isv17_19",qn="_neutral_isv17_23",Hn="_positive_isv17_27",Vn="_negative_isv17_31",Xn="_gray_isv17_35",Un="_special_isv17_39",Zn="_contrast_isv17_43",Yn="_container_isv17_47",Gn="_overlay_isv17_57",Xt={loader:Dn,spin:Fn,accent:Wn,neutral:qn,positive:Hn,negative:Vn,gray:Xn,special:Un,contrast:Zn,container:Yn,overlay:Gn,"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 fe={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 Wt;function Gn(){return Wt||(Wt=1,(function(e){(function(){var r={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(a=i(a,o(d)))}return a}function o(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 d in a)r.call(a,d)&&a[d]&&(l=i(l,d));return l}function i(a,l){return l?a?a+" "+l:a+l:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(pt)),pt.exports}var Kn=Gn();const we=Hr(Kn),nr=h.forwardRef(({size:e=24,variant:r="accent",className:n,"data-testid":o="loader",style:i,...a},l)=>{const d=we(Ve.loader,Ve[r],Ve[`size-${e}`],n);return t.jsx("svg",{ref:l,className:d,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":o,style:i,...a,children:t.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"})})}),Jn=h.forwardRef((e,r)=>{const{loading:n=!1,size:o=24,variant:i="accent",children:a,className:l,style:d,"data-testid":f,...g}=e,c=we(Ve.container,l);return t.jsxs("div",{ref:r,className:c,style:d,"data-testid":f,...g,children:[a,n&&t.jsx("div",{className:Ve.overlay,children:t.jsx(nr,{size:o,variant:i,"data-testid":`${f}-spinner`})})]})}),st=h.forwardRef((e,r)=>e.children?t.jsx(Jn,{ref:r,...e}):t.jsx(nr,{ref:r,...e})),Qn=e=>t.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:t.jsx("path",{d:"M14 2L2 14M2 2L14 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),es=({width:e=24,height:r=24,className:n="",color:o="currentColor",...i})=>t.jsx("svg",{className:n,width:e,height:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:t.jsx("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7",stroke:o,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),ts={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},rs=e=>ts[e]||"typography-subtitle-2-semibold",Ft=({iconRight:e,iconLeft:r,children:n,postfix:o,subcaption:i,size:a,isAsButton:l})=>{const d=!!(i&&l&&a==="l"),f=!!(!n&&l&&r),g=l&&!!(d&&!n&&o||o&&!d);return t.jsxs(h.Fragment,{children:[d&&n&&t.jsxs(h.Fragment,{children:[t.jsx("span",{"data-testid":"button-label",className:S.clsx(V.label,V.labelText),children:n}),t.jsx("span",{"data-testid":"button-subcaption",className:S.clsx(V.subcaption,te["typography-label-4-regular"]),children:i})]}),!d&&n&&t.jsxs("span",{"data-testid":"button-label",className:V.label,children:[r&&t.jsx("span",{"data-testid":"button-left-icon",className:V.icon,children:r}),t.jsx("span",{className:S.clsx(V.labelText,{[V.isLink]:!l}),children:n}),!l&&e&&t.jsx("span",{"data-testid":"button-icon",className:S.clsx(V.icon,V.iconRight),children:e})]}),f&&t.jsx("span",{"data-testid":"button-icon",className:V.icon,children:l?r:e}),g&&t.jsx("div",{"data-testid":"button-right-group",className:V.rightGroup,children:t.jsx("span",{"data-testid":"button-postfix",className:S.clsx(V.postfix,te["typography-subtitle-2-semibold"]),children:o})})]})},bt=h.forwardRef((e,r)=>{const{mode:n="primary",size:o="m",buttonStyle:i=zt(e)?"neutral":"accent",disabled:a=!1,className:l,children:d,tabIndex:f}=e,g=n==="tertiary",c=zt(e),x=Gr(e),C=g&&"paddings"in e?e.paddings??!0:!0,u=c?e.subcaption:void 0,p=c?e.postfix:void 0,m=c?e.stretched:void 0,b=!(x&&e.size===void 0),v=x&&b?e.iconLeft:void 0,_=x&&b?e.iconRight:void 0,w=!!(c&&"loading"in e&&e.loading),k=c?a:a||w,T=!k&&!w,$=c?e.iconLeft:void 0,E=!!(!d&&(c&&$&&!p||x&&_)),R=typeof m=="object"?m.justify==="space-between":void 0,I=rs(o),B=te[I],D=x?Bn(e.size??"m"):void 0,W=D?te[D]:void 0,L=Pn(k,n,i),M=k||w?-1:f,q=S.clsx(V.button,V[o],V[n],V[i],x&&W,c&&B,{[V.disabled]:k,[V.loading]:c&&"loading"in e&&e.loading,[V.stretched]:m,[V.spaceBetween]:R,[V.withSubcaption]:!!(u&&o==="l"&&d),[V.iconOnly]:E,[V.link]:x,[V.underline]:x&&"showUnderline"in e&&e.showUnderline,[V.noPaddings]:g&&c&&!C},l),H={iconRight:_,iconLeft:c?$:v,children:d,postfix:p,subcaption:u,size:o,isAsButton:c};if(Ur(e)){const{href:Z,onClick:G,style:z,target:K,rel:U,"data-testid":Q,...ie}=e,ke=Dt(ie),ye=K??(e.isExternal?"_blank":void 0);let le=U;if(ye==="_blank"){const pe=new Set((U??"").split(/\s+/).filter(Boolean));pe.add("noopener").add("noreferrer"),le=Array.from(pe).join(" ")}const Ee=pe=>{if(!T){pe.preventDefault();return}G==null||G(pe)};return t.jsx("a",{ref:r,className:q,href:T?Z:void 0,tabIndex:M,onClick:Ee,"data-testid":Q,"aria-disabled":k||w,style:z,target:ye,rel:le,...ke,children:t.jsx(Ft,{...H})})}if(Yr(e)){const{type:Z="button",onClick:G,style:z,"data-testid":K,...U}=e,Q=Dt(U),ie=o==="l"?24:16,ke=ye=>{T&&G&&G(ye)};return t.jsxs("button",{ref:r,type:Z,className:q,disabled:k,tabIndex:M,onClick:ke,"data-testid":K,"aria-disabled":k||w,style:z,...Q,children:[t.jsx("div",{className:S.clsx(V.content,{[V.contentHidden]:w}),children:t.jsx(Ft,{...H})}),w&&t.jsx("div",{className:V.loaderWrapper,children:t.jsx(st,{variant:L,"aria-hidden":"true","data-testid":"button-loader",size:ie})})]})}return null});bt.displayName="Button";const sr=h.forwardRef((e,r)=>{const{iconLeft:n,className:o,...i}=e,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:n??t.jsx(es,{}),className:S.clsx(V.backButton,te["typography-subtitle-1-semibold"],o)};return t.jsx(bt,{ref:r,...l})});sr.displayName="Button.Back";const Xe=Object.assign(bt,{Back:sr}),ns="_avatar_19ug4_18",ss="_clickable_19ug4_40",os="_icon_19ug4_57",as="_disabled_19ug4_62",is="_loading_19ug4_67",ls="_image_19ug4_73",cs="_name_19ug4_73",Ce={avatar:ns,clickable:ss,icon:os,disabled:as,loading:is,image:ls,name:cs,"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"},qt=99;function ds(e){return e<qt?`+${e}`:`${qt}+`}function nt(e){const r=typeof e=="string"?e:JSON.stringify(e);let n=5381;for(let o=0;o<r.length;o++){const i=r.charCodeAt(o);n=(n<<5)+n+i}return n>>>0}const us=(e,r,n)=>Math.min(Math.max(e,r),n),_s=["red","orange","yellow","green","blue","lightblue","purple"];function ps(e,r=_s){if(!e)return"gray";const n=nt(e),o=Math.abs(n)%r.length;return r[o]}const Ht=2;function fs(e){if(!e)return"";const r=e.trim().split(/\s+/);return r.length===1?e.slice(0,Ht).toUpperCase():r.map(n=>n[0]).slice(0,Ht).join("").toUpperCase()}const gs={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function hs(e,r){return r==="circle"?e/2:gs[e]||12}const xs={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 ms(e){return xs[e]||"typography-subtitle-1-semibold"}const bs="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",ys="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",vs="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",Cs="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",ws={male:bs,female:ys,org:Cs,neutral:vs},tt=h.forwardRef((e,r)=>{const{style:n,size:o=40,isLoading:i=!1,isDisabled:a=!1,shape:l="circle",variant:d="filled",placeholderType:f="neutral",name:g,imgSrc:c,imgAlt:x,icon:C,imgProps:u,colorScheme:p,className:m,"data-testid":b,...v}=e,{onClick:_,onPointerDown:w}=v,T=!a&&!i&&(!!_||!!w),[$,E]=h.useState(!1);h.useEffect(()=>{c&&E(!1)},[c]);const R=c&&!$?"image":C?"icon":g?"name":"placeholder",I=p||R==="name"&&ps(g)||"gray",B=ms(o),D=hs(o,l),W=S.clsx(m,Ce.avatar,Ce[`variant-${d}`],Ce[`color-${I}`],te[B],{[Ce.disabled]:a,[Ce.loading]:i,[Ce.clickable]:T}),L={"--avatar-size":`${o}px`,"--avatar-border-radius":`${D}px`,...n},M={icon:()=>t.jsx("span",{"data-testid":"avatar-icon",title:x||void 0,role:"img",className:Ce.icon,children:C==null?void 0:C({})}),name:()=>t.jsx("span",{role:"textbox","data-testid":"avatar-name",className:Ce.name,title:x||void 0,children:fs(g||"")}),placeholder:()=>t.jsx("img",{...u,"data-testid":"avatar-placeholder",className:Ce.image,src:ws[f],alt:x||void 0}),image:()=>t.jsx("img",{"data-testid":"avatar-image",...u,className:Ce.image,src:c||void 0,alt:x||void 0,onLoad:()=>E(!1),onError:H=>{var Z;E(!0),(Z=u==null?void 0:u.onError)==null||Z.call(u,H)}})},q=H=>{T&&(_==null||_(H))};return t.jsx("div",{ref:r,onClick:q,className:W,style:L,"data-testid":b,"aria-disabled":a||i,children:M[R](null)})}),ks="_avatarGroup_157g4_1",Ss={avatarGroup:ks},js=e=>e==="rgba(0, 0, 0, 0)"||e==="transparent"||e.startsWith("rgba")&&e.endsWith(", 0)"),Ls=e=>{if(!e)return null;let r=e;for(;r;){const o=window.getComputedStyle(r).backgroundColor;if(!js(o))return o;r=r.parentElement}return null},yt=()=>{const e=h.useRef(null),[r,n]=h.useState(null);return h.useEffect(()=>{if(e.current){const o=Ls(e.current);n(o)}},[]),{ref:e,bgColor:r}};function Vt(e,r,n){h.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}const Xt={passive:!0};function $s(){const[e,r]=h.useState({width:0,height:0}),n=h.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Vt("resize",n,Xt),Vt("orientationchange",n,Xt),h.useEffect(n,[]),e}function Ts(e=768){const{width:r}=$s();return h.useMemo(()=>r<=e,[r,e])}const Es=2,Rs=e=>{const{avatars:r=[],size:n=40,overlap:o=.3,shape:i="circle",overflowCount:a=0,overflowProps:l,cutoutBackground:d}=e,g=-(n*o)+Es,{ref:c,bgColor:x}=yt(),C=d||x||"#ffffff",u=we(Ss.avatarGroup),p={"--avatar-cutout-bg":C};return r.length===0?null:t.jsxs("div",{className:u,ref:c,style:p,children:[r.map((m,b)=>{if(m.wrapper){const v=m.wrapper;return t.jsx("div",{style:{marginRight:g},children:t.jsx(v,{children:t.jsx(tt,{size:n,shape:i,...m})})},nt(m)+b)}return t.jsx("div",{style:{marginRight:g},children:t.jsx(tt,{size:n,shape:i,...m})},nt(m)+b)}),a>0&&t.jsx("div",{style:{marginRight:g},children:t.jsx(tt,{size:n,shape:i,icon:()=>ds(a),colorScheme:"gray",variant:"light",...l})})]})},or=Object.assign(tt,{Group:Rs}),Ns="_overlay_g6rp8_6",Is="_container_g6rp8_20",ft={overlay:Ns,container:Is,"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 Ms(e){switch(e){case"default":return"top";case"mobile":return"bottom";case"center":default:return}}const Os=e=>{switch(e){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 As({open:e,onOpenChange:r,placement:n="center",disableOutsideClick:o=!1,disableEscapeKey:i=!1}){const a=h.useCallback(m=>{r==null||r(m)},[r]),l=Ms(n),{context:d,refs:f}=$e.useFloating({open:e,onOpenChange:a,placement:l}),g=Os(n),{isMounted:c,styles:x}=$e.useTransitionStyles(d,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:l,position:"fixed",opacity:0},...g}),C=$e.useDismiss(d,{outsidePress:!o,outsidePressEvent:"mousedown",escapeKey:!i}),u=$e.useRole(d,{role:"dialog"}),{getFloatingProps:p}=$e.useInteractions([C,u]);return h.useMemo(()=>({isMounted:c,transitionStyles:x,context:d,refs:f,getFloatingProps:p}),[c,x,d,f,p])}const ar=h.forwardRef((e,r)=>{const{placement:n="default",open:o,onOpenChange:i,overlayClassName:a,children:l,disableOutsideClick:d=!1,disableEscapeKey:f=!1,className:g,style:c,"data-testid":x,...C}=e;o===void 0&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const u=As({open:o,onOpenChange:i,placement:n,disableOutsideClick:d,disableEscapeKey:f}),{isMounted:p,transitionStyles:m}=u,b=$e.useMergeRefs([r,u.refs.setFloating]);return p?t.jsxs($e.FloatingPortal,{children:[t.jsx($e.FloatingOverlay,{"data-testid":"dialog-overlay",className:S.clsx(ft.overlay,a),lockScroll:!0,style:{opacity:m==null?void 0:m.opacity,transition:m==null?void 0:m.transition}}),t.jsx($e.FloatingFocusManager,{context:u.context,children:t.jsx("div",{ref:b,"aria-modal":"true",role:"dialog",className:S.clsx(g,ft.container,ft[`placement-${n}`]),style:{...c,...m},"data-testid":x,...u.getFloatingProps(C),children:l})})]}):null}),Bs="_container_e56bn_5",Ps="_header_e56bn_22",zs="_title_e56bn_32",Ds="_subTitle_e56bn_36",Ws="_actions_e56bn_40",Fs="_content_e56bn_62",qs="_footer_e56bn_75",Hs="_divider_e56bn_82",xe={container:Bs,header:Ps,title:zs,subTitle:Ds,actions:Ws,"title-text":"_title-text_e56bn_46","description-text":"_description-text_e56bn_54",content:Fs,"content-for-side-drawer":"_content-for-side-drawer_e56bn_69",footer:qs,divider:Hs},Vs="_typography_zt7xg_1",Xs="_disabled_zt7xg_8",Zs="_primary_zt7xg_13",Us="_secondary_zt7xg_18",Ys="_tertiary_zt7xg_23",Gs="_accent_zt7xg_28",Ks="_positive_zt7xg_38",Js="_negative_zt7xg_48",Qs="_warning_zt7xg_58",eo="_special_zt7xg_68",to="_contrast_zt7xg_78",ze={typography:Vs,disabled:Xs,primary:Zs,secondary:Us,tertiary:Ys,accent:Gs,"accent-secondary":"_accent-secondary_zt7xg_33",positive:Ks,"positive-secondary":"_positive-secondary_zt7xg_43",negative:Js,"negative-secondary":"_negative-secondary_zt7xg_53",warning:Qs,"warning-secondary":"_warning-secondary_zt7xg_63",special:eo,"special-secondary":"_special-secondary_zt7xg_73",contrast:to,"contrast-secondary":"_contrast-secondary_zt7xg_83"},ro={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Zt=e=>{const r=rr.forwardRef(({size:n=3,children:o,className:i,"data-testid":a,as:l,fontWeight:d="semibold",disabled:f=!1,typographyStyle:g="primary",...c},x)=>{const C=l||ro[n],u=S.clsx(ze.typography,te[`typography-${e}-${n}-${d}`],ze[g],{[ze.disabled]:f},i);return o?t.jsx(C,{ref:x,className:u,"data-testid":a,...c,children:o}):null});return r.displayName=`Typography.${e==="title"?"Title":"Subtitle"}`,r},Ut=e=>{const r=rr.forwardRef(({size:n=3,children:o,className:i,"data-testid":a,as:l="p",fontWeight:d="regular",disabled:f=!1,typographyStyle:g="primary",...c},x)=>{const C=l,u=S.clsx(ze.typography,te[`typography-${e}-${n}-${d}`],ze[g],{[ze.disabled]:f},i);return o?t.jsx(C,{ref:x,className:u,"data-testid":a,...c,children:o}):null});return r.displayName=`Typography.${e.charAt(0).toUpperCase()+e.slice(1)}`,r},Ne={Title:Zt("title"),Subtitle:Zt("subtitle"),Label:Ut("label"),Paragraph:Ut("paragraph")},{Paragraph:no,Title:so}=Ne,oo=["right-drawer","left-drawer"],ao=e=>{const{closeButtonProps:r,onOpenChange:n}=e,{wrapper:o,...i}=r||{},a={size:"xs",mode:"primary",buttonStyle:"gray",iconLeft:t.jsx(Qn,{}),"aria-label":"Close modal",onClick:()=>n(!1),...i};return o?t.jsx(o,{children:t.jsx(Xe,{...a})}):t.jsx(Xe,{...a})},io=h.forwardRef((e,r)=>{const{open:n,onOpenChange:o,size:i,placement:a="default",showCloseButton:l=!0,closeButtonProps:d,title:f,subTitle:g,actions:c,children:x,footer:C,hideHeaderDivider:u,hideFooterDivider:p,className:m,classNames:b,styles:v,..._}=e,w=oo.includes(a),k=!!(f||g||c);return t.jsx(ar,{open:n,onOpenChange:o,placement:a,ref:r,style:{width:i},..._,children:t.jsxs("div",{className:S.clsx(xe.container,m,b==null?void 0:b.container),style:{width:i,...v==null?void 0:v.container},"data-testid":_["data-testid"]?`${_["data-testid"]}-container`:void 0,children:[k&&t.jsxs("div",{className:xe.header,children:[t.jsx("div",{className:S.clsx(xe.title,b==null?void 0:b.title),style:v==null?void 0:v.title,children:typeof f=="string"?t.jsx(so,{size:5,className:xe["title-text"],children:f}):f}),t.jsxs("div",{className:xe.actions,children:[c,l&&t.jsx(ao,{closeButtonProps:d,onOpenChange:o})]}),g&&t.jsx("div",{className:S.clsx(xe.subTitle,b==null?void 0:b.subTitle),style:v==null?void 0:v.subTitle,children:typeof g=="string"?t.jsx(no,{size:2,typographyStyle:"secondary",className:xe["description-text"],children:g}):g})]}),!u&&k&&t.jsx("hr",{className:xe.divider}),t.jsx("div",{className:S.clsx(w?xe["content-for-side-drawer"]:xe.content,b==null?void 0:b.content),style:{...v==null?void 0:v.content},"data-testid":_["data-testid"]?`${_["data-testid"]}-content`:void 0,children:x}),!p&&C&&t.jsx("hr",{className:xe.divider}),C&&t.jsx("div",{className:S.clsx(xe.footer,b==null?void 0:b.footer),style:v==null?void 0:v.footer,children:C})]})})}),lo=()=>t.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:t.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"})}),co=()=>t.jsx("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:t.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"})}),uo=()=>t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:t.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"})}),_o=()=>t.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:t.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"})}),po=()=>t.jsx("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:t.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"})}),Ke={avatar:{icon:null,colorScheme:"gray"},info:{icon:lo,colorScheme:"gray"},success:{icon:uo,colorScheme:"green"},warning:{icon:po,colorScheme:"yellow"},error:{icon:_o,colorScheme:"red"},dialog:{icon:co,colorScheme:"blue"}},fo="_container_dd9oq_1",go={container:fo},ho="_container_r24j4_1",xo="_iconContainer_r24j4_11",mo="_textContainer_r24j4_18",bo="_title_r24j4_27",yo="_subtitle_r24j4_27",qe={container:ho,iconContainer:xo,textContainer:mo,title:bo,subtitle:yo},Je={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function vo(e){return(Je==null?void 0:Je[e])||Je.m}const ir=e=>{const{iconSlot:r,title:n,subTitle:o,titleProps:i,subTitleProps:a,className:l,children:d,"data-testid":f,size:g="m",style:c}=e,x=vo(g);return t.jsxs("div",{className:S.clsx(qe.container,l),"data-testid":f,style:c,children:[!!r&&t.jsx("div",{className:qe.iconContainer,children:r}),(n||o)&&t.jsxs("div",{className:qe.textContainer,children:[n&&t.jsx("p",{style:i==null?void 0:i.style,className:S.clsx(qe.title,te[x.title],i==null?void 0:i.className),children:n}),o&&t.jsx("p",{style:a==null?void 0:a.style,className:S.clsx(qe.subtitle,te[x.subtitle],a==null?void 0:a.className),children:o})]}),d]})},Co=e=>{const{open:r,onOpenChange:n,placement:o="default",variant:i="info",title:a,description:l,children:d,variantAvatarProps:f,"data-testid":g}=e,{icon:c,colorScheme:x}=(Ke==null?void 0:Ke[i])||Ke.info,u=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",...f}:{size:48,icon:c,colorScheme:x,variant:"light",style:{fontSize:24,outline:"none"},"data-testid":"alert-icon"};return t.jsx(ar,{open:r,onOpenChange:n,placement:o,"data-testid":g,className:go.container,children:t.jsx(ir,{title:a,subTitle:l,size:"m",iconSlot:t.jsx(or,{...u}),children:d})})},wo="_wrapper_1mnix_5",ko="_badge__container_1mnix_6",So="_badge__content_1mnix_7",jo="_interactive_1mnix_20",Lo="_disabled_1mnix_21",$o="_icon_1mnix_22",Se={wrapper:wo,badge__container:ko,badge__content:So,interactive:jo,disabled:Lo,icon:$o,"variant-filled":"_variant-filled_1mnix_98","color-brand":"_color-brand_1mnix_103","color-red":"_color-red_1mnix_111","color-orange":"_color-orange_1mnix_119","color-yellow":"_color-yellow_1mnix_127","color-green":"_color-green_1mnix_135","color-blue":"_color-blue_1mnix_143","color-lightblue":"_color-lightblue_1mnix_151","color-purple":"_color-purple_1mnix_159","color-gray":"_color-gray_1mnix_167","color-contrast":"_color-contrast_1mnix_175","variant-light":"_variant-light_1mnix_184","variant-outline":"_variant-outline_1mnix_260","variant-transparent":"_variant-transparent_1mnix_338","position-top-left":"_position-top-left_1mnix_409","position-top-right":"_position-top-right_1mnix_415","position-bottom-left":"_position-bottom-left_1mnix_421","position-bottom-right":"_position-bottom-right_1mnix_427","position-top-center":"_position-top-center_1mnix_433","position-bottom-center":"_position-bottom-center_1mnix_439","position-middle-left":"_position-middle-left_1mnix_445","position-middle-right":"_position-middle-right_1mnix_451","position-middle-center":"_position-middle-center_1mnix_457","position-top-left-inside":"_position-top-left-inside_1mnix_464","position-top-right-inside":"_position-top-right-inside_1mnix_470","position-bottom-left-inside":"_position-bottom-left-inside_1mnix_476","position-bottom-right-inside":"_position-bottom-right-inside_1mnix_482","position-top-center-inside":"_position-top-center-inside_1mnix_488","position-bottom-center-inside":"_position-bottom-center-inside_1mnix_494","position-middle-left-inside":"_position-middle-left-inside_1mnix_500","position-middle-right-inside":"_position-middle-right-inside_1mnix_506"},lr=h.forwardRef((e,r)=>{const{icon:n,children:o,variant:i="filled",label:a,isHidden:l=!1,colorScheme:d="red",size:f=20,position:g="top-right",positionOffset:c={x:0,y:0},cutoutBackground:x,isDisabled:C,className:u,"data-testid":p="badge",...m}=e,{onClick:b,onPointerDown:v}=m,{ref:_,bgColor:w}=yt(),k=x||w,$=!C&&(!!b||!!v),E=we(Se.badge__container,Se[`position-${g}`]),R=we(u,Se.badge__content,Se[`color-${d}`],Se[`variant-${i}`],{[Se.disabled]:C,[Se.icon]:!!n,[Se.interactive]:$}),I={"--badge-height":`${f}px`,"--badge-offset-x":`${c.x}px`,"--badge-offset-y":`${c.y}px`,...k&&{"--badge-cutout-bg":k},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},B=(n==null?void 0:n({}))||a,D=W=>{$&&(b==null||b(W))};return t.jsxs("div",{className:Se.wrapper,ref:_,"data-testid":p+"-wrapper",children:[o,!l&&t.jsx("span",{className:E,style:I,"data-testid":p+"-container",children:t.jsx("span",{...m,onClick:D,className:R,"data-testid":p+"-content",ref:r,"aria-disabled":C,children:B})})]})}),To="_container_yn8yz_7",Eo="_loading_yn8yz_17",Ro="_error_yn8yz_18",No="_image_yn8yz_22",He={container:To,loading:Eo,error:Ro,image:No},Io=({width:e=48,height:r=48,className:n,"data-testid":o})=>t.jsx("svg",{width:e,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"data-testid":o,children:t.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"})}),Mo=h.forwardRef((e,r)=>{const{alt:n="",loading:o="lazy",src:i,isLoading:a=!1,style:l,className:d,containerProps:f,"data-testid":g="image",onError:c,onLoad:x,...C}=e,{className:u,...p}=f??{},[m,b]=h.useState("loading"),v=m==="error",_=(a||m==="loading")&&!v,w=m==="loaded"&&!a,k=S.clsx(He.container,{[He.loading]:_&&!w,[He.error]:v&&!w},u),T=S.clsx(He.image,{[He.loading]:_},d),$=h.useCallback(I=>{b("loaded"),x==null||x(I)},[x]),E=h.useCallback(I=>{b("error"),c==null||c(I)},[c]),R={loader:t.jsxs(h.Fragment,{children:[t.jsx(st,{size:48,variant:"special","data-testid":`${g}-loader`}),t.jsx("img",{alt:n,src:i,onLoad:$,onError:E,style:{display:"none"}})]}),error:t.jsx(Io,{"data-testid":`${g}-fallback`}),image:t.jsx("img",{ref:r,alt:n,"data-testid":g,loading:o,src:i,className:T,...C})};return h.useEffect(()=>{if(!i){b("error");return}b("loading")},[i]),t.jsxs("div",{className:k,"data-testid":`${g}-container`,style:l,...p,children:[_&&R.loader,v&&R.error,w&&R.image]})}),cr={},dr=h.createContext({locale:cr}),ur=()=>{const e=h.useContext(dr);if(!e)throw new Error("useConfig must be used within a ConfigProvider");return e},Oo=()=>{const{locale:e}=ur();return e},Ao={},Bo={},Po={},zo={},Do={},Wo="_base_1p0qo_50",Fo="_content_1p0qo_54",qo="_background_1p0qo_58",Ho="_button_1p0qo_62",Vo="_link_1p0qo_66",Xo="_input_1p0qo_70",Zo="_suffix_1p0qo_74",Uo="_prefix_1p0qo_78",Yo="_tooltip_1p0qo_82",Go="_hint_1p0qo_86",Ko="_dropdown_1p0qo_90",Jo="_popover_1p0qo_94",Qo="_modalBackdrop_1p0qo_98",ea="_modal_1p0qo_98",ta="_overlay_1p0qo_106",ra="_drawer_1p0qo_110",na="_notification_1p0qo_114",sa="_alert_1p0qo_118",oa="_toast_1p0qo_122",aa="_loading_1p0qo_126",ia="_error_1p0qo_130",la="_critical_1p0qo_134",ca={base:Wo,content:Fo,background:qo,button:Ho,link:Vo,input:Xo,suffix:Zo,prefix:Uo,tooltip:Yo,hint:Go,dropdown:Ko,popover:Jo,modalBackdrop:Qo,modal:ea,overlay:ta,drawer:ra,notification:na,alert:sa,toast:oa,loading:aa,error:ia,critical:la},da={"semantic-animation":"_semantic-animation_1fenh_13","semantic-animation--100":"_semantic-animation--100_1fenh_19","semantic-animation--300":"_semantic-animation--300_1fenh_23","semantic-animation--400":"_semantic-animation--400_1fenh_27","semantic-animation--500":"_semantic-animation--500_1fenh_31"},ua=({locale:e={},theme:r,children:n,className:o})=>(h.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([a,l])=>{i.style.setProperty(a,l)})}},[r]),t.jsxs(h.Fragment,{children:[t.jsx("div",{"data-testid":"ConfigProvider-component",className:S.clsx(Ao,Bo,Po,zo,Do,ca,te,da,o)}),t.jsx(dr.Provider,{value:{locale:e},children:n})]})),_a={},pa="_tag_1llsi_1",fa="_label_1llsi_16",ga="_iconWrapper_1llsi_20",ha="_medium_1llsi_27",xa="_large_1llsi_33",ma="_disabled_1llsi_43",ba="_neutral_1llsi_47",ya="_positive_1llsi_53",va="_negative_1llsi_59",Ca="_warning_1llsi_65",wa="_vivid_1llsi_71",ka="_special_1llsi_77",Sa="_accent_1llsi_84",ja="_blue_1llsi_90",La="_lovely_1llsi_96",$a="_dreamy_1llsi_102",Me={tag:pa,label:fa,iconWrapper:ga,medium:ha,large:xa,disabled:ma,neutral:ba,positive:ya,negative:va,warning:Ca,vivid:wa,special:ka,accent:Sa,blue:ja,lovely:La,dreamy:$a},Ta=h.forwardRef((e,r)=>{const{className:n,children:o,componentStyle:i="neutral",size:a="medium",disabled:l=!1,showLabel:d=!!o,slotStart:f,slotEnd:g,slotStartWrapperProps:c={},slotEndWrapperProps:x={},"data-testid":C,...u}=e,{className:p,...m}=c,{className:b,...v}=x;return t.jsxs("div",{className:S.clsx(Me.tag,Me[a],Me[i],{[Me.disabled]:l,[te["typography-label-3-regular"]]:a==="medium",[te["typography-subtitle-1-semibold"]]:a==="large"},n),"data-testid":C||"tag-component",ref:r,...u,children:[f&&t.jsx("span",{className:S.clsx([Me.iconWrapper,p]),...m,children:f}),d&&t.jsx("span",{className:S.clsx([Me.label]),children:o}),g&&t.jsx("span",{className:S.clsx([Me.iconWrapper,b]),...v,children:g})]})}),Ea="_checkbox_gtrs6_43",Ra="_input_gtrs6_64",Na="_icon_gtrs6_72",Ia="_container_gtrs6_92",Ma="_error_gtrs6_143",Oa="_checkboxWrapper_gtrs6_156",Aa="_medium_gtrs6_211",Ba="_large_gtrs6_216",Pa="_label_gtrs6_258",Le={checkbox:Ea,input:Ra,icon:Na,container:Ia,error:Ma,checkboxWrapper:Oa,medium:Aa,large:Ba,label:Pa},za=({width:e=12,height:r=9,className:n="",color:o="currentColor",...i})=>t.jsx("svg",{className:n,width:e,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:o})}),Da=({width:e=12,height:r=2,className:n="",color:o="currentColor",...i})=>t.jsx("svg",{className:n,width:e,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:o})}),Wa={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Fa=({size:e,isChecked:r,isDisabled:n,indeterminate:o,dataTestId:i})=>{const{width:a,height:l}=Wa[e];return t.jsx("div",{className:Le.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":n,"data-indeterminate":o,children:o?t.jsx(Da,{width:a,height:l}):t.jsx(za,{width:a,height:l})})},qa=h.forwardRef((e,r)=>{const{name:n,value:o,size:i="medium",indeterminate:a=!1,loading:l=!1,error:d,disabled:f=!1,containerClassName:g,className:c,containerStyle:x,style:C,children:u,clickableLabel:p=!0,tabIndex:m,onChange:b,onClick:v,"data-testid":_="checkbox"}=e,[w,k]=h.useState(!1),T=o??w,$=f||l,E=!!d,R=T||a,I=S.clsx(Le.container,Le[i],g),B=S.clsx(Le.checkbox,Le[i],{[Le.error]:E},c),D=M=>{$||(k(M.target.checked),b==null||b(M.target.checked,M))},W=M=>{if(M.key==="Enter"&&!$){M.preventDefault();const q=!R;k(q),b==null||b(q)}},L=M=>{p||M.preventDefault(),v==null||v(M)};return t.jsxs("label",{className:I,htmlFor:n,style:x,"data-testid":_,"data-clickable-label":p,children:[t.jsx("div",{className:Le.checkboxWrapper,children:t.jsxs("div",{tabIndex:m||0,className:B,style:C,onKeyDown:W,"aria-checked":R,"aria-disabled":$,"aria-invalid":E,"aria-describedby":d?`${n}-error`:void 0,"data-testid":`${_}-label`,children:[t.jsx("input",{ref:r,type:"checkbox",id:n,name:n,checked:R,disabled:$,className:Le.input,onChange:D,"aria-checked":R,"aria-invalid":E,"aria-describedby":d?`${n}-error`:void 0,"data-testid":`${_}-input`}),t.jsx(Fa,{name:n,size:i,isChecked:R,isDisabled:$,indeterminate:a,dataTestId:_})]})}),u&&t.jsx("span",{"data-testid":`${_}-label-text`,"data-clickable-label":p,className:Le.label,onClick:L,children:u})]})}),Ha="_base_10oxr_1",Va="_content_10oxr_1",Xa="_background_10oxr_1",Za="_button_10oxr_1",Ua="_link_10oxr_1",Ya="_input_10oxr_96",Ga="_suffix_10oxr_1",Ka="_prefix_10oxr_1",Ja="_tooltip_10oxr_1",Qa="_hint_10oxr_794",ei="_dropdown_10oxr_1",ti="_popover_10oxr_1",ri="_modalBackdrop_10oxr_1",ni="_modal_10oxr_1",si="_overlay_10oxr_1",oi="_drawer_10oxr_1",ai="_notification_10oxr_1",ii="_alert_10oxr_1",li="_toast_10oxr_1",ci="_loading_10oxr_291",di="_error_10oxr_252",ui="_critical_10oxr_1",_i="_inputBase_10oxr_96",pi="_wrapper_10oxr_106",fi="_gripHandle_10oxr_186",gi="_tabFocused_10oxr_259",hi="_disabled_10oxr_284",xi="_label_10oxr_301",mi="_S_10oxr_315",bi="_M_10oxr_321",yi="_XL_10oxr_328",vi="_leftSection_10oxr_335",Ci="_rightSection_10oxr_347",wi="_helper_10oxr_385",ki="_floatingLabel_10oxr_415",Si="_focused_10oxr_481",ji="_filled_10oxr_482",Li="_L_10oxr_522",$i="_characterLimit_10oxr_564",Ti="_textarea_10oxr_124",Ei="_truncate_10oxr_707",A={base:Ha,content:Va,background:Xa,button:Za,link:Ua,input:Ya,suffix:Ga,prefix:Ka,tooltip:Ja,hint:Qa,dropdown:ei,popover:ti,modalBackdrop:ri,modal:ni,overlay:si,drawer:oi,notification:ai,alert:ii,toast:li,loading:ci,error:di,critical:ui,inputBase:_i,wrapper:pi,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:fi,tabFocused:gi,disabled:hi,label:xi,S:mi,M:bi,XL:yi,leftSection:vi,rightSection:Ci,helper:wi,floatingLabel:ki,focused:Si,filled:ji,L:Li,characterLimit:$i,textarea:Ti,"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:Ei,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},Ri=({width:e=8,height:r=8,className:n,color:o="#AABBCA"})=>t.jsx("svg",{width:e,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:t.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:o})}),vt=({className:e="",style:r,size:n="md",color:o="currentColor",onClick:i,...a})=>{const d={display:"inline-block",color:o,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"20px",height:"20px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[n],...r};return t.jsx("svg",{className:e,style:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...a,children:t.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},Ni=(e,r)=>{const n=h.useRef(null),o=h.useRef(null);return h.useEffect(()=>{const i=r==="textarea"?n.current:o.current;i&&i.value!==e&&(i.value=e||"")},[e,r]),{textareaRef:n,inputRef:o,currentRef:r==="textarea"?n:o}},Ii=(e,r,n)=>{const o=()=>{if(!n.current||r!=="hug")return;const i=n.current.scrollTop;if(n.current.style.setProperty("height","auto","important"),!e)return;const a=n.current.scrollHeight+"px";n.current.style.setProperty("height",a,"important"),n.current.scrollTop=i;const l=n.current.closest(`.${A.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return h.useEffect(o,[e,r]),h.useEffect(()=>{r==="hug"&&n.current&&o()},[]),{resizeTextArea:o}},Mi=(e,r,n,o)=>({handleGripMouseDown:h.useCallback(a=>{if(!e||r||n||!(o==="fixed"||!o))return;a.preventDefault(),a.stopPropagation();const l=a.currentTarget.closest(`.${A.wrapper}`);if(!l)return;const d=a.clientY,f=l.clientHeight,g=x=>{const C=x.clientY-d,u=Math.min(100,f),p=Math.max(u,f+C);l.style.height=`${p}px`},c=()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",g),document.addEventListener("mouseup",c)},[e,r,n,o])}),Yt=30,Oi=h.forwardRef(({component:e="input",size:r="L",value:n="",placeholder:o,disabled:i=!1,loading:a=!1,onFocus:l,onBlur:d,onChange:f,onKeyDown:g,onKeyUp:c,maxLength:x,className:C,style:u,truncate:p=!1,shouldShowFloatingLabelClass:m=!1,"aria-invalid":b,"aria-errormessage":v,id:_,resize:w,...k},T)=>{const{textareaRef:$,inputRef:E,currentRef:R}=Ni(n,e);if(Ii(n,w,$),h.useImperativeHandle(T,()=>R.current,[R]),e==="textarea")return t.jsx("textarea",{ref:$,id:_,value:n,placeholder:o,disabled:i||a,onFocus:l,onBlur:d,onChange:f,onKeyDown:g,onKeyUp:c,maxLength:x,className:S.clsx(A.textarea,A[`size-${r}`],m&&A["with-floating-label"],C),style:u,"aria-invalid":b,"aria-errormessage":v,"aria-describedby":v?`${_}-error`:void 0,tabIndex:0,"data-resize":w,...k});if(e==="input")return t.jsx("input",{ref:E,id:_,value:n,placeholder:o,disabled:i||a,onFocus:l,onBlur:d,onChange:f,onKeyDown:g,onKeyUp:c,maxLength:x,className:S.clsx(A.input,A[`size-${r}`],m&&A["with-floating-label"],p&&A.truncate,C),style:u,"aria-invalid":b,"aria-errormessage":v,"aria-describedby":v?`${_}-error`:void 0,tabIndex:0,...k});if(e!=="input"&&e!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(e)}". Допустимые значения: 'input', 'textarea'`),null}),_r=h.forwardRef(({children:e,size:r="L",error:n=!1,disabled:o=!1,loading:i=!1,className:a,wrapperProps:l,wrapperStyles:d,floatingLabelStyles:f,prefixStyles:g,suffixStyles:c,labelProps:x,helperProps:C,showLimit:u=!1,maxLength:p,hint:m,showHint:b=!1,showHintOnEmpty:v=!1,prefix:_,suffix:w,onSuffixClick:k,placeholder:T,showLabel:$=!0,labelClassName:E,hasValue:R=!1,helper:I,id:B,value:D="",resize:W,showGrip:L=!1,...M},q)=>{const H=h.useId(),Z=B||H,G=b&&m&&(R||v),z=m&&m.length>Yt?m.substring(0,Yt)+"...":m,K=S.clsx(A.wrapper,A[`size-${r}`],n&&A.error,o&&A.disabled,i&&A.loading,G&&A["has-hint"],w&&A["has-suffix"],u&&A["has-limit"],a),U=S.clsx(A.floatingLabel,A[r],R&&A.filled,E),{handleGripMouseDown:Q}=Mi(L,o,i,W);return t.jsxs("div",{ref:q,className:A.inputBase,"data-testid":"input-base-wrapper",...M,children:[t.jsxs("div",{className:K,style:d,"data-resize":W,"data-show-grip":L?"true":"false",...l,children:[_&&t.jsx("label",{htmlFor:Z,className:A.leftSection,style:g,children:_}),w&&t.jsx("label",{htmlFor:Z,className:A.rightSection,style:c,onClick:k,children:w}),T&&$&&t.jsx("label",{htmlFor:Z,className:U,style:f,...x,children:T}),e,L&&!u&&(W==="fixed"||!W)&&t.jsx("div",{className:A.gripHandle,onMouseDown:Q,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:t.jsx(Ri,{})}),G&&t.jsx("div",{className:S.clsx(A.hint,R&&A.truncate),"data-disabled":o||i,children:z}),u&&p&&t.jsxs("div",{className:A.characterLimit,children:[(D||"").length," из ",p]})]}),I&&t.jsx("div",{className:S.clsx(A.helper,n&&A.error,(o||i)&&A.disabled),...C,id:n?`${Z}-error`:void 0,children:I})]})});_r.displayName="InputWrapperComponent";const Gt=Object.assign(Oi,{Wrapper:_r}),pr=h.forwardRef(({component:e="input",size:r="L",className:n,error:o=!1,disabled:i=!1,loading:a=!1,placeholder:l,showLabel:d=!0,labelClassName:f,helper:g,prefix:c,suffix:x,id:C,onFocus:u,onBlur:p,onKeyDown:m,onSuffixClick:b,onChange:v,value:_="",wrapperProps:w,wrapperStyles:k,floatingLabelStyles:T,prefixStyles:$,suffixStyles:E,textareaStyles:R,labelProps:I,helperProps:B,showLimit:D=!1,maxLength:W,inputProps:L,hint:M,showHint:q=!1,showHintOnEmpty:H=!1,truncate:Z=!1,resize:G,showGrip:z=!1,...K},U)=>{const Q=h.useId(),ie=C||Q,[ke,ye]=h.useState(_),le=_!==void 0?_:ke,Ee=(le||"").length>0,pe=le||"",Oe=d&&(r==="XL"||e==="textarea")&&!c,ot=h.useCallback(ne=>{var se;i||a||(u==null||u(),(se=L==null?void 0:L.onFocus)==null||se.call(L,ne))},[u,L,i,a]),Ue=h.useCallback(ne=>{var se;if(ne.key==="Tab"){const ve=ne.target.closest(`.${A.wrapper}`);ve&&ve.classList.add(A.tabFocused)}(se=L==null?void 0:L.onKeyUp)==null||se.call(L,ne)},[L]),at=h.useCallback(ne=>{var ve;const se=ne.target.closest(`.${A.wrapper}`);se&&se.classList.remove(A.tabFocused),p==null||p(),(ve=L==null?void 0:L.onBlur)==null||ve.call(L,ne)},[p,L]),it=h.useCallback(ne=>{var ve;if(i||a)return;const se=ne.target.value;ye(se),v==null||v(se,ne),(ve=L==null?void 0:L.onChange)==null||ve.call(L,ne)},[v,L,i,a]);return h.useEffect(()=>{ye(_||"")},[_]),t.jsx(Gt.Wrapper,{ref:U,size:r,error:o,disabled:i||a,loading:a,className:S.clsx(n,e==="textarea"&&A["textarea-wrapper"]),wrapperProps:w,wrapperStyles:k,floatingLabelStyles:T,prefixStyles:$,suffixStyles:E,labelProps:I,helperProps:B,showLimit:D,maxLength:W,hint:M,showHint:q,showHintOnEmpty:H,prefix:c,suffix:x,onSuffixClick:b,placeholder:l,showLabel:d,labelClassName:f,hasValue:Ee,helper:g,id:ie,value:pe,showGrip:z,resize:G,...K,children:t.jsx(Gt,{component:e,size:r,value:pe,placeholder:l,disabled:i,loading:a,onFocus:ot,onBlur:at,onChange:it,onKeyDown:m,onKeyUp:Ue,maxLength:W,truncate:Z,"data-empty":!Ee,shouldShowFloatingLabelClass:Oe,style:e==="textarea"?R:void 0,"aria-invalid":!!o,"aria-errormessage":o?`${ie}-error`:void 0,id:ie,resize:G,...L})})}),Y={S:"S",M:"M",L:"L",XL:"XL"},Ai=(e,r,n,o)=>{switch(e){case Y.XL:return r&&n?"8px 16px 8px 16px":"16px 16px 16px 16px";case Y.L:return o?"12px 12px 12px 12px":"12px 16px 12px 16px";case Y.M:return"10px 12px 10px 12px";case Y.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},Bi=e=>{switch(e){case Y.XL:return"56px";case Y.L:return"48px";case Y.M:return"40px";case Y.S:return"32px";default:return"48px"}},Pi=e=>{switch(e){case Y.S:case Y.M:case Y.L:return 4;case Y.XL:return 8;default:return 8}},zi=e=>{switch(e){case Y.S:case Y.M:return 8;case Y.L:case Y.XL:return 12;default:return 12}},Di=(e,r,n,o)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${o}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Wi=(e,r,n,o)=>({wrapperStyles:{height:e,minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${o}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Fi=(e,r,n,o)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${o}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),qi=(e,r,n,o)=>({wrapperStyles:{minHeight:e,maxHeight:e,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${o}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Hi=(e,r,n,o)=>{const i=Bi(e),a=Ai(e,r,n,o),l=zi(e),d=Pi(e);switch(e){case Y.XL:return Wi(i,a,l,d);case Y.L:return Fi(i,a,l,d);case Y.M:return qi(i,a,l,d);case Y.S:return Di(i,a,l,d);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Vi=h.forwardRef(({value:e="",onChange:r,type:n="text",placeholder:o,maxLength:i,minLength:a,autoComplete:l,autoFocus:d,size:f=Y.L,inputProps:g,error:c,disabled:x,loading:C,helper:u,prefix:p,suffix:m,clearable:b=!1,id:v,showLabel:_=!0,onFocus:w,onBlur:k,onSuffixClick:T,onClear:$,className:E,truncate:R=!0,hint:I,showHint:B=!1,showHintOnEmpty:D=!1,wrapperProps:W,labelProps:L,helperProps:M,...q},H)=>{const Z=(e||"").length>0,G=f===Y.XL,z=!!p,K=G&&_&&!p,U=b&&Z&&!(x||C),Q=()=>{r==null||r(""),$==null||$()},ie=()=>{U&&Q(),T==null||T()},ke=U?t.jsx(vt,{size:f===Y.S||f===Y.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):m,ye={type:n,minLength:a,autoComplete:l,autoFocus:d,...g},le=Hi(f,K,Z,z);return t.jsx(pr,{size:f,error:c,disabled:x||C,loading:C,helper:u,prefix:p,suffix:ke,id:v,showLabel:K,onFocus:w,onBlur:k,onSuffixClick:ie,onChange:r,value:e,placeholder:o,className:E,wrapperStyles:le.wrapperStyles,floatingLabelStyles:le.floatingLabelStyles,prefixStyles:le.prefixStyles,suffixStyles:le.suffixStyles,wrapperProps:W,labelProps:L,helperProps:M,showLimit:!1,maxLength:i,inputProps:ye,hint:I,showHint:B,showHintOnEmpty:D,truncate:R,...q})}),ge={M:"M",L:"L"},rt={M:"12px",L:"16px"},Xi={M:"xs",L:"sm"},Qe={FILL:"fill",FIXED:"fixed"},gt={M:"112px",L:"56px"},Pe={M:"48px",L:"22px"},je={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},Te={M:48,L:56,XL:112},Zi=(e,r)=>{if(e===ge.M)return gt.M;if(r)return`${r}px`;switch(e){case ge.L:return gt.L;default:return gt.L}},Ui=(e,r)=>{if(e===ge.M)return Pe.M;if(r)switch(r){case Te.M:case Te.L:return Pe.L;case Te.XL:return Pe.M;default:return Pe.L}switch(e){case ge.L:return Pe.L;default:return Pe.L}},Yi=(e,r,n)=>{if(e===ge.M)return je.M;if(r)switch(r){case Te.M:return je.L_WITH_PREFIX;case Te.L:return n?je.L_FLOATING_LABEL:je.L;case Te.XL:return je.L;default:return je.L}switch(e){case ge.L:return n?je.L_FLOATING_LABEL:je.L;default:return je.L}},Gi=(e,r)=>{if(e===ge.M)return"M";if(r)switch(r){case Te.M:return"M";case Te.L:return"L";case Te.XL:return"L";default:return"L"}return e},Ki=e=>Xi[e],Ji=e=>rt[e],Qi=(e,r,n,o)=>{const i=Zi(e,r),a=Ui(e,r),l=Yi(e,r,n);return{wrapperStyles:{minHeight:i,...o===Qe.FILL&&{height:"100%"},...o===Qe.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:e===ge.M?rt.M:rt.L,transformOrigin:"left top",top:r===112&&n&&e===ge.L?rt.L:void 0},suffixStyles:{right:Ji(e),top:r===48&&e===ge.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:a,...o===Qe.FILL&&{flex:1,minHeight:0},...o===Qe.FIXED&&r&&{height:a}}}},el=h.forwardRef(({value:e="",onChange:r,placeholder:n,maxLength:o,minLength:i,autoFocus:a,size:l=ge.L,textareaProps:d,error:f,disabled:g,loading:c,helper:x,suffix:C,clearable:u=!1,id:p,showLabel:m=!0,onFocus:b,onBlur:v,onClear:_,onKeyDown:w,className:k,rows:T=1,showLimit:$=!1,wrapperProps:E,labelProps:R,helperProps:I,showGrip:B,minHeight:D,resize:W,...L},M)=>{const q=(e||"").length>0,H=m&&!!n&&(l===ge.M||D!==48),Z=u&&q&&!(g||c),G=()=>{r==null||r(""),_==null||_()},z=()=>{Z&&G()},K=Z?t.jsx(vt,{size:Ki(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):C,U=Qi(l,D,H&&q,W),Q=Gi(l,D),ie={rows:T,minLength:i,autoFocus:a,resize:W,...d};return t.jsx(pr,{ref:M,component:"textarea",size:Q,error:f,disabled:g||c,loading:c,onSuffixClick:z,helper:x,suffix:K,id:p,showLabel:H,onFocus:b,onBlur:v,onKeyDown:w,onChange:r,value:e||"",placeholder:n,className:k,"data-floating-label":H,wrapperStyles:U.wrapperStyles,floatingLabelStyles:U.floatingLabelStyles,suffixStyles:U.suffixStyles,textareaStyles:U.textareaStyles,wrapperProps:E,labelProps:R,helperProps:I,showLimit:$&&(D===112||l===ge.M),maxLength:o,inputProps:ie,resize:W,showGrip:B,...L})}),tl="_helper_1jq7j_16",ht={helper:tl,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},fr=({title:e,error:r,className:n="",style:o,disabled:i=!1,"data-testid":a,"aria-label":l,"aria-describedby":d})=>{const f=!!r,g=S.clsx(ht.helper,f&&ht["helper--error"],i&&ht["helper--disabled"],n),c=i?e:r||e;return t.jsx("div",{className:g,style:o,"data-testid":a,"aria-label":l,"aria-describedby":d,children:t.jsx("p",{children:c})})},rl="_radio_1n8zx_59",nl="_checked_1n8zx_80",sl="_error_1n8zx_85",ol="_disabled_1n8zx_94",al="_icon_1n8zx_130",il="_small_1n8zx_138",ll="_medium_1n8zx_145",cl="_large_1n8zx_152",dl="_label_1n8zx_159",ul="_container_1n8zx_185",_l="_input_1n8zx_198",pl="_card_1n8zx_205",fl="_smallCard_1n8zx_211",gl="_mediumCard_1n8zx_215",hl="_largeCard_1n8zx_219",fe={default:"_default_1n8zx_53",radio:rl,checked:nl,error:sl,disabled:ol,icon:al,small:il,medium:ll,large:cl,label:dl,container:ul,input:_l,card:pl,smallCard:fl,mediumCard:gl,largeCard:hl},xl="radio-container-",ml="radio-label",gr=h.forwardRef((e,r)=>{const{name:n,id:o,value:i,size:a="large",loading:l=!1,error:d,disabled:f=!1,checked:g=!1,containerClassName:c,className:x,children:C,clickable:u="all",mode:p="default",tabIndex:m,style:b,containerStyle:v,onChange:_,"data-testid":w,...k}=e,T=!!d,$=f||l,E=u==="all",R=p==="card",I=fe[`${a}Card`],B=o??n,D=H=>{$||_==null||_(i,H)},W=H=>{H.key==="Enter"&&!$&&(H.preventDefault(),_==null||_(i))},L=H=>H.stopPropagation(),M=()=>t.jsxs("div",{className:S.clsx(fe.radio,fe[a],{[fe.checked]:g,[fe.disabled]:$,[fe.error]:T&&!$},x),style:b,tabIndex:m||1,"data-testid":`${xl}${B}`,children:[t.jsx("input",{"aria-errormessage":d,"aria-invalid":T,checked:g,className:fe.input,"data-testid":`radio-${B}`,disabled:$,id:B,name:n,ref:r,type:"radio",value:i,onChange:D,onClick:L}),t.jsx("svg",{"data-testid":`radio-icon-${B}`,viewBox:"0 0 8 8",className:fe.icon,children:t.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),q=()=>t.jsxs("label",{"aria-checked":g,"aria-disabled":$,"data-testid":E?w:ml,htmlFor:B,style:v,className:S.clsx(fe.label,{[S.clsx(fe.container,fe[p],c)]:E,[I]:E&&R}),onKeyDown:W,...k,children:[M(),E&&C]});return E?q():t.jsxs("div",{className:S.clsx(fe.container,fe[p],c,{[I]:R}),"data-testid":w,children:[q(),C]})}),bl="_group_tnviu_7",yl="_vertical_tnviu_12",vl="_horizontal_tnviu_16",Kt={group:bl,vertical:yl,horizontal:vl},Cl=h.forwardRef((e,r)=>{const{id:n,name:o,value:i,options:a,className:l,radioClassName:d,disabled:f=!1,layout:g="vertical","data-testid":c,...x}=e;return t.jsx("div",{className:we(Kt.group,Kt[g],l),"data-testid":c??`radio-group-${o}`,id:n,ref:r,children:a.map(({label:C,value:u,disabled:p})=>{const m=`${o}-${String(u)}`,b=String(u)===String(i);return t.jsx(gr,{id:m,checked:b,"data-testid":m,disabled:f||p,name:o,value:u,className:d,...x,children:C},m)})})}),wl=Object.assign(gr,{Group:Cl}),kl="_root_1jj3e_25",Sl="_unordered_1jj3e_39",jl="_ordered_1jj3e_43",Ll="_sm_1jj3e_48",$l="_md_1jj3e_59",Tl="_lg_1jj3e_70",El="_xl_1jj3e_81",xt={root:kl,unordered:Sl,ordered:jl,sm:Ll,md:$l,lg:Tl,xl:El},Rl=e=>{const{children:r,className:n,"data-testid":o="list-item"}=e;return t.jsx("li",{"data-testid":o,className:n,children:r})},Nl=Object.assign(h.forwardRef((e,r)=>{const{variant:n="unordered",className:o,children:i,size:a="md","data-testid":l="list",...d}=e,f=n==="ordered"?"ol":"ul";return t.jsx(f,{"data-testid":l,ref:r,className:we(xt.root,xt[n],xt[a],o),...n==="ordered"&&d,children:i})}),{Item:Rl}),Il="_wrapper_1v8xn_5",Ml="_viewport_1v8xn_12",Ol="_mask_1v8xn_26",Al="_maskLeft_1v8xn_37",Bl="_maskRight_1v8xn_42",Pl="_visible_1v8xn_46",zl="_control_1v8xn_51",Dl="_xs_1v8xn_70",Wl="_sm_1v8xn_73",Fl="_md_1v8xn_76",ql="_left_1v8xn_80",Hl="_right_1v8xn_83",de={wrapper:Il,viewport:Ml,mask:Ol,maskLeft:Al,maskRight:Bl,visible:Pl,control:zl,xs:Dl,sm:Wl,md:Fl,left:ql,right:Hl},Vl="white",Xl=({children:e,withControls:r=!0,className:n,size:o})=>{const i=h.useRef(null),[a,l]=h.useState(!1),[d,f]=h.useState(!1),{ref:g,bgColor:c}=yt(),x=g??{current:null},C=c??Vl,u=r&&a,p=r&&d,m=({direction:_})=>t.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("g",{transform:_==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:t.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 _=i.current;if(!_)return;const w=Math.round(_.scrollLeft),k=Math.round(_.scrollLeft+_.clientWidth),T=Math.round(_.scrollWidth);l(w>0),f(k<T)},v=_=>{const w=i.current;if(!w)return;const k=w.clientWidth;w.scrollBy({left:_==="left"?-k:k,behavior:"smooth"})};return h.useEffect(()=>{const _=i.current;if(!_)return;const w=k=>{Math.abs(k.deltaX)>Math.abs(k.deltaY)||_.scrollWidth>_.clientWidth&&(k.preventDefault(),_.scrollBy({left:k.deltaY,behavior:"auto"}))};return _.addEventListener("wheel",w,{passive:!1}),()=>_.removeEventListener("wheel",w)},[]),h.useEffect(()=>{b();const _=i.current;if(_)return _.addEventListener("scroll",b,{passive:!0}),window.addEventListener("resize",b),()=>{_.removeEventListener("scroll",b),window.removeEventListener("resize",b)}},[]),t.jsxs("div",{ref:x,className:S.clsx(de.wrapper,n),children:[u&&t.jsx("div",{className:S.clsx(de.mask,de.maskLeft,a&&de.visible),style:{background:`linear-gradient(to right, ${C} 17%, transparent 80%)`}}),p&&t.jsx("div",{className:S.clsx(de.mask,de.maskRight,d&&de.visible),style:{background:`linear-gradient(to left, ${C} 17%, transparent 80%)`}}),t.jsx("div",{ref:i,className:de.viewport,children:e}),u&&t.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(de.control,de.left,de[o]),onClick:()=>v("left"),children:t.jsx(m,{direction:"left"})}),p&&t.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(de.control,de.right,de[o]),onClick:()=>v("right"),children:t.jsx(m,{direction:"right"})})]})},Zl="_tabBar_1ndpm_82",Ul="_primary_1ndpm_88",Yl="_secondary_1ndpm_93",Gl="_tab_1ndpm_82",Kl="_md_1ndpm_125",Jl="_sm_1ndpm_129",Ql="_xs_1ndpm_133",ec="_disabled_1ndpm_137",tc="_selected_1ndpm_143",rc="_tabLabel_1ndpm_222",nc="_tabPrefix_1ndpm_234",sc="_tabPostfix_1ndpm_270",oe={tabBar:Zl,primary:Ul,secondary:Yl,tab:Gl,md:Kl,sm:Jl,xs:Ql,disabled:ec,selected:tc,tabLabel:rc,tabPrefix:nc,tabPostfix:sc},oc="md",ac=!1,ic=8,lc="top-right-inside",hr=h.createContext(null),xr=()=>{const e=h.useContext(hr);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},cc=({children:e,defaultActiveTab:r,activeTab:n,onChange:o})=>{const[i,a]=h.useState(r),l=n!==void 0,d=l?n:i,f=g=>{l||a(g),o&&o(g)};return t.jsx(hr.Provider,{value:{activeTab:d,setTab:f},children:e})},dc=({mode:e,item:r,isActive:n,showBadge:o,badgeProps:i,size:a,isDisabled:l,onSelectTab:d})=>{const{value:f,label:g,prefix:c,prefixWrapperProps:x={},postfix:C,postfixWrapperProps:u={}}=r,{className:p,...m}=x,{className:b,...v}=u,_={primary:te["typography-label-3-medium"],secondary:te["typography-label-3-regular"],prefix:te["typography-label-3-medium"],postfix:te["typography-label-3-medium"]},w={size:ic,position:lc,...i},k=S.clsx(oe.tab,oe[e],oe[a],{[oe.selected]:n,[oe.disabled]:l}),T=S.clsx(oe.tabPrefix,p,oe[e],_.prefix,{[oe.selected]:n,[oe.disabled]:l}),$=S.clsx(oe.tabPostfix,b,oe[e],_.postfix,{[oe.selected]:n,[oe.disabled]:l}),E=S.clsx(oe.tabLabel,oe[e],_[e]),R=B=>{n||l||(d(f),B.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},I=t.jsxs("button",{className:k,role:"tab","aria-label":g,"aria-selected":n,"aria-disabled":l,"aria-controls":`tab-panel-${f}`,"data-testid":`tab-item-${f}`,onClick:R,children:[c&&t.jsx("span",{className:T,...m,"data-testid":`tab-prefix-${f}`,children:c}),t.jsx("span",{className:E,"data-testid":`tab-label-${f}`,children:g}),C&&t.jsx("span",{className:$,...v,"data-testid":`tab-postfix-${f}`,children:C})]});return o?t.jsx(lr,{...w,"data-testid":`tab-badge-${f}`,children:I}):I},uc=({mode:e,items:r,size:n=oc,isAllItemsDisabled:o=ac})=>{const{activeTab:i,setTab:a}=xr(),l=Ts();return t.jsx(Xl,{size:n,withControls:l,children:t.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:S.clsx(oe.tabBar,oe[e]),children:r.map(d=>t.jsx(dc,{size:n,item:d,mode:e,showBadge:d.showBadge,badgeProps:d.badgeProps,isActive:i===d.value,isDisabled:o||d.isDisabled,onSelectTab:a},d.value))})})},_c=({tabValue:e,children:r,...n})=>t.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...n,children:r}),pc=({children:e,...r})=>{const{activeTab:n}=xr(),o=Array.isArray(e)?e:[e],i=(a,l)=>h.isValidElement(a)&&typeof a.props=="object"&&a.props!==null&&l in a.props;return t.jsx("div",{"data-testid":"tab-content",...r,children:o.map(a=>i(a,"tabValue")&&String(a.props.tabValue)===n?a:null)})},fc={Provider:cc,Content:pc,Panel:_c,Bar:uc},gc="_root_1fbbw_34",hc="_open_1fbbw_51",xc="_xs_1fbbw_55",mc="_s_1fbbw_61",bc="_m_1fbbw_67",yc="_neutral_1fbbw_73",vc="_contrast_1fbbw_78",Cc="_accent_1fbbw_84",wc="_typography_1fbbw_89",kc="_title_1fbbw_89",Sc="_text_1fbbw_93",jc="_mediaWrapper_1fbbw_97",Lc="_content_1fbbw_112",$c="_closeButton_1fbbw_116",Tc="_hasMedia_1fbbw_142",Ec="_buttonStack_1fbbw_148",_e={root:gc,open:hc,xs:xc,s:mc,m:bc,neutral:yc,contrast:vc,accent:Cc,typography:wc,title:kc,text:Sc,mediaWrapper:jc,content:Lc,closeButton:$c,hasMedia:Tc,buttonStack:Ec},Rc=()=>t.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:t.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Nc=()=>t.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[t.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"}),t.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),me={shiftX:64,adjustY:1},be={adjustX:1,shiftY:!0},Ic={left:{points:["cr","cl"],overflow:be,offset:[-22,0]},right:{points:["cl","cr"],overflow:be,offset:[22,0]},top:{points:["bc","tc"],overflow:me,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:me,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:me,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:be,offset:[-22,0]},topRight:{points:["br","tr"],overflow:me,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:be,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:me,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:be,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:me,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:be,offset:[-22,0]}},Mc={left:{points:["cr","cl"],overflow:be,offset:[-16,0]},right:{points:["cl","cr"],overflow:be,offset:[16,0]},top:{points:["bc","tc"],overflow:me,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:me,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:me,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:be,offset:[-16,0]},topRight:{points:["br","tr"],overflow:me,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:be,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:me,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:be,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:me,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:be,offset:[-16,0]}},Oc={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"}]}},Ac=(e,r,n)=>({...r,...n??{},...e}),Bc=(e,r,n)=>{const o=us(r,1,3),i=Oc[n][o];return i[Math.min(e,i.length-1)]},Jt=({text:e,title:r,media:n,variant:o="neutral",size:i,classNames:a={},onClose:l,buttons:d,buttonProps:f,showClose:g})=>{const c=["neutral","accent"].includes(o)?"contrast":"primary",x=i==="m",C=!!(r&&x),u=!!(n&&x),p=d&&!!d.length,m=!!(g&&x)||!g&&x&&!p,b=i==="xs"?4:3;return t.jsxs("div",{className:_e.content,children:[u&&t.jsx("div",{className:S.clsx(_e.mediaWrapper,a.mediaWrapper),children:n}),t.jsxs("div",{className:a.textWrapper,children:[C&&t.jsx(Ne.Subtitle,{className:S.clsx(_e.typography,_e.title,a.typography),size:1,as:"h3",typographyStyle:c,children:r}),t.jsx(Ne.Label,{className:S.clsx(_e.typography,_e.text,a.typography),typographyStyle:c,size:b,children:e})]}),m&&t.jsx("button",{type:"button",className:S.clsx(_e.closeButton,_e[o],a.closeButton,{[_e.hasMedia]:u}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:t.jsx(Rc,{})}),x&&p&&t.jsx("div",{className:_e.buttonStack,children:d.map((v,_)=>{const w=Bc(_,d.length,o),k=Ac(v,w,f),{closeOnClick:T,...$}=k,E=R=>{var I;(I=$.onClick)==null||I.call($,R),T&&(l==null||l())};return t.jsx(Xe,{...$,onClick:E},_)})})]})},Pc=({customContent:e,children:r,placement:n="top",contentClassNames:o,mouseEnterDelay:i=0,mouseLeaveDelay:a=.1,showArrow:l=!0,showClose:d=!0,trigger:f="hover",variant:g="neutral",size:c="s",text:x,title:C,media:u,buttons:p,buttonProps:m,onClose:b,...v})=>{const[_,w]=h.useState(!1),[k,T]=h.useState(!1),$=c==="m"?Ic:Mc,E=()=>{w(!1),b==null||b()},R=e||(c==="m"?t.jsx(Jt,{classNames:o,text:x,variant:g,size:c,onClose:E,title:C,media:u,showClose:d,buttons:p,buttonProps:m}):t.jsx(Jt,{classNames:o,text:x,variant:g,size:c,onClose:E}));return h.useEffect(()=>{if(_){const I=requestAnimationFrame(()=>T(!0));return()=>cancelAnimationFrame(I)}T(!1)},[_]),t.jsx(Fr,{visible:_,onVisibleChange:w,classNames:{root:S.clsx(_e.root,_e[g],_e[c],k&&_e.open),...v.classNames},placement:n,overlay:()=>R,trigger:f,mouseEnterDelay:i,mouseLeaveDelay:a,motion:{motionName:"tooltipMotion"},builtinPlacements:$,showArrow:l?{content:t.jsx(Nc,{}),className:`tooltipArrow tooltipArrow-${c}`}:!1,destroyTooltipOnHide:!0,...v,children:r})},zc="_base_4dkq5_1",Dc="_content_4dkq5_1",Wc="_background_4dkq5_1",Fc="_button_4dkq5_1",qc="_link_4dkq5_1",Hc="_input_4dkq5_1",Vc="_suffix_4dkq5_1",Xc="_prefix_4dkq5_1",Zc="_tooltip_4dkq5_1",Uc="_hint_4dkq5_1",Yc="_dropdown_4dkq5_1",Gc="_popover_4dkq5_1",Kc="_modalBackdrop_4dkq5_1",Jc="_modal_4dkq5_1",Qc="_overlay_4dkq5_1",e1="_drawer_4dkq5_1",t1="_notification_4dkq5_1",r1="_alert_4dkq5_1",n1="_toast_4dkq5_1",s1="_loading_4dkq5_1",o1="_error_4dkq5_1",a1="_critical_4dkq5_1",i1="_segmentedControl_4dkq5_7",l1="_segment_4dkq5_7",c1="_activeSegmentIndicator_4dkq5_61",d1="_selected_4dkq5_80",u1="_stretched_4dkq5_89",_1="_disabled_4dkq5_97",p1="_s_4dkq5_7",f1="_icon_4dkq5_110",g1="_label_4dkq5_114",h1="_m_4dkq5_1",x1="_l_4dkq5_114",Re={base:zc,content:Dc,background:Wc,button:Fc,link:qc,input:Hc,suffix:Vc,prefix:Xc,tooltip:Zc,hint:Uc,dropdown:Yc,popover:Gc,modalBackdrop:Kc,modal:Jc,overlay:Qc,drawer:e1,notification:t1,alert:r1,toast:n1,loading:s1,error:o1,critical:a1,segmentedControl:i1,segment:l1,activeSegmentIndicator:c1,selected:d1,stretched:u1,disabled:_1,s:p1,icon:f1,label:g1,m:h1,l:x1},Qt={s:te["typography-label-3-regular"],m:te["typography-label-2-regular"],l:te["typography-label-2-regular"]},m1=e=>{const{className:r,defaultValue:n,value:o,size:i="m",segments:a,stretched:l,disabled:d=!1,mode:f="label",onChange:g,...c}=e,x=h.useId(),[C,u]=h.useState(n||a[0].value),[p,m]=h.useState({width:0,left:0,height:0}),b=h.useRef(null);h.useEffect(()=>{o!=null&&u(o)},[o]),h.useLayoutEffect(()=>{v()},[C,a,i,l,f]);const v=()=>{if(!(b!=null&&b.current))return;const w=b.current.querySelector('[data-is-active-segment="true"]');w&&m({width:w.offsetWidth,left:w.offsetLeft,height:w.offsetHeight})},_=w=>{d||(u(w),g==null||g(w))};return(a==null?void 0:a.length)===0?null:t.jsxs("fieldset",{className:S.clsx(Re.segmentedControl,Re[i],Re[f],{[Re.stretched]:l,[Re.disabled]:d},r),"data-testid":"segmented-control-container",ref:b,disabled:d,...c,children:[a==null?void 0:a.map(({label:w,value:k,containerProps:T={}},$)=>{const{className:E,...R}=T,I=()=>_(k),B=JSON.stringify(k),D=C===k;return t.jsxs(h.Fragment,{children:[t.jsx("input",{id:x+B,value:B,type:"radio",checked:D,readOnly:!0}),t.jsx("label",{"data-is-active-segment":D,className:S.clsx(Re.segment,Qt[i],{[Re.selected]:D},E),htmlFor:x+B,"data-testid":"segmented-control-segment",onClick:I,...R,children:w})]},nt(B)+$)}),t.jsx("div",{className:S.clsx(Re.activeSegmentIndicator,Qt[i]),"data-testid":"segmented-control-segment-active-indicator",style:p})]})};var De=(e=>(e.NORMAL="normal",e.FLOATING="floating",e.HIDDEN="hidden",e))(De||{});const re={"trigger-wrapper":"_trigger-wrapper_fm9f9_79","trigger-container":"_trigger-container_fm9f9_85","trigger-container-applied":"_trigger-container-applied_fm9f9_109","trigger-container-open":"_trigger-container-open_fm9f9_114","trigger-container-error":"_trigger-container-error_fm9f9_125","trigger-container-size-XS":"_trigger-container-size-XS_fm9f9_137","trigger-container-size-S":"_trigger-container-size-S_fm9f9_147","trigger-container-size-M":"_trigger-container-size-M_fm9f9_153","trigger-container-size-L":"_trigger-container-size-L_fm9f9_159","trigger-container-size-XL":"_trigger-container-size-XL_fm9f9_167","trigger-container-floating":"_trigger-container-floating_fm9f9_173","trigger-stretched":"_trigger-stretched_fm9f9_178","trigger-content-container":"_trigger-content-container_fm9f9_182","trigger-content-container-floating":"_trigger-content-container-floating_fm9f9_191","trigger-label":"_trigger-label_fm9f9_196","trigger-label-floating":"_trigger-label-floating_fm9f9_203","trigger-label-hidden":"_trigger-label-hidden_fm9f9_213","trigger-content":"_trigger-content_fm9f9_182","trigger-prefix-icon":"_trigger-prefix-icon_fm9f9_225","trigger-chevron-icon":"_trigger-chevron-icon_fm9f9_230","trigger-clear-icon":"_trigger-clear-icon_fm9f9_246","trigger-postfix":"_trigger-postfix_fm9f9_262"},b1=({className:e="",style:r,size:n="md",color:o="currentColor",...i})=>{const l={display:"inline-block",color:o,...{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 t.jsx("svg",{className:e,style:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:t.jsx("path",{d:"M18 9L12 15L6 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},y1=(e,r)=>e==="XL"&&r?De.FLOATING:e!=="XL"&&r?De.HIDDEN:De.NORMAL,v1=(e,r)=>r?3:e==="XL"||e==="L"?2:3,er=e=>e==="XL"||e==="L"?2:3,tr=e=>e==="XL"||e==="L"?"sm":"xs",C1=e=>e.length>30?e.slice(0,30)+"…":e,w1=({content:e,size:r="XL",description:n,label:o,stretched:i=!1,selectionStyle:a="selected",clearable:l=!1,error:d,prefixIcon:f,postfixTitle:g,disabled:c=!1,open:x,onClear:C,classNames:u={},styles:p={}})=>{const m=!!e,b=!!o,v=!!d,_=a==="applied",w=!!n&&(!v||c)||v&&!c,k=(v&&!c?d:n)||"",T=v&&!c,$=y1(r,m),E=b&&$===De.FLOATING,R=$===De.HIDDEN,I=S.clsx(re["trigger-wrapper"],{[re["trigger-stretched"]]:i},u.wrapper),B=S.clsx(re["trigger-container"],re[`trigger-container-size-${r}`],{[re["trigger-stretched"]]:i,[re["trigger-container-applied"]]:_&&m,[re["trigger-container-error"]]:v&&!c,[re["trigger-container-open"]]:x,[re["trigger-container-floating"]]:E},u.triggerContainer),D=S.clsx(re["trigger-content-container"],{[re["trigger-content-container-floating"]]:E},u.triggerContent),W=S.clsx(re["trigger-label"],{[re["trigger-label-floating"]]:E,[re["trigger-label-hidden"]]:R},u.label),L=S.clsx(re["trigger-content"],u.content),M=S.clsx(re["trigger-postfix"],u.postfixTitle),q=S.clsx(re["trigger-chevron-icon"],u.chevronIcon),H=S.clsx(re["trigger-prefix-icon"],u.prefixIconContainer),Z=S.clsx(re["trigger-clear-icon"],u.clearIcon),G=Q=>{Q==null||Q.stopPropagation(),C==null||C()},U=m&&x&&(a==="selected"&&l||a==="applied")||m&&!x&&(_||a==="selected"&&l);return t.jsxs("div",{className:I,style:p.wrapper,children:[t.jsxs("button",{"data-testid":"trigger","aria-invalid":v,"aria-haspopup":"listbox","aria-expanded":x,role:"combobox",className:B,style:p.triggerContainer,disabled:c,type:"button",children:[f&&r!=="XL"&&t.jsx("div",{className:H,style:p.prefixIconContainer,children:f}),t.jsxs("div",{className:D,style:p.triggerContent,children:[b&&t.jsx(Ne.Label,{"data-testid":"trigger-label",className:W,style:p.label,size:v1(r,E),as:"span",disabled:c,typographyStyle:E?"secondary":"tertiary",children:o}),m&&t.jsx(Ne.Label,{"data-testid":"trigger-content-container",className:L,style:p.content,size:er(r),as:"span",disabled:c,children:i?e:C1(e)}),m&&!!g&&t.jsx(Ne.Label,{"data-testid":"trigger-postfix",className:M,style:p.postfixTitle,size:er(r),disabled:c,typographyStyle:"secondary",children:g})]}),U?t.jsx(vt,{className:Z,"data-testid":"trigger-clear",size:tr(r),tabIndex:-1,onClick:G,style:{outline:"none",...p.clearIcon},color:a==="selected"&&l?"var(--base-graphite-75)":void 0}):t.jsx(b1,{"data-testid":"trigger-chevron",size:tr(r),className:q,color:"#AABBCA",style:p.chevronIcon})]}),w&&t.jsx(fr,{title:k,error:T?d:void 0,className:T?u.error:u.description,style:T?p.error:p.description,disabled:c,"data-testid":T?"trigger-error":"trigger-description"})]})},mr=h.createContext(void 0),k1=()=>{const e=h.useContext(mr);if(!e)throw new Error("useSnackbar must be used inside SnackbarProvider");return e},S1={timeout:"exitingTimeout",close:"exitingClose",escape:"exitingEscape",swipe:"swipeTransition"},br={timeout:500,close:100,escape:100,swipe:300},j1={timeout:400,close:400,escape:400,swipe:300},mt=3,L1=(e,r)=>{switch(r.type){case"ENQUEUE":return{...e,queue:[...e.queue,r.snack]};case"SHOW_NEXT":{if(e.visible.length>=mt||e.queue.length===0)return e;const n=mt-e.visible.length,o=e.queue.slice(0,n),i=e.queue.slice(n);return{visible:[...e.visible,...o],queue:i}}case"START_EXIT":return{...e,visible:e.visible.map(n=>n.id===r.id?{...n,exiting:!0}:n)};case"REMOVE":return{...e,visible:e.visible.filter(n=>n.id!==r.id)};default:return e}},$1=({ref:e,open:r,onClose:n,setExiting:o,setExitReason:i,swiping:a,startX:l,startY:d,currentX:f,currentY:g})=>{h.useEffect(()=>{const c=e.current;if(!c||!r)return;const x=p=>{p.target instanceof Element&&p.target.closest("button")||(a.current=!0,l.current=p.touches[0].clientX,d.current=p.touches[0].clientY,f.current=l.current,g.current=d.current,c.style.animation="none",c.style.transition="none")},C=p=>{if(!a.current)return;f.current=p.touches[0].clientX,g.current=p.touches[0].clientY;const m=f.current-l.current,b=g.current-d.current,v=Math.abs(m),_=Math.abs(b),w=v>_?m:0,k=_>=v?b:0,T=Math.sqrt(m**2+b**2),$=Math.max(1-T/300,0);c.style.transform=`translate(${w}px, ${k}px)`,c.style.opacity=`${$}`},u=()=>{if(!a.current)return;a.current=!1;const p=f.current-l.current,m=g.current-d.current,b=Math.abs(p),v=Math.abs(m),_=c.offsetWidth,w=c.offsetHeight;let k=!1;if(b>2/3*_&&(k=!0),k||(m<0&&v>w/2&&(k=!0),m>0&&v>w&&(k=!0)),k){i("swipe"),o(!0),c.style.transition="";const T=p>0?_:-_,$=m>0?w:-w;c.style.transform=`translate(${T}px, ${$}px)`,c.style.opacity="0",setTimeout(()=>n("swipe"),br.swipe)}else o(!1),i(void 0),c.style.transition="",c.style.transform="translate(0px, 0px)",c.style.opacity="1"};return c.addEventListener("touchstart",x),c.addEventListener("touchmove",C),c.addEventListener("touchend",u),()=>{c.removeEventListener("touchstart",x),c.removeEventListener("touchmove",C),c.removeEventListener("touchend",u)}},[e,r,n,o,i])};let T1=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((r,n)=>(n&=63,n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n>62?r+="-":r+="_",r),"");const E1="_stack_1sg4d_1",R1="_local_1sg4d_19",N1="_snackWrapper_1sg4d_27",et={stack:E1,local:R1,snackWrapper:N1},I1="_snackbar_1gs18_14",M1="_slideIn_1gs18_1",O1="_snackbarStack_1gs18_41",A1="_snackbarVertical_1gs18_46",B1="_fix_1gs18_54",P1="_fill_1gs18_60",z1="_hug_1gs18_66",D1="_content_1gs18_72",W1="_contentVertical_1gs18_80",F1="_contentText_1gs18_84",q1="_icon_1gs18_88",H1="_exiting_1gs18_94",V1="_slideOut_1gs18_1",X1="_exitingTimeout_1gs18_100",Z1="_exitingClose_1gs18_105",U1="_exitingStack_1gs18_112",Y1="_swipeTransition_1gs18_119",G1="_exitingEscape_1gs18_125",ue={snackbar:I1,slideIn:M1,snackbarStack:O1,snackbarVertical:A1,fix:B1,fill:P1,hug:z1,content:D1,contentVertical:W1,contentText:F1,icon:q1,exiting:H1,slideOut:V1,exitingTimeout:X1,exitingClose:Z1,exitingStack:U1,swipeTransition:Y1,exitingEscape:G1},K1=()=>t.jsxs("svg",{viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[t.jsxs("g",{clipPath:"url(#clip0_3152_20713)",children:[t.jsx("mask",{id:"mask0_3152_20713",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",children:t.jsx("path",{d:"M15.5 5.5L5.5 15.5M5.5 5.5L15.5 15.5",stroke:"black",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})}),t.jsx("g",{mask:"url(#mask0_3152_20713)",children:t.jsx("rect",{x:"0.5",y:"0.5",width:"20",height:"20",fill:"currentColor",fillOpacity:"0.48"})})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_3152_20713",children:t.jsx("rect",{width:"20",height:"20",fill:"currentColor",transform:"translate(0.5 0.5)"})})})]}),J1=({className:e})=>t.jsxs("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"data-testid":"snackbar-icon-error",children:[t.jsx("mask",{id:"mask0_3156_27258",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"25",height:"25",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 1.5C6.42487 1.5 1.5 6.42487 1.5 12.5C1.5 18.5751 6.42487 23.5 12.5 23.5C18.5751 23.5 23.5 18.5751 23.5 12.5C23.5 6.42487 18.5751 1.5 12.5 1.5ZM8.5 11.5C7.94772 11.5 7.5 11.9477 7.5 12.5C7.5 13.0523 7.94772 13.5 8.5 13.5H16.5C17.0523 13.5 17.5 13.0523 17.5 12.5C17.5 11.9477 17.0523 11.5 16.5 11.5H8.5Z",fill:"black"})}),t.jsx("g",{mask:"url(#mask0_3156_27258)",children:t.jsx("rect",{x:"0.5",y:"0.5",width:"24",height:"24",fill:"#FE725F"})})]}),Q1=({className:e})=>t.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"data-testid":"snackbar-icon-info",children:[t.jsxs("g",{"clip-path":"url(#clip0_3031_21000)",children:[t.jsx("mask",{id:"mask0_3031_21000",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.80877 14.5947L5.43693 15.1334L5.23343 15.9889C4.28722 19.9668 3.81411 21.9558 4.8928 22.7395C5.97149 23.5232 7.7169 22.4586 11.2077 20.3295L11.9743 19.8619L12.7408 20.3295C16.2316 22.4586 17.977 23.5232 19.0557 22.7395C20.1344 21.9558 19.6613 19.9668 18.7151 15.9889L18.5203 15.1699L19.1908 14.5947C22.2944 11.9327 23.8463 10.6017 23.4342 9.33364C23.0222 8.06557 20.9844 7.9009 16.9088 7.57156L16.0423 7.50154L15.6923 6.66154C14.1197 2.88718 13.3333 1 12 1C10.6667 1 9.88034 2.88717 8.3077 6.66152L7.95775 7.50141L7.09075 7.57147C3.01514 7.90081 0.977339 8.06547 0.565317 9.33355C0.153294 10.6016 1.70512 11.9326 4.80877 14.5947Z",fill:"black"})}),t.jsx("g",{mask:"url(#mask0_3031_21000)",children:t.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),t.jsx("defs",{children:t.jsx("clipPath",{id:"clip0_3031_21000",children:t.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),e2=({className:e})=>t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"data-testid":"snackbar-icon-success",children:t.jsx("g",{transform:"translate(-2.8, -2.8) scale(1.24)",children:t.jsxs("g",{clipPath:"url(#clip0_343_52329)",children:[t.jsx("mask",{id:"mask0_343_52329",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:t.jsx("g",{clipPath:"url(#clip1_343_52329)",children:t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.83334 12C2.83334 6.93737 6.9374 2.83331 12 2.83331C17.0626 2.83331 21.1667 6.93737 21.1667 12C21.1667 17.0626 17.0626 21.1666 12 21.1666C6.9374 21.1666 2.83334 17.0626 2.83334 12ZM16.3393 8.91072C16.6647 9.23616 16.6647 9.7638 16.3393 10.0892L11.3393 15.0892C11.0138 15.4147 10.4862 15.4147 10.1608 15.0892L7.66075 12.5892C7.33532 12.2638 7.33532 11.7362 7.66075 11.4107C7.98619 11.0853 8.51383 11.0853 8.83927 11.4107L10.75 13.3215L15.1608 8.91072C15.4862 8.58529 16.0138 8.58529 16.3393 8.91072Z",fill:"black"})})}),t.jsx("g",{mask:"url(#mask0_343_52329)",children:t.jsx("rect",{x:"0",y:"0",width:"24",height:"24",fill:"#5BCF83"})})]})})}),t2=h.forwardRef((e,r)=>{const{open:n,variant:o="info",mode:i="fix",onClose:a,autoHideDuration:l=6e3,disableAutoHide:d=!1,showButtonClose:f=!0,showIcon:g=!0,content:c,classNameSnackbarRoot:x,icon:C,isStack:u=!1,forceClose:p,"data-testid":m="snackbar"}=e,b=h.useRef(null),v=h.useRef(null),[_,w]=h.useState(!1),[k,T]=h.useState(!1),[$,E]=h.useState(),R=h.useRef(0),I=h.useRef(0),B=h.useRef(0),D=h.useRef(0),W=h.useRef(!1),L=h.useRef(null),M=z=>{clearTimeout(L.current||0),L.current=null;const K=u?j1[z]:br[z];z==="swipe"||(T(!0),E(z)),L.current=setTimeout(()=>{a==null||a(),T(!1),E(void 0),L.current=null},K)};$1({ref:v,open:n,onClose:M,setExiting:T,setExitReason:E,swiping:W,startX:R,startY:I,currentX:B,currentY:D}),h.useEffect(()=>{p&&M("close")},[p]),h.useEffect(()=>{if(n&&!d&&o!=="loading"){const z=setTimeout(()=>M("timeout"),l);return()=>clearTimeout(z)}},[n,d,o,l]),h.useEffect(()=>{n&&(T(!1),E(void 0))},[n]),h.useEffect(()=>{const z=b.current;z&&requestAnimationFrame(()=>{const K=parseFloat(getComputedStyle(z).lineHeight),U=z.offsetHeight,Q=Math.round(U/K);w(Q>1)})},[c]),h.useEffect(()=>{if(!n)return;const z=K=>{K.key==="Escape"&&M("escape")};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[n]),h.useEffect(()=>()=>{L.current&&(clearTimeout(L.current),L.current=null)},[]);const q=k&&$&&ue[S1[$]];if(!n&&!k)return null;const H={success:t.jsx(e2,{className:ue.icon}),error:t.jsx(J1,{className:ue.icon}),info:t.jsx(Q1,{className:ue.icon}),loading:t.jsx(st,{"data-testid":"snackbar-icon-loading",variant:"contrast"})},Z=we(ue.snackbar,ue[i],{[ue.exiting]:k&&$},{[ue.snackbarVertical]:_},x,q,{[ue.snackbarStack]:u&&!k,[ue.exitingStack]:u&&k}),G=z=>{v.current=z,r&&(typeof r=="function"?r(z):r.current=z)};return t.jsxs("div",{ref:G,"data-testid":m,className:Z,children:[t.jsxs("div",{className:we(ue.content,{[ue.contentVertical]:_}),children:[g&&t.jsx("div",{className:ue.icon,children:C||H[o]}),t.jsx(Ne.Label,{className:ue.contentText,ref:b,typographyStyle:"contrast",children:c})]}),f&&t.jsx(Xe,{iconLeft:t.jsx(K1,{}),onClick:()=>M("close"),mode:"tertiary",buttonStyle:"contrast",style:{padding:"0px"}})]})}),r2=e=>{const{children:r,dataTestId:n="snackbar-wrapper"}=e,[o,i]=h.useReducer(L1,{visible:[],queue:[]}),a=u=>{const p=T1(),m={...u,id:p,open:!0};i({type:"ENQUEUE",snack:m})},l=u=>{i({type:"REMOVE",id:u})};h.useEffect(()=>{i({type:"SHOW_NEXT"})},[o.queue,o.visible]),h.useEffect(()=>{if(o.queue.length!==0)if(o.visible.length>=mt){const u=o.visible[0];i({type:"START_EXIT",id:u.id})}else i({type:"SHOW_NEXT"})},[o.queue]);const d=u=>u.map((p,m)=>{const b=(u.length-1-m)*-8,v=u.length>1;v&&!p.wasInStack&&(p.wasInStack=!0);const _=p.wasInStack||v?"fix":p.mode;return t.jsx("div",{"data-testid":n,className:et.snackWrapper,style:{transform:`translateY(${b}px)`},children:t.jsx(t2,{...p,open:!p.exiting,isStack:v,mode:_,forceClose:p.exiting,onClose:()=>l(p.id)})},p.id)}),f=o.visible.filter(u=>!u.parent),g=o.visible.filter(u=>u.parent),c=Ot.createPortal(t.jsx("div",{className:et.stack,children:d(f)}),document.body),x=g.reduce((u,p)=>{if(!p.parent)return u;const m=p.parent.id||`parent-${p.parent.className}`;return(u[m]||(u[m]=[])).push(p),u},{}),C=Object.entries(x).map(([u,p])=>{const m=p[0];return m.parent?Ot.createPortal(t.jsx("div",{className:we(et.stack,et.local),children:d(p)},u),m.parent):null});return t.jsxs(mr.Provider,{value:{show:a},children:[r,c,C]})};exports.Alert=Co;exports.Avatar=or;exports.Badge=lr;exports.Button=Xe;exports.Checkbox=qa;exports.ConfigProvider=ua;exports.Helper=fr;exports.Image=Mo;exports.List=Nl;exports.Loader=st;exports.Modal=io;exports.Placeholder=ir;exports.Radio=wl;exports.SegmentedControl=m1;exports.SnackbarProvider=r2;exports.Tabs=fc;exports.Tag=Ta;exports.TextArea=el;exports.TextInput=Vi;exports.Tooltip=Pc;exports.Trigger=w1;exports.Typography=Ne;exports.enUS=cr;exports.ruRU=_a;exports.useConfig=ur;exports.useLocale=Oo;exports.useSnackbar=k1;
|
|
34
|
+
*/var Fe;function Kn(){return Fe||(Fe=1,(function(t){(function(){var r={}.hasOwnProperty;function n(){for(var s="",l=0;l<arguments.length;l++){var d=arguments[l];d&&(s=i(s,a(d)))}return s}function a(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return n.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var d in s)r.call(s,d)&&s[d]&&(l=i(l,d));return l}function i(s,l){return l?s?s+" "+l:s+l:s}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(fe)),fe.exports}var Jn=Kn();const Ct=Vr(Jn),or=g.forwardRef(({size:t=24,variant:r="accent",className:n,"data-testid":a="loader",style:i,...s},l)=>{const d=Ct(Xt.loader,Xt[r],Xt[`size-${t}`],n);return e.jsx("svg",{ref:l,className:d,fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg","data-testid":a,style:i,...s,children:e.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"})})}),Qn=g.forwardRef((t,r)=>{const{loading:n=!1,size:a=24,variant:i="accent",children:s,className:l,style:d,"data-testid":h,...x}=t,c=Ct(Xt.container,l);return e.jsxs("div",{ref:r,className:c,style:d,"data-testid":h,...x,children:[s,n&&e.jsx("div",{className:Xt.overlay,children:e.jsx(or,{size:a,variant:i,"data-testid":`${h}-spinner`})})]})}),ae=g.forwardRef((t,r)=>t.children?e.jsx(Qn,{ref:r,...t}):e.jsx(or,{ref:r,...t})),to=({width:t=24,height:r=24,className:n="",color:a="currentColor",...i})=>e.jsx("svg",{className:n,width:t,height:r,fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:e.jsx("path",{d:"M19 12H5m0 0 7 7m-7-7 7-7",stroke:a,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),eo={l:"typography-subtitle-1-semibold",m:"typography-subtitle-2-semibold",s:"typography-label-3-medium",xs:"typography-label-3-medium"},ro=t=>eo[t]||"typography-subtitle-2-semibold",We=({iconRight:t,iconLeft:r,children:n,postfix:a,subcaption:i,size:s,isAsButton:l})=>{const d=!!(i&&l&&s==="l"),h=!!(!n&&l&&r),x=l&&!!(d&&!n&&a||a&&!d);return e.jsxs(g.Fragment,{children:[d&&n&&e.jsxs(g.Fragment,{children:[e.jsx("span",{"data-testid":"button-label",className:S.clsx(V.label,V.labelText),children:n}),e.jsx("span",{"data-testid":"button-subcaption",className:S.clsx(V.subcaption,et["typography-label-4-regular"]),children:i})]}),!d&&n&&e.jsxs("span",{"data-testid":"button-label",className:V.label,children:[r&&e.jsx("span",{"data-testid":"button-left-icon",className:V.icon,children:r}),e.jsx("span",{className:S.clsx(V.labelText,{[V.isLink]:!l}),children:n}),!l&&t&&e.jsx("span",{"data-testid":"button-icon",className:S.clsx(V.icon,V.iconRight),children:t})]}),h&&e.jsx("span",{"data-testid":"button-icon",className:V.icon,children:l?r:t}),x&&e.jsx("div",{"data-testid":"button-right-group",className:V.rightGroup,children:e.jsx("span",{"data-testid":"button-postfix",className:S.clsx(V.postfix,et["typography-subtitle-2-semibold"]),children:a})})]})},be=g.forwardRef((t,r)=>{const{mode:n="primary",size:a="m",buttonStyle:i=ze(t)?"neutral":"accent",disabled:s=!1,className:l,children:d,tabIndex:h}=t,x=n==="tertiary",c=ze(t),b=Kr(t),C=x&&"paddings"in t?t.paddings??!0:!0,u=c?t.subcaption:void 0,f=c?t.postfix:void 0,y=c?t.stretched:void 0,_=!(b&&t.size===void 0),m=b&&_?t.iconLeft:void 0,p=b&&_?t.iconRight:void 0,v=!!(c&&"loading"in t&&t.loading),L=c?s:s||v,T=!L&&!v,k=c?t.iconLeft:void 0,$=!!(!d&&(c&&k&&!f||b&&p)),R=typeof y=="object"?y.justify==="space-between":void 0,I=ro(a),A=et[I],D=b?Pn(t.size??"m"):void 0,F=D?et[D]:void 0,E=zn(L,n,i),M=L||v?-1:h,q=S.clsx(V.button,V[a],V[n],V[i],b&&F,c&&A,{[V.disabled]:L,[V.loading]:c&&"loading"in t&&t.loading,[V.stretched]:y,[V.spaceBetween]:R,[V.withSubcaption]:!!(u&&a==="l"&&d),[V.iconOnly]:$,[V.link]:b,[V.underline]:b&&"showUnderline"in t&&t.showUnderline,[V.noPaddings]:x&&c&&!C},l),H={iconRight:p,iconLeft:c?k:m,children:d,postfix:f,subcaption:u,size:a,isAsButton:c};if(Yr(t)){const{href:U,onClick:G,style:z,target:K,rel:Z,"data-testid":Q,...it}=t,kt=De(it),bt=K??(t.isExternal?"_blank":void 0);let lt=Z;if(bt==="_blank"){const pt=new Set((Z??"").split(/\s+/).filter(Boolean));pt.add("noopener").add("noreferrer"),lt=Array.from(pt).join(" ")}const Et=pt=>{if(!T){pt.preventDefault();return}G==null||G(pt)};return e.jsx("a",{ref:r,className:q,href:T?U:void 0,tabIndex:M,onClick:Et,"data-testid":Q,"aria-disabled":L||v,style:z,target:bt,rel:lt,...kt,children:e.jsx(We,{...H})})}if(Gr(t)){const{type:U="button",onClick:G,style:z,"data-testid":K,...Z}=t,Q=De(Z),it=a==="l"?24:16,kt=bt=>{T&&G&&G(bt)};return e.jsxs("button",{ref:r,type:U,className:q,disabled:L,tabIndex:M,onClick:kt,"data-testid":K,"aria-disabled":L||v,style:z,...Q,children:[e.jsx("div",{className:S.clsx(V.content,{[V.contentHidden]:v}),children:e.jsx(We,{...H})}),v&&e.jsx("div",{className:V.loaderWrapper,children:e.jsx(ae,{variant:E,"aria-hidden":"true","data-testid":"button-loader",size:it})})]})}return null});be.displayName="Button";const ar=g.forwardRef((t,r)=>{const{iconLeft:n,className:a,...i}=t,l={...i,displayAs:"button",mode:"tertiary",buttonStyle:"neutral",size:"m",iconLeft:n??e.jsx(to,{}),className:S.clsx(V.backButton,et["typography-subtitle-1-semibold"],a)};return e.jsx(be,{ref:r,...l})});ar.displayName="Button.Back";const Ut=Object.assign(be,{Back:ar}),no="_avatar_19ug4_18",oo="_clickable_19ug4_40",ao="_icon_19ug4_57",so="_disabled_19ug4_62",io="_loading_19ug4_67",lo="_image_19ug4_73",co="_name_19ug4_73",wt={avatar:no,clickable:oo,icon:ao,disabled:so,loading:io,image:lo,name:co,"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"},qe=99;function uo(t){return t<qe?`+${t}`:`${qe}+`}function oe(t){const r=typeof t=="string"?t:JSON.stringify(t);let n=5381;for(let a=0;a<r.length;a++){const i=r.charCodeAt(a);n=(n<<5)+n+i}return n>>>0}const _o=(t,r,n)=>Math.min(Math.max(t,r),n),po=["red","orange","yellow","green","blue","lightblue","purple"];function fo(t,r=po){if(!t)return"gray";const n=oe(t),a=Math.abs(n)%r.length;return r[a]}const He=2;function go(t){if(!t)return"";const r=t.trim().split(/\s+/);return r.length===1?t.slice(0,He).toUpperCase():r.map(n=>n[0]).slice(0,He).join("").toUpperCase()}const ho={24:8,32:12,40:12,44:12,48:12,56:16,84:24,96:24,208:8};function xo(t,r){return r==="circle"?t/2:ho[t]||12}const mo={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 bo(t){return mo[t]||"typography-subtitle-1-semibold"}const yo="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",vo="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",wo="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",Co="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",ko={male:yo,female:vo,org:Co,neutral:wo},re=g.forwardRef((t,r)=>{const{style:n,size:a=40,isLoading:i=!1,isDisabled:s=!1,shape:l="circle",variant:d="filled",placeholderType:h="neutral",name:x,imgSrc:c,imgAlt:b,icon:C,imgProps:u,colorScheme:f,className:y,"data-testid":_,...m}=t,{onClick:p,onPointerDown:v}=m,T=!s&&!i&&(!!p||!!v),[k,$]=g.useState(!1);g.useEffect(()=>{c&&$(!1)},[c]);const R=c&&!k?"image":C?"icon":x?"name":"placeholder",I=f||R==="name"&&fo(x)||"gray",A=bo(a),D=xo(a,l),F=S.clsx(y,wt.avatar,wt[`variant-${d}`],wt[`color-${I}`],et[A],{[wt.disabled]:s,[wt.loading]:i,[wt.clickable]:T}),E={"--avatar-size":`${a}px`,"--avatar-border-radius":`${D}px`,...n},M={icon:()=>e.jsx("span",{"data-testid":"avatar-icon",title:b||void 0,role:"img",className:wt.icon,children:C==null?void 0:C({})}),name:()=>e.jsx("span",{role:"textbox","data-testid":"avatar-name",className:wt.name,title:b||void 0,children:go(x||"")}),placeholder:()=>e.jsx("img",{...u,"data-testid":"avatar-placeholder",className:wt.image,src:ko[h],alt:b||void 0}),image:()=>e.jsx("img",{"data-testid":"avatar-image",...u,className:wt.image,src:c||void 0,alt:b||void 0,onLoad:()=>$(!1),onError:H=>{var U;$(!0),(U=u==null?void 0:u.onError)==null||U.call(u,H)}})},q=H=>{T&&(p==null||p(H))};return e.jsx("div",{ref:r,onClick:q,className:F,style:E,"data-testid":_,"aria-disabled":s||i,children:M[R](null)})}),So="_avatarGroup_157g4_1",Lo={avatarGroup:So},jo=t=>t==="rgba(0, 0, 0, 0)"||t==="transparent"||t.startsWith("rgba")&&t.endsWith(", 0)"),$o=t=>{if(!t)return null;let r=t;for(;r;){const a=window.getComputedStyle(r).backgroundColor;if(!jo(a))return a;r=r.parentElement}return null},ye=()=>{const t=g.useRef(null),[r,n]=g.useState(null);return g.useEffect(()=>{if(t.current){const a=$o(t.current);n(a)}},[]),{ref:t,bgColor:r}};function Ve(t,r,n){g.useEffect(()=>(window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n)),[t,r])}const Xe={passive:!0};function To(){const[t,r]=g.useState({width:0,height:0}),n=g.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Ve("resize",n,Xe),Ve("orientationchange",n,Xe),g.useEffect(n,[]),t}function Eo(t=768){const{width:r}=To();return g.useMemo(()=>r<=t,[r,t])}const Ro=2,Io=t=>{const{avatars:r=[],size:n=40,overlap:a=.3,shape:i="circle",overflowCount:s=0,overflowProps:l,cutoutBackground:d}=t,x=-(n*a)+Ro,{ref:c,bgColor:b}=ye(),C=d||b||"#ffffff",u=Ct(Lo.avatarGroup),f={"--avatar-cutout-bg":C};return r.length===0?null:e.jsxs("div",{className:u,ref:c,style:f,children:[r.map((y,_)=>{if(y.wrapper){const m=y.wrapper;return e.jsx("div",{style:{marginRight:x},children:e.jsx(m,{children:e.jsx(re,{size:n,shape:i,...y})})},oe(y)+_)}return e.jsx("div",{style:{marginRight:x},children:e.jsx(re,{size:n,shape:i,...y})},oe(y)+_)}),s>0&&e.jsx("div",{style:{marginRight:x},children:e.jsx(re,{size:n,shape:i,icon:()=>uo(s),colorScheme:"gray",variant:"light",...l})})]})},sr=Object.assign(re,{Group:Io}),No="_overlay_1k1w9_6",Mo="_container_1k1w9_20",Ao="_grabber_1k1w9_98",Ht={overlay:No,container:Mo,"placement-default":"_placement-default_1k1w9_33","placement-bottom-left":"_placement-bottom-left_1k1w9_46","placement-bottom-right":"_placement-bottom-right_1k1w9_55","placement-center":"_placement-center_1k1w9_65","placement-left-drawer":"_placement-left-drawer_1k1w9_77","placement-right-drawer":"_placement-right-drawer_1k1w9_82","placement-bottom-sheet":"_placement-bottom-sheet_1k1w9_87",grabber:Ao,"grabber-top":"_grabber-top_1k1w9_116","grabber-bottom":"_grabber-bottom_1k1w9_117","grabber-right":"_grabber-right_1k1w9_123","grabber-left":"_grabber-left_1k1w9_132"};function Oo(t){switch(t){case"default":return"top";case"bottom-sheet":return"bottom";case"center":default:return}}const Bo=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 Po({open:t,onOpenChange:r,placement:n="center",disableEscapeKey:a=!1}){const i=g.useCallback(f=>{r==null||r(f)},[r]),s=Oo(n),{context:l,refs:d}=$t.useFloating({open:t,onOpenChange:i,placement:s}),h=Bo(n),{isMounted:x,styles:c}=$t.useTransitionStyles(l,{duration:200,common:{transitionProperty:"opacity, transform",transitionTimingFunction:"ease-in-out",transformOrigin:s??"center",position:"fixed",opacity:0},...h}),b=$t.useDismiss(l,{escapeKey:!a,outsidePress:!1}),C=$t.useRole(l,{role:"dialog"}),{getFloatingProps:u}=$t.useInteractions([b,C]);return g.useMemo(()=>({isMounted:x,transitionStyles:c,context:l,refs:d,getFloatingProps:u}),[x,c,l,d,u])}const zo=80;function Do({open:t,onOpenChange:r,placement:n="center",disableEscapeKey:a=!1,closeOnDrag:i}){const{getFloatingProps:s,transitionStyles:l,isMounted:d,context:h,refs:x}=Po({open:t,onOpenChange:r,placement:n,disableEscapeKey:a}),c=g.useRef({startX:0,startY:0,dragging:!1}),[b,C]=g.useState(0),u=i==null?void 0:i.direction,f=(i==null?void 0:i.threshold)??zo,y=u==="top"||u==="bottom",_=t&&!!u;g.useEffect(()=>{t||(c.current.dragging=!1,C(0))},[t]);const m=g.useCallback(k=>{_&&(c.current.dragging=!0,c.current.startX=k.clientX,c.current.startY=k.clientY,C(0))},[_]),p=g.useCallback(k=>{if(!c.current.dragging||!_)return;const $=k.clientX-c.current.startX,R=k.clientY-c.current.startY;let I;switch(u){case"bottom":I=Math.max(0,R);break;case"top":I=Math.max(0,-R);break;case"right":I=Math.max(0,$);break;case"left":I=Math.max(0,-$);break;default:I=y?R:$}C(I)},[_,u,y]),v=g.useCallback(k=>{var $,R;if(!(!c.current.dragging||!_)){c.current.dragging=!1;try{(R=($=k.currentTarget).hasPointerCapture)!=null&&R.call($,k.pointerId)&&k.currentTarget.releasePointerCapture(k.pointerId)}catch{}b>=f?r(!1):C(0)}},[b,f,r,_]),L=g.useMemo(()=>{if(!_)return l;if(c.current.dragging){const k={...l,transitionProperty:"none"};if(b>0){const $=u==="left"||u==="top"?-b:b;k.transform=y?`translateY(${$}px)`:`translateX(${$}px)`}return k}return l},[l,b,_,y,u]),T=g.useCallback(k=>s(_?{...k,onPointerDown:m,onPointerUp:v,onPointerMove:p,onPointerCancel:v}:k),[s,m,p,v,_]);return g.useMemo(()=>({isMounted:d,context:h,refs:x,transitionStyles:L,getFloatingProps:T}),[d,L,T,h,x])}const ir=g.forwardRef((t,r)=>{const{placement:n="default",open:a,onOpenChange:i,overlayProps:s,portalProps:l,focusManagement:d,children:h,disableOutsideClick:x=!1,disableEscapeKey:c=!1,disableOverlay:b=!1,closeOnDrag:C,className:u,style:f,"data-testid":y,..._}=t;a===void 0&&process.env.NODE_ENV!=="production"&&console.error("Dialog: компонент должен быть контролируемым. Используйте пропсы open и onOpenChange.");const m=Do({open:a,onOpenChange:i,placement:n,disableEscapeKey:c,closeOnDrag:C}),{isMounted:p,transitionStyles:v}=m,L=$t.useMergeRefs([r,m.refs.setFloating]),T=()=>{x||i(!1)};return p?e.jsxs($t.FloatingPortal,{...l,children:[!b&&e.jsx($t.FloatingOverlay,{onPointerDown:T,"data-testid":"dialog-overlay",className:S.clsx(Ht.overlay,s==null?void 0:s.className),lockScroll:(s==null?void 0:s.lockScroll)??!0,style:{opacity:v==null?void 0:v.opacity,transition:v==null?void 0:v.transition,...s==null?void 0:s.style}}),e.jsx($t.FloatingFocusManager,{initialFocus:1/0,...d,context:{...m.context,...d==null?void 0:d.context},children:e.jsxs("section",{ref:L,"aria-modal":"true",role:"dialog",className:S.clsx(u,Ht.container,Ht[`placement-${n}`]),style:{...f,...v},"data-testid":y,...m.getFloatingProps(_),children:[h,C&&e.jsx("div",{className:S.clsx(Ht.grabber,Ht[`grabber-${C.direction}`]),role:"presentation","aria-hidden":"true","data-testid":y?`${y}-grabber`:void 0})]})})]}):null}),Fo="_container_1h1i8_1",Wo="_header_1h1i8_20",qo="_withBorder_1h1i8_55",Ho="_title_1h1i8_39",Vo="_subTitle_1h1i8_70",Xo="_leftActionsStack_1h1i8_81",Uo="_rightActionsStack_1h1i8_89",Zo="_content_1h1i8_97",Yo="_footer_1h1i8_105",vt={container:Fo,header:Wo,"title-actions-actions":"_title-actions-actions_1h1i8_39","actions-title-actions":"_actions-title-actions_1h1i8_47",withBorder:qo,title:Ho,subTitle:Vo,leftActionsStack:Xo,rightActionsStack:Uo,content:Zo,footer:Yo},Go="_typography_zt7xg_1",Ko="_disabled_zt7xg_8",Jo="_primary_zt7xg_13",Qo="_secondary_zt7xg_18",ta="_tertiary_zt7xg_23",ea="_accent_zt7xg_28",ra="_positive_zt7xg_38",na="_negative_zt7xg_48",oa="_warning_zt7xg_58",aa="_special_zt7xg_68",sa="_contrast_zt7xg_78",Dt={typography:Go,disabled:Ko,primary:Jo,secondary:Qo,tertiary:ta,accent:ea,"accent-secondary":"_accent-secondary_zt7xg_33",positive:ra,"positive-secondary":"_positive-secondary_zt7xg_43",negative:na,"negative-secondary":"_negative-secondary_zt7xg_53",warning:oa,"warning-secondary":"_warning-secondary_zt7xg_63",special:aa,"special-secondary":"_special-secondary_zt7xg_73",contrast:sa,"contrast-secondary":"_contrast-secondary_zt7xg_83"},ia={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5"},Ue=t=>{const r=nr.forwardRef(({size:n=3,children:a,className:i,"data-testid":s,as:l,fontWeight:d="semibold",disabled:h=!1,typographyStyle:x="primary",...c},b)=>{const C=l||ia[n],u=S.clsx(Dt.typography,et[`typography-${t}-${n}-${d}`],Dt[x],{[Dt.disabled]:h},i);return a?e.jsx(C,{ref:b,className:u,"data-testid":s,...c,children:a}):null});return r.displayName=`Typography.${t==="title"?"Title":"Subtitle"}`,r},Ze=t=>{const r=nr.forwardRef(({size:n=3,children:a,className:i,"data-testid":s,as:l="p",fontWeight:d="regular",disabled:h=!1,typographyStyle:x="primary",...c},b)=>{const C=l,u=S.clsx(Dt.typography,et[`typography-${t}-${n}-${d}`],Dt[x],{[Dt.disabled]:h},i);return a?e.jsx(C,{ref:b,className:u,"data-testid":s,...c,children:a}):null});return r.displayName=`Typography.${t.charAt(0).toUpperCase()+t.slice(1)}`,r},It={Title:Ue("title"),Subtitle:Ue("subtitle"),Label:Ze("label"),Paragraph:Ze("paragraph")},la=t=>e.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M14 2L2 14M2 2L14 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),ca=t=>e.jsx("svg",{width:"100%",height:"100%",stroke:"currentColor",fill:"none",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t,children:e.jsx("path",{d:"M11 2 L5 8 L11 14",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),{Paragraph:da,Title:ua}=It,_a={size:"xs",mode:"primary",buttonStyle:"gray"},Ye=t=>{const{props:r,wrapper:n}=t,a={..._a,...r};return n?e.jsx(n,{children:e.jsx(Ut,{...a})}):e.jsx(Ut,{...a})},pa=g.forwardRef((t,r)=>{const{open:n,onOpenChange:a,size:i,placement:s="default",rightActionsSlot:l=[],leftActionsSlot:d=[],closeButton:h={show:!0},backButton:x={show:!1},title:c,subTitle:b,children:C,footer:u,hideHeaderDivider:f=!1,hideFooterDivider:y=!1,classNames:_,styles:m,headerTemplate:p,"data-testid":v,...L}=t,T=s==="bottom-sheet"?"actions-title-actions":"title-actions-actions",k=s==="bottom-sheet"?{direction:"bottom",threshold:80}:t==null?void 0:t.closeOnDrag,$=()=>a(!1),R=!!(c||b||h.show||x.show||l.length||d.length),I=c?`${v||"modal"}-title`:void 0,A=b?`${v||"modal"}-subtitle`:void 0;return e.jsx(ir,{open:n,onOpenChange:a,placement:s,ref:r,style:{width:i,...m==null?void 0:m.dialog},closeOnDrag:k,className:_==null?void 0:_.dialog,...L,children:e.jsxs("div",{className:S.clsx(vt.container,_==null?void 0:_.container),style:{width:i,...m==null?void 0:m.container},"data-testid":v?`${v}-container`:void 0,children:[R&&e.jsxs("div",{"data-testid":v?`${v}-header`:void 0,className:S.clsx(vt.header,!f&&vt.withBorder,vt[p||T],_==null?void 0:_.header),style:m==null?void 0:m.header,children:[e.jsxs("div",{className:S.clsx(vt.leftActionsStack,_==null?void 0:_.leftActionsStack),style:m==null?void 0:m.leftActionsStack,children:[x.show&&e.jsx(Ye,{wrapper:x.wrapper,props:{iconLeft:e.jsx(ca,{}),"aria-label":"Back",onClick:$,...x==null?void 0:x.props}}),d]}),e.jsx("div",{id:I,className:S.clsx(vt.title,_==null?void 0:_.title),style:m==null?void 0:m.title,children:typeof c=="string"?e.jsx(ua,{size:5,children:c}):c}),e.jsxs("div",{className:S.clsx(vt.rightActionsStack,_==null?void 0:_.rightActionsStack),style:m==null?void 0:m.rightActionsStack,children:[l,h.show&&e.jsx(Ye,{wrapper:h.wrapper,props:{iconLeft:e.jsx(la,{}),"aria-label":"Close modal",onClick:$,...h==null?void 0:h.props}})]}),b&&e.jsx("div",{id:A,className:S.clsx(vt.subTitle,_==null?void 0:_.subTitle),style:m==null?void 0:m.subTitle,children:typeof b=="string"?e.jsx(da,{size:2,typographyStyle:"secondary",children:b}):b})]}),e.jsx("div",{className:S.clsx(vt.content,_==null?void 0:_.content),style:{...m==null?void 0:m.content},"data-testid":v?`${v}-content`:void 0,children:C}),u&&e.jsx("div",{"data-testid":v?`${v}-footer`:void 0,className:S.clsx(vt.footer,!y&&vt.withBorder,_==null?void 0:_.footer),style:m==null?void 0:m.footer,children:u})]})})}),fa=()=>e.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),ga=()=>e.jsx("svg",{width:"23",height:"22",viewBox:"0 0 23 22",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),ha=()=>e.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),xa=()=>e.jsx("svg",{width:"22",height:"22",viewBox:"0 0 22 22",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),ma=()=>e.jsx("svg",{width:"22",height:"20",viewBox:"0 0 22 20",fill:"currentColor",stroke:"none",xmlns:"http://www.w3.org/2000/svg",children:e.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"})}),Jt={avatar:{icon:null,colorScheme:"gray"},info:{icon:fa,colorScheme:"gray"},success:{icon:ha,colorScheme:"green"},warning:{icon:ma,colorScheme:"yellow"},error:{icon:xa,colorScheme:"red"},dialog:{icon:ga,colorScheme:"blue"}},ba="_container_dd9oq_1",ya={container:ba},va="_container_29epc_1",wa="_children_29epc_10",Ca="_iconSlot_29epc_10",ka="_textBlock_29epc_17",Sa="_title_29epc_24",La="_subtitle_29epc_24",Pt={container:va,children:wa,iconSlot:Ca,textBlock:ka,title:Sa,subtitle:La},Qt={m:{title:"typography-subtitle-1-semibold",subtitle:"typography-paragraph-3-regular"},l:{title:"typography-title-5-semibold",subtitle:"typography-paragraph-2-regular"}};function ja(t){return(Qt==null?void 0:Qt[t])||Qt.m}const lr=t=>{const{iconSlot:r,title:n,subTitle:a,styles:i,classNames:s,children:l,"data-testid":d,size:h="m"}=t,x=ja(h);return e.jsxs("div",{className:S.clsx(Pt.container,s==null?void 0:s.container),style:i==null?void 0:i.container,"data-testid":d,children:[r&&e.jsx("div",{style:i==null?void 0:i.iconSlot,className:S.clsx(Pt.iconSlot,s==null?void 0:s.iconSlot),children:r}),(n||a)&&e.jsxs("div",{className:S.clsx(Pt.textBlock,s==null?void 0:s.textBlock),children:[n&&e.jsx("p",{style:i==null?void 0:i.title,className:S.clsx(Pt.title,et[x.title],s==null?void 0:s.title),children:n}),a&&e.jsx("p",{style:i==null?void 0:i.subTitle,className:S.clsx(Pt.subtitle,et[x.subtitle],s==null?void 0:s.subTitle),children:a})]}),l&&e.jsx("div",{className:S.clsx(Pt.children,s==null?void 0:s.children),children:l})]})},$a=t=>{const{open:r,onOpenChange:n,placement:a="default",variant:i="info",title:s,description:l,children:d,variantAvatarProps:h,"data-testid":x,styles:c,classNames:b,...C}=t,{icon:u,colorScheme:f}=(Jt==null?void 0:Jt[i])||Jt.info,_=i==="avatar"?{size:48,colorScheme:"gray",variant:"light","data-testid":"alert-avatar",...h}:{size:48,icon:u,colorScheme:f,variant:"light",style:{fontSize:24,outline:"none"},"data-testid":"alert-icon"};return e.jsx(ir,{open:r,onOpenChange:n,placement:a,"data-testid":x,className:S.clsx(ya.container,b==null?void 0:b.dialog),style:c==null?void 0:c.dialog,...C,children:e.jsx(lr,{title:s,subTitle:l,classNames:b,styles:c,size:"m",iconSlot:e.jsx(sr,{..._}),children:d})})},Ta="_wrapper_1mnix_5",Ea="_badge__container_1mnix_6",Ra="_badge__content_1mnix_7",Ia="_interactive_1mnix_20",Na="_disabled_1mnix_21",Ma="_icon_1mnix_22",St={wrapper:Ta,badge__container:Ea,badge__content:Ra,interactive:Ia,disabled:Na,icon:Ma,"variant-filled":"_variant-filled_1mnix_98","color-brand":"_color-brand_1mnix_103","color-red":"_color-red_1mnix_111","color-orange":"_color-orange_1mnix_119","color-yellow":"_color-yellow_1mnix_127","color-green":"_color-green_1mnix_135","color-blue":"_color-blue_1mnix_143","color-lightblue":"_color-lightblue_1mnix_151","color-purple":"_color-purple_1mnix_159","color-gray":"_color-gray_1mnix_167","color-contrast":"_color-contrast_1mnix_175","variant-light":"_variant-light_1mnix_184","variant-outline":"_variant-outline_1mnix_260","variant-transparent":"_variant-transparent_1mnix_338","position-top-left":"_position-top-left_1mnix_409","position-top-right":"_position-top-right_1mnix_415","position-bottom-left":"_position-bottom-left_1mnix_421","position-bottom-right":"_position-bottom-right_1mnix_427","position-top-center":"_position-top-center_1mnix_433","position-bottom-center":"_position-bottom-center_1mnix_439","position-middle-left":"_position-middle-left_1mnix_445","position-middle-right":"_position-middle-right_1mnix_451","position-middle-center":"_position-middle-center_1mnix_457","position-top-left-inside":"_position-top-left-inside_1mnix_464","position-top-right-inside":"_position-top-right-inside_1mnix_470","position-bottom-left-inside":"_position-bottom-left-inside_1mnix_476","position-bottom-right-inside":"_position-bottom-right-inside_1mnix_482","position-top-center-inside":"_position-top-center-inside_1mnix_488","position-bottom-center-inside":"_position-bottom-center-inside_1mnix_494","position-middle-left-inside":"_position-middle-left-inside_1mnix_500","position-middle-right-inside":"_position-middle-right-inside_1mnix_506"},cr=g.forwardRef((t,r)=>{const{icon:n,children:a,variant:i="filled",label:s,isHidden:l=!1,colorScheme:d="red",size:h=20,position:x="top-right",positionOffset:c={x:0,y:0},cutoutBackground:b,isDisabled:C,className:u,"data-testid":f="badge",...y}=t,{onClick:_,onPointerDown:m}=y,{ref:p,bgColor:v}=ye(),L=b||v,k=!C&&(!!_||!!m),$=Ct(St.badge__container,St[`position-${x}`]),R=Ct(u,St.badge__content,St[`color-${d}`],St[`variant-${i}`],{[St.disabled]:C,[St.icon]:!!n,[St.interactive]:k}),I={"--badge-height":`${h}px`,"--badge-offset-x":`${c.x}px`,"--badge-offset-y":`${c.y}px`,...L&&{"--badge-cutout-bg":L},...i==="transparent"&&{"--badge-cutout-bg":"transparent"}},A=(n==null?void 0:n({}))||s,D=F=>{k&&(_==null||_(F))};return e.jsxs("div",{className:St.wrapper,ref:p,"data-testid":f+"-wrapper",children:[a,!l&&e.jsx("span",{className:$,style:I,"data-testid":f+"-container",children:e.jsx("span",{...y,onClick:D,className:R,"data-testid":f+"-content",ref:r,"aria-disabled":C,children:A})})]})}),Aa="_container_yn8yz_7",Oa="_loading_yn8yz_17",Ba="_error_yn8yz_18",Pa="_image_yn8yz_22",Vt={container:Aa,loading:Oa,error:Ba,image:Pa},za=({width:t=48,height:r=48,className:n,"data-testid":a})=>e.jsx("svg",{width:t,height:r,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,"data-testid":a,children:e.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"})}),Da=g.forwardRef((t,r)=>{const{alt:n="",loading:a="lazy",src:i,isLoading:s=!1,style:l,className:d,containerProps:h,"data-testid":x="image",onError:c,onLoad:b,...C}=t,{className:u,...f}=h??{},[y,_]=g.useState("loading"),m=y==="error",p=(s||y==="loading")&&!m,v=y==="loaded"&&!s,L=S.clsx(Vt.container,{[Vt.loading]:p&&!v,[Vt.error]:m&&!v},u),T=S.clsx(Vt.image,{[Vt.loading]:p},d),k=g.useCallback(I=>{_("loaded"),b==null||b(I)},[b]),$=g.useCallback(I=>{_("error"),c==null||c(I)},[c]),R={loader:e.jsxs(g.Fragment,{children:[e.jsx(ae,{size:48,variant:"special","data-testid":`${x}-loader`}),e.jsx("img",{alt:n,src:i,onLoad:k,onError:$,style:{display:"none"}})]}),error:e.jsx(za,{"data-testid":`${x}-fallback`}),image:e.jsx("img",{ref:r,alt:n,"data-testid":x,loading:a,src:i,className:T,...C})};return g.useEffect(()=>{if(!i){_("error");return}_("loading")},[i]),e.jsxs("div",{className:L,"data-testid":`${x}-container`,style:l,...f,children:[p&&R.loader,m&&R.error,v&&R.image]})}),dr={},ur=g.createContext({locale:dr}),_r=()=>{const t=g.useContext(ur);if(!t)throw new Error("useConfig must be used within a ConfigProvider");return t},Fa=()=>{const{locale:t}=_r();return t},Wa={},qa={},Ha={},Va={},Xa={},Ua="_base_1p0qo_50",Za="_content_1p0qo_54",Ya="_background_1p0qo_58",Ga="_button_1p0qo_62",Ka="_link_1p0qo_66",Ja="_input_1p0qo_70",Qa="_suffix_1p0qo_74",ts="_prefix_1p0qo_78",es="_tooltip_1p0qo_82",rs="_hint_1p0qo_86",ns="_dropdown_1p0qo_90",os="_popover_1p0qo_94",as="_modalBackdrop_1p0qo_98",ss="_modal_1p0qo_98",is="_overlay_1p0qo_106",ls="_drawer_1p0qo_110",cs="_notification_1p0qo_114",ds="_alert_1p0qo_118",us="_toast_1p0qo_122",_s="_loading_1p0qo_126",ps="_error_1p0qo_130",fs="_critical_1p0qo_134",gs={base:Ua,content:Za,background:Ya,button:Ga,link:Ka,input:Ja,suffix:Qa,prefix:ts,tooltip:es,hint:rs,dropdown:ns,popover:os,modalBackdrop:as,modal:ss,overlay:is,drawer:ls,notification:cs,alert:ds,toast:us,loading:_s,error:ps,critical:fs},hs={"semantic-animation":"_semantic-animation_1fenh_13","semantic-animation--100":"_semantic-animation--100_1fenh_19","semantic-animation--300":"_semantic-animation--300_1fenh_23","semantic-animation--400":"_semantic-animation--400_1fenh_27","semantic-animation--500":"_semantic-animation--500_1fenh_31"},xs=({locale:t={},theme:r,children:n,className:a})=>(g.useLayoutEffect(()=>{if(r){const i=document.documentElement;Object.entries(r).forEach(([s,l])=>{i.style.setProperty(s,l)})}},[r]),e.jsxs(g.Fragment,{children:[e.jsx("div",{"data-testid":"ConfigProvider-component",className:S.clsx(Wa,qa,Ha,Va,Xa,gs,et,hs,a)}),e.jsx(ur.Provider,{value:{locale:t},children:n})]})),ms={},bs="_tag_1llsi_1",ys="_label_1llsi_16",vs="_iconWrapper_1llsi_20",ws="_medium_1llsi_27",Cs="_large_1llsi_33",ks="_disabled_1llsi_43",Ss="_neutral_1llsi_47",Ls="_positive_1llsi_53",js="_negative_1llsi_59",$s="_warning_1llsi_65",Ts="_vivid_1llsi_71",Es="_special_1llsi_77",Rs="_accent_1llsi_84",Is="_blue_1llsi_90",Ns="_lovely_1llsi_96",Ms="_dreamy_1llsi_102",Mt={tag:bs,label:ys,iconWrapper:vs,medium:ws,large:Cs,disabled:ks,neutral:Ss,positive:Ls,negative:js,warning:$s,vivid:Ts,special:Es,accent:Rs,blue:Is,lovely:Ns,dreamy:Ms},As=g.forwardRef((t,r)=>{const{className:n,children:a,componentStyle:i="neutral",size:s="medium",disabled:l=!1,showLabel:d=!!a,slotStart:h,slotEnd:x,slotStartWrapperProps:c={},slotEndWrapperProps:b={},"data-testid":C,...u}=t,{className:f,...y}=c,{className:_,...m}=b;return e.jsxs("div",{className:S.clsx(Mt.tag,Mt[s],Mt[i],{[Mt.disabled]:l,[et["typography-label-3-regular"]]:s==="medium",[et["typography-subtitle-1-semibold"]]:s==="large"},n),"data-testid":C||"tag-component",ref:r,...u,children:[h&&e.jsx("span",{className:S.clsx([Mt.iconWrapper,f]),...y,children:h}),d&&e.jsx("span",{className:S.clsx([Mt.label]),children:a}),x&&e.jsx("span",{className:S.clsx([Mt.iconWrapper,_]),...m,children:x})]})}),Os="_checkbox_gtrs6_43",Bs="_input_gtrs6_64",Ps="_icon_gtrs6_72",zs="_container_gtrs6_92",Ds="_error_gtrs6_143",Fs="_checkboxWrapper_gtrs6_156",Ws="_medium_gtrs6_211",qs="_large_gtrs6_216",Hs="_label_gtrs6_258",jt={checkbox:Os,input:Bs,icon:Ps,container:zs,error:Ds,checkboxWrapper:Fs,medium:Ws,large:qs,label:Hs},Vs=({width:t=12,height:r=9,className:n="",color:a="currentColor",...i})=>e.jsx("svg",{className:n,width:t,height:r,viewBox:"0 0 14 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0001 2.49999C13.3906 2.10946 13.3906 1.4763 13.0001 1.08578C12.6095 0.695251 11.9764 0.695251 11.5859 1.08578L5.29296 7.37867L2.00007 4.08578C1.60954 3.69525 0.976378 3.69525 0.585855 4.08578C0.19533 4.4763 0.19533 5.10946 0.585855 5.49999L4.58585 9.49999C4.97638 9.89051 5.60954 9.89051 6.00007 9.49999L13.0001 2.49999Z",fill:a})}),Xs=({width:t=12,height:r=2,className:n="",color:a="currentColor",...i})=>e.jsx("svg",{className:n,width:t,height:r,viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1C0 0.447715 0.447715 0 1 0H11C11.5523 0 12 0.447715 12 1C12 1.55228 11.5523 2 11 2H1C0.447715 2 0 1.55228 0 1Z",fill:a})}),Us={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Zs=({size:t,isChecked:r,isDisabled:n,indeterminate:a,dataTestId:i})=>{const{width:s,height:l}=Us[t];return e.jsx("div",{className:jt.icon,"data-testid":`${i}-icon`,"data-checked":r,"data-disabled":n,"data-indeterminate":a,children:a?e.jsx(Xs,{width:s,height:l}):e.jsx(Vs,{width:s,height:l})})},Ys=g.forwardRef((t,r)=>{const{name:n,value:a,size:i="medium",indeterminate:s=!1,loading:l=!1,error:d,disabled:h=!1,containerClassName:x,className:c,containerStyle:b,style:C,children:u,clickableLabel:f=!0,tabIndex:y,onChange:_,onClick:m,"data-testid":p="checkbox"}=t,[v,L]=g.useState(!1),T=a??v,k=h||l,$=!!d,R=T||s,I=S.clsx(jt.container,jt[i],x),A=S.clsx(jt.checkbox,jt[i],{[jt.error]:$},c),D=M=>{k||(L(M.target.checked),_==null||_(M.target.checked,M))},F=M=>{if(M.key==="Enter"&&!k){M.preventDefault();const q=!R;L(q),_==null||_(q)}},E=M=>{f||M.preventDefault(),m==null||m(M)};return e.jsxs("label",{className:I,htmlFor:n,style:b,"data-testid":p,"data-clickable-label":f,children:[e.jsx("div",{className:jt.checkboxWrapper,children:e.jsxs("div",{tabIndex:y||0,className:A,style:C,onKeyDown:F,"aria-checked":R,"aria-disabled":k,"aria-invalid":$,"aria-describedby":d?`${n}-error`:void 0,"data-testid":`${p}-label`,children:[e.jsx("input",{ref:r,type:"checkbox",id:n,name:n,checked:R,disabled:k,className:jt.input,onChange:D,"aria-checked":R,"aria-invalid":$,"aria-describedby":d?`${n}-error`:void 0,"data-testid":`${p}-input`}),e.jsx(Zs,{name:n,size:i,isChecked:R,isDisabled:k,indeterminate:s,dataTestId:p})]})}),u&&e.jsx("span",{"data-testid":`${p}-label-text`,"data-clickable-label":f,className:jt.label,onClick:E,children:u})]})}),Gs="_base_10oxr_1",Ks="_content_10oxr_1",Js="_background_10oxr_1",Qs="_button_10oxr_1",ti="_link_10oxr_1",ei="_input_10oxr_96",ri="_suffix_10oxr_1",ni="_prefix_10oxr_1",oi="_tooltip_10oxr_1",ai="_hint_10oxr_794",si="_dropdown_10oxr_1",ii="_popover_10oxr_1",li="_modalBackdrop_10oxr_1",ci="_modal_10oxr_1",di="_overlay_10oxr_1",ui="_drawer_10oxr_1",_i="_notification_10oxr_1",pi="_alert_10oxr_1",fi="_toast_10oxr_1",gi="_loading_10oxr_291",hi="_error_10oxr_252",xi="_critical_10oxr_1",mi="_inputBase_10oxr_96",bi="_wrapper_10oxr_106",yi="_gripHandle_10oxr_186",vi="_tabFocused_10oxr_259",wi="_disabled_10oxr_284",Ci="_label_10oxr_301",ki="_S_10oxr_315",Si="_M_10oxr_321",Li="_XL_10oxr_328",ji="_leftSection_10oxr_335",$i="_rightSection_10oxr_347",Ti="_helper_10oxr_385",Ei="_floatingLabel_10oxr_415",Ri="_focused_10oxr_481",Ii="_filled_10oxr_482",Ni="_L_10oxr_522",Mi="_characterLimit_10oxr_564",Ai="_textarea_10oxr_124",Oi="_truncate_10oxr_707",B={base:Gs,content:Ks,background:Js,button:Qs,link:ti,input:ei,suffix:ri,prefix:ni,tooltip:oi,hint:ai,dropdown:si,popover:ii,modalBackdrop:li,modal:ci,overlay:di,drawer:ui,notification:_i,alert:pi,toast:fi,loading:gi,error:hi,critical:xi,inputBase:mi,wrapper:bi,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:yi,tabFocused:vi,disabled:wi,label:Ci,S:ki,M:Si,XL:Li,leftSection:ji,rightSection:$i,helper:Ti,floatingLabel:Ei,focused:Ri,filled:Ii,L:Ni,characterLimit:Mi,textarea:Ai,"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:Oi,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},Bi=({width:t=8,height:r=8,className:n,color:a="#AABBCA"})=>e.jsx("svg",{width:t,height:r,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:n,children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.10178 0.236172C6.41679 -0.0787239 6.93824 -0.0787239 7.25325 0.236172C7.56826 0.551067 7.56826 1.07227 7.25325 1.38717L1.38772 7.25074C1.22479 7.41362 1.01837 7.48963 0.811988 7.48963C0.605604 7.48963 0.399189 7.41362 0.236255 7.25074C-0.0787516 6.93584 -0.0787516 6.41464 0.236255 6.09974L6.10178 0.236172ZM6.61276 4.19954C6.92777 3.88464 7.44895 3.88464 7.76396 4.19954C8.07897 4.52529 8.07897 5.03564 7.76396 5.35053L5.35256 7.76111C5.18963 7.92399 4.98321 8 4.77683 8C4.57045 8 4.36403 7.92399 4.2011 7.76111C3.88609 7.44622 3.88609 6.92501 4.2011 6.61012L6.61276 4.19954Z",fill:a})}),ve=({className:t="",style:r,size:n="md",color:a="currentColor",onClick:i,...s})=>{const d={display:"inline-block",color:a,...{xxxs:{width:"8px",height:"8px"},xxs:{width:"12px",height:"12px"},xs:{width:"20px",height:"20px"},sm:{width:"24px",height:"24px"},md:{width:"32px",height:"32px"},lg:{width:"40px",height:"40px"}}[n],...r};return e.jsx("svg",{className:t,style:d,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i,...s,children:e.jsx("path",{d:"M12 4L4 12M4 4L12 12",stroke:"currentColor",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})})},Pi=(t,r)=>{const n=g.useRef(null),a=g.useRef(null);return g.useEffect(()=>{const i=r==="textarea"?n.current:a.current;i&&i.value!==t&&(i.value=t||"")},[t,r]),{textareaRef:n,inputRef:a,currentRef:r==="textarea"?n:a}},zi=(t,r,n)=>{const a=()=>{if(!n.current||r!=="hug")return;const i=n.current.scrollTop;if(n.current.style.setProperty("height","auto","important"),!t)return;const s=n.current.scrollHeight+"px";n.current.style.setProperty("height",s,"important"),n.current.scrollTop=i;const l=n.current.closest(`.${B.wrapper}`);l&&(l.setAttribute("data-resize","hug"),l.setAttribute("data-show-grip","false"))};return g.useEffect(a,[t,r]),g.useEffect(()=>{r==="hug"&&n.current&&a()},[]),{resizeTextArea:a}},Di=(t,r,n,a)=>({handleGripMouseDown:g.useCallback(s=>{if(!t||r||n||!(a==="fixed"||!a))return;s.preventDefault(),s.stopPropagation();const l=s.currentTarget.closest(`.${B.wrapper}`);if(!l)return;const d=s.clientY,h=l.clientHeight,x=b=>{const C=b.clientY-d,u=Math.min(100,h),f=Math.max(u,h+C);l.style.height=`${f}px`},c=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",c)},[t,r,n,a])}),Ge=30,Fi=g.forwardRef(({component:t="input",size:r="L",value:n="",placeholder:a,disabled:i=!1,loading:s=!1,onFocus:l,onBlur:d,onChange:h,onKeyDown:x,onKeyUp:c,maxLength:b,className:C,style:u,truncate:f=!1,shouldShowFloatingLabelClass:y=!1,"aria-invalid":_,"aria-errormessage":m,id:p,resize:v,...L},T)=>{const{textareaRef:k,inputRef:$,currentRef:R}=Pi(n,t);if(zi(n,v,k),g.useImperativeHandle(T,()=>R.current,[R]),t==="textarea")return e.jsx("textarea",{ref:k,id:p,value:n,placeholder:a,disabled:i||s,onFocus:l,onBlur:d,onChange:h,onKeyDown:x,onKeyUp:c,maxLength:b,className:S.clsx(B.textarea,B[`size-${r}`],y&&B["with-floating-label"],C),style:u,"aria-invalid":_,"aria-errormessage":m,"aria-describedby":m?`${p}-error`:void 0,tabIndex:0,"data-resize":v,...L});if(t==="input")return e.jsx("input",{ref:$,id:p,value:n,placeholder:a,disabled:i||s,onFocus:l,onBlur:d,onChange:h,onKeyDown:x,onKeyUp:c,maxLength:b,className:S.clsx(B.input,B[`size-${r}`],y&&B["with-floating-label"],f&&B.truncate,C),style:u,"aria-invalid":_,"aria-errormessage":m,"aria-describedby":m?`${p}-error`:void 0,tabIndex:0,...L});if(t!=="input"&&t!=="textarea")return console.error(`[Input] Недопустимое значение prop 'component': "${String(t)}". Допустимые значения: 'input', 'textarea'`),null}),pr=g.forwardRef(({children:t,size:r="L",error:n=!1,disabled:a=!1,loading:i=!1,className:s,wrapperProps:l,wrapperStyles:d,floatingLabelStyles:h,prefixStyles:x,suffixStyles:c,labelProps:b,helperProps:C,showLimit:u=!1,maxLength:f,hint:y,showHint:_=!1,showHintOnEmpty:m=!1,prefix:p,suffix:v,onSuffixClick:L,placeholder:T,showLabel:k=!0,labelClassName:$,hasValue:R=!1,helper:I,id:A,value:D="",resize:F,showGrip:E=!1,...M},q)=>{const H=g.useId(),U=A||H,G=_&&y&&(R||m),z=y&&y.length>Ge?y.substring(0,Ge)+"...":y,K=S.clsx(B.wrapper,B[`size-${r}`],n&&B.error,a&&B.disabled,i&&B.loading,G&&B["has-hint"],v&&B["has-suffix"],u&&B["has-limit"],s),Z=S.clsx(B.floatingLabel,B[r],R&&B.filled,$),{handleGripMouseDown:Q}=Di(E,a,i,F);return e.jsxs("div",{ref:q,className:B.inputBase,"data-testid":"input-base-wrapper",...M,children:[e.jsxs("div",{className:K,style:d,"data-resize":F,"data-show-grip":E?"true":"false",...l,children:[p&&e.jsx("label",{htmlFor:U,className:B.leftSection,style:x,children:p}),v&&e.jsx("label",{htmlFor:U,className:B.rightSection,style:c,onClick:L,children:v}),T&&k&&e.jsx("label",{htmlFor:U,className:Z,style:h,...b,children:T}),t,E&&!u&&(F==="fixed"||!F)&&e.jsx("div",{className:B.gripHandle,onMouseDown:Q,role:"button",tabIndex:-1,"aria-label":"Изменить размер",children:e.jsx(Bi,{})}),G&&e.jsx("div",{className:S.clsx(B.hint,R&&B.truncate),"data-disabled":a||i,children:z}),u&&f&&e.jsxs("div",{className:B.characterLimit,children:[(D||"").length," из ",f]})]}),I&&e.jsx("div",{className:S.clsx(B.helper,n&&B.error,(a||i)&&B.disabled),...C,id:n?`${U}-error`:void 0,children:I})]})});pr.displayName="InputWrapperComponent";const Ke=Object.assign(Fi,{Wrapper:pr}),fr=g.forwardRef(({component:t="input",size:r="L",className:n,error:a=!1,disabled:i=!1,loading:s=!1,placeholder:l,showLabel:d=!0,labelClassName:h,helper:x,prefix:c,suffix:b,id:C,onFocus:u,onBlur:f,onKeyDown:y,onSuffixClick:_,onChange:m,value:p="",wrapperProps:v,wrapperStyles:L,floatingLabelStyles:T,prefixStyles:k,suffixStyles:$,textareaStyles:R,labelProps:I,helperProps:A,showLimit:D=!1,maxLength:F,inputProps:E,hint:M,showHint:q=!1,showHintOnEmpty:H=!1,truncate:U=!1,resize:G,showGrip:z=!1,...K},Z)=>{const Q=g.useId(),it=C||Q,[kt,bt]=g.useState(p),lt=p!==void 0?p:kt,Et=(lt||"").length>0,pt=lt||"",At=d&&(r==="XL"||t==="textarea")&&!c,se=g.useCallback(nt=>{var ot;i||s||(u==null||u(),(ot=E==null?void 0:E.onFocus)==null||ot.call(E,nt))},[u,E,i,s]),Yt=g.useCallback(nt=>{var ot;if(nt.key==="Tab"){const yt=nt.target.closest(`.${B.wrapper}`);yt&&yt.classList.add(B.tabFocused)}(ot=E==null?void 0:E.onKeyUp)==null||ot.call(E,nt)},[E]),ie=g.useCallback(nt=>{var yt;const ot=nt.target.closest(`.${B.wrapper}`);ot&&ot.classList.remove(B.tabFocused),f==null||f(),(yt=E==null?void 0:E.onBlur)==null||yt.call(E,nt)},[f,E]),le=g.useCallback(nt=>{var yt;if(i||s)return;const ot=nt.target.value;bt(ot),m==null||m(ot,nt),(yt=E==null?void 0:E.onChange)==null||yt.call(E,nt)},[m,E,i,s]);return g.useEffect(()=>{bt(p||"")},[p]),e.jsx(Ke.Wrapper,{ref:Z,size:r,error:a,disabled:i||s,loading:s,className:S.clsx(n,t==="textarea"&&B["textarea-wrapper"]),wrapperProps:v,wrapperStyles:L,floatingLabelStyles:T,prefixStyles:k,suffixStyles:$,labelProps:I,helperProps:A,showLimit:D,maxLength:F,hint:M,showHint:q,showHintOnEmpty:H,prefix:c,suffix:b,onSuffixClick:_,placeholder:l,showLabel:d,labelClassName:h,hasValue:Et,helper:x,id:it,value:pt,showGrip:z,resize:G,...K,children:e.jsx(Ke,{component:t,size:r,value:pt,placeholder:l,disabled:i,loading:s,onFocus:se,onBlur:ie,onChange:le,onKeyDown:y,onKeyUp:Yt,maxLength:F,truncate:U,"data-empty":!Et,shouldShowFloatingLabelClass:At,style:t==="textarea"?R:void 0,"aria-invalid":!!a,"aria-errormessage":a?`${it}-error`:void 0,id:it,resize:G,...E})})}),Y={S:"S",M:"M",L:"L",XL:"XL"},Wi=(t,r,n,a)=>{switch(t){case Y.XL:return r&&n?"8px 16px 8px 16px":"16px 16px 16px 16px";case Y.L:return a?"12px 12px 12px 12px":"12px 16px 12px 16px";case Y.M:return"10px 12px 10px 12px";case Y.S:return"6px 10px 6px 10px";default:return"12px 16px 12px 16px"}},qi=t=>{switch(t){case Y.XL:return"56px";case Y.L:return"48px";case Y.M:return"40px";case Y.S:return"32px";default:return"48px"}},Hi=t=>{switch(t){case Y.S:case Y.M:case Y.L:return 4;case Y.XL:return 8;default:return 8}},Vi=t=>{switch(t){case Y.S:case Y.M:return 8;case Y.L:case Y.XL:return 12;default:return 12}},Xi=(t,r,n,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"10px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Ui=(t,r,n,a)=>({wrapperStyles:{height:t,minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px",transformOrigin:"left top"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer"}}),Zi=(t,r,n,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"16px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"40px",maxHeight:"40px",padding:"8px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"}}),Yi=(t,r,n,a)=>({wrapperStyles:{minHeight:t,maxHeight:t,boxSizing:"border-box",padding:r},floatingLabelStyles:{left:"12px"},prefixStyles:{paddingRight:`${n}px`},suffixStyles:{right:`${a}px`,maxWidth:"32px",maxHeight:"32px",padding:"6px",cursor:"pointer"}}),Gi=(t,r,n,a)=>{const i=qi(t),s=Wi(t,r,n,a),l=Vi(t),d=Hi(t);switch(t){case Y.XL:return Ui(i,s,l,d);case Y.L:return Zi(i,s,l,d);case Y.M:return Yi(i,s,l,d);case Y.S:return Xi(i,s,l,d);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Ki=g.forwardRef(({value:t="",onChange:r,type:n="text",placeholder:a,maxLength:i,minLength:s,autoComplete:l,autoFocus:d,size:h=Y.L,inputProps:x,error:c,disabled:b,loading:C,helper:u,prefix:f,suffix:y,clearable:_=!1,id:m,showLabel:p=!0,onFocus:v,onBlur:L,onSuffixClick:T,onClear:k,className:$,truncate:R=!0,hint:I,showHint:A=!1,showHintOnEmpty:D=!1,wrapperProps:F,labelProps:E,helperProps:M,...q},H)=>{const U=(t||"").length>0,G=h===Y.XL,z=!!f,K=G&&p&&!f,Z=_&&U&&!(b||C),Q=()=>{r==null||r(""),k==null||k()},it=()=>{Z&&Q(),T==null||T()},kt=Z?e.jsx(ve,{size:h===Y.S||h===Y.M?"xs":"sm",color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):y,bt={type:n,minLength:s,autoComplete:l,autoFocus:d,...x},lt=Gi(h,K,U,z);return e.jsx(fr,{size:h,error:c,disabled:b||C,loading:C,helper:u,prefix:f,suffix:kt,id:m,showLabel:K,onFocus:v,onBlur:L,onSuffixClick:it,onChange:r,value:t,placeholder:a,className:$,wrapperStyles:lt.wrapperStyles,floatingLabelStyles:lt.floatingLabelStyles,prefixStyles:lt.prefixStyles,suffixStyles:lt.suffixStyles,wrapperProps:F,labelProps:E,helperProps:M,showLimit:!1,maxLength:i,inputProps:bt,hint:I,showHint:A,showHintOnEmpty:D,truncate:R,...q})}),gt={M:"M",L:"L"},ne={M:"12px",L:"16px"},Ji={M:"xs",L:"sm"},te={FILL:"fill",FIXED:"fixed"},ge={M:"112px",L:"56px"},zt={M:"48px",L:"22px"},Lt={M:"12px 12px 12px 12px",L:"16px 16px 16px 16px",L_WITH_PREFIX:"12px 16px 12px 16px",L_FLOATING_LABEL:"8px 16px 8px 16px"},Tt={M:48,L:56,XL:112},Qi=(t,r)=>{if(t===gt.M)return ge.M;if(r)return`${r}px`;switch(t){case gt.L:return ge.L;default:return ge.L}},tl=(t,r)=>{if(t===gt.M)return zt.M;if(r)switch(r){case Tt.M:case Tt.L:return zt.L;case Tt.XL:return zt.M;default:return zt.L}switch(t){case gt.L:return zt.L;default:return zt.L}},el=(t,r,n)=>{if(t===gt.M)return Lt.M;if(r)switch(r){case Tt.M:return Lt.L_WITH_PREFIX;case Tt.L:return n?Lt.L_FLOATING_LABEL:Lt.L;case Tt.XL:return Lt.L;default:return Lt.L}switch(t){case gt.L:return n?Lt.L_FLOATING_LABEL:Lt.L;default:return Lt.L}},rl=(t,r)=>{if(t===gt.M)return"M";if(r)switch(r){case Tt.M:return"M";case Tt.L:return"L";case Tt.XL:return"L";default:return"L"}return t},nl=t=>Ji[t],ol=t=>ne[t],al=(t,r,n,a)=>{const i=Qi(t,r),s=tl(t,r),l=el(t,r,n);return{wrapperStyles:{minHeight:i,...a===te.FILL&&{height:"100%"},...a===te.FIXED&&r&&{height:i},boxSizing:"border-box",padding:l},floatingLabelStyles:{left:t===gt.M?ne.M:ne.L,transformOrigin:"left top",top:r===112&&n&&t===gt.L?ne.L:void 0},suffixStyles:{right:ol(t),top:r===48&&t===gt.L?"11px":void 0,boxSizing:"border-box"},textareaStyles:{minHeight:s,...a===te.FILL&&{flex:1,minHeight:0},...a===te.FIXED&&r&&{height:s}}}},sl=g.forwardRef(({value:t="",onChange:r,placeholder:n,maxLength:a,minLength:i,autoFocus:s,size:l=gt.L,textareaProps:d,error:h,disabled:x,loading:c,helper:b,suffix:C,clearable:u=!1,id:f,showLabel:y=!0,onFocus:_,onBlur:m,onClear:p,onKeyDown:v,className:L,rows:T=1,showLimit:k=!1,wrapperProps:$,labelProps:R,helperProps:I,showGrip:A,minHeight:D,resize:F,...E},M)=>{const q=(t||"").length>0,H=y&&!!n&&(l===gt.M||D!==48),U=u&&q&&!(x||c),G=()=>{r==null||r(""),p==null||p()},z=()=>{U&&G()},K=U?e.jsx(ve,{size:nl(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):C,Z=al(l,D,H&&q,F),Q=rl(l,D),it={rows:T,minLength:i,autoFocus:s,resize:F,...d};return e.jsx(fr,{ref:M,component:"textarea",size:Q,error:h,disabled:x||c,loading:c,onSuffixClick:z,helper:b,suffix:K,id:f,showLabel:H,onFocus:_,onBlur:m,onKeyDown:v,onChange:r,value:t||"",placeholder:n,className:L,"data-floating-label":H,wrapperStyles:Z.wrapperStyles,floatingLabelStyles:Z.floatingLabelStyles,suffixStyles:Z.suffixStyles,textareaStyles:Z.textareaStyles,wrapperProps:$,labelProps:R,helperProps:I,showLimit:k&&(D===112||l===gt.M),maxLength:a,inputProps:it,resize:F,showGrip:A,...E})}),il="_helper_1jq7j_16",he={helper:il,"helper--error":"_helper--error_1jq7j_28","helper--disabled":"_helper--disabled_1jq7j_33"},gr=({title:t,error:r,className:n="",style:a,disabled:i=!1,"data-testid":s,"aria-label":l,"aria-describedby":d})=>{const h=!!r,x=S.clsx(he.helper,h&&he["helper--error"],i&&he["helper--disabled"],n),c=i?t:r||t;return e.jsx("div",{className:x,style:a,"data-testid":s,"aria-label":l,"aria-describedby":d,children:e.jsx("p",{children:c})})},ll="_radio_1n8zx_59",cl="_checked_1n8zx_80",dl="_error_1n8zx_85",ul="_disabled_1n8zx_94",_l="_icon_1n8zx_130",pl="_small_1n8zx_138",fl="_medium_1n8zx_145",gl="_large_1n8zx_152",hl="_label_1n8zx_159",xl="_container_1n8zx_185",ml="_input_1n8zx_198",bl="_card_1n8zx_205",yl="_smallCard_1n8zx_211",vl="_mediumCard_1n8zx_215",wl="_largeCard_1n8zx_219",ft={default:"_default_1n8zx_53",radio:ll,checked:cl,error:dl,disabled:ul,icon:_l,small:pl,medium:fl,large:gl,label:hl,container:xl,input:ml,card:bl,smallCard:yl,mediumCard:vl,largeCard:wl},Cl="radio-container-",kl="radio-label",hr=g.forwardRef((t,r)=>{const{name:n,id:a,value:i,size:s="large",loading:l=!1,error:d,disabled:h=!1,checked:x=!1,containerClassName:c,className:b,children:C,clickable:u="all",mode:f="default",tabIndex:y,style:_,containerStyle:m,onChange:p,"data-testid":v,...L}=t,T=!!d,k=h||l,$=u==="all",R=f==="card",I=ft[`${s}Card`],A=a??n,D=H=>{k||p==null||p(i,H)},F=H=>{H.key==="Enter"&&!k&&(H.preventDefault(),p==null||p(i))},E=H=>H.stopPropagation(),M=()=>e.jsxs("div",{className:S.clsx(ft.radio,ft[s],{[ft.checked]:x,[ft.disabled]:k,[ft.error]:T&&!k},b),style:_,tabIndex:y||1,"data-testid":`${Cl}${A}`,children:[e.jsx("input",{"aria-errormessage":d,"aria-invalid":T,checked:x,className:ft.input,"data-testid":`radio-${A}`,disabled:k,id:A,name:n,ref:r,type:"radio",value:i,onChange:D,onClick:E}),e.jsx("svg",{"data-testid":`radio-icon-${A}`,viewBox:"0 0 8 8",className:ft.icon,children:e.jsx("circle",{cx:4,cy:4,fill:"current",r:4})})]}),q=()=>e.jsxs("label",{"aria-checked":x,"aria-disabled":k,"data-testid":$?v:kl,htmlFor:A,style:m,className:S.clsx(ft.label,{[S.clsx(ft.container,ft[f],c)]:$,[I]:$&&R}),onKeyDown:F,...L,children:[M(),$&&C]});return $?q():e.jsxs("div",{className:S.clsx(ft.container,ft[f],c,{[I]:R}),"data-testid":v,children:[q(),C]})}),Sl="_group_tnviu_7",Ll="_vertical_tnviu_12",jl="_horizontal_tnviu_16",Je={group:Sl,vertical:Ll,horizontal:jl},$l=g.forwardRef((t,r)=>{const{id:n,name:a,value:i,options:s,className:l,radioClassName:d,disabled:h=!1,layout:x="vertical","data-testid":c,...b}=t;return e.jsx("div",{className:Ct(Je.group,Je[x],l),"data-testid":c??`radio-group-${a}`,id:n,ref:r,children:s.map(({label:C,value:u,disabled:f})=>{const y=`${a}-${String(u)}`,_=String(u)===String(i);return e.jsx(hr,{id:y,checked:_,"data-testid":y,disabled:h||f,name:a,value:u,className:d,...b,children:C},y)})})}),Tl=Object.assign(hr,{Group:$l}),El="_root_1jj3e_25",Rl="_unordered_1jj3e_39",Il="_ordered_1jj3e_43",Nl="_sm_1jj3e_48",Ml="_md_1jj3e_59",Al="_lg_1jj3e_70",Ol="_xl_1jj3e_81",xe={root:El,unordered:Rl,ordered:Il,sm:Nl,md:Ml,lg:Al,xl:Ol},Bl=t=>{const{children:r,className:n,"data-testid":a="list-item"}=t;return e.jsx("li",{"data-testid":a,className:n,children:r})},Pl=Object.assign(g.forwardRef((t,r)=>{const{variant:n="unordered",className:a,children:i,size:s="md","data-testid":l="list",...d}=t,h=n==="ordered"?"ol":"ul";return e.jsx(h,{"data-testid":l,ref:r,className:Ct(xe.root,xe[n],xe[s],a),...n==="ordered"&&d,children:i})}),{Item:Bl}),zl="_wrapper_1v8xn_5",Dl="_viewport_1v8xn_12",Fl="_mask_1v8xn_26",Wl="_maskLeft_1v8xn_37",ql="_maskRight_1v8xn_42",Hl="_visible_1v8xn_46",Vl="_control_1v8xn_51",Xl="_xs_1v8xn_70",Ul="_sm_1v8xn_73",Zl="_md_1v8xn_76",Yl="_left_1v8xn_80",Gl="_right_1v8xn_83",dt={wrapper:zl,viewport:Dl,mask:Fl,maskLeft:Wl,maskRight:ql,visible:Hl,control:Vl,xs:Xl,sm:Ul,md:Zl,left:Yl,right:Gl},Kl="white",Jl=({children:t,withControls:r=!0,className:n,size:a})=>{const i=g.useRef(null),[s,l]=g.useState(!1),[d,h]=g.useState(!1),{ref:x,bgColor:c}=ye(),b=x??{current:null},C=c??Kl,u=r&&s,f=r&&d,y=({direction:p})=>e.jsx("svg",{height:"12px",width:"12px",viewBox:"0 0 185.343 185.343",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("g",{transform:p==="left"?"scale(-1,1) translate(-185.343,0)":void 0,children:e.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"})})}),_=()=>{const p=i.current;if(!p)return;const v=Math.round(p.scrollLeft),L=Math.round(p.scrollLeft+p.clientWidth),T=Math.round(p.scrollWidth);l(v>0),h(L<T)},m=p=>{const v=i.current;if(!v)return;const L=v.clientWidth;v.scrollBy({left:p==="left"?-L:L,behavior:"smooth"})};return g.useEffect(()=>{const p=i.current;if(!p)return;const v=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",v,{passive:!1}),()=>p.removeEventListener("wheel",v)},[]),g.useEffect(()=>{_();const p=i.current;if(p)return p.addEventListener("scroll",_,{passive:!0}),window.addEventListener("resize",_),()=>{p.removeEventListener("scroll",_),window.removeEventListener("resize",_)}},[]),e.jsxs("div",{ref:b,className:S.clsx(dt.wrapper,n),children:[u&&e.jsx("div",{className:S.clsx(dt.mask,dt.maskLeft,s&&dt.visible),style:{background:`linear-gradient(to right, ${C} 17%, transparent 80%)`}}),f&&e.jsx("div",{className:S.clsx(dt.mask,dt.maskRight,d&&dt.visible),style:{background:`linear-gradient(to left, ${C} 17%, transparent 80%)`}}),e.jsx("div",{ref:i,className:dt.viewport,children:t}),u&&e.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(dt.control,dt.left,dt[a]),onClick:()=>m("left"),children:e.jsx(y,{direction:"left"})}),f&&e.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S.clsx(dt.control,dt.right,dt[a]),onClick:()=>m("right"),children:e.jsx(y,{direction:"right"})})]})},Ql="_tabBar_1ndpm_82",tc="_primary_1ndpm_88",ec="_secondary_1ndpm_93",rc="_tab_1ndpm_82",nc="_md_1ndpm_125",oc="_sm_1ndpm_129",ac="_xs_1ndpm_133",sc="_disabled_1ndpm_137",ic="_selected_1ndpm_143",lc="_tabLabel_1ndpm_222",cc="_tabPrefix_1ndpm_234",dc="_tabPostfix_1ndpm_270",at={tabBar:Ql,primary:tc,secondary:ec,tab:rc,md:nc,sm:oc,xs:ac,disabled:sc,selected:ic,tabLabel:lc,tabPrefix:cc,tabPostfix:dc},uc="md",_c=!1,pc=8,fc="top-right-inside",xr=g.createContext(null),mr=()=>{const t=g.useContext(xr);if(!t)throw new Error("useTabs должен использоваться внутри TabsProvider");return t},gc=({children:t,defaultActiveTab:r,activeTab:n,onChange:a})=>{const[i,s]=g.useState(r),l=n!==void 0,d=l?n:i,h=x=>{l||s(x),a&&a(x)};return e.jsx(xr.Provider,{value:{activeTab:d,setTab:h},children:t})},hc=({mode:t,item:r,isActive:n,showBadge:a,badgeProps:i,size:s,isDisabled:l,onSelectTab:d})=>{const{value:h,label:x,prefix:c,prefixWrapperProps:b={},postfix:C,postfixWrapperProps:u={}}=r,{className:f,...y}=b,{className:_,...m}=u,p={primary:et["typography-label-3-medium"],secondary:et["typography-label-3-regular"],prefix:et["typography-label-3-medium"],postfix:et["typography-label-3-medium"]},v={size:pc,position:fc,...i},L=S.clsx(at.tab,at[t],at[s],{[at.selected]:n,[at.disabled]:l}),T=S.clsx(at.tabPrefix,f,at[t],p.prefix,{[at.selected]:n,[at.disabled]:l}),k=S.clsx(at.tabPostfix,_,at[t],p.postfix,{[at.selected]:n,[at.disabled]:l}),$=S.clsx(at.tabLabel,at[t],p[t]),R=A=>{n||l||(d(h),A.currentTarget.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"}))},I=e.jsxs("button",{className:L,role:"tab","aria-label":x,"aria-selected":n,"aria-disabled":l,"aria-controls":`tab-panel-${h}`,"data-testid":`tab-item-${h}`,onClick:R,children:[c&&e.jsx("span",{className:T,...y,"data-testid":`tab-prefix-${h}`,children:c}),e.jsx("span",{className:$,"data-testid":`tab-label-${h}`,children:x}),C&&e.jsx("span",{className:k,...m,"data-testid":`tab-postfix-${h}`,children:C})]});return a?e.jsx(cr,{...v,"data-testid":`tab-badge-${h}`,children:I}):I},xc=({mode:t,items:r,size:n=uc,isAllItemsDisabled:a=_c})=>{const{activeTab:i,setTab:s}=mr(),l=Eo();return e.jsx(Jl,{size:n,withControls:l,children:e.jsx("div",{role:"tablist","data-testid":"tabs-bar","aria-orientation":"horizontal",className:S.clsx(at.tabBar,at[t]),children:r.map(d=>e.jsx(hc,{size:n,item:d,mode:t,showBadge:d.showBadge,badgeProps:d.badgeProps,isActive:i===d.value,isDisabled:a||d.isDisabled,onSelectTab:s},d.value))})})},mc=({tabValue:t,children:r,...n})=>e.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${t}`,"aria-labelledby":`tab-item-${t}`,...n,children:r}),bc=({children:t,...r})=>{const{activeTab:n}=mr(),a=Array.isArray(t)?t:[t],i=(s,l)=>g.isValidElement(s)&&typeof s.props=="object"&&s.props!==null&&l in s.props;return e.jsx("div",{"data-testid":"tab-content",...r,children:a.map(s=>i(s,"tabValue")&&String(s.props.tabValue)===n?s:null)})},yc={Provider:gc,Content:bc,Panel:mc,Bar:xc},vc="_root_1fbbw_34",wc="_open_1fbbw_51",Cc="_xs_1fbbw_55",kc="_s_1fbbw_61",Sc="_m_1fbbw_67",Lc="_neutral_1fbbw_73",jc="_contrast_1fbbw_78",$c="_accent_1fbbw_84",Tc="_typography_1fbbw_89",Ec="_title_1fbbw_89",Rc="_text_1fbbw_93",Ic="_mediaWrapper_1fbbw_97",Nc="_content_1fbbw_112",Mc="_closeButton_1fbbw_116",Ac="_hasMedia_1fbbw_142",Oc="_buttonStack_1fbbw_148",_t={root:vc,open:wc,xs:Cc,s:kc,m:Sc,neutral:Lc,contrast:jc,accent:$c,typography:Tc,title:Ec,text:Rc,mediaWrapper:Ic,content:Nc,closeButton:Mc,hasMedia:Ac,buttonStack:Oc},Bc=()=>e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Pc=()=>e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 9",fill:"currentColor",children:[e.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"}),e.jsx("path",{d:"M-2 0.000390053L26 0.000390053V-1L-2 -1L-2 0.000390053Z"})]}),xt={shiftX:64,adjustY:1},mt={adjustX:1,shiftY:!0},zc={left:{points:["cr","cl"],overflow:mt,offset:[-22,0]},right:{points:["cl","cr"],overflow:mt,offset:[22,0]},top:{points:["bc","tc"],overflow:xt,offset:[0,-22]},bottom:{points:["tc","bc"],overflow:xt,offset:[0,22]},topLeft:{points:["bl","tl"],overflow:xt,offset:[0,-22]},leftTop:{points:["tr","tl"],overflow:mt,offset:[-22,0]},topRight:{points:["br","tr"],overflow:xt,offset:[0,-22]},rightTop:{points:["tl","tr"],overflow:mt,offset:[22,0]},bottomRight:{points:["tr","br"],overflow:xt,offset:[0,22]},rightBottom:{points:["bl","br"],overflow:mt,offset:[22,0]},bottomLeft:{points:["tl","bl"],overflow:xt,offset:[0,22]},leftBottom:{points:["br","bl"],overflow:mt,offset:[-22,0]}},Dc={left:{points:["cr","cl"],overflow:mt,offset:[-16,0]},right:{points:["cl","cr"],overflow:mt,offset:[16,0]},top:{points:["bc","tc"],overflow:xt,offset:[0,-16]},bottom:{points:["tc","bc"],overflow:xt,offset:[0,16]},topLeft:{points:["bl","tl"],overflow:xt,offset:[0,-16]},leftTop:{points:["tr","tl"],overflow:mt,offset:[-16,0]},topRight:{points:["br","tr"],overflow:xt,offset:[0,-16]},rightTop:{points:["tl","tr"],overflow:mt,offset:[16,0]},bottomRight:{points:["tr","br"],overflow:xt,offset:[0,16]},rightBottom:{points:["bl","br"],overflow:mt,offset:[16,0]},bottomLeft:{points:["tl","bl"],overflow:xt,offset:[0,16]},leftBottom:{points:["br","bl"],overflow:mt,offset:[-16,0]}},Fc={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"}]}},Wc=(t,r,n)=>({...r,...n??{},...t}),qc=(t,r,n)=>{const a=_o(r,1,3),i=Fc[n][a];return i[Math.min(t,i.length-1)]},Qe=({text:t,title:r,media:n,variant:a="neutral",size:i,classNames:s={},onClose:l,buttons:d,buttonProps:h,showClose:x})=>{const c=["neutral","accent"].includes(a)?"contrast":"primary",b=i==="m",C=!!(r&&b),u=!!(n&&b),f=d&&!!d.length,y=!!(x&&b)||!x&&b&&!f,_=i==="xs"?4:3;return e.jsxs("div",{className:_t.content,children:[u&&e.jsx("div",{className:S.clsx(_t.mediaWrapper,s.mediaWrapper),children:n}),e.jsxs("div",{className:s.textWrapper,children:[C&&e.jsx(It.Subtitle,{className:S.clsx(_t.typography,_t.title,s.typography),size:1,as:"h3",typographyStyle:c,children:r}),e.jsx(It.Label,{className:S.clsx(_t.typography,_t.text,s.typography),typographyStyle:c,size:_,children:t})]}),y&&e.jsx("button",{type:"button",className:S.clsx(_t.closeButton,_t[a],s.closeButton,{[_t.hasMedia]:u}),onClick:l,"aria-label":"Закрыть подсказку","data-testid":"tooltip-close-button",children:e.jsx(Bc,{})}),b&&f&&e.jsx("div",{className:_t.buttonStack,children:d.map((m,p)=>{const v=qc(p,d.length,a),L=Wc(m,v,h),{closeOnClick:T,...k}=L,$=R=>{var I;(I=k.onClick)==null||I.call(k,R),T&&(l==null||l())};return e.jsx(Ut,{...k,onClick:$},p)})})]})},Hc=({customContent:t,children:r,placement:n="top",contentClassNames:a,mouseEnterDelay:i=0,mouseLeaveDelay:s=.1,showArrow:l=!0,showClose:d=!0,trigger:h="hover",variant:x="neutral",size:c="s",text:b,title:C,media:u,buttons:f,buttonProps:y,onClose:_,...m})=>{const[p,v]=g.useState(!1),[L,T]=g.useState(!1),k=c==="m"?zc:Dc,$=()=>{v(!1),_==null||_()},R=t||(c==="m"?e.jsx(Qe,{classNames:a,text:b,variant:x,size:c,onClose:$,title:C,media:u,showClose:d,buttons:f,buttonProps:y}):e.jsx(Qe,{classNames:a,text:b,variant:x,size:c,onClose:$}));return g.useEffect(()=>{if(p){const I=requestAnimationFrame(()=>T(!0));return()=>cancelAnimationFrame(I)}T(!1)},[p]),e.jsx(qr,{visible:p,onVisibleChange:v,classNames:{root:S.clsx(_t.root,_t[x],_t[c],L&&_t.open),...m.classNames},placement:n,overlay:()=>R,trigger:h,mouseEnterDelay:i,mouseLeaveDelay:s,motion:{motionName:"tooltipMotion"},builtinPlacements:k,showArrow:l?{content:e.jsx(Pc,{}),className:`tooltipArrow tooltipArrow-${c}`}:!1,destroyTooltipOnHide:!0,...m,children:r})},Vc="_base_4dkq5_1",Xc="_content_4dkq5_1",Uc="_background_4dkq5_1",Zc="_button_4dkq5_1",Yc="_link_4dkq5_1",Gc="_input_4dkq5_1",Kc="_suffix_4dkq5_1",Jc="_prefix_4dkq5_1",Qc="_tooltip_4dkq5_1",t1="_hint_4dkq5_1",e1="_dropdown_4dkq5_1",r1="_popover_4dkq5_1",n1="_modalBackdrop_4dkq5_1",o1="_modal_4dkq5_1",a1="_overlay_4dkq5_1",s1="_drawer_4dkq5_1",i1="_notification_4dkq5_1",l1="_alert_4dkq5_1",c1="_toast_4dkq5_1",d1="_loading_4dkq5_1",u1="_error_4dkq5_1",_1="_critical_4dkq5_1",p1="_segmentedControl_4dkq5_7",f1="_segment_4dkq5_7",g1="_activeSegmentIndicator_4dkq5_61",h1="_selected_4dkq5_80",x1="_stretched_4dkq5_89",m1="_disabled_4dkq5_97",b1="_s_4dkq5_7",y1="_icon_4dkq5_110",v1="_label_4dkq5_114",w1="_m_4dkq5_1",C1="_l_4dkq5_114",Rt={base:Vc,content:Xc,background:Uc,button:Zc,link:Yc,input:Gc,suffix:Kc,prefix:Jc,tooltip:Qc,hint:t1,dropdown:e1,popover:r1,modalBackdrop:n1,modal:o1,overlay:a1,drawer:s1,notification:i1,alert:l1,toast:c1,loading:d1,error:u1,critical:_1,segmentedControl:p1,segment:f1,activeSegmentIndicator:g1,selected:h1,stretched:x1,disabled:m1,s:b1,icon:y1,label:v1,m:w1,l:C1},tr={s:et["typography-label-3-regular"],m:et["typography-label-2-regular"],l:et["typography-label-2-regular"]},k1=t=>{const{className:r,defaultValue:n,value:a,size:i="m",segments:s,stretched:l,disabled:d=!1,mode:h="label",onChange:x,...c}=t,b=g.useId(),[C,u]=g.useState(n||s[0].value),[f,y]=g.useState({width:0,left:0,height:0}),_=g.useRef(null);g.useEffect(()=>{a!=null&&u(a)},[a]),g.useLayoutEffect(()=>{m()},[C,s,i,l,h]);const m=()=>{if(!(_!=null&&_.current))return;const v=_.current.querySelector('[data-is-active-segment="true"]');v&&y({width:v.offsetWidth,left:v.offsetLeft,height:v.offsetHeight})},p=v=>{d||(u(v),x==null||x(v))};return(s==null?void 0:s.length)===0?null:e.jsxs("fieldset",{className:S.clsx(Rt.segmentedControl,Rt[i],Rt[h],{[Rt.stretched]:l,[Rt.disabled]:d},r),"data-testid":"segmented-control-container",ref:_,disabled:d,...c,children:[s==null?void 0:s.map(({label:v,value:L,containerProps:T={}},k)=>{const{className:$,...R}=T,I=()=>p(L),A=JSON.stringify(L),D=C===L;return e.jsxs(g.Fragment,{children:[e.jsx("input",{id:b+A,value:A,type:"radio",checked:D,readOnly:!0}),e.jsx("label",{"data-is-active-segment":D,className:S.clsx(Rt.segment,tr[i],{[Rt.selected]:D},$),htmlFor:b+A,"data-testid":"segmented-control-segment",onClick:I,...R,children:v})]},oe(A)+k)}),e.jsx("div",{className:S.clsx(Rt.activeSegmentIndicator,tr[i]),"data-testid":"segmented-control-segment-active-indicator",style:f})]})};var Ft=(t=>(t.NORMAL="normal",t.FLOATING="floating",t.HIDDEN="hidden",t))(Ft||{});const rt={"trigger-wrapper":"_trigger-wrapper_fm9f9_79","trigger-container":"_trigger-container_fm9f9_85","trigger-container-applied":"_trigger-container-applied_fm9f9_109","trigger-container-open":"_trigger-container-open_fm9f9_114","trigger-container-error":"_trigger-container-error_fm9f9_125","trigger-container-size-XS":"_trigger-container-size-XS_fm9f9_137","trigger-container-size-S":"_trigger-container-size-S_fm9f9_147","trigger-container-size-M":"_trigger-container-size-M_fm9f9_153","trigger-container-size-L":"_trigger-container-size-L_fm9f9_159","trigger-container-size-XL":"_trigger-container-size-XL_fm9f9_167","trigger-container-floating":"_trigger-container-floating_fm9f9_173","trigger-stretched":"_trigger-stretched_fm9f9_178","trigger-content-container":"_trigger-content-container_fm9f9_182","trigger-content-container-floating":"_trigger-content-container-floating_fm9f9_191","trigger-label":"_trigger-label_fm9f9_196","trigger-label-floating":"_trigger-label-floating_fm9f9_203","trigger-label-hidden":"_trigger-label-hidden_fm9f9_213","trigger-content":"_trigger-content_fm9f9_182","trigger-prefix-icon":"_trigger-prefix-icon_fm9f9_225","trigger-chevron-icon":"_trigger-chevron-icon_fm9f9_230","trigger-clear-icon":"_trigger-clear-icon_fm9f9_246","trigger-postfix":"_trigger-postfix_fm9f9_262"},S1=({className:t="",style:r,size:n="md",color:a="currentColor",...i})=>{const l={display:"inline-block",color:a,...{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 e.jsx("svg",{className:t,style:l,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...i,children:e.jsx("path",{d:"M18 9L12 15L6 9",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})},L1=(t,r)=>t==="XL"&&r?Ft.FLOATING:t!=="XL"&&r?Ft.HIDDEN:Ft.NORMAL,j1=(t,r)=>r?3:t==="XL"||t==="L"?2:3,er=t=>t==="XL"||t==="L"?2:3,rr=t=>t==="XL"||t==="L"?"sm":"xs",$1=t=>t.length>30?t.slice(0,30)+"…":t,T1=({content:t,size:r="XL",description:n,label:a,stretched:i=!1,selectionStyle:s="selected",clearable:l=!1,error:d,prefixIcon:h,postfixTitle:x,disabled:c=!1,open:b,onClear:C,classNames:u={},styles:f={}})=>{const y=!!t,_=!!a,m=!!d,p=s==="applied",v=!!n&&(!m||c)||m&&!c,L=(m&&!c?d:n)||"",T=m&&!c,k=L1(r,y),$=_&&k===Ft.FLOATING,R=k===Ft.HIDDEN,I=S.clsx(rt["trigger-wrapper"],{[rt["trigger-stretched"]]:i},u.wrapper),A=S.clsx(rt["trigger-container"],rt[`trigger-container-size-${r}`],{[rt["trigger-stretched"]]:i,[rt["trigger-container-applied"]]:p&&y,[rt["trigger-container-error"]]:m&&!c,[rt["trigger-container-open"]]:b,[rt["trigger-container-floating"]]:$},u.triggerContainer),D=S.clsx(rt["trigger-content-container"],{[rt["trigger-content-container-floating"]]:$},u.triggerContent),F=S.clsx(rt["trigger-label"],{[rt["trigger-label-floating"]]:$,[rt["trigger-label-hidden"]]:R},u.label),E=S.clsx(rt["trigger-content"],u.content),M=S.clsx(rt["trigger-postfix"],u.postfixTitle),q=S.clsx(rt["trigger-chevron-icon"],u.chevronIcon),H=S.clsx(rt["trigger-prefix-icon"],u.prefixIconContainer),U=S.clsx(rt["trigger-clear-icon"],u.clearIcon),G=Q=>{Q==null||Q.stopPropagation(),C==null||C()},Z=y&&b&&(s==="selected"&&l||s==="applied")||y&&!b&&(p||s==="selected"&&l);return e.jsxs("div",{className:I,style:f.wrapper,children:[e.jsxs("button",{"data-testid":"trigger","aria-invalid":m,"aria-haspopup":"listbox","aria-expanded":b,role:"combobox",className:A,style:f.triggerContainer,disabled:c,type:"button",children:[h&&r!=="XL"&&e.jsx("div",{className:H,style:f.prefixIconContainer,children:h}),e.jsxs("div",{className:D,style:f.triggerContent,children:[_&&e.jsx(It.Label,{"data-testid":"trigger-label",className:F,style:f.label,size:j1(r,$),as:"span",disabled:c,typographyStyle:$?"secondary":"tertiary",children:a}),y&&e.jsx(It.Label,{"data-testid":"trigger-content-container",className:E,style:f.content,size:er(r),as:"span",disabled:c,children:i?t:$1(t)}),y&&!!x&&e.jsx(It.Label,{"data-testid":"trigger-postfix",className:M,style:f.postfixTitle,size:er(r),disabled:c,typographyStyle:"secondary",children:x})]}),Z?e.jsx(ve,{className:U,"data-testid":"trigger-clear",size:rr(r),tabIndex:-1,onClick:G,style:{outline:"none",...f.clearIcon},color:s==="selected"&&l?"var(--base-graphite-75)":void 0}):e.jsx(S1,{"data-testid":"trigger-chevron",size:rr(r),className:q,color:"#AABBCA",style:f.chevronIcon})]}),v&&e.jsx(gr,{title:L,error:T?d:void 0,className:T?u.error:u.description,style:T?f.error:f.description,disabled:c,"data-testid":T?"trigger-error":"trigger-description"})]})},br=g.createContext(void 0),E1=()=>{const t=g.useContext(br);if(!t)throw new Error("useSnackbar must be used inside SnackbarProvider");return t},R1={timeout:"exitingTimeout",close:"exitingClose",escape:"exitingEscape",swipe:"swipeTransition"},yr={timeout:500,close:100,escape:100,swipe:300},I1={timeout:400,close:400,escape:400,swipe:300},me=3,N1=(t,r)=>{switch(r.type){case"ENQUEUE":return{...t,queue:[...t.queue,r.snack]};case"SHOW_NEXT":{if(t.visible.length>=me||t.queue.length===0)return t;const n=me-t.visible.length,a=t.queue.slice(0,n),i=t.queue.slice(n);return{visible:[...t.visible,...a],queue:i}}case"START_EXIT":return{...t,visible:t.visible.map(n=>n.id===r.id?{...n,exiting:!0}:n)};case"REMOVE":return{...t,visible:t.visible.filter(n=>n.id!==r.id)};default:return t}},M1=({ref:t,open:r,onClose:n,setExiting:a,setExitReason:i,swiping:s,startX:l,startY:d,currentX:h,currentY:x})=>{g.useEffect(()=>{const c=t.current;if(!c||!r)return;const b=f=>{f.target instanceof Element&&f.target.closest("button")||(s.current=!0,l.current=f.touches[0].clientX,d.current=f.touches[0].clientY,h.current=l.current,x.current=d.current,c.style.animation="none",c.style.transition="none")},C=f=>{if(!s.current)return;h.current=f.touches[0].clientX,x.current=f.touches[0].clientY;const y=h.current-l.current,_=x.current-d.current,m=Math.abs(y),p=Math.abs(_),v=m>p?y:0,L=p>=m?_:0,T=Math.sqrt(y**2+_**2),k=Math.max(1-T/300,0);c.style.transform=`translate(${v}px, ${L}px)`,c.style.opacity=`${k}`},u=()=>{if(!s.current)return;s.current=!1;const f=h.current-l.current,y=x.current-d.current,_=Math.abs(f),m=Math.abs(y),p=c.offsetWidth,v=c.offsetHeight;let L=!1;if(_>2/3*p&&(L=!0),L||(y<0&&m>v/2&&(L=!0),y>0&&m>v&&(L=!0)),L){i("swipe"),a(!0),c.style.transition="";const T=f>0?p:-p,k=y>0?v:-v;c.style.transform=`translate(${T}px, ${k}px)`,c.style.opacity="0",setTimeout(()=>n("swipe"),yr.swipe)}else a(!1),i(void 0),c.style.transition="",c.style.transform="translate(0px, 0px)",c.style.opacity="1"};return c.addEventListener("touchstart",b),c.addEventListener("touchmove",C),c.addEventListener("touchend",u),()=>{c.removeEventListener("touchstart",b),c.removeEventListener("touchmove",C),c.removeEventListener("touchend",u)}},[t,r,n,a,i])};let A1=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((r,n)=>(n&=63,n<36?r+=n.toString(36):n<62?r+=(n-26).toString(36).toUpperCase():n>62?r+="-":r+="_",r),"");const O1="_stack_1sg4d_1",B1="_local_1sg4d_19",P1="_snackWrapper_1sg4d_27",ee={stack:O1,local:B1,snackWrapper:P1},z1="_snackbar_1gs18_14",D1="_slideIn_1gs18_1",F1="_snackbarStack_1gs18_41",W1="_snackbarVertical_1gs18_46",q1="_fix_1gs18_54",H1="_fill_1gs18_60",V1="_hug_1gs18_66",X1="_content_1gs18_72",U1="_contentVertical_1gs18_80",Z1="_contentText_1gs18_84",Y1="_icon_1gs18_88",G1="_exiting_1gs18_94",K1="_slideOut_1gs18_1",J1="_exitingTimeout_1gs18_100",Q1="_exitingClose_1gs18_105",t2="_exitingStack_1gs18_112",e2="_swipeTransition_1gs18_119",r2="_exitingEscape_1gs18_125",ut={snackbar:z1,slideIn:D1,snackbarStack:F1,snackbarVertical:W1,fix:q1,fill:H1,hug:V1,content:X1,contentVertical:U1,contentText:Z1,icon:Y1,exiting:G1,slideOut:K1,exitingTimeout:J1,exitingClose:Q1,exitingStack:t2,swipeTransition:e2,exitingEscape:r2},n2=()=>e.jsxs("svg",{viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("g",{clipPath:"url(#clip0_3152_20713)",children:[e.jsx("mask",{id:"mask0_3152_20713",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",children:e.jsx("path",{d:"M15.5 5.5L5.5 15.5M5.5 5.5L15.5 15.5",stroke:"black",strokeWidth:"1.7",strokeLinecap:"round",strokeLinejoin:"round"})}),e.jsx("g",{mask:"url(#mask0_3152_20713)",children:e.jsx("rect",{x:"0.5",y:"0.5",width:"20",height:"20",fill:"currentColor",fillOpacity:"0.48"})})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_3152_20713",children:e.jsx("rect",{width:"20",height:"20",fill:"currentColor",transform:"translate(0.5 0.5)"})})})]}),o2=({className:t})=>e.jsxs("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"data-testid":"snackbar-icon-error",children:[e.jsx("mask",{id:"mask0_3156_27258",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"25",height:"25",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.5 1.5C6.42487 1.5 1.5 6.42487 1.5 12.5C1.5 18.5751 6.42487 23.5 12.5 23.5C18.5751 23.5 23.5 18.5751 23.5 12.5C23.5 6.42487 18.5751 1.5 12.5 1.5ZM8.5 11.5C7.94772 11.5 7.5 11.9477 7.5 12.5C7.5 13.0523 7.94772 13.5 8.5 13.5H16.5C17.0523 13.5 17.5 13.0523 17.5 12.5C17.5 11.9477 17.0523 11.5 16.5 11.5H8.5Z",fill:"black"})}),e.jsx("g",{mask:"url(#mask0_3156_27258)",children:e.jsx("rect",{x:"0.5",y:"0.5",width:"24",height:"24",fill:"#FE725F"})})]}),a2=({className:t})=>e.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"data-testid":"snackbar-icon-info",children:[e.jsxs("g",{"clip-path":"url(#clip0_3031_21000)",children:[e.jsx("mask",{id:"mask0_3031_21000",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.80877 14.5947L5.43693 15.1334L5.23343 15.9889C4.28722 19.9668 3.81411 21.9558 4.8928 22.7395C5.97149 23.5232 7.7169 22.4586 11.2077 20.3295L11.9743 19.8619L12.7408 20.3295C16.2316 22.4586 17.977 23.5232 19.0557 22.7395C20.1344 21.9558 19.6613 19.9668 18.7151 15.9889L18.5203 15.1699L19.1908 14.5947C22.2944 11.9327 23.8463 10.6017 23.4342 9.33364C23.0222 8.06557 20.9844 7.9009 16.9088 7.57156L16.0423 7.50154L15.6923 6.66154C14.1197 2.88718 13.3333 1 12 1C10.6667 1 9.88034 2.88717 8.3077 6.66152L7.95775 7.50141L7.09075 7.57147C3.01514 7.90081 0.977339 8.06547 0.565317 9.33355C0.153294 10.6016 1.70512 11.9326 4.80877 14.5947Z",fill:"black"})}),e.jsx("g",{mask:"url(#mask0_3031_21000)",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})]}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_3031_21000",children:e.jsx("rect",{width:"24",height:"24",fill:"white"})})})]}),s2=({className:t})=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,"data-testid":"snackbar-icon-success",children:e.jsx("g",{transform:"translate(-2.8, -2.8) scale(1.24)",children:e.jsxs("g",{clipPath:"url(#clip0_343_52329)",children:[e.jsx("mask",{id:"mask0_343_52329",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:e.jsx("g",{clipPath:"url(#clip1_343_52329)",children:e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.83334 12C2.83334 6.93737 6.9374 2.83331 12 2.83331C17.0626 2.83331 21.1667 6.93737 21.1667 12C21.1667 17.0626 17.0626 21.1666 12 21.1666C6.9374 21.1666 2.83334 17.0626 2.83334 12ZM16.3393 8.91072C16.6647 9.23616 16.6647 9.7638 16.3393 10.0892L11.3393 15.0892C11.0138 15.4147 10.4862 15.4147 10.1608 15.0892L7.66075 12.5892C7.33532 12.2638 7.33532 11.7362 7.66075 11.4107C7.98619 11.0853 8.51383 11.0853 8.83927 11.4107L10.75 13.3215L15.1608 8.91072C15.4862 8.58529 16.0138 8.58529 16.3393 8.91072Z",fill:"black"})})}),e.jsx("g",{mask:"url(#mask0_343_52329)",children:e.jsx("rect",{x:"0",y:"0",width:"24",height:"24",fill:"#5BCF83"})})]})})}),i2=g.forwardRef((t,r)=>{const{open:n,variant:a="info",mode:i="fix",onClose:s,autoHideDuration:l=6e3,disableAutoHide:d=!1,showButtonClose:h=!0,showIcon:x=!0,content:c,classNameSnackbarRoot:b,icon:C,isStack:u=!1,forceClose:f,"data-testid":y="snackbar"}=t,_=g.useRef(null),m=g.useRef(null),[p,v]=g.useState(!1),[L,T]=g.useState(!1),[k,$]=g.useState(),R=g.useRef(0),I=g.useRef(0),A=g.useRef(0),D=g.useRef(0),F=g.useRef(!1),E=g.useRef(null),M=z=>{clearTimeout(E.current||0),E.current=null;const K=u?I1[z]:yr[z];z==="swipe"||(T(!0),$(z)),E.current=setTimeout(()=>{s==null||s(),T(!1),$(void 0),E.current=null},K)};M1({ref:m,open:n,onClose:M,setExiting:T,setExitReason:$,swiping:F,startX:R,startY:I,currentX:A,currentY:D}),g.useEffect(()=>{f&&M("close")},[f]),g.useEffect(()=>{if(n&&!d&&a!=="loading"){const z=setTimeout(()=>M("timeout"),l);return()=>clearTimeout(z)}},[n,d,a,l]),g.useEffect(()=>{n&&(T(!1),$(void 0))},[n]),g.useEffect(()=>{const z=_.current;z&&requestAnimationFrame(()=>{const K=parseFloat(getComputedStyle(z).lineHeight),Z=z.offsetHeight,Q=Math.round(Z/K);v(Q>1)})},[c]),g.useEffect(()=>{if(!n)return;const z=K=>{K.key==="Escape"&&M("escape")};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[n]),g.useEffect(()=>()=>{E.current&&(clearTimeout(E.current),E.current=null)},[]);const q=L&&k&&ut[R1[k]];if(!n&&!L)return null;const H={success:e.jsx(s2,{className:ut.icon}),error:e.jsx(o2,{className:ut.icon}),info:e.jsx(a2,{className:ut.icon}),loading:e.jsx(ae,{"data-testid":"snackbar-icon-loading",variant:"contrast"})},U=Ct(ut.snackbar,ut[i],{[ut.exiting]:L&&k},{[ut.snackbarVertical]:p},b,q,{[ut.snackbarStack]:u&&!L,[ut.exitingStack]:u&&L}),G=z=>{m.current=z,r&&(typeof r=="function"?r(z):r.current=z)};return e.jsxs("div",{ref:G,"data-testid":y,className:U,children:[e.jsxs("div",{className:Ct(ut.content,{[ut.contentVertical]:p}),children:[x&&e.jsx("div",{className:ut.icon,children:C||H[a]}),e.jsx(It.Label,{className:ut.contentText,ref:_,typographyStyle:"contrast",children:c})]}),h&&e.jsx(Ut,{iconLeft:e.jsx(n2,{}),onClick:()=>M("close"),mode:"tertiary",buttonStyle:"contrast",style:{padding:"0px"}})]})}),l2=t=>{const{children:r,dataTestId:n="snackbar-wrapper"}=t,[a,i]=g.useReducer(N1,{visible:[],queue:[]}),s=u=>{const f=A1(),y={...u,id:f,open:!0};i({type:"ENQUEUE",snack:y})},l=u=>{i({type:"REMOVE",id:u})};g.useEffect(()=>{i({type:"SHOW_NEXT"})},[a.queue,a.visible]),g.useEffect(()=>{if(a.queue.length!==0)if(a.visible.length>=me){const u=a.visible[0];i({type:"START_EXIT",id:u.id})}else i({type:"SHOW_NEXT"})},[a.queue]);const d=u=>u.map((f,y)=>{const _=(u.length-1-y)*-8,m=u.length>1;m&&!f.wasInStack&&(f.wasInStack=!0);const p=f.wasInStack||m?"fix":f.mode;return e.jsx("div",{"data-testid":n,className:ee.snackWrapper,style:{transform:`translateY(${_}px)`},children:e.jsx(i2,{...f,open:!f.exiting,isStack:m,mode:p,forceClose:f.exiting,onClose:()=>l(f.id)})},f.id)}),h=a.visible.filter(u=>!u.parent),x=a.visible.filter(u=>u.parent),c=Ae.createPortal(e.jsx("div",{className:ee.stack,children:d(h)}),document.body),b=x.reduce((u,f)=>{if(!f.parent)return u;const y=f.parent.id||`parent-${f.parent.className}`;return(u[y]||(u[y]=[])).push(f),u},{}),C=Object.entries(b).map(([u,f])=>{const y=f[0];return y.parent?Ae.createPortal(e.jsx("div",{className:Ct(ee.stack,ee.local),children:d(f)},u),y.parent):null});return e.jsxs(br.Provider,{value:{show:s},children:[r,c,C]})};exports.Alert=$a;exports.Avatar=sr;exports.Badge=cr;exports.Button=Ut;exports.Checkbox=Ys;exports.ConfigProvider=xs;exports.Helper=gr;exports.Image=Da;exports.List=Pl;exports.Loader=ae;exports.Modal=pa;exports.Placeholder=lr;exports.Radio=Tl;exports.SegmentedControl=k1;exports.SnackbarProvider=l2;exports.Tabs=yc;exports.Tag=As;exports.TextArea=sl;exports.TextInput=Ki;exports.Tooltip=Hc;exports.Trigger=T1;exports.Typography=It;exports.enUS=dr;exports.ruRU=ms;exports.useConfig=_r;exports.useLocale=Fa;exports.useSnackbar=E1;
|