1import{c as e,n as t,t as n}from"./jsx-runtime-DQYatRE7.js";import{t as r}from"./compiler-runtime-B8YkK2wH.js";import{t as i}from"./dist-Cc9pgO6F.js";import{t as a}from"./utils-ChdawfNN.js";var o=r(),s=e(t(),1);function c(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():c(e[t],null)}}}}function u(...e){return s.useCallback(l(...e),e)}var d=e(n(),1),f=Symbol.for(`react.lazy`),p=s.use;function m(e){return typeof e==`object`&&!!e&&`then`in e}function h(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===f&&`_payload`in e&&m(e._payload)}function g(e){let t=v(e),n=s.forwardRef((e,n)=>{let{children:r,...i}=e;h(r)&&typeof p==`function`&&(r=p(r._payload));let a=s.Children.toArray(r),o=a.find(b);if(o){let e=o.props.children,r=a.map(t=>t===o?s.Children.count(e)>1?s.Children.only(null):s.isValidElement(e)?e.props.children:null:t);return(0,d.jsx)(t,{...i,ref:n,children:s.isValidElement(e)?s.cloneElement(e,void 0,r):null})}return(0,d.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}var _=g(`Slot`);function v(e){let t=s.forwardRef((e,t)=>{let{children:n,...r}=e;if(h(n)&&typeof p==`function`&&(n=p(n._payload)),s.isValidElement(n)){let e=S(n),i=x(r,n.props);return n.type!==s.Fragment&&(i.ref=t?l(t,e):e),s.cloneElement(n,i)}return s.Children.count(n)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol(`radix.slottable`);function b(e){return s.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===y}function x(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}function S(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var C=i(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors border border-transparent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none disabled:bg-gray-300 disabled:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:opacity-90`,destructive:`bg-destructive text-destructive-foreground hover:opacity-90`,outline:`border border-input bg-surface hover:bg-primary-lighter hover:text-primary-lighter-foreground`,tertiary:`border border-gray-300 bg-white text-primary hover:bg-white/48 hover:border-primary transition-colors duration-150 hover:bg-primary-lighter hover:border-primary aria-expanded:border-primary aria-expanded:bg-primary-lighter`,secondary:`bg-secondary text-secondary-foreground hover:opacity-90`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-10 px-4 py-2`,sm:`h-8 rounded-md px-3`,xs:`h-5 rounded-sm px-1`,lg:`h-11 rounded-md px-8`,icon:`h-8 w-8`}},defaultVariants:{variant:`default`,size:`default`}}),w=s.forwardRef((e,t)=>{let n=(0,o.c)(15),r,i,s,c,l;n[0]===e?(r=n[1],i=n[2],s=n[3],c=n[4],l=n[5]):({className:r,variant:l,size:s,asChild:c,...i}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=s,n[4]=c,n[5]=l);let u=c!==void 0&&c?_:`button`,f;n[6]!==r||n[7]!==s||n[8]!==l?(f=a(C({variant:l,size:s,className:r})),n[6]=r,n[7]=s,n[8]=l,n[9]=f):f=n[9];let p;return n[10]!==u||n[11]!==i||n[12]!==t||n[13]!==f?(p=(0,d.jsx)(u,{className:f,ref:t,...i}),n[10]=u,n[11]=i,n[12]=t,n[13]=f,n[14]=p):p=n[14],p});w.displayName=`Button`;export{l as a,g as i,C as n,u as o,_ as r,w as t};
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.