import e from"../../@babel/runtime/helpers/esm/objectSpread2.js";import n from"../../@babel/runtime/helpers/esm/slicedToArray.js";import o from"../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import{useState as u,useCallback as t}from"react";var a=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function i(i){var p=i.defaultInputValue,l=void 0===p?"":p,r=i.defaultMenuIsOpen,f=void 0!==r&&r,s=i.defaultValue,d=void 0===s?null:s,m=i.inputValue,v=i.menuIsOpen,c=i.onChange,h=i.onInputChange,I=i.onMenuClose,C=i.onMenuOpen,b=i.value,M=o(i,a),O=u(void 0!==m?m:l),V=n(O,2),g=V[0],j=V[1],y=u(void 0!==v?v:f),x=n(y,2),A=x[0],P=x[1],S=u(void 0!==b?b:d),T=n(S,2),W=T[0],k=T[1],q=t((function(e,n){"function"==typeof c&&c(e,n),k(e)}),[c]),w=t((function(e,n){var o;"function"==typeof h&&(o=h(e,n)),j(void 0!==o?o:e)}),[h]),z=t((function(){"function"==typeof C&&C(),P(!0)}),[C]),B=t((function(){"function"==typeof I&&I(),P(!1)}),[I]),D=void 0!==m?m:g,E=void 0!==v?v:A,F=void 0!==b?b:W;return e(e({},M),{},{inputValue:D,menuIsOpen:E,onChange:q,onInputChange:w,onMenuClose:B,onMenuOpen:z,value:F})}export{i as u};
//# sourceMappingURL=useStateManager-7e1e8489.esm.js.map
