1"use strict";(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([[812],{6812:(ot,Z,a)=>{a.r(Z),a.d(Z,{RegistrationPageModule:()=>_});var h=a(1048),g=a(9755),x=a(8939),t=a(9724),v=a(3071),R=a(8485),u=a(1483);class A{constructor(i){i&&Object.assign(this,i)}static FromForm(i,r){return Object.assign(i,r),i}}var c=a(2055),y=a(5917),I=a(6797),N=a(3190),F=a(8002),b=a(5304);let M=(()=>{class e{static emailExistsAsync(r,o){return s=>s.value&&s.value.toLowerCase()!==o?(0,I.H)(200).pipe((0,N.w)(()=>r.doesUserExist(s.value)),(0,F.U)(m=>m?{emailExists:!0}:null),(0,b.K)(()=>(0,y.of)({emailExists:"Error"}))):(0,y.of)(null)}}return e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=t.Yz7({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var n=a(1659),U=a(3392),S=a(3794),w=a(6026),l=a(5395),d=a(5691),E=a(6341),T=a(3472),J=a(4848),C=a(6146),P=a(4039);function Y(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function q(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function Q(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function O(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function L(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function D(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function z(e,i){if(1&e&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&e){const r=i.ngIf;t.xp6(1),t.Oqu(r)}}function V(e,i){1&e&&(t.TgZ(0,"button",19),t._uU(1," Create Account "),t.qZA())}function B(e,i){1&e&&(t.TgZ(0,"div",20),t._UZ(1,"mat-progress-spinner",21),t.qZA())}let j=(()=>{class e{constructor(r,o,s,m,f,p){this.cdr=r,this.fb=o,this.formErrorService=s,this.seoService=m,this.userService=f,this.titleService=p,this.submitting=!1,this.register=new t.vpe,this.titleService.setTitle("Visitor Create a New Account"),this.seoService.updateDescription("Create a new PAeducator.net account to find education and jobs")}ngOnInit(){this.initializeForm()}initializeForm(){this.registrationForm=new n.cw({firstName:new n.NI("",[n.kI.required,n.kI.maxLength(100)]),middleName:new n.NI(""),lastName:new n.NI("",[n.kI.required,n.kI.maxLength(100)]),password:new n.NI("",[n.kI.required,c.a.validatePassword]),confirmPassword:new n.NI("",[n.kI.required,c.a.validateConfirmPassword("password")]),emailAddress:new n.NI("",[n.kI.required,c.a.validateEmail,n.kI.maxLength(100)],M.emailExistsAsync(this.userService,"")),confirmAddress:new n.NI("",[n.kI.required,c.a.validateConfirmEmail("emailAddress")])})}getErrorMessage(r){const o=this.registrationForm.get(r);return this.formErrorService.getErrorMessage(o,{pattern:"Must include at least eight characters, one lowercase, one uppercase letter, one digit, and one symbol",emailExists:"Email Address already exists. Try using a different Email Address."})}submit(){this.registrationForm.updateValueAndValidity({onlySelf:!1}),!this.registrationForm.invalid&&this.register.next(A.FromForm(new A,this.registrationForm.getRawValue()))}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(t.sBO),t.Y36(n.qu),t.Y36(U.J),t.Y36(S.v),t.Y36(v.K),t.Y36(w.y))},e.\u0275cmp=t.Xpm({type:e,selectors:[["aiu-registration-page-form"]],inputs:{submitting:"submitting"},outputs:{register:"register"},decls:50,vars:17,consts:[[1,"registration-form",3,"formGroup","ngSubmit"],["fxLayout","column"],[1,"aiu-text-center"],[1,"aiu-mb-2","aiu-text-center"],["appearance","outline","fxFlex","100%"],["matInput","","placeholder","First Name","type","text","formControlName","firstName",3,"readonly"],[4,"ngIf"],["matInput","","placeholder","Middle Name","type","text","formControlName","middleName",3,"readonly"],["matInput","","placeholder","Last Name","type","text","formControlName","lastName",3,"readonly"],["matInput","","placeholder","Email Address","type","text","formControlName","emailAddress",3,"readonly"],["email",""],["matInput","","placeholder","Confirm Email","type","text","formControlName","confirmAddress",3,"readonly"],["matInput","","placeholder","Password","type","password","formControlName","password",3,"readonly"],["mat-icon-button","","matSuffix","","type","button"],["matSuffix","","matTooltip","Password must have at least 7-10 characters and contain at least 1 symbol, 1 capital letter, 1 lower case letter, and 1 number.","matTooltipPosition","before",3,"click"],["tooltip","matTooltip"],["matInput","","placeholder","Confirm Password","type","password","formControlName","confirmPassword",3,"readonly"],["mat-flat-button","","class","aiu-px-4","color","primary","type","submit",4,"ngIf"],["class","aiu-my-2","fxLayout","row","fxLayoutAlign","center",4,"ngIf"],["mat-flat-button","","color","primary","type","submit",1,"aiu-px-4"],["fxLayout","row","fxLayoutAlign","center",1,"aiu-my-2"],["diameter","35","color","primary","mode","indeterminate"]],template:function(r,o){if(1&r){const s=t.EpF();t.TgZ(0,"form",0),t.NdJ("ngSubmit",function(){return o.submit()}),t.TgZ(1,"div",1),t.TgZ(2,"h3",2),t._uU(3,"Create an Account"),t.qZA(),t.TgZ(4,"div",3),t._uU(5,"Please enter an email and password to create an account."),t.qZA(),t.TgZ(6,"mat-form-field",4),t.TgZ(7,"mat-label"),t._uU(8,"First Name"),t.qZA(),t._UZ(9,"
1input",5),t.YNc(10,Y,2,1,"mat-error",6),t.qZA(),t.TgZ(11,"mat-form-field",4),t.TgZ(12,"mat-label"),t._uU(13,"Middle Name"),t.qZA(),t._UZ(14,"input",7),t.YNc(15,q,2,1,"mat-error",6),t.qZA(),t.TgZ(16,"mat-form-field",4),t.TgZ(17,"mat-label"),t._uU(18,"Last Name"),t.qZA(),t._UZ(19,"input",8),t.YNc(20,Q,2,1,"mat-error",6),t.qZA(),t.TgZ(21,"mat-form-field",4),t.TgZ(22,"mat-label"),t._uU(23,"Email Address"),t.qZA(),t._UZ(24,"input",9,10),t.YNc(26,O,2,1,"mat-error",6),t.qZA(),t.TgZ(27,"mat-form-field",4),t.TgZ(28,"mat-label"),t._uU(29,"Confirm Email"),t.qZA(),t._UZ(30,"input",11,10),t.YNc(32,L,2,1,"mat-error",6),t.qZA(),t.TgZ(33,"mat-form-field",4),t.TgZ(34,"mat-label"),t._uU(35,"Password"),t.qZA(),t._UZ(36,"input",12),t.YNc(37,D,2,1,"mat-error",6),t.TgZ(38,"button",13),t.TgZ(39,"mat-icon",14,15),t.NdJ("click",function(){return t.CHM(s),t.MAs(40).toggle()}),t._uU(41," info "),t.qZA(),t.qZA(),t.qZA(),t.TgZ(42,"mat-form-field",4),t.TgZ(43,"mat-label"),t._uU(44,"Confirm Password"),t.qZA(),t._UZ(45,"input",16),t.YNc(46,z,2,1,"mat-error",6),t.qZA(),t.TgZ(47,"div",2),t.YNc(48,V,2,0,"button",17),t.YNc(49,B,2,0,"div",18),t.qZA(),t.qZA(),t.qZA()}2&r&&(t.Q6J("formGroup",o.registrationForm),t.xp6(9),t.Q6J("readonly",o.submitting),t.xp6(1),t.Q6J("ngIf",o.getErrorMessage("firstName")),t.xp6(4),t.Q6J("readonly",o.submitting),t.xp6(1),t.Q6J("ngIf",o.getErrorMessage("middleName")),t.xp6(4),t.Q6J("readonly",o.submitting),t.xp6(1),t.Q6J("ngIf",o.getErrorMessage("lastName")),t.xp6(4),t.Q6J("readonly",o.submitting),t.xp6(2),t.Q6J("ngIf",o.getErrorMessage("emailAddress")),t.xp6(4),t.Q6J("readonly",o.submitting),t.xp6(2),t.Q6J("ngIf",o.getErrorMessage("confirmAddress")),t.xp6(4),t.Q6J("readonly",o.submitting),t.xp6(1),t.Q6J("ngIf",o.getErrorMessage("password")),t.xp6(8),t.Q6J("readonly",o.submitting),t.xp6(1),t.Q6J("ngIf",o.getErrorMessage("confirmPassword")),t.xp6(2),t.Q6J("ngIf",!o.submitting),t.xp6(1),t.Q6J("ngIf",o.submitting))},directives:[n._Y,n.JL,n.sg,l.xw,d.KE,l.yH,d.hX,E.Nt,n.Fj,n.JJ,n.u,h.O5,d.TO,T.lW,d.R9,J.Hw,C.gM,l.Wh,P.Ou],styles:[""]}),e})();const H=["successfulRegisterDialog"];function W(e,i){if(1&e){const r=t.EpF();t.TgZ(0,"div",7),t.TgZ(1,"p"),t._uU(2,"Your account has been created and an email has been sent for you to confirm your email address. Please confirm that before logging in."),t.qZA(),t.qZA(),t.TgZ(3,"div",8),t.TgZ(4,"button",9),t.NdJ("click",function(){return t.CHM(r),t.oxw().closeSuccessfulRegisterDialog()}),t._uU(5,"Close"),t.qZA(),t.qZA()}}const k=[{path:"",component:(()=>{class e{constructor(r,o,s,m,f,p,tt,et,rt){this.activatedRoute=r,this.cdr=o,this.userService=s,this.dialog=m,this.snackbarService=f,this.titleService=p,this.headerTitleService=tt,this.seoService=et,this.router=rt,this.submitting=!1}ngOnInit(){this.headerTitleService.setTitle("Create an Account with PAeducator.net"),this.titleService.setTitle("Register with PAeducator.net",!1),this.seoService.updateDescription("Create an account with PAeducator.net")}createAccount(r){this.submitting=!0,this.cdr.markForCheck(),this.userService.registerUser(r).pipe((0,x.x)(()=>{this.submitting=!1,this.cdr.markForCheck()})).subscribe(o=>{this._openSuccessfulRegisterDialog()},o=>{this.snackbarService.error(o)})}get loginLink(){return["/login"]}closeSuccessfulRegisterDialog(){this.successfulRegisterDialogRef.close(),this.router.navigate(["/"])}_openSuccessfulRegisterDialog(){this.successfulRegisterDialogRef=this.dialog.open(this.successfulRegisterDialog,{disableClose:!0})}}return e.\u0275fac=function(r){return new(r||e)(t.Y36(g.gz),t.Y36(t.sBO),t.Y36(v.K),t.Y36(R.uw),t.Y36(u.cw),t.Y36(u.yD),t.Y36(u.go),t.Y36(u.v2),t.Y36(g.F0))},e.\u0275cmp=t.Xpm({type:e,selectors:[["aiu-registration-page"]],viewQuery:function(r,o){if(1&r&&t.Gf(H,5),2&r){let s;t.iGM(s=t.CRH())&&(o.successfulRegisterDialog=s.first)}},decls:11,vars:2,consts:[[1,"page-section","aiu-py-10"],[1,"aiu-px-2","registration-page"],[1,"aiu-text-center","aiu-my-3"],[3,"submitting","register"],[1,"aiu-text-center","aiu-my-3","sign-in"],[1,"aiu-link-dark",3,"routerLink"],["successfulRegisterDialog",""],["mat-dialog-content",""],["mat-dialog-actions","","fxLayout","row","fxLayoutGap","16px","fxLayoutAlign","center"],["type","button","mat-stroked-button","","matDialogClose","",3,"click"]],template:function(r,o){1&r&&(t.TgZ(0,"div",0),t.TgZ(1,"div",1),t.TgZ(2,"div",2),t._uU(3," Welcome to PAeducator.net! "),t.qZA(),t.TgZ(4,"aiu-registration-page-form",3),t.NdJ("register",function(m){return o.createAccount(m)}),t.qZA(),t.TgZ(5,"div",4),t._uU(6," Already have an account? "),t.TgZ(7,"a",5),t._uU(8,"Sign in."),t.qZA(),t.qZA(),t.qZA(),t.qZA(),t.YNc(9,W,6,0,"ng-template",null,6,t.W1O)),2&r&&(t.xp6(4),t.Q6J("submitting",o.submitting),t.xp6(3),t.Q6J("routerLink",o.loginLink))},directives:[j,g.yS,l.xw,l.SQ,l.Wh,T.lW],styles:[".registration-page[_ngcontent-%COMP%]{margin:auto;width:100%;max-width:700px}.sign-in[_ngcontent-%COMP%]{color:#000}.sign-in[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:inherit}"]}),e})(),pathMatch:"full"}];let G=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[g.Bz.forChild(k)],g.Bz]}),e})();var K=a(4466),X=a(5821),$=a(7526);let _=(()=>{class e{}return e.\u0275fac=function(r){return new(r||e)},e.\u0275mod=t.oAB({type:e}),e.\u0275inj=t.cJS({imports:[[h.ez,K.m,G,C.AV,X.Bb,P.Cq,$.T5]]}),e})()}}]);
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.