PageSourceSearch

https://ski-alpinisme.fr/chunk-22PIG5PN.js

js ski-alpinisme.fr collected 2026-10-09 22:00:07 UTC 11,507 bytes, 1 lines download raw bytes

1import{a as K,b as Q}from"./chunk-JAET5QYU.js";import{a as Z,b as $}from"./chunk-RM2T7HFJ.js";import"./chunk-VZJWBRGR.js";import"./chunk-NEOIYI2U.js";import{a as T}from"./chunk-257AC524.js";import{b as V,d as R,e as D,f as z,g as j,h as A,j as I,l as q,n as U,o as B}from"./chunk-7SZVLNV5.js";import{a as J,b as W}from"./chunk-BP7I43YQ.js";import{b as G,c as H}from"./chunk-5XOQRRGM.js";import"./chunk-7UZYWCAJ.js";import{$a as F,_a as L,p as w,y as k,z as O}from"./chunk-UOKUJMCX.js";import"./chunk-4O3FVBGX.js";import{$b as i,Bc as v,Gb as C,Lb as _,Mb as m,Pa as s,Yb as E,Z as b,Zb as P,ac as N,bc as M,da as u,db as y,ea as p,kc as S,ma as d,qb as h,rb as x,wb as c,xb as n,yb as t,zb as f}from"./chunk-3AHVMMEJ.js";var Y=()=>({height:"3px"});function ee(r,a){r&1&&f(0,"p-progressbar",8),r&2&&P(S(2,Y))}function te(r,a){r&1&&f(0,"p-message",7),r&2&&c("text",a)}function ne(r,a){r&1&&f(0,"p-message",12)}function ie(r,a){if(r&1){let e=C();n(0,"p-button",15),_("onClick",function(){u(e);let o=m(2);return p(o.resend())}),t()}if(r&2){let e=m(2);c("text",!0)("loading",e.resending())}}function re(r,a){if(r&1){let e=C();n(0,"div",9),f(1,"i",10),n(2,"p"),i(3," Un lien de confirmation vient d\u2019\xEAtre envoy\xE9 \xE0 "),n(4,"strong"),i(5),t(),i(6,". Ouvrez-le pour activer votre compte. "),t(),n(7,"p",11),i(8," Le lien est valable 24 heures. Pensez \xE0 regarder dans vos courriers ind\xE9sirables : les messages automatiques y atterrissent souvent. "),t(),n(9,"p",11),i(10," Une fois l\u2019adresse confirm\xE9e, votre compte s\u2019ouvre avec le profil "),n(11,"strong"),i(12,"Invit\xE9"),t(),i(13,", qui n\u2019ouvre pas encore l\u2019acc\xE8s au back-office : un gestionnaire de la f\xE9d\xE9ration examine ensuite votre demande. "),t()(),h(14,ne,1,0,"p-message",12)(15,ie,1,2,"p-button",13),n(16,"p-button",14),_("onClick",function(){u(e);let o=m();return p(o.goToLogin())}),t()}if(r&2){let e=m();s(5),N(e.submittedEmail()),s(9),x(e.resent()?14:15)}}function oe(r,a){r&1&&(n(0,"small",30),i(1," Les deux mots de passe ne correspondent pas. "),t())}function ae(r,a){if(r&1){let e=C();n(0,"form",16),_("ngSubmit",function(){u(e);let o=m();return p(o.submit())}),n(1,"div",17)(2,"div",18)(3,"label",19),i(4,"Nom"),t(),n(5,"input",20),_("ngModelChange",function(o){u(e);let g=m();return p(g.lastName.set(o))}),t(),n(6,"small",21),i(7,"Enregistr\xE9 en majuscules."),t()(),n(8,"div",18)(9,"label",22),i(10,"Pr\xE9nom"),t(),n(11,"input",23),_("ngModelChange",function(o){u(e);let g=m();return p(g.firstName.set(o))}),t()()(),n(12,"div",18)(13,"label",24),i(14,"Adresse e-mail"),t(),n(15,"input",25),_("ngModelChange",function(o){u(e);let g=m();return p(g.email.set(o))}),t(),n(16,"small",21),i(17,"Elle vous servira d\u2019identifiant."),t()(),n(18,"div",18)(19,"label",26),i(20,"Mot de passe"),t(),n(21,"p-password",27),_("ngModelChange",function(o){u(e);let g=m();return p(g.password.set(o))}),t(),n(22,"small",21),i(23," Au moins 10 caract\xE8res, dont une minuscule, une majuscule et un chiffre. "),t()(),n(24,"div",18)(25,"label",28),i(26,"Confirmer le mot de passe"),t(),n(27,"p-password",29),_("ngModelChange",function(o){u(e);let g=m();return p(g.confirmation.set(o))}),t(),h(28,oe,2,0,"small",30),t(),n(29,"div",18)(30,"label",31),i(31,"Motif de votre demande"),t(),n(32,"textarea",32),_("ngModelChange",function(o){u(e);let g=m();return p(g.motif.set(o))}),t(),n(33,"small",21),i(34," Facultatif "),t()(),f(35,"p-button",33),t(),n(36,"footer",34)(37,"span",35),i(38,"D\xE9j\xE0 inscrit ?"),t(),f(39,"p-button",36),t()}if(r&2){let e=m();s(5),c("ngModel",e.lastName()),s(6),c("ngModel",e.firstName()),s(4),c("ngModel",e.email()),s(6),c("feedback",!1)("toggleMask",!0)("fluid",!0)("ngModel",e.password()),s(),E("field__hint--error",e.password().length>0&&!e.passwordValid()),s(5),c("feedback",!1)("toggleMask",!0)("fluid",!0)("ngModel",e.confirmation()),s(),x(e.passwordsMatch()?-1:28),s(4),c("ngModel",e.motif()),s(3),c("disabled",!e.canSubmit())("loading",e.loading()),s(4),c("outlined",!0)}}var se=/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).{10,}$/,X=class r{auth=b(T);router=b(k);lastName=d("");firstName=d("");email=d("");password=d("");confirmation=d("");motif=d("");loading=d(!1);error=d(null);done=d(!1);submittedEmail=d("");resending=d(!1);resent=d(!1);passwordValid=v(()=>se.test(this.password()));passwordsMatch=v(()=>this.confirmation().length===0||this.password()===this.confirmation());canSubmit=v(()=>this.lastName().trim().length>0&&this.firstName().trim().length>0&&this.email().trim().length>0&&this.passwordValid()&&this.password()===this.confirmation()&&
1!this.loading());submit(){this.canSubmit()&&(this.loading.set(!0),this.error.set(null),this.auth.register({lastName:this.lastName().trim(),firstName:this.firstName().trim(),email:this.email().trim(),password:this.password(),motif:this.motif().trim()||void 0}).subscribe({next:()=>{this.loading.set(!1),this.submittedEmail.set(this.email().trim()),this.done.set(!0)},error:a=>this.handleError(a)}))}resend(){this.resending()||(this.resending.set(!0),this.auth.resendVerification(this.submittedEmail()).subscribe({next:()=>{this.resending.set(!1),this.resent.set(!0)},error:a=>{if(this.resending.set(!1),a instanceof w&&a.status===429){this.error.set("Trop de demandes. R\xE9essayez dans une heure.");return}this.resent.set(!0)}}))}goToLogin(){this.router.navigate(["/connexion"])}handleError(a){if(this.loading.set(!1),this.password.set(""),this.confirmation.set(""),a instanceof w){if(a.status===429){this.error.set("Trop de demandes depuis cette adresse. R\xE9essayez dans une heure.");return}if(a.status===0){this.error.set("Serveur injoignable. V\xE9rifiez votre connexion.");return}let e=a.error?.message;if(e){this.error.set(Array.isArray(e)?e[0]:e);return}}this.error.set("La cr\xE9ation du compte a \xE9chou\xE9. R\xE9essayez.")}static \u0275fac=function(e){return new(e||r)};static \u0275cmp=y({type:r,selectors:[["app-register-page"]],decls:12,vars:5,consts:[[1,"register"],["aria-labelledby","register-title",1,"card"],[1,"card__head"],["role","img","aria-hidden","true",1,"card__mark"],["id","register-title",1,"card__title"],[1,"card__baseline"],["mode","indeterminate",3,"style"],["severity","error","styleClass","card__message",3,"text"],["mode","indeterminate"],[1,"done"],["aria-hidden","true",1,"pi","pi-envelope","done__icon"],[1,"done__note"],["severity","success","text","Un nouveau lien vient d\u2019\xEAtre envoy\xE9.","styleClass","card__message"],["label","Renvoyer le lien","severity","secondary","size","small","styleClass","link",3,"text","loading"],["label","Aller \xE0 la connexion","icon","pi pi-arrow-right","iconPos","right","styleClass","form__submit",3,"onClick"],["label","Renvoyer le lien","severity","secondary","size","small","styleClass","link",3,"onClick","text","loading"],[1,"form",3,"ngSubmit"],[1,"grid"],[1,"field"],["for","lastName"],["pInputText","","id","lastName","name","lastName","autocomplete","family-name","required","",3,"ngModelChange","ngModel"],[1,"field__hint"],["for","firstName"],["pInputText","","id","firstName","name","firstName","autocomplete","given-name","required","",3,"ngModelChange","ngModel"],["for","email"],["pInputText","","id","email","name","email","type","email","autocomplete","username","autocapitalize","none","spellcheck","false","required","",3,"ngModelChange","ngModel"],["for","password"],["inputId","password","name","password","autocomplete","new-password",3,"ngModelChange","feedback","toggleMask","fluid","ngModel"],["for","confirmation"],["inputId","confirmation","name","confirmation","autocomplete","new-password",3,"ngModelChange","feedback","toggleMask","fluid","ngModel"],[1,"field__hint","field__hint--error"],["for","motif"],["pTextarea","","id","motif","name","motif","rows","3","placeholder","Ex. : j\u2019organise la comp\xE9tition de..., je suis chronom\xE9treur au club de...",3,"ngModelChange","ngModel"],["type","submit","label","Cr\xE9er mon compte","styleClass","form__submit",3,"disabled","loading"],[1,"switch"],[1,"switch__label"],["label","J\u2019ai d\xE9j\xE0 un compte","severity","secondary","styleClass","switch__button","routerLink","/connexion",3,"outlined"]],template:function(e,l){if(e&1&&(n(0,"main",0)(1,"section",1)(2,"header",2),f(3,"span",3),n(4,"h1",4),i(5),t(),n(6,"p",5),i(7),t()(),h(8,ee,1,3,"p-progressbar",6),h(9,te,1,1,"p-message",7),h(10,re,17,2)(11,ae,40,18),t()()),e&2){let o;s(5),M(" ",l.done()?"V\xE9rifiez votre bo\xEEte mail":"Cr\xE9er un compte"," "),s(2),M(" ",l.done()?"Une derni\xE8re \xE9tape avant l\u2019ouverture de votre compte.":"Demandez un acc\xE8s \xE0 l\u2019espace de gestion des comp\xE9titions."," "),s(),x(l.loading()?8:-1),s(),x((o=l.error())?9:-1,o),s(),x(l.done()?10:11)}},dependencies:[q,A,V,R,D,I,j,z,O,F,L,B,U,H,G,$,Z,W,J,Q,K],styles:['@charset "UTF-8";.register[_ngcontent-%COMP%]{min-height:calc(100dvh - 59px);display:grid;place-items:center;padding:3rem 1.5rem;background:linear-gradient(#0b1f3f73,#0b1f3f73),url(/images/login/loginffme.webp) center/cover no-repeat fixed}@media(max-height:50rem){.register[_ngcontent-%COMP%]{background-position:center 35%}}@media(max-width:48rem){.register[_ngcontent-%COMP%]{background-attachment:scroll}}.card[_ngcontent-%COMP%]{view-transition-name:auth-card;width:100%;max-width:520px;padding:2.25rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-float)}.card__head[_ngcontent-%COMP%]{margin-bottom:1.75rem;text-align:center}.card__mark[_ngcontent-%COMP%]{display:block;width:44px;height:44px;margin:0 auto 1rem;background:var(--brand-deep);mask:url(/images/logo-ffme-square.png) center/contain no-repeat;-webkit-mask:url(/images/logo-ffme-square.png) center/contain no-repeat}.card__title[_ngcontent-%COMP%]{margin:0;font-family:var(--font-title);font-size:1.5rem;font-weight:700;color:var(--text-strong)}
1.card__baseline[_ngcontent-%COMP%]{margin:.5rem 0 0;font-size:.875rem;color:var(--text-muted)}[_nghost-%COMP%]     .card__message{display:block;margin-bottom:1.25rem}.form[_ngcontent-%COMP%]{display:grid;gap:1.25rem}.grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1rem;align-items:start}@media(max-width:30rem){.grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.field[_ngcontent-%COMP%]{display:grid;gap:.4rem}.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-size:.8125rem;font-weight:600;color:var(--text-strong)}.field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .field[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%}.field__hint[_ngcontent-%COMP%]{font-size:.75rem;color:var(--text-faint)}.field__hint--error[_ngcontent-%COMP%]{color:var(--red-600, #c0392b)}[_nghost-%COMP%]     .form__submit{width:100%;justify-content:center}[_nghost-%COMP%]     .link.p-button{width:100%;margin-top:.75rem;justify-content:center;font-size:.8125rem}.done[_ngcontent-%COMP%]{display:grid;justify-items:center;gap:.6rem;margin-bottom:1.5rem;text-align:center}.done[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0;font-size:.875rem;color:var(--text-muted)}.done__icon[_ngcontent-%COMP%]{font-size:2.25rem;color:var(--green-600, #2e7d32)}.done__note[_ngcontent-%COMP%]{color:var(--text-faint)}.switch[_ngcontent-%COMP%]{display:grid;justify-items:center;gap:.75rem;margin-top:2rem;padding-top:1.5rem;border-top:1px solid var(--line)}.switch__label[_ngcontent-%COMP%]{font-size:.8125rem;color:var(--text-muted)}[_nghost-%COMP%]     .switch__button.p-button{width:100%;justify-content:center}']})};export{X as RegisterPage};

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.