"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../common/utils/index.cjs"),s=require("@dialpad/dialtone-icons/vue2"),n=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),o=require("../avatar/avatar.cjs"),l=require("../general-row/general-row.cjs"),c=require("../emoji-text-wrapper/emoji-text-wrapper.cjs"),i={name:"DtRecipeContactRow",components:{DtAvatar:o.default,DtRecipeGeneralRow:l.default,DtEmojiTextWrapper:c.default,DtIconUser:s.DtIconUser},inheritAttrs:!1,props:{avatarSrc:{type:String,default:""},avatarPresence:{type:String,default:null},avatarSeed:{type:String,default:null},avatarColor:{type:String,default:null},presenceText:{type:String,default:""},name:{type:String,required:!0},userStatus:{type:String,default:""},muted:{type:Boolean,default:!1},unreadCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},noInitials:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1},hasCallButton:{type:Boolean,default:!0}},emits:["click","call"],computed:{presenceFontColorClass(){return{active:"d-recipe-contact-row--active",busy:"d-recipe-contact-row--busy",away:"d-recipe-contact-row--away"}[this.avatarPresence]},contactDescription(){return r.safeConcatStrings([this.name,this.presenceText,this.userStatus])}}};var u=function(){var e=this,t=e._self._c;return t("dt-recipe-general-row",e._g(e._b({attrs:{"unread-count":e.unreadCount,description:e.contactDescription,"has-unreads":e.hasUnreads,selected:e.selected,"has-call-button":e.hasCallButton,muted:e.muted,"is-typing":e.isTyping,"data-qa":"contact-row"},scopedSlots:e._u([{key:"left",fn:function(){return[t("dt-avatar",{attrs:{"full-name":e.name,"image-src":e.avatarSrc,color:e.avatarColor,"image-alt":"",size:"sm",seed:e.avatarSeed,presence:e.avatarPresence},scopedSlots:e._u([e.noInitials?{key:"icon",fn:function(){return[t("dt-icon-user",{attrs:{size:"200"}})]},proxy:!0}:null],null,!0)})]},proxy:!0},{key:"label",fn:function(){return[t("dt-emoji-text-wrapper",{staticClass:"d-recipe-leftbar-row__description",attrs:{"data-qa":"dt-recipe-leftbar-row-description",size:"200"}},[e._v(" "+e._s(e.name)+" ")]),t("div",{staticClass:"d-recipe-leftbar-row__status"},[e.presenceText?t("span",{class:["d-recipe-leftbar-row__meta-context",e.presenceFontColorClass],attrs:{"data-qa":"dt-recipe-leftbar-row-presence-text"}},[e._v(" "+e._s(e.presenceText)+" ")]):e._e(),e.userStatus?t("dt-emoji-text-wrapper",{staticClass:"d-recipe-leftbar-row__meta-custom",attrs:{size:"100","element-type":"span","data-qa":"dt-recipe-leftbar-row-user-status"}},[e._v(" "+e._s(e.userStatus)+" ")]):e._e()],1)]},proxy:!0}])},"dt-recipe-general-row",e.$attrs,!1),e.$listeners))},p=[],d=n.n(i,u,p);const _=d.exports;exports.default=_;
//# sourceMappingURL=contact-row.cjs.map
