import"./CWj6FrbW.js";import{p as f,f as p,b as v,c as h,g as x,k as _,d as z,r as C}from"./DOPisAOl.js";import{a as B}from"./Xc3_nZLd.js";import{a as k}from"./CGcWBEH0.js";import{b as w}from"./CEk_xq3X.js";import{p as r,r as N}from"./DO9Exidn.js";var j=p("<button><!></button>");function H(o,e){f(e,!0);let n=r(e,"variant",3,"secondary"),i=r(e,"size",3,"medium"),c=r(e,"type",3,"button"),a=r(e,"disabled",3,!1),g=r(e,"class",3,""),s=r(e,"el",15),b=N(e,["$$slots","$$events","$$legacy","variant","size","type","disabled","class","children","el"]);const d={primary:"bg-green-700 hover:bg-green-500 focus:bg-green-500 active:bg-green-500",secondary:"border border-rc-green-600 font-medium bg-rc-green-500 hover:bg-rc-green-600 focus:bg-rc-green-200 focus:outline-none active:bg-rc-green-200",outlined:"border border-rc-gray-500 bg-rc-gray-900 font-semibold hover:bg-rc-gray-700 hover:border-rc-gray-400 focus:outline-none focus:ring-0 focus:border-rc-gray-400 active:border-rc-gray-400",ghost:"bg-transparent hover:text-gray-100 focus:text-gray-100 active:text-gray-100"},l={big:"px-6 py-3 text-lg",medium:"px-4 py-2 text-base",small:"px-2 py-1 text-sm"};let u=_(()=>`text-gray-200
    rounded
    transition-colors
    ${d[n()]}
    ${l[i()]}
    ${a()?"opacity-50 cursor-not-allowed":"cursor-pointer"}
    ${g()}
  `.trim());var t=j();k(t,()=>({type:c(),class:x(u),disabled:a(),...b}));var m=z(t);B(m,()=>e.children),C(t),w(t,y=>s(y),()=>s()),v(o,t),h()}export{H as B};
