widget-chatbot 2.0.7-alpha.5 → 2.0.7-alpha.6
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/widget-chatbot.es.js +316 -316
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ft, { version as Lr, createContext as Ve, useContext as ze, useState as W, useRef as re, useMemo as
|
|
1
|
+
import ft, { version as Lr, createContext as Ve, useContext as ze, useState as W, useRef as re, useMemo as z, useEffect as pe, memo as K, Fragment as Tt, Children as Mr, isValidElement as Nr, cloneElement as Fr, createElement as zt, useCallback as Ir } from "react";
|
|
2
2
|
import ot from "axios";
|
|
3
3
|
import je from "dayjs";
|
|
4
4
|
import { version as $r, Modal as fn, Collapse as gn, Typography as ie, Button as le, Form as Se, notification as _e, Radio as Ur, Divider as Hr, Input as gt, Image as Wr, Skeleton as Re, Avatar as Bn, Upload as Yn, Spin as Br, Tooltip as tt, Tag as Yr, Badge as Vr, Grid as Me, Empty as Vn, Popover as Gt, Mentions as pn, Select as hn, DatePicker as zr, Result as Gr, Tabs as Dt } from "antd";
|
|
@@ -123,14 +123,14 @@ function no() {
|
|
|
123
123
|
var u = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
124
124
|
function C(d) {
|
|
125
125
|
{
|
|
126
|
-
for (var R = arguments.length, $ = new Array(R > 1 ? R - 1 : 0),
|
|
127
|
-
$[
|
|
126
|
+
for (var R = arguments.length, $ = new Array(R > 1 ? R - 1 : 0), Z = 1; Z < R; Z++)
|
|
127
|
+
$[Z - 1] = arguments[Z];
|
|
128
128
|
A("error", d, $);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function A(d, R, $) {
|
|
132
132
|
{
|
|
133
|
-
var
|
|
133
|
+
var Z = u.ReactDebugCurrentFrame, he = Z.getStackAddendum();
|
|
134
134
|
he !== "" && (R += "%s", $ = $.concat([he]));
|
|
135
135
|
var ge = $.map(function(oe) {
|
|
136
136
|
return "" + oe;
|
|
@@ -143,8 +143,8 @@ function no() {
|
|
|
143
143
|
return !!(typeof d == "string" || typeof d == "function" || d === e.Fragment || d === i || d === T || d === s || d === m || d === p || d === w || N || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === h || d.$$typeof === a || d.$$typeof === l || d.$$typeof === g || d.$$typeof === S || d.$$typeof === j || d[0] === v));
|
|
144
144
|
}
|
|
145
145
|
function _(d, R, $) {
|
|
146
|
-
var
|
|
147
|
-
return d.displayName || (
|
|
146
|
+
var Z = R.displayName || R.name || "";
|
|
147
|
+
return d.displayName || (Z !== "" ? $ + "(" + Z + ")" : $);
|
|
148
148
|
}
|
|
149
149
|
function O(d) {
|
|
150
150
|
return d.displayName || "Context";
|
|
@@ -185,7 +185,7 @@ function no() {
|
|
|
185
185
|
case j:
|
|
186
186
|
return H(d._render);
|
|
187
187
|
case y: {
|
|
188
|
-
var
|
|
188
|
+
var Z = d, he = Z._payload, ge = Z._init;
|
|
189
189
|
try {
|
|
190
190
|
return H(ge(he));
|
|
191
191
|
} catch {
|
|
@@ -195,14 +195,14 @@ function no() {
|
|
|
195
195
|
}
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
198
|
+
var G = 0, q, F, se, te, k, M, X;
|
|
199
199
|
function B() {
|
|
200
200
|
}
|
|
201
201
|
B.__reactDisabledLog = !0;
|
|
202
|
-
function
|
|
202
|
+
function Y() {
|
|
203
203
|
{
|
|
204
|
-
if (
|
|
205
|
-
|
|
204
|
+
if (G === 0) {
|
|
205
|
+
q = console.log, F = console.info, se = console.warn, te = console.error, k = console.group, M = console.groupCollapsed, X = console.groupEnd;
|
|
206
206
|
var d = {
|
|
207
207
|
configurable: !0,
|
|
208
208
|
enumerable: !0,
|
|
@@ -219,12 +219,12 @@ function no() {
|
|
|
219
219
|
groupEnd: d
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
G++;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
function Q() {
|
|
226
226
|
{
|
|
227
|
-
if (
|
|
227
|
+
if (G--, G === 0) {
|
|
228
228
|
var d = {
|
|
229
229
|
configurable: !0,
|
|
230
230
|
enumerable: !0,
|
|
@@ -232,7 +232,7 @@ function no() {
|
|
|
232
232
|
};
|
|
233
233
|
Object.defineProperties(console, {
|
|
234
234
|
log: r({}, d, {
|
|
235
|
-
value:
|
|
235
|
+
value: q
|
|
236
236
|
}),
|
|
237
237
|
info: r({}, d, {
|
|
238
238
|
value: F
|
|
@@ -250,46 +250,46 @@ function no() {
|
|
|
250
250
|
value: M
|
|
251
251
|
}),
|
|
252
252
|
groupEnd: r({}, d, {
|
|
253
|
-
value:
|
|
253
|
+
value: X
|
|
254
254
|
})
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
G < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
var
|
|
260
|
+
var P = u.ReactCurrentDispatcher, J;
|
|
261
261
|
function ee(d, R, $) {
|
|
262
262
|
{
|
|
263
|
-
if (
|
|
263
|
+
if (J === void 0)
|
|
264
264
|
try {
|
|
265
265
|
throw Error();
|
|
266
266
|
} catch (he) {
|
|
267
|
-
var
|
|
268
|
-
|
|
267
|
+
var Z = he.stack.trim().match(/\n( *(at )?)/);
|
|
268
|
+
J = Z && Z[1] || "";
|
|
269
269
|
}
|
|
270
270
|
return `
|
|
271
|
-
` +
|
|
271
|
+
` + J + d;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
var U = !1,
|
|
274
|
+
var U = !1, V;
|
|
275
275
|
{
|
|
276
276
|
var de = typeof WeakMap == "function" ? WeakMap : Map;
|
|
277
|
-
|
|
277
|
+
V = new de();
|
|
278
278
|
}
|
|
279
279
|
function L(d, R) {
|
|
280
280
|
if (!d || U)
|
|
281
281
|
return "";
|
|
282
282
|
{
|
|
283
|
-
var $ =
|
|
283
|
+
var $ = V.get(d);
|
|
284
284
|
if ($ !== void 0)
|
|
285
285
|
return $;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
287
|
+
var Z;
|
|
288
288
|
U = !0;
|
|
289
289
|
var he = Error.prepareStackTrace;
|
|
290
290
|
Error.prepareStackTrace = void 0;
|
|
291
291
|
var ge;
|
|
292
|
-
ge =
|
|
292
|
+
ge = P.current, P.current = null, Y();
|
|
293
293
|
try {
|
|
294
294
|
if (R) {
|
|
295
295
|
var oe = function() {
|
|
@@ -303,14 +303,14 @@ function no() {
|
|
|
303
303
|
try {
|
|
304
304
|
Reflect.construct(oe, []);
|
|
305
305
|
} catch (Le) {
|
|
306
|
-
|
|
306
|
+
Z = Le;
|
|
307
307
|
}
|
|
308
308
|
Reflect.construct(d, [], oe);
|
|
309
309
|
} else {
|
|
310
310
|
try {
|
|
311
311
|
oe.call();
|
|
312
312
|
} catch (Le) {
|
|
313
|
-
|
|
313
|
+
Z = Le;
|
|
314
314
|
}
|
|
315
315
|
d.call(oe.prototype);
|
|
316
316
|
}
|
|
@@ -318,14 +318,14 @@ function no() {
|
|
|
318
318
|
try {
|
|
319
319
|
throw Error();
|
|
320
320
|
} catch (Le) {
|
|
321
|
-
|
|
321
|
+
Z = Le;
|
|
322
322
|
}
|
|
323
323
|
d();
|
|
324
324
|
}
|
|
325
325
|
} catch (Le) {
|
|
326
|
-
if (Le &&
|
|
326
|
+
if (Le && Z && typeof Le.stack == "string") {
|
|
327
327
|
for (var ne = Le.stack.split(`
|
|
328
|
-
`), Te =
|
|
328
|
+
`), Te = Z.stack.split(`
|
|
329
329
|
`), me = ne.length - 1, ve = Te.length - 1; me >= 1 && ve >= 0 && ne[me] !== Te[ve]; )
|
|
330
330
|
ve--;
|
|
331
331
|
for (; me >= 1 && ve >= 0; me--, ve--)
|
|
@@ -335,17 +335,17 @@ function no() {
|
|
|
335
335
|
if (me--, ve--, ve < 0 || ne[me] !== Te[ve]) {
|
|
336
336
|
var Oe = `
|
|
337
337
|
` + ne[me].replace(" at new ", " at ");
|
|
338
|
-
return typeof d == "function" &&
|
|
338
|
+
return typeof d == "function" && V.set(d, Oe), Oe;
|
|
339
339
|
}
|
|
340
340
|
while (me >= 1 && ve >= 0);
|
|
341
341
|
break;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
} finally {
|
|
345
|
-
U = !1,
|
|
345
|
+
U = !1, P.current = ge, Q(), Error.prepareStackTrace = he;
|
|
346
346
|
}
|
|
347
347
|
var Xe = d ? d.displayName || d.name : "", dn = Xe ? ee(Xe) : "";
|
|
348
|
-
return typeof d == "function" &&
|
|
348
|
+
return typeof d == "function" && V.set(d, dn), dn;
|
|
349
349
|
}
|
|
350
350
|
function be(d, R, $) {
|
|
351
351
|
return L(d, !1);
|
|
@@ -376,7 +376,7 @@ function no() {
|
|
|
376
376
|
case j:
|
|
377
377
|
return be(d._render);
|
|
378
378
|
case y: {
|
|
379
|
-
var
|
|
379
|
+
var Z = d, he = Z._payload, ge = Z._init;
|
|
380
380
|
try {
|
|
381
381
|
return fe(ge(he), R, $);
|
|
382
382
|
} catch {
|
|
@@ -393,7 +393,7 @@ function no() {
|
|
|
393
393
|
} else
|
|
394
394
|
Ne.setExtraStackFrame(null);
|
|
395
395
|
}
|
|
396
|
-
function it(d, R, $,
|
|
396
|
+
function it(d, R, $, Z, he) {
|
|
397
397
|
{
|
|
398
398
|
var ge = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
399
399
|
for (var oe in d)
|
|
@@ -401,14 +401,14 @@ function no() {
|
|
|
401
401
|
var ne = void 0;
|
|
402
402
|
try {
|
|
403
403
|
if (typeof d[oe] != "function") {
|
|
404
|
-
var Te = Error((
|
|
404
|
+
var Te = Error((Z || "React class") + ": " + $ + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
405
405
|
throw Te.name = "Invariant Violation", Te;
|
|
406
406
|
}
|
|
407
|
-
ne = d[oe](R, oe,
|
|
407
|
+
ne = d[oe](R, oe, Z, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
408
|
} catch (me) {
|
|
409
409
|
ne = me;
|
|
410
410
|
}
|
|
411
|
-
ne && !(ne instanceof Error) && (ke(he), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
411
|
+
ne && !(ne instanceof Error) && (ke(he), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Z || "React class", $, oe, typeof ne), ke(null)), ne instanceof Error && !(ne.message in Ce) && (Ce[ne.message] = !0, ke(he), C("Failed %s type: %s", $, ne.message), ke(null));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -459,7 +459,7 @@ function no() {
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var Er = function(d, R, $,
|
|
462
|
+
var Er = function(d, R, $, Z, he, ge, oe) {
|
|
463
463
|
var ne = {
|
|
464
464
|
// This tag allows us to uniquely identify this as a React Element
|
|
465
465
|
$$typeof: o,
|
|
@@ -480,7 +480,7 @@ function no() {
|
|
|
480
480
|
configurable: !1,
|
|
481
481
|
enumerable: !1,
|
|
482
482
|
writable: !1,
|
|
483
|
-
value:
|
|
483
|
+
value: Z
|
|
484
484
|
}), Object.defineProperty(ne, "_source", {
|
|
485
485
|
configurable: !1,
|
|
486
486
|
enumerable: !1,
|
|
@@ -488,7 +488,7 @@ function no() {
|
|
|
488
488
|
value: he
|
|
489
489
|
}), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
|
|
490
490
|
};
|
|
491
|
-
function Sr(d, R, $,
|
|
491
|
+
function Sr(d, R, $, Z, he) {
|
|
492
492
|
{
|
|
493
493
|
var ge, oe = {}, ne = null, Te = null;
|
|
494
494
|
$ !== void 0 && (ne = "" + $), vr(R) && (ne = "" + R.key), yr(R) && (Te = R.ref, br(R, he));
|
|
@@ -503,7 +503,7 @@ function no() {
|
|
|
503
503
|
var ve = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
504
504
|
ne && Cr(oe, ve), Te && Tr(oe, ve);
|
|
505
505
|
}
|
|
506
|
-
return Er(d, ne, Te, he,
|
|
506
|
+
return Er(d, ne, Te, he, Z, Ge.current, oe);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var kt = u.ReactCurrentOwner, on = u.ReactDebugCurrentFrame;
|
|
@@ -556,8 +556,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
556
556
|
if (an[$])
|
|
557
557
|
return;
|
|
558
558
|
an[$] = !0;
|
|
559
|
-
var
|
|
560
|
-
d && d._owner && d._owner !== kt.current && (
|
|
559
|
+
var Z = "";
|
|
560
|
+
d && d._owner && d._owner !== kt.current && (Z = " It was passed a child from " + H(d._owner.type) + "."), Pe(d), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, Z), Pe(null);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function ln(d, R) {
|
|
@@ -566,8 +566,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
566
566
|
return;
|
|
567
567
|
if (Array.isArray(d))
|
|
568
568
|
for (var $ = 0; $ < d.length; $++) {
|
|
569
|
-
var
|
|
570
|
-
Rt(
|
|
569
|
+
var Z = d[$];
|
|
570
|
+
Rt(Z) && cn(Z, R);
|
|
571
571
|
}
|
|
572
572
|
else if (Rt(d))
|
|
573
573
|
d._store && (d._store.validated = !0);
|
|
@@ -594,8 +594,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
594
594
|
else
|
|
595
595
|
return;
|
|
596
596
|
if ($) {
|
|
597
|
-
var
|
|
598
|
-
it($, d.props, "prop",
|
|
597
|
+
var Z = H(R);
|
|
598
|
+
it($, d.props, "prop", Z, d);
|
|
599
599
|
} else if (R.PropTypes !== void 0 && !At) {
|
|
600
600
|
At = !0;
|
|
601
601
|
var he = H(R);
|
|
@@ -607,16 +607,16 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
607
607
|
function kr(d) {
|
|
608
608
|
{
|
|
609
609
|
for (var R = Object.keys(d.props), $ = 0; $ < R.length; $++) {
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
612
|
-
Pe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
610
|
+
var Z = R[$];
|
|
611
|
+
if (Z !== "children" && Z !== "key") {
|
|
612
|
+
Pe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Z), Pe(null);
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
d.ref !== null && (Pe(d), C("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function un(d, R, $,
|
|
619
|
+
function un(d, R, $, Z, he, ge) {
|
|
620
620
|
{
|
|
621
621
|
var oe = D(d);
|
|
622
622
|
if (!oe) {
|
|
@@ -633,7 +633,7 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
633
633
|
if (oe) {
|
|
634
634
|
var Oe = R.children;
|
|
635
635
|
if (Oe !== void 0)
|
|
636
|
-
if (
|
|
636
|
+
if (Z)
|
|
637
637
|
if (Array.isArray(Oe)) {
|
|
638
638
|
for (var Xe = 0; Xe < Oe.length; Xe++)
|
|
639
639
|
ln(Oe[Xe], d);
|
|
@@ -662,7 +662,7 @@ function ro() {
|
|
|
662
662
|
return vn || (vn = 1, process.env.NODE_ENV === "production" ? mt.exports = to() : mt.exports = no()), mt.exports;
|
|
663
663
|
}
|
|
664
664
|
var t = ro();
|
|
665
|
-
const oo = "2.0.7-alpha.
|
|
665
|
+
const oo = "2.0.7-alpha.6", Gn = "chat_session", so = "user_uttered", io = "bot_uttered", ao = "ehelp_bot_uttered", co = "bot_reason_uttered";
|
|
666
666
|
JSON.stringify({
|
|
667
667
|
enabled_agents: ["Alice", "Maria", "Jani"],
|
|
668
668
|
default_active_agent: "Alice"
|
|
@@ -900,7 +900,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
900
900
|
modelName: g,
|
|
901
901
|
isSF: m
|
|
902
902
|
}) => {
|
|
903
|
-
const [p, h] = W(!1), [y, j] = W("va"), [v, S] = W(!1), [T, w] = W({}), [x, E] = W(!1), [f, b] = W(!1), [u, C] = W(!1), A = re(!1), N =
|
|
903
|
+
const [p, h] = W(!1), [y, j] = W("va"), [v, S] = W(!1), [T, w] = W({}), [x, E] = W(!1), [f, b] = W(!1), [u, C] = W(!1), A = re(!1), N = z(() => ({
|
|
904
904
|
getStartedPayload: n,
|
|
905
905
|
socketURL: r,
|
|
906
906
|
socketPath: o,
|
|
@@ -922,7 +922,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
922
922
|
l,
|
|
923
923
|
g,
|
|
924
924
|
m
|
|
925
|
-
]), D =
|
|
925
|
+
]), D = z(() => Kn(T == null ? void 0 : T.access_token), [T == null ? void 0 : T.access_token]);
|
|
926
926
|
return pe(() => {
|
|
927
927
|
w(yo(n));
|
|
928
928
|
}, [n]), pe(() => {
|
|
@@ -996,23 +996,23 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
996
996
|
}, [n == null ? void 0 : n.uriService, n == null ? void 0 : n.lang]), /* @__PURE__ */ t.jsx(Qn.Provider, { value: { langDatas: r }, children: e });
|
|
997
997
|
}, er = Ve({}), De = () => ze(er), ko = ({ children: e }) => {
|
|
998
998
|
var ee;
|
|
999
|
-
const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [p, h] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, w] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, N] = W({}), D = re(null), _ = re(null), O = re(null), H = re(""),
|
|
1000
|
-
objInitPayload:
|
|
999
|
+
const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [p, h] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, w] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, N] = W({}), D = re(null), _ = re(null), O = re(null), H = re(""), G = re(""), {
|
|
1000
|
+
objInitPayload: q,
|
|
1001
1001
|
widgetProps: F,
|
|
1002
1002
|
setOpenWidget: se,
|
|
1003
1003
|
setFirstOpenWidget: te,
|
|
1004
1004
|
isFirstRenderHelpdesk: k,
|
|
1005
1005
|
setUserInputHide: M
|
|
1006
|
-
} = ue(),
|
|
1006
|
+
} = ue(), X = (U) => {
|
|
1007
1007
|
var de;
|
|
1008
|
-
const
|
|
1008
|
+
const V = we(U, "text_feedback_link") && we(U, "text");
|
|
1009
1009
|
r((L) => {
|
|
1010
1010
|
var Ne, ke;
|
|
1011
1011
|
const Ee = [...bo(L)], fe = Ee[Ee.length - 1], Ce = U.id && U.id !== "" ? U.id : ((Ne = U.metadata) == null ? void 0 : Ne.id) || ((ke = U.metadata) == null ? void 0 : ke.message_id) || "";
|
|
1012
1012
|
return (fe == null ? void 0 : fe.id) === Ce ? (fe.text = `${(fe == null ? void 0 : fe.text) || ""}${(U == null ? void 0 : U.text) || ""}`, U != null && U.tag && (fe.tag = U.tag)) : Ee.push({
|
|
1013
1013
|
...U,
|
|
1014
1014
|
id: Ce,
|
|
1015
|
-
...
|
|
1015
|
+
...V && { type: "text" },
|
|
1016
1016
|
sender: "response"
|
|
1017
1017
|
}), Co(Ee);
|
|
1018
1018
|
}), C(!0), m(!1), c(!1), M(((de = U == null ? void 0 : U.metadata) == null ? void 0 : de.userInput) === "hide"), i(!1), D != null && D.current && clearTimeout(D == null ? void 0 : D.current), D.current = setTimeout(() => {
|
|
@@ -1021,10 +1021,10 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1021
1021
|
m(!0);
|
|
1022
1022
|
}, 2e3), $e();
|
|
1023
1023
|
}, B = (U) => {
|
|
1024
|
-
var
|
|
1025
|
-
U &&
|
|
1024
|
+
var V, de, L, be, Ee;
|
|
1025
|
+
U && Y({ msg: F == null ? void 0 : F.getStartedPayload }), (V = O.current) == null || V.emit("session_request", { session_id: null }), (de = O.current) == null || de.on("session_confirm", (fe) => {
|
|
1026
1026
|
H.current = fe, _t({ session_id: fe == null ? void 0 : fe.session_id });
|
|
1027
|
-
}), (L = O.current) == null || L.on(io,
|
|
1027
|
+
}), (L = O.current) == null || L.on(io, X), (be = O.current) == null || be.on(ao, (fe) => {
|
|
1028
1028
|
const Ce = JSON.parse(fe || "{}");
|
|
1029
1029
|
we(Ce, "iswidget") && w(Ce == null ? void 0 : Ce.iswidget);
|
|
1030
1030
|
}), (Ee = O.current) == null || Ee.on(co, (fe) => {
|
|
@@ -1046,22 +1046,22 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1046
1046
|
console.error("Error parsing BOT_REASON_UTTERED:", Ce);
|
|
1047
1047
|
}
|
|
1048
1048
|
}), v || S(!0), te(!1);
|
|
1049
|
-
},
|
|
1049
|
+
}, Y = ({
|
|
1050
1050
|
msg: U,
|
|
1051
|
-
additionalConfig:
|
|
1051
|
+
additionalConfig: V = {},
|
|
1052
1052
|
isShowLoadingResponse: de = !0
|
|
1053
1053
|
}) => {
|
|
1054
1054
|
var L;
|
|
1055
1055
|
(L = O.current) == null || L.emit(so, {
|
|
1056
|
-
customData: { language:
|
|
1056
|
+
customData: { language: q == null ? void 0 : q.lang },
|
|
1057
1057
|
message: U,
|
|
1058
1058
|
session_id: H == null ? void 0 : H.current,
|
|
1059
|
-
...
|
|
1059
|
+
...V
|
|
1060
1060
|
}), de ? c(!0) : i(!0);
|
|
1061
1061
|
}, Q = (U = !1) => {
|
|
1062
1062
|
var de, L;
|
|
1063
1063
|
O.current && ((de = O.current) == null || de.off(), (L = O.current) == null || L.disconnect(), O.current = null), k.current = !1;
|
|
1064
|
-
const
|
|
1064
|
+
const V = qr(
|
|
1065
1065
|
`${To(F == null ? void 0 : F.socketURL)}://${qn(
|
|
1066
1066
|
F == null ? void 0 : F.socketURL
|
|
1067
1067
|
)}`,
|
|
@@ -1072,27 +1072,27 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1072
1072
|
reconnectionAttempts: 1
|
|
1073
1073
|
}
|
|
1074
1074
|
);
|
|
1075
|
-
|
|
1075
|
+
V.on("connect", () => B(U)), V.on("connect_error", (be) => {
|
|
1076
1076
|
console.error("connect_error widget-chatbot : ", {
|
|
1077
1077
|
err: be,
|
|
1078
1078
|
socketURL: F == null ? void 0 : F.socketURL,
|
|
1079
1079
|
socketPath: F == null ? void 0 : F.widgetProps
|
|
1080
1080
|
}), S(!1);
|
|
1081
|
-
}),
|
|
1081
|
+
}), V.io.on("reconnect", () => {
|
|
1082
1082
|
console.error("reconnect widget-chatbot : ", {
|
|
1083
1083
|
socketURL: F == null ? void 0 : F.socketURL,
|
|
1084
1084
|
socketPath: F == null ? void 0 : F.widgetProps
|
|
1085
1085
|
}), S(!1);
|
|
1086
|
-
}), O.current =
|
|
1087
|
-
},
|
|
1086
|
+
}), O.current = V;
|
|
1087
|
+
}, P = () => {
|
|
1088
1088
|
var U;
|
|
1089
1089
|
(!((U = O == null ? void 0 : O.current) != null && U.connected) || !v) && (Q(), se(!1));
|
|
1090
|
-
},
|
|
1091
|
-
return pe(() => (se(!1), Q(), window.addEventListener("online",
|
|
1092
|
-
var U,
|
|
1093
|
-
O.current && ((U = O.current) == null || U.off("connect", B), (
|
|
1090
|
+
}, J = () => S(!1);
|
|
1091
|
+
return pe(() => (se(!1), Q(), window.addEventListener("online", P), window.addEventListener("offline", J), () => {
|
|
1092
|
+
var U, V;
|
|
1093
|
+
O.current && ((U = O.current) == null || U.off("connect", B), (V = O.current) == null || V.disconnect(), O.current = null), window.removeEventListener("online", P), window.removeEventListener("offline", J);
|
|
1094
1094
|
}), [
|
|
1095
|
-
JSON.stringify(
|
|
1095
|
+
JSON.stringify(q || {}),
|
|
1096
1096
|
F == null ? void 0 : F.socketURL,
|
|
1097
1097
|
F == null ? void 0 : F.socketPath
|
|
1098
1098
|
]), /* @__PURE__ */ t.jsx(
|
|
@@ -1101,7 +1101,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1101
1101
|
value: {
|
|
1102
1102
|
setChats: r,
|
|
1103
1103
|
chats: n,
|
|
1104
|
-
onSendMsg:
|
|
1104
|
+
onSendMsg: Y,
|
|
1105
1105
|
isWaitResponse: o,
|
|
1106
1106
|
socket: O == null ? void 0 : O.current,
|
|
1107
1107
|
sessionId: (ee = H == null ? void 0 : H.current) == null ? void 0 : ee.session_id,
|
|
@@ -1111,7 +1111,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1111
1111
|
connected: v,
|
|
1112
1112
|
isHandshakeWidget: T,
|
|
1113
1113
|
createSocket: Q,
|
|
1114
|
-
currRegenerateId:
|
|
1114
|
+
currRegenerateId: G,
|
|
1115
1115
|
thinkingText: x,
|
|
1116
1116
|
setThinkingText: E,
|
|
1117
1117
|
isThinkingCompleted: f,
|
|
@@ -1417,7 +1417,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1417
1417
|
return ((i = Object.keys(r || {})) == null ? void 0 : i.length) > 0 ? o ? `WPUI_${c}` : s : n;
|
|
1418
1418
|
}, Do = ({ isFeedback: e = !1, open: n, ...r }) => {
|
|
1419
1419
|
var c;
|
|
1420
|
-
const o =
|
|
1420
|
+
const o = z(() => e ? "w-modal-container-feedback" : "", [e]);
|
|
1421
1421
|
return nt != null && nt.startsWith("5") ? /* @__PURE__ */ t.jsx(
|
|
1422
1422
|
fn,
|
|
1423
1423
|
{
|
|
@@ -1464,7 +1464,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
)
|
|
1466
1466
|
);
|
|
1467
|
-
}, tr =
|
|
1467
|
+
}, tr = K(Do), Oo = ({ childrenData: e, children: n, tag: r, reason: o }) => {
|
|
1468
1468
|
const c = I("ThinkProcess", "Think Process"), i = [{ type: "text", value: typeof e == "string" ? e : "" }], a = typeof o == "string" ? o.replace(/\s+/g, " ").trim() : "", l = a.length > 0;
|
|
1469
1469
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1470
1470
|
l && /* @__PURE__ */ t.jsx(
|
|
@@ -1509,7 +1509,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1509
1509
|
),
|
|
1510
1510
|
i.map((g, m) => /* @__PURE__ */ t.jsx(Tt, { children: n(g.value, "text") }, m))
|
|
1511
1511
|
] });
|
|
1512
|
-
}, Lo =
|
|
1512
|
+
}, Lo = K(Oo), En = ({ props: e, isModal: n = !1 }) => {
|
|
1513
1513
|
const r = (o, c) => {
|
|
1514
1514
|
var s;
|
|
1515
1515
|
return (s = Mr) == null ? void 0 : s.map(o, (i) => {
|
|
@@ -1644,7 +1644,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1644
1644
|
children: g
|
|
1645
1645
|
}
|
|
1646
1646
|
) }) });
|
|
1647
|
-
}, nr =
|
|
1647
|
+
}, nr = K(Mo), No = () => /* @__PURE__ */ t.jsxs(
|
|
1648
1648
|
"svg",
|
|
1649
1649
|
{
|
|
1650
1650
|
width: "24",
|
|
@@ -1972,7 +1972,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1972
1972
|
children: /* @__PURE__ */ t.jsx("path", { d: "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" })
|
|
1973
1973
|
}
|
|
1974
1974
|
), xe = ({ type: e = "", chatProps: n, ...r }) => {
|
|
1975
|
-
const o =
|
|
1975
|
+
const o = z(() => ({
|
|
1976
1976
|
minimize: Fo,
|
|
1977
1977
|
expand: Io,
|
|
1978
1978
|
send: $o,
|
|
@@ -1997,7 +1997,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1997
1997
|
}), [e, n, r]);
|
|
1998
1998
|
return /* @__PURE__ */ t.jsx(Jr, { component: o == null ? void 0 : o[e], ...r });
|
|
1999
1999
|
}, rr = Ve({}), Ue = () => ze(rr), ns = ({ children: e }) => {
|
|
2000
|
-
const [n, r] = W("va"), o =
|
|
2000
|
+
const [n, r] = W("va"), o = z(() => n === "va", [n]);
|
|
2001
2001
|
return /* @__PURE__ */ t.jsx(
|
|
2002
2002
|
rr.Provider,
|
|
2003
2003
|
{
|
|
@@ -2022,15 +2022,15 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2022
2022
|
), s = I(
|
|
2023
2023
|
"AdditionalFeedback",
|
|
2024
2024
|
"Additional Feedback"
|
|
2025
|
-
), [i] = Se.useForm(), [a, l] = W(!1), [g, m] = W(""), { setChats: p } = De(), { objInitPayload: h, isUserInputHide: y } = ue(), { activeTab: j } = Ue(), v =
|
|
2025
|
+
), [i] = Se.useForm(), [a, l] = W(!1), [g, m] = W(""), { setChats: p } = De(), { objInitPayload: h, isUserInputHide: y } = ue(), { activeTab: j } = Ue(), v = z(() => {
|
|
2026
2026
|
var E;
|
|
2027
2027
|
const x = we(e, "feedback") ? (e == null ? void 0 : e.feedback) === "like" || (e == null ? void 0 : e.feedback) === "" : !0;
|
|
2028
2028
|
return typeof (e == null ? void 0 : e.text_thumbsup_link) == "string" && ((E = e == null ? void 0 : e.text_thumbsup_link) == null ? void 0 : E.trim()) !== "" && x;
|
|
2029
|
-
}, [e]), S =
|
|
2029
|
+
}, [e]), S = z(() => {
|
|
2030
2030
|
var E;
|
|
2031
2031
|
const x = we(e, "feedback") ? (e == null ? void 0 : e.feedback) === "dislike" || (e == null ? void 0 : e.feedback) === "" : !0;
|
|
2032
2032
|
return typeof (e == null ? void 0 : e.text_thumbsdown_link) == "string" && ((E = e == null ? void 0 : e.text_thumbsdown_link) == null ? void 0 : E.trim()) !== "" && x;
|
|
2033
|
-
}, [e]), T =
|
|
2033
|
+
}, [e]), T = z(() => {
|
|
2034
2034
|
if (h != null && h.uriBackend)
|
|
2035
2035
|
try {
|
|
2036
2036
|
return new URL(h.uriBackend).origin;
|
|
@@ -2070,13 +2070,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2070
2070
|
Language: `${N}`
|
|
2071
2071
|
}
|
|
2072
2072
|
})) == null || _.then((O) => {
|
|
2073
|
-
var H,
|
|
2074
|
-
(O == null ? void 0 : O.status) === 200 && (a && l(!1), (H = _e) == null || H.destroy(), (
|
|
2073
|
+
var H, G, q;
|
|
2074
|
+
(O == null ? void 0 : O.status) === 200 && (a && l(!1), (H = _e) == null || H.destroy(), (G = _e) == null || G.config({
|
|
2075
2075
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2076
2076
|
top: 28,
|
|
2077
2077
|
placement: "top",
|
|
2078
2078
|
duration: 3
|
|
2079
|
-
}), (
|
|
2079
|
+
}), (q = _e) == null || q.success({
|
|
2080
2080
|
message: c,
|
|
2081
2081
|
className: "w-notification-content"
|
|
2082
2082
|
}), p((F) => {
|
|
@@ -2084,13 +2084,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2084
2084
|
return (se = F == null ? void 0 : F.map((te) => {
|
|
2085
2085
|
var M;
|
|
2086
2086
|
if (we(te, "chats")) {
|
|
2087
|
-
const
|
|
2087
|
+
const X = (M = te == null ? void 0 : te.chats) == null ? void 0 : M.map((B) => (B == null ? void 0 : B.indexChat) === (e == null ? void 0 : e.indexChat) ? {
|
|
2088
2088
|
...B,
|
|
2089
2089
|
feedback: x
|
|
2090
2090
|
} : B);
|
|
2091
2091
|
return {
|
|
2092
2092
|
...te,
|
|
2093
|
-
chats:
|
|
2093
|
+
chats: X
|
|
2094
2094
|
};
|
|
2095
2095
|
}
|
|
2096
2096
|
return (e == null ? void 0 : e.id) === (te == null ? void 0 : te.id) ? {
|
|
@@ -2162,7 +2162,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
)
|
|
2164
2164
|
] });
|
|
2165
|
-
}, os =
|
|
2165
|
+
}, os = K(rs), ss = ({
|
|
2166
2166
|
showFeedback: e = !0,
|
|
2167
2167
|
showRegenerate: n = !0,
|
|
2168
2168
|
position: r = "left",
|
|
@@ -2176,7 +2176,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2176
2176
|
setChats: g,
|
|
2177
2177
|
loadingRegenerate: m,
|
|
2178
2178
|
currRegenerateId: p
|
|
2179
|
-
} = De(), h =
|
|
2179
|
+
} = De(), h = z(() => o == null ? void 0 : o.sender, [o]), y = z(() => a == null ? void 0 : a.filter((w) => (w == null ? void 0 : w.sender) === "client"), [a]), j = z(() => n && h === "response" && (y == null ? void 0 : y.length) > 0 && (o == null ? void 0 : o.indexChat) === (a == null ? void 0 : a.length) - 1 && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [h, y, a, o, n]), v = z(() => {
|
|
2180
2180
|
switch (r) {
|
|
2181
2181
|
case "left":
|
|
2182
2182
|
return "flex-start";
|
|
@@ -2185,7 +2185,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2185
2185
|
case "right":
|
|
2186
2186
|
return "flex-end";
|
|
2187
2187
|
}
|
|
2188
|
-
}, [r]), S =
|
|
2188
|
+
}, [r]), S = z(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), T = () => {
|
|
2189
2189
|
if (!s) return;
|
|
2190
2190
|
i(!1);
|
|
2191
2191
|
const w = y == null ? void 0 : y[(y == null ? void 0 : y.length) - 1], x = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
@@ -2226,7 +2226,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2226
2226
|
]
|
|
2227
2227
|
}
|
|
2228
2228
|
) });
|
|
2229
|
-
}, Vt =
|
|
2229
|
+
}, Vt = K(ss), is = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
|
|
2230
2230
|
Wr,
|
|
2231
2231
|
{
|
|
2232
2232
|
...typeof (n == null ? void 0 : n.onError) != "function" && {
|
|
@@ -2236,7 +2236,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2236
2236
|
loading: "lazy",
|
|
2237
2237
|
...n
|
|
2238
2238
|
}
|
|
2239
|
-
), Qt =
|
|
2239
|
+
), Qt = K(is), as = ({ nameFallback: e = "", ...n }) => {
|
|
2240
2240
|
const r = re(0);
|
|
2241
2241
|
return /* @__PURE__ */ t.jsx(
|
|
2242
2242
|
Bn,
|
|
@@ -2256,25 +2256,25 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2256
2256
|
)
|
|
2257
2257
|
}
|
|
2258
2258
|
);
|
|
2259
|
-
}, Ye =
|
|
2259
|
+
}, Ye = K(as);
|
|
2260
2260
|
Ye.Group = Bn.Group;
|
|
2261
2261
|
const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", children: [
|
|
2262
2262
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
2263
2263
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
2264
2264
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
2265
2265
|
/* @__PURE__ */ t.jsx("div", {})
|
|
2266
|
-
] }), or =
|
|
2266
|
+
] }), or = K(cs), ls = () => {
|
|
2267
2267
|
const { widgetProps: e } = ue();
|
|
2268
2268
|
return /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2269
2269
|
/* @__PURE__ */ t.jsx(Ye, { src: St, nameFallback: e == null ? void 0 : e.title }),
|
|
2270
2270
|
/* @__PURE__ */ t.jsx(or, {})
|
|
2271
2271
|
] });
|
|
2272
|
-
}, en =
|
|
2272
|
+
}, en = K(ls), us = ({ src: e, name: n }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2273
2273
|
/* @__PURE__ */ t.jsx(Ye, { src: e, preview: !1, nameFallback: n }),
|
|
2274
2274
|
/* @__PURE__ */ t.jsx(ie.Text, { children: n })
|
|
2275
|
-
] }), pt =
|
|
2275
|
+
] }), pt = K(us), ds = ({ ...e }) => {
|
|
2276
2276
|
var m, p;
|
|
2277
|
-
const [n, r] = W(1), { loadingRegenerate: o, currRegenerateId: c } = De(), { isExpand: s, widgetProps: i } = ue(), a =
|
|
2277
|
+
const [n, r] = W(1), { loadingRegenerate: o, currRegenerateId: c } = De(), { isExpand: s, widgetProps: i } = ue(), a = z(() => e == null ? void 0 : e.sender, [e]), l = z(() => e == null ? void 0 : e.chats, [e == null ? void 0 : e.chats]), g = z(() => {
|
|
2278
2278
|
const h = l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1];
|
|
2279
2279
|
return (h == null ? void 0 : h.generated_id) === c.current;
|
|
2280
2280
|
}, [l, e, c.current]);
|
|
@@ -2369,7 +2369,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2369
2369
|
] })
|
|
2370
2370
|
] })
|
|
2371
2371
|
] });
|
|
2372
|
-
}, fs =
|
|
2372
|
+
}, fs = K(ds), gs = ({ date: e, format: n, sender: r, ...o }) => {
|
|
2373
2373
|
var c, s;
|
|
2374
2374
|
return /* @__PURE__ */ t.jsx(
|
|
2375
2375
|
ie.Text,
|
|
@@ -2389,12 +2389,12 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2389
2389
|
children: n ? (s = je(e)) == null ? void 0 : s.format(n) : e
|
|
2390
2390
|
}
|
|
2391
2391
|
);
|
|
2392
|
-
}, ht =
|
|
2392
|
+
}, ht = K(gs), ps = ({ showResponseInfo: e = !0, ...n }) => {
|
|
2393
2393
|
var m;
|
|
2394
|
-
const { loadingRegenerate: r, chats: o, reasonMap: c } = De(), { widgetProps: s } = ue(), i =
|
|
2394
|
+
const { loadingRegenerate: r, chats: o, reasonMap: c } = De(), { widgetProps: s } = ue(), i = z(
|
|
2395
2395
|
() => (o == null ? void 0 : o.length) - 1 === (n == null ? void 0 : n.indexChat),
|
|
2396
2396
|
[o]
|
|
2397
|
-
), a =
|
|
2397
|
+
), a = z(() => n == null ? void 0 : n.sender, [n]), l = z(() => ((n == null ? void 0 : n.id) || "").split("|")[0], [n]), g = z(() => c == null ? void 0 : c[l], [c, l, n]);
|
|
2398
2398
|
return ((m = n == null ? void 0 : n.chats) == null ? void 0 : m.length) > 0 ? /* @__PURE__ */ t.jsx(fs, { ...n }) : r && i ? /* @__PURE__ */ t.jsx(en, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2399
2399
|
a === "response" && e && /* @__PURE__ */ t.jsx(pt, { name: s == null ? void 0 : s.title, src: St }),
|
|
2400
2400
|
/* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${a}`}`, children: [
|
|
@@ -2411,7 +2411,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2411
2411
|
] }),
|
|
2412
2412
|
/* @__PURE__ */ t.jsx(Vt, { ...n })
|
|
2413
2413
|
] });
|
|
2414
|
-
}, dt =
|
|
2414
|
+
}, dt = K(ps), hs = () => {
|
|
2415
2415
|
const e = I(
|
|
2416
2416
|
"PleaseUploadFile",
|
|
2417
2417
|
"Please upload specify file that needed to complete your request"
|
|
@@ -2475,7 +2475,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2475
2475
|
]
|
|
2476
2476
|
}
|
|
2477
2477
|
);
|
|
2478
|
-
}, xs =
|
|
2478
|
+
}, xs = K(hs), ms = () => {
|
|
2479
2479
|
const [e, n] = W(!1), [r, o] = W(!1), [c, s] = W(!1), [i, a] = W(3), [l, g] = W(!1), [m, p] = W(""), { widgetProps: h } = ue(), { onSendMsg: y, chats: j } = De(), { onSubmitPYPwd: v = () => {
|
|
2480
2480
|
}, onCheckPYAccess: S = () => {
|
|
2481
2481
|
} } = (h == null ? void 0 : h.onPayslipFn) || {}, T = I(
|
|
@@ -2497,12 +2497,12 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2497
2497
|
"SessionExpired",
|
|
2498
2498
|
"Session expired. Please log in again to continue"
|
|
2499
2499
|
), [D] = Se.useForm(), _ = () => {
|
|
2500
|
-
var
|
|
2501
|
-
s(!0), g(!0), (F = (
|
|
2500
|
+
var G, q, F;
|
|
2501
|
+
s(!0), g(!0), (F = (q = (G = S()) == null ? void 0 : G.then((se) => {
|
|
2502
2502
|
var k, M;
|
|
2503
2503
|
const te = (M = (k = se == null ? void 0 : se.data) == null ? void 0 : k.DATA) == null ? void 0 : M.RESULT;
|
|
2504
2504
|
te && y({ msg: "Valid" }), n(te), p("");
|
|
2505
|
-
})) == null ? void 0 :
|
|
2505
|
+
})) == null ? void 0 : q.catch((se) => {
|
|
2506
2506
|
p(se == null ? void 0 : se.toString());
|
|
2507
2507
|
})) == null || F.finally(() => {
|
|
2508
2508
|
o(!1), g(!1);
|
|
@@ -2510,23 +2510,23 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2510
2510
|
}, O = () => {
|
|
2511
2511
|
y({ msg: "cancel" }), s(!1);
|
|
2512
2512
|
}, H = () => {
|
|
2513
|
-
var
|
|
2514
|
-
const
|
|
2515
|
-
(
|
|
2513
|
+
var q;
|
|
2514
|
+
const G = D == null ? void 0 : D.getFieldValue("pwd");
|
|
2515
|
+
(q = D == null ? void 0 : D.validateFields()) == null || q.then(() => {
|
|
2516
2516
|
var F, se;
|
|
2517
|
-
o(!0), (se = (F = v(
|
|
2517
|
+
o(!0), (se = (F = v(G)) == null ? void 0 : F.then(({ data: te }) => {
|
|
2518
2518
|
var k;
|
|
2519
2519
|
(k = te == null ? void 0 : te.DATA) != null && k.ISVALID ? _() : (p(A), a(i - 1), o(!1));
|
|
2520
2520
|
})) == null || se.catch((te) => {
|
|
2521
|
-
var M,
|
|
2521
|
+
var M, X, B, Y, Q;
|
|
2522
2522
|
const k = te == null ? void 0 : te.response;
|
|
2523
2523
|
if ((k == null ? void 0 : k.status) === 401) {
|
|
2524
|
-
const
|
|
2524
|
+
const P = (X = (M = k == null ? void 0 : k.data) == null ? void 0 : M.ERRORS) == null ? void 0 : X.includes(
|
|
2525
2525
|
"ACCESS_TOKEN_EXPIRED"
|
|
2526
|
-
),
|
|
2526
|
+
), J = (Q = (Y = (B = k == null ? void 0 : k.data) == null ? void 0 : B.MESSAGE) == null ? void 0 : Y.toLowerCase()) == null ? void 0 : Q.includes(
|
|
2527
2527
|
"invalid password"
|
|
2528
2528
|
);
|
|
2529
|
-
|
|
2529
|
+
P && p(N), J && (p(A), a(i - 1), o(!1));
|
|
2530
2530
|
} else
|
|
2531
2531
|
p(te == null ? void 0 : te.toString());
|
|
2532
2532
|
o(!1);
|
|
@@ -2534,9 +2534,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2534
2534
|
});
|
|
2535
2535
|
};
|
|
2536
2536
|
return pe(() => {
|
|
2537
|
-
var
|
|
2538
|
-
const
|
|
2539
|
-
((
|
|
2537
|
+
var q;
|
|
2538
|
+
const G = j == null ? void 0 : j[(j == null ? void 0 : j.length) - 1];
|
|
2539
|
+
((q = G == null ? void 0 : G.attachment) == null ? void 0 : q.type) === "show_password_wp" && _();
|
|
2540
2540
|
}, []), c ? l ? /* @__PURE__ */ t.jsx(
|
|
2541
2541
|
dt,
|
|
2542
2542
|
{
|
|
@@ -2597,9 +2597,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2597
2597
|
)
|
|
2598
2598
|
}
|
|
2599
2599
|
) : null;
|
|
2600
|
-
}, ys =
|
|
2600
|
+
}, ys = K(ms), vs = ({ ...e }) => {
|
|
2601
2601
|
var a;
|
|
2602
|
-
const { objInitPayload: n } = ue(), [r, o] = W(!1), c = I("Error", "Error"), s =
|
|
2602
|
+
const { objInitPayload: n } = ue(), [r, o] = W(!1), c = I("Error", "Error"), s = z(() => Kn(n == null ? void 0 : n.access_token), [n]), i = () => {
|
|
2603
2603
|
var g, m, p, h;
|
|
2604
2604
|
o(!0);
|
|
2605
2605
|
const l = e == null ? void 0 : e.attachment;
|
|
@@ -2660,8 +2660,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2660
2660
|
] })
|
|
2661
2661
|
}
|
|
2662
2662
|
);
|
|
2663
|
-
}, bs =
|
|
2664
|
-
const n = re(), r = I("DownloadChart", "Download Chart"), o =
|
|
2663
|
+
}, bs = K(vs), Cs = ({ ...e }) => {
|
|
2664
|
+
const n = re(), r = I("DownloadChart", "Download Chart"), o = z(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), c = z(() => {
|
|
2665
2665
|
var i;
|
|
2666
2666
|
return (i = o == null ? void 0 : o.data) == null ? void 0 : i.map((a, l) => {
|
|
2667
2667
|
var g, m;
|
|
@@ -2710,7 +2710,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2710
2710
|
}
|
|
2711
2711
|
) })
|
|
2712
2712
|
] });
|
|
2713
|
-
}, Ts =
|
|
2713
|
+
}, Ts = K(Cs), Es = ({ ...e }) => {
|
|
2714
2714
|
var n, r, o, c, s;
|
|
2715
2715
|
switch (!0) {
|
|
2716
2716
|
case ((n = et(e)) == null ? void 0 : n.text):
|
|
@@ -2726,7 +2726,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2726
2726
|
default:
|
|
2727
2727
|
return null;
|
|
2728
2728
|
}
|
|
2729
|
-
}, Ss =
|
|
2729
|
+
}, Ss = K(Es), ws = () => {
|
|
2730
2730
|
const { isOpenWidget: e, widgetProps: n } = ue(), { chats: r, isWaitResponse: o } = De(), { activeTab: c } = Ue();
|
|
2731
2731
|
return pe(() => {
|
|
2732
2732
|
$e();
|
|
@@ -2747,8 +2747,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2747
2747
|
}) }),
|
|
2748
2748
|
o && /* @__PURE__ */ t.jsx(en, {})
|
|
2749
2749
|
] }) : null;
|
|
2750
|
-
}, _s =
|
|
2751
|
-
const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = ue(), o =
|
|
2750
|
+
}, _s = K(ws), sr = () => {
|
|
2751
|
+
const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = ue(), o = z(() => {
|
|
2752
2752
|
var s;
|
|
2753
2753
|
return {
|
|
2754
2754
|
Authorization: `Bearer ${e == null ? void 0 : e.access_token}`,
|
|
@@ -2865,32 +2865,32 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2865
2865
|
setShowUpload: p,
|
|
2866
2866
|
isLoadingUpload: h,
|
|
2867
2867
|
setLoadingUpload: y
|
|
2868
|
-
} = De(), { isUserInputHide: j } = ue(), { isActiveTabVA: v } = Ue(), S =
|
|
2868
|
+
} = De(), { isUserInputHide: j } = ue(), { isActiveTabVA: v } = Ue(), S = z(() => {
|
|
2869
2869
|
var O;
|
|
2870
2870
|
const _ = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2871
2871
|
return (_ == null ? void 0 : _.sender) === "response" && ((O = _ == null ? void 0 : _.attachment) == null ? void 0 : O.type) === "fileuploader";
|
|
2872
|
-
}, [a]), T = re(), [w, x] = W(!1), [E, f] = W(!1), b =
|
|
2873
|
-
var
|
|
2872
|
+
}, [a]), T = re(), [w, x] = W(!1), [E, f] = W(!1), b = z(() => o || !E, [E, o]), u = xt(), C = () => {
|
|
2873
|
+
var k, M, X;
|
|
2874
2874
|
y(!0);
|
|
2875
|
-
const _ = new FormData(), O =
|
|
2876
|
-
_.append("file", s), _ == null || _.append("rename",
|
|
2875
|
+
const _ = new FormData(), O = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], G = `${((k = O == null ? void 0 : O.attachment) == null ? void 0 : k.prefix) || "WP"}-${+/* @__PURE__ */ new Date()}`, q = /* @__PURE__ */ new Date(), F = q.getFullYear(), se = String(q.getMonth() + 1).padStart(2, "0"), te = `${F}/${se}`;
|
|
2876
|
+
_.append("file", s), _ == null || _.append("rename", G), _ == null || _.append("action", "UPLOAD"), _ == null || _.append("filefield", G), _ == null || _.append("method", "eligible"), _ == null || _.append("hash", !1), _ == null || _.append("subFolder", te), _ == null || _.append("code", "companylogo"), (X = (M = u({
|
|
2877
2877
|
apiType: "lc",
|
|
2878
2878
|
params: {
|
|
2879
2879
|
ofid: "SFUtil.UploadFile"
|
|
2880
2880
|
},
|
|
2881
2881
|
data: _
|
|
2882
|
-
})) == null ? void 0 :
|
|
2883
|
-
var
|
|
2884
|
-
const
|
|
2885
|
-
console.log("r",
|
|
2886
|
-
const
|
|
2887
|
-
n({ msg: `sf-filename ${
|
|
2888
|
-
})) == null ||
|
|
2882
|
+
})) == null ? void 0 : M.then((B) => {
|
|
2883
|
+
var P, J, ee;
|
|
2884
|
+
const Y = (P = B == null ? void 0 : B.data) == null ? void 0 : P.DATA;
|
|
2885
|
+
console.log("r", B, Y);
|
|
2886
|
+
const Q = (ee = (J = Y == null ? void 0 : Y.FILENAMES) == null ? void 0 : J[0]) == null ? void 0 : ee.SERVERFILE;
|
|
2887
|
+
n({ msg: `sf-filename ${Q}` }), p(!1);
|
|
2888
|
+
})) == null || X.finally(() => {
|
|
2889
2889
|
y(!1);
|
|
2890
2890
|
});
|
|
2891
2891
|
}, A = () => {
|
|
2892
|
-
var H,
|
|
2893
|
-
const _ = (
|
|
2892
|
+
var H, G, q, F;
|
|
2893
|
+
const _ = (q = (G = (H = T == null ? void 0 : T.current) == null ? void 0 : H.resizableTextArea) == null ? void 0 : G.textArea) == null ? void 0 : q.value;
|
|
2894
2894
|
if (!(_ != null && _.trim()) || o) return;
|
|
2895
2895
|
f(!1), n({ msg: _ }), x(!w);
|
|
2896
2896
|
const O = {
|
|
@@ -2985,7 +2985,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2985
2985
|
}
|
|
2986
2986
|
)
|
|
2987
2987
|
] });
|
|
2988
|
-
}, ks =
|
|
2988
|
+
}, ks = K(js), As = ({ taskStatus: e }) => {
|
|
2989
2989
|
const n = I("InProgress", "In Progress"), r = I("New", "New"), o = I("Closed", "Closed"), c = I("Done", "Done"), s = I("HDCancelled", "Cancelled"), i = {
|
|
2990
2990
|
"In Progress": n,
|
|
2991
2991
|
Open: r,
|
|
@@ -3002,7 +3002,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3002
3002
|
Fixed: "#bbfab7",
|
|
3003
3003
|
Done: "#bbfab7",
|
|
3004
3004
|
Cancelled: "#FFF2D6"
|
|
3005
|
-
}, l =
|
|
3005
|
+
}, l = z(() => a[e] || a.Closed, [e]), g = z(() => i[e] || e, [e]);
|
|
3006
3006
|
return /* @__PURE__ */ t.jsx(Yr, { color: l, children: /* @__PURE__ */ t.jsx(
|
|
3007
3007
|
ie.Text,
|
|
3008
3008
|
{
|
|
@@ -3012,7 +3012,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3012
3012
|
children: g
|
|
3013
3013
|
}
|
|
3014
3014
|
) }, e);
|
|
3015
|
-
}, ir =
|
|
3015
|
+
}, ir = K(As), Rs = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
|
|
3016
3016
|
"div",
|
|
3017
3017
|
{
|
|
3018
3018
|
className: "w-ticket-card-container",
|
|
@@ -3054,7 +3054,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3054
3054
|
] })
|
|
3055
3055
|
]
|
|
3056
3056
|
}
|
|
3057
|
-
), Ds =
|
|
3057
|
+
), Ds = K(Rs), ar = Ve({}), He = () => ze(ar), Os = ({ children: e }) => {
|
|
3058
3058
|
const n = xt(), [r, o] = W([]), [c, s] = W(""), [i, a] = W(!1), [l, g] = W(!0), [m, p] = W(0), h = (y) => {
|
|
3059
3059
|
var j, v, S, T;
|
|
3060
3060
|
g(!0), (T = (S = n({
|
|
@@ -3132,7 +3132,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3132
3132
|
}
|
|
3133
3133
|
) }) })
|
|
3134
3134
|
] }) });
|
|
3135
|
-
}, Ms =
|
|
3135
|
+
}, Ms = K(Ls), cr = Ve({}), We = () => ze(cr), Ns = ({ children: e }) => {
|
|
3136
3136
|
const n = re(null), r = re(0), o = re(!1), c = re(null), [s, i] = W([]), [a, l] = W(0), [g, m] = W(!1), { objInitPayload: p, parsedJWT: h, isFirstRenderHelpdesk: y, setShowReadyWSHD: j } = ue(), v = sr(), S = (E) => {
|
|
3137
3137
|
const f = new WebSocket(E);
|
|
3138
3138
|
f.onopen = () => {
|
|
@@ -3169,21 +3169,21 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3169
3169
|
TOKEN: A
|
|
3170
3170
|
};
|
|
3171
3171
|
try {
|
|
3172
|
-
const
|
|
3172
|
+
const G = await So(
|
|
3173
3173
|
D,
|
|
3174
3174
|
mo
|
|
3175
3175
|
);
|
|
3176
|
-
if (!
|
|
3176
|
+
if (!G || o.current || (r == null ? void 0 : r.current) >= ut) {
|
|
3177
3177
|
console.warn(
|
|
3178
3178
|
`${Qe} - Skipping WebSocket connection attempt.`
|
|
3179
3179
|
);
|
|
3180
3180
|
return;
|
|
3181
3181
|
}
|
|
3182
|
-
n.current && n.current.close(), S(`${N}?t=${
|
|
3183
|
-
} catch (
|
|
3182
|
+
n.current && n.current.close(), S(`${N}?t=${G}`);
|
|
3183
|
+
} catch (G) {
|
|
3184
3184
|
console.error(
|
|
3185
3185
|
`${Qe} - Failed to encrypt token:`,
|
|
3186
|
-
|
|
3186
|
+
G
|
|
3187
3187
|
);
|
|
3188
3188
|
}
|
|
3189
3189
|
}, w = (E) => (f) => {
|
|
@@ -3281,9 +3281,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3281
3281
|
}
|
|
3282
3282
|
)
|
|
3283
3283
|
] });
|
|
3284
|
-
}, Is =
|
|
3284
|
+
}, Is = K(Fs), $s = ({ children: e, open: n, onClose: r, footer: o, styleContainer: c }) => {
|
|
3285
3285
|
var h;
|
|
3286
|
-
const [s, i] = W(!1), a = re(), l = re(null), g = re(), m =
|
|
3286
|
+
const [s, i] = W(!1), a = re(), l = re(null), g = re(), m = z(() => n ? "w-fade-in-animate" : "w-fade-out-animate", [n]), p = (y) => {
|
|
3287
3287
|
y.code === "Escape" && !y.shiftKey && !y.altKey && !y.ctrlKey && y.key === "Escape" && (y.stopPropagation(), typeof r == "function" && r());
|
|
3288
3288
|
};
|
|
3289
3289
|
return pe(() => {
|
|
@@ -3314,8 +3314,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3314
3314
|
]
|
|
3315
3315
|
}
|
|
3316
3316
|
);
|
|
3317
|
-
}, lr =
|
|
3318
|
-
const [n, r] = W([]), [o, c] = W({}), [s, i] = W(!0), [a, l] = W({}), g = re(!1), m = xt(), { ticketId: p } = He(), { ws: h, setGetResponse: y } = We(), { parsedJWT: j } = ue(), v =
|
|
3317
|
+
}, lr = K($s), ur = Ve({}), st = () => ze(ur), Us = ({ children: e }) => {
|
|
3318
|
+
const [n, r] = W([]), [o, c] = W({}), [s, i] = W(!0), [a, l] = W({}), g = re(!1), m = xt(), { ticketId: p } = He(), { ws: h, setGetResponse: y } = We(), { parsedJWT: j } = ue(), v = z(() => {
|
|
3319
3319
|
var C;
|
|
3320
3320
|
const E = (o == null ? void 0 : o.CREATED_BY) ?? {}, f = (o == null ? void 0 : o.ASSIGNEE) ?? {}, b = (o == null ? void 0 : o.OTHER_ASSIGNEE) ?? [], u = (C = [E, f, ...b].map((A) => ({
|
|
3321
3321
|
...A
|
|
@@ -3400,10 +3400,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3400
3400
|
}
|
|
3401
3401
|
);
|
|
3402
3402
|
}, Hs = ({ onClose: e }) => {
|
|
3403
|
-
const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: c } = st(), { userOnline: s } = We(), i =
|
|
3403
|
+
const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: c } = st(), { userOnline: s } = We(), i = z(() => {
|
|
3404
3404
|
var l;
|
|
3405
3405
|
return (l = r == null ? void 0 : r.map((g) => g == null ? void 0 : g.FULL_NAME)) == null ? void 0 : l.join(", ");
|
|
3406
|
-
}, [r]), a =
|
|
3406
|
+
}, [r]), a = z(() => n ? "click" : "hover", [n]);
|
|
3407
3407
|
return c ? /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-detail-header-container", children: [
|
|
3408
3408
|
/* @__PURE__ */ t.jsx(Re.Avatar, {}),
|
|
3409
3409
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
@@ -3480,8 +3480,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3480
3480
|
] }),
|
|
3481
3481
|
/* @__PURE__ */ t.jsx(ir, { taskStatus: o == null ? void 0 : o.STATUS })
|
|
3482
3482
|
] });
|
|
3483
|
-
}, Ws =
|
|
3484
|
-
const n =
|
|
3483
|
+
}, Ws = K(Hs), Bs = ({ ...e }) => {
|
|
3484
|
+
const n = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
|
|
3485
3485
|
return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${n}`}`, children: [
|
|
3486
3486
|
/* @__PURE__ */ t.jsx(
|
|
3487
3487
|
"p",
|
|
@@ -3500,8 +3500,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3500
3500
|
}
|
|
3501
3501
|
)
|
|
3502
3502
|
] });
|
|
3503
|
-
}, Ys =
|
|
3504
|
-
const n = I("Download", "Download"), r =
|
|
3503
|
+
}, Ys = K(Bs), Vs = ({ ...e }) => {
|
|
3504
|
+
const n = I("Download", "Download"), r = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), o = z(() => {
|
|
3505
3505
|
var l;
|
|
3506
3506
|
const a = e == null ? void 0 : e.ATTACHMENT;
|
|
3507
3507
|
if (a)
|
|
@@ -3512,13 +3512,13 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3512
3512
|
return a;
|
|
3513
3513
|
}
|
|
3514
3514
|
return "";
|
|
3515
|
-
}, [e]), c =
|
|
3515
|
+
}, [e]), c = z(() => {
|
|
3516
3516
|
if (o != null && o.includes(".")) {
|
|
3517
3517
|
const a = o == null ? void 0 : o.split(".");
|
|
3518
3518
|
return `.${a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1]}`;
|
|
3519
3519
|
}
|
|
3520
3520
|
return "";
|
|
3521
|
-
}, [e, o]), s =
|
|
3521
|
+
}, [e, o]), s = z(() => Mt == null ? void 0 : Mt.includes(c), [e, c]), i = () => {
|
|
3522
3522
|
Pt({
|
|
3523
3523
|
downloadURL: e == null ? void 0 : e.ATTACHMENT,
|
|
3524
3524
|
fileName: o,
|
|
@@ -3568,8 +3568,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3568
3568
|
]
|
|
3569
3569
|
}
|
|
3570
3570
|
) });
|
|
3571
|
-
}, zs =
|
|
3572
|
-
const n =
|
|
3571
|
+
}, zs = K(Vs), Gs = ({ ...e }) => {
|
|
3572
|
+
const n = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
|
|
3573
3573
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-info-chat-container", children: [
|
|
3574
3574
|
/* @__PURE__ */ t.jsx(
|
|
3575
3575
|
ht,
|
|
@@ -3581,7 +3581,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3581
3581
|
),
|
|
3582
3582
|
/* @__PURE__ */ t.jsx(ie.Text, { children: e == null ? void 0 : e.MESSAGE })
|
|
3583
3583
|
] });
|
|
3584
|
-
}, qs =
|
|
3584
|
+
}, qs = K(Gs), dr = () => {
|
|
3585
3585
|
const { widgetProps: e } = ue(), n = Je.enc.Hex.parse(
|
|
3586
3586
|
Je.enc.Utf8.parse(e == null ? void 0 : e.keyEncrypt).toString()
|
|
3587
3587
|
), r = {
|
|
@@ -3616,7 +3616,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3616
3616
|
), o = I(
|
|
3617
3617
|
"ThisFAQIsUnavailable",
|
|
3618
3618
|
"This FAQ is unavailable"
|
|
3619
|
-
), { paramsEncrypt: c } = dr(), { widgetProps: s } = ue(), i =
|
|
3619
|
+
), { paramsEncrypt: c } = dr(), { widgetProps: s } = ue(), i = z(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), a = z(() => e == null ? void 0 : e.FAQ_ID, [e]);
|
|
3620
3620
|
return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${i}`}`, children: [
|
|
3621
3621
|
/* @__PURE__ */ t.jsx(
|
|
3622
3622
|
ie.Text,
|
|
@@ -3654,7 +3654,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3654
3654
|
}
|
|
3655
3655
|
)
|
|
3656
3656
|
] });
|
|
3657
|
-
}, Ps =
|
|
3657
|
+
}, Ps = K(Ks), Xs = ({ ...e }) => {
|
|
3658
3658
|
switch (e == null ? void 0 : e.CHAT_TYPE) {
|
|
3659
3659
|
case "info":
|
|
3660
3660
|
return /* @__PURE__ */ t.jsx(qs, { ...e });
|
|
@@ -3665,9 +3665,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3665
3665
|
default:
|
|
3666
3666
|
return null;
|
|
3667
3667
|
}
|
|
3668
|
-
}, Js =
|
|
3668
|
+
}, Js = K(Xs), Zs = () => {
|
|
3669
3669
|
var j;
|
|
3670
|
-
const [e, n] = W([]), r = I("And", "and"), o = I("IsTyping", "Is Typing"), c = I("People", "People"), { employees: s, setTypingOtherEmp: i, objTypingOtherEmp: a } = st(), { ws: l, setGetResponse: g } = We(), { parsedJWT: m } = ue(), p =
|
|
3670
|
+
const [e, n] = W([]), r = I("And", "and"), o = I("IsTyping", "Is Typing"), c = I("People", "People"), { employees: s, setTypingOtherEmp: i, objTypingOtherEmp: a } = st(), { ws: l, setGetResponse: g } = We(), { parsedJWT: m } = ue(), p = z(() => e == null ? void 0 : e.filter((v) => a == null ? void 0 : a[v == null ? void 0 : v.EMP_ID]), [a, e]), h = z(() => {
|
|
3671
3671
|
const v = p == null ? void 0 : p.map((S) => S == null ? void 0 : S.FULL_NAME);
|
|
3672
3672
|
if ((p == null ? void 0 : p.length) > 2) {
|
|
3673
3673
|
const S = v == null ? void 0 : v.filter((w, x) => x <= 1), T = v == null ? void 0 : v.filter((w, x) => x > 1);
|
|
@@ -3727,7 +3727,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3727
3727
|
]
|
|
3728
3728
|
}
|
|
3729
3729
|
);
|
|
3730
|
-
}, Qs =
|
|
3730
|
+
}, Qs = K(Zs), ei = () => {
|
|
3731
3731
|
var s;
|
|
3732
3732
|
const { chats: e } = st(), { widgetProps: n } = ue(), { activeTab: r } = Ue(), o = re(), { xs: c } = Me.useBreakpoint();
|
|
3733
3733
|
return pe(() => {
|
|
@@ -3764,9 +3764,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3764
3764
|
]
|
|
3765
3765
|
}
|
|
3766
3766
|
);
|
|
3767
|
-
}, ti =
|
|
3767
|
+
}, ti = K(ei), ni = () => {
|
|
3768
3768
|
var s, i;
|
|
3769
|
-
const { chats: e, loadingChats: n } = st(), { widgetProps: r } = ue(), { xs: o } = Me.useBreakpoint(), c =
|
|
3769
|
+
const { chats: e, loadingChats: n } = st(), { widgetProps: r } = ue(), { xs: o } = Me.useBreakpoint(), c = z(() => {
|
|
3770
3770
|
var l;
|
|
3771
3771
|
const a = [Ft];
|
|
3772
3772
|
return o && (r != null && r.isSF ? a == null || a.push(
|
|
@@ -3829,7 +3829,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3829
3829
|
children: /* @__PURE__ */ t.jsx(Vn, {})
|
|
3830
3830
|
}
|
|
3831
3831
|
) : /* @__PURE__ */ t.jsx(ti, {});
|
|
3832
|
-
}, ri =
|
|
3832
|
+
}, ri = K(ni), oi = ({ ...e }) => {
|
|
3833
3833
|
const n = re(0);
|
|
3834
3834
|
return /* @__PURE__ */ t.jsxs(
|
|
3835
3835
|
"div",
|
|
@@ -3863,7 +3863,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3863
3863
|
]
|
|
3864
3864
|
}
|
|
3865
3865
|
);
|
|
3866
|
-
}, si =
|
|
3866
|
+
}, si = K(oi), ii = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
|
|
3867
3867
|
var T, w;
|
|
3868
3868
|
const r = xt(), [o, c] = W({}), s = re(null), i = I(
|
|
3869
3869
|
"ImageMustSmallerThan",
|
|
@@ -3923,8 +3923,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3923
3923
|
CHAT_ALIGN: "to",
|
|
3924
3924
|
CHAT_TYPE: "chat"
|
|
3925
3925
|
};
|
|
3926
|
-
m((
|
|
3927
|
-
const F = [...Jt(
|
|
3926
|
+
m((G) => {
|
|
3927
|
+
const F = [...Jt(G), H];
|
|
3928
3928
|
return Et(F);
|
|
3929
3929
|
}), p.current = !0, l({
|
|
3930
3930
|
event: "SEND_MESSAGE",
|
|
@@ -3932,7 +3932,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3932
3932
|
ATTACHMENT: O == null ? void 0 : O.TEMP_PATH,
|
|
3933
3933
|
FAQ_ID: null,
|
|
3934
3934
|
MESSAGE: "",
|
|
3935
|
-
EMPLOYEES: g == null ? void 0 : g.map((
|
|
3935
|
+
EMPLOYEES: g == null ? void 0 : g.map((G) => G == null ? void 0 : G.EMP_ID),
|
|
3936
3936
|
TASK_ID: h
|
|
3937
3937
|
}
|
|
3938
3938
|
}), clearTimeout(s.current), s.current = setTimeout(() => {
|
|
@@ -3968,7 +3968,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3968
3968
|
)
|
|
3969
3969
|
}
|
|
3970
3970
|
);
|
|
3971
|
-
}, ai =
|
|
3971
|
+
}, ai = K(ii), ci = (e) => {
|
|
3972
3972
|
var o;
|
|
3973
3973
|
const n = re(null), r = re(null);
|
|
3974
3974
|
return r != null && r.current && ((o = r.current) == null || o.update(e)), pe(() => {
|
|
@@ -3979,7 +3979,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3979
3979
|
};
|
|
3980
3980
|
}, []), ft.createElement("div", { ref: n });
|
|
3981
3981
|
}, li = ({ refInput: e }) => {
|
|
3982
|
-
const { xs: n } = Me.useBreakpoint(), r =
|
|
3982
|
+
const { xs: n } = Me.useBreakpoint(), r = z(() => n ? "click" : "hover", [n]), o = () => {
|
|
3983
3983
|
var h;
|
|
3984
3984
|
const s = (h = e == null ? void 0 : e.current) == null ? void 0 : h.textarea;
|
|
3985
3985
|
if (!s)
|
|
@@ -4017,11 +4017,11 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4017
4017
|
children: /* @__PURE__ */ t.jsx(le, { icon: /* @__PURE__ */ t.jsx(xe, { type: "smile" }), style: { border: "none" } })
|
|
4018
4018
|
}
|
|
4019
4019
|
);
|
|
4020
|
-
}, ui =
|
|
4021
|
-
const [e, n] = W(0), [r, o] = W(!1), c = re(null), s = re(null), i = re(!1), a = re(null), { onSendMsg: l, setGetResponse: g, isGetResponse: m } = We(), { ticketId: p } = He(), { isActiveTabVA: h } = Ue(), { employees: y, setChats: j, isFromSelf: v, detailTicket: S } = st(), T =
|
|
4020
|
+
}, ui = K(li), di = () => {
|
|
4021
|
+
const [e, n] = W(0), [r, o] = W(!1), c = re(null), s = re(null), i = re(!1), a = re(null), { onSendMsg: l, setGetResponse: g, isGetResponse: m } = We(), { ticketId: p } = He(), { isActiveTabVA: h } = Ue(), { employees: y, setChats: j, isFromSelf: v, detailTicket: S } = st(), T = z(() => r || !m, [r, m]), w = z(() => {
|
|
4022
4022
|
var b;
|
|
4023
4023
|
return ((b = S == null ? void 0 : S.STATUS) == null ? void 0 : b.toString().toLowerCase()) === "closed";
|
|
4024
|
-
}, [S == null ? void 0 : S.STATUS]), x =
|
|
4024
|
+
}, [S == null ? void 0 : S.STATUS]), x = z(() => y == null ? void 0 : y.map((b) => ({
|
|
4025
4025
|
...b,
|
|
4026
4026
|
label: /* @__PURE__ */ t.jsx(
|
|
4027
4027
|
Gt,
|
|
@@ -4140,7 +4140,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4140
4140
|
]
|
|
4141
4141
|
}
|
|
4142
4142
|
);
|
|
4143
|
-
}, fi =
|
|
4143
|
+
}, fi = K(di), gi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: c }) => {
|
|
4144
4144
|
var s;
|
|
4145
4145
|
return o ? /* @__PURE__ */ t.jsx(
|
|
4146
4146
|
"div",
|
|
@@ -4163,7 +4163,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4163
4163
|
] })
|
|
4164
4164
|
}
|
|
4165
4165
|
) : null;
|
|
4166
|
-
}, fr =
|
|
4166
|
+
}, fr = K(gi), pi = () => {
|
|
4167
4167
|
const e = I(
|
|
4168
4168
|
"ForMoreInformationOfThisTicket",
|
|
4169
4169
|
"For more information of this ticket"
|
|
@@ -4194,16 +4194,16 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4194
4194
|
}
|
|
4195
4195
|
}
|
|
4196
4196
|
);
|
|
4197
|
-
}, hi =
|
|
4197
|
+
}, hi = K(pi), xi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(lr, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Us, { children: [
|
|
4198
4198
|
/* @__PURE__ */ t.jsx(Ws, { onClose: e }),
|
|
4199
4199
|
/* @__PURE__ */ t.jsx(hi, {}),
|
|
4200
4200
|
/* @__PURE__ */ t.jsx(ri, {}),
|
|
4201
4201
|
/* @__PURE__ */ t.jsx(fi, {})
|
|
4202
|
-
] }) }), mi =
|
|
4202
|
+
] }) }), mi = K(xi), yi = () => {
|
|
4203
4203
|
const e = I("AdvanceFilter", "Advance Filter"), n = I("Subject", "Subject"), r = I(
|
|
4204
4204
|
"TicketCategory",
|
|
4205
4205
|
"Ticket Category"
|
|
4206
|
-
), o = I("TicketStatus", "Ticket Status"), c = I("CreatedDate", "Created Date"), s = I("New", "New"), i = I("Open", "Open"), a = I("Reopen", "Reopen"), l = I("InProgress", "In Progress"), g = I("Responded", "Responded"), m = I("Fixed", "Fixed"), p = I("Done", "Done"), h = I("Closed", "Closed"), y = I("HDCancelled", "Cancelled"), j = I("Clear", "Clear"), v = I("Filter", "Filter"), S = xt(), [T] = Se.useForm(), { openFilter: w, setOpenFilter: x, getListTicket: E, setCountFilters: f } = He(), [b, u] = W([]), C =
|
|
4206
|
+
), o = I("TicketStatus", "Ticket Status"), c = I("CreatedDate", "Created Date"), s = I("New", "New"), i = I("Open", "Open"), a = I("Reopen", "Reopen"), l = I("InProgress", "In Progress"), g = I("Responded", "Responded"), m = I("Fixed", "Fixed"), p = I("Done", "Done"), h = I("Closed", "Closed"), y = I("HDCancelled", "Cancelled"), j = I("Clear", "Clear"), v = I("Filter", "Filter"), S = xt(), [T] = Se.useForm(), { openFilter: w, setOpenFilter: x, getListTicket: E, setCountFilters: f } = He(), [b, u] = W([]), C = z(() => {
|
|
4207
4207
|
const D = `${s}/${i}/${a}`, _ = `${l}/${g}`, O = `${m}/${p}`;
|
|
4208
4208
|
return [
|
|
4209
4209
|
{ value: 3, label: D },
|
|
@@ -4223,11 +4223,11 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4223
4223
|
SORT: { FIELD: "ORDER_NO", ORDER: "ASC" }
|
|
4224
4224
|
}
|
|
4225
4225
|
})) == null || D.then((_) => {
|
|
4226
|
-
var O, H,
|
|
4226
|
+
var O, H, G;
|
|
4227
4227
|
if ((O = _ == null ? void 0 : _.data) != null && O.DATA) {
|
|
4228
|
-
const
|
|
4228
|
+
const q = (G = (H = _ == null ? void 0 : _.data) == null ? void 0 : H.DATA) == null ? void 0 : G.LIST;
|
|
4229
4229
|
u(
|
|
4230
|
-
|
|
4230
|
+
q == null ? void 0 : q.map((F) => ({
|
|
4231
4231
|
label: F == null ? void 0 : F.CATEGORY_NAME,
|
|
4232
4232
|
value: F == null ? void 0 : F.CATEGORY_CODE
|
|
4233
4233
|
}))
|
|
@@ -4296,7 +4296,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4296
4296
|
]
|
|
4297
4297
|
}
|
|
4298
4298
|
);
|
|
4299
|
-
}, vi =
|
|
4299
|
+
}, vi = K(yi), bi = () => {
|
|
4300
4300
|
const e = I(
|
|
4301
4301
|
"ReconnectManually",
|
|
4302
4302
|
"Reconnect Manually"
|
|
@@ -4308,7 +4308,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4308
4308
|
retryCountState: s,
|
|
4309
4309
|
setRetryCountState: i,
|
|
4310
4310
|
retryCountRef: a
|
|
4311
|
-
} = We(), l =
|
|
4311
|
+
} = We(), l = z(() => s === ut ? `${n} ${r}` : `${n} ${o}`, [s]);
|
|
4312
4312
|
return /* @__PURE__ */ t.jsx(
|
|
4313
4313
|
"div",
|
|
4314
4314
|
{
|
|
@@ -4350,7 +4350,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4350
4350
|
)
|
|
4351
4351
|
}
|
|
4352
4352
|
);
|
|
4353
|
-
}, Ci =
|
|
4353
|
+
}, Ci = K(bi), Ti = () => {
|
|
4354
4354
|
const { setTicketId: e, ticketId: n, openFilter: r } = He(), { onSendMsg: o, setGetResponse: c } = We(), { showReadyWSHD: s } = ue();
|
|
4355
4355
|
return s ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4356
4356
|
/* @__PURE__ */ t.jsx(
|
|
@@ -4370,7 +4370,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4370
4370
|
/* @__PURE__ */ t.jsx("div", { style: { display: !n && !r ? "block" : "none" }, children: /* @__PURE__ */ t.jsx(Is, {}) }),
|
|
4371
4371
|
/* @__PURE__ */ t.jsx(vi, {})
|
|
4372
4372
|
] }) : /* @__PURE__ */ t.jsx(Ci, {});
|
|
4373
|
-
}, Ei =
|
|
4373
|
+
}, Ei = K(Ti);
|
|
4374
4374
|
var ct = { exports: {} }, $t = {}, yt = { exports: {} }, vt = { exports: {} }, ae = {};
|
|
4375
4375
|
/** @license React v16.13.1
|
|
4376
4376
|
* react-is.production.min.js
|
|
@@ -4495,7 +4495,7 @@ function wi() {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
var f = l, b = g, u = a, C = i, A = n, N = m, D = o, _ = j, O = y, H = r,
|
|
4498
|
+
var f = l, b = g, u = a, C = i, A = n, N = m, D = o, _ = j, O = y, H = r, G = s, q = c, F = p, se = !1;
|
|
4499
4499
|
function te(L) {
|
|
4500
4500
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(L) || E(L) === l;
|
|
4501
4501
|
}
|
|
@@ -4505,22 +4505,22 @@ function wi() {
|
|
|
4505
4505
|
function M(L) {
|
|
4506
4506
|
return E(L) === a;
|
|
4507
4507
|
}
|
|
4508
|
-
function
|
|
4508
|
+
function X(L) {
|
|
4509
4509
|
return E(L) === i;
|
|
4510
4510
|
}
|
|
4511
4511
|
function B(L) {
|
|
4512
4512
|
return typeof L == "object" && L !== null && L.$$typeof === n;
|
|
4513
4513
|
}
|
|
4514
|
-
function
|
|
4514
|
+
function Y(L) {
|
|
4515
4515
|
return E(L) === m;
|
|
4516
4516
|
}
|
|
4517
4517
|
function Q(L) {
|
|
4518
4518
|
return E(L) === o;
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function P(L) {
|
|
4521
4521
|
return E(L) === j;
|
|
4522
4522
|
}
|
|
4523
|
-
function
|
|
4523
|
+
function J(L) {
|
|
4524
4524
|
return E(L) === y;
|
|
4525
4525
|
}
|
|
4526
4526
|
function ee(L) {
|
|
@@ -4529,13 +4529,13 @@ function wi() {
|
|
|
4529
4529
|
function U(L) {
|
|
4530
4530
|
return E(L) === s;
|
|
4531
4531
|
}
|
|
4532
|
-
function
|
|
4532
|
+
function V(L) {
|
|
4533
4533
|
return E(L) === c;
|
|
4534
4534
|
}
|
|
4535
4535
|
function de(L) {
|
|
4536
4536
|
return E(L) === p;
|
|
4537
4537
|
}
|
|
4538
|
-
ce.AsyncMode = f, ce.ConcurrentMode = b, ce.ContextConsumer = u, ce.ContextProvider = C, ce.Element = A, ce.ForwardRef = N, ce.Fragment = D, ce.Lazy = _, ce.Memo = O, ce.Portal = H, ce.Profiler =
|
|
4538
|
+
ce.AsyncMode = f, ce.ConcurrentMode = b, ce.ContextConsumer = u, ce.ContextProvider = C, ce.Element = A, ce.ForwardRef = N, ce.Fragment = D, ce.Lazy = _, ce.Memo = O, ce.Portal = H, ce.Profiler = G, ce.StrictMode = q, ce.Suspense = F, ce.isAsyncMode = te, ce.isConcurrentMode = k, ce.isContextConsumer = M, ce.isContextProvider = X, ce.isElement = B, ce.isForwardRef = Y, ce.isFragment = Q, ce.isLazy = P, ce.isMemo = J, ce.isPortal = ee, ce.isProfiler = U, ce.isStrictMode = V, ce.isSuspense = de, ce.isValidElementType = x, ce.typeOf = E;
|
|
4539
4539
|
}()), ce;
|
|
4540
4540
|
}
|
|
4541
4541
|
var _n;
|
|
@@ -4656,34 +4656,34 @@ function ji() {
|
|
|
4656
4656
|
v.prototype = Error.prototype;
|
|
4657
4657
|
function S(k) {
|
|
4658
4658
|
if (process.env.NODE_ENV !== "production")
|
|
4659
|
-
var M = {},
|
|
4660
|
-
function B(Q,
|
|
4661
|
-
if (ee = ee || h,
|
|
4659
|
+
var M = {}, X = 0;
|
|
4660
|
+
function B(Q, P, J, ee, U, V, de) {
|
|
4661
|
+
if (ee = ee || h, V = V || J, de !== r) {
|
|
4662
4662
|
if (l) {
|
|
4663
4663
|
var L = new Error(
|
|
4664
4664
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
4665
4665
|
);
|
|
4666
4666
|
throw L.name = "Invariant Violation", L;
|
|
4667
4667
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4668
|
-
var be = ee + ":" +
|
|
4668
|
+
var be = ee + ":" + J;
|
|
4669
4669
|
!M[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4670
|
-
|
|
4671
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
4672
|
-
), M[be] = !0,
|
|
4670
|
+
X < 3 && (s(
|
|
4671
|
+
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
4672
|
+
), M[be] = !0, X++);
|
|
4673
4673
|
}
|
|
4674
4674
|
}
|
|
4675
|
-
return
|
|
4675
|
+
return P[J] == null ? Q ? P[J] === null ? new v("The " + U + " `" + V + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new v("The " + U + " `" + V + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : k(P, J, ee, U, V);
|
|
4676
4676
|
}
|
|
4677
|
-
var
|
|
4678
|
-
return
|
|
4677
|
+
var Y = B.bind(null, !1);
|
|
4678
|
+
return Y.isRequired = B.bind(null, !0), Y;
|
|
4679
4679
|
}
|
|
4680
4680
|
function T(k) {
|
|
4681
|
-
function M(
|
|
4682
|
-
var ee =
|
|
4681
|
+
function M(X, B, Y, Q, P, J) {
|
|
4682
|
+
var ee = X[B], U = q(ee);
|
|
4683
4683
|
if (U !== k) {
|
|
4684
|
-
var
|
|
4684
|
+
var V = F(ee);
|
|
4685
4685
|
return new v(
|
|
4686
|
-
"Invalid " + Q + " `" +
|
|
4686
|
+
"Invalid " + Q + " `" + P + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("`" + k + "`."),
|
|
4687
4687
|
{ expectedType: k }
|
|
4688
4688
|
);
|
|
4689
4689
|
}
|
|
@@ -4695,50 +4695,50 @@ function ji() {
|
|
|
4695
4695
|
return S(i);
|
|
4696
4696
|
}
|
|
4697
4697
|
function x(k) {
|
|
4698
|
-
function M(
|
|
4698
|
+
function M(X, B, Y, Q, P) {
|
|
4699
4699
|
if (typeof k != "function")
|
|
4700
|
-
return new v("Property `" +
|
|
4701
|
-
var
|
|
4702
|
-
if (!Array.isArray(
|
|
4703
|
-
var ee =
|
|
4704
|
-
return new v("Invalid " + Q + " `" +
|
|
4700
|
+
return new v("Property `" + P + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
4701
|
+
var J = X[B];
|
|
4702
|
+
if (!Array.isArray(J)) {
|
|
4703
|
+
var ee = q(J);
|
|
4704
|
+
return new v("Invalid " + Q + " `" + P + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected an array."));
|
|
4705
4705
|
}
|
|
4706
|
-
for (var U = 0; U <
|
|
4707
|
-
var
|
|
4708
|
-
if (
|
|
4709
|
-
return
|
|
4706
|
+
for (var U = 0; U < J.length; U++) {
|
|
4707
|
+
var V = k(J, U, Y, Q, P + "[" + U + "]", r);
|
|
4708
|
+
if (V instanceof Error)
|
|
4709
|
+
return V;
|
|
4710
4710
|
}
|
|
4711
4711
|
return null;
|
|
4712
4712
|
}
|
|
4713
4713
|
return S(M);
|
|
4714
4714
|
}
|
|
4715
4715
|
function E() {
|
|
4716
|
-
function k(M,
|
|
4717
|
-
var
|
|
4718
|
-
if (!a(
|
|
4719
|
-
var
|
|
4720
|
-
return new v("Invalid " +
|
|
4716
|
+
function k(M, X, B, Y, Q) {
|
|
4717
|
+
var P = M[X];
|
|
4718
|
+
if (!a(P)) {
|
|
4719
|
+
var J = q(P);
|
|
4720
|
+
return new v("Invalid " + Y + " `" + Q + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
4721
4721
|
}
|
|
4722
4722
|
return null;
|
|
4723
4723
|
}
|
|
4724
4724
|
return S(k);
|
|
4725
4725
|
}
|
|
4726
4726
|
function f() {
|
|
4727
|
-
function k(M,
|
|
4728
|
-
var
|
|
4729
|
-
if (!e.isValidElementType(
|
|
4730
|
-
var
|
|
4731
|
-
return new v("Invalid " +
|
|
4727
|
+
function k(M, X, B, Y, Q) {
|
|
4728
|
+
var P = M[X];
|
|
4729
|
+
if (!e.isValidElementType(P)) {
|
|
4730
|
+
var J = q(P);
|
|
4731
|
+
return new v("Invalid " + Y + " `" + Q + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
4732
4732
|
}
|
|
4733
4733
|
return null;
|
|
4734
4734
|
}
|
|
4735
4735
|
return S(k);
|
|
4736
4736
|
}
|
|
4737
4737
|
function b(k) {
|
|
4738
|
-
function M(
|
|
4739
|
-
if (!(
|
|
4740
|
-
var
|
|
4741
|
-
return new v("Invalid " + Q + " `" +
|
|
4738
|
+
function M(X, B, Y, Q, P) {
|
|
4739
|
+
if (!(X[B] instanceof k)) {
|
|
4740
|
+
var J = k.name || h, ee = te(X[B]);
|
|
4741
|
+
return new v("Invalid " + Q + " `" + P + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected ") + ("instance of `" + J + "`."));
|
|
4742
4742
|
}
|
|
4743
4743
|
return null;
|
|
4744
4744
|
}
|
|
@@ -4749,30 +4749,30 @@ function ji() {
|
|
|
4749
4749
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
4750
4750
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
4751
4751
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
4752
|
-
function M(
|
|
4753
|
-
for (var
|
|
4754
|
-
if (j(
|
|
4752
|
+
function M(X, B, Y, Q, P) {
|
|
4753
|
+
for (var J = X[B], ee = 0; ee < k.length; ee++)
|
|
4754
|
+
if (j(J, k[ee]))
|
|
4755
4755
|
return null;
|
|
4756
4756
|
var U = JSON.stringify(k, function(de, L) {
|
|
4757
4757
|
var be = F(L);
|
|
4758
4758
|
return be === "symbol" ? String(L) : L;
|
|
4759
4759
|
});
|
|
4760
|
-
return new v("Invalid " + Q + " `" +
|
|
4760
|
+
return new v("Invalid " + Q + " `" + P + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + U + "."));
|
|
4761
4761
|
}
|
|
4762
4762
|
return S(M);
|
|
4763
4763
|
}
|
|
4764
4764
|
function C(k) {
|
|
4765
|
-
function M(
|
|
4765
|
+
function M(X, B, Y, Q, P) {
|
|
4766
4766
|
if (typeof k != "function")
|
|
4767
|
-
return new v("Property `" +
|
|
4768
|
-
var
|
|
4767
|
+
return new v("Property `" + P + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
4768
|
+
var J = X[B], ee = q(J);
|
|
4769
4769
|
if (ee !== "object")
|
|
4770
|
-
return new v("Invalid " + Q + " `" +
|
|
4771
|
-
for (var U in
|
|
4772
|
-
if (o(
|
|
4773
|
-
var
|
|
4774
|
-
if (
|
|
4775
|
-
return
|
|
4770
|
+
return new v("Invalid " + Q + " `" + P + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected an object."));
|
|
4771
|
+
for (var U in J)
|
|
4772
|
+
if (o(J, U)) {
|
|
4773
|
+
var V = k(J, U, Y, Q, P + "." + U, r);
|
|
4774
|
+
if (V instanceof Error)
|
|
4775
|
+
return V;
|
|
4776
4776
|
}
|
|
4777
4777
|
return null;
|
|
4778
4778
|
}
|
|
@@ -4782,45 +4782,45 @@ function ji() {
|
|
|
4782
4782
|
if (!Array.isArray(k))
|
|
4783
4783
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
4784
4784
|
for (var M = 0; M < k.length; M++) {
|
|
4785
|
-
var
|
|
4786
|
-
if (typeof
|
|
4785
|
+
var X = k[M];
|
|
4786
|
+
if (typeof X != "function")
|
|
4787
4787
|
return s(
|
|
4788
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(
|
|
4788
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(X) + " at index " + M + "."
|
|
4789
4789
|
), i;
|
|
4790
4790
|
}
|
|
4791
|
-
function B(
|
|
4792
|
-
for (var U = [],
|
|
4793
|
-
var de = k[
|
|
4791
|
+
function B(Y, Q, P, J, ee) {
|
|
4792
|
+
for (var U = [], V = 0; V < k.length; V++) {
|
|
4793
|
+
var de = k[V], L = de(Y, Q, P, J, ee, r);
|
|
4794
4794
|
if (L == null)
|
|
4795
4795
|
return null;
|
|
4796
4796
|
L.data && o(L.data, "expectedType") && U.push(L.data.expectedType);
|
|
4797
4797
|
}
|
|
4798
4798
|
var be = U.length > 0 ? ", expected one of type [" + U.join(", ") + "]" : "";
|
|
4799
|
-
return new v("Invalid " +
|
|
4799
|
+
return new v("Invalid " + J + " `" + ee + "` supplied to " + ("`" + P + "`" + be + "."));
|
|
4800
4800
|
}
|
|
4801
4801
|
return S(B);
|
|
4802
4802
|
}
|
|
4803
4803
|
function N() {
|
|
4804
|
-
function k(M,
|
|
4805
|
-
return H(M[
|
|
4804
|
+
function k(M, X, B, Y, Q) {
|
|
4805
|
+
return H(M[X]) ? null : new v("Invalid " + Y + " `" + Q + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
4806
4806
|
}
|
|
4807
4807
|
return S(k);
|
|
4808
4808
|
}
|
|
4809
|
-
function D(k, M,
|
|
4809
|
+
function D(k, M, X, B, Y) {
|
|
4810
4810
|
return new v(
|
|
4811
|
-
(k || "React class") + ": " + M + " type `" +
|
|
4811
|
+
(k || "React class") + ": " + M + " type `" + X + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
|
|
4812
4812
|
);
|
|
4813
4813
|
}
|
|
4814
4814
|
function _(k) {
|
|
4815
|
-
function M(
|
|
4816
|
-
var
|
|
4815
|
+
function M(X, B, Y, Q, P) {
|
|
4816
|
+
var J = X[B], ee = q(J);
|
|
4817
4817
|
if (ee !== "object")
|
|
4818
|
-
return new v("Invalid " + Q + " `" +
|
|
4818
|
+
return new v("Invalid " + Q + " `" + P + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
4819
4819
|
for (var U in k) {
|
|
4820
|
-
var
|
|
4821
|
-
if (typeof
|
|
4822
|
-
return D(
|
|
4823
|
-
var de =
|
|
4820
|
+
var V = k[U];
|
|
4821
|
+
if (typeof V != "function")
|
|
4822
|
+
return D(Y, Q, P, U, F(V));
|
|
4823
|
+
var de = V(J, U, Y, Q, P + "." + U, r);
|
|
4824
4824
|
if (de)
|
|
4825
4825
|
return de;
|
|
4826
4826
|
}
|
|
@@ -4829,21 +4829,21 @@ function ji() {
|
|
|
4829
4829
|
return S(M);
|
|
4830
4830
|
}
|
|
4831
4831
|
function O(k) {
|
|
4832
|
-
function M(
|
|
4833
|
-
var
|
|
4832
|
+
function M(X, B, Y, Q, P) {
|
|
4833
|
+
var J = X[B], ee = q(J);
|
|
4834
4834
|
if (ee !== "object")
|
|
4835
|
-
return new v("Invalid " + Q + " `" +
|
|
4836
|
-
var U = n({},
|
|
4837
|
-
for (var
|
|
4838
|
-
var de = k[
|
|
4839
|
-
if (o(k,
|
|
4840
|
-
return D(
|
|
4835
|
+
return new v("Invalid " + Q + " `" + P + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
4836
|
+
var U = n({}, X[B], k);
|
|
4837
|
+
for (var V in U) {
|
|
4838
|
+
var de = k[V];
|
|
4839
|
+
if (o(k, V) && typeof de != "function")
|
|
4840
|
+
return D(Y, Q, P, V, F(de));
|
|
4841
4841
|
if (!de)
|
|
4842
4842
|
return new v(
|
|
4843
|
-
"Invalid " + Q + " `" +
|
|
4843
|
+
"Invalid " + Q + " `" + P + "` key `" + V + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(X[B], null, " ") + `
|
|
4844
4844
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
4845
4845
|
);
|
|
4846
|
-
var L = de(
|
|
4846
|
+
var L = de(J, V, Y, Q, P + "." + V, r);
|
|
4847
4847
|
if (L)
|
|
4848
4848
|
return L;
|
|
4849
4849
|
}
|
|
@@ -4866,15 +4866,15 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4866
4866
|
return !0;
|
|
4867
4867
|
var M = p(k);
|
|
4868
4868
|
if (M) {
|
|
4869
|
-
var
|
|
4869
|
+
var X = M.call(k), B;
|
|
4870
4870
|
if (M !== k.entries) {
|
|
4871
|
-
for (; !(B =
|
|
4871
|
+
for (; !(B = X.next()).done; )
|
|
4872
4872
|
if (!H(B.value))
|
|
4873
4873
|
return !1;
|
|
4874
4874
|
} else
|
|
4875
|
-
for (; !(B =
|
|
4876
|
-
var
|
|
4877
|
-
if (
|
|
4875
|
+
for (; !(B = X.next()).done; ) {
|
|
4876
|
+
var Y = B.value;
|
|
4877
|
+
if (Y && !H(Y[1]))
|
|
4878
4878
|
return !1;
|
|
4879
4879
|
}
|
|
4880
4880
|
} else
|
|
@@ -4884,17 +4884,17 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4884
4884
|
return !1;
|
|
4885
4885
|
}
|
|
4886
4886
|
}
|
|
4887
|
-
function
|
|
4887
|
+
function G(k, M) {
|
|
4888
4888
|
return k === "symbol" ? !0 : M ? M["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && M instanceof Symbol : !1;
|
|
4889
4889
|
}
|
|
4890
|
-
function
|
|
4890
|
+
function q(k) {
|
|
4891
4891
|
var M = typeof k;
|
|
4892
|
-
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" :
|
|
4892
|
+
return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : G(M, k) ? "symbol" : M;
|
|
4893
4893
|
}
|
|
4894
4894
|
function F(k) {
|
|
4895
4895
|
if (typeof k > "u" || k === null)
|
|
4896
4896
|
return "" + k;
|
|
4897
|
-
var M =
|
|
4897
|
+
var M = q(k);
|
|
4898
4898
|
if (M === "object") {
|
|
4899
4899
|
if (k instanceof Date)
|
|
4900
4900
|
return "date";
|
|
@@ -5067,14 +5067,14 @@ function nn() {
|
|
|
5067
5067
|
if (typeof WeakMap == "function") var A = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
|
|
5068
5068
|
return (r = function(D, _) {
|
|
5069
5069
|
if (!_ && D && D.__esModule) return D;
|
|
5070
|
-
var O, H,
|
|
5071
|
-
if (D === null || typeof D != "object" && typeof D != "function") return
|
|
5070
|
+
var O, H, G = { __proto__: null, default: D };
|
|
5071
|
+
if (D === null || typeof D != "object" && typeof D != "function") return G;
|
|
5072
5072
|
if (O = _ ? N : A) {
|
|
5073
5073
|
if (O.has(D)) return O.get(D);
|
|
5074
|
-
O.set(D,
|
|
5074
|
+
O.set(D, G);
|
|
5075
5075
|
}
|
|
5076
|
-
for (const
|
|
5077
|
-
return
|
|
5076
|
+
for (const q in D) q !== "default" && {}.hasOwnProperty.call(D, q) && ((H = (O = Object.defineProperty) && Object.getOwnPropertyDescriptor(D, q)) && (H.get || H.set) ? O(G, q, H) : G[q] = D[q]);
|
|
5077
|
+
return G;
|
|
5078
5078
|
})(u, C);
|
|
5079
5079
|
}
|
|
5080
5080
|
let o = "";
|
|
@@ -5770,11 +5770,11 @@ function Oi() {
|
|
|
5770
5770
|
..._
|
|
5771
5771
|
} = this.props;
|
|
5772
5772
|
let O = {}, H = null;
|
|
5773
|
-
const
|
|
5773
|
+
const q = !!!A || this.state.dragging, F = A || f, se = {
|
|
5774
5774
|
// Set left if horizontal drag is enabled
|
|
5775
|
-
x: (0, i.canDragX)(this) &&
|
|
5775
|
+
x: (0, i.canDragX)(this) && q ? this.state.x : F.x,
|
|
5776
5776
|
// Set top if vertical drag is enabled
|
|
5777
|
-
y: (0, i.canDragY)(this) &&
|
|
5777
|
+
y: (0, i.canDragY)(this) && q ? this.state.y : F.y
|
|
5778
5778
|
};
|
|
5779
5779
|
this.state.isElementSVG ? H = (0, s.createSVGTransform)(se, N) : O = (0, s.createCSSTransform)(se, N);
|
|
5780
5780
|
const te = (0, c.clsx)(E.props.className || "", b, {
|
|
@@ -5950,9 +5950,9 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
5950
5950
|
maxY: A - 200
|
|
5951
5951
|
});
|
|
5952
5952
|
}, u = () => {
|
|
5953
|
-
clearTimeout(m.current), clearTimeout(p.current), s && (h.current.style.right = "0px"), s || (h.current.style.right = "-25px", m.current = setTimeout(() => {
|
|
5953
|
+
clearTimeout(m.current), clearTimeout(p.current), h.current && (s && (h.current.style.right = "0px"), s || (h.current.style.right = "-25px", m.current = setTimeout(() => {
|
|
5954
5954
|
i(!0), h.current.style.right = "0px";
|
|
5955
|
-
}, 300));
|
|
5955
|
+
}, 300)));
|
|
5956
5956
|
}, C = () => {
|
|
5957
5957
|
clearTimeout(p.current), s && (h.current.style.right = "-15px", p.current = setTimeout(() => {
|
|
5958
5958
|
i(!1), h.current.style.right = "-28px";
|
|
@@ -6023,7 +6023,7 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
6023
6023
|
)
|
|
6024
6024
|
}
|
|
6025
6025
|
);
|
|
6026
|
-
}, $i =
|
|
6026
|
+
}, $i = K(Ii), Ui = () => {
|
|
6027
6027
|
const e = I("NotConnected", "Not Connected"), n = I(
|
|
6028
6028
|
"CannotAutoReconnect",
|
|
6029
6029
|
"Cannot auto reconnect"
|
|
@@ -6058,10 +6058,10 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
6058
6058
|
open: !s && o
|
|
6059
6059
|
}
|
|
6060
6060
|
);
|
|
6061
|
-
}, Hi =
|
|
6061
|
+
}, Hi = K(
|
|
6062
6062
|
Ui
|
|
6063
6063
|
), Wi = () => {
|
|
6064
|
-
const { xs: e } = Me.useBreakpoint(), [n, r] = W(!1), { isOpenWidget: o, widgetProps: c } = ue(), { isActiveTabVA: s } = Ue(), i = re(null), a =
|
|
6064
|
+
const { xs: e } = Me.useBreakpoint(), [n, r] = W(!1), { isOpenWidget: o, widgetProps: c } = ue(), { isActiveTabVA: s } = Ue(), i = re(null), a = z(() => {
|
|
6065
6065
|
var m;
|
|
6066
6066
|
const g = [Nt];
|
|
6067
6067
|
return e && (c != null && c.isSF ? g == null || g.push(`${Nt}-sf-mobile`) : g == null || g.push(`${Nt}-mobile`)), (m = g == null ? void 0 : g.filter(Boolean)) == null ? void 0 : m.join(" ");
|
|
@@ -6085,14 +6085,14 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
6085
6085
|
/* @__PURE__ */ t.jsx("div", { style: { display: s ? "none" : "block" }, children: /* @__PURE__ */ t.jsx("div", { className: l(ho), children: /* @__PURE__ */ t.jsx(Ns, { children: /* @__PURE__ */ t.jsx(Os, { children: /* @__PURE__ */ t.jsx(Ei, {}) }) }) }) }),
|
|
6086
6086
|
/* @__PURE__ */ t.jsx(Hi, {})
|
|
6087
6087
|
] }) : /* @__PURE__ */ t.jsx($i, {});
|
|
6088
|
-
}, Bi =
|
|
6088
|
+
}, Bi = K(Wi), Yi = ({ items: e, ...n }) => nt != null && nt.startsWith("5") || rt != null && rt.startsWith("18") ? /* @__PURE__ */ t.jsx(Dt, { ...n, items: e }) : /* @__PURE__ */ t.jsx(Dt, { ...n, children: e == null ? void 0 : e.map(({ ...r }) => /* @__PURE__ */ zt(
|
|
6089
6089
|
Dt.TabPane,
|
|
6090
6090
|
{
|
|
6091
6091
|
...r,
|
|
6092
6092
|
key: r == null ? void 0 : r.key,
|
|
6093
6093
|
tab: r == null ? void 0 : r.label
|
|
6094
6094
|
}
|
|
6095
|
-
)) }), Vi =
|
|
6095
|
+
)) }), Vi = K(Yi), zi = () => {
|
|
6096
6096
|
const { isOpenWidget: e, isUserInputHide: n } = ue(), { setActiveTab: r, activeTab: o } = Ue(), c = I(
|
|
6097
6097
|
"VirtualAssistant",
|
|
6098
6098
|
"Virtual Assistant"
|
|
@@ -6132,8 +6132,8 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
6132
6132
|
)
|
|
6133
6133
|
}
|
|
6134
6134
|
) : null;
|
|
6135
|
-
}, Gi =
|
|
6136
|
-
const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: c } = ue(), { xs: s } = Me.useBreakpoint(), i =
|
|
6135
|
+
}, Gi = K(zi), qi = () => {
|
|
6136
|
+
const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: c } = ue(), { xs: s } = Me.useBreakpoint(), i = z(() => {
|
|
6137
6137
|
const { title: a = "", modelName: l = "" } = c;
|
|
6138
6138
|
return l ? `${a} (${l})` : a;
|
|
6139
6139
|
}, [c == null ? void 0 : c.title, c == null ? void 0 : c.modelName]);
|
|
@@ -6178,8 +6178,8 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
6178
6178
|
]
|
|
6179
6179
|
}
|
|
6180
6180
|
) : null;
|
|
6181
|
-
}, Ki =
|
|
6182
|
-
const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = ue(), { xs: c } = Me.useBreakpoint(), s =
|
|
6181
|
+
}, Ki = K(qi), Pi = () => {
|
|
6182
|
+
const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = ue(), { xs: c } = Me.useBreakpoint(), s = z(() => {
|
|
6183
6183
|
var a;
|
|
6184
6184
|
const i = [
|
|
6185
6185
|
c && n && "w-container-widget-mobile",
|
|
@@ -6206,7 +6206,7 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
6206
6206
|
]
|
|
6207
6207
|
}
|
|
6208
6208
|
);
|
|
6209
|
-
}, Xi =
|
|
6209
|
+
}, Xi = K(Pi), da = ({
|
|
6210
6210
|
getStartedPayload: e,
|
|
6211
6211
|
socketURL: n,
|
|
6212
6212
|
socketPath: r,
|