PageSourceSearch

https://ofv.segurosreservas.com/login.component-FPBWWB2F.js

js segurosreservas.com collected 2026-09-24 12:22:08 UTC 5,740 bytes, 2 lines download raw bytes

1import{a as R}from"./chunk-HSCSDYB4.js";import{a as I}from"./chunk-5MXPOVR5.js";import{a as D}from"./chunk-UXZNANIS.js";import{B as A,e as x,i as V,j as T,k as j,m as v,o as G,u as P}from"./chunk-6NDNFNNM.js";import"./chunk-RIH2PPJ2.js";import{a as B}from"./chunk-XZNI5UQK.js";import{a as L}from"./chunk-MBHVHX43.js";import{a as k}from"./chunk-WK5STTER.js";import{A as E,z as M}from"./chunk-ZFYQYB3V.js";import{$b as F,Ab as u,Fb as b,Kb as f,Mb as d,Qa as a,Ya as s,_b as i,aa as w,ac as g,ba as y,ca as S,db as _,sb as c,tb as p,xb as m,yb as t,zb as o}from"./chunk-IARZTQTQ.js";import"./chunk-TDZFEMQK.js";function H(n,h){if(n&1){let r=b();t(0,"div",6)(1,"div",19),i(2),o(),t(3,"button",20),f("click",function(){w(r);let e=d();return y(e.errorMessage="")}),t(4,"span",21),i(5,"Close"),o(),S(),t(6,"svg",22),u(7,"path",23),o()()()}if(n&2){let r=d();a(2),g(" ",r.errorMessage," ")}}function N(n,h){if(n&1&&(t(0,"div",8),i(1),o()),n&2){let r=d();a(),g(" ",r.errorMessageService.getErrorMessage(r.emailControl)," ")}}function z(n,h){if(n&1&&(t(0,"div",8),i(1),o()),n&2){let r=d();a(),g(" ",r.errorMessageService.getErrorMessage(r.passwordControl)," ")}}var ee=(()=>{class n{constructor(r,l,e,C){this._authService=r,this._router=l,this.errorMessageService=e,this._gAnalytics=C,this.appVersion=k.version,this.loginForm=new j({}),this.showError=!1,this.errorMessage=""}ngOnInit(){this.loginForm=new T({email:new v("",[x.required,x.email]),password:new v("",[x.required])})}get emailControl(){return this.loginForm.get("email")}get passwordControl(){return this.loginForm.get("password")}onSubmit(){if(this.loginForm.valid){let{email:r,password:l}=this.loginForm.value;this._authService.sigIn(r,l).subscribe({next:()=>{this._gAnalytics.trackLogin(),this._router.navigate(["/inicio"])},error:e=>{e.status===409&&(this.errorMessage=e.error.data.message)}})}}static{this.\u0275fac=function(l){return new(l||n)(s(B),s(M),s(D),s(I))}}static{this.\u0275cmp=_({type:n,selectors:[["app-login"]],decls:34,vars:15,consts:[[1,"flex","h-full","flex-col","justify-between"],[1,"mb-10","max-w-full"],[1,"mb-4","text-center","font-freightSansProBold","text-[24px]","leading-8","tracking-normal","text-secondary-normal","md:text-3xl","lg:text-5xl","lg:leading-10"],[1,"text-center","font-montserratMedium","text-sm","text-primary-normal","lg:text-xl"],[1,"mx-auto","w-full","lg:max-w-md"],[1,"mb-5","space-y-6",3,"formGroup"],["role","alert",1,"flex","items-center","rounded-lg","bg-red-100","p-4","text-red-800"],["icon","assets/icons/user.svg","placeholder","Correo electr\xF3nico","type","text",3,"showPlaceHolder","errorBorder","control"],[1,"error-message","text-error"],["icon","assets/icons/lock.svg","placeholder","Contrase\xF1a","type","password",3,"showPlaceHolder","errorBorder","control"],[3,"$buttonClick","type","styleType","size","disabled"],[1,"mb-3","text-center","font-montserratMedium","text-sm"],["routerLink","/recuperar-contrasena",1,"font-montserratBold","text-tertiary-normal","underline"],[1,"text-center","font-montserratMedium","text-sm"],["routerLink","/registrar-usuario",1,"font-montserratBold","text-secondary-normal","underline"],[1,"mt-20","flex","flex-col","text-center","lg:mt-0"],["href","https://www.segurosreservas.com/Documents/Terminos%20y%20Condiciones%20App%20Cliente%20365%20Seguros%20Reservas.pdf","target","_blank",1,"sticky","bottom-0","font-freightSansProSemibold","text-lg","text-secondary-strong","hover:text-secondary-normal","xl:text-xl"],[1,"sticky","bottom-0","font-freightSansProMedium","text-lg","text-[#6597B3]","xl:text-xl"],[1,"font-montserratBold","text-[16px]"],[1,"ms-3","font-montserratMedium","text-sm"],["type","button","aria-label","Close",1,"-mx-1.5","-my-1.5","ms-auto","inline-flex","h-8","w-8","items-center","justify-center","rounded-lg","bg-red-100","p-1.5","text-red-500","hover:bg-red-300","focus:ring-2","focus:ring-red-400",3,"click"],[1,"sr-only"],["aria-hidden","true","xmlns","http://www.w3.org/2000/svg","fill","none","viewBox","0 0 14 14",1,"h-3","w-3"],["stroke","currentColor","stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"]],template:function(l,e){l&1&&(t(0,"div",0)(1,"section")(2,"div",1)(3,"h2",2),i(4," Bienvenido a Oficina Virtual "),o(),t(5,"h3",3),i(6," Introduzca sus datos para acceder al sistema "),o()(),t(7,"div",4)(8,"form",5),c(9,H,8,1,"div",6),t(10,"div"),u(11,"app-input",7),c(12,N,2,1,"div",8),o(),t(13,"div"),u(14,"app-input",9),c(15,z,2,1,"div",8),o(),t(16,"div")(17,"app-button",10),f("$buttonClick",function(){return e.onSubmit()}),i(18,"Iniciar sesi\xF3n"),o()()(),t(19,"p",11),i(20," \xBFOlvid\xF3 su contrase\xF1a? "),t(21,"a",12),i(22,"Recuperar contrase\xF1a"),o()(),t(23,"p",13),i(24," \xBFNo tienes cuenta o 
1no has completado tu registro? "),t(25,"a",14),i(26,"Reg\xEDstrate"),o()()()(),t(27,"section",15)(28,"a",16),i(29," Ver t\xE9rminos y condiciones "),o(),t(30,"span",17),i(31,"Versi\xF3n "),t(32,"span",18),i(33),o()()()()),l&2&&(a(8),m("formGroup",e.loginForm),a(),p(e.errorMessage.length>0?9:-1),a(2),m("showPlaceHolder",!0)("errorBorder",e.errorMessage.length>1)("control",e.emailControl),a(),p(e.emailControl!=null&&e.emailControl.invalid&&(e.emailControl!=null&&e.emailControl.touched)?12:-1),a(2),m("showPlaceHolder",!0)("errorBorder",e.errorMessage.length>1)("control",e.passwordControl),a(),p(e.passwordControl!=null&&e.passwordControl.invalid&&(e.passwordControl!=null&&e.passwordControl.touched)?15:-1),a(2),m("type","submit")("styleType","primary")("size","full-width")("disabled",e.loginForm.invalid),a(16),F(e.appVersion))},dependencies:[R,L,A,G,V,P,E],encapsulation:2})}}return n})();export{ee as LoginComponent};
2//# sourceMappingURL=login.component-FPBWWB2F.js.map

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.