(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8569,e=>{e.q("/service-navigator/_next/static/media/calendar.1ardgcewo32hk.svg")},47223,e=>{e.q("/service-navigator/_next/static/media/views.0ighx803fxa2p.svg")},23123,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(30382),i=e.i(7670),l=e.i(40383),r=e.i(22468),n=e.i(74080);let o=300,c=({opened:e})=>{let[t,a]=(0,s.useState)(!1),i=(0,s.useRef)(null),l=(0,s.useRef)(!1);return(0,s.useEffect)(()=>(e&&!l.current?(l.current=!0,a(!0)):!e&&l.current&&(i.current=setTimeout(()=>{l.current=!1,a(!1)},o)),()=>{i.current&&clearTimeout(i.current)}),[e]),{mounted:t}},d=(0,r.g)("click-outside","sc"),u=Object.freeze({overlay:`${d}__overlay`,open:`${d}--open`,close:`${d}--close`}),m=({onClose:e,onToucheMove:a,isOpen:l,delay:r=o})=>{let n=(0,s.useRef)(null),c=(0,s.useCallback)(()=>{e&&(n.current=setTimeout(()=>{e()},r))},[r,e]),d=(0,s.useCallback)(e=>{"Escape"===e.key&&c()},[c]);return(0,s.useEffect)(()=>(l&&window.addEventListener("keydown",d),()=>{n.current&&clearTimeout(n.current),window.removeEventListener("keydown",d)}),[l,d]),(0,t.jsx)("div",{className:(0,i.default)(u.overlay,{[u.open]:l,[u.close]:!l}),onTouchStart:a,onClick:c})},_=(0,r.g)("mobile-modal-footer","sc"),p=Object.freeze({footer:`${_}__footer`,footerWithoutShadow:`${_}__footer--without-shadow`}),h=({footer:e,isSmallPopup:s=!1,footerClassName:a})=>(0,t.jsx)("div",{className:(0,i.default)(p.footer,s&&p.footerWithoutShadow,a),children:"function"==typeof e?e():e}),g=(0,r.g)("mobile-popup","sc"),v=Object.freeze({mobilePopup:`${g}`,mobilePopupOpen:`${g}--open`,content:`${g}__content`,contentFull:`${g}__content--full`,contentTransition:`${g}__content--transition`,contentTransitionOpen:`${g}__content--transition-open`,contentLine:`${g}__content-line`,contentContainer:`${g}__content-container`,smallContentContainer:`${g}__content-container--small`,min:`${g}__content-container--min`,title:`${g}__title`,closeContainer:`${g}__close-container`,closeButton:`${g}__close-button`}),f=({children:e,footer:r,isOpen:n,isSmallPopup:o,onClose:c,hasCloseButton:d=!0,full:u,touchDistance:_=100,withDisabledScroll:p=!0,contentClassName:g,className:f,title:x,closeButton:j,footerClassName:N})=>{let[b,w]=(0,s.useState)(!1),[y,C]=(0,s.useState)(!1),[T,k]=(0,s.useState)(!0),[$,S]=(0,s.useState)("120%"),A=(0,s.useRef)(null),L=(0,s.useRef)(0),W=(0,s.useRef)(!1),I=e=>{var t,s,a;let i=null==(t=A.current)?void 0:t.offsetTop,l=null==(s=A.current)?void 0:s.offsetHeight;if(W.current=!0,k(!1),i&&l){let t=(null==(a=null==e?void 0:e.touches[0])?void 0:a.clientY)-i,s=0;t>=0&&t<=l+30&&(s=t),t>l+30&&(s=l+30),S(`${s}px`),L.current=s}},P=()=>{W.current&&(L.current>_&&c?null==c||c():S("0"),k(!0),W.current=!1),window.removeEventListener("touchmove",I),window.removeEventListener("touchend",P)};return(0,s.useEffect)(()=>{n&&setTimeout(()=>{w(!0),C(!0),S("0")},100),!n&&y&&(S("120%"),w(!1),C(!1))},[y,n]),(0,l.u)(n&&p),(0,t.jsxs)("div",{"data-portal":!0,className:(0,i.default)(v.mobilePopup,y&&v.mobilePopupOpen,f),children:[(0,t.jsx)(m,{onClose:()=>{n&&(null==c||c())},onToucheMove:()=>{n&&(w(!1),window.addEventListener("touchmove",I),window.addEventListener("touchend",P))},isOpen:n,delay:0}),(0,t.jsxs)("div",{className:(0,i.default)(v.content,u&&v.contentFull,T&&v.contentTransition,T&&b&&v.contentTransitionOpen),ref:A,style:{transform:`translateY(${$})`},children:[(0,t.jsx)("div",{className:v.contentLine}),(0,t.jsxs)("div",{className:(0,i.default)(v.contentContainer,o&&v.smallContentContainer,{[v.min]:!x&&!d},g),children:[!!x&&(0,t.jsx)("div",{className:v.title,children:x}),d?(0,t.jsx)("div",{className:v.closeContainer,children:d?j?"function"==typeof j?j():j:(0,t.jsx)("button",{onClick:c,className:v.closeButton,children:(0,t.jsx)(a.a,{size:24})}):null}):null,e]}),r&&(0,t.jsx)(h,{footerClassName:N,isSmallPopup:o,footer:r})]})]})},x=({children:e,isSmallPopup:s=!1,isOpen:a=!1,...i})=>{let{mounted:l}=c({opened:a});return l?(0,t.jsx)(f,{isSmallPopup:s,isOpen:a,...i,children:e}):null};x.displayName="UiMobilePopup";let j="data-portal-users",N=e=>Number(e.getAttribute(j)??0);e.s(["C",0,m,"P",0,({children:e,id:t="portal-root"})=>{let[a,i]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=document.getElementById(t);if(e&&!e.hasAttribute(j))return void i(e);let s=e??document.body.appendChild(document.createElement("div"));return s.id=t,s.setAttribute(j,String(N(s)+1)),i(s),()=>{let e=N(s)-1;s.setAttribute(j,String(e)),e>0||s.remove()}},[t]),a?(0,n.createPortal)(e,a):null},"U",0,x,"u",0,c])},35206,e=>{"use strict";var t=e.i(43476),s=e.i(23123),a=e.i(71645),i=e.i(7670),l=e.i(40383),r=e.i(30382),n=e.i(22468);let o=(0,n.g)("drawer-footer","sc"),c=Object.freeze({footer:`${o}__footer`,hasScroll:`${o}__footer--has-scroll`}),d=({footer:e,hasScroll:s,className:a})=>(0,t.jsx)("div",{className:(0,i.default)(c.footer,{[c.hasScroll]:s},a),children:"function"==typeof e?e():e}),u=(0,n.g)("drawer-content","sc"),m=Object.freeze({container:`${u}__container`,open:`${u}--open`,close:`${u}--close`,header:`${u}__header`,rowHeader:`${u}__header--row`,title:`${u}__title`,center:`${u}__title--center`,left:`${u}__title--left`,right:`${u}__title--right`,controlContainer:`${u}__control-container`,content:`${u}__content`,footer:`${u}__footer`}),_=({onClose:e,onContentClick:s,children:l,title:n,rowTitle:o,titleAlign:c,isCloseable:u,footer:_,closeButton:p,isOpen:h,contentClassName:g,footerClassName:v,contentStyle:f,width:x})=>{let j=(0,a.useRef)(null),N=(0,a.useRef)(null),[b,w]=(0,a.useState)(!1);(0,a.useEffect)(()=>{var e;if(!N.current||!j.current)return;let t=(null==(e=null==N?void 0:N.current)?void 0:e.getBoundingClientRect().top)||0,s=null==j?void 0:j.current,a=()=>{let e=null==N?void 0:N.current;e&&w(()=>e.getBoundingClientRect().top!==t)};return s&&s.addEventListener("scroll",a,!1),()=>{null==s||s.removeEventListener("scroll",a,!1)}},[]);let y=f||x?{width:x,...f||{}}:void 0;return(0,t.jsxs)("div",{ref:j,style:y,className:(0,i.default)(m.container,{[m.open]:h,[m.close]:!h},g),children:[n||u?(0,t.jsxs)("div",{className:(0,i.default)(m.header,{[m.rowHeader]:o}),children:[u?p?"function"==typeof p?p():p:(0,t.jsx)("button",{type:"button",className:m.controlContainer,onClick:e,children:(0,t.jsx)(r.a,{size:24})}):null,n?(0,t.jsx)("h3",{className:(0,i.default)(m.title,{[m[c]]:!0}),children:n}):null]}):null,(0,t.jsx)("div",{ref:N,className:m.content,onClick:s,children:l}),_&&(0,t.jsx)(d,{className:(0,i.default)(m.footer,v),footer:_,hasScroll:b})]})},p=(0,n.g)("drawer-layout","sc"),h=Object.freeze({window:`${p}__window`}),g=({onClose:e,isOpen:r,children:n,withDisabledScroll:o,className:c,...d})=>{let u=(0,a.useCallback)(e=>e.stopPropagation(),[]);return(0,l.u)(r&&o),(0,t.jsxs)("div",{"data-portal":!0,className:(0,i.default)(h.window,c),children:[(0,t.jsx)(s.C,{onClose:e,isOpen:r,delay:0}),(0,t.jsx)(_,{onContentClick:u,onClose:e,isOpen:r,...d,children:n})]})},v=({isOpen:e=!1,children:a,titleAlign:i="center",isCloseable:l=!0,withDisabledScroll:r=!0,...n})=>{let{mounted:o}=(0,s.u)({opened:e});return o?(0,t.jsx)(g,{titleAlign:i,isCloseable:l,isOpen:e,withDisabledScroll:r,...n,children:a}):null};v.displayName="Drawer",e.s(["D",0,v])},71267,e=>{"use strict";let t;var s=e.i(43476),a=e.i(70703),i=e.i(60822),l=e.i(7670);e.i(8145);var r=e.i(13757),n=e.i(85900),o=e.i(22468);e.i(34348);var c=e.i(47611),d=e.i(63687);e.i(46401);var u=e.i(34986),m=e.i(93562),_=e.i(65019),p=e.i(71645),h=e.i(71121),g=e.i(35206),v=e.i(23123);let f=(0,o.g)("footer-contacts-block","sc"),x=Object.freeze({contactsWrapper:`${f}__contacts-wrapper`,gray:`${f}__gray`,phones:`${f}__phones`,contactsButtons:`${f}__contacts-buttons`,vkIcon:`${f}__vk-icon`,tgIcon:`${f}__tg-icon`,dzenIcon:`${f}__dzen-icon`,maxIcon:`${f}__max-icon`,link:`${f}__link`}),j=(0,o.g)("footer","sc"),N=Object.freeze({wrapper:`${j}__wrapper`,section:`${j}__section`,container:`${j}__container`,top:`${j}__top`,main:`${j}__main`,links:`${j}__links`,disclaimer:`${j}__disclaimer`,bottom:`${j}__bottom`,bottomLinks:`${j}__bottom-links`,bottomDisclaimer:`${j}__bottom-disclaimer`,compact:`${j}__wrapper--compact`,white:`${j}__wrapper--white`}),b="finkit-widgets-sc-footer",w=[{title:"8 (800) 505-32-32",url:"tel:88005053232"},{title:"8 (800) 700-64-94",url:"tel:88007006494"},{title:"+7 (495) 145-32-32",url:"tel:+74951453232"},{title:"+7 (495) 787-64-94",url:"tel:+74957876494"}],y=[...w,{title:"Онлайн чат",url:void 0}],C=[{type:"vk",className:x.vkIcon,iconName:"vk"},{type:"telegramChannel",className:x.tgIcon,iconName:"telegram"},{type:"dzen",className:x.dzenIcon,iconName:"dzen"},{type:"max",className:x.maxIcon,iconName:"max"}],T=(0,s.jsxs)("p",{children:["На сайте finuslugi.ru предоставляются услуги оператора финансовой платформы ПАО Московская Биржа, а также услуги ООО «МБ Маркетплейс», организации, не являющейся оператором финансовой платформы в соответствии с Федеральным законом от 20.07.2020 №211-ФЗ «О совершении финансовых сделок с использованием финансовой платформы». Услуги оператора финансовой платформы ПАО Московская Биржа обозначены пометкой «Открытие онлайн на Финуслугах». Иная информация на сайте www.finuslugi.ru считается размещенной ООО «МБ Маркетплейс», если иное явно не следует из существа размещаемой информации. ООО «МБ Маркетплейс» входит в Группу «Московская Биржа».",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Группа «Московская Биржа» - ПАО Московская Биржа и юридические лица, находящиеся под прямым или косвенным контролем ПАО Московская Биржа."]}),k=({onClick:e,eventActionText:t,eventLabel:a,...i})=>(0,s.jsx)(c.Button,{onClick:s=>{null==e||e(s),(0,d.h)({eventCategory:b,eventActionType:d.D.button,eventActionText:t||"",eventLabel:a})},...i}),$=({onClick:e,eventActionType:t,eventActionText:a,eventLabel:i,chat:l,...r})=>(0,s.jsx)(u.Link,{onClick:s=>{var r,n,o;null==e||e(s),l&&(null==s||s.preventDefault(),null==(o=null==(n=null==(r=null==window?void 0:window.supportWidget)?void 0:r.craftTalk)?void 0:n.open)||o.call(n)),(0,d.h)({eventCategory:b,eventActionType:t||d.D.link,eventActionText:a||"",eventLabel:i})},...r}),S=({minioUrl:e,blogs:t})=>(0,s.jsxs)("div",{className:x.contactsWrapper,children:[(0,s.jsx)(r.Text,{className:x.gray,size:"16",weight:"regular",children:"Звоните или пишите"}),(0,s.jsx)("div",{className:x.phones,children:y.map(({title:e,url:t})=>(0,s.jsx)($,{href:t,eventActionText:e,chat:!t,children:e},e))}),(0,s.jsx)(r.Text,{className:x.gray,size:"16",weight:"regular",children:"Следите за нами в соцсетях"}),(0,s.jsx)("div",{className:x.contactsButtons,children:C.map(({type:a,className:i,iconName:l})=>(0,s.jsx)(k,{as:"a",href:null==t?void 0:t[a],target:"_blank",className:i,iconRight:(0,s.jsx)("img",{width:24,height:24,src:(0,n.joinURL)(e,`/widgets/footer/${l}.svg`),alt:a,loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:a,eventLabel:null==t?void 0:t[a]},a))}),(0,s.jsx)(r.Text,{className:x.gray,size:"16",weight:"regular",children:"Канал для инвесторов"}),(0,s.jsx)("div",{className:x.contactsButtons,children:(0,s.jsxs)($,{href:null==t?void 0:t.investTg,target:"_blank",className:x.link,eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg,children:[(0,s.jsx)(k,{className:x.tgIcon,iconRight:(0,s.jsx)("img",{width:24,height:24,src:(0,n.joinURL)(e,"/widgets/footer/telegram.svg"),alt:"telegram",loading:"lazy"}),shape:"circle-icon",variant:"white",eventActionText:"telegram",eventLabel:null==t?void 0:t.investTg}),"Финуслуги Инвест"]})})]}),A=(0,o.g)("footer-disclaimer","sc"),L=Object.freeze({disclaimer:`${A}`}),W=e=>{let t=e=>{e.target instanceof HTMLAnchorElement&&(0,d.h)({eventCategory:b,eventActionType:d.D.link,eventActionText:e.target.textContent||"",eventLabel:e.target.href})};return e.disclaimer?(0,s.jsx)("div",{className:(0,l.default)(e.className,L.disclaimer),dangerouslySetInnerHTML:{__html:e.disclaimer||""},onClick:t}):(0,s.jsx)("div",{className:(0,l.default)(e.className,L.disclaimer),onClick:t,children:e.children})},I=(0,o.g)("footer-modal-body","sc"),P=Object.freeze({wrapper:`${I}__wrapper`,title:`${I}__title`,item:`${I}__item`,label:`${I}__label`,button:`${I}__button`,description:`${I}__description`}),D=({directions:e})=>(0,s.jsxs)("div",{className:P.wrapper,children:[(0,s.jsx)("div",{className:P.title,children:"Направления"}),e.map(e=>(0,s.jsxs)($,{className:P.item,href:e.url,target:"_blank",eventActionText:e.name,eventLabel:`${e.name}_${e.url}`,children:[(0,s.jsxs)("div",{className:P.label,children:[(0,s.jsx)("span",{children:e.name}),(0,s.jsx)(k,{className:P.button,iconRight:(0,s.jsx)(m.K,{size:28}),shape:"circle-icon",eventActionText:"IconFdsArrowUpRightSmallO"})]}),(0,s.jsx)("p",{className:P.description,children:e.description})]},e.url))]}),O=(0,o.g)("footer-popup","sc"),R=Object.freeze({wrapper:`${O}__wrapper`,button:`${O}__button`,icon:`${O}__icon`,buttonWrapper:`${O}__button-wrapper`}),q=({directions:e})=>{let t=(0,h.useBreakpointUp)("l"),[a,i]=(0,p.useState)(!1),l=()=>{i(!1)};return(0,s.jsxs)("div",{className:R.wrapper,children:[(0,s.jsx)("div",{className:R.buttonWrapper,children:(0,s.jsx)(k,{className:R.button,appearance:"ghost",variant:"white",onClick:()=>{i(!0)},label:"Все направления",eventActionText:"Все направления",iconLeft:(0,s.jsx)("div",{className:R.icon,children:[1,2,3,4,5,6,7,8,9].map(e=>(0,s.jsx)("div",{},e))})})}),(0,s.jsxs)(v.P,{children:[!t&&(0,s.jsx)(v.U,{isOpen:a,onClose:l,full:!0,children:(0,s.jsx)(D,{directions:e})}),t&&(0,s.jsx)(g.D,{isOpen:a,onClose:l,width:"804px",children:(0,s.jsx)(D,{directions:e})})]})]})},U=(0,o.g)("footer-left-column","sc"),B=Object.freeze({leftColumn:`${U}__left-column`,logoWrapper:`${U}__logo-wrapper`,banner:`${U}__banner`,mobAppLink:`${U}__mob-app-link`,br:`${U}__br`}),E=({showcaseUrl:e,minioUrl:t,directions:a,mobAppUrl:i})=>{let l=((e="")=>{let[t,s]=(0,p.useState)(e);return(0,p.useEffect)(()=>{let t,a,i=(t=new URL(window.location.href),a=new URLSearchParams,t.searchParams.forEach((e,t)=>{/^utm_/i.test(t)&&a.set(t,e)}),a);if(!i||0===i.size)return;let[l,r=""]=e.split("?"),n=new URLSearchParams(r);i.forEach((e,t)=>{n.has(t)||n.set(t,e)});let o=n.toString();s(o?`${l}?${o}`:l)},[e]),t})(i);return(0,s.jsxs)("div",{className:B.leftColumn,children:[(0,s.jsx)($,{className:B.logoWrapper,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:(0,s.jsx)("img",{src:(0,n.joinURL)(t,"/widgets/footer/finuslugi_base_logo.svg"),alt:"finuslugi logo",loading:"lazy"})}),(0,s.jsx)(q,{directions:a??[]}),(0,s.jsx)($,{href:l,target:"_blank",eventActionType:d.D.banner,eventActionText:"Управляйте финансами через приложение Финуслуг",eventLabel:l,className:B.mobAppLink,children:(0,s.jsxs)(_.Card,{className:B.banner,children:[(0,s.jsxs)(r.Text,{weight:"medium",children:["Управляйте финансами",(0,s.jsx)("br",{}),"через приложение",(0,s.jsx)("br",{className:B.br})," Финуслуг"]}),(0,s.jsx)(k,{iconRight:(0,s.jsx)(m.K,{size:32}),shape:"circle-icon",variant:"white",eventActionText:"IconFdsArrowUpRightSmallO"}),(0,s.jsxs)("picture",{children:[(0,s.jsx)("source",{srcSet:(0,n.joinURL)(t,"/widgets/footer/apps_d.webp"),media:"(min-width: 1024px)"}),(0,s.jsx)("img",{src:(0,n.joinURL)(t,"/widgets/footer/apps_m.webp"),alt:"иллюстрация мобильного приложения",loading:"lazy"})]})]})})]})},z=(0,o.g)("footer-logo","sc"),H=Object.freeze({wrapper:`${z}__wrapper`,link:`${z}__link`,fromMoex:`${z}__from-moex`,logo:`${z}__logo`,white:`${z}__wrapper--white`}),V=({showcaseUrl:e,minioUrl:t,isWhite:a})=>(0,s.jsx)("div",{className:(0,l.default)(H.wrapper,{[H.white]:a}),children:(0,s.jsxs)($,{className:H.link,href:e,eventActionType:d.D.icon,eventActionText:"finuslugi_logo",eventLabel:`finuslugi_logo_${e}`,children:[(0,s.jsx)("img",{className:H.logo,src:`${t}/images/logo-brandmark-common-finuslugi.svg`,loading:"lazy"}),(0,s.jsx)("img",{className:H.fromMoex,src:`${t}/images/fromMoex.svg`,loading:"lazy"})]})});var G=((t=G||{}).BLACK="black",t.GRAY="gray",t);let M=(0,o.g)("footer-warning","sc"),F=Object.freeze({reservedSpace:`${M}__reserved-space`,wrapper:`${M}__wrapper`,wrapperGray:`${M}__wrapper--gray`,fixed:`${M}__wrapper--fixed`,container:`${M}__container`,text:`${M}__text`,invisibleText:`${M}__text--invisible`}),Y=({text:e,variant:t,fixed:a,isPlaceholder:r})=>(0,s.jsx)("div",{className:(0,l.default)(F.wrapper,{[F.wrapperGray]:"gray"===t,[F.fixed]:a&&!r}),children:(0,s.jsx)(i.Container,{className:F.container,children:(0,s.jsx)("div",{className:(0,l.default)(F.text,{[F.invisibleText]:r}),dangerouslySetInnerHTML:{__html:e}})})}),Q=({warning:e})=>{let t="string"==typeof e?{text:e}:e,a={text:t.text,fixed:t.fixed??!0,variant:t.variant??G.BLACK};return(0,s.jsxs)("div",{className:F.reservedSpace,children:[(0,s.jsx)(Y,{...a,isPlaceholder:a.fixed}),a.fixed&&(0,s.jsx)(Y,{...a,fixed:!0})]})},K=({data:e,showcaseUrl:t="https://finuslugi.ru",minioUrl:a="https://assets.finuslugi.ru/mp-assets",customDisclaimer:r,variant:n="default",className:o})=>{var c,d;let u=!r&&null!=e&&e.disclaimer?e.disclaimer:void 0,m=n.includes("compact"),_=n.includes("white"),p=null==(c=null==e?void 0:e.bottom)?void 0:c.concat(m?w:[]),h=e&&"warning"in e?e.warning:void 0;return e?(0,s.jsx)("footer",{className:(0,l.default)(N.wrapper,o,{[N.compact]:m,[N.white]:_}),children:(0,s.jsxs)("section",{className:N.section,children:[(0,s.jsxs)(i.Container,{className:N.container,children:[!m&&(0,s.jsx)(E,{showcaseUrl:t,minioUrl:a,directions:null==e?void 0:e.directions,mobAppUrl:null==e?void 0:e.mobAppUrl}),(0,s.jsx)("div",{className:N.wrapper,children:(0,s.jsxs)("div",{className:N.top,children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:N.main,children:[!m&&(0,s.jsx)("div",{className:N.links,children:null==(d=null==e?void 0:e.top)?void 0:d.map(e=>(0,s.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),m&&(0,s.jsx)(V,{showcaseUrl:t,minioUrl:a,isWhite:_}),(0,s.jsx)(W,{className:N.disclaimer,disclaimer:u,children:r||T})]}),(0,s.jsxs)("div",{className:N.bottom,children:[(0,s.jsx)("div",{className:N.bottomLinks,children:null==p?void 0:p.map(e=>(0,s.jsx)($,{href:e.url,eventActionText:e.title,eventLabel:e.url,children:e.title},e.url))}),(0,s.jsx)(W,{className:N.bottomDisclaimer,disclaimer:null==e?void 0:e.bottomDisclaimer})]})]}),!m&&(0,s.jsx)(S,{minioUrl:a,blogs:null==e?void 0:e.blogs})]})})]}),m&&!!h&&(0,s.jsx)(Q,{warning:h})]})}):null};var J=e.i(89867);let X=(0,o.g)("page-layout","sc"),Z=Object.freeze({main:`${X}__main`}),ee=(0,a.default)(()=>e.A(56322).then(e=>e.CookiesPlate),{ssr:!1});e.s(["PageLayout",0,function({initialGeo:e,headerData:t,certificatesWarningProduct:a,footerData:i,showStartGeoPopup:l=!1,citySelectProviderProps:r,children:n}){let{region:o,town:c}=e??{},d=(null==r?void 0:r.showcaseUrl)??"";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(J.CitySelectProvider,{...r,showcaseUrl:d,showStartGeoPopup:l,initialRegion:o,initialTown:c,children:[t&&(0,s.jsx)(J.Header,{...t,certificatesWarningProduct:a??t.certificatesWarningProduct}),(0,s.jsx)("main",{className:Z.main,children:n}),i&&(0,s.jsx)(K,{...i})]}),(0,s.jsx)(ee,{})]})}],71267)},90930,39943,e=>{"use strict";let t={src:e.i(8569).default,width:16,height:16,blurWidth:0,blurHeight:0};e.s(["default",0,t],90930);let s={src:e.i(47223).default,width:16,height:16,blurWidth:0,blurHeight:0};e.s(["default",0,s],39943)},17865,e=>{e.v({date:"NavigatorSliderPost-module-scss-module__n0VLLq__date",gray:"NavigatorSliderPost-module-scss-module__n0VLLq__gray",pinned:"NavigatorSliderPost-module-scss-module__n0VLLq__pinned",post:"NavigatorSliderPost-module-scss-module__n0VLLq__post",postTitle:"NavigatorSliderPost-module-scss-module__n0VLLq__postTitle",shine:"NavigatorSliderPost-module-scss-module__n0VLLq__shine",tag:"NavigatorSliderPost-module-scss-module__n0VLLq__tag",title:"NavigatorSliderPost-module-scss-module__n0VLLq__title",wrapper:"NavigatorSliderPost-module-scss-module__n0VLLq__wrapper"})},28565,e=>{e.v({grid:"NavigatorSliderItem-module-scss-module__uR81Aa__grid",shine:"NavigatorSliderItem-module-scss-module__uR81Aa__shine",wrapper:"NavigatorSliderItem-module-scss-module__uR81Aa__wrapper"})},68165,e=>{e.v({shine:"NavigatorSliderNav-module-scss-module__7M1r8W__shine",wrapper:"NavigatorSliderNav-module-scss-module__7M1r8W__wrapper"})},96057,e=>{e.v({shine:"NavigatorSliderPostList-module-scss-module__pgy-HG__shine",wrapper:"NavigatorSliderPostList-module-scss-module__pgy-HG__wrapper"})},53515,e=>{e.v({hideOnDesktop:"NavigatorSlider-module-scss-module__NrdTHq__hideOnDesktop",hideOnMobile:"NavigatorSlider-module-scss-module__NrdTHq__hideOnMobile",navigation:"NavigatorSlider-module-scss-module__NrdTHq__navigation",shine:"NavigatorSlider-module-scss-module__NrdTHq__shine",slider:"NavigatorSlider-module-scss-module__NrdTHq__slider",title:"NavigatorSlider-module-scss-module__NrdTHq__title",titleWrapper:"NavigatorSlider-module-scss-module__NrdTHq__titleWrapper",wrapper:"NavigatorSlider-module-scss-module__NrdTHq__wrapper"})},16829,21760,e=>{"use strict";var t=e.i(43476),s=e.i(57687),a=e.i(7670),i=e.i(47167),l=e.i(96934),r=e.i(59260),n=e.i(37819),o=e.i(17865);let c=({post:e,isGray:s,isFirst:c})=>(0,t.jsx)("a",{className:(0,a.default)(o.default.wrapper),href:`/${e.url}`,children:(0,t.jsxs)("div",{className:(0,a.default)(o.default.post,{[o.default.gray]:s,[o.default.pinned]:e.pinned&&c}),onMouseUpCapture:e=>{e.preventDefault();let t=e.currentTarget,s=t.getAttribute("data-title"),a=t.getAttribute("data-url");(0,r.newHandelDataLayerPush)({eventCategory:`${(0,n.translit)("журнал")}_${a}`,eventActionType:r.DataLayerActionType.card,eventActionText:(0,n.translit)(`block ${i.title}`),eventLabel:(0,n.translit)(s??"")})},"data-url":`/${e.url}`,"data-title":e.title,children:[(0,t.jsx)("div",{className:o.default.title,children:e.title}),(0,t.jsx)("div",{className:o.default.date,children:(0,l.formatDate)(String(e.date_pub||e.public_date||e.update_time||e.publ_time),!0)}),(0,t.jsx)("div",{className:o.default.tag,children:"Важное"})]})});var d=e.i(28565);let u=({posts:e,isGray:s})=>(0,t.jsx)("div",{className:d.default.wrapper,children:(0,t.jsx)("div",{className:d.default.grid,children:e.map((e,a)=>(0,t.jsx)(c,{isGray:s,post:e,isFirst:0===a},e.id))})});var m=e.i(62965),_=e.i(68165);let p=({dir:e,onClick:s,className:i})=>{let l="left"===e?m.IconFdsChevronLeftO:m.IconFdsChevronRightO;return(0,t.jsx)("button",{onClick:s,className:(0,a.default)(_.default.wrapper,i),children:(0,t.jsx)(l,{size:24})})};var h=e.i(71645);e.i(34348);var g=e.i(47611),v=e.i(96057);let f=({isGray:e,posts:s,className:i})=>{let[l,r]=(0,h.useState)(!1);return(0,t.jsxs)("div",{className:(0,a.default)(v.default.wrapper,i),children:[s.slice(0,l?s.length:3).map((s,a)=>(0,t.jsx)(c,{isFirst:0===a,post:s,isGray:e},s.id)),!l&&s.length>3&&(0,t.jsx)(g.Button,{label:"Показать еще",variant:"secondary",onClick:()=>r(!0)})]})};var x=e.i(53515);e.s(["NavigatorSlider",0,({title:e,data:i,isGray:l,className:o})=>{var c;let d,m=t=>()=>{(0,r.newHandelDataLayerPush)({eventCategory:`${(0,n.translit)("журнал")}_${location.pathname}`,eventActionType:r.DataLayerActionType.slider,eventActionText:(0,n.translit)(`${t} block ${e}`)})},_=((d=(c=i).findIndex(e=>e.pinned))>=0&&c.unshift(...c.splice(d,1)),c),h=_.reduce((e,t)=>{let s=e[e.length-1];return s.length<6?s.push(t):e.push([t]),e},[[]]);return(0,t.jsxs)("div",{className:(0,a.default)(x.default.wrapper,o),children:[(0,t.jsxs)("div",{className:x.default.titleWrapper,children:[(0,t.jsx)("h2",{className:x.default.title,children:e}),(0,t.jsxs)("div",{className:(0,a.default)(x.default.navigation,x.default.hideOnMobile),children:[(0,t.jsx)(p,{onClick:m("лево"),dir:"left",className:"navigator-slider-button-prev"}),(0,t.jsx)(p,{onClick:m("право"),dir:"right",className:"navigator-slider-button-next"})]})]}),(0,t.jsx)(f,{className:x.default.hideOnDesktop,isGray:l,posts:_}),(0,t.jsx)(s.Slider,{className:(0,a.default)(x.default.slider,x.default.hideOnMobile),options:{loop:!0,navigation:{nextEl:".navigator-slider-button-next",prevEl:".navigator-slider-button-prev"}},children:h.map((e,a)=>(0,t.jsx)(s.SliderItem,{children:(0,t.jsx)(u,{posts:e,isGray:l})},a))})]})}],21760),e.s([],16829)},2349,e=>{e.v({article:"NewArticles-module-scss-module__OxuSlW__article",articles:"NewArticles-module-scss-module__OxuSlW__articles",image:"NewArticles-module-scss-module__OxuSlW__image",line:"NewArticles-module-scss-module__OxuSlW__line",pinned:"NewArticles-module-scss-module__OxuSlW__pinned",pinnedDate:"NewArticles-module-scss-module__OxuSlW__pinnedDate",pinnedTitle:"NewArticles-module-scss-module__OxuSlW__pinnedTitle",relative:"NewArticles-module-scss-module__OxuSlW__relative",shine:"NewArticles-module-scss-module__OxuSlW__shine",tag:"NewArticles-module-scss-module__OxuSlW__tag",time:"NewArticles-module-scss-module__OxuSlW__time",title:"NewArticles-module-scss-module__OxuSlW__title",wrapper:"NewArticles-module-scss-module__OxuSlW__wrapper"})},94182,35269,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(7670),i=e.i(83625),l=e.i(96934),r=e.i(80453),n=e.i(59260),o=e.i(62798),c=e.i(30855),d=e.i(86135),u=e.i(37819),m=e.i(2349);e.s(["NewArticles",0,({env:e,articles:_,pinned:p,pageName:h})=>{let[g,v]=(0,s.useState)(new Date);(0,s.useEffect)(()=>{let e=setInterval(()=>{v(new Date)},6e4);return()=>clearInterval(e)},[]);let f=(0,l.formatDate)(String(p.public_date||p.update_time||p.publ_time),!0),x=(e,t)=>()=>{let s=(0,u.translit)(`block ${h||"топ"}`);(0,n.newHandelDataLayerPush)({eventCategory:(0,u.translit)(`журнал ${e.url}`),eventActionType:n.DataLayerActionType.stat,eventActionText:(0,u.translit)(`${e===p?`закрепленная ${s}`:`${(t||0)+1} ${s}`}`),eventLabel:e.title||""})},j=p?.img?.file&&p?.img?.file!==".",N=(0,r.getImageVariantUrl)(p?.imageVariants,"preview",(0,r.getImageUrl)(p?.img?.file,"small",e.NEXT_PUBLIC_BASE_URL)),b=(0,r.getImageVariantUrl)(p?.imageVariants,"mobilePreview",N);return(0,t.jsxs)("div",{className:m.default.wrapper,children:[(0,t.jsxs)("a",{className:m.default.pinned,href:`/${p.url}`,onClick:x(p),children:[(0,t.jsxs)("div",{className:m.default.image,children:[j&&(0,t.jsxs)("picture",{children:[(0,t.jsx)("source",{media:"(max-width: 599px)",srcSet:b}),(0,t.jsx)("img",{src:N,alt:"img"})]}),(0,t.jsx)("span",{className:m.default.tag,children:"Популярное"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:m.default.pinnedDate,children:f}),(0,t.jsx)("div",{className:m.default.pinnedTitle,children:p.title})]})]}),(0,t.jsx)("div",{className:m.default.articles,children:_.map((e,r)=>{let n=String(e.public_date||e.update_time||e.publ_time),u=(0,i.formatUtcSqlLikeToLocalSqlLike)(n),_=((e,t)=>{let s,a=(s=(0,d.parseISO)(e.replace(" ","T")),(0,c.isValid)(s)?s.getTime():null);if(!a||isNaN(a))return"";let l=t.getTime()-a,r=Math.floor(l/6e4),n=Math.floor(l/36e5);return l<0||n>24?(0,i.formatSqlLikeToHoursMinutes)(e):r<60?`${r} ${(0,o.pluralize)(r,"минуту","минуты","минут")} назад`:`${n} ${(0,o.pluralize)(n,"час","часа","часов")} назад`})(u,g),p=(0,i.formatSqlLikeToHoursMinutes)(u),h=0===r&&_!==p;return(0,t.jsxs)(s.Fragment,{children:[!!r&&(0,t.jsx)("div",{className:m.default.line}),(0,t.jsxs)("a",{className:m.default.article,href:`/${e?.url}`,onClick:x(e,r+1),children:[(0,t.jsx)("div",{className:m.default.title,children:e.title}),(0,t.jsxs)("div",{className:(0,a.default)(m.default.time,{[m.default.relative]:h}),children:[(0,t.jsx)("label",{children:(0,l.formatDate)(u)}),h?_:p]})]})]},r)})})]})}],35269),e.s([],94182)},65527,e=>{e.v({overlay:"overlay-module-scss-module__ibR-OG__overlay",shine:"overlay-module-scss-module__ibR-OG__shine"})},25022,e=>{"use strict";var t=e.i(71645),s=e.i(65527);e.s(["useOverlay",0,({wrapperRef:e})=>{let[a,i]=(0,t.useState)(0),l={background:`rgba(0, 0, 0, ${a})`},r=s.default.overlay,n=()=>{let t=e.current?.getBoundingClientRect().bottom||1e4;if(t>.6*window.innerHeight)return i(0);let s=(.6*window.innerHeight-t)/(.6*window.innerHeight);i(s>.6?.6:s)};return(0,t.useEffect)(()=>(document.addEventListener("scroll",n),()=>{document.removeEventListener("scroll",n)}),[]),{overlayClassName:r,overlayStyles:l}}])},24354,e=>{e.v({desktop:"PostUpdateTime-module-scss-module__A3CFaq__desktop",mobile:"PostUpdateTime-module-scss-module__A3CFaq__mobile",shine:"PostUpdateTime-module-scss-module__A3CFaq__shine",wrapper:"PostUpdateTime-module-scss-module__A3CFaq__wrapper"})},70033,e=>{e.v({author:"PostHeaderInfo-module-scss-module__W1fdYq__author",image:"PostHeaderInfo-module-scss-module__W1fdYq__image",info:"PostHeaderInfo-module-scss-module__W1fdYq__info",name:"PostHeaderInfo-module-scss-module__W1fdYq__name",position:"PostHeaderInfo-module-scss-module__W1fdYq__position",right:"PostHeaderInfo-module-scss-module__W1fdYq__right",shine:"PostHeaderInfo-module-scss-module__W1fdYq__shine",unit:"PostHeaderInfo-module-scss-module__W1fdYq__unit",wrapper:"PostHeaderInfo-module-scss-module__W1fdYq__wrapper"})},45859,e=>{e.v({anons:"NavigatorDetail-module-scss-module__sm2xCW__anons",article:"NavigatorDetail-module-scss-module__sm2xCW__article",articleBottomCard:"NavigatorDetail-module-scss-module__sm2xCW__articleBottomCard",articleContentWrapper:"NavigatorDetail-module-scss-module__sm2xCW__articleContentWrapper",articleGridWrapper:"NavigatorDetail-module-scss-module__sm2xCW__articleGridWrapper",articleTitle:"NavigatorDetail-module-scss-module__sm2xCW__articleTitle",cat:"NavigatorDetail-module-scss-module__sm2xCW__cat",catWrapper:"NavigatorDetail-module-scss-module__sm2xCW__catWrapper",content:"NavigatorDetail-module-scss-module__sm2xCW__content",contentList:"NavigatorDetail-module-scss-module__sm2xCW__contentList",contentTable:"NavigatorDetail-module-scss-module__sm2xCW__contentTable",detailImage:"NavigatorDetail-module-scss-module__sm2xCW__detailImage",detailImageCaption:"NavigatorDetail-module-scss-module__sm2xCW__detailImageCaption",detailImageM:"NavigatorDetail-module-scss-module__sm2xCW__detailImageM",detailImageWrapper:"NavigatorDetail-module-scss-module__sm2xCW__detailImageWrapper",expert:"NavigatorDetail-module-scss-module__sm2xCW__expert",expertName:"NavigatorDetail-module-scss-module__sm2xCW__expertName",expertPosition:"NavigatorDetail-module-scss-module__sm2xCW__expertPosition",fullInfoLink:"NavigatorDetail-module-scss-module__sm2xCW__fullInfoLink",group:"NavigatorDetail-module-scss-module__sm2xCW__group",main:"NavigatorDetail-module-scss-module__sm2xCW__main",mobAppAd:"NavigatorDetail-module-scss-module__sm2xCW__mobAppAd",page:"NavigatorDetail-module-scss-module__sm2xCW__page",popularContentWrapper:"NavigatorDetail-module-scss-module__sm2xCW__popularContentWrapper",popularItem:"NavigatorDetail-module-scss-module__sm2xCW__popularItem",popularItemCat:"NavigatorDetail-module-scss-module__sm2xCW__popularItemCat",popularItemContent:"NavigatorDetail-module-scss-module__sm2xCW__popularItemContent",popularItemImage:"NavigatorDetail-module-scss-module__sm2xCW__popularItemImage",popularItemStat:"NavigatorDetail-module-scss-module__sm2xCW__popularItemStat",popularItemStatLeft:"NavigatorDetail-module-scss-module__sm2xCW__popularItemStatLeft",popularItemStatUnit:"NavigatorDetail-module-scss-module__sm2xCW__popularItemStatUnit",popularItemTitle:"NavigatorDetail-module-scss-module__sm2xCW__popularItemTitle",popularTitle:"NavigatorDetail-module-scss-module__sm2xCW__popularTitle",rightInfo:"NavigatorDetail-module-scss-module__sm2xCW__rightInfo",share:"NavigatorDetail-module-scss-module__sm2xCW__share",shareButton:"NavigatorDetail-module-scss-module__sm2xCW__shareButton",shareWrapper:"NavigatorDetail-module-scss-module__sm2xCW__shareWrapper",shine:"NavigatorDetail-module-scss-module__sm2xCW__shine",show:"NavigatorDetail-module-scss-module__sm2xCW__show",sidebar:"NavigatorDetail-module-scss-module__sm2xCW__sidebar",singleItem:"NavigatorDetail-module-scss-module__sm2xCW__singleItem",skeleton:"NavigatorDetail-module-scss-module__sm2xCW__skeleton",slider:"NavigatorDetail-module-scss-module__sm2xCW__slider",sliderLeftButton:"NavigatorDetail-module-scss-module__sm2xCW__sliderLeftButton",sliderRightButton:"NavigatorDetail-module-scss-module__sm2xCW__sliderRightButton",soc:"NavigatorDetail-module-scss-module__sm2xCW__soc",stickySidebar:"NavigatorDetail-module-scss-module__sm2xCW__stickySidebar",topInfoWrapper:"NavigatorDetail-module-scss-module__sm2xCW__topInfoWrapper"})},62194,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(62965),i=e.i(27060),l=e.i(60822),r=e.i(7670),n=e.i(43487),o=e.i(25581);e.i(15825);var c=e.i(29883);e.i(8237);var d=e.i(7326);e.i(25917);var u=e.i(41405);e.i(39363);var m=e.i(77884);e.i(5562);var _=e.i(50617);e.i(56331);var p=e.i(92446);e.i(64619);var h=e.i(81230),g=e.i(46660);e.i(59309);var v=e.i(95782),f=e.i(11766),x=e.i(25022),j=e.i(75148),N=e.i(24354);let b=({date:e,className:s,variant:a="desktop"})=>e?(0,t.jsx)("div",{className:(0,r.default)(N.default.wrapper,s,N.default[a]),children:(0,t.jsxs)("label",{children:["Обновлено ",e]})}):null;var w=e.i(96934),y=e.i(80453),C=e.i(70033);let T=({post:e,BASE_URL:s,postViews:i})=>{let l=(0,w.formatDate)(String(e.public_date),!0),r=(0,w.formatDateWithTime)(e.update_time),n=(0,w.isUpdateOnNextDay)(e.public_date,e.update_time),o=e.read_time||0;return(0,t.jsxs)("div",{className:C.default.wrapper,children:[(0,t.jsxs)("div",{className:C.default.info,children:[(0,t.jsx)("div",{className:C.default.unit,children:(0,t.jsx)("label",{children:l})}),!!o&&(0,t.jsxs)("div",{className:C.default.unit,children:[(0,t.jsx)(a.IconFdsClockO,{size:24}),(0,t.jsxs)("label",{children:[o," мин"]})]}),!!i&&(0,t.jsxs)("div",{className:C.default.unit,children:[(0,t.jsx)(a.IconFdsEyeO,{size:24}),(0,t.jsx)("label",{children:i})]}),n&&(0,t.jsx)(b,{date:r,className:C.default.right})]}),!!e?.author?.name&&e?.author?.url&&(0,t.jsxs)("a",{className:C.default.author,href:`/navigator/author/${e?.author.url}`,target:"_self",children:[e?.author.photo&&(0,t.jsx)("img",{className:C.default.image,src:(0,y.getImageUrl)(e.author.photo,"original",s),alt:e.author.name}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:C.default.name,children:e.author.name}),(0,t.jsx)("div",{className:C.default.position,children:e.author.position})]})]})]})};var k=e.i(50056),$=e.i(29151),S=e.i(84078),A=e.i(3241);function L(e){let t=e.match(/^navigator\/([^/]+)\/.+$/);return t?t[1]:null}var W=e.i(94341),I=e.i(59260),P=e.i(24301),D=e.i(99228),O=e.i(231),R=e.i(37819);e.i(45757);var q=e.i(56547),U=e.i(94930);let B=async(e,t,s,a,i,l)=>{let r=await (0,U.getNavigatorData)(9,void 0,t,a?void 0:s,a?1:void 0);new Date().setDate(new Date().getDate()-30);let n=(r.data?.articles||[]).filter(e=>e.url!==l).map(({url:e})=>e);return n.length||a?n:(i(),await B(e,1,"",!0,i,l))};e.i(72934);var E=e.i(33209);let z={pp:"i",ps:"foam",p2:"hpaj"},H={"navigator/investirovat":{...z,pp:"cfbl"},"navigator/kredity":{...z,pp:"cfbj"},"navigator/nakopit-i-sohranit":{...z,pp:"cfek"},"navigator/zastrahovat":{...z,pp:"cfbk"}},V=e=>e?H[e]??z:z;var G=e.i(45859);let M=()=>{let e=(0,$.getCurrentAuthRedirectState)();e&&(O.appLocalStorage.setItem("partialAuth",e),O.appLocalStorage.setItem("partialAuthDebugUrl",window.location.href))},F=({env:e,post:i,tags:l,ctgs:c,isMobileApplication:u,extra:m,onReach:h,skeleton:g,handleChangePost:j,disableInfiniteScroll:N})=>{let{asPath:C,push:$}=(0,v.useRouter)(),[S,A]=(0,s.useState)(i.views||0),[L,O]=(0,s.useState)(!1),q=(0,f.useInfiniteScroll)(h,.5),U=(0,s.useRef)(!m),B=(0,s.useRef)(!1),{overlayClassName:z,overlayStyles:H}=(0,x.useOverlay)({wrapperRef:q}),M=(0,w.isUpdateOnNextDay)(i.public_date,i.update_time),F=i.content?.filter(e=>"header"===e.type)?.map(e=>e.data?.text)||[],Y=(0,k.applyTypographyRules)((0,P.insertRelToHtmlText)((e=>{if(e.anons)return e.anons;let t=e.content?.find(({type:e})=>e===o.ContentType.Annotation);return t?.data.text?t.data.text:""})(i))),Q=i.content?.filter(e=>!!i.anons||e.type!==o.ContentType.Annotation)||[],K=i.tag_ids?.reduce((e,t)=>{let s=l.find(({id:e})=>e===t),a=C.includes(s?.url||"___");return s&&a&&e.unshift(s),s&&!a&&e.push(s),e},[]),J=K?.[0]||l[0],X=V(J?.url),Z=e.NEXT_PUBLIC_BASE_URL;(0,s.useEffect)(()=>{m||g||(B.current=!0,(0,n.submitPostViewNoCache)(e,i.url).then(e=>{A((0,W.getPostViews)(i.url,e||i.views,1))}))},[]),(0,s.useEffect)(()=>{if(q.current&&!g&&!N){let t=q.current,s=()=>{if(!t||!q.current)return;let s=q.current.getBoundingClientRect().top+window.scrollY,a=s+q.current.offsetHeight,l=window.scrollY+window.innerHeight/2,r=l>s&&l<a;!r||U.current||B.current||(B.current=!0,(0,n.submitPostViewNoCache)(e,i.url).then(e=>{A((0,W.getPostViews)(i.url,e||i.views,1))})),r&&!U.current&&(U.current=!0,j?.(i),$(`/${i.url}`,void 0,{shallow:!0})),r||(U.current=!1)};return document.addEventListener("scroll",s),()=>{t&&document.removeEventListener("scroll",s)}}},[]);let ee=!u&&!!F.length&&0!==i.show_content;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{ref:q,className:(0,r.default)(G.default.article,{[G.default.app]:u,[G.default.skeleton]:g}),children:[(0,t.jsxs)("div",{className:G.default.articleContentWrapper,children:[!u&&(0,t.jsxs)("div",{className:G.default.topInfoWrapper,children:[(0,t.jsx)(_.NavigatorTagTitle,{env:e,tag:J}),(0,t.jsxs)("div",{className:G.default.rightInfo,children:[(0,t.jsxs)("div",{className:G.default.share,onClick:()=>{(0,I.newHandelDataLayerPush)({eventCategory:`${(0,R.translit)("журнал")}_${location.pathname}`,eventActionType:I.DataLayerActionType.button,eventActionText:(0,R.translit)("поделиться"),eventLabel:""}),O(e=>!e)},children:[(0,t.jsx)(a.IconFdsArrowForwardO,{size:24}),(0,t.jsx)("p",{className:"desktopOnly",children:"Поделиться"})]}),(0,t.jsx)(p.SocShareButtons,{className:(0,r.default)(G.default.soc,{[G.default.show]:L}),title:i.title,url:`/${i.url}`})]})]}),M&&(0,t.jsx)(b,{date:(0,w.formatDateWithTime)(i.update_time),variant:"mobile"}),(0,t.jsx)(g?"div":"h1",{className:G.default.articleTitle,dangerouslySetInnerHTML:{__html:(0,k.applyTypographyRules)(i.title)}}),(0,t.jsx)("div",{className:G.default.anons,dangerouslySetInnerHTML:{__html:Y}}),(0,t.jsx)(T,{post:i,BASE_URL:Z,postViews:S}),!!i?.image?.file&&i?.image?.file!=="."&&(0,t.jsx)(E.ResponsiveImage,{isLazy:!!m,srcDesktop:(0,y.getImageVariantUrl)(i.imageVariants,"detail",(0,y.getImageUrl)(i.image.file,"big",Z)),srcMobile:(0,y.getImageVariantUrl)(i.imageVariants,"mobileDetail",(0,y.getImageUrl)(i.image.file,"small",Z)),caption:i.cover_title,captionClassName:G.default.detailImageCaption,className:G.default.detailImageWrapper}),ee&&(0,t.jsxs)("div",{className:G.default.contentTable,children:[(0,t.jsx)("label",{children:"Содержание статьи"}),(0,t.jsx)("div",{className:G.default.contentList,children:F.map((e,s)=>(0,t.jsx)("div",{onClick:()=>(({index:e,post:t})=>{(0,I.newHandelDataLayerPush)({eventCategory:`${(0,R.translit)("журнал")}_${location.pathname}`,eventActionType:I.DataLayerActionType.link,eventActionText:(0,R.translit)(t.title),eventLabel:""});let s=document.getElementById(`${t.id}_content_header_${e}`);s&&(0,D.scrollAnimation)((0,D.calcAbsTop)(s)-32)})({index:s+1,post:i}),dangerouslySetInnerHTML:{__html:e||""}},s))})]}),(0,t.jsx)(d.ContentBlocks,{env:e,data:Q,params:X,post:i,ctgs:c,tags:l,contentImageVariants:i.contentImageVariants})]}),(0,t.jsx)("div",{className:z,style:{...H,borderRadius:"20px"}})]})})};e.s(["NavigatorDetail",0,e=>{let{env:a,post:r,tags:o,description:d,isMobileApplication:p,extra:x,bestOffers:N}=e,b=a.NEXT_PUBLIC_BASE_URL,w=(0,g.useAdFox)(),{asPath:C}=(0,v.useRouter)(),[T,k]=(0,s.useState)(r),[$,W]=(0,s.useState)([]),I=(0,s.useRef)([]),P=(0,s.useRef)(0),O=(0,s.useRef)(!1),R=(0,s.useRef)(!1),[U,E]=(0,s.useState)(e.disableInfiniteScroll);(0,s.useEffect)(()=>{M();let e=()=>{let e=window.location.hash.slice(1).split("?")[0],t=document.getElementById(e);M(),t&&(0,D.scrollAnimation)((0,D.calcAbsTop)(t)-224),history.replaceState(null,"",window.location.pathname+window.location.search)};return window.addEventListener("hashchange",e),window.location.hash?e():window.scrollTo(0,0),()=>{window.removeEventListener("hashchange",e)}},[]);let z=T.tag_ids?.reduce((e,t)=>{let s=o.find(({id:e})=>e===t),a=C.includes(s?.url||"___");return s&&a&&e.unshift(s),s&&!a&&e.push(s),e},[]),H=z?.[0]||o[0],Y=()=>{O.current=!0,P.current=1},Q=async()=>{if(!e.disableInfiniteScroll&&!R.current){R.current=!0;try{for(;;){I.current.length||(P.current++,I.current=await B(a,P.current,H?.url,O.current,Y,T.url));let e=I.current.shift();if(!e)return void E(!0);let t=await (0,n.getNavigatorDetailData)(e),s=t.data?.article;if(s?.title){if(s.best_offers){let e=(0,c.getBestOffersTab)(N,s.best_offers);s.bestOffersTab=e}W(e=>[...e,s]);return}}}finally{R.current=!1}}},K=o.find(({id:e})=>e===T?.tag_ids?.[0]),J=(0,f.useInfiniteScroll)(Q,.5),X=(0,s.useMemo)(()=>`Читать статью на тему “${T.title.trimEnd()}” онлайн на сайте.  Еще больше актуальных статей${K?` по теме “${K?.name}” `:" "}в Журнале Финуслуги.`,[o,T]),Z=(0,s.useMemo)(()=>""!==d?d:X,[d,X]),ee=V(H?.url),et=(0,A.generateBredcrumbsPath)({tag:{href:H?.url,label:H?.name},current:{label:T.title}}),es=(0,A.generateBredcrumbsPath)({includeBase:!1,tag:{href:H?.url,label:H?.name}}),ea=(0,S.generateBreadcrumbsJsonLd)(et),ei=(0,S.generateBreadcrumbsJsonLd)(es),el=JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Article",name:T.title,headline:`${T.title} - читайте на сайте Финуслуги`,description:Z,url:`${b}/${T.url}`,about:{"@type":"Thing",...K&&{name:K?.name,sameAs:`${b}/${K?.url}`}},mainEntityOfPage:{"@type":"WebPage","@id":`${b}/${T.url}`},dateCreated:T.public_date||T.publ_date,datePublished:T.public_date||T.publ_date,dateModified:T.update_time||T.public_date,thumbnailUrl:(0,y.getImageUrl)(T?.image?.file,"big",b),...T.author&&{author:{"@type":"Person",name:T.author?.name,url:`${b}/navigator/author/${T.author?.url}`}},...T?.publisher&&{publisher:{"@type":T.publisher.type,name:T.publisher.name,url:`${b}`,address:{"@type":"PostalAddress",name:T.publisher.address},logo:{"@type":"ImageObject",url:`${b}/icons/header_logo.svg`,width:168,height:42}}}},JSON.parse(ei)]}),{anons:er,publ_date:en}=T,eo=en.split(" ")[0].split("-")[0],ec="Дарим 4000 рублей за первый вклад"===er&&"2022"===eo||e.noIndex,ed=(0,c.getBestOffersTab)(N,r.best_offers);return(0,t.jsxs)("main",{ref:J,className:G.default.page,children:[!x&&(0,t.jsx)(u.HeadMeta,{env:a,title:T.seo_title||T.custom_title||T.title,description:T.seo_description||Z,path:C,noindex:ec,image:(0,y.getImageUrl)(r?.image?.file,"big",b),isDetailPage:!0}),(0,t.jsxs)(l.Container,{children:[!p&&!x&&(0,t.jsx)(i.Breadcrumbs,{ellipsis:!0,items:et,style:{padding:"16px 0"}}),!p&&!x&&(0,t.jsx)(_.NavigatorTagsBlock,{env:a,isMobile:!0,tags:o,selectedTag:H?.url}),(0,t.jsxs)("div",{className:G.default.content,children:[(0,t.jsx)(m.NavigatorSidebar,{env:a,tags:o,selectedTag:H?.url}),(0,t.jsxs)("div",{className:G.default.main,children:[(0,t.jsx)(F,{...e,onReach:Q,handleChangePost:e=>k(e)}),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:el}}),(0,t.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ea}}),ed&&(0,t.jsx)(c.BestOffersSection,{category:L(r.url)??"",tab:ed}),!p&&(0,t.jsx)(h.YaAdFoxBanner,{config:w,params:ee}),$.map(({bestOffersTab:a,...i})=>(0,t.jsxs)(s.Fragment,{children:[(0,t.jsx)(F,{extra:!0,handleChangePost:k,...e,onReach:Q,post:i}),a&&(0,t.jsx)(c.BestOffersSection,{category:L(i.url)??"",tab:a})]},i.url)),!U&&(0,t.jsx)(F,{...e,post:j.SKELETON_POST,extra:!0,skeleton:!0})]})]})]}),(0,t.jsx)(q.Footnote,{articleRef:J})]})}],62194)},74937,e=>{e.v({cat:"ArticleLink-module-scss-module__Tf3Iaq__cat",container:"ArticleLink-module-scss-module__Tf3Iaq__container",icons:"ArticleLink-module-scss-module__Tf3Iaq__icons",image:"ArticleLink-module-scss-module__Tf3Iaq__image",shine:"ArticleLink-module-scss-module__Tf3Iaq__shine",skeleton:"ArticleLink-module-scss-module__Tf3Iaq__skeleton",title:"ArticleLink-module-scss-module__Tf3Iaq__title",unit:"ArticleLink-module-scss-module__Tf3Iaq__unit",wrapper:"ArticleLink-module-scss-module__Tf3Iaq__wrapper"})},6077,e=>{e.v({shine:"ArticleList-module-scss-module__B7mL2W__shine",wrapper:"ArticleList-module-scss-module__B7mL2W__wrapper"})},47697,e=>{e.v({articleGridWrapper:"NavigatorTag-module-scss-module__PQWmVG__articleGridWrapper",main:"NavigatorTag-module-scss-module__PQWmVG__main",page:"NavigatorTag-module-scss-module__PQWmVG__page",pagination:"NavigatorTag-module-scss-module__PQWmVG__pagination",paginationNext:"NavigatorTag-module-scss-module__PQWmVG__paginationNext",section:"NavigatorTag-module-scss-module__PQWmVG__section",shine:"NavigatorTag-module-scss-module__PQWmVG__shine",sidebar:"NavigatorTag-module-scss-module__PQWmVG__sidebar",stickySidebar:"NavigatorTag-module-scss-module__PQWmVG__stickySidebar",title:"NavigatorTag-module-scss-module__PQWmVG__title",top:"NavigatorTag-module-scss-module__PQWmVG__top",topTitle:"NavigatorTag-module-scss-module__PQWmVG__topTitle"})},54397,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(27060),i=e.i(60822),l=e.i(94930);e.i(72745);var r=e.i(46176);e.i(25917);var n=e.i(41405);e.i(39363);var o=e.i(77884);e.i(16829);var c=e.i(21760);e.i(5562);var d=e.i(50617);e.i(94182);var u=e.i(35269);e.i(59309);var m=e.i(95782),_=e.i(11766),p=e.i(25022),h=e.i(75148),g=e.i(57688),v=e.i(7670),f=e.i(90930),x=e.i(39943),j=e.i(96934),N=e.i(23459),b=e.i(94341),w=e.i(74937);let y=({env:e,post:s,ctgs:a,cat:i})=>{let l=e.NEXT_PUBLIC_BASE_URL,r=i||a?.find(e=>e.id===s?.ctg_id)?.name;return(0,t.jsxs)("a",{className:(0,v.default)(w.default.wrapper,{[w.default.skeleton]:!s}),href:`/${s?.url}`,target:"_self",children:[(0,t.jsx)("div",{className:w.default.image,style:(0,N.getCardImageStyle)(s?.img?.file,s?.imageVariants,l)}),(0,t.jsxs)("div",{className:w.default.container,children:[!!r&&(0,t.jsx)("span",{className:w.default.cat,children:r}),(0,t.jsx)("div",{className:w.default.title,children:s?.title}),(0,t.jsxs)("div",{className:w.default.icons,children:[(0,t.jsxs)("div",{className:w.default.unit,children:[(0,t.jsx)(g.default,{src:f.default,alt:"calendar"}),(0,j.formatDate)(String(s?.public_date||s?.update_time||s?.publ_time))]}),(0,t.jsxs)("div",{className:w.default.unit,suppressHydrationWarning:!0,children:[(0,t.jsx)(g.default,{src:x.default,alt:"views",unoptimized:!0}),(0,b.getPostViews)(s?.url||"",s?.views||0,0)]})]})]})]})};var C=e.i(6077);let T=({env:e,articles:s,ctgs:a,onReach:i,loading:l})=>{let r=(0,_.useInfiniteScroll)(i,.3),n=Array.from({length:10},(e,t)=>t+1);return(0,t.jsxs)("div",{ref:r,className:C.default.wrapper,children:[s.map(s=>(0,t.jsx)(y,{env:e,post:s,ctgs:a},s.id)),l&&n.map((s,a)=>(0,t.jsx)(y,{env:e},a))]})};var k=e.i(84078),$=e.i(3241),S=e.i(59260);let A=e=>e?e.replace(/{year}/g,new Date().getFullYear().toString()):null;var L=e.i(37819),W=e.i(47697);e.s(["NavigatorTag",0,({env:e,articles:g,ctgs:v,tag:f,str:x,pageCount:j,tags:N,groupedPosts:b})=>{let{asPath:w}=(0,m.useRouter)(),y=(0,s.useRef)(null),[C,I]=(0,s.useState)([]),[P,D]=(0,s.useState)(!1),O=async()=>{if(x)return;let e=C.length+2,t=await (0,l.getNavigatorData)(h.PER_TAG_PAGE,h.OFFSET,e,f.url),s=t.data?.articles||[];s.length?I(e=>[...e,s]):D(!0)},R=(0,_.useInfiniteScroll)(O,.3),q=(0,s.useRef)(null),{overlayClassName:U,overlayStyles:B}=(0,p.useOverlay)({wrapperRef:q});(0,s.useEffect)(()=>{window.scrollTo(0,0)},[]);let E=e=>{(0,S.newHandelDataLayerPush)({eventCategory:(0,L.translit)(`журнал ${e?.url}`),eventActionType:S.DataLayerActionType.stat,eventActionText:`block_${(0,L.translit)(f.name)}`,eventLabel:(0,L.translit)(e?.title||"")})},z=g.find(e=>!!e.pinned||!!e.pinCategory)||g[0],H=g.filter(({id:e})=>e!==z?.id),V=x?` – страница ${x}`:"",G=(0,$.generateBredcrumbsPath)({tag:{label:f.name}}),M=(0,k.generateBreadcrumbsJsonLd)(G);return(0,t.jsxs)("main",{ref:q,className:W.default.page,children:[(0,t.jsx)(n.HeadMeta,{env:e,title:`${A(f.title)||h.NAVIGATOR_TITLE}${V}`,description:`${A(f.description)||h.NAVIGATOR_DESCRIPTION}${V}`,path:w.split("/str_")[0]}),(0,t.jsxs)(i.Container,{children:[(0,t.jsx)(a.Breadcrumbs,{ellipsis:!0,items:G,style:{padding:"16px 0"}}),(0,t.jsx)("script",{id:"tags-json-ld",type:"application/ld+json",dangerouslySetInnerHTML:{__html:M}}),!x&&(0,t.jsx)("h1",{className:W.default.topTitle,children:f.h1}),!x&&(0,t.jsx)(d.NavigatorTagsBlock,{env:e,isMobile:!0,tags:N,selectedTag:f.url,isCatalog:!0}),(0,t.jsxs)("div",{ref:R,className:W.default.section,children:[(0,t.jsx)(o.NavigatorSidebar,{env:e,tags:N,selectedTag:f.url,isCatalog:!0}),!x&&(0,t.jsxs)("div",{ref:y,className:W.default.main,children:[(0,t.jsx)(u.NewArticles,{env:e,pinned:z,articles:H.slice(0,4),pageName:f.name}),(0,t.jsxs)("div",{className:W.default.articleGridWrapper,children:[(0,t.jsx)(r.ArticleGrid,{env:e,articles:H.slice(4,10),onArticleClick:E}),(0,t.jsx)(r.ArticleGrid,{env:e,articles:H.slice(10,13),onArticleClick:E}),(0,t.jsx)(c.NavigatorSlider,{title:b?.title||"",data:b?.posts_ids||[],isGray:!0}),(0,t.jsx)(r.ArticleGrid,{env:e,articles:H.slice(13),onArticleClick:e=>{(0,S.newHandelDataLayerPush)({eventCategory:(0,L.translit)(`журнал ${e?.url}`),eventActionType:S.DataLayerActionType.stat,eventActionText:(0,L.translit)(`block_${b?.title}`),eventLabel:(0,L.translit)(e?.title??"")})}}),C.map((s,a)=>(0,t.jsx)(r.ArticleGrid,{env:e,articles:s,onReach:O,onArticleClick:E,loading:!P&&a===C.length-1},a))]}),(0,t.jsx)("div",{className:W.default.pagination,children:(0,t.jsx)("a",{className:W.default.paginationNext,href:`/${f.url}/str_2`,children:"Следующая страница - 2"})})]}),!!x&&(0,t.jsxs)("div",{className:W.default.main,children:[(0,t.jsx)("div",{className:W.default.top,children:(0,t.jsx)("h1",{className:W.default.title,children:`${f.h1}${V}`})}),(0,t.jsx)(T,{env:e,articles:H,ctgs:v}),(0,t.jsxs)("div",{className:W.default.pagination,children:[(0,t.jsxs)("a",{href:`/${f.url}/str_${x-1}`,children:["Предыдущая страница - ",x-1]}),x+1<=j&&(0,t.jsxs)("a",{className:W.default.paginationNext,href:`/${f.url}/str_${x+1}`,children:["Следующая страница - ",x+1]})]})]})]})]}),(0,t.jsx)("div",{className:U,style:B})]})}],54397)},50433,e=>{e.v(t=>Promise.all(["static/chunks/3gv87prfigwmb.js"].map(t=>e.l(t))).then(()=>t(14609)))},9466,e=>{e.v(t=>Promise.all(["static/chunks/0rrex9lk1r2ad.js"].map(t=>e.l(t))).then(()=>t(82214)))},14496,e=>{e.v(t=>Promise.all(["static/chunks/1exm8kspp26yc.css","static/chunks/31tio39o0yv3h.css","static/chunks/06-nbuctlmh8o.js"].map(t=>e.l(t))).then(()=>t(46022)))},64532,e=>{e.v(t=>Promise.all(["static/chunks/43_tohdp6tsbm.js"].map(t=>e.l(t))).then(()=>t(4902)))},12027,e=>{e.v(t=>Promise.all(["static/chunks/19ag116lme13j.css","static/chunks/0-jsv_b10ff1j.js"].map(t=>e.l(t))).then(()=>t(94578)))},71444,e=>{e.v(t=>Promise.all(["static/chunks/0iwfoiaj06c-e.js"].map(t=>e.l(t))).then(()=>t(86098)))},56322,e=>{e.v(t=>Promise.all(["static/chunks/2d4_1j3q-zriu.css","static/chunks/29--hqinhl96s.js"].map(t=>e.l(t))).then(()=>t(32200)))},55589,e=>{e.v(t=>Promise.all(["static/chunks/0hixzjzt5dx19.css","static/chunks/3_ktrk0rscwrg.css","static/chunks/1exm8kspp26yc.css","static/chunks/1n8_l29k0-_in.css","static/chunks/3xsj7uixl8nzn.js","static/chunks/0pg2js_b_r8ap.js"].map(t=>e.l(t))).then(()=>t(35651)))},55632,e=>{e.v(t=>Promise.all(["static/chunks/20ssw4rtqv-ns.css","static/chunks/1r3i-rncic80v.css","static/chunks/394-to15l-2bn.js"].map(t=>e.l(t))).then(()=>t(36680)))},26922,e=>{e.v(t=>Promise.all(["static/chunks/3klhhd0seruj0.css","static/chunks/43r_g8vn_z-ev.js"].map(t=>e.l(t))).then(()=>t(31518)))},97322,e=>{e.v(t=>Promise.all(["static/chunks/2q-qy47mu181p.css","static/chunks/25tkljj5z9-il.js"].map(t=>e.l(t))).then(()=>t(15047)))},95537,e=>{e.v(t=>Promise.all(["static/chunks/0cn_6y9g26jwk.js","static/chunks/2cv_92mqqq6rr.css","static/chunks/2jpts4s6k3gs_.css"].map(t=>e.l(t))).then(()=>t(58451)))},84216,e=>{e.v(t=>Promise.all(["static/chunks/2qs7a8xj10qqq.css","static/chunks/2cv_92mqqq6rr.css","static/chunks/2uckn16ceeik0.css","static/chunks/3d_5l27v4_5_b.js"].map(t=>e.l(t))).then(()=>t(44446)))},28880,e=>{e.v(t=>Promise.all(["static/chunks/34unh3wthf7w7.js","static/chunks/2cv_92mqqq6rr.css","static/chunks/2ajkbyjf5ma3k.css"].map(t=>e.l(t))).then(()=>t(4612)))},67513,e=>{e.v(t=>Promise.all(["static/chunks/32oyb87eed7-1.js","static/chunks/1ucb7d6kq8zx9.css"].map(t=>e.l(t))).then(()=>t(48172)))},91063,e=>{e.v(t=>Promise.all(["static/chunks/2s6wlu6m-zn-j.css","static/chunks/1a5-znc-kxs9o.js"].map(t=>e.l(t))).then(()=>t(5076)))},62477,e=>{e.v(t=>Promise.all(["static/chunks/36a_jcchdhb_b.css","static/chunks/2p697joi16447.js"].map(t=>e.l(t))).then(()=>t(29877)))}]);