(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2035],{4779:(e,t,o)=>{"use strict";o.d(t,{_:()=>s,y:()=>i});var n,l=o(49684),a=o(26180),i=((n={}).icon="icon",n.chip="chip",n.accordion="accordion",n.button="button",n.checkbox="checkbox",n.radio="radio",n.select="select",n.toggle="toggle",n.tooltip="tooltip",n.link="link",n.banner="banner",n.tag="tag",n.date="date",n.field="field",n.offer="offer",n.tab="tab",n.submit_button="submit_button",n.popup="popup",n.block="block",n);let s=({eventCategory:e,eventActionType:t,eventActionText:o="",eventLabel:n})=>{let i={event:"data-event",eventCategory:e,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_"}[t]+(0,a.y)(o)};void 0!==n&&(i.eventLabel=(0,a.y)("string"==typeof n?n:n.toString())),(0,l.o)(i)}},4810:(e,t,o)=>{"use strict";o.d(t,{L:()=>m});var n=o(95155),l=o(12115),a=o(29722),i=o(48709),s=o(69633),r=o(28799),c=o(19553),p=o.n(c);let _=({footer:e,isSmallPopup:t=!1,footerClassName:o})=>(0,n.jsx)("div",{className:(0,a.A)(p().footer,t&&p().footerWithoutShadow,o),children:"function"==typeof e?e():e});var d=o(44301),u=o.n(d);let b=({children:e,footer:t,isOpen:o,isSmallPopup:r,onClose:c,hasCloseButton:p=!0,full:d,touchDistance:b=100,withDisabledScroll:m=!0,contentClassName:v,className:h,title:f,closeButton:y,footerClassName:g})=>{let[k,x]=(0,l.useState)(!1),[j,N]=(0,l.useState)(!1),[C,w]=(0,l.useState)(!0),[T,L]=(0,l.useState)("120%"),S=(0,l.useRef)(null),A=(0,l.useRef)(0),M=(0,l.useRef)(!1),P=e=>{let t=S.current?.offsetTop,o=S.current?.offsetHeight;if(M.current=!0,w(!1),t&&o){let n=e?.touches[0]?.clientY-t,l=0;n>=0&&n<=o+30&&(l=n),n>o+30&&(l=o+30),L(`${l}px`),A.current=l}},E=()=>{M.current&&(A.current>b&&c?c?.():L("0"),w(!0),M.current=!1),window.removeEventListener("touchmove",P),window.removeEventListener("touchend",E)};(0,l.useEffect)(()=>{o&&setTimeout(()=>{x(!0),N(!0),L("0")},100),!o&&j&&(L("120%"),x(!1),N(!1))},[j,o]),(0,s._)(o&&m);let O=null;return y&&(O="function"==typeof y?y():y),(0,n.jsxs)("div",{"data-portal":!0,className:(0,a.A)(u().mobilePopup,j&&u().mobilePopupOpen,h),children:[(0,n.jsx)(i.i,{onClose:()=>{o&&c?.()},onToucheMove:()=>{o&&(x(!1),window.addEventListener("touchmove",P),window.addEventListener("touchend",E))},isOpen:o,delay:0}),(0,n.jsxs)("div",{className:(0,a.A)(u().content,d&&u().contentFull,C&&u().contentTransition,C&&k&&u().contentTransitionOpen),ref:S,style:{transform:`translateY(${T})`},children:[(0,n.jsx)("div",{className:u().contentLine}),(0,n.jsxs)("div",{className:(0,a.A)(u().contentContainer,r&&u().smallContentContainer,{[u().min]:!f&&!p},v),children:[!!f&&(0,n.jsx)("div",{className:u().title,children:f}),p?(0,n.jsxs)("div",{className:u().closeContainer,children:[O,y?null:(0,n.jsx)("button",{onClick:c,className:u().closeButton,children:(0,n.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,e]}),t&&(0,n.jsx)(_,{footerClassName:g,isSmallPopup:r,footer:t})]})]})},m=({children:e,isSmallPopup:t=!1,isOpen:o=!1,...l})=>{let{mounted:a}=(0,r.J)({opened:o});return a?(0,n.jsx)(b,{isSmallPopup:t,isOpen:o,...l,children:e}):null};m.displayName="UiMobilePopup"},13377:e=>{e.exports={stickySidebar:"NavigatorSidebar_stickySidebar__exotI",container:"NavigatorSidebar_container__g0F_4",mobile:"NavigatorSidebar_mobile__9VhZV",popup:"NavigatorSidebar_popup__dVt3E",popupContent:"NavigatorSidebar_popupContent__3jhbg"}},19553:e=>{e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},26180:(e,t,o)=>{"use strict";o.d(t,{y:()=>l});let n={а:"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 n?n[t]:e}).replaceAll(" ","_").replaceAll("\xa0","_")},27530:(e,t,o)=>{"use strict";o.d(t,{l:()=>n});let n=300},28799:(e,t,o)=>{"use strict";o.d(t,{J:()=>a});var n=o(12115),l=o(27530);let a=({opened:e})=>{let[t,o]=(0,n.useState)(!1),a=(0,n.useRef)(null),i=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e&&!i.current?(i.current=!0,o(!0)):!e&&i.current&&(a.current=setTimeout(()=>{i.current=!1,o(!1)},l.l)),()=>{a.current&&clearTimeout(a.current)}),[e]),{mounted:t}}},36099:(e,t,o)=>{"use strict";o.d(t,{Z:()=>i});var n=o(95155),l=o(12115),a=o(47650);let i=({children:e,id:t="portal-root"})=>{let[o,i]=(0,l.useState)(null);return(0,l.useEffect)(()=>{let e=document?.getElementById(t);if(e)i(e);else{let e=document?.createElement("div");return document?.body.appendChild(e),i(e),()=>{document?.body.removeChild(e)}}},[]),(0,n.jsx)(n.Fragment,{children:o&&(0,a.createPortal)(e,o)})}},44301: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"}},48709:(e,t,o)=>{"use strict";o.d(t,{i:()=>c});var n=o(95155),l=o(12115),a=o(29722),i=o(27530),s=o(78065),r=o.n(s);let c=({onClose:e,onToucheMove:t,isOpen:o,delay:s=i.l})=>{let c=(0,l.useRef)(null),p=(0,l.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},s))},[s,e]),_=(0,l.useCallback)(e=>{"Escape"===e.key&&p()},[p]);return(0,l.useEffect)(()=>(o&&window.addEventListener("keydown",_),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",_)}),[o,_]),(0,n.jsx)("div",{className:(0,a.A)(r().overlay,{[r().open]:o,[r().close]:!o}),onTouchStart:t,onClick:p})}},49684:(e,t,o)=>{"use strict";o.d(t,{F:()=>i,o:()=>a});var n=o(56853);let l=[{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"}],a=(e,t)=>{let o=sessionStorage.getItem("pushedEvents"),l=o?JSON.parse(o):[];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 a=l.find(o=>o.eventCategory===e.eventCategory&&o.eventAction===e.eventAction&&o.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===o.url));if(!t||!a){if(t){let t={...e};t.url=window.location.pathname,l.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(l))}(0,n.Fj)(e)}},i=e=>{l.some(t=>{if(e.includes(t.path)){let o=e.match(/str_(\d+)/),n=o?.[1]?Number(o[1]):1;return setTimeout(()=>{a({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:n})},15e3),!0}return!1})}},57988:(e,t,o)=>{"use strict";o.d(t,{Help:()=>S});var n=o(95155),l=o(59850),a=o(29722),i=o(49684),s=o(98333),r=o.n(s);let c=({data:e,activeTab:t})=>(0,n.jsx)("div",{className:r().wrapper,children:e.map(({name:e,questions:o,slug:s})=>(0,n.jsx)(l.Y,{className:(0,a.A)(r().faqBlock,{[r().active]:t}),innerTitle:e,questions:o,href:`/help/${s}`,checkAllText:t?"":"Читать все вопросы",dataLayerPush:i.o,eventCategory:"help_questions",multiple:!0},s))});var p=o(48830),_=o(66216),d=o(12115),u=o(36099),b=o(4810),m=o(4779),v=o(91565),h=o.n(v);let f=({tabs:e,activeTab:t})=>(0,n.jsx)("div",{className:h().tabs,children:e.map(e=>(0,n.jsx)("a",{href:`/help/${e.anchor}`,className:(0,a.A)(h().tab,{[h().selected]:e.anchor===t}),onClick:()=>{(0,m._)({eventCategory:"help_navigator",eventActionType:m.y.button,eventActionText:e.title,eventLabel:`/help/${e.anchor}`})},children:(0,n.jsx)("div",{className:h().tabTitle,children:e.title})},e.anchor))});var y=o(84685),g=o(91429),k=o.n(g);let x=({openPopup:e})=>(0,n.jsxs)("div",{className:k().titleWrapper,onClick:e,children:[(0,n.jsx)("p",{className:k().title,children:"Навигатор"}),(0,n.jsx)(y.j8g,{size:24,className:k().iconMobile})]});var j=o(13377),N=o.n(j);let C=({tabs:e,activeTab:t})=>{let[o,l]=(0,d.useState)(!1);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("aside",{className:N().stickySidebar,children:(0,n.jsxs)("div",{className:N().container,children:[(0,n.jsx)(x,{}),(0,n.jsx)(f,{tabs:e,activeTab:t})]})}),(0,n.jsxs)("div",{className:(0,a.A)(N().container,N().mobile),children:[(0,n.jsx)(x,{openPopup:()=>{(0,m._)({eventCategory:"help_navigator",eventActionType:m.y.button,eventActionText:"Навигатор"}),l(!0)}}),(0,n.jsx)(u.Z,{children:(0,n.jsx)(b.L,{className:N().popup,contentClassName:N().popupContent,isOpen:o,onClose:()=>l(!1),title:"Навигатор",children:(0,n.jsx)(f,{tabs:e,activeTab:t})})})]})]})};var w=o(59093),T=o.n(w);let L=({breadcrumbs:e,title:t,tabs:o,activeTab:l,children:i})=>(0,n.jsx)("div",{className:T().page,children:(0,n.jsxs)(_.m,{children:[(0,n.jsx)(p.B,{items:e,style:{padding:"16px 0"}}),(0,n.jsx)("h1",{className:(0,a.A)(T().title,{[T().mobileOnly]:l}),children:t}),(0,n.jsxs)("div",{className:T().main,children:[(0,n.jsx)(C,{tabs:o,activeTab:l}),(0,n.jsx)("div",{className:T().contentWrapper,children:(0,n.jsx)("div",{className:T().content,children:i})})]})]})}),S=({data:e,activeTab:t})=>{let o=e.map(e=>({anchor:e.slug,title:e.name})),l=e.filter(({questions:e})=>!!e.length),a=e.find(({slug:e})=>e===t),i=a?.name?[{label:"Помощь",href:"/help"},{label:a.name}]:[{label:"Помощь"}];return(0,n.jsx)(L,{breadcrumbs:[{href:"/",label:"Главная"},...i],title:a?.name||"Помощь",tabs:o,activeTab:t,children:(0,n.jsx)(c,{data:l,activeTab:t})})}},59093: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"}},69633:(e,t,o)=>{"use strict";o.d(t,{_:()=>l});var n=o(12115);let l=e=>{let t=(0,n.useRef)(null);return(0,n.useEffect)(()=>{let o=t.current;if(e){let e=window.scrollY||window.pageYOffset;document.body.dataset.scrollY=String(e),document.body.style.overflow="hidden",o&&o.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}o&&o.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}},78065: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"}},91429:e=>{e.exports={title:"NavigatorTopTitle_title__sql3k",titleWrapper:"NavigatorTopTitle_titleWrapper__dQM9Q",iconMobile:"NavigatorTopTitle_iconMobile__eIgjy"}},91565:e=>{e.exports={tabs:"NavigatorTabsList_tabs__4TgGW",tab:"NavigatorTabsList_tab___GUnJ",tabTitle:"NavigatorTabsList_tabTitle__iqNJB",selected:"NavigatorTabsList_selected__rtndM"}},92035:(e,t,o)=>{Promise.resolve().then(o.bind(o,26159)),Promise.resolve().then(o.bind(o,57988))},98333:e=>{e.exports={wrapper:"HelpFaqList_wrapper__11TTm",faqBlock:"HelpFaqList_faqBlock__K796a",active:"HelpFaqList_active__Fj9y8"}}}]);