(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4505],{7493:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});let o=300},6153:function(e,t,n){"use strict";n.d(t,{L:function(){return u}});var o=n(7437),r=n(4365),s=n(2265),l=n(7493),a=n(8582),i=n.n(a);let u=e=>{let{onClose:t,onToucheMove:n,isOpen:a,delay:u=l.z}=e,c=(0,s.useRef)(null),_=(0,s.useCallback)(()=>{t&&(c.current=setTimeout(()=>{t()},u))},[u,t]),d=(0,s.useCallback)(e=>{"Escape"===e.key&&_()},[_]);return(0,s.useEffect)(()=>(a&&window.addEventListener("keydown",d),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",d)}),[a,d]),(0,o.jsx)("div",{className:(0,r.Z)(i().overlay,{[i().open]:a,[i().close]:!a}),onTouchStart:n,onClick:_})}},9689:function(e,t,n){"use strict";n.d(t,{j:function(){return m}});var o=n(7437),r=n(4365),s=n(2265),l=n(6153),a=n(7033),i=n(7752),u=n(3582),c=n.n(u);let _=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:s}=e;return(0,o.jsx)("div",{className:(0,r.Z)(c().footer,n&&c().footerWithoutShadow,s),children:"function"==typeof t?t():t})};var d=n(6565),p=n.n(d);let f=e=>{let{children:t,footer:n,isOpen:i,isSmallPopup:u,onClose:c,hasCloseButton:d=!0,full:f,touchDistance:m=100,withDisabledScroll:v=!0,contentClassName:y,className:C,title:h,closeButton:b,footerClassName:w}=e,[k,L]=(0,s.useState)(!1),[g,S]=(0,s.useState)(!1),[G,x]=(0,s.useState)(!0),[P,E]=(0,s.useState)("120%"),M=(0,s.useRef)(null),T=(0,s.useRef)(0),j=(0,s.useRef)(!1),N=e=>{var t,n,o;let r=null===(t=M.current)||void 0===t?void 0:t.offsetTop,s=null===(n=M.current)||void 0===n?void 0:n.offsetHeight;if(j.current=!0,x(!1),r&&s){let t=(null==e?void 0:null===(o=e.touches[0])||void 0===o?void 0:o.clientY)-r,n=0;t>=0&&t<=s+30&&(n=t),t>s+30&&(n=s+30),E("".concat(n,"px")),T.current=n}},A=()=>{j.current&&(T.current>m&&c?null==c||c():E("0"),x(!0),j.current=!1),window.removeEventListener("touchmove",N),window.removeEventListener("touchend",A)};return(0,s.useEffect)(()=>{i&&setTimeout(()=>{L(!0),S(!0),E("0")},100),!i&&g&&(E("120%"),L(!1),S(!1))},[g,i]),(0,a.o)(i&&v),(0,o.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(p().mobilePopup,g&&p().mobilePopupOpen,C),children:[(0,o.jsx)(l.L,{onClose:()=>{i&&(null==c||c())},onToucheMove:()=>{i&&(L(!1),window.addEventListener("touchmove",N),window.addEventListener("touchend",A))},isOpen:i,delay:0}),(0,o.jsxs)("div",{className:(0,r.Z)(p().content,f&&p().contentFull,G&&p().contentTransition,G&&k&&p().contentTransitionOpen),ref:M,style:{transform:"translateY(".concat(P,")")},children:[(0,o.jsx)("div",{className:p().contentLine}),(0,o.jsxs)("div",{className:(0,r.Z)(p().contentContainer,u&&p().smallContentContainer,{[p().min]:!h&&!d},y),children:[!!h&&(0,o.jsx)("div",{className:p().title,children:h}),d?(0,o.jsxs)("div",{className:p().closeContainer,children:[b?"function"==typeof b?b():b:null,b?null:(0,o.jsx)("button",{onClick:c,className:p().closeButton,children:(0,o.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,t]}),n&&(0,o.jsx)(_,{footerClassName:w,isSmallPopup:u,footer:n})]})]})},m=e=>{let{children:t,isSmallPopup:n=!1,isOpen:r=!1,...s}=e,{mounted:l}=(0,i.b)({opened:r});return l?(0,o.jsx)(f,{isSmallPopup:n,isOpen:r,...s,children:t}):null};m.displayName="UiMobilePopup"},7033:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var o=n(2265);let r=e=>{let t=(0,o.useRef)(null);return(0,o.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}},7752:function(e,t,n){"use strict";n.d(t,{b:function(){return s}});var o=n(2265),r=n(7493);let s=e=>{let{opened:t}=e,[n,s]=(0,o.useState)(!1),l=(0,o.useRef)(null),a=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(t&&!a.current?(a.current=!0,s(!0)):!t&&a.current&&(l.current=setTimeout(()=>{a.current=!1,s(!1)},r.z)),()=>{l.current&&clearTimeout(l.current)}),[t]),{mounted:n}}},4100:function(e,t,n){"use strict";n.d(t,{A:function(){return _},W:function(){return c}});var o=n(7437),r=n(5461),s=n(4365),l=n(2265),a=n(5196),i=n.n(a);let u=()=>{let[e,t]=(0,l.useState)(!1);return(0,l.useCallback)(()=>t(e=>!e),[e,t])},c=e=>{let t=u();return[new URLSearchParams(window.location.search).get(e)||null,n=>{let o=new URLSearchParams(window.location.search);n?o.set(e,n):o.delete(e),window.history.pushState({},"",window.location.pathname+"?"+o.toString()),t()}]},_=e=>{let{options:t,value:n,onChange:a,...u}=e,[c,_]=(0,l.useState)();(0,l.useEffect)(()=>{_(t.find(e=>e.id===n))},[n,t]);let d=(0,l.useCallback)(e=>{e&&a(e)},[a]);return(0,o.jsx)(r.cL,{size:"l",chips:t,value:null==c?void 0:c.label,onChipClick:d,className:(0,s.Z)(u.className,i().chips)})}},7731:function(e,t,n){"use strict";n.d(t,{S:function(){return s},j:function(){return r}});let o=null,r=e=>{o=e};function s(){if(!o)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что EnvProvider обернут вокруг вашего приложения");return o}},9487:function(e,t,n){"use strict";n.d(t,{l:function(){return s},y:function(){return l}});var o=n(631);let r=[{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"}],s=(e,t)=>{let n=sessionStorage.getItem("pushedEvents"),r=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 s=r.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||!s){if(t){let t={...e};t.url=window.location.pathname,r.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(r))}(0,o.AB)(e)}},l=e=>{r.some(t=>{if(e.includes(t.path)){let n=e.match(/str_(\d+)/),o=(null==n?void 0:n[1])?Number(n[1]):1;return setTimeout(()=>{s({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:o})},15e3),!0}return!1})}},8582: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"}},6565: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"}},3582:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},5196:function(e){e.exports={title:"GlossaryContent_title__kiX59",letter:"GlossaryContent_letter__Bj5A8",text:"GlossaryContent_text__kmQLt",popupTitle:"GlossaryContent_popupTitle__Cbw7E",terms:"GlossaryContent_terms__HT5zD",wrapper:"GlossaryContent_wrapper__p9SmS",filter:"GlossaryContent_filter__0StqI",tags:"GlossaryContent_tags__6ZXld",letterBlock:"GlossaryContent_letterBlock__biGAy",termsColumns:"GlossaryContent_termsColumns__Bopxr",two:"GlossaryContent_two__qDELl",one:"GlossaryContent_one__hoV9T",term:"GlossaryContent_term__kM9pd",lettersList:"GlossaryContent_lettersList__f_Xig",letterItem:"GlossaryContent_letterItem__U7YVq",arrowIcon:"GlossaryContent_arrowIcon__fmxkV",popup:"GlossaryContent_popup__GKz6P",popupContent:"GlossaryContent_popupContent__L2WWl",termsList:"GlossaryContent_termsList__UMZAU",termItem:"GlossaryContent_termItem__mPF94",chips:"GlossaryContent_chips__vS3eL"}}}]);