PageSourceSearch

https://compleadly.web.app/admin-done4u.component-CJASPXD4.js

js compleadly.web.app collected 2026-10-03 12:22:21 UTC 33,065 bytes, 1 lines download raw bytes

1import{a as z}from"./chunk-SNOTOPUP.js";import"./chunk-IDO4O3RL.js";import"./chunk-5SWI6QWI.js";import"./chunk-MJ7XPO6P.js";import"./chunk-TYRQJZSV.js";import{a as ot}from"./chunk-XRU2YNIH.js";import"./chunk-D5MSKYQK.js";import"./chunk-LKTL2SX4.js";import{b as nt}from"./chunk-JGBPOYRA.js";import"./chunk-H6M4UMBZ.js";import{a as j}from"./chunk-G5A6H7VD.js";import"./chunk-ZQROLPNB.js";import{a as je}from"./chunk-VTBLL5M5.js";import"./chunk-4OKNSUQX.js";import{b as Ye}from"./chunk-2XGQRHEV.js";import{b as Xe}from"./chunk-5EKZQAM2.js";import{b as Re}from"./chunk-VMFZBHEQ.js";import{G as Ze}from"./chunk-VXITVYQW.js";import"./chunk-HKLP7ZQZ.js";import"./chunk-FXBESNNR.js";import"./chunk-VGU7QC7C.js";import"./chunk-SGF2NT3N.js";import"./chunk-MMIYEDDM.js";import"./chunk-YWM3TLNY.js";import"./chunk-WHRASWUD.js";import{b as Ke}from"./chunk-HJU6HEZQ.js";import{a as Me,b as ke}from"./chunk-E76XHZXN.js";import"./chunk-O7MQZI2W.js";import"./chunk-4YRKHBZ4.js";import{b as He}from"./chunk-HPLYDPW2.js";import"./chunk-3OQFE75C.js";import{b as Ne}from"./chunk-GTCOD2OF.js";import{a as ze}from"./chunk-XC5AATTL.js";import{c as We}from"./chunk-VEITVTOU.js";import"./chunk-WLBNM6MC.js";import"./chunk-ZTTV5KW4.js";import"./chunk-BLDL5FKE.js";import{a as Be,b as Ve}from"./chunk-WW22SP34.js";import"./chunk-FVLGCEMU.js";import{a as Ge,b as qe}from"./chunk-FWGLM2VI.js";import"./chunk-3OSUMZJV.js";import{b as $e}from"./chunk-DL3XOGBK.js";import"./chunk-X3EQRZMX.js";import"./chunk-P65KXJZ3.js";import"./chunk-543DNBMO.js";import"./chunk-LHICGIOH.js";import"./chunk-7Q3TZWGY.js";import"./chunk-ZY5EWIHG.js";import"./chunk-43XUC2XE.js";import{b as Ue}from"./chunk-DGLDV2G3.js";import"./chunk-IC2KGHUJ.js";import"./chunk-LFVJJT2I.js";import"./chunk-XVS43MLQ.js";import"./chunk-ZGP4XV3W.js";import"./chunk-5LBXBBMI.js";import"./chunk-HKJHAJYP.js";import{a as Fe}from"./chunk-6KD3ACSK.js";import"./chunk-3Y4HGB2A.js";import"./chunk-KKYVAVXN.js";import"./chunk-BVKFGYG5.js";import{b as Te}from"./chunk-7UY4DY65.js";import"./chunk-4DRKE74E.js";import"./chunk-AGDOU3KY.js";import"./chunk-ILCWT6G2.js";import"./chunk-YY45MG5A.js";import{a as Oe,b as Ae}from"./chunk-WJVWYFA4.js";import{a as Pe,b as Ie}from"./chunk-6C5N37UA.js";import{a as Le}from"./chunk-YVJVB64X.js";import"./chunk-MN4TUXXL.js";import"./chunk-ZFK6V5HU.js";import{d as Qe,l as Je,o as et,r as tt,w as it}from"./chunk-D6TLORUP.js";import"./chunk-RCRSMJTD.js";import"./chunk-U2E6RQIO.js";import"./chunk-75R2RIB3.js";import"./chunk-5Q2BVHPC.js";import"./chunk-A5T5Y23G.js";import"./chunk-G4CWB5JP.js";import"./chunk-J543I7Y4.js";import"./chunk-7LTBCHML.js";import"./chunk-G4BB3OM3.js";import"./chunk-NWKRNXJA.js";import"./chunk-GQRCPGFE.js";import"./chunk-AKH2ACKP.js";import"./chunk-IQWEBDCU.js";import"./chunk-3DJMBDZ7.js";import"./chunk-PXY3SMNZ.js";import"./chunk-YUAKMPFJ.js";import"./chunk-SLCAI5SI.js";import"./chunk-VPKO32XM.js";import"./chunk-WDV4AAG4.js";import{a as W}from"./chunk-GAEIAD2Y.js";import"./chunk-QBG7IAE5.js";import"./chunk-5SU56IOV.js";import"./chunk-53NYZVHB.js";import"./chunk-AL573UVW.js";import"./chunk-EGC7AH6A.js";import"./chunk-6DRWRJNU.js";import"./chunk-OVF7UL77.js";import"./chunk-QES7BB7G.js";import"./chunk-GSDVKTJ6.js";import"./chunk-XEHYXWNT.js";import"./chunk-ZHULNYQA.js";import{a as ye}from"./chunk-N2QHODOJ.js";import"./chunk-OSSCNN6F.js";import"./chunk-OJ7TVTIX.js";import{a as Ee}from"./chunk-66AIJ6C7.js";import"./chunk-VUD3UBJB.js";import"./chunk-3FNOGRVU.js";import"./chunk-2LANRYJX.js";import"./chunk-AFVSB3GJ.js";import{B as we,C as be,e as f,k as De,m as L}from"./chunk-XRM7E3G2.js";import"./chunk-2RM5DZIH.js";import{d as he}from"./chunk-26HN2EJT.js";import"./chunk-MBOQCPGW.js";import"./chunk-SK7CLH3P.js";import"./chunk-PZY32JSP.js";import"./chunk-YA7YVV2L.js";import"./chunk-Y6ZBESAG.js";import{g as me,h as ge}from"./chunk-QTOLND7J.js";import"./chunk-73CXOEIF.js";import"./chunk-NEZ473FP.js";import"./chunk-VT5J52FL.js";import"./chunk-WHPMU64I.js";import"./chunk-UAEHYJVK.js";import"./chunk-3XFWJJCV.js";import"./chunk-4UA645WS.js";import"./chunk-WGWR4HD3.js";import"./chunk-M5U75P4F.js";import"./chunk-IQVZB3DH.js";import"./chunk-XMZQGP2U.js";import"./chunk-3NJDSUD7.js";import"./chunk-DXR4RTBS.js";import"./chunk-TGRKK4YS.js";import{a as xe}from"./chunk-ZCSZJJGI.js";import"./chunk-AJ3O27UI.js";import"./chunk-B7BJA2XC.js";import"./chunk-GHNGAUXJ.js";import"./chunk-ZENT6SRS.js";import"./chunk-ZVDBS2SU.js";import"./chunk-N3YRCG4Y.js";import{X as ve}from"./chunk-WV3S3FZP.js";import"./chunk-XWILFII7.js";import"./chunk-7VVCOIH5.js";import{a as Se}from"./chunk-AZ4QQZDS.js";import"./chunk-XVCHM2ZO.js";import"./chunk-YJAOHDKO.js";import"./chunk-ZHALXYZR.js";import"./chunk-ARQPVZWD.js";import"./chunk-BKD6EVHZ.js";import"./chunk-4ZS5RMYT.js";import"./chunk-ZRPWF3NY.js";import"./chunk-CMA4YJYG.js";import"./chunk-LKCU2CYW.js";import"./chunk-4ON4P7IQ.js";import{o as ue}from"./chunk-KZI5RBEK.js";import"./chunk-GD5L7IFT.js";import"./chunk-JJSP25LT.js";import"./chunk-2TTLX4PW.js";import"./chunk-DWCSSOST.js";import"./chunk-6PRMOUAY.js";import"./chunk-5UIXL6BO.js";import{t as pe}from"./chunk-BYFQZQSV.js";import"./chunk-BMK4AOX4.js";import"./chunk-EYOZCDTO.js";import"./chunk-47JB3QK6.js";import"./chunk-6MFMUNE6.js";import"./chunk-PKGBKN2M.js";import"./chunk-27Y7M3RB.js";import"./chunk-7VMUQSUB.js";import"./chunk-EKIIEAN6.js";import{Gj as K}from"./chunk-3BGN7EFA.js";import"./chunk-L3BY3W2H.js";import"./chunk-BPCAXWRU.js";import"./chunk-UX5Q2UKS.js";import"./chunk-SF2IARL4.js";import"./chunk-6ULQBU3H.js";import{q as fe}from"./chunk-AYM3J725.js";import"./chunk-3AQJXUIF.js";import"./chunk-3DXU5EGB.js";import{Bb as q}from"./chunk-QC665TQX.js";import{e as Ce}from"./chunk-7CGVOPYV.js";import"./chunk-KCNJIDRM.js";import{e as G,p as w}from"./chunk-ULIQTYXE.js";import{y as _e}from"./chunk-BL5SNMIB.js";import{a as k}from"./chunk-XYVDJZHV.js";import"./chunk-JDCFZT6W.js";import"./chunk-Z7VFWCTR.js";import"./chunk-TX6LVNBR.js";import"./chunk-246FEAQG.js";import"./chunk-M4HFPSG7.js";import"./chunk-YI2DTASI.js";import{$c as de,Ad as P,B as $,Bc as v,Db as Z,Dc as d,Fa as O,G as X,Gd as ce,Ib as Q,Ka as R,Kb as J,L as V,Lc as 
1ne,Mc as oe,Oc as re,Sc as x,Tb as ee,Tc as M,Ub as te,Uc as E,Zc as ae,_ as N,_c as se,ac as I,ec as p,ed as le,fc as u,gc as ie,ic as A,jc as T,kc as g,la as y,lc as l,mb as r,mc as s,nc as C,od as _,pd as m,ta as h,ua as S,wc as D}from"./chunk-6LNVQHTW.js";import{a as F,b as B,k as b}from"./chunk-SI3YDIW4.js";var at=()=>[import("./edit-statistics-overview-drawer.component-ONSXRUM7.js").then(t=>t.EditStatisticsOverviewDrawerComponent)],st=()=>[1,2,3,4,5],rt=(t,a)=>a.uid,H=(t,a)=>a.key;function dt(t,a){t&1&&(l(0,"div",1),C(1,"p-skeleton",2)(2,"p-skeleton",3)(3,"p-skeleton",4)(4,"p-skeleton",5)(5,"p-skeleton",6)(6,"p-skeleton",6)(7,"p-skeleton",6),s())}function lt(t,a){t&1&&(l(0,"div",0),A(1,dt,8,0,"div",1,ie),s()),t&2&&(r(),T(le(0,st)))}function ct(t,a){t&1&&(C(0,"span",16),_(1,"transloco")),t&2&&I("aria-label",m(1,1,"admin-done-4u.status.offline"))}function pt(t,a){t&1&&(C(0,"span",17),_(1,"transloco")),t&2&&I("aria-label",m(1,1,"admin-done-4u.status.error"))}function ut(t,a){t&1&&(C(0,"span",18),_(1,"transloco")),t&2&&I("aria-label",m(1,1,"admin-done-4u.status.noError"))}function _t(t,a){if(t&1){let e=D();l(0,"p-button",23),_(1,"transloco"),v("onClick",function(){h(e);let n=d().$implicit,o=d(4);return S(o.openUserBrowser(n.uid))}),s()}t&2&&g("ariaLabel",m(1,1,"admin-done-4u.openBrowser.tooltip"))}function mt(t,a){if(t&1){let e=D();l(0,"app-table-actions",24),v("actionClicked",function(n){h(e);let o=d().$implicit,c=d(4);return S(c.actionClicked(n,o.uid))}),s(),l(1,"p-button",25),_(2,"transloco"),v("onClick",function(){h(e);let n=d().$implicit,o=d(4);return S(o.removeUser(n.uid))}),s()}if(t&2){let e=d(5);g("actions",e.getActionSettings()),r(),g("ariaLabel",m(2,2,"admin-done-4u.removeUser.tooltip"))}}function gt(t,a){if(t&1&&(l(0,"div",22)(1,"dt",26),x(2),_(3,"transloco"),s(),l(4,"dd",27)(5,"span",28),x(6),s(),x(7),s()()),t&2){let e=a.$implicit,i=d().$implicit,n=d(4);r(2),E(" ",m(3,3,"statistics.linkedin.properties."+e.key)," "),r(4),M(n.groupedByUser[i.uid].day[e.key]||0),r(),E(" | ",n.groupedByUser[i.uid].week[e.key]||0," ")}}function Ct(t,a){if(t&1&&(l(0,"li",13)(1,"div",14)(2,"span",15),x(3),s(),p(4,ct,2,3,"span",16)(5,pt,2,3,"span",17)(6,ut,2,3,"span",18),l(7,"span",19),x(8),s(),p(9,_t,2,3,"p-button",20),p(10,mt,3,4),s(),l(11,"dl",21),A(12,gt,8,5,"div",22,H),s()()),t&2){let e=a.$implicit,i=a.$index,n=d(4);r(3),M(i+1),r(),u(n.groupedByUser[e.uid].status==="offline"?4:n.groupedByUser[e.uid].hasError?5:6),r(4),M(n.groupedByUser[e.uid].email),r(),u(n.userLoginLinks()[e.uid]?9:-1),r(),u(n.isEditMode()?10:-1),r(2),T(n.statisticsConfig())}}function ft(t,a){if(t&1&&(l(0,"ul",11),A(1,Ct,14,5,"li",13,rt),s()),t&2){let e=d(3);r(),T(e.displayedUserGrouped)}}function ht(t,a){t&1&&(l(0,"div",12),x(1),_(2,"transloco"),s()),t&2&&(r(),M(m(2,1,"leads.linkedin.emptyMessage")))}function St(t,a){if(t&1&&p(0,ft,3,0,"ul",11)(1,ht,3,3,"div",12),t&2){let e=d(2);u(e.hasUserData()?0:1)}}function vt(t,a){t&1&&C(0,"th",29)}function xt(t,a){t&1&&C(0,"th",31)}function yt(t,a){t&1&&C(0,"th")}function Dt(t,a){if(t&1&&(l(0,"th",35)(1,"div",37)(2,"div",38),x(3),_(4,"transloco"),s()()()),t&2){let e=a.$implicit;r(3),E(" ",m(4,1,"statistics.linkedin.properties."+e.key)," ")}}function wt(t,a){t&1&&(l(0,"td",41),C(1,"i",50),s())}function bt(t,a){if(t&1){let e=D();l(0,"td",43)(1,"app-table-actions",24),v("actionClicked",function(n){h(e);let o=d().$implicit,c=d(4);return S(c.actionClicked(n,o.uid))}),s()()}if(t&2){let e=d(5);r(),g("actions",e.getActionSettings())}}function Ut(t,a){t&1&&(C(0,"div",51),_(1,"transloco")),t&2&&g("pTooltip",m(1,1,"admin-done-4u.status.error"))}function Mt(t,a){t&1&&(C(0,"div",52),_(1,"transloco")),t&2&&g("pTooltip",m(1,1,"admin-done-4u.status.noError"))}function kt(t,a){if(t&1&&(p(0,Ut,2,3,"div",51),p(1,Mt,2,3,"div",52)),t&2){let e=d().$implicit,i=d(4);u(i.groupedByUser[e.uid].hasError?0:-1),r(),u(i.groupedByUser[e.uid].hasError?-1:1)}}function Ot(t,a){t&1&&(C(0,"div",47),_(1,"transloco")),t&2&&g("pTooltip",m(1,1,"admin-done-4u.status.offline"))}function At(t,a){if(t&1){let e=D();l(0,"td",49)(1,"p-button",53),_(2,"transloco"),v("onClick",function(){h(e);let n=d().$implicit,o=d(4);return S(o.removeUser(n.uid))}),s()()}t&2&&(r(),g("pTooltip",m(2,1,"admin-done-4u.removeUser.tooltip")))}function Tt(t,a){if(t&1&&(l(0,"td",35)(1,"span",54),x(2),s(),x(3),s()),t&2){let e=a.$implicit,i=d().$implicit,n=d(4);r(2),M(n.groupedByUser[i.uid].day[e.key]||0),r(),E(" | ",n.groupedByUser[i.uid].week[e.key]||0," ")}}function Et(t,a){if(t&1){let e=D();l(0,"tr",40),p(1,wt,2,0,"td",41),l(2,"td",42),x(3),s(),p(4,bt,2,1,"td",43),l(5,"td",44),x(6),s(),l(7,"td",45)(8,"div",46),p(9,kt,2,2),p(10,Ot,2,3,"div",47),l(11,"p-button",48),_(12,"transloco"),v("onClick",function(){let n=h(e).$implicit,o=d(4);return S(o.openUserBrowser(n.uid))}),s()()(),C(13,"td",34),p(14,At,3,3,"td",49),A(15,Tt,4,2,"td",35,H),s()}if(t&2){let e=a.$implicit,i=a.$index,n=d(4);g("cdkDragDisabled",!n.isEditMode()),r(),u(n.isEditMode()?1:-1),r(2),M(i+1),r(),u(n.isEditMode()?4:-1),r(2),E(" ",n.groupedByUser[e.uid].email," "),r(3),u(n.groupedByUser[e.uid].status!=="offline"?9:-1),r(),u(n.groupedByUser[e.uid].status==="offline"?10:-1),r(),re("visibility",n.userLoginLinks()[e.uid]?"visible":"hidden"),g("pTooltip",m(12,11,"admin-done-4u.openBrowser.tooltip")),r(3),u(n.isEditMode()?14:-1),r(),T(n.statisticsConfig())}}function Pt(t,a){if(t&1){let e=D();l(0,"tbody",39),v("cdkDropListDropped",function(n){h(e);let o=d(3);return S(o.drop(n))}),A(1,Et,17,13,"tr",40,rt),s()}if(t&2){let e=d(3);
1r(),T(e.displayedUserGrouped)}}function Lt(t,a){t&1&&(l(0,"div"),x(1),_(2,"transloco"),s()),t&2&&(r(),M(m(2,1,"leads.linkedin.emptyMessage")))}function It(t,a){if(t&1&&(l(0,"tbody")(1,"tr")(2,"td",12),p(3,Lt,3,3,"div"),s()()()),t&2){let e=d(3);r(2),I("colspan",(e.isEditMode()?7:4)+e.statisticsConfig().length),r(),u(e.isLoading()?-1:3)}}function Ft(t,a){if(t&1&&(l(0,"table",7)(1,"thead")(2,"tr"),p(3,vt,1,0,"th",29),C(4,"th",30),p(5,xt,1,0,"th",31),C(6,"th",32)(7,"th",33)(8,"th",34),p(9,yt,1,0,"th"),A(10,Dt,5,3,"th",35,H),s()(),p(12,Pt,3,0,"tbody",36),p(13,It,4,2,"tbody"),s()),t&2){let e=d(2);r(3),u(e.isEditMode()?3:-1),r(2),u(e.isEditMode()?5:-1),r(4),u(e.isEditMode()?9:-1),r(),T(e.statisticsConfig()),r(2),u(e.hasUserData()?12:-1),r(),u(e.hasUserData()?-1:13)}}function Bt(t,a){if(t&1){let e=D();C(0,"p-divider"),l(1,"div",55)(2,"div",56)(3,"app-team-user-select-form",57),v("userSelected",function(n){h(e);let o=d(2);return S(o.addUser(n))}),s()(),l(4,"p-button",58),_(5,"transloco"),v("onClick",function(){h(e);let n=d(2);return S(n.openStatisticsConfigDrawer())}),s()()}t&2&&(r(3),g("floatingLabel",!0)("inlineMode",!0)("placeholder","admin-done-4u.addUser.placeholder")("required",!1)("storageKey",""),r(),g("label",m(5,6,"admin-done-4u.statistics.columns.edit")))}function Vt(t,a){if(t&1){let e=D();l(0,"p-button",59),_(1,"transloco"),v("onClick",function(){h(e);let n=d(2);return S(n.toggleEditMode())}),s()}t&2&&g("label",m(1,1,"admin-done-4u.editMode.enable"))}function Nt(t,a){if(t&1){let e=D();l(0,"p-button",60),_(1,"transloco"),v("onClick",function(){h(e);let n=d(2);return S(n.toggleEditMode())}),s()}t&2&&g("label",m(1,1,"admin-done-4u.editMode.disable"))}function Kt(t,a){if(t&1&&(p(0,St,2,1)(1,Ft,14,5,"table",7),p(2,Bt,6,8),l(3,"div",8),p(4,Vt,2,3,"p-button",9)(5,Nt,2,3,"p-button",10),s()),t&2){let e=d();u(e.isPhone()?0:1),r(2),u(e.isEditMode()?2:-1),r(2),u(e.isEditMode()?5:4)}}function Wt(t,a){if(t&1){let e=D();l(0,"app-edit-statistics-overview-drawer",61),de("visibleChange",function(n){h(e);let o=d();return se(o.statisticsConfigDrawerVisible,n)||(o.statisticsConfigDrawerVisible=n),S(n)}),v("saved",function(n){h(e);let o=d();return S(o.saveStatisticsConfig(n))}),s()}if(t&2){let e=d();g("allAvailableConfigs",e.statisticsConfigAvailable())("currentSelectedKeys",e.statisticsConfigCurrentSelectedKeys())("defaultSelectedKeys",e.statisticsConfigDefaultKeys())("minSelected",1),ae("visible",e.statisticsConfigDrawerVisible)}}var $i=(()=>{class t extends he{constructor(){super(...arguments),this.adminDone4UService=y(Pe),this.adminOnlineStatusService=y(Le),this.adminUserConfigService=y(Ie),this.apiUserService=y(ye),this.formDialog=y(je),this.layoutService=y(ze),this.linkedinStatistics=y(Fe),this.localStorageService=y(ve),this.schedulerService=y(Se),this.toastUserSettings=y(xe),this.userSettingsGeneral=y(Ee),this.userSelectForm=ce(z),this.windowSettingForm=new De({posX:new L(0,[f.required,f.min(0),f.max(8e3)]),posY:new L(0,[f.required,f.min(0),f.max(8e3)]),width:new L(0,[f.required,f.min(1),f.max(8e3)]),height:new L(0,[f.required,f.min(1),f.max(8e3)]),zoomLevel:new L(0,[f.required,f.min(-5),f.max(5)])}),this.statisticsConfigExpert=[{key:"visitedCampaignMessages",count:!0,cycle:!1},{key:"campaignMessages",count:!0,cycle:!0},{key:"visitedConnect",count:!0,cycle:!1},{key:"connected",count:!0,cycle:!0},{key:"opener",count:!0,cycle:!0},{key:"followUps",count:!0,cycle:!0},{key:"withdrawConnections",count:!0,cycle:!0},{key:"visitedFollow",count:!0,cycle:!1},{key:"followed",count:!0,cycle:!0},{key:"sendMessageFirstDegree",count:!0,cycle:!0},{key:"visitedAutoInMails",count:!0,cycle:!1},{key:"autoInMails",count:!0,cycle:!0},{key:"congratulations",count:!0,cycle:!0}],this.statisticsConfigAvailable=P(()=>this.statisticsConfigExpert),this.statisticsConfigDefaultKeys=P(()=>this.statisticsConfigExpert.map(e=>e.key)),this.statisticsConfigCurrentSelectedKeys=P(()=>this.getSanitizedStatisticsConfigKeys(this.statisticsConfigSelectedKeys())),this.statisticsConfig=P(()=>this.statisticsConfigCurrentSelectedKeys().map(e=>this.statisticsConfigExpert.find(i=>
1i.key===e)).filter(Boolean)),this.isPhone=We,this.groupedByUser={},this.displayedUserGrouped=[],this.statisticsConfigDrawerVisible=O(!1),this.hasUserData=O(!1),this.isEditMode=O(!1),this.isLoading=O(!1),this.statisticsConfigSelectedKeys=O([]),this.userLoginLinks=O({}),this.isGettingFeatureUsageStats=!1,this.fetchedFeatureUsageStatsInTheFirstTime=!1,this.compareCounter=0,this.__getActionSettingsStableResult1=[j.EDIT],this.getActionSettings=P(()=>this.__getActionSettingsStableResult1)}ngOnInit(){super.ngOnInit(),this.setInitialStatisticsConfig(),this.observeFrontendSettings(),this.setInitWindowValues(),this.isLoading.set(!0),this.adminDone4UService.observeAdminDone4UUsers(),this.observeAdminDone4U()}ngOnDestroy(){this.adminDone4UService.unsubscribe(),super.ngOnDestroy()}observeAdminDone4U(){this.adminDone4UService.adminDone4UUsersChanged.pipe(V(50),N(()=>b(this,null,function*(){this.adminDone4UService.adminDone4UUsers&&(yield this.getUserInfo(),this.observeOnlineStatusSub||(this.adminOnlineStatusService.observeOnlineUsers(),this.observeOnlineUsers()),this.setDone4UUserStatus())})),k(this.unsubscribe$)).subscribe()}startFetchingStatisticData(){this.fetchingStatisticDataSub||(this.fetchingStatisticDataSub=this.schedulerService.schedule1Min.pipe(V(50),N(()=>b(this,null,function*(){yield this.getUserFeatureUsageStats(),this.compareCounter++})),k(this.unsubscribe$)).subscribe())}observeOnlineUsers(){this.observeOnlineStatusSub||(this.observeOnlineStatusSub=this.adminOnlineStatusService.onlineUsersDataChanged.pipe(X(1e3),N(()=>b(this,null,function*(){this.adminOnlineStatusService.onlineUsers&&(this.setDone4UUserStatus(),this.fetchedFeatureUsageStatsInTheFirstTime||(this.fetchedFeatureUsageStatsInTheFirstTime=!0,yield this.getUserFeatureUsageStats()),this.startFetchingStatisticData(),this.isLoading.set(!1))})),k(this.unsubscribe$)).subscribe())}setDone4UUserStatus(){if(this.groupedByUser){let e=(this.adminOnlineStatusService.onlineUsers||[]).map(i=>i.email)||[];for(let i of Object.values(this.groupedByUser))e.includes(i.email)?(this.groupedByUser[i.uid].status=W.Online,this.groupedByUser[i.uid].show||(this.groupedByUser[i.uid].show=!0,this.displayedUserGrouped.push({uid:i.uid,index:9999}))):this.groupedByUser[i.uid].status=W.Offline}}getUserInfo(){return b(this,null,function*(){console.debug("Admin Done4U Users",this.adminDone4UService.adminDone4UUsers);let e={},i=[];if(this.adminDone4UService.adminDone4UUsers?.length)for(let[o,c]of this.adminDone4UService.adminDone4UUsers.entries())e[c.uid]={uid:c.uid,email:c.email,show:!0,day:this.groupedByUser[c.uid]?.day||K(null),week:this.groupedByUser[c.uid]?.week||K(null),previousDay:this.groupedByUser[c.uid]?.previousDay||K(null)},i.push({uid:c.uid,index:o});let n=yield this.adminDone4UService.getOrdering();if(i.length>0&&n&&Object.keys(n).length>0){for(let o of i)o.index=n[o.uid]?n[o.uid]:9999;for(let[o,c]of i.sort((U,Y)=>U.index>Y.index?1:U.index<Y.index?-1:0).entries())c.index=o+1}this.displayedUserGrouped=i,this.groupedByUser=e,this.hasUserData.set(this.displayedUserGrouped.length>0),this.prefetchUserLoginLinks(i.map(o=>o.uid))})}prefetchUserLoginLinks(e){e?.length&&Promise.all(e.map(i=>b(this,null,function*(){let n=yield this.apiUserService.getUserLoginLink(i);n&&this.userLoginLinks.update(o=>B(F({},o),{[i]:n}))}))).catch(i=>{console.error("Error prefetching user login links:",i)})}isStatisticDataChanged(e,i){return Object.keys(e||{}).length===0&&Object.keys(i||{}).length===0?!1:!e&&i||e&&!i?!0:this.statisticsConfigExpert.map(o=>o.key).some(o=>e[o]!==i[o])}getUserFeatureUsageStats(){return b(this,null,function*(){if(this.groupedByUser&&!this.isGettingFeatureUsageStats){this.isGettingFeatureUsageStats=!0;try{let e=Object.values(this.groupedByUser).filter(i=>i.status===W.Online).map(i=>i.uid);if(e.length>0){let i=[];console.debug("Start fetching statatistics for users: ",e),i=yield this.linkedinStatistics.getLinkedinStatByUsersAndPeriods({userIds:e,periods:[G.statistics_day,G.statistics_week]});for(let n of e){for(let c of i.filter(U=>U.user_id===n))c._id.startsWith("DAY")?this.groupedByUser[c.user_id].day=structuredClone(B(F({},c),{timestamp:q()})):c._id.startsWith("WEEK")&&(this.groupedByUser[c.user_id].week=structuredClone(c));let o=this.isStatisticDataChanged(this.groupedByUser[n]?.day,this.groupedByUser[n]?.previousDay);!o&&this.groupedByUser[n]?.previousDay?.timestamp<=Ce().subtract(this.isServe?2:60,"minute").unix()&&(this.groupedByUser[n].hasError=!0),o&&(this.groupedByUser[n].previousDay=structuredClone(this.groupedByUser[n].day),this.groupedByUser[n].hasError=!1)}}}catch(e){console.error("Encountered error at getting user config data",fe(e))}this.isLoading.set(!1),this.isGettingFeatureUsageStats=!1}})}drop(e){let i=[...this.displayedUserGrouped];Qe(i,e.previousIndex,e.currentIndex);let n={};for(let[o,c]of i.entries())c.index=o+1,n[c.uid]=c.index;this.adminDone4UService.updateOrdering(n).catch(o=>{console.error("Encountered error at updateOrdering: ",o)}),this.displayedUserGrouped=i}actionClicked(e,i){if(e&&i){let n=this.groupedByUser[i];e===j.EDIT&&this.openCredentialInputDrawer(n)}}openUserBrowser(e){return b(this,null,function*(){let i=this.userLoginLinks()[e];if(i){this.openExternalLink(i);return}let n=yield this.apiUserService.getUserLoginLink(e);n?(this.userLoginLinks.update(o=>B(F({},o),{[e]:n})),this.openExternalLink(n)):this.toastUserSettings.showNotSetUserCredError()})}toggleEditMode(){this.isEditMode.update(e=>!e)}openStatisticsConfigDrawer(){this.statisticsConfigDrawerVisible.set(!0)}saveStatisticsConfig(e){let i=this.getSanitizedStatisticsConfigKeys(e);this.statisticsConfigSelectedKeys.set(i),this.userSettingsGeneral.saveAdminDone4UStatisticsSelectedKeys(i)}addUser(e){return b(this,null,function*(){if(e?.uid){try{yield this.adminUserConfigService.updateUserConfigItem({name:"activateAdminDone4U",status:!0},e.uid,{activateAdminDone4ULastUpdated:q()}),this.toastUserSettings.showUpdateUserConfigSuccess()}catch(i){console.error("Error activating Done4U user:",i),this.toastUserSettings.showUpdateUserConfigError()}this.userSelectForm()?.resetUser()}})}removeUser(e){return b(this,null,function*(){if(e)try{yield this.adminUserConfigService.updateUserConfigItem({name:"activateAdminDone4U",status:!1},e),this.toastUserSettings.showUpdateUserConfigSuccess()}catch(i){console.error("Error deactivating Done4U user:",i),this.toastUserSettings.showUpdateUserConfigError()}})}openCredentialInputDrawer(e){this.formDialog.openCredentialInput().pipe(k(this.unsubscribe$)).subscribe(i=>{i&&this.apiUserService.saveUserCredentials({uid:e.uid,email:e.email,password:i.password}
1).catch(n=>{console.error("Encountered error at saveUserCredentials: ",n)})})}setInitWindowValues(){let e=this.windowSettingForm.controls,i=this.localStorageService.getLocalStorage(w.WINDOW_POS_X_ADMIN_ADVANCED_ONLINE_STATUS);e.posX.setValue(i||0);let n=this.localStorageService.getLocalStorage(w.WINDOW_POS_Y_ADMIN_ADVANCED_ONLINE_STATUS);e.posY.setValue(n||0);let o=this.localStorageService.getLocalStorage(w.WINDOW_ZOOM_ADMIN_ADVANCED_ONLINE_STATUS);e.zoomLevel.setValue(o||0);let c=this.localStorageService.getLocalStorage(w.WINDOW_WIDTH_ADMIN_ADVANCED_ONLINE_STATUS);e.width.setValue(c||1920);let U=this.localStorageService.getLocalStorage(w.WINDOW_HEIGHT_ADMIN_ADVANCED_ONLINE_STATUS);e.height.setValue(U||1080)}toggleOverlayVisible(){let e=this.windowSettingForm.controls;this.layoutService.isOverlayVisible()?this.windowSettingForm.valid&&(this.layoutService.setWindowPosAndSize(e.posX.value,e.posY.value,e.width.value,e.height.value),$(800).pipe(k(this.unsubscribe$)).subscribe(()=>{this.layoutService.setZoomLevel(e.zoomLevel.value)}),this.saveLocalWindowData(e.posX.value,e.posY.value,e.width.value,e.height.value,e.zoomLevel.value)):(this.layoutService.setWindowPosAndSize(0,0,1920,1080),$(800).pipe(k(this.unsubscribe$)).subscribe(()=>{this.layoutService.setZoomLevel(0)})),this.layoutService.setOverlayVisible(!this.layoutService.isOverlayVisible())}saveLocalWindowData(e,i,n,o,c){this.localStorageService.setLocalStorage(w.WINDOW_POS_X_ADMIN_ADVANCED_ONLINE_STATUS,e),this.localStorageService.setLocalStorage(w.WINDOW_POS_Y_ADMIN_ADVANCED_ONLINE_STATUS,i),this.localStorageService.setLocalStorage(w.WINDOW_WIDTH_ADMIN_ADVANCED_ONLINE_STATUS,n),this.localStorageService.setLocalStorage(w.WINDOW_HEIGHT_ADMIN_ADVANCED_ONLINE_STATUS,o),this.localStorageService.setLocalStorage(w.WINDOW_ZOOM_ADMIN_ADVANCED_ONLINE_STATUS,c)}setInitialStatisticsConfig(){this.statisticsConfigSelectedKeys.set(this.getSanitizedStatisticsConfigKeys(this.userSettingsGeneral.adminDone4UStatisticsSelectedKeys))}observeFrontendSettings(){this.userSettingsGeneral.frontendSettingsDataChanged.pipe(V(50),k(this.unsubscribe$)).subscribe(()=>{let e=this.getSanitizedStatisticsConfigKeys(this.userSettingsGeneral.adminDone4UStatisticsSelectedKeys);this.areStatisticsConfigKeysEqual(this.statisticsConfigSelectedKeys(),e)||this.statisticsConfigSelectedKeys.set(e)})}getSanitizedStatisticsConfigKeys(e){let i=new Set(this.statisticsConfigDefaultKeys()),n=(e||[]).filter((o,c,U)=>i.has(o)&&U.indexOf(o)===c);return n.length>0?n:[...this.statisticsConfigDefaultKeys()]}areStatisticsConfigKeysEqual(e,i){return e.length!==i.length?!1:e.every((n,o)=>n===i[o])}static{this.\u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})()}static{this.\u0275cmp=Z({type:t,selectors:[["app-admin-done4u"]],viewQuery:function(i,n){i&1&&ne(n.userSelectForm,z,5),i&2&&oe()},features:[Q],decls:6,vars:3,consts:[[1,"flex","flex-col","gap-2"],[1,"flex","items-center","gap-4"],["height","1rem","width","2rem"],["height","1rem","width","3rem"],["height","1rem"],["shape","circle","size","1.5rem"],["height","1rem","width","4rem"],[1,"rotated-header"],[1,"mb-3","flex","items-center","gap-2"],["icon","far fa-pencil","size","small","variant","text",3,"label"],["icon","far fa-xmark","severity","secondary","size","small","variant","text",3,"label"],[1,"done4u-phone-list","flex","flex-col","gap-3"],[1,"pt-10","text-center","text-base"],[1,"done4u-phone-card","rounded-lg","p-3"],[1,"flex","items-center","gap-2"],[1,"shrink-0","text-sm","text-p-text-muted-color"],["role","img",1,"status-icon","gray","h-3","w-3","shrink-0","rounded-full"],["role","img",1,"status-icon","h-3","w-3","shrink-0","rounded-full","bg-red-500"],["role","img",1,"status-icon","h-3","w-3","shrink-0","rounded-full","bg-green-500"],[1,"min-w-0","flex-1","truncate","font-semibold"],["icon","far fa-arrow-up-right-from-square","variant","text",3,"ariaLabel"],[1,"done4u-phone-metrics","mt-2","grid","gap-x-4","gap-y-1","text-sm"],[1,"flex","min-w-0","items-baseline","justify-between","gap-2"],["icon","far fa-arrow-up-right-from-square","variant","text",3,"onClick","ariaLabel"],[3,"actionClicked","actions"],["icon","far fa-trash","severity","danger","variant","text",3,"onClick","ariaLabel"],[1,"min-w-0","break-words","text-p-text-muted-color"],[1,"m-0","shrink-0","whitespace-nowrap"],[1,"font-bold"],[1,"w-6","cursor-move"],[1,"w-6"],[1,"w-16"],[1,"w-56","max-w-56","overflow-hidden","text-ellipsis","whitespace-nowrap"],[1,"status-col","w-48"],[1,"space-col","w-1"],[1,"stat-col"],["cdkDropList",""],[1,"w-4"],[1,"rotated-header-content"],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y",1,"stat-item",3,"cdkDragDisabled"],["cdkDragHandle","",1,"label-col","w-6","cursor-move"],[1,"label-col","w-6"],[1,"label-col","w-16"],[1,"label-col","w-56","max-w-56","overflow-hidden","text-ellipsis","whitespace-nowrap"],[1,"label-col","status-col","w-48"],[1,"status-col-wrapper","flex","w-full","items-center","justify-center","gap-1","pl-1.5"],[1,"status-icon","gray","h-4","w-4","rounded-full","pr-2.5",3,"pTooltip"],["icon","far fa-arrow-up-right-from-square","size","small","variant","text",3,"onClick","pTooltip"],[1,"label-col"],[1,"far","fa-bars"],[1,"status-icon","error","h-4","w-4","rounded-full","bg-red-500","pr-2.5",3,"pTooltip"],[1,"status-icon","green","h-4","w-4","rounded-full","bg-green-500","pr-2.5",3,"pTooltip"],["icon","far fa-trash","severity","danger","size","small","variant","text",3,"onClick","pTooltip"],[1,"text-base","font-bold"],[1,"mb-4","flex","items-center","gap-3","max-md:flex-wrap"],[1,"w-96","max-md:w-full"],[3,"userSelected","floatingLabel","inlineMode","placeholder","required","storageKey"],["icon","far fa-gear","size","small","variant","text",3,"onClick","label"],["icon","far fa-pencil","size","small","variant","text",3,"onClick","label"],["icon","far fa-xmark","severity","secondary","size","small","variant","text",3,"onClick","label"],["drawerIcon","far fa-table","drawerSubtitleKey","admin-done-4u.statistics.drawer.subtitle","drawerTitleKey","admin-done-4u.statistics.drawer.title",3,"visibleChange","saved","allAvailableConfigs","currentSelectedKeys","defaultSelectedKeys","minSelected","visible"]],template:function(i,n){i&1&&(l(0,"p-card"),p(1,lt,3,1,"div",0),p(2,Kt,6,3),s(),J(3,Wt,1,5),ee(4,3,at)),i&2&&(r(),u(n.isLoading()?1:-1),r(),u(n.isLoading()?-1:2),r(2),te(n.statisticsConfigDrawerVisible()))},dependencies:[ge,me,qe,Ge,Te,pe,Ye,it,tt,et,Je,we,Ue,nt,Xe,Re,be,ue,$e,Ve,Be,He,ot,Ze,z,Ne,Ke,Ae,Oe,ke,Me,_e],styles:[".small-label[_ngcontent-%COMP%]{padding:0!important;font-size:.5rem!important;line-height:.8rem!important;text-align:center!important}[_nghost-%COMP%]     .header-input{display:grid!important;align-items:center!important}[_nghost-%COMP%]     .header-input input::-webkit-outer-spin-button, [_nghost-%COMP%]     .header-input input::-webkit-inner-spin-button{margin:0!important;-webkit-appearance:none!important}[_nghost-%COMP%]     .header-input input[inputmode=decimal]{-moz-appearance:textfield!important}[_nghost-%COMP%]     .header-input input, [_nghost-%COMP%]     .header-input input::placeholder{width:3rem!important;padding:0!important;font-size:.5rem!important;line-height:.8rem!important;text-align:center!important}.rotated-header[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]{width:calc(100% - 30px);font-size:.7rem;border-spacing:0}.rotated-header[_ngcontent-%COMP%]   th[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{height:5.5rem;line-height:1;vertical-align:bottom;text-align:left}.rotated-header[_ngcontent-%COMP%]   td[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{padding-top:10px;padding-right:6px;padding-bottom:10px;text-align:left}.rotated-header[_ngcontent-%COMP%]   .label-col[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .label-col[_ngcontent-%COMP%]{padding-right:0;font-size:1rem;text-align:left;border-top:1px solid var(--p-surface-200, #e4e4e4)}.rotated-header[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-text[_ngcontent-%COMP%]{text-transform:capitalize}.rotated-header[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-text.error[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-text.error[_ngcontent-%COMP%]{color:var(--p-red-500)}.rotated-header[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-text.green[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-text.green[_ngcontent-%COMP%]{color:var(--p-green-500)}.rotated-header[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-icon.gray[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .status-icon.gray[_ngcontent-%COMP%]{background:var(--p-slate-300)}.rotated-header[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .green-line[_ngcontent-%COMP%], .cdk-drag-preview[_ngcontent-%COMP%]   .status-col[_ngcontent-%COMP%]   .status-col-wrapper[_ngcontent-%COMP%]   .green-line[_ngcontent-%COMP%]{width:30px;height:3px;margin-top:7px;border-radius:3px}.done4u-phone-list[_ngcontent-%COMP%]{padding:0;margin:0;list-style:none}.done4u-phone-card[_ngcontent-%COMP%]{border:1px solid var(--p-content-border-color)}.done4u-phone-card[_ngcontent-%COMP%]   .status-icon.gray[_ngcontent-%COMP%]{background:var(--p-slate-300)}.done4u-phone-metrics[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fill,minmax(min(10rem,100%),1fr))}.rotated-header-content[_ngcontent-%COMP%]{width:5.8890872965rem;transform:translate(1rem) rotate(-45deg);transform-origin:bottom left}
1.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;display:table;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.rotated-header[_ngcontent-%COMP%]   .cdk-drop-list-dragging[_ngcontent-%COMP%]   .stat-item[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}}return t})();export{$i as AdminDone4uComponent};

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.