1import{j as e,ao as h,D as c,C as u,A as p,o as j}from"./ui-DVBlfA5z.js";import{r as a,L as f}from"./vendor-BBdBhp03.js";import{m as w,B as o}from"./admin-dBc4hj6A.js";import"./supabase-CwXC4dzy.js";const l={version:"1.0.0",fileSize:"~25 MB",downloadUrl:"/downloads/permutons-ci.apk"};function k(){const[d,m]=a.useState(!1),[s,x]=a.useState(3);a.useEffect(()=>{const t=setInterval(()=>{x(r=>r<=1?(clearInterval(t),n(),0):r-1)},1e3);return()=>clearInterval(t)},[]);const n=()=>{m(!0);const t=document.createElement("a");t.href=l.downloadUrl,t.download="permutons-ci.apk",t.setAttribute("type","application/vnd.android.package-archive"),document.body.appendChild(t),t.click(),document.body.removeChild(t)},i=()=>{n()};return e.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-dark-green-900 via-dark-green-800 to-dark-green-950 flex items-center justify-center p-4",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",children:e.jsx("div",{className:"pattern-dots h-full w-full"})}),e.jsxs(w.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},transition:{duration:.5},className:"relative z-10 max-w-md w-full text-center",children:[e.jsxs("div",{className:"mb-8",children:[e.jsx("div",{className:"mx-auto mb-4 w-20 h-20 bg-white/10 rounded-2xl flex items-center justify-center backdrop-blur-sm",children:e.jsx(h,{className:"w-10 h-10 text-accent-gold"})}),e.jsx("h1",{className:"text-3xl font-bold text-white mb-2",children:"Permutons CI"}),e.jsx("p",{className:"text-white/70",children:"Application mobile Android"})]}),e.jsxs("div",{className:"bg-white/10 backdrop-blur-md rounded-2xl p-8 border border-white/20",children:[d?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("div",{className:"w-24 h-24 mx-auto bg-green-500/20 rounded-full flex items-center justify-center mb-4",children:e.jsx(u,{className:"w-12 h-12 text-green-400"})}),e.jsx("p",{className:"text-white text-lg font-semibold mb-2",children:"Téléchargement en cours !"}),e.jsx("p",{className:"text-white/70 text-sm",children:"Si le téléchargement ne démarre pas, cliquez ci-dessous"})]}),e.jsx(o,{variant:"premium",size:"lg",onClick:i,leftIcon:e.jsx(c,{className:"w-5 h-5"}),className:"w-full mb-4",children:"Relancer le téléchargement"}),e.jsxs("div",{className:"bg-white/5 rounded-xl p-4 text-left mb-4",children:[e.jsx("p",{className:"text-white/90 text-sm font-semibold mb-2",children:"ð± Après le téléchargement :"}),e.jsxs("ol",{className:"text-white/70 text-sm space-y-1 list-decimal list-inside",children:[e.jsx("li",{children:"Ouvrez le fichier APK téléchargé"}),e.jsx("li",{children:"Autorisez l'installation si demandé"}),e.jsx("li",{children:"Installez et ouvrez l'application"})]})]})]}):e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"mb-6",children:[e.jsx("div",{className:"w-24 h-24 mx-auto bg-accent-gold/20 rounded-full flex items-center justify-center mb-4",children:e.jsx("span",{className:"text-5xl font-bold text-accent-gold",children:s})}),e.jsxs("p",{className:"text-white text-lg",children:["Téléchargement dans ",s," seconde",s>1?"s":"","..."]})]}),e.jsx(o,{variant:"premium",size:"lg",onClick:i,leftIcon:e.jsx(c,{className:"w-5 h-5"}),className:"w-full",children:"Télécharger maintenant"})]}),e.jsxs("div",{className:"flex justify-center gap-4 text-xs text-white/50 mt-4",children:[e.jsxs("span",{children:["Version ",l.version]}),e.jsx("span",{children:"â¢"}),e.jsx("span",{children:l.fileSize})]})]}),e.jsxs("div",{className:"mt-6 space-y-3",children:[e.jsxs(f,{to:"/telecharger",className:"text-white/70 hover:text-white text-sm flex items-center justify-center gap-2 transition-colors",children:[e.jsx(p,{className:"w-4 h-4"}),"Voir les instructions détaillées"]}),e.jsxs("a",{href:"https://wa.me/2250545703076",target:"_blank",rel:"noopener noreferrer",className:"text-accent-gold hover:text-accent-gold/80 text-sm flex items-center justify-center gap-2 transition-colors",children:[e.jsx(j,{className:"w-4 h-4"}),"Besoin d'aide ? Contactez-nous"]})]}),e.jsx("p",{className:"mt-8 text-white/40 text-xs",children:"© 2025 Permutons CI - Application officielle"})]})]})}export{k as DirectDownloadPage,k as default};
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.