1(self.webpackChunkskipres=self.webpackChunkskipres||[]).push([[7349],{72192:function(t,e,i){"use strict";i.r(e),i.d(e,{RecoverPageModule:function(){return E}});var o=i(38583),n=i(3679),s=i(26623),r=i(78094),l=i(64762),a=i(751),c=i(72738),p=i(88720),d=i(53198),u=i(62078),h=i(30022),m=i(27795),g=i(5469),Z=i(87764);function _(t,e){1&t&&(p.TgZ(0,"div",17),p.TgZ(1,"div",18),p._UZ(2,"div",19),p._UZ(3,"div",20),p.qZA(),p.qZA())}function v(t,e){1&t&&(p.TgZ(0,"span"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij("",p.lcZ(2,1,"RECOVER_MESSAGE_LOGIN")," "))}function T(t,e){1&t&&(p.TgZ(0,"span"),p._uU(1),p.ALo(2,"translate"),p.qZA()),2&t&&(p.xp6(1),p.hij("",p.lcZ(2,1,"RECOVER_MESSAGE_RESET")," "))}const f=[{path:"",component:(()=>{class t{constructor(t,e,i,o,n,s,r,l,a,c){this.principal=t,this.formBuilder=e,this.accountService=i,this.router=o,this.authServerProvider=n,this.modalController=s,this.navCtrl=r,this.notificationService=l,this.translateService=a,this.alertController=c,this.recover={mail:""},this.formReset=this.formBuilder.group({campoVuotoHidden:[""],mail:[""]})}ionViewWillEnter(){this.p_email&&(this.recover.mail=this.p_email),this.principal.start().then(t=>{this.load()})}load(){if(this.principal.session)return this.goHome(),!1}doReset(){return(0,l.mG)(this,void 0,void 0,function*(){this.recover.mail?(this.showSpinner=!0,this.accountService.recoverWithToken({mail:this.recover.mail,source:"customer"}).subscribe(t=>{t.body?this.goToOtp():this.principal.presentToastWithButton("RESET_TOKEN_REQUEST_NOT_POSSIBLE","ERROR","warning","BOTTOM"),this.showSpinner=!1},t=>{let e=null;if(t&&t.error&&t.error.msgs&&(e=t.error.msgs.find(t=>"problem.generate.token"===t)),e)this.openResetInvalid();else{let e=this.principal.checkErrorsRequest(t);this.principal.presentToastWithButton(e,"ERROR","danger","BOTTOM")}this.showSpinner=!1})):this.principal.presentToastWithButton("ERROR_NEED_FIELDS","ERROR","danger","BOTTOM")})}openResetInvalid(){return(0,l.mG)(this,void 0,void 0,function*(){const t=yield this.alertController.create({message:this.translateService.instant("RESET_TOKEN_REQUEST_INVALID_SUPPORT"),backdropDismiss:!0,keyboardClose:!0,buttons:[{text:this.translateService.instant("OK"),role:"cancel",handler:()=>{this.dismiss()}}]});yield t.present()})}goToOtp(){return(0,l.mG)(this,void 0,void 0,function*(){const t=yield this.modalController.create({component:a.i,cssClass:"mediumModalSize",componentProps:{p_email:this.recover.mail,type:this.type_otp}});return t.onDidDismiss().then(t=>{"login"===this.type_otp?(this.showSpinner=!0,setTimeout(()=>{this.modalController.dismiss(null==t?void 0:t.data)},1e3)):t&&t.data&&this.goReset(t.data)}),yield t.present()})}openPopupSuccess(){return(0,l.mG)(this,void 0,void 0,function*(){const t=yield this.modalController.create({component:a.i,cssClass:"mediumModalSize"});return yield t.present()})}goReset(t){return(0,l.mG)(this,void 0,void 0,function*(){const e=yield this.modalController.create({component:c.U,cssClass:"mediumModalSize",componentProps:{p_key:t,from:"MODAL"}});return e.onDidDismiss().then(t=>{this.showSpinner=!0,setTimeout(()=>{this.modalController.dismiss(null==t?void 0:t.data)},1e3)}),yield e.present()})}dismiss(t){try{this.modalController.dismiss(t)}catch(e){console.log(e)}}goHome(){this.navCtrl.navigateRoot("")}}return t.\u0275fac=function(e){return new(e||t)(p.Y36(d.x),p.Y36(n.qu),p.Y36(u.B),p.Y36(r.F0),p.Y36(h.S),p.Y36(s.IN),p.Y36(s.SH),p.Y36(m.g),p.Y36(g.sK),p.Y36(s.Br))},t.\u0275cmp=p.Xpm({type:t,selectors:[["app-recover"]],inputs:{p_email:"p_email",type_otp:"type_otp"},decls:34,vars:13,consts:[[1,"ion-no-border","ion-content-custom-header"],[1,"ion-content-custom-header"],["slot","start"],[2,"--color","transparent"],["name","close"],[1,"ion-text-center"],["slot","end"],[3,"click"],["class","splash",4,"ngIf"],[1,"ion-padding","ion-text-center","ion-content-custom",3,"scrollbar"],[2,"text-align","center"],[1,"logo",2,"width","80%","margin","auto","height","12vh"],[1,"max-width600",3,"formGroup","ngSubmit"],["lines","none",1,"itemBackgroun
1dTransparent"],["text-wrap",""],[4,"ngIf"],["shape","round","expand","full","type","submit","color","secondary",3,"disabled"],[1,"splash"],[1,"spinner"],[1,"dot1"],[1,"dot2"]],template:function(t,e){1&t&&(p.TgZ(0,"ion-header",0),p.TgZ(1,"ion-toolbar",1),p.TgZ(2,"ion-buttons",2),p.TgZ(3,"ion-button",3),p._UZ(4,"ion-icon",4),p.qZA(),p.qZA(),p._UZ(5,"ion-title",5),p.TgZ(6,"ion-buttons",6),p.TgZ(7,"ion-button",7),p.NdJ("click",function(){return e.dismiss()}),p._UZ(8,"ion-icon",4),p.qZA(),p.qZA(),p.qZA(),p.qZA(),p.YNc(9,_,4,0,"div",8),p.TgZ(10,"ion-content",9),p.TgZ(11,"div",10),p._UZ(12,"div",11),p.qZA(),p._UZ(13,"br"),p._uU(14,"\xa0"),p._UZ(15,"br"),p._uU(16,"\xa0 "),p.TgZ(17,"form",12),p.NdJ("ngSubmit",function(){return e.doReset()}),p.TgZ(18,"ion-list"),p.TgZ(19,"ion-item",13),p.TgZ(20,"ion-label",14),p._uU(21),p.ALo(22,"translate"),p.TgZ(23,"b"),p._uU(24),p.qZA(),p.YNc(25,v,3,3,"span",15),p.YNc(26,T,3,3,"span",15),p.qZA(),p.qZA(),p.qZA(),p._UZ(27,"br"),p._uU(28,"\xa0"),p._UZ(29,"br"),p._uU(30,"\xa0 "),p.TgZ(31,"ion-button",16),p._uU(32),p.ALo(33,"translate"),p.qZA(),p.qZA(),p.qZA()),2&t&&(p.xp6(9),p.Q6J("ngIf",e.showSpinner),p.xp6(1),p.Q6J("scrollbar",e.principal.isApp?"":e.principal.scrollbar),p.xp6(7),p.Q6J("formGroup",e.formReset),p.xp6(4),p.hij(" ",p.lcZ(22,9,"RECOVER_MESSAGE")," "),p.xp6(3),p.hij("",null==e.recover?null:e.recover.mail," "),p.xp6(1),p.Q6J("ngIf","login"===e.type_otp),p.xp6(1),p.Q6J("ngIf","login"!=e.type_otp),p.xp6(5),p.Q6J("disabled",!e.formReset.valid),p.xp6(1),p.hij(" ",p.lcZ(33,11,"SEND_REQUEST")," "))},directives:[s.Gu,s.sr,s.Sm,s.YG,s.gu,s.wd,o.O5,s.W2,Z.g,n._Y,n.JL,n.sg,s.q_,s.Ie,s.Q$],pipes:[g.X$],styles:[""]}),t})()}];let S=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[r.Bz.forChild(f)],r.Bz]}),t})(),E=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=p.oAB({type:t}),t.\u0275inj=p.cJS({imports:[[o.ez,n.u5,s.Pc,n.UX,s.Pc,Z.O,g.aw.forChild(),S]]}),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.