import{ki as e}from"./vendor-frame-CwiylG4Y.js";import{n as s,t as l}from"./cdd8ed5c5-CmEmDfI8.js";import{nl as t,rl as a}from"./shared-4-6CEyRAHb.js";var d=e();function i({placeholder:e="Select",options:i,selected:c,onSelect:r,id:o,label:n,align:m,side:b,className:h,textClassName:p,checkboxStyle:x="round",scroll:j,size:k,type:y,disabled:S,testId:f,matchWidth:u}){const N=a({id:o,label:n});return(0,d.jsxs)(d.Fragment,{children:[n&&(0,d.jsx)(t,{label:n,id:N}),(0,d.jsx)(s,{id:N,label:c?.label||e,align:m,side:b,className:h,scroll:j,size:k,type:y,disabled:S,testId:f,matchWidth:u,children:i.map(e=>{const{key:s,label:t,description:a,disabled:i}=e;return(0,d.jsx)(l,{label:t,description:a,onSelect:()=>r(e),checkboxStyle:x,textClassName:p,closeOnSelect:!0,checked:c?.key===s,size:k,disabled:i},s)})})]})}export{i as t};