!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e.SENTRY_RELEASE={id:"70ce8fb39136189ecf2a91fe0be2cf2d93e87014"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="0a963e27-1886-4f9c-9a1b-bd5e33a428a6",e._sentryDebugIdIdentifier="sentry-dbid-0a963e27-1886-4f9c-9a1b-bd5e33a428a6")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9366],{2199:(e,t,s)=>{"use strict";s.d(t,{L:()=>h});var r=s(95155),a=s(12115),l=s(29427),n=s(81915),o=s(34317),i=s(25044),c=s(49717),d=s.n(c);let p=({footer:e,isSmallPopup:t=!1,footerClassName:s})=>(0,r.jsx)("div",{className:(0,l.A)(d().footer,t&&d().footerWithoutShadow,s),"data-sentry-component":"MobileModalFooter","data-sentry-source-file":"index.tsx",children:"function"==typeof e?e():e});var u=s(42353),m=s.n(u);let _=({children:e,footer:t,isOpen:s,isSmallPopup:i,onClose:c,hasCloseButton:d=!0,full:u,touchDistance:_=100,withDisabledScroll:h=!0,contentClassName:y,className:f,title:v,closeButton:g,footerClassName:x})=>{let[w,A]=(0,a.useState)(!1),[b,C]=(0,a.useState)(!1),[S,j]=(0,a.useState)(!0),[G,T]=(0,a.useState)("120%"),N=(0,a.useRef)(null),M=(0,a.useRef)(0),k=(0,a.useRef)(!1),E=e=>{let t=N.current?.offsetTop,s=N.current?.offsetHeight;if(k.current=!0,j(!1),t&&s){let r=e?.touches[0]?.clientY-t,a=0;r>=0&&r<=s+30&&(a=r),r>s+30&&(a=s+30),T(`${a}px`),M.current=a}},L=()=>{k.current&&(M.current>_&&c?c?.():T("0"),j(!0),k.current=!1),window.removeEventListener("touchmove",E),window.removeEventListener("touchend",L)};(0,a.useEffect)(()=>{s&&setTimeout(()=>{A(!0),C(!0),T("0")},100),!s&&b&&(T("120%"),A(!1),C(!1))},[b,s]),(0,o._)(s&&h);let I=null;return g&&(I="function"==typeof g?g():g),(0,r.jsxs)("div",{"data-portal":!0,className:(0,l.A)(m().mobilePopup,b&&m().mobilePopupOpen,f),"data-sentry-component":"MobilePopupLayout","data-sentry-source-file":"MobilePopup.tsx",children:[(0,r.jsx)(n.i,{onClose:()=>{s&&c?.()},onToucheMove:()=>{s&&(A(!1),window.addEventListener("touchmove",E),window.addEventListener("touchend",L))},isOpen:s,delay:0,"data-sentry-element":"ClickOutside","data-sentry-source-file":"MobilePopup.tsx"}),(0,r.jsxs)("div",{className:(0,l.A)(m().content,u&&m().contentFull,S&&m().contentTransition,S&&w&&m().contentTransitionOpen),ref:N,style:{transform:`translateY(${G})`},children:[(0,r.jsx)("div",{className:m().contentLine}),(0,r.jsxs)("div",{className:(0,l.A)(m().contentContainer,i&&m().smallContentContainer,{[m().min]:!v&&!d},y),children:[!!v&&(0,r.jsx)("div",{className:m().title,children:v}),d?(0,r.jsxs)("div",{className:m().closeContainer,children:[I,g?null:(0,r.jsx)("button",{onClick:c,className:m().closeButton,children:(0,r.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,e]}),t&&(0,r.jsx)(p,{footerClassName:x,isSmallPopup:i,footer:t})]})]})},h=({children:e,isSmallPopup:t=!1,isOpen:s=!1,...a})=>{let{mounted:l}=(0,i.J)({opened:s});return l?(0,r.jsx)(_,{isSmallPopup:t,isOpen:s,...a,"data-sentry-element":"MobilePopupLayout","data-sentry-component":"UiMobilePopup","data-sentry-source-file":"MobilePopup.tsx",children:e}):null};h.displayName="UiMobilePopup"},14560:()=>{},14876:(e,t,s)=>{"use strict";s.d(t,{p:()=>c,y:()=>d});var r=s(95155),a=s(12115),l=s(94923),n=s(29427),o=s(74222),i=s.n(o);let c=e=>{let t=(()=>{let[e,t]=(0,a.useState)(!1);return(0,a.useCallback)(()=>t(e=>!e),[e,t])})();return[new URLSearchParams(window.location.search).get(e)||null,s=>{let r=new URLSearchParams(window.location.search);s?r.set(e,s):r.delete(e),window.history.pushState({},"",window.location.pathname+"?"+r.toString()),t()}]},d=({options:e,value:t,onChange:s,...o})=>{let[c,d]=(0,a.useState)();(0,a.useEffect)(()=>{d(e.find(e=>e.id===t))},[t,e]);let p=(0,a.useCallback)(e=>{e&&s(e)},[s]);return(0,r.jsx)(l.C,{size:"l",chips:e,value:c?.label,onChipClick:p,className:(0,n.A)(o.className,i().chips),"data-sentry-element":"Chips","data-sentry-component":"GlossarySearchChips","data-sentry-source-file":"utils.tsx"})}},25044:(e,t,s)=>{"use strict";s.d(t,{J:()=>l});var r=s(12115),a=s(45617);let l=({opened:e})=>{let[t,s]=(0,r.useState)(!1),l=(0,r.useRef)(null),n=(0,r.useRef)(!1);return(0,r.useEffect)(()=>(e&&!n.current?(n.current=!0,s(!0)):!e&&n.current&&(l.current=setTimeout(()=>{n.current=!1,s(!1)},a.l)),()=>{l.current&&clearTimeout(l.current)}),[e]),{mounted:t}}},31689:(e,t,s)=>{"use strict";s.d(t,{Z:()=>n});var r=s(95155),a=s(12115),l=s(47650);let n=({children:e,id:t="portal-root"})=>{let[s,n]=(0,a.useState)(null);return(0,a.useEffect)(()=>{let e=document?.getElementById(t);if(e)n(e);else{let e=document?.createElement("div");return document?.body.appendChild(e),n(e),()=>{document?.body.removeChild(e)}}},[]),(0,r.jsx)(r.Fragment,{children:s&&(0,l.createPortal)(e,s)})}},34317:(e,t,s)=>{"use strict";s.d(t,{_:()=>a});var r=s(12115);let a=e=>{let t=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let s=t.current;if(e){let e=window.scrollY||window.pageYOffset;document.body.dataset.scrollY=String(e),document.body.style.overflow="hidden",s&&s.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}s&&s.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,s)=>{"use strict";s.d(t,{F:()=>n,o:()=>l});var r=s(17446);let a=[{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 s=sessionStorage.getItem("pushedEvents"),a=s?JSON.parse(s):[];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=a.find(s=>s.eventCategory===e.eventCategory&&s.eventAction===e.eventAction&&s.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===s.url));if(!t||!l){if(t){let t={...e};t.url=window.location.pathname,a.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(a))}(0,r.Fj)(e)}},n=e=>{a.some(t=>{if(e.includes(t.path)){let s=e.match(/str_(\d+)/),r=s?.[1]?Number(s[1]):1;return setTimeout(()=>{l({event:"data-event",eventCategory:t.category,eventAction:"stay_15_seconds",eventLabel:e,eventValue:r})},15e3),!0}return!1})}},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"}},45212:e=>{e.exports={top:"GlossaryTopSection_top__V0whH",wrapper:"GlossaryTopSection_wrapper__WNNqa",imgM:"GlossaryTopSection_imgM__nwrkx",info:"GlossaryTopSection_info__eA3ZJ",title:"GlossaryTopSection_title__EF7Yl",subtitle:"GlossaryTopSection_subtitle__Frg6X",imgD:"GlossaryTopSection_imgD__juetA"}},45617:(e,t,s)=>{"use strict";s.d(t,{l:()=>r});let r=300},45712:e=>{e.exports={fixed:"GlossaryFilter_fixed__1lDhy",filter:"GlossaryFilter_filter__Ogc6S",fixedTags:"GlossaryFilter_fixedTags__D_pt4",tags:"GlossaryFilter_tags__sB1tx",termsWrapper:"GlossaryFilter_termsWrapper__Xkrcq",notFixed:"GlossaryFilter_notFixed__oOZGe",contentTitle:"GlossaryFilter_contentTitle__KgUSu",tagsD:"GlossaryFilter_tagsD__I0IJB",tagsM:"GlossaryFilter_tagsM__ifYRq",rolledUpSearchMobile:"GlossaryFilter_rolledUpSearchMobile__vAUh6",expandedMobileSearchWrapper:"GlossaryFilter_expandedMobileSearchWrapper__BbOMw",activeSearchWrapper:"GlossaryFilter_activeSearchWrapper__LND4X",termsWrapperColumn:"GlossaryFilter_termsWrapperColumn__IcmFI",mobileSearchWrapper:"GlossaryFilter_mobileSearchWrapper__bE7i6",searchWrapperD:"GlossaryFilter_searchWrapperD__KfPpP",hideChipsWrapper:"GlossaryFilter_hideChipsWrapper__0YTtK",showMoreWrapper:"GlossaryFilter_showMoreWrapper___f5IN",showMoreButton:"GlossaryFilter_showMoreButton__qOtTl",showMoreArrow:"GlossaryFilter_showMoreArrow__4Mnee",searchChipsBlock:"GlossaryFilter_searchChipsBlock__1wvEz"}},48014:e=>{e.exports={page:"Glossary_page__WxNkt"}},49717:e=>{e.exports={footer:"MobileModalFooter_footer__5dRCK",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zHKVO"}},60773:(e,t,s)=>{"use strict";s.d(t,{default:()=>a.a});var r=s(93098),a=s.n(r)},64635:(e,t,s)=>{Promise.resolve().then(s.bind(s,4558)),Promise.resolve().then(s.bind(s,12696)),Promise.resolve().then(s.bind(s,98870))},74222:e=>{e.exports={terms:"GlossaryContent_terms__HT5zD",wrapper:"GlossaryContent_wrapper__p9SmS",filter:"GlossaryContent_filter__0StqI",title:"GlossaryContent_title__kiX59",tags:"GlossaryContent_tags__6ZXld",letterBlock:"GlossaryContent_letterBlock__biGAy",letter:"GlossaryContent_letter__Bj5A8",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",text:"GlossaryContent_text__kmQLt",arrowIcon:"GlossaryContent_arrowIcon__fmxkV",popup:"GlossaryContent_popup__GKz6P",popupContent:"GlossaryContent_popupContent__L2WWl",popupTitle:"GlossaryContent_popupTitle__Cbw7E",termsList:"GlossaryContent_termsList__UMZAU",termItem:"GlossaryContent_termItem__mPF94",chips:"GlossaryContent_chips__vS3eL"}},78982:(e,t,s)=>{"use strict";s.d(t,{C:()=>v}),s(14560);var r=s(95155),a=s(12115),l=s(94923),n=s(42687),o=s(9013),i=s(45822),c=s(29427),d=s(48822),p=s(8407),u=s(93371),m=s(18271);let _=(0,s(31117).g)("journal","sc"),h=Object.freeze({wrapper:`${_}__wrapper`,title:`${_}__title`,subtitle:`${_}__subtitle`,scrollableWrapper:`${_}__scrollable-wrapper`,chipsWrapper:`${_}__chips-wrapper`,slider:`${_}__slider`,sliderItem:`${_}__slider-item`,article:`${_}__article`,imgWrapper:`${_}__img-wrapper`,articleBody:`${_}__article-body`,articleTitle:`${_}__article-title`,articleDate:`${_}__article-date`,checkAllLink:`${_}__check-all-link`}),y="finkit-widgets-sc-journal",f="https://assets.finuslugi.ru/mp-assets/widgets/journal/default_post_image.png",v=({data:e,eventCategory:t=y,className:s})=>{var _;let v=(0,i.qF)("xl"),[g,x]=(0,a.useState)(!0),[w,A]=(0,a.useState)(0),b=Array.isArray(null==e?void 0:e.chips)?e.chips.filter(({items:e})=>!!(null!=e&&e.length)):[],C=b.some(({id:e})=>e===w)?w:null==(_=b[0])?void 0:_.id,S=b.find(({id:e})=>e===C),j=(null==S?void 0:S.items)||[];if((0,a.useEffect)(()=>{x(!v)},[v]),!b.length)return null;let G=e=>{e.target.src!==f&&(e.target.src=f)};return(0,r.jsxs)("div",{className:(0,c.A)(h.wrapper,s),children:[(0,r.jsxs)(n.m,{children:[(0,r.jsx)("h2",{className:h.title,children:null==e?void 0:e.title}),(0,r.jsx)("div",{className:h.subtitle,children:null==e?void 0:e.description})]}),(0,r.jsx)("div",{className:h.scrollableWrapper,children:(0,r.jsx)(n.m,{children:(0,r.jsx)("div",{className:h.chipsWrapper,children:b.length>1&&(0,r.jsx)(l.C,{chips:b,value:C,variant:"secondary",size:g?"m":"l",onChipClick:e=>{var s;let r=(null==(s=b.find(({id:t})=>t===e))?void 0:s.label)||"";(0,d.h)({eventCategory:t,eventActionType:d.D.tab,eventActionText:r}),A(e)}})})})}),(0,r.jsxs)(n.m,{children:[(0,r.jsx)(o.A,{className:h.slider,options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3500,disableOnInteraction:!0},loop:!0},pagination:!0,navigation:!0,navigationVariant:"secondary",navigationSize:"s",children:j.map(e=>{let s,a;return(0,r.jsx)(o.D,{className:h.sliderItem,children:(0,r.jsxs)("a",{className:h.article,href:e.url,onClick:(s=e.title,a=e.url,()=>{(0,d.h)({eventCategory:t,eventActionType:d.D.block,eventActionText:s||"",eventLabel:a})}),children:[(0,r.jsx)("div",{className:h.imgWrapper,children:(0,r.jsx)("img",{src:e.img,alt:`изображение: ${e.title}`,loading:"lazy",onError:G})}),(0,r.jsxs)("div",{className:h.articleBody,children:[(0,r.jsx)("div",{className:h.articleTitle,children:e.title}),(0,r.jsx)("div",{className:h.articleDate,children:(e=>{if(!e||!/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/.test(e))return"";let t=new Date(e.replace(" ","T"));if(isNaN(t.getTime()))return"";let s=t.getDate(),r=t.getMonth();return`${s} ${["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"][r]}`})(e.dt)})]})]})},e.title)})},C),(0,r.jsx)(m.C,{href:(null==e?void 0:e.url)||"",event:{event:"data-event",eventCategory:t,eventAction:`link_${(0,u.t)((null==e?void 0:e.urlText)||"Показать все статьи")}`,eventLabel:(null==e?void 0:e.url)||""},dataLayerPush:p.d,className:h.checkAllLink,children:(null==e?void 0:e.urlText)||"Показать все статьи"})]})]})}},81915:(e,t,s)=>{"use strict";s.d(t,{i:()=>c});var r=s(95155),a=s(12115),l=s(29427),n=s(45617),o=s(38325),i=s.n(o);let c=({onClose:e,onToucheMove:t,isOpen:s,delay:o=n.l})=>{let c=(0,a.useRef)(null),d=(0,a.useCallback)(()=>{e&&(c.current=setTimeout(()=>{e()},o))},[o,e]),p=(0,a.useCallback)(e=>{"Escape"===e.key&&d()},[d]);return(0,a.useEffect)(()=>(s&&window.addEventListener("keydown",p),()=>{c.current&&clearTimeout(c.current),window.removeEventListener("keydown",p)}),[s,p]),(0,r.jsx)("div",{className:(0,l.A)(i().overlay,{[i().open]:s,[i().close]:!s}),onTouchStart:t,onClick:d,"data-sentry-component":"ClickOutside","data-sentry-source-file":"ClickOutside.tsx"})}},89313:()=>{},93098:(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={default:function(){return d},getImageProps:function(){return c}};for(var a in r)Object.defineProperty(t,a,{enumerable:!0,get:r[a]});let l=s(42174),n=s(51314),o=s(59642),i=l._(s(60658));function c(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,s]of Object.entries(t))void 0===s&&delete t[e];return{props:t}}let d=o.Image},94192:e=>{e.exports={terms:"GlossaryTermsSection_terms__5Pypb",wrapper:"GlossaryTermsSection_wrapper__nufbu",desktopOnly:"GlossaryTermsSection_desktopOnly__AbPql",termsMobileOnly:"GlossaryTermsSection_termsMobileOnly__WDbKH",filter:"GlossaryTermsSection_filter__p5T9J",title:"GlossaryTermsSection_title__oan4e",tags:"GlossaryTermsSection_tags__qVH44",letterBlock:"GlossaryTermsSection_letterBlock__Ie8PG",letter:"GlossaryTermsSection_letter__4K8y6",termsColumns:"GlossaryTermsSection_termsColumns__BrCBX",two:"GlossaryTermsSection_two__jrX5d",one:"GlossaryTermsSection_one__nYr3K",term:"GlossaryTermsSection_term__M_fBy",lettersList:"GlossaryTermsSection_lettersList__lUcjM",letterItem:"GlossaryTermsSection_letterItem__NwzYs",text:"GlossaryTermsSection_text__nlubx",arrowIcon:"GlossaryTermsSection_arrowIcon__dZelm",popup:"GlossaryTermsSection_popup__dJip9",popupContent:"GlossaryTermsSection_popupContent__ihlXX",popupTitle:"GlossaryTermsSection_popupTitle__ueIDD",termsList:"GlossaryTermsSection_termsList__7yRk0",termItem:"GlossaryTermsSection_termItem__cN1rG"}},94923:(e,t,s)=>{"use strict";s.d(t,{C:()=>d});var r=s(95155),a=s(12115),l=s(29427),n=s(17200),o=s(52951);s(89313);let i=(0,o.g)("chips"),c=Object.freeze({chips:i,chip:`${i}__item`,icon:`${i}__icon`,iconLeft:`${i}__icon-left`,iconRight:`${i}__icon-right`,label:`${i}__label`,variants:{primary:`${i}--primary`,secondary:`${i}--secondary`,tertiary:`${i}--tertiary`},activeVariants:{primary:`${i}--active-primary`,secondary:`${i}--active-secondary`},sizes:{s:`${i}--s`,m:`${i}--m`,l:`${i}--l`},selected:`${i}--selected`,indicator:`${i}__indicator`,indicatorVariant:{red:`${i}__indicator--red`,orange:`${i}__indicator--orange`,green:`${i}__indicator--green`,purple:`${i}__indicator--purple`,purpleSecondary:`${i}__indicator--purple-secondary`,blue:`${i}__indicator--blue`,pink:`${i}__indicator--pink`}}),d=(0,a.forwardRef)(({chips:e,value:t,variant:s="primary",activeVariant:o="primary",multiple:i,clearable:d,size:p="m",className:u,style:m,dataQa:_,dataId:h,onChipClick:y,...f},v)=>{let[g,x]=(0,a.useState)(i?[]:void 0),w=(0,a.useRef)(null);(0,a.useImperativeHandle)(v,()=>({getRoot:()=>w.current,getSelectedChips:()=>g})),(0,a.useEffect)(()=>{i?x(Array.isArray(t)?t:[]):x(t)},[t,i]);let A=i||d,b=e=>i&&Array.isArray(g)?g.includes(e):g===e,C=(e,t,s)=>{x(s),null==y||y(e,t,s)},S=(e,t)=>{if(i&&Array.isArray(g))if(b(e)){let s=g.filter(t=>t!==e);C(e,t,s)}else C(e,t,[...g,e]);else{let s=d&&b(e)?void 0:e;C(e,t,s)}};return(0,r.jsx)("div",{ref:w,className:(0,l.A)(u,c.chips),style:m,...f,"data-id":h,"data-qa":_,children:e.map((e,t)=>(({id:e,label:t,iconLeft:a,iconRight:i,indicator:d},u)=>{let m=b(e);return(0,r.jsxs)("div",{className:(0,l.A)(c.chip,c.sizes[p],c.activeVariants[o],c.variants[s],[{[c.selected]:m}]),role:A?"checkbox":"radio","aria-checked":m,"aria-label":t,tabIndex:0,"data-qa":(0,n.g)(`${_}-item-${++u}`,!!_),onClick:t=>{S(e,t)},onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),S(e,t))},children:[a&&(0,r.jsx)("span",{className:(0,l.A)(c.icon,c.iconLeft),"aria-hidden":"true",children:a}),(0,r.jsx)("span",{className:(0,l.A)(c.label),children:t}),d&&(0,r.jsx)("div",{className:(0,l.A)(c.indicator,c.indicatorVariant[d])}),i&&(0,r.jsx)("span",{className:(0,l.A)(c.icon,c.iconRight),"aria-hidden":"true",children:i})]},e)})(e,t))})});d.displayName="Chips"},98870:(e,t,s)=>{"use strict";s.d(t,{Glossary:()=>R});var r=s(95155),a=s(45749),l=s(78982),n=s(47812),o=s(55726),i=s(38665),c=s(12115),d=s(3077),p=s.n(d),u=s(27290),m=s(42687),_=s(45822),h=s(29427),y=s(31689),f=s(2199);let v=null,g=(e,t,s,r)=>{if(s&&r.current){let s="A - Z"===e?"a":e,a=t.findIndex(e=>e.char===s?.toLowerCase());if(-1!==a){let e,t,s,l,n,o,i=r.current.childNodes[a];i instanceof HTMLElement&&(null!==v&&(window.cancelAnimationFrame(v),v=null),e=(()=>{let e=0,t=getComputedStyle(document.documentElement),s=t.getPropertyValue("--new-header-height-desktop").trim(),r=t.getPropertyValue("--new-header-height-mobile").trim(),a=window.matchMedia("(max-width: 767px)").matches?r:s,l=parseFloat(a)||0;if(a.includes("px")&&(l=parseFloat(a.replace("px",""))||0),0===l){let e=document.querySelector("header, .cb-header");if(e){let t=e.getBoundingClientRect(),s=window.getComputedStyle(e);("fixed"===s.position||"sticky"===s.position)&&t.height>0?l=t.height:t.top>=0&&t.top<100&&t.height>0&&(l=t.height)}}e+=l;let n=document.querySelector("[data-glossary-fixed-filter]");if(n){let t=n.getBoundingClientRect(),s=window.getComputedStyle(n),r=t.height>0&&"none"!==s.display&&"hidden"!==s.visibility&&"0"!==s.opacity,a="fixed"===s.position&&t.top>=0&&t.top<300;r&&a&&(e+=t.height)}return e})(),t=window.performance?.now?.()??Date.now(),s=0,l=null,n=()=>{null!==v&&(window.cancelAnimationFrame(v),v=null),window.removeEventListener("wheel",n),window.removeEventListener("touchstart",n),window.removeEventListener("keydown",n)},window.addEventListener("wheel",n,{passive:!0}),window.addEventListener("touchstart",n,{passive:!0}),window.addEventListener("keydown",n),o=()=>{let r=window.performance?.now?.()??Date.now(),a=window.pageYOffset??window.scrollY??0,c=i.getBoundingClientRect().top-(e+6);if(1.25>Math.abs(c)?s+=1:s=0,s>=6){window.scrollTo({top:Math.max(0,a+c),behavior:"auto"}),n();return}let d=Math.min(110,Math.max(18,.35*Math.abs(c))),p=Math.sign(c)*Math.min(Math.abs(.18*c),d);if(null!==l&&0!==Math.sign(l)&&0!==Math.sign(c)&&Math.sign(l)!==Math.sign(c)&&(p*=.55),l=c,window.scrollTo({top:Math.max(0,a+p),behavior:"auto"}),r-t>1100){let t=i.getBoundingClientRect().top-(e+6),s=window.pageYOffset??window.scrollY??0;window.scrollTo({top:Math.max(0,s+t),behavior:"auto"}),n();return}v=window.requestAnimationFrame(o)},v=window.requestAnimationFrame(o))}}};var x=s(94192),w=s.n(x);let A=({symbols:e,terms:t})=>{let[s,a]=(0,c.useState)(),l=(0,c.useMemo)(()=>(e=>{if(!e||!e.length)return[];let t=[];return e.forEach(e=>{let s=t.findIndex(t=>{let s,r;return s=t.char,r=e.name.charAt(0).toLowerCase(),s.replace("ё","е").replace("й","и")===r.replace("ё","е").replace("й","и")||!isNaN(parseInt(e.name.charAt(0)))&&"0 - 9"===t.char});s>=0?t[s].terms.push(e):t.push({char:isNaN(parseInt(e.name.charAt(0)))?e.name.charAt(0).toLowerCase():"0 - 9",terms:[e]})}),t.sort((e,t)=>e.char.localeCompare(t.char,void 0,{sensitivity:"base"})),t.sort((e,t)=>{let s=e=>/^[А-ЯЁа-яё]*$/.test(e.toUpperCase())?3:/^[A-Za-z]*$/.test(e.toUpperCase())?2:1;return s(t.char)-s(e.char)}),t.forEach(e=>{e.terms.sort((e,t)=>e.name.localeCompare(t.name))}),t})(t),[t]),n=l.find(e=>e.char===s)?.terms||[],o=(0,c.useRef)(null),i=(0,c.useRef)(null),d=(0,_.nu)("l");return(0,c.useEffect)(()=>{g(e,l,!d,o),g(e,l,d,i)},[e,l,d]),(0,r.jsx)("section",{className:w().terms,"data-sentry-component":"GlossaryTermsSection","data-sentry-source-file":"GlossaryTermsSection.tsx",children:(0,r.jsx)(m.m,{"data-sentry-element":"Container","data-sentry-source-file":"GlossaryTermsSection.tsx",children:(0,r.jsxs)("div",{className:w().wrapper,children:[(0,r.jsx)("div",{ref:o,className:(0,h.A)("desktopOnly",w().desktopOnly),children:l.map(e=>{let t=e.terms.length<=5,s=!t&&e.terms.length<=14;return(0,r.jsxs)("div",{className:w().letterBlock,children:[(0,r.jsx)("div",{className:w().letter,children:e.char}),(0,r.jsx)("div",{className:(0,h.A)(w().termsColumns,{[w().one]:t,[w().two]:s}),children:e.terms.map(e=>(0,r.jsx)(p(),{suppressHydrationWarning:!0,className:w().term,href:`/glossariy/${e.url}`,children:e.name},e.id))})]},e.char)})}),(0,r.jsx)("div",{className:w().termsMobileOnly,children:(0,r.jsxs)("div",{ref:i,className:w().lettersList,children:[l.map(e=>(0,r.jsxs)("div",{className:w().letterItem,onClick:()=>a(e.char),"data-char":e.char,children:[(0,r.jsx)("div",{className:w().text,children:e.char}),(0,r.jsx)(u.N1C,{className:w().arrowIcon})]},e.char)),(0,r.jsx)(y.Z,{"data-sentry-element":"Portal","data-sentry-source-file":"GlossaryTermsSection.tsx",children:(0,r.jsxs)(f.L,{className:w().popup,contentClassName:w().popupContent,isOpen:!!s&&!!n.length,onClose:()=>a(null),hasCloseButton:!0,"data-sentry-element":"UiMobilePopup","data-sentry-source-file":"GlossaryTermsSection.tsx",children:[(0,r.jsx)("div",{className:w().popupTitle,children:s}),(0,r.jsx)("div",{className:w().termsList,children:n.map(e=>(0,r.jsx)(p(),{className:w().termItem,href:`/glossariy/${e.url}`,children:(0,r.jsx)("label",{children:e.name})},e.id))})]})})]})})]})})})};var b=s(60773),C=s(25069),S=s(13622);let j={src:"/service-main/_next/static/media/SearchInputIcon.65dbb3a1.svg",height:20,width:20,blurWidth:0,blurHeight:0},G=["А","Б","В","Г","Д","Е","Ё","Ж","З","И","Й","К","Л","М","Н","О","П","Р","С","Т","У","Ф","Х","Ц","Ч","Ш","Щ","Ъ","Ы","Ь","Э","Ю","Я","A - Z","0 - 9"].map(e=>({label:e,id:e})),T=["А - Ж","З - О","П - Х","Ц - Я","A - Z","0 - 9"].map(e=>({label:e,id:e}));var N=s(14876),M=s(45712),k=s.n(M);let E=({isFixed:e=!1,symbols:t,onSetTerms:s})=>{let a=(0,c.useRef)(null),[l,n]=(0,c.useState)(!1),[o,i]=(0,c.useState)(!0),d=(0,_.nu)("m"),p=(0,_.nu)("s");(0,c.useEffect)(()=>{function e(e){a.current&&e.target instanceof Node&&!a.current.contains(e.target)&&n(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[a]);let y=(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{className:(0,h.A)(k().termsWrapper,{[k().termsWrapperColumn]:l||!e}),children:[!l&&e&&(0,r.jsx)("div",{className:k().rolledUpSearchMobile,onClick:()=>n(!0),children:(0,r.jsx)(b.default,{src:j,alt:"search",unoptimized:!0})}),(!d||e)&&(0,r.jsx)(N.y,{className:(0,h.A)(k().searchChipsBlock,k().tags,{[k().fixedTags]:e&&o}),options:p?T:G,value:t,onChange:s}),d&&!e&&(0,r.jsx)(N.y,{className:(0,h.A)(k().tags,k().tagsM,{[k().fixedTags]:e&&o}),options:T,value:t,onChange:s}),e&&(0,r.jsx)("div",{"data-element":"dropdown",className:(0,h.A)({[k().showMoreWrapper]:o,[k().hideChipsWrapper]:!o}),children:!l&&(0,r.jsx)(S.$,{className:k().showMoreButton,variant:"violet",size:"xs",onClick:()=>{i(e=>!e)},iconLeft:(0,r.jsx)(u.N1C,{size:20}),label:o?"Еще":"Скрыть"})})]})});return(0,r.jsxs)(m.m,{"data-sentry-element":"Container","data-sentry-component":"GlossaryFilter","data-sentry-source-file":"GlossaryFilter.tsx",children:[!e&&(0,r.jsxs)("div",{className:(0,h.A)(k().filter,k().notFixed),children:[(0,r.jsx)("div",{className:k().contentTitle,children:"Содержание"}),y]}),e&&(0,r.jsx)("div",{className:k().fixed,"data-glossary-fixed-filter":!0,children:(0,r.jsx)(m.m,{className:k().filter,children:y})})]})};var L=s(45212),I=s.n(L);let F={src:"/service-main/_next/static/media/cat-d.35ab7325.png",height:870,width:1005,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAY1BMVEVMaXF5aGpBLEEmITFMHTFtACL5HSErJDQsHjMnIDIeGSw2MEJUSlTmbGmmq6/OiYcSEiPuuq7/GRmSMkmzcXToioZwHDbXxMSCSmD0aWJgTlbPvbmbUWCIgoReI0Dx69j/VVWBSV5xAAAAGnRSTlMA+HhcGgf+MYf57az9lISNzOK97/6r/g3f/D8yia8AAAAJcEhZcwAAITgAACE4AUWWMWAAAAA9SURBVHicHcZHEoAgEADBAZEVE+aIyv9facGpG0QQDVDUjatSjGuvnHJQd5/06vnGDswcljNOsB/vZu3KDzL8AkAVkRiuAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7},P={src:"/service-main/_next/static/media/cat-m.b602703c.png",height:585,width:576,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAclBMVEVMaXGciIfq+Oo1JTwiHS4eFydlV2BFPFIoHzEyJzogGicoIjWlNUyHID0eHi2/dHi7nqR+RFrs8uTd0s7ut6lfIkD9Wlr/Bwf3T0v/ERLwxrpYTleELUXbzcHqS0s9NkaujIabWWNjJj/cFB3/MTH0d3OCtrLvAAAAG3RSTlMA/hHz6vj6GDiEJ745PtHqLfrtRPv+/GyK/GjNfzX6AAAACXBIWXMAACE4AAAhOAFFljFgAAAARklEQVR4nBXGRRLAIBAEwIEgu3E3JP7/L6boUwOUA0wAWHGRWQCkD6NTrHLCpMjahX6QKJtThPFbUXl/xfld0Hb39Gxx/wFSGQN7wsNQvwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8},B=({terms:e,symbols:t,onSetTerms:s})=>{let[a,l]=(0,c.useState)(!1),n=(0,c.useRef)(null),o=(0,c.useRef)(null);return(0,c.useEffect)(()=>{let e=()=>{l(!!n.current&&window.scrollY>n.current?.clientHeight)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("section",{ref:n,className:I().top,children:[(0,r.jsx)(m.m,{"data-sentry-element":"Container","data-sentry-source-file":"GlossaryTopSection.tsx",children:(0,r.jsx)(C.B,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"Финансовый глоссарий"}],"data-sentry-element":"Breadcrumbs","data-sentry-source-file":"GlossaryTopSection.tsx"})}),(0,r.jsx)(m.m,{"data-sentry-element":"Container","data-sentry-source-file":"GlossaryTopSection.tsx",children:(0,r.jsxs)("div",{className:I().wrapper,children:[(0,r.jsx)(b.default,{className:(0,h.A)("mobileOnly",I().imgM),src:P,alt:"cat",unoptimized:!0,"data-sentry-element":"Image","data-sentry-source-file":"GlossaryTopSection.tsx"}),(0,r.jsxs)("div",{className:I().info,children:[(0,r.jsx)("h1",{className:I().title,children:"Финансовый глоссарий"}),(0,r.jsxs)("p",{className:I().subtitle,children:["У нас здесь просто о сложном.",(0,r.jsx)("br",{}),"Введите нужный финансовый термин, а мы расскажем как его понять"]})]}),(0,r.jsx)(b.default,{className:(0,h.A)("desktopOnly",I().imgD),src:F,alt:"cat",unoptimized:!0,"data-sentry-element":"Image","data-sentry-source-file":"GlossaryTopSection.tsx"})]})}),(0,r.jsx)("div",{ref:o,children:(0,r.jsx)(E,{isFixed:a,terms:e,symbols:t,onSetTerms:s,"data-sentry-element":"GlossaryFilter","data-sentry-source-file":"GlossaryTopSection.tsx"})})]})})},O=({terms:e})=>{let[t,s]=(0,N.p)("symbols");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(B,{terms:e,symbols:t,onSetTerms:s,"data-sentry-element":"GlossaryTopSection","data-sentry-source-file":"GlossaryContent.tsx"}),(0,r.jsx)(A,{terms:e,symbols:t,"data-sentry-element":"GlossaryTermsSection","data-sentry-source-file":"GlossaryContent.tsx"})]})};var D=s(48014),W=s.n(D);let R=({terms:e,bestOffersData:t,supportBlockData:s,navigatorBlockData:c})=>{let d=(0,n.px)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("main",{className:W().page,children:[(0,r.jsx)(O,{terms:e,"data-sentry-element":"GlossaryContent","data-sentry-source-file":"Glossary.tsx"}),t&&(0,r.jsx)(a.g3,{tabs:t,baseUrl:d.NEXT_PUBLIC_BASE_URL,s3Assets:`${d.NEXT_PUBLIC_S3_ASSETS}/mp-assets`,dataLayerPush:i.o}),c&&(0,r.jsx)(l.C,{data:c,eventCategory:"glossariy_journal"}),(0,r.jsx)("div",{style:{marginTop:"-32px"}}),s&&(0,r.jsx)(o.E,{...s,s3Assets:d.NEXT_PUBLIC_S3_ASSETS})]})})}}},e=>{e.O(0,[621,200,4653,2545,3177,4341,6604,8420,7261,9203,5079,8994,5174,5449,9793,8441,2374,7358],()=>e(e.s=64635)),_N_E=e.O()}]);
//# debugId=0a963e27-1886-4f9c-9a1b-bd5e33a428a6