import e from"../../node_modules/lodash/isArray.js";import o from"../../node_modules/lodash/isNull.js";import t from"react";import a from"../../node_modules/react-select/dist/react-select.esm.js";import l from"./ClearIndicator.js";import r from"./DropdownIndicator.js";import i from"./MultiValueRemove.js";import{reactSelectStyles as n}from"./TypeaheadStyles.js";function s({"aria-label":s,disabled:m=!1,id:d,isLoading:p,labelKey:u,menuPortalTarget:c,multiple:f=!1,onBlur:g,onChange:b,options:h,placeholder:j,selected:C,isClearable:y}){return t.createElement(a,{"aria-label":s,components:{ClearIndicator:l,DropdownIndicator:r,MultiValueRemove:i},getOptionLabel:e=>u?.(e)??e.toString(),getOptionValue:e=>u?.(e)??e.toString(),inputId:d,isClearable:y,isDisabled:m,isLoading:p,isMulti:f,menuPlacement:"auto",menuPortalTarget:c,onBlur:g,onChange:t=>{b?.(e(t)?t:o(t)?[]:[t])},options:[{options:h}],placeholder:j,styles:n,value:C})}export{s as default};
//# sourceMappingURL=ObjectTypeahead.js.map
