console.warn([`MUI:Thevalueprovidedto${componentName}isinvalid.`,`Noneoftheoptionsmatchwith\`${missingValue.length>1?JSON.stringify(missingValue):JSON.stringify(missingValue[0])}\`.`,'You can use the `isOptionEqualToValue` prop to customize the equality test.'].join('\n'));
console.error([`MUI:Unabletofindtheinputelement.Itwasresolvedto${inputRef.current}whileanHTMLInputElementwasexpected.`,`Instead,${componentName}expectsaninputelement.`,'',componentName==='useAutocomplete'?'Make sure you have binded getInputProps correctly and that the normal ref/effect resolutions order is guaranteed.':'Make sure you have customized the input component correctly.'].join('\n'));
console.warn(`MUI:Theoptionsprovidedcombinedwiththe\`groupBy\`methodof${componentName}returnsduplicatedheaders.`,'You can solve the issue by sorting the options with the output of `groupBy`.');
warn=true;
}
indexBy.set(group,true);
}
acc.push({
key:index,
index,
group,
options:[option]
});
}
returnacc;
},[]);
}
if(disabledProp&&focused){
handleBlur();
}
return{
getRootProps:(other={})=>_extends({
'aria-owns':listboxAvailable?`${id}-listbox`:null
},other,{
onKeyDown:handleKeyDown(other),
onMouseDown:handleMouseDown,
onClick:handleClick
}),
getInputLabelProps:()=>({
id:`${id}-label`,
htmlFor:id
}),
getInputProps:()=>({
id,
value:inputValue,
onBlur:handleBlur,
onFocus:handleFocus,
onChange:handleInputChange,
onMouseDown:handleInputMouseDown,
// if open then this is handled imperativeley so don't let react override