'use strict';

var vue = require('vue');

const DisabledContextKey = Symbol("DisabledContextKey");
function useInjectDisabled() {
  return vue.inject(DisabledContextKey, vue.ref(void 0));
}
function useProviderDisabled(disabled) {
  const parentDisabled = useInjectDisabled();
  vue.provide(
    DisabledContextKey,
    vue.computed(() => {
      var _a;
      return (_a = disabled.value) != null ? _a : parentDisabled.value;
    })
  );
  return disabled;
}

exports.useInjectDisabled = useInjectDisabled;
exports.useProviderDisabled = useProviderDisabled;
//# sourceMappingURL=disabledContext.cjs.map
