import{r as k}from"./index-NdkWRN8K.js";import{K as q}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{u as v,M as K}from"./useAutocomplete-BRetTkpF.js";import{j as N}from"./jsx-runtime-CnH95YSl.js";import{A as $}from"./Autocomplete-CxtGbb8j.js";const w=({ariaDescribedBy:r,defaultValue:a,errorMessage:s,errorMessageList:l,getIsOptionEqualToValue:i,getOptionLabel:p,hasMultipleChoices:o,hint:m,HintLinkComponent:u,id:c,inputValue:d,isCustomValueAllowed:x,isDisabled:t,isFullWidth:n=!1,isLoading:f,isOptional:A=!1,isReadOnly:O,isVirtualized:T=!1,label:b,name:g,noOptionsText:z,onBlur:V,onChange:j,onFocus:E,onInputChange:I,options:L,testId:P,translate:S,value:y})=>{const{t:e}=q(),{inputValueProp:B,isVirtualizedRef:C,renderInput:M,valueProps:R}=v({ariaDescribedBy:r,defaultValue:a,errorMessage:s,errorMessageList:l,hasMultipleChoices:o,hint:m,HintLinkComponent:u,inputValue:d,isFullWidth:n,isOptional:A,isVirtualized:T,label:b,name:g,testId:P,value:y});return N.jsx($,{...R,...B,...C.current&&{ListboxComponent:K},"aria-disabled":t,clearText:e("clear.text"),closeText:e("close.text"),disableCloseOnSelect:o,disabled:t,filterSelectedOptions:!0,freeSolo:x,fullWidth:n,getOptionLabel:p,id:c,isOptionEqualToValue:i,loading:f,multiple:o,noOptionsText:z||e("autocomplete.nooptions"),onBlur:V,onChange:j,onFocus:E,onInputChange:I,openText:e("open.text"),options:L,readOnly:O,renderInput:M,translate:S})},F=k.memo(w);F.displayName="Autocomplete";export{F as M};
