{
  "version": 3,
  "sources": ["../../../src/binding-utils/modified-utils.ts"],
  "sourcesContent": ["import type { Binding } from '../binding/types/binding';\nimport type { ReadonlyBinding } from '../binding/types/readonly-binding';\n\n/**\n * Checks if any of the specified bindings have been modified.\n *\n * @param bindings - The bindings to check\n *\n * @returns `true` if any of the specified bindings are modified, `false` otherwise\n */\nexport const areAnyBindingsModified = (bindings: Array<ReadonlyBinding | undefined>) => {\n  for (const binding of bindings) {\n    if (binding?.isModified() ?? false) {\n      return true;\n    }\n  }\n\n  return false;\n};\n\n/**\n * Marks all of the specified bindings as having been modified or not.\n *\n * @param bindings - The bindings to update\n * @param newIsModified - The desired modified state for the specified bindings\n */\nexport const setAllBindingsModified = (bindings: Array<Binding | undefined>, newIsModified: boolean) => {\n  for (const binding of bindings) {\n    binding?.setIsModified(newIsModified);\n  }\n};\n"],
  "mappings": "AAUO,MAAM,yBAAyB,CAAC,aAAiD;AACtF,aAAW,WAAW,UAAU;AAC9B,QAAI,SAAS,WAAW,KAAK,OAAO;AAClC,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;AAQO,MAAM,yBAAyB,CAAC,UAAsC,kBAA2B;AACtG,aAAW,WAAW,UAAU;AAC9B,aAAS,cAAc,aAAa;AAAA,EACtC;AACF;",
  "names": []
}
