PageSourceSearch

https://buk.pt/chunk-2TT2XQPP.js

js buk.pt collected 2026-09-28 08:49:02 UTC 5,126 bytes, 3 lines download raw bytes

1import{a as z}from"./chunk-CDY36I3B.js";import{a as O}from"./chunk-NIONRHWP.js";import{a as U}from"./chunk-XPCL5VDP.js";import{a as j}from"./chunk-RJCZALW7.js";import{a as q}from"./chunk-3FLI4VXH.js";import"./chunk-3L6XVKXL.js";import"./chunk-BTFQ6KY7.js";import"./chunk-YYP6GBHO.js";import{I as T,J as L,K as B,_ as V,aa as k,j as f,m as S,n as E,s as R,w as G,z as D}from"./chunk-DXO35ZLD.js";import"./chunk-SZ3RYLDE.js";import"./chunk-GID2AQ6H.js";import{b as F,c as M}from"./chunk-Z73XETQO.js";import{P as C,S as x,i as I}from"./chunk-JUPH277U.js";import{Bb as t,Bc as N,Dc as v,Ja as h,Ka as w,Nb as g,Sc as y,Tb as _,Tc as P,Yb as A,dd as m,jc as i,kc as l,lc as d,mc as c,rd as s,sd as n,vc as b}from"./chunk-4ITSOKTZ.js";function J(a,p){if(a&1){let e=b();l(0,"form",11),N("ngSubmit",function(){h(e);let o=v();return w(o.sendRecoverEmail())}),c(1,"app-text-input",12),s(2,"translate"),s(3,"translate"),c(4,"app-alert",13)(5,"app-alert",14)(6,"app-submit-btn",15),s(7,"translate"),d()}if(a&2){let e=v();i("formGroup",e.recoverForm),t(),i("placeholder",m(n(2,12,"GENERAL.email")))("invalidMsg",m(n(3,14,"GENERAL.invalidEmail")))("submitAttempted",e.submitAttempted),t(3),i("msg",e.errorMsg),t(),i("msg",e.successMsg),t(),i("btnCopy",m(n(7,16,"LANDING.recover-pass-page.submit")))("loading",e.loading)("hasError",e.errorMsg)}}function K(a,p){if(a&1){let e=b();l(0,"form",11),N("ngSubmit",function(){h(e);let o=v();return w(o.resetPass())}),c(1,"app-text-input",16),s(2,"translate"),c(3,"app-text-input",17),s(4,"translate"),s(5,"translate"),c(6,"app-alert",13)(7,"app-alert",14)(8,"app-submit-btn",15),s(9,"translate"),d()}if(a&2){let e=v();i("formGroup",e.newPassForm),t(),i("placeholder",m(n(2,15,"LANDING.recover-pass-page.newPassword")))("submitAttempted",e.submitAttempted),t(2),i("placeholder",m(n(4,17,"LANDING.recover-pass-page.confirmPassword")))("invalidMsg",m(n(5,19,"LANDING.recover-pass-page.passwordsInvalid")))("submitAttempted",e.submitAttempted),t(3),i("msg",e.errorMsg),t(),i("msg",e.successMsg),t(),i("btnCopy",m(n(9,21,"LANDING.recover-pass-page.submit")))("loading",e.loading)("hasError",e.errorMsg)}}function Q(a,p){a&1&&(l(0,"p")(1,"a",18),y(2),s(3,"translate"),d()()),a&2&&(t(2),P(n(3,1,"LANDING.recover-pass-page.login")))}var ve=(()=>{let p=class p{constructor(r,o,u,H){this.fb=r,this.authService=o,this.activatedRoute=u,this.translate=H,this.submitAttempted=!1,this.loading=!1}ngOnInit(){let r=this.activatedRoute.snapshot.queryParams;r.token?this.generateNewPassForm(r.token):this.generateRecoverForm()}generateRecoverForm(){this.recoverForm=this.fb.group({email:["",[f.required,f.email]]})}generateNewPassForm(r=null){this.newPassForm=this.fb.group({token:[r],password1:["",[f.required,f.min(4)]],password2:["",[]]},{validator:z.MatchPassword})}sendRecoverEmail(){if(this.submitAttempted=!0,this.errorMsg=null,!this.recoverForm.valid)return!1;this.loading=!0;let r={email:this.recoverForm.get("email").value};this.authService.sendResetPasswordEmail(r).subscribe(()=>{this.successMsg=this.translate.instant("LANDING.recover-pass-page.emailSent"),this.loading=!1},o=>{this.errorMsg=o.errMsg,this.loading=!1})}resetPass(){if(this.submitAttempted=!0,this.errorMsg=null,!this.newPassForm.valid)return!1;this.loading=!0;let r={new_password1:this.newPassForm.get("password1").value,new_password2:this.newPassForm.get("password2").value,token:this.newPassForm.get("token").value};this.authService.resetPassword(r).subscribe(()=>{this.successMsg=this.translate.instant("LANDING.recover-pass-page.passwordSuccess"),this.loading=!1},o=>{this.errorMsg=o.errMsg,this.loading=!1})}};p.\u0275fac=function(o){return new(o||p)(g(T),g(q),g(C),g(F))},p.\u0275cmp=_({type:p,selectors:[["app-recover-pass-page"]],decls:15,vars:6,consts:[[1,"onboarding-page"],[1,"page-header","text-center"],[1,"logo","logo-white"],[1,"container"],[1,"row","justify-content-center"],[1,"col-md-4"],[1,"card","shadow-3","rd-3"],[1,"card-header","text-center"],[1,"card-body"],[3,"formGroup","ngSubmit",4,"ngIf"],[4,"ngIf"],[3,"ngSubmit","formGroup"],["formControlName","email","inputType","email",3,"submitAttempted","placeholder","invali
1dMsg"],["type","danger",3,"msg"],["type","success",3,"msg"],["inputClasses","w100 btn-lg",3,"loading","btnCopy","hasError"],["formControlName","password1","inputType","password",3,"submitAttempted","placeholder"],["formControlName","password2","inputType","password",3,"submitAttempted","placeholder","invalidMsg"],["rel","canonical","routerLink","/login"]],template:function(o,u){o&1&&(l(0,"div",0)(1,"div",1),c(2,"span",2),d(),l(3,"div",3)(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"h3"),y(9),s(10,"translate"),d()(),l(11,"div",8),A(12,J,8,18,"form",9)(13,K,10,23,"form",9)(14,Q,4,3,"p",10),d()()()()()()),o&2&&(t(9),P(n(10,4,"LANDING.recover-pass-page.h3")),t(3),i("ngIf",u.recoverForm),t(),i("ngIf",u.newPassForm),t(),i("ngIf",u.newPassForm))},dependencies:[I,L,R,S,E,B,G,D,j,k,V,U,O,x,M],encapsulation:2});let a=p;return a})();export{ve as RecoverPassPageComponent};
2/**i18n:28945ee13b8e098859cdfd20e56ed1b4fbfdbb0f15acd44f32a354ab994688a6*/
3//# sourceMappingURL=chunk-2TT2XQPP.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.