PageSourceSearch

https://cyberafricaforum.com/build/assets/Newsletter-BgO_ctSq.js

js cyberafricaforum.com collected 2026-10-04 21:44:39 UTC 3,459 bytes, 11 lines download raw bytes

1import{r as l,m as f,j as e}from"./app-DpdIv14O.js";import{c as n}from"./createLucideIcon-DvLpwOfE.js";/**
2 * @license lucide-react v1.49.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const o={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};o.node;const g=n(o);/**
7 * @license lucide-react v1.49.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */const m={name:"circle-check-big",size:24,node:[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],aliases:["check-circle"]};m.node;const j=n(m),b=()=>{const[s,r]=l.useState("idle"),[c,i]=l.useState(null),{data:a,setData:x,post:d,processing:u,reset:p}=f({email:""});l.useEffect(()=>{if(s!=="idle"){const t=setTimeout(()=>{r("idle"),i("")},5e3);return()=>clearTimeout(t)}},[s]);function h(t){if(t.preventDefault(),!a.email||!a.email.includes("@")||!a.email.includes(".")){r("error"),i("Veuillez entrer une adresse email valide.");return}d("/",{preserveScroll:!0,onSuccess:()=>{p(),r("success"),i(e.jsxs(e.Fragment,{children:["Merci pour votre inscription!",e.jsx("br",{}),"Un email de confirmation a été envoyé."]}))},onError:()=>{r("error"),i("Oups, une erreur s'est produite lors de l'envoie de votre message. Merci de reessayer.")}})}return e.jsx(e.Fragment,{children:e.jsxs("section",{className:"relative overflow-hidden bg-[#933A83] py-28",children:[e.jsx("img",{src:"/image/A58I3354.jpg",className:"absolute inset-0 w-full h-full object-cover object-bottom"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-[#933A83] to-[#933A83]/85"}),e.jsxs("div",{className:"relative mx-auto max-w-[1200px] px-10 text-white",children:[e.jsx("h2",{className:"max-w-[380px] text-3xl lg:text-[38px] leading-tight font-extrabold",children:"Abonnez-vous à notre newsletter"}),e.jsx("p",{className:"mt-5 max-w-[420px] text-[13px] leading-relaxed",children:"Recevez directement les actualités du Cyber Africa Forum, les temps forts de l’événement et nos contenus exclusifs."}),e.jsxs("form",{className:"mt-7 flex w-fit",onSubmit:h,children:[e.jsx("input",{type:"email",value:a.email,onChange:t=>x("email",t.target.value),className:"w-[220px] bg-white/15 px-4 py-3 text-[13px] text-white placeholder-white/80 outline-none",placeholder:"Votre adresse email",required:!0}),e.jsxs("button",{type:"submit",disabled:u,className:"flex items-center gap-2 bg-white px-5 py-3 text-[13px] text-[#9b3390] hover:cursor-pointer hover:bg-[#9b3390] hover:text-white",children:[e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",className:"h-4 w-4",children:[e.jsx("rect",{x:"3",y:"5",width:"18",height:"14",stroke:"currentColor",strokeWidth:"1.8"}),e.jsx("path",{d:"M3 6l9 7 9-7",stroke:"currentColor",strokeWidth:"1.8"})]}),"S'inscrire"]}),s==="success"&&e.jsxs("div",{className:"mt-3 flex items-center justify-center text-sm text-green-400",children:[e.jsx(j,{className:"mr-1 h-4 w-4"}),e.jsx("span",{children:c})]}),s==="error"&&e.jsxs("div",{className:"mt-3 flex items-center justify-center text-sm text-red-400",children:[e.jsx(g,{className:"mr-1 h-4 w-4"}),e.jsx("span",{children:c})]})]})]})]})})};export{b as N};

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.