PageSourceSearch

https://www.humansecurity.com/_nuxt/BfRfsgwk.js

js humansecurity.com collected 2026-09-24 06:56:43 UTC 6,399 bytes, 1 lines download raw bytes

1import{_ as k,g as i,o as s,k as d,v as e,z as n,A as c,F as h,C as _,B as x,D as f,H as w,j as y,R as C,y as S,Q as O}from"./CBWsEOqF.js";const T={name:"TableOfContentsHero",props:{pageTitle:{type:String,default:null},fields:{type:Object,required:!0},block:{type:Object,default:()=>({id:"toc-block",slug:"",theme:""})},attributes:{type:Object,default:{}}},data(){return{inView:!1,activeSection:"",observer:null,mainObserver:null,isScrollingByClick:!1}},mounted(){this.setupObservers()},beforeUnmount(){this.observer&&this.observer.disconnect(),this.mainObserver&&this.mainObserver.disconnect()},methods:{getSlug(o){return(o.toc_title||o.heading&&o.heading.headline||"").toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSection(o){const r="contentSection"+o,l=this.$refs[r],g=Array.isArray(l)?l[0]:l;if(!g)return;this.isScrollingByClick=!0,this.activeSection=r;const b=document.body.getBoundingClientRect().top,t=g.getBoundingClientRect().top-b-180;window.scrollTo({top:t,behavior:"smooth"}),setTimeout(()=>{this.isScrollingByClick=!1},600)},setupObservers(){this.mainObserver=new IntersectionObserver(([o])=>{o.isIntersecting&&(this.inView=!0)},{threshold:.1}),this.$refs.tocblock&&this.mainObserver.observe(this.$refs.tocblock),this.observer=new IntersectionObserver(o=>{this.isScrollingByClick||o.forEach(r=>{r.isIntersecting&&(this.activeSection=r.target.getAttribute("data-section-id"))})},{rootMargin:"-20% 0px -70% 0px"}),this.$nextTick(()=>{document.querySelectorAll(".content-observer-target").forEach(r=>this.observer.observe(r))})}}},B={key:0,class:"bg-teal light-gns ~pt-[6.25rem]/[10rem]"},V={class:"container"},H={class:"max-w-[1170px] mx-auto"},L={class:"text-white h2 mb-[2rem]"},j={ref:"tocblock",class:"bg-white hero !~py-[2.5rem]/[4.5rem] overflow-clip"},D={class:"container"},M={class:"pin-filter wrapper hidden xl:block top-[180px] h-fit sticky transition-[top,position] duration-500 max-w-[262px]"},E={class:"toc hidden xl:block p-[1.5rem] bg-beige"},R={class:"flex flex-col list-none max-w-[400px]"},A=["href","onClick"],I={class:"w-full xl:w-[54.75rem] shrink-0"},z=["data-section-id"],N={class:"font-pp-editorial text-teal pb-[0.5rem]"},Z={class:"p1 text-black"},P={key:1,class:"mb-[2rem] last:border-b-0"},Q=["id","data-section-id"],q={key:1,class:"h4 text-teal"},F={key:0,class:"mb-[1rem]"},W={key:1,class:"mt-[1rem] pt-[1rem] border-t border-solid border-black"},U={class:"p1 text-black"},G={key:2,class:"mt-[2.5rem]"},J=["href"];function K(o,r,l,g,b,p){const m=w("sanitize-html");return s(),i(h,null,[l.pageTitle?(s(),i("section",B,[e("div",V,[e("div",H,[e("h1",L,n(l.pageTitle),1),r[0]||(r[0]=e("a",{href:"/glossary",class:"p2 text-white uppercase flex gap-x-[16px] items-center mt-[32px] no-underline"},[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"11",viewBox:"0 0 19 11",fill:"none"},[e("path",{d:"M17.5 5.5L1.5 5.5",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M6 10L1 5.5L6 1",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]),e("span",null,"Back to glossary")],-1))])])])):d("",!0),e("section",j,[e("div",D,[e("div",{class:c(["block xl:flex gap-x-[2rem] lg:justify-between mx-auto relative tocDiv",{"max-w-[1170px]":l.pageTitle}])},[e("div",M,[e("div",E,[e("ul",R,[(s(!0),i(h,null,_(l.fields.content,(t,a)=>(s(),i("li",{key:a,class:c(["border-solid border-l border-black/[0.17] pl-[1.25rem] relative",l.fields.content.length>7?"pb-[0.75rem]":"pb-[1.5rem]"])},[e("div",{class:c(["absolute -left-[0.17rem] top-0 w-[4px] h-[0.88719rem] transition-[background] duration-300",b.activeSection==="contentSection"+a?"bg-teal":"bg-transparent"])},null,2),e("a",{href:"#"+p.getSlug(t),onClick:x(u=>p.scrollToSection(a),["prevent"])},[f(e("p",{class:c(["[&.active]:font-semibold text-black text-[0.875rem] leading-[140%]",{active:b.activeSection==="contentSection"+a}])},null,2),[[m,t.toc_title||t.headline||t.heading&&t.heading.headline]])],8,A)],2))),128))])])]),e("div",I,[(s(!0),i(h,null,_(l.fields.content,(t,a)=>(s(),i(h,{key:a},[t.type==="Stats"?(s(),i("div",{key:0,ref_for:!0,ref:"contentSection"+a,"data-section-id":"contentSection"+a,class:"mb-[2rem] grid grid-cols-1 lg:grid-cols-3 gap-x-[2.25rem] gap-y-[1.5rem] content-observer-target"},[t.stats?(s(!0),i(h,{key:0},_(t.stats,(u,v)=>(s(),i("div",{key:v,class:"border-b last:border-b-0 lg:border-b-0 lg:border-r border-solid border-[#
1E2E3E3] last:border-r-0 lg:pr-[2.25rem] last:pr-0 pb-[1.5rem] last:pb-0 lg:pb-0"},[e("h3",N,n(u.stat),1),e("p",Z,n(u.subtext),1)]))),128)):d("",!0)],8,z)):(s(),i("div",P,[e("div",{class:"mb-[1.25rem] content-observer-target",id:p.getSlug(t),ref_for:!0,ref:"contentSection"+a,"data-section-id":"contentSection"+a},[t.heading&&t.heading.headline?(s(),y(O(t.heading.heading_type||"h2"),{key:0,class:c([t.heading.heading_appearance,"text-teal"])},{default:C(()=>[S(n(t.heading.headline),1)]),_:2},1032,["class"])):(s(),i("h2",q,n(t.toc_title),1))],8,Q),t.type==="Quoted Text"?(s(),i("div",F,[...r[1]||(r[1]=[e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"62",height:"20",viewBox:"0 0 62 20",fill:"none"},[e("path",{d:"M37.6715 20L34.3314 17.3023C36.2271 15.3488 37.9423 13.1163 38.2131 9.39535H34.1509V0H45.3445V7.72093C45.3445 12.4651 42.2753 17.1163 37.6715 20ZM53.8299 20L50.4899 17.3023C52.3856 15.3488 54.1007 13.1163 54.3715 9.39535H50.3093V0H61.5029V7.72093C61.5029 12.4651 58.4337 17.1163 53.8299 20Z",fill:"#00353D"}),e("path",{d:"M23.8314 0L27.1714 2.69767C25.2758 4.65116 23.5606 6.88372 23.2898 10.6047H27.352V20H16.1584V12.2791C16.1584 7.53489 19.2276 2.88372 23.8314 0ZM7.673 0L11.013 2.69767C9.11733 4.65116 7.40219 6.88372 7.13138 10.6047H11.1936V20H0V12.2791C0 7.53489 3.0692 2.88372 7.673 0Z",fill:"#00353D"})],-1)])])):d("",!0),f(e("div",{class:c(["rich-text p3 [&_*]:pb-[1.5rem] text-black [&_ol]:text-black [&_ol_p]:pb-0 [&_a]:underline [&_a]:font-bold ul_plus",{h6:t.type==="Quoted Text"}])},null,2),[[m,t.text,"wpEmbed"]]),t.subtext?(s(),i("div",W,[e("span",U,n(t.subtext),1)])):d("",!0),t.cta?(s(),i("div",G,[e("a",{href:t.cta.url,class:"btn primary teal"},n(t.cta.title),9,J)])):d("",!0)]))],64))),128))])],2)])],512)],64)}const Y=Object.assign(k(T,[["render",K],["__scopeId","data-v-55dd6980"]]),{__name:"ContentWithTableOfContents"});export{Y 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.