import{C as e,D as t,E as n,S as r,T as i,_ as a,at as o,b as s,et as c,g as l,h as u,v as d,w as f,x as p,y as m}from"./vendor-ui-CWUk2ulb.js";import{T as h}from"./format-CshN6yEB.js";import{n as g,t as _}from"./utils-XFKvwlFT.js";var v=g(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),y=o(),b=t;function x({className:e,...t}){return(0,y.jsx)(l,{"data-slot":`select-group`,className:_(`scroll-my-1 p-1`,e),...t})}function S({className:e,...t}){return(0,y.jsx)(i,{"data-slot":`select-value`,className:_(`flex flex-1 text-left`,e),...t})}function C({className:e,size:t=`default`,children:r,...i}){return(0,y.jsxs)(n,{"data-slot":`select-trigger`,"data-size":t,className:_(`flex w-fit min-w-0 items-center justify-between gap-1.5 rounded-[var(--miravo-radius-stadium-sm)] border border-input bg-input/30 px-2.5 text-xs whitespace-nowrap transition-colors outline-none select-none hover:bg-input/50 focus-visible:border-primary/35 focus-visible:ring-2 focus-visible:ring-primary/22 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[var(--miravo-radius-stadium-sm)] *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...i,children:[r,(0,y.jsx)(f,{render:(0,y.jsx)(v,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function w({className:t,children:n,side:i=`bottom`,sideOffset:a=6,align:o=`center`,alignOffset:c=0,alignItemWithTrigger:l=!1,...u}){return(0,y.jsx)(e,{children:(0,y.jsx)(r,{side:i,sideOffset:a,align:o,alignOffset:c,alignItemWithTrigger:l,className:`isolate z-50`,children:(0,y.jsx)(p,{"data-slot":`select-content`,"data-align-trigger":l,className:_(`relative isolate z-50 max-h-(--available-height) w-(--anchor-width) min-w-36 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-[var(--miravo-radius-tight)] bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[align-trigger=true]:animate-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:data-open:animate-none motion-reduce:data-closed:animate-none motion-reduce:data-open:duration-0 motion-reduce:data-closed:duration-0`,t),...u,children:(0,y.jsx)(s,{children:n})})})})}function T({className:e,...t}){return(0,y.jsx)(u,{"data-slot":`select-label`,className:_(`px-2 py-1.5 text-xs text-muted-foreground`,e),...t})}var E=`relative flex w-full cursor-pointer items-center gap-1.5 rounded-[var(--miravo-radius-tight)] py-1 pr-8 pl-1.5 text-xs text-muted-foreground outline-hidden select-none data-[highlighted]:bg-sidebar-accent data-[highlighted]:text-sidebar-accent-foreground not-data-[variant=destructive]:data-[highlighted]:**:text-sidebar-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2`;function D({className:e,children:t,...n}){return(0,y.jsxs)(m,{"data-slot":`select-item`,className:_(E,e),...n,children:[(0,y.jsx)(a,{"data-slot":`select-item-text`,className:`flex min-w-0 flex-1 gap-2 whitespace-nowrap`,children:t}),(0,y.jsx)(d,{render:(0,y.jsx)(`span`,{className:`pointer-events-none absolute right-2 flex size-4 items-center justify-center`}),children:(0,y.jsx)(h,{className:`pointer-events-none`})})]})}function O({className:e,...t}){return(0,y.jsx)(c,{"data-slot":`select-separator`,className:_(`pointer-events-none -mx-1 my-1 h-px bg-border`,e),...t})}export{T as a,S as c,D as i,v as l,w as n,O as o,x as r,C as s,b as t};