(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 $}});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(89606),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(53529),b=a(19256),j=a(48027),D=a.n(j);let w=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 y=a(71938),C=a(11197),L=a(4479),T=a.n(L);let k=e=>{var t,a;let{post:l,BASE_URL:n,postViews:o}=e,s=(0,y.p6)(String(l.public_date),!0),d=(0,y.k2)(l.update_time),u=(0,y.fx)(l.public_date,l.update_time),c=l.read_time||0;return(0,i.jsxs)("div",{className:T().wrapper,children:[(0,i.jsxs)("div",{className:T().info,children:[(0,i.jsx)("div",{className:T().unit,children:(0,i.jsx)("label",{children:s})}),!!c&&(0,i.jsxs)("div",{className:T().unit,children:[(0,i.jsx)(r.IconFdsClockO,{size:24}),(0,i.jsxs)("label",{children:[c," мин"]})]}),!!o&&(0,i.jsxs)("div",{className:T().unit,children:[(0,i.jsx)(r.IconFdsEyeO,{size:24}),(0,i.jsx)("label",{children:o})]}),u&&(0,i.jsx)(w,{date:d,className:T().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:T().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:T().image,src:(0,C.J)(l.author.photo,"original",n),alt:l.author.name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:T().name,children:l.author.name}),(0,i.jsx)("div",{className:T().position,children:l.author.position})]})]})]})};var P=a(67704),S=a(62178),E=a(80240),A=a(16322);function H(e){let t=e.match(/^navigator\/([^/]+)\/.+$/);return t?t[1]:null}var W=a(13745),B=a(85769),M=a(89163),R=a(22384),U=a(38856),z=a(27669),J=a(95257),O=a(17812);let Y=async(e,t,a,i,l,r)=>{var n;let o=await (0,O.pW)(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 Y(e,1,"",!0,l,r))};var F=a(1123);let V={pp:"i",ps:"foam",p2:"hpaj"},Q={"navigator/investirovat":{...V,pp:"cfbl"},"navigator/kredity":{...V,pp:"cfbj"},"navigator/nakopit-i-sohranit":{...V,pp:"cfek"},"navigator/zastrahovat":{...V,pp:"cfbk"}},Z=e=>{var t;return e&&null!==(t=Q[e])&&void 0!==t?t:V},q=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 G=a(99251),X=a.n(G);let K=()=>{let e=(0,S.jz)();e&&(U.A.setItem("partialAuth",e),U.A.setItem("partialAuthDebugUrl",window.location.href))},$=e=>{var t,a,r,s,u,_;let{env:m,post:I,tags:j,description:D,isMobileApplication:w,extra:y,bestOffers:L}=e,T=m.NEXT_PUBLIC_BASE_URL,k=(0,f.I)(),{asPath:P}=(0,x.t)(),[S,W]=(0,l.useState)(I),[B,M]=(0,l.useState)([]),U=(0,l.useRef)([]),z=(0,l.useRef)(0),O=(0,l.useRef)(!1),[F,V]=(0,l.useState)(e.disableInfiniteScroll);(0,l.useEffect)(()=>{K();let e=()=>{let e=window.location.hash.slice(1).split("?")[0],t=document.getElementById(e);K(),t&&(0,R.Q)((0,R.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=S.tag_ids)||void 0===t?void 0:t.reduce((e,t)=>{let a=j.find(e=>{let{id:a}=e;return a===t}),i=P.includes((null==a?void 0:a.url)||"___");return a&&i&&e.unshift(a),a&&!i&&e.push(a),e},[]),q=(null==Q?void 0:Q[0])||j[0],G=()=>{O.current=!0,z.current=1},$=async()=>{var t;if(e.disableInfiniteScroll)return;U.current.length||(z.current++,U.current=await Y(m,z.current,null==q?void 0:q.url,O.current,G,S.url));let a=U.current.shift();if(!a){V(!0);return}let i=null===(t=(await (0,d.vM)(a)).data)||void 0===t?void 0:t.article;if(null==i?void 0:i.best_offers){let e=(0,c.v)(L,i.best_offers);i.bestOffersTab=e}(null==i?void 0:i.title)?M(e=>[...e,i]):$()},et=j.find(e=>{var t;let{id:a}=e;return a===(null==S?void 0:null===(t=S.tag_ids)||void 0===t?void 0:t[0])}),ea=(0,N.M)($,.5),ei=(0,l.useMemo)(()=>"Читать статью на тему “".concat(S.title.trimEnd(),"” онлайн на сайте.  Еще больше актуальных статей").concat(et?" по теме “".concat(null==et?void 0:et.name,"” "):" ","в Журнале Финуслуги."),[j,S]),el=(0,l.useMemo)(()=>""!==D?D:ei,[D,ei]),er=Z(null==q?void 0:q.url),en=(0,A.z)({tag:{href:null==q?void 0:q.url,label:null==q?void 0:q.name},current:{label:S.title}}),eo=(0,A.z)({includeBase:!1,tag:{href:null==q?void 0:q.url,label:null==q?void 0:q.name}}),es=(0,E.z)(en),ed=(0,E.z)(eo),eu=JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Article",name:S.title,headline:"".concat(S.title," - читайте на сайте Финуслуги"),description:el,url:"".concat(T,"/").concat(S.url),about:{"@type":"Thing",...et&&{name:null==et?void 0:et.name,sameAs:"".concat(T,"/").concat(null==et?void 0:et.url)}},mainEntityOfPage:{"@type":"WebPage","@id":"".concat(T,"/").concat(S.url)},dateCreated:S.public_date||S.publ_date,datePublished:S.public_date||S.publ_date,dateModified:S.update_time||S.public_date,thumbnailUrl:(0,C.J)(null==S?void 0:null===(a=S.image)||void 0===a?void 0:a.file,"big",T),...S.author&&{author:{"@type":"Person",name:null===(r=S.author)||void 0===r?void 0:r.name,url:"".concat(T,"/navigator/author/").concat(null===(s=S.author)||void 0===s?void 0:s.url)}},...(null==S?void 0:S.publisher)&&{publisher:{"@type":S.publisher.type,name:S.publisher.name,url:"".concat(T),address:{"@type":"PostalAddress",name:S.publisher.address},logo:{"@type":"ImageObject",url:"".concat(T,"/icons/header_logo.svg"),width:168,height:42}}}},JSON.parse(ed)]}),{anons:ec,publ_date:e_}=S,ep=e_.split(" ")[0].split("-")[0],ev="Дарим 4000 рублей за первый вклад"===ec&&"2022"===ep||e.noIndex,eg=(0,c.v)(L,I.best_offers);return(0,i.jsxs)("main",{ref:ea,className:X().page,children:[!y&&(0,i.jsx)(p.N,{env:m,title:S.seo_title||S.custom_title||S.title,description:S.seo_description||el,path:P,noindex:ev,image:(0,C.J)(null==I?void 0:null===(u=I.image)||void 0===u?void 0:u.file,"big",T),isDetailPage:!0}),(0,i.jsxs)(n.W2,{children:[!w&&!y&&(0,i.jsx)(o.Oo,{ellipsis:!0,items:en,style:{padding:"16px 0"}}),!w&&!y&&(0,i.jsx)(g.v5,{env:m,isMobile:!0,tags:j,selectedTag:null==q?void 0:q.url}),(0,i.jsxs)("div",{className:X().content,children:[(0,i.jsx)(v.F,{env:m,tags:j,selectedTag:null==q?void 0:q.url}),(0,i.jsxs)("div",{className:X().main,children:[(0,i.jsx)(ee,{...e,onReach:$,handleChangePost:e=>W(e)}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:eu}}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:es}}),eg&&(0,i.jsx)(c.e,{category:null!==(_=H(I.url))&&void 0!==_?_:"",tab:eg}),!w&&(0,i.jsx)(h.Z,{config:k,params:er}),B.map(t=>{var a;let{bestOffersTab:r,...n}=t;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(ee,{extra:!0,handleChangePost:W,...e,onReach:$,post:n}),r&&(0,i.jsx)(c.e,{category:null!==(a=H(n.url))&&void 0!==a?a:"",tab:r})]},n.url)}),!F&&(0,i.jsx)(ee,{...e,post:b.Wn,extra:!0,skeleton:!0})]})]})]}),(0,i.jsx)(J.w,{articleRef:ea})]})},ee=e=>{var t,a,n,o,c,p;let{env:v,post:h,tags:f,ctgs:b,isMobileApplication:j,extra:D,onReach:L,skeleton:T,handleChangePost:S,disableInfiniteScroll:E}=e,{asPath:A,push:H}=(0,x.t)(),[U,J]=(0,l.useState)(h.views||0),[O,Y]=(0,l.useState)(!1),V=(0,N.M)(L,.5),Q=(0,l.useRef)(!D),G=(0,l.useRef)(!1),{overlayClassName:K,overlayStyles:$}=(0,I.I)({wrapperRef:V}),ee=(0,y.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,P.I)((0,M.$)(q(h))),ei=(null===(n=h.content)||void 0===n?void 0:n.filter(e=>!!h.anons||e.type!==u.z.Annotation))||[],el=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.includes((null==a?void 0:a.url)||"___");return a&&i&&e.unshift(a),a&&!i&&e.push(a),e},[]),er=(null==el?void 0:el[0])||f[0],en=Z(null==er?void 0:er.url),eo=v.NEXT_PUBLIC_BASE_URL;(0,l.useEffect)(()=>{D||T||(G.current=!0,(0,d.f6)(v,h.url).then(e=>{J((0,W.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||Q.current||G.current||(G.current=!0,(0,d.f6)(v,h.url).then(e=>{J((0,W.V)(h.url,e||h.views,1))})),l&&!Q.current&&(Q.current=!0,null==S||S(h),H("/".concat(h.url),void 0,{shallow:!0})),l||(Q.current=!1)};return document.addEventListener("scroll",t),()=>{e&&document.removeEventListener("scroll",t)}}},[]);let es=e=>{let{index:t,post:a}=e;(0,B.I)({eventCategory:"".concat((0,z.b)("журнал"),"_").concat(location.pathname),eventActionType:B.i.link,eventActionText:(0,z.b)(a.title),eventLabel:""});let i=document.getElementById("".concat(a.id,"_content_header_").concat(t));i&&(0,R.Q)((0,R.n)(i)-32)},ed=!j&&!!et.length&&0!==h.show_content;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:V,className:(0,s.Z)(X().article,{[X().app]:j,[X().skeleton]:T}),children:[(0,i.jsxs)("div",{className:X().articleContentWrapper,children:[!j&&(0,i.jsxs)("div",{className:X().topInfoWrapper,children:[(0,i.jsx)(g.Yx,{env:v,tag:er}),(0,i.jsxs)("div",{className:X().rightInfo,children:[(0,i.jsxs)("div",{className:X().share,onClick:()=>{(0,B.I)({eventCategory:"".concat((0,z.b)("журнал"),"_").concat(location.pathname),eventActionType:B.i.button,eventActionText:(0,z.b)("поделиться"),eventLabel:""}),Y(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)(X().soc,{[X().show]:O}),title:h.title,url:"/".concat(h.url)})]})]}),ee&&(0,i.jsx)(w,{date:(0,y.k2)(h.update_time),variant:"mobile"}),(0,i.jsx)(T?"div":"h1",{className:X().articleTitle,dangerouslySetInnerHTML:{__html:(0,P.I)(h.title)}}),(0,i.jsx)("div",{className:X().anons,dangerouslySetInnerHTML:{__html:ea}}),(0,i.jsx)(k,{post:h,BASE_URL:eo,postViews:U}),!!(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)(F.t,{isLazy:!1,srcDesktop:(0,C.J)(h.image.file,"big",eo),srcMobile:(0,C.J)(h.image.file,"small",eo),caption:h.cover_title,captionClassName:X().detailImageCaption,className:X().detailImageWrapper}),ed&&(0,i.jsxs)("div",{className:X().contentTable,children:[(0,i.jsx)("label",{children:"Содержание статьи"}),(0,i.jsx)("div",{className:X().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:b,tags:f})]}),(0,i.jsx)("div",{className:K,style:{...$,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"}}}]);