(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5038],{25038:function(e,t,n){Promise.resolve().then(n.bind(n,82778)),Promise.resolve().then(n.bind(n,96458))},77493:function(e,t,n){"use strict";n.d(t,{z:function(){return a}});let a=300},66153:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var a=n(57437),o=n(2265),r=n(54365),i=n(77493),l=n(78582),c=n.n(l);let s=e=>{let{onClose:t,onToucheMove:n,isOpen:l,delay:s=i.z}=e,u=(0,o.useRef)(null),d=(0,o.useCallback)(()=>{t&&(u.current=setTimeout(()=>{t()},s))},[s,t]),p=(0,o.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,o.useEffect)(()=>(l&&window.addEventListener("keydown",p),()=>{u.current&&clearTimeout(u.current),window.removeEventListener("keydown",p)}),[l,p]),(0,a.jsx)("div",{className:(0,r.Z)(c().overlay,{[c().open]:l,[c().close]:!l}),onTouchStart:n,onClick:d})}},49689:function(e,t,n){"use strict";n.d(t,{j:function(){return m}});var a=n(57437),o=n(2265),r=n(54365),i=n(66153),l=n(27033),c=n(87752),s=n(53582),u=n.n(s);let d=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:o}=e;return(0,a.jsx)("div",{className:(0,r.Z)(u().footer,n&&u().footerWithoutShadow,o),children:"function"==typeof t?t():t})};var p=n(16565),_=n.n(p);let h=e=>{let{children:t,footer:n,isOpen:c,isSmallPopup:s,onClose:u,hasCloseButton:p=!0,full:h,touchDistance:m=100,withDisabledScroll:v=!0,contentClassName:f,className:b,title:y,closeButton:g,footerClassName:k}=e,[x,w]=(0,o.useState)(!1),[j,C]=(0,o.useState)(!1),[N,L]=(0,o.useState)(!0),[T,S]=(0,o.useState)("120%"),A=(0,o.useRef)(null),M=(0,o.useRef)(0),$=(0,o.useRef)(!1),O=e=>{var t,n,a;let o=null===(t=A.current)||void 0===t?void 0:t.offsetTop,r=null===(n=A.current)||void 0===n?void 0:n.offsetHeight;if($.current=!0,L(!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")),M.current=n}},P=()=>{$.current&&(M.current>m&&u?null==u||u():S("0"),L(!0),$.current=!1),window.removeEventListener("touchmove",O),window.removeEventListener("touchend",P)};(0,o.useEffect)(()=>{c&&setTimeout(()=>{w(!0),C(!0),S("0")},100),!c&&j&&(S("120%"),w(!1),C(!1))},[j,c]),(0,l.o)(c&&v);let E=null;return g&&(E="function"==typeof g?g():g),(0,a.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(_().mobilePopup,j&&_().mobilePopupOpen,b),children:[(0,a.jsx)(i.L,{onClose:()=>{c&&(null==u||u())},onToucheMove:()=>{c&&(w(!1),window.addEventListener("touchmove",O),window.addEventListener("touchend",P))},isOpen:c,delay:0}),(0,a.jsxs)("div",{className:(0,r.Z)(_().content,h&&_().contentFull,N&&_().contentTransition,N&&x&&_().contentTransitionOpen),ref:A,style:{transform:"translateY(".concat(T,")")},children:[(0,a.jsx)("div",{className:_().contentLine}),(0,a.jsxs)("div",{className:(0,r.Z)(_().contentContainer,s&&_().smallContentContainer,{[_().min]:!y&&!p},f),children:[!!y&&(0,a.jsx)("div",{className:_().title,children:y}),p?(0,a.jsxs)("div",{className:_().closeContainer,children:[E,g?null:(0,a.jsx)("button",{onClick:u,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)(d,{footerClassName:k,isSmallPopup:s,footer:n})]})]})},m=e=>{let{children:t,isSmallPopup:n=!1,isOpen:o=!1,...r}=e,{mounted:i}=(0,c.b)({opened:o});return i?(0,a.jsx)(h,{isSmallPopup:n,isOpen:o,...r,children:t}):null};m.displayName="UiMobilePopup"},13466: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)})}},27033: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}},87752:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var a=n(2265),o=n(77493);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}}},96458:function(e,t,n){"use strict";n.r(t),n.d(t,{Help:function(){return S}});var a=n(57437),o=n(59226),r=n(54365),i=n(89487),l=n(58603),c=n.n(l);let s=e=>{let{data:t,activeTab:n}=e;return(0,a.jsx)("div",{className:c().wrapper,children:t.map(e=>{let{name:t,questions:l,slug:s}=e;return(0,a.jsx)(o.C,{className:(0,r.Z)(c().faqBlock,{[c().active]:n}),innerTitle:t,questions:l,href:"/help/".concat(s),checkAllText:n?"":"Читать все вопросы",dataLayerPush:i.l,eventCategory:"help_questions",multiple:!0},s)})})};var u=n(35563),d=n(75461),p=n(2265),_=n(13466),h=n(49689),m=n(49202),v=n(1215),f=n.n(v);let b=e=>{let{tabs:t,activeTab:n}=e;return(0,a.jsx)("div",{className:f().tabs,children:t.map(e=>(0,a.jsx)("a",{href:"/help/".concat(e.anchor),className:(0,r.Z)(f().tab,{[f().selected]:e.anchor===n}),onClick:()=>{(0,m.D)({eventCategory:"help_navigator",eventActionType:m.i.button,eventActionText:e.title,eventLabel:"/help/".concat(e.anchor)})},children:(0,a.jsx)("div",{className:f().tabTitle,children:e.title})},e.anchor))})};var y=n(80684),g=n(57527),k=n.n(g);let x=e=>{let{openPopup:t}=e;return(0,a.jsxs)("div",{className:k().titleWrapper,onClick:t,children:[(0,a.jsx)("p",{className:k().title,children:"Навигатор"}),(0,a.jsx)(y.IconFdsChevronDownO,{size:24,className:k().iconMobile})]})};var w=n(1791),j=n.n(w);let C=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:j().stickySidebar,children:(0,a.jsxs)("div",{className:j().container,children:[(0,a.jsx)(x,{}),(0,a.jsx)(b,{tabs:t,activeTab:n})]})}),(0,a.jsxs)("div",{className:(0,r.Z)(j().container,j().mobile),children:[(0,a.jsx)(x,{openPopup:()=>{(0,m.D)({eventCategory:"help_navigator",eventActionType:m.i.button,eventActionText:"Навигатор"}),i(!0)}}),(0,a.jsx)(_.h,{children:(0,a.jsx)(h.j,{className:j().popup,contentClassName:j().popupContent,isOpen:o,onClose:()=>i(!1),title:"Навигатор",children:(0,a.jsx)(b,{tabs:t,activeTab:n})})})]})]})};var N=n(82986),L=n.n(N);let T=e=>{let{breadcrumbs:t,title:n,tabs:o,activeTab:i,children:l}=e;return(0,a.jsx)("div",{className:L().page,children:(0,a.jsxs)(u.W2,{children:[(0,a.jsx)(d.Oo,{items:t,style:{padding:"16px 0"}}),(0,a.jsx)("h1",{className:(0,r.Z)(L().title,{[L().mobileOnly]:i}),children:n}),(0,a.jsxs)("div",{className:L().main,children:[(0,a.jsx)(C,{tabs:o,activeTab:i}),(0,a.jsx)("div",{className:L().contentWrapper,children:(0,a.jsx)("div",{className:L().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,children:(0,a.jsx)(s,{data:r,activeTab:n})})}},49202:function(e,t,n){"use strict";n.d(t,{i:function(){return o},D:function(){return c}});var a,o,r=n(89487);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 c=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)}},89487:function(e,t,n){"use strict";n.d(t,{l:function(){return r},y:function(){return i}});var a=n(30631);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})}},78582: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"}},16565: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"}},53582:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},58603:function(e){e.exports={wrapper:"HelpFaqList_wrapper__11TTm",faqBlock:"HelpFaqList_faqBlock__K796a",active:"HelpFaqList_active__Fj9y8"}},82986: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"}},1791: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"}},1215:function(e){e.exports={tabs:"NavigatorTabsList_tabs__4TgGW",tab:"NavigatorTabsList_tab___GUnJ",tabTitle:"NavigatorTabsList_tabTitle__iqNJB",selected:"NavigatorTabsList_selected__rtndM"}},57527:function(e){e.exports={title:"NavigatorTopTitle_title__sql3k",titleWrapper:"NavigatorTopTitle_titleWrapper__dQM9Q",iconMobile:"NavigatorTopTitle_iconMobile__eIgjy"}},30631: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}})},10855:function(e,t,n){"use strict";n.d(t,{C:function(){return s}});var a=n(57437),o=n(80684),r=n(75461),i=n(54365);let l=(0,n(52074).g)("check-all","sc"),c=Object.freeze({wrapper:`${l}__wrapper`,link:`${l}__link`,icon:`${l}__icon`,iconGray:`${l}__icon--gray`}),s=({children:e,className:t,linkClassName:n,iconGrayBackground:l,Link:s,event:u,href:d,dataLayerPush:p})=>{let _=s??r.rU;return(0,a.jsx)("div",{className:(0,i.Z)(c.wrapper,t),onClick:()=>{u&&p(u)},children:(0,a.jsxs)(_,{className:(0,i.Z)(c.link,n),href:d,children:[e,(0,a.jsx)("span",{className:(0,i.Z)(c.icon,{[c.iconGray]:l}),children:(0,a.jsx)(o.IconFdsArrowUpRightSmallO,{size:24})})]})})}},82778:function(e,t,n){"use strict";n.d(t,{L:function(){return c},g:function(){return l}});var a=n(2265),o=n(30631);let r=null,i=e=>{r=e},l=()=>r,c=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}},52074:function(e,t,n){"use strict";function a(e,t){return`finkit-widgets-${t}-${e}`}n.d(t,{g:function(){return a}})},31620: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,"_")},59226:function(e,t,n){"use strict";n.d(t,{C:function(){return y}});var a=n(57437),o=n(2265),r=n(35563),i=n(75461),l=n(54365),c=n(31620),s=n(10855),u=n(52074);let d=(0,u.g)("faq-block","sc"),p=Object.freeze({faqBlock:d,titleWrapper:`${d}__title-wrapper`,title:`${d}__title`,accordionWrapper:`${d}__accordion-wrapper`,accordionItems:`${d}__accordion-items`,accordionItemGray:`${d}__accordion-item--gray`,accordionItemContent:`${d}__accordion-item-content`,accordionActiveItemContent:`${d}__accordion-item-content--active`,states:{primary:`${d}--primary`,secondary:`${d}--secondary`,gray:`${d}--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]))})},h=(0,u.g)("faq-content-block","sc"),m=Object.freeze({contentBlocks:`${h}__content-blocks`,blockLink:`${h}__block-link`,keynoteWrapper:`${h}__keynote-wrapper`,keynote:`${h}__keynote`,annotation:`${h}__annotation`,contentTableWrapper:`${h}__content-table-wrapper`}),v=({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:m.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:m.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:m.keynoteWrapper,children:(0,a.jsx)("p",{className:m.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)(m.contentBlocks,e),role:"blocks",children:n})},f=({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)(v,{data:[{type:"html",data:{html:e.answer}}]}):e.answer})}),b=e=>{setTimeout(()=>{let{top:t}=e.getBoundingClientRect();t<80&&e.scrollIntoView({behavior:"smooth",block:"start"})},300)},y=({sectionTitle:e="Частые вопросы",innerTitle:t,questions:n=[],href:u,checkAllText:d,Link:_,className:h,eventCategory:m="cb-faq",multiple:v=!1,variant:y="secondary",dataLayerPush:g,tagTitle:k})=>{let x=v?n.map(e=>e.question):[],[w,j]=(0,o.useState)(x),C="gray"===y;return(0,a.jsx)("section",{className:(0,l.Z)(p.faqBlock,p.states[y],h),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:C?"primary":"secondary",withoutOutline:C,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:m,eventAction:`click_togg_${t?"on":"off"}`,eventLabel:(0,c.t)(String(n))}),j(e);let a=`[data-accordion-index="${n}"]`,o=document.querySelector(a);o&&b(o)},multiple:v,children:n.map(e=>{let t=`faq-${e.question}`;return(0,a.jsx)(f,{id:t,question:e,dataLayerPush:g,eventCategory:m,className:C?p.accordionItemGray:void 0,tagTitle:k},t)})})}),u&&d&&(0,a.jsx)(s.C,{href:u,event:{event:"data-event",eventCategory:m,eventAction:"сlick_link_answer-link",eventLabel:u},dataLayerPush:g,...null!=_?{Link:_}:{},iconGrayBackground:!0,children:d||"Читать все вопросы"})]})]})})}}}]);