1import N from"./CXFhp6QP.js";import{_ as U,p as c,w as $,c as A,s as I,Y as W,a8 as Y,g as l,o as n,v as e,x as q,a0 as D,A as H,F as d,C as b,B as J,z as _,D as C,a3 as K,k as M,a2 as Q,j as X,R as Z,H as ee,S as te}from"./CBWsEOqF.js";import{a as se}from"./ncKc2DJp.js";const oe={class:"tw pb-0 with-sticky full-width bg-teal light-gns"},ne={class:"container pt-0 pb-[40px] md:pt-[50px] md:pb-[80px]"},le={class:""},ie={class:"tw full-width py-0 bg-beige"},ae={class:"pt-[35px] xl:pt-[77px] pb-[80px] xl:pb-[188px] pin-trigger"},re={class:"container sticky mx-auto max-w-[90rem] xl:px-[116px] md:px-[50px] px-[7.5vw]"},ce={class:"flex flex-row md:flex-col xl:flex-row flex-nowrap justify-center gap-x-[16px] xl:gap-x-0 gap-y-[16px] xl:justify-between items-center"},de={class:"hidden md:flex gap-x-[20px] flex-wrap xl:flex-nowrap justify-center xl:justify-start"},pe=["onClick"],ue={key:1,class:"p1 leading-[132%] -tracking-[0.72px] text-teal/[0.10] !no-underline font-bold uppercase"},xe={class:"md:hidden block shrink-0"},ve=["value"],fe={class:"xl:max-w-[344px] w-full flex xl:block justify-center searchGlossaryContainer"},he={class:"container mx-auto max-w-[90rem] md:px-[50px] px-[7.5vw] pt-[25px] xl:pt-[46px] xl:px-[116px]"},_e={class:"flex flex-col ~gap-y-[2rem]/[5rem]"},me=["id"],ge={class:"h2 pb-[1.5rem] uppercase text-teal"},we={class:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 ~gap-[1rem]/[1.75rem] grid"},be={class:"h6 !text-black font-bold !no-underline mb-0"},ke={class:"rich-text p2 !text-black/[0.8] !no-underline"},ye={__name:"Glossary",props:{fields:{type:Object,default:{}}},async setup(O){let m,B;const k=c(""),u=c("A"),x=c(!1),g=c(0),f=c(0),j=c(0),y=c({}),h=c(null);let v=null;const G=()=>({A:[],B:[],C:[],D:[],E:[],F:[],G:[],H:[],I:[],J:[],K:[],L:[],M:[],N:[],O:[],P:[],Q:[],R:[],S:[],T:[],U:[],V:[],W:[],X:[],Y:[],Z:[]}),P=([m,B]=$(()=>se.getPosts("topics")),m=await m,B(),m),L=A(()=>{const s=G(),t=k.value.toLowerCase();return P.posts.forEach(i=>{const w=i.title?.toLowerCase()||"",p=i.topics?.letterGroup?.[0];p&&s[p]&&(!t||w.includes(t))&&s[p].push(i)}),s}),R=(s,t)=>{s&&(y.value[t]=s)},F=()=>{if(!h.value)return;const s=window.innerWidth;j.value=s>=768?h.value.offsetTop+200:h.value.offsetTop-100,g.value=h.value.offsetHeight},S=()=>{const s=document.querySelector("nav.nav");s?f.value=s.classList.contains("nav-hidden")?0:s.offsetHeight-10:f.value=0},T=()=>{S(),x.value=window.pageYOffset>j.value},z=()=>{F()},E=s=>{u.value=s;const t=y.value[s];if(t){const i=f.value+(x.value?g.value:0)+80,p=t.getBoundingClientRect().top+window.pageYOffset-i;window.scrollTo({top:p,behavior:"smooth"})}},V=()=>{v&&v.disconnect();const s={root:null,rootMargin:`-${f.value+(x.value?g.value:0)+100}px 0px -50% 0px`,threshold:0};v=new IntersectionObserver(t=>{t.forEach(i=>{i.isIntersecting&&i.target.id&&(u.value=i.target.id)})},s),Object.values(y.value).forEach(t=>{t&&v.observe(t)})};return I(()=>{W(()=>{F(),S(),V(),window.addEventListener("scroll",T),window.addEventListener("resize",z)})}),Y(()=>{window.removeEventListener("scroll",T),window.removeEventListener("resize",z),v&&v.disconnect()}),(s,t)=>{const i=N,w=te,p=ee("sanitize-html");return n(),l(d,null,[e("section",oe,[e("div",ne,[e("div",le,[q(i,{fields:O.fields,heading_classes:"text-white"},null,8,["fields"])])])]),e("section",ie,[e("div",ae,[e("div",{ref_key:"stickyWrapper",ref:h,class:"pin-filter wrapper",style:D(x.value?`min-height: ${g.value}px;`:"")},[e("div",{class:H(["bg-beige/[0.7] static backdrop-blur-[50px] backdrop-saturate-[190%] transition-[position,top,padding] duration-700 lg:duration-1000 top-0 z-40",x.value?"py-[20px]":"py-0"]),style:D(x.value?{position:"fixed",top:f.value+"px",width:"100%"}:{})},[e("div",re,[e("div",ce,[e("div",de,[(n(!0),l(d,null,b(L.value,(a,o)=>(n(),l(d,{key:o},[a.length>0?(n(),l("a",{key:0,href:"javascript:void(0)",class:H(["p1 leading-[132%] -tracking-[0.72px] text-teal/[0.32] !no-underline [&.active]:text-dark-purple font-bold letter-nav uppercase",{active:u.value===o}]),onClick:J(r=>E(o),["prevent"])},_(o),11,pe)):(n(),l("p",ue,_(o),1))],64))),128))]),e("div",xe,[C(e("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>u.value=a),onChange:t[1]||(t[1]=a=>E(u.value)),class:"h-[36.4px] p-[8px] text-black border border-gray-300 rounded"},[(n(!0),l(d,null,b(L.value,(a,o)=>(n(),l(d,{key:o},[a.length>0?(n(),l("option",{key:0,value:o}
1,_(o.toUpperCase()),9,ve)):M("",!0)],64))),128))],544),[[K,u.value]])]),e("div",fe,[C(e("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>k.value=a),class:"border border-solid border-[#494949] text-[#494949] placeholder:text-[#494949] pl-[36px] py-[8px] bg-transparent rounded-[30px] w-full",id:"searchGlossary",placeholder:"Search"},null,512),[[Q,k.value]])])])])],6)],4),e("div",he,[e("div",_e,[(n(!0),l(d,null,b(L.value,(a,o)=>(n(),l(d,null,[a.length>0?(n(),l("div",{key:0,id:o,class:"letter-group",ref_for:!0,ref:r=>R(r,o)},[e("h2",ge,_(o),1),e("div",we,[(n(!0),l(d,null,b(a,r=>(n(),X(w,{external:"",to:r.uri,key:r.id||r.title,class:"h6 block !no-underline px-[2rem] py-[1.75rem] bg-[#B5B5B5]/[0.12] border border-solid border-[#FDFDFD]/[0.12] hover:border-dark-purple flex flex-col gap-y-[17px] transition-[border-color] duration-300 letter-item xl:w-[384px] h-full"},{default:Z(()=>[e("h5",be,_(r.title),1),C(e("div",ke,null,512),[[p,r.excerpt]]),t[3]||(t[3]=e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"11",viewBox:"0 0 19 11",fill:"none",class:"mt-auto"},[e("path",{d:"M1 5.5H17",stroke:"#9985FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M12.5 1L17.5 5.5L12.5 10",stroke:"#9985FF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1))]),_:2},1032,["to"]))),128))])],8,me)):M("",!0)],64))),256))])])])])],64)}}},je=U(ye,[["__scopeId","data-v-5f0dd237"]]);export{je 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.