Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}}),require(`../../chunk-Bmb41Sf3.cjs`);const e=require(`../../_plugin-vue_export-helper-D8jCH6HB.cjs`),t=require(`../../localization/index.cjs`),n=require(`./unread-pill-constants.cjs`);let r=require(`vue`),i=require(`@dialpad/dialtone-icons/vue3`);var a={compatConfig:{MODE:3},name:`DtRecipeUnreadPill`,components:{DtIconArrowUp:i.DtIconArrowUp,DtIconArrowDown:i.DtIconArrowDown},props:{kind:{type:String,required:!0,validator:e=>n.UNREAD_PILL_KINDS.includes(e)},direction:{type:String,required:!0,validator:e=>n.UNREAD_PILL_DIRECTIONS.includes(e)}},emits:[`click`],data(){return{i18n:new t.DialtoneLocalization}},computed:{text(){return this.kind===`mentions`?this.i18n.$t(`DIALTONE_UNREAD_PILL_MENTIONS_TEXT`):this.i18n.$t(`DIALTONE_UNREAD_PILL_MESSAGES_TEXT`)},unreadChipListeners(){return{click:e=>this.$emit(`click`,e)}}}},o={"data-qa":`dt-recipe-leftbar-unread-pill__label`};function s(e,t,n,i,a,s){let c=(0,r.resolveComponent)(`dt-icon-arrow-up`),l=(0,r.resolveComponent)(`dt-icon-arrow-down`);return(0,r.openBlock)(),(0,r.createElementBlock)(`button`,(0,r.mergeProps)({class:[`d-recipe-leftbar-unread-pill`,`d-recipe-leftbar-unread-pill-${n.kind}`],type:`button`,"data-qa":`dt-recipe-leftbar-unread-pill`},(0,r.toHandlers)(s.unreadChipListeners,!0)),[n.direction===`up`?((0,r.openBlock)(),(0,r.createBlock)(c,{key:0,size:`300`})):((0,r.openBlock)(),(0,r.createBlock)(l,{key:1,size:`300`})),(0,r.createElementVNode)(`span`,o,[(0,r.renderSlot)(e.$slots,`default`,{},()=>[(0,r.createTextVNode)((0,r.toDisplayString)(s.text),1)])])],16)}var c=e.t(a,[[`render`,s]]);exports.default=c;
//# sourceMappingURL=unread-pill.cjs.map