PageSourceSearch

https://app.hipeople.io/assets/results.page-BMhe5bAZ.js

js hipeople.io collected 2026-09-25 02:55:10 UTC 12,737 bytes, 2 lines download raw bytes

1import{u as te,c as Q,r,j as e}from"./react-vendor-CUpCSkRO.js";import{u as se,N as ae,aN as ne,m as oe,dE as ie,dF as ce,dG as re,dH as le,B as b,bw as de,T as S,cW as pe,dI as ue,v as me,I as he,dJ as ge,dK as fe,dL as _e,dv as ye,dM as xe}from"./index-Cip_jwwf.js";import{P as R}from"./PageHeader-Dy2BFeIB.js";import{P as be,a as je,b as ve}from"./ATSBadge-eipB26Hg.js";import{T as J}from"./user_agent-BSyvOo7a.js";import{u as Ce,r as Se,C as Te}from"./useDiscovery-ka1gehRP.js";import{p as we,n as Ne,a as q,d as ke,D as Ie}from"./ReportHeader-CumodECC.js";import{b as Me,u as De}from"./state-vendor-Ce2ZSkgs.js";import{a as Re}from"./__vite-browser-external-CjepiE4C.js";import{u as Pe}from"./useDebouncedSearch-BJ5pcQT8.js";import{u as Ee}from"./SupportSearchBar-CkL_1a-L.js";import{q as Le}from"./TabSelector-BllGLjB4.js";import{u as Be,a as He,f as Ae,D as Fe}from"./useReachOutToCandidate-DODeheCJ.js";import"./primereact-vendor-B-h6ReaZ.js";import"./PopoverMenu-1XpNVElE.js";import"./deepEqual-vIgOhzX6.js";import"./ManageTemplatesLink-DGjgXZkQ.js";import"./CandidatePageRedirect-Dk1a-z6t.js";import"./MatchBarBadge-V_QdPWSm.js";import"./index-tHeRqsl1.js";import"./useEmbeddedImage-DNZrZ7ET.js";import"./ExperienceEntriesView-CKAdJIV0.js";import"./severity-Dy4FRMP4.js";import"./report.page-__aOm0j3.js";import"./index-B9ZkO6DC.js";import"./insights-DW15dpUj.js";import"./useCurrentUser-Bu2N15kc.js";import"./index-VMZgkxfE.js";import"./MultiChipContainer-B0a7716u.js";import"./IntegrationActivity-BYVqy9z3.js";import"./Table-CYOTKjNS.js";import"./TopNavigation-wI144C7x.js";import"./format-CJwz1CXi.js";import"./ProfileDetails-DtJ04-rL.js";import"./CriteriaList-CVsWDPQ4.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="c8b10d03-54eb-4a9d-8fa6-41c0e6385738",t._sentryDebugIdIdentifier="sentry-dbid-c8b10d03-54eb-4a9d-8fa6-41c0e6385738")}catch(o){}})();{var y=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};y._sentryModuleMetadata=y._sentryModuleMetadata||{},y._sentryModuleMetadata[new y.Error().stack]=Object.assign({},y._sentryModuleMetadata[new y.Error().stack],{"_sentryBundlerPluginAppKey:hipeople-dashboard":!0})}const Ve=["Name","Email","Found In","Match","Status"],W=t=>t.map(a=>'"'.concat(a.replace(/"/g,'""'),'"')).join(","),$e=t=>[W(Ve),...t.map(a=>{var o,c,i;return W([a.name,(o=a.email)!=null?o:"",(c=a.sourceJobName)!=null?c:"",String(a.matchScore),(i=a.priorStatus)!=null?i:""])})].join("\n"),Oe=(t,a)=>{const o=new Blob([$e(t)],{type:"text/csv;charset=utf-8;"}),c=URL.createObjectURL(o),i=document.createElement("a");i.href=c,i.download=a,i.click(),URL.revokeObjectURL(c)},ze=66,Ke=t=>t==="high"?[ie("score",ze)]:[],Ue=t=>t?[ce("candidate_profiles.full_name",t)]:[],qe=()=>{var $,O;const{discoveryid:t}=te(),a=Q(),o=Me(),c=se(),i=Re(),l=De(d=>ae(d)),[g,p]=r.useState(!0),[u,T]=r.useState("high"),{searchValue:j,onSearchTextInputChange:v,debouncedSearchValue:w}=Pe("q"),N=r.useRef(!1),k=r.useRef(!1),{page:P,rows:I,onPageChange:E,resetToFirstPage:M}=Ee(),C=P+1,L=r.useCallback(d=>{N.current=!0,M(),T(d)},[M]),{data:s,isPending:B}=Ce(t),h=(s==null?void 0:s.status)==="completed"||(s==null?void 0:s.status)==="done",{data:m,isLoading:H,isPlaceholderData:f,isFetching:A}=Be(t,{page:C,limit:I,sortDesc:g,filters:[...Ke(u),...Ue(w)],poll:!h}),D=r.useRef(u);A||(D.current=u);const G=D.current!==u,V=($=m==null?void 0:m.items)!=null?$:[],X=He(V),F=r.useMemo(()=>{var d,_,z,K,U;return{screenedCount:(d=s==null?void 0:s.screenedCount)!=null?d:null,screenedTotal:(_=s==null?void 0:s.screenedTotal)!=null?_:null,topMatchesCount:(z=s==null?void 0:s.topMatchesCount)!=null?z:null,avgScore:(K=s==null?void 0:s.avgScore)!=null?K:null,topScore:(U=s==null?void 0:s.topScore)!=null?U:null}},[s]);r.useEffect(()=>{k.current||N.current||h&&F.topMatchesCount===0&&(k.current=!0,T("all"))},[h,F.topMatchesCount]);const Y=r.useCallback((d="sources")=>t&&a("/discoveries/new?discoveryId=".concat(t,"&step=").concat(d)),[a,t]),Z=r.useCallback(async()=>
1{if(!(!l||!t||!await i({title:"Delete discovery",message:"This will permanently delete this discovery and its matches. This action cannot be undone.",confirmLabel:"Delete",danger:!0})))try{await ne(Se(l,t)),o.invalidateQueries({queryKey:Le.discoveriesList(l)}),a("/discoveries")}catch(_){c(oe({error:"Failed to delete the discovery. Please try again."}))}},[l,t,i,o,c,a]),ee=r.useCallback(async()=>{var _;if(!l||!t)return;const d=await Ae(l,t);Oe(d,"".concat((_=s==null?void 0:s.name)!=null?_:"discovery","-matches.csv"))},[l,t,s]);return{isLoading:B,isFetching:H||f||G,discovery:s!=null?s:null,isComplete:h,analytics:F,candidates:V,page:C,pageSize:I,total:(O=m==null?void 0:m.total)!=null?O:0,sortDesc:g,matchTab:u,setMatchTab:L,searchValue:j,debouncedSearchValue:w,onSearchTextInputChange:v,setSortDesc:p,onPageChange:E,reachOut:X,exportCsv:ee,editInWizard:Y,deleteDiscovery:Z}},We="_description_1n1hc_7",Qe="_title_1n1hc_7",Je="_empty_1n1hc_128",Ge="_iconCircle_1n1hc_140",Xe="_copy_1n1hc_155",Ye="_button_1n1hc_172",x={description:We,title:Qe,empty:Je,iconCircle:Ge,copy:Xe,button:Ye},Ze=t=>t===null?"candidates":"".concat(t.toLocaleString("en-US")," ").concat(t===1?"candidate":"candidates"),et=(t,a)=>t?"We screened ".concat(Ze(a)," and none scored high enough to be a great match."):"We haven't found a great match yet. New matches will show up here as screening continues.",tt=({isComplete:t,screenedCount:a,onViewAll:o})=>{const c=t?"No strong matches found":"Still searching for matches";return e.jsxs("div",{className:x.empty,"data-sentry-component":"DiscoveryMatchesEmptyState","data-sentry-source-file":"DiscoveryMatchesEmptyState.tsx",children:[e.jsx("div",{className:x.iconCircle,children:t?e.jsx(re,{}):e.jsx(le,{})}),e.jsxs("div",{className:x.copy,children:[e.jsx("h2",{className:x.title,children:c}),e.jsx("p",{className:x.description,children:et(t,a)})]}),e.jsx(b,{variant:t?"secondary":"accent",onClick:o,className:x.button,"data-sentry-element":"Button","data-sentry-source-file":"DiscoveryMatchesEmptyState.tsx",children:"View all candidates"})]})},st="_page_pjlpf_128",at="_container_pjlpf_133",nt="_pageHeaderRoot_pjlpf_142",ot="_titleBlock_pjlpf_147",it="_titleRow_pjlpf_153",ct="_title_pjlpf_147",rt="_createdAt_pjlpf_166",lt="_settingsMenu_pjlpf_170",dt="_settingsMenuItem_pjlpf_178",pt="_settingsMenuItemButton_pjlpf_187",ut="_settingsMenuItemIcon_pjlpf_198",mt="_metricsCard_pjlpf_204",ht="_kpiItem_pjlpf_218",gt="_kpiLabelRow_pjlpf_228",ft="_kpiLabel_pjlpf_228",_t="_kpiHint_pjlpf_238",yt="_kpiValue_pjlpf_244",xt="_divider_pjlpf_249",bt="_candidatesSection_pjlpf_256",jt="_candidatesHeader_pjlpf_262",vt="_candidatesControls_pjlpf_269",Ct="_exportButton_pjlpf_284",St="_matchTabs_pjlpf_294",Tt="_matchTab_pjlpf_294",wt="_loading_pjlpf_305",Nt="_notFound_pjlpf_312",n={page:st,container:at,pageHeaderRoot:nt,titleBlock:ot,titleRow:it,title:ct,createdAt:rt,settingsMenu:lt,settingsMenuItem:dt,settingsMenuItemButton:pt,settingsMenuItemIcon:ut,metricsCard:mt,kpiItem:ht,kpiLabelRow:gt,kpiLabel:ft,kpiHint:_t,kpiValue:yt,divider:xt,candidatesSection:bt,candidatesHeader:jt,candidatesControls:vt,exportButton:Ct,matchTabs:St,matchTab:Tt,loading:wt,notFound:Nt},kt=({value:t,label:a,hint:o})=>e.jsxs("div",{className:n.kpiItem,"data-sentry-component":"Kpi","data-sentry-source-file":"results.page.tsx",children:[e.jsxs("div",{className:n.kpiLabelRow,children:[e.jsx(S,{variant:"small-body",className:n.kpiLabel,"data-sentry-element":"Text","data-sentry-source-file":"results.page.tsx",children:a}),o&&e.jsx(J,{text:o,className:n.kpiHint,children:e.jsx(xe,{size:14,"aria-label":"About ".concat(a)})})]}),e.jsx(S,{variant:"action-card-header",className:n.kpiValue,"data-sentry-element":"Text","data-sentry-source-file":"results.page.tsx",children:t})]}),It=({jobId:t,isRunning:a,onRefineCriteria:o,onEditSources:c,onDelete:i})=>{const l=Q(),g=[{title:"Refine criteria",icon:ge,onClick:o,disabled:a},{title:"Edit sources",icon:fe,onClick:c,disabled:a},...t?[{title:"View Job",icon:_e,onClick:()=>l("/roles/".concat(t)),disabled:!1}]:[],{title:"Delete discovery",icon:ye,onClick:i,disabled:!1}];return e.jsxs(be,{"data-sentry-element":"Popover","data-sentry-component":"DiscoverySettingsMenu","data-sentry-source-file":"results.page.tsx",children:[e.jsx(je,{asChild:!0,"data-sentry-element":"PopoverTrigger","data-sentry-source-file":"results.page.tsx",children:e.jsx(b,{variant:"ghost","aria-label":"More actions","data-testid":"discovery-settings-button","data-sentry-element":"Button","data-sentry-source-file":"results.page.tsx",children:e.jsx(he,{name:"ellipsis-h","data-sentry-element":"Icon","data-sentry-source-file":"results.page.tsx"})})}),e.jsx(ve,{width:"auto",side:"bottom",align:"end",sideOffset:15,"data-sentry-element":"PopoverContent","data-sentry-source-file":"results.page.tsx",children:e.jsx("ul",{className:n.settingsMenu,children:g.map(p=>e.jsx("li",{className:n.settingsMenuItem,children:e.jsxs(b,{variant:"ghost",className:n.settingsMenuItemButton,onClick:p.onClick,disabled:p.disabled,children:[e.jsx(p.icon,{className:n.settingsMenuItemIcon}),p.title]})},p.title))})})]})},Mt=()=>e.jsxs("div",{className:n.notFound,"data-sentry-component":"NotFound","data-sentry-source-file":"results.page.tsx",children:[e.jsx(S,{variant:"action-card-header","data-sentry-element":"Text","data-sentry-source-file":"results.page.tsx",children:"Discovery not found"}),e.jsx(S,{variant:"small-body","data-sentry-element":"Text","data-sentry-source-file":"results.page.tsx",children:"This discovery no longer exists."})]}),us=()=>{const{isLoading:t,isFetching:a,discovery:o,isComplete:c,analytics:i,candidates:l,page:g,pageSize:p,total:u,sortDesc:T,matchTab:j,setMatchTab:v,searchValue:w,debouncedSearchValue:N,onSearchTextInputChange:k,setSortDesc:P,onPageChange:I,reachOut:E,exportCsv:M,editInWizard:C,deleteDiscovery:L}=qe(),s=c?"The total increases as candidates are gathered. Some apply to more than one selected job, so the final total can be lower than the source estimate.":"Some candidates apply to more than one selected job, so the total can be lower than the source estimate.",B=r.useMemo(()=>[{label:"Progress",value:we(i.screenedCount,i.screenedTotal),hint:s},{label:"Matches",value:Ne(i.topMatchesCount)},{label:"Avg Score",value:q(i.avgScore)},{label:"Top Score",value:q(i.topScore)}],[i,s]),h=!!N.trim(),m=j==="high"&&!a&&!h&&u===0,H=h?"No candidates match your search.":"No matches yet.";return e.jsx(Te,{"data-sentry-element":"DashboardLayout","data-sentry-component":"DiscoveryResultsPage","data-sentry-source-file":"results.page.tsx",children:e.jsx("div",{className:n.page,children:e.jsxs("div",{className:n.container,children:[t&&e.jsx("div",{className:n.loading,children:e.jsx(de,{})}),!t&&!o&&e.jsx(Mt,{}),!t&&o&&e.jsxs(e.Fragment,{children:[e.jsxs(R.Root,{className:n.pageHeaderRoot,children:[e.jsx(R.StartItems,{children:e.jsxs("div",{className:n.titleBlock,children:[e.jsxs("div",{className:n.titleRow,children:[e.jsx(R.Title,{className:n.title,children:ke(o)}),e.jsx(Ie,{status:o.status})]}),o.createdAt>0&&e.jsxs(S,{variant:"small-body",className:n.createdAt,children:["Created ",pe(o.createdAt)]})]})}),e.jsx(R.EndItems,{children:e.jsx(It,{jobId:o.jobId,isRunning:o.status==="running",onRefineCriteria:()=>C("criteria"),onEditSources:()=>C("sources"),onDelete:L})})]}),e.jsx("div",{className:n.metricsCard,children:B.map((f,A,D)=>e.jsxs(r.Fragment,{children:[e.jsx(kt,{value:f.value,label:f.label,hint:f.hint}),A<D.length-1&&e.jsx("div",{className:n.divider,"aria-hidden":!0})]},f.label))}),e.jsxs("div",{className:n.candidatesSection,children:[e.jsxs("div",{className:n.candidatesHeader,children:[e.jsxs("div",{className:n.matchTabs,children:[e.jsx(b,{variant:"ghost",className:n.matchTab,"data-active":j==="high",onClick:()=>v("high"),children:"Matches"}),e.jsx(b,{variant:"ghost",className:n.matchTab,"data-active":j==="all",onClick:()=>v("all"),children:"All"})]}
1),e.jsxs("div",{className:n.candidatesControls,children:[e.jsx(J,{text:"Export to CSV",children:e.jsx(b,{variant:"icon",className:n.exportButton,onClick:M,"aria-label":"Export to CSV",children:e.jsx(ue,{})})}),e.jsx(me,{icon:"search",placeholder:"Search candidates",value:w,onChange:k})]})]}),m?e.jsx(tt,{isComplete:c,screenedCount:i.screenedCount,onViewAll:()=>v("all")}):e.jsx(Fe,{candidates:a?[]:l,total:u,first:(g-1)*p,rows:p,loading:a,onPageChange:I,matchSortOrder:T?-1:1,onMatchSortChange:P,onReachOut:E,emptyMessage:H})]})]})]})})})};export{us as DiscoveryResultsPage};
2//# sourceMappingURL=results.page-BMhe5bAZ.js.map

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.