PageSourceSearch

https://account.leadiq.com/app/assets/PrivacyView-Di1KrV4y.js

js leadiq.com collected 2026-09-24 08:35:36 UTC 9,495 bytes, 37 lines download raw bytes

1import{v as ae,ae as W,aa as oe,M as ne,b8 as le,l as v,j as o,h as u,x as n,O as f,o as h,L as d,k as l,b5 as re,H as q,a4 as B,t as i,F as $,q as g,al as ie,E as ue,aT as U,aY as me}from"./index-CpN4Ps0J.js";import{s as pe,a as y}from"./index-DkfQno3g.js";import{s as R}from"./index-DTFvxdCP.js";import{s as H}from"./index-BhOZ4-pC.js";import{s as de,a as ce,b as K}from"./index-B7QWmSkO.js";import{s as ve,a as M}from"./index-CKK5ES5I.js";import{s as Y}from"./index-B5Hg-ZSX.js";import{g as he,i as fe}from"./privacy-B_fEYS7U.js";import{u as D}from"./unnest-Bl0XNbvj.js";import{_ as ye}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./index-B7QGWiQu.js";import"./index-CdNddd5b.js";import"./index-Snaidc0h.js";import"./index-J0gNnpnU.js";import"./index-DgIOo7C7.js";import"./index-D4PBOE0W.js";import"./index-DrjXtd79.js";import"./index-yzsaMdHQ.js";import"./index-OPM6JPbZ.js";import"./index-CWUvMjsX.js";import"./index-vjECc1R2.js";import"./index-CX63nII5.js";import"./index-C-QNz3nt.js";import"./index-ByjkZf-J.js";import"./index-DJQBHu-L.js";import"./index-DxtsjCVH.js";import"./index-wUFVw2oV.js";import"./index-CJfs9NNR.js";import"./index-krHZ_gad.js";import"./index-5vHZOB7Q.js";import"./api-CeLwZ_J5.js";import"./_identity-BiaQ3Urd.js";const ge={class:"form"},ke={class:"result"},be={key:0},we={key:0},Se={key:1},Pe={key:2},Ce={key:3},$e={key:4},De={class:"form"},_e={class:"result"},Ne={key:0},Ee=ae({__name:"PrivacyView",setup(Ae){function F(t){const e=t.leads.map(m=>(m.personalEmails??[]).concat(m.email?[m.email]:[])),a=t.leads.map(m=>(m.workPhones??[]).map(S=>S.value??"").filter(S=>S).concat(m.personalPhones??[])),s=me(["lcData","linkedinId"],t),p=s?[s]:[];return{emails:Array.from(new Set(D(e))).filter(m=>m),phones:Array.from(new Set(D(a))).filter(m=>m),linkedinIds:p}}function x(t,e){const a=t.map(p=>p.key+" "+T(p.values)),s=e.map(p=>p.key+" "+T(p.values));return{emails:Array.from(new Set(D(a))),phones:Array.from(new Set(D(s)))}}function T(t){return"("+t.join(", ")+")"}const z=W`
2  query CheckPhoneSuppression($phone: String!) {
3    suppressions {
4      matchingEntries( emailOrPhone: $phone ) {
5        value
6        registeredAt
7      }
8    }
9  }
10`,J=W`
11  mutation SuppressPhoneNumber($phone: String!, $comments: String!) {
12    suppressPhoneNumber(
13      phoneNumber: {phone: $phone, publicComment: $comments}
14    ) {
15      value
16      registeredAt
17    }
18  }
19`,Q=W`
20  query EnrichContactWithSourceName($input: ContactDetailInput!) {
21    enrichContactWithDataSource( input: $input ) {
22      emails {
23        key
24        values
25      }
26      phones {
27        key
28        values
29      }
30    }
31  }
32`,_=f(""),N=f(""),r=f(null),E=f([]),k=f(""),P=f(""),c=f(null),b=f(!1),L=f(0),A=f(!1),Z=`${re}/api/v1/admin/lead-suppression/csv`,{openDialog:O}=oe(),w=ne(),{client:I}=le();async function G(t){r.value=null,c.value=null,k.value="Loading results ...";try{const e=await fe(t);r.value=e[0],k.value=`Result for ${t}`;const a=F(e[0]);(a.emails.length>0||a.phones.length>0)&&X(a.emails,a.phones,a.linkedinIds)}catch(e){const a=e;k.value=a.response?.data?.message||a.message||"Something went wrong :(",r.value={},c.value={}}}async function j(t){if(E.value=[],b.value=!1,t.match(/[A-Za-z]/)||(t.match(/\d/g)??[]).length<3){P.value=`${t} is not a valid phone number.`;return}P.value="Checking ...";try{const e=await I.query({query:z,fetchPolicy:"network-only",variables:{phone:t}});E.value=e.data?.suppressions?.matchingEntries??[];const a=E.value[0]?.registeredAt;b.value=a?!1:t,P.value=b.value?`${t} was not found in the suppression list`:`${t} has been entered into the suppression list on ${C(a)}`}catch(e){const a=e;k.value=a.response?.data?.message||a.message||"Something went wrong :(",r.value={},c.value={}}}async function X(t,e,a){A.value=!0;try{const s=await I.query({query:Q,fetchPolicy:"network-only",variables:{input:{phones:e,emails:t,linkedinIds:a}}}),p=U("emails",s.data.enrichContactWithDataSource),m=U("phones",s.data.enrichContactWithDataSource);c.value=x(p,m)}catch(s){const p=s,m="Datasource enrich failed. ",S=p.response?.data?.message||p.message||"Something went wrong :(";k.value=`${m}${S}`,c.value={emails:t,phones:e}}finally{A.value=!1}}function C(t){return t?ie(t).format("MM-DD-YYYY"):""}function V(t){return t?t.map(e=>typeof e=="string"?e:JSON.stringify(e)).join(" "):""}function ee(t){return t?t.map(e=>typeof e=="string"?e:e.value?e.value:JSON.stringify(e)).join(" "):""}function te(t){O("Prompt",{title:"Please enter a comment (which may be shown to the end user):",message:"Are you sure you want to add this person to the global suppression list?",accept:async(e="")=>{if(!e.length){w.add({severity:"error",detail:"Please include a public comment."});return}try{const a=await he(t._id,e);
32w.add({severity:"success",detail:a.message})}catch(a){w.add({severity:"error",detail:"Something went wrong :["+a})}}})}function se(t){O("Prompt",{title:"Please enter a comment (which may be shown to the end user):",message:"Are you sure you want to add this phone number to the global suppression list?",accept:async(e="")=>{if(!e.length){w.add({severity:"error",detail:"Please include a public comment."});return}try{await I.mutate({mutation:J,variables:{phone:t,comments:e}}),await j(t)}catch(a){w.add({severity:"error",detail:"Something went wrong :["+a})}}})}return(t,e)=>{const a=ue("autofocus");return h(),v("div",null,[o(n(de),{value:L.value,"onUpdate:value":e[5]||(e[5]=s=>L.value=s)},{default:u(()=>[o(n(ce),null,{default:u(()=>[o(n(K),{value:0},{default:u(()=>[...e[6]||(e[6]=[d("Person Suppression",-1)])]),_:1}),o(n(K),{value:1},{default:u(()=>[...e[7]||(e[7]=[d("Phone Suppression",-1)])]),_:1})]),_:1}),o(n(ve),null,{default:u(()=>[o(n(M),{value:0},{default:u(()=>[l("div",null,[e[8]||(e[8]=l("i",{class:"icon icon-book"},null,-1)),e[9]||(e[9]=d("  ",-1)),l("a",{href:Z,target:"_blank"},"Download global person suppression list (CSV)")]),e[13]||(e[13]=l("br",null,null,-1)),l("div",null,[o(n(Y),{severity:"info"},{default:u(()=>[...e[10]||(e[10]=[d("We allow people to be removed from our system. When entered into this suppression list, all data about the individual/lead will be removed and no new data will be collected. New captures will not be possible.",-1)])]),_:1})]),e[14]||(e[14]=l("br",null,null,-1)),l("section",ge,[q(o(n(R),{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=s=>_.value=s),placeholder:"Type user's email and hit enter",onKeyup:e[1]||(e[1]=B(s=>G(_.value),["enter"]))},null,8,["modelValue"]),[[a]]),l("h2",ke,i(k.value),1),r.value?(h(),v("div",be,[A.value?(h(),v($,{key:0},[d("... checking results")],64)):(h(),v($,{key:1},[c.value?(h(),v($,{key:0},[c.value.emails&&c.value.emails.length?(h(),v("div",we,[e[11]||(e[11]=l("h3",null,"Emails",-1)),l("pre",null,i(c.value.emails.join(`
33`)),1)])):g("",!0),c.value.phones&&c.value.phones.length?(h(),v("div",Se,[e[12]||(e[12]=l("h3",null,"Phones",-1)),l("pre",null,i(c.value.phones.join(`
34`)),1)])):g("",!0)],64)):(h(),v($,{key:1},[d("No results found")],64)),r.value.leadSuppression?(h(),v("div",Pe,[l("h3",null,"Suppression list entry for "+i(r.value.leadSuppression.name),1),l("pre",null,i(r.value.leadSuppression.suppressedAt)+" "+i(r.value.leadSuppression.suppressedBy)+`
35`+i(r.value.leadSuppression.comment)+`
36`+i(r.value.leadSuppression.emails)+`
37linkedinId: `+i(r.value.leadSuppression.linkedinId),1)])):g("",!0),r.value.memberInfo?(h(),v("div",Ce,[l("h3",null,i(r.value.memberInfo.fullName)+" is a LeadIQ customer since "+i(C(r.value.memberInfo.createdDate)),1)])):g("",!0),r.value.leads&&r.value.leads.length?(h(),v("div",$e,[l("h3",null,i(r.value.leads.length)+" People",1),o(n(pe),{class:"h100",value:r.value.leads},{default:u(()=>[o(n(y),{header:"Captured by",field:"userEmail"}),o(n(y),{header:"Work email",field:"email"}),o(n(y),{class:"fi",header:"Work phones",field:"workPhones"},{body:u(({data:s})=>[d(i(ee(s.workPhones)),1)]),_:1}),o(n(y),{class:"fi",header:"Personal email",field:"personalEmails"},{body:u(({data:s})=>[d(i(V(s.personalEmails)),1)]),_:1}),o(n(y),{class:"fi",header:"Mobile phones",field:"personalPhones"},{body:u(({data:s})=>[d(i(V(s.personalPhones)),1)]),_:1}),o(n(y),{class:"fi",header:"Captured at",field:"createdDate"},{body:u(({data:s})=>[d(i(C(s.createdDate)),1)]),_:1}),o(n(y),{header:"Salesforce sync",field:"sfdcSyncDate"},{body:u(({data:s})=>[d(i(C(s.sfdcSyncDate)),1)]),_:1}),o(n(y),{header:"Premium Unlock",field:"premiumUnlocks"},{body:u(({data:s})=>[d(i(V(s.premiumUnlocks)),1)]),_:1}),o(n(y),{header:"Operation"},{body:u(({data:s})=>[o(n(H),{text:"",label:"Block",size:"small",onClick:p=>te(s)},null,8,["onClick"])]),_:1})]),_:1},8,["value"])])):g("",!0)],64))])):g("",!0)])]),_:1}),o(n(M),{value:1},{default:u(()=>[l("div",null,[o(n(Y),{severity:"info"},{default:u(()=>[...e[15]||(e[15]=[d("We allow phone numbers to be delisted from LeadIQ ('Do-Not-Call-List'). This prevents the number from appearing in contact data enrichment/unlock, but it does not affect the rest of the person.",-1)])]),_:1})]),e[16]||(e[16]=l("br",null,null,-1)),l("section",De,[q(o(n(R),{modelValue:N.value,"onUpdate:modelValue":e[2]||(e[2]=s=>N.value=s),placeholder:"Type phone number (including country code) and hit enter",onKeyup:e[3]||(e[3]=B(s=>j(N.value),["enter"]))},null,8,["modelValue"]),[[a]]),l("h2",_e,i(P.value),1),b.value?(h(),v("div",Ne,[o(n(H),{label:"Block",onClick:e[4]||(e[4]=s=>se(b.value))})])):g("",!0)])]),_:1})]),_:1})]),_:1},8,["value"])])}}}),ut=ye(Ee,[["__scopeId","data-v-16abecf1"]]);export{ut 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.