import{j as o}from"./app-DC5MhnUn.js";import{c as w}from"./compiler-runtime-x4HYykYJ.js";function z(f){const e=w.c(18);let t,c,s,i,a,l,n;e[0]!==f?({variant:i,size:a,children:t,isLoading:l,disabled:c,className:n,...s}=f,e[0]=f,e[1]=t,e[2]=c,e[3]=s,e[4]=i,e[5]=a,e[6]=l,e[7]=n):(t=e[1],c=e[2],s=e[3],i=e[4],a=e[5],l=e[6],n=e[7]);const x=i===void 0?"primary":i,p=a===void 0?"md":a,d=l===void 0?!1:l,y=n===void 0?"":n;let b;e[8]===Symbol.for("react.memo_cache_sentinel")?(b={primary:"bg-[#d4af37] text-white hover:bg-[#b8941f] focus-visible:outline-[#d4af37] dark:bg-[#b8941f] dark:hover:bg-[#9a7d15] dark:focus-visible:outline-[#b8941f]",secondary:"bg-gray-200 text-gray-900 hover:bg-gray-300 focus-visible:outline-gray-500 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-600",danger:"bg-red-600 text-white hover:bg-red-700 focus-visible:outline-red-600 dark:bg-red-700 dark:hover:bg-red-800",ghost:"bg-transparent text-gray-700 hover:bg-gray-100 focus-visible:outline-gray-500 dark:text-gray-300 dark:hover:bg-gray-700"},e[8]=b):b=e[8];const h=b;let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g={sm:"px-3 py-1.5 text-sm",md:"px-4 py-2 text-sm",lg:"px-6 py-3 text-base"},e[9]=g):g=e[9];const k=g,u=`inline-flex items-center justify-center rounded-md font-semibold transition-colors focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 disabled:opacity-50 disabled:cursor-not-allowed ${h[x]} ${k[p]} ${y}`,v=c||d;let r;e[10]!==t||e[11]!==d?(r=d?o.jsxs(o.Fragment,{children:[o.jsxs("svg",{className:"mr-2 h-4 w-4 animate-spin",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[o.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),o.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Memproses..."]}):t,e[10]=t,e[11]=d,e[12]=r):r=e[12];let m;return e[13]!==s||e[14]!==u||e[15]!==v||e[16]!==r?(m=o.jsx("button",{className:u,disabled:v,...s,children:r}),e[13]=s,e[14]=u,e[15]=v,e[16]=r,e[17]=m):m=e[17],m}export{z as B};
