1"use strict";(self.webpackChunkSelfcareWebNew=self.webpackChunkSelfcareWebNew||[]).push([[261],{9301:(lt,Y,g)=>{g.d(Y,{f:()=>b});var l=g(4548),v=g(4004),T=g(262),u=g(2843),w=g(4650),M=g(529);let b=(()=>{const Z=class{constructor(_,d){this.environment=_,this.http=d,this.optionApiUrl="/option",this.offerApiUrl="/offer",this.serviceApiUrl="/option/service",this.securityApiUrl="/option/security/report",this.securityFixedApiUrl="/securityReport/line"}activeTechnicalServices(_){return this.http.put(this.environment.baseUrlApi+this.serviceApiUrl+"/activate",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}activeContentServices(_,d,m){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/flagVsa/modify",{msisdn:_,actionFormatTV:d,actionServices:m,siteId:19}).pipe((0,v.U)(C=>C.data),(0,T.K)(C=>(0,u._)(C)))}getContentServices(_){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/flagVsa",{msisdn:_}).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getActiveServices(_){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/active/get",{msisdn:_}).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}checkServicesActivation(_){return this.http.post(this.environment.baseUrlApi+this.serviceApiUrl+"/activation/check",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getActiveOptionList(_,d){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/details",{phxCode:_,type:d,direct:!1}).pipe((0,v.U)(m=>m.data),(0,T.K)(m=>(0,u._)(m)))}getDistinctOptions(){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/list",{}).pipe((0,v.U)(_=>_.data),(0,T.K)(_=>(0,u._)(_)))}getDistinctTariffPlans(){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/pntf/list",{}).pipe((0,v.U)(_=>_.data),(0,T.K)(_=>(0,u._)(_)))}optionsDeactivation(_){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/deactivate",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}checkOptionsActivation(_){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/activation/check",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}optionsActivation(_){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/activate",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getStaticServices(){return this.http.get(this.environment.baseUrlApi+this.serviceApiUrl+"/static").pipe((0,v.U)(_=>_.data),(0,T.K)(_=>(0,u._)(_)))}modifyExtraGiga(_){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/modifyExtra",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getReportCumulated(_){return this.http.post(this.environment.baseUrlApi+this.securityApiUrl+"/cumulated",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getReportCumulatedFixed(_){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.securityFixedApiUrl+"/aggregate",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getReport(_){return this.http.post(this.environment.baseUrlApi+this.securityApiUrl+"/get",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}getReportFixed(_){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.securityFixedApiUrl+"/single",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}showInvoiceDetails(_){return this.http.post(this.environment.baseUrlApi+this.optionApiUrl+"/invoice/call/activation",_).pipe((0,v.U)(d=>d.data),(0,T.K)(d=>(0,u._)(d)))}};let k=Z;return Z.\u0275fac=function(d){return new(d||Z)(w.LFG(l.p),w.LFG(M.eN))},Z.\u0275prov=w.Yz7({token:Z,factory:Z.\u0275fac}),k})()},8261:(lt,Y,g)=>{g.r(Y),g.d(Y,{ProductsModule:()=>Vs});var l=g(6895),v=g(3060),T=g(2264),u=g(6433),w=g(5023),M=g(7579),b=g(2722),k=g(9675),Z=g(2254),t=g(4650),_=g(1501),d=g(4578),m=g(4074),C=g(8395),O=g(8628),L=g(762),E=g(1208),y=g(4077),q=g(2834),j=g(7086),z=g(9301),D=g(7028);let H=(()=>{const s=class{constructor(i,o){this.renderer=i,this.el=o}ngAfterViewChecked(){this.el.nativeElement.getElementsByClassName(this.ifContainsClass).length&&this.renderer.addClass(this.el.nativeElement,this.setClass)}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(t.Qsj),t.Y36(t.SBq))},s.\u0275dir=t.lG2({type:s,selectors:[["","ifContainsClass",""]],inputs:{ifContainsClass:"ifContainsClass",setClass:"setClass"}}),n})();class it{constructor(){}}
1var R=g(5439),Pt=g(6003),dt=g(5698),S=g(4004),p=g(4006),A=g(5412),gt=g(4548),nt=g(4984),W=g(6709),ot=g(7392);function Mt(n,s){1&n&&t._UZ(0,"app-spinner")}function yt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"div",17)(2,"p",18),t._uU(3),t.qZA()(),t.TgZ(4,"div",19)(5,"div",20),t._UZ(6,"mat-checkbox",21),t.TgZ(7,"span",22),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.showContractConditions())}),t.TgZ(8,"b"),t._uU(9,"PRENDO VISIONE"),t.qZA(),t._uU(10," e accetto le Condizioni di Contratto "),t.qZA()()(),t.TgZ(11,"div",19)(12,"div",20),t._UZ(13,"mat-checkbox",21),t.TgZ(14,"span",22),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.showOptionsModule())}),t.TgZ(15,"b"),t._uU(16,"PRENDO VISIONE"),t.qZA(),t._uU(17," e accetto le Condizioni Economiche di Contratto "),t.qZA()()(),t.TgZ(18,"div",19)(19,"div",20),t._UZ(20,"mat-checkbox",21),t.TgZ(21,"span",22),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.showPrivacy())}),t.TgZ(22,"b"),t._uU(23,"PRENDO VISIONE"),t.qZA(),t._uU(24," del Trattamento dei Dati Personali "),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(3),t.AsE(' Cliccando su "CONFERMA" dichiari di accettare la modifica degli extra giga associati all\'offerta ',e.tariffPlan," sul numero ",e.msisdn," "),t.xp6(3),t.Q6J("formControl",e.contractConditions),t.xp6(7),t.Q6J("formControl",e.economicConditions),t.xp6(7),t.Q6J("formControl",e.privacy)}}function Zt(n,s){1&n&&t._UZ(0,"app-error-message",23),2&n&&t.Q6J("type","error")}const At=function(n){return{inactive:n}};let wt=(()=>{const s=class{constructor(i,o,a,r){this.data=i,this._mdDialogRef=o,this._optionService=a,this.environment=r,this.loading=!1,this.removeExtraGiga=!1,this._destroy$=new M.x,this.pdfUrl="",this.extraGigaForm=new p.cw({contractConditions:new p.NI(!1,p.kI.requiredTrue),economicConditions:new p.NI(!1,p.kI.requiredTrue),privacy:new p.NI(!1,p.kI.requiredTrue)}),this.removeExtraGiga=!!(i.extraGigaInfo.refill&&i.extraGigaInfo.refill>0),this.tariffPlan=i.tariffPlan,this.msisdn=i.msisdn,this.pdfUrl=this.environment.pdfUrl}get contractConditions(){return this.extraGigaForm.get("contractConditions")}get economicConditions(){return this.extraGigaForm.get("economicConditions")}get privacy(){return this.extraGigaForm.get("privacy")}closeDialog(i){this._mdDialogRef.close(i)}submit(){this.loading=!0;const{type:i,rootIntegrationId:o}=this.data;this._optionService.modifyExtraGiga({msisdn:this.msisdn,type:i,extraRefillsNumber:this.removeExtraGiga?"0":"3",integrationIdSim:o}).pipe((0,b.R)(this._destroy$)).subscribe({next:r=>{this.loading=!1,this.closeDialog("success")},error:r=>{this.loading=!1,this.showError=!0}})}showContractConditions(){window.open(`${this.pdfUrl}cgc_unica.pdf`,"_blank")}showOptionsModule(){window.open(`${this.pdfUrl}modulo_opzioni.pdf`,"_blank")}showPrivacy(){window.open(`${this.pdfUrl}informativa_privacy.pdf`,"_blank")}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(A.WI),t.Y36(A.so),t.Y36(z.f),t.Y36(gt.p))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-extra-giga-dialog"]],decls:20,vars:9,consts:[[1,"extra-giga-dialog"],[4,"ngIf"],["mat-dialog-content",""],[1,"header"],["mat-dialog-title","",1,"extra-giga-dialog-title"],[1,"extra-giga-close",3,"click"],["color","white"],[1,"extra-giga-dialog-container"],[1,"img-dialog"],["src","assets\\images\\img-info.svg",1,"img-info"],["autocomplete","off",3,"formGroup"],["class","form-container",4,"ngIf"],[3,"type",4,"ngIf"],[1,"buttonWrapper","center"],[1,"cta","empty",3,"click"],[1,"cta",3,"disabled","ngClass","click"],[1,"form-container"],[1,"row","information-section"],[1,"information-label"],[1,"row","acceptation-section"],[1,"box"],[3,"formControl"],[1,"label-checkbox",3,"click"],[3,"type"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0),t.YNc(1,Mt,1,0,"app-spinner",1),t.TgZ(2,"div",2)(3,"div",3)(4,"div",4),t._uU(5),t.qZA(),t.TgZ(6,"div",5),t.NdJ("click",function(){return a.closeDialog()}),t.TgZ(7,"mat-icon",6),t._uU(8,"close"),t.qZA()()(),t.TgZ(9,"div",7)(10,"div",8),t._UZ(11,"img",9),t.qZA(),t.TgZ(12,"form",10),t.YNc(13,yt,25,5,"div",11),t.YNc(14,Zt,1,1,"app-error-message",12),t.TgZ(15,"div",13)(16,"button",14),t.NdJ("click",function(){return a.closeDialog()}),t._uU(17,"ANNULLA"),t.qZA(),t.TgZ(18,"button",15),t.NdJ("click",function(){return a.submit()}),t._uU(19,"CONFERMA "),t.qZA()()()()()()),2&o&&(t.xp6(1),t.Q6J("ngIf",a.loading),t.xp6(4),t.hij(" ",a.removeExtraGiga?"RIMUOVI EXTRA GIGA":"AGGIUNGI EXTRA GIGA"," "),t.xp6(7),t.Q6J("formGroup",a.extraGigaForm),t.xp6(1),t.Q6J("ngIf",!a.showError),t.xp6(1),t.Q6J("ngIf",a.showError),t.xp6(4),t.Q6J("disabled",a.showError||!a.extraGigaForm.valid)("ngClass",t.VKq(7,At,!a.extraGigaForm.valid)))},dependencies:[l.mk,l.O5,nt.O,y.H,W.oG,ot.Hw,A.uh,A.xY,p._Y,p.JJ,p.JL,p.oH,p.sg],styles:[".extra-giga-dialog[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{position:relative}.extra-giga-dialog[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .extra-giga-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;height:3rem;width:3rem;display:flex;align-items:center;justify-content:center}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-title[_ngcontent-%COMP%]{font-family:inherit;font-size:1.8rem;font-weight:800;text-align:center;color:#000}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%]{margin:0 auto 1rem;flex-direction:column}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .img-dialog[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin:3.5rem 0}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .img-dialog[_ngcontent-%COMP%] .img-info[_ngcontent-%COMP%]{max-width:9.6rem}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{top:1.5rem;font-size:1.6rem}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .extra-giga-dialog-error-message[_ngcontent-%COMP%]{font: 14px/17px Montserrat;letter-spacing:0;color:#ed1c24;opacity:1}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .error-logo[_ngcontent-%COMP%]{max-width:4rem}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%]{justify-content:center;align-items:center}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .information-section[_ngcontent-%COMP%]{margin-top:2rem}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .information-section[_ngcontent-%COMP%] .information-label[_ngcontent-%COMP%]{text-align:center;font-size:1.4rem;font-weight:300}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .information-section[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:#000}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%]{flex-direction:column;row-gap:1rem;margin-top:2rem}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{vertical-align:sub}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%] .label-checkbox[_ngcontent-%COMP%]{cursor:pointer;font-size:1.4rem;font-weight:300}.extra-giga-dialog[_ngcontent-%COMP%] .extra-giga-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%] .label-checkbox[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:#0044e0}"]}),n})(),_t=(()=>{const s=class{constructor(i){this.dialog=i}open(i){this.dialogRef=this.dialog.open(wt,{data:{extraGigaInfo:i.extraGigaInfo,tariffPlan:i.tariffPlan,msisdn:i.msisdn,type:i.type,rootIntegrationId:i.rootIntegrationId},height:"auto",width:"560px",disableClose:!0,autoFocus:!1})}confirmed(){return this.dialogRef.afterClosed().pipe((0,dt.q)(1),(0,S.U)(i=>i))}};let n=s;
1return s.\u0275fac=function(o){return new(o||s)(t.LFG(A.uw))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),n})();var Dt=g(3202);const $=function(n,s,e){return{percentageAmount:n,coloreFuUtilizzata:s,gradientColor:e}};function St(n,s){if(1&n&&t._UZ(0,"app-round-graph",9),2&n){const e=t.oxw().$implicit,i=t.oxw().index,o=t.oxw(2);t.Q6J("label",e.percentageRemaining.toString()+"%")("hideLabel",i>=1)("hidePercentage",!1)("offerMode",!0)("unlimited",e.unlimited)("labelTop",e.thresholdDirector)("labelBottom",o.getBottomThresholdLabel(e))("labelExtraBottom",e.labelThresholdsPeriods)("threshold",t.kEZ(9,$,e.percentageRemaining,e.usedColor,e.endUsedColor))}}function It(n,s){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,St,1,13,"app-round-graph",8),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf",e.thresholdDirector)}}const K=function(n,s,e){return{"no-margin":n,first:s,last:e}};function kt(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",5),t.YNc(2,It,2,1,"div",6),t.qZA(),t.BQk()),2&n){const e=s.$implicit,i=s.index,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.kEZ(2,K,i>=1,0===i,i===o.thresholds.length-1)),t.xp6(1),t.Q6J("ngForOf",e)}}function Et(n,s){if(1&n&&(t.TgZ(0,"div",10)(1,"h4"),t._uU(2),t.qZA(),t._uU(3),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Oqu(e.sharedDataInfo.labelShareDati),t.xp6(1),t.hij(" ",e.sharedDataInfo.sharedDescriptionLanding," ")}}function qt(n,s){if(1&n&&(t.ynx(0),t.YNc(1,kt,3,6,"ng-container",3),t.YNc(2,Et,4,2,"div",4),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngForOf",e.thresholds),t.xp6(1),t.Q6J("ngIf",e.sharedDataInfo)}}function Ut(n,s){if(1&n&&t._UZ(0,"app-round-graph",9),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.Q6J("label",e.percentageRemaining.toString()+"%")("hideLabel",!0)("hidePercentage",!1)("offerMode",!0)("unlimited",e.unlimited)("labelTop",e.thresholdDirector)("labelBottom",i.getBottomThresholdLabel(e))("labelExtraBottom",e.labelThresholdsPeriods)("threshold",t.kEZ(9,$,e.percentageRemaining,e.usedColor,e.endUsedColor))}}function Ft(n,s){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Ut,1,13,"app-round-graph",8),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf",e.thresholdDirector)}}function Nt(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",5),t.YNc(2,Ft,2,1,"div",6),t.qZA(),t.BQk()),2&n){const e=s.$implicit,i=s.index,o=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.kEZ(2,K,i>=1,0===i,i===o.promoDataThresholds.length-1)),t.xp6(1),t.Q6J("ngForOf",e)}}function Lt(n,s){if(1&n&&(t.ynx(0),t._UZ(1,"hr"),t.TgZ(2,"div",11)(3,"div",12),t._uU(4),t.qZA(),t._uU(5),t.qZA(),t.YNc(6,Nt,3,6,"ng-container",3),t.BQk()),2&n){const e=t.oxw();
1t.xp6(4),t.Oqu(e.promoData.title),t.xp6(1),t.hij(" ",e.promoData.description," "),t.xp6(1),t.Q6J("ngForOf",e.promoDataThresholds)}}function Rt(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.openExtraGiga())}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.extraGigaInfo.refill>0?"MODIFICA":"AGGIUNGI")}}function Jt(n,s){1&n&&(t.TgZ(0,"div",11),t._uU(1," Terminati i Giga inclusi nell'offerta, si visualizzeranno i contatori Extra giga. "),t.qZA())}function Qt(n,s){if(1&n&&t._UZ(0,"app-round-graph",9),2&n){const e=t.oxw().$implicit,i=t.oxw(4);t.Q6J("label",e.percentageRemaining.toString()+"%")("hideLabel",!0)("hidePercentage",!1)("offerMode",!0)("unlimited",e.unlimited)("labelTop",e.thresholdDirector)("labelBottom",i.getBottomThresholdLabel(e))("labelExtraBottom",e.labelThresholdsPeriods)("threshold",t.kEZ(9,$,e.percentageRemaining,e.usedColor,e.endUsedColor))}}function Yt(n,s){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Qt,1,13,"app-round-graph",8),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf",e.thresholdDirector)}}function Bt(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",5),t.YNc(2,Yt,2,1,"div",6),t.qZA(),t.BQk()),2&n){const e=s.$implicit,i=s.index,o=t.oxw(3);t.xp6(1),t.Q6J("ngClass",t.kEZ(2,K,i>=1,0===i,i===o.extraGigaThresholds.length-1)),t.xp6(1),t.Q6J("ngForOf",e)}}function Gt(n,s){if(1&n&&t.YNc(0,Bt,3,6,"ng-container",3),2&n){const e=t.oxw(2);t.Q6J("ngForOf",e.extraGigaThresholds)}}function zt(n,s){if(1&n&&(t.ynx(0),t._UZ(1,"hr"),t.TgZ(2,"div",11)(3,"div",13)(4,"div",14),t._uU(5),t.qZA(),t.YNc(6,Rt,2,1,"button",15),t.qZA(),t._uU(7),t.qZA(),t.YNc(8,Jt,2,0,"div",16),t.YNc(9,Gt,1,1,"ng-template",null,17,t.W1O),t.TgZ(11,"div",11),t._uU(12),t.qZA(),t.BQk()),2&n){const e=t.MAs(10),i=t.oxw();t.xp6(5),t.Oqu(i.extraGigaInfo.title),t.xp6(1),t.Q6J("ngIf",i.extraGigaInfo.refill>=0&&i.isUATM&&!!i.msisdn&&!!i.tariffPlan&&!!i.type&&!!i.rootIntegrationId),t.xp6(1),t.hij(" ",i.extraGigaInfo.description," "),t.xp6(1),t.Q6J("ngIf",0===i.extraGigaThresholds.length)("ngIfElse",e),t.xp6(4),t.hij(" ",i.extraGigaInfo.label," ")}}function Ht(n,s){if(1&n&&t._UZ(0,"app-round-graph",9),2&n){const e=t.oxw().$implicit,i=t.oxw(5);t.Q6J("label",e.percentageRemaining.toString()+"%")("hideLabel",!0)("hidePercentage",!1)("offerMode",!0)("unlimited",e.unlimited)("labelTop",e.thresholdDirector)("labelBottom",i.getBottomThresholdLabel(e))("labelExtraBottom",e.labelThresholdsPeriods)("threshold",t.kEZ(9,$,e.percentageRemaining,e.usedColor,e.endUsedColor))}}function $t(n,s){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,Ht,1,13,"app-round-graph",8),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf",e.thresholdDirector)}}function Kt(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",5),t.YNc(2,$t,2,1,"div",6),t.qZA(),t.BQk()),2&n){const e=s.$implicit,i=s.index;t.xp6(1),t.Q6J("ngClass",t.kEZ(2,K,i>=1,0===i,i===e.length-1)),t.xp6(1),t.Q6J("ngForOf",e)}}function Vt(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",20)(2,"div",14),t._uU(3),t.qZA(),t.TgZ(4,"div",21),t._UZ(5,"img",22),t._uU(6),t.qZA(),t._uU(7),t.qZA(),t.YNc(8,Kt,3,6,"ng-container",3),t.BQk()),2&n){const e=s.$implicit,i=t.oxw(3);t.xp6(3),t.Oqu(i.roamingPassData.title),t.xp6(3),t.hij(" ",e.zoneName," "),t.xp6(1),t.hij(" ",e.tooltip," "),t.xp6(1),t.Q6J("ngForOf",e.sortedThresholds)}}function jt(n,s){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Vt,9,4,"ng-container",3),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.roamingPassData.roamingPassDetail)}}function Wt(n,s){if(1&n&&(t.TgZ(0,"div",32)(1,"div",33)(2,"div",34)(3,"div",35),t._uU(4,"Inizio gettone"),t.qZA(),t.TgZ(5,"div",36),t._uU(6),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(6),t.Oqu(e.thresholds[0].startDateMinLabel)}}function Xt(n,s){if(1&n&&(t.TgZ(0,"div",37)(1,"div",38)(2,"div",34)(3,"div",35),t._uU(4,"Inizio rinnovo"),t.qZA(),t.TgZ(5,"div",36),t._uU(6),t.ALo(7,"date"),t.qZA()()(),t.TgZ(8,"div",38)(9,"div",34)(10,"p",35),t._uU(11,"Rinnovo in uso"),t.qZA(),t.TgZ(12,"p",36),t._uU(13),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(6),t.Oqu(t.xi3(7,3,e.thresholds[0].startDate,"dd/MM/yyyy 'alle' HH:mm")),t.xp6(7),t.AsE("",e.thresholds[0].numberOfRestart," di ",e.thresholds[0].renewalCountInDur,"")}}
1function te(n,s){if(1&n&&t._UZ(0,"app-round-graph",9),2&n){const e=t.oxw().$implicit,i=t.oxw(5);t.Q6J("label",e.percentageRemaining.toString()+"%")("hideLabel",!0)("hidePercentage",!1)("offerMode",!0)("unlimited",e.unlimited)("labelTop",e.thresholdDirector)("labelBottom",i.getBottomThresholdLabel(e))("labelExtraBottom",e.remainingTime)("threshold",t.kEZ(9,$,e.percentageRemaining,e.usedColor,e.endUsedColor))}}function ee(n,s){if(1&n&&(t.TgZ(0,"div",7),t.YNc(1,te,1,13,"app-round-graph",8),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf",e.thresholdDirector)}}function ie(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",39),t.YNc(2,ee,2,1,"div",6),t.qZA(),t.BQk()),2&n){const e=s.$implicit,i=s.index;t.xp6(1),t.Q6J("ngClass",t.kEZ(2,K,i>=1,0===i,i===e.length-1)),t.xp6(1),t.Q6J("ngForOf",e)}}function ne(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",26)(2,"div",20)(3,"div",21),t._UZ(4,"img",22),t._uU(5),t.TgZ(6,"div",27),t._UZ(7,"img",28),t.TgZ(8,"span",29),t._uU(9),t.qZA()()(),t.YNc(10,Wt,7,1,"div",30),t.YNc(11,Xt,14,6,"div",31),t.qZA(),t.YNc(12,ie,3,6,"ng-container",3),t.qZA(),t.BQk()),2&n){const e=s.$implicit;t.xp6(5),t.hij(" ",e.zoneName," "),t.xp6(4),t.Oqu(e.tooltip),t.xp6(1),t.Q6J("ngIf",e.thresholds[0].startDateMinLabel),t.xp6(1),t.Q6J("ngIf",0!==e.thresholds[0].numberOfRestart),t.xp6(1),t.Q6J("ngForOf",e.sortedThresholds)}}function oe(n,s){if(1&n&&(t.TgZ(0,"div",23)(1,"div",24),t._uU(2),t.qZA(),t.TgZ(3,"div",25),t._uU(4),t.qZA(),t.YNc(5,ne,13,5,"ng-container",3),t.qZA()),2&n){const e=t.oxw(2);t.xp6(2),t.Oqu(e.roamingPassData.title),t.xp6(2),t.Oqu(e.roamingPassData.description),t.xp6(1),t.Q6J("ngForOf",e.roamingPassData.roamingPassDetail)}}function se(n,s){if(1&n&&(t.ynx(0),t._UZ(1,"hr"),t.YNc(2,jt,2,1,"div",1),t.YNc(3,oe,6,3,"div",19),t.BQk()),2&n){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",!e.roamingPassData.roamingPassDetail[0].thresholds[0].rolling),t.xp6(1),t.Q6J("ngIf",e.roamingPassData.roamingPassDetail[0].thresholds[0].rolling)}}function ae(n,s){1&n&&t._UZ(0,"app-error-message",40),2&n&&t.Q6J("type","empty")}let pt=(()=>{const s=class{constructor(i,o,a,r){this.offerUtilsService=i,this.extraGigaDialogService=o,this.confirmDialogService=a,this.userUtilsService=r,this.extraGigaThresholds=[],this.promoDataThresholds=[],this._destroy$=new M.x,this.isUATM=this.userUtilsService.isUAUser()||this.userUtilsService.isTMUser()}set sharedData(i){i&&(this.sharedDataInfo=i)}set thresholdsOffer(i){i&&(this.thresholds=this.manageAndSortThresholds(this.sharedDataInfo&&this.sharedDataInfo.thresholds.length>0?[...this.sharedDataInfo.thresholds,...i]:i))}set infoExtraGiga(i){if(i){let{thresholds:o,title:a,description:r,label:c,refill:f}=i;this.extraGigaInfo={title:a,description:r,label:c,refill:f},o&&(o=[...o],this.extraGigaThresholds=this.manageAndSortExtraGigaThresholds(o))}}set infoPromoData(i){if(i){let{thresholds:o,optionName:a,claimDescription:r}=i;this.promoData={title:a,description:r},o&&(o=[...o],this.promoDataThresholds=this.manageAndSortThresholds(o))}}set roamingPass(i){i&&(this.roamingPassData=i,this.roamingPassData.roamingPassDetail.map(o=>{o.sortedThresholds=this.manageAndSortThresholds(o.thresholds),o.zoneName=o.zoneName.replace("ZONA","AREA"),o.thresholds.forEach(a=>{const r=R.duration(R(a.endDate).diff(R()));a.remainingTime=`Rimangono ${r.hours()} ore e ${r.minutes()} min.`})}),this.roamingPassData.roamingPassDetail=this.roamingPassData.roamingPassDetail.sort((o,a)=>o.zoneName<a.zoneName?-1:o.zoneName>a.zoneName?1:0))}ngOnInit(){}manageAndSortThresholds(i){const o=[];if(i&&i.length>0){const a=["INTERNET","VOCE","SMS"];i.sort((h,x)=>a.indexOf(h.thresholdDirector)-a.indexOf(x.thresholdDirector));const r=[];let c=[];for(let h=0;h<i.length;h++)h>0&&i[h].thresholdDirector!==i[h-1].thresholdDirector&&(r.push(c),c=[]),c.push(i[h]);r.push(c);const f=Math.max(...r.map(h=>h.length));r.map(h=>{if(h.length<f)for(let x=h.length-f;x<=f;x++)h.push(new it)});for(let h=0;h<r[0].length;h++){const x=[];for(let P=0;P<r.length;P++)r[P][h]&&x.push(r[P][h]);o.push(x)}o.forEach(h=>{if(h.length>0&&h.length<3)for(let x=h.length;x<3;x++)h.push(new it)})}return o}manageAndSortExtraGigaThresholds(i){const o=[];if(i&&i.length>0){let a=[];for(let r=0;r<i.length;r++)a.push(i[r]),(3===a.length||r===i.length-1)&&(o.push(a),a=[]);o.forEach(r=>{if(r.length>0&&r.length<3)for(let c=r.length;c<3;c++)r.push(new it)})}return o}getBottomThresholdLabel(i){let o=this.offerUtilsService.getLabelOfferThreshold(i);return o.includes("MB")?o=o.replace("GB",""):o}openExtraGiga(){this.extraGigaDialogService.open({extraGigaInfo:this.extraGigaInfo,tariffPlan:this.tariffPlan,msisdn:this.msisdn,type:this.t
1ype,rootIntegrationId:this.rootIntegrationId}),this.extraGigaDialogService.confirmed().pipe((0,b.R)(this._destroy$)).subscribe(i=>{i&&"success"===i&&this.confirmDialogService.open({title:"Conferma",message:"L'operazione da te richiesta \xe8 stata presa in carico.",cancelText:"Cancel",confirmText:"Ok",confirmOnly:!0,logo:!0,logoType:"confirm"})})}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(Pt.H),t.Y36(_t),t.Y36(D.D),t.Y36(C.r))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-thresholds-section"]],inputs:{tariffPlan:"tariffPlan",msisdn:"msisdn",type:"type",rootIntegrationId:"rootIntegrationId",startDateMinTr:"startDateMinTr",sharedData:"sharedData",thresholdsOffer:"thresholdsOffer",infoExtraGiga:"infoExtraGiga",infoPromoData:"infoPromoData",roamingPass:"roamingPass"},decls:6,vars:5,consts:[[4,"ngIf","ngIfElse"],[4,"ngIf"],["emptyError",""],[4,"ngFor","ngForOf"],["class","mainDetail-body sharedData",4,"ngIf"],[1,"row","separator","graphs",3,"ngClass"],["class","box inlineRow",4,"ngFor","ngForOf"],[1,"box","inlineRow"],[3,"label","hideLabel","hidePercentage","offerMode","unlimited","labelTop","labelBottom","labelExtraBottom","threshold",4,"ngIf"],[3,"label","hideLabel","hidePercentage","offerMode","unlimited","labelTop","labelBottom","labelExtraBottom","threshold"],[1,"mainDetail-body","sharedData"],[1,"mainDetail-body","extra-giga-margin"],[1,"title","row","promo"],[1,"row","title-action"],[1,"title","row"],["class","cta",3,"click",4,"ngIf"],["class","mainDetail-body extra-giga-margin",4,"ngIf","ngIfElse"],["thresholdGraph",""],[1,"cta",3,"click"],["class","roamingPass",4,"ngIf"],[1,"mainDetail-body"],[1,"titleBox","orange"],["src","assets/images/ico-product-eu.svg","alt","product eu",1,"ico-title"],[1,"roamingPass"],[1,"roamingPass-title","row"],[1,"roamingPass-description"],[1,"roamingPass-detailBox"],[1,"tooltip-icon"],["src","assets/images/ico-info.svg"],[1,"custom-tooltip"],["class","row",4,"ngIf"],["class","row separator",4,"ngIf"],[1,"row"],[1,"box","inizioGettone"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[1,"row","separator"],[1,"box"],[1,"row","separator","graphs","roamingPass-graphs",3,"ngClass"],[2,"width","100%",3,"type"]],template:function(o,a){if(1&o&&(t.YNc(0,qt,3,2,"ng-container",0),t.YNc(1,Lt,7,3,"ng-container",1),t.YNc(2,zt,13,6,"ng-container",1),t.YNc(3,se,4,2,"ng-container",1),t.YNc(4,ae,1,1,"ng-template",null,2,t.W1O)),2&o){const r=t.MAs(5);t.Q6J("ngIf",a.thresholds.length>0)("ngIfElse",r),t.xp6(1),t.Q6J("ngIf",a.promoData),t.xp6(1),t.Q6J("ngIf",a.extraGigaInfo),t.xp6(1),t.Q6J("ngIf",a.roamingPassData&&a.roamingPassData.roamingPassDetail.length>0)}},dependencies:[l.mk,l.sg,l.O5,y.H,Dt.H,l.uU],styles:["app-round-graph[_ngcontent-%COMP%]{width:100%}.mainDetail.labelBoxOk[_ngcontent-%COMP%] .row.first[_ngcontent-%COMP%]{margin-top:2rem}.mainDetail.labelBoxOk[_ngcontent-%COMP%] .row.no-margin[_ngcontent-%COMP%]{margin-bottom:0}.mainDetail.labelBoxOk[_ngcontent-%COMP%] .row.last[_ngcontent-%COMP%]{margin-bottom:2rem}.mainDetail[_ngcontent-%COMP%] .extra-giga-margin[_ngcontent-%COMP%]{margin-top:2rem}.promo[_ngcontent-%COMP%], .title-action[_ngcontent-%COMP%]{margin-bottom:8px}.title-action[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{align-items:center}.roamingPass[_ngcontent-%COMP%] .roamingPass-title[_ngcontent-%COMP%]{font-weight:700;font-size:16px;line-height:24px}.roamingPass[_ngcontent-%COMP%] .roamingPass-description[_ngcontent-%COMP%]{font-size:14px;font-weight:400;color:#626a73;padding-bottom:3rem}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%]{width:65%}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:.5rem}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .itemRequest[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .itemReply[_ngcontent-%COMP%]{font-size:14px;font-weight:700;text-transform:lowercase}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box.inizioGettone[_ngcontent-%COMP%] .itemBox[_ngcontent-%COMP%]{width:50%}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box.inizioGettone[_ngcontent-%COMP%] .itemBox[_ngcontent-%COMP%] .itemReply[_ngcontent-%COMP%]{padding-right:1.4rem}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:16px}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .ico-title[_ngcontent-%COMP%]{margin-right:1rem}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]{position:absolute;z-index:9;top:0;padding:.5rem;border-radius:8px;margin:14px;max-width:50vw;min-width:300px;overflow:hidden;background:white;font-size:12px;text-wrap:wrap;display:none;font-weight:400;color:#333;text-transform:capitalize}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]{width:1.6rem;display:flex;margin-left:1rem}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]:hover > .custom-tooltip[_ngcontent-%COMP%]{display:block}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]:hover > .custom-tooltip[_ngcontent-%COMP%]:hover{display:block}.roamingPass[_ngcontent-%COMP%] .roamingPass-detailBox[_ngcontent-%COMP%]:last-of-type{margin-bottom:8rem}.roamingPass[_ngcontent-%COMP%] .row.graphs[_ngcontent-%COMP%]{margin-bottom:3rem!important}"]}),n})();var B=g(7108);class ht{constructor(s,e){this._context=s,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(s,e){switch(s=+s,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(s,e):this._context.moveTo(s,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+s)/2,this._y0,this._x0,e,s,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,s,this._y0,s,e)}this._x0=s,this._y0=e}}function ce(n){return new ht(n,!0)}var V=g(9549),st=g(4385),ft=g(3238),mt=g(6594),X=g(2594);
1function le(n,s){if(1&n&&(t.TgZ(0,"div",13),t._UZ(1,"img",14),t.TgZ(2,"div",15)(3,"span"),t._uU(4),t.qZA()()()),2&n){const e=t.oxw(2).$implicit;t.xp6(4),t.hij(" ",e.tooltip,"")}}function de(n,s){if(1&n&&(t.TgZ(0,"div",6)(1,"div",16),t._uU(2),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.xp6(2),t.hij(" ",e.claimDescription," ")}}function ge(n,s){if(1&n&&(t.TgZ(0,"div",7)(1,"div",19)(2,"div",20),t._uU(3),t.qZA(),t.TgZ(4,"div",21),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function _e(n,s){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,ge,6,2,"div",18),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.Q6J("ngForOf",e.optionDetailParams)}}function pe(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6)(2,"div",7)(3,"div",8),t._UZ(4,"img",9),t._uU(5),t.YNc(6,le,5,1,"div",10),t.qZA()()(),t.YNc(7,de,3,1,"div",11),t.YNc(8,_e,2,1,"div",12),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(5),t.hij(" ",e.optionName," "),t.xp6(1),t.Q6J("ngIf",e.tooltip),t.xp6(1),t.Q6J("ngIf",e.claimDescription&&e.claimDescription.length>0),t.xp6(1),t.Q6J("ngIf",e.optionDetailParams&&e.optionDetailParams.length>0)}}function he(n,s){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-line-chart",26),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("startDate",e.startDate)("endDate",e.endDate)("trafficType",e.thresholdDirector)("thresholdPeriod",e.labelThresholdsPeriods)("setInitialAmount",e.initialAmount)("percentageRemaining",e.percentageRemaining)("setRemainingAmount",e.remainingLabel)("remainingColor",e.usedColor)("remainingLabel",e.remainingLabel)("labelToVisualize",e.labelToVisualize)("baseColor","#58595B")("isRenewal",e.numberOfRestart>0&&e.rolling)}}const ut=function(n){return{"no-nav":n}};function fe(n,s){if(1&n&&(t.TgZ(0,"div",22)(1,"ngx-slick-carousel",23),t.YNc(2,he,2,12,"div",24),t.qZA()()),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.xp6(1),t.Q6J("ngClass",t.VKq(3,ut,1===e.thresholds.length))("config",i.optionsSlideConfig),t.xp6(1),t.Q6J("ngForOf",e.thresholds)}}function me(n,s){if(1&n&&(t.TgZ(0,"div",25),t._UZ(1,"app-line-chart",38),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("startDate",e.startDate)("endDate",e.endDate)("trafficType",e.thresholdDirector)("thresholdPeriod",e.labelThresholdsPeriods)("setInitialAmount",e.initialAmount)("percentageRemaining",e.percentageRemaining)("setRemainingAmount",e.remainingLabel)("remainingColor",e.usedColor)("labelToVisualize",e.labelToVisualize)("baseColor","#58595B")}}function ue(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",27)(2,"div",7)(3,"div",28)(4,"div",29)(5,"div",30),t._uU(6),t.qZA(),t.TgZ(7,"div",31),t._uU(8),t.qZA()(),t.TgZ(9,"div",32)(10,"ngx-slick-carousel",23),t.YNc(11,me,2,10,"div",24),t.qZA()(),t.TgZ(12,"div",33)(13,"div",34),t._UZ(14,"img",35),t.qZA(),t.TgZ(15,"div",7)(16,"span",36),t._uU(17),t.TgZ(18,"span",37),t._uU(19),t.qZA()()()()()()(),t.BQk()),2&n){const e=s.$implicit,i=t.oxw(2).$implicit,o=t.oxw(3);t.xp6(6),t.Oqu(i.roamingPass.title),t.xp6(2),t.Oqu(i.thresholdsPeriodsLabel),t.xp6(2),t.Q6J("ngClass",t.VKq(7,ut,1===i.thresholds.length))("config",o.optionsSlideConfig),t.xp6(1),t.Q6J("ngForOf",e.thresholds),t.xp6(6),t.hij(" ",e.zoneName,": "),t.xp6(2),t.Oqu(e.tooltip)}}function ve(n,s){if(1&n&&(t.ynx(0),t.YNc(1,ue,20,9,"ng-container",4),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",e.roamingPass.roamingPassDetail)}}function xe(n,s){if(1&n&&t._UZ(0,"app-line-chart",38),2&n){const e=t.oxw(2).$implicit;t.Q6J("startDate",e.extraThreshold.thresholds[0].startDate)("endDate",e.extraThreshold.thresholds[0].endDate)("trafficType",e.extraThreshold.thresholds[0].thresholdDirector)("thresholdPeriod",e.extraThreshold.thresholds[0].labelThresholdsPeriods)("setInitialAmount",e.extraThreshold.thresholds[0].initialAmount)("percentageRemaining",e.extraThreshold.thresholds[0].percentageRemaining)("setRemainingAmount",e.extraThreshold.thresholds[0].remainingLabel)("remainingColor",e.extraThreshold.thresholds[0].usedColor)("labelToVisualize",e.extraThreshold.thresholds[0].labelToVisualize)("baseColor","#58595B")}}function Ce(n,s){if(1&n&&(t.TgZ(0,"div",41)(1,"h3"),t._uU(2),t.qZA()()),2&n){const e=t.oxw(2).$implicit;t.xp6(2),t.Oqu("*"+e.extraThreshold.detail)}}
1function Te(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6),t.YNc(2,xe,1,10,"app-line-chart",39),t.YNc(3,Ce,3,1,"ng-template",null,40,t.W1O),t.qZA(),t.BQk()),2&n){const e=t.MAs(4),i=t.oxw().$implicit;t.xp6(2),t.Q6J("ngIf",i.extraThreshold.thresholds&&i.extraThreshold.thresholds.length>0&&!i.extraThreshold.detail)("ngIfElse",e)}}function be(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function Oe(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Navigazione protetta"),t.qZA(),t.TgZ(3,"ngx-charts-advanced-pie-chart",53),t.YNc(4,be,5,6,"ng-template",null,54,t.W1O),t.qZA()()),2&n){const e=t.oxw(6);t.xp6(3),t.Q6J("view",e.viewPie)("scheme",e.colorScheme)("results",e.percentages)}}function Pe(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function Me(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2,"Phishing"),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(2),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e[0].value)}}function ye(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Phishing"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.TgZ(5,"div",57)(6,"ngx-charts-area-chart-stacked",58),t.YNc(7,Pe,5,6,"ng-template",null,54,t.W1O),t.YNc(9,Me,5,5,"ng-template",null,59,t.W1O),t.qZA()()()),2&n){const e=t.oxw(6);t.xp6(4),t.hij("Minacce rilevate: ",e.totalPhishing,""),t.xp6(2),t.Q6J("view",e.view)("scheme",e.colorScheme1)("xAxis",e.xAxis1)("yAxis",e.yAxis1)("results",e.phishing)("curve",e.lineGraphCurve)("yAxisTickFormatting",e.yAxisTickFormattingFn)}}function Ze(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function Ae(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2,"Malware"),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(2),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e[0].value)}}function we(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Malware"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.TgZ(5,"div",57)(6,"ngx-charts-area-chart-stacked",60),t.YNc(7,Ze,5,6,"ng-template",null,54,t.W1O),t.YNc(9,Ae,5,5,"ng-template",null,59,t.W1O),t.qZA()()()),2&n){const e=t.oxw(6);t.xp6(4),t.hij("Minacce rilevate: ",e.totalMalware,""),t.xp6(2),t.Q6J("view",e.view)("scheme",e.colorScheme2)("xAxis",e.xAxis1)("yAxis",e.yAxis1)("results",e.malware)("curve",e.lineGraphCurve)("yAxisTickFormatting",e.yAxisTickFormattingFn)}}function De(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function Se(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2,"Command & Control"),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(7);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(2),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e[0].value)}}function Ie(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Command & Control"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.TgZ(5,"div",57)(6,"ngx-charts-area-chart-stacked",61),t.YNc(7,De,5,6,"ng-template",null,54,t.W1O),t.YNc(9,Se,5,5,"ng-template",null,59,t.W1O),t.qZA()()()),2&n){const e=t.oxw(6);t.xp6(4),t.hij("Minacce rilevate: ",e.totalOthers,""),t.xp6(2),t.Q6J("view",e.view)("scheme",e.colorScheme3)("xAxis",e.xAxis1)("yAxis",e.yAxis1)("results",e.others)("curve",e.lineGraphCurve)("yAxisTickFormatting",e.yAxisTickFormattingFn)}}function ke(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Oe,6,3,"div",51),t.YNc(2,ye,11,8,"div",51),t.YNc(3,we,11,8,"div",51),t.YNc(4,Ie,11,8,"div",51),t.BQk()),2&n){const e=t.oxw(5);t.xp6(1),t.Q6J("ngIf",e.percentages),t.xp6(1),t.Q6J("ngIf",e.phishing&&null!=e.phishing&&e.totalPhishing>0),t.xp6(1),t.Q6J("ngIf",e.malware&&null!=e.malware&&e.totalMalware>0),t.xp6(1),t.Q6J("ngIf",e.others&&null!=e.others&&e.totalOthers>0)}}
1function Ee(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",42)(2,"div",43)(3,"form",44)(4,"p"),t._uU(5,"Report riferito al periodo:"),t.qZA(),t.TgZ(6,"mat-form-field",45)(7,"mat-select",46),t.NdJ("valueChange",function(o){t.CHM(e);const a=t.oxw(4);return t.KtG(a.selected=o)})("selectionChange",function(){t.CHM(e);const o=t.oxw(4);return t.KtG(o.changeReportType(o.selected))}),t.TgZ(8,"mat-option",47),t._uU(9,"Giorno corrente"),t.qZA(),t.TgZ(10,"mat-option",48),t._uU(11,"Ieri"),t.qZA(),t.TgZ(12,"mat-option",49),t._uU(13,"Ultimi 7 giorni"),t.qZA(),t.TgZ(14,"mat-option",50),t._uU(15,"Ultimo mese"),t.qZA()()()()(),t.YNc(16,ke,5,4,"ng-container",2),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(4),i=t.MAs(4);t.xp6(3),t.Q6J("formGroup",e.formReportType),t.xp6(4),t.Q6J("value",e.selected),t.xp6(9),t.Q6J("ngIf",e.percentages&&!e.displayErrorMessage)("ngIfElse",i)}}function qe(n,s){if(1&n&&(t.TgZ(0,"p",76),t._uU(1),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("Gettone: ",e.startDateMinTrLabel,"")}}function Ue(n,s){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=t.oxw(2).$implicit;t.xp6(1),t.hij("Attivo dal ",t.xi3(2,1,e.thresholds[0].startDate,"dd/MM/yyyy 'alle' HH:mm"),"")}}function Fe(n,s){if(1&n&&(t.TgZ(0,"div",77)(1,"h4"),t._uU(2),t.qZA(),t.YNc(3,Ue,3,4,"p",0),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(2),t.AsE("Rinnovo ",e.thresholds[0].numberOfRestart," di ",e.thresholds[0].renewalCountInDur,""),t.xp6(1),t.Q6J("ngIf",e.thresholds[0].startDate)}}function Ne(n,s){if(1&n&&(t.TgZ(0,"div",78),t._UZ(1,"app-line-chart",79),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("startDate",e.startDate)("endDate",e.endDate)("trafficType",e.thresholdDirector)("thresholdPeriod",e.remainingTime)("setInitialAmount",e.initialAmount)("percentageRemaining",e.percentageRemaining)("remainingLabel",e.remainingLabel)("remainingColor",e.usedColor)("labelToVisualize",e.labelToVisualize)("baseColor","#58595B")}}function Le(n,s){if(1&n&&(t.TgZ(0,"div",25)(1,"div",69)(2,"div",70)(3,"h4"),t._uU(4),t.TgZ(5,"div",13),t._UZ(6,"img",14),t.TgZ(7,"div",15)(8,"span"),t._uU(9),t.qZA()()()(),t.YNc(10,qe,2,1,"p",71),t.qZA(),t.TgZ(11,"div",72),t.YNc(12,Fe,4,3,"div",73),t.TgZ(13,"ngx-slick-carousel",74),t.YNc(14,Ne,2,10,"div",75),t.qZA()()()()),2&n){const e=s.$implicit,i=t.oxw(6);t.xp6(4),t.hij("",e.zoneName," "),t.xp6(5),t.Oqu(e.tooltip),t.xp6(1),t.Q6J("ngIf",e.startDateMinTr),t.xp6(2),t.Q6J("ngIf",0!==e.thresholds[0].numberOfRestart),t.xp6(1),t.Q6J("config",i.optionsSlideConfig),t.xp6(1),t.Q6J("ngForOf",e.thresholds)}}function Re(n,s){if(1&n&&(t.TgZ(0,"ngx-slick-carousel",68),t.YNc(1,Le,15,6,"div",24),t.qZA()),2&n){const e=t.oxw(2).$implicit,i=t.oxw(3);t.Q6J("config",i.businessTravelOptionSlideConfig),t.xp6(1),t.Q6J("ngForOf",e.roamingPass.roamingPassDetail)}}function Je(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",62),t.ynx(2),t.TgZ(3,"div",63)(4,"div",8),t._UZ(5,"img",9),t._uU(6),t.qZA(),t.TgZ(7,"div",17)(8,"div",7)(9,"div",19)(10,"div",20),t._uU(11,"Stato"),t.qZA(),t.TgZ(12,"div",21),t._uU(13,"ATTIVO"),t.qZA()()(),t.TgZ(14,"div",7)(15,"div",19)(16,"p",20),t._uU(17,"Data di attivazione"),t.qZA(),t.TgZ(18,"p",21),t._uU(19),t.qZA()()()()(),t.TgZ(20,"div",64)(21,"div",65),t._uU(22),t.qZA(),t.TgZ(23,"div",66),t.YNc(24,Re,2,2,"ngx-slick-carousel",67),t.qZA()(),t.BQk(),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(6),t.hij(" ",e.optionName," "),t.xp6(13),t.Oqu(e.optionDetailParams[0].value),t.xp6(3),t.Oqu(e.claimDescription),t.xp6(2),t.Q6J("ngIf",e.roamingPass.roamingPassDetail&&e.roamingPass.roamingPassDetail.length>0)}}function Qe(n,s){1&n&&t._UZ(0,"hr")}function Ye(n,s){if(1&n&&(t.ynx(0),t.YNc(1,pe,9,4,"ng-container",0),t.YNc(2,fe,3,5,"div",5),t.YNc(3,ve,2,1,"ng-container",0),t.YNc(4,Te,5,2,"ng-container",0),t.YNc(5,Ee,17,4,"ng-container",0),t.YNc(6,Je,25,4,"ng-container",0),t.YNc(7,Qe,1,0,"hr",0),t.BQk()),2&n){const e=s.$implicit,i=s.index,o=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!e.roamingPass||e.roamingPass&&!e.roamingPass.roamingPassDetail[0].thresholds[0].rolling),t.xp6(1),t.Q6J("ngIf",e.thresholds&&e.thresholds.length>0),t.xp6(1),t.Q6J("ngIf",e.roamingPass&&e.roamingPass.roamingPassDetail&&e.roamingPass.roamingPassDetail.length>0&&!e.roamingPass.roamingPassDetail[0].thresholds[0].rolling),t.xp6(1),t.Q6J("ngIf",e.extraThreshold),t.xp6(1),t.Q6J("ngIf",e.optionSecure),t.xp6(1),t.Q6J("ngIf",e.roamingPass&&e.roamingPass.roamingPassDetail.length>0&&e.roamingPass.roamingPassDetail[0].thresholds[0].rolling),t.xp6(1),t.Q6J("ngIf",i!==o.options.length-1)}}
1function Be(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",3),t.YNc(2,Ye,8,7,"ng-container",4),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngForOf",e.options)}}function Ge(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Be,3,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw(),i=t.MAs(4);t.xp6(1),t.Q6J("ngIf",e.options&&e.options.length>0)("ngIfElse",i)}}function ze(n,s){if(1&n&&(t.TgZ(0,"div",6)(1,"div",80),t._uU(2),t.qZA()()),2&n){const e=t.oxw().$implicit;t.xp6(2),t.hij(" ",e.description," ")}}function He(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",6)(2,"div",7)(3,"div",8),t._UZ(4,"img",9),t._uU(5),t.qZA()()(),t.YNc(6,ze,3,1,"div",11),t.TgZ(7,"div",17)(8,"div",7)(9,"div",19)(10,"div",20),t._uU(11,"Data di attivazione:"),t.qZA(),t.TgZ(12,"div",21),t._uU(13),t.qZA()()(),t.TgZ(14,"div",7)(15,"div",19)(16,"div",20),t._uU(17,"Profilo:"),t.qZA(),t.TgZ(18,"div",21),t._uU(19),t.qZA()()()(),t.TgZ(20,"div",17)(21,"div",7)(22,"div",19)(23,"div",20),t._uU(24,"Stato:"),t.qZA(),t.TgZ(25,"div",21),t._uU(26,"Attivo"),t.qZA()()(),t.TgZ(27,"div",7)(28,"div",19),t._UZ(29,"div",20)(30,"div",21),t.qZA()()(),t.BQk()),2&n){const e=s.$implicit;
1t.xp6(5),t.hij(" ",e.name," "),t.xp6(1),t.Q6J("ngIf",e.description&&e.description.length>0),t.xp6(7),t.Oqu(e.activationDate),t.xp6(6),t.Oqu(e.profile)}}function $e(n,s){if(1&n&&(t.ynx(0),t.YNc(1,He,31,4,"ng-container",4),t.BQk()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngForOf",e.activeOptionFixed)}}function Ke(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function Ve(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Navigazione protetta"),t.qZA(),t.TgZ(3,"ngx-charts-advanced-pie-chart",53),t.YNc(4,Ke,5,6,"ng-template",null,54,t.W1O),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(3),t.Q6J("view",e.viewPie)("scheme",e.colorScheme)("results",e.percentages)}}function je(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function We(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2,"Phishing"),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(2),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e[0].value)}}function Xe(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Phishing"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.TgZ(5,"div",57)(6,"ngx-charts-area-chart-stacked",58),t.YNc(7,je,5,6,"ng-template",null,54,t.W1O),t.YNc(9,We,5,5,"ng-template",null,59,t.W1O),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(4),t.hij("Minacce rilevate: ",e.totalPhishing,""),t.xp6(2),t.Q6J("view",e.view)("scheme",e.colorScheme1)("xAxis",e.xAxis1)("yAxis",e.yAxis1)("results",e.phishing)("curve",e.lineGraphCurve)("yAxisTickFormatting",e.yAxisTickFormattingFn)}}function ti(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function ei(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2,"Malware"),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(2),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e[0].value)}}function ii(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Malware"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.TgZ(5,"div",57)(6,"ngx-charts-area-chart-stacked",60),t.YNc(7,ti,5,6,"ng-template",null,54,t.W1O),t.YNc(9,ei,5,5,"ng-template",null,59,t.W1O),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(4),t.hij("Minacce rilevate: ",e.totalMalware,""),t.xp6(2),t.Q6J("view",e.view)("scheme",e.colorScheme2)("xAxis",e.xAxis1)("yAxis",e.yAxis1)("results",e.malware)("curve",e.lineGraphCurve)("yAxisTickFormatting",e.yAxisTickFormattingFn)}}function ni(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.name),t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e.value)}}function oi(n,s){if(1&n&&(t.TgZ(0,"div",55)(1,"span",56),t._uU(2,"Command & Control"),t.qZA(),t.TgZ(3,"span",56),t._uU(4),t.qZA()()),2&n){const e=s.model,i=t.oxw(4);t.xp6(1),t.Akn(i.tooltipStyle),t.xp6(2),t.Akn(i.tooltipStyle),t.xp6(1),t.Oqu(e[0].value)}}function si(n,s){if(1&n&&(t.TgZ(0,"div",52)(1,"h3"),t._uU(2,"Command & Control"),t.qZA(),t.TgZ(3,"p"),t._uU(4),t.qZA(),t.TgZ(5,"div",57)(6,"ngx-charts-area-chart-stacked",61),t.YNc(7,ni,5,6,"ng-template",null,54,t.W1O),t.YNc(9,oi,5,5,"ng-template",null,59,t.W1O),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(4),t.hij("Minacce rilevate: ",e.totalOthers,""),t.xp6(2),t.Q6J("view",e.view)("scheme",e.colorScheme3)("xAxis",e.xAxis1)("yAxis",e.yAxis1)("results",e.others)("curve",e.lineGraphCurve)("yAxisTickFormatting",e.yAxisTickFormattingFn)}}function ai(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Ve,6,3,"div",51),t.YNc(2,Xe,11,8,"div",51),t.YNc(3,ii,11,8,"div",51),t.YNc(4,si,11,8,"div",51),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.percentages),t.xp6(1),t.Q6J("ngIf",e.phishing&&null!=e.phishing&&e.totalPhishing>0),t.xp6(1),t.Q6J("ngIf",e.malware&&null!=e.malware&&e.totalMalware>0),t.xp6(1),t.Q6J("ngIf",e.others&&null!=e.others&&e.totalOthers>0)}}function ri(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",3)(2,"div",42)(3,"div",43)(4,"form",44)(5,"p"),t._uU(6,"Report riferito al periodo:"),t.qZA(),t.TgZ(7,"mat-form-field",45)(8,"mat-select",46),t.NdJ("valueChange",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.reportTypeFixed=o)})("selectionChange",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.changeReportType(o.reportTypeFixed))}),t.TgZ(9,"mat-option",48),t._uU(10,"Ieri"),t.qZA(),t.TgZ(11,"mat-option",49),t._uU(12,"Ultimi 7 giorni"),t.qZA(),t.TgZ(13,"mat-option",50),t._uU(14,"Ultimo mese"),t.qZA()()()()(),t.YNc(15,ai,5,4,"ng-container",2),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw(),i=t.MAs(4);t.xp6(4),t.Q6J("formGroup",e.formReportType),t.xp6(4),t.Q6J("value",e.reportTypeFixed),t.xp6(7),t.Q6J("ngIf",e.percentages)("ngIfElse",i)}}function ci(n,s){1&n&&t._UZ(0,"app-error-message",81),2&n&&t.Q6J("type","empty")}let at=(()=>{const s=class{constructor(i,o,a,r){this.spinnerService=i,this.optionService=o,this.fb=a,this.location=r,this.optionsSlideConfig={slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,infinite:!0},this._destroy$=new M.x,this.errorMessageType="empty_security_report",this.displayErrorMessage=!1,this.selected="MONTH",this.phishing=[],this.malware=[],this.others=[],this.viewPie=[775,250],this.isFixedLinesPage=!1,this.tooltipDisabled=!0,this.view=[575,200],this.colorScheme={domain:["rgb(140, 213, 226)","rgb(142, 163, 63)","rgb(213, 138, 0)"],name:"",selectable:!0,group:B.N3.Ordinal},this.lineGraphCurve=ce,this.showLabels1=!0,this.animations1=!0,this.xAxis1=!0,this.yAxis1=!0,this.isRoamingSME=!0,this.colorScheme1={domain:["#d7f0f5"],name:"",selectable:!0,group:B.N3.Ordinal},this.colorScheme2={domain:["#d7dfbc"],name:"",selectable:!0,group:B.N3.Ordinal},this.colorScheme3={domain:["#f0d6a6"],name:"",selectable:!0,group:B.N3.Ordinal},this.tooltipStyle={padding:"10px"},this.slideConfig={slidesToShow:3,slidesToScroll:1,swipeToSlide:!0,infinite:!0,initialSlide:0,responsive:[{breakpoint:991,settings:{slidesToShow:2}},{breakpoint:767,settings:{slidesToShow:1}}]}}set msisdn(i){this.selectedMsisdn=i}get msisdn(){return this.selectedMsisdn}set offerOptions(i){if(i){const o=["INTERNET","VOCE","SMS"];i.map(a=>{a.thresholds&&a.thresholds.length>0&&(a.thresholds=a.thresholds.sort((r,c)=>o.indexOf(r.thresholdDirector)-o.indexOf(c.thresholdDirector))),a.roamingPass&&a.roamingPass.roamingPassDetail&&a.roamingPass.roamingPassDetail.length>0&&(a.roamingPass.roamingPassDetail&&(a.roamingPass.roamingPassDetail
1=a.roamingPass.roamingPassDetail.sort((r,c)=>r.zoneName<c.zoneName?-1:r.zoneName>c.zoneName?1:0)),a.roamingPass.roamingPassDetail.map(r=>{r.thresholds&&r.thresholds.length>0&&(r.thresholds=r.thresholds.sort((c,f)=>o.indexOf(c.thresholdDirector)-o.indexOf(f.thresholdDirector)),r.thresholds.forEach(c=>{const f=R.duration(R(c.endDate).diff(R()));c.remainingTime=`Rimangono ${f.days()} giorni e ${f.hours()} ore`})),r.zoneName&&(r.zoneName=r.zoneName.replace("ZONA","AREA"))}))}),this.options=i}}ngOnInit(){this.setIsFixedLinesPage(),this.createForm(),this.options&&this.options.filter(i=>i.optionSecure).length&&(this.isFixedLinesPage||this.fetchGetReport(this.selected)),this.isFixedLinesPage&&this.isOptionSecureFixedActive&&this.fetchGetReportFixed(this.reportTypeFixed)}setIsFixedLinesPage(){"/prodotti/fisso-dispositivi/linee-fisse"===this.location.path()&&(this.isFixedLinesPage=!0),this.businessTravelOptionSlideConfig={slidesToShow:3,slidesToScroll:1,swipeToSlide:!0,infinite:!1,responsive:[{breakpoint:768,settings:{slidesToShow:1}}]}}fetchGetReport(i){this.spinnerService.enable(),this.optionService.getReport({clientId:this.selectedMsisdn,reportType:i}).pipe((0,b.R)(this._destroy$)).subscribe({next:a=>{if(this.spinnerService.disable(),a){this.displayErrorMessage=!1,this.report=a;let r=this.formatData(this.report,i);for(let c=0;c<r.length;c++)r[c].series.reverse();this.phishing=r[1].series.length>0?[r[1]]:null,this.malware=r[2].series.length>0?[r[2]]:null,this.others=r[3].series.length>0?[r[3]]:null,this.totalPhishing=this.report.phishing?this.report.phishing.total:"",this.totalMalware=this.report.malware?this.report.malware.total:"",this.totalOthers=this.report.others?this.report.others.total:"",this.percentages=[{name:"phishing",value:this.totalPhishing},{name:"malware",value:this.totalMalware},{name:"Command & Control",value:this.totalOthers}]}},error:()=>{this.spinnerService.disable(),this.displayErrorMessage=!0}})}fetchGetReportFixed(i){this.spinnerService.enable(),this.optionService.getReportFixed({clientId:this.msisdnSelectedFixed,reportType:this.reportTypeFixed}).pipe((0,b.R)(this._destroy$)).subscribe({next:a=>{if(this.spinnerService.disable(),a){this.displayErrorMessage=!1,this.report=a;let r=this.formatData(this.report,i);for(let c=0;c<r.length;c++)r[c].series.reverse();this.phishing=r[0].series.length>0?[r[0]]:null,this.malware=r[2].series.length>0?[r[2]]:null,this.others=r[1].series.length>0?[r[1]]:null,this.totalPhishing=this.report.phishing?this.report.phishing.total:"",this.totalMalware=this.report.malware?this.report.malware.total:"",this.totalOthers=this.report.others?this.report.others.total:"",this.percentages=[{name:"phishing",value:this.report.percentages.phishing},{name:"malware",value:this.report.percentages.malware},{name:"Command & Control",value:this.report.percentages.others}]}},error:()=>{this.spinnerService.disable(),this.displayErrorMessage=!0}})}yAxisTickFormattingFn(i){let o="";return"string"==typeof i?(o=i.replace(/,/g,""),Math.floor(o),o):i}formatData(i,o){const a=[];for(const r in i){let c=i[r];const f={},h=[];if(c&&c.statistics)for(let x=0;x<c.statistics.length;x++)if(c.statistics[x].date){const P={},I=R(c.statistics[x].date);switch(o){case"WEEK":const js=I.format("MM"),Ws=I.format("DD"),Xs=I.format("YYYY");P.name=Ws+"/"+js+"/"+Xs,P.value=c.statistics[x].count;break;case"DAY":const ta=I.format("HH"),ea=I.format("mm");P.name=ta+":"+ea,P.value=c.statistics[x].count;break;case"YESTERDAY":const ia=I.format("HH"),na=I.format("mm");P.name=ia+":"+na,P.value=c.statistics[x].count;break;default:const oa=I.format("MM"),sa=I.format("DD"),aa=I.format("YYYY");P.name=sa+"/"+oa+"/"+aa,P.value=c.statistics[x].count}h.push(P)}f.name=r,f.series=h,a.push(f)}return a}createForm(){this.formReportType=this.fb.group(this.isFixedLinesPage?{reportTypeSelect:[this.reportTypeFixed]}:{reportTypeSelect:[this.selected]})}changeReportType(i){this.isFixedLinesPage?this.fetchGetReportFixed(i):this.fetchGetReport(i)}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(d.V),t.Y36(z.f),t.Y36(p.qu),t.Y36(l.Ye))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-options-section"]],inputs:{msisdn:"msisdn",options:"options",offerOptions:"offerOptions",msisdnSelectedFixed:"msisdnSelectedFixed",reportTypeFixed:"reportTypeFixed",isOptionSecureFixedActive:"isOptionSecureFixedActive",activeOptionFixed:"activeOptionFixed"},decls:5,vars:3,consts:[[4,"ngIf"],["emptyError",""],[4,"ngIf","ngIfElse"],[1,"options"],[4,"ngFor","ngForOf"],["class","option-carousel-container",4,"ngIf"],[1,"row"],[1,"box"],[1,"titleBox","orange","no-padding-bottom"],["src","assets/images/ico-product-eu.svg","alt","product eu",1,"ico-title"],["class","tooltip-icon",4,"ngIf"],["class","row",4,"ngIf"],["class","row separator",4,"ngIf"],[1,"tooltip-icon"],["src","assets/images/ico-info.svg"],[1,"custom-tooltip"],[1,"mainDetail-body","no-padding-bottom"],[1,"row","separator"],["class","box",4,"ngFor","ngForOf"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[1,"option-carousel-container"],[1,"option-section-carousel",3,"ngClass","config"],["ngxSlickItem","","class","slide",4,"ngFor","ngForOf"],["ngxSlickItem","",1,"slide"],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","setRemainingAmou
1nt","remainingColor","remainingLabel","labelToVisualize","baseColor","isRenewal"],[1,"row","gap"],[1,"optionBox"],[1,"row","spaced-row"],[1,"box","optionZone"],[1,"box","optionDescription"],[1,"option-carousel-container","no-margin"],[1,"row","no-gap"],[1,"box","roaming-image"],["src","assets/images/ico-roaming.svg","alt","zona1",1,"roamingImg"],[1,"roaming-zone"],[1,"roaming-tooltip"],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","setRemainingAmount","remainingColor","labelToVisualize","baseColor"],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","setRemainingAmount","remainingColor","labelToVisualize","baseColor",4,"ngIf","ngIfElse"],["extraThresholdDetail",""],[1,"mainDetail-body","no-padding-bottom",2,"font-weight","bold"],[1,"security-charts"],[1,"column-form"],[3,"formGroup"],["appearance","legacy"],["id","select","formControlName","reportTypeSelect",1,"filter","filter-select",3,"value","valueChange","selectionChange"],["value","DAY"],["value","YESTERDAY"],["value","WEEK"],["value","MONTH"],["class","column",4,"ngIf"],[1,"column"],[1,"securityOptions-chart",2,"padding-top","2rem",3,"view","scheme","results"],["tooltipTemplate",""],[2,"padding","1rem"],[1,"tooltipCustomText"],[1,"chart-container"],[1,"line-chart","phishing",3,"view","scheme","xAxis","yAxis","results","curve","yAxisTickFormatting"],["seriesTooltipTemplate",""],[1,"line-chart","malware",3,"view","scheme","xAxis","yAxis","results","curve","yAxisTickFormatting"],[1,"line-chart","command-control",3,"view","scheme","xAxis","yAxis","results","curve","yAxisTickFormatting"],[1,"businessTravelOption"],[1,"businessTravelOption-head","row"],[1,"bodyTabItem"],[1,"roamingPass-description","mainDetail-body"],[1,"row","businessTravelOption-row","businessTravelOption-carousel-container"],["class","businessTravelOption-slick-carousel weekly",3,"config",4,"ngIf"],[1,"businessTravelOption-slick-carousel","weekly",3,"config"],[1,"card","businessTravelOption-card"],[1,"card-head"],["class","inizioGettone",4,"ngIf"],[1,"card-body"],["class","card-body_date",4,"ngIf"],[1,"businessTravelOptionThreshold-slick-carousel",3,"config"],["ngxSlickItem","",4,"ngFor","ngForOf"],[1,"inizioGettone"],[1,"card-body_date"],["ngxSlickItem",""],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","remainingLabel","remainingColor","labelToVisualize","baseColor"],[1,"mainDetail-body","no-padding-bottom","activeOptionFixed-description"],[2,"width","100%",3,"type"]],template:function(o,a){1&o&&(t.YNc(0,Ge,2,2,"ng-container",0),t.YNc(1,$e,2,1,"ng-container",0),t.YNc(2,ri,16,4,"ng-container",0),t.YNc(3,ci,1,1,"ng-template",null,1,t.W1O)),2&o&&(t.Q6J("ngIf",!a.isFixedLinesPage),t.xp6(1),t.Q6J("ngIf",a.isFixedLinesPage&&a.activeOptionFixed&&a.activeOptionFixed.length>0),t.xp6(1),t.Q6J("ngIf",a.isOptionSecureFixedActive&&a.isFixedLinesPage))},dependencies:[l.mk,l.sg,l.O5,V.KE,st.gD,ft.ey,p._Y,p.JJ,p.JL,p.sg,p.u,mt.vE,mt.Xg,B.vz,B.MP,y.H,X.D,l.uU],styles:['.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin-bottom:2rem;width:100%;display:flex;justify-content:center}.options[_ngcontent-%COMP%] .option-carousel-container.no-margin[_ngcontent-%COMP%]{margin:0}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%]{width:95%;margin:0 2%;height:100%}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel.no-nav[_ngcontent-%COMP%]{margin:0;width:100%;height:100%}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%], .options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]{height:35px;width:30px}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ng
1content-%COMP%] .slick-prev[_ngcontent-%COMP%]:before, .options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]:before{content:"";color:#0044e0;opacity:1;position:relative;border-style:solid;border-width:0 3px 3px 0;border-radius:18%;display:inline-block;padding:6px;vertical-align:middle}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]{right:-20px}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]:before{transform:rotate(-45deg)}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]{left:-20px}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]:before{transform:rotate(135deg)}.options[_ngcontent-%COMP%] .option-carousel-container[_ngcontent-%COMP%] .option-section-carousel[_ngcontent-%COMP%] .slick-slide[_ngcontent-%COMP%]{padding:0 15px}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%]{text-transform:uppercase;display:flex;align-items:center}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]{position:absolute;z-index:9;left:20%;top:15%;padding:.5rem;border-radius:8px;margin:14px;background:white;font-size:12px;text-wrap:wrap;display:none;box-shadow:8px 5px 10px #0000001a;border-radius:1rem;color:#333;text-transform:capitalize;font-weight:400}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:300px;max-height:110px;overflow:scroll;padding:0 1rem}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]:hover{display:block}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]{width:1.6rem;display:flex;margin-left:1rem}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]:hover > .custom-tooltip[_ngcontent-%COMP%]{display:block}.options[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]:hover > .custom-tooltip[_ngcontent-%COMP%]:hover{display:block}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%]{width:100%;padding:1.6rem;background:#FFFFFF;border:1px solid #CCCCCC;border-radius:1.6rem;opacity:1}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .row.spaced-row[_ngcontent-%COMP%]{flex-wrap:nowrap;padding-bottom:1rem}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .row.no-gap[_ngcontent-%COMP%]{gap:0}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{gap:0;flex-wrap:nowrap;place-items:end;column-gap:1rem}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:1.2rem;font-weight:500}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span.roaming-zone[_ngcontent-%COMP%]{color:#333;text-transform:uppercase;font-size:1.2rem;font-weight:700;letter-spacing:0}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] span.roaming-tooltip[_ngcontent-%COMP%]{color:#333;font-size:1rem;letter-spacing:0}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .box.roaming-image[_ngcontent-%COMP%]{flex:0 0 4.5rem;padding:0 1rem 0 0}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .optionZone[_ngcontent-%COMP%]{flex:1 30%;font-weight:600;justify-content:flex-start;text-align:left}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .optionDescription[_ngcontent-%COMP%]{flex:1 70%;font-size:1.4rem;font-weight:500;justify-content:flex-end;text-align:right;color:#666}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .roamingImg[_ngcontent-%COMP%]{width:45px}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .lineChart[_ngcontent-%COMP%]{margin:4rem 0}.options[_ngcontent-%COMP%] .optionBox[_ngcontent-%COMP%] .lineChart[_ngcontent-%COMP%] .lineChart-item[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{text-align:center}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;flex-wrap:wrap;padding-bottom:3rem}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]{width:48%;height:auto;min-height:-moz-fit-content;min-height:fit-content;border-radius:3rem;border:1px solid #8B8C8E;margin:1rem}@media screen and (max-width: 1024px){.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column[_ngcontent-%COMP%]{width:98%}}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] .chart
1-container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding-bottom:1rem;margin-left:2rem}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column-form[_ngcontent-%COMP%]{width:100%}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:50%;display:flex;padding:2rem 2rem 2rem 0}@media screen and (max-width: 1024px){.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{width:100%}}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 2rem 2rem 0;font-size:1.8rem;align-self:end}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .mat-select-panel[_ngcontent-%COMP%]{overflow:hidden}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column-form[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{margin-bottom:1.5rem;width:50%}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child{display:flex;justify-content:space-between;overflow:hidden;width:100%!important}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%]{width:100%!important;display:flex;flex-direction:row;flex-wrap:wrap}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .total-label[_ngcontent-%COMP%], .options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .total-value[_ngcontent-%COMP%]{display:none}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%]{width:100%}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%]{padding:1rem 0;display:flex;align-items:center;text-transform:capitalize}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%] .item-percent[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:600;color:#000;flex-grow:3;text-align:end}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%] .item-value[_ngcontent-%COMP%], .options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%] .item-label[_ngcontent-%COMP%]{margin-top:0;font-size:1.6rem;opacity:1;font-weight:100}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%] .item-color[_ngcontent-%COMP%]{border-radius:2rem}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend[_ngcontent-%COMP%] .legend-items-container[_ngcontent-%COMP%] .legend-items[_ngcontent-%COMP%] .legend-item[_ngcontent-%COMP%] .item-value[_ngcontent-%COMP%]{display:none}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie-legend-wrapper[_ngcontent-%COMP%]{width:60%!important}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie[_ngcontent-%COMP%]{width:40%!important}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .securityOptions-chart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:first-child .advanced-pie[_ngcontent-%COMP%] .ngc-charts[_ngcontent-%COMP%]{overflow:hidden}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .security-report-custom-tooltip[_ngcontent-%COMP%]{position:absolute;background:white;border:1px solid black;padding:5px;z-index:999;pointer-events:none}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .line-chart[_ngcontent-%COMP%] .ngx-charts-outer[_ngcontent-%COMP%]{display:flex;flex-direction:column-reverse}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .line-chart[_ngcontent-%COMP%] .ngx-charts-outer[_ngcontent-%COMP%] .chart
1-legend[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:2rem 0 0 2rem;font-size:2rem}.options[_ngcontent-%COMP%] .security-charts[_ngcontent-%COMP%] .column[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 0 2rem;font-size:1.6rem}.options[_ngcontent-%COMP%] ngx-tooltip-content.ngx-charts-tooltip-content.type-tooltip[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 6px 20px #0003;color:#000;text-transform:capitalize}.options[_ngcontent-%COMP%] ngx-tooltip-content.ngx-charts-tooltip-content.type-tooltip[_ngcontent-%COMP%] .tooltip-caret.position-top[_ngcontent-%COMP%]{border-top-color:#fff;box-shadow:0 6px 20px #0003;color:#000}.options[_ngcontent-%COMP%] .x.axis[_ngcontent-%COMP%] .tick[_ngcontent-%COMP%] text[_ngcontent-%COMP%]{display:block;transform:rotate(-50deg);text-anchor:end}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .mainDetail-body[_ngcontent-%COMP%]{padding:0}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%]{position:relative;overflow:hidden;margin-top:30px;margin-bottom:30px;width:100%;display:flex}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%]{width:97%;margin:0 auto;height:100%}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-track[_ngcontent-%COMP%]{min-width:100%}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-track[_ngcontent-%COMP%] .slick-slide[_ngcontent-%COMP%]{margin:0 .5rem}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%], .options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]{height:45px;width:40px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]:before, .options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]:before{content:"";color:#fc4a14;position:relative;border-style:solid;border-width:0 2px 2px 0;display:inline-block;padding:8px;vertical-align:middle}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]{right:-25px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]:before{transform:rotate(-45deg)}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]{left:-25px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]:before{transform:rotate(135deg)}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%]{border:1px solid #afafaf;border-radius:1rem;min-width:30%;width:100%;position:relative;padding:2rem}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .titleBox[_ngcontent-%COMP%]{text-transform:uppercase}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-head[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:end}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-head[_ngcontent-%COMP%] h4[_ng
1content-%COMP%]{text-transform:uppercase;display:flex;font-size:14px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-head[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:12px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{padding:1rem 0}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-body_date[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-body_date[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:14px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .card-body_date[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:12px}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]{position:absolute;z-index:9;left:20%;top:15%;padding:.5rem;border-radius:8px;margin:14px;background:white;font-size:12px;text-wrap:wrap;display:none;box-shadow:8px 5px 10px #0000001a;border-radius:1rem;font-weight:400;text-transform:capitalize}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;width:300px;max-height:110px;overflow:scroll;padding:0 1rem}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .custom-tooltip[_ngcontent-%COMP%]:hover{display:block}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]{width:1.6rem;display:flex;margin-left:1rem}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]:hover > .custom-tooltip[_ngcontent-%COMP%]{display:block}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .tooltip-icon[_ngcontent-%COMP%]:hover > .custom-tooltip[_ngcontent-%COMP%]:hover{display:block}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .lineChart-item[_ngcontent-%COMP%] .infoText[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{font-size:12px;font-weight:400;color:#000}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOption-card[_ngcontent-%COMP%] .lineChart-item[_ngcontent-%COMP%]:last-child{margin-bottom:2.3rem}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOptionThreshold-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%], .options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOptionThreshold-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]{top:45%}.options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOptionThreshold-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-next[_ngcontent-%COMP%]:before, .options[_ngcontent-%COMP%] .businessTravelOption[_ngcontent-%COMP%] .businessTravelOption-carousel-container[_ngcontent-%COMP%] .businessTravelOption-slick-carousel.slick-slider[_ngcontent-%COMP%] .businessTravelOptionThreshold-slick-carousel.slick-slider[_ngcontent-%COMP%] .slick-prev[_ngcontent-%COMP%]:before{color:#0044e0;padding:5px}.activeOptionFixed-description[_ngcontent-%COMP%]{font-size:1.6rem;margin:1rem 0}']}),n})();var G=g(2671),J=g(3848),rt=g(455);function li(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10)(2,"div",17)(3,"div",18)(4,"span"),t._uU(5,"Mostra il dettaglio chiamate in fattura"),t.qZA(),t.TgZ(6,"mat-slide-toggle",19),t.NdJ("toggleChange",function(){t.CHM(e);const o=t.oxw(3);return t.KtG(o.showDetailInvoice())})("ngModelChange",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.checked=o)}),t.qZA()(),t._UZ(7,"div",18),t.qZA()()()}if(2&n){const e=t.oxw(3);t.xp6(6),t.Q6J("ngModel",e.checked)}}function di(n,s){if(1&n&&(t.TgZ(0,"div",18)(1,"div",20)(2,"div",21),t._uU(3),t.qZA(),t.TgZ(4,"div",22),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function gi(n,s){if(1&n&&(t.TgZ(0,"div",18)(1,"div",20)(2,"div",21),t._uU(3),t.qZA(),t.TgZ(4,"div",22),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function _i(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",13),t._uU(5),t.qZA()()(),t._UZ(6,"div",10),t.qZA(),t.TgZ(7,"div",14),t.YNc(8,gi,6,2,"div",15),t.qZA(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(5),t.Oqu(e.offerDetails.titleInLanding),t.xp6(3),t.Q6J("ngForOf",e.summaryDetails2)}}function pi(n,s){if(1&n&&(t.TgZ(0,"div",18)(1,"div",20)(2,"div",21),t._uU(3),t.qZA(),t.TgZ(4,"div",22),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function hi(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",14),t.YNc(2,pi,6,2,"div",15),t.qZA(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(2),t.Q6J("ngForOf",e.optionDetailParams)}}function fi(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",24)(2,"div",17)(3,"div",18)(4,"div",25),t._UZ(5,"img",26),t._uU(6),t.qZA()()(),t.YNc(7,hi,3,1,"ng-container",0),t.qZA(),t.BQk()),2&n){const e=s.$implicit;t.xp6(6),t.hij(" ",e.optionName," "),t.xp6(1),t.Q6J("ngIf",e.optionDetailParams&&e.optionDetailParams.length>0)}}function mi(n,s){if(1&n&&(t.ynx(0),t.YNc(1,fi,8,2,"ng-container",23),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.options)}}function ui(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11),t._uU(4,"PIANO TARIFFARIO"),t.qZA()(),t._UZ(5,"div",10),t.qZA(),t.YNc(6,li,8,1,"div",12),t.TgZ(7,"div",9)(8,"div",10)(9,"div",11)(10,"span",13),t._uU(11),t.qZA()()(),t._UZ(12,"div",10),t.qZA(),t.TgZ(13,"div",14),t.YNc(14,di,
16,2,"div",15),t.qZA(),t.YNc(15,_i,9,2,"ng-container",0),t.TgZ(16,"div",9)(17,"div",10)(18,"div",11),t._uU(19,"LE TUE OPZIONI:"),t.qZA()(),t._UZ(20,"div",10),t.qZA(),t.YNc(21,mi,2,1,"ng-container",16),t.BQk()),2&n){const e=t.oxw(2),i=t.MAs(4);t.xp6(6),t.Q6J("ngIf","postpaid"===e.lineType&&e.statusToggle&&"non Attivabile"!==e.statusToggle),t.xp6(5),t.Oqu(e.offerDetails.title),t.xp6(3),t.Q6J("ngForOf",e.summaryDetails),t.xp6(1),t.Q6J("ngIf",e.offerDetails.titleInLanding&&e.summaryDetails2&&e.summaryDetails2.length>0),t.xp6(6),t.Q6J("ngIf",e.options&&e.options.length>0)("ngIfElse",i)}}function vi(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",10)(1,"div",31),t._uU(2),t.TgZ(3,"span",32),t._uU(4),t.qZA()(),t.TgZ(5,"button",33),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(3);return t.KtG(o.openRechargeSidebar())}),t._uU(6,"RICARICA"),t.qZA()()}if(2&n){const e=t.oxw(3);t.xp6(2),t.hij("",e.credit.title," "),t.xp6(2),t.Oqu(e.credit.text)}}function xi(n,s){if(1&n&&(t.TgZ(0,"div",34),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.hij(" ",e.offerDetails.claimDescription2||e.offerDetails.claimDescription," ")}}function Ci(n,s){if(1&n&&(t.TgZ(0,"div",20)(1,"div",21),t._uU(2),t.qZA(),t.TgZ(3,"div",22),t._uU(4),t.qZA()()),2&n){const e=t.oxw().$implicit;t.xp6(2),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function Ti(n,s){if(1&n&&(t.TgZ(0,"div",18),t.YNc(1,Ci,5,2,"div",36),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf",e)}}function bi(n,s){if(1&n&&(t.TgZ(0,"div",35),t.YNc(1,Ti,2,1,"div",15),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}const Oi=function(n,s){return{"no-recharge":n,"extra-padding":s}};function Pi(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",27)(3,"div",11)(4,"span",13),t._uU(5),t.qZA()()(),t.YNc(6,vi,7,2,"div",28),t.qZA(),t.YNc(7,xi,2,1,"div",29),t.YNc(8,bi,2,1,"div",30),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngClass",t.WLB(5,Oi,!e.credit,e.credit)),t.xp6(3),t.hij(" ",e.offerDetails.titleInLanding||e.offerDetails.title," "),t.xp6(1),t.Q6J("ngIf",e.credit),t.xp6(1),t.Q6J("ngIf",e.offerDetails.claimDescription2||e.offerDetails.claimDescription),t.xp6(1),t.Q6J("ngForOf",e.sortedOfferDetailsParams)}}function Mi(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",38)(2,"span"),t._uU(3),t.qZA()(),t.TgZ(4,"div",34),t._uU(5),t.qZA(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(e.offerDetails.titleInLanding),t.xp6(2),t.hij(" ",e.offerDetails.claimDescription2," ")}}function yi(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",41),t._UZ(2,"app-thresholds-section",42),t.qZA(),t.BQk()),2&n){const e=t.oxw(3);t.xp6(2),t.Q6J("sharedData",e.sharedData)("roamingPass",e.offerDetails.roamingPass)("thresholdsOffer",e.offerDetails.thresholds)("infoExtraGiga",e.offerDetails.extraGiga)("infoPromoData",e.offerDetails.promoDati)("tariffPlan",e.mobileLine.tariffPlanDescription)("msisdn",e.mobileLine.msisdn)("type",e.mobileLine.type)("rootIntegrationId",e.mobileLine.rootIntegrationId)}}function Zi(n,s){if(1&n&&(t.TgZ(0,"div",17)(1,"div",51)(2,"div",52),t._uU(3),t.qZA(),t.TgZ(4,"p",53),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.title),t.xp6(2),t.Oqu(e.text)}}function Ai(n,s){if(1&n&&(t.TgZ(0,"div",43)(1,"div",44)(2,"div",9)(3,"div",11),t._uU(4,"SOGLIA DATI ROAMING"),t.qZA()(),t.TgZ(5,"div",45)(6,"div",17)(7,"div",46)(8,"p",47),t._uU(9,"Stato"),t.qZA(),t.TgZ(10,"p",48),t._uU(11),t.qZA()(),t.TgZ(12,"div",49)(13,"p",47),t._uU(14,"Soglia di blocco roaming"),t.qZA(),t.TgZ(15,"p",48),t._uU(16),t.qZA()()(),t.YNc(17,Zi,6,2,"div",50),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(11),t.Oqu(e.billShock.status),t.xp6(5),t.Oqu(e.billShock.thresholdValue),t.xp6(1),t.Q6J("ngForOf",e.billShock.details)}}const wi=function(n){return{"double-card":n}};function Di(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",37)(2,"div",9)(3,"div",10)(4,"div",11),t._uU(5,"SOGLIE DELL'OFFERTA"),t._UZ(6,"span",13),t.qZA()(),t._UZ(7,"div",10),t.qZA(),t.YNc(8,Mi,6,2,"ng-container",0),t.TgZ(9,"div",38)(10,"span"),t._uU(11),t.qZA()(),t.TgZ(12,"div",39),t._uU(13),t.qZA(),t.YNc(14,yi,3,9,"ng-container",0),t.qZA(),t.YNc(15,Ai,18,3,"div",40),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngClass",t.VKq(6,wi,e.roamingData)),t.xp6(7),t.Q6J("ngIf",e.offerDetails.titleInLanding),t.xp6(3),t.Oqu(e.offerDetails.title),t.xp6(2),t.hij(" ",e.offerDetails.claimDescription," "),t.xp6(1),t.Q6J("ngIf",null==e.offerDetails?null:e.offerDetails.thresholds),t.xp6(1),t.Q6J("ngIf",e.roamingData&&e.billShock)}}function Si(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11),t._uU(4,"SU QUESTA LINEA HAI ATTIVATO LE SEGUENTI OPZIONI: "),t._UZ(5,"span",13),t.qZA()(),t._UZ(6,"div",10),t.qZA(),t.TgZ(7,"div",54),t._UZ(8,"a
1pp-options-section",55),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(8),t.Q6J("offerOptions",e.options)("msisdn",e.mobileLine.msisdn)}}function Ii(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",3)(2,"mat-tab-group",4),t.NdJ("selectedTabChange",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.selectedTabChange(o))}),t.TgZ(3,"mat-tab",5),t.YNc(4,ui,22,6,"ng-container",0),t.qZA(),t.TgZ(5,"mat-tab",6),t.YNc(6,Pi,9,8,"ng-container",0),t.qZA(),t.TgZ(7,"mat-tab",7),t.YNc(8,Di,16,8,"ng-container",0),t.qZA(),t.TgZ(9,"mat-tab",8),t.YNc(10,Si,9,2,"ng-container",0),t.qZA()()(),t.BQk()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngIf",e.canShow&&0===e.tabIndex),t.xp6(2),t.Q6J("ngIf",e.canShow&&1===e.tabIndex),t.xp6(2),t.Q6J("ngIf",e.canShow&&2===e.tabIndex),t.xp6(2),t.Q6J("ngIf",e.canShow&&3===e.tabIndex)}}function ki(n,s){1&n&&t._UZ(0,"app-error-message",56),2&n&&t.Q6J("type","error")}function Ei(n,s){1&n&&t._UZ(0,"app-data-loader")}function qi(n,s){1&n&&(t.TgZ(0,"div",17)(1,"div",18)(2,"div",25),t._UZ(3,"img",26),t._uU(4," Nessuna opzione disponibile "),t.qZA()()())}let Ui=(()=>{const s=class{constructor(i,o,a){this.optionService=i,this.dialogService=o,this.spinnerService=a,this.summaryDetails=[],this.summaryDetails2=[],this.sortedOfferDetailsParams=[],this.tabIndex=0,this.roamingData=!0,this._destroy$=new M.x,this.rechargeEventEmitter=new t.vpe}set details(i){this.mobileLine=i}set initOfferDetails(i){i&&(this.offerDetails=this.mobileLine.offerDetails.offer,this.offerDetails.datiShared&&(this.sharedData=this.offerDetails.datiShared),this.lineType=this.mobileLine.type,this.options=this.mobileLine.offerDetails.options,this.simAssociated=this.mobileLine.offerDetails.simAssociate,this.lineInfoInvoiceToggle=this.mobileLine.offerDetails.invoiceCall,this.statusToggle=this.lineInfoInvoiceToggle?.state,this.checked=this.checkStatusToggle(this.statusToggle),this.mobileLine.offerDetails.credit&&(this.credit=this.mobileLine.offerDetails.credit),this.offerDetails.offerDetailParams&&this.offerDetails.offerDetailParams.length>0&&this.generateOfferDetails(),this.mobileLine.offerDetails.billShock&&(this.billShock=this.mobileLine.offerDetails.billShock),this.canShow=!0)}ngOnInit(){}selectedTabChange(i){this.tabIndex=i.index||0}openRechargeSidebar(){this.rechargeEventEmitter.emit(!0)}createColumns(i){const r=Array.from({length:4},()=>Array(3).fill(null));for(let c=0;c<4;c++)for(let f=0;f<3;f++){const h=4*f+c;h<i.length&&(r[c][f]=i[h])}return r}generateOfferDetails(){this.offerDetails.offerDetailParams.forEach(i=>{("Stato"===i.label||"Data attivazione"===i.label||"Tipologia"===i.label)&&this.summaryDetails.push({label:i.label,value:i.value})}),this.offerDetails.offerDetailParams2&&this.offerDetails.offerDetailParams2.length>0&&(this.summaryDetails2=this.offerDetails.offerDetailParams2.slice(0,3)),this.sortedOfferDetailsParams=this.createColumns(this.offerDetails.offerDetailParams)}showDetailInvoice(){this.spinnerService.enable(),this.optionService.showInvoiceDetails({msisdnList:[{msisdn:this.mobileLine.msisdn,rowIdLine:this.mobileLine.rowIdSim,integrationIdLinea:this.mobileLine.integrationIdSim,rootIntegrationId:this.mobileLine.rootIntegrationId,component:{phxName:this.lineInfoInvoiceToggle.namePhx,phxCode:this.lineInfoInvoiceToggle.codePhx,action:this.checked?"remove":"add"}}]}).subscribe({next:o=>{this.spinnerService.disable(),this.dialogService.open({title:"Attiva / Disattiva servizi",message:"L'operazione da te richiesta \xe8 stata presa in carico.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"})},error:()=>{this.spinnerService.disable(),this.statusToggle=this.lineInfoInvoiceToggle.state,this.checkStatusToggle(this.statusToggle),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"})}})}checkStatusToggle(i){return this.checked=!(!i||"attivo"!==i)}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(z.f),t.Y36(D.D),t.Y36(d.V))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-ml-registry-content"]],inputs:{details:"details",initOfferDetails:"initOfferDetails"},outputs:{rechargeEventEmitter:"rechargeEventEmitter"},decls:5,vars:3,consts:[[4,"ngIf"],[3,"type",4,"ngIf"],["emptyOptions",""],["ifContainsClass","labelLink","setClass","ifLabel",1,"ml-registry-content"],["mat-stretch-tabs","",1,"withLabel","example-stretched-tabs","mat-elevation-z4",3,"selectedTabChange"],["label","RIEPILOGO"],["label","OF
1FERTA E SIM"],["label","SOGLIE",1,"soglie"],["label","OPZIONI"],[1,"headerBodyTab"],[1,"headerBodyTabItem"],[1,"titleTab"],["class","headerBodyTab",4,"ngIf"],[1,"titleTabItem"],[1,"row","separator"],["class","box",4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"row"],[1,"box"],[1,"invoiceToggle",3,"ngModel","toggleChange","ngModelChange"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[4,"ngFor","ngForOf"],[1,"option-container"],[1,"titleBox","orange"],["src","assets/images/ico-product-eu.svg","alt","product eu",1,"ico-title"],[1,"headerBodyTabItem",3,"ngClass"],["class","headerBodyTabItem",4,"ngIf"],["class","txtTabBody",4,"ngIf"],["class","row separator no-padding-bottom",4,"ngFor","ngForOf"],[1,"txtTabHeader"],[1,"itemCredit"],[1,"cta",3,"click"],[1,"txtTabBody"],[1,"row","separator","no-padding-bottom"],["class","itemBox",4,"ngIf"],[1,"card","offerThresholds",3,"ngClass"],[1,"titleTabContent"],[1,"txtTabBody","larger-padding"],["class","card roaming",4,"ngIf"],[1,"soglie"],[2,"width","100%","max-width","100%",3,"sharedData","roamingPass","thresholdsOffer","infoExtraGiga","infoPromoData","tariffPlan","msisdn","type","rootIntegrationId"],[1,"card","roaming"],[1,"soglia-dati-roaming"],[1,"bodyTabItem"],[1,"row-item","state"],[1,"row-itemLabel"],[1,"row-itemValue"],[1,"row-item","roaming"],["class","row",4,"ngFor","ngForOf"],[1,"row-item"],[1,"row-itemLabel","txtTabBody","subtitle"],[1,"row-itemValue","txtTabBody"],[1,"option"],[2,"width","100%","max-width","100%",3,"offerOptions","msisdn"],[3,"type"]],template:function(o,a){1&o&&(t.YNc(0,Ii,11,4,"ng-container",0),t.YNc(1,ki,1,1,"app-error-message",1),t.YNc(2,Ei,1,0,"app-data-loader",0),t.YNc(3,qi,5,0,"ng-template",null,2,t.W1O)),2&o&&(t.Q6J("ngIf",!a.mobileLine.dataLoading&&!a.mobileLine.detailsError&&a.offerDetails),t.xp6(1),t.Q6J("ngIf",a.mobileLine.detailsError&&!a.mobileLine.dataLoading),t.xp6(1),t.Q6J("ngIf",a.mobileLine.dataLoading))},dependencies:[l.mk,l.sg,l.O5,y.H,H,pt,at,G.G,J.SP,J.uX,p.JJ,rt.Rr,p.On],encapsulation:2}),n})();function Fi(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-filter-tag",15),t.NdJ("filterRemoved",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onFilterRemoved(o))})("resetFilter",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.resetFilters())}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("sidebarConfig",e.sidebarConfig)("filterEvent",e.newFilterEvent)}}function Ni(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t.YNc(2,Fi,2,2,"ng-container",9),t.qZA(),t.TgZ(3,"div",10)(4,"div",11),t._uU(5),t.qZA(),t.TgZ(6,"div",12)(7,"button",13),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goBack(o))}),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA(),t.TgZ(10,"button",14),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goForward(o))}),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",e.showFilterTag&&e.filter),t.xp6(3),t.lnq("",e.fromNum,"-",e.toNum>e.totalRecords?e.totalRecords:e.toNum," di ",e.totalRecords,""),t.xp6(2),t.Q6J("disabled",1===e.fromNum),t.xp6(2),t.AsE("Pag ",e.currentPage," di ",e.totalPages,""),t.xp6(1),t.Q6J("disabled",e.currentPage===e.totalPages)}}function Li(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",18),t.NdJ("changeOrderEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.changeOrder(o))})("openItemEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getSelectedML(o))})("setFavouriteEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setFavouriteValue(o))}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(3),i=t.oxw();t.Q6J("data",i.tableData)("template",e)("lazy",i.canLoadMore)("flexColumns",i.flexColumns)("selectedMsisdn",i.selectedMsisdn)("favouriteColumn",!0)("isOrdinable",!0)}}function Ri(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-ml-registry-content",20),t.NdJ("rechargeEventEmitter",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.openRechargeSidebar(o))}),t.qZA()}if(2&n){const e=t.oxw().data;t.Q6J("details",e)("initOfferDetails",e.detailsReady)}}function Ji(n,s){if(1&n&&t.YNc(0,Ri,1,2,"app-ml-registry-content",19),2&n){const e=s.data;t.Q6J("ngIf",e.offerDetails||e.dataLoading||e.detailsError)}}function Qi(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Li,1,7,"app-dropdown-table",16),t.YNc(2,Ji,1,1,"ng-template",null,17,t.W1O),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.tableData)}}function Yi(n,s){if(1&n&&t._UZ(0,"app-error-message",21),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}let Bi=(()=>{const s=class{constructor(i,o,a,r,c,f,h){this.offerService=i,this.spinnerService=o,this.tableHelper=a,this.userUtilsService=r,this.sidebarService=c,this.filterService=f,this.router=h,this.errorMessageType="empty",this.displayErrorMessage=!1,this.canLoadMore=!1,this.flexColumns=[1],this.showFilterTag=!0,this.newFilterEvent={},this.tableItems=[],this.currentOffset=0,this.pageSize=15,this.mobileLinesList=[],this.pntfList=[],this._destroy$=new M.x,this.selectedMsisdn=null,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();const x=this.router.getCurrentNavigation();x?.extras.state&&x.extras.state.msisdn&&(this.selectedMsisdn=x.extras.state.msisdn),this.isMigratedMixed=this.userUtilsService.isBssEvoMigratedMixed()}ngOnInit(){this.filterService.filterEvent$.subscribe(i=>{this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.newFilterEvent=i,this.mobileLinesList=[],this.currentOffset=0,i?(this.filter=new T.z(void 0,i.name?i.name:void 0,i.type?i.type:void 0,void 0,i.fullText?i.fullText:void 0,i.roaming?i.roaming:void 0),this.fetchMobileLinesList(this.filter)):(this.filter=void 0,this.fetchMobileLinesList())})}fetchMobileLinesList(i){this.spinnerService.enable(),this.displayErrorMessage=!1;const o=this.createRequestModel(i);this.offerService.getMobileList(o).subscribe({next:a=>{(!a.mobileLinesList||0===a.mobileLinesList.length)&&this.handleFetchError(i?"empty_filter_generic":"empty"),this.canLoadMore=!a.lastPage,this.totalRecords=a.technicalInfo?a.technicalInfo.totalRecords:0,this.mobileLinesList=a.mobileLinesList,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.selectedMsisdn&&!a.mobileLinesList.some(c=>c.msisdn===this.selectedMsisdn)&&this.canLoadMore?this.goForward(new MouseEvent("click")):(this.mapTableData(),this.mobileLinesList.length>0&&0===this.tableItems.length&&this.fetchPntfList(),this.spinnerService.disable())},error:()=>{this.spinnerService.disable(),this.mobileLinesList=[],this.handleFetchError(i?"empty_filter_generic":"error")}})}fetchPntfList(){this.offerService.getDistinctTariffPlans().subscribe(i=>{i&&(this.pntfList=i.pntfList,this.setupFilters())})}mapTableData(){this.tableData=this.tableHelper.createDropdownTableData(u.y.MOBILEPRODUCTS,this.mobileLinesList),this.tableData.dataTableRow.forEach(i=>{i.rows.map(o=>{"TIPOLOGIA"===o.title&&(o.value="prepaid"===o.value?"PREPAGATA":"POSTPAGATA")})})}getSelectedML(i){if(!i.dataAlreadyLoaded){i.dataLoading=!0,i.detailsReady=!1;const o=new k.z(i.msisdn,19,i.migrated);this.offerService.getOffer(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:a=>{i.detailsError=!1,i.dataLoading=!1,i.detailsReady=!0,i.offerDetails=a,i.dataAlreadyLoaded=!0},error:()=>{i.dataLoading=!1,i.detailsError=!0,i.dataAlreadyLoaded=!0}})}}createRequestModel(i){return new T.T(this.currentOffset,this.pageSize,i||void 0,this.order,this.orderBy)}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.spinnerService.disable()}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)))}openRechargeSidebar(i){this.sidebarConfig.types.includes(w.t.RECHARGE)&&this.sidebarService.openSidebarPanel(new Z.e(w.t.RECHARGE,i))}setFavouriteValue(i){const o=i.msisdn,a=!i.favourite;i.favourite?this.offerService.removeFavoriteLine(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:()=>{const r=this.tableData.dataTableRow.find(c=>c.fetchedElement.msisdn===o);r&&(r.fetchedElement.favourite=a)}}):this.offerService.addFavoriteLine(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:()=>{const r=this.tableData.dataTableRow.find(c=>c.fetchedElement.msisdn===o);r&&(r.fetchedElement.favourite=a)}})}onFilterRemoved(i){if(this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,"Abilitato"===i.value?i.value=!0:"Non abilitato"===i.value&&(i.value=!1),i&&this.filter){if(this.filter.fullText===i)this.filter=void 0,this.fetchMobileLinesList(this.filter);else{const a=Object.keys(this.filter).find(r=>this.filter&&this.filter[r]===i.value);if(a){const r={...this.filter};r[a]=void 0,this.filter=r,this.fetchMobileLinesList(this.filter)}}this.sidebarConfig.filtersConfig.filter(a=>{(a.value===i.valueOf||a.value===i.value)&&(a.value=void 0)});const o=this.updateSidebarFiltersConfig();this.sidebarService.setSidebarConfiguration(o)}}resetFilters(){this.currentOffset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.filter=void 0;const i=this.updateSidebarFiltersConfig();this.sidebarService.setSidebarConfiguration(i),this.fetchMobileLinesList()}updateSidebarFiltersConfig(){const i={name:"phxPntf",type:"type",roaming:"roaming",fullText:"fullText"};let o={...this.sidebarConfig,filtersConfig:[...this.sidebarConfig.filtersConfig]};return o.filtersConfig.forEach(a=>
1{i[a.key]&&(a.value=this.filter?.[i[a.key]])}),o}goForward(i){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(i){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(i){this.order=i.order,this.orderBy=i.orderBy,this.fetchMobileLinesList()}ngOnDestroy(){this.spinnerService.disable(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.sidebarService.resetSidebarConfiguration(),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(_.K),t.Y36(d.V),t.Y36(m.S),t.Y36(C.r),t.Y36(O.P),t.Y36(L.i),t.Y36(v.F0))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-mobile-products"]],decls:11,vars:3,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],["class","topTable-container",4,"ngIf"],[4,"ngIf","ngIfElse"],["error_banner",""],[1,"topTable-container"],[1,"filtersBox"],[4,"ngIf"],[1,"paginationBox","lazy-button"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],[3,"sidebarConfig","filterEvent","filterRemoved","resetFilter"],[3,"data","template","lazy","flexColumns","selectedMsisdn","favouriteColumn","isOrdinable","changeOrderEmitter","openItemEmitter","setFavouriteEmitter",4,"ngIf"],["mlTemplate",""],[3,"data","template","lazy","flexColumns","selectedMsisdn","favouriteColumn","isOrdinable","changeOrderEmitter","openItemEmitter","setFavouriteEmitter"],[3,"details","initOfferDetails","rechargeEventEmitter",4,"ngIf"],[3,"details","initOfferDetails","rechargeEventEmitter"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"LINEE MOBILE"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"In questa pagina sono disponibili i dettagli delle tue linee mobili, incluse soglie e opzioni."),t.qZA()(),t.YNc(7,Ni,11,8,"div",4),t.YNc(8,Qi,4,1,"ng-container",5),t.YNc(9,Yi,1,1,"ng-template",null,6,t.W1O),t.qZA()),2&o){const r=t.MAs(10);t.xp6(7),t.Q6J("ngIf",!a.displayErrorMessage),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",r)}},dependencies:[l.O5,E.a,y.H,q.n,j.u,Ui],encapsulation:2}),n})();class Gi{constructor(s,e,i,o,a){this.type=s,this.fixLineFilter=e,this.msisdn=i,this.integrationId=o,this.phxPntf=a}}var U=g(7601),tt=g(9984);function zi(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",22)(1,"div",23)(2,"b"),t._uU(3,"Mostra il dettaglio chiamate in fattura"),t.qZA(),t.TgZ(4,"mat-slide-toggle",24),t.NdJ("toggleChange",function(){t.CHM(e);const o=t.oxw(3);return t.KtG(o.showDetailInvoice())})("ngModelChange",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.checked=o)}),t.qZA()(),t._UZ(5,"div",23),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(4),t.Q6J("ngModel",e.checked)}}function Hi(n,s){if(1&n&&(t.TgZ(0,"div",28)(1,"div",29),t._uU(2),t.qZA(),t.TgZ(3,"div",30),t._uU(4),t.qZA()()),2&n){const e=s.$implicit;t.xp6(2),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function $i(n,s){if(1&n&&(t.TgZ(0,"div",23),t.YNc(1,Hi,5,2,"div",27),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Ki(n,s){if(1&n&&(t.TgZ(0,"div",25),t.YNc(1,$i,2,1,"div",26),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.infoDetails)}}function Vi(n,s){if(1&n&&(t.TgZ(0,"div",23)(1,"div",33)(2,"div",29),t._uU(3),t.qZA(),t.TgZ(4,"div",30),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function ji(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",31)(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),t._uU(5,"OFFICE BACKUP"),t.qZA()()(),t.TgZ(6,"div",10)(7,"div",13)(8,"button",14),t._uU(9,"Codice di migrazione"),t.qZA(),t.TgZ(10,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(3);return t.KtG(o.showMigrationCodeBackup(o.line))}),t._uU(11,"VISUALIZZA"),t.qZA()()()(),t.TgZ(12,"div",32),t.YNc(13,Vi,6,2,"div",26),t.qZA()()}if(2&n){const e=t.oxw(3);
1t.xp6(13),t.Q6J("ngForOf",e.detailBackupFwa)}}function Wi(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),t._uU(5),t.qZA()()(),t.TgZ(6,"div",10)(7,"div",13)(8,"button",14),t._uU(9,"Codice di migrazione"),t.qZA(),t.TgZ(10,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.showMigrationCode(o.line))}),t._uU(11," VISUALIZZA "),t.qZA()()()(),t.YNc(12,zi,6,1,"div",16),t.YNc(13,Ki,2,1,"div",17),t.YNc(14,ji,14,1,"div",18),t.TgZ(15,"a",19),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.navigateToTraffic())}),t._UZ(16,"img",20),t.TgZ(17,"span",21),t._uU(18,"VERIFICA TRAFFICO"),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(5),t.Oqu(e.line.tariffPlan),t.xp6(7),t.Q6J("ngIf",e.statusToggle&&"non Attivabile"!==e.statusToggle),t.xp6(1),t.Q6J("ngIf",e.infoDetails),t.xp6(1),t.Q6J("ngIf",e.detailBackupFwa&&e.detailBackupFwa.length>0)}}function Xi(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",34)(2,"div",22)(3,"div",23)(4,"div",35),t._UZ(5,"img",36),t._uU(6," SECURE WEB "),t.qZA(),t.TgZ(7,"div",37),t._uU(8," La prima linea di difesa dagli attacchi mentre navighi sulla connettivit\xe0 di rete fissa WINDTRE : difende i tuoi asset ed i tuoi dati da minacce quali phishing, ransomware, cryptomining. "),t.qZA()()(),t.TgZ(9,"div",38),t._UZ(10,"app-options-section",39),t.qZA()(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(10),t.Q6J("msisdnSelectedFixed",e.line.msisdn)("reportTypeFixed",e.selected)("isOptionSecureFixedActive",e.isOptionSecureActive)}}function tn(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Xi,11,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.canShow&&1===e.tabIndex)}}function en(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",34)(2,"div",38),t._UZ(3,"app-options-section",40),t.qZA()(),t.BQk()),2&n){const e=t.oxw(4);t.xp6(3),t.Q6J("msisdnSelectedFixed",e.line.msisdn)("reportTypeFixed",e.selected)("activeOptionFixed",e.line.fixedLineDetails.activeOptionFixed)}}function nn(n,s){if(1&n&&(t.ynx(0),t.YNc(1,en,4,3,"ng-container",2),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngIf",e.canShow&&1===e.tabIndex)}}function on(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11),t._uU(4,"SONO ATTIVE LE SEGUENTI OPZIONI:"),t.qZA()(),t._UZ(5,"div",10),t.qZA(),t.YNc(6,tn,2,1,"ng-container",2),t.YNc(7,nn,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.isOptionSecureActive&&(null==e.line.fixedLineDetails.options[0]?null:e.line.fixedLineDetails.options[0].optionName)),t.xp6(1),t.Q6J("ngIf",e.line.fixedLineDetails&&(null==e.line.fixedLineDetails.activeOptionFixed[0]?null:e.line.fixedLineDetails.activeOptionFixed[0].name))}}function sn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-tab-group",5),t.NdJ("selectedTabChange",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.selectedTabChange(o))}),t.TgZ(2,"mat-tab",6),t.YNc(3,Wi,19,4,"ng-container",2),t.qZA(),t.TgZ(4,"mat-tab",7),t.YNc(5,on,8,2,"ng-container",8),t.qZA()()()}if(2&n){const e=t.oxw(),i=t.MAs(4);t.xp6(3),t.Q6J("ngIf",e.canShow&&0===e.tabIndex),t.xp6(2),t.Q6J("ngIf",e.line.fixedLineDetails&&((null==e.line.fixedLineDetails.options[0]?null:e.line.fixedLineDetails.options[0].optionName)||(null==e.line.fixedLineDetails.activeOptionFixed[0]?null:e.line.fixedLineDetails.activeOptionFixed[0].name)))("ngIfElse",i)}}function an(n,s){1&n&&t._UZ(0,"app-error-message",41),2&n&&t.Q6J("type","error")}function rn(n,s){1&n&&t._UZ(0,"app-data-loader")}function cn(n,s){1&n&&(t.TgZ(0,"div",22)(1,"div",23)(2,"div",35),t._UZ(3,"img",36),t._uU(4," Nessuna opzione disponibile "),t.qZA()()())}let ln=(()=>{const s=class{constructor(i,o,a,r){this.router=i,this.optionService=o,this.dialogService=a,this.spinnerService=r,this.tabIndex=0,this.summaryDetails=[],this.summaryDetails2=[],this.phishing=[],this.malware=[],this.others=[],this.viewPie=[775,250],this.selected="MONTH",this._destroy$=new M.x,this.showMigrationCodeEmitter=new t.vpe,this.showMigrationCodeBackupEmitter=new t.vpe,this.sortingHelperArray=["Numero telefono","Tipo","Piano tariffario","Data di attivazione","Stato","Convergenza","A
1ccount","Sede"]}set selectedLine(i){this.line=i,this.isOptionSecureActive=i.isOptionSecureActive}set createDetails(i){i&&this.line&&(this.lineInfoInvoiceToggle=this.line.fixedLineDetails.invoiceInfoToggle,this.statusToggle=this.lineInfoInvoiceToggle.statusToggleInvoice,this.checked=this.checkStatusToggle(this.statusToggle),this.line?.fixedLineDetails?.details&&(this.line.fixedLineDetails.details.sort((o,a)=>this.sortingHelperArray.indexOf(o.label)-this.sortingHelperArray.indexOf(a.label)),this.infoDetails=this.line.fixedLineDetails.details.reduce((o,a,r)=>{const c=Math.floor(r/3);return o[c]||(o[c]=[]),o[c].push(a),o},[])),this.canShow=!0,this.line?.fixedLineDetails.detailBackupFwa&&(this.detailBackupFwa=this.line.fixedLineDetails.detailBackupFwa))}ngOnInit(){this.line&&this.lineInfoInvoiceToggle&&this.showDetailInvoice()}showDetailInvoice(){this.spinnerService.enable(),this.optionService.showInvoiceDetails({msisdnList:[{msisdn:this.line.msisdn,rowIdLine:this.line.rowId,integrationIdLinea:this.line.fixedLineDetails.integrationId,rootIntegrationId:this.line.fixedLineDetails.rootIntegrationId,component:{phxName:this.lineInfoInvoiceToggle.namePHX,phxCode:this.lineInfoInvoiceToggle.codePHX,action:this.checked?"remove":"add"}}]}).subscribe({next:o=>{this.spinnerService.disable(),this.dialogService.open({title:"Attiva / Disattiva servizi",message:"L'operazione da te richiesta \xe8 stata presa in carico.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"confirm"})},error:()=>{this.spinnerService.disable(),this.statusToggle=this.lineInfoInvoiceToggle.statusToggleInvoice,this.checkStatusToggle(this.statusToggle),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"})}})}handleFetchError(i){this.displayErrorMessage=!0,this.spinnerService.disable()}checkStatusToggle(i){return this.checked=!(!i||"attivo"!==i)}showMigrationCode(i){this.showMigrationCodeEmitter.emit(i)}showMigrationCodeBackup(i){this.showMigrationCodeBackupEmitter.emit(i)}navigateToTraffic(){this.router.navigateByUrl("/traffico/linee/fisso").then(i=>console.log("Navigate to traffic fixed"))}selectedTabChange(i){this.tabIndex=i.index||0}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(v.F0),t.Y36(z.f),t.Y36(D.D),t.Y36(d.V))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-fl-registry-content"]],inputs:{selectedLine:"selectedLine",createDetails:"createDetails"},outputs:{showMigrationCodeEmitter:"showMigrationCodeEmitter",showMigrationCodeBackupEmitter:"showMigrationCodeBackupEmitter"},decls:5,vars:3,consts:[["class","fl-registry-content","ifContainsClass","labelLink","setClass","ifLabel",4,"ngIf"],[3,"type",4,"ngIf"],[4,"ngIf"],["emptyOptions",""],["ifContainsClass","labelLink","setClass","ifLabel",1,"fl-registry-content"],["mat-stretch-tabs","",1,"withLabel","example-stretched-tabs","mat-elevation-z4",3,"selectedTabChange"],["label","DETTAGLI"],["label","OPZIONI"],[4,"ngIf","ngIfElse"],[1,"headerBodyTab"],[1,"headerBodyTabItem"],[1,"titleTab"],[1,"titleTabItem"],[1,"buttonWrapper"],[1,"cta","empty"],[1,"cta",3,"click"],["class","row",4,"ngIf"],["class","row separator",4,"ngIf"],["class","section",4,"ngIf"],[1,"labelLink","ng-star-inserted",3,"click"],["src","assets/images/ico_traffico.svg","alt","verifica traffico"],[1,"labelLinkTxt"],[1,"row"],[1,"box"],[3,"ngModel","toggleChange","ngModelChange"],[1,"row","separator"],["class","box",4,"ngFor","ngForOf"],["class","itemBox",4,"ngFor","ngForOf"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[1,"section"],["If","detailBackupFwa",1,"row","separator","detailBackupFwa"],[1,"itemBox","no-wrap"],[1,"option-container"],[1,"titleBox","orange"],["src","assets/images/ico-product-eu.svg","alt","product eu",1,"ico-title"],[1,"descriptionBox"],[1,"option"],[3,"msisdnSelectedFixed","reportTypeFixed","isOptionSecureFixedActive"],[3,"msisdnSelectedFixed","reportTypeFixed","activeOptionFixed"],[3,"type"]],template:function(o,a){1&o&&(t.YNc(0,sn,6,3,"div",0),t.YNc(1,an,1,1,"app-error-message",1),t.YNc(2,rn,1,0,"app-data-loader",2),t.YNc(3,cn,5,0,"ng-template",null,3,t.W1O)),2&o&&(t.Q6J("ngIf",!a.line.detailsError&&!a.line.loadingDetails),t.xp6(1),t.Q6J("ngIf",a.line.detailsError&&!a.line.loadingDetails),t.xp6(1),t.Q6J("ngIf",a.line.loadingDetails))},dependencies:[l.sg,l.O5,y.H,H,at,G.G,J.SP,J.uX,p.JJ,rt.Rr,p.On],encapsulation:2}),n})();function dn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",9)(1,"div",10),t._uU(2),t.qZA(),t.TgZ(3,"div",11)(4,"button",12),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goBack(o))}),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"button",13),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goForward(o))}),t.qZA()()()}if(2&n){const e=t.oxw();
1t.xp6(2),t.lnq("",e.fromNum,"-",e.toNum>e.totalRecords?e.totalRecords:e.toNum," di ",e.totalRecords,""),t.xp6(2),t.Q6J("disabled",1===e.fromNum),t.xp6(2),t.AsE("Pag ",e.currentPage," di ",e.totalPages,""),t.xp6(1),t.Q6J("disabled",e.currentPage===e.totalPages)}}function gn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",16),t.NdJ("setFavouriteEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setFavouriteValue(o))})("requestMoreDataEmitter",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.fetchFixedLinesListNewPage())})("openItemEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getSelectedLineDetails(o))}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(3),i=t.oxw();t.Q6J("data",i.tableData)("template",e)("flexColumns",i.flexColumns)("selectedMsisdn",i.selectedMsisdn)("favouriteColumn",!0)}}function _n(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-fl-registry-content",18),t.NdJ("showMigrationCodeEmitter",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.showMigrationCodeModal(o))})("showMigrationCodeBackupEmitter",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.showMigrationCodeBackupModal(o))}),t.qZA()}if(2&n){const e=t.oxw().data;t.Q6J("selectedLine",e)("createDetails",e.detailsReady)}}function pn(n,s){if(1&n&&t.YNc(0,_n,1,2,"app-fl-registry-content",17),2&n){const e=s.data;t.Q6J("ngIf",e.fixedLineDetails||e.loadingDetails||e.detailsError)}}function hn(n,s){if(1&n&&(t.ynx(0),t.YNc(1,gn,1,5,"app-dropdown-table",14),t.YNc(2,pn,1,1,"ng-template",null,15,t.W1O),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.tableData)}}function fn(n,s){if(1&n&&t._UZ(0,"app-error-message",19),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}let mn=(()=>{const s=class{constructor(i,o,a,r,c,f,h,x){this.offerService=i,this.spinnerService=o,this.tableHelper=a,this.userUtilsService=r,this.sidebarService=c,this.filterService=f,this.dialogService=h,this.router=x,this.errorMessageType="empty_filter_wrong_data",this.displayErrorMessage=!1,this.canLoadMore=!1,this.isLoading=!1,this.flexColumns=[0,2,4],this.offset=0,this.pageSize=30,this.fixedLinesList=[],this._destroy$=new M.x,this.selectedMsisdn=null,this.lastPage=!1,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.isHC=this.userUtilsService.isHcAc(),this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.setupFilters();const P=this.router.getCurrentNavigation();P?.extras.state&&P.extras.state.msisdn&&(this.selectedMsisdn=P.extras.state.msisdn)}ngOnInit(){this.filterService.filterEvent$.subscribe(i=>{const o=this.findCodePhxPT(i?.tariffPlan);this.fixedLinesList=[],this.offset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,i?i.fullText&&i.fullText.length>0?(this.filter=new tt.J(i.fullText&&i.fullText.length>0?i.fullText:null),this.fetchFullTextFixedLinesList(this.filter)):(this.filter=new tt.J(null,i.tariffPlan&&i.tariffPlan.length>0&&o?o:void 0,i.status&&i.status.length>0?i.status:void 0,i.municipality&&i.municipality.length>0?i.municipality:void 0),this.fetchFullTextFixedLinesList(this.filter)):(this.filter=void 0,this.fetchFullTextFixedLinesList())})}findCodePhxPT(i){let o="";return this.fixedLinesList.forEach(a=>{a.tariffPlan&&i&&a.tariffPlan===i&&(o=a.phxPNTF)}),o}fetchFullTextFixedLinesList(i){this.spinnerService.enable();const o=this.createAssetRequestModel(i);this.offerService.getFixedListAsset(o).subscribe({next:a=>{(!a.fixedLinesList||0===a.fixedLinesList.length)&&this.handleFetchError("empty_filter_wrong_data"),this.canLoadMore=!a.lastPage,this.totalRecords=a.technicalInfo?a.technicalInfo.totalRecords:0,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.lastPage=a.lastPage,this.fixedLinesList=a.fixedLinesList.map(r=>({msisdn:r.lineId,favourite:r.favourite,account:r.account,tariffPlan:r.namePhxPt,status:r.status,municipality:r.officeName,integrationId:r.integrationId,namePrd:r.namePrd,phxPNTF:r.codePhxPt,activationDate:r.dateActivationOption,rowId:r.rowIdAsset,phxPrd:r.phxPrd,fwa:r.isFwa,isOptionSecureActive:null!=r.activeOption&&("PHX70327"===r.activeOption||"PHX70329")||r.isOptionSecureActive})),this.selectedMsisdn&&!a.fixedLinesList.some(c=>c.lineId===this.selectedMsisdn)&&this.canLoadMore?this.fetchFixedLinesListNewPage():(this.mapTableData(this.fixedLinesList),this.lastPage=!0,this.spinnerService.disable())},error:()=>this.handleFetchError("empty_filter_wrong_data")})}getSelectedLineDetails(i){if(!i.alreadyLoadDetails){i.loadingDetails=!0,i.detailsReady=!1;const o=new Gi(U.Uw.SME,U.mr.FIXED_ONLY,i.msisdn,i.integrationId,i.phxPNTF);this.offerService.getFixedLineDetail(o).subscribe({next:a=>{i.detailsError=!1,i.loadingDetails=!1,i.fixedLineDetails=a,i.detailsReady=!0,i.alreadyLoadDetails=!0,this.selectedLineDetail=a},error:()=>{i.loadingDetails=!1,i.detailsError=!0,i.alreadyLoadDetails=!0}})}}fetchFixedLinesListNewPage(){this.offset=this.offset+this.pageSize,this.fetchFullTextFixedLinesList()}showMigrationCodeModal(i){this.spinnerService.enable(),this.offerService.getMigrationCode(i.msisdn,i.fixedLineDetails.planCode).subscribe(o=>{const a=o.migrationCode?o.migrationCode:"Nessun codice migrazione",r=o.migrationCodeVoice?o.migrationCodeVoice:"Nessun codice voce";this.spinnerService.disable(),this.dialogService.open({title:"Codice di migrazione",message:"Linea selezionata: <strong>"+i.msisdn+"</strong><br/>Codice di migrazione: <strong>"+a+"</strong><br/>Codice di migrazione voce: <strong>"+r,confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"info"})},o=>{this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Non \xe8 stato possibile recuperare il codice di migrazione per la linea selezionata. Riprova pi\xf9 tardi.<br/>In alternativa lo puoi trovare in fattura o chiamando il 1928.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}showMigrationCodeBackupModal(i){let o=i.fixedLineDetails.cmdBackup;this.dialogService.open(o?{title:"Codice di migrazione",message:"Codice di migrazione: <strong>"+o,confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"info"}:{title:"Attenzione!",message:"Non \xe8 stato possibile recuperare il codice di migrazione per la linea selezionata. Riprova pi\xf9 tardi.<br/>In alternativa lo puoi trovare in fattura o chiamando il 1928.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})}createAssetRequestModel(i){return i?new tt.Y(null,this.offset,this.pageSize,i):new tt.Y(null,this.offset,this.pageSize)}setupFilters(){const i=this.createAssetRequestModel();this.offerService.getFixedListAsset(i).subscribe(o=>{o&&(this.sidebarService.setSidebarConfiguration(this.filterService.getFullTextOfferFilters(o.fixedLinesList,this.sidebarConfig)),this.sidebarService.setSidebarConfiguration(this.filterService.getFixedAssetOfferFilters(o.fixedLinesList,this.sidebarConfig)))})}mapTableData(i){this.fixedLinesList.length>0&&(this.displayErrorMessage=!1),this.tableData=this.tableHelper.createDropdownTableData(u.y.FIXEDPRODUCTS,i),this.spinnerService.disable()}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.isLoading=!1,this.lastPage=!0,this.spinnerService.disable()}setFavouriteValue(i){const o=i.msisdn,a=!i.favourite;i.favourite?this.offerService.removeFavoriteLine(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:()=>{const r=this.tableData.dataTableRow.find(c=>c.fetchedElement.msisdn===o);r&&(r.fetchedElement.favourite=a)}}):this.offerService.addFavoriteLine(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:()=>{const r=this.tableData.dataTableRow.find(c=>c.fetchedElement.msisdn===o);r&&(r.fetchedElement.favourite=a)}})}goForward(i){this.offset=this.offset+this.pageSize,this.fromNum=this.offset+1,this.toNum=this.offset+this.pageSize,this.currentPage=Math.ceil(this.offset/this.pageSize)+1,this.fetchFullTextFixedLinesList()}goBack(i){this.offset=this.offset-this.pageSize,this.fromNum=this.offset+1,this.toNum=this.offset+this.pageSize,this.currentPage=Math.ceil(this.offset/this.pageSize)+1,this.fetchFullTextFixedLinesList()}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(o){return new(o||s)(t.Y36(_.K),t.Y36(d.V),t.Y36(m.S),t.Y36(C.r),t.Y36(O.P),t.Y36(L.i),t.Y36(D.D),t.Y36(v.F0))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-fixed-products"]],decls:13,vars:3,consts:[[1,"main-pages-content","fixedLines-page"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[1,"topTable-container"],[1,"filtersBox"],["class","paginationBox",4,"ngIf"],[4,"ngIf","ngIfElse"],["error_banner",""],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],[3,"data","template","flexColumns","selectedMsisdn","favouriteColumn","setFavouriteEmitter","requestMoreDataEmitter","openItemEmitter",4,"ngIf"],["flTemplate",""],[3,"data","template","flexColumns","selectedMsisdn","favouriteColumn","setFavouriteEmitter","requestMoreDataEmitter","openItemEmitter"],[3,"selectedLine","createDetails","showMigrationCodeEmitter","showMigrationCodeBackupEmitter",4,"ngIf"],[3,"selectedLine","createDetails","showMigrationCodeEmitter","showMigrationCodeBackupEmitter"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"LINEE FISSE"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"In questa pagina sono disponibili i dettagli delle tue linee fisse, incluse soglie e opzioni."),t.qZA()(),t.TgZ(7,"div",4),t._UZ(8,"div",5),t.YNc(9,dn,8,7,"div",6),t.qZA(),t.YNc(10,hn,4,1,"ng-container",7),t.YNc(11,fn,1,1,"ng-template",null,8,t.W1O),t.qZA()),2&o){const r=t.MAs(12);t.xp6(9),t.Q6J("ngIf",!a.displayErrorMessage),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",r)}},dependencies:[l.O5,E.a,y.H,q.n,ln],encapsulation:2}),n})();var un=g(2229),vn=g(6012);function xn(n,s){if(1&n&&(t.TgZ(0,"div",14)(1,"div",22)(2,"div",23),t._uU(3),t.qZA(),t.TgZ(4,"div",24),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function Cn(n,s){if(1&n&&(t.TgZ(0,"div",20),t.YNc(1,xn,6,2,"div",21),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",null==e.offerData.offer?null:e.offerData.offer.offerDetailParams)}}function Tn(n,s){if(1&n&&(t.TgZ(0,"div",13)(1,"div",14)(2,"h3",15),t._uU(3),t.qZA()()()),2&n){const e=t.oxw(3);t.xp6(3),t.Oqu(null==e.offerData.offer?null:e.offerData.offer.titleInLanding)}}function bn(n,s){if(1&n&&(t.TgZ(0,"div",14)(1,"div",22)(2,"div",23),t._uU(3),t.qZA(),t.TgZ(4,"div",24),t._uU(5),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function On(n,s){if(1&n&&(t.ynx(0),t._UZ(1,"hr"),t.YNc(2,Tn,4,1,"div",25),t.TgZ(3,"div",18),t._uU(4),t.qZA(),t.TgZ(5,"div",20),t.YNc(6,bn,6,2,"div",21),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(2),t.Q6J("ngIf",null==e.offerData.offer?null:e.offerData.offer.titleInLanding),t.xp6(2),t.hij(" ",null==e.offerData.offer?null:e.offerData.offer.claimDescription2," "),t.xp6(2),t.Q6J("ngForOf",null==e.offerData.offer?null:e.offerData.offer.offerDetailParams2)}}function Pn(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",26)(2,"div",12)(3,"span"),t._uU(4,"SOGLIE DELL'OFFERTA"),t.qZA()(),t.TgZ(5,"div",27),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.redirectToTraffic())}),t.TgZ(6,"div",28),t._UZ(7,"img",29),t.TgZ(8,"span"),t._uU(9,"VERIFICA TRAFFICO"),t.qZA()()(),t._UZ(10,"app-thresholds-section",30),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(10),t.Q6J("sharedData",e.sharedData)("roamingPass",e.offerData.offer.roamingPass)("infoPromoData",e.offerData.offer.promoDati)("thresholdsOffer",e.offerData.offer.thresholds)("infoExtraGiga",e.offerData.offer.extraGiga)}}function Mn(n,s){1&n&&(t.TgZ(0,"div",33),t._uU(1,"SU QUESTA LINEA HAI ATTIVATO LE SEGUENTI OPZIONI:"),t.qZA())}function yn(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",11)(2,"div",12)(3,"span"),t._uU(4,"OPZIONI"),t.qZA()(),t.YNc(5,Mn,2,0,"div",31),t._UZ(6,"app-options-section",32),t.qZA(),t.BQk()),2&n){const e=t.oxw(2);t.xp6(5),t.Q6J("ngIf",e.offerData.options.length>0),t.xp6(1),t.Q6J("offerOptions",e.offerData.options)}}function Zn(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",11)(2,"div",12)(3,"span"),t._uU(4,"PIANO TARIFFARIO"),t.qZA()(),t.TgZ(5,"div",13)(6,"div",14)(7,"h3",15),t._uU(8),t.qZA()(),t.TgZ(9,"div",16),t._uU(10),t.TgZ(11,"span",17),t._uU(12),t.qZA()()(),t.TgZ(13,"div",18),t._uU(14),t.qZA(),t.YNc(15,Cn,2,1,"div",19),t.YNc(16,On,7,3,"ng-container",9),t.qZA(),t.YNc(17,Pn,11,5,"ng-container",9),t.YNc(18,yn,7,2,"ng-container",9),t.BQk()),2&n){const e=t.oxw();
1t.xp6(8),t.Oqu(null==e.offerData.offer?null:e.offerData.offer.title),t.xp6(2),t.hij(" ",null==e.offerData.credit?null:e.offerData.credit.title," "),t.xp6(2),t.Oqu(null==e.offerData.credit?null:e.offerData.credit.text),t.xp6(2),t.hij(" ",null==e.offerData.offer?null:e.offerData.offer.claimDescription," "),t.xp6(1),t.Q6J("ngIf",(null==e.offerData.offer?null:e.offerData.offer.offerDetailParams)&&(null==e.offerData.offer?null:e.offerData.offer.offerDetailParams.length)>0),t.xp6(1),t.Q6J("ngIf",(null==e.offerData.offer?null:e.offerData.offer.titleInLanding)||(null==e.offerData.offer?null:e.offerData.offer.claimDescription2)||(null==e.offerData.offer?null:e.offerData.offer.offerDetailParams2)&&(null==e.offerData.offer?null:e.offerData.offer.offerDetailParams2.length)>0),t.xp6(1),t.Q6J("ngIf",null==e.offerData||null==e.offerData.offer?null:e.offerData.offer.thresholds),t.xp6(1),t.Q6J("ngIf",e.offerData.options)}}function An(n,s){1&n&&t._UZ(0,"app-spinner")}function wn(n,s){if(1&n&&t._UZ(0,"app-error-message",34),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}function Dn(n,s){if(1&n&&(t.TgZ(0,"div",13)(1,"div",42)(2,"div",43)(3,"b"),t._uU(4),t.qZA()(),t.TgZ(5,"p",44),t._uU(6),t.qZA()()()),2&n){const e=s.$implicit;t.xp6(4),t.Oqu(e.title),t.xp6(2),t.Oqu(e.text)}}function Sn(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",11)(2,"div",12)(3,"span"),t._uU(4,"SOGLIA DATI ROAMING"),t.qZA()(),t.TgZ(5,"div",35)(6,"div",36)(7,"div",13)(8,"div",37)(9,"p",38),t._uU(10,"Stato"),t.qZA(),t.TgZ(11,"p",39),t._uU(12),t.qZA()(),t.TgZ(13,"div",40)(14,"p",38),t._uU(15,"Soglia di blocco roaming"),t.qZA(),t.TgZ(16,"p",39),t._uU(17),t.qZA()()(),t.YNc(18,Dn,7,2,"div",41),t.qZA()()(),t.BQk()),2&n){const e=t.oxw();
1t.xp6(12),t.Oqu(e.billShock.status),t.xp6(5),t.Oqu(e.billShock.thresholdValue),t.xp6(1),t.Q6J("ngForOf",e.billShock.details)}}let In=(()=>{const s=class{constructor(i,o,a,r,c,f){this.offerService=i,this.userUtilService=o,this.spinnerService=a,this.router=r,this.sidebarService=c,this.associateSimService=f,this.labelBox=!1,this.errorMessageType="empty",this.displayErrorMessage=!1,this._destroy$=new M.x,this.msisdn=this.userUtilService.getMsisdn(),this.loggedMsisdn=this.msisdn;const h=this.userUtilService.getCurrentMsisdn();h&&(this.msisdn=h),this.sidebarConfig=this.sidebarService.getEUHomeDefaultConfiguration(),this.associatedSims=this.userUtilService.getAssociatedSims()}ngOnInit(){if(this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.userUtilService.msisdnChangedSubject.subscribe({next:i=>{i&&i.length>0&&(this.msisdn=i,this.getOffer())}}),this.associatedSims)this.sidebarConfig.associateSims=this.associatedSims;else{const i=new un.l(this.loggedMsisdn);this.associateSimService.getAssociateSims(i).pipe((0,b.R)(this._destroy$)).subscribe({next:o=>{this.associatedSims=o,this.sidebarConfig.associateSims=this.associatedSims,this.userUtilService.setAssociatedSims(this.associatedSims)}})}this.getOffer()}getOffer(){this.loading=!0,this.displayErrorMessage=!1;const i=new k.z(this.msisdn,19);this.offerService.getOfferEU(i).subscribe({next:o=>{this.offerData=o,this.loggedMsisdn===this.msisdn&&(this.userUtilService.setMsisdnType(this.offerData.userType),this.loggedMsisdnType=this.offerData.userType),this.offerData.offer?.datiShared&&(this.sharedData=this.offerData.offer?.datiShared),this.offerData.billShock&&(this.billShock=this.offerData.billShock),this.loading=!1},error:()=>{this.displayErrorMessage=!0,this.errorMessageType="error",this.loading=!1}})}redirectToTraffic(){this.router.navigateByUrl("traffico").then(i=>console.log("Redirect to traffic EU!"))}asAppair(){this.labelBox=!0}ngOnDestroy(){this.spinnerService.disable(),this.sidebarService.resetSidebarConfiguration(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(_.K),t.Y36(C.r),t.Y36(d.V),t.Y36(v.F0),t.Y36(O.P),t.Y36(vn.X))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-eu-products"]],decls:18,vars:5,consts:[[1,"main-pages-content","eu-product-component"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[1,"row-product-information"],[1,"box-info"],[1,"row","number-description"],[1,"row","number-label"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["error_banner",""],[1,"mainDetail"],[1,"ticketBox"],[1,"row"],[1,"box"],[1,"titleBox","orange"],[1,"box","place-end"],[1,"headerPrice"],[1,"mainDetail-body"],["class","row separator",4,"ngIf"],[1,"row","separator"],["class","box",4,"ngFor","ngForOf"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],["class","row",4,"ngIf"],[1,"mainDetail","labelBoxOk"],[1,"labelBox",3,"click"],[1,"labelBox-content"],["src","assets/images/ico-menu-traffico.svg","alt","verifica traffico",1,"img-labelBox"],[2,"width","100%","max-width","100%",3,"sharedData","roamingPass","infoPromoData","thresholdsOffer","infoExtraGiga"],["class","titleBox",4,"ngIf"],[2,"width","100%","max-width","100%",3,"offerOptions"],[1,"titleBox"],[2,"width","100%",3,"type"],[1,"soglia-dati-roaming"],[1,"bodyTabItem"],[1,"row-item","state"],[1,"row-itemLabel"],[1,"row-itemValue"],[1,"row-item","roaming"],["class","row",4,"ngFor","ngForOf"],[1,"row-item"],[1,"row-itemLabel","txtTabBody","subtitle"],[1,"row-itemValue","txtTabBody"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"MOBILE"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"In questa pagina \xe8 disponibile il dettaglio della tua linea mobile, incluse soglie e opzioni."),t.qZA()(),t.TgZ(7,"div",4)(8,"div",5)(9,"div",6),t._uU(10," Il tuo numero: "),t.qZA(),t.TgZ(11,"div",7),t._uU(12),t.qZA()()(),t.YNc(13,Zn,19,8,"ng-container",8),t.YNc(14,An,1,0,"app-spinner",9),t.YNc(15,wn,1,1,"ng-template",null,10,t.W1O),t.YNc(17,Sn,19,3,"ng-container",9),t.qZA()),2&o){const r=t.MAs(16);
1t.xp6(12),t.hij(" ",a.msisdn," "),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage&&a.offerData)("ngIfElse",r),t.xp6(1),t.Q6J("ngIf",a.loading),t.xp6(3),t.Q6J("ngIf",a.billShock)}},dependencies:[l.sg,l.O5,nt.O,y.H,pt,at,q.n],encapsulation:2}),n})();class kn{constructor(s,e,i){this.numTel=s,this.integrationId=e,this.rowId=i}}function En(n,s){if(1&n&&(t.TgZ(0,"div",25)(1,"div",26),t._uU(2),t.qZA(),t.TgZ(3,"div",27),t._uU(4),t.qZA()()),2&n){const e=s.$implicit;t.xp6(2),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function qn(n,s){if(1&n&&(t.TgZ(0,"div",23),t.YNc(1,En,5,2,"div",24),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngForOf",e)}}function Un(n,s){if(1&n&&(t.TgZ(0,"div",21),t.YNc(1,qn,2,1,"div",22),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.fwaInfoDetails)}}function Fn(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",31),t._UZ(2,"app-line-chart",32),t.qZA(),t.BQk()),2&n){const e=s.$implicit;t.xp6(2),t.Q6J("startDate",e.startDate)("endDate",e.endDate)("trafficType",e.thresholdDirector)("thresholdPeriod",e.labelThresholdsPeriods)("setInitialAmount",e.initialAmount)("percentageRemaining",e.percentageAmount)("setRemainingAmount",e.remainingAmount)("remainingColor",e.usedColor)("baseColor",e.endUsedColor)("isUnlimited",e.unlimited)("usedLabel",e.usedLabel)("totalLabel",e.totalLabel)}}function Nn(n,s){if(1&n&&(t.TgZ(0,"div",28)(1,"div",23)(2,"div",29),t._uU(3,"TRAFFICO DATI"),t.qZA(),t.YNc(4,Fn,3,12,"ng-container",30),t.qZA()()),2&n){const e=t.oxw(3);t.xp6(4),t.Q6J("ngForOf",e.thresholds)}}function Ln(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11)(4,"span",12),t._uU(5),t.qZA()()(),t.TgZ(6,"div",10)(7,"div",13)(8,"button",14),t._uU(9,"Codice di migrazione"),t.qZA(),t.TgZ(10,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.showMigrationCode())}),t._uU(11,"VISUALIZZA"),t.qZA()()()(),t.YNc(12,Un,2,1,"div",16),t.YNc(13,Nn,5,1,"div",17),t.TgZ(14,"a",18),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.navigateToTraffic())}),t._UZ(15,"img",19),t.TgZ(16,"span",20),t._uU(17,"VERIFICA TRAFFICO"),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(5),t.Oqu(e.line.tariffPlan),t.xp6(7),t.Q6J("ngIf",e.fwaInfoDetails),t.xp6(1),t.Q6J("ngIf",e.thresholds&&e.thresholds.length>0)}}function Rn(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",33)(2,"div",34)(3,"div",23)(4,"div",35),t._UZ(5,"img",36),t._uU(6),t.qZA(),t.TgZ(7,"div",37),t._uU(8),t.qZA()()()(),t.TgZ(9,"div",21)(10,"div",23)(11,"div",25)(12,"div",26),t._uU(13,"Data di attivazione"),t.qZA(),t.TgZ(14,"div",27),t._uU(15),t.qZA()()(),t.TgZ(16,"div",23)(17,"div",25)(18,"div",26),t._uU(19,"Profilo"),t.qZA(),t.TgZ(20,"div",27),t._uU(21),t.qZA()()()(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(6),t.hij(" ",e.name," "),t.xp6(2),t.hij(" ",e.description," "),t.xp6(7),t.Oqu(e.activationDate),t.xp6(6),t.Oqu(e.profile)}}function Jn(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Rn,22,4,"ng-container",2),t.BQk()),2&n){const e=t.oxw(4);t.xp6(1),t.Q6J("ngIf",e.canShow&&1===e.tabIndex)}}function Qn(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Jn,2,1,"ng-container",30),t.BQk()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",e.line.fwaLineDetails.activeOptionFixed)}}function Yn(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"div",10)(3,"div",11),t._uU(4,"SONO ATTIVE LE SEGUENTI OPZIONI:"),t.qZA()(),t._UZ(5,"div",10),t.qZA(),t.YNc(6,Qn,2,1,"ng-container",2),t.BQk()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.line.fwaLineDetails&&e.line.fwaLineDetails.activeOptionFixed.length>0)}}function Bn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",4)(1,"mat-tab-group",5),t.NdJ("selectedTabChange",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.selectedTabChange(o))}),t.TgZ(2,"mat-tab",6),t.YNc(3,Ln,18,3,"ng-container",2),t.qZA(),t.TgZ(4,"mat-tab",7),t.YNc(5,Yn,7,1,"ng-container",8),t.qZA()()()}if(2&n){const e=t.oxw(),i=t.MAs(4);t.xp6(3),t.Q6J("ngIf",e.canShow&&0===e.tabIndex),t.xp6(2),t.Q6J("ngIf",e.line.fwaLineDetails&&e.line.fwaLineDetails.activeOptionFixed&&(e.line.fwaLineDetails.options.length>0||e.line.fwaLineDetails.activeOptionFixed.length>0))("ngIfElse",i)}}function Gn(n,s){1&n&&t._UZ(0,"app-error-message",38),2&n&&t.Q6J("type","error")}function zn(n,s){1&n&&t._UZ(0,"app-data-loader")}function Hn(n,s){1&n&&(t.TgZ(0,"div",34)(1,"div",23)(2,"div",35),t._UZ(3,"img",39),t._uU(4," Nessuna opzione disponibile "),t.qZA()()())}let $n=(()=>{const s=class{constructor(i){this.router=i,this.tabIndex=0,this.showMigrationCodeEmitter=new t.vpe,this.sortingHelperArray=["Numero telefono","Tipo","Piano tariffario","Data di attivazione","Stato","Convergenza","A
1ccount","Sede"]}set details(i){i&&(this.line=i)}set initFwaDetails(i){i&&(this.fwaDetails=this.line.fwaLineDetails,this.fwaDetails?.details&&(this.fwaDetails.details.sort((o,a)=>this.sortingHelperArray.indexOf(o.label)-this.sortingHelperArray.indexOf(a.label)),this.fwaInfoDetails=this.fwaDetails.details.reduce((o,a,r)=>{const c=Math.floor(r/3);return o[c]||(o[c]=[]),o[c].push(a),o},[])),this.canShow=!0,this.fwaDetails.thresholds&&this.fwaDetails.thresholds.length>0&&(this.thresholds=this.fwaDetails.thresholds))}showDetailInvoice(){}showMigrationCode(){this.showMigrationCodeEmitter.emit(this.line)}navigateToTraffic(){this.router.navigateByUrl("/traffico/linee/fisso").then(i=>console.log("Navigate to traffic mobile"))}selectedTabChange(i){this.tabIndex=i.index||0}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(v.F0))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-fwal-registry-content"]],inputs:{details:"details",initFwaDetails:"initFwaDetails"},outputs:{showMigrationCodeEmitter:"showMigrationCodeEmitter"},decls:5,vars:3,consts:[["class","fl-registry-content","ifContainsClass","labelLink","setClass","ifLabel",4,"ngIf"],[3,"type",4,"ngIf"],[4,"ngIf"],["emptyOptions",""],["ifContainsClass","labelLink","setClass","ifLabel",1,"fl-registry-content"],["mat-stretch-tabs","",1,"withLabel","example-stretched-tabs","mat-elevation-z4",3,"selectedTabChange"],["label","DETTAGLI"],["label","OPZIONI"],[4,"ngIf","ngIfElse"],[1,"headerBodyTab"],[1,"headerBodyTabItem"],[1,"titleTab"],[1,"titleTabItem"],[1,"buttonWrapper"],[1,"cta","empty"],[1,"cta",3,"click"],["class","row separator",4,"ngIf"],["class","row fwa-details-padding",4,"ngIf"],[1,"labelLink","ng-star-inserted",3,"click"],["src","assets/images/ico_traffico.svg","alt",""],[1,"labelLinkTxt"],[1,"row","separator"],["class","box",4,"ngFor","ngForOf"],[1,"box"],["class","itemBox",4,"ngFor","ngForOf"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[1,"row","fwa-details-padding"],[1,"titleBox"],[4,"ngFor","ngForOf"],[1,"fwa-section-margin"],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","setRemainingAmount","remainingColor","baseColor","isUnlimited","usedLabel","totalLabel"],[1,"option-container"],[1,"row"],[1,"titleBox","orange"],["src","assets/images/ico-product-eu.svg","alt","option",1,"ico-title"],[1,"descriptionBox"],[3,"type"],["src","assets/images/ico-product-eu.svg","alt","product eu",1,"ico-title"]],template:function(o,a){1&o&&(t.YNc(0,Bn,6,3,"div",0),t.YNc(1,Gn,1,1,"app-error-message",1),t.YNc(2,zn,1,0,"app-data-loader",2),t.YNc(3,Hn,5,0,"ng-template",null,3,t.W1O)),2&o&&(t.Q6J("ngIf",!a.line.detailsError&&!a.line.loadingDetails),t.xp6(1),t.Q6J("ngIf",a.line.detailsError&&!a.line.loadingDetails),t.xp6(1),t.Q6J("ngIf",a.line.loadingDetails))},dependencies:[l.sg,l.O5,y.H,X.D,H,G.G,J.SP,J.uX],styles:[".fwa-details-padding[_ngcontent-%COMP%]{padding-right:5rem}.fwa-section-margin[_ngcontent-%COMP%]{margin-bottom:5rem}.option-title[_ngcontent-%COMP%]{color:#fc4a14;font-size:2rem;font-weight:700}.mat-tab-body[_ngcontent-%COMP%]{min-height:36rem}.titleBox[_ngcontent-%COMP%]{margin-bottom:2rem}"]}),n})();function Kn(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-filter-tag",10),t.NdJ("filterRemoved",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.onFilterRemoved(o))})("resetFilter",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.resetFilters())}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("sidebarConfig",e.sidebarConfig)("filterEvent",e.newFilterEvent)}}function Vn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",11)(1,"div",12),t._uU(2),t.qZA(),t.TgZ(3,"div",13)(4,"button",14),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goBack(o))}),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"button",15),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goForward(o))}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.lnq("",e.fromNum,"-",e.toNum>e.totalRecords?e.totalRecords:e.toNum," di ",e.totalRecords,""),t.xp6(2),t.Q6J("disabled",1===e.fromNum),t.xp6(2),t.AsE("Pag ",e.currentPage," di ",e.totalPages,""),t.xp6(1),t.Q6J("disabled",e.currentPage===e.totalPages)}}function jn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",18),t.NdJ("setFavouriteEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.setFavouriteValue(o))})("changeOrderEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.changeOrder(o))})("openItemEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getSelectedLineDetails(o))}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(3),i=t.oxw();t.Q6J("data",i.tableData)("template",e)("lazy",!1)("isOrdinable",!0)("favouriteColumn",!0)}}function Wn(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-fwal-registry-content",20),t.NdJ("showMigrationCodeEmitter",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.showMigrationCodeModal(o))}),t.qZA()}if(2&n){const e=t.oxw().data;t.Q6J("details",e)("initFwaDetails",e.detailsReady)}}function Xn(n,s){if(1&n&&t.YNc(0,Wn,1,2,"app-fwal-registry-content",19),2&n){const e=s.data;t.Q6J("ngIf",e.fwaLineDetails||e.loadingDetails||e.detailsError)}}function to(n,s){if(1&n&&(t.ynx(0),t.YNc(1,jn,1,5,"app-dropdown-table",16),t.YNc(2,Xn,1,1,"ng-template",null,17,t.W1O),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.tableData)}}function eo(n,s){if(1&n&&t._UZ(0,"app-error-message",21),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}let io=(()=>{const s=class{constructor(i,o,a,r,c,f,h){this.offerService=i,this.spinnerService=o,this.tableHelper=a,this.userUtilsService=r,this.sidebarService=c,this.filterService=f,this.dialogService=h,this.offset=0,this.pageSize=30,this.errorMessageType="empty",this.displayErrorMessage=!1,this.isLoading=!1,this.showFilterTag=!0,this.newFilterEvent={},this.tableItems=[],this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.lastPage=!0,this.totalRecords=0,this.totalPages=0,this._destroy$=new M.x,this.msisdn=this.userUtilsService.getMsisdn(),this.pIva=this.userUtilsService.getPiva(),this.isHC=this.userUtilsService.isHcAc(),this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration()}ngOnInit(){this.filter=new U._1(U.mr.FWA_ONLY),this.filterService.filterEvent$.subscribe(i=>{this.offset=0,this.currentPage=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,i?(this.newFilterEvent=i,this.fetchFixedLinesList(i)):this.fwaLinesList&&this.fwaLinesList.length>0&&(this.spinnerService.enable(),this.mapTableData(),this.spinnerService.disable())}),this.fetchFixedLinesList(this.filter)}fetchFixedLinesList(i){this.spinnerService.enable();const o=this.createRequestModel(i);this.offerService.getFixedList(o).subscribe({next:a=>{(!a.fixedLinesList||0===a.fixedLinesList.length)&&this.handleFetchError("empty"),this.fwaLinesList=a.fixedLinesList,this.fwaLinesList&&this.fwaLinesList.length>0&&0===this.tableItems.length&&this.setupFilters(),this.lastPage=a.lastPage,this.totalRecords=a.technicalInfo?a.technicalInfo.totalRecords:0,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.mapTableData(),this.spinnerService.disable()},error:()=>this.handleFetchError("error")})}setupFilters(){this.tableItems=[{desc:"Piano Tariffario",label:"tariffPlan",value:"tariffPlan"},{desc:"Stato",label:"status",value:"status"},{desc:"Sede",label:"municipality",value:"municipality"}],this.fwaLinesList&&(this.sidebarService.setSidebarConfiguration(this.filterService.getTableSelectFilters(this.sidebarConfig,this.tableItems,this.fwaLinesList,this.fwaLinesList)),this.sidebarService.setSidebarConfiguration(this.filterService.getFullTextOfferFilters(this.fwaLinesList,this.sidebarConfig)))}getSelectedLineDetails(i){if(!i.alreadyLoadDetails){i.loadingDetails=!0;const o=new kn(i.msisdn,i.integrationId,i.rowId);this.offerService.getFwaDetails(o).subscribe({next:a=>{i.detailsError=!1,i.loadingDetails=!1,i.detailsReady=!0,i.fwaLineDetails=a,i.alreadyLoadDetails=!0},error:()=>{i.loadingDetails=!1,i.detailsError=!0,i.alreadyLoadDetails=!0}})}}showMigrationCodeModal(i){this.spinnerService.enable(),this.offerService.getMigrationCode(i.msisdn,i.fwaLineDetails.planCode).subscribe(o=>{const a=o.migrationCode?o.migrationCode:"Nessun codice migrazione",r=o.migrationCodeVoice?o.migrationCodeVoice:"Nessun codice voce";this.spinnerService.disable(),this.dialogService.open({title:"Codice di migrazione",message:"Linea selezionata: <strong>"+i.msisdn+"</strong><br/>Codice di migrazione: <strong>"+a+"</strong><br/>Codice di migrazione voce: <strong>"+r,confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"info"})},o=>{this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Non \xe8 stato possibile recuperare il codice di migrazione per la linea selezionata. Riprova pi\xf9 tardi.<br/>In alternativa lo puoi trovare in fattura o chiamando il 1928.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}createRequestModel(i){return this.filter=i,this.filter.typology=U.mr.FWA_ONLY,this.filter.fullText=this.filter.fullText?this.newFilterEvent.fullText:void 0,this.filter.municipality=this.filter.municipality?this.filter.municipality:void 0,this.filter.status=this.filter.status?this.newFilterEvent.status:void 0,this.filter.tariffPlan?this.fwaLinesList.forEach(o=>{o.tariffPlan===i.tariffPlan&&(this.filter.tariffPlan=o.phxPNTF)}):this.filter.tariffPlan=void 0,this.order=this.order&&this.order.length>0?this.order:"",this.orderBy=this.order&&this.order.length>0?this.orderBy:"",new U.OY(this.offset,this.isHC,this.pageSize,this.filter,void 0,this.order,this.orderBy)}mapTableData(){this.fwaLinesList.length>0&&(this.displayErrorMessage=!1),this.tableData=this.tableHelper.createDropdownTableData(u.y.FIXEDPRODUCTS,this.fwaLinesList)}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.isLoading=!1,this.spinnerService.disable()}onFilterRemoved(i){if(i&&this.filter){if(this.filter.fullText===i)this.filter.fullText=void 0,this.fetchFixedLinesList(this.filter);else{const o=Object.keys(this.filter).find(a=>this.filter&&this.filter[a]===i.value);if(o){const a={...this.filter};a[o]=void 0,this.filter=a,this.fetchFixedLinesList(this.filter)}}this.sidebarConfig.filtersConfig.filter(o=>{(o.value===i.valueOf||o.value===i.value)&&(o.value=void 0)})}else this.filter=new U._1(U.mr.FWA_ONLY),this.sidebarConfig.filtersConfig.forEach(o=>o.value=""),this.fetchFixedLinesList(this.filter)}goForward(i){this.offset=this.offset+this.pageSize,this.fromNum=this.offset+1,this.toNum=this.offset+this.pageSize,this.currentPage=Math.ceil(this.offset/this.pageSize)+1,this.fetchFixedLinesList(this.filter)}goBack(i){this.offset=this.offset-this.pageSize,this.fromNum=this.offset+1,this.toNum=this.offset+this.pageSize,this.currentPage=Math.ceil(this.offset/this.pageSize)+1,this.fetchFixedLinesList(this.filter)}changeOrder(i){this.order=i.order,this.orderBy=i.orderBy,this.fetchFixedLinesList(this.filter)}resetFilters(){this.offset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.fetchFixedLinesList(this.filter)}setFavouriteValue(i){const o=i.msisdn,a=!i.favourite;i.favourite?this.offerService.removeFavoriteLine(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:()=>{const r=this.tableData.dataTableRow.find(c=>c.fetchedElement.msisdn===o);r&&(r.fetchedElement.favourite=a)}}):this.offerService.addFavoriteLine(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:()=>{const r=this.tableData.dataTableRow.find(c=>c.fetchedElement.msisdn===o);r&&(r.fetchedElement.favourite=a)}})}ngOnDestroy(){this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.sidebarService.resetSidebarConfiguration(),this.filterService.resetFilterEvent()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(_.K),t.Y36(d.V),t.Y36(m.S),t.Y36(C.r),t.Y36(O.P),t.Y36(L.i),t.Y36(D.D))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-fwa"]],decls:14,vars:4,consts:[[1,"main-pages-content"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[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","template","lazy","isOrdinable","favouriteColumn","setFavouriteEmitter","changeOrderEmitter","openItemEmitter",4,"ngIf"],["flTemplate",""],[3,"data","template","lazy","isOrdinable","favouriteColumn","setFavouriteEmitter","changeOrderEmitter","openItemEmitter"],[3,"details","initFwaDetails","showMigrationCodeEmitter",4,"ngIf"],[3,"details","initFwaDetails","showMigrationCodeEmitter"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"FIXED WIRELESS ACCESS"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"All'interno di questa sezione puoi vedere i dettagli delle tue linee FWA, incluse soglie e opzioni."),t.qZA()(),t.TgZ(7,"div",4)(8,"div",5),t.YNc(9,Kn,2,2,"ng-container",6),t.qZA(),t.YNc(10,Vn,8,7,"div",7),t.qZA(),t.YNc(11,to,4,1,"ng-container",8),t.YNc(12,eo,1,1,"ng-template",null,9,t.W1O),t.qZA()),2&o){const r=t.MAs(13);t.xp6(9),t.Q6J("ngIf",a.showFilterTag&&a.filter),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",r)}},dependencies:[l.O5,E.a,y.H,q.n,j.u,$n]}),n})();var no=g(5422),oo=g(6388),vt=g(9358),so=g(5552);function ao(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",11)(2,"div",12),t._uU(3),t.qZA(),t.TgZ(4,"div",13),t._uU(5),t.qZA()(),t.BQk()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function ro(n,s){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9),t._uU(2,"DETTAGLIO"),t.qZA(),t.YNc(3,ao,6,2,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Q6J("ngForOf",e.statusDetails)}}function co(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",11)(2,"div",12),t._uU(3),t.qZA(),t.TgZ(4,"div",13),t._uU(5),t.qZA()(),t.BQk()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function lo(n,s){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9),t._uU(2,"TRAFFICO"),t.qZA(),t.YNc(3,co,6,2,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Q6J("ngForOf",e.trafficDetails)}}function go(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",11)(2,"div",12),t._uU(3),t.qZA(),t.TgZ(4,"div",13),t._uU(5),t.qZA()(),t.BQk()),2&n){const e=s.$implicit;t.xp6(3),t.Oqu(e.label),t.xp6(2),t.Oqu(e.value)}}function _o(n,s){if(1&n&&(t.TgZ(0,"div",8)(1,"div",9),t._uU(2,"REFERENTE"),t.qZA(),t.YNc(3,go,6,2,"ng-container",10),t.qZA()),2&n){const e=t.oxw(3);t.xp6(3),t.Q6J("ngForOf",e.referentDetails)}}function po(n,s){if(1&n&&(t.TgZ(0,"div",6),t.YNc(1,ro,4,1,"div",7),t.YNc(2,lo,4,1,"div",7),t.YNc(3,_o,4,1,"div",7),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",e.statusDetails&&e.statusDetails.length>0),t.xp6(1),t.Q6J("ngIf",e.trafficDetails&&e.trafficDetails.length>0),t.xp6(1),t.Q6J("ngIf",e.referentDetails&&e.referentDetails.length>0)}}function ho(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",15),t._UZ(2,"app-line-chart",16),t.qZA(),t.BQk()),2&n){const e=s.$implicit;t.xp6(2),t.Q6J("startDate",e.startDate)("endDate",e.endDate)("trafficType",e.thresholdType)("thresholdPeriod",e.labelThresholdsPeriods)("setInitialAmount",e.initialAmount)("percentageRemaining",e.percentageRemaining)("setRemainingAmou
1nt",e.remainingAmount)("remainingLabel",e.remainingLabel)("remainingColor",e.usedColor)("labelToVisualize",e.labelToVisualize)("baseColor","#58595B")}}function fo(n,s){if(1&n&&(t.TgZ(0,"div",14)(1,"div",8)(2,"div",9),t._uU(3,"TRAFFICO DATI"),t.qZA(),t.YNc(4,ho,3,11,"ng-container",10),t.qZA()()),2&n){const e=t.oxw(2);t.xp6(4),t.Q6J("ngForOf",e.thresholds)}}function mo(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",20),t.NdJ("requestMoreDataEmitter",function(){t.CHM(e);const o=t.oxw(3);return t.KtG(o.requestOtherSims())}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(8),i=t.oxw(2);t.Q6J("data",i.simsDataTable)("selectable",!1)("lazy",!i.canLoadMore)("advancedColumnTemplate",e)}}function uo(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",21)(2,"button",22),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw().data,r=t.oxw(3);return t.KtG(r.fetchCreditGss(a,o))}),t._uU(3,"VISUALIZZA "),t.qZA()(),t._UZ(4,"div",23),t.BQk()}}function vo(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",24)(2,"span"),t._uU(3),t.qZA(),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div",23),t._uU(7),t.qZA(),t.BQk()),2&n){const e=t.oxw().data;t.xp6(3),t.Oqu(e.creditData.bytesErosi?e.creditData.bytesErosi+"%":"-"),t.xp6(2),t.Oqu(e.creditData.gbErosi?e.creditData.gbErosi:"-"),t.xp6(2),t.Oqu(e.creditData.credit?e.creditData.credit:"-")}}function xo(n,s){if(1&n&&(t.YNc(0,uo,5,0,"ng-container",2),t.YNc(1,vo,8,3,"ng-container",2)),2&n){const e=s.data;t.Q6J("ngIf",!e.creditData),t.xp6(1),t.Q6J("ngIf",e.creditData)}}function Co(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",9)(2,"span"),t._UZ(3,"img",17),t.qZA(),t.TgZ(4,"div"),t._uU(5,"NUMERI ASSOCIATI"),t.qZA()(),t.YNc(6,mo,1,4,"app-dropdown-table",18),t.YNc(7,xo,2,2,"ng-template",null,19,t.W1O),t.BQk()),2&n){const e=t.oxw(2);t.xp6(6),t.Q6J("ngIf",e.simsDataTable)}}function To(n,s){if(1&n&&(t.TgZ(0,"div",3),t.YNc(1,po,4,3,"div",4),t.YNc(2,fo,5,1,"div",5),t.YNc(3,Co,9,1,"ng-container",2),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.packetDetails.details&&e.packetDetails.details.length>0),t.xp6(1),t.Q6J("ngIf",e.thresholds&&e.thresholds.length>0),t.xp6(1),t.Q6J("ngIf",e.simsDataTable&&e.packetDetails.simList&&e.packetDetails.simList.length>0)}}function bo(n,s){1&n&&t._UZ(0,"app-error-message",25),2&n&&t.Q6J("type","error")}function Oo(n,s){1&n&&t._UZ(0,"app-data-loader")}let Po=(()=>{const s=class{constructor(i,o,a,r){this.tableHelper=i,this.spinnerService=o,this.gssService=a,this.dialogService=r,this._destroy$=new M.x,this.canLoadMore=!1,this.packetSimList=[],this.requestOtherSimEmit=new t.vpe}set isloadMoreDataChildEvent(i){this.isloadMoreEvent=i}set details(i){this.packet=i}set initGssDetails(i){i&&(this.packetDetails=this.packet.gssPacketDetails,this.packetSimList=this.isloadMoreEvent?[...this.packetSimList,...this.packetDetails.simList]:this.packetDetails.simList,this.packetDetails.details&&this.packetDetails.details.length>0&&(this.statusDetails=this.packetDetails.details.filter(o=>"Dettaglio"===o.category),this.trafficDetails=this.packetDetails.details.filter(o=>"Traffico"===o.category),this.referentDetails=this.packetDetails.details.filter(o=>"Referente"===o.category)),this.trafficDetails.length>0&&this.trafficDetails.map(o=>{if("Extra Giga"===o.label){const a=Math.round(+o.value/Math.pow(2,30)*100)/100;a&&(o.value=a.toString())}}),this.packetDetails.gssDataDetail&&this.packetDetails.gssDataDetail.thresholds&&this.packetDetails.gssDataDetail.thresholds.length>0&&(this.thresholds=this.packetDetails.gssDataDetail.thresholds),this.packetSimList&&this.packetSimList.length>0&&(this.simsDataTable=this.tableHelper.createDropdownTableData(u.y.GSSSIMS,this.packetSimList),this.simsDataTable.dataTableRow.forEach(o=>{o.rows.pop(),o.rows.map(a=>{"GB EROSI"===a.title&&(a.advancedColumn=!0)})})),this.canLoadMore=this.packetDetails.lastPage,this.packet.gssLoadingDetails=!1)}ngOnInit(){}fetchCreditGss(i,o){o.stopPropagation(),this.spinnerService.enable();const a=new so.V(i.simNumber);this.gssService.getGssCredit(a).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:r=>{i.creditData=r,i.creditData.bytesErosi&&this.thresholds.length>0&&(i.creditData.bytesErosi=+Math.round(r.bytesErosi/this.thresholds[0].initialAmount*100).toFixed(2)),this.spinnerService.disable()},error:()=>{this.dialogService.open({title:"Attenzione!",message:"Gentile cliente, non \xe8 stato possibile recuperare il credito residuo.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}),this.spinnerService.disable()}})}requestOtherSims(){this.packet.gssLoadingDetails=!0,this.requestOtherSimEmit.emit()}ngOnDestroy(){this.packetSimList=[],this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(m.S),t.Y36(d.V),t.Y36(vt.$),t.Y36(D.D))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-gssl-registry-content"]],inputs:{isloadMoreDataChildEvent:"isloadMoreDataChildEvent",details:"details",initGssDetails:"initGssDetails"},outputs:{requestOtherSimEmit:"requestOtherSimEmit"},decls:3,vars:3,consts:[["class","base-content gss-detail",4,"ngIf"],[3,"type",4,"ngIf"],[4,"ngIf"],[1,"base-content","gss-detail"],["class","row spaced",4,"ngIf"],["class","row",4,"ngIf"],[1,"row","spaced"],["class","box",4,"ngIf"],[1,"box"],[1,"titleBox"],[4,"ngFor","ngForOf"],[1,"itemBox"],[1,"itemRequest"],[1,"itemReply"],[1,"row"],[1,"threshold-gss-margin"],[3,"startDate","endDate","trafficType","thresholdPeriod","setInitialAmount","percentageRemaining","setRemainingAmount","remainingLabel","remainingColor","labelToVisualize","baseColor"],["src","assets/images/ico-sim.svg","alt","sim"],["class","secondTitle-item",3,"data","selectable","lazy","advancedColumnTemplate","requestMoreDataEmitter",4,"ngIf"],["gssCreditCustomColumn",""],[1,"secondTitle-item",3,"data","selectable","lazy","advancedColumnTemplate","requestMoreDataEmitter"],["data-title","GB erosi",1,"cell-table"],[1,"cta","gss-custom-table-cta",3,"click"],["data-title","Credito residuo",1,"cell-table"],["data-title","GB erosi",1,"cell-table",2,"justify-content","space-between"],[3,"type"]],template:function(o,a){1&o&&(t.YNc(0,To,4,3,"div",0),t.YNc(1,bo,1,1,"app-error-message",1),t.YNc(2,Oo,1,0,"app-data-loader",2)),2&o&&(t.Q6J("ngIf",!a.packet.gssDetail
1sError&&!a.packet.gssLoadingDetails),t.xp6(1),t.Q6J("ngIf",a.packet.gssDetailsError&&!a.packet.gssLoadingDetails),t.xp6(1),t.Q6J("ngIf",a.packet.gssLoadingDetails))},dependencies:[l.sg,l.O5,E.a,y.H,X.D,G.G],encapsulation:2}),n})();function Mo(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",8),t.NdJ("requestMoreDataEmitter",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.fetchGssListNewPage())})("openItemEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getSelectedGssDetails(o))}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(3),i=t.oxw();t.Q6J("data",i.tableData)("template",e)("flexColumns",i.flexColumns)("lazy",i.canLoadMore)("collapseRow",i.isToCollapse)}}function yo(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-gssl-registry-content",10),t.NdJ("requestOtherSimEmit",function(o){t.CHM(e);const a=t.oxw().data,r=t.oxw(2);return t.KtG(r.onLoadMoreDataChildEvent(o,a))}),t.qZA()}if(2&n){const e=t.oxw().data,i=t.oxw(2);t.Q6J("details",e)("initGssDetails",e.detailsReady)("isloadMoreDataChildEvent",i.isloadMoreDataChildEvent)}}function Zo(n,s){if(1&n&&t.YNc(0,yo,1,3,"app-gssl-registry-content",9),2&n){const e=s.data;t.Q6J("ngIf",e.gssPacketDetails||e.gssLoadingDetails||e.gssDetailsError)}}function Ao(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Mo,1,5,"app-dropdown-table",6),t.YNc(2,Zo,1,1,"ng-template",null,7,t.W1O),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.tableData)}}function wo(n,s){if(1&n&&t._UZ(0,"app-error-message",11),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}let Do=(()=>{const s=class{constructor(i,o,a,r,c,f){this.gssService=i,this.spinnerService=o,this.tableHelper=a,this.userUtilsService=r,this.sidebarService=c,this.filterService=f,this.errorMessageType="empty",this.canLoadMore=!1,this.displayErrorMessage=!1,this.isLoading=!1,this.flexColumns=[0,1,5],this.offSet=0,this.pageSize=30,this.gssPacketList=[],this._destroy$=new M.x,this.gssSelectedPacketDetailsSimList=[],this.isloadMoreDataChildEvent=!1,this.isToCollapse=!1,this.loadMoreDataChildEvent=new t.vpe,this.hcAc=this.userUtilsService.isHcAc(),this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration()}ngOnInit(){this.filterService.filterEvent$.pipe((0,b.R)(this._destroy$.asObservable())).subscribe(i=>{i?this.filterGSSList(i):this.gssPacketList&&this.gssPacketList.length>0&&(this.spinnerService.enable(),this.mapTableData(),this.spinnerService.disable())}),this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.fetchGssList()}fetchGssList(){this.spinnerService.enable();const i=this.createRequestModel();0===this.gssPacketList.length&&this.sidebarService.setSidebarConfiguration(this.filterService.getGssOfferFilters(this.sidebarConfig)),this.gssService.getGssList(i).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:o=>{(!o.gssPacketList||0===o.gssPacketList.length)&&this.handleFetchError("empty"),this.canLoadMore=!o.lastPage,this.gssPacketList=[...this.gssPacketList,...o.gssPacketList],this.gssPacketList.forEach(a=>{a.simNumber>=this.pageSize&&(this.isToCollapse=!0)}),this.mapTableData(),this.spinnerService.disable()},error:()=>{0===this.gssPacketList.length?this.handleFetchError("error"):this.canLoadMore=!1}})}getSelectedGssDetails(i){this.isloadMoreDataChildEvent||(this.offSet=0,i.gssAlreadyLoadDetails=!1,i.gssPacketDetails&&(i.gssPacketDetails.simList=[])),i.gssLoadingDetails=!0,i.detailsReady=!1;const o=new no.A(i.packetId,i.packetPhx,this.offSet,this.pageSize);this.gssService.getGssPacketDetail(o).subscribe({next:a=>{i.gssDetailsError=!1,i.gssLoadingDetails=!1,i.detailsReady=!0,i.gssPacketDetails=a,i.gssAlreadyLoadDetails=!0,this.isloadMoreDataChildEvent=!1},error:()=>{i.gssLoadingDetails=!1,i.gssDetailsError=!0}})}createRequestModel(){return new oo.h(this.offSet,this.pageSize)}mapTableData(){this.gssPacketList.length>0&&(this.displayErrorMessage=!1),this.tableData=this.tableHelper.createDropdownTableData(this.hcAc?u.y.GSSPRODUCTS_HC:u.y.GSSPRODUCTS,this.gssPacketList)}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.isLoading=!1,this.spinnerService.disable()}fetchGssListNewPage(){this.offSet+=this.pageSize,this.fetchGssList()}filterGSSList(i){this.spinnerService.enable();let o={};"refNumber"===i.researchType&&i.researchTypeValue&&i.researchTypeValue.length>0&&(o=this.filterService.remapFiltersKeys({researchTypeValue:"refNumber"},i)),"packetId"===i.researchType&&i.researchTypeValue&&i.researchTypeValue.length>0&&(o=this.filterService.remapFiltersKeys({researchTypeValue:"packetId"},i)),"packetDescription"===i.researchType&&i.researchTypeValue&&i.researchTypeValue.length>0&&(o=this.filterService.remapFiltersKeys({researchTypeValue:"packetDescription"},i)),delete o.researchType;const a=this.filterService.filterGSSList(this.gssPacketList,o);a.length>0?this.tableData=this.tableHelper.createDropdownTableData(u.y.GSSPRODUCTS,a):this.handleFetchError("empty_filter_line"),this.spinnerService.disable()}onLoadMoreDataChildEvent(i,o){this.isloadMoreDataChildEvent=!0,this.offSet=this.offSet+=this.pageSize,this.getSelectedGssDetails(o)}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(o){return new(o||s)(t.Y36(vt.$),t.Y36(d.V),t.Y36(m.S),t.Y36(C.r),t.Y36(O.P),t.Y36(L.i))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-gss-products"]],outputs:{loadMoreDataChildEvent:"loadMoreDataChildEvent"},decls:10,vars:2,consts:[[1,"main-pages-content","gss-products"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[4,"ngIf","ngIfElse"],["error_banner",""],[3,"data","template","flexColumns","lazy","collapseRow","requestMoreDataEmitter","openItemEmitter",4,"ngIf"],["gssDetail
1sTemplate",""],[3,"data","template","flexColumns","lazy","collapseRow","requestMoreDataEmitter","openItemEmitter"],[3,"details","initGssDetails","isloadMoreDataChildEvent","requestOtherSimEmit",4,"ngIf"],[3,"details","initGssDetails","isloadMoreDataChildEvent","requestOtherSimEmit"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"GIGA SMART SHARE"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"In questa sezione puoi vedere i dettagli relativi ai tuoi pacchetti attivi, come il traffico eroso e il credito residuo di ogni SIM oppure il numero telefonico del referente del pacchetto."),t.qZA()(),t.YNc(7,Ao,4,1,"ng-container",4),t.YNc(8,wo,1,1,"ng-template",null,5,t.W1O),t.qZA()),2&o){const r=t.MAs(9);t.xp6(7),t.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",r)}},dependencies:[l.O5,E.a,y.H,q.n,Po],styles:[".gss-products[_ngcontent-%COMP%] app-dropdown-table[_ngcontent-%COMP%] .cell-table[_ngcontent-%COMP%]:not(:first-child){border-top-right-radius:0}"]}),n})();var So=g(9646);let Io=(()=>{const s=class{constructor(i,o){this.userUtilService=i,this.router=o}canActivate(i,o){const a=i.data.guardRedirect;return this.userUtilService.isEndUser()?(0,So.of)(!0):this.router.navigateByUrl(a)}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.LFG(C.r),t.LFG(v.F0))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),n})();class ko{constructor(s,e,i){this.filter=s,this.offset=e,this.pageSize=i}}class xt{constructor(s,e,i,o){this.fullText=s,this.model=e,this.idDevice=i,this.lineAssociated=o}}class Eo{constructor(s,e){this.rowIdDevice=s,this.integrationIdDevice=e}}var Ct=g(5986),qo=g(3947),et=g(7084);function Uo(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-filter-tag",28),t.NdJ("filterRemoved",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.onFilterRemoved(o))})("resetFilter",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.resetFilters())}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("sidebarConfig",e.sidebarConfig)("filterEvent",e.newFilterEvent)}}function Fo(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",29)(1,"div",30),t._uU(2),t.qZA(),t.TgZ(3,"div",31)(4,"button",32),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goBack(o))}),t.qZA(),t.TgZ(5,"span"),t._uU(6),t.qZA(),t.TgZ(7,"button",33),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goForward(o))}),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(2),t.lnq("",e.fromNum,"-",e.toNum>e.totalRecords?e.totalRecords:e.toNum," di ",e.totalRecords,""),t.xp6(2),t.Q6J("disabled",1===e.fromNum),t.xp6(2),t.AsE("Pag ",e.currentPage," di ",e.totalPages,""),t.xp6(1),t.Q6J("disabled",e.currentPage===e.totalPages)}}function No(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"span",36)(1,"span",37),t._uU(2,"Esporta selezionati"),t.qZA(),t.TgZ(3,"span",38)(4,"a",39),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.printSelected())}),t._UZ(5,"i",40),t.qZA(),t.TgZ(6,"a",39),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.downloadSelected())}),t._UZ(7,"i",41),t.qZA()()()}}function Lo(n,s){if(1&n&&(t.TgZ(0,"div",34),t.YNc(1,No,8,0,"span",35),t.qZA()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.selectedRows.length)}}function Ro(n,s){if(1&n&&(t.ynx(0),t.TgZ(1,"div",59)(2,"div",60)(3,"div",61),t._uU(4,"DETTAGLI DISPOSITIVO"),t.qZA(),t.TgZ(5,"div",55),t._uU(6,"Marca"),t.qZA(),t.TgZ(7,"div",56),t._uU(8),t.qZA()(),t.TgZ(9,"div",5)(10,"div",61),t._uU(11,"SIM"),t.qZA(),t.TgZ(12,"div",55),t._uU(13,"PUK"),t.qZA(),t.TgZ(14,"div",56),t._uU(15),t.qZA()()(),t.TgZ(16,"div",59)(17,"div",5)(18,"div",61),t._uU(19,"RATEIZZAZIONE"),t.qZA(),t.TgZ(20,"div",55),t._uU(21,"Data attivazione"),t.qZA(),t.TgZ(22,"div",56),t._uU(23),t.ALo(24,"date"),t.qZA(),t.TgZ(25,"div",55),t._uU(26,"Data fine vincolo"),t.qZA(),t.TgZ(27,"div",56),t._uU(28),t.ALo(29,"date"),t.qZA()(),t.TgZ(30,"div",5),t._UZ(31,"div",61),t.TgZ(32,"div",55),t._uU(33,"Numero rate residue"),t.qZA(),t.TgZ(34,"div",56),t._uU(35),t.qZA(),t.TgZ(36,"div",55),t._uU(37,"Importo rata (\u20ac)"),t.qZA(),t.TgZ(38,"div",56),t._uU(39),t.qZA()(),t.TgZ(40,"div",5),t._UZ(41,"div",61),t.TgZ(42,"div",55),t._uU(43,"Importo maxi rata (\u20ac)"),t.qZA(),t.TgZ(44,"div",56),t._uU(45),t.qZA(),t.TgZ(46,"div",55),t._uU(47,"Importo et (\u20ac)"),t.qZA(),t.TgZ(48,"div",56),t._uU(49),t.qZA()()(),t.TgZ(50,"div",59)(51,"div",5)(52,"div",61),t._uU(53,"MANUTENZIONE"),t.qZA(),t.TgZ(54,"div",55),t._uU(55,"Tipologia"),t.qZA(),t.TgZ(56,"div",56),t._uU(57),t.qZA()(),t.TgZ(58,"div",5),t._UZ(59,"div",61),t.TgZ(60,"div",55),t._uU(61,"N. interventi potenziali"),t.qZA(),t.TgZ(62,"div",56),t._uU(63,"-"),t.qZA()(),t.TgZ(64,"div",5),t._UZ(65,"div",61),t.TgZ(66,"div",55),t._uU(67,"N. interventi effettuati"),t.qZA(),t.TgZ(68,"div",56),t._uU(69),t.qZA()()(),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(8),t.Oqu(e.detail.brand),t.xp6(7),t.Oqu(e.detail.puk),t.xp6(8),t.hij(" ",t.xi3(24,11,e.detail.dateActivationCPE,"dd/MM/yyyy")," "),t.xp6(5),t.hij(" ",t.xi3(29,14,e.detail.dateEndConstraint,"dd/MM/yyyy")," "),t.xp6(7),t.AsE(" ",e.detail.numUnpaid," DI ",e.detail.repaymentTotal," "),t.xp6(4),t.hij(" ",e.detail.repaymentAmount," "),t.xp6(6),t.hij(" ",e.detail.repaymentMaxiAmount," "),t.xp6(4),t.Oqu(e.detail.et),t.xp6(8),t.Oqu(e.detail.ate),t.xp6(12),t.Oqu(e.detail.numAte&&e.detail.numAte.length>0?e.detail.numAte:"-")}}function Jo(n,s){if(1&n&&(t.ynx(0),t._UZ(1,"app-error-message",62),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("type",e.detailError)}}function Qo(n,s){1&n&&(t.ynx(0),t._UZ(1,"app-data-loader"),t.BQk())}function Yo(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",45)(2,"mat-accordion",46)(3,"mat-expansion-panel",47),t.NdJ("opened",function(){const a=t.CHM(e).$implicit,r=t.oxw(2);return a.detailVisible=!0,t.KtG(r.fetchDetailsDevices(a))})("closed",function(){const a=t.CHM(e).$implicit;return t.KtG(a.detailVisible=!1)}),t.TgZ(4,"mat-expansion-panel-header")(5,"div",48)(6,"div",49)(7,"mat-checkbox",50),t.NdJ("change",function(o){const r=t.CHM(e).$implicit,c=t.oxw(2);return t.KtG(c.onRowSelect(o,r))})("ngModelChange",function(o){const r=t.CHM(e).$implicit;return t.KtG(r.selected=o)})("ngModelChange",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.updateAllSelected())})("click",function(o){return o.stopPropagation()}),t.qZA()(),t.TgZ(8,"div",51)(9,"div",52),t._uU(10,"Modello"),t.qZA(),t.TgZ(11,"div",53),t._uU(12),t.qZA(),t.TgZ(13,"div",54)(14,"div",55),t._uU(15,"Nome Account"),t.qZA(),t.TgZ(16,"div",56),t._uU(17),t.qZA()()(),t.TgZ(18,"div",57)(19,"div",54)(20,"div",55),t._uU(21,"ID Dispositivo"),t.qZA(),t.TgZ(22,"div",56),t._uU(23),t.qZA()(),t.TgZ(24,"div",54)(25,"div",55),t._uU(26,"Rateizzazione"),t.qZA(),t.TgZ(27,"div",56),t._uU(28),t.qZA()()(),t.TgZ(29,"div",58)(30,"div",54)(31,"div",55),t._uU(32,"Linea associata"),t.qZA(),t.TgZ(33,"div",56),t._uU(34),t.qZA()(),t.TgZ(35,"div",54)(36,"div",55),t._uU(37,"Manutenzione"),t.qZA(),t.TgZ(38,"div",56),t._uU(39),t.qZA()()()()(),t.YNc(40,Ro,70,17,"ng-container",19),t.YNc(41,Jo,2,1,"ng-container",19),t.YNc(42,Qo,2,0,"ng-container",19),t.qZA()()(),t.BQk()}if(2&n){const e=s.$implicit;t.xp6(7),t.Q6J("ngModel",e.selected),t.xp6(5),t.Oqu(e.model),t.xp6(5),t.Oqu(e.accountName),t.xp6(6),t.Oqu(e.idDevice),t.xp6(5),t.Oqu(e.rescheduling),t.xp6(6),t.Oqu(e.lineAssociated&&e.lineAssociated.length>0?e.lineAssociated:"-"),t.xp6(5),t.Oqu(e.ate),t.xp6(1),t.Q6J("ngIf",!e.detailError&&!e.detailLoa
1ding&&e.detail),t.xp6(1),t.Q6J("ngIf",e.detailError&&!e.detailLoading),t.xp6(1),t.Q6J("ngIf",e.detailLoading)}}function Bo(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",42)(2,"mat-checkbox",43),t.NdJ("change",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.selectAll(o.checked))}),t.qZA(),t.TgZ(3,"span"),t._uU(4,"Seleziona tutti"),t.qZA()(),t.YNc(5,Yo,43,10,"ng-container",44),t.BQk()}if(2&n){const e=t.oxw();t.xp6(2),t.Q6J("checked",e.allSelected),t.xp6(3),t.Q6J("ngForOf",e.devicesListToView)}}function Go(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"span",36)(1,"span",37),t._uU(2,"Esporta selezionati"),t.qZA(),t.TgZ(3,"span",38)(4,"a",39),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.printSelected())}),t._UZ(5,"i",40),t.qZA(),t.TgZ(6,"a",39),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.downloadSelected())}),t._UZ(7,"i",41),t.qZA()()()}}function zo(n,s){if(1&n&&(t.TgZ(0,"div",34),t.YNc(1,Go,8,0,"span",35),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.selectedRows.length)}}function Ho(n,s){if(1&n&&t._UZ(0,"app-error-message",62),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}const $o=function(n){return{disable:n}};let Ko=(()=>{const s=class{constructor(i,o,a,r,c,f,h){this.spinnerService=i,this.offerService=o,this.sidebarService=a,this.filterService=r,this.supportService=c,this.fileSaverService=f,this.dialogService=h,this.panelOpenState=!1,this.devicesList=[],this.errorMessageType="empty",this.displayErrorMessage=!1,this.lastPage=!1,this.pageSize=30,this.offSet=0,this._destroy$=new M.x,this.selectedRows=[],this.path=window.location.pathname,this.formattedPath=this.formatPath(this.path),this.printHeaders=["Modello","ID dispositivo","Linea associata"],this.newFilterEvent={},this.tableItems=[],this.showFilterTag=!0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.totalItems=0,this.totalRecords=0,this.totalPages=0,this.remainingRecords=0,this._unsubscribeSignal$=new M.x,this.allSelected=!1,this.selectItemsEmitter=new t.vpe}ngOnInit(){this.filterService.filterEvent$.subscribe(i=>{this.offSet=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.newFilterEvent=i,this.devicesList=[],i?(this.filter=new xt(i.fullText?i.fullText:void 0,i.model?i.model:void 0,i.idDevice?i.idDevice:void 0),this.fetchDevicesList(this.filter)):(this.filter=void 0,this.fetchDevicesList())}),this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration()}topPageFilterData(i){this.filter=new xt(void 0,void 0,void 0,i||void 0),this.fetchDevicesList(this.filter)}formatPath(i){const o=i.split("/");return o.length<4?i:`${this.capitalize(o[2])} ${this.capitalize(o[3])}`}capitalize(i){return i.charAt(0).toUpperCase()+i.slice(1).toLowerCase()}onRowSelect(i,o){console.log("Selected Elemend: ",i,o),this.emitSelectedRows()}selectAll(i){this.allSelected=i,null!=this.devicesListToView&&(this.devicesListToView.forEach(o=>o.selected=i),this.emitSelectedRows())}updateAllSelected(){this.allSelected=null!=this.devicesListToView&&this.devicesListToView.every(i=>i.selected)}someSelected(){return null!=this.devicesListToView&&this.devicesListToView.filter(i=>i.selected).length>0&&!this.allSelected}emitSelectedRows(){this.selectedRows=this.devicesListToView.filter(i=>i.selected),this.selectItemsEmitter.emit(this.selectedRows)}printTable(){let i=`\n <div style="font-family: Arial, sans-serif; margin: 20px;">\n <h2>Dettaglio ${this.formattedPath}</h2>\n <table border="1" cellpadding="10" cellspacing="0" style="width: 100%; border-collapse: collapse;">\n <thead>\n <tr style="background-color: #f2f2f2;">`;this.printHeaders.forEach(r=>{i+=`<th>${r}</th>`}),i+="\n </tr>\n </thead>\n <tbody>",this.selectedRows.forEach(r=>{i+="<tr>";for(const c in r)if(r.hasOwnProperty(c)&&("model"===c||"idDevice"===c||"lineAssociated"===c)){const f=r[c];i+=f?`<td>${JSON.stringify(f)}</td>`:"<td> - </td>"}i+="</tr>"}),i+="</div>",i+=`\n </tbody>\n </table>\n <p style="text-align: right; margin-top: 20px;">
1Pagina aggiornata al: ${(new Date).toLocaleString()}</p>\n </div>`;const o=document.createElement("iframe");document.body.appendChild(o),o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.border="none";const a=o.contentWindow?.document;a&&(a.open(),a.write("<html><body>"),a.write(i),a.write("</body></html>"),a.close(),o.contentWindow?.focus(),o.contentWindow?.print(),setTimeout(()=>{document.body.removeChild(o)},1e3))}printSelected(){this.printTable()}downloadSelected(){this.spinnerService.enable();const i={[`${this.formattedPath}`]:[]};let o={};this.selectedRows.length>0&&this.selectedRows.forEach(a=>{i[`${this.formattedPath}`].push(a),o=this.remapKeys(i)}),this.supportService.downloadReportTableCsv(o).pipe((0,b.R)(this._unsubscribeSignal$.asObservable())).subscribe(a=>{this.spinnerService.disable(),this.fileSaverService.save(a,"export.xls")},a=>{204===a.status&&this.dialogService.open({title:"",message:"Non sono presenti dati per questo periodo.",confirmText:"Conferma",confirmOnly:!0,logo:!1}),this.spinnerService.disable()})}remapKeys(i){let o={};for(let a in i)i.hasOwnProperty(a)&&(o[a]=i[a].map(r=>({rowIDCPE:r.rowIdCPE,IntegrationIDCPE:r.integrationIDCPE,Modello:r.model,"ID Dispositivo":r.idDevice,"ID CDFCPE":r.idCdfCpe,"Linea associata":r.lineAssociated,"Nome prodotto":r.productName,"Nome account":r.accountName,Rateizzazione:r.rescheduling,Manutenzione:r.ate})));return o}fetchDevicesList(i){this.spinnerService.enable();const o=new ko(i,this.offSet,this.pageSize);this.offerService.getDeviceList(o).pipe((0,b.R)(this._destroy$)).subscribe(a=>{a.devices&&0!==a.devices.length?(this.lastPage=a.lastPage,this.totalRecords=a.technicalInfo?a.technicalInfo.totalRecords:0,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.devicesList=a.devices,this.devicesListToView=this.devicesList,this.totalRecords&&this.totalRecords>0&&(this.remainingRecords=this.totalRecords-this.devicesListToView.length),this.devicesList.length>0&&0===this.tableItems.length?this.setupFilters():this.devicesList.length>0&&this.tableItems.length>0&&(this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.setupFilters())):(this.handleFetchError("empty_filter_generic"),this.devicesListToView=[]),this.spinnerService.disable()},a=>{this.handleFetchError("error"),this.lastPage=!0,this.spinnerService.disable()})}fetchDetailsDevices(i){if(!i.detailAlreadyLoad){i.detailLoading=!0;const o=new Eo(i.rowIdCPE,i.integrationIDCPE);this.offerService.getDeviceDetails(o).pipe((0,b.R)(this._destroy$)).subscribe(a=>{a.deviceDetail?i.detail=a.deviceDetail:i.detailError="empty",i.detailAlreadyLoad=!0,i.detailLoading=!1},a=>{i.detailAlreadyLoad=!0,i.detailError="error",i.detailLoading=!1})}}setupFilters(){this.tableItems=[{desc:"Modello",label:"model",value:"model"},{desc:"Id dispositivo",label:"idDevice",value:"idDevice"}],this.devicesList.length>0&&(this.sidebarService.setSidebarConfiguration(this.filterService.getTableSelectFilters(this.sidebarConfig,this.tableItems,this.devicesList,[])),this.sidebarService.setSidebarConfiguration(this.filterService.getFullTextOfferFilters(this.devicesList,this.sidebarConfig)))}onFilterRemoved(i){if(i&&this.filter){if(this.filter.fullText===i)this.filter=void 0,this.fetchDevicesList(this.filter);else{const a=Object.keys(this.filter).find(r=>this.filter&&this.filter[r]===i.value);if(a){const r={...this.filter};r[a]=void 0,this.filter=r,this.fetchDevicesList(this.filter)}}this.sidebarConfig.filtersConfig.filter(a=>{(a.value===i.valueOf||a.value===i.value)&&(a.value=void 0)});const o=this.updateSidebarFiltersConfig();this.sidebarService.setSidebarConfiguration(o)}}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.spinnerService.disable()}returnUp(i){window.scroll({top:0,left:0,behavior:"smooth"})}goForward(i){this.offSet=this.offSet+this.pageSize,this.fromNum=this.offSet+1,this.toNum=this.offSet+this.pageSize,this.currentPage=Math.ceil(this.offSet/this.pageSize)+1,this.fetchDevicesList(this.filter)}goBack(i){this.offSet=this.offSet-this.pageSize,this.fromNum=this.offSet+1,this.toNum=this.offSet+this.pageSize,this.currentPage=Math.ceil(this.offSet/this.pageSize)+1,this.fetchDevicesList(this.filter)}resetFilters(){this.offSet=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.filter=void 0;const i=this.updateSidebarFiltersConfig();this.sidebarService.setSidebarConfiguration(i),this.fetchDevicesList()}updateSidebarFiltersConfig(){const i={model:"model",idDevice:"idDevice",fullText:"fullText"};let o={...this.sidebarConfig,filtersConfig:[...this.sidebarConfig.filtersConfig]};return o.filtersConfig.forEach(a=>
1{i[a.key]&&(a.value=this.filter?.[i[a.key]])}),o}ngOnDestroy(){this.spinnerService.disable(),this.sidebarConfig.visible=!1,this.sidebarService.setSidebarConfiguration(this.sidebarConfig),this.sidebarService.resetSidebarConfiguration(),this.filterService.resetFilterEvent(),this._destroy$.next(),this._destroy$.complete()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(d.V),t.Y36(_.K),t.Y36(O.P),t.Y36(L.i),t.Y36(Ct.g),t.Y36(qo.m9),t.Y36(D.D))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-devices"]],outputs:{selectItemsEmitter:"selectItemsEmitter"},decls:42,vars:10,consts:[[1,"main-pages-content","devices-page"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[1,"row","infoDevices"],[1,"box"],["src","assets/images/ico-devices.svg","alt","devices",1,"icon-device"],[1,"labelWrapperDevice"],[1,"numberDevice"],[1,"buttonHeaderBar",3,"ngClass"],[1,"toggle"],["type","radio","name","sizeBy","value","weight","id","tutti","checked","checked",3,"click"],["for","tutti"],["type","radio","name","sizeBy","value","dimensions","id","consim",3,"click"],["for","consim"],["type","radio","name","sizeBy","value","dimensions","id","nosim",3,"click"],["for","nosim"],[1,"topTable-container"],[1,"filtersBox"],[4,"ngIf"],["class","paginationBox lazy-button",4,"ngIf"],["class","tbl-footer",4,"ngIf"],[1,"mainDetail"],[4,"ngIf","ngIfElse"],[1,"footer-table"],["id","go-up-dt",1,"go-up-label"],["mat-icon-button","","aria-label","up",1,"go-up-button",3,"click"],["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"],[1,"tbl-footer"],["class","tbl-tools down",4,"ngIf"],[1,"tbl-tools","down"],[1,"tools-label-mobile"],[1,"tools-group-icon"],[1,"tools-icon",3,"click"],["title","Stampa",1,"ico-Icon","ico-Print","ico-Hover"],["title","Scarica",1,"ico-Icon","ico-Download","ico-Hover"],[1,"cell-table-devices","small"],[1,"lightness-devices",3,"checked","change"],[4,"ngFor","ngForOf"],[1,"deviceCard-wrapper"],[1,"accordion-margin"],["ifContainsClass","labelLink","setClass","ifLabel",3,"opened","closed"],[1,"item-deviceCard"],[1,"cell-table","small"],[1,"example-margin-devices",3,"ngModel","change","ngModelChange","click"],[1,"section1"],[1,"labelCard"],[1,"labelModel"],[1,"row"],[1,"boxRequest"],[1,"boxAnswer"],[1,"section2"],[1,"section3"],[1,"row","separator"],[1,"box","big"],[1,"titleLab"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"SMARTPHONE E MODEM"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"In questa pagina sono visibili i dettagli dei dispositivi e della manutenzione ad essi associata."),t.qZA()(),t.TgZ(7,"div",4)(8,"div",5),t._UZ(9,"img",6),t.qZA(),t.TgZ(10,"div",5)(11,"div",7),t._uU(12,"Totale dispositivi"),t.qZA(),t.TgZ(13,"div",8),t._uU(14),t.qZA()()(),t.TgZ(15,"div",9)(16,"div",10)(17,"input",11),t.NdJ("click",function(){return a.topPageFilterData()}),t.qZA(),t.TgZ(18,"label",12),t._uU(19,"TUTTI"),t.qZA(),t.TgZ(20,"input",13),t.NdJ("click",function(){return a.topPageFilterData("PRESENT")}),t.qZA(),t.TgZ(21,"label",14),t._uU(22,"CON LINEA ASSOCIATA"),t.qZA(),t.TgZ(23,"input",15),t.NdJ("click",function(){return a.topPageFilterData("NOT PRESENT")}),t.qZA(),t.TgZ(24,"label",16),t._uU(25,"SENZA LINEA ASSOCIATA"),t.qZA()()(),t.TgZ(26,"div",17)(27,"div",18),t.YNc(28,Uo,2,2,"ng-container",19),t.qZA(),t.YNc(29,Fo,8,7,"div",20),t.qZA(),t.YNc(30,Lo,2,1,"div",21),t.TgZ(31,"div",22),t.YNc(32,Bo,6,2,"ng-container",23),t.qZA(),t.YNc(33,zo,2,1,"div",21),t.TgZ(34,"div",24)(35,"span",25),t._uU(36,"Torna"),t.qZA(),t.TgZ(37,"button",26),t.NdJ("click",function(c){return a.returnUp(c)}),t.TgZ(38,"mat-icon"),t._uU(39,"arrow_circle_up"),t.qZA()()(),t.YNc(40,Ho,1,1,"ng-template",null,27,t.W1O),t.qZA()),2&o){const r=t.MAs(41);t.xp6(14),t.Oqu(a.devicesListToView&&0!==a.devicesListToView.length?a.devicesListToView.length+a.remainingRecords:0),t.xp6(1),t.Q6J("ngClass",t.VKq(8,$o,0==a.devicesList.length&&"error"==a.errorMessageType&&a.displayErrorMessage)),t.xp6(13),t.Q6J("ngIf",a.showFilterTag&&a.filter),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage),t.xp6(1),t.Q6J("ngIf",a.selectedRows.length),t.xp6(2),t.Q6J("ngIf",a.devicesList&&a.devicesList.length>0&&!a.displayErrorMessage)("ngIfElse",r),t.xp6(1),t.Q6J("ngIf",a.selectedRows.length)}},dependencies:[l.mk,l.sg,l.O5,et.pp,et.ib,et.yz,y.H,H,G.G,q.n,j.u,W.oG,ot.Hw,p.JJ,p.On,l.uU],encapsulation:2}),n})();var Q=g(3777);function Vo(n,s){if(1&n&&(t.TgZ(0,"div",1)(1,"div",2)(2,"div",3),t._uU(3),t.qZA(),t.TgZ(4,"div",4),t._uU(5,"Quantit\xe0: "),t.TgZ(6,"span")(7,"b"),t._uU(8),t.qZA()()()(),t.TgZ(9,"div",5),t._uU(10),t.qZA(),t.TgZ(11,"div",2)(12,"div",6)(13,"div",7),t._uU(14,"Data di attivazione"),t.qZA(),t.TgZ(15,"div",8),t._uU(16),t.ALo(17,"date"),t.qZA()(),t.TgZ(18,"div",6)(19,"div",7),t._uU(20,"Rinnovo"),t.qZA(),t.TgZ(21,"div",8),t._uU(22),t.qZA()(),t.TgZ(23,"div",6)(24,"div",7),t._uU(25,"Periodo di sottoscrizione"),t.qZA(),t.TgZ(26,"div",8),t._uU(27),t.qZA()()()()),2&n){const e=t.oxw();
1t.xp6(3),t.Oqu(e.detailService.name),t.xp6(5),t.Oqu(e.detailService.amount),t.xp6(2),t.hij(" ",e.detailService.description," "),t.xp6(6),t.Oqu(t.xi3(17,6,e.detailService.activationDate,"dd/MM/yyyy")),t.xp6(6),t.Oqu(e.detailService.renewal),t.xp6(5),t.Oqu(e.detailService.duration)}}let jo=(()=>{const s=class{constructor(){this.displayErrorMessage=!1}};let n=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-digital-products-details"]],inputs:{detailService:"detailService"},decls:2,vars:1,consts:[["class","digital-service-details",4,"ngIf"],[1,"digital-service-details"],[1,"row"],[1,"title"],[1,"quantity"],[1,"row","description"],[1,"row-item"],[1,"label"],[1,"value"]],template:function(o,a){1&o&&(t.ynx(0),t.YNc(1,Vo,28,9,"div",0),t.BQk()),2&o&&(t.xp6(1),t.Q6J("ngIf",a.detailService))},dependencies:[l.O5,l.uU],styles:[".digital-service-details[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#fff;padding:2.6rem;border-radius:1.6rem;border:.1rem solid #D9D9DA}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:row;justify-content:space-between;padding-bottom:1.5rem}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{color:#fc4a14;font-size:2rem;font-weight:700}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .quantity[_ngcontent-%COMP%]{font-size:2rem;font-weight:300}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .quantity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#fc4a14}.digital-service-details[_ngcontent-%COMP%] .row.description[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:400;color:#000}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row-item[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between;width:28%}@media screen and (max-width: 767px){.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row-item[_ngcontent-%COMP%]{width:100%;padding-bottom:1.3rem}}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:300;line-height:1;text-align:left}.digital-service-details[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .row-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:1.4rem;font-weight:700;line-height:1;text-transform:uppercase;text-align:right}"]}),n})();function Wo(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",8),t.NdJ("openItemEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.fetchDigitalServiceDetails(o))}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(3),i=t.oxw();t.Q6J("data",i.tableData)("template",e)("lazy",!1)}}function Xo(n,s){if(1&n&&t._UZ(0,"app-digital-products-details",11),2&n){const e=t.oxw().data;t.Q6J("detailService",e.detailService)}}function ts(n,s){if(1&n&&(t.TgZ(0,"div",9),t.YNc(1,Xo,1,1,"app-digital-products-details",10),t.qZA()),2&n){const e=s.data;t.xp6(1),t.Q6J("ngIf",e.detailService)}}function es(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Wo,1,3,"app-dropdown-table",6),t.YNc(2,ts,2,1,"ng-template",null,7,t.W1O),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.tableData)}}function is(n,s){if(1&n&&t._UZ(0,"app-error-message",12),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}function ns(n,s){if(1&n&&t._UZ(0,"app-error-message",12),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}let os=(()=>{const s=class{constructor(i,o,a){this.spinnerService=i,this.tableHelper=o,this.offerService=a,this.errorMessageType="empty",this.displayErrorMessage=!1,this.digitalServiceList=[]}ngOnInit(){this.fetchDigitalServiceList()}fetchDigitalServiceList(){this.spinnerService.enable(),this.offerService.getDigitalServiceList().subscribe(i=>{this.spinnerService.disable(),this.digitalServiceList=i.digitalServiceList,this.digitalServiceList&&this.digitalServiceList.length>0?this.mapTableData(this.digitalServiceList):this.displayErrorMessage=!0},i=>{this.spinnerService.disable(),this.displayErrorMessage=!0})}mapTableData(i){this.tableData=this.tableHelper.createDropdownTableData(u.y.DIGITALPRODUCTS,i),this.displayErrorMessage=!1}fetchDigitalServiceDetails(i){this.spinnerService.enable(),this.offerService.getDigitalServiceDetail({integrationIdTE:i.integrationIdTE,rootIntegrationIdPRD:i.rootIntegrationIdPRD,productLicense:i.productLicense}).subscribe(a=>{this.spinnerService.disable(),i.digitalServiceDetails=a,i.detailService=i.digitalServiceDetails.detailService},a=>{this.spinnerService.disable(),this.displayErrorMessage=!0})}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(d.V),t.Y36(m.S),t.Y36(_.K))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-digital-products"]],decls:12,vars:2,consts:[[1,"main-pages-content","devices-page"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],[4,"ngIf","ngIfElse"],["error_banner",""],[3,"data","template","lazy","openItemEmitter",4,"ngIf"],["digitalProductDetails",""],[3,"data","template","lazy","openItemEmitter"],[1,"digital-products-details"],[3,"detailService",4,"ngIf"],[3,"detailService"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"SERVIZI DIGITALI"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"Controlla i dettagli relativi ai tuoi servizi digitali"),t.qZA()(),t.YNc(7,es,4,1,"ng-container",4),t.YNc(8,is,1,1,"ng-template",null,5,t.W1O),t.YNc(10,ns,1,1,"ng-template",null,5,t.W1O),t.qZA()),2&o){const r=t.MAs(9);t.xp6(7),t.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",r)}},dependencies:[l.O5,E.a,y.H,q.n,jo]}),n})();class ss{constructor(s,e,i,o){this.codeContractPack=s,this.integrationId=e,this.offset=i,this.page=o}}class Tt{constructor(s,e,i,o,a,r){this.offset=s,this.pageSize=e,this.clientCode=i,this.filter=o,this.order=a,this.orderBy=r}}class as{constructor(s,e,i){this.eidoPackContractCode=s,this.eidoPackName=e,this.eidoPackStatus=i}}var F=g(262),N=g(2843),rs=g(529);let ct=(()=>{const s=class{constructor(i,o){this.environment=i,this.http=o,this.offerApiUrl="/offer",this.eidoApiUrl="/eido"}getEidoPacketList(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/list",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}getEidoPacketDetail(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/detail",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}getEidoDetailTraffic(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/detail/traffic",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}updateSingleSimThreshold(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+"/singleSimThreshold",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}updateThresholdAndAlert(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/updateThresholdAndAlert",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}getPackageDetail(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/getPackageDetail",{rootIntegrationId:i}).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}updatePackage(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/updatePackage",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}getCatalogList(i){return this.http.post(this.environment.baseUrlApi+this.offerApiUrl+this.eidoApiUrl+"/getCatalogList",i).pipe((0,S.U)(o=>o.data),(0,F.K)(o=>(0,N._)(o)))}};let n=s;
1return s.\u0275fac=function(o){return new(o||s)(t.LFG(gt.p),t.LFG(rs.eN))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),n})();class cs{constructor(s,e){this.msisdn=s,this.codePHX=e}}class ls{constructor(s,e){this.phxName=s,this.serviceType=e}}var bt=g(5861),ds=g(9937),Ot=g(284);const gs=["thresholdInput"];function _s(n,s){1&n&&t._UZ(0,"app-spinner")}function ps(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"form",6)(2,"div",7)(3,"div",8),t._uU(4," Modifica Soglia "),t.qZA()(),t.TgZ(5,"div",9)(6,"p",10),t._uU(7," Inserisci nel campo sottostante il valore della soglia "),t.qZA(),t.TgZ(8,"mat-form-field")(9,"mat-label"),t._uU(10,"Soglia bimestrale (in GB)"),t.qZA(),t._UZ(11,"input",11),t.qZA(),t.TgZ(12,"div",9)(13,"p",10),t._uU(14," Se la numerazione \xe8 condivisa con altri pacchetti EIDO il traffico disponibile dipende anche dal consumo degli altri pacchetti "),t.qZA()()(),t.TgZ(15,"div",12)(16,"button",13),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.cancel())}),t._uU(17," ANNULLA "),t.qZA(),t.TgZ(18,"button",14),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.submit())}),t._uU(19," CONFERMA "),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("formGroup",e.updateSingleSimThresholdForm),t.xp6(17),t.Q6J("disabled",e.isButtonDisabled(e.updateSingleSimThresholdForm))("autofocus",!1)}}function hs(n,s){if(1&n&&(t.TgZ(0,"span",24),t._uU(1,"%"),t.qZA()),2&n){const e=t.oxw(2);t.Udp("left",e.percentagePosition,"px")}}function fs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.clearInput("thresholdGB"))}),t._UZ(1,"img",26),t.qZA()}2&n&&t.uIk("aria-label","Clear")}function ms(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.clearInput("email1"))}),t._UZ(1,"img",26),t.qZA()}2&n&&t.uIk("aria-label","Clear")}function us(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.clearInput("email2"))}),t._UZ(1,"img",26),t.qZA()}2&n&&t.uIk("aria-label","Clear")}function vs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.clearInput("email3"))}),t._UZ(1,"img",26),t.qZA()}2&n&&t.uIk("aria-label","Clear")}function xs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"form",6)(2,"div",7)(3,"div",8),t._uU(4," Soglia Alert Pacchetto "),t.qZA()(),t.TgZ(5,"div",15)(6,"p",10),t._uU(7," Riceverai sempre una notifica quando avrai raggiunto il 100% del consumo "),t.qZA()(),t.TgZ(8,"div",9)(9,"p",10),t._uU(10," Inserisci una percentuale per ricevere un\u2019ulteriore notifica prima di esaurire il pacchetto "),t.qZA(),t.TgZ(11,"mat-form-field",16)(12,"mat-label"),t._uU(13),t.qZA(),t.TgZ(14,"input",17,18),t.NdJ("input",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.updatePercentagePosition())}),t.qZA(),t.YNc(16,hs,2,2,"span",19),t.YNc(17,fs,2,1,"button",20),t.qZA()(),t.TgZ(18,"div",9)(19,"p",10),t._uU(20," Inserisci fino a 3 indirizzi email ai quali saranno inviati gli avvisi per il raggiungimento delle soglie "),t.qZA(),t.TgZ(21,"mat-form-field")(22,"mat-label"),t._uU(23),t.qZA(),t._UZ(24,"input",21),t.YNc(25,ms,2,1,"button",20),t.qZA(),t.TgZ(26,"mat-form-field")(27,"mat-label"),t._uU(28),t.qZA(),t._UZ(29,"input",22),t.YNc(30,us,2,1,"button",20),t.qZA(),t.TgZ(31,"mat-form-field")(32,"mat-label"),t._uU(33),t.qZA(),t._UZ(34,"input",23),t.YNc(35,vs,2,1,"button",20),t.qZA()(),t.TgZ(36,"div",12)(37,"button",13),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.cancel())}),t._uU(38," ANNULLA "),t.qZA(),t.TgZ(39,"button",14),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.submit())}),t._uU(40," CONFERMA "),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("formGroup",e.updateThresholdAndAlertForm),t.xp6(12),t.Oqu(e.thresholdAndAlertData.threshold?e.thresholdAndAlertData.threshold:""),t.xp6(3),t.Q6J("ngIf",e.thresholdGB.value&&e.thresholdGB.value.length>0),t.xp6(1),t.Q6J("ngIf",e.thresholdGB.value.length>0),t.xp6(6),t.Oqu(e.thresholdAndAlertData.email1?e.thresholdAndAlertData.email1:""),t.xp6(2),t.Q6J("ngIf",e.email1.value.length>0),t.xp6(3),t.Oqu(e.thresholdAndAlertData.email2?e.thresholdAndAlertData.email2:""),t.xp6(2),t.Q6J("ngIf",e.email2.value.length>0),t.xp6(3),t.Oqu(e.thresholdAndAlertData.email3?e.thresholdAndAlertData.email3:""),t.xp6(2),t.Q6J("ngIf",e.email3.value.length>0),t.xp6(4),t.Q6J("disabled",e.isButtonDisabled(e.updateThresholdAndAlertForm))("autofocus",!1)}}function Cs(n,s){if(1&n&&(t.TgZ(0,"mat-option",39),t._uU(1),t.qZA()),2&n){const e=s.index;t.Q6J("value",e+1),t.xp6(1),t.hij(" ",e+1," ")}}const Ts=function(){return[]};function bs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",36)(1,"mat-label"),t._uU(2),t.qZA(),t.TgZ(3,"mat-select",37),t.NdJ("selectionChange",function(){t.CHM(e);const o=t.oxw(4);return t.KtG(o.setTotalGb())}),t.YNc(4,Cs,2,2,"mat-option",38),t.qZA()()}if(2&n){const e=t.oxw(),i=e.$implicit,o=e.index;t.xp6(2),t.Oqu(i.name),t.xp6(1),t.Q6J("formControlName","packet"+o),t.xp6(1),t.Q6J("ngForOf",t.DdM(3,Ts).constructor(10))}}function Os(n,s){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,bs,5,4,"mat-form-field",35),t.qZA()),2&n){const e=s.$implicit;t.xp6(1),t.Q6J("ngIf","SIM MONITORING EIDO"!==e.name&&"SIM Monitoring EIDO Roaming Europa e USA"!==e.name&&"SIM Monitoring EIDO Roaming Resto del Mondo"!==e.name)}}function Ps(n,s){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Os,2,1,"div",34),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.items)}}function Ms(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",5)(1,"form",6)(2,"div",7)(3,"div",8),t._uU(4," Aggiungi pacchetti "),t.qZA()(),t.TgZ(5,"div",9)(6,"p",10),t._uU(7," Seleziona i pacchetti e la loro quantit\xe0 "),t.qZA(),t.YNc(8,Ps,2,1,"div",1),t.TgZ(9,"div",9)(10,"p",10),t._uU(11," Stai aggiungendo "),t.TgZ(12,"span",27),t._uU(13),t.ALo(14,"json"),t.qZA(),t._uU(15," alla tua offerta "),t.qZA()()(),t.TgZ(16,"div",28)(17,"div",29),t._UZ(18,"mat-checkbox",30),t.TgZ(19,"h4")(20,"a",31),t._uU(21," PRENDO VISIONE "),t.qZA(),t._uU(22," e accetto le Condizioni di Contratto "),t.qZA()(),t.TgZ(23,"div",29),t._UZ(24,"mat-checkbox",30),t.TgZ(25,"h4")(26,"a",32),t._uU(27," PRENDO VISIONE "),t.qZA(),t._uU(28," e accetto le Condizioni Economiche di Contratto "),t.qZA()(),t.TgZ(29,"div",29),t._UZ(30,"mat-checkbox",30),t.TgZ(31,"h4")(32,"a",33),t._uU(33," PRENDO VISIONE "),t.qZA(),t._uU(34," del Trattamento dei Dati Personali "),t.qZA()()(),t.TgZ(35,"div",12)(36,"button",13),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.cancel())}),t._uU(37," ANNULLA "),t.qZA(),t.TgZ(38,"button",14),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.submit())}),t._uU(39," CONFERMA "),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("formGroup",e.addPacketForm),t.xp6(7),t.Q6J("ngIf",e.items&&e.items.length>0),t.xp6(5),t.AsE("",t.lcZ(14,9,e.totalGb)," ","PHX60652"===e.itemPaymentType?"GB":"MB",""),t.xp6(5),t.Q6J("formControl",e.contractAgreementTicket),t.xp6(6),t.Q6J("formControl",e.economicAgreementTicket),t.xp6(6),t.Q6J("formControl",e.personalDataAgreementTicket),t.xp6(8),t.Q6J("disabled",e.isButtonDisabled(e.addPacketForm))("autofocus",!1)}}let ys=(()=>{const s=class{constructor(i,o,a,r,c,f,h,x){this.data=i,this._mdDialogRef=o,this.formBuilder=a,this.FDV=r,this.userUtilsService=c,this.dialogService=f,this.spinnerService=h,this.eidoService=x,this.loading=!1,this.items=[],this.totalGb=0,this.percentagePosition=0,this.updateSingleSimThresholdForm=new p.cw({simThresholdGB:new p.NI("",p.kI.compose([p.kI.required,this.thresholdValidator()]))}),this.updateThresholdAndAlertForm=new p.cw({thresholdGB:new p.NI("",p.kI.compose([p.kI.required,this.thresholdValidator()])),email1:new p.NI("",p.kI.compose([p.kI.email,p.kI.required])),email2:new p.NI("",p.kI.email),email3:new p.NI("",p.kI.email)}),this.addPacketForm=new p.cw({packet0:new p.NI("0"),packet1:new p.NI("0"),packet2:new p.NI("0"),packet3:new p.NI("0"),contractAgreement:new p.NI(null,p.kI.required),economicAgreement:new p.NI(null,p.kI.required),personalDataAgreement:new p.NI(null,p.kI.required)}),this.errorForm="",this.formConfirmed=new t.vpe,this.pIva=this.userUtilsService.getPiva(),this.isPacket=i.isPacket,this.isSimThreshold=i.isSimThreshold,this.isThresholdAlert=i.isThresholdAlert,this.items=i.items,this.codePhx=i.codePhx,this.integrationId=i.integrationId,this.msisdn=i.msisdn,this.contractCode=i.contractCode,this.thresholdAndAlertData=i.thresholdAndAlertData?i.thresholdAndAlertData:{}}get simThresholdGB(){return this.updateSingleSimThresholdForm.get("simThresholdGB")}get thresholdGB(){return this.updateThresholdAndAlertForm.get("thresholdGB")}get email1(){return this.updateThresholdAndAlertForm.get("email1")}get email2(){return this.updateThresholdAndAlertForm.get("email2")}get email3(){return this.updateThresholdAndAlertForm.get("email3")}get packet10Tb(){return this.addPacketForm.get("packet0")}get packet10Gb(){return this.addPacketForm.get("packet1")}get packet100Gb(){return this.addPacketForm.get("packet2")}get packet1000Gb(){return this.addPacketForm.get("packet3")}get packet10Mb(){return this.addPacketForm.get("packet0")}get packet100Mb(){return this.addPacketForm.get("packet1")}get packet1000Mb(){return this.addPacketForm.get("packet2")}get contractAgreementTicket(){return this.addPacketForm.get("contractAgreement")}get economicAgreementTicket(){return this.addPacketForm.get("economicAgreement")}get personalDataAgreementTicket(){return this.addPacketForm.get("personalDataAgreement")}
1get invalidConfirm(){return this.addPacketForm.invalid}ngOnInit(){this.formDialog=this.formBuilder.group({}),this.items&&this.items.length>0&&this.items.forEach((i,o)=>{this.formDialog.addControl(`packet${o}`,this.formBuilder.control(0)),this.itemPaymentType=i.paymentType}),this.createForm(),this.addPacketForm.setValidators(this.agreementsValidator()),this.isThresholdAlert&&this.thresholdAndAlertData&&(this.updateThresholdAndAlertForm.patchValue({thresholdGB:this.thresholdAndAlertData.threshold||"",email1:this.thresholdAndAlertData.email1||"",email2:this.thresholdAndAlertData.email2||"",email3:this.thresholdAndAlertData.email3||""}),setTimeout(()=>this.updatePercentagePosition(),0))}thresholdValidator(){return i=>/^([1-9][0-9]?|99)$/.test(i.value)?null:{invalidPercentage:!0}}agreementsValidator(){return i=>{const o=i.get("contractAgreement")?.value,a=i.get("economicAgreement")?.value,r=i.get("personalDataAgreement")?.value;return o&&a&&r?null:{agreementsInvalid:!0}}}createForm(){this.formDialog=this.formBuilder.group(this.FDV.createGroup(this.input))}updatePercentagePosition(){if(this.thresholdInput&&this.thresholdGB.value){const i=this.thresholdInput.nativeElement,o=this.thresholdGB.value,r=document.createElement("canvas").getContext("2d");if(r){const c=window.getComputedStyle(i);r.font=`${c.fontSize} ${c.fontFamily}`;const f=r.measureText(o).width;this.percentagePosition=f+1}}}setTotalGb(){if("PHX60652"===this.items[0].paymentType){this.nationalRoaming=!0;let i=0,o=0,a=0,r=0;i=1e4*parseInt(this.packet10Tb.value||"0",10),o=10*parseInt(this.packet10Gb.value||"0",10),a=100*parseInt(this.packet100Gb.value||"0",10),r=1e3*parseInt(this.packet1000Gb.value||"0",10),this.totalGb=i+o+a+r}else{this.nationalRoaming=!1;let i=0,o=0,a=0;i=10*parseInt(this.packet10Mb.value||"0",10),o=100*parseInt(this.packet100Mb.value||"0",10),a=1e3*parseInt(this.packet1000Mb.value||"0",10),this.totalGb=i+o+a}}submit(){this.isThresholdAlert?this.manageUpdateThresholdAndAlert():this.isPacket?this.manageAddPacket():this.isSimThreshold&&this.manageUpdateSingleSimThreshold(),this.confirm()}generateTransactionId(i){return(0,bt.Z)(function*(){const a=Date.now().toString()+i,c=(new TextEncoder).encode(a),f=yield crypto.subtle.digest("SHA-256",c);return Array.from(new Uint8Array(f)).map(P=>P.toString(16).padStart(2,"0")).join("").substring(0,32)})()}manageUpdateSingleSimThreshold(){var i=this;return(0,bt.Z)(function*(){i.spinnerService.enable();const o=yield i.generateTransactionId(i.msisdn),a={msisdn:i.msisdn,integrationId:i.integrationId,threshold:i.simThresholdGB.value.trim().replace(/[^a-zA-Z0-9]/g,"")+"%",transactionId:o};i.eidoService.updateSingleSimThreshold(a).subscribe({next:r=>{i.dialogService.open({title:"Richiesta inviata",message:"La richiesta \xe8 stata presa in carico dai nostri servizi e sar\xe0 evasa entro 24 ore.<br><br>Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto ti chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova.",confirmText:"Chiudi",confirmOnly:!0,logo:!0,logoType:"confirm"}),i.spinnerService.disable()},error:()=>{throw i.spinnerService.disable(),new Error("Error")}})})()}manageAddPacket(){this.spinnerService.enable();let i=[];i=this.nationalRoaming?[{codePhx:this.items[0].partNumber,name:this.items[0].name,quantity:this.packet10Tb.value},{codePhx:this.items[1].partNumber,name:this.items[1].name,quantity:this.packet10Gb.value},{codePhx:this.items[2].partNumber,name:this.items[2].name,quantity:this.packet100Gb.value},{codePhx:this.items[3].partNumber,name:this.items[3].name,quantity:this.packet1000Gb.value}].filter(a=>parseInt(a.quantity,10)>0):[{codePhx:this.items[0].partNumber,name:this.items[0].name,quantity:this.packet10Mb.value},{codePhx:this.items[1].partNumber,name:this.items[1].name,quantity:this.packet100Mb.value},{codePhx:this.items[2].partNumber,name:this.items[2].name,quantity:this.packet1000Mb.value}].filter(a=>parseInt(a.quantity,10)>0),this.eidoService.updatePackage({productList:{product:[{integrationId:this.integrationId,codeContractPack:this.contractCode,services:i}]}}).subscribe({next:a=>{this.dialogService.open({title:"Richiesta inviata",message:"La richiesta \xe8 stata presa in carico dai nostri servizi e sar\xe0 evasa entro 24 ore.<br><br>Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto t
1i chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova.",confirmText:"Chiudi",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.spinnerService.disable()},error:()=>{this.dialogService.open({message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}),this.spinnerService.disable()}})}manageUpdateThresholdAndAlert(){this.spinnerService.enable();const i={productList:{product:[{integrationIdSim:this.integrationId,services:[{codePhx:this.codePhx,attributes:[{name:"Email1",value:this.email1.value},{name:"Email2",value:this.email2.value},{name:"Email3",value:this.email3.value},{name:"Soglia %",value:this.thresholdGB.value.trim().replace(/[^a-zA-Z0-9]/g,"")+"%"}]}]}]}};this.eidoService.updateThresholdAndAlert(i).subscribe({next:o=>{this.dialogService.open({title:"Richiesta inviata",message:"La richiesta \xe8 stata presa in carico dai nostri servizi e sar\xe0 evasa entro 24 ore.<br><br>Non sar\xe0 possibile effettuare altre operazioni su questa linea fino all'evasione della modifica che si sta inviando, pertanto ti chiediamo di attendere il completamento di questa pratica prima di inserirne una nuova.",confirmText:"Chiudi",confirmOnly:!0,logo:!0,logoType:"confirm"}),this.spinnerService.disable()},error:()=>{this.dialogService.open({message:"Gentile Cliente ci scusiamo per il disagio, ti invitiamo a riprovare pi\xf9 tardi.",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}),this.spinnerService.disable()}})}isButtonDisabled(i){return i.invalid||!i.dirty}getError(){return this.FDV.isValidField(this.formDialog.controls.inputForm,this.input)}cancel(){this.close(!1)}close(i){this._mdDialogRef.close(i)}inputChange(i){this.inputValue=i,this.errorForm=this.getError()}clearInput(i){i?this[i].setValue(""):this.inputValue=""}confirm(){this.formConfirmed.emit(this.updateSingleSimThresholdForm.value),this.formConfirmed.emit(this.updateThresholdAndAlertForm.value),this.formConfirmed.emit(this.addPacketForm.value),this.close(!this.input||this.inputValue)}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(A.WI),t.Y36(A.so),t.Y36(p.qu),t.Y36(ds.n),t.Y36(C.r),t.Y36(D.D),t.Y36(d.V),t.Y36(ct))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-eido-dialog"]],viewQuery:function(o,a){if(1&o&&t.Gf(gs,5),2&o){let r;t.iGM(r=t.CRH())&&(a.thresholdInput=r.first)}},outputs:{formConfirmed:"formConfirmed"},decls:7,vars:4,consts:[[1,"eido-dialog"],[4,"ngIf"],["mat-dialog-content",""],[1,"eido-dialog-container"],["class","form-container",4,"ngIf"],[1,"form-container"],["autocomplete","off",3,"formGroup"],[1,"header"],["mat-dialog-title","",1,"eido-dialog-title"],[1,"row","information-section","input-container"],[1,"information-label"],["matInput","","id","simThresholdGB","type","text","placeholder","Inserisci soglia","formControlName","simThresholdGB","autocomplete","off","required",""],["mat-dialog-actions","",1,"center-section"],[1,"cta","empty",2,"margin-right","10px",3,"click"],[1,"cta",3,"disabled","autofocus","click"],[1,"row","information-section"],[1,"threshold-field-wrapper"],["matInput","","id","thresholdGB","type","text","placeholder","Inserisci soglia","formControlName","thresholdGB","autocomplete","off","required","",3,"input"],["thresholdInput",""],["class","percentage-inline",3,"left",4,"ngIf"],["mat-icon-button","","matSuffix","","class","clearButton","type","button",3,"click",4,"ngIf"],["matInput","","id","email1","type","text","placeholder","Inserisci email","formControlName","email1","autocomplete","off","required",""],["matInput","","id","email2","type","text","placeholder","Inserisci email","formControlName","email2","autocomplete","off"],["matInput","","id","email3","type","text","placeholder","Inserisci email","formControlName","email3","autocomplete","off"],[1,"percentage-inline"],["mat-icon-button","","matSuffix","","type","button",1,"clearButton",3,"click"],["src","assets/images/clear.svg","alt","Clear"],[2,"font-weight","700","font-size","large"],[1,"row","checkboxArea"],[1,"box"],[3,"formControl"],["target","_blank","href","https://selfcare.windtrebusiness.it/res/pdf/23112020_CGC_Unica_PDF.pdf"],["target","_blank","href","https://selfcare.windtrebusiness.it/res/pdf/Modulo%20opzioni_novembre2023.pdf"],["target","_blank","href","https://selfcare.windtrebusiness.it/res/pdf/Informativa_Privacy.pdf"],[4,"ngFor","ngForOf"],["appearance","legacy",4,"ngIf"],["appearance","legacy"],[3,"formControlName","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(o,a){1&o&&(t.TgZ(0,"div",0),t.YNc(1,_s,1,0,"app-spinner",1),t.TgZ(2,"div",2)(3,"div",3),t.YNc(4,ps,20,3,"div",4),t.YNc(5,xs,41,12,"div",4),t.YNc(6,Ms,40,11,"div",4),t.qZA()()()),2&o&&(t.xp6(1),t.Q6J("ngIf",a.loading),t.xp6(3),t.Q6J("ngIf",!a.showError&&a.isSimThreshold),t.xp6(1),t.Q6J("ngIf",!a.showError&&a.isThresholdAlert),t.xp6(1),t.Q6J("ngIf",!a.showError&&a.isPacket))},dependencies:[l.sg,l.O5,nt.O,V.KE,V.hX,V.R9,Ot.Nt,W.oG,st.gD,ft.ey,A.uh,A.xY,A.H8,p._Y,p.Fj,p.JJ,p.JL,p.Q7,p.oH,p.sg,p.u,l.Ts],styles:[".eido-dialog[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{position:relative}.eido-dialog[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .eido-close[_ngcontent-%COMP%]{position:absolute;top:0;right:0;height:3rem;width:3rem;display:flex;align-items:center;justify-content:center}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-title[_ngcontent-%COMP%]{font-family:inherit;font-size:1.8rem;font-weight:800;text-align:center;color:#000}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%]{margin:0 auto 1rem;flex-direction:column}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .img-dialog[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin:3.5rem 0}
1.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .img-dialog[_ngcontent-%COMP%] .img-info[_ngcontent-%COMP%]{max-width:9.6rem}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%]{display:block;margin-bottom:4rem}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .input-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .form-container[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{top:1.5rem;font-size:1.6rem}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .eido-dialog-error-message[_ngcontent-%COMP%]{font: 14px/17px Montserrat;letter-spacing:0;color:#ed1c24;opacity:1}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .error-logo[_ngcontent-%COMP%]{max-width:4rem}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%]{justify-content:center;align-items:center}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .information-section[_ngcontent-%COMP%]{margin-top:2rem}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .information-section[_ngcontent-%COMP%] .information-label[_ngcontent-%COMP%]{text-align:center;font-size:1.6rem;font-weight:400}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .information-section[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:#000}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%]{flex-direction:column;row-gap:1rem;margin-top:2rem}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%] .mat-checkbox[_ngcontent-%COMP%]{vertical-align:sub}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%] .label-checkbox[_ngcontent-%COMP%]{cursor:pointer;font-size:1.4rem;font-weight:300}.eido-dialog[_ngcontent-%COMP%] .eido-dialog-container[_ngcontent-%COMP%] .acceptation-section[_ngcontent-%COMP%] .label-checkbox[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{color:#6207ab}mat-form-field[_ngcontent-%COMP%]{width:25rem}@media screen and (max-width: 767px){mat-form-field[_ngcontent-%COMP%]{width:100%}}.checkboxArea[_ngcontent-%COMP%]{flex-direction:column;margin-top:4rem}.checkboxArea[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;margin-top:2rem}.checkboxArea[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin-top:0;font-size:smaller}.checkboxArea[_ngcontent-%COMP%] .box[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#6207ab;text-decoration:none}.threshold-field-wrapper[_ngcontent-%COMP%]{position:relative}.percentage-inline[_ngcontent-%COMP%]{position:absolute;top:47%;font-size:1.6rem;color:#000;pointer-events:none;z-index:1;font-weight:400}.percentage-span[_ngcontent-%COMP%]{align-self:flex-end;position:relative;border:0;font-size:2rem;top:.5rem}.clearButton[_ngcontent-%COMP%]{align-self:flex-end;width:3rem;position:relative;top:.5rem;border:0;cursor:pointer;background:transparent}.clearButton[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2.4rem;height:2.4rem}"]}),n})(),Zs=(()=>{const s=class{constructor(i){this.dialog=i}open(i){this.dialogRef=this.dialog.open(ys,{data:{isPacket:i.isPacket,isSimThreshold:i.isSimThreshold,isThresholdAlert:i.isThresholdAlert,items:i.items,codePhx:i.codePhx,integrationId:i.integrationId,contractCode:i.contractCode,msisdn:i.msisdn,thresholdAndAlertData:i.thresholdAndAlertData},height:"auto",width:"560px",disableClose:!0,autoFocus:!1})}confirmed(){return this.dialogRef.afterClosed().pipe((0,dt.q)(1),(0,S.U)(i=>i))}};let n=s;
1return s.\u0275fac=function(o){return new(o||s)(t.LFG(A.uw))},s.\u0275prov=t.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),n})();function As(n,s){if(1&n&&(t.TgZ(0,"div",12)(1,"div",11)(2,"div",19),t._UZ(3,"app-line-chart",20),t.qZA()()()),2&n){const e=t.oxw(2);t.xp6(3),t.Q6J("startDate",e.packet.eidoPacketDetails.detail.threshold.startDate)("endDate",e.packet.eidoPacketDetails.detail.threshold.endDate)("thresholdPeriod",e.packet.eidoPacketDetails.detail.threshold.labelValidPeriod)("setInitialAmount",e.packet.eidoPacketDetails.detail.threshold.totalPackage)("percentageRemaining",e.packet.eidoPacketDetails.detail.threshold.availablePercentage)("remainingLabel",e.packet.eidoPacketDetails.detail.threshold.availableAmount)("trafficType",e.packet.eidoPacketDetails.detail.threshold.type)("baseColor","#58595B")}}function ws(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",24)(1,"div",25),t._uU(2,"NUMERI ASSOCIATI"),t.qZA(),t.TgZ(3,"div",26)(4,"div",27),t._uU(5),t.qZA(),t.TgZ(6,"div",28)(7,"button",29),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.goBack(o))}),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA(),t.TgZ(10,"button",30),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.goForward(o))}),t.qZA()()()()}if(2&n){const e=t.oxw(3);t.xp6(5),t.lnq("",e.fromNum,"-",e.toNum>e.totalRecords?e.totalRecords:e.toNum," di ",e.totalRecords,""),t.xp6(2),t.Q6J("disabled",1===e.fromNum),t.xp6(2),t.AsE("Pag ",e.currentPage," di ",e.totalPages,""),t.xp6(1),t.Q6J("disabled",e.currentPage===e.totalPages)}}function Ds(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",31),t.NdJ("requestMoreDataEmitter",function(){t.CHM(e);const o=t.oxw(3);return t.KtG(o.requestOtherLines())}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(4),i=t.oxw(2);t.Q6J("data",i.simsDataTable)("selectable",!1)("advancedColumnTemplate",e)}}function Ss(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",32)(2,"button",33),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().data,a=t.oxw(3);return t.KtG(a.fetchEidoDetailTraffic(o))}),t._uU(3,"VISUALIZZA"),t.qZA()(),t._UZ(4,"div",34),t.TgZ(5,"div",35)(6,"a",14),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(4);return t.KtG(o.setSimThreshold(o.packet))}),t._UZ(7,"img",15),t.qZA()(),t.BQk()}}function Is(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"div",36)(2,"span"),t._uU(3),t.qZA()(),t.TgZ(4,"div",37)(5,"span"),t._uU(6),t.qZA()(),t.TgZ(7,"div",35)(8,"a",14),t.NdJ("click",function(){t.CHM(e);const o=t.oxw(4);return t.KtG(o.setSimThreshold(o.packet))}),t._UZ(9,"img",15),t.qZA()(),t.BQk()}if(2&n){const e=t.oxw().data;t.xp6(3),t.Oqu(e.traffic?e.traffic:"-"),t.xp6(3),t.Oqu(e.threshold&&"-"!==e.threshold?e.threshold:"-")}}function ks(n,s){if(1&n&&(t.YNc(0,Ss,8,0,"ng-container",2),t.YNc(1,Is,10,2,"ng-container",2)),2&n){const e=s.data;t.Q6J("ngIf",!e.traffic&&!e.threshold),t.xp6(1),t.Q6J("ngIf",e.traffic&&e.threshold)}}function Es(n,s){if(1&n&&(t.ynx(0),t.YNc(1,ws,11,7,"div",21),t.YNc(2,Ds,1,3,"app-dropdown-table",22),t.YNc(3,ks,2,2,"ng-template",null,23,t.W1O),t.BQk()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",!e.displayErrorMessage),t.xp6(1),t.Q6J("ngIf",e.simsDataTable)}}function qs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",3)(1,"div",4)(2,"div",5)(3,"div",6)(4,"div",7)(5,"div",8)(6,"div",9)(7,"span",10),t._uU(8),t.qZA()(),t.TgZ(9,"div",11)(10,"p"),t._uU(11),t.qZA()()()(),t.TgZ(12,"div",7)(13,"div",12)(14,"div",13)(15,"b"),t._uU(16,"Soglie e alert"),t.qZA(),t.TgZ(17,"a",14),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.modifyAlertPacketThreshold(o.packet))}),t._UZ(18,"img",15),t.qZA()()()()(),t.TgZ(19,"div",12)(20,"div",16)(21,"b"),t._uU(22,"Totale Pacchetto: "),t.TgZ(23,"span"),t._uU(24),t.qZA()(),t.TgZ(25,"button",17),t.NdJ("click",function(){t.CHM(e);const o=t.oxw();return t.KtG(o.addPacket())}),t._uU(26,"AGGIUNGI PACCHETTI"),t.qZA()()(),t.YNc(27,As,4,8,"div",18),t.YNc(28,Es,5,2,"ng-container",2),t.qZA()()()}if(2&n){const e=t.oxw();
1t.xp6(8),t.Oqu(e.packet.eidoPacketDetails.detail.name),t.xp6(3),t.Oqu(e.packet.eidoPacketDetails.detail.description),t.xp6(13),t.Oqu(e.packet.eidoPacketDetails.detail.threshold.totalPackage),t.xp6(3),t.Q6J("ngIf",e.packet.eidoPacketDetails.detail.threshold),t.xp6(1),t.Q6J("ngIf",e.simsDataTable&&e.packetDetails.detail.associatedObject&&e.packetDetails.detail.associatedObject.length>0)}}function Us(n,s){1&n&&t._UZ(0,"app-error-message",38),2&n&&t.Q6J("type","error")}function Fs(n,s){1&n&&t._UZ(0,"app-data-loader")}let Ns=(()=>{const s=class{constructor(i,o,a,r,c,f,h){this.tableHelper=i,this.spinnerService=o,this.userUtilsService=a,this.eidoService=r,this.eidoDialogService=c,this.confirmDialogService=f,this.dialogService=h,this.offset=30,this.page=1,this._destroy$=new M.x,this.canLoadMore=!0,this.fromNum=1,this.toNum=this.offset,this.currentPage=1,this.totalRecords=0,this.totalPages=0,this.displayErrorMessage=!1,this.errorMessageType="empty",this.isLoading=!1,this.updatePagination=new t.vpe,this.requestOtherLineEmit=new t.vpe,this.pIva=this.userUtilsService.getPiva()}set isloadMoreDataChildEvent(i){this.isloadMoreEvent=i}set details(i){this.packet=i}set initEidoDetails(i){i&&(this.packetDetails=this.packet.eidoPacketDetails,this.packetDetails.detail&&this.packetDetails.detail.threshold&&(this.thresholds=this.packetDetails.detail.threshold),this.packetDetails.detail.associatedObject&&this.packetDetails.detail.associatedObject.length>0&&(this.simsDataTable=this.tableHelper.createDropdownTableData(u.y.EIDOSIMS,this.packetDetails.detail.associatedObject),this.simsDataTable.dataTableRow.forEach(o=>{o.rows.pop(),o.rows.map(a=>{"TRAFFICO GB"===a.title&&(a.advancedColumn=!0)})})),this.packet.eidoLoadingDetails=!1,this.totalRecords=this.packetDetails.detail.technicalInfo?.totalRecords??0,this.totalPages=Math.ceil(this.totalRecords/this.offset))}ngOnInit(){}fetchEidoDetailTraffic(i){this.spinnerService.enable();const o=new cs(i.msisdn,this.packetDetails.detail.code);this.eidoService.getEidoDetailTraffic(o).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:a=>{a.detail.traffic&&(i.traffic=a.detail.traffic),a.detail.threshold&&(i.threshold="-"===a.detail.threshold?"-":a.detail.threshold),a.detail.unitMeasure&&(i.unitMeasure=a.detail.unitMeasure),this.spinnerService.disable()},error:()=>{this.dialogService.open({title:"Attenzione!",message:"Gentile cliente, non \xe8 stato possibile recuperare il credito residuo.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"}),this.spinnerService.disable()}})}modifyAlertPacketThreshold(i){this.spinnerService.enable(),this.eidoService.getPackageDetail(i.integrationId).subscribe({next:a=>{this.spinnerService.disable(),a&&null!==a&&this.eidoDialogService.open({isPacket:!1,isSimThreshold:!1,isThresholdAlert:!0,codePhx:this.packetDetails.detail.code,integrationId:this.packet.integrationId,thresholdAndAlertData:a})},error:()=>{this.spinnerService.disable(),this.eidoDialogService.open({isPacket:!1,isSimThreshold:!1,isThresholdAlert:!0,codePhx:this.packetDetails.detail.code,integrationId:this.packet.integrationId})}})}setSimThreshold(i){this.eidoDialogService.open({isPacket:!1,isSimThreshold:!0,isThresholdAlert:!1,integrationId:this.packet.integrationId,msisdn:this.packetDetails.detail.associatedObject[0].msisdn})}addPacket(){this.spinnerService.enable();const i=new ls(this.packet.code,this.packet.serviceType);this.eidoService.getCatalogList(i).pipe((0,b.R)(this._destroy$.asObservable())).subscribe({next:o=>{this.spinnerService.disable(),this.eidoDialogService.open({isPacket:!0,isSimThreshold:!1,isThresholdAlert:!1,items:o.items,integrationId:this.packet.integrationId,contractCode:this.packet.contractCode})},error:()=>{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"}),this.spinnerService.disable()}})}requestOtherLines(){this.packet.eidoLoadingDetails=!0,this.requestOtherLineEmit.emit()}sendPaginationData(){this.updatePagination.emit({offset:this.offset,page:this.page})}goForward(i){this.page=this.page+1,this.fromNum=this.offset+1,this.toNum=this.offset+this.offset,this.currentPage=this.page,this.sendPaginationData(),this.get
1SelectedEidoDetails(this.packet)}goBack(i){this.page=this.page-1,this.fromNum=this.offset+1,this.toNum=this.offset-this.offset,this.currentPage=this.page,this.sendPaginationData(),this.getSelectedEidoDetails(this.packet)}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.isLoading=!1,this.spinnerService.disable()}ngOnDestroy(){this._destroy$.next(),this._destroy$.unsubscribe()}};let n=s;return s.\u0275fac=function(o){return new(o||s)(t.Y36(m.S),t.Y36(d.V),t.Y36(C.r),t.Y36(ct),t.Y36(Zs),t.Y36(D.D),t.Y36(D.D))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-eido-registry-content"]],inputs:{getSelectedEidoDetails:"getSelectedEidoDetails",isloadMoreDataChildEvent:"isloadMoreDataChildEvent",details:"details",initEidoDetails:"initEidoDetails"},outputs:{updatePagination:"updatePagination",requestOtherLineEmit:"requestOtherLineEmit"},decls:3,vars:3,consts:[["class","eido-registry-content","ifContainsClass","labelLink","setClass","ifLabel",4,"ngIf"],[3,"type",4,"ngIf"],[4,"ngIf"],["ifContainsClass","labelLink","setClass","ifLabel",1,"eido-registry-content"],[1,"mat-tab-group"],[1,"mat-tab-body"],[1,"headerBodyTab"],[1,"headerBodyTabItem"],[1,"title-description-container"],[1,"titleTab"],[1,"titleTabItem"],[1,"box"],[1,"row"],[1,"box","align-right","threshold-container"],[3,"click"],["src","assets/images/ico-edit.svg","alt","edit",1,"edit-ico"],[1,"box","packet-section-container"],[1,"cta",3,"click"],["class","row",4,"ngIf"],[1,"threshold-gss-margin"],[3,"startDate","endDate","thresholdPeriod","setInitialAmount","percentageRemaining","remainingLabel","trafficType","baseColor"],["class","topTable-container",4,"ngIf"],["class","secondTitle-item",3,"data","selectable","advancedColumnTemplate","requestMoreDataEmitter",4,"ngIf"],["eidoCreditCustomColumn",""],[1,"topTable-container"],[1,"titleBox"],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],[1,"secondTitle-item",3,"data","selectable","advancedColumnTemplate","requestMoreDataEmitter"],["data-title","Traffico GB",1,"cell-table"],[1,"cta","eido-custom-table-cta",3,"click"],["data-title","Soglia GB",1,"cell-table"],[1,"sim-threshold-icon"],["data-title","Traffico GB",1,"cell-table",2,"justify-content","space-between"],["data-title","Soglia GB",1,"cell-table",2,"justify-content","space-between"],[3,"type"]],template:function(o,a){1&o&&(t.YNc(0,qs,29,5,"div",0),t.YNc(1,Us,1,1,"app-error-message",1),t.YNc(2,Fs,1,0,"app-data-loader",2)),2&o&&(t.Q6J("ngIf",!a.packet.eidoDetailsError&&!a.packet.eidoLoadingDetails),t.xp6(1),t.Q6J("ngIf",a.packet.eidoDetailsError&&!a.packet.eidoLoadingDetails),t.xp6(1),t.Q6J("ngIf",a.packet.eidoLoadingDetails))},dependencies:[l.O5,E.a,y.H,X.D,H,G.G],styles:[".eido-registry-content[_ngcontent-%COMP%]{position:relative}.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%]{border-top-left-radius:1.6rem;background-size:130%;background-position-x:center;background-position-y:bottom}@media screen and (max-width: 767px){.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%]{background-size:cover}}.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%] .headerBodyTab[_ngcontent-%COMP%]{padding-bottom:2.2rem}.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%] .headerBodyTab[_ngcontent-%COMP%] .buttonWrapper[_ngcontent-%COMP%]{margin:0}.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(2){margin-bottom:3.5rem}@media screen and (max-width: 767px){.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]:nth-child(2){margin-bottom:3rem}}.eido-registry-content[_ngcontent-%COMP%] .mat-tab-group[_ngcontent-%COMP%] .mat-tab-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:not(:last-child):after{display:none!important}.title-description-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.title-description-container[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{margin-top:1rem}.threshold-container[_ngcontent-%COMP%]{display:flex;align-items:center}.threshold-container[_ngcontent-%COMP%] b[_ngcontent-%COMP%]{margin-right:1rem}.packet-section-container[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}@media screen and (max-width: 767px){.packet-section-container[_ngcontent-%COMP%]{margin-bottom:3rem;flex-direction:column}.packet-section-container[_ngcontent-%COMP%] .cta[_ngcontent-%COMP%]{margin-top:1rem}}.packet-section-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:700;font-size:2.5rem}.titleBox[_ngcontent-%COMP%]{font-size:2.5rem;font-weight:700;padding-bottom:1rem;margin-top:3rem}.eido-custom-table-cta[_ngcontent-%COMP%]{margin-left:22rem;position:absolute}@media screen and (max-width: 767px){.eido-custom-table-cta[_ngcontent-%COMP%]{margin-left:0;position:relative}}.edit-ico[_ngcontent-%COMP%]{max-width:2.5rem;max-height:2.5rem;cursor:pointer}.sim-threshold-icon[_ngcontent-%COMP%]{position:relative;top:1.5rem;right:1.5rem}@media screen and (max-width: 767px){.sim-threshold-icon[_ngcontent-%COMP%]{position:relative;top:1.2rem;left:22.5rem}}"]}),n})();function Ls(n,s){if(1&n){const e=t.EpF();t.ynx(0),t.TgZ(1,"app-filter-tag",15),t.NdJ("filterRemoved",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.onFilterRemoved(o))})("resetFilter",function(){t.CHM(e);const o=t.oxw(2);return t.KtG(o.resetFilters())}),t.qZA(),t.BQk()}if(2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("sidebarConfig",e.sidebarConfig)("filterEvent",e.newFilterEvent)}}function Rs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"div",7)(1,"div",8),t.YNc(2,Ls,2,2,"ng-container",9),t.qZA(),t.TgZ(3,"div",10)(4,"div",11),t._uU(5),t.qZA(),t.TgZ(6,"div",12)(7,"button",13),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goBack(o))}),t.qZA(),t.TgZ(8,"span"),t._uU(9),t.qZA(),t.TgZ(10,"button",14),t.NdJ("click",function(o){t.CHM(e);const a=t.oxw();return t.KtG(a.goForward(o))}),t.qZA()()()()}if(2&n){const e=t.oxw();
1t.xp6(2),t.Q6J("ngIf",e.showFilterTag&&e.filter),t.xp6(3),t.lnq("",e.fromNum,"-",e.toNum>e.totalRecords?e.totalRecords:e.toNum," di ",e.totalRecords,""),t.xp6(2),t.Q6J("disabled",1===e.fromNum),t.xp6(2),t.AsE("Pag ",e.currentPage," di ",e.totalPages,""),t.xp6(1),t.Q6J("disabled",e.currentPage===e.totalPages)}}function Js(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-dropdown-table",18),t.NdJ("changeOrderEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.changeOrder(o))})("openItemEmitter",function(o){t.CHM(e);const a=t.oxw(2);return t.KtG(a.getSelectedEidoDetails(o))}),t.qZA()}if(2&n){t.oxw();const e=t.MAs(3),i=t.oxw();t.Q6J("data",i.tableData)("template",e)("flexColumns",i.flexColumns)("lazy",i.canLoadMore)("isOrdinable",!0)}}function Qs(n,s){if(1&n){const e=t.EpF();t.TgZ(0,"app-eido-registry-content",20),t.NdJ("requestOtherLineEmit",function(o){t.CHM(e);const a=t.oxw().data,r=t.oxw(2);return t.KtG(r.onLoadMoreDataChildEvent(o,a))})("updatePagination",function(o){t.CHM(e);const a=t.oxw(3);return t.KtG(a.handlePaginationUpdate(o))}),t.qZA()}if(2&n){const e=t.oxw().data,i=t.oxw(2);t.Q6J("details",e)("initEidoDetails",e.detailsReady)("isloadMoreDataChildEvent",i.isloadMoreDataChildEvent)("getSelectedEidoDetails",i.getSelectedEidoDetails.bind(i))}}function Ys(n,s){if(1&n&&t.YNc(0,Qs,1,4,"app-eido-registry-content",19),2&n){const e=s.data;t.Q6J("ngIf",e.eidoPacketDetails||e.eidoLoadingDetails||e.eidoDetailsError)}}function Bs(n,s){if(1&n&&(t.ynx(0),t.YNc(1,Js,1,5,"app-dropdown-table",16),t.YNc(2,Ys,1,1,"ng-template",null,17,t.W1O),t.BQk()),2&n){const e=t.oxw();
1t.xp6(1),t.Q6J("ngIf",e.tableData)}}function Gs(n,s){if(1&n&&t._UZ(0,"app-error-message",21),2&n){const e=t.oxw();t.Q6J("type",e.errorMessageType)}}const Hs=[{canActivate:[Io],path:"",component:In,data:{guardRedirect:"/prodotti/mobile/linee-mobili"}},{canActivate:[Q._],path:"mobile/linee-mobili",component:Bi},{canActivate:[Q._],path:"fisso-dispositivi/linee-fisse",component:mn},{canActivate:[Q._],path:"fisso-dispositivi/linee-fwa",component:io},{canActivate:[Q._],path:"mobile/giga-smart-share",component:Do},{canActivate:[Q._],path:"eido-sim-monitor",component:(()=>{const s=class{constructor(i,o,a,r,c){this.eidoService=i,this.spinnerService=o,this.tableHelper=a,this.sidebarService=r,this.filterService=c,this.errorMessageType="empty",this.canLoadMore=!1,this.displayErrorMessage=!1,this.isLoading=!1,this.flexColumns=[0,1,5],this.showFilterTag=!0,this.newFilterEvent={},this.tableItems=[],this.offset=0,this.offsetDetail=30,this.pageSize=5,this.pageDetail=1,this.packages=[],this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this._destroy$=new M.x,this.totalRecords=0,this.totalPages=0,this.isloadMoreDataChildEvent=!1,this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration()}ngOnInit(){this.filterService.filterEvent$.subscribe(i=>{this.offset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.newFilterEvent=i,this.packages=[],i?(this.filter=new as(i.contractCode?i.contractCode:void 0,i.name?i.name:void 0,i.status?i.status:void 0),this.fetchEidoLinesList(this.filter)):(this.filter=void 0,this.fetchEidoLinesList())})}fetchEidoLinesList(i){this.spinnerService.enable(),this.displayErrorMessage=!1;const o=this.createRequestModel(i),a=new Map;this.packages.forEach(r=>{r.panelOpen&&a.set(r.integrationId,!0)}),this.eidoService.getEidoPacketList(o).subscribe({next:r=>{(!r.packages||0===r.packages.length)&&this.handleFetchError("empty"),this.canLoadMore=!r.lastPage,this.totalRecords=r.technicalInfo?r.technicalInfo.totalRecords:0,r.packages.forEach(c=>{a.get(c.integrationId)&&(c.panelOpen=!0)}),this.packages=r.packages,this.totalPages=Math.ceil(this.totalRecords/this.pageSize),this.mapTableData(),this.packages.length>0&&0===this.tableItems.length?this.setupFilters():this.packages.length>0&&this.tableItems.length>0&&(this.sidebarConfig=this.sidebarService.getFilterDefaultConfiguration(),this.setupFilters()),this.spinnerService.disable()},error:()=>{this.spinnerService.disable(),this.packages=[],this.handleFetchError(i?"empty_filter_generic":"error")}})}mapTableData(){this.tableData=this.tableHelper.createDropdownTableData(u.y.EIDOPRODUCTS,this.packages),this.tableData.dataTableRow.forEach(i=>{i.rows.map(o=>{"TIPOLOGIA"===o.title&&(o.value="prepaid"===o.value?"PREPAGATA":"POSTPAGATA")})})}getSelectedEidoDetails(i){this.isloadMoreDataChildEvent||(this.offset=0,i.eidoAlreadyLoadDetails=!1,i.eidoPacketDetails&&(i.eidoPacketDetails.detail.associatedObject=[{msisdn:"",integrationId:"",nameRatePlan:"",codeRatePlan:"",unitMeasure:void 0,traffic:void 0,threshold:void 0}])),i.eidoLoadingDetails=!0,i.detailsReady=!1;const o=new ss(i.contractCode,i.integrationId,this.offsetDetail,this.pageDetail);this.eidoService.getEidoPacketDetail(o).subscribe({next:a=>{i.eidoDetailsError=!1,i.eidoLoadingDetails=!1,i.detailsReady=!0,i.eidoPacketDetails=a,i.eidoAlreadyLoadDetails=!0,this.isloadMoreDataChildEvent=!1},error:()=>{i.eidoLoadingDetails=!1,i.eidoDetailsError=!0}})}onLoadMoreDataChildEvent(i,o){this.isloadMoreDataChildEvent=!0,this.offset=this.offset+=this.pageSize,this.getSelectedEidoDetails(o)}createRequestModel(i){return new Tt(this.offset,this.pageSize,void 0,i||void 0,this.order,this.orderBy)}handleFetchError(i){this.displayErrorMessage=!0,this.errorMessageType=i,this.isLoading=!1,this.spinnerService.disable()}setupFilters(){this.tableItems=[{desc:"ID Contratto",label:"contractCode",value:"contractCode"},{desc:"Tipologia pacchetto",label:"name",value:"name"},{desc:"Stato",label:"status",value:"status"}],this.packages&&this.sidebarService.setSidebarConfiguration(this.filterService.getTableSelectFilters(this.sidebarConfig,this.tableItems,this.packages,[]))}openRechargeSidebar(i){this.sidebarConfig.types.includes(w.t.RECHARGE)&&this.sidebarService.openSidebarPanel(new Z.e(w.t.RECHARGE,i))}onFilterRemoved(i){if(this.offset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,"Abilitato"===i.value?i.value=!0:"Non abilitato"===i.value&&(i.value=!1),i&&this.filter){if(this.filter.eidoPackContractCode===i)this.filter=void 0,this.fetchEidoLinesList(this.filter);else{const o=Object.keys(this.filter).find(a=>this.filter&&this.filter[a]===i.value);if(o){const a={...this.filter};a[o]=void 0,this.filter=a,this.fetchEidoLinesList(this.filter)}}this.sidebarConfig.filtersConfig.filter(o=>{(o.value===i.valueOf||o.value===i.value)&&(o.value=void 0)})}}resetFilters(){this.offset=0,this.fromNum=1,this.toNum=this.pageSize,this.currentPage=1,this.filter=void 0,this.fetchEidoLinesList()}handlePaginationUpdate(i){const{offset:o,page:a}=i;this.offsetDetail=o,this.pageDetail=a}goForward(i){this.offset=this.offset+this.pageSize,this.fromNum=this.offset+1,this.toNum=this.offset+this.pageSize,this.currentPage=Math.ceil(this.offset/this.pageSize)+1,this.fetchEidoLinesList(this.filter)}goBack(i){this.offset=this.offset-this.pageSize,this.fromNum=this.offset+1,this.toNum=this.offset+this.pageSize,this.currentPage=Math.ceil(this.offset/this.pageSize)+1,this.fetchEidoLinesList(this.filter)}changeOrder(i){this.order=i.order,this.orderBy=i.orderBy,this.fetchEidoLinesList()}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(o){return new(o||s)(t.Y36(ct),t.Y36(d.V),t.Y36(m.S),t.Y36(O.P),t.Y36(L.i))},s.\u0275cmp=t.Xpm({type:s,selectors:[["app-eido-products"]],decls:11,vars:3,consts:[[1,"main-pages-content","gss-products"],[1,"main-pages-content-header"],[1,"titlePage"],[1,"subTitlePage"],["class","topTable-container",4,"ngIf"],[4,"ngIf","ngIfElse"],["error_banner",""],[1,"topTable-container"],[1,"filtersBox"],[4,"ngIf"],[1,"paginationBox"],[1,"paginationBox_pageNumber"],[1,"paginationBox_arrows"],[1,"backArrow",3,"disabled","click"],[1,"forwardArrow",3,"disabled","click"],[3,"sidebarConfig","filterEvent","filterRemoved","resetFilter"],[3,"data","template","flexColumns","lazy","isOrdinable","changeOrderEmitter","openItemEmitter",4,"ngIf"],["eidoDetailsTemplate",""],[3,"data","template","flexColumns","lazy","isOrdinable","changeOrderEmitter","openItemEmitter"],[3,"details","initEidoDetails","isloadMoreDataChildEvent","getSelectedEidoDetails","requestOtherLineEmit","updatePagination",4,"ngIf"],[3,"details","initEidoDetails","isloadMoreDataChildEvent","getSelectedEidoDetails","requestOtherLineEmit","updatePagination"],[3,"type"]],template:function(o,a){if(1&o&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"app-breadcrumbs"),t.TgZ(3,"h1",2),t._uU(4,"EIDO"),t.qZA(),t.TgZ(5,"h2",3),t._uU(6,"In questa pagina puoi visualizzare i dettagli dei tuoi pacchetti EIDO, gestire le soglie e modificare la composizione dell'offerta."),t.qZA()(),t.YNc(7,Rs,11,8,"div",4),t.YNc(8,Bs,4,1,"ng-container",5),t.YNc(9,Gs,1,1,"ng-template",null,6,t.W1O),t.qZA()),2&o){const r=t.MAs(10);
1t.xp6(7),t.Q6J("ngIf",!a.displayErrorMessage),t.xp6(1),t.Q6J("ngIf",!a.displayErrorMessage)("ngIfElse",r)}},dependencies:[l.O5,E.a,y.H,q.n,j.u,Ns]}),n})()},{canActivate:[Q._],path:"fisso-dispositivi/smartphone-modem",component:Ko},{canActivate:[Q._],path:"servizi/servizi-digitali",component:os}];let $s=(()=>{const s=class{};let n=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({imports:[v.Bz.forChild(Hs),v.Bz]}),n})();var Ks=g(4466);let Vs=(()=>{const s=class{};let n=s;return s.\u0275fac=function(o){return new(o||s)},s.\u0275mod=t.oAB({type:s}),s.\u0275inj=t.cJS({providers:[_t,z.f,Ct.g],imports:[l.ez,$s,et.To,Ks.m,V.lN,Ot.c,J.Nh,W.p9,ot.Ps,st.LD,A.Is,p.UX,rt.rP,p.u5]}),n})()},7086:(lt,Y,g)=>{g.d(Y,{u:()=>Z});var l=g(4650),v=g(6895);function T(t,_){if(1&t&&(l.TgZ(0,"span",8),l._UZ(1,"img",9),l._uU(2),l.qZA()),2&t){const d=l.oxw(2).$implicit;l.xp6(2),l.hij(' Risultati per: "',d.label?d.label:d,'" ')}}function u(t,_){if(1&t&&(l.TgZ(0,"span",8),l._uU(1),l.qZA()),2&t){const d=l.oxw(2).$implicit;l.xp6(1),l.Oqu(d.label?d.label:d)}}function w(t,_){if(1&t){const d=l.EpF();l.ynx(0),l.YNc(1,T,3,1,"span",6),l.YNc(2,u,2,1,"span",6),l.TgZ(3,"span",7),l.NdJ("click",function(){l.CHM(d);const C=l.oxw().$implicit,O=l.oxw(2);return l.KtG(O.removeFilter(C))}),l.qZA(),l.BQk()}if(2&t){const d=l.oxw(3);l.xp6(1),l.Q6J("ngIf",d.isFullTextFilter),l.xp6(1),l.Q6J("ngIf",!d.isFullTextFilter)}}function M(t,_){if(1&t&&(l.TgZ(0,"div",4),l.YNc(1,w,4,2,"ng-container",5),l.qZA()),2&t){const d=_.$implicit;l.xp6(1),l.Q6J("ngIf",d)}}function b(t,_){if(1&t){const d=l.EpF();l.TgZ(0,"div",10),l.NdJ("click",function(){l.CHM(d);const C=l.oxw(2);return l.KtG(C.resetFilters())}),l._uU(1,"Resetta filtri"),l.qZA()}}function k(t,_){if(1&t&&(l.TgZ(0,"div",1),l.YNc(1,M,2,1,"div",2),l.YNc(2,b,2,0,"div",3),l.qZA()),2&t){const d=l.oxw();l.xp6(1),l.Q6J("ngForOf",d.filters),l.xp6(1),l.Q6J("ngIf",d.filters.length>1)}}let Z=(()=>{const _=class{constructor(){this.filters=[],this.isFullTextFilter=!1,this.filterRemoved=new l.vpe,this.resetFilter=new l.vpe}set filterEvent(m){this.filters=[],this.sidebarConfig&&m&&(m.startInvoice&&m.endInvoice?(this.isFullTextFilter=!1,this.filters.push(`Da ${this.formatDateReport(m.startInvoice)} a ${this.formatDateReport(m.endInvoice)}`)):this.sidebarConfig.filtersConfig.filter(C=>{m.fullText?m.fullText&&(this.isFullTextFilter=!0,this.filters=[],this.filters.push(m.fullText)):(this.isFullTextFilter=!1,C.items.forEach(O=>{Object.values(m).includes(O.value)&&O.value&&O.label&&!this.filters.includes(O)&&this.filters.push(O)}))}))}removeFilter(m){this.filters=this.filters.filter(C=>C.value!==m.value),this.filterRemoved.emit(m)}resetFilters(){this.filters=[],this.sidebarConfig.filtersConfig.filter(m=>{m.value=void 0}),this.resetFilter.emit()}formatDateReport(m){if(!m)return"";if(m instanceof Date){const C=m.getFullYear(),O=String(m.getMonth()+1).padStart(2,"0");return`${String(m.getDate()).padStart(2,"0")}/${O}/${C}`}return"string"==typeof m?m.split("T")[0]:""}};let t=_;return _.\u0275fac=function(C){return new(C||_)},_.\u0275cmp=l.Xpm({type:_,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(C,O){1&C&&l.YNc(0,k,3,2,"div",0),2&C&&l.Q6J("ngIf",O.filters&&O.filters.length>0)},dependencies:[v.sg,v.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}"]}),t})()}}]);
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.