widget-chatbot 2.0.7-alpha.6 → 2.0.7-alpha.7
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 +328 -328
- package/package.json +1 -1
|
@@ -117,36 +117,36 @@ function no() {
|
|
|
117
117
|
function b(d) {
|
|
118
118
|
if (d === null || typeof d != "object")
|
|
119
119
|
return null;
|
|
120
|
-
var
|
|
121
|
-
return typeof
|
|
120
|
+
var D = E && d[E] || d[f];
|
|
121
|
+
return typeof D == "function" ? D : null;
|
|
122
122
|
}
|
|
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
|
|
127
|
-
|
|
128
|
-
A("error", d,
|
|
126
|
+
for (var D = arguments.length, U = new Array(D > 1 ? D - 1 : 0), Q = 1; Q < D; Q++)
|
|
127
|
+
U[Q - 1] = arguments[Q];
|
|
128
|
+
A("error", d, U);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function A(d,
|
|
131
|
+
function A(d, D, U) {
|
|
132
132
|
{
|
|
133
|
-
var
|
|
134
|
-
he !== "" && (
|
|
135
|
-
var ge =
|
|
133
|
+
var Q = u.ReactDebugCurrentFrame, he = Q.getStackAddendum();
|
|
134
|
+
he !== "" && (D += "%s", U = U.concat([he]));
|
|
135
|
+
var ge = U.map(function(oe) {
|
|
136
136
|
return "" + oe;
|
|
137
137
|
});
|
|
138
|
-
ge.unshift("Warning: " +
|
|
138
|
+
ge.unshift("Warning: " + D), Function.prototype.apply.call(console[d], console, ge);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
var N = !1;
|
|
142
|
-
function
|
|
142
|
+
function O(d) {
|
|
143
143
|
return !!(typeof d == "string" || typeof d == "function" || d === e.Fragment || d === i || d === T || d === s || d === m || d === p || d === w || N || typeof d == "object" && d !== null && (d.$$typeof === y || d.$$typeof === h || d.$$typeof === a || d.$$typeof === l || d.$$typeof === g || d.$$typeof === S || d.$$typeof === j || d[0] === v));
|
|
144
144
|
}
|
|
145
|
-
function _(d,
|
|
146
|
-
var
|
|
147
|
-
return d.displayName || (
|
|
145
|
+
function _(d, D, U) {
|
|
146
|
+
var Q = D.displayName || D.name || "";
|
|
147
|
+
return d.displayName || (Q !== "" ? U + "(" + Q + ")" : U);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function R(d) {
|
|
150
150
|
return d.displayName || "Context";
|
|
151
151
|
}
|
|
152
152
|
function H(d) {
|
|
@@ -173,11 +173,11 @@ function no() {
|
|
|
173
173
|
if (typeof d == "object")
|
|
174
174
|
switch (d.$$typeof) {
|
|
175
175
|
case l:
|
|
176
|
-
var
|
|
177
|
-
return
|
|
176
|
+
var D = d;
|
|
177
|
+
return R(D) + ".Consumer";
|
|
178
178
|
case a:
|
|
179
|
-
var
|
|
180
|
-
return
|
|
179
|
+
var U = d;
|
|
180
|
+
return R(U._context) + ".Provider";
|
|
181
181
|
case g:
|
|
182
182
|
return _(d, d.render, "ForwardRef");
|
|
183
183
|
case h:
|
|
@@ -185,7 +185,7 @@ function no() {
|
|
|
185
185
|
case j:
|
|
186
186
|
return H(d._render);
|
|
187
187
|
case y: {
|
|
188
|
-
var
|
|
188
|
+
var Q = d, he = Q._payload, ge = Q._init;
|
|
189
189
|
try {
|
|
190
190
|
return H(ge(he));
|
|
191
191
|
} catch {
|
|
@@ -195,14 +195,14 @@ function no() {
|
|
|
195
195
|
}
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
|
-
var G = 0, q, F, se, te, k, M,
|
|
198
|
+
var G = 0, q, F, se, te, k, M, P;
|
|
199
199
|
function B() {
|
|
200
200
|
}
|
|
201
201
|
B.__reactDisabledLog = !0;
|
|
202
202
|
function Y() {
|
|
203
203
|
{
|
|
204
204
|
if (G === 0) {
|
|
205
|
-
q = console.log, F = console.info, se = console.warn, te = console.error, k = console.group, M = console.groupCollapsed,
|
|
205
|
+
q = console.log, F = console.info, se = console.warn, te = console.error, k = console.group, M = console.groupCollapsed, P = console.groupEnd;
|
|
206
206
|
var d = {
|
|
207
207
|
configurable: !0,
|
|
208
208
|
enumerable: !0,
|
|
@@ -222,7 +222,7 @@ function no() {
|
|
|
222
222
|
G++;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Z() {
|
|
226
226
|
{
|
|
227
227
|
if (G--, G === 0) {
|
|
228
228
|
var d = {
|
|
@@ -250,48 +250,48 @@ function no() {
|
|
|
250
250
|
value: M
|
|
251
251
|
}),
|
|
252
252
|
groupEnd: r({}, d, {
|
|
253
|
-
value:
|
|
253
|
+
value: P
|
|
254
254
|
})
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
G < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function ee(d,
|
|
260
|
+
var X = u.ReactCurrentDispatcher, J;
|
|
261
|
+
function ee(d, D, U) {
|
|
262
262
|
{
|
|
263
263
|
if (J === void 0)
|
|
264
264
|
try {
|
|
265
265
|
throw Error();
|
|
266
266
|
} catch (he) {
|
|
267
|
-
var
|
|
268
|
-
J =
|
|
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 $ = !1, V;
|
|
275
275
|
{
|
|
276
276
|
var de = typeof WeakMap == "function" ? WeakMap : Map;
|
|
277
277
|
V = new de();
|
|
278
278
|
}
|
|
279
|
-
function L(d,
|
|
280
|
-
if (!d ||
|
|
279
|
+
function L(d, D) {
|
|
280
|
+
if (!d || $)
|
|
281
281
|
return "";
|
|
282
282
|
{
|
|
283
|
-
var
|
|
284
|
-
if (
|
|
285
|
-
return
|
|
283
|
+
var U = V.get(d);
|
|
284
|
+
if (U !== void 0)
|
|
285
|
+
return U;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
288
|
-
|
|
287
|
+
var Q;
|
|
288
|
+
$ = !0;
|
|
289
289
|
var he = Error.prepareStackTrace;
|
|
290
290
|
Error.prepareStackTrace = void 0;
|
|
291
291
|
var ge;
|
|
292
|
-
ge =
|
|
292
|
+
ge = X.current, X.current = null, Y();
|
|
293
293
|
try {
|
|
294
|
-
if (
|
|
294
|
+
if (D) {
|
|
295
295
|
var oe = function() {
|
|
296
296
|
throw Error();
|
|
297
297
|
};
|
|
@@ -303,14 +303,14 @@ function no() {
|
|
|
303
303
|
try {
|
|
304
304
|
Reflect.construct(oe, []);
|
|
305
305
|
} catch (Le) {
|
|
306
|
-
|
|
306
|
+
Q = Le;
|
|
307
307
|
}
|
|
308
308
|
Reflect.construct(d, [], oe);
|
|
309
309
|
} else {
|
|
310
310
|
try {
|
|
311
311
|
oe.call();
|
|
312
312
|
} catch (Le) {
|
|
313
|
-
|
|
313
|
+
Q = Le;
|
|
314
314
|
}
|
|
315
315
|
d.call(oe.prototype);
|
|
316
316
|
}
|
|
@@ -318,14 +318,14 @@ function no() {
|
|
|
318
318
|
try {
|
|
319
319
|
throw Error();
|
|
320
320
|
} catch (Le) {
|
|
321
|
-
|
|
321
|
+
Q = Le;
|
|
322
322
|
}
|
|
323
323
|
d();
|
|
324
324
|
}
|
|
325
325
|
} catch (Le) {
|
|
326
|
-
if (Le &&
|
|
326
|
+
if (Le && Q && typeof Le.stack == "string") {
|
|
327
327
|
for (var ne = Le.stack.split(`
|
|
328
|
-
`), Te =
|
|
328
|
+
`), Te = Q.stack.split(`
|
|
329
329
|
`), me = ne.length - 1, ve = Te.length - 1; me >= 1 && ve >= 0 && ne[me] !== Te[ve]; )
|
|
330
330
|
ve--;
|
|
331
331
|
for (; me >= 1 && ve >= 0; me--, ve--)
|
|
@@ -342,19 +342,19 @@ function no() {
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
} finally {
|
|
345
|
-
|
|
345
|
+
$ = !1, X.current = ge, Z(), Error.prepareStackTrace = he;
|
|
346
346
|
}
|
|
347
347
|
var Xe = d ? d.displayName || d.name : "", dn = Xe ? ee(Xe) : "";
|
|
348
348
|
return typeof d == "function" && V.set(d, dn), dn;
|
|
349
349
|
}
|
|
350
|
-
function be(d,
|
|
350
|
+
function be(d, D, U) {
|
|
351
351
|
return L(d, !1);
|
|
352
352
|
}
|
|
353
353
|
function Ee(d) {
|
|
354
|
-
var
|
|
355
|
-
return !!(
|
|
354
|
+
var D = d.prototype;
|
|
355
|
+
return !!(D && D.isReactComponent);
|
|
356
356
|
}
|
|
357
|
-
function fe(d,
|
|
357
|
+
function fe(d, D, U) {
|
|
358
358
|
if (d == null)
|
|
359
359
|
return "";
|
|
360
360
|
if (typeof d == "function")
|
|
@@ -372,13 +372,13 @@ function no() {
|
|
|
372
372
|
case g:
|
|
373
373
|
return be(d.render);
|
|
374
374
|
case h:
|
|
375
|
-
return fe(d.type,
|
|
375
|
+
return fe(d.type, D, U);
|
|
376
376
|
case j:
|
|
377
377
|
return be(d._render);
|
|
378
378
|
case y: {
|
|
379
|
-
var
|
|
379
|
+
var Q = d, he = Q._payload, ge = Q._init;
|
|
380
380
|
try {
|
|
381
|
-
return fe(ge(he),
|
|
381
|
+
return fe(ge(he), D, U);
|
|
382
382
|
} catch {
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -388,12 +388,12 @@ function no() {
|
|
|
388
388
|
var Ce = {}, Ne = u.ReactDebugCurrentFrame;
|
|
389
389
|
function ke(d) {
|
|
390
390
|
if (d) {
|
|
391
|
-
var
|
|
392
|
-
Ne.setExtraStackFrame(
|
|
391
|
+
var D = d._owner, U = fe(d.type, d._source, D ? D.type : null);
|
|
392
|
+
Ne.setExtraStackFrame(U);
|
|
393
393
|
} else
|
|
394
394
|
Ne.setExtraStackFrame(null);
|
|
395
395
|
}
|
|
396
|
-
function it(d,
|
|
396
|
+
function it(d, D, U, Q, he) {
|
|
397
397
|
{
|
|
398
398
|
var ge = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
399
399
|
for (var oe in d)
|
|
@@ -401,14 +401,14 @@ function no() {
|
|
|
401
401
|
var ne = void 0;
|
|
402
402
|
try {
|
|
403
403
|
if (typeof d[oe] != "function") {
|
|
404
|
-
var Te = Error((
|
|
404
|
+
var Te = Error((Q || "React class") + ": " + U + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
405
405
|
throw Te.name = "Invariant Violation", Te;
|
|
406
406
|
}
|
|
407
|
-
ne = d[oe](
|
|
407
|
+
ne = d[oe](D, oe, Q, U, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
408
|
} catch (me) {
|
|
409
409
|
ne = me;
|
|
410
410
|
}
|
|
411
|
-
ne && !(ne instanceof Error) && (ke(he), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",
|
|
411
|
+
ne && !(ne instanceof Error) && (ke(he), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", U, oe, typeof ne), ke(null)), ne instanceof Error && !(ne.message in Ce) && (Ce[ne.message] = !0, ke(he), C("Failed %s type: %s", U, ne.message), ke(null));
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -420,53 +420,53 @@ function no() {
|
|
|
420
420
|
}, Be, rn;
|
|
421
421
|
function yr(d) {
|
|
422
422
|
if (qe.call(d, "ref")) {
|
|
423
|
-
var
|
|
424
|
-
if (
|
|
423
|
+
var D = Object.getOwnPropertyDescriptor(d, "ref").get;
|
|
424
|
+
if (D && D.isReactWarning)
|
|
425
425
|
return !1;
|
|
426
426
|
}
|
|
427
427
|
return d.ref !== void 0;
|
|
428
428
|
}
|
|
429
429
|
function vr(d) {
|
|
430
430
|
if (qe.call(d, "key")) {
|
|
431
|
-
var
|
|
432
|
-
if (
|
|
431
|
+
var D = Object.getOwnPropertyDescriptor(d, "key").get;
|
|
432
|
+
if (D && D.isReactWarning)
|
|
433
433
|
return !1;
|
|
434
434
|
}
|
|
435
435
|
return d.key !== void 0;
|
|
436
436
|
}
|
|
437
|
-
function br(d,
|
|
437
|
+
function br(d, D) {
|
|
438
438
|
typeof d.ref == "string" && Ge.current;
|
|
439
439
|
}
|
|
440
|
-
function Cr(d,
|
|
440
|
+
function Cr(d, D) {
|
|
441
441
|
{
|
|
442
|
-
var
|
|
443
|
-
Be || (Be = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
442
|
+
var U = function() {
|
|
443
|
+
Be || (Be = !0, C("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", D));
|
|
444
444
|
};
|
|
445
|
-
|
|
446
|
-
get:
|
|
445
|
+
U.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
446
|
+
get: U,
|
|
447
447
|
configurable: !0
|
|
448
448
|
});
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
function Tr(d,
|
|
451
|
+
function Tr(d, D) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
rn || (rn = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
|
453
|
+
var U = function() {
|
|
454
|
+
rn || (rn = !0, C("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", D));
|
|
455
455
|
};
|
|
456
|
-
|
|
457
|
-
get:
|
|
456
|
+
U.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
457
|
+
get: U,
|
|
458
458
|
configurable: !0
|
|
459
459
|
});
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
|
-
var Er = function(d,
|
|
462
|
+
var Er = function(d, D, U, Q, he, ge, oe) {
|
|
463
463
|
var ne = {
|
|
464
464
|
// This tag allows us to uniquely identify this as a React Element
|
|
465
465
|
$$typeof: o,
|
|
466
466
|
// Built-in properties that belong on the element
|
|
467
467
|
type: d,
|
|
468
|
-
key:
|
|
469
|
-
ref:
|
|
468
|
+
key: D,
|
|
469
|
+
ref: U,
|
|
470
470
|
props: oe,
|
|
471
471
|
// Record the component responsible for creating this element.
|
|
472
472
|
_owner: ge
|
|
@@ -480,7 +480,7 @@ function no() {
|
|
|
480
480
|
configurable: !1,
|
|
481
481
|
enumerable: !1,
|
|
482
482
|
writable: !1,
|
|
483
|
-
value:
|
|
483
|
+
value: Q
|
|
484
484
|
}), Object.defineProperty(ne, "_source", {
|
|
485
485
|
configurable: !1,
|
|
486
486
|
enumerable: !1,
|
|
@@ -488,12 +488,12 @@ function no() {
|
|
|
488
488
|
value: he
|
|
489
489
|
}), Object.freeze && (Object.freeze(ne.props), Object.freeze(ne)), ne;
|
|
490
490
|
};
|
|
491
|
-
function Sr(d,
|
|
491
|
+
function Sr(d, D, U, Q, he) {
|
|
492
492
|
{
|
|
493
493
|
var ge, oe = {}, ne = null, Te = null;
|
|
494
|
-
|
|
495
|
-
for (ge in
|
|
496
|
-
qe.call(
|
|
494
|
+
U !== void 0 && (ne = "" + U), vr(D) && (ne = "" + D.key), yr(D) && (Te = D.ref, br(D, he));
|
|
495
|
+
for (ge in D)
|
|
496
|
+
qe.call(D, ge) && !Ke.hasOwnProperty(ge) && (oe[ge] = D[ge]);
|
|
497
497
|
if (d && d.defaultProps) {
|
|
498
498
|
var me = d.defaultProps;
|
|
499
499
|
for (ge in me)
|
|
@@ -503,14 +503,14 @@ function no() {
|
|
|
503
503
|
var ve = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
504
504
|
ne && Cr(oe, ve), Te && Tr(oe, ve);
|
|
505
505
|
}
|
|
506
|
-
return Er(d, ne, Te, he,
|
|
506
|
+
return Er(d, ne, Te, he, Q, Ge.current, oe);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var kt = u.ReactCurrentOwner, on = u.ReactDebugCurrentFrame;
|
|
510
510
|
function Pe(d) {
|
|
511
511
|
if (d) {
|
|
512
|
-
var
|
|
513
|
-
on.setExtraStackFrame(
|
|
512
|
+
var D = d._owner, U = fe(d.type, d._source, D ? D.type : null);
|
|
513
|
+
on.setExtraStackFrame(U);
|
|
514
514
|
} else
|
|
515
515
|
on.setExtraStackFrame(null);
|
|
516
516
|
}
|
|
@@ -537,37 +537,37 @@ Check the render method of \`` + d + "`.";
|
|
|
537
537
|
var an = {};
|
|
538
538
|
function _r(d) {
|
|
539
539
|
{
|
|
540
|
-
var
|
|
541
|
-
if (!
|
|
542
|
-
var
|
|
543
|
-
|
|
540
|
+
var D = sn();
|
|
541
|
+
if (!D) {
|
|
542
|
+
var U = typeof d == "string" ? d : d.displayName || d.name;
|
|
543
|
+
U && (D = `
|
|
544
544
|
|
|
545
|
-
Check the top-level render call using <` +
|
|
545
|
+
Check the top-level render call using <` + U + ">.");
|
|
546
546
|
}
|
|
547
|
-
return
|
|
547
|
+
return D;
|
|
548
548
|
}
|
|
549
549
|
}
|
|
550
|
-
function cn(d,
|
|
550
|
+
function cn(d, D) {
|
|
551
551
|
{
|
|
552
552
|
if (!d._store || d._store.validated || d.key != null)
|
|
553
553
|
return;
|
|
554
554
|
d._store.validated = !0;
|
|
555
|
-
var
|
|
556
|
-
if (an[
|
|
555
|
+
var U = _r(D);
|
|
556
|
+
if (an[U])
|
|
557
557
|
return;
|
|
558
|
-
an[
|
|
559
|
-
var
|
|
560
|
-
d && d._owner && d._owner !== kt.current && (
|
|
558
|
+
an[U] = !0;
|
|
559
|
+
var Q = "";
|
|
560
|
+
d && d._owner && d._owner !== kt.current && (Q = " It was passed a child from " + H(d._owner.type) + "."), Pe(d), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', U, Q), Pe(null);
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
|
-
function ln(d,
|
|
563
|
+
function ln(d, D) {
|
|
564
564
|
{
|
|
565
565
|
if (typeof d != "object")
|
|
566
566
|
return;
|
|
567
567
|
if (Array.isArray(d))
|
|
568
|
-
for (var
|
|
569
|
-
var
|
|
570
|
-
Rt(
|
|
568
|
+
for (var U = 0; U < d.length; U++) {
|
|
569
|
+
var Q = d[U];
|
|
570
|
+
Rt(Q) && cn(Q, D);
|
|
571
571
|
}
|
|
572
572
|
else if (Rt(d))
|
|
573
573
|
d._store && (d._store.validated = !0);
|
|
@@ -575,50 +575,50 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
575
575
|
var he = b(d);
|
|
576
576
|
if (typeof he == "function" && he !== d.entries)
|
|
577
577
|
for (var ge = he.call(d), oe; !(oe = ge.next()).done; )
|
|
578
|
-
Rt(oe.value) && cn(oe.value,
|
|
578
|
+
Rt(oe.value) && cn(oe.value, D);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
581
|
}
|
|
582
582
|
function jr(d) {
|
|
583
583
|
{
|
|
584
|
-
var
|
|
585
|
-
if (
|
|
584
|
+
var D = d.type;
|
|
585
|
+
if (D == null || typeof D == "string")
|
|
586
586
|
return;
|
|
587
|
-
var
|
|
588
|
-
if (typeof
|
|
589
|
-
|
|
590
|
-
else if (typeof
|
|
587
|
+
var U;
|
|
588
|
+
if (typeof D == "function")
|
|
589
|
+
U = D.propTypes;
|
|
590
|
+
else if (typeof D == "object" && (D.$$typeof === g || // Note: Memo only checks outer props here.
|
|
591
591
|
// Inner props are checked in the reconciler.
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
D.$$typeof === h))
|
|
593
|
+
U = D.propTypes;
|
|
594
594
|
else
|
|
595
595
|
return;
|
|
596
|
-
if (
|
|
597
|
-
var
|
|
598
|
-
it(
|
|
599
|
-
} else if (
|
|
596
|
+
if (U) {
|
|
597
|
+
var Q = H(D);
|
|
598
|
+
it(U, d.props, "prop", Q, d);
|
|
599
|
+
} else if (D.PropTypes !== void 0 && !At) {
|
|
600
600
|
At = !0;
|
|
601
|
-
var he = H(
|
|
601
|
+
var he = H(D);
|
|
602
602
|
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", he || "Unknown");
|
|
603
603
|
}
|
|
604
|
-
typeof
|
|
604
|
+
typeof D.getDefaultProps == "function" && !D.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
605
605
|
}
|
|
606
606
|
}
|
|
607
607
|
function kr(d) {
|
|
608
608
|
{
|
|
609
|
-
for (var
|
|
610
|
-
var
|
|
611
|
-
if (
|
|
612
|
-
Pe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
|
609
|
+
for (var D = Object.keys(d.props), U = 0; U < D.length; U++) {
|
|
610
|
+
var Q = D[U];
|
|
611
|
+
if (Q !== "children" && Q !== "key") {
|
|
612
|
+
Pe(d), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), Pe(null);
|
|
613
613
|
break;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
d.ref !== null && (Pe(d), C("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
|
-
function un(d,
|
|
619
|
+
function un(d, D, U, Q, he, ge) {
|
|
620
620
|
{
|
|
621
|
-
var oe =
|
|
621
|
+
var oe = O(d);
|
|
622
622
|
if (!oe) {
|
|
623
623
|
var ne = "";
|
|
624
624
|
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (ne += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
@@ -627,13 +627,13 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
627
627
|
var me;
|
|
628
628
|
d === null ? me = "null" : Array.isArray(d) ? me = "array" : d !== void 0 && d.$$typeof === o ? (me = "<" + (H(d.type) || "Unknown") + " />", ne = " Did you accidentally export a JSX literal instead of a component?") : me = 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", me, ne);
|
|
629
629
|
}
|
|
630
|
-
var ve = Sr(d,
|
|
630
|
+
var ve = Sr(d, D, U, he, ge);
|
|
631
631
|
if (ve == null)
|
|
632
632
|
return ve;
|
|
633
633
|
if (oe) {
|
|
634
|
-
var Oe =
|
|
634
|
+
var Oe = D.children;
|
|
635
635
|
if (Oe !== void 0)
|
|
636
|
-
if (
|
|
636
|
+
if (Q)
|
|
637
637
|
if (Array.isArray(Oe)) {
|
|
638
638
|
for (var Xe = 0; Xe < Oe.length; Xe++)
|
|
639
639
|
ln(Oe[Xe], d);
|
|
@@ -646,11 +646,11 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
646
646
|
return d === e.Fragment ? kr(ve) : jr(ve), ve;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
function Ar(d,
|
|
650
|
-
return un(d,
|
|
649
|
+
function Ar(d, D, U) {
|
|
650
|
+
return un(d, D, U, !0);
|
|
651
651
|
}
|
|
652
|
-
function Rr(d,
|
|
653
|
-
return un(d,
|
|
652
|
+
function Rr(d, D, U) {
|
|
653
|
+
return un(d, D, U, !1);
|
|
654
654
|
}
|
|
655
655
|
var Dr = Rr, Or = Ar;
|
|
656
656
|
e.jsx = Dr, e.jsxs = Or;
|
|
@@ -662,7 +662,7 @@ function ro() {
|
|
|
662
662
|
return vn || (vn = 1, process.env.NODE_ENV === "production" ? mt.exports = to() : mt.exports = no()), mt.exports;
|
|
663
663
|
}
|
|
664
664
|
var t = ro();
|
|
665
|
-
const oo = "2.0.7-alpha.
|
|
665
|
+
const oo = "2.0.7-alpha.7", Gn = "chat_session", so = "user_uttered", io = "bot_uttered", ao = "ehelp_bot_uttered", co = "bot_reason_uttered";
|
|
666
666
|
JSON.stringify({
|
|
667
667
|
enabled_agents: ["Alice", "Maria", "Jani"],
|
|
668
668
|
default_active_agent: "Alice"
|
|
@@ -922,7 +922,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
922
922
|
l,
|
|
923
923
|
g,
|
|
924
924
|
m
|
|
925
|
-
]),
|
|
925
|
+
]), O = z(() => Kn(T == null ? void 0 : T.access_token), [T == null ? void 0 : T.access_token]);
|
|
926
926
|
return pe(() => {
|
|
927
927
|
w(yo(n));
|
|
928
928
|
}, [n]), pe(() => {
|
|
@@ -941,7 +941,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
941
941
|
isExpand: v,
|
|
942
942
|
setExpand: S,
|
|
943
943
|
setObjInitPayload: w,
|
|
944
|
-
parsedJWT:
|
|
944
|
+
parsedJWT: O,
|
|
945
945
|
widgetProps: N,
|
|
946
946
|
isFirstOpenWidget: x,
|
|
947
947
|
setFirstOpenWidget: E,
|
|
@@ -996,38 +996,38 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
996
996
|
}, [n == null ? void 0 : n.uriService, n == null ? void 0 : n.lang]), /* @__PURE__ */ t.jsx(Qn.Provider, { value: { langDatas: r }, children: e });
|
|
997
997
|
}, er = Ve({}), De = () => ze(er), ko = ({ children: e }) => {
|
|
998
998
|
var ee;
|
|
999
|
-
const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [p, h] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, w] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, N] = W({}),
|
|
999
|
+
const [n, r] = W([]), [o, c] = W(!1), [s, i] = W(!1), [a, l] = W({}), [g, m] = W(!0), [p, h] = W(!1), [y, j] = W(!1), [v, S] = W(!1), [T, w] = W(!1), [x, E] = W(""), [f, b] = W(!1), [u, C] = W(!1), [A, N] = W({}), O = re(null), _ = re(null), R = re(null), H = re(""), G = re(""), {
|
|
1000
1000
|
objInitPayload: q,
|
|
1001
1001
|
widgetProps: F,
|
|
1002
1002
|
setOpenWidget: se,
|
|
1003
1003
|
setFirstOpenWidget: te,
|
|
1004
1004
|
isFirstRenderHelpdesk: k,
|
|
1005
1005
|
setUserInputHide: M
|
|
1006
|
-
} = ue(),
|
|
1006
|
+
} = ue(), P = ($) => {
|
|
1007
1007
|
var de;
|
|
1008
|
-
const V = we(
|
|
1008
|
+
const V = we($, "text_feedback_link") && we($, "text");
|
|
1009
1009
|
r((L) => {
|
|
1010
1010
|
var Ne, ke;
|
|
1011
|
-
const Ee = [...bo(L)], fe = Ee[Ee.length - 1], Ce =
|
|
1012
|
-
return (fe == null ? void 0 : fe.id) === Ce ? (fe.text = `${(fe == null ? void 0 : fe.text) || ""}${(
|
|
1013
|
-
|
|
1011
|
+
const Ee = [...bo(L)], fe = Ee[Ee.length - 1], Ce = $.id && $.id !== "" ? $.id : ((Ne = $.metadata) == null ? void 0 : Ne.id) || ((ke = $.metadata) == null ? void 0 : ke.message_id) || "";
|
|
1012
|
+
return (fe == null ? void 0 : fe.id) === Ce ? (fe.text = `${(fe == null ? void 0 : fe.text) || ""}${($ == null ? void 0 : $.text) || ""}`, $ != null && $.tag && (fe.tag = $.tag)) : Ee.push({
|
|
1013
|
+
...$,
|
|
1014
1014
|
id: Ce,
|
|
1015
1015
|
...V && { type: "text" },
|
|
1016
1016
|
sender: "response"
|
|
1017
1017
|
}), Co(Ee);
|
|
1018
|
-
}), C(!0), m(!1), c(!1), M(((de =
|
|
1018
|
+
}), C(!0), m(!1), c(!1), M(((de = $ == null ? void 0 : $.metadata) == null ? void 0 : de.userInput) === "hide"), i(!1), O != null && O.current && clearTimeout(O == null ? void 0 : O.current), O.current = setTimeout(() => {
|
|
1019
1019
|
C(!1);
|
|
1020
1020
|
}, 1750), _ != null && _.current && clearTimeout(_ == null ? void 0 : _.current), _.current = setTimeout(() => {
|
|
1021
1021
|
m(!0);
|
|
1022
1022
|
}, 2e3), $e();
|
|
1023
|
-
}, B = (
|
|
1023
|
+
}, B = ($) => {
|
|
1024
1024
|
var V, de, L, be, Ee;
|
|
1025
|
-
|
|
1025
|
+
$ && Y({ msg: F == null ? void 0 : F.getStartedPayload }), (V = R.current) == null || V.emit("session_request", { session_id: null }), (de = R.current) == null || de.on("session_confirm", (fe) => {
|
|
1026
1026
|
H.current = fe, _t({ session_id: fe == null ? void 0 : fe.session_id });
|
|
1027
|
-
}), (L =
|
|
1027
|
+
}), (L = R.current) == null || L.on(io, P), (be = R.current) == null || be.on(ao, (fe) => {
|
|
1028
1028
|
const Ce = JSON.parse(fe || "{}");
|
|
1029
1029
|
we(Ce, "iswidget") && w(Ce == null ? void 0 : Ce.iswidget);
|
|
1030
|
-
}), (Ee =
|
|
1030
|
+
}), (Ee = R.current) == null || Ee.on(co, (fe) => {
|
|
1031
1031
|
try {
|
|
1032
1032
|
const Ce = typeof fe == "string" ? JSON.parse(fe) : fe, { id: Ne } = Ce || {};
|
|
1033
1033
|
if (!Ne) return;
|
|
@@ -1047,20 +1047,20 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}), v || S(!0), te(!1);
|
|
1049
1049
|
}, Y = ({
|
|
1050
|
-
msg:
|
|
1050
|
+
msg: $,
|
|
1051
1051
|
additionalConfig: V = {},
|
|
1052
1052
|
isShowLoadingResponse: de = !0
|
|
1053
1053
|
}) => {
|
|
1054
1054
|
var L;
|
|
1055
|
-
(L =
|
|
1055
|
+
(L = R.current) == null || L.emit(so, {
|
|
1056
1056
|
customData: { language: q == null ? void 0 : q.lang },
|
|
1057
|
-
message:
|
|
1057
|
+
message: $,
|
|
1058
1058
|
session_id: H == null ? void 0 : H.current,
|
|
1059
1059
|
...V
|
|
1060
1060
|
}), de ? c(!0) : i(!0);
|
|
1061
|
-
},
|
|
1061
|
+
}, Z = ($ = !1) => {
|
|
1062
1062
|
var de, L;
|
|
1063
|
-
|
|
1063
|
+
R.current && ((de = R.current) == null || de.off(), (L = R.current) == null || L.disconnect(), R.current = null), k.current = !1;
|
|
1064
1064
|
const V = qr(
|
|
1065
1065
|
`${To(F == null ? void 0 : F.socketURL)}://${qn(
|
|
1066
1066
|
F == null ? void 0 : F.socketURL
|
|
@@ -1072,7 +1072,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1072
1072
|
reconnectionAttempts: 1
|
|
1073
1073
|
}
|
|
1074
1074
|
);
|
|
1075
|
-
V.on("connect", () => B(
|
|
1075
|
+
V.on("connect", () => B($)), V.on("connect_error", (be) => {
|
|
1076
1076
|
console.error("connect_error widget-chatbot : ", {
|
|
1077
1077
|
err: be,
|
|
1078
1078
|
socketURL: F == null ? void 0 : F.socketURL,
|
|
@@ -1083,14 +1083,14 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1083
1083
|
socketURL: F == null ? void 0 : F.socketURL,
|
|
1084
1084
|
socketPath: F == null ? void 0 : F.widgetProps
|
|
1085
1085
|
}), S(!1);
|
|
1086
|
-
}),
|
|
1087
|
-
},
|
|
1088
|
-
var
|
|
1089
|
-
(!((
|
|
1086
|
+
}), R.current = V;
|
|
1087
|
+
}, X = () => {
|
|
1088
|
+
var $;
|
|
1089
|
+
(!(($ = R == null ? void 0 : R.current) != null && $.connected) || !v) && (Z(), se(!1));
|
|
1090
1090
|
}, J = () => S(!1);
|
|
1091
|
-
return pe(() => (se(!1),
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1091
|
+
return pe(() => (se(!1), Z(), window.addEventListener("online", X), window.addEventListener("offline", J), () => {
|
|
1092
|
+
var $, V;
|
|
1093
|
+
R.current && (($ = R.current) == null || $.off("connect", B), (V = R.current) == null || V.disconnect(), R.current = null), window.removeEventListener("online", X), window.removeEventListener("offline", J);
|
|
1094
1094
|
}), [
|
|
1095
1095
|
JSON.stringify(q || {}),
|
|
1096
1096
|
F == null ? void 0 : F.socketURL,
|
|
@@ -1103,14 +1103,14 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1103
1103
|
chats: n,
|
|
1104
1104
|
onSendMsg: Y,
|
|
1105
1105
|
isWaitResponse: o,
|
|
1106
|
-
socket:
|
|
1106
|
+
socket: R == null ? void 0 : R.current,
|
|
1107
1107
|
sessionId: (ee = H == null ? void 0 : H.current) == null ? void 0 : ee.session_id,
|
|
1108
1108
|
loadingRegenerate: s,
|
|
1109
1109
|
file: a,
|
|
1110
1110
|
setFile: l,
|
|
1111
1111
|
connected: v,
|
|
1112
1112
|
isHandshakeWidget: T,
|
|
1113
|
-
createSocket:
|
|
1113
|
+
createSocket: Z,
|
|
1114
1114
|
currRegenerateId: G,
|
|
1115
1115
|
thinkingText: x,
|
|
1116
1116
|
setThinkingText: E,
|
|
@@ -2047,7 +2047,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2047
2047
|
uriBackend: C = "",
|
|
2048
2048
|
uriBackendEnt: A = "",
|
|
2049
2049
|
lang: N = ""
|
|
2050
|
-
} = h || {},
|
|
2050
|
+
} = h || {}, O = g === "another" ? i == null ? void 0 : i.getFieldValue("additional_feedback") : g;
|
|
2051
2051
|
(_ = ot({
|
|
2052
2052
|
method: "POST",
|
|
2053
2053
|
url: E,
|
|
@@ -2055,7 +2055,7 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2055
2055
|
message_id: e == null ? void 0 : e.id,
|
|
2056
2056
|
response_type: x === "like" ? "thumbs_up" : "thumbs_down",
|
|
2057
2057
|
...x === "dislike" && {
|
|
2058
|
-
additional_feedback:
|
|
2058
|
+
additional_feedback: O
|
|
2059
2059
|
}
|
|
2060
2060
|
},
|
|
2061
2061
|
headers: {
|
|
@@ -2069,9 +2069,9 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2069
2069
|
"Acc-Name": `${b.toUpperCase()}`,
|
|
2070
2070
|
Language: `${N}`
|
|
2071
2071
|
}
|
|
2072
|
-
})) == null || _.then((
|
|
2072
|
+
})) == null || _.then((R) => {
|
|
2073
2073
|
var H, G, q;
|
|
2074
|
-
(
|
|
2074
|
+
(R == null ? void 0 : R.status) === 200 && (a && l(!1), (H = _e) == null || H.destroy(), (G = _e) == null || G.config({
|
|
2075
2075
|
getContainer: () => document.querySelector(".w-widget-content-container"),
|
|
2076
2076
|
top: 28,
|
|
2077
2077
|
placement: "top",
|
|
@@ -2084,13 +2084,13 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2084
2084
|
return (se = F == null ? void 0 : F.map((te) => {
|
|
2085
2085
|
var M;
|
|
2086
2086
|
if (we(te, "chats")) {
|
|
2087
|
-
const
|
|
2087
|
+
const P = (M = te == null ? void 0 : te.chats) == null ? void 0 : M.map((B) => (B == null ? void 0 : B.indexChat) === (e == null ? void 0 : e.indexChat) ? {
|
|
2088
2088
|
...B,
|
|
2089
2089
|
feedback: x
|
|
2090
2090
|
} : B);
|
|
2091
2091
|
return {
|
|
2092
2092
|
...te,
|
|
2093
|
-
chats:
|
|
2093
|
+
chats: P
|
|
2094
2094
|
};
|
|
2095
2095
|
}
|
|
2096
2096
|
return (e == null ? void 0 : e.id) === (te == null ? void 0 : te.id) ? {
|
|
@@ -2496,7 +2496,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2496
2496
|
), N = I(
|
|
2497
2497
|
"SessionExpired",
|
|
2498
2498
|
"Session expired. Please log in again to continue"
|
|
2499
|
-
), [
|
|
2499
|
+
), [O] = Se.useForm(), _ = () => {
|
|
2500
2500
|
var G, q, F;
|
|
2501
2501
|
s(!0), g(!0), (F = (q = (G = S()) == null ? void 0 : G.then((se) => {
|
|
2502
2502
|
var k, M;
|
|
@@ -2507,26 +2507,26 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2507
2507
|
})) == null || F.finally(() => {
|
|
2508
2508
|
o(!1), g(!1);
|
|
2509
2509
|
});
|
|
2510
|
-
},
|
|
2510
|
+
}, R = () => {
|
|
2511
2511
|
y({ msg: "cancel" }), s(!1);
|
|
2512
2512
|
}, H = () => {
|
|
2513
2513
|
var q;
|
|
2514
|
-
const G =
|
|
2515
|
-
(q =
|
|
2514
|
+
const G = O == null ? void 0 : O.getFieldValue("pwd");
|
|
2515
|
+
(q = O == null ? void 0 : O.validateFields()) == null || q.then(() => {
|
|
2516
2516
|
var F, se;
|
|
2517
2517
|
o(!0), (se = (F = v(G)) == null ? void 0 : F.then(({ data: te }) => {
|
|
2518
2518
|
var k;
|
|
2519
2519
|
(k = te == null ? void 0 : te.DATA) != null && k.ISVALID ? _() : (p(A), a(i - 1), o(!1));
|
|
2520
2520
|
})) == null || se.catch((te) => {
|
|
2521
|
-
var M,
|
|
2521
|
+
var M, P, B, Y, Z;
|
|
2522
2522
|
const k = te == null ? void 0 : te.response;
|
|
2523
2523
|
if ((k == null ? void 0 : k.status) === 401) {
|
|
2524
|
-
const
|
|
2524
|
+
const X = (P = (M = k == null ? void 0 : k.data) == null ? void 0 : M.ERRORS) == null ? void 0 : P.includes(
|
|
2525
2525
|
"ACCESS_TOKEN_EXPIRED"
|
|
2526
|
-
), J = (
|
|
2526
|
+
), J = (Z = (Y = (B = k == null ? void 0 : k.data) == null ? void 0 : B.MESSAGE) == null ? void 0 : Y.toLowerCase()) == null ? void 0 : Z.includes(
|
|
2527
2527
|
"invalid password"
|
|
2528
2528
|
);
|
|
2529
|
-
|
|
2529
|
+
X && p(N), J && (p(A), a(i - 1), o(!1));
|
|
2530
2530
|
} else
|
|
2531
2531
|
p(te == null ? void 0 : te.toString());
|
|
2532
2532
|
o(!1);
|
|
@@ -2559,7 +2559,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2559
2559
|
children: /* @__PURE__ */ t.jsxs(
|
|
2560
2560
|
Se,
|
|
2561
2561
|
{
|
|
2562
|
-
form:
|
|
2562
|
+
form: O,
|
|
2563
2563
|
layout: "vertical",
|
|
2564
2564
|
style: { display: "flex", flexDirection: "column", gap: 8 },
|
|
2565
2565
|
children: [
|
|
@@ -2579,7 +2579,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2579
2579
|
}
|
|
2580
2580
|
),
|
|
2581
2581
|
/* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8 }, children: [
|
|
2582
|
-
/* @__PURE__ */ t.jsx(le, { disabled: r, onClick:
|
|
2582
|
+
/* @__PURE__ */ t.jsx(le, { disabled: r, onClick: R, children: w }),
|
|
2583
2583
|
/* @__PURE__ */ t.jsx(
|
|
2584
2584
|
le,
|
|
2585
2585
|
{
|
|
@@ -2847,7 +2847,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2847
2847
|
e != null && e.current && ((a = e == null ? void 0 : e.current) == null || a.abort(), e.current = new AbortController());
|
|
2848
2848
|
}, pe(() => () => s.abort(), []), s;
|
|
2849
2849
|
}, js = () => {
|
|
2850
|
-
var
|
|
2850
|
+
var O;
|
|
2851
2851
|
const e = I(
|
|
2852
2852
|
"ContinueWithoutUpload",
|
|
2853
2853
|
"Continue without Upload"
|
|
@@ -2866,26 +2866,26 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2866
2866
|
isLoadingUpload: h,
|
|
2867
2867
|
setLoadingUpload: y
|
|
2868
2868
|
} = De(), { isUserInputHide: j } = ue(), { isActiveTabVA: v } = Ue(), S = z(() => {
|
|
2869
|
-
var
|
|
2869
|
+
var R;
|
|
2870
2870
|
const _ = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1];
|
|
2871
|
-
return (_ == null ? void 0 : _.sender) === "response" && ((
|
|
2871
|
+
return (_ == null ? void 0 : _.sender) === "response" && ((R = _ == null ? void 0 : _.attachment) == null ? void 0 : R.type) === "fileuploader";
|
|
2872
2872
|
}, [a]), T = re(), [w, x] = W(!1), [E, f] = W(!1), b = z(() => o || !E, [E, o]), u = xt(), C = () => {
|
|
2873
|
-
var k, M,
|
|
2873
|
+
var k, M, P, B;
|
|
2874
2874
|
y(!0);
|
|
2875
|
-
const _ = new FormData(),
|
|
2876
|
-
_.append("file", s), _ == null || _.append("rename", G), _ == null || _.append("action", "UPLOAD"), _ == null || _.append("filefield", G), _ == null || _.append("method", "eligible"), _ == null || _.append("hash", !1), _ == null || _.append("subFolder", te), _ == null || _.append("code",
|
|
2875
|
+
const _ = new FormData(), R = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], G = `${((k = R == null ? void 0 : R.attachment) == null ? void 0 : k.prefix) || "WP"}-${+/* @__PURE__ */ new Date()}`, q = /* @__PURE__ */ new Date(), F = q.getFullYear(), se = String(q.getMonth() + 1).padStart(2, "0"), te = `${F}/${se}`;
|
|
2876
|
+
_.append("file", s), _ == null || _.append("rename", G), _ == null || _.append("action", "UPLOAD"), _ == null || _.append("filefield", G), _ == null || _.append("method", "eligible"), _ == null || _.append("hash", !1), _ == null || _.append("subFolder", te), _ == null || _.append("code", (M = R == null ? void 0 : R.attachment) == null ? void 0 : M.code), (B = (P = u({
|
|
2877
2877
|
apiType: "lc",
|
|
2878
2878
|
params: {
|
|
2879
2879
|
ofid: "SFUtil.UploadFile"
|
|
2880
2880
|
},
|
|
2881
2881
|
data: _
|
|
2882
|
-
})) == null ? void 0 :
|
|
2883
|
-
var
|
|
2884
|
-
const
|
|
2885
|
-
console.log("r",
|
|
2886
|
-
const
|
|
2887
|
-
n({ msg: `sf-filename ${
|
|
2888
|
-
})) == null ||
|
|
2882
|
+
})) == null ? void 0 : P.then((Y) => {
|
|
2883
|
+
var J, ee, $;
|
|
2884
|
+
const Z = (J = Y == null ? void 0 : Y.data) == null ? void 0 : J.DATA;
|
|
2885
|
+
console.log("r", Y, Z);
|
|
2886
|
+
const X = ($ = (ee = Z == null ? void 0 : Z.FILENAMES) == null ? void 0 : ee[0]) == null ? void 0 : $.SERVERFILE;
|
|
2887
|
+
n({ msg: `sf-filename ${X}` }), p(!1);
|
|
2888
|
+
})) == null || B.finally(() => {
|
|
2889
2889
|
y(!1);
|
|
2890
2890
|
});
|
|
2891
2891
|
}, A = () => {
|
|
@@ -2893,13 +2893,13 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2893
2893
|
const _ = (q = (G = (H = T == null ? void 0 : T.current) == null ? void 0 : H.resizableTextArea) == null ? void 0 : G.textArea) == null ? void 0 : q.value;
|
|
2894
2894
|
if (!(_ != null && _.trim()) || o) return;
|
|
2895
2895
|
f(!1), n({ msg: _ }), x(!w);
|
|
2896
|
-
const
|
|
2896
|
+
const R = {
|
|
2897
2897
|
text: _,
|
|
2898
2898
|
sender: "client",
|
|
2899
2899
|
type: "text",
|
|
2900
2900
|
timestamp: (F = je()) == null ? void 0 : F.format("hh:mm A")
|
|
2901
2901
|
};
|
|
2902
|
-
r((se) => [...se,
|
|
2902
|
+
r((se) => [...se, R]), $e();
|
|
2903
2903
|
}, N = () => {
|
|
2904
2904
|
n({ msg: "SKIP_WAITING_RESPONSE" });
|
|
2905
2905
|
};
|
|
@@ -2910,7 +2910,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2910
2910
|
S && p(!0);
|
|
2911
2911
|
}, [S]), j ? null : m ? /* @__PURE__ */ t.jsxs("div", { className: "w-input-container", style: { alignItems: "center" }, children: [
|
|
2912
2912
|
/* @__PURE__ */ t.jsx(ie.Text, { children: s == null ? void 0 : s.name }),
|
|
2913
|
-
((
|
|
2913
|
+
((O = Object == null ? void 0 : Object.keys(s || {})) == null ? void 0 : O.length) > 0 ? /* @__PURE__ */ t.jsxs("div", { style: { display: "flex", gap: 8, alignItems: "center" }, children: [
|
|
2914
2914
|
/* @__PURE__ */ t.jsx(
|
|
2915
2915
|
le,
|
|
2916
2916
|
{
|
|
@@ -2956,10 +2956,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
2956
2956
|
((_ == null ? void 0 : _.code) === "Enter" || (_ == null ? void 0 : _.key) === "Enter") && !(_ != null && _.shiftKey) && A();
|
|
2957
2957
|
},
|
|
2958
2958
|
onChange: ({ target: { value: _ } }) => {
|
|
2959
|
-
const
|
|
2959
|
+
const R = /\S/;
|
|
2960
2960
|
_t({
|
|
2961
2961
|
input_va_value: _
|
|
2962
|
-
}), _ && (
|
|
2962
|
+
}), _ && (R != null && R.test(_)) ? f(!0) : _ != null && _.trim() || f(!1);
|
|
2963
2963
|
}
|
|
2964
2964
|
},
|
|
2965
2965
|
w
|
|
@@ -3146,7 +3146,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3146
3146
|
), o.current = !1, j(!1), !(b != null && b.wasClean) && (r == null ? void 0 : r.current) < ut && (r.current += 1, l((u) => u + 1), clearTimeout(c.current), c.current = setTimeout(T, 2e3));
|
|
3147
3147
|
}, f.onmessage = w(f), n.current = f;
|
|
3148
3148
|
}, T = async () => {
|
|
3149
|
-
var _,
|
|
3149
|
+
var _, R, H;
|
|
3150
3150
|
if (((_ = n.current) == null ? void 0 : _.readyState) === (WebSocket == null ? void 0 : WebSocket.CONNECTING)) return;
|
|
3151
3151
|
const {
|
|
3152
3152
|
access_token: E,
|
|
@@ -3161,7 +3161,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3161
3161
|
);
|
|
3162
3162
|
return;
|
|
3163
3163
|
}
|
|
3164
|
-
const A = `Bearer ${E}`, N = (
|
|
3164
|
+
const A = `Bearer ${E}`, N = (R = `${C}/ws`) == null ? void 0 : R.replace("https://", "wss://"), O = {
|
|
3165
3165
|
COMPANY_ID: f.toString(),
|
|
3166
3166
|
COMPANY_CODE: b.toLowerCase(),
|
|
3167
3167
|
LANGUAGE: u,
|
|
@@ -3170,7 +3170,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3170
3170
|
};
|
|
3171
3171
|
try {
|
|
3172
3172
|
const G = await So(
|
|
3173
|
-
|
|
3173
|
+
O,
|
|
3174
3174
|
mo
|
|
3175
3175
|
);
|
|
3176
3176
|
if (!G || o.current || (r == null ? void 0 : r.current) >= ut) {
|
|
@@ -3335,15 +3335,15 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3335
3335
|
TASK_ID: p
|
|
3336
3336
|
}
|
|
3337
3337
|
})) == null ? void 0 : E.then((b) => {
|
|
3338
|
-
var u, C, A, N,
|
|
3338
|
+
var u, C, A, N, O, _;
|
|
3339
3339
|
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) {
|
|
3340
|
-
const
|
|
3340
|
+
const R = (_ = (O = (N = b == null ? void 0 : b.data) == null ? void 0 : N.DATA) == null ? void 0 : O.LIST) == null ? void 0 : _.map((H) => ({
|
|
3341
3341
|
...H,
|
|
3342
3342
|
ACTOR: {
|
|
3343
3343
|
...H == null ? void 0 : H.ACTOR
|
|
3344
3344
|
}
|
|
3345
3345
|
}));
|
|
3346
|
-
r(Et(
|
|
3346
|
+
r(Et(R));
|
|
3347
3347
|
} else
|
|
3348
3348
|
r({});
|
|
3349
3349
|
})) == null || f.finally(() => {
|
|
@@ -3372,8 +3372,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3372
3372
|
...C,
|
|
3373
3373
|
[f]: !1
|
|
3374
3374
|
})), g.current || r((C) => {
|
|
3375
|
-
const A = Jt(C), N = f == b ? "to" : "from",
|
|
3376
|
-
return Et(
|
|
3375
|
+
const A = Jt(C), N = f == b ? "to" : "from", O = [...A, { ...E, CHAT_ALIGN: N }];
|
|
3376
|
+
return Et(O);
|
|
3377
3377
|
}), g.current = !1;
|
|
3378
3378
|
}, x = (E) => {
|
|
3379
3379
|
if ((E == null ? void 0 : E.data) !== "PING") {
|
|
@@ -3913,10 +3913,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3913
3913
|
"Content-Type": "multipart/form-data"
|
|
3914
3914
|
}
|
|
3915
3915
|
})) == null ? void 0 : f.then((u) => {
|
|
3916
|
-
var C, A, N,
|
|
3916
|
+
var C, A, N, O, _;
|
|
3917
3917
|
if ((A = (C = u == null ? void 0 : u.data) == null ? void 0 : C.DATA) != null && A.LIST) {
|
|
3918
|
-
const
|
|
3919
|
-
ATTACHMENT:
|
|
3918
|
+
const R = (O = (N = u == null ? void 0 : u.data) == null ? void 0 : N.DATA) == null ? void 0 : O.LIST, H = {
|
|
3919
|
+
ATTACHMENT: R == null ? void 0 : R.VIEW_PATH,
|
|
3920
3920
|
FAQ_ID: null,
|
|
3921
3921
|
MESSAGE: "",
|
|
3922
3922
|
CREATED_DATE: (_ = je()) == null ? void 0 : _.format(`${Kt} HH:mm:ss`),
|
|
@@ -3929,7 +3929,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
3929
3929
|
}), p.current = !0, l({
|
|
3930
3930
|
event: "SEND_MESSAGE",
|
|
3931
3931
|
data: {
|
|
3932
|
-
ATTACHMENT:
|
|
3932
|
+
ATTACHMENT: R == null ? void 0 : R.TEMP_PATH,
|
|
3933
3933
|
FAQ_ID: null,
|
|
3934
3934
|
MESSAGE: "",
|
|
3935
3935
|
EMPLOYEES: g == null ? void 0 : g.map((G) => G == null ? void 0 : G.EMP_ID),
|
|
@@ -4042,7 +4042,7 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4042
4042
|
ATTACHMENT: "",
|
|
4043
4043
|
FAQ_ID: null,
|
|
4044
4044
|
MESSAGE: b,
|
|
4045
|
-
EMPLOYEES: y == null ? void 0 : y.map((
|
|
4045
|
+
EMPLOYEES: y == null ? void 0 : y.map((O) => O == null ? void 0 : O.EMP_ID),
|
|
4046
4046
|
TASK_ID: p
|
|
4047
4047
|
}
|
|
4048
4048
|
});
|
|
@@ -4054,10 +4054,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4054
4054
|
CHAT_ALIGN: "to",
|
|
4055
4055
|
CHAT_TYPE: "chat"
|
|
4056
4056
|
};
|
|
4057
|
-
j((
|
|
4058
|
-
const
|
|
4059
|
-
return Et(
|
|
4060
|
-
}), v.current = !0, $e(".w-ticket-detail-content-container"), n((
|
|
4057
|
+
j((O) => {
|
|
4058
|
+
const R = [...Jt(O), u];
|
|
4059
|
+
return Et(R);
|
|
4060
|
+
}), v.current = !0, $e(".w-ticket-detail-content-container"), n((O) => O + 1);
|
|
4061
4061
|
}, f = () => {
|
|
4062
4062
|
window.clearTimeout(s.current), i.current || (i.current = !0, l({
|
|
4063
4063
|
event: "TYPING",
|
|
@@ -4112,8 +4112,8 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4112
4112
|
((b == null ? void 0 : b.code) === "Enter" || (b == null ? void 0 : b.key) === "Enter") && !(b != null && b.shiftKey) && E();
|
|
4113
4113
|
},
|
|
4114
4114
|
filterOption: (b, u) => {
|
|
4115
|
-
var N,
|
|
4116
|
-
const C = (N = b == null ? void 0 : b.toString()) == null ? void 0 : N.toLowerCase(), A = (_ = (
|
|
4115
|
+
var N, O, _;
|
|
4116
|
+
const C = (N = b == null ? void 0 : b.toString()) == null ? void 0 : N.toLowerCase(), A = (_ = (O = u == null ? void 0 : u.FULL_NAME) == null ? void 0 : O.toString()) == null ? void 0 : _.toLowerCase();
|
|
4117
4117
|
return A == null ? void 0 : A.includes(C);
|
|
4118
4118
|
},
|
|
4119
4119
|
children: x == null ? void 0 : x.map((b, u) => /* @__PURE__ */ t.jsx(pn.Option, { ...b, children: b == null ? void 0 : b.label }, u))
|
|
@@ -4204,17 +4204,17 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4204
4204
|
"TicketCategory",
|
|
4205
4205
|
"Ticket Category"
|
|
4206
4206
|
), o = I("TicketStatus", "Ticket Status"), c = I("CreatedDate", "Created Date"), s = I("New", "New"), i = I("Open", "Open"), a = I("Reopen", "Reopen"), l = I("InProgress", "In Progress"), g = I("Responded", "Responded"), m = I("Fixed", "Fixed"), p = I("Done", "Done"), h = I("Closed", "Closed"), y = I("HDCancelled", "Cancelled"), j = I("Clear", "Clear"), v = I("Filter", "Filter"), S = xt(), [T] = Se.useForm(), { openFilter: w, setOpenFilter: x, getListTicket: E, setCountFilters: f } = He(), [b, u] = W([]), C = z(() => {
|
|
4207
|
-
const
|
|
4207
|
+
const O = `${s}/${i}/${a}`, _ = `${l}/${g}`, R = `${m}/${p}`;
|
|
4208
4208
|
return [
|
|
4209
|
-
{ value: 3, label:
|
|
4209
|
+
{ value: 3, label: O },
|
|
4210
4210
|
{ value: 1, label: _ },
|
|
4211
|
-
{ value: 4, label:
|
|
4211
|
+
{ value: 4, label: R },
|
|
4212
4212
|
{ value: 6, label: h },
|
|
4213
4213
|
{ value: 8, label: y }
|
|
4214
4214
|
];
|
|
4215
4215
|
}, []), A = () => {
|
|
4216
|
-
var
|
|
4217
|
-
(
|
|
4216
|
+
var O;
|
|
4217
|
+
(O = S({
|
|
4218
4218
|
endpoint: "/helpdesk/category/list",
|
|
4219
4219
|
data: {
|
|
4220
4220
|
LIMIT: 999999,
|
|
@@ -4222,9 +4222,9 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4222
4222
|
SELECTOR: "*",
|
|
4223
4223
|
SORT: { FIELD: "ORDER_NO", ORDER: "ASC" }
|
|
4224
4224
|
}
|
|
4225
|
-
})) == null ||
|
|
4226
|
-
var
|
|
4227
|
-
if ((
|
|
4225
|
+
})) == null || O.then((_) => {
|
|
4226
|
+
var R, H, G;
|
|
4227
|
+
if ((R = _ == null ? void 0 : _.data) != null && R.DATA) {
|
|
4228
4228
|
const q = (G = (H = _ == null ? void 0 : _.data) == null ? void 0 : H.DATA) == null ? void 0 : G.LIST;
|
|
4229
4229
|
u(
|
|
4230
4230
|
q == null ? void 0 : q.map((F) => ({
|
|
@@ -4235,10 +4235,10 @@ const cs = () => /* @__PURE__ */ t.jsxs("div", { className: "lds-ellipsis", chil
|
|
|
4235
4235
|
}
|
|
4236
4236
|
});
|
|
4237
4237
|
}, N = () => {
|
|
4238
|
-
var
|
|
4239
|
-
const
|
|
4240
|
-
E(
|
|
4241
|
-
const _ = (H = (
|
|
4238
|
+
var R, H;
|
|
4239
|
+
const O = T == null ? void 0 : T.getFieldsValue(!0);
|
|
4240
|
+
E(O);
|
|
4241
|
+
const _ = (H = (R = Object.values(O || {})) == null ? void 0 : R.flat()) == null ? void 0 : H.filter(Boolean);
|
|
4242
4242
|
f(_ == null ? void 0 : _.length);
|
|
4243
4243
|
};
|
|
4244
4244
|
return pe(() => {
|
|
@@ -4495,7 +4495,7 @@ function wi() {
|
|
|
4495
4495
|
}
|
|
4496
4496
|
}
|
|
4497
4497
|
}
|
|
4498
|
-
var f = l, b = g, u = a, C = i, A = n, N = m,
|
|
4498
|
+
var f = l, b = g, u = a, C = i, A = n, N = m, O = o, _ = j, R = y, H = r, G = s, q = c, F = p, se = !1;
|
|
4499
4499
|
function te(L) {
|
|
4500
4500
|
return se || (se = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(L) || E(L) === l;
|
|
4501
4501
|
}
|
|
@@ -4505,7 +4505,7 @@ function wi() {
|
|
|
4505
4505
|
function M(L) {
|
|
4506
4506
|
return E(L) === a;
|
|
4507
4507
|
}
|
|
4508
|
-
function
|
|
4508
|
+
function P(L) {
|
|
4509
4509
|
return E(L) === i;
|
|
4510
4510
|
}
|
|
4511
4511
|
function B(L) {
|
|
@@ -4514,10 +4514,10 @@ function wi() {
|
|
|
4514
4514
|
function Y(L) {
|
|
4515
4515
|
return E(L) === m;
|
|
4516
4516
|
}
|
|
4517
|
-
function
|
|
4517
|
+
function Z(L) {
|
|
4518
4518
|
return E(L) === o;
|
|
4519
4519
|
}
|
|
4520
|
-
function
|
|
4520
|
+
function X(L) {
|
|
4521
4521
|
return E(L) === j;
|
|
4522
4522
|
}
|
|
4523
4523
|
function J(L) {
|
|
@@ -4526,7 +4526,7 @@ function wi() {
|
|
|
4526
4526
|
function ee(L) {
|
|
4527
4527
|
return E(L) === r;
|
|
4528
4528
|
}
|
|
4529
|
-
function
|
|
4529
|
+
function $(L) {
|
|
4530
4530
|
return E(L) === s;
|
|
4531
4531
|
}
|
|
4532
4532
|
function V(L) {
|
|
@@ -4535,7 +4535,7 @@ function wi() {
|
|
|
4535
4535
|
function de(L) {
|
|
4536
4536
|
return E(L) === p;
|
|
4537
4537
|
}
|
|
4538
|
-
ce.AsyncMode = f, ce.ConcurrentMode = b, ce.ContextConsumer = u, ce.ContextProvider = C, ce.Element = A, ce.ForwardRef = N, ce.Fragment =
|
|
4538
|
+
ce.AsyncMode = f, ce.ConcurrentMode = b, ce.ContextConsumer = u, ce.ContextProvider = C, ce.Element = A, ce.ForwardRef = N, ce.Fragment = O, ce.Lazy = _, ce.Memo = R, ce.Portal = H, ce.Profiler = G, ce.StrictMode = q, ce.Suspense = F, ce.isAsyncMode = te, ce.isConcurrentMode = k, ce.isContextConsumer = M, ce.isContextProvider = P, ce.isElement = B, ce.isForwardRef = Y, ce.isFragment = Z, ce.isLazy = X, ce.isMemo = J, ce.isPortal = ee, ce.isProfiler = $, ce.isStrictMode = V, ce.isSuspense = de, ce.isValidElementType = x, ce.typeOf = E;
|
|
4539
4539
|
}()), ce;
|
|
4540
4540
|
}
|
|
4541
4541
|
var _n;
|
|
@@ -4645,7 +4645,7 @@ function ji() {
|
|
|
4645
4645
|
oneOf: u,
|
|
4646
4646
|
oneOfType: A,
|
|
4647
4647
|
shape: _,
|
|
4648
|
-
exact:
|
|
4648
|
+
exact: R
|
|
4649
4649
|
};
|
|
4650
4650
|
function j(k, M) {
|
|
4651
4651
|
return k === M ? k !== 0 || 1 / k === 1 / M : k !== k && M !== M;
|
|
@@ -4656,8 +4656,8 @@ function ji() {
|
|
|
4656
4656
|
v.prototype = Error.prototype;
|
|
4657
4657
|
function S(k) {
|
|
4658
4658
|
if (process.env.NODE_ENV !== "production")
|
|
4659
|
-
var M = {},
|
|
4660
|
-
function B(
|
|
4659
|
+
var M = {}, P = 0;
|
|
4660
|
+
function B(Z, X, J, ee, $, V, de) {
|
|
4661
4661
|
if (ee = ee || h, V = V || J, de !== r) {
|
|
4662
4662
|
if (l) {
|
|
4663
4663
|
var L = new Error(
|
|
@@ -4667,23 +4667,23 @@ function ji() {
|
|
|
4667
4667
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
4668
4668
|
var be = ee + ":" + J;
|
|
4669
4669
|
!M[be] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4670
|
-
|
|
4670
|
+
P < 3 && (s(
|
|
4671
4671
|
"You are manually calling a React.PropTypes validation function for the `" + V + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
4672
|
-
), M[be] = !0,
|
|
4672
|
+
), M[be] = !0, P++);
|
|
4673
4673
|
}
|
|
4674
4674
|
}
|
|
4675
|
-
return
|
|
4675
|
+
return X[J] == null ? Z ? X[J] === null ? new v("The " + $ + " `" + V + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new v("The " + $ + " `" + V + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : k(X, J, ee, $, V);
|
|
4676
4676
|
}
|
|
4677
4677
|
var Y = B.bind(null, !1);
|
|
4678
4678
|
return Y.isRequired = B.bind(null, !0), Y;
|
|
4679
4679
|
}
|
|
4680
4680
|
function T(k) {
|
|
4681
|
-
function M(
|
|
4682
|
-
var ee =
|
|
4683
|
-
if (
|
|
4681
|
+
function M(P, B, Y, Z, X, J) {
|
|
4682
|
+
var ee = P[B], $ = q(ee);
|
|
4683
|
+
if ($ !== k) {
|
|
4684
4684
|
var V = F(ee);
|
|
4685
4685
|
return new v(
|
|
4686
|
-
"Invalid " +
|
|
4686
|
+
"Invalid " + Z + " `" + X + "` of type " + ("`" + V + "` supplied to `" + Y + "`, expected ") + ("`" + k + "`."),
|
|
4687
4687
|
{ expectedType: k }
|
|
4688
4688
|
);
|
|
4689
4689
|
}
|
|
@@ -4695,16 +4695,16 @@ function ji() {
|
|
|
4695
4695
|
return S(i);
|
|
4696
4696
|
}
|
|
4697
4697
|
function x(k) {
|
|
4698
|
-
function M(
|
|
4698
|
+
function M(P, B, Y, Z, X) {
|
|
4699
4699
|
if (typeof k != "function")
|
|
4700
|
-
return new v("Property `" +
|
|
4701
|
-
var J =
|
|
4700
|
+
return new v("Property `" + X + "` of component `" + Y + "` has invalid PropType notation inside arrayOf.");
|
|
4701
|
+
var J = P[B];
|
|
4702
4702
|
if (!Array.isArray(J)) {
|
|
4703
4703
|
var ee = q(J);
|
|
4704
|
-
return new v("Invalid " +
|
|
4704
|
+
return new v("Invalid " + Z + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected an array."));
|
|
4705
4705
|
}
|
|
4706
|
-
for (var
|
|
4707
|
-
var V = k(J,
|
|
4706
|
+
for (var $ = 0; $ < J.length; $++) {
|
|
4707
|
+
var V = k(J, $, Y, Z, X + "[" + $ + "]", r);
|
|
4708
4708
|
if (V instanceof Error)
|
|
4709
4709
|
return V;
|
|
4710
4710
|
}
|
|
@@ -4713,32 +4713,32 @@ function ji() {
|
|
|
4713
4713
|
return S(M);
|
|
4714
4714
|
}
|
|
4715
4715
|
function E() {
|
|
4716
|
-
function k(M,
|
|
4717
|
-
var
|
|
4718
|
-
if (!a(
|
|
4719
|
-
var J = q(
|
|
4720
|
-
return new v("Invalid " + Y + " `" +
|
|
4716
|
+
function k(M, P, B, Y, Z) {
|
|
4717
|
+
var X = M[P];
|
|
4718
|
+
if (!a(X)) {
|
|
4719
|
+
var J = q(X);
|
|
4720
|
+
return new v("Invalid " + Y + " `" + Z + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement."));
|
|
4721
4721
|
}
|
|
4722
4722
|
return null;
|
|
4723
4723
|
}
|
|
4724
4724
|
return S(k);
|
|
4725
4725
|
}
|
|
4726
4726
|
function f() {
|
|
4727
|
-
function k(M,
|
|
4728
|
-
var
|
|
4729
|
-
if (!e.isValidElementType(
|
|
4730
|
-
var J = q(
|
|
4731
|
-
return new v("Invalid " + Y + " `" +
|
|
4727
|
+
function k(M, P, B, Y, Z) {
|
|
4728
|
+
var X = M[P];
|
|
4729
|
+
if (!e.isValidElementType(X)) {
|
|
4730
|
+
var J = q(X);
|
|
4731
|
+
return new v("Invalid " + Y + " `" + Z + "` of type " + ("`" + J + "` supplied to `" + B + "`, expected a single ReactElement type."));
|
|
4732
4732
|
}
|
|
4733
4733
|
return null;
|
|
4734
4734
|
}
|
|
4735
4735
|
return S(k);
|
|
4736
4736
|
}
|
|
4737
4737
|
function b(k) {
|
|
4738
|
-
function M(
|
|
4739
|
-
if (!(
|
|
4740
|
-
var J = k.name || h, ee = te(
|
|
4741
|
-
return new v("Invalid " +
|
|
4738
|
+
function M(P, B, Y, Z, X) {
|
|
4739
|
+
if (!(P[B] instanceof k)) {
|
|
4740
|
+
var J = k.name || h, ee = te(P[B]);
|
|
4741
|
+
return new v("Invalid " + Z + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected ") + ("instance of `" + J + "`."));
|
|
4742
4742
|
}
|
|
4743
4743
|
return null;
|
|
4744
4744
|
}
|
|
@@ -4749,28 +4749,28 @@ function ji() {
|
|
|
4749
4749
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
4750
4750
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
4751
4751
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
4752
|
-
function M(
|
|
4753
|
-
for (var J =
|
|
4752
|
+
function M(P, B, Y, Z, X) {
|
|
4753
|
+
for (var J = P[B], ee = 0; ee < k.length; ee++)
|
|
4754
4754
|
if (j(J, k[ee]))
|
|
4755
4755
|
return null;
|
|
4756
|
-
var
|
|
4756
|
+
var $ = JSON.stringify(k, function(de, L) {
|
|
4757
4757
|
var be = F(L);
|
|
4758
4758
|
return be === "symbol" ? String(L) : L;
|
|
4759
4759
|
});
|
|
4760
|
-
return new v("Invalid " +
|
|
4760
|
+
return new v("Invalid " + Z + " `" + X + "` of value `" + String(J) + "` " + ("supplied to `" + Y + "`, expected one of " + $ + "."));
|
|
4761
4761
|
}
|
|
4762
4762
|
return S(M);
|
|
4763
4763
|
}
|
|
4764
4764
|
function C(k) {
|
|
4765
|
-
function M(
|
|
4765
|
+
function M(P, B, Y, Z, X) {
|
|
4766
4766
|
if (typeof k != "function")
|
|
4767
|
-
return new v("Property `" +
|
|
4768
|
-
var J =
|
|
4767
|
+
return new v("Property `" + X + "` of component `" + Y + "` has invalid PropType notation inside objectOf.");
|
|
4768
|
+
var J = P[B], ee = q(J);
|
|
4769
4769
|
if (ee !== "object")
|
|
4770
|
-
return new v("Invalid " +
|
|
4771
|
-
for (var
|
|
4772
|
-
if (o(J,
|
|
4773
|
-
var V = k(J,
|
|
4770
|
+
return new v("Invalid " + Z + " `" + X + "` of type " + ("`" + ee + "` supplied to `" + Y + "`, expected an object."));
|
|
4771
|
+
for (var $ in J)
|
|
4772
|
+
if (o(J, $)) {
|
|
4773
|
+
var V = k(J, $, Y, Z, X + "." + $, r);
|
|
4774
4774
|
if (V instanceof Error)
|
|
4775
4775
|
return V;
|
|
4776
4776
|
}
|
|
@@ -4782,45 +4782,45 @@ function ji() {
|
|
|
4782
4782
|
if (!Array.isArray(k))
|
|
4783
4783
|
return process.env.NODE_ENV !== "production" && s("Invalid argument supplied to oneOfType, expected an instance of array."), i;
|
|
4784
4784
|
for (var M = 0; M < k.length; M++) {
|
|
4785
|
-
var
|
|
4786
|
-
if (typeof
|
|
4785
|
+
var P = k[M];
|
|
4786
|
+
if (typeof P != "function")
|
|
4787
4787
|
return s(
|
|
4788
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(
|
|
4788
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + se(P) + " at index " + M + "."
|
|
4789
4789
|
), i;
|
|
4790
4790
|
}
|
|
4791
|
-
function B(Y,
|
|
4792
|
-
for (var
|
|
4793
|
-
var de = k[V], L = de(Y,
|
|
4791
|
+
function B(Y, Z, X, J, ee) {
|
|
4792
|
+
for (var $ = [], V = 0; V < k.length; V++) {
|
|
4793
|
+
var de = k[V], L = de(Y, Z, X, J, ee, r);
|
|
4794
4794
|
if (L == null)
|
|
4795
4795
|
return null;
|
|
4796
|
-
L.data && o(L.data, "expectedType") &&
|
|
4796
|
+
L.data && o(L.data, "expectedType") && $.push(L.data.expectedType);
|
|
4797
4797
|
}
|
|
4798
|
-
var be =
|
|
4799
|
-
return new v("Invalid " + J + " `" + ee + "` supplied to " + ("`" +
|
|
4798
|
+
var be = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
|
|
4799
|
+
return new v("Invalid " + J + " `" + ee + "` supplied to " + ("`" + X + "`" + be + "."));
|
|
4800
4800
|
}
|
|
4801
4801
|
return S(B);
|
|
4802
4802
|
}
|
|
4803
4803
|
function N() {
|
|
4804
|
-
function k(M,
|
|
4805
|
-
return H(M[
|
|
4804
|
+
function k(M, P, B, Y, Z) {
|
|
4805
|
+
return H(M[P]) ? null : new v("Invalid " + Y + " `" + Z + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
|
|
4806
4806
|
}
|
|
4807
4807
|
return S(k);
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
4809
|
+
function O(k, M, P, B, Y) {
|
|
4810
4810
|
return new v(
|
|
4811
|
-
(k || "React class") + ": " + M + " type `" +
|
|
4811
|
+
(k || "React class") + ": " + M + " type `" + P + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Y + "`."
|
|
4812
4812
|
);
|
|
4813
4813
|
}
|
|
4814
4814
|
function _(k) {
|
|
4815
|
-
function M(
|
|
4816
|
-
var J =
|
|
4815
|
+
function M(P, B, Y, Z, X) {
|
|
4816
|
+
var J = P[B], ee = q(J);
|
|
4817
4817
|
if (ee !== "object")
|
|
4818
|
-
return new v("Invalid " +
|
|
4819
|
-
for (var
|
|
4820
|
-
var V = k[
|
|
4818
|
+
return new v("Invalid " + Z + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
4819
|
+
for (var $ in k) {
|
|
4820
|
+
var V = k[$];
|
|
4821
4821
|
if (typeof V != "function")
|
|
4822
|
-
return
|
|
4823
|
-
var de = V(J,
|
|
4822
|
+
return O(Y, Z, X, $, F(V));
|
|
4823
|
+
var de = V(J, $, Y, Z, X + "." + $, r);
|
|
4824
4824
|
if (de)
|
|
4825
4825
|
return de;
|
|
4826
4826
|
}
|
|
@@ -4828,22 +4828,22 @@ function ji() {
|
|
|
4828
4828
|
}
|
|
4829
4829
|
return S(M);
|
|
4830
4830
|
}
|
|
4831
|
-
function
|
|
4832
|
-
function M(
|
|
4833
|
-
var J =
|
|
4831
|
+
function R(k) {
|
|
4832
|
+
function M(P, B, Y, Z, X) {
|
|
4833
|
+
var J = P[B], ee = q(J);
|
|
4834
4834
|
if (ee !== "object")
|
|
4835
|
-
return new v("Invalid " +
|
|
4836
|
-
var
|
|
4837
|
-
for (var V in
|
|
4835
|
+
return new v("Invalid " + Z + " `" + X + "` of type `" + ee + "` " + ("supplied to `" + Y + "`, expected `object`."));
|
|
4836
|
+
var $ = n({}, P[B], k);
|
|
4837
|
+
for (var V in $) {
|
|
4838
4838
|
var de = k[V];
|
|
4839
4839
|
if (o(k, V) && typeof de != "function")
|
|
4840
|
-
return
|
|
4840
|
+
return O(Y, Z, X, V, F(de));
|
|
4841
4841
|
if (!de)
|
|
4842
4842
|
return new v(
|
|
4843
|
-
"Invalid " +
|
|
4843
|
+
"Invalid " + Z + " `" + X + "` key `" + V + "` supplied to `" + Y + "`.\nBad object: " + JSON.stringify(P[B], null, " ") + `
|
|
4844
4844
|
Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
4845
4845
|
);
|
|
4846
|
-
var L = de(J, V, Y,
|
|
4846
|
+
var L = de(J, V, Y, Z, X + "." + V, r);
|
|
4847
4847
|
if (L)
|
|
4848
4848
|
return L;
|
|
4849
4849
|
}
|
|
@@ -4866,13 +4866,13 @@ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
|
|
|
4866
4866
|
return !0;
|
|
4867
4867
|
var M = p(k);
|
|
4868
4868
|
if (M) {
|
|
4869
|
-
var
|
|
4869
|
+
var P = M.call(k), B;
|
|
4870
4870
|
if (M !== k.entries) {
|
|
4871
|
-
for (; !(B =
|
|
4871
|
+
for (; !(B = P.next()).done; )
|
|
4872
4872
|
if (!H(B.value))
|
|
4873
4873
|
return !1;
|
|
4874
4874
|
} else
|
|
4875
|
-
for (; !(B =
|
|
4875
|
+
for (; !(B = P.next()).done; ) {
|
|
4876
4876
|
var Y = B.value;
|
|
4877
4877
|
if (Y && !H(Y[1]))
|
|
4878
4878
|
return !1;
|
|
@@ -5065,15 +5065,15 @@ function nn() {
|
|
|
5065
5065
|
var e = jt(), n = r(Ri());
|
|
5066
5066
|
function r(u, C) {
|
|
5067
5067
|
if (typeof WeakMap == "function") var A = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap();
|
|
5068
|
-
return (r = function(
|
|
5069
|
-
if (!_ &&
|
|
5070
|
-
var
|
|
5071
|
-
if (
|
|
5072
|
-
if (
|
|
5073
|
-
if (
|
|
5074
|
-
|
|
5068
|
+
return (r = function(O, _) {
|
|
5069
|
+
if (!_ && O && O.__esModule) return O;
|
|
5070
|
+
var R, H, G = { __proto__: null, default: O };
|
|
5071
|
+
if (O === null || typeof O != "object" && typeof O != "function") return G;
|
|
5072
|
+
if (R = _ ? N : A) {
|
|
5073
|
+
if (R.has(O)) return R.get(O);
|
|
5074
|
+
R.set(O, G);
|
|
5075
5075
|
}
|
|
5076
|
-
for (const q in
|
|
5076
|
+
for (const q in O) q !== "default" && {}.hasOwnProperty.call(O, q) && ((H = (R = Object.defineProperty) && Object.getOwnPropertyDescriptor(O, q)) && (H.get || H.set) ? R(G, q, H) : G[q] = O[q]);
|
|
5077
5077
|
return G;
|
|
5078
5078
|
})(u, C);
|
|
5079
5079
|
}
|
|
@@ -5094,19 +5094,19 @@ function nn() {
|
|
|
5094
5094
|
}
|
|
5095
5095
|
function i(u, C, A, N) {
|
|
5096
5096
|
if (!u) return;
|
|
5097
|
-
const
|
|
5097
|
+
const O = {
|
|
5098
5098
|
capture: !0,
|
|
5099
5099
|
...N
|
|
5100
5100
|
};
|
|
5101
|
-
u.addEventListener ? u.addEventListener(C, A,
|
|
5101
|
+
u.addEventListener ? u.addEventListener(C, A, O) : u.attachEvent ? u.attachEvent("on" + C, A) : u["on" + C] = A;
|
|
5102
5102
|
}
|
|
5103
5103
|
function a(u, C, A, N) {
|
|
5104
5104
|
if (!u) return;
|
|
5105
|
-
const
|
|
5105
|
+
const O = {
|
|
5106
5106
|
capture: !0,
|
|
5107
5107
|
...N
|
|
5108
5108
|
};
|
|
5109
|
-
u.removeEventListener ? u.removeEventListener(C, A,
|
|
5109
|
+
u.removeEventListener ? u.removeEventListener(C, A, O) : u.detachEvent ? u.detachEvent("on" + C, A) : u["on" + C] = null;
|
|
5110
5110
|
}
|
|
5111
5111
|
function l(u) {
|
|
5112
5112
|
let C = u.clientHeight;
|
|
@@ -5129,13 +5129,13 @@ function nn() {
|
|
|
5129
5129
|
return C -= (0, e.int)(A.paddingLeft), C -= (0, e.int)(A.paddingRight), C;
|
|
5130
5130
|
}
|
|
5131
5131
|
function h(u, C, A) {
|
|
5132
|
-
const
|
|
5132
|
+
const O = C === C.ownerDocument.body ? {
|
|
5133
5133
|
left: 0,
|
|
5134
5134
|
top: 0
|
|
5135
|
-
} : C.getBoundingClientRect(), _ = (u.clientX + C.scrollLeft -
|
|
5135
|
+
} : C.getBoundingClientRect(), _ = (u.clientX + C.scrollLeft - O.left) / A, R = (u.clientY + C.scrollTop - O.top) / A;
|
|
5136
5136
|
return {
|
|
5137
5137
|
x: _,
|
|
5138
|
-
y:
|
|
5138
|
+
y: R
|
|
5139
5139
|
};
|
|
5140
5140
|
}
|
|
5141
5141
|
function y(u, C) {
|
|
@@ -5150,11 +5150,11 @@ function nn() {
|
|
|
5150
5150
|
function v(u, C, A) {
|
|
5151
5151
|
let {
|
|
5152
5152
|
x: N,
|
|
5153
|
-
y:
|
|
5154
|
-
} = u, _ = `translate(${N}${A},${
|
|
5153
|
+
y: O
|
|
5154
|
+
} = u, _ = `translate(${N}${A},${O}${A})`;
|
|
5155
5155
|
if (C) {
|
|
5156
|
-
const
|
|
5157
|
-
_ = `translate(${
|
|
5156
|
+
const R = `${typeof C.x == "string" ? C.x : C.x + A}`, H = `${typeof C.y == "string" ? C.y : C.y + A}`;
|
|
5157
|
+
_ = `translate(${R}, ${H})` + _;
|
|
5158
5158
|
}
|
|
5159
5159
|
return _;
|
|
5160
5160
|
}
|
|
@@ -5700,8 +5700,8 @@ function Oi() {
|
|
|
5700
5700
|
y: A
|
|
5701
5701
|
} = b;
|
|
5702
5702
|
b.x += this.state.slackX, b.y += this.state.slackY;
|
|
5703
|
-
const [N,
|
|
5704
|
-
b.x = N, b.y =
|
|
5703
|
+
const [N, O] = (0, i.getBoundPosition)(this, b.x, b.y);
|
|
5704
|
+
b.x = N, b.y = O, b.slackX = this.state.slackX + (C - b.x), b.slackY = this.state.slackY + (A - b.y), f.x = b.x, f.y = b.y, f.deltaX = b.x - this.state.x, f.deltaY = b.y - this.state.y;
|
|
5705
5705
|
}
|
|
5706
5706
|
if (this.props.onDrag(x, f) === !1) return !1;
|
|
5707
5707
|
this.setState(b);
|
|
@@ -5766,17 +5766,17 @@ function Oi() {
|
|
|
5766
5766
|
defaultClassNameDragged: C,
|
|
5767
5767
|
position: A,
|
|
5768
5768
|
positionOffset: N,
|
|
5769
|
-
scale:
|
|
5769
|
+
scale: O,
|
|
5770
5770
|
..._
|
|
5771
5771
|
} = this.props;
|
|
5772
|
-
let
|
|
5772
|
+
let R = {}, H = null;
|
|
5773
5773
|
const q = !!!A || this.state.dragging, F = A || f, se = {
|
|
5774
5774
|
// Set left if horizontal drag is enabled
|
|
5775
5775
|
x: (0, i.canDragX)(this) && q ? this.state.x : F.x,
|
|
5776
5776
|
// Set top if vertical drag is enabled
|
|
5777
5777
|
y: (0, i.canDragY)(this) && q ? this.state.y : F.y
|
|
5778
5778
|
};
|
|
5779
|
-
this.state.isElementSVG ? H = (0, s.createSVGTransform)(se, N) :
|
|
5779
|
+
this.state.isElementSVG ? H = (0, s.createSVGTransform)(se, N) : R = (0, s.createCSSTransform)(se, N);
|
|
5780
5780
|
const te = (0, c.clsx)(E.props.className || "", b, {
|
|
5781
5781
|
[u]: this.state.dragging,
|
|
5782
5782
|
[C]: this.state.dragged
|
|
@@ -5789,7 +5789,7 @@ function Oi() {
|
|
|
5789
5789
|
className: te,
|
|
5790
5790
|
style: {
|
|
5791
5791
|
...E.props.style,
|
|
5792
|
-
...
|
|
5792
|
+
...R
|
|
5793
5793
|
},
|
|
5794
5794
|
transform: H
|
|
5795
5795
|
}));
|
|
@@ -5981,9 +5981,9 @@ const Ni = /* @__PURE__ */ eo(Mi), Fi = ({ children: e, usePopover: n, ...r }) =
|
|
|
5981
5981
|
handle: ".w-handler-launcher-widget",
|
|
5982
5982
|
axis: "y",
|
|
5983
5983
|
onDrag: (A, N) => {
|
|
5984
|
-
const
|
|
5985
|
-
(
|
|
5986
|
-
...
|
|
5984
|
+
const O = Math.abs(N.x - y.current.x), _ = Math.abs(N.y - y.current.y);
|
|
5985
|
+
(O > 3 || _ > 3) && l(!0), c((R) => ({
|
|
5986
|
+
...R,
|
|
5987
5987
|
y: N.y
|
|
5988
5988
|
}));
|
|
5989
5989
|
},
|