1import{_ as O}from"./CTGYiaoc.js";import D from"./Be1JWI0M.js";import Q from"./Drdy_b3-.js";import{_ as U}from"./DINW_ir_.js";import J from"./fiEbmycu.js";import{_ as K}from"./wtnVEmQg.js";import{_ as W}from"./BDEeRXzt.js";import{u as X}from"./CfRynZoz.js";import{u as Y}from"./5lmUsmf0.js";import{d as Z,an as C,U as ee,p as M,ao as te,y as I,e as h,f as n,n as y,g as a,j as c,w as g,k as l,i as x,F as ae,l as se,q as oe,a as ne,a4 as le,c as s,h as re,t as N}from"./2wZnQC37.js";import{u as ie}from"./D1sl933t.js";import{u as ue}from"./Ckk-lO-n.js";import"./eNRcJCw9.js";import"./DP3SJs_D.js";import"./BCt8rGR-.js";import"./piuiv6gC.js";import"./CrFgYiQN.js";import"./BhVQHxBq.js";import"./jZ8yHuX0.js";const ce={class:"u-main-content u-main-content--full-content-width"},me={class:"u-main-content__inner content-col pb-0"},_e={key:2,class:"font-set-2-bold mb-1"},pe={class:"u-author__contact"},de={class:"visually-hidden"},he={key:0,class:"u-autor__articles u-content-width--full"},Ee=Z({__name:"[...slug]",async setup(ge){let r,m;C()?.context!==void 0&&(C().context.responseTimeMetricName="author");let e={};const _=ee(),j=_.path.match(/\d+($|\?|#|\.)/g)?.[0]?.match(/\d+/g);let f;if(e=([r,m]=M(()=>oe("/api/"+ne()+"/authors/"+j,{onResponse(t){t.response.headers.get("Content-Path")!==null&&t.response.headers.get("Content-Path")!==_.path&&(f=_.fullPath.replace(_.path,t.response.headers.get("Content-Path")))}},"$Rj6Ri_BGgO")),r=await r,m(),r).data,!e.value)throw te({statusCode:404,statusMessage:"Page Not Found"});f!==void 0&&le(f,{});const i=`${e.value?.name} ${e.value?.surname}`,T=`mailto:${e.value?.email}`,b=e.value?.socialMedia?Object.values(e.value.socialMedia).filter(Boolean):[],v=b.length>0,k=e.value?.articles?e.value.articles.length>0:!1,L=`Aktuelle Beiträge von ${i}`,R=e?.value?.articles,u=z(R),$=Y("p"),A=$.value?u.findIndex(t=>t.label===$.value):u.findIndex(t=>t.items.length>0),P=`https://www.${I().domain}${e.value?.url}`,S=I().domain,E={"@context":"https://schema.org","@type":"ProfilePage",url:P,name:`Autor ${i} | ${S}`,mainEntity:{"@type":"Person",name:i,url:P,jobTitle:e.value?.role,description:e.value?.biography,image:e.value?.image?.url,email:e.value?.email,sameAs:v?b:void 0}};ie(()=>E),ue(`Autor ${e.value?.name} ${e.value?.surname}`);function z(t){if(!t&&t.length===0)return[];const p=Number.isInteger(t.length/48)?t.length/48:Math.ceil(t.length/48),d=[];for(let o=0;o<p;o++)d.push({label:String(o+1),items:t.slice(o*48,o*48+48)});return d}return[r,m]=M(()=>X([{label:"Autoren",url:"/autoren"},{label:i}])),await r,m(),(t,p)=>{const d=O,o=D,F=Q,w=U,V=J,q=K,G=W;return s(),h("main",ce,[n("div",me,[n("section",{class:y(["u-autor mt-10",{"mb-10":!a(k)}])},[i?(s(),c(d,{key:0,overline:a(e)?.role,tag:"h2",class:"mb-0"},{default:g(()=>[re(N(i))]),_:1},8,["overline"])):l("",!0),a(e)?.image?(s(),c(o,{key:1,image:a(e).image,lazy:a(e).image.lazy,class:"mt-10"},null,8,["image","lazy"])):l("",!0),x(F,{text:a(e)?.biography,class:"lh-lg mt-10 mb-10"},null,8,["text"]),a(e)?.email||v?(s(),h("p",_e,"Hier finden Sie mich")):l("",!0),n("div",pe,[a(e)?.email?(s(),c(w,{key:0,url:T},{default:g(()=>p[0]||(p[0]=[n("span",{class:"u-icon u-icon--email"},null,-1),n("span",{class:"visually-hidden"},"Per E-Mail Kontaktieren",-1)])),_:1})):l("",!0),v?(s(!0),h(ae,{key:1},se(a(e)?.socialMedia,(H,B)=>(s(),c(w,{url:H,class:y(["mr-2"]),external:""},{default:g(()=>[n("span",{class:y(`u-icon u-icon--${B.toLowerCase()}`)},null,2),n("span",de,N(B),1)]),_:2},1032,["url"]))),256)):l("",!0)])],2),a(k)?(s(),h("section",he,[x(q,{title:L,design:"'default'",class:"u-autor__articles-inner"},{default:g(()=>[x(V,{teasers:a(u)?.[a(A)]?.items,layout:"8"},null,8,["teasers"])]),_:1}),a(u).length>1?(s(),c(G,{key:0,groups:a(u),activeIndex:a(A),queryParam:"p"},null,8,["groups","activeIndex"])):l("",!0)])):l("",!0)])])}}});export{Ee 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.