1import{r as i,j as f,bC as m,bt as b,k as h}from"./index-BwlpUMBf.js";import{c as v}from"./index-CGJMGMsf.js";var x=Symbol.for("react.lazy"),d=m[" use ".trim().toString()];function E(e){return typeof e=="object"&&e!==null&&"then"in e}function y(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===x&&"_payload"in e&&E(e._payload)}function C(e){const r=_(e),n=i.forwardRef((o,t)=>{let{children:s,...a}=o;y(s)&&typeof d=="function"&&(s=d(s._payload));const l=i.Children.toArray(s),c=l.find(R);if(c){const u=c.props.children,g=l.map(p=>p===c?i.Children.count(u)>1?i.Children.only(null):i.isValidElement(u)?u.props.children:null:p);return f.jsx(r,{...a,ref:t,children:i.isValidElement(u)?i.cloneElement(u,void 0,g):null})}return f.jsx(r,{...a,ref:t,children:s})});return n.displayName=`${e}.Slot`,n}var S=C("Slot");function _(e){const r=i.forwardRef((n,o)=>{let{children:t,...s}=n;if(y(t)&&typeof d=="function"&&(t=d(t._payload)),i.isValidElement(t)){const a=V(t),l=j(s,t.props);return t.type!==i.Fragment&&(l.ref=o?b(o,a):a),i.cloneElement(t,l)}return i.Children.count(t)>1?i.Children.only(null):null});return r.displayName=`${e}.SlotClone`,r}var w=Symbol("radix.slottable");function R(e){return i.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===w}function j(e,r){const n={...r};for(const o in r){const t=e[o],s=r[o];/^on[A-Z]/.test(o)?t&&s?n[o]=(...l)=>{const c=s(...l);return t(...l),c}:t&&(n[o]=t):o==="style"?n[o]={...t,...s}:o==="className"&&(n[o]=[t,s].filter(Boolean).join(" "))}return{...e,...n}}function V(e){let r=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=r&&"isReactWarning"in r&&r.isReactWarning;return n?e.ref:(r=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=r&&"isReactWarning"in r&&r.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}const P=v("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium cursor-pointer transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{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"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),A=i.forwardRef(({className:e,variant:r,size:n,asChild:o=!1,...t},s)=>{const a=o?S:"button";return f.jsx(a,{className:h(P({variant:r,size:n,className:e})),ref:s,...t})});A.displayName="Button";export{A as B,P as b,C as c};
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.