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