1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},s=(new e.Error).stack;s&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[s]="78070f12-24a5-4ccd-a726-b00e5135b3c2",e._sentryDebugIdIdentifier="sentry-dbid-78070f12-24a5-4ccd-a726-b00e5135b3c2")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[301],{66230:(e,s,t)=>{Promise.resolve().then(t.t.bind(t,98500,23)),Promise.resolve().then(t.bind(t,66598))},66598:(e,s,t)=>{"use strict";t.d(s,{ATSScannerLeadsAnalytics:()=>j});var a=t(95155),r=t(1728),l=t(68444),n=t(28408),i=t(32539),d=t(59656),c=t(65671),o=t(53459),x=t(97700),m=t(48035),h=t(54945),p=t(80865),g=t(53201),u=t(67389);let y={"80-100":"#10b981","60-79":"#3b82f6","40-59":"#f59e0b","20-39":"#ef4444","0-19":"#6b7280"},f={backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"8px",fontSize:"12px",padding:"8px 12px",boxShadow:"0 2px 8px rgba(0,0,0,0.05)"};function b(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function j(e){let{leadsByDay:s,avgScoreByDay:t,topMissingKeywords:j,scoreDistribution:N,topEmails:v,topJobUrls:w}=e,k=new Map;for(let e of s)k.set(e.day,{day:e.day,total:e.total,unique:e.unique,avg_score:null});for(let e of t){let s=k.get(e.day);s?s.avg_score=e.avg_score:k.set(e.day,{day:e.day,total:0,unique:0,avg_score:e.avg_score})}let S=Array.from(k.values()).sort((e,s)=>e.day.localeCompare(s.day)).map(e=>({date:new Date(e.day).toLocaleDateString("en-US",{month:"short",day:"numeric"}),Scans:e.total,"Unique leads":e.unique,"Avg score":null!==e.avg_score?Math.round(e.avg_score):null})),_=j.slice(0,10).map(e=>({name:e.keyword.replace(/_/g," "),count:e.count})),L=["80-100","60-79","40-59","20-39","0-19"].map(e=>{var s;return{name:e,value:(null==(s=N.find(s=>s.range===e))?void 0:s.count)||0}}).filter(e=>e.value>0),D=L.reduce((e,s)=>e+s.value,0);return(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6",children:[(0,a.jsxs)("div",{className:"mb-4 flex items-start justify-between",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-gray-900",children:"Volume & Quality Over Time"}),(0,a.jsx)("p",{className:"mt-0.5 text-xs text-gray-400",children:"Daily scan volume vs. avg ATS score â does quality scale with volume?"})]}),(0,a.jsxs)("div",{className:"flex flex-wrap gap-2 text-[11px] font-medium",children:[(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-gray-500",children:[(0,a.jsx)("span",{className:"h-2 w-2 rounded-full bg-blue-500"}),"Scans"]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-gray-500",children:[(0,a.jsx)("span",{className:"h-2 w-2 rounded-full bg-purple-500"}),"Unique leads"]}),(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-gray-500",children:[(0,a.jsx)("span",{className:"h-2 w-2 rounded-full bg-amber-500"}),"Avg score"]})]})]}),0===S.length?(0,a.jsx)("div",{className:"py-12 text-center text-sm text-gray-400",children:"No data in this range"}):(0,a.jsx)(r.u,{width:"100%",height:320,children:(0,a.jsxs)(l.X,{data:S,margin:{top:10,right:24,left:0,bottom:0},children:[(0,a.jsx)("defs",{children:(0,a.jsxs)("linearGradient",{id:"scansGrad",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,a.jsx)("stop",{offset:"0%",stopColor:"#3b82f6",stopOpacity:.25}),(0,a.jsx)("stop",{offset:"100%",stopColor:"#3b82f6",stopOpacity:0})]})}),(0,a.jsx)(n.d,{strokeDasharray:"3 3",stroke:"#f1f5f9",vertical:!1}),(0,a.jsx)(i.W,{dataKey:"date",stroke:"#94a3b8",fontSize:11,tickLine:!1,axisLine:!1}),(0,a.jsx)(d.h,{yAxisId:"left",stroke:"#94a3b8",fontSize:11,tickLine:!1,axisLine:!1,allowDecimals:!1}),(0,a.jsx)(d.h,{yAxisId:"right",orientation:"right",stroke:"#94a3b8",fontSize:11,tickLine:!1,axisLine:!1,domain:[0,100],tickFormatter:e=>`${e}`}),(0,a.jsx)(c.m,{contentStyle:f}),(0,a.jsx)(o.Gk,{yAxisId:"left",type:"monotone",dataKey:"Scans",stroke:"#3b82f6",strokeWidth:2,fill:"url(#scansGrad)"}),(0,a.jsx)(x.N1,{yAxisId:"left",type:"monotone",dataKey:"Unique leads",stroke:"#8b5cf6",strokeWidth:2,dot:!1}),(0,a.jsx)(x.N1,{yAxisId:"right",type:"monotone",dataKey:"Avg score",stroke:"#f59e0b",strokeWidth:2,strokeDasharray:"4 3",dot:{fill:"#f59e0b",r:3}})]})})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6",children:[(0,a.jsx)("h2",{className:"mb-1 text-sm font-semibold text-gray-900",children:"Most Missing Keywords"}),(0,a.jsx)("p",{className:"mb-4 text-xs text-gray-400",children:"Skills/terms ATS would have flagged \xb7 top 10"}),0===_.length?(0,a.jsx)("div",{className:"py-12 text-center text-sm text-gray-400",children:"No data"}):(0,a.jsx)(r.u,{width:"100%",height:300,children:(0,a.jsxs)(m.E,{data:_,layout:"vertical",margin:{top:0,right:16,left:8,bottom:0},children:[(0,a.jsx)(n.d,{strokeDasharray:"3 3",stroke:"#f1f5f9",horizontal:!1}),(0,a.jsx)(i.W,{type:"number",stroke:"#94a3b8",fontSize:11,tickLine:!1,axisLine
1:!1,allowDecimals:!1}),(0,a.jsx)(d.h,{dataKey:"name",type:"category",stroke:"#475569",fontSize:11,width:120,tickLine:!1,axisLine:!1}),(0,a.jsx)(c.m,{contentStyle:f,cursor:{fill:"rgba(239,68,68,0.05)"}}),(0,a.jsx)(h.yP,{dataKey:"count",fill:"#ef4444",radius:[0,6,6,0]})]})})]}),(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6",children:[(0,a.jsx)("h2",{className:"mb-1 text-sm font-semibold text-gray-900",children:"Score Distribution"}),(0,a.jsxs)("p",{className:"mb-4 text-xs text-gray-400",children:["How candidates score \xb7 ",D.toLocaleString()," scans"]}),0===L.length?(0,a.jsx)("div",{className:"py-12 text-center text-sm text-gray-400",children:"No data"}):(0,a.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2",children:[(0,a.jsx)(r.u,{width:"100%",height:220,children:(0,a.jsxs)(p.r,{children:[(0,a.jsx)(g.Fq,{data:L,cx:"50%",cy:"50%",innerRadius:50,outerRadius:90,paddingAngle:2,dataKey:"value",children:L.map(e=>(0,a.jsx)(u.f,{fill:y[e.name]},`cell-${e.name}`))}),(0,a.jsx)(c.m,{contentStyle:f})]})}),(0,a.jsx)("div",{className:"flex flex-col justify-center gap-2",children:L.map(e=>{let s=D>0?Math.round(e.value/D*100):0;return(0,a.jsxs)("div",{className:"flex items-center gap-2",children:[(0,a.jsx)("span",{className:"h-2.5 w-2.5 rounded-full",style:{background:y[e.name]}}),(0,a.jsx)("span",{className:"text-xs font-medium text-gray-700",children:e.name}),(0,a.jsxs)("span",{className:"ml-auto text-xs",children:[(0,a.jsx)("span",{className:"font-bold text-gray-900",children:e.value}),(0,a.jsxs)("span",{className:"ml-1.5 text-gray-400",children:["(",s,"%)"]})]})]},e.name)})})]})]})]}),v&&v.length>0&&(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6",children:[(0,a.jsx)("div",{className:"mb-4 flex items-start justify-between",children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-sm font-semibold text-gray-900",children:"Top Scanners"}),(0,a.jsx)("p",{className:"mt-0.5 text-xs text-gray-400",children:"Most active emails \xb7 grouped by normalized email"})]})}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full text-sm",children:[(0,a.jsx)("thead",{children:(0,a.jsx)("tr",{className:"border-b border-gray-100 bg-gray-50/50",children:["#","Email","Scans","Avg Score","First â Last","Status"].map(e=>(0,a.jsx)("th",{className:"px-3 py-2.5 text-left text-[10px] font-semibold uppercase tracking-widest text-gray-400",children:e},e))})}),(0,a.jsx)("tbody",{className:"divide-y divide-gray-50",children:v.map((e,s)=>(0,a.jsxs)("tr",{className:"transition-colors hover:bg-blue-50/20",children:[(0,a.jsxs)("td",{className:"px-3 py-2.5 text-xs font-bold text-gray-400",children:["#",s+1]}),(0,a.jsx)("td",{className:"px-3 py-2.5",children:(0,a.jsx)("p",{className:"max-w-[220px] truncate text-xs font-medium text-gray-800",children:e.email})}),(0,a.jsx)("td",{className:"px-3 py-2.5",children:(0,a.jsx)("span",{className:"rounded-full bg-blue-50 px-2 py-0.5 text-[11px] font-bold text-blue-700",children:e.scans})}),(0,a.jsx)("td",{className:"px-3 py-2.5 text-xs",children:(0,a.jsx)("span",{className:`font-bold ${e.avgScore>=70?"text-emerald-600":e.avgScore>=45?"text-amber-600":"text-red-500"}`,children:Math.round(e.avgScore)})}),(0,a.jsxs)("td",{className:"px-3 py-2.5 text-[11px] text-gray-500",children:[b(e.firstScan),e.firstScan!==e.lastScan&&(0,a.jsxs)(a.Fragment,{children:[" â ",(0,a.jsx)("span",{className:"text-gray-700",children:b(e.lastScan)})]})]}),(0,a.jsx)("td",{className:"px-3 py-2.5",children:e.converted?(0,a.jsx)("span",{className:"rounded-full bg-emerald-50 px-2 py-0.5 text-[10px] font-bold text-emerald-700",children:"â Converted"}):(0,a.jsx)("span",{className:"rounded-full bg-gray-100 px-2 py-0.5 text-[10px] font-semibold text-gray-500",children:"Lead"})})]},e.normalizedEmail))})]})})]}),w&&w.length>0&&(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 sm:p-6",children:[(0,a.jsx)("h2",{className:"mb-1 text-sm font-semibold text-gray-900",children:"Most Scanned Job Postings"}),(0,a.jsx)("p",{className:"mb-4 text-xs text-gray-400",children:"Where users are sourcing the JDs they paste in"}),(0,a.jsx)("div",{className:"space-y-2",children:w.map((e,s)=>(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-gray-100 bg-gray-50/50 px-3 py-2.5 transition-colors hover:border-gray-200",children:[(0,a.jsx)("span",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-white text-[11px] font-bold text-gray-500",children:s+1}),(0,a.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"flex-1 truncate text-xs text-blue-600 hover:underline",title:e.url,children:function(e){try{let s=new URL(e),t=s.pathname.length>30?s.pathname.slice(0,30)+"â¦":s.pathname;return s.hostname+t}catch{return e.length>60?e.slice(0,60)+"â¦":e}}(e.url)}),(0,a.jsxs)("span",{className:"shrink-0 rounded-full bg-blue-50 px-2 py-0.5 text-[11px] font-bold text-blue-700",children:[e.count," scan",e.count>1?"s":""]})]},`${e.url}-${s}`))})]})]})}}},e=>{e.O(0,[8500,5e3,2234,1386,8441,6582,7358],()=>e(e.s=66230)),_N_E=e.O()}]);
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.