import o from "./index.es38.js";
import "./index.es39.js";
import "./index.es40.js";
import "./index.es41.js";
import "./index.es42.js";
import "./index.es43.js";
import "./index.es44.js";
import "./index.es45.js";
import "./index.es46.js";
import "./index.es47.js";
import "./index.es48.js";
import "./index.es49.js";
import "./index.es50.js";
import "./index.es51.js";
import "./index.es52.js";
import "./index.es53.js";
import "./index.es54.js";
import "./index.es55.js";
import "./index.es56.js";
import "./index.es57.js";
import "./index.es58.js";
import "./index.es59.js";
import "./index.es60.js";
import "./index.es61.js";
import "./index.es62.js";
import "./index.es63.js";
import "./index.es64.js";
import "./index.es65.js";
import d from "./index.es26.js";
class p {
  /**
   * Constructs a new BaseTransform object. This constructor should never be used directly.
   */
  constructor() {
    if (this.constructor === p)
      throw new TypeError('Abstract class "NestedAttributesTransform" cannot be instantiated directly.');
  }
  /**
   * Returns the array of payload keys.
   *
   * @returns {*[]}
   */
  getPayloadKeys() {
    return [];
  }
  /**
   * Appends the passed record's collection to the form data.
   *
   * @param formData
   * @param prefix
   * @param record
   * @param collection
   */
  toFormData(i, t, m, r) {
    o.each(m[r], (a, e) => {
      o.each(this.getPayloadKeys(), (s) => {
        d.setAttribute(i, `${t}[${r}][${e}]`, a, s);
      });
    });
  }
  /**
   * Transforms the passed record's collection to a payload object.
   *
   * @param record
   * @param collection
   *
   * @returns {{[p: string]: *}}
   */
  toPayload(i, t) {
    return {
      [t]: o.map(
        i[t],
        (m, r) => ({ order: r, ...o.pick(m, this.getPayloadKeys()) })
      )
    };
  }
}
export {
  p as default
};
//# sourceMappingURL=index.es20.js.map
