import{a as e,j as r}from"./index-7ac36ca7.js";import{r as a}from"./vendor-1f283eff.js";const s=a.memo(({size:a="md",message:s="Loading...",fullScreen:n=!1,className:t=""})=>{const o={sm:"h-6 w-6",md:"h-12 w-12",lg:"h-16 w-16",xl:"h-20 w-20"};return e("div",{className:`${n?"min-h-screen bg-gradient-to-br from-orange-50 to-red-50 flex items-center justify-center":"flex items-center justify-center h-64"} ${t}`,children:r("div",{className:"text-center space-y-4",children:[r("div",{className:"relative",children:[e("div",{className:`${o[a]} border-4 border-orange-200 border-t-orange-600 rounded-full animate-spin mx-auto`}),e("div",{className:`absolute inset-0 ${o[a]} border-4 border-transparent border-r-red-400 rounded-full animate-spin animate-reverse mx-auto`})]}),s&&r("div",{className:"space-y-2",children:[e("h3",{className:"text-lg font-semibold text-gray-700",children:s}),r("div",{className:"flex justify-center space-x-1",children:[e("div",{className:"w-2 h-2 bg-orange-500 rounded-full animate-bounce"}),e("div",{className:"w-2 h-2 bg-red-500 rounded-full animate-bounce",style:{animationDelay:"0.1s"}}),e("div",{className:"w-2 h-2 bg-yellow-500 rounded-full animate-bounce",style:{animationDelay:"0.2s"}})]})]})]})})});s.displayName="LoadingSpinner";const n=a.memo(({error:a,onRetry:s,title:n="Something went wrong",className:t=""})=>e("div",{className:`flex items-center justify-center h-64 ${t}`,children:r("div",{className:"text-center space-y-4 max-w-md",children:[e("div",{className:"w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mx-auto animate-pulse",children:e("svg",{className:"w-8 h-8 text-red-600",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),r("div",{className:"space-y-2",children:[e("h3",{className:"text-lg font-semibold text-gray-900",children:n}),e("p",{className:"text-gray-600 text-sm",children:a})]}),s&&e("button",{onClick:s,className:"bg-gradient-to-r from-red-500 to-orange-500 text-white font-semibold py-3 px-6 rounded-xl hover:from-red-600 hover:to-orange-600 transition-all duration-200 transform hover:scale-[1.02] focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2",children:"Try Again"})]})}));n.displayName="ErrorDisplay";export{n as E,s as L};
