import { __exports as t } from "../../../../../../../../_virtual/limitProperties.js";
import { __require as n } from "../../compile/codegen/index.js";
var i;
function _() {
  if (i) return t;
  i = 1, Object.defineProperty(t, "__esModule", { value: !0 });
  const r = n(), a = {
    keyword: ["maxProperties", "minProperties"],
    type: "object",
    schemaType: "number",
    $data: !0,
    error: {
      message({ keyword: e, schemaCode: o }) {
        const s = e === "maxProperties" ? "more" : "fewer";
        return (0, r.str)`must NOT have ${s} than ${o} properties`;
      },
      params: ({ schemaCode: e }) => (0, r._)`{limit: ${e}}`
    },
    code(e) {
      const { keyword: o, data: s, schemaCode: p } = e, m = o === "maxProperties" ? r.operators.GT : r.operators.LT;
      e.fail$data((0, r._)`Object.keys(${s}).length ${m} ${p}`);
    }
  };
  return t.default = a, t;
}
export {
  _ as __require
};
//# sourceMappingURL=limitProperties.js.map
