'use strict';

var vue = require('vue');
var messages = require('./utils/messages.cjs');

const FormContextKey = Symbol("formContextKey");
function useProvideForm(state) {
  vue.provide(FormContextKey, state);
}
function useInjectForm() {
  return vue.inject(FormContextKey, {
    name: vue.computed(() => void 0),
    labelAlign: vue.computed(() => "right"),
    vertical: vue.computed(() => false),
    addField: (_eventKey, _field) => {
    },
    removeField: (_eventKey) => {
    },
    model: vue.computed(() => void 0),
    rules: vue.computed(() => void 0),
    colon: vue.computed(() => void 0),
    labelWrap: vue.computed(() => void 0),
    labelCol: vue.computed(() => void 0),
    requiredMark: vue.computed(() => false),
    validateTrigger: vue.computed(() => void 0),
    onValidate: () => {
    },
    validateMessages: vue.computed(() => messages.defaultValidateMessages)
  });
}
const FormItemPrefixContextKey = Symbol(
  "formItemPrefixContextKey"
);
function useProvideFormItemPrefix(state) {
  vue.provide(FormItemPrefixContextKey, state);
}
function useInjectFormItemPrefix() {
  return vue.inject(FormItemPrefixContextKey, {
    prefixCls: vue.computed(() => "")
  });
}

exports.FormContextKey = FormContextKey;
exports.FormItemPrefixContextKey = FormItemPrefixContextKey;
exports.useInjectForm = useInjectForm;
exports.useInjectFormItemPrefix = useInjectFormItemPrefix;
exports.useProvideForm = useProvideForm;
exports.useProvideFormItemPrefix = useProvideFormItemPrefix;
//# sourceMappingURL=context.cjs.map
