import { bI as w, g as B, p as a, b0 as D, l as i, i as n, k as h, m as E, cr as F, Y as I, j as o, w as V, z as f, B as c } from "./index-G5Vdjjso.js";
import U from "./RelationshipField-BUitZX35.js";
import { c as z, g as d } from "./users-iwiddOhv.js";
function k(p, t) {
  const s = w(t, ["children", "$$slots", "$$events", "$$legacy"]);
  B(t, !1);
  const r = f(), l = f();
  let u = a(t, "defaultValue", 8), m = a(t, "type", 24, () => D.BB_REFERENCE), _ = a(t, "multi", 24, () => {
  }), y = a(t, "defaultRows", 24, () => []);
  function g(e) {
    return Array.isArray(e) ? e.map((b) => d(b)) : d(e);
  }
  function R(e) {
    return z(e) ? g(e) : e;
  }
  i(() => n(u()), () => {
    c(r, R(u()));
  }), i(() => n(s), () => {
    c(l, s);
  }), h(), E(), U(p, F(() => o(l), {
    get type() {
      return m();
    },
    datasourceType: "user",
    primaryDisplay: "email",
    get defaultValue() {
      return o(r);
    },
    get defaultRows() {
      return y();
    },
    get multi() {
      return _();
    },
    $$events: {
      rows(e) {
        I.call(this, t, e);
      }
    }
  })), V();
}
export {
  k as default
};
