1import{_ as v,r as s,c as n,a as o,b as p,o as e,d,w as m,e as r,F as x,f as D,t as L}from"./vendor-CzuS5jjx.js";const T={name:"author",data(){return{is_loading:!1,is_loading_more:!1,posts:[],author:{},paged:1}},watch:{"$route.params":{handler(){this.fetchData()},immediate:!0}},methods:{fetchData(a=!1){a||(this.posts=[],this.paged=1);let l="/get-author/"+this.$route.params.slug;this.is_loading=!0,this.$ajax.get(l).then(_=>{const i=_.data;this.author=i.author,this.$updateDocumentTitle(this.author.display_name),i.posts.forEach((t,f)=>{this.posts.push(t)}),this.is_loading_more=!1,this.is_loading=!1})}}},B={key:1,class:"page-content"},H={class:"author-header"},M=["innerHTML"],w=["innerHTML"],C={key:1,class:"no-posts"};function N(a,l,_,i,t,f){var u;const g=s("ui-skeleton-list"),k=s("el-avatar"),c=s("ui-list"),y=s("ui-item");return t.is_loading?(e(),n(g,{key:0})):(u=t.author)!=null&&u.ID?(e(),o("div",B,[d(c,{style:{"padding-top":"0","margin-top":"0"}},{default:m(()=>[r("header",H,[d(k,{size:108,src:t.author.avatar,fit:"cover"},null,8,["src"]),r("div",null,[r("h2",{innerHTML:t.author.display_name},null,8,M),t.author.description?(e(),o("p",{key:0,innerHTML:t.author.description},null,8,w)):p("",!0)])])]),_:1}),!t.is_loading&&t.posts.length!==0?(e(),n(c,{key:0},{default:m(()=>[(e(!0),o(x,null,D(t.posts,h=>(e(),n(y,{key:h.id,item:h,is_image_post:!0},null,8,["item"]))),128))]),_:1})):(e(),o("p",C,L(a.$t("no_articles")),1))])):p("",!0)}const E=v(T,[["render",N]]);export{E 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.