skillgrid 0.0.38 → 0.0.39
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/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +1210 -1194
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -31,4 +31,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
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=({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,o)}),t.jsx(dr.Provider,{value:{locale:e},children:n})]})),ua={},_a="_tag_1llsi_1",pa="_label_1llsi_16",fa="_iconWrapper_1llsi_20",ga="_medium_1llsi_27",ha="_large_1llsi_33",xa="_disabled_1llsi_43",ma="_neutral_1llsi_47",ba="_positive_1llsi_53",ya="_negative_1llsi_59",va="_warning_1llsi_65",Ca="_vivid_1llsi_71",wa="_special_1llsi_77",ka="_accent_1llsi_84",Sa="_blue_1llsi_90",ja="_lovely_1llsi_96",La="_dreamy_1llsi_102",Me={tag:_a,label:pa,iconWrapper:fa,medium:ga,large:ha,disabled:xa,neutral:ma,positive:ba,negative:ya,warning:va,vivid:Ca,special:wa,accent:ka,blue:Sa,lovely:ja,dreamy:La},$a=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})]})}),Ta="_checkbox_gtrs6_43",Ea="_input_gtrs6_64",Ra="_icon_gtrs6_72",Na="_container_gtrs6_92",Ia="_error_gtrs6_143",Ma="_checkboxWrapper_gtrs6_156",Oa="_medium_gtrs6_211",Aa="_large_gtrs6_216",Ba="_label_gtrs6_258",Le={checkbox:Ta,input:Ea,icon:Ra,container:Na,error:Ia,checkboxWrapper:Ma,medium:Oa,large:Aa,label:Ba},Pa=({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})}),za=({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})}),Da={medium:{width:10.83,height:7.5},large:{width:13,height:9}},Wa=({size:e,isChecked:r,isDisabled:n,indeterminate:o,dataTestId:i})=>{const{width:a,height:l}=Da[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(za,{width:a,height:l}):t.jsx(Pa,{width:a,height:l})})},Fa=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(Wa,{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})]})}),qa="_base_10oxr_1",Ha="_content_10oxr_1",Va="_background_10oxr_1",Xa="_button_10oxr_1",Za="_link_10oxr_1",Ua="_input_10oxr_96",Ya="_suffix_10oxr_1",Ga="_prefix_10oxr_1",Ka="_tooltip_10oxr_1",Ja="_hint_10oxr_794",Qa="_dropdown_10oxr_1",ei="_popover_10oxr_1",ti="_modalBackdrop_10oxr_1",ri="_modal_10oxr_1",ni="_overlay_10oxr_1",si="_drawer_10oxr_1",oi="_notification_10oxr_1",ai="_alert_10oxr_1",ii="_toast_10oxr_1",li="_loading_10oxr_291",ci="_error_10oxr_252",di="_critical_10oxr_1",ui="_inputBase_10oxr_96",_i="_wrapper_10oxr_106",pi="_gripHandle_10oxr_186",fi="_tabFocused_10oxr_259",gi="_disabled_10oxr_284",hi="_label_10oxr_301",xi="_S_10oxr_315",mi="_M_10oxr_321",bi="_XL_10oxr_328",yi="_leftSection_10oxr_335",vi="_rightSection_10oxr_347",Ci="_helper_10oxr_385",wi="_floatingLabel_10oxr_415",ki="_focused_10oxr_481",Si="_filled_10oxr_482",ji="_L_10oxr_522",Li="_characterLimit_10oxr_564",$i="_textarea_10oxr_124",Ti="_truncate_10oxr_707",A={base:qa,content:Ha,background:Va,button:Xa,link:Za,input:Ua,suffix:Ya,prefix:Ga,tooltip:Ka,hint:Ja,dropdown:Qa,popover:ei,modalBackdrop:ti,modal:ri,overlay:ni,drawer:si,notification:oi,alert:ai,toast:ii,loading:li,error:ci,critical:di,inputBase:ui,wrapper:_i,"textarea-wrapper":"_textarea-wrapper_10oxr_124",gripHandle:pi,tabFocused:fi,disabled:gi,label:hi,S:xi,M:mi,XL:bi,leftSection:yi,rightSection:vi,helper:Ci,floatingLabel:wi,focused:ki,filled:Si,L:ji,characterLimit:Li,textarea:$i,"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:Ti,"has-hint":"_has-hint_10oxr_815","has-suffix":"_has-suffix_10oxr_821","has-limit":"_has-limit_10oxr_844"},Ei=({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"})})},Ri=(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}},Ni=(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}},Ii=(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,Mi=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}=Ri(n,e);if(Ni(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}=Ii(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(Ei,{})}),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(Mi,{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"},Oi=(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"}},Ai=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"}},Bi=e=>{switch(e){case Y.S:case Y.M:case Y.L:return 4;case Y.XL:return 8;default:return 8}},Pi=e=>{switch(e){case Y.S:case Y.M:return 8;case Y.L:case Y.XL:return 12;default:return 12}},zi=(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"}}),Di=(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"}}),Wi=(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"}}),Fi=(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"}}),qi=(e,r,n,o)=>{const i=Ai(e),a=Oi(e,r,n,o),l=Pi(e),d=Bi(e);switch(e){case Y.XL:return Di(i,a,l,d);case Y.L:return Wi(i,a,l,d);case Y.M:return Fi(i,a,l,d);case Y.S:return zi(i,a,l,d);default:return{wrapperStyles:{},floatingLabelStyles:{},prefixStyles:{},suffixStyles:{}}}},Hi=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=qi(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"},Vi={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},Xi=(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}},Zi=(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}},Ui=(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}},Yi=(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},Gi=e=>Vi[e],Ki=e=>rt[e],Ji=(e,r,n,o)=>{const i=Xi(e,r),a=Zi(e,r),l=Ui(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:Ki(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}}}},Qi=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:Gi(l),color:"var(--icon-secondary)",style:{cursor:"pointer"},"data-testid":"x-icon"}):C,U=Ji(l,D,H&&q,W),Q=Yi(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})}),el="_helper_1jq7j_16",ht={helper:el,"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})})},tl="_radio_1n8zx_59",rl="_checked_1n8zx_80",nl="_error_1n8zx_85",sl="_disabled_1n8zx_94",ol="_icon_1n8zx_130",al="_small_1n8zx_138",il="_medium_1n8zx_145",ll="_large_1n8zx_152",cl="_label_1n8zx_159",dl="_container_1n8zx_185",ul="_input_1n8zx_198",_l="_card_1n8zx_205",pl="_smallCard_1n8zx_211",fl="_mediumCard_1n8zx_215",gl="_largeCard_1n8zx_219",fe={default:"_default_1n8zx_53",radio:tl,checked:rl,error:nl,disabled:sl,icon:ol,small:al,medium:il,large:ll,label:cl,container:dl,input:ul,card:_l,smallCard:pl,mediumCard:fl,largeCard:gl},hl="radio-container-",xl="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":`${hl}${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:xl,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]})}),ml="_group_tnviu_7",bl="_vertical_tnviu_12",yl="_horizontal_tnviu_16",Kt={group:ml,vertical:bl,horizontal:yl},vl=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)})})}),Cl=Object.assign(gr,{Group:vl}),wl="_root_1jj3e_25",kl="_unordered_1jj3e_39",Sl="_ordered_1jj3e_43",jl="_sm_1jj3e_48",Ll="_md_1jj3e_59",$l="_lg_1jj3e_70",Tl="_xl_1jj3e_81",xt={root:wl,unordered:kl,ordered:Sl,sm:jl,md:Ll,lg:$l,xl:Tl},El=e=>{const{children:r,className:n,"data-testid":o="list-item"}=e;return t.jsx("li",{"data-testid":o,className:n,children:r})},Rl=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:El}),Nl="_wrapper_1v8xn_5",Il="_viewport_1v8xn_12",Ml="_mask_1v8xn_26",Ol="_maskLeft_1v8xn_37",Al="_maskRight_1v8xn_42",Bl="_visible_1v8xn_46",Pl="_control_1v8xn_51",zl="_xs_1v8xn_70",Dl="_sm_1v8xn_73",Wl="_md_1v8xn_76",Fl="_left_1v8xn_80",ql="_right_1v8xn_83",de={wrapper:Nl,viewport:Il,mask:Ml,maskLeft:Ol,maskRight:Al,visible:Bl,control:Pl,xs:zl,sm:Dl,md:Wl,left:Fl,right:ql},Hl="white",Vl=({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??Hl,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"})})]})},Xl="_tabBar_1ndpm_82",Zl="_primary_1ndpm_88",Ul="_secondary_1ndpm_93",Yl="_tab_1ndpm_82",Gl="_md_1ndpm_125",Kl="_sm_1ndpm_129",Jl="_xs_1ndpm_133",Ql="_disabled_1ndpm_137",ec="_selected_1ndpm_143",tc="_tabLabel_1ndpm_222",rc="_tabPrefix_1ndpm_234",nc="_tabPostfix_1ndpm_270",oe={tabBar:Xl,primary:Zl,secondary:Ul,tab:Yl,md:Gl,sm:Kl,xs:Jl,disabled:Ql,selected:ec,tabLabel:tc,tabPrefix:rc,tabPostfix:nc},sc="md",oc=!1,ac=8,ic="top-right-inside",hr=h.createContext(null),xr=()=>{const e=h.useContext(hr);if(!e)throw new Error("useTabs должен использоваться внутри TabsProvider");return e},lc=({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})},cc=({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:ac,position:ic,...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},dc=({mode:e,items:r,size:n=sc,isAllItemsDisabled:o=oc})=>{const{activeTab:i,setTab:a}=xr(),l=Ts();return t.jsx(Vl,{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(cc,{size:n,item:d,mode:e,showBadge:d.showBadge,badgeProps:d.badgeProps,isActive:i===d.value,isDisabled:o||d.isDisabled,onSelectTab:a},d.value))})})},uc=({tabValue:e,children:r,...n})=>t.jsx("div",{role:"tabpanel","data-testid":`tab-panel-${e}`,"aria-labelledby":`tab-item-${e}`,...n,children:r}),_c=({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)})},pc={Provider:lc,Content:_c,Panel:uc,Bar:dc},fc="_root_1fbbw_34",gc="_open_1fbbw_51",hc="_xs_1fbbw_55",xc="_s_1fbbw_61",mc="_m_1fbbw_67",bc="_neutral_1fbbw_73",yc="_contrast_1fbbw_78",vc="_accent_1fbbw_84",Cc="_typography_1fbbw_89",wc="_title_1fbbw_89",kc="_text_1fbbw_93",Sc="_mediaWrapper_1fbbw_97",jc="_content_1fbbw_112",Lc="_closeButton_1fbbw_116",$c="_hasMedia_1fbbw_142",Tc="_buttonStack_1fbbw_148",_e={root:fc,open:gc,xs:hc,s:xc,m:mc,neutral:bc,contrast:yc,accent:vc,typography:Cc,title:wc,text:kc,mediaWrapper:Sc,content:jc,closeButton:Lc,hasMedia:$c,buttonStack:Tc},Ec=()=>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"})}),Rc=()=>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},Nc={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]}},Ic={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]}},Mc={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"}]}},Oc=(e,r,n)=>({...r,...n??{},...e}),Ac=(e,r,n)=>{const o=us(r,1,3),i=Mc[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(Ec,{})}),x&&p&&t.jsx("div",{className:_e.buttonStack,children:d.map((v,_)=>{const w=Ac(_,d.length,o),k=Oc(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},_)})})]})},Bc=({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"?Nc:Ic,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(Rc,{}),className:`tooltipArrow tooltipArrow-${c}`}:!1,destroyTooltipOnHide:!0,...v,children:r})},Pc="_base_4dkq5_1",zc="_content_4dkq5_1",Dc="_background_4dkq5_1",Wc="_button_4dkq5_1",Fc="_link_4dkq5_1",qc="_input_4dkq5_1",Hc="_suffix_4dkq5_1",Vc="_prefix_4dkq5_1",Xc="_tooltip_4dkq5_1",Zc="_hint_4dkq5_1",Uc="_dropdown_4dkq5_1",Yc="_popover_4dkq5_1",Gc="_modalBackdrop_4dkq5_1",Kc="_modal_4dkq5_1",Jc="_overlay_4dkq5_1",Qc="_drawer_4dkq5_1",e1="_notification_4dkq5_1",t1="_alert_4dkq5_1",r1="_toast_4dkq5_1",n1="_loading_4dkq5_1",s1="_error_4dkq5_1",o1="_critical_4dkq5_1",a1="_segmentedControl_4dkq5_7",i1="_segment_4dkq5_7",l1="_activeSegmentIndicator_4dkq5_61",c1="_selected_4dkq5_80",d1="_stretched_4dkq5_89",u1="_disabled_4dkq5_97",_1="_s_4dkq5_7",p1="_icon_4dkq5_110",f1="_label_4dkq5_114",g1="_m_4dkq5_1",h1="_l_4dkq5_114",Re={base:Pc,content:zc,background:Dc,button:Wc,link:Fc,input:qc,suffix:Hc,prefix:Vc,tooltip:Xc,hint:Zc,dropdown:Uc,popover:Yc,modalBackdrop:Gc,modal:Kc,overlay:Jc,drawer:Qc,notification:e1,alert:t1,toast:r1,loading:n1,error:s1,critical:o1,segmentedControl:a1,segment:i1,activeSegmentIndicator:l1,selected:c1,stretched:d1,disabled:u1,s:_1,icon:p1,label:f1,m:g1,l:h1},Qt={s:te["typography-label-3-regular"],m:te["typography-label-2-regular"],l:te["typography-label-2-regular"]},x1=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"},m1=({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"})})},b1=(e,r)=>e==="XL"&&r?De.FLOATING:e!=="XL"&&r?De.HIDDEN:De.NORMAL,y1=(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",v1=e=>e.length>30?e.slice(0,30)+"…":e,C1=({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,$=b1(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:y1(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:v1(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(m1,{"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),w1=()=>{const e=h.useContext(mr);if(!e)throw new Error("useSnackbar must be used inside SnackbarProvider");return e},k1={timeout:"exitingTimeout",close:"exitingClose",escape:"exitingEscape",swipe:"swipeTransition"},br={timeout:500,close:100,escape:100,swipe:300},S1={timeout:400,close:400,escape:400,swipe:300},mt=3,j1=(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}},L1=({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 $1=(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 T1="_stack_1sg4d_1",E1="_local_1sg4d_19",R1="_snackWrapper_1sg4d_27",et={stack:T1,local:E1,snackWrapper:R1},N1="_snackbar_1gs18_14",I1="_slideIn_1gs18_1",M1="_snackbarStack_1gs18_41",O1="_snackbarVertical_1gs18_46",A1="_fix_1gs18_54",B1="_fill_1gs18_60",P1="_hug_1gs18_66",z1="_content_1gs18_72",D1="_contentVertical_1gs18_80",W1="_contentText_1gs18_84",F1="_icon_1gs18_88",q1="_exiting_1gs18_94",H1="_slideOut_1gs18_1",V1="_exitingTimeout_1gs18_100",X1="_exitingClose_1gs18_105",Z1="_exitingStack_1gs18_112",U1="_swipeTransition_1gs18_119",Y1="_exitingEscape_1gs18_125",ue={snackbar:N1,slideIn:I1,snackbarStack:M1,snackbarVertical:O1,fix:A1,fill:B1,hug:P1,content:z1,contentVertical:D1,contentText:W1,icon:F1,exiting:q1,slideOut:H1,exitingTimeout:V1,exitingClose:X1,exitingStack:Z1,swipeTransition:U1,exitingEscape:Y1},G1=()=>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)"})})})]}),K1=({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"})})]}),J1=({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"})})})]}),Q1=({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"})})]})})}),e2=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?S1[z]:br[z];z==="swipe"||(T(!0),E(z)),L.current=setTimeout(()=>{a==null||a(),T(!1),E(void 0),L.current=null},K)};L1({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[k1[$]];if(!n&&!k)return null;const H={success:t.jsx(Q1,{className:ue.icon}),error:t.jsx(K1,{className:ue.icon}),info:t.jsx(J1,{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(G1,{}),onClick:()=>M("close"),mode:"tertiary",buttonStyle:"contrast",style:{padding:"0px"}})]})}),t2=e=>{const{children:r,dataTestId:n="snackbar-wrapper"}=e,[o,i]=h.useReducer(j1,{visible:[],queue:[]}),a=u=>{const p=$1(),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(e2,{...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=Fa;exports.ConfigProvider=da;exports.Helper=fr;exports.Image=Mo;exports.List=Rl;exports.Loader=st;exports.Modal=io;exports.Placeholder=ir;exports.Radio=Cl;exports.SegmentedControl=x1;exports.SnackbarProvider=t2;exports.Tabs=pc;exports.Tag=$a;exports.TextArea=Qi;exports.TextInput=Hi;exports.Tooltip=Bc;exports.Trigger=C1;exports.Typography=Ne;exports.enUS=cr;exports.ruRU=ua;exports.useConfig=ur;exports.useLocale=Oo;exports.useSnackbar=w1;
|
|
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;
|