import { __exports as o } from "../../../../../../../../_virtual/propertyNames.js";
import { __require as y } from "../../compile/codegen/index.js";
import { __require as l } from "../../compile/util.js";
var m;
function b() {
  if (m) return o;
  m = 1, Object.defineProperty(o, "__esModule", { value: !0 });
  const s = y(), i = l(), n = {
    keyword: "propertyNames",
    type: "object",
    schemaType: ["object", "boolean"],
    error: {
      message: "property name must be valid",
      params: ({ params: e }) => (0, s._)`{propertyName: ${e.propertyName}}`
    },
    code(e) {
      const { gen: r, schema: u, data: d, it: p } = e;
      if ((0, i.alwaysValidSchema)(p, u))
        return;
      const a = r.name("valid");
      r.forIn("key", d, (t) => {
        e.setParams({ propertyName: t }), e.subschema({
          keyword: "propertyNames",
          data: t,
          dataTypes: ["string"],
          propertyName: t,
          compositeRule: !0
        }, a), r.if((0, s.not)(a), () => {
          e.error(!0), p.allErrors || r.break();
        });
      }), e.ok(a);
    }
  };
  return o.default = n, o;
}
export {
  b as __require
};
//# sourceMappingURL=propertyNames.js.map
