@2uinc/frontend-component-xpert-chatbot 1.3.14 → 1.3.16-beta.1
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 +133 -132
- package/package.json +1 -1
package/dist/lib/index.min.js
CHANGED
@@ -2783,7 +2783,7 @@ function _(e) {
|
|
2783
2783
|
function he(e) {
|
2784
2784
|
return e !== null && (e < 0 || e === 32);
|
2785
2785
|
}
|
2786
|
-
function
|
2786
|
+
function Z(e) {
|
2787
2787
|
return e === -2 || e === -1 || e === 32;
|
2788
2788
|
}
|
2789
2789
|
const nu = Pe(Xa), ru = Pe(/\s/);
|
@@ -2798,10 +2798,10 @@ function te(e, t, n, r) {
|
|
2798
2798
|
let o = 0;
|
2799
2799
|
return l;
|
2800
2800
|
function l(s) {
|
2801
|
-
return
|
2801
|
+
return Z(s) ? (e.enter(n), a(s)) : t(s);
|
2802
2802
|
}
|
2803
2803
|
function a(s) {
|
2804
|
-
return
|
2804
|
+
return Z(s) && o++ < i ? (e.consume(s), a) : (e.exit(n), t(s));
|
2805
2805
|
}
|
2806
2806
|
}
|
2807
2807
|
const iu = {
|
@@ -3124,7 +3124,7 @@ const Ut = {
|
|
3124
3124
|
function du(e, t, n) {
|
3125
3125
|
return r;
|
3126
3126
|
function r(o) {
|
3127
|
-
return
|
3127
|
+
return Z(o) ? te(e, i, "linePrefix")(o) : i(o);
|
3128
3128
|
}
|
3129
3129
|
function i(o) {
|
3130
3130
|
return o === null || _(o) ? t(o) : n(o);
|
@@ -3151,14 +3151,14 @@ function hu(e, t, n) {
|
|
3151
3151
|
return n(l);
|
3152
3152
|
}
|
3153
3153
|
function o(l) {
|
3154
|
-
return
|
3154
|
+
return Z(l) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(l), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), t) : (e.exit("blockQuotePrefix"), t(l));
|
3155
3155
|
}
|
3156
3156
|
}
|
3157
3157
|
function gu(e, t, n) {
|
3158
3158
|
const r = this;
|
3159
3159
|
return i;
|
3160
3160
|
function i(l) {
|
3161
|
-
return
|
3161
|
+
return Z(l) ? te(
|
3162
3162
|
e,
|
3163
3163
|
o,
|
3164
3164
|
"linePrefix",
|
@@ -3240,7 +3240,7 @@ function xu(e, t, n) {
|
|
3240
3240
|
return o = O && O[1].type === "linePrefix" ? O[2].sliceSerialize(O[1], !0).length : 0, a = y, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), c(y);
|
3241
3241
|
}
|
3242
3242
|
function c(y) {
|
3243
|
-
return y === a ? (l++, e.consume(y), c) : l < 3 ? n(y) : (e.exit("codeFencedFenceSequence"),
|
3243
|
+
return y === a ? (l++, e.consume(y), c) : l < 3 ? n(y) : (e.exit("codeFencedFenceSequence"), Z(y) ? te(e, p, "whitespace")(y) : p(y));
|
3244
3244
|
}
|
3245
3245
|
function p(y) {
|
3246
3246
|
return y === null || _(y) ? (e.exit("codeFencedFence"), r.interrupt ? t(y) : e.check(Gr, x, B)(y)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
@@ -3248,7 +3248,7 @@ function xu(e, t, n) {
|
|
3248
3248
|
}), m(y));
|
3249
3249
|
}
|
3250
3250
|
function m(y) {
|
3251
|
-
return y === null || _(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(y)) :
|
3251
|
+
return y === null || _(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), p(y)) : Z(y) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), te(e, f, "whitespace")(y)) : y === 96 && y === a ? n(y) : (e.consume(y), m);
|
3252
3252
|
}
|
3253
3253
|
function f(y) {
|
3254
3254
|
return y === null || _(y) ? p(y) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
@@ -3265,7 +3265,7 @@ function xu(e, t, n) {
|
|
3265
3265
|
return e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), b;
|
3266
3266
|
}
|
3267
3267
|
function b(y) {
|
3268
|
-
return o > 0 &&
|
3268
|
+
return o > 0 && Z(y) ? te(
|
3269
3269
|
e,
|
3270
3270
|
C,
|
3271
3271
|
"linePrefix",
|
@@ -3288,7 +3288,7 @@ function xu(e, t, n) {
|
|
3288
3288
|
return y.enter("lineEnding"), y.consume(z), y.exit("lineEnding"), k;
|
3289
3289
|
}
|
3290
3290
|
function k(z) {
|
3291
|
-
return y.enter("codeFencedFence"),
|
3291
|
+
return y.enter("codeFencedFence"), Z(z) ? te(
|
3292
3292
|
y,
|
3293
3293
|
M,
|
3294
3294
|
"linePrefix",
|
@@ -3299,7 +3299,7 @@ function xu(e, t, n) {
|
|
3299
3299
|
return z === a ? (y.enter("codeFencedFenceSequence"), N(z)) : F(z);
|
3300
3300
|
}
|
3301
3301
|
function N(z) {
|
3302
|
-
return z === a ? (q++, y.consume(z), N) : q >= l ? (y.exit("codeFencedFenceSequence"),
|
3302
|
+
return z === a ? (q++, y.consume(z), N) : q >= l ? (y.exit("codeFencedFenceSequence"), Z(z) ? te(y, A, "whitespace")(z) : A(z)) : F(z);
|
3303
3303
|
}
|
3304
3304
|
function A(z) {
|
3305
3305
|
return z === null || _(z) ? (y.exit("codeFencedFence"), O(z)) : F(z);
|
@@ -3529,7 +3529,7 @@ function co(e, t, n, r, i, o) {
|
|
3529
3529
|
}), p(f));
|
3530
3530
|
}
|
3531
3531
|
function p(f) {
|
3532
|
-
return f === null || f === 91 || f === 93 || _(f) || a++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), s || (s = !
|
3532
|
+
return f === null || f === 91 || f === 93 || _(f) || a++ > 999 ? (e.exit("chunkString"), c(f)) : (e.consume(f), s || (s = !Z(f)), f === 92 ? m : p);
|
3533
3533
|
}
|
3534
3534
|
function m(f) {
|
3535
3535
|
return f === 91 || f === 92 || f === 93 ? (e.consume(f), a++, p) : p(f);
|
@@ -3560,7 +3560,7 @@ function it(e, t) {
|
|
3560
3560
|
let n;
|
3561
3561
|
return r;
|
3562
3562
|
function r(i) {
|
3563
|
-
return _(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) :
|
3563
|
+
return _(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : Z(i) ? te(
|
3564
3564
|
e,
|
3565
3565
|
r,
|
3566
3566
|
n ? "linePrefix" : "lineSuffix"
|
@@ -3621,7 +3621,7 @@ function Pu(e, t, n) {
|
|
3621
3621
|
return e.attempt(Lu, p, p)(f);
|
3622
3622
|
}
|
3623
3623
|
function p(f) {
|
3624
|
-
return
|
3624
|
+
return Z(f) ? te(e, m, "whitespace")(f) : m(f);
|
3625
3625
|
}
|
3626
3626
|
function m(f) {
|
3627
3627
|
return f === null || _(f) ? (e.exit("definition"), r.parser.defined.push(i), t(f)) : n(f);
|
@@ -3643,7 +3643,7 @@ function Fu(e, t, n) {
|
|
3643
3643
|
)(a);
|
3644
3644
|
}
|
3645
3645
|
function o(a) {
|
3646
|
-
return
|
3646
|
+
return Z(a) ? te(e, l, "whitespace")(a) : l(a);
|
3647
3647
|
}
|
3648
3648
|
function l(a) {
|
3649
3649
|
return a === null || _(a) ? t(a) : n(a);
|
@@ -3698,7 +3698,7 @@ function Qu(e, t, n) {
|
|
3698
3698
|
return c === 35 && r++ < 6 ? (e.consume(c), l) : c === null || he(c) ? (e.exit("atxHeadingSequence"), a(c)) : n(c);
|
3699
3699
|
}
|
3700
3700
|
function a(c) {
|
3701
|
-
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || _(c) ? (e.exit("atxHeading"), t(c)) :
|
3701
|
+
return c === 35 ? (e.enter("atxHeadingSequence"), s(c)) : c === null || _(c) ? (e.exit("atxHeading"), t(c)) : Z(c) ? te(e, a, "whitespace")(c) : (e.enter("atxHeadingText"), u(c));
|
3702
3702
|
}
|
3703
3703
|
function s(c) {
|
3704
3704
|
return c === 35 ? (e.consume(c), s) : (e.exit("atxHeadingSequence"), a(c));
|
@@ -3825,19 +3825,19 @@ function Wu(e, t, n) {
|
|
3825
3825
|
return h === 62 ? (e.consume(h), r.interrupt ? t : M) : n(h);
|
3826
3826
|
}
|
3827
3827
|
function C(h) {
|
3828
|
-
return
|
3828
|
+
return Z(h) ? (e.consume(h), C) : $(h);
|
3829
3829
|
}
|
3830
3830
|
function v(h) {
|
3831
|
-
return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || ve(h) ? (e.consume(h), B) :
|
3831
|
+
return h === 47 ? (e.consume(h), $) : h === 58 || h === 95 || ve(h) ? (e.consume(h), B) : Z(h) ? (e.consume(h), v) : $(h);
|
3832
3832
|
}
|
3833
3833
|
function B(h) {
|
3834
3834
|
return h === 45 || h === 46 || h === 58 || h === 95 || me(h) ? (e.consume(h), B) : U(h);
|
3835
3835
|
}
|
3836
3836
|
function U(h) {
|
3837
|
-
return h === 61 ? (e.consume(h), y) :
|
3837
|
+
return h === 61 ? (e.consume(h), y) : Z(h) ? (e.consume(h), U) : v(h);
|
3838
3838
|
}
|
3839
3839
|
function y(h) {
|
3840
|
-
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, O) :
|
3840
|
+
return h === null || h === 60 || h === 61 || h === 62 || h === 96 ? n(h) : h === 34 || h === 39 ? (e.consume(h), s = h, O) : Z(h) ? (e.consume(h), y) : F(h);
|
3841
3841
|
}
|
3842
3842
|
function O(h) {
|
3843
3843
|
return h === s ? (e.consume(h), s = null, q) : h === null || _(h) ? n(h) : (e.consume(h), O);
|
@@ -3846,18 +3846,18 @@ function Wu(e, t, n) {
|
|
3846
3846
|
return h === null || h === 34 || h === 39 || h === 47 || h === 60 || h === 61 || h === 62 || h === 96 || he(h) ? U(h) : (e.consume(h), F);
|
3847
3847
|
}
|
3848
3848
|
function q(h) {
|
3849
|
-
return h === 47 || h === 62 ||
|
3849
|
+
return h === 47 || h === 62 || Z(h) ? v(h) : n(h);
|
3850
3850
|
}
|
3851
3851
|
function $(h) {
|
3852
3852
|
return h === 62 ? (e.consume(h), k) : n(h);
|
3853
3853
|
}
|
3854
3854
|
function k(h) {
|
3855
|
-
return h === null || _(h) ? M(h) :
|
3855
|
+
return h === null || _(h) ? M(h) : Z(h) ? (e.consume(h), k) : n(h);
|
3856
3856
|
}
|
3857
3857
|
function M(h) {
|
3858
3858
|
return h === 45 && i === 2 ? (e.consume(h), R) : h === 60 && i === 1 ? (e.consume(h), Q) : h === 62 && i === 4 ? (e.consume(h), re) : h === 63 && i === 3 ? (e.consume(h), d) : h === 93 && i === 5 ? (e.consume(h), X) : _(h) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(
|
3859
3859
|
qu,
|
3860
|
-
|
3860
|
+
ae,
|
3861
3861
|
N
|
3862
3862
|
)(h)) : h === null || _(h) ? (e.exit("htmlFlowData"), N(h)) : (e.consume(h), M);
|
3863
3863
|
}
|
@@ -3865,7 +3865,7 @@ function Wu(e, t, n) {
|
|
3865
3865
|
return e.check(
|
3866
3866
|
$u,
|
3867
3867
|
A,
|
3868
|
-
|
3868
|
+
ae
|
3869
3869
|
)(h);
|
3870
3870
|
}
|
3871
3871
|
function A(h) {
|
@@ -3894,9 +3894,9 @@ function Wu(e, t, n) {
|
|
3894
3894
|
return h === 62 ? (e.consume(h), re) : h === 45 && i === 2 ? (e.consume(h), d) : M(h);
|
3895
3895
|
}
|
3896
3896
|
function re(h) {
|
3897
|
-
return h === null || _(h) ? (e.exit("htmlFlowData"),
|
3897
|
+
return h === null || _(h) ? (e.exit("htmlFlowData"), ae(h)) : (e.consume(h), re);
|
3898
3898
|
}
|
3899
|
-
function
|
3899
|
+
function ae(h) {
|
3900
3900
|
return e.exit("htmlFlow"), t(h);
|
3901
3901
|
}
|
3902
3902
|
}
|
@@ -3974,22 +3974,22 @@ function Xu(e, t, n) {
|
|
3974
3974
|
return d === 45 || me(d) ? (e.consume(d), y) : O(d);
|
3975
3975
|
}
|
3976
3976
|
function O(d) {
|
3977
|
-
return _(d) ? (l = O, Q(d)) :
|
3977
|
+
return _(d) ? (l = O, Q(d)) : Z(d) ? (e.consume(d), O) : R(d);
|
3978
3978
|
}
|
3979
3979
|
function F(d) {
|
3980
3980
|
return d === 45 || me(d) ? (e.consume(d), F) : d === 47 || d === 62 || he(d) ? q(d) : n(d);
|
3981
3981
|
}
|
3982
3982
|
function q(d) {
|
3983
|
-
return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ve(d) ? (e.consume(d), $) : _(d) ? (l = q, Q(d)) :
|
3983
|
+
return d === 47 ? (e.consume(d), R) : d === 58 || d === 95 || ve(d) ? (e.consume(d), $) : _(d) ? (l = q, Q(d)) : Z(d) ? (e.consume(d), q) : R(d);
|
3984
3984
|
}
|
3985
3985
|
function $(d) {
|
3986
3986
|
return d === 45 || d === 46 || d === 58 || d === 95 || me(d) ? (e.consume(d), $) : k(d);
|
3987
3987
|
}
|
3988
3988
|
function k(d) {
|
3989
|
-
return d === 61 ? (e.consume(d), M) : _(d) ? (l = k, Q(d)) :
|
3989
|
+
return d === 61 ? (e.consume(d), M) : _(d) ? (l = k, Q(d)) : Z(d) ? (e.consume(d), k) : q(d);
|
3990
3990
|
}
|
3991
3991
|
function M(d) {
|
3992
|
-
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? n(d) : d === 34 || d === 39 ? (e.consume(d), i = d, N) : _(d) ? (l = M, Q(d)) :
|
3992
|
+
return d === null || d === 60 || d === 61 || d === 62 || d === 96 ? n(d) : d === 34 || d === 39 ? (e.consume(d), i = d, N) : _(d) ? (l = M, Q(d)) : Z(d) ? (e.consume(d), M) : (e.consume(d), A);
|
3993
3993
|
}
|
3994
3994
|
function N(d) {
|
3995
3995
|
return d === i ? (e.consume(d), i = void 0, z) : d === null ? n(d) : _(d) ? (l = N, Q(d)) : (e.consume(d), N);
|
@@ -4007,7 +4007,7 @@ function Xu(e, t, n) {
|
|
4007
4007
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), V;
|
4008
4008
|
}
|
4009
4009
|
function V(d) {
|
4010
|
-
return
|
4010
|
+
return Z(d) ? te(
|
4011
4011
|
e,
|
4012
4012
|
X,
|
4013
4013
|
"linePrefix",
|
@@ -4264,7 +4264,7 @@ function ds(e, t, n) {
|
|
4264
4264
|
return u === i ? (e.enter("thematicBreakSequence"), s(u)) : r >= 3 && (u === null || _(u)) ? (e.exit("thematicBreak"), t(u)) : n(u);
|
4265
4265
|
}
|
4266
4266
|
function s(u) {
|
4267
|
-
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"),
|
4267
|
+
return u === i ? (e.consume(u), r++, s) : (e.exit("thematicBreakSequence"), Z(u) ? te(e, a, "whitespace")(u) : a(u));
|
4268
4268
|
}
|
4269
4269
|
}
|
4270
4270
|
const de = {
|
@@ -4316,7 +4316,7 @@ function ms(e, t, n) {
|
|
4316
4316
|
return r.containerState.initialBlankLine = !0, o++, m(f);
|
4317
4317
|
}
|
4318
4318
|
function p(f) {
|
4319
|
-
return
|
4319
|
+
return Z(f) ? (e.enter("listItemPrefixWhitespace"), e.consume(f), e.exit("listItemPrefixWhitespace"), m) : n(f);
|
4320
4320
|
}
|
4321
4321
|
function m(f) {
|
4322
4322
|
return r.containerState.size = o + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, t(f);
|
@@ -4334,7 +4334,7 @@ function ys(e, t, n) {
|
|
4334
4334
|
)(a);
|
4335
4335
|
}
|
4336
4336
|
function o(a) {
|
4337
|
-
return r.containerState.furtherBlankLines || !
|
4337
|
+
return r.containerState.furtherBlankLines || !Z(a) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, l(a)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(gs, t, l)(a));
|
4338
4338
|
}
|
4339
4339
|
function l(a) {
|
4340
4340
|
return r.containerState._closeFlow = !0, r.interrupt = void 0, te(
|
@@ -4371,7 +4371,7 @@ function bs(e, t, n) {
|
|
4371
4371
|
);
|
4372
4372
|
function i(o) {
|
4373
4373
|
const l = r.events[r.events.length - 1];
|
4374
|
-
return !
|
4374
|
+
return !Z(o) && l && l[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
4375
4375
|
}
|
4376
4376
|
}
|
4377
4377
|
const Jr = {
|
@@ -4414,7 +4414,7 @@ function Ds(e, t, n) {
|
|
4414
4414
|
return e.enter("setextHeadingLineSequence"), a(u);
|
4415
4415
|
}
|
4416
4416
|
function a(u) {
|
4417
|
-
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"),
|
4417
|
+
return u === i ? (e.consume(u), a) : (e.exit("setextHeadingLineSequence"), Z(u) ? te(e, s, "lineSuffix")(u) : s(u));
|
4418
4418
|
}
|
4419
4419
|
function s(u) {
|
4420
4420
|
return u === null || _(u) ? (e.exit("setextHeadingLine"), t(u)) : n(u);
|
@@ -4647,29 +4647,29 @@ function Es(e, t, n) {
|
|
4647
4647
|
return N;
|
4648
4648
|
function N(A, z, R) {
|
4649
4649
|
let Q, V, X, d;
|
4650
|
-
return Array.isArray(A) ?
|
4650
|
+
return Array.isArray(A) ? ae(A) : "tokenize" in A ? (
|
4651
4651
|
// @ts-expect-error Looks like a construct.
|
4652
|
-
|
4652
|
+
ae([A])
|
4653
4653
|
) : re(A);
|
4654
|
-
function re(
|
4654
|
+
function re(G) {
|
4655
4655
|
return ce;
|
4656
4656
|
function ce(ne) {
|
4657
|
-
const
|
4657
|
+
const oe = ne !== null && G[ne], De = ne !== null && G.null, Se = [
|
4658
4658
|
// To do: add more extension tests.
|
4659
4659
|
/* c8 ignore next 2 */
|
4660
|
-
...Array.isArray(
|
4660
|
+
...Array.isArray(oe) ? oe : oe ? [oe] : [],
|
4661
4661
|
...Array.isArray(De) ? De : De ? [De] : []
|
4662
4662
|
];
|
4663
|
-
return
|
4663
|
+
return ae(Se)(ne);
|
4664
4664
|
}
|
4665
4665
|
}
|
4666
|
-
function
|
4667
|
-
return Q =
|
4666
|
+
function ae(G) {
|
4667
|
+
return Q = G, V = 0, G.length === 0 ? R : h(G[V]);
|
4668
4668
|
}
|
4669
|
-
function h(
|
4669
|
+
function h(G) {
|
4670
4670
|
return ce;
|
4671
4671
|
function ce(ne) {
|
4672
|
-
return d = q(), X =
|
4672
|
+
return d = q(), X = G, G.partial || (u.currentConstruct = G), G.name && u.parser.constructs.disable.null.includes(G.name) ? ye() : G.tokenize.call(
|
4673
4673
|
// If we do have fields, create an object w/ `context` as its
|
4674
4674
|
// prototype.
|
4675
4675
|
// This allows a “live binding”, which is needed for `interrupt`.
|
@@ -4680,10 +4680,10 @@ function Es(e, t, n) {
|
|
4680
4680
|
)(ne);
|
4681
4681
|
}
|
4682
4682
|
}
|
4683
|
-
function ie(
|
4683
|
+
function ie(G) {
|
4684
4684
|
return k(X, d), z;
|
4685
4685
|
}
|
4686
|
-
function ye(
|
4686
|
+
function ye(G) {
|
4687
4687
|
return d.restore(), ++V < Q.length ? h(Q[V]) : R;
|
4688
4688
|
}
|
4689
4689
|
}
|
@@ -4991,7 +4991,7 @@ function Zs(e) {
|
|
4991
4991
|
atxHeadingSequence: O,
|
4992
4992
|
autolink: c(),
|
4993
4993
|
autolinkEmail: De,
|
4994
|
-
autolinkProtocol:
|
4994
|
+
autolinkProtocol: oe,
|
4995
4995
|
blockQuote: c(),
|
4996
4996
|
characterEscapeValue: M,
|
4997
4997
|
characterReferenceMarkerHexadecimal: ce,
|
@@ -5026,8 +5026,8 @@ function Zs(e) {
|
|
5026
5026
|
listOrdered: c(),
|
5027
5027
|
listUnordered: c(),
|
5028
5028
|
paragraph: c(),
|
5029
|
-
referenceString:
|
5030
|
-
resourceDestinationString:
|
5029
|
+
referenceString: G,
|
5030
|
+
resourceDestinationString: ae,
|
5031
5031
|
resourceTitleString: h,
|
5032
5032
|
resource: ie,
|
5033
5033
|
setextHeading: c($),
|
@@ -5062,12 +5062,12 @@ function Zs(e) {
|
|
5062
5062
|
if (w[Y][0] === "enter")
|
5063
5063
|
L.push(Y);
|
5064
5064
|
else {
|
5065
|
-
const
|
5066
|
-
Y = i(w,
|
5065
|
+
const W = L.pop();
|
5066
|
+
Y = i(w, W, Y);
|
5067
5067
|
}
|
5068
5068
|
for (Y = -1; ++Y < w.length; ) {
|
5069
|
-
const
|
5070
|
-
mo.call(
|
5069
|
+
const W = t[w[Y][0]];
|
5070
|
+
mo.call(W, w[Y][1].type) && W[w[Y][1].type].call(
|
5071
5071
|
Object.assign(
|
5072
5072
|
{
|
5073
5073
|
sliceSerialize: w[Y][2].sliceSerialize
|
@@ -5078,8 +5078,8 @@ function Zs(e) {
|
|
5078
5078
|
);
|
5079
5079
|
}
|
5080
5080
|
if (I.tokenStack.length > 0) {
|
5081
|
-
const
|
5082
|
-
(
|
5081
|
+
const W = I.tokenStack[I.tokenStack.length - 1];
|
5082
|
+
(W[1] || ti).call(I, void 0, W[0]);
|
5083
5083
|
}
|
5084
5084
|
for (E.position = {
|
5085
5085
|
start: Ae(
|
@@ -5101,7 +5101,7 @@ function Zs(e) {
|
|
5101
5101
|
return E;
|
5102
5102
|
}
|
5103
5103
|
function i(w, E, I) {
|
5104
|
-
let L = E - 1, Y = -1,
|
5104
|
+
let L = E - 1, Y = -1, W = !1, ue, Te, je, Fe;
|
5105
5105
|
for (; ++L <= I; ) {
|
5106
5106
|
const J = w[L];
|
5107
5107
|
if (J[1].type === "listUnordered" || J[1].type === "listOrdered" || J[1].type === "blockQuote" ? (J[0] === "enter" ? Y++ : Y--, Fe = void 0) : J[1].type === "lineEndingBlank" ? J[0] === "enter" && (ue && !Fe && !Y && !je && (je = L), Fe = void 0) : J[1].type === "linePrefix" || J[1].type === "listItemValue" || J[1].type === "listItemMarker" || J[1].type === "listItemPrefix" || J[1].type === "listItemPrefixWhitespace" || (Fe = void 0), !Y && J[0] === "enter" && J[1].type === "listItemPrefix" || Y === -1 && J[0] === "exit" && (J[1].type === "listUnordered" || J[1].type === "listOrdered")) {
|
@@ -5112,7 +5112,7 @@ function Zs(e) {
|
|
5112
5112
|
if (Ee[1].type === "lineEnding" || Ee[1].type === "lineEndingBlank") {
|
5113
5113
|
if (Ee[0] === "exit")
|
5114
5114
|
continue;
|
5115
|
-
Te && (w[Te][1].type = "lineEndingBlank",
|
5115
|
+
Te && (w[Te][1].type = "lineEndingBlank", W = !0), Ee[1].type = "lineEnding", Te = un;
|
5116
5116
|
} else if (!(Ee[1].type === "linePrefix" || Ee[1].type === "blockQuotePrefix" || Ee[1].type === "blockQuotePrefixWhitespace" || Ee[1].type === "blockQuoteMarker" || Ee[1].type === "listItemIndent"))
|
5117
5117
|
break;
|
5118
5118
|
}
|
@@ -5130,7 +5130,7 @@ function Zs(e) {
|
|
5130
5130
|
}, w.splice(L, 0, ["enter", ue, J[2]]), L++, I++, je = void 0, Fe = !0);
|
5131
5131
|
}
|
5132
5132
|
}
|
5133
|
-
return w[E][1]._spread =
|
5133
|
+
return w[E][1]._spread = W, I;
|
5134
5134
|
}
|
5135
5135
|
function o(w, E) {
|
5136
5136
|
n[w] = E;
|
@@ -5301,7 +5301,7 @@ function Zs(e) {
|
|
5301
5301
|
} else
|
5302
5302
|
I.alt = E;
|
5303
5303
|
}
|
5304
|
-
function
|
5304
|
+
function ae() {
|
5305
5305
|
const w = this.resume(), E = this.stack[this.stack.length - 1];
|
5306
5306
|
E.url = w;
|
5307
5307
|
}
|
@@ -5315,7 +5315,7 @@ function Zs(e) {
|
|
5315
5315
|
function ye() {
|
5316
5316
|
o("referenceType", "collapsed");
|
5317
5317
|
}
|
5318
|
-
function
|
5318
|
+
function G(w) {
|
5319
5319
|
const E = this.resume(), I = this.stack[this.stack.length - 1];
|
5320
5320
|
I.label = E, I.identifier = qe(
|
5321
5321
|
this.sliceSerialize(w)
|
@@ -5334,7 +5334,7 @@ function Zs(e) {
|
|
5334
5334
|
const Y = this.stack.pop();
|
5335
5335
|
Y.value += L, Y.position.end = Ae(w.end);
|
5336
5336
|
}
|
5337
|
-
function
|
5337
|
+
function oe(w) {
|
5338
5338
|
M.call(this, w);
|
5339
5339
|
const E = this.stack[this.stack.length - 1];
|
5340
5340
|
E.url = this.sliceSerialize(w);
|
@@ -6319,14 +6319,14 @@ be.prototype.commaOrSpaceSeparated = !1;
|
|
6319
6319
|
be.prototype.mustUseProperty = !1;
|
6320
6320
|
be.prototype.defined = !1;
|
6321
6321
|
let qc = 0;
|
6322
|
-
const H = Ye(),
|
6322
|
+
const H = Ye(), le = Ye(), vo = Ye(), j = Ye(), ee = Ye(), $e = Ye(), ge = Ye();
|
6323
6323
|
function Ye() {
|
6324
6324
|
return 2 ** ++qc;
|
6325
6325
|
}
|
6326
6326
|
const Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6327
6327
|
__proto__: null,
|
6328
6328
|
boolean: H,
|
6329
|
-
booleanish:
|
6329
|
+
booleanish: le,
|
6330
6330
|
commaOrSpaceSeparated: ge,
|
6331
6331
|
commaSeparated: $e,
|
6332
6332
|
number: j,
|
@@ -6408,10 +6408,10 @@ const Co = Ze({
|
|
6408
6408
|
},
|
6409
6409
|
properties: {
|
6410
6410
|
ariaActiveDescendant: null,
|
6411
|
-
ariaAtomic:
|
6411
|
+
ariaAtomic: le,
|
6412
6412
|
ariaAutoComplete: null,
|
6413
|
-
ariaBusy:
|
6414
|
-
ariaChecked:
|
6413
|
+
ariaBusy: le,
|
6414
|
+
ariaChecked: le,
|
6415
6415
|
ariaColCount: j,
|
6416
6416
|
ariaColIndex: j,
|
6417
6417
|
ariaColSpan: j,
|
@@ -6419,36 +6419,36 @@ const Co = Ze({
|
|
6419
6419
|
ariaCurrent: null,
|
6420
6420
|
ariaDescribedBy: ee,
|
6421
6421
|
ariaDetails: null,
|
6422
|
-
ariaDisabled:
|
6422
|
+
ariaDisabled: le,
|
6423
6423
|
ariaDropEffect: ee,
|
6424
6424
|
ariaErrorMessage: null,
|
6425
|
-
ariaExpanded:
|
6425
|
+
ariaExpanded: le,
|
6426
6426
|
ariaFlowTo: ee,
|
6427
|
-
ariaGrabbed:
|
6427
|
+
ariaGrabbed: le,
|
6428
6428
|
ariaHasPopup: null,
|
6429
|
-
ariaHidden:
|
6429
|
+
ariaHidden: le,
|
6430
6430
|
ariaInvalid: null,
|
6431
6431
|
ariaKeyShortcuts: null,
|
6432
6432
|
ariaLabel: null,
|
6433
6433
|
ariaLabelledBy: ee,
|
6434
6434
|
ariaLevel: j,
|
6435
6435
|
ariaLive: null,
|
6436
|
-
ariaModal:
|
6437
|
-
ariaMultiLine:
|
6438
|
-
ariaMultiSelectable:
|
6436
|
+
ariaModal: le,
|
6437
|
+
ariaMultiLine: le,
|
6438
|
+
ariaMultiSelectable: le,
|
6439
6439
|
ariaOrientation: null,
|
6440
6440
|
ariaOwns: ee,
|
6441
6441
|
ariaPlaceholder: null,
|
6442
6442
|
ariaPosInSet: j,
|
6443
|
-
ariaPressed:
|
6444
|
-
ariaReadOnly:
|
6443
|
+
ariaPressed: le,
|
6444
|
+
ariaReadOnly: le,
|
6445
6445
|
ariaRelevant: null,
|
6446
|
-
ariaRequired:
|
6446
|
+
ariaRequired: le,
|
6447
6447
|
ariaRoleDescription: ee,
|
6448
6448
|
ariaRowCount: j,
|
6449
6449
|
ariaRowIndex: j,
|
6450
6450
|
ariaRowSpan: j,
|
6451
|
-
ariaSelected:
|
6451
|
+
ariaSelected: le,
|
6452
6452
|
ariaSetSize: j,
|
6453
6453
|
ariaSort: null,
|
6454
6454
|
ariaValueMax: j,
|
@@ -6494,7 +6494,7 @@ const Co = Ze({
|
|
6494
6494
|
cols: j,
|
6495
6495
|
colSpan: null,
|
6496
6496
|
content: null,
|
6497
|
-
contentEditable:
|
6497
|
+
contentEditable: le,
|
6498
6498
|
controls: H,
|
6499
6499
|
controlsList: ee,
|
6500
6500
|
coords: j | $e,
|
@@ -6508,7 +6508,7 @@ const Co = Ze({
|
|
6508
6508
|
dirName: null,
|
6509
6509
|
disabled: H,
|
6510
6510
|
download: vo,
|
6511
|
-
draggable:
|
6511
|
+
draggable: le,
|
6512
6512
|
encType: null,
|
6513
6513
|
enterKeyHint: null,
|
6514
6514
|
fetchPriority: null,
|
@@ -6678,7 +6678,7 @@ const Co = Ze({
|
|
6678
6678
|
sizes: null,
|
6679
6679
|
slot: null,
|
6680
6680
|
span: j,
|
6681
|
-
spellCheck:
|
6681
|
+
spellCheck: le,
|
6682
6682
|
src: null,
|
6683
6683
|
srcDoc: null,
|
6684
6684
|
srcLang: null,
|
@@ -6693,7 +6693,7 @@ const Co = Ze({
|
|
6693
6693
|
type: null,
|
6694
6694
|
typeMustMatch: H,
|
6695
6695
|
useMap: null,
|
6696
|
-
value:
|
6696
|
+
value: le,
|
6697
6697
|
width: j,
|
6698
6698
|
wrap: null,
|
6699
6699
|
// Legacy.
|
@@ -6784,7 +6784,7 @@ const Co = Ze({
|
|
6784
6784
|
// `<table>`
|
6785
6785
|
scheme: null,
|
6786
6786
|
// `<meta>`
|
6787
|
-
scrolling:
|
6787
|
+
scrolling: le,
|
6788
6788
|
// `<frame>`. Use overflow in the child context
|
6789
6789
|
standby: null,
|
6790
6790
|
// `<object>`
|
@@ -8680,12 +8680,12 @@ var xi = {
|
|
8680
8680
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
8681
8681
|
*/
|
8682
8682
|
nextTabbableNode: function(re) {
|
8683
|
-
var
|
8684
|
-
return h < 0 ?
|
8683
|
+
var ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, h = N.indexOf(re);
|
8684
|
+
return h < 0 ? ae ? A.slice(A.indexOf(re) + 1).find(function(ie) {
|
8685
8685
|
return Re(ie);
|
8686
8686
|
}) : A.slice(0, A.indexOf(re)).reverse().find(function(ie) {
|
8687
8687
|
return Re(ie);
|
8688
|
-
}) : N[h + (
|
8688
|
+
}) : N[h + (ae ? 1 : -1)];
|
8689
8689
|
}
|
8690
8690
|
};
|
8691
8691
|
}), l.tabbableGroups = l.containerGroups.filter(function(M) {
|
@@ -8722,18 +8722,18 @@ var xi = {
|
|
8722
8722
|
if (V < 0)
|
8723
8723
|
R ? Q = l.tabbableGroups[l.tabbableGroups.length - 1].lastTabbableNode : Q = l.tabbableGroups[0].firstTabbableNode;
|
8724
8724
|
else if (R) {
|
8725
|
-
var d = wi(l.tabbableGroups, function(
|
8726
|
-
var ce =
|
8725
|
+
var d = wi(l.tabbableGroups, function(G) {
|
8726
|
+
var ce = G.firstTabbableNode;
|
8727
8727
|
return N === ce;
|
8728
8728
|
});
|
8729
8729
|
if (d < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N, !1)) && (d = V), d >= 0) {
|
8730
|
-
var re = d === 0 ? l.tabbableGroups.length - 1 : d - 1,
|
8731
|
-
Q = Oe(N) >= 0 ?
|
8730
|
+
var re = d === 0 ? l.tabbableGroups.length - 1 : d - 1, ae = l.tabbableGroups[re];
|
8731
|
+
Q = Oe(N) >= 0 ? ae.lastTabbableNode : ae.lastDomTabbableNode;
|
8732
8732
|
} else
|
8733
8733
|
ot(A) || (Q = X.nextTabbableNode(N, !1));
|
8734
8734
|
} else {
|
8735
|
-
var h = wi(l.tabbableGroups, function(
|
8736
|
-
var ce =
|
8735
|
+
var h = wi(l.tabbableGroups, function(G) {
|
8736
|
+
var ce = G.lastTabbableNode;
|
8737
8737
|
return N === ce;
|
8738
8738
|
});
|
8739
8739
|
if (h < 0 && (X.container === N || Et(N, o.tabbableOptions) && !Re(N, o.tabbableOptions) && !X.nextTabbableNode(N)) && (h = V), h >= 0) {
|
@@ -9832,7 +9832,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9832
9832
|
proactiveMessage: T,
|
9833
9833
|
disableDisclaimerPage: x,
|
9834
9834
|
conversationHistory: S
|
9835
|
-
} = i, b = ct(Bf), [, C] = se(!1), [v, B] = se(Qf), [U, y] = se(!1), [O, F] = se(!1), [q, $] = se(!1), [k, M] = se(""), [N, A] = se(!1), [z, R] = se(!1), [Q, V] = se(!0), [X, d] = se(!1), [re,
|
9835
|
+
} = i, b = ct(Bf), [, C] = se(!1), [v, B] = se(Qf), [U, y] = se(!1), [O, F] = se(!1), [q, $] = se(!1), [k, M] = se(""), [N, A] = se(!1), [z, R] = se(!1), [Q, V] = se(!0), [X, d] = se(!1), [re, ae] = se(!1), [h, ie] = se(!1), ye = ze(null), G = ze(null), ce = ze(null), ne = Ne.get(`${m}-test`) === "1", oe = lt(
|
9836
9836
|
({ name: I, payload: L }) => {
|
9837
9837
|
t ? t({ name: I, payload: L }) : ce.current.track(
|
9838
9838
|
// TODO: this is untestable - create a custom hook to get submit event function.
|
@@ -9867,11 +9867,11 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9867
9867
|
throw new wn(`HTTPError: ${L.status} ${L.statusText}`);
|
9868
9868
|
const Y = await L.json();
|
9869
9869
|
B(
|
9870
|
-
Y.map((
|
9871
|
-
...
|
9870
|
+
Y.map((W) => ({
|
9871
|
+
...W,
|
9872
9872
|
disableFeedback: !0
|
9873
9873
|
}))
|
9874
|
-
),
|
9874
|
+
), ae(!0), ie(!0);
|
9875
9875
|
} catch (I) {
|
9876
9876
|
console.error(I);
|
9877
9877
|
} finally {
|
@@ -9887,8 +9887,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9887
9887
|
console.log("Chatbot - mount");
|
9888
9888
|
let I, L;
|
9889
9889
|
return u && (I = setInterval(() => {
|
9890
|
-
var
|
9891
|
-
console.log("Chatbot - intervalCheckForScripts"), (
|
9890
|
+
var W;
|
9891
|
+
console.log("Chatbot - intervalCheckForScripts"), (W = window.analytics) != null && W.track && (!c || c && window.optimizely && window.experiments) && (console.log("Chatbot - intervalCheckForScripts all found"), ce.current = window.analytics, clearInterval(I), clearTimeout(L), C(!0));
|
9892
9892
|
}, 1e3), L = setTimeout(() => {
|
9893
9893
|
clearInterval(I);
|
9894
9894
|
}, 6e4)), () => {
|
@@ -9896,8 +9896,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9896
9896
|
};
|
9897
9897
|
}, [c, u]), fe(() => {
|
9898
9898
|
const I = (Y) => {
|
9899
|
-
var
|
9900
|
-
(
|
9899
|
+
var W, ue;
|
9900
|
+
(W = Y == null ? void 0 : Y.target) != null && W.href && oe({
|
9901
9901
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
9902
9902
|
payload: {
|
9903
9903
|
category: "2u",
|
@@ -9910,7 +9910,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9910
9910
|
return L && L.addEventListener("click", I), () => {
|
9911
9911
|
L == null || L.removeEventListener("click", I);
|
9912
9912
|
};
|
9913
|
-
});
|
9913
|
+
}, [ne, oe, u]);
|
9914
9914
|
const Se = Ff(c);
|
9915
9915
|
if (!e && !i)
|
9916
9916
|
return console.log("Chatbot - xpertKey or configuration is required"), null;
|
@@ -9934,25 +9934,26 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9934
9934
|
`Chatbot - All things setup: ${i.xpertKey}, ${typeof window.analytics}, ${Se}, ${typeof window.optimizely}, ${typeof window.experiments}`
|
9935
9935
|
);
|
9936
9936
|
const He = () => {
|
9937
|
-
M(""),
|
9938
|
-
}, en = (I) => {
|
9939
|
-
|
9937
|
+
M(""), G.current.value = "", G.current.style.height = "auto";
|
9938
|
+
}, en = (I, L) => {
|
9939
|
+
oe({
|
9940
9940
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.response`,
|
9941
9941
|
payload: {
|
9942
9942
|
category: "2u",
|
9943
9943
|
label: "xpert-chatbot",
|
9944
9944
|
linkCount: _f(I),
|
9945
9945
|
apiResponseMessage: I,
|
9946
|
-
isTestUser: ne
|
9946
|
+
isTestUser: ne,
|
9947
|
+
conversationHistoryId: L
|
9947
9948
|
}
|
9948
9949
|
});
|
9949
9950
|
}, tn = ({
|
9950
9951
|
conversationSize: I,
|
9951
9952
|
userInputMessage: L,
|
9952
9953
|
apiResponseMessage: Y,
|
9953
|
-
elapsedSeconds:
|
9954
|
+
elapsedSeconds: W
|
9954
9955
|
}) => {
|
9955
|
-
|
9956
|
+
oe({
|
9956
9957
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
9957
9958
|
payload: {
|
9958
9959
|
category: "2u",
|
@@ -9961,7 +9962,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9961
9962
|
conversationSize: I,
|
9962
9963
|
userInputMessage: L,
|
9963
9964
|
apiResponseMessage: Y,
|
9964
|
-
elapsedSeconds:
|
9965
|
+
elapsedSeconds: W
|
9965
9966
|
}
|
9966
9967
|
});
|
9967
9968
|
}, nn = (I) => {
|
@@ -9975,7 +9976,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9975
9976
|
const L = /* @__PURE__ */ new Date();
|
9976
9977
|
ie(!1), R(!1);
|
9977
9978
|
const Y = v.filter((J) => J.role === "user").length + 1;
|
9978
|
-
|
9979
|
+
oe({
|
9979
9980
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.sent`,
|
9980
9981
|
payload: {
|
9981
9982
|
category: "2u",
|
@@ -9985,8 +9986,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
9985
9986
|
isTestUser: ne
|
9986
9987
|
}
|
9987
9988
|
}), He();
|
9988
|
-
let
|
9989
|
-
!
|
9989
|
+
let W = Ne.get(`${m}-conversation-history-id`) || "";
|
9990
|
+
!W && (S != null && S.enabled) ? B([
|
9990
9991
|
{
|
9991
9992
|
role: "user",
|
9992
9993
|
content: I
|
@@ -10002,7 +10003,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10002
10003
|
method: "POST",
|
10003
10004
|
headers: {
|
10004
10005
|
"Content-Type": "application/json",
|
10005
|
-
"Conversation-History-Id":
|
10006
|
+
"Conversation-History-Id": W
|
10006
10007
|
},
|
10007
10008
|
body: JSON.stringify({
|
10008
10009
|
message_list: [
|
@@ -10022,13 +10023,13 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10022
10023
|
});
|
10023
10024
|
if (!ue.ok)
|
10024
10025
|
throw new wn(`HTTPError: ${ue.status} ${ue.statusText}`);
|
10025
|
-
|
10026
|
+
W = ue.headers.get("Conversation-History-Id"), W && Ne.set(
|
10026
10027
|
`${m}-conversation-history-id`,
|
10027
|
-
|
10028
|
+
W,
|
10028
10029
|
{ expires: 1 }
|
10029
10030
|
);
|
10030
10031
|
const je = (await ue.json()).content;
|
10031
|
-
en(je);
|
10032
|
+
en(je, W);
|
10032
10033
|
const Fe = /* @__PURE__ */ new Date();
|
10033
10034
|
tn({
|
10034
10035
|
conversationSize: v.length + 2,
|
@@ -10042,12 +10043,12 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10042
10043
|
content: je,
|
10043
10044
|
createdAt: /* @__PURE__ */ new Date()
|
10044
10045
|
}
|
10045
|
-
]),
|
10046
|
+
]), ae(!1), y(!1), He(), ie(!0);
|
10046
10047
|
} catch (L) {
|
10047
10048
|
y(!1), He(), R(!0), console.error(L);
|
10048
10049
|
}
|
10049
10050
|
}, ht = () => {
|
10050
|
-
$(!1), F(!0),
|
10051
|
+
$(!1), F(!0), oe({
|
10051
10052
|
name: `${u}.bi.xpert.chatbot.action.button.clicked`,
|
10052
10053
|
payload: {
|
10053
10054
|
category: "2u",
|
@@ -10056,7 +10057,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10056
10057
|
}
|
10057
10058
|
});
|
10058
10059
|
}, rn = (I) => {
|
10059
|
-
|
10060
|
+
oe({
|
10060
10061
|
name: `${u}.bi.xpert.chatbot.${I ? "normal" : "expand"}.size.button.clicked`,
|
10061
10062
|
payload: {
|
10062
10063
|
category: "2u",
|
@@ -10065,7 +10066,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10065
10066
|
}
|
10066
10067
|
}), V(I);
|
10067
10068
|
}, gt = () => {
|
10068
|
-
F(!0),
|
10069
|
+
F(!0), oe({
|
10069
10070
|
name: `${u}.bi.xpert.chatbot.proactive.message.clicked`,
|
10070
10071
|
payload: {
|
10071
10072
|
category: "2u",
|
@@ -10074,7 +10075,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10074
10075
|
}
|
10075
10076
|
});
|
10076
10077
|
}, mt = () => {
|
10077
|
-
|
10078
|
+
oe({
|
10078
10079
|
name: `${u}.bi.xpert.chatbot.proactive.message.closed`,
|
10079
10080
|
payload: {
|
10080
10081
|
category: "2u",
|
@@ -10083,7 +10084,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10083
10084
|
}
|
10084
10085
|
});
|
10085
10086
|
}, on = () => {
|
10086
|
-
F(!1),
|
10087
|
+
F(!1), oe({
|
10087
10088
|
name: `${u}.bi.xpert.chatbot.popup.disclaimer.closed`,
|
10088
10089
|
payload: {
|
10089
10090
|
category: "2u",
|
@@ -10092,7 +10093,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10092
10093
|
}
|
10093
10094
|
});
|
10094
10095
|
}, ln = () => {
|
10095
|
-
F(!1), d(!1),
|
10096
|
+
F(!1), d(!1), oe({
|
10096
10097
|
name: `${u}.bi.xpert.chatbot.popup.chat.minimized`,
|
10097
10098
|
payload: {
|
10098
10099
|
category: "2u",
|
@@ -10103,8 +10104,8 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10103
10104
|
}, yt = () => {
|
10104
10105
|
var I;
|
10105
10106
|
/* istanbul ignore next @preserve */
|
10106
|
-
|
10107
|
-
(I =
|
10107
|
+
G.current && (G.current.style.height = "auto", G.current.style.height = `${Math.min(
|
10108
|
+
(I = G.current) == null ? void 0 : I.scrollHeight,
|
10108
10109
|
120
|
10109
10110
|
)}px`);
|
10110
10111
|
}, Mt = (I) => {
|
@@ -10112,7 +10113,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10112
10113
|
}, an = (I) => {
|
10113
10114
|
I.key === "Enter" && k.trim() === "" || I.key === "Enter" && !I.shiftKey && (I.preventDefault(), Ce(k));
|
10114
10115
|
}, w = (I, L = "") => {
|
10115
|
-
const Y = v.map((
|
10116
|
+
const Y = v.map((W, ue) => I === ue ? (oe({
|
10116
10117
|
name: `${u}.bi.xpert.chatbot.feedback.thumbs.${L.toLowerCase()}.clicked`,
|
10117
10118
|
payload: {
|
10118
10119
|
category: "2u",
|
@@ -10123,10 +10124,10 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10123
10124
|
isTestUser: ne
|
10124
10125
|
}
|
10125
10126
|
}), {
|
10126
|
-
...
|
10127
|
+
...W,
|
10127
10128
|
feedbackThumbType: L
|
10128
|
-
}) :
|
10129
|
-
B(Y),
|
10129
|
+
}) : W);
|
10130
|
+
B(Y), ae(!1);
|
10130
10131
|
};
|
10131
10132
|
return (
|
10132
10133
|
// do not remove this class as it's needed to turn off chatbot
|
@@ -10219,7 +10220,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10219
10220
|
dr,
|
10220
10221
|
{
|
10221
10222
|
configurations: i,
|
10222
|
-
submitEvent:
|
10223
|
+
submitEvent: oe,
|
10223
10224
|
setLiveChatOpen: $,
|
10224
10225
|
isTestUser: ne
|
10225
10226
|
}
|
@@ -10227,7 +10228,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10227
10228
|
/* @__PURE__ */ D.jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ D.jsx(
|
10228
10229
|
_t,
|
10229
10230
|
{
|
10230
|
-
inputRef:
|
10231
|
+
inputRef: G,
|
10231
10232
|
loading: U,
|
10232
10233
|
hasXpertMessages: h,
|
10233
10234
|
hasError: z,
|
@@ -10245,7 +10246,7 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
10245
10246
|
{
|
10246
10247
|
onClose: on,
|
10247
10248
|
loading: U,
|
10248
|
-
inputRef:
|
10249
|
+
inputRef: G,
|
10249
10250
|
hasError: z,
|
10250
10251
|
userInput: k,
|
10251
10252
|
handleSend: dt,
|