
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1ca2cb7b-1032-56c4-9c17-62093e324a92")}catch(e){}}();
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5038],{25038:function(e,t,n){Promise.resolve().then(n.bind(n,61010)),Promise.resolve().then(n.bind(n,73759))},83662:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var a=n(2265);let o=e=>{let t=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let n=t.current;if(e){let e=window.scrollY||window.pageYOffset;document.body.dataset.scrollY=String(e),document.body.style.overflow="hidden",n&&n.setAttribute("data-portal","")}else{if(document.querySelectorAll("[data-portal]").length>1||(document.body.style.overflow=""),document.body.dataset.scrollY){let e=parseInt(document.body.dataset.scrollY,10);window.scrollTo(0,e),delete document.body.dataset.scrollY}n&&n.removeAttribute("data-portal")}return()=>{if(document.body.style.overflow="",document.body.dataset.scrollY){let e=parseInt(document.body.dataset.scrollY,10);window.scrollTo(0,e),delete document.body.dataset.scrollY}}},[e]),t}},73759:function(e,t,n){"use strict";n.r(t),n.d(t,{Help:function(){return S}});var a=n(57437),o=n(71793),r=n(27569),i=n(25999),l=n(48174),s=n.n(l);let c=e=>{let{data:t,activeTab:n}=e;return(0,a.jsx)("div",{className:s().wrapper,"data-sentry-component":"HelpFaqList","data-sentry-source-file":"HelpFaqList.tsx",children:t.map(e=>{let{name:t,questions:l,slug:c}=e;return(0,a.jsx)(o.C,{className:(0,r.Z)(s().faqBlock,{[s().active]:n}),innerTitle:t,questions:l,href:"/help/".concat(c),checkAllText:n?"":"Читать все вопросы",dataLayerPush:i.l,eventCategory:"help_questions",multiple:!0},c)})})};var d=n(90523),u=n(64238),p=n(2265),_=n(61445),m=n(67343),v=n(22136),y=n(51188),h=n.n(y);let f=e=>{let{tabs:t,activeTab:n}=e;return(0,a.jsx)("div",{className:h().tabs,"data-sentry-component":"NavigatorTabsList","data-sentry-source-file":"NavigatorTabsList.tsx",children:t.map(e=>(0,a.jsx)("a",{href:"/help/".concat(e.anchor),className:(0,r.Z)(h().tab,{[h().selected]:e.anchor===n}),onClick:()=>{(0,v.D)({eventCategory:"help_navigator",eventActionType:v.i.button,eventActionText:e.title,eventLabel:"/help/".concat(e.anchor)})},children:(0,a.jsx)("div",{className:h().tabTitle,children:e.title})},e.anchor))})};var b=n(93532),g=n(72633),x=n.n(g);let k=e=>{let{openPopup:t}=e;return(0,a.jsxs)("div",{className:x().titleWrapper,onClick:t,"data-sentry-component":"NavigatorTopTitle","data-sentry-source-file":"NavigatorTopTitle.tsx",children:[(0,a.jsx)("p",{className:x().title,children:"Навигатор"}),(0,a.jsx)(b.IconFdsChevronDownO,{size:24,className:x().iconMobile,"data-sentry-element":"IconFdsChevronDownO","data-sentry-source-file":"NavigatorTopTitle.tsx"})]})};var w=n(53831),N=n.n(w);let j=e=>{let{tabs:t,activeTab:n}=e,[o,i]=(0,p.useState)(!1);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("aside",{className:N().stickySidebar,children:(0,a.jsxs)("div",{className:N().container,children:[(0,a.jsx)(k,{"data-sentry-element":"NavigatorTopTitle","data-sentry-source-file":"NavigatorSidebar.tsx"}),(0,a.jsx)(f,{tabs:t,activeTab:n,"data-sentry-element":"NavigatorTabsList","data-sentry-source-file":"NavigatorSidebar.tsx"})]})}),(0,a.jsxs)("div",{className:(0,r.Z)(N().container,N().mobile),children:[(0,a.jsx)(k,{openPopup:()=>{(0,v.D)({eventCategory:"help_navigator",eventActionType:v.i.button,eventActionText:"Навигатор"}),i(!0)},"data-sentry-element":"NavigatorTopTitle","data-sentry-source-file":"NavigatorSidebar.tsx"}),(0,a.jsx)(_.h,{"data-sentry-element":"Portal","data-sentry-source-file":"NavigatorSidebar.tsx",children:(0,a.jsx)(m.j,{className:N().popup,contentClassName:N().popupContent,isOpen:o,onClose:()=>i(!1),title:"Навигатор","data-sentry-element":"UiMobilePopup","data-sentry-source-file":"NavigatorSidebar.tsx",children:(0,a.jsx)(f,{tabs:t,activeTab:n,"data-sentry-element":"NavigatorTabsList","data-sentry-source-file":"NavigatorSidebar.tsx"})})})]})]})};var L=n(32806),C=n.n(L);let T=e=>{let{breadcrumbs:t,title:n,tabs:o,activeTab:i,children:l}=e;return(0,a.jsx)("div",{className:C().page,"data-sentry-component":"HelpLayout","data-sentry-source-file":"HelpLayout.tsx",children:(0,a.jsxs)(d.W2,{"data-sentry-element":"Container","data-sentry-source-file":"HelpLayout.tsx",children:[(0,a.jsx)(u.Oo,{items:t,style:{padding:"16px 0"},"data-sentry-element":"Breadcrumbs","data-sentry-source-file":"HelpLayout.tsx"}),(0,a.jsx)("h1",{className:(0,r.Z)(C().title,{[C().mobileOnly]:i}),children:n}),(0,a.jsxs)("div",{className:C().main,children:[(0,a.jsx)(j,{tabs:o,activeTab:i,"data-sentry-element":"NavigatorSidebar","data-sentry-source-file":"HelpLayout.tsx"}),(0,a.jsx)("div",{className:C().contentWrapper,children:(0,a.jsx)("div",{className:C().content,children:l})})]})]})})},S=e=>{let{data:t,activeTab:n}=e,o=t.map(e=>({anchor:e.slug,title:e.name})),r=t.filter(e=>{let{questions:t}=e;return!!t.length}),i=t.find(e=>{let{slug:t}=e;return t===n}),l=(null==i?void 0:i.name)?[{label:"Помощь",href:"/help"},{label:i.name}]:[{label:"Помощь"}];return(0,a.jsx)(T,{breadcrumbs:[{href:"/",label:"Главная"},...l],title:(null==i?void 0:i.name)||"Помощь",tabs:o,activeTab:n,"data-sentry-element":"HelpLayout","data-sentry-component":"Help","data-sentry-source-file":"Help.tsx",children:(0,a.jsx)(c,{data:r,activeTab:n,"data-sentry-element":"HelpFaqList","data-sentry-source-file":"Help.tsx"})})}},6316:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});let a=300},99291:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var a=n(57437),o=n(2265),r=n(27569),i=n(6316),l=n(66461),s=n.n(l);let c=e=>{let{onClose:t,onToucheMove:n,isOpen:l,delay:c=i.z}=e,d=(0,o.useRef)(null),u=(0,o.useCallback)(()=>{t&&(d.current=setTimeout(()=>{t()},c))},[c,t]),p=(0,o.useCallback)(e=>{"Escape"===e.key&&u()},[u]);return(0,o.useEffect)(()=>(l&&window.addEventListener("keydown",p),()=>{d.current&&clearTimeout(d.current),window.removeEventListener("keydown",p)}),[l,p]),(0,a.jsx)("div",{className:(0,r.Z)(s().overlay,{[s().open]:l,[s().close]:!l}),onTouchStart:n,onClick:u,"data-sentry-component":"ClickOutside","data-sentry-source-file":"ClickOutside.tsx"})}},67343:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});var a=n(57437),o=n(2265),r=n(27569),i=n(99291),l=n(83662),s=n(37036),c=n(91198),d=n.n(c);let u=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:o}=e;return(0,a.jsx)("div",{className:(0,r.Z)(d().footer,n&&d().footerWithoutShadow,o),"data-sentry-component":"MobileModalFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof t?t():t})};var p=n(98022),_=n.n(p);let m=e=>{let{children:t,footer:n,isOpen:s,isSmallPopup:c,onClose:d,hasCloseButton:p=!0,full:m,touchDistance:v=100,withDisabledScroll:y=!0,contentClassName:h,className:f,title:b,closeButton:g,footerClassName:x}=e,[k,w]=(0,o.useState)(!1),[N,j]=(0,o.useState)(!1),[L,C]=(0,o.useState)(!0),[T,S]=(0,o.useState)("120%"),M=(0,o.useRef)(null),A=(0,o.useRef)(0),P=(0,o.useRef)(!1),H=e=>{var t,n,a;let o=null===(t=M.current)||void 0===t?void 0:t.offsetTop,r=null===(n=M.current)||void 0===n?void 0:n.offsetHeight;if(P.current=!0,C(!1),o&&r){let t=(null==e?void 0:null===(a=e.touches[0])||void 0===a?void 0:a.clientY)-o,n=0;t>=0&&t<=r+30&&(n=t),t>r+30&&(n=r+30),S("".concat(n,"px")),A.current=n}},O=()=>{P.current&&(A.current>v&&d?null==d||d():S("0"),C(!0),P.current=!1),window.removeEventListener("touchmove",H),window.removeEventListener("touchend",O)};(0,o.useEffect)(()=>{s&&setTimeout(()=>{w(!0),j(!0),S("0")},100),!s&&N&&(S("120%"),w(!1),j(!1))},[N,s]),(0,l.o)(s&&y);let $=null;return g&&($="function"==typeof g?g():g),(0,a.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(_().mobilePopup,N&&_().mobilePopupOpen,f),"data-sentry-component":"MobilePopupLayout","data-sentry-source-file":"MobilePopup.tsx",children:[(0,a.jsx)(i.L,{onClose:()=>{s&&(null==d||d())},onToucheMove:()=>{s&&(w(!1),window.addEventListener("touchmove",H),window.addEventListener("touchend",O))},isOpen:s,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"MobilePopup.tsx"}),(0,a.jsxs)("div",{className:(0,r.Z)(_().content,m&&_().contentFull,L&&_().contentTransition,L&&k&&_().contentTransitionOpen),ref:M,style:{transform:"translateY(".concat(T,")")},children:[(0,a.jsx)("div",{className:_().contentLine}),(0,a.jsxs)("div",{className:(0,r.Z)(_().contentContainer,c&&_().smallContentContainer,{[_().min]:!b&&!p},h),children:[!!b&&(0,a.jsx)("div",{className:_().title,children:b}),p?(0,a.jsxs)("div",{className:_().closeContainer,children:[$,g?null:(0,a.jsx)("button",{onClick:d,className:_().closeButton,children:(0,a.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,t]}),n&&(0,a.jsx)(u,{footerClassName:x,isSmallPopup:c,footer:n})]})]})},v=e=>{let{children:t,isSmallPopup:n=!1,isOpen:o=!1,...r}=e,{mounted:i}=(0,s.b)({opened:o});return i?(0,a.jsx)(m,{isSmallPopup:n,isOpen:o,...r,"data-sentry-element":"MobilePopupLayout","data-sentry-component":"UiMobilePopup","data-sentry-source-file":"MobilePopup.tsx",children:t}):null};v.displayName="UiMobilePopup"},61445:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var a=n(57437),o=n(2265),r=n(54887);let i=e=>{let{children:t,id:n="portal-root"}=e,[i,l]=(0,o.useState)(null);return(0,o.useEffect)(()=>{var e,t,a;let o=null===(e=document)||void 0===e?void 0:e.getElementById(n);if(o)l(o);else{let e=null===(t=document)||void 0===t?void 0:t.createElement("div");return null===(a=document)||void 0===a||a.body.appendChild(e),l(e),()=>{var t;null===(t=document)||void 0===t||t.body.removeChild(e)}}},[]),(0,a.jsx)(a.Fragment,{children:i&&(0,r.createPortal)(t,i)})}},37036:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var a=n(2265),o=n(6316);let r=e=>{let{opened:t}=e,[n,r]=(0,a.useState)(!1),i=(0,a.useRef)(null),l=(0,a.useRef)(!1);return(0,a.useEffect)(()=>(t&&!l.current?(l.current=!0,r(!0)):!t&&l.current&&(i.current=setTimeout(()=>{l.current=!1,r(!1)},o.z)),()=>{i.current&&clearTimeout(i.current)}),[t]),{mounted:n}}},22136:function(e,t,n){"use strict";n.d(t,{i:function(){return o},D:function(){return s}});var a,o,r=n(25999);let i={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},l=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(" ","_").replaceAll("\xa0","_");(a=o||(o={})).icon="icon",a.chip="chip",a.accordion="accordion",a.button="button",a.checkbox="checkbox",a.radio="radio",a.select="select",a.toggle="toggle",a.tooltip="tooltip",a.link="link",a.banner="banner",a.tag="tag",a.date="date",a.field="field",a.offer="offer",a.tab="tab",a.submit_button="submit_button",a.popup="popup",a.block="block";let s=e=>{let{eventCategory:t,eventActionType:n,eventActionText:a="",eventLabel:o}=e,i={event:"data-event",eventCategory:t,eventAction:{icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submit_button:"form_button_",popup:"show_pop_up_",block:"click_block_"}[n]+l(a)};void 0!==o&&(i.eventLabel=l("string"==typeof o?o:o.toString())),(0,r.l)(i)}},25999:function(e,t,n){"use strict";n.d(t,{l:function(){return r},y:function(){return i}});var a=n(37035);let o=[{path:"banki",category:"service_bank"},{path:"strahovanie_kompanija",category:"service_sk"},{path:"adresa_sk",category:"service_sk"},{path:"adresa_mfo",category:"service_mfo"},{path:"adresa",category:"service_bank"},{path:"mfo",category:"service_mfo"}],r=(e,t)=>{let n=sessionStorage.getItem("pushedEvents"),o=n?JSON.parse(n):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_"));let r=o.find(n=>n.eventCategory===e.eventCategory&&n.eventAction===e.eventAction&&n.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===n.url));if(!t||!r){if(t){let t={...e};t.url=window.location.pathname,o.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(o))}(0,a.AB)(e)}},i=e=>{o.some(t=>{if(e.includes(t.path)){let n=e.match(/str_(\d+)/),a=(null==n?void 0:n[1])?Number(n[1]):1;return setTimeout(()=>{r({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:a})},15e3),!0}return!1})}},66461:function(e){e.exports={overlay:"ClickOutside_overlay__YQi9L",open:"ClickOutside_open__bmtsz",fade:"ClickOutside_fade__io1xj",close:"ClickOutside_close__AC078","fade-out":"ClickOutside_fade-out__wJ_pJ"}},98022:function(e){e.exports={mobilePopup:"MobilePopup_mobilePopup__NCFCK",content:"MobilePopup_content__B5iF0",contentFull:"MobilePopup_contentFull__DBrvo",contentLine:"MobilePopup_contentLine__eykLy",contentContainer:"MobilePopup_contentContainer___ZbOq",min:"MobilePopup_min__D0Hml",contentTransition:"MobilePopup_contentTransition__7_kGL",contentTransitionOpen:"MobilePopup_contentTransitionOpen__GDGpr",title:"MobilePopup_title__IEYZk",closeContainer:"MobilePopup_closeContainer__HSRUL",closeButton:"MobilePopup_closeButton__Bse_M",smallContentContainer:"MobilePopup_smallContentContainer__8jHeS"}},91198:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},48174:function(e){e.exports={wrapper:"HelpFaqList_wrapper__11TTm",faqBlock:"HelpFaqList_faqBlock__K796a",active:"HelpFaqList_active__Fj9y8"}},32806:function(e){e.exports={title:"HelpLayout_title___uYYe",page:"HelpLayout_page__6n6Qy",mobileOnly:"HelpLayout_mobileOnly__aXcB6",main:"HelpLayout_main__dRmt7",contentWrapper:"HelpLayout_contentWrapper__wk66T",content:"HelpLayout_content__ppuWU"}},53831:function(e){e.exports={stickySidebar:"NavigatorSidebar_stickySidebar__exotI",container:"NavigatorSidebar_container__g0F_4",mobile:"NavigatorSidebar_mobile__9VhZV",popup:"NavigatorSidebar_popup__dVt3E",popupContent:"NavigatorSidebar_popupContent__3jhbg"}},51188:function(e){e.exports={tabs:"NavigatorTabsList_tabs__4TgGW",tab:"NavigatorTabsList_tab___GUnJ",tabTitle:"NavigatorTabsList_tabTitle__iqNJB",selected:"NavigatorTabsList_selected__rtndM"}},72633:function(e){e.exports={title:"NavigatorTopTitle_title__sql3k",titleWrapper:"NavigatorTopTitle_titleWrapper__dQM9Q",iconMobile:"NavigatorTopTitle_iconMobile__eIgjy"}},37035:function(e,t,n){"use strict";function a(){return typeof window>"u"}function o(e){a()||(Array.isArray(window.dataLayer)?window.dataLayer.push(e):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}function r(){if(a()){console.warn("Cant initialize tag manager on server side");return}"function"!=typeof window._init_gtm?console.warn("Cant init GTM, please check if GTM script exists"):window._init_gtm(),"function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm()}n.d(t,{AB:function(){return o},zK:function(){return r}})},65106:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var a=n(57437),o=n(93532),r=n(64238),i=n(27569);let l=(0,n(46714).g)("check-all","sc"),s=Object.freeze({wrapper:`${l}__wrapper`,link:`${l}__link`,icon:`${l}__icon`,iconGray:`${l}__icon--gray`}),c=({children:e,className:t,linkClassName:n,iconGrayBackground:l,Link:c,event:d,href:u,dataLayerPush:p})=>{let _=c??r.rU;return(0,a.jsx)("div",{className:(0,i.Z)(s.wrapper,t),onClick:()=>{d&&p(d)},children:(0,a.jsxs)(_,{className:(0,i.Z)(s.link,n),href:u,children:[e,(0,a.jsx)("span",{className:(0,i.Z)(s.icon,{[s.iconGray]:l}),children:(0,a.jsx)(o.IconFdsArrowUpRightSmallO,{size:24})})]})})}},61010:function(e,t,n){"use strict";n.d(t,{L:function(){return s},g:function(){return l}});var a=n(2265),o=n(37035);let r=null,i=e=>{r=e},l=()=>r,s=e=>{let{env:t}=e,n=(0,a.useRef)(!1);return n.current||(i(t),n.current=!0),(0,a.useEffect)(()=>{"production"===t.NODE_ENV&&(0,o.zK)()},[t.NODE_ENV]),null}},46714:function(e,t,n){"use strict";function a(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return a}})},2292:function(e,t,n){"use strict";n.d(t,{t:function(){return o}});let a={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},o=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in a?a[t]:e}).replaceAll(/[ \u00A0]/g,"_")},71793:function(e,t,n){"use strict";n.d(t,{C:function(){return b}});var a=n(57437),o=n(2265),r=n(90523),i=n(64238),l=n(27569),s=n(2292),c=n(65106),d=n(46714);let u=(0,d.g)("faq-block","sc"),p=Object.freeze({faqBlock:u,titleWrapper:`${u}__title-wrapper`,title:`${u}__title`,accordionWrapper:`${u}__accordion-wrapper`,accordionItems:`${u}__accordion-items`,accordionItemGray:`${u}__accordion-item--gray`,accordionItemContent:`${u}__accordion-item-content`,accordionActiveItemContent:`${u}__accordion-item-content--active`,states:{primary:`${u}--primary`,secondary:`${u}--secondary`,gray:`${u}--gray`}}),_=e=>{e.data.forEach((t,n)=>{"header"===t.type&&(e.headerBlocksCount++,3===e.headerBlocksCount&&("banner"===e.data[n-1].type&&(e.banner=e.data.splice(n-1,1)),"banner"===e.data[n+1].type&&(e.banner=e.data.splice(n+1,1))),e.banner&&4===e.headerBlocksCount&&e.data.splice(n,0,e.banner[0]))})},m=(0,d.g)("faq-content-block","sc"),v=Object.freeze({contentBlocks:`${m}__content-blocks`,blockLink:`${m}__block-link`,keynoteWrapper:`${m}__keynote-wrapper`,keynote:`${m}__keynote`,annotation:`${m}__annotation`,contentTableWrapper:`${m}__content-table-wrapper`}),y=({className:e,data:t})=>{if(!Array.isArray(t))return null;let n=(()=>{let e=[],n=1,o={data:t,headerBlocksCount:0,banner:[]};_(o),_(o);let r={},i=e=>{var t,n,a,o;let i=(null==(t=e.data)?void 0:t.text)??(null==(n=e.data)?void 0:n.url)??(null==(a=e.data)?void 0:a.html)??(null!=(o=e.data)&&o.year?String(e.data.year):"");return r[e.type]=(r[e.type]??0)+1,`${e.type}-${String(i).slice(0,80)}-${r[e.type]}`};return t.forEach(t=>{let o=i(t);switch(t.type){case"header":e.push((0,a.jsx)("h2",{id:`content_header_${n}`,role:"header",children:t.data.text||""},o)),n++;break;case"sub_header":e.push((0,a.jsx)("h3",{role:"sub-header",children:t.data.text||""},o));break;case"paragraph":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"paragraph"},o));break;case"link":e.push((0,a.jsx)("div",{className:v.blockLink,children:(0,a.jsx)("a",{target:"_blank",href:t.data.url||"",role:"link",rel:"noreferrer",children:t.data.text||""})},o));break;case"dossier":e.push((0,a.jsxs)("div",{children:[(0,a.jsx)("span",{role:"dossier-year",children:t.data.year||""}),(0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"dossier-text"})]},o));break;case"html":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.html||""},role:"html"},o));break;case"annotation":e.push((0,a.jsx)("div",{className:v.annotation,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"annotation"},o));break;case"company-annotation":e.push((0,a.jsx)("div",{dangerouslySetInnerHTML:{__html:t.data.text||""},role:"company-annotation"},o));break;case"keynote":e.push((0,a.jsx)("div",{className:v.keynoteWrapper,children:(0,a.jsx)("p",{className:v.keynote,dangerouslySetInnerHTML:{__html:t.data.text||""},role:"keynote"})},o));break;case"image":e.push((0,a.jsx)("img",{src:t.data.url||"",alt:"image"},o))}}),e})();return(0,a.jsx)("div",{className:(0,l.Z)(v.contentBlocks,e),role:"blocks",children:n})},h=({question:e,eventCategory:t,dataLayerPush:n,...o})=>(0,a.jsx)(i.Qd,{...o,title:e.question,children:(0,a.jsx)("div",{className:(0,l.Z)(p.accordionItemContent,{[p.accordionActiveItemContent]:o.isActive}),onClick:e=>{e.target instanceof HTMLAnchorElement&&n({event:"data-event",eventCategory:t,eventAction:"click_link",eventLabel:e.target.href})},children:"string"==typeof e.answer?(0,a.jsx)(y,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),f=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},b=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:d,checkAllText:u,Link:_,className:m,eventCategory:v="cb-faq",multiple:y=!1,variant:b="secondary",dataLayerPush:g,tagTitle:x})=>{let k=y?n.map(e=>e.question):[],[w,N]=(0,o.useState)(k),j="gray"===b;return(0,a.jsx)("section",{className:(0,l.Z)(p.faqBlock,p.states[b],m),children:(0,a.jsxs)(r.W2,{children:[!t&&(0,a.jsx)("div",{className:p.titleWrapper,children:(0,a.jsx)(r.X6,{as:"h2",type:"display",className:p.title,children:e})}),(0,a.jsxs)("div",{className:p.accordionWrapper,children:[t&&(0,a.jsx)(r.X6,{as:"h3",type:"h1",style:{paddingBottom:"12px"},className:(0,l.Z)(p.title,`${p.title}--inner`),children:t}),(0,a.jsx)("div",{className:p.accordionItems,children:(0,a.jsx)(i.UQ,{activeIndex:w,variant:j?"primary":"secondary",withoutOutline:j,onTabToggle:e=>{let t=(null==e?void 0:e.length)>(null==w?void 0:w.length),n=e.filter(e=>!w.includes(e))[0]||w.filter(t=>!e.includes(t))[0];g({event:"data-event",eventCategory:v,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,s.t)(String(n))}),N(e);let a=`[data-accordion-index="${n}"]`,o=document.querySelector(a);o&&f(o)},multiple:y,children:n.map(e=>{let t=`faq-${e.question}`;return(0,a.jsx)(h,{id:t,question:e,dataLayerPush:g,eventCategory:v,className:j?p.accordionItemGray:void 0,tagTitle:x},t)})})}),d&&u&&(0,a.jsx)(c.C,{href:d,event:{event:"data-event",eventCategory:v,eventAction:"сlick_link_answer-link",eventLabel:d},dataLayerPush:g,...null!=_?{Link:_}:{},iconGrayBackground:!0,children:u||"Читать все вопросы"})]})]})})}}}]);
//# debugId=1ca2cb7b-1032-56c4-9c17-62093e324a92
