1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[523,8674],{88742:(E,P,c)=>{c.d(P,{W:()=>A});var p=c(97582),s=c(94650),v=c(19585),u=c(93612),m=c(90603),d=c(78078),z=c(99571),T=c(36895),x=c(4859);function M(w,O){if(1&w){const f=s.EpF();s.TgZ(0,"button",3),s.NdJ("click",function(){s.CHM(f);const U=s.oxw();return s.KtG(U.backTo())}),s._UZ(1,"img",4),s._uU(2," INDIETRO"),s.qZA()}}function J(w,O){if(1&w){const f=s.EpF();s.TgZ(0,"button",3),s.NdJ("click",function(){s.CHM(f);const U=s.oxw();return s.KtG(U.backToPreviousLocation())}),s._UZ(1,"img",4),s._uU(2),s.qZA()}if(2&w){const f=s.oxw();s.xp6(2),s.hij(" ",f.testo||"INDIETRO"," ")}}const Z=class{constructor(O,f,k){this.navController=O,this.routingState=f,this.mobileService=k,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 A=Z;Z.\u0275fac=function(f){return new(f||Z)(s.Y36(m.SH),s.Y36(d.Y),s.Y36(z.W))},Z.\u0275cmp=s.Xpm({type:Z,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(f,k){if(1&f&&(s.TgZ(0,"div",0),s.YNc(1,M,3,0,"button",1),s.ALo(2,"async"),s.YNc(3,J,3,1,"ng-template",null,2,s.W1O),s.qZA()),2&f){const U=s.MAs(4);s.xp6(1),s.Q6J("ngIf",s.lcZ(2,2,k.isAnonimo$))("ngIfElse",U)}},dependencies:[T.O5,x.cs,T.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,p.gn)([(0,v.Ph)(u.jq.isAnonimo)],A.prototype,"isAnonimo$",void 0)},99762:(E,P,c)=>{c.d(P,{n:()=>m});var p=c(53358),s=c(4859),v=c(44476),u=c(94650);let m=(()=>{const z=class{};let d=z;return z.\u0275fac=function(M){return new(M||z)},z.\u0275mod=u.oAB({type:z}),z.\u0275inj=u.cJS({imports:[p.m,v.Bz,s.ot]}),d})()},27227:(E,P,c)=>{c.d(P,{m:()=>u});var p=c(94650),s=c(51572);let v=(()=>{const d=class{};let m=d;return d.\u0275fac=function(x){return new(x||d)},d.\u0275cmp=p.Xpm({type:d,selectors:[["ar-loading-spinner"]],decls:2,vars:0,consts:[[1,"center-align","mobile-padding-spinner"]],template:function(x,M){1&x&&(p.TgZ(0,"div",0),p._UZ(1,"mat-spinner"),p.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}}"]}),m})(),u=(()=>{const d=class{constructor(T,x,M){this.templateRef=T,this.vcRef=x,this.componentFactoryResolver=M,this.loadingFactory=this.componentFactoryResolver.resolveComponentFactory(v)}set arLoading(T){this.vcRef.clear(),T?this.loadingComponent=this.vcRef.createComponent(this.loadingFactory):this.vcRef.createEmbeddedView(this.templateRef)}};let m=d;return d.\u0275fac=function(x){return new(x||d)(p.Y36(p.Rgc),p.Y36(p.s_b),p.Y36(p._Vd))},d.\u0275dir=p.lG2({type:d,selectors:[["","arLoading",""]],inputs:{arLoading:"arLoading"}}),m})()},98674:(E,P,c)=>{c.d(P,{z:()=>u});var p=c(27227),s=c(51572),v=c(94650);let u=(()=>{const d=class{};let m=d;return d.\u0275fac=function(x){return new(x||d)},d.\u0275mod=v.oAB({type:d}),d.\u0275inj=v.cJS({providers:[p.m],imports:[s.Cq]}),m})()},90523:(E,P,c)=>{c.r(P),c.d(P,{CarrelloModule:()=>st});var p=c(53358),s=c(44476),v=c(2231),u=c(7625),m=c(24850);class d{}class z{}class J{constructor(a,e,o,i){this.idPolizza=a,this.idPolizzone=e,this.idTitolo=o,this.consensoModel=i}}class A{constructor(){this.modalitaPagamento="",this.email="",this.cellulare="",this.isPuntiUsati=!1,this.puntiUsati=0}}class Z{}
1class f{constructor(){this.codMetodoPagamento="",this.desMetodoPagamento=""}}class k{constructor(){this.esitoPagamento=!1,this.metodoPagamento=new f}}var $=c(92340),n=c(94650),R=c(85210),G=c(11481),B=c(42684),L=c(73213),N=c(22719),Q=c(99571),b=c(36895),I=c(73546),S=c(97392),q=c(27227),Y=c(56709),y=c(4859),W=c(88742),j=c(74264),V=c(74670),F=c(90603),X=c(62267),H=c(24006),D=c(284),nn=c(59549);const tn=["puntiInput"];function en(t,a){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"div",0)(2,"div",7)(3,"span"),n._UZ(4,"img",8),n._uU(5,"Programma fidelizzazione"),n.qZA()(),n.TgZ(6,"div",9)(7,"div",10)(8,"label"),n._uU(9,"Punti accumulati"),n.qZA(),n.TgZ(10,"div",11)(11,"span"),n._uU(12),n.qZA()()(),n.TgZ(13,"div",10)(14,"label"),n._uU(15,"Massimo punti spendibili"),n.qZA(),n.TgZ(16,"div",11)(17,"span"),n._uU(18),n.qZA()()()(),n.TgZ(19,"div",9)(20,"label",12)(21,"b"),n._uU(22,"Usa punti"),n.qZA()(),n.TgZ(23,"mat-checkbox",13),n.NdJ("ngModelChange",function(i){n.CHM(e);const r=n.oxw();return n.KtG(r.incassa.isPuntiUsati=i)}),n.qZA(),n.TgZ(24,"mat-form-field",14)(25,"input",15,16),n.NdJ("input",function(i){n.CHM(e);const r=n.oxw();return n.KtG(r.incassa.puntiUsati=r.checkPunti(i.target.value))}),n.qZA()()(),n.TgZ(27,"div",9)(28,"div",10)(29,"label"),n._uU(30,"Abbuono programma fidelizzazione"),n.qZA(),n.TgZ(31,"div",11)(32,"span"),n._uU(33),n.ALo(34,"currency"),n.qZA()()()()(),n.TgZ(35,"div",0)(36,"div",1)(37,"div",2)(38,"label"),n._uU(39,"Totale da pagare"),n.qZA()(),n.TgZ(40,"div",3)(41,"div",4),n._uU(42),n.ALo(43,"currency"),n.qZA()()()(),n.BQk()}if(2&t){const e=n.oxw();n.xp6(12),n.Oqu(e.carrello.puntiTotali),n.xp6(6),n.Oqu(e.carrello.puntiMassimi),n.xp6(5),n.Q6J("ngModel",e.incassa.isPuntiUsati),n.xp6(2),n.Q6J("min",0)("max",e.carrello.puntiMassimi)("value",e.incassa.puntiUsati)("disabled",!e.incassa.isPuntiUsati),n.uIk("min",0)("max",e.carrello.puntiMassimi)("maxlength",e.carrello.puntiMassimi.toString().length),n.xp6(8),n.Oqu(n.xi3(34,12,e.getNettoSconto(),"EUR")),n.xp6(9),n.Oqu(n.xi3(43,15,e.getTotaleScontato(),"EUR"))}}function on(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",21),n.NdJ("click",function(){const r=n.CHM(e).$implicit,l=n.oxw(2);return n.KtG(l.metodoPagamento=r)}),n._UZ(1,"input",22),n.TgZ(2,"label"),n._uU(3),n.qZA(),n.TgZ(4,"div",23),n._UZ(5,"img",24),n.qZA()()}if(2&t){const e=a.$implicit,o=n.oxw(2);n.xp6(1),n.Q6J("checked",e.codice==o.metodoPagamento.codice),n.xp6(2),n.Oqu(e.descrizione),n.xp6(2),n.s9C("src",e.logo,n.LSH)}}function an(t,a){if(1&t&&(n.TgZ(0,"div",25),n._UZ(1,"div",26),n.qZA()),2&t){const e=n.oxw(2);n.xp6(1),n.Q6J("innerHtml",e.metodoPagamento.spiegazione,n.oJD)}}function rn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",27)(1,"div",28)(2,"button",29),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(2);return n.KtG(i.pagaCarrello())}),n._uU(3,"PAGA"),n.qZA()()()}}function cn(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",0)(2,"div",7)(3,"mat-icon"),n._uU(4," credit_card "),n.qZA(),n.TgZ(5,"span"),n._uU(6,"Seleziona il metodo di pagamento"),n.qZA()(),n.YNc(7,on,6,3,"div",17),n.YNc(8,an,2,1,"div",18),n.qZA(),n.TgZ(9,"div",0)(10,"div",7)(11,"mat-icon"),n._uU(12," credit_card "),n.qZA(),n.TgZ(13,"span"),n._uU(14,"Modalit\xe0 ricezione conferma pagamento"),n.qZA()(),n.TgZ(15,"div",9)(16,"label",19),n._uU(17,"Email"),n.qZA(),n.TgZ(18,"p"),n._uU(19),n.qZA()()(),n.YNc(20,rn,4,0,"div",20),n.BQk()),2&t){const e=n.oxw();n.xp6(7),n.Q6J("ngForOf",e.metodiPagamento),n.xp6(1),n.Q6J("ngIf",e.metodoPagamento&&e.metodoPagamento.spiegazione),n.xp6(11),n.hij("",e.incassa.email," "),n.xp6(1),n.Q6J("ngIf",2==e.carrello.stato)}}let ln=(()=>{const a=class extends v.P{constructor(o,i,r,l,_,g,h,C){super(C),this.ngZone=o,this.carrelloService=i,this.messageService=r,this.clienteService=l,this.navCtrl=_,this.toolbarService=g,this.iab=h,this.isReady=!1,this.metodoPagamento=new Z,this.nascondiContenuto=new n.vpe,this.incassa=new A}checkPunti(o){return isNaN(o)||o>this.carrello.puntiMassimi?(this.puntiInput.nativeElement.value=this.carrello.puntiMassimi,this.carrello.puntiMassimi):o}getNettoSconto(){return this.incassa.isPuntiUsati?.1*this.incassa.puntiUsati:0}getTotaleScontato(){return this.incassa.isPuntiUsati?this.carrello.importo-.1*this.incassa.puntiUsati:this.carrello.importo}pagaCarrello(){this.incassa.modalitaPagamento=this.metodoPagamento.codice,this.incassa.modalitaPagamento?(this.checkTelefono&&(this.incassa.cellulare=this.numeroTelefono),this.isReady=!1,this.carrelloService.inCassa(this.incassa).pipe((0,u.R)(this._unsubscribeAll)).subscribe(o=>
1{if(o.success)if(this.nascondiContenuto.emit(),-1!==o.redirectUrl.indexOf("riepilogo-bonifico")){const i=o.redirectUrl.split("?")[1].split("=")[1];this.navCtrl.navigateRoot("/carrello/riepilogo-bonifico",{queryParams:{sgid:i,error:!1}}),this.isReady=!0}else if(this.mobileService.isApp()){const i=this.iab.create(o.redirectUrl,"_blank",{hardwareback:"no",hideurlbar:"yes",location:"no",toolbar:"no"});i.on("loadstart").subscribe(r=>{if(-1!==r.url.indexOf("AreaRiservata.Web/")&&-1===r.url.indexOf("/api/")){const l=new URL(r.url),_=decodeURIComponent(l.href.replace(`${l.origin}/AreaRiservata.Web/`,"")).split("?");this.ngZone.run(()=>{this.navCtrl.navigateRoot(_[0],{replaceUrl:!0,queryParams:(0,j.x)(_[1])}),this.toolbarService.refreshCount(),this.toolbarService.refreshConteggioPunti()}),i.close()}})}else window.location.href=o.redirectUrl},o=>{this.messageService.error("Non \xe8 stato possibile completare l'operazione"),this.navCtrl.navigateRoot("/home")})):this.messageService.showMessage("Selezionare modalit\xe0 di pagamento",!0)}ngOnInit(){this.carrelloService.getModalitaPagamento().pipe((0,u.R)(this._unsubscribeAll)).subscribe(o=>{this.metodiPagamento=o,this.isReady=!0}),this.clienteService.getContatti({preferUnici:!0}).pipe((0,u.R)(this._unsubscribeAll)).subscribe(o=>{this.numeroTelefono=o.cellulare,this.incassa.email=o.email}),this.incassa.isPuntiUsati=!0,this.incassa.puntiUsati=this.carrello.puntiMassimi}};let t=a;return a.\u0275fac=function(i){return new(i||a)(n.Y36(n.R0b),n.Y36(R.H),n.Y36(B.e),n.Y36(V.$z),n.Y36(F.SH),n.Y36(N.O),n.Y36(X.i),n.Y36(Q.W))},a.\u0275cmp=n.Xpm({type:a,selectors:[["ar-checkout-carrello"]],viewQuery:function(i,r){if(1&i&&n.Gf(tn,5),2&i){let l;n.iGM(l=n.CRH())&&(r.puntiInput=l.first)}},inputs:{carrello:"carrello"},outputs:{nascondiContenuto:"nascondiContenuto"},features:[n.qOj],decls:11,vars:6,consts:[[1,"cart-block"],[1,"content-cart-totale"],[1,"cart-totale-label"],[1,"cart-totale-importo"],[1,"cart-block-importo-value"],[4,"ngIf"],[4,"arLoading"],[1,"header-cart-block"],["src","assets/imgs/icons/doppio-vantaggio.png"],[1,"content-cart-block"],[1,"punti-row"],[1,"cart-block-importo"],["for","puntiMassimi"],[3,"ngModel","ngModelChange"],[1,"form-field-punti"],["matInput","","id","puntiMassimi","name","puntiMassimi","type","number","min","0","pattern","\\d",2,"width","100%",3,"min","max","value","disabled","input"],["puntiInput",""],["class","content-cart-block",3,"click",4,"ngFor","ngForOf"],["class","content-cart-spiegazione",4,"ngIf"],[2,"font-size","small","color","#0074bd","font-weight","bold"],["class","cart-proceed-to-payment-outer",4,"ngIf"],[1,"content-cart-block",3,"click"],["name","group1","type","radio",3,"checked"],[1,"cart-block-img"],[3,"src"],[1,"content-cart-spiegazione"],[3,"innerHtml"],[1,"cart-proceed-to-payment-outer"],[1,"cart-proceed-to-payment-inner"],["mat-flat-button","",1,"ar-button","paga-button",3,"click"]],template:function(i,r){1&i&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"label"),n._uU(4,"Totale"),n.qZA()(),n.TgZ(5,"div",3)(6,"div",4),n._uU(7),n.ALo(8,"currency"),n.qZA()()()(),n.YNc(9,en,44,18,"ng-container",5),n.YNc(10,cn,21,4,"ng-container",6)),2&i&&(n.xp6(7),n.Oqu(n.xi3(8,3,r.carrello.importo,"EUR")),n.xp6(2),n.Q6J("ngIf",r.carrello.puntiTotali>0&&r.carrello.puntiMassimi>0),n.xp6(1),n.Q6J("arLoading",!r.isReady))},dependencies:[b.sg,b.O5,S.Hw,H.JJ,H.On,q.m,Y.oG,D.Nt,nn.KE,y.lW,b.H9],styles:['.cart-block[_ngcontent-%COMP%]{padding:20px}.content-cart-totale[_ngcontent-%COMP%]{padding:25px 15px;background-color:#f1faff}.cart-totale-label[_ngcontent-%COMP%]{display:inline-block;font-size:24px}.cart-totale-importo[_ngcontent-%COMP%]{display:inline-block;float:right;font-size:26px}.cart-block-img[_ngcontent-%COMP%]{float:right}.cart-block-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:25px}.content-cart-spiegazione[_ngcontent-%COMP%]{margin-top:25px;padding:15px;background-color:#f1faff}.header-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:initial;vertical-align:super}.header-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%], .header-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{vertical-align:bottom;margin-right:5px}.header-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{height:auto;width:24px}.cart-disabled[_ngcontent-%COMP%]{color:#909090}.cart-sms[_ngcontent-%COMP%]{line-height:1.5em}.cart-label[_ngcontent-%COMP%]{font-size:small;display:block}.cell-group-icon-number[_ngcontent-%COMP%] .mat-mdc-checkbox[_ngcontent-%COMP%]{margin-left:15px}.paga-button[_ngcontent-%COMP%]{width:100%}.punti-row[_ngcontent-%COMP%]{line-height:26px}.content-cart-block[_ngcontent-%COMP%] .mat-mdc-checkbox[_ngcontent-%COMP%]{margin-left:15px;margin-right:15px}[type=radio][_ngcontent-%COMP%]:checked, [type=radio][_ngcontent-%COMP%]:not(:checked){position:absolute;
1left:-9999px}[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%], [type=radio][_ngcontent-%COMP%]:not(:checked) + label[_ngcontent-%COMP%]{position:relative;padding-left:28px;cursor:pointer;line-height:20px;display:inline-block;color:#535353}[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:before, [type=radio][_ngcontent-%COMP%]:not(:checked) + label[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:0;width:18px;height:18px;border:1px solid #ddd;border-radius:100%;background:#fff}[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after, [type=radio][_ngcontent-%COMP%]:not(:checked) + label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;background:#0074bd;position:absolute;top:4px;left:4px;border-radius:100%;transition:all .2s ease}[type=radio][_ngcontent-%COMP%]:not(:checked) + label[_ngcontent-%COMP%]:after{opacity:0;transform:scale(0)}[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{opacity:1;transform:scale(1)}']}),t})();function sn(t,a){if(1&t&&(n.TgZ(0,"mat-card",10)(1,"mat-card-header")(2,"mat-icon",11),n._uU(3,"warning"),n.qZA(),n.TgZ(4,"mat-card-subtitle",12)(5,"span"),n._uU(6),n.qZA()()()()),2&t){const e=a.$implicit;n.xp6(6),n.Oqu(e)}}function _n(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",8),n.YNc(2,sn,7,1,"mat-card",9),n.qZA(),n.BQk()),2&t){const e=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",e.carrello.notifiche)}}function gn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"button",26),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(4).$implicit,r=n.oxw(4);return n.KtG(r.removeFromCart(i))}),n.TgZ(1,"mat-icon"),n._uU(2,"remove_shopping_cart"),n.qZA()()}if(2&t){const e=n.oxw(8);n.Q6J("disabled",e.readOnly)}}function dn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"button",27),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(4).$implicit,r=n.oxw(4);return n.KtG(r.popupError(i))}),n.TgZ(1,"mat-icon"),n._uU(2,"remove_shopping_cart"),n.qZA()()}}function pn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,gn,3,1,"button",24),n.YNc(2,dn,3,0,"ng-template",null,25,n.W1O),n.BQk()),2&t){const e=n.MAs(3),o=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngIf",!o.isNotSfilabile)("ngIfElse",e)}}function mn(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-card",28)(2,"mat-card-header")(3,"mat-icon",11),n._uU(4,"warning"),n.qZA(),n.TgZ(5,"mat-card-subtitle",12),n._uU(6),n.qZA()()(),n.BQk()),2&t){const e=n.oxw(3).$implicit;n.xp6(6),n.Oqu(e.messaggio)}}function un(t,a){if(1&t&&n._UZ(0,"p",30),2&t){const e=n.oxw().$implicit;n.Q6J("innerHTML",e.introduzione,n.oJD)}}function fn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div"),n.YNc(1,un,1,1,"p",31),n.TgZ(2,"label",32)(3,"mat-checkbox",33),n.NdJ("change",function(i){const l=n.CHM(e).$implicit,_=n.oxw(4).$implicit,g=n.oxw(4);return n.KtG(g.setConsensoValue(_.idPolizza,l.codice,i.checked))}),n.qZA(),n._UZ(4,"span",34),n.qZA()()}if(2&t){const e=a.$implicit,o=n.oxw(4).$implicit,i=n.oxw(4);n.xp6(1),n.Q6J("ngIf",e.introduzione),n.xp6(1),n.Q6J("for",e.codice+o.idPolizza),n.xp6(1),n.Q6J("id",e.codice+o.idPolizza)("name",e.codice+o.idPolizza)("disabled",i.readOnly)("checked",i.readOnly),n.xp6(1),n.Q6J("innerHTML",e.descrizione,n.oJD)}}function hn(t,a){if(1&t&&(n.TgZ(0,"div")(1,"div",29),n._UZ(2,"div",30),n.YNc(3,fn,5,7,"div",13),n.qZA()()),2&t){const e=n.oxw(3).$implicit;n.xp6(2),n.Q6J("innerHTML",e.consensi.intestazione,n.oJD),n.xp6(1),n.Q6J("ngForOf",e.consensi.checks)}}function vn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",35)(1,"p",36),n._uU(2," Clicca "),n.TgZ(3,"a",37),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(3).$implicit,r=n.oxw(4);return n.KtG(r.aggiungiTitoliPrecedenti(i.idPolizza,i.id))}),n._uU(4,"qui"),n.qZA(),n._uU(5," per aggiungere i titoli precedenti al carrello "),n.qZA()()}}function xn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",35)(1,"p",36),n._uU(2," Clicca "),n.TgZ(3,"a",37),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(3).$implicit,r=n.oxw(4);return n.KtG(r.aggiungiTitoliMancanti(i.idPolizza,i.id))}),n._uU(4,"qui"),n.qZA(),n._uU(5," per aggiungere i titoli mancanti al carrello "),n.qZA()()}}function Cn(t,a){if(1&t&&(n.ynx(0),n._UZ(1,"span",38),n.BQk()),2&t){const e=a.$implicit;n.xp6(1),n.Q6J("innerHtml",e,n.oJD)}}function bn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Cn,2,1,"ng-container",13),n.BQk()),2&t){const e=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngForOf",e.messaggiHtml)}}function zn(t,a){if(1&t&&(n.TgZ(0,"div",8)(1,"div",17)(2,"mat-icon"),n._uU(3,"insert_drive_file"),n.qZA(),n.TgZ(4,"div",18)(5,"span"),n._uU(6),n.qZA(),n.TgZ(7,"span"),n._uU(8),n.qZA()()(),n.TgZ(9,"div",19)(10,"div",20)(11,"label"),n._uU(12,"Data Scadenza"),n.qZA(),n.TgZ(13,"span"),n._uU(14),n.ALo(15,"date"),n.qZA()(),n.TgZ(16,"div",21)(17,"div",22),n._uU(18),n.ALo(19,"currency"),n.qZA(),n.YNc(20,pn,4,2,"ng-container",5),n.qZA(),n.YNc(21,mn,7,1,"ng-container",5),n.YNc(22,hn,4,2,"div",5),n.YNc(23,vn,6,0,"div",23),n.YNc(24,xn,6,0,"div",23),n.YNc(25,bn,2,1,"ng-container",5),n.qZA()()),2&t){const e=n.oxw(2).$implicit,o=n.oxw(4);n.xp6(6),n.Oqu(e.idPolizza),n.xp6(2),n.Oqu(e.desProdottoCompleto),n.xp6(6),n.Oqu(n.xi3(15,10,e.dataScadenza,"dd/MM/yyyy")),n.xp6(4),n.hij(" ",n.xi3(19,13,e.importo,"EUR")," "),n.xp6(2),n.Q6J("ngIf",2!=o.carrello.stato),n.xp6(1),n.Q6J("ngIf",e.messaggio),n.xp6(1),n.Q6J("ngIf",2==e.stato&&null!==e.consensi),n.xp6(1),n.Q6J("ngIf",1==e.stato),n.xp6(1),n.Q6J("ngIf",4==e.stato),n.xp6(1),n.Q6J("ngIf",e.messaggiHtml&&e.messaggiHtml.length>0)}}function Tn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,zn,26,16,"div",16),n.BQk()),2&t){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("arLoading",e.isLoading)}}function Pn(t,a){if(1&t&&(n.TgZ(0,"div"),n.YNc(1,Tn,2,1,"ng-container",5),n.qZA()),2&t){const e=a.$implicit;n.xp6(1),n.Q6J("ngIf",!e.idPolizzone)}}function Zn(t,a){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"remove"),n.qZA())}function Mn(t,a){1&t&&(n.TgZ(0,"mat-icon"),n._uU(1,"add"),n.qZA())}function kn(t,a){if(1&t){const e=n.EpF();
1n.TgZ(0,"div",41)(1,"button",42),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(6);return n.KtG(i.expandPolizzone=!i.expandPolizzone)}),n.YNc(2,Zn,2,0,"mat-icon",5),n.YNc(3,Mn,2,0,"mat-icon",5),n.qZA()()}if(2&t){const e=n.oxw(6);n.xp6(2),n.Q6J("ngIf",e.expandPolizzone),n.xp6(1),n.Q6J("ngIf",!e.expandPolizzone)}}function yn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"button",43),n.NdJ("click",function(){n.CHM(e);const i=n.oxw().$implicit,r=n.oxw(5);return n.KtG(r.removeFromCart(i))}),n.TgZ(1,"mat-icon"),n._uU(2,"remove_shopping_cart"),n.qZA()()}}function An(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"mat-card",28)(2,"mat-card-header")(3,"mat-icon",11),n._uU(4,"warning"),n.qZA(),n.TgZ(5,"mat-card-subtitle",12),n._uU(6),n.qZA()()(),n.BQk()),2&t){const e=a.$implicit;n.xp6(6),n.Oqu(e)}}function On(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"button",48),n.NdJ("click",function(){n.CHM(e);const i=n.oxw().$implicit,r=n.oxw(7);return n.KtG(r.removeFromCart(i))}),n.TgZ(1,"mat-icon"),n._uU(2,"remove_shopping_cart"),n.qZA()()}if(2&t){const e=n.oxw(8);n.Q6J("disabled",e.readOnly)}}function Un(t,a){if(1&t&&(n.TgZ(0,"div",45)(1,"div",19)(2,"div",20)(3,"label"),n._uU(4),n.qZA(),n.TgZ(5,"span"),n._uU(6),n.qZA()(),n.YNc(7,On,3,1,"button",46),n._UZ(8,"div",47),n.qZA()()),2&t){const e=a.$implicit,o=n.oxw(7);n.xp6(4),n.Oqu(e.idPolizza),n.xp6(2),n.Oqu(e.desPolizza),n.xp6(1),n.Q6J("ngIf",2!=o.carrello.stato&&!e.isNotSfilabile)}}function wn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Un,9,3,"div",44),n.BQk()),2&t){const e=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",e.polizzePolizzone)}}function In(t,a){if(1&t&&n._UZ(0,"p",30),2&t){const e=n.oxw().$implicit;n.Q6J("innerHTML",e.introduzione,n.oJD)}}function En(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div"),n.YNc(1,In,1,1,"p",31),n.TgZ(2,"label",32)(3,"mat-checkbox",33),n.NdJ("change",function(i){const l=n.CHM(e).$implicit,_=n.oxw(2).$implicit,g=n.oxw(6);return n.KtG(g.setConsensoValue(_.idPolizza,l.codice,i.checked))}),n.qZA(),n._UZ(4,"span",34),n.qZA()()}if(2&t){const e=a.$implicit,o=n.oxw(2).$implicit,i=n.oxw(6);n.xp6(1),n.Q6J("ngIf",e.introduzione),n.xp6(1),n.Q6J("for",e.codice+o.idPolizza),n.xp6(1),n.Q6J("id",e.codice+o.idPolizza)("name",e.codice+o.idPolizza)("disabled",i.readOnly)("checked",i.readOnly),n.xp6(1),n.Q6J("innerHTML",e.descrizione,n.oJD)}}function Jn(t,a){if(1&t&&(n.TgZ(0,"div")(1,"div",29),n._UZ(2,"div",30),n.YNc(3,En,5,7,"div",13),n.qZA()()),2&t){const e=n.oxw().$implicit;n.xp6(2),n.Q6J("innerHTML",e.consensi.intestazione,n.oJD),n.xp6(1),n.Q6J("ngForOf",e.consensi.checks)}}function Rn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Jn,4,2,"div",5),n.BQk()),2&t){const e=a.$implicit;n.xp6(1),n.Q6J("ngIf",2==e.stato&&null!==e.consensi)}}function Nn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",35)(1,"p",36),n._uU(2," Clicca "),n.TgZ(3,"a",37),n.NdJ("click",function(){n.CHM(e);const i=n.oxw().$implicit,r=n.oxw(5);return n.KtG(r.aggiungiTitoliPrecedenti(i.idPolizza,i.id))}),n._uU(4,"qui"),n.qZA(),n._uU(5," per aggiungere i titoli precedenti al carrello "),n.qZA()()}}function Sn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",35)(1,"p",36),n._uU(2," Clicca "),n.TgZ(3,"a",37),n.NdJ("click",function(){n.CHM(e);const i=n.oxw().$implicit,r=n.oxw(5);return n.KtG(r.aggiungiTitoliMancanti(i.idPolizza,i.id))}),n._uU(4,"qui"),n.qZA(),n._uU(5," per aggiungere i titoli mancanti al carrello "),n.qZA()()}}function qn(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",8)(2,"div",17)(3,"mat-icon"),n._uU(4,"folder"),n.qZA(),n.TgZ(5,"div",18)(6,"span"),n._uU(7),n.qZA(),n.TgZ(8,"span"),n._uU(9,"Cartella"),n.qZA()(),n.YNc(10,kn,4,2,"div",39),n.qZA(),n.TgZ(11,"div",19)(12,"div",20)(13,"label"),n._uU(14,"Data Scadenza"),n.qZA(),n.TgZ(15,"span"),n._uU(16),n.ALo(17,"date"),n.qZA()(),n.TgZ(18,"div",21)(19,"div",22),n._uU(20),n.ALo(21,"currency"),n.qZA(),n.YNc(22,yn,3,0,"button",40),n.qZA(),n.YNc(23,An,7,1,"ng-container",13),n.YNc(24,wn,2,1,"ng-container",5),n.YNc(25,Rn,2,1,"ng-container",13),n.YNc(26,Nn,6,0,"div",23),n.YNc(27,Sn,6,0,"div",23),n.qZA()(),n.BQk()),2&t){const e=a.$implicit,o=n.oxw(5);n.xp6(7),n.Oqu(e.idPolizza),n.xp6(3),n.Q6J("ngIf",e.espandibile),n.xp6(6),n.Oqu(n.xi3(17,10,e.dataScadenza,"dd/MM/yyyy")),n.xp6(4),n.hij(" ",n.xi3(21,13,e.importo,"EUR")," "),n.xp6(2),n.Q6J("ngIf",2!=o.carrello.stato),n.xp6(1),n.Q6J("ngForOf",e.messaggi),n.xp6(1),n.Q6J("ngIf",o.expandPolizzone),n.xp6(1),n.Q6J("ngForOf",e.polizzePolizzone),n.xp6(1),n.Q6J("ngIf",1==e.stato),n.xp6(1),n.Q6J("ngIf",4==e.stato)}}function Qn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,qn,28,16,"ng-container",13),n.BQk()),2&t){const e=n.oxw(4);n.xp6(1),n.Q6J("ngForOf",e.carrelloItemsPolizzone)}}function Yn(t,a){if(1&t){const e=n.EpF();
1n.TgZ(0,"div",49)(1,"div",50)(2,"button",51),n.NdJ("click",function(){n.CHM(e);const i=n.oxw(4);return n.KtG(i.verificaCarrello())}),n._uU(3," PROCEDI AL PAGAMENTO "),n.qZA()()()}}function Fn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"ar-checkout-carrello",52),n.NdJ("nascondiContenuto",function(){n.CHM(e);const i=n.oxw(4);return n.KtG(i.nascondiContenuto=!0)}),n.qZA()}if(2&t){const e=n.oxw(4);n.Q6J("carrello",e.carrello)}}function Hn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,Pn,2,1,"div",13),n.YNc(2,Qn,2,1,"ng-container",5),n.YNc(3,Yn,4,0,"div",14),n.YNc(4,Fn,1,1,"ar-checkout-carrello",15),n.BQk()),2&t){const e=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",e.carrelloItems),n.xp6(1),n.Q6J("ngIf",e.carrelloItemsPolizzone.length>0),n.xp6(1),n.Q6J("ngIf",2!=e.carrello.stato),n.xp6(1),n.Q6J("ngIf",2==e.carrello.stato)}}function Bn(t,a){if(1&t&&(n.ynx(0),n.YNc(1,_n,3,1,"ng-container",5),n.YNc(2,Hn,5,4,"ng-container",7),n.BQk()),2&t){n.oxw();const e=n.MAs(4),o=n.oxw();n.xp6(1),n.Q6J("ngIf",o.carrello&&o.carrello.notifiche.length>0),n.xp6(1),n.Q6J("ngIf",o.carrelloItems&&o.carrelloItems.length>0)("ngIfElse",e)}}function Ln(t,a){1&t&&(n.TgZ(0,"div",8)(1,"div",17)(2,"mat-icon"),n._uU(3," shopping_cart "),n.qZA()(),n.TgZ(4,"div",19)(5,"h3"),n._uU(6,"Il tuo carrello \xe8 vuoto"),n.qZA()()())}function Dn(t,a){if(1&t&&(n.ynx(0),n.TgZ(1,"div",4),n.YNc(2,Bn,3,3,"ng-container",5),n.qZA(),n.YNc(3,Ln,7,0,"ng-template",null,6,n.W1O),n.BQk()),2&t){const e=n.oxw();n.xp6(1),n.Q6J("hidden",e.nascondiContenuto),n.xp6(1),n.Q6J("ngIf",e.carrello&&e.carrello.items)}}let Kn=(()=>{const a=class extends v.P{constructor(o,i,r,l,_,g,h){super(h),this.carrelloService=o,this.sanitizer=i,this.messageService=r,this.downloadService=l,this.toolbarService=_,this.activeRoute=g,this.expandPolizzone=!1,this.isReady=!1,this.nascondiContenuto=!1,this.readOnly=!1,this.carrello=new d,this.consensiModel=new Array,this.carrelloItemsPolizzone=[],this.activeRoute.queryParams.subscribe(C=>{this.valida=C.valida||!1})}verificaCarrello(){this.isReady=!1;for(let o=0;o<this.consensiModel.length;o++)if(this.consensiModel[o].consensoModel.some(r=>!r.consenso))return this.messageService.showMessage("Per proseguire col pagamento tutti i consensi devono essere accettati",!0),void(this.isReady=!0);if(this.numeroPolizzeConsensi=0,this.consensiModel&&this.consensiModel.length>0)for(let o=0;o<this.consensiModel.length;o++){const i=this.consensiModel[o];if(i.idTitolo)this.numeroPolizzeConsensi=1,this.salvaConsensi(i.idPolizza,i.idTitolo,i.consensoModel);else{const r=this.carrello.items.filter(l=>l.idPolizzone===i.idPolizzone&&l.consensi&&l.consensi.checks&&l.consensi.checks.length>0);this.numeroPolizzeConsensi=r.length,r.forEach(l=>{this.salvaConsensi(l.idPolizza,l.id,l.consensi.checks)})}}else this.startVerificaCarrello()}startVerificaCarrello(){this.carrelloService.getCarrello(!0).pipe((0,u.R)(this._unsubscribeAll)).subscribe(o=>{this.upDateCarrello(o),this.carrelloItems.forEach(i=>{if(i.consensi){i.consensi.intestazione=this.sanitizer.bypassSecurityTrustHtml(i.consensi.intestazione);for(const r of i.consensi.checks)r.descrizione=this.sanitizer.bypassSecurityTrustHtml(r.descrizione);i.idPolizzone?this.consensiModel.push(new J(i.idPolizza,i.idPolizzone,i.id,i.consensi.checks)):i.idPolizza&&i.consensi&&this.consensiModel.push(new J(i.idPolizza,null,i.id,i.consensi.checks))}if(i.messaggiHtml&&i.messaggiHtml.length>0){const r=[];for(const l of i.messaggiHtml)r.push(this.sanitizer.bypassSecurityTrustHtml(l));i.messaggiHtml=r}}),this.isReady=!0,setTimeout(()=>{const i=document.getElementsByClassName("informativa-privacy");if(i&&i.length)for(let r=0;r<i.length;r++){const l=i[r];l.addEventListener("click",_=>{this.mobileService.isApp()&&(_.preventDefault(),window.open(l.href.replace(/^.*\/\/[^\/]+/,$.N.apiBaseUrl),"_system"))})}},100)},o=>{this.messageService.showMessage("Errore: "+o,!0)})}salvaConsensi(o,i,r){return this.carrelloService.saveConsensi(o,i,r.map(l=>({codice:l.codice,consenso:l.consenso}))).subscribe(l=>{this.numeroPolizzeConsensi-=1,0===this.numeroPolizzeConsensi&&(this.readOnly=!0,this.startVerificaCarrello())},l=>{this.isReady=!0,this.messageService.showMessage("Si \xe8 verificato un errore durante il tentativo di salvataggio dei consensi",!0)})}popupError(o){this.messageService.showMessage("Il sistema permette di pagare tutti i titoli aventi medesima
1scadenza contrattuale in un\u2019unica soluzione. Qualora in relazione ad una delle Sue polizze avesse gi\xe0 provveduto ad inviare disdetta nei termini contrattualmente consentiti o se necessitasse di maggiori informazioni sulle modalit\xe0 di pagamento dei premi successivi al primo tramite Area Riservata La invitiamo a contattare la Sua Agenzia di riferimento ",!1,"600px",!0)}removeFromCart(o){o.isLoading=!0;let i=[];o.polizzePolizzone&&o.polizzePolizzone.length>0?i=o.polizzePolizzone.map(r=>({idPolizza:r.idPolizza,idTitolo:r.id})):i.push({idPolizza:o.idPolizza,idTitolo:o.id}),this.carrelloService.removeTitoli(o.idPolizza,i).pipe((0,u.R)(this._unsubscribeAll)).subscribe(r=>{this.toolbarService.refreshCount(),this._getCarrelloObs(!1).subscribe(()=>{o.isLoading=!1},l=>{o.isLoading=!1})},r=>{this.messageService.showMessage("Impossibile rimuovere",!0)})}setConsensoValue(o,i,r){this.consensiModel.find(l=>l.idPolizza===o).consensoModel.find(l=>l.codice===i).consenso=r}getCarrello(){this._getCarrelloObs(this.valida).subscribe()}_getCarrelloObs(o){return this.carrelloService.getCarrello(!1).pipe((0,u.R)(this._unsubscribeAll),(0,m.U)(i=>{this.upDateCarrello(i),o?this.startVerificaCarrello():this.isReady=!0},i=>{this.messageService.showMessage("Errore: "+i,!0)}))}aggiungiTitoliMancanti(o,i){this.isReady=!1,this.carrelloService.aggiungiTitoliMancanti(o,i).subscribe(r=>{this.messageService.showMessage("Titoli aggiunti al carrello",!1),this.getCarrello()},r=>{this.isReady=!0,this.messageService.showMessage("Si \xe8 verificato un errore durante il tentativo di aggiunta dei titoli al carrello",!0)})}aggiungiTitoliPrecedenti(o,i){this.isReady=!1,this.carrelloService.aggiungiTitoliPrecedenti(o,i).subscribe(r=>{this.messageService.showMessage("Titoli aggiunti al carrello",!1),this.getCarrello()},r=>{this.isReady=!0,this.messageService.showMessage("Si \xe8 verificato un errore durante il tentativo di aggiunta dei titoli al carrello",!0)})}mergeDatiPolizzoneCarrello(o){const i=[],r=o.filter(_=>_.idPolizzone&&Number(_.idPolizzone)>0),l=this.groupBy(r,_=>[_.idPolizzone]);for(const _ in l)if(l.hasOwnProperty(_)){const g=new z;g.polizzePolizzone=l[_],g.idPolizza=l[_][0].idPolizzone.toString(),g.importo=0,g.maxPuntiSpendibili=0,g.isPolizzaFea=!0,g.stato=0,g.consensi=null,g.polizzeAuto=[],g.desProdottoCompleto="Cartella";for(const h in l[_]){const C=l[_][h];if(C.isPolizzaFea||(g.isPolizzaFea=!1),0!==C.stato&&(g.stato=C.stato,g.consensi=C.consensi),C.isTitoloVisible){const K=this.extend({},C);K.importo=null,g.polizzeAuto.push(K)}g.dataScadenza=C.dataScadenza,g.maxPuntiSpendibili+=C.maxPuntiSpendibili,g.importo+=C.importo}g.messaggi=g.polizzePolizzone.filter(h=>h.messaggio).map(h=>h.messaggio),g.espandibile=g.polizzePolizzone.some(h=>h.isTitoloVisible),i.push(g)}return i}groupBy(o,i){const r={};return o.forEach(l=>{const _=JSON.stringify(i(l));r[_]=r[_]||[],r[_].push(l)}),Object.keys(r).map(l=>r[l])}extend(o,i){for(const r in i)i.hasOwnProperty(r)&&(o[r]=i[r]);return o}upDateCarrello(o){this.consensiModel=[],this.carrello=o,this.carrelloItems=o.items||[],this.carrelloItemsPolizzone=this.mergeDatiPolizzoneCarrello(o.items||[])}ngOnInit(){this.getCarrello()}onDestroy(){this.toolbarService.refreshCount()}};let t=a;return a.\u0275fac=function(i){return new(i||a)(n.Y36(R.H),n.Y36(G.H7),n.Y36(B.e),n.Y36(L.K),n.Y36(N.O),n.Y36(s.gz),n.Y36(Q.W))},a.\u0275cmp=n.Xpm({type:a,selectors:[["ar-carrello"]],features:[n.qOj],decls:5,vars:2,consts:[[3,"testo"],["ngClass.lt-md","mobile-content-title",1,"content-title",2,"margin-bottom","15px"],[1,"title"],[4,"arLoading"],[3,"hidden"],[4,"ngIf"],["emptyList",""],[4,"ngIf","ngIfElse"],[1,"cart-block"],["appearance","outlined","class","white-text-on-orange",4,"ngFor","ngForOf"],["appearance","outlined",1,"white-text-on-orange"],["mat-card-avatar",""],[2,"color","white"],[4,"ngFor","ngForOf"],["class","cart-proceed-to-payment-outer",4,"ngIf"],[3,"carrello","nascondiContenuto",4,"ngIf"],["class","cart-block",4,"arLoading"],[1,"header-cart-block"],[1,"cart-block-id-desc-prodotto"],[1,"content-cart-block"],[1,"cart-block-data"],[1,"cart-block-importo"],[1,"cart-block-importo-value",2,"vertical-align","middle"],["class","collection-item",4,"ngIf"],["mat-mini-fab","","class","ar-button-warning remove-from-cart-btn",3,"disabled","click",4,"ngIf","ngIfElse"],["notSfilabileButton",""],["mat-mini-fab","",1,"ar-button-warning","remove-from-cart-btn",3,"disabled","click"],["mat-mini-fab","",1,"ar-button-warning","remove-from-cart-disabled-btn",3,"click"],["appearance","outlined",1,"white-text-on-red",2,"margin-top","10px"],[1,"row",2,"margin-bottom","0px"],[3,"innerHTML"],[3,"innerHTML",4,"ngIf"],[2,"height","auto",3,"for"],[3,"id","name","disabled","checked","change"],[2,"height","auto","color","#0074bd","display","inline","margin-left","5px",3,"innerHTML"],[1,"collection-item"],[2,"font-weight","bold"],[2,"cursor","pointer",3,"click"],[1,"messaggi-html-container",3,"innerHtml"],["style"," float: right;",4,"ngIf"],["mat-mini-fab","","class","ar-button-warning remove-from-cart-btn",3,"click",4,"ngIf"],[2,"float","right"],["mat-icon-button","",2,"background-color","#0c7abf",3,"click"],["mat-mini-fab","",1,"ar-button-warning","remove-from-cart-btn",3,"click"],["style","margin:10px;margin-right: 0px;",4,"ngFor","ngForOf"],[2,"margin","10px","margin-right","0px"],["mat-mini-fab","","style","float:right","class","ar-button-warning remove-from-cart-btn",3,"disabled","click",4,"ngIf"],[2,"clear","both"],["mat-mini-fab","",1,"ar-button-warning","remove-from-cart-btn",2,"float","right",3,"disabled","click"],[1,"cart-proceed-to-payment-outer"],[1,"cart-proceed-to-payment-inner"],["mat-flat-button","",1,"ar-button",3,"click"],[3,"carrello","nascondiContenuto"]],template:function(i,r){1&i&&(n._UZ(0,"ar-back-button",0),n.TgZ(1,"div",1)(2,"h1",2),n._uU(3,"Carrello"),n.qZA()(),n.YNc(4,Dn,5,2,"ng-container",3)),2&i&&(n.Q6J("testo","INDIETRO"),n.xp6(4),n.Q6J("arLoading",!r.isReady))},dependencies:[b.sg,b.O5,I.a8,I.kc,I.dk,I.$j,S.Hw,q.m,Y.oG,y.lW,y.RK,y.nh,W.W,ln,b.H9,b.uU],styles:["@media screen and (max-width: 960px){ar-carrello .outer-content-mobile{margin-top:60px}ar-carrello .back-btn{margin-top:60px}}ar-carrello .mat-mdc-button[disabled][disabled]{background:#e3e3e3}ar-carrello .cart-block{padding:20px}ar-carrello .header-cart-block{padding:15px;background-color:var(--primary-color);color:#fff}ar-carrello .header-cart-block span,ar-carrello .content-cart-block span{dis
1play:block}ar-carrello .header-cart-block>mat-icon{margin-right:10px}ar-carrello .content-cart-block{padding:25px 15px;border-bottom:1px solid #b6b6b6}ar-carrello .cart-block-data,ar-carrello .cart-block-importo{display:inline-block}ar-carrello .cart-block-importo{float:right;font-size:26px}ar-carrello .cart-block-data label{display:block;padding-bottom:5px;color:#0074bd;font-weight:700}ar-carrello .cart-block-importo-value{display:inline}ar-carrello .cart-proceed-to-payment-outer{width:100%;padding-top:20px;padding-bottom:20px}ar-carrello .cart-proceed-to-payment-inner{width:250px;margin:0 auto;text-align:center}ar-carrello .cart-block-id-desc-prodotto{display:inline-block}ar-carrello .header-cart-block i{vertical-align:top;margin-right:5px}ar-carrello .remove-from-cart-disabled-btn{margin-left:15px;background-color:#00000052!important}ar-carrello .remove-from-cart-btn{margin-left:15px;background-color:#f6931c!important}@media screen and (max-width: 960px){ar-carrello .cart-block{margin-top:60px}}@media screen and (max-width: 481px){ar-carrello .cart-block-importo{float:none;width:100%}ar-carrello .cart-block-importo-value{padding-top:15px}ar-carrello .remove-from-cart-btn{margin-left:0;margin-top:15px}ar-carrello .cart-proceed-to-payment-inner{width:100%}ar-carrello .cart-proceed-to-payment-inner button,ar-carrello .paga-button{width:calc(100% - 35px)!important}}ar-carrello .msg-card-container{padding-top:2%}ar-carrello .notifica-card-container{padding-top:2%;padding-right:2%;padding-left:2%}ar-carrello .white-text-on-red{background-color:red;color:#fff}ar-carrello .white-text-on-orange{background-color:#f6931c;color:#fff}ar-carrello .messaggi-html-container{margin-top:1em}ar-carrello .messaggi-html-container p{margin:0}\n"],encapsulation:2}),t})();function $n(t,a){1&t&&(n.TgZ(0,"h3"),n._uU(1," Il tuo pagamento con Carta di Credito \xe8 stato eseguito con successo! "),n.qZA())}function Gn(t,a){1&t&&(n.TgZ(0,"h3"),n._uU(1," Il tuo pagamento con Satispay \xe8 stato eseguito con successo! "),n.qZA())}function Wn(t,a){if(1&t&&(n.TgZ(0,"h3"),n._uU(1),n.qZA()),2&t){const e=n.oxw(3);n.xp6(1),n.hij("Il tuo pagamento con ",e.riepilogoTransazione.metodoPagamento.desMetodoPagamento," \xe8 stato prenotato con successo!")}}function jn(t,a){if(1&t&&(n.TgZ(0,"div",5),n.YNc(1,$n,2,0,"h3",6),n.YNc(2,Gn,2,0,"h3",6),n.YNc(3,Wn,2,1,"h3",7),n.TgZ(4,"p"),n._uU(5,' Tra qualche minuto riceverai un messaggio al tuo indirizzo email contenente il riepilogo dell\'acquisto appena effettuato. Cliccando sul pulsante "Torna alla home", verrai reindirizzato sulla pagina delle coperture dove troverai, nei documenti della polizza che hai appena pagato, la quietanza di pagamento in formato PDF. '),n.qZA()()),2&t){const e=n.oxw(2);n.Q6J("ngSwitch",e.riepilogoTransazione.metodoPagamento.codMetodoPagamento),n.xp6(1),n.Q6J("ngSwitchCase","CARTA"),n.xp6(1),n.Q6J("ngSwitchCase","SATISPAY")}}function Vn(t,a){if(1&t){const e=n.EpF();n.TgZ(0,"div",2),n.YNc(1,jn,6,3,"div",3),n.TgZ(2,"button",4),n.NdJ("click",function(){n.CHM(e);const i=n.oxw();return n.KtG(i.backToCoperture())}),n._uU(3,"Torna alla home"),n.qZA()()}if(2&t){const e=n.oxw(),o=n.MAs(2);n.xp6(1),n.Q6J("ngIf",e.riepilogoTransazione.esitoPagamento)("ngIfElse",o)}}function Xn(t,a){1&t&&(n.TgZ(0,"p"),n._uU(1," Ti preghiamo di rivolgerti direttamente al tuo Consulente assicurativo Vittoria di fiducia dove hai stipulato la polizza. "),n.qZA())}function nt(t,a){1&t&&(n.TgZ(0,"p"),n._uU(1," Ti preghiamo di rivolgerti direttamente al tuo Consulente assicurativo Vittoria di fiducia dove hai stipulato la polizza. "),n.qZA())}function tt(t,a){if(1&t&&(n.TgZ(0,"h3"),n._uU(1),n.qZA(),n.TgZ(2,"p"),n._uU(3,"Siamo spiacenti ma il pagamento non \xe8 andato a buon fine."),n.qZA(),n.YNc(4,Xn,2,0,"p",8),n.YNc(5,nt,2,0,"p",8)),2&t){const e=n.oxw();n.xp6(1),n.hij("Il tuo pagamento con ",e.riepilogoTransazione.metodoPagamento.desMetodoPagamento," non \xe8 andato a buon fine!"),n.xp6(3),n.Q6J("ngIf","CARTA"==e.riepilogoTransazione.metodoPagamento.codMetodoPagamento),n.xp6(1),n.Q6J("ngIf","MYBANK"==e.riepilogoTransazione.metodoPagamento.codMetodoPagamento)}}let et=(()=>{const a=class extends v.P{constructor(o,i,r,l,_,g){super(_),this.carrelloService=o,this.route=i,this.navCtrl=r,this.router=l,this.toolbarService=g,this.isReady=!1,this.route.queryParams.subscribe(h=>{this.sgrid=h.sgrid,this.error=h.error})}backToCoperture(){this.navCtrl.navigateRoot("home")}ngOnInit(){this.carrelloService.riepilogoTransazione(this.sgrid,this.error).subscribe(o=>{this.registerNotifyActionProntForReview(),this.riepilogoTransazione=o,this.isReady=!0,this.toolbarService.refreshCount()},o=>{this.riepilogoTransazione=new k,this.riepilogoTransazione.esitoPagamento=!1,this.isReady=!0})}registerNotifyActionProntForReview(){}};let t=a;return a.\u0275fac=function(i){return new(i||a)(n.Y36(R.H),n.Y36(s.gz),n.Y36(F.SH),n.Y36(s.F0),n.Y36(Q.W),n.Y36(N.O))},a.\u0275cmp=n.Xpm({type:a,selectors:[["ar-return-from-gateway"]],features:[n.qOj],decls:3,vars:1,consts:[["class","inner-content",4,"arLoading"],["pagamentoFallito",""],[1,"inner-content"],[3,"ngSwitch",4,"ngIf","ngIfElse"],["mat-flat-button","",1,"ar-button",3,"click"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],[4,"ngIf"]],template:function(i,r){1&i&&(n.YNc(0,Vn,4,2,"div",0),n.YNc(1,tt,6,3,"
1ng-template",null,1,n.W1O)),2&i&&n.Q6J("arLoading",!r.isReady)},dependencies:[b.O5,b.RF,b.n9,b.ED,q.m,y.lW],styles:["a[_ngcontent-%COMP%]:hover{cursor:pointer}@media screen and (max-width: 960px){.inner-content[_ngcontent-%COMP%]{margin-top:20px!important}}"]}),t})();function it(t,a){if(1&t){const e=n.EpF();n.ynx(0),n.TgZ(1,"div",1)(2,"div",2),n._UZ(3,"img",3),n.TgZ(4,"h2"),n._uU(5,"Bonifico"),n.qZA()(),n.TgZ(6,"div",4)(7,"p"),n._uU(8," Ora puoi effettuare il Bonifico Bancario di importo pari a \u20ac "),n.TgZ(9,"b"),n._uU(10),n.ALo(11,"currency"),n.qZA(),n._uU(12," presso la tua banca intestandolo a "),n.TgZ(13,"b"),n._uU(14),n.qZA(),n._uU(15,' indicando nella causale: "'),n.TgZ(16,"b"),n._uU(17),n.qZA(),n._uU(18,'". '),n.qZA(),n.TgZ(19,"p")(20,"b"),n._uU(21," Nel caso in cui il pagamento si riferisca a pi\xf9 di una polizza, \xe8 necessario riportare nella causale tutti i numeri delle polizze interessate. Qualora lo spazio disponibile non consenta di inserirli tutti, ti chiediamo di effettuare pi\xf9 operazioni, ognuna delle quali dovr\xe0 riportare i numeri di polizza a cui il bonifico fa riferimento. "),n.qZA()(),n.TgZ(22,"p"),n._uU(23," Una volta ricevuto il pagamento provvederemo a regolarizzare i movimenti e ti invieremo un\u2019email di conferma, oltre che inserire la relativa documentazione nella sua Area Riservata, nella sezione Documenti Contrattuali di ciascun contratto pagato. In genere "),n.TgZ(24,"b"),n._uU(25,"sono necessari fino a 5 giorni lavorativi per completare l\u2019operazione"),n.qZA(),n._uU(26,", pertanto \xe8 normale che fino ad allora i titoli risultino ancora insoluti (da pagare). "),n.qZA(),n.TgZ(27,"p"),n._uU(28," Per qualsiasi dubbio o informazione sul processo di pagamento ti preghiamo di scriverci "),n.TgZ(29,"a",5),n.NdJ("click",function(){n.CHM(e);const i=n.oxw();return n.KtG(i.openIf())}),n.TgZ(30,"b"),n._uU(31,"cliccando qui"),n.qZA()(),n._uU(32,". "),n.qZA(),n.TgZ(33,"button",6),n.NdJ("click",function(){n.CHM(e);const i=n.oxw();return n.KtG(i.returnHome())}),n._uU(34,"Torna alla home"),n.qZA()()(),n.BQk()}if(2&t){const e=n.oxw();n.xp6(10),n.Oqu(n.xi3(11,3,e.bonificoModel.importo,"EUR")),n.xp6(4),n.hij("Vittoria Assicurazioni S.p.A., codice IBAN ",e.bonificoModel.iban,","),n.xp6(3),n.Oqu(e.bonificoModel.causale)}}let ot=(()=>{const a=class extends v.P{constructor(o,i,r,l){super(),this.navCtrl=o,this.route=i,this.carrelloService=r,this.toolbarService=l,this.route.queryParams.subscribe(_=>{this.sgrid=_.sgid})}openIf(){this.isAppMobileOld?location.href="https://www.vittoriaassicurazioni.com/contatti/assistenza-clienti/":window.open("https://www.vittoriaassicurazioni.com/contatti/assistenza-clienti/","_blank")}returnHome(){this.navCtrl.navigateRoot("home")}ngOnInit(){this.carrelloService.riepilogoBonifico(this.sgrid).subscribe(o=>{this.bonificoModel=o,this.toolbarService.refreshCount()},o=>{})}};let t=a;return a.\u0275fac=function(i){return new(i||a)(n.Y36(F.SH),n.Y36(s.gz),n.Y36(R.H),n.Y36(N.O))},a.\u0275cmp=n.Xpm({type:a,selectors:[["ar-riepilogo-bonifico"]],features:[n.qOj],decls:1,vars:1,consts:[[4,"arLoading"],[1,"cart-block"],["ngclass.lt-md","mobile-content-title",1,"content-title"],["src","assets/imgs/icons/icona-coperture.svg"],[1,"content-bonifico"],[2,"cursor","pointer",3,"click"],["mat-flat-button","",1,"ar-button",3,"click"]],template:function(i,r){1&i&&n.YNc(0,it,35,6,"ng-container",0),2&i&&n.Q6J("arLoading",!r.bonificoModel)},dependencies:[q.m,y.lW,b.H9],styles:[".content-title[_ngcontent-%COMP%]{display:flex;padding:0}.content-title[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:35px;height:auto;margin-right:5px;height:35px;margin-top:15px;padding-top:5px;margin-bottom:15px;padding-bottom:5px}.cart-block[_ngcontent-%COMP%]{padding:20px}.header-cart-block[_ngcontent-%COMP%]{padding:15px;background-color:var(--primary-color);color:#fff}.header-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .content-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}.header-cart-block[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{vertical-align:bottom;margin-right:5px}.content-bonifico[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:21px}@media screen and (max-width: 960px){.cart-block[_ngcontent-%COMP%]{margin-top:60px}}"]}),t})();var at=c(98674),rt=c(1576),ct=c(99762);const lt=[{path:"",component:Kn},{path:"return-from-gateway",component:et},{path:"riepilogo-bonifico",component:ot}];let st=(()=>{const a=class{};let t=a;return a.\u0275fac=function(i){return new(i||a)},a.\u0275mod=n.oAB({type:a}),a.\u0275inj=n.cJS({providers:[L.K],imports:[p.m,rt.ae,I.QW,S.Ps,s.Bz.forChild(lt),H.u5,at.z,Y.p9,D.c,y.ot,S.Ps,ct.n]}),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.