PageSourceSearch

https://www.vittoriaassicurazioni.com/AreaRiservata.Web/9374.54c6edd944a22a7f.js

js vittoriaassicurazioni.com collected 2026-09-24 09:02:58 UTC 28,213 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[9374,8674],{88742:(y,v,a)=>{a.d(v,{W:()=>P});var m=a(97582),s=a(94650),u=a(19585),x=a(93612),_=a(90603),l=a(78078),c=a(99571),h=a(36895),t=a(4859);function b(A,z){if(1&A){const g=s.EpF();s.TgZ(0,"button",3),s.NdJ("click",function(){s.CHM(g);const Z=s.oxw();return s.KtG(Z.backTo())}),s._UZ(1,"img",4),s._uU(2," INDIETRO"),s.qZA()}}function E(A,z){if(1&A){const g=s.EpF();s.TgZ(0,"button",3),s.NdJ("click",function(){s.CHM(g);const Z=s.oxw();return s.KtG(Z.backToPreviousLocation())}),s._UZ(1,"img",4),s._uU(2),s.qZA()}if(2&A){const g=s.oxw();s.xp6(2),s.hij(" ",g.testo||"INDIETRO"," ")}}const T=class{constructor(z,g,C){this.navController=z,this.routingState=g,this.mobileService=C,this.navigate=new s.vpe}backToPreviousLocation(){this.navigate.emit(),!this.customNavigation&&(this.route?this.navController.navigateRoot(this.route):this.mobileService.isApp()?this.mobileService.navigateBack():history.back())}backTo(){this.navigate.emit(),!this.customNavigation&&(this.mobileService.isApp()?this.mobileService.navigateBack():this.navController.navigateBack(this.routingState.getPreviousUrl(
1)))}};let P=T;T.\u0275fac=function(g){return new(g||T)(s.Y36(_.SH),s.Y36(l.Y),s.Y36(c.W))},T.\u0275cmp=s.Xpm({type:T,selectors:[["ar-back-button"]],inputs:{customNavigation:"customNavigation",testo:"testo",route:"route"},outputs:{navigate:"navigate"},decls:5,vars:4,consts:[[1,"back-btn"],["type","button","mat-fab","","extended","","class","ar-back-button outline-bright","aria-label","Torna indietro",3,"click",4,"ngIf","ngIfElse"],["isAuth",""],["type","button","mat-fab","","extended","","aria-label","Torna indietro",1,"ar-back-button","outline-bright",3,"click"],["src","assets/imgs/icons/icona-arrow-white.svg","alt","","aria-hidden","true"]],template:function(g,C){if(1&g&&(s.TgZ(0,"div",0),s.YNc(1,b,3,0,"button",1),s.ALo(2,"async"),s.YNc(3,E,3,1,"ng-template",null,2,s.W1O),s.qZA()),2&g){const Z=s.MAs(4);s.xp6(1),s.Q6J("ngIf",s.lcZ(2,2,C.isAnonimo$))("ngIfElse",Z)}},dependencies:[h.O5,t.cs,h.Ov],styles:["ar-back-button .back-btn a .mdc-button__label,ar-back-button .back-btn button .mdc-button__label{width:100%;display:flex;flex-direction:row;align-items:center}@media screen and (max-width: 960px){ar-back-button .back-btn{margin-top:60px}ar-back-button .fixed{position:fixed;width:100%;z-index:5}}\n"],encapsulation:2}),(0,m.gn)([(0,u.Ph)(x.jq.isAnonimo)],P.prototype,"isAnonimo$",void 0)},99762:(y,v,a)=>{a.d(v,{n:()=>_});var m=a(53358),s=a(4859),u=a(44476),x=a(94650);let _=(()=>{const c=class{};let l=c;return c.\u0275fac=function(b){return new(b||c)},c.\u0275mod=x.oAB({type:c}),c.\u0275inj=x.cJS({imports:[m.m,u.Bz,s.ot]}),l})()},27227:(y,v,a)=>{a.d(v,{m:()=>x});var m=a(94650),s=a(51572);let u=(()=>{const l=class{};let _=l;return l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=m.Xpm({type:l,selectors:[["ar-loading-spinner"]],decls:2,vars:0,consts:[[1,"center-align","mobile-padding-spinner"]],template:function(t,b){1&t&&(m.TgZ(0,"div",0),m._UZ(1,"mat-spinner"),m.qZA())},dependencies:[s.Ou],styles:[".center-align[_ngcontent-%COMP%]{display:flex;max-height:100%;box-sizing:border-box;flex-direction:row;justify-content:center;align-items:stretch;align-content:stretch}@media screen and (max-width: 960px){.mobile-padding-spinner[_ngcontent-%COMP%]{padding-top:60px}}"]}),_})(),x=(()=>{const l=class{constructor(h,t,b){this.templateRef=h,this.vcRef=t,this.componentFactoryResolver=b,this.loadingFactory=this.componentFactoryResolver.resolveComponentFactory(u)}set arLoading(h){this.vcRef.clear(),h?this.loadingComponent=this.vcRef.createComponent(this.loadingFactory):this.vcRef.createEmbeddedView(this.templateRef)}};let _=l;return l.\u0275fac=function(t){return new(t||l)(m.Y36(m.Rgc),m.Y36(m.s_b),m.Y36(m._Vd))},l.\u0275dir=m.lG2({type:l,selectors:[["","arLoading",""]],inputs:{arLoading:"arLoading"}}),_})()},98674:(y,v,a)=>{a.d(v,{z:()=>x});var m=a(27227),s=a(51572),u=a(94650);let x=(()=>{const l=class{};let _=l;return l.\u0275fac=function(t){return new(t||l)},l.\u0275mod=u.oAB({type:l}),l.\u0275inj=u.cJS({providers:[m.m],imports:[s.Cq]}),_})()},99374:(y,v,a)=>{a.r(v),a.d(v,{VersamentoAggiuntivoPipModule:()=>St});var m=a(53358),s=a(69814),u=a(44476),x=a(98674),_=a(4859),l=a(2231),c=a(30671),h=a(40537),t=a(94650),b=a(74670),E=a(36700),P=a(42684),T=a(32233),A=a(36895),z=a(90603),g=a(1576),C=a(55829),Z=a(97392),D=a(88742),F=a(7625),L=a(2994),f=a(24006),Q=a(21086),M=a(31059),J=a(17538),w=a(8507),B=a(27227),N=a(284),U=a(59549),R=a(42387),O=a(84385),q=a(3238);function k(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1,"Indirizzo Email richiesto "),t.qZA())}function S(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1,"Indirizzo Email non valido. "),t.qZA())}function K(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1,"Cellulare richiesto "),t.qZA())}function G(e,i){1&e&&(t.TgZ(0,"mat-error"),t._uU(1,"Campo non valido "),t.qZA())}function j(e,i){if(1&e&&(t.TgZ(0,"mat-option",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n)}}function W(e,i){if(1&e&&(t.TgZ(0,"mat-option",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n),t.xp6(1),t.Oqu(n.descrizione)}}function $(e,i){if(1&e&&(t.TgZ(0,"mat-option",17),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.Q6J("value",n),t.xp6(1),t.hij(" ",n.descrizione," ")}}function H(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",18),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(3);return t.KtG(r.chiudiInserimento())}),t._uU(1," Indietro "),t.qZA()}}function X(e,i){if(1&e&&(t.ynx(0),t.TgZ(1,"div",2)(2,"mat-form-field")(3,"mat-label"),t._uU(4,"Contratto"),t.qZA(),t.TgZ(5,"mat-select",6),t.YNc(6,j,2,2,"mat-option",7),t.qZA()(),t.TgZ(7,"mat-form-field")(8,"mat-label"),t._uU(9,"Nome del c
1ontraente/dipendente"),t.qZA(),t.TgZ(10,"mat-select",8),t.YNc(11,W,2,2,"mat-option",7),t.ALo(12,"async"),t.qZA()(),t.TgZ(13,"mat-form-field",9)(14,"mat-label"),t._uU(15,"Tipo di versamento"),t.qZA(),t.TgZ(16,"mat-select",10),t.YNc(17,$,2,2,"mat-option",7),t.ALo(18,"async"),t.qZA()()(),t.TgZ(19,"div",2)(20,"mat-form-field")(21,"mat-label"),t._uU(22,"Contributo aderente"),t.qZA(),t._UZ(23,"input",11),t.qZA(),t.TgZ(24,"mat-form-field")(25,"mat-label"),t._uU(26,"Contributo azienda"),t.qZA(),t._UZ(27,"input",12),t.qZA(),t.TgZ(28,"mat-form-field")(29,"mat-label"),t._uU(30,"Contributo TFR"),t.qZA(),t._UZ(31,"input",13),t.qZA()(),t.TgZ(32,"div",14),t.YNc(33,H,2,0,"button",15),t.TgZ(34,"button",16),t._uU(35," Aggiungi Richiesta "),t.qZA()(),t.BQk()),2&e){const n=t.oxw(2);t.xp6(6),t.Q6J("ngForOf",n.polizzeVersamentiIntegrativi),t.xp6(5),t.Q6J("ngForOf",t.lcZ(12,4,n.tipiLegamiPip$)),t.xp6(6),t.Q6J("ngForOf",t.lcZ(18,6,n.tipiVersamentiIntegrativi$)),t.xp6(16),t.Q6J("ngIf",!n.primoInserimento)}}function tt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"form",1),t.NdJ("submit",function(){t.CHM(n);const r=t.oxw();return t.KtG(r.aggiungiVersamento())}),t.TgZ(1,"div",2)(2,"mat-form-field")(3,"mat-label"),t._uU(4,"Email a cui possiamo ricontattarti"),t.qZA(),t._UZ(5,"input",3),t.YNc(6,k,2,0,"mat-error",4),t.YNc(7,S,2,0,"mat-error",4),t.qZA(),t.TgZ(8,"mat-form-field")(9,"mat-label"),t._uU(10,"Cellulare a cui possiamo ricontattarti"),t.qZA(),t._UZ(11,"input",5),t.YNc(12,K,2,0,"mat-error",4),t.YNc(13,G,2,0,"mat-error",4),t.qZA()(),t.YNc(14,X,36,8,"ng-container",4),t.qZA()}if(2&e){const n=t.oxw();t.Q6J("formGroup",n.form),t.xp6(6),t.Q6J("ngIf",n.form.get("contattaEmail").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.form.get("contattaEmail").hasError("email")),t.xp6(5),t.Q6J("ngIf",n.form.get("contattaCellulare").hasError("required")),t.xp6(1),t.Q6J("ngIf",n.form.get("contattaCellulare").hasError("pattern")),t.xp6(1),t.Q6J("ngIf",n._isEdit)}}let et=(()=>{const i=class extends l.P{constructor(o,r,p,d,I,Kt,Gt){super(),this.route=o,this._formBuilder=r,this.messageService=p,this.clienteService=d,this.versamentiIntegrativiService=I,this.dettaglioPolizzaVitaService=Kt,this.polizzeService=Gt,this.polId="",this.addVersamentoAggiuntivo=new t.vpe}set isEdit(o){this._isEdit=o,this.form&&o&&(this.form.get("contattaEmail").enable(),this.form.get("contattaCellulare").enable())}set polizzaRimossa(o){o&&this.polizzeVersamentiIntegrativi.push(o.idPolizza)}ngOnInit(){this.tipiVersamentiIntegrativi$=this.versamentiIntegrativiService.getTipiVersamentiIntegrativi(),this.polizzeService.getPolizzeByActionAsync({action:this.action}).subscribe(o=>{this.polizzeVersamentiIntegrativi=o}),this._isEdit=!0,this.polId=this.route.snapshot.paramMap.get("idPolizza"),this.getTipiLegamiPip(this.polId),this.clienteService.getContatti(!0).pipe((0,F.R)(this._unsubscribeAll)).subscribe(o=>{this.setForm(),o&&(this.form.controls.contattaEmail.setValue(o.email),this.form.controls.contattaCellulare.setValue(o.cellulare))},o=>{})}aggiungiVersamento(){if(this.form.invalid)return;const o=this.form.getRawValue();o.totale=o.contributoAderente+o.contributoAzienda+o.contributoTFR,o.totale<=0?this.messageService.error("E\u2019 necessario inserire un importo maggiore di 0"):(this.polizzeVersamentiIntegrativi=this.polizzeVersamentiIntegrativi.filter(r=>o.idPolizza!==r),this.addVersamentoAggiuntivo.emit({value:o,showAddButton:this.polizzeVersamentiIntegrativi.length>0}),this.resetForm())}chiudiInserimento(){this.addVersamentoAggiuntivo.emit({value:null,showAddButton:this.polizzeVersamentiIntegrativi.length>0}),this.resetForm()}resetForm(){const o=this.getEmail(),r=this.getCellulare();this.formGroupDirective.resetForm(),this.setForm(),this.form.get("idPolizza").enable(),this.form.get("idPolizza").setValue(null),this.form.get("contattaEmail").setValue(o),this.form.get("contattaCellulare").setValue(r),this.getTipiLegamiPip(null)}getEmail(){return this.form.get("contattaEmail").value}getCellulare(){return this.form.get("contattaCellulare").value}setForm(){this.form=this._formBuilder.group({idPolizza:[{value:this.polId,disabled:!0},[f.kI.required]],contattaEmail:[{value:"",disabled:!0}],contattaCellulare:[{value:"",disabled:!0}],contraente:[{value:"",disabled:!0},f.kI.required],tipoVersamento:["",f.kI.required],contributoAderente:[0],contributoAzienda:[0],contributoTFR:[0]}
1),this.setFormObs()}setFormObs(){this.form.get("idPolizza").valueChanges.subscribe(o=>{o&&(this.getTipiLegamiPip(o),this.form.get("contraente").setValue(""))})}getTipiLegamiPip(o){this.tipiLegamiPip$=o?this.dettaglioPolizzaVitaService.getGetLookupLegamiPip({...(0,M.I)(o)}).pipe((0,L.b)(r=>{this.form.get("contraente").setValue(r[0])})):(0,Q.of)(null)}};let e=i;return i.\u0275fac=function(r){return new(r||i)(t.Y36(u.gz),t.Y36(f.QS),t.Y36(P.e),t.Y36(J.$),t.Y36(w.C),t.Y36(b.vG),t.Y36(b.gi))},i.\u0275cmp=t.Xpm({type:i,selectors:[["ar-versamento-aggiuntivo-pip-inserimento"]],viewQuery:function(r,p){if(1&r&&t.Gf(f.sg,5),2&r){let d;t.iGM(d=t.CRH())&&(p.formGroupDirective=d.first)}},inputs:{isEdit:"isEdit",primoInserimento:"primoInserimento",polizzaRimossa:"polizzaRimossa",action:"action"},outputs:{addVersamentoAggiuntivo:"addVersamentoAggiuntivo"},features:[t.qOj],decls:1,vars:1,consts:[[3,"formGroup","submit",4,"arLoading"],[3,"formGroup","submit"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column","fxLayoutGap.gt-sm","20px"],["matInput","","formControlName","contattaEmail","type","email"],[4,"ngIf"],["matInput","","arOnlyNumber","","formControlName","contattaCellulare","maxlength","11"],["formControlName","idPolizza"],[3,"value",4,"ngFor","ngForOf"],["formControlName","contraente"],["ngClass.gt-md","tipoVersamentoCombo"],["formControlName","tipoVersamento"],["currencyMask","","matInput","","formControlName","contributoAderente"],["currencyMask","","matInput","","formControlName","contributoAzienda"],["currencyMask","","matInput","","formControlName","contributoTFR"],["fxLayout","row","fxLayoutGap","20px"],["type","button","fxFlex","150px","fxFlex.lt-md","100%","mat-flat-button","","class","ar-button",3,"click",4,"ngIf"],["type","submit","fxFlex","150px","fxFlex.lt-md","100%","mat-flat-button","",1,"ar-button"],[3,"value"],["type","button","fxFlex","150px","fxFlex.lt-md","100%","mat-flat-button","",1,"ar-button",3,"click"]],template:function(r,p){1&r&&t.YNc(0,tt,15,6,"form",0),2&r&&t.Q6J("arLoading",!p.form)},dependencies:[A.sg,A.O5,g.xw,g.SQ,g.yH,C.oO,B.m,N.Nt,U.KE,U.hX,U.TO,f._Y,f.Fj,f.JJ,f.JL,f.nD,f.sg,f.u,_.lW,R.g1,O.gD,q.ey,A.Ov],styles:[".tipoVersamentoCombo[_ngcontent-%COMP%]{min-width:400px}"]}),e})();var Y=a(10266),V=a(95208);const nt=function(){return["/home"]};function it(e,i){1&e&&(t.ynx(0),t.TgZ(1,"div",7)(2,"h3"),t._uU(3," Gentile Cliente, la sua richiesta \xe8 stata inserita correttamente, a breve ricever\xe0 una mail con le indicazioni per il pagamento. "),t.qZA(),t.TgZ(4,"p"),t._uU(5," Clicca "),t.TgZ(6,"a",8),t._uU(7,"qui"),t.qZA(),t._uU(8," per tornare alla homepage. "),t.qZA()(),t.BQk()),2&e&&(t.xp6(6),t.Q6J("routerLink",t.DdM(1,nt)))}function ot(e,i){1&e&&(t.TgZ(0,"th",35),t._uU(1,"Dipendente"),t.qZA())}function at(e,i){if(1&e&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.Oqu(n.contraente.descrizione)}}function rt(e,i){1&e&&t._UZ(0,"td",37)}function st(e,i){1&e&&(t.TgZ(0,"th",35),t._uU(1,"Copertura"),t.qZA())}function lt(e,i){if(1&e&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.Oqu(n.idPolizza)}}function ct(e,i){1&e&&t._UZ(0,"td",37)}function mt(e,i){1&e&&(t.TgZ(0,"th",35),t._uU(1,"Tipo versamento"),t.qZA())}function _t(e,i){if(1&e&&(t.TgZ(0,"td",36),t._uU(1),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.Oqu(n.tipoVersamento.descrizione)}}
1function gt(e,i){1&e&&t._UZ(0,"td",37)}function ut(e,i){1&e&&(t.TgZ(0,"th",38),t._uU(1,"Contr. Aderente"),t.qZA())}function pt(e,i){if(1&e&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.contributoAderente,"EUR")," ")}}function dt(e,i){1&e&&t._UZ(0,"td",37)}function ft(e,i){1&e&&(t.TgZ(0,"th",38),t._uU(1,"Contr. Azienda"),t.qZA())}function vt(e,i){if(1&e&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.contributoAzienda,"EUR")," ")}}function ht(e,i){1&e&&t._UZ(0,"td",37)}function xt(e,i){1&e&&(t.TgZ(0,"th",38),t._uU(1,"Contr. TFR"),t.qZA())}function At(e,i){if(1&e&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,n.contributoTFR,"EUR")," ")}}function bt(e,i){1&e&&t._UZ(0,"td",37)}function Tt(e,i){1&e&&(t.TgZ(0,"th",38),t._uU(1,"Totale"),t.qZA())}function Ct(e,i){if(1&e&&(t.TgZ(0,"td",39),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=i.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,n.totale,"EUR"))}}function Zt(e,i){if(1&e&&(t.TgZ(0,"td",40),t._uU(1),t.ALo(2,"currency"),t.qZA()),2&e){const n=t.oxw(5);t.xp6(1),t.Oqu(t.xi3(2,1,n.getTotalCost(),"EUR"))}}function Pt(e,i){1&e&&t._UZ(0,"th",35)}function zt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",44,45),t.NdJ("click",function(){t.CHM(n);const r=t.MAs(1);return t.KtG(r.toggle())}),t.TgZ(2,"mat-icon"),t._uU(3,"warning"),t.qZA()()}if(2&e){const n=t.oxw().$implicit,o=t.oxw(5);t.Q6J("matTooltip",o.errori[n.idPolizza])}}function Vt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"td",41)(1,"button",42),t.NdJ("click",function(){const p=t.CHM(n).$implicit,d=t.oxw(5);return t.KtG(d.rimuoviVersamento(p))}),t.TgZ(2,"mat-icon"),t._uU(3,"cancel"),t.qZA()(),t.YNc(4,zt,4,1,"button",43),t.qZA()}if(2&e){const n=i.$implicit,o=t.oxw(5);t.Q6J("ngClass",o.errori[n.idPolizza]?"action-error":""),t.xp6(4),t.Q6J("ngIf",o.errori[n.idPolizza])}}function yt(e,i){1&e&&t._UZ(0,"td",37)}function Et(e,i){1&e&&t._UZ(0,"tr",46)}function Ut(e,i){1&e&&t._UZ(0,"tr",47)}function It(e,i){1&e&&t._UZ(0,"tr",48)}function Nt(e,i){if(1&e&&(t.TgZ(0,"table",16),t.ynx(1,17),t.YNc(2,ot,2,0,"th",18),t.YNc(3,at,2,1,"td",19),t.YNc(4,rt,1,0,"td",20),t.BQk(),t.ynx(5,21),t.YNc(6,st,2,0,"th",18),t.YNc(7,lt,2,1,"td",19),t.YNc(8,ct,1,0,"td",20),t.BQk(),t.ynx(9,22),t.YNc(10,mt,2,0,"th",18),t.YNc(11,_t,2,1,"td",19),t.YNc(12,gt,1,0,"td",20),t.BQk(),t.ynx(13,23),t.YNc(14,ut,2,0,"th",24),t.YNc(15,pt,3,4,"td",25),t.YNc(16,dt,1,0,"td",20),t.BQk(),t.ynx(17,26),t.YNc(18,ft,2,0,"th",24),t.YNc(19,vt,3,4,"td",25),t.YNc(20,ht,1,0,"td",20),t.BQk(),t.ynx(21,27),t.YNc(22,xt,2,0,"th",24),t.YNc(23,At,3,4,"td",25),t.YNc(24,bt,1,0,"td",20),t.BQk(),t.ynx(25,28),t.YNc(26,Tt,2,0,"th",24),t.YNc(27,Ct,3,4,"td",25),t.YNc(28,Zt,3,4,"td",29),t.BQk(),t.ynx(29,30),t.YNc(30,Pt,1,0,"th",18),t.YNc(31,Vt,5,2,"td",31),t.YNc(32,yt,1,0,"td",20),t.BQk(),t.YNc(33,Et,1,0,"tr",32),t.YNc(34,Ut,1,0,"tr",33),t.YNc(35,It,1,0,"tr",34),t.qZA()),2&e){const n=t.oxw(4);t.Q6J("dataSource",n.versamenti),t.xp6(33),t.Q6J("matHeaderRowDef",n.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",n.displayedColumns),t.xp6(1),t.Q6J("matFooterRowDef",n.displayedColumns)}}function Rt(e,i){if(1&e&&(t.ynx(0),t.YNc(1,Nt,36,4,"table",15),t.BQk()),2&e){const n=t.oxw(3);t.xp6(1),t.Q6J("ngIf",n.versamenti.length)}}function Ot(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",44,45),t.NdJ("click",function(){t.CHM(n);const r=t.MAs(1);return t.KtG(r.toggle())}),t.TgZ(2,"mat-icon"),t._uU(3,"error"),t.qZA()()}if(2&e){const n=t.oxw().$implicit,o=t.oxw(4);t.Q6J("matTooltip",o.errori[n.idPolizza])}}function Yt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"ngu-tile",56)(1,"div")(2,"div",57)(3,"div",58)(4,"h2",59),t._uU(5),t.qZA(),t.YNc(6,Ot,4,1,"button",43),t.qZA(),t.TgZ(7,"div",60)(8,"button",61),t.NdJ("click",function(){const p=t.CHM(n).$implicit,d=t.oxw(4);return t.KtG(d.rimuoviVersamento(p))}),t.TgZ(9,"mat-icon"),t._uU(10,"close"),t.qZA()()()(),t.TgZ(11,"div",62)(12,"div",63)(13,"label"),t._uU(14," Copertura "),t.qZA(),t.TgZ(15,"span"),t._uU(16),t.qZA()(),t.TgZ(17,"div",63)(18,"label"),t._uU(19," Tipo versamento "),t.qZA(),t.TgZ(20,"span"),t._uU(21),t.qZA()(),t.TgZ(22,"div",63)(23,"label"),t._uU(24," C
1ontr. Aderente "),t.qZA(),t.TgZ(25,"span"),t._uU(26),t.ALo(27,"currency"),t.qZA()(),t.TgZ(28,"div",63)(29,"label"),t._uU(30," Contr. Azienda "),t.qZA(),t.TgZ(31,"span"),t._uU(32),t.ALo(33,"currency"),t.qZA()(),t.TgZ(34,"div",63)(35,"label"),t._uU(36," Contr. TFR "),t.qZA(),t.TgZ(37,"span"),t._uU(38),t.ALo(39,"currency"),t.qZA()(),t.TgZ(40,"div",63)(41,"label"),t._uU(42," Totale "),t.qZA(),t.TgZ(43,"span"),t._uU(44),t.ALo(45,"currency"),t.qZA()()()()()}if(2&e){const n=i.$implicit,o=t.oxw(4);t.xp6(5),t.hij(" ",n.contraente.descrizione," "),t.xp6(1),t.Q6J("ngIf",o.errori[n.idPolizza]),t.xp6(10),t.hij(" ",n.idPolizza,""),t.xp6(5),t.hij(" ",n.tipoVersamento.descrizione,""),t.xp6(5),t.hij(" ",t.xi3(27,8,n.contributoAderente,"EUR"),""),t.xp6(6),t.hij(" ",t.xi3(33,11,n.contributoAzienda,"EUR"),""),t.xp6(6),t.hij(" ",t.xi3(39,14,n.contributoTFR,"EUR"),""),t.xp6(6),t.hij(" ",t.xi3(45,17,n.totale,"EUR"),"")}}function Dt(e,i){1&e&&(t.TgZ(0,"button",64)(1,"mat-icon"),t._uU(2," chevron_left "),t.qZA()())}function Ft(e,i){1&e&&(t.TgZ(0,"button",65)(1,"mat-icon"),t._uU(2," chevron_right "),t.qZA()())}function Lt(e,i){if(1&e&&(t.TgZ(0,"ngu-carousel",49,50),t.YNc(2,Yt,46,20,"ngu-tile",51),t.YNc(3,Dt,3,0,"button",52),t.YNc(4,Ft,3,0,"button",53),t.qZA(),t.TgZ(5,"h4",54),t._uU(6),t.qZA(),t.TgZ(7,"div",55),t._uU(8),t.ALo(9,"currency"),t.qZA()),2&e){const n=t.MAs(1),o=t.oxw(3);t.Q6J("inputs",o.carouselOne)("dataSource",o.versamenti),t.xp6(3),t.Q6J("ngIf",0!=n.currentSlide),t.xp6(1),t.Q6J("ngIf",n.currentSlide+1!=n.pointNumbers.length),t.xp6(2),t.hij(" ",n.currentSlide+1+"/"+o.versamenti.length," "),t.xp6(2),t.hij(" Il totale dei versamenti \xe8 ",t.xi3(9,6,o.getTotalCost(),"EUR")," ")}}function Qt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"button",14),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(3);return t.KtG(r.addVersamento())}),t._uU(1," Aggiungi Versamento "),t.qZA()}}function Mt(e,i){if(1&e){const n=t.EpF();t.ynx(0),t.YNc(1,Rt,2,1,"ng-container",5),t.YNc(2,Lt,10,9,"ng-template",null,11,t.W1O),t._UZ(4,"br"),t.TgZ(5,"div",12),t.YNc(6,Qt,2,0,"button",13),t.TgZ(7,"button",14),t.NdJ("click",function(){t.CHM(n);const r=t.oxw(2);return t.KtG(r.inviaRichiesta())}),t._uU(8," Invia Richiesta "),t.qZA()(),t.BQk()}if(2&e){const n=t.MAs(3),o=t.oxw(2);t.xp6(1),t.Q6J("ngIf",o.media.isActive("md")||o.media.isActive("lg")||o.media.isActive("xl"))("ngIfElse",n),t.xp6(5),t.Q6J("ngIf",o.showAddButton)}}function Jt(e,i){if(1&e){const n=t.EpF();t.TgZ(0,"ar-versamento-aggiuntivo-pip-inserimento",9),t.NdJ("addVersamentoAggiuntivo",function(r){t.CHM(n);const p=t.oxw();return t.KtG(p.aggiungiVersamento(r))}),t.qZA(),t.YNc(1,Mt,9,3,"ng-container",10)}if(2&e){const n=t.oxw();t.Q6J("isEdit",!n.showTabella)("primoInserimento",!n.versamenti||0===n.versamenti.length)("polizzaRimossa",n.polizzaRimossa)("action",n.action),t.xp6(1),t.Q6J("ngIf",n.showTabella)}}let wt=(()=>{const i=class extends l.P{constructor(o,r,p,d,I){super(),this.versamentiIntegrativiService=o,this.loaderService=r,this.messageService=p,this.activatedRoute=d,this.media=I,this.displayedColumns=["nomeContraente","idPolizza","codTipoVersamento","contributoAderente","contributoAzienda","contributoTFR","totale","azione"],this.versamenti=[],this.errori={},this.invioOk=!1}getTotalCost(){return this.versamenti.map(o=>o.totale).reduce((o,r)=>o+r,0)}ngOnInit(){this.action=this.activatedRoute.snapshot.queryParams.action,this.showTabella=!1,this.carouselOne={grid:{xs:1,sm:1,md:1,lg:1,all:0},slide:3,point:{visible:!0},load:3,touch:!0,loop:!1,velocity:0,custom:"banner"}}aggiungiVersamento(o){this.showTabella=!0,this.showAddButton=o.showAddButton,o.value&&(this.versamenti.push(o.value),this.updateTable())}addVersamento(){this.showTabella=!1}rimuoviVersamento(o){this.versamenti=this.versamenti.filter(r=>r.idPolizza!==o.idPolizza),this.updateTable(),this.polizzaRimossa=o,0===this.versamenti.length&&this.addVersamento(),this.showAddButton=!0}inviaRichiesta(){this.loaderService.show(),this.versamentiIntegrativiService.saveVersamentoAggiuntivoPipFpaAsync({body:{versamenti:this.versamenti,action:this.action}}).pipe((0,h.x)(()=>this.loaderService.hide())).subscribe(o=>{o.error||(this.invioOk=!0),this.errori={},o.ragioniErrori&&o.ragioniErrori.length>0&&(this.messageService.info("Ci sono degli errori sui versamenti da verificare prima di procedere"),o.ragioniErrori.forEac
1h(r=>{this.errori[r.id]=r.descrizione}))})}updateTable(){this.matTables&&this.matTables.first&&this.matTables.first.renderRows()}};let e=i;return i.\u0275fac=function(r){return new(r||i)(t.Y36(b.CL),t.Y36(E.D),t.Y36(P.e),t.Y36(u.gz),t.Y36(T.u0))},i.\u0275cmp=t.Xpm({type:i,selectors:[["ar-versamento-aggiuntivo-pip"]],viewQuery:function(r,p){if(1&r&&t.Gf(c.BZ,5),2&r){let d;t.iGM(d=t.CRH())&&(p.matTables=d)}},features:[t.qOj],decls:9,vars:3,consts:[[1,"outer-content"],[3,"testo"],["ngClass.lt-md","mobile-content-title",1,"content-title"],[1,"title-info"],[1,"inner-content"],[4,"ngIf","ngIfElse"],["invioTemplate",""],[1,"contatta-object"],["routerDirection","root",3,"routerLink"],[3,"isEdit","primoInserimento","polizzaRimossa","action","addVersamentoAggiuntivo"],[4,"ngIf"],["mobileVersamenti",""],["fxLayout","row","fxLayout.lt-md","column","fxLayoutAlign.gt-sm","end center","fxLayoutGap","20px"],["type","button","fxFlex","150px","fxFlex.lt-md","100","mat-flat-button","","class","ar-button",3,"click",4,"ngIf"],["type","button","fxFlex","150px","fxFlex.lt-md","100","mat-flat-button","",1,"ar-button",3,"click"],["mat-table","","class","mat-elevation-z8",3,"dataSource",4,"ngIf"],["mat-table","",1,"mat-elevation-z8",3,"dataSource"],["matColumnDef","nomeContraente"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","idPolizza"],["matColumnDef","codTipoVersamento"],["matColumnDef","contributoAderente"],["mat-header-cell","","class","colonna-importi",4,"matHeaderCellDef"],["mat-cell","","class","colonna-importi",4,"matCellDef"],["matColumnDef","contributoAzienda"],["matColumnDef","contributoTFR"],["matColumnDef","totale"],["mat-footer-cell","","class","colonna-importi",4,"matFooterCellDef"],["matColumnDef","azione"],["mat-cell","","class","action-column",3,"ngClass",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef"],["mat-header-cell",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell","",1,"colonna-importi"],["mat-cell","",1,"colonna-importi"],["mat-footer-cell","",1,"colonna-importi"],["mat-cell","",1,"action-column",3,"ngClass"],["mat-icon-button","",3,"click"],["style","color: red","mat-icon-button","",3,"matTooltip","click",4,"ngIf"],["mat-icon-button","",2,"color","red",3,"matTooltip","click"],["tooltipErrore","matTooltip"],["mat-header-row",""],["mat-row",""],["mat-footer-row",""],[3,"inputs","dataSource"],["myCarousel",""],["class","carousel-border-tile",4,"nguCarouselDef"],["NguCarouselPrev","","class","navigation-btns leftRs",4,"ngIf"],["NguCarouselNext","","class","navigation-btns rightRs",4,"ngIf"],[1,"carousel-number-index"],["fxLayout","row"],[1,"carousel-border-tile"],["ngClass.lt-md","mobile-content-title-carousel",1,"content-title-inner-sec"],["fxLayout","row","fxLayoutAlign.lt-md","left center",2,"width","100%"],[2,"word-break","break-word"],["fxLayout","row","fxLayoutAlign","end center"],["mat-mini-fab","",3,"click"],[1,"carousel-block-item","main-carousel-container"],[1,"content-tile-block"],["NguCarouselPrev","",1,"navigation-btns","leftRs"],["NguCarouselNext","",1,"navigation-btns","rightRs"]],template:function(r,p){if(1&r&&(t.TgZ(0,"div",0),t._UZ(1,"ar-back-button",1),t.TgZ(2,"div",2)(3,"h2",3),t._uU(4," Richiesta Versamento Aggiuntivo - Polizza Vita - Risparmio e Investimento "),t.qZA()(),t.TgZ(5,"div",4),t.YNc(6,it,9,2,"ng-container",5),t.YNc(7,Jt,2,5,"ng-template",null,6,t.W1O),t.qZA()()),2&r){const d=t.MAs(8);t.xp6(1),t.Q6J("testo","INDIETRO"),t.xp6(5),t.Q6J("ngIf",p.invioOk)("ngIfElse",d)}},dependencies:[A.mk,A.O5,z.Fo,g.xw,g.SQ,g.Wh,g.yH,C.oO,u.rH,Z.Hw,_.lW,_.RK,_.nh,D.W,c.BZ,c.fO,c.as,c.w1,c.Dz,c.nj,c.mD,c.Ke,c.ge,c.ev,c.yh,c.XQ,c.Gk,c.Q2,et,Y.gM,V.rC,V.K4,V.Wc,V.Vy,V.Mg,A.H9],styles:["ar-versamento-aggiuntivo-pip inner-content label{color:#0074bd;font-weight:700;margin-bottom:20px}ar-versamento-aggiuntivo-pip .inner-content .mat-mdc-form-field{max-width:220px;width:100%}ar-versamento-aggiuntivo-pip .main-carousel-container{padding:0 20px}ar-versamento-aggiuntivo-pip .content-tile-block{text-transform:uppercase}ar-versamento-aggiuntivo-pip .carousel-border-tile .tile{margin:20px 30px 10px}ar-versamento-aggiuntivo-pip .mobile-content-title-carousel{background-color:#fff;margin:0!important}ar-versamento-aggiuntivo-pip .title-info{margin-bottom:0}ar-versamento-aggiuntivo-pip .mobile-content-title{display:flex}ar-versamento-aggiuntivo-pip .navigation-btns{position:absolute;top:50%;background-color:transparent;border:0px;color:var(--primary-color);padding-left:5px;padding-right:5px}ar-versamento-aggiuntivo-pip .leftRs{left:0}ar-versamento-aggiuntivo-pip .rightRs{right:0}@media screen and (max-width: 960px){ar-versamento-aggiuntivo-pip .inner-content{padding:20px}ar-versamento-aggiuntivo-pip .title-info{margin-bottom:20px}ar-versamento-aggiuntivo-pip .inner-content .mat-mdc-form-field{max-width:100%}ar-versamento-aggiuntivo-pip .back-btn{margin-top:60px}}ar-versamento-aggiuntivo-pip table{width:100%}ar-versamento-aggiuntivo-pip tr.mat-mdc-footer-row{font-weight:700}ar-versamento-aggiuntivo-pip .action-column{width:30px;padding-right:0!important}ar-versamento-aggiuntivo-pip .action-error{width:80px}ar-versamento-aggiuntivo-pip .colonna-importi{text-align:right!important;padding-right:10px!important}\n"],encapsulation:2}),e})();var Bt=a(99762);let qt=(()=>{const i=class{};let e=i;return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[m.m,s.o9,x.z,N.c,f.u5,f.UX,_.ot,R.Ud,O.LD]}),e})();const kt=[{path:"",component:wt}];let St=(()=>{const i=class{};let e=i;return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[m.m,s.o9,u.Bz.forChild(kt),x.z,Z.Ps,_.ot,Bt.n,c.p0,qt,Y.AV,V.vz]}),e})()},31059:(y,v,a)=>{function m(s){const u=s.split(".");return 3===u.length?{codAgenzia:u[0],codRamo:u[1],numeroPolizza:u[2],idPolizzone:null}:{idPolizzone:Number(u[0]),codAgenzia:null,codRamo:null,numeroPolizza:null}}a.d(v,{I:()=>m})}}]);

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.