import { __exports as a } from "../../../../../../../../_virtual/boolSchema.js";
import { __require as h } from "../errors.js";
import { __require as _ } from "../codegen/index.js";
import { __require as d } from "../names.js";
var m;
function b() {
  if (m) return a;
  m = 1, Object.defineProperty(a, "__esModule", { value: !0 }), a.boolOrEmptySchema = a.topBoolOrEmptySchema = void 0;
  const c = h(), n = _(), l = d(), u = {
    message: "boolean schema is false"
  };
  function f(e) {
    const { gen: r, schema: o, validateName: s } = e;
    o === !1 ? t(e, !1) : typeof o == "object" && o.$async === !0 ? r.return(l.default.data) : (r.assign((0, n._)`${s}.errors`, null), r.return(!0));
  }
  a.topBoolOrEmptySchema = f;
  function i(e, r) {
    const { gen: o, schema: s } = e;
    s === !1 ? (o.var(r, !1), t(e)) : o.var(r, !0);
  }
  a.boolOrEmptySchema = i;
  function t(e, r) {
    const { gen: o, data: s } = e, p = {
      gen: o,
      keyword: "false schema",
      data: s,
      schema: !1,
      schemaCode: !1,
      schemaValue: !1,
      params: {},
      it: e
    };
    (0, c.reportError)(p, u, void 0, r);
  }
  return a;
}
export {
  b as __require
};
//# sourceMappingURL=boolSchema.js.map
