(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3670],{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),l=n(2265),s=n(7493),a=n(8582),i=n.n(a);let u=e=>{let{onClose:t,onToucheMove:n,isOpen:a,delay:u=s.z}=e,c=(0,l.useRef)(null),d=(0,l.useCallback)(()=>{t&&(c.current=setTimeout(()=>{t()},u))},[u,t]),_=(0,l.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,l.useEffect)(()=>(a&&window.addEventListener("keydown",_),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",_)}),[a,_]),(0,o.jsx)("div",{className:(0,r.Z)(i().overlay,{[i().open]:a,[i().close]:!a}),onTouchStart:n,onClick:d})}},9689:function(e,t,n){"use strict";n.d(t,{j:function(){return f}});var o=n(7437),r=n(4365),l=n(2265),s=n(6153),a=n(7033),i=n(7752),u=n(3582),c=n.n(u);let d=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:l}=e;return(0,o.jsx)("div",{className:(0,r.Z)(c().footer,n&&c().footerWithoutShadow,l),children:"function"==typeof t?t():t})};var _=n(6565),p=n.n(_);let m=e=>{let{children:t,footer:n,isOpen:i,isSmallPopup:u,onClose:c,hasCloseButton:_=!0,full:m,touchDistance:f=100,withDisabledScroll:v=!0,contentClassName:y,className:h,title:w,closeButton:C,footerClassName:b}=e,[g,L]=(0,l.useState)(!1),[k,x]=(0,l.useState)(!1),[S,G]=(0,l.useState)(!0),[E,P]=(0,l.useState)("120%"),M=(0,l.useRef)(null),T=(0,l.useRef)(0),j=(0,l.useRef)(!1),N=e=>{var t,n,o;let r=null===(t=M.current)||void 0===t?void 0:t.offsetTop,l=null===(n=M.current)||void 0===n?void 0:n.offsetHeight;if(j.current=!0,G(!1),r&&l){let t=(null==e?void 0:null===(o=e.touches[0])||void 0===o?void 0:o.clientY)-r,n=0;t>=0&&t<=l+30&&(n=t),t>l+30&&(n=l+30),P("".concat(n,"px")),T.current=n}},A=()=>{j.current&&(T.current>f&&c?null==c||c():P("0"),G(!0),j.current=!1),window.removeEventListener("touchmove",N),window.removeEventListener("touchend",A)};return(0,l.useEffect)(()=>{i&&setTimeout(()=>{L(!0),x(!0),P("0")},100),!i&&k&&(P("120%"),L(!1),x(!1))},[k,i]),(0,a.o)(i&&v),(0,o.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(p().mobilePopup,k&&p().mobilePopupOpen,h),children:[(0,o.jsx)(s.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,m&&p().contentFull,S&&p().contentTransition,S&&g&&p().contentTransitionOpen),ref:M,style:{transform:"translateY(".concat(E,")")},children:[(0,o.jsx)("div",{className:p().contentLine}),(0,o.jsxs)("div",{className:(0,r.Z)(p().contentContainer,u&&p().smallContentContainer,{[p().min]:!w&&!_},y),children:[!!w&&(0,o.jsx)("div",{className:p().title,children:w}),_?(0,o.jsxs)("div",{className:p().closeContainer,children:[C?"function"==typeof C?C():C:null,C?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)(d,{footerClassName:b,isSmallPopup:u,footer:n})]})]})},f=e=>{let{children:t,isSmallPopup:n=!1,isOpen:r=!1,...l}=e,{mounted:s}=(0,i.b)({opened:r});return s?(0,o.jsx)(m,{isSmallPopup:n,isOpen:r,...l,children:t}):null};f.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}},2373:function(e,t,n){"use strict";n.d(t,{G:function(){return l}});var o=n(2265);let r={xl:"screen and (max-width: 1440px)",lg:"screen and (max-width: 1200px)",l:"screen and (max-width: 1024px)",md:"screen and (max-width: 900px)",sm:"screen and (max-width: 600px)"},l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lg",t=(0,o.useRef)(null),[n,l]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{var n,o;!t.current&&window&&(t.current=null===(o=window)||void 0===o?void 0:o.matchMedia(r[e]||e));let s=()=>{l(!!t.current&&t.current.matches)};return s(),null===(n=t.current)||void 0===n||n.addEventListener("change",s),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("change",s)}},[e]),n}},7752:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var o=n(2265),r=n(7493);let l=e=>{let{opened:t}=e,[n,l]=(0,o.useState)(!1),s=(0,o.useRef)(null),a=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(t&&!a.current?(a.current=!0,l(!0)):!t&&a.current&&(s.current=setTimeout(()=>{a.current=!1,l(!1)},r.z)),()=>{s.current&&clearTimeout(s.current)}),[t]),{mounted:n}}},4100:function(e,t,n){"use strict";n.d(t,{A:function(){return d},W:function(){return c}});var o=n(7437),r=n(5461),l=n(4365),s=n(2265),a=n(5196),i=n.n(a);let u=()=>{let[e,t]=(0,s.useState)(!1);return(0,s.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()}]},d=e=>{let{options:t,value:n,onChange:a,...u}=e,[c,d]=(0,s.useState)();(0,s.useEffect)(()=>{d(t.find(e=>e.id===n))},[n,t]);let _=(0,s.useCallback)(e=>{e&&a(e)},[a]);return(0,o.jsx)(r.cL,{size:"l",chips:t,value:null==c?void 0:c.label,onChipClick:_,className:(0,l.Z)(u.className,i().chips)})}},7731:function(e,t,n){"use strict";n.d(t,{S:function(){return l},j:function(){return r}});let o=null,r=e=>{o=e};function l(){if(!o)throw Error("getEnvValue() вызвана на клиенте до инициализации контекста. Убедитесь, что EnvProvider обернут вокруг вашего приложения");return o}},9487:function(e,t,n){"use strict";n.d(t,{l:function(){return l},y:function(){return s}});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"}],l=(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 l=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||!l){if(t){let t={...e};t.url=window.location.pathname,r.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(r))}(0,o.AB)(e)}},s=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(()=>{l({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"}}}]);