!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"721d496d7d9e9a892aa890e361982b6cdcd51ec1"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="65cfcf36-c1a5-4bd3-95a3-790f4b48151d",e._sentryDebugIdIdentifier="sentry-dbid-65cfcf36-c1a5-4bd3-95a3-790f4b48151d")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[504],{2199:(e,t,o)=>{"use strict";o.d(t,{L:()=>m});var n=o(95155),r=o(12115),l=o(29427),a=o(81915),s=o(34317),i=o(25044),c=o(49717),u=o.n(c);let d=({footer:e,isSmallPopup:t=!1,footerClassName:o})=>(0,n.jsx)("div",{className:(0,l.A)(u().footer,t&&u().footerWithoutShadow,o),"data-sentry-component":"MobileModalFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof e?e():e});var _=o(42353),p=o.n(_);let f=({children:e,footer:t,isOpen:o,isSmallPopup:i,onClose:c,hasCloseButton:u=!0,full:_,touchDistance:f=100,withDisabledScroll:m=!0,contentClassName:y,className:b,title:v,closeButton:h,footerClassName:w})=>{let[C,g]=(0,r.useState)(!1),[k,x]=(0,r.useState)(!1),[D,L]=(0,r.useState)(!0),[j,A]=(0,r.useState)("120%"),P=(0,r.useRef)(null),S=(0,r.useRef)(0),E=(0,r.useRef)(!1),M=e=>{let t=P.current?.offsetTop,o=P.current?.offsetHeight;if(E.current=!0,L(!1),t&&o){let n=e?.touches[0]?.clientY-t,r=0;n>=0&&n<=o+30&&(r=n),n>o+30&&(r=o+30),A(`${r}px`),S.current=r}},N=()=>{E.current&&(S.current>f&&c?c?.():A("0"),L(!0),E.current=!1),window.removeEventListener("touchmove",M),window.removeEventListener("touchend",N)};(0,r.useEffect)(()=>{o&&setTimeout(()=>{g(!0),x(!0),A("0")},100),!o&&k&&(A("120%"),g(!1),x(!1))},[k,o]),(0,s._)(o&&m);let O=null;return h&&(O="function"==typeof h?h():h),(0,n.jsxs)("div",{"data-portal":!0,className:(0,l.A)(p().mobilePopup,k&&p().mobilePopupOpen,b),"data-sentry-component":"MobilePopupLayout","data-sentry-source-file":"MobilePopup.tsx",children:[(0,n.jsx)(a.i,{onClose:()=>{o&&c?.()},onToucheMove:()=>{o&&(g(!1),window.addEventListener("touchmove",M),window.addEventListener("touchend",N))},isOpen:o,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"MobilePopup.tsx"}),(0,n.jsxs)("div",{className:(0,l.A)(p().content,_&&p().contentFull,D&&p().contentTransition,D&&C&&p().contentTransitionOpen),ref:P,style:{transform:`translateY(${j})`},children:[(0,n.jsx)("div",{className:p().contentLine}),(0,n.jsxs)("div",{className:(0,l.A)(p().contentContainer,i&&p().smallContentContainer,{[p().min]:!v&&!u},y),children:[!!v&&(0,n.jsx)("div",{className:p().title,children:v}),u?(0,n.jsxs)("div",{className:p().closeContainer,children:[O,h?null:(0,n.jsx)("button",{onClick:c,className:p().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)(d,{footerClassName:w,isSmallPopup:i,footer:t})]})]})},m=({children:e,isSmallPopup:t=!1,isOpen:o=!1,...r})=>{let{mounted:l}=(0,i.J)({opened:o});return l?(0,n.jsx)(f,{isSmallPopup:t,isOpen:o,...r,"data-sentry-element":"MobilePopupLayout","data-sentry-component":"UiMobilePopup","data-sentry-source-file":"MobilePopup.tsx",children:e}):null};m.displayName="UiMobilePopup"},3766: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"}},18403:(e,t,o)=>{"use strict";o.d(t,{_:()=>s,y:()=>a});var n,r=o(38665),l=o(31161),a=((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 a={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,l.y)(o)};void 0!==n&&(a.eventLabel=(0,l.y)("string"==typeof n?n:n.toString())),(0,r.o)(a)}},25044:(e,t,o)=>{"use strict";o.d(t,{J:()=>l});var n=o(12115),r=o(45617);let l=({opened:e})=>{let[t,o]=(0,n.useState)(!1),l=(0,n.useRef)(null),a=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e&&!a.current?(a.current=!0,o(!0)):!e&&a.current&&(l.current=setTimeout(()=>{a.current=!1,o(!1)},r.l)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}}},31161:(e,t,o)=>{"use strict";o.d(t,{y:()=>r});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"},r=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in n?n[t]:e}).replaceAll(" ","_").replaceAll("\xa0","_")},31689:(e,t,o)=>{"use strict";o.d(t,{Z:()=>a});var n=o(95155),r=o(12115),l=o(47650);let a=({children:e,id:t="portal-root"})=>{let[o,a]=(0,r.useState)(null);return(0,r.useEffect)(()=>{let e=document?.getElementById(t);if(e)a(e);else{let e=document?.createElement("div");return document?.body.appendChild(e),a(e),()=>{document?.body.removeChild(e)}}},[]),(0,n.jsx)(n.Fragment,{children:o&&(0,l.createPortal)(e,o)})}},34317:(e,t,o)=>{"use strict";o.d(t,{_:()=>r});var n=o(12115);let r=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}},38325: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"}},38665:(e,t,o)=>{"use strict";o.d(t,{F:()=>a,o:()=>l});var n=o(17446);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 o=sessionStorage.getItem("pushedEvents"),r=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 l=r.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||!l){if(t){let t={...e};t.url=window.location.pathname,r.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(r))}(0,n.Fj)(e)}},a=e=>{r.some(t=>{if(e.includes(t.path)){let o=e.match(/str_(\d+)/),n=o?.[1]?Number(o[1]):1;return setTimeout(()=>{l({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:n})},15e3),!0}return!1})}},39352:e=>{e.exports={footer:"DrawerFooter_footer__0AgTl",hasScroll:"DrawerFooter_hasScroll__Qk185"}},42353: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"}},45617:(e,t,o)=>{"use strict";o.d(t,{l:()=>n});let n=300},49717:e=>{e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},81915:(e,t,o)=>{"use strict";o.d(t,{i:()=>c});var n=o(95155),r=o(12115),l=o(29427),a=o(45617),s=o(38325),i=o.n(s);let c=({onClose:e,onToucheMove:t,isOpen:o,delay:s=a.l})=>{let c=(0,r.useRef)(null),u=(0,r.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},s))},[s,e]),d=(0,r.useCallback)(e=>{"Escape"===e.key&&u()},[u]);return(0,r.useEffect)(()=>(o&&window.addEventListener("keydown",d),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",d)}),[o,d]),(0,n.jsx)("div",{className:(0,l.A)(i().overlay,{[i().open]:o,[i().close]:!o}),onTouchStart:t,onClick:u,"data-sentry-component":"ClickOutside","data-sentry-source-file":"ClickOutside.tsx"})}},84230:e=>{e.exports={window:"DrawerLayout_window__wpjeD"}},93070:(e,t,o)=>{"use strict";o.d(t,{_:()=>v});var n=o(95155),r=o(25044),l=o(12115),a=o(29427),s=o(81915),i=o(39352),c=o.n(i);let u=({footer:e,hasScroll:t,className:o})=>(0,n.jsx)("div",{className:(0,a.A)(c().footer,{[c().hasScroll]:t},o),"data-sentry-component":"DrawerFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof e?e():e});var d=o(3766),_=o.n(d);let p=({onClose:e,onContentClick:t,children:o,title:r,rowTitle:s,titleAlign:i,isCloseable:c,footer:d,closeButton:p,isOpen:f,contentClassName:m,footerClassName:y,contentStyle:b,width:v})=>{let h=(0,l.useRef)(null),w=(0,l.useRef)(null),[C,g]=(0,l.useState)(!1);(0,l.useEffect)(()=>{if(!w.current||!h.current)return;let e=w?.current?.getBoundingClientRect().top||0,t=h?.current,o=()=>{let t=w?.current;t&&g(()=>t.getBoundingClientRect().top!==e)};return t&&t.addEventListener("scroll",o,!1),()=>{t?.removeEventListener("scroll",o,!1)}},[]);let k=b||v?{width:v,...b||{}}:void 0,x=null;return c&&p&&(x="function"==typeof p?p():p),(0,n.jsxs)("div",{ref:h,style:k,className:(0,a.A)(_().container,{[_().open]:f,[_().close]:!f},m),"data-sentry-component":"DrawerContent","data-sentry-source-file":"index.tsx",children:[r||c?(0,n.jsxs)("div",{className:(0,a.A)(_().header,{[_().rowHeader]:s}),children:[c&&!p?(0,n.jsx)("button",{className:_().controlContainer,onClick:e,children:(0,n.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})}):null,x,r?(0,n.jsx)("h3",{className:(0,a.A)(_().title,{[_().center]:"center"===i,[_().left]:"left"===i,[_().right]:"right"===i}),children:r}):null]}):null,(0,n.jsx)("div",{ref:w,className:_().content,onClick:t,children:o}),d&&(0,n.jsx)(u,{className:(0,a.A)(_().footer,y),footer:d,hasScroll:C})]})};var f=o(34317),m=o(84230),y=o.n(m);let b=({onClose:e,isOpen:t,children:o,withDisabledScroll:r,className:i,...c})=>{let u=(0,l.useCallback)(e=>e.stopPropagation(),[]);return(0,f._)(t&&r),(0,n.jsxs)("div",{"data-portal":!0,className:(0,a.A)(y().window,i),"data-sentry-component":"DrawerLayout","data-sentry-source-file":"index.tsx",children:[(0,n.jsx)(s.i,{onClose:e,isOpen:t,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"index.tsx"}),(0,n.jsx)(p,{onContentClick:u,onClose:e,isOpen:t,...c,"data-sentry-element":"DrawerContent","data-sentry-source-file":"index.tsx",children:o})]})},v=({isOpen:e=!1,children:t,titleAlign:o="center",isCloseable:l=!0,withDisabledScroll:a=!0,...s})=>{let{mounted:i}=(0,r.J)({opened:e});return i?(0,n.jsx)(b,{titleAlign:o,isCloseable:l,isOpen:e,withDisabledScroll:a,...s,"data-sentry-element":"DrawerLayout","data-sentry-component":"Drawer","data-sentry-source-file":"Drawer.tsx",children:t}):null};v.displayName="Drawer"}}]);
//# debugId=65cfcf36-c1a5-4bd3-95a3-790f4b48151d