customer-module-frontend 2.6.0-beta.4 → 2.6.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/customer-module.js +12 -10
- package/dist/customer-module.js.map +1 -1
- package/package.json +1 -1
package/dist/customer-module.js
CHANGED
|
@@ -26722,7 +26722,7 @@ const ob = async (e, n) => (await pn.patch(
|
|
|
26722
26722
|
subject: s || t2(10, 30),
|
|
26723
26723
|
messagePreview: l || t2(30, 50),
|
|
26724
26724
|
timestamp: o || Db()
|
|
26725
|
-
}, [e, s, l, o]), E = m && m.length > 0 ? m : c || d ? [{ sm_name: c || "", assignee: d?.name, sm_id: 0, status: t }] : [], V = E.length > 0 ? E[0] : null, R = E.length > 1 ? E.length - 1 : 0, N = E.length > 1 ? E.slice(1) : [], P = e, S = !e && n === "slack", L = (X) => {
|
|
26725
|
+
}, [e, s, l, o]), E = m && m.length > 0 ? m : c || d ? [{ sm_name: c || "", assignee: d?.name, sm_id: 0, status: t }] : [], V = E.length > 0 ? E[0] : null, R = E.length > 1 ? E.length - 1 : 0, N = E.length > 1 ? E.slice(1) : [], P = e, S = !e && (n === "slack" || n === "voice"), L = (X) => {
|
|
26726
26726
|
if (!P) {
|
|
26727
26727
|
X.preventDefault(), X.stopPropagation();
|
|
26728
26728
|
return;
|
|
@@ -26797,7 +26797,6 @@ const ob = async (e, n) => (await pn.patch(
|
|
|
26797
26797
|
"div",
|
|
26798
26798
|
{
|
|
26799
26799
|
className: `cm:flex ${a === "small" ? "cm:gap-2 cm:w-full cm:flex-col" : "cm:gap-2.5"} ${a === "small" ? "cm:items-start" : "cm:items-center"} ${a === "small" ? "" : "cm:shrink-0"} ${S ? "conversation-box-blurred" : ""}`,
|
|
26800
|
-
style: S ? { userSelect: "none", pointerEvents: "none" } : void 0,
|
|
26801
26800
|
children: [
|
|
26802
26801
|
/* @__PURE__ */ I("div", { className: `cm:flex ${a === "small" ? "cm:gap-2 cm:w-full" : "cm:gap-2.5"} cm:items-center ${a === "small" ? "cm:flex-wrap" : "cm:shrink-0"}`, children: [
|
|
26803
26802
|
V.sm_name && /* @__PURE__ */ I(On, { children: [
|
|
@@ -29610,8 +29609,9 @@ const tC = (e) => /* @__PURE__ */ i.createElement("svg", { width: 20, height: 20
|
|
|
29610
29609
|
/* @__PURE__ */ u("span", { className: "cm:text-slate-text-body", children: a })
|
|
29611
29610
|
] });
|
|
29612
29611
|
}, V3 = ({
|
|
29613
|
-
health: e
|
|
29614
|
-
|
|
29612
|
+
health: e,
|
|
29613
|
+
sentiment: n
|
|
29614
|
+
}) => e !== "at_risk" && n !== "negative" ? null : /* @__PURE__ */ u(
|
|
29615
29615
|
br,
|
|
29616
29616
|
{
|
|
29617
29617
|
content: /* @__PURE__ */ u("span", { className: "cm:text-white cm:text-sm cm:font-normal cm:leading-5 cm:whitespace-nowrap", children: "This account is at risk" }),
|
|
@@ -29625,9 +29625,9 @@ const tC = (e) => /* @__PURE__ */ i.createElement("svg", { width: 20, height: 20
|
|
|
29625
29625
|
}
|
|
29626
29626
|
)
|
|
29627
29627
|
}
|
|
29628
|
-
), yu = () => /* @__PURE__ */ u("div", { className: "cm:h-4 cm:bg-gray-200 cm:rounded cm:w-3/4 cm:animate-pulse" }), oC = ({ name: e, health: n }) => /* @__PURE__ */ I("span", { className: "cm:inline-flex cm:min-w-0 cm:items-center cm:gap-1.5", children: [
|
|
29628
|
+
), yu = () => /* @__PURE__ */ u("div", { className: "cm:h-4 cm:bg-gray-200 cm:rounded cm:w-3/4 cm:animate-pulse" }), oC = ({ name: e, health: n, sentiment: t }) => /* @__PURE__ */ I("span", { className: "cm:inline-flex cm:min-w-0 cm:items-center cm:gap-1.5", children: [
|
|
29629
29629
|
/* @__PURE__ */ u(ir, { text: e, className: "text-slate-900" }),
|
|
29630
|
-
/* @__PURE__ */ u(V3, { health: n })
|
|
29630
|
+
/* @__PURE__ */ u(V3, { health: n, sentiment: t })
|
|
29631
29631
|
] }), iC = ({ domain: e }) => /* @__PURE__ */ u(ir, { text: e, className: "text-slate-900" }), b2 = [
|
|
29632
29632
|
{
|
|
29633
29633
|
id: "name",
|
|
@@ -29672,7 +29672,8 @@ function sC({ ciEnabled: e = !1 } = {}) {
|
|
|
29672
29672
|
name: zr(
|
|
29673
29673
|
b.generated_name ? b.generated_name : b.name
|
|
29674
29674
|
),
|
|
29675
|
-
health: e ? b.account_health : void 0
|
|
29675
|
+
health: e ? b.account_health : void 0,
|
|
29676
|
+
sentiment: e ? b.account_sentiment : void 0
|
|
29676
29677
|
}
|
|
29677
29678
|
),
|
|
29678
29679
|
domainDisplay: /* @__PURE__ */ u(
|
|
@@ -41635,9 +41636,9 @@ const CA = ({
|
|
|
41635
41636
|
locked: !0,
|
|
41636
41637
|
sortable: !1,
|
|
41637
41638
|
style: { width: "300px" }
|
|
41638
|
-
}, PA = ({ name: e, health: n }) => /* @__PURE__ */ I("span", { className: "cm:inline-flex cm:min-w-0 cm:items-center cm:gap-1.5", children: [
|
|
41639
|
+
}, PA = ({ name: e, health: n, sentiment: t }) => /* @__PURE__ */ I("span", { className: "cm:inline-flex cm:min-w-0 cm:items-center cm:gap-1.5", children: [
|
|
41639
41640
|
/* @__PURE__ */ u(ir, { text: e, className: "cm:text-slate-900" }),
|
|
41640
|
-
/* @__PURE__ */ u(V3, { health: n })
|
|
41641
|
+
/* @__PURE__ */ u(V3, { health: n, sentiment: t })
|
|
41641
41642
|
] }), NA = ({ domains: e, fallback: n }) => e.length ? /* @__PURE__ */ u(K6, { values: e, maxVisible: 2 }) : /* @__PURE__ */ u(ir, { text: n, className: "cm:text-slate-900" });
|
|
41642
41643
|
function Au({ filterBy: e, tabs: n, ciEnabled: t = !1, onAtRiskCount: a, onAllCount: r } = {}) {
|
|
41643
41644
|
const o = Da(), [l, s] = Ve(!1), { companies: c, total: d, atRiskCount: m, listTotal: f, isLoading: v, hasNextPage: g, isFetchingNextPage: y, refetch: h, fetchNextPage: b } = uA(
|
|
@@ -41684,7 +41685,8 @@ function Au({ filterBy: e, tabs: n, ciEnabled: t = !1, onAtRiskCount: a, onAllCo
|
|
|
41684
41685
|
name: zr(
|
|
41685
41686
|
j.generated_name ? j.generated_name : j.name
|
|
41686
41687
|
),
|
|
41687
|
-
health: t ? j.account_health : void 0
|
|
41688
|
+
health: t ? j.account_health : void 0,
|
|
41689
|
+
sentiment: t ? j.account_sentiment : void 0
|
|
41688
41690
|
}
|
|
41689
41691
|
),
|
|
41690
41692
|
domainDisplay: /* @__PURE__ */ u(
|