import{j as e}from"./main-yCyLqVcf.js";import{m as l}from"./proxy-DDs1xMqj.js";import"./index-qgskiNTF.js";function x({plan:s,prompt:i,onDecision:a,readOnly:t=!1}){return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 backdrop-blur-sm",children:e.jsxs(l.div,{className:"hud-panel w-full max-w-2xl rounded-3xl p-8",initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},children:[e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsx("h2",{className:"font-display text-xl text-neon-cyan",children:"Approval Required"}),e.jsx("span",{className:"text-xs uppercase tracking-[0.3em] text-neon-cyan/60",children:"Critical"})]}),e.jsx("p",{className:"mt-4 text-sm text-white",children:i}),t&&e.jsx("p",{className:"mt-2 text-xs uppercase tracking-[0.3em] text-amber-200",children:"Viewer mode — validation désactivée"}),e.jsxs("div",{className:"mt-6 rounded-2xl border border-neon-cyan/15 bg-bg-800/70 p-4",children:[e.jsx("p",{className:"text-xs uppercase tracking-[0.3em] text-neon-cyan/60",children:"Plan Summary"}),e.jsx("p",{className:"mt-2 text-sm text-white",children:s.summary}),e.jsx("ul",{className:"mt-4 space-y-2 text-sm text-muted",children:s.steps.map(r=>e.jsxs("li",{children:["• ",r]},r))}),e.jsxs("div",{className:"mt-4 text-xs uppercase tracking-[0.3em] text-rose-300",children:["Risk: ",s.risk.level]})]}),e.jsxs("div",{className:"mt-6 flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>a(!1),disabled:t,className:"rounded-2xl border border-rose-400/40 bg-rose-500/10 px-5 py-2 text-xs uppercase tracking-[0.3em] text-rose-200 disabled:cursor-not-allowed disabled:opacity-60",children:"Refuser"}),e.jsx("button",{onClick:()=>a(!0),disabled:t,className:"rounded-2xl border border-neon-cyan/50 bg-neon-cyan/15 px-5 py-2 text-xs uppercase tracking-[0.3em] text-neon-cyan disabled:cursor-not-allowed disabled:opacity-60",children:"Confirmer"})]})]})})}export{x as ApprovalModal};
