@flowengage/react-chatbot 6.0.15 → 6.0.16
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.
|
@@ -3305,6 +3305,7 @@ function Rr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
3305
3305
|
Xe((e) => e === "connected" ? e : "connecting");
|
|
3306
3306
|
return;
|
|
3307
3307
|
}
|
|
3308
|
+
(e === "failed" || e === "closed") && Pt(`peer:connection_${e}`);
|
|
3308
3309
|
}, n.oniceconnectionstatechange = () => {
|
|
3309
3310
|
let e = n.iceConnectionState;
|
|
3310
3311
|
if (e === "connected" || e === "completed") {
|
|
@@ -3316,6 +3317,7 @@ function Rr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
3316
3317
|
Xe((e) => e === "connected" ? e : "connecting");
|
|
3317
3318
|
return;
|
|
3318
3319
|
}
|
|
3320
|
+
(e === "failed" || e === "closed") && Pt(`peer:ice_${e}`);
|
|
3319
3321
|
}, n.onsignalingstatechange = () => {}, n.onicegatheringstatechange = () => {}, e.getTracks().forEach((t) => {
|
|
3320
3322
|
n.addTrack(t, e);
|
|
3321
3323
|
}), n.onicecandidate = (e) => {
|
|
@@ -26622,7 +26624,8 @@ function ZD({ src: e, name: t, imgStyle: n, initialsSpanStyle: r }) {
|
|
|
26622
26624
|
}, [o]), i ? /* @__PURE__ */ g("img", {
|
|
26623
26625
|
src: i,
|
|
26624
26626
|
alt: "",
|
|
26625
|
-
style: n
|
|
26627
|
+
style: n,
|
|
26628
|
+
onError: () => a(null)
|
|
26626
26629
|
}) : /* @__PURE__ */ g("span", {
|
|
26627
26630
|
style: r,
|
|
26628
26631
|
children: XD(t)
|
|
@@ -29105,27 +29108,30 @@ function dk(e, t) {
|
|
|
29105
29108
|
function fk(e, t) {
|
|
29106
29109
|
let n = String(t || "").toLowerCase().trim();
|
|
29107
29110
|
if (!n) return 0;
|
|
29108
|
-
let r = [
|
|
29109
|
-
|
|
29111
|
+
let r = (e.innerText || e.textContent || "").replace(/\s+/g, " ").trim(), i = [
|
|
29112
|
+
r,
|
|
29110
29113
|
e.value,
|
|
29111
29114
|
e.getAttribute("aria-label"),
|
|
29112
|
-
e.getAttribute("title")
|
|
29115
|
+
e.getAttribute("title"),
|
|
29116
|
+
e.getAttribute("data-text"),
|
|
29117
|
+
e.getAttribute("data-label")
|
|
29113
29118
|
].filter(Boolean).join(" ").toLowerCase().replace(/\s+/g, " ");
|
|
29114
|
-
if (
|
|
29115
|
-
let
|
|
29116
|
-
if (!
|
|
29117
|
-
let
|
|
29118
|
-
for (let e of
|
|
29119
|
-
return
|
|
29119
|
+
if (i.includes(n) || r.toLowerCase() === n) return 100;
|
|
29120
|
+
let a = n.split(/\s+/).filter((e) => e.length > 1);
|
|
29121
|
+
if (!a.length) return 0;
|
|
29122
|
+
let o = 0;
|
|
29123
|
+
for (let e of a) i.includes(e) && (o += 1);
|
|
29124
|
+
return o / a.length * 92;
|
|
29120
29125
|
}
|
|
29121
29126
|
function pk(e, t) {
|
|
29122
29127
|
let n = [];
|
|
29123
29128
|
KO((e) => {
|
|
29124
|
-
|
|
29129
|
+
let t = Array.from(e.querySelectorAll("button, [role=\"button\"], input[type=\"submit\"], input[type=\"button\"], a[href]"));
|
|
29130
|
+
n.push(...t.filter((e) => {
|
|
29125
29131
|
if (WO(e) || e.disabled) return !1;
|
|
29126
29132
|
try {
|
|
29127
29133
|
let t = GO(e);
|
|
29128
|
-
if (t.display === "none" || t.visibility === "hidden") return !1;
|
|
29134
|
+
if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0") return !1;
|
|
29129
29135
|
} catch {}
|
|
29130
29136
|
return !0;
|
|
29131
29137
|
}));
|
|
@@ -29135,7 +29141,7 @@ function pk(e, t) {
|
|
|
29135
29141
|
s: fk(t, e)
|
|
29136
29142
|
}));
|
|
29137
29143
|
for (let { s: e } of i) e > r && (r = e);
|
|
29138
|
-
if (r <
|
|
29144
|
+
if (r < 28) return null;
|
|
29139
29145
|
let a = i.filter(({ s: e }) => e === r).map(({ el: e }) => e);
|
|
29140
29146
|
if (a.length === 1) return a[0];
|
|
29141
29147
|
let o = Array.isArray(t) ? t.filter((e) => e && e.isConnected) : [];
|
|
@@ -29653,10 +29659,29 @@ function Dk(e) {
|
|
|
29653
29659
|
let t = e.replace("#", ""), n = t.length === 3 ? t.split("").map((e) => e + e).join("") : t, r = parseInt(n.slice(0, 2), 16) / 255, i = parseInt(n.slice(2, 4), 16) / 255, a = parseInt(n.slice(4, 6), 16) / 255, o = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
|
|
29654
29660
|
return .2126 * o(r) + .7152 * o(i) + .0722 * o(a) > .179 ? "#1a1a1a" : "#ffffff";
|
|
29655
29661
|
}
|
|
29656
|
-
function Ok(
|
|
29662
|
+
function Ok(t) {
|
|
29663
|
+
let [n, r] = e.useState(null), i = typeof t == "string" ? t.trim() : "";
|
|
29664
|
+
return e.useEffect(() => {
|
|
29665
|
+
if (!i) {
|
|
29666
|
+
r(null);
|
|
29667
|
+
return;
|
|
29668
|
+
}
|
|
29669
|
+
r(null);
|
|
29670
|
+
let e = !1, t = new window.Image();
|
|
29671
|
+
return t.onload = () => {
|
|
29672
|
+
e || r(i);
|
|
29673
|
+
}, t.onerror = () => {
|
|
29674
|
+
e || r(null);
|
|
29675
|
+
}, t.src = i, () => {
|
|
29676
|
+
e = !0;
|
|
29677
|
+
};
|
|
29678
|
+
}, [i]), n;
|
|
29679
|
+
}
|
|
29680
|
+
function kk({ logo: t, style: n }) {
|
|
29681
|
+
let r = Ok(typeof t == "string" ? t : null);
|
|
29657
29682
|
if (!t) return null;
|
|
29658
|
-
if (typeof t == "string") return /* @__PURE__ */ g("img", {
|
|
29659
|
-
src:
|
|
29683
|
+
if (typeof t == "string") return r ? /* @__PURE__ */ g("img", {
|
|
29684
|
+
src: r,
|
|
29660
29685
|
alt: "",
|
|
29661
29686
|
style: {
|
|
29662
29687
|
objectFit: "contain",
|
|
@@ -29664,9 +29689,9 @@ function Ok({ logo: t, style: n }) {
|
|
|
29664
29689
|
display: "block",
|
|
29665
29690
|
...n
|
|
29666
29691
|
}
|
|
29667
|
-
});
|
|
29668
|
-
let
|
|
29669
|
-
return
|
|
29692
|
+
}) : null;
|
|
29693
|
+
let i = typeof t == "function" ? e.createElement(t) : e.isValidElement(t) ? t : null;
|
|
29694
|
+
return i ? /* @__PURE__ */ g("span", {
|
|
29670
29695
|
className: "fe-logo-slot",
|
|
29671
29696
|
style: {
|
|
29672
29697
|
display: "inline-flex",
|
|
@@ -29675,10 +29700,10 @@ function Ok({ logo: t, style: n }) {
|
|
|
29675
29700
|
overflow: "hidden",
|
|
29676
29701
|
...n
|
|
29677
29702
|
},
|
|
29678
|
-
children:
|
|
29703
|
+
children: i
|
|
29679
29704
|
}) : null;
|
|
29680
29705
|
}
|
|
29681
|
-
function
|
|
29706
|
+
function Ak({ title: e }) {
|
|
29682
29707
|
return /* @__PURE__ */ g("div", {
|
|
29683
29708
|
style: {
|
|
29684
29709
|
width: "100%",
|
|
@@ -29696,17 +29721,17 @@ function kk({ title: e }) {
|
|
|
29696
29721
|
children: String(e || "FE").split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() || "").join("") || "FE"
|
|
29697
29722
|
});
|
|
29698
29723
|
}
|
|
29699
|
-
function
|
|
29724
|
+
function jk(e, t) {
|
|
29700
29725
|
let n = (t || "").trim();
|
|
29701
29726
|
return n ? !!(/\b(let'?s|let us)\s+(end|stop|finish|wrap up|close)\s+(the\s+)?(voice\s+)?(session|call|chat)\b/i.test(n) || /\bend\s+(this\s+)?(the\s+)?(voice\s+)?(session|call|chat)\b/i.test(n) || /\b(hang\s+up|disconnect)\b/i.test(n) || /\b(that'?s all|we'?re done)\b/i.test(n) || e === "bot" && (/\b(I'?ll|I will|Let me|I can|I'?m going to)\s+(end|close)\s+(the\s+)?(voice\s+)?(session|call)\b/i.test(n) || /\b(ending|closing)\s+(the\s+)?(voice\s+)?session\b|\bvoice\s+session\s+(is\s+)?(now\s+)?(ended|over|closing)\b/i.test(n) || /\b(session|call)\s+(is\s+)?(now\s+)?(ended|over)\b/i.test(n) || /\bwe\s+can\s+end\s+(the\s+)?(session|call)?\s*(here|now)\b/i.test(n) || /\b(wrapping\s+up|signing\s+off)\b/i.test(n)) || /^(goodbye|bye|that'?s all|we'?re done|hang up|disconnect)\b/i.test(n)) : !1;
|
|
29702
29727
|
}
|
|
29703
|
-
function
|
|
29728
|
+
function Mk({ orbColors: e, ...t }) {
|
|
29704
29729
|
return /* @__PURE__ */ g(lO, {
|
|
29705
29730
|
colors: e,
|
|
29706
29731
|
...t
|
|
29707
29732
|
});
|
|
29708
29733
|
}
|
|
29709
|
-
function
|
|
29734
|
+
function Nk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMobile: a, isClosing: o }) {
|
|
29710
29735
|
let s = n || Tk.green, c = Dk(s), l = a ? 72 : 94, u = /* @__PURE__ */ _("div", {
|
|
29711
29736
|
style: {
|
|
29712
29737
|
display: "flex",
|
|
@@ -29828,7 +29853,7 @@ function Mk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMo
|
|
|
29828
29853
|
delay: 0
|
|
29829
29854
|
},
|
|
29830
29855
|
style: { flexShrink: 0 },
|
|
29831
|
-
children: /* @__PURE__ */ g(
|
|
29856
|
+
children: /* @__PURE__ */ g(Mk, {
|
|
29832
29857
|
size: l,
|
|
29833
29858
|
orbColors: t
|
|
29834
29859
|
})
|
|
@@ -29860,7 +29885,7 @@ function Mk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMo
|
|
|
29860
29885
|
children: u
|
|
29861
29886
|
})] });
|
|
29862
29887
|
}
|
|
29863
|
-
function
|
|
29888
|
+
function Pk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onClose: a, isMobile: o, isClosing: s }) {
|
|
29864
29889
|
let c = n || Tk.green, l = Dk(c);
|
|
29865
29890
|
return /* @__PURE__ */ _(Dm.div, {
|
|
29866
29891
|
initial: {
|
|
@@ -29932,7 +29957,7 @@ function Nk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onC
|
|
|
29932
29957
|
children: /* @__PURE__ */ g("polyline", { points: "6 9 12 15 18 9" })
|
|
29933
29958
|
})
|
|
29934
29959
|
}),
|
|
29935
|
-
/* @__PURE__ */ g(
|
|
29960
|
+
/* @__PURE__ */ g(Mk, {
|
|
29936
29961
|
size: 72,
|
|
29937
29962
|
orbColors: t
|
|
29938
29963
|
}),
|
|
@@ -30001,7 +30026,7 @@ function Nk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onC
|
|
|
30001
30026
|
]
|
|
30002
30027
|
});
|
|
30003
30028
|
}
|
|
30004
|
-
function
|
|
30029
|
+
function Fk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i, apiBaseUrl: a, chatId: s, historyRef: l, onMessageSync: u, voiceEndCounter: d }) {
|
|
30005
30030
|
let [f, h] = m("idle"), [v, y] = m(!1), [b, x] = m(!1), S = p(null), C = p(""), w = p(async () => {}), T = p(!1), ee = p(!1), te = p(!1), ne = p(!1), re = p("minimized"), E = p(null), ie = p(null), ae = p(null), oe = p(0), D = p(!1), se = p("idle"), ce = p(!1), le = p(null), ue = p(null), de = p(!1), fe = o((e = "minimized") => {
|
|
30006
30031
|
re.current = e, ne.current = !0, queueMicrotask(() => {
|
|
30007
30032
|
T.current || (T.current = !0, w.current?.());
|
|
@@ -30153,7 +30178,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
|
|
|
30153
30178
|
let e = vO(l.current);
|
|
30154
30179
|
e && Ae(i, e);
|
|
30155
30180
|
} catch {}
|
|
30156
|
-
if (
|
|
30181
|
+
if (jk(n, r)) {
|
|
30157
30182
|
fe("minimized");
|
|
30158
30183
|
return;
|
|
30159
30184
|
}
|
|
@@ -30317,7 +30342,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
|
|
|
30317
30342
|
},
|
|
30318
30343
|
children: "Muted"
|
|
30319
30344
|
}),
|
|
30320
|
-
/* @__PURE__ */ g(
|
|
30345
|
+
/* @__PURE__ */ g(Mk, {
|
|
30321
30346
|
size: 72,
|
|
30322
30347
|
voiceState: f,
|
|
30323
30348
|
isMuted: v,
|
|
@@ -30555,7 +30580,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
|
|
|
30555
30580
|
]
|
|
30556
30581
|
});
|
|
30557
30582
|
}
|
|
30558
|
-
function
|
|
30583
|
+
function Ik({ orbColors: e }) {
|
|
30559
30584
|
return /* @__PURE__ */ g("div", {
|
|
30560
30585
|
style: {
|
|
30561
30586
|
flexShrink: 0,
|
|
@@ -30565,13 +30590,13 @@ function Fk({ orbColors: e }) {
|
|
|
30565
30590
|
alignItems: "center",
|
|
30566
30591
|
justifyContent: "center"
|
|
30567
30592
|
},
|
|
30568
|
-
children: /* @__PURE__ */ g(
|
|
30593
|
+
children: /* @__PURE__ */ g(Mk, {
|
|
30569
30594
|
size: 36,
|
|
30570
30595
|
orbColors: e
|
|
30571
30596
|
})
|
|
30572
30597
|
});
|
|
30573
30598
|
}
|
|
30574
|
-
var
|
|
30599
|
+
var Lk = () => /* @__PURE__ */ g("div", {
|
|
30575
30600
|
style: {
|
|
30576
30601
|
display: "flex",
|
|
30577
30602
|
marginBottom: "12px",
|
|
@@ -30601,7 +30626,7 @@ var Ik = () => /* @__PURE__ */ g("div", {
|
|
|
30601
30626
|
} }, e))
|
|
30602
30627
|
})
|
|
30603
30628
|
});
|
|
30604
|
-
function
|
|
30629
|
+
function Rk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i, quickChatOptions: a, onQuickChatSelect: o, isMobile: s, chatHistory: l, isAiTyping: u, isAgentTyping: d, activeScreen: f, agentName: v, agentHeadshot: y, fallbackAgentName: b, input: x, setInput: S, onSubmit: C, isConversationEnded: w, isLoading: T, isRateLimited: ee, rateLimitMessage: te, selectedFile: ne, onFileSelect: re, onRemoveSelectedFile: E, attachmentError: ie, isUploadingAttachment: ae, requiresEmail: oe, emailInput: D, setEmailInput: se, emailError: ce, emailCaptureSuccess: le, replyContext: ue, setReplyContext: de, webRTCError: fe, micError: pe, setMicError: me, dismissCallError: he, activeCallId: ge, isCallMuted: _e, toggleCallMute: ve, endWebRTCCall: ye, formatCallDuration: be, callDurationSeconds: xe, isCallMinimized: Se, onExpand: Ce, onCollapse: we, onStartVoice: Te, onNewChat: Ee, showPoweredBy: De, getVisitorChatHistory: Oe, resumeChat: ke, isSessionRestoring: Ae, isClosing: je }) {
|
|
30605
30630
|
let Me = l.length > 0, Ne = T || ee || w, Pe = !!ge, [Fe, Ie] = m(!1), [Le, Re] = m(!1), [ze, Be] = m([]), [Ve, He] = m(!1), O = p(null), Ue = async () => {
|
|
30606
30631
|
Ie(!1), Re(!0), He(!0);
|
|
30607
30632
|
try {
|
|
@@ -30726,7 +30751,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
|
|
|
30726
30751
|
justifyContent: "center",
|
|
30727
30752
|
height: "40px"
|
|
30728
30753
|
},
|
|
30729
|
-
children: i ? /* @__PURE__ */ g(
|
|
30754
|
+
children: i ? /* @__PURE__ */ g(kk, {
|
|
30730
30755
|
logo: i,
|
|
30731
30756
|
style: {
|
|
30732
30757
|
height: "34px",
|
|
@@ -30739,7 +30764,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
|
|
|
30739
30764
|
height: "40px",
|
|
30740
30765
|
flexShrink: 0
|
|
30741
30766
|
},
|
|
30742
|
-
children: /* @__PURE__ */ g(
|
|
30767
|
+
children: /* @__PURE__ */ g(Ak, { title: e.chatTitle })
|
|
30743
30768
|
})
|
|
30744
30769
|
}), /* @__PURE__ */ g("div", {
|
|
30745
30770
|
style: {
|
|
@@ -31169,11 +31194,11 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
|
|
|
31169
31194
|
isLoading: T,
|
|
31170
31195
|
isAgentTyping: d,
|
|
31171
31196
|
setReplyContext: de,
|
|
31172
|
-
TypingDots:
|
|
31197
|
+
TypingDots: Lk,
|
|
31173
31198
|
primaryColor: n,
|
|
31174
31199
|
agentHeadshot: y,
|
|
31175
31200
|
agentDisplayName: v || b,
|
|
31176
|
-
botAvatarNode: /* @__PURE__ */ g(
|
|
31201
|
+
botAvatarNode: /* @__PURE__ */ g(Ik, { orbColors: t })
|
|
31177
31202
|
}) : Ae ? /* @__PURE__ */ _("div", {
|
|
31178
31203
|
style: {
|
|
31179
31204
|
flex: 1,
|
|
@@ -31214,7 +31239,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
|
|
|
31214
31239
|
padding: "28px 24px"
|
|
31215
31240
|
},
|
|
31216
31241
|
children: [
|
|
31217
|
-
/* @__PURE__ */ g(
|
|
31242
|
+
/* @__PURE__ */ g(Mk, {
|
|
31218
31243
|
size: 94,
|
|
31219
31244
|
orbColors: t
|
|
31220
31245
|
}),
|
|
@@ -31355,7 +31380,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
|
|
|
31355
31380
|
]
|
|
31356
31381
|
});
|
|
31357
31382
|
}
|
|
31358
|
-
function
|
|
31383
|
+
function zk() {
|
|
31359
31384
|
let { status: e, runtimeConfig: t, resolvedConfig: n, chatHistory: r, isOpen: i, activeScreen: a, isHumanHandled: s, agentName: l, agentHeadshot: u, visitorEmail: h, isAgentTyping: v, isAiTyping: y, isLoading: b, isRateLimited: x, rateLimitMessage: S, isConversationEnded: C, incomingCall: w, activeCallId: T, callConnectionState: ee, callConnectedAt: te, isCallMuted: ne, webRTCError: re, language: E, chatId: ie, historyRef: ae, onMessageSync: oe, sendMessage: D, uploadChatFile: se, openWidget: ce, captureVisitorEmail: le, setVoiceMode: ue, endConversation: de, startNewChat: me, acceptCall: he, rejectCall: ge, endWebRTCCall: _e, toggleCallMute: ve, dismissCallError: ye, startTyping: be, stopTyping: xe, updateTypingDraft: Se, getVisitorChatHistory: Ce, resumeChat: we, isSessionRestoring: Te, openToChatCounter: Ee, voiceEndCounter: De } = Ln();
|
|
31360
31385
|
c(() => {
|
|
31361
31386
|
try {
|
|
@@ -31615,9 +31640,9 @@ function Rk() {
|
|
|
31615
31640
|
bottom: "1.5rem"
|
|
31616
31641
|
}, Gt = o(() => {
|
|
31617
31642
|
A !== "minimized_orb" && (At(!0), setTimeout(() => {
|
|
31618
|
-
st("minimized_orb"), At(!1);
|
|
31643
|
+
st("minimized_orb"), At(!1), T && Ot(!0);
|
|
31619
31644
|
}, 280));
|
|
31620
|
-
}, [A]), Kt = () => st("connection_modal"), qt = () => {
|
|
31645
|
+
}, [T, A]), Kt = () => st("connection_modal"), qt = () => {
|
|
31621
31646
|
try {
|
|
31622
31647
|
let e = window.AudioContext || window.webkitAudioContext;
|
|
31623
31648
|
if (e) {
|
|
@@ -31641,7 +31666,7 @@ function Rk() {
|
|
|
31641
31666
|
onWheel: (e) => e.stopPropagation(),
|
|
31642
31667
|
onTouchMove: (e) => e.stopPropagation(),
|
|
31643
31668
|
children: [
|
|
31644
|
-
A === "entry_prompt" && /* @__PURE__ */ g(
|
|
31669
|
+
A === "entry_prompt" && /* @__PURE__ */ g(Nk, {
|
|
31645
31670
|
copy: Qe,
|
|
31646
31671
|
orbColors: Le,
|
|
31647
31672
|
primaryColor: ze,
|
|
@@ -31676,7 +31701,7 @@ function Rk() {
|
|
|
31676
31701
|
alignItems: He === "bottom-left" ? "flex-start" : "flex-end",
|
|
31677
31702
|
gap: "10px"
|
|
31678
31703
|
},
|
|
31679
|
-
children: [T &&
|
|
31704
|
+
children: [T && /* @__PURE__ */ _("button", {
|
|
31680
31705
|
type: "button",
|
|
31681
31706
|
onClick: Lt,
|
|
31682
31707
|
style: {
|
|
@@ -31724,13 +31749,13 @@ function Rk() {
|
|
|
31724
31749
|
children: ee === "connected" ? `${Ht(_t)} with ${nt}` : `Tap to return to ${nt}`
|
|
31725
31750
|
})]
|
|
31726
31751
|
})]
|
|
31727
|
-
}), /* @__PURE__ */ g(
|
|
31752
|
+
}), /* @__PURE__ */ g(Mk, {
|
|
31728
31753
|
size: Ve,
|
|
31729
31754
|
orbColors: Le,
|
|
31730
|
-
onClick: T
|
|
31755
|
+
onClick: T ? Lt : Ie ? Kt : Jt
|
|
31731
31756
|
})]
|
|
31732
31757
|
}),
|
|
31733
|
-
A === "connection_modal" && /* @__PURE__ */ g(
|
|
31758
|
+
A === "connection_modal" && /* @__PURE__ */ g(Pk, {
|
|
31734
31759
|
copy: Qe,
|
|
31735
31760
|
orbColors: Le,
|
|
31736
31761
|
primaryColor: ze,
|
|
@@ -31740,7 +31765,7 @@ function Rk() {
|
|
|
31740
31765
|
isMobile: Nt,
|
|
31741
31766
|
isClosing: kt
|
|
31742
31767
|
}),
|
|
31743
|
-
A === "voice_mode" && /* @__PURE__ */ g(
|
|
31768
|
+
A === "voice_mode" && /* @__PURE__ */ g(Fk, {
|
|
31744
31769
|
orbColors: Le,
|
|
31745
31770
|
onEnterChat: Jt,
|
|
31746
31771
|
onEndChat: Yt,
|
|
@@ -31771,7 +31796,7 @@ function Rk() {
|
|
|
31771
31796
|
orbColors: Le,
|
|
31772
31797
|
chatHistory: r
|
|
31773
31798
|
}),
|
|
31774
|
-
A === "text_chat" && /* @__PURE__ */ g(
|
|
31799
|
+
A === "text_chat" && /* @__PURE__ */ g(Rk, {
|
|
31775
31800
|
isClosing: kt,
|
|
31776
31801
|
copy: Qe,
|
|
31777
31802
|
orbColors: Le,
|
|
@@ -31822,7 +31847,7 @@ function Rk() {
|
|
|
31822
31847
|
onNewChat: Vt,
|
|
31823
31848
|
onMinimize: Rt,
|
|
31824
31849
|
onExpand: Lt,
|
|
31825
|
-
isCallMinimized:
|
|
31850
|
+
isCallMinimized: !!T,
|
|
31826
31851
|
showPoweredBy: Ye,
|
|
31827
31852
|
getVisitorChatHistory: Ce,
|
|
31828
31853
|
resumeChat: we,
|
|
@@ -31834,7 +31859,7 @@ function Rk() {
|
|
|
31834
31859
|
}
|
|
31835
31860
|
//#endregion
|
|
31836
31861
|
//#region src/components/ErrorBoundary.jsx
|
|
31837
|
-
var
|
|
31862
|
+
var Bk = class extends e.Component {
|
|
31838
31863
|
constructor(e) {
|
|
31839
31864
|
super(e), this.state = { hasError: !1 };
|
|
31840
31865
|
}
|
|
@@ -31849,4 +31874,4 @@ var zk = class extends e.Component {
|
|
|
31849
31874
|
}
|
|
31850
31875
|
};
|
|
31851
31876
|
//#endregion
|
|
31852
|
-
export { lO as AnimatedOrb,
|
|
31877
|
+
export { lO as AnimatedOrb, Bk as ErrorBoundary, Rr as FlowEngageProvider, zk as FlowEngageWidget, Ln as useFlowEngage };
|