PageSourceSearch

https://www.spamhaus.org/_nuxt/index.Dlym3rTq.js

js spamhaus.org collected 2026-09-24 06:37:12 UTC 4,802 bytes, 1 lines download raw bytes

1import{o as g,Z as b,ak as A,a1 as h,U as l,i as u,n as d,an as y,m as $,y as U,ab as m,f as v,d as T,P as B,F as C,$ as G,D as L,a6 as x,g as D,h as k,am as F}from"./swiper-vue.CT7r2VF_.js";import{u as R,A as w,C as I,E}from"./entry.C6NAXwym.js";import{s as N}from"./slugify.3SE0EvEo.js";import{u as H}from"./asyncData.DIV8UA66.js";const P={class:"bg-[url('~/assets/img/resource/bg-header.webp')] bg-no-repeat bg-cover bg-bottom pb-20"},O=v("span",{class:"text-lg font-medium"},"Find explanations of commonly used terms on our website.",-1),q=g({__name:"index",setup(f){const{getGlossarySearch:o}=R(w()),{setGlossarySearch:a}=w(),t=b("");return A(t,()=>{a(t.value)}),(i,s)=>{const n=h("ShHeading"),r=h("ShIcon"),e=h("ShTextField"),c=h("ShGrid");return l(),u("section",P,[d(c,{ySpace:"",narrow:"",class:"text-center"},{default:y(()=>[d(n,{size:"h1",class:"mb-5"},{default:y(()=>[$("Glossary of terms")]),_:1}),O,d(e,{class:"mt-5 w-[400px] mx-auto",variant:"light",modelValue:m(t),"onUpdate:modelValue":s[0]||(s[0]=_=>U(t)?t.value=_:null),placeholder:"Search"},{appendIcon:y(()=>[d(r,{color:"black",icon:"search"})]),_:1},8,["modelValue"])]),_:1})])}}}),M=()=>{const{getGlossaryTerms:f,getGlossarySearch:o}=R(w()),a=b(void 0),t=s=>{const n={};let r=[];s?r=f.value.filter(e=>{var c,_,p;return((c=e.description)==null?void 0:c.toLowerCase().includes(s.toLowerCase()))||e.term.toLowerCase().includes(s.toLowerCase())||((_=e.summary)==null?void 0:_.toLowerCase().includes(s.toLowerCase()))||((p=e.synonyms)==null?void 0:p.filter(S=>S.toLowerCase().includes(s.toLowerCase())).length)}):r=f.value;for(const e of r){const c=e.term.charAt(0).toLowerCase();n[c]||(n[c]=[]),n[c].push(e)}return n},i=T(()=>{const s=t(o.value),n={};return Object.keys(s).sort().forEach(function(r,e){n[r]=s[r]}),n});return{searchTerm:a,filteredGlossary:i}},Z={class:"bg-[url('~/assets/img/backgrounds/bg-light-blue-long.webp')] bg-no-repeat bg-cover bg-bottom mt-[-7rem] pt-32 pb-24 text-white"},J={class:"mt-2 flex mobile:flex-wrap large:flex-nowrap justify-center items-center gap-2 p-1 rounded-lg bg-brand-blue-3"},K=["onClick"],Q=g({__name:"index",setup(f){const o=I(),a=b("abcdefghijklmnopqrstuvwxyz"),t=b("a"),{filteredGlossary:i}=M(),s=T(()=>Object.keys(i.value).join("")),n=e=>{location.hash=e},r=e=>{if(e){if(!s.value.includes(e))return;t.value=e,n(e);return}if(o.hash){const c=o.hash.replace("#","");if(!s.value.includes(c))return;t.value=c,n(c)}};return B(()=>{r()}),(e,c)=>{const _=h("ShGrid");return l(),u("section",Z,[d(_,null,{default:y(()=>[v("div",J,[(l(!0),u(C,null,G(m(a),p=>(l(),u("div",{class:L(["h-10 w-10 rounded flex justify-center items-center select-none",{"border-b-4 border-grey-6":p===m(t),"text-brand-blue-2":!m(s).includes(p),"bg-brand-blue-2 cursor-pointer font-semibold":m(s).includes(p)}]),onClick:S=>r(p),key:p},[v("span",{class:L(["uppercase",{"-mb-1":p===m(t)}])},x(p),3)],10,K))),128))])]),_:1})])}}}),W=["id"],X={class:"font-semibold"},Y=g({__name:"section",props:{term:{},summary:{},description:{}},setup(f){const o=b(!1);return(a,t)=>{const i=h("ShMarkdown"),s=h("ShIcon");return l(),u("div",{class:"mt-3 pb-3 flex flex-col gap-2 border-b glossary-content scroll-mt-28",id:m(N)(a.term.toLowerCase())},[v("span",X,x(a.term),1),d(i,{content:a.summary},null,8,["content"]),m(o)?(l(),D(i,{key:0,content:a.description},null,8,["content"])):k("",!0),a.description?(l(),u("button",{key:1,class:"h-10 flex gap-1 items-center cursor-pointer",onClick:t[0]||(t[0]=n=>o.value=!m(o))},[$(" Read "+x(m(o)?"Less":"More")+" ",1),d(s,{icon:m(o)?"chevronUp":"chevronDown"},null,8,["icon"])])):k("",!0)],8,W)}}}),ee={class:"bg-white"},se=["id"],te=g({__name:"index",setup(f){const{filteredGlossary:o}=M();return(a,t)=>{const i=Y,s=h("ShGrid");return l(),u("section",ee,[d(s,{ySpace:"",narrow:""},{default:y(()=>[(l(!0),u(C,null,G(m(o),(n,r)=>(l(),u("div",{id:r.toString(),key:r,class:"scroll-mt-28"},[(l(!0),u(C,null,G(n,e=>(l(),u("div",{key:e.term},[d(i,{term:e.term,summary:e.summary,description:e.description||void 0},null,8,["term","summary","description"])]))),128))],8,se))),128))]),_:1})])}}}),ce=g({__name:"index",async setup(f){var _;let o,a;const t=E(),{data:i,error:s}=([o,a]=F(()=>H("glossary",()=>$fetch(`${t.public.CMS_URL?t.public.CMS_URL:t.CMS_URL}glossary?sort=term`))),o=await o,a(),o),{setBreadcrumbs:n,setPageTitle:r,setPageDescription:e,setGlossaryTerms:c}=w();return i.value&&c((_=i.value)==null?void 0:_.data),n([{text:"Resources"},{text:"Glossary",href:"/glossary/"}]),r("Glossary | Technical internet terms | Spamhaus"),e("Explore our comprehensive glossary for explanations of commonly used terms on the website."),(p,S)=>{const V=q,j=Q,z=te;return l(),u("main",null,[d(V,{class:"z-50 relative"}),d(j,{class:"z-40 relative"}),d(z,{class:"z-30 relative"})])}}});
1export{ce 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.