widget-chatbot 2.0.8-alpha.1 → 2.0.8
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 +719 -701
- 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,14 +195,14 @@ function ro() {
|
|
|
195
195
|
}
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
|
-
var
|
|
198
|
+
var k = 0, U, I, re, ee, j, L, Z;
|
|
199
199
|
function V() {
|
|
200
200
|
}
|
|
201
201
|
V.__reactDisabledLog = !0;
|
|
202
|
-
function
|
|
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,
|
|
@@ -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,125 +232,125 @@ 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, z;
|
|
275
275
|
{
|
|
276
|
-
var
|
|
277
|
-
|
|
276
|
+
var oe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
277
|
+
z = new oe();
|
|
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 = z.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
|
-
`),
|
|
329
|
-
`),
|
|
330
|
-
|
|
331
|
-
for (;
|
|
332
|
-
if (
|
|
333
|
-
if (
|
|
326
|
+
if (Le && Q && typeof Le.stack == "string") {
|
|
327
|
+
for (var se = Le.stack.split(`
|
|
328
|
+
`), Ee = Q.stack.split(`
|
|
329
|
+
`), ye = se.length - 1, be = Ee.length - 1; ye >= 1 && be >= 0 && se[ye] !== Ee[be]; )
|
|
330
|
+
be--;
|
|
331
|
+
for (; ye >= 1 && be >= 0; ye--, be--)
|
|
332
|
+
if (se[ye] !== Ee[be]) {
|
|
333
|
+
if (ye !== 1 || be !== 1)
|
|
334
334
|
do
|
|
335
|
-
if (
|
|
335
|
+
if (ye--, be--, be < 0 || se[ye] !== Ee[be]) {
|
|
336
336
|
var Oe = `
|
|
337
|
-
` +
|
|
338
|
-
return typeof d == "function" &&
|
|
337
|
+
` + se[ye].replace(" at new ", " at ");
|
|
338
|
+
return typeof d == "function" && z.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" && z.set(d, fn), fn;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function me(d, R, H) {
|
|
351
351
|
return O(d, !1);
|
|
352
352
|
}
|
|
353
|
-
function
|
|
353
|
+
function Ce(d) {
|
|
354
354
|
var R = d.prototype;
|
|
355
355
|
return !!(R && R.isReactComponent);
|
|
356
356
|
}
|
|
@@ -358,25 +358,25 @@ function ro() {
|
|
|
358
358
|
if (d == null)
|
|
359
359
|
return "";
|
|
360
360
|
if (typeof d == "function")
|
|
361
|
-
return O(d,
|
|
361
|
+
return O(d, Ce(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 {
|
|
@@ -385,7 +385,7 @@ function ro() {
|
|
|
385
385
|
}
|
|
386
386
|
return "";
|
|
387
387
|
}
|
|
388
|
-
var
|
|
388
|
+
var Te = {}, Ne = u.ReactDebugCurrentFrame;
|
|
389
389
|
function Ae(d) {
|
|
390
390
|
if (d) {
|
|
391
391
|
var R = d._owner, H = ge(d.type, d._source, R ? R.type : null);
|
|
@@ -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 se = void 0;
|
|
402
402
|
try {
|
|
403
|
-
if (typeof d[
|
|
404
|
-
var
|
|
405
|
-
throw
|
|
403
|
+
if (typeof d[ie] != "function") {
|
|
404
|
+
var Ee = 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
|
+
throw Ee.name = "Invariant Violation", Ee;
|
|
406
406
|
}
|
|
407
|
-
|
|
408
|
-
} catch (
|
|
409
|
-
|
|
407
|
+
se = d[ie](R, ie, Q, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
|
+
} catch (ye) {
|
|
409
|
+
se = ye;
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
se && !(se 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 se), Ae(null)), se instanceof Error && !(se.message in Te) && (Te[se.message] = !0, Ae(he), C("Failed %s type: %s", H, se.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 se = {
|
|
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 se._store = {}, Object.defineProperty(se._store, "validated", {
|
|
475
475
|
configurable: !1,
|
|
476
476
|
enumerable: !1,
|
|
477
477
|
writable: !0,
|
|
478
478
|
value: !1
|
|
479
|
-
}), Object.defineProperty(
|
|
479
|
+
}), Object.defineProperty(se, "_self", {
|
|
480
480
|
configurable: !1,
|
|
481
481
|
enumerable: !1,
|
|
482
482
|
writable: !1,
|
|
483
|
-
value:
|
|
484
|
-
}), Object.defineProperty(
|
|
483
|
+
value: Q
|
|
484
|
+
}), Object.defineProperty(se, "_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(se.props), Object.freeze(se)), se;
|
|
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 = {}, se = null, Ee = null;
|
|
494
|
+
H !== void 0 && (se = "" + H), br(R) && (se = "" + R.key), vr(R) && (Ee = 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 (se || Ee) {
|
|
503
|
+
var be = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
504
|
+
se && Tr(ie, be), Ee && Er(ie, be);
|
|
505
505
|
}
|
|
506
|
-
return Sr(d,
|
|
506
|
+
return Sr(d, se, Ee, 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) && (
|
|
625
|
-
var
|
|
626
|
-
|
|
627
|
-
var
|
|
628
|
-
d === null ?
|
|
621
|
+
var ie = D(d);
|
|
622
|
+
if (!ie) {
|
|
623
|
+
var se = "";
|
|
624
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (se += " 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
|
+
var Ee = _r();
|
|
626
|
+
Ee ? se += Ee : se += 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") + " />", se = " 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, se);
|
|
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
|
|
665
|
+
const so = "2.0.8", 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,43 +995,43 @@ 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 oe;
|
|
1008
|
+
const z = _e(F, "text_feedback_link") && _e(F, "text");
|
|
1009
1009
|
r((O) => {
|
|
1010
1010
|
var Ne, Ae;
|
|
1011
|
-
const
|
|
1012
|
-
return (ge == null ? void 0 : ge.id) ===
|
|
1013
|
-
|
|
1014
|
-
id:
|
|
1015
|
-
...
|
|
1011
|
+
const Ce = [...Co(O)], ge = Ce[Ce.length - 1], Te = 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) === Te ? (ge.text = `${(ge == null ? void 0 : ge.text) || ""}${(F == null ? void 0 : F.text) || ""}`, F != null && F.tag && (ge.tag = F.tag)) : Ce.push({
|
|
1013
|
+
...F,
|
|
1014
|
+
id: Te,
|
|
1015
|
+
...z && { type: "text" },
|
|
1016
1016
|
sender: "response"
|
|
1017
|
-
}), To(
|
|
1018
|
-
}), C(!0), m(!1), l(!1), L(((
|
|
1017
|
+
}), To(Ce);
|
|
1018
|
+
}), C(!0), m(!1), l(!1), L(((oe = F == null ? void 0 : F.metadata) == null ? void 0 : oe.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
|
-
}, V = (
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
}), (O = N.current) == null || O.on(ao,
|
|
1028
|
-
const
|
|
1029
|
-
|
|
1030
|
-
}), (
|
|
1023
|
+
}, V = (F) => {
|
|
1024
|
+
var z, oe, O, me, Ce;
|
|
1025
|
+
F && P({ msg: I == null ? void 0 : I.getStartedPayload }), (z = N.current) == null || z.emit("session_request", { session_id: null }), (oe = N.current) == null || oe.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
|
+
const Te = JSON.parse(ge || "{}");
|
|
1029
|
+
_e(Te, "iswidget") && w(Te == null ? void 0 : Te.iswidget);
|
|
1030
|
+
}), (Ce = N.current) == null || Ce.on(lo, (ge) => {
|
|
1031
1031
|
try {
|
|
1032
|
-
const
|
|
1032
|
+
const Te = typeof ge == "string" ? JSON.parse(ge) : ge, { id: Ne } = Te || {};
|
|
1033
1033
|
if (!Ne) return;
|
|
1034
|
-
const Ae = Ne.split("|")[0], at =
|
|
1034
|
+
const Ae = Ne.split("|")[0], at = Te.tag, qe = Te.reason;
|
|
1035
1035
|
M((Ke) => {
|
|
1036
1036
|
const Pe = Ke[Ae] || {}, Be = {
|
|
1037
1037
|
...Pe.tag !== void 0 ? { tag: Pe.tag } : {},
|
|
@@ -1042,26 +1042,26 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1042
1042
|
[Ae]: Be
|
|
1043
1043
|
};
|
|
1044
1044
|
}), at && !qe && m(!0);
|
|
1045
|
-
} catch (
|
|
1046
|
-
console.error("Error parsing BOT_REASON_UTTERED:",
|
|
1045
|
+
} catch (Te) {
|
|
1046
|
+
console.error("Error parsing BOT_REASON_UTTERED:", Te);
|
|
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: z = {},
|
|
1052
|
+
isShowLoadingResponse: oe = !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
|
+
...z
|
|
1060
|
+
}), oe ? l(!0) : i(!0);
|
|
1061
|
+
}, te = (F = !1, z = !1) => {
|
|
1062
|
+
var O, me;
|
|
1063
|
+
N.current && ((O = N.current) == null || O.off(), (me = N.current) == null || me.disconnect(), N.current = null), j.current = !1;
|
|
1064
|
+
const oe = Kr(
|
|
1065
1065
|
`${Eo(I == null ? void 0 : I.socketURL)}://${Kn(
|
|
1066
1066
|
I == null ? void 0 : I.socketURL
|
|
1067
1067
|
)}`,
|
|
@@ -1072,27 +1072,29 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1072
1072
|
reconnectionAttempts: 1
|
|
1073
1073
|
}
|
|
1074
1074
|
);
|
|
1075
|
-
|
|
1075
|
+
oe.on("connect", () => {
|
|
1076
|
+
V(F);
|
|
1077
|
+
}), oe.on("connect_error", (Ce) => {
|
|
1076
1078
|
console.error("connect_error widget-chatbot : ", {
|
|
1077
|
-
err:
|
|
1079
|
+
err: Ce,
|
|
1078
1080
|
socketURL: I == null ? void 0 : I.socketURL,
|
|
1079
1081
|
socketPath: I == null ? void 0 : I.widgetProps
|
|
1080
1082
|
}), S(!1);
|
|
1081
|
-
}),
|
|
1083
|
+
}), oe.io.on("reconnect", () => {
|
|
1082
1084
|
console.error("reconnect widget-chatbot : ", {
|
|
1083
1085
|
socketURL: I == null ? void 0 : I.socketURL,
|
|
1084
1086
|
socketPath: I == null ? void 0 : I.widgetProps
|
|
1085
1087
|
}), S(!1);
|
|
1086
|
-
}), N.current =
|
|
1087
|
-
},
|
|
1088
|
-
var
|
|
1089
|
-
(!((
|
|
1090
|
-
},
|
|
1091
|
-
return fe(() => (
|
|
1092
|
-
var
|
|
1093
|
-
N.current && ((
|
|
1088
|
+
}), N.current = oe;
|
|
1089
|
+
}, X = () => {
|
|
1090
|
+
var F;
|
|
1091
|
+
(!((F = N == null ? void 0 : N.current) != null && F.connected) || !v) && (te(), re(!1));
|
|
1092
|
+
}, J = () => S(!1);
|
|
1093
|
+
return fe(() => (re(!1), te(), window.addEventListener("online", X), window.addEventListener("offline", J), () => {
|
|
1094
|
+
var F, z;
|
|
1095
|
+
N.current && ((F = N.current) == null || F.off("connect", V), (z = N.current) == null || z.disconnect(), N.current = null), window.removeEventListener("online", X), window.removeEventListener("offline", J);
|
|
1094
1096
|
}), [
|
|
1095
|
-
JSON.stringify(
|
|
1097
|
+
JSON.stringify(U || {}),
|
|
1096
1098
|
I == null ? void 0 : I.socketURL,
|
|
1097
1099
|
I == null ? void 0 : I.socketPath
|
|
1098
1100
|
]), /* @__PURE__ */ t.jsx(
|
|
@@ -1101,17 +1103,17 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1101
1103
|
value: {
|
|
1102
1104
|
setChats: r,
|
|
1103
1105
|
chats: n,
|
|
1104
|
-
onSendMsg:
|
|
1106
|
+
onSendMsg: P,
|
|
1105
1107
|
isWaitResponse: o,
|
|
1106
1108
|
socket: N == null ? void 0 : N.current,
|
|
1107
|
-
sessionId: (
|
|
1109
|
+
sessionId: (q = Y == null ? void 0 : Y.current) == null ? void 0 : q.session_id,
|
|
1108
1110
|
loadingRegenerate: s,
|
|
1109
1111
|
file: c,
|
|
1110
1112
|
setFile: a,
|
|
1111
1113
|
connected: v,
|
|
1112
1114
|
isHandshakeWidget: E,
|
|
1113
|
-
createSocket:
|
|
1114
|
-
currRegenerateId:
|
|
1115
|
+
createSocket: te,
|
|
1116
|
+
currRegenerateId: k,
|
|
1115
1117
|
thinkingText: x,
|
|
1116
1118
|
setThinkingText: T,
|
|
1117
1119
|
isThinkingCompleted: p,
|
|
@@ -1411,13 +1413,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1411
1413
|
boxShadow: "inset 5px 0 0 #f7d87c",
|
|
1412
1414
|
zIndex: "0"
|
|
1413
1415
|
}
|
|
1414
|
-
}, Do = (e) => e.replace(/[^a-zA-Z0-9_]/g, "").trim(),
|
|
1416
|
+
}, Do = (e) => e.replace(/[^a-zA-Z0-9_]/g, "").trim(), $ = (e = "", n) => {
|
|
1415
1417
|
var i;
|
|
1416
1418
|
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
1419
|
return ((i = Object.keys(r || {})) == null ? void 0 : i.length) > 0 ? o ? `WPUI_${l}` : s : n;
|
|
1418
1420
|
}, Oo = ({ isFeedback: e = !1, open: n, ...r }) => {
|
|
1419
1421
|
var l;
|
|
1420
|
-
const o =
|
|
1422
|
+
const o = G(() => e ? "w-modal-container-feedback" : "", [e]);
|
|
1421
1423
|
return rt != null && rt.startsWith("5") ? /* @__PURE__ */ t.jsx(
|
|
1422
1424
|
gn,
|
|
1423
1425
|
{
|
|
@@ -1464,8 +1466,8 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1464
1466
|
}
|
|
1465
1467
|
)
|
|
1466
1468
|
);
|
|
1467
|
-
}, nr =
|
|
1468
|
-
const l =
|
|
1469
|
+
}, nr = K(Oo), Lo = ({ childrenData: e, children: n, tag: r, reason: o }) => {
|
|
1470
|
+
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
1471
|
return /* @__PURE__ */ t.jsxs("div", { children: [
|
|
1470
1472
|
a && /* @__PURE__ */ t.jsx(
|
|
1471
1473
|
pn,
|
|
@@ -1478,7 +1480,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1478
1480
|
pn.Panel,
|
|
1479
1481
|
{
|
|
1480
1482
|
header: /* @__PURE__ */ t.jsx(
|
|
1481
|
-
|
|
1483
|
+
ae.Paragraph,
|
|
1482
1484
|
{
|
|
1483
1485
|
style: {
|
|
1484
1486
|
maxWidth: 180,
|
|
@@ -1491,7 +1493,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1491
1493
|
}
|
|
1492
1494
|
),
|
|
1493
1495
|
children: /* @__PURE__ */ t.jsx(
|
|
1494
|
-
|
|
1496
|
+
ae.Paragraph,
|
|
1495
1497
|
{
|
|
1496
1498
|
style: {
|
|
1497
1499
|
fontSize: 12,
|
|
@@ -1509,7 +1511,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1509
1511
|
),
|
|
1510
1512
|
i.map((f, m) => /* @__PURE__ */ t.jsx(Et, { children: n(f.value, "text") }, m))
|
|
1511
1513
|
] });
|
|
1512
|
-
}, Mo =
|
|
1514
|
+
}, Mo = K(Lo), Sn = ({ props: e, isModal: n = !1 }) => {
|
|
1513
1515
|
const r = (o, l) => {
|
|
1514
1516
|
var s;
|
|
1515
1517
|
return (s = Nr) == null ? void 0 : s.map(o, (i) => {
|
|
@@ -1552,10 +1554,10 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1552
1554
|
}
|
|
1553
1555
|
) }) }) });
|
|
1554
1556
|
}, No = ({ children: e, tag: n, reason: r }) => {
|
|
1555
|
-
const o =
|
|
1557
|
+
const o = $(
|
|
1556
1558
|
"OpenDetailTable",
|
|
1557
1559
|
"Open Detail Table"
|
|
1558
|
-
), l =
|
|
1560
|
+
), l = $("TableDetail", "Tabel Detail"), { widgetProps: s, objInitPayload: i } = de(), [c, a] = B(!1);
|
|
1559
1561
|
return /* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(Mo, { childrenData: e, tag: n, reason: r, children: (f, m) => /* @__PURE__ */ t.jsx(
|
|
1560
1562
|
Pr,
|
|
1561
1563
|
{
|
|
@@ -1620,7 +1622,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1620
1622
|
PreTag: "div",
|
|
1621
1623
|
children: String(g).replace(/\n$/, "")
|
|
1622
1624
|
}
|
|
1623
|
-
) : /* @__PURE__ */ t.jsx(
|
|
1625
|
+
) : /* @__PURE__ */ t.jsx(ae.Text, { code: !0, children: g });
|
|
1624
1626
|
},
|
|
1625
1627
|
a: (h) => {
|
|
1626
1628
|
var S;
|
|
@@ -1644,7 +1646,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1644
1646
|
children: f
|
|
1645
1647
|
}
|
|
1646
1648
|
) }) });
|
|
1647
|
-
}, rr =
|
|
1649
|
+
}, rr = K(No), Fo = () => /* @__PURE__ */ t.jsxs(
|
|
1648
1650
|
"svg",
|
|
1649
1651
|
{
|
|
1650
1652
|
width: "24",
|
|
@@ -1972,7 +1974,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1972
1974
|
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
1975
|
}
|
|
1974
1976
|
), xe = ({ type: e = "", chatProps: n, ...r }) => {
|
|
1975
|
-
const o =
|
|
1977
|
+
const o = G(() => ({
|
|
1976
1978
|
minimize: Io,
|
|
1977
1979
|
expand: $o,
|
|
1978
1980
|
send: Uo,
|
|
@@ -1997,7 +1999,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1997
1999
|
}), [e, n, r]);
|
|
1998
2000
|
return /* @__PURE__ */ t.jsx(Zr, { component: o == null ? void 0 : o[e], ...r });
|
|
1999
2001
|
}, or = ze({}), Ue = () => Ge(or), rs = ({ children: e }) => {
|
|
2000
|
-
const [n, r] =
|
|
2002
|
+
const [n, r] = B("va"), o = G(() => n === "va", [n]);
|
|
2001
2003
|
return /* @__PURE__ */ t.jsx(
|
|
2002
2004
|
or.Provider,
|
|
2003
2005
|
{
|
|
@@ -2010,27 +2012,27 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2010
2012
|
}
|
|
2011
2013
|
);
|
|
2012
2014
|
}, os = ({ ...e }) => {
|
|
2013
|
-
const n =
|
|
2015
|
+
const n = $(
|
|
2014
2016
|
"WeLoveToHearAboutYourExperienceWithTheSunfishChatbot",
|
|
2015
2017
|
"We'd love to hear about your experience with the Sunfish chatbot"
|
|
2016
|
-
), r =
|
|
2018
|
+
), r = $(
|
|
2017
2019
|
"ShareAnyCommentsOrSuggestionsToHelpUsImprove",
|
|
2018
2020
|
"Share any comments or suggestions to help us improve"
|
|
2019
|
-
), o =
|
|
2021
|
+
), o = $("Submit", "Submit"), l = $(
|
|
2020
2022
|
"ThankFeedback",
|
|
2021
2023
|
"Thank You for your feedback"
|
|
2022
|
-
), s =
|
|
2024
|
+
), s = $(
|
|
2023
2025
|
"AdditionalFeedback",
|
|
2024
2026
|
"Additional Feedback"
|
|
2025
|
-
), [i] =
|
|
2027
|
+
), [i] = we.useForm(), [c, a] = B(!1), [f, m] = B(""), { setChats: h } = ke(), { objInitPayload: g, isUserInputHide: y } = de(), { activeTab: _ } = Ue(), v = G(() => {
|
|
2026
2028
|
var T;
|
|
2027
|
-
const x =
|
|
2029
|
+
const x = _e(e, "feedback") ? (e == null ? void 0 : e.feedback) === "like" || (e == null ? void 0 : e.feedback) === "" : !0;
|
|
2028
2030
|
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 =
|
|
2031
|
+
}, [e]), S = G(() => {
|
|
2030
2032
|
var T;
|
|
2031
|
-
const x =
|
|
2033
|
+
const x = _e(e, "feedback") ? (e == null ? void 0 : e.feedback) === "dislike" || (e == null ? void 0 : e.feedback) === "" : !0;
|
|
2032
2034
|
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 =
|
|
2035
|
+
}, [e]), E = G(() => {
|
|
2034
2036
|
if (g != null && g.uriBackend)
|
|
2035
2037
|
try {
|
|
2036
2038
|
return new URL(g.uriBackend).origin;
|
|
@@ -2039,7 +2041,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2039
2041
|
}
|
|
2040
2042
|
return "";
|
|
2041
2043
|
}, [g == null ? void 0 : g.uriBackend]), w = (x) => {
|
|
2042
|
-
var
|
|
2044
|
+
var W;
|
|
2043
2045
|
const T = x === "like" ? e == null ? void 0 : e.text_thumbsup_link : e == null ? void 0 : e.text_thumbsdown_link, {
|
|
2044
2046
|
access_token: p = "",
|
|
2045
2047
|
companycode: b = "",
|
|
@@ -2048,7 +2050,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2048
2050
|
uriBackendEnt: A = "",
|
|
2049
2051
|
lang: M = ""
|
|
2050
2052
|
} = g || {}, D = f === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : f;
|
|
2051
|
-
(
|
|
2053
|
+
(W = st({
|
|
2052
2054
|
method: "POST",
|
|
2053
2055
|
url: T,
|
|
2054
2056
|
data: {
|
|
@@ -2069,41 +2071,41 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2069
2071
|
"Acc-Name": `${b.toUpperCase()}`,
|
|
2070
2072
|
Language: `${M}`
|
|
2071
2073
|
}
|
|
2072
|
-
})) == null ||
|
|
2073
|
-
var
|
|
2074
|
-
(N == null ? void 0 : N.status) === 200 && (c && a(!1), (
|
|
2074
|
+
})) == null || W.then((N) => {
|
|
2075
|
+
var Y, k, U;
|
|
2076
|
+
(N == null ? void 0 : N.status) === 200 && (c && a(!1), (Y = Se) == null || Y.destroy(), (k = Se) == null || k.config({
|
|
2075
2077
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2076
2078
|
top: 28,
|
|
2077
2079
|
placement: "top",
|
|
2078
2080
|
duration: 3
|
|
2079
|
-
}), (
|
|
2081
|
+
}), (U = Se) == null || U.success({
|
|
2080
2082
|
message: l,
|
|
2081
2083
|
className: "w-notification-content"
|
|
2082
2084
|
}), h((I) => {
|
|
2083
|
-
var
|
|
2084
|
-
return (
|
|
2085
|
+
var re;
|
|
2086
|
+
return (re = I == null ? void 0 : I.map((ee) => {
|
|
2085
2087
|
var L;
|
|
2086
|
-
if (
|
|
2087
|
-
const
|
|
2088
|
+
if (_e(ee, "chats")) {
|
|
2089
|
+
const Z = (L = ee == null ? void 0 : ee.chats) == null ? void 0 : L.map((V) => (V == null ? void 0 : V.indexChat) === (e == null ? void 0 : e.indexChat) ? {
|
|
2088
2090
|
...V,
|
|
2089
2091
|
feedback: x
|
|
2090
2092
|
} : V);
|
|
2091
2093
|
return {
|
|
2092
|
-
...
|
|
2093
|
-
chats:
|
|
2094
|
+
...ee,
|
|
2095
|
+
chats: Z
|
|
2094
2096
|
};
|
|
2095
2097
|
}
|
|
2096
|
-
return (e == null ? void 0 : e.id) === (
|
|
2097
|
-
...
|
|
2098
|
+
return (e == null ? void 0 : e.id) === (ee == null ? void 0 : ee.id) ? {
|
|
2099
|
+
...ee,
|
|
2098
2100
|
feedback: x
|
|
2099
|
-
} :
|
|
2100
|
-
})) == null ? void 0 :
|
|
2101
|
+
} : ee;
|
|
2102
|
+
})) == null ? void 0 : re.flat();
|
|
2101
2103
|
}));
|
|
2102
2104
|
});
|
|
2103
2105
|
};
|
|
2104
2106
|
return fe(() => {
|
|
2105
2107
|
var x;
|
|
2106
|
-
(x =
|
|
2108
|
+
(x = Se) == null || x.destroy();
|
|
2107
2109
|
}, [_]), y ? null : /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2108
2110
|
v && /* @__PURE__ */ t.jsx(
|
|
2109
2111
|
ue,
|
|
@@ -2156,13 +2158,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2156
2158
|
),
|
|
2157
2159
|
f === "another" && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2158
2160
|
/* @__PURE__ */ t.jsx(Wr, { children: s }),
|
|
2159
|
-
/* @__PURE__ */ t.jsx(
|
|
2161
|
+
/* @__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
2162
|
] })
|
|
2161
2163
|
]
|
|
2162
2164
|
}
|
|
2163
2165
|
)
|
|
2164
2166
|
] });
|
|
2165
|
-
}, ss =
|
|
2167
|
+
}, ss = K(os), is = ({
|
|
2166
2168
|
showFeedback: e = !0,
|
|
2167
2169
|
showRegenerate: n = !0,
|
|
2168
2170
|
position: r = "left",
|
|
@@ -2176,7 +2178,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2176
2178
|
setChats: f,
|
|
2177
2179
|
loadingRegenerate: m,
|
|
2178
2180
|
currRegenerateId: h
|
|
2179
|
-
} = ke(), g =
|
|
2181
|
+
} = 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
2182
|
switch (r) {
|
|
2181
2183
|
case "left":
|
|
2182
2184
|
return "flex-start";
|
|
@@ -2185,7 +2187,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2185
2187
|
case "right":
|
|
2186
2188
|
return "flex-end";
|
|
2187
2189
|
}
|
|
2188
|
-
}, [r]), S =
|
|
2190
|
+
}, [r]), S = G(() => e && (o == null ? void 0 : o.text_FeedbackIcons) === "hidup", [o, e]), E = () => {
|
|
2189
2191
|
if (!s) return;
|
|
2190
2192
|
i(!1);
|
|
2191
2193
|
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 +2228,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2226
2228
|
]
|
|
2227
2229
|
}
|
|
2228
2230
|
) });
|
|
2229
|
-
}, zt =
|
|
2231
|
+
}, zt = K(is), as = ({ nameFallback: e = "", ...n }) => /* @__PURE__ */ t.jsx(
|
|
2230
2232
|
Br,
|
|
2231
2233
|
{
|
|
2232
2234
|
...typeof (n == null ? void 0 : n.onError) != "function" && {
|
|
@@ -2236,7 +2238,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2236
2238
|
loading: "lazy",
|
|
2237
2239
|
...n
|
|
2238
2240
|
}
|
|
2239
|
-
), en =
|
|
2241
|
+
), en = K(as), cs = ({ nameFallback: e = "", ...n }) => {
|
|
2240
2242
|
const r = ne(0);
|
|
2241
2243
|
return /* @__PURE__ */ t.jsx(
|
|
2242
2244
|
Yn,
|
|
@@ -2256,7 +2258,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2256
2258
|
)
|
|
2257
2259
|
}
|
|
2258
2260
|
);
|
|
2259
|
-
}, Ve =
|
|
2261
|
+
}, Ve = K(cs);
|
|
2260
2262
|
Ve.Group = Yn.Group;
|
|
2261
2263
|
const tt = [
|
|
2262
2264
|
{ label: "Thinking..", duration: 3e3 },
|
|
@@ -2266,7 +2268,7 @@ const tt = [
|
|
|
2266
2268
|
{ label: "Almost there..", duration: 1 / 0 }
|
|
2267
2269
|
], ls = ({ isLoading: e = !0, onPhaseChange: n }) => {
|
|
2268
2270
|
var m;
|
|
2269
|
-
const [r, o] =
|
|
2271
|
+
const [r, o] = B(0), [l, s] = B(!1), i = ne(null), c = ne(null), a = ne(0);
|
|
2270
2272
|
if (fe(() => {
|
|
2271
2273
|
const h = () => {
|
|
2272
2274
|
c.current && (clearInterval(c.current), c.current = null);
|
|
@@ -2292,7 +2294,7 @@ const tt = [
|
|
|
2292
2294
|
}, [e, n]), !e) return null;
|
|
2293
2295
|
const f = ((m = tt[r]) == null ? void 0 : m.label) || "Thinking..";
|
|
2294
2296
|
return /* @__PURE__ */ t.jsx("span", { className: `dynamic-loading-label ${l ? "transitioning" : ""}`, children: f });
|
|
2295
|
-
}, us =
|
|
2297
|
+
}, 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
2298
|
/* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", children: [
|
|
2297
2299
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
2298
2300
|
/* @__PURE__ */ t.jsx("div", {}),
|
|
@@ -2300,18 +2302,18 @@ const tt = [
|
|
|
2300
2302
|
/* @__PURE__ */ t.jsx("div", {})
|
|
2301
2303
|
] }),
|
|
2302
2304
|
e && /* @__PURE__ */ t.jsx(us, { isLoading: n, onPhaseChange: r })
|
|
2303
|
-
] }), sr =
|
|
2305
|
+
] }), sr = K(ds), fs = () => {
|
|
2304
2306
|
const { widgetProps: e } = de(), { connected: n } = ke();
|
|
2305
2307
|
return /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2306
2308
|
/* @__PURE__ */ t.jsx(Ve, { src: wt, nameFallback: e == null ? void 0 : e.title }),
|
|
2307
2309
|
/* @__PURE__ */ t.jsx(sr, { showLabel: n, isLoading: !0 })
|
|
2308
2310
|
] });
|
|
2309
|
-
}, tn =
|
|
2311
|
+
}, tn = K(fs), gs = ({ src: e, name: n }) => /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2310
2312
|
/* @__PURE__ */ t.jsx(Ve, { src: e, preview: !1, nameFallback: n }),
|
|
2311
|
-
/* @__PURE__ */ t.jsx(
|
|
2312
|
-
] }), ht =
|
|
2313
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: n })
|
|
2314
|
+
] }), ht = K(gs), ps = ({ ...e }) => {
|
|
2313
2315
|
var m, h;
|
|
2314
|
-
const [n, r] =
|
|
2316
|
+
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
2317
|
const g = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2316
2318
|
return (g == null ? void 0 : g.generated_id) === l.current;
|
|
2317
2319
|
}, [a, e, l.current]);
|
|
@@ -2385,7 +2387,7 @@ const tt = [
|
|
|
2385
2387
|
}
|
|
2386
2388
|
}
|
|
2387
2389
|
),
|
|
2388
|
-
/* @__PURE__ */ t.jsxs(
|
|
2390
|
+
/* @__PURE__ */ t.jsxs(ae.Text, { children: [
|
|
2389
2391
|
n,
|
|
2390
2392
|
" / ",
|
|
2391
2393
|
(m = e == null ? void 0 : e.chats) == null ? void 0 : m.length
|
|
@@ -2406,10 +2408,10 @@ const tt = [
|
|
|
2406
2408
|
] })
|
|
2407
2409
|
] })
|
|
2408
2410
|
] });
|
|
2409
|
-
}, hs =
|
|
2411
|
+
}, hs = K(ps), xs = ({ date: e, format: n, sender: r, ...o }) => {
|
|
2410
2412
|
var l, s;
|
|
2411
2413
|
return /* @__PURE__ */ t.jsx(
|
|
2412
|
-
|
|
2414
|
+
ae.Text,
|
|
2413
2415
|
{
|
|
2414
2416
|
...o,
|
|
2415
2417
|
type: "secondary",
|
|
@@ -2426,12 +2428,12 @@ const tt = [
|
|
|
2426
2428
|
children: n ? (s = je(e)) == null ? void 0 : s.format(n) : e
|
|
2427
2429
|
}
|
|
2428
2430
|
);
|
|
2429
|
-
}, xt =
|
|
2431
|
+
}, xt = K(xs), ms = ({ showResponseInfo: e = !0, ...n }) => {
|
|
2430
2432
|
var m;
|
|
2431
|
-
const { loadingRegenerate: r, chats: o, reasonMap: l } = ke(), { widgetProps: s } = de(), i =
|
|
2433
|
+
const { loadingRegenerate: r, chats: o, reasonMap: l } = ke(), { widgetProps: s } = de(), i = G(
|
|
2432
2434
|
() => (o == null ? void 0 : o.length) - 1 === (n == null ? void 0 : n.indexChat),
|
|
2433
2435
|
[o]
|
|
2434
|
-
), c =
|
|
2436
|
+
), 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
2437
|
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
2438
|
c === "response" && e && /* @__PURE__ */ t.jsx(ht, { name: s == null ? void 0 : s.title, src: wt }),
|
|
2437
2439
|
/* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${c}`}`, children: [
|
|
@@ -2448,17 +2450,17 @@ const tt = [
|
|
|
2448
2450
|
] }),
|
|
2449
2451
|
/* @__PURE__ */ t.jsx(zt, { ...n })
|
|
2450
2452
|
] });
|
|
2451
|
-
}, ft =
|
|
2452
|
-
const e =
|
|
2453
|
+
}, ft = K(ms), ys = () => {
|
|
2454
|
+
const e = $(
|
|
2453
2455
|
"PleaseUploadFile",
|
|
2454
2456
|
"Please upload specify file that needed to complete your request"
|
|
2455
|
-
), n =
|
|
2457
|
+
), n = $("ClickToUpload", "Click to upload"), r = $(
|
|
2456
2458
|
"ContinueWithoutUpload",
|
|
2457
2459
|
"Continue without upload"
|
|
2458
|
-
), o =
|
|
2460
|
+
), o = $(
|
|
2459
2461
|
"UploadRequired",
|
|
2460
2462
|
"Upload is required for this request"
|
|
2461
|
-
), { onSendMsg: l, setFile: s, isLoadingUpload: i, isShowUpload: c, setShowUpload: a, chats: f } = ke(), m =
|
|
2463
|
+
), { onSendMsg: l, setFile: s, isLoadingUpload: i, isShowUpload: c, setShowUpload: a, chats: f } = ke(), m = G(() => {
|
|
2462
2464
|
var y;
|
|
2463
2465
|
const g = f == null ? void 0 : f[(f == null ? void 0 : f.length) - 1];
|
|
2464
2466
|
return ((y = g == null ? void 0 : g.attachment) == null ? void 0 : y.is_required) === !0;
|
|
@@ -2519,80 +2521,80 @@ const tt = [
|
|
|
2519
2521
|
]
|
|
2520
2522
|
}
|
|
2521
2523
|
);
|
|
2522
|
-
}, vs =
|
|
2523
|
-
const [e, n] =
|
|
2524
|
+
}, vs = K(ys), bs = () => {
|
|
2525
|
+
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
2526
|
}, onCheckPYAccess: S = () => {
|
|
2525
|
-
} } = (g == null ? void 0 : g.onPayslipFn) || {}, E =
|
|
2527
|
+
} } = (g == null ? void 0 : g.onPayslipFn) || {}, E = $(
|
|
2526
2528
|
"ProvidePasswordPayslip",
|
|
2527
2529
|
"Please provide your password account to access the download"
|
|
2528
|
-
), w =
|
|
2530
|
+
), w = $("Cancel", "Cancel"), x = $("Submit", "Submit"), T = $("Password", "Password"), p = $("IsRequired", "Is Required"), b = $(
|
|
2529
2531
|
"PrepareTheFiles",
|
|
2530
2532
|
"Prepare the files"
|
|
2531
|
-
), u =
|
|
2533
|
+
), u = $(
|
|
2532
2534
|
"AttemptPasswordExceeded",
|
|
2533
2535
|
"Your attempt to enter the password exceeded the limit"
|
|
2534
|
-
), C =
|
|
2536
|
+
), C = $(
|
|
2535
2537
|
"VerifyAccessPayslip",
|
|
2536
2538
|
"Please wait, verifying access to your payslip"
|
|
2537
|
-
), A =
|
|
2539
|
+
), A = $(
|
|
2538
2540
|
"WrongPwdPayslip",
|
|
2539
2541
|
"The password you entered is incorrect. Please try again or contact support if you need assistance"
|
|
2540
|
-
), M =
|
|
2542
|
+
), M = $(
|
|
2541
2543
|
"SessionExpired",
|
|
2542
2544
|
"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(
|
|
2545
|
+
), [D] = we.useForm(), W = () => {
|
|
2546
|
+
var k, U, I;
|
|
2547
|
+
s(!0), f(!0), (I = (U = (k = S()) == null ? void 0 : k.then((re) => {
|
|
2548
|
+
var j, L;
|
|
2549
|
+
const ee = (L = (j = re == null ? void 0 : re.data) == null ? void 0 : j.DATA) == null ? void 0 : L.RESULT;
|
|
2550
|
+
ee && y({ msg: "Valid" }), n(ee), h("");
|
|
2551
|
+
})) == null ? void 0 : U.catch((re) => {
|
|
2552
|
+
h(re == null ? void 0 : re.toString());
|
|
2551
2553
|
})) == null || I.finally(() => {
|
|
2552
2554
|
o(!1), f(!1);
|
|
2553
2555
|
});
|
|
2554
2556
|
}, N = () => {
|
|
2555
2557
|
y({ msg: "cancel" }), s(!1);
|
|
2556
|
-
},
|
|
2557
|
-
var
|
|
2558
|
-
const
|
|
2559
|
-
(
|
|
2560
|
-
var I,
|
|
2561
|
-
o(!0), (
|
|
2562
|
-
var
|
|
2563
|
-
if ((
|
|
2564
|
-
|
|
2558
|
+
}, Y = () => {
|
|
2559
|
+
var U;
|
|
2560
|
+
const k = D == null ? void 0 : D.getFieldValue("pwd");
|
|
2561
|
+
(U = D == null ? void 0 : D.validateFields()) == null || U.then(() => {
|
|
2562
|
+
var I, re;
|
|
2563
|
+
o(!0), (re = (I = v(k)) == null ? void 0 : I.then(({ data: ee }) => {
|
|
2564
|
+
var j;
|
|
2565
|
+
if ((j = ee == null ? void 0 : ee.DATA) != null && j.ISVALID)
|
|
2566
|
+
W();
|
|
2565
2567
|
else {
|
|
2566
2568
|
h(A);
|
|
2567
2569
|
const L = i - 1;
|
|
2568
2570
|
c(L), o(!1), L === 0 && y({ msg: "cancel" });
|
|
2569
2571
|
}
|
|
2570
|
-
})) == null ||
|
|
2571
|
-
var L,
|
|
2572
|
-
const
|
|
2573
|
-
if ((
|
|
2574
|
-
const
|
|
2572
|
+
})) == null || re.catch((ee) => {
|
|
2573
|
+
var L, Z, V, P, te;
|
|
2574
|
+
const j = ee == null ? void 0 : ee.response;
|
|
2575
|
+
if ((j == null ? void 0 : j.status) === 401) {
|
|
2576
|
+
const X = (Z = (L = j == null ? void 0 : j.data) == null ? void 0 : L.ERRORS) == null ? void 0 : Z.includes(
|
|
2575
2577
|
"ACCESS_TOKEN_EXPIRED"
|
|
2576
|
-
),
|
|
2578
|
+
), J = (te = (P = (V = j == null ? void 0 : j.data) == null ? void 0 : V.MESSAGE) == null ? void 0 : P.toLowerCase()) == null ? void 0 : te.includes(
|
|
2577
2579
|
"invalid password"
|
|
2578
2580
|
);
|
|
2579
|
-
if (
|
|
2581
|
+
if (X)
|
|
2580
2582
|
h(M);
|
|
2581
|
-
else if (
|
|
2583
|
+
else if (J) {
|
|
2582
2584
|
h(A);
|
|
2583
|
-
const
|
|
2584
|
-
c(
|
|
2585
|
+
const q = i - 1;
|
|
2586
|
+
c(q), o(!1), q === 0 && y({ msg: "cancel" });
|
|
2585
2587
|
}
|
|
2586
2588
|
} else
|
|
2587
|
-
h(
|
|
2589
|
+
h(ee == null ? void 0 : ee.toString());
|
|
2588
2590
|
o(!1);
|
|
2589
2591
|
});
|
|
2590
2592
|
});
|
|
2591
2593
|
};
|
|
2592
2594
|
return fe(() => {
|
|
2593
|
-
var
|
|
2594
|
-
const
|
|
2595
|
-
((
|
|
2595
|
+
var U;
|
|
2596
|
+
const k = _ == null ? void 0 : _[(_ == null ? void 0 : _.length) - 1];
|
|
2597
|
+
((U = k == null ? void 0 : k.attachment) == null ? void 0 : U.type) === "show_password_wp" && W();
|
|
2596
2598
|
}, [i]), l ? a ? /* @__PURE__ */ t.jsx(
|
|
2597
2599
|
ft,
|
|
2598
2600
|
{
|
|
@@ -2613,16 +2615,16 @@ const tt = [
|
|
|
2613
2615
|
style: { display: "flex", flexDirection: "column" },
|
|
2614
2616
|
className: "w-bubble-chat",
|
|
2615
2617
|
children: /* @__PURE__ */ t.jsxs(
|
|
2616
|
-
|
|
2618
|
+
we,
|
|
2617
2619
|
{
|
|
2618
2620
|
form: D,
|
|
2619
2621
|
layout: "vertical",
|
|
2620
2622
|
style: { display: "flex", flexDirection: "column", gap: 8 },
|
|
2621
2623
|
children: [
|
|
2622
|
-
/* @__PURE__ */ t.jsx(
|
|
2624
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e ? `${b}...` : E }),
|
|
2623
2625
|
!e && /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
2624
2626
|
/* @__PURE__ */ t.jsx(
|
|
2625
|
-
|
|
2627
|
+
we.Item,
|
|
2626
2628
|
{
|
|
2627
2629
|
name: "pwd",
|
|
2628
2630
|
rules: [
|
|
@@ -2640,7 +2642,7 @@ const tt = [
|
|
|
2640
2642
|
ue,
|
|
2641
2643
|
{
|
|
2642
2644
|
type: "primary",
|
|
2643
|
-
onClick:
|
|
2645
|
+
onClick: Y,
|
|
2644
2646
|
loading: r,
|
|
2645
2647
|
htmlType: "submit",
|
|
2646
2648
|
children: x
|
|
@@ -2653,9 +2655,9 @@ const tt = [
|
|
|
2653
2655
|
)
|
|
2654
2656
|
}
|
|
2655
2657
|
) : null;
|
|
2656
|
-
}, Cs =
|
|
2658
|
+
}, Cs = K(bs), Ts = ({ ...e }) => {
|
|
2657
2659
|
var c;
|
|
2658
|
-
const { objInitPayload: n } = de(), [r, o] =
|
|
2660
|
+
const { objInitPayload: n } = de(), [r, o] = B(!1), l = $("Error", "Error"), s = G(() => Pn(n == null ? void 0 : n.access_token), [n]), i = () => {
|
|
2659
2661
|
var f, m, h, g;
|
|
2660
2662
|
o(!0);
|
|
2661
2663
|
const a = e == null ? void 0 : e.attachment;
|
|
@@ -2678,11 +2680,11 @@ const tt = [
|
|
|
2678
2680
|
})) == null ? void 0 : h.catch((y) => {
|
|
2679
2681
|
var v, S, E;
|
|
2680
2682
|
const _ = y == null ? void 0 : y.message;
|
|
2681
|
-
(v =
|
|
2683
|
+
(v = Se) == null || v.destroy(), (S = Se) == null || S.config({
|
|
2682
2684
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2683
2685
|
top: 28,
|
|
2684
2686
|
placement: "top"
|
|
2685
|
-
}), (E =
|
|
2687
|
+
}), (E = Se) == null || E.error({
|
|
2686
2688
|
message: l,
|
|
2687
2689
|
description: _,
|
|
2688
2690
|
className: "w-notification-content",
|
|
@@ -2699,7 +2701,7 @@ const tt = [
|
|
|
2699
2701
|
onClick: i,
|
|
2700
2702
|
style: { cursor: "pointer" },
|
|
2701
2703
|
children: /* @__PURE__ */ t.jsxs(Yr, { spinning: r, children: [
|
|
2702
|
-
/* @__PURE__ */ t.jsx(
|
|
2704
|
+
/* @__PURE__ */ t.jsx(ae.Link, { children: (c = e == null ? void 0 : e.attachment) == null ? void 0 : c.filename }),
|
|
2703
2705
|
/* @__PURE__ */ t.jsx(
|
|
2704
2706
|
ue,
|
|
2705
2707
|
{
|
|
@@ -2716,8 +2718,8 @@ const tt = [
|
|
|
2716
2718
|
] })
|
|
2717
2719
|
}
|
|
2718
2720
|
);
|
|
2719
|
-
}, Es =
|
|
2720
|
-
const n = ne(), r =
|
|
2721
|
+
}, Es = K(Ts), Ss = ({ ...e }) => {
|
|
2722
|
+
const n = ne(), r = $("DownloadChart", "Download Chart"), o = G(() => e == null ? void 0 : e.attachment, [e == null ? void 0 : e.attachment]), l = G(() => {
|
|
2721
2723
|
var i;
|
|
2722
2724
|
return (i = o == null ? void 0 : o.data) == null ? void 0 : i.map((c, a) => {
|
|
2723
2725
|
var f, m;
|
|
@@ -2766,7 +2768,7 @@ const tt = [
|
|
|
2766
2768
|
}
|
|
2767
2769
|
) })
|
|
2768
2770
|
] });
|
|
2769
|
-
}, ws =
|
|
2771
|
+
}, ws = K(Ss), _s = ({ ...e }) => {
|
|
2770
2772
|
var n, r, o, l, s;
|
|
2771
2773
|
switch (!0) {
|
|
2772
2774
|
case ((n = nt(e)) == null ? void 0 : n.text):
|
|
@@ -2782,7 +2784,7 @@ const tt = [
|
|
|
2782
2784
|
default:
|
|
2783
2785
|
return null;
|
|
2784
2786
|
}
|
|
2785
|
-
}, js =
|
|
2787
|
+
}, js = K(_s), ks = () => {
|
|
2786
2788
|
const { isOpenWidget: e, widgetProps: n } = de(), { chats: r, isWaitResponse: o } = ke(), { activeTab: l } = Ue();
|
|
2787
2789
|
return fe(() => {
|
|
2788
2790
|
$e();
|
|
@@ -2803,8 +2805,8 @@ const tt = [
|
|
|
2803
2805
|
}) }),
|
|
2804
2806
|
o && /* @__PURE__ */ t.jsx(tn, {})
|
|
2805
2807
|
] }) : null;
|
|
2806
|
-
}, As =
|
|
2807
|
-
const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = de(), o =
|
|
2808
|
+
}, As = K(ks), ir = () => {
|
|
2809
|
+
const { objInitPayload: e, setObjInitPayload: n, parsedJWT: r } = de(), o = G(() => {
|
|
2808
2810
|
var s;
|
|
2809
2811
|
return {
|
|
2810
2812
|
Authorization: `Bearer ${e == null ? void 0 : e.access_token}`,
|
|
@@ -2903,11 +2905,11 @@ const tt = [
|
|
|
2903
2905
|
e != null && e.current && ((c = e == null ? void 0 : e.current) == null || c.abort(), e.current = new AbortController());
|
|
2904
2906
|
}, fe(() => () => s.abort(), []), s;
|
|
2905
2907
|
}, Rs = () => {
|
|
2906
|
-
var
|
|
2907
|
-
const e =
|
|
2908
|
+
var Y;
|
|
2909
|
+
const e = $(
|
|
2908
2910
|
"ContinueWithoutUpload",
|
|
2909
2911
|
"Continue without Upload"
|
|
2910
|
-
), n =
|
|
2912
|
+
), n = $(
|
|
2911
2913
|
"UploadRequired",
|
|
2912
2914
|
"Upload is required for this request"
|
|
2913
2915
|
), {
|
|
@@ -2924,56 +2926,72 @@ const tt = [
|
|
|
2924
2926
|
setShowUpload: g,
|
|
2925
2927
|
isLoadingUpload: y,
|
|
2926
2928
|
setLoadingUpload: _
|
|
2927
|
-
} = ke(), { isUserInputHide: v } = de(), { isActiveTabVA: S } = Ue(), E =
|
|
2929
|
+
} = ke(), { isUserInputHide: v } = de(), { isActiveTabVA: S } = Ue(), E = G(() => {
|
|
2928
2930
|
var U;
|
|
2929
|
-
const
|
|
2930
|
-
return (
|
|
2931
|
-
}, [a]), w =
|
|
2931
|
+
const k = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2932
|
+
return (k == null ? void 0 : k.sender) === "response" && ((U = k == null ? void 0 : k.attachment) == null ? void 0 : U.type) === "fileuploader";
|
|
2933
|
+
}, [a]), w = G(() => {
|
|
2932
2934
|
var U;
|
|
2933
|
-
const
|
|
2934
|
-
return ((U =
|
|
2935
|
-
}, [a]), x = ne(), [T, p] =
|
|
2936
|
-
var
|
|
2935
|
+
const k = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2936
|
+
return ((U = k == null ? void 0 : k.attachment) == null ? void 0 : U.is_required) === !0;
|
|
2937
|
+
}, [a]), x = ne(), [T, p] = B(!1), [b, u] = B(!1), C = G(() => l || !b, [b, l]), A = mt(), M = (k, U) => {
|
|
2938
|
+
var I, re, ee;
|
|
2939
|
+
(I = Se) == null || I.destroy(), (re = Se) == null || re.config({
|
|
2940
|
+
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2941
|
+
top: 28,
|
|
2942
|
+
placement: "top",
|
|
2943
|
+
duration: 3
|
|
2944
|
+
}), (ee = Se) == null || ee[k]({
|
|
2945
|
+
message: U,
|
|
2946
|
+
className: "w-notification-content"
|
|
2947
|
+
});
|
|
2948
|
+
}, D = () => {
|
|
2949
|
+
var V, P, te, X, J;
|
|
2937
2950
|
_(!0);
|
|
2938
|
-
const
|
|
2939
|
-
|
|
2951
|
+
const k = new FormData(), U = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], re = `${((V = U == null ? void 0 : U.attachment) == null ? void 0 : V.prefix) || "WP"}-${+/* @__PURE__ */ new Date()}`, ee = /* @__PURE__ */ new Date(), j = ee.getFullYear(), L = String(ee.getMonth() + 1).padStart(2, "0"), Z = `${j}/${L}`;
|
|
2952
|
+
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
2953
|
apiType: "lc",
|
|
2941
2954
|
params: {
|
|
2942
2955
|
ofid: "SFUtil.UploadFile"
|
|
2943
2956
|
},
|
|
2944
|
-
data:
|
|
2945
|
-
})) == null ? void 0 :
|
|
2946
|
-
var
|
|
2947
|
-
const
|
|
2948
|
-
console.log("r",
|
|
2949
|
-
const
|
|
2950
|
-
r({ msg: `sf-filename ${
|
|
2951
|
-
})) == null
|
|
2957
|
+
data: k
|
|
2958
|
+
})) == null ? void 0 : te.then((q) => {
|
|
2959
|
+
var oe, O, me;
|
|
2960
|
+
const F = (oe = q == null ? void 0 : q.data) == null ? void 0 : oe.DATA;
|
|
2961
|
+
console.log("r", q, F);
|
|
2962
|
+
const z = (me = (O = F == null ? void 0 : F.FILENAMES) == null ? void 0 : O[0]) == null ? void 0 : me.SERVERFILE;
|
|
2963
|
+
z ? (M("success", "Upload Success"), r({ msg: `sf-filename ${z}` }), g(!1)) : M("error", "Upload Failed");
|
|
2964
|
+
})) == null ? void 0 : X.catch((q) => {
|
|
2965
|
+
var z, oe;
|
|
2966
|
+
console.error("Upload error:", q);
|
|
2967
|
+
const F = ((oe = (z = q == null ? void 0 : q.response) == null ? void 0 : z.data) == null ? void 0 : oe.MESSAGE) || "Failed to Upload File";
|
|
2968
|
+
M("error", F);
|
|
2969
|
+
})) == null || J.finally(() => {
|
|
2952
2970
|
_(!1);
|
|
2953
2971
|
});
|
|
2954
|
-
},
|
|
2955
|
-
var
|
|
2956
|
-
const
|
|
2957
|
-
if (!(
|
|
2958
|
-
u(!1), r({ msg:
|
|
2972
|
+
}, W = () => {
|
|
2973
|
+
var I, re, ee, j;
|
|
2974
|
+
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;
|
|
2975
|
+
if (!(k != null && k.trim()) || l) return;
|
|
2976
|
+
u(!1), r({ msg: k }), p(!T);
|
|
2959
2977
|
const U = {
|
|
2960
|
-
text:
|
|
2978
|
+
text: k,
|
|
2961
2979
|
sender: "client",
|
|
2962
2980
|
type: "text",
|
|
2963
|
-
timestamp: (
|
|
2981
|
+
timestamp: (j = je()) == null ? void 0 : j.format("hh:mm A")
|
|
2964
2982
|
};
|
|
2965
|
-
o((
|
|
2966
|
-
},
|
|
2983
|
+
o((L) => [...L, U]), $e();
|
|
2984
|
+
}, N = () => {
|
|
2967
2985
|
r({ msg: "SKIP_WAITING_RESPONSE" });
|
|
2968
2986
|
};
|
|
2969
2987
|
return fe(() => {
|
|
2970
|
-
var
|
|
2971
|
-
x != null && x.current && S && ((
|
|
2988
|
+
var k;
|
|
2989
|
+
x != null && x.current && S && ((k = x == null ? void 0 : x.current) == null || k.focus());
|
|
2972
2990
|
}, [S]), fe(() => {
|
|
2973
2991
|
E && g(!0);
|
|
2974
2992
|
}, [E]), v ? null : h ? /* @__PURE__ */ t.jsxs("div", { className: "w-input-container", style: { alignItems: "center" }, children: [
|
|
2975
|
-
/* @__PURE__ */ t.jsx(
|
|
2976
|
-
((
|
|
2993
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: i == null ? void 0 : i.name }),
|
|
2994
|
+
((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
2995
|
/* @__PURE__ */ t.jsx(
|
|
2978
2996
|
ue,
|
|
2979
2997
|
{
|
|
@@ -2991,7 +3009,7 @@ const tt = [
|
|
|
2991
3009
|
style: { backgroundColor: "var(--primary-color, #395ebc)" },
|
|
2992
3010
|
icon: /* @__PURE__ */ t.jsx(xe, { type: "send" }),
|
|
2993
3011
|
shape: "circle",
|
|
2994
|
-
onClick:
|
|
3012
|
+
onClick: D,
|
|
2995
3013
|
loading: y
|
|
2996
3014
|
}
|
|
2997
3015
|
)
|
|
@@ -3016,14 +3034,14 @@ const tt = [
|
|
|
3016
3034
|
disabled: m || !f,
|
|
3017
3035
|
ref: x,
|
|
3018
3036
|
placeholder: "Type a message...",
|
|
3019
|
-
onKeyDown: (
|
|
3020
|
-
((
|
|
3037
|
+
onKeyDown: (k) => {
|
|
3038
|
+
((k == null ? void 0 : k.code) === "Enter" || (k == null ? void 0 : k.key) === "Enter") && !(k != null && k.shiftKey) && W();
|
|
3021
3039
|
},
|
|
3022
|
-
onChange: ({ target: { value:
|
|
3040
|
+
onChange: ({ target: { value: k } }) => {
|
|
3023
3041
|
const U = /\S/;
|
|
3024
3042
|
jt({
|
|
3025
|
-
input_va_value:
|
|
3026
|
-
}),
|
|
3043
|
+
input_va_value: k
|
|
3044
|
+
}), k && (U != null && U.test(k)) ? u(!0) : k != null && k.trim() || u(!1);
|
|
3027
3045
|
}
|
|
3028
3046
|
},
|
|
3029
3047
|
T
|
|
@@ -3034,7 +3052,7 @@ const tt = [
|
|
|
3034
3052
|
style: { border: "none" },
|
|
3035
3053
|
icon: /* @__PURE__ */ t.jsx(xe, { type: "stop" }),
|
|
3036
3054
|
shape: "circle",
|
|
3037
|
-
onClick:
|
|
3055
|
+
onClick: N,
|
|
3038
3056
|
size: "large"
|
|
3039
3057
|
}
|
|
3040
3058
|
) : /* @__PURE__ */ t.jsx(
|
|
@@ -3045,12 +3063,12 @@ const tt = [
|
|
|
3045
3063
|
style: { backgroundColor: "var(--primary-color, #395ebc)" },
|
|
3046
3064
|
icon: /* @__PURE__ */ t.jsx(xe, { type: "send" }),
|
|
3047
3065
|
shape: "circle",
|
|
3048
|
-
onClick:
|
|
3066
|
+
onClick: W
|
|
3049
3067
|
}
|
|
3050
3068
|
)
|
|
3051
3069
|
] });
|
|
3052
|
-
}, Ds =
|
|
3053
|
-
const n =
|
|
3070
|
+
}, Ds = K(Rs), Os = ({ taskStatus: e }) => {
|
|
3071
|
+
const n = $("InProgress", "In Progress"), r = $("New", "New"), o = $("Closed", "Closed"), l = $("Done", "Done"), s = $("HDCancelled", "Cancelled"), i = {
|
|
3054
3072
|
"In Progress": n,
|
|
3055
3073
|
Open: r,
|
|
3056
3074
|
New: r,
|
|
@@ -3066,9 +3084,9 @@ const tt = [
|
|
|
3066
3084
|
Fixed: "#bbfab7",
|
|
3067
3085
|
Done: "#bbfab7",
|
|
3068
3086
|
Cancelled: "#FFF2D6"
|
|
3069
|
-
}, a =
|
|
3087
|
+
}, a = G(() => c[e] || c.Closed, [e]), f = G(() => i[e] || e, [e]);
|
|
3070
3088
|
return /* @__PURE__ */ t.jsx(Vr, { color: a, children: /* @__PURE__ */ t.jsx(
|
|
3071
|
-
|
|
3089
|
+
ae.Text,
|
|
3072
3090
|
{
|
|
3073
3091
|
className: "primary-color-active",
|
|
3074
3092
|
style: { width: "100%", textAlign: "center" },
|
|
@@ -3076,7 +3094,7 @@ const tt = [
|
|
|
3076
3094
|
children: f
|
|
3077
3095
|
}
|
|
3078
3096
|
) }, e);
|
|
3079
|
-
}, ar =
|
|
3097
|
+
}, ar = K(Os), Ls = ({ onClick: e, ...n }) => /* @__PURE__ */ t.jsxs(
|
|
3080
3098
|
"div",
|
|
3081
3099
|
{
|
|
3082
3100
|
className: "w-ticket-card-container",
|
|
@@ -3085,7 +3103,7 @@ const tt = [
|
|
|
3085
3103
|
},
|
|
3086
3104
|
children: [
|
|
3087
3105
|
/* @__PURE__ */ t.jsx(
|
|
3088
|
-
|
|
3106
|
+
ae.Text,
|
|
3089
3107
|
{
|
|
3090
3108
|
strong: !0,
|
|
3091
3109
|
style: {
|
|
@@ -3099,8 +3117,8 @@ const tt = [
|
|
|
3099
3117
|
),
|
|
3100
3118
|
/* @__PURE__ */ t.jsxs("div", { className: "w-ticket-card-content-container", children: [
|
|
3101
3119
|
/* @__PURE__ */ t.jsxs("div", { className: "w-ticket-card-cat-code", children: [
|
|
3102
|
-
/* @__PURE__ */ t.jsx(
|
|
3103
|
-
/* @__PURE__ */ t.jsx(
|
|
3120
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: (n == null ? void 0 : n.TASK_CATEGORY) || Cn }),
|
|
3121
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: (n == null ? void 0 : n.TASK_CODE) || Cn })
|
|
3104
3122
|
] }),
|
|
3105
3123
|
/* @__PURE__ */ t.jsxs(
|
|
3106
3124
|
"div",
|
|
@@ -3111,15 +3129,15 @@ const tt = [
|
|
|
3111
3129
|
},
|
|
3112
3130
|
children: [
|
|
3113
3131
|
/* @__PURE__ */ t.jsx(ar, { taskStatus: n == null ? void 0 : n.TASK_STATUS }),
|
|
3114
|
-
/* @__PURE__ */ t.jsx(
|
|
3132
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: n == null ? void 0 : n.CREATED_DATE })
|
|
3115
3133
|
]
|
|
3116
3134
|
}
|
|
3117
3135
|
)
|
|
3118
3136
|
] })
|
|
3119
3137
|
]
|
|
3120
3138
|
}
|
|
3121
|
-
), Ms =
|
|
3122
|
-
const n = mt(), [r, o] =
|
|
3139
|
+
), Ms = K(Ls), cr = ze({}), He = () => Ge(cr), Ns = ({ children: e }) => {
|
|
3140
|
+
const n = mt(), [r, o] = B([]), [l, s] = B(""), [i, c] = B(!1), [a, f] = B(!0), [m, h] = B(0), g = (y) => {
|
|
3123
3141
|
var _, v, S, E;
|
|
3124
3142
|
f(!0), (E = (S = n({
|
|
3125
3143
|
endpoint: "/helpdesk/myticket/ticket-list",
|
|
@@ -3169,7 +3187,7 @@ const tt = [
|
|
|
3169
3187
|
}
|
|
3170
3188
|
);
|
|
3171
3189
|
}, Fs = () => {
|
|
3172
|
-
const e =
|
|
3190
|
+
const e = $("SubjectSearch", "Subject Search"), n = $("AdvanceFilter", "Advance Filter"), r = ne(null), { getListTicket: o, setOpenFilter: l, loadingListTicket: s, countFilters: i } = He();
|
|
3173
3191
|
return /* @__PURE__ */ t.jsx(t.Fragment, { children: /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, marginBottom: 12 }, children: [
|
|
3174
3192
|
/* @__PURE__ */ t.jsx(
|
|
3175
3193
|
pt,
|
|
@@ -3196,8 +3214,8 @@ const tt = [
|
|
|
3196
3214
|
}
|
|
3197
3215
|
) }) })
|
|
3198
3216
|
] }) });
|
|
3199
|
-
}, Is =
|
|
3200
|
-
const n = ne(null), r = ne(0), o = ne(!1), l = ne(null), [s, i] =
|
|
3217
|
+
}, Is = K(Fs), lr = ze({}), We = () => Ge(lr), $s = ({ children: e }) => {
|
|
3218
|
+
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
3219
|
const p = new WebSocket(T);
|
|
3202
3220
|
p.onopen = () => {
|
|
3203
3221
|
o.current = !0, r.current = 0, a(0), _(!0);
|
|
@@ -3210,8 +3228,8 @@ const tt = [
|
|
|
3210
3228
|
), 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
3229
|
}, p.onmessage = w(p), n.current = p;
|
|
3212
3230
|
}, E = async () => {
|
|
3213
|
-
var
|
|
3214
|
-
if (((
|
|
3231
|
+
var W, N, Y;
|
|
3232
|
+
if (((W = n.current) == null ? void 0 : W.readyState) === (WebSocket == null ? void 0 : WebSocket.CONNECTING)) return;
|
|
3215
3233
|
const {
|
|
3216
3234
|
access_token: T,
|
|
3217
3235
|
companyid: p = "",
|
|
@@ -3229,25 +3247,25 @@ const tt = [
|
|
|
3229
3247
|
COMPANY_ID: p.toString(),
|
|
3230
3248
|
COMPANY_CODE: b.toLowerCase(),
|
|
3231
3249
|
LANGUAGE: u,
|
|
3232
|
-
ACC_NAME: (
|
|
3250
|
+
ACC_NAME: (Y = g == null ? void 0 : g.INSTANCE) == null ? void 0 : Y.toLowerCase(),
|
|
3233
3251
|
TOKEN: A
|
|
3234
3252
|
};
|
|
3235
3253
|
try {
|
|
3236
|
-
const
|
|
3254
|
+
const k = await wo(
|
|
3237
3255
|
D,
|
|
3238
3256
|
yo
|
|
3239
3257
|
);
|
|
3240
|
-
if (!
|
|
3258
|
+
if (!k || o.current || (r == null ? void 0 : r.current) >= dt) {
|
|
3241
3259
|
console.warn(
|
|
3242
3260
|
`${et} - Skipping WebSocket connection attempt.`
|
|
3243
3261
|
);
|
|
3244
3262
|
return;
|
|
3245
3263
|
}
|
|
3246
|
-
n.current && n.current.close(), S(`${M}?t=${
|
|
3247
|
-
} catch (
|
|
3264
|
+
n.current && n.current.close(), S(`${M}?t=${k}`);
|
|
3265
|
+
} catch (k) {
|
|
3248
3266
|
console.error(
|
|
3249
3267
|
`${et} - Failed to encrypt token:`,
|
|
3250
|
-
|
|
3268
|
+
k
|
|
3251
3269
|
);
|
|
3252
3270
|
}
|
|
3253
3271
|
}, w = (T) => (p) => {
|
|
@@ -3345,9 +3363,9 @@ const tt = [
|
|
|
3345
3363
|
}
|
|
3346
3364
|
)
|
|
3347
3365
|
] });
|
|
3348
|
-
}, Hs =
|
|
3366
|
+
}, Hs = K(Us), Ws = ({ children: e, open: n, onClose: r, footer: o, styleContainer: l }) => {
|
|
3349
3367
|
var g;
|
|
3350
|
-
const [s, i] =
|
|
3368
|
+
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
3369
|
y.code === "Escape" && !y.shiftKey && !y.altKey && !y.ctrlKey && y.key === "Escape" && (y.stopPropagation(), typeof r == "function" && r());
|
|
3352
3370
|
};
|
|
3353
3371
|
return fe(() => {
|
|
@@ -3378,8 +3396,8 @@ const tt = [
|
|
|
3378
3396
|
]
|
|
3379
3397
|
}
|
|
3380
3398
|
);
|
|
3381
|
-
}, ur =
|
|
3382
|
-
const [n, r] =
|
|
3399
|
+
}, ur = K(Ws), dr = ze({}), it = () => Ge(dr), Bs = ({ children: e }) => {
|
|
3400
|
+
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
3401
|
var C;
|
|
3384
3402
|
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
3403
|
...A
|
|
@@ -3399,12 +3417,12 @@ const tt = [
|
|
|
3399
3417
|
TASK_ID: h
|
|
3400
3418
|
}
|
|
3401
3419
|
})) == null ? void 0 : T.then((b) => {
|
|
3402
|
-
var u, C, A, M, D,
|
|
3420
|
+
var u, C, A, M, D, W;
|
|
3403
3421
|
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
|
-
...
|
|
3422
|
+
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) => ({
|
|
3423
|
+
...Y,
|
|
3406
3424
|
ACTOR: {
|
|
3407
|
-
...
|
|
3425
|
+
...Y == null ? void 0 : Y.ACTOR
|
|
3408
3426
|
}
|
|
3409
3427
|
}));
|
|
3410
3428
|
r(St(N));
|
|
@@ -3464,10 +3482,10 @@ const tt = [
|
|
|
3464
3482
|
}
|
|
3465
3483
|
);
|
|
3466
3484
|
}, Ys = ({ onClose: e }) => {
|
|
3467
|
-
const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: l } = it(), { userOnline: s } = We(), i =
|
|
3485
|
+
const { xs: n } = Me.useBreakpoint(), { employees: r, detailTicket: o, loadingChats: l } = it(), { userOnline: s } = We(), i = G(() => {
|
|
3468
3486
|
var a;
|
|
3469
3487
|
return (a = r == null ? void 0 : r.map((f) => f == null ? void 0 : f.FULL_NAME)) == null ? void 0 : a.join(", ");
|
|
3470
|
-
}, [r]), c =
|
|
3488
|
+
}, [r]), c = G(() => n ? "click" : "hover", [n]);
|
|
3471
3489
|
return l ? /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-detail-header-container", children: [
|
|
3472
3490
|
/* @__PURE__ */ t.jsx(De.Avatar, {}),
|
|
3473
3491
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
@@ -3522,7 +3540,7 @@ const tt = [
|
|
|
3522
3540
|
{
|
|
3523
3541
|
title: `${o == null ? void 0 : o.TASK_CODE} - ${o == null ? void 0 : o.SUBJECT}`,
|
|
3524
3542
|
trigger: c,
|
|
3525
|
-
children: /* @__PURE__ */ t.jsxs(
|
|
3543
|
+
children: /* @__PURE__ */ t.jsxs(ae.Text, { className: "w-ticket-detail-header-text", children: [
|
|
3526
3544
|
o == null ? void 0 : o.TASK_CODE,
|
|
3527
3545
|
" - ",
|
|
3528
3546
|
o == null ? void 0 : o.SUBJECT
|
|
@@ -3530,7 +3548,7 @@ const tt = [
|
|
|
3530
3548
|
}
|
|
3531
3549
|
),
|
|
3532
3550
|
/* @__PURE__ */ t.jsx(Ye, { title: i, trigger: c, children: /* @__PURE__ */ t.jsx(
|
|
3533
|
-
|
|
3551
|
+
ae.Text,
|
|
3534
3552
|
{
|
|
3535
3553
|
type: "secondary",
|
|
3536
3554
|
className: "w-ticket-detail-header-text",
|
|
@@ -3544,8 +3562,8 @@ const tt = [
|
|
|
3544
3562
|
] }),
|
|
3545
3563
|
/* @__PURE__ */ t.jsx(ar, { taskStatus: o == null ? void 0 : o.STATUS })
|
|
3546
3564
|
] });
|
|
3547
|
-
}, Vs =
|
|
3548
|
-
const n =
|
|
3565
|
+
}, Vs = K(Ys), zs = ({ ...e }) => {
|
|
3566
|
+
const n = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
|
|
3549
3567
|
return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${n}`}`, children: [
|
|
3550
3568
|
/* @__PURE__ */ t.jsx(
|
|
3551
3569
|
"p",
|
|
@@ -3564,8 +3582,8 @@ const tt = [
|
|
|
3564
3582
|
}
|
|
3565
3583
|
)
|
|
3566
3584
|
] });
|
|
3567
|
-
}, Gs =
|
|
3568
|
-
const n =
|
|
3585
|
+
}, Gs = K(zs), qs = ({ ...e }) => {
|
|
3586
|
+
const n = $("Download", "Download"), r = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]), o = G(() => {
|
|
3569
3587
|
var a;
|
|
3570
3588
|
const c = e == null ? void 0 : e.ATTACHMENT;
|
|
3571
3589
|
if (c)
|
|
@@ -3576,13 +3594,13 @@ const tt = [
|
|
|
3576
3594
|
return c;
|
|
3577
3595
|
}
|
|
3578
3596
|
return "";
|
|
3579
|
-
}, [e]), l =
|
|
3597
|
+
}, [e]), l = G(() => {
|
|
3580
3598
|
if (o != null && o.includes(".")) {
|
|
3581
3599
|
const c = o == null ? void 0 : o.split(".");
|
|
3582
3600
|
return `.${c == null ? void 0 : c[(c == null ? void 0 : c.length) - 1]}`;
|
|
3583
3601
|
}
|
|
3584
3602
|
return "";
|
|
3585
|
-
}, [e, o]), s =
|
|
3603
|
+
}, [e, o]), s = G(() => Nt == null ? void 0 : Nt.includes(l), [e, l]), i = () => {
|
|
3586
3604
|
Xt({
|
|
3587
3605
|
downloadURL: e == null ? void 0 : e.ATTACHMENT,
|
|
3588
3606
|
fileName: o,
|
|
@@ -3598,7 +3616,7 @@ const tt = [
|
|
|
3598
3616
|
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
3617
|
/* @__PURE__ */ t.jsx(xe, { type: "file" }),
|
|
3600
3618
|
/* @__PURE__ */ t.jsx(
|
|
3601
|
-
|
|
3619
|
+
ae.Link,
|
|
3602
3620
|
{
|
|
3603
3621
|
onClick: i,
|
|
3604
3622
|
style: { display: "block", width: 160 },
|
|
@@ -3632,8 +3650,8 @@ const tt = [
|
|
|
3632
3650
|
]
|
|
3633
3651
|
}
|
|
3634
3652
|
) });
|
|
3635
|
-
}, Ks =
|
|
3636
|
-
const n =
|
|
3653
|
+
}, Ks = K(qs), Ps = ({ ...e }) => {
|
|
3654
|
+
const n = G(() => (e == null ? void 0 : e.CHAT_ALIGN) === "to" ? "client" : "response", [e]);
|
|
3637
3655
|
return /* @__PURE__ */ t.jsxs("div", { className: "w-ticket-info-chat-container", children: [
|
|
3638
3656
|
/* @__PURE__ */ t.jsx(
|
|
3639
3657
|
xt,
|
|
@@ -3643,9 +3661,9 @@ const tt = [
|
|
|
3643
3661
|
sender: n
|
|
3644
3662
|
}
|
|
3645
3663
|
),
|
|
3646
|
-
/* @__PURE__ */ t.jsx(
|
|
3664
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.MESSAGE })
|
|
3647
3665
|
] });
|
|
3648
|
-
}, Xs =
|
|
3666
|
+
}, Xs = K(Ps), fr = () => {
|
|
3649
3667
|
const { widgetProps: e } = de(), n = Ze.enc.Hex.parse(
|
|
3650
3668
|
Ze.enc.Utf8.parse(e == null ? void 0 : e.keyEncrypt).toString()
|
|
3651
3669
|
), r = {
|
|
@@ -3674,16 +3692,16 @@ const tt = [
|
|
|
3674
3692
|
encrypt: l
|
|
3675
3693
|
};
|
|
3676
3694
|
}, Js = ({ ...e }) => {
|
|
3677
|
-
const n =
|
|
3695
|
+
const n = $("ViewFAQ", "View FAQ"), r = $(
|
|
3678
3696
|
"FAQUnavailable",
|
|
3679
3697
|
"FAQ unavailable"
|
|
3680
|
-
), o =
|
|
3698
|
+
), o = $(
|
|
3681
3699
|
"ThisFAQIsUnavailable",
|
|
3682
3700
|
"This FAQ is unavailable"
|
|
3683
|
-
), { paramsEncrypt: l } = fr(), { widgetProps: s } = de(), i =
|
|
3701
|
+
), { 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
3702
|
return /* @__PURE__ */ t.jsxs("div", { className: `w-bubble-chat ${`w-${i}`}`, children: [
|
|
3685
3703
|
/* @__PURE__ */ t.jsx(
|
|
3686
|
-
|
|
3704
|
+
ae.Text,
|
|
3687
3705
|
{
|
|
3688
3706
|
style: {
|
|
3689
3707
|
backgroundColor: "rgb(244, 245, 246)",
|
|
@@ -3708,7 +3726,7 @@ const tt = [
|
|
|
3708
3726
|
},
|
|
3709
3727
|
children: n
|
|
3710
3728
|
}
|
|
3711
|
-
) : /* @__PURE__ */ t.jsx(
|
|
3729
|
+
) : /* @__PURE__ */ t.jsx(ae.Text, { children: o }),
|
|
3712
3730
|
/* @__PURE__ */ t.jsx(
|
|
3713
3731
|
xt,
|
|
3714
3732
|
{
|
|
@@ -3718,7 +3736,7 @@ const tt = [
|
|
|
3718
3736
|
}
|
|
3719
3737
|
)
|
|
3720
3738
|
] });
|
|
3721
|
-
}, Zs =
|
|
3739
|
+
}, Zs = K(Js), Qs = ({ ...e }) => {
|
|
3722
3740
|
switch (e == null ? void 0 : e.CHAT_TYPE) {
|
|
3723
3741
|
case "info":
|
|
3724
3742
|
return /* @__PURE__ */ t.jsx(Xs, { ...e });
|
|
@@ -3729,9 +3747,9 @@ const tt = [
|
|
|
3729
3747
|
default:
|
|
3730
3748
|
return null;
|
|
3731
3749
|
}
|
|
3732
|
-
}, ei =
|
|
3750
|
+
}, ei = K(Qs), ti = () => {
|
|
3733
3751
|
var _;
|
|
3734
|
-
const [e, n] =
|
|
3752
|
+
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
3753
|
const v = h == null ? void 0 : h.map((S) => S == null ? void 0 : S.FULL_NAME);
|
|
3736
3754
|
if ((h == null ? void 0 : h.length) > 2) {
|
|
3737
3755
|
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 +3804,12 @@ const tt = [
|
|
|
3786
3804
|
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
3805
|
}
|
|
3788
3806
|
),
|
|
3789
|
-
/* @__PURE__ */ t.jsx(
|
|
3807
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: g }),
|
|
3790
3808
|
(h == null ? void 0 : h.length) > 0 ? /* @__PURE__ */ t.jsx(sr, {}) : null
|
|
3791
3809
|
]
|
|
3792
3810
|
}
|
|
3793
3811
|
);
|
|
3794
|
-
}, ni =
|
|
3812
|
+
}, ni = K(ti), ri = () => {
|
|
3795
3813
|
var s;
|
|
3796
3814
|
const { chats: e } = it(), { widgetProps: n } = de(), { activeTab: r } = Ue(), o = ne(), { xs: l } = Me.useBreakpoint();
|
|
3797
3815
|
return fe(() => {
|
|
@@ -3828,9 +3846,9 @@ const tt = [
|
|
|
3828
3846
|
]
|
|
3829
3847
|
}
|
|
3830
3848
|
);
|
|
3831
|
-
}, oi =
|
|
3849
|
+
}, oi = K(ri), si = () => {
|
|
3832
3850
|
var s, i;
|
|
3833
|
-
const { chats: e, loadingChats: n } = it(), { widgetProps: r } = de(), { xs: o } = Me.useBreakpoint(), l =
|
|
3851
|
+
const { chats: e, loadingChats: n } = it(), { widgetProps: r } = de(), { xs: o } = Me.useBreakpoint(), l = G(() => {
|
|
3834
3852
|
var a;
|
|
3835
3853
|
const c = [It];
|
|
3836
3854
|
return o && (r != null && r.isSF ? c == null || c.push(
|
|
@@ -3893,7 +3911,7 @@ const tt = [
|
|
|
3893
3911
|
children: /* @__PURE__ */ t.jsx(zn, {})
|
|
3894
3912
|
}
|
|
3895
3913
|
) : /* @__PURE__ */ t.jsx(oi, {});
|
|
3896
|
-
}, ii =
|
|
3914
|
+
}, ii = K(si), ai = ({ ...e }) => {
|
|
3897
3915
|
const n = ne(0);
|
|
3898
3916
|
return /* @__PURE__ */ t.jsxs(
|
|
3899
3917
|
"div",
|
|
@@ -3919,20 +3937,20 @@ const tt = [
|
|
|
3919
3937
|
}
|
|
3920
3938
|
),
|
|
3921
3939
|
/* @__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(
|
|
3940
|
+
/* @__PURE__ */ t.jsx(ae.Text, { strong: !0, style: { fontSize: 18 }, children: e == null ? void 0 : e.FULL_NAME }),
|
|
3941
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.POSITION_NAME }, e == null ? void 0 : e.POSITION_NAME),
|
|
3942
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.DEPT_NAME }),
|
|
3943
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e == null ? void 0 : e.WORKLOCATION })
|
|
3926
3944
|
] })
|
|
3927
3945
|
]
|
|
3928
3946
|
}
|
|
3929
3947
|
);
|
|
3930
|
-
}, ci =
|
|
3948
|
+
}, ci = K(ai), li = ({ setLoadingUpload: e, isLoadingUpload: n }) => {
|
|
3931
3949
|
var E, w;
|
|
3932
|
-
const r = mt(), [o, l] =
|
|
3950
|
+
const r = mt(), [o, l] = B({}), s = ne(null), i = $(
|
|
3933
3951
|
"ImageMustSmallerThan",
|
|
3934
3952
|
"Image must smaller than"
|
|
3935
|
-
), c =
|
|
3953
|
+
), c = $(
|
|
3936
3954
|
"MaximumFileSizeExceeded",
|
|
3937
3955
|
"Maximum file size exceeded"
|
|
3938
3956
|
), { onSendMsg: a } = We(), { employees: f, setChats: m, isFromSelf: h } = it(), { ticketId: g } = He(), { activeTab: y } = Ue(), _ = () => {
|
|
@@ -3954,11 +3972,11 @@ const tt = [
|
|
|
3954
3972
|
}, v = (x) => {
|
|
3955
3973
|
var b, u, C;
|
|
3956
3974
|
const T = x.size / 1024 / 1024, p = (o == null ? void 0 : o.MAXFILESIZE) / 1024;
|
|
3957
|
-
return T > p && ((b =
|
|
3975
|
+
return T > p && ((b = Se) == null || b.destroy(), (u = Se) == null || u.config({
|
|
3958
3976
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
3959
3977
|
top: 28,
|
|
3960
3978
|
placement: "top"
|
|
3961
|
-
}), (C =
|
|
3979
|
+
}), (C = Se) == null || C.error({
|
|
3962
3980
|
message: c,
|
|
3963
3981
|
description: `${i} ${p == null ? void 0 : p.toFixed(
|
|
3964
3982
|
1
|
|
@@ -3977,18 +3995,18 @@ const tt = [
|
|
|
3977
3995
|
"Content-Type": "multipart/form-data"
|
|
3978
3996
|
}
|
|
3979
3997
|
})) == null ? void 0 : p.then((u) => {
|
|
3980
|
-
var C, A, M, D,
|
|
3998
|
+
var C, A, M, D, W;
|
|
3981
3999
|
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,
|
|
4000
|
+
const N = (D = (M = u == null ? void 0 : u.data) == null ? void 0 : M.DATA) == null ? void 0 : D.LIST, Y = {
|
|
3983
4001
|
ATTACHMENT: N == null ? void 0 : N.VIEW_PATH,
|
|
3984
4002
|
FAQ_ID: null,
|
|
3985
4003
|
MESSAGE: "",
|
|
3986
|
-
CREATED_DATE: (
|
|
4004
|
+
CREATED_DATE: (W = je()) == null ? void 0 : W.format(`${Pt} HH:mm:ss`),
|
|
3987
4005
|
CHAT_ALIGN: "to",
|
|
3988
4006
|
CHAT_TYPE: "chat"
|
|
3989
4007
|
};
|
|
3990
|
-
m((
|
|
3991
|
-
const I = [...Zt(
|
|
4008
|
+
m((k) => {
|
|
4009
|
+
const I = [...Zt(k), Y];
|
|
3992
4010
|
return St(I);
|
|
3993
4011
|
}), h.current = !0, a({
|
|
3994
4012
|
event: "SEND_MESSAGE",
|
|
@@ -3996,7 +4014,7 @@ const tt = [
|
|
|
3996
4014
|
ATTACHMENT: N == null ? void 0 : N.TEMP_PATH,
|
|
3997
4015
|
FAQ_ID: null,
|
|
3998
4016
|
MESSAGE: "",
|
|
3999
|
-
EMPLOYEES: f == null ? void 0 : f.map((
|
|
4017
|
+
EMPLOYEES: f == null ? void 0 : f.map((k) => k == null ? void 0 : k.EMP_ID),
|
|
4000
4018
|
TASK_ID: g
|
|
4001
4019
|
}
|
|
4002
4020
|
}), clearTimeout(s.current), s.current = setTimeout(() => {
|
|
@@ -4011,7 +4029,7 @@ const tt = [
|
|
|
4011
4029
|
_();
|
|
4012
4030
|
}, []), fe(() => {
|
|
4013
4031
|
var x;
|
|
4014
|
-
(x =
|
|
4032
|
+
(x = Se) == null || x.destroy();
|
|
4015
4033
|
}, [y]), /* @__PURE__ */ t.jsx(
|
|
4016
4034
|
Vn,
|
|
4017
4035
|
{
|
|
@@ -4032,7 +4050,7 @@ const tt = [
|
|
|
4032
4050
|
)
|
|
4033
4051
|
}
|
|
4034
4052
|
);
|
|
4035
|
-
}, ui =
|
|
4053
|
+
}, ui = K(li), di = (e) => {
|
|
4036
4054
|
var o;
|
|
4037
4055
|
const n = ne(null), r = ne(null);
|
|
4038
4056
|
return r != null && r.current && ((o = r.current) == null || o.update(e)), fe(() => {
|
|
@@ -4043,7 +4061,7 @@ const tt = [
|
|
|
4043
4061
|
};
|
|
4044
4062
|
}, []), gt.createElement("div", { ref: n });
|
|
4045
4063
|
}, fi = ({ refInput: e }) => {
|
|
4046
|
-
const { xs: n } = Me.useBreakpoint(), r =
|
|
4064
|
+
const { xs: n } = Me.useBreakpoint(), r = G(() => n ? "click" : "hover", [n]), o = () => {
|
|
4047
4065
|
var g;
|
|
4048
4066
|
const s = (g = e == null ? void 0 : e.current) == null ? void 0 : g.textarea;
|
|
4049
4067
|
if (!s)
|
|
@@ -4081,11 +4099,11 @@ const tt = [
|
|
|
4081
4099
|
children: /* @__PURE__ */ t.jsx(ue, { icon: /* @__PURE__ */ t.jsx(xe, { type: "smile" }), style: { border: "none" } })
|
|
4082
4100
|
}
|
|
4083
4101
|
);
|
|
4084
|
-
}, gi =
|
|
4085
|
-
const [e, n] =
|
|
4102
|
+
}, gi = K(fi), pi = () => {
|
|
4103
|
+
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
4104
|
var b;
|
|
4087
4105
|
return ((b = S == null ? void 0 : S.STATUS) == null ? void 0 : b.toString().toLowerCase()) === "closed";
|
|
4088
|
-
}, [S == null ? void 0 : S.STATUS]), x =
|
|
4106
|
+
}, [S == null ? void 0 : S.STATUS]), x = G(() => y == null ? void 0 : y.map((b) => ({
|
|
4089
4107
|
...b,
|
|
4090
4108
|
label: /* @__PURE__ */ t.jsx(
|
|
4091
4109
|
qt,
|
|
@@ -4176,8 +4194,8 @@ const tt = [
|
|
|
4176
4194
|
((b == null ? void 0 : b.code) === "Enter" || (b == null ? void 0 : b.key) === "Enter") && !(b != null && b.shiftKey) && T();
|
|
4177
4195
|
},
|
|
4178
4196
|
filterOption: (b, u) => {
|
|
4179
|
-
var M, D,
|
|
4180
|
-
const C = (M = b == null ? void 0 : b.toString()) == null ? void 0 : M.toLowerCase(), A = (
|
|
4197
|
+
var M, D, W;
|
|
4198
|
+
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
4199
|
return A == null ? void 0 : A.includes(C);
|
|
4182
4200
|
},
|
|
4183
4201
|
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 +4222,7 @@ const tt = [
|
|
|
4204
4222
|
]
|
|
4205
4223
|
}
|
|
4206
4224
|
);
|
|
4207
|
-
}, hi =
|
|
4225
|
+
}, hi = K(pi), xi = ({ title: e, subTitle: n, onClose: r, open: o, styleWrapper: l }) => {
|
|
4208
4226
|
var s;
|
|
4209
4227
|
return o ? /* @__PURE__ */ t.jsx(
|
|
4210
4228
|
"div",
|
|
@@ -4214,7 +4232,7 @@ const tt = [
|
|
|
4214
4232
|
style: l
|
|
4215
4233
|
},
|
|
4216
4234
|
children: /* @__PURE__ */ t.jsxs("div", { className: "w-banner-content", children: [
|
|
4217
|
-
e && /* @__PURE__ */ t.jsx(
|
|
4235
|
+
e && /* @__PURE__ */ t.jsx(ae.Text, { style: { fontSize: 16, fontWeight: 600 }, children: e }),
|
|
4218
4236
|
n && /* @__PURE__ */ t.jsx("div", { className: "w-banner-subtitle", children: n }),
|
|
4219
4237
|
typeof r == "function" && /* @__PURE__ */ t.jsx("div", { className: "w-banner-close-btn", children: /* @__PURE__ */ t.jsx(
|
|
4220
4238
|
ue,
|
|
@@ -4227,18 +4245,18 @@ const tt = [
|
|
|
4227
4245
|
] })
|
|
4228
4246
|
}
|
|
4229
4247
|
) : null;
|
|
4230
|
-
}, gr =
|
|
4231
|
-
const e =
|
|
4248
|
+
}, gr = K(xi), mi = () => {
|
|
4249
|
+
const e = $(
|
|
4232
4250
|
"ForMoreInformationOfThisTicket",
|
|
4233
4251
|
"For more information of this ticket"
|
|
4234
|
-
), n =
|
|
4252
|
+
), n = $("ClickHere", "Click here"), { ticketId: r } = He(), { widgetProps: o } = de(), { encrypt: l } = fr();
|
|
4235
4253
|
return /* @__PURE__ */ t.jsx(
|
|
4236
4254
|
gr,
|
|
4237
4255
|
{
|
|
4238
4256
|
subTitle: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4239
|
-
/* @__PURE__ */ t.jsx(
|
|
4257
|
+
/* @__PURE__ */ t.jsx(ae.Text, { children: e }),
|
|
4240
4258
|
/* @__PURE__ */ t.jsx(
|
|
4241
|
-
|
|
4259
|
+
ae.Link,
|
|
4242
4260
|
{
|
|
4243
4261
|
strong: !0,
|
|
4244
4262
|
className: "w-reconnect-manual",
|
|
@@ -4258,20 +4276,20 @@ const tt = [
|
|
|
4258
4276
|
}
|
|
4259
4277
|
}
|
|
4260
4278
|
);
|
|
4261
|
-
}, yi =
|
|
4279
|
+
}, yi = K(mi), vi = ({ onClose: e, visible: n }) => /* @__PURE__ */ t.jsx(ur, { open: n, onClose: e, children: /* @__PURE__ */ t.jsxs(Bs, { children: [
|
|
4262
4280
|
/* @__PURE__ */ t.jsx(Vs, { onClose: e }),
|
|
4263
4281
|
/* @__PURE__ */ t.jsx(yi, {}),
|
|
4264
4282
|
/* @__PURE__ */ t.jsx(ii, {}),
|
|
4265
4283
|
/* @__PURE__ */ t.jsx(hi, {})
|
|
4266
|
-
] }) }), bi =
|
|
4267
|
-
const e =
|
|
4284
|
+
] }) }), bi = K(vi), Ci = () => {
|
|
4285
|
+
const e = $("AdvanceFilter", "Advance Filter"), n = $("Subject", "Subject"), r = $(
|
|
4268
4286
|
"TicketCategory",
|
|
4269
4287
|
"Ticket Category"
|
|
4270
|
-
), o =
|
|
4271
|
-
const D = `${s}/${i}/${c}`,
|
|
4288
|
+
), 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(() => {
|
|
4289
|
+
const D = `${s}/${i}/${c}`, W = `${a}/${f}`, N = `${m}/${h}`;
|
|
4272
4290
|
return [
|
|
4273
4291
|
{ value: 3, label: D },
|
|
4274
|
-
{ value: 1, label:
|
|
4292
|
+
{ value: 1, label: W },
|
|
4275
4293
|
{ value: 4, label: N },
|
|
4276
4294
|
{ value: 6, label: g },
|
|
4277
4295
|
{ value: 8, label: y }
|
|
@@ -4286,12 +4304,12 @@ const tt = [
|
|
|
4286
4304
|
SELECTOR: "*",
|
|
4287
4305
|
SORT: { FIELD: "ORDER_NO", ORDER: "ASC" }
|
|
4288
4306
|
}
|
|
4289
|
-
})) == null || D.then((
|
|
4290
|
-
var N,
|
|
4291
|
-
if ((N =
|
|
4292
|
-
const
|
|
4307
|
+
})) == null || D.then((W) => {
|
|
4308
|
+
var N, Y, k;
|
|
4309
|
+
if ((N = W == null ? void 0 : W.data) != null && N.DATA) {
|
|
4310
|
+
const U = (k = (Y = W == null ? void 0 : W.data) == null ? void 0 : Y.DATA) == null ? void 0 : k.LIST;
|
|
4293
4311
|
u(
|
|
4294
|
-
|
|
4312
|
+
U == null ? void 0 : U.map((I) => ({
|
|
4295
4313
|
label: I == null ? void 0 : I.CATEGORY_NAME,
|
|
4296
4314
|
value: I == null ? void 0 : I.CATEGORY_CODE
|
|
4297
4315
|
}))
|
|
@@ -4299,11 +4317,11 @@ const tt = [
|
|
|
4299
4317
|
}
|
|
4300
4318
|
});
|
|
4301
4319
|
}, M = () => {
|
|
4302
|
-
var N,
|
|
4320
|
+
var N, Y;
|
|
4303
4321
|
const D = E == null ? void 0 : E.getFieldsValue(!0);
|
|
4304
4322
|
T(D);
|
|
4305
|
-
const
|
|
4306
|
-
p(
|
|
4323
|
+
const W = (Y = (N = Object.values(D || {})) == null ? void 0 : N.flat()) == null ? void 0 : Y.filter(Boolean);
|
|
4324
|
+
p(W == null ? void 0 : W.length);
|
|
4307
4325
|
};
|
|
4308
4326
|
return fe(() => {
|
|
4309
4327
|
A();
|
|
@@ -4340,7 +4358,7 @@ const tt = [
|
|
|
4340
4358
|
] }),
|
|
4341
4359
|
children: [
|
|
4342
4360
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, justifyContent: "space-between" }, children: [
|
|
4343
|
-
/* @__PURE__ */ t.jsx(
|
|
4361
|
+
/* @__PURE__ */ t.jsx(ae.Text, { strong: !0, style: { fontSize: 16 }, children: e }),
|
|
4344
4362
|
/* @__PURE__ */ t.jsx(
|
|
4345
4363
|
ue,
|
|
4346
4364
|
{
|
|
@@ -4351,28 +4369,28 @@ const tt = [
|
|
|
4351
4369
|
}
|
|
4352
4370
|
)
|
|
4353
4371
|
] }),
|
|
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(
|
|
4372
|
+
/* @__PURE__ */ t.jsx("div", { className: "w-ticket-list-advance-filter-form-container", children: /* @__PURE__ */ t.jsxs(we, { form: E, layout: "vertical", children: [
|
|
4373
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: n, name: "TASK_NAME", children: /* @__PURE__ */ t.jsx(pt, { allowClear: !0 }) }),
|
|
4374
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: r, name: "CATEGORY_CODE", children: /* @__PURE__ */ t.jsx(xn, { options: b, mode: "multiple", allowClear: !0 }) }),
|
|
4375
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: o, name: "TASK_STATUS", children: /* @__PURE__ */ t.jsx(xn, { options: C, mode: "multiple", allowClear: !0 }) }),
|
|
4376
|
+
/* @__PURE__ */ t.jsx(we.Item, { label: l, name: "CREATED_DATE", children: /* @__PURE__ */ t.jsx(Gr, { style: { width: "100%" }, allowClear: !0 }) })
|
|
4359
4377
|
] }) })
|
|
4360
4378
|
]
|
|
4361
4379
|
}
|
|
4362
4380
|
);
|
|
4363
|
-
}, Ti =
|
|
4364
|
-
const e =
|
|
4381
|
+
}, Ti = K(Ci), Ei = () => {
|
|
4382
|
+
const e = $(
|
|
4365
4383
|
"ReconnectManually",
|
|
4366
4384
|
"Reconnect Manually"
|
|
4367
|
-
), n =
|
|
4385
|
+
), n = $(
|
|
4368
4386
|
"HelpdeskWebsocket",
|
|
4369
4387
|
"Helpdesk Websocket"
|
|
4370
|
-
), r =
|
|
4388
|
+
), r = $("NotConnected", "Not Connected"), o = $("Connecting", "Connecting"), {
|
|
4371
4389
|
connectWebSocket: l,
|
|
4372
4390
|
retryCountState: s,
|
|
4373
4391
|
setRetryCountState: i,
|
|
4374
4392
|
retryCountRef: c
|
|
4375
|
-
} = We(), a =
|
|
4393
|
+
} = We(), a = G(() => s === dt ? `${n} ${r}` : `${n} ${o}`, [s]);
|
|
4376
4394
|
return /* @__PURE__ */ t.jsx(
|
|
4377
4395
|
"div",
|
|
4378
4396
|
{
|
|
@@ -4414,7 +4432,7 @@ const tt = [
|
|
|
4414
4432
|
)
|
|
4415
4433
|
}
|
|
4416
4434
|
);
|
|
4417
|
-
}, Si =
|
|
4435
|
+
}, Si = K(Ei), wi = () => {
|
|
4418
4436
|
const { setTicketId: e, ticketId: n, openFilter: r } = He(), { onSendMsg: o, setGetResponse: l } = We(), { showReadyWSHD: s } = de();
|
|
4419
4437
|
return s ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
4420
4438
|
/* @__PURE__ */ t.jsx(
|
|
@@ -4434,7 +4452,7 @@ const tt = [
|
|
|
4434
4452
|
/* @__PURE__ */ t.jsx("div", { style: { display: !n && !r ? "block" : "none" }, children: /* @__PURE__ */ t.jsx(Hs, {}) }),
|
|
4435
4453
|
/* @__PURE__ */ t.jsx(Ti, {})
|
|
4436
4454
|
] }) : /* @__PURE__ */ t.jsx(Si, {});
|
|
4437
|
-
}, _i =
|
|
4455
|
+
}, _i = K(wi);
|
|
4438
4456
|
var lt = { exports: {} }, Ut = {}, vt = { exports: {} }, bt = { exports: {} }, ce = {};
|
|
4439
4457
|
/** @license React v16.13.1
|
|
4440
4458
|
* react-is.production.min.js
|
|
@@ -4529,20 +4547,20 @@ function ki() {
|
|
|
4529
4547
|
}
|
|
4530
4548
|
function T(O) {
|
|
4531
4549
|
if (typeof O == "object" && O !== null) {
|
|
4532
|
-
var
|
|
4533
|
-
switch (
|
|
4550
|
+
var me = O.$$typeof;
|
|
4551
|
+
switch (me) {
|
|
4534
4552
|
case n:
|
|
4535
|
-
var
|
|
4536
|
-
switch (
|
|
4553
|
+
var Ce = O.type;
|
|
4554
|
+
switch (Ce) {
|
|
4537
4555
|
case a:
|
|
4538
4556
|
case f:
|
|
4539
4557
|
case o:
|
|
4540
4558
|
case s:
|
|
4541
4559
|
case l:
|
|
4542
4560
|
case h:
|
|
4543
|
-
return
|
|
4561
|
+
return Ce;
|
|
4544
4562
|
default:
|
|
4545
|
-
var ge =
|
|
4563
|
+
var ge = Ce && Ce.$$typeof;
|
|
4546
4564
|
switch (ge) {
|
|
4547
4565
|
case c:
|
|
4548
4566
|
case m:
|
|
@@ -4551,55 +4569,55 @@ function ki() {
|
|
|
4551
4569
|
case i:
|
|
4552
4570
|
return ge;
|
|
4553
4571
|
default:
|
|
4554
|
-
return
|
|
4572
|
+
return me;
|
|
4555
4573
|
}
|
|
4556
4574
|
}
|
|
4557
4575
|
case r:
|
|
4558
|
-
return
|
|
4576
|
+
return me;
|
|
4559
4577
|
}
|
|
4560
4578
|
}
|
|
4561
4579
|
}
|
|
4562
|
-
var p = a, b = f, u = c, C = i, A = n, M = m, D = o,
|
|
4563
|
-
function
|
|
4564
|
-
return
|
|
4580
|
+
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;
|
|
4581
|
+
function ee(O) {
|
|
4582
|
+
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
4583
|
}
|
|
4566
|
-
function
|
|
4584
|
+
function j(O) {
|
|
4567
4585
|
return T(O) === f;
|
|
4568
4586
|
}
|
|
4569
4587
|
function L(O) {
|
|
4570
4588
|
return T(O) === c;
|
|
4571
4589
|
}
|
|
4572
|
-
function
|
|
4590
|
+
function Z(O) {
|
|
4573
4591
|
return T(O) === i;
|
|
4574
4592
|
}
|
|
4575
4593
|
function V(O) {
|
|
4576
4594
|
return typeof O == "object" && O !== null && O.$$typeof === n;
|
|
4577
4595
|
}
|
|
4578
|
-
function
|
|
4596
|
+
function P(O) {
|
|
4579
4597
|
return T(O) === m;
|
|
4580
4598
|
}
|
|
4581
|
-
function
|
|
4599
|
+
function te(O) {
|
|
4582
4600
|
return T(O) === o;
|
|
4583
4601
|
}
|
|
4584
|
-
function
|
|
4602
|
+
function X(O) {
|
|
4585
4603
|
return T(O) === _;
|
|
4586
4604
|
}
|
|
4587
|
-
function
|
|
4605
|
+
function J(O) {
|
|
4588
4606
|
return T(O) === y;
|
|
4589
4607
|
}
|
|
4590
|
-
function
|
|
4608
|
+
function q(O) {
|
|
4591
4609
|
return T(O) === r;
|
|
4592
4610
|
}
|
|
4593
|
-
function
|
|
4611
|
+
function F(O) {
|
|
4594
4612
|
return T(O) === s;
|
|
4595
4613
|
}
|
|
4596
|
-
function
|
|
4614
|
+
function z(O) {
|
|
4597
4615
|
return T(O) === l;
|
|
4598
4616
|
}
|
|
4599
|
-
function
|
|
4617
|
+
function oe(O) {
|
|
4600
4618
|
return T(O) === h;
|
|
4601
4619
|
}
|
|
4602
|
-
le.AsyncMode = p, le.ConcurrentMode = b, le.ContextConsumer = u, le.ContextProvider = C, le.Element = A, le.ForwardRef = M, le.Fragment = D, le.Lazy =
|
|
4620
|
+
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 = V, le.isForwardRef = P, le.isFragment = te, le.isLazy = X, le.isMemo = J, le.isPortal = q, le.isProfiler = F, le.isStrictMode = z, le.isSuspense = oe, le.isValidElementType = x, le.typeOf = T;
|
|
4603
4621
|
}()), le;
|
|
4604
4622
|
}
|
|
4605
4623
|
var jn;
|
|
@@ -4685,8 +4703,8 @@ function Ri() {
|
|
|
4685
4703
|
}
|
|
4686
4704
|
return Yt = function(c, a) {
|
|
4687
4705
|
var f = typeof Symbol == "function" && Symbol.iterator, m = "@@iterator";
|
|
4688
|
-
function h(
|
|
4689
|
-
var L =
|
|
4706
|
+
function h(j) {
|
|
4707
|
+
var L = j && (f && j[f] || j[m]);
|
|
4690
4708
|
if (typeof L == "function")
|
|
4691
4709
|
return L;
|
|
4692
4710
|
}
|
|
@@ -4708,47 +4726,47 @@ function Ri() {
|
|
|
4708
4726
|
objectOf: C,
|
|
4709
4727
|
oneOf: u,
|
|
4710
4728
|
oneOfType: A,
|
|
4711
|
-
shape:
|
|
4729
|
+
shape: W,
|
|
4712
4730
|
exact: N
|
|
4713
4731
|
};
|
|
4714
|
-
function _(
|
|
4715
|
-
return
|
|
4732
|
+
function _(j, L) {
|
|
4733
|
+
return j === L ? j !== 0 || 1 / j === 1 / L : j !== j && L !== L;
|
|
4716
4734
|
}
|
|
4717
|
-
function v(
|
|
4718
|
-
this.message =
|
|
4735
|
+
function v(j, L) {
|
|
4736
|
+
this.message = j, this.data = L && typeof L == "object" ? L : {}, this.stack = "";
|
|
4719
4737
|
}
|
|
4720
4738
|
v.prototype = Error.prototype;
|
|
4721
|
-
function S(
|
|
4739
|
+
function S(j) {
|
|
4722
4740
|
if (process.env.NODE_ENV !== "production")
|
|
4723
|
-
var L = {},
|
|
4724
|
-
function V(
|
|
4725
|
-
if (
|
|
4741
|
+
var L = {}, Z = 0;
|
|
4742
|
+
function V(te, X, J, q, F, z, oe) {
|
|
4743
|
+
if (q = q || g, z = z || J, oe !== r) {
|
|
4726
4744
|
if (a) {
|
|
4727
4745
|
var O = new Error(
|
|
4728
4746
|
"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
4747
|
);
|
|
4730
4748
|
throw O.name = "Invariant Violation", O;
|
|
4731
4749
|
} 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[
|
|
4750
|
+
var me = q + ":" + J;
|
|
4751
|
+
!L[me] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4752
|
+
Z < 3 && (s(
|
|
4753
|
+
"You are manually calling a React.PropTypes validation function for the `" + z + "` 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."
|
|
4754
|
+
), L[me] = !0, Z++);
|
|
4737
4755
|
}
|
|
4738
4756
|
}
|
|
4739
|
-
return
|
|
4757
|
+
return X[J] == null ? te ? X[J] === null ? new v("The " + F + " `" + z + "` is marked as required " + ("in `" + q + "`, but its value is `null`.")) : new v("The " + F + " `" + z + "` is marked as required in " + ("`" + q + "`, but its value is `undefined`.")) : null : j(X, J, q, F, z);
|
|
4740
4758
|
}
|
|
4741
|
-
var
|
|
4742
|
-
return
|
|
4759
|
+
var P = V.bind(null, !1);
|
|
4760
|
+
return P.isRequired = V.bind(null, !0), P;
|
|
4743
4761
|
}
|
|
4744
|
-
function E(
|
|
4745
|
-
function L(
|
|
4746
|
-
var
|
|
4747
|
-
if (
|
|
4748
|
-
var
|
|
4762
|
+
function E(j) {
|
|
4763
|
+
function L(Z, V, P, te, X, J) {
|
|
4764
|
+
var q = Z[V], F = U(q);
|
|
4765
|
+
if (F !== j) {
|
|
4766
|
+
var z = I(q);
|
|
4749
4767
|
return new v(
|
|
4750
|
-
"Invalid " +
|
|
4751
|
-
{ expectedType:
|
|
4768
|
+
"Invalid " + te + " `" + X + "` of type " + ("`" + z + "` supplied to `" + P + "`, expected ") + ("`" + j + "`."),
|
|
4769
|
+
{ expectedType: j }
|
|
4752
4770
|
);
|
|
4753
4771
|
}
|
|
4754
4772
|
return null;
|
|
@@ -4758,156 +4776,156 @@ function Ri() {
|
|
|
4758
4776
|
function w() {
|
|
4759
4777
|
return S(i);
|
|
4760
4778
|
}
|
|
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 " +
|
|
4779
|
+
function x(j) {
|
|
4780
|
+
function L(Z, V, P, te, X) {
|
|
4781
|
+
if (typeof j != "function")
|
|
4782
|
+
return new v("Property `" + X + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
4783
|
+
var J = Z[V];
|
|
4784
|
+
if (!Array.isArray(J)) {
|
|
4785
|
+
var q = U(J);
|
|
4786
|
+
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected an array."));
|
|
4769
4787
|
}
|
|
4770
|
-
for (var
|
|
4771
|
-
var
|
|
4772
|
-
if (
|
|
4773
|
-
return
|
|
4788
|
+
for (var F = 0; F < J.length; F++) {
|
|
4789
|
+
var z = j(J, F, P, te, X + "[" + F + "]", r);
|
|
4790
|
+
if (z instanceof Error)
|
|
4791
|
+
return z;
|
|
4774
4792
|
}
|
|
4775
4793
|
return null;
|
|
4776
4794
|
}
|
|
4777
4795
|
return S(L);
|
|
4778
4796
|
}
|
|
4779
4797
|
function T() {
|
|
4780
|
-
function
|
|
4781
|
-
var
|
|
4782
|
-
if (!c(
|
|
4783
|
-
var
|
|
4784
|
-
return new v("Invalid " +
|
|
4798
|
+
function j(L, Z, V, P, te) {
|
|
4799
|
+
var X = L[Z];
|
|
4800
|
+
if (!c(X)) {
|
|
4801
|
+
var J = U(X);
|
|
4802
|
+
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected a single ReactElement."));
|
|
4785
4803
|
}
|
|
4786
4804
|
return null;
|
|
4787
4805
|
}
|
|
4788
|
-
return S(
|
|
4806
|
+
return S(j);
|
|
4789
4807
|
}
|
|
4790
4808
|
function p() {
|
|
4791
|
-
function
|
|
4792
|
-
var
|
|
4793
|
-
if (!e.isValidElementType(
|
|
4794
|
-
var
|
|
4795
|
-
return new v("Invalid " +
|
|
4809
|
+
function j(L, Z, V, P, te) {
|
|
4810
|
+
var X = L[Z];
|
|
4811
|
+
if (!e.isValidElementType(X)) {
|
|
4812
|
+
var J = U(X);
|
|
4813
|
+
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected a single ReactElement type."));
|
|
4796
4814
|
}
|
|
4797
4815
|
return null;
|
|
4798
4816
|
}
|
|
4799
|
-
return S(
|
|
4817
|
+
return S(j);
|
|
4800
4818
|
}
|
|
4801
|
-
function b(
|
|
4802
|
-
function L(
|
|
4803
|
-
if (!(
|
|
4804
|
-
var
|
|
4805
|
-
return new v("Invalid " +
|
|
4819
|
+
function b(j) {
|
|
4820
|
+
function L(Z, V, P, te, X) {
|
|
4821
|
+
if (!(Z[V] instanceof j)) {
|
|
4822
|
+
var J = j.name || g, q = ee(Z[V]);
|
|
4823
|
+
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected ") + ("instance of `" + J + "`."));
|
|
4806
4824
|
}
|
|
4807
4825
|
return null;
|
|
4808
4826
|
}
|
|
4809
4827
|
return S(L);
|
|
4810
4828
|
}
|
|
4811
|
-
function u(
|
|
4812
|
-
if (!Array.isArray(
|
|
4829
|
+
function u(j) {
|
|
4830
|
+
if (!Array.isArray(j))
|
|
4813
4831
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
4814
4832
|
"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
4833
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
4816
|
-
function L(
|
|
4817
|
-
for (var
|
|
4818
|
-
if (_(
|
|
4834
|
+
function L(Z, V, P, te, X) {
|
|
4835
|
+
for (var J = Z[V], q = 0; q < j.length; q++)
|
|
4836
|
+
if (_(J, j[q]))
|
|
4819
4837
|
return null;
|
|
4820
|
-
var
|
|
4821
|
-
var
|
|
4822
|
-
return
|
|
4838
|
+
var F = JSON.stringify(j, function(oe, O) {
|
|
4839
|
+
var me = I(O);
|
|
4840
|
+
return me === "symbol" ? String(O) : O;
|
|
4823
4841
|
});
|
|
4824
|
-
return new v("Invalid " +
|
|
4842
|
+
return new v("Invalid " + te + " `" + X + "` of value `" + String(J) + "` " + ("supplied to `" + P + "`, expected one of " + F + "."));
|
|
4825
4843
|
}
|
|
4826
4844
|
return S(L);
|
|
4827
4845
|
}
|
|
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
|
|
4846
|
+
function C(j) {
|
|
4847
|
+
function L(Z, V, P, te, X) {
|
|
4848
|
+
if (typeof j != "function")
|
|
4849
|
+
return new v("Property `" + X + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
4850
|
+
var J = Z[V], q = U(J);
|
|
4851
|
+
if (q !== "object")
|
|
4852
|
+
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected an object."));
|
|
4853
|
+
for (var F in J)
|
|
4854
|
+
if (o(J, F)) {
|
|
4855
|
+
var z = j(J, F, P, te, X + "." + F, r);
|
|
4856
|
+
if (z instanceof Error)
|
|
4857
|
+
return z;
|
|
4840
4858
|
}
|
|
4841
4859
|
return null;
|
|
4842
4860
|
}
|
|
4843
4861
|
return S(L);
|
|
4844
4862
|
}
|
|
4845
|
-
function A(
|
|
4846
|
-
if (!Array.isArray(
|
|
4863
|
+
function A(j) {
|
|
4864
|
+
if (!Array.isArray(j))
|
|
4847
4865
|
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
|
|
4866
|
+
for (var L = 0; L < j.length; L++) {
|
|
4867
|
+
var Z = j[L];
|
|
4868
|
+
if (typeof Z != "function")
|
|
4851
4869
|
return s(
|
|
4852
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
4870
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(Z) + " at index " + L + "."
|
|
4853
4871
|
), i;
|
|
4854
4872
|
}
|
|
4855
|
-
function V(
|
|
4856
|
-
for (var
|
|
4857
|
-
var
|
|
4873
|
+
function V(P, te, X, J, q) {
|
|
4874
|
+
for (var F = [], z = 0; z < j.length; z++) {
|
|
4875
|
+
var oe = j[z], O = oe(P, te, X, J, q, r);
|
|
4858
4876
|
if (O == null)
|
|
4859
4877
|
return null;
|
|
4860
|
-
O.data && o(O.data, "expectedType") &&
|
|
4878
|
+
O.data && o(O.data, "expectedType") && F.push(O.data.expectedType);
|
|
4861
4879
|
}
|
|
4862
|
-
var
|
|
4863
|
-
return new v("Invalid " +
|
|
4880
|
+
var me = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
4881
|
+
return new v("Invalid " + J + " `" + q + "` supplied to " + ("`" + X + "`" + me + "."));
|
|
4864
4882
|
}
|
|
4865
4883
|
return S(V);
|
|
4866
4884
|
}
|
|
4867
4885
|
function M() {
|
|
4868
|
-
function
|
|
4869
|
-
return
|
|
4886
|
+
function j(L, Z, V, P, te) {
|
|
4887
|
+
return Y(L[Z]) ? null : new v("Invalid " + P + " `" + te + "` supplied to " + ("`" + V + "`, expected a ReactNode."));
|
|
4870
4888
|
}
|
|
4871
|
-
return S(
|
|
4889
|
+
return S(j);
|
|
4872
4890
|
}
|
|
4873
|
-
function D(
|
|
4891
|
+
function D(j, L, Z, V, P) {
|
|
4874
4892
|
return new v(
|
|
4875
|
-
(
|
|
4893
|
+
(j || "React class") + ": " + L + " type `" + Z + "." + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
4876
4894
|
);
|
|
4877
4895
|
}
|
|
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
|
|
4896
|
+
function W(j) {
|
|
4897
|
+
function L(Z, V, P, te, X) {
|
|
4898
|
+
var J = Z[V], q = U(J);
|
|
4899
|
+
if (q !== "object")
|
|
4900
|
+
return new v("Invalid " + te + " `" + X + "` of type `" + q + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4901
|
+
for (var F in j) {
|
|
4902
|
+
var z = j[F];
|
|
4903
|
+
if (typeof z != "function")
|
|
4904
|
+
return D(P, te, X, F, I(z));
|
|
4905
|
+
var oe = z(J, F, P, te, X + "." + F, r);
|
|
4906
|
+
if (oe)
|
|
4907
|
+
return oe;
|
|
4890
4908
|
}
|
|
4891
4909
|
return null;
|
|
4892
4910
|
}
|
|
4893
4911
|
return S(L);
|
|
4894
4912
|
}
|
|
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 (!
|
|
4913
|
+
function N(j) {
|
|
4914
|
+
function L(Z, V, P, te, X) {
|
|
4915
|
+
var J = Z[V], q = U(J);
|
|
4916
|
+
if (q !== "object")
|
|
4917
|
+
return new v("Invalid " + te + " `" + X + "` of type `" + q + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4918
|
+
var F = n({}, Z[V], j);
|
|
4919
|
+
for (var z in F) {
|
|
4920
|
+
var oe = j[z];
|
|
4921
|
+
if (o(j, z) && typeof oe != "function")
|
|
4922
|
+
return D(P, te, X, z, I(oe));
|
|
4923
|
+
if (!oe)
|
|
4906
4924
|
return new v(
|
|
4907
|
-
"Invalid " +
|
|
4908
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
4925
|
+
"Invalid " + te + " `" + X + "` key `" + z + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(Z[V], null, " ") + `
|
|
4926
|
+
Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
4909
4927
|
);
|
|
4910
|
-
var O =
|
|
4928
|
+
var O = oe(J, z, P, te, X + "." + z, r);
|
|
4911
4929
|
if (O)
|
|
4912
4930
|
return O;
|
|
4913
4931
|
}
|
|
@@ -4915,30 +4933,30 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4915
4933
|
}
|
|
4916
4934
|
return S(L);
|
|
4917
4935
|
}
|
|
4918
|
-
function j
|
|
4919
|
-
switch (typeof
|
|
4936
|
+
function Y(j) {
|
|
4937
|
+
switch (typeof j) {
|
|
4920
4938
|
case "number":
|
|
4921
4939
|
case "string":
|
|
4922
4940
|
case "undefined":
|
|
4923
4941
|
return !0;
|
|
4924
4942
|
case "boolean":
|
|
4925
|
-
return !
|
|
4943
|
+
return !j;
|
|
4926
4944
|
case "object":
|
|
4927
|
-
if (Array.isArray(
|
|
4928
|
-
return
|
|
4929
|
-
if (
|
|
4945
|
+
if (Array.isArray(j))
|
|
4946
|
+
return j.every(Y);
|
|
4947
|
+
if (j === null || c(j))
|
|
4930
4948
|
return !0;
|
|
4931
|
-
var L = h(
|
|
4949
|
+
var L = h(j);
|
|
4932
4950
|
if (L) {
|
|
4933
|
-
var
|
|
4934
|
-
if (L !==
|
|
4935
|
-
for (; !(V =
|
|
4936
|
-
if (!
|
|
4951
|
+
var Z = L.call(j), V;
|
|
4952
|
+
if (L !== j.entries) {
|
|
4953
|
+
for (; !(V = Z.next()).done; )
|
|
4954
|
+
if (!Y(V.value))
|
|
4937
4955
|
return !1;
|
|
4938
4956
|
} else
|
|
4939
|
-
for (; !(V =
|
|
4940
|
-
var
|
|
4941
|
-
if (
|
|
4957
|
+
for (; !(V = Z.next()).done; ) {
|
|
4958
|
+
var P = V.value;
|
|
4959
|
+
if (P && !Y(P[1]))
|
|
4942
4960
|
return !1;
|
|
4943
4961
|
}
|
|
4944
4962
|
} else
|
|
@@ -4948,27 +4966,27 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4948
4966
|
return !1;
|
|
4949
4967
|
}
|
|
4950
4968
|
}
|
|
4951
|
-
function
|
|
4952
|
-
return
|
|
4969
|
+
function k(j, L) {
|
|
4970
|
+
return j === "symbol" ? !0 : L ? L["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && L instanceof Symbol : !1;
|
|
4953
4971
|
}
|
|
4954
|
-
function
|
|
4955
|
-
var L = typeof
|
|
4956
|
-
return Array.isArray(
|
|
4972
|
+
function U(j) {
|
|
4973
|
+
var L = typeof j;
|
|
4974
|
+
return Array.isArray(j) ? "array" : j instanceof RegExp ? "object" : k(L, j) ? "symbol" : L;
|
|
4957
4975
|
}
|
|
4958
|
-
function I(
|
|
4959
|
-
if (typeof
|
|
4960
|
-
return "" +
|
|
4961
|
-
var L =
|
|
4976
|
+
function I(j) {
|
|
4977
|
+
if (typeof j > "u" || j === null)
|
|
4978
|
+
return "" + j;
|
|
4979
|
+
var L = U(j);
|
|
4962
4980
|
if (L === "object") {
|
|
4963
|
-
if (
|
|
4981
|
+
if (j instanceof Date)
|
|
4964
4982
|
return "date";
|
|
4965
|
-
if (
|
|
4983
|
+
if (j instanceof RegExp)
|
|
4966
4984
|
return "regexp";
|
|
4967
4985
|
}
|
|
4968
4986
|
return L;
|
|
4969
4987
|
}
|
|
4970
|
-
function
|
|
4971
|
-
var L = I(
|
|
4988
|
+
function re(j) {
|
|
4989
|
+
var L = I(j);
|
|
4972
4990
|
switch (L) {
|
|
4973
4991
|
case "array":
|
|
4974
4992
|
case "object":
|
|
@@ -4981,8 +4999,8 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4981
4999
|
return L;
|
|
4982
5000
|
}
|
|
4983
5001
|
}
|
|
4984
|
-
function
|
|
4985
|
-
return !
|
|
5002
|
+
function ee(j) {
|
|
5003
|
+
return !j.constructor || !j.constructor.name ? g : j.constructor.name;
|
|
4986
5004
|
}
|
|
4987
5005
|
return y.checkPropTypes = l, y.resetWarningCache = l.resetWarningCache, y.PropTypes = y, y;
|
|
4988
5006
|
}, Yt;
|
|
@@ -5064,7 +5082,7 @@ function Oi() {
|
|
|
5064
5082
|
}
|
|
5065
5083
|
return Ct.exports = n, Ct.exports.clsx = n, Ct.exports;
|
|
5066
5084
|
}
|
|
5067
|
-
var
|
|
5085
|
+
var ve = {}, Fe = {}, Nn;
|
|
5068
5086
|
function kt() {
|
|
5069
5087
|
if (Nn) return Fe;
|
|
5070
5088
|
Nn = 1, Object.defineProperty(Fe, "__esModule", {
|
|
@@ -5122,23 +5140,23 @@ function Li() {
|
|
|
5122
5140
|
}
|
|
5123
5141
|
var In;
|
|
5124
5142
|
function rn() {
|
|
5125
|
-
if (In) return
|
|
5126
|
-
In = 1, Object.defineProperty(
|
|
5143
|
+
if (In) return ve;
|
|
5144
|
+
In = 1, Object.defineProperty(ve, "__esModule", {
|
|
5127
5145
|
value: !0
|
|
5128
|
-
}),
|
|
5146
|
+
}), 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
5147
|
var e = kt(), n = r(Li());
|
|
5130
5148
|
function r(u, C) {
|
|
5131
5149
|
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 =
|
|
5150
|
+
return (r = function(D, W) {
|
|
5151
|
+
if (!W && D && D.__esModule) return D;
|
|
5152
|
+
var N, Y, k = { __proto__: null, default: D };
|
|
5153
|
+
if (D === null || typeof D != "object" && typeof D != "function") return k;
|
|
5154
|
+
if (N = W ? M : A) {
|
|
5137
5155
|
if (N.has(D)) return N.get(D);
|
|
5138
|
-
N.set(D,
|
|
5156
|
+
N.set(D, k);
|
|
5139
5157
|
}
|
|
5140
|
-
for (const
|
|
5141
|
-
return
|
|
5158
|
+
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]);
|
|
5159
|
+
return k;
|
|
5142
5160
|
})(u, C);
|
|
5143
5161
|
}
|
|
5144
5162
|
let o = "";
|
|
@@ -5196,9 +5214,9 @@ function rn() {
|
|
|
5196
5214
|
const D = C === C.ownerDocument.body ? {
|
|
5197
5215
|
left: 0,
|
|
5198
5216
|
top: 0
|
|
5199
|
-
} : C.getBoundingClientRect(),
|
|
5217
|
+
} : C.getBoundingClientRect(), W = (u.clientX + C.scrollLeft - D.left) / A, N = (u.clientY + C.scrollTop - D.top) / A;
|
|
5200
5218
|
return {
|
|
5201
|
-
x:
|
|
5219
|
+
x: W,
|
|
5202
5220
|
y: N
|
|
5203
5221
|
};
|
|
5204
5222
|
}
|
|
@@ -5215,12 +5233,12 @@ function rn() {
|
|
|
5215
5233
|
let {
|
|
5216
5234
|
x: M,
|
|
5217
5235
|
y: D
|
|
5218
|
-
} = u,
|
|
5236
|
+
} = u, W = `translate(${M}${A},${D}${A})`;
|
|
5219
5237
|
if (C) {
|
|
5220
|
-
const N = `${typeof C.x == "string" ? C.x : C.x + A}`,
|
|
5221
|
-
|
|
5238
|
+
const N = `${typeof C.x == "string" ? C.x : C.x + A}`, Y = `${typeof C.y == "string" ? C.y : C.y + A}`;
|
|
5239
|
+
W = `translate(${N}, ${Y})` + W;
|
|
5222
5240
|
}
|
|
5223
|
-
return
|
|
5241
|
+
return W;
|
|
5224
5242
|
}
|
|
5225
5243
|
function S(u, C) {
|
|
5226
5244
|
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 +5277,7 @@ function rn() {
|
|
|
5259
5277
|
function b(u, C) {
|
|
5260
5278
|
u.classList ? u.classList.remove(C) : u.className = u.className.replace(new RegExp(`(?:^|\\s)${C}(?!\\S)`, "g"), "");
|
|
5261
5279
|
}
|
|
5262
|
-
return
|
|
5280
|
+
return ve;
|
|
5263
5281
|
}
|
|
5264
5282
|
var Re = {}, $n;
|
|
5265
5283
|
function mr() {
|
|
@@ -5831,31 +5849,31 @@ function Ni() {
|
|
|
5831
5849
|
position: A,
|
|
5832
5850
|
positionOffset: M,
|
|
5833
5851
|
scale: D,
|
|
5834
|
-
...
|
|
5852
|
+
...W
|
|
5835
5853
|
} = this.props;
|
|
5836
|
-
let N = {},
|
|
5837
|
-
const
|
|
5854
|
+
let N = {}, Y = null;
|
|
5855
|
+
const U = !!!A || this.state.dragging, I = A || p, re = {
|
|
5838
5856
|
// Set left if horizontal drag is enabled
|
|
5839
|
-
x: (0, i.canDragX)(this) &&
|
|
5857
|
+
x: (0, i.canDragX)(this) && U ? this.state.x : I.x,
|
|
5840
5858
|
// Set top if vertical drag is enabled
|
|
5841
|
-
y: (0, i.canDragY)(this) &&
|
|
5859
|
+
y: (0, i.canDragY)(this) && U ? this.state.y : I.y
|
|
5842
5860
|
};
|
|
5843
|
-
this.state.isElementSVG ?
|
|
5844
|
-
const
|
|
5861
|
+
this.state.isElementSVG ? Y = (0, s.createSVGTransform)(re, M) : N = (0, s.createCSSTransform)(re, M);
|
|
5862
|
+
const ee = (0, l.clsx)(T.props.className || "", b, {
|
|
5845
5863
|
[u]: this.state.dragging,
|
|
5846
5864
|
[C]: this.state.dragged
|
|
5847
5865
|
});
|
|
5848
|
-
return /* @__PURE__ */ n.createElement(a.default, g({},
|
|
5866
|
+
return /* @__PURE__ */ n.createElement(a.default, g({}, W, {
|
|
5849
5867
|
onStart: this.onDragStart,
|
|
5850
5868
|
onDrag: this.onDrag,
|
|
5851
5869
|
onStop: this.onDragStop
|
|
5852
5870
|
}), /* @__PURE__ */ n.cloneElement(n.Children.only(T), {
|
|
5853
|
-
className:
|
|
5871
|
+
className: ee,
|
|
5854
5872
|
style: {
|
|
5855
5873
|
...T.props.style,
|
|
5856
5874
|
...N
|
|
5857
5875
|
},
|
|
5858
|
-
transform:
|
|
5876
|
+
transform: Y
|
|
5859
5877
|
}));
|
|
5860
5878
|
}
|
|
5861
5879
|
}
|
|
@@ -5993,14 +6011,14 @@ function Fi() {
|
|
|
5993
6011
|
}
|
|
5994
6012
|
var Ii = Fi();
|
|
5995
6013
|
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 =
|
|
6014
|
+
const e = $(
|
|
5997
6015
|
"WidgetDisconnected",
|
|
5998
6016
|
"Widget Disconnected"
|
|
5999
|
-
), [n, r] =
|
|
6017
|
+
), [n, r] = B(!0), [o, l] = B({
|
|
6000
6018
|
x: 0,
|
|
6001
6019
|
y: 250,
|
|
6002
6020
|
maxY: window.innerHeight - 200
|
|
6003
|
-
}), [s, i] =
|
|
6021
|
+
}), [s, i] = B(!1), [c, a] = B(!1), f = ne(), m = ne(null), h = ne(null), g = ne(null), y = ne({
|
|
6004
6022
|
x: 0,
|
|
6005
6023
|
y: 0
|
|
6006
6024
|
}), { widgetProps: _, setOpenWidget: v, isFirstOpenWidget: S, setFirstOpenWidget: E } = de(), { onSendMsg: w, connected: x, isHandshakeWidget: T } = ke(), p = () => {
|
|
@@ -6045,8 +6063,8 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6045
6063
|
handle: ".w-handler-launcher-widget",
|
|
6046
6064
|
axis: "y",
|
|
6047
6065
|
onDrag: (A, M) => {
|
|
6048
|
-
const D = Math.abs(M.x - y.current.x),
|
|
6049
|
-
(D > 3 ||
|
|
6066
|
+
const D = Math.abs(M.x - y.current.x), W = Math.abs(M.y - y.current.y);
|
|
6067
|
+
(D > 3 || W > 3) && a(!0), l((N) => ({
|
|
6050
6068
|
...N,
|
|
6051
6069
|
y: M.y
|
|
6052
6070
|
}));
|
|
@@ -6087,14 +6105,14 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6087
6105
|
)
|
|
6088
6106
|
}
|
|
6089
6107
|
);
|
|
6090
|
-
}, Wi =
|
|
6091
|
-
const e =
|
|
6108
|
+
}, Wi = K(Hi), Bi = () => {
|
|
6109
|
+
const e = $("NotConnected", "Not Connected"), n = $(
|
|
6092
6110
|
"CannotAutoReconnect",
|
|
6093
6111
|
"Cannot auto reconnect"
|
|
6094
|
-
), r =
|
|
6112
|
+
), r = $(
|
|
6095
6113
|
"ReconnectManually",
|
|
6096
6114
|
"Reconnect Manually"
|
|
6097
|
-
), [o, l] =
|
|
6115
|
+
), [o, l] = B(!1), { connected: s, createSocket: i } = ke(), { widgetProps: c } = de();
|
|
6098
6116
|
return fe(() => {
|
|
6099
6117
|
l(!s);
|
|
6100
6118
|
}, [s]), /* @__PURE__ */ t.jsx(
|
|
@@ -6102,17 +6120,17 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6102
6120
|
{
|
|
6103
6121
|
title: `${c == null ? void 0 : c.title} ${e}`,
|
|
6104
6122
|
subTitle: /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
6105
|
-
/* @__PURE__ */ t.jsxs(
|
|
6123
|
+
/* @__PURE__ */ t.jsxs(ae.Text, { children: [
|
|
6106
6124
|
n,
|
|
6107
6125
|
"?"
|
|
6108
6126
|
] }),
|
|
6109
6127
|
/* @__PURE__ */ t.jsx(
|
|
6110
|
-
|
|
6128
|
+
ae.Link,
|
|
6111
6129
|
{
|
|
6112
6130
|
strong: !0,
|
|
6113
6131
|
className: "w-reconnect-manual",
|
|
6114
6132
|
onClick: () => {
|
|
6115
|
-
i(!0);
|
|
6133
|
+
i(!0, !0);
|
|
6116
6134
|
},
|
|
6117
6135
|
children: r
|
|
6118
6136
|
}
|
|
@@ -6122,10 +6140,10 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6122
6140
|
open: !s && o
|
|
6123
6141
|
}
|
|
6124
6142
|
);
|
|
6125
|
-
}, Yi =
|
|
6143
|
+
}, Yi = K(
|
|
6126
6144
|
Bi
|
|
6127
6145
|
), Vi = () => {
|
|
6128
|
-
const { xs: e } = Me.useBreakpoint(), [n, r] =
|
|
6146
|
+
const { xs: e } = Me.useBreakpoint(), [n, r] = B(!1), { isOpenWidget: o, widgetProps: l } = de(), { isActiveTabVA: s } = Ue(), i = ne(null), c = G(() => {
|
|
6129
6147
|
var m;
|
|
6130
6148
|
const f = [Ft];
|
|
6131
6149
|
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 +6167,18 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6149
6167
|
/* @__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
6168
|
/* @__PURE__ */ t.jsx(Yi, {})
|
|
6151
6169
|
] }) : /* @__PURE__ */ t.jsx(Wi, {});
|
|
6152
|
-
}, zi =
|
|
6170
|
+
}, 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
6171
|
Ot.TabPane,
|
|
6154
6172
|
{
|
|
6155
6173
|
...r,
|
|
6156
6174
|
key: r == null ? void 0 : r.key,
|
|
6157
6175
|
tab: r == null ? void 0 : r.label
|
|
6158
6176
|
}
|
|
6159
|
-
)) }), qi =
|
|
6160
|
-
const { isOpenWidget: e, isUserInputHide: n } = de(), { setActiveTab: r, activeTab: o } = Ue(), l =
|
|
6177
|
+
)) }), qi = K(Gi), Ki = () => {
|
|
6178
|
+
const { isOpenWidget: e, isUserInputHide: n } = de(), { setActiveTab: r, activeTab: o } = Ue(), l = $(
|
|
6161
6179
|
"VirtualAssistant",
|
|
6162
6180
|
"Virtual Assistant"
|
|
6163
|
-
), s =
|
|
6181
|
+
), s = $("Helpdesk", "Helpdesk"), { xs: i } = Me.useBreakpoint();
|
|
6164
6182
|
return fe(() => {
|
|
6165
6183
|
const c = Xn();
|
|
6166
6184
|
r((c == null ? void 0 : c.activeTab) ?? o);
|
|
@@ -6196,8 +6214,8 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6196
6214
|
)
|
|
6197
6215
|
}
|
|
6198
6216
|
) : null;
|
|
6199
|
-
}, Pi =
|
|
6200
|
-
const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: l } = de(), { xs: s } = Me.useBreakpoint(), i =
|
|
6217
|
+
}, Pi = K(Ki), Xi = () => {
|
|
6218
|
+
const { isOpenWidget: e, setOpenWidget: n, setExpand: r, isExpand: o, widgetProps: l } = de(), { xs: s } = Me.useBreakpoint(), i = G(() => {
|
|
6201
6219
|
const { title: c = "", modelName: a = "" } = l;
|
|
6202
6220
|
return a ? `${c} (${a})` : c;
|
|
6203
6221
|
}, [l == null ? void 0 : l.title, l == null ? void 0 : l.modelName]);
|
|
@@ -6242,8 +6260,8 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6242
6260
|
]
|
|
6243
6261
|
}
|
|
6244
6262
|
) : null;
|
|
6245
|
-
}, Ji =
|
|
6246
|
-
const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = de(), { xs: l } = Me.useBreakpoint(), s =
|
|
6263
|
+
}, Ji = K(Xi), Zi = () => {
|
|
6264
|
+
const { isExpand: e, isOpenWidget: n, isFirstOpenWidget: r, setOpenWidget: o } = de(), { xs: l } = Me.useBreakpoint(), s = G(() => {
|
|
6247
6265
|
var c;
|
|
6248
6266
|
const i = [
|
|
6249
6267
|
l && n && "w-container-widget-mobile",
|
|
@@ -6270,7 +6288,7 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6270
6288
|
]
|
|
6271
6289
|
}
|
|
6272
6290
|
);
|
|
6273
|
-
}, Qi =
|
|
6291
|
+
}, Qi = K(Zi), pa = ({
|
|
6274
6292
|
getStartedPayload: e,
|
|
6275
6293
|
socketURL: n,
|
|
6276
6294
|
socketPath: r,
|