"use strict";const l=require("classnames"),t=require("react"),d=require("./FormGroup-6ee07b4a.js"),h=require("./InputLabel-b0857594.js"),x=require("react-feather"),i=require("react-select"),y="typography _typography_d799a",g="label _label_57d3e",b="heading _heading_39119",f="centered _centered_42b2e",a={typography:y,label:g,heading:b,centered:f},E={"3xl":"text-3xl","2xl":"text-2xl",xl:"text-xl",lg:"text-lg",md:"text-md",base:"text-base",sm:"text-sm","2sm":"text-2sm",xs:"text-xs"};function q({tag:e,isCentered:r,fontSize:c="base",className:n,children:o,dataQa:m}){const _=e.startsWith("h"),p=e==="p",u=e==="label";return t.createElement(e,{className:l(n,E[c],{[a.centered]:r,[a.heading]:_,[a.label]:u,[a.typography]:p||_}),"data-qa-id":m},o)}const v="selectContainer _selectContainer_4a778",C="error _error_94ff1",N="fullWidth _fullWidth_e82cd",s={selectContainer:v,error:C,fullWidth:N},S=e=>t.createElement(i.components.DropdownIndicator,{...e},t.createElement(x.ChevronDown,{className:"icon"})),W=({dataQaProps:e,...r})=>t.createElement("div",{"data-qa-props":e},t.createElement(i.components.Option,{...r}));function I({label:e,errorMessage:r,dataQa:c,isFullWidth:n,...o}){return t.createElement(d.FormGroup,{className:l(s.selectContainer,{[s.error]:!!r,[s.fullWidth]:n}),"data-qa-id":c},e&&t.createElement(h.InputLabel,null,e),t.createElement(i,{...o,components:{DropdownIndicator:S,Option:W},className:l("react-select-container",{[s.fullWidth]:n}),classNamePrefix:"react-select"}),t.createElement(d.FormGroupError,null,r))}exports.Select=I;exports.Typography=q;
