
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4d418b69-2b02-5d06-a4e2-d35e224e5abf")}catch(e){}}();
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6406],{83662: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}},6316:function(e,t,n){"use strict";n.d(t,{z:function(){return o}});let o=300},99291:function(e,t,n){"use strict";n.d(t,{L:function(){return s}});var o=n(57437),r=n(2265),l=n(27569),i=n(6316),a=n(66461),c=n.n(a);let s=e=>{let{onClose:t,onToucheMove:n,isOpen:a,delay:s=i.z}=e,u=(0,r.useRef)(null),d=(0,r.useCallback)(()=>{t&&(u.current=setTimeout(()=>{t()},s))},[s,t]),_=(0,r.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,r.useEffect)(()=>(a&&window.addEventListener("keydown",_),()=>{u.current&&clearTimeout(u.current),window.removeEventListener("keydown",_)}),[a,_]),(0,o.jsx)("div",{className:(0,l.Z)(c().overlay,{[c().open]:a,[c().close]:!a}),onTouchStart:n,onClick:d,"data-sentry-component":"ClickOutside","data-sentry-source-file":"ClickOutside.tsx"})}},83442:function(e,t,n){"use strict";n.d(t,{d:function(){return b}});var o=n(57437),r=n(37036),l=n(2265),i=n(27569),a=n(99291),c=n(66427),s=n.n(c);let u=e=>{let{footer:t,hasScroll:n,className:r}=e;return(0,o.jsx)("div",{className:(0,i.Z)(s().footer,{[s().hasScroll]:n},r),"data-sentry-component":"DrawerFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof t?t():t})};var d=n(78681),_=n.n(d);let p=e=>{let{onClose:t,onContentClick:n,children:r,title:a,rowTitle:c,titleAlign:s,isCloseable:d,footer:p,closeButton:f,isOpen:v,contentClassName:m,footerClassName:h,contentStyle:b,width:w}=e,y=(0,l.useRef)(null),k=(0,l.useRef)(null),[C,g]=(0,l.useState)(!1);(0,l.useEffect)(()=>{var e;if(!k.current||!y.current)return;let t=(null==k?void 0:null===(e=k.current)||void 0===e?void 0:e.getBoundingClientRect().top)||0,n=null==y?void 0:y.current,o=()=>{let e=null==k?void 0:k.current;e&&g(()=>e.getBoundingClientRect().top!==t)};return n&&n.addEventListener("scroll",o,!1),()=>{null==n||n.removeEventListener("scroll",o,!1)}},[]);let x=b||w?{width:w,...b||{}}:void 0,L=null;return d&&f&&(L="function"==typeof f?f():f),(0,o.jsxs)("div",{ref:y,style:x,className:(0,i.Z)(_().container,{[_().open]:v,[_().close]:!v},m),"data-sentry-component":"DrawerContent","data-sentry-source-file":"index.tsx",children:[a||d?(0,o.jsxs)("div",{className:(0,i.Z)(_().header,{[_().rowHeader]:c}),children:[d&&!f?(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,L,a?(0,o.jsx)("h3",{className:(0,i.Z)(_().title,{[_().center]:"center"===s,[_().left]:"left"===s,[_().right]:"right"===s}),children:a}):null]}):null,(0,o.jsx)("div",{ref:k,className:_().content,onClick:n,children:r}),p&&(0,o.jsx)(u,{className:(0,i.Z)(_().footer,h),footer:p,hasScroll:C})]})};var f=n(83662),v=n(47770),m=n.n(v);let h=e=>{let{onClose:t,isOpen:n,children:r,withDisabledScroll:c,className:s,...u}=e,d=(0,l.useCallback)(e=>e.stopPropagation(),[]);return(0,f.o)(n&&c),(0,o.jsxs)("div",{"data-portal":!0,className:(0,i.Z)(m().window,s),"data-sentry-component":"DrawerLayout","data-sentry-source-file":"index.tsx",children:[(0,o.jsx)(a.L,{onClose:t,isOpen:n,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"index.tsx"}),(0,o.jsx)(p,{onContentClick:d,onClose:t,isOpen:n,...u,"data-sentry-element":"DrawerContent","data-sentry-source-file":"index.tsx",children:r})]})},b=e=>{let{isOpen:t=!1,children:n,titleAlign:l="center",isCloseable:i=!0,withDisabledScroll:a=!0,...c}=e,{mounted:s}=(0,r.b)({opened:t});return s?(0,o.jsx)(h,{titleAlign:l,isCloseable:i,isOpen:t,withDisabledScroll:a,...c,"data-sentry-element":"DrawerLayout","data-sentry-component":"Drawer","data-sentry-source-file":"Drawer.tsx",children:n}):null};b.displayName="Drawer"},67343:function(e,t,n){"use strict";n.d(t,{j:function(){return v}});var o=n(57437),r=n(2265),l=n(27569),i=n(99291),a=n(83662),c=n(37036),s=n(91198),u=n.n(s);let d=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:r}=e;return(0,o.jsx)("div",{className:(0,l.Z)(u().footer,n&&u().footerWithoutShadow,r),"data-sentry-component":"MobileModalFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof t?t():t})};var _=n(98022),p=n.n(_);let f=e=>{let{children:t,footer:n,isOpen:c,isSmallPopup:s,onClose:u,hasCloseButton:_=!0,full:f,touchDistance:v=100,withDisabledScroll:m=!0,contentClassName:h,className:b,title:w,closeButton:y,footerClassName:k}=e,[C,g]=(0,r.useState)(!1),[x,L]=(0,r.useState)(!1),[j,D]=(0,r.useState)(!0),[M,N]=(0,r.useState)("120%"),P=(0,r.useRef)(null),S=(0,r.useRef)(0),E=(0,r.useRef)(!1),F=e=>{var t,n,o;let r=null===(t=P.current)||void 0===t?void 0:t.offsetTop,l=null===(n=P.current)||void 0===n?void 0:n.offsetHeight;if(E.current=!0,D(!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),N("".concat(n,"px")),S.current=n}},A=()=>{E.current&&(S.current>v&&u?null==u||u():N("0"),D(!0),E.current=!1),window.removeEventListener("touchmove",F),window.removeEventListener("touchend",A)};(0,r.useEffect)(()=>{c&&setTimeout(()=>{g(!0),L(!0),N("0")},100),!c&&x&&(N("120%"),g(!1),L(!1))},[x,c]),(0,a.o)(c&&m);let O=null;return y&&(O="function"==typeof y?y():y),(0,o.jsxs)("div",{"data-portal":!0,className:(0,l.Z)(p().mobilePopup,x&&p().mobilePopupOpen,b),"data-sentry-component":"MobilePopupLayout","data-sentry-source-file":"MobilePopup.tsx",children:[(0,o.jsx)(i.L,{onClose:()=>{c&&(null==u||u())},onToucheMove:()=>{c&&(g(!1),window.addEventListener("touchmove",F),window.addEventListener("touchend",A))},isOpen:c,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"MobilePopup.tsx"}),(0,o.jsxs)("div",{className:(0,l.Z)(p().content,f&&p().contentFull,j&&p().contentTransition,j&&C&&p().contentTransitionOpen),ref:P,style:{transform:"translateY(".concat(M,")")},children:[(0,o.jsx)("div",{className:p().contentLine}),(0,o.jsxs)("div",{className:(0,l.Z)(p().contentContainer,s&&p().smallContentContainer,{[p().min]:!w&&!_},h),children:[!!w&&(0,o.jsx)("div",{className:p().title,children:w}),_?(0,o.jsxs)("div",{className:p().closeContainer,children:[O,y?null:(0,o.jsx)("button",{onClick:u,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:k,isSmallPopup:s,footer:n})]})]})},v=e=>{let{children:t,isSmallPopup:n=!1,isOpen:r=!1,...l}=e,{mounted:i}=(0,c.b)({opened:r});return i?(0,o.jsx)(f,{isSmallPopup:n,isOpen:r,...l,"data-sentry-element":"MobilePopupLayout","data-sentry-component":"UiMobilePopup","data-sentry-source-file":"MobilePopup.tsx",children:t}):null};v.displayName="UiMobilePopup"},34780:function(e,t,n){"use strict";n.d(t,{j:function(){return u}});var o=n(57437),r=n(2265),l=n(93532),i=n(27569),a=n(22136),c=n(24561),s=n.n(c);let u=(0,r.memo)(e=>{let{onClick:t,text:n,href:c,target:u,iconColor:d="light",mainPageUrl:_,offPadding:p,widthMaxContent:f,className:v,icon:m}=e,h=(0,r.useCallback)(e=>c?(0,o.jsx)("a",{onClick:e.onClick,href:c,target:u,...e}):(0,o.jsx)("button",{onClick:e.onClick,...e}),[c,u]),b=m||l.IconFdsArrowUpRightSmallO;return(0,o.jsx)("div",{className:(0,i.Z)(s().linkWrapper,{[s().padding]:!p,[s().width]:f},v),onClick:()=>{(0,a.D)({eventCategory:_,eventActionType:a.i.link,eventActionText:n,eventLabel:c})},children:(0,o.jsxs)(h,{onClick:t,className:s().link,children:[n,(0,o.jsx)(b,{size:22,className:(0,i.Z)(s().icon,s()[d])})]})})});u.displayName="CheckFullInfoLink"},61445:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var o=n(57437),r=n(2265),l=n(54887);let i=e=>{let{children:t,id:n="portal-root"}=e,[i,a]=(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)a(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),a(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)})}},87148: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}},37036:function(e,t,n){"use strict";n.d(t,{b:function(){return l}});var o=n(2265),r=n(6316);let l=e=>{let{opened:t}=e,[n,l]=(0,o.useState)(!1),i=(0,o.useRef)(null),a=(0,o.useRef)(!1);return(0,o.useEffect)(()=>(t&&!a.current?(a.current=!0,l(!0)):!t&&a.current&&(i.current=setTimeout(()=>{a.current=!1,l(!1)},r.z)),()=>{i.current&&clearTimeout(i.current)}),[t]),{mounted:n}}},22136:function(e,t,n){"use strict";n.d(t,{i:function(){return r},D:function(){return c}});var o,r,l=n(25999);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"},a=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 c=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]+a(o)};void 0!==r&&(i.eventLabel=a("string"==typeof r?r:r.toString())),(0,l.l)(i)}},25999:function(e,t,n){"use strict";n.d(t,{l:function(){return l},y:function(){return i}});var o=n(37035);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})}},66461: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"}},78681: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"}},66427:function(e){e.exports={footer:"DrawerFooter_footer__0AgTl",hasScroll:"DrawerFooter_hasScroll__Qk185"}},47770:function(e){e.exports={window:"DrawerLayout_window__wpjeD"}},98022: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"}},91198:function(e){e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},24561: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"}}}]);
//# debugId=4d418b69-2b02-5d06-a4e2-d35e224e5abf
