PageSourceSearch

https://rekonise.com/chunk-6EHIAHWD.js

js rekonise.com collected 2026-10-01 11:50:18 UTC 5,450 bytes, 1 lines download raw bytes

1import{a as ot,b as nt}from"./chunk-I7ZGB4LK.js";import{a as rt,b as it}from"./chunk-JD27UMYY.js";import{a as et}from"./chunk-7SNXKA4S.js";import{l as L}from"./chunk-M6EONT6G.js";import"./chunk-WGHYPPVN.js";import{a as Y}from"./chunk-UAQCXPRU.js";import"./chunk-BZGVTZTX.js";import{b as J,c as Q}from"./chunk-GXPWKOGD.js";import"./chunk-S7VXHWAW.js";import"./chunk-76G25NHC.js";import{a as Z}from"./chunk-5XJN6G4E.js";import{a as tt}from"./chunk-UAJ3LDZG.js";import{a as O,b as z,e as X,h as H}from"./chunk-ETTGII3S.js";import{b as D,d as p,f as F,g as N,k as q,m as V,p as P,t as $,v as j,y as K}from"./chunk-EFFKYZ4R.js";import"./chunk-S3OUMWH4.js";import{b as U}from"./chunk-YABJUEQ6.js";import{a as W}from"./chunk-IQ4DJ3PK.js";import{a as A}from"./chunk-N2DDWHMI.js";import"./chunk-RDCV7OYL.js";import"./chunk-3DJX6TII.js";import{e as M,g as R,h as x,m as I}from"./chunk-QRHPXOKA.js";import"./chunk-HKSRDAI3.js";import"./chunk-BR7SVKEQ.js";import"./chunk-FBPQG6MS.js";import"./chunk-HYC3WGKD.js";import"./chunk-2PPFUFFT.js";import{a as B,b as T}from"./chunk-7OXH5EWV.js";import"./chunk-FTXGPRFJ.js";import{a as w,d as G}from"./chunk-BRRFPLOY.js";import"./chunk-HGFVTFKX.js";import{Ib as u,K as h,Ub as e,V as c,Vb as i,Wb as v,bc as f,ea as a,f as S,gb as s,ld as C,qc as n,rc as E,sb as b,yb as g,yd as k}from"./chunk-EL2YAQZX.js";import"./chunk-EQDQRRRY.js";function at(o,_){o&1&&(e(0,"mat-error"),n(1," Enter a valid email "),i())}function mt(o,_){o&1&&(e(0,"mat-error"),n(1," Enter your email "),i())}function st(o,_){o&1&&(e(0,"mat-error"),n(1," Enter a valid password "),i())}var qt=(()=>{class o{constructor(){this.fb=a(j),this.auth=a(A),this.router=a(R),this.route=a(M),this.titleService=a(tt),this.destroy$=new S,this.hide=!0,this.returnUrl="/dashboard",this.snackBar=a(L),this.events=a(W),this.pendingLink=a(et)}ngOnInit(){this.titleService.set("Register"),this.formGroup=this.fb.group({email:["",[p.email,p.pattern(Y.EMAIL_REGEX),p.required]],password:["",p.required]}),this.returnUrl=this.route.snapshot.queryParams.returnUrl||"/dashboard"}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}togglePasswordVisibility(){this.hide=!this.hide}onSubmit(){this.formGroup.invalid||this.auth.register(this.formGroup.get("email")?.value,this.formGroup.get("password")?.value).pipe(h(),c(this.destroy$)).subscribe({next:()=>{this.events.userRegisteredEvent({source:"register_form",method:"email",context:{has_return_url:this.returnUrl!=="/dashboard"}}),this.completeAfterRegister()},error:()=>{this.snackBar.open("Registration failed","Dismiss",{horizontalPosition:"right"})}})}completeAfterRegister(){let l=this.pendingLink.get();if(!l&&!this.pendingLink.hasClaims()){this.router.navigateByUrl(this.returnUrl);return}this.pendingLink.finishAfterAuth().pipe(h(),c(this.destroy$)).subscribe({next:({claimed:r,created:t})=>{r.length&&this.events.anonymousLinkClaimedEvent({source:"register",count:r.length}),t&&this.events.socialUnlockCreatedEvent({source:"pending_link_after_register",unlock_type:String(U.LINK),action_count:l?.actions.length??0});let m=t?.slug??r[r.length-1];m?this.router.navigate(["/dashboard/links",m]):this.router.navigateByUrl(this.returnUrl)},error:()=>{this.snackBar.open("Account created, but we couldn't save your link. Try again from the dashboard.","Dismiss",{horizontalPosition:"right"}),this.router.navigate(["/dashboard"])}})}onEmailKeyup(l){let r=l.target;r&&this.formGroup.patchValue({email:r.value.toLowerCase()})}static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=b({type:o,selectors:[["app-register"]],decls:25,vars:6,consts:[["heading","Create a free account"],[1,"space-y-2",3,"ngSubmit","formGroup"],["appearance","outline",1,"w-full"],["matInput","","matInputAutofocus","","placeholder","[email protected]","formControlName","email","required","","autocomplete","current-email",3,"keyup"],[4,"ngIf"],["matInput","","formControlName","password","required","","autocomplete","current-password",3,"type"],["matSuffix","",3,"click"],[1,"flex","justify-end","mt-4","gap-3"],["type","submit","mat-flat-button","","color","primary"],["authFooter","",1,"mt-4","text-center","text-sm/6","text-muted"],["routerLink","/login",1,"font-semibold","text-primary","hover:text-primary/50"]],template:function(r,t){if(r&1&&(e(0,"app-auth-shell",0)(1,"app-card"),v(2,"app-oauth-buttons")(3,"a
1pp-auth-divider"),e(4,"form",1),f("ngSubmit",function(){return t.onSubmit()}),e(5,"mat-form-field",2)(6,"mat-label"),n(7,"Enter your email"),i(),e(8,"input",3),f("keyup",function(d){return t.onEmailKeyup(d)}),i(),g(9,at,2,0,"mat-error",4)(10,mt,2,0,"mat-error",4),i(),e(11,"mat-form-field",2)(12,"mat-label"),n(13,"Enter your password"),i(),v(14,"input",5),e(15,"mat-icon",6),f("click",function(){return t.hide=!t.hide}),n(16),i(),g(17,st,2,0,"mat-error",4),i(),e(18,"div",7)(19,"button",8),n(20," Create account "),i()()()(),e(21,"p",9),n(22," Already have an account? "),e(23,"a",10),n(24,"Sign in"),i()()()),r&2){let m,d,y;s(4),u("formGroup",t.formGroup),s(5),u("ngIf",(m=t.formGroup.get("email"))==null?null:m.hasError("email")),s(),u("ngIf",(d=t.formGroup.get("email"))==null?null:d.hasError("required")),s(4),u("type",t.hide?"password":"text"),s(2),E(t.hide?"visibility_off":"visibility"),s(),u("ngIf",(y=t.formGroup.get("password"))==null?null:y.invalid)}},dependencies:[rt,k,C,T,B,Q,J,H,O,z,X,G,w,K,q,D,F,N,$,V,P,I,x,Z,it,nt,ot],encapsulation:2})}}return o})();export{qt as RegisterComponent};

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.