UNPKG

@dialpad/dialtone

Version:

Dialpad's Dialtone design system monorepo

3 lines (2 loc) 2.59 kB
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("@dialpad/dialtone-icons/vue2"),n=require("./general-row-constants.cjs"),c=require("../../_plugin-vue2_normalizer-e_CkxkSV.cjs"),a=new Map([[n.LEFTBAR_GENERAL_ROW_TYPES.INBOX,t.DtIconInbox],[n.LEFTBAR_GENERAL_ROW_TYPES.CONTACTS,t.DtIconContacts],[n.LEFTBAR_GENERAL_ROW_TYPES.CHANNELS,t.DtIconHash],[n.LEFTBAR_GENERAL_ROW_TYPES.THREADS,t.DtIconThread],[n.LEFTBAR_GENERAL_ROW_TYPES.LAUNCHPAD,t.DtIconLayoutTemplate],[n.LEFTBAR_GENERAL_ROW_TYPES.LOCKED_CHANNEL,t.DtIconLock],[n.LEFTBAR_GENERAL_ROW_TYPES.QUICK_START,t.DtIconSparkle],[n.LEFTBAR_GENERAL_ROW_TYPES.COACHING_GROUP,t.DtIconUsers],[n.LEFTBAR_GENERAL_ROW_TYPES.COACHING_CENTER,t.DtIconExternalLink],["locked channel unread",t.DtIconLockFilled],["channel unread",t.DtIconHashBold],[n.LEFTBAR_GENERAL_ROW_TYPES.ASSIGNED,t.DtIconAtSign],[n.LEFTBAR_GENERAL_ROW_TYPES.DIGITAL,t.DtIconLaptop2],[n.LEFTBAR_GENERAL_ROW_TYPES.SCHEDULED,t.DtIconCalendarClock]]),E={name:"DtRecipeLeftbarGeneralRowIcon",components:{DtIconDialbot:t.DtIconDialbot,DtIconInbox:t.DtIconInbox,DtIconContacts:t.DtIconContacts,DtIconHash:t.DtIconHash,DtIconThread:t.DtIconThread,DtIconLayoutTemplate:t.DtIconLayoutTemplate,DtIconLock:t.DtIconLock,DtIconSparkle:t.DtIconSparkle,DtIconUsers:t.DtIconUsers,DtIconExternalLink:t.DtIconExternalLink,DtIconLockFilled:t.DtIconLockFilled,DtIconHashBold:t.DtIconHashBold,DtIconAtSign:t.DtIconAtSign,DtIconLaptop2:t.DtIconLaptop2,DtIconCalendarClock:t.DtIconCalendarClock},props:{type:{type:String,default:null},color:{type:String,default:null},iconSize:{type:String,default:"300"}},computed:{isIconType(){return![n.LEFTBAR_GENERAL_ROW_TYPES.DIALBOT,n.LEFTBAR_GENERAL_ROW_TYPES.CONTACT_CENTER].includes(this.type)},isContactCenterType(){return this.type===n.LEFTBAR_GENERAL_ROW_TYPES.CONTACT_CENTER},isDialbotType(){return this.type===n.LEFTBAR_GENERAL_ROW_TYPES.DIALBOT},getIconName(){return a.get(this.type)},contactCenterIconClasses(){return["d-recipe-leftbar-row__icon-cc",n.LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS[this.color]]}}};var _=function(){var e=this,o=e._self._c;return e.isIconType?o(e.getIconName,{tag:"component",attrs:{size:e.iconSize}}):e.isContactCenterType?o("div",{class:e.contactCenterIconClasses}):e.isDialbotType?o("div",{staticClass:"d-recipe-leftbar-general-row__icon",attrs:{"data-qa":"general-row-dialbot"}},[o("dt-icon-dialbot",{attrs:{size:"500"}})],1):e._e()},r=[],R=c.n(E,_,r);const l=R.exports;exports.default=l; //# sourceMappingURL=leftbar-general-row-icon.cjs.map