(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1112],{3529:function(e,t,a){"use strict";a.d(t,{I:function(){return n}});var i=a(2265),r=a(2996),l=a.n(r);let n=e=>{let{wrapperRef:t}=e,[a,r]=(0,i.useState)(0),n=l().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 r(0);let i=(.6*window.innerHeight-a)/(.6*window.innerHeight);r(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,")")}}}},1112:function(e,t,a){"use strict";a.r(t),a.d(t,{NavigatorDetail:function(){return X}});var i=a(7437),r=a(2265),l=a(684),n=a(5563),o=a(5461),s=a(4365),d=a(849),c=a(2266),u=a(6031),_=a(1561),p=a(2214),v=a(6435),g=a(1991),m=a(656),h=a(1095),f=a(7918),N=a(6093),x=a(3195),I=a(9174),b=a(3529),j=a(9256),w=a(8027),D=a.n(w);let y=e=>{let{date:t,className:a,variant:r="desktop"}=e;return t?(0,i.jsx)("div",{className:(0,s.Z)(D().wrapper,a,D()[r]),children:(0,i.jsxs)("label",{children:["Обновлено ",t]})}):null};var C=a(1938),L=a(1197),T=a(4479),k=a.n(T);let P=e=>{var t,a;let{post:r,BASE_URL:n,postViews:o}=e,s=(0,C.p6)(String(r.public_date),!0),d=(0,C.k2)(r.update_time),c=(0,C.fx)(r.public_date,r.update_time),u=r.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})}),!!u&&(0,i.jsxs)("div",{className:k().unit,children:[(0,i.jsx)(l.IconFdsClockO,{size:24}),(0,i.jsxs)("label",{children:[u," мин"]})]}),!!o&&(0,i.jsxs)("div",{className:k().unit,children:[(0,i.jsx)(l.IconFdsEyeO,{size:24}),(0,i.jsx)("label",{children:o})]}),c&&(0,i.jsx)(y,{date:d,className:k().right})]}),!!(null==r?void 0:null===(t=r.author)||void 0===t?void 0:t.name)&&(null==r?void 0:null===(a=r.author)||void 0===a?void 0:a.url)&&(0,i.jsxs)("a",{className:k().author,href:"/navigator/author/".concat(null==r?void 0:r.author.url),target:"_self",children:[(null==r?void 0:r.author.photo)&&(0,i.jsx)("img",{className:k().image,src:(0,L.J)(r.author.photo,"original",n),alt:r.author.name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:k().name,children:r.author.name}),(0,i.jsx)("div",{className:k().position,children:r.author.position})]})]})]})};var S=a(2953),E=a(7704),H=a(240),W=a(6322);function M(e){let t=e.match(/^navigator\/([^/]+)\/.+$/);return t?t[1]:null}var R=a(3745),A=a(5769),B=a(9163),U=a(2384),z=a(7669),J=a(5257),O=a(3751);let Y=async(e,t,a,i,r,l)=>{var n;let o=await (0,O.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!==l).map(e=>{let{url:t}=e;return t});return s.length||i?s:(r(),await Y(e,1,"",!0,r,l))},F=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===c.z.Annotation});return(null==a?void 0:a.data.text)?a.data.text:""};var V=a(1123);let Q={pp:"i",ps:"foam",p2:"hpaj"},Z={"navigator/investirovat":{...Q,pp:"cfbl"},"navigator/kredity":{...Q,pp:"cfbj"},"navigator/nakopit-i-sohranit":{...Q,pp:"cfek"},"navigator/zastrahovat":{...Q,pp:"cfbk"}},q=e=>{var t;return e&&null!==(t=Z[e])&&void 0!==t?t:Q};var G=a(9251),K=a.n(G);let X=e=>{var t,a,l,s,c,_;let{env:m,post:b,tags:w,description:D,isMobileApplication:y,extra:C,bestOffers:T}=e;(0,I.J)(m.isNavigatorNew);let k=(0,f.I)(),{asPath:P}=(0,N.t)(),[E,R]=(0,r.useState)(b),[A,B]=(0,r.useState)([]),z=(0,r.useRef)([]),O=(0,r.useRef)(0),F=(0,r.useRef)(!1),[V,Q]=(0,r.useState)(e.disableInfiniteScroll);(0,r.useEffect)(()=>{let e=()=>{var e;let t=document.getElementById(null===(e=window.location.hash)||void 0===e?void 0:e.slice(1));t&&(0,U.Q)((0,U.n)(t)-32),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=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=P.replace("navigator-new/","navigator/").includes((null==a?void 0:a.url)||"___");return a&&i&&e.unshift(a),a&&!i&&e.push(a),e},[]),G=(null==Z?void 0:Z[0])||w[0],X=()=>{F.current=!0,O.current=1},ee=async()=>{var t;if(e.disableInfiniteScroll)return;z.current.length||(O.current++,z.current=await Y(m,O.current,G.url,F.current,X,E.url));let a=z.current.shift();if(!a){Q(!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,u.v)(T,i.best_offers);i.bestOffersTab=e}(null==i?void 0:i.title)?B(e=>[...e,i]):ee()},et=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])}),ea=(0,x.M)(ee,.5),ei=(0,r.useMemo)(()=>"Читать статью на тему “".concat(E.title.trimEnd(),"” онлайн на сайте.  Еще больше актуальных статей").concat(et?" по теме “".concat(null==et?void 0:et.name,"” "):" ","в Журнале Финуслуги."),[w,E]),er=(0,r.useMemo)(()=>""!==D?D:ei,[D,ei]),el=q(null==G?void 0:G.url),en=(0,W.z)({tag:{href:G.url,label:G.name},current:{label:E.title}}),eo=(0,W.z)({includeBase:!1,tag:{href:G.url,label:G.name}}),es=(0,H.z)(en),ed=(0,H.z)(eo),ec=JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Article",name:E.title,headline:"".concat(E.title," - читайте на сайте Финуслуги"),description:er,url:"".concat(S._n,"/").concat(E.url),about:{"@type":"Thing",...et&&{name:null==et?void 0:et.name,sameAs:"".concat(S._n,"/").concat(null==et?void 0:et.url)}},mainEntityOfPage:{"@type":"WebPage","@id":"".concat(S._n,"/").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",S._n),...E.author&&{author:{"@type":"Person",name:null===(l=E.author)||void 0===l?void 0:l.name,url:"".concat(S._n,"/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(S._n),address:{"@type":"PostalAddress",name:E.publisher.address},logo:{"@type":"ImageObject",url:"".concat(S._n,"/icons/header_logo.svg"),width:168,height:42}}}},JSON.parse(ed)]}),{anons:eu,publ_date:e_}=E,ep=e_.split(" ")[0].split("-")[0],ev="Дарим 4000 рублей за первый вклад"===eu&&"2022"===ep||e.noIndex||m.isNavigatorNew,eg=(0,u.v)(T,b.best_offers);return(0,i.jsxs)("main",{ref:ea,className:K().page,children:[!C&&(0,i.jsx)(p.N,{env:m,title:E.seo_title||E.custom_title||E.title,description:E.seo_description||er,path:P,noindex:ev,image:(0,L.J)(null==b?void 0:null===(c=b.image)||void 0===c?void 0:c.file,"big",S._n),isDetailPage:!0}),(0,i.jsxs)(n.W2,{children:[!y&&!C&&(0,i.jsx)(o.Oo,{ellipsis:!0,items:en,style:{padding:"16px 0"}}),!y&&!C&&(0,i.jsx)(g.v5,{env:m,isMobile:!0,tags:w,selectedTag:null==G?void 0:G.url}),(0,i.jsxs)("div",{className:K().content,children:[(0,i.jsx)(v.F,{env:m,tags:w,selectedTag:null==G?void 0:G.url}),(0,i.jsxs)("div",{className:K().main,children:[(0,i.jsx)($,{...e,onReach:ee,handleChangePost:e=>R(e)}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ec}}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:es}}),eg&&(0,i.jsx)(u.e,{category:null!==(_=M(b.url))&&void 0!==_?_:"",tab:eg}),!y&&(0,i.jsx)(h.Z,{config:k,params:el}),A.map(t=>{var a;let{bestOffersTab:l,...n}=t;return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)($,{extra:!0,handleChangePost:R,...e,onReach:ee,post:n}),l&&(0,i.jsx)(u.e,{category:null!==(a=M(n.url))&&void 0!==a?a:"",tab:l})]},n.url)}),!V&&(0,i.jsx)($,{...e,post:j.Wn,extra:!0,skeleton:!0})]})]})]}),(0,i.jsx)(J.w,{articleRef:ea})]})},$=e=>{var t,a,n,o,u,p;let{env:v,post:h,tags:f,ctgs:I,isMobileApplication:j,extra:w,onReach:D,skeleton:T,handleChangePost:k,disableInfiniteScroll:S}=e,{asPath:H,push:W}=(0,N.t)(),[M,J]=(0,r.useState)(h.views||0),[O,Y]=(0,r.useState)(!1),Q=(0,x.M)(D,.5),Z=(0,r.useRef)(!w),G=(0,r.useRef)(!1),{overlayClassName:X,overlayStyles:$}=(0,b.I)({wrapperRef:Q}),ee=(0,C.fx)(h.public_date,h.update_time),et=(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}))||[],ea=(0,E.I)((0,B.$)(F(h))),ei=(null===(n=h.content)||void 0===n?void 0:n.filter(e=>!!h.anons||e.type!==c.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=H.replace("navigator-new/","navigator/").includes((null==a?void 0:a.url)||"___");return a&&i&&e.unshift(a),a&&!i&&e.push(a),e},[]),el=(null==er?void 0:er[0])||f[0],en=q(null==el?void 0:el.url),eo=v.NEXT_PUBLIC_BASE_URL;(0,r.useEffect)(()=>{w||T||(G.current=!0,(0,d.f6)(v,h.url).then(e=>{J((0,R.V)(h.url,e||h.views,1))}))},[]),(0,r.useEffect)(()=>{if(Q.current&&!T&&!S){let e=Q.current,t=()=>{if(!e||!Q.current)return;let t=Q.current.getBoundingClientRect().top+window.scrollY,a=t+Q.current.offsetHeight,i=window.scrollY+window.innerHeight/2,r=i>t&&i<a;!r||Z.current||G.current||(G.current=!0,(0,d.f6)(v,h.url).then(e=>{J((0,R.V)(h.url,e||h.views,1))})),r&&!Z.current&&(Z.current=!0,null==k||k(h),W(v.isNavigatorNew?"/".concat(h.url).replace("/navigator","/navigator-new"):"/".concat(h.url),void 0,{shallow:!0})),r||(Z.current=!1)};return document.addEventListener("scroll",t),()=>{e&&document.removeEventListener("scroll",t)}}},[]);let es=e=>{let{index:t,post:a}=e;(0,A.I)({eventCategory:"".concat((0,z.b)("журнал"),"_").concat(location.pathname),eventActionType:A.i.link,eventActionText:(0,z.b)(a.title),eventLabel:""});let i=document.getElementById("".concat(a.id,"_content_header_").concat(t));i&&(0,U.Q)((0,U.n)(i)-32)},ed=!j&&!!et.length&&0!==h.show_content;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:Q,className:(0,s.Z)(K().article,{[K().app]:j,[K().skeleton]:T}),children:[(0,i.jsxs)("div",{className:K().articleContentWrapper,children:[!j&&(0,i.jsxs)("div",{className:K().topInfoWrapper,children:[(0,i.jsx)(g.Yx,{env:v,tag:el}),(0,i.jsxs)("div",{className:K().rightInfo,children:[(0,i.jsxs)("div",{className:K().share,onClick:()=>{(0,A.I)({eventCategory:"".concat((0,z.b)("журнал"),"_").concat(location.pathname),eventActionType:A.i.button,eventActionText:(0,z.b)("поделиться"),eventLabel:""}),Y(e=>!e)},children:[(0,i.jsx)(l.IconFdsArrowForwardO,{size:24}),(0,i.jsx)("p",{className:"desktopOnly",children:"Поделиться"})]}),(0,i.jsx)(m.n,{className:(0,s.Z)(K().soc,{[K().show]:O}),title:h.title,url:"/".concat(h.url)})]})]}),ee&&(0,i.jsx)(y,{date:(0,C.k2)(h.update_time),variant:"mobile"}),(0,i.jsx)(T?"div":"h1",{className:K().articleTitle,dangerouslySetInnerHTML:{__html:(0,E.I)(h.title)}}),(0,i.jsx)("div",{className:K().anons,dangerouslySetInnerHTML:{__html:ea}}),(0,i.jsx)(P,{post:h,BASE_URL:eo,postViews:M}),!!(null==h?void 0:null===(u=h.image)||void 0===u?void 0:u.file)&&(null==h?void 0:null===(p=h.image)||void 0===p?void 0:p.file)!=="."&&(0,i.jsx)(V.t,{isLazy:!1,srcDesktop:(0,L.J)(h.image.file,"big",eo),srcMobile:(0,L.J)(h.image.file,"small",eo),caption:h.cover_title,captionClassName:K().detailImageCaption,className:K().detailImageWrapper}),ed&&(0,i.jsxs)("div",{className:K().contentTable,children:[(0,i.jsx)("label",{children:"Содержание статьи"}),(0,i.jsx)("div",{className:K().contentList,children:et.map((e,t)=>(0,i.jsx)("div",{onClick:()=>es({index:t+1,post:h}),dangerouslySetInnerHTML:{__html:e||""}},t))})]}),(0,i.jsx)(_.L,{env:v,data:ei,params:en,post:h,ctgs:I,tags:f})]}),(0,i.jsx)("div",{className:X,style:{...$,borderRadius:"20px"}})]})})}},2996:function(e){e.exports={overlay:"overlay_overlay__IYIIy",shine:"overlay_shine__z0s5G"}},9251: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"}},8027:function(e){e.exports={wrapper:"PostUpdateTime_wrapper__0G5Yj",desktop:"PostUpdateTime_desktop__qtw1t",mobile:"PostUpdateTime_mobile__CEb72",shine:"PostUpdateTime_shine__vBYrm"}}}]);