(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 ee}});var i=a(57437),l=a(2265),r=a(80684),n=a(35563),o=a(75461),s=a(54365),d=a(849),c=a(52266),u=a(86031),_=a(42612),p=a(12214),v=a(86435),g=a(61991),m=a(70656),h=a(11095),f=a(87918),N=a(76093),x=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),S=a.n(T);let k=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),c=(0,C.fx)(l.public_date,l.update_time),u=l.read_time||0;return(0,i.jsxs)("div",{className:S().wrapper,children:[(0,i.jsxs)("div",{className:S().info,children:[(0,i.jsx)("div",{className:S().unit,children:(0,i.jsx)("label",{children:s})}),!!u&&(0,i.jsxs)("div",{className:S().unit,children:[(0,i.jsx)(r.IconFdsClockO,{size:24}),(0,i.jsxs)("label",{children:[u," мин"]})]}),!!o&&(0,i.jsxs)("div",{className:S().unit,children:[(0,i.jsx)(r.IconFdsEyeO,{size:24}),(0,i.jsx)("label",{children:o})]}),c&&(0,i.jsx)(y,{date:d,className:S().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:S().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:S().image,src:(0,L.J)(l.author.photo,"original",n),alt:l.author.name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:S().name,children:l.author.name}),(0,i.jsx)("div",{className:S().position,children:l.author.position})]})]})]})};var P=a(67704),E=a(80240),H=a(16322);function W(e){let t=e.match(/^navigator\/([^/]+)\/.+$/);return t?t[1]:null}var A=a(13745),B=a(56471),M=a(85769),R=a(89163),U=a(22384),J=a(38856),z=a(27669),O=a(95257),Y=a(73751);let F=async(e,t,a,i,l,r)=>{var n;let o=await (0,Y.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 F(e,1,"",!0,l,r))};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},G=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 X=a(99251),K=a.n(X);let $=()=>{var e;(null===(e=window.location.href)||void 0===e?void 0:e.includes("state="))&&J.A.setItem("partialAuth",JSON.stringify(!0))},ee=e=>{var t,a,r,s,c,_;let{env:m,post:b,tags:w,description:D,isMobileApplication:y,extra:C,bestOffers:T}=e,S=m.NEXT_PUBLIC_BASE_URL;(0,I.J)((0,B.E)(m));let k=(0,f.I)(),{asPath:P}=(0,N.t)(),[A,M]=(0,l.useState)(b),[R,J]=(0,l.useState)([]),z=(0,l.useRef)([]),Y=(0,l.useRef)(0),V=(0,l.useRef)(!1),[Q,Z]=(0,l.useState)(e.disableInfiniteScroll);(0,l.useEffect)(()=>{$();let e=()=>{let e=window.location.hash.slice(1).split("?")[0],t=document.getElementById(e);$(),t&&(0,U.Q)((0,U.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 G=null===(t=A.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},[]),X=(null==G?void 0:G[0])||w[0],ee=()=>{V.current=!0,Y.current=1},ea=async()=>{var t;if(e.disableInfiniteScroll)return;z.current.length||(Y.current++,z.current=await F(m,Y.current,null==X?void 0:X.url,V.current,ee,A.url));let a=z.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,u.v)(T,i.best_offers);i.bestOffersTab=e}(null==i?void 0:i.title)?J(e=>[...e,i]):ea()},ei=w.find(e=>{var t;let{id:a}=e;return a===(null==A?void 0:null===(t=A.tag_ids)||void 0===t?void 0:t[0])}),el=(0,x.M)(ea,.5),er=(0,l.useMemo)(()=>"Читать статью на тему “".concat(A.title.trimEnd(),"” онлайн на сайте.  Еще больше актуальных статей").concat(ei?" по теме “".concat(null==ei?void 0:ei.name,"” "):" ","в Журнале Финуслуги."),[w,A]),en=(0,l.useMemo)(()=>""!==D?D:er,[D,er]),eo=q(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:A.title}}),ed=(0,H.z)({includeBase:!1,tag:{href:null==X?void 0:X.url,label:null==X?void 0:X.name}}),ec=(0,E.z)(es),eu=(0,E.z)(ed),e_=JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Article",name:A.title,headline:"".concat(A.title," - читайте на сайте Финуслуги"),description:en,url:"".concat(S,"/").concat(A.url),about:{"@type":"Thing",...ei&&{name:null==ei?void 0:ei.name,sameAs:"".concat(S,"/").concat(null==ei?void 0:ei.url)}},mainEntityOfPage:{"@type":"WebPage","@id":"".concat(S,"/").concat(A.url)},dateCreated:A.public_date||A.publ_date,datePublished:A.public_date||A.publ_date,dateModified:A.update_time||A.public_date,thumbnailUrl:(0,L.J)(null==A?void 0:null===(a=A.image)||void 0===a?void 0:a.file,"big",S),...A.author&&{author:{"@type":"Person",name:null===(r=A.author)||void 0===r?void 0:r.name,url:"".concat(S,"/navigator/author/").concat(null===(s=A.author)||void 0===s?void 0:s.url)}},...(null==A?void 0:A.publisher)&&{publisher:{"@type":A.publisher.type,name:A.publisher.name,url:"".concat(S),address:{"@type":"PostalAddress",name:A.publisher.address},logo:{"@type":"ImageObject",url:"".concat(S,"/icons/header_logo.svg"),width:168,height:42}}}},JSON.parse(eu)]}),{anons:ep,publ_date:ev}=A,eg=ev.split(" ")[0].split("-")[0],em="Дарим 4000 рублей за первый вклад"===ep&&"2022"===eg||e.noIndex||(0,B.E)(m),eh=(0,u.v)(T,b.best_offers);return(0,i.jsxs)("main",{ref:el,className:K().page,children:[!C&&(0,i.jsx)(p.N,{env:m,title:A.seo_title||A.custom_title||A.title,description:A.seo_description||en,path:P,noindex:em,image:(0,L.J)(null==b?void 0:null===(c=b.image)||void 0===c?void 0:c.file,"big",S),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:K().content,children:[(0,i.jsx)(v.F,{env:m,tags:w,selectedTag:null==X?void 0:X.url}),(0,i.jsxs)("div",{className:K().main,children:[(0,i.jsx)(et,{...e,onReach:ea,handleChangePost:e=>M(e)}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:e_}}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:ec}}),eh&&(0,i.jsx)(u.e,{category:null!==(_=W(b.url))&&void 0!==_?_:"",tab:eh}),!y&&(0,i.jsx)(h.Z,{config:k,params:eo}),R.map(t=>{var a;let{bestOffersTab:r,...n}=t;return(0,i.jsxs)(l.Fragment,{children:[(0,i.jsx)(et,{extra:!0,handleChangePost:M,...e,onReach:ea,post:n}),r&&(0,i.jsx)(u.e,{category:null!==(a=W(n.url))&&void 0!==a?a:"",tab:r})]},n.url)}),!Q&&(0,i.jsx)(et,{...e,post:j.Wn,extra:!0,skeleton:!0})]})]})]}),(0,i.jsx)(O.w,{articleRef:el})]})},et=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:S,disableInfiniteScroll:E}=e,{asPath:H,push:W}=(0,N.t)(),[J,O]=(0,l.useState)(h.views||0),[Y,F]=(0,l.useState)(!1),Q=(0,x.M)(D,.5),Z=(0,l.useRef)(!w),X=(0,l.useRef)(!1),{overlayClassName:$,overlayStyles:ee}=(0,b.I)({wrapperRef:Q}),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,P.I)((0,R.$)(G(h))),el=(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},[]),en=(null==er?void 0:er[0])||f[0],eo=q(null==en?void 0:en.url),es=v.NEXT_PUBLIC_BASE_URL;(0,l.useEffect)(()=>{w||T||(X.current=!0,(0,d.f6)(v,h.url).then(e=>{O((0,A.V)(h.url,e||h.views,1))}))},[]),(0,l.useEffect)(()=>{if(Q.current&&!T&&!E){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,l=i>t&&i<a;!l||Z.current||X.current||(X.current=!0,(0,d.f6)(v,h.url).then(e=>{O((0,A.V)(h.url,e||h.views,1))})),l&&!Z.current&&(Z.current=!0,null==S||S(h),W((0,B.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,M.I)({eventCategory:"".concat((0,z.b)("журнал"),"_").concat(location.pathname),eventActionType:M.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)},ec=!j&&!!ea.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:en}),(0,i.jsxs)("div",{className:K().rightInfo,children:[(0,i.jsxs)("div",{className:K().share,onClick:()=>{(0,M.I)({eventCategory:"".concat((0,z.b)("журнал"),"_").concat(location.pathname),eventActionType:M.i.button,eventActionText:(0,z.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)(K().soc,{[K().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:K().articleTitle,dangerouslySetInnerHTML:{__html:(0,P.I)(h.title)}}),(0,i.jsx)("div",{className:K().anons,dangerouslySetInnerHTML:{__html:ei}}),(0,i.jsx)(k,{post:h,BASE_URL:es,postViews:J}),!!(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",es),srcMobile:(0,L.J)(h.image.file,"small",es),caption:h.cover_title,captionClassName:K().detailImageCaption,className:K().detailImageWrapper}),ec&&(0,i.jsxs)("div",{className:K().contentTable,children:[(0,i.jsx)("label",{children:"Содержание статьи"}),(0,i.jsx)("div",{className:K().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:$,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"}}}]);