1import{u as g,a as _,b as y,t as d,d as w,c as x,w as C,e as v,o as l,f as c,g as k,h as u,i as A,j as b,F as N,r as G,n as $,k as H,l as I,m as E}from"./DRREkx-t.js";import{A as B}from"./UG8pIHQv.js";import P from"./CGUdtbC1.js";import R from"./DNi9qNta.js";import"./ByxvauRo.js";class S{data=[];async init(){return this.data=await this.fetchGlossary(),this}async fetchGlossary(){const t=g(),s=await t.runWithContext(()=>_()),e=`glossary-${s}`,{data:a}=await t.runWithContext(()=>y(e,async()=>await $fetch("/api/glossary",{query:{site:s}}),"$HKWN9u0V4M"));return a.value||[]}format(){const t=["0-9",...Array.from({length:26},(e,a)=>String.fromCharCode(65+a))].map(e=>({letter:e,items:[]}));(this.data||[]).forEach(e=>{if(!e.title)return;const a=e.title.charAt(0).toUpperCase();let r=t.findIndex(o=>o.letter===a);if(r===-1&&/[0-9]/.test(a)&&(r=0),r!==-1){const o=t[r];o&&o.items.push({heading:e.title,text:e.textBlock?.rawHtml||""})}});const s=t.filter(e=>e.items.length>0);return{subNavHero:{heading:{type:"h1",style:"h1",text:d("Crypto and compliance glossary")},textBlock:`<p>${d("A reference guide to commonly used terms in blockchain, digital assets, and financial crime compliance.")}</p>`,nav:s.map(e=>({text:e.letter,link:{url:`#${encodeURI(e.letter.toLowerCase())}`}}))},glossaryItemGroups:s.map(e=>({id:encodeURI(e.letter.toLowerCase()),module:{heading:{type:"h2",style:"h3",text:e.letter},accordion:e.items}}))}}}const M=w({__name:"glossary",async setup(p){let t,s;const{locale:e,t:a}=x(),r=E(),o=new S,{data:m}=([t,s]=C(async()=>y(`glossary-formatted-${e.value}`,async()=>(await o.init(),o.format()))),t=await t,s(),t);if(!m.value)throw new Error("No formatted glossary data available");const n=m.value,f=H(()=>({title:a("Glossary"),siteName:"Elliptic",uri:"glossary",seo:{description:a("Expand your knowledge with our comprehensive glossary")},url:`${r.public.APP_ROOT}${I("glossary",e.value)}`,schemaType:"CollectionPage",siteHandle:e.value}));return v(f),(q,F)=>(l(),c(B,{class:"glossary flow"},{default:k(()=>[u(n).subNavHero?(l(),c(P,{key:0,class:"glossary__sub-nav-hero",module:u(n).subNavHero},null,8,["module"])):A("",!0),(l(!0),b(N,null,G(u(n).glossaryItemGroups,(i,h)=>(l(),c(R,{key:i.id,id:i.id,class:$(["glossary__items",{"glossary__items--first":h===0}]),module:i.module},null,8,["id","class","module"]))),128))]),_:1}))}});export{M 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.