import{s as e}from"./chunk-Bj-mKKzh.js";import{t}from"./react-CClhXMB2.js";import{n,t as r}from"./bundle-mjs-BDE2gWbQ.js";import{t as i}from"./jsx-runtime-CyI9ICYU.js";var a=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,o=n,s=(e,t)=>n=>{if(t?.variants==null)return o(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,s=Object.keys(r).map(e=>{let t=n?.[e],o=i?.[e];if(t===null)return null;let s=a(t)||a(o);return r[e][s]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return o(e,s,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...c}[t]):{...i,...c}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function c(...e){return r(n(e))}function l(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function u(e){return e.startsWith(`chatId:`)?e.slice(7):e}var d=e(t(),1),f=i(),p=s(`touch-manipulation inline-flex items-center justify-center whitespace-nowrap cursor-pointer rounded-md text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none`,{variants:{variant:{default:`bg-primary text-primary-foreground disabled:bg-primary/50 disabled:text-primary-foreground/90 hover:bg-primary/90`,juicy:`bg-logo text-primary-foreground disabled:text-primary-foreground/50 hover:bg-logo/90`,destructive:`bg-destructive/80  dark:text-white`,outline:`border disabled:bg-transparent disabled:text-foreground/50 border-inpu disabled:border-input/90 bg-card hover:bg-muted hover:text-accent-foreground`,secondary:`bg-transparent border border-border text-secondary-foreground hover:text-secondary-foreground/60 disabled:text-secondary-foreground/50`,ghost:`hover:bg-accent dark:hover:bg-card hover:text-accent-foreground text-muted-foreground disabled:text-muted-foreground/50 border border-border/0 hover:border-border`,link:`text-primary disabled:text-primary/50 underline-offset-4 hover:underline`,none:``},size:{default:`h-10 px-4 rounded-full py-2`,sm:`h-9 rounded-full px-3`,lg:`h-11 rounded-full px-8`,icon:`h-9 w-9 rounded-full`,"icon-sm":`h-5.5 w-5.5 rounded-md`}},defaultVariants:{variant:`default`,size:`default`}}),m=d.forwardRef(({className:e,variant:t,size:n,...r},i)=>(0,f.jsx)(`button`,{className:c(p({variant:t,size:n,className:e})),ref:i,...r}));m.displayName=`Button`;export{u as i,c as n,l as r,m as t};