import e from"../../node_modules/lodash/isArray.js";import o from"../../node_modules/lodash/isNull.js";import t from"react";import r from"../../node_modules/react-select/dist/react-select.esm.js";import a from"./ClearIndicator.js";import l 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:y}){return t.createElement(r,{"aria-label":s,components:{ClearIndicator:a,DropdownIndicator:l,MultiValueRemove:i},getOptionLabel:e=>u?.(e)??e.toString(),getOptionValue:e=>u?.(e)??e.toString(),inputId:d,isClearable:!0,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:y})}export{s as default};
//# sourceMappingURL=ObjectTypeahead.js.map
