(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6056],{33696:()=>{},49557:()=>{},87888:(e,t,a)=>{"use strict";a.d(t,{I:()=>h});var n=a(95155),l=a(12115),r=a(29722),i=a(92681),s=a(83640);a(49557);let o=(0,s.g)("segmented-control"),c=Object.freeze({segmentedControl:o,secondary:`${o}--secondary`,tab:`${o}__tab`,label:`${o}__label`,icon:`${o}__icon`,slot:`${o}__slot`,states:{stretch:`${o}--stretch`,rounded:`${o}--rounded`,small:`${o}--s`,medium:`${o}--m`,weightVariant:`${o}--wight-medium`,left:`${o}__tab--left`,right:`${o}__tab--right`,active:`${o}__tab--active`,iconOnly:`${o}__tab--icon-only`,disabled:`${o}__tab--disabled`}}),d=Object.freeze({labelKey:"label",disabledKey:"disabled",slotLeftKey:"slotLeft",slotRightKey:"slotRight",iconLeftKey:"iconLeft",iconRightKey:"iconRight"}),h=(0,l.forwardRef)(({activeTabId:e,tabs:t,onTabChange:a,variant:s="primary",className:o,style:h,stretch:u=!1,rounded:m=!1,tabSettings:p,weightVariant:b="regular",size:y="m",onTabKeyDown:g,dataQa:v,dataId:_,...f},x)=>{var k;let $=(0,l.useRef)(null),j=(0,l.useMemo)(()=>{let e={...d,...p};return t.map(t=>({sourceTab:t,id:t.id,label:t[e.labelKey],disabled:t[e.disabledKey]??!1,slotLeft:t[e.slotLeftKey],slotRight:t[e.slotRightKey],iconLeft:t[e.iconLeftKey],iconRight:t[e.iconRightKey]}))},[p,t]),[w,N]=(0,l.useState)(e??(null==(k=j[0])?void 0:k.id)),I=(0,l.useCallback)(e=>{let t=$.current,a=(null==e?void 0:e.target).closest(`.${c.tab}`),n=t.getBoundingClientRect(),l=a.getBoundingClientRect();t.scrollTo({left:l.left-n.left-4+(t.scrollLeft??0),behavior:"smooth"})},[]);return(0,l.useEffect)(()=>{null!=e&&N(e)},[e]),(0,l.useImperativeHandle)(x,()=>$),(0,n.jsx)("div",{ref:$,role:"tablist",className:(0,r.A)(c.segmentedControl,{[c.secondary]:"secondary"===s,[c.states.small]:"s"===y,[c.states.medium]:"m"===y,[c.states.weightVariant]:"medium"===b,[c.states.stretch]:u,[c.states.rounded]:m},o),style:h,...f,"data-id":_,"data-qa":v,children:j.map((e,t)=>(0,n.jsxs)("button",{type:"button",role:"tab","data-qa":(0,i.g)(`${v}-tab-${++t}`,!!v),"aria-selected":e.id===w,"aria-disabled":e.disabled?e.disabled:void 0,tabIndex:(null==e?void 0:e.disabled)?-1:0,className:(0,r.A)(c.tab,{[c.states.active]:e.id===w,[c.states.disabled]:e.disabled,[c.states.iconOnly]:!e.label&&(e.iconLeft||e.slotLeft),[c.states.left]:e.label&&(e.iconLeft||e.slotLeft),[c.states.right]:e.label&&(e.iconRight||e.slotRight)}),onClick:e.disabled?void 0:t=>{var n;return n=e.id,void(N(n),I(t),a(n,t))},onKeyDown:e.disabled?void 0:t=>{var a;return a=e.id,void(((null==t?void 0:t.key)===" "||(null==t?void 0:t.key)==="Enter")&&(N(a),I(t),null==g||g(a,t)))},children:[e.iconLeft&&(0,n.jsx)("span",{className:c.icon,children:e.iconLeft}),e.slotLeft&&e.label&&(0,n.jsx)("span",{className:c.slot,children:e.slotLeft}),e.label&&(0,n.jsx)("span",{className:c.label,children:e.label}),e.label&&(0,n.jsxs)(n.Fragment,{children:[e.slotRight&&(0,n.jsx)("span",{className:c.slot,children:e.slotRight}),e.iconRight&&(0,n.jsx)("span",{className:c.icon,children:e.iconRight})]})]},e.id))})});h.displayName="SegmentedControl"},88344:(e,t,a)=>{"use strict";a.d(t,{Y:()=>C}),a(94215);var n=a(95155),l=a(12115),r=a(29722),i=a(68224),s=a(83640),o=a(86969),c=a(26048);a(33696);let d=(0,s.g)("accordion"),h=(0,s.g)("accordion-item"),u=Object.freeze({accordionItem:h,accordionItemInner:`${h}__inner`,body:`${h}__body`,header:`${h}__header`,content:`${h}__content`,contentInner:`${h}__content-inner`,controlIcon:`${h}__control-icon`,titleWrapper:`${h}__title-wrapper`,title:`${h}__title`,icon:`${h}__icon`,toggleIcon:`${h}__toggle-icon`,subTitle:`${h}__subtitle`,caption:`${h}__caption`,states:{disabled:`${h}--disabled`,active:`${h}--active`,focused:`${h}--focused`,withControl:`${h}--with-control`,withIcon:`${h}--with-icon`}}),m=Object.freeze({accordion:d,withoutOutline:`${d}--without-outline`,variants:{primary:`${d}--primary`,secondary:`${d}--secondary`}}),p=(0,l.forwardRef)(({multiple:e=!1,children:t,activeIndex:a,defaultActiveIndex:s=[],className:o,variant:c="primary",withoutOutline:d=!1,style:h,dataQa:u,dataId:p,onTabToggle:b,...y},g)=>{let[v,_]=(0,l.useState)(s),f=(0,i.i)(a),x=f?a:v,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:g,className:(0,r.A)(o,m.accordion,m.variants[c],{[m.withoutOutline]:d}),style:h,...y,"data-id":p,"data-qa":u,children:l.Children.map(t,t=>(0,l.isValidElement)(t)?(0,l.cloneElement)(t,{isActive:x.includes(t.props.id),onToggle:a=>{var n=t.props.id;if(f){let t=k(x,n,e);null==b||b(t,a)}else _(t=>k(t,n,e))}}):t)})});function b(e){return l.createElement("svg",{viewBox:"0 0 24 24",width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},l.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 y=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 l=0;for(;l++<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}},g=(0,l.forwardRef)(({id:e,title:t,tagTitle:a="span",subTitle:i,disabled:s=!1,isActive:d=!1,icon:h,controlIcon:m,errorMessage:p,children:g,className:v,style:_,dataQa:f,dataId:x,onControlClick:k,onToggle:$,...j},w)=>{let N=(0,l.useRef)(null),I=(0,l.useRef)(null),A=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=N.current,t=I.current;if(!e||!t)return;e.style.minHeight=d?t.scrollHeight+"px":"0",e.style.height=d?t.scrollHeight+"px":"0";let a=new ResizeObserver(()=>{d&&(e.style.minHeight=t.scrollHeight+"px",e.style.height=t.scrollHeight+"px")});return a.observe(t),()=>a.disconnect()},[d]);let L=!m&&!!h;return(0,n.jsxs)("div",{ref:w,className:(0,r.A)(v,u.accordionItem),style:_,...j,"data-id":x,"data-qa":f,children:[(0,n.jsx)("div",{className:(0,r.A)(u.accordionItemInner),children:(0,n.jsxs)("div",{className:(0,r.A)(u.body,[{[u.states.disabled]:s}]),children:[(0,n.jsxs)("button",{type:"button","aria-expanded":d,"aria-disabled":s,"data-disabled":s,"data-accordion-index":e,className:(0,r.A)(u.header,[{[u.states.active]:d}]),tabIndex:s?-1:0,onClick:s?void 0:$,ref:A,disabled:s,onKeyDown:e=>{if(!s)switch(e.key){case"Enter":case" ":e.preventDefault(),null==$||$(e);break;case"ArrowDown":e.preventDefault(),y("next");break;case"ArrowUp":e.preventDefault(),y("previous")}},children:[(0,n.jsxs)("div",{className:(0,r.A)(u.titleWrapper),children:[L&&(0,n.jsx)("span",{className:u.icon,children:h}),(0,n.jsx)(a,{className:(0,r.A)(u.title,{[u.states.withControl]:m}),children:t}),(0,n.jsx)(c.P,{className:(0,r.A)(u.toggleIcon,[{[u.states.active]:d},{[u.states.withControl]:m}]),children:(0,n.jsx)(b,{})}),m&&(0,n.jsx)(c.P,{className:u.controlIcon,onClick:e=>{var t;m&&e.stopPropagation(),null==(t=A.current)||t.blur(),null==k||k(e)},children:m})]}),i&&(0,n.jsx)("span",{className:(0,r.A)(u.subTitle,[{[u.states.withIcon]:L}]),children:i})]}),(0,n.jsx)("div",{className:(0,r.A)(u.content),style:{overflow:"hidden"},"aria-hidden":!d,ref:N,children:(0,n.jsx)("div",{className:u.contentInner,ref:I,children:g})})]})}),p&&(0,n.jsx)(o.C,{withoutIcon:!0,state:"error",text:p})]})});g.displayName="AccordionItem";var v=a(66216),_=a(79253),f=a(17194),x=a(22855),k=a(7596);let $=e=>{e.data.forEach((t,a)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[a-1].type&&(e.banner=e.data.splice(a-1,1)),"banner"===e.data[a+1].type&&(e.banner=e.data.splice(a+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(a,0,e.banner[0]))})},j=(0,k.g)("faq-content-block","sc"),w=Object.freeze({contentBlocks:`${j}__content-blocks`,blockLink:`${j}__block-link`,keynoteWrapper:`${j}__keynote-wrapper`,keynote:`${j}__keynote`,annotation:`${j}__annotation`,contentTableWrapper:`${j}__content-table-wrapper`}),N=({className:e,data:t})=>{let a,l,i,s;if(!Array.isArray(t))return null;let o=(a=[],l=1,$(i={data:t,headerBlocksCount:0,banner:[]}),$(i),s={},t.forEach(e=>{var t,r,i,o;let c,d=(c=(null==(t=e.data)?void 0:t.text)??(null==(r=e.data)?void 0:r.url)??(null==(i=e.data)?void 0:i.html)??(null!=(o=e.data)&&o.year?String(e.data.year):""),s[e.type]=(s[e.type]??0)+1,`${e.type}-${String(c).slice(0,80)}-${s[e.type]}`);switch(e.type){case"header":a.push((0,n.jsx)("h2",{id:`content_header_${l}`,role:"header",children:e.data.text||""},d)),l++;break;case"sub_header":a.push((0,n.jsx)("h3",{role:"sub-header",children:e.data.text||""},d));break;case"paragraph":a.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"paragraph"},d));break;case"link":a.push((0,n.jsx)("div",{className:w.blockLink,children:(0,n.jsx)("a",{target:"_blank",href:e.data.url||"",role:"link",rel:"noreferrer",children:e.data.text||""})},d));break;case"dossier":a.push((0,n.jsxs)("div",{children:[(0,n.jsx)("span",{role:"dossier-year",children:e.data.year||""}),(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"dossier-text"})]},d));break;case"html":a.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.html||""},role:"html"},d));break;case"annotation":a.push((0,n.jsx)("div",{className:w.annotation,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"annotation"},d));break;case"company-annotation":a.push((0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:e.data.text||""},role:"company-annotation"},d));break;case"keynote":a.push((0,n.jsx)("div",{className:w.keynoteWrapper,children:(0,n.jsx)("p",{className:w.keynote,dangerouslySetInnerHTML:{__html:e.data.text||""},role:"keynote"})},d));break;case"image":a.push((0,n.jsx)("img",{src:e.data.url||"",alt:"image",loading:"lazy"},d))}}),a);return(0,n.jsx)("div",{className:(0,r.A)(w.contentBlocks,e),role:"blocks",children:o})},I=(0,k.g)("faq-block","sc"),A=Object.freeze({faqBlock:I,titleWrapper:`${I}__title-wrapper`,title:`${I}__title`,accordionWrapper:`${I}__accordion-wrapper`,accordionItems:`${I}__accordion-items`,accordionItemGray:`${I}__accordion-item--gray`,accordionItemContent:`${I}__accordion-item-content`,accordionActiveItemContent:`${I}__accordion-item-content--active`,states:{primary:`${I}--primary`,secondary:`${I}--secondary`,gray:`${I}--gray`}}),L=({question:e,eventCategory:t,dataLayerPush:a,...l})=>(0,n.jsx)(g,{...l,title:e.question,children:(0,n.jsx)("div",{className:(0,r.A)(A.accordionItemContent,{[A.accordionActiveItemContent]:l.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&a({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,n.jsx)(N,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),C=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:a=[],href:i,checkAllText:s,Link:o,className:c,eventCategory:d="cb-faq",multiple:h=!1,variant:u="secondary",dataLayerPush:m,tagTitle:b})=>{let y=Array.isArray(a)?a:[],g=h?y.map(e=>e.question):[],[k,$]=(0,l.useState)(g);if(!y.length)return null;let j="gray"===u;return(0,n.jsx)("section",{className:(0,r.A)(A.faqBlock,A.states[u],c),children:(0,n.jsxs)(v.m,{children:[!t&&(0,n.jsx)("div",{className:A.titleWrapper,children:(0,n.jsx)(_.D,{as:"h2",type:"display",className:A.title,children:e})}),(0,n.jsxs)("div",{className:A.accordionWrapper,children:[t&&(0,n.jsx)(_.D,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,r.A)(A.title,`${A.title}--inner`),children:t}),(0,n.jsx)("div",{className:A.accordionItems,children:(0,n.jsx)(p,{activeIndex:k,variant:j?"primary":"secondary",withoutOutline:j,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==k?void 0:k.length),a=e.filter(e=>!k.includes(e))[0]||k.filter(t=>!e.includes(t))[0];m({event:"data-event",eventCategory:d,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,f.t)(String(a))}),$(e);let n=`[data-accordion-index="${a}"]`,l=document.querySelector(n);l&&setTimeout(()=>{let{top:e}=l.getBoundingClientRect();e<80&&l.scrollIntoView({behavior:"smooth",block:"start"})},300)},multiple:h,children:y.map(e=>{let t=`faq-${e.question}`;return(0,n.jsx)(L,{id:t,question:e,dataLayerPush:m,eventCategory:d,className:j?A.accordionItemGray:void 0,tagTitle:b},t)})})}),i&&s&&(0,n.jsx)(x.C,{href:i,event:{event:"data-event",eventCategory:d,eventAction:"сlick_link_answer-link",eventLabel:i},dataLayerPush:m,...null!=o?{Link:o}:{},iconGrayBackground:!0,children:s||"Читать все вопросы"})]})]})})}},94215:()=>{}}]);