<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">import S from"./Hero.DBmY2kO8.js";import $ from"./Tabs.IpgB36xW.js";import E from"./NewsletterForm.xbGg0PKk.js";import G from"./GetStarted.af8qQ00u.js";import{u as H,q as I}from"./query.P2nMysIP.js";import{u as V}from"./useAOS.Bds3SMmB.js";import{e as D,C as n,p as F,q as K,k as M,c as T,v as W,o as Z,b as h,_ as z}from"./entry.DLSb7dht.js";import"./Breadcrumbs.DPdr3azE.js";import"./NuxtImg.vue.B5bt1_yV.js";import"./PostGrid.Bn3edo9J.js";import"./PostCard.BcHhGcNy.js";import"./toKebabCase.r_RV3gou.js";import"./Pagination.BGM6rRcN.js";import"./MktoForm.DPCVMTle.js";import"./index.CkuAgii4.js";import"./preview.DZuzPP1B.js";import"./useAvailableLanguages.C5rP8QIe.js";const J={key:0,ref:"targetRef"},a=9,L=D({__name:"BlogAuthor",props:{content:{type:Object,required:!0}},async setup(t){var k,w,y;let c,g;const f=n(0),b=n(1),r=n([]),s=n([]),d=n(0),o=n(null),{locale:A}=F(),{data:N}=([c,g]=K(async()=&gt;H(async()=&gt;({allPosts:await I(A.value,"/blog").where({"content.authors":{$contains:t.content.name}}).sort({"content.date":-1}).find()}),"$CuKuZW3RgR")),c=await c,g(),c);r.value=((k=N.value)==null?void 0:k.allPosts)||[],d.value=r.value.length,s.value=r.value.slice(0,a);const j={title:(w=t.content)==null?void 0:w.name,description:`Browse articles authored by ${(y=t.content)==null?void 0:y.name}`};V(j);function q(){var e,v,l,u,i,m,C;try{if(!t.content){o.value=null;return}const p={twitter:(e=t.content)==null?void 0:e.config.twitter,linkedin:(v=t.content)==null?void 0:v.config.linkedin,facebook:(l=t.content)==null?void 0:l.config.facebook,hackerNews:(u=t.content)==null?void 0:u.config.hackerNews,threads:(i=t.content)==null?void 0:i.config.threads},P=Object.fromEntries(Object.entries(p).filter(([Q,R])=&gt;R!=null)),B=Object.keys(P).length,x=[{header:"Articles",posts:s.value}];(B||(m=t.content)!=null&amp;&amp;m.bio)&amp;&amp;x.push({header:"About",bio:(C=t.content)==null?void 0:C.bio,socials:B&amp;&amp;P}),o.value={author:t.content,tabs:x}}catch(p){console.error("error updating author content",p)}}M([s],q,{immediate:!0});const _={totalPosts:d.value,total:Math.ceil(d.value/a),currentPage:b.value,perPage:a};function O(e){b.value=e,f.value=a*(e-1),s.value=r.value.slice(f.value,f.value+a),_.currentPage=e}return(e,v)=&gt;{const l=S,u=$,i=E,m=G;return o.value?(Z(),T("div",J,[h(l,{author:o.value.author},null,8,["author"]),h(u,{tabs:o.value.tabs,author:o.value.author,pagination:_,onPageChange:O},null,8,["tabs","author"]),h(i),h(m,{"background-class":"half-purple"})],512)):W("",!0)}}}),dt=z(L,[["__scopeId","data-v-b1e8a5e0"]]);export{dt as default};
</pre></body></html>