1import{d as w,u as T,k as $,C as N,W as c,X as k,I as x,c as p,l as A,q as B,f as e,o as g,a as M,h as a,e as b,j as l,H as i,t as u,y as P,A as d,_ as S}from"./DHjmJdii.js";import{_ as V}from"./DaJx7O7z.js";import{_ as q}from"./BtYBv7EW.js";import{_ as I}from"./5JDugTOg.js";import{_ as D}from"./DYAiOo4d.js";import{_ as f}from"./CsyACtFG.js";import{_ as E}from"./mWRESw5n.js";import{c as O}from"./C-m_S1cL.js";import{u as z}from"./_kB7ddRh.js";import"./Dvi1ySHR.js";import"./ipsi0bqr.js";import"./DGubyM9E.js";import"./Baej3kra.js";import"./CClXTRWq.js";const F={key:0,class:"container container-wide blog__authors-page"},H={class:"blog__authors-page-header"},L={class:"blog__authors-page-meta"},nt=w({__name:"[authorAnchor]",async setup(R){let r,s;const t=z(),{locale:h,t:o}=T(),_=$(),j=N();if([r,s]=c(()=>t.getAuthor(_.params.authorAnchor,h.value)),await r,s(),!t.author)throw k({statusCode:404,statusMessage:"Page Not Found"});if(t.author.anchor!==_.params.authorAnchor){const n=`${j(`/blog/authors/${t.author.anchor}`)}/`;[r,s]=c(()=>x({path:n,query:_.query},{redirectCode:301})),await r,s()}const v=p(()=>t.posts?h.value==="ru"?t.posts.length===1?o("blog.post_count_label_one"):t.posts.length>1&&t.posts.length<5?o("blog.post_count_label_several",{number:t.posts.length}):o("blog.post_count_label_more",{number:t.posts.length}):t.posts.length===1?o("blog.post_count_label",{number:t.posts.length}):o("blog.post_count_label_plural",{number:t.posts.length}):null),y=p(()=>t.author?[{path:t.author.anchor,name:t.author.name}]:null),{origin:C}=A();return B({title:o("blog.seo_title_authors_page",{name:t.author.name,jobTitle:t.author.job_title}),ogTitle:o("blog.seo_title_authors_page",{name:t.author.name,jobTitle:t.author.job_title}),description:o("blog.seo_description_authors_page",{name:t.author.name,jobTitle:t.author.job_title}),ogDescription:o("blog.seo_description_authors_page",{name:t.author.name,jobTitle:t.author.job_title}),ogImage:`${C.value}/static/opengraph.jpg`,ogType:"website",twitterCard:"summary_large_image"}),(n,W)=>{var m;return e(t).author?(g(),M("section",F,[a(e(V),{theme:"light","custom-names":e(y)},null,8,["custom-names"]),b("div",H,[a(e(q),{size:"xl","avatar-src":(m=e(t).author)!=null&&m.photo?e(O)(e(t).author.photo):"/_static/wip/avatar.jpg","avatar-alt":e(t).author.name},null,8,["avatar-src","avatar-alt"]),a(e(I),{theme:"light",alignment:"center"},{default:l(()=>[i(u(e(t).author.name),1)]),_:1}),b("div",L,[e(t).author.job_title?(g(),P(e(f),{key:0,theme:"light"},{default:l(()=>[i(u(e(t).author.job_title),1)]),_:1})):d("",!0),a(e(f),{theme:"light"},{default:l(()=>[i(u(e(v)),1)]),_:1})]),a(e(D),{alignment:"center",theme:"light"},{default:l(()=>[i(u(("html"in n?n.html:e(S))(e(t).author.description)),1)]),_:1}),a(e(E),{theme:"light"})])])):d("",!0)}}});export{nt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.