import { bI as s, g as l, m as o, cr as d, i as c, b0 as r, A as m, w as A } from "./index-G5Vdjjso.js";
import f from "./AttachmentField-CBHL1a35.js";
function g(a, t) {
  const p = s(t, ["children", "$$slots", "$$events", "$$legacy"]), i = s(p, []);
  l(t, !1);
  const n = {
    get: (e) => (!Array.isArray(e) && e ? [e] : e) || [],
    set: (e) => e[0] || null
  };
  o(), f(a, d(() => i, {
    get type() {
      return c(r), m(() => r.ATTACHMENT_SINGLE);
    },
    maximum: 1,
    defaultValue: null,
    get fieldApiMapper() {
      return n;
    }
  })), A();
}
export {
  g as default
};
