import{r as j,_ as x,R as a,c as S,P as l}from"./index-sga-FecS.js";import{b as o}from"./CFormInput-DmJ_XO-V.js";const f=j.forwardRef((s,m)=>{var{children:n,className:p,feedback:v,feedbackInvalid:k,feedbackValid:g,floatingClassName:y,floatingLabel:N,htmlSize:C,id:i,invalid:t,label:u,options:d,size:r,text:z,tooltipFeedback:F,valid:c}=s,b=x(s,["children","className","feedback","feedbackInvalid","feedbackValid","floatingClassName","floatingLabel","htmlSize","id","invalid","label","options","size","text","tooltipFeedback","valid"]);return a.createElement(o,{describedby:b["aria-describedby"],feedback:v,feedbackInvalid:k,feedbackValid:g,floatingClassName:y,floatingLabel:N,id:i,invalid:t,label:u,text:z,tooltipFeedback:F,valid:c},a.createElement("select",Object.assign({id:i,className:S("form-select",{[`form-select-${r}`]:r,"is-invalid":t,"is-valid":c},p),size:C},b,{ref:m}),d?d.map((e,h)=>a.createElement("option",Object.assign({},typeof e=="object"&&e.disabled&&{disabled:e.disabled},typeof e=="object"&&e.value!==void 0&&{value:e.value},{key:h}),typeof e=="string"?e:e.label)):n))});f.propTypes=Object.assign({className:l.string,htmlSize:l.number,options:l.array},o.propTypes);f.displayName="CFormSelect";export{f as C};
