(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2195,2411,6288,7419],{4319:()=>{},9219:(e,t,a)=>{"use strict";a.d(t,{Q:()=>h});var n=a(37876),c=a(14232),l=a(69241),r=a(68086),i=a(12509),s=a(30790),o=a(9789);a(31127);let d=(0,o.g)("input-range"),u=Object.freeze({inputRange:d,rangeSlider:"".concat(d,"__range-slider")}),h=(0,c.forwardRef)((e,t)=>{let{value:a,defaultValue:o,onChange:d,min:h=0,max:m=100,step:p=1,disabled:g,ticks:v,tooltip:f,onBlur:_,className:b,inputClassname:x,sliderClassname:j,style:y,...k}=e,N=Object.hasOwn(e,"value"),[w,A]=(0,c.useState)(o),C=(0,c.useRef)(null),R=(0,c.useRef)(null),L=(0,c.useRef)(null),I=N?a:w,B="number"==typeof I?(0,i.r)(I,h,m):h,T=(0,c.useCallback)(e=>{N||A(e),null==d||d(e)},[N,d]),E=(0,c.useCallback)(e=>{T(e)},[T]),S=(0,c.useCallback)(e=>{"number"==typeof I&&T((0,i.r)(I,h,m)),null==_||_(e)},[T,m,h,_,I]),q=(0,c.useCallback)(e=>{var t;let[a]=e;T((0,i.r)(a,h,m)),null==(t=R.current)||t.focus()},[T,h,m]),z=(0,c.useCallback)(()=>{var e;null==(e=R.current)||e.blur()},[]);(0,c.useImperativeHandle)(t,()=>({rootRef:C.current,inputRef:R.current,sliderRef:L.current}),[]);let{dataQa:F,dataId:O,...D}=k;return(0,n.jsxs)("div",{ref:C,className:(0,l.A)(u.inputRange,b),style:y,"data-qa":F,"data-id":O,children:[(0,n.jsx)(i.I,{...D,ref:R,min:h,max:m,step:p,disabled:g,withoutControls:!0,value:I,onChange:E,onBlur:S,className:x,dataQa:(0,r.g)("".concat(F,"-input"),!!F),dataId:(0,r.g)("".concat(O,"-input"),!!O)}),(0,n.jsx)(s.R,{ref:L,min:h,max:m,step:p,disabled:g,legend:v,formatValue:f,values:[B],onChange:q,onFinalChange:z,className:(0,l.A)(u.rangeSlider,j),dataQa:(0,r.g)("".concat(F,"-slider"),!!F),dataId:(0,r.g)("".concat(O,"-slider"),!!O)})]})});h.displayName="InputRange"},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)},12429:()=>{},13152:()=>{},21093:()=>{},26027:(e,t,a)=>{"use strict";a.d(t,{v:()=>o});var n=a(37876),c=a(14232),l=a(69241),r=a(9789);a(85424);let i=(0,r.g)("tag"),s=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")}}),o=(0,c.forwardRef)((e,t)=>{let{label:a,size:c="m",rounded:r,variant:i="primary",iconLeft:o,iconRight:d,onIconLeftClick:u,onIconRightClick:h,className:m,style:p,dataQa:g,dataId:v,...f}=e;return(0,n.jsx)(n.Fragment,{children:a&&(0,n.jsxs)("div",{ref:t,className:(0,l.A)(s.tag,s.variant[i],s.size[c],{[s.rounded]:r},m),style:p,...f,"data-id":v,"data-qa":g,children:[o&&(0,n.jsx)("button",{type:"button",className:(0,l.A)(s.icon,s.iconMargin.left,{[s.size.l]:"l"===c}),onClick:e=>null==u?void 0:u(e),disabled:!u,children:o}),(0,n.jsx)("span",{className:(0,l.A)(s.label,s.size[c]),children:a}),d&&(0,n.jsx)("button",{type:"button",className:(0,l.A)(s.icon,s.iconMargin.right,{[s.size.l]:"l"===c}),onClick:e=>null==h?void 0:h(e),disabled:!h,children:d})]})})});o.displayName="Tag"},28346:(e,t,a)=>{"use strict";a.d(t,{m:()=>p});var n=a(37876),c=a(14232),l=a(42036),r=a(50698),i=a(94882),s=a(69241),o=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)(l.XF,{id:o.T,children:t}):(0,n.jsx)(n.Fragment,{children:t})},p=(0,c.forwardRef)((e,t)=>{let{position:a="top",text:o,zIndex:u=1,inverted:p,withoutTail:g,children:v,boundingOffset:f=12,boundaryPadding:_,moveToBody:b=!1,hideWhenOutOfBounds:x=!1,style:j,className:y,dataQa:k,dataId:N,...w}=e,[A,C]=(0,c.useState)(!1),R=(0,c.useRef)(null),{refs:L,floatingStyles:I,context:B,middlewareData:T}=(0,l.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:R,padding:8}),...x?[(0,i.jD)({strategy:"escaped",padding:-24})]:[]]}),E=(0,l.Mk)(B,{delay:300}),{getReferenceProps:S,getFloatingProps:q}=(0,l.bv)([E]),z=(0,l.DL)(B,{duration:300});return(0,c.useImperativeHandle)(t,()=>({getActivatorElement:L.reference,getTooltipElement:L.floating})),(0,c.useEffect)(()=>{var e;(null==(e=T.hide)?void 0:e.escaped)&&C(!1)},[T.hide]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"data-qa":(0,d.g)("".concat(k,"-activator"),!!k),ref:L.setReference,...S,className:h.wrapper,children:v}),z.isMounted&&(0,n.jsx)(m,{moveToBody:b,children:(0,n.jsxs)("div",{role:"tooltip",ref:L.setFloating,style:{...I,...z.styles,...j,zIndex:u},className:(0,s.A)(h.tooltip,y,{[h.inverted]:p}),...q,...w,"data-qa":k,"data-id":N,children:[(0,n.jsx)("span",{className:(0,s.A)(h.text,{[h.inverted]:p}),children:o}),!g&&(0,n.jsx)(l.ie,{ref:R,context:B,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"},29166:(e,t,a)=>{"use strict";a.d(t,{A:()=>f,n:()=>p});var n=a(37876),c=a(14232),l=a(69241),r=a(21831),i=a(9789),s=a(86346),o=a(14595);a(97870);let d=(0,i.g)("accordion"),u=(0,i.g)("accordion-item"),h=Object.freeze({accordionItem:u,accordionItemInner:"".concat(u,"__inner"),body:"".concat(u,"__body"),header:"".concat(u,"__header"),content:"".concat(u,"__content"),contentInner:"".concat(u,"__content-inner"),controlIcon:"".concat(u,"__control-icon"),titleWrapper:"".concat(u,"__title-wrapper"),title:"".concat(u,"__title"),icon:"".concat(u,"__icon"),toggleIcon:"".concat(u,"__toggle-icon"),subTitle:"".concat(u,"__subtitle"),caption:"".concat(u,"__caption"),states:{disabled:"".concat(u,"--disabled"),active:"".concat(u,"--active"),focused:"".concat(u,"--focused"),withControl:"".concat(u,"--with-control"),withIcon:"".concat(u,"--with-icon")}}),m=Object.freeze({accordion:d,withoutOutline:"".concat(d,"--without-outline"),variants:{primary:"".concat(d,"--primary"),secondary:"".concat(d,"--secondary")}}),p=(0,c.forwardRef)((e,t)=>{let{multiple:a=!1,children:i,activeIndex:s,defaultActiveIndex:o=[],className:d,variant:u="primary",withoutOutline:h=!1,style:p,dataQa:g,dataId:v,onTabToggle:f,..._}=e,[b,x]=(0,c.useState)(o),j=(0,r.i)(s),y=j?s:b,k=(e,t,a)=>a?e.includes(t)?e.filter(e=>e!==t):[...e,t]:e.includes(t)?[]:[t];return(0,n.jsx)("div",{ref:t,className:(0,l.A)(d,m.accordion,m.variants[u],{[m.withoutOutline]:h}),style:p,..._,"data-id":v,"data-qa":g,children:c.Children.map(i,e=>(0,c.isValidElement)(e)?(0,c.cloneElement)(e,{isActive:y.includes(e.props.id),onToggle:t=>{((e,t)=>{if(j){let n=k(y,e,a);null==f||f(n,t)}else x(t=>k(t,e,a))})(e.props.id,t)}}):e)})});function g(e){return c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"m17.03 11.28-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 1 1 1.06-1.06L12 14.19l3.97-3.97a.75.75 0 1 1 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}p.displayName="Accordion";let v=e=>{let t=Array.from(document.querySelectorAll("[data-accordion-index]"));if(0===t.length)return;let a=t.findIndex(e=>e===document.activeElement),n=a;switch(e){case"next":n=(a+1)%t.length;break;case"previous":n=(a-1+t.length)%t.length}let c=0;for(;c++<t.length;){let a=t[n];if("true"!==a.getAttribute("data-disabled"))return void a.focus();n=(n+("next"===e?1:-1)+t.length)%t.length}},f=(0,c.forwardRef)((e,t)=>{let{id:a,title:r,tagTitle:i="span",subTitle:d,disabled:u=!1,isActive:m=!1,icon:p,controlIcon:f,errorMessage:_,children:b,className:x,style:j,dataQa:y,dataId:k,onControlClick:N,onToggle:w,...A}=e,C=(0,c.useRef)(null),R=(0,c.useRef)(null),L=(0,c.useRef)(null);(0,c.useEffect)(()=>{let e=C.current,t=R.current;if(!e||!t)return;e.style.minHeight=m?t.scrollHeight+"px":"0",e.style.height=m?t.scrollHeight+"px":"0";let a=new ResizeObserver(()=>{m&&(e.style.minHeight=t.scrollHeight+"px",e.style.height=t.scrollHeight+"px")});return a.observe(t),()=>a.disconnect()},[m]);let I=!f&&!!p;return(0,n.jsxs)("div",{ref:t,className:(0,l.A)(x,h.accordionItem),style:j,...A,"data-id":k,"data-qa":y,children:[(0,n.jsx)("div",{className:(0,l.A)(h.accordionItemInner),children:(0,n.jsxs)("div",{className:(0,l.A)(h.body,[{[h.states.disabled]:u}]),children:[(0,n.jsxs)("button",{type:"button","aria-expanded":m,"aria-disabled":u,"data-disabled":u,"data-accordion-index":a,className:(0,l.A)(h.header,[{[h.states.active]:m}]),tabIndex:u?-1:0,onClick:u?void 0:w,ref:L,disabled:u,onKeyDown:e=>{if(!u)switch(e.key){case"Enter":case" ":e.preventDefault(),null==w||w(e);break;case"ArrowDown":e.preventDefault(),v("next");break;case"ArrowUp":e.preventDefault(),v("previous")}},children:[(0,n.jsxs)("div",{className:(0,l.A)(h.titleWrapper),children:[I&&(0,n.jsx)("span",{className:h.icon,children:p}),(0,n.jsx)(i,{className:(0,l.A)(h.title,{[h.states.withControl]:f}),children:r}),(0,n.jsx)(o.P,{className:(0,l.A)(h.toggleIcon,[{[h.states.active]:m},{[h.states.withControl]:f}]),children:(0,n.jsx)(g,{})}),f&&(0,n.jsx)(o.P,{className:h.controlIcon,onClick:e=>{var t;f&&e.stopPropagation(),null==(t=L.current)||t.blur(),null==N||N(e)},children:f})]}),d&&(0,n.jsx)("span",{className:(0,l.A)(h.subTitle,[{[h.states.withIcon]:I}]),children:d})]}),(0,n.jsx)("div",{className:(0,l.A)(h.content),style:{overflow:"hidden"},"aria-hidden":!m,ref:C,children:(0,n.jsx)("div",{className:h.contentInner,ref:R,children:b})})]})}),_&&(0,n.jsx)(s.C,{withoutIcon:!0,state:"error",text:_})]})});f.displayName="AccordionItem"},29258:()=>{},29589:(e,t,a)=>{"use strict";a.d(t,{C:()=>d});var n=a(37876),c=a(14232),l=a(69241),r=a(68086),i=a(9789);a(12429);let s=(0,i.g)("chips"),o=Object.freeze({chips:s,chip:"".concat(s,"__item"),icon:"".concat(s,"__icon"),iconLeft:"".concat(s,"__icon-left"),iconRight:"".concat(s,"__icon-right"),label:"".concat(s,"__label"),variants:{primary:"".concat(s,"--primary"),secondary:"".concat(s,"--secondary"),tertiary:"".concat(s,"--tertiary")},activeVariants:{primary:"".concat(s,"--active-primary"),secondary:"".concat(s,"--active-secondary")},sizes:{s:"".concat(s,"--s"),m:"".concat(s,"--m"),l:"".concat(s,"--l")},selected:"".concat(s,"--selected"),indicator:"".concat(s,"__indicator"),indicatorVariant:{red:"".concat(s,"__indicator--red"),orange:"".concat(s,"__indicator--orange"),green:"".concat(s,"__indicator--green"),purple:"".concat(s,"__indicator--purple"),purpleSecondary:"".concat(s,"__indicator--purple-secondary"),blue:"".concat(s,"__indicator--blue"),pink:"".concat(s,"__indicator--pink")}}),d=(0,c.forwardRef)((e,t)=>{let{chips:a,value:i,variant:s="primary",activeVariant:d="primary",multiple:u,clearable:h,size:m="m",className:p,style:g,dataQa:v,dataId:f,onChipClick:_,...b}=e,[x,j]=(0,c.useState)(u?[]:void 0),y=(0,c.useRef)(null);(0,c.useImperativeHandle)(t,()=>({getRoot:()=>y.current,getSelectedChips:()=>x})),(0,c.useEffect)(()=>{u?j(Array.isArray(i)?i:[]):j(i)},[i,u]);let k=u||h,N=e=>u&&Array.isArray(x)?x.includes(e):x===e,w=(e,t,a)=>{j(a),null==_||_(e,t,a)},A=(e,t)=>{if(u&&Array.isArray(x))if(N(e)){let a=x.filter(t=>t!==e);w(e,t,a)}else w(e,t,[...x,e]);else{let a=h&&N(e)?void 0:e;w(e,t,a)}};return(0,n.jsx)("div",{ref:y,className:(0,l.A)(p,o.chips),style:g,...b,"data-id":f,"data-qa":v,children:a.map((e,t)=>((e,t)=>{let{id:a,label:c,iconLeft:i,iconRight:u,indicator:h}=e,p=N(a);return(0,n.jsxs)("div",{className:(0,l.A)(o.chip,o.sizes[m],o.activeVariants[d],o.variants[s],[{[o.selected]:p}]),role:k?"checkbox":"radio","aria-checked":p,"aria-label":c,tabIndex:0,"data-qa":(0,r.g)("".concat(v,"-item-").concat(++t),!!v),onClick:e=>{A(a,e)},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),A(a,e))},children:[i&&(0,n.jsx)("span",{className:(0,l.A)(o.icon,o.iconLeft),"aria-hidden":"true",children:i}),(0,n.jsx)("span",{className:(0,l.A)(o.label),children:c}),h&&(0,n.jsx)("div",{className:(0,l.A)(o.indicator,o.indicatorVariant[h])}),u&&(0,n.jsx)("span",{className:(0,l.A)(o.icon,o.iconRight),"aria-hidden":"true",children:u})]},a)})(e,t))})});d.displayName="Chips"},31127:()=>{},36596:()=>{},42195:(e,t,a)=>{"use strict";a.r(t),a.d(t,{Modal:()=>_});var n=a(37876),c=a(14232),l=a(42036),r=a(69241),i=a(43509),s=a(68086),o=a(9789),d=a(83815),u=a(68741),h=a(68990),m=a(14595);a(4319);let p=(0,o.g)("modal"),g=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")}),v=e=>{let{primaryBtnText:t,onPrimary:a,secondaryBtnText:c,onSecondary:l,thirdBtnText:i,onThird:o,description:u,children:h,noContent:m,dataQa:p}=e;return(0,n.jsxs)("div",{"data-qa":(0,s.g)("".concat(p,"-footer"),!!p),className:(0,r.A)(g.footer,{[g.noContent]:m}),children:[!m&&(0,n.jsx)("div",{className:(0,r.A)(g.divider,g.dividerTop)}),h||(0,n.jsxs)("div",{className:g.footerContainer,children:[i&&(0,n.jsx)(d.a,{dataQa:(0,s.g)("".concat(p,"-footer-third-btn"),!!p),label:i,variant:"secondary",size:"s",className:g.footerBtn,onClick:o}),c&&(0,n.jsx)(d.a,{dataQa:(0,s.g)("".concat(p,"-footer-secondary-btn"),!!p),label:c,variant:"secondary",size:"s",className:g.footerBtn,onClick:l}),t&&(0,n.jsx)(d.a,{dataQa:(0,s.g)("".concat(p,"-footer-primary-btn"),!!p),label:t,size:"s",className:g.footerBtn,onClick:a})]}),u&&(0,n.jsx)("span",{"data-qa":(0,s.g)("".concat(p,"-footer-description"),!!p),className:g.footerDescription,children:u})]})},f=e=>{let{text:t,title:a,subtitle:c,align:l="left",backBtnVariant:i,onBack:o,onClose:d,noContent:p,dataQa:v,withoutCloseBtn:f=!1}=e;return(0,n.jsxs)("div",{"data-qa":(0,s.g)("".concat(v,"-header"),!!v),className:(0,r.A)(g.header,{[g.headerStates.centered]:"center"===l||!!i,[g.headerStates.withLongBtn]:"long"===i,[g.headerStates.defaultHeight]:!t&&!a&&!c}),children:[t&&(0,n.jsx)("span",{"data-qa":(0,s.g)("".concat(v,"-header-text"),!!v),className:g.headerText,children:t}),a&&(0,n.jsx)("span",{"data-qa":(0,s.g)("".concat(v,"-header-title"),!!v),className:g.headerTitle,children:a}),c&&(0,n.jsx)("span",{"data-qa":(0,s.g)("".concat(v,"-header-subtitle"),!!v),className:g.headerSubtitle,children:c}),!f&&(0,n.jsx)("button",{"data-qa":(0,s.g)("".concat(v,"-header-close"),!!v),type:"button",className:g.closeIcon,onClick:d,children:(0,n.jsx)(m.P,{children:(0,n.jsx)(h.S,{})})}),i&&(0,n.jsxs)("button",{"data-qa":(0,s.g)("".concat(v,"-header-back"),!!v),type:"button",className:g.backButton,onClick:o,children:[(0,n.jsx)(m.P,{children:(0,n.jsx)(u.S,{})}),"long"===i&&(0,n.jsx)("span",{className:g.backButtonText,children:"Назад"})]}),!p&&(0,n.jsx)("div",{className:(0,r.A)(g.divider,g.dividerBottom)})]})},_=(0,c.forwardRef)((e,t)=>{let{header:a,footer:o,open:d=!1,size:u="m",noPadding:h=!1,height:m="full",onClose:p,children:_,className:b,style:x,dataQa:j,dataId:y,dismissDisabled:k=!1,...N}=e,[w,A]=(0,c.useState)(!1),[C,R]=(0,c.useState)(!1),L=(0,c.useRef)(null);(0,c.useEffect)(()=>()=>{L.current&&cancelAnimationFrame(L.current)},[]),(0,c.useEffect)(()=>{if(L.current&&cancelAnimationFrame(L.current),d)return A(!0),L.current=requestAnimationFrame(()=>{requestAnimationFrame(()=>{R(!0)})}),()=>{L.current&&cancelAnimationFrame(L.current)};{R(!1);let e=setTimeout(()=>{A(!1)},300);return()=>{clearTimeout(e),L.current&&cancelAnimationFrame(L.current)}}},[d]);let I=()=>{R(!1);let e=setTimeout(()=>{null==p||p(),A(!1)},300);return()=>clearTimeout(e)},{context:B}=(0,l.we)({open:w,onOpenChange:e=>{e||I()}}),T=(0,l.s9)(B,{outsidePressEvent:"mousedown",outsidePress:!k,escapeKey:!k}),E=(0,l.It)(B,{role:"dialog"}),{getFloatingProps:S}=(0,l.bv)([T,E]),[q,z]=(0,c.useState)(!1),F=(0,c.useCallback)(e=>{e&&new ResizeObserver(()=>{z(e.scrollHeight>e.clientHeight)}).observe(e)},[]);return w?(0,n.jsx)(l.XF,{id:i.M,children:(0,n.jsx)(l.zR,{lockScroll:!0,className:(0,r.A)(g.overlay,{[g.overlayOpen]:C}),children:(0,n.jsx)(l.s3,{context:B,children:(0,n.jsxs)("div",{ref:t,className:(0,r.A)(g.modal,g.size[u],g.height[m],{[g.withoutFooter]:!(null==o?void 0:o.primaryBtnText)&&!(null==o?void 0:o.children),[g.open]:C},b),style:x,...S(),...N,"data-id":y,"data-qa":j,children:[(0,n.jsx)(f,{...a,dataQa:j,noContent:!_,onClose:I}),_&&(0,n.jsx)("div",{"data-qa":(0,s.g)("".concat(j,"-content"),!!j),ref:F,className:(0,r.A)(g.content,{[g.withoutFooter]:!(null==o?void 0:o.primaryBtnText)&&!(null==o?void 0:o.children),[g.withoutPadding]:h,[g.withScroll]:q}),children:_}),((null==o?void 0:o.primaryBtnText)||(null==o?void 0:o.children))&&(0,n.jsx)(v,{...o,dataQa:j,noContent:!_})]})})})}):null});_.displayName="Modal"},45190:(e,t,a)=>{"use strict";a.d(t,{u:()=>l});var n=a(14232),c=a(21831);function l(e,t){let[a,l]=(0,n.useState)(e);return(0,n.useEffect)(()=>{(0,c.i)(t)&&l(t)},[JSON.stringify(t)]),[a,l]}},56386:(e,t,a)=>{"use strict";a.d(t,{l:()=>u});var n=a(37876),c=a(14232),l=a(69241);a(73044);var r=a(45190),i=a(24878),s=a(9789);a(13152);let o=(0,s.g)("toggle"),d=Object.freeze({toggle:o,wrapper:"".concat(o,"__wrapper"),secondaryLabel:"".concat(o,"__secondary-label"),input:"".concat(o,"__input"),marker:"".concat(o,"__marker"),label:"".concat(o,"__label"),caption:"".concat(o,"__caption"),states:{disabled:"".concat(o,"--disabled"),inverted:"".concat(o,"--inverted"),flipped:"".concat(o,"--flipped"),checked:"".concat(o,"--checked")}}),u=(0,c.forwardRef)((e,t)=>{let{value:a,onChange:s,label:o,secondaryLabel:u,disabled:h=!1,caption:m,inverted:p=!1,flipped:g=!1,className:v,style:f,inputRef:_,dataQa:b,dataId:x,...j}=e,[y,k]=(0,r.u)(null!=a&&a,a),N=(0,c.useId)();return(0,n.jsxs)("label",{className:(0,l.A)(v,d.toggle,{[d.states.disabled]:h,[d.states.inverted]:p,[d.states.flipped]:g,[d.states.checked]:y}),style:f,htmlFor:N,"data-marker-label":"",ref:t,"data-id":x,"data-qa":b,children:[(0,n.jsx)("input",{id:N,role:"switch","aria-checked":y,type:"checkbox",className:d.input,checked:y,onChange:e=>{k(e.target.checked),null==s||s(e.target.checked,e)},disabled:h,ref:_,...j}),(0,n.jsx)("span",{className:d.marker,children:(0,n.jsx)(i.C,{type:"toggle",checked:y,inverted:p,disabled:h})}),o&&u&&(0,n.jsx)("span",{className:d.secondaryLabel,children:u}),o&&(0,n.jsxs)("span",{className:d.wrapper,children:[(0,n.jsx)("span",{className:d.label,children:o}),m&&(0,n.jsx)("span",{className:d.caption,children:m})]})]})});u.displayName="Toggle"},61443:(e,t,a)=>{"use strict";a.d(t,{C:()=>y}),a(86912);var n=a(37876),c=a(14232),l=a(29589),r=a(40317),i=a(89287),s=a(52426),o=a(69241),d=a(44500),u=a(31557),h=a(10157),m=a(75250),p=a(51391),g=a(57539);let v=(0,g.g)("check-all","sc"),f=Object.freeze({wrapper:"".concat(v,"__wrapper"),link:"".concat(v,"__link"),icon:"".concat(v,"__icon"),iconGray:"".concat(v,"__icon--gray")}),_=e=>{let{children:t,className:a,linkClassName:c,iconGrayBackground:l,Link:r,event:i,href:s,dataLayerPush:d,onClick:u}=e,h=null!=r?r:p.N;return(0,n.jsx)("div",{className:(0,o.A)(f.wrapper,a),onClick:()=>{i&&d(i)},onClickCapture:e=>{let t=e.target instanceof Element?e.target.closest("a[href]"):null;t&&e.currentTarget.contains(t)&&(null==u||u())},children:(0,n.jsxs)(h,{className:(0,o.A)(f.link,c),href:s,children:[t,(0,n.jsx)("span",{className:(0,o.A)(f.icon,{[f.iconGray]:l}),children:(0,n.jsx)(m.K,{size:24})})]})})},b=(0,g.g)("journal","sc"),x=Object.freeze({wrapper:"".concat(b,"__wrapper"),title:"".concat(b,"__title"),subtitle:"".concat(b,"__subtitle"),scrollableWrapper:"".concat(b,"__scrollable-wrapper"),chipsWrapper:"".concat(b,"__chips-wrapper"),slider:"".concat(b,"__slider"),sliderItem:"".concat(b,"__slider-item"),article:"".concat(b,"__article"),imgWrapper:"".concat(b,"__img-wrapper"),articleBody:"".concat(b,"__article-body"),articleTitle:"".concat(b,"__article-title"),articleDate:"".concat(b,"__article-date"),checkAllLink:"".concat(b,"__check-all-link")}),j="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",y=e=>{var t;let{data:a,eventCategory:m="finkit-widgets-sc-journal",className:p}=e,g=(0,s.qF)("xl"),[v,f]=(0,c.useState)(!0),[b,y]=(0,c.useState)(0),k=Array.isArray(null==a?void 0:a.chips)?a.chips.filter(e=>{let{items:t}=e;return!!(null!=t&&t.length)}):[],N=k.some(e=>{let{id:t}=e;return t===b})?b:null==(t=k[0])?void 0:t.id,w=k.find(e=>{let{id:t}=e;return t===N}),A=(null==w?void 0:w.items)||[];if((0,c.useEffect)(()=>{f(!g)},[g]),!k.length)return null;let C=e=>{e.target.src!==j&&(e.target.src=j)};return(0,n.jsxs)("div",{className:(0,o.A)(x.wrapper,p),children:[(0,n.jsxs)(r.m,{children:[(0,n.jsx)("h2",{className:x.title,children:null==a?void 0:a.title}),(0,n.jsx)("div",{className:x.subtitle,children:null==a?void 0:a.description})]}),(0,n.jsx)("div",{className:x.scrollableWrapper,children:(0,n.jsx)(r.m,{children:(0,n.jsx)("div",{className:x.chipsWrapper,children:k.length>1&&(0,n.jsx)(l.C,{chips:k,value:N,variant:"secondary",size:v?"m":"l",onChipClick:e=>{var t;let a=(null==(t=k.find(t=>{let{id:a}=t;return a===e}))?void 0:t.label)||"";(0,d.h)({eventCategory:m,eventActionType:d.D.tab,eventActionText:a}),y(e)}})})})}),(0,n.jsxs)(r.m,{children:[(0,n.jsx)(i.A,{className:x.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:A.map(e=>{let t,a;return(0,n.jsx)(i.D,{className:x.sliderItem,children:(0,n.jsxs)("a",{className:x.article,href:e.url,onClick:(t=e.title,a=e.url,()=>{(0,d.h)({eventCategory:m,eventActionType:d.D.block,eventActionText:t||"",eventLabel:a})}),children:[(0,n.jsx)("div",{className:x.imgWrapper,children:(0,n.jsx)("img",{src:e.img,alt:"изображение: ".concat(e.title),loading:"lazy",onError:C})}),(0,n.jsxs)("div",{className:x.articleBody,children:[(0,n.jsx)("div",{className:x.articleTitle,children:e.title}),(0,n.jsx)("div",{className:x.articleDate,children:(e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let a=t.getDate(),n=t.getMonth();return"".concat(a," ").concat(["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][n])})(e.dt)})]})]})},e.title)})},N),(0,n.jsx)(_,{href:(null==a?void 0:a.url)||"",event:{event:"data-event",eventCategory:m,eventAction:"link_".concat((0,h.t)((null==a?void 0:a.urlText)||"Показать все статьи")),eventLabel:(null==a?void 0:a.url)||""},dataLayerPush:u.d,className:x.checkAllLink,children:(null==a?void 0:a.urlText)||"Показать все статьи"})]})]})}},62064:(e,t,a)=>{"use strict";a.d(t,{t:()=>d});var n=a(37876),c=a(14232),l=a(69241),r=a(68086),i=a(9789);a(36596);let s=(0,i.g)("tabs"),o=Object.freeze({tabs:s,tabWrapper:"".concat(s,"__tab-wrapper"),tab:"".concat(s,"__tab"),active:"".concat(s,"__tab--active"),activeLine:"".concat(s,"__activeLine")}),d=(0,c.forwardRef)((e,t)=>{var a;let{activeTabId:i,tabs:s,onTabChange:d,style:u,className:h,dataQa:m,dataId:p,...g}=e,[v,f]=(0,c.useState)(null!=i?i:null==(a=s[0])?void 0:a.id),[_,b]=(0,c.useState)(null),[x,j]=(0,c.useState)({width:0,left:0}),y=(0,c.useRef)(null);(0,c.useEffect)(()=>{_&&j({left:_.offsetLeft-2,width:_.offsetWidth+4})},[_]);let k=(0,c.useCallback)(e=>{var t;let a=y.current,n=(null==e?void 0:e.target).closest(".".concat(o.tab)),c=a.getBoundingClientRect(),l=n.getBoundingClientRect();a.scrollTo({left:l.left-c.left-4+(null!=(t=a.scrollLeft)?t:0),behavior:"smooth"})},[]);return(0,c.useImperativeHandle)(t,()=>y),(0,n.jsxs)("ul",{role:"tablist",ref:y,className:(0,l.A)(o.tabs,h),style:u,...g,"data-id":p,"data-qa":m,children:[s.map((e,t)=>{let a=e.id===v;return!e.disabled&&(0,n.jsx)("li",{role:"tab","aria-selected":e.id===v,"data-qa":(0,r.g)("".concat(m,"-tab-").concat(++t),!!m),className:o.tabWrapper,children:(0,n.jsx)("button",{type:"button",ref:a?b:null,className:(0,l.A)(o.tab,{[o.active]:a}),onClick:t=>((e,t)=>{k(t),f(e),d(e,t)})(e.id,t),children:e.label})},e.id)}),(0,n.jsx)("div",{className:(0,l.A)(o.activeLine),style:{left:x.left,width:x.width}})]})});d.displayName="Tabs"},68741:(e,t,a)=>{"use strict";a.d(t,{S:()=>c});var n=a(14232);function c(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"}))}},84025:(e,t,a)=>{"use strict";a.d(t,{B:()=>b});var n=a(37876),c=a(14232),l=a(69241),r=a(9789),i=a(68086),s=a(68741);function o(e){return c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"m10.28 19.03 6.5-6.5a.75.75 0 0 0 0-1.06l-6.5-6.5a.75.75 0 1 0-1.06 1.06L15.19 12l-5.97 5.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}var d=a(14595);a(29258);let u=(0,r.g)("breadcrumbs"),h={breadcrumbs:u,breadcrumbsEllipsis:"".concat(u,"--ellipsis"),displayOne:"".concat(u,"--display-one"),list:"".concat(u,"__list"),mobileList:"".concat(u,"__list--mobile"),desktopList:"".concat(u,"__list--desktop"),item:"".concat(u,"__item"),customItem:"".concat(u,"__item--custom"),link:"".concat(u,"__link"),linkLabel:"".concat(u,"__link-label"),text:"".concat(u,"__text"),separator:"".concat(u,"__separator"),backIcon:"".concat(u,"__back-icon"),iconMobile:"".concat(u,"__icon--mobile"),iconDesktop:"".concat(u,"__icon--desktop")},m=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return a||n?{label:a||"Назад",href:"object"!=typeof n?n||"#":void 0,customLink:"object"==typeof n?n:void 0}:t.length&&t.length>1?(null==(e=t[t.length-1])?void 0:e.href)?t[t.length-1]:t[t.length-2]:{label:t[0].label||"Назад",href:t[0].href||"#",customLink:t[0].customLink}};function p(e){return c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M8.22 12.53a.75.75 0 0 1 0-1.06l4.5-4.5a.75.75 0 1 1 1.06 1.06L9.81 12l3.97 3.97a.75.75 0 1 1-1.06 1.06l-4.5-4.5Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}function g(e){return c.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"m11.28 17.03 4.5-4.5a.75.75 0 0 0 0-1.06l-4.5-4.5a.75.75 0 1 0-1.06 1.06L14.19 12l-3.97 3.97a.75.75 0 1 0 1.06 1.06Z",clipRule:"evenodd",fill:"currentColor",fillRule:"evenodd"}))}let v=e=>{let{item:t,isBackward:a=!1,isLast:c,dataQa:r,onClick:i}=e;return(0,n.jsx)(n.Fragment,{children:t.href||t.customLink?(0,n.jsxs)(n.Fragment,{children:[t.customLink?(0,n.jsx)(n.Fragment,{children:t.customLink}):(0,n.jsxs)("a",{href:t.href,"data-qa":r,className:h.link,title:t.label,onClick:i?e=>i(e,t.href):void 0,children:[a&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.P,{className:(0,l.A)(h.backIcon,h.iconDesktop),children:(0,n.jsx)(s.S,{})}),(0,n.jsx)(d.P,{className:(0,l.A)(h.backIcon,h.iconMobile),children:(0,n.jsx)(p,{})})]}),(0,n.jsx)("span",{className:h.linkLabel,children:t.label})]}),!a&&!c&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(d.P,{className:(0,l.A)(h.separator,h.iconDesktop),children:(0,n.jsx)(o,{})}),(0,n.jsx)(d.P,{className:(0,l.A)(h.separator,h.iconMobile),children:(0,n.jsx)(g,{})})]})]}):(0,n.jsx)("span",{"aria-current":"page","data-qa":r,className:h.text,title:t.label,children:t.label})})};v.displayName="BreadcrumbsLink";let f=e=>{let{items:t=[],dataQa:a,backwardHref:r,backwardLabel:s,onClick:o}=e,d=(0,c.useRef)(null),u=(0,c.useCallback)(e=>{var t;let a=d.current;if(!a)return;let n=(null==e?void 0:e.target).closest("a");if(!n)return;let c=a.getBoundingClientRect(),l=n.getBoundingClientRect();a.scrollTo({left:l.left-c.left-8+(null!=(t=a.scrollLeft)?t:0),behavior:"smooth"})},[]),p=m(t,s,r),g=(e,t)=>{u(e),null==o||o(e,t)};return(0,n.jsx)("ul",{ref:d,className:(0,l.A)(h.list,h.desktopList),"data-qa":(0,i.g)("".concat(a,"-desktop-list"),!!a),children:1===t.length||r||s?(0,n.jsx)("li",{className:(0,l.A)(h.item),children:(0,n.jsx)(v,{isBackward:!0,dataQa:(0,i.g)("".concat(a,"-link"),!!a),item:p,onClick:g})}):(0,n.jsx)(n.Fragment,{children:t.map((e,c)=>(0,n.jsx)("li",{className:(0,l.A)(h.item,{[h.customItem]:e.customLink}),children:(0,n.jsx)(v,{item:e,dataQa:(0,i.g)("".concat(a,"-link-").concat(++c),!!a),isLast:c===t.length,onClick:g})},"".concat(e.label,"--").concat(c)))})})};f.displayName="DesktopBreadcrumbs";let _=e=>{let{items:t=[],backwardLabel:a,backwardHref:c,dataQa:r,onClick:s}=e,o=m(t,a,c);return(0,n.jsx)("ul",{className:(0,l.A)(h.list,h.mobileList),"data-qa":(0,i.g)("".concat(r,"-mobile-list"),!!r),children:(0,n.jsx)("li",{className:(0,l.A)(h.item),children:(0,n.jsx)(v,{isBackward:!0,dataQa:(0,i.g)("".concat(r,"-link"),!!r),item:o,onClick:s})})})};_.displayName="MobileBreadcrumbs";let b=(0,c.forwardRef)((e,t)=>{let{items:a=[],isMobile:c,onClick:r,backwardLabel:i,backwardHref:s,style:o,className:d,ellipsis:u=!1,isFullView:m=!1,dataQa:p,dataId:g,...v}=e,b=a.length||i||s;return(0,n.jsx)(n.Fragment,{children:b&&(0,n.jsxs)("nav",{ref:t,"aria-label":"breadcrumbs",className:(0,l.A)(h.breadcrumbs,{[h.displayOne]:void 0===c&&!m,[h.breadcrumbsEllipsis]:u},d),style:o,...v,"data-id":g,"data-qa":p,children:[!0!==c&&(0,n.jsx)(f,{items:a,dataQa:p,backwardLabel:i,backwardHref:s,onClick:r||void 0}),!1!==c&&!m&&(0,n.jsx)(_,{items:a,dataQa:p,backwardLabel:i,backwardHref:s,onClick:r||void 0})]})})});b.displayName="Breadcrumbs"},85424:()=>{},86912:()=>{},97870:()=>{},98019:(e,t,a)=>{"use strict";a.d(t,{Y:()=>n.I});var n=a(12509)}}]);