1"use strict";(self.webpackChunkSelfcareWebNew=self.webpackChunkSelfcareWebNew||[]).push([[674],{7674:(Z,y,c)=>{c.r(y),c.d(y,{ReportModule:()=>ye});var s=c(6895),T=c(3060),_=c(7579),C=c(6433);class R{constructor(a,n,t,i,r,p){this.reportType=a,this.codiceCliente=n,this.piva=t,this.pageNumber=i,this.dateFrom=r,this.dateTo=p}}var b=(()=>{return(o=b||(b={})).PERIODICO="PERIODICO",o.ON_DEMAND="ON_DEMAND",o.PERSONALIZZATI="PERSONALIZZATI",o.DOCUMENTI="DOCUMENTI",b;var o})(),e=c(4650),f=c(4578),v=c(4074),l=c(8628),m=c(762),g=c(8395),d=c(4548),u=c(4004),h=c(262),w=c(2843),U=c(529);let F=(()=>{const a=class{constructor(t,i){this.environment=t,this.http=i,this.basePath="/report"}getReportList(t){return this.http.post(`${this.environment.baseUrlApi}${this.basePath}/search`,t).pipe((0,u.U)(i=>i.data),(0,h.K)(i=>(0,w._)(i)))}getReport(t){return this.http.post(`${this.environment.baseUrlApi}${this.basePath}/get`,t).pipe((0,u.U)(i=>i.data),(0,h.K)(i=>(0,w._)(i)))}generateReport(t){return this.http.post(`${this.environment.baseUrlApi}${this.basePath}/generate`,t).pipe((0,u.U)(i=>i.data),(0,h.K)(i=>(0,w._)(i)))}downloadReport(t){return this.http.post(`${this.environment.baseUrlApi}${this.basePath}/download`,t,{responseType:"blob"})}};let o=a;return a.\u0275fac=function(i){return new(i||a)(e.LFG(d.p),e.LFG(U.eN))},a.\u0275prov=e.Yz7({token:a,factory:a.\u0275fac,providedIn:"root"}),o})();var M=c(7028),O=c(1208),D=c(4077),S=c(2671),N=c(2834),A=c(7086);function J(o,a){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"app-filter-tag",10),e.NdJ("filterRemoved",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.resetFilters())})("resetFilter",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.resetFilters())}),e.qZA(),e.BQk()}if(2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("sidebarConfig",n.sidebarConfig)("filterEvent",n.newFilterEvent)}}function k(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",11)(1,"div",12),e._uU(2),e.qZA(),e.TgZ(3,"div",13)(4,"button",14),e.NdJ("click",function(i){e.CHM(n);const r=e.oxw(2);return e.KtG(r.goBack(i))}),e.qZA(),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"button",15),e.NdJ("click",function(i){e.CHM(n);const r=e.oxw(2);return e.KtG(r.goForward(i))}),e.qZA()()()}if(2&o){const n=e.oxw(2);e.xp6(2),e.lnq("",n.fromNum,"-",n.periodicalReports.length<n.toNum?n.periodicalReports.length:n.toNum," di ",n.periodicalReports.length<n.totalRecords?n.periodicalReports.length:n.totalRecords,""),e.xp6(2),e.Q6J("disabled",1===n.currentPage),e.xp6(2),e.AsE("Pag ",n.currentPage," di ",n.totalPages,""),e.xp6(1),e.Q6J("disabled",n.currentPage===n.totalPages)}}function Y(o,a){if(1&o&&(e.TgZ(0,"div",7)(1,"div",8),e.YNc(2,J,2,2,"ng-container",5),e.qZA(),e.YNc(3,k,8,7,"div",9),e.qZA()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.showFilterTag),e.xp6(1),e.Q6J("ngIf",n.periodicalReports.length>0)}}function Q(o,a){if(1&o&&e._UZ(0,"app-dropdown-table",18),2&o){e.oxw();const n=e.MAs(3),t=e.oxw();e.Q6J("data",t.reportDataTable)("selectable",!1)("flexColumns",t.flexColumns)("truncatedDescriptionColumns",t.truncatedDescriptionColumns)("extraElement",n)}}function B(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",19)(1,"span",20),e.NdJ("click",function(){const r=e.CHM(n).data,p=e.oxw(2);return e.KtG(p.getReport(r))}),e._UZ(2,"img",21),e.qZA()()}}function L(o,a){if(1&o&&(e.ynx(0),e.YNc(1,Q,1,5,"app-dropdown-table",16),e.YNc(2,B,3,0,"ng-template",null,17,e.W1O),e.BQk()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.reportDataTable)}}function z(o,a){if(1&o&&e._UZ(0,"app-error-message",22),2&o){const n=e.oxw();e.Q6J("type",n.errorMessageType)}}function $(o,a){1&o&&e._UZ(0,"app-data-loader")}let q=(()=>{const a=class{constructor(t,i,r,p,x,P,I){this.spinnerService=t,this.tableHelper=i,this.sidebarService=r,this.filterService=p,this.userUtils=x,this.reportListingService=P,this.dialogService=I,this.periodicalReports=[],this.canLoadMore=!0,this.flexColumns=[0],this.truncatedDescriptionColumns=[0],this.displayErrorMessage=!1,this.errorMessageType="empty",this.isLoading=!1,this.offset=30,this.fromNum=1,this.toNum=this.offset,this.currentPage=1,this._destroy$=new _.x,this.showFilterTag=!0,this.newFilterEvent={},this.totalRecords=0,this.totalPages=0,this.downloadUrl="",this.downloadPin="",this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.sidebarService.setSidebarConfiguration(this.filterService.getPeriodicalAndCustomReportFilters(this.sidebarConfig))}ngOnInit(){this.filterService.filterEvent$.subscribe(t=>{t?(this.dateFrom=this.formatDateInput(t.startInvoice),this.dateTo=this.formatDateInput(t.endInvoice),this.newFilterEvent=t):(this.dateFrom="",this.dateTo="",this.newFilterEvent={}),this.fetchPeriodicalReports()}),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}formatDateInput(t){return t?t instanceof Date?`${t.getFullYear()}
1-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`:"string"==typeof t?t.split("T")[0]:"":""}fetchPeriodicalReports(){this.spinnerService.enable();const t=this.createFetchPeriodicalReportRequestBody();this.reportListingService.getReportList(t).subscribe({next:i=>{if(!i||!i.reports||0===i.reports.length)return this.displayErrorMessage=!0,this.errorMessageType="empty",void this.spinnerService.disable();this.displayErrorMessage=!1,this.periodicalReports=i.reports,this.totalPages=i.totalPages,this.totalRecords=i.totalRecords,this.periodicalReports.forEach(r=>{r.dataRiferimento=this.formatDate(r.dataRiferimento),r.dataInizioPeriodo=this.formatDate(r.dataInizioPeriodo),r.dataFinePeriodo=this.formatDate(r.dataFinePeriodo)}),this.mapTableData(),this.spinnerService.disable()},error:i=>{this.displayErrorMessage=!0,this.errorMessageType="error",this.spinnerService.disable()}})}createFetchPeriodicalReportRequestBody(){return new R(b.PERIODICO,this.userUtils.getClientCode()||"",this.userUtils.getPiva()||"",this.currentPage,this.dateFrom,this.dateTo)}formatDate(t){if(t&&8===t.length){const i=t.substring(0,4),r=t.substring(4,6);return`${t.substring(6,8)}/${r}/${i}`}return t}mapTableData(){this.reportDataTable=this.tableHelper.createDropdownTableData(C.y.PERIODICALREPORT,this.periodicalReports)}getReport(t){this.spinnerService.enable(),this.reportListingService.getReport({reportId:t.id}).subscribe({next:r=>{r.url&&""!==r.url&&r.pin&&""!==r.pin?(this.downloadUrl=r.url,this.downloadPin=r.pin,this.spinnerService.disable(),this.dialogService.open({title:"Documento protetto",message:"Per garantire la sicurezza dei dati aziendali il file \xe8 protetto. Salva il pin seguente e utilizzalo per aprire il file.",confirmText:"CONFERMA",confirmOnly:!0,logo:!0,logoType:"info",pin:this.downloadPin,copyIcon:"assets/images/copy.svg",hasEscape:!1}),this.dialogService.confirmed().subscribe(p=>{p&&this.downloadUrl&&""!==this.downloadUrl&&(window.location.href=this.downloadUrl)})):(this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}))},error:r=>{this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}})}resetFilters(){this.offset=30,this.fromNum=1,this.toNum=this.offset,this.currentPage=1,this.dateFrom="",this.dateTo="",this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.sidebarService.setSidebarConfiguration(this.filterService.getPeriodicalAndCustomReportFilters(this.sidebarConfig)),this.fetchPeriodicalReports()}goForward(t){this.fromNum=this.fromNum+this.offset,this.toNum=this.toNum+this.offset,this.toNum>this.totalRecords&&(this.toNum=this.totalRecords),this.currentPage=this.currentPage+1,this.fetchPeriodicalReports()}goBack(t){this.fromNum=this.fromNum-this.offset,this.toNum=this.toNum-this.offset,this.toNum<1&&(this.toNum=1),this.currentPage=this.currentPage-1,this.fetchPeriodicalReports()}ngOnDestroy(){this.spinnerService.disable(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.sidebarService.resetSidebarConfiguration(),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.unsubscribe()}};let o=a;return a.\u0275fac=function(i){return new(i||a)(e.Y36(f.V),e.Y36(v.S),e.Y36(l.P),e.Y36(m.i),e.Y36(g.r),e.Y36(F),e.Y36(M.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-periodical-report"]],decls:11,vars:4,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],["class","topTable-container",4,"ngIf"],[4,"ngIf"],[3,"type",4,"ngIf"],[1,"topTable-container"],[1,"filtersBox"],["class","paginationBox",4,"ngIf"],[3,"sidebarConfig","filterEvent","filterRemoved","resetFilter"],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],["class","periodicalReportDataTable",3,"data","selectable","flexColumns","truncatedDescriptionColumns","extraElement",4,"ngIf"],["extraElem",""],[1,"periodicalReportDataTable",3,"data","selectable","flexColumns","truncatedDescriptionColumns","extraElement"],[1,"cell-table","extra","extraActions"],["alt","Download",3,"click"],["src","assets/images/menu/ico_download_circle.svg","alt","Download"],[3,"type"]],template:function(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"PERIODICI"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione \xe8 possibile scaricare i report generati con cadenza periodica."),e.qZA()(),e.YNc(7,Y,4,2,"div",4),e.YNc(8,L,4,1,"ng-container",5),e.qZA(),e.YNc(9,z,1,1,"app-error-message",6),e.YNc(10,$,1,0,"app-data-loader",5)),2&i&&(e.xp6(7),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.isLoading))},dependencies:[s.O5,O.a,D.H,S.G,N.n,A.u],styles:['.topTable-container[_ngcontent-%COMP%]{margin-top:1rem}.extra[_ngcontent-%COMP%]{justify-content:end!important;max-width:14rem}.extraActions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;background-position:center!important;background-size:contain!important;display:inline-block;content:"";min-width:24px;height:24px;vertical-align:middle}.extraActions[_ngcontent-%COMP%] span.dashboard_edit_single[_ngcontent-%COMP%]{margin-right:3rem}.extraActions[_ngcontent-%COMP%] span.dashboard_edit_single[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:3rem}.extraActions[_ngcontent-%COMP%] span.dashboard_delete_single[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:2.5rem}.extraActions[_ngcontent-%COMP%] span.single_action_disabled[_ngcontent-%COMP%]{opacity:.4;cursor:default}.disableOb[_ngcontent-%COMP%]{pointer-events:none;cursor:default;opacity:.4}.main-pages-content-header[_ngcontent-%COMP%]{padding-bottom:2rem!important}[_nghost-%COMP%] .periodicalReportDataTable .serviceMenu{max-width:14rem!important}.toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#303030}']}),o})();var E=c(2722),G=c(8398),H=c(6456),K=c(6471),W=c(3197);function j(o,a){if(1&o&&e._UZ(0,"app-dropdown-table",8),2&o){e.oxw();const n=e.MAs(3),t=e.oxw();e.Q6J("data",t.reportDataTable)("selectable",!1)("flexColumns",t.flexColumns)("extraElement",n)}}const V=function(o,a){return{darkGrey:o,"darkGrey-secondary":a}};function X(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",11)(1,"button",12),e.NdJ("click",function(){e.CHM(n);const i=e.oxw().data,r=e.oxw(2);return e.KtG(r.executeCtaAction(i))}),e._uU(2),e.ALo(3,"uppercase"),e.qZA()()}if(2&o){const n=e.oxw().data;e.xp6(1),e.Q6J("ngClass",e.WLB(4,V,"Scarica"===n.ctaLabel,"Genera"===n.ctaLabel)),e.xp6(1),e.hij(" ",e.lcZ(3,2,n.ctaLabel)," ")}}function ee(o,a){if(1&o&&(e.TgZ(0,"div",9),e.YNc(1,X,4,7,"div",10),e.qZA()),2&o){const n=a.data;e.xp6(1),e.Q6J("ngIf",n.ctaLabel&&n.action)}}function te(o,a){if(1&o&&(e.ynx(0),e.YNc(1,j,1,4,"app-dropdown-table",6),e.YNc(2,ee,2,1,"ng-template",null,7,e.W1O),e.BQk()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.reportDataTable)}}function ie(o,a){if(1&o&&e._UZ(0,"app-error-message",13),2&o){const n=e.oxw();e.Q6J("type",n.errorMessageType)}}function oe(o,a){1&o&&e._UZ(0,"app-data-loader")}function re(o,a){if(1&o){const n=e.EpF();e.ynx(0),e.TgZ(1,"app-filter-tag",10),e.NdJ("filterRemoved",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.resetFilters())})("resetFilter",function(){e.CHM(n);const i=e.oxw(2);return e.KtG(i.resetFilters())}),e.qZA(),e.BQk()}if(2&o){const n=e.oxw(2);e.xp6(1),e.Q6J("sidebarConfig",n.sidebarConfig)("filterEvent",n.newFilterEvent)}}function se(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",11)(1,"div",12),e._uU(2),e.qZA(),e.TgZ(3,"div",13)(4,"button",14),e.NdJ("click",function(i){e.CHM(n);const r=e.oxw(2);return e.KtG(r.goBack(i))}),e.qZA(),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"button",15),e.NdJ("click",function(i){e.CHM(n);const r=e.oxw(2);return e.KtG(r.goForward(i))}),e.qZA()()()}if(2&o){const n=e.oxw(2);e.xp6(2),e.lnq("",n.fromNum,"-",n.customReports.length<n.toNum?n.customReports.length:n.toNum," di ",n.customReports.length<n.totalRecords?n.customReports.length:n.totalRecords,""),e.xp6(2),e.Q6J("disabled",1===n.currentPage),e.xp6(2),e.AsE("Pag ",n.currentPage," di ",n.totalPages,""),e.xp6(1),e.Q6J("disabled",n.currentPage===n.totalPages)}}function ae(o,a){if(1&o&&(e.TgZ(0,"div",7)(1,"div",8),e.YNc(2,re,2,2,"ng-container",5),e.qZA(),e.YNc(3,se,8,7,"div",9),e.qZA()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.showFilterTag),e.xp6(1),e.Q6J("ngIf",n.customReports.length>0)}}function ce(o,a){if(1&o&&e._UZ(0,"app-dropdown-table",18),2&o){e.oxw();const n=e.MAs(3),t=e.oxw();e.Q6J("data",t.reportDataTable)("selectable",!1)("flexColumns",t.flexColumns)("truncatedDescriptionColumns",t.truncatedDescriptionColumns)("extraElement",n)}}function le(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",19)(1,"span",20),e.NdJ("click",function(){const r=e.CHM(n).data,p=e.oxw(2);return e.KtG(p.getReport(r))}),e._UZ(2,"img",21),e.qZA()()}}function pe(o,a){if(1&o&&(e.ynx(0),e.YNc(1,ce,1,5,"app-dropdown-table",16),e.YNc(2,le,3,0,"ng-template",null,17,e.W1O),e.BQk()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.reportDataTable)}}function de(o,a){if(1&o&&e._UZ(0,"app-error-message",22),2&o){const n=e.oxw();e.Q6J("type",n.errorMessageType)}}function ge(o,a){1&o&&e._UZ(0,"app-data-loader")}function ue(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",10)(1,"div",11),e._uU(2),e.qZA(),e.TgZ(3,"div",12)(4,"button",13),e.NdJ("click",function(i){e.CHM(n);const r=e.oxw(2);return e.KtG(r.goBack(i))}),e.qZA(),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"button",14),e.NdJ("click",function(i){e.CHM(n);const r=e.oxw(2);return e.KtG(r.goForward(i))}),e.qZA()()()}if(2&o){const n=e.oxw(2);e.xp6(2),e.lnq("",n.fromNum,"-",n.documentReports.length<n.toNum?n.documentReports.length:n.toNum," di ",n.documentReports.length<n.totalRecords?n.documentReports.length:n.totalRecords,""),e.xp6(2),e.Q6J("disabled",1===n.currentPage),e.xp6(2),e.AsE("Pag ",n.currentPage," di ",n.totalPages,""),e.xp6(1),e.Q6J("disabled",n.currentPage===n.totalPages)}}function he(o,a){if(1&o&&(e.TgZ(0,"div",7),e._UZ(1,"div",8),e.YNc(2,ue,8,7,"div",9),e.qZA()),2&o){const n=e.oxw();e.xp6(2),e.Q6J("ngIf",n.documentReports.length>0)}}function fe(o,a){if(1&o&&e._UZ(0,"app-dropdown-table",17),2&o){e.oxw();const n=e.MAs(3),t=e.oxw();e.Q6J("data",t.documentReportDataTable)("selectable",!1)("flexColumns",t.flexColumns)("extraElement",n)}}function _e(o,a){if(1&o){const n=e.EpF();e.TgZ(0,"div",18)(1,"span",19),e.NdJ("click",function(){const r=e.CHM(n).data,p=e.oxw(2);return e.KtG(p.getReport(r))}),e._UZ(2,"img",20),e.qZA()()}}function be(o,a){if(1&o&&(e.ynx(0),e.YNc(1,fe,1,4,"app-dropdown-table",15),e.YNc(2,_e,3,0,"ng-template",null,16,e.W1O),e.BQk()),2&o){const n=e.oxw();e.xp6(1),e.Q6J("ngIf",n.documentReportDataTable)}}function ve(o,a){if(1&o&&e._UZ(0,"app-error-message",21),2&o){const n=e.oxw();e.Q6J("type",n.errorMessageType)}}function xe(o,a){1&o&&e._UZ(0,"app-data-loader")}const Ce=[{path:"",pathMatch:"full",redirectTo:"periodici"},{path:"tipologie/report-periodici",component:q},{path:"tipologie/report-on-demand",component:(()=>{const a=class{constructor(t,i,r,p){this.tableHelper=t,this.sidebarService=i,this.dialogService=r,this.consitencyReportService=p,this.reportTabsConfig=[{label:"Linee mobili in abbonamento",requestType:"topMobile",icon:"icon-abbonamento",typeDescription:"Consistenza"},{label:"Linee mobili ricaricabili",requestType:"topMobileRic",icon:"icon-mobile",typeDescription:"Consistenza"},{label:"Dispositivi",requestType:"topCp3",icon:"icon-dispositivi",typeDescription:"Consistenza"}],this.canLoadMore=!0,this.flexColumns=[1],this.displayErrorMessage=!1,this.errorMessageType="empty",this.isLoading=!1,this._destroy$=new _.x,this._unsubscribeSignal$=new _.x,this.sidebarConfig=this.sidebarService.getRechargeOnlyConfiguration(),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}ngOnInit(){this.getConsistencyTabsReportState(),this.mapTableData(),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}getConsistencyTabsReportState(){this.reportTabsConfig.forEach(t=>{this.verifyReportState(t)})}verifyReportState(t){t.isLoading=!0;const i=new G.C(t.requestType);this.consitencyReportService.verifyReportState(i).pipe((0,E.R)(this._destroy$)).subscribe({next:r=>{switch(t.isLoading=!1,r.status){case"idle":t.ctaLabel="Genera",t.action=this.generateReport;break;case"processing":t.ctaLabel="Riprova",t.action=this.verifyReportState;break;case"ready":t.ctaLabel="Scarica",t.action=this.downloadReport;break;default:this.handleError(t)}},error:()=>this.handleError(t)})}mapTableData(){this.reportDataTable=this.tableHelper.createDropdownTableData(C.y.ONDEMANDREPORT,this.reportTabsConfig)}
1downloadReport(t){const i=new K.O(t.requestType);this.consitencyReportService.downloadReport(i).pipe((0,E.R)(this._destroy$)).subscribe({next:r=>{const p=new Blob([r],{type:"application/vnd.ms-excel"}),x=document.createElement("a");x.href=window.URL.createObjectURL(p),x.download="export.xlsx",x.click()},error:()=>{this.handleError(t)}})}generateReport(t){this.dialogService.open({title:"Generazione in corso",message:'Questa operazione potrebbe richiedere qualche istante, non abbandonare la pagina. \n Al termine dell\'elaborazione sar\xe0 possibile prelevare il file cliccando su "Scarica" \n Il file sar\xe0 disponibile per le prossime 6 ore.',cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"info"});const i=new H.P(t.requestType);this.consitencyReportService.generateReport(i).pipe((0,E.R)(this._destroy$)).subscribe({next:r=>{t.isLoading=!1,r.reportGenerated?(this.dialogService.close(),t.action=this.downloadReport,t.ctaLabel="Scarica"):(this.dialogService.close(),this.dialogService.open({title:"Attenzione",message:'Si \xe8 verificato un problema nell\'elaborazione del report. \n \xc8 possibile riprovare cliccando su "Genera".',cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}))},error:()=>this.handleError(t)})}handleError(t){t.isLoading=!1}executeCtaAction(t){t.action?.call(this,t)}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let o=a;return a.\u0275fac=function(i){return new(i||a)(e.Y36(v.S),e.Y36(l.P),e.Y36(M.D),e.Y36(W.z))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-ondemand-report"]],decls:10,vars:3,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[4,"ngIf"],[3,"type",4,"ngIf"],["class","onDemandDataTable",3,"data","selectable","flexColumns","extraElement",4,"ngIf"],["extraElem",""],[1,"onDemandDataTable",3,"data","selectable","flexColumns","extraElement"],[1,"cell-table","extra","extraActions"],["class","buttonWrapper center",4,"ngIf"],[1,"buttonWrapper","center"],[1,"cta","on-demand-button",3,"ngClass","click"],[3,"type"]],template:function(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"ON DEMAND"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione puoi generare report sulle tue linee e dispositivi aggiornati al momento della richiesta."),e.qZA()(),e.YNc(7,te,4,1,"ng-container",4),e.qZA(),e.YNc(8,ie,1,1,"app-error-message",5),e.YNc(9,oe,1,0,"app-data-loader",4)),2&i&&(e.xp6(7),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.isLoading))},dependencies:[s.mk,s.O5,O.a,D.H,S.G,N.n,s.gd],styles:["[_nghost-%COMP%] .onDemandDataTable .serviceMenu{max-width:none!important}.buttonWrapper[_ngcontent-%COMP%]{margin:0!important}.extra[_ngcontent-%COMP%]{justify-content:flex-end!important}.on-demand-button[_ngcontent-%COMP%]{margin-left:auto;padding:8px 4px}"]}),o})()},{path:"tipologie/report-personalizzati",component:(()=>{const a=class{constructor(t,i,r,p,x,P,I){this.spinnerService=t,this.tableHelper=i,this.sidebarService=r,this.filterService=p,this.reportListingService=x,this.userUtils=P,this.dialogService=I,this.customReports=[],this.canLoadMore=!0,this.flexColumns=[0],this.truncatedDescriptionColumns=[0],this.displayErrorMessage=!1,this.errorMessageType="empty",this.isLoading=!1,this.offset=30,this.fromNum=1,this.toNum=this.offset,this.currentPage=1,this._destroy$=new _.x,this.showFilterTag=!0,this.newFilterEvent={},this.totalRecords=0,this.totalPages=0,this.downloadUrl="",this.downloadPin="",this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.sidebarService.setSidebarConfiguration(this.filterService.getPeriodicalAndCustomReportFilters(this.sidebarConfig))}ngOnInit(){this.filterService.filterEvent$.subscribe(t=>{t?(this.dateFrom=this.formatDateInput(t.startInvoice),this.dateTo=this.formatDateInput(t.endInvoice),this.newFilterEvent=t):(this.dateFrom="",this.dateTo="",this.newFilterEvent={}),this.fetchCustomReports()}),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}formatDateInput(t){return t?t instanceof Date?`${t.getFullYear()}
1-${String(t.getMonth()+1).padStart(2,"0")}-${String(t.getDate()).padStart(2,"0")}`:"string"==typeof t?t.split("T")[0]:"":""}fetchCustomReports(){this.spinnerService.enable();const t=this.createFetchCustomReportRequestBody();this.reportListingService.getReportList(t).subscribe({next:i=>{if(!i||!i.reports||0===i.reports.length)return this.displayErrorMessage=!0,this.errorMessageType="empty",void this.spinnerService.disable();this.displayErrorMessage=!1,this.customReports=i.reports,this.totalPages=i.totalPages,this.totalRecords=i.totalRecords,this.customReports.forEach(r=>{r.dataRiferimento=this.formatDate(r.dataRiferimento),r.dataInizioPeriodo=this.formatDate(r.dataInizioPeriodo),r.dataFinePeriodo=this.formatDate(r.dataFinePeriodo)}),this.mapTableData(),this.spinnerService.disable()},error:i=>{this.displayErrorMessage=!0,this.errorMessageType="error",this.spinnerService.disable()}})}createFetchCustomReportRequestBody(){return new R(b.PERSONALIZZATI,this.userUtils.getClientCode()||"",this.userUtils.getPiva()||"",this.currentPage,this.dateFrom,this.dateTo)}formatDate(t){if(t&&8===t.length){const i=t.substring(0,4),r=t.substring(4,6);return`${t.substring(6,8)}/${r}/${i}`}return t}mapTableData(){this.reportDataTable=this.tableHelper.createDropdownTableData(C.y.CUSTOMREPORT,this.customReports)}getReport(t){this.spinnerService.enable(),this.reportListingService.getReport({reportId:t.id}).subscribe({next:r=>{r.url&&""!==r.url&&r.pin&&""!==r.pin?(this.downloadUrl=r.url,this.downloadPin=r.pin,this.spinnerService.disable(),this.dialogService.open({title:"Documento protetto",message:"Per garantire la sicurezza dei dati aziendali il file \xe8 protetto. Salva il pin seguente e utilizzalo per aprire il file.",confirmText:"CONFERMA",confirmOnly:!0,logo:!0,logoType:"info",pin:this.downloadPin,copyIcon:"assets/images/copy.svg",hasEscape:!1}),this.dialogService.confirmed().subscribe(p=>{p&&this.downloadUrl&&""!==this.downloadUrl&&(window.location.href=this.downloadUrl)})):(this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}))},error:r=>{this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}})}resetFilters(){this.offset=30,this.fromNum=1,this.toNum=this.offset,this.currentPage=1,this.dateFrom="",this.dateTo="",this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.sidebarService.setSidebarConfiguration(this.filterService.getPeriodicalAndCustomReportFilters(this.sidebarConfig)),this.fetchCustomReports()}goForward(t){this.fromNum=this.fromNum+this.offset,this.toNum=this.toNum+this.offset,this.toNum>this.totalRecords&&(this.toNum=this.totalRecords),this.currentPage=this.currentPage+1,this.fetchCustomReports()}goBack(t){this.fromNum=this.fromNum-this.offset,this.toNum=this.toNum-this.offset,this.toNum<1&&(this.toNum=1),this.currentPage=this.currentPage-1,this.fetchCustomReports()}ngOnDestroy(){this.spinnerService.disable(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.sidebarService.resetSidebarConfiguration(),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.unsubscribe()}};let o=a;return a.\u0275fac=function(i){return new(i||a)(e.Y36(f.V),e.Y36(v.S),e.Y36(l.P),e.Y36(m.i),e.Y36(F),e.Y36(g.r),e.Y36(M.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-custom-report"]],decls:11,vars:4,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],["class","topTable-container",4,"ngIf"],[4,"ngIf"],[3,"type",4,"ngIf"],[1,"topTable-container"],[1,"filtersBox"],["class","paginationBox",4,"ngIf"],[3,"sidebarConfig","filterEvent","filterRemoved","resetFilter"],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],["class","customReportDataTable",3,"data","selectable","flexColumns","truncatedDescriptionColumns","extraElement",4,"ngIf"],["extraElem",""],[1,"customReportDataTable",3,"data","selectable","flexColumns","truncatedDescriptionColumns","extraElement"],[1,"cell-table","extra","extraActions"],["alt","Download",3,"click"],["src","assets/images/menu/ico_download_circle.svg","alt","Download"],[3,"type"]],template:function(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"PERSONALIZZATI"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione \xe8 possibile scaricare i report generati in base alle esigenze specifiche della tua azienda."),e.qZA()(),e.YNc(7,ae,4,2,"div",4),e.YNc(8,pe,4,1,"ng-container",5),e.qZA(),e.YNc(9,de,1,1,"app-error-message",6),e.YNc(10,ge,1,0,"app-data-loader",5)),2&i&&(e.xp6(7),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.isLoading))},dependencies:[s.O5,O.a,D.H,S.G,N.n,A.u],styles:['.topTable-container[_ngcontent-%COMP%]{margin-top:1rem}.extra[_ngcontent-%COMP%]{justify-content:end!important;max-width:14rem}.extraActions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;background-position:center!important;background-size:contain!important;display:inline-block;content:"";min-width:24px;height:24px;vertical-align:middle}.extraActions[_ngcontent-%COMP%] span.dashboard_edit_single[_ngcontent-%COMP%]{margin-right:3rem}.extraActions[_ngcontent-%COMP%] span.dashboard_edit_single[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:3rem}.extraActions[_ngcontent-%COMP%] span.dashboard_delete_single[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:2.5rem}.extraActions[_ngcontent-%COMP%] span.single_action_disabled[_ngcontent-%COMP%]{opacity:.4;cursor:default}.disableOb[_ngcontent-%COMP%]{pointer-events:none;cursor:default;opacity:.4}.main-pages-content-header[_ngcontent-%COMP%]{padding-bottom:2rem!important}[_nghost-%COMP%] .customReportDataTable .serviceMenu{max-width:14rem!important}.toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#303030}']}),o})()},{path:"utility/documenti",component:(()=>{const a=class{constructor(t,i,r,p,x,P){this.spinnerService=t,this.tableHelper=i,this.sidebarService=r,this.reportListingService=p,this.userUtils=x,this.dialogService=P,this.documentReports=[],this.canLoadMore=!0,this.flexColumns=[0],this.displayErrorMessage=!1,this.errorMessageType="empty",this.isLoading=!1,this.offset=30,this.fromNum=1,this.toNum=this.offset,this.currentPage=1,this._destroy$=new _.x,this.totalRecords=0,this.totalPages=0,this.downloadUrl="",this.downloadPin="",this.sidebarConfig=this.sidebarService.getRechargeOnlyConfiguration(),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}ngOnInit(){this.fetchDocumentReports(),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}fetchDocumentReports(){this.spinnerService.enable();const t=this.createFetchDocumentReportRequestBody();this.reportListingService.getReportList(t).subscribe({next:i=>{if(!i||!i.reports||0===i.reports.length)return this.displayErrorMessage=!0,this.errorMessageType="empty",void this.spinnerService.disable();
1this.documentReports=i.reports,this.documentReports.forEach(r=>{r.dataRiferimento=this.formatDate(r.dataRiferimento),r.dataInizioPeriodo=this.formatDate(r.dataInizioPeriodo),r.dataFinePeriodo=this.formatDate(r.dataFinePeriodo)}),this.totalPages=i.totalPages,this.totalRecords=i.totalRecords,this.mapTableData(),this.spinnerService.disable()},error:i=>{this.displayErrorMessage=!0,this.errorMessageType="error",this.spinnerService.disable()}})}createFetchDocumentReportRequestBody(){return new R(b.DOCUMENTI,this.userUtils.getClientCode()||"",this.userUtils.getPiva()||"")}mapTableData(){this.documentReportDataTable=this.tableHelper.createDropdownTableData(C.y.DOCUMENTREPORT,this.documentReports)}formatDate(t){if(t&&8===t.length){const i=t.substring(0,4),r=t.substring(4,6);return`${t.substring(6,8)}/${r}/${i}`}return t}getReport(t){this.spinnerService.enable(),this.reportListingService.getReport({reportId:t.id}).subscribe({next:r=>{r.url&&""!==r.url&&r.pin&&""!==r.pin?(this.downloadUrl=r.url,this.downloadPin=r.pin,this.spinnerService.disable(),this.dialogService.open({title:"Documento protetto",message:"Per garantire la sicurezza dei dati aziendali il file \xe8 protetto. Salva il pin seguente e utilizzalo per aprire il file.",confirmText:"CONFERMA",confirmOnly:!0,logo:!0,logoType:"info",pin:this.downloadPin,copyIcon:"assets/images/copy.svg",hasEscape:!1}),this.dialogService.confirmed().subscribe(p=>{p&&this.downloadUrl&&""!==this.downloadUrl&&(window.location.href=this.downloadUrl)})):(this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}))},error:r=>{this.spinnerService.disable(),this.dialogService.open({title:"Errore nel download",message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}})}goForward(t){this.fromNum=this.fromNum+this.offset,this.toNum=this.toNum+this.offset,this.toNum>this.totalRecords&&(this.toNum=this.totalRecords),this.currentPage=this.currentPage+1,this.fetchDocumentReports()}goBack(t){this.fromNum=this.fromNum-this.offset,this.toNum=this.toNum-this.offset,this.toNum<1&&(this.toNum=1),this.currentPage=this.currentPage-1,this.fetchDocumentReports()}};let o=a;return a.\u0275fac=function(i){return new(i||a)(e.Y36(f.V),e.Y36(v.S),e.Y36(l.P),e.Y36(F),e.Y36(g.r),e.Y36(M.D))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-documents-report"]],decls:11,vars:4,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],["class","topTable-container",4,"ngIf"],[4,"ngIf"],[3,"type",4,"ngIf"],[1,"topTable-container"],[1,"filtersBox"],["class","paginationBox",4,"ngIf"],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],["class","documentReportDataTable",3,"data","selectable","flexColumns","extraElement",4,"ngIf"],["extraElem",""],[1,"documentReportDataTable",3,"data","selectable","flexColumns","extraElement"],[1,"cell-table","extra","extraActions"],["alt","Download",3,"click"],["src","assets/images/menu/ico_download_circle.svg","alt","Download"],[3,"type"]],template:function(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"DOCUMENTI"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione \xe8 possibile scaricare la documentazione fornita dal Servizio Clienti WINDTRE Business."),e.qZA()(),e.YNc(7,he,3,1,"div",4),e.YNc(8,be,4,1,"ng-container",5),e.qZA(),e.YNc(9,ve,1,1,"app-error-message",6),e.YNc(10,xe,1,0,"app-data-loader",5)),2&i&&(e.xp6(7),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.isLoading))},dependencies:[s.O5,O.a,D.H,S.G,N.n],styles:['.topTable-container[_ngcontent-%COMP%]{margin-top:1rem}.extra[_ngcontent-%COMP%]{justify-content:end!important;max-width:14rem}.extraActions[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer;background-position:center!important;background-size:contain!important;display:inline-block;content:"";min-width:24px;height:24px;vertical-align:middle}.disableOb[_ngcontent-%COMP%]{pointer-events:none;cursor:default;opacity:.4}.main-pages-content-header[_ngcontent-%COMP%]{padding-bottom:2rem!important}[_nghost-%COMP%] .documentReportDataTable .serviceMenu{max-width:14rem!important}.toggle[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#303030}']}),o})()}];let Te=(()=>{const a=class{};let o=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[T.Bz.forChild(Ce),T.Bz]}),o})();var Re=c(4466);let ye=(()=>{const a=class{};let o=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[s.ez,Te,Re.m]}),o})()},2834:(Z,y,c)=>{c.d(y,{n:()=>b});var s=c(4650),T=c(3060),_=c(6895);function C(e,f){if(1&e&&(s.TgZ(0,"span"),s._uU(1),s.qZA()),2&e){const v=s.oxw().$implicit;s.xp6(1),s.Oqu(v)}}function R(e,f){if(1&e&&(s.TgZ(0,"div",1),s.YNc(1,C,2,1,"span",4),s.qZA()),2&e){const v=f.$implicit;s.xp6(1),s.Q6J("ngIf",""!=v)}}let b=(()=>{const f=class{constructor(l){this.router=l,this.breadcrumbs=[]}ngOnInit(){let l=this.router.url.split("/");this.breadcrumbs=l.map(m=>m.replaceAll("-"," ").replaceAll("_"," "))}returnToHome(){this.router.navigateByUrl("/")}};let e=f;return f.\u0275fac=function(m){return new(m||f)(s.Y36(T.F0))},f.\u0275cmp=s.Xpm({type:f,selectors:[["app-breadcrumbs"]],decls:5,vars:1,consts:[[1,"breadcrumbs"],[1,"breadcrumb"],[3,"click"],["class","breadcrumb",4,"ngFor","ngForOf"],[4,"ngIf"]],template:function(m,g){1&m&&(s.TgZ(0,"div",0)(1,"div",1)(2,"a",2),s.NdJ("
1click",function(){return g.returnToHome()}),s._uU(3,"Home"),s.qZA()(),s.YNc(4,R,2,1,"div",3),s.qZA()),2&m&&(s.xp6(4),s.Q6J("ngForOf",g.breadcrumbs))},dependencies:[_.sg,_.O5],encapsulation:2}),e})()},7086:(Z,y,c)=>{c.d(y,{u:()=>v});var s=c(4650),T=c(6895);function _(l,m){if(1&l&&(s.TgZ(0,"span",8),s._UZ(1,"img",9),s._uU(2),s.qZA()),2&l){const g=s.oxw(2).$implicit;s.xp6(2),s.hij(' Risultati per: "',g.label?g.label:g,'" ')}}function C(l,m){if(1&l&&(s.TgZ(0,"span",8),s._uU(1),s.qZA()),2&l){const g=s.oxw(2).$implicit;s.xp6(1),s.Oqu(g.label?g.label:g)}}function R(l,m){if(1&l){const g=s.EpF();s.ynx(0),s.YNc(1,_,3,1,"span",6),s.YNc(2,C,2,1,"span",6),s.TgZ(3,"span",7),s.NdJ("click",function(){s.CHM(g);const u=s.oxw().$implicit,h=s.oxw(2);return s.KtG(h.removeFilter(u))}),s.qZA(),s.BQk()}if(2&l){const g=s.oxw(3);s.xp6(1),s.Q6J("ngIf",g.isFullTextFilter),s.xp6(1),s.Q6J("ngIf",!g.isFullTextFilter)}}function b(l,m){if(1&l&&(s.TgZ(0,"div",4),s.YNc(1,R,4,2,"ng-container",5),s.qZA()),2&l){const g=m.$implicit;s.xp6(1),s.Q6J("ngIf",g)}}function e(l,m){if(1&l){const g=s.EpF();s.TgZ(0,"div",10),s.NdJ("click",function(){s.CHM(g);const u=s.oxw(2);return s.KtG(u.resetFilters())}),s._uU(1,"Resetta filtri"),s.qZA()}}function f(l,m){if(1&l&&(s.TgZ(0,"div",1),s.YNc(1,b,2,1,"div",2),s.YNc(2,e,2,0,"div",3),s.qZA()),2&l){const g=s.oxw();s.xp6(1),s.Q6J("ngForOf",g.filters),s.xp6(1),s.Q6J("ngIf",g.filters.length>1)}}let v=(()=>{const m=class{constructor(){this.filters=[],this.isFullTextFilter=!1,this.filterRemoved=new s.vpe,this.resetFilter=new s.vpe}set filterEvent(d){this.filters=[],this.sidebarConfig&&d&&(d.startInvoice&&d.endInvoice?(this.isFullTextFilter=!1,this.filters.push(`Da ${this.formatDateReport(d.startInvoice)} a ${this.formatDateReport(d.endInvoice)}`)):this.sidebarConfig.filtersConfig.filter(u=>{d.fullText?d.fullText&&(this.isFullTextFilter=!0,this.filters=[],this.filters.push(d.fullText)):(this.isFullTextFilter=!1,u.items.forEach(h=>{Object.values(d).includes(h.value)&&h.value&&h.label&&!this.filters.includes(h)&&this.filters.push(h)}))}))}removeFilter(d){this.filters=this.filters.filter(u=>u.value!==d.value),this.filterRemoved.emit(d)}resetFilters(){this.filters=[],this.sidebarConfig.filtersConfig.filter(d=>{d.value=void 0}),this.resetFilter.emit()}formatDateReport(d){if(!d)return"";if(d instanceof Date){const u=d.getFullYear(),h=String(d.getMonth()+1).padStart(2,"0");return`${String(d.getDate()).padStart(2,"0")}/${h}/${u}`}return"string"==typeof d?d.split("T")[0]:""}};let l=m;return m.\u0275fac=function(u){return new(u||m)},m.\u0275cmp=s.Xpm({type:m,selectors:[["app-filter-tag"]],inputs:{sidebarConfig:"sidebarConfig",filterEvent:"filterEvent"},outputs:{filterRemoved:"filterRemoved",resetFilter:"resetFilter"},decls:1,vars:1,consts:[["class","filtersTag-container",4,"ngIf"],[1,"filtersTag-container"],["class","filtersTag",4,"ngFor","ngForOf"],["class","resetFilters",3,"click",4,"ngIf"],[1,"filtersTag"],[4,"ngIf"],["class","filterValue",4,"ngIf"],[1,"filterRemove",3,"click"],[1,"filterValue"],["src","assets/images/lente_filtri_bssevo_large.svg","alt","lente",1,"icon-lente"],[1,"resetFilters",3,"click"]],template:function(u,h){1&u&&s.YNc(0,f,3,2,"div",0),2&u&&s.Q6J("ngIf",h.filters&&h.filters.length>0)},dependencies:[T.sg,T.O5],styles:[".filtersTag-container[_ngcontent-%COMP%]{display:flex;align-items:center}.filtersTag-container[_ngcontent-%COMP%] .filtersTag[_ngcontent-%COMP%]{display:flex;background-color:#fc4a14;padding:6px 10px;color:#fff;font-weight:700;font-size:14px;border-radius:5px;margin-right:2rem;align-items:center;cursor:pointer}.filtersTag-container[_ngcontent-%COMP%] .filtersTag[_ngcontent-%COMP%] .filterValue[_ngcontent-%COMP%]{margin-right:.5rem;text-transform:uppercase}.filtersTag-container[_ngcontent-%COMP%] .filtersTag[_ngcontent-%COMP%] .filterRemove[_ngcontent-%COMP%]{display:block;background-image:url(close.e6cb14fa30eed239.svg);background-size:contain;background-repeat:no-repeat;padding:.6rem}.filtersTag-container[_ngcontent-%COMP%] .resetFilters[_ngcontent-%COMP%]{color:#fc4a14;font-weight:700;font-size:14px;padding-bottom:.3rem;border-bottom:2px solid #FC4A14;cursor:pointer}.icon-lente[_ngcontent-%COMP%]{vertical-align:middle;margin-right:6px;width:20px;height:20px}"]}),l})()}}]);
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.