PageSourceSearch

https://selfcare.windtrebusiness.it/areaclienti/868.951628f129f037ac.js

js windtrebusiness.it collected 2026-10-02 12:11:37 UTC 69,659 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkSelfcareWebNew=self.webpackChunkSelfcareWebNew||[]).push([[868],{5868:(ti,L,r)=>{r.r(L),r.d(L,{HomeModule:()=>kn});var h=r(6895),T=r(3060),K=r(9675),z=r(6473),$=r(1745),V=r(8447),W=r(2229),j=r(8312),D=r(7579),g=r(2722),u=r(262),f=r(9646),Q=r(4128),X=r(1566),ee=r(5656),te=r(4548),ne=r(143),e=r(4650),ie=r(1501),U=r(8395),oe=r(8628),ae=r(4578),se=r(9986),re=r(6012),ce=r(6648),le=r(7020),_e=r(3413),pe=r(7028),de=r(5640),me=r(3237),ge=r(374),y=r(12),he=r(7457),C=r(4077),H=r(6594),E=r(6433),I=r(4074),ue=r(6003),M=r(1208),fe=r(2594),N=r(3202);function ve(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",11)(1,"div",4)(2,"div",12),e._uU(3),e.ALo(4,"uppercase"),e.qZA(),e.TgZ(5,"div",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateTo("/ricariche/storico-ricariche"))}),e._uU(6,"STORICO RICARICHE"),e.qZA()(),e.TgZ(7,"div",13)(8,"div",14),e._UZ(9,"img",15),e.qZA(),e.TgZ(10,"div",16)(11,"div",17)(12,"div",18),e._uU(13),e.qZA()()()()()}if(2&n){const t=e.oxw();e.xp6(3),e.Oqu(e.lcZ(4,2,t.offerDataModel.credit.title)),e.xp6(10),e.Oqu(t.offerDataModel.credit.text)}}const Te=function(){return{percentageAmount:100,coloreFuUtilizzata:"#FC4A14"}},q=function(n){return{percentageAmount:n,coloreFuUtilizzata:"#FC4A14"}};function xe(n,a){if(1&n&&(e.TgZ(0,"div",19)(1,"div",20)(2,"div",14),e._UZ(3,"app-round-graph",21),e.qZA(),e.TgZ(4,"div",14),e._UZ(5,"app-round-graph",22),e.qZA(),e.TgZ(6,"div",14),e._UZ(7,"app-round-graph",22),e.qZA()()()),2&n){const t=e.oxw();e.Q6J("ngClass","postpaid"===t.offerDataModel.userType?"full":"double"),e.xp6(3),e.Q6J("label",t.simsAssList.length+1)("hidePercentage",!0)("labelTop","LINEE MOBILI")("threshold",e.DdM(11,Te)),e.xp6(2),e.Q6J("label",t.simAmountPrepaid)("labelTop","PREPAGATE")("threshold",e.VKq(12,q,t.prepaidPercentage)),e.xp6(2),e.Q6J("label",t.simAmountPostpaid)("labelTop","POSTPAGATE")("threshold",e.VKq(14,q,t.postpaidPercentage))}}const be=function(n,a,t){return{percentageAmount:n,coloreFuUtilizzata:a,gradientColor:t}};function Ae(n,a){if(1&n&&(e.TgZ(0,"div",25),e._UZ(1,"app-round-graph",26),e.qZA()),2&n){const t=a.$implicit,i=e.oxw(2);e.xp6(1),e.Q6J("label",t.percentageRemaining.toString()+"%")("hidePercentage",!1)("unlimited",t.unlimited)("labelTop",t.thresholdDirector)("labelBottom",i.getBottomThresholdLabel(t))("labelExtraBottom",t.labelThresholdsPeriods)("offerMode",!0)("large",!0)("threshold",e.kEZ(9,be,t.percentageRemaining,t.usedColor,t.endUsedColor))}}function Ce(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",19)(1,"div",4)(2,"div",12),e._uU(3),e.ALo(4,"uppercase"),e.qZA(),e.TgZ(5,"div",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateTo("/prodotti"))}),e._uU(6,"PI\xd9 DETTAGLI"),e.qZA()(),e.TgZ(7,"div",23),e.YNc(8,Ae,2,13,"div",24),e.qZA()()}if(2&n){const t=e.oxw();e.Q6J("ngClass",!t.offerDataModel.offer||t.offerDataModel.offer.thresholds.length>2?"full":"double"),e.xp6(3),e.Oqu(e.lcZ(4,3,"LA TUA OFFERTA: "+t.offerDataModel.offer.title)),e.xp6(5),e.Q6J("ngForOf",t.offerDataModel.offer.thresholds)}}function Ze(n,a){if(1&n&&(e.TgZ(0,"div",12),e._uU(1),e.ALo(2,"uppercase"),e.qZA()),2&n){const t=e.oxw();e.xp6(1),e.hij(" ",e.lcZ(2,1,"LE TUE OPZIONI: "+t.offerDataModel.options[0].optionName)," ")}}function De(n,a){1&n&&(e.TgZ(0,"div",12),e._uU(1,"LE TUE OPZIONI:"),e.qZA())}function Ue(n,a){if(1&n&&(e.TgZ(0,"div",23),e._UZ(1,"app-line-chart",32),e.qZA()),2&n){const t=a.$implicit;e.xp6(1),e.Q6J("startDate",t.startDate)("endDate",t.endDate)("trafficType",t.thresholdDirector)("thresholdPeriod",t.labelThresholdsPeriods)("setInitialAmount",t.initialAmount)("percentageRemaining",t.percentageRemaining)("setRemainingAmount",t.remainingLabel)("remainingColor",t.usedColor)("remainingLabel",t.remainingLabel)("baseColor","#58595B")}}function ye(n,a){if(1&n&&(e.TgZ(0,"div",30),e.YNc(1,Ue,2,10,"div",31),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.offerDataModel.options[0].thresholds)}}function Ee(n,a){if(1&n&&(e.TgZ(0,"div",23)(1,"div",34)(2,"p",35),e._uU(3),e.qZA(),e.TgZ(4,"p",36),e._uU(5),e.qZA()()()),2&n){const t=a.$implicit;e.xp6(3),e.Oqu(t.label),e.xp6(2),e.Oqu(t.value)}}function Ie(n,a){if(1&n&&(e.TgZ(0,"div")(1,"div",33),e._uU(2),e.qZA(),e.YNc(3,Ee,6,2,"div",31),e.qZA()),2&n){const t=e.oxw(3);e.xp6(2),e.Oqu(t.offerDataModel.options[0].claimDescription),e.xp6(1),e.Q6J("ngForOf",t.offerDataModel.options[0].optionDetailParams)}}function Me(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",27),e.YNc(2,ye,2,1,"div",28),e.YNc(3,Ie,4,2,"div",29),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.offerDataModel.options[0].thresholds.length>0&&t.offerDataModel.options[0].thresholds),e.xp6(1),e.Q6J("ngIf",0==t.offerDataModel.options[0].thresholds.length&&t.offerDataModel.options[0].optionDetailParams&&t.offerDataModel.options[0].optionDetailParams.length>0)}}function Ne(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Me,4,2,"ng-container",8),e.BQk()),2&n){const t=e.oxw(),i=e.MAs(16);e.xp6(1),e.Q6J("ngIf",t.offerDataModel.options.length>0)("ngIfElse",i)}}function we(n,a){if(1&n&&(e.TgZ(0,"div",23),e._UZ(1,"app-dropdown-table",38),e.qZA()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("data",t.tableRechargeHistory)("selectable",!1)("backDisable",!0)}}function Pe(n,a){if(1&n&&(e.ynx(0),e.YNc(1,we,2,3,"div",37),e.BQk()),2&n){const t=e.oxw(2),i=e.MAs(16);e.xp6(1),e.Q6J("ngIf",t.rechargesList.length>0)("ngIfElse",i)}}function Se(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",11)(1,"div",4)(2,"div",12),e._uU(3,"ULTIME RICARICHE"),e.qZA(),e.TgZ(4,"div",7),e.NdJ("click",function(){e.CHM(t);const o=e.oxw();return e.KtG(o.navigateTo("/ricariche/storico-ricariche"))}),e._uU(5,"DETTAGLI"),e.qZA()(),e.YNc(6,Pe,2,2,"ng-container",8),e.qZA()}if(2&n){const t=e.oxw(),i=e.MAs(16);e.xp6(6),e.Q6J("ngIf",t.tableRechargeHistory&&t.rechargesList)("ngIfElse",i)}}function Je(n,a){1&n&&e._UZ(0,"app-error-message",39),2&n&&e.Q6J("type","error")}function Oe(n,a){1&n&&e._UZ(0,"app-error-message",39),2&n&&e.Q6J("type","empty")}let Ye=(()=>{const a=class{constructor(i,o,s,c){this.tableHelper=i,this.router=o,this.offerUtilsService=s,this.userUtilService=c,this.mainUserType=this.userUtilService.getMsisdnType()}
1set rechargeHistory(i){i&&i.length>0&&(this.rechargesList=i.slice(0,5).reverse(),this.tableRechargeHistory=this.tableHelper.createDropdownTableData(E.y.RECHARGEHISTORY,this.rechargesList))}set offerData(i){if(i&&i.offer){const o=["INTERNET","VOCE","SMS"];this.offerDataModel=i,this.offerDataModel.offer?.thresholds&&this.offerDataModel.offer?.thresholds.length>0&&(this.offerDataModel.offer?.datiShared&&this.offerDataModel.offer?.datiShared.thresholds.length>0&&(this.offerDataModel.offer.thresholds=[...this.offerDataModel.offer.datiShared.thresholds,...this.offerDataModel.offer.thresholds]),this.offerDataModel.offer?.thresholds.length>3&&(this.complexOffer=!0),this.offerDataModel.offer.thresholds.sort((s,c)=>o.indexOf(s.thresholdDirector)-o.indexOf(c.thresholdDirector)),this.offerDataModel.offer.thresholds=this.offerDataModel.offer.thresholds.filter((s,c,m)=>m.findIndex(d=>d.thresholdDirector===s.thresholdDirector)===c),this.offerDataModel.options&&this.offerDataModel.options.length>0&&this.offerDataModel.options[0].thresholds&&this.offerDataModel.options[0].thresholds.length>0&&(this.offerDataModel.options[0].thresholds=this.offerDataModel.options[0].thresholds.filter((s,c,m)=>m.findIndex(d=>d.thresholdDirector===s.thresholdDirector)===c),this.offerDataModel.options[0].thresholds.sort((s,c)=>o.indexOf(s.thresholdDirector)-o.indexOf(c.thresholdDirector))))}}set simsAssociated(i){this.simsAssList=i,i&&i.length>0&&this.offerDataModel&&(this.simAmountPrepaid=this.getSimAmountByType("prepaid"),this.simAmountPostpaid=this.getSimAmountByType("postpaid"),this.prepaidPercentage=this.getPercentage(this.simsAssList.length+1,this.getSimAmountByType("prepaid")),this.postpaidPercentage=this.getPercentage(this.simsAssList.length+1,this.getSimAmountByType("postpaid")))}ngOnInit(){this.simsAssList&&(this.simAmountPrepaid=this.getSimAmountByType("prepaid"),this.simAmountPostpaid=this.getSimAmountByType("postpaid"),this.prepaidPercentage=this.getPercentage(this.simsAssList.length+1,this.getSimAmountByType("prepaid")),this.postpaidPercentage=this.getPercentage(this.simsAssList.length+1,this.getSimAmountByType("postpaid")))}getSimAmountByType(i){return this.simsAssList.filter(o=>o.type===i).length+this.getCurrentUserSimTypeCount(i)}getCurrentUserSimTypeCount(i){switch(i){case"prepaid":return"prepaid"===this.mainUserType?1:0;case"postpaid":return"postpaid"===this.mainUserType?1:0;default:return 0}}getPercentage(i,o){return 100*o/i}getBottomThresholdLabel(i){return this.offerUtilsService.getLabelOfferThreshold(i)}navigateTo(i){this.router.navigateByUrl(i).then(o=>console.log("Navigate to "+i))}};let n=a;return a.\u0275fac=function(o){return new(o||a)(e.Y36(I.S),e.Y36(T.F0),e.Y36(ue.H),e.Y36(U.r))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-dashboard-eu"]],inputs:{rechargeHistory:"rechargeHistory",offerData:"offerData",simsAssociated:"simsAssociated"},decls:17,vars:8,consts:[[1,"main-pages-content","eu-product-component","eu-dashboard-component"],["class","wtbCard home-card-item double",4,"ngIf"],["class","wtbCard home-card-item",3,"ngClass",4,"ngIf"],[1,"wtbCard","home-card-item","double","options"],[1,"row-card-item","spaced"],["class","smallTitleCard",4,"ngIf","ngIfElse"],["emptyOptionsTitle",""],[1,"activeLink",3,"click"],[4,"ngIf","ngIfElse"],["offerError",""],["emptyError",""],[1,"wtbCard","home-card-item","double"],[1,"smallTitleCard"],[1,"row-card-item"],[1,"column-card-item"],["src","assets/images/ico-credit.svg","alt","user"],[1,"column-card-item","credit","place-start"],[1,"priceBox"],[1,"euro"],[1,"wtbCard","home-card-item",3,"ngClass"],[1,"row-card-item","smallFontSize"],[3,"label","hidePercentage","labelTop","threshold"],[3,"label","labelTop","threshold"],[1,"row-card-item","smallFontSize",2,"margin-top","1rem"],["class","column-card-item no-margin-top",4,"ngFor","ngForOf"],[1,"column-card-item","no-margin-top"],[3,"label","hidePercentage","unlimited","labelTop","labelBottom","labelExtraBottom","offerMode","large","threshold"],[1,"options-card"],["style","margin-top: 1.5rem",4,"ngIf"],[4,"ngIf"],[2,"margin-top","1.5rem"],["class","row-card-item smallFontSize","style","margin-top: 1rem",4,"ngFor","ngForOf"],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","setRemainingAmou
1nt","remainingColor","remainingLabel","baseColor"],[1,"infoText",2,"margin-top","2rem"],[1,"card-item-values"],[1,"card-label"],[1,"card-property"],["class","row-card-item smallFontSize","style","margin-top: 1rem",4,"ngIf","ngIfElse"],[3,"data","selectable","backDisable"],[3,"type"]],template:function(o,s){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,ve,14,4,"div",1),e.YNc(2,xe,8,16,"div",2),e.YNc(3,Ce,9,5,"div",2),e.TgZ(4,"div",3)(5,"div",4),e.YNc(6,Ze,3,3,"div",5),e.YNc(7,De,2,0,"ng-template",null,6,e.W1O),e.TgZ(9,"div",7),e.NdJ("click",function(){return s.navigateTo("/prodotti")}),e._uU(10,"DETTAGLI"),e.qZA()(),e.YNc(11,Ne,2,2,"ng-container",8),e.qZA(),e.YNc(12,Se,7,2,"div",1),e.YNc(13,Je,1,1,"ng-template",null,9,e.W1O),e.YNc(15,Oe,1,1,"ng-template",null,10,e.W1O),e.qZA()),2&o){const c=e.MAs(8),m=e.MAs(14);e.xp6(1),e.Q6J("ngIf",s.offerDataModel.credit&&s.offerDataModel.userType&&"postpaid"!==s.offerDataModel.userType),e.xp6(1),e.Q6J("ngIf",s.simsAssList),e.xp6(1),e.Q6J("ngIf",s.offerDataModel.offer),e.xp6(3),e.Q6J("ngIf",s.offerDataModel.options&&s.offerDataModel.options.length>0&&s.offerDataModel.options[0].optionName)("ngIfElse",c),e.xp6(5),e.Q6J("ngIf",s.offerDataModel.offer&&s.offerDataModel.options)("ngIfElse",m),e.xp6(1),e.Q6J("ngIf","postpaid"!==s.offerDataModel.userType)}},dependencies:[h.mk,h.sg,h.O5,M.a,C.H,fe.D,N.H,h.gd],styles:[".main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]{margin:0;border-top-left-radius:2rem}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .mainDetail[_ngcontent-%COMP%]   .ticketBox[_ngcontent-%COMP%]{display:none}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   #WTBdotPieContainer[_ngcontent-%COMP%]   .graphSpecifications[_ngcontent-%COMP%]{text-align:center}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]{align-content:flex-start}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]   .infoText[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:400}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]   .card-item-values[_ngcontent-%COMP%]{display:flex;flex-direction:row;width:100%}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]   .card-item-values[_ngcontent-%COMP%]   .card-label[_ngcontent-%COMP%], .main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]   .card-item-values[_ngcontent-%COMP%]   .card-property[_ngcontent-%COMP%]{width:50%}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]   .card-item-values[_ngcontent-%COMP%]   .card-label[_ngcontent-%COMP%]{font-weight:400}.main-pages-content.eu-dashboard-component[_ngcontent-%COMP%]   .options[_ngcontent-%COMP%]   .options-card[_ngcontent-%COMP%]   .card-item-values[_ngcontent-%COMP%]   .card-property[_ngcontent-%COMP%]{font-weight:600}"]}),n})();var A=r(5439),Z=r.n(A),v=r(7108),F=r(3831),G=r(9412),w=r(9549),P=r(4385),k=r(3238),S=r(7392),J=r(266);function Le(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/prodotti/mobile/linee-mobili"))}),e._uU(1,"Dettaglio linee "),e._UZ(2,"img",11),e.qZA()}}function Qe(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/prodotti/fisso-dispositivi/smartphone-modem"))}),e._uU(1,"Dettaglio dispositivi "),e._UZ(2,"img",11),e.qZA()}}const O=function(){return{percentageAmount:100,coloreFuUtilizzata:"#FC4A14"}},x=function(n){return{percentageAmount:n,coloreFuUtilizzata:"#FC4A14"}};function He(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",4)(2,"div",5)(3,"div",6),e._UZ(4,"app-round-graph",7),e.qZA(),e.TgZ(5,"div",6),e._UZ(6,"app-round-graph",8),e.qZA(),e.TgZ(7,"div",6),e._UZ(8,"a
1pp-round-graph",8),e.qZA()()(),e.TgZ(9,"div",4)(10,"div",5)(11,"div",6),e._UZ(12,"app-round-graph",7),e.qZA(),e.TgZ(13,"div",6),e._UZ(14,"app-round-graph",8),e.qZA(),e.TgZ(15,"div",6),e._UZ(16,"app-round-graph",8),e.qZA()(),e.YNc(17,Le,3,0,"p",9),e.qZA(),e.TgZ(18,"div",4)(19,"div",5)(20,"div",6),e._UZ(21,"app-round-graph",7),e.qZA(),e.TgZ(22,"div",6),e._UZ(23,"app-round-graph",8),e.qZA(),e.TgZ(24,"div",6),e._UZ(25,"app-round-graph",8),e.qZA()(),e.YNc(26,Qe,3,0,"p",9),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("label",t.lines.numTotLines)("hidePercentage",!0)("labelTop","LE TUE LINEE")("threshold",e.DdM(32,O)),e.xp6(2),e.Q6J("label",t.lines.numMobile)("labelTop","MOBILE")("threshold",e.VKq(33,x,t.getPercentage(t.lines.numTotLines,t.lines.numMobile))),e.xp6(2),e.Q6J("label",t.lines.numFixed)("labelTop","FISSO")("threshold",e.VKq(35,x,t.getPercentage(t.lines.numTotLines,t.lines.numFixed))),e.xp6(4),e.Q6J("label",t.lines.numMobile)("hidePercentage",!0)("labelTop","LINEE MOBILI")("threshold",e.DdM(37,O)),e.xp6(2),e.Q6J("label",t.lines.numPrepaid)("labelTop","PREPAGATE")("threshold",e.VKq(38,x,t.getPercentage(t.lines.numMobile,t.lines.numPrepaid))),e.xp6(2),e.Q6J("label",t.lines.numPostpaid)("labelTop","POSTPAGATE")("threshold",e.VKq(40,x,t.getPercentage(t.lines.numMobile,t.lines.numPostpaid))),e.xp6(1),e.Q6J("ngIf",t.lines.numTotLines>0),e.xp6(4),e.Q6J("label",t.lines.numDevice+t.lines.numDeviceFixed)("hidePercentage",!0)("labelTop","DISPOSITIVI")("threshold",e.DdM(42,O)),e.xp6(2),e.Q6J("label",t.lines.numDeviceFixed)("labelTop","CON LINEA")("threshold",e.VKq(43,x,t.getPercentage(t.lines.numDevice+t.lines.numDeviceFixed,t.lines.numDeviceFixed))),e.xp6(2),e.Q6J("label",t.lines.numDevice)("labelTop","SENZA LINEA")("threshold",e.VKq(45,x,t.getPercentage(t.lines.numDevice+t.lines.numDeviceFixed,t.lines.numDevice))),e.xp6(1),e.Q6J("ngIf",t.lines.numDevice+t.lines.numDeviceFixed>0)}}function qe(n,a){if(1&n&&(e.TgZ(0,"div",23)(1,"pre",24),e._uU(2),e.qZA(),e.TgZ(3,"pre",25),e._uU(4),e.qZA()()),2&n){const t=a.model,i=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.hij("",i.formatAmount(t.value)," \u20ac")}}function Fe(n,a){if(1&n&&(e.TgZ(0,"ngx-charts-bar-vertical-stacked",21),e.YNc(1,qe,5,2,"ng-template",null,22,e.W1O),e.qZA()),2&n){const t=e.oxw(2);e.Q6J("view",t.view)("scheme",t.colorScheme)("results",t.barGraphData)("xAxis",!0)("yAxis",!0)("barPadding",50)("yScaleMax",1e4)("showGridLines",!0)("yAxisTickFormatting",t.formatCurrency)("animations",t.animations)}}function Ge(n,a){if(1&n&&e._UZ(0,"app-error-message",26),2&n){const t=e.oxw(2);e.Q6J("type",t.invoiceDashboardError)("marginTop","25px")}}function ke(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/conto/fatturazione/fatture"))}),e._uU(1,"Tutte le fatture "),e._UZ(2,"img",11),e.qZA()}}function Be(n,a){if(1&n&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function Re(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",27)(1,"mat-form-field")(2,"mat-select",28),e.NdJ("valueChange",function(o){e.CHM(t);const s=e.oxw(2);return e.KtG(s.selectedAccountOnChange(o))}),e.YNc(3,Be,2,2,"mat-option",29),e.qZA()()()}if(2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("value",t.selectedAccount),e.xp6(1),e.Q6J("ngForOf",t.accountsList)}}function Ke(n,a){if(1&n&&(e.TgZ(0,"div",23)(1,"pre",24),e._uU(2),e.qZA(),e.TgZ(3,"pre",25),e._uU(4),e.qZA()()),2&n){const t=a.model,i=e.oxw(3);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.hij("",i.formatAmount(t.value)," \u20ac")}}function ze(n,a){if(1&n&&(e.TgZ(0,"div",23)(1,"pre",24),e._uU(2),e.qZA(),e.TgZ(3,"pre",25),e._uU(4),e.qZA()()),2&n){const t=a.model,i=e.oxw(3);e.xp6(2),e.Oqu(t[0].name),e.xp6(2),e.hij("",i.formatAmount(t[0].value)," \u20ac")}}function $e(n,a){if(1&n&&(e.TgZ(0,"ngx-charts-line-chart",31),e.YNc(1,Ke,5,2,"ng-template",null,22,e.W1O),e.YNc(3,ze,5,2,"ng-template",null,32,e.W1O),e.qZA()),2&n){const t=e.oxw(2);e.Q6J("view",t.view)("showGridLines",!0)("scheme",t.colorScheme)("showYAxisLabel",!0)("xAxis",!0)("yAxis",!0)("timeline",!1)("activeEntries",t.lineGraphData[0].series)("curve",t.lineGraphCurve)("yAxisTickFormatting",t.formatCurrency)("results",t.lineGraphData)}}function Ve(n,a){if(1&n&&e._UZ(0,"app-error-message",26),2&n){const t=e.oxw(2);e.Q6J("type",t.invoiceDashboardError)("marginTop","25px")}}function We(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/conto/fatturazione/account"))}),e._uU(1,"Gestione account "),e._UZ(2,"img",11),e.qZA()}}function je(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",12)(2,"div",13)(3,"div",14),e._uU(4,"SPESA TOTALE "),e.TgZ(5,"mat-icon",15),e._uU(6," info "),e.qZA()()(),e.TgZ(7,"div",13),e.YNc(8,Fe,3,10,"ngx-charts-bar-vertical-stacked",16),e.YNc(9,Ge,1,2,"app-error-message",17),e.qZA(),e.YNc(10,ke,3,0,"p",9),e.qZA(),e.TgZ(11,"div",12)(12,"div",18)(13,"div",14),e._uU(14,"ACCOUNT DI FATTURAZIONE"),e.qZA(),e.YNc(15,Re,4,2,"div",19),e.qZA(),e.TgZ(16,"div",13),e.YNc(17,$e,5,11,"ngx-charts-line-chart",20),e.YNc(18,Ve,1,2,"app-error-message",17),e.qZA(),e.YNc(19,We,3,0,"p",9),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(5),e.Q6J("matTooltipPosition","above"),e.xp6(3),e.Q6J("ngIf",t.selectedAccount&&!t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",!t.invoiceError),e.xp6(5),e.Q6J("ngIf",t.accountsList&&t.accountsList.length>0),e.xp6(2),e.Q6J("ngIf",t.selectedAccount&&!t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",!t.invoiceDashboardError)}}function Xe(n,a){if(1&n&&e._UZ(0,"app-dropdown-table",38),2&n){e.oxw();const t=e.MAs(10),i=e.MAs(8),o=e.oxw();e.Q6J("data",o.invoicesTableData)("lazy",!1)("simpleTableFooter",!1)("advancedColumnTemplate",t)("selectable",!1)("extraElement",i)}}function et(n,a){1&n&&e._UZ(0,"app-invoice-extra-element",39),2&n&&e.Q6J("invoice",a.data)}function tt(n,a){if(1&n&&(e.TgZ(0,"div",41),e._uU(1),e.qZA()),2&n){const t=e.oxw().data;e.xp6(1),e.Oqu(t.state)}}function nt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",41)(1,"span",42),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().data,s=e.oxw(2);return e.KtG(s.goToInvoicePayment(o))}),e._uU(2),e.qZA()()}if(2&n){const t=e.oxw().data;e.xp6(2),e.Oqu(t.state)}}function it(n,a){if(1&n&&(e.YNc(0,tt,2,1,"div",40),e.YNc(1,nt,3,1,"div",40)),2&n){const t=a.data;e.Q6J("ngIf","DA PAGARE"!==t.state),e.xp6(1),e.Q6J("ngIf","DA PAGARE"===t.state)}}function ot(n,a){if(1&n&&e._UZ(0,"app-error-message",26),2&n){const t=e.oxw(2);e.Q6J("type",t.invoiceError)("marginTop","25px")}}function at(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/conto/fatturazione/fatture"))}),e._uU(1,"Tutte le fatture "),e._UZ(2,"img",11),e.qZA()}}function st(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",33)(2,"div",13)(3,"div",34),e._uU(4,"ULTIME FATTURE"),e.qZA()(),e.TgZ(5,"div",13),e.YNc(6,Xe,1,6,"app-dropdown-table",35),e.YNc(7,et,1,1,"ng-template",null,36,e.W1O),e.YNc(9,it,2,2,"ng-template",null,37,e.W1O),e.YNc(11,ot,1,2,"app-error-message",17),e.qZA(),e.YNc(12,at,3,0,"p",9),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(6),e.Q6J("ngIf",t.invoicesTableData&&!t.invoiceError),e.xp6(5),e.Q6J("ngIf",t.invoiceError),e.xp6(1),e.Q6J("ngIf",!t.invoiceError)}}function rt(n,a){if(1&n&&e._UZ(0,"app-error-message",43),2&n){const t=e.oxw();e.Q6J("type",t.linesError)}}let ct=(()=>{const a=class{constructor(i,o,s){this.layoutService=i,this.tableHelper=o,this.router=s,this.hasConto=!1,this.menuComponents=[],this._destroy$=new D.x,this.monthsMap={"01":{label:"GEN/FEB",value:"
10102"},"02":{label:"GEN/FEB",value:"0102"},"03":{label:"MAR/APR",value:"0304"},"04":{label:"MAR/APR",value:"0304"},"05":{label:"MAG/GIU",value:"0506"},"06":{label:"MAG/GIU",value:"0506"},"07":{label:"LUG/AGO",value:"0708"},"08":{label:"LUG/AGO",value:"0708"},"09":{label:"SET/OTT",value:"0910"},10:{label:"SET/OTT",value:"0910"},11:{label:"NOV/DIC",value:"1112"},12:{label:"NOV/DIC",value:"1112"}},this.lineGraphCurve=F.Z,this.animations=!0,this.colorScheme={domain:["#FC4A14","#58595B","#FF6900","#4C4D4E"],name:"",selectable:!0,group:v.N3.Linear},this.view=[625,215]}set invoices(i){i&&i.length>0?(this.invoicesList=i,this.mapTableData()):this.invoicesList=[]}set dashboardInvoices(i){i&&i.details?.length>0?(this.barGraphData=[],this.lineGraphData=[],this.dashboardInvoicesDetails=i.details,this.getAccountsList(),this.mapLineGraphData(),this.mapBarGraphData()):this.dashboardInvoicesDetails=[]}ngOnInit(){this.layoutService.getMenuConfiguration$().pipe((0,g.R)(this._destroy$)).subscribe(i=>{i&&(this.menuComponents=i.menuComponents,this.hasConto=this.hasRoute("/conto"))})}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}hasRoute(i){const o=s=>s.page?.startsWith(i)||s.subLevel?.some(c=>
1o(c))||!1;return this.menuComponents.some(s=>o(s))}mapTableData(){this.invoicesTableData=this.tableHelper.createDropdownTableData(E.y.INVOICES,this.invoicesList.slice(0,3)),this.invoicesTableData.dataTableRow.forEach(i=>{i.rows.map(o=>{"STATO"===o.title&&(o.advancedColumn=!0)})})}getPercentage(i,o){return 100*o/i}getAccountsList(){const i=new Set;this.dashboardInvoicesDetails.forEach(o=>{o.accountList.forEach(s=>{s.accountId&&s.accountId.length>0&&i.add(s.accountId)})}),this.accountsList=[...i],this.selectedAccount=this.accountsList[0],this.selectedAccount||(this.invoiceDashboardError="empty")}mapBarGraphData(){this.dashboardInvoicesDetails.forEach(i=>{if(i.month){const o={},s=A(i.month,"MMYYYY"),c=s.format("MM"),m=s.format("YY");o.name=this.monthsMap[c].label+" "+m,o.series=[],i.accountList.forEach(d=>{const p={};p.name=d.accountId,p.value=d.amount,o.series.push(p)}),this.barGraphData.push(o)}}),console.log("Bar Chart Data: ",this.barGraphData)}mapLineGraphData(){this.dashboardInvoicesDetails.sort((o,s)=>A(o.month,"MMYYYY")>A(s.month,"MMYYYY")?1:-1);const i={series:[]};i.name=this.selectedAccount,this.dashboardInvoicesDetails.forEach(o=>{if(o.month){const s=A(o.month,"MMYYYY"),c=s.format("MM"),m=s.format("YY"),d=this.monthsMap[c].label+" "+m;if(0===o.accountList.length){const p={};p.name=d,p.value=0,i.series.push(p)}else{const p={},_=o.accountList.filter(l=>l.accountId===this.selectedAccount)[0];p.name=d,p.value=_&&_.amount?_.amount:0,i.series.some(l=>l.name===p.name)?i.series.map(l=>{l.name===p.name&&(l.value+=p.value)}):i.series.push(p),console.log("Series: ",i.series)}}}),this.lineGraphData.push(i),console.log("Line Chart Data: ",this.lineGraphData)}formatCurrency(i){const o=Number(i);if(0===o)return"0";const s=o.toString().split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),(s.length>1?s[0]+","+s[1]:s[0])+" \u20ac"}formatAmount(i){const o=Number(i);if(isNaN(o))return"0";const s=o.toString().split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),s.length>1?s[0]+","+s[1]:s[0]}goToInvoicePayment(i){this.router.navigateByUrl("/conto/fatture/pagamento-fatture",{state:{invoice:i,backUrl:"/"}}).then(o=>console.log("Navigate to Invoice Payment",i))}selectedAccountOnChange(i){this.selectedAccount=i,this.lineGraphData=[],this.mapLineGraphData()}goToInvoicePage(){this.router.navigateByUrl("/conto/fatturazione/fatture")}redirectToPage(i){this.router.navigateByUrl(i).then(o=>console.log("Redirect"))}};let n=a;return a.\u0275fac=function(o){return new(o||a)(e.Y36(y.P),e.Y36(I.S),e.Y36(T.F0))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-dashboard-ua"]],inputs:{invoices:"invoices",dashboardInvoices:"dashboardInvoices",invoiceError:"invoiceError",invoiceDashboardError:"invoiceDashboardError",lines:"lines",linesError:"linesError",isHC:"isHC"},decls:6,vars:4,consts:[[1,"main-pages-content","ua-dashboard-component"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["lines_error",""],[1,"wtbCard","home-card-item","multi"],[1,"row-card-item","smallFontSize"],[1,"column-card-item"],[3,"label","hidePercentage","labelTop","threshold"],[3,"label","labelTop","threshold"],["class","card-item-goTo",3,"click",4,"ngIf"],[1,"card-item-goTo",3,"click"],["src","assets/images/blue-arrow.svg","alt","arrow"],[1,"wtbCard","home-card-item","double","graph"],[1,"row-card-item"],[1,"smallTitleCard"],["matTooltip","Monitora il totale della tua spesa mensile. Scorrendo con il mouse su ogni zona colorata puoi visualizzare l\u2019id account di fatturazione e la spesa fatturata.",1,"control-tooltip-icon",3,"matTooltipPosition"],[3,"view","scheme","results","xAxis","yAxis","barPadding","yScaleMax","showGridLines","yAxisTickFormatting","animations",4,"ngIf"],[3,"type","marginTop",4,"ngIf"],[1,"row-card-item","spaced"],["class","wrapperSelect",4,"ngIf"],["yAxisLabel","","class","charts-account-invoice",3,"view","showGridLines","scheme","showYAxisLabel","xAxis","yAxis","timeline","activeEntries","curve","yAxisTickFormatting","results",4,"ngIf"],[3,"view","scheme","results","xAxis","yAxis","barPadding","yScaleMax","showGridLines","yAxisTickFormatting","animations"],["tooltipTemplate",""],[1,"tooltip"],[2,"margin","0.5rem 0.5rem"],[2,"margin","0.5rem 0.5rem","font-weight","bold"],[3,"type","marginTop"],[1,"wrapperSelect"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["yAxisLabel","",1,"charts-account-invoice",3,"view","showGridLines","scheme","showYAxisLabel","xAxis","yAxis","timeline","activeEntries","curve","yAxisTickFormatting","results"],["seriesTooltipTemplate",""],[1,"wtbCard","home-card-item"],[1,"smallTitleCard","title-invoice"],[3,"data","lazy","simpleTableFooter","advancedColumnTemplate","selectable","extraElement",4,"ngIf"],["extraElem",""],["paymentStatus",""],[3,"data","lazy","simpleTableFooter","advancedColumnTemplate","selectable","extraElement"],[3,"invoice"],["class","cell-table","data-title","Stato",4,"ngIf"],["data-title","Stato",1,"cell-table"],[1,"to-pay-status",3,"click"],[3,"type"]],template:function(o,s){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,He,27,47,"ng-container",1),e.YNc(2,je,20,8,"ng-container",2),e.YNc(3,st,13,3,"ng-container",2),e.qZA(),e.YNc(4,rt,1,1,"ng-template",null,3,e.W1O)),2&o){const c=e.MAs(5);e.xp6(1),e.Q6J("ngIf",s.lines&&!s.linesError)("ngIfElse",c),e.xp6(1),e.Q6J("ngIf",s.lines.numTotLines>20&&(s.dashboardInvoicesDetails||s.invoiceDashboardError)),e.xp6(1),e.Q6J("ngIf",s.invoicesList||s.invoiceError)}},dependencies:[h.sg,h.O5,M.a,C.H,N.H,G.s,v.XK,v.Dw,w.KE,P.gD,k.ey,S.Hw,J.gM],styles:["@media screen and (max-width: 430px){[_nghost-%COMP%]{max-width:-webkit-fill-available}}.accountIdSelect[_ngcontent-%COMP%]{padding-left:25%;padding-bottom:1.3rem}.control-tooltip-icon[_ngcontent-%COMP%]{font-size:16px;height:18px;width:18px}"]}),n})();function lt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/prodotti/mobile/linee-mobili"))}),e._uU(1,"Dettaglio linee "),e._UZ(2,"img",11),e.qZA()}}function _t(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/prodotti/fisso-dispositivi/smartphone-modem"))}),e._uU(1,"Dettaglio dispositivi "),e._UZ(2,"img",11),e.qZA()}}const Y=function(){return{percentageAmount:100,coloreFuUtilizzata:"#FC4A14"}},b=function(n){return{percentageAmount:n,coloreFuUtilizzata:"#FC4A14"}};function pt(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",4)(2,"div",5)(3,"div",6),e._UZ(4,"app-round-graph",7),e.qZA(),e.TgZ(5,"div",6),e._UZ(6,"app-round-graph",8),e.qZA(),e.TgZ(7,"div",6),e._UZ(8,"a
1pp-round-graph",8),e.qZA()()(),e.TgZ(9,"div",4)(10,"div",5)(11,"div",6),e._UZ(12,"app-round-graph",7),e.qZA(),e.TgZ(13,"div",6),e._UZ(14,"app-round-graph",8),e.qZA(),e.TgZ(15,"div",6),e._UZ(16,"app-round-graph",8),e.qZA()(),e.YNc(17,lt,3,0,"p",9),e.qZA(),e.TgZ(18,"div",4)(19,"div",5)(20,"div",6),e._UZ(21,"app-round-graph",7),e.qZA(),e.TgZ(22,"div",6),e._UZ(23,"app-round-graph",8),e.qZA(),e.TgZ(24,"div",6),e._UZ(25,"app-round-graph",8),e.qZA()(),e.YNc(26,_t,3,0,"p",9),e.qZA(),e.BQk()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("label",t.lines.numTotLines)("hidePercentage",!0)("labelTop","LE TUE LINEE")("threshold",e.DdM(32,Y)),e.xp6(2),e.Q6J("label",t.lines.numMobile)("labelTop","MOBILE")("threshold",e.VKq(33,b,t.getPercentage(t.lines.numTotLines,t.lines.numMobile))),e.xp6(2),e.Q6J("label",t.lines.numFixed)("labelTop","FISSO")("threshold",e.VKq(35,b,t.getPercentage(t.lines.numTotLines,t.lines.numFixed))),e.xp6(4),e.Q6J("label",t.lines.numMobile)("hidePercentage",!0)("labelTop","LINEE MOBILI")("threshold",e.DdM(37,Y)),e.xp6(2),e.Q6J("label",t.lines.numPrepaid)("labelTop","PREPAGATE")("threshold",e.VKq(38,b,t.getPercentage(t.lines.numMobile,t.lines.numPrepaid))),e.xp6(2),e.Q6J("label",t.lines.numPostpaid)("labelTop","POSTPAGATE")("threshold",e.VKq(40,b,t.getPercentage(t.lines.numMobile,t.lines.numPostpaid))),e.xp6(1),e.Q6J("ngIf",t.hasLinee),e.xp6(4),e.Q6J("label",t.lines.numDevice+t.lines.numDeviceFixed)("hidePercentage",!0)("labelTop","DISPOSITIVI")("threshold",e.DdM(42,Y)),e.xp6(2),e.Q6J("label",t.lines.numDeviceFixed)("labelTop","CON LINEA")("threshold",e.VKq(43,b,t.getPercentage(t.lines.numDevice+t.lines.numDeviceFixed,t.lines.numDeviceFixed))),e.xp6(2),e.Q6J("label",t.lines.numDevice)("labelTop","SENZA LINEA")("threshold",e.VKq(45,b,t.getPercentage(t.lines.numDevice+t.lines.numDeviceFixed,t.lines.numDevice))),e.xp6(1),e.Q6J("ngIf",t.hasLinee&&t.lines.numDevice+t.lines.numDeviceFixed>0)}}function dt(n,a){if(1&n&&(e.TgZ(0,"div",21)(1,"pre",22),e._uU(2),e.qZA(),e.TgZ(3,"pre",23),e._uU(4),e.qZA()()),2&n){const t=a.model,i=e.oxw(5);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.hij("",i.formatAmount(t.value)," \u20ac")}}function mt(n,a){if(1&n&&(e.TgZ(0,"ngx-charts-bar-vertical-stacked",19),e.YNc(1,dt,5,2,"ng-template",null,20,e.W1O),e.qZA()),2&n){const t=e.oxw(4);e.Q6J("view",t.view)("scheme",t.colorScheme)("results",t.barGraphData)("xAxis",!0)("yAxis",!0)("barPadding",50)("yScaleMax",1e4)("showGridLines",!0)("yAxisTickFormatting",t.formatCurrency)("animations",t.animations)}}function gt(n,a){if(1&n&&e._UZ(0,"app-error-message",24),2&n){const t=e.oxw(4);e.Q6J("type",t.invoiceDashboardError)("marginTop","25px")}}function ht(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.redirectToPage("/conto/fatturazione/fatture"))}),e._uU(1,"Tutte le fatture "),e._UZ(2,"img",11),e.qZA()}}function ut(n,a){if(1&n&&(e.TgZ(0,"div",13)(1,"div",14)(2,"div",15),e._uU(3,"SPESA TOTALE "),e.TgZ(4,"mat-icon",16),e._uU(5," info "),e.qZA()()(),e.TgZ(6,"div",14),e.YNc(7,mt,3,10,"ngx-charts-bar-vertical-stacked",17),e.YNc(8,gt,1,2,"app-error-message",18),e.qZA(),e.YNc(9,ht,3,0,"p",9),e.qZA()),2&n){const t=e.oxw(3);e.xp6(4),e.Q6J("matTooltipPosition","above"),e.xp6(3),e.Q6J("ngIf",t.selectedAccount&&!t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.hasConto)}}function ft(n,a){if(1&n&&(e.TgZ(0,"mat-option",31),e._uU(1),e.qZA()),2&n){const t=a.$implicit;e.Q6J("value",t),e.xp6(1),e.Oqu(t)}}function vt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",28)(1,"mat-form-field")(2,"mat-select",29),e.NdJ("valueChange",function(o){e.CHM(t);const s=e.oxw(4);return e.KtG(s.selectedAccountOnChange(o))}),e.YNc(3,ft,2,2,"mat-option",30),e.qZA()()()}if(2&n){const t=e.oxw(4);e.xp6(2),e.Q6J("value",t.selectedAccount),e.xp6(1),e.Q6J("ngForOf",t.accountsList)}}function Tt(n,a){if(1&n&&(e.TgZ(0,"div",21)(1,"pre",22),e._uU(2),e.qZA(),e.TgZ(3,"pre",23),e._uU(4),e.qZA()()),2&n){const t=a.model,i=e.oxw(5);e.xp6(2),e.Oqu(t.name),e.xp6(2),e.hij("",i.formatAmount(t.value)," \u20ac")}}function xt(n,a){if(1&n&&(e.TgZ(0,"div",21)(1,"pre",22),e._uU(2),e.qZA(),e.TgZ(3,"pre",23),e._uU(4),e.qZA()()),2&n){const t=a.model,i=e.oxw(5);
1e.xp6(2),e.Oqu(t[0].name),e.xp6(2),e.hij("",i.formatAmount(t[0].value)," \u20ac")}}function bt(n,a){if(1&n&&(e.TgZ(0,"ngx-charts-line-chart",32),e.YNc(1,Tt,5,2,"ng-template",null,20,e.W1O),e.YNc(3,xt,5,2,"ng-template",null,33,e.W1O),e.qZA()),2&n){const t=e.oxw(4);e.Q6J("view",t.view)("showGridLines",!0)("scheme",t.colorScheme)("showYAxisLabel",!0)("xAxis",!0)("yAxis",!0)("timeline",!1)("activeEntries",t.lineGraphData[0].series)("curve",t.lineGraphCurve)("yAxisTickFormatting",t.formatCurrency)("results",t.lineGraphData)}}function At(n,a){if(1&n&&e._UZ(0,"app-error-message",24),2&n){const t=e.oxw(4);e.Q6J("type",t.invoiceDashboardError)("marginTop","25px")}}function Ct(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(4);return e.KtG(o.redirectToPage("/conto/fatturazione/account"))}),e._uU(1,"Gestione account "),e._UZ(2,"img",11),e.qZA()}}function Zt(n,a){if(1&n&&(e.TgZ(0,"div",13)(1,"div",25)(2,"div",15),e._uU(3,"ACCOUNT DI FATTURAZIONE"),e.qZA(),e.YNc(4,vt,4,2,"div",26),e.qZA(),e.TgZ(5,"div",14),e.YNc(6,bt,5,11,"ngx-charts-line-chart",27),e.YNc(7,At,1,2,"app-error-message",18),e.qZA(),e.YNc(8,Ct,3,0,"p",9),e.qZA()),2&n){const t=e.oxw(3);e.xp6(4),e.Q6J("ngIf",t.accountsList&&t.accountsList.length>0),e.xp6(2),e.Q6J("ngIf",t.selectedAccount&&!t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.hasConto)}}function Dt(n,a){if(1&n&&(e.ynx(0),e.YNc(1,ut,10,4,"div",12),e.YNc(2,Zt,9,4,"div",12),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.lines&&t.lines.numTotLines>20||t.isHC),e.xp6(1),e.Q6J("ngIf",t.lines&&t.lines.numTotLines>20||t.isHC)}}function Ut(n,a){if(1&n&&e._UZ(0,"app-dropdown-table",39),2&n){e.oxw();const t=e.MAs(10),i=e.MAs(8),o=e.oxw(2);e.Q6J("data",o.invoicesTableData)("lazy",!1)("simpleTableFooter",!1)("advancedColumnTemplate",t)("selectable",!1)("extraElement",i)}}function yt(n,a){1&n&&e._UZ(0,"app-invoice-extra-element",40),2&n&&e.Q6J("invoice",a.data)}function Et(n,a){if(1&n&&(e.TgZ(0,"div",42),e._uU(1),e.qZA()),2&n){const t=e.oxw().data;e.xp6(1),e.Oqu(t.state)}}function It(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",42)(1,"span",43),e.NdJ("click",function(){e.CHM(t);const o=e.oxw().data,s=e.oxw(3);return e.KtG(s.goToInvoicePayment(o))}),e._uU(2),e.qZA()()}if(2&n){const t=e.oxw().data;e.xp6(2),e.Oqu(t.state)}}function Mt(n,a){if(1&n&&(e.YNc(0,Et,2,1,"div",41),e.YNc(1,It,3,1,"div",41)),2&n){const t=a.data;e.Q6J("ngIf","DA PAGARE"!==t.state),e.xp6(1),e.Q6J("ngIf","DA PAGARE"===t.state)}}function Nt(n,a){if(1&n&&e._UZ(0,"app-error-message",24),2&n){const t=e.oxw(3);e.Q6J("type",t.invoiceError)("marginTop","25px")}}function wt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",10),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(3);return e.KtG(o.redirectToPage("/conto/fatturazione/fatture"))}),e._uU(1,"Tutte le fatture "),e._UZ(2,"img",11),e.qZA()}}function Pt(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",34)(2,"div",14)(3,"div",35),e._uU(4,"ULTIME FATTURE"),e.qZA()(),e.TgZ(5,"div",14),e.YNc(6,Ut,1,6,"app-dropdown-table",36),e.YNc(7,yt,1,1,"ng-template",null,37,e.W1O),e.YNc(9,Mt,2,2,"ng-template",null,38,e.W1O),e.YNc(11,Nt,1,2,"app-error-message",18),e.qZA(),e.YNc(12,wt,3,0,"p",9),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(6),e.Q6J("ngIf",t.invoicesTableData&&!t.invoiceError),e.xp6(5),e.Q6J("ngIf",t.invoiceError),e.xp6(1),e.Q6J("ngIf",t.hasConto)}}function St(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Dt,3,2,"ng-container",2),e.YNc(2,Pt,13,3,"ng-container",2),e.BQk()),2&n){const t=e.oxw();e.xp6(1),e.Q6J("ngIf",t.dashboardInvoicesDetails||t.invoiceDashboardError),e.xp6(1),e.Q6J("ngIf",t.invoicesList||t.invoiceError)}}function Jt(n,a){if(1&n&&e._UZ(0,"app-error-message",44),2&n){const t=e.oxw();e.Q6J("type",t.linesError)}}let Ot=(()=>{const a=class{constructor(i,o,s){this.layoutService=i,this.tableHelper=o,this.router=s,this.hasLinee=!1,this.hasConto=!1,this.hasDevices=!1,this.hasInvoice=!1,this.hasDigitalServices=!1,this.menuComponents=[],this._destroy$=new D.x,this.monthsMap={"01":{label:"GEN/FEB",value:"0102"},"02":{label:"GEN/FEB",value:"0102"}
1,"03":{label:"MAR/APR",value:"0304"},"04":{label:"MAR/APR",value:"0304"},"05":{label:"MAG/GIU",value:"0506"},"06":{label:"MAG/GIU",value:"0506"},"07":{label:"LUG/AGO",value:"0708"},"08":{label:"LUG/AGO",value:"0708"},"09":{label:"SET/OTT",value:"0910"},10:{label:"SET/OTT",value:"0910"},11:{label:"NOV/DIC",value:"1112"},12:{label:"NOV/DIC",value:"1112"}},this.lineGraphCurve=F.Z,this.animations=!0,this.colorScheme={domain:["#FC4A14","#58595B","#FF6900","#4C4D4E"],name:"",selectable:!0,group:v.N3.Linear},this.view=[625,215]}set invoices(i){i&&i.length>0?(this.invoicesList=i,this.mapTableData()):this.invoicesList=[]}set dashboardInvoices(i){i&&i.details.length>0?(this.barGraphData=[],this.lineGraphData=[],this.dashboardInvoicesDetails=i.details,this.getAccountsList(),this.mapLineGraphData(),this.mapBarGraphData()):this.dashboardInvoicesDetails=[]}ngOnInit(){this.layoutService.getMenuConfiguration$().pipe((0,g.R)(this._destroy$)).subscribe(i=>{i&&(this.menuComponents=i.menuComponents,this.hasLinee=this.hasRoute("/prodotti/mobile/linee-mobili"),this.hasConto=this.hasRoute("/conto/fatturazione/account"),this.hasDevices=this.hasRoute("/prodotti/fisso-dispositivi/smartphone-modem"),this.hasInvoice=this.hasRoute("/conto/fatturazione/fatture"),this.hasDigitalServices=this.hasRoute("/prodotti/servizi/servizi-digitali"))})}hasRoute(i){const o=s=>s.page?.startsWith(i)||s.subLevel?.some(c=>
1o(c))||!1;return this.menuComponents.some(s=>o(s))}mapTableData(){this.invoicesTableData=this.tableHelper.createDropdownTableData(E.y.INVOICES,this.invoicesList.slice(0,3)),this.invoicesTableData.dataTableRow.forEach(i=>{i.rows.map(o=>{"STATO"===o.title&&(o.advancedColumn=!0)})})}redirectToPage(i){this.router.navigateByUrl(i).then(o=>console.log("Redirect"))}getPercentage(i,o){return 100*o/i}getAccountsList(){const i=new Set;this.dashboardInvoicesDetails.forEach(o=>{o.accountList.forEach(s=>{s.accountId&&s.accountId.length>0&&i.add(s.accountId)})}),this.accountsList=[...i],this.selectedAccount=this.accountsList[0],this.selectedAccount||(this.invoiceDashboardError="empty")}mapBarGraphData(){this.dashboardInvoicesDetails.forEach(i=>{if(i.month){const o={},s=Z()(i.month,"MMYYYY"),c=s.format("MM"),m=s.format("YY");o.name=this.monthsMap[c].label+" "+m,o.series=[],i.accountList.forEach(d=>{const p={};p.name=d.accountId,p.value=d.amount,o.series.push(p)}),this.barGraphData.push(o)}})}mapLineGraphData(){this.dashboardInvoicesDetails.sort((o,s)=>Z()(o.month,"MMYYYY")>Z()(s.month,"MMYYYY")?1:-1);const i={series:[]};i.name=this.selectedAccount,this.dashboardInvoicesDetails.forEach(o=>{if(o.month){const s=Z()(o.month,"MMYYYY"),c=s.format("MM"),m=s.format("YY"),d=this.monthsMap[c].label+" "+m;if(0===o.accountList.length)i.series.push({name:d,value:0});else{const p=o.accountList.filter(l=>l.accountId===this.selectedAccount)[0],_={name:d};_.value=p?.amount??0,i.series.some(l=>l.name===_.name)?i.series.map(l=>{l.name===_.name&&(l.value+=_.value)}):i.series.push(_)}}}),this.lineGraphData.push(i)}formatCurrency(i){const o=Number(i);if(0===o)return"0";const s=o.toString().split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),(s.length>1?s[0]+","+s[1]:s[0])+" \u20ac"}formatAmount(i){const o=Number(i);if(isNaN(o))return"0";const s=o.toString().split(".");return s[0]=s[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),s.length>1?s[0]+","+s[1]:s[0]}goToInvoicePayment(i){this.router.navigateByUrl("/conto/fatture/pagamento-fatture",{state:{invoice:i,backUrl:"/"}})}selectedAccountOnChange(i){this.selectedAccount=i,this.lineGraphData=[],this.mapLineGraphData()}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=a;return a.\u0275fac=function(o){return new(o||a)(e.Y36(y.P),e.Y36(I.S),e.Y36(T.F0))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-dashboard-tm"]],inputs:{invoices:"invoices",dashboardInvoices:"dashboardInvoices",invoiceError:"invoiceError",invoiceDashboardError:"invoiceDashboardError",lines:"lines",linesError:"linesError",isHC:"isHC"},decls:5,vars:3,consts:[[1,"main-pages-content","tm-dashboard-component"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["lines_error",""],[1,"wtbCard","home-card-item","multi"],[1,"row-card-item","smallFontSize"],[1,"column-card-item"],[3,"label","hidePercentage","labelTop","threshold"],[3,"label","labelTop","threshold"],["class","card-item-goTo",3,"click",4,"ngIf"],[1,"card-item-goTo",3,"click"],["src","assets/images/blue-arrow.svg","alt","arrow"],["class","wtbCard home-card-item double graph",4,"ngIf"],[1,"wtbCard","home-card-item","double","graph"],[1,"row-card-item"],[1,"smallTitleCard"],["matTooltip","Monitora il totale della tua spesa mensile. Scorrendo con il mouse su ogni zona colorata puoi visualizzare l'id account di fatturazione e la spesa fatturata.",1,"control-tooltip-icon",3,"matTooltipPosition"],[3,"view","scheme","results","xAxis","yAxis","barPadding","yScaleMax","showGridLines","yAxisTickFormatting","animations",4,"ngIf"],[3,"type","marginTop",4,"ngIf"],[3,"view","scheme","results","xAxis","yAxis","barPadding","yScaleMax","showGridLines","yAxisTickFormatting","animations"],["tooltipTemplate",""],[1,"tooltip"],[2,"margin","0.5rem 0.5rem"],[2,"margin","0.5rem 0.5rem","font-weight","bold"],[3,"type","marginTop"],[1,"row-card-item","spaced"],["class","wrapperSelect",4,"ngIf"],["yAxisLabel","","class","charts-account-invoice",3,"view","showGridLines","scheme","showYAxisLabel","xAxis","yAxis","timeline","activeEntries","curve","yAxisTickFormatting","results",4,"ngIf"],[1,"wrapperSelect"],[3,"value","valueChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["yAxisLabel","",1,"charts-account-invoice",3,"view","showGridLines","scheme","showYAxisLabel","xAxis","yAxis","timeline","activeEntries","curve","yAxisTickFormatting","results"],["seriesTooltipTemplate",""],[1,"wtbCard","home-card-item"],[1,"smallTitleCard","title-invoice"],[3,"data","lazy","simpleTableFooter","advancedColumnTemplate","selectable","extraElement",4,"ngIf"],["extraElem",""],["paymentStatus",""],[3,"data","lazy","simpleTableFooter","advancedColumnTemplate","selectable","extraElement"],[3,"invoice"],["class","cell-table","data-title","Stato",4,"ngIf"],["data-title","Stato",1,"cell-table"],[1,"to-pay-status",3,"click"],[3,"type"]],template:function(o,s){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,pt,27,47,"ng-container",1),e.YNc(2,St,3,2,"ng-container",2),e.qZA(),e.YNc(3,Jt,1,1,"ng-template",null,3,e.W1O)),2&o){const c=e.MAs(4);e.xp6(1),e.Q6J("ngIf",s.lines&&!s.linesError)("ngIfElse",c),e.xp6(1),e.Q6J("ngIf",s.hasConto)}},dependencies:[h.sg,h.O5,M.a,C.H,N.H,G.s,v.XK,v.Dw,w.KE,P.gD,k.ey,S.Hw,J.gM],styles:["[_nghost-%COMP%]{display:block;width:100%}"]}),n})();function Yt(n,a){if(1&n&&(e.TgZ(0,"div",22),e._uU(1,"Bentornato "),e.TgZ(2,"a"),e._uU(3),e.qZA(),e._uU(4,"!"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(3),e.Oqu(t.username?t.username:"")}}function Lt(n,a){if(1&n&&(e.TgZ(0,"div",22),e._uU(1,"Bentornato "),e.TgZ(2,"a"),e._uU(3),e.qZA(),e._uU(4,"!"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(3),e.Oqu(t.msisdn?t.msisdn:"")}}function Qt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("userAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa ad amministratore"),e.qZA()()}}function Ht(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("groupAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa a Group Admin"),e.qZA()()}}function qt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("endUser"))}),e.TgZ(1,"a"),e._uU(2,"Passa a dipendente"),e.qZA()()}}function Ft(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("telcoManager"))}),e.TgZ(1,"a"),e._uU(2,"Passa a Telco Manager"),e.qZA()()}}function Gt(n,a){if(1&n&&(e.ynx(0)(1,25),e.YNc(2,Qt,3,0,"span",26),e.YNc(3,Ht,3,0,"span",26),e.YNc(4,qt,3,0,"span",26),e.YNc(5,Ft,3,0,"span",26),e.BQk()()),2&n){const t=a.$implicit,i=e.oxw(4);e.xp6(1),e.Q6J("ngSwitch",t),e.xp6(1),e.Q6J("ngIf","userAdmin"===t&&"userAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","groupAdmin"===t&&"groupAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","endUser"===t&&"endUser"!==i.userType),e.xp6(1),e.Q6J("ngIf","telcoManager"===t&&"telcoManager"!==i.userType)}}function kt(n,a){if(1&n&&(e.ynx(0),e.YNc(1,Gt,6,5,"ng-container",24),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.profilesList)}}function Bt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("userAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa ad amministratore"),e.qZA()()}}function Rt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("groupAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa a Group Admin"),e.qZA()()}}function Kt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("endUser"))}),e.TgZ(1,"a"),e._uU(2,"Passa a dipendente"),e.qZA()()}}function zt(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("telcoManager"))}),e.TgZ(1,"a"),e._uU(2,"Passa ad amministratore"),e.qZA()()}}function $t(n,a){if(1&n&&(e.ynx(0)(1,25),e.YNc(2,Bt,3,0,"span",26),e.YNc(3,Rt,3,0,"span",26),e.YNc(4,Kt,3,0,"span",26),e.YNc(5,zt,3,0,"span",26),e.BQk()()),2&n){const t=a.$implicit,i=e.oxw(4);e.xp6(1),e.Q6J("ngSwitch",t),e.xp6(1),e.Q6J("ngIf","userAdmin"===t&&"userAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","groupAdmin"===t&&"groupAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","endUser"===t&&"endUser"!==i.userType),e.xp6(1),e.Q6J("ngIf","telcoManager"===t&&"telcoManager"!==i.userType)}}function Vt(n,a){if(1&n&&(e.ynx(0),e.YNc(1,$t,6,5,"ng-container",24),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.profilesList)}}function Wt(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",23),e.YNc(2,kt,2,1,"ng-container",16),e.YNc(3,Vt,2,1,"ng-container",16),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.profilesList&&t.profilesList.length>2||t.profilesList&&2===t.profilesList.length&&t.profilesList.includes("telcoManager")&&t.profilesList.includes("userAdmin")),e.xp6(1),e.Q6J("ngIf",t.profilesList&&t.profilesList.length<=2&&!(2===t.profilesList.length&&t.profilesList.includes("userAdmin")&&t.profilesList.includes("telcoManager")))}}function jt(n,a){if(1&n&&(e.TgZ(0,"li",14)(1,"a",15),e._uU(2),e.qZA()()),2&n){const t=a.$implicit;e.xp6(2),e.hij(" ",t.msisdn,"")}}function Xt(n,a){if(1&n&&(e.TgZ(0,"dt",11),e._UZ(1,"img",12),e.TgZ(2,"span",13),e._uU(3,"LE TUE SIM ASSOCIATE "),e._UZ(4,"br"),e.TgZ(5,"ul"),e.YNc(6,jt,3,1,"li",28),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(6),e.Q6J("ngForOf",null==t.offerData?null:t.offerData.simAssociate)}}function en(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"p",29),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(2);return e.KtG(o.redirectToPage("/prodotti/servizi/servizi-digitali"))}),e._uU(1,"Visualizza dettaglio "),e._UZ(2,"img",30),e.qZA()}}function tn(n,a){if(1&n&&(e.TgZ(0,"div",6)(1,"div",7)(2,"div",8)(3,"dl",9),e.YNc(4,Yt,5,1,"div",10),e.YNc(5,Lt,5,1,"div",10),e.TgZ(6,"dt",11),e._UZ(7,"img",12),e.TgZ(8,"span",13),e._uU(9,"LA TUA AZIENDA "),e._UZ(10,"br"),e.TgZ(11,"span",14),e._uU(12,"Partita iva: "),e.TgZ(13,"a",15),e._uU(14),e.qZA()()(),e.YNc(15,Wt,4,2,"ng-container",16),e.qZA(),e.YNc(16,Xt,7,1,"dt",17),e.qZA()()(),e.TgZ(17,"div",18)(18,"div",19),e._uU(19,"Servizi digitali attivi: "),e.TgZ(20,"span",20),e._uU(21),e.qZA()(),e.YNc(22,en,3,0,"p",21),e.qZA()()),2&n){const t=e.oxw();e.xp6(4),e.Q6J("ngIf",!t.isEndUser),e.xp6(1),e.Q6J("ngIf",t.isEndUser),e.xp6(9),e.Oqu(t.pIva),e.xp6(1),e.Q6J("ngIf",t.profilesList),e.xp6(1),e.Q6J("ngIf",null==t.offerData?null:t.offerData.simAssociate),e.xp6(5),e.Oqu(t.digitalServiceListNumber),e.xp6(1),e.Q6J("ngIf",t.hasProdotti)}}function nn(n,a){if(1&n&&(e.TgZ(0,"div",22),e._uU(1,"Bentornato "),e.TgZ(2,"a"),e._uU(3),e.qZA(),e._uU(4,"!"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(3),e.Oqu(t.username?t.username:"")}}function on(n,a){if(1&n&&(e.TgZ(0,"div",22),e._uU(1,"Bentornato "),e.TgZ(2,"a"),e._uU(3),e.qZA(),e._uU(4,"!"),e.qZA()),2&n){const t=e.oxw(2);e.xp6(3),e.Oqu(t.msisdn?t.msisdn:"")}}function an(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("userAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa ad amministratore"),e.qZA()()}}function sn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("groupAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa a Group Admin"),e.qZA()()}}function rn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("endUser"))}),e.TgZ(1,"a"),e._uU(2,"Passa a dipendente"),e.qZA()()}}function cn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("telcoManager"))}),e.TgZ(1,"a"),e._uU(2,"Passa a Telco Manager"),e.qZA()()}}function ln(n,a){if(1&n&&(e.ynx(0)(1,25),e.YNc(2,an,3,0,"span",26),e.YNc(3,sn,3,0,"span",26),e.YNc(4,rn,3,0,"span",26),e.YNc(5,cn,3,0,"span",26),e.BQk()()),2&n){const t=a.$implicit,i=e.oxw(4);e.xp6(1),e.Q6J("ngSwitch",t),e.xp6(1),e.Q6J("ngIf","userAdmin"===t&&"userAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","groupAdmin"===t&&"groupAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","endUser"===t&&"endUser"!==i.userType),e.xp6(1),e.Q6J("ngIf","telcoManager"===t&&"telcoManager"!==i.userType)}}function _n(n,a){if(1&n&&(e.ynx(0),e.YNc(1,ln,6,5,"ng-container",24),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.profilesList)}}function pn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("userAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa ad amministratore"),e.qZA()()}}function dn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("groupAdmin"))}),e.TgZ(1,"a"),e._uU(2,"Passa a Group Admin"),e.qZA()()}}function mn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("endUser"))}),e.TgZ(1,"a"),e._uU(2,"Passa a dipendente"),e.qZA()()}}function gn(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"span",27),e.NdJ("click",function(){e.CHM(t);const o=e.oxw(5);return e.KtG(o.switchProfile("telcoManager"))}),e.TgZ(1,"a"),e._uU(2,"Passa ad amministratore"),e.qZA()()}}function hn(n,a){if(1&n&&(e.ynx(0)(1,25),e.YNc(2,pn,3,0,"span",26),e.YNc(3,dn,3,0,"span",26),e.YNc(4,mn,3,0,"span",26),e.YNc(5,gn,3,0,"span",26),e.BQk()()),2&n){const t=a.$implicit,i=e.oxw(4);e.xp6(1),e.Q6J("ngSwitch",t),e.xp6(1),e.Q6J("ngIf","userAdmin"===t&&"userAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","groupAdmin"===t&&"groupAdmin"!==i.userType),e.xp6(1),e.Q6J("ngIf","endUser"===t&&"endUser"!==i.userType),e.xp6(1),e.Q6J("ngIf","telcoManager"===t&&"telcoManager"!==i.userType)}}
1function un(n,a){if(1&n&&(e.ynx(0),e.YNc(1,hn,6,5,"ng-container",24),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("ngForOf",t.profilesList)}}function fn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",23),e.YNc(2,_n,2,1,"ng-container",16),e.YNc(3,un,2,1,"ng-container",16),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.profilesList&&t.profilesList.length>2||t.profilesList&&2===t.profilesList.length&&t.profilesList.includes("telcoManager")&&t.profilesList.includes("userAdmin")),e.xp6(1),e.Q6J("ngIf",t.profilesList&&t.profilesList.length<=2&&!(2===t.profilesList.length&&t.profilesList.includes("userAdmin")&&t.profilesList.includes("telcoManager")))}}function vn(n,a){if(1&n&&(e.TgZ(0,"li",14)(1,"a",15),e._uU(2),e.qZA()()),2&n){const t=a.$implicit;e.xp6(2),e.hij(" ",t.msisdn,"")}}function Tn(n,a){if(1&n&&(e.TgZ(0,"dt",11),e._UZ(1,"img",12),e.TgZ(2,"span",13),e._uU(3,"LE TUE SIM ASSOCIATE "),e._UZ(4,"br"),e.TgZ(5,"ul"),e.YNc(6,vn,3,1,"li",28),e.qZA()()()),2&n){const t=e.oxw(2);e.xp6(6),e.Q6J("ngForOf",null==t.offerData?null:t.offerData.simAssociate)}}function xn(n,a){if(1&n&&(e.TgZ(0,"div",7)(1,"div",8)(2,"dl",9),e.YNc(3,nn,5,1,"div",10),e.YNc(4,on,5,1,"div",10),e.TgZ(5,"dt",11),e._UZ(6,"img",12),e.TgZ(7,"span",13),e._uU(8,"LA TUA AZIENDA "),e._UZ(9,"br"),e.TgZ(10,"span",14),e._uU(11,"Partita iva: "),e.TgZ(12,"a",15),e._uU(13),e.qZA()()(),e.YNc(14,fn,4,2,"ng-container",16),e.qZA(),e.YNc(15,Tn,7,1,"dt",17),e.qZA()()()),2&n){const t=e.oxw();e.xp6(3),e.Q6J("ngIf",!t.isEndUser),e.xp6(1),e.Q6J("ngIf",t.isEndUser),e.xp6(9),e.Oqu(t.pIva),e.xp6(1),e.Q6J("ngIf",t.profilesList),e.xp6(1),e.Q6J("ngIf",null==t.offerData?null:t.offerData.simAssociate)}}function bn(n,a){1&n&&(e.TgZ(0,"div",36),e._UZ(1,"img",37),e.TgZ(2,"div",38),e._uU(3,"NON HAI NUOVE NOTIFICHE"),e.qZA()())}function An(n,a){if(1&n){const t=e.EpF();e.TgZ(0,"div",44)(1,"div",45)(2,"div",46)(3,"div",47),e._uU(4),e.ALo(5,"uppercase"),e.qZA(),e.TgZ(6,"div",48),e._uU(7),e.qZA()(),e.TgZ(8,"button",49),e.NdJ("click",function(){const s=e.CHM(t).$implicit,c=e.oxw(4);return e.KtG(c.goToNotification(s.idNotification))}),e._uU(9,"Visualizza"),e.qZA()()()}if(2&n){const t=a.$implicit;e.xp6(4),e.hij(" ",e.lcZ(5,2,t.event),""),e.xp6(3),e.hij(" ",t.date,"")}}function Cn(n,a){if(1&n&&(e.TgZ(0,"div",39)(1,"div",40),e._UZ(2,"img",37),e.TgZ(3,"div",38),e._uU(4,"HAI "),e.TgZ(5,"a"),e._uU(6),e.qZA(),e._uU(7,"NOTIFICHE NON LETTE"),e.qZA()(),e.TgZ(8,"ngx-slick-carousel",41,42),e.YNc(10,An,10,4,"div",43),e.qZA()()),2&n){const t=e.oxw(3);e.xp6(6),e.hij(" ",t.notificationsDetail.length,""),e.xp6(2),e.Q6J("config",t.slideConfig),e.xp6(2),e.Q6J("ngForOf",t.notificationsToShow)}}function Zn(n,a){if(1&n&&(e.ynx(0),e.TgZ(1,"div",33),e.YNc(2,bn,4,0,"div",34),e.YNc(3,Cn,11,3,"div",35),e.qZA(),e.BQk()),2&n){const t=e.oxw(2);e.xp6(2),e.Q6J("ngIf",t.emptyNotifications),e.xp6(1),e.Q6J("ngIf",!t.emptyNotifications&&t.notificationsDetail)}}function Dn(n,a){if(1&n&&e._UZ(0,"app-error-message",50),2&n){const t=e.oxw(2);e.Q6J("type",t.notificationErrorMessageType)}}const Un=function(n){return{gray:n}};function yn(n,a){if(1&n&&(e.TgZ(0,"div",31),e.YNc(1,Zn,4,2,"ng-container",4),e.YNc(2,Dn,1,1,"ng-template",null,32,e.W1O),e.qZA()),2&n){const t=e.MAs(3),i=e.oxw();e.Q6J("ngClass",e.VKq(3,Un,i.emptyNotifications)),e.xp6(1),e.Q6J("ngIf",!i.displayNotifyErrorMessage)("ngIfElse",t)}}function En(n,a){if(1&n&&e._UZ(0,"app-dashboard-eu",53),2&n){const t=e.oxw(3);e.Q6J("rechargeHistory",t.rechargesList)("simsAssociated",t.simsAssociated)("offerData",t.offerData)}}function In(n,a){if(1&n&&(e.ynx(0),e.YNc(1,En,1,3,"app-dashboard-eu",52),e.BQk()),2&n){const t=e.oxw(2);e.xp6(1),e.Q6J("ngIf",t.offerData)}}function Mn(n,a){if(1&n&&(e.ynx(0),e._UZ(1,"app-dashboard-tm",55),e.BQk()),2&n){const t=e.oxw(3);e.xp6(1),e.Q6J("invoices",t.invoices)("invoiceError",t.invoicesError)("lines",t.linesInformation)("linesError",t.linesInformationError)("invoiceDashboardError",t.invoicesDashboardError)("dashboardInvoices",t.invoicesDashboard)("isHC",t.isHC)}}function Nn(n,a){if(1&n&&e._UZ(0,"app-dashboard-ua",55),2&n){const t=e.oxw(4);e.Q6J("invoices",t.invoices)("invoiceError",t.invoicesError)("lines",t.linesInformation)("linesError",t.linesInformationError)("invoiceDashboardError",t.invoicesDashboardError)("dashboardInvoices",t.invoicesDashboard)("isHC",t.isHC)}}function wn(n,a){if(1&n&&e.YNc(0,Nn,1,7,"app-dashboard-ua",56),2&n){const t=e.oxw(3);e.Q6J("ngIf",(t.linesInformation||t.linesInformationError)&&(t.invoices||t.invoicesError)&&(t.invoicesDashboard||t.invoicesDashboardError))}}function Pn(n,a){if(1&n&&(e.YNc(0,Mn,2,7,"ng-container",4),e.YNc(1,wn,1,1,"ng-template",null,54,e.W1O)),2&n){const t=e.MAs(2),i=e.oxw(2);e.Q6J("ngIf","telcoManager"===i.userType||"groupAdmin"===i.userType)("ngIfElse",t)}}function Sn(n,a){if(1&n&&(e.ynx(0),e.YNc(1,In,2,1,"ng-container",4),e.YNc(2,Pn,3,2,"ng-template",null,51,e.W1O),e.BQk()),2&n){const t=e.MAs(3),i=e.oxw();e.xp6(1),e.Q6J("ngIf",i.isEndUser)("ngIfElse",t)}}function Jn(n,a){if(1&n&&e._UZ(0,"app-error-message",50),2&n){const t=e.oxw();e.Q6J("type",t.errorMessageType)}}
1const On=[{path:"",component:(()=>{const a=class{constructor(i,o,s,c,m,d,p,_,l,Bn,Rn,Kn,zn,$n,Vn,Wn,jn,Xn,ei){this.offerService=i,this.userUtilService=o,this.sidebarService=s,this.spinnerService=c,this.invoicesService=m,this.associateSimService=d,this.rechargeService=p,this.notificationService=_,this.userManagementService=l,this.dialogService=Bn,this.keycloak=Rn,this.router=Kn,this.tokenRefreshService=zn,this.sessionService=$n,this.userUtils=Vn,this.layoutService=Wn,this.profilesService=jn,this.changeDetector=Xn,this.environment=ei,this.simsAssociated=[],this.errorMessageType="empty",this.notificationErrorMessageType="empty",this.displayErrorMessage=!1,this.displayNotifyErrorMessage=!1,this._destroy$=new D.x,this.isHC=!1,this.slideConfig={slidesToShow:1,slidesToScroll:1,swipeToSlide:!1,dots:!0},this.profilesList=[],this.menuComponents=[],this.hasProdotti=!1,this.tokenRefreshService.tokenChanged$.pipe((0,g.R)(this._destroy$)).subscribe(()=>{this.msisdn=this.userUtilService.getMsisdn(),this.loggedMsisdn=this.msisdn;const R=this.userUtilService.getCurrentMsisdn();R&&(this.msisdn=R),this.pIva=this.userUtilService.getPiva(),this.isEndUser=this.userUtilService.isEndUser(),this.isHC=this.userUtilService.isHcAc(),this.username=this.userUtilService.getUserName(),this.userType=this.userUtilService.getProfile(),this.isEndUser?this.getEndUserOffer():this.getUserAdminOffer()}),this.sidebarConfig=this.isEndUser?this.sidebarService.getEUHomeDefaultConfiguration():this.sidebarService.getUAHomeDefaultConfiguration()}ngOnInit(){this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.isEndUser?this.getEndUserOffer():this.getUserAdminOffer(),this.isEndUser&&(this.userUtilService.msisdnChangedSubject.pipe((0,g.R)(this._destroy$)).subscribe({next:i=>{i&&i.length>0&&(this.msisdn=i,this.getEndUserOffer())}}),this.userUtilService.simAssociateSubject.pipe((0,g.R)(this._destroy$)).subscribe(i=>{i&&(this.simsAssociated=i.msisdns)})),this.subscribeProfilesList(),this.layoutService.getMenuConfiguration$().pipe((0,g.R)(this._destroy$)).subscribe(i=>{i&&(this.menuComponents=i.menuComponents,this.hasProdotti=this.hasRoute("/prodotti"))})}getEndUserOffer(){this.displayErrorMessage=!1,this.spinnerService.enable();const i=new K.z(this.msisdn,19),o=new W.l(this.loggedMsisdn),s=new j.P(this.msisdn),c={msisdn:this.msisdn?this.msisdn:void 0};this.offerData=null;const m=this.offerService.getOfferEU(i).pipe((0,g.R)(this._destroy$),(0,u.K)(l=>(this.displayErrorMessage=!0,this.errorMessageType="error",(0,f.of)(l)))),d=this.associateSimService.getAssociateSims(o).pipe((0,g.R)(this._destroy$),(0,u.K)(l=>(0,f.of)(l))),p=this.rechargeService.getRechargeHistoryList(s).pipe((0,g.R)(this._destroy$),(0,u.K)(l=>(0,f.of)(l))),_=this.notificationService.getNotificationHistoryList(c).pipe((0,g.R)(this._destroy$),(0,u.K)(l=>(this.displayNotifyErrorMessage=!0,this.errorMessageType="error",this.isNotificationsLoaded=!0,(0,f.of)(l))));(0,Q.D)([m,d,p,_]).pipe((0,g.R)(this._destroy$)).subscribe(l=>{l[0].error||(this.offerData=l[0],this.loggedMsisdn===this.msisdn&&this.offerData&&(this.userUtilService.setMsisdnType(this.offerData.userType),this.loggedMsisdnType=this.offerData.userType)),l[1].error||(l[1].msisdns&&l[1].msisdns.length>0&&(this.simsAssociated=l[1].msisdns),(!this.sidebarConfig.associateSims.msisdns||0===this.sidebarConfig.associateSims.msisdns.length)&&(this.sidebarConfig.associateSims=l[1],this.userUtilService.setAssociatedSims(l[1]))),l[2].error||(this.rechargesList=l[2].topUpHistory&&0===l[2].topUpHistory.length?[]:l[2].topUpHistory),l[3].error||this.setupNotifications(l[3]),this.spinnerService.disable()})}getUserAdminOffer(){this.spinnerService.enable();const i=new z.n(!0,this.pIva),o=new $.g,s={piva:this.pIva?this.pIva:void 0},c=this.offerService.getLineList(i).pipe((0,g.R)(this._destroy$),(0,u.K)(_=>(this.linesInformationError="error",this.sidebarConfig.lines=new V.H,(0,f.of)(_)))),m=this.invoicesService.getInvoices(o).pipe((0,g.R)(this._destroy$),(0,u.K)(_=>(this.invoicesError="error",(0,f.of)(_)))),d=this.invoicesService.getDashboardInvoice(o).pipe((0,g.R)(this._destroy$),(0,u.K)(_=>(this.invoicesDashboardError="error",(0,f.of)(_)))),p=this.notificationService.getNotificationHistoryUaTmList(s).pipe((0,g.R)(this._destroy$),(0,u.K)(_=>(this.displayNotifyErrorMessage=!0,this.notificationErrorMessageType="error",this.isNotificationsLoaded=!0,(0,f.of)(_))));(0,Q.D)([c,m,d,p]).pipe((0,g.R)(this._destroy$)).subscribe(_=>{console.log("Risultato chiamate HTTP",_),_[0].error||(this.sidebarConfig.lines=_[0],this.linesInformation=_[0],this.digitalServiceListNumber=_[0].numberPrdBtcES),_[1].error||(_[1].invoices&&0!==_[1].invoices.length?(this.invoices=_[1].invoices,this.invoices.map(l=>l.amountView=l.amountInvoice?.replace(".",",")+"\u20ac")):this.invoicesError="empty"),_[2].error||(_[2].details&&0===_[2].details.length&&(this.invoicesDashboardError="empty"),this.invoicesDashboard=_[2]),_[3].error||this.setupNotifications(_[3]),this.spinnerService.disable()})}setupNotifications(i){i.notificationHistoryDetail&&i.notificationHistoryDetail.length>
10?(this.emptyNotifications=!1,this.notificationsDetail=i.notificationHistoryDetail.filter(o=>o.showInHomePage),this.notificationService.emitNotificationsToRead(this.notificationsDetail.length>0&&this.notificationsDetail.every(o=>!o.read)),this.notificationsToShow=this.notificationsDetail.slice(0,5)):(this.notificationService.emitNotificationsToRead(!1),this.emptyNotifications=!0),this.isNotificationsLoaded=!0}goToNotification(i){this.router.navigateByUrl("gestione-notifiche")}switchProfile(i){const o=new X._A(i);this.userManagementService.getProfile(o).subscribe({next:s=>{if(s&&s.access_token){localStorage.clear(),this.keycloak.getKeycloakInstance().token=s.access_token;const c=(0,ee.o)(s.access_token);this.sessionService.setLocalStorageLoggedIn(c||{}),this.userUtilService.setAuthToken(s.access_token),this.tokenRefreshService.notifyTokenChanged(),this.userUtilService.setIdToken(s.id_token),this.spinnerService.disable(),this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate(["/"]),this.updateMenuConfiguration()}),window.location.reload()}else this.spinnerService.disable(),this.errorModal()},error:()=>{this.errorModal()}})}updateMenuConfiguration(){const i=this.userUtilService.getMsisdn(),o=this.userUtilService.getProfile(),s=new ne.T(i,o);this.layoutService.getMenu(s).subscribe(c=>{this.menuConfiguration=c,this.layoutService.setMenuConfiguration(c),this.changeDetector.markForCheck()})}subscribeProfilesList(){this.profilesService.profilesList$.pipe((0,g.R)(this._destroy$)).subscribe(i=>{i&&(this.profilesList=i)})}redirectToPage(i){this.router.navigateByUrl(i).then(o=>console.log("Redirect"))}errorModal(){this.dialogService.open({title:"Attenzione!",message:"Si \xe8 verificato un errore durante il recupero delle informazioni, si prega di riprovare pi\xf9 tardi",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}hasRoute(i){const o=s=>s.page?.startsWith(i)||s.subLevel?.some(c=>
1o(c))||!1;return this.menuComponents.some(s=>o(s))}ngOnDestroy(){this.spinnerService.disable(),this.sidebarService.resetSidebarConfiguration(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=a;return a.\u0275fac=function(o){return new(o||a)(e.Y36(ie.K),e.Y36(U.r),e.Y36(oe.P),e.Y36(ae.V),e.Y36(se.x),e.Y36(re.X),e.Y36(ce.h),e.Y36(le.g),e.Y36(_e.x),e.Y36(pe.D),e.Y36(de.MZ),e.Y36(T.F0),e.Y36(me.$),e.Y36(ge.m),e.Y36(U.r),e.Y36(y.P),e.Y36(he.L),e.Y36(e.sBO),e.Y36(te.p))},a.\u0275cmp=e.Xpm({type:a,selectors:[["app-home"]],decls:7,vars:5,consts:[[1,"home-page"],["class","wtbCard home-card-item double digital-services",4,"ngIf"],["class","wtbCard home-card-item double",4,"ngIf"],["class","wtbCard home-card-item double",3,"ngClass",4,"ngIf"],[4,"ngIf","ngIfElse"],["error_banner",""],[1,"wtbCard","home-card-item","double","digital-services"],[1,"wtbCard","home-card-item","double"],[1,"column-card-item","no-margin","switch"],[1,"box-card-list"],["class","welcomeTitle",4,"ngIf"],[1,"box-card-list-item"],["src","assets/images/azienda.svg","alt",""],[1,"box-card-listTit"],[1,"box-card-list-description"],[2,"font-weight","bold"],[4,"ngIf"],["class","box-card-list-item",4,"ngIf"],[1,"wtbCard","home-card-item","double","digitalServices-card"],[1,"column-card-item","no-margin","digitalServicesTitle"],[1,"digitalServicesNum"],["class","card-item-goTo",3,"click",4,"ngIf"],[1,"welcomeTitle"],[1,"profile-switch-container"],[4,"ngFor","ngForOf"],[3,"ngSwitch"],["class","box-card-listTit switch",3,"click",4,"ngIf"],[1,"box-card-listTit","switch",3,"click"],["class","box-card-list-description",4,"ngFor","ngForOf"],[1,"card-item-goTo",3,"click"],["src","assets/images/blue-arrow.svg","alt","arrow"],[1,"wtbCard","home-card-item","double",3,"ngClass"],["notifyErrorBanner",""],[1,"row-card-item","notification-carousel"],["class","emptyNotifications-list",4,"ngIf"],["class","notifications-list",4,"ngIf"],[1,"emptyNotifications-list"],["src","assets/images/ico-notify.svg","alt","user"],[1,"titleHeader"],[1,"notifications-list"],[1,"notifications-list-header"],[1,"carousel","notifications-slick-carousel",3,"config"],["slickModal","slick-carousel"],["ngxSlickItem","","class","slide",4,"ngFor","ngForOf"],["ngxSlickItem","",1,"slide"],[1,"card","wtbCard"],[1,"notifications-text"],[1,"notifications-description"],[1,"notifications-date"],[1,"notifications-btn",3,"click"],[3,"type"],["infoUA",""],[3,"rechargeHistory","simsAssociated","offerData",4,"ngIf"],[3,"rechargeHistory","simsAssociated","offerData"],["dashboardUA",""],[3,"invoices","invoiceError","lines","linesError","invoiceDashboardError","dashboardInvoices","isHC"],[3,"invoices","invoiceError","lines","linesError","invoiceDashboardError","dashboardInvoices","isHC",4,"ngIf"]],template:function(o,s){if(1&o&&(e.TgZ(0,"div",0),e.YNc(1,tn,23,7,"div",1),e.YNc(2,xn,16,5,"div",2),e.YNc(3,yn,4,5,"div",3),e.YNc(4,Sn,4,2,"ng-container",4),e.YNc(5,Jn,1,1,"ng-template",null,5,e.W1O),e.qZA()),2&o){const c=e.MAs(6);e.xp6(1),e.Q6J("ngIf",s.digitalServiceListNumber),e.xp6(1),e.Q6J("ngIf",!s.digitalServiceListNumber),e.xp6(1),e.Q6J("ngIf",s.isNotificationsLoaded),e.xp6(1),e.Q6J("ngIf",!s.displayErrorMessage)("ngIfElse",c)}},dependencies:[h.mk,h.sg,h.O5,h.RF,C.H,H.vE,H.Xg,Ye,ct,Ot,h.gd],encapsulation:2}),n})()}];let Yn=(()=>{const a=class{};let n=a;return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({imports:[T.Bz.forChild(On),T.Bz]}),n})();var Ln=r(4466),Qn=r(2278),Hn=r(4859),qn=r(5986),B=r(4006),Fn=r(3848),Gn=r(284);let kn=(()=>{const a=class{};let n=a;return a.\u0275fac=function(o){return new(o||a)},a.\u0275mod=e.oAB({type:a}),a.\u0275inj=e.cJS({providers:[qn.g],imports:[h.ez,Yn,Ln.m,Qn.AccountModule,v.a4,w.lN,P.LD,Hn.ot,S.Ps,J.AV,B.UX,Fn.Nh,B.u5,Gn.c]}),n})()}}]);

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.