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