PageSourceSearch

https://app.kitesuite.com/chunk-LOIOUZOW.js

js kitesuite.com collected 2026-09-24 12:58:18 UTC 33,608 bytes, 2 lines download raw bytes

1import{a as ye}from"./chunk-2IY4HM6C.js";import{a as we}from"./chunk-SL2LJ72Z.js";import{G as ke,a as Ee,d as Pe,e as ve,k as fe,v as Ne,w as xe,x as Me,y as Ie}from"./chunk-Q6H3L72M.js";import"./chunk-RGX4V25P.js";import{Fg as Ce,Ra as be,d as Se,kh as Le}from"./chunk-QRVLGQKK.js";import{Ae as ge,Ba as pe,De as Je,Ea as ce,Ee as ue,Fe as Ve,Xa as de,Za as me,oa as re,ta as le}from"./chunk-JIWAKM2T.js";import"./chunk-WKDVIJXK.js";import{$b as g,Aa as b,Ba as E,Cb as T,Db as ne,Dc as f,Eb as I,Ee as he,Fd as z,Fe as Oe,He as Ae,Id as X,Kb as O,Mb as ie,Mc as r,Nb as F,Nc as c,Ob as J,Oc as N,Pb as o,Qa as h,Qb as s,Qd as oe,Rb as C,Vb as k,Vd as se,Zd as Fe,ad as x,bc as u,dd as D,gb as i,he as _e,ka as Ge,le as q,md as ae,me as Te,nc as p,oa as ee,oc as _,pa as j,pc as A,qc as W,r as K,rb as te,sa as P,sb as U,uc as y,vc as w,w as v,wc as B,xb as L}from"./chunk-MYMWKJG6.js";import"./chunk-C6VQXCV6.js";import"./chunk-EHBGTBDH.js";import"./chunk-ZLSUGC56.js";import{a as M,b as Q}from"./chunk-RUSNHN4F.js";X();Te();D();X();me();Te();Ae();Fe();D();Ge();D();var Be=["#5B47E0","#22C55E","#F59E0B","#3B82F6","#EC4899","#6366F1","#0EA5E9"],De=(()=>{class a{constructor(){this.http=P(se),this.base="/api/v1/ats/talent-pool"}list(e={},n={}){if(n.useFixture)return K(this.fixture());let t=new oe;for(let[d,l]of Object.entries(e))l!=null&&l!==""&&(t=t.set(d,String(l)));return this.http.get(this.base,{params:t}).pipe(v(({entries:d,stats:l,insights:$,pagination:V})=>({entries:d,stats:l,insights:$,pagination:V})))}add(e,n={}){return n.useFixture?K({entry:this.fixture().entries[0]}):this.http.post(this.base,e).pipe(v(t=>({entry:t.entry})))}engage(e){return this.http.post(`${this.base}/${encodeURIComponent(e)}/engage`,{}).pipe(v(n=>({entry:n.entry})))}bulkTag(e,n){return this.http.post(`${this.base}/bulk-tag`,{ids:e,tags:n}).pipe(v(t=>({taggedCount:t.taggedCount})))}addToJob(e,n,t="sourced"){return this.http.post(`${this.base}/${encodeURIComponent(e)}/add-to-job`,{jobId:n,stage:t}).pipe(v(d=>({taskId:d.taskId,entry:d.entry})))}moveToJob(e,n,t="sourced"){return this.http.post(`${this.base}/move-to-job`,{ids:e,jobId:n,stage:t}).pipe(v(d=>({addedCount:d.addedCount,skippedCount:d.skippedCount,failedCount:d.failedCount})))}bulkEngage(e){return this.http.post(`${this.base}/engage`,{ids:e}).pipe(v(n=>({engagedCount:n.engagedCount})))}fixture(){let e=(t,d)=>M({id:"tp"+t,taskId:null,initials:d.name.split(/\s+/).slice(0,2).map(l=>l[0]).join("").toUpperCase(),color:Be[t%Be.length],location:"",sourceNote:"",tags:[],addedAgo:"",lastEngagedAgo:"",hot:d.matchScore>80,engaged90d:!1},d),n=[e(3,{name:"Maria Rosales",headline:"Staff Engineer \xB7 ex-Stripe, ex-Coinbase",location:"Remote (LA)",skills:["Distributed systems","Go","Rust","Payments"],source:"inbound",sourceLabel:"Inbound (career page)",sourceNote:"Inbound 6mo ago",matchScore:92}),e(1,{name:"Jonas Chen",headline:"Senior Designer \xB7 ex-Linear \xB7 open to relocation",location:"Berlin",skills:["Product design","Design systems","Motion"],source:"past-finalist",sourceLabel:"Past finalist",sourceNote:"Past finalist \xB7 Senior Designer 2024",matchScore:88}),e(4,{name:"Asha Thakur",headline:"ML Engineer \xB7 ex-Anthropic",location:"Remote (Toronto)",skills:["LLMs","PyTorch","Distributed training"],source:"referral",sourceLabel:"Referral",sourceNote:"Referred by Ivan V.",matchScore:86}),e(0,{name:"Diego Vargas",headline:"Product Manager \xB7 ex-Notion",location:"NYC",skills:["B2B SaaS","Growth"],source:"inbound",sourceLabel:"Inbound (career page)",sourceNote:"Inbound 3mo ago",matchScore:81}),e(2,{name:"Priya Mohan",headline:"Data Engineer \xB7 ex-Snowflake",location:"Remote (India)",skills:["Snowflake","dbt","Airflow"],source:"linkedin",sourceLabel:"LinkedIn sourcing",sourceNote:"Sourced via LinkedIn",matchScore:79}),e(5,{name:"Kai Wright",headline:"Engineering Manager \xB7 ex-Figma",location:"SF",skills:["Team building","Performance reviews"],source:"past-finalist",sourceLabel:"Past finalist",sourceNote:"Past finalist \xB7 EM 2024",matchScore:75}),e(3,{name:"Elena Zhao",headline:"Sales Engineer \xB7 ex-MongoDB",location:"Boston",skills:["Pre-sales","Demos","Solutions architecture"],source:"sourced",sourceLabel:"Sourced",sourceNote:"",matchScore:71})];
1return{entries:n,stats:{inPool:98,engagedLast90d:42,hot:14,avgOpenRate:68},insights:{bySource:[{source:"inbound",label:"Inbound (career page)",count:38,pct:39},{source:"linkedin",label:"LinkedIn sourcing",count:29,pct:30},{source:"referral",label:"Referral",count:18,pct:18},{source:"past-finalist",label:"Past finalist",count:13,pct:13}],topSkills:[{skill:"React",count:24},{skill:"Python",count:22},{skill:"Go",count:14},{skill:"Product mgmt",count:12},{skill:"B2B Sales",count:11},{skill:"Rust",count:9},{skill:"Design systems",count:8},{skill:"LLMs",count:7}],suggestedCampaign:{count:12,ids:[],blurb:"12 strong matches haven\u2019t been engaged in 60+ days. Re-warm with a personalised note + role detail."}},pagination:{limit:100,count:n.length,total:98,hasMore:!0}}}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275prov=ee({token:a,factory:a.\u0275fac,providedIn:"root"})}}return a})();D();X();me();Ve();Je();Ae();var R=a=>({n:a}),je=(a,m)=>m.id,Ue=(a,m)=>m.source,We=(a,m)=>m.skill;function ze(a,m){if(a&1&&C(0,"app-stats-grid",5),a&2){let e=u();T("cards",e.statCards())}}function He(a,m){if(a&1){let e=k();o(0,"div",6)(1,"span",34),p(2),r(3,"translate"),s(),o(4,"button",4),g("click",function(){b(e);let t=u();return E(t.engageSelected())}),p(5),r(6,"translate"),s(),o(7,"button",35),g("click",function(){b(e);let t=u();return E(t.openMoveToJob())}),p(8),r(9,"translate"),C(10,"app-svg-image",36),s(),o(11,"button",35),g("click",function(){b(e);let t=u();return E(t.openTag())}),p(12),r(13,"translate"),s(),o(14,"button",35),g("click",function(){b(e);let t=u();return E(t.exportSelected())}),p(15),r(16,"translate"),s(),o(17,"button",37),g("click",function(){b(e);let t=u();return E(t.clearSelection())}),p(18),r(19,"translate"),s()()}if(a&2){let e=u();i(2),_(N(3,8,"ATS.TALENT_POOL.N_SELECTED",f(21,R,e.selectedCount()))),i(3),_(c(6,11,"ATS.TALENT_POOL.ENGAGE_WITH_CAMPAIGN")),i(3),A("",c(9,13,"ATS.TALENT_POOL.MOVE_TO_JOB")," "),i(2),T("height",12)("width",12),i(2),_(c(13,15,"ATS.TALENT_POOL.TAG_ELLIPSIS")),i(3),_(c(16,17,"COMMON.EXPORT")),i(3),_(c(19,19,"COMMON.CLEAR"))}}function $e(a,m){a&1&&C(0,"app-ats-skeleton",7)}function Ye(a,m){if(a&1){let e=k();o(0,"div",8)(1,"p",21),p(2),r(3,"translate"),s(),o(4,"button",35),g("click",function(){b(e);let t=u();return E(t.load())}),p(5),r(6,"translate"),s()()}a&2&&(i(2),_(c(3,2,"ATS.TALENT_POOL.LOAD_ERROR")),i(3),_(c(6,4,"ATS.TALENT_POOL.RETRY")))}function Ke(a,m){a&1&&(o(0,"div",9),p(1),r(2,"translate"),s()),a&2&&(i(),_(c(2,1,"ATS.TALENT_POOL.NO_DATA")))}function Xe(a,m){if(a&1&&(o(0,"span",53),p(1),s()),a&2){let e=m.$implicit;i(),_(e)}}function qe(a,m){if(a&1&&(o(0,"span",54),p(1),s()),a&2){let e=u().$implicit;i(),_(e.sourceNote)}}function Ze(a,m){a&1&&C(0,"span",26)}function Qe(a,m){if(a&1){let e=k();o(0,"div",46),g("click",function(){let t=b(e).$implicit,d=u(2);return E(d.openEntry(t))}),o(1,"input",47),g("click",function(t){let d=b(e).$implicit,l=u(2);return E(l.toggleSelect(d.id,t))}),s(),C(2,"app-user-image",48),o(3,"div",49)(4,"div",50),p(5),s(),o(6,"div",51),p(7),s(),o(8,"div",52),F(9,Xe,2,1,"span",53,ie),L(11,qe,2,1,"span",54),s()(),o(12,"div",55),r(13,"translate"),r(14,"translate"),p(15),o(16,"small"),p(17),r(18,"translate"),s()(),o(19,"button",56),r(20,"translate"),g("click",function(t){let d=b(e).$implicit,l=u(2);return E(l.addToJob(d,t))}),p(21),r(22,"translate"),s(),o(23,"button",57),g("click",function(t){let d=b(e).$implicit,l=u(2);return E(l.engage(d,t))}),L(24,Ze,1,0,"span",26),p(25),r(26,"translate"),s()()}if(a&2){let e=m.$implicit,n=u(2);I("selected",n.selectedIds().has(e.id)),i(),T("checked",n.selectedIds().has(e.id)),i(),T("name",e.name)("height",30)("width",30)("dimension",32)("fontSize",11),i(3),_(e.name),i(2),W("",e.headline,"",e.location?" \xB7 "+e.location:"",""),i(2),J(e.skills),i(2),O(e.sourceNote?11:-1),i(),I("hot",e.hot),T("nzTooltipTitle",c(13,26,"ATS.TALENT_POOL.TIP_MATCH_SCORE")+(e.hot?c(14,28,"ATS.TALENT_POOL.TIP_HOT_PROSPECT"):"")),i(3),_(e.matchScore),i(2),_(c(18,30,"ATS.TALENT_POOL.MATCH")),i(2),T("nzTooltipTitle",c(20,32,"ATS.TALENT_POOL.TIP_ADD_TO_JOB")),i(2),_(c(22,34,"ATS.TALENT_POOL.ADD_TO_JOB")),i(2),I("btn-accent",e.hot)("btn-outline",!e.hot),T("disabled",n.busyId()===e.id),i(),O(n.busyId()===e.id?24:-1),i(),A(" ",c(26,36,e.engaged90d?"ATS.TALENT_POOL.RE_ENGAGE":"ATS.TALENT_POOL.ENGAGE")," ")}}function et(a,m){a&1&&(o(0,"div",9),p(1),r(2,"translate"),s()),a&2&&(i(),_(c(2,1,"ATS.TALENT_POOL.NO_MATCH")))}function tt(a,m){a&1&&C(0,"span",26)}function nt(a,m){if(a&1){let e=k();o(0,"div",39)(1,"button",58),g("click",function(){b(e);let t=u(2);return E(t.showMore())}),L(2,tt,1,0,"span",26),p(3),r(4,"translate"),s()()}if(a&2){let e=u(2);i(),T("disabled",e.loadingMore()),i(),O(e.loadingMore()?2:-1),i(),A(" ",N(4,3,"ATS.TALENT_POOL.SHOW_N_MORE",f(6,R,e.data().pagination.total-e.data().pagination.count))," ")}}function it(a,m){if(a&1){let e=k();o(0,"app-card")(1,"div",41)(2,"h3"),p(3),r(4,"translate"),s(),o(5,"span",59),p(6),r(7,"translate"),s()(),o(8,"div",60)(9,"div",61),p(10),s(),o(11,"button",62),g("click",function(){b(e);let t=u(2);return E(t.runSuggestedCampaign())}),p(12),r(13,"translate"),C(14,"app-svg-image",36),s()()()}a&2&&(i(3),_(c(4,6,"ATS.TALENT_POOL.SUGGESTED_CAMPAIGN")),i(3),_(c(7,8,"ATS.TALENT_POOL.AI")),i(4),_(m.blurb),i(2),A("",c(13,10,"ATS.TALENT_POOL.RUN_CAMPAIGN")," "),i(2),T("height",12)("width",12))}function at(a,m){if(a&1&&(o(0,"div",43)(1,"div",63)(2,"span"),p(3),s(),o(4,"span",64),p(5),s()(),o(6,"div",65),C(
17,"div",66),s()()),a&2){let e=m.$implicit,n=m.$index,t=u(2);i(3),_(e.label),i(2),_(e.count),i(2),ne("width",e.pct,"%")("background",t.sourceBarColor(n))}}function ot(a,m){if(a&1&&(o(0,"span",45),p(1),s()),a&2){let e=m.$implicit,n=m.$index;T("ngClass",n<3?"badge-accent":"badge-muted"),i(),W("",e.skill," (",e.count,")")}}function st(a,m){if(a&1&&(o(0,"div",10)(1,"div"),F(2,Qe,27,38,"div",38,je),L(4,et,3,3,"div",9)(5,nt,5,8,"div",39),s(),o(6,"div",40),L(7,it,15,12,"app-card"),o(8,"app-card")(9,"div",41)(10,"h3"),p(11),r(12,"translate"),s()(),o(13,"div",42),F(14,at,8,6,"div",43,Ue),s()(),o(16,"app-card")(17,"div",41)(18,"h3"),p(19),r(20,"translate"),s()(),o(21,"div",44),F(22,ot,2,3,"span",45,We),s()()()()),a&2){let e,n=u();i(2),J(n.visibleEntries()),i(2),O(n.visibleEntries().length===0?4:-1),i(),O(n.data().pagination.hasMore?5:-1),i(2),O((e=n.data().insights.suggestedCampaign)?7:-1,e),i(4),_(c(12,5,"ATS.TALENT_POOL.BY_SOURCE")),i(3),J(n.data().insights.bySource),i(5),_(c(20,7,"ATS.TALENT_POOL.TOP_SKILLS")),i(3),J(n.data().insights.topSkills)}}function rt(a,m){a&1&&C(0,"span",26)}function lt(a,m){a&1&&C(0,"app-ats-skeleton",30),a&2&&T("rows",3)}function pt(a,m){a&1&&C(0,"span",26)}function ct(a,m){a&1&&C(0,"span",26)}var H=(()=>{class a{onMoveJobPicked(e){this.moveJobForm.jobId=e,this.moveJobStages.set([]),e&&this.actions.jobStages(e).subscribe(n=>{this.moveJobForm.jobId===e&&(this.moveJobStages.set(n),n.length&&!n.some(t=>t.key===this.moveJobForm.stage)&&(this.moveJobForm.stage=n[0].key))})}constructor(){this.svc=P(De),this.nav=P(fe),this.jobsSvc=P(ye),this.router=P(_e),this.toast=P(Ie),this.translate=P(he),this.loading=h(!0),this.error=h(!1),this.data=h(null),this.search=h(""),this.selectedIds=h(new Set),this.busyId=h(null),this.listLimit=h(100),this.loadingMore=h(!1),this.moveJobOpen=h(!1),this.moveJobSaving=h(!1),this.jobs=h([]),this.moveJobForm={jobId:"",stage:"sourced"},this.STAGES=[{key:"sourced",label:this.translate.instant("ATS.TALENT_POOL.STAGE_SOURCED")},{key:"applied",label:this.translate.instant("ATS.TALENT_POOL.STAGE_APPLIED")},{key:"screen",label:this.translate.instant("ATS.TALENT_POOL.STAGE_SCREEN")},{key:"tech",label:this.translate.instant("ATS.TALENT_POOL.STAGE_INTERVIEW")}],this.actions=P(we),this.moveJobStages=h([]),this.moveJobStageOptions=x(()=>this.moveJobStages().length?this.moveJobStages():this.STAGES),this.tagOpen=h(!1),this.tagSaving=h(!1),this.tagInput="",this.breadcrumb=[{label:this.translate.instant("ATS.TALENT_POOL.BREADCRUMB_CANDIDATES")},{label:this.translate.instant("ATS.TALENT_POOL.TITLE")}],this.statCards=x(()=>{let e=this.data()?.stats;return e?[{label:this.translate.instant("ATS.TALENT_POOL.STAT_IN_POOL"),value:e.inPool},{label:this.translate.instant("ATS.TALENT_POOL.STAT_ENGAGED_90D"),value:e.engagedLast90d},{label:this.translate.instant("ATS.TALENT_POOL.STAT_HOT"),value:e.hot,delta:this.translate.instant("ATS.TALENT_POOL.STAT_HOT_DELTA"),deltaDir:"up"},{label:this.translate.instant("ATS.TALENT_POOL.STAT_AVG_OPEN_RATE"),value:e.avgOpenRate==null?"\u2014":`${e.avgOpenRate}%`,delta:e.avgOpenRate!=null&&e.avgOpenRate>=50?this.translate.instant("ATS.TALENT_POOL.STAT_HEALTHY"):"",deltaDir:"up"}]:[]}),this.subtitle=x(()=>{let e=this.data()?.stats;return e?this.translate.instant("ATS.TALENT_POOL.SUBTITLE",{n:e.inPool}):this.error()?"":this.translate.instant("ATS.TALENT_POOL.SUBTITLE_LOADING")}),this.visibleEntries=x(()=>{let e=this.data()?.entries??[],n=this.search().trim().toLowerCase();return n?e.filter(t=>`${t.name} ${t.headline} ${t.location} ${t.skills.join(" ")}`.toLowerCase().includes(n)):e}),this.selectedCount=x(()=>this.selectedIds().size),this.campaignOpen=h(!1),this.campaignLaunching=h(!1),this.campaignTarget="suggested",this.campaignForm={name:"",message:""},this.campaignIds=x(()=>this.campaignTarget==="selected"?[...this.selectedIds()]:this.data()?.insights.suggestedCampaign?.ids??[]),this.contextSection=Ne,this.load()}load(){this.loading.set(!0),this.error.set(!1),this.svc.list({limit:this.listLimit()}).subscribe({next:e=>{this.data.set(e),this.loading.set(!1),this.loadingMore.set(!1)},error:()=>{this.data.set(null),this.error.set(!0),this.loading.set(!1),this.loadingMore.set(!1)}})}showMore(){this.loadingMore()||(this.loadingMore.set(!0),this.listLimit.update(e=>Math.min(e+100,500)),this.load())}jobSelectOptions(){return[{id:"",label:this.translate.instant("ATS.TALENT_POOL.SELECT_A_JOB")},...this.jobs()]}openMoveToJob(){this.selectedIds().size!==0&&(this.moveJobForm={jobId:"",stage:"sourced"},this.moveJobStages.set([]),this.moveJobOpen.set(!0),this.jobs().length===0&&this.jobsSvc.list().subscribe({next:e=>this.jobs.set(e.rows.map(n=>({id:n.id,label:n.title}))),error:()=>this.jobs.set([])}))}addToJob(e,n){n.stopPropagation(),this.selectedIds.set(new Set([e.id])),this.openMoveToJob()}closeMoveToJob(){this.moveJobOpen.set(!1)}confirmMoveToJob(){let e=[...this.selectedIds()];if(!this.moveJobForm.jobId){this.toast.warn(this.translate.instant("ATS.TALENT_POOL.WARN_PICK_JOB"));return}if(this.moveJobSaving.set(!0),e.length===1){this.svc.addToJob(e[0],this.moveJobForm.jobId,this.moveJobForm.stage).subscribe({next:({entry:n})=>{this.moveJobSaving.set(!1),this.moveJobOpen.set(!1),this.clearSelection(),this.applyEntry(n),this.toast.success(this.translate.instant("ATS.TALENT_POOL.TOAST_ADDED_TO_PIPELINE",{name:n.name}))},error:n=>{this.moveJobSaving.set(!1),this.toast.error(n?.error?.message||this.translate.instant("ATS.TALENT_POOL.ERR_ADD_TO_JOB"))}});return}this.svc.moveToJob(e,this.moveJobForm.jobId,this.moveJobForm.stage).subscribe({next:({addedCount:n,skippedCount:t,failedCount:d})=>{this.moveJobSaving.set(!1),this.moveJobOpen.set(!1),this.clearSelection();let l=[this.translate.instant("ATS.TALENT_POOL.N_ADDED",{n})];t&&l.push(this.translate.instant("ATS.TALENT_POOL.N_ALREADY_APPLIED",{n:t})),d&&l.push(this.translate.instant("ATS.TALENT_POOL.N_FAILED",{n:d})),this.toast.success(l.join(" \xB7 ")+"."),this.load()},error:n=>{this.moveJobSaving.set(!1),this.toast.error(this.translate.instant("ATS.TALENT_POOL.ERR_MOVE_TO_JOB",{reason:n?.error?.message||this.translate.instant("ATS.TALENT_POOL.ERR_
1UNKNOWN")}))}})}openTag(){this.selectedIds().size!==0&&(this.tagInput="",this.tagOpen.set(!0))}closeTag(){this.tagOpen.set(!1)}confirmTag(){let e=[...this.selectedIds()],n=this.tagInput.split(",").map(t=>t.trim()).filter(Boolean);if(!n.length){this.toast.warn(this.translate.instant("ATS.TALENT_POOL.WARN_ENTER_TAG"));return}this.tagSaving.set(!0),this.svc.bulkTag(e,n).subscribe({next:({taggedCount:t})=>{this.tagSaving.set(!1),this.tagOpen.set(!1),this.clearSelection(),this.toast.success(this.translate.instant(t===1?"ATS.TALENT_POOL.TOAST_TAGGED_ONE":"ATS.TALENT_POOL.TOAST_TAGGED_MANY",{n:t})),this.load()},error:t=>{this.tagSaving.set(!1),this.toast.error(this.translate.instant("ATS.TALENT_POOL.ERR_TAG",{reason:t?.error?.message||this.translate.instant("ATS.TALENT_POOL.ERR_UNKNOWN")}))}})}exportSelected(){let e=this.selectedIds(),n=(this.data()?.entries??[]).filter(S=>e.has(S.id));if(n.length===0){this.toast.info(this.translate.instant("ATS.TALENT_POOL.INFO_NONE_SELECTED"));return}let t=S=>{let Y=String(S??"");return/[",\n]/.test(Y)?`"${Y.replace(/"/g,'""')}"`:Y},l=[[this.translate.instant("COMMON.NAME"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_HEADLINE"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_LOCATION"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_SKILLS"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_SOURCE"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_MATCH_SCORE"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_TAGS"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_ADDED"),this.translate.instant("ATS.TALENT_POOL.CSV_COL_LAST_ENGAGED")].join(",")];for(let S of n)l.push([S.name,S.headline,S.location,S.skills.join("; "),S.sourceLabel,S.matchScore,(S.tags||[]).join("; "),S.addedAgo,S.lastEngagedAgo].map(t).join(","));let $=new Blob([l.join(`
2`)],{type:"text/csv;charset=utf-8"}),V=URL.createObjectURL($),G=document.createElement("a");G.href=V,G.download=`talent-pool-${new Date().toISOString().slice(0,10)}.csv`,document.body.appendChild(G),G.click(),document.body.removeChild(G),URL.revokeObjectURL(V),this.toast.success(this.translate.instant(n.length===1?"ATS.TALENT_POOL.TOAST_EXPORTED_ONE":"ATS.TALENT_POOL.TOAST_EXPORTED_MANY",{n:n.length}))}onSearch(e){this.search.set(e)}toggleSelect(e,n){n.stopPropagation();let t=new Set(this.selectedIds());t.has(e)?t.delete(e):t.add(e),this.selectedIds.set(t)}clearSelection(){this.selectedIds.set(new Set)}engage(e,n){n.stopPropagation(),this.busyId.set(e.id),this.svc.engage(e.id).subscribe({next:({entry:t})=>{this.applyEntry(t),this.busyId.set(null)},error:t=>{this.busyId.set(null),this.toast.error(this.translate.instant("ATS.TALENT_POOL.ERR_ENGAGE",{reason:t?.error?.message||this.translate.instant("ATS.TALENT_POOL.ERR_UNKNOWN")}))}})}engageSelected(){let e=[...this.selectedIds()];e.length&&this.svc.bulkEngage(e).subscribe({next:({engagedCount:n})=>{this.clearSelection(),this.toast.success(this.translate.instant(n===1?"ATS.TALENT_POOL.TOAST_ENGAGED_ONE":"ATS.TALENT_POOL.TOAST_ENGAGED_MANY",{n})),this.load()},error:n=>this.toast.error(this.translate.instant("ATS.TALENT_POOL.ERR_ENGAGE",{reason:n?.error?.message||this.translate.instant("ATS.TALENT_POOL.ERR_UNKNOWN")}))})}runSuggestedCampaign(){this.campaignTarget=this.selectedIds().size>0?"selected":"suggested";let e=this.data()?.insights.suggestedCampaign;this.campaignForm={name:e?.blurb||this.translate.instant("ATS.TALENT_POOL.CAMPAIGN_DEFAULT_NAME"),message:this.translate.instant("ATS.TALENT_POOL.CAMPAIGN_DEFAULT_MESSAGE")},this.campaignOpen.set(!0)}closeCampaign(){this.campaignOpen.set(!1)}launchCampaign(){let e=this.campaignIds();if(!e.length){this.toast.warn(this.translate.instant("ATS.TALENT_POOL.WARN_EMPTY_SEGMENT"));return}if(!this.campaignForm.name.trim()){this.toast.warn(this.translate.instant("ATS.TALENT_POOL.WARN_CAMPAIGN_NAME"));return}this.campaignLaunching.set(!0),this.svc.bulkEngage(e).subscribe({next:({engagedCount:n})=>{this.campaignLaunching.set(!1),this.campaignOpen.set(!1),this.clearSelection(),this.toast.success(this.translate.instant(n===1?"ATS.TALENT_POOL.TOAST_CAMPAIGN_LAUNCHED_ONE":"ATS.TALENT_POOL.TOAST_CAMPAIGN_LAUNCHED_MANY",{name:this.campaignForm.name,n}
2)),this.load()},error:n=>{this.campaignLaunching.set(!1),this.toast.error(this.translate.instant("ATS.TALENT_POOL.ERR_CAMPAIGN",{reason:n?.error?.message||this.translate.instant("ATS.TALENT_POOL.ERR_UNKNOWN")}))}})}addToPool(){this.toast.info(this.translate.instant("ATS.TALENT_POOL.INFO_ADD_TO_POOL"))}openEntry(e){e.taskId&&this.router.navigate(["/ats/candidates",e.taskId])}applyEntry(e){this.data.update(n=>n&&Q(M({},n),{entries:n.entries.map(t=>t.id===e.id?M(M({},t),e):t)}))}sourceBarColor(e){return["var(--accent)","#22C55E","#F59E0B","#3B82F6"][e%4]}onContextNav(e){let n=xe[e];n&&this.router.navigateByUrl(n)}onSidenav(e){this.nav.go(e)}static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275cmp=te({type:a,selectors:[["app-ats-talent-pool"]],decls:103,vars:142,consts:[["nav","candidates","contextActive","talent-pool",3,"search","contextNav","contextSection","breadcrumb","searchPlaceholder"],[3,"title","subtitle"],["nz-tooltip","","nzTooltipPlacement","top",2,"display","inline-flex",3,"nzTooltipTitle"],["disabled","",1,"btn","btn-outline","btn-sm"],[1,"btn","btn-accent","btn-sm",3,"click"],[1,"d-block","mb-4",3,"cards"],[1,"tp-bulkbar"],["variant","table"],[1,"tp-error"],[1,"tp-loading"],[1,"g-12-8","tp-grid"],[3,"close","open","title","subtitle","maxWidth"],["modal-body","",1,"tpc-body"],[1,"tpc-row"],[1,"tpc-label"],[1,"tpc-segctl"],[1,"tpc-seg"],["type","radio","name","tpcTarget","value","suggested",3,"ngModelChange","ngModel"],["type","radio","name","tpcTarget","value","selected",3,"ngModelChange","ngModel"],[1,"text-xs","text-muted"],[1,"input",3,"ngModelChange","ngModel","placeholder"],[1,"text-muted"],["rows","4",1,"input","tpc-textarea",3,"ngModelChange","ngModel"],["modal-foot","",1,"tpc-foot"],[1,"btn","btn-outline","btn-sm",3,"click","disabled"],[1,"btn","btn-accent","btn-sm",3,"click","disabled"],["aria-hidden","true",1,"ats-btn-spinner"],["modal
2-body","",1,"tp-modal-body"],[1,"tp-modal-label"],["classes","w-100","bindLabel","label","bindValue","id",3,"change","items","searchable","value"],["variant","list",3,"rows"],["classes","w-100","bindLabel","label","bindValue","key",3,"change","items","value"],["modal-foot","",1,"tp-modal-foot"],[1,"input",3,"ngModelChange","placeholder","ngModel"],[1,"text-sm","fw-semibold"],[1,"btn","btn-outline","btn-sm",3,"click"],["value","ic-ats-arrow-right",3,"height","width"],[1,"btn","btn-ghost","btn-sm","ml-auto",3,"click"],[1,"tp-row",3,"selected"],[1,"tp-more"],[1,"tp-side"],["card-header","",1,"card-header"],[1,"tp-sources"],[1,"tp-source"],[1,"tp-skills"],[1,"badge",3,"ngClass"],[1,"tp-row",3,"click"],["type","checkbox",1,"tp-check",3,"click","checked"],[3,"name","height","width","dimension","fontSize"],[1,"body"],[1,"name"],[1,"sub"],[1,"tags"],[1,"tag"],[1,"tag","tag-note"],["nz-tooltip","","nzTooltipPlacement","top",1,"score",3,"nzTooltipTitle"],["nz-tooltip","","nzTooltipPlacement","top",1,"btn","btn-outline","btn-sm",3,"click","nzTooltipTitle"],[1,"btn","btn-sm",3,"click","disabled"],[1,"btn","btn-ghost","btn-sm",3,"click","disabled"],[1,"badge","badge-accent"],[1,"tp-campaign"],[1,"text-xs","text-muted","mb-3"],[1,"btn","btn-accent","btn-block",3,"click"],[1,"tp-source-head"],[1,"fw-semibold"],[1,"tp-bar"],[1,"tp-bar-fill"]],template:function(n,t){n&1&&(o(0,"app-page-shell",0),r(1,"translate"),g("search",function(l){return t.onSearch(l)})("contextNav",function(l){return t.onContextNav(l)}),o(2,"app-page-header",1),r(3,"translate"),o(4,"span",2),r(5,"translate"),o(6,"button",3),p(7),r(8,"translate"),s()(),o(9,"span",2),r(10,"translate"),o(11,"button",3),p(12),r(13,"translate"),s()(),o(14,"button",4),g("click",function(){return t.addToPool()}),p(15),r(16,"translate"),s()(),L(17,ze,1,1,"app-stats-grid",5)(18,He,20,23,"div",6)(19,$e,1,0,"app-ats-skeleton",7)(20,Ye,7,6,"div",8)(21,Ke,3,3,"div",9)(22,st,24,9,"div",10),s(),o(23,"app-ats-modal",11),r(24,"translate"),r(25,"translate"),g("close",function(){return t.closeCampaign()}),o(26,"div",12)(27,"div",13)(28,"label",14),p(29),r(30,"translate"),s(),o(31,"div",15)(32,"label",16)(33,"input",17),B("ngModelChange",function(l){return w(t.campaignTarget,l)||(t.campaignTarget=l),l}),s(),p(34),r(35,"translate"),s(),o(36,"label",16)(37,"input",18),B("ngModelChange",function(l){return w(t.campaignTarget,l)||(t.campaignTarget=l),l}),s(),p(38),r(39,"translate"),s()(),o(40,"div",19),p(41),r(42,"translate"),s()(),o(43,"div",13)(44,"label",14),p(45),r(46,"translate"),s(),o(47,"input",20),r(48,"translate"),B("ngModelChange",function(l){return w(t.campaignForm.name,l)||(t.campaignForm.name=l),l}),s()(),o(49,"div",13)(50,"label",14),p(51),r(52,"translate"),o(53,"span",21),p(54),r(55,"translate"),s()(),o(56,"textarea",22),B("ngModelChange",function(l){return w(t.campaignForm.message,l)||(t.campaignForm.message=l),l}),s()()(),o(57,"div",23)(58,"button",24),g("click",function(){return t.closeCampaign()}),p(59),r(60,"translate"),s(),o(61,"button",25),g("click",function(){return t.launchCampaign()}),L(62,rt,1,0,"span",26),p(63),r(64,"translate"),s()()(),o(65,"app-ats-modal",11),r(66,"translate"),r(67,"translate"),g("close",function(){return t.closeMoveToJob()}),o(68,"div",27)(69,"label",28),p(70),r(71,"translate"),s(),o(72,"ng-dropdown",29),g("change",function(l){return t.onMoveJobPicked(l)}),s(),L(73,lt,1,1,"app-ats-skeleton",30),o(74,"label",28),p(75),r(76,"translate"),s(),o(77,"ng-dropdown",31),g("change",function(l){return t.moveJobForm.stage=l}),s()(),o(78,"div",32)(79,"button",24),g("click",function(){return t.closeMoveToJob()}),p(80),r(81,"translate"),s(),o(82,"button",25),g("click",function(){return t.confirmMoveToJob()}),L(83,pt,1,0,"span",26),p(84),r(85,"translate"),s()()(),o(86,"app-ats-modal",11),r(87,"translate"),r(88,"translate"),g("close",function(){return t.closeTag()}),o(89,"div",27)(90,"label",28),p(91),r(92,"translate"),s(),o(93,"input",33),r(94,"translate"),B("ngModelChange",function(l){return w(t.tagInput,l)||(t.tagInput=l),l}),s()(),o(95,"div",32)(96,"button",24),g("click",function(){return t.closeTag()}),p(97),r(98,"translate"),s(),o(99,"button",25),g("click",function(){return t.confirmTag()}),L(100,ct,1,0,"span",26),p(101),r(102,"translate"),s()()()),n&2&&(T("contextSection",t.contextSection)("breadcrumb",t.breadcrumb)("searchPlaceholder",c(1,68,"ATS.TALENT_POOL.SEARCH_PH")),i(2),T("title",c(3,70,"ATS.TALENT_POOL.TITLE"))("subtitle",t.subtitle()),i(2),T("nzTooltipTitle",c(5,72,"ATS.TALENT_POOL.TIP_CSV_FOLLOW_UP")),i(3),_(c(8,74,"ATS.TALENT_POOL.IMPORT_CSV")),i(2),T("nzTooltipTitle",c(10,76,"ATS.TALENT_POOL.TIP_PAST_FOLLOW_UP")),i(3),_(c(13,78,"ATS.TALENT_POOL.FROM_PAST_CANDIDATES")),i(3),_(c(16,80,"ATS.TALENT_POOL.ADD_TO_POOL")),i(2),O(t.statCards().length>0?17:-1),i(),O(t.selectedCount()>0?18:-1),i(),O(t.loading()?19:t.error()?20:t.data()?22:21),i(4),T("open",t.campaignOpen())("title",c(24,82,"ATS.TALENT_POOL.CAMPAIGN_MODAL_TITLE"))("subtitle",c(25,84,"ATS.TALENT_POOL.CAMPAIGN_MODAL_SUB"))("maxWidth",560),i(6),_(c(30,86,"ATS.TALENT_POOL.AUDIENCE")),i(3),I("on",t.campaignTarget==="suggested"),i(),y("ngModel",t.campaignTarget),i(),A(" ",c(35,88,"ATS.TALENT_POOL.SUGGESTED_SEGMENT")," "),i(2),I("on",t.campaignTarget==="selected"),i(),y("ngModel",t.campaignTarget),i(),A(" ",N(39,90,"ATS.TALENT_POOL.SELECTED_ROWS",f(134,R,t.selectedCount()))," "),i(3),_(N(42,93,t.campaignIds().length===1?"ATS.TALENT_POOL.N_WILL_BE_ENGAGED_ONE":"ATS.TALENT_POOL.N_WILL_BE_ENGAGED_MANY",f(136,R,t.campaignIds().length))),i(4),A("",c(46,96,"ATS.TALENT_POOL.CAMPAIGN_NAME")," *"),i(2),y("ngModel",t.campaignForm.name),T("placeholder",c(48,98,"ATS.TALENT_POOL.CAMPAIGN_NAME_PH")),i(4),A("",c(52,100,"ATS.TALENT_POOL.FIELD_MESSAGE")," "),i(3),W("(","{{first_name}}"," ",c(55,102,"ATS.TALENT_POOL.SUBSTITUTED_PER_CANDIDATE"),")"),i(2),y("ngModel",t.campaignForm.message),i(2),T("disabled",t.campaignLaunching()),i(),_(c(60,104,"COMMON.CANCEL")),i(2),T("disabled",t.campaignLaunching()||t.campaignIds().length===0),i(),O(t.campaignLaunching()?62:-1),i(),A(" ",c(64,106,"ATS.TALENT_POOL.LAUNCH_CAMPAIGN")," "),i(2),T("open",t.moveJobOpen())("title",N(66,108,t.selectedCount()===1?"ATS.TALENT_POOL.MOVE_MODAL_TITLE_ONE":"ATS.TALENT_POOL.MOVE_MODAL_TITLE_MANY",f(138,R,t.selectedCount())))("subtitle",c(67,111,"ATS.TALENT_POOL.MOVE_MODAL_SUB"))("maxWidth",520),i(5),A("",c(71,113,"ATS.TALENT_POOL.FIELD_JOB")," *"),i(2),T("items",t.jobSelectOptions())("searchable",!0)("value",t.moveJobForm.jobId),i(),O(t.jobs().length===0?73:-1),i(2),_(c(76,115,"ATS.TALENT_POOL.STARTING_STAGE")),i(2),T("items",t.moveJobStageOptions())("value",t.moveJobForm.stage),i(2),T("disabled",t.moveJobSaving()),i(),_(c(81,117,"COMMON.CANCEL")),i(2),T("disabled",t.moveJobSaving()),i(),O(t.moveJobSaving()?83:-1),i(),A(" ",c(85,119,"ATS.TALENT_POOL.MOVE_TO_JOB")," "),i(2),T("open",t.tagOpen())("title",N(87,121,t.selectedCount()===1?"ATS.TALENT_POOL.TAG_MODAL_TITLE_ONE":"ATS.TALENT_POOL.TAG_MODAL_TITLE_MANY",f(140,R,t.selectedCount())))("subtitle",c(88,124,"ATS.TALENT_POOL.TAG_MODAL_SUB"))("maxWidth",460),i(5),A("",c(92,126,"ATS.TALENT_POOL.FIELD_TAGS")," *"),i(2),T("placeholder",c(94,128,"ATS.TALENT_POOL.TAGS_PH")),y("ngModel",t.tagInput),i(3),T("disabled",t.tagSaving()),i(),_(c(98,130,"COMMON.CANCEL")),i(2),T("disabled",t.tagSaving()),i(),O(t.tagSaving()?100:-1),i(),A(" ",c(102,132,"ATS.TALENT_POOL.APPLY_TAGS")," "))},dependencies:[z,ae,de,re,ce,le,pe,ke,Me,Ee,Pe,ve,Le,ue,Se,be,ge,Ce,Oe],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block}.tp-loading[_ngcontent-%COMP%]{padding:3rem 1rem;text-align:center;color:var(--ink-muted);font-size:.875rem}.tp-error[_ngcontent-%COMP%]{padding:2rem 1rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:.75rem}.tp-bulkbar[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem;background:var(--accent-light);border:1px solid var(--accent);border-radius:var(--radius, 8px);padding:.75rem 1rem;margin-bottom:.75rem}.tp-grid[_ngcontent-%COMP%]{align-items:start}.tp-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.875rem;padding:.75rem 1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm, 6px);cursor:pointer;transition:border-color .15s}.tp-row[_ngcontent-%COMP%] + .tp-row[_ngcontent-%COMP%]{margin-top:.5rem}.tp-row[_ngcontent-%COMP%]:hover{border-color:var(--border-strong, var(--ink-muted))}.tp-row.selected[_ngcontent-%COMP%]{background:var(--accent-light);border-color:var(--accent)}.tp-row[_ngcontent-%COMP%]   .body[_ngcontent-%COMP%]{flex:1;min-width:0}.tp-row[_ngcontent-%COMP%]   .name[_ngcontent-%COMP%]{font-size:13px;font-weight:700}.tp-row[_ngcontent-%COMP%]   .sub[_ngcontent-%COMP%]{font-size:11px;color:var(--ink-muted);margin-top:2px}.tp-row[_ngcontent-%COMP%]   .tags[_ngcontent-%COMP%]{display:flex;gap:4px;margin-top:4px;flex-wrap:wrap}.tp-row[_ngcontent-%COMP%]   .tag[_ngcontent-%COMP%]{font-size:10px;padding:2px 7px;background:var(--surface-alt);border-radius:var(--radius-pill, 999px);color:var(--ink-soft)}.tp-row[_ngcontent-%COMP%]   .tag-note[_ngcontent-%COMP%]{background:var(--accent-light);color:var(--accent)}.tp-row[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]{font-size:18px;font-weight:800;color:var(--ink-muted);width:44px;text-align:center;flex-shrink:0}.tp-row[_ngcontent-%COMP%]   .score.hot[_ngcontent-%COMP%]{color:var(--accent)}.tp-row[_ngcontent-%COMP%]   .score[_ngcontent-%COMP%]   small[_ngcontent-%COMP%]{font-size:10px;color:var(--ink-muted);font-weight:600;display:block}.tp-side[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.tp-campaign[_ngcontent-%COMP%]{padding-top:.25rem}.tp-sources[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.625rem}.tp-source-head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;font-size:.8125rem;margin-bottom:4px}
2.tp-bar[_ngcontent-%COMP%]{height:6px;background:var(--surface-alt);border-radius:3px;overflow:hidden}.tp-bar-fill[_ngcontent-%COMP%]{height:100%;border-radius:3px}.tp-skills[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.5rem}.tpc-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.875rem;padding:.875rem 1rem}.tpc-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.375rem}.tpc-label[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600;color:var(--ink-soft)}.tpc-textarea[_ngcontent-%COMP%]{min-height:96px;resize:vertical}.tpc-segctl[_ngcontent-%COMP%]{display:flex;gap:.5rem}.tpc-seg[_ngcontent-%COMP%]{flex:1;display:flex;align-items:center;gap:.375rem;padding:.5rem .625rem;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.8125rem;cursor:pointer}.tpc-seg.on[_ngcontent-%COMP%]{border-color:var(--accent);background:var(--accent-light);color:var(--accent)}.tpc-foot[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:.75rem 1rem}.tp-modal-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem;padding:.875rem 1rem}.tp-modal-label[_ngcontent-%COMP%]{font-size:.75rem;font-weight:600;color:var(--ink-soft)}.tp-modal-foot[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.5rem;padding:.75rem 1rem}'],changeDetection:0})}}return a})();D();var dt=[{path:"",component:H,pathMatch:"full"}],Re=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=U({type:a})}static{this.\u0275inj=j({imports:[q.forChild(dt),q]})}}return a})();D();var Ht=(()=>{class a{static{this.\u0275fac=function(n){return new(n||a)}}static{this.\u0275mod=U({type:a})}static{this.\u0275inj=j({imports:[z,Re,H]})}}return a})();export{Ht as TalentPoolModule};

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.