1"use strict";(self.webpackChunkmultiutility=self.webpackChunkmultiutility||[]).push([[2049],{22049(v,u,i){i.d(u,{SignaturePhoneComponent:()=>f});var l=i(87829),c=i(37222),p=i(97614),h=i(93327),_=i(41466),d=i(99798),e=i(54303),m=i(18635);function g(o,O){if(1&o&&(e.j41(0,"p",4),e.EFF(1," Inserisci il codice che ti abbiamo inviato al numero "),e.j41(2,"b"),e.EFF(3),e.k0s()()),2&o){const t=e.XpG();e.R7$(3),e.JRh(t.cellulare)}}let f=(()=>{class o{helpersService;authService;flowService;router;enableOtpSpinner=!1;waitResend=!1;cellulare="";req={};user;signatureOptions={regex:"^[0-9]+$",error:"Codice errato. Verifica e riprova.",submit:{label:"Conferma",variant:"primary",customClasses:"w-[300px]"}};signatureError=!1;constructor(t,r,n,s){this.helpersService=t,this.authService=r,this.flowService=n,this.router=s}ngOnInit(){this.cellulare=this.authService.cellulare,this.user=this.authService.user,this.cellulare||(this.helpersService.showToast("Numero non disponibile. Torna indietro e modifica il numero.","","error"),this.router.navigate(["/auth/profile"]))}resendOtp(){const t={prefix:this.authService.cellulare.split("/")[0].substring(1),phoneNumber:this.authService.cellulare.split("/")[1]};this.waitResend=!0,this.authService.updatePhoneNumber(t).subscribe({next:()=>{this.helpersService.showToast("Codice inviato con successo.","","success"),this.router.navigate(["/auth/signature-phone"]),this.waitResend=!1},error:r=>{console.error("Errore durante l\u2019invio del codice OTP:",r),this.helpersService.showToast("Errore durante l\u2019invio del codice OTP, riprova pi\xf9 tardi.","","error"),this.waitResend=!1}})}handleValidityChange(t){if(this.signatureError=!1,this.flowService.disabledFlowNext.next(t?"VALID":"INVALID"),t&&this.signatureOptions.hideButton){const r=this.getOtpValue();r&&(this.req={signature:r})}}getOtpValue(){const t=document.querySelectorAll(".pin-input");let r="";return t.forEach(n=>{r+=n.value||""}),r}onSign(t){this.req.signature=t,this.onSubmit()}onSubmit(){const t={totp:this.req.signature};this.enableOtpSpinner=!0,this.authService.changeNumberOtp(t).subscribe({next:()=>{this.helpersService.showToast("OTP inviato con successo.","","success"),this.router.navigateByUrl("/edit-success"),this.enableOtpSpinner=!1},error:()=>{this.signatureError=!0,this.waitResend=!1,this.helpersService.showToast("C'\xe8 stato un errore, si prega di riprovare."),this.enableOtpSpinner=!1}})}static \u0275fac=function(r){return new(r||o)(e.rXU(h.V),e.rXU(_.kX),e.rXU(d.U),e.rXU(m.Ix))};static \u0275cmp=e.VBU({type:o,selectors:[["app-signature-phone"]],decls:5,vars:5,consts:[[1,"w-full","h-96","content-center","items-center","text-center","pt-10","lg:mt-10","mt-0"],[1,"font-normal","mb-3"],["class","mt-3 mb-10",4,"ngIf"],[3,"submitOtp","validityChange","resendOtp","options","waitOtp","waitResend","signatureError"],[1,"mt-3","mb-10"]],template:function(r,n){1&r&&(e.j41(0,"div",0)(1,"h2",1),e.EFF(2,"Conferma la tua richiesta"),e.k0s(),e.DNE(3,g,4,1,"p",2),e.j41(4,"lib-otp-form",3),e.bIt("submitOtp",function(a){return n.onSign(a)})("validityChange",function(a){return n.handleValidityChange(a)})("resendOtp",function(){return n.resendOtp()}),e.k0s()()),2&r&&(e.R7$(3),e.Y8G("ngIf",n.cellulare),e.R7$(),e.Y8G("options",n.signatureOptions)("waitOtp",n.enableOtpSpinner)("waitResend",n.waitResend)("signatureError",n.signatureError))},dependencies:[l.MD,l.bT,c.X1,p.z],styles:['\n@layer properties;.otp-resend-button[_ngcontent-%COMP%]{--tw-font-weight: var(--font-weight-semibold, 600);font-weight:var(--font-weight-semibold, 600);color:var(--color-primary-1000, var(--color-primary-1000, #482dd5))}.otp-resend-button[_ngcontent-%COMP%]:active{color:var(--color-primary-pressed, var(--color-primary-pressed, #2a2270))}.otp-resend-button[_ngcontent-%COMP%]:disabled{color:var(--color-grey-500, #d6d9dd)}@property --tw-font-weight{syntax: "*"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*[_ngcontent-%COMP%], [_ngcontent-%COMP%]:before, [_ngcontent-%COMP%]:after, [_ng
1content-%COMP%]::backdrop{--tw-font-weight: initial}}}']})}return o})()}}]);
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.