PageSourceSearch

https://www.sans.org/_next/static/chunks/9812.15afdd6ffc04f543.js

js sans.org collected 2026-09-24 07:20:24 UTC 6,891 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9812],{9853:(t,e,o)=>{o.d(e,{DR:()=>a,E2:()=>u,K_:()=>d,Lp:()=>r,Pg:()=>c,T:()=>n,Tp:()=>S,Ut:()=>h,Uy:()=>y,bj:()=>s,c7:()=>g,jS:()=>i,nd:()=>l,qp:()=>x});let s=210,i=20,r=170,l=[13,31,45],c=[28,42,58],a=[80,96,114],n=[148,163,180],h=[200,120,0],d=t=>.44*t;function u(t){let e=t.replace("#","");return[Number.parseInt(e.slice(0,2),16),Number.parseInt(e.slice(2,4),16),Number.parseInt(e.slice(4,6),16)]}let F=[230,235,242];function g(t,e,o,s,l){let c=e.y+4,a=r/o.length,h=o.length-1;o.forEach((e,o)=>{let s=i+o*a;t.setFontSize(6.5),t.setFont("helvetica","bold"),t.setTextColor(...n),t.text(String(e.id),s+a/2,c-2.5,{align:"center"}),t.setFillColor(...u(e.color)),0===o?t.roundedRect(s,c,a,8.5,4.25,0,"F"):o===h?t.roundedRect(s,c,a,8.5,0,4.25,"F"):t.rect(s,c,a,8.5,"F")});let d=i+s/100*r,F=c+4.25;t.setFillColor(255,255,255),t.circle(d,F,5.2,"F"),t.setFillColor(...l),t.circle(d,F,3.6,"F"),t.setFillColor(255,255,255),t.circle(d,F,1.2,"F"),e.y=c+8.5+5,o.forEach((o,s)=>{let r=i+s*a+a/2;t.setFontSize(5.2),t.setFont("helvetica","normal"),t.setTextColor(...n),t.splitTextToSize(o.shortName,a-2).forEach((o,s)=>{t.text(o,r,e.y+3.1*s,{align:"center"})})}),e.y+=11}function S(t,e,o){let{barWidth:r,emphasis:l=!1,label:n,note:h,score:d}=o,u=d<2.5?[202,58,60]:d<3.5?[249,160,27]:[0,152,137];t.setFontSize(8.5),t.setFont("helvetica",l?"bold":"normal"),t.setTextColor(...l?u:c),t.text(n,i,e.y),t.setFontSize(8.5),t.setFont("helvetica","bold"),t.setTextColor(...u),t.text(`${d.toFixed(1)} / 5`,s-i,e.y,{align:"right"}),h?(t.setFontSize(7.5),t.setFont("helvetica","italic"),t.setTextColor(...a),t.text(h,i,e.y+4),e.y+=8):e.y+=4;let g=(d-1)/4*r;t.setFillColor(...F),t.roundedRect(i,e.y,r,5,2.5,2.5,"F"),g>0&&(t.setFillColor(...u),t.roundedRect(i,e.y,Math.max(5,g),5,2.5,2.5,"F")),e.y+=h?11:10}async function x(){try{let t=await fetch("/assets/marketing-web/images/sans-workforce-logo.png");if(!t.ok)return;let e=await t.blob();return await new Promise((t,o)=>{let s=new FileReader;s.onerror=()=>o(s.error??Error("Could not read the logo")),s.onload=()=>{let{result:e}=s;"string"==typeof e?t(e):o(Error("Logo did not read as a data URL"))},s.readAsDataURL(e)})}catch{return}}class y{get y(){return this.cursor}set y(t){this.cursor=t}constructor(t,e,o){this.doc=t,this.accent=e,this.stageLabel=o,this.cursor=0}addPage(){this.doc.addPage(),this.doc.setFillColor(...l),this.doc.rect(0,0,s,14,"F"),this.doc.setFillColor(...this.accent),this.doc.rect(0,13,s,1,"F"),this.doc.setFontSize(7),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(180,200,220),this.doc.text("SANS Security Awareness & Culture Maturity Assessment",i,9),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(...this.accent),this.doc.text(this.stageLabel,s-i,9,{align:"right"}),this.cursor=28}bullet(t,e,o){this.ensureSpace(10),this.doc.setFillColor(...o),this.doc.circle(i+2.5,this.cursor-1.5,1.2,"F"),this.text(t,{width:r-6,x:i+6}),e&&(this.cursor+=1.5,this.text(e,{color:a,size:8,style:"italic",width:r-10,x:i+8}),this.cursor+=2),this.cursor+=2}ensureSpace(t){this.cursor+t>277&&this.addPage()}sectionHeading(t){this.ensureSpace(18),this.doc.setFontSize(7.5),this.doc.setFont("helvetica","bold"),this.doc.setTextColor(...this.accent),this.doc.text(t.toUpperCase(),i,this.cursor),this.cursor+=1.5,this.doc.setFillColor(...this.accent),this.doc.rect(i,this.cursor,r,.6,"F"),this.cursor+=6}text(t,e={}){let{color:o=c,size:s=9.5,style:l="normal",width:a=r,x:n=i}=e;for(let e of(this.doc.setFontSize(s),this.doc.setFont("helvetica",l),this.doc.setTextColor(...o),this.doc.splitTextToSize(t,a)))this.cursor>277&&this.addPage(),this.doc.text(e,n,this.cursor),this.cursor+=d(s)}writeFooters(){let t=this.doc.getNumberOfPages();for(let e=1;e<=t;e+=1)this.doc.setPage(e),this.doc.setFillColor(...l),this.doc.rect(0,285,s,12,"F"),this.doc.setFillColor(...this.accent),this.doc.rect(0,285,s,1,"F"),this.doc.setFontSize(6.5),this.doc.setFont("helvetica","normal"),this.doc.setTextColor(150,170,195),this.doc.text("SANS Workforce Security & Risk Training  |  sans.org/workforce",i,292.5),this.doc.setTextColor(90,110,135),this.doc.text(`Page ${e} of ${t}`,s-i,292.5,{align:"right"})}}},89812:(t,e,o)=>{o.d(e,{generateResultsPdf:()=>l});var s=o(60384),i=o(94255),r=o(9853);async function l(t){let[{jsPDF:e},l]=await Promise.all([Promise.all([o.e(79),o.e(5984),o.e(3989)]).then(o.bind(o,52913)),(0,r.qp)()]),c=new e({format:"a4",orientation:"portrait",unit:"mm"}),{stage:a}=t,n=(0,i.jm)(t),h=(0,r.E2)(a.color),d=new r.Uy(c,h,`Stage ${a.id} \xb7 ${a.name}`);if(c.setFillColor(...r.nd),c.rect(0,0,r.bj,56,"F"),c.setFillColor(...h),c.rect(0,55,r.bj,2,"F"),l)try{c.addImage(l,"PNG",r.jS,11,62,17)}catch{}c.setFontSize(14),c.setFont("helvetica","bold"),c.setTextColor(255,255,255),c.text("Security Awareness & Culture Maturity",r.jS,38),c.text("Assessment Results",r.jS,45),c.setFontSize(7),c.setFont("helvetica","normal"),c.setTextColor(140,165,195),c.text("Based on the SANS Security Awareness & Culture Maturity Model",r.jS,51);let u=r.bj-r.jS-56;
1c.setFillColor(5,16,30),c.roundedRect(u,6,56,44,3,3,"F"),c.setFillColor(...h),c.roundedRect(u,6,4,44,2,0,"F"),c.setFontSize(5.5),c.setFont("helvetica","bold"),c.setTextColor(120,145,175),c.text("YOUR RESULT",u+28+2,14,{align:"center"}),c.setFontSize(n.label.length>10?10:14),c.setTextColor(...h),c.text(n.label,u+28+2,31,{align:"center"}),c.setFontSize(6.5),c.setFont("helvetica","normal"),c.setTextColor(215,230,248),c.splitTextToSize(n.sublabel,46).forEach((t,e)=>{c.text(t,u+28+2,39+4*e,{align:"center"})}),d.y=67,d.text(`${n.label} — ${a.name}`,{color:r.nd,size:14,style:"bold"}),d.y+=3,d.text(a.description,{color:r.DR}),d.y+=4,(0,r.c7)(c,d,s.ZZ,n.markerPercent,h);for(let e of(d.sectionHeading("Our program profile"),t.sectionScores)){if(null===e.score)continue;let o=e.id===t.weakestSection;d.ensureSpace(16),(0,r.Tp)(c,d,{barWidth:r.Lp-36,emphasis:o,label:`${s.YW[e.id]}${o?" — most headroom":""}`,score:e.score})}for(let t of(d.y+=2,d.sectionHeading("What this means for our organization"),d.text(a.value),d.y+=6,d.sectionHeading(n.whyLabel),d.text("The program characteristics that place you at this maturity level:",{color:r.T,size:8.5,style:"italic"}),d.y+=3,a.indicators))d.bullet(t,void 0,h);for(let t of(d.y+=4,d.sectionHeading(a.id<5?`Steps to reach Stage ${a.id+1}`:"Sustaining Stage 5 excellence"),a.nextSteps))d.bullet(t.text,t.detail,h);for(let t of(d.y+=4,d.sectionHeading("Risks to manage — and SANS recommendations"),a.watchOuts))d.bullet(t.text,`Recommendation: ${t.recommendation}`,r.Ut);d.y+=6,d.sectionHeading("What's next"),d.text("SANS helps organizations grow and mature their security awareness programs every day. To discuss your results, contact a SANS training advisor at sans.org/about/contact.",{color:r.DR}),d.writeFooters(),c.save("SANS-Maturity-Assessment-Results.pdf")}}}]);

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.