PageSourceSearch

https://app.expandi.io/chunk-FWISGKTF.js

js expandi.io collected 2026-10-03 19:27:10 UTC 32,188 bytes, 1 lines download raw bytes

1import{a as G,b as $e,c as yt}from"./chunk-CNGFGAFS.js";import{a as Ke,b as Nt}from"./chunk-DHPABTTA.js";import{a as Je,b as It}from"./chunk-J4JMFPOX.js";import{a as A,b as Ye}from"./chunk-OVPQGL6A.js";import"./chunk-FR6KR2LK.js";import"./chunk-TZ3HNCSS.js";import{Xa as We,Ya as Et,ab as He,bb as Rt}from"./chunk-F2MF5IFB.js";import"./chunk-UHZVJWUG.js";import"./chunk-QBOWU5XB.js";import{Aa as Ue,Ba as St,Tb as Ge,Ub as wt,Vb as je,Wb as Tt,c as Qe,d as xt,ya as Le,za as vt}from"./chunk-BBG65WPR.js";import"./chunk-6MYVSZC4.js";import"./chunk-PQMXJ6FM.js";import"./chunk-PGNDJ7VT.js";import"./chunk-LZR3WIDD.js";import{c as ze,d as qt}from"./chunk-I6ZOH65N.js";import"./chunk-UMYWIQXX.js";import"./chunk-Z2MFIKLW.js";import{e as De,f as ht}from"./chunk-PG56SSID.js";import"./chunk-3H2ECPRN.js";import"./chunk-DFUEXSA2.js";import{v as Ne,w as Ct,x as Fe,y as Pt}from"./chunk-UY7HHP5J.js";import"./chunk-S64Y5GEK.js";import{c as Be,d as Ot,e as Ve,f as Mt}from"./chunk-SMBKJ465.js";import"./chunk-NGTX4GQY.js";import{a as ke,b as bt,c as Ae,d as ft}from"./chunk-FAF5ZTFZ.js";import"./chunk-KIW67TQ7.js";import{X as Re,Y as _t,Z as ye,_ as ut}from"./chunk-4AOLK63P.js";import{a as Se,b as ct}from"./chunk-USJVFZR2.js";import"./chunk-SC56HKKK.js";import"./chunk-XTGNRSXB.js";import{a as Ee,b as gt}from"./chunk-3T4QEXUE.js";import"./chunk-WZUFEXUY.js";import"./chunk-GGDZ57IA.js";import"./chunk-IU75CBB4.js";import"./chunk-J7N5Z7AP.js";import"./chunk-TWDYIC4T.js";import"./chunk-UNN4N3AA.js";import{c as we,d as dt}from"./chunk-PUHC7ZFR.js";import{k as Ie,l as mt}from"./chunk-UMN3ISNI.js";import"./chunk-MK3XOAKI.js";import"./chunk-CAUYKDY2.js";import{ta as Te,va as pt}from"./chunk-VNWH7IAO.js";import{a as D,e as qe}from"./chunk-4IJHGRF7.js";import"./chunk-WPGEBHYR.js";import{$a as o,$d as ge,Aa as u,Ab as L,Ac as U,Ag as fe,Bd as it,Cg as rt,Fb as s,Gb as a,Gc as c,Hb as r,Hc as d,Ib as f,Ic as re,Je as ot,Na as W,Oa as H,Pb as x,Pk as ve,Qk as lt,Rb as m,Sf as at,Sh as Oe,Tb as b,Ub as Y,Ug as I,Uj as N,Vb as J,Vj as Me,Wg as Pe,Xb as K,Xe as he,Yb as X,Yd as pe,Zb as Z,Zh as st,ab as v,ad as se,ae as _e,bc as ee,be as R,ce as ue,dc as q,de as me,ee as y,fd as S,g as j,gc as C,hc as P,ic as te,jb as w,jc as E,jd as le,kb as $,kd as ce,le as Ce,ma as nt,nb as T,oc as ne,pb as M,pc as ie,pk as k,qc as oe,ra as z,rd as de,se as be,tk as xe,ua as O,yb as Q,yc as ae,za as _}from"./chunk-KSZOC4PI.js";import{e as V}from"./chunk-VINNKM5T.js";function Vt(n,h){n&1&&(a(0,"div",16)(1,"span"),C(2),c(3,"translate"),r()()),n&2&&(o(2),P(d(3,1,"GENERAL.ACTIONS")))}function Qt(n,h){n&1&&f(0,"exp-content-loader")}function Lt(n,h){if(n&1){let e=x();a(0,"button",27),c(1,"translate"),m("click",function(){_(e);let t=b(2).$implicit,l=b(2);return u(l.undoRequest(t))}),f(2,"exp-icon",28),r()}n&2&&s("matTooltip",d(1,1,"NOTIFICATIONS.PENDING_CONN_REQUESTS.UNDO_WITHDRAW_CONN_REQ"))}function Ut(n,h){if(n&1){let e=x();a(0,"button",29),c(1,"translate"),m("click",function(){_(e);let t=b(2).$implicit,l=b(2);return u(l.deleteRequest(t))}),f(2,"exp-icon",30),r()}n&2&&s("matTooltip",d(1,1,"PENDING.REMOVE_BTN_TOOLTIP"))}function Gt(n,h){if(n&1&&(a(0,"div",16),M(1,Lt,3,3,"button",25)(2,Ut,3,3,"button",26),r()),n&2){let e=b().$implicit;o(),s("ngIf",e.withdrawn_manually),o(),s("ngIf",!e.withdrawn_manually)}}function jt(n,h){if(n&1){let e=x();a(0,"div",19)(1,"div",8)(2,"mat-checkbox",20),oe("ngModelChange",function(t){let l=_(e).$implicit;return ie(l.selected,t)||(l.selected=t),u(t)}),m("ngModelChange",function(){let t=_(e),l=t.$implicit,g=t.index,p=b(2);return p.updateAllComplete(g,l.selected),u(p.buildSelectedRows())}),r()(),a(3,"div",10),f(4,"exp-contact-avatar-view",21),c(5,"translate"),f(6,"exp-contact-name-view",22),r(),a(7,"div",10)(8,"span",23),C(9),c(10,"date"),c(11,"localizedDate"),r()(),a(12,"div",10)(13,"span",23),C(14),r()(),a(15,"div",10)(16,"span",23),C(17),r()(),a(18,"div",10)(19,"exp-tag-manager",24),m("singleContactTagUpdated",function(){_(e);let t=b(2);return u(t.filterChange({}))}),r()(),M(20,Gt,3,2,"div",11),r()}if(n&2){let e=h.$implicit,i=b(2);q("row-selected",e.selected)("removeBorder",e.previousRow),o(2),ne("ngModel",e.selected),o(2),s("imgSize",32)("imageSrc",e.contact==null?null:e.contact.finalImage)("tooltipMessage",e.contact.campaigninstancecontacts_set.length>0?d(5,16,"CONTACTS.PARTICIPATES_IN_CAMPAIGN"):""),o(2),s("messenger",e),o(3),E(" ",re(10,18,e.invited_at,"h:mm a")," ",d(11,21,e.invited_at)," "),o(5),P(e.contact.job_title),o(3),P(e.contact.company_name||"-"),o(2),s("singleContact",e)("page","Pending requests"),o(),s("ngIf",i.isRequestsRevokePermission)}}function zt(n,h){if(n&1&&(a(0,"div",17),M(1,jt,21,23,"div",18),r()),n&2){let e=b();o(),s("ngForOf",e.tableData.rows)("ngForTrackBy",e.trackByContactId)}}function Wt(n,h){n&1&&(a(0,"div",31),f(1,"exp-icon",32),a(2,"span",33),C(3),c(4,"translate"),r()()),n&2&&(o(3),P(d(4,1,"NOTIFICATIONS.EMPTY_DATA_TABLE")))}var Bt,F,B=V(()=>{S();y();xe();yt();S();it();
1ot();Me();ht();Et();qe();pt();Ye();bt();Ot();Pe();_t();Bt=["*"];F=(()=>{class n extends k{constructor(){super(),this.permissionsService=O(R),this.rowSelection=O(G),this.selectedContactEmit=new v,this.filterEvent=new v,this.isAllRowSelected=new v,this.deleteRequestEvent=new v,this.undoRequestEvent=new v,this.selectedContacts=[],this.isRequestsRevokePermission=!1,this.isTableHeaderFullWidth=!1,this.rowSelection.configure(e=>e.contact?.id)}get allSelected(){return this.rowSelection.isAllSelectedOnPage(this.tableData?.rows)}ngOnInit(){setTimeout(()=>{this.permissionsService.hasPermission("requests.revoke.view").then(e=>{this.isRequestsRevokePermission=e})},1e3)}ngOnChanges(e){if(!e.tableData)return;let i=$e(this.filterQuery);this.lastFilterSignature!==void 0&&i!==this.lastFilterSignature&&this.rowSelection.reset(),this.lastFilterSignature=i,this.rowSelection.syncPage(this.tableData.rows),this.buildSelectedRows(),this.isAllRowSelected.emit(this.allSelected)}filterChange(e){this.filterEvent.emit(this.filterQuery.patch(e))}deleteRequest(e){this.deleteRequestEvent.emit(e.id)}undoRequest(e){this.undoRequestEvent.emit(e.id)}selectSome(){return this.rowSelection.isSomeSelectedOnPage(this.tableData.rows)}selectAll(e){this.rowSelection.selectAllOnPage(this.tableData.rows,e),this.isAllRowSelected.emit(e)}updateAllComplete(e,i){this.rowSelection.setRowSelected(this.tableData.rows[e],i),e!==0?this.tableData.rows[e-1].previousRow=i:this.tableData.rows[0].previousRow=i,this.isAllRowSelected.emit(this.allSelected)}buildSelectedRows(){this.selectedContacts=this.rowSelection.getSelectedRows(),this.selectedContactEmit.emit(this.selectedContacts)}clearSelection(){this.rowSelection.reset(),this.buildSelectedRows()}tableScroll(e){this.isTableHeaderFullWidth=e.target.scrollTop>60}trackByContactId(e,i){return i.contact?.id??e}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=w({type:n,selectors:[["exp-pending-requests-table"]],inputs:{tableData:"tableData",isContent:"isContent",filterQuery:"filterQuery"},outputs:{selectedContactEmit:"selectedContactEmit",filterEvent:"filterEvent",isAllRowSelected:"isAllRowSelected",deleteRequestEvent:"deleteRequestEvent",undoRequestEvent:"undoRequestEvent"},standalone:!1,features:[ae([G]),T,W],ngContentSelectors:Bt,decls:42,vars:43,consts:[["id","pending-requests-table"],[1,"table-content"],[1,"contacts-header"],["matTooltipPosition","above",1,"check-select-all","mr-8",3,"change","matTooltip","checked","indeterminate"],[1,"selected-counts"],[1,"filtered-counts"],[1,"table-data",3,"scroll"],[1,"table-header"],[1,"table-column","check-box-column"],["matTooltipPosition","above",1,"check-select-all",3,"change","matTooltip","checked","indeterminate"],[1,"table-column"],["class","table-column center",4,"ngIf"],[4,"ngIf"],["class","table-body",4,"ngIf"],["class","table-content-empty",4,"ngIf"],[3,"firstTableFilterChanged","firstTableFilter","tableData"],[1,"table-column","center"],[1,"table-body"],["class","table-row",3,"row-selected","removeBorder",4,"ngFor","ngForOf","ngForTrackBy"],[1,"table-row"],[3,"ngModelChange","ngModel"],[1,"mr-12",3,"imgSize","imageSrc","tooltipMessage"],[3,"messenger"],[1,"table-text"],[3,"singleContactTagUpdated","singleContact","page"],["class","btn-table-icon",3,"matTooltip","click",4,"ngIf"],["class","btn-delete-icon",3,"matTooltip","click",4,"ngIf"],[1,"btn-table-icon",3,"click","matTooltip"],["name","refresh"],[1,"btn-delete-icon",3,"click","matTooltip"],["name","delete"],[1,"table-content-empty"],["name","search_off","color","secondary","size","xxl",1,"table-empty-icon"],[1,"table-empty-text"]],template:function(i,t){i&1&&(Y(),a(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-checkbox",3),c(4,"translate"),m("change",function(g){return t.selectAll(g.checked),t.buildSelectedRows()}),r(),a(5,"span",4),C(6),c(7,"translate"),r(),a(8,"span",5),C(9),c(10,"translate"),r(),J(11),r(),a(12,"div",6),m("scroll",function(g){return t.tableScroll(g)}),a(13,"div",7)(14,"div",8)(15,"mat-checkbox",9),c(16,"translate"),m("change",function(g){return t.selectAll(g.checked),t.buildSelectedRows()}),r()(),a(17,"div",10)(18,"span"),C(19),c(20,"translate"),r()(),a(21,"div",10)(22,"span"),C(23),c(24,"translate"),r()(),a(25,"div",10)(26,"span"),C(27),c(28,"translate"),r()(),a(29,"div",10)(30,"span"),C(31),c(32,"translate"),r()(),a(33,"div",10)(34,"span"),C(35),c(36,"translate"),r()(),M(37,Vt,4,3,"div",11),r(),M(38,Qt,1,0,"exp-content-loader",12)(39,zt,2,2,"div",13)(40,Wt,5,3,"div",14),r(),a(41,"exp-data-paginator",15),m("firstTableFilterChanged",function(g){return t.filterChange(g)}),r()()()),i&2&&(q("isRequestsRevoke",t.isRequestsRevokePermission),o(3),s("matTooltip",d(4,25,"FILTER.SELECT_ALL"))("checked",t.allSelected)("indeterminate",t.selectSome()),o(3),E("",d(7,27,"GENERAL.SELECTED"),": ",t.selectedContacts.length),o(3),E("",d(10,29,"GENERAL.FILTERED"),": ",t.tableData.totalRows),o(4),q("sticky-header",t.isTableHeaderFullWidth),o(2),s("matTooltip",d(16,31,"FILTER.SELECT_ALL"))("checked",t.allSelected)("indeterminate",t.selectSome()),o(4),P(d(20,33,"MESSAGES.NAME")),o(4),P(d(24,35,"PENDING.INVITED_AT")),o(4),P(d(28,37,"CONTACTS.JOB_TITLE")),o(4),P(d(32,39,"CONTACTS.COMPANY_NAME")),o(4),P(d(36,41,"CONTACTS.TAGS")),o(2),s("ngIf",t.isRequestsRevokePermission),o(),s("ngIf",!t.isContent),o(),s("ngIf",t.tableData.rows.length&&t.isContent),o(),s("ngIf",!t.tableData.rows.length&&t.isContent),o(),s("firstTableFilter",t.filterQuery)("tableData",t.tableData))},dependencies:[le,ce,Ce,be,N,De,We,D,Te,A,ke,Be,de,I,Re],styles:["#pending-requests-table[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;overflow:hidden}#pending-requests-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%], #pen
1ding-requests-table[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .btn-table-actions[_ngcontent-%COMP%]{height:100%;width:100%}#pending-requests-table[_ngcontent-%COMP%]   .table-content-empty[_ngcontent-%COMP%]{width:100%;height:calc(100% - 60px);min-height:90px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:15px 0}#pending-requests-table[_ngcontent-%COMP%]   .table-content-empty[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--tableText-color)}#pending-requests-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow:hidden;background:var(--mainBackground-color);box-shadow:0 0 10px #d3d8df4d;border-radius:12px 12px 0 0}#pending-requests-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]{overflow:auto;position:relative;z-index:1}#pending-requests-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]   .table-body[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column}#pending-requests-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]   .table-body[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{min-height:44px}#pending-requests-table   .dark-theme[_nghost-%COMP%]   .table-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .table-content[_ngcontent-%COMP%]{box-shadow:none!important}#pending-requests-table[_ngcontent-%COMP%]   exp-content-loader[_ngcontent-%COMP%]{min-height:120px;display:flex;align-items:center;justify-content:center;position:relative;height:100%}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:60px 360px 200px 300px 300px 215px 120px;min-width:max-content}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.end[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.end[_ngcontent-%COMP%]{justify-content:flex-end}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%]{justify-content:center}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;text-align:center}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%]{justify-content:center}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{display:flex}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{margin:15px 12px 0;background:var(--tableHeaderBackground-color);border-radius:12px;transition:all ease .3s;z-index:5}#pending-requests-table[_ngcontent-%COMP%]   .table-header.sticky-header[_ngcontent-%COMP%]{position:sticky;margin:0;border-radius:0;padding:0 12px}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{top:0;height:40px}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{padding:0 12px;
1height:40px}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.actionsColumn[_ngcontent-%COMP%]{background:var(--tableHeaderBackground-color)!important;border-radius:0 12px 12px 0}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.table-account-name[_ngcontent-%COMP%]{position:sticky;left:0;z-index:999999;background:var(--tableHeaderBackground-color)!important}#pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]   .table-text[_ngcontent-%COMP%]{font-weight:500;font-size:12px;line-height:18px;word-break:break-word;color:var(--tableHeaderText-color);text-transform:uppercase}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{position:relative;z-index:1;height:auto;box-shadow:0 1px 0 var(--tableBorder-color);transition:all ease .3s;margin-bottom:1px;opacity:1;visibility:visible}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:last-child{border:0}#pending-requests-table[_ngcontent-%COMP%]   .table-row.row-selected[_ngcontent-%COMP%]{transition:all ease .3s;background:var(--tableCheckedRowBackground-color);border-radius:12px;box-shadow:0 1px 0 var(--mainBackground-color)}#pending-requests-table[_ngcontent-%COMP%]   .table-row.disconnected-table-row[_ngcontent-%COMP%]{border-left:5px solid #FAAD14}#pending-requests-table[_ngcontent-%COMP%]   .table-row.new-contact[_ngcontent-%COMP%]{border-left:5px solid var(--main-color)}#pending-requests-table[_ngcontent-%COMP%]   .table-row.removeBorder[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row.disconnected-table-row[_ngcontent-%COMP%]{box-shadow:0 1px 0 var(--mainBackground-color)}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:hover{background:var(--tableRowHoverBackground-color);transition:all ease .3s}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:hover   .actionsColumn[_ngcontent-%COMP%]{background:var(--tableRowHoverBackground-color)!important}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{padding:6px 12px;min-height:100%}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.table-account-name[_ngcontent-%COMP%]{position:sticky;left:0;z-index:999999;background:var(--mainBackground-color)!important}#pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]   .table-text[_ngcontent-%COMP%]{font-weight:400;font-size:14px;line-height:20px;color:var(--tableText-color);word-break:break-word}#pending-requests-table[_ngcontent-%COMP%]   .table-link[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:100%;display:block;cursor:pointer;font-weight:400;font-size:14px;line-height:20px;color:var(--linkText-color)!important}#pending-requests-table[_ngcontent-%COMP%]   .table-link.disabled[_ngcontent-%COMP%], #pending-requests-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%]   span.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.7}#pending-requests-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%]{display:flex;align-items:center}#pending-requests-table[_ngcontent-%COMP%]   .notification-selection-all[_ngcontent-%COMP%]{color:var(--tableSecondaryText-color);margin:0 12px}#pending-requests-table[_ngcontent-%COMP%]   .actionsColumn[_ngcontent-%COMP%]{transition:all ease .3s;position:sticky;right:0;top:0;width:auto;height:auto;background:var(--mainBackground-color);z-index:999999;border-radius:0 12px 12px 0}#pending-requests-table.isRequestsRevoke[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%], #pending-requests-table.isRequestsRevoke[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{grid-template-columns:60px 360px 200px 300px 300px 215px 120px}#pending-requests-table[_ngcontent-%COMP%]   .contacts-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;min-width:100%;width:100%;padding:8px 12px;max-height:54px}@media all and (width <= 991px){#pending-requests-table[_ngcontent-%COMP%]   .contacts-header[_ngcontent-%COMP%]{padding:8px 24px}}#pending-requests-table[_ngcontent-%COMP%]   .contacts-header[_ngcontent-%COMP%]   .filtered-counts[_ngcontent-%COMP%], #pen
1ding-requests-table[_ngcontent-%COMP%]   .contacts-header[_ngcontent-%COMP%]   .selected-counts[_ngcontent-%COMP%]{color:var(--secondaryText-color);font-size:12px;min-width:max-content;display:flex;align-items:center;margin-left:0;margin-right:8px;position:relative}#pending-requests-table[_ngcontent-%COMP%]   .contacts-header[_ngcontent-%COMP%]   .check-select-all[_ngcontent-%COMP%]{display:none}@media all and (width <= 991px){#pending-requests-table[_ngcontent-%COMP%]   .contacts-header[_ngcontent-%COMP%]   .check-select-all[_ngcontent-%COMP%]{display:flex}}"],changeDetection:0})}}return n})()});function $t(n,h){n&1&&(f(0,"span",17),c(1,"translate")),n&2&&s("matTooltip",d(1,1,"PENDING.REMOVE_BTN_TOOLTIP"))}function Yt(n,h){if(n&1){let e=x();a(0,"div",11)(1,"div",12)(2,"div",13)(3,"button",14),m("click",function(){_(e);let t=b();return u(t.removeFromPending(t.deletedRequestContacts))}),f(4,"exp-icon",15),a(5,"span",16),C(6),c(7,"translate"),r()(),Q(8,$t,2,3,"span",17),r()()()}if(n&2){let e=b();o(3),s("disabled",(e.deletedRequestContacts==null?null:e.deletedRequestContacts.length)===0),o(3),te(" ",d(7,3,"PENDING.DELETE_SELECTED")," "),o(2),L((e.deletedRequestContacts==null?null:e.deletedRequestContacts.length)===0?8:-1)}}function Jt(n,h){n&1&&(f(0,"span",17),c(1,"translate")),n&2&&s("matTooltip",d(1,1,"NOTIFICATIONS.PENDING_CONN_REQUESTS.UNDO_WITHDRAW_CONN_REQ"))}function Kt(n,h){if(n&1){let e=x();a(0,"div",11)(1,"div",12)(2,"div",13)(3,"button",14),m("click",function(){_(e);let t=b();return u(t.undoSeveralRequests(t.undoRequestContacts))}),f(4,"exp-icon",18),a(5,"span",16),C(6),c(7,"translate"),r()(),Q(8,Jt,2,3,"span",17),r()()()}if(n&2){let e=b();o(3),s("disabled",(e.undoRequestContacts==null?null:e.undoRequestContacts.length)===0),o(3),P(d(7,3,"NOTIFICATIONS.PENDING_CONN_REQUESTS.UNDO_SELECTED")),o(2),L((e.undoRequestContacts==null?null:e.undoRequestContacts.length)===0?8:-1)}}var Ze,et,tt=V(()=>{st();xt();rt();S();nt();at();dt();lt();gt();_e();y();xe();B();S();Me();qe();
1Ct();Ye();wt();y();vt();B();Pe();Ze=()=>["requests.revoke.view"];et=(()=>{class n extends k{constructor(){super(...arguments),this.cd=O(se),this.linkedInMessengerService=O(Qe),this.notification=O(we),this.titleService=O(Ee),this.global=O(ve),this.router=O(pe),this.ngxPermissionsService=O(R),this.selectedContacts$=new j,this.selectedContacts=[],this.contacts=fe.empty(),this.isContent=!1,this.isAllRowSelected=!1}ngOnInit(){setTimeout(()=>{this.ngxPermissionsService.hasPermission("requests.view").then(e=>{e?(this.global.pageTitle$.next({heading:"SIDEBAR_MENU.PENDING_REQUESTS",info:"PENDING.INTRO"}),this.titleService.setTitle("SIDEBAR_MENU.PENDING_REQUESTS"),this.initPendingRequest()):(this.notification.translatedWarning("LINKEDIN_ACCOUNTS.PERMISSIONS.DONT_HAVE_PERMISSION_TO_PAGE"),this.router.navigate(["/no-permission"]))})},0)}filterChange(e){this.isContent=!1,this.loadContacts(this.filterQuery.patch(e))}contactsFilterChange(e){this.loadContacts(this.filterQuery.patch(e))}removeFromPending(e){this.linkedInMessengerService.cancelPendingConnectionRequestsForMessengers(e.map(i=>i.id)).subscribe({next:()=>{this.notification.translatedSuccess("NOTIFICATIONS.PENDING_CONN_REQUESTS.REQUESTS_CANCELED_SUCCESS"),this.requestsTable.clearSelection(),this.filterChange({})},error:()=>{this.notification.translatedError("NOTIFICATIONS.PENDING_CONN_REQUESTS.REQUESTS_CANCELED_FAILED")}})}deleteSingleRequest(e){this.linkedInMessengerService.cancelPendingConnectionRequestsForMessengers([e]).subscribe({next:()=>{this.notification.translatedSuccess("NOTIFICATIONS.PENDING_CONN_REQUESTS.REQUESTS_CANCELED_SUCCESS"),this.requestsTable.clearSelection(),this.filterChange({})},error:()=>{this.notification.translatedError("NOTIFICATIONS.PENDING_CONN_REQUESTS.REQUESTS_CANCELED_FAILED")}})}undoSeveralRequests(e){this.linkedInMessengerService.undoWithdrawConnectionRequestsForMessengers(e.map(i=>i.id)).subscribe({next:()=>{this.notification.translatedSuccess("NOTIFICATIONS.PENDING_CONN_REQUESTS.UNDO_SUCCESS"),this.requestsTable.clearSelection(),this.filterChange({})},error:()=>{this.notification.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}undoSingleRequest(e){this.linkedInMessengerService.undoWithdrawConnectionRequestsForMessengers([e]).subscribe({next:()=>{this.notification.translatedSuccess("NOTIFICATIONS.PENDING_CONN_REQUESTS.UNDO_SUCCESS"),this.requestsTable.clearSelection(),this.filterChange({})},error:()=>{this.notification.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}initPendingRequest(){this.filterQuery=new Oe({li_account_id:this.global.currentLinkedInAccount.id,contact_status:[he.ConnectRequested],page_size:25,page:1}),this.initSelectedContacts(),this.loadContacts(this.filterQuery)}initSelectedContacts(){let e=this.selectedContacts$.subscribe(i=>{this.deletedRequestContacts=i.filter(t=>!t.withdrawn_manually),this.undoRequestContacts=i.filter(t=>t.withdrawn_manually),this.selectedContacts=i});this.subscriptions$.push(e)}loadContacts(e){this.linkedInMessengerService.contacts(e).subscribe({next:i=>{this.contacts=i,this.isContent=!0,this.cd.detectChanges()},error:i=>{if(i.error.detail==="Invalid page.")return this.contactsFilterChange(this.filterQuery.patch({page:1}));this.notification.translatedError("NOTIFICATIONS.PROBLEM_LOADING_CONTACTS")}})}static{this.\u0275fac=(()=>{let e;return function(t){return(e||(e=H(n)))(t||n)}})()}static{this.\u0275cmp=w({type:n,selectors:[["ng-component"]],viewQuery:function(i,t){if(i&1&&K(F,5),i&2){let l;X(l=Z())&&(t.requestsTable=l.first)}},standalone:!1,features:[T],decls:13,vars:12,consts:[["requestsTable",""],["id","pending-requests"],[1,"page-toolbar"],[1,"filters"],[1,"filter-field-parent",3,"filterChange"],[1,"filter-field-parent",3,"filterChange","filterQuery"],[1,"page-content","is-actions"],[3,"deleteRequestEvent","undoRequestEvent","filterEvent","isAllRowSelected","selectedContactEmit","tableData","isContent","filterQuery"],[1,"action-buttons"],["class","filter-field-parent",4,"ngxPermissionsOnly"],[1,"filter-field-parent",3,"updateContactsTagsEvent","filterQuery","contactsTotal","selectedContacts","page"],[1,"filter-field-parent"],[1,"field-action"],[1,"btn-disabled-tooltip-wrapper"],[3,"click","disabled"],["name","delete"],[1,"field-action-text"],[1,"tooltip",3,"matTooltip"],["name","refresh"]],template:function(i,t){if(i&1){let l=x();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"exp-filter-search",4),m("filterChange",function(p){return _(l),u(t.filterChange(p))}),r(),a(4,"exp-filter-email-availability",5),m("filterChange",function(p){return _(l),u(t.filterChange(p))}),r(),a(5,"exp-filter-tags",4),m("filterChange",function(p){return _(l),u(t.filterChange(p))}),r()()(),a(6,"div",6)(7,"exp-pending-requests-table",7,0),m("deleteRequestEvent",function(p){return _(l),u(t.deleteSingleRequest(p))})("undoRequestEvent",function(p){return _(l),u(t.undoSingleRequest(p))})("filterEvent",function(p){return _(l),u(t.filterChange(p))})("isAllRowSelected",function(p){return _(l),u(t.isAllRowSelected=p)})("selectedContactEmit",function(p){return _(l),u(t.selectedContacts$.next(p))}),a(9,"div",8),M(10,Yt,9,5,"div",9)(11,Kt,9,5,"div",9),a(12,"exp-tag-manager",10),m("updateContactsTagsEvent",function(){_(l);let p=ee(8);return t.contactsFilterChange(t.filterQuery),u(p.clearSelection())}),r()()()()()}
1i&2&&(o(4),s("filterQuery",t.filterQuery),o(3),s("tableData",t.contacts)("isContent",t.isContent)("filterQuery",t.filterQuery),o(3),s("ngxPermissionsOnly",U(10,Ze)),o(),s("ngxPermissionsOnly",U(11,Ze)),o(),s("filterQuery",t.filterQuery)("contactsTotal",t.selectedContacts.length?null:t.contacts.totalRows)("selectedContacts",t.selectedContacts)("page","Pending requests"))},dependencies:[N,D,Ne,A,Ge,ue,Le,F,I],styles:["#pending-requests[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:100%;height:100%;overflow:hidden;flex:1 1 auto;padding:0 16px}@media all and (max-width: 991px){#pending-requests[_ngcontent-%COMP%]{padding:0 12px}}#pending-requests[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]{width:100%}#pending-requests[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;z-index:100}#pending-requests[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]   .page-header-actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:8px 0;min-height:58px}#pending-requests[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]   .filter-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:40%;justify-content:flex-end}#pending-requests[_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}#pending-requests[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;flex-direction:column;overflow:hidden;background:var(--mainBackground-color);border-radius:12px 12px 0 0}#pending-requests[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]   .page-content-data[_ngcontent-%COMP%]{height:100%;width:100%;display:flex;overflow:hidden;position:relative}#pending-requests[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]   .page-content-data[_ngcontent-%COMP%]   .left-element[_ngcontent-%COMP%]{display:block;height:100%;overflow:hidden}#pending-requests[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .page-content-container[_ngcontent-%COMP%]   .page-content-data[_ngcontent-%COMP%]   .right-element[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden;border-left:1px solid var(--blockBorders-color)}#pending-requests[_ngcontent-%COMP%]   .page-content[_ngcontent-%COMP%]   .tab-content[_ngcontent-%COMP%]{overflow:hidden;background:var(--mainBackground-color);border-radius:12px 12px 0 0;box-shadow:0 0 10px #d3d8df4d;height:100%}#pending-requests   .dark-theme[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]{box-shadow:none!important}#pending-requests   .dark-theme[_nghost-%COMP%]   .tab-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .tab-content[_ngcontent-%COMP%]{box-shadow:none!important}#pending-requests[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;padding:10px 12px;min-width:100%!important}#pending-requests[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .selected-counts[_ngcontent-%COMP%]{font-weight:500;font-size:14px;line-height:20px;color:var(--secondaryText-color);display:block;margin-right:15px}#pending-requests[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .filter-field-parent[_ngcontent-%COMP%]{padding:5px 0}#pending-requests[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;padding:6px 0;margin:0 -7.5px;height:auto!important}#pending-requests[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .filter-field-parent[_ngcontent-%COMP%]{padding:0 7.5px}#pending-requests[_ngcontent-%COMP%]   .filters.p-0[_ngcontent-%COMP%]{padding-top:0}#pending-requests[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .filter-for-toggle[_ngcontent-%COMP%]{display:none}#pending-requests[_ngcontent-%COMP%]   .filters.show-filters[_ngcontent-%COMP%]   .filter-for-toggle[_ngcontent-%COMP%]{display:flex}#pending-requests[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{padding:0;min-width:auto!important;margin-left:auto;display:flex;align-items:center}@media all and (width <= 991px){#pending-requests[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{margin-left:auto;min-width:auto!important}#pending-requests[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .selected-counts[_ngcontent-%COMP%]{display:none}}"]})}}return n})()});var Zn,Xt=V(()=>{_e();tt();ct();B();Rt();ut();mt();Pt();It();Tt();ft();y();Nt();Mt();St();qt();S();Zn=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=$({type:n})}static{this.\u0275inj=z({imports:[ge.forChild([{path:"",component:et}]),Se,He,ye,Ie,Fe,Je,je,Ae,me,Ke,Ve,Ue,ze]})}}return n})()});Xt();export{Zn as PendingRequestsModule};

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.