1import{_ as I,a as C,c as N,d as B,e as D}from"./IfMfTlqy.js";import{_ as V}from"./W0IGQbTj.js";import{_ as U}from"./CAWaUVQB.js";import{d as v,o as x,c as h,F as $,a as d,j as t,u as s,am as j,l as H,h as L,m as R,p as g,ao as T,q as E,aw as M,n as O,ap as y,k as A,ar as P,as as F,ax as q,au as z}from"./BBsw3eGQ.js";import"./BHuE53F1.js";const S={class:"grid gap-6 lg:grid-cols-3 lg:gap-8"},G={class:"block order-last space-y-6"},J={class:"space-y-6 lg:col-span-2"},K=v({name:"DefaultPersonViewer",__name:"DefaultPersonViewer",props:{profile:{}},setup(e){return(o,n)=>{const l=I,i=C,c=V,m=N,p=U;return x(),h($,null,[d("div",S,[d("div",G,[t(l,{categories:e.profile.categories,class:"rounded-xl bg-card p-4 lg:p-6"},null,8,["categories"]),t(i,{address:e.profile.address,contact:e.profile.contact,"profile-type":e.profile.profileType,class:"rounded-xl bg-card p-4 lg:p-6"},null,8,["address","contact","profile-type"])]),d("div",J,[t(c,{name:[e.profile.firstName,e.profile.lastName].filter(Boolean).join(" "),"profile-image-url":e.profile.profileImageURL,"cover-image-url":("resolveProfileCoverImageUrl"in o?o.resolveProfileCoverImageUrl:s(j))(e.profile),"summary-html":e.profile.summaryHtml},null,8,["name","profile-image-url","cover-image-url","summary-html"]),t(m,{blocks:e.profile.description?.blocks,class:"rounded-xl bg-card p-4 lg:p-6"},null,8,["blocks"])])]),t(p,{"profile-id":e.profile.id,class:"mt-6 lg:mt-8"},null,8,["profile-id"])],64)}}}),Q=Object.assign(K,{__name:"DefaultPersonViewer"}),W={class:"container py-8"},ne=v({name:"CommunityPersonDetailPage",__name:"[personId]",async setup(e){let o,n;const l=Q,{t:i}=H(),c=L(),m=R(),{media:p}=([o,n]=g(()=>T()),o=await o,n(),o),_=m.params.personId,{data:a,error:b}=([o,n]=g(()=>E(`/community/people/${_}`,{transform:M})),o=await o,n(),o);if(b.value||!a.value)throw O({statusCode:404,statusMessage:"Person not found"});const r=y([a.value.firstName,a.value.lastName].filter(Boolean).join(" "))??"",u=y(a.value.summaryText),f=a.value.profileImageURL||null;return A({title:r,meta:[{property:"og:title",content:r},{name:"description",content:u},{property:"og:description",content:u}]}),f?P({}):P({}),F([q({name:r,description:u,...f&&{image:f},...a.value.contact?.website&&{url:a.value.contact.website}}),z({itemListElement:[{name:p.value?.displayName||"Home",item:"/"},{name:i("people.title"),item:c({name:"community_people"})},{name:r}]})]),(X,Y)=>{const k=B,w=D;return x(),h("div",W,[t(k,{profile:s(a),"profile-kind":"person","profile-type":s(a).profileType.key,fallback:s(l)},null,8,["profile","profile-type","fallback"]),t(w,{"profile-type":"people","profile-id":s(_),class:"mt-8"},null,8,["profile-id"])])}}});export{ne 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.