@dialpad/dialtone
Version:
Dialpad's Dialtone design system monorepo
86 lines (85 loc) • 2.51 kB
JavaScript
import { DtIconCalendarClock as o, DtIconLaptop2 as c, DtIconAtSign as r, DtIconHashBold as a, DtIconLockFilled as s, DtIconExternalLink as i, DtIconUsers as l, DtIconSparkle as p, DtIconLock as C, DtIconLayoutTemplate as I, DtIconThread as _, DtIconHash as T, DtIconContacts as D, DtIconInbox as d, DtIconDialbot as E } from "@dialpad/dialtone-icons/vue2";
import { LEFTBAR_GENERAL_ROW_CONTACT_CENTER_COLORS as A, LEFTBAR_GENERAL_ROW_TYPES as t } from "./general-row-constants.js";
import { n as N } from "../../_plugin-vue2_normalizer-DSLOjnn3.js";
const L = /* @__PURE__ */ new Map([
[t.INBOX, d],
[t.CONTACTS, D],
[t.CHANNELS, T],
[t.THREADS, _],
[t.LAUNCHPAD, I],
[t.LOCKED_CHANNEL, C],
[t.QUICK_START, p],
[t.COACHING_GROUP, l],
[t.COACHING_CENTER, i],
["locked channel unread", s],
["channel unread", a],
[t.ASSIGNED, r],
[t.DIGITAL, c],
[t.SCHEDULED, o]
]), R = {
name: "DtRecipeLeftbarGeneralRowIcon",
components: {
DtIconDialbot: E,
DtIconInbox: d,
DtIconContacts: D,
DtIconHash: T,
DtIconThread: _,
DtIconLayoutTemplate: I,
DtIconLock: C,
DtIconSparkle: p,
DtIconUsers: l,
DtIconExternalLink: i,
DtIconLockFilled: s,
DtIconHashBold: a,
DtIconAtSign: r,
DtIconLaptop2: c,
DtIconCalendarClock: o
},
props: {
type: {
type: String,
default: null
},
color: {
type: String,
default: null
},
iconSize: {
type: String,
default: "300"
}
},
computed: {
isIconType() {
return ![t.DIALBOT, t.CONTACT_CENTER].includes(this.type);
},
isContactCenterType() {
return this.type === t.CONTACT_CENTER;
},
isDialbotType() {
return this.type === t.DIALBOT;
},
getIconName() {
return L.get(this.type);
},
contactCenterIconClasses() {
return [
"d-recipe-leftbar-row__icon-cc",
A[this.color]
];
}
}
};
var m = function() {
var e = this, n = e._self._c;
return e.isIconType ? n(e.getIconName, { tag: "component", attrs: { size: e.iconSize } }) : e.isContactCenterType ? n("div", { class: e.contactCenterIconClasses }) : e.isDialbotType ? n("div", { staticClass: "d-recipe-leftbar-general-row__icon", attrs: { "data-qa": "general-row-dialbot" } }, [n("dt-icon-dialbot", { attrs: { size: "500" } })], 1) : e._e();
}, u = [], f = /* @__PURE__ */ N(
R,
m,
u
);
const b = f.exports;
export {
b as default
};
//# sourceMappingURL=leftbar-general-row-icon.js.map