"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("@dialpad/dialtone-icons/vue3"),o=require("../../common/utils/index.cjs"),s=require("../../localization/index.cjs"),e=require("vue"),l=require("../../_plugin-vue_export-helper-BRilXfQE.cjs"),c=require("../general-row/general-row.cjs"),d={compatConfig:{MODE:3},name:"DtRecipeGroupRow",components:{DtIconUsers:a.DtIconUsers,DtRecipeGeneralRow:c.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 s.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 o.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 o.safeConcatStrings([this.typingTooltip,this.i18n.$t("DIALTONE_GROUP_ROW_GROUP_COUNT_TEXT",{count:this.groupCount}),this.names,this.unreadCountTooltip])},contactRowListeners(){return o.extractVueListeners(this.$attrs)}}};function _(r,C,t,h,g,n){const i=e.resolveComponent("dt-icon-users"),u=e.resolveComponent("dt-recipe-general-row");return e.openBlock(),e.createBlock(u,e.mergeProps({description:t.names,"aria-label":n.ariaLabel,"unread-count":t.unreadCount,"has-unreads":t.hasUnreads,"unread-mention-count":t.unreadMentionCount,"unread-count-tooltip":n.unreadCountTooltip,selected:t.selected,"is-typing":t.isTyping},r.$attrs,e.toHandlers(n.contactRowListeners)),{left:e.withCtx(()=>[e.createVNode(i,{size:"300"})]),_:1},16,["description","aria-label","unread-count","has-unreads","unread-mention-count","unread-count-tooltip","selected","is-typing"])}const p=l._(d,[["render",_]]);exports.default=p;
//# sourceMappingURL=group-row.cjs.map
