import{j as e}from"./chunk-UIGDSWPH-BhuNDbxn.js";import{M as b}from"./index-ju2wdkG8.js";function y({isOpen:i,onClose:t,title:n,message:d,variant:l="info",buttonText:c="Okay, Got It",isConfirmation:o=!1,onConfirm:x,confirmText:h="Okay, Got It",cancelText:m="Cancel",isLoading:a=!1,itemsList:s=[]}){const u={success:e.jsxs("div",{className:"relative flex items-center justify-center w-24 h-24 mx-auto mb-6",children:[e.jsx("div",{className:"absolute inset-0 bg-success-100 rounded-full",style:{clipPath:"polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%)",width:"80px",height:"80px"}}),e.jsx("div",{className:"relative bg-success-600 rounded-full w-16 h-16 flex items-center justify-center",children:e.jsx("svg",{className:"w-8 h-8 text-white",fill:"none",stroke:"currentColor",strokeWidth:3,viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})})]}),info:e.jsxs("div",{className:"relative flex items-center justify-center w-24 h-24 mx-auto mb-6",children:[e.jsx("div",{className:"absolute inset-0 bg-blue-light-100 rounded-full blur-2xl opacity-50",style:{width:"90px",height:"90px",transform:"scale(1.1)"}}),e.jsx("div",{className:"relative bg-blue-light-500 rounded-full w-16 h-16 flex items-center justify-center shadow-lg",children:e.jsx("span",{className:"text-white text-4xl font-bold leading-none",children:"i"})})]}),warning:e.jsxs("div",{className:"relative flex items-center justify-center w-24 h-24 mx-auto mb-6",children:[e.jsx("div",{className:"absolute inset-0 bg-warning-100 rounded-full blur-2xl opacity-50",style:{width:"90px",height:"90px",transform:"scale(1.1)"}}),e.jsx("div",{className:"relative bg-white rounded-full w-14 h-14 flex items-center justify-center shadow-lg",children:e.jsx("div",{className:"bg-warning-500 rounded-full w-16 h-16 flex items-center justify-center absolute -inset-1",children:e.jsx("span",{className:"text-white text-4xl font-bold leading-none",children:"!"})})})]}),danger:e.jsxs("div",{className:"relative flex items-center justify-center w-24 h-24 mx-auto mb-6",children:[e.jsx("div",{className:"absolute inset-0 bg-error-100 rounded-full blur-2xl opacity-50",style:{width:"90px",height:"90px",transform:"scale(1.1)"}}),e.jsx("div",{className:"relative bg-error-100 rounded-full w-16 h-16 flex items-center justify-center",children:e.jsx("svg",{className:"w-10 h-10 text-error-500",fill:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{fillRule:"evenodd",d:"M18.364 5.636a1 1 0 010 1.414L13.414 12l4.95 4.95a1 1 0 11-1.414 1.414L12 13.414l-4.95 4.95a1 1 0 01-1.414-1.414L10.586 12 5.636 7.05a1 1 0 011.414-1.414L12 10.586l4.95-4.95a1 1 0 011.414 0z",clipRule:"evenodd"})})})]})},r={success:"bg-success-500 hover:bg-success-600 text-white",info:"bg-blue-light-500 hover:bg-blue-light-600 text-white",warning:"bg-warning-500 hover:bg-warning-600 text-white",danger:"bg-error-500 hover:bg-error-600 text-white"};return e.jsx(b,{isOpen:i,onClose:t,className:"max-w-md",children:e.jsxs("div",{className:"px-8 py-10 text-center",children:[u[l],e.jsx("h2",{className:"text-2xl font-bold text-gray-800 dark:text-white mb-4",children:n}),s.length>0&&e.jsx("div",{className:"mb-6",children:e.jsxs("ul",{className:"text-left text-gray-700 dark:text-gray-300 text-sm space-y-1 max-w-md mx-auto",children:[s.slice(0,5).map((g,f)=>e.jsxs("li",{className:"italic",children:["• ",g]},f)),s.length>5&&e.jsxs("li",{className:"text-gray-500 dark:text-gray-400 italic",children:["... and ",s.length-5," more"]})]})}),e.jsx("p",{className:"text-gray-600 dark:text-gray-400 mb-8 text-sm leading-relaxed",children:d}),o?e.jsxs("div",{className:"flex justify-center gap-3",children:[e.jsx("button",{onClick:t,disabled:a,className:"px-6 py-3 rounded-lg font-medium text-sm transition-colors shadow-sm bg-gray-200 hover:bg-gray-300 text-gray-700 dark:bg-gray-700 dark:hover:bg-gray-600 dark:text-gray-300 disabled:opacity-50 disabled:cursor-not-allowed",children:m}),e.jsx("button",{onClick:x,disabled:a,className:`px-6 py-3 rounded-lg font-medium text-sm transition-colors shadow-sm ${r[l]} disabled:opacity-50 disabled:cursor-not-allowed`,children:a?"Processing...":h})]}):e.jsx("div",{className:"flex justify-center",children:e.jsx("button",{onClick:t,className:`px-6 py-3 rounded-lg font-medium text-sm transition-colors shadow-sm ${r[l]}`,children:c})})]})})}export{y as A};