import{r as a,j as v,b as S}from"./index-DEjMkqlI.js";import{d as V,c as j}from"./client-DXODAVLv.js";function b(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function C(...e){return n=>{let t=!1;const i=e.map(r=>{const o=b(r,n);return!t&&typeof o=="function"&&(t=!0),o});if(t)return()=>{for(let r=0;r<i.length;r++){const o=i[r];typeof o=="function"?o():b(e[r],null)}}}}function F(...e){return a.useCallback(C(...e),e)}var R=Symbol.for("react.lazy"),m=S[" use ".trim().toString()];function N(e){return typeof e=="object"&&e!==null&&"then"in e}function _(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===R&&"_payload"in e&&N(e._payload)}function k(e){const n=P(e),t=a.forwardRef((i,r)=>{let{children:o,...u}=i;_(o)&&typeof m=="function"&&(o=m(o._payload));const l=a.Children.toArray(o),f=l.find($);if(f){const s=f.props.children,d=l.map(c=>c===f?a.Children.count(s)>1?a.Children.only(null):a.isValidElement(s)?s.props.children:null:c);return v.jsx(n,{...u,ref:r,children:a.isValidElement(s)?a.cloneElement(s,void 0,d):null})}return v.jsx(n,{...u,ref:r,children:o})});return t.displayName=`${e}.Slot`,t}var O=k("Slot");function P(e){const n=a.forwardRef((t,i)=>{let{children:r,...o}=t;if(_(r)&&typeof m=="function"&&(r=m(r._payload)),a.isValidElement(r)){const u=W(r),l=T(o,r.props);return r.type!==a.Fragment&&(l.ref=i?C(i,u):u),a.cloneElement(r,l)}return a.Children.count(r)>1?a.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var A=Symbol("radix.slottable");function $(e){return a.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===A}function T(e,n){const t={...n};for(const i in n){const r=e[i],o=n[i];/^on[A-Z]/.test(i)?r&&o?t[i]=(...l)=>{const f=o(...l);return r(...l),f}:r&&(t[i]=r):i==="style"?t[i]={...r,...o}:i==="className"&&(t[i]=[r,o].filter(Boolean).join(" "))}return{...e,...t}}function W(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}const h=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,x=V,z=(e,n)=>t=>{var i;if(n?.variants==null)return x(e,t?.class,t?.className);const{variants:r,defaultVariants:o}=n,u=Object.keys(r).map(s=>{const d=t?.[s],c=o?.[s];if(d===null)return null;const p=h(d)||h(c);return r[s][p]}),l=t&&Object.entries(t).reduce((s,d)=>{let[c,p]=d;return p===void 0||(s[c]=p),s},{}),f=n==null||(i=n.compoundVariants)===null||i===void 0?void 0:i.reduce((s,d)=>{let{class:c,className:p,...w}=d;return Object.entries(w).every(E=>{let[g,y]=E;return Array.isArray(y)?y.includes({...o,...l}[g]):{...o,...l}[g]===y})?[...s,c,p]:s},[]);return x(e,u,f,t?.class,t?.className)},B=z("inline-flex items-center justify-center gap-2 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 [&_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-transparent hover:bg-accent/10 hover:text-accent",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent/10 hover:text-accent",link:"text-primary underline-offset-4 hover:underline",hero:"bg-gradient-gold text-primary-foreground font-semibold tracking-wide uppercase shadow-gold hover:shadow-deep transition-all duration-500 hover:scale-[1.02]",gold:"bg-primary text-primary-foreground font-medium tracking-wide hover:bg-gold-soft transition-colors",goldOutline:"border border-gold/60 bg-transparent text-gold tracking-wide uppercase text-xs font-medium hover:bg-gold hover:text-primary-foreground transition-all duration-300"},size:{default:"h-10 px-5 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-12 rounded-md px-10 text-sm",xl:"h-14 rounded-md px-12 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),I=a.forwardRef(({className:e,variant:n,size:t,asChild:i=!1,...r},o)=>{const u=i?O:"button";return v.jsx(u,{className:j(B({variant:n,size:t,className:e})),ref:o,...r})});I.displayName="Button";export{I as B,k as a,z as b,C as c,F as u};
