class c {
  /**
   * Appends the attachment for the passed record to the passed form data. If the attachment is not present, the
   * "*_remove" attribute will be appended if the attachment has been removed.
   *
   * @param formData
   * @param prefix
   * @param record
   * @param name
   */
  toPayload(a, n, t, e) {
    const $ = t[e], s = `${e}_remove`;
    $ ? a.append(`${n}[${e}]`, $) : t[s] && a.append(`${n}[${s}]`, t[s]);
  }
}
const l = new c();
export {
  l as default
};
//# sourceMappingURL=index.es16.js.map
