1import{aW as A,aF as x,bl as Y,aO as g,b5 as J,aM as r,aI as t,aQ as X,aK as i,aR as Z,aP as E,aU as P,aJ as v,aL as h,aN as b,b1 as B,aS as M,aT as aa,a$ as _,aD as ta,b8 as K,b4 as ea,aY as na,bc as oa,bm as N,bg as W,aV as C,bn as sa,aX as ra}from"./CgQ1fbzD.js";import{f as ia,S as ca}from"./Dx7ziFwp.js";import{p as D}from"./B8IJFN-t.js";import"./DyR-RHAI.js";import{_ as la}from"./DFmPHXg6.js";import{A as ua}from"./CIdFDnaM.js";import{_ as _a}from"./B-cUQ05r.js";import{_ as ma}from"./xO7BFaGY.js";import{m as ha,_ as pa,u as O,P as da,a as ga}from"./BxuIpqwD.js";import{_ as fa}from"./aThw9PDe.js";import{u as ba}from"./DEf7Zx99.js";import{f as q}from"./B3NGWS_Q.js";import{u as G}from"./DD_1nHFi.js";import{u as va}from"./PZwHugo0.js";import"./CubCnRNz.js";import"./ywd6EK70.js";import"./DjckwuGC.js";import"./BWd1QBpZ.js";import"./OP5yoRsR.js";try{let a=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new a.Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="ea4073a3-bc01-4ab5-afd3-87e5f6d030de",a._sentryDebugIdIdentifier="sentry-dbid-ea4073a3-bc01-4ab5-afd3-87e5f6d030de")}catch{}const ya=async({slug:a,locale:e=A})=>{var n,c;const o=await ia(ca.Authors,{locale:e,filters:{slug:a},populate:{photo:D.populateAll,seo:D.seo,ctaBanner:D.populateAll}});return(c=(n=o==null?void 0:o.data)==null?void 0:n[0])==null?void 0:c.attributes},ka="_author_block_1du4l_1",xa="_container_1du4l_5",wa="_divider_1du4l_21",$a="_pagination_block_1du4l_33",Aa="_breadcrumbs_link_1du4l_47",Ba="_breadcrumbs_arrow_1du4l_51",f={author_block:ka,container:xa,divider:wa,pagination_block:$a,breadcrumbs_link:Aa,breadcrumbs_arrow:Ba},Ea="_link_1urqk_1",Pa={link:Ea},La=(a,e,o)=>a===1?`${a} ${e}`:`${a} ${o}`,Ta=x({__name:"index",props:{count:{},anchor:{default:()=>Y},text:{default:()=>({singular:"",plural:""})}},setup(a){return(e,o)=>{const n=J;return i(),g(n,{class:r(t(Pa).link),to:{hash:`#${a.anchor}`}},{default:X(()=>[Z(E(t(La)(a.count,a.text.singular,a.text.plural)),1)]),_:1},8,["class","to"])}}}),Ia="_section_info_1j5x0_1",Sa="_author_photo_container_1j5x0_14",Ca="_author_photo_1j5x0_14",Da="_author_name_1j5x0_35",Ma="_author_summary_1j5x0_51",Na="_author_position_1j5x0_63",Va="_author_description_1j5x0_91",d={section_info:Ia,author_photo_container:Sa,author_photo:Ca,author_name:Da,author_summary:Ma,author_position:Na,author_description:Va},ja=["innerHTML"],za=x({__name:"AuthorInfoSection",props:{author:{},totalArticles:{}},setup(a){const{t:e}=P(),o=e("author.article"),n=e("author.articles");return(c,m)=>{var u;const p=_a,l=Ta;return i(),v("section",{class:r(t(d).section_info)},[h("div",{class:r(t(d).author_photo_container)},[(u=a.author.photo)!=null&&u.data?(i(),g(p,{key:0,image:a.author.photo,fit:"cover","class-name":t(d).author_photo},null,8,["image","class-name"])):b("",!0)],2),h("div",{class:r(t(d).author_info)},[h("h2",{class:r(t(d).author_name)},E(a.author.name),3),h("div",{class:r(t(d).author_summary)},[h("span",{class:r(t(d).author_position)},E(a.author.position),3),B(l,{count:a.totalArticles,anchor:"articles",text:{singular:t(o),plural:t(n)}},null,8,["count","text"])],2),h("div",{class:r(t(d).author_description),innerHTML:a.author.description},null,10,ja)],2)],2)}}}),Ua="_articles_wrapper_1tzft_1",Fa="_author_name_1tzft_19",H={articles_wrapper:Ua,author_name:Fa},Ra=x({__name:"ArticlesListSection",props:{name:{},articles:{},ctaBanners:{}},setup(a){const{t:e}=P(),o=_(()=>ha(a.articles,a.ctaBanners)),n=m=>"banner"in m,c=_(()=>a.name||"-");return(m,p)=>{const l=ma;return i(),v("section",null,[h("h2",{id:"articles",class:r(t(H).author_name)},E(t(e)("author.by",{author:t(c)})),3),h("div",{class:r(t(H).articles_wrapper)},[(i(!0),v(M,null,aa(t(o),u=>(i(),v(M,{key:n(u)?`${u.id}-banner`:u.id},[n(u)?(i(),g(pa,{key:0,item:u},null,8,["item"])):(i(),g(l,{key:1,"article-data":u,"view-name":"blog_article"},null,8,["article-data"]))],64))),128))],2)])}}}),Wa=x({__name:"ArticleAuthor",props:{author:{},pagination:{},articles:{},isLoading:{type:Boolean,default:!1}},setup(a){const{$amplitude:e}=ta(),o=K(),n=ea(),{value:c}=O("page",N),m=_(()=>c.value===N),{t:p}=P(),l=_(()=>[{text:p("main.page"),url:n(W.Main)},{text:p("blog.page"),url:n(W.Blog)}]),{md:u}=ba();na(()=>{e.track(ua.WEBSITE_VIEW,{view_name:"blog_author",view_id:o.params.slug})});const L=k=>({query:{...o.query,page:k}}),T=_(()=>a.author.ctaBanner||[]),w=_(()=>a.pagination?a.pagination.total>a.pagination.pageSize:!1);return(k,$)=>{const I=la;return i(),v("main",{class:r(t(f).main)},[h("div",{class:r(t(f).author_block)},[h("div",{class:r(t(f).container)},[t(u)?(i(),g(I,{key:0,list:t(l),"current-page":{text:a.author.name,url:null},"custom-class-names":{link:t(f).breadcrumbs_link,arrow:t(f).breadcrumbs_arrow}},null,8,["list","current-page","custom-class-names"])):b("",!0),t(m)&&a.pagination?(i(),v(M,{key:1},[B(za,{author:a.author,"total-articles":a.pagination.total},null,8,["author","total-articles"]),h("div",{class:r(t(f).divider)},null,2)],64)):b("",!0),a.isLoading?(i(),g(fa,{key:2,position:"relative","is-loading":""})):b("",!0),a.articles&&!a.isLoading?(i(),g(Ra,{key:3,articles:a.articles,name:a.author.name,"cta-banners":t(T)},null,8,["articles","name","cta-banners"])):b("",!0),t(w)?(i(),v("div",{key:4,class:r(t(f).pagination_block)},[B(da,{page:t(c),"onUpdate:page":$[0]||($[0]=S=>oa(c)?c.value=S:null),total:a.pagination.total,"per-page":a.pagination.pageSize,to:L},null,8,["page","total","per-page"])],2)):b("",!0)],2)],2),B(ga)],2)}}}),qa=18,ut=x({__name:"[slug]",async setup(a){var V,j,z,U,F;let e,o;const{locale:n}=P(),c=K(),m=c.params.slug,{value:p}=O("page",N),{data:l}=([e,o]=C(async()=>G(`author-page-attributes-${n.value}-${m}`,async()=>{const s=await ya({slug:m,locale:n.value});return{seo:s==null?void 0:s.seo,author:s}},{watch:[n]})),e=await e,o(),e),u=(j=(V=l.value)==null?void 0:V.author)==null?void 0:j.name;if((!((z=l.value)!=null&&z.author)||!u)&&n.value!==A)[e,o]=C(()=>ra(c.path.replace(`/${n.value}`,""),{replace:!0})),await e,o();else if(!((U=l.value)!=null&&U.author))throw sa({statusCode:404,statusMessage:"Author not found"});va((F=l.value)==null?void 0:F.seo);const L=_(()=>{var s,y;return((y=(s=l.value)==null?void 0:s.author)==null?void 0:y.ctaBanner)||[]}),T=_(()=>L.value.length),w=_(()=>qa-T.value),{data:k,status:$}=([e,o]=C(async()=>G(`author-articles-${n.value}-${m}-${p.value}`,async()=>{const{pagination:s,articles:y}=await q({slug:m,itemsPerPage:w.value,page:p.value,locale:n.value});return!y.length&&n.value!==A?await q({slug:m,itemsPerPage:w.value,page:p.value,locale:A}):{pagination:s,articles:y}},{watch:[p,n]})),e=await e,o(),e),I=_(()=>$.value==="pending"),S=_(()=>{var s;return(s=k.value)==null?void 0:s.pagination}),Q=_(()=>{var s;return(s=k.value)==null?void 0:s.articles});return(s,y)=>{var R;return(R=t(l))!=null&&R.author?(i(),g(Wa,{key:0,author:t(l).author,pagination:t(S),articles:t(Q),"is-loading":t(I)},null,8,["author","pagination","articles","is-loading"])):b("",!0)}}});
1export{ut 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.