1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1254],{21254:(e,t,s)=>{s.r(t),s.d(t,{default:()=>D});var a=s(95155),l=s(12115),r=s(21873),n=s(39347),i=s(93499),c=s(61362),o=s(71847);let d=(0,o.A)("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);var x=s(91169);let m=(0,o.A)("activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]),h=(0,o.A)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]]);var p=s(19408),g=s(39068);let u=(0,o.A)("chart-pie",[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]]);var b=s(80534),f=s(29633),j=s(95740);let y=(0,o.A)("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);var v=s(1524),N=s(30814),w=s(56154),k=s(35299),S=s(6132),C=s(38707),A=s(6081);function M(e){return e>=75?"bg-emerald-500":e>=55?"bg-teal-500":e>=35?"bg-amber-400":"bg-gray-300"}let T={queued:"Queued",planning:"Planning queriesâ¦",searching:"Searching the webâ¦",extracting:"Extracting profilesâ¦",ranking:"Ranking candidatesâ¦",aggregating:"Building insightsâ¦",completed:"Completed",failed:"Failed"},q=[{label:"Excellent fit",min:75,max:100,color:"bg-emerald-500",light:"bg-emerald-50",border:"border-emerald-200",text:"text-emerald-700"},{label:"Strong fit",min:55,max:74,color:"bg-teal-500",light:"bg-teal-50",border:"border-teal-200",text:"text-teal-700"},{label:"Moderate fit",min:35,max:54,color:"bg-amber-400",light:"bg-amber-50",border:"border-amber-200",text:"text-amber-700"},{label:"Low fit",min:0,max:34,color:"bg-gray-300",light:"bg-gray-50",border:"border-gray-200",text:"text-gray-600"}];function E(e){let{percent:t,stage:s}=e;return(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs text-gray-500",children:[(0,a.jsx)("span",{children:T[s]||s}),(0,a.jsxs)("span",{children:[t,"%"]})]}),(0,a.jsx)("div",{className:"h-2 w-full rounded-full bg-gray-100",children:(0,a.jsx)("div",{className:"h-2 rounded-full bg-teal-500 transition-all duration-700",style:{width:"".concat(t,"%")}})})]})}function R(e){let{icon:t,title:s,subtitle:l,children:r,accent:n=!1}=e;return(0,a.jsxs)("div",{className:"rounded-2xl border bg-white shadow-sm ".concat(n?"border-teal-200":"border-gray-100"),children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 border-b px-5 py-4 ".concat(n?"border-teal-100 bg-teal-50/50":"border-gray-50"),children:[(0,a.jsx)("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-lg ".concat(n?"bg-teal-600":"bg-teal-50"),children:(0,a.jsx)(t,{className:"h-4 w-4 ".concat(n?"text-white":"text-teal-600")})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-semibold text-gray-900",children:s}),l&&(0,a.jsx)("p",{className:"text-xs text-gray-500 mt-0.5",children:l})]})]}),(0,a.jsx)("div",{className:"px-5 py-4",children:r})]})}function L(e){let{label:t,count:s,max:l,pct:r,rank:n}=e;return(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[n&&(0,a.jsx)("span",{className:"shrink-0 flex h-4 w-4 items-center justify-center rounded-full bg-gray-100 text-[10px] font-bold text-gray-500",children:n}),(0,a.jsx)("span",{className:"truncate text-gray-700 max-w-[60%]",children:t})]}),(0,a.jsxs)("span",{className:"text-gray-400 shrink-0",children:[s,void 0!==r?" \xb7 ".concat(r,"%"):""]})]}),(0,a.jsx)("div",{className:"h-1.5 w-full rounded-full bg-gray-100",children:(0,a.jsx)("div",{className:"h-1.5 rounded-full bg-teal-400 transition-all",style:{width:"".concat(Math.round(s/(l||1)*100),"%")}})})]})}function P(e){let{icon:t,label:s,value:l,sub:r,colorClass:n="bg-teal-50",iconColor:i="text-teal-600"}=e;return(0,a.jsxs)("div",{className:"rounded-2xl border border-gray-100 bg-white p-4 shadow-sm",children:[(0,a.jsx)("div",{className:"flex items-center gap-2 mb-2",children:(0,a.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-xl ".concat(n),children:(0,a.jsx)(t,{className:"h-4 w-4 ".concat(i)})})}),(0,a.jsx)("p",{className:"text-2xl font-bold text-gray-900",children:l}),(0,a.jsx)("p",{className:"mt-0.5 text-xs font-medium text-gray-500",children:s}),r&&(0,a.jsx)("p",{className:"mt-1 text-xs text-gray-400",children:r})]})}function _(e){let{candidate:t,isSelected:s,onSelect:l}=e;return(0,a.jsx)("div",{role:"button",tabIndex:0,onClick:()=>l(t._id),onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&l(t._id)},className:"w-full rounded-xl border p-4 text-left cursor-pointer transition-all ".concat(s?"border-teal-500 bg-teal-50 shadow-sm":"border-gray-200 bg-white hover:border-teal-300 hover:bg-teal-50/40"),children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl text-xs font-bold text-white ".concat(M(t.finalScore)),children:t.finalScore||"â"}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"truncate text-sm font-semibold text-gray-900",children:t.name||"Profile found"}),(0,a.jsx)("p",{className:"truncate text-xs text-gray-500 mt-0.5",children:[t.currentRole,t.currentCompany].filter(
1Boolean).join(" \xb7 ")||t.headline}),t.location&&(0,a.jsxs)("p",{className:"text-xs text-gray-400 mt-0.5 flex items-center gap-1",children:[(0,a.jsx)(r.A,{className:"h-3 w-3 shrink-0"}),t.location]})]}),t.shortlisted&&(0,a.jsx)(n.A,{className:"h-4 w-4 shrink-0 text-amber-400 fill-amber-400"})]})})}function F(e){var t,s,l,o;let{candidate:d,onShortlist:x,shortlisting:m}=e;return d?(0,a.jsxs)("div",{className:"space-y-5",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-base font-semibold text-gray-900",children:d.name||"Profile found"}),(0,a.jsx)("p",{className:"text-sm text-gray-600 mt-0.5",children:[d.currentRole,d.currentCompany].filter(Boolean).join(" at ")||d.headline}),d.location&&(0,a.jsxs)("p",{className:"text-xs text-gray-400 mt-1 flex items-center gap-1",children:[(0,a.jsx)(r.A,{className:"h-3 w-3"})," ",d.location]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[(0,a.jsx)("span",{className:"rounded-xl border px-3 py-1 text-sm font-bold ".concat((o=d.finalScore)>=75?"text-emerald-700 bg-emerald-50 border-emerald-200":o>=55?"text-teal-700 bg-teal-50 border-teal-200":o>=35?"text-amber-700 bg-amber-50 border-amber-200":"text-gray-600 bg-gray-100 border-gray-200"),children:d.finalScore||0}),d.canonicalProfileUrl&&(0,a.jsxs)("a",{href:d.canonicalProfileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 rounded-xl border border-gray-200 px-3 py-1 text-xs font-medium text-gray-600 hover:bg-gray-50 transition-colors",onClick:e=>e.stopPropagation(),children:[(0,a.jsx)(i.A,{className:"h-3.5 w-3.5"})," LinkedIn"]}),d.shortlisted?(0,a.jsxs)("span",{className:"flex items-center gap-1 rounded-xl bg-amber-50 border border-amber-200 px-3 py-1 text-xs font-semibold text-amber-700",children:[(0,a.jsx)(n.A,{className:"h-3.5 w-3.5 fill-amber-400"})," Shortlisted"]}):(0,a.jsxs)("button",{onClick:x,disabled:m,className:"flex items-center gap-1.5 rounded-xl bg-amber-50 border border-amber-200 px-3 py-1 text-xs font-semibold text-amber-700 hover:bg-amber-100 disabled:opacity-50 transition-colors",children:[(0,a.jsx)(n.A,{className:"h-3.5 w-3.5"}),m?"Savingâ¦":"Shortlist"]})]})]}),d.fitSummary&&(0,a.jsx)("div",{className:"rounded-xl bg-teal-50 border border-teal-100 px-4 py-3 text-sm text-teal-800",children:d.fitSummary}),(null==(t=d.matchedSkills)?void 0:t.length)>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2",children:"Matched skills"}),(0,a.jsx)("div",{className:"flex flex-wrap gap-1.5",children:d.matchedSkills.map(e=>(0,a.jsx)("span",{className:"rounded-full bg-teal-50 border border-teal-100 px-2.5 py-0.5 text-xs font-medium text-teal-700",children:e},e))})]}),(null==(s=d.evidence)?void 0:s.length)>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2",children:"Evidence"}),(0,a.jsx)("ul",{className:"space-y-1.5",children:d.evidence.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-2 text-sm text-gray-600",children:[(0,a.jsx)(c.A,{className:"h-3.5 w-3.5 shrink-0 mt-0.5 text-teal-500"}),e]},t))})]}),d.outreachAngle&&(0,a.jsxs)("div",{className:"rounded-xl bg-gray-50 border border-gray-100 px-4 py-3",children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-1",children:"Outreach angle"}),(0,a.jsx)("p",{className:"text-sm text-gray-700",children:d.outreachAngle})]}),(null==(l=d.experiences)?void 0:l.length)>0&&(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-xs font-semibold text-gray-500 uppercase tracking-wide mb-2",children:"Experience"}),(0,a.jsx)("div",{className:"space-y-2",children:d.experiences.slice(0,4).map((e,t)=>(0,a.jsxs)("div",{className:"rounded-xl border border-gray-100 bg-white px-4 py-3",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-900",children:e.title}),e.company&&(0,a.jsxs)("p",{className:"text-xs text-gray-500 mt-0.5",children:[e.company,e.duration?" \xb7 ".concat(e.duration):""]})]},t))})]})]}):null}function z(e){var t,s,c,o,k,S,C,A,T,E,_,F,z,D,I,B,H,U,V,Y,G;let{map:O,candidates:W}=e,[Q,J]=(0,l.useState)(null),K=O.insights||{},X=W.length,Z=new Set(W.map(e=>
1e.currentCompany).filter(Boolean)).size,$=new Set(W.map(e=>e.location).filter(Boolean)).size,ee=W.filter(e=>e.shortlisted).length,et=q.map(e=>({...e,count:W.filter(t=>(t.finalScore||0)>=e.min&&(t.finalScore||0)<=e.max).length})),es=X>0?Math.round(et[0].count/X*100):0,ea=X>0?Math.round((et[0].count+et[1].count)/X*100):0,el={};W.forEach(e=>{e.currentRole&&(el[e.currentRole]=(el[e.currentRole]||0)+1)});let er=Object.entries(el).sort((e,t)=>t[1]-e[1]).slice(0,8).map(e=>{let[t,s]=e;return{name:t,count:s}}),en=(null==(t=er[0])?void 0:t.count)||1,ei=(null==(c=K.topCompanies)||null==(s=c[0])?void 0:s.count)||1,ec=(null==(k=K.topLocations)||null==(o=k[0])?void 0:o.count)||1,eo=Math.max(...(null==(S=K.seniorityDistribution)?void 0:S.map(e=>e.count))||[1]),ed=(null==(C=O.roleSpec)?void 0:C.searchRegion)||(null==(A=O.roleSpec)?void 0:A.searchCountry)||"the target market",ex=(null==(T=O.roleSpec)?void 0:T.roleName)||"this role",em=(null==(E=O.summary)?void 0:E.averageScore)||0,eh=null==(F=K.topCompanies)||null==(_=F[0])?void 0:_.name,ep=null==(D=K.topSkills)||null==(z=D[0])?void 0:z.skill;return(0,a.jsxs)("div",{className:"space-y-6 p-6",children:[(0,a.jsxs)("div",{className:"rounded-2xl border border-teal-200 bg-gradient-to-br from-teal-50 to-emerald-50 p-5",children:[(0,a.jsxs)("div",{className:"flex items-start gap-3 mb-3",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-xl bg-teal-600",children:(0,a.jsx)(d,{className:"h-4 w-4 text-white"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h3",{className:"text-sm font-bold text-gray-900",children:"Executive Summary"}),(0,a.jsxs)("p",{className:"text-xs text-teal-700 mt-0.5",children:["Talent landscape overview for ",ex]})]})]}),(0,a.jsxs)("p",{className:"text-sm text-gray-700 leading-relaxed",children:["This talent map surfaced ",(0,a.jsxs)("strong",{children:[X," candidate profiles"]})," for the ",(0,a.jsx)("strong",{children:ex})," role","the target market"!==ed?" in ".concat(ed):"",". The available talent pool demonstrates"," ",(0,a.jsxs)("strong",{children:[em>=65?"strong":em>=45?"moderate":"limited"," market depth"]})," with an average fit score of ",(0,a.jsxs)("strong",{children:[em,"/100"]}),"."," ",es>0&&(0,a.jsxs)(a.Fragment,{children:[es,"% of profiles scored as excellent fits, indicating"," ",es>=20?"a healthy supply of top-tier candidates":"a selective but quality talent pool",". "]}),eh&&(0,a.jsxs)(a.Fragment,{children:["The strongest talent concentration is at ",(0,a.jsx)("strong",{children:eh}),". "]}),ep&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:ep})," is the most prevalent skill across mapped profiles."]})]}),ea>0&&(0,a.jsxs)("div",{className:"mt-3 flex items-center gap-2",children:[(0,a.jsx)("div",{className:"h-2 flex-1 rounded-full bg-white/60 overflow-hidden",children:(0,a.jsx)("div",{className:"h-2 rounded-full bg-teal-500",style:{width:"".concat(ea,"%")}})}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-teal-700 shrink-0",children:[ea,"% strong or excellent fit"]})]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-6 gap-3",children:[(0,a.jsx)(P,{icon:x.A,label:"Profiles mapped",value:X,colorClass:"bg-teal-50",iconColor:"text-teal-600"}),(0,a.jsx)(P,{icon:m,label:"Avg. fit score",value:"".concat(em,"/100"),colorClass:"bg-blue-50",iconColor:"text-blue-600"}),(0,a.jsx)(P,{icon:h,label:"Top score",value:(null==(I=O.summary)?void 0:I.highestScore)||0,colorClass:"bg-emerald-50",iconColor:"text-emerald-600"}),(0,a.jsx)(P,{icon:p.A,label:"Companies",value:Z,colorClass:"bg-purple-50",iconColor:"text-purple-600",sub:"unique employers"}),(0,a.jsx)(P,{icon:g.A,label:"Locations",value:$,colorClass:"bg-orange-50",iconColor:"text-orange-600",sub:"distinct cities"}),(0,a.jsx)(P,{icon:n.A,label:"Shortlisted",value:ee,colorClass:"bg-amber-50",iconColor:"text-amber-600"})]}),(0,a.jsxs)(R,{icon:u,title:"Talent Quality Distribution",subtitle:"Fit score breakdown across the mapped talent pool",children:[(0,a.jsx)("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3 mb-4",children:et.map(e=>(0,a.jsxs)("div",{className:"rounded-xl border ".concat(e.border," ").concat(e.light," p-3 text-center"),children:[(0,a.jsx)("p",{className:"text-xl font-bold ".concat(e.text),children:e.count}),(0,a.jsx)("p",{className:"text-xs font-medium ".concat(e.text," mt-0.5"),children:e.label}),(0,a.jsxs)("p",{className:"text-xs text-gray-400 mt-0.5",children:[X>0?Math.round(e.count/X*100):0,"%"]})]},e.label))}),(0,a.jsx)("div",{className:"flex h-3 w-full rounded-full overflow-hidden gap-px",children:et.map(e=>e.count>0&&(0,a.jsx)("div",{className:"".concat(e.color," transition-all"),style:{width:"".concat(X>0?e.count/X*100:0,"%")},title:"".concat(e.label,": ").concat(e.count)},e.label))}),(0,a.jsx)("div",{className:"mt-2 flex flex-wrap gap-3",children:et.map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-1.5 text-xs text-gray-500",children:[(0,a.jsx)("div",{className:"h-2.5 w-2.5 rounded-sm ".concat(e.color)}),e.label," (score ",e.min,"â",e.max,")"]},e.label))})]}),(0,a.jsxs)("div",{className:"grid gap-5 lg:grid-cols-2",children:[(null==(B=K.topCompanies)?void 0:B.length)>0&&(0,a.jsxs)(R,{icon:p.A,title:"Talent Concentration by Employer",subtitle:"Where mapped candidates currently work",children:[(0,a.jsx)("div",{className:"space-y-3",children:K.topCompanies.slice(0,10).map((e,t)=>(0,a.jsx)(L,{label:e.name,count:e.count,max:ei,rank:t+1},e.name))}),K.topCompanies.length>3&&(0,a.jsxs)("p",{className:"mt-3 text-xs text-gray-400",children:["Talent is spread across ",(0,a.jsx)("strong",{className:"text-gray-600",children:K.topCompanies.length})," companies.",K.topCompanies[0]&&" ".concat(K.topCompanies[0].name," is the primary talent source.")]})]}),(null==(H=K.topLocations)?void 0:H.length)>0&&(0,a.jsxs)(R,{icon:r.A,title:"Geographic Distribution",subtitle:"Location spread of mapped talent",children:[(0,a.jsx)("div",{className:"space-y-3",children:K.topLocations.slice(0,10).map((e,t)=>(0,a.jsx)(L,{label:e.name,count:e.count,max:ec,rank:t+1},e.name))}),(0,a.jsxs)("p",{className:"mt-3 text-xs text-gray-400",children:["Talent spans ",(0,a.jsx)("strong",{className:"text-gray-600",children:$})," distinct locations.",K.topLocations[0]&&" Highest concentration in ".concat(K.topLocations[0].name,".")]})]}),(null==(U=K.seniorityDistribution)?void 0:U.length)>0&&(0,a.jsxs)(R,{icon:b.A,title:"Seniority Distribution",subtitle:"Career level breakdown of the talent pool",children:[(0,a.jsx)("div",{className:"space-y-3",children:K.seniorityDistribution.map(e=>(0,a.jsx)(L,{label:e.level,count:e.count,max:eo,pct:e.percentage},e.level))}),(0,a.jsx)("div",{className:"mt-4 rounded-xl bg-gray-50 px-4 py-3 text-xs text-gray-600",children:(()=>{let e=K.seniorityDistribution.find(e=>{var t;return["senior","director","executive"].includes(null==(t=e.level)?void 0:t.toLowerCase())}),t=K.seniorityDistribution.find(e=>{var t;return["entry","junior","internship"].includes(null==(t=e.level)?void 0:t.toLowerCase())});return e&&e.percentage>=40?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Senior-heavy pool"}
1)," â ",e.percentage,"% at senior+ level. Consider competitive compensation benchmarks."]}):t&&t.percentage>=40?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Junior-heavy pool"})," â ",t.percentage,"% at entry level. Strong pipeline for growth hiring."]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Balanced seniority mix"})," â good spread across career levels for progressive hiring."]})})()})]}),er.length>0&&(0,a.jsxs)(R,{icon:f.A,title:"Current Role Distribution",subtitle:"What titles candidates currently hold",children:[(0,a.jsx)("div",{className:"space-y-3",children:er.map((e,t)=>(0,a.jsx)(L,{label:e.name,count:e.count,max:en,rank:t+1},e.name))}),(0,a.jsx)("p",{className:"mt-3 text-xs text-gray-400",children:"Reveals adjacent roles and career paths talent is transitioning from."})]})]}),(null==(V=K.topSkills)?void 0:V.length)>0&&(0,a.jsxs)(R,{icon:j.A,title:"Skills Intelligence",subtitle:"Top skills across ".concat(X," mapped profiles â frequency indicates market prevalence"),children:[(0,a.jsx)("div",{className:"flex flex-wrap gap-2 mb-4",children:K.topSkills.slice(0,20).map((e,t)=>(0,a.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-teal-50 border border-teal-100 ".concat(t<3?"text-sm px-3 py-1.5":t<8?"text-xs px-2.5 py-1":"text-xs px-2 py-0.5"," ").concat(t<3?"font-semibold":"font-medium"," text-teal-700"),title:"".concat(e.count," candidates \xb7 ").concat(e.percentage,"%"),children:[e.skill,(0,a.jsxs)("span",{className:"text-teal-400 text-[10px]",children:[e.percentage,"%"]})]},e.skill))}),K.topSkills.length>=3&&(0,a.jsxs)("div",{className:"rounded-xl bg-blue-50 border border-blue-100 px-4 py-3 text-xs text-blue-800",children:[(0,a.jsx)("strong",{children:"Skills insight:"})," ",K.topSkills[0].skill,", ",null==(Y=K.topSkills[1])?void 0:Y.skill,K.topSkills[2]?", and ".concat(K.topSkills[2].skill):""," appear in the majority of strong profiles â consider these as minimum requirements or strong indicators of fit when screening applicants."]})]}),(0,a.jsx)(R,{icon:y,title:"Market Intelligence & Hiring Recommendations",subtitle:"Strategic insights derived from the talent map",accent:!0,children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"rounded-xl border border-gray-100 bg-white p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(v.A,{className:"h-4 w-4 text-teal-600"}),(0,a.jsx)("p",{className:"text-xs font-bold text-gray-900 uppercase tracking-wide",children:"Talent Supply Signal"})]}),(0,a.jsx)("p",{className:"text-sm text-gray-700",children:X>=40?"The talent pool is <strong>robust (".concat(X," profiles)</strong>. You have strong negotiating leverage and a wide selection to work from. Consider focusing shortlisting on Excellent and Strong fit profiles."):X>=20?"The talent pool is <strong>adequate (".concat(X," profiles)</strong>. Sufficient candidates for a quality hire. Prioritise speed â top profiles in this range receive multiple offers."):"The talent pool is <strong>thin (".concat(X," profiles)</strong>. Expand your search parameters â consider adjacent roles, a broader geography, or relaxing seniority requirements.")})]}),(null==(G=K.topCompanies)?void 0:G.length)>0&&(0,a.jsxs)("div",{className:"rounded-xl border border-gray-100 bg-white p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(N.A,{className:"h-4 w-4 text-purple-600"}),(0,a.jsx)("p",{className:"text-xs font-bold text-gray-900 uppercase tracking-wide",children:"Sourcing Strategy"})]}),(0,a.jsxs)("p",{className:"text-sm text-gray-700",children:["Target outreach at employees from"," ",(0,a.jsx)("strong",{children:K.topCompanies.slice(0,3).map(e=>e.name).join(", ")})," â these represent your highest-density talent sources. Alumni networks, LinkedIn company filters, and warm introductions from these firms will yield the highest ROI on sourcing effort."]})]}),(0,a.jsxs)("div",{className:"rounded-xl border border-gray-100 bg-white p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(w.A,{className:"h-4 w-4 text-amber-600"}),(0,a.jsx)("p",{className:"text-xs font-bold text-gray-900 uppercase tracking-wide",children:"Engagement Guidance"})]}),(0,a.jsx)("p",{className:"text-sm text-gray-700",children:em>=65?"With ".concat(es,"% excellent-fit profiles, you can be selective. Lead outreach with role-specific value propositions and focus on candidates open to new opportunities. Personalised messaging referencing their specific background will significantly improve response rates."):"The available talent pool requires targeted outreach. Focus on candidates in the Excellent and Strong fit tiers (".concat(et[0].count+et[1].count," profiles). Use the outreach angles provided on individual profiles for personalised first contact.")})]}),0===ee&&et[0].count>0&&(0,a.jsxs)("div",{className:"rounded-xl border border-emerald-100 bg-emerald-50 p-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 mb-2",children:[(0,a.jsx)(n.A,{className:"h-4 w-4 text-emerald-600"}),(0,a.jsx)("p",{className:"text-xs font-bold text-emerald-900 uppercase tracking-wide",children:"Next Step"})]}),(0,a.jsxs)("p",{className:"text-sm text-emerald-800",children:["You have ",(0,a.jsxs)("strong",{children:[et[0].count," excellent-fit profiles"]})," not yet shortlisted. Switch to the Candidates tab, sort by score, and shortlist your top picks to begin outreach."]})]})]})}),ee>0&&(0,a.jsx)(R,{icon:n.A,title:"Shortlisted Candidates (".concat(ee,")"),subtitle:"Candidates flagged for outreach",children:(0,a.jsx)("div",{className:"space-y-3",children:W.filter(e=>e.shortlisted).map(e=>(0,a.jsxs)("div",{className:"flex items-center gap-3 rounded-xl border border-amber-100 bg-amber-50/50 px-4 py-3",children:[(0,a.jsx)("div",{className:"flex h-8 w-8 shrink-0 items-center justify-center rounded-lg text-xs font-bold text-white ".concat(M(e.finalScore)),children:e.finalScore||"â"}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900 truncate",children:e.name||"Profile"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 truncate",children:[e.currentRole,e.currentCompany].filter(
1Boolean).join(" \xb7 ")})]}),e.canonicalProfileUrl&&(0,a.jsxs)("a",{href:e.canonicalProfileUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 rounded-lg border border-gray-200 bg-white px-2.5 py-1 text-xs font-medium text-gray-600 hover:bg-gray-50 transition-colors shrink-0",children:[(0,a.jsx)(i.A,{className:"h-3 w-3"})," View"]})]},e._id))})})]})}function D(e){var t,s,n,i,o,x,m,h,p;let{mapId:g}=e,[u,b]=(0,l.useState)(null),[f,j]=(0,l.useState)(!0),[y,v]=(0,l.useState)(null),[N,w]=(0,l.useState)(!1),[M,q]=(0,l.useState)("insights"),R=(0,l.useRef)(null),L=(0,l.useCallback)(async()=>{if(g)try{let e=await (0,A.uY)("/talent-map/".concat(g));b(e)}catch(e){}finally{j(!1)}},[g]);(0,l.useEffect)(()=>{j(!0),b(null),v(null),L()},[g,L]),(0,l.useEffect)(()=>(clearInterval(R.current),((null==u?void 0:u.status)==="queued"||(null==u?void 0:u.status)==="running")&&(R.current=setInterval(L,4e3)),()=>clearInterval(R.current)),[null==u?void 0:u.status,L]);let P=async()=>{if(y&&u){w(!0);try{let e=await (0,A.uY)("/talent-map/".concat(g,"/candidates/").concat(y,"/shortlist"),{method:"PATCH"});b(t=>{var s;return{...t,candidates:t.candidates.map(t=>t._id===y?e.candidate:t),summary:{...t.summary,shortlistedCount:((null==(s=t.summary)?void 0:s.shortlistedCount)||0)+1}}})}catch(e){}finally{w(!1)}}};if(f)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center py-24",children:(0,a.jsx)(k.A,{className:"h-6 w-6 animate-spin text-teal-500"})});if(!u)return(0,a.jsx)("div",{className:"flex h-full items-center justify-center py-24 text-sm text-gray-400",children:"Map not found."});let D="queued"===u.status||"running"===u.status,I="completed"===u.status,B=Array.isArray(u.candidates)?u.candidates:[],H=B.find(e=>e._id===y)||null;return(0,a.jsxs)("div",{className:"flex flex-col h-full",children:[(0,a.jsxs)("div",{className:"border-b border-gray-200 bg-white px-6 py-4",children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h2",{className:"text-base font-semibold text-gray-900",children:u.name}),(0,a.jsxs)("div",{className:"mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-gray-500",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(d,{className:"h-3.5 w-3.5"}),null==(t=u.roleSpec)?void 0:t.roleName]}),(null==(s=u.roleSpec)?void 0:s.seniority)&&"any"!==u.roleSpec.seniority&&(0,a.jsx)("span",{children:u.roleSpec.seniority}),((null==(n=u.roleSpec)?void 0:n.searchCountry)||(null==(i=u.roleSpec)?void 0:i.searchRegion))&&(0,a.jsxs)("span",{className:"flex items-center gap-1",children:[(0,a.jsx)(r.A,{className:"h-3.5 w-3.5"}),[u.roleSpec.searchRegion,u.roleSpec.searchCountry].filter(Boolean).join(", ")]}),(null==(x=u.roleSpec)||null==(o=x.skills)?void 0:o.length)>0&&(0,a.jsxs)("span",{children:[u.roleSpec.skills.slice(0,3).join(", "),u.roleSpec.skills.length>3?" +".concat(u.roleSpec.skills.length-3):""]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-2 shrink-0",children:[D&&(0,a.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-blue-50 border border-blue-200 px-3 py-1 text-xs font-semibold text-blue-600",children:[(0,a.jsx)(k.A,{className:"h-3 w-3 animate-spin"}),T[u.stage]||"Running"]}),I&&(0,a.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-emerald-50 border border-emerald-200 px-3 py-1 text-xs font-semibold text-emerald-600",children:[(0,a.jsx)(c.A,{className:"h-3 w-3"})," Completed"]}),"failed"===u.status&&(0,a.jsxs)("span",{className:"flex items-center gap-1.5 rounded-full bg-red-50 border border-red-200 px-3 py-1 text-xs font-semibold text-red-600",children:[(0,a.jsx)(S.A,{className:"h-3 w-3"})," Failed"]})]})]}),D&&(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsx)(E,{percent:(null==(m=u.progress)?void 0:m.percent)||0,stage:u.stage})}),I&&(0,a.jsx)("div",{className:"mt-4 flex gap-1",children:["insights","candidates"].map(e=>(0,a.jsxs)("button",{onClick:()=>q(e),className:"rounded-lg px-4 py-1.5 text-sm font-medium transition-colors capitalize ".concat(M===e?"bg-teal-600 text-white":"text-gray-500 hover:bg-gray-100"),children:[e,"candidates"===e&&B.length>0&&(0,a.jsx)("span",{className:"ml-1.5 rounded-full px-1.5 py-0.5 text-[11px] ".concat("candidates"===M?"bg-teal-500":"bg-gray-200 text-gray-600"),children:B.length})]},e))})]}),(0,a.jsxs)("div",{className:"flex flex-1 overflow-hidden",children:[D&&(0,a.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-4 py-24 text-center px-6",children:[(0,a.jsx)("div",{className:"flex h-14 w-14 items-center justify-center rounded-2xl bg-teal-50",children:(0,a.jsx)(C.A,{className:"h-7 w-7 text-teal-500"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900",children:"Mapping talentâ¦"}),(0,a.jsx)("p",{className:"mt-1 text-xs text-gray-500",children:(null==(h=u.progress)?void 0:h.discoveredCount)?"".concat(u.progress.discoveredCount," profiles discovered so far"):"Generating search queries"})]})]}),"failed"===u.status&&(0,a.jsxs)("div",{className:"flex flex-1 flex-col items-center justify-center gap-3 py-24 text-center px-6",children:[(0,a.jsx)(S.A,{className:"h-10 w-10 text-red-400"}),(0,a.jsx)("p",{className:"text-sm font-semibold text-gray-900",children:"Map failed"}),(0,a.jsx)("p",{className:"text-xs text-gray-500 max-w-sm",children:(null==(p=u.error)?void 0:p.message)||"An error occurred during mapping."})]}),I&&"insights"===M&&(0,a.jsx)("div",{className:"flex-1 overflow-y-auto",children:(0,a.jsx)(z,{map:u,candidates:B})}),I&&"candidates"===M&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"w-72 shrink-0 overflow-y-auto border-r border-gray-100 bg-white py-3 px-3",children:B.map(e=>(0,a.jsx)(_,{candidate:e,isSelected:y===e._id,onSelect:v},e._id))}),(0,a.jsx)("div",{className:"flex-1 overflow-y-auto p-6",children:H?(0,a.jsx)(F,{candidate:H,onShortlist:P,shortlisting:N}):(0,a.jsx)("div",{className:"flex h-full items-center justify-center text-sm text-gray-400",children:"Select a candidate to see their full profile"})})]})]})]})}},61362:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},80534:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},93499:(e,t,s)=>{s.d(t,{A:()=>a});let a=(0,s(71847).A)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])}}]);
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.