(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2195,6288],{4319:()=>{},11251:(e,t,a)=>{"use strict";a.d(t,{ms:()=>n.D,n5:()=>n.g,pm:()=>n.a,uu:()=>n.h});var n=a(5667)},21093:()=>{},26027:(e,t,a)=>{"use strict";a.d(t,{v:()=>s});var n=a(37876),o=a(14232),c=a(69241),r=a(9789);a(85424);let i=(0,r.g)("tag"),l=Object.freeze({tag:i,label:"".concat(i,"__label"),icon:"".concat(i,"__icon"),rounded:"".concat(i,"--rounded"),variant:{primary:"".concat(i,"--primary"),secondary:"".concat(i,"--secondary"),outline:"".concat(i,"--outline"),tertiary:"".concat(i,"--tertiary"),pink:"".concat(i,"--pink"),red:"".concat(i,"--red"),green:"".concat(i,"--green"),blue:"".concat(i,"--blue"),orange:"".concat(i,"--orange"),purple:"".concat(i,"--purple"),violet:"".concat(i,"--violet"),blur:"".concat(i,"--blur")},size:{s:"".concat(i,"--s"),m:"".concat(i,"--m"),l:"".concat(i,"--l")},iconMargin:{left:"".concat(i,"__icon--left"),right:"".concat(i,"__icon--right")}}),s=(0,o.forwardRef)((e,t)=>{let{label:a,size:o="m",rounded:r,variant:i="primary",iconLeft:s,iconRight:d,onIconLeftClick:u,onIconRightClick:h,className:m,style:p,dataQa:v,dataId:g,...f}=e;return(0,n.jsx)(n.Fragment,{children:a&&(0,n.jsxs)("div",{ref:t,className:(0,c.A)(l.tag,l.variant[i],l.size[o],{[l.rounded]:r},m),style:p,...f,"data-id":g,"data-qa":v,children:[s&&(0,n.jsx)("button",{type:"button",className:(0,c.A)(l.icon,l.iconMargin.left,{[l.size.l]:"l"===o}),onClick:e=>null==u?void 0:u(e),disabled:!u,children:s}),(0,n.jsx)("span",{className:(0,c.A)(l.label,l.size[o]),children:a}),d&&(0,n.jsx)("button",{type:"button",className:(0,c.A)(l.icon,l.iconMargin.right,{[l.size.l]:"l"===o}),onClick:e=>null==h?void 0:h(e),disabled:!h,children:d})]})})});s.displayName="Tag"},28346:(e,t,a)=>{"use strict";a.d(t,{m:()=>p});var n=a(37876),o=a(14232),c=a(42036),r=a(50698),i=a(94882),l=a(69241),s=a(43509),d=a(68086);let u=(0,a(9789).g)("tooltip"),h=Object.freeze({tooltip:u,text:"".concat(u,"__text"),wrapper:"".concat(u,"__wrapper"),inverted:"".concat(u,"--inverted")});a(21093);let m=e=>{let{children:t,moveToBody:a}=e;return a?(0,n.jsx)(c.XF,{id:s.T,children:t}):(0,n.jsx)(n.Fragment,{children:t})},p=(0,o.forwardRef)((e,t)=>{let{position:a="top",text:s,zIndex:u=1,inverted:p,withoutTail:v,children:g,boundingOffset:f=12,boundaryPadding:_,moveToBody:x=!1,hideWhenOutOfBounds:b=!1,style:j,className:w,dataQa:N,dataId:y,...k}=e,[A,C]=(0,o.useState)(!1),T=(0,o.useRef)(null),{refs:B,floatingStyles:S,context:q,middlewareData:z}=(0,c.we)({open:A,onOpenChange:C,placement:a,whileElementsMounted:r.ll,middleware:[(0,i.cY)({mainAxis:f}),(0,i.UU)({fallbackAxisSideDirection:"start",crossAxis:!1,...void 0!==_&&{padding:_}}),(0,i.BN)({...void 0!==_&&{padding:_}}),(0,i.UE)({element:T,padding:8}),...b?[(0,i.jD)({strategy:"escaped",padding:-24})]:[]]}),F=(0,c.Mk)(q,{delay:300}),{getReferenceProps:E,getFloatingProps:M}=(0,c.bv)([F]),R=(0,c.DL)(q,{duration:300});return(0,o.useImperativeHandle)(t,()=>({getActivatorElement:B.reference,getTooltipElement:B.floating})),(0,o.useEffect)(()=>{var e;(null==(e=z.hide)?void 0:e.escaped)&&C(!1)},[z.hide]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-qa":(0,d.g)("".concat(N,"-activator"),!!N),ref:B.setReference,...E,className:h.wrapper,children:g}),R.isMounted&&(0,n.jsx)(m,{moveToBody:x,children:(0,n.jsxs)("div",{role:"tooltip",ref:B.setFloating,style:{...S,...R.styles,...j,zIndex:u},className:(0,l.A)(h.tooltip,w,{[h.inverted]:p}),...M,...k,"data-qa":N,"data-id":y,children:[(0,n.jsx)("span",{className:(0,l.A)(h.text,{[h.inverted]:p}),children:s}),!v&&(0,n.jsx)(c.ie,{ref:T,context:q,width:16,d:"M8 10C6 12.58 3.43 16 0 16L16 16C12.58 16 10 12.58 8 10Z",fill:p?"var(--color-white)":"var(--color-black-500)"})]})})]})});p.displayName="Tooltip"},42195:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Modal:()=>_});var n=a(37876),o=a(14232),c=a(42036),r=a(69241),i=a(43509),l=a(68086),s=a(9789),d=a(83815),u=a(68741),h=a(68990),m=a(14595);a(4319);let p=(0,s.g)("modal"),v=Object.freeze({modal:p,overlay:"".concat(p,"__overlay"),withoutFooter:"".concat(p,"--without-footer"),noContent:"".concat(p,"--no-content"),open:"".concat(p,"--open"),overlayOpen:"".concat(p,"__overlay--open"),height:{medium:"".concat(p,"--height-medium"),full:"".concat(p,"--height-full")},size:{s:"".concat(p,"--s"),m:"".concat(p,"--m"),l:"".concat(p,"--l"),xl:"".concat(p,"--xl")},header:"".concat(p,"__header"),headerText:"".concat(p,"__header-text"),headerTitle:"".concat(p,"__header-title"),headerSubtitle:"".concat(p,"__header-subtitle"),closeIcon:"".concat(p,"__close-icon"),backButton:"".concat(p,"__back-button"),backButtonText:"".concat(p,"__back-button-text"),headerStates:{centered:"".concat(p,"__header--centered"),withLongBtn:"".concat(p,"__header--with-long-btn"),defaultHeight:"".concat(p,"__header--default-height")},content:"".concat(p,"__content"),withoutPadding:"".concat(p,"__content--without-padding"),withScroll:"".concat(p,"__content--with-scroll"),footer:"".concat(p,"__footer"),footerContainer:"".concat(p,"__footer-container"),footerBtn:"".concat(p,"__footer-btn"),footerDescription:"".concat(p,"__footer-description"),divider:"".concat(p,"__divider"),dividerTop:"".concat(p,"__divider--top"),dividerBottom:"".concat(p,"__divider--bottom")}),g=e=>{let{primaryBtnText:t,onPrimary:a,secondaryBtnText:o,onSecondary:c,thirdBtnText:i,onThird:s,description:u,children:h,noContent:m,dataQa:p}=e;return(0,n.jsxs)("div",{"data-qa":(0,l.g)("".concat(p,"-footer"),!!p),className:(0,r.A)(v.footer,{[v.noContent]:m}),children:[!m&&(0,n.jsx)("div",{className:(0,r.A)(v.divider,v.dividerTop)}),h||(0,n.jsxs)("div",{className:v.footerContainer,children:[i&&(0,n.jsx)(d.a,{dataQa:(0,l.g)("".concat(p,"-footer-third-btn"),!!p),label:i,variant:"secondary",size:"s",className:v.footerBtn,onClick:s}),o&&(0,n.jsx)(d.a,{dataQa:(0,l.g)("".concat(p,"-footer-secondary-btn"),!!p),label:o,variant:"secondary",size:"s",className:v.footerBtn,onClick:c}),t&&(0,n.jsx)(d.a,{dataQa:(0,l.g)("".concat(p,"-footer-primary-btn"),!!p),label:t,size:"s",className:v.footerBtn,onClick:a})]}),u&&(0,n.jsx)("span",{"data-qa":(0,l.g)("".concat(p,"-footer-description"),!!p),className:v.footerDescription,children:u})]})},f=e=>{let{text:t,title:a,subtitle:o,align:c="left",backBtnVariant:i,onBack:s,onClose:d,noContent:p,dataQa:g,withoutCloseBtn:f=!1}=e;return(0,n.jsxs)("div",{"data-qa":(0,l.g)("".concat(g,"-header"),!!g),className:(0,r.A)(v.header,{[v.headerStates.centered]:"center"===c||!!i,[v.headerStates.withLongBtn]:"long"===i,[v.headerStates.defaultHeight]:!t&&!a&&!o}),children:[t&&(0,n.jsx)("span",{"data-qa":(0,l.g)("".concat(g,"-header-text"),!!g),className:v.headerText,children:t}),a&&(0,n.jsx)("span",{"data-qa":(0,l.g)("".concat(g,"-header-title"),!!g),className:v.headerTitle,children:a}),o&&(0,n.jsx)("span",{"data-qa":(0,l.g)("".concat(g,"-header-subtitle"),!!g),className:v.headerSubtitle,children:o}),!f&&(0,n.jsx)("button",{"data-qa":(0,l.g)("".concat(g,"-header-close"),!!g),type:"button",className:v.closeIcon,onClick:d,children:(0,n.jsx)(m.P,{children:(0,n.jsx)(h.S,{})})}),i&&(0,n.jsxs)("button",{"data-qa":(0,l.g)("".concat(g,"-header-back"),!!g),type:"button",className:v.backButton,onClick:s,children:[(0,n.jsx)(m.P,{children:(0,n.jsx)(u.S,{})}),"long"===i&&(0,n.jsx)("span",{className:v.backButtonText,children:"Назад"})]}),!p&&(0,n.jsx)("div",{className:(0,r.A)(v.divider,v.dividerBottom)})]})},_=(0,o.forwardRef)((e,t)=>{let{header:a,footer:s,open:d=!1,size:u="m",noPadding:h=!1,height:m="full",onClose:p,children:_,className:x,style:b,dataQa:j,dataId:w,dismissDisabled:N=!1,...y}=e,[k,A]=(0,o.useState)(!1),[C,T]=(0,o.useState)(!1),B=(0,o.useRef)(null);(0,o.useEffect)(()=>()=>{B.current&&cancelAnimationFrame(B.current)},[]),(0,o.useEffect)(()=>{if(B.current&&cancelAnimationFrame(B.current),d)return A(!0),B.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{T(!0)})}),()=>{B.current&&cancelAnimationFrame(B.current)};{T(!1);let e=setTimeout(()=>{A(!1)},300);return()=>{clearTimeout(e),B.current&&cancelAnimationFrame(B.current)}}},[d]);let S=()=>{T(!1);let e=setTimeout(()=>{null==p||p(),A(!1)},300);return()=>clearTimeout(e)},{context:q}=(0,c.we)({open:k,onOpenChange:e=>{e||S()}}),z=(0,c.s9)(q,{outsidePressEvent:"mousedown",outsidePress:!N,escapeKey:!N}),F=(0,c.It)(q,{role:"dialog"}),{getFloatingProps:E}=(0,c.bv)([z,F]),[M,R]=(0,o.useState)(!1),O=(0,o.useCallback)(e=>{e&&new ResizeObserver(()=>{R(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return k?(0,n.jsx)(c.XF,{id:i.M,children:(0,n.jsx)(c.zR,{lockScroll:!0,className:(0,r.A)(v.overlay,{[v.overlayOpen]:C}),children:(0,n.jsx)(c.s3,{context:q,children:(0,n.jsxs)("div",{ref:t,className:(0,r.A)(v.modal,v.size[u],v.height[m],{[v.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[v.open]:C},x),style:b,...E(),...y,"data-id":w,"data-qa":j,children:[(0,n.jsx)(f,{...a,dataQa:j,noContent:!_,onClose:S}),_&&(0,n.jsx)("div",{"data-qa":(0,l.g)("".concat(j,"-content"),!!j),ref:O,className:(0,r.A)(v.content,{[v.withoutFooter]:!(null==s?void 0:s.primaryBtnText)&&!(null==s?void 0:s.children),[v.withoutPadding]:h,[v.withScroll]:M}),children:_}),((null==s?void 0:s.primaryBtnText)||(null==s?void 0:s.children))&&(0,n.jsx)(g,{...s,dataQa:j,noContent:!_})]})})})}):null});_.displayName="Modal"},68741:(e,t,a)=>{"use strict";a.d(t,{S:()=>o});var n=a(14232);function o(e){return n.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},n.createElement("path",{d:"M7.22 12.53a.75.75 0 0 1 0-1.06l6.5-6.5a.75.75 0 1 1 1.06 1.06L8.81 12l5.97 5.97a.75.75 0 1 1-1.06 1.06l-6.5-6.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}},85424:()=>{}}]);