1import{a as Tt,b as _i,c as Lt,d as mi,e as yt,f as gi,g as Et,h as hi,i as Mt,j as ui,k as vt,l as Ci}from"./chunk-IBY3TTLV.js";import{A as si,Q as Ct,R as ri,e as gt,f as ai,q as ht,r as oi,z as ut}from"./chunk-PUSMLIFX.js";import{a as bt,b as pi}from"./chunk-44FRHBUF.js";import{s as xt,t as di}from"./chunk-EWRV2H4Q.js";import"./chunk-LDF3TK2G.js";import"./chunk-MAJPIEAU.js";import{a as ft,b as li,c as St,d as ci}from"./chunk-L5WL5GD4.js";import"./chunk-4FYVSYXY.js";import{b as $,c as _t,d as G,e as Se}from"./chunk-RUWGW2VW.js";import"./chunk-UB5GILSK.js";import"./chunk-YD55LD5R.js";import"./chunk-W225ZRGM.js";import"./chunk-55CXJNWU.js";import"./chunk-3DVXOS3G.js";import"./chunk-ZPZTON3H.js";import"./chunk-OAJBMJN5.js";import"./chunk-77IYFSKZ.js";import"./chunk-SDX2OQNW.js";import"./chunk-6AEY25D2.js";import"./chunk-KWKN3F5M.js";import"./chunk-HOUITNKY.js";import{b as mt,c as ni}from"./chunk-MWR4CSZT.js";import"./chunk-F7WJD7CP.js";import"./chunk-FLMKLN4Q.js";import{Ma as lt,Na as Zt,ab as pt,bb as ii}from"./chunk-PQPIT7TM.js";import{i as dt,j as ti}from"./chunk-RJRPDZQ5.js";import"./chunk-EFM4TFGL.js";import{Ac as st,Bc as Jt,c as nt,d as qt,jb as oe,kb as at,rc as ot,sc as Xt}from"./chunk-RMRHPHLS.js";import"./chunk-F2RA5VSQ.js";import"./chunk-IRWGE2JA.js";import"./chunk-BF5H272C.js";import{c as ct,d as ei}from"./chunk-WQ4TDZBD.js";import{c as se,d as rt}from"./chunk-ZLL6KJ2E.js";import"./chunk-VCFZC73O.js";import"./chunk-YMGB5VGI.js";import"./chunk-J2AZAVZY.js";import"./chunk-P6UIYGQX.js";import"./chunk-DFUEXSA2.js";import{v as Je,w as $t,x as et,y as Qt}from"./chunk-FUMJHN3T.js";import{a as Xe,b as Kt}from"./chunk-F47FEI3M.js";import{c as tt,d as Yt,e as ae,f as it}from"./chunk-VH3MO375.js";import"./chunk-VLZVCW75.js";import{c as Ze,d as Wt}from"./chunk-N2XMY72M.js";import"./chunk-NHXNDDZ3.js";import{T as We,U as Ht,X as Qe,Y as Ut,Z as Ye,_ as Gt}from"./chunk-N4SUKYMB.js";import{a as ze,b as Bt}from"./chunk-7OYLLAQC.js";import"./chunk-HCNBTQNP.js";import"./chunk-A7MDM37X.js";import{a as $e,b as zt}from"./chunk-ZKDSYVFO.js";import"./chunk-WZUFEXUY.js";import"./chunk-GGDZ57IA.js";import"./chunk-BEDILTHJ.js";import"./chunk-MAVTUJIU.js";import"./chunk-7MG3VIK4.js";import"./chunk-HYJFT6FN.js";import{c as Z,d as He}from"./chunk-ECRWSRDA.js";import{k as qe,l as jt}from"./chunk-DWYAB7LH.js";import{c as Ke,d as Vt}from"./chunk-2A4ROWH5.js";import{b as ee,c as te,d as ie,e as ne}from"./chunk-Y23AFAZJ.js";import"./chunk-TEBRTGZ6.js";import{a as Ue,c as Ge,e as je}from"./chunk-UDJ3FP7F.js";import{s as fe}from"./chunk-HUKGANG4.js";import{$a as a,$d as Ae,Aa as h,Ab as L,Ac as Pe,Ag as De,Bb as Oe,Bc as V,Cg as Nt,Db as F,Eb as R,Fb as S,Gb as o,Gc as d,Hb as s,Hc as p,Hj as X,Ia as O,Ib as m,Ic as z,Ka as Dt,Lj as Re,Oa as ye,Pb as y,Pc as P,Pk as J,Qg as Ne,Qk as Ve,Rb as C,Rg as Ft,Sf as Ce,Sh as K,Tb as l,Tg as Y,Ug as H,Uj as U,V as he,Vc as E,Wc as k,Wd as Ie,Wg as q,Yd as we,Ze as f,Zh as Fe,ae as ke,bc as D,be as Q,dc as B,de as j,ee as ue,fd as I,gc as c,hc as u,ic as M,jb as A,kb as Ee,nb as Me,pk as Be,ra as Le,tk as Rt,ua as x,ub as v,xb as ve,yb as T,za as g}from"./chunk-E75EFTGM.js";import{a as me,b as ge,e as N}from"./chunk-VINNKM5T.js";function le(i){return(i??[]).map(_=>$(_))}var Ot,W,re,ce=N(()=>{Ce();_t();Ot=[{type:f.LeadQualification,labelKey:"SEARCH.TITLES.LeadQualification"},{type:f.Basic,labelKey:"SEARCH.TITLES.Basic"},{type:f.NavigatorUrl,labelKey:"SEARCH.TITLES.NavigatorUrl"},{type:f.Recruiter,labelKey:"SEARCH.TITLES.Recruiter"},{type:f.PYMKSearch,labelKey:"SEARCH.TITLES.PYMKSearch"},{type:f.PostEngagement,labelKey:"SEARCH.TITLES.PostEngagement"},{type:f.CompanyFollowers,labelKey:"SEARCH.TITLES.CompanyFollowers"},{type:f.Event,labelKey:"SEARCH.TITLES.Event"},{type:f.Group,labelKey:"SEARCH.TITLES.Group"},{type:f.Csv,labelKey:"SEARCH.TITLES.Csv"},{type:f.IntegratedApps,labelKey:"SEARCH.TITLES.IntegratedApps"},{type:f.MCP,labelKey:"SEARCH.TITLES.MCP"}],W="-created",re=[{ordering:W,labelKey:"LEAD_LISTS.SORTING.CREATED_NEWEST",analyticsLabel:"created_newest"},{ordering:"created",labelKey:"LEAD_LISTS.SORTING.CREATED_OLDEST",anal
1yticsLabel:"created_oldest"},{ordering:"-last_reload",labelKey:"LEAD_LISTS.SORTING.REFRESHED_NEWEST",analyticsLabel:"refreshed_newest"},{ordering:"last_reload",labelKey:"LEAD_LISTS.SORTING.REFRESHED_OLDEST",analyticsLabel:"refreshed_oldest"},{ordering:"-nr_contacts",labelKey:"LEAD_LISTS.SORTING.MOST_LEADS",analyticsLabel:"most_leads"},{ordering:"name",labelKey:"LEAD_LISTS.SORTING.NAME_ASC",analyticsLabel:"name_a_z"},{ordering:"-name",labelKey:"LEAD_LISTS.SORTING.NAME_DESC",analyticsLabel:"name_z_a"}]});var pe,xe=N(()=>{I();q();fe();I();pe=(()=>{class i{constructor(){this.findLeads=E(),this.uploadCsv=E(),this.illustrationSize=[250,250]}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=A({type:i,selectors:[["exp-empty-list"]],outputs:{findLeads:"findLeads",uploadCsv:"uploadCsv"},decls:20,vars:13,consts:[["id","lead-lists-empty","data-testid","lead-lists-empty"],["name","empty_lead_lists",3,"customSize"],[1,"message"],[1,"actions"],["type","button","data-testid","lead-lists-empty-find-leads",1,"btn-primary",3,"click"],["name","person_search","size","md"],["type","button","data-testid","lead-lists-empty-upload-csv",1,"btn-secondary","btn-sm",3,"click"],["name","upload","size","md"]],template:function(n,t){n&1&&(o(0,"div",0),m(1,"exp-icon",1),o(2,"div",2)(3,"h5"),c(4),d(5,"translate"),s(),o(6,"p"),c(7),d(8,"translate"),s()(),o(9,"div",3)(10,"button",4),C("click",function(){return t.findLeads.emit()}),m(11,"exp-icon",5),o(12,"span"),c(13),d(14,"translate"),s()(),o(15,"button",6),C("click",function(){return t.uploadCsv.emit()}),m(16,"exp-icon",7),o(17,"span"),c(18),d(19,"translate"),s()()()()),n&2&&(a(),S("customSize",t.illustrationSize),a(3),u(p(5,5,"LEAD_LISTS.EMPTY.TITLE")),a(3),u(p(8,7,"LEAD_LISTS.EMPTY.DESCRIPTION")),a(6),u(p(14,9,"LEAD_LISTS.EMPTY.FIND_LEADS")),a(5),u(p(19,11,"LEAD_LISTS.EMPTY.UPLOAD_CSV")))},dependencies:[U,H],styles:["[_nghost-%COMP%]{display:flex;flex:1 1 auto;align-items:center;justify-content:center}#lead-lists-empty[_ngcontent-%COMP%]{display:flex;width:100%;max-width:421px;flex-direction:column;align-items:center;gap:32px}#lead-lists-empty[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;word-break:break-word}#lead-lists-empty[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:24px;font-weight:600;line-height:28px;color:#303845}#lead-lists-empty[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;font-family:geist,sans-serif;font-size:16px;font-weight:400;line-height:20px;color:#77808c}#lead-lists-empty[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;gap:10px}#lead-lists-empty[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 0 0;min-width:0}#lead-lists-empty[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%]{justify-content:center;height:32px;min-height:32px;padding:4px 12px;gap:4px;font-size:12px;line-height:16px}"],changeDetection:0})}}return i})()});function Li(i,_){i&1&&m(0,"exp-icon",22)}function yi(i,_){if(i&1){let e=y();o(0,"button",21),C("click",function(){let t=g(e).$implicit,r=l();return h(r.select(t))}),o(1,"span"),c(2),d(3,"translate"),s(),T(4,Li,1,0,"exp-icon",22),s()}if(i&2){let e=_.$implicit,n=l();B("selected",n.isSelected(e)),v("data-testid","lead-lists-sorting-"+e.ordering),a(2),u(p(3,5,e.labelKey)),a(2),L(n.isSelected(e)?4:-1)}}function Ei(i,_){i&1&&m(0,"exp-icon",25)}function Mi(i,_){if(i&1){let e=y();o(0,"button",23),C("click",function(t){let r=g(e).$implicit,b=l();return t.stopPropagation(),h(b.toggleType(r))}),o(1,"span",24),T(2,Ei,1,0,"exp-icon",25),s(),o(3,"span"),c(4),d(5,"translate"),s()()}if(i&2){let e=_.$implicit,n=l();v("data-testid","lead-lists-type-"+e.type),a(),B("checked",n.isTypeSelected(e)),a(),L(n.isTypeSelected(e)?2:-1),a(2),u(p(5,5,e.labelKey))}}function vi(i,_){i&1&&(o(0,"p",19),c(1),d(2,"translate"),s()),i&2&&(a(),u(p(2,1,"NOTIFICATIONS.NO_RESULTS")))}function Oi(i,_){if(i&1){let e=y();o(0,"div",26),C("click",function(t){return g(e),h(t.stopPropagation())})("keydown",function(t){return g(e),h(t.stopPropagation())}),o(1,"span",27),c(2),d(3,"translate"),s(),o(4,"button",28),C("click",function(){g(e);let t=l();return h(t.clearTypes())}
1),c(5),d(6,"translate"),s()()}if(i&2){let e=l();a(2),M(" ",z(3,2,"LEAD_LISTS.SORTING.SELECTED_COUNT",V(7,xi,e.selectedTypes().length))," "),a(3),M(" ",p(6,5,"LEAD_LISTS.SORTING.CLEAR_ALL")," ")}}var xi,bi,Ti,Pt,It=N(()=>{I();ne();q();fe();Se();_t();ce();I();ne();xi=i=>({count:i}),bi=(i,_)=>_.ordering,Ti=(i,_)=>_.type;Pt=(()=>{class i{constructor(){this.translate=x(Y),this.tracking=x(G),this.ordering=k(W),this.selectedTypes=k([]),this.orderingChange=E(),this.selectedTypesChange=E(),this.typesAdjusted=E(),this.options=re,this.typeOptions=Ot,this.typeSearch=O(""),this.selectedLabelKey=P(()=>this.options.find(e=>e.ordering===this.ordering())?.labelKey??this.options[0].labelKey),this.visibleTypeOptions=P(()=>{let e=this.typeSearch().trim().toLowerCase();return e?this.typeOptions.filter(n=>this.translate.instant(n.labelKey).toLowerCase().includes(e)):this.typeOptions}),this.typeTriggerLabel=P(()=>{let e=this.selectedTypes().length;return e?this.translate.instant(e===1?"LEAD_LISTS.SORTING.TYPE_SINGULAR":"LEAD_LISTS.SORTING.TYPE_PLURAL",{count:e}):this.translate.instant("LEAD_LISTS.SORTING.ALL_TYPES")})}isSelected(e){return e.ordering===this.ordering()}isTypeSelected(e){return this.selectedTypes().includes(e.type)}select(e){e.ordering!==this.ordering()&&(this.tracking.trackSortingAdjusted({sort_option:e.analyticsLabel,previous_sort_option:this.currentSortOption()?.analyticsLabel??""}),this.orderingChange.emit(e.ordering))}toggleType(e){let n=this.selectedTypes(),t=n.includes(e.type),r=t?n.filter(b=>b!==e.type):[...n,e.type];this.typesAdjusted.emit({lead_list_type:$(e.type),action:t?"removed":"added",active_lead_list_types:le(r)}),this.selectedTypesChange.emit(r)}clearTypes(){for(let e of this.selectedTypes())this.typesAdjusted.emit({lead_list_type:$(e),action:"removed",active_lead_list_types:[]});this.selectedTypesChange.emit([])}currentSortOption(){return this.options.find(e=>e.ordering===this.ordering())}onTypeSearch(e){this.typeSearch.set(e)}resetTypeSearch(){this.typeSearch.set("")}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=A({type:i,selectors:[["exp-list-sorting"]],inputs:{ordering:[1,"ordering"],selectedTypes:[1,"selectedTypes"]},outputs:{orderingChange:"orderingChange",selectedTypesChange:"selectedTypesChange",typesAdjusted:"typesAdjusted"},decls:30,vars:24,consts:[["sortTrigger","matMenuTrigger"],["sortMenu","matMenu"],["typeTrigger","matMenuTrigger"],["typeMenu","matMenu"],["id","list-sorting"],["type","button","data-testid","lead-lists-sorting",1,"sort-trigger",3,"matMenuTriggerFor"],[1,"value"],["name","sort","size","md"],[1,"ellipsis"],["size","md",3,"name"],[1,"exp-dropdown-panel","list-sorting-menu",3,"backdropClass","overlapTrigger"],["type","button",1,"btn",3,"selected"],["type","button","data-testid","lead-lists-types",1,"sort-trigger",3,"menuClosed","matMenuTriggerFor"],["name","category","size","md"],[1,"exp-dropdown-panel","list-types-menu",3,"backdropClass","overlapTrigger"],[1,"menu-list-search",3,"click","keydown"],["name","search","size","md"],["type","text","data-testid","lead-lists-types-search",3,"input","value","placeholder"],["type","button",1,"btn","option-row"],[1,"type-empty"],[1,"panel-footer"],["type","button",1,"btn",3,"click"],["name","check","size","md"],["type","button",1,"btn","option-row",3,"click"],[1,"checkbox"],["name","check","size","sm"],[1,"panel-footer",3,"click","keydown"],[1,"selected-count"],["type","button","data-testid","lead-lists-types-clear",1,"clear-all",3,"click"]],template:function(n,t){if(n&1){let r=y();o(0,"div",4)(1,"button",5,0)(3,"span",6),m(4,"exp-icon",7),o(5,"span",8),c(6),d(7,"translate"),s()(),m(8,"exp-icon",9),s(),o(9,"mat-menu",10,1),F(11,yi,5,7,"button",11,bi),s(),o(13,"button",12,2),C("menuClosed",function(){return g(r),h(t.resetTypeSearch())}),o(15,"span",6),m(16,"exp-icon",13),o(17,"span",8),c(18),s()(),m(19,"exp-icon",9),s(),o(20,"mat-menu",14,3)(22,"div",15),C("click",function(w){return g(r),h(w.stopPropagation())})("keydown",function(w){return g(r),h(w.stopPropagation())}),m(23,"exp-icon",16),o(24,"input",17),d(25,"translate"),C("input",function(w){return g(r),h(t.onTypeSearch(w.target.value))}),s()(),F(26,Mi,6,7,"button",18,Ti,!1,vi,3,3,"p",19),T(29,Oi,7,9,"div",20),s()()}if(n&2){let r=D(2),b=D(10),w=D(14),kt=D(21);a(),B("is-open",r.menuOpen),S("matMenuTriggerFor",b),a(5),u(p(7,20,t.selectedLabelKey())),a(2),S("name",r.menuOpen?"expand_less":"expand_more"),a(),S("backdropClass","dropdown-menu")("overlapTrigger",!1),a(2),R(t.options),a(2),B("is-open",w.menuOpen),S("matMenuTriggerFor",kt),a(2),B("has-selection",t.selectedTypes().length),a(3),u(t.typeTr
1iggerLabel()),a(),S("name",w.menuOpen?"expand_less":"expand_more"),a(),S("backdropClass","dropdown-menu")("overlapTrigger",!1),a(4),S("value",t.typeSearch())("placeholder",p(25,22,"LEAD_LISTS.SORTING.SEARCH_TYPE")),a(2),R(t.visibleTypeOptions()),a(3),L(t.selectedTypes().length?29:-1)}},dependencies:[ie,ee,te,U,H],styles:["#list-sorting[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}#list-sorting[_ngcontent-%COMP%] .sort-trigger[_ngcontent-%COMP%]{display:flex;width:100%;height:36px;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;border:1px solid #CDD2D9;border-radius:8px;background:#fafafa;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#77808c;white-space:nowrap;cursor:pointer;transition:border-color .15s ease,background-color .15s ease}#list-sorting[_ngcontent-%COMP%] .sort-trigger[_ngcontent-%COMP%]:hover{background:#f3f7f9}#list-sorting[_ngcontent-%COMP%] .sort-trigger.is-open[_ngcontent-%COMP%]{border-color:#105670}#list-sorting[_ngcontent-%COMP%] .sort-trigger[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{display:flex;min-width:0;align-items:center;gap:4px}#list-sorting[_ngcontent-%COMP%] .sort-trigger[_ngcontent-%COMP%] .value.has-selection[_ngcontent-%COMP%]{color:#303845}"],changeDetection:0})}}return i})()});function ki(i,_){if(i&1&&m(0,"exp-table-skeleton",24),i&2){let e=l(2);S("columns",e.skeletonColumns)("gridTemplateColumns",e.skeletonGrid)("minWidth",e.skeletonMinWidth)("rows",e.skeletonRows())}}function Di(i,_){if(i&1&&(o(0,"span"),c(1),d(2,"translate"),s()),i&2){let e=l().$implicit,n=l(3);a(),M(" ",z(2,1,"LEAD_LISTS.TABLE.REFRESHED",V(4,wi,n.refreshedAgo(e)))," ")}}function Ni(i,_){if(i&1&&(o(0,"span",32),m(1,"exp-icon",52),o(2,"span"),c(3),d(4,"translate"),s()()),i&2){let e=l().$implicit,n=l(3);v("data-testid","lead-lists-row-"+e.id+"-progress"),a(3),u(p(4,2,n.progressLabel(e)))}}function Fi(i,_){if(i&1&&(o(0,"span"),c(1),s()),i&2){let e=l().$implicit;a(),u(e.nr_current_results)}}function Ri(i,_){if(i&1&&(o(0,"span",34),m(1,"exp-icon",18),o(2,"span"),c(3),s()()),i&2){let e=_.$implicit,n=l(4);a(3),u(n.campaignName(e))}}function Bi(i,_){if(i&1&&(o(0,"span",35),c(1),s()),i&2){let e=l().$implicit,n=l(3);S("matTooltip",n.hiddenCampaignNames(e)),v("data-testid","lead-lists-row-"+e.id+"-campaigns-overflow"),a(),M(" +",n.hiddenCampaignsCount(e)," ")}}function Vi(i,_){if(i&1&&(o(0,"span"),c(1),d(2,"translate"),s()),i&2){let e=l().$implicit;a(),M(" ",z(2,1,"LEAD_LISTS.TABLE.AUTO_REFRESH_EVERY",V(4,Ai,e.auto_reload_time_delta))," ")}}function zi(i,_){i&1&&(o(0,"span"),c(1),d(2,"translate"),s()),i&2&&(a(),M(" ",p(2,1,"LEAD_LISTS.TABLE.AUTO_REFRESH_OFF")," "))}function Hi(i,_){i&1&&(o(0,"span"),c(1),d(2,"translate"),s()),i&2&&(a(),M(" ",p(2,1,"LEAD_LISTS.TABLE.AUTO_REFRESH_UNAVAILABLE")," "))}function Ui(i,_){if(i&1){let e=y();o(0,"div",43),d(1,"translate"),o(2,"button",53),C("click",function(){g(e);let t=l().$implicit,r=l(3);return h(r.refreshList(t))}),m(3,"exp-icon",54),o(4,"span"),c(5),d(6,"translate"),s()()()}if(i&2){let e=l().$implicit;S("matTooltip",p(1,4,"LEAD_LISTS.TABLE.TOOLTIPS.REFRESH_WHILE_SCRAPING"))("matTooltipDisabled",!e.in_progress),a(2),S("disabled",e.in_progress),a(3),u(p(6,6,"LEAD_LISTS.TABLE.ACTIONS.REFRESH_LIST"))}}function Gi(i,_){if(i&1){let e=y();o(0,"button",55),C("click",function(){g(e);let t=l().$implicit,r=l(3);return h(r.openSettings(t))}),m(1,"exp-icon",56),o(2,"span"),c(3),d(4,"translate"),s()()}i&2&&(a(3),u(p(4,1,"LEAD_LISTS.TABLE.ACTIONS.SETTINGS")))}function ji(i,_){if(i&1){let e=y();o(0,"button",57),C("click",function(){g(e);let t=l().$implicit,r=l(3);return h(r.showSourceUrl(t))}),m(1,"exp-icon",58),o(2,"span"),c(3),d(4,"translate"),s()()}i&2&&(a(3),u(p(4,1,"LEAD_LISTS.TABLE.ACTIONS.SOURCE_URL")))}function Ki(i,_){if(i&1){let e=y();o(0,"button",59),C("click",function(){g(e);let t=l().$implicit,r=l(3);return h(r.openShare(t))}),m(1,"exp-icon",60),o(2,"span"),c(3),d(4,"translate"),s()()}i&2&&(a(3),u(p(4,1,"LEAD_LISTS.TABLE.ACTIONS.SHARE")))}function $i(i,_){if(i&1){let e=y();o(0,"button",61),C("click",function(){g(e);let t=l().$implicit,r=l(3);return h(r.deleteList(t))}),m(1,"exp-icon",62),o(2,"span"),c(3),d(4,"translate"),s()()}i&2&&(a(3),u(p(4,1,"LEAD_LISTS.TABLE.ACTIONS.DELETE_LIST")))}function Wi(i,_){if(i&1){let e=y();o(0,"div",27),C("click",function(){let t=g(e).$implicit,r=l(3);return h(r.openList.emit(t))}),o(1,"div",28)(2,"button",29),C("click",function(t){let r=g(e).$implicit,b=l(3);return t.stopPropagation(),h(b.openList.emit(r))}),c(3),s(),o(4,"span",30)(5,"span"),c(6),d(7,"translate"),s(),o(8,"span"),c(9),d(10,"localizedDate"),s(),T(11,Di,3,6,"span"),s()(),o(12,"div",31),T(13,Ni,5,4,"span",32)(14,Fi,2,1,"span"),s(),o(15,"div",33),F(16,Ri,4,1,"span",34,Oe),T(18,Bi,2,3,"span",35),s(),o(19,"div",36),T(20,Vi,3,6,"span")(21,zi,3,3,"span")(22,Hi,3,3,"span"),s(),o(23,"div",37)(24,"button",38),C("click",function(t){return g(e),h(t.stopPropagation())}),m(25,"exp-icon",39),s(),o(26,"mat-menu",40,0)(28,"button",41),C("click",function(){let t=g(e).$implicit,r=l(3);return h(r.openListAction(t))}),m(29,"exp-icon",42),o(30,"span"),c(31),d(32,"translate"),s()(),o(33,"div",43),d(34,"translate"),o(35,"button",44),C("click",function(){let t=g(e).$implicit,r=l(3);return h(r.exportAsCsv(t))}),m(36,"exp-icon",45),o(37,"span"),c(38),d(39,"translate"),s()()(),o(40,"div",43),d(41,"translate"),o(42,"button",46),C("click",function(){let t=g(e).$implicit,r=l(3);return h(r.exportViaWebhook(t))}),m(43,"exp-icon",47),o(44,"span"),c(45),d(46,"translate"),s()()(),T(47,Ui,7,8,"div",43),T(48,Gi,5,3,"button",48),T(49,ji,5,3,"button",49),T(50,Ki,5,3,"button",50),T(51,$i,5,3,"button",51),s()()()}if(i&2){let e=_.$implicit,n=D(27),t=l(3);v("data-testid","lead-lists-row-"+e.id),a(2),v("data-testid","lead-lists-row-"+e.id+"-name"),a(),M(" ",e.name," "),a(3),u(p(7,30,t.sourceTypeLabel(e))),a(3),u(p(10,32,e.created)),a(2),L(t.refreshedAgo(e)?11:-1),a(),v("data-testid","lead-lists-row-"+e.id+"-leads"),a(),L(e.in_progress?13:14),a(2),v("data-testid","lead-lists-row-"+e.id+"-campaigns"),a(),R(t.visibleCampaigns(e)),a(2),L(t.hiddenCampaignsCount(e)?18:-1),a(),v("data-testid","lead-lists-row-"+e.id+"-auto-refresh"),a(),L(e.has_auto_reload&&e.auto_reload_time_delta?20:t.supportsAutoRefresh(e)?21:22),a(4),S("matMenuTriggerFor",n),v("data-testid","lead-lists-row-"+e.id+"-actions"),a(2),S("backdropClass","dropdown-menu")("overlapTrigger",!1),a(5),u(p(32,34,"LEAD_LISTS.TABLE.ACTIONS.OPEN_LIST")),a(2),S("matTooltip",p(34,36,"LEAD_LISTS.TABLE.TOOLTIPS.EXPORT_WHILE_SCRAPING"))("matTooltipDisabled",!e.in_progress),a(2),S("disabled",e.in_progress),a(3),u(p(39,38,"LEAD_LISTS.TABLE.ACTIONS.EXPORT_CSV")),a(2),S("matTooltip",p(41,40,"LEAD_LISTS.TABLE.TOOLTIPS.EXPORT_WHILE_SCRAPING"))("matTooltipDisabled",!e.in_progress),a(2),S("disabled",e.in_progress),a(3),u(p(46,42,"LEAD_LISTS.TABLE.ACTIONS.EXPORT_WEBHOOK")),a(2),L(t.allowRefresh(e)?47:-1),a(),L(t.allowSettings(e)?48:-1),a(),L(t.allowSourceUrl(e)?49:-1),a(),L(t.allowShare(e)?50:-1),a(),L(t.allowDelete(e)?51:-1)}}function Qi(i,_){if(i&1&&(o(0,"div",25),F(1,Wi,52,44,"div",26,ve().trackById,!0),s()),i&2){let e=l(2);a(),R(e.tableData().rows)}}function Yi(i,_){if(i&1&&T(0,ki,1,4,"exp-table-skeleton",24)(1,Qi,3,0,"div",25),i&2){let e=l();L(e.isContent()?1:0)}}function qi(i,_){if(i&1){let e=y();o(0,"div",22),m(1,"exp-icon",63),o(2,"div",64)(3,"p",65),c(4),d(5,"translate"),s(),o(6,"p",66),c(7),d(8,"translate"),s()(),o(9,"div",67)(10,"span")(11,"span",68),c(12),s(),c(13),d(14,"translate"),s(),o(15,"button",69),C("click",function(){g(e);let t=l();return h(t.clearSearchFilters())}),c(16),d(17,"translate"),s()()()}if(i&2){let e=l();a(),S("customSize",e.noResultsIllustrationSize),a(3),u(p(5,6,"LEAD_LISTS.TABLE.NO_RESULTS.TITLE")),a(3),u(p(8,8,"LEAD_LISTS.TABLE.NO_RESULTS.DESCRIPTION")),a(5),M(" ",e.hiddenByFilters()," "),a(),M(" ",p(14,10,"LEAD_LISTS.TABLE.NO_RESULTS.HIDDEN_BY_FILTERS")," "),a(3),M(" ",p(17,12,"LEAD_LISTS.TABLE.NO_RESULTS.CLEAR_ALL")," ")}}var Pi,Ii,wi,Ai,_e,be=N(()=>{I();Re();ne();je();ue();q();Ht();Dt();fe();it();Qt();rt();ai();gi();_i();hi();ci();li();Ve();He();
1at();ti();qt();Xt();Fe();Ce();It();ce();Se();I();ne();je();Yt();$t();Ut();Pi=i=>({count:i}),Ii=()=>[],wi=i=>({time:i}),Ai=i=>({days:i});_e=(()=>{class i{constructor(){this.matDialog=x(X),this.ngxPermissionsService=x(Q),this.global=x(J),this.notificationService=x(Z),this.searchesService=x(oe),this.contactsService=x(dt),this.messengerService=x(nt),this.webhooksService=x(ot),this.tracking=x(G),this.tableData=k.required(),this.filter=k.required(),this.isContent=k(!0),this.hiddenByFilters=k(0),this.filterEvent=E(),this.changed=E(),this.openList=E(),this.findLeads=E(),this.uploadCsv=E(),this.clearFilters=E(),this.typesAdjusted=E(),this.searchPerformed=E(),this.isEditSearch=O(!1),this.isDeleteSearch=O(!1),this.resetSearch=O(!1),this.SearchType=f,this.skeletonGrid="minmax(380px, 1fr) minmax(150px, 0.4fr) minmax(260px, 0.8fr) minmax(150px, 0.4fr) 100px",this.skeletonMinWidth="1060px",this.skeletonColumns=[{barWidth:96},{barWidth:96},{barWidth:96,hasCircle:!0},{barWidth:96},{barWidth:53,align:"center"}],this.skeletonRows=P(()=>this.filter().page_size||10),this.noResultsIllustrationSize=[64,65],this.typesWithoutSourceUrl=[f.Csv,f.PYMKSearch,f.LeadQualification,f.MCP,f.IntegratedApps]}ngOnInit(){this.ngxPermissionsService.hasPermission("searches.edit").then(e=>{this.isEditSearch.set(e)}),this.ngxPermissionsService.hasPermission("searches.delete").then(e=>{this.isDeleteSearch.set(e)}),this.user=this.global.current_loggedin_user}trackById(e,n){return n.id}searchChanged(e){let n=(e.search??"").trim();n&&this.searchPerformed.emit({search_term:n,active_lead_list_types:le(this.filter().search_type??[])}),this.filterEvent.emit(this.filter().patch(e))}clearSearchFilters(){this.resetSearch.update(e=>!e),this.clearFilters.emit()}paginatorChanged(e){this.filterEvent.emit(this.filter().patch(e))}orderingChanged(e){let n=this.filter();n.ordering=e,n.page=1,this.filterEvent.emit(n)}selectedTypesChanged(e){let n=this.filter();n.search_type=e.length?e:void 0,n.page=1,this.filterEvent.emit(n)}sourceTypeLabel(e){return"SEARCH.TITLES."+f[e.search_type]}progressLabel(e){return e.search_type===f.Csv?"LEAD_LISTS.TABLE.IMPORTING":"LEAD_LISTS.TABLE.SCRAPING"}refreshedAgo(e){return e.last_reload?We.fromJSDate(new Date(e.last_reload)).toRelative()??"":""}visibleCampaigns(e){return e.campaign_instances?.slice(0,1)??[]}hiddenCampaignsCount(e){return Math.max((e.campaign_instances?.length??0)-1,0)}hiddenCampaignNames(e){return(e.campaign_instances??[]).slice(1).map(n=>n?.name).join(` 2`)}campaignName(e){return e?.name??""}supportsAutoRefresh(e){return e.search_type!==f.Csv&&e.search_type!==f.MCP}allowSourceUrl(e){return!this.typesWithoutSourceUrl.includes(e.search_type)}allowRefresh(e){return e.search_type!==f.Csv&&e.search_type!==f.MCP&&this.isEditSearch()&&!e.shared}allowSettings(e){return this.isEditSearch()&&!e.shared}allowShare(e){return this.isEditSearch()&&!e.shared&&(!this.user?.EndUser||this.user?.canShareSearch)}allowDelete(e){return this.isDeleteSearch()&&!e.in_progress}openListAction(e){this.trackQuickAction("open_list",e),this.openList.emit(e)}trackQuickAction(e,n){this.tracking.trackQuickAction({value:e,lead_list_id:n.id})}showSourceUrl(e){this.trackQuickAction("source_url",e),this.matDialog.open(Tt,{panelClass:["card-dialog","small"],data:e})}openSettings(e){this.trackQuickAction("settings",e);let n=this.matDialog.open(yt,{panelClass:["card-dialog","small"],data:e});n.componentInstance.submitted$.pipe(he(1)).subscribe(t=>{n.close(),this.searchesService.searchNameChanged$.next(t),this.notificationService.translatedSuccess("SEARCH.SETTINGS_UPDATED"),this.changed.emit()})}openShare(e){this.trackQuickAction("share",e),this.matDialog.open(Et,{panelClass:["card-dialog","small"],data:e})}refreshList(e){this.notificationService.confirmModal({confirmMessage:"NOTIFICATIONS.CONFIRM_REFRESH"},null,"lead-lists-refresh-dialog").subscribe(n=>{n&&(this.trackQuickAction("refresh_list",e),this.searchesService.reloadSearch(e.id).subscribe({next:()=>{this.notificationService.translatedSuccess("NOTIFICATIONS.SEARCH_WILL_BE_RERAN"),this.changed.emit()},error:t=>{this.notificationService.translatedError(t?.error?.message||"NOTIFICATIONS.SOMETHING_WENT_WRONG")}}))})}deleteList(e){this.notificationService.confirmModal({confirmMessage:"NOTIFICATIONS.CONFIRM_DELETION"},null,"lead-lists-delete-dialog").subscribe(n=>{n&&(this.trackQuickAction("delete_list",e),this.searchesService.deleteSearch(e.id).subscribe({next:()=>{this.notificationService.translatedSuccess("NOTIFICATIONS.SEARCH_DELETED"),this.emitAfterDelete()},error:()=>{this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}}))})}exportAsCsv(e){this.trackQuickAction("export_as_csv",e),this.matDialog.open(St,{panelClass:["card-dialog","small"],data:e.name}).componentInstance.submit$.pipe(he(1)).subscribe(t=>{let r={all_contacts:!0,contacts:[],li_account:this.global.currentLinkedInAccount.id,search_filter:e.id,email:t.email},b=new K({exclude_messages:+!t.exclude_messages,csv_name:t.csv_name});this.contactsService.exportAsCsv(r,b).subscribe({next:()=>this.notificationService.translatedSuccess("NOTIFICATIONS.CSV_WILL_BE_SENT"),error:()=>this.notificationService.translatedError("NOTIFICATIONS.PROBLEM_REQUESTING_CONTACTS")})})}exportViaWebhook(e){this.trackQuickAction("export_via_webhook",e),this.allContactsOfList(e).subscribe(n=>{this.webhooksService.webhookModalDataChanged$.next(null),this.webhooksService.webhookModalDataChanged$.next({messengers:n.rows.map(t=>
2t.id)}),this.matDialog.open(ft,{panelClass:["card-dialog","small"]})})}allContactsOfList(e){return this.messengerService.contacts(new K({li_account_id:this.global.currentLinkedInAccount.id,contact__search_filter:[e.id],page_size:e.nr_current_results||1e3,page:1}))}emitAfterDelete(){let e=this.tableData().rows.length===1,n=this.filter().page;if(e&&n>1){let t=this.filter();t.page=n-1,this.filterEvent.emit(t);return}this.changed.emit()}static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275cmp=A({type:i,selectors:[["exp-leads-list-table"]],inputs:{tableData:[1,"tableData"],filter:[1,"filter"],isContent:[1,"isContent"],hiddenByFilters:[1,"hiddenByFilters"]},outputs:{filterEvent:"filterEvent",changed:"changed",openList:"openList",findLeads:"findLeads",uploadCsv:"uploadCsv",clearFilters:"clearFilters",typesAdjusted:"typesAdjusted",searchPerformed:"searchPerformed"},decls:54,vars:44,consts:[["rowActions","matMenu"],["id","leads-list-table","data-testid","lead-lists-table"],[1,"list-header"],["data-testid","lead-lists-summary",1,"summary"],[1,"header-actions"],["type","button","data-testid","lead-lists-upload-csv",1,"btn-secondary","btn-sm",3,"click"],["name","upload","size","md"],["type","button","data-testid","lead-lists-find-leads",1,"btn-primary",3,"click"],["name","person_search","size","md"],[1,"list-toolbar"],["testId","lead-lists-search",1,"filter-field-parent",3,"filterChange","labelKey","useLabelAsPlaceholder","filterQuery","reset"],[3,"orderingChange","selectedTypesChange","typesAdjusted","ordering","selectedTypes"],[1,"data-table"],[1,"table-scroll"],[1,"head","fadeIn"],[1,"head-cell"],["name","list_alt","size","md"],["name","people_alt","size","md"],["name","campaign","size","md"],["name","info","size","md","matTooltipPosition","above",1,"hint",3,"matTooltip"],["name","sync","size","md"],["name","bolt","size","md"],["data-testid","lead-lists-no-results",1,"no-results"],[3,"firstTableFilterChanged","firstTableFilter","tableData"],["data-testid","lead-lists-skeleton",3,"columns","gridTemplateColumns","minWidth","rows"],[1,"body"],[1,"row","fadeIn"],[1,"row","fadeIn",3,"click"],[1,"cell","stacked","name-cell"],["type","button",1,"list-name",3,"click"],[1,"list-meta"],[1,"cell"],[1,"badge-scraping"],[1,"cell","campaigns-cell"],[1,"badge-campaign"],["matTooltipPosition","above","matTooltipClass","multiline-tooltip",1,"badge-campaign","overflow-count",3,"matTooltip"],[1,"cell","auto-refresh"],[1,"cell","actions-cell"],["type","button",1,"btn-row-actions",3,"click","matMenuTriggerFor"],["name","more_horiz","size","xl"],[1,"exp-dropdown-panel","lead-list-actions-menu",3,"backdropClass","overlapTrigger"],["type","button","data-testid","lead-lists-actions-open",1,"btn",3,"click"],["name","launch"],["matTooltipPosition","left",1,"menu-action",3,"matTooltip","matTooltipDisabled"],["type","button","data-testid","lead-lists-actions-export-csv",1,"btn",3,"click","disabled"],["name","file_download"],["type","button","data-testid","lead-lists-actions-export-webhook",1,"btn",3,"click","disabled"],["name","webhook"],["type","button","data-testid","lead-lists-actions-settings",1,"btn"],["type","button","data-testid","lead-lists-actions-source-url",1,"btn"],["type","button","data-testid","lead-lists-actions-share",1,"btn"],["type","button","data-testid","lead-lists-actions-delete",1,"btn","btn-delete-mat-menu"],["name","progress_activity","size","sm"],["type","button","data-testid","lead-lists-actions-refresh",1,"btn",3,"click","disabled"],["name","refresh"],["type","button","data-testid","lead-lists-actions-settings",1,"btn",3,"click"],["name","settings"],["type","button","data-testid","lead-lists-actions-source-url",1,"btn",3,"click"],["name","link"],["type","button","data-testid","lead-lists-actions-share",1,"btn",3,"click"],["name","share"],["type","button","data-testid","lead-lists-actions-delete",1,"btn","btn-delete-mat-menu",3,"click"],["name","delete"],["name","empty_search_filters",3,"customSize"],[1,"message"],[1,"title"],[1,"description"],[1,"hidden-by-filters"],["data-testid","lead-lists-hidden-count",1,"count"],["type","button","data-testid","lead-lists-clear-filters",1,"btn-secondary","btn-sm",3,"click"]],template:function(n,t){n&1&&(o(0,"div",1)(1,"div",2)(2,"span",3),c(3),d(4,"translate"),s(),o(5,"div",4)(6,"button",5),C("click",function(){return t.uploadCsv.emit()}),m(7,"exp-icon",6),o(8,"span"),c(9),d(10,"translate"),s()(),o(11,"button",7),C("click",function(){return t.findLeads.emit()}),m(12,"exp-icon",8),o(13,"span"),c(14),d(15,"translate"),s()()()(),o(16,"div",9)(17,"exp-filter-search",10),C("filterChange",function(b){return t.searchChanged(b)}),s(),o(18,"exp-list-sorting",11),C("orderingChange",function(b){return t.orderingChanged(b)})("selectedTypesChange",function(b){return t.selectedTypesChanged(b)})("typesAdjusted",function(b){return t.typesAdjusted.emit(b)}),s()(),o(19,"div",12)(20,"div",13)(21,"div",14)(22,"div",15),m(23,"exp-icon",16),o(24,"span"),c(25),d(26,"translate"),s()(),o(27,"div",15),m(28,"exp-icon",17),o(29,"span"),c(30),d(31,"translate"),s()(),o(32,"div",15),m(33,"exp-icon",18),o(34,"span"),c(35),d(36,"translate"),s(),m(37,"exp-icon",19),d(38,"translate"),s(),o(39,"div",15),m(40,"exp-icon",20),o(41,"span"),c(42),d(43,"translate"),s(),m(44,"exp-icon",19),d(45,"translate"),s(),o(46,"div",15),m(47,"exp-icon",21),o(48,"span"),c(49),d(50,"translate"),s()()(),T(51,Yi,2,1),T(52,qi,18,14,"div",22),s(),o(53,"exp-data-paginator",23),C("firstTableFilterChanged",function(b){return t.paginatorChanged(b)}),s()()()),n&2&&(a(3),M(" ",z(4,20,"LEAD_LISTS.TABLE.SUMMARY",V(41,Pi,t.tableData().totalRows))," "),a(6),u(p(10,23,"LEAD_LISTS.E
2MPTY.UPLOAD_CSV")),a(5),u(p(15,25,"LEAD_LISTS.EMPTY.FIND_LEADS")),a(3),S("labelKey","LEAD_LISTS.TABLE.SEARCH_PLACEHOLDER")("useLabelAsPlaceholder",!0)("filterQuery",t.filter())("reset",t.resetSearch()),a(),S("ordering",t.filter().ordering)("selectedTypes",t.filter().search_type??Pe(43,Ii)),a(7),u(p(26,27,"LEAD_LISTS.TABLE.COLUMNS.NAME")),a(5),u(p(31,29,"LEAD_LISTS.TABLE.COLUMNS.LEADS")),a(5),u(p(36,31,"LEAD_LISTS.TABLE.COLUMNS.ASSIGNED_CAMPAIGNS")),a(2),S("matTooltip",p(38,33,"LEAD_LISTS.TABLE.ASSIGNED_CAMPAIGNS_HINT")),a(5),u(p(43,35,"LEAD_LISTS.TABLE.COLUMNS.AUTO_REFRESH")),a(2),S("matTooltip",p(45,37,"SEARCH.AUTO_RELOAD_TOOLTIP")),a(5),u(p(50,39,"LEAD_LISTS.TABLE.COLUMNS.ACTIONS")),a(2),L(!t.isContent()||t.tableData().rows.length?51:-1),a(),L(t.isContent()&&!t.tableData().rows.length?52:-1),a(),S("firstTableFilter",t.filter())("tableData",t.tableData()))},dependencies:[U,ie,ee,te,Ge,Ue,j,ae,tt,et,Je,se,gt,Pt,H,Qe],styles:['@charset "UTF-8";.head-cell.cdk-drag-preview[_ngcontent-%COMP%]{display:flex;height:40px;align-items:center;gap:4px;padding:0 12px;border:1px solid #DFE4EC;border-radius:4px;background:var(--mainBackground-color);box-shadow:0 4px 8px -2px #1018281a,0 2px 4px -2px #1018280f;font-family:geist,sans-serif;font-size:12px;font-weight:600;line-height:16px;color:#77808c;white-space:nowrap}.head-cell.cdk-drag-preview[_ngcontent-%COMP%] .column-actions[_ngcontent-%COMP%]{display:none}#leads-list-table[_ngcontent-%COMP%]{display:flex;width:100%;height:100%;flex-direction:column;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;border-radius:8px;overflow:hidden;height:100%}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .head[_ngcontent-%COMP%], #leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(380px,1fr) minmax(150px,.4fr) minmax(260px,.8fr) minmax(150px,.4fr) 100px;min-width:1060px;border-right:1px solid #DFE4EC;border-left:1px solid #DFE4EC}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .table-scroll[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:auto;height:100%}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .head[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;border-top:1px solid #DFE4EC;border-top-left-radius:8px;border-top-right-radius:8px;background:var(--mainBackground-color)}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .head[_ngcontent-%COMP%] .head-cell[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;height:40px;padding:0 12px;overflow:hidden;font-family:geist,sans-serif;font-size:12px;font-weight:600;line-height:16px;color:#77808c;white-space:nowrap;border-bottom:1px solid #DFE4EC}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .head[_ngcontent-%COMP%] .head-cell[_ngcontent-%COMP%] .hint[_ngcontent-%COMP%]{margin-left:12px;color:#77808c;cursor:help}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%]{display:flex;flex-direction:column}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{background:var(--mainBackground-color);cursor:pointer;transition:background-color .15s ease}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:hover{background:#f3f7f9}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:last-child{border-bottom-left-radius:8px;border-bottom-right-radius:8px}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:last-child .cell[_ngcontent-%COMP%]:first-child{border-bottom-left-radius:8px}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:last-child .cell[_ngcontent-%COMP%]:last-child{border-bottom-right-radius:8px}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .cell[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;min-width:0;height:64px;padding:0 12px;border-bottom:1px solid #DFE4EC;font-family:geist,sans-serif;font-size:14px;font-weight:400;line-height:16px;color:#303845}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .cell[_ngcontent-%COMP%]:first-child{padding:0 16px}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%] .body[_ngcontent-%COMP%] .cell.stacked[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;justify-content:center;gap:4px}#leads-list-table[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;width:100%;max-width:273px;margin:auto;flex-direction:column;align-items:center;justify-content:center;gap:24px}#leads-list-table[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}#leads-list-table[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin:0;font-size:16px;font-weight:400;line-height:20px;color:#303845}#leads-list-table[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%] .message[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin:0;font-size:14px;font-weight:400;line-height:16px;
2color:#77808c}#leads-list-table[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%] .hidden-by-filters[_ngcontent-%COMP%]{display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;border:1px solid #DFE4EC;border-radius:8px;font-size:14px;line-height:16px;color:#77808c}#leads-list-table[_ngcontent-%COMP%] .no-results[_ngcontent-%COMP%] .hidden-by-filters[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{color:#303845}#leads-list-table[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border-bottom:1px solid #DFE4EC}#leads-list-table[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{font-family:geist,sans-serif;font-size:14px;font-weight:600;line-height:16px;color:#191d23}#leads-list-table[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}#leads-list-table[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .btn-primary[_ngcontent-%COMP%], #leads-list-table[_ngcontent-%COMP%] .list-header[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] .btn-secondary[_ngcontent-%COMP%]{justify-content:center;height:32px;min-height:32px;min-width:0;padding:4px 12px;gap:4px;font-size:12px;line-height:16px}#leads-list-table[_ngcontent-%COMP%] .list-toolbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 16px}#leads-list-table[_ngcontent-%COMP%] .list-toolbar[_ngcontent-%COMP%] exp-filter-search[_ngcontent-%COMP%]{width:300px;max-width:100%}#leads-list-table[_ngcontent-%COMP%] .data-table[_ngcontent-%COMP%]{margin:0 16px}#leads-list-table[_ngcontent-%COMP%] exp-table-skeleton[_ngcontent-%COMP%]{display:block;height:100%;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] exp-data-paginator[_ngcontent-%COMP%]{margin-top:auto}#leads-list-table[_ngcontent-%COMP%] .name-cell[_ngcontent-%COMP%] .list-name[_ng
2content-%COMP%]{display:block;max-width:100%;font-size:14px;font-weight:600;line-height:16px;color:#303845;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}#leads-list-table[_ngcontent-%COMP%] .name-cell[_ngcontent-%COMP%] .list-name[_ngcontent-%COMP%]:hover{color:#105670}#leads-list-table[_ngcontent-%COMP%] .name-cell[_ngcontent-%COMP%] .list-meta[_ngcontent-%COMP%]{display:flex;align-items:center;max-width:100%;font-size:12px;font-weight:400;line-height:16px;color:#77808c;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] .name-cell[_ngcontent-%COMP%] .list-meta[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{white-space:nowrap}#leads-list-table[_ngcontent-%COMP%] .name-cell[_ngcontent-%COMP%] .list-meta[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:first-child):before{content:"\\b7";margin:0 4px}#leads-list-table[_ngcontent-%COMP%] .badge-scraping[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;max-width:100%;gap:4px;padding:2px 8px;border-radius:9999px;background:#f7f2ff;font-size:12px;font-weight:500;line-height:16px;color:#5127b5;white-space:nowrap;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] .badge-campaign[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;max-width:100%;gap:4px;padding:2px 8px;border-radius:9999px;background:#e8f5ff;font-size:12px;font-weight:500;line-height:16px;color:#0041ab;white-space:nowrap;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] .campaigns-cell[_ngcontent-%COMP%]{gap:8px;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] .campaigns-cell[_ngcontent-%COMP%] .badge-campaign[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#leads-list-table[_ngcontent-%COMP%] .campaigns-cell[_ngcontent-%COMP%] .overflow-count[_ngcontent-%COMP%]{flex-shrink:0;cursor:help}#leads-list-table[_ngcontent-%COMP%] .auto-refresh[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#77808c;font-weight:400}#leads-list-table[_ngcontent-%COMP%] .actions-cell[_ngcontent-%COMP%]{justify-content:center}#leads-list-table[_ngcontent-%COMP%] .actions-cell[_ngcontent-%COMP%] .btn-row-actions[_ngcontent-%COMP%]{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:8px;border:0;border-radius:8px;background:transparent;color:#303845;cursor:pointer;transition:background-color .3s ease}#leads-list-table[_ngcontent-%COMP%] .actions-cell[_ngcontent-%COMP%] .btn-row-actions[_ngcontent-%COMP%]:hover{background:#f3f7f9}#leads-list-table[_ngcontent-%COMP%] .actions-cell[_ngcontent-%COMP%] .btn-row-actions[_ngcontent-%COMP%]:disabled{color:#bbbec4;pointer-events:none}'],changeDetection:0})}}return i})()});function Ji(i,_){if(i&1){let e=y();o(0,"exp-empty-list",4),C("findLeads",function(){g(e);let t=l();return h(t.createSearch(t.SearchType.Basic,"lead_lists_page"))})("uploadCsv",function(){g(e);let t=l();return h(t.uploadCsv())}),s()}}function Zi(i,_){if(i&1){let e=y();o(0,"exp-leads-list-table",5),C("filterEvent",function(t){g(e);let r=l();return h(r.filterChanged(t))})("changed",function(){g(e);let t=l();return h(t.reloadSearches())})("openList",function(t){g(e);let r=l();return h(r.openList(t))})("findLeads",function(){g(e);let t=l();return h(t.createSearch(t.SearchType.Basic,"lead_lists_page"))})("uploadCsv",function(){g(e);let t=l();return h(t.uploadCsv())})("clearFilters",function(){g(e);let t=l();return h(t.clearFilters())})("typesAdjusted",function(t){g(e);let r=l();return h(r.typesAdjusted(t))})("searchPerformed",function(t){g(e);let r=l();return h(r.searchPerformed(t))}),s()}if(i&2){let e=l();S("tableData",e.searches())("filter",e.searchFilterQuery)("isContent",!e.isLoading())("hiddenByFilters",e.hiddenByFilters())}}var Te,wt,At=N(()=>{I();ke();Re();ue();Ft();He();Ve();at();oi();Fe();Nt();Ce();Rt();zt();q();ce();Se();I();xe();be();Te="lead-lists-ordering",wt=(()=>{class i extends Be{constructor(){super(...arguments),this.ngxPermissionsService=x(Q),this.router=x(we),this.activatedRoute=x(Ie),this.notificationService=x(Z),this.matDialog=x(X),this.global=x(J),this.searchesService=x(oe),this.titleService=x($e),this.translate=x(Y),this.tracking=x(G),this.cookieService=x(Ne),this.isLoading=O(!0),this.searches=O(De.empty()),this.isFiltered=O(!1),this.totalListsCount=O(0),this.isEmpty=P(()=>!this.isLoading()&&!this.searches().totalRows&&!this.isFiltered()),this.hiddenByFilters=P(()=>Math.max(this.totalListsCount()-this.searches().totalRows,0)),this.SearchType=f,this.pendingEvents=[],this.searchFilterQuery=new K({li_account:this.global.currentLinkedInAccount?.id,page_size:10,ordering:this.storedOrdering(),page:1})}ngOnInit(){this.ngxPermissionsService.hasPermission("searches.view").then(e=>{if(!e){this.notificationService.translatedWarning("LINKEDIN_ACCOUNTS.PERMISSIONS.DONT_HAVE_PERMISSION_TO_PAGE"),this.router.navigate(["/no-permission"]).then();return}this.titleService.setTitle("TITLES.SEARCHES"),this.global.pageTitle$.next({heading:this.translate.instant("SIDEBAR_MENU.SEARCH"),info:"NOTIFICATIONS.SEARCH.INFO"}),this.loadSearches(),this.initCreateSearchParam()})}uploadCsv(){this.createSearch(f.Csv,"lead_lists_page")}createSearch(e,n){if(this.matDialog.openDialogs.length)return;let t=this.matDialog.open(ht,{panelClass:["card-dialog","create-search-modal"],data:{defaultSearchType:e,source:n,creationType:e===f.Csv?"upload_csv":"search"}}).afterClosed().subscribe(r=>{if(r?.id){this.openList(r);return}this.searchFilterQuery.page=1,this.loadSearches()});this.subscriptions$.push(t)}typesAdjusted(e){this.pendingEvents.push({kind:"types",payload:e})}searchPerformed(e){this.pendingEvents.push({kind:"search",payload:e})}filterChanged(e){this.searchFilterQuery=e,this.rememberOrdering(e.ordering),this.loadSearches()}storedOrdering(){let e=this.cookieService.get(Te);return re.some(n=>n.ordering===e)?e:W}rememberOrdering(e){e&&e!==this.cookieService.get(Te)&&this.cookieService.set(Te,e,{path:"/"})}reloadSearches(){this.loadSearches()}clearFilters(){this.searchFilterQuery.search="",this.searchFilterQuery.search_type=void 0,this.searchFilterQuery.page=1,this.loadSearches()}openList(e){this.router.navigate(["/search",e.id]).then()}initCreateSearchParam(){let e=this.activatedRoute.queryParams.subscribe(n=>{if(n.create_search!=="true")return;let t=n.source;this.ngxPermissionsService.hasPermission("searches.add").then(r=>{r&&this.createSearch(f.Basic,t)})});this.subscriptions$.push(e)}loadSearches(){let e=!!this.searchFilterQuery.search||!!this.searchFilterQuery.search_type?.length,n=this.pendingEvents;this.pendingEvents=[],this.isLoading.set(!0),this.isFiltered.set(e);let t=this.searchesService.getSearches(this.searchFilterQuery).subscribe({next:r=>{this.searches.set(r),e||this.totalListsCount.set(r.totalRows),this.isLoading.set(!1),this.trackPendingEvents(n,r.totalRows)},error:()=>{this.isLoading.set(!1),this.notificationService.translatedError("NOTIFICATIONS.CANNOT_FETCH_SAVED_SEARCHES")}});this.subscriptions$.push(t)}trackPendingEvents(e,n){for(let t of e){if(t.kind==="types"){this.tracking.trackFilterTypesAdjusted(ge(me({},t.payload),{result_amount:n}));continue}this.tracking.trackSearch(ge(me({},t.payload),{result_amount:n}))}}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=ye(i)))(t||i)}})()}static{this.\u0275cmp=A({type:i,selectors:[["ng-component"]],standalone:!1,features:[Me],decls:5,vars:1,consts:[["id","leads-list-page","data-testid","lead-lists-page"],[1,"page-content"],[1,"page-content-container"],[3,"tableData","filter","isContent","hiddenByFilters"],[3,"findLeads","uploadCsv"],[3,"filterEvent","changed","openList","findLeads","uploadCsv","clearFilters","typesAdjusted","searchPerformed","tableData","filter","isContent","hiddenByFilters"]],template:function(n,t){n&1&&(o(0,"div",0)(1,"div",1)(2,"div",2),T(3,Ji,1,0,"exp-empty-list")(4,Zi,1,4,"exp-leads-list-table",3),s()()()),n&2&&(a(3),L(t.isEmpty()?3:4))},dependencies:[pe,_e],styles:["#leads-list-page[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:100%;height:100%;overflow:hidden;flex:1 1 auto;padding:0 16px}@media all and (width <= 991px){#leads-list-page[_ngcontent-%COMP%]{padding:0 12px}}#leads-list-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative;height:100%;border:1px solid transparent;border-radius:12px 12px 0 0;box-shadow:0 0 10px #d3d8df4d}#leads-list-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%] .page-content-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;overflow:hidden;
2background:var(--mainBackground-color);border-radius:12px 12px 0 0}#leads-list-page[_ngcontent-%COMP%] .page-content[_ngcontent-%COMP%] .page-content-container[_ngcontent-%COMP%] exp-leads-list-table[_ngcontent-%COMP%]{display:block;height:100%}"],changeDetection:0})}}return i})()});var Wa,en=N(()=>{ue();ke();Zt();Vt();Bt();di();Jt();Gt();ii();jt();Wt();pi();it();mi();Kt();ri();ni();ei();rt();si();At();xe();be();ui();Ci();I();Wa=(()=>{class i{static{this.\u0275fac=function(n){return new(n||i)}}static{this.\u0275mod=Ee({type:i})}static{this.\u0275inj=Le({imports:[Ae.forChild([{path:"",component:wt},{path:":id",loadChildren:()=>import("./chunk-646PCGNW.js").then(e=>e.SingleLeadsListModule)}]),ze,lt,xt,st,Ye,pt,qe,j.forChild(),Lt,Ke,Ze,Xe,bt,ae,Ct,mt,ct,se,ut,j,Mt,vt,pe,_e]})}}return i})()});en();export{Wa as LeadsListsModule};
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.