import{r as p,j as s,d as m}from"./vendor-rThclpOQ.js";import{c as t}from"./utils-8KAaAB9H.js";import{B as l}from"./button-ZcsoqUQn.js";const d=p.forwardRef((e,i)=>{const{loading:a,children:r,iconClass:c,className:n,...o}=e;return s.jsxs(l,{ref:i,type:o.type||"submit",className:t("relative",n),disabled:a,...o,children:[a&&s.jsx(m,{className:t("absolute h-4 w-4 animate-spin",c)}),s.jsx("div",{className:t("opacity-100",a?"opacity-0":"opacity-100"),children:r})]})});d.displayName="LoadingButton";export{d as L};
