import { __exports as a } from "../../../../../../../../_virtual/validate.js";
import { __require as s } from "../definitions/index.js";
var d;
function p() {
  if (d)
    return a;
  d = 1, Object.defineProperty(a, "__esModule", {
    value: !0
  }), a.default = f, a.validateChild = l, a.validateField = u;
  var n = s();
  function f(t, r, i) {
    if (!t)
      return;
    const e = n.NODE_FIELDS[t.type];
    if (!e)
      return;
    const o = e[r];
    u(t, r, i, o), l(t, r, i);
  }
  function u(t, r, i, e) {
    !(e != null && e.validate) || e.optional && i == null || e.validate(t, r, i);
  }
  function l(t, r, i) {
    if (i == null)
      return;
    const e = n.NODE_PARENT_VALIDATIONS[i.type];
    !e || e(t, r, i);
  }
  return a;
}
export {
  p as __require
};
//# sourceMappingURL=validate.js.map
