'use strict';

let warned = {};
function warning(valid, message) {
  if (process.env.NODE_ENV !== "production" && !valid && console !== void 0)
    console.error(`Warning: ${message}`);
}
function note(valid, message) {
  if (process.env.NODE_ENV !== "production" && !valid && console !== void 0)
    console.warn(`Note: ${message}`);
}
function resetWarned() {
  warned = {};
}
function call(method, valid, message) {
  if (!valid && !warned[message]) {
    method(false, message);
    warned[message] = true;
  }
}
function warningOnce(valid, message) {
  call(warning, valid, message);
}
function noteOnce(valid, message) {
  call(note, valid, message);
}
exports.devWarning = () => {
};
if (process.env.NODE_ENV !== "production") {
  exports.devWarning = (valid, component, message) => {
    warningOnce(valid, `[antdv-ui: ${component}] ${message}`);
    if (process.env.NODE_ENV === "test")
      resetWarned();
  };
}
function warningFn(valid, component, message) {
  warningOnce(valid, `[ant-design-vue: ${component}] ${message}`);
}
;

exports.call = call;
exports.note = note;
exports.noteOnce = noteOnce;
exports.resetWarned = resetWarned;
exports.warning = warning;
exports.warningFn = warningFn;
exports.warningOnce = warningOnce;
//# sourceMappingURL=log.cjs.map
