1import{g as E,aD as S,b$ as T,au as i,A as $,_ as I}from"./index-DxgTX0as.js";import{d as L,b as N,X as M,$ as U,o as F,e as Q,y as k,t as V,x as o,q as n,u as e,D as t,s,U as g,V as y,z as x,C as f}from"./vendor-vue-BCPMOKbJ.js";import{A as z}from"./AppPagination-CbNyK3Bj.js";import"./vendor-firebase-CJSViL_S.js";import{u as A,c as H,d as q,B as O}from"./useBlog-C5hiLdA8.js";import{A as X}from"./AuthorHero-CQ-a3iV2.js";import{u as Y}from"./useResourceSeo-6tnAfvVK.js";import"./strapi-BP4XuwNp.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};r.SENTRY_RELEASE={id:"dev"};var l=new r.Error().stack;l&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[l]="f510f3db-f722-4641-be23-0dce1f3a9930",r._sentryDebugIdIdentifier="sentry-dbid-f510f3db-f722-4641-be23-0dce1f3a9930")}catch{}})();const j={key:0,class:"author-container loading-state"},G={class:"author-hero"},J={class:"author-profile-card skeleton-card"},K={class:"profile-content"},W={class:"skeleton-bio"},Z={class:"skeleton-socials"},ee={class:"articles-header skeleton-header"},te={class:"articles-grid-container"},ae={class:"articles-grid"},se={class:"author-articles-section"},oe={class:"author-container"},ie={class:"articles-header"},ne={class:"section-title"},re={key:0,class:"articles-count"},ce={class:"articles-grid-container"},le={key:0,class:"articles-grid"},de={key:1,class:"articles-grid"},he={key:2,class:"empty-articles"},ue={key:2,class:"author-container error-state"},pe={class:"error-title"},ge=L({async preFetch({store:r,currentRoute:l}){const h=A(r),u=l.params.slug;await h.fetchAuthorPage(u)},__name:"AuthorPage",setup(r){const l=M(),h=N(()=>l.params.slug),u=A(),{author:c,articlesList:m,articlesListMeta:p,loading:w,articlesLoading:D}=U(u),{currentPage:_,handlePageChange:C}=H(()=>b()),{navigateToArticle:B}=q(),P=async()=>{try{await u.fetchAuthorPage(h.value)}catch(a){console.error("Error in fetchData:",a)}},v=()=>P();F(async()=>{c.value&&m.value.length>0||await v()});const R=Y(c,a=>({data:{title:a.name,excerpt:a.bio,seo:a.seo,type:T.AUTHOR},crumbs:[{name:a.name,path:l.path}]}));E(()=>R.value);const b=async()=>{if(c.value)try{await u.fetchArticlesByAuthor(c.value.id,_.value,9)}catch(a){console.error("Error fetching articles:",a)}};return Q(h,async()=>{_.value=1,await v(),c.value&&b()}),(a,fe)=>(o(),k(S,{class:"author-page"},{default:V(()=>[e(w)?(o(),n("div",j,[t("header",G,[t("div",J,[t("div",K,[s(i,{type:"QAvatar",size:"120px",class:"skeleton-avatar",animation:"fade"}),s(i,{type:"text",height:"28px",width:"180px",class:"skeleton-name",animation:"fade"}),s(i,{type:"text",height:"20px",width:"140px",class:"skeleton-role",animation:"fade"}),t("div",W,[s(i,{type:"text",height:"16px",animation:"fade"}),s(i,{type:"text",height:"16px",animation:"fade"})]),t("div",Z,[s(i,{type:"rect",height:"20px",width:"80px",animation:"fade"}),s(i,{type:"rect",height:"20px",width:"80px",animation:"fade"}),s(i,{type:"rect",height:"20px",width:"80px",animation:"fade"})])])])]),t("div",ee,[s(i,{type:"text",height:"24px",width:"220px",animation:"fade"}),s(i,{type:"text",height:"16px",width:"90px",animation:"fade"})]),t("div",te,[t("div",ae,[(o(),n(g,null,y(6,d=>t("div",{key:d,class:"grid-item"},[s(i,{height:"380px",class:"skeleton-blog-card",animation:"fade"})])),64))])])])):e(c)?(o(),n(g,{key:1},[s(e(X),{author:e(c)},null,8,["author"]),t("section",se,[t("div",oe,[t("header",ie,[t("h2",ne,f(a.$t("blog.authorpageArticlesbyauthor",{name:e(c).name})),1),e(p)?(o(),n("span",re,f(a.$t("blog.authorpageArticlescount",e(p).pagination.total)),1)):x("",!0)]),t("div",ce,[e(D)?(o(),n("div",le,[(o(),n(g,null,y(6,d=>t("div",{key:d,class:"grid-item"},[s(i,{height:"380px",class:"skeleton-blog-card",animation:"fade"})])),64))])):e(m).length>0?(o(),n("div",de,[(o(!0),n(g,null,y(e(m),d=>(o(),n("div",{key:d.id,class:"grid-item"},[s(e(O),{article:d,"show-type-badge":"",onClick:e(B)},null,8,["article","onClick"])]))),128))])):(o(),n("div",he,[t("p",null,f(a.$t("blog.authorpageNoarticlesfound")),1)])),e(p)&&e(p).pagination.pageCount>1?(o(),k(e(z),{key:3,"model-value":e(_),max:e(p).pagination.pageCount,"onUpdate:modelValue":e(C)},null,8,["model-value","max","onUpdate:modelValue"])):x("",!0)])])])],64)):(o(),n("div",ue,[t("h2",pe,f(a.$t("blog.authorpageAuthornotfound")),1),s(e($),{label:a.$t("blog.categorypageBacktoblog"),flat:"",to:"/blog",class:"retry-btn"},null,8,["label"])]))]),_:1}))}}),we=I(ge,[["__scopeId","data-v-dd458b3a"]]);export{we 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.