(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[710],{1943:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/glossariy/[[...slug]]",function(){return n(2370)}])},3245:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});let s=300},5409:function(e,t,n){"use strict";n.d(t,{L:function(){return c}});var s=n(5893),r=n(6010),a=n(7294),o=n(3245),l=n(5331),i=n.n(l);let c=e=>{let{onClose:t,onToucheMove:n,isOpen:l,delay:c=o.z}=e,d=(0,a.useRef)(null),_=(0,a.useCallback)(()=>{t&&(d.current=setTimeout(()=>{t()},c))},[c,t]),u=(0,a.useCallback)(e=>{"Escape"===e.key&&_()},[_]);return(0,a.useEffect)(()=>(l&&window.addEventListener("keydown",u),()=>{d.current&&clearTimeout(d.current),window.removeEventListener("keydown",u)}),[l,u]),(0,s.jsx)("div",{className:(0,r.Z)(i().overlay,{[i().open]:l,[i().close]:!l}),onTouchStart:n,onClick:_})}},5492:function(e,t,n){"use strict";n.d(t,{j:function(){return h}});var s=n(5893),r=n(6010),a=n(7294),o=n(8724),l=n(5466),i=n(5409),c=n(2278),d=n.n(c);let _=e=>{let{footer:t,isSmallPopup:n=!1,footerClassName:a}=e;return(0,s.jsx)("div",{className:(0,r.Z)(d().footer,n&&d().footerWithoutShadow,a),children:"function"==typeof t?t():t})};var u=n(331),p=n.n(u);let m=e=>{let{children:t,footer:n,isOpen:l,isSmallPopup:c,onClose:d,hasCloseButton:u=!0,full:m,touchDistance:h=100,withDisabledScroll:x=!0,contentClassName:v,className:y,title:f,closeButton:g,footerClassName:b}=e,[C,w]=(0,a.useState)(!1),[j,A]=(0,a.useState)(!1),[k,N]=(0,a.useState)(!0),[S,T]=(0,a.useState)("120%"),G=(0,a.useRef)(null),L=(0,a.useRef)(0),W=(0,a.useRef)(!1),I=e=>{var t,n,s;let r=null===(t=G.current)||void 0===t?void 0:t.offsetTop,a=null===(n=G.current)||void 0===n?void 0:n.offsetHeight;if(W.current=!0,N(!1),r&&a){let t=(null==e?void 0:null===(s=e.touches[0])||void 0===s?void 0:s.clientY)-r,n=0;t>=0&&t<=a+30&&(n=t),t>a+30&&(n=a+30),T("".concat(n,"px")),L.current=n}},M=()=>{W.current&&(L.current>h&&d?null==d||d():T("0"),N(!0),W.current=!1),window.removeEventListener("touchmove",I),window.removeEventListener("touchend",M)};return(0,a.useEffect)(()=>{l&&setTimeout(()=>{w(!0),A(!0),T("0")},100),!l&&j&&(T("120%"),w(!1),A(!1))},[j,l]),(0,o.o)(l&&x),(0,s.jsxs)("div",{"data-portal":!0,className:(0,r.Z)(p().mobilePopup,j&&p().mobilePopupOpen,y),children:[(0,s.jsx)(i.L,{onClose:()=>{l&&(null==d||d())},onToucheMove:()=>{l&&(w(!1),window.addEventListener("touchmove",I),window.addEventListener("touchend",M))},isOpen:l,delay:0}),(0,s.jsxs)("div",{className:(0,r.Z)(p().content,m&&p().contentFull,k&&p().contentTransition,k&&C&&p().contentTransitionOpen),ref:G,style:{transform:"translateY(".concat(S,")")},children:[(0,s.jsx)("div",{className:p().contentLine}),(0,s.jsxs)("div",{className:(0,r.Z)(p().contentContainer,c&&p().smallContentContainer,{[p().min]:!f&&!u},v),children:[!!f&&(0,s.jsx)("div",{className:p().title,children:f}),u?(0,s.jsxs)("div",{className:p().closeContainer,children:[g?"function"==typeof g?g():g:null,g?null:(0,s.jsx)("button",{onClick:d,className:p().closeButton,children:(0,s.jsx)("img",{src:"https://assets.finuslugi.ru/mp-assets/images/sc/close_gray.svg",alt:"close",loading:"lazy"})})]}):null,t]}),n&&(0,s.jsx)(_,{footerClassName:b,isSmallPopup:c,footer:n})]})]})},h=e=>{let{children:t,isSmallPopup:n=!1,isOpen:r=!1,...a}=e,{mounted:o}=(0,l.b)({opened:r});return o?(0,s.jsx)(m,{isSmallPopup:n,isOpen:r,...a,children:t}):null};h.displayName="UiMobilePopup"},8724:function(e,t,n){"use strict";n.d(t,{o:function(){return r}});var s=n(7294);let r=e=>{let t=(0,s.useRef)(null);return(0,s.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{let e=document.querySelectorAll("[data-portal]").length>1;if(e||(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}},938:function(e,t,n){"use strict";n.d(t,{G:function(){return a}});var s=n(7294);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)"},a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lg",t=(0,s.useRef)(null),[n,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{var n,s;!t.current&&window&&(t.current=null===(s=window)||void 0===s?void 0:s.matchMedia(r[e]||e));let o=()=>{a(!!t.current&&t.current.matches)};return o(),null===(n=t.current)||void 0===n||n.addEventListener("change",o),()=>{var e;return null===(e=t.current)||void 0===e?void 0:e.removeEventListener("change",o)}},[e]),n}},5466:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var s=n(7294),r=n(3245);let a=e=>{let{opened:t}=e,[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),l=(0,s.useRef)(!1);return(0,s.useEffect)(()=>(t&&!l.current?(l.current=!0,a(!0)):!t&&l.current&&(o.current=setTimeout(()=>{l.current=!1,a(!1)},r.z)),()=>{o.current&&clearTimeout(o.current)}),[t]),{mounted:n}}},1764:function(e,t,n){"use strict";n.d(t,{A:function(){return _},W:function(){return d}});var s=n(5893),r=n(4588),a=n(6010),o=n(7294),l=n(879),i=n.n(l);let c=()=>{let[e,t]=(0,o.useState)(!1);return(0,o.useCallback)(()=>t(e=>!e),[e,t])},d=e=>{let t=c(),n=new URLSearchParams(window.location.search),s=n.get(e)||null;return[s,n=>{let s=new URLSearchParams(window.location.search);n?s.set(e,n):s.delete(e),window.history.pushState({},"",window.location.pathname+"?"+s.toString()),t()}]},_=e=>{let{options:t,value:n,onChange:l,...c}=e,[d,_]=(0,o.useState)();(0,o.useEffect)(()=>{_(t.find(e=>e.id===n))},[n,t]);let u=(0,o.useCallback)(e=>{e&&l(e)},[l]);return(0,s.jsx)(r.cL,{size:"l",chips:t,value:null==d?void 0:d.label,onChipClick:u,className:(0,a.Z)(c.className,i().chips)})}},2370:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ev},default:function(){return ey}});var s=n(5893),r=n(6175),a=n(7215),o=n(1163),l=n(5352),i=n(5621),c=n(1764),d=n(9194),_=n(6535),u=n(6010),p=n(1664),m=n.n(p),h=n(7294),x=n(9546),v=n(5492),y=n(938);let f=(e,t)=>e.replace("ё","е").replace("й","и")===t.replace("ё","е").replace("й","и"),g=e=>{if(!e||!e.length)return[];let t=[];return e.forEach(e=>{let n=t.findIndex(t=>f(t.char,e.name.charAt(0).toLowerCase())||!isNaN(parseInt(e.name.charAt(0)))&&"0 - 9"===t.char);n>=0?t[n].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 n=e=>/^[А-ЯЁа-яё]*$/.test(e.toUpperCase())?3:/^[A-Za-z]*$/.test(e.toUpperCase())?2:1;return n(t.char)-n(e.char)}),t.forEach(e=>{e.terms.sort((e,t)=>e.name.localeCompare(t.name))}),t},b=(e,t)=>{if("0"===e&&"9"===t)return["0 - 9"];let n=[],s=e.charCodeAt(0);if(t){let e=t.charCodeAt(0);for(;s<=e;)n.push(String.fromCharCode(s)),s++}else n.push(String.fromCharCode(s));return n},C=e=>{let t={},[n,s]=e.split(" - ");return t[e]=b(n,s),t},w=(e,t)=>{if(!t)return e;let n=C(t),s=n[t].map(e=>String(e).toLowerCase());return e.filter(e=>s.includes(e.char))};var j=n(500),A=n.n(j);let k=(e,t,n,s)=>{if(n&&s.current){let n="A - Z"===e?"a":e,r=t.findIndex(e=>e.char===(null==n?void 0:n.toLowerCase()));if(-1!==r){let e=s.current.childNodes[r];e instanceof HTMLElement&&e.scrollIntoView({behavior:"smooth",block:"start"})}}},N=e=>{var t;let{symbols:n,terms:r}=e,[a,o]=(0,h.useState)(),l=w(g(r)),i=(null===(t=l.find(e=>e.char===a))||void 0===t?void 0:t.terms)||[],c=(0,h.useRef)(null),p=(0,h.useRef)(null),f=(0,y.G)("lg");return k(n,l,!f,c),k(n,l,f,p),(0,s.jsx)("section",{className:A().terms,children:(0,s.jsx)(_.W2,{children:(0,s.jsxs)("div",{className:A().wrapper,children:[(0,s.jsx)("div",{ref:c,className:(0,u.Z)("desktopOnly",A().desktopOnly),children:l.map(e=>{let t=e.terms.length<=5,n=!t&&e.terms.length<=14;return(0,s.jsxs)("div",{className:A().letterBlock,children:[(0,s.jsx)("div",{className:A().letter,children:e.char}),(0,s.jsx)("div",{className:(0,u.Z)(A().termsColumns,{[A().one]:t,[A().two]:n}),children:e.terms.map(e=>(0,s.jsx)(m(),{suppressHydrationWarning:!0,className:A().term,href:"/glossariy/".concat(e.url),children:e.name},e.id))})]},e.char)})}),(0,s.jsx)("div",{className:"mobileOnly",children:(0,s.jsxs)("div",{ref:p,className:A().lettersList,children:[l.map(e=>(0,s.jsxs)("div",{className:A().letterItem,onClick:()=>o(e.char),"data-char":e.char,children:[(0,s.jsx)("div",{className:A().text,children:e.char}),(0,s.jsx)(d.IconArrowHead,{className:A().arrowIcon})]},e.char)),(0,s.jsx)(x.h,{children:(0,s.jsxs)(v.j,{className:A().popup,contentClassName:A().popupContent,isOpen:!!a&&!!i.length,onClose:()=>o(null),hasCloseButton:!0,children:[(0,s.jsx)("div",{className:A().popupTitle,children:a}),(0,s.jsx)("div",{className:A().termsList,children:i.map(e=>(0,s.jsx)(m(),{className:A().termItem,href:"/glossariy/".concat(e.url),children:(0,s.jsx)("label",{children:e.name})},e.id))})]})})]})})]})})})};var S=n(4588),T=n(5675),G=n.n(T),L={src:"/service-main/_next/static/media/cat-d.35ab7325.png",height:870,width:1005,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAMAAAACh/xsAAAAY1BMVEVMaXF5aGpBLEQmITFMHTFtACL5HSErJDQsHzMnIDIeGSw2MEJUSlTmbmmmq6/OiYcSEiPuu67/GRmSM0mzcHToioZwHDbXxMSCSmD0aWJgTlbPvbn/VVWbUWCJgoReJEDx69jh1cIlAAAAGnRSTlMA+HhcGgf+MYf57az9lISNzOK97/6r/g3f/D8yia8AAAAJcEhZcwAAITgAACE4AUWWMWAAAAA9SURBVHicHcZHEoAgEADBAZEVE+aIyv9facGpG0QQDVDUjatSjGuvnHJQd5/06o1jB2Z+ljNMsB/fZu3KDzMOAkBraUmwAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:7},W={src:"/service-main/_next/static/media/cat-m.b602703c.png",height:585,width:576,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAb1BMVEVMaXGciIfq+OqBPFIiHS4eFyeWKkQmHi9FP1IyJzo1JTwoIjUeHi2/dHi7nqRnVWDs8uTd1c7vt6n3T0v/Bwf/ERLwxrr9WlpjY2hYTlfbzcFhJD/qS0s9NkZjWWGEJ0GujIabWWP/MTHcFB30d3ON116wAAAAGXRSTlMA/hH96vg7NBiE877R6i307UT7imz8aPwVuG+wdgAAAAlwSFlzAAAhOAAAITgBRZYxYAAAAEZJREFUeJwVxkUSgDAQBMCJbhYLTkVw/v9GKn1qgAhgAsCa68oBILMfpsTpIHyJbELsBwnbXiKO3wR7qjtvz4xOpfQuef0BUoMDQXDDi6EAAAAASUVORK5CYII=",blurWidth:8,blurHeight:8},I={src:"/service-main/_next/static/media/SearchInputIcon.65dbb3a1.svg",height:20,width:20,blurWidth:0,blurHeight:0};let M=["А","Б","В","Г","Д","Е","Ё","Ж","З","И","Й","К","Л","М","Н","О","П","Р","С","Т","У","Ф","Х","Ц","Ч","Ш","Щ","Ъ","Ы","Ь","Э","Ю","Я","A - Z","0 - 9"].map(e=>({label:e,id:e})),B=["А - Ж","З - О","П - Х","Ц - Я","A - Z","0 - 9"].map(e=>({label:e,id:e}));var E=n(1402),D=n.n(E);let F=e=>{let{isFixed:t=!1,symbols:n,onSetTerms:r}=e,a=(0,h.useRef)(null),[o,l]=(0,h.useState)(!1),[i,p]=(0,h.useState)(!0),m=(0,S.aF)("m"),x=(0,S.aF)("s");(0,h.useEffect)(()=>{function e(e){a.current&&e.target instanceof Node&&!a.current.contains(e.target)&&l(!1)}return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[a]);let v=(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:(0,u.Z)(D().termsWrapper,{[D().termsWrapperColumn]:o||!t}),children:[!o&&t&&(0,s.jsx)("div",{className:D().rolledUpSearchMobile,onClick:()=>l(!0),children:(0,s.jsx)(G(),{src:I,alt:"search",unoptimized:!0})}),(!m||t)&&(0,s.jsx)(c.A,{className:(0,u.Z)(D().searchChipsBlock,D().tags,{[D().fixedTags]:t&&i}),options:x?B:M,value:n,onChange:r}),m&&!t&&(0,s.jsx)(c.A,{className:(0,u.Z)(D().tags,D().tagsM,{[D().fixedTags]:t&&i}),options:B,value:n,onChange:r}),t&&(0,s.jsx)("div",{"data-element":"dropdown",className:(0,u.Z)({[D().showMoreWrapper]:i,[D().hideChipsWrapper]:!i}),children:!o&&(0,s.jsx)(S.zx,{className:D().showMoreButton,variant:"purple",size:"xs",onClick:()=>{p(e=>!e)},iconLeft:(0,s.jsx)(d.IconArrowHead,{size:20}),label:i?"Еще":"Скрыть"})})]})});return(0,s.jsxs)(_.W2,{children:[!t&&(0,s.jsxs)("div",{className:(0,u.Z)(D().filter,D().notFixed),children:[(0,s.jsx)("div",{className:D().contentTitle,children:"Содержание"}),v]}),t&&(0,s.jsx)("div",{className:D().fixed,children:(0,s.jsx)(_.W2,{className:D().filter,children:v})})]})};var P=n(3960),O=n.n(P);let z=e=>{let{terms:t,symbols:n,onSetTerms:r}=e,[a,o]=(0,h.useState)(!1),l=(0,h.useRef)(null),i=(0,h.useRef)(null);return(0,h.useEffect)(()=>{let e=()=>{var e;o(!!l.current&&window.scrollY>(null===(e=l.current)||void 0===e?void 0:e.clientHeight))};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)},[]),(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("section",{ref:l,className:O().top,children:[(0,s.jsx)(_.W2,{children:(0,s.jsx)(S.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"Финансовый глоссарий"}]})}),(0,s.jsx)(_.W2,{children:(0,s.jsxs)("div",{className:O().wrapper,children:[(0,s.jsx)(G(),{className:(0,u.Z)("mobileOnly",O().imgM),src:W,alt:"cat",unoptimized:!0}),(0,s.jsxs)("div",{className:O().info,children:[(0,s.jsx)("h1",{className:O().title,children:"Финансовый глоссарий"}),(0,s.jsxs)("p",{className:O().subtitle,children:["У нас здесь просто о сложном.",(0,s.jsx)("br",{}),"Введите нужный финансовый термин, а мы расскажем как его понять"]})]}),(0,s.jsx)(G(),{className:(0,u.Z)("desktopOnly",O().imgD),src:L,alt:"cat",unoptimized:!0})]})}),(0,s.jsx)("div",{ref:i,children:(0,s.jsx)(F,{isFixed:a,terms:t,symbols:n,onSetTerms:r})})]})})},$=e=>{let{terms:t}=e,[n,r]=(0,c.W)("symbols");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(z,{terms:t,symbols:n,onSetTerms:r}),(0,s.jsx)(N,{terms:t,symbols:n})]})};var R=n(6234),U=n.n(R);let H=()=>({title:"Словарь банковских и экономических терминов",description:"Финансовый глоссарий - подробное объяснение терминов и устойчивых фраз в банковской и экономической сфере. Удобный поиск нужного определения, алфавитный указатель."}),Z=e=>{let{env:t,terms:n,bestOffersData:r,sections:c}=e,{asPath:d}=(0,o.useRouter)(),_=H();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("main",{className:U().page,children:[(0,s.jsx)(l.N,{env:t,title:_.title,description:_.description,path:d}),(0,s.jsx)($,{terms:n}),r&&(0,s.jsx)(a.MJ,{tabs:r,baseUrl:t.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(t.ASSETS_BASE_URL,"/mp-assets"),dataLayerPush:i.l}),c.journal&&(0,s.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:c.journal}}),c.support&&(0,s.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:c.support}})]})})},Y=()=>{let e="";for(let t=0;t<36;t++){let n=16*Math.random()|0;[8,13,18,23].includes(t)&&(e+="-"),e+=(14===t?"4":19===t?3&n|8:n).toString(16)}return e};var V=n(2313),J=n.n(V);let X=e=>{let{params:t,children:n,className:r,config:a}=e,[o,l]=(0,h.useState)(!1),[i,c]=(0,h.useState)(""),d=(0,h.useRef)(null),_=(0,h.useRef)("");return(0,h.useEffect)(()=>{_.current&&(null==a?void 0:a.yaContextCb)&&(null==a?void 0:a.Ya)&&a.yaContextCb.push(()=>{a.Ya.adfoxCode.destroy(_.current)}),c(Y())},[null==a?void 0:a.Ya,null==a?void 0:a.yaContextCb,t.pp]),(0,h.useEffect)(()=>{if(_.current===i)return;if(!a){l(!0);return}let e=()=>{var e,t;let n=null===(e=d.current)||void 0===e?void 0:e.querySelector("iframe");n?n.style.height="".concat(null===(t=n.contentWindow)||void 0===t?void 0:t.document.body.scrollHeight,"px"):console.warn("ads blocked"),l(!n)};a.yaContextCb&&a.yaContextCb.push(()=>{a.Ya.adfoxCode.create({ownerId:a.ownerId,containerId:"adfox_".concat(i),params:t,onRender:e})}),setTimeout(e,5e3),_.current=i},[i,a,t]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,u.Z)(o&&J().hide,r),ref:d,id:"adfox_".concat(i)},i),o&&n]})},q=()=>{let[e,t]=(0,h.useState)();return(0,h.useEffect)(()=>{window&&window.Ya&&window.yaContextCb&&t({ownerId:406293,Ya:window.Ya,yaContextCb:window.yaContextCb})},[]),e};var K={src:"/service-main/_next/static/media/glossary_banner.bc2c832d.png",height:303,width:577,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAMAAACEE47CAAAAP1BMVEXUqn/h6/WOjsuuyPfIzuO1z/+nxP/IzNS8zMy1yvWpqaqWmrNeacCurqw4S8+NkbW4uLt1e7tmbchKUr2rq6fGTFwFAAAAFHRSTlMBGk9GYlBgRlowxXCPixvYkNRGPk0d6HsAAAAJcEhZcwAACxMAAAsTAQCanBgAAAApSURBVHicBcGFAQAgDMCwottw+/9WErQoWID1OhKTIXM3rzHDuKeK4wMRJwD+/NY17gAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:4},Q=n(1851),ee=n.n(Q);let et=()=>(0,s.jsxs)("div",{className:ee().content,children:[(0,s.jsx)("h3",{className:ee().bannerTitle,children:"Управляйте финансами через приложение Финуслуг"}),(0,s.jsx)(G(),{src:K,alt:"glossary_banner",className:ee().bannerPicture,unoptimized:!0})]});var en=["finuslugi.ru","inguru.dev","moex.com"];let es=e=>e.includes("//")&&!en.find(t=>e&&e.indexOf(t)>=0),er=e=>e?e=e.replace(/href="(.*?)"/gi,(e,t)=>"".concat(e).concat(es(t)?' rel="nofollow"':"")):"";var ea=n(8642),eo=n.n(ea);let el=e=>{let{className:t,data:n}=e;if(!Array.isArray(n))return null;let r=(()=>{let e;let t=[],r=1,a=0;return n.forEach((t,s)=>{"header"==t.type&&(3==++a&&("banner"==n[s-1].type&&(e=n.splice(s-1,1)),"banner"==n[s+1].type&&(e=n.splice(s+1,1))),e&&4==a&&n.splice(s,0,e[0]))}),n.forEach((t,s)=>{"header"==t.type&&(3==++a&&("banner"==n[s-1].type&&(e=n.splice(s-1,1)),"banner"==n[s+1].type&&(e=n.splice(s+1,1))),e&&4==a&&n.splice(s,0,e[0]))}),n.forEach((e,n)=>{var a,o,l,i,c,d,_,u,p,m,h,x,v;switch(e.type){case"header":t.push((0,s.jsx)("h2",{id:"content_header_".concat(r),children:null===(a=e.data)||void 0===a?void 0:a.text},n)),r++;break;case"sub_header":t.push((0,s.jsx)("h3",{children:null===(o=e.data)||void 0===o?void 0:o.text},n));break;case"paragraph":t.push((0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:(null===(l=e.data)||void 0===l?void 0:l.text)||""}},n));break;case"link":t.push((0,s.jsx)("div",{className:eo().blockLink,children:(0,s.jsx)("a",{target:"_blank",href:null===(i=e.data)||void 0===i?void 0:i.url,children:null===(c=e.data)||void 0===c?void 0:c.text})},n));break;case"dossier":t.push((0,s.jsxs)("div",{className:eo().dossierDateItem,children:[(0,s.jsx)("span",{className:eo().date,children:null===(d=e.data)||void 0===d?void 0:d.year}),(0,s.jsx)("div",{className:eo().text,dangerouslySetInnerHTML:{__html:(null===(_=e.data)||void 0===_?void 0:_.text)||""}})]},n));break;case"html":t.push((0,s.jsx)("div",{className:eo().htmlBlock,dangerouslySetInnerHTML:{__html:er((null===(u=e.data)||void 0===u?void 0:u.html)||"")}},n));break;case"annotation":t.push((0,s.jsx)("div",{className:eo().annotation,dangerouslySetInnerHTML:{__html:er((null===(p=e.data)||void 0===p?void 0:p.text)||"")}},n));break;case"company-annotation":t.push((0,s.jsx)("div",{className:eo().companyAnnotation,dangerouslySetInnerHTML:{__html:(null===(m=e.data)||void 0===m?void 0:m.text)||""}},n));break;case"keynote":t.push((0,s.jsx)("div",{className:eo().keynoteWrapper,children:(0,s.jsx)("p",{className:eo().keynote,dangerouslySetInnerHTML:{__html:(null===(h=e.data)||void 0===h?void 0:h.text)||""}})},n));break;case"image":t.push((0,s.jsx)(G(),{src:(null===(x=e.data)||void 0===x?void 0:x.url)||"",alt:"image"},n));break;case"table":(null===(v=e.data)||void 0===v?void 0:v.html)&&t.push((0,s.jsxs)("div",{className:eo().contentTableWrapper,children:[e.data.title?(0,s.jsx)("h4",{children:e.data.title}):"",(0,s.jsx)("div",{className:eo().contentTableContent,dangerouslySetInnerHTML:{__html:er(e.data.html||"")}})]},n))}}),t})();return(0,s.jsx)("div",{className:(0,u.Z)(eo().contentBlocks,t),children:r})};var ei=n(6773),ec=n.n(ei);let ed=e=>e.replace(/<[^>]*>/g,""),e_=e=>{let{data:t}=e,[n,r]=(0,h.useState)(!0),[a,o]=(0,h.useState)(!1),l=(0,h.useRef)(null),i=(0,h.useRef)(null);if((0,h.useEffect)(()=>{let e=()=>{l.current&&i.current&&l.current.scrollWidth>i.current.offsetWidth?o(!0):o(!1)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),t.term.content.length>0){var c;let e={html:ed((null===(c=t.term.content[0].data)||void 0===c?void 0:c.html)||"")};t.term.content[0].data=e}return(0,s.jsx)("section",{className:ec().content,children:(0,s.jsx)(_.W2,{className:ec().termContainer,children:(0,s.jsx)("div",{className:ec().wrapper,children:(0,s.jsxs)("div",{className:ec().termBlock,children:[(0,s.jsxs)("div",{className:ec().term,children:[(0,s.jsx)("div",{className:ec().title,children:t.term.name}),(0,s.jsx)(el,{className:ec().description,data:t.term.content})]}),(0,s.jsxs)("div",{ref:i,className:ec().relatedTerms,children:[(0,s.jsx)("label",{children:"Связанные термины"}),(0,s.jsxs)("div",{ref:l,className:(0,u.Z)(ec().tags,n&&ec().hiddenTags),children:[t.term.similar_terms.map(e=>(0,s.jsx)(m(),{href:"/glossariy/".concat(e.url),children:e.name},e.id)),a&&(0,s.jsx)("div",{"data-element":"dropdown",className:(0,u.Z)({[ec().hiddenLinkedTermsWrapper]:n}),children:(0,s.jsx)(S.zx,{className:ec().showMoreButton,variant:"purple",size:"xs",onClick:()=>{r(e=>!e)},label:n?"Еще":"Скрыть",iconLeft:(0,s.jsx)(d.IconArrowHead,{size:20,className:(0,u.Z)(n?ec().arrowDown:ec().arrowUp,ec().showMoreArrow)})})})]})]}),(t.term.prev_term||t.term.next_term)&&(0,s.jsxs)("div",{className:ec().linkContainer,children:[(0,s.jsx)("label",{className:ec().linkContainerText,children:"Листаем словарь"}),(0,s.jsxs)("div",{className:ec().linkContainerButtons,children:[t.term.prev_term?(0,s.jsxs)("div",{className:ec().linkContainerButton,children:[(0,s.jsx)(S.zx,{as:"a",className:(0,u.Z)(ec().button,ec().prev),href:"/glossariy/".concat(t.term.prev_term.url),label:"Предыдущий термин",size:"s",appearance:"ghost",variant:"purple",iconLeft:(0,s.jsx)(d.IconArrowHead,{size:20})}),(0,s.jsx)("div",{className:ec().linkContainerTitle,children:t.term.prev_term.name})]}):(0,s.jsx)("div",{}),t.term.next_term?(0,s.jsxs)("div",{className:ec().linkContainerButton,children:[(0,s.jsx)(S.zx,{as:"a",className:ec().button,href:"/glossariy/".concat(t.term.next_term.url),label:"Следующий термин",size:"s",appearance:"ghost",variant:"purple",iconRight:(0,s.jsx)(d.IconArrowHead,{size:20})}),(0,s.jsx)("div",{className:ec().linkContainerTitle,children:t.term.next_term.name})]}):(0,s.jsx)("div",{})]})]})]})})})})},eu={};var ep=n(4645),em=n.n(ep);let eh=e=>{let t="".concat(e.toLocaleUpperCase()," - что это простыми словами | Глоссарий Финуслуги.рy"),n="Узнай ❓ что такое ".concat(e," ✅ Что означает термин ").concat(e," — читать в словаре на Финуслуги.ру. \uD83D\uDC4D Подробное объяснение терминов и устойчивых фраз в банковской и экономической сфере.\n        Удобный поиск нужного определения, алфавитный указатель.");return{title:t,description:n}},ex=e=>{var t;let{env:n,sections:r,data:c,bestOffersData:d}=e,{asPath:u}=(0,o.useRouter)(),p=(0,h.useMemo)(()=>eh(c.term.name),[c]),m=q(),x=JSON.stringify({"@context":"https://schema.org","@type":"DefinedTerm",name:c.term.name,description:ed((null===(t=c.term.content[0].data)||void 0===t?void 0:t.html)||""),termCode:c.term.id,url:"".concat(n.NEXT_PUBLIC_BASE_URL).concat(u)});return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("main",{className:em().page,children:[(0,s.jsx)(l.N,{env:n,title:p.title,description:p.description,path:u}),(0,s.jsx)(_.W2,{children:(0,s.jsx)(S.Oo,{style:{padding:"16px 0"},items:[{href:"/",label:"Главная"},{label:"Финансовый словарь",href:"/glossariy"},{label:c.term.name}]})}),(0,s.jsx)("div",{children:(0,s.jsxs)(_.W2,{className:em().contentWrapper,children:[(0,s.jsx)("div",{className:em().detailSectionWrapper,children:(0,s.jsx)(e_,{data:c})}),(0,s.jsxs)("div",{className:em().leftSideBlock,children:[(0,s.jsx)(X,{config:m,params:eu,className:em().adFox}),(0,s.jsx)(et,{})]})]})}),d&&(0,s.jsx)(a.MJ,{tabs:d,baseUrl:n.NEXT_PUBLIC_BASE_URL,s3Assets:"".concat(n.ASSETS_BASE_URL,"/mp-assets"),dataLayerPush:i.l}),r.journal&&(0,s.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r.journal}}),r.support&&(0,s.jsx)("div",{suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:r.support}}),(0,s.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:x}})]})})};var ev=!0,ey=e=>{let{env:t,layout:n,commonBlocksSections:a,commonBlocksData:o,terms:l,isDetailPage:i,termDetail:c,bestOffersData:d}=e;return(0,s.jsxs)(r.A,{env:t,data:n,sections:o,children:[!i&&(0,s.jsx)(Z,{env:t,terms:l,bestOffersData:d,sections:a}),i&&(0,s.jsx)(ex,{env:t,terms:l,bestOffersData:d,data:c,sections:a})]})}},5331:function(e){e.exports={overlay:"ClickOutside_overlay___2Sjp",open:"ClickOutside_open__jk_n_",fade:"ClickOutside_fade__rEbST",close:"ClickOutside_close__yXcIJ","fade-out":"ClickOutside_fade-out__O_KmR",shine:"ClickOutside_shine__4xF87"}},331:function(e){e.exports={mobilePopup:"MobilePopup_mobilePopup__1ChJX",content:"MobilePopup_content__q4Uy0",contentFull:"MobilePopup_contentFull__G4SZI",contentLine:"MobilePopup_contentLine___ZAWF",contentContainer:"MobilePopup_contentContainer__CPn4c",min:"MobilePopup_min__Hr8uT",contentTransition:"MobilePopup_contentTransition__cEQsO",contentTransitionOpen:"MobilePopup_contentTransitionOpen__qBKfr",title:"MobilePopup_title__eyvil",closeContainer:"MobilePopup_closeContainer__Yziwx",closeButton:"MobilePopup_closeButton__RGZyc",smallContentContainer:"MobilePopup_smallContentContainer__MYVzx",shine:"MobilePopup_shine__KJf9N"}},2278:function(e){e.exports={footer:"MobileModalFooter_footer__7tuQo",footerWithoutShadow:"MobileModalFooter_footerWithoutShadow__zrZro",shine:"MobileModalFooter_shine__mRIKk"}},2313:function(e){e.exports={hide:"YaAdFoxBanner_hide__gfjEV",shine:"YaAdFoxBanner_shine__xZAj3"}},8642:function(e){e.exports={contentBlocks:"ContentBlocks_contentBlocks__LNcJD",annotation:"ContentBlocks_annotation__x0RzI",contentTableWrapper:"ContentBlocks_contentTableWrapper__KPaZ_",keynoteWrapper:"ContentBlocks_keynoteWrapper__JxpnA",keynote:"ContentBlocks_keynote__Ougc5",blockLink:"ContentBlocks_blockLink__bBo55",shine:"ContentBlocks_shine__0wHiw"}},6234:function(e){e.exports={page:"Glossary_page___X_EY",shine:"Glossary_shine__mGPP3"}},879:function(e){e.exports={title:"GlossaryContent_title__lQMtV",letter:"GlossaryContent_letter__LcGO6",text:"GlossaryContent_text__0Gyi1",popupTitle:"GlossaryContent_popupTitle__tkfQd",terms:"GlossaryContent_terms__AMLZa",wrapper:"GlossaryContent_wrapper__ee4HX",filter:"GlossaryContent_filter__B4YJ9",tags:"GlossaryContent_tags___jc7t",letterBlock:"GlossaryContent_letterBlock__ksAVI",termsColumns:"GlossaryContent_termsColumns__eDHQ_",two:"GlossaryContent_two__b9Y5r",one:"GlossaryContent_one__MognG",term:"GlossaryContent_term__dn0Pn",lettersList:"GlossaryContent_lettersList__Owsvu",letterItem:"GlossaryContent_letterItem__WUo5H",arrowIcon:"GlossaryContent_arrowIcon__fBHw9",popup:"GlossaryContent_popup__iHgWu",popupContent:"GlossaryContent_popupContent___OGfk",termsList:"GlossaryContent_termsList__lKxk2",termItem:"GlossaryContent_termItem__qVgqM",chips:"GlossaryContent_chips__IIJFE",shine:"GlossaryContent_shine__IIsRN"}},1402:function(e){e.exports={contentTitle:"GlossaryFilter_contentTitle__HLOE1",fixed:"GlossaryFilter_fixed__33IWv",filter:"GlossaryFilter_filter__21_L8",fixedTags:"GlossaryFilter_fixedTags__EXFji",tags:"GlossaryFilter_tags__Sc2MM",termsWrapper:"GlossaryFilter_termsWrapper__vav8i",notFixed:"GlossaryFilter_notFixed__Zz54q",tagsD:"GlossaryFilter_tagsD__s4Afb",tagsM:"GlossaryFilter_tagsM__ydfUb",rolledUpSearchMobile:"GlossaryFilter_rolledUpSearchMobile__lFm1w",expandedMobileSearchWrapper:"GlossaryFilter_expandedMobileSearchWrapper__kDsgz",activeSearchWrapper:"GlossaryFilter_activeSearchWrapper__DCghv",termsWrapperColumn:"GlossaryFilter_termsWrapperColumn__ZeavH",mobileSearchWrapper:"GlossaryFilter_mobileSearchWrapper__AEVth",searchWrapperD:"GlossaryFilter_searchWrapperD__6hUP8",hideChipsWrapper:"GlossaryFilter_hideChipsWrapper__WADII",showMoreWrapper:"GlossaryFilter_showMoreWrapper__uWks2",showMoreButton:"GlossaryFilter_showMoreButton__MQJAv",showMoreArrow:"GlossaryFilter_showMoreArrow__JY5Ku",searchChipsBlock:"GlossaryFilter_searchChipsBlock__Ni5No",shine:"GlossaryFilter_shine__FHGN0"}},500:function(e){e.exports={title:"GlossaryTermsSection_title__kB5Vx",letter:"GlossaryTermsSection_letter__bd19_",text:"GlossaryTermsSection_text__9sPBJ",popupTitle:"GlossaryTermsSection_popupTitle__XiV_o",terms:"GlossaryTermsSection_terms__C9Agb",wrapper:"GlossaryTermsSection_wrapper___Ft3D",desktopOnly:"GlossaryTermsSection_desktopOnly__QKVAx",filter:"GlossaryTermsSection_filter__LuEEr",tags:"GlossaryTermsSection_tags__Itx2_",letterBlock:"GlossaryTermsSection_letterBlock__84TBj",termsColumns:"GlossaryTermsSection_termsColumns__APCws",two:"GlossaryTermsSection_two__OPq9O",one:"GlossaryTermsSection_one__XjUFF",term:"GlossaryTermsSection_term__Xecnt",lettersList:"GlossaryTermsSection_lettersList__9f0Jm",letterItem:"GlossaryTermsSection_letterItem__9dYPL",arrowIcon:"GlossaryTermsSection_arrowIcon__OYWWB",popup:"GlossaryTermsSection_popup__VwkYQ",popupContent:"GlossaryTermsSection_popupContent__0vaAE",termsList:"GlossaryTermsSection_termsList__Es8NE",termItem:"GlossaryTermsSection_termItem__VL6f_",shine:"GlossaryTermsSection_shine__14Wwi"}},3960:function(e){e.exports={title:"GlossaryTopSection_title__LMbOg",top:"GlossaryTopSection_top__x3Wy_",wrapper:"GlossaryTopSection_wrapper__CXMKW",imgM:"GlossaryTopSection_imgM__vPYGM",info:"GlossaryTopSection_info__Lm_VB",subtitle:"GlossaryTopSection_subtitle__wX3Xz",imgD:"GlossaryTopSection_imgD__2cLFP",shine:"GlossaryTopSection_shine__mb1II"}},4645:function(e){e.exports={page:"GlossaryDetail_page___43Tc",contentWrapper:"GlossaryDetail_contentWrapper__jeNOd",detailSectionWrapper:"GlossaryDetail_detailSectionWrapper__pNcBT",leftSideBlock:"GlossaryDetail_leftSideBlock__fcAUC",adFox:"GlossaryDetail_adFox__SD8Oa",shine:"GlossaryDetail_shine__Rsc1A"}},1851:function(e){e.exports={content:"GlossaryDetailBannerSection_content__O__pw",bannerTitle:"GlossaryDetailBannerSection_bannerTitle__M1iN2",bannerPicture:"GlossaryDetailBannerSection_bannerPicture__ZNZWO",shine:"GlossaryDetailBannerSection_shine__v02VV"}},6773:function(e){e.exports={title:"GlossaryDetailContentSection_title__gLFyR",catalogLinkWrapper:"GlossaryDetailContentSection_catalogLinkWrapper__Judtt",shareWrapper:"GlossaryDetailContentSection_shareWrapper__uVu4x",relatedTerms:"GlossaryDetailContentSection_relatedTerms__2CoH9",content:"GlossaryDetailContentSection_content__xJ8xY",wrapper:"GlossaryDetailContentSection_wrapper__FbTjq",termBlock:"GlossaryDetailContentSection_termBlock__XFAvz",term:"GlossaryDetailContentSection_term__3GU91",description:"GlossaryDetailContentSection_description__Few42",linkContainer:"GlossaryDetailContentSection_linkContainer__8_6hn",linkContainerText:"GlossaryDetailContentSection_linkContainerText__ugcYT",linkContainerButtons:"GlossaryDetailContentSection_linkContainerButtons__02Zk5",linkContainerButton:"GlossaryDetailContentSection_linkContainerButton__spXiv",linkContainerTitle:"GlossaryDetailContentSection_linkContainerTitle__J6aov",button:"GlossaryDetailContentSection_button__A0FGr",prev:"GlossaryDetailContentSection_prev__92FvE",additional:"GlossaryDetailContentSection_additional__0L_7J",tagsClose:"GlossaryDetailContentSection_tagsClose__ofjnx",showMoreButton:"GlossaryDetailContentSection_showMoreButton__77zD1",tags:"GlossaryDetailContentSection_tags__UKrP_",hiddenTags:"GlossaryDetailContentSection_hiddenTags__xgt26",hiddenLinkedTermsWrapper:"GlossaryDetailContentSection_hiddenLinkedTermsWrapper__b3QuJ",showMoreArrow:"GlossaryDetailContentSection_showMoreArrow__wpo2e",arrowUp:"GlossaryDetailContentSection_arrowUp__bORqF",arrowDown:"GlossaryDetailContentSection_arrowDown__i9X9N",termContainer:"GlossaryDetailContentSection_termContainer__XtTN2",buttonIcon:"GlossaryDetailContentSection_buttonIcon__FDqce",shine:"GlossaryDetailContentSection_shine__A8kLN"}},5410:function(e,t,n){"use strict";n.d(t,{C:function(){return d}});var s=n(5893),r=n(9194),a=n(4588),o=n(6010),l=n(4941);let i=(0,l.g)("check-all","sc"),c=Object.freeze({wrapper:`${i}__wrapper`,link:`${i}__link`,icon:`${i}__icon`,iconGray:`${i}__icon--gray`}),d=({children:e,className:t,linkClassName:n,iconGrayBackground:l,Link:i=a.rU,event:d,href:_,dataLayerPush:u})=>(0,s.jsx)("div",{className:(0,o.Z)(c.wrapper,t),onClick:()=>{d&&u(d)},children:(0,s.jsxs)(i,{className:(0,o.Z)(c.link,n),href:_,children:[e,(0,s.jsx)("span",{className:(0,o.Z)(c.icon,{[c.iconGray]:l}),children:(0,s.jsx)(r.IconFdsArrowUpRightSmallO,{size:24})})]})})},7215:function(e,t,n){"use strict";n.d(t,{MJ:function(){return z}});var s,r=n(5893),a=n(6535),o=n(4588),l=n(6010),i=n(7294),c=n(5410),d=n(171),_=n(9194),u=n(4941),p=n(1069),m=n(7769),h=((s=h||{}).light="light",s.gray="gray",s);let x=e=>"kasko"===e||"osago"===e,v=(0,u.g)("best-offers-banner","sc"),y=Object.freeze({bestOffersBaner:v,wrapper:`${v}__wrapper`,wideWrapper:`${v}__wrapper--wide`,whiteWrapper:`${v}__wrapper--white`,content:`${v}__content`,header:`${v}__header`,title:`${v}__title`,subtitle:`${v}__subtitle`,icon:`${v}__icon`,iconBlack:`${v}__icon--black`,image:`${v}__image`}),f=({title:e,image:t,url:n,description:s,backgroundColor:o,wide:i,theme:c,handleBannerDataLayerPush:d,className:u})=>{let p=c===h.gray,m={"--bg-base":(null==o?void 0:o.base)??(p?"var(--color-white)":"var(--color-gray-400)"),"--bg-hover":(null==o?void 0:o.hover)??"var(--color-gray-500)"};return(0,r.jsxs)("div",{className:(0,l.Z)(y.wrapper,u,{[y.wideWrapper]:i}),style:m,onClick:()=>{d(),window.open(n,"_blank")},children:[(0,r.jsxs)("div",{className:y.content,children:[(0,r.jsxs)("div",{className:y.header,children:[(0,r.jsx)(a.xv,{weight:"medium",size:"24",className:y.title,children:e}),(0,r.jsx)("div",{className:(0,l.Z)(y.icon,{[y.iconBlack]:p}),children:(0,r.jsx)(_.IconFdsArrowUpRightSmallO,{size:32})})]}),s&&(0,r.jsx)(a.xv,{size:"16",children:s})]}),(null==t?void 0:t.url)&&(0,r.jsx)("picture",{className:y.image,children:(0,r.jsx)("img",{src:t.url,width:t.width??150,height:t.height??"auto",alt:`Баннер ${e}`,loading:"lazy"})})]})},g=(0,u.g)("offer-card","sc"),b=Object.freeze({offerCard:g,wrapper:`${g}__wrapper`,whiteWrapper:`${g}__wrapper--white`,bankInfo:`${g}__bankInfo`,units:`${g}__units`,unitsColumn:`${g}__units--column`,unit:`${g}__unit`,unitRow:`${g}__unit--row`,unitTitleWrapper:`${g}__unitTitleWrapper`,unitTitle:`${g}__unitTitle`,tooltipIcon:`${g}__tooltipIcon`,unitValue:`${g}__unitValue`,button:`${g}__button`,buttonRounded:`${g}__button--rounded`}),C=e=>{let t=e.split("₽");return t.map((e,n)=>(0,r.jsxs)(i.Fragment,{children:[e,n<t.length-1&&(0,r.jsx)(a.xv,{fontFamily:"primary",weight:"regular",children:"₽"})]},`${e}-${n}`))},w=({title:e,value:t,tooltip:n,unitsAsColumn:s,isTitleUnit:i})=>(0,r.jsxs)("div",{className:(0,l.Z)(b.unit,{[b.unitRow]:s}),children:[(0,r.jsxs)("div",{className:b.unitTitleWrapper,children:[(0,r.jsx)(a.xv,{size:"14",className:b.unitTitle,children:e}),n&&(0,r.jsx)(o.u,{text:n,children:(0,r.jsx)(_.IconFdsQuestionCircleO,{className:b.tooltipIcon})})]}),(0,r.jsx)(a.xv,{weight:"medium",size:i?"18":s?"16":"24",className:b.unitValue,children:e.includes("Рейтинг")?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(_.IconFdsStarF,{size:16,style:{color:"var(--color-orange-400)"}}),t]}):C(t)})]}),j=({companyName:e,name:t,url:n,logo:s,units:a,unitsAsColumn:i,additionalButton:c,dataLayerPush:d,eventCategory:_,productType:u,theme:m,buttonClassName:x,eventValueByUnitTitle:v})=>{let y=n=>{let s={event:"data-event",eventCategory:_,eventAction:`click_button_${(0,p.t)(n)}_${u}`,eventLabel:(0,p.t)(`${e}_${t}`)};if(v){let e=a.find(e=>e.title.toLowerCase()===v.toLowerCase());e&&(s.eventValue=(0,p.t)(e.value))}d(s)};return(0,r.jsxs)("div",{className:(0,l.Z)(b.wrapper,{[b.whiteWrapper]:m===h.gray}),children:[(0,r.jsxs)("div",{className:b.bankInfo,children:[s&&(0,r.jsx)("img",{src:s,width:56,height:56,alt:`${e} logo`}),(0,r.jsx)(w,{title:t,value:e,isTitleUnit:!0})]}),(0,r.jsx)("div",{className:(0,l.Z)(b.units,{[b.unitsColumn]:i}),children:a.map(e=>(0,r.jsx)(w,{title:e.title,value:e.value,tooltip:e.tooltip,unitsAsColumn:i},`${e.title}-${e.value}`))}),c&&(0,r.jsx)(o.zx,{as:"a",className:(0,l.Z)(b.button,b.buttonRounded),size:"xs",label:c.text,href:c.url,variant:"white",onClick:()=>y(c.text)}),(0,r.jsx)(o.zx,{as:"a",className:(0,l.Z)(b.button,x),size:"xs",label:"Подробнее",href:n,onClick:()=>y("podrobnee_o_kartochke_iz")})]})},A=(0,u.g)("offers-list","sc"),k=Object.freeze({offersList:A,wrapper:`${A}__wrapper`,sliderWrapper:`${A}__sliderWrapper`,offerItem:`${A}__offerItem`,compact:`${A}__offerItem--compact`,bannerItem:`${A}__bannerItem`}),N=({offers:e,banner:t,dataLayerPush:n,eventCategory:s,productType:a,theme:i,singleProduct:c})=>{let d=e.length<=2;return(0,r.jsxs)(o.iR,{options:{slidesPerView:"auto",spaceBetween:0,autoplay:{delay:3e3,disableOnInteraction:!1}},breakpoints:{xl:{autoplay:!1}},className:k.sliderWrapper,pagination:!0,children:[e.slice(0,3).map(e=>(0,r.jsx)(o.wI,{className:(0,l.Z)(k.offerItem,{[k.compact]:c}),children:(0,r.jsx)(j,{...e,dataLayerPush:n,eventCategory:s,productType:a,theme:i})},e.id)),t&&(0,r.jsx)(o.wI,{className:k.bannerItem,children:(0,r.jsx)(f,{...t,handleBannerDataLayerPush:()=>{n({event:"data-event",eventCategory:s,eventAction:"click_bnr_banner_top_predlozheniy",eventLabel:a})},wide:d,theme:i})})]})},S=(0,u.g)("osago-tab","sc"),T=Object.freeze({osagoTab:S,wrapper:`${S}__wrapper`,card:`${S}__card`,whiteCard:`${S}__card--white`,image:`${S}__image`,content:`${S}__content`,inputWrapper:`${S}__inputWrapper`,select:`${S}__select`,input:`${S}__input`,buttonLinkWrapper:`${S}__buttonLinkWrapper`,button:`${S}__button`,banner:`${S}__banner`}),G={kasko:{title:"Рассчет Каско за минуту",description:"Выберите лучшие условия для оформления полиса",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}},osago:{title:"ОСАГО с экономией до 78%",description:"Предварительная цена после ввода номера ТС",backgroundColor:{base:"#f1f5ff",hover:"#a3ceec"}}},L=[{label:"Мотоцикл",value:"moto"},{label:"Автомобиль",value:"auto"}],W=Object.fromEntries(L.map(e=>[e.value,e])),I={auto:{mask:"a 000 aa 00",placeholder:"A 000 AA 00"},moto:{mask:"0000 aa 00",placeholder:"0000 AA 00"}},M="АВЕКМНОРСТУХ",B=RegExp(`[${M}]`,"i"),E=RegExp(`[^0-9${M}]`,"gi"),D=({type:e,baseUrl:t,s3Assets:n,banner:s,dataLayerPush:c,eventCategory:d,theme:_})=>{let u="osago"===e,x=(0,m.xn)(t,"osago"),v=(0,m.xn)(x,"step-car"),y=(0,m.xn)(t,"kasko"),g=(0,m.xn)(y,"vehicle"),b=u?v:g,[C,w]=(0,i.useState)(""),[j,A]=(0,i.useState)("auto"),{mask:k,placeholder:N}=I[j],S=_===h.gray,M=`?${new URLSearchParams({type:u?j:"auto",license:C})}`,D=(0,m.xn)(b,M),F=s??{...G[e],url:u?x:y,image:n?{url:(0,m.xn)(n,`pl-common-blocks-renderer/topOffers/${u?"icon_osago":"icons_car"}.png`),width:204,height:160}:void 0},P=W[j].label,O=(t,n)=>{c({event:"data-event",eventCategory:d,eventAction:t,eventLabel:n??e})};return(0,r.jsxs)("div",{className:T.wrapper,children:[(0,r.jsxs)("div",{className:(0,l.Z)(T.card,{[T.whiteCard]:S}),children:[n&&(0,r.jsx)("picture",{children:(0,r.jsx)("img",{src:`${n}/pl-common-blocks-renderer/topOffers/auto_bg.png`,alt:"Автомобиль",loading:"lazy",className:T.image})}),(0,r.jsxs)("div",{className:T.content,children:[(0,r.jsxs)(a.X6,{as:"h3",type:"h3",children:["Онлайн калькулятор ",u?"ОСАГО":"Каско"]}),(0,r.jsxs)("div",{className:T.inputWrapper,children:[u&&(0,r.jsx)(o.Ph,{options:L,value:W[j],label:"Тип транспорта",variant:S?"primary":"secondary",className:T.select,onChange:e=>{w(""),A(e.value),O(`selector_item_${(0,p.t)(e.label)}`)}}),(0,r.jsx)(o.An,{label:"Госномер",variant:S?"primary":"secondary",maskOpts:{mask:k,definitions:{a:B}},maskPlaceholder:N,value:C,className:T.input,onChange:(e,t)=>{let n=t.replace(E,"");w(n.toUpperCase())},onClick:()=>O(`message_field_${(0,p.t)(P)}`),onBlur:()=>O(`on_message_field_${(0,p.t)(P)}`)}),(0,r.jsxs)(a.xv,{children:["У меня"," ",(0,r.jsx)(o.rU,{href:b,onClick:()=>{O("click_link_net_nomera",b)},children:"нет номера"})]})]}),(0,r.jsx)(o.zx,{as:"a",href:D,size:"s",className:T.button,onClick:()=>{O(`click_button_rasschitat_${(0,p.t)(P)}`,D)},children:"Рассчитать"})]})]}),(0,r.jsx)("div",{className:T.banner,children:(0,r.jsx)(f,{...F,handleBannerDataLayerPush:()=>{O("click_bnr_banner_top_predlozheniy")}})})]})},F=(0,u.g)("best-offers","sc"),P=Object.freeze({bestOffers:F,graySection:`${F}--gray`,singleProduct:`${F}--singleProduct`,title:`${F}__title`,singleProductTitle:`${F}__title--singleProduct`,chips:`${F}__chips`,warning:`${F}__warning`,allOffersLink:`${F}__allOffersLink`}),O={вклады:"вкладам",облигации:"облигациям",кредиты:"кредитам",займы:"займам","Кредитные карты":"кредитным картам",каско:"каско",осаго:"ОСАГО","дебетовые карты":"дебетовым картам",ипотека:"ипотеке",автокредиты:"автокредитам"},z=({tabs:e,baseUrl:t,s3Assets:n,eventCategory:s="best-offers",dataLayerPush:_,singleProduct:u=!1,theme:p=h.light})=>{let m=p===h.gray,v=e.map(e=>({url:e.productType,title:e.name})),[y,f]=(0,i.useState)(v[0].url),g=e.find(e=>e.productType===y)??e[0],b=(0,o._m)("xl"),C=O[g.name.toLowerCase()],w=C?`по ${C}`:g.name,j=x(null==g?void 0:g.productType)&&t?(0,r.jsx)(D,{type:g.productType,banner:g.banner,baseUrl:t,s3Assets:n,dataLayerPush:_,eventCategory:s,theme:p}):null;return(0,r.jsx)("section",{className:(0,l.Z)(P.bestOffers,{[P.singleProduct]:u,[P.graySection]:m}),children:(0,r.jsxs)(a.W2,{children:[(0,r.jsxs)(a.X6,{as:"h2",type:u?"h2":"display",className:(0,l.Z)(P.title,!u&&(b?"mb-8":"mb-6"),u&&(0,l.Z)("mb-0",P.singleProductTitle)),children:["Лучшие предложения ",u?w:"сегодня"]}),!u&&(0,r.jsx)(d.N,{items:v,maxNumberOfLines:2,activeChipId:y,variant:m?"white":"gray",className:P.chips,onClick:t=>{f(t);let n=e.find(e=>e.productType===t);_({event:"data-event",eventCategory:s,eventAction:"click_chip_top_predlozheniy_vybor",eventLabel:null==n?void 0:n.productType})}}),(0,r.jsxs)("div",{children:[j??(0,r.jsx)(N,{offers:g.offers,banner:g.banner,dataLayerPush:_,eventCategory:s,productType:g.productType,theme:p,singleProduct:u}),g.hasWarning&&(0,r.jsx)(a.xv,{as:"p",size:"16",className:P.warning,children:g.warningCustomText??"Оценивайте свои финансовые возможности и риски. Изучите все условия кредита (займа)"})]}),g.checkAllUrl&&(0,r.jsx)(c.C,{href:g.checkAllUrl,event:{event:"data-event",eventCategory:s,eventAction:"link",eventLabel:`Показать все предложения ${g.productType}`},dataLayerPush:_,iconGrayBackground:!m,className:P.allOffersLink,linkClassName:g.checkAllLinkClassName,children:"Показать все предложения"})]})})}}},function(e){e.O(0,[832,249,342,291,557,449,774,888,179],function(){return e(e.s=1943)}),_N_E=e.O()}]);