"use strict";const t=require("classnames"),o=require("react"),u=require("./InputLabel-b0857594.js"),f=require("react-feather"),l=require("react-select"),d="vertical _vertical_280e3",p="formGroup _formGroup_282a9",G="horizontal _horizontal_40aa9",E="formGroupLabel _formGroupLabel_12e01",v="formGroupError _formGroupError_a0baf",h="formGroupInfo _formGroupInfo_4cdf6",I="formGroupMarginBottom _formGroupMarginBottom_4a78a",n={vertical:d,formGroup:p,horizontal:G,formGroupLabel:E,formGroupError:v,formGroupInfo:h,formGroupMarginBottom:I},N={pseudoMarginBottom:n.formGroupMarginBottom},F=({className:r,children:e,orientation:s="vertical",...a})=>o.createElement("form",{className:t(n[s],r),...a},e),m=r=>o.createElement("div",{className:t("formGroup",n.formGroup,r.className,r.hasError?"hasError":void 0)},r.children),_=r=>r.children?o.createElement("span",{className:t("formGroupError",n.formGroupError,r.className)},r.children):null,C=r=>r.children?o.createElement("span",{className:t("formGroupInfo",n.formGroupInfo,r.className)},r.children):null,b="selectContainer _selectContainer_63e5a",q="error _error_30941",B="fullWidth _fullWidth_7f1ba",c={selectContainer:b,error:q,fullWidth:B},L=r=>o.createElement(l.components.DropdownIndicator,{...r},o.createElement(f.ChevronDown,{className:"icon"})),S=({dataQaProps:r,...e})=>o.createElement("div",{"data-qa-props":r},o.createElement(l.components.Option,{...e}));function g({label:r,errorMessage:e,dataQa:s,isFullWidth:a,...i}){return o.createElement(m,{className:t(c.selectContainer,{[c.error]:!!e,[c.fullWidth]:a}),"data-qa-id":s},r&&o.createElement(u.InputLabel,null,r),o.createElement(l,{...i,components:{DropdownIndicator:L,Option:S},className:t("react-select-container",{[c.fullWidth]:a}),classNamePrefix:"react-select"}),o.createElement(_,null,e))}exports.Form=F;exports.FormGroup=m;exports.FormGroupError=_;exports.FormGroupInfo=C;exports.FormGroupStyles=N;exports.Select=g;
