PageSourceSearch

https://www.spamhaus.org/_nuxt/_slug_.DaAdkotU.js

js spamhaus.org collected 2026-10-01 06:56:40 UTC 6,478 bytes, 2 lines download raw bytes

1import{C as O,s as H,m as W,E as I,z as q,A as Z}from"./entry.FAhe_pJ7.js";import{u as V}from"./asyncData.DiVXS_Wx.js";import{o as P,am as j,d as N,a1 as p,U as l,i as f,n as _,an as d,f as a,a6 as h,m as L,h as g,ab as e,F as J,$ as K,g as T,Z as Q}from"./swiper-vue.CT7r2VF_.js";import{u as F}from"./ResourceComposable.C3E8WTUa.js";import{_ as X}from"./index.vue.DAskXt2_.js";import{_ as Y}from"./index.vue.c29wgOVV.js";import"./markdown.vue.CphqA0vm.js";import"./slugify.B0mGB-fF.js";import"./card.vue.waF45SJ9.js";import"./startCase.dVDr1WZ1.js";/* empty css              */const ee={class:"bg-[url('~/assets/img/resource/bg-header.webp')] bg-cover bg-bottom bg-no-repeat pb-10"},te={class:"flex flex-col justify-center text-center gap-5"},oe={class:"text-center"},se={class:"font-bold uppercase text-xs"},re={key:0,class:"font-medium large:text-lg"},ae={class:"flex large:flex-row mobile:flex-col mobile:gap-2 large:gap-10 justify-center items-center"},ne=["href"],ce={class:"flex flex-row mobile:flex-wrap gap-2 justify-center"},ie=P({__name:"index",props:{resource:{}},async setup(A){let r,n;const{tagMap:M}=F(),b=O(),m=I(),B=A,{data:v}=([r,n]=j(()=>V("author",()=>$fetch(`${m.public.CMS_URL?m.public.CMS_URL:m.CMS_URL}authors/${B.resource.author}`))),r=await r,n(),r),y=N(()=>new URL(b.path,window.location.origin).href),x=N(()=>{const c=[{name:"Email",command:()=>window.open(`mailto:?body=Check out this article from Spamhaus: ${y.value}`),icon:"email"},{name:"LinkedIn",command:()=>H(`https://www.linkedin.com/feed/?shareActive=true&text=Check out this article from Spamhaus:%0A%0D%0A${encodeURIComponent(y.value)}`,{external:!0}),icon:"linkedin"},{name:"Twitter",command:()=>H(`https://twitter.com/intent/tweet?text=Check out this article from Spamhaus: &url=${y.value}`,{external:!0}),icon:"twitter"}];return window.isSecureContext&&c.push({name:"Copy Link",command:()=>navigator.clipboard.writeText(y.value),icon:"copy"}),c});return(c,o)=>{const D=p("ShHeading"),U=p("ShIcon"),$=p("ShButton"),z=p("ShMenu"),i=p("ShTag"),E=p("ShGrid");return l(),f("section",ee,[_(E,{narrow:"",class:"pb-16 pt-12 mobile:px-0 large:px-24 xlarge:px-10"},{default:d(()=>{var C,t;return[a("div",te,[a("div",oe,[a("p",se,h(c.resource.type),1)]),_(D,{size:"h1"},{default:d(()=>[L(h(c.resource.title),1)]),_:1}),c.resource.hideSnippet?g("",!0):(l(),f("p",re,h(c.resource.short_snippet),1)),a("div",ae,[a("span",null,[L("by "),a("a",{class:"font-semibold text-blue-lagoon",href:`/authors/${(C=e(v))==null?void 0:C.data.slug}/`},h((t=e(v))==null?void 0:t.data.name),9,ne)]),a("span",null,h(e(W)(new Date(c.resource.publishedDate),"MMMM dd, yyyy")),1),a("span",null,h(c.resource.reading_time),1),_(z,{options:e(x),title:"Share"},{activator:d(({onClick:s})=>[_($,{variant:"secondary",onClick:s},{startIcon:d(()=>[_(U,{icon:"share"})]),default:d(()=>[L(" Share ")]),_:2},1032,["onClick"])]),_:1},8,["options"])]),a("div",ce,[(l(!0),f(J,null,K(c.resource.tags,s=>(l(),T(i,{card:!1,key:s,href:`/resource-hub/${e(M)[s]}/`},{default:d(()=>[L(h(s),1)]),_:2},1032,["href"]))),128))])])]}),_:1})])}}}),le={class:"flex justify-center overflow-clip"},ue={key:0,controls:""},pe=["src"],de={key:1,class:"w-full"},me=["src"],he=P({__name:"index",props:{resource:{}},setup(A){const r=I();return q(),(n,M)=>{const b=p("ShButton"),m=p("ShGrid");return l(),f("section",null,[_(m,{narrow:n.resource.video,"y-space":""},{default:d(()=>[a("div",le,[n.resource.video?(l(),f("video",ue,[a("source",{src:`${e(r).public.CONTENT_ASSETS_URL}${n.resource.video}.mp4`},null,8,pe)])):g("",!0),n.resource.report?(l(),f("div",de,[a("embed",{width:"100%",height:"800px",class:"large:flex mobile:hidden",src:`${e(r).public.CONTENT_ASSETS_URL}${n.resource.report}.pdf`},null,8,me),_(b,{class:"mobile:w-full large:w-fit large:mt-4 large:float-right",variant:"secondary",href:`${e(r).public.CONTENT_ASSETS_URL}${n.resource.report}.pdf`,startIcon:"save"},{default:d(()=>[L(" Download report")]),_:1},8,["href"])])):g("",!0)])]),_:1},8,["narrow"])])}}}),Re=P({__name:"[slug]",async setup(A){var C;let r,n;const{setBreadcrumbs:M,setPageTitle:b,setPageDescription:m}=Z(),{tagMap:B}=F(),v=I(),x=O().params.slug,c={guide:"Guide",news:"News Article",blog:"Blog",video:"Video",report:"Report"},{data:o}=([r,n]=j(()=>V(`resource-${x}`,()=>{const t=v.public.CMS_URL?v.public.CMS_URL:v.CMS_URL,s=new URL(`${t}resources`);return s.searchParams.append("filter[slug][_icontains]",x),s.searchParams.append("filter[website][_icontains]",".org"),s.searchParams.append("filter[status][_eq]","published"),s.searchParams.append("limit","1"),$fetch(s.toString())})),r=await r,n(),r),D=t=>{if(t){const s=t.startsWith("#"),R=t.indexOf(`
2#`);if(s){const u=t.match(/^#+ [^#]*(?:#(?!#)[^#]*)*/gm),S=new RegExp(/(#+)\s(.*)/);return u==null?void 0:u.map(w=>{const[,,k]=S.exec(w);return{heading:k,content:w,hash:k.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}})}else{if(R===-1)return[{heading:null,content:t,chunk:null}];if(new RegExp(/(#+)\s(.*)/).exec(t)){const u=[];u.push({heading:null,content:t.slice(0,R),chunk:null});const S=t.slice(R).match(/^#+ [^#]*(?:#(?!#)[^#]*)*/gm),w=new RegExp(/(#+)\s(.*)/);return S&&u.push(...S.map(k=>{const[,,G]=w.exec(k);return{heading:G,content:k,hash:G.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/(^-|-$)/g,"")}})),u}return[{heading:null,content:t,chunk:null}]}}},U=((C=o.value)==null?void 0:C.data[0].content)??"",$=D(U),z=N(()=>
2{if(o.value)return o.value.data[0].type!=="video"?`${Math.ceil(U.split(" ").length/200)} minutes reading time`:`${o.value.data[0].video_length} minutes`}),i=N(()=>{if(o.value)return{...o.value.data[0],content_type:c[o.value.data[0].type],reading_time:z.value}}),E=Q(null);return o.value&&(E.value=B[o.value.data[0].tags[0]],b(o.value.data[0].meta_title),m(o.value.data[0].meta_description),M([{text:"Resources"},{text:"Resource Hub",href:"/resource-hub/"},{text:o.value.data[0].tags[0],href:E.value},{text:o.value.data[0].title,href:x}])),(t,s)=>{const R=ie,u=he,S=X,w=Y;return l(),f("main",null,[a("div",null,[e(i)?(l(),T(R,{key:0,resource:e(i),class:"z-50 relative"},null,8,["resource"])):g("",!0),e(i)&&["video","report"].includes(e(i).type)?(l(),T(u,{key:1,resource:e(i)},null,8,["resource"])):g("",!0),e($)&&e(i)?(l(),T(S,{key:2,type:e(i).type,content:e($),headings:e($),class:"z-40-relative"},null,8,["type","content","headings"])):g("",!0),e(i)?(l(),T(w,{key:3,slug:e(i).slug,tags:e(i).tags},null,8,["slug","tags"])):g("",!0)])])}}});export{Re 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.