(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[116],{1506:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/navigator/[[...slug]]",function(){return a(9742)}])},8154:function(e,t){"use strict";t.Z={src:"/service-navigator/_next/static/media/calendar.746709cb.svg",height:16,width:16,blurWidth:0,blurHeight:0}},781:function(e,t){"use strict";t.Z={src:"/service-navigator/_next/static/media/views.e40db801.svg",height:16,width:16,blurWidth:0,blurHeight:0}},794:function(e,t,a){"use strict";a.d(t,{j:function(){return _}});var i=a(5893),n=a(9194),l=a(6010),r=a(7294),s=a(8244),o=a(7771),c=a(308),d=a.n(c);let _=(0,r.memo)(e=>{let{onClick:t,text:a,href:c,target:_,sectionName:u,iconColor:v="light",offPadding:p,widthMaxContent:g,className:h,icon:m}=e,Element=(0,r.useCallback)(e=>c?(0,i.jsx)("a",{onClick:e.onClick,href:c,target:_,...e}):(0,i.jsx)("button",{onClick:e.onClick,...e}),[c,_]),N=m||n.IconFdsArrowUpRightSmallO;return(0,i.jsx)("div",{className:(0,l.Z)(d().linkWrapper,{[d().padding]:!p,[d().width]:g},h),onClick:()=>{(0,s.D)({eventCategory:(0,o.b)("журнал_".concat(location.pathname)),eventAction:s.i.link,eventActionText:(0,o.b)(u?"all_block_".concat(u):""),eventLabel:(0,o.b)(a)})},children:(0,i.jsxs)(Element,{onClick:t,className:d().link,children:[a,(0,i.jsx)(N,{size:22,className:(0,l.Z)(d().icon,d()[v])})]})})});_.displayName="CheckFullInfoLink"},9742:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return eN},default:function(){return ex}});var i=a(5893),n=a(6460),l=a(6535),r=a(4588),s=a(6010),o=a(1163),c=a(7294),d=a(2853),_=a(794),u=a(5352),v=a(4386),p=a(3684),g=a(8706),h=a(2027),m=a(3627),N=a(2864),x=a(7771),f=a(1014),j=a(4800),b=a(5858),k=a(5131),w=a(3415),I=a(1997),y=a(7295),A=a.n(y);let T=e=>{var t,a,n;let{env:l,articles:r,pinned:s,pageName:o}=e,d=(0,I.p)(String(s.public_date||s.update_time||s.publ_time),!0),_=l.NEXT_PUBLIC_BASE_URL,u=(e,t)=>()=>{let a=(0,x.b)("block ".concat(o||"топ"));(0,N.I)({eventCategory:(0,x.b)("журнал ".concat(e.url)),eventActionType:N.i.stat,eventActionText:(0,x.b)("".concat(e===s?"закрепленная ".concat(a):"".concat((t||0)+1," ").concat(a))),eventLabel:e.title||""})},v=(null==s?void 0:null===(t=s.img)||void 0===t?void 0:t.file)&&(null==s?void 0:null===(a=s.img)||void 0===a?void 0:a.file)!==".";return(0,i.jsxs)("div",{className:A().wrapper,children:[(0,i.jsxs)("a",{className:A().pinned,href:"/".concat(s.url),onClick:u(s),children:[(0,i.jsxs)("div",{className:A().image,children:[v&&(0,i.jsx)("img",{src:"".concat(_,"/img/posts/small/").concat(null===(n=s.img)||void 0===n?void 0:n.file),alt:"img"}),(0,i.jsx)("div",{className:A().bookmark,children:(0,i.jsx)("img",{src:w.Z.src,alt:"bookmark"})})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:A().pinnedDate,children:d}),(0,i.jsx)("div",{className:A().pinnedTitle,children:s.title})]})]}),(0,i.jsx)("div",{className:A().articles,children:r.map((e,t)=>(0,i.jsxs)(c.Fragment,{children:[!!t&&(0,i.jsx)("div",{className:A().line}),(0,i.jsxs)("a",{className:A().article,href:"/".concat(null==e?void 0:e.url),onClick:u(e,t+1),children:[(0,i.jsx)("div",{className:A().title,children:e.title}),(0,i.jsxs)("div",{className:A().time,children:[L(String(e.public_date||e.update_time||e.publ_time)),(0,i.jsx)("label",{children:(0,I.p)(String(e.public_date||e.update_time||e.publ_time))})]})]})]},t))})]})},L=e=>{let[t,a]=e.split(" "),[i,n,l]=t.split("-").map(Number),[r,s]=a.split(":").map(Number),o=new Date(i,n-1,l,r,s);return isNaN(o.getTime())?"":"".concat(o.getHours().toString().padStart(2,"0"),":").concat(o.getMinutes().toString().padStart(2,"0"))};var D=a(2288),C=a(3919),S=a.n(C);let Navigator=e=>{let{env:t,articles:a,news:n,groupedPosts:w,extraGroups:I,tags:y}=e,{asPath:A}=(0,o.useRouter)(),L=(0,c.useRef)(null),[C,P]=(0,c.useState)([]),[W,F]=(0,c.useState)(!1);(0,c.useEffect)(()=>{window.scrollTo(0,0)},[]);let R=a.find(e=>!!e.pinned)||a[0],E=a.filter(e=>{let{id:t}=e;return t!==(null==R?void 0:R.id)}),M=D.yB-1,H=[E.slice(M),...C],B=y.find(e=>{let{url:t}=e;return t===D.Vf}),U=async()=>{var e;let a=C.length+2,i=await (0,d.pW)(t,9,D.vH,a),n=(null===(e=i.data)||void 0===e?void 0:e.articles)||[];if(!n.length){F(!0);return}P(e=>[...e,n])},z=e=>{let{group:t,article:a,articleIndex:i}=e;(0,N.I)({eventCategory:"".concat((0,x.b)("журнал"),"_").concat(null==a?void 0:a.url),eventActionType:N.i.stat,eventActionText:(0,x.b)("".concat(i,"_block_").concat(t.name)),eventLabel:(0,x.b)((null==a?void 0:a.title)||"")})},O=(e,t)=>{var a;(0,N.I)({eventCategory:(0,x.b)("журнал ".concat(null==e?void 0:e.url)),eventActionType:N.i.stat,eventActionText:"".concat(t+1,"_block_").concat((0,x.b)(null!==(a=null==B?void 0:B.name)&&void 0!==a?a:"")),eventLabel:(0,x.b)((null==e?void 0:e.title)||"")})},G=(0,m.z)({baseLabel:(null==B?void 0:B.h1)||D.mY}),Z=(0,h.z)(G);return(0,i.jsxs)("main",{className:S().page,children:[(0,i.jsx)(u.N,{env:t,title:(null==B?void 0:B.title)||D.RC,description:(null==B?void 0:B.description)||D.$I,path:A}),(0,i.jsxs)(l.W2,{children:[(0,i.jsx)(r.Oo,{items:G,style:{padding:"16px 0"}}),(0,i.jsx)("script",{id:"tags-json-ld",type:"application/ld+json",dangerouslySetInnerHTML:{__html:Z}}),(0,i.jsxs)("div",{className:S().title,children:[(0,i.jsx)("h1",{children:D.mY}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:D.GZ}})]}),(0,i.jsx)(k.v5,{env:t,isMobile:!0,tags:y,selectedTag:D.Vf}),(0,i.jsxs)("div",{className:S().section,children:[(0,i.jsx)(j.F,{env:t,tags:y,selectedTag:D.Vf}),(0,i.jsxs)("div",{ref:L,className:S().main,children:[(0,i.jsxs)("div",{className:S().group,children:[(0,i.jsx)(T,{env:t,pinned:R,articles:E.slice(0,M)}),(0,i.jsx)(_.j,{className:S().fullInfoLink,iconColor:"white",href:"/navigator/all",target:"_self",text:"Все статьи",sectionName:"топ"})]}),(0,i.jsxs)("div",{className:S().group,style:{marginTop:"-16px"},children:[(0,i.jsx)(b.n,{containerRef:L,title:"Новости",data:n}),(0,i.jsx)(_.j,{className:(0,s.Z)(S().desktopOnly,S().fullInfoLink),iconColor:"white",href:"".concat(v._n,"/navigator/news"),target:"_self",text:"Все новости",sectionName:"новости"})]}),I.map((e,a)=>{var n,l;return(0,i.jsxs)(c.Fragment,{children:[(0,i.jsxs)("div",{className:S().group,children:[(0,i.jsx)("h2",{children:e.name}),(0,i.jsx)("div",{className:S().articleGridWrapper,children:(0,i.jsx)(f.d,{env:t,articles:e.posts_ids,onArticleClick:(t,a)=>z({group:e,article:t,articleIndex:a+1})})}),(0,i.jsx)(_.j,{className:S().fullInfoLink,iconColor:"white",href:e.url,target:"_self",text:"Все статьи",sectionName:e.name})]}),(0===a||2===a)&&(0,i.jsx)(p.f,{index:a}),1===a&&(0,i.jsx)(b.n,{containerRef:L,title:(null===(n=w[1])||void 0===n?void 0:n.title)||"",data:(null===(l=w[1])||void 0===l?void 0:l.posts_ids)||""}),1===a&&(0,i.jsx)(g.v,{className:S().telegramBanner})]},a)}),(0,i.jsxs)("div",{className:S().group,children:[(0,i.jsx)("h2",{children:"Все статьи"}),(0,i.jsx)("div",{className:S().articleGridWrapper,children:H.map((e,a)=>(0,i.jsx)(f.d,{env:t,articles:e,onReach:U,loading:!W&&a===H.length-1,onArticleClick:e=>O(e,a)},a))})]}),(0,i.jsx)("div",{className:S().pagination,children:(0,i.jsx)("a",{className:S().paginationNext,href:"/".concat(D.Vf,"/str_2"),children:"Следующая страница - 2"})})]})]})]})]})};var P=a(9194),W=a(5675),F=a.n(W),R=a(5e3),E=a(468),M=a(3055),H=a(7843),B=a(7701),U=a(2307),z=a(1309),O=a(8059),G=a(8114),Z=a(7315),V=a(6129),K=a(2825),X=a(3161),J=a(9574),Q=a(9298),Y=a.n(Q);let q=e=>{var t,a;let{post:n,BASE_URL:l,postViews:r}=e,s=(0,I.p)(String(n.public_date||n.update_time||n.publ_date)),o=n.read_time||0;return(0,i.jsxs)("div",{className:Y().wrapper,children:[(0,i.jsxs)("div",{className:Y().info,children:[(0,i.jsx)("div",{className:Y().unit,children:(0,i.jsx)("label",{children:s})}),!!o&&(0,i.jsxs)("div",{className:Y().unit,children:[(0,i.jsx)(P.IconFdsClockO,{size:24}),(0,i.jsxs)("label",{children:[o," мин"]})]}),!!r&&(0,i.jsxs)("div",{className:Y().unit,children:[(0,i.jsx)(P.IconFdsEyeO,{size:24}),(0,i.jsx)("label",{children:r})]})]}),!!(null==n?void 0:null===(t=n.author)||void 0===t?void 0:t.name)&&(null==n?void 0:null===(a=n.author)||void 0===a?void 0:a.url)&&(0,i.jsxs)("a",{className:Y().author,href:"/navigator/author/".concat(null==n?void 0:n.author.url),target:"_self",children:[(null==n?void 0:n.author.photo)&&(0,i.jsx)("img",{className:Y().image,src:"".concat(l,"/img/posts/original/").concat(null==n?void 0:n.author.photo),alt:n.author.name}),(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:Y().name,children:n.author.name}),(0,i.jsx)("div",{className:Y().position,children:n.author.position})]})]})]})};var $=a(7311);let ee=async(e,t,a,i,n,l)=>{var r;let s=await (0,d.pW)(e,9,void 0,t,i?void 0:a,i?1:void 0),o=new Date;o.setDate(new Date().getDate()-30);let c=((null===(r=s.data)||void 0===r?void 0:r.articles)||[]).filter(e=>e.url!==l).map(e=>{let{url:t}=e;return t});return c.length||i?c:(n(),await ee(e,1,"",!0,n,l))};var et=a(2708),ea=a.n(et);let ei=e=>{var t,a,n,s,d,_,g;let{env:N,post:x,tags:f,description:b,isMobileApplication:w,extra:I,bestOffersBlock:y}=e,A=(0,z.I)(),{asPath:T}=(0,o.useRouter)(),[L,C]=(0,c.useState)(x),[S,P]=(0,c.useState)([]),W=(0,c.useRef)([]),F=(0,c.useRef)(0),M=(0,c.useRef)(!1),[B,G]=(0,c.useState)(!1);(0,c.useEffect)(()=>{let e=()=>{var e;let t=document.getElementById(null===(e=window.location.hash)||void 0===e?void 0:e.slice(1));t&&(0,X.Q)((0,X.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=L.tag_ids)||void 0===t?void 0:t.reduce((e,t)=>{let a=f.find(e=>{let{id:a}=e;return a===t}),i=T.replace("navigator-new/","navigator/"),n=i.includes((null==a?void 0:a.url)||"___");return a&&n&&e.unshift(a),a&&!n&&e.push(a),e},[]),V=(null==Z?void 0:Z[0])||f[0],K=()=>{M.current=!0,F.current=1},J=async()=>{var e;W.current.length||(F.current++,W.current=await ee(N,F.current,V.url,M.current,K,L.url));let t=W.current.shift();if(!t){G(!0);return}let a=await (0,E.vM)(N,t),i=null===(e=a.data)||void 0===e?void 0:e.article;i.title?P(e=>[...e,i]):J()},Q=(0,O.M)(J,.5),Y=(0,c.useMemo)(()=>{var e;return"Читать статью на тему “".concat(L.title.trimEnd(),"” онлайн на сайте.  Еще больше актуальных статей").concat(L.tag_ids&&L.tag_ids[0]?" по теме “".concat(null===(e=f[L.tag_ids[0]-1])||void 0===e?void 0:e.name,"” "):" ","в Журнале Финуслуги.")},[f,L]),q=(0,c.useMemo)(()=>""!==b?b:Y,[b,Y]),et=(()=>{switch(V&&V.url){case"navigator/investirovat":return{pp:"cfbl",ps:"foam",p2:"hpaj"};case"navigator/kredity":return{pp:"cfbj",ps:"foam",p2:"hpaj"};case"navigator/nakopit-i-sohranit":return{pp:"cfek",ps:"foam",p2:"hpaj"};case"navigator/zastrahovat":return{pp:"cfbk",ps:"foam",p2:"hpaj"};default:return{pp:"i",ps:"foam",p2:"hpaj"}}})(),ei=(0,m.z)({tag:{href:V.url,label:V.name},current:{label:L.title}}),el=(0,m.z)({includeBase:!1,tag:{href:V.url,label:V.name}}),er=(0,h.z)(ei),es=(0,h.z)(el),eo=JSON.stringify({"@context":"https://schema.org","@graph":[{"@type":"Article",name:L.title,headline:"".concat(L.title," - читайте на сайте Финуслуги"),description:q,url:"".concat(v._n,"/").concat(L.url),about:{"@type":"Thing",...L.tag_ids&&{name:null===(a=f[L.tag_ids[0]-1])||void 0===a?void 0:a.name,sameAs:"".concat(v._n,"/").concat(null===(n=f[L.tag_ids[0]-1])||void 0===n?void 0:n.url)}},mainEntityOfPage:{"@type":"WebPage","@id":"".concat(v._n,"/").concat(L.url)},dateCreated:L.public_date||L.publ_date,datePublished:L.public_date||L.publ_date,dateModified:L.update_time||L.public_date,thumbnailUrl:"".concat(v._n,"/img/posts/big/").concat(null==L?void 0:null===(s=L.image)||void 0===s?void 0:s.file),...L.author&&{author:{"@type":"Person",name:null===(d=L.author)||void 0===d?void 0:d.name,url:"".concat(v._n,"/navigator/author/").concat(null===(_=L.author)||void 0===_?void 0:_.url)}},...(null==L?void 0:L.publisher)&&{publisher:{"@type":L.publisher.type,name:L.publisher.name,url:"".concat(v._n),address:{"@type":"PostalAddress",name:L.publisher.address},logo:{"@type":"ImageObject",url:"".concat(v._n,"/icons/header_logo.svg"),width:168,height:42}}}},JSON.parse(es)]}),{anons:ec,publ_date:ed}=L,e_=ed.split(" ")[0].split("-")[0],eu=(null==y?void 0:y.chips[0])?(0,R.v)(y.chips[0]):null;return(0,i.jsxs)("main",{ref:Q,className:ea().page,children:[!I&&(0,i.jsx)(u.N,{env:N,title:L.seo_title||L.custom_title||L.title,description:L.seo_description||q,path:T,noindex:"Дарим 4000 рублей за первый вклад"===ec&&"2022"===e_,image:"img/posts/big/".concat(null==x?void 0:null===(g=x.image)||void 0===g?void 0:g.file),isDetailPage:!0}),(0,i.jsxs)(l.W2,{children:[!w&&!I&&(0,i.jsx)(r.Oo,{items:ei,style:{padding:"16px 0"}}),!w&&!I&&(0,i.jsx)(k.v5,{env:N,isMobile:!0,tags:f,selectedTag:null==V?void 0:V.url}),(0,i.jsxs)("div",{className:ea().content,children:[(0,i.jsx)(j.F,{env:N,tags:f,selectedTag:null==V?void 0:V.url}),(0,i.jsxs)("div",{className:ea().main,children:[(0,i.jsx)(en,{...e,onReach:J,handleChangePost:e=>C(e)}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:eo}}),(0,i.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:er}}),eu&&(0,i.jsx)(H.e,{tab:eu}),!w&&(0,i.jsx)(U.Z,{config:A,params:et}),!w&&(0,i.jsx)(p.f,{}),S.map(t=>(0,i.jsx)(en,{extra:!0,handleChangePost:C,...e,onReach:J,post:t,otherPosts:[]},t.url)),!B&&(0,i.jsx)(en,{...e,post:D.Wn,otherPosts:[],extra:!0,skeleton:!0})]})]})]}),(0,i.jsx)($.w,{articleRef:Q})]})},en=e=>{var t,a,n,l,r,d,_,u,v,p,g,h,m;let{env:f,post:j,tags:b,ctgs:w,isMobileApplication:I,extra:y,onReach:A,skeleton:T,handleChangePost:L}=e,{asPath:D,push:C}=(0,o.useRouter)(),[S,W]=(0,c.useState)(j.views||0),[R,H]=(0,c.useState)(!1),U=(0,O.M)(A,.5),z=(0,c.useRef)(!y),Q=(0,c.useRef)(!1),{overlayClassName:Y,overlayStyles:$}=(0,G.I)({wrapperRef:U}),ee=(null===(a=j.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}))||[],et=(0,Z.I)((0,K.$)(j.anons||(null===(r=j.content)||void 0===r?void 0:null===(l=r.find(e=>e.type===M.z.Annotation))||void 0===l?void 0:null===(n=l.data)||void 0===n?void 0:n.text)||"")),ei=(null===(d=j.content)||void 0===d?void 0:d.filter(e=>!!j.anons||e.type!==M.z.Annotation))||[],en=null===(_=j.tag_ids)||void 0===_?void 0:_.reduce((e,t)=>{let a=b.find(e=>{let{id:a}=e;return a===t}),i=D.replace("navigator-new/","navigator/"),n=i.includes((null==a?void 0:a.url)||"___");return a&&n&&e.unshift(a),a&&!n&&e.push(a),e},[]),el=(null==en?void 0:en[0])||b[0],er=(()=>{switch(el&&el.url){case"navigator/investirovat":return{pp:"cfbl",ps:"foam",p2:"hpaj"};case"navigator/kredity":return{pp:"cfbj",ps:"foam",p2:"hpaj"};case"navigator/nakopit-i-sohranit":return{pp:"cfek",ps:"foam",p2:"hpaj"};case"navigator/zastrahovat":return{pp:"cfbk",ps:"foam",p2:"hpaj"};default:return{pp:"i",ps:"foam",p2:"hpaj"}}})(),es=f.NEXT_PUBLIC_BASE_URL;(0,c.useEffect)(()=>{y||T||(Q.current=!0,(0,E.f6)(f,j.url).then(e=>{W((0,V.V)(j.url,e||j.views,1))}))},[]),(0,c.useEffect)(()=>{if(U.current&&!T){let e=U.current,t=()=>{if(!e||!U.current)return;let t=U.current.getBoundingClientRect(),a=t.top+window.scrollY,i=a+U.current.offsetHeight,n=window.scrollY+window.innerHeight/2,l=n>a&&n<i;!l||z.current||Q.current||(Q.current=!0,(0,E.f6)(f,j.url).then(e=>{W((0,V.V)(j.url,e||j.views,1))})),l&&!z.current&&(z.current=!0,L&&L(j),C("/".concat(j.url),void 0,{shallow:!0})),l||(z.current=!1)};return document.addEventListener("scroll",t),()=>{e&&document.removeEventListener("scroll",t)}}},[]);let eo=e=>{let{index:t,post:a}=e;(0,N.I)({eventCategory:"".concat((0,x.b)("журнал"),"_").concat(location.pathname),eventActionType:N.i.link,eventActionText:(0,x.b)(a.title),eventLabel:""});let i=document.getElementById("".concat(a.id,"_content_header_").concat(t));i&&(0,X.Q)((0,X.n)(i)-32)},ec=!I&&!!ee.length&&0!==j.show_content;return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{ref:U,className:(0,s.Z)(ea().article,{[ea().app]:I,[ea().skeleton]:T}),children:[(0,i.jsxs)("div",{className:ea().articleContentWrapper,children:[!I&&(0,i.jsxs)("div",{className:ea().topInfoWrapper,children:[(0,i.jsx)(k.Yx,{env:f,tag:el}),(0,i.jsxs)("div",{className:ea().rightInfo,children:[(0,i.jsxs)("div",{className:ea().share,onClick:()=>{(0,N.I)({eventCategory:"".concat((0,x.b)("журнал"),"_").concat(location.pathname),eventActionType:N.i.button,eventActionText:(0,x.b)("поделиться"),eventLabel:""}),H(e=>!e)},children:[(0,i.jsx)(P.IconFdsArrowForwardO,{size:24}),(0,i.jsx)("p",{className:"desktopOnly",children:"Поделиться"})]}),(0,i.jsx)(B.n,{className:(0,s.Z)(ea().soc,{[ea().show]:R}),title:j.title,url:"/".concat(j.url)})]})]}),(0,i.jsx)("h1",{dangerouslySetInnerHTML:{__html:(0,Z.I)(j.title)}}),(0,i.jsx)("div",{className:ea().anons,dangerouslySetInnerHTML:{__html:et}}),(0,i.jsx)(q,{post:j,BASE_URL:es,postViews:S}),!!(null==j?void 0:null===(u=j.image)||void 0===u?void 0:u.file)&&(null==j?void 0:null===(v=j.image)||void 0===v?void 0:v.file)!=="."&&(0,i.jsxs)("div",{className:ea().detailImageWrapper,children:[(0,i.jsx)(F(),{className:ea().detailImage,src:(null==j?void 0:null===(p=j.image)||void 0===p?void 0:p.file)?"".concat(es,"/img/posts/big/").concat(null==j?void 0:null===(g=j.image)||void 0===g?void 0:g.file):"",width:825,height:445,alt:"detail image",unoptimized:!0}),(0,i.jsx)("img",{className:ea().detailImageM,src:(null==j?void 0:null===(h=j.image)||void 0===h?void 0:h.file)?"".concat(es,"/img/posts/small/").concat(null==j?void 0:null===(m=j.image)||void 0===m?void 0:m.file):"",alt:"detail image"}),!!(null==j?void 0:j.cover_title)&&(0,i.jsx)("div",{className:(null==j?void 0:j.font_dark)?ea().dark:ea().light,children:null==j?void 0:j.cover_title})]}),ec&&(0,i.jsxs)("div",{className:ea().contentTable,children:[(0,i.jsx)("label",{children:"Содержание статьи"}),(0,i.jsx)("div",{className:ea().contentList,children:ee.map((e,t)=>(0,i.jsx)("div",{onClick:()=>eo({index:t+1,post:j}),children:e},t))})]}),(0,i.jsx)(J.L,{env:f,data:ei,params:er,post:j,ctgs:w})]}),(0,i.jsx)("div",{className:Y,style:{...$,borderRadius:"20px"}})]})})};var el=a(938),er=a(8154),es=a(781),eo=a(2595),ec=a.n(eo);let ed=e=>{var t,a,n;let{env:l,post:r,ctgs:o,cat:c}=e,d=l.NEXT_PUBLIC_BASE_URL,_=c||(null==o?void 0:null===(t=o.find(e=>e.id===(null==r?void 0:r.ctg_id)))||void 0===t?void 0:t.name);return(0,i.jsxs)("a",{className:(0,s.Z)(ec().wrapper,{[ec().skeleton]:!r}),href:"/".concat(null==r?void 0:r.url),target:"_self",children:[(0,i.jsx)("div",{className:ec().image,style:(null==r?void 0:null===(a=r.img)||void 0===a?void 0:a.file)?{backgroundImage:"url(".concat(d,"/img/posts/small/").concat(null==r?void 0:null===(n=r.img)||void 0===n?void 0:n.file,")")}:{}}),(0,i.jsxs)("div",{className:ec().container,children:[!!_&&(0,i.jsx)("span",{className:ec().cat,children:_}),(0,i.jsx)("div",{className:ec().title,children:null==r?void 0:r.title}),(0,i.jsxs)("div",{className:ec().icons,children:[(0,i.jsxs)("div",{className:ec().unit,children:[(0,i.jsx)(F(),{src:er.Z,alt:"calendar"}),(0,I.p)(String((null==r?void 0:r.public_date)||(null==r?void 0:r.update_time)||(null==r?void 0:r.publ_time)))]}),(0,i.jsxs)("div",{className:ec().unit,suppressHydrationWarning:!0,children:[(0,i.jsx)(F(),{src:es.Z,alt:"views",unoptimized:!0}),(0,V.V)((null==r?void 0:r.url)||"",(null==r?void 0:r.views)||0,0)]})]})]})]})};var e_=a(2627),eu=a.n(e_);let ev=e=>{let{env:t,articles:a,ctgs:n,onReach:l,loading:r}=e,s=(0,O.M)(l,.3),o=Array.from({length:10},(e,t)=>t+1);return(0,i.jsxs)("div",{ref:s,className:eu().wrapper,children:[a.map(e=>(0,i.jsx)(ed,{env:t,post:e,ctgs:n},e.id)),r&&o.map((e,a)=>(0,i.jsx)(ed,{env:t},a))]})},ep=e=>e?e.replace(/{year}/g,new Date().getFullYear().toString()):null;var eg=a(1524),eh=a.n(eg);let em=e=>{var t,a;let{env:n,articles:s,ctgs:_,tag:v,str:g,pageCount:w,tags:I,groupedPosts:y}=e,{asPath:A}=(0,o.useRouter)(),L=(0,el.G)("lg"),C=(0,c.useRef)(null),[S,P]=(0,c.useState)([]),[W,F]=(0,c.useState)(!1),R=async()=>{var e;if(g)return;let t=S.length+2,a=await (0,d.pW)(n,D.FY,D.ew,t,v.url),i=(null===(e=a.data)||void 0===e?void 0:e.articles)||[];if(!i.length){F(!0);return}P(e=>[...e,i])},E=(0,O.M)(R,.3),M=(0,c.useRef)(null),{overlayClassName:H,overlayStyles:B}=(0,G.I)({wrapperRef:M});(0,c.useEffect)(()=>{window.scrollTo(0,0)},[]);let U=e=>{(0,N.I)({eventCategory:(0,x.b)("журнал ".concat(null==e?void 0:e.url)),eventActionType:N.i.stat,eventActionText:"block_".concat((0,x.b)(v.name)),eventLabel:(0,x.b)((null==e?void 0:e.title)||"")})},z=s.find(e=>!!e.pinned)||s[0],Z=s.filter(e=>{let{id:t}=e;return t!==(null==z?void 0:z.id)}),V=g?" – страница ".concat(g):"",K=(0,m.z)({tag:{label:v.name}}),X=(0,h.z)(K);return(0,i.jsxs)("main",{ref:M,className:eh().page,children:[(0,i.jsx)(u.N,{env:n,title:"".concat(ep(v.title)||D.RC).concat(V),description:"".concat(ep(v.description)||D.$I).concat(V),path:A.split("/str_")[0]}),(0,i.jsxs)(l.W2,{children:[(0,i.jsx)(r.Oo,{items:K,style:{padding:"16px 0"}}),(0,i.jsx)("script",{id:"tags-json-ld",type:"application/ld+json",dangerouslySetInnerHTML:{__html:X}}),!g&&(0,i.jsx)("h1",{className:eh().topTitle,children:v.h1}),!g&&(0,i.jsx)(k.v5,{env:n,isMobile:!0,tags:I,selectedTag:v.url}),(0,i.jsxs)("div",{ref:E,className:eh().section,children:[(0,i.jsx)(j.F,{env:n,tags:I,selectedTag:v.url}),!g&&(0,i.jsxs)("div",{ref:C,className:eh().main,children:[(0,i.jsx)(T,{env:n,pinned:z,articles:Z.slice(0,4),pageName:v.name}),(0,i.jsxs)("div",{className:eh().articleGridWrapper,children:[(0,i.jsx)(f.d,{env:n,articles:Z.slice(4,10),onArticleClick:U}),(0,i.jsx)(p.f,{}),(0,i.jsx)(f.d,{env:n,articles:Z.slice(10,13),onArticleClick:U}),(0,i.jsx)(b.n,{containerRef:C,title:(null===(t=y[1])||void 0===t?void 0:t.title)||"",data:(null===(a=y[1])||void 0===a?void 0:a.posts_ids)||[],padding:L?16:24,gray:!0}),(0,i.jsx)(f.d,{env:n,articles:Z.slice(13),onArticleClick:e=>{var t,a;(0,N.I)({eventCategory:(0,x.b)("журнал ".concat(null==e?void 0:e.url)),eventActionType:N.i.stat,eventActionText:(0,x.b)("block_".concat(null===(t=y[1])||void 0===t?void 0:t.title)),eventLabel:(0,x.b)(null!==(a=null==e?void 0:e.title)&&void 0!==a?a:"")})}}),S.map((e,t)=>(0,i.jsx)(f.d,{env:n,articles:e,onReach:R,onArticleClick:U,loading:!W&&t===S.length-1},t))]}),(0,i.jsx)("div",{className:eh().pagination,children:(0,i.jsx)("a",{className:eh().paginationNext,href:"/".concat(v.url,"/str_2"),children:"Следующая страница - 2"})})]}),!!g&&(0,i.jsxs)("div",{className:eh().main,children:[(0,i.jsx)("div",{className:eh().top,children:(0,i.jsx)("h1",{className:eh().title,children:"".concat(v.h1).concat(V)})}),(0,i.jsx)(ev,{env:n,articles:Z,ctgs:_}),(0,i.jsxs)("div",{className:eh().pagination,children:[(0,i.jsxs)("a",{href:"/".concat(v.url,"/str_").concat(g-1),children:["Предыдущая страница - ",g-1]}),g+1<=w&&(0,i.jsxs)("a",{className:eh().paginationNext,href:"/".concat(v.url,"/str_").concat(g+1),children:["Следующая страница - ",g+1]})]})]})]})]}),(0,i.jsx)("div",{className:H,style:B})]})};var eN=!0,ex=e=>{let{env:t,layout:a,commonBlocksData:l,groupedPosts:r,extraGroups:s,articles:o,news:c,post:d,tags:_,ctgs:u,description:v,otherPosts:p,isMobileApplication:g,isDetailPage:h,tag:m,str:N,pageCount:x,bestOffersBlock:f}=e;if(h&&g)return(0,i.jsx)(ei,{env:t,post:d,tags:_,ctgs:u,description:v,otherPosts:p,bestPosts:[],newPosts:[],isMobileApplication:g});let j=!!m&&(m.url!==D.Vf||!!N);return(0,i.jsxs)(n.A,{env:t,data:a,sections:l,children:[j&&(0,i.jsx)(em,{env:t,articles:o,news:c,ctgs:u,groupedPosts:r,description:v,tag:m,str:N,pageCount:x,tags:_}),!h&&!j&&(0,i.jsx)(Navigator,{env:t,articles:o,news:c,ctgs:u,tags:_,groupedPosts:r,extraGroups:s,description:v}),h&&(0,i.jsx)(ei,{env:t,post:d,tags:_,ctgs:u,description:v,otherPosts:p,bestPosts:[],newPosts:[],isMobileApplication:g,bestOffersBlock:f})]})}},308:function(e){e.exports={linkWrapper:"CheckFullInfoLink_linkWrapper__8Ft0B",width:"CheckFullInfoLink_width__UQCKE",padding:"CheckFullInfoLink_padding__igPaU",link:"CheckFullInfoLink_link__VaFXA",icon:"CheckFullInfoLink_icon__n4rol",light:"CheckFullInfoLink_light__XIqI2",white:"CheckFullInfoLink_white__NiBcS",shine:"CheckFullInfoLink_shine__8egDO"}},3919:function(e){e.exports={navigatorNewsSection:"Navigator_navigatorNewsSection__PNlcR",title:"Navigator_title__GhPbW",group:"Navigator_group__pX_i0",newsTitle:"Navigator_newsTitle__qBfcF",listsTitle:"Navigator_listsTitle__KSQDr",page:"Navigator_page__Rg0_N",desktopOnly:"Navigator_desktopOnly__MMDfl",fivePercentAd:"Navigator_fivePercentAd__ZhmhP",section:"Navigator_section__Q4tAw",fullLink:"Navigator_fullLink__gtUh_",main:"Navigator_main__Ttqsu",top:"Navigator_top__Sbciz",articleGridWrapper:"Navigator_articleGridWrapper__Zs2k_",telegramBanner:"Navigator_telegramBanner__25hCE",fullInfoLink:"Navigator_fullInfoLink__RluwF",sectionHeader:"Navigator_sectionHeader__a5bzt",news:"Navigator_news__dwkQX",newsButton:"Navigator_newsButton__6IiKG",pagination:"Navigator_pagination__qAONc",paginationNext:"Navigator_paginationNext__5iq5a",stickySidebar:"Navigator_stickySidebar__tm37T",sidebar:"Navigator_sidebar__jl5gG",shine:"Navigator_shine__LAarQ"}},2708:function(e){e.exports={contentTable:"NavigatorDetail_contentTable__KWjgZ",expertName:"NavigatorDetail_expertName__yLbfr",group:"NavigatorDetail_group__vb1OA",popularTitle:"NavigatorDetail_popularTitle__Feft2",popularItemCat:"NavigatorDetail_popularItemCat__traK5",popularItemTitle:"NavigatorDetail_popularItemTitle__L0HFY",article:"NavigatorDetail_article__1H_V4",skeleton:"NavigatorDetail_skeleton__vThIp",anons:"NavigatorDetail_anons__YKy3n",detailImageWrapper:"NavigatorDetail_detailImageWrapper__UWyrX",shine:"NavigatorDetail_shine__gQoSm",page:"NavigatorDetail_page__wU4Bs",content:"NavigatorDetail_content__3OnlR",main:"NavigatorDetail_main__GpWew",articleContentWrapper:"NavigatorDetail_articleContentWrapper__EfqF8",topInfoWrapper:"NavigatorDetail_topInfoWrapper__E1F9k",share:"NavigatorDetail_share__MzvJK",soc:"NavigatorDetail_soc__JTFnl",show:"NavigatorDetail_show__M8HgU",rightInfo:"NavigatorDetail_rightInfo__srdvn",articleBottomCard:"NavigatorDetail_articleBottomCard__xRPhV",catWrapper:"NavigatorDetail_catWrapper__18gpL",cat:"NavigatorDetail_cat__XQbDD",shareButton:"NavigatorDetail_shareButton__rTsxD",detailImage:"NavigatorDetail_detailImage__8q77t",detailImageM:"NavigatorDetail_detailImageM__3sJpR",contentList:"NavigatorDetail_contentList__K8JlZ",mobAppAd:"NavigatorDetail_mobAppAd__fihfG",expert:"NavigatorDetail_expert__rpM3K",expertPosition:"NavigatorDetail_expertPosition__AxXGB",shareWrapper:"NavigatorDetail_shareWrapper__weiO3",articleGridWrapper:"NavigatorDetail_articleGridWrapper__tdKxZ",fullInfoLink:"NavigatorDetail_fullInfoLink__2KvDF",popularContentWrapper:"NavigatorDetail_popularContentWrapper__HyLNV",slider:"NavigatorDetail_slider__doGWp",sliderLeftButton:"NavigatorDetail_sliderLeftButton__zcXcA",sliderRightButton:"NavigatorDetail_sliderRightButton__bIRrK",singleItem:"NavigatorDetail_singleItem__tUu90",popularItem:"NavigatorDetail_popularItem__2hyCD",popularItemImage:"NavigatorDetail_popularItemImage__GEEAk",popularItemContent:"NavigatorDetail_popularItemContent__D_aab",popularItemStatUnit:"NavigatorDetail_popularItemStatUnit__uIGqb",popularItemStat:"NavigatorDetail_popularItemStat__cd1qQ",popularItemStatLeft:"NavigatorDetail_popularItemStatLeft__SFtTF",stickySidebar:"NavigatorDetail_stickySidebar__M2MRx",sidebar:"NavigatorDetail_sidebar__4Mv5u"}},1524:function(e){e.exports={topTitle:"NavigatorTag_topTitle__Wif5i",title:"NavigatorTag_title__Ed8or",page:"NavigatorTag_page__LLLdz",fivePercentAd:"NavigatorTag_fivePercentAd__HCUdR",section:"NavigatorTag_section__rqBik",main:"NavigatorTag_main__PR8td",articleGridWrapper:"NavigatorTag_articleGridWrapper__6DUEl",top:"NavigatorTag_top___ZuoF",stickySidebar:"NavigatorTag_stickySidebar__zE5_v",sidebar:"NavigatorTag_sidebar__3hMpl",pagination:"NavigatorTag_pagination__JtLKJ",paginationNext:"NavigatorTag_paginationNext__6yVK_",shine:"NavigatorTag_shine__9aNsS"}},2595:function(e){e.exports={wrapper:"ArticleLink_wrapper__5FgTY",skeleton:"ArticleLink_skeleton__9Vtlg",title:"ArticleLink_title___Fa5U",shine:"ArticleLink_shine__ne5Aj",image:"ArticleLink_image__UUNMc",container:"ArticleLink_container___cYrg",cat:"ArticleLink_cat__A8vvF",icons:"ArticleLink_icons___cQJr",unit:"ArticleLink_unit__cHOHH"}},2627:function(e){e.exports={wrapper:"ArticleList_wrapper___Sd_4",shine:"ArticleList_shine___k1zk"}},7295:function(e){e.exports={wrapper:"NewArticles_wrapper__s7aK3",pinned:"NewArticles_pinned__gtlnV",pinnedTitle:"NewArticles_pinnedTitle__XwJFU",image:"NewArticles_image__BIp3G",bookmark:"NewArticles_bookmark__6huF7",pinnedDate:"NewArticles_pinnedDate__K_ruH",articles:"NewArticles_articles__LZag8",line:"NewArticles_line__A7N2P",article:"NewArticles_article__svpOC",title:"NewArticles_title__VJMMD",time:"NewArticles_time__vF_Q2",shine:"NewArticles_shine__kf__q"}},9298:function(e){e.exports={wrapper:"PostHeaderInfo_wrapper__iUNGo",info:"PostHeaderInfo_info__9xMwf",unit:"PostHeaderInfo_unit__spJLu",author:"PostHeaderInfo_author__lo1kv",image:"PostHeaderInfo_image__GCbNH",name:"PostHeaderInfo_name__P7sbO",position:"PostHeaderInfo_position__U6cYP",shine:"PostHeaderInfo_shine__FXTGX"}}},function(e){e.O(0,[832,249,342,640,876,557,473,425,870,774,888,179],function(){return e(e.s=1506)}),_N_E=e.O()}]);