PageSourceSearch

https://isric.org/_nuxt/BqL3Tr5b.js

js isric.org collected 2026-09-24 08:49:08 UTC 4,471 bytes, 1 lines download raw bytes

1import re from"./x1gdYL2z.js";import{r as k,a as ie,j as le,a6 as ce,a7 as pe,c as f,o as s,g as _,E as p,a8 as de,e,f as d,d as l,av as me,F as ue,G as fe,A as _e,q as x,ac as ge,ad as Z,B as he}from"./FTaPbxLM.js";import ve from"./CUQHcvjt.js";import ye from"./8y_KnDCH.js";import ke from"./B9hwvYFO.js";import xe from"./CRmz1tHp.js";import we from"./Bml2-X4o.js";import{u as be}from"./BjLGVT4M.js";import"./D_WVsykS.js";import"./BzVpgML3.js";const Be={class:"bg-base-100"},Se={key:1,class:"grid grid-cols-1 gap-5 lg:grid-cols-2"},Te={class:"mb-4 flex items-center gap-4"},$e={key:1,class:"text-lg font-medium text-base-400"},Ce={class:"mt-2 flex flex-wrap gap-4"},Ne={key:0,class:"mt-6"},He={__name:"StaffList",props:{component:{type:Object,default:()=>({})}},setup(ee){const w=ee,m=k(!1),t=k(null),v=k(""),b=ie(),te=()=>{m.value=!m.value,m.value||(t.value=null)},B=a=>{t.value=a,m.value=!0,v.value=""},S=be(w),g=le(()=>{var a,r,n;return((n=(r=(a=w.component)==null?void 0:a.properties)==null?void 0:r.staffMember)==null?void 0:n.items)||[]}),ne=a=>a.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").trim(),y=async()=>{if(typeof window>"u"||!b.hash)return;const a=b.hash.substring(1);if(g.value.length===0)return;const r=g.value.find(n=>{var h;return((h=n.content.properties)!=null&&h.staffName?ne(n.content.properties.staffName):null)===a});if(r){B(r.content),v.value=r.content.id;const n=document.getElementById(r.content.id);n&&setTimeout(()=>{n.scrollIntoView({behavior:"smooth",block:"center"}),setTimeout(()=>{window.scrollTo({top:n.offsetTop-100,behavior:"smooth"})},100)},100)}};return ce(()=>{typeof window>"u"||(setTimeout(y,500),window.addEventListener("hashchange",y))}),pe(()=>{typeof window>"u"||window.removeEventListener("hashchange",y)}),(a,r)=>{const n=re,T=de,h=ve,oe=ye,$=he,C=ke,se=xe,ae=we;return s(),f("div",Be,[_(T,{class:"my-8 lg:my-16"},{default:p(()=>{var i;return[e(S)?(s(),d(me(e(S)),{key:0})):l("",!0),((i=e(g))==null?void 0:i.length)>0?(s(),f("div",Se,[(s(!0),f(ue,null,fe(e(g),o=>(s(),d(n,{id:o.content.id,key:o.content.id,content:o.content,class:_e({"rounded-3xl ring-4 ring-primary-200":e(v)===o.content.id}),onClick:c=>B(o.content)},null,8,["id","content","class","onClick"]))),128))])):l("",!0)]}),_:1}),_(ae,{"is-open":e(m),class:"lg:max-w-[726px]",onToggleModal:te},{header:p(()=>{var i,o,c,u,N,E,M,L,V,I,z,j,D,F,G,H,O,R,q,A,U,J,K,P,Q,W;return[x("div",Te,[(u=(c=(o=(i=e(t))==null?void 0:i.properties)==null?void 0:o.image)==null?void 0:c[0])!=null&&u.url?(s(),d(h,{key:0,image:[{url:(L=(M=(E=(N=e(t))==null?void 0:N.properties)==null?void 0:E.image)==null?void 0:M[0])==null?void 0:L.url}],class:"size-24 rounded-full object-cover"},null,8,["image"])):l("",!0),x("div",null,[(I=(V=e(t))==null?void 0:V.properties)!=null&&I.staffName?(s(),d(oe,{key:0,size:"h3","visual-size":"h3",class:"mb-0"},{default:p(()=>{var X,Y;return[ge(Z((Y=(X=e(t))==null?void 0:X.properties)==null?void 0:Y.staffName),1)]}),_:1})):l("",!0),(j=(z=e(t))==null?void 0:z.properties)!=null&&j.function?(s(),f("span",$e,Z((F=(D=e(t))==null?void 0:D.properties)==null?void 0:F.function),1)):l("",!0),x("div",Ce,[(H=(G=e(t))==null?void 0:G.properties)!=null&&H.email?(s(),d(C,{key:0,link:{linkType:"External",url:`mailto:${(R=(O=e(t))==null?void 0:O.properties)==null?void 0:R.email}`,title:(A=(q=e(t))==null?void 0:q.properties)==null?void 0:A.email},variant:"link",class:"flex items-center gap-2 underline decoration-primary-200 decoration-2 underline-offset-2"},{default:p(()=>[_($,{name:"lucide:mail",class:"text-xl","aria-hidden":"true"})]),_:1},8,["link"])):l("",!0),(J=(U=e(t))==null?void 0:U.properties)!=null&&J.phone?(s(),d(C,{key:1,link:{linkType:"External",url:`tel:${(P=(K=e(t))==null?void 0:K.properties)==null?void 0:P.phone}`,title:(W=(Q=e(t))==null?void 0:Q.properties)==null?void 0:W.phone},variant:"link",class:"flex items-center gap-2 underline decoration-primary-200 decoration-2 underline-offset-2"},{default:p(()=>[_($,{name:"lucide:phone",class:"text-xl","aria-hidden":"true"})]),_:1},8,["link"])):l("",!0)])])])]}),default:p(()=>{var i,o,c,u;return[(o=(i=e(t))==null?void 0:i.properties)!=null&&o.description?(s(),f("div",Ne,[_(se,{class:"prose-a:underline prose-a:decoration-primary-200 prose-a:decoration-2 prose-a:underline-offset-2",content:(u=(c=e(t))==null?void 0:c.properties)==null?void 0:u.description},null,8,["content"])])):l("",!0)]}),_:1},8,["is-open"])])}}};export{He 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.