PageSourceSearch

https://investirsimple.com/assets/listedattenteacademie-DBw05IUn.js

js investirsimple.com collected 2026-10-02 06:59:04 UTC 4,135 bytes, 1 lines download raw bytes

1import{c as F,j as e,k as C,r as s,l as A}from"./index-DND8j0iF.js";import{S as x}from"./ScrollReveal-DBaxc0e4.js";import{N as S,s as w}from"./NotARobotCheckbox-DJa85jOX.js";import{L as B}from"./loader-circle-BlWSVS4q.js";import"./index-BfjrIY4E.js";const D=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],h=F("bell",D),k="'Playfair Display', serif",f="'Inter', sans-serif";function E(){const g=C(),[n,b]=s.useState(""),[i,N]=s.useState(""),[r,j]=s.useState(""),[c,d]=s.useState(!1),[m,a]=s.useState(null),[L,R]=s.useState(!1),[u,y]=s.useState(null),l="w-full px-4 py-3.5 rounded-md border focus:outline-none focus:ring-2 focus:ring-[#C6A96B] transition",o="bg-[#141b24] border-[#2A2F36] text-[#F5F5F3] placeholder:text-[#7a8290]";async function v(t){if(t.preventDefault(),a(null),!r.trim()){a("Merci d'indiquer ton numéro de téléphone.");return}if(!u){a('Merci de cocher "Je ne suis pas un robot".');return}d(!0);try{const p=await w({data:{list:"academie-attente",firstName:n,email:i,phone:r.trim()||void 0,recaptchaToken:u,utm:A()??void 0}});p.success?g({to:"/merci",search:{prenom:n}}):a(p.error)}catch{a("Une erreur est survenue. Réessaie dans un instant.")}finally{d(!1)}}return e.jsxs("form",{onSubmit:v,className:"space-y-4",style:{fontFamily:f},children:[e.jsxs("div",{children:[e.jsx("label",{className:"sr-only",htmlFor:"firstName",children:"Prénom"}),e.jsx("input",{id:"firstName",type:"text",required:!0,autoComplete:"given-name",placeholder:"Prénom",value:n,onChange:t=>b(t.target.value),className:`${l} ${o}`})]}),e.jsxs("div",{children:[e.jsx("label",{className:"sr-only",htmlFor:"email",children:"Email"}),e.jsx("input",{id:"email",type:"email",required:!0,autoComplete:"email",placeholder:"Ton adresse e-mail",value:i,onChange:t=>N(t.target.value),className:`${l} ${o}`})]}),e.jsxs("div",{children:[e.jsx("label",{className:"sr-only",htmlFor:"phone",children:"Numéro de téléphone"}),e.jsx("input",{id:"phone",type:"tel",required:!0,autoComplete:"tel",placeholder:"Ton numéro de téléphone",value:r,onChange:t=>j(t.target.value),className:`${l} ${o}`})]}),m&&e.jsx("p",{className:"text-sm text-[#e57373]",role:"alert",children:m}),e.jsx(S,{onChange:y,variant:"dark"}),e.jsx("button",{type:"submit",disabled:c,className:"group w-full inline-flex items-center justify-center gap-3 bg-[#C6A96B] text-[#0B0F14] font-bold text-base px-8 py-4 rounded-md hover:bg-[#d4ba80] transition-all disabled:opacity-60 disabled:cursor-not-allowed",children:c?e.jsxs(e.Fragment,{children:[e.jsx(B,{className:"w-5 h-5 animate-spin"}),"Envoi…"]}):e.jsxs(e.Fragment,{children:[e.jsx(h,{className:"w-5 h-5 transition-transform group-hover:-translate-y-0.5"}),"Être prévenu en priorité"]})}),e.jsx("p",{className:"text-xs text-[#D1D5DB] text-center pt-2",children:"Données protégées, désinscription en un clic."})]})}function M(){return e.jsx("main",{className:"bg-[#0B0F14] min-h-screen flex items-center",children:e.jsxs("div",{className:"container mx-auto px-6 py-20 max-w-xl",children:[e.jsx(x,{children:e.jsxs("div",{className:"text-center mb-10",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 mb-5 rounded-full bg-[#C6A96B]/15 text-[#C6A96B] text-xs uppercase tracking-widest font-body",children:[e.jsx(h,{className:"w-3.5 h-3.5"})," Liste d'attente"]}),e.jsxs("h1",{className:"text-3xl md:text-4xl lg:text-5xl text-[#F5F5F3] mb-5 leading-tight",style:{fontFamily:k,fontWeight:500},children:["Les portes de l'Académie sont",e.jsx("span",{className:"text-[#C6A96B]",children:" fermées"})]}),e.jsx("p",{className:"text-base md:text-lg text-[#D1D5DB] max-w-lg mx-auto leading-relaxed",style:{fontFamily:f},children:"Pour être prévenu en priorité de la prochaine ouverture et ne pas rater ta place, laisse-moi ton prénom et ton email."})]})}),e.jsx(x,{delay:.1,children:e.jsx("div",{className:"bg-[#141b24] border border-[#2A2F36] rounded-2xl p-6 md:p-8 shadow-2xl",children:e.jsx(E,{})})})]})})}export{M as component};

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.