@2uinc/frontend-component-xpert-chatbot 1.21.0-beta.1 → 1.21.0-beta.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/lib/index.min.js +169 -168
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -203,8 +203,8 @@ const g = /* @__PURE__ */ at(wo);
|
|
203
203
|
var On = { exports: {} };
|
204
204
|
On.exports;
|
205
205
|
(function(e, t) {
|
206
|
-
var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", b = "[object Error]", d = "[object Function]", C = "[object GeneratorFunction]", x = "[object Map]", _ = "[object Number]", k = "[object Null]", B = "[object Object]",
|
207
|
-
m[P] = m[S] = m[I] = m[A] = m[E] = m[O] = m[N] = m[
|
206
|
+
var n = 200, r = "__lodash_hash_undefined__", i = 800, a = 16, o = 9007199254740991, l = "[object Arguments]", u = "[object Array]", s = "[object AsyncFunction]", c = "[object Boolean]", f = "[object Date]", b = "[object Error]", d = "[object Function]", C = "[object GeneratorFunction]", x = "[object Map]", _ = "[object Number]", k = "[object Null]", B = "[object Object]", L = "[object Proxy]", U = "[object RegExp]", j = "[object Set]", v = "[object String]", D = "[object Undefined]", H = "[object WeakMap]", V = "[object ArrayBuffer]", q = "[object DataView]", P = "[object Float32Array]", S = "[object Float64Array]", I = "[object Int8Array]", A = "[object Int16Array]", E = "[object Int32Array]", O = "[object Uint8Array]", N = "[object Uint8ClampedArray]", M = "[object Uint16Array]", $ = "[object Uint32Array]", p = /[\\^$.*+?()[\]{}|]/g, G = /^\[object .+?Constructor\]$/, J = /^(?:0|[1-9]\d*)$/, m = {};
|
207
|
+
m[P] = m[S] = m[I] = m[A] = m[E] = m[O] = m[N] = m[M] = m[$] = !0, m[l] = m[u] = m[V] = m[c] = m[q] = m[f] = m[b] = m[d] = m[x] = m[_] = m[B] = m[U] = m[j] = m[v] = m[H] = !1;
|
208
208
|
var te = typeof he == "object" && he && he.Object === Object && he, fe = typeof self == "object" && self && self.Object === Object && self, re = te || fe || Function("return this")(), xe = t && !t.nodeType && t, ke = xe && !0 && e && !e.nodeType && e, Ee = ke && ke.exports === xe, de = Ee && te.process, Oe = function() {
|
209
209
|
try {
|
210
210
|
var h = ke && ke.require && ke.require("util").types;
|
@@ -632,7 +632,7 @@ On.exports;
|
|
632
632
|
if (!xt(h))
|
633
633
|
return !1;
|
634
634
|
var w = hn(h);
|
635
|
-
return w == d || w == C || w == s || w ==
|
635
|
+
return w == d || w == C || w == s || w == L;
|
636
636
|
}
|
637
637
|
function Wi(h) {
|
638
638
|
return typeof h == "number" && h > -1 && h % 1 == 0 && h <= o;
|
@@ -1636,8 +1636,8 @@ eyes follow your mouse when you hover near it.`, li = ({
|
|
1636
1636
|
};
|
1637
1637
|
}, [l]), Se(() => {
|
1638
1638
|
const k = (B) => {
|
1639
|
-
const
|
1640
|
-
if (!(o != null && o.current) || c ||
|
1639
|
+
const L = window.devicePixelRatio > 1.5;
|
1640
|
+
if (!(o != null && o.current) || c || L)
|
1641
1641
|
return;
|
1642
1642
|
a.current.querySelectorAll(
|
1643
1643
|
".xpert_chatbot__animated_graduate__pupil"
|
@@ -2172,14 +2172,14 @@ function Hu(e, t) {
|
|
2172
2172
|
let a = n.body;
|
2173
2173
|
[n, r].forEach((x) => {
|
2174
2174
|
const _ = [], k = x.hFlip, B = x.vFlip;
|
2175
|
-
let
|
2176
|
-
k ? B ?
|
2175
|
+
let L = x.rotate;
|
2176
|
+
k ? B ? L += 2 : (_.push(
|
2177
2177
|
"translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"
|
2178
2178
|
), _.push("scale(-1 1)"), i.top = i.left = 0) : B && (_.push(
|
2179
2179
|
"translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"
|
2180
2180
|
), _.push("scale(1 -1)"), i.top = i.left = 0);
|
2181
2181
|
let U;
|
2182
|
-
switch (
|
2182
|
+
switch (L < 0 && (L -= Math.floor(L / 4) * 4), L = L % 4, L) {
|
2183
2183
|
case 1:
|
2184
2184
|
U = i.height / 2 + i.top, _.unshift(
|
2185
2185
|
"rotate(90 " + U.toString() + " " + U.toString() + ")"
|
@@ -2196,7 +2196,7 @@ function Hu(e, t) {
|
|
2196
2196
|
);
|
2197
2197
|
break;
|
2198
2198
|
}
|
2199
|
-
|
2199
|
+
L % 2 === 1 && (i.left !== i.top && (U = i.left, i.left = i.top, i.top = U), i.width !== i.height && (U = i.width, i.width = i.height, i.height = U)), _.length && (a = Bu(
|
2200
2200
|
a,
|
2201
2201
|
'<g transform="' + _.join(" ") + '">',
|
2202
2202
|
"</g>"
|
@@ -2531,7 +2531,7 @@ function lc(e, t, n, r) {
|
|
2531
2531
|
v(void 0, c);
|
2532
2532
|
});
|
2533
2533
|
}
|
2534
|
-
function
|
2534
|
+
function L() {
|
2535
2535
|
b.forEach((v) => {
|
2536
2536
|
v.status === "pending" && (v.status = "aborted");
|
2537
2537
|
}), b = [];
|
@@ -2556,7 +2556,7 @@ function lc(e, t, n, r) {
|
|
2556
2556
|
c = H, b.length || (o.length ? j() : B());
|
2557
2557
|
return;
|
2558
2558
|
}
|
2559
|
-
if (C(),
|
2559
|
+
if (C(), L(), !e.random) {
|
2560
2560
|
const q = e.resources.indexOf(v.resource);
|
2561
2561
|
q !== -1 && q !== e.index && (e.index = q);
|
2562
2562
|
}
|
@@ -2572,7 +2572,7 @@ function lc(e, t, n, r) {
|
|
2572
2572
|
if (v === void 0) {
|
2573
2573
|
if (b.length) {
|
2574
2574
|
f = setTimeout(() => {
|
2575
|
-
C(), u === "pending" && (
|
2575
|
+
C(), u === "pending" && (L(), B());
|
2576
2576
|
}, e.timeout);
|
2577
2577
|
return;
|
2578
2578
|
}
|
@@ -2988,8 +2988,8 @@ const Ac = (e, t, n) => {
|
|
2988
2988
|
"provider",
|
2989
2989
|
"prefix"
|
2990
2990
|
];
|
2991
|
-
for (const
|
2992
|
-
_[
|
2991
|
+
for (const L of B)
|
2992
|
+
_[L] && k.push("iconify--" + _[L]);
|
2993
2993
|
u.className = k.join(" ");
|
2994
2994
|
}
|
2995
2995
|
}
|
@@ -3294,7 +3294,7 @@ function Xn({
|
|
3294
3294
|
text: o,
|
3295
3295
|
userTrackingName: l
|
3296
3296
|
}) {
|
3297
|
-
var k, B,
|
3297
|
+
var k, B, L, U;
|
3298
3298
|
const [u, s] = ee(!0), { primaryColor: c, id: f, userTracking: b, conversationScreen: d } = ne(Te), C = St(
|
3299
3299
|
(j) => {
|
3300
3300
|
var v, D, H, V;
|
@@ -3328,7 +3328,7 @@ function Xn({
|
|
3328
3328
|
}, [
|
3329
3329
|
(k = d == null ? void 0 : d.liveChat) == null ? void 0 : k.enabled,
|
3330
3330
|
(B = d == null ? void 0 : d.liveChat) == null ? void 0 : B.options,
|
3331
|
-
(
|
3331
|
+
(L = d == null ? void 0 : d.liveChat) == null ? void 0 : L.sourceCode,
|
3332
3332
|
(U = d == null ? void 0 : d.liveChat) == null ? void 0 : U.useOwnChat,
|
3333
3333
|
C,
|
3334
3334
|
x
|
@@ -3988,7 +3988,7 @@ function Yo() {
|
|
3988
3988
|
if (Fr("use", r), x != null) if (typeof x == "function")
|
3989
3989
|
j(x, ..._);
|
3990
3990
|
else if (typeof x == "object")
|
3991
|
-
Array.isArray(x) ? U(x) :
|
3991
|
+
Array.isArray(x) ? U(x) : L(x);
|
3992
3992
|
else
|
3993
3993
|
throw new TypeError("Expected usable value, not `" + x + "`");
|
3994
3994
|
return k && (n.settings = Object.assign(n.settings || {}, k)), a;
|
@@ -4000,11 +4000,11 @@ function Yo() {
|
|
4000
4000
|
const [D, ...H] = v;
|
4001
4001
|
j(D, ...H);
|
4002
4002
|
} else
|
4003
|
-
|
4003
|
+
L(v);
|
4004
4004
|
else
|
4005
4005
|
throw new TypeError("Expected usable value, not `" + v + "`");
|
4006
4006
|
}
|
4007
|
-
function
|
4007
|
+
function L(v) {
|
4008
4008
|
U(v.plugins), v.settings && (k = Object.assign(k || {}, v.settings));
|
4009
4009
|
}
|
4010
4010
|
function U(v) {
|
@@ -4041,17 +4041,17 @@ function Yo() {
|
|
4041
4041
|
if (Ea(x), a.freeze(), !k && typeof _ == "function" && (k = _, _ = void 0), !k)
|
4042
4042
|
return new Promise(B);
|
4043
4043
|
B(null, k);
|
4044
|
-
function B(
|
4044
|
+
function B(L, U) {
|
4045
4045
|
e.run(x, Xt(_), j);
|
4046
4046
|
function j(v, D, H) {
|
4047
|
-
D = D || x, v ? U(v) :
|
4047
|
+
D = D || x, v ? U(v) : L ? L(D) : k(null, D, H);
|
4048
4048
|
}
|
4049
4049
|
}
|
4050
4050
|
}
|
4051
4051
|
function b(x, _) {
|
4052
4052
|
let k, B;
|
4053
|
-
return a.run(x, _,
|
4054
|
-
function
|
4053
|
+
return a.run(x, _, L), Ta("runSync", "run", B), k;
|
4054
|
+
function L(U, j) {
|
4055
4055
|
ya(U), k = j, B = !0;
|
4056
4056
|
}
|
4057
4057
|
}
|
@@ -4059,7 +4059,7 @@ function Yo() {
|
|
4059
4059
|
if (a.freeze(), Ir("process", a.Parser), Ar("process", a.Compiler), !_)
|
4060
4060
|
return new Promise(k);
|
4061
4061
|
k(null, _);
|
4062
|
-
function k(B,
|
4062
|
+
function k(B, L) {
|
4063
4063
|
const U = Xt(x);
|
4064
4064
|
a.run(a.parse(U), U, (v, D, H) => {
|
4065
4065
|
if (v || !D || !H)
|
@@ -4070,7 +4070,7 @@ function Yo() {
|
|
4070
4070
|
}
|
4071
4071
|
});
|
4072
4072
|
function j(v, D) {
|
4073
|
-
v || !D ?
|
4073
|
+
v || !D ? L(v) : B ? B(D) : _(null, D);
|
4074
4074
|
}
|
4075
4075
|
}
|
4076
4076
|
}
|
@@ -4079,8 +4079,8 @@ function Yo() {
|
|
4079
4079
|
a.freeze(), Ir("processSync", a.Parser), Ar("processSync", a.Compiler);
|
4080
4080
|
const k = Xt(x);
|
4081
4081
|
return a.process(k, B), Ta("processSync", "process", _), k;
|
4082
|
-
function B(
|
4083
|
-
_ = !0, ya(
|
4082
|
+
function B(L) {
|
4083
|
+
_ = !0, ya(L);
|
4084
4084
|
}
|
4085
4085
|
}
|
4086
4086
|
}
|
@@ -4284,18 +4284,18 @@ function mf(e) {
|
|
4284
4284
|
const t = this, n = [];
|
4285
4285
|
let r = 0, i, a, o;
|
4286
4286
|
return l;
|
4287
|
-
function l(
|
4287
|
+
function l(L) {
|
4288
4288
|
if (r < n.length) {
|
4289
4289
|
const U = n[r];
|
4290
4290
|
return t.containerState = U[1], e.attempt(
|
4291
4291
|
U[0].continuation,
|
4292
4292
|
u,
|
4293
4293
|
s
|
4294
|
-
)(
|
4294
|
+
)(L);
|
4295
4295
|
}
|
4296
|
-
return s(
|
4296
|
+
return s(L);
|
4297
4297
|
}
|
4298
|
-
function u(
|
4298
|
+
function u(L) {
|
4299
4299
|
if (r++, t.containerState._closeFlow) {
|
4300
4300
|
t.containerState._closeFlow = void 0, i && B();
|
4301
4301
|
const U = t.events.length;
|
@@ -4314,61 +4314,61 @@ function mf(e) {
|
|
4314
4314
|
j + 1,
|
4315
4315
|
0,
|
4316
4316
|
t.events.slice(U)
|
4317
|
-
), t.events.length = D, s(
|
4317
|
+
), t.events.length = D, s(L);
|
4318
4318
|
}
|
4319
|
-
return l(
|
4319
|
+
return l(L);
|
4320
4320
|
}
|
4321
|
-
function s(
|
4321
|
+
function s(L) {
|
4322
4322
|
if (r === n.length) {
|
4323
4323
|
if (!i)
|
4324
|
-
return b(
|
4324
|
+
return b(L);
|
4325
4325
|
if (i.currentConstruct && i.currentConstruct.concrete)
|
4326
|
-
return C(
|
4326
|
+
return C(L);
|
4327
4327
|
t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
|
4328
4328
|
}
|
4329
4329
|
return t.containerState = {}, e.check(
|
4330
4330
|
Ia,
|
4331
4331
|
c,
|
4332
4332
|
f
|
4333
|
-
)(
|
4333
|
+
)(L);
|
4334
4334
|
}
|
4335
|
-
function c(
|
4336
|
-
return i && B(), k(r), b(
|
4335
|
+
function c(L) {
|
4336
|
+
return i && B(), k(r), b(L);
|
4337
4337
|
}
|
4338
|
-
function f(
|
4339
|
-
return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, C(
|
4338
|
+
function f(L) {
|
4339
|
+
return t.parser.lazy[t.now().line] = r !== n.length, o = t.now().offset, C(L);
|
4340
4340
|
}
|
4341
|
-
function b(
|
4341
|
+
function b(L) {
|
4342
4342
|
return t.containerState = {}, e.attempt(
|
4343
4343
|
Ia,
|
4344
4344
|
d,
|
4345
4345
|
C
|
4346
|
-
)(
|
4346
|
+
)(L);
|
4347
4347
|
}
|
4348
|
-
function d(
|
4349
|
-
return r++, n.push([t.currentConstruct, t.containerState]), b(
|
4348
|
+
function d(L) {
|
4349
|
+
return r++, n.push([t.currentConstruct, t.containerState]), b(L);
|
4350
4350
|
}
|
4351
|
-
function C(
|
4352
|
-
if (
|
4353
|
-
i && B(), k(0), e.consume(
|
4351
|
+
function C(L) {
|
4352
|
+
if (L === null) {
|
4353
|
+
i && B(), k(0), e.consume(L);
|
4354
4354
|
return;
|
4355
4355
|
}
|
4356
4356
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
4357
4357
|
contentType: "flow",
|
4358
4358
|
previous: a,
|
4359
4359
|
_tokenizer: i
|
4360
|
-
}), x(
|
4360
|
+
}), x(L);
|
4361
4361
|
}
|
4362
|
-
function x(
|
4363
|
-
if (
|
4364
|
-
_(e.exit("chunkFlow"), !0), k(0), e.consume(
|
4362
|
+
function x(L) {
|
4363
|
+
if (L === null) {
|
4364
|
+
_(e.exit("chunkFlow"), !0), k(0), e.consume(L);
|
4365
4365
|
return;
|
4366
4366
|
}
|
4367
|
-
return Y(
|
4367
|
+
return Y(L) ? (e.consume(L), _(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, l) : (e.consume(L), x);
|
4368
4368
|
}
|
4369
|
-
function _(
|
4370
|
-
const j = t.sliceStream(
|
4371
|
-
if (U && j.push(null),
|
4369
|
+
function _(L, U) {
|
4370
|
+
const j = t.sliceStream(L);
|
4371
|
+
if (U && j.push(null), L.previous = a, a && (a.next = L), a = L, i.defineSkip(L.start), i.write(j), t.parser.lazy[L.start.line]) {
|
4372
4372
|
let v = i.events.length;
|
4373
4373
|
for (; v--; )
|
4374
4374
|
if (
|
@@ -4398,13 +4398,13 @@ function mf(e) {
|
|
4398
4398
|
), t.events.length = v;
|
4399
4399
|
}
|
4400
4400
|
}
|
4401
|
-
function k(
|
4401
|
+
function k(L) {
|
4402
4402
|
let U = n.length;
|
4403
|
-
for (; U-- >
|
4403
|
+
for (; U-- > L; ) {
|
4404
4404
|
const j = n[U];
|
4405
4405
|
t.containerState = j[1], j[0].exit.call(t, e);
|
4406
4406
|
}
|
4407
|
-
n.length =
|
4407
|
+
n.length = L;
|
4408
4408
|
}
|
4409
4409
|
function B() {
|
4410
4410
|
i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
@@ -4708,10 +4708,10 @@ function Tf(e, t, n) {
|
|
4708
4708
|
)(v) : B(v);
|
4709
4709
|
}
|
4710
4710
|
function B(v) {
|
4711
|
-
return v === null || Y(v) ? e.check(La, x, U)(v) : (e.enter("codeFlowValue"),
|
4711
|
+
return v === null || Y(v) ? e.check(La, x, U)(v) : (e.enter("codeFlowValue"), L(v));
|
4712
4712
|
}
|
4713
|
-
function
|
4714
|
-
return v === null || Y(v) ? (e.exit("codeFlowValue"), B(v)) : (e.consume(v),
|
4713
|
+
function L(v) {
|
4714
|
+
return v === null || Y(v) ? (e.exit("codeFlowValue"), B(v)) : (e.consume(v), L);
|
4715
4715
|
}
|
4716
4716
|
function U(v) {
|
4717
4717
|
return e.exit("codeFenced"), t(v);
|
@@ -5252,7 +5252,7 @@ function nd(e, t, n) {
|
|
5252
5252
|
function _(m) {
|
5253
5253
|
if (m === null || m === 47 || m === 62 || Me(m)) {
|
5254
5254
|
const te = m === 47, fe = o.toLowerCase();
|
5255
|
-
return !te && !a && ja.includes(fe) ? (i = 1, r.interrupt ? t(m) : S(m)) : Yf.includes(o.toLowerCase()) ? (i = 6, te ? (e.consume(m), k) : r.interrupt ? t(m) : S(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : a ? B(m) :
|
5255
|
+
return !te && !a && ja.includes(fe) ? (i = 1, r.interrupt ? t(m) : S(m)) : Yf.includes(o.toLowerCase()) ? (i = 6, te ? (e.consume(m), k) : r.interrupt ? t(m) : S(m)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(m) : a ? B(m) : L(m));
|
5256
5256
|
}
|
5257
5257
|
return m === 45 || He(m) ? (e.consume(m), o += String.fromCharCode(m), _) : n(m);
|
5258
5258
|
}
|
@@ -5262,14 +5262,14 @@ function nd(e, t, n) {
|
|
5262
5262
|
function B(m) {
|
5263
5263
|
return se(m) ? (e.consume(m), B) : q(m);
|
5264
5264
|
}
|
5265
|
-
function
|
5266
|
-
return m === 47 ? (e.consume(m), q) : m === 58 || m === 95 || tt(m) ? (e.consume(m), U) : se(m) ? (e.consume(m),
|
5265
|
+
function L(m) {
|
5266
|
+
return m === 47 ? (e.consume(m), q) : m === 58 || m === 95 || tt(m) ? (e.consume(m), U) : se(m) ? (e.consume(m), L) : q(m);
|
5267
5267
|
}
|
5268
5268
|
function U(m) {
|
5269
5269
|
return m === 45 || m === 46 || m === 58 || m === 95 || He(m) ? (e.consume(m), U) : j(m);
|
5270
5270
|
}
|
5271
5271
|
function j(m) {
|
5272
|
-
return m === 61 ? (e.consume(m), v) : se(m) ? (e.consume(m), j) :
|
5272
|
+
return m === 61 ? (e.consume(m), v) : se(m) ? (e.consume(m), j) : L(m);
|
5273
5273
|
}
|
5274
5274
|
function v(m) {
|
5275
5275
|
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), u = m, D) : se(m) ? (e.consume(m), v) : H(m);
|
@@ -5281,7 +5281,7 @@ function nd(e, t, n) {
|
|
5281
5281
|
return m === null || m === 34 || m === 39 || m === 47 || m === 60 || m === 61 || m === 62 || m === 96 || Me(m) ? j(m) : (e.consume(m), H);
|
5282
5282
|
}
|
5283
5283
|
function V(m) {
|
5284
|
-
return m === 47 || m === 62 || se(m) ?
|
5284
|
+
return m === 47 || m === 62 || se(m) ? L(m) : n(m);
|
5285
5285
|
}
|
5286
5286
|
function q(m) {
|
5287
5287
|
return m === 62 ? (e.consume(m), P) : n(m);
|
@@ -5313,14 +5313,14 @@ function nd(e, t, n) {
|
|
5313
5313
|
return m === 45 ? (e.consume(m), p) : S(m);
|
5314
5314
|
}
|
5315
5315
|
function N(m) {
|
5316
|
-
return m === 47 ? (e.consume(m), o = "",
|
5316
|
+
return m === 47 ? (e.consume(m), o = "", M) : S(m);
|
5317
5317
|
}
|
5318
|
-
function
|
5318
|
+
function M(m) {
|
5319
5319
|
if (m === 62) {
|
5320
5320
|
const te = o.toLowerCase();
|
5321
5321
|
return ja.includes(te) ? (e.consume(m), G) : S(m);
|
5322
5322
|
}
|
5323
|
-
return tt(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m),
|
5323
|
+
return tt(m) && o.length < 8 ? (e.consume(m), o += String.fromCharCode(m), M) : S(m);
|
5324
5324
|
}
|
5325
5325
|
function $(m) {
|
5326
5326
|
return m === 93 ? (e.consume(m), p) : S(m);
|
@@ -5363,7 +5363,7 @@ function od(e, t, n) {
|
|
5363
5363
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(p), u;
|
5364
5364
|
}
|
5365
5365
|
function u(p) {
|
5366
|
-
return p === 33 ? (e.consume(p), s) : p === 47 ? (e.consume(p), j) : p === 63 ? (e.consume(p),
|
5366
|
+
return p === 33 ? (e.consume(p), s) : p === 47 ? (e.consume(p), j) : p === 63 ? (e.consume(p), L) : tt(p) ? (e.consume(p), H) : n(p);
|
5367
5367
|
}
|
5368
5368
|
function s(p) {
|
5369
5369
|
return p === 45 ? (e.consume(p), c) : p === 91 ? (e.consume(p), a = 0, C) : tt(p) ? (e.consume(p), B) : n(p);
|
@@ -5396,11 +5396,11 @@ function od(e, t, n) {
|
|
5396
5396
|
function B(p) {
|
5397
5397
|
return p === null || p === 62 ? O(p) : Y(p) ? (o = B, N(p)) : (e.consume(p), B);
|
5398
5398
|
}
|
5399
|
-
function
|
5400
|
-
return p === null ? n(p) : p === 63 ? (e.consume(p), U) : Y(p) ? (o =
|
5399
|
+
function L(p) {
|
5400
|
+
return p === null ? n(p) : p === 63 ? (e.consume(p), U) : Y(p) ? (o = L, N(p)) : (e.consume(p), L);
|
5401
5401
|
}
|
5402
5402
|
function U(p) {
|
5403
|
-
return p === 62 ? O(p) :
|
5403
|
+
return p === 62 ? O(p) : L(p);
|
5404
5404
|
}
|
5405
5405
|
function j(p) {
|
5406
5406
|
return tt(p) ? (e.consume(p), v) : n(p);
|
@@ -5439,9 +5439,9 @@ function od(e, t, n) {
|
|
5439
5439
|
return p === 62 ? (e.consume(p), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(p);
|
5440
5440
|
}
|
5441
5441
|
function N(p) {
|
5442
|
-
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"),
|
5442
|
+
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(p), e.exit("lineEnding"), M;
|
5443
5443
|
}
|
5444
|
-
function
|
5444
|
+
function M(p) {
|
5445
5445
|
return se(p) ? ge(
|
5446
5446
|
e,
|
5447
5447
|
$,
|
@@ -6002,7 +6002,7 @@ function Dd(e, t, n) {
|
|
6002
6002
|
let o = [], l = [];
|
6003
6003
|
const u = {
|
6004
6004
|
consume: B,
|
6005
|
-
enter:
|
6005
|
+
enter: L,
|
6006
6006
|
exit: U,
|
6007
6007
|
attempt: D(j),
|
6008
6008
|
check: D(v),
|
@@ -6062,7 +6062,7 @@ function Dd(e, t, n) {
|
|
6062
6062
|
function B(P) {
|
6063
6063
|
Y(P) ? (r.line++, r.column = 1, r.offset += P === -3 ? 2 : 1, q()) : P !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === o[r._index].length && (r._bufferIndex = -1, r._index++)), s.previous = P;
|
6064
6064
|
}
|
6065
|
-
function
|
6065
|
+
function L(P, S) {
|
6066
6066
|
const I = S || {};
|
6067
6067
|
return I.type = P, I.start = C(), s.events.push(["enter", I, s]), l.push(I), I;
|
6068
6068
|
}
|
@@ -6079,7 +6079,7 @@ function Dd(e, t, n) {
|
|
6079
6079
|
function D(P, S) {
|
6080
6080
|
return I;
|
6081
6081
|
function I(A, E, O) {
|
6082
|
-
let N,
|
6082
|
+
let N, M, $, p;
|
6083
6083
|
return Array.isArray(A) ? J(A) : "tokenize" in A ? (
|
6084
6084
|
// @ts-expect-error Looks like a construct.
|
6085
6085
|
J([A])
|
@@ -6097,7 +6097,7 @@ function Dd(e, t, n) {
|
|
6097
6097
|
}
|
6098
6098
|
}
|
6099
6099
|
function J(re) {
|
6100
|
-
return N = re,
|
6100
|
+
return N = re, M = 0, re.length === 0 ? O : m(re[M]);
|
6101
6101
|
}
|
6102
6102
|
function m(re) {
|
6103
6103
|
return xe;
|
@@ -6117,7 +6117,7 @@ function Dd(e, t, n) {
|
|
6117
6117
|
return P($, p), E;
|
6118
6118
|
}
|
6119
6119
|
function fe(re) {
|
6120
|
-
return p.restore(), ++
|
6120
|
+
return p.restore(), ++M < N.length ? m(N[M]) : O;
|
6121
6121
|
}
|
6122
6122
|
}
|
6123
6123
|
}
|
@@ -6433,7 +6433,7 @@ function rp(e) {
|
|
6433
6433
|
codeFencedFenceInfo: x,
|
6434
6434
|
codeFencedFenceMeta: _,
|
6435
6435
|
codeFlowValue: S,
|
6436
|
-
codeIndented: c(
|
6436
|
+
codeIndented: c(L),
|
6437
6437
|
codeText: c(N),
|
6438
6438
|
codeTextData: S,
|
6439
6439
|
data: S,
|
@@ -6452,7 +6452,7 @@ function rp(e) {
|
|
6452
6452
|
label: G,
|
6453
6453
|
labelText: p,
|
6454
6454
|
lineEnding: I,
|
6455
|
-
link: c(
|
6455
|
+
link: c(M),
|
6456
6456
|
listItem: c(),
|
6457
6457
|
listOrdered: c(),
|
6458
6458
|
listUnordered: c(),
|
@@ -6629,7 +6629,7 @@ function rp(e) {
|
|
6629
6629
|
const F = this.resume(), R = this.stack[this.stack.length - 1];
|
6630
6630
|
R.value = F.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), a("flowCodeInside");
|
6631
6631
|
}
|
6632
|
-
function
|
6632
|
+
function L() {
|
6633
6633
|
const F = this.resume(), R = this.stack[this.stack.length - 1];
|
6634
6634
|
R.value = F.replace(/(\r?\n|\r)$/g, "");
|
6635
6635
|
}
|
@@ -6699,7 +6699,7 @@ function rp(e) {
|
|
6699
6699
|
const F = this.resume(), R = this.stack[this.stack.length - 1];
|
6700
6700
|
R.value = F;
|
6701
6701
|
}
|
6702
|
-
function
|
6702
|
+
function M() {
|
6703
6703
|
const F = this.stack[this.stack.length - 1];
|
6704
6704
|
if (o("inReference")) {
|
6705
6705
|
const R = o("referenceType") || "shortcut";
|
@@ -9320,16 +9320,16 @@ var Il = { exports: {} };
|
|
9320
9320
|
var n = 1e3, r = 6e4, i = 36e5, a = "millisecond", o = "second", l = "minute", u = "hour", s = "day", c = "week", f = "month", b = "quarter", d = "year", C = "date", x = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, k = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, B = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(A) {
|
9321
9321
|
var E = ["th", "st", "nd", "rd"], O = A % 100;
|
9322
9322
|
return "[" + A + (E[(O - 20) % 10] || E[O] || E[0]) + "]";
|
9323
|
-
} },
|
9323
|
+
} }, L = function(A, E, O) {
|
9324
9324
|
var N = String(A);
|
9325
9325
|
return !N || N.length >= E ? A : "" + Array(E + 1 - N.length).join(O) + A;
|
9326
|
-
}, U = { s:
|
9327
|
-
var E = -A.utcOffset(), O = Math.abs(E), N = Math.floor(O / 60),
|
9328
|
-
return (E <= 0 ? "+" : "-") +
|
9326
|
+
}, U = { s: L, z: function(A) {
|
9327
|
+
var E = -A.utcOffset(), O = Math.abs(E), N = Math.floor(O / 60), M = O % 60;
|
9328
|
+
return (E <= 0 ? "+" : "-") + L(N, 2, "0") + ":" + L(M, 2, "0");
|
9329
9329
|
}, m: function A(E, O) {
|
9330
9330
|
if (E.date() < O.date()) return -A(O, E);
|
9331
|
-
var N = 12 * (O.year() - E.year()) + (O.month() - E.month()),
|
9332
|
-
return +(-(N + (O -
|
9331
|
+
var N = 12 * (O.year() - E.year()) + (O.month() - E.month()), M = E.clone().add(N, f), $ = O - M < 0, p = E.clone().add(N + ($ ? -1 : 1), f);
|
9332
|
+
return +(-(N + (O - M) / ($ ? M - p : p - M)) || 0);
|
9333
9333
|
}, a: function(A) {
|
9334
9334
|
return A < 0 ? Math.ceil(A) || 0 : Math.floor(A);
|
9335
9335
|
}, p: function(A) {
|
@@ -9341,18 +9341,18 @@ var Il = { exports: {} };
|
|
9341
9341
|
var D = "$isDayjsObject", H = function(A) {
|
9342
9342
|
return A instanceof S || !(!A || !A[D]);
|
9343
9343
|
}, V = function A(E, O, N) {
|
9344
|
-
var
|
9344
|
+
var M;
|
9345
9345
|
if (!E) return j;
|
9346
9346
|
if (typeof E == "string") {
|
9347
9347
|
var $ = E.toLowerCase();
|
9348
|
-
v[$] && (
|
9348
|
+
v[$] && (M = $), O && (v[$] = O, M = $);
|
9349
9349
|
var p = E.split("-");
|
9350
|
-
if (!
|
9350
|
+
if (!M && p.length > 1) return A(p[0]);
|
9351
9351
|
} else {
|
9352
9352
|
var G = E.name;
|
9353
|
-
v[G] = E,
|
9353
|
+
v[G] = E, M = G;
|
9354
9354
|
}
|
9355
|
-
return !N &&
|
9355
|
+
return !N && M && (j = M), M || !N && j;
|
9356
9356
|
}, q = function(A, E) {
|
9357
9357
|
if (H(A)) return A.clone();
|
9358
9358
|
var O = typeof E == "object" ? E : {};
|
@@ -9368,18 +9368,18 @@ var Il = { exports: {} };
|
|
9368
9368
|
var E = A.prototype;
|
9369
9369
|
return E.parse = function(O) {
|
9370
9370
|
this.$d = function(N) {
|
9371
|
-
var
|
9372
|
-
if (
|
9373
|
-
if (P.u(
|
9374
|
-
if (
|
9375
|
-
if (typeof
|
9376
|
-
var p =
|
9371
|
+
var M = N.date, $ = N.utc;
|
9372
|
+
if (M === null) return /* @__PURE__ */ new Date(NaN);
|
9373
|
+
if (P.u(M)) return /* @__PURE__ */ new Date();
|
9374
|
+
if (M instanceof Date) return new Date(M);
|
9375
|
+
if (typeof M == "string" && !/Z$/i.test(M)) {
|
9376
|
+
var p = M.match(_);
|
9377
9377
|
if (p) {
|
9378
9378
|
var G = p[2] - 1 || 0, J = (p[7] || "0").substring(0, 3);
|
9379
9379
|
return $ ? new Date(Date.UTC(p[1], G, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, J)) : new Date(p[1], G, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, J);
|
9380
9380
|
}
|
9381
9381
|
}
|
9382
|
-
return new Date(
|
9382
|
+
return new Date(M);
|
9383
9383
|
}(O), this.init();
|
9384
9384
|
}, E.init = function() {
|
9385
9385
|
var O = this.$d;
|
@@ -9389,24 +9389,24 @@ var Il = { exports: {} };
|
|
9389
9389
|
}, E.isValid = function() {
|
9390
9390
|
return this.$d.toString() !== x;
|
9391
9391
|
}, E.isSame = function(O, N) {
|
9392
|
-
var
|
9393
|
-
return this.startOf(N) <=
|
9392
|
+
var M = q(O);
|
9393
|
+
return this.startOf(N) <= M && M <= this.endOf(N);
|
9394
9394
|
}, E.isAfter = function(O, N) {
|
9395
9395
|
return q(O) < this.startOf(N);
|
9396
9396
|
}, E.isBefore = function(O, N) {
|
9397
9397
|
return this.endOf(N) < q(O);
|
9398
|
-
}, E.$g = function(O, N,
|
9399
|
-
return P.u(O) ? this[N] : this.set(
|
9398
|
+
}, E.$g = function(O, N, M) {
|
9399
|
+
return P.u(O) ? this[N] : this.set(M, O);
|
9400
9400
|
}, E.unix = function() {
|
9401
9401
|
return Math.floor(this.valueOf() / 1e3);
|
9402
9402
|
}, E.valueOf = function() {
|
9403
9403
|
return this.$d.getTime();
|
9404
9404
|
}, E.startOf = function(O, N) {
|
9405
|
-
var
|
9406
|
-
var Oe = P.w(
|
9405
|
+
var M = this, $ = !!P.u(N) || N, p = P.p(O), G = function(Ee, de) {
|
9406
|
+
var Oe = P.w(M.$u ? Date.UTC(M.$y, de, Ee) : new Date(M.$y, de, Ee), M);
|
9407
9407
|
return $ ? Oe : Oe.endOf(s);
|
9408
9408
|
}, J = function(Ee, de) {
|
9409
|
-
return P.w(
|
9409
|
+
return P.w(M.toDate()[Ee].apply(M.toDate("s"), ($ ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(de)), M);
|
9410
9410
|
}, m = this.$W, te = this.$M, fe = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
9411
9411
|
switch (p) {
|
9412
9412
|
case d:
|
@@ -9431,7 +9431,7 @@ var Il = { exports: {} };
|
|
9431
9431
|
}, E.endOf = function(O) {
|
9432
9432
|
return this.startOf(O, !1);
|
9433
9433
|
}, E.$set = function(O, N) {
|
9434
|
-
var
|
9434
|
+
var M, $ = P.p(O), p = "set" + (this.$u ? "UTC" : ""), G = (M = {}, M[s] = p + "Date", M[C] = p + "Date", M[f] = p + "Month", M[d] = p + "FullYear", M[u] = p + "Hours", M[l] = p + "Minutes", M[o] = p + "Seconds", M[a] = p + "Milliseconds", M)[$], J = $ === s ? this.$D + (N - this.$W) : N;
|
9435
9435
|
if ($ === f || $ === d) {
|
9436
9436
|
var m = this.clone().set(C, 1);
|
9437
9437
|
m.$d[G](J), m.init(), this.$d = m.set(C, Math.min(this.$D, m.daysInMonth())).$d;
|
@@ -9442,7 +9442,7 @@ var Il = { exports: {} };
|
|
9442
9442
|
}, E.get = function(O) {
|
9443
9443
|
return this[P.p(O)]();
|
9444
9444
|
}, E.add = function(O, N) {
|
9445
|
-
var
|
9445
|
+
var M, $ = this;
|
9446
9446
|
O = Number(O);
|
9447
9447
|
var p = P.p(N), G = function(te) {
|
9448
9448
|
var fe = q($);
|
@@ -9452,14 +9452,14 @@ var Il = { exports: {} };
|
|
9452
9452
|
if (p === d) return this.set(d, this.$y + O);
|
9453
9453
|
if (p === s) return G(1);
|
9454
9454
|
if (p === c) return G(7);
|
9455
|
-
var J = (
|
9455
|
+
var J = (M = {}, M[l] = r, M[u] = i, M[o] = n, M)[p] || 1, m = this.$d.getTime() + O * J;
|
9456
9456
|
return P.w(m, this);
|
9457
9457
|
}, E.subtract = function(O, N) {
|
9458
9458
|
return this.add(-1 * O, N);
|
9459
9459
|
}, E.format = function(O) {
|
9460
|
-
var N = this,
|
9461
|
-
if (!this.isValid()) return
|
9462
|
-
var $ = O || "YYYY-MM-DDTHH:mm:ssZ", p = P.z(this), G = this.$H, J = this.$m, m = this.$M, te =
|
9460
|
+
var N = this, M = this.$locale();
|
9461
|
+
if (!this.isValid()) return M.invalidDate || x;
|
9462
|
+
var $ = O || "YYYY-MM-DDTHH:mm:ssZ", p = P.z(this), G = this.$H, J = this.$m, m = this.$M, te = M.weekdays, fe = M.months, re = M.meridiem, xe = function(de, Oe, Ae, Ye) {
|
9463
9463
|
return de && (de[Oe] || de(N, $)) || Ae[Oe].slice(0, Ye);
|
9464
9464
|
}, ke = function(de) {
|
9465
9465
|
return P.s(G % 12 || 12, de, "0");
|
@@ -9479,7 +9479,7 @@ var Il = { exports: {} };
|
|
9479
9479
|
case "MM":
|
9480
9480
|
return P.s(m + 1, 2, "0");
|
9481
9481
|
case "MMM":
|
9482
|
-
return xe(
|
9482
|
+
return xe(M.monthsShort, m, fe, 3);
|
9483
9483
|
case "MMMM":
|
9484
9484
|
return xe(fe, m);
|
9485
9485
|
case "D":
|
@@ -9489,9 +9489,9 @@ var Il = { exports: {} };
|
|
9489
9489
|
case "d":
|
9490
9490
|
return String(N.$W);
|
9491
9491
|
case "dd":
|
9492
|
-
return xe(
|
9492
|
+
return xe(M.weekdaysMin, N.$W, te, 2);
|
9493
9493
|
case "ddd":
|
9494
|
-
return xe(
|
9494
|
+
return xe(M.weekdaysShort, N.$W, te, 3);
|
9495
9495
|
case "dddd":
|
9496
9496
|
return te[N.$W];
|
9497
9497
|
case "H":
|
@@ -9524,7 +9524,7 @@ var Il = { exports: {} };
|
|
9524
9524
|
});
|
9525
9525
|
}, E.utcOffset = function() {
|
9526
9526
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
9527
|
-
}, E.diff = function(O, N,
|
9527
|
+
}, E.diff = function(O, N, M) {
|
9528
9528
|
var $, p = this, G = P.p(N), J = q(O), m = (J.utcOffset() - this.utcOffset()) * r, te = this - J, fe = function() {
|
9529
9529
|
return P.m(p, J);
|
9530
9530
|
};
|
@@ -9556,15 +9556,15 @@ var Il = { exports: {} };
|
|
9556
9556
|
default:
|
9557
9557
|
$ = te;
|
9558
9558
|
}
|
9559
|
-
return
|
9559
|
+
return M ? $ : P.a($);
|
9560
9560
|
}, E.daysInMonth = function() {
|
9561
9561
|
return this.endOf(f).$D;
|
9562
9562
|
}, E.$locale = function() {
|
9563
9563
|
return v[this.$L];
|
9564
9564
|
}, E.locale = function(O, N) {
|
9565
9565
|
if (!O) return this.$L;
|
9566
|
-
var
|
9567
|
-
return $ && (
|
9566
|
+
var M = this.clone(), $ = V(O, N, !0);
|
9567
|
+
return $ && (M.$L = $), M;
|
9568
9568
|
}, E.clone = function() {
|
9569
9569
|
return P.w(this.$d, this);
|
9570
9570
|
}, E.toDate = function() {
|
@@ -9677,17 +9677,18 @@ const Vh = "Sure, I can get you to someone who can help.", fn = ({
|
|
9677
9677
|
Ti,
|
9678
9678
|
{
|
9679
9679
|
components: {
|
9680
|
-
a: (
|
9680
|
+
a: (L) => /* @__PURE__ */ y.jsx(
|
9681
9681
|
"a",
|
9682
9682
|
{
|
9683
|
-
...
|
9683
|
+
...L,
|
9684
9684
|
role: "link",
|
9685
9685
|
tabIndex: 0,
|
9686
9686
|
onClick: a,
|
9687
9687
|
onKeyDown: void 0,
|
9688
|
-
children:
|
9688
|
+
children: L.children
|
9689
9689
|
}
|
9690
|
-
)
|
9690
|
+
),
|
9691
|
+
p: (L) => /* @__PURE__ */ y.jsx("p", { ...L, style: k[d].bubbleStyle, children: L.children })
|
9691
9692
|
},
|
9692
9693
|
linkTarget: "_blank",
|
9693
9694
|
transformLinkUri: qh,
|
@@ -10611,7 +10612,7 @@ $t.useWebSocket = function(e, t, n) {
|
|
10611
10612
|
}, [i]), c = Ie.useRef(null), f = Ie.useRef(null), b = Ie.useRef(function() {
|
10612
10613
|
}), d = Ie.useRef(0), C = Ie.useRef([]), x = Ie.useRef(null), _ = Ie.useRef(t);
|
10613
10614
|
_.current = t;
|
10614
|
-
var k = c.current && l[c.current] !== void 0 ? l[c.current] : e !== null && n === !0 ? lt.ReadyState.CONNECTING : lt.ReadyState.UNINSTANTIATED, B = t.queryParams ? JSON.stringify(t.queryParams) : null,
|
10615
|
+
var k = c.current && l[c.current] !== void 0 ? l[c.current] : e !== null && n === !0 ? lt.ReadyState.CONNECTING : lt.ReadyState.UNINSTANTIATED, B = t.queryParams ? JSON.stringify(t.queryParams) : null, L = Ie.useCallback(function(v, D) {
|
10615
10616
|
var H;
|
10616
10617
|
if (D === void 0 && (D = !0), lt.isEventSourceSupported && f.current instanceof EventSource) {
|
10617
10618
|
console.warn("Unable to send a message from an eventSource");
|
@@ -10619,8 +10620,8 @@ $t.useWebSocket = function(e, t, n) {
|
|
10619
10620
|
}
|
10620
10621
|
((H = f.current) === null || H === void 0 ? void 0 : H.readyState) === lt.ReadyState.OPEN ? (to.assertIsWebSocket(f.current), f.current.send(v)) : D && C.current.push(v);
|
10621
10622
|
}, []), U = Ie.useCallback(function(v, D) {
|
10622
|
-
D === void 0 && (D = !0),
|
10623
|
-
}, [
|
10623
|
+
D === void 0 && (D = !0), L(JSON.stringify(v), D);
|
10624
|
+
}, [L]), j = Ie.useCallback(function() {
|
10624
10625
|
return _.current.share !== !0 || lt.isEventSourceSupported && f.current instanceof EventSource ? f.current : (x.current === null && f.current && (to.assertIsWebSocket(f.current), x.current = v0.default(f.current, b)), x.current);
|
10625
10626
|
}, []);
|
10626
10627
|
return Ie.useEffect(function() {
|
@@ -10640,7 +10641,7 @@ $t.useWebSocket = function(e, t, n) {
|
|
10640
10641
|
var E;
|
10641
10642
|
return jt(jt({}, A), c.current && (E = {}, E[c.current] = I, E));
|
10642
10643
|
});
|
10643
|
-
}, v = y0.createOrJoinSocket(f, c.current, P, _, q, b, d,
|
10644
|
+
}, v = y0.createOrJoinSocket(f, c.current, P, _, q, b, d, L), [
|
10644
10645
|
2
|
10645
10646
|
/*return*/
|
10646
10647
|
];
|
@@ -10657,12 +10658,12 @@ $t.useWebSocket = function(e, t, n) {
|
|
10657
10658
|
var q;
|
10658
10659
|
return jt(jt({}, V), c.current && (q = {}, q[c.current] = lt.ReadyState.CLOSED, q));
|
10659
10660
|
}));
|
10660
|
-
}, [e, n, B,
|
10661
|
+
}, [e, n, B, L]), Ie.useEffect(function() {
|
10661
10662
|
k === lt.ReadyState.OPEN && C.current.splice(0).forEach(function(v) {
|
10662
|
-
|
10663
|
+
L(v);
|
10663
10664
|
});
|
10664
10665
|
}, [k]), {
|
10665
|
-
sendMessage:
|
10666
|
+
sendMessage: L,
|
10666
10667
|
sendJsonMessage: U,
|
10667
10668
|
lastMessage: i,
|
10668
10669
|
lastJsonMessage: s,
|
@@ -10792,8 +10793,8 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
|
|
10792
10793
|
CONVERSATION: "CONVERSATION",
|
10793
10794
|
FORM: "FORM"
|
10794
10795
|
}, Pt = $n({}), Ml = ({ children: e }) => {
|
10795
|
-
const { conversationScreen: t } = ne(Te), { pushXpertMessage: n } = ne(Un), { setHasError: r, setMode: i } = ne(je), [a, o] = ee(""), [l, u] = ee(!1), [, s] = ee(""), [c, f] = ee([]), [b, d] = ee(null), [C, x] = ee(st.FORM), [_, k] = ee(null), B = (N) => f((
|
10796
|
-
const
|
10796
|
+
const { conversationScreen: t } = ne(Te), { pushXpertMessage: n } = ne(Un), { setHasError: r, setMode: i } = ne(je), [a, o] = ee(""), [l, u] = ee(!1), [, s] = ee(""), [c, f] = ee([]), [b, d] = ee(null), [C, x] = ee(st.FORM), [_, k] = ee(null), B = (N) => f((M) => [...M, N]), L = async (N) => {
|
10797
|
+
const M = await E0(N.data), { conversation_id: $, event_type: p, body: G } = M;
|
10797
10798
|
switch (p) {
|
10798
10799
|
case "AGENT_TYPING":
|
10799
10800
|
return V();
|
@@ -10819,7 +10820,7 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
|
|
10819
10820
|
return;
|
10820
10821
|
}
|
10821
10822
|
}, { sendJsonMessage: U } = _0(b, {
|
10822
|
-
onMessage:
|
10823
|
+
onMessage: L
|
10823
10824
|
}), j = () => {
|
10824
10825
|
x(st.FORM);
|
10825
10826
|
}, v = () => {
|
@@ -10841,20 +10842,20 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
|
|
10841
10842
|
}, 5e3);
|
10842
10843
|
k(N);
|
10843
10844
|
}, q = (N) => {
|
10844
|
-
const { displayName:
|
10845
|
-
f([]), o(
|
10845
|
+
const { displayName: M } = N;
|
10846
|
+
f([]), o(M ?? "An agent"), x(st.CONVERSATION);
|
10846
10847
|
}, P = (N) => {
|
10847
|
-
const { messageId:
|
10848
|
+
const { messageId: M, text: $, timestamp: p } = N;
|
10848
10849
|
B({
|
10849
10850
|
content: $ ?? "",
|
10850
|
-
id:
|
10851
|
+
id: M ?? "",
|
10851
10852
|
role: "agent",
|
10852
10853
|
timestamp: p ? new Date(p) : void 0
|
10853
10854
|
}), U({
|
10854
10855
|
action: "sendmessage",
|
10855
10856
|
messages: [
|
10856
10857
|
{
|
10857
|
-
messageId:
|
10858
|
+
messageId: M,
|
10858
10859
|
type: "DELIVERED"
|
10859
10860
|
}
|
10860
10861
|
],
|
@@ -10889,10 +10890,10 @@ const T0 = "This conversation with a live agent has ended. Please note that a tr
|
|
10889
10890
|
step: C,
|
10890
10891
|
setStep: x,
|
10891
10892
|
startLiveChat: (N) => {
|
10892
|
-
var
|
10893
|
+
var M;
|
10893
10894
|
try {
|
10894
10895
|
x(st.CONNECTING), d(
|
10895
|
-
`${(
|
10896
|
+
`${(M = t == null ? void 0 : t.liveChat) == null ? void 0 : M.socketUrl}?${new URLSearchParams(N).toString()}`
|
10896
10897
|
);
|
10897
10898
|
} catch {
|
10898
10899
|
r(!0), H();
|
@@ -11075,7 +11076,7 @@ function Rl({
|
|
11075
11076
|
setIsMounted: n,
|
11076
11077
|
onClose: r
|
11077
11078
|
}) {
|
11078
|
-
var s, c, f, b, d, C, x, _, k, B,
|
11079
|
+
var s, c, f, b, d, C, x, _, k, B, L, U, j, v, D;
|
11079
11080
|
const { primaryColor: i, conversationScreen: a } = ne(Te), { isMobile: o, mode: l } = ne(je), { step: u } = ne(Pt);
|
11080
11081
|
return u === st.CONNECTING && l === _t.LIVECHAT ? null : /* @__PURE__ */ y.jsxs(
|
11081
11082
|
"div",
|
@@ -11113,7 +11114,7 @@ function Rl({
|
|
11113
11114
|
Ai,
|
11114
11115
|
{
|
11115
11116
|
backgroundColor: (k = a == null ? void 0 : a.header.logo.style) == null ? void 0 : k.backgroundColor,
|
11116
|
-
textColor: ((U = (
|
11117
|
+
textColor: ((U = (L = (B = a == null ? void 0 : a.header) == null ? void 0 : B.logo) == null ? void 0 : L.style) == null ? void 0 : U.color) || "#FFFFFF"
|
11117
11118
|
}
|
11118
11119
|
),
|
11119
11120
|
/* @__PURE__ */ y.jsx(
|
@@ -11484,8 +11485,8 @@ var so = {
|
|
11484
11485
|
// web components if the `tabbableOptions.getShadowRoot` option was used for
|
11485
11486
|
// the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
|
11486
11487
|
// look inside web components even if open)
|
11487
|
-
(A == null ? void 0 : A.includes(O)) || N.find(function(
|
11488
|
-
return
|
11488
|
+
(A == null ? void 0 : A.includes(O)) || N.find(function(M) {
|
11489
|
+
return M === S;
|
11489
11490
|
});
|
11490
11491
|
});
|
11491
11492
|
}, c = function(S) {
|
@@ -11522,7 +11523,7 @@ var so = {
|
|
11522
11523
|
if (o.containerGroups = o.containers.map(function(S) {
|
11523
11524
|
var I = Vl(S, a.tabbableOptions), A = Wl(S, a.tabbableOptions), E = I.length > 0 ? I[0] : void 0, O = I.length > 0 ? I[I.length - 1] : void 0, N = A.find(function(p) {
|
11524
11525
|
return wt(p);
|
11525
|
-
}),
|
11526
|
+
}), M = A.slice().reverse().find(function(p) {
|
11526
11527
|
return wt(p);
|
11527
11528
|
}), $ = !!I.find(function(p) {
|
11528
11529
|
return ht(p) > 0;
|
@@ -11547,7 +11548,7 @@ var so = {
|
|
11547
11548
|
/** First tabbable node in container, __DOM__ order; `undefined` if none. */
|
11548
11549
|
firstDomTabbableNode: N,
|
11549
11550
|
/** Last tabbable node in container, __DOM__ order; `undefined` if none. */
|
11550
|
-
lastDomTabbableNode:
|
11551
|
+
lastDomTabbableNode: M,
|
11551
11552
|
/**
|
11552
11553
|
* Finds the __tabbable__ node that follows the given node in the specified direction,
|
11553
11554
|
* in this container, if any.
|
@@ -11595,15 +11596,15 @@ var so = {
|
|
11595
11596
|
I = I || wn(A), b();
|
11596
11597
|
var N = null;
|
11597
11598
|
if (o.tabbableGroups.length > 0) {
|
11598
|
-
var
|
11599
|
-
if (
|
11599
|
+
var M = s(I, A), $ = M >= 0 ? o.containerGroups[M] : void 0;
|
11600
|
+
if (M < 0)
|
11600
11601
|
O ? N = o.tabbableGroups[o.tabbableGroups.length - 1].lastTabbableNode : N = o.tabbableGroups[0].firstTabbableNode;
|
11601
11602
|
else if (O) {
|
11602
11603
|
var p = co(o.tabbableGroups, function(re) {
|
11603
11604
|
var xe = re.firstTabbableNode;
|
11604
11605
|
return I === xe;
|
11605
11606
|
});
|
11606
|
-
if (p < 0 && ($.container === I || Tn(I, a.tabbableOptions) && !wt(I, a.tabbableOptions) && !$.nextTabbableNode(I, !1)) && (p =
|
11607
|
+
if (p < 0 && ($.container === I || Tn(I, a.tabbableOptions) && !wt(I, a.tabbableOptions) && !$.nextTabbableNode(I, !1)) && (p = M), p >= 0) {
|
11607
11608
|
var G = p === 0 ? o.tabbableGroups.length - 1 : p - 1, J = o.tabbableGroups[G];
|
11608
11609
|
N = ht(I) >= 0 ? J.lastTabbableNode : J.lastDomTabbableNode;
|
11609
11610
|
} else rn(A) || (N = $.nextTabbableNode(I, !1));
|
@@ -11612,7 +11613,7 @@ var so = {
|
|
11612
11613
|
var xe = re.lastTabbableNode;
|
11613
11614
|
return I === xe;
|
11614
11615
|
});
|
11615
|
-
if (m < 0 && ($.container === I || Tn(I, a.tabbableOptions) && !wt(I, a.tabbableOptions) && !$.nextTabbableNode(I)) && (m =
|
11616
|
+
if (m < 0 && ($.container === I || Tn(I, a.tabbableOptions) && !wt(I, a.tabbableOptions) && !$.nextTabbableNode(I)) && (m = M), m >= 0) {
|
11616
11617
|
var te = m === o.tabbableGroups.length - 1 ? 0 : m + 1, fe = o.tabbableGroups[te];
|
11617
11618
|
N = ht(I) >= 0 ? fe.firstTabbableNode : fe.firstDomTabbableNode;
|
11618
11619
|
} else rn(A) || (N = $.nextTabbableNode(I));
|
@@ -11646,12 +11647,12 @@ var so = {
|
|
11646
11647
|
var E, O = !0;
|
11647
11648
|
if (o.mostRecentlyFocusedNode)
|
11648
11649
|
if (ht(o.mostRecentlyFocusedNode) > 0) {
|
11649
|
-
var N = s(o.mostRecentlyFocusedNode),
|
11650
|
-
if (
|
11651
|
-
var $ =
|
11650
|
+
var N = s(o.mostRecentlyFocusedNode), M = o.containerGroups[N].tabbableNodes;
|
11651
|
+
if (M.length > 0) {
|
11652
|
+
var $ = M.findIndex(function(p) {
|
11652
11653
|
return p === o.mostRecentlyFocusedNode;
|
11653
11654
|
});
|
11654
|
-
$ >= 0 && (a.isKeyForward(o.recentNavEvent) ? $ + 1 <
|
11655
|
+
$ >= 0 && (a.isKeyForward(o.recentNavEvent) ? $ + 1 < M.length && (E = M[$ + 1], O = !1) : $ - 1 >= 0 && (E = M[$ - 1], O = !1));
|
11655
11656
|
}
|
11656
11657
|
} else
|
11657
11658
|
o.containerGroups.some(function(p) {
|
@@ -11669,7 +11670,7 @@ var so = {
|
|
11669
11670
|
})), C(E || o.mostRecentlyFocusedNode || f());
|
11670
11671
|
}
|
11671
11672
|
o.recentNavEvent = void 0;
|
11672
|
-
},
|
11673
|
+
}, L = function(S) {
|
11673
11674
|
var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
11674
11675
|
o.recentNavEvent = S;
|
11675
11676
|
var A = _({
|
@@ -11682,7 +11683,7 @@ var so = {
|
|
11682
11683
|
S.preventDefault(), l.deactivate();
|
11683
11684
|
return;
|
11684
11685
|
}
|
11685
|
-
(a.isKeyForward(S) || a.isKeyBackward(S)) &&
|
11686
|
+
(a.isKeyForward(S) || a.isKeyBackward(S)) && L(S, a.isKeyBackward(S));
|
11686
11687
|
}, j = function(S) {
|
11687
11688
|
var I = wn(S);
|
11688
11689
|
s(I, S) >= 0 || Zt(a.clickOutsideDeactivates, S) || Zt(a.allowOutsideClick, S) || (S.preventDefault(), S.stopImmediatePropagation());
|
@@ -11750,12 +11751,12 @@ var so = {
|
|
11750
11751
|
clearTimeout(o.delayInitialFocusTimer), o.delayInitialFocusTimer = void 0, D(), o.active = !1, o.paused = !1, q(), so.deactivateTrap(i, l);
|
11751
11752
|
var A = u(I, "onDeactivate"), E = u(I, "onPostDeactivate"), O = u(I, "checkCanReturnFocus"), N = u(I, "returnFocus", "returnFocusOnDeactivate");
|
11752
11753
|
A == null || A();
|
11753
|
-
var
|
11754
|
+
var M = function() {
|
11754
11755
|
uo(function() {
|
11755
11756
|
N && C(x(o.nodeFocusedBeforeActivation)), E == null || E();
|
11756
11757
|
});
|
11757
11758
|
};
|
11758
|
-
return N && O ? (O(x(o.nodeFocusedBeforeActivation)).then(
|
11759
|
+
return N && O ? (O(x(o.nodeFocusedBeforeActivation)).then(M, M), this) : (M(), this);
|
11759
11760
|
},
|
11760
11761
|
pause: function(S) {
|
11761
11762
|
if (o.paused || !o.active)
|
@@ -12413,7 +12414,7 @@ function Di() {
|
|
12413
12414
|
}, B = (j, v) => {
|
12414
12415
|
const D = j.target.value;
|
12415
12416
|
b(v), s(v, D);
|
12416
|
-
},
|
12417
|
+
}, L = () => {
|
12417
12418
|
U() && n(u);
|
12418
12419
|
}, U = () => {
|
12419
12420
|
const j = i.reduce((v, D) => {
|
@@ -12504,7 +12505,7 @@ function Di() {
|
|
12504
12505
|
{
|
12505
12506
|
className: "live-chat-start-button",
|
12506
12507
|
style: { backgroundColor: t },
|
12507
|
-
onClick:
|
12508
|
+
onClick: L,
|
12508
12509
|
children: "Start chat"
|
12509
12510
|
}
|
12510
12511
|
)
|
@@ -12713,7 +12714,7 @@ function Bi({ submitEventExternal: e }) {
|
|
12713
12714
|
setHasNewMessage: _,
|
12714
12715
|
setIsNormalSize: k,
|
12715
12716
|
setLoading: B
|
12716
|
-
} = ne(je), [,
|
12717
|
+
} = ne(je), [, L] = ee(!1), [, U] = ee(!1), [j, v] = ee(!1), [D, H] = ee(!1), [V, q] = ee(""), [P, S] = ee(!1), I = Ue(null), A = Ue(null), E = Ue(null), O = Le.get(`${u}-test`) === "1";
|
12717
12718
|
Tm(
|
12718
12719
|
(It = r == null ? void 0 : r.liveChat) == null ? void 0 : It.enabled,
|
12719
12720
|
D,
|
@@ -12735,7 +12736,7 @@ function Bi({ submitEventExternal: e }) {
|
|
12735
12736
|
o == null ? void 0 : o.enabled,
|
12736
12737
|
o == null ? void 0 : o.payloadParams
|
12737
12738
|
]
|
12738
|
-
),
|
12739
|
+
), M = St(async () => {
|
12739
12740
|
if (window != null && window.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003"))
|
12740
12741
|
try {
|
12741
12742
|
const Z = Le.get(
|
@@ -12779,12 +12780,12 @@ function Bi({ submitEventExternal: e }) {
|
|
12779
12780
|
C,
|
12780
12781
|
_
|
12781
12782
|
]);
|
12782
|
-
Pm(
|
12783
|
+
Pm(M), Se(() => {
|
12783
12784
|
let Z, ae;
|
12784
12785
|
if (n)
|
12785
12786
|
return o != null && o.enabled && (Z = setInterval(() => {
|
12786
12787
|
var we;
|
12787
|
-
console.log("Chatbot - Finding Segment"), ((we = window.analytics) != null && we.track || e) && (console.log("Chatbot - Segment found"), E.current = window.analytics, clearInterval(Z), clearTimeout(ae),
|
12788
|
+
console.log("Chatbot - Finding Segment"), ((we = window.analytics) != null && we.track || e) && (console.log("Chatbot - Segment found"), E.current = window.analytics, clearInterval(Z), clearTimeout(ae), L(!0));
|
12788
12789
|
}, 1e3), ae = setTimeout(() => {
|
12789
12790
|
clearInterval(Z);
|
12790
12791
|
}, 6e4)), () => {
|