var N=Object.defineProperty,f=Object.defineProperties;var B=Object.getOwnPropertyDescriptors;var e=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable;var p=(a,t,s)=>t in a?N(a,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[t]=s,d=(a,t)=>{for(var s in t||(t={}))l.call(t,s)&&p(a,s,t[s]);if(e)for(var s of e(t))m.call(t,s)&&p(a,s,t[s]);return a},u=(a,t)=>f(a,B(t));var x=(a,t)=>{var s={};for(var o in a)l.call(a,o)&&t.indexOf(o)<0&&(s[o]=a[o]);if(a!=null&&e)for(var o of e(a))t.indexOf(o)<0&&m.call(a,o)&&(s[o]=a[o]);return s};import{r as L,j as i,aV as b}from"./react-vendor-xYZnmIII.js";import{B as g,c as r}from"./ui-components-CQM92IK3.js";const h=L.forwardRef((a,t)=>{const n=a,{loading:s,children:o,iconClass:y,className:j}=n,c=x(n,["loading","children","iconClass","className"]);return i.jsxs(g,u(d({ref:t,type:c.type||"submit",className:r("relative",j),disabled:s},c),{children:[s&&i.jsx(b,{className:r("absolute h-4 w-4 animate-spin",y)}),i.jsx("div",{className:r("opacity-100",s?"opacity-0":"opacity-100"),children:o})]}))});h.displayName="LoadingButton";export{h as L};
