widget-chatbot 2.0.8-alpha.1 → 2.0.8-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/widget-chatbot.es.js +706 -690
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import gt, { version as Mr, createContext as ze, useContext as Ge, useState as
|
|
1
|
+
import gt, { version as Mr, createContext as ze, useContext as Ge, useState as B, useRef as ne, useMemo as G, useEffect as fe, memo as K, Fragment as Et, Children as Nr, isValidElement as Fr, cloneElement as Ir, createElement as Gt, useCallback as $r } from "react";
|
|
2
2
|
import st from "axios";
|
|
3
3
|
import je from "dayjs";
|
|
4
|
-
import { version as Ur, Modal as gn, Collapse as pn, Typography as
|
|
4
|
+
import { version as Ur, Modal as gn, Collapse as pn, Typography as ae, Button as ue, Form as we, notification as Se, Radio as Hr, Divider as Wr, Input as pt, Image as Br, Skeleton as De, Avatar as Yn, Upload as Vn, Tooltip as Ye, Spin as Yr, Tag as Vr, Badge as zr, Grid as Me, Empty as zn, Popover as qt, Mentions as hn, Select as xn, DatePicker as Gr, Result as qr, Tabs as Ot } from "antd";
|
|
5
5
|
import { io as Kr } from "socket.io-client";
|
|
6
6
|
import Pr from "react-markdown";
|
|
7
7
|
import Xr from "remark-gfm";
|
|
@@ -123,17 +123,17 @@ function ro() {
|
|
|
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, H = new Array(R > 1 ? R - 1 : 0),
|
|
127
|
-
H[
|
|
126
|
+
for (var R = arguments.length, H = new Array(R > 1 ? R - 1 : 0), Q = 1; Q < R; Q++)
|
|
127
|
+
H[Q - 1] = arguments[Q];
|
|
128
128
|
A("error", d, H);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function A(d, R, H) {
|
|
132
132
|
{
|
|
133
|
-
var
|
|
133
|
+
var Q = u.ReactDebugCurrentFrame, he = Q.getStackAddendum();
|
|
134
134
|
he !== "" && (R += "%s", H = H.concat([he]));
|
|
135
|
-
var pe = H.map(function(
|
|
136
|
-
return "" +
|
|
135
|
+
var pe = H.map(function(ie) {
|
|
136
|
+
return "" + ie;
|
|
137
137
|
});
|
|
138
138
|
pe.unshift("Warning: " + R), Function.prototype.apply.call(console[d], console, pe);
|
|
139
139
|
}
|
|
@@ -142,14 +142,14 @@ function ro() {
|
|
|
142
142
|
function D(d) {
|
|
143
143
|
return !!(typeof d == "string" || typeof d == "function" || d === e.Fragment || d === i || d === E || d === s || d === m || d === h || d === w || M || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === g || d.$$typeof === c || d.$$typeof === a || d.$$typeof === f || d.$$typeof === S || d.$$typeof === _ || d[0] === v));
|
|
144
144
|
}
|
|
145
|
-
function
|
|
146
|
-
var
|
|
147
|
-
return d.displayName || (
|
|
145
|
+
function W(d, R, H) {
|
|
146
|
+
var Q = R.displayName || R.name || "";
|
|
147
|
+
return d.displayName || (Q !== "" ? H + "(" + Q + ")" : H);
|
|
148
148
|
}
|
|
149
149
|
function N(d) {
|
|
150
150
|
return d.displayName || "Context";
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function Y(d) {
|
|
153
153
|
if (d == null)
|
|
154
154
|
return null;
|
|
155
155
|
if (typeof d.tag == "number" && C("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
@@ -179,15 +179,15 @@ function ro() {
|
|
|
179
179
|
var H = d;
|
|
180
180
|
return N(H._context) + ".Provider";
|
|
181
181
|
case f:
|
|
182
|
-
return
|
|
182
|
+
return W(d, d.render, "ForwardRef");
|
|
183
183
|
case g:
|
|
184
|
-
return
|
|
184
|
+
return Y(d.type);
|
|
185
185
|
case _:
|
|
186
|
-
return
|
|
186
|
+
return Y(d._render);
|
|
187
187
|
case y: {
|
|
188
|
-
var
|
|
188
|
+
var Q = d, he = Q._payload, pe = Q._init;
|
|
189
189
|
try {
|
|
190
|
-
return
|
|
190
|
+
return Y(pe(he));
|
|
191
191
|
} catch {
|
|
192
192
|
return null;
|
|
193
193
|
}
|
|
@@ -195,18 +195,18 @@ function ro() {
|
|
|
195
195
|
}
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var k = 0, U, I, re, ee, j, L, Z;
|
|
199
|
+
function z() {
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
function
|
|
201
|
+
z.__reactDisabledLog = !0;
|
|
202
|
+
function P() {
|
|
203
203
|
{
|
|
204
|
-
if (
|
|
205
|
-
|
|
204
|
+
if (k === 0) {
|
|
205
|
+
U = console.log, I = console.info, re = console.warn, ee = console.error, j = console.group, L = console.groupCollapsed, Z = console.groupEnd;
|
|
206
206
|
var d = {
|
|
207
207
|
configurable: !0,
|
|
208
208
|
enumerable: !0,
|
|
209
|
-
value:
|
|
209
|
+
value: z,
|
|
210
210
|
writable: !0
|
|
211
211
|
};
|
|
212
212
|
Object.defineProperties(console, {
|
|
@@ -219,12 +219,12 @@ function ro() {
|
|
|
219
219
|
groupEnd: d
|
|
220
220
|
});
|
|
221
221
|
}
|
|
222
|
-
|
|
222
|
+
k++;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function te() {
|
|
226
226
|
{
|
|
227
|
-
if (
|
|
227
|
+
if (k--, k === 0) {
|
|
228
228
|
var d = {
|
|
229
229
|
configurable: !0,
|
|
230
230
|
enumerable: !0,
|
|
@@ -232,122 +232,122 @@ function ro() {
|
|
|
232
232
|
};
|
|
233
233
|
Object.defineProperties(console, {
|
|
234
234
|
log: r({}, d, {
|
|
235
|
-
value:
|
|
235
|
+
value: U
|
|
236
236
|
}),
|
|
237
237
|
info: r({}, d, {
|
|
238
238
|
value: I
|
|
239
239
|
}),
|
|
240
240
|
warn: r({}, d, {
|
|
241
|
-
value:
|
|
241
|
+
value: re
|
|
242
242
|
}),
|
|
243
243
|
error: r({}, d, {
|
|
244
|
-
value:
|
|
244
|
+
value: ee
|
|
245
245
|
}),
|
|
246
246
|
group: r({}, d, {
|
|
247
|
-
value:
|
|
247
|
+
value: j
|
|
248
248
|
}),
|
|
249
249
|
groupCollapsed: r({}, d, {
|
|
250
250
|
value: L
|
|
251
251
|
}),
|
|
252
252
|
groupEnd: r({}, d, {
|
|
253
|
-
value:
|
|
253
|
+
value: Z
|
|
254
254
|
})
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
|
|
257
|
+
k < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function
|
|
260
|
+
var X = u.ReactCurrentDispatcher, J;
|
|
261
|
+
function q(d, R, H) {
|
|
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 Q = he.stack.trim().match(/\n( *(at )?)/);
|
|
268
|
+
J = Q && Q[1] || "";
|
|
269
269
|
}
|
|
270
270
|
return `
|
|
271
|
-
` +
|
|
271
|
+
` + J + d;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
var
|
|
274
|
+
var F = !1, V;
|
|
275
275
|
{
|
|
276
|
-
var
|
|
277
|
-
|
|
276
|
+
var se = typeof WeakMap == "function" ? WeakMap : Map;
|
|
277
|
+
V = new se();
|
|
278
278
|
}
|
|
279
279
|
function O(d, R) {
|
|
280
|
-
if (!d ||
|
|
280
|
+
if (!d || F)
|
|
281
281
|
return "";
|
|
282
282
|
{
|
|
283
|
-
var H =
|
|
283
|
+
var H = V.get(d);
|
|
284
284
|
if (H !== void 0)
|
|
285
285
|
return H;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
|
|
287
|
+
var Q;
|
|
288
|
+
F = !0;
|
|
289
289
|
var he = Error.prepareStackTrace;
|
|
290
290
|
Error.prepareStackTrace = void 0;
|
|
291
291
|
var pe;
|
|
292
|
-
pe =
|
|
292
|
+
pe = X.current, X.current = null, P();
|
|
293
293
|
try {
|
|
294
294
|
if (R) {
|
|
295
|
-
var
|
|
295
|
+
var ie = function() {
|
|
296
296
|
throw Error();
|
|
297
297
|
};
|
|
298
|
-
if (Object.defineProperty(
|
|
298
|
+
if (Object.defineProperty(ie.prototype, "props", {
|
|
299
299
|
set: function() {
|
|
300
300
|
throw Error();
|
|
301
301
|
}
|
|
302
302
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
303
303
|
try {
|
|
304
|
-
Reflect.construct(
|
|
304
|
+
Reflect.construct(ie, []);
|
|
305
305
|
} catch (Le) {
|
|
306
|
-
|
|
306
|
+
Q = Le;
|
|
307
307
|
}
|
|
308
|
-
Reflect.construct(d, [],
|
|
308
|
+
Reflect.construct(d, [], ie);
|
|
309
309
|
} else {
|
|
310
310
|
try {
|
|
311
|
-
|
|
311
|
+
ie.call();
|
|
312
312
|
} catch (Le) {
|
|
313
|
-
|
|
313
|
+
Q = Le;
|
|
314
314
|
}
|
|
315
|
-
d.call(
|
|
315
|
+
d.call(ie.prototype);
|
|
316
316
|
}
|
|
317
317
|
} else {
|
|
318
318
|
try {
|
|
319
319
|
throw Error();
|
|
320
320
|
} catch (Le) {
|
|
321
|
-
|
|
321
|
+
Q = Le;
|
|
322
322
|
}
|
|
323
323
|
d();
|
|
324
324
|
}
|
|
325
325
|
} catch (Le) {
|
|
326
|
-
if (Le &&
|
|
327
|
-
for (var
|
|
328
|
-
`), Te =
|
|
329
|
-
`),
|
|
330
|
-
|
|
331
|
-
for (;
|
|
332
|
-
if (
|
|
333
|
-
if (
|
|
326
|
+
if (Le && Q && typeof Le.stack == "string") {
|
|
327
|
+
for (var oe = Le.stack.split(`
|
|
328
|
+
`), Te = Q.stack.split(`
|
|
329
|
+
`), ye = oe.length - 1, be = Te.length - 1; ye >= 1 && be >= 0 && oe[ye] !== Te[be]; )
|
|
330
|
+
be--;
|
|
331
|
+
for (; ye >= 1 && be >= 0; ye--, be--)
|
|
332
|
+
if (oe[ye] !== Te[be]) {
|
|
333
|
+
if (ye !== 1 || be !== 1)
|
|
334
334
|
do
|
|
335
|
-
if (
|
|
335
|
+
if (ye--, be--, be < 0 || oe[ye] !== Te[be]) {
|
|
336
336
|
var Oe = `
|
|
337
|
-
` +
|
|
338
|
-
return typeof d == "function" &&
|
|
337
|
+
` + oe[ye].replace(" at new ", " at ");
|
|
338
|
+
return typeof d == "function" && V.set(d, Oe), Oe;
|
|
339
339
|
}
|
|
340
|
-
while (
|
|
340
|
+
while (ye >= 1 && be >= 0);
|
|
341
341
|
break;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
} finally {
|
|
345
|
-
|
|
345
|
+
F = !1, X.current = pe, te(), Error.prepareStackTrace = he;
|
|
346
346
|
}
|
|
347
|
-
var Je = d ? d.displayName || d.name : "", fn = Je ?
|
|
348
|
-
return typeof d == "function" &&
|
|
347
|
+
var Je = d ? d.displayName || d.name : "", fn = Je ? q(Je) : "";
|
|
348
|
+
return typeof d == "function" && V.set(d, fn), fn;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function me(d, R, H) {
|
|
351
351
|
return O(d, !1);
|
|
352
352
|
}
|
|
353
353
|
function Ee(d) {
|
|
@@ -360,23 +360,23 @@ function ro() {
|
|
|
360
360
|
if (typeof d == "function")
|
|
361
361
|
return O(d, Ee(d));
|
|
362
362
|
if (typeof d == "string")
|
|
363
|
-
return
|
|
363
|
+
return q(d);
|
|
364
364
|
switch (d) {
|
|
365
365
|
case m:
|
|
366
|
-
return
|
|
366
|
+
return q("Suspense");
|
|
367
367
|
case h:
|
|
368
|
-
return
|
|
368
|
+
return q("SuspenseList");
|
|
369
369
|
}
|
|
370
370
|
if (typeof d == "object")
|
|
371
371
|
switch (d.$$typeof) {
|
|
372
372
|
case f:
|
|
373
|
-
return
|
|
373
|
+
return me(d.render);
|
|
374
374
|
case g:
|
|
375
375
|
return ge(d.type, R, H);
|
|
376
376
|
case _:
|
|
377
|
-
return
|
|
377
|
+
return me(d._render);
|
|
378
378
|
case y: {
|
|
379
|
-
var
|
|
379
|
+
var Q = d, he = Q._payload, pe = Q._init;
|
|
380
380
|
try {
|
|
381
381
|
return ge(pe(he), R, H);
|
|
382
382
|
} catch {
|
|
@@ -393,22 +393,22 @@ function ro() {
|
|
|
393
393
|
} else
|
|
394
394
|
Ne.setExtraStackFrame(null);
|
|
395
395
|
}
|
|
396
|
-
function at(d, R, H,
|
|
396
|
+
function at(d, R, H, Q, he) {
|
|
397
397
|
{
|
|
398
398
|
var pe = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
399
|
-
for (var
|
|
400
|
-
if (pe(d,
|
|
401
|
-
var
|
|
399
|
+
for (var ie in d)
|
|
400
|
+
if (pe(d, ie)) {
|
|
401
|
+
var oe = void 0;
|
|
402
402
|
try {
|
|
403
|
-
if (typeof d[
|
|
404
|
-
var Te = Error((
|
|
403
|
+
if (typeof d[ie] != "function") {
|
|
404
|
+
var Te = Error((Q || "React class") + ": " + H + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[ie] + "`.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
|
-
|
|
408
|
-
} catch (
|
|
409
|
-
|
|
407
|
+
oe = d[ie](R, ie, Q, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
|
+
} catch (ye) {
|
|
409
|
+
oe = ye;
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
oe && !(oe instanceof Error) && (Ae(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).", Q || "React class", H, ie, typeof oe), Ae(null)), oe instanceof Error && !(oe.message in Ce) && (Ce[oe.message] = !0, Ae(he), C("Failed %s type: %s", H, oe.message), Ae(null));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -459,51 +459,51 @@ function ro() {
|
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var Sr = function(d, R, H,
|
|
463
|
-
var
|
|
462
|
+
var Sr = function(d, R, H, Q, he, pe, ie) {
|
|
463
|
+
var oe = {
|
|
464
464
|
// This tag allows us to uniquely identify this as a React Element
|
|
465
465
|
$$typeof: o,
|
|
466
466
|
// Built-in properties that belong on the element
|
|
467
467
|
type: d,
|
|
468
468
|
key: R,
|
|
469
469
|
ref: H,
|
|
470
|
-
props:
|
|
470
|
+
props: ie,
|
|
471
471
|
// Record the component responsible for creating this element.
|
|
472
472
|
_owner: pe
|
|
473
473
|
};
|
|
474
|
-
return
|
|
474
|
+
return oe._store = {}, Object.defineProperty(oe._store, "validated", {
|
|
475
475
|
configurable: !1,
|
|
476
476
|
enumerable: !1,
|
|
477
477
|
writable: !0,
|
|
478
478
|
value: !1
|
|
479
|
-
}), Object.defineProperty(
|
|
479
|
+
}), Object.defineProperty(oe, "_self", {
|
|
480
480
|
configurable: !1,
|
|
481
481
|
enumerable: !1,
|
|
482
482
|
writable: !1,
|
|
483
|
-
value:
|
|
484
|
-
}), Object.defineProperty(
|
|
483
|
+
value: Q
|
|
484
|
+
}), Object.defineProperty(oe, "_source", {
|
|
485
485
|
configurable: !1,
|
|
486
486
|
enumerable: !1,
|
|
487
487
|
writable: !1,
|
|
488
488
|
value: he
|
|
489
|
-
}), Object.freeze && (Object.freeze(
|
|
489
|
+
}), Object.freeze && (Object.freeze(oe.props), Object.freeze(oe)), oe;
|
|
490
490
|
};
|
|
491
|
-
function wr(d, R, H,
|
|
491
|
+
function wr(d, R, H, Q, he) {
|
|
492
492
|
{
|
|
493
|
-
var pe,
|
|
494
|
-
H !== void 0 && (
|
|
493
|
+
var pe, ie = {}, oe = null, Te = null;
|
|
494
|
+
H !== void 0 && (oe = "" + H), br(R) && (oe = "" + R.key), vr(R) && (Te = R.ref, Cr(R, he));
|
|
495
495
|
for (pe in R)
|
|
496
|
-
Ke.call(R, pe) && !Pe.hasOwnProperty(pe) && (
|
|
496
|
+
Ke.call(R, pe) && !Pe.hasOwnProperty(pe) && (ie[pe] = R[pe]);
|
|
497
497
|
if (d && d.defaultProps) {
|
|
498
|
-
var
|
|
499
|
-
for (pe in
|
|
500
|
-
|
|
498
|
+
var ye = d.defaultProps;
|
|
499
|
+
for (pe in ye)
|
|
500
|
+
ie[pe] === void 0 && (ie[pe] = ye[pe]);
|
|
501
501
|
}
|
|
502
|
-
if (
|
|
503
|
-
var
|
|
504
|
-
|
|
502
|
+
if (oe || Te) {
|
|
503
|
+
var be = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
504
|
+
oe && Tr(ie, be), Te && Er(ie, be);
|
|
505
505
|
}
|
|
506
|
-
return Sr(d,
|
|
506
|
+
return Sr(d, oe, Te, he, Q, qe.current, ie);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var At = u.ReactCurrentOwner, sn = u.ReactDebugCurrentFrame;
|
|
@@ -522,7 +522,7 @@ function ro() {
|
|
|
522
522
|
function an() {
|
|
523
523
|
{
|
|
524
524
|
if (At.current) {
|
|
525
|
-
var d =
|
|
525
|
+
var d = Y(At.current.type);
|
|
526
526
|
if (d)
|
|
527
527
|
return `
|
|
528
528
|
|
|
@@ -556,8 +556,8 @@ Check the top-level render call using <` + H + ">.");
|
|
|
556
556
|
if (cn[H])
|
|
557
557
|
return;
|
|
558
558
|
cn[H] = !0;
|
|
559
|
-
var
|
|
560
|
-
d && d._owner && d._owner !== At.current && (
|
|
559
|
+
var Q = "";
|
|
560
|
+
d && d._owner && d._owner !== At.current && (Q = " It was passed a child from " + Y(d._owner.type) + "."), Xe(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.', H, Q), Xe(null);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
function un(d, R) {
|
|
@@ -566,16 +566,16 @@ Check the top-level render call using <` + H + ">.");
|
|
|
566
566
|
return;
|
|
567
567
|
if (Array.isArray(d))
|
|
568
568
|
for (var H = 0; H < d.length; H++) {
|
|
569
|
-
var
|
|
570
|
-
Dt(
|
|
569
|
+
var Q = d[H];
|
|
570
|
+
Dt(Q) && ln(Q, R);
|
|
571
571
|
}
|
|
572
572
|
else if (Dt(d))
|
|
573
573
|
d._store && (d._store.validated = !0);
|
|
574
574
|
else if (d) {
|
|
575
575
|
var he = b(d);
|
|
576
576
|
if (typeof he == "function" && he !== d.entries)
|
|
577
|
-
for (var pe = he.call(d),
|
|
578
|
-
Dt(
|
|
577
|
+
for (var pe = he.call(d), ie; !(ie = pe.next()).done; )
|
|
578
|
+
Dt(ie.value) && ln(ie.value, R);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
}
|
|
@@ -594,11 +594,11 @@ Check the top-level render call using <` + H + ">.");
|
|
|
594
594
|
else
|
|
595
595
|
return;
|
|
596
596
|
if (H) {
|
|
597
|
-
var
|
|
598
|
-
at(H, d.props, "prop",
|
|
597
|
+
var Q = Y(R);
|
|
598
|
+
at(H, d.props, "prop", Q, d);
|
|
599
599
|
} else if (R.PropTypes !== void 0 && !Rt) {
|
|
600
600
|
Rt = !0;
|
|
601
|
-
var he =
|
|
601
|
+
var he = Y(R);
|
|
602
602
|
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown");
|
|
603
603
|
}
|
|
604
604
|
typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -607,33 +607,33 @@ Check the top-level render call using <` + H + ">.");
|
|
|
607
607
|
function Ar(d) {
|
|
608
608
|
{
|
|
609
609
|
for (var R = Object.keys(d.props), H = 0; H < R.length; H++) {
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
612
|
-
Xe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
610
|
+
var Q = R[H];
|
|
611
|
+
if (Q !== "children" && Q !== "key") {
|
|
612
|
+
Xe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), Xe(null);
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
d.ref !== null && (Xe(d), C("Invalid attribute `ref` supplied to `React.Fragment`."), Xe(null));
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function dn(d, R, H,
|
|
619
|
+
function dn(d, R, H, Q, he, pe) {
|
|
620
620
|
{
|
|
621
|
-
var
|
|
622
|
-
if (!
|
|
623
|
-
var
|
|
624
|
-
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (
|
|
621
|
+
var ie = D(d);
|
|
622
|
+
if (!ie) {
|
|
623
|
+
var oe = "";
|
|
624
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (oe += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
625
625
|
var Te = _r();
|
|
626
|
-
Te ?
|
|
627
|
-
var
|
|
628
|
-
d === null ?
|
|
626
|
+
Te ? oe += Te : oe += an();
|
|
627
|
+
var ye;
|
|
628
|
+
d === null ? ye = "null" : Array.isArray(d) ? ye = "array" : d !== void 0 && d.$$typeof === o ? (ye = "<" + (Y(d.type) || "Unknown") + " />", oe = " Did you accidentally export a JSX literal instead of a component?") : ye = typeof d, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ye, oe);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
if (
|
|
632
|
-
return
|
|
633
|
-
if (
|
|
630
|
+
var be = wr(d, R, H, he, pe);
|
|
631
|
+
if (be == null)
|
|
632
|
+
return be;
|
|
633
|
+
if (ie) {
|
|
634
634
|
var Oe = R.children;
|
|
635
635
|
if (Oe !== void 0)
|
|
636
|
-
if (
|
|
636
|
+
if (Q)
|
|
637
637
|
if (Array.isArray(Oe)) {
|
|
638
638
|
for (var Je = 0; Je < Oe.length; Je++)
|
|
639
639
|
un(Oe[Je], d);
|
|
@@ -643,7 +643,7 @@ Check the top-level render call using <` + H + ">.");
|
|
|
643
643
|
else
|
|
644
644
|
un(Oe, d);
|
|
645
645
|
}
|
|
646
|
-
return d === e.Fragment ? Ar(
|
|
646
|
+
return d === e.Fragment ? Ar(be) : kr(be), be;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
649
|
function Rr(d, R, H) {
|
|
@@ -662,7 +662,7 @@ function oo() {
|
|
|
662
662
|
return bn || (bn = 1, process.env.NODE_ENV === "production" ? yt.exports = no() : yt.exports = ro()), yt.exports;
|
|
663
663
|
}
|
|
664
664
|
var t = oo();
|
|
665
|
-
const so = "2.0.8-alpha.
|
|
665
|
+
const so = "2.0.8-alpha.2", qn = "chat_session", io = "user_uttered", ao = "bot_uttered", co = "ehelp_bot_uttered", lo = "bot_reason_uttered";
|
|
666
666
|
JSON.stringify({
|
|
667
667
|
enabled_agents: ["Alice", "Maria", "Jani"],
|
|
668
668
|
default_active_agent: "Alice"
|
|
@@ -723,7 +723,7 @@ const uo = "https://sfchatbot.dataon.com", fo = [
|
|
|
723
723
|
} catch {
|
|
724
724
|
return Kn(uo);
|
|
725
725
|
}
|
|
726
|
-
},
|
|
726
|
+
}, _e = (e, n) => {
|
|
727
727
|
var r, o, l;
|
|
728
728
|
return ((r = Object.keys(e || {})) == null ? void 0 : r.length) > 0 ? (l = (o = Object == null ? void 0 : Object.prototype) == null ? void 0 : o.hasOwnProperty) == null ? void 0 : l.call(e, n) : !1;
|
|
729
729
|
}, nt = (e) => {
|
|
@@ -731,10 +731,10 @@ const uo = "https://sfchatbot.dataon.com", fo = [
|
|
|
731
731
|
const n = e == null ? void 0 : e.attachment;
|
|
732
732
|
return {
|
|
733
733
|
text: ((r = Object.keys(e || {})) == null ? void 0 : r.length) > 0 && (e == null ? void 0 : e.type) === "text",
|
|
734
|
-
upload:
|
|
734
|
+
upload: _e(e, "attachment") && _e(n, "type") && (n == null ? void 0 : n.type) === "fileuploader",
|
|
735
735
|
password: (n == null ? void 0 : n.type) === "show_password_wp",
|
|
736
|
-
filedownload:
|
|
737
|
-
chart: (n == null ? void 0 : n.type) === "charts" &&
|
|
736
|
+
filedownload: _e(n, "type") && (n == null ? void 0 : n.type) === "filedownloader",
|
|
737
|
+
chart: (n == null ? void 0 : n.type) === "charts" && _e(n, "chartType")
|
|
738
738
|
};
|
|
739
739
|
}, Pn = (e) => {
|
|
740
740
|
var n, r, o, l;
|
|
@@ -774,7 +774,7 @@ const uo = "https://sfchatbot.dataon.com", fo = [
|
|
|
774
774
|
const n = [];
|
|
775
775
|
return e == null || e.forEach((r) => {
|
|
776
776
|
var o;
|
|
777
|
-
|
|
777
|
+
_e(r, "chats") ? (o = r == null ? void 0 : r.chats) == null || o.forEach((l) => {
|
|
778
778
|
n.push(l);
|
|
779
779
|
}) : n.push(r);
|
|
780
780
|
}), n;
|
|
@@ -782,7 +782,7 @@ const uo = "https://sfchatbot.dataon.com", fo = [
|
|
|
782
782
|
const n = {}, r = [], o = [];
|
|
783
783
|
e == null || e.forEach((s) => {
|
|
784
784
|
var i;
|
|
785
|
-
|
|
785
|
+
_e(s, "chats") ? (i = s == null ? void 0 : s.chats) == null || i.forEach((c) => {
|
|
786
786
|
o == null || o.push(c);
|
|
787
787
|
}) : o == null || o.push(s);
|
|
788
788
|
}), o == null || o.forEach((s, i) => {
|
|
@@ -900,7 +900,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
900
900
|
modelName: f,
|
|
901
901
|
isSF: m
|
|
902
902
|
}) => {
|
|
903
|
-
const [h, g] =
|
|
903
|
+
const [h, g] = B(!1), [y, _] = B("va"), [v, S] = B(!1), [E, w] = B({}), [x, T] = B(!1), [p, b] = B(!1), [u, C] = B(!1), A = ne(!1), M = G(() => ({
|
|
904
904
|
getStartedPayload: n,
|
|
905
905
|
socketURL: r,
|
|
906
906
|
socketPath: o,
|
|
@@ -922,7 +922,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
922
922
|
a,
|
|
923
923
|
f,
|
|
924
924
|
m
|
|
925
|
-
]), D =
|
|
925
|
+
]), D = G(() => Pn(E == null ? void 0 : E.access_token), [E == null ? void 0 : E.access_token]);
|
|
926
926
|
return fe(() => {
|
|
927
927
|
w(vo(n));
|
|
928
928
|
}, [n]), fe(() => {
|
|
@@ -955,7 +955,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
955
955
|
}
|
|
956
956
|
);
|
|
957
957
|
}, er = ze({}), jo = () => Ge(er), ko = ({ children: e }) => {
|
|
958
|
-
const { objInitPayload: n } = de(), [r, o] =
|
|
958
|
+
const { objInitPayload: n } = de(), [r, o] = B({}), l = () => {
|
|
959
959
|
var i;
|
|
960
960
|
(i = st(
|
|
961
961
|
`${(n == null ? void 0 : n.uriService) || po}optional/translations`
|
|
@@ -995,38 +995,38 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
995
995
|
s();
|
|
996
996
|
}, [n == null ? void 0 : n.uriService, n == null ? void 0 : n.lang]), /* @__PURE__ */ t.jsx(er.Provider, { value: { langDatas: r }, children: e });
|
|
997
997
|
}, tr = ze({}), ke = () => Ge(tr), Ao = ({ children: e }) => {
|
|
998
|
-
var
|
|
999
|
-
const [n, r] =
|
|
1000
|
-
objInitPayload:
|
|
998
|
+
var q;
|
|
999
|
+
const [n, r] = B([]), [o, l] = B(!1), [s, i] = B(!1), [c, a] = B({}), [f, m] = B(!0), [h, g] = B(!1), [y, _] = B(!1), [v, S] = B(!1), [E, w] = B(!1), [x, T] = B(""), [p, b] = B(!1), [u, C] = B(!1), [A, M] = B({}), D = ne(null), W = ne(null), N = ne(null), Y = ne(""), k = ne(""), {
|
|
1000
|
+
objInitPayload: U,
|
|
1001
1001
|
widgetProps: I,
|
|
1002
|
-
setOpenWidget:
|
|
1003
|
-
setFirstOpenWidget:
|
|
1004
|
-
isFirstRenderHelpdesk:
|
|
1002
|
+
setOpenWidget: re,
|
|
1003
|
+
setFirstOpenWidget: ee,
|
|
1004
|
+
isFirstRenderHelpdesk: j,
|
|
1005
1005
|
setUserInputHide: L
|
|
1006
|
-
} = de(),
|
|
1007
|
-
var
|
|
1008
|
-
const
|
|
1006
|
+
} = de(), Z = (F) => {
|
|
1007
|
+
var se;
|
|
1008
|
+
const V = _e(F, "text_feedback_link") && _e(F, "text");
|
|
1009
1009
|
r((O) => {
|
|
1010
1010
|
var Ne, Ae;
|
|
1011
|
-
const Ee = [...Co(O)], ge = Ee[Ee.length - 1], Ce =
|
|
1012
|
-
return (ge == null ? void 0 : ge.id) === Ce ? (ge.text = `${(ge == null ? void 0 : ge.text) || ""}${(
|
|
1013
|
-
|
|
1011
|
+
const Ee = [...Co(O)], ge = Ee[Ee.length - 1], Ce = F.id && F.id !== "" ? F.id : ((Ne = F.metadata) == null ? void 0 : Ne.id) || ((Ae = F.metadata) == null ? void 0 : Ae.message_id) || "";
|
|
1012
|
+
return (ge == null ? void 0 : ge.id) === Ce ? (ge.text = `${(ge == null ? void 0 : ge.text) || ""}${(F == null ? void 0 : F.text) || ""}`, F != null && F.tag && (ge.tag = F.tag)) : Ee.push({
|
|
1013
|
+
...F,
|
|
1014
1014
|
id: Ce,
|
|
1015
|
-
...
|
|
1015
|
+
...V && { type: "text" },
|
|
1016
1016
|
sender: "response"
|
|
1017
1017
|
}), To(Ee);
|
|
1018
|
-
}), C(!0), m(!1), l(!1), L(((
|
|
1018
|
+
}), C(!0), m(!1), l(!1), L(((se = F == null ? void 0 : F.metadata) == null ? void 0 : se.userInput) === "hide"), i(!1), D != null && D.current && clearTimeout(D == null ? void 0 : D.current), D.current = setTimeout(() => {
|
|
1019
1019
|
C(!1);
|
|
1020
|
-
}, 1750),
|
|
1020
|
+
}, 1750), W != null && W.current && clearTimeout(W == null ? void 0 : W.current), W.current = setTimeout(() => {
|
|
1021
1021
|
m(!0);
|
|
1022
1022
|
}, 2e3), $e();
|
|
1023
|
-
},
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}), (O = N.current) == null || O.on(ao,
|
|
1023
|
+
}, z = (F) => {
|
|
1024
|
+
var V, se, O, me, Ee;
|
|
1025
|
+
F && P({ msg: I == null ? void 0 : I.getStartedPayload }), (V = N.current) == null || V.emit("session_request", { session_id: null }), (se = N.current) == null || se.on("session_confirm", (ge) => {
|
|
1026
|
+
Y.current = ge, jt({ session_id: ge == null ? void 0 : ge.session_id });
|
|
1027
|
+
}), (O = N.current) == null || O.on(ao, Z), (me = N.current) == null || me.on(co, (ge) => {
|
|
1028
1028
|
const Ce = JSON.parse(ge || "{}");
|
|
1029
|
-
|
|
1029
|
+
_e(Ce, "iswidget") && w(Ce == null ? void 0 : Ce.iswidget);
|
|
1030
1030
|
}), (Ee = N.current) == null || Ee.on(lo, (ge) => {
|
|
1031
1031
|
try {
|
|
1032
1032
|
const Ce = typeof ge == "string" ? JSON.parse(ge) : ge, { id: Ne } = Ce || {};
|
|
@@ -1045,23 +1045,23 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1045
1045
|
} catch (Ce) {
|
|
1046
1046
|
console.error("Error parsing BOT_REASON_UTTERED:", Ce);
|
|
1047
1047
|
}
|
|
1048
|
-
}), v || S(!0),
|
|
1049
|
-
},
|
|
1050
|
-
msg:
|
|
1051
|
-
additionalConfig:
|
|
1052
|
-
isShowLoadingResponse:
|
|
1048
|
+
}), v || S(!0), ee(!1);
|
|
1049
|
+
}, P = ({
|
|
1050
|
+
msg: F,
|
|
1051
|
+
additionalConfig: V = {},
|
|
1052
|
+
isShowLoadingResponse: se = !0
|
|
1053
1053
|
}) => {
|
|
1054
1054
|
var O;
|
|
1055
1055
|
(O = N.current) == null || O.emit(io, {
|
|
1056
|
-
customData: { language:
|
|
1057
|
-
message:
|
|
1058
|
-
session_id:
|
|
1059
|
-
...
|
|
1060
|
-
}),
|
|
1061
|
-
},
|
|
1062
|
-
var
|
|
1063
|
-
N.current && ((
|
|
1064
|
-
const
|
|
1056
|
+
customData: { language: U == null ? void 0 : U.lang },
|
|
1057
|
+
message: F,
|
|
1058
|
+
session_id: Y == null ? void 0 : Y.current,
|
|
1059
|
+
...V
|
|
1060
|
+
}), se ? l(!0) : i(!0);
|
|
1061
|
+
}, te = (F = !1) => {
|
|
1062
|
+
var se, O;
|
|
1063
|
+
N.current && ((se = N.current) == null || se.off(), (O = N.current) == null || O.disconnect(), N.current = null), j.current = !1;
|
|
1064
|
+
const V = Kr(
|
|
1065
1065
|
`${Eo(I == null ? void 0 : I.socketURL)}://${Kn(
|
|
1066
1066
|
I == null ? void 0 : I.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", () => z(F)), V.on("connect_error", (me) => {
|
|
1076
1076
|
console.error("connect_error widget-chatbot : ", {
|
|
1077
|
-
err:
|
|
1077
|
+
err: me,
|
|
1078
1078
|
socketURL: I == null ? void 0 : I.socketURL,
|
|
1079
1079
|
socketPath: I == null ? void 0 : I.widgetProps
|
|
1080
1080
|
}), S(!1);
|
|
1081
|
-
}),
|
|
1081
|
+
}), V.io.on("reconnect", () => {
|
|
1082
1082
|
console.error("reconnect widget-chatbot : ", {
|
|
1083
1083
|
socketURL: I == null ? void 0 : I.socketURL,
|
|
1084
1084
|
socketPath: I == null ? void 0 : I.widgetProps
|
|
1085
1085
|
}), S(!1);
|
|
1086
|
-
}), N.current =
|
|
1087
|
-
},
|
|
1088
|
-
var
|
|
1089
|
-
(!((
|
|
1090
|
-
},
|
|
1091
|
-
return fe(() => (
|
|
1092
|
-
var
|
|
1093
|
-
N.current && ((
|
|
1086
|
+
}), N.current = V;
|
|
1087
|
+
}, X = () => {
|
|
1088
|
+
var F;
|
|
1089
|
+
(!((F = N == null ? void 0 : N.current) != null && F.connected) || !v) && (te(), re(!1));
|
|
1090
|
+
}, J = () => S(!1);
|
|
1091
|
+
return fe(() => (re(!1), te(), window.addEventListener("online", X), window.addEventListener("offline", J), () => {
|
|
1092
|
+
var F, V;
|
|
1093
|
+
N.current && ((F = N.current) == null || F.off("connect", z), (V = N.current) == null || V.disconnect(), N.current = null), window.removeEventListener("online", X), window.removeEventListener("offline", J);
|
|
1094
1094
|
}), [
|
|
1095
|
-
JSON.stringify(
|
|
1095
|
+
JSON.stringify(U || {}),
|
|
1096
1096
|
I == null ? void 0 : I.socketURL,
|
|
1097
1097
|
I == null ? void 0 : I.socketPath
|
|
1098
1098
|
]), /* @__PURE__ */ t.jsx(
|
|
@@ -1101,17 +1101,17 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1101
1101
|
value: {
|
|
1102
1102
|
setChats: r,
|
|
1103
1103
|
chats: n,
|
|
1104
|
-
onSendMsg:
|
|
1104
|
+
onSendMsg: P,
|
|
1105
1105
|
isWaitResponse: o,
|
|
1106
1106
|
socket: N == null ? void 0 : N.current,
|
|
1107
|
-
sessionId: (
|
|
1107
|
+
sessionId: (q = Y == null ? void 0 : Y.current) == null ? void 0 : q.session_id,
|
|
1108
1108
|
loadingRegenerate: s,
|
|
1109
1109
|
file: c,
|
|
1110
1110
|
setFile: a,
|
|
1111
1111
|
connected: v,
|
|
1112
1112
|
isHandshakeWidget: E,
|
|
1113
|
-
createSocket:
|
|
1114
|
-
currRegenerateId:
|
|
1113
|
+
createSocket: te,
|
|
1114
|
+
currRegenerateId: k,
|
|
1115
1115
|
thinkingText: x,
|
|
1116
1116
|
setThinkingText: T,
|
|
1117
1117
|
isThinkingCompleted: p,
|
|
@@ -1411,13 +1411,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1411
1411
|
boxShadow: "inset 5px 0 0 #f7d87c",
|
|
1412
1412
|
zIndex: "0"
|
|
1413
1413
|
}
|
|
1414
|
-
}, Do = (e) => e.replace(/[^a-zA-Z0-9_]/g, "").trim(),
|
|
1414
|
+
}, Do = (e) => e.replace(/[^a-zA-Z0-9_]/g, "").trim(), $ = (e = "", n) => {
|
|
1415
1415
|
var i;
|
|
1416
1416
|
const { langDatas: r } = jo(), o = localStorage == null ? void 0 : localStorage.getItem("show_text_id"), l = Do(String(e)), s = (r == null ? void 0 : r[l == null ? void 0 : l.toUpperCase()]) || n;
|
|
1417
1417
|
return ((i = Object.keys(r || {})) == null ? void 0 : i.length) > 0 ? o ? `WPUI_${l}` : s : n;
|
|
1418
1418
|
}, Oo = ({ isFeedback: e = !1, open: n, ...r }) => {
|
|
1419
1419
|
var l;
|
|
1420
|
-
const o =
|
|
1420
|
+
const o = G(() => e ? "w-modal-container-feedback" : "", [e]);
|
|
1421
1421
|
return rt != null && rt.startsWith("5") ? /* @__PURE__ */ t.jsx(
|
|
1422
1422
|
gn,
|
|
1423
1423
|
{
|
|
@@ -1464,8 +1464,8 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
)
|
|
1466
1466
|
);
|
|
1467
|
-
}, nr =
|
|
1468
|
-
const l =
|
|
1467
|
+
}, nr = K(Oo), Lo = ({ childrenData: e, children: n, tag: r, reason: o }) => {
|
|
1468
|
+
const l = $("ThinkProcess", "Think Process"), i = [{ type: "text", value: typeof e == "string" ? e : "" }], c = typeof o == "string" ? o.replace(/\s+/g, " ").trim() : "", a = c.length > 0;
|
|
1469
1469
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1470
1470
|
a && /* @__PURE__ */ t.jsx(
|
|
1471
1471
|
pn,
|
|
@@ -1478,7 +1478,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1478
1478
|
pn.Panel,
|
|
1479
1479
|
{
|
|
1480
1480
|
header: /* @__PURE__ */ t.jsx(
|
|
1481
|
-
|
|
1481
|
+
ae.Paragraph,
|
|
1482
1482
|
{
|
|
1483
1483
|
style: {
|
|
1484
1484
|
maxWidth: 180,
|
|
@@ -1491,7 +1491,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
),
|
|
1493
1493
|
children: /* @__PURE__ */ t.jsx(
|
|
1494
|
-
|
|
1494
|
+
ae.Paragraph,
|
|
1495
1495
|
{
|
|
1496
1496
|
style: {
|
|
1497
1497
|
fontSize: 12,
|
|
@@ -1509,7 +1509,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1509
1509
|
),
|
|
1510
1510
|
i.map((f, m) => /* @__PURE__ */ t.jsx(Et, { children: n(f.value, "text") }, m))
|
|
1511
1511
|
] });
|
|
1512
|
-
}, Mo =
|
|
1512
|
+
}, Mo = K(Lo), Sn = ({ props: e, isModal: n = !1 }) => {
|
|
1513
1513
|
const r = (o, l) => {
|
|
1514
1514
|
var s;
|
|
1515
1515
|
return (s = Nr) == null ? void 0 : s.map(o, (i) => {
|
|
@@ -1552,10 +1552,10 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1552
1552
|
}
|
|
1553
1553
|
) }) }) });
|
|
1554
1554
|
}, No = ({ children: e, tag: n, reason: r }) => {
|
|
1555
|
-
const o =
|
|
1555
|
+
const o = $(
|
|
1556
1556
|
"OpenDetailTable",
|
|
1557
1557
|
"Open Detail Table"
|
|
1558
|
-
), l =
|
|
1558
|
+
), l = $("TableDetail", "Tabel Detail"), { widgetProps: s, objInitPayload: i } = de(), [c, a] = B(!1);
|
|
1559
1559
|
return /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Mo, { childrenData: e, tag: n, reason: r, children: (f, m) => /* @__PURE__ */ t.jsx(
|
|
1560
1560
|
Pr,
|
|
1561
1561
|
{
|
|
@@ -1620,7 +1620,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1620
1620
|
PreTag: "div",
|
|
1621
1621
|
children: String(g).replace(/\n$/, "")
|
|
1622
1622
|
}
|
|
1623
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1623
|
+
) : /* @__PURE__ */ t.jsx(ae.Text, { code: !0, children: g });
|
|
1624
1624
|
},
|
|
1625
1625
|
a: (h) => {
|
|
1626
1626
|
var S;
|
|
@@ -1644,7 +1644,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1644
1644
|
children: f
|
|
1645
1645
|
}
|
|
1646
1646
|
) }) });
|
|
1647
|
-
}, rr =
|
|
1647
|
+
}, rr = K(No), Fo = () => /* @__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 = G(() => ({
|
|
1976
1976
|
minimize: Io,
|
|
1977
1977
|
expand: $o,
|
|
1978
1978
|
send: Uo,
|
|
@@ -1997,7 +1997,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1997
1997
|
}), [e, n, r]);
|
|
1998
1998
|
return /* @__PURE__ */ t.jsx(Zr, { component: o == null ? void 0 : o[e], ...r });
|
|
1999
1999
|
}, or = ze({}), Ue = () => Ge(or), rs = ({ children: e }) => {
|
|
2000
|
-
const [n, r] =
|
|
2000
|
+
const [n, r] = B("va"), o = G(() => n === "va", [n]);
|
|
2001
2001
|
return /* @__PURE__ */ t.jsx(
|
|
2002
2002
|
or.Provider,
|
|
2003
2003
|
{
|
|
@@ -2010,27 +2010,27 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2010
2010
|
}
|
|
2011
2011
|
);
|
|
2012
2012
|
}, os = ({ ...e }) => {
|
|
2013
|
-
const n =
|
|
2013
|
+
const n = $(
|
|
2014
2014
|
"WeLoveToHearAboutYourExperienceWithTheSunfishChatbot",
|
|
2015
2015
|
"We'd love to hear about your experience with the Sunfish chatbot"
|
|
2016
|
-
), r =
|
|
2016
|
+
), r = $(
|
|
2017
2017
|
"ShareAnyCommentsOrSuggestionsToHelpUsImprove",
|
|
2018
2018
|
"Share any comments or suggestions to help us improve"
|
|
2019
|
-
), o =
|
|
2019
|
+
), o = $("Submit", "Submit"), l = $(
|
|
2020
2020
|
"ThankFeedback",
|
|
2021
2021
|
"Thank You for your feedback"
|
|
2022
|
-
), s =
|
|
2022
|
+
), s = $(
|
|
2023
2023
|
"AdditionalFeedback",
|
|
2024
2024
|
"Additional Feedback"
|
|
2025
|
-
), [i] =
|
|
2025
|
+
), [i] = we.useForm(), [c, a] = B(!1), [f, m] = B(""), { setChats: h } = ke(), { objInitPayload: g, isUserInputHide: y } = de(), { activeTab: _ } = Ue(), v = G(() => {
|
|
2026
2026
|
var T;
|
|
2027
|
-
const x =
|
|
2027
|
+
const x = _e(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" && ((T = e == null ? void 0 : e.text_thumbsup_link) == null ? void 0 : T.trim()) !== "" && x;
|
|
2029
|
-
}, [e]), S =
|
|
2029
|
+
}, [e]), S = G(() => {
|
|
2030
2030
|
var T;
|
|
2031
|
-
const x =
|
|
2031
|
+
const x = _e(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" && ((T = e == null ? void 0 : e.text_thumbsdown_link) == null ? void 0 : T.trim()) !== "" && x;
|
|
2033
|
-
}, [e]), E =
|
|
2033
|
+
}, [e]), E = G(() => {
|
|
2034
2034
|
if (g != null && g.uriBackend)
|
|
2035
2035
|
try {
|
|
2036
2036
|
return new URL(g.uriBackend).origin;
|
|
@@ -2039,7 +2039,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
return "";
|
|
2041
2041
|
}, [g == null ? void 0 : g.uriBackend]), w = (x) => {
|
|
2042
|
-
var
|
|
2042
|
+
var W;
|
|
2043
2043
|
const T = x === "like" ? e == null ? void 0 : e.text_thumbsup_link : e == null ? void 0 : e.text_thumbsdown_link, {
|
|
2044
2044
|
access_token: p = "",
|
|
2045
2045
|
companycode: b = "",
|
|
@@ -2048,7 +2048,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2048
2048
|
uriBackendEnt: A = "",
|
|
2049
2049
|
lang: M = ""
|
|
2050
2050
|
} = g || {}, D = f === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : f;
|
|
2051
|
-
(
|
|
2051
|
+
(W = st({
|
|
2052
2052
|
method: "POST",
|
|
2053
2053
|
url: T,
|
|
2054
2054
|
data: {
|
|
@@ -2069,41 +2069,41 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2069
2069
|
"Acc-Name": `${b.toUpperCase()}`,
|
|
2070
2070
|
Language: `${M}`
|
|
2071
2071
|
}
|
|
2072
|
-
})) == null ||
|
|
2073
|
-
var
|
|
2074
|
-
(N == null ? void 0 : N.status) === 200 && (c && a(!1), (
|
|
2072
|
+
})) == null || W.then((N) => {
|
|
2073
|
+
var Y, k, U;
|
|
2074
|
+
(N == null ? void 0 : N.status) === 200 && (c && a(!1), (Y = Se) == null || Y.destroy(), (k = Se) == null || k.config({
|
|
2075
2075
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2076
2076
|
top: 28,
|
|
2077
2077
|
placement: "top",
|
|
2078
2078
|
duration: 3
|
|
2079
|
-
}), (
|
|
2079
|
+
}), (U = Se) == null || U.success({
|
|
2080
2080
|
message: l,
|
|
2081
2081
|
className: "w-notification-content"
|
|
2082
2082
|
}), h((I) => {
|
|
2083
|
-
var
|
|
2084
|
-
return (
|
|
2083
|
+
var re;
|
|
2084
|
+
return (re = I == null ? void 0 : I.map((ee) => {
|
|
2085
2085
|
var L;
|
|
2086
|
-
if (
|
|
2087
|
-
const
|
|
2088
|
-
...
|
|
2086
|
+
if (_e(ee, "chats")) {
|
|
2087
|
+
const Z = (L = ee == null ? void 0 : ee.chats) == null ? void 0 : L.map((z) => (z == null ? void 0 : z.indexChat) === (e == null ? void 0 : e.indexChat) ? {
|
|
2088
|
+
...z,
|
|
2089
2089
|
feedback: x
|
|
2090
|
-
} :
|
|
2090
|
+
} : z);
|
|
2091
2091
|
return {
|
|
2092
|
-
...
|
|
2093
|
-
chats:
|
|
2092
|
+
...ee,
|
|
2093
|
+
chats: Z
|
|
2094
2094
|
};
|
|
2095
2095
|
}
|
|
2096
|
-
return (e == null ? void 0 : e.id) === (
|
|
2097
|
-
...
|
|
2096
|
+
return (e == null ? void 0 : e.id) === (ee == null ? void 0 : ee.id) ? {
|
|
2097
|
+
...ee,
|
|
2098
2098
|
feedback: x
|
|
2099
|
-
} :
|
|
2100
|
-
})) == null ? void 0 :
|
|
2099
|
+
} : ee;
|
|
2100
|
+
})) == null ? void 0 : re.flat();
|
|
2101
2101
|
}));
|
|
2102
2102
|
});
|
|
2103
2103
|
};
|
|
2104
2104
|
return fe(() => {
|
|
2105
2105
|
var x;
|
|
2106
|
-
(x =
|
|
2106
|
+
(x = Se) == null || x.destroy();
|
|
2107
2107
|
}, [_]), y ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2108
2108
|
v && /* @__PURE__ */ t.jsx(
|
|
2109
2109
|
ue,
|
|
@@ -2156,13 +2156,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2156
2156
|
),
|
|
2157
2157
|
f === "another" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2158
2158
|
/* @__PURE__ */ t.jsx(Wr, { children: s }),
|
|
2159
|
-
/* @__PURE__ */ t.jsx(
|
|
2159
|
+
/* @__PURE__ */ t.jsx(we, { form: i, layout: "vertical", children: /* @__PURE__ */ t.jsx(we.Item, { name: "additional_feedback", children: /* @__PURE__ */ t.jsx(pt.TextArea, { rows: 3 }) }) })
|
|
2160
2160
|
] })
|
|
2161
2161
|
]
|
|
2162
2162
|
}
|
|
2163
2163
|
)
|
|
2164
2164
|
] });
|
|
2165
|
-
}, ss =
|
|
2165
|
+
}, ss = K(os), is = ({
|
|
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: f,
|
|
2177
2177
|
loadingRegenerate: m,
|
|
2178
2178
|
currRegenerateId: h
|
|
2179
|
-
} = ke(), g =
|
|
2179
|
+
} = ke(), g = G(() => o == null ? void 0 : o.sender, [o]), y = G(() => c == null ? void 0 : c.filter((w) => (w == null ? void 0 : w.sender) === "client"), [c]), _ = G(() => n && g === "response" && (y == null ? void 0 : y.length) > 0 && (o == null ? void 0 : o.indexChat) === (c == null ? void 0 : c.length) - 1 && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [g, y, c, o, n]), v = G(() => {
|
|
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 = G(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), E = () => {
|
|
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 = c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1];
|
|
@@ -2226,7 +2226,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2226
2226
|
]
|
|
2227
2227
|
}
|
|
2228
2228
|
) });
|
|
2229
|
-
}, zt =
|
|
2229
|
+
}, zt = K(is), as = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
|
|
2230
2230
|
Br,
|
|
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
|
-
), en =
|
|
2239
|
+
), en = K(as), cs = ({ nameFallback: e = "", ...n }) => {
|
|
2240
2240
|
const r = ne(0);
|
|
2241
2241
|
return /* @__PURE__ */ t.jsx(
|
|
2242
2242
|
Yn,
|
|
@@ -2256,7 +2256,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2256
2256
|
)
|
|
2257
2257
|
}
|
|
2258
2258
|
);
|
|
2259
|
-
}, Ve =
|
|
2259
|
+
}, Ve = K(cs);
|
|
2260
2260
|
Ve.Group = Yn.Group;
|
|
2261
2261
|
const tt = [
|
|
2262
2262
|
{ label: "Thinking..", duration: 3e3 },
|
|
@@ -2266,7 +2266,7 @@ const tt = [
|
|
|
2266
2266
|
{ label: "Almost there..", duration: 1 / 0 }
|
|
2267
2267
|
], ls = ({ isLoading: e = !0, onPhaseChange: n }) => {
|
|
2268
2268
|
var m;
|
|
2269
|
-
const [r, o] =
|
|
2269
|
+
const [r, o] = B(0), [l, s] = B(!1), i = ne(null), c = ne(null), a = ne(0);
|
|
2270
2270
|
if (fe(() => {
|
|
2271
2271
|
const h = () => {
|
|
2272
2272
|
c.current && (clearInterval(c.current), c.current = null);
|
|
@@ -2292,7 +2292,7 @@ const tt = [
|
|
|
2292
2292
|
}, [e, n]), !e) return null;
|
|
2293
2293
|
const f = ((m = tt[r]) == null ? void 0 : m.label) || "Thinking..";
|
|
2294
2294
|
return /* @__PURE__ */ t.jsx("span", { className: `dynamic-loading-label ${l ? "transitioning" : ""}`, children: f });
|
|
2295
|
-
}, us =
|
|
2295
|
+
}, us = K(ls), ds = ({ showLabel: e = !1, isLoading: n = !0, onPhaseChange: r }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
2296
2296
|
/* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", children: [
|
|
2297
2297
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
2298
2298
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
@@ -2300,18 +2300,18 @@ const tt = [
|
|
|
2300
2300
|
/* @__PURE__ */ t.jsx("div", {})
|
|
2301
2301
|
] }),
|
|
2302
2302
|
e && /* @__PURE__ */ t.jsx(us, { isLoading: n, onPhaseChange: r })
|
|
2303
|
-
] }), sr =
|
|
2303
|
+
] }), sr = K(ds), fs = () => {
|
|
2304
2304
|
const { widgetProps: e } = de(), { connected: n } = ke();
|
|
2305
2305
|
return /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2306
2306
|
/* @__PURE__ */ t.jsx(Ve, { src: wt, nameFallback: e == null ? void 0 : e.title }),
|
|
2307
2307
|
/* @__PURE__ */ t.jsx(sr, { showLabel: n, isLoading: !0 })
|
|
2308
2308
|
] });
|
|
2309
|
-
}, tn =
|
|
2309
|
+
}, tn = K(fs), gs = ({ src: e, name: n }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2310
2310
|
/* @__PURE__ */ t.jsx(Ve, { src: e, preview: !1, nameFallback: n }),
|
|
2311
|
-
/* @__PURE__ */ t.jsx(
|
|
2312
|
-
] }), ht =
|
|
2311
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: n })
|
|
2312
|
+
] }), ht = K(gs), ps = ({ ...e }) => {
|
|
2313
2313
|
var m, h;
|
|
2314
|
-
const [n, r] =
|
|
2314
|
+
const [n, r] = B(1), { loadingRegenerate: o, currRegenerateId: l } = ke(), { isExpand: s, widgetProps: i } = de(), c = G(() => e == null ? void 0 : e.sender, [e]), a = G(() => e == null ? void 0 : e.chats, [e == null ? void 0 : e.chats]), f = G(() => {
|
|
2315
2315
|
const g = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2316
2316
|
return (g == null ? void 0 : g.generated_id) === l.current;
|
|
2317
2317
|
}, [a, e, l.current]);
|
|
@@ -2385,7 +2385,7 @@ const tt = [
|
|
|
2385
2385
|
}
|
|
2386
2386
|
}
|
|
2387
2387
|
),
|
|
2388
|
-
/* @__PURE__ */ t.jsxs(
|
|
2388
|
+
/* @__PURE__ */ t.jsxs(ae.Text, { children: [
|
|
2389
2389
|
n,
|
|
2390
2390
|
" / ",
|
|
2391
2391
|
(m = e == null ? void 0 : e.chats) == null ? void 0 : m.length
|
|
@@ -2406,10 +2406,10 @@ const tt = [
|
|
|
2406
2406
|
] })
|
|
2407
2407
|
] })
|
|
2408
2408
|
] });
|
|
2409
|
-
}, hs =
|
|
2409
|
+
}, hs = K(ps), xs = ({ date: e, format: n, sender: r, ...o }) => {
|
|
2410
2410
|
var l, s;
|
|
2411
2411
|
return /* @__PURE__ */ t.jsx(
|
|
2412
|
-
|
|
2412
|
+
ae.Text,
|
|
2413
2413
|
{
|
|
2414
2414
|
...o,
|
|
2415
2415
|
type: "secondary",
|
|
@@ -2426,12 +2426,12 @@ const tt = [
|
|
|
2426
2426
|
children: n ? (s = je(e)) == null ? void 0 : s.format(n) : e
|
|
2427
2427
|
}
|
|
2428
2428
|
);
|
|
2429
|
-
}, xt =
|
|
2429
|
+
}, xt = K(xs), ms = ({ showResponseInfo: e = !0, ...n }) => {
|
|
2430
2430
|
var m;
|
|
2431
|
-
const { loadingRegenerate: r, chats: o, reasonMap: l } = ke(), { widgetProps: s } = de(), i =
|
|
2431
|
+
const { loadingRegenerate: r, chats: o, reasonMap: l } = ke(), { widgetProps: s } = de(), i = G(
|
|
2432
2432
|
() => (o == null ? void 0 : o.length) - 1 === (n == null ? void 0 : n.indexChat),
|
|
2433
2433
|
[o]
|
|
2434
|
-
), c =
|
|
2434
|
+
), c = G(() => n == null ? void 0 : n.sender, [n]), a = G(() => ((n == null ? void 0 : n.id) || "").split("|")[0], [n]), f = G(() => l == null ? void 0 : l[a], [l, a, n]);
|
|
2435
2435
|
return ((m = n == null ? void 0 : n.chats) == null ? void 0 : m.length) > 0 ? /* @__PURE__ */ t.jsx(hs, { ...n }) : r && i ? /* @__PURE__ */ t.jsx(tn, {}) : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2436
2436
|
c === "response" && e && /* @__PURE__ */ t.jsx(ht, { name: s == null ? void 0 : s.title, src: wt }),
|
|
2437
2437
|
/* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${c}`}`, children: [
|
|
@@ -2448,17 +2448,17 @@ const tt = [
|
|
|
2448
2448
|
] }),
|
|
2449
2449
|
/* @__PURE__ */ t.jsx(zt, { ...n })
|
|
2450
2450
|
] });
|
|
2451
|
-
}, ft =
|
|
2452
|
-
const e =
|
|
2451
|
+
}, ft = K(ms), ys = () => {
|
|
2452
|
+
const e = $(
|
|
2453
2453
|
"PleaseUploadFile",
|
|
2454
2454
|
"Please upload specify file that needed to complete your request"
|
|
2455
|
-
), n =
|
|
2455
|
+
), n = $("ClickToUpload", "Click to upload"), r = $(
|
|
2456
2456
|
"ContinueWithoutUpload",
|
|
2457
2457
|
"Continue without upload"
|
|
2458
|
-
), o =
|
|
2458
|
+
), o = $(
|
|
2459
2459
|
"UploadRequired",
|
|
2460
2460
|
"Upload is required for this request"
|
|
2461
|
-
), { onSendMsg: l, setFile: s, isLoadingUpload: i, isShowUpload: c, setShowUpload: a, chats: f } = ke(), m =
|
|
2461
|
+
), { onSendMsg: l, setFile: s, isLoadingUpload: i, isShowUpload: c, setShowUpload: a, chats: f } = ke(), m = G(() => {
|
|
2462
2462
|
var y;
|
|
2463
2463
|
const g = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1];
|
|
2464
2464
|
return ((y = g == null ? void 0 : g.attachment) == null ? void 0 : y.is_required) === !0;
|
|
@@ -2519,80 +2519,80 @@ const tt = [
|
|
|
2519
2519
|
]
|
|
2520
2520
|
}
|
|
2521
2521
|
);
|
|
2522
|
-
}, vs =
|
|
2523
|
-
const [e, n] =
|
|
2522
|
+
}, vs = K(ys), bs = () => {
|
|
2523
|
+
const [e, n] = B(!1), [r, o] = B(!1), [l, s] = B(!1), [i, c] = B(3), [a, f] = B(!1), [m, h] = B(""), { widgetProps: g } = de(), { onSendMsg: y, chats: _ } = ke(), { onSubmitPYPwd: v = () => {
|
|
2524
2524
|
}, onCheckPYAccess: S = () => {
|
|
2525
|
-
} } = (g == null ? void 0 : g.onPayslipFn) || {}, E =
|
|
2525
|
+
} } = (g == null ? void 0 : g.onPayslipFn) || {}, E = $(
|
|
2526
2526
|
"ProvidePasswordPayslip",
|
|
2527
2527
|
"Please provide your password account to access the download"
|
|
2528
|
-
), w =
|
|
2528
|
+
), w = $("Cancel", "Cancel"), x = $("Submit", "Submit"), T = $("Password", "Password"), p = $("IsRequired", "Is Required"), b = $(
|
|
2529
2529
|
"PrepareTheFiles",
|
|
2530
2530
|
"Prepare the files"
|
|
2531
|
-
), u =
|
|
2531
|
+
), u = $(
|
|
2532
2532
|
"AttemptPasswordExceeded",
|
|
2533
2533
|
"Your attempt to enter the password exceeded the limit"
|
|
2534
|
-
), C =
|
|
2534
|
+
), C = $(
|
|
2535
2535
|
"VerifyAccessPayslip",
|
|
2536
2536
|
"Please wait, verifying access to your payslip"
|
|
2537
|
-
), A =
|
|
2537
|
+
), A = $(
|
|
2538
2538
|
"WrongPwdPayslip",
|
|
2539
2539
|
"The password you entered is incorrect. Please try again or contact support if you need assistance"
|
|
2540
|
-
), M =
|
|
2540
|
+
), M = $(
|
|
2541
2541
|
"SessionExpired",
|
|
2542
2542
|
"Session expired. Please log in again to continue"
|
|
2543
|
-
), [D] =
|
|
2544
|
-
var
|
|
2545
|
-
s(!0), f(!0), (I = (
|
|
2546
|
-
var
|
|
2547
|
-
const
|
|
2548
|
-
|
|
2549
|
-
})) == null ? void 0 :
|
|
2550
|
-
h(
|
|
2543
|
+
), [D] = we.useForm(), W = () => {
|
|
2544
|
+
var k, U, I;
|
|
2545
|
+
s(!0), f(!0), (I = (U = (k = S()) == null ? void 0 : k.then((re) => {
|
|
2546
|
+
var j, L;
|
|
2547
|
+
const ee = (L = (j = re == null ? void 0 : re.data) == null ? void 0 : j.DATA) == null ? void 0 : L.RESULT;
|
|
2548
|
+
ee && y({ msg: "Valid" }), n(ee), h("");
|
|
2549
|
+
})) == null ? void 0 : U.catch((re) => {
|
|
2550
|
+
h(re == null ? void 0 : re.toString());
|
|
2551
2551
|
})) == null || I.finally(() => {
|
|
2552
2552
|
o(!1), f(!1);
|
|
2553
2553
|
});
|
|
2554
2554
|
}, N = () => {
|
|
2555
2555
|
y({ msg: "cancel" }), s(!1);
|
|
2556
|
-
},
|
|
2557
|
-
var
|
|
2558
|
-
const
|
|
2559
|
-
(
|
|
2560
|
-
var I,
|
|
2561
|
-
o(!0), (
|
|
2562
|
-
var
|
|
2563
|
-
if ((
|
|
2564
|
-
|
|
2556
|
+
}, Y = () => {
|
|
2557
|
+
var U;
|
|
2558
|
+
const k = D == null ? void 0 : D.getFieldValue("pwd");
|
|
2559
|
+
(U = D == null ? void 0 : D.validateFields()) == null || U.then(() => {
|
|
2560
|
+
var I, re;
|
|
2561
|
+
o(!0), (re = (I = v(k)) == null ? void 0 : I.then(({ data: ee }) => {
|
|
2562
|
+
var j;
|
|
2563
|
+
if ((j = ee == null ? void 0 : ee.DATA) != null && j.ISVALID)
|
|
2564
|
+
W();
|
|
2565
2565
|
else {
|
|
2566
2566
|
h(A);
|
|
2567
2567
|
const L = i - 1;
|
|
2568
2568
|
c(L), o(!1), L === 0 && y({ msg: "cancel" });
|
|
2569
2569
|
}
|
|
2570
|
-
})) == null ||
|
|
2571
|
-
var L,
|
|
2572
|
-
const
|
|
2573
|
-
if ((
|
|
2574
|
-
const
|
|
2570
|
+
})) == null || re.catch((ee) => {
|
|
2571
|
+
var L, Z, z, P, te;
|
|
2572
|
+
const j = ee == null ? void 0 : ee.response;
|
|
2573
|
+
if ((j == null ? void 0 : j.status) === 401) {
|
|
2574
|
+
const X = (Z = (L = j == null ? void 0 : j.data) == null ? void 0 : L.ERRORS) == null ? void 0 : Z.includes(
|
|
2575
2575
|
"ACCESS_TOKEN_EXPIRED"
|
|
2576
|
-
),
|
|
2576
|
+
), J = (te = (P = (z = j == null ? void 0 : j.data) == null ? void 0 : z.MESSAGE) == null ? void 0 : P.toLowerCase()) == null ? void 0 : te.includes(
|
|
2577
2577
|
"invalid password"
|
|
2578
2578
|
);
|
|
2579
|
-
if (
|
|
2579
|
+
if (X)
|
|
2580
2580
|
h(M);
|
|
2581
|
-
else if (
|
|
2581
|
+
else if (J) {
|
|
2582
2582
|
h(A);
|
|
2583
|
-
const
|
|
2584
|
-
c(
|
|
2583
|
+
const q = i - 1;
|
|
2584
|
+
c(q), o(!1), q === 0 && y({ msg: "cancel" });
|
|
2585
2585
|
}
|
|
2586
2586
|
} else
|
|
2587
|
-
h(
|
|
2587
|
+
h(ee == null ? void 0 : ee.toString());
|
|
2588
2588
|
o(!1);
|
|
2589
2589
|
});
|
|
2590
2590
|
});
|
|
2591
2591
|
};
|
|
2592
2592
|
return fe(() => {
|
|
2593
|
-
var
|
|
2594
|
-
const
|
|
2595
|
-
((
|
|
2593
|
+
var U;
|
|
2594
|
+
const k = _ == null ? void 0 : _[(_ == null ? void 0 : _.length) - 1];
|
|
2595
|
+
((U = k == null ? void 0 : k.attachment) == null ? void 0 : U.type) === "show_password_wp" && W();
|
|
2596
2596
|
}, [i]), l ? a ? /* @__PURE__ */ t.jsx(
|
|
2597
2597
|
ft,
|
|
2598
2598
|
{
|
|
@@ -2613,16 +2613,16 @@ const tt = [
|
|
|
2613
2613
|
style: { display: "flex", flexDirection: "column" },
|
|
2614
2614
|
className: "w-bubble-chat",
|
|
2615
2615
|
children: /* @__PURE__ */ t.jsxs(
|
|
2616
|
-
|
|
2616
|
+
we,
|
|
2617
2617
|
{
|
|
2618
2618
|
form: D,
|
|
2619
2619
|
layout: "vertical",
|
|
2620
2620
|
style: { display: "flex", flexDirection: "column", gap: 8 },
|
|
2621
2621
|
children: [
|
|
2622
|
-
/* @__PURE__ */ t.jsx(
|
|
2622
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e ? `${b}...` : E }),
|
|
2623
2623
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2624
2624
|
/* @__PURE__ */ t.jsx(
|
|
2625
|
-
|
|
2625
|
+
we.Item,
|
|
2626
2626
|
{
|
|
2627
2627
|
name: "pwd",
|
|
2628
2628
|
rules: [
|
|
@@ -2640,7 +2640,7 @@ const tt = [
|
|
|
2640
2640
|
ue,
|
|
2641
2641
|
{
|
|
2642
2642
|
type: "primary",
|
|
2643
|
-
onClick:
|
|
2643
|
+
onClick: Y,
|
|
2644
2644
|
loading: r,
|
|
2645
2645
|
htmlType: "submit",
|
|
2646
2646
|
children: x
|
|
@@ -2653,9 +2653,9 @@ const tt = [
|
|
|
2653
2653
|
)
|
|
2654
2654
|
}
|
|
2655
2655
|
) : null;
|
|
2656
|
-
}, Cs =
|
|
2656
|
+
}, Cs = K(bs), Ts = ({ ...e }) => {
|
|
2657
2657
|
var c;
|
|
2658
|
-
const { objInitPayload: n } = de(), [r, o] =
|
|
2658
|
+
const { objInitPayload: n } = de(), [r, o] = B(!1), l = $("Error", "Error"), s = G(() => Pn(n == null ? void 0 : n.access_token), [n]), i = () => {
|
|
2659
2659
|
var f, m, h, g;
|
|
2660
2660
|
o(!0);
|
|
2661
2661
|
const a = e == null ? void 0 : e.attachment;
|
|
@@ -2678,11 +2678,11 @@ const tt = [
|
|
|
2678
2678
|
})) == null ? void 0 : h.catch((y) => {
|
|
2679
2679
|
var v, S, E;
|
|
2680
2680
|
const _ = y == null ? void 0 : y.message;
|
|
2681
|
-
(v =
|
|
2681
|
+
(v = Se) == null || v.destroy(), (S = Se) == null || S.config({
|
|
2682
2682
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2683
2683
|
top: 28,
|
|
2684
2684
|
placement: "top"
|
|
2685
|
-
}), (E =
|
|
2685
|
+
}), (E = Se) == null || E.error({
|
|
2686
2686
|
message: l,
|
|
2687
2687
|
description: _,
|
|
2688
2688
|
className: "w-notification-content",
|
|
@@ -2699,7 +2699,7 @@ const tt = [
|
|
|
2699
2699
|
onClick: i,
|
|
2700
2700
|
style: { cursor: "pointer" },
|
|
2701
2701
|
children: /* @__PURE__ */ t.jsxs(Yr, { spinning: r, children: [
|
|
2702
|
-
/* @__PURE__ */ t.jsx(
|
|
2702
|
+
/* @__PURE__ */ t.jsx(ae.Link, { children: (c = e == null ? void 0 : e.attachment) == null ? void 0 : c.filename }),
|
|
2703
2703
|
/* @__PURE__ */ t.jsx(
|
|
2704
2704
|
ue,
|
|
2705
2705
|
{
|
|
@@ -2716,8 +2716,8 @@ const tt = [
|
|
|
2716
2716
|
] })
|
|
2717
2717
|
}
|
|
2718
2718
|
);
|
|
2719
|
-
}, Es =
|
|
2720
|
-
const n = ne(), r =
|
|
2719
|
+
}, Es = K(Ts), Ss = ({ ...e }) => {
|
|
2720
|
+
const n = ne(), r = $("DownloadChart", "Download Chart"), o = G(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), l = G(() => {
|
|
2721
2721
|
var i;
|
|
2722
2722
|
return (i = o == null ? void 0 : o.data) == null ? void 0 : i.map((c, a) => {
|
|
2723
2723
|
var f, m;
|
|
@@ -2766,7 +2766,7 @@ const tt = [
|
|
|
2766
2766
|
}
|
|
2767
2767
|
) })
|
|
2768
2768
|
] });
|
|
2769
|
-
}, ws =
|
|
2769
|
+
}, ws = K(Ss), _s = ({ ...e }) => {
|
|
2770
2770
|
var n, r, o, l, s;
|
|
2771
2771
|
switch (!0) {
|
|
2772
2772
|
case ((n = nt(e)) == null ? void 0 : n.text):
|
|
@@ -2782,7 +2782,7 @@ const tt = [
|
|
|
2782
2782
|
default:
|
|
2783
2783
|
return null;
|
|
2784
2784
|
}
|
|
2785
|
-
}, js =
|
|
2785
|
+
}, js = K(_s), ks = () => {
|
|
2786
2786
|
const { isOpenWidget: e, widgetProps: n } = de(), { chats: r, isWaitResponse: o } = ke(), { activeTab: l } = Ue();
|
|
2787
2787
|
return fe(() => {
|
|
2788
2788
|
$e();
|
|
@@ -2803,8 +2803,8 @@ const tt = [
|
|
|
2803
2803
|
}) }),
|
|
2804
2804
|
o && /* @__PURE__ */ t.jsx(tn, {})
|
|
2805
2805
|
] }) : null;
|
|
2806
|
-
}, As =
|
|
2807
|
-
const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = de(), o =
|
|
2806
|
+
}, As = K(ks), ir = () => {
|
|
2807
|
+
const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = de(), o = G(() => {
|
|
2808
2808
|
var s;
|
|
2809
2809
|
return {
|
|
2810
2810
|
Authorization: `Bearer ${e == null ? void 0 : e.access_token}`,
|
|
@@ -2903,11 +2903,11 @@ const tt = [
|
|
|
2903
2903
|
e != null && e.current && ((c = e == null ? void 0 : e.current) == null || c.abort(), e.current = new AbortController());
|
|
2904
2904
|
}, fe(() => () => s.abort(), []), s;
|
|
2905
2905
|
}, Rs = () => {
|
|
2906
|
-
var
|
|
2907
|
-
const e =
|
|
2906
|
+
var Y;
|
|
2907
|
+
const e = $(
|
|
2908
2908
|
"ContinueWithoutUpload",
|
|
2909
2909
|
"Continue without Upload"
|
|
2910
|
-
), n =
|
|
2910
|
+
), n = $(
|
|
2911
2911
|
"UploadRequired",
|
|
2912
2912
|
"Upload is required for this request"
|
|
2913
2913
|
), {
|
|
@@ -2924,56 +2924,72 @@ const tt = [
|
|
|
2924
2924
|
setShowUpload: g,
|
|
2925
2925
|
isLoadingUpload: y,
|
|
2926
2926
|
setLoadingUpload: _
|
|
2927
|
-
} = ke(), { isUserInputHide: v } = de(), { isActiveTabVA: S } = Ue(), E =
|
|
2927
|
+
} = ke(), { isUserInputHide: v } = de(), { isActiveTabVA: S } = Ue(), E = G(() => {
|
|
2928
2928
|
var U;
|
|
2929
|
-
const
|
|
2930
|
-
return (
|
|
2931
|
-
}, [a]), w =
|
|
2929
|
+
const k = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2930
|
+
return (k == null ? void 0 : k.sender) === "response" && ((U = k == null ? void 0 : k.attachment) == null ? void 0 : U.type) === "fileuploader";
|
|
2931
|
+
}, [a]), w = G(() => {
|
|
2932
2932
|
var U;
|
|
2933
|
-
const
|
|
2934
|
-
return ((U =
|
|
2935
|
-
}, [a]), x = ne(), [T, p] =
|
|
2936
|
-
var
|
|
2933
|
+
const k = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2934
|
+
return ((U = k == null ? void 0 : k.attachment) == null ? void 0 : U.is_required) === !0;
|
|
2935
|
+
}, [a]), x = ne(), [T, p] = B(!1), [b, u] = B(!1), C = G(() => l || !b, [b, l]), A = mt(), M = (k, U) => {
|
|
2936
|
+
var I, re, ee;
|
|
2937
|
+
(I = Se) == null || I.destroy(), (re = Se) == null || re.config({
|
|
2938
|
+
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2939
|
+
top: 28,
|
|
2940
|
+
placement: "top",
|
|
2941
|
+
duration: 3
|
|
2942
|
+
}), (ee = Se) == null || ee[k]({
|
|
2943
|
+
message: U,
|
|
2944
|
+
className: "w-notification-content"
|
|
2945
|
+
});
|
|
2946
|
+
}, D = () => {
|
|
2947
|
+
var z, P, te, X, J;
|
|
2937
2948
|
_(!0);
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2949
|
+
const k = new FormData(), U = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], re = `${((z = U == null ? void 0 : U.attachment) == null ? void 0 : z.prefix) || "WP"}-${+/* @__PURE__ */ new Date()}`, ee = /* @__PURE__ */ new Date(), j = ee.getFullYear(), L = String(ee.getMonth() + 1).padStart(2, "0"), Z = `${j}/${L}`;
|
|
2950
|
+
k.append("file", i), k == null || k.append("rename", re), k == null || k.append("action", "UPLOAD"), k == null || k.append("filefield", re), k == null || k.append("method", "eligible"), k == null || k.append("hash", !1), k == null || k.append("subFolder", Z), k == null || k.append("code", (P = U == null ? void 0 : U.attachment) == null ? void 0 : P.code), (J = (X = (te = A({
|
|
2940
2951
|
apiType: "lc",
|
|
2941
2952
|
params: {
|
|
2942
2953
|
ofid: "SFUtil.UploadFile"
|
|
2943
2954
|
},
|
|
2944
|
-
data:
|
|
2945
|
-
})) == null ? void 0 :
|
|
2946
|
-
var
|
|
2947
|
-
const
|
|
2948
|
-
console.log("r",
|
|
2949
|
-
const
|
|
2950
|
-
r({ msg: `sf-filename ${
|
|
2951
|
-
})) == null
|
|
2955
|
+
data: k
|
|
2956
|
+
})) == null ? void 0 : te.then((q) => {
|
|
2957
|
+
var se, O, me;
|
|
2958
|
+
const F = (se = q == null ? void 0 : q.data) == null ? void 0 : se.DATA;
|
|
2959
|
+
console.log("r", q, F);
|
|
2960
|
+
const V = (me = (O = F == null ? void 0 : F.FILENAMES) == null ? void 0 : O[0]) == null ? void 0 : me.SERVERFILE;
|
|
2961
|
+
V ? (M("success", "Upload Success"), r({ msg: `sf-filename ${V}` }), g(!1)) : M("error", "Upload Failed");
|
|
2962
|
+
})) == null ? void 0 : X.catch((q) => {
|
|
2963
|
+
var V, se;
|
|
2964
|
+
console.error("Upload error:", q);
|
|
2965
|
+
const F = ((se = (V = q == null ? void 0 : q.response) == null ? void 0 : V.data) == null ? void 0 : se.MESSAGE) || "Failed to Upload File";
|
|
2966
|
+
M("error", F);
|
|
2967
|
+
})) == null || J.finally(() => {
|
|
2952
2968
|
_(!1);
|
|
2953
2969
|
});
|
|
2954
|
-
},
|
|
2955
|
-
var
|
|
2956
|
-
const
|
|
2957
|
-
if (!(
|
|
2958
|
-
u(!1), r({ msg:
|
|
2970
|
+
}, W = () => {
|
|
2971
|
+
var I, re, ee, j;
|
|
2972
|
+
const k = (ee = (re = (I = x == null ? void 0 : x.current) == null ? void 0 : I.resizableTextArea) == null ? void 0 : re.textArea) == null ? void 0 : ee.value;
|
|
2973
|
+
if (!(k != null && k.trim()) || l) return;
|
|
2974
|
+
u(!1), r({ msg: k }), p(!T);
|
|
2959
2975
|
const U = {
|
|
2960
|
-
text:
|
|
2976
|
+
text: k,
|
|
2961
2977
|
sender: "client",
|
|
2962
2978
|
type: "text",
|
|
2963
|
-
timestamp: (
|
|
2979
|
+
timestamp: (j = je()) == null ? void 0 : j.format("hh:mm A")
|
|
2964
2980
|
};
|
|
2965
|
-
o((
|
|
2966
|
-
},
|
|
2981
|
+
o((L) => [...L, U]), $e();
|
|
2982
|
+
}, N = () => {
|
|
2967
2983
|
r({ msg: "SKIP_WAITING_RESPONSE" });
|
|
2968
2984
|
};
|
|
2969
2985
|
return fe(() => {
|
|
2970
|
-
var
|
|
2971
|
-
x != null && x.current && S && ((
|
|
2986
|
+
var k;
|
|
2987
|
+
x != null && x.current && S && ((k = x == null ? void 0 : x.current) == null || k.focus());
|
|
2972
2988
|
}, [S]), fe(() => {
|
|
2973
2989
|
E && g(!0);
|
|
2974
2990
|
}, [E]), v ? null : h ? /* @__PURE__ */ t.jsxs("div", { className: "w-input-container", style: { alignItems: "center" }, children: [
|
|
2975
|
-
/* @__PURE__ */ t.jsx(
|
|
2976
|
-
((
|
|
2991
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: i == null ? void 0 : i.name }),
|
|
2992
|
+
((Y = Object == null ? void 0 : Object.keys(i || {})) == null ? void 0 : Y.length) > 0 ? /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2977
2993
|
/* @__PURE__ */ t.jsx(
|
|
2978
2994
|
ue,
|
|
2979
2995
|
{
|
|
@@ -2991,7 +3007,7 @@ const tt = [
|
|
|
2991
3007
|
style: { backgroundColor: "var(--primary-color, #395ebc)" },
|
|
2992
3008
|
icon: /* @__PURE__ */ t.jsx(xe, { type: "send" }),
|
|
2993
3009
|
shape: "circle",
|
|
2994
|
-
onClick:
|
|
3010
|
+
onClick: D,
|
|
2995
3011
|
loading: y
|
|
2996
3012
|
}
|
|
2997
3013
|
)
|
|
@@ -3016,14 +3032,14 @@ const tt = [
|
|
|
3016
3032
|
disabled: m || !f,
|
|
3017
3033
|
ref: x,
|
|
3018
3034
|
placeholder: "Type a message...",
|
|
3019
|
-
onKeyDown: (
|
|
3020
|
-
((
|
|
3035
|
+
onKeyDown: (k) => {
|
|
3036
|
+
((k == null ? void 0 : k.code) === "Enter" || (k == null ? void 0 : k.key) === "Enter") && !(k != null && k.shiftKey) && W();
|
|
3021
3037
|
},
|
|
3022
|
-
onChange: ({ target: { value:
|
|
3038
|
+
onChange: ({ target: { value: k } }) => {
|
|
3023
3039
|
const U = /\S/;
|
|
3024
3040
|
jt({
|
|
3025
|
-
input_va_value:
|
|
3026
|
-
}),
|
|
3041
|
+
input_va_value: k
|
|
3042
|
+
}), k && (U != null && U.test(k)) ? u(!0) : k != null && k.trim() || u(!1);
|
|
3027
3043
|
}
|
|
3028
3044
|
},
|
|
3029
3045
|
T
|
|
@@ -3034,7 +3050,7 @@ const tt = [
|
|
|
3034
3050
|
style: { border: "none" },
|
|
3035
3051
|
icon: /* @__PURE__ */ t.jsx(xe, { type: "stop" }),
|
|
3036
3052
|
shape: "circle",
|
|
3037
|
-
onClick:
|
|
3053
|
+
onClick: N,
|
|
3038
3054
|
size: "large"
|
|
3039
3055
|
}
|
|
3040
3056
|
) : /* @__PURE__ */ t.jsx(
|
|
@@ -3045,12 +3061,12 @@ const tt = [
|
|
|
3045
3061
|
style: { backgroundColor: "var(--primary-color, #395ebc)" },
|
|
3046
3062
|
icon: /* @__PURE__ */ t.jsx(xe, { type: "send" }),
|
|
3047
3063
|
shape: "circle",
|
|
3048
|
-
onClick:
|
|
3064
|
+
onClick: W
|
|
3049
3065
|
}
|
|
3050
3066
|
)
|
|
3051
3067
|
] });
|
|
3052
|
-
}, Ds =
|
|
3053
|
-
const n =
|
|
3068
|
+
}, Ds = K(Rs), Os = ({ taskStatus: e }) => {
|
|
3069
|
+
const n = $("InProgress", "In Progress"), r = $("New", "New"), o = $("Closed", "Closed"), l = $("Done", "Done"), s = $("HDCancelled", "Cancelled"), i = {
|
|
3054
3070
|
"In Progress": n,
|
|
3055
3071
|
Open: r,
|
|
3056
3072
|
New: r,
|
|
@@ -3066,9 +3082,9 @@ const tt = [
|
|
|
3066
3082
|
Fixed: "#bbfab7",
|
|
3067
3083
|
Done: "#bbfab7",
|
|
3068
3084
|
Cancelled: "#FFF2D6"
|
|
3069
|
-
}, a =
|
|
3085
|
+
}, a = G(() => c[e] || c.Closed, [e]), f = G(() => i[e] || e, [e]);
|
|
3070
3086
|
return /* @__PURE__ */ t.jsx(Vr, { color: a, children: /* @__PURE__ */ t.jsx(
|
|
3071
|
-
|
|
3087
|
+
ae.Text,
|
|
3072
3088
|
{
|
|
3073
3089
|
className: "primary-color-active",
|
|
3074
3090
|
style: { width: "100%", textAlign: "center" },
|
|
@@ -3076,7 +3092,7 @@ const tt = [
|
|
|
3076
3092
|
children: f
|
|
3077
3093
|
}
|
|
3078
3094
|
) }, e);
|
|
3079
|
-
}, ar =
|
|
3095
|
+
}, ar = K(Os), Ls = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
|
|
3080
3096
|
"div",
|
|
3081
3097
|
{
|
|
3082
3098
|
className: "w-ticket-card-container",
|
|
@@ -3085,7 +3101,7 @@ const tt = [
|
|
|
3085
3101
|
},
|
|
3086
3102
|
children: [
|
|
3087
3103
|
/* @__PURE__ */ t.jsx(
|
|
3088
|
-
|
|
3104
|
+
ae.Text,
|
|
3089
3105
|
{
|
|
3090
3106
|
strong: !0,
|
|
3091
3107
|
style: {
|
|
@@ -3099,8 +3115,8 @@ const tt = [
|
|
|
3099
3115
|
),
|
|
3100
3116
|
/* @__PURE__ */ t.jsxs("div", { className: "w-ticket-card-content-container", children: [
|
|
3101
3117
|
/* @__PURE__ */ t.jsxs("div", { className: "w-ticket-card-cat-code", children: [
|
|
3102
|
-
/* @__PURE__ */ t.jsx(
|
|
3103
|
-
/* @__PURE__ */ t.jsx(
|
|
3118
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: (n == null ? void 0 : n.TASK_CATEGORY) || Cn }),
|
|
3119
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: (n == null ? void 0 : n.TASK_CODE) || Cn })
|
|
3104
3120
|
] }),
|
|
3105
3121
|
/* @__PURE__ */ t.jsxs(
|
|
3106
3122
|
"div",
|
|
@@ -3111,15 +3127,15 @@ const tt = [
|
|
|
3111
3127
|
},
|
|
3112
3128
|
children: [
|
|
3113
3129
|
/* @__PURE__ */ t.jsx(ar, { taskStatus: n == null ? void 0 : n.TASK_STATUS }),
|
|
3114
|
-
/* @__PURE__ */ t.jsx(
|
|
3130
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: n == null ? void 0 : n.CREATED_DATE })
|
|
3115
3131
|
]
|
|
3116
3132
|
}
|
|
3117
3133
|
)
|
|
3118
3134
|
] })
|
|
3119
3135
|
]
|
|
3120
3136
|
}
|
|
3121
|
-
), Ms =
|
|
3122
|
-
const n = mt(), [r, o] =
|
|
3137
|
+
), Ms = K(Ls), cr = ze({}), He = () => Ge(cr), Ns = ({ children: e }) => {
|
|
3138
|
+
const n = mt(), [r, o] = B([]), [l, s] = B(""), [i, c] = B(!1), [a, f] = B(!0), [m, h] = B(0), g = (y) => {
|
|
3123
3139
|
var _, v, S, E;
|
|
3124
3140
|
f(!0), (E = (S = n({
|
|
3125
3141
|
endpoint: "/helpdesk/myticket/ticket-list",
|
|
@@ -3169,7 +3185,7 @@ const tt = [
|
|
|
3169
3185
|
}
|
|
3170
3186
|
);
|
|
3171
3187
|
}, Fs = () => {
|
|
3172
|
-
const e =
|
|
3188
|
+
const e = $("SubjectSearch", "Subject Search"), n = $("AdvanceFilter", "Advance Filter"), r = ne(null), { getListTicket: o, setOpenFilter: l, loadingListTicket: s, countFilters: i } = He();
|
|
3173
3189
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 12 }, children: [
|
|
3174
3190
|
/* @__PURE__ */ t.jsx(
|
|
3175
3191
|
pt,
|
|
@@ -3196,8 +3212,8 @@ const tt = [
|
|
|
3196
3212
|
}
|
|
3197
3213
|
) }) })
|
|
3198
3214
|
] }) });
|
|
3199
|
-
}, Is =
|
|
3200
|
-
const n = ne(null), r = ne(0), o = ne(!1), l = ne(null), [s, i] =
|
|
3215
|
+
}, Is = K(Fs), lr = ze({}), We = () => Ge(lr), $s = ({ children: e }) => {
|
|
3216
|
+
const n = ne(null), r = ne(0), o = ne(!1), l = ne(null), [s, i] = B([]), [c, a] = B(0), [f, m] = B(!1), { objInitPayload: h, parsedJWT: g, isFirstRenderHelpdesk: y, setShowReadyWSHD: _ } = de(), v = ir(), S = (T) => {
|
|
3201
3217
|
const p = new WebSocket(T);
|
|
3202
3218
|
p.onopen = () => {
|
|
3203
3219
|
o.current = !0, r.current = 0, a(0), _(!0);
|
|
@@ -3210,8 +3226,8 @@ const tt = [
|
|
|
3210
3226
|
), o.current = !1, _(!1), !(b != null && b.wasClean) && (r == null ? void 0 : r.current) < dt && (r.current += 1, a((u) => u + 1), clearTimeout(l.current), l.current = setTimeout(E, 2e3));
|
|
3211
3227
|
}, p.onmessage = w(p), n.current = p;
|
|
3212
3228
|
}, E = async () => {
|
|
3213
|
-
var
|
|
3214
|
-
if (((
|
|
3229
|
+
var W, N, Y;
|
|
3230
|
+
if (((W = n.current) == null ? void 0 : W.readyState) === (WebSocket == null ? void 0 : WebSocket.CONNECTING)) return;
|
|
3215
3231
|
const {
|
|
3216
3232
|
access_token: T,
|
|
3217
3233
|
companyid: p = "",
|
|
@@ -3229,25 +3245,25 @@ const tt = [
|
|
|
3229
3245
|
COMPANY_ID: p.toString(),
|
|
3230
3246
|
COMPANY_CODE: b.toLowerCase(),
|
|
3231
3247
|
LANGUAGE: u,
|
|
3232
|
-
ACC_NAME: (
|
|
3248
|
+
ACC_NAME: (Y = g == null ? void 0 : g.INSTANCE) == null ? void 0 : Y.toLowerCase(),
|
|
3233
3249
|
TOKEN: A
|
|
3234
3250
|
};
|
|
3235
3251
|
try {
|
|
3236
|
-
const
|
|
3252
|
+
const k = await wo(
|
|
3237
3253
|
D,
|
|
3238
3254
|
yo
|
|
3239
3255
|
);
|
|
3240
|
-
if (!
|
|
3256
|
+
if (!k || o.current || (r == null ? void 0 : r.current) >= dt) {
|
|
3241
3257
|
console.warn(
|
|
3242
3258
|
`${et} - Skipping WebSocket connection attempt.`
|
|
3243
3259
|
);
|
|
3244
3260
|
return;
|
|
3245
3261
|
}
|
|
3246
|
-
n.current && n.current.close(), S(`${M}?t=${
|
|
3247
|
-
} catch (
|
|
3262
|
+
n.current && n.current.close(), S(`${M}?t=${k}`);
|
|
3263
|
+
} catch (k) {
|
|
3248
3264
|
console.error(
|
|
3249
3265
|
`${et} - Failed to encrypt token:`,
|
|
3250
|
-
|
|
3266
|
+
k
|
|
3251
3267
|
);
|
|
3252
3268
|
}
|
|
3253
3269
|
}, w = (T) => (p) => {
|
|
@@ -3345,9 +3361,9 @@ const tt = [
|
|
|
3345
3361
|
}
|
|
3346
3362
|
)
|
|
3347
3363
|
] });
|
|
3348
|
-
}, Hs =
|
|
3364
|
+
}, Hs = K(Us), Ws = ({ children: e, open: n, onClose: r, footer: o, styleContainer: l }) => {
|
|
3349
3365
|
var g;
|
|
3350
|
-
const [s, i] =
|
|
3366
|
+
const [s, i] = B(!1), c = ne(), a = ne(null), f = ne(), m = G(() => n ? "w-fade-in-animate" : "w-fade-out-animate", [n]), h = (y) => {
|
|
3351
3367
|
y.code === "Escape" && !y.shiftKey && !y.altKey && !y.ctrlKey && y.key === "Escape" && (y.stopPropagation(), typeof r == "function" && r());
|
|
3352
3368
|
};
|
|
3353
3369
|
return fe(() => {
|
|
@@ -3378,8 +3394,8 @@ const tt = [
|
|
|
3378
3394
|
]
|
|
3379
3395
|
}
|
|
3380
3396
|
);
|
|
3381
|
-
}, ur =
|
|
3382
|
-
const [n, r] =
|
|
3397
|
+
}, ur = K(Ws), dr = ze({}), it = () => Ge(dr), Bs = ({ children: e }) => {
|
|
3398
|
+
const [n, r] = B([]), [o, l] = B({}), [s, i] = B(!0), [c, a] = B({}), f = ne(!1), m = mt(), { ticketId: h } = He(), { ws: g, setGetResponse: y } = We(), { parsedJWT: _ } = de(), v = G(() => {
|
|
3383
3399
|
var C;
|
|
3384
3400
|
const T = (o == null ? void 0 : o.CREATED_BY) ?? {}, p = (o == null ? void 0 : o.ASSIGNEE) ?? {}, b = (o == null ? void 0 : o.OTHER_ASSIGNEE) ?? [], u = (C = [T, p, ...b].map((A) => ({
|
|
3385
3401
|
...A
|
|
@@ -3399,12 +3415,12 @@ const tt = [
|
|
|
3399
3415
|
TASK_ID: h
|
|
3400
3416
|
}
|
|
3401
3417
|
})) == null ? void 0 : T.then((b) => {
|
|
3402
|
-
var u, C, A, M, D,
|
|
3418
|
+
var u, C, A, M, D, W;
|
|
3403
3419
|
if (((A = (C = (u = b == null ? void 0 : b.data) == null ? void 0 : u.DATA) == null ? void 0 : C.LIST) == null ? void 0 : A.length) > 0) {
|
|
3404
|
-
const N = (
|
|
3405
|
-
...
|
|
3420
|
+
const N = (W = (D = (M = b == null ? void 0 : b.data) == null ? void 0 : M.DATA) == null ? void 0 : D.LIST) == null ? void 0 : W.map((Y) => ({
|
|
3421
|
+
...Y,
|
|
3406
3422
|
ACTOR: {
|
|
3407
|
-
...
|
|
3423
|
+
...Y == null ? void 0 : Y.ACTOR
|
|
3408
3424
|
}
|
|
3409
3425
|
}));
|
|
3410
3426
|
r(St(N));
|
|
@@ -3464,10 +3480,10 @@ const tt = [
|
|
|
3464
3480
|
}
|
|
3465
3481
|
);
|
|
3466
3482
|
}, Ys = ({ onClose: e }) => {
|
|
3467
|
-
const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: l } = it(), { userOnline: s } = We(), i =
|
|
3483
|
+
const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: l } = it(), { userOnline: s } = We(), i = G(() => {
|
|
3468
3484
|
var a;
|
|
3469
3485
|
return (a = r == null ? void 0 : r.map((f) => f == null ? void 0 : f.FULL_NAME)) == null ? void 0 : a.join(", ");
|
|
3470
|
-
}, [r]), c =
|
|
3486
|
+
}, [r]), c = G(() => n ? "click" : "hover", [n]);
|
|
3471
3487
|
return l ? /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-detail-header-container", children: [
|
|
3472
3488
|
/* @__PURE__ */ t.jsx(De.Avatar, {}),
|
|
3473
3489
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
@@ -3522,7 +3538,7 @@ const tt = [
|
|
|
3522
3538
|
{
|
|
3523
3539
|
title: `${o == null ? void 0 : o.TASK_CODE} - ${o == null ? void 0 : o.SUBJECT}`,
|
|
3524
3540
|
trigger: c,
|
|
3525
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
3541
|
+
children: /* @__PURE__ */ t.jsxs(ae.Text, { className: "w-ticket-detail-header-text", children: [
|
|
3526
3542
|
o == null ? void 0 : o.TASK_CODE,
|
|
3527
3543
|
" - ",
|
|
3528
3544
|
o == null ? void 0 : o.SUBJECT
|
|
@@ -3530,7 +3546,7 @@ const tt = [
|
|
|
3530
3546
|
}
|
|
3531
3547
|
),
|
|
3532
3548
|
/* @__PURE__ */ t.jsx(Ye, { title: i, trigger: c, children: /* @__PURE__ */ t.jsx(
|
|
3533
|
-
|
|
3549
|
+
ae.Text,
|
|
3534
3550
|
{
|
|
3535
3551
|
type: "secondary",
|
|
3536
3552
|
className: "w-ticket-detail-header-text",
|
|
@@ -3544,8 +3560,8 @@ const tt = [
|
|
|
3544
3560
|
] }),
|
|
3545
3561
|
/* @__PURE__ */ t.jsx(ar, { taskStatus: o == null ? void 0 : o.STATUS })
|
|
3546
3562
|
] });
|
|
3547
|
-
}, Vs =
|
|
3548
|
-
const n =
|
|
3563
|
+
}, Vs = K(Ys), zs = ({ ...e }) => {
|
|
3564
|
+
const n = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
|
|
3549
3565
|
return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${n}`}`, children: [
|
|
3550
3566
|
/* @__PURE__ */ t.jsx(
|
|
3551
3567
|
"p",
|
|
@@ -3564,8 +3580,8 @@ const tt = [
|
|
|
3564
3580
|
}
|
|
3565
3581
|
)
|
|
3566
3582
|
] });
|
|
3567
|
-
}, Gs =
|
|
3568
|
-
const n =
|
|
3583
|
+
}, Gs = K(zs), qs = ({ ...e }) => {
|
|
3584
|
+
const n = $("Download", "Download"), r = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), o = G(() => {
|
|
3569
3585
|
var a;
|
|
3570
3586
|
const c = e == null ? void 0 : e.ATTACHMENT;
|
|
3571
3587
|
if (c)
|
|
@@ -3576,13 +3592,13 @@ const tt = [
|
|
|
3576
3592
|
return c;
|
|
3577
3593
|
}
|
|
3578
3594
|
return "";
|
|
3579
|
-
}, [e]), l =
|
|
3595
|
+
}, [e]), l = G(() => {
|
|
3580
3596
|
if (o != null && o.includes(".")) {
|
|
3581
3597
|
const c = o == null ? void 0 : o.split(".");
|
|
3582
3598
|
return `.${c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]}`;
|
|
3583
3599
|
}
|
|
3584
3600
|
return "";
|
|
3585
|
-
}, [e, o]), s =
|
|
3601
|
+
}, [e, o]), s = G(() => Nt == null ? void 0 : Nt.includes(l), [e, l]), i = () => {
|
|
3586
3602
|
Xt({
|
|
3587
3603
|
downloadURL: e == null ? void 0 : e.ATTACHMENT,
|
|
3588
3604
|
fileName: o,
|
|
@@ -3598,7 +3614,7 @@ const tt = [
|
|
|
3598
3614
|
s ? /* @__PURE__ */ t.jsx(en, { src: e == null ? void 0 : e.ATTACHMENT, fallback: mo }) : /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
3599
3615
|
/* @__PURE__ */ t.jsx(xe, { type: "file" }),
|
|
3600
3616
|
/* @__PURE__ */ t.jsx(
|
|
3601
|
-
|
|
3617
|
+
ae.Link,
|
|
3602
3618
|
{
|
|
3603
3619
|
onClick: i,
|
|
3604
3620
|
style: { display: "block", width: 160 },
|
|
@@ -3632,8 +3648,8 @@ const tt = [
|
|
|
3632
3648
|
]
|
|
3633
3649
|
}
|
|
3634
3650
|
) });
|
|
3635
|
-
}, Ks =
|
|
3636
|
-
const n =
|
|
3651
|
+
}, Ks = K(qs), Ps = ({ ...e }) => {
|
|
3652
|
+
const n = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
|
|
3637
3653
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-info-chat-container", children: [
|
|
3638
3654
|
/* @__PURE__ */ t.jsx(
|
|
3639
3655
|
xt,
|
|
@@ -3643,9 +3659,9 @@ const tt = [
|
|
|
3643
3659
|
sender: n
|
|
3644
3660
|
}
|
|
3645
3661
|
),
|
|
3646
|
-
/* @__PURE__ */ t.jsx(
|
|
3662
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.MESSAGE })
|
|
3647
3663
|
] });
|
|
3648
|
-
}, Xs =
|
|
3664
|
+
}, Xs = K(Ps), fr = () => {
|
|
3649
3665
|
const { widgetProps: e } = de(), n = Ze.enc.Hex.parse(
|
|
3650
3666
|
Ze.enc.Utf8.parse(e == null ? void 0 : e.keyEncrypt).toString()
|
|
3651
3667
|
), r = {
|
|
@@ -3674,16 +3690,16 @@ const tt = [
|
|
|
3674
3690
|
encrypt: l
|
|
3675
3691
|
};
|
|
3676
3692
|
}, Js = ({ ...e }) => {
|
|
3677
|
-
const n =
|
|
3693
|
+
const n = $("ViewFAQ", "View FAQ"), r = $(
|
|
3678
3694
|
"FAQUnavailable",
|
|
3679
3695
|
"FAQ unavailable"
|
|
3680
|
-
), o =
|
|
3696
|
+
), o = $(
|
|
3681
3697
|
"ThisFAQIsUnavailable",
|
|
3682
3698
|
"This FAQ is unavailable"
|
|
3683
|
-
), { paramsEncrypt: l } = fr(), { widgetProps: s } = de(), i =
|
|
3699
|
+
), { paramsEncrypt: l } = fr(), { widgetProps: s } = de(), i = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), c = G(() => e == null ? void 0 : e.FAQ_ID, [e]);
|
|
3684
3700
|
return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${i}`}`, children: [
|
|
3685
3701
|
/* @__PURE__ */ t.jsx(
|
|
3686
|
-
|
|
3702
|
+
ae.Text,
|
|
3687
3703
|
{
|
|
3688
3704
|
style: {
|
|
3689
3705
|
backgroundColor: "rgb(244, 245, 246)",
|
|
@@ -3708,7 +3724,7 @@ const tt = [
|
|
|
3708
3724
|
},
|
|
3709
3725
|
children: n
|
|
3710
3726
|
}
|
|
3711
|
-
) : /* @__PURE__ */ t.jsx(
|
|
3727
|
+
) : /* @__PURE__ */ t.jsx(ae.Text, { children: o }),
|
|
3712
3728
|
/* @__PURE__ */ t.jsx(
|
|
3713
3729
|
xt,
|
|
3714
3730
|
{
|
|
@@ -3718,7 +3734,7 @@ const tt = [
|
|
|
3718
3734
|
}
|
|
3719
3735
|
)
|
|
3720
3736
|
] });
|
|
3721
|
-
}, Zs =
|
|
3737
|
+
}, Zs = K(Js), Qs = ({ ...e }) => {
|
|
3722
3738
|
switch (e == null ? void 0 : e.CHAT_TYPE) {
|
|
3723
3739
|
case "info":
|
|
3724
3740
|
return /* @__PURE__ */ t.jsx(Xs, { ...e });
|
|
@@ -3729,9 +3745,9 @@ const tt = [
|
|
|
3729
3745
|
default:
|
|
3730
3746
|
return null;
|
|
3731
3747
|
}
|
|
3732
|
-
}, ei =
|
|
3748
|
+
}, ei = K(Qs), ti = () => {
|
|
3733
3749
|
var _;
|
|
3734
|
-
const [e, n] =
|
|
3750
|
+
const [e, n] = B([]), r = $("And", "and"), o = $("IsTyping", "Is Typing"), l = $("People", "People"), { employees: s, setTypingOtherEmp: i, objTypingOtherEmp: c } = it(), { ws: a, setGetResponse: f } = We(), { parsedJWT: m } = de(), h = G(() => e == null ? void 0 : e.filter((v) => c == null ? void 0 : c[v == null ? void 0 : v.EMP_ID]), [c, e]), g = G(() => {
|
|
3735
3751
|
const v = h == null ? void 0 : h.map((S) => S == null ? void 0 : S.FULL_NAME);
|
|
3736
3752
|
if ((h == null ? void 0 : h.length) > 2) {
|
|
3737
3753
|
const S = v == null ? void 0 : v.filter((w, x) => x <= 1), E = v == null ? void 0 : v.filter((w, x) => x > 1);
|
|
@@ -3786,12 +3802,12 @@ const tt = [
|
|
|
3786
3802
|
children: h == null ? void 0 : h.map((v, S) => /* @__PURE__ */ t.jsx(Ye, { title: v == null ? void 0 : v.FULL_NAME, children: /* @__PURE__ */ t.jsx(Ve, { src: v == null ? void 0 : v.PHOTO, nameFallback: v == null ? void 0 : v.FULL_NAME }) }, S))
|
|
3787
3803
|
}
|
|
3788
3804
|
),
|
|
3789
|
-
/* @__PURE__ */ t.jsx(
|
|
3805
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: g }),
|
|
3790
3806
|
(h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ t.jsx(sr, {}) : null
|
|
3791
3807
|
]
|
|
3792
3808
|
}
|
|
3793
3809
|
);
|
|
3794
|
-
}, ni =
|
|
3810
|
+
}, ni = K(ti), ri = () => {
|
|
3795
3811
|
var s;
|
|
3796
3812
|
const { chats: e } = it(), { widgetProps: n } = de(), { activeTab: r } = Ue(), o = ne(), { xs: l } = Me.useBreakpoint();
|
|
3797
3813
|
return fe(() => {
|
|
@@ -3828,9 +3844,9 @@ const tt = [
|
|
|
3828
3844
|
]
|
|
3829
3845
|
}
|
|
3830
3846
|
);
|
|
3831
|
-
}, oi =
|
|
3847
|
+
}, oi = K(ri), si = () => {
|
|
3832
3848
|
var s, i;
|
|
3833
|
-
const { chats: e, loadingChats: n } = it(), { widgetProps: r } = de(), { xs: o } = Me.useBreakpoint(), l =
|
|
3849
|
+
const { chats: e, loadingChats: n } = it(), { widgetProps: r } = de(), { xs: o } = Me.useBreakpoint(), l = G(() => {
|
|
3834
3850
|
var a;
|
|
3835
3851
|
const c = [It];
|
|
3836
3852
|
return o && (r != null && r.isSF ? c == null || c.push(
|
|
@@ -3893,7 +3909,7 @@ const tt = [
|
|
|
3893
3909
|
children: /* @__PURE__ */ t.jsx(zn, {})
|
|
3894
3910
|
}
|
|
3895
3911
|
) : /* @__PURE__ */ t.jsx(oi, {});
|
|
3896
|
-
}, ii =
|
|
3912
|
+
}, ii = K(si), ai = ({ ...e }) => {
|
|
3897
3913
|
const n = ne(0);
|
|
3898
3914
|
return /* @__PURE__ */ t.jsxs(
|
|
3899
3915
|
"div",
|
|
@@ -3919,20 +3935,20 @@ const tt = [
|
|
|
3919
3935
|
}
|
|
3920
3936
|
),
|
|
3921
3937
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3922
|
-
/* @__PURE__ */ t.jsx(
|
|
3923
|
-
/* @__PURE__ */ t.jsx(
|
|
3924
|
-
/* @__PURE__ */ t.jsx(
|
|
3925
|
-
/* @__PURE__ */ t.jsx(
|
|
3938
|
+
/* @__PURE__ */ t.jsx(ae.Text, { strong: !0, style: { fontSize: 18 }, children: e == null ? void 0 : e.FULL_NAME }),
|
|
3939
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.POSITION_NAME }, e == null ? void 0 : e.POSITION_NAME),
|
|
3940
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.DEPT_NAME }),
|
|
3941
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.WORKLOCATION })
|
|
3926
3942
|
] })
|
|
3927
3943
|
]
|
|
3928
3944
|
}
|
|
3929
3945
|
);
|
|
3930
|
-
}, ci =
|
|
3946
|
+
}, ci = K(ai), li = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
|
|
3931
3947
|
var E, w;
|
|
3932
|
-
const r = mt(), [o, l] =
|
|
3948
|
+
const r = mt(), [o, l] = B({}), s = ne(null), i = $(
|
|
3933
3949
|
"ImageMustSmallerThan",
|
|
3934
3950
|
"Image must smaller than"
|
|
3935
|
-
), c =
|
|
3951
|
+
), c = $(
|
|
3936
3952
|
"MaximumFileSizeExceeded",
|
|
3937
3953
|
"Maximum file size exceeded"
|
|
3938
3954
|
), { onSendMsg: a } = We(), { employees: f, setChats: m, isFromSelf: h } = it(), { ticketId: g } = He(), { activeTab: y } = Ue(), _ = () => {
|
|
@@ -3954,11 +3970,11 @@ const tt = [
|
|
|
3954
3970
|
}, v = (x) => {
|
|
3955
3971
|
var b, u, C;
|
|
3956
3972
|
const T = x.size / 1024 / 1024, p = (o == null ? void 0 : o.MAXFILESIZE) / 1024;
|
|
3957
|
-
return T > p && ((b =
|
|
3973
|
+
return T > p && ((b = Se) == null || b.destroy(), (u = Se) == null || u.config({
|
|
3958
3974
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
3959
3975
|
top: 28,
|
|
3960
3976
|
placement: "top"
|
|
3961
|
-
}), (C =
|
|
3977
|
+
}), (C = Se) == null || C.error({
|
|
3962
3978
|
message: c,
|
|
3963
3979
|
description: `${i} ${p == null ? void 0 : p.toFixed(
|
|
3964
3980
|
1
|
|
@@ -3977,18 +3993,18 @@ const tt = [
|
|
|
3977
3993
|
"Content-Type": "multipart/form-data"
|
|
3978
3994
|
}
|
|
3979
3995
|
})) == null ? void 0 : p.then((u) => {
|
|
3980
|
-
var C, A, M, D,
|
|
3996
|
+
var C, A, M, D, W;
|
|
3981
3997
|
if ((A = (C = u == null ? void 0 : u.data) == null ? void 0 : C.DATA) != null && A.LIST) {
|
|
3982
|
-
const N = (D = (M = u == null ? void 0 : u.data) == null ? void 0 : M.DATA) == null ? void 0 : D.LIST,
|
|
3998
|
+
const N = (D = (M = u == null ? void 0 : u.data) == null ? void 0 : M.DATA) == null ? void 0 : D.LIST, Y = {
|
|
3983
3999
|
ATTACHMENT: N == null ? void 0 : N.VIEW_PATH,
|
|
3984
4000
|
FAQ_ID: null,
|
|
3985
4001
|
MESSAGE: "",
|
|
3986
|
-
CREATED_DATE: (
|
|
4002
|
+
CREATED_DATE: (W = je()) == null ? void 0 : W.format(`${Pt} HH:mm:ss`),
|
|
3987
4003
|
CHAT_ALIGN: "to",
|
|
3988
4004
|
CHAT_TYPE: "chat"
|
|
3989
4005
|
};
|
|
3990
|
-
m((
|
|
3991
|
-
const I = [...Zt(
|
|
4006
|
+
m((k) => {
|
|
4007
|
+
const I = [...Zt(k), Y];
|
|
3992
4008
|
return St(I);
|
|
3993
4009
|
}), h.current = !0, a({
|
|
3994
4010
|
event: "SEND_MESSAGE",
|
|
@@ -3996,7 +4012,7 @@ const tt = [
|
|
|
3996
4012
|
ATTACHMENT: N == null ? void 0 : N.TEMP_PATH,
|
|
3997
4013
|
FAQ_ID: null,
|
|
3998
4014
|
MESSAGE: "",
|
|
3999
|
-
EMPLOYEES: f == null ? void 0 : f.map((
|
|
4015
|
+
EMPLOYEES: f == null ? void 0 : f.map((k) => k == null ? void 0 : k.EMP_ID),
|
|
4000
4016
|
TASK_ID: g
|
|
4001
4017
|
}
|
|
4002
4018
|
}), clearTimeout(s.current), s.current = setTimeout(() => {
|
|
@@ -4011,7 +4027,7 @@ const tt = [
|
|
|
4011
4027
|
_();
|
|
4012
4028
|
}, []), fe(() => {
|
|
4013
4029
|
var x;
|
|
4014
|
-
(x =
|
|
4030
|
+
(x = Se) == null || x.destroy();
|
|
4015
4031
|
}, [y]), /* @__PURE__ */ t.jsx(
|
|
4016
4032
|
Vn,
|
|
4017
4033
|
{
|
|
@@ -4032,7 +4048,7 @@ const tt = [
|
|
|
4032
4048
|
)
|
|
4033
4049
|
}
|
|
4034
4050
|
);
|
|
4035
|
-
}, ui =
|
|
4051
|
+
}, ui = K(li), di = (e) => {
|
|
4036
4052
|
var o;
|
|
4037
4053
|
const n = ne(null), r = ne(null);
|
|
4038
4054
|
return r != null && r.current && ((o = r.current) == null || o.update(e)), fe(() => {
|
|
@@ -4043,7 +4059,7 @@ const tt = [
|
|
|
4043
4059
|
};
|
|
4044
4060
|
}, []), gt.createElement("div", { ref: n });
|
|
4045
4061
|
}, fi = ({ refInput: e }) => {
|
|
4046
|
-
const { xs: n } = Me.useBreakpoint(), r =
|
|
4062
|
+
const { xs: n } = Me.useBreakpoint(), r = G(() => n ? "click" : "hover", [n]), o = () => {
|
|
4047
4063
|
var g;
|
|
4048
4064
|
const s = (g = e == null ? void 0 : e.current) == null ? void 0 : g.textarea;
|
|
4049
4065
|
if (!s)
|
|
@@ -4081,11 +4097,11 @@ const tt = [
|
|
|
4081
4097
|
children: /* @__PURE__ */ t.jsx(ue, { icon: /* @__PURE__ */ t.jsx(xe, { type: "smile" }), style: { border: "none" } })
|
|
4082
4098
|
}
|
|
4083
4099
|
);
|
|
4084
|
-
}, gi =
|
|
4085
|
-
const [e, n] =
|
|
4100
|
+
}, gi = K(fi), pi = () => {
|
|
4101
|
+
const [e, n] = B(0), [r, o] = B(!1), l = ne(null), s = ne(null), i = ne(!1), c = ne(null), { onSendMsg: a, setGetResponse: f, isGetResponse: m } = We(), { ticketId: h } = He(), { isActiveTabVA: g } = Ue(), { employees: y, setChats: _, isFromSelf: v, detailTicket: S } = it(), E = G(() => r || !m, [r, m]), w = G(() => {
|
|
4086
4102
|
var b;
|
|
4087
4103
|
return ((b = S == null ? void 0 : S.STATUS) == null ? void 0 : b.toString().toLowerCase()) === "closed";
|
|
4088
|
-
}, [S == null ? void 0 : S.STATUS]), x =
|
|
4104
|
+
}, [S == null ? void 0 : S.STATUS]), x = G(() => y == null ? void 0 : y.map((b) => ({
|
|
4089
4105
|
...b,
|
|
4090
4106
|
label: /* @__PURE__ */ t.jsx(
|
|
4091
4107
|
qt,
|
|
@@ -4176,8 +4192,8 @@ const tt = [
|
|
|
4176
4192
|
((b == null ? void 0 : b.code) === "Enter" || (b == null ? void 0 : b.key) === "Enter") && !(b != null && b.shiftKey) && T();
|
|
4177
4193
|
},
|
|
4178
4194
|
filterOption: (b, u) => {
|
|
4179
|
-
var M, D,
|
|
4180
|
-
const C = (M = b == null ? void 0 : b.toString()) == null ? void 0 : M.toLowerCase(), A = (
|
|
4195
|
+
var M, D, W;
|
|
4196
|
+
const C = (M = b == null ? void 0 : b.toString()) == null ? void 0 : M.toLowerCase(), A = (W = (D = u == null ? void 0 : u.FULL_NAME) == null ? void 0 : D.toString()) == null ? void 0 : W.toLowerCase();
|
|
4181
4197
|
return A == null ? void 0 : A.includes(C);
|
|
4182
4198
|
},
|
|
4183
4199
|
children: x == null ? void 0 : x.map((b, u) => /* @__PURE__ */ t.jsx(hn.Option, { ...b, children: b == null ? void 0 : b.label }, u))
|
|
@@ -4204,7 +4220,7 @@ const tt = [
|
|
|
4204
4220
|
]
|
|
4205
4221
|
}
|
|
4206
4222
|
);
|
|
4207
|
-
}, hi =
|
|
4223
|
+
}, hi = K(pi), xi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: l }) => {
|
|
4208
4224
|
var s;
|
|
4209
4225
|
return o ? /* @__PURE__ */ t.jsx(
|
|
4210
4226
|
"div",
|
|
@@ -4214,7 +4230,7 @@ const tt = [
|
|
|
4214
4230
|
style: l
|
|
4215
4231
|
},
|
|
4216
4232
|
children: /* @__PURE__ */ t.jsxs("div", { className: "w-banner-content", children: [
|
|
4217
|
-
e && /* @__PURE__ */ t.jsx(
|
|
4233
|
+
e && /* @__PURE__ */ t.jsx(ae.Text, { style: { fontSize: 16, fontWeight: 600 }, children: e }),
|
|
4218
4234
|
n && /* @__PURE__ */ t.jsx("div", { className: "w-banner-subtitle", children: n }),
|
|
4219
4235
|
typeof r == "function" && /* @__PURE__ */ t.jsx("div", { className: "w-banner-close-btn", children: /* @__PURE__ */ t.jsx(
|
|
4220
4236
|
ue,
|
|
@@ -4227,18 +4243,18 @@ const tt = [
|
|
|
4227
4243
|
] })
|
|
4228
4244
|
}
|
|
4229
4245
|
) : null;
|
|
4230
|
-
}, gr =
|
|
4231
|
-
const e =
|
|
4246
|
+
}, gr = K(xi), mi = () => {
|
|
4247
|
+
const e = $(
|
|
4232
4248
|
"ForMoreInformationOfThisTicket",
|
|
4233
4249
|
"For more information of this ticket"
|
|
4234
|
-
), n =
|
|
4250
|
+
), n = $("ClickHere", "Click here"), { ticketId: r } = He(), { widgetProps: o } = de(), { encrypt: l } = fr();
|
|
4235
4251
|
return /* @__PURE__ */ t.jsx(
|
|
4236
4252
|
gr,
|
|
4237
4253
|
{
|
|
4238
4254
|
subTitle: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4239
|
-
/* @__PURE__ */ t.jsx(
|
|
4255
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e }),
|
|
4240
4256
|
/* @__PURE__ */ t.jsx(
|
|
4241
|
-
|
|
4257
|
+
ae.Link,
|
|
4242
4258
|
{
|
|
4243
4259
|
strong: !0,
|
|
4244
4260
|
className: "w-reconnect-manual",
|
|
@@ -4258,20 +4274,20 @@ const tt = [
|
|
|
4258
4274
|
}
|
|
4259
4275
|
}
|
|
4260
4276
|
);
|
|
4261
|
-
}, yi =
|
|
4277
|
+
}, yi = K(mi), vi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(ur, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Bs, { children: [
|
|
4262
4278
|
/* @__PURE__ */ t.jsx(Vs, { onClose: e }),
|
|
4263
4279
|
/* @__PURE__ */ t.jsx(yi, {}),
|
|
4264
4280
|
/* @__PURE__ */ t.jsx(ii, {}),
|
|
4265
4281
|
/* @__PURE__ */ t.jsx(hi, {})
|
|
4266
|
-
] }) }), bi =
|
|
4267
|
-
const e =
|
|
4282
|
+
] }) }), bi = K(vi), Ci = () => {
|
|
4283
|
+
const e = $("AdvanceFilter", "Advance Filter"), n = $("Subject", "Subject"), r = $(
|
|
4268
4284
|
"TicketCategory",
|
|
4269
4285
|
"Ticket Category"
|
|
4270
|
-
), o =
|
|
4271
|
-
const D = `${s}/${i}/${c}`,
|
|
4286
|
+
), o = $("TicketStatus", "Ticket Status"), l = $("CreatedDate", "Created Date"), s = $("New", "New"), i = $("Open", "Open"), c = $("Reopen", "Reopen"), a = $("InProgress", "In Progress"), f = $("Responded", "Responded"), m = $("Fixed", "Fixed"), h = $("Done", "Done"), g = $("Closed", "Closed"), y = $("HDCancelled", "Cancelled"), _ = $("Clear", "Clear"), v = $("Filter", "Filter"), S = mt(), [E] = we.useForm(), { openFilter: w, setOpenFilter: x, getListTicket: T, setCountFilters: p } = He(), [b, u] = B([]), C = G(() => {
|
|
4287
|
+
const D = `${s}/${i}/${c}`, W = `${a}/${f}`, N = `${m}/${h}`;
|
|
4272
4288
|
return [
|
|
4273
4289
|
{ value: 3, label: D },
|
|
4274
|
-
{ value: 1, label:
|
|
4290
|
+
{ value: 1, label: W },
|
|
4275
4291
|
{ value: 4, label: N },
|
|
4276
4292
|
{ value: 6, label: g },
|
|
4277
4293
|
{ value: 8, label: y }
|
|
@@ -4286,12 +4302,12 @@ const tt = [
|
|
|
4286
4302
|
SELECTOR: "*",
|
|
4287
4303
|
SORT: { FIELD: "ORDER_NO", ORDER: "ASC" }
|
|
4288
4304
|
}
|
|
4289
|
-
})) == null || D.then((
|
|
4290
|
-
var N,
|
|
4291
|
-
if ((N =
|
|
4292
|
-
const
|
|
4305
|
+
})) == null || D.then((W) => {
|
|
4306
|
+
var N, Y, k;
|
|
4307
|
+
if ((N = W == null ? void 0 : W.data) != null && N.DATA) {
|
|
4308
|
+
const U = (k = (Y = W == null ? void 0 : W.data) == null ? void 0 : Y.DATA) == null ? void 0 : k.LIST;
|
|
4293
4309
|
u(
|
|
4294
|
-
|
|
4310
|
+
U == null ? void 0 : U.map((I) => ({
|
|
4295
4311
|
label: I == null ? void 0 : I.CATEGORY_NAME,
|
|
4296
4312
|
value: I == null ? void 0 : I.CATEGORY_CODE
|
|
4297
4313
|
}))
|
|
@@ -4299,11 +4315,11 @@ const tt = [
|
|
|
4299
4315
|
}
|
|
4300
4316
|
});
|
|
4301
4317
|
}, M = () => {
|
|
4302
|
-
var N,
|
|
4318
|
+
var N, Y;
|
|
4303
4319
|
const D = E == null ? void 0 : E.getFieldsValue(!0);
|
|
4304
4320
|
T(D);
|
|
4305
|
-
const
|
|
4306
|
-
p(
|
|
4321
|
+
const W = (Y = (N = Object.values(D || {})) == null ? void 0 : N.flat()) == null ? void 0 : Y.filter(Boolean);
|
|
4322
|
+
p(W == null ? void 0 : W.length);
|
|
4307
4323
|
};
|
|
4308
4324
|
return fe(() => {
|
|
4309
4325
|
A();
|
|
@@ -4340,7 +4356,7 @@ const tt = [
|
|
|
4340
4356
|
] }),
|
|
4341
4357
|
children: [
|
|
4342
4358
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, justifyContent: "space-between" }, children: [
|
|
4343
|
-
/* @__PURE__ */ t.jsx(
|
|
4359
|
+
/* @__PURE__ */ t.jsx(ae.Text, { strong: !0, style: { fontSize: 16 }, children: e }),
|
|
4344
4360
|
/* @__PURE__ */ t.jsx(
|
|
4345
4361
|
ue,
|
|
4346
4362
|
{
|
|
@@ -4351,28 +4367,28 @@ const tt = [
|
|
|
4351
4367
|
}
|
|
4352
4368
|
)
|
|
4353
4369
|
] }),
|
|
4354
|
-
/* @__PURE__ */ t.jsx("div", { className: "w-ticket-list-advance-filter-form-container", children: /* @__PURE__ */ t.jsxs(
|
|
4355
|
-
/* @__PURE__ */ t.jsx(
|
|
4356
|
-
/* @__PURE__ */ t.jsx(
|
|
4357
|
-
/* @__PURE__ */ t.jsx(
|
|
4358
|
-
/* @__PURE__ */ t.jsx(
|
|
4370
|
+
/* @__PURE__ */ t.jsx("div", { className: "w-ticket-list-advance-filter-form-container", children: /* @__PURE__ */ t.jsxs(we, { form: E, layout: "vertical", children: [
|
|
4371
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: n, name: "TASK_NAME", children: /* @__PURE__ */ t.jsx(pt, { allowClear: !0 }) }),
|
|
4372
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: r, name: "CATEGORY_CODE", children: /* @__PURE__ */ t.jsx(xn, { options: b, mode: "multiple", allowClear: !0 }) }),
|
|
4373
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: o, name: "TASK_STATUS", children: /* @__PURE__ */ t.jsx(xn, { options: C, mode: "multiple", allowClear: !0 }) }),
|
|
4374
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: l, name: "CREATED_DATE", children: /* @__PURE__ */ t.jsx(Gr, { style: { width: "100%" }, allowClear: !0 }) })
|
|
4359
4375
|
] }) })
|
|
4360
4376
|
]
|
|
4361
4377
|
}
|
|
4362
4378
|
);
|
|
4363
|
-
}, Ti =
|
|
4364
|
-
const e =
|
|
4379
|
+
}, Ti = K(Ci), Ei = () => {
|
|
4380
|
+
const e = $(
|
|
4365
4381
|
"ReconnectManually",
|
|
4366
4382
|
"Reconnect Manually"
|
|
4367
|
-
), n =
|
|
4383
|
+
), n = $(
|
|
4368
4384
|
"HelpdeskWebsocket",
|
|
4369
4385
|
"Helpdesk Websocket"
|
|
4370
|
-
), r =
|
|
4386
|
+
), r = $("NotConnected", "Not Connected"), o = $("Connecting", "Connecting"), {
|
|
4371
4387
|
connectWebSocket: l,
|
|
4372
4388
|
retryCountState: s,
|
|
4373
4389
|
setRetryCountState: i,
|
|
4374
4390
|
retryCountRef: c
|
|
4375
|
-
} = We(), a =
|
|
4391
|
+
} = We(), a = G(() => s === dt ? `${n} ${r}` : `${n} ${o}`, [s]);
|
|
4376
4392
|
return /* @__PURE__ */ t.jsx(
|
|
4377
4393
|
"div",
|
|
4378
4394
|
{
|
|
@@ -4414,7 +4430,7 @@ const tt = [
|
|
|
4414
4430
|
)
|
|
4415
4431
|
}
|
|
4416
4432
|
);
|
|
4417
|
-
}, Si =
|
|
4433
|
+
}, Si = K(Ei), wi = () => {
|
|
4418
4434
|
const { setTicketId: e, ticketId: n, openFilter: r } = He(), { onSendMsg: o, setGetResponse: l } = We(), { showReadyWSHD: s } = de();
|
|
4419
4435
|
return s ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4420
4436
|
/* @__PURE__ */ t.jsx(
|
|
@@ -4434,7 +4450,7 @@ const tt = [
|
|
|
4434
4450
|
/* @__PURE__ */ t.jsx("div", { style: { display: !n && !r ? "block" : "none" }, children: /* @__PURE__ */ t.jsx(Hs, {}) }),
|
|
4435
4451
|
/* @__PURE__ */ t.jsx(Ti, {})
|
|
4436
4452
|
] }) : /* @__PURE__ */ t.jsx(Si, {});
|
|
4437
|
-
}, _i =
|
|
4453
|
+
}, _i = K(wi);
|
|
4438
4454
|
var lt = { exports: {} }, Ut = {}, vt = { exports: {} }, bt = { exports: {} }, ce = {};
|
|
4439
4455
|
/** @license React v16.13.1
|
|
4440
4456
|
* react-is.production.min.js
|
|
@@ -4529,8 +4545,8 @@ function ki() {
|
|
|
4529
4545
|
}
|
|
4530
4546
|
function T(O) {
|
|
4531
4547
|
if (typeof O == "object" && O !== null) {
|
|
4532
|
-
var
|
|
4533
|
-
switch (
|
|
4548
|
+
var me = O.$$typeof;
|
|
4549
|
+
switch (me) {
|
|
4534
4550
|
case n:
|
|
4535
4551
|
var Ee = O.type;
|
|
4536
4552
|
switch (Ee) {
|
|
@@ -4551,55 +4567,55 @@ function ki() {
|
|
|
4551
4567
|
case i:
|
|
4552
4568
|
return ge;
|
|
4553
4569
|
default:
|
|
4554
|
-
return
|
|
4570
|
+
return me;
|
|
4555
4571
|
}
|
|
4556
4572
|
}
|
|
4557
4573
|
case r:
|
|
4558
|
-
return
|
|
4574
|
+
return me;
|
|
4559
4575
|
}
|
|
4560
4576
|
}
|
|
4561
4577
|
}
|
|
4562
|
-
var p = a, b = f, u = c, C = i, A = n, M = m, D = o,
|
|
4563
|
-
function
|
|
4564
|
-
return
|
|
4578
|
+
var p = a, b = f, u = c, C = i, A = n, M = m, D = o, W = _, N = y, Y = r, k = s, U = l, I = h, re = !1;
|
|
4579
|
+
function ee(O) {
|
|
4580
|
+
return re || (re = !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.")), j(O) || T(O) === a;
|
|
4565
4581
|
}
|
|
4566
|
-
function
|
|
4582
|
+
function j(O) {
|
|
4567
4583
|
return T(O) === f;
|
|
4568
4584
|
}
|
|
4569
4585
|
function L(O) {
|
|
4570
4586
|
return T(O) === c;
|
|
4571
4587
|
}
|
|
4572
|
-
function
|
|
4588
|
+
function Z(O) {
|
|
4573
4589
|
return T(O) === i;
|
|
4574
4590
|
}
|
|
4575
|
-
function
|
|
4591
|
+
function z(O) {
|
|
4576
4592
|
return typeof O == "object" && O !== null && O.$$typeof === n;
|
|
4577
4593
|
}
|
|
4578
|
-
function
|
|
4594
|
+
function P(O) {
|
|
4579
4595
|
return T(O) === m;
|
|
4580
4596
|
}
|
|
4581
|
-
function
|
|
4597
|
+
function te(O) {
|
|
4582
4598
|
return T(O) === o;
|
|
4583
4599
|
}
|
|
4584
|
-
function
|
|
4600
|
+
function X(O) {
|
|
4585
4601
|
return T(O) === _;
|
|
4586
4602
|
}
|
|
4587
|
-
function
|
|
4603
|
+
function J(O) {
|
|
4588
4604
|
return T(O) === y;
|
|
4589
4605
|
}
|
|
4590
|
-
function
|
|
4606
|
+
function q(O) {
|
|
4591
4607
|
return T(O) === r;
|
|
4592
4608
|
}
|
|
4593
|
-
function
|
|
4609
|
+
function F(O) {
|
|
4594
4610
|
return T(O) === s;
|
|
4595
4611
|
}
|
|
4596
|
-
function
|
|
4612
|
+
function V(O) {
|
|
4597
4613
|
return T(O) === l;
|
|
4598
4614
|
}
|
|
4599
|
-
function
|
|
4615
|
+
function se(O) {
|
|
4600
4616
|
return T(O) === h;
|
|
4601
4617
|
}
|
|
4602
|
-
le.AsyncMode = p, le.ConcurrentMode = b, le.ContextConsumer = u, le.ContextProvider = C, le.Element = A, le.ForwardRef = M, le.Fragment = D, le.Lazy =
|
|
4618
|
+
le.AsyncMode = p, le.ConcurrentMode = b, le.ContextConsumer = u, le.ContextProvider = C, le.Element = A, le.ForwardRef = M, le.Fragment = D, le.Lazy = W, le.Memo = N, le.Portal = Y, le.Profiler = k, le.StrictMode = U, le.Suspense = I, le.isAsyncMode = ee, le.isConcurrentMode = j, le.isContextConsumer = L, le.isContextProvider = Z, le.isElement = z, le.isForwardRef = P, le.isFragment = te, le.isLazy = X, le.isMemo = J, le.isPortal = q, le.isProfiler = F, le.isStrictMode = V, le.isSuspense = se, le.isValidElementType = x, le.typeOf = T;
|
|
4603
4619
|
}()), le;
|
|
4604
4620
|
}
|
|
4605
4621
|
var jn;
|
|
@@ -4685,8 +4701,8 @@ function Ri() {
|
|
|
4685
4701
|
}
|
|
4686
4702
|
return Yt = function(c, a) {
|
|
4687
4703
|
var f = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
4688
|
-
function h(
|
|
4689
|
-
var L =
|
|
4704
|
+
function h(j) {
|
|
4705
|
+
var L = j && (f && j[f] || j[m]);
|
|
4690
4706
|
if (typeof L == "function")
|
|
4691
4707
|
return L;
|
|
4692
4708
|
}
|
|
@@ -4708,47 +4724,47 @@ function Ri() {
|
|
|
4708
4724
|
objectOf: C,
|
|
4709
4725
|
oneOf: u,
|
|
4710
4726
|
oneOfType: A,
|
|
4711
|
-
shape:
|
|
4727
|
+
shape: W,
|
|
4712
4728
|
exact: N
|
|
4713
4729
|
};
|
|
4714
|
-
function _(
|
|
4715
|
-
return
|
|
4730
|
+
function _(j, L) {
|
|
4731
|
+
return j === L ? j !== 0 || 1 / j === 1 / L : j !== j && L !== L;
|
|
4716
4732
|
}
|
|
4717
|
-
function v(
|
|
4718
|
-
this.message =
|
|
4733
|
+
function v(j, L) {
|
|
4734
|
+
this.message = j, this.data = L && typeof L == "object" ? L : {}, this.stack = "";
|
|
4719
4735
|
}
|
|
4720
4736
|
v.prototype = Error.prototype;
|
|
4721
|
-
function S(
|
|
4737
|
+
function S(j) {
|
|
4722
4738
|
if (process.env.NODE_ENV !== "production")
|
|
4723
|
-
var L = {},
|
|
4724
|
-
function
|
|
4725
|
-
if (
|
|
4739
|
+
var L = {}, Z = 0;
|
|
4740
|
+
function z(te, X, J, q, F, V, se) {
|
|
4741
|
+
if (q = q || g, V = V || J, se !== r) {
|
|
4726
4742
|
if (a) {
|
|
4727
4743
|
var O = new Error(
|
|
4728
4744
|
"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"
|
|
4729
4745
|
);
|
|
4730
4746
|
throw O.name = "Invariant Violation", O;
|
|
4731
4747
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4732
|
-
var
|
|
4733
|
-
!L[
|
|
4734
|
-
|
|
4735
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
4736
|
-
), L[
|
|
4748
|
+
var me = q + ":" + J;
|
|
4749
|
+
!L[me] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4750
|
+
Z < 3 && (s(
|
|
4751
|
+
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + q + "`. 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."
|
|
4752
|
+
), L[me] = !0, Z++);
|
|
4737
4753
|
}
|
|
4738
4754
|
}
|
|
4739
|
-
return
|
|
4755
|
+
return X[J] == null ? te ? X[J] === null ? new v("The " + F + " `" + V + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new v("The " + F + " `" + V + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : j(X, J, q, F, V);
|
|
4740
4756
|
}
|
|
4741
|
-
var
|
|
4742
|
-
return
|
|
4757
|
+
var P = z.bind(null, !1);
|
|
4758
|
+
return P.isRequired = z.bind(null, !0), P;
|
|
4743
4759
|
}
|
|
4744
|
-
function E(
|
|
4745
|
-
function L(
|
|
4746
|
-
var
|
|
4747
|
-
if (
|
|
4748
|
-
var
|
|
4760
|
+
function E(j) {
|
|
4761
|
+
function L(Z, z, P, te, X, J) {
|
|
4762
|
+
var q = Z[z], F = U(q);
|
|
4763
|
+
if (F !== j) {
|
|
4764
|
+
var V = I(q);
|
|
4749
4765
|
return new v(
|
|
4750
|
-
"Invalid " +
|
|
4751
|
-
{ expectedType:
|
|
4766
|
+
"Invalid " + te + " `" + X + "` of type " + ("`" + V + "` supplied to `" + P + "`, expected ") + ("`" + j + "`."),
|
|
4767
|
+
{ expectedType: j }
|
|
4752
4768
|
);
|
|
4753
4769
|
}
|
|
4754
4770
|
return null;
|
|
@@ -4758,156 +4774,156 @@ function Ri() {
|
|
|
4758
4774
|
function w() {
|
|
4759
4775
|
return S(i);
|
|
4760
4776
|
}
|
|
4761
|
-
function x(
|
|
4762
|
-
function L(
|
|
4763
|
-
if (typeof
|
|
4764
|
-
return new v("Property `" +
|
|
4765
|
-
var
|
|
4766
|
-
if (!Array.isArray(
|
|
4767
|
-
var
|
|
4768
|
-
return new v("Invalid " +
|
|
4777
|
+
function x(j) {
|
|
4778
|
+
function L(Z, z, P, te, X) {
|
|
4779
|
+
if (typeof j != "function")
|
|
4780
|
+
return new v("Property `" + X + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
4781
|
+
var J = Z[z];
|
|
4782
|
+
if (!Array.isArray(J)) {
|
|
4783
|
+
var q = U(J);
|
|
4784
|
+
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected an array."));
|
|
4769
4785
|
}
|
|
4770
|
-
for (var
|
|
4771
|
-
var
|
|
4772
|
-
if (
|
|
4773
|
-
return
|
|
4786
|
+
for (var F = 0; F < J.length; F++) {
|
|
4787
|
+
var V = j(J, F, P, te, X + "[" + F + "]", r);
|
|
4788
|
+
if (V instanceof Error)
|
|
4789
|
+
return V;
|
|
4774
4790
|
}
|
|
4775
4791
|
return null;
|
|
4776
4792
|
}
|
|
4777
4793
|
return S(L);
|
|
4778
4794
|
}
|
|
4779
4795
|
function T() {
|
|
4780
|
-
function
|
|
4781
|
-
var
|
|
4782
|
-
if (!c(
|
|
4783
|
-
var
|
|
4784
|
-
return new v("Invalid " +
|
|
4796
|
+
function j(L, Z, z, P, te) {
|
|
4797
|
+
var X = L[Z];
|
|
4798
|
+
if (!c(X)) {
|
|
4799
|
+
var J = U(X);
|
|
4800
|
+
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" + z + "`, expected a single ReactElement."));
|
|
4785
4801
|
}
|
|
4786
4802
|
return null;
|
|
4787
4803
|
}
|
|
4788
|
-
return S(
|
|
4804
|
+
return S(j);
|
|
4789
4805
|
}
|
|
4790
4806
|
function p() {
|
|
4791
|
-
function
|
|
4792
|
-
var
|
|
4793
|
-
if (!e.isValidElementType(
|
|
4794
|
-
var
|
|
4795
|
-
return new v("Invalid " +
|
|
4807
|
+
function j(L, Z, z, P, te) {
|
|
4808
|
+
var X = L[Z];
|
|
4809
|
+
if (!e.isValidElementType(X)) {
|
|
4810
|
+
var J = U(X);
|
|
4811
|
+
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" + z + "`, expected a single ReactElement type."));
|
|
4796
4812
|
}
|
|
4797
4813
|
return null;
|
|
4798
4814
|
}
|
|
4799
|
-
return S(
|
|
4815
|
+
return S(j);
|
|
4800
4816
|
}
|
|
4801
|
-
function b(
|
|
4802
|
-
function L(
|
|
4803
|
-
if (!(
|
|
4804
|
-
var
|
|
4805
|
-
return new v("Invalid " +
|
|
4817
|
+
function b(j) {
|
|
4818
|
+
function L(Z, z, P, te, X) {
|
|
4819
|
+
if (!(Z[z] instanceof j)) {
|
|
4820
|
+
var J = j.name || g, q = ee(Z[z]);
|
|
4821
|
+
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected ") + ("instance of `" + J + "`."));
|
|
4806
4822
|
}
|
|
4807
4823
|
return null;
|
|
4808
4824
|
}
|
|
4809
4825
|
return S(L);
|
|
4810
4826
|
}
|
|
4811
|
-
function u(
|
|
4812
|
-
if (!Array.isArray(
|
|
4827
|
+
function u(j) {
|
|
4828
|
+
if (!Array.isArray(j))
|
|
4813
4829
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
4814
4830
|
"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])."
|
|
4815
4831
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
4816
|
-
function L(
|
|
4817
|
-
for (var
|
|
4818
|
-
if (_(
|
|
4832
|
+
function L(Z, z, P, te, X) {
|
|
4833
|
+
for (var J = Z[z], q = 0; q < j.length; q++)
|
|
4834
|
+
if (_(J, j[q]))
|
|
4819
4835
|
return null;
|
|
4820
|
-
var
|
|
4821
|
-
var
|
|
4822
|
-
return
|
|
4836
|
+
var F = JSON.stringify(j, function(se, O) {
|
|
4837
|
+
var me = I(O);
|
|
4838
|
+
return me === "symbol" ? String(O) : O;
|
|
4823
4839
|
});
|
|
4824
|
-
return new v("Invalid " +
|
|
4840
|
+
return new v("Invalid " + te + " `" + X + "` of value `" + String(J) + "` " + ("supplied to `" + P + "`, expected one of " + F + "."));
|
|
4825
4841
|
}
|
|
4826
4842
|
return S(L);
|
|
4827
4843
|
}
|
|
4828
|
-
function C(
|
|
4829
|
-
function L(
|
|
4830
|
-
if (typeof
|
|
4831
|
-
return new v("Property `" +
|
|
4832
|
-
var
|
|
4833
|
-
if (
|
|
4834
|
-
return new v("Invalid " +
|
|
4835
|
-
for (var
|
|
4836
|
-
if (o(
|
|
4837
|
-
var
|
|
4838
|
-
if (
|
|
4839
|
-
return
|
|
4844
|
+
function C(j) {
|
|
4845
|
+
function L(Z, z, P, te, X) {
|
|
4846
|
+
if (typeof j != "function")
|
|
4847
|
+
return new v("Property `" + X + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
4848
|
+
var J = Z[z], q = U(J);
|
|
4849
|
+
if (q !== "object")
|
|
4850
|
+
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected an object."));
|
|
4851
|
+
for (var F in J)
|
|
4852
|
+
if (o(J, F)) {
|
|
4853
|
+
var V = j(J, F, P, te, X + "." + F, r);
|
|
4854
|
+
if (V instanceof Error)
|
|
4855
|
+
return V;
|
|
4840
4856
|
}
|
|
4841
4857
|
return null;
|
|
4842
4858
|
}
|
|
4843
4859
|
return S(L);
|
|
4844
4860
|
}
|
|
4845
|
-
function A(
|
|
4846
|
-
if (!Array.isArray(
|
|
4861
|
+
function A(j) {
|
|
4862
|
+
if (!Array.isArray(j))
|
|
4847
4863
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
4848
|
-
for (var L = 0; L <
|
|
4849
|
-
var
|
|
4850
|
-
if (typeof
|
|
4864
|
+
for (var L = 0; L < j.length; L++) {
|
|
4865
|
+
var Z = j[L];
|
|
4866
|
+
if (typeof Z != "function")
|
|
4851
4867
|
return s(
|
|
4852
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
4868
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(Z) + " at index " + L + "."
|
|
4853
4869
|
), i;
|
|
4854
4870
|
}
|
|
4855
|
-
function
|
|
4856
|
-
for (var
|
|
4857
|
-
var
|
|
4871
|
+
function z(P, te, X, J, q) {
|
|
4872
|
+
for (var F = [], V = 0; V < j.length; V++) {
|
|
4873
|
+
var se = j[V], O = se(P, te, X, J, q, r);
|
|
4858
4874
|
if (O == null)
|
|
4859
4875
|
return null;
|
|
4860
|
-
O.data && o(O.data, "expectedType") &&
|
|
4876
|
+
O.data && o(O.data, "expectedType") && F.push(O.data.expectedType);
|
|
4861
4877
|
}
|
|
4862
|
-
var
|
|
4863
|
-
return new v("Invalid " +
|
|
4878
|
+
var me = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
4879
|
+
return new v("Invalid " + J + " `" + q + "` supplied to " + ("`" + X + "`" + me + "."));
|
|
4864
4880
|
}
|
|
4865
|
-
return S(
|
|
4881
|
+
return S(z);
|
|
4866
4882
|
}
|
|
4867
4883
|
function M() {
|
|
4868
|
-
function
|
|
4869
|
-
return
|
|
4884
|
+
function j(L, Z, z, P, te) {
|
|
4885
|
+
return Y(L[Z]) ? null : new v("Invalid " + P + " `" + te + "` supplied to " + ("`" + z + "`, expected a ReactNode."));
|
|
4870
4886
|
}
|
|
4871
|
-
return S(
|
|
4887
|
+
return S(j);
|
|
4872
4888
|
}
|
|
4873
|
-
function D(
|
|
4889
|
+
function D(j, L, Z, z, P) {
|
|
4874
4890
|
return new v(
|
|
4875
|
-
(
|
|
4891
|
+
(j || "React class") + ": " + L + " type `" + Z + "." + z + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
4876
4892
|
);
|
|
4877
4893
|
}
|
|
4878
|
-
function
|
|
4879
|
-
function L(
|
|
4880
|
-
var
|
|
4881
|
-
if (
|
|
4882
|
-
return new v("Invalid " +
|
|
4883
|
-
for (var
|
|
4884
|
-
var
|
|
4885
|
-
if (typeof
|
|
4886
|
-
return D(
|
|
4887
|
-
var
|
|
4888
|
-
if (
|
|
4889
|
-
return
|
|
4894
|
+
function W(j) {
|
|
4895
|
+
function L(Z, z, P, te, X) {
|
|
4896
|
+
var J = Z[z], q = U(J);
|
|
4897
|
+
if (q !== "object")
|
|
4898
|
+
return new v("Invalid " + te + " `" + X + "` of type `" + q + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4899
|
+
for (var F in j) {
|
|
4900
|
+
var V = j[F];
|
|
4901
|
+
if (typeof V != "function")
|
|
4902
|
+
return D(P, te, X, F, I(V));
|
|
4903
|
+
var se = V(J, F, P, te, X + "." + F, r);
|
|
4904
|
+
if (se)
|
|
4905
|
+
return se;
|
|
4890
4906
|
}
|
|
4891
4907
|
return null;
|
|
4892
4908
|
}
|
|
4893
4909
|
return S(L);
|
|
4894
4910
|
}
|
|
4895
|
-
function N(
|
|
4896
|
-
function L(
|
|
4897
|
-
var
|
|
4898
|
-
if (
|
|
4899
|
-
return new v("Invalid " +
|
|
4900
|
-
var
|
|
4901
|
-
for (var
|
|
4902
|
-
var
|
|
4903
|
-
if (o(
|
|
4904
|
-
return D(
|
|
4905
|
-
if (!
|
|
4911
|
+
function N(j) {
|
|
4912
|
+
function L(Z, z, P, te, X) {
|
|
4913
|
+
var J = Z[z], q = U(J);
|
|
4914
|
+
if (q !== "object")
|
|
4915
|
+
return new v("Invalid " + te + " `" + X + "` of type `" + q + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4916
|
+
var F = n({}, Z[z], j);
|
|
4917
|
+
for (var V in F) {
|
|
4918
|
+
var se = j[V];
|
|
4919
|
+
if (o(j, V) && typeof se != "function")
|
|
4920
|
+
return D(P, te, X, V, I(se));
|
|
4921
|
+
if (!se)
|
|
4906
4922
|
return new v(
|
|
4907
|
-
"Invalid " +
|
|
4908
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
4923
|
+
"Invalid " + te + " `" + X + "` key `" + V + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(Z[z], null, " ") + `
|
|
4924
|
+
Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
4909
4925
|
);
|
|
4910
|
-
var O =
|
|
4926
|
+
var O = se(J, V, P, te, X + "." + V, r);
|
|
4911
4927
|
if (O)
|
|
4912
4928
|
return O;
|
|
4913
4929
|
}
|
|
@@ -4915,30 +4931,30 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4915
4931
|
}
|
|
4916
4932
|
return S(L);
|
|
4917
4933
|
}
|
|
4918
|
-
function j
|
|
4919
|
-
switch (typeof
|
|
4934
|
+
function Y(j) {
|
|
4935
|
+
switch (typeof j) {
|
|
4920
4936
|
case "number":
|
|
4921
4937
|
case "string":
|
|
4922
4938
|
case "undefined":
|
|
4923
4939
|
return !0;
|
|
4924
4940
|
case "boolean":
|
|
4925
|
-
return !
|
|
4941
|
+
return !j;
|
|
4926
4942
|
case "object":
|
|
4927
|
-
if (Array.isArray(
|
|
4928
|
-
return
|
|
4929
|
-
if (
|
|
4943
|
+
if (Array.isArray(j))
|
|
4944
|
+
return j.every(Y);
|
|
4945
|
+
if (j === null || c(j))
|
|
4930
4946
|
return !0;
|
|
4931
|
-
var L = h(
|
|
4947
|
+
var L = h(j);
|
|
4932
4948
|
if (L) {
|
|
4933
|
-
var
|
|
4934
|
-
if (L !==
|
|
4935
|
-
for (; !(
|
|
4936
|
-
if (!
|
|
4949
|
+
var Z = L.call(j), z;
|
|
4950
|
+
if (L !== j.entries) {
|
|
4951
|
+
for (; !(z = Z.next()).done; )
|
|
4952
|
+
if (!Y(z.value))
|
|
4937
4953
|
return !1;
|
|
4938
4954
|
} else
|
|
4939
|
-
for (; !(
|
|
4940
|
-
var
|
|
4941
|
-
if (
|
|
4955
|
+
for (; !(z = Z.next()).done; ) {
|
|
4956
|
+
var P = z.value;
|
|
4957
|
+
if (P && !Y(P[1]))
|
|
4942
4958
|
return !1;
|
|
4943
4959
|
}
|
|
4944
4960
|
} else
|
|
@@ -4948,27 +4964,27 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4948
4964
|
return !1;
|
|
4949
4965
|
}
|
|
4950
4966
|
}
|
|
4951
|
-
function
|
|
4952
|
-
return
|
|
4967
|
+
function k(j, L) {
|
|
4968
|
+
return j === "symbol" ? !0 : L ? L["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && L instanceof Symbol : !1;
|
|
4953
4969
|
}
|
|
4954
|
-
function
|
|
4955
|
-
var L = typeof
|
|
4956
|
-
return Array.isArray(
|
|
4970
|
+
function U(j) {
|
|
4971
|
+
var L = typeof j;
|
|
4972
|
+
return Array.isArray(j) ? "array" : j instanceof RegExp ? "object" : k(L, j) ? "symbol" : L;
|
|
4957
4973
|
}
|
|
4958
|
-
function I(
|
|
4959
|
-
if (typeof
|
|
4960
|
-
return "" +
|
|
4961
|
-
var L =
|
|
4974
|
+
function I(j) {
|
|
4975
|
+
if (typeof j > "u" || j === null)
|
|
4976
|
+
return "" + j;
|
|
4977
|
+
var L = U(j);
|
|
4962
4978
|
if (L === "object") {
|
|
4963
|
-
if (
|
|
4979
|
+
if (j instanceof Date)
|
|
4964
4980
|
return "date";
|
|
4965
|
-
if (
|
|
4981
|
+
if (j instanceof RegExp)
|
|
4966
4982
|
return "regexp";
|
|
4967
4983
|
}
|
|
4968
4984
|
return L;
|
|
4969
4985
|
}
|
|
4970
|
-
function
|
|
4971
|
-
var L = I(
|
|
4986
|
+
function re(j) {
|
|
4987
|
+
var L = I(j);
|
|
4972
4988
|
switch (L) {
|
|
4973
4989
|
case "array":
|
|
4974
4990
|
case "object":
|
|
@@ -4981,8 +4997,8 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4981
4997
|
return L;
|
|
4982
4998
|
}
|
|
4983
4999
|
}
|
|
4984
|
-
function
|
|
4985
|
-
return !
|
|
5000
|
+
function ee(j) {
|
|
5001
|
+
return !j.constructor || !j.constructor.name ? g : j.constructor.name;
|
|
4986
5002
|
}
|
|
4987
5003
|
return y.checkPropTypes = l, y.resetWarningCache = l.resetWarningCache, y.PropTypes = y, y;
|
|
4988
5004
|
}, Yt;
|
|
@@ -5064,7 +5080,7 @@ function Oi() {
|
|
|
5064
5080
|
}
|
|
5065
5081
|
return Ct.exports = n, Ct.exports.clsx = n, Ct.exports;
|
|
5066
5082
|
}
|
|
5067
|
-
var
|
|
5083
|
+
var ve = {}, Fe = {}, Nn;
|
|
5068
5084
|
function kt() {
|
|
5069
5085
|
if (Nn) return Fe;
|
|
5070
5086
|
Nn = 1, Object.defineProperty(Fe, "__esModule", {
|
|
@@ -5122,23 +5138,23 @@ function Li() {
|
|
|
5122
5138
|
}
|
|
5123
5139
|
var In;
|
|
5124
5140
|
function rn() {
|
|
5125
|
-
if (In) return
|
|
5126
|
-
In = 1, Object.defineProperty(
|
|
5141
|
+
if (In) return ve;
|
|
5142
|
+
In = 1, Object.defineProperty(ve, "__esModule", {
|
|
5127
5143
|
value: !0
|
|
5128
|
-
}),
|
|
5144
|
+
}), ve.addClassName = p, ve.addEvent = i, ve.addUserSelectStyles = w, ve.createCSSTransform = y, ve.createSVGTransform = _, ve.getTouch = S, ve.getTouchIdentifier = E, ve.getTranslation = v, ve.innerHeight = m, ve.innerWidth = h, ve.matchesSelector = l, ve.matchesSelectorAndParentsTo = s, ve.offsetXYFromParent = g, ve.outerHeight = a, ve.outerWidth = f, ve.removeClassName = b, ve.removeEvent = c, ve.scheduleRemoveUserSelectStyles = x;
|
|
5129
5145
|
var e = kt(), n = r(Li());
|
|
5130
5146
|
function r(u, C) {
|
|
5131
5147
|
if (typeof WeakMap == "function") var A = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap();
|
|
5132
|
-
return (r = function(D,
|
|
5133
|
-
if (!
|
|
5134
|
-
var N,
|
|
5135
|
-
if (D === null || typeof D != "object" && typeof D != "function") return
|
|
5136
|
-
if (N =
|
|
5148
|
+
return (r = function(D, W) {
|
|
5149
|
+
if (!W && D && D.__esModule) return D;
|
|
5150
|
+
var N, Y, k = { __proto__: null, default: D };
|
|
5151
|
+
if (D === null || typeof D != "object" && typeof D != "function") return k;
|
|
5152
|
+
if (N = W ? M : A) {
|
|
5137
5153
|
if (N.has(D)) return N.get(D);
|
|
5138
|
-
N.set(D,
|
|
5154
|
+
N.set(D, k);
|
|
5139
5155
|
}
|
|
5140
|
-
for (const
|
|
5141
|
-
return
|
|
5156
|
+
for (const U in D) U !== "default" && {}.hasOwnProperty.call(D, U) && ((Y = (N = Object.defineProperty) && Object.getOwnPropertyDescriptor(D, U)) && (Y.get || Y.set) ? N(k, U, Y) : k[U] = D[U]);
|
|
5157
|
+
return k;
|
|
5142
5158
|
})(u, C);
|
|
5143
5159
|
}
|
|
5144
5160
|
let o = "";
|
|
@@ -5196,9 +5212,9 @@ function rn() {
|
|
|
5196
5212
|
const D = C === C.ownerDocument.body ? {
|
|
5197
5213
|
left: 0,
|
|
5198
5214
|
top: 0
|
|
5199
|
-
} : C.getBoundingClientRect(),
|
|
5215
|
+
} : C.getBoundingClientRect(), W = (u.clientX + C.scrollLeft - D.left) / A, N = (u.clientY + C.scrollTop - D.top) / A;
|
|
5200
5216
|
return {
|
|
5201
|
-
x:
|
|
5217
|
+
x: W,
|
|
5202
5218
|
y: N
|
|
5203
5219
|
};
|
|
5204
5220
|
}
|
|
@@ -5215,12 +5231,12 @@ function rn() {
|
|
|
5215
5231
|
let {
|
|
5216
5232
|
x: M,
|
|
5217
5233
|
y: D
|
|
5218
|
-
} = u,
|
|
5234
|
+
} = u, W = `translate(${M}${A},${D}${A})`;
|
|
5219
5235
|
if (C) {
|
|
5220
|
-
const N = `${typeof C.x == "string" ? C.x : C.x + A}`,
|
|
5221
|
-
|
|
5236
|
+
const N = `${typeof C.x == "string" ? C.x : C.x + A}`, Y = `${typeof C.y == "string" ? C.y : C.y + A}`;
|
|
5237
|
+
W = `translate(${N}, ${Y})` + W;
|
|
5222
5238
|
}
|
|
5223
|
-
return
|
|
5239
|
+
return W;
|
|
5224
5240
|
}
|
|
5225
5241
|
function S(u, C) {
|
|
5226
5242
|
return u.targetTouches && (0, e.findInArray)(u.targetTouches, (A) => C === A.identifier) || u.changedTouches && (0, e.findInArray)(u.changedTouches, (A) => C === A.identifier);
|
|
@@ -5259,7 +5275,7 @@ function rn() {
|
|
|
5259
5275
|
function b(u, C) {
|
|
5260
5276
|
u.classList ? u.classList.remove(C) : u.className = u.className.replace(new RegExp(`(?:^|\\s)${C}(?!\\S)`, "g"), "");
|
|
5261
5277
|
}
|
|
5262
|
-
return
|
|
5278
|
+
return ve;
|
|
5263
5279
|
}
|
|
5264
5280
|
var Re = {}, $n;
|
|
5265
5281
|
function mr() {
|
|
@@ -5831,31 +5847,31 @@ function Ni() {
|
|
|
5831
5847
|
position: A,
|
|
5832
5848
|
positionOffset: M,
|
|
5833
5849
|
scale: D,
|
|
5834
|
-
...
|
|
5850
|
+
...W
|
|
5835
5851
|
} = this.props;
|
|
5836
|
-
let N = {},
|
|
5837
|
-
const
|
|
5852
|
+
let N = {}, Y = null;
|
|
5853
|
+
const U = !!!A || this.state.dragging, I = A || p, re = {
|
|
5838
5854
|
// Set left if horizontal drag is enabled
|
|
5839
|
-
x: (0, i.canDragX)(this) &&
|
|
5855
|
+
x: (0, i.canDragX)(this) && U ? this.state.x : I.x,
|
|
5840
5856
|
// Set top if vertical drag is enabled
|
|
5841
|
-
y: (0, i.canDragY)(this) &&
|
|
5857
|
+
y: (0, i.canDragY)(this) && U ? this.state.y : I.y
|
|
5842
5858
|
};
|
|
5843
|
-
this.state.isElementSVG ?
|
|
5844
|
-
const
|
|
5859
|
+
this.state.isElementSVG ? Y = (0, s.createSVGTransform)(re, M) : N = (0, s.createCSSTransform)(re, M);
|
|
5860
|
+
const ee = (0, l.clsx)(T.props.className || "", b, {
|
|
5845
5861
|
[u]: this.state.dragging,
|
|
5846
5862
|
[C]: this.state.dragged
|
|
5847
5863
|
});
|
|
5848
|
-
return /* @__PURE__ */ n.createElement(a.default, g({},
|
|
5864
|
+
return /* @__PURE__ */ n.createElement(a.default, g({}, W, {
|
|
5849
5865
|
onStart: this.onDragStart,
|
|
5850
5866
|
onDrag: this.onDrag,
|
|
5851
5867
|
onStop: this.onDragStop
|
|
5852
5868
|
}), /* @__PURE__ */ n.cloneElement(n.Children.only(T), {
|
|
5853
|
-
className:
|
|
5869
|
+
className: ee,
|
|
5854
5870
|
style: {
|
|
5855
5871
|
...T.props.style,
|
|
5856
5872
|
...N
|
|
5857
5873
|
},
|
|
5858
|
-
transform:
|
|
5874
|
+
transform: Y
|
|
5859
5875
|
}));
|
|
5860
5876
|
}
|
|
5861
5877
|
}
|
|
@@ -5993,14 +6009,14 @@ function Fi() {
|
|
|
5993
6009
|
}
|
|
5994
6010
|
var Ii = Fi();
|
|
5995
6011
|
const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) => n ? /* @__PURE__ */ t.jsx(qt, { ...r, visible: r == null ? void 0 : r.open, children: e }) : e, Hi = () => {
|
|
5996
|
-
const e =
|
|
6012
|
+
const e = $(
|
|
5997
6013
|
"WidgetDisconnected",
|
|
5998
6014
|
"Widget Disconnected"
|
|
5999
|
-
), [n, r] =
|
|
6015
|
+
), [n, r] = B(!0), [o, l] = B({
|
|
6000
6016
|
x: 0,
|
|
6001
6017
|
y: 250,
|
|
6002
6018
|
maxY: window.innerHeight - 200
|
|
6003
|
-
}), [s, i] =
|
|
6019
|
+
}), [s, i] = B(!1), [c, a] = B(!1), f = ne(), m = ne(null), h = ne(null), g = ne(null), y = ne({
|
|
6004
6020
|
x: 0,
|
|
6005
6021
|
y: 0
|
|
6006
6022
|
}), { widgetProps: _, setOpenWidget: v, isFirstOpenWidget: S, setFirstOpenWidget: E } = de(), { onSendMsg: w, connected: x, isHandshakeWidget: T } = ke(), p = () => {
|
|
@@ -6045,8 +6061,8 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6045
6061
|
handle: ".w-handler-launcher-widget",
|
|
6046
6062
|
axis: "y",
|
|
6047
6063
|
onDrag: (A, M) => {
|
|
6048
|
-
const D = Math.abs(M.x - y.current.x),
|
|
6049
|
-
(D > 3 ||
|
|
6064
|
+
const D = Math.abs(M.x - y.current.x), W = Math.abs(M.y - y.current.y);
|
|
6065
|
+
(D > 3 || W > 3) && a(!0), l((N) => ({
|
|
6050
6066
|
...N,
|
|
6051
6067
|
y: M.y
|
|
6052
6068
|
}));
|
|
@@ -6087,14 +6103,14 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6087
6103
|
)
|
|
6088
6104
|
}
|
|
6089
6105
|
);
|
|
6090
|
-
}, Wi =
|
|
6091
|
-
const e =
|
|
6106
|
+
}, Wi = K(Hi), Bi = () => {
|
|
6107
|
+
const e = $("NotConnected", "Not Connected"), n = $(
|
|
6092
6108
|
"CannotAutoReconnect",
|
|
6093
6109
|
"Cannot auto reconnect"
|
|
6094
|
-
), r =
|
|
6110
|
+
), r = $(
|
|
6095
6111
|
"ReconnectManually",
|
|
6096
6112
|
"Reconnect Manually"
|
|
6097
|
-
), [o, l] =
|
|
6113
|
+
), [o, l] = B(!1), { connected: s, createSocket: i } = ke(), { widgetProps: c } = de();
|
|
6098
6114
|
return fe(() => {
|
|
6099
6115
|
l(!s);
|
|
6100
6116
|
}, [s]), /* @__PURE__ */ t.jsx(
|
|
@@ -6102,12 +6118,12 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6102
6118
|
{
|
|
6103
6119
|
title: `${c == null ? void 0 : c.title} ${e}`,
|
|
6104
6120
|
subTitle: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
6105
|
-
/* @__PURE__ */ t.jsxs(
|
|
6121
|
+
/* @__PURE__ */ t.jsxs(ae.Text, { children: [
|
|
6106
6122
|
n,
|
|
6107
6123
|
"?"
|
|
6108
6124
|
] }),
|
|
6109
6125
|
/* @__PURE__ */ t.jsx(
|
|
6110
|
-
|
|
6126
|
+
ae.Link,
|
|
6111
6127
|
{
|
|
6112
6128
|
strong: !0,
|
|
6113
6129
|
className: "w-reconnect-manual",
|
|
@@ -6122,10 +6138,10 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6122
6138
|
open: !s && o
|
|
6123
6139
|
}
|
|
6124
6140
|
);
|
|
6125
|
-
}, Yi =
|
|
6141
|
+
}, Yi = K(
|
|
6126
6142
|
Bi
|
|
6127
6143
|
), Vi = () => {
|
|
6128
|
-
const { xs: e } = Me.useBreakpoint(), [n, r] =
|
|
6144
|
+
const { xs: e } = Me.useBreakpoint(), [n, r] = B(!1), { isOpenWidget: o, widgetProps: l } = de(), { isActiveTabVA: s } = Ue(), i = ne(null), c = G(() => {
|
|
6129
6145
|
var m;
|
|
6130
6146
|
const f = [Ft];
|
|
6131
6147
|
return e && (l != null && l.isSF ? f == null || f.push(`${Ft}-sf-mobile`) : f == null || f.push(`${Ft}-mobile`)), (m = f == null ? void 0 : f.filter(Boolean)) == null ? void 0 : m.join(" ");
|
|
@@ -6149,18 +6165,18 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6149
6165
|
/* @__PURE__ */ t.jsx("div", { style: { display: s ? "none" : "block" }, children: /* @__PURE__ */ t.jsx("div", { className: a(xo), children: /* @__PURE__ */ t.jsx($s, { children: /* @__PURE__ */ t.jsx(Ns, { children: /* @__PURE__ */ t.jsx(_i, {}) }) }) }) }),
|
|
6150
6166
|
/* @__PURE__ */ t.jsx(Yi, {})
|
|
6151
6167
|
] }) : /* @__PURE__ */ t.jsx(Wi, {});
|
|
6152
|
-
}, zi =
|
|
6168
|
+
}, zi = K(Vi), Gi = ({ items: e, ...n }) => rt != null && rt.startsWith("5") || ot != null && ot.startsWith("18") ? /* @__PURE__ */ t.jsx(Ot, { ...n, items: e }) : /* @__PURE__ */ t.jsx(Ot, { ...n, children: e == null ? void 0 : e.map(({ ...r }) => /* @__PURE__ */ Gt(
|
|
6153
6169
|
Ot.TabPane,
|
|
6154
6170
|
{
|
|
6155
6171
|
...r,
|
|
6156
6172
|
key: r == null ? void 0 : r.key,
|
|
6157
6173
|
tab: r == null ? void 0 : r.label
|
|
6158
6174
|
}
|
|
6159
|
-
)) }), qi =
|
|
6160
|
-
const { isOpenWidget: e, isUserInputHide: n } = de(), { setActiveTab: r, activeTab: o } = Ue(), l =
|
|
6175
|
+
)) }), qi = K(Gi), Ki = () => {
|
|
6176
|
+
const { isOpenWidget: e, isUserInputHide: n } = de(), { setActiveTab: r, activeTab: o } = Ue(), l = $(
|
|
6161
6177
|
"VirtualAssistant",
|
|
6162
6178
|
"Virtual Assistant"
|
|
6163
|
-
), s =
|
|
6179
|
+
), s = $("Helpdesk", "Helpdesk"), { xs: i } = Me.useBreakpoint();
|
|
6164
6180
|
return fe(() => {
|
|
6165
6181
|
const c = Xn();
|
|
6166
6182
|
r((c == null ? void 0 : c.activeTab) ?? o);
|
|
@@ -6196,8 +6212,8 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6196
6212
|
)
|
|
6197
6213
|
}
|
|
6198
6214
|
) : null;
|
|
6199
|
-
}, Pi =
|
|
6200
|
-
const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: l } = de(), { xs: s } = Me.useBreakpoint(), i =
|
|
6215
|
+
}, Pi = K(Ki), Xi = () => {
|
|
6216
|
+
const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: l } = de(), { xs: s } = Me.useBreakpoint(), i = G(() => {
|
|
6201
6217
|
const { title: c = "", modelName: a = "" } = l;
|
|
6202
6218
|
return a ? `${c} (${a})` : c;
|
|
6203
6219
|
}, [l == null ? void 0 : l.title, l == null ? void 0 : l.modelName]);
|
|
@@ -6242,8 +6258,8 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6242
6258
|
]
|
|
6243
6259
|
}
|
|
6244
6260
|
) : null;
|
|
6245
|
-
}, Ji =
|
|
6246
|
-
const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = de(), { xs: l } = Me.useBreakpoint(), s =
|
|
6261
|
+
}, Ji = K(Xi), Zi = () => {
|
|
6262
|
+
const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = de(), { xs: l } = Me.useBreakpoint(), s = G(() => {
|
|
6247
6263
|
var c;
|
|
6248
6264
|
const i = [
|
|
6249
6265
|
l && n && "w-container-widget-mobile",
|
|
@@ -6270,7 +6286,7 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6270
6286
|
]
|
|
6271
6287
|
}
|
|
6272
6288
|
);
|
|
6273
|
-
}, Qi =
|
|
6289
|
+
}, Qi = K(Zi), pa = ({
|
|
6274
6290
|
getStartedPayload: e,
|
|
6275
6291
|
socketURL: n,
|
|
6276
6292
|
socketPath: r,
|