PageSourceSearch

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

js expandi.io collected 2026-09-25 14:15:49 UTC 30,258 bytes, 1 lines download raw bytes

1import{c as lt,d as Lt}from"./chunk-WQ4TDZBD.js";import{c as at,d as Rt}from"./chunk-ZLL6KJ2E.js";import{v as et,w as Ut,x as it,y as Dt}from"./chunk-FUMJHN3T.js";import{a as Ze,b as Nt}from"./chunk-F47FEI3M.js";import{c as rt,d as Ft,e as ot,f as Bt}from"./chunk-VH3MO375.js";import"./chunk-VLZVCW75.js";import{a as tt,b as kt,c as nt,d as At}from"./chunk-N2XMY72M.js";import{X as Ye,Y as yt,Z as G,_ as Je,r as Ke,s as It}from"./chunk-N4SUKYMB.js";import{a as W,b as Ge}from"./chunk-7OYLLAQC.js";import{a as k,b as ne}from"./chunk-MAVTUJIU.js";import"./chunk-7MG3VIK4.js";import"./chunk-HYJFT6FN.js";import{c as U,d as te}from"./chunk-ECRWSRDA.js";import{a as $e,b as wt,k as H,l as Xe}from"./chunk-DWYAB7LH.js";import"./chunk-2A4ROWH5.js";import"./chunk-Y23AFAZJ.js";import{C as Qe,H as ze,J as Tt,v as He,w as je,z as qe}from"./chunk-TEBRTGZ6.js";import"./chunk-UDJ3FP7F.js";import"./chunk-HUKGANG4.js";import{$a as i,$d as xe,$j as Ve,Aa as h,Ag as Ae,Bd as Y,Ce as ke,Cg as Pt,Cj as vt,Dg as L,Eg as xt,Fb as d,Fj as Be,Gb as o,Gc as s,Gi as Fe,Hb as a,Hc as p,Hj as Re,Ib as f,Ic as K,Je as J,Ka as bt,Lj as Le,Oa as ue,Od as Oe,Pb as T,Pk as N,Qd as Mt,Qk as ee,Rb as g,Tb as O,Tg as De,Ug as I,Uj as y,Vj as Z,Wg as V,Yd as Pe,Z as _e,Zf as X,_ as ge,ab as fe,ae as ve,ak as St,dc as be,de as Se,ee as ht,fd as P,gc as l,ge as Ee,hc as c,ic as B,ie as x,j as me,jb as E,jd as Me,kb as F,kd as w,le as R,ma as Ct,me as Te,nb as Ce,nd as he,oc as Q,oe as we,pb as C,pc as z,pk as We,qc as $,ra as D,re as v,se as Ie,te as ye,tk as Et,ua as u,ub as q,we as Ne,za as M,ze as Ue,zg as Ot}from"./chunk-E75EFTGM.js";import{e as S}from"./chunk-VINNKM5T.js";function Wt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),B(" ",p(2,1,"NOTIFICATIONS.FIRST_NAME_FIELD_LEFT_BLANK")," "))}function Gt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),B(" ",p(2,1,"NOTIFICATIONS.LAST_NAME_FIELD_LEFT_BLANK")," "))}function Ht(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.EMAIL_FIELD_LEFT_BLANK")))}function jt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.ENTER_A_VALID_EMAIL")))}function qt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.PASSWORD_FIELD_LEFT_BLANK")))}function Qt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.NEW_PASSWORD_SHOULD_BE_LONGER")))}function zt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.PASSWORD_SHOULD_NOT_CONTAIN_MORE_CHARACTERS")))}function $t(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.CONFIRM_PASSWORD_LEFT_BLANK")))}function Kt(t,_){t&1&&(o(0,"mat-error"),l(1),s(2,"translate"),a()),t&2&&(i(),c(p(2,1,"NOTIFICATIONS.PASSWORDS_NOT_MATCHING")))}function Yt(t,_){if(t&1){let n=T();o(0,"button",17),g("click",function(){M(n);let e=O();return h(e.createMultipleUsersForTest())}),l(1," Create random accounts "),a()}}var pt,ie=S(()=>{P();J();Le();ee();te();ne();Ot();P();Y();J();Z();St();Tt();wt();V();pt=(()=>{class t{constructor(){this.matDialogRef=u(Be),this._global=u(N),this.notificationService=u(U),this.userService=u(k),this.hide=!0,this.form=new we({first_name:new v("",x.required),last_name:new v("",x.required),email:new v("",[x.required,x.email]),language:new v(this._global.reseller.language),password:new v("",[x.required]),password_confirm:new v("",[x.required])},{validators:[this.checkEqualPasswords]})}createUser(){if(this.form.valid){let n=new X(this.form.value);n.username=n.email,this.userService.createUser(n).subscribe({next:r=>{this.notificationService.translatedSuccess("NOTIFICATIONS.USER_CREATED"),this.matDialogRef.close({user:r})},error:r=>{if(r.error.error){this.notificationService.translatedError(r.error.error);return}for(let e of Object.keys(r.error))for(let m of r.error[e])this.notificationService.translatedError(m,e.charAt(0).toUpperCase()+e.slice(1))}})}else this.notificationService.translatedWarning("NOTIFICATIONS.ALL_FIELDS_SHOULD_BE_FILLED_CORRECTLY","NOTIFICATIONS.INVALID_INPUT")}checkEqualPasswords(n){n.get("password").value!==n.get("password_confirm").value?(n.get("password").setErrors({notSame:!0}),n.get("password_confirm").setErrors({notSame:!0})):n.get("password").value.length<8?n.get("password").setErrors({minlength:!0}):n.get("password").value.length>40?n.get("password").setErrors({maxlength:!0}):(n.get("password").setErrors(null),n.get("password_confirm").setErrors(null))}createMultipleUsersForTest(){["[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]","[email protected]"].forEach(r=>{let e=new X({email:r,first_name:"Roman",is_onboarding:!0,language:"en",last_name:"Balyk",password:"vika110614",password_confirm:"vika110614"});e.username=e.email,this.userService.createUser(e).subscribe()})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["ng-component"]],standalone:!1,decls:49,vars:42,consts:[["data-testid","create-user-modal",3,"closeEvent","titleText"],[1,"modal-content-container"],["expSubmitForm","",3,"enterClicked","formGroup"],["appearance","outline",1,"form-field"],["required","","matInput","","autocomplete","given-name","formControlName","first_name","data-testid","create-user-first-name"],[4,"ngIf"],["required","","matInput","","autocomplete","family-name","formControlName","last_name","data-testid","create-user-last-name"],["required","","matInput","","autocomplete","email","formControlName","email","data-testid","create-user-email"],["required","","matInput","","type","password","autocomplete","new-password","formControlName","password","data-testid","create-user-password",3,"type"],["matSuffix","","color","secondary",1,"pointer",3,"click","name"],["required","","matInput","","type","password","autocomplete","new-password","formControlName","password_confirm","data-testid","create-user-password-confirm",3,"type"],[1,"modal-footer","right","mt-12"],[3,"click",4,"ngIf"],[1,"btn-secondary","mr-8",3,"click"],["data-testid","create-user-submit",1,"btn-primary","ml-8","mr-8",3,"click","disabled"],["name","add"],[1,"btn-text"],[3,"click"]],template:function(r,e){if(r&1&&(o(0,"exp-modal-wrapper",0),g("closeEvent",function(){return e.matDialogRef.close()}),o(1,"div",1)(2,"form",2),g("enterClicked",function(){return e.createUser()}),o(3,"mat-form-field",3)(4,"mat-label"),l(5),s(6,"translate"),a(),f(7,"input",4),C(8,Wt,3,3,"mat-error",5),a(),o(9,"mat-form-field",3)(10,"mat-label"),l(11),s(12,"translate"),a(),f(13,"input",6),C(14,Gt,3,3,"mat-error",5),a(),o(15,"mat-form-field",3)(16,"mat-label"),l(17),s(18,"translate"),a(),f(19,"input",7),C(20,Ht,3,3,"mat-error",5)(21,jt,3,3,"mat-error",5),a(),o(22,"mat-form-field",3)(23,"mat-label"),l(24),s(25,"translate"),a(),f(26,"input",8),o(27,"exp-icon",9),g("click",function(){return e.hide=!e.hide}),a(),C(28,qt,3,3,"mat-error",5)(29,Qt,3,3,"mat-error",5)(30,zt,3,3,"mat-error",5),a(),o(31,"mat-form-field",3)(32,"mat-label"),l(33),s(34,"translate"),a(),f(35,"input",10),o(36,"exp-icon",9),g("click",function(){return e.hide=!e.hide}),a(),C(37,$t,3,3,"mat-error",5)(38,Kt,3,3,"mat-error",5),a()(),o(39,"div",11),C(40,Yt,2,0,"button",12),o(41,"button",13),g("click",function(){return e.matDialogRef.close()}),l(42),s(43,"translate"),a(),o(44,"button",14),g("click",function(){return e.createUser()}),f(45,"exp-icon",15),o(46,"span",16),l(47),s(48,"translate"),a()()()()()),r&2){let m,b,le,se,ce,de,pe;d("titleText","USERS.ADD_A_NEW_USER"),i(2),d("formGroup",e.form),i(3),c(p(6,28,"GENERAL.FIRST_NAME")),i(3),d("ngIf",e.form.get("first_name").hasError("required")),i(3),c(p(12,30,"AUTHENTICATION.LAST_NAME")),i(3),d("ngIf",e.form.get("last_name").hasError("required")),i(3),c(p(18,32,"GENERAL.E
1MAIL")),i(3),d("ngIf",(m=e.form.get("email").errors)==null?null:m.required),i(),d("ngIf",(b=e.form.get("email").errors)==null?null:b.email),i(3),c(p(25,34,"ACCOUNT_SETTINGS.NEW_PASSWORD")),i(2),d("type",e.hide?"password":"text"),i(),d("name",e.hide?"visibility_off":"visibility"),q("aria-label","Hide password")("aria-pressed",e.hide),i(),d("ngIf",(le=e.form.get("password").errors)==null?null:le.required),i(),d("ngIf",(se=e.form.get("password").errors)==null?null:se.minlength),i(),d("ngIf",(ce=e.form.get("password").errors)==null?null:ce.maxlength),i(3),c(p(34,36,"ACCOUNT_SETTINGS.CONFIRM_NEW_PASSWORD")),i(2),d("type",e.hide?"password":"text"),i(),d("name",e.hide?"visibility_off":"visibility"),q("aria-label","Hide password")("aria-pressed",e.hide),i(),d("ngIf",(de=e.form.get("password_confirm").errors)==null?null:de.required),i(),d("ngIf",(pe=e.form.get("password_confirm").errors)==null?null:pe.notSame),i(2),d("ngIf",e.form.get("first_name").value==="Artem likes fingers"),i(2),B(" ",p(43,38,"GENERAL.CANCEL")," "),i(2),d("disabled",e.form.invalid),i(3),c(p(48,40,"GENERAL.ADD"))}},dependencies:[w,ye,Ee,R,Te,ke,Ne,Ue,y,Ve,ze,Qe,He,je,qe,$e,I],styles:[".text-bold[_ngcontent-%COMP%]{color:var(--primaryText-color)}form[_ngcontent-%COMP%]{display:flex;flex-direction:column}form[_ngcontent-%COMP%]   mat-form-field[_ngcontent-%COMP%]{min-width:100%}.actions-buttons[_ngcontent-%COMP%]{justify-content:center;margin-top:15px}.actions-buttons[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin:0 4px}"]})}}return t})()});var mt,_t=S(()=>{Ge();Je();Nt();Xe();ie();vt();P();mt=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=F({type:t})}static{this.\u0275inj=D({imports:[W,Ze,G,H,Fe]})}}return t})()});var re,A,oe=S(()=>{xt();re=class{},A=class extends re{query(){return L.asUrlQuery(this)}patchValue(_){return L.patch(this,_)}patchOrdering(_){return L.patchOrdering(this,_)}constructor(_={}){super(),Object.assign(this,_)}}});function Jt(t,_){t&1&&f(0,"exp-content-loader")}function Xt(t,_){if(t&1){let n=T();o(0,"div",13)(1,"div",4)(2,"span",14),l(3),a()(),o(4,"div",4)(5,"span",14),l(6),a()(),o(7,"div",4)(8,"span",14),l(9),s(10,"localizedDate"),a()(),o(11,"div",4)(12,"span",14),l(13),s(14,"localizedDate"),a()(),o(15,"div",4)(16,"span",14),l(17),a()(),o(18,"div",5)(19,"mat-slide-toggle",15),g("change",function(){let e=M(n).$implicit,m=O(2);return h(m.updateUser(e))}),$("ngModelChange",function(e){let m=M(n).$implicit;return z(m.is_active,e)||(m.is_active=e),h(e)}),a()(),o(20,"div",5)(21,"mat-slide-toggle",15),g("change",function(){let e=M(n).$implicit,m=O(2);return h(m.updateUser(e))}),$("ngModelChange",function(e){let m=M(n).$implicit;return z(m.add_li_accounts,e)||(m.add_li_accounts=e),h(e)}),a()(),o(22,"div",6)(23,"button",16),g("click",function(){let e=M(n).$implicit,m=O(2);return h(m.deleteLinkedinAccount(e.id))}),f(24,"exp-icon",17),a()()()}if(t&2){let n=_.$implicit,r=O(2);i(3),c(n.first_name),i(3),c(n.last_name),i(3),c(K(10,10,n.date_joined,!0)),i(4),c(K(14,13,n.last_login,!0)),i(4),c(n.email),i(2),d("disabled",!r.user.canEditUsers||r.user.id===n.id),Q("ngModel",n.is_active),i(2),d("disabled",!r.user.canEditUsers||r.user.id===n.id),Q("ngModel",n.add_li_accounts),i(2),d("disabled",!r.user.canDeleteUsers)}}function Zt(t,_){if(t&1&&(o(0,"div",11),C(1,Xt,25,16,"div",12),a()),t&2){let n=O();i(),d("ngForOf",n.tableData.rows)("ngForTrackBy",n.trackByUserId)}}function en(t,_){t&1&&(o(0,"div",18),f(1,"exp-icon",19),o(2,"span",20),l(3),s(4,"translate"),a()()),t&2&&(i(3),c(p(4,1,"NOTIFICATIONS.EMPTY_DATA_TABLE")))}var gt,ae=S(()=>{P();te();oe();ne();ee();P();Y();J();Z();It();kt();Ft();V();yt();gt=(()=>{class t{constructor(){this.userService=u(k),this.notificationService=u(U),this.global=u(N),this.filterEvent=new fe,this.filter=new A,this.isTableHeaderFullWidth=!1}ngOnInit(){this.user=this.global.current_loggedin_user}tableScroll(n){this.isTableHeaderFullWidth=n.target.scrollTop>60}filterChange(n){this.filterEvent.emit(this.filter.patchValue(n))}updateUser(n){this.user.canEditUsers&&this.userService.updateUser(n).subscribe({next:()=>{this.notificationService.translatedSuccess("REPLY_TEMPLATES.SUCCESSFULLY_UPDATED")},error:()=>{this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}deleteLinkedinAccount(n){this.notificationService.confirmModal({confirmMessage:"NOTIFICATIONS.CONFIRM_DELETION"}).subscribe(r=>{r&&this.userService.deleteUser(n).subscribe({next:()=>{this.tableData.rows.length===1&&this.tableData.rows[0].id===n&&this.filterQuery.page>1&&(this.filterQuery.page=this.filterQuery.page-1),this.filterChange(this.filterQuery),this.notificationService.translatedSuccess("NOTIFICATIONS.USER_SUCCESSFULLY_DELETED")},error:e=>{if(e?.error?.error&&e?.error?.error==="Cannot delete user!")return this.notificationService.translatedError("NOTIFICATIONS.CANNOT_DELETE_USER");this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})})}trackByUserId(n,r){return r.id}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275cmp=E({type:t,selectors:[["exp-users-table"]],inputs:{tableData:"tableData",isContent:"isContent",filterQuery:"filterQuery"},outputs:{filterEvent:"filterEvent"},standalone:!1,decls:40,vars:31,consts:[["id","users-table"],[1,"table-content"],[1,"table-data",3,"scroll"],[1,"table-header"],[1,"table-column"],[1,"table-column","center"],[1,"table-column","center","actionsColumn"],[4,"ngIf"],["class","table-body",4,"ngIf"],["class","table-content-empty",4,"ngIf"],[3,"firstTableFilterChanged","firstTableFilter","tableData"],[1,"table-body"],["class","table-row",4,"ngFor","ngForOf","ngForTrackBy"],[1,"table-row"],[1,"table-text"],[3,"change","ngModelChange","disabled","ngModel"],[1,"btn-table-icon",3,"click","disabled"],["name","delete"],[1,"table-content-empty"],["name","search_off","color","secondary","size","xxl",1,"table-empty-icon"],[1,"table-empty-text"]],template:function(r,e){r&1&&
1(o(0,"div",0)(1,"div",1)(2,"div",2),g("scroll",function(b){return e.tableScroll(b)}),o(3,"div",3)(4,"div",4)(5,"span"),l(6),s(7,"translate"),a()(),o(8,"div",4)(9,"span"),l(10),s(11,"translate"),a()(),o(12,"div",4)(13,"span"),l(14),s(15,"translate"),a()(),o(16,"div",4)(17,"span"),l(18),s(19,"translate"),a()(),o(20,"div",4)(21,"span"),l(22),s(23,"translate"),a()(),o(24,"div",5)(25,"span"),l(26),s(27,"translate"),a()(),o(28,"div",5)(29,"span"),l(30),s(31,"translate"),a()(),o(32,"div",6)(33,"span"),l(34),s(35,"translate"),a()()(),C(36,Jt,1,0,"exp-content-loader",7)(37,Zt,2,2,"div",8)(38,en,5,3,"div",9),a(),o(39,"exp-data-paginator",10),g("firstTableFilterChanged",function(b){return e.filterChange(b)}),a()()()),r&2&&(i(3),be("sticky-header",e.isTableHeaderFullWidth),i(3),c(p(7,15,"GENERAL.FIRST_NAME")),i(4),c(p(11,17,"USERS.LAST_NAME")),i(4),c(p(15,19,"USERS.JOINED")),i(4),c(p(19,21,"USERS.LAST_LOGIN")),i(4),c(p(23,23,"GENERAL.EMAIL")),i(4),c(p(27,25,"USERS.ACTIVE")),i(4),c(p(31,27,"USERS.ADD_ACCOUNTS")),i(4),c(p(35,29,"GENERAL.ACTIONS")),i(2),d("ngIf",!e.isContent),i(),d("ngIf",e.tableData.rows.length&&e.isContent),i(),d("ngIf",!e.tableData.rows.length&&e.isContent),i(),d("firstTableFilter",e.filterQuery)("tableData",e.tableData))},dependencies:[Me,w,R,Ie,y,Ke,tt,rt,I,Ye],styles:["#users-table[_ngcontent-%COMP%]{position:relative;height:100%;width:100%;overflow:hidden}#users-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .btn-table-actions[_ngcontent-%COMP%]{height:100%;width:100%}#users-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}#users-table[_ngcontent-%COMP%]   .table-content-empty[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:var(--tableText-color)}#users-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}#users-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]{overflow:auto;position:relative;z-index:1}#users-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]   .table-body[_ngcontent-%COMP%]{padding:0 12px;display:flex;flex-direction:column}#users-table[_ngcontent-%COMP%]   .table-content[_ngcontent-%COMP%]   .table-data[_ngcontent-%COMP%]   .table-body[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{min-height:44px}#users-table   .dark-theme[_nghost-%COMP%]   .table-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .table-content[_ngcontent-%COMP%]{box-shadow:none!important}#users-table[_ngcontent-%COMP%]   exp-content-loader[_ngcontent-%COMP%]{min-height:120px;display:flex;align-items:center;justify-content:center;position:relative;height:100%}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:200px 200px 200px 200px 200px 150px 150px 120px;min-width:max-content}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.end[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.end[_ngcontent-%COMP%]{justify-content:flex-end}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%]{justify-content:center}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.center[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block;text-align:center}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%]{justify-content:center}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column.check-box-column[_ngcontent-%COMP%]   mat-checkbox[_ngcontent-%COMP%]{display:flex}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{margin:15px 12px 0;
1background:var(--tableHeaderBackground-color);border-radius:12px;transition:all ease .3s;z-index:5}#users-table[_ngcontent-%COMP%]   .table-header.sticky-header[_ngcontent-%COMP%]{position:sticky;margin:0;border-radius:0;padding:0 12px}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]{top:0;height:40px}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{padding:0 12px;height:40px}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column.actionsColumn[_ngcontent-%COMP%]{background:var(--tableHeaderBackground-color)!important;border-radius:0 12px 12px 0}#users-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}#users-table[_ngcontent-%COMP%]   .table-header[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%], #users-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}#users-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}#users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:last-child{border:0}#users-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)}#users-table[_ngcontent-%COMP%]   .table-row.disconnected-table-row[_ngcontent-%COMP%]{border-left:5px solid #FAAD14}#users-table[_ngcontent-%COMP%]   .table-row.new-contact[_ngcontent-%COMP%]{border-left:5px solid var(--main-color)}#users-table[_ngcontent-%COMP%]   .table-row.removeBorder[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-row.disconnected-table-row[_ngcontent-%COMP%]{box-shadow:0 1px 0 var(--mainBackground-color)}#users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:hover{background:var(--tableRowHoverBackground-color);transition:all ease .3s}#users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]:hover   .actionsColumn[_ngcontent-%COMP%]{background:var(--tableRowHoverBackground-color)!important}#users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%]{padding:6px 12px;min-height:100%}#users-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}#users-table[_ngcontent-%COMP%]   .table-row[_ngcontent-%COMP%]   .table-column[_ngcontent-%COMP%], #users-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}#users-table[_ngcontent-%COMP%]   .table-link[_ngcontent-%COMP%], #users-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}#users-table[_ngcontent-%COMP%]   .table-link.disabled[_ngcontent-%COMP%], #users-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%]   span.disabled[_ngcontent-%COMP%]{pointer-events:none;opacity:.7}#users-table[_ngcontent-%COMP%]   .table-link-full[_ngcontent-%COMP%]{display:flex;align-items:center}#users-table[_ngcontent-%COMP%]   .notification-selection-all[_ngcontent-%COMP%]{color:var(--tableSecondaryText-color);margin:0 12px}#users-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}"],changeDetection:0})}}return t})()});function nn(t,_){if(t&1){let n=T();o(0,"button",7),g("click",function(){M(n);let e=O();return h(e.createUserModal())}),f(1,"exp-icon",8),o(2,"span",9),l(3),s(4,"translate"),a()()}t&2&&(i(3),c(p(4,1,"USERS.ADD_A_NEW_USER")))}var ut,ft=S(()=>{P();Le();te();ie();Pt();oe();ne();Ct();bt();Mt();V();ee();ve();Et();P();Y();Z();Ut();ae();V();ut=(()=>{class t extends We{constructor(){super(...arguments),this._matDialog=u(Re),this.titleService=u(Oe),this.userService=u(k),this.global=u(N),this.router=u(Pe),this.notificationService=u(U),this.translate=u(De),this.users$=new me(Ae.empty()),this.filterQuery=new A({page:1,page_size:10}),this.showContactsUsers=!0,this.isContent=!1,this.canAddUsers=!1}ngOnInit(){this.global.current_loggedin_user.canViewUsers?(this.checkPermissions(),this.titleService.setTitle(this.translate.instant("HEADER_MENU.USERS")),this.global.pageTitle$.next({heading:"HEADER_MENU.USERS"}),this.initUsers(this.filterQuery)):(this.notificationService.translatedWarning("LINKEDIN_ACCOUNTS.PERMISSIONS.DONT_HAVE_PERMISSION_TO_PAGE"),this.router.navigate(["/no-permission"]))}filterChange(n){this.initUsers(this.filterQuery.patchValue(n))}createUserModal(){this._matDialog.open(pt,{panelClass:["card-dialog","small"]}).afterClosed().subscribe(n=>{n&&this.filterChange(this.filterQuery.patchValue({page:1}))})}initUsers(n){this.isContent=!1,this.userService.getUsers(n).pipe(_e(()=>this.showContactsUsers=!1)).subscribe({next:r=>{this.users$.next(r),this.isContent=!0},error:r=>{if(r.error.detail==="Invalid page.")return this.filterChange(this.filterQuery.patchValue({page:1}));this.notificationService.translatedError("NOTIFICATIONS.SOMETHING_WENT_WRONG")}})}checkPermissions(){let n=this.global.userChanged$.pipe(ge()).subscribe(r=>{this.canAddUsers=r.canAddUsers,r&&!r?.canViewUsers&&(this.notificationService.translatedWarning("NOTIFICATIONS.DONT_HAVE_PERMISSION_PAGE"),this.global.checkRedirectDashboard())});this.subscriptions$.push(n)}static{this.\u0275fac=(()=>{let n;return function(e){return(n||(n=ue(t)))(e||t)}})()}static{this.\u0275cmp=E({type:t,selectors:[["ng-component"]],standalone:!1,features:[Ce],decls:8,vars:6,consts:[["id","users","data-testid","users-root"],[1,"page-toolbar"],[1,"filters"],[1,"filter-field-parent",3,"filterChange"],["data-testid","users-add","class","btn-primary",3,"click",4,"ngIf"],[1,"page-content"],[3,"filterEvent","tableData","isContent","filterQuery"],["data-testid","users-add",1,"btn-primary",3,"click"],["name","add"],[1,"btn-text"]],template:function(r,e){r&1&&
1(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"exp-filter-search",3),g("filterChange",function(b){return e.filterChange(b)}),a(),C(4,nn,5,3,"button",4),a()(),o(5,"div",5)(6,"exp-users-table",6),s(7,"async"),g("filterEvent",function(b){return e.filterChange(b)}),a()()()),r&2&&(i(4),d("ngIf",e.canAddUsers),i(2),d("tableData",p(7,4,e.users$))("isContent",e.isContent)("filterQuery",e.filterQuery))},dependencies:[w,y,et,gt,he,I],styles:["#users[_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){#users[_ngcontent-%COMP%]{padding:0 12px}}#users[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]{width:100%}#users[_ngcontent-%COMP%]   .page-toolbar[_ngcontent-%COMP%]   .page-toolbar-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;z-index:100}#users[_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}#users[_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}#users[_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}#users[_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}#users[_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}#users[_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}#users[_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)}#users[_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%}#users   .dark-theme[_nghost-%COMP%]   .page-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .page-content[_ngcontent-%COMP%]{box-shadow:none!important}#users   .dark-theme[_nghost-%COMP%]   .tab-content[_ngcontent-%COMP%], .dark-theme   [_nghost-%COMP%]   .tab-content[_ngcontent-%COMP%]{box-shadow:none!important}#users[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;padding:10px 12px;min-width:100%!important}#users[_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}#users[_ngcontent-%COMP%]   .action-buttons[_ngcontent-%COMP%]   .filter-field-parent[_ngcontent-%COMP%]{padding:5px 0}#users[_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}#users[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .filter-field-parent[_ngcontent-%COMP%]{padding:0 7.5px}#users[_ngcontent-%COMP%]   .filters.p-0[_ngcontent-%COMP%]{padding-top:0}#users[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .filter-for-toggle[_ngcontent-%COMP%]{display:none}#users[_ngcontent-%COMP%]   .filters.show-filters[_ngcontent-%COMP%]   .filter-for-toggle[_ngcontent-%COMP%]{display:flex}#users[_ngcontent-%COMP%]   .filters[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{margin-left:auto}"]})}}return t})()});var Ci,rn=S(()=>{ve();Ge();Xe();Je();_t();Dt();ae();ft();At();Lt();Bt();ht();Rt();P();Ci=(()=>{class t{static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275mod=F({type:t})}static{this.\u0275inj=D({imports:[xe.forChild([{path:"",component:ut}]),W,G,H,it,mt,nt,lt,ot,Se,at]})}}return t})()});rn();export{Ci as UsersModule};

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.