widget-chatbot 2.0.8-alpha.2 → 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 +157 -155
- package/package.json +1 -1
|
@@ -196,9 +196,9 @@ function ro() {
|
|
|
196
196
|
return null;
|
|
197
197
|
}
|
|
198
198
|
var k = 0, U, I, re, ee, j, L, Z;
|
|
199
|
-
function
|
|
199
|
+
function V() {
|
|
200
200
|
}
|
|
201
|
-
|
|
201
|
+
V.__reactDisabledLog = !0;
|
|
202
202
|
function P() {
|
|
203
203
|
{
|
|
204
204
|
if (k === 0) {
|
|
@@ -206,7 +206,7 @@ function ro() {
|
|
|
206
206
|
var d = {
|
|
207
207
|
configurable: !0,
|
|
208
208
|
enumerable: !0,
|
|
209
|
-
value:
|
|
209
|
+
value: V,
|
|
210
210
|
writable: !0
|
|
211
211
|
};
|
|
212
212
|
Object.defineProperties(console, {
|
|
@@ -271,16 +271,16 @@ function ro() {
|
|
|
271
271
|
` + J + d;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
var F = !1,
|
|
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
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
|
}
|
|
@@ -324,18 +324,18 @@ function ro() {
|
|
|
324
324
|
}
|
|
325
325
|
} catch (Le) {
|
|
326
326
|
if (Le && Q && typeof Le.stack == "string") {
|
|
327
|
-
for (var
|
|
328
|
-
`),
|
|
329
|
-
`), ye =
|
|
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
330
|
be--;
|
|
331
331
|
for (; ye >= 1 && be >= 0; ye--, be--)
|
|
332
|
-
if (
|
|
332
|
+
if (se[ye] !== Ee[be]) {
|
|
333
333
|
if (ye !== 1 || be !== 1)
|
|
334
334
|
do
|
|
335
|
-
if (ye--, be--, be < 0 ||
|
|
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
340
|
while (ye >= 1 && be >= 0);
|
|
341
341
|
break;
|
|
@@ -345,12 +345,12 @@ function ro() {
|
|
|
345
345
|
F = !1, X.current = pe, te(), Error.prepareStackTrace = he;
|
|
346
346
|
}
|
|
347
347
|
var Je = d ? d.displayName || d.name : "", fn = Je ? q(Je) : "";
|
|
348
|
-
return typeof d == "function" &&
|
|
348
|
+
return typeof d == "function" && z.set(d, fn), fn;
|
|
349
349
|
}
|
|
350
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,7 +358,7 @@ 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
363
|
return q(d);
|
|
364
364
|
switch (d) {
|
|
@@ -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);
|
|
@@ -398,17 +398,17 @@ function ro() {
|
|
|
398
398
|
var pe = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
399
399
|
for (var ie in d)
|
|
400
400
|
if (pe(d, ie)) {
|
|
401
|
-
var
|
|
401
|
+
var se = void 0;
|
|
402
402
|
try {
|
|
403
403
|
if (typeof d[ie] != "function") {
|
|
404
|
-
var
|
|
405
|
-
throw
|
|
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
|
-
|
|
407
|
+
se = d[ie](R, ie, Q, H, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
408
408
|
} catch (ye) {
|
|
409
|
-
|
|
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
|
}
|
|
@@ -460,7 +460,7 @@ function ro() {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
var Sr = function(d, R, H, Q, he, pe, ie) {
|
|
463
|
-
var
|
|
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
|
|
@@ -471,27 +471,27 @@ function ro() {
|
|
|
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
483
|
value: Q
|
|
484
|
-
}), Object.defineProperty(
|
|
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
491
|
function wr(d, R, H, Q, he) {
|
|
492
492
|
{
|
|
493
|
-
var pe, ie = {},
|
|
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
496
|
Ke.call(R, pe) && !Pe.hasOwnProperty(pe) && (ie[pe] = R[pe]);
|
|
497
497
|
if (d && d.defaultProps) {
|
|
@@ -499,11 +499,11 @@ function ro() {
|
|
|
499
499
|
for (pe in ye)
|
|
500
500
|
ie[pe] === void 0 && (ie[pe] = ye[pe]);
|
|
501
501
|
}
|
|
502
|
-
if (
|
|
502
|
+
if (se || Ee) {
|
|
503
503
|
var be = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
504
|
-
|
|
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;
|
|
@@ -620,12 +620,12 @@ Check the top-level render call using <` + H + ">.");
|
|
|
620
620
|
{
|
|
621
621
|
var ie = D(d);
|
|
622
622
|
if (!ie) {
|
|
623
|
-
var
|
|
624
|
-
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (
|
|
625
|
-
var
|
|
626
|
-
|
|
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
627
|
var ye;
|
|
628
|
-
d === null ? ye = "null" : Array.isArray(d) ? ye = "array" : d !== void 0 && d.$$typeof === o ? (ye = "<" + (Y(d.type) || "Unknown") + " />",
|
|
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
630
|
var be = wr(d, R, H, he, pe);
|
|
631
631
|
if (be == null)
|
|
@@ -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"
|
|
@@ -1004,34 +1004,34 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
1004
1004
|
isFirstRenderHelpdesk: j,
|
|
1005
1005
|
setUserInputHide: L
|
|
1006
1006
|
} = de(), Z = (F) => {
|
|
1007
|
-
var
|
|
1008
|
-
const
|
|
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) ===
|
|
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
1013
|
...F,
|
|
1014
|
-
id:
|
|
1015
|
-
...
|
|
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
1020
|
}, 1750), W != null && W.current && clearTimeout(W == null ? void 0 : W.current), W.current = setTimeout(() => {
|
|
1021
1021
|
m(!0);
|
|
1022
1022
|
}, 2e3), $e();
|
|
1023
|
-
},
|
|
1024
|
-
var
|
|
1025
|
-
F && P({ msg: I == null ? void 0 : I.getStartedPayload }), (
|
|
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
1026
|
Y.current = ge, jt({ session_id: ge == null ? void 0 : ge.session_id });
|
|
1027
1027
|
}), (O = N.current) == null || O.on(ao, Z), (me = N.current) == null || me.on(co, (ge) => {
|
|
1028
|
-
const
|
|
1029
|
-
_e(
|
|
1030
|
-
}), (
|
|
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
1048
|
}), v || S(!0), ee(!1);
|
|
1049
1049
|
}, P = ({
|
|
1050
1050
|
msg: F,
|
|
1051
|
-
additionalConfig:
|
|
1052
|
-
isShowLoadingResponse:
|
|
1051
|
+
additionalConfig: z = {},
|
|
1052
|
+
isShowLoadingResponse: oe = !0
|
|
1053
1053
|
}) => {
|
|
1054
1054
|
var O;
|
|
1055
1055
|
(O = N.current) == null || O.emit(io, {
|
|
1056
1056
|
customData: { language: U == null ? void 0 : U.lang },
|
|
1057
1057
|
message: F,
|
|
1058
1058
|
session_id: Y == null ? void 0 : Y.current,
|
|
1059
|
-
...
|
|
1060
|
-
}),
|
|
1061
|
-
}, te = (F = !1) => {
|
|
1062
|
-
var
|
|
1063
|
-
N.current && ((
|
|
1064
|
-
const
|
|
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,25 +1072,27 @@ 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 =
|
|
1088
|
+
}), N.current = oe;
|
|
1087
1089
|
}, X = () => {
|
|
1088
1090
|
var F;
|
|
1089
1091
|
(!((F = N == null ? void 0 : N.current) != null && F.connected) || !v) && (te(), re(!1));
|
|
1090
1092
|
}, J = () => S(!1);
|
|
1091
1093
|
return fe(() => (re(!1), te(), window.addEventListener("online", X), window.addEventListener("offline", J), () => {
|
|
1092
|
-
var F,
|
|
1093
|
-
N.current && ((F = N.current) == null || F.off("connect",
|
|
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
1097
|
JSON.stringify(U || {}),
|
|
1096
1098
|
I == null ? void 0 : I.socketURL,
|
|
@@ -2084,10 +2086,10 @@ const $e = (e = ".w-wrapper-body") => {
|
|
|
2084
2086
|
return (re = I == null ? void 0 : I.map((ee) => {
|
|
2085
2087
|
var L;
|
|
2086
2088
|
if (_e(ee, "chats")) {
|
|
2087
|
-
const Z = (L = ee == null ? void 0 : ee.chats) == null ? void 0 : L.map((
|
|
2088
|
-
...
|
|
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) ? {
|
|
2090
|
+
...V,
|
|
2089
2091
|
feedback: x
|
|
2090
|
-
} :
|
|
2092
|
+
} : V);
|
|
2091
2093
|
return {
|
|
2092
2094
|
...ee,
|
|
2093
2095
|
chats: Z
|
|
@@ -2568,12 +2570,12 @@ const tt = [
|
|
|
2568
2570
|
c(L), o(!1), L === 0 && y({ msg: "cancel" });
|
|
2569
2571
|
}
|
|
2570
2572
|
})) == null || re.catch((ee) => {
|
|
2571
|
-
var L, Z,
|
|
2573
|
+
var L, Z, V, P, te;
|
|
2572
2574
|
const j = ee == null ? void 0 : ee.response;
|
|
2573
2575
|
if ((j == null ? void 0 : j.status) === 401) {
|
|
2574
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
|
-
), J = (te = (P = (
|
|
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
2581
|
if (X)
|
|
@@ -2944,9 +2946,9 @@ const tt = [
|
|
|
2944
2946
|
className: "w-notification-content"
|
|
2945
2947
|
});
|
|
2946
2948
|
}, D = () => {
|
|
2947
|
-
var
|
|
2949
|
+
var V, P, te, X, J;
|
|
2948
2950
|
_(!0);
|
|
2949
|
-
const k = new FormData(), U = a == null ? void 0 : a[(a == null ? void 0 : a.length) - 1], re = `${((
|
|
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}`;
|
|
2950
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({
|
|
2951
2953
|
apiType: "lc",
|
|
2952
2954
|
params: {
|
|
@@ -2954,15 +2956,15 @@ const tt = [
|
|
|
2954
2956
|
},
|
|
2955
2957
|
data: k
|
|
2956
2958
|
})) == null ? void 0 : te.then((q) => {
|
|
2957
|
-
var
|
|
2958
|
-
const F = (
|
|
2959
|
+
var oe, O, me;
|
|
2960
|
+
const F = (oe = q == null ? void 0 : q.data) == null ? void 0 : oe.DATA;
|
|
2959
2961
|
console.log("r", q, F);
|
|
2960
|
-
const
|
|
2961
|
-
|
|
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");
|
|
2962
2964
|
})) == null ? void 0 : X.catch((q) => {
|
|
2963
|
-
var
|
|
2965
|
+
var z, oe;
|
|
2964
2966
|
console.error("Upload error:", q);
|
|
2965
|
-
const F = ((
|
|
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";
|
|
2966
2968
|
M("error", F);
|
|
2967
2969
|
})) == null || J.finally(() => {
|
|
2968
2970
|
_(!1);
|
|
@@ -4548,17 +4550,17 @@ function ki() {
|
|
|
4548
4550
|
var me = O.$$typeof;
|
|
4549
4551
|
switch (me) {
|
|
4550
4552
|
case n:
|
|
4551
|
-
var
|
|
4552
|
-
switch (
|
|
4553
|
+
var Ce = O.type;
|
|
4554
|
+
switch (Ce) {
|
|
4553
4555
|
case a:
|
|
4554
4556
|
case f:
|
|
4555
4557
|
case o:
|
|
4556
4558
|
case s:
|
|
4557
4559
|
case l:
|
|
4558
4560
|
case h:
|
|
4559
|
-
return
|
|
4561
|
+
return Ce;
|
|
4560
4562
|
default:
|
|
4561
|
-
var ge =
|
|
4563
|
+
var ge = Ce && Ce.$$typeof;
|
|
4562
4564
|
switch (ge) {
|
|
4563
4565
|
case c:
|
|
4564
4566
|
case m:
|
|
@@ -4588,7 +4590,7 @@ function ki() {
|
|
|
4588
4590
|
function Z(O) {
|
|
4589
4591
|
return T(O) === i;
|
|
4590
4592
|
}
|
|
4591
|
-
function
|
|
4593
|
+
function V(O) {
|
|
4592
4594
|
return typeof O == "object" && O !== null && O.$$typeof === n;
|
|
4593
4595
|
}
|
|
4594
4596
|
function P(O) {
|
|
@@ -4609,13 +4611,13 @@ function ki() {
|
|
|
4609
4611
|
function F(O) {
|
|
4610
4612
|
return T(O) === s;
|
|
4611
4613
|
}
|
|
4612
|
-
function
|
|
4614
|
+
function z(O) {
|
|
4613
4615
|
return T(O) === l;
|
|
4614
4616
|
}
|
|
4615
|
-
function
|
|
4617
|
+
function oe(O) {
|
|
4616
4618
|
return T(O) === h;
|
|
4617
4619
|
}
|
|
4618
|
-
le.AsyncMode = p, le.ConcurrentMode = b, le.ContextConsumer = u, le.ContextProvider = C, le.Element = A, le.ForwardRef = M, le.Fragment = D, le.Lazy = W, le.Memo = N, le.Portal = Y, le.Profiler = k, le.StrictMode = U, le.Suspense = I, le.isAsyncMode = ee, le.isConcurrentMode = j, le.isContextConsumer = L, le.isContextProvider = Z, le.isElement =
|
|
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;
|
|
4619
4621
|
}()), le;
|
|
4620
4622
|
}
|
|
4621
4623
|
var jn;
|
|
@@ -4737,8 +4739,8 @@ function Ri() {
|
|
|
4737
4739
|
function S(j) {
|
|
4738
4740
|
if (process.env.NODE_ENV !== "production")
|
|
4739
4741
|
var L = {}, Z = 0;
|
|
4740
|
-
function
|
|
4741
|
-
if (q = q || g,
|
|
4742
|
+
function V(te, X, J, q, F, z, oe) {
|
|
4743
|
+
if (q = q || g, z = z || J, oe !== r) {
|
|
4742
4744
|
if (a) {
|
|
4743
4745
|
var O = new Error(
|
|
4744
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"
|
|
@@ -4748,22 +4750,22 @@ function Ri() {
|
|
|
4748
4750
|
var me = q + ":" + J;
|
|
4749
4751
|
!L[me] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
4750
4752
|
Z < 3 && (s(
|
|
4751
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
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."
|
|
4752
4754
|
), L[me] = !0, Z++);
|
|
4753
4755
|
}
|
|
4754
4756
|
}
|
|
4755
|
-
return X[J] == null ? te ? X[J] === null ? new v("The " + F + " `" +
|
|
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);
|
|
4756
4758
|
}
|
|
4757
|
-
var P =
|
|
4758
|
-
return P.isRequired =
|
|
4759
|
+
var P = V.bind(null, !1);
|
|
4760
|
+
return P.isRequired = V.bind(null, !0), P;
|
|
4759
4761
|
}
|
|
4760
4762
|
function E(j) {
|
|
4761
|
-
function L(Z,
|
|
4762
|
-
var q = Z[
|
|
4763
|
+
function L(Z, V, P, te, X, J) {
|
|
4764
|
+
var q = Z[V], F = U(q);
|
|
4763
4765
|
if (F !== j) {
|
|
4764
|
-
var
|
|
4766
|
+
var z = I(q);
|
|
4765
4767
|
return new v(
|
|
4766
|
-
"Invalid " + te + " `" + X + "` of type " + ("`" +
|
|
4768
|
+
"Invalid " + te + " `" + X + "` of type " + ("`" + z + "` supplied to `" + P + "`, expected ") + ("`" + j + "`."),
|
|
4767
4769
|
{ expectedType: j }
|
|
4768
4770
|
);
|
|
4769
4771
|
}
|
|
@@ -4775,49 +4777,49 @@ function Ri() {
|
|
|
4775
4777
|
return S(i);
|
|
4776
4778
|
}
|
|
4777
4779
|
function x(j) {
|
|
4778
|
-
function L(Z,
|
|
4780
|
+
function L(Z, V, P, te, X) {
|
|
4779
4781
|
if (typeof j != "function")
|
|
4780
4782
|
return new v("Property `" + X + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
4781
|
-
var J = Z[
|
|
4783
|
+
var J = Z[V];
|
|
4782
4784
|
if (!Array.isArray(J)) {
|
|
4783
4785
|
var q = U(J);
|
|
4784
4786
|
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected an array."));
|
|
4785
4787
|
}
|
|
4786
4788
|
for (var F = 0; F < J.length; F++) {
|
|
4787
|
-
var
|
|
4788
|
-
if (
|
|
4789
|
-
return
|
|
4789
|
+
var z = j(J, F, P, te, X + "[" + F + "]", r);
|
|
4790
|
+
if (z instanceof Error)
|
|
4791
|
+
return z;
|
|
4790
4792
|
}
|
|
4791
4793
|
return null;
|
|
4792
4794
|
}
|
|
4793
4795
|
return S(L);
|
|
4794
4796
|
}
|
|
4795
4797
|
function T() {
|
|
4796
|
-
function j(L, Z,
|
|
4798
|
+
function j(L, Z, V, P, te) {
|
|
4797
4799
|
var X = L[Z];
|
|
4798
4800
|
if (!c(X)) {
|
|
4799
4801
|
var J = U(X);
|
|
4800
|
-
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" +
|
|
4802
|
+
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected a single ReactElement."));
|
|
4801
4803
|
}
|
|
4802
4804
|
return null;
|
|
4803
4805
|
}
|
|
4804
4806
|
return S(j);
|
|
4805
4807
|
}
|
|
4806
4808
|
function p() {
|
|
4807
|
-
function j(L, Z,
|
|
4809
|
+
function j(L, Z, V, P, te) {
|
|
4808
4810
|
var X = L[Z];
|
|
4809
4811
|
if (!e.isValidElementType(X)) {
|
|
4810
4812
|
var J = U(X);
|
|
4811
|
-
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" +
|
|
4813
|
+
return new v("Invalid " + P + " `" + te + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected a single ReactElement type."));
|
|
4812
4814
|
}
|
|
4813
4815
|
return null;
|
|
4814
4816
|
}
|
|
4815
4817
|
return S(j);
|
|
4816
4818
|
}
|
|
4817
4819
|
function b(j) {
|
|
4818
|
-
function L(Z,
|
|
4819
|
-
if (!(Z[
|
|
4820
|
-
var J = j.name || g, q = ee(Z[
|
|
4820
|
+
function L(Z, V, P, te, X) {
|
|
4821
|
+
if (!(Z[V] instanceof j)) {
|
|
4822
|
+
var J = j.name || g, q = ee(Z[V]);
|
|
4821
4823
|
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected ") + ("instance of `" + J + "`."));
|
|
4822
4824
|
}
|
|
4823
4825
|
return null;
|
|
@@ -4829,11 +4831,11 @@ function Ri() {
|
|
|
4829
4831
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? s(
|
|
4830
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])."
|
|
4831
4833
|
) : s("Invalid argument supplied to oneOf, expected an array.")), i;
|
|
4832
|
-
function L(Z,
|
|
4833
|
-
for (var J = Z[
|
|
4834
|
+
function L(Z, V, P, te, X) {
|
|
4835
|
+
for (var J = Z[V], q = 0; q < j.length; q++)
|
|
4834
4836
|
if (_(J, j[q]))
|
|
4835
4837
|
return null;
|
|
4836
|
-
var F = JSON.stringify(j, function(
|
|
4838
|
+
var F = JSON.stringify(j, function(oe, O) {
|
|
4837
4839
|
var me = I(O);
|
|
4838
4840
|
return me === "symbol" ? String(O) : O;
|
|
4839
4841
|
});
|
|
@@ -4842,17 +4844,17 @@ function Ri() {
|
|
|
4842
4844
|
return S(L);
|
|
4843
4845
|
}
|
|
4844
4846
|
function C(j) {
|
|
4845
|
-
function L(Z,
|
|
4847
|
+
function L(Z, V, P, te, X) {
|
|
4846
4848
|
if (typeof j != "function")
|
|
4847
4849
|
return new v("Property `" + X + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
4848
|
-
var J = Z[
|
|
4850
|
+
var J = Z[V], q = U(J);
|
|
4849
4851
|
if (q !== "object")
|
|
4850
4852
|
return new v("Invalid " + te + " `" + X + "` of type " + ("`" + q + "` supplied to `" + P + "`, expected an object."));
|
|
4851
4853
|
for (var F in J)
|
|
4852
4854
|
if (o(J, F)) {
|
|
4853
|
-
var
|
|
4854
|
-
if (
|
|
4855
|
-
return
|
|
4855
|
+
var z = j(J, F, P, te, X + "." + F, r);
|
|
4856
|
+
if (z instanceof Error)
|
|
4857
|
+
return z;
|
|
4856
4858
|
}
|
|
4857
4859
|
return null;
|
|
4858
4860
|
}
|
|
@@ -4868,9 +4870,9 @@ function Ri() {
|
|
|
4868
4870
|
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(Z) + " at index " + L + "."
|
|
4869
4871
|
), i;
|
|
4870
4872
|
}
|
|
4871
|
-
function
|
|
4872
|
-
for (var F = [],
|
|
4873
|
-
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);
|
|
4874
4876
|
if (O == null)
|
|
4875
4877
|
return null;
|
|
4876
4878
|
O.data && o(O.data, "expectedType") && F.push(O.data.expectedType);
|
|
@@ -4878,52 +4880,52 @@ function Ri() {
|
|
|
4878
4880
|
var me = F.length > 0 ? ", expected one of type [" + F.join(", ") + "]" : "";
|
|
4879
4881
|
return new v("Invalid " + J + " `" + q + "` supplied to " + ("`" + X + "`" + me + "."));
|
|
4880
4882
|
}
|
|
4881
|
-
return S(
|
|
4883
|
+
return S(V);
|
|
4882
4884
|
}
|
|
4883
4885
|
function M() {
|
|
4884
|
-
function j(L, Z,
|
|
4885
|
-
return Y(L[Z]) ? null : new v("Invalid " + P + " `" + te + "` supplied to " + ("`" +
|
|
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."));
|
|
4886
4888
|
}
|
|
4887
4889
|
return S(j);
|
|
4888
4890
|
}
|
|
4889
|
-
function D(j, L, Z,
|
|
4891
|
+
function D(j, L, Z, V, P) {
|
|
4890
4892
|
return new v(
|
|
4891
|
-
(j || "React class") + ": " + L + " type `" + Z + "." +
|
|
4893
|
+
(j || "React class") + ": " + L + " type `" + Z + "." + V + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
4892
4894
|
);
|
|
4893
4895
|
}
|
|
4894
4896
|
function W(j) {
|
|
4895
|
-
function L(Z,
|
|
4896
|
-
var J = Z[
|
|
4897
|
+
function L(Z, V, P, te, X) {
|
|
4898
|
+
var J = Z[V], q = U(J);
|
|
4897
4899
|
if (q !== "object")
|
|
4898
4900
|
return new v("Invalid " + te + " `" + X + "` of type `" + q + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4899
4901
|
for (var F in j) {
|
|
4900
|
-
var
|
|
4901
|
-
if (typeof
|
|
4902
|
-
return D(P, te, X, F, I(
|
|
4903
|
-
var
|
|
4904
|
-
if (
|
|
4905
|
-
return
|
|
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;
|
|
4906
4908
|
}
|
|
4907
4909
|
return null;
|
|
4908
4910
|
}
|
|
4909
4911
|
return S(L);
|
|
4910
4912
|
}
|
|
4911
4913
|
function N(j) {
|
|
4912
|
-
function L(Z,
|
|
4913
|
-
var J = Z[
|
|
4914
|
+
function L(Z, V, P, te, X) {
|
|
4915
|
+
var J = Z[V], q = U(J);
|
|
4914
4916
|
if (q !== "object")
|
|
4915
4917
|
return new v("Invalid " + te + " `" + X + "` of type `" + q + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
4916
|
-
var F = n({}, Z[
|
|
4917
|
-
for (var
|
|
4918
|
-
var
|
|
4919
|
-
if (o(j,
|
|
4920
|
-
return D(P, te, X,
|
|
4921
|
-
if (!
|
|
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)
|
|
4922
4924
|
return new v(
|
|
4923
|
-
"Invalid " + te + " `" + X + "` key `" +
|
|
4925
|
+
"Invalid " + te + " `" + X + "` key `" + z + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify(Z[V], null, " ") + `
|
|
4924
4926
|
Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
4925
4927
|
);
|
|
4926
|
-
var O =
|
|
4928
|
+
var O = oe(J, z, P, te, X + "." + z, r);
|
|
4927
4929
|
if (O)
|
|
4928
4930
|
return O;
|
|
4929
4931
|
}
|
|
@@ -4946,14 +4948,14 @@ Valid keys: ` + JSON.stringify(Object.keys(j), null, " ")
|
|
|
4946
4948
|
return !0;
|
|
4947
4949
|
var L = h(j);
|
|
4948
4950
|
if (L) {
|
|
4949
|
-
var Z = L.call(j),
|
|
4951
|
+
var Z = L.call(j), V;
|
|
4950
4952
|
if (L !== j.entries) {
|
|
4951
|
-
for (; !(
|
|
4952
|
-
if (!Y(
|
|
4953
|
+
for (; !(V = Z.next()).done; )
|
|
4954
|
+
if (!Y(V.value))
|
|
4953
4955
|
return !1;
|
|
4954
4956
|
} else
|
|
4955
|
-
for (; !(
|
|
4956
|
-
var P =
|
|
4957
|
+
for (; !(V = Z.next()).done; ) {
|
|
4958
|
+
var P = V.value;
|
|
4957
4959
|
if (P && !Y(P[1]))
|
|
4958
4960
|
return !1;
|
|
4959
4961
|
}
|
|
@@ -6128,7 +6130,7 @@ const $i = /* @__PURE__ */ to(Ii), Ui = ({ children: e, usePopover: n, ...r }) =
|
|
|
6128
6130
|
strong: !0,
|
|
6129
6131
|
className: "w-reconnect-manual",
|
|
6130
6132
|
onClick: () => {
|
|
6131
|
-
i(!0);
|
|
6133
|
+
i(!0, !0);
|
|
6132
6134
|
},
|
|
6133
6135
|
children: r
|
|
6134
6136
|
}
|