@snf/access-qa-bot 3.0.2 → 3.0.4
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/access-qa-bot.js +94 -94
- package/dist/access-qa-bot.js.map +1 -1
- package/dist/access-qa-bot.standalone.js +14 -14
- package/dist/access-qa-bot.standalone.js.map +1 -1
- package/dist/access-qa-bot.umd.cjs +1 -1
- package/dist/access-qa-bot.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/access-qa-bot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as st, jsx as X, Fragment as Vt } from "react/jsx-runtime";
|
|
2
2
|
import * as gt from "react";
|
|
3
|
-
import
|
|
3
|
+
import fe, { forwardRef as Pn, createContext as to, useRef as tt, useEffect as Ye, useImperativeHandle as od, useState as Ue, useMemo as Zt, useContext as no, useCallback as Ie, isValidElement as Tu, createElement as Xu, Fragment as Du } from "react";
|
|
4
4
|
import hf from "react-dom";
|
|
5
5
|
var zc = hf;
|
|
6
6
|
process.env.NODE_ENV === "production" ? (zc.createRoot, zc.hydrateRoot) : zc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -18,7 +18,7 @@ var Ju;
|
|
|
18
18
|
function gf() {
|
|
19
19
|
if (Ju) return vi;
|
|
20
20
|
Ju = 1;
|
|
21
|
-
var e =
|
|
21
|
+
var e = fe;
|
|
22
22
|
function n(g) {
|
|
23
23
|
for (var x = "https://reactjs.org/docs/error-decoder.html?invariant=" + g, T = 1; T < arguments.length; T++) x += "&args[]=" + encodeURIComponent(arguments[T]);
|
|
24
24
|
return "Minified React error #" + g + "; visit " + x + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
@@ -1248,7 +1248,7 @@ var Ku;
|
|
|
1248
1248
|
function mf() {
|
|
1249
1249
|
if (Ku) return Sl;
|
|
1250
1250
|
Ku = 1;
|
|
1251
|
-
var e =
|
|
1251
|
+
var e = fe;
|
|
1252
1252
|
function n(v) {
|
|
1253
1253
|
for (var w = "https://reactjs.org/docs/error-decoder.html?invariant=" + v, k = 1; k < arguments.length; k++) w += "&args[]=" + encodeURIComponent(arguments[k]);
|
|
1254
1254
|
return "Minified React error #" + v + "; visit " + w + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
@@ -2498,7 +2498,7 @@ var yi = {};
|
|
|
2498
2498
|
var $u;
|
|
2499
2499
|
function vf() {
|
|
2500
2500
|
return $u || ($u = 1, process.env.NODE_ENV !== "production" && function() {
|
|
2501
|
-
var e =
|
|
2501
|
+
var e = fe, n = "18.3.1", i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2502
2502
|
function a(t) {
|
|
2503
2503
|
{
|
|
2504
2504
|
for (var r = arguments.length, s = new Array(r > 1 ? r - 1 : 0), f = 1; f < r; f++)
|
|
@@ -4010,18 +4010,18 @@ function vf() {
|
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
4012
4012
|
if (b != null) {
|
|
4013
|
-
var
|
|
4014
|
-
if (P !== null ? (F(P, "value"),
|
|
4013
|
+
var pe;
|
|
4014
|
+
if (P !== null ? (F(P, "value"), pe = "" + P) : (Y !== null && (se || (se = !0, o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))), pe = je(S)), gn(b))
|
|
4015
4015
|
for (var De = 0; De < b.length; De++) {
|
|
4016
4016
|
F(b[De], "value");
|
|
4017
4017
|
var Ge = "" + b[De];
|
|
4018
|
-
if (Ge ===
|
|
4018
|
+
if (Ge === pe) {
|
|
4019
4019
|
t.push(Ot);
|
|
4020
4020
|
break;
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
4023
|
else
|
|
4024
|
-
F(b, "select.value"), "" + b ===
|
|
4024
|
+
F(b, "select.value"), "" + b === pe && t.push(Ot);
|
|
4025
4025
|
} else _ && t.push(Ot);
|
|
4026
4026
|
return t.push(Nt), x(t, Y, S), S;
|
|
4027
4027
|
}
|
|
@@ -4676,9 +4676,9 @@ function vf() {
|
|
|
4676
4676
|
if (re !== 1 || oe !== 1)
|
|
4677
4677
|
do
|
|
4678
4678
|
if (re--, oe--, oe < 0 || _[re] !== Y[oe]) {
|
|
4679
|
-
var
|
|
4679
|
+
var pe = `
|
|
4680
4680
|
` + _[re].replace(" at new ", " at ");
|
|
4681
|
-
return t.displayName &&
|
|
4681
|
+
return t.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", t.displayName)), typeof t == "function" && xo.set(t, pe), pe;
|
|
4682
4682
|
}
|
|
4683
4683
|
while (re >= 1 && oe >= 0);
|
|
4684
4684
|
break;
|
|
@@ -4951,8 +4951,8 @@ Please check the code for the %s component.`, r, r, f), Ks[b] = !0;
|
|
|
4951
4951
|
ni.has(Y) || (ni.add(Y), o("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", Y, _.state === null ? "null" : "undefined", Y));
|
|
4952
4952
|
}
|
|
4953
4953
|
if (typeof t.getDerivedStateFromProps == "function" || typeof _.getSnapshotBeforeUpdate == "function") {
|
|
4954
|
-
var re = null, oe = null,
|
|
4955
|
-
if (typeof _.componentWillMount == "function" && _.componentWillMount.__suppressDeprecationWarning !== !0 ? re = "componentWillMount" : typeof _.UNSAFE_componentWillMount == "function" && (re = "UNSAFE_componentWillMount"), typeof _.componentWillReceiveProps == "function" && _.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? oe = "componentWillReceiveProps" : typeof _.UNSAFE_componentWillReceiveProps == "function" && (oe = "UNSAFE_componentWillReceiveProps"), typeof _.componentWillUpdate == "function" && _.componentWillUpdate.__suppressDeprecationWarning !== !0 ?
|
|
4954
|
+
var re = null, oe = null, pe = null;
|
|
4955
|
+
if (typeof _.componentWillMount == "function" && _.componentWillMount.__suppressDeprecationWarning !== !0 ? re = "componentWillMount" : typeof _.UNSAFE_componentWillMount == "function" && (re = "UNSAFE_componentWillMount"), typeof _.componentWillReceiveProps == "function" && _.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? oe = "componentWillReceiveProps" : typeof _.UNSAFE_componentWillReceiveProps == "function" && (oe = "UNSAFE_componentWillReceiveProps"), typeof _.componentWillUpdate == "function" && _.componentWillUpdate.__suppressDeprecationWarning !== !0 ? pe = "componentWillUpdate" : typeof _.UNSAFE_componentWillUpdate == "function" && (pe = "UNSAFE_componentWillUpdate"), re !== null || oe !== null || pe !== null) {
|
|
4956
4956
|
var De = ct(t) || "Component", Ge = typeof t.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
4957
4957
|
oa.has(De) || (oa.add(De), o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
4958
4958
|
|
|
@@ -4961,8 +4961,8 @@ Please check the code for the %s component.`, r, r, f), Ks[b] = !0;
|
|
|
4961
4961
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
4962
4962
|
https://reactjs.org/link/unsafe-component-lifecycles`, De, Ge, re !== null ? `
|
|
4963
4963
|
` + re : "", oe !== null ? `
|
|
4964
|
-
` + oe : "",
|
|
4965
|
-
` +
|
|
4964
|
+
` + oe : "", pe !== null ? `
|
|
4965
|
+
` + pe : ""));
|
|
4966
4966
|
}
|
|
4967
4967
|
}
|
|
4968
4968
|
}
|
|
@@ -5040,7 +5040,7 @@ Please update the following components: %s`,
|
|
|
5040
5040
|
function as(t, r, s) {
|
|
5041
5041
|
var f = t.id, b = t.overflow, S = ai(f) - 1, P = f & ~(1 << S), _ = s + 1, Y = ai(r) + S;
|
|
5042
5042
|
if (Y > 30) {
|
|
5043
|
-
var re = S - S % 5, oe = (1 << re) - 1,
|
|
5043
|
+
var re = S - S % 5, oe = (1 << re) - 1, pe = (P & oe).toString(32), De = P >> re, Ge = S - re, It = ai(r) + Ge, Zr = _ << Ge, qr = Zr | De, dr = pe + b;
|
|
5044
5044
|
return {
|
|
5045
5045
|
id: 1 << It | qr,
|
|
5046
5046
|
overflow: dr
|
|
@@ -5155,8 +5155,8 @@ Incoming: %s`, An, "[" + t.join(", ") + "]", "[" + r.join(", ") + "]");
|
|
|
5155
5155
|
var oe = rt.queue = {
|
|
5156
5156
|
last: null,
|
|
5157
5157
|
dispatch: null
|
|
5158
|
-
},
|
|
5159
|
-
return [rt.memoizedState,
|
|
5158
|
+
}, pe = oe.dispatch = rl.bind(null, lr, oe);
|
|
5159
|
+
return [rt.memoizedState, pe];
|
|
5160
5160
|
}
|
|
5161
5161
|
}
|
|
5162
5162
|
function nl(t, r) {
|
|
@@ -5296,7 +5296,7 @@ Error generating stack: ` + f.message + `
|
|
|
5296
5296
|
function To() {
|
|
5297
5297
|
}
|
|
5298
5298
|
function Do(t, r, s, f, b, S, P, _, Y) {
|
|
5299
|
-
var re = [], oe = /* @__PURE__ */ new Set(),
|
|
5299
|
+
var re = [], oe = /* @__PURE__ */ new Set(), pe = {
|
|
5300
5300
|
destination: null,
|
|
5301
5301
|
responseState: r,
|
|
5302
5302
|
progressiveChunkSize: f === void 0 ? sl : f,
|
|
@@ -5317,7 +5317,7 @@ Error generating stack: ` + f.message + `
|
|
|
5317
5317
|
onShellError: To,
|
|
5318
5318
|
onFatalError: To
|
|
5319
5319
|
}, De = wa(
|
|
5320
|
-
|
|
5320
|
+
pe,
|
|
5321
5321
|
0,
|
|
5322
5322
|
null,
|
|
5323
5323
|
s,
|
|
@@ -5326,8 +5326,8 @@ Error generating stack: ` + f.message + `
|
|
|
5326
5326
|
!1
|
|
5327
5327
|
);
|
|
5328
5328
|
De.parentFlushed = !0;
|
|
5329
|
-
var Ge = Jr(
|
|
5330
|
-
return re.push(Ge),
|
|
5329
|
+
var Ge = Jr(pe, t, null, De, oe, Zo, ea, sc);
|
|
5330
|
+
return re.push(Ge), pe;
|
|
5331
5331
|
}
|
|
5332
5332
|
function Cc(t, r) {
|
|
5333
5333
|
var s = t.pingedTasks;
|
|
@@ -5440,7 +5440,7 @@ Error generating stack: ` + f.message + `
|
|
|
5440
5440
|
!1
|
|
5441
5441
|
);
|
|
5442
5442
|
b.children.push(oe), b.lastPushedText = !1;
|
|
5443
|
-
var
|
|
5443
|
+
var pe = wa(
|
|
5444
5444
|
t,
|
|
5445
5445
|
0,
|
|
5446
5446
|
null,
|
|
@@ -5449,14 +5449,14 @@ Error generating stack: ` + f.message + `
|
|
|
5449
5449
|
!1,
|
|
5450
5450
|
!1
|
|
5451
5451
|
);
|
|
5452
|
-
|
|
5452
|
+
pe.parentFlushed = !0, r.blockedBoundary = Y, r.blockedSegment = pe;
|
|
5453
5453
|
try {
|
|
5454
|
-
if (jt(t, r, P), _s(
|
|
5454
|
+
if (jt(t, r, P), _s(pe.chunks, t.responseState, pe.lastPushedText, pe.textEmbedded), pe.status = Co, Io(Y, pe), Y.pendingTasks === 0) {
|
|
5455
5455
|
Kn(r);
|
|
5456
5456
|
return;
|
|
5457
5457
|
}
|
|
5458
5458
|
} catch (Ge) {
|
|
5459
|
-
|
|
5459
|
+
pe.status = ba, Y.forceClientRender = !0, Y.errorDigest = ui(t, Ge), xa(Y, Ge);
|
|
5460
5460
|
} finally {
|
|
5461
5461
|
r.blockedBoundary = f, r.blockedSegment = b;
|
|
5462
5462
|
}
|
|
@@ -5520,8 +5520,8 @@ Error generating stack: ` + f.message + `
|
|
|
5520
5520
|
}
|
|
5521
5521
|
el(P, s, f, b), ll(t, r, P, s, f);
|
|
5522
5522
|
} else if (dl(s), _) {
|
|
5523
|
-
var oe = r.treeContext,
|
|
5524
|
-
r.treeContext = as(oe,
|
|
5523
|
+
var oe = r.treeContext, pe = 1, De = 0;
|
|
5524
|
+
r.treeContext = as(oe, pe, De);
|
|
5525
5525
|
try {
|
|
5526
5526
|
dn(t, r, P);
|
|
5527
5527
|
} finally {
|
|
@@ -5686,10 +5686,10 @@ Error generating stack: ` + f.message + `
|
|
|
5686
5686
|
Sa(t, r, s);
|
|
5687
5687
|
return;
|
|
5688
5688
|
}
|
|
5689
|
-
var
|
|
5690
|
-
if (
|
|
5691
|
-
Rc(s,
|
|
5692
|
-
var De =
|
|
5689
|
+
var pe = nc(s);
|
|
5690
|
+
if (pe) {
|
|
5691
|
+
Rc(s, pe);
|
|
5692
|
+
var De = pe.call(s);
|
|
5693
5693
|
if (De) {
|
|
5694
5694
|
var Ge = De.next();
|
|
5695
5695
|
if (!Ge.done) {
|
|
@@ -5984,8 +5984,8 @@ Error generating stack: ` + f.message + `
|
|
|
5984
5984
|
Y.splice(0, b);
|
|
5985
5985
|
var oe = t.completedBoundaries;
|
|
5986
5986
|
for (b = 0; b < oe.length; b++) {
|
|
5987
|
-
var
|
|
5988
|
-
if (!mi(t, r,
|
|
5987
|
+
var pe = oe[b];
|
|
5988
|
+
if (!mi(t, r, pe)) {
|
|
5989
5989
|
t.destination = null, b++, oe.splice(0, b);
|
|
5990
5990
|
return;
|
|
5991
5991
|
}
|
|
@@ -6028,11 +6028,11 @@ Error generating stack: ` + f.message + `
|
|
|
6028
6028
|
}
|
|
6029
6029
|
function wl(t, r, s, f) {
|
|
6030
6030
|
var b = !1, S = null, P = "", _ = {
|
|
6031
|
-
push: function(
|
|
6032
|
-
return
|
|
6031
|
+
push: function(pe) {
|
|
6032
|
+
return pe !== null && (P += pe), !0;
|
|
6033
6033
|
},
|
|
6034
|
-
destroy: function(
|
|
6035
|
-
b = !0, S =
|
|
6034
|
+
destroy: function(pe) {
|
|
6035
|
+
b = !0, S = pe;
|
|
6036
6036
|
}
|
|
6037
6037
|
}, Y = !1;
|
|
6038
6038
|
function re() {
|
|
@@ -6073,7 +6073,7 @@ var El = {};
|
|
|
6073
6073
|
var Zu;
|
|
6074
6074
|
function yf() {
|
|
6075
6075
|
return Zu || (Zu = 1, process.env.NODE_ENV !== "production" && function() {
|
|
6076
|
-
var e =
|
|
6076
|
+
var e = fe, n = "18.3.1", i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
6077
6077
|
function a(l) {
|
|
6078
6078
|
{
|
|
6079
6079
|
for (var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), s = 1; s < t; s++)
|
|
@@ -7614,9 +7614,9 @@ function yf() {
|
|
|
7614
7614
|
if (f != null) {
|
|
7615
7615
|
var oe;
|
|
7616
7616
|
if (S !== null ? (N(S, "value"), oe = "" + S) : (_ !== null && (or || (or = !0, o("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))), oe = Qa(b)), _t(f))
|
|
7617
|
-
for (var
|
|
7618
|
-
N(f[
|
|
7619
|
-
var De = "" + f[
|
|
7617
|
+
for (var pe = 0; pe < f.length; pe++) {
|
|
7618
|
+
N(f[pe], "value");
|
|
7619
|
+
var De = "" + f[pe];
|
|
7620
7620
|
if (De === oe) {
|
|
7621
7621
|
l.push(ao);
|
|
7622
7622
|
break;
|
|
@@ -8245,7 +8245,7 @@ function yf() {
|
|
|
8245
8245
|
} finally {
|
|
8246
8246
|
es = !1, xo.current = b, Za(), Error.prepareStackTrace = f;
|
|
8247
8247
|
}
|
|
8248
|
-
var
|
|
8248
|
+
var pe = l ? l.displayName || l.name : "", De = pe ? jr(pe) : "";
|
|
8249
8249
|
return typeof l == "function" && Ko.set(l, De), De;
|
|
8250
8250
|
}
|
|
8251
8251
|
function Ys(l, t, r) {
|
|
@@ -8511,13 +8511,13 @@ Please check the code for the %s component.`, t, t, s), oa[f] = !0;
|
|
|
8511
8511
|
if (typeof l.getDerivedStateFromProps == "function" || typeof P.getSnapshotBeforeUpdate == "function") {
|
|
8512
8512
|
var Y = null, re = null, oe = null;
|
|
8513
8513
|
if (typeof P.componentWillMount == "function" && P.componentWillMount.__suppressDeprecationWarning !== !0 ? Y = "componentWillMount" : typeof P.UNSAFE_componentWillMount == "function" && (Y = "UNSAFE_componentWillMount"), typeof P.componentWillReceiveProps == "function" && P.componentWillReceiveProps.__suppressDeprecationWarning !== !0 ? re = "componentWillReceiveProps" : typeof P.UNSAFE_componentWillReceiveProps == "function" && (re = "UNSAFE_componentWillReceiveProps"), typeof P.componentWillUpdate == "function" && P.componentWillUpdate.__suppressDeprecationWarning !== !0 ? oe = "componentWillUpdate" : typeof P.UNSAFE_componentWillUpdate == "function" && (oe = "UNSAFE_componentWillUpdate"), Y !== null || re !== null || oe !== null) {
|
|
8514
|
-
var
|
|
8515
|
-
ri.has(
|
|
8514
|
+
var pe = at(l) || "Component", De = typeof l.getDerivedStateFromProps == "function" ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
|
|
8515
|
+
ri.has(pe) || (ri.add(pe), o(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
8516
8516
|
|
|
8517
8517
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
8518
8518
|
|
|
8519
8519
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
8520
|
-
https://reactjs.org/link/unsafe-component-lifecycles`,
|
|
8520
|
+
https://reactjs.org/link/unsafe-component-lifecycles`, pe, De, Y !== null ? `
|
|
8521
8521
|
` + Y : "", re !== null ? `
|
|
8522
8522
|
` + re : "", oe !== null ? `
|
|
8523
8523
|
` + oe : ""));
|
|
@@ -8598,7 +8598,7 @@ Please update the following components: %s`,
|
|
|
8598
8598
|
function ss(l, t, r) {
|
|
8599
8599
|
var s = l.id, f = l.overflow, b = ua(s) - 1, S = s & ~(1 << b), P = r + 1, _ = ua(t) + b;
|
|
8600
8600
|
if (_ > 30) {
|
|
8601
|
-
var Y = b - b % 5, re = (1 << Y) - 1, oe = (S & re).toString(32),
|
|
8601
|
+
var Y = b - b % 5, re = (1 << Y) - 1, oe = (S & re).toString(32), pe = S >> Y, De = b - Y, Ge = ua(t) + De, It = P << De, Zr = It | pe, qr = oe + f;
|
|
8602
8602
|
return {
|
|
8603
8603
|
id: 1 << Ge | Zr,
|
|
8604
8604
|
overflow: qr
|
|
@@ -8874,7 +8874,7 @@ Error generating stack: ` + s.message + `
|
|
|
8874
8874
|
onShellReady: S === void 0 ? Jr : S,
|
|
8875
8875
|
onShellError: P === void 0 ? Jr : P,
|
|
8876
8876
|
onFatalError: _ === void 0 ? Jr : _
|
|
8877
|
-
},
|
|
8877
|
+
}, pe = ci(
|
|
8878
8878
|
oe,
|
|
8879
8879
|
0,
|
|
8880
8880
|
null,
|
|
@@ -8883,8 +8883,8 @@ Error generating stack: ` + s.message + `
|
|
|
8883
8883
|
!1,
|
|
8884
8884
|
!1
|
|
8885
8885
|
);
|
|
8886
|
-
|
|
8887
|
-
var De = Kr(oe, l, null,
|
|
8886
|
+
pe.parentFlushed = !0;
|
|
8887
|
+
var De = Kr(oe, l, null, pe, re, ea, ta, cc);
|
|
8888
8888
|
return Y.push(De), oe;
|
|
8889
8889
|
}
|
|
8890
8890
|
function cr(l, t) {
|
|
@@ -9018,8 +9018,8 @@ Error generating stack: ` + s.message + `
|
|
|
9018
9018
|
} finally {
|
|
9019
9019
|
t.blockedBoundary = s, t.blockedSegment = f;
|
|
9020
9020
|
}
|
|
9021
|
-
var
|
|
9022
|
-
|
|
9021
|
+
var pe = Kr(l, b, s, re, P, t.legacyContext, t.context, t.treeContext);
|
|
9022
|
+
pe.componentStack = t.componentStack, l.pingedTasks.push(pe), Mn(t);
|
|
9023
9023
|
}
|
|
9024
9024
|
function Tc(l, t, r, s) {
|
|
9025
9025
|
Ar(t, r);
|
|
@@ -9078,8 +9078,8 @@ Error generating stack: ` + s.message + `
|
|
|
9078
9078
|
}
|
|
9079
9079
|
ai(S, r, s, f), gs(l, t, S, r, s);
|
|
9080
9080
|
} else if (Ic(r), P) {
|
|
9081
|
-
var re = t.treeContext, oe = 1,
|
|
9082
|
-
t.treeContext = ss(re, oe,
|
|
9081
|
+
var re = t.treeContext, oe = 1, pe = 0;
|
|
9082
|
+
t.treeContext = ss(re, oe, pe);
|
|
9083
9083
|
try {
|
|
9084
9084
|
jt(l, t, S);
|
|
9085
9085
|
} finally {
|
|
@@ -9247,13 +9247,13 @@ Error generating stack: ` + s.message + `
|
|
|
9247
9247
|
var oe = Xo(r);
|
|
9248
9248
|
if (oe) {
|
|
9249
9249
|
Oc(r, oe);
|
|
9250
|
-
var
|
|
9251
|
-
if (
|
|
9252
|
-
var De =
|
|
9250
|
+
var pe = oe.call(r);
|
|
9251
|
+
if (pe) {
|
|
9252
|
+
var De = pe.next();
|
|
9253
9253
|
if (!De.done) {
|
|
9254
9254
|
var Ge = [];
|
|
9255
9255
|
do
|
|
9256
|
-
Ge.push(De.value), De =
|
|
9256
|
+
Ge.push(De.value), De = pe.next();
|
|
9257
9257
|
while (!De.done);
|
|
9258
9258
|
hl(l, t, Ge);
|
|
9259
9259
|
return;
|
|
@@ -9576,11 +9576,11 @@ Error generating stack: ` + s.message + `
|
|
|
9576
9576
|
}
|
|
9577
9577
|
function Nc(l, t) {
|
|
9578
9578
|
return new Promise(function(r, s) {
|
|
9579
|
-
var f, b, S = new Promise(function(
|
|
9580
|
-
b =
|
|
9579
|
+
var f, b, S = new Promise(function(pe, De) {
|
|
9580
|
+
b = pe, f = De;
|
|
9581
9581
|
});
|
|
9582
9582
|
function P() {
|
|
9583
|
-
var
|
|
9583
|
+
var pe = new ReadableStream(
|
|
9584
9584
|
{
|
|
9585
9585
|
type: "bytes",
|
|
9586
9586
|
pull: function(De) {
|
|
@@ -9595,11 +9595,11 @@ Error generating stack: ` + s.message + `
|
|
|
9595
9595
|
highWaterMark: 0
|
|
9596
9596
|
}
|
|
9597
9597
|
);
|
|
9598
|
-
|
|
9598
|
+
pe.allReady = S, r(pe);
|
|
9599
9599
|
}
|
|
9600
|
-
function _(
|
|
9600
|
+
function _(pe) {
|
|
9601
9601
|
S.catch(function() {
|
|
9602
|
-
}), s(
|
|
9602
|
+
}), s(pe);
|
|
9603
9603
|
}
|
|
9604
9604
|
var Y = wa(l, io(t ? t.identifierPrefix : void 0, t ? t.nonce : void 0, t ? t.bootstrapScriptContent : void 0, t ? t.bootstrapScripts : void 0, t ? t.bootstrapModules : void 0), Wn(t ? t.namespaceURI : void 0), t ? t.progressiveChunkSize : void 0, t ? t.onError : void 0, b, P, _, f);
|
|
9605
9605
|
if (t && t.signal) {
|
|
@@ -10902,7 +10902,7 @@ function Fl() {
|
|
|
10902
10902
|
}
|
|
10903
10903
|
function Rd({ attributes: e = {}, className: n, children: i = null, selfClose: a = !1, tagName: o }) {
|
|
10904
10904
|
const c = o;
|
|
10905
|
-
return a ?
|
|
10905
|
+
return a ? fe.createElement(c, Fl({ className: n }, e)) : fe.createElement(c, Fl({ className: n }, e), i);
|
|
10906
10906
|
}
|
|
10907
10907
|
class Fp {
|
|
10908
10908
|
attribute(n, i) {
|
|
@@ -11072,7 +11072,7 @@ let Md = class {
|
|
|
11072
11072
|
D = this.parseNode(C, y);
|
|
11073
11073
|
const E = c(C, D, y);
|
|
11074
11074
|
if (E === null) return;
|
|
11075
|
-
if (typeof E < "u") return void d.push(
|
|
11075
|
+
if (typeof E < "u") return void d.push(fe.cloneElement(E, { key: Q }));
|
|
11076
11076
|
this.keyIndex = Q - 1;
|
|
11077
11077
|
}
|
|
11078
11078
|
if (this.banned.has(m)) return;
|
|
@@ -11081,7 +11081,7 @@ let Md = class {
|
|
|
11081
11081
|
var h;
|
|
11082
11082
|
this.keyIndex += 1;
|
|
11083
11083
|
const Q = this.extractAttributes(C), E = { tagName: m };
|
|
11084
|
-
Q && (E.attributes = Q), y.void && (E.selfClose = y.void), d.push(
|
|
11084
|
+
Q && (E.attributes = Q), y.void && (E.selfClose = y.void), d.push(fe.createElement(Rd, { ...E, key: this.keyIndex }, (h = D) !== null && h !== void 0 ? h : this.parseNode(C, y)));
|
|
11085
11085
|
}
|
|
11086
11086
|
} else if (p.nodeType === 3) {
|
|
11087
11087
|
const m = i && !a ? p.textContent : this.applyMatchers(p.textContent || "", n);
|
|
@@ -11119,7 +11119,7 @@ function Gp(e) {
|
|
|
11119
11119
|
const C = new Md(c ?? "", e).parse();
|
|
11120
11120
|
C.length > 0 && (y = C);
|
|
11121
11121
|
}
|
|
11122
|
-
return y || (y = u), m ?
|
|
11122
|
+
return y || (y = u), m ? fe.createElement(fe.Fragment, null, y) : fe.createElement(Rd, { attributes: i, className: a, tagName: h }, y);
|
|
11123
11123
|
}
|
|
11124
11124
|
function Vp(e) {
|
|
11125
11125
|
const { attributes: n, className: i, content: a = "", disableFilters: o = !1, disableMatchers: c = !1, emptyContent: u = null, filters: d = [], matchers: A = [], onAfterParse: p = null, onBeforeParse: h = null, tagName: m = "span", noWrap: y = !1, ...C } = e, D = c ? [] : A, Q = o ? [] : d, E = h ? [h] : [], I = p ? [p] : [];
|
|
@@ -11135,7 +11135,7 @@ function Vp(e) {
|
|
|
11135
11135
|
if (process.env.NODE_ENV !== "production" && !Array.isArray(z)) throw new TypeError("Interweave `onAfterParse` must return an array of strings and React elements.");
|
|
11136
11136
|
return z;
|
|
11137
11137
|
}, B.parse());
|
|
11138
|
-
return
|
|
11138
|
+
return fe.createElement(Gp, { attributes: n, className: i, containerTagName: e.containerTagName, emptyContent: u, noWrap: y, parsedContent: H.length === 0 ? void 0 : H, tagName: m });
|
|
11139
11139
|
}
|
|
11140
11140
|
const Xp = ({ children: e }) => X("div", { style: { whiteSpace: "normal" }, children: X(Vp, { content: typeof e == "string" ? e : "" }) }), Jp = { autoConfig: !0 }, cA = (e, n, i) => {
|
|
11141
11141
|
var a;
|
|
@@ -14339,13 +14339,13 @@ uf.displayName = "BotController";
|
|
|
14339
14339
|
const $A = (e) => {
|
|
14340
14340
|
let { loginUrl: n, className: i = "", style: a, isHeaderButton: o = !1 } = e;
|
|
14341
14341
|
const c = o ? { display: "inline-block", padding: "6px 12px", backgroundColor: "transparent", border: "1px solid #ccc", color: "white", textDecoration: "none", borderRadius: "4px", fontWeight: "normal", textAlign: "center", margin: "8px", fontSize: "12px", opacity: 0.8, transition: "all 0.2s ease" } : { display: "inline-block", padding: "10px 20px", backgroundColor: "white", border: "1px solid var(--primaryColor, #107180)", color: "var(--primaryColor, #107180)", textDecoration: "none", borderRadius: "4px", fontWeight: "bold", textAlign: "center", margin: "18px", boxShadow: "0 2px 4px rgba(0, 0, 0, 0.2)" };
|
|
14342
|
-
return
|
|
14342
|
+
return fe.createElement(fe.Fragment, null, o && fe.createElement("style", null, `
|
|
14343
14343
|
.rcb-chat-header-container .qa-bot-header-login-button:hover {
|
|
14344
14344
|
background-color: #0000001a !important;
|
|
14345
14345
|
opacity: 1 !important;
|
|
14346
14346
|
}
|
|
14347
|
-
`),
|
|
14348
|
-
}, qg = () =>
|
|
14347
|
+
`), fe.createElement("a", { href: n, target: "_blank", rel: "noopener noreferrer", className: "qa-bot-login-button ".concat(o ? "qa-bot-header-login-button" : "", " ").concat(i), style: Object.assign(Object.assign({}, c), a) }, "Log In"));
|
|
14348
|
+
}, qg = () => fe.createElement("div", { className: "user-login-icon", style: { alignItems: "center", justifyContent: "center", width: "30px", height: "30px", borderRadius: "50%", backgroundColor: "var(--primaryColor, #1a5b6e)", marginRight: "5px", display: "flex" }, role: "img", "aria-label": "User logged in", title: "User logged in" }, fe.createElement("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "white", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false" }, fe.createElement("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }), fe.createElement("circle", { cx: "12", cy: "7", r: "4" })));
|
|
14349
14349
|
function ku() {
|
|
14350
14350
|
return ku = Object.assign ? Object.assign.bind() : function(e) {
|
|
14351
14351
|
for (var n = 1; n < arguments.length; n++) {
|
|
@@ -14355,9 +14355,9 @@ function ku() {
|
|
|
14355
14355
|
return e;
|
|
14356
14356
|
}, ku.apply(null, arguments);
|
|
14357
14357
|
}
|
|
14358
|
-
const Af = ({ width: e = 24, height: n = 24, color: i = "currentColor", children: a, ...o }) =>
|
|
14358
|
+
const Af = ({ width: e = 24, height: n = 24, color: i = "currentColor", children: a, ...o }) => fe.createElement("svg", ku({ xmlns: "http://www.w3.org/2000/svg", width: e, height: n, viewBox: "0 0 24 24", fill: "none", stroke: i, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", focusable: "false" }, o), a), em = (e) => fe.createElement(Af, e, fe.createElement("path", { d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" })), df = to(void 0), tm = (e) => {
|
|
14359
14359
|
let { children: n, resetSession: i, clearResettingFlag: a } = e;
|
|
14360
|
-
return
|
|
14360
|
+
return fe.createElement(df.Provider, { value: { resetSession: i, clearResettingFlag: a } }, n);
|
|
14361
14361
|
}, nm = () => {
|
|
14362
14362
|
const { restartFlow: e } = zl(), { setTextAreaValue: n } = (() => {
|
|
14363
14363
|
const { textAreaDisabled: o, toggleTextAreaDisabled: c, textAreaSensitiveMode: u, toggleTextAreaSensitiveMode: d, getTextAreaValue: A, setTextAreaValue: p, focusTextArea: h, blurTextArea: m } = Ci();
|
|
@@ -14367,7 +14367,7 @@ const Af = ({ width: e = 24, height: n = 24, color: i = "currentColor", children
|
|
|
14367
14367
|
if (!o) throw new Error("useSession must be used within a SessionProvider");
|
|
14368
14368
|
return o;
|
|
14369
14369
|
})();
|
|
14370
|
-
return
|
|
14370
|
+
return fe.createElement("button", { onClick: async () => {
|
|
14371
14371
|
i(), await n(""), await e(), setTimeout(() => {
|
|
14372
14372
|
a();
|
|
14373
14373
|
}, 100);
|
|
@@ -14375,7 +14375,7 @@ const Af = ({ width: e = 24, height: n = 24, color: i = "currentColor", children
|
|
|
14375
14375
|
o.target.style.backgroundColor = "var(--secondaryColor, #0d5f6b)";
|
|
14376
14376
|
}, onMouseLeave: (o) => {
|
|
14377
14377
|
o.target.style.backgroundColor = "var(--primaryColor, #107180)";
|
|
14378
|
-
} },
|
|
14378
|
+
} }, fe.createElement(em, { width: 16, height: 16 }), "New Chat");
|
|
14379
14379
|
}, rm = () => (Ye(() => {
|
|
14380
14380
|
const e = (c) => {
|
|
14381
14381
|
if (!["ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight", "Enter", " ", "Home", "End"].includes(c.key)) return;
|
|
@@ -14607,10 +14607,10 @@ const qA = () => "qa_bot_session_".concat(ff()), im = "#1a5b6e", am = "#107180",
|
|
|
14607
14607
|
const ce = Zt(() => {
|
|
14608
14608
|
const R = Object.assign({}, fm);
|
|
14609
14609
|
R.general = Object.assign(Object.assign({}, R.general), { primaryColor: y || im, secondaryColor: C || am, fontFamily: sm, embedded: F !== void 0 ? F : Am });
|
|
14610
|
-
const de = $ === !1 ?
|
|
14611
|
-
R.header = { title: D || ed, showAvatar: !0, avatar: Q || lm, buttons: [de, yt.CLOSE_CHAT_BUTTON] }, R.chatInput = Object.assign(Object.assign({}, R.chatInput), { disabled: !1, enabledPlaceholderText: E || cm, disabledPlaceholderText: I || um }), R.tooltip = Object.assign(Object.assign({}, R.tooltip), { text: U || dm });
|
|
14612
|
-
const M = B ? H ?
|
|
14613
|
-
return R.footer = { text: M, buttons: [
|
|
14610
|
+
const de = $ === !1 ? fe.createElement($A, { key: "login-button", loginUrl: N || td, isHeaderButton: !0 }) : fe.createElement(qg, { key: "user-icon" });
|
|
14611
|
+
R.header = { title: fe.createElement("span", { style: { fontSize: 14, fontWeight: 500 } }, D || ed), showAvatar: !0, avatar: Q || lm, buttons: [de, yt.CLOSE_CHAT_BUTTON] }, R.chatInput = Object.assign(Object.assign({}, R.chatInput), { disabled: !1, enabledPlaceholderText: E || cm, disabledPlaceholderText: I || um }), R.tooltip = Object.assign(Object.assign({}, R.tooltip), { text: U || dm });
|
|
14612
|
+
const M = B ? H ? fe.createElement("a", { href: H, target: "_blank", rel: "noopener noreferrer", key: "footer-link" }, B) : fe.createElement("span", { key: "footer-text" }, B) : null;
|
|
14613
|
+
return R.footer = { text: M, buttons: [fe.createElement(nm, { key: "new-chat-button" })] }, R;
|
|
14614
14614
|
}, [y, C, D, Q, E, I, F, U, $, N, B, H]), ae = tt(null), xe = function(R) {
|
|
14615
14615
|
let de = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
14616
14616
|
return Zt(() => {
|
|
@@ -14641,13 +14641,13 @@ const qA = () => "qa_bot_session_".concat(ff()), im = "#1a5b6e", am = "#107180",
|
|
|
14641
14641
|
}), M.primaryColor && document.documentElement.style.setProperty("--rcb-header-background", M.primaryColor), M.secondaryColor && document.documentElement.style.setProperty("--rcb-header-background-hover", M.secondaryColor));
|
|
14642
14642
|
}, [M]), Ye(() => {
|
|
14643
14643
|
var ue, Ee, he;
|
|
14644
|
-
!((ue = de.header) === null || ue === void 0) && ue.title && typeof de.header.title == "string" && (de.header.title =
|
|
14644
|
+
!((ue = de.header) === null || ue === void 0) && ue.title && typeof de.header.title == "string" && (de.header.title = fe.createElement("div", { key: "header-title" }, fe.createElement("h1", { className: "sr-only" }, de.header.title), fe.createElement("span", { "aria-hidden": "true" }, de.header.title))), !((Ee = de.general) === null || Ee === void 0) && Ee.embedded && de.chatWindow && (de.chatWindow.defaultOpen = !0), de.device = { desktopEnabled: !0, mobileEnabled: !0, applyMobileOptimizations: !1 }, de.chatHistory = { disabled: !1 }, de.chatButton = Object.assign(Object.assign({}, de.chatButton), { icon: (he = de.header) === null || he === void 0 ? void 0 : he.avatar }), de.event = { rcbToggleChatWindow: !0 };
|
|
14645
14645
|
}, [de]);
|
|
14646
14646
|
})({ settings: ce, themeColors: xe });
|
|
14647
14647
|
const ge = Zt(() => {
|
|
14648
14648
|
const R = ((M) => {
|
|
14649
14649
|
let { endpoint: ue, ratingEndpoint: Ee, apiKey: he, sessionId: ve, isResetting: Te = () => !1, isLoggedIn: _e, allowAnonAccess: it = !1, loginUrl: Fe = "/login" } = M;
|
|
14650
|
-
if (_e === !1 && !it) return { qa_loop: { message: "To ask questions, please log in first.", component:
|
|
14650
|
+
if (_e === !1 && !it) return { qa_loop: { message: "To ask questions, please log in first.", component: fe.createElement($A, { loginUrl: Fe }), chatDisabled: !0, path: "qa_loop" } };
|
|
14651
14651
|
let Ze = null, nt = !1;
|
|
14652
14652
|
if (!ue) throw new Error("Q&A endpoint is required");
|
|
14653
14653
|
return { qa_loop: { message: async (mt) => {
|
|
@@ -14726,11 +14726,11 @@ const qA = () => "qa_bot_session_".concat(ff()), im = "#1a5b6e", am = "#107180",
|
|
|
14726
14726
|
window.removeEventListener("rcb-toggle-chat-window", R);
|
|
14727
14727
|
};
|
|
14728
14728
|
}
|
|
14729
|
-
}, [F, p]),
|
|
14729
|
+
}, [F, p]), fe.createElement("div", { className: "qa-bot ".concat(!((i = ce.general) === null || i === void 0) && i.embedded ? "embedded-qa-bot" : ""), ref: ae, role: "region", "aria-label": D || ed }, fe.createElement(tm, { resetSession: () => {
|
|
14730
14730
|
j.current = !0, V.current = qA();
|
|
14731
14731
|
}, clearResettingFlag: () => {
|
|
14732
14732
|
j.current = !1;
|
|
14733
|
-
} },
|
|
14733
|
+
} }, fe.createElement(Dd, null, fe.createElement("div", null, fe.createElement(uf, { ref: n, embedded: ((a = ce.general) === null || a === void 0 ? void 0 : a.embedded) || !1, currentOpen: A || !1, enabled: $ !== !1, onSetEnabled: (R) => ie(!!R && void 0) }), fe.createElement(Rp, { key: "chatbot-".concat(ee.current, "-").concat($), settings: ce, flow: ge, plugins: me }), fe.createElement("div", { role: "status", "aria-live": "polite", "aria-label": "Bot response updates", className: "sr-only", id: "bot-live-region" }), fe.createElement("div", { id: "chat-input-help", className: "sr-only" }, "Type your message and press Enter to send. Use arrow keys to navigate through response options.")))));
|
|
14734
14734
|
});
|
|
14735
14735
|
Yu.displayName = "QABot";
|
|
14736
14736
|
id('.rcb-chat-window{height:800px!important;max-height:80vh!important;max-width:100%;width:550px!important}.rcb-chat-window .rcb-chat-header{align-items:center;display:flex;flex-direction:row;font-weight:700}.rcb-chat-window a{color:#000;font-weight:700;text-decoration:underline}.rcb-chat-window a:hover{color:var(--primaryColor,#107180)}.rcb-chat-window .rcb-bot-message a{color:#fff;text-decoration:none}.rcb-chat-window .rcb-bot-message a:hover{text-decoration:underline}.rcb-chat-window .rcb-chat-input-textarea{overflow-y:auto}.rcb-chat-window .rcb-chat-footer-container{font-size:10px}.qa-bot .user-login-icon{display:none!important}.qa-bot.bot-logged-in .user-login-icon{display:flex!important;transform:scale(1.3) translateY(-2px)}.embedded-qa-bot .rcb-chat-window{max-width:100%;width:100%!important}.qa-bot.hidden{display:none}.embedded-qa-bot .rcb-bot-message,.embedded-qa-bot .rcb-user-message{max-width:90%!important;word-break:break-word}.embedded-qa-bot .rcb-chat-input-textarea{width:100%!important}.qa-bot-container{max-width:100%;width:100%}@keyframes phone-ring{0%{transform:translateX(0) translateY(0) rotate(0deg)}2%{transform:translateX(0) translateY(-8px) rotate(-2deg)}4%{transform:translateX(0) translateY(-6px) rotate(2deg)}6%{transform:translateX(0) translateY(-8px) rotate(-1deg)}8%{transform:translateX(0) translateY(-6px) rotate(1deg)}10%{transform:translateX(0) translateY(-8px) rotate(-2deg)}12%{transform:translateX(0) translateY(-6px) rotate(2deg)}20%{transform:translateX(0) translateY(0) rotate(0deg)}30%{transform:translateX(0) translateY(0) rotate(0deg)}40%{transform:translateX(0) translateY(0) rotate(0deg)}49%{transform:translateX(0) translateY(0) rotate(0deg)}50%{transform:translateX(0) translateY(-8px) rotate(-2deg)}52%{transform:translateX(0) translateY(-6px) rotate(2deg)}54%{transform:translateX(0) translateY(-8px) rotate(-1deg)}56%{transform:translateX(0) translateY(-6px) rotate(1deg)}58%{transform:translateX(0) translateY(-8px) rotate(-2deg)}60%{transform:translateX(0) translateY(-6px) rotate(2deg)}70%{transform:translateX(0) translateY(0) rotate(0deg)}to{transform:translateX(0) translateY(0) rotate(0deg)}}@media (max-width:768px){.rcb-chat-window{max-height:calc(100vh - 100px)!important;max-width:calc(100vw - 40px)!important;width:550px!important}.embedded-chat-container.open{height:400px}.embedded-chat-closed{font-size:14px;height:40px}.embedded-chat-open-btn{font-size:12px;padding:3px 10px}.rcb-bot-message,.rcb-user-message{max-width:85%!important}.rcb-chat-input-textarea{font-size:16px!important;min-height:44px!important}.rcb-chat-header{padding:12px 16px!important}}@media (max-width:480px){.rcb-chat-window{bottom:10px!important;left:10px!important;max-height:calc(100vh - 80px)!important;max-width:calc(100vw - 20px)!important;right:10px!important;width:calc(100vw - 20px)!important}.embedded-chat-container.open{height:350px}.rcb-bot-message,.rcb-user-message{margin-bottom:8px!important;max-width:90%!important}.rcb-chat-header{font-size:14px!important;padding:8px 12px!important}.rcb-chat-button{bottom:20px!important;height:50px!important;right:20px!important;width:50px!important}.rcb-chat-footer-container{font-size:9px!important;padding:8px 12px!important}}@media (max-width:360px){.rcb-chat-window{left:5px!important;max-width:calc(100vw - 10px)!important;right:5px!important;width:calc(100vw - 10px)!important}.rcb-chat-header{font-size:13px!important;padding:6px 8px!important}}.rcb-checkbox-container{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-left:16px!important;max-width:100%!important;padding-top:12px!important}.rcb-checkbox-row-container{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--primaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-row-container:hover{background-color:#e8f4f8!important;border-color:var(--primaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-row-container[data-checked=true]{background-color:var(--primaryColor,#107180)!important;border-color:var(--primaryColor,#107180)!important;color:#fff!important}.rcb-checkbox-row{margin-left:0!important}.rcb-checkbox-mark{height:14px!important;margin-right:6px!important;width:14px!important}.rcb-checkbox-label{font-size:13px!important;margin:0!important;white-space:nowrap!important}.rcb-checkbox-next-button{align-items:center!important;background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;display:flex!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;justify-content:center!important;line-height:24px!important;margin:0!important;max-height:auto!important;min-height:auto!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-checkbox-next-button:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.sr-only{clip:rect(0,0,0,0)!important;border:0!important;height:1px!important;margin:-1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:1px!important}.rcb-chat-input-send-button:focus,.rcb-chat-input-textarea:focus{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-user-message{word-wrap:break-word!important;overflow:hidden!important;word-break:break-word!important}:focus-visible{outline:2px solid var(--primaryColor,#107180)!important;outline-offset:2px!important}.rcb-options-container{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:8px!important;margin:16px!important;padding:0!important}.rcb-options{background-color:#fff!important;border:1px solid #d0d0d0!important;border-radius:6px!important;box-sizing:border-box!important;color:var(--secondaryColor,#107180)!important;cursor:pointer!important;flex:0 0 auto!important;font-size:14px!important;font-weight:400!important;outline:none!important;padding:8px 12px!important;text-align:center!important;transition:all .2s ease!important;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:auto!important}.rcb-options:hover{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;box-shadow:0 2px 4px #10718033!important;transform:translateY(-1px)!important}.rcb-checkbox-next-button.keyboard-focused,.rcb-checkbox-next-button:focus,.rcb-checkbox-next-button:focus-visible,.rcb-checkbox-row-container.keyboard-focused,.rcb-checkbox-row-container:focus,.rcb-checkbox-row-container:focus-visible,.rcb-options.keyboard-focused,.rcb-options:focus,.rcb-options:focus-visible{background-color:#e8f4f8!important;border-color:var(--secondaryColor,#107180)!important;outline:none!important}.rcb-options:active{background-color:var(--secondaryColor,#107180)!important;border-color:var(--secondaryColor,#107180)!important;color:#fff!important;transform:translateY(0)!important}.keyboard-nav-hint{color:#666!important;font-size:12px!important;font-style:italic!important;margin-bottom:8px!important}@media (prefers-reduced-motion:reduce){.keyboard-nav-hint{display:none!important}}.rcb-options-container [role=button][tabindex="0"],.rcb-options-container button[tabindex="0"]{position:relative!important}.rcb-options-container [role=button][tabindex="0"]:after,.rcb-options-container button[tabindex="0"]:after{color:var(--secondaryColor,#107180)!important;content:"←"!important;font-size:16px!important;opacity:0!important;position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;transition:opacity .2s ease!important}.rcb-options-container [role=button][tabindex="0"]:focus:after,.rcb-options-container button[tabindex="0"]:focus:after{opacity:1!important}.rcb-chat-input-send-button{cursor:pointer!important;opacity:1!important;pointer-events:auto!important;visibility:visible!important}.rcb-chat-input-send-button:not([tabindex]){-webkit-user-select:none;-moz-user-select:none;user-select:none}.rcb-chat-input-container [onclick],.rcb-chat-input-container [role=button],.rcb-chat-input-container div[style*=cursor],.rcb-chat-input-container svg:last-child,.rcb-chat-input-container>div:last-child{tabindex:0!important;cursor:pointer!important}.rcb-chat-footer{margin-top:4px!important;padding-top:0!important}.rcb-chat-footer-container{align-items:center!important;display:flex!important;margin-top:4px!important;padding-top:4px!important}.rcb-chat-footer-container button{order:1!important}.rcb-chat-footer-container a[href*=qa-bot-core]{tab-index:0!important;order:2!important}.rcb-chat-footer-container a[href*=feedback]{tab-index:0!important;order:3!important}@media (prefers-contrast:high){.rcb-chat-window a{background-color:#fff!important;border:1px solid #000!important;color:#000!important}}@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.rcb-chat-input-textarea{user-select:text!important}.rcb-chat-body-container,.rcb-chat-input-textarea,.rcb-chat-window{touch-action:pan-y!important}.embedded-qa-bot,.rcb-chat-window{-webkit-overflow-scrolling:touch!important}.embedded-qa-bot .rcb-chat-input-textarea{touch-action:pan-y!important;user-select:text!important}.embedded-qa-bot .rcb-chat-body-container,.embedded-qa-bot .rcb-chat-window{touch-action:pan-y!important}.rcb-chat-header-container{background:var(--primaryColor,#1a5b6e)!important;background:linear-gradient(135deg,var(--primaryColor,#1a5b6e) 0,var(--secondaryColor,#107180) 100%)!important}.rcb-toggle-button{align-items:center!important;background:var(--primaryColor,#1a5b6e)!important;display:flex!important;justify-content:center!important}.rcb-toggle-button svg{stroke:#fff!important;color:#fff!important}.rcb-toggle-button *,.rcb-toggle-button img,.rcb-toggle-button svg,.rcb-toggle-button>*{box-sizing:border-box!important;height:50px!important;left:0!important;margin:0 auto!important;max-height:50px!important;max-width:50px!important;min-height:50px!important;min-width:50px!important;padding:2px!important;position:relative!important;top:0!important;width:50px!important}.rcb-send-button{background-color:var(--primaryColor,#1a5b6e)!important}', { insertAt: "top" });
|
|
@@ -14759,7 +14759,7 @@ const pm = () => {
|
|
|
14759
14759
|
throw console.error("Error capturing screenshot:", a), n(!1), a;
|
|
14760
14760
|
}
|
|
14761
14761
|
}, isCapturing: e, isScreenCaptureAvailable: i() };
|
|
14762
|
-
}, hm = (e) =>
|
|
14762
|
+
}, hm = (e) => fe.createElement(Af, e, fe.createElement("path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" }), fe.createElement("polyline", { points: "17 8 12 3 7 8" }), fe.createElement("line", { x1: "12", y1: "3", x2: "12", y2: "15" })), gm = (e) => new Promise((n, i) => {
|
|
14763
14763
|
const a = new FileReader();
|
|
14764
14764
|
a.onload = () => {
|
|
14765
14765
|
if (typeof a.result != "string") return void i(new Error("Failed to read file ".concat(e.name)));
|
|
@@ -14797,7 +14797,7 @@ const pm = () => {
|
|
|
14797
14797
|
}, H = () => {
|
|
14798
14798
|
m(null);
|
|
14799
14799
|
}, U = o && Q;
|
|
14800
|
-
return
|
|
14800
|
+
return fe.createElement("div", { className: "file-upload-container ".concat(c || ""), style: { padding: "16px", margin: "8px 0" } }, U && fe.createElement("div", { style: { display: "flex", justifyContent: "center", marginBottom: "10px" } }, fe.createElement("button", { onClick: (N) => {
|
|
14801
14801
|
N.preventDefault(), (async () => {
|
|
14802
14802
|
try {
|
|
14803
14803
|
const z = await C();
|
|
@@ -14806,7 +14806,7 @@ const pm = () => {
|
|
|
14806
14806
|
E("Error capturing screenshot. Please try again.");
|
|
14807
14807
|
}
|
|
14808
14808
|
})();
|
|
14809
|
-
}, disabled: D, "aria-describedby": "screenshot-help", "aria-label": D ? "Taking screenshot, please wait" : "Take a screenshot to attach", style: { display: "flex", alignItems: "center", gap: "8px", backgroundColor: "#107180", color: "white", border: "none", borderRadius: "5px", padding: "8px 12px", cursor: D ? "not-allowed" : "pointer", fontSize: "14px", fontWeight: "500", boxShadow: "0 1px 3px rgba(0,0,0,0.2)" } },
|
|
14809
|
+
}, disabled: D, "aria-describedby": "screenshot-help", "aria-label": D ? "Taking screenshot, please wait" : "Take a screenshot to attach", style: { display: "flex", alignItems: "center", gap: "8px", backgroundColor: "#107180", color: "white", border: "none", borderRadius: "5px", padding: "8px 12px", cursor: D ? "not-allowed" : "pointer", fontSize: "14px", fontWeight: "500", boxShadow: "0 1px 3px rgba(0,0,0,0.2)" } }, fe.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, fe.createElement("path", { d: "M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z" }), fe.createElement("circle", { cx: "12", cy: "13", r: "4" })), D ? "Taking screenshot..." : "Take screenshot..."), fe.createElement("span", { id: "screenshot-help", className: "sr-only" }, "Captures the current screen and adds it as an attachment")), fe.createElement("div", { className: "file-upload-dropzone ".concat(u ? "active" : ""), onDragEnter: F, onDragLeave: F, onDragOver: F, onDrop: (N) => {
|
|
14810
14810
|
var z;
|
|
14811
14811
|
N.preventDefault(), N.stopPropagation(), d(!1);
|
|
14812
14812
|
try {
|
|
@@ -14816,18 +14816,18 @@ const pm = () => {
|
|
|
14816
14816
|
}
|
|
14817
14817
|
}, role: "button", tabIndex: 0, "aria-label": "File upload area. Click to select files or drag and drop files here.", "aria-describedby": "upload-instructions", onKeyDown: (N) => {
|
|
14818
14818
|
N.key !== "Enter" && N.key !== " " || (N.preventDefault(), B());
|
|
14819
|
-
}, style: { padding: "20px", border: "2px dashed #ccc", borderRadius: "8px", backgroundColor: u ? "#f0f8ff" : "#fafafa", transition: "all 0.3s ease" } },
|
|
14819
|
+
}, style: { padding: "20px", border: "2px dashed #ccc", borderRadius: "8px", backgroundColor: u ? "#f0f8ff" : "#fafafa", transition: "all 0.3s ease" } }, fe.createElement("input", { ref: y, type: "file", className: "file-input", onChange: (N) => {
|
|
14820
14820
|
var z;
|
|
14821
14821
|
try {
|
|
14822
14822
|
!((z = N.target) === null || z === void 0) && z.files && N.target.files.length > 0 && I(N.target.files);
|
|
14823
14823
|
} catch (ee) {
|
|
14824
14824
|
console.error("FileUploadComponent: Error in handleFileSelect:", ee), E("Error processing selected files. Please try again.");
|
|
14825
14825
|
}
|
|
14826
|
-
}, multiple: !0, style: { display: "none" }, "aria-label": "Select files to upload", accept: a }),
|
|
14826
|
+
}, multiple: !0, style: { display: "none" }, "aria-label": "Select files to upload", accept: a }), fe.createElement("div", { className: "upload-content", onClick: B, style: { cursor: "pointer", flexDirection: "column", alignItems: "center", display: "flex", textAlign: "center", padding: "12px" } }, fe.createElement("div", { style: { display: "flex", flexDirection: "column", alignItems: "center", gap: "8px" } }, fe.createElement("div", { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "10px" } }, fe.createElement(hm, null), fe.createElement("p", { style: { margin: 0, fontWeight: "bold" } }, "Upload Files")), fe.createElement("p", { id: "upload-instructions", style: { margin: 0, fontSize: "14px", color: "#666" } }, "Drag and drop files here or click to select. (Max ", i, "MB each)")), A.length > 0 && fe.createElement("div", { className: "selected-files", style: { display: "flex", flexWrap: "wrap", gap: "8px", marginTop: "12px", alignItems: "center" } }, fe.createElement("span", { style: { fontWeight: 400, color: "#888", fontSize: "13px", marginRight: "8px", alignSelf: "center" } }, "Selected files:"), A.map((N, z) => fe.createElement("span", { key: z, style: { background: "#fff", color: "#107180", borderRadius: "5px", padding: "4px 12px", fontSize: "14px", marginRight: "4px", marginBottom: "4px", border: "1px solid #ccc", display: "flex", alignItems: "center", gap: "6px", cursor: "pointer" }, onClick: (ee) => {
|
|
14827
14827
|
ee.stopPropagation(), ((V) => {
|
|
14828
14828
|
m(V);
|
|
14829
14829
|
})(N);
|
|
14830
|
-
} },
|
|
14830
|
+
} }, fe.createElement("span", { onClick: (ee) => {
|
|
14831
14831
|
ee.stopPropagation(), ((V) => {
|
|
14832
14832
|
const j = A.filter((q, $) => $ !== V);
|
|
14833
14833
|
p(j), n && n(j);
|
|
@@ -14835,7 +14835,7 @@ const pm = () => {
|
|
|
14835
14835
|
}, style: { cursor: "pointer", color: "#888", fontWeight: "bold", fontSize: "15px", marginRight: "4px", userSelect: "none", lineHeight: 1 }, title: "Remove file", "aria-label": "Remove ".concat(N.name) }, "×"), N.name, " (", vm(N.size), ")"))))), (() => {
|
|
14836
14836
|
if (!h) return null;
|
|
14837
14837
|
const N = h.type.startsWith("image/"), z = h.type.startsWith("text/"), ee = h.type === "application/pdf";
|
|
14838
|
-
return
|
|
14838
|
+
return fe.createElement("div", { style: { position: "fixed", top: 0, left: 0, right: 0, bottom: 0, backgroundColor: "rgba(0, 0, 0, 0.7)", display: "flex", justifyContent: "center", alignItems: "center", zIndex: 1e3 }, onClick: H }, fe.createElement("div", { style: { backgroundColor: "white", padding: "20px", borderRadius: "8px", maxWidth: "90%", maxHeight: "90%", overflow: "auto", position: "relative" }, onClick: (V) => V.stopPropagation() }, fe.createElement("button", { onClick: H, style: { position: "absolute", top: "10px", right: "10px", background: "none", border: "none", fontSize: "24px", cursor: "pointer", color: "#666" } }, "×"), fe.createElement("h3", { style: { marginTop: 0, marginBottom: "16px" } }, h.name), N && fe.createElement("img", { src: URL.createObjectURL(h), alt: h.name, style: { maxWidth: "100%", maxHeight: "70vh" } }), z && fe.createElement("pre", { style: { whiteSpace: "pre-wrap", wordWrap: "break-word", maxHeight: "70vh", overflow: "auto", padding: "16px", backgroundColor: "#f5f5f5", borderRadius: "4px" } }, URL.createObjectURL(h)), ee && fe.createElement("iframe", { src: URL.createObjectURL(h), style: { width: "100%", height: "70vh", border: "none" }, title: h.name }), !N && !z && !ee && fe.createElement("div", { style: { padding: "20px", textAlign: "center" } }, "Preview not available for this file type")));
|
|
14839
14839
|
})());
|
|
14840
14840
|
};
|
|
14841
14841
|
function ym(e, n) {
|
|
@@ -14851,9 +14851,9 @@ function ym(e, n) {
|
|
|
14851
14851
|
}
|
|
14852
14852
|
return i;
|
|
14853
14853
|
}
|
|
14854
|
-
const bm =
|
|
14855
|
-
const [i, a] =
|
|
14856
|
-
return
|
|
14854
|
+
const bm = fe.forwardRef((e, n) => {
|
|
14855
|
+
const [i, a] = fe.useState(e.defaultOpen || !1), o = fe.useRef(null);
|
|
14856
|
+
return fe.useImperativeHandle(n, () => ({ addMessage: (c) => {
|
|
14857
14857
|
var u;
|
|
14858
14858
|
(u = o.current) === null || u === void 0 || u.addMessage(c);
|
|
14859
14859
|
}, setBotEnabled: (c) => {
|
|
@@ -14868,7 +14868,7 @@ const bm = pe.forwardRef((e, n) => {
|
|
|
14868
14868
|
}, toggleChat: () => {
|
|
14869
14869
|
var c;
|
|
14870
14870
|
a((u) => !u), (c = o.current) === null || c === void 0 || c.toggleChat();
|
|
14871
|
-
} }), []),
|
|
14871
|
+
} }), []), fe.createElement(Yu, { ref: o, apiKey: e.apiKey, qaEndpoint: e.qaEndpoint, ratingEndpoint: e.ratingEndpoint, welcomeMessage: e.welcomeMessage, primaryColor: e.primaryColor, secondaryColor: e.secondaryColor, botName: e.botName, logo: e.logo, placeholder: e.placeholder, errorMessage: e.errorMessage, embedded: e.embedded, isLoggedIn: e.isLoggedIn, allowAnonAccess: e.allowAnonAccess, open: i, onOpenChange: a, footerText: e.footerText, footerLink: e.footerLink, tooltipText: e.tooltipText });
|
|
14872
14872
|
});
|
|
14873
14873
|
bm.displayName = "ProgrammaticQABot";
|
|
14874
14874
|
const xi = {
|