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