var n=Object.create;var p=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var k=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var o in t)p(e,o,{get:t[o],enumerable:!0})},f=(e,t,o,c)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of k(t))!T.call(e,r)&&r!==o&&p(e,r,{get:()=>t[r],enumerable:!(c=h(t,r))||c.enumerable});return e};var C=(e,t,o)=>(o=e!=null?n(x(e)):{},f(t||!e||!e.__esModule?p(o,"default",{value:e,enumerable:!0}):o,e)),R=e=>f(p({},"__esModule",{value:!0}),e);var u={};v(u,{default:()=>s});module.exports=R(u);var i=C(require("react"),1),l=require("@chakra-ui/react"),a=require("react/jsx-runtime"),$=({label:e,options:t,error:o,...c},r)=>(0,a.jsxs)("div",{children:[(0,a.jsx)(l.Text,{children:e}),(0,a.jsx)(l.Select,{placeholder:"Select option",...c,ref:r,children:t?.map(({label:S,value:d},m)=>(0,a.jsx)("option",{value:d,children:S},`${d}_${m}`))}),o&&(0,a.jsx)(l.Text,{color:"red.300",children:o})]}),s=i.default.forwardRef($);
