Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../common/utils/index.cjs`),t=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),n=require(`../../localization/index.cjs`),r=require(`../general-row/general-row.cjs`);let i=require(`vue`);var a={compatConfig:{MODE:3},name:`DtRecipeGroupRow`,components:{DtIconUsers:require(`@dialpad/dialtone-icons/vue3`).DtIconUsers,DtRecipeGeneralRow:r.default},inheritAttrs:!1,props:{names:{type:String,required:!0},unreadCount:{type:String,default:null},unreadMentionCount:{type:String,default:null},hasUnreads:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},isTyping:{type:Boolean,default:!1}},data(){return{i18n:new n.DialtoneLocalization}},computed:{groupCount(){return this.names.split(`,`).length},messageCount(){return isNaN(this.unreadCount)?this.unreadCount:Number(this.unreadCount)},mentionCount(){return isNaN(this.unreadMentionCount)?this.unreadMentionCount:Number(this.unreadMentionCount)},unreadCountTooltip(){return e.safeConcatStrings([this.unreadCount&&this.i18n.$t(`DIALTONE_UNREAD_MESSAGE_COUNT_TEXT`,{unreadCount:this.messageCount}),this.unreadMentionCount&&this.i18n.$t(`DIALTONE_UNREAD_MENTION_COUNT_TEXT`,{unreadCount:this.mentionCount})])},typingTooltip(){return this.isTyping&&this.i18n.$t(`DIALTONE_TYPING_TEXT`)},ariaLabel(){return e.safeConcatStrings([this.typingTooltip,this.i18n.$t(`DIALTONE_GROUP_ROW_GROUP_COUNT_TEXT`,{count:this.groupCount}),this.names,this.unreadCountTooltip])},contactRowListeners(){return e.extractVueListeners(this.$attrs)}}};function o(e,t,n,r,a,o){let s=(0,i.resolveComponent)(`dt-icon-users`),c=(0,i.resolveComponent)(`dt-recipe-general-row`);return(0,i.openBlock)(),(0,i.createBlock)(c,(0,i.mergeProps)({description:n.names,"aria-label":o.ariaLabel,"unread-count":n.unreadCount,"has-unreads":n.hasUnreads,"unread-mention-count":n.unreadMentionCount,"unread-count-tooltip":o.unreadCountTooltip,selected:n.selected,"is-typing":n.isTyping},e.$attrs,(0,i.toHandlers)(o.contactRowListeners)),{left:(0,i.withCtx)(()=>[(0,i.createVNode)(s,{size:`300`})]),_:1},16,[`description`,`aria-label`,`unread-count`,`has-unreads`,`unread-mention-count`,`unread-count-tooltip`,`selected`,`is-typing`])}var s=t.t(a,[[`render`,o]]);exports.default=s;
//# sourceMappingURL=group-row.cjs.map