customer-module-frontend 2.1.1 → 2.1.2
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
CHANGED
|
@@ -24000,8 +24000,11 @@ const rf = (e) => {
|
|
|
24000
24000
|
return n === 0 ? `${t}s` : `${n}m ${t}s`;
|
|
24001
24001
|
}, v7 = (e) => {
|
|
24002
24002
|
if (!e) return "Voice call";
|
|
24003
|
-
const n = e.direction === "inbound" ? "
|
|
24004
|
-
|
|
24003
|
+
const n = e.direction === "inbound" ? "Incoming Call" : "Outgoing Call";
|
|
24004
|
+
if (e.voicemailAvailable) return "Voicemail";
|
|
24005
|
+
if (e.isMissedCall) return "Missed Call";
|
|
24006
|
+
const t = e.callState === "completed" ? g7(e.durationSeconds) : e.callState === "in-progress" ? "In progress" : "Ringing";
|
|
24007
|
+
return `${n} · ${t}`;
|
|
24005
24008
|
}, ls = ({ dividerHeight: e }) => /* @__PURE__ */ f("div", { className: `${e} cm:w-px cm:bg-slate-border-light cm:shrink-0` }), Qs = ({
|
|
24006
24009
|
hasAccess: e = !0,
|
|
24007
24010
|
type: n,
|
|
@@ -26913,7 +26916,9 @@ const n8 = async (e, n) => (await Qn.patch(
|
|
|
26913
26916
|
direction: e.direction,
|
|
26914
26917
|
callState: e.call_state,
|
|
26915
26918
|
durationSeconds: e.duration_seconds,
|
|
26916
|
-
customerPhoneNumber: e.customer_phone_number
|
|
26919
|
+
customerPhoneNumber: e.customer_phone_number,
|
|
26920
|
+
isMissedCall: e.is_missed_call ?? !1,
|
|
26921
|
+
voicemailAvailable: e.voicemail_available ?? !1
|
|
26917
26922
|
}), Np = (e, n) => n ? "voice" : e ? e.toLowerCase() === "email" ? "email" : "chat" : "email", Rp = (e, n, t) => {
|
|
26918
26923
|
const a = Pp(), r = !!e.voice || e.channel === "space";
|
|
26919
26924
|
if (!a && r) return null;
|