1import{a as yt,b as ni}from"./chunk-5XGNJBFC.js";import{Pb as It,Qb as ai,Wc as si,i as pe,j as qe,k as J,kd as bt,l as Le,ld as li,m as ce,md as Et,n as je,nd as mi,wa as Ie,xa as ze}from"./chunk-UJKMVF2Z.js";import{$ as te,$d as Re,Aa as Se,Ab as l,Ad as _t,Bb as p,Cb as re,Cc as ke,E as oi,Ha as n,Hc as T,Hf as j,I as pt,Ia as o,Ic as se,If as Ze,Ja as a,Jc as dt,Jd as ft,Jf as M,Ka as g,Kc as Y,Mc as x,Nc as le,Nd as H,O as I,Oa as et,P as b,Pa as tt,Pc as me,Pf as B,Qf as He,Ra as Z,Rf as P,Sb as L,Se as U,Sf as ye,Ta as y,Te as Me,Ub as Te,Ue as q,Va as S,Vb as xe,Vf as Be,Wb as oe,Ya as z,Yd as gt,Za as N,Zd as vt,_a as Q,ae as Oe,ce as $e,dc as ne,eh as X,ff as We,gc as ae,hb as c,hd as fe,hf as O,ia as i,ib as F,id as Pe,j as mt,jb as u,jd as f,kb as Ae,kd as ge,kg as $,ld as ve,nd as V,oa as d,pe as Ct,qa as E,qb as R,qd as C,ra as ct,rb as De,rd as ut,sd as Ce,ue as Ft,va as v,vb as be,ve as wt,wb as ie,wd as Fe,xb as Ee,xd as we,yb as G,zd as ht}from"./chunk-3KXTMGPY.js";import{f as W,i as ri,k as lt}from"./chunk-WHAQOLYP.js";var pi,St,Tt=W(()=>{"use strict";L();H();$();ae();L();Y();X();me();pi=["emailField"],St=(()=>{let r=class r{constructor(s,m,e,_,w,k){this.router=s,this.tools=m,this.translate=e,this.events=_,this.tracking=k,this.emailFormControl=new C("",[f.required,f.email]),this.form=new V({email:this.emailFormControl}),this.observerListeners=[],this.emailLink="",this.isBrowser=ne(w)}ngOnInit(){this.emailLink=this.isBrowser?window.location.href:"",this.tools.setTheme("default"),this.events.broadcast("userdeleteaccount:show",{emailLink:this.emailLink}),this.tracking.trackPageView(this.router.url,O.deleteAccount)}};r.\u0275fac=function(m){return new(m||r)(d(T),d(M),d(x),d(q),d(te),d(B))},r.\u0275cmp=E({type:r,selectors:[["app-delete-account"]],viewQuery:function(m,e){if(m&1&&z(pi,5),m&2){let _;N(_=Q())&&(e.emailField=_.first)}},standalone:!1,decls:0,vars:0,template:function(m,e){},styles:[`.form__group[_ngcontent-%COMP%]{margin:3rem 0}@media(max-width:600px){.form__group[_ngcontent-%COMP%]{margin:3rem 0 4rem}} 2/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/delete-account.component-NCT7Y5RX.css.map */`]});let t=r;return t})()});var ci,xt,kt=W(()=>{"use strict";H();$();L();X();Y();me();ci=["emailField"],xt=(()=>{let r=class r{constructor(s,m,e,_,w,k){this.events=s,this.router=m,this.tools=e,this.translate=_,this.tracking=w,this.as=k,this.emailFormControl=new C("",{validators:[f.required,f.email]}),this.form=new V({email:this.emailFormControl}),this.success=!1,this.errorEmail=!1,this.observerListeners=[]}ngOnInit(){this.tools.setTheme("default"),this.tracking.trackPageView(this.router.url,O.forgotPassword),this.events.broadcast("userforgotpassword:show")}errorField(){this.emailField.nativeElement.classList.remove("form__group--success"),this.emailField.nativeElement.classList.add("form__group--error"),this.emailFormControl.setErrors({incorrect:!0}),this.errorEmail=!0}emailOnFocus(){this.errorEmail=!1}submitForm(){this.as.forgotPassword(this.form.controls.email.value).subscribe(()=>{this.success=!0,this.emailFormControl.reset()},s=>{this.success=!1,this.error=s.code==="auth/user-not-found"?this.translate.instant("Auth.Login.forget_password_not_found"):this.translate.instant("Auth.Login.forget_password_error"),this.errorField()})}};r.\u0275fac=function(m){return new(m||r)(d(q),d(T),d(M),d(x),d(B),d(P))},r.\u0275cmp=E({type:r,selectors:[["app-forgot-password"]],viewQuery:function(m,e){if(m&1&&z(ci,5),m&2){let _;N(_=Q())&&(e.emailField=_.first)}},standalone:!1,decls:0,vars:0,template:function(m,e){},styles:[`.form__group[_ngcontent-%COMP%]{margin:3rem 0 2rem}@media(max-width:939px){.forgot-password__btns[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}}@media(min-width:940px){.forgot-password__help[_ngcontent-%COMP%]{margin-top:40px}} 3/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/forgot-password.component-PHFPIYD4.css.map */`]});let t=r;return t})()});var Pt,Rt=W(()=>{"use strict";L();ae();H();$();L();Y();X();me();$();Pt=(()=>
3{let r=class r{constructor(s,m,e,_,w,k,A,D,K,he,Ve){this.router=s,this.activatedRoute=m,this.events=e,this.tools=_,this.translate=w,this.localeRoute=k,this.tracking=A,this.as=D,this.routerExtService=K,this.storage=he,this.emailFormControl=new C("",[f.required,f.email]),this.passwordFormControl=new C("",[f.required]),this.form=new V({email:this.emailFormControl,password:this.passwordFormControl}),this.pwdType="password",this.submitted=!1,this.unsuccessful=!1,this.isVisible=!1,this.redirectUri=null,this.errorsPwd=0,this.observerListeners=[],this.resetPwdPopup=()=>{this.errorsPwd=0},this.isBrowser=ne(Ve);let Je=this.tools.parseQueryString();this.redirectUri=Je.redirect_uri?Je.redirect_uri:null,this.as.getCurrentUser().subscribe(ii=>{ii&&Je.switch_account==="1"&&(this.as.logout(),this.events.broadcast("auth:logout"))});let ti=this.isBrowser?window.location.search:this.tools.convertQueryParamsToQueryString(this.activatedRoute.snapshot.queryParams),st=new URLSearchParams(ti);this.tools.redirectUriAccountCreation=st.get("redirect_uri")?st.get("redirect_uri"):""}ngOnInit(){this.tools.setTheme("default"),this.form.updateValueAndValidity(),this.events.on("close-popup-reset-pwd",this.resetPwdPopup),this.tracking.trackPageView(this.router.url,O.login),this.events.broadcast("userlogin:show"),this.events.on("redirectUser",s=>{if(s&&this.shouldRedirectToProfile(s)){this.storage.setItem("has-been-redirected-to-profile","1"),this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.profile.root"),!0)]);return}
3let m=this.routerExtService.getPreviousUrl();if(m){this.router.navigateByUrl(m);return}this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.students.root"),!0)])})}togglePwdType(){this.pwdType=this.pwdType==="password"?"text":"password",this.isVisible=!this.isVisible}submitForm(){this.submitted=!0,this.unsuccessful=!1,this.events.broadcast("login:action",{email:this.emailFormControl.value,password:this.passwordFormControl.value})}onLoginFocus(){this.events.broadcast("flo:auth:animate","login")}onLoginBlur(){this.events.broadcast("flo:auth:animate","")}onPasswordFocus(){this.events.broadcast("flo:auth:animate","password")}onPasswordBlur(){this.events.broadcast("flo:auth:animate","")}shouldRedirectToProfile(s){let m=this.storage.getItem("has-been-redirected-to-profile");return s.isMigrated&&!s.updatedProfile&&s.type===U.student&&m!=="1"}};r.\u0275fac=function(m){return new(m||r)(d(T),d(ke),d(q),d(M),d(x),d(j),d(B),d(P),d(He),d(Ze),d(te))},r.\u0275cmp=E({type:r,selectors:[["app-login"]],standalone:!1,decls:0,vars:0,template:function(m,e){},styles:[`.login__btns[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;grid-gap:2rem}@media(min-width:480px){.login__btns[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr)}}@media(max-width:479px){.login__btns[_ngcontent-%COMP%] .login__submit-btn[_ngcontent-%COMP%]{order:-2}.login__btns[_ngcontent-%COMP%] .login__help-btn[_ngcontent-%COMP%]{order:-1}} 4/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/login.component-E7ZX4D3E.css.map */`]});let t=r;return t})()});var Ot,Mt=W(()=>{"use strict";L();ae();L();X();Y();me();Ot=(()=>{let r=class r{constructor(s,m,e,_,w,k,A){this.localeRoute=s,this.storage=m,this.router=e,this.translate=_,this.auth=w,this.route=A,this.observerListeners=[],this.isBrowser=ne(k)}ngOnInit(){let s=this.isBrowser?new URL(window.location.href).searchParams:this.route.snapshot.queryParamMap;this.auth.reactivateAccount(s.get("reactivate_token")).then(m=>{this.storage.setItem("account_reactivated","true")}).catch(m=>{this.storage.setItem("account_reactivated","false")}),this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.profile.root"),!0)])}};r.\u0275fac=function(m){return new(m||r)(d(j),d(Ze),d(T),d(x),d(P),d(te),d(ke))},r.\u0275cmp=E({type:r,selectors:[["app-reactivate-account"]],standalone:!1,decls:0,vars:0,template:function(m,e){},encapsulation:2});let t=r;return t})()});function di(t,r){if(t&1&&(o(0,"h1",9),c(1),l(2,"translate"),a()),t&2){let h=S();i(),Ae(" ",p(2,2,"Auth.RegisterComplete.greeting")," ",h.user.nickname," ")}}var Bt,Vt=W(()=>{"use strict";$();L();X();Y();me();je();ae();qe();Le();Bt=(()=>{let r=class r{constructor(s,m,e,_,w,k){this.tools=s,this.router=m,this.translate=e,this.localeRoute=_,this.tracking=w,this.as=k,this.subscriptions=[],this.as.getCurrentUser().subscribe(A=>{this.user=A,A||this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.root"))])})}ngOnInit(){this.tools.setTheme("default"),this.tools.scrollTo(),this.tools.addBodyClass("page__register-confirm"),this.tracking.trackPageView(this.router.url,O.registerInfoConfirmation)}ngOnDestroy(){this.tools.removeBodyClass("page__register-confirm"),this.subscriptions.forEach(s=>s.unsubscribe())}};r.\u0275fac=function(m){return new(m||r)(d(M),d(T),d(x),d(j),d(B),d(P))},r.\u0275cmp=E({type:r,selectors:[["app-register-confirmation"]],standalone:!1,decls:16,vars:14,consts:[[3,"bgColor"],[3,"isWrapping"],[1,"success__head"],["src","assets/images/motivateur.svg"],[1,"success__content"],[1,"success__content__inner"],["class","title title--h1alt",4,"ngIf"],[1,"btn-wrapper"],["data-test","register-confirmation",1,"btn","btn--lg",3,"routerLink"],[1,"title","title--h1alt"]],template:function(m,e){m&1&&(o(0,"app-layout",0)(1,"app-base-section",1)(2,"div",2),g(3,"img",3),a()(),o(4,"app-base-section",1)(5,"div",4)(6,"div",5),v(7,di,3,4,"h1",6),o(8,"p"),c(9),l(10,"translate"),a(),o(11,"div",7)(12,"a",8),l(13,"localizeRoute"),c(14),l(15,"translate"),a()()()()()()),m&2&&(n("bgColor","000"),i(),n("isWrapping","register-success"),i(3),n("isWrapping","register-success-content"),i(3),n("ngIf",e.user&&e.user.nickname),i(2),u(" ",p(10,7,(e.user==null?null:e.user.type)==="student"||(e.user==null?null:e.user.type)==="adult"?"Auth.RegisterComplete.text":"Auth.RegisterComplete.text_prof")," "),i(3),n("routerLink",re(13,9,"ROUTES.auth.register.profile",!0)),i(2),F(p(15,12,"Auth.RegisterComplete.next")))},dependencies:[ce,oe,pe,se,le,J],styles:[`.success__head{height:100%}.success__head img{display:block;margin:auto;width:100%;height:100%;max-width:var(--head-width, 210px)}@media(min-width:1600px){.success__head img{--head-width: 38%}}@media(min-width:940px)and (max-width:1599px){.success__head img{--head-width: 42%}}@media(min-width:600px)and (max-width:939px){.success__head img{--head-width: 38%}}@media(min-width:600px)and (max-width:939px)and (orientation:portrait){.success__head img{--head-width: 70%}}@media(min-width:600px){.success__head img{position:relative;top:20px}}@media(max-width:599px){.success__head img{margin-bottom:35px;margin-top:50px}}.success__content{position:relative;min-height:100%;display:flex;align-items:center;justify-content:center;text-align:center}@media(min-width:941px){.success__content{padding:60px 0}}@media(max-width:940px){.success__content{padding:20px 0}}.success__content__inner{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.success__content p{margin:15px auto 20px}@media(min-width:941px){.success__content p{max-width:500px}}@media(max-width:940px){.success__content p{max-width:90%}}.page__register-confirm .layout__main{display:flex;flex-direction:column}.page__register-confirm .layout__main app-base-section:first-child{height:58vh}.page__register-confirm .layout__main app-base-section:last-child{min-height:42vh;height:auto;display:flex;flex-direction:column} 5/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register-confirmation.component-TY7PGTCW.css.map */ 6`],encapsulation:2});let t=r;return t})()});function Ci(t,r){t&1&&g(0,"span",42)}function Fi(t,r){t&1&&(o(0,"div",43),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.nickname_info")," "))}function wi(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.nickname_required")," "))}function yi(t,r){t&1&&g(0,"span",42)}function Ii(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_error")," "))}function bi(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_required")," "))}function Ei(t,r){if(t&1&&(o(0,"div",44),c(1),a()),t&2){let h=S();i(),u(" ",h.error," ")}}function Si(t,r){t&1&&g(0,"span",42)}function Ti(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_confirm_error")," "))}function xi(t,r){t&1&&(o(0,"div",43),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Validators.password_requirements")," "))}function ki(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_required")," "))}function Pi(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_length")," "))}function Ri(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_pattern")," "))}function Oi(t,r){if(t&1&&(o(0,"ng-option",45),c(1),a()),t&2){let h=r.$implicit;n("value",h.id),i(),u(" ",h.name," ")}}function Mi(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.province_required")," "))}function Bi(t,r){if(t&1&&(o(0,"ng-option",45),c(1),l(2,"translate"),a()),t&2){let h=r.$implicit;n("value",h),i(),u(" ",p(2,2,"Common.Forms.Levels.l"+h)," ")}}function Vi(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.level_required")," "))}function Ai(t,r){if(t&1&&(o(0,"div",18)(1,"div",27)(2,"label",46),c(3),l(4,"translate"),a(),o(5,"ng-select",47),l(6,"translate"),l(7,"translate"),v(8,Bi,3,4,"ng-option",30),a(),v(9,Vi,3,3,"div",17),a()()),t&2){let h=S();i(3),F(p(4,10,"Common.Forms.level")),i(2),n("placeholder",R(p(6,12,"Common.Forms.choose")))("notFoundText",R(p(7,14,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1)("formControl",h.levelFormControl),i(3),n("ngForOf",be(16,vi)),i(),n("ngIf",!h.levelFormControl.pristine&&h.levelFormControl.hasError("required"))}}var ui,hi,_i,fi,it,gi,vi,At,Lt=W(()=>{"use strict";H();$();L();Y();X();me();$();je();ae();H();qe();$e();ze();Le();ui=["phone"],hi=["emailField"],_i=t=>[t],fi=(t,r)=>({"form__group--error":t,"form__group--success":r}),it=(t,r,h)=>({"form__group--error":t,"form__group--success":r,"form__group--has-value":h}),gi=t=>({active:t}),vi=()=>[1,2,3,4,5,6,7,8,9,10,11,12];At=(()=>
6{let r=class r{constructor(s,m,e,_,w,k,A,D,K,he){this.router=s,this.tools=m,this.content=e,this.translate=_,this.state=w,this.events=k,this.localeRoute=A,this.tracking=D,this.as=K,this.windowService=he,this.nicknameFormControl=new C("",[f.required]),this.emailFormControl=new C("",{validators:[f.required,f.email]}),this.emailConfirmFormControl=new C("",{updateOn:"change"}),this.passwordFormControl=new C("",[f.minLength(8),f.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),f.required]),this.levelFormControl=new C("",[f.required]),this.provinceFormControl=new C("",[f.required]),this.agreeTermsFormControl=new C("",[f.requiredTrue]),this.form=new V({nickname:this.nicknameFormControl,email:this.emailFormControl,emailConfirm:this.emailConfirmFormControl,password:this.passwordFormControl,level:this.levelFormControl,province:this.provinceFormControl,agreeTerms:this.agreeTermsFormControl}),this.pwdType="password",this.provinces=[],this.errorEmail=!1,this.isVisible=!1,this.subscriptions=[],this.topicSrc=this.tools.getEnumKeys("topics"),this.topics=this.tools.getEnumKeys("topics").map(Ve=>({name:Ve,value:1})),this.getProvinces()}ngOnInit(){this.tools.setTheme("default"),this.state.get("user")?(this.user=this.state.get("user"),this.user.type==U.adult&&(this.nicknameFormControl.setValue(this.user.nickname),this.emailFormControl.setValue(this.user.email),this.provinceFormControl.setValue(this.user.province),this.levelFormControl.setValue(this.user.level),this.form.updateValueAndValidity())):this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.root"))]),this.tracking.trackPageView(this.router.url,O.registerInfoAdult)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}getProvinces(){this.provinces=this.tools.getCustomSortedProvinces()}togglePwdType(){this.pwdType=this.pwdType==="password"?"text":"password",this.isVisible=!this.isVisible}emailOnFocus(){this.errorEmail=!1}isInQuebec(){return this.provinceFormControl.value=="Quebec"}validateForm(){this.isInQuebec()?this.levelFormControl.setValidators([f.required]):this.levelFormControl.clearValidators(),this.levelFormControl.setValue(null),this.levelFormControl.markAsPristine(),this.levelFormControl.updateValueAndValidity(),this.levelFormControl.updateValueAndValidity()}setSkills(){this.user.skills={};let s=this.isInQuebec()?this.user.level:12;this.tools.getTopicsPerUserLevel(s).forEach(m=>{this.user.skills[m]=1})}scrollToEmail(){this.emailField.nativeElement.classList.remove("form__group--success"),this.emailField.nativeElement.classList.add("form__group--error"),this.emailFormControl.setErrors({incorrect:!0}),this.emailConfirmFormControl.reset(),this.tools.scrollTo({top:this.emailField.nativeElement.getBoundingClientRect().top+this.windowService.scrollY-90})}submitForm(){this.form.valid&&this.emailFormControl.value===this.emailConfirmFormControl.value&&(this.user.nickname=this.nicknameFormControl.value,this.user.email=this.emailFormControl.value,this.user.password=this.passwordFormControl.value,this.user.province=this.provinceFormControl.value,this.user.level=this.levelFormControl.value,this.setSkills(),this.user.photo_url="0",this.as.register(this.user).then(()=>{this.events.broadcast("user:updated",this.user),this.state.delete("user"),this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.confirmation"))])}).catch(s=>{this.errorEmail=!0,this.error=s.error.code==="auth/email-already-exists"?this.translate.instant(this.translate.instant("Common.Forms.Errors.email_in_use")):this.translate.instant(this.translate.instant("Common.Forms.Errors.invalid_register")),this.scrollToEmail()}))}};r.\u0275fac=function(m){return new(m||r)(d(T),d(M),d(Be),d(x),d(ye),d(q),d(j),d(B),d(P),d(Me))},r.\u0275cmp=E({type:r,selectors:[["app-register-info-adult"]],viewQuery:function(m,e){if(m&1&&
6(z(ui,5),z(hi,5)),m&2){let _;N(_=Q())&&(e.phone=_.first),N(_=Q())&&(e.emailField=_.first)}},standalone:!1,decls:91,vars:101,consts:[["emailField",""],[3,"bgCreamColor"],[3,"isWrapping"],[1,"register__header"],[1,"breadcrumbs"],["data-test","register-info-back",1,"link","link--sm",3,"routerLink"],[1,"icon","icon-chevron-sm","icon--rotate-right"],[1,"link__text"],[1,"title","title--h2"],[1,"form",3,"ngSubmit","formGroup"],[1,"form__grid","form__grid--1col","form__grid--section","form__grid--general-info"],[1,"form__item","form__item--nick"],[1,"form__group",3,"ngClass"],["data-test","register-info-nickname","type","text",1,"form__control",3,"formControl"],[1,"form__item__label"],["class","form__item__status form__item__status--non-clickable icon icon-checkmark-sm",4,"ngIf"],["class","form__item__hint",4,"ngIf"],["class","form__item__msg",4,"ngIf"],[1,"form__item"],["data-test","register-info-email","type","email",1,"form__control",3,"input","formControl"],["data-test","register-info-email-confirm","type","email","onCopy","return false","onDrag","return false","onDrop","return false","onPaste","return false",1,"form__control",3,"formControl"],["data-test","register-info-pwd","autocomplete","off",1,"form__control",3,"type","formControl"],["matSuffix","",1,"form__item__status",3,"click"],[1,"icon","icon-visible","icon--to-invisible",3,"ngClass"],[1,"form__grid","form__grid--1col","form__grid--section"],[1,"register__section",3,"ngClass"],[1,"form__grid","form__grid--1col","form__grid--school",3,"ngClass"],[1,"form__group"],["name","provinceForm",1,"caption"],["labelForId","provinceForm",1,"province-select",3,"change","placeholder","notFoundText","searchable","clearable","formControl"],[3,"value",4,"ngFor","ngForOf"],["class","form__item",4,"ngIf"],[1,"form__bottom"],[1,"form__section","form__conditions"],[1,"form__checkbox"],["type","checkbox","id","register-agree-terms","data-test","register-agree-terms",3,"formControl"],["for","register-agree-terms"],[1,"link","link--sm","link__conditions"],["target","_blank","href","/fr/pages/protection-des-renseignements-personnels-et-conditions-d-utilisation",1,"link","link--sm","link--active"],[1,"btn-wrapper"],["data-test","register-info-submit","type","submit",1,"btn","btn--lg",3,"disabled"],[1,"register-flo","register-flo--step2"],[1,"form__item__status","form__item__status--non-clickable","icon","icon-checkmark-sm"],[1,"form__item__hint"],[1,"form__item__msg"],[3,"value"],["name","levelForm",1,"caption"],["labelForId","levelForm","data-test","register-info-level",3,"placeholder","notFoundText","searchable","clearable","formControl"]],template:function(m,e){if(m&1){let _=Z();o(0,"app-layout",1)(1,"app-base-section",2)(2,"div",3)(3,"div",4)(4,"a",5),l(5,"localizeRoute"),g(6,"span",6),o(7,"span",7),c(8),l(9,"translate"),a()(),o(10,"h2",8),c(11),l(12,"translate"),a()()(),o(13,"form",9),y("ngSubmit",function(){return I(_),b(e.submitForm())}),o(14,"div",10)(15,"div",11)(16,"div",12),g(17,"input",13),o(18,"label",14),c(19),l(20,"translate"),a(),v(21,Ci,1,0,"span",15)(22,Fi,3,3,"div",16)(23,wi,3,3,"div",17),a()(),o(24,"div",18)(25,"div",12,0)(27,"input",19),y("input",function(){return I(_),b(e.emailOnFocus())}),a(),o(28,"label",14),c(29),l(30,"translate"),a(),v(31,yi,1,0,"span",15)(32,Ii,3,3,"div",17)(33,bi,3,3,"div",17)(34,Ei,2,1,"div",17),a()(),o(35,"div",18)(36,"div",12),g(37,"input",20),o(38,"label",14),c(39),l(40,"translate"),a(),v(41,Si,1,0,"span",15)(42,Ti,3,3,"div",17),a()(),o(43,"div",18)(44,"div",12),g(45,"input",21),o(46,"label",14),c(47),l(48,"translate"),a(),o(49,"a",22),y("click",function(){return I(_),b(e.togglePwdType())}),g(50,"span",23),a(),v(51,xi,3,3,"div",16)(52,ki,3,3,"div",17)(53,Pi,3,3,"div",17)(54,Ri,3,3,"div",17),a()()(),o(55,"div",24)(56,"div",25)(57,"h2",8),c(58),l(59,"translate"),a(),o(60,"div",26)(61,"div",18)(62,"div",27)(63,"label",28),c(64),l(65,"translate"),a(),o(66,"ng-select",29),l(67,"translate"),l(68,"translate"),y("change",function(){return I(_),b(e.validateForm())}),v(69,Oi,2,2,"ng-option",30),a(),v(70,Mi,3,3,"div",17),a()(),v(71,Ai,10,17,"div",31),a()()(),o(72,"div",32)(73,"div",33)(74,"div",18)(75,"div",34),g(76,"input",35),o(77,"label",36)(78,"span",37),c(79),l(80,"translate"),a(),o(81,"a",38)(82,"span",7),c(83),l(84,"translate"),a()()()()()(),o(85,"div",39)(86,"button",40),c(87),l(88,"translate"),a()()()(),o(89,"div",41),g(90,"app-auth-flo"),a()()()}m&2&&(n("bgCreamColor","000"),i(),n("isWrapping","register"),i(3),n("routerLink",ie(82,_i,re(5,53,"ROUTES.auth.register.root",!0))),i(4),F(p(9,56,"Common.Actions.previous")),i(3),u(" ",p(12,58,"Auth.RegisterInfo.student_info")," "),i(2),n("formGroup",e.form),i(3),n("ngClass",Ee(84,fi,e.nicknameFormControl.dirty||!e.nicknameFormControl.hasError("required"),!e.nicknameFormControl.hasError("required"))),i(),n("formControl",e.nicknameFormControl),i(2),F(p(20,60,"Common.Forms.nickname")),i(2),n("ngIf",!e.nicknameFormControl.hasError("required")),i(),n("ngIf",e.nicknameFormControl.pristine),i(),n("ngIf",!e.nicknameFormControl.pristine&&e.nicknameFormControl.hasError("required")),i(2),n("ngClass",G(87,it,e.emailFormControl.dirty||e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),e.emailFormControl.value)),i(2),n("formControl",e.emailFormControl),i(2),F(p(30,62,"Common.Forms.email")),i(2),n("ngIf",!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")&&!e.errorEmail),i(),n("ngIf",e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")),i(),n("ngIf",!e.emailFormControl.pristine&&e.emailFormControl.hasError("required")),i(),n("ngIf",e.errorEmail&&e.emailFormControl.invalid&&!e.emailFormControl.hasError("required")&&e.emailFormControl.dirty),i(2),n("ngClass",G(91,it,e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value,e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value,e.emailConfirmFormControl.value)),i(),n("formControl",e.emailConfirmFormControl),i(2),F(p(40,64,"Common.Forms.emailConfirm")),i(2),n("ngIf",e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value),i(),n("ngIf",e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value),i(2),n("ngClass",G(95,it,e.passwordFormControl.dirty&&(e.passwordFormControl.hasError("required")||e.passwordFormControl.hasError("minlength")||e.passwordFormControl.hasError("pattern")),!e.passwordFormControl.hasError("required")&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern"),e.passwordFormControl.value)),i(),n("type",e.pwdType)("formControl",e.passwordFormControl),i(2),F(p(48,66,"Common.Forms.password")),i(3),n("ngClass",ie(99,gi,e.isVisible)),i(),n("ngIf",e.passwordFormControl.pristine),i(),n("ngIf",e.passwordFormControl.invalid&&e.passwordFormControl.dirty&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern")),i(),n("ngIf",e.passwordFormControl.hasError("minlength")),i(),n("ngIf",e.passwordFormControl.hasError("pattern")&&!e.passwordFormControl.hasError("minlength")),i(2),n("ngClass","register__section--"+(e.user==null?null:e.user.type)),i(2),u(" ",p(59,68,"Auth.RegisterInfo.Student.school_info")," "),i(2),n("ngClass","form__grid--"+(e.user==null?null:e.user.type)),i(4),F(p(65,70,"Auth.RegisterInfo.Student.province")),i(2),n("placeholder",R(p(67,72,"Common.Forms.choose")))("notFoundText",R(p(68,74,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1)("formControl",e.provinceFormControl),i(3),n("ngForOf",e.provinces),i(),n("ngIf",!e.provinceFormControl.pristine&&e.provinceFormControl.hasError("required")),i(),n("ngIf",e.isInQuebe
6c()),i(5),n("formControl",e.agreeTermsFormControl),i(3),u(" ",p(80,76,"Auth.RegisterInfo.user_conditions_intro")," "),i(4),u(" ",p(84,78,"Auth.RegisterInfo.user_conditions_link")," "),i(3),n("disabled",!e.form.valid||e.emailFormControl.value!==e.emailConfirmFormControl.value),i(),u(" ",p(88,80,"Auth.Login.create_account")," "),i(2),Se("data-type",e.user==null?null:e.user.type))},dependencies:[ce,Te,xe,oe,Ce,Pe,fe,ge,ve,Fe,we,pe,Oe,Re,Ie,se,le,J],styles:[`.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:var(--register-title, 30px)}@media(min-width:940px){.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--register-title: 20px}}.register__section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1.5rem}.register__section--teacher[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] + .form__grid[_ngcontent-%COMP%]{margin-top:3rem}.register__section--parent[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] ~ .form__grid[_ngcontent-%COMP%]{margin-top:3rem}@media(min-width:600px){.form__grid--2col[_ngcontent-%COMP%]{align-items:flex-end}}@media(max-width:1024px){.form__grid--adult[_ngcontent-%COMP%] .form__item[_ngcontent-%COMP%]{grid-column:auto/span 2}}@media(max-width:940px){.form__grid--adult[_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{width:auto}}.form__item--child-name[_ngcontent-%COMP%]{grid-column:auto/span 2}.form__bottom[_ngcontent-%COMP%]{--form-bottom: 35px}.form__conditions[_ngcontent-%COMP%]{padding-top:15px;padding-bottom:25px}@media(min-width:1024px)and (max-width:1279px){.link__conditions[_ngcontent-%COMP%]{font-size:13px;font-size:.8125rem;line-height:19px;line-height:1.1875rem}}@media(min-width:1280px){.link__conditions[_ngcontent-%COMP%]{font-size:14px;font-size:.875rem;line-height:20px;line-height:1.25rem}} 7/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register-info-adult.component-AUCQDDU7.css.map */`]});let t=r;return t})()});function Qi(t,r){t&1&&g(0,"span",40)}function Gi(t,r){t&1&&(o(0,"div",41),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.nickname_info")," "))}function $i(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.nickname_required")," "))}function Wi(t,r){t&1&&g(0,"span",40)}function Zi(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_error")," "))}function Hi(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_required")," "))}function Yi(t,r){if(t&1&&(o(0,"div",42),c(1),a()),t&2){let h=S();i(),u(" ",h.error," ")}}function Ki(t,r){t&1&&g(0,"span",40)}function Xi(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_confirm_error")," "))}function Ji(t,r){t&1&&(o(0,"div",41),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Validators.password_requirements")," "))}function er(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_required")," "))}function tr(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_length")," "))}function ir(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_pattern")," "))}function rr(t,r){if(t&1&&(o(0,"ng-option",57),c(1),a()),t&2){let h=r.$implicit;n("value",h.id),i(),u(" ",h.name," ")}}function or(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.province_required")," "))}function nr(t,r){if(t&1&&(o(0,"ng-option",57),c(1),l(2,"translate"),a()),t&2){let h=r.$implicit;n("value",h),i(),u(" ",p(2,2,"Common.Forms.Levels.l"+h)," ")}}function ar(t,r){t&1&&(o(0,"div",42),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.level_required")," "))}function sr(t,r){if(t&1&&(o(0,"div",18)(1,"div",52)(2,"label",58),c(3),l(4,"translate"),a(),o(5,"ng-select",59),l(6,"translate"),l(7,"translate"),v(8,nr,3,4,"ng-option",55),a(),v(9,ar,3,3,"div",17),a()()),t&2){let h=S(2).$implicit;i(3),F(p(4,9,"Common.Forms.level")),i(2),n("placeholder",R(p(6,11,"Common.Forms.choose")))("notFoundText",R(p(7,13,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1),i(3),n("ngForOf",be(15,Ni)),i(),n("ngIf",!h.controls.levelFormControl.pristine&&h.controls.levelFormControl.hasError("required"))}}function lr(t,r){if(t&1){let h=Z();et(0,49),o(1,"div",50)(2,"div",12),g(3,"input",51),o(4,"label",14),
7c(5),l(6,"translate"),l(7,"translate"),a()()(),o(8,"div",18)(9,"div",52)(10,"label",53),c(11),l(12,"translate"),a(),o(13,"ng-select",54),l(14,"translate"),l(15,"translate"),y("change",function(){I(h);let m=S().$implicit,e=S();return b(e.validateForm(m.controls.provinceFormControl.value,[m.controls.levelFormControl]))}),v(16,rr,2,2,"ng-option",55),a(),v(17,or,3,3,"div",17),a()(),v(18,sr,10,16,"div",56),tt()}if(t&2){let h=S().$implicit,s=S();n("formGroup",h),i(2),n("ngClass",Ee(24,zi,h.controls.childNameFormControl.dirty,h.controls.childNameFormControl.value)),i(3),Ae(" ",p(6,14,"Auth.RegisterInfo.Parent.child_name")," (",p(7,16,"Common.Forms.optional"),") "),i(6),F(p(12,18,"Auth.RegisterInfo.Parent.province")),i(2),n("placeholder",R(p(14,20,"Common.Forms.choose")))("notFoundText",R(p(15,22,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1),i(3),n("ngForOf",s.provinces),i(),n("ngIf",!h.controls.provinceFormControl.pristine&&h.controls.provinceFormControl.hasError("required")),i(),n("ngIf",s.isInQuebec(h.controls.provinceFormControl.value))}}function mr(t,r){if(t&1){let h=Z();o(0,"div")(1,"div",43)(2,"div",44)(3,"div",45)(4,"h3",46),c(5),l(6,"translate"),a()(),o(7,"div",29)(8,"button",47),y("click",function(){let m=I(h).index,e=S();return b(e.removeChild(m))}),c(9," x "),a()()(),v(10,lr,19,27,"ng-container",48),a()()}if(t&2){let h=r.$implicit,s=S();i(),n("ngClass","form__grid--"+(s.user==null?null:s.user.type)),i(4),u(" ",p(6,3,"Auth.RegisterInfo.Parent.child_info")," "),i(5),n("ngIf",h)}}var qt,Li,qi,ji,Ui,ot,Di,zi,Ni,jt,Ut=W(()=>{"use strict";H();qt=ri(si());$();L();Y();X();me();$();je();ae();H();qe();$e();ze();Le();Li=["phone"],qi=["emailField"],ji=t=>[t],Ui=(t,r)=>({"form__group--error":t,"form__group--success":r}),ot=(t,r,h)=>({"form__group--error":t,"form__group--success":r,"form__group--has-value":h}),Di=t=>({active:t}),zi=(t,r)=>({"form__group--success":t,"form__group--has-value":r}),Ni=()=>[1,2,3,4,5,6,7,8,9,10,11,12];jt=(()=>{let r=class r{constructor(s,m,e,_,w,k,A,D,K,he){this.router=s,this.tools=m,this.content=e,this.translate=_,this.state=w,this.events=k,this.localeRoute=A,this.tracking=D,this.as=K,this.windowService=he,this.nicknameFormControl=new C("",[f.required]),this.emailFormControl=new C("",{validators:[f.required,f.email]}),this.emailConfirmFormControl=new C("",{updateOn:"change"}),this.passwordFormControl=new C("",[f.minLength(8),f.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),f.required]),this.childsFormArray=new ft([]),this.agreeTermsFormControl=new C("",[f.requiredTrue]),this.form=new V({nickname:this.nicknameFormControl,email:this.emailFormControl,emailConfirm:this.emailConfirmFormControl,password:this.passwordFormControl,childsFormArray:this.childsFormArray,agreeTerms:this.agreeTermsFormControl}),this.pwdType="password",this.provinces=[],this.months=[],this.errorEmail=!1,this.isVisible=!1,this.subscriptions=[],this.getProvinces(),this.getMonths()}ngOnInit(){this.tools.setTheme("default"),this.state.get("user")?(this.user=this.state.get("user"),this.user.type==U.parent&&(this.nicknameFormControl.setValue(this.user.nickname),this.emailFormControl.setValue(this.user.email),this.user.childs&&Array.isArray(this.user.childs)&&this.childsFormArray.setValue(this.user.childs),this.form.updateValueAndValidity())):this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.root"))]),this.tracking.trackPageView(this.router.url,O.registerInfoParent)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}addChild(){let s=new V({childNameFormControl:new C(null,[]),provinceFormControl:new C(null,[f.required]),levelFormControl:new C(null,[f.required])});this.childsFormArray.push(s)}removeChild(s){this.childsFormArray.removeAt(s)}getProvinces(){this.provinces=this.tools.getCustomSortedProvinces()}getMonths(){this.months=Object.entries(this.translate.instant("Common.Forms.Months")).map(s=>({id:+s[0],name:s[1]}))}togglePwdType(){this.pwdType=this.pwdType==="password"?"text":"password",this.isVisible=!this.isVisible}emailOnFocus(){this.errorEmail=!1}
7isInQuebec(s){return s=="Quebec"}validateForm(s,m){m.forEach(e=>{this.isInQuebec(s)?e.setValidators([f.required]):e.clearValidators(),e.setValue(null),e.markAsPristine(),e.updateValueAndValidity()})}setChilds(){let s=[];for(let m=0;m<this.childsFormArray.length;m++){let e=this.childsFormArray.value[m];s.push({id:qt.Guid.raw(),name:e.childNameFormControl,province:e.provinceFormControl,level:e.levelFormControl})}return s}scrollToEmail(){this.emailField.nativeElement.classList.remove("form__group--success"),this.emailField.nativeElement.classList.add("form__group--error"),this.emailFormControl.setErrors({incorrect:!0}),this.emailConfirmFormControl.reset(),this.tools.scrollTo({top:this.emailField.nativeElement.getBoundingClientRect().top+this.windowService.scrollY-90})}submitForm(){this.form.valid&&this.emailFormControl.value===this.emailConfirmFormControl.value&&(this.user.nickname=this.nicknameFormControl.value,this.user.email=this.emailFormControl.value,this.user.password=this.passwordFormControl.value,this.user.childs=this.setChilds(),this.user.skills=null,this.user.photo_url="0",this.as.register(this.user).then(()=>{this.events.broadcast("user:updated",this.user),this.state.delete("user"),this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.confirmation"))])}).catch(s=>{this.errorEmail=!0,this.error=s.error.code==="auth/email-already-exists"?this.translate.instant("Common.Forms.Errors.email_in_use"):this.translate.instant("Common.Forms.Errors.invalid_register"),this.scrollToEmail()}))}};r.\u0275fac=function(m){return new(m||r)(d(T),d(M),d(Be),d(x),d(ye),d(q),d(j),d(B),d(P),d(Me))},r.\u0275cmp=E({type:r,selectors:[["app-register-info-parent"]],viewQuery:function(m,e){if(m&1&&
vendor: 4,155 bytes, line 7
7(z(Li,5),z(qi,5)),m&2){let _;N(_=Q())&&(e.phone=_.first),N(_=Q())&&(e.emailField=_.first)}},standalone:!1,decls:89,vars:92,consts:[["emailField",""],[3,"bgCreamColor"],[3,"isWrapping"],[1,"register__header"],[1,"breadcrumbs"],["data-test","register-info-back",1,"link","link--sm",3,"routerLink"],[1,"icon","icon-chevron-sm","icon--rotate-right"],[1,"link__text"],[1,"title","title--h2"],[1,"form",3,"ngSubmit","formGroup"],[1,"form__grid","form__grid--1col","form__grid--section","form__grid--general-info"],[1,"form__item","form__item--nick"],[1,"form__group",3,"ngClass"],["data-test","register-info-nickname","type","text",1,"form__control",3,"formControl"],[1,"form__item__label"],["class","form__item__status form__item__status--non-clickable icon icon-checkmark-sm",4,"ngIf"],["class","form__item__hint",4,"ngIf"],["class","form__item__msg",4,"ngIf"],[1,"form__item"],["data-test","register-info-email","type","email",1,"form__control",3,"input","formControl"],["data-test","register-info-email-confirm","type","email","onCopy","return false","onDrag","return false","onDrop","return false","onPaste","return false",1,"form__control",3,"formControl"],["data-test","register-info-pwd","autocomplete","off",1,"form__control",3,"type","formControl"],["matSuffix","",1,"form__item__status",3,"click"],[1,"icon","icon-visible","icon--to-invisible",3,"ngClass"],[1,"form__grid","form__grid--2col","form__grid--section"],[1,"register__section",3,"ngClass"],["formArrayName","childsFormArray"],[4,"ngFor","ngForOf"],[1,"form__grid","form__grid--2col",3,"ngClass"],[1,"btn-wrapper"],["data-test","parent-add-child",1,"btn","btn--sm",3,"click","disabled"],[1,"form__bottom"],[1,"form__section","form__conditions"],[1,"form__checkbox"],["type","checkbox","id","register-agree-terms","data-test","register-agree-terms",3,"formControl"],["for","register-agree-terms"],[1,"link","link--sm","link__conditions"],["target","_blank","href","/fr/pages/protection-des-renseignements-personnels-et-conditions-d-utilisation",1,"link","link--sm","link--active"],["data-test","register-info-submit","type","submit",1,"btn","btn--lg",3,"disabled"],[1,"register-flo","register-flo--step2"],[1,"form__item__status","form__item__status--non-clickable","icon","icon-checkmark-sm"],[1,"form__item__hint"],[1,"form__item__msg"],[1,"form__grid","form__grid--2col","child__separator",3,"ngClass"],[1,"form__item","form__item--child-name","child__section--wrapper"],[1,"title-wrapper"],[1,"title","title--h3"],["data-test","parent-remove-child",1,"btn","btn--sm","btn--child-remove",3,"click"],[3,"formGroup",4,"ngIf"],[3,"formGroup"],[1,"form__item","form__item--child-name"],["data-test","register-info-childname","type","text","formControlName","childNameFormControl",1,"form__control"],[1,"form__group"],["name","provinceForm",1,"caption"],["labelForId","provinceForm","formControlName","provinceFormControl",1,"province-select",3,"change","placeholder","notFoundText","searchable","clearable"],[3,"value",4,"ngFor","ngForOf"],["class","form__item",4,"ngIf"],[3,"value"],["name","levelForm",1,"caption"],["labelForId","levelForm","data-test","register-info-level","formControlName","levelFormControl",3,"placeholder","notFoundText","searchable","clearable"]],template:function(m,e){if(m&1){let _=Z();o(0,"app-layout",1)(1,"app-base-section",2)(2,"div",3)(3,"div",4)(4,"a",5),l(5,"localizeRoute"),g(6,"span",6),o(7,"span",7),c(8),l(9,"translate"),a()(),o(10,"h2",8),c(11),l(12,"translate"),a()()(),o(13,"form",9),y("ngSubmit",function(){return I(_),b(e.submitForm())}),o(14,"div",10)(15,"div",11)(16,"div",12),g(17,"input",13),o(18,"label",14),c(19),l(20,"translate"),a(),v(21,Qi,1,0,"span",15)(22,Gi,3,3,"div",16)(23,$i,3,3,"div",17),a()(),o(24,"div",18)(25,"div",12,0)(27,"input",19),y("input",function(){return I(_),b(e.emailOnFocus())}),a(),o(28,"label",14),c(29),l(30,"translate"),a(),v(31,Wi,1,0,"span",15)(32,Zi,3,3,"div",17)(33,Hi,3,3,"div",17)(34,Yi,2,1,"div",17),a()(),o(35,"div",18)(36,"div",12),g(37,"input",20),o(38,"label",14),c(39),l(40,"translate"),a(),v(41,Ki,1,0,"span",15)(42,Xi,3,3,"div",17),a()(),o(43,"div",18)(44,"div",12),g(45,"input",21),o(46,"label",14),
7c(47),l(48,"translate"),a(),o(49,"a",22),y("click",function(){return I(_),b(e.togglePwdType())}),g(50,"span",23),a(),v(51,Ji,3,3,"div",16)(52,er,3,3,"div",17)(53,tr,3,3,"div",17)(54,ir,3,3,"div",17),a()()(),o(55,"div",24)(56,"div",25)(57,"h2",8),c(58),l(59,"translate"),a(),o(60,"p"),c(61),l(62,"translate"),a(),et(63,26),v(64,mr,11,5,"div",27),tt(),o(65,"div",28)(66,"div",29)(67,"button",30),y("click",function(){return I(_),b(e.addChild())}),c(68),l(69,"translate"),a()()()()(),o(70,"div",31)(71,"div",32)(72,"div",18)(73,"div",33),g(74,"input",34),o(75,"label",35)(76,"span",36),c(77),l(78,"translate"),a(),o(79,"a",37)(80,"span",7),c(81),l(82,"translate"),a()()()()()(),o(83,"div",29)(84,"button",38),c(85),l(86,"translate"),a()()()(),o(87,"div",39),g(88,"app-auth-flo"),a()()()}m&2&&(n("bgCreamColor","000"),i(),n("isWrapping","register"),i(3),n("routerLink",ie(73,ji,re(5,46,"ROUTES.auth.register.root",!0))),i(4),F(p(9,49,"Common.Actions.previous")),i(3),u(" ",p(12,51,"Auth.RegisterInfo.personal_info")," "),i(2),n("formGroup",e.form),i(3),n("ngClass",Ee(75,Ui,e.nicknameFormControl.dirty||!e.nicknameFormControl.hasError("required"),!e.nicknameFormControl.hasError("required"))),i(),n("formControl",e.nicknameFormControl),i(2),F(p(20,53,"Common.Forms.nickname")),i(2),n("ngIf",!e.nicknameFormControl.hasError("required")),i(),n("ngIf",e.nicknameFormControl.pristine),i(),n("ngIf",!e.nicknameFormControl.pristine&&e.nicknameFormControl.hasError("required")),i(2),n("ngClass",G(78,ot,e.emailFormControl.dirty||e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),e.emailFormControl.value)),i(2),n("formControl",e.emailFormControl),i(2),F(p(30,55,"Common.Forms.email")),i(2),n("ngIf",!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")&&!e.errorEmail),i(),n("ngIf",e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")),i(),n("ngIf",!e.emailFormControl.pristine&&e.emailFormControl.hasError("required")),i(),n("ngIf",e.errorEmail&&e.emailFormControl.invalid&&!e.emailFormControl.hasError("required")&&e.emailFormControl.dirty),i(2),n("ngClass",G(82,ot,e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value,e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value,e.emailConfirmFormControl.value)),i(),n("formControl",e.emailConfirmFormControl),i(2),F(p(40,57,"Common.Forms.emailConfirm")),i(2),n("ngIf",e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value),i(),n("ngIf",e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value),i(2),n("ngClass",G(86,ot,e.passwordFormControl.dirty&&(e.passwordFormControl.hasError("required")||e.passwordFormControl.hasError("minlength")||e.passwordFormControl.hasError("pattern")),!e.passwordFormControl.hasError("required")&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern"),e.passwordFormControl.value)),i(),n("type",e.pwdType)("formControl",e.passwordFormControl),i(2),F(p(48,59,"Common.Forms.password")),i(3),n("ngClass",ie(90,Di,e.isVisible)),i(),n("ngIf",e.passwordFormControl.pristine),i(),n("ngIf",e.passwordFormControl.invalid&&e.passwordFormControl.dirty&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern")),i(),n("ngIf",e.passwordFormControl.hasError("minlength")),i(),n("ngIf",e.passwordFormControl.hasError("pattern")&&!e.passwordFormControl.hasError("minlength")),i(2),n("ngClass","register__section--"+(e.user==null?null:e.user.type)),i(2),u(" ",p(59,61,"Auth.RegisterInfo.Parent.student_info")," "),i(3),u(" ",p(62,63,"Auth.RegisterInfo.Parent.student_text")," "),i(3),n("ngForOf",e.childsFormArray.controls),i(),n("ngClass","form__grid--"+(e.user==null?null:e.user.type)),i(2),n("disabled",e.childsFormArray.length>=50),i(),u(" ",p(69,65,"Auth.RegisterInfo.Parent.add_child")," "),i(6),n("formControl",e.agreeTermsFormControl),i(3),u(" ",p(78,67,"Auth.RegisterInfo.user_conditions_intro")," "),i(4),u(" ",p(82,69,"Auth.RegisterInfo.user_conditions_link")," "),i(3),n("disabled",!e.form.valid||e.emailFormControl.value!==e.emailConfirmFormControl.value),i(),u(" ",p(86,71,"Auth.Login.create_account")," "),i(2),Se("data-type",e.user==null?null:e.user.type))},dependencies:[ce,Te,xe,oe,Ce,Pe,fe,ge,ve,Fe,we,_t,ht,pe,Oe,Re,Ie,se,le,J],styles:[`.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:var(--register-title, 30px)}@media(min-width:940px){.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--register-title: 20px}}.register__section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1.5rem}.register__section--teacher[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] + .form__grid[_ngcontent-%COMP%]{margin-top:3rem}.register__section--parent[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] ~ .form__grid[_ngcontent-%COMP%]{margin-top:3rem}@media(min-width:600px){.form__grid--2col[_ngcontent-%COMP%]{align-items:flex-end}}@media(max-width:1024px){.form__grid--parent[_ngcontent-%COMP%] .form__item[_ngcontent-%COMP%]{grid-column:auto/span 2}}@media(max-width:940px){.form__grid--parent[_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{width:auto}}
7.form__item--child-name[_ngcontent-%COMP%]{grid-column:auto/span 2}.form__bottom[_ngcontent-%COMP%]{--form-bottom: 35px}.form__conditions[_ngcontent-%COMP%]{padding-top:15px;padding-bottom:25px}@media(min-width:1024px)and (max-width:1279px){.link__conditions[_ngcontent-%COMP%]{font-size:13px;font-size:.8125rem;line-height:19px;line-height:1.1875rem}}@media(min-width:1280px){.link__conditions[_ngcontent-%COMP%]{font-size:14px;font-size:.875rem;line-height:20px;line-height:1.25rem}}.child__separator[_ngcontent-%COMP%]{border-top:5px solid black;padding-top:30px;padding-bottom:55px}.child__section--wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.btn--child-remove[_ngcontent-%COMP%]{--btn-padding-hor: 8px;--btn-font-size: 16px;--btn-padding-top: 0px;--btn-padding-bottom: 0px;min-width:0px} 8/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register-info-parent.component-HK77SIMY.css.map */`]});let t=r;return t})()});function fr(t,r){t&1&&g(0,"span",43)}function gr(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.nickname_info")," "))}function vr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.nickname_required")," "))}function Cr(t,r){t&1&&g(0,"span",46)}function Fr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_error")," "))}function wr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_required")," "))}function yr(t,r){if(t&1&&(o(0,"div",45),c(1),a()),t&2){let h=S();i(),u(" ",h.error," ")}}function Ir(t,r){t&1&&g(0,"span",46)}function br(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_confirm_error")," "))}function Er(t,r){t&1&&(o(0,"div",44),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Validators.password_requirements")," "))}function Sr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_required")," "))}function Tr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_length")," "))}function xr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_pattern")," "))}function kr(t,r){if(t&1&&(o(0,"ng-option",47),c(1),a()),t&2){let h=r.$implicit;n("value",h.id),i(),u(" ",h.name," ")}}function Pr(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.province_required")," "))}function Rr(t,r){if(t&1&&(o(0,"ng-option",47),c(1),l(2,"translate"),a()),t&2){let h=r.$implicit;n("value",h),i(),u(" ",p(2,2,"Common.Forms.Levels.l"+h)," ")}}function Or(t,r){t&1&&(o(0,"div",45),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.level_required")," "))}function Mr(t,r){if(t&1&&(o(0,"div",18)(1,"div",28)(2,"label",48),c(3),l(4,"translate"),a(),o(5,"ng-select",49),l(6,"translate"),l(7,"translate"),v(8,Rr,3,4,"ng-option",31),a(),v(9,Or,3,3,"div",17),a()()),t&2){let h=S();i(3),F(p(4,10,"Common.Forms.level")),i(2),n("placeholder",R(p(6,12,"Common.Forms.choose")))("notFoundText",R(p(7,14,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1)("formControl",h.levelFormControl),i(3),n("ngForOf",be(16,_r)),i(),n("ngIf",!h.levelFormControl.pristine&&h.levelFormControl.hasError("required"))}}var pr,cr,dr,ur,nt,hr,_r,Dt,zt=W(()=>{"use strict";H();$();L();Y();X();me();$();je();ae();H();qe();$e();ze();Le();pr=["phone"],cr=["emailField"],dr=t=>[t],ur=(t,r)=>({"form__group--error":t,"form__group--success":r}),nt=(t,r,h)=>({"form__group--error":t,"form__group--success":r,"form__group--has-value":h}),hr=t=>({active:t}),_r=()=>[1,2,3,4,5,6,7,8,9,10,11,12];Dt=(()=>{let r=class r{constructor(s,m,e,_,w,k,A,D,K,he,Ve){this.router=s,this.tools=m,this.content=e,this.translate=_,this.auth=w,this.state=k,this.events=A,this.localeRoute=D,this.tracking=K,this.as=he,this.windowService=Ve,this.nicknameFormControl=new C("",[f.required]),this.emailFormControl=new C("",{val
8idators:[f.required,f.email]}),this.emailConfirmFormControl=new C("",{updateOn:"change"}),this.passwordFormControl=new C("",[f.minLength(8),f.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),f.required]),this.levelFormControl=new C("",[f.required]),this.provinceFormControl=new C("",[f.required]),this.agreeTermsFormControl=new C("",[f.requiredTrue]),this.form=new V({nickname:this.nicknameFormControl,email:this.emailFormControl,emailConfirm:this.emailConfirmFormControl,password:this.passwordFormControl,level:this.levelFormControl,province:this.provinceFormControl,agreeTerms:this.agreeTermsFormControl}),this.pwdType="password",this.provinces=[],this.errorEmail=!1,this.isVisible=!1,this.subscriptions=[],this.getProvinces()}ngOnInit(){this.tools.setTheme("default"),this.state.get("user")?(this.user=this.state.get("user"),this.user.type==U.student&&(this.nicknameFormControl.setValue(this.user.nickname),this.emailFormControl.setValue(this.user.email),this.provinceFormControl.setValue(this.user.province),this.levelFormControl.setValue(this.user.level),this.form.updateValueAndValidity(),this.state.get("user")&&(this.user=this.state.get("user"),this.user.type==U.student&&(this.nicknameFormControl.setValue(this.user.nickname),this.emailFormControl.setValue(this.user.email),this.provinceFormControl.setValue(this.user.province),this.levelFormControl.setValue(this.user.level),this.form.updateValueAndValidity())))):this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.root"))]),this.tracking.trackPageView(this.router.url,O.registerInfoStudent)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}getProvinces(){this.provinces=this.tools.getCustomSortedProvinces()}togglePwdType(){this.pwdType=this.pwdType==="password"?"text":"password",this.isVisible=!this.isVisible}emailOnFocus(){this.errorEmail=!1}isInQuebec(){return this.provinceFormControl.value=="Quebec"}validateForm(){this.isInQuebec()?this.levelFormControl.setValidators([f.required]):this.levelFormControl.clearValidators(),this.levelFormControl.setValue(null),this.levelFormControl.markAsPristine(),this.levelFormControl.updateValueAndValidity(),this.levelFormControl.updateValueAndValidity()}setSkills(){this.user.skills={};let s=this.isInQuebec()?this.user.level:12;this.tools.getTopicsPerUserLevel(s).forEach(m=>{this.user.skills[String(m)]=1})}scrollToEmail(){this.emailField.nativeElement.classList.remove("form__group--success"),this.emailField.nativeElement.classList.add("form__group--error"),this.emailFormControl.setErrors({incorrect:!0}),this.emailConfirmFormControl.reset(),this.tools.scrollTo({top:this.emailField.nativeElement.getBoundingClientRect().top+this.windowService.scrollY-90})}submitForm(){this.form.valid&&this.emailFormControl.value===this.emailConfirmFormControl.value&&(this.user.nickname=this.nicknameFormControl.value,this.user.email=this.emailFormControl.value,this.user.password=this.passwordFormControl.value,this.user.province=this.provinceFormControl.value,this.user.level=this.levelFormControl.value,this.setSkills(),this.user.photo_url="0",this.as.register(this.user).then(()=>{this.events.broadcast("user:updated",this.user),this.state.delete("user"),this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.confirmation"))])}).catch(s=>{this.errorEmail=!0,this.error=s.error.code==="auth/email-already-exists"?this.translate.instant("Common.Forms.Errors.email_in_use"):this.translate.instant("Common.Forms.Errors.invalid_register"),this.scrollToEmail()}))}};r.\u0275fac=function(m){return new(m||r)(d(T),d(M),d(Be),d(x),d(P),d(ye),d(q),d(j),d(B),d(P),d(Me))},r.\u0275cmp=E({type:r,selectors:[["app-register-info-student"]],viewQuery:function(m,e){if(m&1&&
8(z(pr,5),z(cr,5)),m&2){let _;N(_=Q())&&(e.phone=_.first),N(_=Q())&&(e.emailField=_.first)}},standalone:!1,decls:91,vars:101,consts:[["emailField",""],[3,"bgCreamColor"],[3,"isWrapping"],[1,"register__header"],[1,"breadcrumbs"],["data-test","register-info-back",1,"link","link--sm",3,"routerLink"],[1,"icon","icon-chevron-sm","icon--rotate-right"],[1,"link__text"],[1,"title","title--h2"],[1,"form",3,"ngSubmit","formGroup"],[1,"form__grid","form__grid--1col","form__grid--section","form__grid--general-info"],[1,"form__item","form__item--nick"],[1,"form__group",3,"ngClass"],["data-test","register-info-nickname","type","text",1,"form__control",3,"formControl"],[1,"form__item__label"],["class","form__item__status form__item__status--non-clickable icon icon-checkmark-sm icon icon-checkmark-sm",4,"ngIf"],["class","form__item__hint",4,"ngIf"],["class","form__item__msg",4,"ngIf"],[1,"form__item"],["data-test","register-info-email","type","email",1,"form__control",3,"input","formControl"],["class","form__item__status form__item__status--non-clickable icon icon-checkmark-sm",4,"ngIf"],["data-test","register-info-email-confirm","type","email","onCopy","return false","onDrag","return false","onDrop","return false","onPaste","return false",1,"form__control",3,"formControl"],["data-test","register-info-pwd","autocomplete","off",1,"form__control",3,"type","formControl"],["matSuffix","",1,"form__item__status",3,"click"],[1,"icon","icon-visible","icon--to-invisible",3,"ngClass"],[1,"form__grid","form__grid--1col","form__grid--section"],[1,"register__section",3,"ngClass"],[1,"form__grid","form__grid--1col","form__grid--school",3,"ngClass"],[1,"form__group"],["name","provinceForm",1,"caption"],["labelForId","provinceForm",1,"province-select",3,"change","placeholder","notFoundText","searchable","clearable","formControl"],[3,"value",4,"ngFor","ngForOf"],["class","form__item",4,"ngIf"],[1,"form__bottom"],[1,"form__section","form__conditions"],[1,"form__checkbox"],["type","checkbox","id","register-agree-terms","data-test","register-agree-terms",3,"formControl"],["for","register-agree-terms"],[1,"link","link--sm","link__conditions"],["target","_blank","href","/fr/pages/protection-des-renseignements-personnels-et-conditions-d-utilisation",1,"link","link--sm","link--active"],[1,"btn-wrapper"],["data-test","register-info-submit","type","submit",1,"btn","btn--lg",3,"disabled"],[1,"register-flo","register-flo--step2"],[1,"form__item__status","form__item__status--non-clickable","icon","icon-checkmark-sm","icon","icon-checkmark-sm"],[1,"form__item__hint"],[1,"form__item__msg"],[1,"form__item__status","form__item__status--non-clickable","icon","icon-checkmark-sm"],[3,"value"],["name","levelForm",1,"caption"],["labelForId","levelForm","data-test","register-info-level",3,"placeholder","notFoundText","searchable","clearable","formControl"]],template:function(m,e){if(m&1){let _=Z();o(0,"app-layout",1)(1,"app-base-section",2)(2,"div",3)(3,"div",4)(4,"a",5),l(5,"localizeRoute"),g(6,"span",6),o(7,"span",7),c(8),l(9,"translate"),a()(),o(10,"h2",8),c(11),l(12,"translate"),a()()(),o(13,"form",9),y("ngSubmit",function(){return I(_),b(e.submitForm())}),o(14,"div",10)(15,"div",11)(16,"div",12),g(17,"input",13),o(18,"label",14),c(19),l(20,"translate"),a(),v(21,fr,1,0,"span",15)(22,gr,3,3,"div",16)(23,vr,3,3,"div",17),a()(),o(24,"div",18)(25,"div",12,0)(27,"input",19),y("input",function(){return I(_),b(e.emailOnFocus())}),a(),o(28,"label",14),c(29),l(30,"translate"),a(),v(31,Cr,1,0,"span",20)(32,Fr,3,3,"div",17)(33,wr,3,3,"div",17)(34,yr,2,1,"div",17),a()(),o(35,"div",18)(36,"div",12),g(37,"input",21),o(38,"label",14),c(39),l(40,"translate"),a(),v(41,Ir,1,0,"span",20)(42,br,3,3,"div",17),a()(),o(43,"div",18)(44,"div",12),g(45,"input",22),o(46,"label",14),c(47),l(48,"translate"),a(),o(49,"a",23),y("click",function(){return I(_),b(e.togglePwdType())}),g(50,"span",24),a(),v(51,Er,3,3,"div",16)(52,Sr,3,3,"div",17)(53,Tr,3,3,"div",17)(54,xr,3,3,"div",17),a()()(),o(55,"div",25)(56,"div",26)(57,"h2",8),c(58),l(59,"translate"),a(),o(60,"div",27)(61,"div",18)(62,"div",28)(63,"label",29),c(64),l(65,"translate"),a(),o(66,"ng-select",30),l(67,"translate"),l(68,"translate"),y("change",function(){return I(_),b(e.validateForm())}),v(69,kr,2,2,"ng-option",31),a(),v(70,Pr,3,3,"div",17),a()(),v(71,Mr,10,17,"div",32),a()()(),o(72,"div",33)(73,"div",34)(74,"div",18)(75,"div",35),g(76,"input",36),o(77,"label",37)(78,"span",38),c(79),l(80,"translate"),a(),o(81,"a",39)(82,"span",7),c(83),l(84,"translate"),a()()()()()(),o(85,"div",40)(86,"button",41),c(87),l(88,"translate"),a()()()(),o(89,"div",42),g(90,"app-auth-flo"),a()()()}m&2&&(n("bgCreamColor","000"),i(),n("isWrapping","register"),i(3),n("routerLink",ie(82,dr,re(5,53,"ROUTES.auth.register.root",!0))),i(4),F(p(9,56,"Common.Actions.previous")),i(3),u(" ",p(12,58,"Auth.RegisterInfo.student_info")," "),i(2),n("formGroup",e.form),i(3),n("ngClass",Ee(84,ur,e.nicknameFormControl.dirty||!e.nicknameFormControl.hasError("required"),!e.nicknameFormControl.hasError("required"))),i(),n("formControl",e.nicknameFormControl),i(2),F(p(20,60,"Common.Forms.nickname")),i(2),n("ngIf",!e.nicknameFormControl.hasError("required")),i(),n("ngIf",e.nicknameFormControl.pristine),i(),n("ngIf",!e.nicknameFormControl.pristine&&e.nicknameFormControl.hasError("required")),i(2),n("ngClass",G(87,nt,e.emailFormControl.dirty||e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),e.emailFormControl.value)),i(2),n("formControl",e.emailFormControl),i(2),F(p(30,62,"Common.Forms.email")),i(2),n("ngIf",!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")&&!e.errorEmail),i(),n("ngIf",e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")),i(),n("ngIf",!e.emailFormControl.pristine&&e.emailFormControl.hasError("required")),i(),n("ngIf",e.errorEmail&&e.emailFormControl.invalid&&!e.emailFormControl.hasError("required")&&e.emailFormControl.dirty),i(2),n("ngClass",G(91,nt,e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value,e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value,e.emailConfirmFormControl.value)),i(),n("formControl",e.emailConfirmFormControl),i(2),F(p(40,64,"Common.Forms.emailConfirm")),i(2),n("ngIf",e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value),i(),n("ngIf",e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value),i(2),n("ngClass",G(95,nt,e.passwordFormControl.dirty&&(e.passwordFormControl.hasError("required")||e.passwordFormControl.hasError("minlength")||e.passwordFormControl.hasError("pattern")),!e.passwordFormControl.hasError("required")&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern"),e.passwordFormControl.value)),i(),n("type",e.pwdType)("formControl",e.passwordFormControl),i(2),F(p(48,66,"Common.Forms.password")),i(3),n("ngClass",ie(99,hr,e.isVisible)),i(),n("ngIf",e.passwordFormControl.pristine),i(),n("ngIf",e.passwordFormControl.invalid&&e.passwordFormControl.dirty&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern")),i(),n("ngIf",e.passwordFormControl.hasError("minlength")),i(),n("ngIf",e.passwordFormControl.hasError("pattern")&&!e.passwordFormControl.hasError("minlength")),i(2),n("ngClass","register__section--"+(e.user==null?null:e.user.type)),i(2),u(" ",p(59,68,"Auth.RegisterInfo.Student.school_info")," "),i(2),n("ngClass","form__grid--"+(e.user==null?null:e.user.type)),i(4),F(p(65,70,"Auth.RegisterInfo.Student.province")),i(2),n("placeholder",R(p(67,72,"Common.Forms.choose")))("notFoundText",R(p(68,74,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1)("formControl",e.provinceFormControl),i(3),n("ngForOf",e.provinces),i(),n("ngIf",!e.provinceFormControl.pristine&&e.provinceFormControl.hasError("required")),i(),n("ngIf",e.isInQuebe
8c()),i(5),n("formControl",e.agreeTermsFormControl),i(3),u(" ",p(80,76,"Auth.RegisterInfo.user_conditions_intro")," "),i(4),u(" ",p(84,78,"Auth.RegisterInfo.user_conditions_link")," "),i(3),n("disabled",!e.form.valid||e.emailFormControl.value!==e.emailConfirmFormControl.value),i(),u(" ",p(88,80,"Auth.Login.create_account")," "),i(2),Se("data-type",e.user==null?null:e.user.type))},dependencies:[ce,Te,xe,oe,Ce,Pe,fe,ge,ve,Fe,we,pe,Oe,Re,Ie,se,le,J],styles:[`.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:var(--register-title, 30px)}@media(min-width:940px){.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--register-title: 20px}}.register__section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1.5rem}.register__section--teacher[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] + .form__grid[_ngcontent-%COMP%]{margin-top:3rem}.register__section--parent[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] ~ .form__grid[_ngcontent-%COMP%]{margin-top:3rem}@media(min-width:600px){.form__grid--2col[_ngcontent-%COMP%]{align-items:flex-end}}@media(max-width:1024px){.form__grid--student[_ngcontent-%COMP%] .form__item[_ngcontent-%COMP%]{grid-column:auto/span 2}}@media(max-width:940px){.form__grid--student[_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{width:auto}}.form__item--child-name[_ngcontent-%COMP%]{grid-column:auto/span 2}.form__bottom[_ngcontent-%COMP%]{--form-bottom: 35px}.form__conditions[_ngcontent-%COMP%]{padding-top:15px;padding-bottom:25px}@media(min-width:1024px)and (max-width:1279px){.link__conditions[_ngcontent-%COMP%]{font-size:13px;font-size:.8125rem;line-height:19px;line-height:1.1875rem}}@media(min-width:1280px){.link__conditions[_ngcontent-%COMP%]{font-size:14px;font-size:.875rem;line-height:20px;line-height:1.25rem}} 9/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register-info-student.component-KTBXSTNB.css.map */`]});let t=r;return t})()});function jr(t,r){t&1&&g(0,"span",45)}function Ur(t,r){t&1&&(o(0,"div",46),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.nickname_info")," "))}function Dr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.nickname_required")," "))}function zr(t,r){t&1&&g(0,"span",45)}function Nr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_error")," "))}function Qr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_required")," "))}function Gr(t,r){if(t&1&&(o(0,"div",47),c(1),a()),t&2){let h=S();i(),u(" ",h.error," ")}}function $r(t,r){t&1&&g(0,"span",45)}function Wr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.email_confirm_error")," "))}function Zr(t,r){t&1&&(o(0,"div",46),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Validators.password_requirements")," "))}function Hr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_required")," "))}function Yr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_length")," "))}function Kr(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.password_pattern")," "))}function Xr(t,r){t&1&&(o(0,"h2",8),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Auth.RegisterInfo.Teacher.professional_info")," "))}function Jr(t,r){if(t&1&&(o(0,"div",51),g(1,"input",52)(2,"input",53),o(3,"label"),c(4),a()()),t&2){let h=r.item,s=r.item$,m=r.index;i(),n("id",De("item-",m))("value",s.selected),i(),n("id",De("displayItem-",m))("ngModel",s.selected)("ngModelOptions",be(8,Nt)),i(2),F(h.levelName)}}function eo(t,r){if(t&1){let h=Z();o(0,"span",54),y("click",function(){let m=I(h),e=m.item,_=m.clear;return b(_(e))}),c(1,"\xD7 "),a(),o(2,"span",55),c(3),a()}if(t&2){let h=r.item;i(3),F(h.levelName)}}function to(t,r){if(t&1&&(o(0,"ng-select",48),l(1,"translate"),l(2,"translate"),v(3,Jr,5,9,"ng-template",49)(4,eo,4,1,"ng-template",50),a()),t&2){let h=S();n("placeholder",R(p(1,10,"Common.Forms.choose")))("notFoundText",R(p(2,12,"Common.Forms.Errors.not_found")))("items",h.teachLevels)("multiple",!0)("selectableGroup",!0)("closeOnSelect",!1)("clearable",!1)("formControl",h.teachLevelsFormControl)}}function io(t,r){if(t&1&&(o(0,"div",51),g(1,"input",52)(2,"input",53),o(3,"label"),c(4),a()()),t&2){let h=r.item,
9s=r.item$,m=r.index;i(),n("id",De("item-",m))("value",s.selected),i(),n("id",De("displayItem-",m))("ngModel",s.selected)("ngModelOptions",be(8,Nt)),i(2),F(h.topicName)}}function ro(t,r){if(t&1){let h=Z();o(0,"span",54),y("click",function(){let m=I(h),e=m.item,_=m.clear;return b(_(e))}),c(1,"\xD7 "),a(),o(2,"span",55),c(3),a()}if(t&2){let h=r.item;i(3),F(h.topicName)}}function oo(t,r){if(t&1&&(o(0,"ng-select",56),l(1,"translate"),l(2,"translate"),v(3,io,5,9,"ng-template",49)(4,ro,4,1,"ng-template",50),a()),t&2){let h=S();n("placeholder",R(p(1,10,"Common.Forms.choose")))("notFoundText",R(p(2,12,"Common.Forms.Errors.not_found")))("items",h.teachTopics)("multiple",!0)("selectableGroup",!0)("closeOnSelect",!1)("clearable",!1)("formControl",h.teachTopicsFormControl)}}function no(t,r){if(t&1&&(o(0,"ng-option",57),c(1),a()),t&2){let h=r.$implicit;n("value",h.id),i(),u(" ",h.name," ")}}function ao(t,r){t&1&&(o(0,"div",47),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Common.Forms.Errors.province_required")," "))}var Br,Vr,Ar,Lr,at,qr,Nt,Qt,Gt=W(()=>{"use strict";H();$();L();Y();X();me();$();je();ae();H();qe();$e();ze();Le();Br=["phone"],Vr=["emailField"],Ar=t=>[t],Lr=(t,r)=>({"form__group--error":t,"form__group--success":r}),at=(t,r,h)=>({"form__group--error":t,"form__group--success":r,"form__group--has-value":h}),qr=t=>({active:t}),Nt=()=>({standalone:!0});Qt=(()=>{let r=class r{constructor(s,m,e,_,w,k,A,D,K,he){this.router=s,this.tools=m,this.content=e,this.translate=_,this.state=w,this.events=k,this.localeRoute=A,this.tracking=D,this.as=K,this.windowService=he,this.nicknameFormControl=new C("",[f.required]),this.emailFormControl=new C("",{validators:[f.required,f.email]}),this.emailConfirmFormControl=new C("",{updateOn:"change"}),this.passwordFormControl=new C("",[f.minLength(8),f.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),f.required]),this.provinceFormControl=new C("",[f.required]),this.teachLevelsFormControl=new C("",[]),this.teachTopicsFormControl=new C("",[]),this.agreeTermsFormControl=new C("",[f.requiredTrue]),this.form=new V({nickname:this.nicknameFormControl,email:this.emailFormControl,emailConfirm:this.emailConfirmFormControl,password:this.passwordFormControl,teachLevels:this.teachLevelsFormControl,teachTopics:this.teachTopicsFormControl,province:this.provinceFormControl,agreeTerms:this.agreeTermsFormControl}),this.pwdType="password",this.teachLevels=[],this.teachTopics=[],this.provinces=[],this.errorEmail=!1,this.isVisible=!1,this.subscriptions=[],this.getTeachLevels(),this.getTeachTopics(),this.getProvinces()}ngOnInit(){this.tools.setTheme("default"),this.state.get("user")?(this.user=this.state.get("user"),this.user.type==U.teacher&&(this.nicknameFormControl.setValue(this.user.nickname),this.emailFormControl.setValue(this.user.email),this.provinceFormControl.setValue(this.user.province),this.teachLevelsFormControl.setValue(this.user.teach_levels),this.teachTopicsFormControl.setValue(this.user.teach_topics),this.form.updateValueAndValidity())):this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.root"))]),this.tracking.trackPageView(this.router.url,O.registerInfoTeacher)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}getTeachLevels(){this.teachLevels=Object.entries(this.translate.instant("Common.Forms.TeacherLevels")).map(s=>({levelId:+s[0].replace("l",""),levelName:s[1]}))}getTeachTopics(){this.teachTopics=Object.entries(this.translate.instant("Common.Forms.TeacherTopics")).map(s=>({topicKey:s[0],topicName:s[1]}))}getProvinces(){this.provinces=this.tools.getCustomSortedProvinces()}togglePwdType(){this.pwdType=this.pwdType==="password"?"text":"password",this.isVisible=!this.isVisible}emailOnFocus(){this.errorEmail=!1}isInQuebec(){return this.provinceFormControl.value=="Quebec"}scrollToEmail(){this.emailField.nativeElement.classList.remove("form__group--success"),this.emailField.nativeElement.classList.add("form__group--error"),this.emailFormControl.setErrors({incorrect:!0}),this.emailConfirmFormControl.reset(),this.tools.scrollTo({top:this.emailField.nativeElement.getBoundingClientRect().top+this.windowService.scrollY-90})}
9submitForm(){this.form.valid&&this.emailFormControl.value===this.emailConfirmFormControl.value&&(this.user.nickname=this.nicknameFormControl.value,this.user.email=this.emailFormControl.value,this.user.password=this.passwordFormControl.value,this.user.province=this.provinceFormControl.value,this.user.teach_levels=this.teachLevelsFormControl.value,this.user.teach_topics=this.teachTopicsFormControl.value,this.user.skills=null,this.user.photo_url="0",this.as.register(this.user).then(()=>{this.events.broadcast("user:updated",this.user),this.state.delete("user"),this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.confirmation"))])}).catch(s=>{this.errorEmail=!0,this.error=s.error.code==="auth/email-already-exists"?this.translate.instant("Common.Forms.Errors.email_in_use"):this.translate.instant("Common.Forms.Errors.invalid_register"),this.scrollToEmail()}))}};r.\u0275fac=function(m){return new(m||r)(d(T),d(M),d(Be),d(x),d(ye),d(q),d(j),d(B),d(P),d(Me))},r.\u0275cmp=E({type:r,selectors:[["app-register-info-teacher"]],viewQuery:function(m,e){if(m&1&&
vendor: 4,114 bytes, line 9
9(z(Br,5),z(Vr,5)),m&2){let _;N(_=Q())&&(e.phone=_.first),N(_=Q())&&(e.emailField=_.first)}},standalone:!1,decls:102,vars:112,consts:[["emailField",""],[3,"bgCreamColor"],[3,"isWrapping"],[1,"register__header"],[1,"breadcrumbs"],["data-test","register-info-back",1,"link","link--sm",3,"routerLink"],[1,"icon","icon-chevron-sm","icon--rotate-right"],[1,"link__text"],[1,"title","title--h2"],[1,"form",3,"ngSubmit","formGroup"],[1,"form__grid","form__grid--1col","form__grid--section","form__grid--general-info"],[1,"form__item","form__item--nick"],[1,"form__group",3,"ngClass"],["data-test","register-info-nickname","type","text",1,"form__control",3,"formControl"],[1,"form__item__label"],["class","form__item__status form__item__status--non-clickable icon icon-checkmark-sm",4,"ngIf"],["class","form__item__hint",4,"ngIf"],["class","form__item__msg",4,"ngIf"],[1,"form__item"],["data-test","register-info-email","type","email",1,"form__control",3,"input","formControl"],["data-test","register-info-email-confirm","type","email","onCopy","return false","onDrag","return false","onDrop","return false","onPaste","return false",1,"form__control",3,"formControl"],["data-test","register-info-pwd","autocomplete","off",1,"form__control",3,"type","formControl"],["matSuffix","",1,"form__item__status",3,"click"],[1,"icon","icon-visible","icon--to-invisible",3,"ngClass"],[1,"register__section",3,"ngClass"],["class","title title--h2",4,"ngIf"],[1,"form__grid","form__grid--1col","form__grid--general-info",3,"ngClass"],[1,"form__group"],["name","teachLevels",1,"caption"],["class","registerCheckBoxDropDown","bindLabel","levelName","bindValue","levelId",3,"placeholder","notFoundText","items","multiple","selectableGroup","closeOnSelect","clearable","formControl",4,"ngIf"],["name","teachTopics",1,"caption"],["class","registerCheckBoxDropDown","bindLabel","topicName","bindValue","topicKey",3,"placeholder","notFoundText","items","multiple","selectableGroup","closeOnSelect","clearable","formControl",4,"ngIf"],["name","provinceForm",1,"caption"],["labelForId","provinceForm",1,"province-select",3,"placeholder","notFoundText","searchable","clearable","formControl"],[3,"value",4,"ngFor","ngForOf"],[1,"form__bottom"],[1,"form__section","form__conditions"],[1,"form__checkbox"],["type","checkbox","id","register-agree-terms","data-test","register-agree-terms",3,"formControl"],["for","register-agree-terms"],[1,"link","link--sm","link__conditions"],["target","_blank","href","/fr/pages/protection-des-renseignements-personnels-et-conditions-d-utilisation",1,"link","link--sm","link--active"],[1,"btn-wrapper"],["data-test","register-info-submit","type","submit",1,"btn","btn--lg",3,"disabled"],[1,"register-flo","register-flo--step2"],[1,"form__item__status","form__item__status--non-clickable","icon","icon-checkmark-sm"],[1,"form__item__hint"],[1,"form__item__msg"],["bindLabel","levelName","bindValue","levelId",1,"registerCheckBoxDropDown",3,"placeholder","notFoundText","items","multiple","selectableGroup","closeOnSelect","clearable","formControl"],["ng-option-tmp",""],["ng-label-tmp",""],[1,"custom-control","custom-checkbox","form__checkbox"],["type","checkbox",3,"id","value"],["type","checkbox",3,"id","ngModel","ngModelOptions"],["aria-hidden","true",1,"ng-value-icon","right","delete-icon-form",3,"click"],[1,"ng-value-label"],["bindLabel","topicName","bindValue","topicKey",1,"registerCheckBoxDropDown",3,"placeholder","notFoundText","items","multiple","selectableGroup","closeOnSelect","clearable","formControl"],[3,"value"]],template:function(m,e){if(m&1){let _=Z();o(0,"app-layout",1)(1,"app-base-section",2)(2,"div",3)(3,"div",4)(4,"a",5),l(5,"localizeRoute"),g(6,"span",6),o(7,"span",7),c(8),l(9,"translate"),a()(),o(10,"h2",8),c(11),l(12,"translate"),a()()(),o(13,"form",9),y("ngSubmit",function(){return I(_),b(e.submitForm())}),o(14,"div",10)(15,"div",11)(16,"div",12),g(17,"input",13),o(18,"label",14),c(19),l(20,"translate"),a(),v(21,jr,1,0,"span",15)(22,Ur,3,3,"div",16)(23,Dr,3,3,"div",17),a()(),o(24,"div",18)(25,"div",12,0)(27,"input",19),y("input",function(){return I(_),b(e.emailOnFocus())}
9),a(),o(28,"label",14),c(29),l(30,"translate"),a(),v(31,zr,1,0,"span",15)(32,Nr,3,3,"div",17)(33,Qr,3,3,"div",17)(34,Gr,2,1,"div",17),a()(),o(35,"div",18)(36,"div",12),g(37,"input",20),o(38,"label",14),c(39),l(40,"translate"),a(),v(41,$r,1,0,"span",15)(42,Wr,3,3,"div",17),a()(),o(43,"div",18)(44,"div",12),g(45,"input",21),o(46,"label",14),c(47),l(48,"translate"),a(),o(49,"a",22),y("click",function(){return I(_),b(e.togglePwdType())}),g(50,"span",23),a(),v(51,Zr,3,3,"div",16)(52,Hr,3,3,"div",17)(53,Yr,3,3,"div",17)(54,Kr,3,3,"div",17),a()()(),o(55,"div",10)(56,"div",24),v(57,Xr,3,3,"h2",25),o(58,"div",26)(59,"div",18)(60,"div",27)(61,"label",28),c(62),l(63,"translate"),l(64,"translate"),a(),v(65,to,5,14,"ng-select",29),a()(),o(66,"div",18)(67,"div",27)(68,"label",30),c(69),l(70,"translate"),l(71,"translate"),a(),v(72,oo,5,14,"ng-select",31),a()(),o(73,"div",18)(74,"div",27)(75,"label",32),c(76),l(77,"translate"),a(),o(78,"ng-select",33),l(79,"translate"),l(80,"translate"),v(81,no,2,2,"ng-option",34),a(),v(82,ao,3,3,"div",17),a()()()()(),o(83,"div",35)(84,"div",36)(85,"div",18)(86,"div",37),g(87,"input",38),o(88,"label",39)(89,"span",40),c(90),l(91,"translate"),a(),o(92,"a",41)(93,"span",7),c(94),l(95,"translate"),a()()()()()(),o(96,"div",42)(97,"button",43),c(98),l(99,"translate"),a()()()(),o(100,"div",44),g(101,"app-auth-flo"),a()()()}m&2&&(n("bgCreamColor","000"),i(),n("isWrapping","register"),i(3),n("routerLink",ie(93,Ar,re(5,58,"ROUTES.auth.register.root",!0))),i(4),F(p(9,61,"Common.Actions.previous")),i(3),u(" ",p(12,63,"Auth.RegisterInfo.personal_info")," "),i(2),n("formGroup",e.form),i(3),n("ngClass",Ee(95,Lr,e.nicknameFormControl.dirty||!e.nicknameFormControl.hasError("required"),!e.nicknameFormControl.hasError("required"))),i(),n("formControl",e.nicknameFormControl),i(2),F(p(20,65,"Common.Forms.nickname")),i(2),n("ngIf",!e.nicknameFormControl.hasError("required")),i(),n("ngIf",e.nicknameFormControl.pristine),i(),n("ngIf",!e.nicknameFormControl.pristine&&e.nicknameFormControl.hasError("required")),i(2),n("ngClass",G(98,at,e.emailFormControl.dirty||e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required"),e.emailFormControl.value)),i(2),n("formControl",e.emailFormControl),i(2),F(p(30,67,"Common.Forms.email")),i(2),n("ngIf",!e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")&&!e.errorEmail),i(),n("ngIf",e.emailFormControl.hasError("email")&&!e.emailFormControl.hasError("required")),i(),n("ngIf",!e.emailFormControl.pristine&&e.emailFormControl.hasError("required")),i(),n("ngIf",e.errorEmail&&e.emailFormControl.invalid&&!e.emailFormControl.hasError("required")&&e.emailFormControl.dirty),i(2),n("ngClass",G(102,at,e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value,e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value,e.emailConfirmFormControl.value)),i(),n("formControl",e.emailConfirmFormControl),i(2),F(p(40,69,"Common.Forms.emailConfirm")),i(2),n("ngIf",e.emailConfirmFormControl.value&&e.emailConfirmFormControl.value===e.emailFormControl.value),i(),n("ngIf",e.emailConfirmFormControl.dirty&&e.emailConfirmFormControl.value!==e.emailFormControl.value),i(2),n("ngClass",G(106,at,e.passwordFormControl.dirty&&(e.passwordFormControl.hasError("required")||e.passwordFormControl.hasError("minlength")||e.passwordFormControl.hasError("pattern")),!e.passwordFormControl.hasError("required")&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern"),e.passwordFormControl.value)),i(),n("type",e.pwdType)("formControl",e.passwordFormControl),i(2),F(p(48,71,"Common.Forms.password")),i(3),n("ngClass",ie(110,qr,e.isVisible)),i(),n("ngIf",e.passwordFormControl.pristine),i(),n("ngIf",e.passwordFormControl.invalid&&e.passwordFormControl.dirty&&!e.passwordFormControl.hasError("minlength")&&!e.passwordFormControl.hasError("pattern")),i(),n("ngIf",e.passwordFormControl.hasError("minlength")),i(),n("ngIf",e.passwordFormControl.hasError("pattern")&&!e.passwordFormControl.hasError("minlength")),i(2),n("ngClass","register__section--"+(e.user==null?null:e.user.type)),i(),n("ngIf",(e.user==null?null:e.user.type)==="teacher"),i(),n("ngClass","form__grid--"+(e.user==null?null:e.user.type)),i(4),Ae("",p(63,73,"Common.Forms.teach_levels")," (",p(64,75,"Common.Forms.optional"),") "),i(3),n("ngIf",e.teachLevels),i(4),Ae("",p(70,77,"Common.Forms.teach_topics")," (",p(71,79,"Common.Forms.optional"),") "),i(3),n("ngIf",e.teachTopics),i(4),F(p(77,81,"Auth.RegisterInfo.Teacher.province")),i(2),n("placeholder",R(p(79,83,"Common.Forms.choose")))("notFoundText",R(p(80,85,"Common.Forms.Errors.not_found")))("searchable",!0)("clearable",!1)("formControl",e.provinceFormControl),i(3),n("ngForOf",e.provinces),i(),n("ngIf",!e.provinceFormControl.pristine&&e.provinceFormControl.hasError("required")),i(5),n("formControl",e.agreeTermsFormControl),i(3),u(" ",p(91,87,"Auth.RegisterInfo.user_conditions_intro")," "),i(4),u(" ",p(95,89,"Auth.RegisterInfo.user_conditions_link")," "),i(3),n("disabled",!e.form.valid||e.emailFormControl.value!==e.emailConfirmFormControl.value),i(),u(" ",p(99,91,"Auth.Login.create_account")," "),i(2),Se("data-type",e.user==null?null:e.user.type))},dependencies:[ce,Te,xe,oe,Ce,Pe,fe,ge,ve,ut,Fe,we,pe,Oe,Re,gt,vt,Ie,se,le,J],styles:[`.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:var(--register-title, 30px)}@media(min-width:940px){.register__section[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--register-title: 20px}}.register__section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1.5rem}.register__section--teacher[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] + .form__grid[_ngcontent-%COMP%]{margin-top:3rem}.register__section--parent[_ngcontent-%COMP%] .form__grid[_ngcontent-%COMP%] ~ .form__grid[_ngcontent-%COMP%]{margin-top:3rem}@media(min-width:600px){.form__grid--2col[_ngcontent-%COMP%]{align-items:flex-end}}@media(max-width:1024px){.form__grid--teacher[_ngcontent-%COMP%] .form__item[_ngcontent-%COMP%]{grid-column:auto/span 2}}@media(max-width:940px){.form__grid--teacher[_ngcontent-%COMP%] .ng-dropdown-panel[_ngcontent-%COMP%]{width:auto}}
9.form__item--child-name[_ngcontent-%COMP%]{grid-column:auto/span 2}.form__bottom[_ngcontent-%COMP%]{--form-bottom: 35px}.form__conditions[_ngcontent-%COMP%]{padding-top:15px;padding-bottom:25px}@media(min-width:1024px)and (max-width:1279px){.link__conditions[_ngcontent-%COMP%]{font-size:13px;font-size:.8125rem;line-height:19px;line-height:1.1875rem}}@media(min-width:1280px){.link__conditions[_ngcontent-%COMP%]{font-size:14px;font-size:.875rem;line-height:20px;line-height:1.25rem}} 10/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register-info-teacher.component-4VE2LW7V.css.map */`]});let t=r;return t})()});function so(t,r){if(t&1){let h=Z();o(0,"div",9)(1,"div",23)(2,"h2",11),c(3),l(4,"translate"),o(5,"small"),c(6),l(7,"translate"),a()()(),o(8,"app-skills",24),y("onChange",function(m){I(h);let e=S();return b(e.getValue(m))}),a()()}if(t&2){let h=S();i(3),u(" ",p(4,3,"Auth.RegisterProfile.competence")," "),i(3),u("(",p(7,5,"Common.Forms.optional"),")"),i(2),n("data",h.skills)}}function lo(t,r){if(t&1){let h=Z();o(0,"app-avatars",25),y("onClick",function(m){I(h);let e=S();return b(e.setAvatar(m))}),a()}if(t&2){let h=S();n("selected",h.user.photo_url)("name",h.user.nickname)}}function mo(t,r){t&1&&(o(0,"h2",11),c(1),l(2,"translate"),o(3,"small"),c(4),l(5,"translate"),a()()),t&2&&(i(),u(" ",p(2,2,"Auth.RegisterProfile.newsletter")," "),i(3),u("(",p(5,4,"Common.Forms.optional"),")"))}function po(t,r){t&1&&(o(0,"h2",11),c(1),l(2,"translate"),o(3,"small"),c(4),l(5,"translate"),a()()),t&2&&(i(),u(" ",p(2,2,"Auth.RegisterProfile.newsletter_prof")," "),i(3),u("(",p(5,4,"Common.Forms.optional"),")"))}function co(t,r){t&1&&(o(0,"h2",11),c(1),l(2,"translate"),o(3,"small"),c(4),l(5,"translate"),a()()),t&2&&(i(),u(" ",p(2,2,"Auth.RegisterProfile.newsletter_parent")," "),i(3),u("(",p(5,4,"Common.Forms.optional"),")"))}function uo(t,r){t&1&&(o(0,"label",26),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Auth.RegisterProfile.newsletter_text")," "))}function ho(t,r){t&1&&(o(0,"label",26),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Auth.RegisterProfile.newsletter_text_prof")," "))}function _o(t,r){t&1&&(o(0,"label",26),c(1),l(2,"translate"),a()),t&2&&(i(),u(" ",p(2,1,"Auth.RegisterProfile.newsletter_text_parent")," "))}var $t,Wt=W(()=>{"use strict";L();ae();H();$();L();X();Y();me();je();ae();H();qe();ai();li();ze();Le();$t=(()=>{let r=class r{constructor(s,m,e,_,w,k,A,D){this.tools=s,this.router=m,this.translate=e,this.events=_,this.localeRoute=w,this.tracking=k,this.as=A,this.platformId=D,this.optinFormControl=new C("",[]),this.form=new V({optin:this.optinFormControl}),this.skills=[],this.subscriptions=[],this.isBrowser=ne(D),this.as.getCurrentUser().subscribe(K=>{this.user=K,this.loadInit()})}ngOnInit(){this.tools.setTheme("default"),this.tools.scrollTo(),this.tracking.trackPageView(this.router.url,O.registerInfoProfile)}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}loadInit(){this.user?(this.user.type===U.student||this.user.type===U.adult)&&this.loadSkills():this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.auth.register.root"))])}loadSkills(){let s=this.user.skills||{};this.skills=Object.entries(s).map(([m,e])=>({name:m,value:e}))}getValue(s){this.user.skills||(this.user.skills={}),this.user.skills[s.value.name]=s.value.value}setAvatar({value:s}){this.user.photo_url=s}navigateToPreviousPage(){return this.localeRoute.localize(this.translate.instant(`ROUTES.auth.register.info.${this.user.type}`))}navigateToUserHomePage(){let s=We.students;this.user.type===U.parent?s=We.parents:this.user.type===U.teacher&&(s=We.teachers),this.tools.redirectUriAccountCreation!==""&&this.isBrowser?window.location.href=this.tools.redirectUriAccountCreation:this.router.navigate([this.localeRoute.localize(this.translate.instant(`ROUTES.${s}.root`),!0)])}submitForm(){this.user.optin=!!this.optinFormControl.value,this.as.updateUser(this.user),this.events.broadcast("user:updated",this.user),this.navigateToUserHomePage()}};r.\u0275fac=function(m){return new(m||r)(d(M),d(T),d(x),d(q),d(j),d(B),d(P),d(te))},r.\u0275cmp=E({type:r,selectors:[["app-register-profile"]],standalone:!1,decls:44,vars:32,consts:[[3,"bgCreamColor"],[3,"isWrapping"],[1,"register__header"],[1,"breadcrumbs"],[1,"link","link--sm",3,"routerLink"],[1,"icon","icon-chevron-sm","icon--rotate-right"],[1,"link__text"],[3,"ngSubmit","formGroup"],["class","form__section",4,"ngIf"],[1,"form__section"],[1,"form__grid","form__grid--2col"],[1,"title","title--h2"],[3,"selected","name","onClick",4,"ngIf"],["class","title title--h2",4,"ngIf"],[1,"form__item"],[1,"form__checkbox"],["type","checkbox","id","register-profile-optin","data-test","register-profile-optin",3,"formControl"],["for","register-profile-optin",4,"ngIf"],[1,"form__bottom"],[1,"btn-wrapper"],["data-test","register-profile-submit","type","submit",1,"btn","btn--lg",3,"disabled"],[1,"link","link--active",3,"click"],[1,"register-flo","register-flo--step3"],[1,"form__grid","form__grid--2col","form__grid--profile"],[3,"onChange","data"],[3,"onClick","selected","name"],["for","register-profile-optin"]],template:function(m,e){m&1&&(o(0,"app-layout",0)(1,"app-base-section",1)(2,"div",2)(3,"div",3)(4,"a",4),l(5,"localizeRoute"),g(6,"span",5),o(7,"span",6),c(8),l(9,"translate"),a()()()(),o(10,"form",7),y("ngSubmit",function(){return e.submitForm(
10)}),v(11,so,9,7,"div",8),o(12,"div",9)(13,"div",10)(14,"h2",11),c(15),l(16,"translate"),o(17,"small"),c(18),l(19,"translate"),a()()(),v(20,lo,1,2,"app-avatars",12),a(),o(21,"div",9)(22,"div",10)(23,"div"),v(24,mo,6,6,"h2",13)(25,po,6,6,"h2",13)(26,co,6,6,"h2",13),o(27,"div",14)(28,"div",15),g(29,"input",16),v(30,uo,3,3,"label",17)(31,ho,3,3,"label",17)(32,_o,3,3,"label",17),a()()()()(),o(33,"div",18)(34,"div",19)(35,"button",20),c(36),l(37,"translate"),a(),o(38,"a",21),y("click",function(){return e.navigateToUserHomePage()}),o(39,"span",6),c(40),l(41,"translate"),a()()()(),o(42,"div",22),g(43,"app-auth-flo"),a()()()()),m&2&&(n("bgCreamColor","000"),i(),n("isWrapping","register"),i(3),n("routerLink",re(5,19,"ROUTES.profile.root",!0)),i(4),F(p(9,22,"Common.Actions.account")),i(2),n("formGroup",e.form),i(),n("ngIf",(e.user==null?null:e.user.type)==="student"||(e.user==null?null:e.user.type)==="adult"),i(4),u(" ",p(16,24,"Auth.RegisterProfile.avatar")," "),i(3),u("(",p(19,26,"Common.Forms.optional"),")"),i(2),n("ngIf",e.user&&e.user.photo_url),i(4),n("ngIf",(e.user==null?null:e.user.type)==="student"||(e.user==null?null:e.user.type)==="adult"),i(),n("ngIf",(e.user==null?null:e.user.type)==="teacher"),i(),n("ngIf",(e.user==null?null:e.user.type)==="parent"),i(3),n("formControl",e.optinFormControl),i(),n("ngIf",(e.user==null?null:e.user.type)==="student"||(e.user==null?null:e.user.type)==="adult"),i(),n("ngIf",(e.user==null?null:e.user.type)==="teacher"),i(),n("ngIf",(e.user==null?null:e.user.type)==="parent"),i(3),n("disabled",!e.form.valid),i(),u(" ",p(37,28,"Account.save")," "),i(4),F(p(41,30,"Auth.Register.skip")))},dependencies:[ce,oe,Ce,fe,ge,ve,Fe,we,pe,It,bt,Ie,se,le,J],styles:[`.skills[_ngcontent-%COMP%]{display:grid}@media(min-width:941px){.skills[_ngcontent-%COMP%]{grid-gap:15px 4rem;grid-template-columns:repeat(2,1fr)}}@media(max-width:940px){.skills[_ngcontent-%COMP%]{grid-gap:15px}}.skills__item[_ngcontent-%COMP%]{display:grid;grid-gap:1.5rem;align-items:center;grid-template-columns:1.3fr var(--range-width)}.range[_ngcontent-%COMP%]{margin-left:auto}.form__bottom[_ngcontent-%COMP%]{--form-bottom: 30px}.register__header[_ngcontent-%COMP%]{--rmtop: 0}@media(min-width:941px){.form__section[_ngcontent-%COMP%]{margin-top:60px}.form__section[_ngcontent-%COMP%] ~ .form__section[_ngcontent-%COMP%]{margin-top:100px}}@media(max-width:940px){.form__section[_ngcontent-%COMP%]{margin-top:50px}}.form__grid--profile[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{--rmtop: 0;--rmbottom: 30px}.btn-wrapper[_ngcontent-%COMP%]{display:flex}.btn-wrapper[_ngcontent-%COMP%] .link[_ngcontent-%COMP%]{align-self:center} 11/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register-profile.component-BCFEZUL3.css.map */`]});let t=r;return t})()});var Zt,Ht=W(()=>{"use strict";L();ae();H();$();oi();L();Y();X();me();X();Zt=(()=>{let r=class r{constructor(s,m,e,_,w,k,A,D,K,he,Ve){this.router=s,this.tools=m,this.state=e,this.translate=_,this.localeRoute=w,this.tracking=k,this.routerExtService=A,this.as=D,this.events=K,this.activatedRoute=Ve,this.agreeFormControl=new C("",[]),this.form=new V({agree:this.agreeFormControl}),this.months=[],this.redirectUri=null,this.observerListeners=[],this.isBrowser=ne(he)}ngOnInit(){this.tools.setTheme("default"),this.tracking.trackPageView(this.router.url,O.register);let s=this.isBrowser?window.location.search:this.tools.convertQueryParamsToQueryString(this.activatedRoute.snapshot.queryParams),m=new URLSearchParams(s);this.redirectUri=m.get("redirect_uri")?m.get("redirect_uri"):this.tools.redirectUriAccountCreation||"",this.events.broadcast("usercreate:show"),this.events.on("usercreate:done",e=>this.onRegisterDone(e))}onRegisterDone(s){return lt(this,null,function*(){if(!s.actionFinished)return this.handleSubmitRedirect();let m=this.translate.currentLang;return s.language&&(m=s.language,yield mt(this.translate.use(m)),this.localeRoute.init(m,this.localeRoute.routes)),s.gotoProfile?this.navigateToRoute("profile"):s.gotoPreferences?this.navigateToRoute("preferences"):s.gotoMySpace?this.navigateToRoute("myspace"):s.gotoHome?this.navigateToRoute("home"):s.goToSearchPage?this.navigateToRoute("searchPage",s.role):this.handleSubmitRedirect()})}navigateToRoute(s,m){let e={profile:"ROUTES.profile.root",preferences:"ROUTES.preferences",myspace:"ROUTES.myspace",home:"ROUTES.home",searchPage:"ROUTES."+m+".search"};return this.router.navigate([this.localeRoute.localize(this.translate.instant(e[s]),!0)])}handleSubmitRedirect(){if(this.redirectUri){this.isBrowser?window.location.href=this.redirectUri:this.router.navigateByUrl(this.redirectUri);return}if(this.tools.redirectUriAccountCreation!==""){this.isBrowser?window.location.href=this.tools.redirectUriAccountCreation:this.router.navigateByUrl(this.tools.redirectUriAccountCreation);return}
11let s=this.routerExtService.getPreviousUrl();if(s){this.router.navigateByUrl(s.startsWith(`/${this.translate.currentLang}/`)?s:this.localeRoute.localize(s));return}}getMonths(){this.months=Object.entries(this.translate.instant("Common.Forms.Months")).map(s=>({id:+s[0],name:s[1]}))}onSwitchUserType(s){this.user.type=s}checkAgreement(){return this.user.type!==U.student?!0:this.agreeFormControl.value}submitForm(){this.form.valid&&this.checkAgreement()&&this.user.type&&(this.state.set("user",this.user),this.router.navigate([this.localeRoute.localize(this.translate.instant(`ROUTES.auth.register.info.${this.user.type}`))]))}};r.\u0275fac=function(m){return new(m||r)(d(T),d(M),d(ye),d(x),d(j),d(B),d(He),d(P),d(q),d(te),d(ke))},r.\u0275cmp=E({type:r,selectors:[["app-register"]],standalone:!1,decls:0,vars:0,template:function(m,e){},styles:[`@media(min-width:941px){.register__header[_ngcontent-%COMP%]{--rmbottom: 30px }}.register-form[_ngcontent-%COMP%]{margin:2rem 0}@media(min-width:941px){.register-form[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-gap:2rem}}@media(max-width:940px){.register-form[_ngcontent-%COMP%]{margin-top:25px}}.button__wraps[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}@media(min-width:941px){.button__wraps[_ngcontent-%COMP%]{margin:15px 0 30px}}@media(max-width:940px){.button__wraps[_ngcontent-%COMP%]{margin:15px 0 0}}.button__wraps[_ngcontent-%COMP%] .btn-wrapper[_ngcontent-%COMP%]{margin-right:10px;margin-bottom:10px}@media(min-width:941px){.form__section[_ngcontent-%COMP%]{margin-top:50px}}@media(max-width:940px){.form__section[_ngcontent-%COMP%]{margin-top:30px}}.form__adjustement__year[_ngcontent-%COMP%]{padding-top:17px}@media(max-width:940px){.form__adjustement__year[_ngcontent-%COMP%]{margin-top:30px;padding-top:0}}@media(min-width:1599px){.form__adjustement__year[_ngcontent-%COMP%]{padding-top:33px}}.form__item__label[_ngcontent-%COMP%]{top:66%}.acc__btns[_ngcontent-%COMP%]{margin-top:3rem}@media(min-width:941px){.form__bottom[_ngcontent-%COMP%]{--form-bottom: 30px}}@media(max-width:940px){.form__bottom[_ngcontent-%COMP%]{--form-bottom: 25px}}@media(min-width:601px){.form__checkbox[_ngcontent-%COMP%]{max-width:75%}}.form__grid[_ngcontent-%COMP%]{margin-top:10px}@media(max-width:940px){.form__grid[_ngcontent-%COMP%]{grid-gap:0}} 12/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/register.component-4POESFSL.css.map */`]});let t=r;return t})()});var Yt,Kt=W(()=>{"use strict";H();$();L();X();Y();me();Yt=(()=>{let r=class r{constructor(s,m,e,_,w,k,A,D){this.events=s,this.router=m,this.route=e,this.tools=_,this.translate=w,this.localeRoute=k,this.tracking=A,this.as=D,this.passwordNewFormControl=new C("",[f.minLength(8),f.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),f.required]),this.passwordNewConfirmFormControl=new C("",[f.minLength(8),f.pattern("^(?=.*[0-9])(?=.*[a-zA-Z])([a-zA-Z0-9!$%@#\xA3\u20AC*?&-_]+)$"),f.required]),this.form=new V({newPassword:this.passwordNewFormControl,newConfirmPassword:this.passwordNewConfirmFormControl}),this.oobCode="",this.success=!1,this.errorReset=!1,this.isVisible=!1,this.pwdType="password",this.subscriptions=[],this.observerListeners=[]}ngOnInit(){this.tools.setTheme("default"),this.subscriptions.push(this.route.paramMap.subscribe(s=>{this.oobCode=s.get("oobCode")||""})),this.tracking.trackPageView(this.router.url,O.resetPassword),this.events.broadcast("userpasswordreset:show",{oobCode:this.oobCode})}ngOnDestroy(){this.subscriptions.forEach(s=>s.unsubscribe())}passwordOnFocus(){this.errorReset=!1}submitForm(){this.as.validateResetPassword(this.oobCode,this.passwordNewFormControl.value).then(()=>{this.success=!0,this.router.navigate([this.localeRoute.localize(this.translate.instant("ROUTES.students.root"),!0)])}).catch(()=>{this.errorReset=!0,this.error=this.translate.instant("Account.reset_pwd_error")})}togglePwdType(){this.pwdType=this.pwdType==="password"?"text":"password",this.isVisible=!this.isVisible}};r.\u0275fac=function(m){return new(m||r)(d(q),d(T),d(ke),d(M),d(x),d(j),d(B),d(P))},r.\u0275cmp=E({type:r,selectors:[["app-reset-password"]],standalone:!1,decls:0,vars:0,template:function(m,e){},styles:[`.form__group[_ngcontent-%COMP%]{margin:3rem 0}@media(max-width:600px){.form__group[_ngcontent-%COMP%]{margin:3rem 0 4rem}} 13/*# sourceMappingURL=https://static.alloprof.qc.ca/webapp/builds/8061618/reset-password.component-47TOGLL2.css.map */`]});let t=r;return t})()});var Xt,Jt=W(()=>{"use strict";ae();L();wt();L();wt();Y();Xt=(()=>
13{let r=class r{constructor(s,m,e){this.auth=m,this.router=e,this.isBrowser=ne(s)}ngOnInit(){if(!this.isBrowser)return;let s=window.location.hash,m=s.startsWith("#token=")?s.slice(7):null,e=this.safeRedirect(new URLSearchParams(window.location.search).get("navigate-to"));if(!m){this.router.navigate(["/fr/auth/connexion"]);return}Ft(this.auth,m).then(()=>{window.location.assign(e)}).catch(()=>{this.router.navigate(["/fr/auth/connexion"])})}safeRedirect(s){return s&&s.startsWith("/")&&!s.startsWith("//")?s:"/"}};r.\u0275fac=function(m){return new(m||r)(d(te),d(Ct),d(T))},r.\u0275cmp=E({type:r,selectors:[["app-ott-callback"]],standalone:!1,decls:3,vars:0,template:function(m,e){m&1&&(o(0,"div")(1,"p"),c(2,"Connexion en cours\u2026"),a()())},encapsulation:2,changeDetection:0});let t=r;return t})()});var ei=W(()=>{"use strict";Le()});var fo,Yn,go=W(()=>{Y();mi();Tt();kt();Rt();Mt();Vt();Lt();Ut();zt();Gt();Wt();Ht();Kt();ni();Jt();ei();L();fo=yt.generateRoutes([{route:{component:Pt},paths:["connexion","connection"]},{route:{component:xt},paths:["mot-de-passe-oublie","forgot-password"]},{route:{component:Zt},paths:["inscription","register"]},{route:{component:jt},paths:["inscription-info-parent","register-info-parent"]},{route:{component:Dt},paths:["inscription-info-eleve","register-info-student"]},{route:{component:Qt},paths:["inscription-info-professeur","register-info-teacher"]},{route:{component:At},paths:["inscription-info-adulte","register-info-adult"]},{route:{component:$t},paths:["inscription-profil","register-profile"]},{route:{component:Bt},paths:["inscription-confirmation","register-confirmation"]},{route:{component:Yt},paths:["reinitialiser-mot-de-passe/:oobCode","password-reset/:oobCode"]},{route:{component:St},paths:["suppression-compte","delete-account"]},{route:{component:Ot},paths:["reactiver-compte","reactivate-account"]},{route:{component:Xt},paths:["ott"]}]),Yn=(()=>{let r=class r{};r.\u0275fac=function(m){return new(m||r)},r.\u0275mod=ct({type:r}),r.\u0275inj=pt({imports:[Et,dt.forChild(fo)]});let t=r;return t})()});go();export{Yn as AuthModule}; 14//# sourceMappingURL=chunk-NEQJVNHG.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.