PageSourceSearch

https://selfcare.windtrebusiness.it/areaclienti/320.e8e5c5b2185939c0.js

js windtrebusiness.it collected 2026-10-02 12:11:16 UTC 95,914 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkSelfcareWebNew=self.webpackChunkSelfcareWebNew||[]).push([[320],{5697:(N,y,f)=>{function c(p){return!!p&&"id"in p&&"code"in p&&"message"in p}f.d(y,{G:()=>c})},9301:(N,y,f)=>{f.d(y,{f:()=>O});var c=f(4548),p=f(4004),m=f(262),_=f(2843),A=f(4650),P=f(529);let O=(()=>{const v=class{constructor(g,o){this.environment=g,this.http=o,this.optionApiUrl="/option",this.offerApiUrl="/offer",this.serviceApiUrl="/option/service",this.securityApiUrl="/option/security/report",this.securityFixedApiUrl="/securityReport/line"}activeTechnicalServices(g){return this.http.put(this.environment.baseUrlApi+this.serviceApiUrl+"/activate",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}activeContentServices(g,o,d){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/flagVsa/modify",{msisdn:g,actionFormatTV:o,actionServices:d,siteId:19}).pipe((0,p.U)(h=>h.data),(0,m.K)(h=>(0,_._)(h)))}getContentServices(g){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/flagVsa",{msisdn:g}).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getActiveServices(g){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/active/get",{msisdn:g}).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}checkServicesActivation(g){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/activation/check",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getActiveOptionList(g,o){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/details",{phxCode:g,type:o,direct:!1}).pipe((0,p.U)(d=>d.data),(0,m.K)(d=>(0,_._)(d)))}getDistinctOptions(){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/list",{}).pipe((0,p.U)(g=>g.data),(0,m.K)(g=>(0,_._)(g)))}getDistinctTariffPlans(){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/pntf/list",{}).pipe((0,p.U)(g=>g.data),(0,m.K)(g=>(0,_._)(g)))}optionsDeactivation(g){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/deactivate",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}checkOptionsActivation(g){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/activation/check",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}optionsActivation(g){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/activate",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getStaticServices(){return this.http.get(this.environment.baseUrlApi+this.serviceApiUrl+"/static").pipe((0,p.U)(g=>g.data),(0,m.K)(g=>(0,_._)(g)))}modifyExtraGiga(g){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/modifyExtra",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getReportCumulated(g){return this.http.post(this.environment.baseUrlApi+this.securityApiUrl+"/cumulated",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getReportCumulatedFixed(g){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.securityFixedApiUrl+"/aggregate",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getReport(g){return this.http.post(this.environment.baseUrlApi+this.securityApiUrl+"/get",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}getReportFixed(g){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.securityFixedApiUrl+"/single",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}showInvoiceDetails(g){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/invoice/call/activation",g).pipe((0,p.U)(o=>o.data),(0,m.K)(o=>(0,_._)(o)))}};let C=v;return v.\u0275fac=function(o){return new(o||v)(A.LFG(c.p),A.LFG(P.eN))},v.\u0275prov=A.Yz7({token:v,factory:v.\u0275fac}),C})()},3480:(N,y,f)=>{f.d(y,{o:()=>A});var c=f(4548),p=f(4004),m=f(4650),_=f(529);let A=(()=>{const O=class{constructor(v,e){this.environment=v,this.http=e,this.lineApiUrl="/line"}getLineList(v,e,g,o,d){return this.http.post(this.environment.baseUrlApi+this.lineApiUrl+"/list",{showCountersOnly:o,rowId:v,piva:g,fwa:d,filter:e?{msisdn:e}:void 0}).pipe((0,p.U)(h=>h.error?h.error:h.data))}getMobileList(v,e,g,o,d,h,b,L,E,Z){return this.http.post(this.environment.baseUrlApi+this.lineApiUrl+"/mobile/list",{rowId:L,offset:o||0,pageSize:d||100,officeRowId:b,piva:h,filter:{msisdnList:v?"string"==typeof v?[v]:v
1:void 0,phxPntf:e||void 0,type:g||void 0,optionPhx:E||void 0,fullText:Z||void 0}}).pipe((0,p.U)(D=>D.error?D.error:D.data))}getFixedList(v,e,g,o,d){return this.http.post(this.environment.baseUrlApi+this.lineApiUrl+"/fixed/list",{rowId:o,piva:e,offset:v||0,filter:g,hc:d}).pipe((0,p.U)(h=>h.error?h.error:h.data))}};let P=O;return O.\u0275fac=function(e){return new(e||O)(m.LFG(c.p),m.LFG(_.eN))},O.\u0275prov=m.Yz7({token:O,factory:O.\u0275fac}),P})()},8320:(N,y,f)=>{f.r(y),f.d(y,{TrafficModule:()=>ni});var c=f(6895),p=f(7084),m=f(6709),_=f(3060),A=f(7601),P=f(6433),O=f(7579),C=f(2722),v=f(6089),e=f(4650),g=f(1501),o=f(4578),d=f(4074),h=f(8395),b=f(8628),L=f(762),E=f(1208),Z=f(4077),D=f(2834);let $=(()=>{const s=class{constructor(){this.openedDetail=new e.vpe}openDetail(){this.openedDetail.emit()}};let n=s;return s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-extra-element"]],outputs:{openedDetail:"openedDetail"},decls:2,vars:0,consts:[[1,"cell-table","extra","traffic-extra-element"],[1,"cursor-pointer","expandIcon",3,"click"]],template:function(a,r){1&a&&(e.TgZ(0,"div",0)(1,"a",1),e.NdJ("click",function(){return r.openDetail()}),e.qZA()())},styles:[".traffic-extra-element[_ngcontent-%COMP%]{min-height:100%}"]}),n})();function le(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"app-dropdown-table",8),e.NdJ("requestMoreDataEmitter",function(){e.CHM(i);const a=e.oxw(2);return e.KtG(a.fetchFixedLinesListNewPage())}),e.qZA()}if(2&n){e.oxw();const i=e.MAs(3),t=e.oxw();e.Q6J("data",t.tableData)("lazy",t.canLoadMore)("extraElement",i)}}function ge(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"app-traffic-extra-element",9),e.NdJ("openedDetail",function(){const r=e.CHM(i).data,l=e.oxw(2);return e.KtG(l.goToTrafficDetail(r))}),e.qZA()}}function fe(n,s){if(1&n&&(e.ynx(0),e.YNc(1,le,1,3,"app-dropdown-table",6),e.YNc(2,ge,1,0,"ng-template",null,7,e.W1O),e.BQk()),2&n){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.tableData)}}function de(n,s){if(1&n&&e._UZ(0,"app-error-message",10),2&n){const i=e.oxw();e.Q6J("type",i.errorMessageType)}}let pe=(()=>{const s=class{constructor(t,a,r,l,u,x,M){this.offerService=t,this.spinnerService=a,this.tableHelper=r,this.userUtilsService=l,this.router=u,this.sidebarService=x,this.filterService=M,this.errorMessageType="empty",this.displayErrorMessage=!1,this.isLoading=!1,this.canLoadMore=!1,this.offset=0,this.filter=new A._1(A.mr.ALL),this._destroy$=new O.x,this.isHC=this.userUtilsService.isHcAc(),this.msisdn=this.userUtilsService.getMsisdn(),this.pIva=this.userUtilsService.getPiva(),this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration()}ngOnInit(){this.setupFilters(),this.filterService.filterEvent$.pipe((0,C.R)(this._destroy$)).subscribe(t=>{this.fixedLinesList=[],this.offset=0,t?(this.filter=new A._1(A.mr.ALL),t.msisdn&&t.msisdn.length>0&&(this.filter.msisdn=t.msisdn)):this.filter=new A._1(A.mr.ALL),this.fetchFixedLinesList()})}setupFilters(){this.sidebarConfig.filtersConfig.push(new v.J5(v.Kp.INPUT,!1,"msisdn","Ricerca per numero di telefono","")),this.sidebarService.setSidebarConfiguration(this.sidebarConfig)}fetchFixedLinesList(){this.spinnerService.enable();const t=new A.OY(this.offset,this.isHC,null,this.filter);this.offerService.getFixedList(t).subscribe({next:a=>{a.fixedLinesList&&0!==a.fixedLinesList.length?(this.canLoadMore=!a.lastPage,this.fixedLinesList=a.fixedLinesList,this.mapTableData(),this.spinnerService.disable()):this.handleFetchError("empty")},error:()=>this.handleFetchError("error")})}showMigrationCodeModal(t){console.log("migration code",t.msisdn,t.fixedLineDetails.planCode)}mapTableData(){this.tableData=this.tableHelper.createDropdownTableData(P.y.FIXEDTRAFFIC,this.fixedLinesList)}handleFetchError(t){this.displayErrorMessage=!0,this.errorMessageType=t,this.isLoading=!1,this.spinnerService.disable()}fetchFixedLinesListNewPage(){this.offset+=1,this.fetchFixedLinesList()}goToTrafficDetail(t){this.router.navigateByUrl("/traffico/linee/fisso/dettaglio",{state:{msisdn:t.msisdn,lineType:"fixed",tariffPlan:t.tariffPlan}})}ngOnDestroy(){this.spinnerService.disable(),this.sidebarService.resetSidebarConfiguration(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(a){return new(a||s)(e.Y36(g.K),e.Y36(o.V),e.Y36(d.S),e.Y36(h.r),e.Y36(_.F0),e.Y36(b.P),e.Y36(L.i))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-fixed"]],decls:10,vars:2,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[4,"ngIf","ngIfElse"],["error_banner",""],[3,"data","lazy","extraElement","requestMoreDataEmitter",4,"ngIf"],["extraElem",""],[3,"data","lazy","extraElement","requestMoreDataEmitter"],[3,"openedDetail"],[3,"type"]],template:function(a,r){if(1&a&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"TRAFFICO LINEE FISSE"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione puoi visualizzare il traffico effettuato raggruppato per tipologia di evento. Puoi scaricarlo 
1in formato excel impostando le date del periodo desiderato con una profondit\xe0 massima di 90 giorni."),e.qZA()(),e.YNc(7,fe,4,1,"ng-container",4),e.YNc(8,de,1,1,"ng-template",null,5,e.W1O),e.qZA()),2&a){const l=e.MAs(9);e.xp6(7),e.Q6J("ngIf",!r.displayErrorMessage)("ngIfElse",l)}},dependencies:[c.O5,E.a,Z.H,D.n,$]}),n})();var U=f(2264),H=f(7086);function he(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"app-filter-tag",16),e.NdJ("filterRemoved",function(a){e.CHM(i);const r=e.oxw();return e.KtG(r.onFilterRemoved(a))})("resetFilter",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.resetFilters())}),e.qZA(),e.BQk()}if(2&n){const i=e.oxw();e.xp6(1),e.Q6J("sidebarConfig",i.sidebarConfig)("filterEvent",i.newFilterEvent)}}function _e(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"div",17)(1,"div",18),e._uU(2),e.qZA(),e.TgZ(3,"div",19)(4,"button",20),e.NdJ("click",function(a){e.CHM(i);const r=e.oxw();return e.KtG(r.goBack(a))}),e.qZA(),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"button",21),e.NdJ("click",function(a){e.CHM(i);const r=e.oxw();return e.KtG(r.goForward(a))}),e.qZA()()()}if(2&n){const i=e.oxw();e.xp6(2),e.lnq("",i.fromNum,"-",i.toNum>i.totalRecords?i.totalRecords:i.toNum," di ",i.totalRecords,""),e.xp6(2),e.Q6J("disabled",1===i.fromNum),e.xp6(2),e.AsE("Pag ",i.currentPage," di ",i.totalPages,""),e.xp6(1),e.Q6J("disabled",i.currentPage===i.totalPages)}}function ue(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"app-dropdown-table",24),e.NdJ("changeOrderEmitter",function(a){e.CHM(i);const r=e.oxw(2);return e.KtG(r.changeOrder(a))}),e.qZA()}if(2&n){e.oxw();const i=e.MAs(3),t=e.oxw();e.Q6J("data",t.tableData)("lazy",t.canLoadMore)("flexColumns",t.flexColumns)("extraElement",i)("isOrdinable",!0)}}function me(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"app-traffic-extra-element",25),e.NdJ("openedDetail",function(){const r=e.CHM(i).data,l=e.oxw(2);return e.KtG(l.goToTrafficDetail(r))}),e.qZA()}}function Te(n,s){if(1&n&&(e.ynx(0),e.YNc(1,ue,1,5,"app-dropdown-table",22),e.YNc(2,me,1,0,"ng-template",null,23,e.W1O),e.BQk()),2&n){const i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.tableData)}}function ve(n,s){if(1&n&&e._UZ(0,"app-error-message",26),2&n){const i=e.oxw();e.Q6J("type",i.errorMessageType)}}let be=(()=>{const s=class{constructor(t,a,r,l,u,x,M){this.offerService=t,this.spinnerService=a,this.tableHelper=r,this.userUtilsService=l,this.router=u,this.sidebarService=x,this.filterService=M,this.errorMessageType="empty",this.displayErrorMessage=!1,this.canLoadMore=!1,this.flexColumns=[1],this.currentOffset=0,this.pageSize=50,this.mobileLinesList=[],this.showFilterTag=!0,this.newFilterEvent={},this.tableItems=[],this.pntfList=[],this._destroy$=new O.x,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.totalRecords=0,this.totalPages=0,this.msisdn=this.userUtilsService.getMsisdn(),this.pIva=this.userUtilsService.getPiva(),this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration()}ngOnInit(){this.filterService.filterEvent$.subscribe(t=>{this.newFilterEvent=t,this.mobileLinesList=[],this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,t?(this.filter=new U.z(void 0,t.name?t.name:void 0,t.type?t.type:void 0,void 0,t.fullText?t.fullText:void 0,t.roaming?t.roaming:void 0),this.fetchMobileLinesList(this.filter)):(this.filter=void 0,this.fetchMobileLinesList())})}fetchMobileLinesList(t){this.spinnerService.enable(),this.displayErrorMessage=!1;const a=this.createRequestModel(t);this.offerService.getMobileList(a).pipe((0,C.R)(this._destroy$)).subscribe({next:r=>{(!r.mobileLinesList||0===r.mobileLinesList.length)&&this.handleFetchError(this.filter?"empty_filter_generic":"empty"),this.canLoadMore=!r.lastPage,this.totalRecords=r.technicalInfo?r.technicalInfo.totalRecords:0,this.mobileLinesList=r.mobileLinesList,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.mapTableData(),this.mobileLinesList.length>0&&0===this.tableItems.length&&this.fetchPntfList(),this.spinnerService.disable()},error:()=>{this.spinnerService.disable(),this.mobileLinesList=[],this.handleFetchError(t?"empty_filter_generic":"error")}})}mapTableData(){this.tableData=this.tableHelper.createDropdownTableData(P.y.MOBILEPRODUCTS,this.mobileLinesList),this.tableData.dataTableRow.forEach(t=>{t.rows.map(a=>{"TIPOLOGIA"===a.title&&(a.value="prepaid"===a.value?"PREPAGATA":"POSTPAGATA")})})}createRequestModel(t){return new U.T(this.currentOffset,this.pageSize,t||void 0,this.order,this.orderBy)}handleFetchError(t){this.displayErrorMessage=!0,this.errorMessageType=t,this.spinnerService.disable()}goToTrafficDetail(t){this.router.navigateByUrl("/traffico/linee/mobile/dettaglio",{state:{msisdn:t.msisdn,lineType:"prepaid"===t.type?"prepaid":"postpaid",tariffPlan:t.tariffPlanDescription}})}redirectToAggregatedTraffic(){this.router.navigateByUrl("/traffico/aggregato")}fetchPntfList(){this.offerService.getDistinctTariffPlans().subscribe(t=>{t&&(this.pntfList=t.pntfList,this.setupFilters())})}onFilterRemoved(t){if(this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,"Abilitato"===t.value?t.value=!0:"Non abilitato"===t.value&&(t.value=!1),t&&this.filter){if(this.filter.fullText===t)this.filter=void 0,this.fetchMobileLinesList(this.filter);else{const r=Object.keys(this.filter).find(l=>this.filter&&this.filter[l]===t.value);if(r){const l={...this.filter};l[r]=void 0,this.filter=l,this.fetchMobileLinesList(this.filter)}}this.sidebarConfig.filtersConfig.filter(r=>{(r.value===t.valueOf||r.value===t.value)&&(r.value=void 0)});const a=this.updateSidebarFiltersConfig();this.sidebarService.setSidebarConfiguration(a)}}setupFilters(){this.tableItems=[{desc:"Piano Tariffario",label:"name",value:"code"},{desc:"Tipologia",label:"type",value:"type"},{desc:"Roaming",label:"roaming",value:"roaming"}],this.mobileLinesList&&this.pntfList&&(this.sidebarService.setSidebarConfiguration(this.filterService.getTableSelectFilters(this.sidebarConfig,this.tableItems,this.mobileLinesList,this.pntfList)),this.sidebarService.setSidebarConfiguration(this.filterService.getFullTextOfferFilters(this.mobileLinesList,this.sidebarConfig)))}goForward(t){this.currentOffset=this.currentOffset+this.pageSize,this.fromNum=this.currentOffset+1,this.toNum=this.currentOffset+this.pageSize,this.currentPage=Math.ceil(this.currentOffset/this.pageSize)+1,this.fetchMobileLinesList(this.filter)}goBack(t){this.currentOffset=this.currentOffset-this.pageSize,this.fromNum=this.currentOffset+1,this.toNum=this.currentOffset+this.pageSize,this.currentPage=Math.ceil(this.currentOffset/this.pageSize)+1,this.fetchMobileLinesList(this.filter)}changeOrder(t){this.order=t.order,this.orderBy=t.orderBy,this.fetchMobileLinesList()}resetFilters(){this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.filter=void 0;const t=this.updateSidebarFiltersConfig();this.sidebarService.setSidebarConfiguration(t),this.fetchMobileLinesList(this.filter)}updateSidebarFiltersConfig(){const t={name:"phxPntf",type:"type",roaming:"roaming",fullText:"fullText"};let a={...this.sidebarConfig,filtersConfig:[...this.sidebarConfig.filtersConfig]};return a.filtersConfig.forEach(r=>{t[r.key]&&(r.value=this.filter?.[t[r.key]])}),a}ngOnDestroy(){this.spinnerService.disable(),this.sidebarService.resetSidebarConfiguration(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(a){return new(a||s)(e.Y36(g.K),e.Y36(o.V),e.Y36(d.S),e.Y36(h.r),e.Y36(_.F0),e.Y36(b.P),e.Y36(L.i))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-mobile"]],decls:22,vars:4,consts:[[1,"main-pages-content","traffic-mobile-component"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[1,"buttonHeaderBar"],[1,"toggle"],["type","radio","name","sizeBy","value","weight","id","attivazione","checked","checked"],["for","attivazione"],["type","radio","name","sizeBy","value","dimensions","id","disattivazione",3,"click"],["for","disattivazione"],[1,"topTable-container"],[1,"filtersBox"],[4,"ngIf"],["class","paginationBox lazy-button",4,"ngIf"],[4,"ngIf","ngIfElse"],["error_banner",""],[3,"sidebarConfig","filterEvent","filterRemoved","resetFilter"],[1,"paginationBox","lazy-button"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],[3,"data","lazy","flexColumns","extraElement","isOrdinable","changeOrderEmitter",4,"ngIf"],["extraElem",""],[3,"data","lazy","flexColumns","extraElement","isOrdinable","changeOrderEmitter"],[3,"openedDetail"],[3,"type"]],template:function(a,r){if(1&a&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"TRAFFICO LINEE MOBILI"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"In questa sezione puoi visualizzare il traffico effettuato raggruppato per tipologia di evento. Puoi scaricarlo 
1in formato excel impostando le date del periodo desiderato con una profondit\xe0 massima di 90 giorni. Inoltre, puoi consultare il traffico aggregato degli ultimi tre mesi."),e.qZA()(),e.TgZ(7,"div",4)(8,"div",5),e._UZ(9,"input",6),e.TgZ(10,"label",7),e._uU(11,"TRAFFICO"),e.qZA(),e.TgZ(12,"input",8),e.NdJ("click",function(){return r.redirectToAggregatedTraffic()}),e.qZA(),e.TgZ(13,"label",9),e._uU(14,"AGGREGATO"),e.qZA()()(),e.TgZ(15,"div",10)(16,"div",11),e.YNc(17,he,2,2,"ng-container",12),e.qZA(),e.YNc(18,_e,8,7,"div",13),e.qZA(),e.YNc(19,Te,4,1,"ng-container",14),e.YNc(20,ve,1,1,"ng-template",null,15,e.W1O),e.qZA()),2&a){const l=e.MAs(21);e.xp6(17),e.Q6J("ngIf",r.showFilterTag&&r.filter),e.xp6(1),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",!r.displayErrorMessage)("ngIfElse",l)}},dependencies:[c.O5,E.a,Z.H,D.n,H.u,$],encapsulation:2}),n})();class V{constructor(s,i,t,a,r,l){this.msisdn=s,this.dateFrom=i,this.dateTo=t,this.advancedSearch=a,this.page=r,this.type=l}}class W{}const Ce=[{label:"Tutto",labelKey:"label2",spentKey:"amountSpent",selected:!0},{filter:{payunit:!1},label:"Incluso",labelKey:"labelIncluse2",spentKey:"amountIncluseSpent"},{filter:{payunit:!0},label:"Non incluso",labelKey:"labelNonIncluse2",spentKey:"amountNonIncluseSpent"}];var T=f(4006),xe=f(2229),j=f(4548),S=f(4004),F=f(262),X=f(529);let Me=(()=>{const s=class{constructor(t,a){this.environment=t,this.http=a,this.offerApiUrl="/trafficdetail"}getTrafficDetail(t){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/trafficDetail",t).pipe((0,S.U)(a=>a.data),(0,F.K)(a=>{throw a}))}getTrafficAggregateVerifyStateFile(){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/trafficAggregateVerifyStateFile",{}).pipe((0,S.U)(t=>t.data),(0,F.K)(t=>{throw t}))}getAggregatedTrafficDetail(t){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/getAggregatedTrafficDetail",t).pipe((0,S.U)(a=>a.data),(0,F.K)(a=>{throw a}))}getAggregatedTraffic(t){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/getAggregatedTraffic",t).pipe((0,S.U)(a=>a.data),(0,F.K)(a=>{throw a}))}generateReport(){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/reportDownload/generate",{}).pipe((0,S.U)(t=>t.data),(0,F.K)(t=>{throw t}))}};let n=s;return s.\u0275fac=function(a){return new(a||s)(e.LFG(j.p),e.LFG(X.eN))},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),n})();var Oe=f(6012),k=f(5986),ee=f(7028),Ae=f(3947),te=f(4984),q=f(9549),J=f(9602),ie=f(284);const Se=function(n){return{active:n}};function ye(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"div",5),e.NdJ("click",function(){const r=e.CHM(i).$implicit,l=e.oxw(3);return e.KtG(l.emitSelectedDetail(r))}),e.TgZ(1,"div",6)(2,"div",7),e._uU(3),e.ALo(4,"date"),e.qZA(),e.TgZ(5,"div",8),e._uU(6),e.qZA()()()}if(2&n){const i=s.$implicit;e.Q6J("ngClass",e.VKq(7,Se,i.selected)),e.xp6(3),e.Oqu(e.Dn7(4,3,i.date,"HH:mm","it")),e.xp6(3),e.Oqu(i.name)}}
1function Pe(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"span",3),e._uU(2),e.qZA(),e.YNc(3,ye,7,9,"div",4),e.BQk()),2&n){const i=s.$implicit;e.xp6(2),e.Oqu(i.dateLabel),e.xp6(1),e.Q6J("ngForOf",i.items)}}function De(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Pe,4,2,"ng-container",2),e.BQk()),2&n){const i=e.oxw();e.xp6(1),e.Q6J("ngForOf",i.trafficItemDetails)}}let Le=(()=>{const s=class{constructor(){this.selectDetail=new e.vpe}set trafficItems(t){this.trafficItemDetails=t?t.reduce((a,r)=>{const l=new Date(r.date).toLocaleDateString(),u=a.find(x=>x.dateLabel===l);return u?u.items.push(r):a.push({dateLabel:l,items:[r]}),a},[]):[]}emitSelectedDetail(t){this.selectDetail.emit(t)}};let n=s;return s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-details-list"]],inputs:{trafficItems:"trafficItems"},outputs:{selectDetail:"selectDetail"},decls:2,vars:1,consts:[[1,"sort-item-component"],[4,"ngIf"],[4,"ngFor","ngForOf"],[1,"date-label"],["class","itemOptions itemOptionsSmall no-background",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"itemOptions","itemOptionsSmall","no-background",3,"ngClass","click"],[1,"itemOptions-box"],[1,"detail-time"],[1,"detail-name"]],template:function(a,r){1&a&&(e.TgZ(0,"div",0),e.YNc(1,De,2,1,"ng-container",1),e.qZA()),2&a&&(e.xp6(1),e.Q6J("ngIf",r.trafficItemDetails&&r.trafficItemDetails.length>0))},dependencies:[c.mk,c.sg,c.O5,c.uU],styles:[".sort-item-component[_ngcontent-%COMP%]   .date-label[_ngcontent-%COMP%]{font: 700 14px/16px Montserrat;flex-basis:100%}.sort-item-component[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]{min-height:44px}.sort-item-component[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]   .itemOptions-box[_ngcontent-%COMP%]{place-self:auto}.sort-item-component[_ngcontent-%COMP%]   .active[_ngcontent-%COMP%]{border:2px solid #FF6900!important}"]}),n})();function Ze(n,s){if(1&n&&(e.TgZ(0,"div",4)(1,"div",5),e._uU(2,"Numero Contattato"),e.qZA(),e.TgZ(3,"div",6),e._uU(4),e.qZA()()),2&n){const i=e.oxw();e.xp6(4),e.Oqu(i.detail.recipientMsisdn)}}function Ue(n,s){if(1&n&&(e.TgZ(0,"div",4)(1,"div",5),e._uU(2,"Importo"),e.qZA(),e.TgZ(3,"div",6),e._uU(4),e.qZA()()),2&n){const i=e.oxw();e.xp6(4),e.Oqu(i.detail.amount)}}function Ie(n,s){if(1&n&&(e.TgZ(0,"div",4)(1,"div",5),e._uU(2,"Durata"),e.qZA(),e.TgZ(3,"div",6),e._uU(4),e.ALo(5,"uppercase"),e.qZA()()),2&n){const i=e.oxw();e.xp6(4),e.Oqu(i.detail&&i.detail.time?e.lcZ(5,1,i.detail.time):"-")}}let we=(()=>{const s=class{};let n=s;return s.\u0275fac=function(a){return new(a||s)},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-detail-info"]],inputs:{detail:"detail",trafficType:"trafficType"},decls:37,vars:17,consts:[[1,"sort-item-component"],[1,"titleBox"],[1,"row","separator"],[1,"box"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],["class","itemBox",4,"ngIf"]],template:function(a,r){1&a&&(e.TgZ(0,"div",0)(1,"div",1),e._uU(2,"DETTAGLIO LINEA"),e.qZA(),e.TgZ(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),e._uU(7,"Ora"),e.qZA(),e.TgZ(8,"div",6),e._uU(9),e.ALo(10,"date"),e.qZA()(),e.TgZ(11,"div",4)(12,"div",5),e._uU(13,"Data"),e.qZA(),e.TgZ(14,"div",6),e._uU(15),e.ALo(16,"date"),e.qZA()(),e.TgZ(17,"div",4)(18,"div",5),e._uU(19,"Descrizione"),e.qZA(),e.TgZ(20,"div",6),e._uU(21),e.qZA()(),e.YNc(22,Ze,5,1,"div",7),e.qZA(),e.TgZ(23,"div",3)(24,"div",4)(25,"div",5),e._uU(26,"Traffico (inviato/ricevuto)"),e.qZA(),e.TgZ(27,"div",6),e._uU(28),e.qZA()(),e.YNc(29,Ue,5,1,"div",7),e.TgZ(30,"div",4)(31,"div",5),e._uU(32,"Tipologia"),e.qZA(),e.TgZ(33,"div",6),e._uU(34),e.ALo(35,"uppercase"),e.qZA()(),e.YNc(36,Ie,6,3,"div",7),e.qZA()()()),2&a&&(e.xp6(9),e.Oqu(r.detail&&r.detail.date?e.Dn7(10,8,r.detail.date,"HH:mm","it"):"-"),e.xp6(6),e.Oqu(r.detail&&r.detail.date?e.xi3(16,12,r.detail.date,"dd/MM/yyyy"):"-"),e.xp6(6),e.Oqu(r.detail&&r.detail.invoiceText?r.detail.invoiceText:"-"),e.xp6(1),e.Q6J("ngIf",r.detail&&r.detail.recipientMsisdn),e.xp6(6),e.Oqu(r.detail&&r.detail.trafficType?r.detail.trafficType:"-"),e.xp6(1),e.Q6J("ngIf",r.detail&&r.detail.amount),e.xp6(5),e.Oqu(r.detail&&r.detail.typology?e.lcZ(35,15,r.detail.typology):"-"),e.xp6(2),e.Q6J("ngIf",r.detail&&"Chiamate"===r.detail.name))},dependencies:[c.O5,c.gd,c.uU]}),n})();function Fe(n,s){1&n&&(e.TgZ(0,"span"),e._uU(1,"Mobile"),e.qZA())}function Ne(n,s){1&n&&(e.TgZ(0,"span"),e._uU(1,"Fisso"),e.qZA())}function Ee(n,s){1&n&&(e.TgZ(0,"h1",15),e._uU(1,"TRAFFICO MOBILE"),e.qZA())}function qe(n,s){1&n&&(e.TgZ(0,"h1",15),e._uU(1,"TRAFFICO FISSO"),e.qZA())}function Je(n,s){1&n&&(e.TgZ(0,"h2",16),e._uU(1,"In questa sezione puoi visualizzare il traffico effettuato raggruppato per tipologia di evento. Puoi scaricarlo 
1in formato excel impostando le date del periodo desiderato con una profondit\xe0 massima di 90 giorni."),e.qZA())}function Re(n,s){1&n&&(e.TgZ(0,"h2",16),e._uU(1,"Consulta i dettagli relativi alla tua linea fissa"),e.qZA())}function ke(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"div",17)(1,"a",18),e.NdJ("click",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.goBack())}),e.qZA()()}}const Q=function(n){return{active:n}};function Qe(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"a",26),e.NdJ("click",function(){e.CHM(i);const a=e.oxw().$implicit,r=e.oxw(2);return e.KtG(r.selectTab(a))}),e._uU(1),e.ALo(2,"uppercase"),e.qZA()}if(2&n){const i=e.oxw().$implicit;e.Q6J("ngClass",e.VKq(4,Q,i.selected)),e.xp6(1),e.hij(" ",e.lcZ(2,2,i.period)," ")}}function Ye(n,s){if(1&n&&(e.ynx(0),e.YNc(1,Qe,3,6,"a",25),e.BQk()),2&n){const i=s.$implicit,t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.showDetailTab(i.period))}}const Be=function(n){return{inactive:n}};function ze(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",27)(2,"div",28),e._uU(3,"Seleziona il periodo di interesse"),e.qZA(),e.TgZ(4,"form",29)(5,"div",30)(6,"mat-form-field",31)(7,"mat-label"),e._uU(8,"Data di inizio"),e.qZA(),e.TgZ(9,"input",32),e.NdJ("dateChange",function(a){e.CHM(i);const r=e.oxw(2);return e.KtG(r.onStartDateSelected(a))}),e.qZA(),e._UZ(10,"mat-datepicker-toggle",33)(11,"mat-datepicker",null,34),e.qZA(),e.TgZ(13,"mat-form-field",31)(14,"mat-label"),e._uU(15,"Data di fine"),e.qZA(),e._UZ(16,"input",35)(17,"mat-datepicker-toggle",33)(18,"mat-datepicker",null,36),e.qZA()(),e.TgZ(20,"div",37)(21,"button",38),e.NdJ("click",function(){e.CHM(i);const a=e.oxw(2);return e.KtG(a.advancedSearchSubmit())}),e._uU(22,"CONFERMA "),e.qZA()()()(),e.BQk()}if(2&n){const i=e.MAs(12),t=e.MAs(19),a=e.oxw(2);e.xp6(4),e.Q6J("formGroup",a.advancedSearchForm),e.xp6(5),e.Q6J("matDatepicker",i)("max",a.today)("min",a.minDate),e.xp6(1),e.Q6J("for",i),e.xp6(6),e.Q6J("matDatepicker",t)("max",a.today)("min",a.minDate),e.xp6(1),e.Q6J("for",t),e.xp6(4),e.Q6J("disabled",!a.advancedSearchForm.valid)("ngClass",e.VKq(11,Be,!a.advancedSearchForm.valid))}}function Ge(n,s){1&n&&(e.TgZ(0,"div",48),e._uU(1,"CHIAMATE"),e.qZA())}function Ke(n,s){1&n&&(e.TgZ(0,"div",48),e._uU(1,"SMS"),e.qZA())}function $e(n,s){1&n&&(e.TgZ(0,"div",48),e._uU(1,"INTERNET"),e.qZA())}function He(n,s){1&n&&(e.TgZ(0,"div",48),e._uU(1,"ALTRO"),e.qZA())}function Ve(n,s){1&n&&(e.TgZ(0,"div",48),e._uU(1,"CONTENUTI E SERVIZI"),e.qZA())}const We=function(n,s,i,t,a){return{"traffico-ico-chiamate":n,"traffico-ico-sms":s,"traffico-ico-internet":i,"traffico-ico-altro":t,"traffico-ico-contenuti":a}};function je(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",44),e.NdJ("click",function(){const r=e.CHM(i).$implicit,l=e.oxw(3);return e.KtG(l.selectTrafficType(r))}),e._UZ(2,"i",45),e.ynx(3,46),e.YNc(4,Ge,2,0,"div",47),e.YNc(5,Ke,2,0,"div",47),e.YNc(6,$e,2,0,"div",47),e.YNc(7,He,2,0,"div",47),e.YNc(8,Ve,2,0,"div",47),e.BQk(),e.qZA(),e.BQk()}if(2&n){const i=s.$implicit;e.xp6(1),e.Q6J("ngClass",e.VKq(8,Q,i.selected)),e.xp6(1),e.Q6J("ngClass",e.qbA(10,We,0==+i.type,1==+i.type,2==+i.type,3==+i.type,4==+i.type)),e.xp6(1),e.Q6J("ngSwitch",+i.type),e.xp6(1),e.Q6J("ngSwitchCase",0),e.xp6(1),e.Q6J("ngSwitchCase",1),e.xp6(1),e.Q6J("ngSwitchCase",2),e.xp6(1),e.Q6J("ngSwitchCase",3),e.xp6(1),e.Q6J("ngSwitchCase",4)}}function Xe(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"a",50),e.NdJ("click",function(){const r=e.CHM(i).$implicit,l=e.oxw(4);return e.KtG(l.selectPayUnitType(r))}),e._uU(1),e.ALo(2,"uppercase"),e.qZA()}if(2&n){const i=s.$implicit;e.Q6J("ngClass",e.VKq(4,Q,i.selected)),e.xp6(1),e.hij(" ",e.lcZ(2,2,i.label)," ")}}function et(n,s){if(1&n&&(e.TgZ(0,"div",40)(1,"div",41),e._uU(2,"Tipologia"),e.qZA(),e.YNc(3,Xe,3,6,"a",49),e.qZA()),2&n){const i=e.oxw(3);e.xp6(3),e.Q6J("ngForOf",i.payUnitTypes)}}function tt(n,s){if(1&n&&(e.TgZ(0,"div",40)(1,"div",41),e._uU(2,"Totale"),e.qZA(),e.TgZ(3,"div",51),e._uU(4),e.qZA(),e.TgZ(5,"div",52),e._uU(6),e.qZA(),e.TgZ(7,"div",53),e._uU(8),e.qZA()()),2&n){const i=e.oxw(3);e.xp6(4),e.Oqu(i.selectedTrafficType[i.selectedPayUnitType.spentKey]?i.selectedTrafficType[i.selectedPayUnitType.spentKey]:"-"),e.xp6(2),e.Oqu(i.selectedTrafficType[i.selectedPayUnitType.labelKey]?i.selectedTrafficType[i.selectedPayUnitType.labelKey]:"-"),e.xp6(2),e.AsE("Periodo dal ",i.selectedFilterTab.dateFrom," al ",i.selectedFilterTab.dateTo,"")}}
1function it(n,s){if(1&n&&(e.TgZ(0,"div",39)(1,"div",40)(2,"div",41),e._uU(3,"Direttrice di traffico"),e.qZA(),e.TgZ(4,"div",42),e.YNc(5,je,9,16,"ng-container",23),e.qZA()(),e.YNc(6,et,4,1,"div",43),e.YNc(7,tt,9,4,"div",43),e.qZA()),2&n){const i=e.oxw(2);e.xp6(5),e.Q6J("ngForOf",i.selectedFilterTab.trafficItems),e.xp6(1),e.Q6J("ngIf","prepaid"===i.lineType),e.xp6(1),e.Q6J("ngIf",i.selectedTrafficType&&i.selectedPayUnitType&&"prepaid"===i.lineType)}}function nt(n,s){1&n&&(e.ynx(0),e._UZ(1,"app-error-message",54),e.BQk()),2&n&&(e.xp6(1),e.Q6J("type","empty_traffic"))}function at(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"app-error-message",54),e.BQk()),2&n){const i=e.oxw(2);e.xp6(1),e.Q6J("type",i.errorMessageAdvancedSearch)}}function rt(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",58)(2,"button",59),e.NdJ("click",function(){e.CHM(i);const a=e.oxw(3);return e.KtG(a.downloadReportTableCsv())}),e._uU(3," ESPORTA REPORT "),e.qZA()(),e.BQk()}}function st(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",55)(2,"app-traffic-details-list",56),e.NdJ("selectDetail",function(a){e.CHM(i);const r=e.oxw(2);return e.KtG(r.selectDetail(a))}),e.qZA(),e._UZ(3,"app-traffic-detail-info",57),e.qZA(),e.YNc(4,rt,4,0,"ng-container",5),e.BQk()}if(2&n){const i=e.oxw(2);e.xp6(2),e.Q6J("trafficItems",i.selectedTrafficTypeDetails),e.xp6(1),e.Q6J("detail",i.selectedDetail),e.xp6(1),e.Q6J("ngIf",i.advancedSearch)}}function ot(n,s){if(1&n&&(e.TgZ(0,"div",19)(1,"h2",20),e._uU(2,"DETTAGLIO DEL TRAFFICO"),e.qZA(),e.TgZ(3,"div",21)(4,"div",22),e.YNc(5,Ye,2,1,"ng-container",23),e.qZA()(),e.YNc(6,ze,23,13,"ng-container",5),e.YNc(7,it,8,3,"div",24),e.YNc(8,nt,2,1,"ng-container",5),e.YNc(9,at,2,1,"ng-container",5),e.YNc(10,st,5,3,"ng-container",5),e.qZA()),2&n){const i=e.oxw();e.xp6(5),e.Q6J("ngForOf",i.trafficData.aggregateTrafficDetail),e.xp6(1),e.Q6J("ngIf",i.advancedSearch),e.xp6(1),e.Q6J("ngIf",i.selectedFilterTab&&(null==i.selectedFilterTab?null:i.selectedFilterTab.trafficItems)&&(null==i.selectedFilterTab.trafficItems?null:i.selectedFilterTab.trafficItems.length)&&(null==i.selectedFilterTab.trafficItems?null:i.selectedFilterTab.trafficItems.length)>0),e.xp6(1),e.Q6J("ngIf",!(i.selectedFilterTab&&null!=i.selectedFilterTab&&i.selectedFilterTab.trafficItems&&null!=i.selectedFilterTab.trafficItems&&i.selectedFilterTab.trafficItems.length&&0!==(null==i.selectedFilterTab.trafficItems?null:i.selectedFilterTab.trafficItems.length)||i.advancedSearch)),e.xp6(1),e.Q6J("ngIf",(!i.selectedFilterTab||!(null!=i.selectedFilterTab&&i.selectedFilterTab.trafficItems)||!(null!=i.selectedFilterTab.trafficItems&&i.selectedFilterTab.trafficItems.length)||0===(null==i.selectedFilterTab.trafficItems?null:i.selectedFilterTab.trafficItems.length))&&i.advancedSearch),e.xp6(1),e.Q6J("ngIf",i.selectedFilterTab&&(null==i.selectedFilterTab?null:i.selectedFilterTab.trafficItems))}}function ct(n,s){1&n&&e._UZ(0,"app-spinner")}function lt(n,s){if(1&n&&(e.ynx(0),e._UZ(1,"app-error-message",54),e.BQk()),2&n){const i=e.oxw();e.xp6(1),e.Q6J("type",i.errorMessageType)}}const R=n=>n.selected;let Y=(()=>{const s=class{constructor(t,a,r,l,u,x,M,z,G,K,w){if(this.router=t,this.trafficService=a,this.spinnerService=r,this.fb=l,this.userUtilsService=u,this.sidebarService=x,this.associateSimService=M,this.supportService=z,this.dialogService=G,this.fileSaverService=K,this.cdr=w,this.currentPage=0,this.errorMessageType="empty",this.errorMessageAdvancedSearch="empty_advanced_traffic",this.displayErrorMessage=!1,this.advancedSearch=!1,this.advancedSearchForm=new T.cw({}),this._destroy$=new O.x,this.trafficDetailsAdditionalFilterTabs={ricercaAvanzata:{period:"Ricerca Avanzata"},months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},this.payUnitTypes=Ce,this.isEU=this.userUtilsService.isEndUser(),this.isEU){this.msisdn=this.userUtilsService.getMsisdn(),this.loggedMsisdn=this.msisdn;const ce=this.userUtilsService.getCurrentMsisdn();this.msisdn&&(this.lineType=this.userUtilsService.getMsisdnType()),ce&&(this.msisdn=ce,this.lineType=this.userUtilsService.getCurrentMsisdnType()),this.sidebarConfig=this.sidebarService.getEUHomeDefaultConfiguration()}}get selectedFilterTab(){return this.trafficData.aggregateTrafficDetail.find(R)}get selectedTrafficType(){return this.selectedFilterTab?.trafficItems?.find(R)}get selectedPayUnitType(){return this.payUnitTypes.find(R)}get selectedTrafficTypeDetails(){return this.selectedTrafficType?.trafficItemDetails?.filter(t=>!this.selectedPayUnitType?.filter||t.payunit===this.selectedPayUnitType?.filter.payunit)}get selectedDetail(){return this.selectedTrafficType?.trafficItemDetails?.find(R)}ngOnInit(){if(this.isEU){if(this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.associatedSims=this.userUtilsService.getAssociatedSims(),this.associatedSims)this.sidebarConfig.associateSims=this.associatedSims;else{const t=new xe.l(this.loggedMsisdn);this.associateSimService.getAssociateSims(t).pipe((0,C.R)(this._destroy$)).subscribe({next:a=>{this.associatedSims=a,this.sidebarConfig.associateSims=this.associatedSims,this.userUtilsService.setAssociatedSims(this.associatedSims)}})}this.userUtilsService.msisdnChangedSubject.subscribe({next:t=>{t&&t.length>0&&(this.msisdn=t,this.lineType=this.userUtilsService.getCurrentMsisdnType(),this.getTrafficDetailData())}})}this.getRequestDataFromRoute(),this.today=new Date,this.initSearchFrom(),this.setMinDate()}initSearchFrom(){this.advancedSearchForm=this.fb.group({startDate:["",T.kI.compose([T.kI.required])],endDate:["",T.kI.compose([T.kI.required])]})}advancedSearchSubmit(){this.spinnerService.enable();const t=this.advancedSearchForm.controls,a=t.startDate.value,r=t.endDate.value,u=Math.abs(a.getTime()-r.getTime())/864e5;if(a&&r&&u>90)this.trafficData.aggregateTrafficDetail[0].trafficItems=void 0,this.errorMessageAdvancedSearch="date_interval",this.spinnerService.disable();else{this.trafficData.aggregateTrafficDetail[0].dateFrom=a.toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit"}),this.trafficData.aggregateTrafficDetail[0].dateTo=r.toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit"});const x=this.getRequestTrafficRequestModel(a.toLocaleDateString("it-IT"),r.toLocaleDateString("it-IT"));this.trafficService.getTrafficDetail(x).subscribe({next:M=>{M.aggregateTrafficDetail&&M.aggregateTrafficDetail[0]&&M.aggregateTrafficDetail[0].trafficItems&&M.aggregateTrafficDetail[0].trafficItems.length>0?(this.trafficData.aggregateTrafficDetail[0].trafficItems=M.aggregateTrafficDetail[0].trafficItems,this.trafficData.aggregateTrafficDetail[0].trafficItems[0].selected=!0):this.errorMessageAdvancedSearch="empty_traffic",this.spinnerService.disable(),this.cdr.detectChanges()},error:()=>{this.displayErrorMessage=!0,this.errorMessageAdvancedSearch="error",this.spinnerService.disable(),this.cdr.detectChanges()}})}}getRequestDataFromRoute(){this.isEU?this.getTrafficDetailData():(this.routeData=history.state,this.routeData?.msisdn&&this.routeData?.lineType?(this.msisdn=this.routeData.msisdn,this.lineType=this.routeData.lineType,this.tariffPlan=this.routeData.tariffPlan,this.getTrafficDetailData()):this.router.navigateByUrl("/").then(t=>console.log("No msisdn! Navigate back to home")))}getTrafficDetailData(){this.loading=!0;const t=this.getRequestTrafficRequestModel();this.trafficService.getTrafficDetail(t).pipe((0,C.R)(this._destroy$)).subscribe({next:a=>{this.loading=!1,a&&(this.trafficData=a,this.trafficData.aggregateTrafficDetail.map(r=>{r.alreadyLoaded=!0,r.dateFrom=new Date(r.dateFrom).toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit"}),r.dateTo=new Date(r.dateTo).toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit"})}),this.addLastThreeMonths(),this.selectDefaultDetails(this.trafficData),console.log("Traffic detail data loaded:",this.trafficData))},error:()=>{this.loading=!1,this.displayErrorMessage=!0,this.errorMessageType="error"}})}selectDefaultDetails(t){const a=t.aggregateTrafficDetail[0];a.selected=!0,a.trafficItems&&(a.trafficItems[0].selected=!0);const r=new W;r.period="Download",t.aggregateTrafficDetail.unshift(r)}addLastThreeMonths(){const t=new Date;for(let a=0;a<3;a++){const r=new W;t.setMonth(t.getMonth()-1),r.dateFrom=new Date(t.getFullYear(),t.getMonth(),1).toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit"}),r.dateTo=new Date(t.getFullYear(),t.getMonth()+1,0).toLocaleDateString("it-IT",{year:"numeric",month:"2-digit",day:"2-digit"}),r.period=this.trafficDetailsAdditionalFilterTabs.months[t.getMonth()],this.trafficData.aggregateTrafficDetail.push(r)}}selectTab(t){if(this.advancedSearch="Download"===t.period,this.deselectAll(this.trafficData.aggregateTrafficDetail),t.selected=!0,t.selected&&t.trafficItems&&t.trafficItems.length>0&&this.selectTrafficType(t.trafficItems[0]),!t.alreadyLoaded&&!this.advancedSearch){this.spinnerService.enable();const a=this.getRequestTrafficRequestModel(t.dateFrom,t.dateTo);this.trafficService.getTrafficDetail(a).subscribe({next:r=>{t.trafficItems=r.aggregateTrafficDetail[0].trafficItems,t.alreadyLoaded=!0,t.trafficItems&&t.trafficItems.length>0&&(t.trafficItems[0].selected=!0),this.spinnerService.disable(),this.cdr.detectChanges()},error:()=>{this.displayErrorMessage=!0,this.errorMessageType="error",this.spinnerService.disable(),this.cdr.detectChanges()}})}}selectPayUnitType(t){this.deselectAll(this.payUnitTypes),t.selected=!0}selectTrafficType(t){this.selectedFilterTab?.trafficItems&&this.deselectAll(this.selectedFilterTab.trafficItems),t.selected=!0}selectDetail(t){this.selectedTrafficType&&this.deselectAll(this.selectedTrafficType?.trafficItemDetails),t.selected=!0}deselectAll(t){t.forEach(a=>a.selected=!1)}goBack(){"fixed"===this.lineType?this.router.navigateByUrl("/traffico/linee/fisso").then(t=>console.log("No msisdn! Navigate back to traffic mobile")):this.router.navigateByUrl("/traffico/linee/mobile").then(t=>console.log("No msisdn! Navigate back to traffic mobile"))}showDetailTab(t){return"Giorno Corrente"!==t||"fixed"!==this.lineType&&"postpaid"!==this.lineType}getRequestTrafficRequestModel(t,a){return this.isEU?new V(this.msisdn,t,a,!0):new V(this.msisdn,t,a,!0,this.currentPage,this.lineType)}downloadReportTableCsv(){let t={},a={};this.selectedFilterTab?.trafficItems?.forEach(r=>{t[`${r.name}`]=r.trafficItemDetails,a=this.remapKeys(t)}),this.spinnerService.enable(),this.supportService.downloadReportTableCsv(a).subscribe(r=>{this.spinnerService.disable(),this.fileSaverService.save(r,"export.xls")},r=>{this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Si \xe8 verificato un errore durante il recupero delle informazioni, si prega di riprovare pi\xf9 tardi",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}remapKeys(t){let a={};for(let r in t)t.hasOwnProperty(r)&&(a[r]=t[r].map(l=>({Quantit\u00e0:l.quantity,Nome:l.name,Data:l.date,Descrizione:l.invoiceText,Durata:l.time,Importo:l.amount,"Numero contattato":l.recipientMsisdn,Payunit:l.payunit?"ATTIVO":"DISATTIVO",Tipologia:l.typology,"Traffico (inviato/ricevuto)":l.trafficType,Volume:l.volume})));return a}returnToHome(){this.router.navigateByUrl("/")}resetTypologyFilter(){this.payUnitTypes&&(this.deselectAll(this.payUnitTypes),this.payUnitTypes[0].selected=!0)}setMinDate(){const t=new Date;t.setMonth(this.today.getMonth()-6),this.minDate=t}onStartDateSelected(t){if(t.value){const a=new Date(t.value),r=new Date(a);r.setDate(a.getDate()+89),r>this.today?(this.advancedSearchForm.get("endDate")?.setValue(this.today),this.advancedSearchForm.get("endDate")?.enable()):(this.advancedSearchForm.get("endDate")?.setValue(r),this.advancedSearchForm.get("endDate")?.enable())}}ngOnDestroy(){this.spinnerService.disable(),this.sidebarService.resetSidebarConfiguration(),this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.resetTypologyFilter(),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(a){return new(a||s)(e.Y36(_.F0),e.Y36(Me),e.Y36(o.V),e.Y36(T.qu),e.Y36(h.r),e.Y36(b.P),e.Y36(Oe.X),e.Y36(k.g),e.Y36(ee.D),e.Y36(Ae.m9),e.Y36(e.sBO))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-detail"]],decls:28,vars:12,consts:[[1,"main-pages-content","traffic-mobile-component"],[1,"main-pages-content-header"],[1,"breadcrumbs"],[1,"breadcrumb"],[3,"click"],[4,"ngIf"],["class","titlePage",4,"ngIf"],["class","subTitlePage",4,"ngIf"],[1,"row-line-information"],["class","box-line-info small",4,"ngIf"],[1,"box-line-info"],[1,"row","number-description"],[1,"row","number-label"],[1,"row","plan-label"],["class","mainDetail",4,"ngIf"],[1,"titlePage"],[1,"subTitlePage"],[1,"box-line-info","small"],[1,"back-button","cursor-pointer",3,"click"],[1,"mainDetail"],[1,"title-traffic-detail"],[1,"containerButtons"],[1,"buttonsLineBar"],[4,"ngFor","ngForOf"],["class","row itemTraffic",4,"ngIf"],["class","itemButton cursor-pointer",3,"ngClass","click",4,"ngIf"],[1,"itemButton","cursor-pointer",3,"ngClass","click"],[1,"advancedSearchForm"],[1,"titleAdvancedSearch"],["autocomplete","off",1,"form",3,"formGroup"],[1,"form-container-advanced-search"],["appearance","legacy",1,"advanced-search-form-field"],["matInput","","placeholder","DD/MM/YYYY","formControlName","startDate","required","",3,"matDatepicker","max","min","dateChange"],["matSuffix","",3,"for"],["pickerStart",""],["matInput","","placeholder","DD/MM/YYYY","formControlName","endDate","required","",3,"matDatepicker","max","min"],["pickerEnd",""],[1,"footer-advanced-search"],[1,"cta",3,"disabled","ngClass","click"],[1,"row","itemTraffic"],[1,"box"],[1,"titleBox"],[1,"wrapperIcons"],["class","box",4,"ngIf"],[1,"iconBox","cursor-pointer",3,"ngClass","click"],[1,"ico-Icon",3,"ngClass"],[3,"ngSwitch"],["class","imageLabel",4,"ngSwitchCase"],[1,"imageLabel"],["class","cta light",3,"ngClass","click",4,"ngFor","ngForOf"],[1,"cta","light",3,"ngClass","click"],[1,"euro"],[1,"data"],[1,"period"],[3,"type"],[1,"sort-component"],[3,"trafficItems","selectDetail"],[3,"detail"],[1,"export-report-container"],[1,"cta",3,"click"]],template:function(a,r){1&a&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"a",4),e.NdJ("click",function(){return r.returnToHome()}),e._uU(5,"Home"),e.qZA()(),e.TgZ(6,"div",3)(7,"span"),e._uU(8,"Traffico"),e.qZA()(),e.TgZ(9,"div",3),e.YNc(10,Fe,2,0,"span",5),e.YNc(11,Ne,2,0,"span",5),e.qZA()(),e.YNc(12,Ee,2,0,"h1",6),e.YNc(13,qe,2,0,"h1",6),e.YNc(14,Je,2,0,"h2",7),e.YNc(15,Re,2,0,"h2",7),e.qZA(),e.TgZ(16,"div",8),e.YNc(17,ke,2,0,"div",9),e.TgZ(18,"div",10)(19,"div",11),e._uU(20," Il tuo numero: "),e.qZA(),e.TgZ(21,"div",12),e._uU(22),e.qZA(),e.TgZ(23,"div",13),e._uU(24),e.qZA()()(),e.YNc(25,ot,11,6,"div",14),e.YNc(26,ct,1,0,"app-spinner",5),e.YNc(27,lt,2,1,"ng-container",5),e.qZA()),2&a&&(e.xp6(10),e.Q6J("ngIf","fixed"!==r.lineType),e.xp6(1),e.Q6J("ngIf","fixed"===r.lineType),e.xp6(1),e.Q6J("ngIf","fixed"!==r.lineType),e.xp6(1),e.Q6J("ngIf","fixed"===r.lineType),e.xp6(1),e.Q6J("ngIf","fixed"!==r.lineType),e.xp6(1),e.Q6J("ngIf","fixed"===r.lineType),e.xp6(2),e.Q6J("ngIf",!r.isEU),e.xp6(
15),e.hij(" ",r.msisdn," "),e.xp6(2),e.hij(" ",r.tariffPlan," "),e.xp6(1),e.Q6J("ngIf",r.trafficData&&!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",r.loading),e.xp6(1),e.Q6J("ngIf",r.displayErrorMessage))},dependencies:[c.mk,c.sg,c.O5,c.RF,c.n9,te.O,Z.H,q.KE,q.hX,q.R9,J.Mq,J.hl,J.nW,T._Y,T.Fj,T.JJ,T.JL,T.Q7,T.sg,T.u,ie.Nt,Le,we,c.gd],encapsulation:2}),n})();var I=f(5697),ne=f(5439),ae=f(9301);let re=(()=>{const s=class{constructor(t,a){this.environment=t,this.http=a,this.trafficDetailApiUrl="/trafficdetail"}getTrafficDetail(t,a,r,l,u,x){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/trafficDetail",{msisdn:t,dateFrom:a?a.toISOString():void 0,dateTo:r?r.toISOString():void 0,type:l,page:u,advancedSearch:x}).pipe((0,S.U)(M=>M.error?M.error:M.data))}getTrafficAggregateVerifyStateFile(){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/trafficAggregateVerifyStateFile",{}).pipe((0,S.U)(t=>t.error?t.error:t.data))}generateReport(){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/reportDownload/generate",{}).pipe((0,S.U)(t=>t.error?t.error:t.data))}getAggregatedTraffic(t,a,r){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/getAggregatedTraffic",{msisdnList:t,dateFrom:a.toISOString(),dateTo:r.toISOString(),piva:void 0,rowId:void 0}).pipe((0,S.U)(l=>l.error?l.error:l.data))}getAggregatedTrafficDetail(t,a,r){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/getAggregatedTrafficDetail",{msisdn:t,dateFrom:a,dateTo:r}).pipe((0,S.U)(l=>l.error?l.error:l.data))}consistencyVerifyStateFile(){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/consistencyVerifyStateFile",{}).pipe((0,S.U)(t=>t.error?t.error:t.data))}generateConsistency(t){return this.http.post(this.environment.baseUrlApi+this.trafficDetailApiUrl+"/consistencyGenerate",{type:t}).pipe((0,S.U)(a=>a.error?a.error:a.data))}};let n=s;return s.\u0275fac=function(a){return new(a||s)(e.LFG(j.p),e.LFG(X.eN))},s.\u0275prov=e.Yz7({token:s,factory:s.\u0275fac}),n})();var gt=f(8098),se=f(1948),oe=f(4385),ft=f(3238);function dt(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"button",29),e.NdJ("click",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.generateReport())}),e.TgZ(1,"div"),e._uU(2,"GENERA"),e.qZA()()}}function pt(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"button",29),e.NdJ("click",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.downloadReport())}),e.TgZ(1,"div"),e._uU(2,"SCARICA"),e.qZA()()}}function ht(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",30)(2,"app-filter-tag",31),e.NdJ("filterRemoved",function(a){e.CHM(i);const r=e.oxw();return e.KtG(r.onFilterRemoved(a))})("resetFilter",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.getMobileLines())}),e.qZA()(),e.BQk()}if(2&n){const i=e.oxw();e.xp6(2),e.Q6J("sidebarConfig",i.sidebarConfig)("filterEvent",i.newFilterEvent)}}function _t(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"div",32)(1,"div",33),e._uU(2),e.qZA(),e.TgZ(3,"div",34)(4,"button",35),e.NdJ("click",function(a){e.CHM(i);const r=e.oxw();return e.KtG(r.goBack(a))}),e.qZA(),e.TgZ(5,"span"),e._uU(6),e.qZA(),e.TgZ(7,"button",36),e.NdJ("click",function(a){e.CHM(i);const r=e.oxw();return e.KtG(r.goForward(a))}),e.qZA()()()}if(2&n){const i=e.oxw();e.xp6(2),e.lnq("",i.fromNum,"-",i.toNum>i.totalRecords?i.totalRecords:i.toNum," di ",i.totalRecords,""),e.xp6(2),e.Q6J("disabled",1===i.fromNum),e.xp6(2),e.AsE("Pag ",i.currentPage," di ",i.totalPages,""),e.xp6(1),e.Q6J("disabled",i.currentPage===i.totalPages)}}function ut(n,s){1&n&&(e.ynx(0),e.TgZ(1,"div",37),e._uU(2,"LISTA SIM"),e.qZA(),e._UZ(3,"app-error-message",38),e.BQk())}function mt(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"mat-checkbox",45),e.NdJ("click",function(a){e.CHM(i);const r=e.oxw(2);return e.KtG(r.clickMobileLine(a))})("change",function(a){e.CHM(i);const r=e.oxw().$implicit,l=e.oxw();return e.KtG(l.checkMobileLine(r,a))}),e.qZA()}if(2&n){const i=e.oxw().$implicit;e.Q6J("checked",i.selected)}}const Tt=function(n){return{active:n}};function vt(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"div",39),e.NdJ("click",function(){const r=e.CHM(i).$implicit,l=e.oxw();return e.KtG(l.selectMobileLine(r))}),e.TgZ(1,"div",40),e.YNc(2,mt,1,1,"mat-checkbox",41),e.qZA(),e.TgZ(3,"div",40)(4,"div",42),e._uU(5),e.qZA(),e.TgZ(6,"div",43),e._uU(7),e.qZA(),e.TgZ(8,"div",44),e._uU(9),e.qZA()()()}if(2&n){const i=s.$implicit,t=e.oxw();e.Q6J("ngClass",e.VKq(5,Tt,t.multipleSelectionForm.value?t.multiSelectedLines.has(i.msisdn):(null==t.selectedMobileLineInfo?null:t.selectedMobileLineInfo.msisdn)===i.msisdn)),e.xp6(2),e.Q6J("ngIf",t.showSimCheckbox),e.xp6(3),e.Oqu("prepaid"===i.type?"PREPAGATA":"POSTPAGATA"),e.xp6(2),e.Oqu(i.msisdn),e.xp6(2),e.Oqu(i.tariffPlanDescription)}}
1function bt(n,s){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.ALo(2,"titlecase"),e.ALo(3,"date"),e.qZA()),2&n){const i=s.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",e.lcZ(2,2,e.gM2(3,4,i,"MMMM",void 0,"it-IT"))," ")}}function Ct(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",46)(2,"div",12)(3,"span"),e._uU(4,"SIM selezionate:"),e.qZA(),e.TgZ(5,"span",47),e._uU(6),e.qZA()(),e.TgZ(7,"div",48)(8,"span"),e._uU(9,"Dati riferiti al mese di"),e.qZA(),e.TgZ(10,"mat-select",49),e.NdJ("selectionChange",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.selectMonth())}),e.YNc(11,bt,4,9,"mat-option",50),e.qZA()()(),e.BQk()}if(2&n){const i=e.oxw();e.xp6(6),e.Oqu(i.selectedSimCards),e.xp6(4),e.Q6J("formControl",i.selectedMonth),e.xp6(1),e.Q6J("ngForOf",i.monthList)}}function xt(n,s){1&n&&(e.ynx(0),e.TgZ(1,"div",51),e._uU(2," Clicca su aggrega per visualizzare i dettagli delle sim selezionate. "),e.qZA(),e.BQk())}function Mt(n,s){1&n&&e._UZ(0,"img",64)}function Ot(n,s){1&n&&e._UZ(0,"img",64)}function At(n,s){1&n&&e._UZ(0,"img",65)}function St(n,s){1&n&&e._UZ(0,"img",66)}function yt(n,s){1&n&&e._UZ(0,"img",67)}const Pt=function(n,s,i){return{green:n,orange:s,blue:i}};function Dt(n,s){if(1&n&&(e.TgZ(0,"div",12)(1,"div",54)(2,"div",55),e.YNc(3,Mt,1,0,"img",56),e.YNc(4,Ot,1,0,"img",57),e.YNc(5,At,1,0,"img",58),e.YNc(6,St,1,0,"img",59),e.YNc(7,yt,1,0,"img",60),e.qZA(),e.TgZ(8,"div",61)(9,"span"),e._uU(10),e.ALo(11,"uppercase"),e.qZA()(),e.TgZ(12,"div",62)(13,"span"),e._uU(14),e.ALo(15,"uppercase"),e.qZA(),e.TgZ(16,"span",63),e._uU(17),e.qZA()()()()),2&n){const i=s.$implicit;e.xp6(2),e.Q6J("ngClass",e.kEZ(13,Pt,"1"!==i.type&&"2"!==i.type&&"3"!==i.type,"1"===i.type,"2"===i.type||"3"===i.type))("ngSwitch",i.type),e.xp6(2),e.Q6J("ngSwitchCase","0"),e.xp6(1),e.Q6J("ngSwitchCase","1"),e.xp6(1),e.Q6J("ngSwitchCase","2"),e.xp6(1),e.Q6J("ngSwitchCase","3"),e.xp6(3),e.Oqu(e.lcZ(11,9,i.title)),e.xp6(4),e.Oqu(e.lcZ(15,11,i.label)),e.xp6(3),e.Oqu(i.value)}}function Lt(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"div",52),e.YNc(2,Dt,18,17,"div",53),e.qZA(),e.BQk()),2&n){const i=e.oxw();e.xp6(2),e.Q6J("ngForOf",i.trafficItemList)}}function Zt(n,s){if(1&n&&(e.TgZ(0,"mat-option",25),e._uU(1),e.ALo(2,"titlecase"),e.ALo(3,"date"),e.qZA()),2&n){const i=s.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",e.lcZ(2,2,e.gM2(3,4,i,"MMMM",void 0,"it-IT"))," ")}}function Ut(n,s){1&n&&(e.TgZ(0,"div",77),e._uU(1,"Totale"),e.qZA())}function It(n,s){if(1&n&&(e.TgZ(0,"div",78),e._uU(1),e.qZA()),2&n){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.label||"-")}}const B=function(n){return{total:n}};function wt(n,s){if(1&n&&(e.TgZ(0,"div",72),e.ynx(1,73),e.YNc(2,Ut,2,0,"div",74),e.YNc(3,It,2,1,"div",75),e.BQk(),e.TgZ(4,"div",76),e._uU(5),e.qZA()()),2&n){const i=s.$implicit;e.xp6(1),e.Q6J("ngSwitch",i.category),e.xp6(1),e.Q6J("ngSwitchCase","total"),e.xp6(2),e.Q6J("ngClass",e.VKq(4,B,"total"===i.category)),e.xp6(1),e.Oqu(i.value||"-")}}function Ft(n,s){1&n&&(e.TgZ(0,"div",77),e._uU(1,"Totale"),e.qZA())}function Nt(n,s){if(1&n&&(e.TgZ(0,"div",78),e._uU(1),e.qZA()),2&n){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.label||"-")}}function Et(n,s){if(1&n&&(e.TgZ(0,"div",72),e.ynx(1,73),e.YNc(2,Ft,2,0,"div",74),e.YNc(3,Nt,2,1,"div",75),e.BQk(),e.TgZ(4,"div",76),e._uU(5),e.qZA()()),2&n){const i=s.$implicit;e.xp6(1),e.Q6J("ngSwitch",i.category),e.xp6(1),e.Q6J("ngSwitchCase","total"),e.xp6(2),e.Q6J("ngClass",e.VKq(4,B,"total"===i.category)),e.xp6(1),e.Oqu(i.value||"-")}}function qt(n,s){1&n&&(e.TgZ(0,"div",77),e._uU(1,"Totale"),e.qZA())}function Jt(n,s){if(1&n&&(e.TgZ(0,"div",78),e._uU(1),e.qZA()),2&n){const i=e.oxw().$implicit;e.xp6(1),e.Oqu(i.label||"-")}}function Rt(n,s){if(1&n&&(e.TgZ(0,"div",72),e.ynx(1,73),e.YNc(2,qt,2,0,"div",74),e.YNc(3,Jt,2,1,"div",75),e.BQk(),e.TgZ(4,"div",76),e._uU(5),e.qZA()()),2&n){const i=s.$implicit;e.xp6(1),e.Q6J("ngSwitch",i.category),e.xp6(1),e.Q6J("ngSwitchCase","total"),e.xp6(2),e.Q6J("ngClass",e.VKq(4,B,"total"===i.category)),e.xp6(1),e.Oqu(i.value||"-")}}
1function kt(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"div",69)(2,"div",12)(3,"div",70),e._UZ(4,"img",64),e._uU(5," CHIAMATE "),e.qZA(),e.YNc(6,wt,6,6,"div",71),e.qZA(),e.TgZ(7,"div",12)(8,"div",70),e._UZ(9,"img",65),e._uU(10," MESSAGGI "),e.qZA(),e.YNc(11,Et,6,6,"div",71),e.qZA(),e.TgZ(12,"div",12)(13,"div",70),e._UZ(14,"img",66),e._uU(15," INTERNET "),e.qZA(),e.YNc(16,Rt,6,6,"div",71),e.qZA()(),e.BQk()),2&n){const i=e.oxw(3);e.xp6(6),e.Q6J("ngForOf",i.voice),e.xp6(5),e.Q6J("ngForOf",i.sms),e.xp6(5),e.Q6J("ngForOf",i.data)}}function Qt(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"div",78),e._uU(2,"Internazionali"),e.qZA(),e.TgZ(3,"div",80),e._uU(4),e.qZA(),e.BQk()),2&n){const i=e.oxw().$implicit;e.xp6(4),e.AsE(" ",i.internationalValue||"-"," / ",i.amountInternational||"0 \u20ac"," ")}}function Yt(n,s){if(1&n&&(e.TgZ(0,"div",12)(1,"div",78),e._uU(2,"Nazionali"),e.qZA(),e.TgZ(3,"div",80),e._uU(4),e.qZA(),e.YNc(5,Qt,5,2,"ng-container",21),e.TgZ(6,"div",78),e._uU(7,"Roaming"),e.qZA(),e.TgZ(8,"div",80),e._uU(9),e.qZA()()),2&n){const i=s.$implicit;e.xp6(4),e.AsE(" ",i.nationalValue," / ",i.amountNational," "),e.xp6(1),e.Q6J("ngIf",i.internationalValue||i.amountInternational),e.xp6(4),e.AsE(" ",i.roamingValue," / ",i.amountRoaming," ")}}function Bt(n,s){if(1&n&&(e.ynx(0),e.TgZ(1,"div",37),e._uU(2,"CONSUMI EXTRA BUNDLE "),e.TgZ(3,"span"),e._uU(4),e.qZA()(),e.TgZ(5,"div",79),e.YNc(6,Yt,10,5,"div",53),e.qZA(),e.BQk()),2&n){const i=e.oxw(3);e.xp6(4),e.Oqu(i.selectedMobileLineInfo.aggregatedTrafficDetail.totalAmountExtra||"0.00 \u20ac"),e.xp6(2),e.Q6J("ngForOf",i.selectedMobileLineInfo.aggregatedTrafficDetail.trafficItemList)}}function zt(n,s){if(1&n&&(e.ynx(0),e.YNc(1,kt,17,3,"ng-container",21),e.YNc(2,Bt,7,2,"ng-container",21),e.BQk()),2&n){const i=e.oxw(2);e.xp6(1),e.Q6J("ngIf",i.selectedMobileLineInfo.aggregatedTrafficDetail),e.xp6(1),e.Q6J("ngIf",i.selectedMobileLineInfo.aggregatedTrafficDetail&&i.selectedMobileLineInfo.aggregatedTrafficDetail.trafficItemList&&i.selectedMobileLineInfo.aggregatedTrafficDetail.trafficItemList.length)}}function Gt(n,s){1&n&&e._UZ(0,"app-error-message",81),2&n&&e.Q6J("type","error")}function Kt(n,s){1&n&&e._UZ(0,"app-spinner")}function $t(n,s){if(1&n){const i=e.EpF();e.ynx(0),e.TgZ(1,"div",46)(2,"div",12)(3,"span"),e._uU(4,"Linea:"),e.qZA(),e.TgZ(5,"span",47),e._uU(6),e.qZA()(),e.TgZ(7,"div",48)(8,"span"),e._uU(9,"Dati riferiti al mese di: "),e.qZA(),e.TgZ(10,"mat-select",49),e.NdJ("selectionChange",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.selectMonth())}),e.YNc(11,Zt,4,9,"mat-option",50),e.qZA()()(),e.YNc(12,zt,3,2,"ng-container",21),e.YNc(13,Gt,1,1,"app-error-message",68),e.YNc(14,Kt,1,0,"app-spinner",21),e.BQk()}if(2&n){const i=e.oxw();e.xp6(6),e.Oqu(i.selectedMobileLineInfo.msisdn),e.xp6(4),e.Q6J("formControl",i.selectedMonth),e.xp6(1),e.Q6J("ngForOf",i.monthList),e.xp6(1),e.Q6J("ngIf",!i.aggregatedTrafficDetailWithError&&!i.isLoadingAggregate),e.xp6(1),e.Q6J("ngIf",i.aggregatedTrafficDetailWithError),e.xp6(1),e.Q6J("ngIf",i.isLoadingAggregate)}}function Ht(n,s){1&n&&(e.ynx(0),e.TgZ(1,"div",51),e._uU(2," Seleziona una sim per visualizzarne i dettagli. "),e.qZA(),e.BQk())}function Vt(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"button",85),e.NdJ("click",function(){e.CHM(i);const a=e.oxw(2);return e.KtG(a.resetSelectedMobileLine())}),e._uU(1," RESET AGGREGATO"),e.qZA()}}function Wt(n,s){if(1&n){const i=e.EpF();e.TgZ(0,"div",82)(1,"button",83),e.NdJ("click",function(){e.CHM(i);const a=e.oxw();return e.KtG(a.getAggregatedTraffic())}),e._uU(2," AGGREGA "),e.qZA(),e.YNc(3,Vt,2,0,"button",84),e.qZA()}if(2&n){const i=e.oxw();e.xp6(1),e.Q6J("disabled",i.fileState&&0===i.selectedMobileLineList.value.length),e.xp6(2),e.Q6J("ngIf",i.trafficItemList||i.selectedMobileLineList.value.length>0)}}const jt=[{path:"",component:Y},{path:"linee/mobile",component:be},{path:"linee/mobile/dettaglio",component:Y},{path:"linee/fisso",component:pe},{path:"linee/fisso/dettaglio",component:Y},{path:"aggregato",component:(()=>{const s=class{constructor(t,a,r,l,u,x,M,z,G,K){this.optionService=t,this.offerService=a,this.trafficDetailService=r,this.supportService=l,this.dialogService=u,this.spinnerService=x,this.sidebarService=M,this.filterService=z,this.router=G,this.scrollTo=K,this.isLoading=!0,this.isLoadingPhoneList=!0,this.isLoadingAggregate=!1,this.firstLoad=!0,this._unsubscribeSignal$=new O.x,this.tariffPlanList=[],this.multiSelectedLines=new Set,this.trafficAggregateForm=new T.cw({mobileLineList:new T.Oe([]),selectedMobileLineList:new T.NI([],this.emptyArrayValidator()),selectedMonth:new T.NI,multipleSelectionForm:new T.NI(!1)}),this.selectedSimCards=0,this.canLoadMore=!1,this.currentOffset=0,this.pageSize=20,this.newFilterEvent={}
1,this.showFilterTag=!0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.totalRecords=0,this.totalPages=0,this.showSimCheckbox=!1,this.errorMessageType="empty",this.displayErrorMessage=!1,this.isFirstReportGenerationAttempt=!0,this.monthList=[],this.readyToDownload=!1,this.tableItems=[],this.errorModal=w=>{this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"tid"in w&&w.error.message||w.message,cancelText:"Annulla",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})},this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.popolateMonthSelectionList()}get mobileLineList(){return this.trafficAggregateForm.get("mobileLineList")}get selectedMobileLineList(){return this.trafficAggregateForm.get("selectedMobileLineList")}get selectedMonth(){return this.trafficAggregateForm.get("selectedMonth")}get multipleSelectionForm(){return this.trafficAggregateForm.get("multipleSelectionForm")}get data(){return this.selectedMobileLineInfo?.aggregatedTrafficDetail?.details?.filter(t=>"data"===t.type)||[]}get voice(){return this.selectedMobileLineInfo?.aggregatedTrafficDetail?.details?.filter(t=>"voice"===t.type)||[]}get sms(){return this.selectedMobileLineInfo?.aggregatedTrafficDetail?.details?.filter(t=>"sms"===t.type)||[]}ngOnInit(){this.filterService.filterEvent$.pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe(t=>{this.newFilterEvent=t,this.mobileLineList.clear(),this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,t?(this.filter=new U.z(void 0,t.name?t.name:void 0,t.type?t.type:void 0,void 0,t.fullText?t.fullText:void 0,t.roaming?t.roaming:void 0),this.getMobileLines(this.filter)):(this.filter=void 0,this.getMobileLines())})}getDistinctTariffPlans(){this.optionService.getDistinctTariffPlans().pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:t=>{this.tariffPlanList=(0,I.G)(t)?[]:t.pntfList.filter((a,r,l)=>l.findIndex(u=>u.code===a.code)===r),this.setupFilters()},error:t=>{this.tariffPlanList=[],this.setupFilters(),t&&400!==t.status&&this.errorHttpModal(),this.spinnerService.disable()}})}getMobileLines(t,a){this.spinnerService.enable(),this.isLoadingPhoneList=!0,this.firstLoad=!1;const r=this.createRequestModel(t);this.offerService.getMobileList(r).pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:l=>{(0,I.G)(l)?(a?this.errorMessageType="empty":this.mobileLineList.clear(),this.canLoadMore=!1,this.displayErrorMessage=!0):((!l.mobileLinesList||0===l.mobileLinesList.length)&&(this.errorMessageType=t?"empty_filter_generic":"empty",this.displayErrorMessage=!0),this.canLoadMore=!l.lastPage,this.totalRecords=l.technicalInfo?l.technicalInfo.totalRecords:0,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.mobileLineList.clear(),l.mobileLinesList&&l.mobileLinesList.length&&l.mobileLinesList.forEach(u=>{(this.multiSelectedLines.has(u.msisdn)||this.selectedMobileLineList.value.some(x=>x.msisdn===u.msisdn))&&(u.selected=!0),this.mobileLineList.push(new T.NI(u))}),this.mobileLineList.length>0&&0===this.tableItems.length&&this.getDistinctTariffPlans()),this.spinnerService.disable(),this.isLoading=!1,this.isLoadingPhoneList=!1},error:l=>{400===l.status?a||(this.errorMessageType="empty"):(this.mobileLineList.clear(),this.errorHttpModal(),this.mobileLineList.clear(),this.currentOffset=0,this.errorMessageType="error"),this.canLoadMore=!1,this.isLoading=!1,this.isLoadingPhoneList=!1,this.displayErrorMessage=!0,this.spinnerService.disable()}})}clickMobileLine(t){t.stopPropagation()}checkMobileLine(t,a){const r=this.mobileLineList.value.filter(u=>u.msisdn===t.msisdn)[0];r.selected=a.checked,this.selectedSimCards=this.selectedSimCards+(a.checked?1:-1),this.selectedMobileLineList.value.length>1&&this.trafficItemList&&this.trafficItemList.length>0&&a.checked&&(this.trafficItemList=void 0);const l=this.selectedMobileLineList.value.findIndex(u=>u.msisdn===t.msisdn);-1!==l?(this.selectedMobileLineList.value.splice(l,1),this.multipleSelectionForm.value&&this.multiSelectedLines.delete(t.msisdn)):(this.selectedMobileLineList.value.push(r),this.multipleSelectionForm.value&&this.multiSelectedLines.add(t.msisdn)),this.selectedMobileLineList.updateValueAndValidity()}selectMobileLine(t){if(this.multipleSelectionForm.value){if(!this.multiSelectedLines.has(t.msisdn)&&this.selectedMobileLineList.value.length>1&&this.trafficItemList&&this.trafficItemList.length>0&&(this.trafficItemList=void 0),this.multiSelectedLines.has(t.msisdn)){this.multiSelectedLines.delete(t.msisdn),t.selected=!1;const a=this.selectedMobileLineList.value.findIndex(r=>r.msisdn===t.msisdn);-1!==a&&this.selectedMobileLineList.value.splice(a,1),this.selectedSimCards=Math.max(0,this.selectedSimCards-1)}else this.multiSelectedLines.add(t.msisdn),t.selected=!0,this.selectedMobileLineList.value.some(a=>a.msisdn===t.msisdn)||this.selectedMobileLineList.value.push(t),this.selectedSimCards=this.selectedSimCards+1;this.selectedMobileLineList.updateValueAndValidity()}else this.selectedMonth.setValue(this.monthList[0]),this.selectedMobileLineInfo?.msisdn===t.msisdn?this.selectedMobileLineInfo=void 0:(this.selectedMobileLineInfo=t,this.getAggregatedTrafficDetail(t))}getTrafficAggregateVerifyStateFile(){this.spinnerService.enable(),this.trafficDetailService.getTrafficAggregateVerifyStateFile().pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:t=>{this.fileState=(0,I.G)(t)?void 0:t.status,this.firstLoad&&this.getMobileLines()},error:t=>{this.fileState=void 0,this.spinnerService.disable()}})}downloadReport(){this.spinnerService.enable(),this.dialogService.open({title:"Download in corso...",message:"Il dettaglio traffico sar\xe0 disponibile a breve, attendi qualche secondo..",logo:!1,hasEscape:!0,hasCta:!1,hasS
1pinner:!0}),this.supportService.downloadReport({}).pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:a=>{if(this.dialogService.close(),!a||"application/json"===a.type){const u=new FileReader;return u.onload=()=>{try{const x=JSON.parse(u.result);console.error("Errore download report:",x)}catch{}this.downloadReportErrorModal(),this.spinnerService.disable()},void u.readAsText(a)}this.dialogService.open({title:"Dettaglio traffico",logo:!0,logoType:"success",message:'Il file Excel con il dettaglio traffico degli ultimi 90 giorni \xe8 stato scaricato con successo e salvato nella cartella "Download".',confirmText:"OK",confirmOnly:!0,hasEscape:!0});const r=new Blob([a],{type:"application/vnd.ms-excel"}),l=document.createElement("a");l.href=window.URL.createObjectURL(r),l.download="aggregate_report.xlsx",l.click(),this.spinnerService.disable()},error:a=>{console.log(a,"ERROR DOWNLOAD REPORT"),this.dialogService.close(),this.downloadReportErrorModal(),this.spinnerService.disable()}})}downloadReportErrorModal(){this.dialogService.open({title:"QUALCOSA NON VA",logo:!0,logoType:"error",message:"Non \xe8 stato possibile scaricare il dettaglio traffico.",confirmText:"Riprova",confirmOnly:!0,hasEscape:!0})}generateReport(){this.spinnerService.enable(),this.dialogService.open({title:"Generazione in corso...",message:'La generazione del dettaglio traffico \xe8 in corso. Al termine sar\xe0 possibile salvare il file nel tuo computer premendo il pulsante "SCARICA" entro 6 ore..',logo:!1,hasEscape:!0,hasCta:!1,hasSpinner:!0}),this.trafficDetailService.generateReport().pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:t=>{this.dialogService.close(),(0,I.G)(t)?this.generateReportErrorModal():!t||t.reportGenerated?(this.fileState="ready",this.readyToDownload=!0):(this.fileState="processing",this.readyToDownload=!1,this.dialogService.open({title:"Generazione file",message:"L'elaborazione sta richiedendo pi\xf9 del previsto.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"info"})),this.isFirstReportGenerationAttempt=!1,this.spinnerService.disable()},error:t=>{this.dialogService.close(),this.generateReportErrorModal(),this.spinnerService.disable()}})}generateReportErrorModal(){this.dialogService.open({title:"Qualcosa non va",message:"Non \xe8 stato possibile generare l'estratto del traffico in questo momento.",confirmText:"OK",confirmOnly:!0,logo:!0,logoType:"error"}),this.fileState="idle",this.readyToDownload=!1,this.isFirstReportGenerationAttempt=!1}getAggregatedTraffic(t){this.spinnerService.enable(),this.trafficDetailService.getAggregatedTraffic(this.selectedMobileLineList.value.map(a=>({msisdn:a.msisdn})),this.getUTCStartMonth(),this.getUTCEndMonth()).pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:a=>{console.log(this.selectedMobileLineList,"SELECTEDMOBILELINELIST"),(0,I.G)(a)?(this.trafficItemList=void 0,this.selectedSimCards=0):(this.trafficItemList=a.trafficItemList,this.selectedSimCards=this.selectedMobileLineList.value.length),this.scrollToTop(),t&&this.selectedMobileLineInfo?this.getAggregatedTrafficDetail(this.selectedMobileLineInfo):this.spinnerService.disable()},error:a=>{a&&400!==a.status?this.errorHttpModal():(this.scrollToTop(),t&&this.selectedMobileLineInfo?this.getAggregatedTrafficDetail(this.selectedMobileLineInfo):this.spinnerService.disable()),this.trafficItemList=void 0,this.selectedSimCards=0}})}redirectToMobileTraffic(){this.router.navigateByUrl("/traffico/linee/mobile")}resetSelectedMobileLine(){this.selectedMobileLineInfo=void 0,this.mobileLineList.value.forEach(t=>{t.selected=!1}),this.selectedMobileLineList.setValue([]),this.trafficItemList=void 0,this.selectedSimCards=0,this.selectedMonth.setValue(this.monthList[0]),this.multiSelectedLines.clear()}selectMonth(){this.selectedSimCards>0?this.getAggregatedTraffic(!0):this.selectedMobileLineInfo&&this.getAggregatedTrafficDetail(this.selectedMobileLineInfo)}getAggregatedTrafficDetail(t){this.aggregatedTrafficDetailWithError=!1,t.aggregatedTrafficDetail&&t.aggregatedMonth&&this.selectedMonth.value.getTime()===t.aggregatedMonth.getTime()?(this.isLoadingAggregate=!1,this.spinnerService.disable()):(this.isLoadingAggregate=!0,this.trafficDetailService.getAggregatedTrafficDetail(t.msisdn,this.getUTCStartMonth(),this.getUTCEndMonth()).pipe((0,C.R)(this._unsubscribeSignal$.asObservable())).subscribe({next:a=>
1{(0,I.G)(a)?(t.aggregatedTrafficDetail=void 0,this.aggregatedTrafficDetailWithError=!0):(t.aggregatedTrafficDetail=a,t.aggregatedMonth=this.selectedMonth.value),this.isLoadingAggregate=!1,this.spinnerService.disable()},error:a=>{a&&400!==a.status&&this.errorHttpModal(),this.aggregatedTrafficDetailWithError=!0,this.isLoadingAggregate=!1,this.spinnerService.disable()}}))}goToTrafficDetail(){this.router.navigateByUrl("/traffico/linee/mobile/dettaglio",{state:{msisdn:this.selectedMobileLineInfo.msisdn,lineType:this.selectedMobileLineInfo.type,tariffPlan:this.selectedMobileLineInfo.tariffPlanDescription}})}popolateMonthSelectionList(){this.monthList=[this.getMonth("currentMonth"),this.getMonth("lastMonth"),this.getMonth("secondLastMonth")],this.selectedMonth.setValue(this.monthList[0])}getMonth(t){const a=(new Date).getMonth(),r=(new Date).getFullYear();let l=a;switch(t){case"lastMonth":l=a-1;break;case"secondLastMonth":l=a-2}return new Date(r,l,1)}errorHttpModal(){this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Il servizio non \xe8 al momento disponibile, riprova pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}emptyArrayValidator(){return t=>t.value&&t.value.length>0?null:{emptyArray:!0}}scrollToTop(){this.scrollTo.element("traffic-aggregate-anchor")}getUTCStartMonth(){const t=this.selectedMonth.value;return new Date(Date.UTC(t.getFullYear(),t.getMonth(),ne(t).startOf("month").toDate().getDate(),0,0,0,0))}getUTCEndMonth(){const t=this.selectedMonth.value;return new Date(Date.UTC(t.getFullYear(),t.getMonth(),ne(t).endOf("month").toDate().getDate(),23,59,59,999))}onFilterRemoved(t){if(this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,"Abilitato"===t.value?t.value=!0:"Non abilitato"===t.value&&(t.value=!1),t&&this.filter){if(this.filter.fullText===t)this.filter=void 0,this.getMobileLines(this.filter);else{const a=Object.keys(this.filter).find(r=>this.filter&&this.filter[r]===t.value);if(a){const r={...this.filter};r[a]=void 0,this.filter=r,this.getMobileLines(this.filter)}}this.sidebarConfig.filtersConfig.filter(a=>{(a.value===t.valueOf||a.value===t.value)&&(a.value=void 0)})}}setupFilters(){this.tableItems=[{desc:"Piano Tariffario",label:"name",value:"code"},{desc:"Tipologia",label:"type",value:"type"},{desc:"Roaming",label:"roaming",value:"roaming"}],this.mobileLineList&&this.tariffPlanList&&(this.sidebarService.setSidebarConfiguration(this.filterService.getTableSelectFilters(this.sidebarConfig,this.tableItems,this.mobileLineList.value,this.tariffPlanList)),this.sidebarService.setSidebarConfiguration(this.filterService.getFullTextOfferFilters(this.mobileLineList.value,this.sidebarConfig)))}createRequestModel(t){return new U.T(this.currentOffset,this.pageSize,t||void 0)}enableMoreSimsSelection(){[...this.selectedMobileLineList.value].forEach(t=>{this.checkMobileLine(t,{checked:!1}),this.multiSelectedLines.clear()}),this.selectedMobileLineList.setValue([]),this.selectedMobileLineInfo=void 0,this.trafficItemList=void 0,this.showSimCheckbox=!this.showSimCheckbox}goForward(t){this.currentOffset=this.currentOffset+this.pageSize,this.fromNum=this.currentOffset+1,this.toNum=this.currentOffset+this.pageSize,this.currentPage=Math.ceil(this.currentOffset/this.pageSize)+1,this.getMobileLines(this.filter)}goBack(t){this.currentOffset=this.currentOffset-this.pageSize,this.fromNum=this.currentOffset+1,this.toNum=this.currentOffset+this.pageSize,this.currentPage=Math.ceil(this.currentOffset/this.pageSize)+1,this.getMobileLines(this.filter)}ngOnDestroy(){this.spinnerService.disable(),this.sidebarService.resetSidebarConfiguration(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.filterService.resetFilterEvent(),this._unsubscribeSignal$.next(),this._unsubscribeSignal$.unsubscribe()}};let n=s;return s.\u0275fac=function(a){return new(a||s)(e.Y36(ae.f),e.Y36(g.K),e.Y36(re),e.Y36(k.g),e.Y36(ee.D),e.Y36(o.V),e.Y36(b.P),e.Y36(L.i),e.Y36(_.F0),e.Y36(gt.h))},s.\u0275cmp=e.Xpm({type:s,selectors:[["app-traffic-aggregate"]],decls:49,vars:15,consts:[["form","",1,"main-pages-content","aggregate-traffic",3,"formGroup"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],["id","traffic-aggregate-anchor"],[1,"buttonHeaderBar"],[1,"toggle"],["type","radio","id","traffic",3,"click"],["for","traffic"],["type","radio","id","aggregate","checked",""],["for","aggregate"],[1,"headerDetail"],[1,"box"],[1,"paragraph"],["class","cta",3,"click",4,"ngIf"],[1,"aggregate","row","vertical"],[1,"aggregateTitle"],[1,"mainDetail"],[1,"mobileList"],[1,"row","sortDetail"],[1,"bgOptions"],[4,"ngIf"],[1,"box-header"],[1,"box","multipleSelectionForm"],["aria-label","","formControlName","multipleSelectionForm",3,"change"],[3,"value"],["class","paginationBox",4,"ngIf"],["formArrayName","mobileLineList","class","itemOptions itemOptionsSmall",3,"ngClass","click",4,"ngFor","ngForOf"],["class","buttonWrapper",4,"ngIf"],[1,"cta",3,"click"],[1,"filtersBox"],[3,"sidebarConfig","filterEvent","filterRemoved","resetFilter"],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],[1,"boxTitle"],["type","empty_f
1ilter_generic"],["formArrayName","mobileLineList",1,"itemOptions","itemOptionsSmall",3,"ngClass","click"],[1,"itemOptions-box"],[3,"checked","click","change",4,"ngIf"],[1,"optionTitle"],[1,"optionNumber"],[1,"optionName"],[3,"checked","click","change"],[1,"row","selectedSim"],[1,"simValue"],[1,"box","row","monthSelection"],[3,"formControl","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[1,"row"],[1,"row","aggregatePieGroup-container"],["class","box",4,"ngFor","ngForOf"],[1,"aggregatePieGroup"],[1,"aggregatePie",3,"ngClass","ngSwitch"],["src","assets/images/ico-chiamate.svg","alt","ico",4,"ngSwitchDefault"],["src","assets/images/ico-chiamate.svg","alt","ico",4,"ngSwitchCase"],["src","assets/images/traffico-ico-sms.svg","alt","ico",4,"ngSwitchCase"],["src","assets/images/traffico-ico-internet.svg","alt","ico",4,"ngSwitchCase"],["src","assets/images/traffico-ico-roaming.svg","alt","ico",4,"ngSwitchCase"],[1,"pieTextBottom"],[1,"pieTextBottomExtra"],[1,"pieValue"],["src","assets/images/ico-chiamate.svg","alt","ico"],["src","assets/images/traffico-ico-sms.svg","alt","ico"],["src","assets/images/traffico-ico-internet.svg","alt","ico"],["src","assets/images/traffico-ico-roaming.svg","alt","ico"],[3,"type",4,"ngIf"],[1,"row","separator","bundle","exBundle"],[1,"category-header"],["class","itemBox",4,"ngFor","ngForOf"],[1,"itemBox"],[3,"ngSwitch"],["class","itemRequest total",4,"ngSwitchCase"],["class","itemRequest",4,"ngSwitchDefault"],[1,"itemReply",3,"ngClass"],[1,"itemRequest","total"],[1,"itemRequest"],[1,"row","separator","exBundle"],[1,"itemReply"],[3,"type"],[1,"buttonWrapper"],[1,"cta",3,"disabled","click"],["class","cta empty",3,"click",4,"ngIf"],[1,"cta","empty",3,"click"]],template:function(a,r){1&a&&(e.TgZ(0,"form",0)(1,"div",1),e._UZ(2,"app-breadcrumbs"),e.TgZ(3,"h1",2),e._uU(4,"TRAFFICO AGGREGATO"),e.qZA(),e.TgZ(5,"h2",3),e._uU(6,"Consulta i dettagli relativi al traffico aggregato"),e.qZA()(),e._UZ(7,"div",4),e.TgZ(8,"div",5)(9,"div",6)(10,"input",7),e.NdJ("click",function(){return r.redirectToMobileTraffic()}),e.qZA(),e.TgZ(11,"label",8),e._uU(12,"TRAFFICO"),e.qZA(),e._UZ(13,"input",9),e.TgZ(14,"label",10),e._uU(15,"AGGREGATO"),e.qZA()()(),e.TgZ(16,"div",11)(17,"div",12)(18,"span",13),e._uU(19,"Scarica l\u2019estratto degli ultimi 90 giorni per le tue SIM prepagate"),e.qZA()(),e.TgZ(20,"div",12),e.YNc(21,dt,3,0,"button",14),e.YNc(22,pt,3,0,"button",14),e.qZA()(),e.TgZ(23,"div",15)(24,"div",12)(25,"span",16),e._uU(26,"Seleziona le SIM di cui vuoi visualizzare l'aggregato"),e.qZA()()(),e.TgZ(27,"div",17)(28,"div",18)(29,"div",19)(30,"div",20),e.YNc(31,ht,3,2,"ng-container",21),e.TgZ(32,"div",22)(33,"div",23)(34,"mat-radio-group",24),e.NdJ("change",function(){return r.enableMoreSimsSelection()}),e.TgZ(35,"mat-radio-button",25),e._uU(36,"Selezione Singola"),e.qZA(),e.TgZ(37,"mat-radio-button",25),e._uU(38,"Selezione Multipla"),e.qZA()()(),e.YNc(39,_t,8,7,"div",26),e.qZA(),e.YNc(40,ut,4,0,"ng-container",21),e.YNc(41,vt,10,7,"div",27),e.qZA(),e.TgZ(42,"div",20),e.YNc(43,Ct,12,3,"ng-container",21),e.YNc(44,xt,3,0,"ng-container",21),e.YNc(45,Lt,3,1,"ng-container",21),e.YNc(46,$t,15,6,"ng-container",21),e.YNc(47,Ht,3,0,"ng-container",21),e.YNc(48,Wt,4,2,"div",28),e.qZA()()()()()),2&a&&(e.Q6J("formGroup",r.trafficAggregateForm),e.xp6(21),e.Q6J("ngIf",!r.readyToDownload),e.xp6(1),e.Q6J("ngIf",r.readyToDownload),e.xp6(9),e.Q6J("ngIf",r.showFilterTag&&r.filter),e.xp6(4),e.Q6J("value",!1),e.xp6(2),e.Q6J("value",!0),e.xp6(2),e.Q6J("ngIf",!r.displayErrorMessage),e.xp6(1),e.Q6J("ngIf",!r.isLoadingPhoneList&&0===r.mobileLineList.length),e.xp6(1),e.Q6J("ngForOf",r.mobileLineList.value),e.xp6(2),e.Q6J("ngIf",r.selectedMobileLineList.value.length>0&&r.showSimCheckbox),e.xp6(1),e.Q6J("ngIf",!r.trafficItemList&&r.selectedSimCards>1&&r.showSimCheckbox),e.xp6(1),e.Q6J("ngIf",r.trafficItemList&&r.showSimCheckbox),e.xp6(1),e.Q6J("ngIf",r.selectedMobileLineInfo&&!r.trafficItemList&&!r.showSimCheckbox),e.xp6(1),e.Q6J("ngIf",!r.selectedMobileLineInfo&&!r.trafficItemList&&r.selectedSimCards<=1&&!r.showSimCheckbox),e.xp6(1),e.Q6J("ngIf",r.selectedMobileLineList.value.length>1))},dependencies:[c.mk,c.sg,c.O5,c.RF,c.n9,c.ED,m.oG,te.O,Z.H,se.VQ,se.U0,D.n,H.u,T._Y,T.JJ,T.JL,T.oH,T.sg,T.u,T.CE,oe.gD,ft.ey,c.gd,c.rS,c.uU],styles:['.aggregate-traffic[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:4rem}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]{position:relative;padding:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .titleItemDetail[_ngcontent-%COMP%]{font-size:2.2rem;font-weight:800;text-align:center;padding-bottom:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .infoDetail[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{place-content:center}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .infoDetail[_ngcontent-%COMP%]   .itemResult[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:300;color:#8b8c8e}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .infoDetail[_ngcontent-%COMP%]   .itemResultDetail[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:800;color:#fc4a14}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .infoDetail[_ngcontent-%COMP%]   .itemResultPeriod[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:400;color:#fc4a14}.aggregate-traffic[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .infoDetail[_ngcontent-%COMP%]   .mat-select-arrow-wrapper[_ngcontent-%COMP%]{top:-1.8rem;position:relative}.aggregate-traffic[_ngcontent-%COMP%]   .headerDetail[_ngcontent-%COMP%]{place-content:flex-end}.aggregate-traffic[_ngcontent-%COMP%]   .headerDetail[_ngcontent-%COMP%]   .cta[_ngcontent-%COMP%]{margin-left:1rem}.aggregate-traffic[_ngcontent-%COMP%]   .aggregate[_ngcontent-%COMP%]{padding:2.4rem 0}.aggregate-traffic[_ngcontent-%COMP%]   .aggregate[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{text-align:center}.aggregate-traffic[_ngcontent-%COMP%]   .aggregate[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .aggregateTitle[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;color:#08080d}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup-container[_ngcontent-%COMP%]{flex-wrap:wrap}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup-container[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{min-width:50%;place-content:center;padding:0 2rem}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-content:center;flex-wrap:wrap;text-align:center;margin-top:3.5rem}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .aggregatePie[_ngcontent-%COMP%]{aspect-ratio:1;position:relative;display:inline-grid;place-content:center;font-size:18px;font-weight:400;font-family:sans-serif;background:#fcfcfc;border-radius:50%;margin:1rem}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .aggregatePie[_ngcontent-%COMP%]:after{content:"";position:absolute;z-index:-1;border-radius:50%;aspect-ratio:1;width:10.4rem;left:-10px;top:-10px;box-shadow:0 1px 10px #0000000f}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .aggregatePie.blue[_ngcontent-%COMP%]:after{background:linear-gradient(180deg,#c9f7ff 0%,#5cd4e8 100%) 0% 0% 
1no-repeat padding-box}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .aggregatePie.green[_ngcontent-%COMP%]:after{background:linear-gradient(180deg,#dceea9 0%,#8ea33f 100%) 0% 0% no-repeat padding-box}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .aggregatePie.orange[_ngcontent-%COMP%]:after{background:linear-gradient(180deg,#f9d396 0%,#f2a329 100%) 0% 0% no-repeat padding-box}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .pieTextBottom[_ngcontent-%COMP%]{margin-top:1.5rem}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .pieTextBottom[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:16px}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .pieTextBottomExtra[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#58595b;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:16px}.aggregate-traffic[_ngcontent-%COMP%]   .aggregatePieGroup[_ngcontent-%COMP%]   .pieTextBottomExtra[_ngcontent-%COMP%]   span.pieValue[_ngcontent-%COMP%]{margin-left:12px;font-weight:700;color:#fc4a14;font-size:20px}.aggregate-traffic[_ngcontent-%COMP%]   .selectedSim[_ngcontent-%COMP%]{margin-top:4rem}.aggregate-traffic[_ngcontent-%COMP%]   .selectedSim[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#58595b;font-weight:300;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;font-size:16px}.aggregate-traffic[_ngcontent-%COMP%]   .selectedSim[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   span.simValue[_ngcontent-%COMP%]{margin-left:4px;font-weight:700;color:#fc4a14}.aggregate-traffic[_ngcontent-%COMP%]   .selectedSim[_ngcontent-%COMP%]   .box.monthSelection[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-weight:400;color:#fc4a14}.aggregate-traffic[_ngcontent-%COMP%]   .selectedSim[_ngcontent-%COMP%]   .box.monthSelection[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]{max-width:220px}.aggregate-traffic[_ngcontent-%COMP%]   .selectedSim[_ngcontent-%COMP%]   .box.monthSelection[_ngcontent-%COMP%]   mat-select[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#58595b}@media screen and (max-width: 1023px){.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]{flex-wrap:wrap}}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]{flex:1 50%;width:50%;max-height:80rem;display:flex;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;gap:1rem;overflow:hidden;overflow-y:auto}@media screen and (max-width: 1023px){.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]{flex:1 100%;width:100%;max-height:30rem}}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%]{margin-bottom:3rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .filtersBox[_ngcontent-%COMP%]{width:100%}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .box-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%;margin:1.5rem 0}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .box-header[_ngcontent-%COMP%]   .mat-slide-toggle-content[_ngcontent-%COMP%]{font-weight:400;font-family:inherit;font-size:14px}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .box-header[_ngcontent-%COMP%]   .multipleSelectionForm[_ngcontent-%COMP%]   .mat-radio-group[_ngcontent-%COMP%]{font-size:14px;display:flex;flex-direction:row;gap:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .box-header[_ngcontent-%COMP%]   .multipleSelectionForm[_ngcontent-%COMP%]   .mat-radio-group[_ngcontent-%COMP%]   .mat-radio-checked[_ngcontent-%COMP%]{font-weight:700}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]{min-width:19rem;max-width:calc(33% - 1rem)}@media screen and (max-width: 767px){.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]{min-width:15rem;max-width:calc(50% - .5rem)}}@media screen and (max-width: 450px){.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]{min-width:16rem;max-width:100%}}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]   .itemOptions-box[_ngcontent-%COMP%]{place-self:unset}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .itemOptionsSmall[_ngcontent-%COMP%]   .itemOptions-box[_ngcontent-%COMP%]   .mat-checkbox[_ngcontent-%COMP%]{margin-bottom:0}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .boxTitle[_ngcontent-%COMP%]{margin:1.5rem 0}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .boxTitle[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .exBundle[_ng
1content-%COMP%]   .box[_ngcontent-%COMP%]{gap:.5rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .exBundle[_ngcontent-%COMP%]   .ico-obj-telco[_ngcontent-%COMP%]{flex:1 100%;max-width:3.5rem;height:6rem;margin:unset}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .exBundle[_ngcontent-%COMP%]   .itemRequest[_ngcontent-%COMP%]{flex:1 100%;font-weight:500}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .exBundle[_ngcontent-%COMP%]   .itemReply[_ngcontent-%COMP%]{flex:1 100%;font-weight:300;padding-bottom:1rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{flex-direction:column}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .category-header[_ngcontent-%COMP%]{font-weight:500;text-align:center;display:flex;flex-direction:column;align-items:center;margin-bottom:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .category-header[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-bottom:1rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .itemReply[_ngcontent-%COMP%]{text-align:right}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .itemRequest[_ngcontent-%COMP%]{font-weight:300;padding-bottom:10px}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .total[_ngcontent-%COMP%]{font-weight:500}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .bundle[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]:not(:last-child):after{height:70%;bottom:0;top:auto}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   a.ctaLink[_ngcontent-%COMP%]{width:100%;font-size:1.6rem;font-weight:400;text-align:center;color:#0044e0}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .bgOptions[_ngcontent-%COMP%]   .lazy-button[_ngcontent-%COMP%]{margin:0;border:none;outline:none;cursor:pointer;flex-grow:1;background:transparent;text-transform:uppercase;color:#0044e0}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .sortSim[_ngcontent-%COMP%]{column-gap:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .sortSim[_ngcontent-%COMP%]   .itemRow[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;align-content:flex-start;row-gap:1rem}.aggregate-traffic[_ngcontent-%COMP%]   .sortDetail[_ngcontent-%COMP%]   .sortSim[_ngcontent-%COMP%]   .itemRow[_ngcontent-%COMP%]   .itemBox[_ngcontent-%COMP%]{flex:1 100%;flex-wrap:nowrap;display:flex;justify-content:space-between}.aggregate-traffic[_ngcontent-%COMP%]   .buttonWrapper[_ngcontent-%COMP%]{justify-content:center;width:100%;flex-direction:column;align-items:center;gap:2rem}.aggregate-traffic[_ngcontent-%COMP%]   .buttonWrapper[_ngcontent-%COMP%]   .cta[_ngcontent-%COMP%]{min-width:20rem}.aggregate-traffic[_ngcontent-%COMP%]   .buttonWrapper[_ngcontent-%COMP%]   .cta[_ngcontent-%COMP%]:disabled{cursor:not-allowed;opacity:.5}.aggregate-traffic[_ngcontent-%COMP%]   .buttonWrapper[_ngcontent-%COMP%]   .cta.empty[_ngcontent-%COMP%]{color:#ff6900;border-color:#ff6900;background-color:#fff}']}),n})()}];let Xt=(()=>{const s=class{};let n=s;return s.\u0275fac=function(a){return new(a||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({imports:[_.Bz.forChild(jt),_.Bz]}),n})();var ei=f(4466),ti=f(3480),ii=f(455);let ni=(()=>{const s=class{};let n=s;return s.\u0275fac=function(a){return new(a||s)},s.\u0275mod=e.oAB({type:s}),s.\u0275inj=e.cJS({providers:[ti.o,ae.f,re,k.g],imports:[c.ez,Xt,p.To,m.p9,ei.m,q.lN,J.FA,T.UX,ie.c,oe.LD,ii.rP]}),n})()},7086:(N,y,f)=>{f.d(y,{u:()=>v});var c=f(4650),p=f(6895);function m(e,g){if(1&e&&(c.TgZ(0,"span",8),c._UZ(1,"img",9),c._uU(2),c.qZA()),2&e){const o=c.oxw(2).$implicit;c.xp6(2),c.hij(' Risultati per: "',o.label?o.label:o,'" ')}}function _(e,g){if(1&e&&(c.TgZ(0,"span",8),c._uU(1),c.qZA()),2&e){const o=c.oxw(2).$implicit;c.xp6(1),c.Oqu(o.label?o.label:o)}}function A(e,g){if(1&e){const o=c.EpF();c.ynx(0),c.YNc(1,m,3,1,"span",6),c.YNc(2,_,2,1,"span",6),c.TgZ(3,"span",7),c.NdJ("click",function(){c.CHM(o);const h=c.oxw().$implicit,b=c.oxw(2);return c.KtG(b.removeFilter(h))}),c.qZA(),c.BQk()}if(2&e){const o=c.oxw(3);c.xp6(1),c.Q6J("ngIf",o.isFullTextFilter),c.xp6(1),c.Q6J("ngIf",!o.isFullTextFilter)}}function P(e,g){if(1&e&&(c.TgZ(0,"div",4),c.YNc(1,A,4,2,"ng-container",5),c.qZA()),2&e){const o=g.$implicit;c.xp6(1),c.Q6J("ngIf",o)}}function O(e,g){if(1&e){const o=c.EpF();c.TgZ(0,"div",10),c.NdJ("click",function(){c.CHM(o);const h=c.oxw(2);return c.KtG(h.resetFilters())}),c._uU(1,"Resetta filtri"),c.qZA()}}function C(e,g){if(1&e&&(c.TgZ(0,"div",1),c.YNc(1,P,2,1,"div",2),c.YNc(2,O,2,0,"div",3),c.qZA()),2&e){const o=c.oxw();c.xp6(1),c.Q6J("ngForOf",o.filters),c.xp6(1),c.Q6J("ngIf",o.filters.length>1)}}let v=(()=>{const g=class{constructor(){this.filters=[],this.isFullTextFilter=!1,this.filterRemoved=new c.vpe,this.resetFilter=new c.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(h=>{d.fullText?d.fullText&&(this.isFullTextFilter=!0,this.filters=[],this.filters.push(d.fullText)):(this.isFullTextFilter=!1,h.items.forEac
1h(b=>{Object.values(d).includes(b.value)&&b.value&&b.label&&!this.filters.includes(b)&&this.filters.push(b)}))}))}removeFilter(d){this.filters=this.filters.filter(h=>h.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 h=d.getFullYear(),b=String(d.getMonth()+1).padStart(2,"0");return`${String(d.getDate()).padStart(2,"0")}/${b}/${h}`}return"string"==typeof d?d.split("T")[0]:""}};let e=g;return g.\u0275fac=function(h){return new(h||g)},g.\u0275cmp=c.Xpm({type:g,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(h,b){1&h&&c.YNc(0,C,3,2,"div",0),2&h&&c.Q6J("ngIf",b.filters&&b.filters.length>0)},dependencies:[p.sg,p.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}"]}),e})()}}]);

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.