1import{r as x,j as e}from"./jsx-runtime-Dt5Dsy05.js";import{c as h,S as g}from"./index-CvJcFPCO.js";import{c as p}from"./ui-BM_CldAA.js";import{L as v}from"./spinner-BWsIDBeP.js";const y=h("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",black:"bg-black text-white shadow-sm hover:bg-black/70"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",xl:"h-12 rounded-md px-10 text-lg",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),w=x.forwardRef(({className:i,variant:d,size:c,asChild:l=!1,icon:t=null,rIcon:r=null,loading:o=!1,children:u,...s},m)=>{const f=l?g:"button";let n=null;t&&(n=e.jsx(t,{size:14,className:"me-2"}));let a=null;r&&(a=e.jsx(r,{size:14,className:"ms-2"}));const b=o?e.jsx(v,{}):e.jsxs(e.Fragment,{children:[n,u,a]});return o&&(s.disabled=!0),e.jsx(f,{className:p(y({variant:d,size:c,className:i})),ref:m,...s,children:b})});w.displayName="Button";export{w as B,y as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.