import{r as o,j as e}from"./vendor-react.js";import{D as y,E as N,G as d,H as g,J as j,K as n,M as b,N as i,O as S,Q as v,U as c,W as m,X as p,Y as f}from"./vendor-ui.js";import{c as r}from"./button.js";import{C as x,o as R,q as C}from"./vendor-icons.js";const L=y,q=N,I=o.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(d,{ref:l,className:r("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",t),...a,children:[s,e.jsx(g,{asChild:!0,children:e.jsx(x,{className:"h-4 w-4 opacity-50"})})]}));I.displayName=d.displayName;const u=o.forwardRef(({className:t,...s},a)=>e.jsx(c,{ref:a,className:r("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(C,{className:"h-4 w-4"})}));u.displayName=c.displayName;const h=o.forwardRef(({className:t,...s},a)=>e.jsx(m,{ref:a,className:r("flex cursor-default items-center justify-center py-1",t),...s,children:e.jsx(x,{className:"h-4 w-4"})}));h.displayName=m.displayName;const B=o.forwardRef(({className:t,children:s,position:a="popper",...l},w)=>e.jsx(j,{children:e.jsxs(n,{ref:w,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:a,...l,children:[e.jsx(u,{}),e.jsx(b,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:s}),e.jsx(h,{})]})}));B.displayName=n.displayName;const D=o.forwardRef(({className:t,...s},a)=>e.jsx(p,{ref:a,className:r("px-2 py-1.5 text-sm font-semibold",t),...s}));D.displayName=p.displayName;const U=o.forwardRef(({className:t,children:s,...a},l)=>e.jsxs(i,{ref:l,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t),...a,children:[e.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(S,{children:e.jsx(R,{className:"h-4 w-4"})})}),e.jsx(v,{children:s})]}));U.displayName=i.displayName;const z=o.forwardRef(({className:t,...s},a)=>e.jsx(f,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",t),...s}));z.displayName=f.displayName;export{L as S,I as a,q as b,B as c,U as d};
