vendor: 4,100 bytes, line 1
1import{_ as Ue}from"./h7PTr_A8.js";import{_ as Fe}from"./ngltJywf.js";import{_ as Oe}from"./BUQCflAu.js";import{_ as Me}from"./DU13BYyF.js";import{_ as Ee}from"./BShCRTLx.js";import{_ as ze}from"./DwvoCgxZ.js";import{_ as Ae}from"./BVhCan-i.js";import{U as Te}from"./f-WWjPVt.js";import{d as Je,I as qe,aN as Ve,f as Be,e as Ke,r as We,j as He,g as A,c as o,p as g,a as n,q as U,n as s,B as d,t as r,A as w,F as b,L as p,y as f,M as N,s as L,U as G,ar as Ge,o as a,v as ue,ab as pe,x as T,G as Qe}from"#entry";import{a as Xe}from"./BTSHbX71.js";import"./DpctSX-d.js";import"./BeIjM6Ba.js";import"./Cq0sJs5o.js";/* empty css */import{_ as Ye}from"./CmLd5_Bi.js";import{u as Ze}from"./BXnZ1f17.js";import"./acE3GaAa.js";import"./D_cw-Y2C.js";import"./Bpj_hUzD.js";import"./BN45GOla.js";import"./DLhWdRnk.js";import"./LJEb9Kiv.js";import"./ZhWAdK_X.js";import"./R8dX-K1H.js";import"./CQhLaPtX.js";import"./jc0MLXVe.js";import"./KrYvq6UF.js";import"./CmuEa5cR.js";import"./BrXX2iGn.js";import"./Cx8AE5yN.js";import"./BUWOITO4.js";import"./CkVIwnIp.js";import"./rJ_9gpEt.js";import"./DY2d5ogE.js";import"./CVkbUBej.js";const et={class:"max-w-5xl mx-auto px-4 py-6"},tt={key:0,class:"flex items-center justify-center py-12"},st={key:1,class:"text-center py-12"},nt={class:"text-red-100 mb-4"},at={key:2},ot={key:0,class:"mb-6 rounded-md border border-red-50 bg-red-25 px-4 py-3"},it={class:"text-sm text-red-100 mt-0.5"},lt={class:"flex items-start gap-4 mb-8"},rt=["src","alt"],dt={key:1,class:"w-16 h-16 rounded-full bg-neutral-200 flex items-center justify-center flex-shrink-0"},ct={class:"text-xl text-neutral-500 font-medium"},ut={class:"flex-1 min-w-0"},pt={class:"flex items-center gap-3"},_t={class:"text-2xl font-semibold text-neutral-900 capitalize"},xt={key:0,class:"text-xs text-green-300 bg-green-25 px-2 py-0.5 rounded"},ht={key:1,class:"text-xs font-medium px-2 py-0.5 rounded bg-yellow-25 text-yellow-200"},mt={key:0,class:"text-neutral-600 text-base mt-1"},bt={key:0,class:"text-neutral-400"},ft={class:"text-neutral-600 capitalize"},yt={key:1,class:"text-neutral-500 text-base mt-1 capitalize"},gt={class:"flex flex-wrap items-center gap-3 mt-3"},vt=["href"],kt=["href"],wt=["href"],Dt=["href"],Ct={key:0,class:"mt-1 text-sm font-medium text-neutral-900"},St={key:1,class:"mt-1 text-sm font-medium text-neutral-900"},$t={key:2,class:"mt-1 text-sm font-medium text-neutral-700"},Lt={key:3,class:"mt-1 text-sm font-medium text-neutral-700"},jt={key:4,class:"mt-1 text-sm font-medium text-neutral-700"},Pt={key:1,class:"text-neutral-600 text-base leading-relaxed mb-8 whitespace-pre-line"},Rt={class:"grid grid-cols-3 md:grid-cols-6 gap-px bg-neutral-200 rounded-lg overflow-hidden mb-8"},Nt={class:"bg-white p-3"},It={class:"text-base text-neutral-900 mt-1 capitalize truncate"},Ut={class:"bg-white p-3"},Ft={class:"text-base text-neutral-900 mt-1 capitalize truncate"},Ot={class:"bg-white p-3"},Mt={class:"text-base text-neutral-900 mt-1"},Et={class:"bg-white p-3"},zt={class:"text-base text-neutral-900 mt-1 font-mono"},At={class:"bg-white p-3"},Tt=["title"],Jt={class:"bg-white p-3"},qt={class:"text-base text-neutral-900 mt-1 capitalize"},Vt={key:2,class:"mb-8"},Bt={class:"flex items-center justify-between mb-4"},Kt={key:0,class:"mb-6"},Wt={class:"text-sm font-medium text-neutral-800 mb-3"},Ht={class:"bg-white border border-neutral-200 rounded-lg overflow-hidden"},Gt={class:"w-full text-sm"},Qt={class:"divide-y divide-neutral-100"},Xt={class:"px-4 py-2"},Yt={class:"px-4 py-2"},Zt={class:"px-4 py-2 whitespace-nowrap"},es={key:0,class:"ml-1 text-xs px-1.5 py-0.5 rounded bg-neutral-200 text-neutral-600"},ts={key:1},ss={class:"text-sm font-medium text-neutral-800 mb-3"},ns={class:"bg-white border border-neutral-200 rounded-lg overflow-hidden"},as={class:"w-full text-sm"},os={class:"divide-y divide-neutral-100"},is={class:"px-4 py-2 font-mono text-neutral-800"},ls={class:"px-4 py-2"},rs={class:"px-4 py-2 whitespace-nowrap"},ds={class:"inline-flex items-center gap-1"},cs={key:0,class:"text-xs px-2 py-0.5 rounded bg-red-100 text-white",title:"Fails phone validation"}
vendor: 5,991 bytes, line 1
1,us=["onClick"],ps={key:0,class:"bg-red-100 text-white text-[10px] leading-none px-1 py-0.5 rounded-full"},_s={class:"px-4 py-2 whitespace-nowrap"},xs={key:0,class:"ml-1 text-xs px-1.5 py-0.5 rounded bg-neutral-200 text-neutral-600"},hs={class:"border border-neutral-200 rounded-lg mb-6"},ms={class:"flex items-center justify-between px-4 py-3"},bs={class:"text-base text-neutral-900"},fs={key:0,class:"text-neutral-400 ml-2"},ys=["disabled"],gs={key:0},vs={key:1},ks={key:0,class:"border-t border-neutral-200"},ws={class:"text-sm text-neutral-600"},Ds={key:0,class:"px-4 py-3 bg-neutral-50"},Cs={class:"flex items-center justify-between mb-2"},Ss={class:"flex items-center gap-2 flex-wrap"},$s={key:0,class:"text-xs bg-neutral-200 text-neutral-600 px-2 py-0.5 rounded"},Ls={key:1,class:"text-xs px-2 py-0.5 rounded bg-neutral-100 text-neutral-600"},js={key:3,class:"text-xs px-2 py-0.5 rounded bg-neutral-100 text-neutral-600 font-mono"},Ps={class:"flex items-center gap-1"},Rs=["disabled","onClick"],Ns={key:0},Is=["onClick"],Us=["disabled","onClick"],Fs={key:0},Os={key:1},Ms={key:0,class:"mb-3 p-3 bg-neutral-50 rounded border border-neutral-200"},Es=["onKeyup"],zs={class:"flex gap-2"},As=["disabled","onClick"],Ts={key:0},Js={key:1},qs={key:1,class:"mb-2"},Vs={class:"flex gap-2"},Bs=["onKeyup"],Ks=["disabled","onClick"],Ws={key:2,class:"mb-2 flex items-start gap-2"},Hs={class:"text-xs text-neutral-500 italic"},Gs=["onClick"],Qs={key:3,class:"mb-2"},Xs=["onClick"],Ys={class:"text-xs text-neutral-500 space-y-1"},Zs={key:0},en={key:1},tn={key:4,class:"mt-2 pt-2 border-t border-neutral-100"},sn={class:"flex flex-wrap gap-1"},nn={key:5,class:"mt-2 pt-2 border-t border-neutral-100"},an={class:"space-y-1"},on={key:0,class:"flex items-center gap-2 text-xs"},ln={key:0,class:"text-neutral-400"},rn={key:1,class:"text-neutral-400"},dn=["disabled","onClick"],cn={key:0},un={key:1,class:"flex items-center gap-2 text-xs"},pn=["disabled","onClick"],_n={key:0},xn={class:"text-neutral-500 w-24 capitalize"},hn={key:0,class:"text-neutral-400"},mn={key:1,class:"text-neutral-400"},bn={key:2,class:"text-neutral-400"},fn=["disabled","onClick"],yn={key:0},gn={key:1,class:"px-4 py-3 text-sm text-neutral-400"},vn={class:"text-sm text-neutral-600"},kn={key:0,class:"px-4 py-3 bg-neutral-50"},wn={class:"flex items-center justify-between mb-2"},Dn={class:"flex items-center gap-2 flex-wrap"},Cn=["onClick"],Sn={key:2,class:"text-xs bg-neutral-200 text-neutral-600 px-2 py-0.5 rounded"},$n={key:3,class:"text-xs px-2 py-0.5 rounded bg-neutral-100 text-neutral-600"},Ln={class:"flex items-center gap-1"},jn=["disabled","onClick"],Pn={key:0},Rn=["onClick"],Nn={key:0,class:"mb-2"},In={class:"text-xs text-neutral-500 italic"},Un={class:"text-xs text-neutral-500 space-y-1"},Fn={key:0},On={key:1,class:"mt-2 pt-2 border-t border-neutral-100"},Mn={class:"flex flex-wrap gap-1"},En={key:2,class:"mt-2 pt-2 border-t border-neutral-100"},zn={class:"text-xs text-neutral-600 mb-1"},An={key:1,class:"px-4 py-3 text-sm text-neutral-400"},Tn={class:"border border-neutral-200 rounded-lg mb-6"},Jn={class:"text-base text-neutral-900"},qn={key:0,class:"text-neutral-400 ml-2"},Vn={key:0,class:"border-t border-neutral-200"},Bn={key:0,class:"px-4 py-3"},Kn={class:"space-y-3"},Wn={class:"flex items-start justify-between"},Hn={class:"flex-1"},Gn={class:"flex items-center gap-2 flex-wrap"},Qn={class:"text-xs font-mono text-neutral-400"},Xn={class:"font-medium text-neutral-900"},Yn={key:0,class:"text-sm text-neutral-600 mt-1"},Zn={key:0},ea={key:1},ta={key:2},sa={class:"text-xs text-neutral-500 mt-1 space-x-3"},na={key:0},aa={key:1,class:"text-xs text-neutral-400 mt-1"},oa={key:0},ia={key:1},la={key:2},ra=["href"],da={key:0,class:"mt-3 pt-3 border-t border-neutral-200 flex items-center justify-between gap-3"},ca={class:"text-sm text-neutral-500"},ua={key:1,class:"px-4 py-3 text-sm text-neutral-400"},pa={key:3,class:"mb-6"},_a={key:0,class:"space-y-4"},xa={class:"flex-1 pb-4"},ha={class:"flex items-start justify-between"},ma={class:"text-base font-medium text-neutral-900"},ba={key:1,class:"text-base text-neutral-600 capitalize"},fa={class:"text-sm text-neutral-400 text-right"},ya={key:0,class:"text-sm text-neutral-500 mt-1 capitalize"},ga={key:4,class:"border border-neutral-200 rounded-lg mb-6"},va={class:"text-base text-neutral-900"},ka={key:0,class:"border-t border-neutral-200 px-4 py-3 bg-neutral-50"},wa={class:"text-sm text-neutral-700 mb-3"},Da={key:0,class:"text-neutral-500"},Ca={key:0,class:"text-xs text-neutral-500 mb-3"},Sa={class:"space-y-3"},$a={class:"flex items-center justify-between mb-2"},La={class:"text-sm text-neutral-900"},ja={class:"font-medium"},Pa={key:0,class:"text-neutral-500"},Ra={class:"space-y-1"},Na={class:"text-neutral-600"},Ia={key:5,class:"mb-6"},Ua={key:0,class:"space-y-4"},Fa={class:"flex-1 pb-4"},Oa={class:"flex items-start justify-between"},Ma={class:"text-base font-medium text-neutral-900 capitalize"},Ea={key:0,class:"text-base text-neutral-600 capitalize"},za={key:1,class:"text-sm text-neutral-500 capitalize"},Aa={class:"text-sm text-neutral-400 text-right"},Ta={key:6,class:"mb-6"},Ja={key:0,class:"flex flex-wrap gap-1"},qa={key:7,class:"mb-6"},Va={key:0,class:"flex flex-wrap gap-1"},Ba={class:"border border-neutral-200 rounded-lg mb-4"},Ka={key:0,class:"px-4 pb-4 bg-neutral-50 overflow-x-auto"},Wa={class:"border border-neutral-200 rounded-lg mb-4"},Ha={class:"text-base text-neutral-900"},Ga={key:0,class:"text-neutral-400 ml-2"},Qa={key:0,class:"border-t border-neutral-200 px-4 py-3 bg-neutral-50"},Xa={class:"mb-3 rounded-md border border-neutral-200 bg-white px-3 py-2"},Ya={key:0,class:"mt-1 text-sm font-medium text-neutral-900"},Za={key:1,class:"mt-1 text-sm text-neutral-700"},eo={key:2,class:"mt-1 text-sm text-neutral-700"},to={key:3,class:"mt-1 text-sm text-neutral-700"},so={key:4,class:"mt-1 text-sm text-neutral-700"},no={key:0},ao={key:0,class:"flex justify-end mb-2 mt-1"},oo=["disabled","onClick"],io={key:0},lo={key:1}
1,ro={key:1,class:"text-sm text-neutral-400"},co={class:"border border-neutral-200 rounded-lg mb-4"},uo={class:"flex items-center justify-between px-4 py-3"},po={class:"text-base text-neutral-900"},_o={key:0,class:"text-neutral-400 ml-2"},xo=["disabled"],ho={key:0},mo={key:1},bo={key:0,class:"border-t border-neutral-200"},fo={class:"border-b border-neutral-100"},yo={class:"flex items-center justify-between px-4 py-2"},go={class:"text-sm text-neutral-600"},vo=["disabled"],ko={key:0},wo={key:1},Do={key:0,class:"px-4 py-3 bg-neutral-50"},Co={key:0,class:"flex justify-end mb-2 mt-1"},So=["disabled","onClick"],$o={key:0},Lo={key:1},jo={class:"border-b border-neutral-100"},Po={class:"flex items-center justify-between px-4 py-2"},Ro={class:"text-sm text-neutral-600"},No=["disabled"],Io={key:0},Uo={key:1},Fo={key:0,class:"px-4 py-3 bg-neutral-50"},Oo={key:0,class:"flex justify-end mb-2 mt-1"},Mo=["disabled","onClick"],Eo={key:0},zo={key:1},Ao={class:"border-b border-neutral-100"},To={class:"flex items-center justify-between px-4 py-2"},Jo={class:"text-sm text-neutral-600"},qo=["disabled"],Vo={key:0},Bo={key:1},Ko={key:0,class:"px-4 py-3 bg-neutral-50"},Wo={key:0,class:"flex justify-end mb-2 mt-1"},Ho=["disabled","onClick"],Go={key:0},Qo={key:1},Xo={class:"border-b border-neutral-100"},Yo={class:"flex items-center justify-between px-4 py-2"},Zo={class:"text-sm text-neutral-600"},ei=["disabled"],ti={key:0},si={key:1},ni={key:0,class:"px-4 py-3 bg-neutral-50"},ai={key:0,class:"flex justify-end mb-2 mt-1"},oi=["disabled","onClick"],ii={key:0},li={key:1},ri={class:"border-b border-neutral-100"},di={class:"text-sm text-neutral-600"},ci={key:0,class:"px-4 py-3 bg-neutral-50"},ui={key:0,class:"flex justify-end mb-2 mt-1"},pi=["disabled","onClick"],_i={key:0},xi={key:1},hi={class:"text-sm text-neutral-600"},mi={key:0,class:"px-4 py-3 bg-neutral-50"},bi={key:0,class:"flex justify-end mb-2 mt-1"},fi=["disabled","onClick"],yi={key:0},gi={key:1},vi={class:"border border-neutral-200 rounded-lg mb-4"},ki={class:"flex items-center justify-between px-4 py-3"},wi={class:"text-base text-neutral-900"},Di={key:0,class:"text-neutral-400 ml-2"},Ci=["disabled"],Si={key:0},$i={key:1},Li={key:0,class:"border-t border-neutral-200"},ji={class:"border-b border-neutral-100"},Pi={class:"text-sm text-neutral-600"},Ri={key:0,class:"px-4 py-3 bg-neutral-50"},Ni={key:0,class:"flex justify-end mb-2 mt-1"},Ii=["disabled","onClick"],Ui={key:0},Fi={key:1},Oi={class:"border-b border-neutral-100"},Mi={class:"text-sm text-neutral-600"},Ei={key:0,class:"px-4 py-3 bg-neutral-50"},zi={key:0,class:"flex justify-end mb-2 mt-1"},Ai=["disabled","onClick"],Ti={key:0},Ji={key:1},qi={class:"border-b border-neutral-100"},Vi={class:"text-sm text-neutral-600"},Bi={key:0,class:"px-4 py-3 bg-neutral-50"},Ki={key:0,class:"flex justify-end mb-2 mt-1"},Wi=["disabled","onClick"],Hi={key:0},Gi={key:1},Qi={class:"text-sm text-neutral-600"},Xi={key:0,class:"px-4 py-3 bg-neutral-50"},Yi={key:0,class:"flex justify-end mb-2 mt-1"},Zi=["disabled","onClick"],el={key:0},tl={key:1},sl={class:"border border-neutral-200 rounded-lg"},nl={class:"text-base text-neutral-900"},al={key:0,class:"text-neutral-400 ml-2"},ol={key:0,class:"border-t border-neutral-200"},il={class:"border-b border-neutral-100"},ll={class:"text-sm text-neutral-600"},rl={key:0,class:"px-4 py-3 bg-neutral-50"},dl={class:"text-sm text-neutral-600"},cl={key:0,class:"px-4 py-3 bg-neutral-50"},ul={class:"bg-white rounded-lg shadow-xl max-w-3xl w-full mx-4 max-h-[90vh] overflow-y-auto"},pl={class:"sticky top-0 bg-white border-b border-neutral-200 px-6 py-4 flex items-center justify-between"},_l=["innerHTML"],xl={class:"border-t border-neutral-200 px-6 py-4"},hl={class:"mt-5"},ml={key:0,class:"space-y-3"},bl={class:"flex items-center justify-between mb-2"},fl={key:0,class:"text-xs text-neutral-400"},yl={class:"text-sm text-neutral-800 mb-1"},gl={key:0,class:"text-sm text-neutral-500 mb-1"},vl={class:"text-xs text-neutral-400"},kl={key:1,class:"text-sm text-neutral-400"},wl={class:"flex justify-end pt-4"},ir=Je({__name:"[id]",setup(Dl){const _e=qe(),xe=Qe(),M=Ze(),he=Ve(),{$admin:$,$isDevelopment:v}=Be();Ke({title:"Person Details | Wiza Admin"});const e=We({person:null,loading:!0,error:null,personData:null,personDataLoading:!1,personDataLoaded:!1,prospectRevealsLoading:!1,showDataFlowModal:!1,dataFlowData:null,fetchLoading:{contactOut:!1,linkage:!1,prospeo:!1,rampedUp:!1},deleteLoading:{},emailUpdateLoading:{},editingEmailId:null,editingNote:"",markingIncorrectId:null,incorrectNote:"",ratingPhoneNumber:null,viewRatingsPhone:null,expandedSections:{experience:!0,education:!1,skills:!1,interests:!1,rawData:!1,cachedData:!1,staticData:!1,otherDataSources:!1,cachedContactOuts:!1,cachedLinkages:!1,cachedLinkedinScrapes:!1,cachedProspeos:!1,cachedRampedUps:!1,pdlCaches:!1,farmPdlPeople:!1,enrichedData:!1,enrichedEmails:!1,enrichedPhones:!1,staticDataExportAssistEmails:!1,staticDataSamnewPeople:!1,staticDataSolpubPhones:!1,staticDataSupressionPhones:!1,profilePictures:!1,searchRankings:!1,prospectReveals:!0,mainCompanyScoring:!0}});async function me(){const l=_e.params.id;if(!l){e.error="No person ID provided",e.loading=!1;return}e.loading=!0,e.error=null;try{const i=await $.post("/search/people",{query:l,by_id:!0});if(i.status===200&&i.data?.length>0){const u=i.data.find(_=>_.linkedin_id===l||_.pdl_id===l||_.linkedin_username===l);e.person=u||i.data[0]}else e.error="Person not found",M(i)}catch(i){console.error("Failed to load person:",i),e.error="Failed to load person"}finally{e.loading=!1}}async function be(){const l=e.personData?.prospect_reveals;if(!(!l||e.prospectRevealsLoading||l.prospects.length>=l.total)){e.prospectRevealsLoading=!0;try{const i=await $.post("/knowledge_bank/persons/prospect_reveals",{linkedin_id:e.person?.linkedin_id,linkedin_
1slug:e.person?.linkedin_username,offset:l.prospects.length});if(i.status===200){const u=new Set(l.prospects.map(k=>k.id)),_=(i.data.prospects||[]).filter(k=>u.has(k.id)?!1:(u.add(k.id),!0));l.prospects.push(..._),l.total=i.data.total}else M(i)}catch(i){console.error("Failed to load more prospect reveals:",i),M(i.response||{status:500,message:i.message})}finally{e.prospectRevealsLoading=!1}}}async function P(l,i){if(!(!l&&!i)){e.personDataLoading=!0,e.personDataLoaded=!1,e.personData=null;try{const u=await $.post("/knowledge_bank/persons/person_data",{linkedin_id:l,linkedin_slug:i});u.status===200&&(e.personData=u.data,e.personDataLoaded=!0)}catch(u){console.error("Failed to load person data:",u)}finally{e.personDataLoading=!1}}}async function fe(){if(e.showDataFlowModal=!0,!e.dataFlowData)try{const l=await $.get("/knowledge_bank/persons/data_retrieval_order");l.status===200&&(e.dataFlowData=l.data)}catch(l){console.error("Failed to fetch data flow info:",l)}}function y(l){e.expandedSections[l]=!e.expandedSections[l]}function h(l){return l?.length||0}function Q(){return e.personData?h(e.personData.cached_contact_outs)+h(e.personData.cached_linkages)+h(e.personData.cached_prospeos)+h(e.personData.cached_ramped_ups)+h(e.personData.pdl_caches)+h(e.personData.farm_pdl_people):0}function X(){return e.personData?h(e.personData.static_data_export_assist_emails)+h(e.personData.static_data_samnew_people)+h(e.personData.static_data_solpub_phones)+h(e.personData.static_data_supression_phones):0}function ye(){return e.personData?h(e.personData.profile_pictures)+h(e.personData.search_rankings):0}async function ge(){if(e.person?.linkedin_username){e.fetchLoading.contactOut=!0;try{(await $.post("/knowledge_bank/persons/fetch_contact_out",{linkedin_slug:e.person.linkedin_username})).status===200&&await P(e.person.linkedin_id,e.person.linkedin_username)}catch(l){console.error("Failed to fetch ContactOut:",l)}finally{e.fetchLoading.contactOut=!1}}}async function ve(){if(e.person?.linkedin_username){e.fetchLoading.linkage=!0;try{(await $.post("/knowledge_bank/persons/fetch_linkage",{linkedin_slug:e.person.linkedin_username})).status===200&&await P(e.person.linkedin_id,e.person.linkedin_username)}catch(l){console.error("Failed to fetch Linkage:",l)}finally{e.fetchLoading.linkage=!1}}}async function ke(){if(e.person?.linkedin_username){e.fetchLoading.prospeo=!0;try{(await $.post("/knowledge_bank/persons/fetch_prospeo",{linkedin_slug:e.person.linkedin_username})).status===200&&await P(e.person.linkedin_id,e.person.linkedin_username)}catch(l){console.error("Failed to fetch Prospeo:",l)}finally{e.fetchLoading.prospeo=!1}}}async function we(){if(e.person?.linkedin_username){e.fetchLoading.rampedUp=!0;try{(await $.post("/knowledge_bank/persons/fetch_ramped_up",{linkedin_slug:e.person.linkedin_username})).status===200&&await P(e.person.linkedin_id,e.person.linkedin_username)}catch(l){console.error("Failed to fetch RampedUp:",l)}finally{e.fetchLoading.rampedUp=!1}}}async function D(l,i){if(!v)return;const u=`${l}-${i}`;e.deleteLoading[u]=!0;try{(await $.post("/knowledge_bank/persons/delete_record",{table:l,id:i})).status===200&&await P(e.person.linkedin_id,e.person.linkedin_username)}catch(_){console.error(`Failed to delete ${l} record:`,_)}finally{e.deleteLoading[u]=!1}}function m(l,i){return e.deleteLoading[`${l}-${i}`]||!1}function J(l){if(!v)return;const i=l.replace(/_/g," ");he.require({message:`Are you sure you want to delete all ${i} records for this person?`,header:"Delete Confirmation",icon:"pi pi-exclamation-triangle",acceptClass:"p-button-danger",accept:async()=>{const u=`section-${l}`;e.deleteLoading[u]=!0;try{(await $.post("/knowledge_bank/persons/delete_section",{section:l,linkedin_
1slug:e.person.linkedin_username,linkedin_id:e.person.linkedin_id})).status===200&&await P(e.person.linkedin_id,e.person.linkedin_username)}catch(_){console.error(`Failed to delete ${l}:`,_)}finally{e.deleteLoading[u]=!1}}})}function F(l){return e.deleteLoading[`section-${l}`]||!1}function Y(l,i){e.editingEmailId=l,e.editingNote=i||""}function q(){e.editingEmailId=null,e.editingNote=""}async function V(l,i,u){e.emailUpdateLoading[l]=!0;try{const _={id:l};i!==void 0&&(_.incorrect=i),u!==void 0&&(_.note=u),(await $.post("/knowledge_bank/persons/update_enriched_email",_)).status===200&&(await P(e.person.linkedin_id,e.person.linkedin_username),q())}catch(_){console.error("Failed to update enriched email:",_)}finally{e.emailUpdateLoading[l]=!1}}function Z(l){V(l,void 0,e.editingNote)}function De(l){e.markingIncorrectId=l,e.incorrectNote=""}function B(){e.markingIncorrectId=null,e.incorrectNote=""}function ee(l){e.incorrectNote.trim()&&V(l,!0,e.incorrectNote).then(()=>{B()})}async function Ce(l){const i=e.ratingPhoneNumber;if(e.ratingPhoneNumber=null,!!i)try{const u=await $.post("/knowledge_bank/persons/create_data_rating",{linkedin_id:e.person?.linkedin_id,linkedin_slug:e.person?.linkedin_username,data_type:"phone",data_value:i,is_correct:!1,note:l.notes||null,reason:l.reason});
1u.status===200?await P(e.person.linkedin_id,e.person.linkedin_username):M(u)}catch(u){console.error("Error submitting phone rating:",u),M(u.response||{status:500,message:u.message})}}He(async()=>{await me(),e.person&&P(e.person.linkedin_id,e.person.linkedin_username)});function te(l){if(l)return l.startsWith("http")?l:`https://${l}`}function se(l){if(!l)return"â";if(l.length===7){const[i,u]=l.split("-");return`${["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][Number.parseInt(u)-1]} ${i}`}return l}function ne(l,i){const u=se(l),_=i?se(i):"Present";return`${u} â ${_}`}function ae(l){if(typeof l!="string"||!l)return null;const i=Date.parse(l);return Number.isNaN(i)?null:i}const C=A(()=>{const l=e.personData?.cached_linkedin_scrapes||[],i=[ae(e.person?.last_scraped_at),...l.map(_=>ae(_.last_scraped_at))].filter(_=>_!==null),u=i.length>0?Math.max(...i):null;return u!==null?{status:"recorded",date:new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(new Date(u))}:e.personDataLoading?{status:"checking",date:null}:e.personDataLoaded?l.length>0?{status:"date-unavailable",date:null}:{status:"not-recorded",date:null}:{status:"unavailable",date:null}});function oe(l){if(l.linkedin_url)return te(l.linkedin_url);if(l.linkedin_username)return`https://linkedin.com/in/${l.linkedin_username}`}function Se(l){const i=[];return l.location_locality&&i.push(l.location_locality),l.location_region&&i.push(l.location_region),l.location_country&&i.push(l.location_country),i.length>0?i.join(", "):l.location_name||"â"}function K(l){if(!l)return"unknown";const i=l.toLowerCase().trim();return i==="farm_enriched"||i==="farmenriched"||i==="enriched"?"farmenriched":i}function $e(){const l=new Map;for(const i of je()){if(!i.email)continue;const u=(i.type||"").toLowerCase().trim(),_=`${i.email.toLowerCase().trim()}|${u}`,k=K(i.source),x=l.get(_);if(!x){l.set(_,{email:i.email,type:i.type,status:i.status,sources:[k],isStatic:i.isStatic});continue}!x.type&&i.type&&(x.type=i.type),(!x.status||x.status==="invalid")&&i.status&&i.status!=="invalid"&&(x.status=i.status),x.sources.includes(k)||x.sources.push(k),i.isStatic&&(x.isStatic=!0)}return[...l.values()]}function I(l){if(!l)return"";const i=l.replace(/\D/g,"");return i.length===11&&i.startsWith("1")?`+${i}`:i.length===10?`+1${i}`:l}function Le(){const l=new Map;for(const i of Re()){if(!i.phone)continue;const u=(i.type||"").toLowerCase().trim(),_=`${I(i.phone)}|${u}`,k=K(i.source),x=l.get(_);if(!x){l.set(_,{phone:i.phone,type:i.type,sources:[k],isStatic:i.isStatic,isInvalid:i.isInvalid,isFormatInvalid:i.isFormatInvalid,hasReports:i.hasReports,badReportCount:i.badReportCount||0});continue}!x.type&&i.type&&(x.type=i.type),x.sources.includes(k)||x.sources.push(k),i.isStatic&&(x.isStatic=!0),i.isInvalid&&(x.isInvalid=!0),i.isFormatInvalid&&(x.isFormatInvalid=!0),i.hasReports&&(x.hasReports=!0),i.badReportCount&&(x.badReportCount=Math.max(x.badReportCount||0,i.badReportCount))}return[...l.values()]}const W=A(()=>$e()),H=A(()=>Le());function je(){if(!e.personData)return[];const l=new Map;for(const u of e.personData.enriched_emails||[])u.email&&l.set(u.email.toLowerCase(),u.incorrect?"invalid":u.email_status);const i=new Set(["export_assist","samnew","solpub"]);return(e.personData.extracted_emails||[]).map(u=>({email:u.email,type:u.type,source:u.source,status:l.get(u.email?.toLowerCase()),isStatic:i.has(u.source)}))}function Pe(l){if(!e.personData)return[];const i=I(l),u=[];for(const _ of e.personData.enriched_phones||[])I(_.phone_number)===i&&_.data_ratings&&u.push(..._.data_ratings);return[...new Map(u.map(_=>[_.id,_])).values()]}const E=A(()=>e.viewRatingsPhone?Pe(e.viewRatingsPhone):[]);function Re(){if(!e.personData)return[];const l=new Set,i=new Set,u=new Map,_=new Map;for(const x of e.personData.enriched_phones||[]){const R=I(x.phone_number);(x.incorrect||x.has_bad_reports)&&l.add(R),x.data_ratings?.length&&(i.add(R),_.set(R,[..._.get(R)||[],...x.data_ratings]))}for(const[x,R]of _){const z=[...new Map(R.map(O=>[O.id,O])).values()].filter(O=>!O.is_correct).length;z&&u.set(x,z)}const k=new Set(["solpub","supression","samnew"]);return(e.personData.extracted_phones||[]).map(x=>({phone:x.phone,type:x.type,source:x.source,isStatic:k.has(x.source),isInvalid:l.has(I(x.phone)),isFormatInvalid:x.val
1id===!1,hasReports:i.has(I(x.phone)),badReportCount:u.get(I(x.phone))||0}))}function ie(l){return{enriched:"bg-blue-100 text-white",farmenriched:"bg-blue-100 text-white",contactout:"bg-primary-100 text-white",linkage:"bg-red-100 text-white",prospeo:"bg-yellow-100 text-neutral-900",rampedup:"bg-aqua-100 text-white",pdl:"bg-primary-200 text-white",pdl_cache:"bg-blue-200 text-white",export_assist:"bg-aqua-200 text-white",samnew:"bg-yellow-200 text-white",solpub:"bg-green-200 text-white",supression:"bg-red-200 text-white"}[l]||"bg-neutral-400 text-white"}function le(l){return K(l)||"unknown"}function re(l){return l&&{work:"bg-blue-0 text-blue-200",personal:"bg-green-0 text-green-200",mobile:"bg-green-0 text-green-200",direct:"bg-yellow-0 text-yellow-200",other:"bg-neutral-100 text-neutral-500"}[l]||"bg-neutral-100 text-neutral-500"}function Ne(l){return l?{valid:"text-green-200",verified:"text-green-200",invalid:"text-red-100 line-through",risky:"text-yellow-200",unknown:"text-neutral-400"}[l]||"text-neutral-500":""}function de(l){const i=Math.round(l*100)/100;return i>0?`+${i}`:`${i}`}function ce(l){return l>0?"text-green-300":l<0?"text-red-200":"text-neutral-500"}return(l,i)=>{const u=Ge("ConfirmDialog"),_=Ue,k=Fe,x=Oe,R=Me,S=Ee,z=ze,O=Ae,Ie=Te;return a(),o(b,null,[g(u),n("div",et,[g(_,{to:"/wizaadmin/knowledge-bank/person_search",class:"inline-flex items-center gap-1.5 text-sm text-neutral-500 hover:text-neutral-700 mb-6"},{default:U(()=>i[37]||(i[37]=[n("i",{class:"pi pi-arrow-left text-xs"},null,-1),w(" Back to Search ")])),_:1,__:[37]}),s(e).loading?(a(),o("div",tt,[g(k,{class:"w-6 h-6 animate-spin text-neutral-400"})])):s(e).error?(a(),o("div",st,[n("div",nt,d(s(e).error),1),g(_,{to:"/wizaadmin/knowledge-bank/person_search",class:"text-neutral-600 hover:underline"},{default:U(()=>i[38]||(i[38]=[w(" Return to search ")])),_:1,__:[38]})])):s(e).person?(a(),o("div",at,[s(e).person.erased_at?(a(),o("div",ot,[i[39]||(i[39]=n("p",{class:"text-sm font-medium text-red-100"}," Removed for a data deletion request (DROP / CA Delete Act) ",-1)),n("p",it," This person's personal data was erased on "+d(new Date(s(e).person.erased_at).toLocaleDateString())+" to comply with a California Delete Act (SB 362) request. The fields below reflect the redacted record. ",1)])):r("",!0),n("div",lt,[s(e).person.profile_picture?(a(),o("img",{key:0,src:s(e).person.profile_picture,alt:s(e).person.full_name,class:"w-16 h-16 rounded-full object-cover flex-shrink-0"},null,8,rt)):(a(),o("div",dt,[n("span",ct,d(s(e).person.first_name?.[0]?.toUpperCase())+d(s(e).person.last_name?.[0]?.toUpperCase()),1)])),n("div",ut,[n("div",pt,[n("h1",_t,d(s(e).person.full_name||"Unknown"),1),s(e).person.open_to_work?(a(),o("span",xt," Open to Work ")):r("",!0),s(e).personData?.optout?(a(),o("span",ht,d(s(e).personData.optout.gdpr?"GDPR Opted Out":"Opted Out"),1)):r("",!0)]),s(e).person.job_title?(a(),o("p",mt,[w(d(s(e).person.job_title)+" ",1),s(e).person.job_company_name?(a(),o("span",bt,[i[40]||(i[40]=w(" at ")),n("span",ft,d(s(e).person.job_company_name),1)])):r("",!0)])):r("",!0),s(e).person.location_name?(a(),o("p",yt,d(Se(s(e).person)),1)):r("",!0),n("div",gt,[oe(s(e).person)?(a(),o("a",{key:0,href:oe(s(e).person),target:"_blank",class:"text-sm text-neutral-600 hover:text-neutral-900"}," LinkedIn ",8,vt)):r("",!0),s(e).person.has_twitter_url?(a(),o("a",{key:1,href:`https://twitter.com/${s(e).person.twitter_username}`,target:"_blank",class:"text-sm text-neutral-600 hover:text-neutral-900"}," Twitter ",8,kt)):r("",!0),s(e).person.has_github_url?(a(),o("a",{key:2,href:`https://github.com/${s(e).person.github_username}`,target:"_blank",class:"text-sm text-neutral-600 hover:text-neutral-900"}," GitHub ",8,wt)):r("",!0),s(e).person.job_company_website?(a(),o("a",{key:3,href:te(s(e).person.job_company_website),target:"_blank",class:"text-sm text-neutral-600 hover:text-neutral-900"},d(s(e).person.job_company_website),9,Dt)):r("",!0),s(e).person.linkedin_username?(a(),o(b,{key:4},[i[42]||(i[42]=n("span",{class:"text-neutral-300"},"|",-1)),g(_,{to:`/app/prospect?q=${encodeURIComponent(JSON.stringify({linkedin_
1slug:[s(e).person.linkedin_username]}))}`,target:"_blank",class:"text-sm text-blue-100 hover:text-blue-200"},{default:U(()=>i[41]||(i[41]=[w(" Wiza Prospect ")])),_:1,__:[41]},8,["to"])],64)):r("",!0)])])]),n("div",{class:p(["mb-6 flex flex-wrap items-center justify-between gap-3 rounded-lg border px-4 py-3",["not-recorded","checking","unavailable"].includes(s(C).status)?"border-neutral-200 bg-neutral-50":"border-green-100 bg-green-25"])},[n("div",null,[i[43]||(i[43]=n("div",{class:"text-xs font-medium uppercase tracking-wide text-neutral-500"},"LinkedIn profile update",-1)),s(C).status==="recorded"?(a(),o("p",Ct," Last profile update "+d(s(C).date),1)):s(C).status==="date-unavailable"?(a(),o("p",St," Profile update found, but no update date was recorded ")):s(C).status==="checking"?(a(),o("p",$t," Checking profile update history ")):s(C).status==="unavailable"?(a(),o("p",Lt," Profile update history unavailable ")):(a(),o("p",jt," No LinkedIn profile update recorded "))]),n("span",{class:p(["rounded-full px-2.5 py-1 text-xs font-medium",["not-recorded","checking","unavailable"].includes(s(C).status)?"bg-neutral-200 text-neutral-600":"bg-green-100 text-green-300"])},d(s(C).status==="checking"?"Checking":s(C).status==="unavailable"?"Unavailable":s(C).status==="not-recorded"?"Not updated":"Updated"),3)],2),s(e).person.summary?(a(),o("p",Pt,d(s(e).person.summary),1)):r("",!0),n("div",Rt,[n("div",Nt,[i[44]||(i[44]=n("div",{class:"text-xs text-neutral-400 uppercase tracking-wide"},"Industry",-1)),n("div",It,d(s(e).person.industry||"â"),1)]),n("div",Ut,[i[45]||(i[45]=n("div",{class:"text-xs text-neutral-400 uppercase tracking-wide"},"Company",-1)),n("div",Ft,d(s(e).person.job_company_name||"â"),1)]),n("div",Ot,[i[46]||(i[46]=n("div",{class:"text-xs text-neutral-400 uppercase tracking-wide"},"Company Size",-1)),n("div",Mt,d(s(e).person.job_company_size||"â"),1)]),n("div",Et,[i[47]||
1(i[47]=n("div",{class:"text-xs text-neutral-400 uppercase tracking-wide"},"LinkedIn ID",-1)),n("div",zt,d(s(e).person.linkedin_id||"â"),1)]),n("div",At,[i[48]||(i[48]=n("div",{class:"text-xs text-neutral-400 uppercase tracking-wide"},"PDL ID",-1)),n("div",{class:"text-base text-neutral-900 mt-1 font-mono truncate",title:s(e).person.pdl_id},d(s(e).person.pdl_id||"â"),9,Tt)]),n("div",Jt,[i[49]||(i[49]=n("div",{class:"text-xs text-neutral-400 uppercase tracking-wide"},"Sex",-1)),n("div",qt,d(s(e).person.sex||"â"),1)])]),s(e).personData?(a(),o("div",Vt,[n("div",Bt,[n("button",{class:"text-sm text-blue-100 hover:text-blue-200 flex items-center gap-1",onClick:i[0]||(i[0]=t=>fe())},i[50]||(i[50]=[n("i",{class:"pi pi-info-circle"},null,-1),w(" How data is retrieved ")]))]),s(W).length>0?(a(),o("div",Kt,[n("h3",Wt,"Emails ("+d(s(W).length)+")",1),n("div",Ht,[n("table",Gt,[i[51]||(i[51]=n("thead",{class:"bg-neutral-50 border-b border-neutral-200"},[n("tr",null,[n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase w-full"},"Email"),n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase whitespace-nowrap"},"Type"),n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase whitespace-nowrap"},"Status"),n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase whitespace-nowrap"},"Source")])],-1)),n("tbody",Qt,[(a(!0),o(b,null,f(s(W),(t,c)=>(a(),o("tr",{key:`email-${c}`,class:"hover:bg-neutral-25"},[n("td",{class:p(["px-4 py-2 font-mono",t.status==="invalid"?"line-through text-neutral-300":"text-neutral-800"])},d(t.email),3),n("td",Xt,[t.type?(a(),o("span",{key:0,class:p(["text-xs px-2 py-0.5 rounded",re(t.type)])},d(t.type),3)):r("",!0)]),n("td",Yt,[t.status?(a(),o("span",{key:0,class:p(["text-xs",Ne(t.status)])},d(t.status),3)):r("",!0)]),n("td",Zt,[(a(!0),o(b,null,f(t.sources,j=>(a(),o("span",{key:`email-${c}-${j}`,class:p(["text-xs px-2 py-0.5 rounded mr-1",ie(j)])},d(le(j)),3))),128)),t.isStatic?(a(),o("span",es," static ")):r("",!0)])]))),128))])])])])):r("",!0),s(H).length>0?(a(),o("div",ts,[n("h3",ss,"Phones ("+d(s(H).length)+")",1),n("div",ns,[n("table",as,[i[52]||(i[52]=n("thead",{class:"bg-neutral-50 border-b border-neutral-200"},[n("tr",null,[n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase w-full"},"Phone"),n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase whitespace-nowrap"},"Type"),n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase whitespace-nowrap"},"Status"),n("th",{class:"text-left px-4 py-2 text-xs font-medium text-neutral-600 uppercase whitespace-nowrap"},"Source")])],-1)),n("tbody",os,[(a(!0),o(b,null,f(s(H),(t,c)=>(a(),o("tr",{key:`phone-${c}`,class:"hover:bg-neutral-25"},[n("td",is,d(t.phone),1),n("td",ls,[t.type?(a(),o("span",{key:0,class:p(["text-xs px-2 py-0.5 rounded",re(t.type)])},d(t.type),3)):r("",!0)]),n("td",rs,[n("span",ds,[t.isFormatInvalid?(a(),o("span",cs," invalid ")):r("",!0),t.hasReports?(a(),o("button",{key:1,class:p(["text-xs px-2 py-0.5 rounded cursor-pointer inline-flex items-center gap-1",t.isInvalid?"bg-red-100 text-white":t.badReportCount?"bg-yellow-100 text-neutral-900":"bg-green-200 text-white"]),onClick:j=>s(e).viewRatingsPhone=t.phone},[w(d(t.isInvalid?"incorrect":"valid")+" ",1),!t.isInvalid&&t.badReportCount?(a(),o("span",ps,d(t.badReportCount),1)):r("",!0)],10,us)):r("",!0)])]),n("td",_s,[(a(!0),o(b,null,f(t.sources,j=>(a(),o("span",{key:`phone-${c}-${j}`,class:p(["text-xs px-2 py-0.5 rounded mr-1",ie(j)])},d(le(j)),3))),128)),t.isStatic?(a(),o("span",xs," static ")):r("",!0)])]))),128))])])])])):r("",!0)])):r("",!0),i[65]||(i[65]=n("div",{class:"border-t border-neutral-200 my-6"},null,-1)),n("div",hs,[n("div",ms,[n("button",{class:"flex-1 flex items-center justify-between text-left hover:bg-neutral-50 transition-colors -ml-4 -my-3 px-4 py-3",onClick:i[1]||(i[1]=t=>y("enrichedData"))},[n("span",bs,[w(" Enriched Data ("+d(h(s(e).personData?.enriched_emails))+" "+d(h(s(e).personData?.enriched_emails)===1?"email":"emails")+", "+d(h(s(e).personData?.enriched_phones))+" "+d(h(s(e).personData?.enriched_phones)===1?"phone":"phones")+") ",1),s(e).personDataLoading?(a(),o("span",fs,"Loading...")):r("",!0)]),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.enrichedData?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(v)&&(h(s(e).personData?.enriched_emails)>0||h(s(e).personData?.enriched_phones)>0)?(a(),o("button",{key:0,class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0 ml-2",disabled:F("enriched_data"),onClick:i[2]||(i[2]=N(t=>J("enriched_data"),["stop"]))},[F("enriched_data")?(a(),o("span",gs,"Deleting...")):(a(),o("span",vs,"Delete All"))],8,ys)):r("",!0)]),s(e).expandedSections.enrichedData&&s(e).personData?(a(),o("div",ks,[n("div",null,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[3]||(i[3]=t=>y("enrichedEmails"))},[n("span",ws,"enriched_emails ("+d(h(s(e).personData.enriched_emails))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.enrichedEmails?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.enrichedEmails&&s(e).personData.enriched_emails?.length>0?(a(),o("div",Ds,[(a(!0),o(b,null,f(s(e).personData.enriched_emails,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0 border border-neutral-200 rounded p-3 bg-white"},[n("div",Cs,[n("div",Ss,[n("span",{class:p(["font-medium",t.incorrect?"text-neutral-400 line-through":"text-neutral-900"])},d(t.email),3),n("span",{class:p(["text-xs px-2 py-0.5 rounded",t.email_type==="work"?"bg-blue-200 text-white":"bg-primary-25 text-primary-200"])},d(t.email_type||"unknown"),3),t.incorrect?(a(),o("span",$s," invalid ")):r("",!0),t.confidence_score!=null&&!t.incorrect?(a(),o("span",Ls,d(t.confidence_score)+"% ",1)):r("",!0),t.email_status?(a(),o("span",{key:2,class:
1p(["text-xs px-2 py-0.5 rounded",{"bg-green-25 text-green-300":t.email_status==="valid","bg-red-25 text-red-200":t.email_status==="invalid","bg-yellow-25 text-yellow-200":["risky","accept_all","unknown"].includes(t.email_status),"bg-neutral-100 text-neutral-600":!["valid","invalid","risky","accept_all","unknown"].includes(t.email_status)}])},d(t.email_status),3)):r("",!0),t.email_pattern?(a(),o("span",js,d(t.email_pattern),1)):r("",!0)]),n("div",Ps,[s(v)?(a(),o("button",{key:0,class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("enriched_emails",t.id),onClick:c=>D("enriched_emails",t.id)},[m("enriched_emails",t.id)?(a(),o("span",Ns,"Deleting...")):(a(),L(x,{key:1,class:"w-4 h-4"}))],8,Rs)):r("",!0),t.incorrect?(a(),o("button",{key:2,class:"text-xs text-neutral-500 hover:text-neutral-700 px-2 py-1 rounded hover:bg-neutral-100",disabled:s(e).emailUpdateLoading[t.id],onClick:c=>V(t.id,!1)},[s(e).emailUpdateLoading[t.id]?(a(),o("span",Fs,"...")):(a(),o("span",Os,"Mark Valid"))],8,Us)):(a(),o("button",{key:1,class:"text-xs text-neutral-500 hover:text-neutral-700 px-2 py-1 rounded hover:bg-neutral-100",onClick:c=>De(t.id)}," â Mark Incorrect ",8,Is))])]),s(e).markingIncorrectId===t.id?(a(),o("div",Ms,[i[53]||(i[53]=n("div",{class:"text-xs text-neutral-600 mb-2"},"Why is this email incorrect?",-1)),ue(n("input",{"onUpdate:modelValue":i[4]||(i[4]=c=>s(e).incorrectNote=c),type:"text",class:"w-full text-sm px-2 py-1.5 border border-neutral-300 rounded focus:outline-none focus:ring-1 focus:ring-neutral-400 mb-2",placeholder:"Enter reason...",onKeyup:[T(c=>ee(t.id),["enter"]),T(B,["escape"])]},null,40,Es),[[pe,s(e).incorrectNote]]),n("div",zs,[n("button",{class:"text-xs bg-neutral-800 text-white px-3 py-1.5 rounded hover:bg-neutral-900",disabled:!s(e).incorrectNote.trim()||s(e).emailUpdateLoading[t.id],onClick:c=>ee(t.id)},[s(e).emailUpdateLoading[t.id]?(a(),o("span",Ts,"Saving...")):(a(),o("span",Js,"Confirm"))],8,As),n("button",{class:"text-xs text-neutral-500 px-3 py-1.5 rounded hover:bg-neutral-100",onClick:B}," Cancel ")])])):r("",!0),s(e).editingEmailId===t.id?(a(),o("div",qs,[n("div",Vs,[ue(n("input",{"onUpdate:modelValue":i[5]||(i[5]=c=>s(e).editingNote=c),type:"text",class:"flex-1 text-xs px-2 py-1.5 border border-neutral-300 rounded focus:outline-none focus:ring-1 focus:ring-neutral-400",placeholder:"Add a note...",onKeyup:[T(c=>Z(t.id),["enter"]),T(q,["escape"])]},null,40,Bs),[[pe,s(e).editingNote]]),n("button",{class:"text-xs text-neutral-600 px-2 py-1 rounded hover:bg-neutral-100",disabled:s(e).emailUpdateLoading[t.id],onClick:c=>Z(t.id)}," Save ",8,Ks),n("button",{class:"text-xs text-neutral-400 px-2 py-1 rounded hover:bg-neutral-100",onClick:q}," Cancel ")])])):t.note&&s(e).markingIncorrectId!==t.id?(a(),o("div",Ws,[n("span",Hs,d(t.note),1),n("button",{class:"text-xs text-neutral-400 hover:text-neutral-600",onClick:c=>Y(t.id,t.note)}," â ",8,Gs)])):s(e).markingIncorrectId!==t.id?(a(),o("div",Qs,[n("button",{class:"text-xs text-neutral-400 hover:text-neutral-600",onClick:c=>Y(t.id,"")}," + Add note ",8,Xs)])):r("",!0),n("div",Ys,[t.company_domain?(a(),o("div",Zs,"Domain: "+d(t.company_domain),1)):r("",!0),t.company_linkedin_id?(a(),o("div",en,"Company LI: "+d(t.company_linkedin_id),1)):r("",!0),n("div",null,"Created: "+d(new Date(t.created_at).toLocaleString()),1)]),t.sources?.length>0?(a(),o("div",tn,[i[54]||(i[54]=n("div",{class:"text-xs text-neutral-400 mb-1"},"Sources:",-1)),n("div",sn,[(a(!0),o(b,null,f(t.sources,c=>(a(),o("span",{key:c.id,class:"text-xs bg-neutral-100 text-neutral-600 px-2 py-0.5 rounded"},d(c.source),1))),128))])])):r("",!0),t.verifications&&Object.keys(t.verifications).length>0?(a(),o("div",nn,[i[57]||(i[57]=n("div",{class:"text-xs text-neutral-400 mb-1"},"Verifications:",-1)),n("div",an,[t.verifications.bounceban?(a(),o("div",on,[i[55]||(i[55]=n("span",{class:"text-neutral-500 w-24"},"BounceBan:",-1)),n("span",{class:p(["px-2 py-0.5 rounded",{"bg-green-25 text-green-300":t.verifications.bounceban.result==="deliverable","bg-red-25 text-red-200":t.verifications.bounceban.result==="undeliverable","bg-yellow-25 text-yellow-200":t.verifications.bounceban.result==="risky","bg-neutral-100 text-neutral-600":!["deliverable","undeliverable","risky"].includes(t.verifications.bounceban.result)}])},d(t.verifications.bounceban.result),3),t.verifications.bounceban.score?(a(),o("span",ln," score: "+d(t.verifications.bounceban.score),1)):r("",!0),t.verifications.bounceban.is_accept_all?(a(),o("span",rn,"(accept-all)")):r("",!0),s(v)?(a(),o("button",{key:2,class:"text-red-100 hover:text-red-200 p-0.5 rounded hover:bg-red-0 ml-auto",disabled:m("bounce_ban_caches",t.verifications.bounceban.id),onClick:c=>D("bounce_ban_caches",t.verifications.bounceban.id)},[m("bounce_ban_caches",t.verifications.bounceban.id)?(a(),o("span",cn,"...")):(a(),L(x,{key:1,class:"w-3.5 h-3.5"}))],8,dn)):r("",!0)])):r("",!0),t.verifications.revenuebase?(a(),o("div",un,[i[56]||(i[56]=n("span",{class:"text-neutral-500 w-24"},"Revenuebase:",-1)),n("span",{class:p(["px-2 py-0.5 rounded",{"bg-green-25 text-green-300":t.verifications.revenuebase.status==="Valid","bg-red-25 text-red-200":t.verifications.revenuebase.status==="Invalid","bg-yellow-25 text-yellow-200":t.verifications.revenuebase.status==="Unknown","bg-neutral-100 text-neutral-600":!["Valid","Invalid","Unknown"].includes(t.verifications.revenuebase.status)}])},d(t.verifications.revenuebase.status),3),s(v)?(a(),o("button",{key:0,class:"text-red-100 hover:text-red-200 p-0.5 rounded hover:bg-red-0 ml-auto",disabled:m("revenuebase_caches",t.verifications.revenuebase.id),onClick:c=>D("revenuebase_caches",t.verifications.revenuebase.id)},[m("revenuebase_caches",t.verifications.revenuebase.id)?(a(),o("span",_n,"...")):(a(),L(x,{key:1,class:"w-3.5 h-3.5"}))],8,pn)):r("",!0)])):r("",!0),(a(!0),o(b,null,f(t.verifications.cached_verifications||[],c=>(a(),o("div",{key:c.id,class:"flex items-center gap-2 text-xs"},[n("span",xn,d(c.validator||"Emailable")+":",1),n("span",{class:p(["px-2 py-0.5 rounded",{"bg-green-25 text-green-300":c.state==="deliverable","bg-red-25 text-red-200":c.state==="undeliverable","bg-yellow-25 text-yellow-200":c.state==="risky","bg-neutral-100 text-neutral-600":!["deliverable","undeliverable","risky"].includes(c.state)}])},d(c.state),3),c.reason?(a(),o("span",hn," ("+d(c.reason)+") ",1)):r("",!0),c.accept_all?(a(),o("span",mn,"(accept-all)")):r("",!0),c.verified_at?(a(),o("span",bn,d(new Date(c.verified_at).toLocaleDateString()),1)):r("",!0),s(v)?(a(),o("button",{key:3,class:"text-red-100 hover:text-red-200 p-0.5 rounded hover:bg-red-0 ml-auto",disabled:m("cached_verifications",c.id),onClick:j=>D("cached_verifications",c.id)},[m("cached_verifications",c.id)?(a(),o("span",yn,"...")):(a(),L(x,{key:1,class:"w-3.5 h-3.5"}))],8,fn)):r("",!0)]))),128))])])):r("",!0)]))),128))])):s(e).expandedSections.enrichedEmails?(a(),o("div",gn," No enriched emails found ")):r("",!0)]),n("div",null,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[6]||(i[6]=t=>y("enrichedPhones"))},[n("span",vn,"enriched_phones ("+d(h(s(e).personData.enriched_phones))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.enrichedPhones?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.enrichedPhones&&s(e).personData.enriched_phones?.length>0?(a(),o("div",kn,[(a(!0),o(b,null,f(s(e).personData.enriched_phones,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0 border border-neutral-200 rounded p-3 bg-white"},[n("div",wn,[n("div",Dn,[n("span",{class:p(["font-medium font-mono",t.incorrect||t.has_bad_reports?"text-neutral-400 line-through":"text-neutral-900"])},d(t.phone_number),3),t.phone_type?(a(),o("span",{key:0,class:p(["text-xs px-2 py-0.5 rounded",t.phone_type==="mobile"?"bg-green-200 text-white":"bg-neutral-100 text-neutral-600"])},d(t.phone_type),3)):r("",!0),t.has_bad_reports?(a(),o("button",{key:1,class:"text-xs bg-red-100 text-white px-2 py-0.5 rounded cursor-pointer",onClick:c=>s(e).viewRatingsPhone=t.phone_number}," invalid ",8,Cn)):t.incorrect?(a(),o("span",Sn," invalid ")):r("",!0),t.confidence_score!=null&&!t.has_bad_reports&&!t.incorrect?(a(),o("span",$n,d(t.confidence_score)+"% ",1)):r("",!0)]),n("div",Ln,[s(v)?(a(),o("button",{key:0,class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("enriched_phones",t.id),onClick:c=>D("enriched_phones",t.id)},[m("enriched_phones",t.id)?(a(),o("span",Pn,"Deleting...")):(a(),L(x,{key:1,class:"w-4 h-4"}))],8,jn)):r("",!0),!t.incorrect&&!t.data_ratings?.length?(a(),o("button",{key:1,class:"text-xs text-neutral-500 hover:text-neutral-700 px-2 py-1 rounded hover:bg-neutral-100",onClick:c=>s(e).ratingPhoneNumber=t.phone_number}," â Mark Incorrect ",8,Rn)):r("",!0)])]),t.note?(a(),o("div",Nn,[n("span",In,d(t.note),1)])):r("",!0),n("div",Un,[t.first_name||t.last_name?(a(),o("div",Fn,"Name: "+d(t.first_name)+" "+d(t.last_name),1)):r("",!0),n("div",null,"Created: "+d(new Date(t.created_at).toLocaleStr
1ing()),1)]),t.sources?.length>0?(a(),o("div",On,[i[58]||(i[58]=n("div",{class:"text-xs text-neutral-400 mb-1"},"Sources:",-1)),n("div",Mn,[(a(!0),o(b,null,f(t.sources,c=>(a(),o("span",{key:c.id,class:"text-xs bg-neutral-100 text-neutral-600 px-2 py-0.5 rounded"},d(c.source),1))),128))])])):r("",!0),t.data_ratings&&t.data_ratings.length>0?(a(),o("div",En,[n("div",zn,"Reports ("+d(t.data_ratings.length)+"):",1),(a(!0),o(b,null,f(t.data_ratings,c=>(a(),o("div",{key:c.id,class:"text-xs text-neutral-500 ml-2"}," ⢠"+d(c.reason)+d(c.note?`: ${c.note}`:"")+" ("+d(c.user_email)+") ",1))),128))])):r("",!0)]))),128))])):s(e).expandedSections.enrichedPhones?(a(),o("div",An," No enriched phones found ")):r("",!0)])])):r("",!0)]),n("div",Tn,[n("button",{class:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-neutral-50 transition-colors",onClick:i[7]||(i[7]=t=>y("prospectReveals"))},[n("span",Jn,[w(" Prospect Reveals ("+d(s(e).personData?.prospect_reveals?.total||0)+") ",1),s(e).personDataLoading?(a(),o("span",qn,"Loading...")):r("",!0)]),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.prospectReveals?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.prospectReveals&&s(e).personData?.prospect_reveals?(a(),o("div",Vn,[s(e).personData.prospect_reveals.prospects?.length>0?(a(),o("div",Bn,[n("div",Kn,[(a(!0),o(b,null,f(s(e).personData.prospect_reveals.prospects,t=>(a(),o("div",{key:t.id,class:"border border-neutral-200 rounded p-3 bg-white"},[n("div",Wn,[n("div",Hn,[n("div",Gn,[n("span",Qn,"#"+d(t.id),1),n("span",Xn,d(t.name||"Unknown"),1),n("span",{class:p(["text-xs px-2 py-0.5 rounded",{"bg-green-25 text-green-300":t.status==="finished","bg-yellow-25 text-yellow-200":t.status==="resolving","bg-red-25 text-red-200":t.status==="failed","bg-neutral-100 text-neutral-600":t.status==="queued"}])},d(t.status),3),t.email_status?(a(),o("span",{key:0,class:p(["text-xs px-2 py-0.5 rounded",{"bg-green-25 text-green-300":t.email_status==="valid","bg-yellow-25 text-yellow-200":t.email_status==="risky"||t.email_status==="opted_out","bg-neutral-100 text-neutral-600":t.email_status==="unfound"}])},d(t.email_status),3)):r("",!0),t.phone_status?(a(),o("span",{key:1,class:p(["text-xs px-2 py-0.5 rounded",{"bg-green-25 text-green-300":t.phone_status==="valid","bg-yellow-25 text-yellow-200":t.phone_status==="opted_out","bg-neutral-100 text-neutral-600":t.phone_status==="unfound"}])}," phone: "+d(t.phone_status),3)):r("",!0)]),t.title||t.company?(a(),o("div",Yn,[t.title?(a(),o("span",Zn,d(t.title),1)):r("",!0),t.title&&t.company?(a(),o("span",ea," at ")):r("",!0),t.company?(a(),o("span",ta,d(t.company),1)):r("",!0)])):r("",!0),n("div",sa,[t.source?(a(),o("span",na,"Source: "+d(t.source),1)):r("",!0),n("span",null,"Created: "+d(new Date(t.created_at).toLocaleString()),1)]),t.user||t.account?(a(),o("div",aa,[t.user?(a(),o("span",oa,"User: "+d(t.user.email),1)):r("",!0),t.user&&t.account?(a(),o("span",ia," | ")):r("",!0),t.account?(a(),o("span",la,"Account: "+d(t.account.company),1)):r("",!0)])):r("",!0)]),n("a",{href:`${s(xe).public.adminBase}/reveals/${t.id}/usage_logs`,target:"_blank",class:"text-xs text-blue-100 hover:text-blue-200 px-2 py-1 rounded hover:bg-blue-0"}," View Logs ",8,ra)])]))),128))]),s(e).personData.prospect_reveals.total>5?(a(),o("div",da,[n("span",ca," Showing "+d(s(e).personData.prospect_reveals.prospects.length)+" of "+d(s(e).personData.prospect_reveals.total)+" reveals ",1),s(e).personData.prospect_reveals.total>s(e).personData.prospect_reveals.prospects.length?(a(),L(R,{key:0,variant:"secondary",size:"sm",loading:s(e).prospectRevealsLoading,disabled:s(e).prospectRevealsLoading,onClick:be},{default:U(()=>i[59]||(i[59]=[w(" Show 5 more ")])),_:1,__:[59]},8,["loading","disabled"])):r("",!0)])):r("",!0)])):(a(),o("div",ua," No prospect reveals found "))])):r("",!0)]),s(e).person.experience?.length>0?(a(),o("div",pa,[n("button",{class:"flex items-center gap-2 text-xs text-neutral-400 uppercase tracking-wide mb-4 hover:text-neutral-600",onClick:i[8]||(i[8]=t=>y("experience"))},[n("span",null,"Experience ("+d(s(e).person.experience.length)+")",1),n("i",{class:p(["pi text-xs",[s(e).expandedSections.experience?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.experience?(a(),o("div",_a,[(a(!0),o(b,null,f(s(e).person.experience,(t,c)=>(a(),o("div",{key:c,class:"flex gap-4"},[i[60]||(i[60]=n("div",{class:"w-1 bg-neutral-200 rounded-full flex-shrink-0"},null,-1)),n("div",xa,[n("div",ha,[n("div",null,[n("div",ma,d(t.title?.name||"Unknown Role"),1),t.company?.linkedin_id?(a(),L(_,{key:0,to:`/wizaadmin/knowledge-bank/companies/${t.company.linkedin_id}`,target:"_blank",class:"text-base text-blue-100 hover:underline capitalize"},{default:U(()=>[w(d(t.company?.name||"Unknown Company"),1)]),_:2},1032,["to"])):(a(),o("div",ba,d(t.company?.name||"Unknown Company"),1))]),n("div",fa,d(ne(t.start_date,t.end_date)),1)]),t.location_names?.length>0?(a(),o("div",ya,d(t.location_names[0]),1)):r("",!0)])]))),128))])):r("",!0)])):r("",!0),s(e).personData?.main_company_
1scoring?.groups?.length>0?(a(),o("div",ga,[n("button",{class:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-neutral-50",onClick:i[9]||(i[9]=t=>y("mainCompanyScoring"))},[n("span",va," Main Company Scoring ("+d(s(e).personData.main_company_scoring.groups.length)+" active groups) ",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.mainCompanyScoring?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.mainCompanyScoring?(a(),o("div",ka,[n("div",wa,[i[61]||(i[61]=n("span",{class:"font-medium"},"Selected:",-1)),w(" "+d(s(e).personData.main_company_scoring.selected_company_name||"â")+" ",1),s(e).personData.main_company_scoring.selected_company_linkedin_id?(a(),o("span",Da," ("+d(s(e).personData.main_company_scoring.selected_company_linkedin_id)+") ",1)):r("",!0)]),s(e).personData.main_company_scoring.headline?(a(),o("div",Ca," Headline: "+d(s(e).personData.main_company_scoring.headline),1)):r("",!0),n("div",Sa,[(a(!0),o(b,null,f(s(e).personData.main_company_scoring.groups,t=>(a(),o("div",{key:`${t.index}-${t.company_linkedin_id||t.company_name}`,class:"bg-white border border-neutral-200 rounded p-3"},[n("div",$a,[n("div",La,[n("span",ja,d(t.company_name||"Unknown company"),1),t.title?(a(),o("span",Pa," - "+d(t.title),1)):r("",!0)]),n("div",{class:p(["text-sm font-medium",ce(t.total_score)])},d(de(t.total_score)),3)]),n("div",Ra,[(a(!0),o(b,null,f(t.changes||[],(c,j)=>(a(),o("div",{key:`${t.index}-change-${j}`,class:"flex items-start justify-between text-xs"},[n("span",Na,d(c.reason),1),n("span",{class:p(["font-mono ml-3",ce(c.delta)])},d(de(c.delta)),3)]))),128))])]))),128))])])):r("",!0)])):r("",!0),s(e).person.education?.length>0?(a(),o("div",Ia,[n("button",{class:"flex items-center gap-2 text-xs text-neutral-400 uppercase tracking-wide mb-4 hover:text-neutral-600",onClick:i[10]||(i[10]=t=>y("education"))},[n("span",null,"Education ("+d(s(e).person.education.length)+")",1),n("i",{class:p(["pi text-xs",[s(e).expandedSections.education?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.education?(a(),o("div",Ua,[(a(!0),o(b,null,f(s(e).person.education,(t,c)=>(a(),o("div",{key:c,class:"flex gap-4"},[i[62]||(i[62]=n("div",{class:"w-1 bg-neutral-200 rounded-full flex-shrink-0"},null,-1)),n("div",Fa,[n("div",Oa,[n("div",null,[n("div",Ma,d(t.school?.name||"Unknown School"),1),t.degrees?.length>0?(a(),o("div",Ea,d(t.degrees[0]),1)):r("",!0),t.majors?.length>0?(a(),o("div",za,d(t.majors.join(", ")),1)):r("",!0)]),n("div",Aa,d(ne(t.start_date,t.end_date)),1)])])]))),128))])):r("",!0)])):r("",!0),s(e).person.skills?.length>0?(a(),o("div",Ta,[n("button",{class:"flex items-center gap-2 text-xs text-neutral-400 uppercase tracking-wide mb-4 hover:text-neutral-600",onClick:i[11]||(i[11]=t=>y("skills"))},[n("span",null,"Skills ("+d(s(e).person.skills.length)+")",1),n("i",{class:p(["pi text-xs",[s(e).expandedSections.skills?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.skills?(a(),o("div",Ja,[(a(!0),o(b,null,f(s(e).person.skills,t=>(a(),o("span",{key:t,class:"text-sm text-neutral-600 bg-neutral-100 px-2 py-1 rounded capitalize"},d(t),1))),128))])):r("",!0)])):r("",!0),s(e).person.interests?.length>0?(a(),o("div",qa,[n("button",{class:"flex items-center gap-2 text-xs text-neutral-400 uppercase tracking-wide mb-4 hover:text-neutral-600",onClick:i[12]||(i[12]=t=>y("interests"))},[n("span",null,"Interests ("+d(s(e).person.interests.length)+")",1),n("i",{class:p(["pi text-xs",[s(e).expandedSections.interests?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.interests?(a(),o("div",Va,[(a(!0),o(b,null,f(s(e).person.interests,t=>(a(),o("span",{key:t,class:"text-sm text-neutral-600 bg-neutral-100 px-2 py-1 rounded capitalize"},d(t),1))),128))])):r("",!0)])):r("",!0),i[66]||(i[66]=n("div",{class:"border-t border-neutral-200 my-6"},null,-1)),n("div",Ba,[n("button",{class:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-neutral-50 transition-colors",onClick:i[13]||(i[13]=t=>y("rawData"))},[i[63]||(i[63]=n("span",{class:"text-base text-neutral-900"},"Raw Data",-1)),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.rawData?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.rawData?(a(),o("div",Ka,[g(S,{json:JSON.stringify(s(e).person,null,2)},null,8,["json"])])):r("",!0)]),n("div",Wa,[n("button",{class:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-neutral-50 transition-colors",onClick:i[14]||(i[14]=t=>y("cachedLinkedinScrapes"))},[n("span",Ha,[w(" LinkedIn Profile Updates ("+d(h(s(e).personData?.cached_linkedin_
1scrapes))+") ",1),s(e).personDataLoading?(a(),o("span",Ga,"Loading...")):r("",!0)]),s(e).expandedSections.cachedLinkedinScrapes?(a(),L(z,{key:0,class:"w-3 h-3 text-neutral-400"})):(a(),L(O,{key:1,class:"w-3 h-3 text-neutral-400"}))]),s(e).expandedSections.cachedLinkedinScrapes?(a(),o("div",Qa,[n("div",Xa,[i[64]||(i[64]=n("div",{class:"text-xs font-medium uppercase tracking-wide text-neutral-500"},"Latest profile update",-1)),s(C).status==="recorded"?(a(),o("p",Ya," Last profile update "+d(s(C).date),1)):s(C).status==="date-unavailable"?(a(),o("p",Za," Profile update found, but no update date was recorded ")):s(C).status==="checking"?(a(),o("p",eo," Checking profile update history ")):s(C).status==="unavailable"?(a(),o("p",to," Profile update history unavailable ")):(a(),o("p",so," No LinkedIn profile update recorded "))]),s(e).personData?.cached_linkedin_scrapes?.length>0?(a(),o("div",no,[(a(!0),o(b,null,f(s(e).personData.cached_linkedin_scrapes,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",ao,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("cached_linkedin_scrapes",t.id),onClick:c=>D("cached_linkedin_scrapes",t.id)},[m("cached_linkedin_scrapes",t.id)?(a(),o("span",io,"Deleting...")):(a(),o("span",lo,"Delete"))],8,oo)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):s(e).personDataLoaded?(a(),o("p",ro,"No LinkedIn profile updates found")):r("",!0)])):r("",!0)]),n("div",co,[n("div",uo,[n("button",{class:"flex-1 flex items-center justify-between text-left hover:bg-neutral-50 transition-colors -ml-4 -my-3 px-4 py-3",onClick:i[15]||(i[15]=t=>y("cachedData"))},[n("span",po,[w(" Cached Data ("+d(Q())+") ",1),s(e).personDataLoading?(a(),o("span",_o,"Loading...")):r("",!0)]),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.cachedData?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(v)&&Q()>0?(a(),o("button",{key:0,class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0 ml-2",disabled:F("cached_data"),onClick:i[16]||(i[16]=N(t=>J("cached_data"),["stop"]))},[F("cached_data")?(a(),o("span",ho,"Deleting...")):(a(),o("span",mo,"Delete All"))],8,xo)):r("",!0)]),s(e).expandedSections.cachedData&&s(e).personData?(a(),o("div",bo,[n("div",fo,[n("div",yo,[n("button",{class:"flex-1 flex items-center gap-2 text-left hover:bg-neutral-50",onClick:i[17]||(i[17]=t=>y("cachedContactOuts"))},[n("span",go,"cached_contact_outs ("+d(h(s(e).personData.cached_contact_outs))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.cachedContactOuts?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),n("button",{class:"text-xs text-blue-100 hover:text-blue-200 px-2 py-1 rounded hover:bg-blue-0",disabled:s(e).fetchLoading.contactOut,onClick:N(ge,["stop"])},[s(e).fetchLoading.contactOut?(a(),o("span",ko,"Fetching...")):(a(),o("span",wo,"Fetch"))],8,vo)]),s(e).expandedSections.cachedContactOuts&&s(e).personData.cached_contact_outs?.length>0?(a(),o("div",Do,[(a(!0),o(b,null,f(s(e).personData.cached_contact_outs,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",Co,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("cached_contact_outs",t.id),onClick:c=>D("cached_contact_outs",t.id)},[m("cached_contact_outs",t.id)?(a(),o("span",$o,"Deleting...")):(a(),o("span",Lo,"Delete"))],8,So)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",jo,[n("div",Po,[n("button",{class:"flex-1 flex items-center gap-2 text-left hover:bg-neutral-50",onClick:i[18]||(i[18]=t=>y("cachedLinkages"))},[n("span",Ro,"cached_linkages ("+d(h(s(e).personData.cached_linkages))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.cachedLinkages?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),n("button",{class:"text-xs text-blue-100 hover:text-blue-200 px-2 py-1 rounded hover:bg-blue-0",disabled:s(e).fetchLoading.linkage,onClick:N(ve,["stop"])},[s(e).fetchLoading.linkage?(a(),o("span",Io,"Fetching...")):(a(),o("span",Uo,"Fetch"))],8,No)]),s(e).expandedSections.cachedLinkages&&s(e).personData.cached_linkages?.length>0?(a(),o("div",Fo,[(a(!0),o(b,null,f(s(e).personData.cached_linkages,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",Oo,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("cached_linkages",t.id),onClick:c=>D("cached_linkages",t.id)},[m("cached_linkages",t.id)?(a(),o("span",Eo,"Deleting...")):(a(),o("span",zo,"Delete"))],8,Mo)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",Ao,[n("div",To,[n("button",{class:"flex-1 flex items-center gap-2 text-left hover:bg-neutral-50",onClick:i[19]||(i[19]=t=>y("cachedProspeos"))},[n("span",Jo,"cached_prospeos ("+d(h(s(e).personData.cached_prospeos))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.cachedProspeos?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),n("button",{class:"text-xs text-blue-100 hover:text-blue-200 px-2 py-1 rounded hover:bg-blue-0",disabled:s(e).fetchLoading.prospeo,onClick:N(ke,["stop"])},[s(e).fetchLoading.prospeo?(a(),o("span",Vo,"Fetching...")):(a(),o("span",Bo,"Fetch"))],8,qo)]),s(e).expandedSections.cachedProspeos&&s(e).personData.cached_prospeos?.length>0?(a(),o("div",Ko,[(a(!0),o(b,null,f(s(e).personData.cached_prospeos,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",Wo,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("cached_prospeos",t.id),onClick:c=>D("cached_prospeos",t.id)},[m("cached_prospeos",t.id)?(a(),o("span",Go,"Deleting...")):(a(),o("span",Qo,"Delete"))],8,Ho)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",Xo,[n("div",Yo,[n("button",{class:"flex-1 flex items-center gap-2 text-left hover:bg-neutral-50",onClick:i[20]||(i[20]=t=>y("cachedRampedUps"))},[n("span",Zo,"cached_ramped_ups ("+d(h(s(e).personData.cached_ramped_ups))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.cachedRampedUps?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),n("button",{class:"text-xs text-blue-100 hover:text-blue-200 px-2 py-1 rounded hover:bg-blue-0",disabled:s(e).fetchLoading.rampedUp,onClick:N(we,["stop"])},[s(e).fetchLoading.rampedUp?(a(),o("span",ti,"Fetching...")):(a(),o("span",si,"Fetch"))],8,ei)]),s(e).expandedSections.cachedRampedUps&&s(e).personData.cached_ramped_ups?.length>0?(a(),o("div",ni,[(a(!0),o(b,null,f(s(e).personData.cached_ramped_ups,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",ai,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("cached_ramped_ups",t.id),onClick:c=>D("cached_ramped_ups",t.id)},[m("cached_ramped_ups",t.id)?(a(),o("span",ii,"Deleting...")):(a(),o("span",li,"Delete"))],8,oi)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",ri,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[21]||(i[21]=t=>y("pdlCaches"))},[n("span",di,"pdl_caches ("+d(h(s(e).personData.pdl_caches))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.pdlCaches?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.pdlCaches&&s(e).personData.pdl_caches?.length>0?(a(),o("div",ci,[(a(!0),o(b,null,f(s(e).personData.pdl_caches,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",ui,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("pdl_caches",t.id),onClick:c=>D("pdl_caches",t.id)},[m("pdl_caches",t.id)?(a(),o("span",_i,"Deleting...")):(a(),o("span",xi,"Delete"))],8,pi)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",null,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[22]||(i[22]=t=>y("farmPdlPeople"))}
1,[n("span",hi,"farm_pdl_people ("+d(h(s(e).personData.farm_pdl_people))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.farmPdlPeople?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.farmPdlPeople&&s(e).personData.farm_pdl_people?.length>0?(a(),o("div",mi,[(a(!0),o(b,null,f(s(e).personData.farm_pdl_people,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",bi,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("farm_pdl_people",t.id),onClick:c=>D("farm_pdl_people",t.id)},[m("farm_pdl_people",t.id)?(a(),o("span",yi,"Deleting...")):(a(),o("span",gi,"Delete"))],8,fi)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)])])):r("",!0)]),n("div",vi,[n("div",ki,[n("button",{class:"flex-1 flex items-center justify-between text-left hover:bg-neutral-50 transition-colors -ml-4 -my-3 px-4 py-3",onClick:i[23]||(i[23]=t=>y("staticData"))},[n("span",wi,[w(" Static Data ("+d(X())+") ",1),s(e).personDataLoading?(a(),o("span",Di,"Loading...")):r("",!0)]),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.staticData?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(v)&&X()>0?(a(),o("button",{key:0,class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0 ml-2",disabled:F("static_data"),onClick:i[24]||(i[24]=N(t=>J("static_data"),["stop"]))},[F("static_data")?(a(),o("span",Si,"Deleting...")):(a(),o("span",$i,"Delete All"))],8,Ci)):r("",!0)]),s(e).expandedSections.staticData&&s(e).personData?(a(),o("div",Li,[n("div",ji,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[25]||(i[25]=t=>y("staticDataExportAssistEmails"))},[n("span",Pi,"export_assist_emails ("+d(h(s(e).personData.static_data_export_assist_emails))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.staticDataExportAssistEmails?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.staticDataExportAssistEmails&&s(e).personData.static_data_export_assist_emails?.length>0?(a(),o("div",Ri,[(a(!0),o(b,null,f(s(e).personData.static_data_export_assist_emails,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",Ni,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("static_data_export_assist_emails",t.id),onClick:c=>D("static_data_export_assist_emails",t.id)},[m("static_data_export_assist_emails",t.id)?(a(),o("span",Ui,"Deleting...")):(a(),o("span",Fi,"Delete"))],8,Ii)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",Oi,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[26]||(i[26]=t=>y("staticDataSamnewPeople"))},[n("span",Mi,"samnew_people ("+d(h(s(e).personData.static_data_samnew_people))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.staticDataSamnewPeople?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.staticDataSamnewPeople&&s(e).personData.static_data_samnew_people?.length>0?(a(),o("div",Ei,[(a(!0),o(b,null,f(s(e).personData.static_data_samnew_people,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",zi,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("static_data_samnew_people",t.id),onClick:c=>D("static_data_samnew_people",t.id)},[m("static_data_samnew_people",t.id)?(a(),o("span",Ti,"Deleting...")):(a(),o("span",Ji,"Delete"))],8,Ai)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",qi,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[27]||(i[27]=t=>y("staticDataSolpubPhones"))},[n("span",Vi,"solpub_phones ("+d(h(s(e).personData.static_data_solpub_phones))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.staticDataSolpubPhones?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.staticDataSolpubPhones&&s(e).personData.static_data_solpub_phones?.length>0?(a(),o("div",Bi,[(a(!0),o(b,null,f(s(e).personData.static_data_solpub_phones,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",Ki,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("static_data_solpub_phones",t.id),onClick:c=>D("static_data_solpub_phones",t.id)},[m("static_data_solpub_phones",t.id)?(a(),o("span",Hi,"Deleting...")):(a(),o("span",Gi,"Delete"))],8,Wi)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)]),n("div",null,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[28]||(i[28]=t=>y("staticDataSupressionPhones"))},[n("span",Qi,"supression_phones ("+d(h(s(e).personData.static_data_supression_phones))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.staticDataSupressionPhones?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.staticDataSupressionPhones&&s(e).personData.static_data_supression_phones?.length>0?(a(),o("div",Xi,[(a(!0),o(b,null,f(s(e).personData.static_data_supression_phones,t=>(a(),o("div",{key:t.id,class:"mb-4 last:mb-0"},[s(v)?(a(),o("div",Yi,[n("button",{class:"text-xs text-red-100 hover:text-red-200 px-2 py-1 rounded hover:bg-red-0",disabled:m("static_data_supression_phones",t.id),onClick:c=>D("static_data_supression_phones",t.id)},[m("static_data_supression_phones",t.id)?(a(),o("span",el,"Deleting...")):(a(),o("span",tl,"Delete"))],8,Zi)])):r("",!0),g(S,{json:JSON.stringify(t,null,2)},null,8,["json"])]))),128))])):r("",!0)])])):r("",!0)]),n("div",sl,[n("button",{class:"w-full flex items-center justify-between px-4 py-3 text-left hover:bg-neutral-50 transition-colors",onClick:i[29]||(i[29]=t=>y("otherDataSources"))},[n("span",nl,[w(" Other Data Sources ("+d(ye())+") ",1),s(e).personDataLoading?(a(),o("span",al,"Loading...")):r("",!0)]),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.otherDataSources?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.otherDataSources&&s(e).personData?(a(),o("div",ol,[
1n("div",il,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[30]||(i[30]=t=>y("profilePictures"))},[n("span",ll,"profile_pictures ("+d(h(s(e).personData.profile_pictures))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.profilePictures?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.profilePictures&&s(e).personData.profile_pictures?.length>0?(a(),o("div",rl,[g(S,{json:JSON.stringify(s(e).personData.profile_pictures,null,2)},null,8,["json"])])):r("",!0)]),n("div",null,[n("button",{class:"w-full flex items-center justify-between px-4 py-2 text-left hover:bg-neutral-50",onClick:i[31]||(i[31]=t=>y("searchRankings"))},[n("span",dl,"search_rankings ("+d(h(s(e).personData.search_rankings))+")",1),n("i",{class:p(["pi text-neutral-400 text-xs",[s(e).expandedSections.searchRankings?"pi-chevron-up":"pi-chevron-down"]])},null,2)]),s(e).expandedSections.searchRankings&&s(e).personData.search_rankings?.length>0?(a(),o("div",cl,[g(S,{json:JSON.stringify(s(e).personData.search_rankings,null,2)},null,8,["json"])])):r("",!0)])])):r("",!0)])])):r("",!0)]),(a(),L(G,{to:"body"},[s(e).showDataFlowModal?(a(),o("div",{key:0,class:"fixed inset-0 bg-black/50 flex items-center justify-center z-50",onClick:i[34]||(i[34]=N(t=>s(e).showDataFlowModal=!1,["self"]))},[n("div",ul,[n("div",pl,[i[68]||(i[68]=n("h2",{class:"text-lg font-semibold text-neutral-900"},"Data Retrieval & Cache Order",-1)),n("button",{class:"text-neutral-400 hover:text-neutral-600",onClick:i[32]||(i[32]=t=>s(e).showDataFlowModal=!1)},i[67]||(i[67]=[n("i",{class:"pi pi-times text-lg"},null,-1)]))]),s(e).dataFlowData?.html?(a(),o("div",{key:0,class:"px-6 py-4 text-sm text-neutral-700",innerHTML:s(e).dataFlowData.html},null,8,_l)):r("",!0),n("div",xl,[n("button",{class:"px-4 py-2 bg-neutral-100 hover:bg-neutral-200 text-neutral-700 rounded-lg text-sm",onClick:i[33]||(i[33]=t=>s(e).showDataFlowModal=!1)}," Close ")])])])):r("",!0)])),(a(),L(G,{to:"body"},[g(s(Ye),{show:!!s(e).ratingPhoneNumber,"phone-number":s(e).ratingPhoneNumber||"","onUpdate:show":i[35]||(i[35]=t=>s(e).ratingPhoneNumber=t?s(e).ratingPhoneNumber:null),onSubmit:Ce},null,8,["show","phone-number"])])),(a(),L(G,{to:"body"},[g(Ie,{"model-value":!!s(e).viewRatingsPhone,"header-title":s(e).viewRatingsPhone?`${s(E).length} ${s(E).length===1?"Report":"Reports"} for ${s(Xe)(s(e).viewRatingsPhone)||s(e).viewRatingsPhone}`:"",width:"md","onUpdate:modelValue":i[36]||(i[36]=t=>s(e).viewRatingsPhone=t?s(e).viewRatingsPhone:null)},{default:U(({close:t})=>[n("div",hl,[s(E).length>0?(a(),o("div",ml,[(a(!0),o(b,null,f(s(E),c=>(a(),o("div",{key:c.id,class:"border border-neutral-200 rounded p-3"},[n("div",bl,[n("span",{class:p(["text-xs px-2 py-0.5 rounded",c.is_correct?"bg-green-200 text-white":"bg-red-100 text-white"])},d(c.is_correct?"valid":"invalid"),3),c.updated_at?(a(),o("span",fl,d(new Date(c.updated_at).toLocaleString()),1)):r("",!0)]),n("div",yl,d(c.reason),1),c.note?(a(),o("div",gl,d(c.note),1)):r("",!0),n("div",vl,d(c.user_email),1)]))),128))])):(a(),o("div",kl,"No reports found.")),n("div",wl,[g(R,{variant:"plain",onClick:t},{default:U(()=>
1i[69]||(i[69]=[w(" Close ")])),_:2,__:[69]},1032,["onClick"])])])]),_:1},8,["model-value","header-title"])]))],64)}}});export{ir as default};
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.