{"version":3,"file":"unread-pill.cjs","sources":["../../../recipes/leftbar/unread_pill/unread_pill.vue"],"sourcesContent":["<template>\n  <button\n    :class=\"['d-recipe-leftbar-unread-pill', `d-recipe-leftbar-unread-pill-${kind}`]\"\n    type=\"button\"\n    data-qa=\"dt-recipe-leftbar-unread-pill\"\n    v-on=\"unreadChipListeners\"\n  >\n    <dt-icon-arrow-up\n      v-if=\"direction === 'up'\"\n      size=\"300\"\n    />\n    <dt-icon-arrow-down\n      v-else\n      size=\"300\"\n    />\n    <span data-qa=\"dt-recipe-leftbar-unread-pill__label\">\n      <slot />\n    </span>\n  </button>\n</template>\n\n<script>\nimport { DtIconArrowUp, DtIconArrowDown } from '@dialpad/dialtone-icons/vue3';\nimport { UNREAD_PILL_DIRECTIONS, UNREAD_PILL_KINDS } from './unread_pill_constants';\nexport default {\n  compatConfig: { MODE: 3 },\n  name: 'DtRecipeUnreadPill',\n\n  components: {\n    DtIconArrowUp,\n    DtIconArrowDown,\n  },\n\n  props: {\n    /**\n     * The kind of unread pill which determines the styling\n     * @values 'mentions', 'messages'\n     **/\n    kind: {\n      type: String,\n      required: true,\n      validator: (kind) => UNREAD_PILL_KINDS.includes(kind),\n    },\n\n    /**\n     * The direction of the arrow icon\n     * @values 'up', 'down'\n     **/\n    direction: {\n      type: String,\n      required: true,\n      validator: (dir) => UNREAD_PILL_DIRECTIONS.includes(dir),\n    },\n  },\n\n  emits: [\n    /**\n     * Native click event\n     *\n     * @event click\n     * @type {PointerEvent | KeyboardEvent}\n     */\n    'click',\n  ],\n\n  computed: {\n    unreadChipListeners () {\n      return {\n        click: event => this.$emit('click', event),\n      };\n    },\n  },\n};\n</script>\n"],"names":["_sfc_main","DtIconArrowUp","DtIconArrowDown","kind","UNREAD_PILL_KINDS","dir","UNREAD_PILL_DIRECTIONS","event","_hoisted_1","_openBlock","_createElementBlock","_mergeProps","$props","_toHandlers","$options","_createBlock","_component_dt_icon_arrow_up","_component_dt_icon_arrow_down","_createElementVNode","_renderSlot","_ctx"],"mappings":"gRAwBKA,EAAU,CACb,aAAc,CAAE,KAAM,CAAG,EACzB,KAAM,qBAEN,WAAY,eACVC,EAAa,cACb,gBAAAC,EAAe,eAChB,EAED,MAAO,CAKL,KAAM,CACJ,KAAM,OACN,SAAU,GACV,UAAYC,GAASC,oBAAkB,SAASD,CAAI,CACrD,EAMD,UAAW,CACT,KAAM,OACN,SAAU,GACV,UAAYE,GAAQC,yBAAuB,SAASD,CAAG,CACxD,CACF,EAED,MAAO,CAOL,OACD,EAED,SAAU,CACR,qBAAuB,CACrB,MAAO,CACL,MAAOE,GAAS,KAAK,MAAM,QAASA,CAAK,EAE5C,CACF,CACH,EAzDUC,EAAA,CAAA,UAAQ,sCAAsC,oHAdtD,OAAAC,YAAA,EAAAC,qBAiBS,SAjBTC,EAAAA,WAiBS,CAhBN,sEAAwEC,EAAI,IAAA,EAAA,EAC7E,KAAK,SACL,UAAQ,+BACR,EAAAC,EAAA,WAA0BC,EAAD,oBAAA,EAAA,CAAA,EAAA,CAGjBF,EAAS,YAAA,oBADjBG,EAGE,YAAAC,EAAA,CAVN,IAAA,EASM,KAAK,wBAEPD,EAGE,YAAAE,EAAA,CAdN,IAAA,EAaM,KAAK,SAEPC,EAAA,mBAEO,OAFPV,EAEO,CADLW,aAAQC,EAAA,OAAA,SAAA"}