import o from "../item-layout/item-layout.js";
import c from "../avatar/avatar.js";
import { n as i } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
const l = {
  name: "DtRecipeContactInfo",
  components: {
    DtAvatar: c,
    DtItemLayout: o
  },
  /* inheritAttrs: false is generally an option we want to set on library
    components. This allows any attributes passed in that are not recognized
    as props to be passed down to another element or component using v-bind:$attrs
    more info: https://vuejs.org/v2/api/#inheritAttrs */
  // inheritAttrs: false,
  props: {
    /**
     * String to use for the item's role.
     */
    role: {
      type: String,
      default: ""
    },
    /**
     * Display avatar if `showAvatar` property is true.
     */
    showAvatar: {
      type: Boolean,
      default: !0
    },
    /**
     * Optional avatar image url.
     */
    avatarSrc: {
      type: String,
      default: ""
    },
    /**
     * Avatar seed, set this to the user's ID to get the same avatar background gradient each time it is displayed.
     */
    avatarSeed: {
      type: String,
      default: null
    },
    /**
     * Avatar's full name, used to extract initials
     * to display in avatar if `avatarSrc` and `avatarIcon` are empty.
     */
    avatarFullName: {
      type: String,
      default: ""
    },
    /**
     * The size of the avatar
     * @values xs, sm, md, lg, xl
     */
    avatarSize: {
      type: String,
      default: "lg"
    },
    /**
     * The aria-labelledby of the button containing avatars
     */
    avatarLabelledBy: {
      type: String,
      default: ""
    },
    /**
     * Avatar color to display if `avatarSrc` is empty.
     */
    avatarColor: {
      type: String,
      default: null
    },
    /**
     * Determines whether to show the presence indicator for
     * Avatar - accepts PRESENCE_STATES values: 'busy', 'away', 'offline',
     * or 'active'. By default, it's null and nothing is shown.
     * @values null, busy, away, offline, active
     */
    presence: {
      type: String,
      default: null
    },
    /**
     * Showing multiple avatars in contact info.
     * The props of array items are: <br>
     * `src` - avatar image url (optional) <br>
     * `fullName` - full name, used to extract initials to display in avatar<br>
     *  if `avatarSrc` and `avatarIcon` are empty<br>
     * `seed` - determines uniqueness of avatar background <br>
     * `text` - text that overlays the avatar (optional) <br>
     * `icon` - icon that overlays the avatar (optional) <br>
     * `halo` - halo highlight around the avatar. boolean true/false
     */
    avatarList: {
      type: Array,
      default: null
    }
  },
  emits: ["avatar-click"],
  methods: {
    avatarClick() {
      this.$emit("avatar-click");
    }
  }
};
var s = function() {
  var t = this, a = t._self._c;
  return a("dt-item-layout", { staticClass: "d-recipe-contact-info", attrs: { role: t.role, "data-qa": "contact-info", "content-class": "d-recipe-contact-info__content", "right-class": "d-recipe-contact-info__right", unstyled: "" }, scopedSlots: t._u([t.showAvatar ? { key: "left", fn: function() {
    return [a("button", { staticClass: "d-recipe-contact-info__left", attrs: { "data-qa": "contact-info-left", "aria-labelledby": t.avatarLabelledBy }, on: { click: t.avatarClick } }, [t.avatarList ? a("span", { staticClass: "d-recipe-contact-info__avatars" }, t._l(t.avatarList, function(e, n) {
      return a("dt-avatar", { key: n, attrs: { size: t.avatarSize, seed: e.seed, "full-name": e.fullName, "image-src": e.src, "image-alt": "", "overlay-text": e.text, "avatar-class": [
        {
          "d-recipe-contact-info__avatar-stacked": n > 0,
          "d-recipe-contact-info__avatar-halo": !!e.halo
        }
      ] }, scopedSlots: t._u([{ key: "icon", fn: function({ iconSize: r }) {
        return [t._t("avatarIcon", null, { iconSize: r })];
      } }, e.icon ? { key: "overlayIcon", fn: function() {
        return [a(e.icon, { tag: "component" })];
      }, proxy: !0 } : null], null, !0) });
    }), 1) : a("dt-avatar", { attrs: { size: t.avatarSize, "full-name": t.avatarFullName, "image-src": t.avatarSrc, "image-alt": "", seed: t.avatarSeed, color: t.avatarColor, presence: t.presence }, scopedSlots: t._u([{ key: "icon", fn: function({ iconSize: e }) {
      return [t._t("avatarIcon", null, { iconSize: e })];
    } }], null, !0) })], 1)];
  }, proxy: !0 } : null, { key: "default", fn: function() {
    return [a("div", { staticClass: "d-recipe-contact-info__header", attrs: { "data-qa": "contact-info-header" } }, [t._t("header")], 2)];
  }, proxy: !0 }, { key: "subtitle", fn: function() {
    return [a("div", { staticClass: "d-recipe-contact-info__subtitle", attrs: { "data-qa": "contact-info-subtitle" } }, [t._t("subtitle")], 2)];
  }, proxy: !0 }, t.$slots.bottom ? { key: "bottom", fn: function() {
    return [a("div", { staticClass: "d-recipe-contact-info__bottom", attrs: { "data-qa": "contact-info-bottom" } }, [t._t("bottom")], 2)];
  }, proxy: !0 } : null, t.$slots.right ? { key: "right", fn: function() {
    return [a("div", { attrs: { "data-qa": "contact-info-right" } }, [t._t("right")], 2)];
  }, proxy: !0 } : null], null, !0) });
}, u = [], f = /* @__PURE__ */ i(
  l,
  s,
  u
);
const y = f.exports;
export {
  y as default
};
//# sourceMappingURL=contact-info.js.map
