import{r as n,j as e}from"./vendor-react.js";import{q as b,r as h,s as w,u as i,v as l,w as p,x as c,y as m,z as f,A as u,B as x,L as g}from"./vendor-ui.js";import{c as d}from"./button.js";import{b as N,o as v,p as y}from"./vendor-icons.js";const E=b,q=h,j=n.forwardRef(({className:a,inset:t,children:s,...o},r)=>e.jsxs(c,{ref:r,className:d("focus:bg-accent data-[state=open]:bg-accent flex cursor-default gap-2 rounded-xs px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",a),...o,children:[s,e.jsx(N,{className:"ml-auto"})]}));j.displayName=c.displayName;const R=n.forwardRef(({className:a,...t},s)=>e.jsx(m,{ref:s,className:d("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",a),...t}));R.displayName=m.displayName;const D=n.forwardRef(({className:a,sideOffset:t=4,...s},o)=>e.jsx(w,{children:e.jsx(i,{ref:o,sideOffset:t,className:d("bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 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),...s})}));D.displayName=i.displayName;const M=n.forwardRef(({className:a,inset:t,...s},o)=>e.jsx(p,{ref:o,className:d("focus:bg-accent focus:text-accent-foreground relative flex cursor-default gap-2 rounded-xs px-2 py-1.5 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",a),...s}));M.displayName=p.displayName;const z=n.forwardRef(({className:a,children:t,checked:s,...o},r)=>e.jsxs(f,{ref:r,className:d("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",a),checked:s,...o,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(u,{children:e.jsx(v,{className:"h-4 w-4"})})}),t]}));z.displayName=f.displayName;const C=n.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(x,{ref:o,className:d("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",a),...s,children:[e.jsx("span",{className:"pointer-events-none absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(u,{children:e.jsx(y,{className:"h-2 w-2 fill-current"})})}),t]}));C.displayName=x.displayName;const I=n.forwardRef(({className:a,inset:t,...s},o)=>e.jsx(g,{ref:o,className:d("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));I.displayName=g.displayName;const k=n.forwardRef(({className:a,...t},s)=>e.jsx(l,{ref:s,className:d("-mx-1 my-1 h-px bg-muted",a),...t}));k.displayName=l.displayName;export{E as D,q as a,D as b,k as c,M as d};
