@2uinc/frontend-component-xpert-chatbot 1.3.14 → 1.3.15
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 +81 -80
- 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,13 +3846,13 @@ 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(
|
@@ -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);
|
@@ -4651,10 +4651,10 @@ function Es(e, t, n) {
|
|
4651
4651
|
// @ts-expect-error Looks like a construct.
|
4652
4652
|
le([A])
|
4653
4653
|
) : re(A);
|
4654
|
-
function re(
|
4654
|
+
function re(G) {
|
4655
4655
|
return ce;
|
4656
4656
|
function ce(ne) {
|
4657
|
-
const ae = ne !== null &&
|
4657
|
+
const ae = 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
4660
|
...Array.isArray(ae) ? ae : ae ? [ae] : [],
|
@@ -4663,13 +4663,13 @@ function Es(e, t, n) {
|
|
4663
4663
|
return le(Se)(ne);
|
4664
4664
|
}
|
4665
4665
|
}
|
4666
|
-
function le(
|
4667
|
-
return Q =
|
4666
|
+
function le(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
|
}
|
@@ -5026,7 +5026,7 @@ function Zs(e) {
|
|
5026
5026
|
listOrdered: c(),
|
5027
5027
|
listUnordered: c(),
|
5028
5028
|
paragraph: c(),
|
5029
|
-
referenceString:
|
5029
|
+
referenceString: G,
|
5030
5030
|
resourceDestinationString: le,
|
5031
5031
|
resourceTitleString: h,
|
5032
5032
|
resource: ie,
|
@@ -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;
|
@@ -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)
|
@@ -8722,8 +8722,8 @@ 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) {
|
@@ -8732,8 +8732,8 @@ var xi = {
|
|
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, le] = se(!1), [h, ie] = se(!1), ye = ze(null),
|
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, le] = se(!1), [h, ie] = se(!1), ye = ze(null), G = ze(null), ce = ze(null), ne = Ne.get(`${m}-test`) === "1", ae = 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,8 +9867,8 @@ 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
|
), le(!0), ie(!0);
|
@@ -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 && ae({
|
9901
9901
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.link.clicked`,
|
9902
9902
|
payload: {
|
9903
9903
|
category: "2u",
|
@@ -9934,8 +9934,8 @@ 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) => {
|
9937
|
+
M(""), G.current.value = "", G.current.style.height = "auto";
|
9938
|
+
}, en = (I, L) => {
|
9939
9939
|
ae({
|
9940
9940
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.response`,
|
9941
9941
|
payload: {
|
@@ -9943,14 +9943,15 @@ function el({ xpertKey: e, submitEventExternal: t, configurations: n }) {
|
|
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
|
ae({
|
9956
9957
|
name: `${u}.bi.xpert.chatbot.popup.chat.message.elapsed.seconds`,
|
@@ -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) => {
|
@@ -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,
|
@@ -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 ? (ae({
|
10116
10117
|
name: `${u}.bi.xpert.chatbot.feedback.thumbs.${L.toLowerCase()}.clicked`,
|
10117
10118
|
payload: {
|
10118
10119
|
category: "2u",
|
@@ -10123,9 +10124,9 @@ 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
|
+
}) : W);
|
10129
10130
|
B(Y), le(!1);
|
10130
10131
|
};
|
10131
10132
|
return (
|
@@ -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,
|