1"use strict";(self.webpackChunkSelfcareWebNew=self.webpackChunkSelfcareWebNew||[]).push([[901],{9901:(N,d,r)=>{r.r(d),r.d(d,{NoAuthRechargeModule:()=>J});var m=r(6895),u=r(3060),s=r(4006),M=r(6865),P=r(8939),x=r(3350),t=r(4650),y=r(4578),w=r(6648),A=r(7028),g=r(9549),_=r(284),C=r(3238),f=r(4385),h=r(1948);function Z(e,n){1&e&&(t.TgZ(0,"h2",12),t._uU(1,"Seleziona il numero telefonico da ricaricare"),t.qZA())}function T(e,n){1&e&&(t.TgZ(0,"h2",12),t._uU(1,"Seleziona il taglio della ricarica da effettuare e il metodo di pagamento"),t.qZA())}function b(e,n){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const a=t.oxw(2);t.xp6(1),t.hij(" ",a.getErrorMessage("msisdn")," ")}}function I(e,n){if(1&e&&(t.ynx(0),t.TgZ(1,"form",13)(2,"mat-form-field",14)(3,"mat-label"),t._uU(4,"Numero di telefono"),t.qZA(),t._UZ(5,"input",15),t.YNc(6,b,2,1,"mat-error",11),t.qZA()(),t.BQk()),2&e){const a=t.oxw();let i;t.xp6(1),t.Q6J("formGroup",a.msisdnForm),t.xp6(5),t.Q6J("ngIf",null==(i=a.msisdnForm.get("msisdn"))?null:i.invalid)}}function R(e,n){if(1&e&&(t.TgZ(0,"mat-option",31),t._uU(1),t.qZA()),2&e){const a=n.$implicit;t.Q6J("value",a.value),t.xp6(1),t.Oqu(a.key)}}function k(e,n){if(1&e&&(t.ynx(0),t.TgZ(1,"form",13)(2,"div",16)(3,"div",17),t._uU(4,"TAGLIO DELLA RICARICA"),t.qZA()(),t.TgZ(5,"div",18)(6,"mat-form-field")(7,"mat-label"),t._uU(8,"Importo"),t.qZA(),t.TgZ(9,"mat-select",19),t.YNc(10,R,2,2,"mat-option",20),t.qZA()()(),t.TgZ(11,"div",16)(12,"div",17),t._uU(13,"METODO DI PAGAMENTO"),t.qZA()(),t.TgZ(14,"div",21)(15,"div",22)(16,"span"),t._UZ(17,"img",23),t.qZA(),t.TgZ(18,"span"),t._UZ(19,"img",24),t.qZA(),t.TgZ(20,"span"),t._UZ(21,"img",25),t.qZA(),t.TgZ(22,"span"),t._UZ(23,"img",26),t.qZA()(),t.TgZ(24,"div",27)(25,"div",28)(26,"mat-radio-group",29)(27,"mat-radio-button",30),t._uU(28,"Carta di credito"),t.qZA()()()()()(),t.BQk()),2&e){const a=t.oxw();t.xp6(1),t.Q6J("formGroup",a.paymentForm),t.xp6(9),t.Q6J("ngForOf",a.paymentAmounts),t.xp6(17),t.Q6J("value","CREDIT_CARD")("checked",!0)}}const v=function(e){return{inactive:e}};function F(e,n){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"button",32),t.NdJ("click",function(){t.CHM(a);const o=t.oxw();return t.KtG(o.checkRechargeMsisdn())}),t._uU(2,"PROCEDI "),t.qZA(),t.BQk()}if(2&e){const a=t.oxw();t.xp6(1),t.Q6J("disabled",!a.msisdnForm.valid)("ngClass",t.VKq(2,v,!a.msisdnForm.valid))}}function S(e,n){if(1&e){const a=t.EpF();t.ynx(0),t.TgZ(1,"button",32),t.NdJ("click",function(){t.CHM(a);const o=t.oxw();return t.KtG(o.startRecharge())}),t._uU(2,"PROCEDI "),t.qZA(),t.BQk()}if(2&e){const a=t.oxw();t.xp6(1),t.Q6J("disabled",!a.paymentForm.valid)("ngClass",t.VKq(2,v,!a.paymentForm.valid))}}const O=function(e){return{complete:e}},U=[{path:"",component:(()=>{const n=class{constructor(i,o,c,p){this.fb=i,this.spinnerService=o,this.rechargeService=c,this.dialogService=p,this.paymentAmounts=[{key:"10 \u20ac",value:"1000"},{key:"20 \u20ac",value:"2000"},{key:"25 \u20ac",value:"2500"},{key:"30 \u20ac",value:"3000"},{key:"35 \u20ac",value:"3500"},{key:"50 \u20ac",value:"5000"},{key:"70 \u20ac",value:"7000"}],this.step=1,this.formReady=!1}ngOnInit(){this.spinnerService.enable(),this.initMsisdnForm()}initMsisdnForm(){this.msisdnForm=this.fb.group({msisdn:["",s.kI.compose([s.kI.required,s.kI.minLength(6),s.kI.maxLength(14)])]}),this.formReady=!0,this.spinnerService.disable()}initPaymentForm(){this.paymentForm=this.fb.group({amount:["",s.kI.compose([s.kI.required])],method:["CREDIT_CARD",s.kI.compose([s.kI.required])]})}checkRechargeMsisdn(){this.spinnerService.enable(),this.rechargeService.refillCheck(this.msisdnForm.controls.msisdn.value).subscribe(o=>{this.initPaymentForm(),this.step=2,this.spinnerService.disable()},o=>{this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Gentile cliente, il numero di telefono da lei inserito non \xe8 stato trovato nei nostri sistemi.",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}getErrorMessage(i){return M.i.getErrorMessage(this.msisdnForm,i)}startRecharge(){this.spinnerService.enable();const i=this.msisdnForm.controls.msisdn.value,o=this.paymentForm.controls.amount.value,c=this.paymentAmounts.filter(l=>l.value===o)[0],p=new P.d(i,c.value,c.key,"creditCard");this.rechargeService.startPayment(p).subscribe(l=>{this.spinnerService.disable(),x.q.createPaymentFormAndRedirect(l),location.reload()},l=>{this.spinnerService.disable(),this.dialogService.open({title:"Attenzione!",message:"Si \xe8 verificato un problema. Riprova pi\xf9 tardi!",cancelText:"Cancel",confirmText:"Conferma",confirmOnly:!0,logo:!0,logoType:"error"})})}};let e=n;return n.\u0275fac=function(o){return new(o||n)(t.Y36(s.qu),t.Y36(y.V),t.Y36(w.h),t.Y36(A.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-recharge-without-authorization"]],decls:22,vars:12,consts:[[1,"recharge-without-auth","main_login"],[1,"container_login"],[1,"step_window"],[1,"step_container"],[1,"item_step"],[1,"item_step-wrapper",3,"ngClass"],[1,"item_step-number"],[1,"titleStep"],["class","subTitleStep",4,"ngIf"],[1,"item_step","full"],[1,"FORMCOMPONENT"],[4,"ngIf"],[1,"subTitleStep"],["autocomplete","off",1,"form",3,"formGroup"],["appearance","legacy"],["matInput","","id","msisdn","type","text","placeholder","Numero di telefono","formControlName","msisdn","autocomplete","off"],[1,"row","recharge-amount"],[1,"title"],[2,"padding-bottom","5rem"],["id","amount","formControlName","amount"],[3,"value",4,"ngFor","ngForOf"],[1,"payBox"],[1,"payMethod"],["src","assets/images/visa.jpg","alt","visa"],["src","assets/images/maestro.jpg","alt","maestro"],["src","assets/images/american-express.jpg","alt","american express"],["src","assets/images/dinners.jpg","alt","dinner"],[1,"row"],[1,"box"],["aria-label","Seleziona un opzione","formControlName","method"],[3,"value","checked"],[3,"value"],[1,"cta",3,"disabled","ngClass","click"]],template:function(o,c){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6),t._uU(7,"1"),t.qZA()(),t.TgZ(8,"div",5)(9,"div",6),t._uU(10,"2"),t.qZA()()()(),t.TgZ(11,"h1",7),t._uU(12,"RICARICA ONLINE"),t.qZA(),t.YNc(13,Z,2,0,"h2",8),t.YNc(14,T,2,0,"h2",8),t.TgZ(15,"div",3)(16,"div",9)(17,"div",10),t.YNc(18,I,7,2,"ng-container",11),t.YNc(19,k,29,4,"ng-container",11),t.YNc(20,F,3,4,"ng-container",11),t.YNc(21,S,3,4,"ng-container",11),t.qZA()()()()()()),2&o&&(t.xp6(5),t.Q6J("ngClass",t.VKq(8,O,1===c.step)),t.xp6(3),t.Q6J("ngClass",t.VKq(10,O,2===c.step)),t.xp6(5),t.Q6J("ngIf",1===c.step),t.xp6(1),t.Q6J("ngIf",2===c.step),t.xp6(4),t.Q6J("ngIf",1===c.step&&c.formReady),t.xp6(1),t.Q6J("ngIf",2===c.step&&c.formReady),t.xp6(1),t.Q6J("ngIf",1===c.step),t.xp6(1),t.Q6J("ngIf",2===c.step))},dependencies:[m.mk,m.sg,m.O5,s._Y,s.Fj,s.JJ,s.JL,s.sg,s.u,g.TO,g.KE,g.hX,_.Nt,C.ey,f.gD,h.VQ,h.U0],styles:[".recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step[_ngcontent-%COMP%]{flex:unset;display:flex;max-width:15rem;margin:0 auto 2rem;column-gap:4rem}@media screen and (max-width: 767px){.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step[_ngcontent-%COMP%]{margin:auto}}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step.full[_ngcontent-%COMP%]{max-width:unset;flex:unset}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step[_ngcontent-%COMP%] .item_step-wrapper[_ngcontent-%COMP%]{max-width:15rem;margin:0 auto 2rem}@media screen and (max-width: 767px){.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step[_ngcontent-%COMP%] .item_step-wrapper[_ngcontent-%COMP%]{display:initial}}
1.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step[_ngcontent-%COMP%] .item_step-wrapper[_ngcontent-%COMP%]:not(:last-child):before{width:100%;height:.1rem;top:2.1rem;left:4rem}@media screen and (max-width: 767px){.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .item_step[_ngcontent-%COMP%] .item_step-wrapper[_ngcontent-%COMP%]:not(:last-child):before{width:120%;left:6rem}}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .recharge-amount[_ngcontent-%COMP%]{text-align:center;justify-content:center}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .recharge-amount[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font: 700 16px Montserrat;letter-spacing:0;color:#272d3b;text-transform:uppercase;opacity:1}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .payBox[_ngcontent-%COMP%]{text-align:center}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .payBox[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{flex-direction:column;row-gap:2rem;margin-top:2rem}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .payBox[_ngcontent-%COMP%] .payMethod[_ngcontent-%COMP%]{margin-top:1rem}.recharge-without-auth[_ngcontent-%COMP%] .step_window[_ngcontent-%COMP%] .step_container[_ngcontent-%COMP%] .payBox[_ngcontent-%COMP%] .payMethod[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:3.2rem;max-height:2rem;margin-left:.5rem}"]}),e})()},{path:"pagamento-completato",component:(()=>{const n=class{constructor(i){this.router=i}goBack(){this.router.navigateByUrl("/").then(i=>console.log("Back to home..."))}};let e=n;return n.\u0275fac=function(o){return new(o||n)(t.Y36(u.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["app-recharge-without-authorization-payment-complete"]],decls:11,vars:0,consts:[[1,"mainDetail","invoice-payment"],[1,"titleSection","light","recharge-no-auth-complete-title-margin"],[1,"recharge-no-auth-complete-sub-title"],[1,"buttonWrapper","center"],[1,"go-back-label"],[1,"go-back-tag",3,"click"]],template:function(o,c){1&o&&(t.TgZ(0,"div",0)(1,"h2",1),t._uU(2,"RICHIESTA PRESA IN CARICO"),t.qZA(),t.TgZ(3,"h3",2),t._uU(4,"La richiesta di pagamento \xe8 stata presa in carico e sar\xe0 completata entro le prossime ore. Ricever\xe0 una email ad operazione conclusa."),t.qZA(),t.TgZ(5,"div",3)(6,"h3",4),t._uU(7,"Clicca "),t.TgZ(8,"a",5),t.NdJ("click",function(){return c.goBack()}),t._uU(9,"qui"),t.qZA(),t._uU(10," per tornare alla pagina principale"),t.qZA()()())},styles:[".go-back-label[_ngcontent-%COMP%]{text-align:center;letter-spacing:0;color:#000;opacity:1}.go-back-label[_ngcontent-%COMP%] .go-back-tag[_ngcontent-%COMP%]{cursor:pointer;font-weight:700}.recharge-no-auth-complete-title-margin[_ngcontent-%COMP%]{margin-bottom:5rem}.recharge-no-auth-complete-sub-title[_ngcontent-%COMP%]{font: 300 20px/24px Montserrat;letter-spacing:0;color:#626a73;opacity:1;margin-bottom:10rem;padding:1.6rem 1.6rem 2rem;text-align:center}"]}),e})()}];let z=(()=>{const n=class{};let e=n;return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[u.Bz.forChild(U),u.Bz]}),e})(),J=(()=>{const n=class{};let e=n;return n.\u0275fac=function(o){return new(o||n)},n.\u0275mod=t.oAB({type:n}),n.\u0275inj=t.cJS({imports:[m.ez,z,s.UX,g.lN,_.c,C.Ng,f.LD,h.Fk]}),e})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.