(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9488],{3145:function(e,t,n){"use strict";n.d(t,{default:function(){return r.a}});var o=n(8461),r=n.n(o)},8461:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},getImageProps:function(){return c}});let o=n(7043),r=n(5346),l=n(5878),i=o._(n(5084));function c(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let a=l.Image},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 s}});var o=n(7437),r=n(4365),l=n(2265),i=n(7493),c=n(8582),a=n.n(c);let s=e=>{let{onClose:t,onToucheMove:n,isOpen:c,delay:s=i.z}=e,u=(0,l.useRef)(null),d=(0,l.useCallback)(()=>{t&&(u.current=setTimeout(()=>{t()},s))},[s,t]),_=(0,l.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,l.useEffect)(()=>(c&&window.addEventListener("keydown",_),()=>{u.current&&clearTimeout(u.current),window.removeEventListener("keydown",_)}),[c,_]),(0,o.jsx)("div",{className:(0,r.Z)(a().overlay,{[a().open]:c,[a().close]:!c}),onTouchStart:n,onClick:d})}},3120:function(e,t,n){"use strict";n.d(t,{d:function(){return w}});var o=n(7437),r=n(7752),l=n(4365),i=n(2265),c=n(6153),a=n(1380),s=n.n(a);let u=e=>{let{footer:t,hasScroll:n,className:r}=e;return(0,o.jsx)("div",{className:(0,l.Z)(s().footer,{[s().hasScroll]:n},r),children:"function"==typeof t?t():t})};var d=n(7200),_=n.n(d);let f=e=>{let{onClose:t,onContentClick:n,children:r,title:c,rowTitle:a,titleAlign:s,isCloseable:d,footer:f,closeButton:p,isOpen:v,contentClassName:m,footerClassName:h,contentStyle:w,width:g}=e,b=(0,i.useRef)(null),k=(0,i.useRef)(null),[y,C]=(0,i.useState)(!1);(0,i.useEffect)(()=>{var e;if(!k.current||!b.current)return;let t=(null==k?void 0:null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect().top)||0,n=null==b?void 0:b.current,o=()=>{let e=null==k?void 0:k.current;e&&C(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let x=w||g?{width:g,...w||{}}:void 0;return(0,o.jsxs)("div",{ref:b,style:x,className:(0,l.Z)(_().container,{[_().open]:v,[_().close]:!v},m),children:[c||d?(0,o.jsxs)("div",{className:(0,l.Z)(_().header,{[_().rowHeader]:a}),children:[d&&!p?(0,o.jsx)("button",{className:_().controlContainer,onClick:t,children:(0,o.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null,d&&p?"function"==typeof p?p():p:null,c?(0,o.jsx)("h3",{className:(0,l.Z)(_().title,{[_().center]:"center"===s,[_().left]:"left"===s,[_().right]:"right"===s}),children:c}):null]}):null,(0,o.jsx)("div",{ref:k,className:_().content,onClick:n,children:r}),f&&(0,o.jsx)(u,{className:(0,l.Z)(_().footer,h),footer:f,hasScroll:y})]})};var p=n(7033),v=n(1753),m=n.n(v);let h=e=>{let{onClose:t,isOpen:n,children:r,withDisabledScroll:a,className:s,...u}=e,d=(0,i.useCallback)(e=>e.stopPropagation(),[]);return(0,p.o)(n&&a),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(m().window,s),children:[(0,o.jsx)(c.L,{onClose:t,isOpen:n,delay:0}),(0,o.jsx)(f,{onContentClick:d,onClose:t,isOpen:n,...u,children:r})]})},w=e=>{let{isOpen:t=!1,children:n,titleAlign:l="center",isCloseable:i=!0,withDisabledScroll:c=!0,...a}=e,{mounted:s}=(0,r.b)({opened:t});return s?(0,o.jsx)(h,{titleAlign:l,isCloseable:i,isOpen:t,withDisabledScroll:c,...a,children:n}):null};w.displayName="Drawer"},9689:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});var o=n(7437),r=n(4365),l=n(2265),i=n(6153),c=n(7033),a=n(7752),s=n(3582),u=n.n(s);let d=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:l}=e;return(0,o.jsx)("div",{className:(0,r.Z)(u().footer,n&&u().footerWithoutShadow,l),children:"function"==typeof t?t():t})};var _=n(6565),f=n.n(_);let p=e=>{let{children:t,footer:n,isOpen:a,isSmallPopup:s,onClose:u,hasCloseButton:_=!0,full:p,touchDistance:v=100,withDisabledScroll:m=!0,contentClassName:h,className:w,title:g,closeButton:b,footerClassName:k}=e,[y,C]=(0,l.useState)(!1),[x,L]=(0,l.useState)(!1),[j,S]=(0,l.useState)(!0),[M,E]=(0,l.useState)("120%"),N=(0,l.useRef)(null),A=(0,l.useRef)(0),P=(0,l.useRef)(!1),D=e=>{var t,n,o;let r=null===(t=N.current)||void 0===t?void 0:t.offsetTop,l=null===(n=N.current)||void 0===n?void 0:n.offsetHeight;if(P.current=!0,S(!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),E("".concat(n,"px")),A.current=n}},T=()=>{P.current&&(A.current>v&&u?null==u||u():E("0"),S(!0),P.current=!1),window.removeEventListener("touchmove",D),window.removeEventListener("touchend",T)};return(0,l.useEffect)(()=>{a&&setTimeout(()=>{C(!0),L(!0),E("0")},100),!a&&x&&(E("120%"),C(!1),L(!1))},[x,a]),(0,c.o)(a&&m),(0,o.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(f().mobilePopup,x&&f().mobilePopupOpen,w),children:[(0,o.jsx)(i.L,{onClose:()=>{a&&(null==u||u())},onToucheMove:()=>{a&&(C(!1),window.addEventListener("touchmove",D),window.addEventListener("touchend",T))},isOpen:a,delay:0}),(0,o.jsxs)("div",{className:(0,r.Z)(f().content,p&&f().contentFull,j&&f().contentTransition,j&&y&&f().contentTransitionOpen),ref:N,style:{transform:"translateY(".concat(M,")")},children:[(0,o.jsx)("div",{className:f().contentLine}),(0,o.jsxs)("div",{className:(0,r.Z)(f().contentContainer,s&&f().smallContentContainer,{[f().min]:!g&&!_},h),children:[!!g&&(0,o.jsx)("div",{className:f().title,children:g}),_?(0,o.jsxs)("div",{className:f().closeContainer,children:[b?"function"==typeof b?b():b:null,b?null:(0,o.jsx)("button",{onClick:u,className:f().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:k,isSmallPopup:s,footer:n})]})]})},v=e=>{let{children:t,isSmallPopup:n=!1,isOpen:r=!1,...l}=e,{mounted:i}=(0,a.b)({opened:r});return i?(0,o.jsx)(p,{isSmallPopup:n,isOpen:r,...l,children:t}):null};v.displayName="UiMobilePopup"},4197:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var o=n(7437),r=n(684),l=n(4365),i=n(2265),c=n(9202),a=n(1900),s=n.n(a);let u=(0,i.memo)(e=>{let{onClick:t,text:n,href:a,target:u,iconColor:d="light",mainPageUrl:_,offPadding:f,widthMaxContent:p,className:v,icon:m}=e,h=(0,i.useCallback)(e=>a?(0,o.jsx)("a",{onClick:e.onClick,href:a,target:u,...e}):(0,o.jsx)("button",{onClick:e.onClick,...e}),[a,u]),w=m||r.IconFdsArrowUpRightSmallO;return(0,o.jsx)("div",{className:(0,l.Z)(s().linkWrapper,{[s().padding]:!f,[s().width]:p},v),onClick:()=>{(0,c.D)({eventCategory:_,eventActionType:c.i.link,eventActionText:n,eventLabel:a})},children:(0,o.jsxs)(h,{onClick:t,className:s().link,children:[n,(0,o.jsx)(w,{size:22,className:(0,l.Z)(s().icon,s()[d])})]})})});u.displayName="CheckFullInfoLink"},3466:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var o=n(7437),r=n(2265),l=n(4887);let i=e=>{let{children:t,id:n="portal-root"}=e,[i,c]=(0,r.useState)(null);return(0,r.useEffect)(()=>{var e,t,o;let r=null===(e=document)||void 0===e?void 0:e.getElementById(n);if(r)c(r);else{let e=null===(t=document)||void 0===t?void 0:t.createElement("div");return null===(o=document)||void 0===o||o.body.appendChild(e),c(e),()=>{var t;null===(t=document)||void 0===t||t.body.removeChild(e)}}},[]),(0,o.jsx)(o.Fragment,{children:i&&(0,l.createPortal)(t,i)})}},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 i=()=>{l(!!t.current&&t.current.matches)};return i(),null===(n=t.current)||void 0===n||n.addEventListener("change",i),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("change",i)}},[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),i=(0,o.useRef)(null),c=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(t&&!c.current?(c.current=!0,l(!0)):!t&&c.current&&(i.current=setTimeout(()=>{c.current=!1,l(!1)},r.z)),()=>{i.current&&clearTimeout(i.current)}),[t]),{mounted:n}}},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}},1938:function(e,t,n){"use strict";n.d(t,{p6:function(){return l}}),n(5563);var o=n(44),r=n(6532);function l(e,t){let{format:n="dd.MM.yyyy"}=null!=t?t:{};try{let t="string"==typeof e?new Date(e):e;return(0,o.WU)(t,n,{locale:r.ru})}catch(t){return"string"==typeof e?e:e.toString()}}},9202:function(e,t,n){"use strict";n.d(t,{i:function(){return r},D:function(){return a}});var o,r,l=n(9487);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"},c=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in i?i[t]:e}).replaceAll(" ","_").replaceAll("\xa0","_");(o=r||(r={})).icon="icon",o.chip="chip",o.accordion="accordion",o.button="button",o.checkbox="checkbox",o.radio="radio",o.select="select",o.toggle="toggle",o.tooltip="tooltip",o.link="link",o.banner="banner",o.tag="tag",o.date="date",o.field="field",o.offer="offer",o.tab="tab",o.submit_button="submit_button",o.popup="popup",o.block="block";let a=e=>{let{eventCategory:t,eventActionType:n,eventActionText:o="",eventLabel:r}=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]+c(o)};void 0!==r&&(i.eventLabel=c("string"==typeof r?r:r.toString())),(0,l.l)(i)}},9487:function(e,t,n){"use strict";n.d(t,{l:function(){return l},y:function(){return i}});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)}},i=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"}},7200:function(e){e.exports={container:"DrawerContent_container__rR8LI",open:"DrawerContent_open__M84fe","slide-up":"DrawerContent_slide-up__PxR16",close:"DrawerContent_close__Cyxv9","slide-out":"DrawerContent_slide-out__U3MRA",header:"DrawerContent_header__Ur_YT",rowHeader:"DrawerContent_rowHeader__2Z3R3",title:"DrawerContent_title__QG5Cm",center:"DrawerContent_center__k_OfP",right:"DrawerContent_right__5FHfz",left:"DrawerContent_left__J0wEA",controlContainer:"DrawerContent_controlContainer__FAnIq",content:"DrawerContent_content__ECzp5",footer:"DrawerContent_footer__SVPa7"}},1380:function(e){e.exports={footer:"DrawerFooter_footer__0AgTl",hasScroll:"DrawerFooter_hasScroll__Qk185"}},1753:function(e){e.exports={window:"DrawerLayout_window__wpjeD"}},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"}},1900:function(e){e.exports={linkWrapper:"CheckFullInfoLink_linkWrapper__MewQV",width:"CheckFullInfoLink_width__wZeUL",padding:"CheckFullInfoLink_padding__Lh4bJ",link:"CheckFullInfoLink_link__7whuk",icon:"CheckFullInfoLink_icon__fQD9U",light:"CheckFullInfoLink_light__lJeRc",white:"CheckFullInfoLink_white__MzFzv"}},631:function(e,t,n){"use strict";function o(){return typeof window>"u"}function r(e){o()||(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 l(){if(o()){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 r},zK:function(){return l}})}}]);