1import{_ as H}from"./BXfQgX0L.js";import{f as I,r as y,m as p,c as d,a as m,g as x,h as t,b as j,t as k,W as w,v as D,o as f,_ as V}from"./Cg3HSUfV.js";const W={key:0,class:"thumbnail"},z={class:"copy"},O={key:0,class:"h6"},$=["innerHTML"],E=I({__name:"person-brief",props:{person:{}},setup(o){const _=o,r=y(!0),g=y("Read More"),h=p(()=>_.person.thumbnail?.url),M=s=>s.replace(/<[^>]*>/g,""),N=s=>s?s.replace(/<a[^>]*class="[^"]*read-more[^"]*"[^>]*>.*?<\/a>/gi,""):"",L=(s,b)=>{let l=0,n="";const c=[],B=/(<\/?[^>]+>)|([^<]+)/g;let i;for(;(i=B.exec(s))!==null;)if(i[1]){const e=i[1];if(e.startsWith("</")){const a=e.replace(/<\/(\w+).*>/,"$1").toLowerCase(),C=c.lastIndexOf(a);C!==-1&&c.splice(C,1),n+=e}else if(e.endsWith("/>"))n+=e;else{const a=(e.match(/<(\w+)/)||[])[1]?.toLowerCase();a&&c.push(a),n+=e}}else if(i[2]){const e=i[2],a=b-l;if(e.length<=a)n+=e,l+=e.length;else{n+=e.substring(0,a)+"...",l=b;break}}for(let e=c.length-1;e>=0;e--)n+=`</${c[e]}>`;return n},u=p(()=>_.person.description?N(_.person.description):""),v=p(()=>M(u.value).length>130),R=p(()=>u.value?r.value&&v.value?L(u.value,130):u.value:""),T=()=>{r.value?(r.value=!1,g.value="Read Less"):(r.value=!0,g.value="Read More")};return(s,b)=>{const l=H;return f(),d("div",{class:w(["person-brief",{hasImage:t(h)}])},[m("header",null,[t(h)?(f(),d("div",W,[j(l,{src:t(h),alt:o.person.full_name,loading:"lazy",class:"thumbnail-image"},null,8,["src","alt"])])):x("",!0),m("div",z,[m("h3",null,k(o.person.full_name),1),o.person.job_title?(f(),d("p",O,k(o.person.job_title),1)):x("",!0),m("div",{class:w(["main",{collapse:t(r)&&t(v)}]),innerHTML:t(R)},null,10,$),t(v)?(f(),d("a",{key:1,class:"read-more button",href:"#",onClick:D(T,["prevent"])},k(t(g)),1)):x("",!0)])])],2)}}}),U=Object.assign(V(E,[["__scopeId","data-v-ebcca4a9"]]),{__name:"PersonBrief"});export{U 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.