import{j as e}from"./index-CgQG7qql.js";function n({clearPatterns:t,files:c,onConfirm:r,onCancel:i}){return e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60",children:e.jsxs("div",{className:"bg-cc-card border border-cc-border rounded-lg shadow-xl max-w-md w-full mx-4 overflow-hidden",children:[e.jsxs("div",{className:"px-5 pt-5 pb-3",children:[e.jsxs("div",{className:"flex items-center gap-2 text-amber-400 mb-2",children:[e.jsx("svg",{viewBox:"0 0 20 20",fill:"currentColor",className:"w-5 h-5 shrink-0",children:e.jsx("path",{fillRule:"evenodd",d:"M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 6a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 6zm0 9a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})}),e.jsx("h3",{className:"text-sm font-semibold text-cc-fg",children:"Initialize Workspace"})]}),e.jsx("p",{className:"text-xs text-cc-muted",children:"This will clear existing files and create new ones. This action cannot be undone."})]}),e.jsxs("div",{className:"px-5 pb-4 space-y-3",children:[t.length>0&&e.jsxs("div",{children:[e.jsx("div",{className:"text-[11px] font-medium text-red-400 mb-1",children:"Files to clear:"}),e.jsx("div",{className:"bg-cc-bg/60 rounded p-2 text-xs font-mono text-cc-muted space-y-0.5 max-h-24 overflow-y-auto",children:t.map(s=>e.jsx("div",{children:s},s))})]}),c.length>0&&e.jsxs("div",{children:[e.jsxs("div",{className:"text-[11px] font-medium text-green-400 mb-1",children:["Files to create (",c.length,"):"]}),e.jsx("div",{className:"bg-cc-bg/60 rounded p-2 text-xs font-mono text-cc-muted space-y-0.5 max-h-32 overflow-y-auto",children:c.map(s=>e.jsx("div",{children:s.path},s.path))})]})]}),e.jsxs("div",{className:"flex justify-end gap-2 px-5 py-3 border-t border-cc-border bg-cc-bg/30",children:[e.jsx("button",{onClick:i,className:"px-3 py-1.5 text-xs text-cc-muted hover:text-cc-fg bg-cc-bg hover:bg-cc-hover rounded transition-colors cursor-pointer",children:"Cancel"}),e.jsx("button",{onClick:r,className:"px-3 py-1.5 text-xs text-white bg-amber-600 hover:bg-amber-500 rounded transition-colors cursor-pointer",children:"Initialize"})]})]})})}export{n as S};
