@flowengage/react-chatbot 8.0.22 → 8.0.23
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.
|
@@ -3578,7 +3578,7 @@ function Gr({ siteId: e, config: t, children: n, language: r = "en" }) {
|
|
|
3578
3578
|
let en = async (e, t = "", n = null, a = {}) => {
|
|
3579
3579
|
let o = typeof e == "string" ? e.trim() : "";
|
|
3580
3580
|
if (!o || !j.current || !y || l !== "ready" || He) return;
|
|
3581
|
-
Zt();
|
|
3581
|
+
Zt(), mt.current = !1;
|
|
3582
3582
|
let s = /^\s*(yes|yeah|sure|ok|okay|go ahead|take me(?: there)?(?!\s+\w)|navigate(?!\s+(?:me\s+)?to\s+\w)|yep|absolutely|please do|do it|let'?s go|go there|show me(?!\s+(?:the|a|an)\s+\w)|go to it|bring me there|navigate me there)\b/i, c = /^\s*(?:yes|yeah|sure|ok|okay|yep|absolutely)\s+(?!(?:please|do\s+it|let'?s|that|this|there|it|thanks|go|cool|great|perfect|sounds|alright|proceed)\b)\w/i, u = /\b(take me|navigate|go to|show me|bring me|open|go there|navigate to|take me to|let'?s go to)\b/i;
|
|
3583
3583
|
if (pt.current && s.test(o) && !c.test(o)) {
|
|
3584
3584
|
let { url: e, section: t } = pt.current;
|