1import{b as we,c as qe}from"./chunk-RDFVEJLY.js";import{a as xe,b as ke,c as Ie,d as De,e as be,f as Fe}from"./chunk-ZGJZOEOM.js";import{a as Se,b as Be}from"./chunk-EGKQ27HK.js";import{a as re,b as Ae}from"./chunk-SYYQ5RSQ.js";import{a as oe,b as Ne}from"./chunk-274OYHOQ.js";import{c as ae,d as ye}from"./chunk-AZS3QIZL.js";import{a as le,b as Ge}from"./chunk-OUWEUXNL.js";import{B as _e,C as Ce,b as se,c as pe,e as O,h as de,k as ce,l as me,m as ue,o as b,q as ge,t as he,u as fe,v as Ee,w as ve,x as Re}from"./chunk-PXI4RNCT.js";import{f as j,h as Y,i as X,m as J,n as $}from"./chunk-MJC7NEL7.js";import{b as ee,c as te,e as ie,f as ne}from"./chunk-P2NB64WX.js";import{i as Q,s as K,z as Z}from"./chunk-H3JKYH2Z.js";import{H as F,Jc as A,Kc as w,Lc as W,Mb as R,Ob as g,Pb as h,Pc as r,Q as Me,Qc as o,Rc as N,Ub as f,Vb as n,Wb as a,Xb as m,_,cc as y,ea as L,fa as M,gc as P,hb as t,ic as C,lb as x,mb as I,mc as V,nc as U,oc as z,uc as S,ud as H,vb as q,xc as l,yc as v,zc as p}from"./chunk-6ZKZEUGL.js";import{e as k,k as D}from"./chunk-J6LPXIX4.js";function Oe(i){return c=>{let e=c.value??"";if(!e)return{passwordRequired:!0};if(e.length<i.minLength)return{passwordTooShort:{min:i.minLength}};if(e.length>i.maxLength)return{passwordTooLong:{max:i.maxLength}};let s=/[A-Z]/.test(e),d=/[a-z]/.test(e),u=/\d/.test(e),E=/[^A-Za-z0-9]/.test(e);if([s,d,u,E].filter(Boolean).length<i.minClasses)return{passwordClasses:{required:i.minClasses,hasUpper:s,hasLower:d,hasDigit:u,hasSymbol:E}};if(i.requireUpper&&!s)return{needUpper:!0};if(i.requireLower&&!d)return{needLower:!0};if(i.requireDigit&&!u)return{needDigit:!0};if(i.requireSymbol&&!E)return{needSymbol:!0};if(i.blockCommon&&Ve.has(e.toLowerCase()))return{tooCommon:!0};let Le=(s?26:0)+(d?26:0)+(u?10:0)+(E?33:0),B=Math.log2(Math.max(Le,1))*e.length;return B<45?{weakEntropy:{entropyBits:Math.round(B)}}:null}}function Pe(i){if(!i)return 0;let c=/[A-Z]/.test(i),e=/[a-z]/.test(i),s=/\d/.test(i),d=/[^A-Za-z0-9]/.test(i),u=[c,e,s,d].filter(Boolean).length,E=0;return i.length>=12&&E++,i.length>=16&&E++,u>=3&&E++,u===4&&E++,Math.min(E,4)}var Ve,Te=k(()=>{"use strict";Ve=new Set(["password","p@ssw0rd","123456","123456789","azerty","qwerty","000000","iloveyou","admin"])});function Ke(i,c){if(i&1){let e=y();n(0,"button",19),r(1,"translate"),P("click",function(){L(e);let d=C();return M(d.backToChoice())}),n(2,"span",20),m(3,"i",21),a()()}if(i&2){let e=C();R("aria-label",o(1,2,"REGISTER.BACK")),t(3),f("ngClass",e.isRtl?"pi-arrow-right":"pi-arrow-left")}}function Ze(i,c){if(i&1&&(n(0,"p",11),l(1),a()),i&2){let e=C();t(),p(" ",e.errorMessage," ")}}function je(i,c){if(i&1){let e=y();n(0,"div",12)(1,"div",22)(2,"div",23),m(3,"div",24,0),r(5,"translate"),a()(),n(6,"div",25),m(7,"span",26),n(8,"span",27),l(9),r(10,"translate"),a(),m(11,"span",26),a(),n(12,"div",22)(13,"div",23)(14,"button",28),P("click",function(){L(e);let d=C();return M(d.showEmailForm())}),l(15),r(16,"translate"),a()()()()}i&2&&(t(3),R("aria-label",o(5,3,"REGISTER.GOOGLE_BUTTON_LABEL")),t(6),p(" ",N(10,5,"REGISTER.OR",A(10,He))," "),t(6),p(" ",o(16,8,"REGISTER.CONTINUE_WITH_EMAIL")," "))}function Ye(i,c){i&1&&(n(0,"p",36),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.REQUIRED_FIELD")," "))}function Xe(i,c){i&1&&(n(0,"p",39),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.REQUIRED_FIELD")," "))}function Je(i,c){i&1&&(n(0,"p",43),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.EMAIL_REQUIRED")," "))}function $e(i,c){i&1&&(n(0,"p",44),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.EMAIL_INVALID")," "))}function et(i,c){i&1&&(n(0,"p",50),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.PROFESSION_REQUIRED")," "))}function tt(i,c){if(i&1&&(n(0,"li"),m(1,"span",61),l(2),r(3,"translate"),a()),i&2){let e=C(2);S("ok",e.hasUpper),t(2),p(" ",o(3,3,"REGISTER.PASSWORD.RULE_UPPER")," ")}}function it(i,c){if(i&1&&(n(0,"li"),m(1,"span",61),l(2),r(3,"translate"),a()),i&2){let e=C(2);S("ok",e.hasDigit),t(2),p(" ",o(3,3,"REGISTER.PASSWORD.RULE_DIGIT")," ")}}function nt(i,c){if(i&1&&(n(0,"li"),m(1,"span",61),l(2),r(3,"translate"),a()),i&2){let e=C(2);
1S("ok",e.hasSymbol),t(2),p(" ",o(3,3,"REGISTER.PASSWORD.RULE_SYMBOL")," ")}}function at(i,c){if(i&1&&(n(0,"li"),m(1,"span",61),l(2),r(3,"translate"),a()),i&2){let e=C(2);S("ok",e.classesOk),t(2),p(" ",o(3,3,"REGISTER.PASSWORD.TYPES_3_OF_4")," ")}}function rt(i,c){i&1&&(n(0,"p",63),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.PASSWORD_REQUIRED")," "))}function ot(i,c){i&1&&(n(0,"p",44),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.VALIDATION.PASSWORD_ENTROPY")," "))}function lt(i,c){i&1&&(n(0,"p",75),l(1),r(2,"translate"),a()),i&2&&(t(),p(" ",o(2,1,"REGISTER.PREFERRED_LOCALE.REQUIRED")," "))}function st(i,c){i&1&&(n(0,"span"),l(1),r(2,"translate"),a()),i&2&&(t(),v(o(2,1,"REGISTER.SUBMIT")))}function pt(i,c){i&1&&(n(0,"span"),l(1),r(2,"translate"),a()),i&2&&(t(),v(o(2,1,"REGISTER.LOADING")))}function dt(i,c){if(i&1){let e=y();n(0,"div",13)(1,"div",29)(2,"label",30),l(3),r(4,"translate"),n(5,"span",31),l(6,"*"),a()(),n(7,"div",32),m(8,"input",33),r(9,"translate"),x(),n(10,"span",34),m(11,"i",35),a()(),g(12,Ye,3,3,"p",36),a(),n(13,"div",29)(14,"label",37),l(15),r(16,"translate"),n(17,"span",31),l(18,"*"),a()(),n(19,"div",32),m(20,"input",38),r(21,"translate"),x(),n(22,"span",34),m(23,"i",35),a()(),g(24,Xe,3,3,"p",39),a(),n(25,"div",29)(26,"label",40),l(27),r(28,"translate"),n(29,"span",31),l(30,"*"),a()(),n(31,"div",32),m(32,"input",41),r(33,"translate"),x(),n(34,"span",34),m(35,"i",42),a()(),g(36,Je,3,3,"p",43),g(37,$e,3,3,"p",44),a(),n(38,"div",29)(39,"label",45),l(40),r(41,"translate"),n(42,"span",31),l(43,"*"),a()(),n(44,"div",46)(45,"div",47)(46,"select",48)(47,"option",49),l(48),r(49,"translate"),a(),n(50,"option",49),l(51),r(52,"translate"),a(),n(53,"option",49),l(54),r(55,"translate"),a(),n(56,"option",49),l(57),r(58,"translate"),a()(),x(),a()(),g(59,et,3,3,"p",50),a(),n(60,"div",22)(61,"div",51)(62,"label",52)(63,"span"),l(64),r(65,"translate"),a(),n(66,"span",53),l(67,"*"),a()()(),n(68,"div",54),m(69,"input",55),r(70,"translate"),x(),n(71,"span",34),m(72,"i",56),a(),n(73,"button",57),r(74,"translate"),r(75,"translate"),P("click",function(){L(e);let d=C();return M(d.togglePassword())}),m(76,"i",21),a()(),n(77,"div",58),r(78,"translate"),m(79,"span",59)(80,"span",59)(81,"span",59),a(),n(82,"ul",60)(83,"li"),m(84,"span",61),l(85),r(86,"translate"),a(),n(87,"li"),m(88,"span",61),l(89),r(90,"translate"),a(),n(91,"li"),m(92,"span",61),l(93),r(94,"translate"),a(),g(95,tt,4,5,"li",62),g(96,it,4,5,"li",62),g(97,nt,4,5,"li",62),g(98,at,4,5,"li",62),a(),g(99,rt,3,3,"p",63),g(100,ot,3,3,"p",44),a(),n(101,"div",22)(102,"label",64),l(103),r(104,"translate"),n(105,"span",31),l(106,"*"),a()(),n(107,"div",46)(108,"div",47)(109,"select",65)(110,"option",66),l(111),r(112,"translate"),a(),n(113,"option",67),l(114),r(115,"translate"),a(),n(116,"option",68),l(117),r(118,"translate"),a(),n(119,"option",69),l(120),r(121,"translate"),a(),n(122,"option",70),l(123),r(124,"translate"),a(),n(125,"option",71),l(126),r(127,"translate"),a(),n(128,"option",72),l(129),r(130,"translate"),a(),n(131,"option",73),l(132),r(133,"translate"),a(),n(134,"option",74),l(135),r(136,"translate"),a()(),x(),a()(),g(137,lt,3,3,"p",75),n(138,"p",76),l(139),r(140,"translate"),a()(),n(141,"div",77)(142,"label",78),m(143,"input",79),x(),n(144,"span",80),l(145),r(146,"translate"),a()(),n(147,"p",76),l(148),r(149,"translate"),a()(),n(150,"div",81)(151,"button",82),g(152,st,3,3,"span"),g(153,pt,3,3,"span"),a()()()}if(i&2){let e=C();t(3),p(" ",o(4,85,"REGISTER.LAST_NAME.LABEL")," "),t(5),f("ngClass",w(150,T,e.isInvalid("lastName")))("placeholder",o(9,87,"REGISTER.LAST_NAME.PLACEHOLDER")),R("aria-invalid",e.isInvalid("lastName")?"true":"false")("aria-describedby",e.isInvalid("lastName")?"register-last-name-error":null),I(),t(4),h(e.isInvalid("lastName")?12:-1),t(3),p(" ",o(16,89,"REGISTER.FIRST_NAME.LABEL")," "),t(5),f("ngClass",w(152,T,e.isInvalid("firstName")))("placeholder",o(21,91,"REGISTER.FIRST_NAME.PLACEHOLDER")),R("aria-invalid",e.isInvalid("firstName")?"true":"false")("aria-describedby",e.isInvalid("firstName")?"register-first-name-error":null),I(),t(4),h(e.isInvalid("firstName")?24:-1),t(3),p(" ",o(28,93,"REGIST
1ER.EMAIL.LABEL")," "),t(5),f("ngClass",w(154,T,e.isInvalid("email")))("placeholder",o(33,95,"REGISTER.EMAIL.PLACEHOLDER")),R("aria-invalid",e.isInvalid("email")?"true":"false")("aria-describedby",e.isInvalid("email")?"register-email-error":null),I(),t(4),h(e.isInvalid("email")&&e.f.email.hasError("required")?36:-1),t(),h(e.isInvalid("email")&&e.f.email.hasError("email")?37:-1),t(3),p(" ",o(41,97,"REGISTER.PROFESSION.LABEL")," "),t(5),f("ngClass",w(156,T,e.isInvalid("profession"))),t(),R("aria-invalid",e.isInvalid("profession")?"true":"false")("aria-describedby",e.isInvalid("profession")?"register-profession-error":null),I(),t(),f("ngValue","\xE9tudiant"),t(),p(" ",o(49,99,"REGISTER.PROFESSION.STUDENT")," "),t(2),f("ngValue","enseignant"),t(),p(" ",o(52,101,"REGISTER.PROFESSION.TEACHER")," "),t(2),f("ngValue","\xE9crivain"),t(),p(" ",o(55,103,"REGISTER.PROFESSION.WRITER")," "),t(2),f("ngValue","autre"),t(),p(" ",o(58,105,"REGISTER.PROFESSION.OTHER")," "),t(2),h(e.isInvalid("profession")?59:-1),t(5),v(o(65,107,"REGISTER.PASSWORD.LABEL")),t(5),f("type",e.showPassword?"text":"password")("ngClass",w(158,T,e.isInvalid("password")))("placeholder",o(70,109,"REGIST
1ER.PASSWORD.PLACEHOLDER")),R("aria-invalid",e.isInvalid("password")?"true":"false")("aria-describedby",e.isInvalid("password")?"register-password-error":null),I(),t(4),R("aria-label",e.showPassword?o(74,111,"REGISTER.PASSWORD.HIDE"):o(75,113,"REGISTER.PASSWORD.SHOW"))("aria-pressed",e.showPassword?"true":"false")("aria-controls","register-password"),t(3),f("ngClass",e.showPassword?"pi-eye-slash":"pi-eye"),t(),f("ngClass",e.levelClass),R("aria-label",o(78,115,"REGISTER.PASSWORD.STRENGTH_"+e.strengthLabelKey)),t(5),S("pw-dirty",e.f.password.dirty||e.f.password.touched),t(),S("ok",e.lenOk),t(2),p(" ",N(86,117,"REGISTER.PASSWORD.RULE_MIN_RANGE",W(160,Qe,e.policy.minLength,e.policy.maxLength))," "),t(2),S("ok",e.lettersAndNumbers),t(2),p(" ",o(90,120,"REGISTER.PASSWORD.RULE_LETTERS_NUMBERS")," "),t(2),S("ok",e.noSpaces),t(2),p(" ",o(94,122,"REGISTER.PASSWORD.NO_SPACES")," "),t(2),h(e.policy.requireUpper?95:-1),t(),h(e.policy.requireDigit?96:-1),t(),h(e.policy.requireSymbol?97:-1),t(),h(e.policy.minClasses>=3&&!(e.policy.requireUpper||e.policy.requireLower||e.policy.requireDigit||e.policy.requireSymbol)?98:-1),t(),h(e.isInvalid("password")&&e.passwordErrors?.passwordRequired?99:-1),t(),h(e.isInvalid("password")&&e.passwordErrors?.weakEntropy?100:-1),t(3),p(" ",o(104,124,"REGISTER.PREFERRED_LOCALE.LABEL")," "),t(5),f("ngClass",w(163,T,e.isInvalid("preferredLocale"))),t(),R("aria-invalid",e.isInvalid("preferredLocale")?"true":"false")("aria-describedby",e.isInvalid("preferredLocale")?"register-preferred-locale-error":null),I(),t(2),v(o(112,126,"LANG.EN")),t(3),v(o(115,128,"LANG.FR")),t(3),v(o(118,130,"LANG.ES")),t(3),v(o(121,132,"LANG.DE")),t(3),v(o(124,134,"LANG.IT")),t(3),v(o(127,136,"LANG.PL")),t(3),v(o(130,138,"LANG.AR")),t(3),v(o(133,140,"LANG.PT")),t(3),v(o(136,142,"LANG.TR")),t(2),h(e.isInvalid("preferredLocale")?137:-1),t(2),p(" ",o(140,144,"REGISTER.PREFERRED_LOCALE.HELP")," "),t(4),I(),t(2),p(" ",o(146,146,"REGISTER.MARKETING_OPTIN.LABEL")," "),t(3),p(" ",o(149,148,"REGISTER.MARKETING_OPTIN.HELP")," "),t(3),S("is-loading",e.loading),f("disabled",e.form.invalid||e.loading),R("aria-busy",e.loading?"true":null)("aria-disabled",e.form.invalid||e.loading?"true":"false"),t(),h(e.loading?-1:152),t(),h(e.loading?153:-1)}}var Ue,ze,We,He,T,Qe,kt,ct=k(()=>{H();Ce();qe();Z();$();ne();ye();ke();De();Be();Me();Ne();Te();Fe();Ae();Ge();H();Z();Ce();$();ne();Ue=["googleBtn"],ze=()=>["terms"],We=()=>["privacy"],He=()=>({default:"ou"}),T=i=>({"is-danger":i}),Qe=(i,c)=>({min:i,max:c});kt=(()=>{class i{set googleBtn(e){this._googleBtn=e,e&&this.mode==="choice"&&this.initGoogleButton()}route=_(j);seo=_(le);_googleBtn;googleInitialized=!1;googleResizeObserver;mode="choice";referralCode=null;registerModal=_(be);loginModal=_(re);supportedLocales=new Set(["en","fr","es","de","it","pl","ar"]);lastGoogleWidth=0;renderRaf=0;getRef(){return(this.route.snapshot.queryParamMap.get("ref")||"").trim()||null}getPreferredLocaleFromSite(){let s=(this.translate?.currentLang||localStorage.getItem("lang")||"en"||"en").toLowerCase().split("-")[0];return new Set(["en","fr","es","de","it","pl","ar"]).has(s)?s:"en"}ngOnInit(){this.seo.setRobotsNoindex(),this.referralCode=(this.route.snapshot.queryParamMap.get("ref")||"").trim()||null;let e=this.getPreferredLocaleFromSite();this.form.patchValue({preferredLocale:e},{emitEvent:!1})}initGoogleButton(){let e=this._googleBtn?.nativeElement;if(!e)return;this.googleInitialized||(this.googleAuth.onCredential(d=>{this.loading=!0,this.errorMessage=null;let u=this.getPreferredLocaleFromSite();this.auth.loginWithGoogle(d,this.getRef(),u).subscribe({next:()=>{try{this.registerModal.close()}catch(E){}localStorage.removeItem("hasSeenWelcomeModal"),this.router.navigate(["/",this.currentLang(),"ai-services"])},error:E=>{this.loading=!1;let G=this.translate.instant("REGISTER.ERRORS.GOOGLE_LOGIN_FAILED");this.errorMessage=(E?.error?.detail||G).toString()}})}),this.googleAuth.initialize(this.currentLang()),this.googleInitialized=!0);let s=()=>{let d=e.parentElement||e,u=Math.max(260,Math.floor(d.clientWidth||320));Math.abs(u-this.lastGoogleWidth)<2&&e.childNodes.length>0||(this.lastGoogleWidth=u,e.innerHTML="",this.googleAuth.renderButton(e,{theme:"filled_blue",size:"large",text:"continue_with",shape:"rectangular",logo_alignment:"left",width:u}))};s(),this.googleResizeObserver?.disconnect(),this.googleResizeObserver=new ResizeObserver(()=>{cancelAnimationFrame(this.renderRaf),this.renderRaf=requestAnimationFrame(()=>s())}),this.googleResizeObserver.observe(e.parentElement||e)}get isRtl(){return this.currentLang()==="ar"}ngOnDestroy(){this.googleResizeObserver?.disconnect(),cancelAnimationFrame(this.renderRaf)}passwordTypesCount(e){if(!e)return 0;let s=0;return/[A-Z]/.test(e)&&s++,/[a-z]/.test(e)&&s++,/\d/.test(e)&&s++,/[^A-Za-z0-9]/.test(e)&&s++,s}policy={minLength:8,maxLength:128,requireUpper:!1,requireLower:!1,requireDigit:!1,requireSymbol:!1,minClasses:3,blockCommon:!0};form=new ue({lastName:new b("",{nonNullable:!0,validators:[O.required]}),firstName:new b("",{nonNullable:!0,validators:[O.required]}),email:new b("",{nonNullable:!0,validators:[O.required,O.email]}),profession:new b("\xE9tudiant",{nonNullable:!0,validators:[O.required]}),password:new b("",{nonNullable:!0,validators:[Oe(this.policy)]}),marketingOptIn:new b(!0,{nonNullable:!0}),preferredLocale:new b(this.getPreferredLocaleFromSite(),{nonNullable:!0,validators:[O.required]})});get passwordErrors(){return this.form.get("password")?.errors||null}get pwScore(){return Pe(this.f.password.value??"")}get pwLevel(){let e=this.pwScore;return e<=1?1:e===2?2:3}get levelClass(){return this.pwLevel===1?"weak":this.pwLevel===2?"medium":"strong"}get strengthLabelKey(){return this.pwLevel===1?"WEAK":this.pwLevel===2?"GOOD":"STRONG"}get f(){return this.form.controls}get pw(){return this.f.password.value??""}get hasUpper(){return/[A-Z]/.test(this.pw)}get hasLower(){return/[a-z]/.test(this.pw)}get hasDigit(){return/\d/.test(this.pw)}get hasSymbol(){return/[^A-Za-z0-9]/.test(this.pw)}get noSpaces(){return!/\s/.test(this.pw)}get lettersAndNumbers(){return(this.hasUpper||this.hasLower)&&this.hasDigit}get lenOk(){let e=this.pw.length;return e>=this.policy.minLength&&e<=this.policy.maxLength}get classesCount(){return(this.hasUpper?1:0)+(this.hasLower?1:0)+(this.hasDigit?1:0)+(this.hasSymbol?1:0)}get classesOk(){return this.classesCount>=this.policy.minClasses}
1showPassword=!1;loading=!1;errorMessage=null;router=_(Y);auth=_(ae);recaptcha=_(Se);googleAuth=_(xe);facebookAuth=_(Ie);translate=_(ee);currentLang(){return this.translate.currentLang||localStorage.getItem("lang")||"en"}static passwordsMatch(e){let s=e.get("password")?.value,d=e.get("confirmPassword")?.value;return s!=null&&d!=null&&s===d?null:{passwordMismatch:!0}}showEmailForm(){this.mode="email"}backToChoice(){this.mode="choice"}goToLoginFromModal(e){e&&e.preventDefault();try{this.registerModal.close()}catch(s){}setTimeout(()=>{try{this.loginModal.open()}catch(s){this.router.navigate(["/",this.currentLang(),"login"])}},30)}isInvalid(e){let s=this.form.get(e);return!!s&&s.invalid&&(s.dirty||s.touched)}togglePassword(){this.showPassword=!this.showPassword}submit(){return D(this,null,function*(){if(!this.loading){if(this.form.invalid){this.form.markAllAsTouched();return}this.loading=!0,this.errorMessage=null;try{let e=yield this.recaptcha.execute("register"),s={lastName:this.f.lastName.value,firstName:this.f.firstName.value,email:this.f.email.value.trim().toLowerCase(),profession:this.f.profession.value,password:this.f.password.value,marketingOptIn:this.f.marketingOptIn.value??!1,preferredLocale:this.f.preferredLocale.value||"en",ref:this.getRef(),recaptcha_token:e,recaptcha_action:"register"};this.auth.register(s).pipe(F(()=>this.loading=!1)).subscribe({next:()=>{try{this.registerModal.close()}catch(d){}localStorage.removeItem("hasSeenWelcomeModal"),this.router.navigate(["/",this.currentLang(),"ai-services"])},error:d=>{let u=this.translate.instant("REGISTER.ERRORS.BAD_REQUEST"),E=this.translate.instant("REGISTER.ERRORS.GENERIC");this.errorMessage=d?.status===400?d?.error?.detail||u:d?.error?.detail||E}})}catch(e){this.loading=!1,this.errorMessage=this.translate.instant("REGISTER.ERRORS.RECAPTCHA")}}})}static \u0275fac=function(s){return new(s||i)};static \u0275cmp=q({type:i,selectors:[["app-register"]],viewQuery:function(s,d){if(s&1&&V(Ue,5),s&2){let u;U(u=z())&&(d.googleBtn=u.first)}},decls:37,vars:40,consts:[["googleBtn",""],["role","main","aria-labelledby","register-title",1,"hero-body","mt-5"],[1,"container"],[1,"columns","is-centered"],[1,"column","is-6-desktop","is-10-tablet","is-full-mobile"],[1,"box","mt-5","custom-box"],[1,"register-header"],["type","button",1,"back-button"],[1,"header-text"],["id","register-title",1,"has-text-centered","title","custom-title","is-4","mb-4"],["novalidate","",1,"form-tight",3,"ngSubmit","formGroup"],["role","alert","aria-live","polite",1,"help","is-danger","has-text-centered","mb-3"],[1,"choice-wrapper"],[1,"form-grid"],[1,"field","has-text-centered","span-2","mt-4"],[1,"help","is-size-6","custom-text"],["href","",3,"click"],[1,"has-text-centered","is-size-7","mt-3","has-text-grey","custom-text","span-2"],[1,"has-text-link","custom-text",3,"routerLink"],["type","button",1,"back-button",3,"click"],[1,"icon","is-small"],[1,"pi",3,"ngClass"],[1,"field","span-2"],[1,"btn-full"],["role","group"],["aria-hidden","true",1,"field","has-text-centered","my-3","separator-row"],[1,"separator-line"],[1,"separator-text"],["type","button",1,"button","is-primary","is-fullwidth","custom-button",3,"click"],[1,"field"],["for","register-last-name",1,"label","custom-label"],["aria-hidden","true",1,"required-star"],[1,"control","has-icons-left"],["id","register-last-name","type","text","formControlName","lastName","required","","aria-required","true","autocomplete","family-name",1,"input","custom-input",3,"ngClass","placeholder"],[1,"icon","is-small","is-left"],[1,"pi","pi-user"],["id","register-last-name-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["for","register-first-name",1,"label","custom-label"],["id","register-first-name","type","text","formControlName","firstName","required","","aria-required","true","autocomplete","given-name",1,"input","custom-input",3,"ngClass","placeholder"],["id","register-first-name-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["for","register-email",1,"label","custom-label"],["id","register-email","type","email","formControlName","email","required","","aria-required","true","autocomplete","email","inputmode","email",1,"input","custom-input",3,"ngClass","placeholder"],[1,"pi","pi-envelope"],["id","register-email-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["for","register-profession",1,"label","custom-label"],[1,"control"],[1,"select","is-fullwidth",3,"ngClass"],["
1id","register-profession","formControlName","profession","required","","aria-required","true"],[3,"ngValue"],["id","register-profession-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],[1,"label-row"],["for","register-password",1,"label","custom-label","is-flex","is-align-items-center","m-0"],[1,"required-star","ml-1"],[1,"control","has-icons-left","has-toggle"],["id","register-password","formControlName","password","required","","aria-required","true","autocomplete","new-password",1,"input","custom-input",3,"type","ngClass","placeholder"],[1,"pi","pi-lock"],["type","button",1,"icon-button",3,"click"],["role","img",1,"pw-meter","mt-2",3,"ngClass"],[1,"pw-bar"],["aria-live","polite",1,"pw-live","mt-2"],["aria-hidden","true",1,"ico"],[3,"ok"],["id","register-password-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],["for","register-preferred-locale",1,"label","custom-label"],["id","register-preferred-locale","formControlName","preferredLocale","required","","aria-required","true"],["value","en"],["value","fr"],["value","es"],["value","de"],["value","it"],["value","pl"],["value","ar"],["value","pt"],["value","tr"],["id","register-preferred-locale-error","role","alert","aria-live","assertive",1,"help","is-danger","custom-help"],[1,"help","is-size-7","has-text-grey","mt-1"],[1,"field","is-size-7","span-2"],[1,"checkbox"],["type","checkbox","formControlName","marketingOptIn"],[1,"ml-2"],[1,"field","span-2","button-row"],["type","submit",1,"button","is-primary","custom-button","btn-full",3,"disabled"]],template:function(s,d){s&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),g(6,Ke,4,4,"button",7),n(7,"div",8)(8,"h1",9),l(9),r(10,"translate"),a()()(),n(11,"form",10),P("ngSubmit",function(){return d.submit()}),g(12,Ze,2,1,"p",11),g(13,je,17,11,"div",12)(14,dt,154,165,"div",13),n(15,"div",14)(16,"p",15),l(17),r(18,"translate"),n(19,"a",16),P("click",function(E){return d.goToLoginFromModal(E)}),l(20),r(21,"translate"),a()()(),n(22,"p",17),l(23),r(24,"translate"),n(25,"a",18),r(26,"langLink"),l(27),r(28,"translate"),a(),l(29),r(30,"translate"),n(31,"a",18),r(32,"langLink"),l(33),r(34,"translate"),a(),l(35),r(36,"translate"),a()()()()()()()),s&2&&(S("hero-choice",d.mode==="choice")("hero-email",d.mode==="email"),t(6),h(d.mode==="email"?6:-1),t(3),p(" ",o(10,18,"REGISTER.WELCOME_TITLE")," "),t(2),f("formGroup",d.form),t(),h(d.errorMessage?12:-1),t(),h(d.mode==="choice"?13:14),t(4),p(" ",o(18,20,"REGISTER.HAVE_ACCOUNT")," "),t(3),p(" ",o(21,22,"REGISTER.LOGIN")," "),t(3),p(" ",o(24,24,"REGISTER.TERMS.PREFIX")," "),t(2),f("routerLink",o(26,26,A(38,ze))),t(2),p(" ",o(28,28,"REGISTER.TERMS.TERMS")," "),t(2),p(" ",o(30,30,"REGISTER.TERMS.AND")," "),t(2),f("routerLink",o(32,32,A(39,We))),t(2),p(" ",o(34,34,"REGISTER.TERMS.PRIVACY")," "),t(2),p(" . ",o(36,36,"REGISTER.TERMS.MARKETING_OPTIN")," "))},dependencies:[K,Q,_e,ge,ve,Re,pe,se,Ee,ce,me,de,fe,he,J,X,ie,we,te,oe],styles:['@charset "UTF-8";[_ngcontent-%COMP%]:root{--cta-height: 44px}.hero-body[_ngcontent-%COMP%]{height:60dvh}.hero-body.hero-choice[_ngcontent-%COMP%]{height:42dvh}.hero-body.hero-email[_ngcontent-%COMP%]{height:66dvh}.btn-full[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center}.btn-full[_ngcontent-%COMP%] > .button[_ngcontent-%COMP%], .btn-full[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;height:var(--cta-height)}.button.custom-button[_ngcontent-%COMP%]{height:var(--cta-height);display:inline-flex;align-items:center;justify-content:center}.custom-box[_ngcontent-%COMP%]{box-shadow:none}.register-header[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:.75rem;margin-bottom:.5rem}.back-button[_ngcontent-%COMP%]{border:none;background:transparent;font-size:1.3rem;line-height:1;padding:0;margin-top:.3rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.header-text[_ngcontent-%COMP%]{flex:1}.choice-wrapper[_ngcontent-%COMP%]{margin-top:.5rem}.separator-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:.75rem}.separator-line[_ngcontent-%COMP%]{flex:1;height:1px;background:#e5e7eb}.separator-text[_ngcontent-%COMP%]{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af}.form-tight[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{margin-bottom:0rem}.form-tight[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:.3rem}.form-tight[_ngcontent-%COMP%] .help[_ngcontent-%COMP%]{margin-top:.2rem;line-height:1.25}.form-tight[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{gap:.75rem .75rem}@media(max-width:460px){.form-tight[_ngcontent-%COMP%] .form-grid[_ngcontent-%COMP%]{gap:.55rem .55rem}.form-tight[_ngcontent-%COMP%] .field[_ngcontent-%COMP%]{margin-bottom:.5rem;max-width:100%}.form-tight[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:.25rem}}.has-toggle[_ngcontent-%COMP%]{position:relative}.has-toggle[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{padding-right:2.5rem}.custom-input[_ngcontent-%COMP%]{caret-color:#111}.custom-input[_ngcontent-%COMP%]:-webkit-autofill, .custom-input[_ngcontent-%COMP%]:-webkit-autofill:hover, .custom-input[_ngcontent-%COMP%]:-webkit-autofill:focus{-webkit-text-fill-color:#111!important;caret-color:#111!important}
1.pw-live[_ngcontent-%COMP%]{list-style:none;padding:0;margin:.35rem 0 0;display:grid;gap:.35rem;color:#9aa0a6;font-size:.8rem}.pw-live[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.pw-live[_ngcontent-%COMP%] .ico[_ngcontent-%COMP%]{width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;font-size:12px;line-height:1;font-weight:700;color:#fff;background:#d1d5db}.pw-live[_ngcontent-%COMP%] .ico[_ngcontent-%COMP%]:before{content:"\\2713";opacity:1}.pw-live.pw-dirty[_ngcontent-%COMP%] li.ok[_ngcontent-%COMP%] .ico[_ngcontent-%COMP%]{background:#2563eb}.pw-live.pw-dirty[_ngcontent-%COMP%] li.ok[_ngcontent-%COMP%] .ico[_ngcontent-%COMP%]:before{content:"\\2713";opacity:1}.pw-live.pw-dirty[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.ok) .ico[_ngcontent-%COMP%]{background:#ef4444}.pw-live.pw-dirty[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(.ok) .ico[_ngcontent-%COMP%]:before{content:"!";opacity:1}.pw-meter[_ngcontent-%COMP%]{display:flex;gap:12px}.pw-meter[_ngcontent-%COMP%] .pw-bar[_ngcontent-%COMP%]{flex:1 1 0;height:8px;background:#e5e5e5;border-radius:2px}.pw-meter.weak[_ngcontent-%COMP%] .pw-bar[_ngcontent-%COMP%]:nth-child(1){background:#ff2b2b}.pw-meter.medium[_ngcontent-%COMP%] .pw-bar[_ngcontent-%COMP%]:nth-child(-n+2){background:#f5a623}.pw-meter.strong[_ngcontent-%COMP%] .pw-bar[_ngcontent-%COMP%]:nth-child(-n+3){background:#22c55e}.button-row[_ngcontent-%COMP%]{margin-top:.4rem;margin-bottom:.2rem}.label-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.custom-text[_ngcontent-%COMP%]{max-width:32rem;margin-inline:auto}'],changeDetection:1})}return i})()});export{kt as a,ct as b};
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.