"use client";
'use strict';

var VIIRIBF3 = require('./VIIRIBF3.cjs');
var _62UHHO2X = require('./62UHHO2X.cjs');
var FTXTWCCT = require('./FTXTWCCT.cjs');
var _4CMBR7SL = require('./4CMBR7SL.cjs');
var S43UC3DV = require('./S43UC3DV.cjs');
var YV4JVR4I = require('./YV4JVR4I.cjs');
var ABQUS43J = require('./ABQUS43J.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');
var menuStore = require('../../../../../../@ariakit_core@0.4.15/node_modules/@ariakit/core/esm/menu/menu-store.cjs');

function useMenuStoreProps(store, update, props) {
  ABQUS43J.useUpdateEffect(update, [props.combobox, props.parent, props.menubar]);
  YV4JVR4I.useStoreProps(store, props, "values", "setValues");
  return Object.assign(
    FTXTWCCT.useHovercardStoreProps(
      _4CMBR7SL.useCompositeStoreProps(store, update, props),
      update,
      props
    ),
    {
      combobox: props.combobox,
      parent: props.parent,
      menubar: props.menubar
    }
  );
}
function useMenuStore(props = {}) {
  const parent = VIIRIBF3.useMenuContext();
  const menubar = _62UHHO2X.useMenubarContext();
  const combobox = S43UC3DV.useComboboxProviderContext();
  props = _3YLGPPWQ.__spreadProps(_3YLGPPWQ.__spreadValues({}, props), {
    parent: props.parent !== void 0 ? props.parent : parent,
    menubar: props.menubar !== void 0 ? props.menubar : menubar,
    combobox: props.combobox !== void 0 ? props.combobox : combobox
  });
  const [store, update] = YV4JVR4I.useStore(menuStore.createMenuStore, props);
  return useMenuStoreProps(store, update, props);
}

exports.useMenuStore = useMenuStore;
exports.useMenuStoreProps = useMenuStoreProps;
//# sourceMappingURL=U2E5GZTC.cjs.map
