(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1112],{53529:function(e,t,a){"use strict";a.d(t,{I:function(){return n}});var i=a(2265),l=a(22996),r=a.n(l);let n=e=>{let{wrapperRef:t}=e,[a,l]=(0,i.useState)(0),n=r().overlay,o=()=>{var e;let a=(null===(e=t.current)||void 0===e?void 0:e.getBoundingClientRect().bottom)||1e4;if(a>.6*window.innerHeight)return l(0);let i=(.6*window.innerHeight-a)/(.6*window.innerHeight);l(i>.6?.6:i)};return(0,i.useEffect)(()=>(document.addEventListener("scroll",o),()=>{document.removeEventListener("scroll",o)}),[]),{overlayClassName:n,overlayStyles:{background:"rgba(0, 0, 0, ".concat(a,")")}}}},81112:function(e,t,a){"use strict";a.r(t),a.d(t,{NavigatorDetail:function(){return et}});var i=a(57437),l=a(2265),r=a(80684),n=a(35563),o=a(75461),s=a(54365),d=a(849),u=a(52266),c=a(86031),_=a(2041),p=a(12214),v=a(86435),g=a(61991),m=a(70656),h=a(11095),f=a(87918),x=a(76093),N=a(23195),I=a(79174),b=a(53529),j=a(19256),w=a(48027),D=a.n(w);let y=e=>{let{date:t,className:a,variant:l="desktop"}=e;return t?(0,i.jsx)("div",{className:(0,s.Z)(D().wrapper,a,D()[l]),children:(0,i.jsxs)("label",{children:["Обновлено ",t]})}):null};var C=a(71938),L=a(11197),T=a(4479),k=a.n(T);let P=e=>{var t,a;let{post:l,BASE_URL:n,postViews:o}=e,s=(0,C.p6)(String(l.public_date),!0),d=(0,C.k2)(l.update_time),u=(0,C.fx)(l.public_date,l.update_time),c=l.read_time||0;return(0,i.jsxs)("div",{className:k().wrapper,children:[(0,i.jsxs)("div",{className:k().info,children:[(0,i.jsx)("div",{className:k().unit,children:(0,i.jsx)("label",{children:s})}),!!c&&(0,i.jsxs)("div",{className:k().unit,children:[(0,i.jsx)(r.IconFdsClockO,{size:24}),(0,i.jsxs)("label",{children:[c," мин"]})]}),!!o&&(0,i.jsxs)("div",{className:k().unit,children:[(0,i.jsx)(r.IconFdsEyeO,{size:24}),(0,i.jsx)("label",{children:o})]}),u&&(0,i.jsx)(y,{date:d,className:k().right})]}),!!(null==l?void 0:null===(t=l.author)||void 0===t?void 0:t.name)&&(null==l?void 0:null===(a=l.author)||void 0===a?void 0:a.url)&&(0,i.jsxs)("a",{className:k().author,href:"/navigator/author/".concat(null==l?void 0:l.author.url),target:"_self",children:[(null==l?void 0:l.author.photo)&&(0,i.jsx)("img",{className:k().image,src:(0,L.J)(l.author.photo,"original",n),alt:l.author.name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:k().name,children:l.author.name}),(0,i.jsx)("div",{className:k().position,children:l.author.position})]})]})]})};var S=a(67704),E=a(62178),A=a(80240),H=a(16322);function W(e){let t=e.match(/^navigator\/([^/]+)\/.+$/);return t?t[1]:null}var B=a(13745),M=a(56471),R=a(85769),U=a(89163),z=a(22384),J=a(38856),O=a(27669),Y=a(95257),F=a(73751);let V=async(e,t,a,i,l,r)=>{var n;let o=await (0,F.pW)(e,9,void 0,t,i?void 0:a,i?1:void 0);new Date().setDate(new Date().getDate()-30);let s=((null===(n=o.data)||void 0===n?void 0:n.articles)||[]).filter(e=>e.url!==r).map(e=>{let{url:t}=e;return t});return s.length||i?s:(l(),await V(e,1,"",!0,l,r))};var Q=a(1123);let Z={pp:"i",ps:"foam",p2:"hpaj"},q={"navigator/investirovat":{...Z,pp:"cfbl"},"navigator/kredity":{...Z,pp:"cfbj"},"navigator/nakopit-i-sohranit":{...Z,pp:"cfek"},"navigator/zastrahovat":{...Z,pp:"cfbk"}},G=e=>{var t;return e&&null!==(t=q[e])&&void 0!==t?t:Z},X=e=>{var t;if(e.anons)return e.anons;let a=null===(t=e.content)||void 0===t?void 0:t.find(e=>{let{type:t}=e;return t===u.z.Annotation});return(null==a?void 0:a.data.text)?a.data.text:""};var K=a(99251),$=a.n(K);let ee=()=>{let e=(0,E.jz)();e&&(J.A.setItem("partialAuth",e),J.A.setItem("partialAuthDebugUrl",window.location.href))},et=e=>{var t,a,r,s,u,_;let{env:m,post:b,tags:w,description:D,isMobileApplication:y,extra:C,bestOffers:T}=e,k=m.NEXT_PUBLIC_BASE_URL;(0,I.J)((0,M.E)(m));let P=(0,f.I)(),{asPath:S}=(0,x.t)(),[E,B]=(0,l.useState)(b),[R,U]=(0,l.useState)([]),J=(0,l.useRef)([]),O=(0,l.useRef)(0),F=(0,l.useRef)(!1),[Q,Z]=(0,l.useState)(e.disableInfiniteScroll);(0,l.useEffect)(()=>{ee();let e=()=>{let e=window.location.hash.slice(1).split("?")[0],t=document.getElementById(e);ee(),t&&(0,z.Q)((0,z.n)(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 q=null===(t=E.tag_ids)||void 0===t?void 0:t.reduce((e,t)=>{let a=w.find(e=>{let{id:a}=e;return a===t}),i=S.replace("navigator-new/","navigator/").includes((null==a?void 0:a.url)||"___");return a&&i&&e.unshift(a),a&&!i&&e.push(a),e},[]),X=(null==q?void 0:q[0])||w[0],K=()=>{F.current=!0,O.current=1},et=async()=>{var t;if(e.disableInfiniteScroll)return;J.current.length||(O.current++,J.current=await V(m,O.current,null==X?void 0:X.url,F.current,K,E.url));let a=J.current.shift();if(!a){Z(!0);return}let i=null===(t=(await (0,d.vM)(m,a)).data)||void 0===t?void 0:t.article;if(null==i?void 0:i.best_offers){let e=(0,c.v)(T,i.best_offers);i.bestOffersTab=e}(null==i?void 0:i.title)?U(e=>[...e,i]):et()},ei=w.find(e=>{var t;let{id:a}=e;return a===(null==E?void 0:null===(t=E.tag_ids)||void 0===t?void 0:t[0])}),el=(0,N.M)(et,.5),er=(0,l.useMemo)(()=>"Читать статью на тему “".concat(E.title.trimEnd(),"” онлайн на сайте.  Еще больше актуальных статей").concat(ei?" по теме “".concat(null==ei?void 0:ei.name,"” "):" ","в Журнале Финуслуги."),[w,E]),en=(0,l.useMemo)(()=>""!==D?D:er,[D,er]),eo=G(null==X?void 0:X.url),es=(0,H.z)({tag:{href:null==X?void 0:X.url,label:null==X?void 0:X.name},current:{label:E.title}}),ed=(0,H.z)({includeBase:!1,tag:{href:null==X?void 0:X.url,label:null==X?void 0:X.name}}),eu=(0,A.z)(es),ec=(0,A.z)(ed),e_=JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Article",name:E.title,headline:"".concat(E.title," - читайте на сайте Финуслуги"),description:en,url:"".concat(k,"/").concat(E.url),about:{"@type":"Thing",...ei&&{name:null==ei?void 0:ei.name,sameAs:"".concat(k,"/").concat(null==ei?void 0:ei.url)}},mainEntityOfPage:{"@type":"WebPage","@id":"".concat(k,"/").concat(E.url)},dateCreated:E.public_date||E.publ_date,datePublished:E.public_date||E.publ_date,dateModified:E.update_time||E.public_date,thumbnailUrl:(0,L.J)(null==E?void 0:null===(a=E.image)||void 0===a?void 0:a.file,"big",k),...E.author&&{author:{"@type":"Person",name:null===(r=E.author)||void 0===r?void 0:r.name,url:"".concat(k,"/navigator/author/").concat(null===(s=E.author)||void 0===s?void 0:s.url)}},...(null==E?void 0:E.publisher)&&{publisher:{"@type":E.publisher.type,name:E.publisher.name,url:"".concat(k),address:{"@type":"PostalAddress",name:E.publisher.address},logo:{"@type":"ImageObject",url:"".concat(k,"/icons/header_logo.svg"),width:168,height:42}}}},JSON.parse(ec)]}),{anons:ep,publ_date:ev}=E,eg=ev.split(" ")[0].split("-")[0],em="Дарим 4000 рублей за первый вклад"===ep&&"2022"===eg||e.noIndex||(0,M.E)(m),eh=(0,c.v)(T,b.best_offers);return(0,i.jsxs)("main",{ref:el,className:$().page,children:[!C&&(0,i.jsx)(p.N,{env:m,title:E.seo_title||E.custom_title||E.title,description:E.seo_description||en,path:S,noindex:em,image:(0,L.J)(null==b?void 0:null===(u=b.image)||void 0===u?void 0:u.file,"big",k),isDetailPage:!0}),(0,i.jsxs)(n.W2,{children:[!y&&!C&&(0,i.jsx)(o.Oo,{ellipsis:!0,items:es,style:{padding:"16px 0"}}),!y&&!C&&(0,i.jsx)(g.v5,{env:m,isMobile:!0,tags:w,selectedTag:null==X?void 0:X.url}),(0,i.jsxs)("div",{className:$().content,children:[(0,i.jsx)(v.F,{env:m,tags:w,selectedTag:null==X?void 0:X.url}),(0,i.jsxs)("div",{className:$().main,children:[(0,i.jsx)(ea,{...e,onReach:et,handleChangePost:e=>B(e)}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:e_}}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:eu}}),eh&&(0,i.jsx)(c.e,{category:null!==(_=W(b.url))&&void 0!==_?_:"",tab:eh}),!y&&(0,i.jsx)(h.Z,{config:P,params:eo}),R.map(t=>{var a;let{bestOffersTab:r,...n}=t;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(ea,{extra:!0,handleChangePost:B,...e,onReach:et,post:n}),r&&(0,i.jsx)(c.e,{category:null!==(a=W(n.url))&&void 0!==a?a:"",tab:r})]},n.url)}),!Q&&(0,i.jsx)(ea,{...e,post:j.Wn,extra:!0,skeleton:!0})]})]})]}),(0,i.jsx)(Y.w,{articleRef:el})]})},ea=e=>{var t,a,n,o,c,p;let{env:v,post:h,tags:f,ctgs:I,isMobileApplication:j,extra:w,onReach:D,skeleton:T,handleChangePost:k,disableInfiniteScroll:E}=e,{asPath:A,push:H}=(0,x.t)(),[W,J]=(0,l.useState)(h.views||0),[Y,F]=(0,l.useState)(!1),V=(0,N.M)(D,.5),Z=(0,l.useRef)(!w),q=(0,l.useRef)(!1),{overlayClassName:K,overlayStyles:ee}=(0,b.I)({wrapperRef:V}),et=(0,C.fx)(h.public_date,h.update_time),ea=(null===(a=h.content)||void 0===a?void 0:null===(t=a.filter(e=>"header"===e.type))||void 0===t?void 0:t.map(e=>{var t;return null===(t=e.data)||void 0===t?void 0:t.text}))||[],ei=(0,S.I)((0,U.$)(X(h))),el=(null===(n=h.content)||void 0===n?void 0:n.filter(e=>!!h.anons||e.type!==u.z.Annotation))||[],er=null===(o=h.tag_ids)||void 0===o?void 0:o.reduce((e,t)=>{let a=f.find(e=>{let{id:a}=e;return a===t}),i=A.replace("navigator-new/","navigator/").includes((null==a?void 0:a.url)||"___");return a&&i&&e.unshift(a),a&&!i&&e.push(a),e},[]),en=(null==er?void 0:er[0])||f[0],eo=G(null==en?void 0:en.url),es=v.NEXT_PUBLIC_BASE_URL;(0,l.useEffect)(()=>{w||T||(q.current=!0,(0,d.f6)(v,h.url).then(e=>{J((0,B.V)(h.url,e||h.views,1))}))},[]),(0,l.useEffect)(()=>{if(V.current&&!T&&!E){let e=V.current,t=()=>{if(!e||!V.current)return;let t=V.current.getBoundingClientRect().top+window.scrollY,a=t+V.current.offsetHeight,i=window.scrollY+window.innerHeight/2,l=i>t&&i<a;!l||Z.current||q.current||(q.current=!0,(0,d.f6)(v,h.url).then(e=>{J((0,B.V)(h.url,e||h.views,1))})),l&&!Z.current&&(Z.current=!0,null==k||k(h),H((0,M.E)(v)?"/".concat(h.url).replace("/navigator","/navigator-new"):"/".concat(h.url),void 0,{shallow:!0})),l||(Z.current=!1)};return document.addEventListener("scroll",t),()=>{e&&document.removeEventListener("scroll",t)}}},[]);let ed=e=>{let{index:t,post:a}=e;(0,R.I)({eventCategory:"".concat((0,O.b)("журнал"),"_").concat(location.pathname),eventActionType:R.i.link,eventActionText:(0,O.b)(a.title),eventLabel:""});let i=document.getElementById("".concat(a.id,"_content_header_").concat(t));i&&(0,z.Q)((0,z.n)(i)-32)},eu=!j&&!!ea.length&&0!==h.show_content;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:V,className:(0,s.Z)($().article,{[$().app]:j,[$().skeleton]:T}),children:[(0,i.jsxs)("div",{className:$().articleContentWrapper,children:[!j&&(0,i.jsxs)("div",{className:$().topInfoWrapper,children:[(0,i.jsx)(g.Yx,{env:v,tag:en}),(0,i.jsxs)("div",{className:$().rightInfo,children:[(0,i.jsxs)("div",{className:$().share,onClick:()=>{(0,R.I)({eventCategory:"".concat((0,O.b)("журнал"),"_").concat(location.pathname),eventActionType:R.i.button,eventActionText:(0,O.b)("поделиться"),eventLabel:""}),F(e=>!e)},children:[(0,i.jsx)(r.IconFdsArrowForwardO,{size:24}),(0,i.jsx)("p",{className:"desktopOnly",children:"Поделиться"})]}),(0,i.jsx)(m.n,{className:(0,s.Z)($().soc,{[$().show]:Y}),title:h.title,url:"/".concat(h.url)})]})]}),et&&(0,i.jsx)(y,{date:(0,C.k2)(h.update_time),variant:"mobile"}),(0,i.jsx)(T?"div":"h1",{className:$().articleTitle,dangerouslySetInnerHTML:{__html:(0,S.I)(h.title)}}),(0,i.jsx)("div",{className:$().anons,dangerouslySetInnerHTML:{__html:ei}}),(0,i.jsx)(P,{post:h,BASE_URL:es,postViews:W}),!!(null==h?void 0:null===(c=h.image)||void 0===c?void 0:c.file)&&(null==h?void 0:null===(p=h.image)||void 0===p?void 0:p.file)!=="."&&(0,i.jsx)(Q.t,{isLazy:!1,srcDesktop:(0,L.J)(h.image.file,"big",es),srcMobile:(0,L.J)(h.image.file,"small",es),caption:h.cover_title,captionClassName:$().detailImageCaption,className:$().detailImageWrapper}),eu&&(0,i.jsxs)("div",{className:$().contentTable,children:[(0,i.jsx)("label",{children:"Содержание статьи"}),(0,i.jsx)("div",{className:$().contentList,children:ea.map((e,t)=>(0,i.jsx)("div",{onClick:()=>ed({index:t+1,post:h}),dangerouslySetInnerHTML:{__html:e||""}},t))})]}),(0,i.jsx)(_.L,{env:v,data:el,params:eo,post:h,ctgs:I,tags:f})]}),(0,i.jsx)("div",{className:K,style:{...ee,borderRadius:"20px"}})]})})}},22996:function(e){e.exports={overlay:"overlay_overlay__IYIIy",shine:"overlay_shine__z0s5G"}},99251:function(e){e.exports={contentTable:"NavigatorDetail_contentTable__Ee7cL",expertName:"NavigatorDetail_expertName__dM93u",group:"NavigatorDetail_group__3_MFk",popularTitle:"NavigatorDetail_popularTitle__CWAvo",popularItemCat:"NavigatorDetail_popularItemCat__70rvJ",popularItemTitle:"NavigatorDetail_popularItemTitle__hTuPJ",article:"NavigatorDetail_article__9O55C",skeleton:"NavigatorDetail_skeleton__VV4d7",articleTitle:"NavigatorDetail_articleTitle__HBr_o",anons:"NavigatorDetail_anons__rKrM4",detailImageWrapper:"NavigatorDetail_detailImageWrapper__Shx0R",shine:"NavigatorDetail_shine__k1Hvq",page:"NavigatorDetail_page__1XYbQ",content:"NavigatorDetail_content__69F30",main:"NavigatorDetail_main__Q1puG",articleContentWrapper:"NavigatorDetail_articleContentWrapper__ivoDI",topInfoWrapper:"NavigatorDetail_topInfoWrapper__CbUvJ",share:"NavigatorDetail_share__fH1Dv",soc:"NavigatorDetail_soc__l1LcC",show:"NavigatorDetail_show__L4bay",rightInfo:"NavigatorDetail_rightInfo__WubZP",articleBottomCard:"NavigatorDetail_articleBottomCard__OIBJV",catWrapper:"NavigatorDetail_catWrapper__2IPYa",cat:"NavigatorDetail_cat__xepeo",shareButton:"NavigatorDetail_shareButton___Ijrz",detailImageCaption:"NavigatorDetail_detailImageCaption__9bYhb",detailImage:"NavigatorDetail_detailImage__UzDLd",detailImageM:"NavigatorDetail_detailImageM__jXgrr",contentList:"NavigatorDetail_contentList__wPa4r",mobAppAd:"NavigatorDetail_mobAppAd__pRx8b",expert:"NavigatorDetail_expert__mvdsV",expertPosition:"NavigatorDetail_expertPosition__U99_R",shareWrapper:"NavigatorDetail_shareWrapper__QhDMQ",articleGridWrapper:"NavigatorDetail_articleGridWrapper__rVfkw",fullInfoLink:"NavigatorDetail_fullInfoLink__StR86",popularContentWrapper:"NavigatorDetail_popularContentWrapper__jdcdP",slider:"NavigatorDetail_slider__lxY3o",sliderLeftButton:"NavigatorDetail_sliderLeftButton__1ep95",sliderRightButton:"NavigatorDetail_sliderRightButton__IRRll",singleItem:"NavigatorDetail_singleItem__HOWJ5",popularItem:"NavigatorDetail_popularItem__euRdq",popularItemImage:"NavigatorDetail_popularItemImage__wJ0EN",popularItemContent:"NavigatorDetail_popularItemContent__LQpTh",popularItemStatUnit:"NavigatorDetail_popularItemStatUnit__Ei9IV",popularItemStat:"NavigatorDetail_popularItemStat__srU0c",popularItemStatLeft:"NavigatorDetail_popularItemStatLeft__9YmA4",stickySidebar:"NavigatorDetail_stickySidebar__7AQDU",sidebar:"NavigatorDetail_sidebar__jyYV3"}},4479:function(e){e.exports={wrapper:"PostHeaderInfo_wrapper__q3duy",info:"PostHeaderInfo_info__MTZgY",unit:"PostHeaderInfo_unit__MFtd0",right:"PostHeaderInfo_right__g6p85",author:"PostHeaderInfo_author__5F0go",image:"PostHeaderInfo_image__5_hKK",name:"PostHeaderInfo_name__m7va8",position:"PostHeaderInfo_position__EU0UH",shine:"PostHeaderInfo_shine___CqVZ"}},48027:function(e){e.exports={wrapper:"PostUpdateTime_wrapper__0G5Yj",desktop:"PostUpdateTime_desktop__qtw1t",mobile:"PostUpdateTime_mobile__CEb72",shine:"PostUpdateTime_shine__vBYrm"}}}]);