"use client";
'use strict';

var _3XAVFTCA = require('./3XAVFTCA.cjs');
var O2PQ2652 = require('./O2PQ2652.cjs');
var _4CMBR7SL = require('./4CMBR7SL.cjs');
var YV4JVR4I = require('./YV4JVR4I.cjs');
var ABQUS43J = require('./ABQUS43J.cjs');
var _3YLGPPWQ = require('./3YLGPPWQ.cjs');
var comboboxStore = require('../../../../../../@ariakit_core@0.4.15/node_modules/@ariakit/core/esm/combobox/combobox-store.cjs');

function useComboboxStoreOptions(props) {
  const tag = _3XAVFTCA.useTagContext();
  props = _3YLGPPWQ.__spreadProps(_3YLGPPWQ.__spreadValues({}, props), {
    tag: props.tag !== void 0 ? props.tag : tag
  });
  return _4CMBR7SL.useCompositeStoreOptions(props);
}
function useComboboxStoreProps(store, update, props) {
  ABQUS43J.useUpdateEffect(update, [props.tag]);
  YV4JVR4I.useStoreProps(store, props, "value", "setValue");
  YV4JVR4I.useStoreProps(store, props, "selectedValue", "setSelectedValue");
  YV4JVR4I.useStoreProps(store, props, "resetValueOnHide");
  YV4JVR4I.useStoreProps(store, props, "resetValueOnSelect");
  return Object.assign(
    _4CMBR7SL.useCompositeStoreProps(
      O2PQ2652.usePopoverStoreProps(store, update, props),
      update,
      props
    ),
    { tag: props.tag }
  );
}
function useComboboxStore(props = {}) {
  props = useComboboxStoreOptions(props);
  const [store, update] = YV4JVR4I.useStore(comboboxStore.createComboboxStore, props);
  return useComboboxStoreProps(store, update, props);
}

exports.useComboboxStore = useComboboxStore;
exports.useComboboxStoreOptions = useComboboxStoreOptions;
exports.useComboboxStoreProps = useComboboxStoreProps;
//# sourceMappingURL=246BTTYR.cjs.map
