import { parseDef as r } from "../parseDef.js";
import { parseRecordDef as p } from "./record.js";
function s(e, t) {
  if (t.mapStrategy === "record")
    return p(e, t);
  const a = r(e.keyType._def, {
    ...t,
    currentPath: [...t.currentPath, "items", "items", "0"]
  }) || {}, m = r(e.valueType._def, {
    ...t,
    currentPath: [...t.currentPath, "items", "items", "1"]
  }) || {};
  return {
    type: "array",
    maxItems: 125,
    items: {
      type: "array",
      items: [a, m],
      minItems: 2,
      maxItems: 2
    }
  };
}
export {
  s as parseMapDef
};
//# sourceMappingURL=map.js.map
