import { E as compilerRuntimeExports, j as jsxRuntimeExports } from "./vendor-react-DYNCg6N5.js";
import { a0 as UserAvatar, c1 as ContactHoverCardWidget } from "./index-DfebxkL9.js";
const UserAvatarWithCard = (t0) => {
  const $ = compilerRuntimeExports.c(18);
  let props;
  let ref;
  let t1;
  let user;
  if ($[0] !== t0) {
    ({
      user,
      hoverCardProps: t1,
      ref,
      ...props
    } = t0);
    $[0] = t0;
    $[1] = props;
    $[2] = ref;
    $[3] = t1;
    $[4] = user;
  } else {
    props = $[1];
    ref = $[2];
    t1 = $[3];
    user = $[4];
  }
  let t2;
  if ($[5] !== t1) {
    t2 = t1 === void 0 ? {} : t1;
    $[5] = t1;
    $[6] = t2;
  } else {
    t2 = $[6];
  }
  const hoverCardProps = t2;
  const t3 = user == null ? void 0 : user.Id;
  const t4 = user == null ? void 0 : user.Name;
  const t5 = user == null ? void 0 : user.Email;
  const t6 = props.src || "";
  let t7;
  if ($[7] !== props || $[8] !== ref || $[9] !== user) {
    t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(UserAvatar, { user, ref, ...props });
    $[7] = props;
    $[8] = ref;
    $[9] = user;
    $[10] = t7;
  } else {
    t7 = $[10];
  }
  let t8;
  if ($[11] !== hoverCardProps || $[12] !== t3 || $[13] !== t4 || $[14] !== t5 || $[15] !== t6 || $[16] !== t7) {
    t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(ContactHoverCardWidget, { id: t3, name: t4, email: t5, hoverCardProps, fallbackSrc: t6, children: t7 });
    $[11] = hoverCardProps;
    $[12] = t3;
    $[13] = t4;
    $[14] = t5;
    $[15] = t6;
    $[16] = t7;
    $[17] = t8;
  } else {
    t8 = $[17];
  }
  return t8;
};
UserAvatarWithCard.displayName = "UserAvatarWithCard";
export {
  UserAvatarWithCard as U
};
//# sourceMappingURL=index-3c9En-DB.js.map
