PageSourceSearch

https://www.vittoriaassicurazioni.com/AreaRiservata.Web/2939.ba2a6d37eba6ce1e.js

js vittoriaassicurazioni.com collected 2026-10-01 10:34:04 UTC 16,951 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2939],{2939:(re,v,n)=>{n.r(v),n.d(v,{LoginModule:()=>$});var u=n(44476),P=n(97582),x=n(19585),p=n(93612),s=n(24006),Z=n(72986),L=n(40537),T=n(7625),U=n(2231),e=n(94650),F=n(42684),b=n(90603),w=n(74670),k=n(36700),I=n(99571),N=n(62573),_=n(36895),g=n(4859),l=n(59549),y=n(284),S=n(97392),C=n(51572),h=n(1576),A=n(55829),E=n(41166);function M(r,i){1&r&&(e.TgZ(0,"mat-error"),e._uU(1," Campo richiesto "),e.qZA())}function z(r,i){1&r&&(e.TgZ(0,"mat-error"),e._uU(1," Please enter a valid username "),e.qZA())}function B(r,i){1&r&&(e.TgZ(0,"mat-hint")(1,"strong",22),e._uU(2,"BLOCK MAIUSC \xe8 attivato"),e.qZA()())}function J(r,i){if(1&r&&(e.TgZ(0,"mat-icon"),e._uU(1,"visibility"),e.qZA()),2&r){const o=e.oxw(2);e.uIk("alt",o.showPassword?"Nascondi Password":"Mostra Password")}}function Y(r,i){1&r&&(e.TgZ(0,"mat-icon"),e._uU(1,"visibility_off"),e.qZA())}function Q(r,i){1&r&&(e.ynx(0),e.TgZ(1,"div",27)(2,"span",28),e._uU(3,"oppure"),e.qZA()(),e.TgZ(4,"div",29),e._UZ(5,"ar-spid"),e.qZA(),e.TgZ(6,"div",25),e._uU(7," SPID \xe8 il sistema di accesso che consente di utilizzare, con un'identit\xe0 digitale unica, i servizi online della Pubblica Amministrazione e dei privati accreditati. Se sei gi\xe0 in possesso di un'identit\xe0 digitale, accedi con le credenziali del tuo gestore. Se non hai ancora un'identit\xe0 digitale, richiedila ad uno dei gestori. "),e.qZA(),e.TgZ(8,"div",25),e._UZ(9,"div",30),e.qZA(),e.BQk())}function q(r,i){if(1&r){const o=e.EpF();e.TgZ(0,"button",31),e.NdJ("click",function(){e.CHM(o);const t=e.oxw(4);return e.KtG(t.accediConBiometria())}),e._uU(1,"Utilizza la biometria"),e.qZA()}}function K(r,i){if(1&r){const o=e.EpF();e.ynx(0),e.TgZ(1,"div")(2,"button",31),e.NdJ("click",function(){e.CHM(o);const t=e.oxw(3);return e.KtG(t.entraAnonimo())}),e._uU(3," Non sei cliente? Entra "),e.qZA()(),e.TgZ(4,"div",32),e.YNc(5,q,2,0,"button",33),e.qZA(),e.BQk()}if(2&r){const o=e.oxw(3);e.xp6(5),e.Q6J("ngIf",o.hasBiometria)}}function O(r,i){if(1&r&&(e.ynx(0),e.TgZ(1,"div",23)(2,"button",24),e._uU(3," Login "),e.qZA()(),e.TgZ(4,"div",25)(5,"a",26),e._uU(6," Non sei registrato? Clicca qui. "),e.qZA()(),e.YNc(7,Q,10,0,"ng-container",13),e.YNc(8,K,6,1,"ng-container",13),e.BQk()),2&r){const o=e.oxw(2);e.xp6(7),e.Q6J("ngIf",o.isSpidActive),e.xp6(1),e.Q6J("ngIf",o.showAnonimo)}}function H(r,i){1&r&&(e.TgZ(0,"mat-label")(1,"div",32)(2,"div",34)(3,"div",35),e._UZ(4,"mat-spinner",36),e.qZA()()()())}function G(r,i){if(1&r){const o=e.EpF();e.TgZ(0,"form",9),e.NdJ("ngSubmit",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.onSubmit())}),e.TgZ(1,"div",10)(2,"mat-form-field",11)(3,"mat-label"),e._uU(4,"Codice Fiscale - Partita IVA"),e.qZA(),e._UZ(5,"input",12),e.YNc(6,M,2,0,"mat-error",13),e.YNc(7,z,2,0,"mat-error",13),e.qZA()(),e.TgZ(8,"div",14)(9,"mat-form-field",11)(10,"mat-label"),e._uU(11,"Password"),e.qZA(),e.TgZ(12,"input",15),e.NdJ("keyup",function(t){e.CHM(o);const m=e.oxw();return e.KtG(m.onKeyUp(t))})("blur",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.checkPswState())}),e.qZA(),e.TgZ(13,"mat-error"),e._uU(14," Password richiesta "),e.qZA(),e.YNc(15,B,3,0,"mat-hint",13),e.TgZ(16,"span",16)(17,"button",17),e.NdJ("click",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.showPassword=!t.showPassword)}),e.YNc(18,J,2,1,"mat-icon",18),e.YNc(19,Y,2,0,"ng-template",null,19,e.W1O),e.qZA()()(),e.TgZ(21,"a",20),e.NdJ("click",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.toRecuperaPassword())})("keydown.enter",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.toRecuperaPassword())})("keydown.space",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.toRecuperaPassword())}),e._uU(22," Password dimenticata? Clicca qui. "),e.qZA()(),e.YNc(23,O,9,2,"ng-container",18),e.YNc(24,H,5,0,"ng-template",null,21,e.W1O),e.qZA()}if(2&r){const o=e.MAs(20),a=e.MAs(25),t=e.oxw();let m,d;e.Q6J("formGroup",t.loginForm),e.xp6(6),e.Q6J("ngIf",null==(m=t.loginForm.get("username"))?null:m.hasError("required")),e.xp6(1),e.Q6J("ngIf",!(null!=(d=t.loginForm.get("username"))&&d.hasError("required"))&&(null==(d=t.loginForm.get("username"))?null:d.hasError("username"))),e.xp6(1),e.Q6J("ngClass",t.pswShowError||t.capsOn?"pad-row psw-container psw-container-err":"pad-row psw-container"),e.xp6(4),e.Q6J("type",t.showPassword?"text":"password"),e.xp6(3),e.Q6J("ngIf",t.capsOn),e.xp6(2),e.uIk("aria-label",t.showPassword?"Nascondi Password":"Mostra Password"),e.xp6(1),e.Q6J("ngIf",!t.showPassword)("ngIfElse",o),e.xp6(3),e.Q6J("ngClass",t.capsOn||t.pswShowError?"psw-dimenticata psw-dimenticata-err":"psw-dimenticata"),e.xp6(2),e.Q6J("ngIf",!t.isLoading)("ngIfElse",a)}}function R(r,i){if(1&r){const o=e.EpF();e.TgZ(0,"div",37)(1,"button",38),e.NdJ("click",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.accediConBiometria())}),e.TgZ(2,"mat-icon"),e._uU(3,"fingerprint"),e.qZA()(),e.TgZ(4,"h3",39),e._uU(5,"Accedi"),e.qZA(),e.TgZ(6,"button",40),e.NdJ("click",function(){e.CHM(o);const t=e.oxw();return e.KtG(t.usaPassword())}),e._uU(7,"Utilizza la password"),e.qZA()()}}
1const c=class extends U.P{constructor(i,o,a,t,m,d,ee,te,ie,oe,ne){super(ie),this._formBuilder=i,this.store=o,this.messageService=a,this.route=t,this.navCtrl=m,this.clientLoggerService=d,this.loaderService=ee,this.spidService=te,this.mobilePrintScreenService=oe,this.router=ne,this.showPassword=!1,this.pswShowError=!1,this.currentPath="",this.currentPath=this.router.url}entraAnonimo(){this.store.dispatch(new p.zr).subscribe(i=>{sessionStorage.redirectUrlApp?(this.navCtrl.navigateRoot(sessionStorage.redirectUrlApp),sessionStorage.removeItem("redirectUrlApp")):this.navCtrl.navigateRoot("/dashboard")})}onKeyUp(i){this.capsOn=i.getModifierState&&i.getModifierState("CapsLock")}ngOnInit(){this.spidService.isActive().subscribe(o=>{this.isSpidActive=o||"true"==this.route.snapshot.queryParams.forzaspid}),this.showAnonimo=this.mobileService.isApp(),this.hasBiometria=this.mobileService.hasFingerPrint(),this.hasBiometria&&(this.usaBiometria=!0,sessionStorage.primoAccesso||(sessionStorage.primoAccesso=!0,this.mobileService.checkAppVersionHasMessage().subscribe(o=>{o||this.accediConBiometria()}))),!this.mobileService.isApp()&&!this.isAppMobileOld&&this.isAutenticate$.pipe((0,Z.q)(1)).subscribe(o=>{o&&this.navCtrl.navigateRoot("/dashboard")});let i=this.route.snapshot.queryParams.cf?.trim();sessionStorage.redirectUrl=this.route.snapshot.queryParams.redirectUrl?this.route.snapshot.queryParams.redirectUrl:"",this.mobileService.isApp()&&this.mobileService.getUsername()&&(i=this.mobileService.getUsername()),this.loginForm=this._formBuilder.group({username:[{value:i,disabled:!!i&&!this.isAppMobileOld&&!this.mobileService.isApp()},[s.kI.required]],password:["",s.kI.required]}),this.appleKeyCloudWorkaround(),this.loginForm.controls.password.valueChanges.subscribe(o=>this.checkPswState())}checkPswState(){this.pswShowError=this.loginForm?.controls?.password&&this.loginForm.controls.password.hasError("required")}accediConBiometria(){const i=this.mobileService.getUsername();if(!i)return this.clientLoggerService.logClient({key:"accediConBiometria-getUsername",body:{model:null,error:null}}).subscribe(),this.usaBiometria=!1,void this.mobileService.deleteFingerPrint();this.usaBiometria=!0,setTimeout(()=>{sessionStorage.isDeepLinks?sessionStorage.removeItem("isDeepLinks"):(this.getQueryParams(),this.mobileService.showFaio().then(o=>{this.loaderService.show();const a={username:i,password:o,uuid:this.mobileService.devideId.identifier,codProvenienza:this.codProvenienza,desParametri:this.desParametri};this.store.dispatch(new p.S2(a)).pipe((0,L.x)(()=>this.loaderService.hide())).subscribe(()=>{this.mobileService.registraSmartphone()},t=>{this.clientLoggerService.logClient({key:"accediConBiometria-loginFingerprint",body:{model:a,error:t}}).subscribe(),this.mobileService.deleteFingerPrint(),this.hasBiometria=!1,this.usaBiometria=!1,this.showLoginErrorMessage(t,"Autenticazione fallita, \xe8 necessario accedere nuovamente con username e password")})}).catch(o=>{this.clientLoggerService.logClient({key:"accediConBiometria-showFaio",body:{model:{username:i,uuid:this.mobileService?.devideId?.identifier},error:o}}).subscribe(),this.mobileService.deleteFingerPrint(),this.hasBiometria=!1,this.usaBiometria=!1,this.showLoginErrorMessage(o,"Autenticazione fallita, \xe8 necessario accedere nuovamente con username e password")}))},150)}toRecuperaPassword(){this.getUserName()?this.navCtrl.navigateRoot("auth/recupera-password",{queryParams:{cf:this.getUserName()}}):this.navCtrl.navigateRoot("auth/recupera-password")}onSubmit(){if(this.checkPswState(),this.loginForm.valid){const i=this.getUserName(),o=this.loginForm.get("password").value;this.isLoading=!0;let a=!1;if(this.mobileService.isApp()){const t=this.mobileService.getUsername();this.mobileService.hasFingerPrint()&&t&&t.toLowerCase()!==i.toLowerCase()&&(this.mobileService.deleteFingerPrint(),a=!0)}this.getQueryParams(),this.store.dispatch(new p.m3({username:i,password:o,codProvenienza:this.codProvenienza,desParametri:this.desParametri})).pipe((0,T.R)(this._unsubscribeAll)).subscribe(t=>{this.mobileService.isApp()&&(this.mobileService.setUsername(i),this.mobileService.registraSmartphone()),t&&(this.error=null)},t=>{setTimeout(()=>{this.isLoading=!1,this.error=t},1e3),a&&this.mobileService.deleteFingerPrint(),this.showLoginErrorMessage(t,"Username o password non validi.")})}}showLoginErrorMessage(i,o){this.messageService.showMessage(i?"string"==typeof i?i:"Si \xe8 verificato un errore, si prega di riprovare.":o,!0)}
1getQueryParams(){this.codProvenienza=this.route.snapshot.queryParams.codProvenienza,this.desParametri=this.route.snapshot.queryParams.desParametri}usaPassword(){this.usaBiometria=!1}getUserName(){return this.loginForm.get("username").value}appleKeyCloudWorkaround(){setTimeout(()=>{const i=document.getElementById("loginFormId");i&&i.addEventListener("change",o=>{const a=document.getElementById("username").value,t=document.getElementById("password").value;a!=this.loginForm.controls.username.value&&this.loginForm.controls.username.setValue(a),t!=this.loginForm.controls.password.value&&this.loginForm.controls.password.setValue(t)})},100)}goToMain(){setTimeout(()=>{let i=document.getElementsByTagName("input")[0];i.tabIndex=0,i.focus()},50)}};let f=c;c.\u0275fac=function(o){return new(o||c)(e.Y36(s.QS),e.Y36(x.yh),e.Y36(F.e),e.Y36(u.gz),e.Y36(b.SH),e.Y36(w.uj),e.Y36(k.D),e.Y36(w.YS),e.Y36(I.W),e.Y36(N.Z),e.Y36(u.F0))},c.\u0275cmp=e.Xpm({type:c,selectors:[["ar-login"]],features:[e.qOj],decls:14,vars:4,consts:[["id","main",1,"content-container"],[1,"vittoria-skip-links",2,"display","none"],["fragment","main",1,"screen-reader-text",3,"routerLink","click"],["fragment","footer",1,"screen-reader-text",3,"routerLink"],[1,"inner-content"],["ngStyle.lt-md","margin: 0 auto;",1,"login-title-inner"],["alt","","title","","src","assets/imgs/icons/icon-registrazione.svg"],["id","loginFormId","name","loginForm",3,"formGroup","ngSubmit",4,"ngIf","ngIfElse"],["biometriaForm",""],["id","loginFormId","name","loginForm",3,"formGroup","ngSubmit"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column",1,"pad-row"],["fxFlex",""],["id","username","matInput","","formControlName","username","autocomplete","username","maxlength","16","tabindex","0","aria-label","Inserisci il tuo codice fiscale o la tua partita iva","name","username","autofocus",""],[4,"ngIf"],["fxLayout","row","fxLayout.sm","column","fxLayout.xs","column",3,"ngClass"],["id","password","matInput","","formControlName","password","name","password","tabindex","0","aria-label","Digita la password","autocomplete","current-password",3,"type","keyup","blur"],["matSuffix",""],["type","button","mat-icon-button","","color","accent",3,"click"],[4,"ngIf","ngIfElse"],["showPas",""],["tabindex","0","role","button","aria-label","Recupera la password dimenticata",1,"outline-dark",3,"ngClass","click","keydown.enter","keydown.space"],["loadingSelect",""],[2,"color","black"],["fxLayout","row",1,"pad-row",2,"min-width","78px"],["type","submit","mat-button","","fxFlex","100%","aria-label","LOG IN",1,"ar-button","outline-dark",2,"margin-bottom","20px"],["fxLayout","row","fxLayoutAlign","center center",1,"pad-row",2,"min-width","78px"],["routerLink","/auth/registrazione","routerDirection","root","aria-label","Registrati subito all'Area Riservata MyVittoria",1,"outline-dark"],[1,"pad-row","divider-container"],[1,"divider-text"],["fxLayout","row","fxLayoutAlign","center center",1,"pad-row","outline-dark",2,"min-width","78px"],["fxFlex","250px",1,"spid-footer"],["mat-button","","type","button","fxFlex","100",1,"ar-button-inverse",2,"margin-bottom","20px",3,"click"],["fxLayout","row"],["mat-button","","type","button","fxFlex","100","class","ar-button-inverse","style","margin-bottom: 20px;",3,"click",4,"ngIf"],["fxFlex","","fxLayoutAlign","center center"],[1,"loading-spinner-container"],["diameter","40",1,"spinner","loginLoading"],["fxLayout","column","fxLayoutAlign","center center"],["type","button","mat-fab","","color","primary",3,"click"],[1,"text-gray"],["type","button","mat-button","","fxFlex","100",1,"ar-button-inverse",3,"click"]],template:function(o,a){if(1&o&&(e.TgZ(0,"main",0)(1,"div",1)(2,"a",2),e.NdJ("click",function(){return a.goToMain()}),e._uU(3," Vai al contenuto principale "),e.qZA(),e.TgZ(4,"a",3),e._uU(5," Vai al footer "),e.qZA()(),e.TgZ(6,"div",4)(7,"div",5),e._UZ(8,"img",6),e.TgZ(9,"h1"),e._uU(10,"Accedi a MyVittoria"),e.qZA()(),e.YNc(11,G,26,12,"form",7),e.YNc(12,R,8,0,"ng-template",null,8,e.W1O),e.qZA()()),2&o){const t=e.MAs(13);e.xp6(2),e.Q6J("routerLink",a.currentPath),e.xp6(2),e.Q6J("routerLink",a.currentPath),e.xp6(7),e.Q6J("ngIf",!a.usaBiometria)("ngIfElse",t)}},dependencies:[_.mk,_.O5,b.Fo,u.rH,g.lW,g.RK,g.cs,l.KE,l.hX,l.bx,l.TO,l.R9,y.Nt,s._Y,s.Fj,s.JJ,s.JL,s.nD,s.sg,s.u,S.Hw,C.Ou,h.xw,h.Wh,h.yH,A.oO,A.Zl,E.I],styles:['ar-login .inner-content{max-width:450px;margin:0 auto}ar-login mat-form-field{width:100%;--mdc-filled-text-field-label-text-color: #004580;--mdc-filled-text-field-focus-label-text-color: #00205c;--mdc-outlined-text-field-label-text-color: #004580;--mdc-outlined-text-field-focus-label-text-color: #00205c}ar-login mat-form-field:not(.mat-form-field-invalid) .mdc-floating-label,ar-login mat-form-field:not(.mat-form-field-invalid) .mat-mdc-floating-label{color:#004580!important}ar-login mat-form-field:not(.mat-form-field-invalid).mat-focused .mdc-floating-label,ar-login mat-form-field:not(.mat-form-field-invalid).mat-focused .mat-mdc-floating-label{color:#00205c!important}ar-login mat-form-field.mat-form-field-invalid{--mdc-filled-text-field-error-label-text-color: #b71c1c;--mdc-filled-text-field-error-focus-label-text-color: #b71c1c}ar-login mat-form-field.mat-form-field-invalid .mdc-floating-label,ar-login mat-form-field.mat-form-field-invalid .mat-mdc-floating-label,ar-login mat-form-field.mat-form-field-invalid .mat-mdc-form-field-error-wrapper,ar-login mat-form-field.mat-form-field-invalid mat-error{color:#b71c1c!important}ar-login mat-form-field .mat-mdc-input-element,ar-login mat-form-field input.mat-mdc-input-element{color:#00205c}.text-gray{color:#585858}a{text-decoration:underline;color:#234c7b}.field-widht{width:220px}
1.login-title-inner{color:#234c7b;display:flex}.pad-row{padding-top:5px;padding-bottom:5px}.login-title-inner img{height:46px;width:46px}.login-title-inner h1{font-size:24px!important;margin-top:15px}.loading-spinner-container{display:block}.psw-dimenticata{z-index:1;position:absolute;font-size:13px;top:66px;left:0;transition:left 1s,right 1s}.psw-dimenticata-err{left:60%;right:0}.psw-container{position:relative}@media screen and (max-width: 540px){.psw-dimenticata-err{left:unset}}@media screen and (max-width: 370px){.psw-dimenticata-err{top:80px;left:19px;right:unset}.psw-container-err{padding-bottom:30px}}@media screen and (max-width: 295px){.psw-container{padding-bottom:30px}}.divider-container{text-align:center;width:100%;padding-top:20px;padding-bottom:10px}.divider-container .divider-text{width:100%;color:#0000008a;background-color:#fff;position:relative;font-size:14px;z-index:11;padding:5px}.divider-container:after{content:"";display:block;height:1px;width:100%;left:0;top:-8px;position:relative;background:rgba(0,0,0,.54);z-index:10}.spid-footer{background-repeat:no-repeat;background-size:contain;margin-left:auto;margin-right:auto;background-position-y:center;background-image:url(spid-agid-logo-lb.8263e017397b852e.png);border-radius:unset!important;height:34px}\n'],encapsulation:2}),(0,P.gn)([(0,x.Ph)(p.jq.isAutenticate)],f.prototype,"isAutenticate$",void 0);var D=n(69814),V=n(53358),W=n(46402),j=n(44850);const X=[{path:"",component:f}];let $=(()=>{const i=class{};let r=i;return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=e.oAB({type:i}),i.\u0275inj=e.cJS({imports:[V.m,u.Bz.forChild(X),g.ot,l.lN,y.c,s.u5,s.UX,S.Ps,C.Cq,D.o9,W.c,j.t]}),r})()}}]);

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.