1import{a as Vt,b as jt}from"./chunk-B72KTCE6.js";import"./chunk-N7XPNPEN.js";import{a as Ft}from"./chunk-XN54DTSZ.js";import{a as Gt}from"./chunk-N64MUBIE.js";import{a as k}from"./chunk-MLIOEYSJ.js";import{c as yt,d as bt}from"./chunk-CNCCU4LT.js";import{a as Ut}from"./chunk-5YL7SUI7.js";import{i as Wt}from"./chunk-TMML4CLY.js";import{b as Dt,f as F,h as Bt,m as kt,n as At}from"./chunk-YO4EDRJ7.js";import"./chunk-5KUSON4V.js";import"./chunk-MIK4VLE4.js";import{$ as _,$a as g,C as D,Da as et,Fc as ht,Gb as l,Hb as c,Ib as I,Ic as Ct,Jb as st,Ka as N,Kb as lt,La as E,Na as T,Pa as H,Pc as ft,Qa as R,Ra as O,Rb as pt,Sa as s,Sc as Mt,Ta as a,Ua as v,Ub as ct,V as A,W as V,Wb as dt,Xb as gt,Ya as U,Yb as mt,Z as M,_ as m,_a as x,_c as ut,a as z,ad as Pt,db as nt,eb as it,ec as _t,ed as Ot,f as Z,fb as ot,fd as xt,gb as at,gd as vt,hd as wt,ib as B,id as St,jd as Et,lb as p,ma as J,mb as d,nb as C,pa as X,qb as y,qd as Tt,ra as i,rb as b,rc as K,rd as It,sb as w,tb as W,ud as Lt,v as L,xb as G,ya as tt,yb as rt,za as j}from"./chunk-UPWIJIG3.js";var Q=Z(Ut()),Nt=Z(Gt());var Yt=(()=>{class o{constructor(){this.http=M(_t),this.configService=M(Et)}getEmailList(e){return this.http.get(`${this.configService.config.prov}/emails`,{params:e})}getEmailStatistic(e){return this.http.get(`${this.configService.config.prov}/emails/statistics`,{params:e})}downloadEmailList(e){return this.http.get(`${this.configService.config.prov}/emails/export`,{params:e,responseType:"text"})}clearEmail(e){return this.http.post(`${this.configService.config.prov}/emails/clear`,e)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var zt=(()=>{class o{constructor(){this.errorHandlerService=M(Lt),this.emailsApiService=M(Yt)}getEmailList(e){return this.emailsApiService.getEmailList(e).pipe(L(t=>t.data),D(this.errorHandlerService.handleError))}getEmailListCount(e){return this.emailsApiService.getEmailList(e).pipe(L(t=>t.meta.count),D(this.errorHandlerService.handleError))}getEmailStatistic(e){return this.emailsApiService.getEmailStatistic(e).pipe(L(t=>t.data),D(this.errorHandlerService.handleError))}downloadEmailList(e){return this.emailsApiService.downloadEmailList(e).pipe(D(this.errorHandlerService.handleError))}clearEmail(e){return this.emailsApiService.clearEmail(e).pipe(L(t=>t.success),D(this.errorHandlerService.handleError))}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Kt=["p"],Qt=()=>["-count"],qt=()=>["-date"],Zt=o=>({"background-image":o});function Jt(o,u){o&1&&(s(0,"div",4)(1,"h3",5),p(2),l(3,"translate"),a(),v(4,"h4",6),l(5,"translate"),a()),o&2&&(i(2),d(c(3,2,"reports.sitePlaceholder")),i(2),O("innerHTML",c(5,4,"reports.sitePlaceholder2"),J))}function Xt(o,u){if(o&1){let e=U();s(0,"div",36)(1,"div",37)(2,"div",38)(3,"label",39),p(4),l(5,"translate"),a(),s(6,"div",40)(7,"ngbd-datepicker-i18n",41),w("ngModelChange",function(n){m(e);let r=g(2);return b(r.periodStart,n)||(r.periodStart=n),_(n)}),a()()(),s(8,"div",42)(9,"label",39),p(10),l(11,"translate"),a(),s(12,"div",43)(13,"ngbd-datepicker-i18n",41),w("ngModelChange",function(n){m(e);let r=g(2);return b(r.periodEnd,n)||(r.periodEnd=n),_(n)}),a()()()(),s(14,"div",44)(15,"button",45),x("click",function(){m(e);let n=g(2);return _(n.periodApply())}),p(16),l(17,"translate"),a()()()}if(o&2){let e=g(2);i(4),C("",c(5,5,"global.period.dateStart"),":"),i(3),y("ngModel",e.periodStart),i(3),C("",c(11,7,"global.period.dateEnd"),":"),i(3),y("ngModel",e.periodEnd),i(3),C(" ",c(17,9,"global.period.start")," ")}}function $t(o,u){o&1&&(s(0,"div",17),v(1,"app-preloader"),a())}function te(o,u){o&1&&(s(0,"h5",31),p(1),l(2,"translate"),a()),o&2&&(i(),d(c(2,1,"reports.emails.last.placeholder")))}function ee(o,u){if(o&1&&v(0,"div",46),o&2){let e=g().$implicit;O("ngStyle",rt(1,Zt,"url("+e.gravatarUrl+")"))}}function ne(o,u){o&1&&(s(0,"div",47),v(1,"span",48),a())}function ie(o,u){if(o&1&&(s(0,"div",21),E(1,ee,1,3,"div",46)(2,ne,2,0,"div",47),s(3,"div")(4,"h5"),p(5),a(),s(6,"h5"),p(7),a()()()),o&2){let e=u.$implicit;i(),T(e.gravatarUrl?1:2),i(4),d(e.name),i(2),d(e.email)}}function oe(o,u){if(o&1&&(s(0,"div",32),H(1,ie,8,3,"div",21,N().trackById,!0),l(3,"orderBy"),a()),o&2){let e=g(2);i(),R(I(3,0,e.lastEmails,G(3,qt)))}}function ae(o,u){o&1&&(s(0,"div",33),v(1,"app-preloader"),a())}function re(o,u){if(o&1&&(s(0,"div",35)(1,"div",49),p(2),a(),s(3,"div",50),p(4),a()()),o&2){let e=u.$implicit;i(2),d(e.name),i(2),d(e.count)}}function se(o,u){if(o&1){let e=U();s(0,"h2"),p(1),l(2,"translate"),a(),s(3,"app-card")(4,"div",7)(5,"div",8)(6,"h5"),p(7),l(8,"translate"),a(),s(9,"ng-select",9),l(10,"translate"),x("add",function(n){m(e);let r=g();return _(r.checkFilters(n))})("change",function(){m(e);let n=g();return n.removeSelection(),_(n.timeoutFiltering())}),w("ngModelChange",function(n){m(e);let r=g();
1return b(r.sitesIds,n)||(r.sitesIds=n),_(n)}),a()(),s(11,"div",8)(12,"h5"),p(13),l(14,"translate"),a(),s(15,"div",10)(16,"label",11)(17,"input",12),w("ngModelChange",function(n){m(e);let r=g();return b(r.periodType,n)||(r.periodType=n),_(n)}),x("ngModelChange",function(n){m(e);let r=g();return _(r.changePeriod(n))}),a(),p(18),l(19,"translate"),a(),s(20,"label",11)(21,"input",12),w("ngModelChange",function(n){m(e);let r=g();return b(r.periodType,n)||(r.periodType=n),_(n)}),x("ngModelChange",function(n){m(e);let r=g();return _(r.changePeriod(n))}),a(),p(22),l(23,"translate"),a(),s(24,"label",11)(25,"input",12),w("ngModelChange",function(n){m(e);let r=g();return b(r.periodType,n)||(r.periodType=n),_(n)}),x("ngModelChange",function(n){m(e);let r=g();return _(r.changePeriod(n))}),a(),p(26),l(27,"translate"),a(),s(28,"label",11)(29,"input",12),w("ngModelChange",function(n){m(e);let r=g();return b(r.periodType,n)||(r.periodType=n),_(n)}),x("ngModelChange",function(n){m(e);let r=g();return _(r.changePeriod(n))}),a(),p(30),l(31,"translate"),a(),et(32,Xt,18,11,"ng-template",null,0,lt),s(34,"button",13,1),p(36),l(37,"translate"),a()(),s(38,"p",14)(39,"span"),p(40),l(41,"translate"),a(),s(42,"span"),p(43),l(44,"date"),a(),s(45,"span"),p(46),l(47,"translate"),a(),s(48,"span"),p(49),l(50,"date"),a()()()()(),s(51,"h2"),p(52),l(53,"translate"),a(),s(54,"app-card")(55,"div",15)(56,"div",16),E(57,$t,2,0,"div",17),v(58,"canvas",18),a(),s(59,"div",19)(60,"div",20)(61,"div",21)(62,"div",22)(63,"h3"),p(64),a(),s(65,"small"),p(66),l(67,"translate"),a()(),s(68,"button",23),l(69,"translate"),x("click",function(){m(e);let n=g();return _(n.downloadCsv())}),v(70,"span",24),p(71),l(72,"translate"),a()(),s(73,"div",21)(74,"div",22)(75,"h3"),p(76),l(77,"number"),a(),s(78,"small"),p(79),l(80,"translate"),a()(),s(81,"button",23),l(82,"translate"),x("click",function(){m(e);let n=g();return _(n.downloadCsv(n.periodStart,n.getTomorrowCopyDate(n.periodEnd)))}),v(83,"span",24),p(84),l(85,"translate"),a()(),s(86,"div",21)(87,"div",22)(88,"h3"),p(89),l(90,"number"),a(),s(91,"small"),p(92),l(93,"translate"),a()()()(),s(94,"div",25)(95,"button",26),x("click",function(){m(e);let n=g();return _(n.clearStats())}),v(96,"span",27),p(97),l(98,"translate"),a()()()()(),s(99,"div",28)(100,"div",29)(101,"h2"),p(102),l(103,"translate"),a(),s(104,"app-card")(105,"div",30),E(106,te,3,3,"h5",31)(107,oe,4,4,"div",32),a()()(),s(108,"div",29)(109,"h2"),p(110),l(111,"translate"),a(),s(112,"app-card")(113,"div",30),E(114,ae,2,0,"div",33),s(115,"div",34)(116,"div"),p(117),l(118,"translate"),a(),s(119,"div"),p(120),l(121,"translate"),a()(),s(122,"div",32),H(123,re,5,2,"div",35,N().trackById,!0),l(125,"orderBy"),l(126,"slice"),a()()()()()}if(o&2){let e=at(33),t=g();i(),d(c(2,62,"reports.emails.config")),i(6),d(c(8,64,"sidebar.sites")),i(2),y("ngModel",t.sitesIds),O("items",t.allSites)("placeholder",c(10,66,"widgetsList.add.chooseSite")),i(4),d(c(14,68,"leads.page.filter.period")),i(3),B("active",t.periodType==="TODAY"),i(),y("ngModel",t.periodType),O("value","TODAY"),i(),C(" ",c(19,70,"reports.emails.period.today")," "),i(2),B("active",t.periodType==="YESTERDAY"),i(),y("ngModel",t.periodType),O("value","YESTERDAY"),i(),C(" ",c(23,72,"reports.emails.period.yesterday")," "),i(2),B("active",t.periodType==="WEEK"),i(),y("ngModel",t.periodType),O("value","WEEK"),i(),C(" ",c(27,74,"reports.emails.period.week")," "),i(2),B("active",t.periodType==="MONTH"),i(),y("ngModel",t.periodType),O("value","MONTH"),i(),C(" ",c(31,76,"reports.emails.period.month")," "),i(4),B("active",t.periodType==="USER"),O("placement",W(t.innerWidth<850?"bottom":"left"))("autoClose","outside")("ngbPopover",e),i(2),C(" ",c(37,78,"reports.emails.period.user")," "),i(4),d(c(41,80,"reports.emails.filter.from")),i(3),C("\xA0",I(44,82,t.periodStart,"d.MM.yyyy")),i(3),C("\xA0",c(47,85,"reports.emails.filter.to")),i(3),C("\xA0",I(50,87,t.periodEnd,"d.MM.yyyy")),i(3),d(c(53,90,"reports.emails.statistics")),i(5),T(t.isLoadingMain?57:-1),i(),O("datasets",t.datasets)("labels",t.labels)("options",t.options)("legend",!1),i(6),d(t.overallStats.allCount),i(2),d(c(67,92,"reports.emails.stat.overall")),i(2),O("title",W(c(69,94,"reports.emails.stat.download.tooltip"))),i(3),C(" ",c(72,96,"reports.emails.stat.download.btn")," "),i(5),d(I(77,98,t.overallStats.periodCount,"0.0")),i(3),d(c(80,101,"reports.emails.stat.period.title")),i(2),O("title",W(c(82,103,"reports.emails.stat.download.tooltip"))),i(3),C(" ",c(85,105,"reports.emails.stat.download.btn")," "),i(5),d(I(90,107,t.overallStats.periodAvg,"0.2")),i(3),d(c(93,110,"reports.emails.stat.period.avg")),i(5),C(" ",c(98,112,"reports.emails.remove.btn")," "),i(5),d(c(103,114,"reports.emails.last.title")),i(4),T(t.lastEmails.length===0?106:107),i(4),d(c(111,116,"reports.emails.best")),i(4),T(t.isLoadingBest?114:-1),i(3),d(c(118,118,"reports.emails.sites.sites")),i(3),d(c(121,120,"reports.emails.sites.value")),i(3),R(st(126,125,I(125,122,t.allSitesStats,G(129,Qt)),0,5))}}var Ht=(()=>{class o{constructor(){this.translate=M(Ot),this.toastr=M(Pt),this.orderBy=M(F),this.utilsService=M(Ft),this.sitesService=M(Wt),this.emailsService=M(zt),this.allSites=[],this.allSitesStats=[],this.lastEmails=[],this.sitesIds=[],this.periodType="WEEK",this.isLoadingMain=!0,this.isLoadingBest=!0,this.overallStats={allCount:0,periodCount:0,periodAvg:0},this.datasets=[],this.options={responsive:!0,maintainAspectRatio:!1,scales:{y:{beginAtZero:!0,ticks:{callback:e=>{if(e%1===0)return e}}}}},this.ALL_SITE_ID="0000000000000000",this.ONE_DAY=864e5}
1ngOnInit(){this.changePeriod(this.periodType),this.getSites(),this.getEmails(),this.innerWidth=window.innerWidth}ngAfterViewChecked(){$('[data-toggle="tooltip"]')?.tooltip({trigger:"hover"})}periodApply(){this.periodType="USER",this.popover.close(),this.changePeriod("USER")}changePeriod(e){e===k.TODAY?(this.periodStart=new Date,this.periodStart.setHours(0,0,0,0),this.periodEnd=new Date(this.getToday().getTime())):e===k.YESTERDAY?(this.periodEnd=new Date(this.getToday().getTime()-this.ONE_DAY),this.periodEnd.setHours(23,59,59,999),this.periodStart=new Date(this.getToday().getTime()-this.ONE_DAY)):e===k.WEEK?(this.periodStart=new Date(this.getToday().getTime()-7*this.ONE_DAY),this.periodEnd=new Date(this.getToday().getTime())):e===k.MONTH&&(this.periodStart=new Date(this.getToday().getTime()-30*this.ONE_DAY),this.periodEnd=new Date(this.getToday().getTime())),this.allSites&&this.allSites.length&&this.getBestSites(),this.timeoutFiltering()}checkFilters(e){e.id===this.ALL_SITE_ID?this.sitesIds=[this.ALL_SITE_ID]:this.sitesIds=this.sitesIds.filter(t=>t!==this.ALL_SITE_ID)}timeoutFiltering(){clearTimeout(this.filterTimeout),this.filterTimeout=setTimeout(()=>{let e=this.sitesIds;this.doReloadData(e)},50)}removeSelection(){this.sitesIds.length||(this.sitesIds=[this.ALL_SITE_ID])}clearStats(){Nt.default.fire({title:this.translate.instant("reports.emails.clear.title"),text:this.translate.instant("reports.emails.clear.text"),icon:"warning",showCancelButton:!0,confirmButtonColor:"#DD6B55",confirmButtonText:this.translate.instant("reports.emails.clear.yes"),cancelButtonText:this.translate.instant("global.no"),heightAuto:!1}).then(e=>{if(e.isConfirmed){let t=z({start:this.getISOTime(this.periodStart),end:this.getISOTime(this.getTomorrowCopyDate(this.periodEnd))},this.sitesIds.length&&this.sitesIds[0]!==this.ALL_SITE_ID&&{siteIds:this.sitesIds});this.emailsService.clearEmail(t).subscribe(n=>{n&&(this.timeoutFiltering(),this.getEmails(),this.getBestSites(),this.toastr.success(this.translate.instant("reports.emails.clear.done.desc"),this.translate.instant("global.done")))})}})}trackById(e,t){return t.id}downloadCsv(e,t,n=this.sitesIds){let r={siteIds:"",dateFrom:"",dateTo:""};n.length&&n[0]!==this.ALL_SITE_ID&&(r.siteIds=n.join(",")),e&&t&&(r.dateFrom=e.getTime(),r.dateTo=t.getTime()),this.emailsService.downloadEmailList(r).subscribe(f=>{if(f){let P=new Blob([f],{type:"text/csv;charset=UTF-8"}),h=document.createElement("a");h.style.display="none",h.href=window.URL.createObjectURL(P),h.download="email_subscribers.csv",document.body.appendChild(h),h.click()}})}getTomorrowCopyDate(e){let t=new Date(e.valueOf());return t.setDate(t.getDate()+1),t}onResize(e){this.innerWidth=e.target.innerWidth}getSites(){this.translate.get("leads.page.filter.sites").subscribe(e=>{this.allSites=[{id:this.ALL_SITE_ID,name:e}],this.sitesIds=[this.ALL_SITE_ID],this.sitesService.getSites().subscribe(t=>{this.allSites=this.allSites.concat(t),this.getBestSites()})})}getEmails(){this.lastEmails=[],this.emailsService.getEmailList({limit:5,orders:"-date"}).subscribe(e=>{e.length&&e.forEach(t=>{this.utilsService.useGravatarIfExists(t.email).subscribe(n=>{n&&(t.gravatarUrl=n)}).add(()=>this.lastEmails.push(t))})})}getToday(){return new Date(new Date().setHours(0,0,0,0))}getBestSites(){this.isLoadingBest=!0,this.allSitesStats=[];let e={start:this.getISOTime(this.periodStart),end:this.getISOTime(this.getTomorrowCopyDate(this.periodEnd))};this.emailsService.getEmailStatistic(e).subscribe(t=>{this.allSitesStats=this.allSites.slice(1).map(n=>({id:n.id,count:0,name:n.name})),t.forEach(n=>{for(let r in n.items)this.allSitesStats.forEach(f=>{f.id===r&&(f.count+=n.items[r])})}),this.isLoadingBest=!1})}doReloadData(e){let t={start:this.getISOTime(this.periodStart),end:this.getISOTime(this.getTomorrowCopyDate(this.periodEnd)),siteIds:""};e.length&&e[0]!==this.ALL_SITE_ID&&(t.siteIds=e.join(",")),this.getSiteEmailsCount(t.siteIds),this.getEmailStatistics(t)}getSiteEmailsCount(e){let t={siteId:""};e&&(t.siteId=e),this.emailsService.getEmailListCount(t).subscribe(n=>{this.overallStats.allCount=n})}getEmailStatistics(e){this.isLoadingMain=!0,this.emailsService.getEmailStatistic(e).subscribe(t=>{let n=[];t.forEach(r=>{let f=0;for(let P in r.items)f+=r.items[P];n.push({date:r.date,value:f})}),n=this.orderBy.transform(n,["date"]),this.reloadChart(n),this.isLoadingMain=!1})}reloadChart(e){let t=[],n=[],r=0;this.overallStats.periodCount=0,this.overallStats.periodAvg=0;let f=this.periodStart.getTime();for(;f<=this.periodEnd.getTime();){let P=new Date(f),h=this.getDDMMYYTime(P),S=this.getByDate(e,h),q=S!==null?S.value:0;t.push(h),n.push(q),r++,this.overallStats.periodCount+=q,f+=this.ONE_DAY}if(this.overallStats.periodAvg=this.overallStats.periodCount/r,r>40){let P={};for(let h=0;h<r;h++){let S=t[h].substring(t[h].indexOf(".")+1);P[S]===void 0&&(P[S]=0),P[S]=P[S]+n[h]}t=Object.keys(P),n=[],t.forEach(h=>{n.push(P[h])})}else if(t.length<7)for(;t.length<7;
1)t.unshift(""),t.push(""),n.unshift(0),n.push(0);this.labels=t,this.datasets=[z({data:n},this.setChartSettings("rgba(52,152,219, 1)"))]}getByDate(e,t){for(let n of e)if(this.getDDMMYYTime(n.date)===t)return n;return null}getISOTime(e){return(0,Q.default)(e).format("YYYY-MM-DD")}getDDMMYYTime(e){return(0,Q.default)(e).format("DD.MM.YY")}setChartSettings(e){return{pointBackgroundColor:e,borderColor:e,fill:!1}}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=tt({type:o,selectors:[["app-emails"]],viewQuery:function(t,n){if(t&1&&nt(Kt,5),t&2){let r;it(r=ot())&&(n.popover=r.first)}},hostBindings:function(t,n){t&1&&x("resize",function(f){return n.onResize(f)},X)},standalone:!1,decls:6,vars:5,consts:[["popContent",""],["p","ngbPopover"],[1,"page-title"],[1,"title-main"],[1,"col-lg-12","mt-5"],[1,"f-0","text-center"],[1,"f-2","text-center","underline-links","blue-links","hover-links",3,"innerHTML"],[1,"filters"],[1,"filter"],["appendTo","body","bindLabel","name","bindValue","id","id","siteSelector","multiple","true",3,"add","change","ngModelChange","ngModel","items","placeholder"],[1,"btn-group","btn-group-toggle","btn-group__period-selector"],[1,"btn","btn-default"],["type","radio","name","radioEmails",3,"ngModelChange","ngModel","value"],["container","body","id","periods-custom","type","button",1,"btn","btn-default",3,"autoClose","ngbPopover","placement"],[1,"request-period-name"],[1,"statistics-container"],[1,"reports-emails-chart"],[1,"reports-emails-preloader"],["baseChart","","type","line","id","line",3,"datasets","labels","options","legend"],[1,"reports-emails-stats"],[1,"list-item-container"],[1,"list-item"],[1,"stat"],["data-container","body","data-placement","top","data-toggle","tooltip",1,"btn","btn-default",3,"click","title"],["inlineSVG","/assets/images/core/download.svg"],[1,"clear-stats"],[1,"btn","btn-default",3,"click"],["inlineSVG","/assets/images/core/delete-icon.svg"],[1,"last-added"],[1,"app-card"],[1,"panel-body"],[1,"m-0","text-center"],[1,"list"],[1,"reports-emails-preloader","mt-2"],[1,"report-email-sites-sites-header"],[1,"report-email-sites-sites-row","list-item"],["id","custom-period-container-template"],[1,"d-flex","flex-column"],[1,"text-left"],[1,"control-label","m-0"],["id","req-period-start"],[3,"ngModelChange","ngModel"],[1,"text-left","mt-3"],["id","req-period-end"],[1,"text-right","mt-3"],["id","periodApply","type","button",1,"btn","w-xs","btn-success",3,"click"],[1,"report-email-last-logo","report-email-user-icon",3,"ngStyle"],[1,"report-email-last-logo"],["inlineSVG","/assets/images/core/user.svg"],[1,"report-email-sites-sites"],[1,"report-email-sites-values"]],template:function(t,n){t&1&&(s(0,"div",2)(1,"h1",3),p(2),l(3,"translate"),a()(),E(4,Jt,6,6,"div",4),E(5,se,127,130)),t&2&&(i(2),d(c(3,3,"sidebar.emails")),i(2),T(n.allSites.length<=1?4:-1),i(),T(n.allSites.length>1?5:-1))},dependencies:[pt,ht,Mt,Ct,ft,Tt,yt,Vt,Dt,Bt,kt,wt,gt,dt,ct,xt,F],styles:[".page-title[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:20px}.title-button[_ngcontent-%COMP%]{padding:20px 24px;border-radius:10px;display:flex;align-items:center;justify-content:space-between}.title-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-style:normal;font-weight:500;font-size:1.3rem;line-height:1.7rem}.title-button[_ngcontent-%COMP%] span.icon[_ngcontent-%COMP%]{width:26px;height:26px;margin-right:18px;position:relative}.title-button[_ngcontent-%COMP%] span.icon[_ngcontent-%COMP%] svg{width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}@media (max-width: 1919px){.title-button[_ngcontent-%COMP%]{padding:14px 18px}}@media (max-width: 1199px){.title-button[_ngcontent-%COMP%]{padding:16px 20px}.title-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.1rem;line-height:1.5rem}}@media (max-width: 991px){.title-button[_ngcontent-%COMP%]{padding:12px 16px}.title-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.2rem}.title-button[_ngcontent-%COMP%] span.icon[_ngcontent-%COMP%]{width:22px;height:22px}}@media (max-width: 767px){.title-button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{line-height:1rem}.title-button[_ngcontent-%COMP%] span.icon[_ngcontent-%COMP%]{width:18px;height:18px;margin-right:10px}}[_nghost-%COMP%] h2[_ngcontent-%COMP%]{margin-top:35px;margin-bottom:25px;font-style:normal;font-weight:400;font-size:1.3rem;line-height:1.7rem;color:#16181d}[_nghost-%COMP%] .filters[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;flex-wrap:nowrap;gap:10px;flex-basis:48%}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-style:normal;font-weight:600;font-size:1rem;line-height:1.2rem;margin:0;color:#16181d}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container{align-items:center;border-radius:4px;border:1px solid #D4D7DD;padding:4px}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container, [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-clear-wrapper, [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-arrow-wrapper{padding:0}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container{display:inline-flex;align-items:center;justify-content:flex-start;gap:5px}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-placeholder, [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-input{padding:3px 5px;font-style:normal;font-weight:400;font-size:1rem;line-height:1.2rem;color:#7e889a}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-value{display:flex;align-items:center;justify-content:flex-start;border:1px solid #D4D7DD;border-radius:4px;background-color:#fff;margin:0}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-value span{dis
1play:flex;height:100%;padding:7px;border:none;font-style:normal;font-weight:400;font-size:1rem;line-height:1.2rem;color:#7e889a}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-value .ng-value-icon{font-size:1.2rem;line-height:1.2rem;padding-left:10px;padding-right:4px}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-value .ng-value-icon:hover{background-color:#f4f4f6}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .ng-select[_ngcontent-%COMP%] .ng-select-container .ng-value-container .ng-value .ng-value-label{padding-left:4px;padding-right:10px}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%]{width:100%;flex-wrap:wrap}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%], [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{height:45px;padding:13px;font-style:normal;font-weight:600!important;font-size:1rem!important;line-height:1rem!important;color:#16181d}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:first-child, [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:first-child{border-radius:4px 0 0 4px}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-child{border-radius:0 4px 4px 0}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] label.btn.active[_ngcontent-%COMP%]:not(:disabled), [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] button.btn.active[_ngcontent-%COMP%]:not(:disabled){background:#4898a81a;border:1px solid #4898A8;color:#4898a8;box-shadow:none;z-index:2}[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{width:100%;margin:0;display:flex;align-items:center;justify-content:flex-end;font-style:normal;font-weight:400;font-size:.75rem;line-height:.9rem;color:#7e889a}@media (max-width: 1919px){[_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] label[_ngcontent-%COMP%], [_nghost-%COMP%] .filters[_ngcontent-%COMP%] .filter[_ngcontent-%COMP%] .btn-group__period-selector[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-bottom:5px}}@media (max-width: 1199px){[_nghost-%COMP%] .filters[_ngcontent-%COMP%]{flex-direction:column}}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-start;justify-content:flex-start;gap:60px}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-chart[_ngcontent-%COMP%]{position:relative;width:calc(100% - 450px);height:260px}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%]{width:450px;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:12px;padding:6px 14px;border-radius:5px;font-style:normal;font-weight:400!important;line-height:1.2rem;margin:0;color:#16181d}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] button[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:flex;width:28px;height:28px;position:relative}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] button[_ngcontent-%COMP%] span[_ngcontent-%COMP%] svg{width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover, [_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:focus{border-color:#7e889a}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] .list-item-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:12px}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] .list-item-container[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #D4D7DD;gap:20px}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] .list-item-container[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:last-child{border:none}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] .list-item-container[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .stat[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:2.4rem;line-height:2.8rem;color:#16181d;margin-bottom:5px}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] .list-item-container[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .stat[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{display:flex;font-style:normal;font-weight:500;font-size:.9rem;line-height:1rem;color:#a4a4a4;margin-bottom:10px}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%] .clear-stats[_ngcontent-%COMP%]{margin-top:35px;width:100%;display:flex;align-items:center;justify-content:flex-end}@media (max-width: 1199px){[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%]{flex-direction:column}[_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-chart[_ngcontent-%COMP%], [_nghost-%COMP%] .statistics-container[_ngcontent-%COMP%] .reports-emails-stats[_ngcontent-%COMP%]{width:100%;max-width:100%}}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:35px}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%]:first-child{width:37.06%;min-width:300px}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%]{width:100%;position:relative}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:2px}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]{padding:7px;width:100%;display:flex;align-items:center;justify-content:flex-start;gap:15px;border-bottom:1px solid #D4D7DD}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%]:last-child{border:none}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .report-email-last-logo[_ngcontent-%COMP%]{width:50px;min-width:50px;height:50px;min-height:50px;display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:#f4f4f6}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .report-email-last-logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:32px;height:32px;display:flex;position:relative}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .report-email-last-logo[_ngcontent-%COMP%] span[_ngcontent-%COMP%] svg{width:100%;height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] .report-email-user-icon[_ngcontent-%COMP%]{background-image:url(/assets/images/core/default-user-icon.png);background-repeat:no-repeat;background-size:contain}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font-style:normal;font-weight:400;font-size:.9rem;line-height:1.3rem;color:#16181d;word-break:break-word;margin:0}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .list-item[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]:first-child{font-weight:700}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;font-style:normal;font-weight:500;font-size:1rem;gap:20px;line-height:1.2rem;color:#16181d}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center;display:flex;align-items:center;justify-content:center;width:48%;word-break:break-word}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{justify-content:flex-start}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-row[_ngcontent-%COMP%]{padding:20px 20px 20px 0;font-style:normal;font-weight:400;font-size:.9rem;line-height:1.3rem;color:#16181d;display:flex;align-items:center;justify-content:space-between;gap:20px}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-row[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center;display:flex;align-items:center;justify-content:center;width:48%;word-break:break-word}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-row[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{justify-content:flex-start}@media (max-width: 991px){[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-header[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-child, [_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%] .panel-body[_ngcontent-%COMP%] .report-email-sites-sites-row[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:last-child{text-align:right;justify-content:flex-end}}@media (max-width: 1199px){[_nghost-%COMP%] .last-added[_ngcontent-%COMP%]{flex-direction:column;gap:0}[_nghost-%COMP%] .last-added[_ngcontent-%COMP%] .app-card[_ngcontent-%COMP%]:first-child{width:100%;min-width:100%}}[_nghost-%COMP%] .reports-emails-preloader[_ngcontent-%COMP%]{height:100%;width:100%;position:absolute;top:40%;z-index:999}"]})}}return o}
1)();var le=[{path:"",component:Ht,title:"sidebar.emails"}],Rt=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=j({type:o})}static{this.\u0275inj=V({imports:[K.forChild(le),K]})}}return o})();var fn=(()=>{class o{static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275mod=j({type:o})}static{this.\u0275inj=V({imports:[mt,ut,vt,It,bt,jt,At,Rt,St]})}}return o})();export{fn as EmailsModule};
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.