import{j as C,a as k,o as c,I as z,d as V,c as v,w as N,L as B,u as h,b as f,D as P}from"./m2W8DxR4.js";import{a as j,c as D,P as S}from"./DT-hKSom.js";const x=a=>typeof a=="boolean"?`${a}`:a===0?"0":a,m=j,I=(a,t)=>e=>{var l;if((t==null?void 0:t.variants)==null)return m(a,e==null?void 0:e.class,e==null?void 0:e.className);const{variants:i,defaultVariants:o}=t,p=Object.keys(i).map(s=>{const r=e==null?void 0:e[s],d=o==null?void 0:o[s];if(r===null)return null;const n=x(r)||x(d);return i[s][n]}),g=e&&Object.entries(e).reduce((s,r)=>{let[d,n]=r;return n===void 0||(s[d]=n),s},{}),w=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((s,r)=>{let{class:d,className:n,..._}=r;return Object.entries(_).every(y=>{let[b,u]=y;return Array.isArray(u)?u.includes({...o,...g}[b]):{...o,...g}[b]===u})?[...s,d,n]:s},[]);return m(a,p,w,e==null?void 0:e.class,e==null?void 0:e.className)},O={},$={width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function A(a,t){return c(),k("svg",$,t[0]||(t[0]=[z('<g clip-path="url(#clip0_436_9596)"><path d="M6.61448 0.14032C5.7012 5.10118 4.96083 5.8415 0 6.75478C4.96087 7.66806 5.7012 8.40839 6.61448 13.3692C7.52776 8.40839 8.26809 7.66806 13.229 6.75478C8.26809 5.8415 7.52772 5.10118 6.61448 0.14032Z" fill="currentColor"></path><path d="M13.7935 9.44659C13.2127 12.6015 12.7418 13.0724 9.58691 13.6531C12.7418 14.2339 13.2127 14.7048 13.7935 17.8597C14.3742 14.7048 14.8451 14.2339 18 13.6531C14.8451 13.0724 14.3743 12.6015 13.7935 9.44659Z" fill="currentColor"></path></g><defs><clipPath id="clip0_436_9596"><rect width="18" height="18" rx="8" fill="currentColor"></rect></clipPath></defs>',2)]))}const M=C(O,[["render",A]]),K=V({__name:"Button",props:{variant:{},size:{},class:{},asChild:{type:Boolean},as:{default:"button"}},setup(a){const t=a;return(e,l)=>{const i=M;return c(),v(h(S),{"data-slot":"button",as:e.as,"as-child":e.asChild,class:B(h(D)(h(Z)({variant:e.variant,size:e.size}),t.class))},{default:N(()=>[e.variant==="wsDefault"?(c(),v(i,{key:0,class:"size-[18px]"})):f("",!0),P(e.$slots,"default"),e.variant==="wsDefault"?(c(),v(i,{key:1,class:"size-[18px]"})):f("",!0)]),_:3},8,["as","as-child","class"])}}}),Z=I("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-accent text-light-text shadow-xs hover:bg-accent/90 cursor-pointer",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-gray-100 hover:text-dark-text dark:hover:text-light-text dark:hover:bg-gray-800",link:"text-primary underline-offset-4 hover:underline",wsDefault:"bg-accent text-light-text shadow-xs text-base lg:text-lg font-semibold hover:bg-accent/90",wsIcon:"bg-transparent shadow-xs hover:bg-accent/90 border-surface-border border-1",wsGradient:"bg-transparent shadow-xs hover:bg-accent/90 border-surface-border border-1 ws-gradient-border",wsPrev:"bg-transparent shadow-xs text-accent border-1 border-accent cursor-pointer"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9",wsDefault:"w-fit h-12 px-4 lg:px-8 has-[>svg]:px-6 lg:w-[100%]",wsIcon:"size-10",stepBtn:"h-11 px-4 py-2 has-[>svg]:px-3"}},defaultVariants:{variant:"default",size:"default"}});export{K as _,Z as b};
