@foris/avocado-not-front 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import V from "axios";
|
|
2
2
|
import { create as Ue } from "zustand";
|
|
3
|
-
import Ve, { useEffect as J, useMemo as O, useState as
|
|
3
|
+
import Ve, { useEffect as J, useMemo as O, useState as q, Fragment as $, useCallback as D, useRef as Je, cloneElement as He } from "react";
|
|
4
4
|
import { Heading as Ae, Text as Xe, ThemeStore as ue, Breadcrumbs as We, Button as Qe, CardNotification as he, Checkbox as Ye, PreviewerMarkdown as Ze, Divider as Fe, SkeletonBase as Oe, Modal as Pe, Pill as de, RoundButton as et, SelectPagination as tt, Select as nt, Switch as rt, Table as st, Pager as at, TextField as ot, toast as W, Accordion as ct, Drawer as it, Loading as lt, Toaster as dt } from "@foris/avocado-suite";
|
|
5
5
|
import { SummaryCard as _t, PromptCodeEditor as ut } from "@foris/ai-agent";
|
|
6
6
|
import ht from "@uiw/react-codemirror";
|
|
@@ -9,25 +9,25 @@ import { markdown as ft } from "@codemirror/lang-markdown";
|
|
|
9
9
|
import { sql as yt } from "@codemirror/lang-sql";
|
|
10
10
|
import { yaml as mt } from "@codemirror/lang-yaml";
|
|
11
11
|
import B from "jsonpath";
|
|
12
|
-
import { Legend as xt, Tooltip as gt, XAxis as pt, YAxis as bt, ResponsiveContainer as te, AreaChart as jt, CartesianGrid as fe, Area as wt, BarChart as Ct, Bar as Nt, LineChart as vt, Line as Et, PieChart as kt, Pie as
|
|
13
|
-
const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
14
|
-
const
|
|
12
|
+
import { Legend as xt, Tooltip as gt, XAxis as pt, YAxis as bt, ResponsiveContainer as te, AreaChart as jt, CartesianGrid as fe, Area as wt, BarChart as Ct, Bar as Nt, LineChart as vt, Line as Et, PieChart as kt, Pie as qt, Cell as St } from "recharts";
|
|
13
|
+
const v = Ue(() => ({})), oe = (e, t, s, r) => {
|
|
14
|
+
const l = s == null ? void 0 : s.hash, o = r && Object.keys(r).length > 0 ? { ...r } : {};
|
|
15
15
|
v.setState((i) => {
|
|
16
|
-
var
|
|
16
|
+
var n;
|
|
17
17
|
return {
|
|
18
18
|
...i,
|
|
19
19
|
[e]: {
|
|
20
20
|
...i[e],
|
|
21
21
|
apiConfig: t,
|
|
22
|
-
currentPageId:
|
|
22
|
+
currentPageId: l,
|
|
23
23
|
isLoading: !1,
|
|
24
24
|
isModalOpen: !0,
|
|
25
25
|
isDrawerOpen: !1,
|
|
26
|
-
entries:
|
|
26
|
+
entries: o,
|
|
27
27
|
overlay: null,
|
|
28
28
|
pages: {
|
|
29
|
-
...(
|
|
30
|
-
[
|
|
29
|
+
...(n = i[e]) == null ? void 0 : n.pages,
|
|
30
|
+
[l]: {
|
|
31
31
|
page: s
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -38,26 +38,26 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
38
38
|
const r = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
|
|
39
39
|
return t.length === 0 ? e : Object.fromEntries(
|
|
40
40
|
Object.entries(r).filter(
|
|
41
|
-
([
|
|
41
|
+
([l]) => !t.includes(l)
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
|
-
}, At = (e, t, s, r,
|
|
44
|
+
}, At = (e, t, s, r, l) => {
|
|
45
45
|
sessionStorage.setItem("sessionId", s), v.setState((o) => {
|
|
46
|
-
const
|
|
46
|
+
const i = o[e] ?? {}, n = i.entries ?? {}, d = Te(
|
|
47
47
|
n,
|
|
48
48
|
r,
|
|
49
|
-
|
|
49
|
+
l
|
|
50
50
|
);
|
|
51
51
|
return {
|
|
52
52
|
...o,
|
|
53
53
|
[e]: {
|
|
54
|
-
...
|
|
54
|
+
...i,
|
|
55
55
|
currentPageId: t.hash,
|
|
56
56
|
entries: d,
|
|
57
57
|
isLoading: !1,
|
|
58
58
|
overlay: null,
|
|
59
59
|
pages: {
|
|
60
|
-
...
|
|
60
|
+
...i.pages,
|
|
61
61
|
[t.hash]: {
|
|
62
62
|
page: { ...t }
|
|
63
63
|
}
|
|
@@ -66,17 +66,17 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
66
66
|
};
|
|
67
67
|
});
|
|
68
68
|
}, Ot = (e, t, s, r) => {
|
|
69
|
-
v.setState((
|
|
69
|
+
v.setState((l) => {
|
|
70
70
|
var a;
|
|
71
|
-
const o =
|
|
72
|
-
|
|
71
|
+
const o = l[e] ?? {}, i = o.entries ?? {}, n = Te(
|
|
72
|
+
i,
|
|
73
73
|
s,
|
|
74
74
|
r
|
|
75
75
|
), d = (a = t.components) == null ? void 0 : a.some(
|
|
76
76
|
(u) => u.component === "drawer"
|
|
77
77
|
);
|
|
78
78
|
return {
|
|
79
|
-
...
|
|
79
|
+
...l,
|
|
80
80
|
[e]: {
|
|
81
81
|
...o,
|
|
82
82
|
entries: n,
|
|
@@ -98,23 +98,23 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
98
98
|
}, Tt = (e) => {
|
|
99
99
|
var s;
|
|
100
100
|
return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
|
|
101
|
-
},
|
|
101
|
+
}, S = (e, t) => {
|
|
102
102
|
const {
|
|
103
103
|
content: s,
|
|
104
104
|
sessionId: r,
|
|
105
|
-
deprecatedStateKeys:
|
|
106
|
-
sessionState: o
|
|
105
|
+
deprecatedStateKeys: l = [],
|
|
106
|
+
sessionState: o
|
|
107
107
|
} = t;
|
|
108
108
|
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? At(
|
|
109
109
|
e,
|
|
110
110
|
s,
|
|
111
111
|
r,
|
|
112
|
-
|
|
112
|
+
l,
|
|
113
113
|
o
|
|
114
114
|
) : Ot(
|
|
115
115
|
e,
|
|
116
116
|
s,
|
|
117
|
-
|
|
117
|
+
l,
|
|
118
118
|
o
|
|
119
119
|
));
|
|
120
120
|
}, L = (e, t) => {
|
|
@@ -177,12 +177,12 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
|
|
|
177
177
|
e ? s(e) : t(void 0);
|
|
178
178
|
}), P = [];
|
|
179
179
|
}, Rt = async (e) => {
|
|
180
|
-
var r,
|
|
180
|
+
var r, l;
|
|
181
181
|
const t = e == null ? void 0 : e.config;
|
|
182
182
|
if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
|
|
183
183
|
const o = $t(t);
|
|
184
184
|
if (o) {
|
|
185
|
-
const n = (
|
|
185
|
+
const n = (l = v.getState()[o]) == null ? void 0 : l.apiConfig;
|
|
186
186
|
if (!n)
|
|
187
187
|
return Promise.reject(e);
|
|
188
188
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
@@ -250,8 +250,8 @@ function Bt() {
|
|
|
250
250
|
if (Ne)
|
|
251
251
|
return Q;
|
|
252
252
|
Ne = 1;
|
|
253
|
-
var e = Ve, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty,
|
|
254
|
-
function
|
|
253
|
+
var e = Ve, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
254
|
+
function i(n, d, a) {
|
|
255
255
|
var u, f = {}, _ = null, h = null;
|
|
256
256
|
a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
257
257
|
for (u in d)
|
|
@@ -259,9 +259,9 @@ function Bt() {
|
|
|
259
259
|
if (n && n.defaultProps)
|
|
260
260
|
for (u in d = n.defaultProps, d)
|
|
261
261
|
f[u] === void 0 && (f[u] = d[u]);
|
|
262
|
-
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner:
|
|
262
|
+
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: l.current };
|
|
263
263
|
}
|
|
264
|
-
return Q.Fragment = s, Q.jsx =
|
|
264
|
+
return Q.Fragment = s, Q.jsx = i, Q.jsxs = i, Q;
|
|
265
265
|
}
|
|
266
266
|
$e.exports = Bt();
|
|
267
267
|
var c = $e.exports;
|
|
@@ -292,10 +292,10 @@ const It = (e) => {
|
|
|
292
292
|
method: e.dataSource.method,
|
|
293
293
|
headers: e.dataSource.headers,
|
|
294
294
|
body: t == null ? void 0 : t.data
|
|
295
|
-
}, r = e.locale ?? "en",
|
|
296
|
-
var
|
|
295
|
+
}, r = e.locale ?? "en", l = O(() => {
|
|
296
|
+
var i, n, d;
|
|
297
297
|
const o = {
|
|
298
|
-
title: (
|
|
298
|
+
title: (i = e == null ? void 0 : e.translations) == null ? void 0 : i.title,
|
|
299
299
|
loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
|
|
300
300
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
301
301
|
};
|
|
@@ -308,21 +308,21 @@ const It = (e) => {
|
|
|
308
308
|
{
|
|
309
309
|
dataSource: s,
|
|
310
310
|
locale: r,
|
|
311
|
-
translations:
|
|
311
|
+
translations: l
|
|
312
312
|
}
|
|
313
313
|
) });
|
|
314
314
|
}, M = (e, t) => {
|
|
315
315
|
const s = v((r) => {
|
|
316
|
-
var
|
|
317
|
-
return ((
|
|
316
|
+
var l;
|
|
317
|
+
return ((l = r[e]) == null ? void 0 : l.entries) || {};
|
|
318
318
|
});
|
|
319
319
|
return O(() => {
|
|
320
320
|
const r = {
|
|
321
321
|
disabled: !1
|
|
322
322
|
};
|
|
323
|
-
return !t || t.length === 0 || t.forEach((
|
|
324
|
-
const o = s[
|
|
325
|
-
|
|
323
|
+
return !t || t.length === 0 || t.forEach((l) => {
|
|
324
|
+
const o = s[l.key], i = o == null || o === "" || Array.isArray(o) && o.length === 0;
|
|
325
|
+
l.when === "empty" && i && l.actions.forEach((d) => {
|
|
326
326
|
r[d] = !0;
|
|
327
327
|
});
|
|
328
328
|
}), r;
|
|
@@ -334,19 +334,19 @@ const It = (e) => {
|
|
|
334
334
|
userFlow: t,
|
|
335
335
|
responseKey: s,
|
|
336
336
|
codeBlockValue: r,
|
|
337
|
-
language:
|
|
337
|
+
language: l,
|
|
338
338
|
disabled: o,
|
|
339
|
-
dependencies:
|
|
339
|
+
dependencies: i,
|
|
340
340
|
dataSource: n,
|
|
341
341
|
inputLabel: d,
|
|
342
342
|
inputPlaceholder: a,
|
|
343
343
|
codeBlockLabel: u
|
|
344
|
-
} = e, f = ue.useThemeStore((b) => b.theme.mode), [_, h] =
|
|
344
|
+
} = e, f = ue.useThemeStore((b) => b.theme.mode), [_, h] = q(
|
|
345
345
|
r || ""
|
|
346
346
|
), { disabled: j } = M(
|
|
347
347
|
t,
|
|
348
|
-
|
|
349
|
-
), y = o ?? j, x =
|
|
348
|
+
i
|
|
349
|
+
), y = o ?? j, x = l ?? "json", m = {
|
|
350
350
|
url: (n == null ? void 0 : n.url) || "",
|
|
351
351
|
method: (n == null ? void 0 : n.method) || "post",
|
|
352
352
|
headers: n == null ? void 0 : n.headers,
|
|
@@ -389,24 +389,24 @@ const It = (e) => {
|
|
|
389
389
|
return { "content-type": "application/json", Authorization: e };
|
|
390
390
|
}
|
|
391
391
|
return e;
|
|
392
|
-
}, F = () => new AbortController(), Yt = (e, t = {}, s = {}, r = !1,
|
|
392
|
+
}, F = () => new AbortController(), Yt = (e, t = {}, s = {}, r = !1, l) => {
|
|
393
393
|
const o = F();
|
|
394
394
|
r && o.abort();
|
|
395
|
-
const
|
|
395
|
+
const i = X(t);
|
|
396
396
|
return {
|
|
397
397
|
call: V.get(e, {
|
|
398
398
|
headers: {
|
|
399
|
-
...
|
|
399
|
+
...i
|
|
400
400
|
},
|
|
401
401
|
params: s,
|
|
402
402
|
signal: o.signal,
|
|
403
|
-
_userFlow:
|
|
403
|
+
_userFlow: l
|
|
404
404
|
}),
|
|
405
405
|
controller: o
|
|
406
406
|
};
|
|
407
|
-
}, _e = (e, t = {}, s = {}, r = {},
|
|
408
|
-
const
|
|
409
|
-
|
|
407
|
+
}, _e = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
408
|
+
const i = F();
|
|
409
|
+
l && i.abort();
|
|
410
410
|
const n = X(t);
|
|
411
411
|
return {
|
|
412
412
|
call: V.post(e, s, {
|
|
@@ -414,14 +414,14 @@ const It = (e) => {
|
|
|
414
414
|
...n
|
|
415
415
|
},
|
|
416
416
|
params: r,
|
|
417
|
-
signal:
|
|
417
|
+
signal: i.signal,
|
|
418
418
|
_userFlow: o
|
|
419
419
|
}),
|
|
420
|
-
controller:
|
|
420
|
+
controller: i
|
|
421
421
|
};
|
|
422
|
-
}, Zt = (e, t = {}, s = {}, r = {},
|
|
423
|
-
const
|
|
424
|
-
|
|
422
|
+
}, Zt = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
423
|
+
const i = F();
|
|
424
|
+
l && i.abort();
|
|
425
425
|
const n = X(t);
|
|
426
426
|
return {
|
|
427
427
|
call: V.put(e, s, {
|
|
@@ -429,14 +429,14 @@ const It = (e) => {
|
|
|
429
429
|
...n
|
|
430
430
|
},
|
|
431
431
|
params: r,
|
|
432
|
-
signal:
|
|
432
|
+
signal: i.signal,
|
|
433
433
|
_userFlow: o
|
|
434
434
|
}),
|
|
435
|
-
controller:
|
|
435
|
+
controller: i
|
|
436
436
|
};
|
|
437
|
-
}, Ft = (e, t = {}, s = {}, r = {},
|
|
438
|
-
const
|
|
439
|
-
|
|
437
|
+
}, Ft = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
438
|
+
const i = F();
|
|
439
|
+
l && i.abort();
|
|
440
440
|
const n = X(t);
|
|
441
441
|
return {
|
|
442
442
|
call: V.patch(e, s, {
|
|
@@ -444,14 +444,14 @@ const It = (e) => {
|
|
|
444
444
|
...n
|
|
445
445
|
},
|
|
446
446
|
params: r,
|
|
447
|
-
signal:
|
|
447
|
+
signal: i.signal,
|
|
448
448
|
_userFlow: o
|
|
449
449
|
}),
|
|
450
|
-
controller:
|
|
450
|
+
controller: i
|
|
451
451
|
};
|
|
452
|
-
}, Pt = (e, t = {}, s = {}, r = {},
|
|
453
|
-
const
|
|
454
|
-
|
|
452
|
+
}, Pt = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
453
|
+
const i = F();
|
|
454
|
+
l && i.abort();
|
|
455
455
|
const n = X(t);
|
|
456
456
|
return {
|
|
457
457
|
call: V.delete(e, {
|
|
@@ -460,34 +460,34 @@ const It = (e) => {
|
|
|
460
460
|
},
|
|
461
461
|
data: s,
|
|
462
462
|
params: r,
|
|
463
|
-
signal:
|
|
463
|
+
signal: i.signal,
|
|
464
464
|
_userFlow: o
|
|
465
465
|
}),
|
|
466
|
-
controller:
|
|
466
|
+
controller: i
|
|
467
467
|
};
|
|
468
468
|
}, Re = () => {
|
|
469
469
|
let e;
|
|
470
470
|
return { callEndpoint: async (r) => {
|
|
471
471
|
r.controller && (e = r.controller);
|
|
472
|
-
let
|
|
472
|
+
let l = {};
|
|
473
473
|
try {
|
|
474
|
-
|
|
474
|
+
l = await r.call;
|
|
475
475
|
} catch (o) {
|
|
476
476
|
throw o;
|
|
477
477
|
}
|
|
478
|
-
return
|
|
478
|
+
return l;
|
|
479
479
|
}, cancelEndpoint: () => {
|
|
480
480
|
e && e.abort();
|
|
481
481
|
} };
|
|
482
|
-
}, De = async (e, t, s = "", r = {},
|
|
482
|
+
}, De = async (e, t, s = "", r = {}, l = {}) => {
|
|
483
483
|
try {
|
|
484
|
-
const { callEndpoint: o } = Re(), { api:
|
|
484
|
+
const { callEndpoint: o } = Re(), { api: i, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
|
|
485
485
|
s && a.append("hash_code", s), d && a.append("sessionId", d);
|
|
486
|
-
const u = `${
|
|
486
|
+
const u = `${i}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = _e(
|
|
487
487
|
u,
|
|
488
488
|
f,
|
|
489
489
|
r,
|
|
490
|
-
|
|
490
|
+
l,
|
|
491
491
|
!1,
|
|
492
492
|
t
|
|
493
493
|
);
|
|
@@ -527,7 +527,7 @@ const It = (e) => {
|
|
|
527
527
|
default:
|
|
528
528
|
return Yt(u, f, h, !1, d);
|
|
529
529
|
}
|
|
530
|
-
},
|
|
530
|
+
}, l = (n, d) => {
|
|
531
531
|
const { url: a, headers: u } = n, f = {
|
|
532
532
|
query: n == null ? void 0 : n.query,
|
|
533
533
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
@@ -557,7 +557,7 @@ const It = (e) => {
|
|
|
557
557
|
_ = r(n, d);
|
|
558
558
|
break;
|
|
559
559
|
case "graphql":
|
|
560
|
-
_ =
|
|
560
|
+
_ = l(n, d);
|
|
561
561
|
break;
|
|
562
562
|
default:
|
|
563
563
|
throw new Error("[fetchDataSource] Unsupported data source type");
|
|
@@ -603,11 +603,11 @@ const It = (e) => {
|
|
|
603
603
|
items: t,
|
|
604
604
|
responseKey: s
|
|
605
605
|
}) => {
|
|
606
|
-
const { getNextUI: r } = I(),
|
|
607
|
-
async ({ actionType:
|
|
606
|
+
const { getNextUI: r } = I(), l = D(
|
|
607
|
+
async ({ actionType: i, hashCode: n, redirectUrl: d }) => {
|
|
608
608
|
var a;
|
|
609
609
|
try {
|
|
610
|
-
switch (
|
|
610
|
+
switch (i) {
|
|
611
611
|
case "GO_TO_NEXT_UI":
|
|
612
612
|
const u = await r(
|
|
613
613
|
e,
|
|
@@ -615,13 +615,13 @@ const It = (e) => {
|
|
|
615
615
|
{ ...(a = v.getState()[e]) == null ? void 0 : a.entries },
|
|
616
616
|
s
|
|
617
617
|
);
|
|
618
|
-
u != null && u.data &&
|
|
618
|
+
u != null && u.data && S(e, u == null ? void 0 : u.data);
|
|
619
619
|
break;
|
|
620
620
|
case "REDIRECT":
|
|
621
621
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
622
622
|
break;
|
|
623
623
|
default:
|
|
624
|
-
console.warn(`Unhandled actionType: ${
|
|
624
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
} catch (u) {
|
|
@@ -629,9 +629,9 @@ const It = (e) => {
|
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
[]
|
|
632
|
-
), o = O(() => t == null ? void 0 : t.map((
|
|
633
|
-
title:
|
|
634
|
-
component: /* @__PURE__ */ c.jsx("div", { onClick: () => i
|
|
632
|
+
), o = O(() => t == null ? void 0 : t.map((i) => ({
|
|
633
|
+
title: i == null ? void 0 : i.title,
|
|
634
|
+
component: /* @__PURE__ */ c.jsx("div", { onClick: () => l(i) })
|
|
635
635
|
})), []);
|
|
636
636
|
return /* @__PURE__ */ c.jsx(We, { items: o });
|
|
637
637
|
}, tn = (e) => {
|
|
@@ -639,9 +639,9 @@ const It = (e) => {
|
|
|
639
639
|
userFlow: t,
|
|
640
640
|
pageId: s,
|
|
641
641
|
responseKey: r,
|
|
642
|
-
actionType:
|
|
642
|
+
actionType: l,
|
|
643
643
|
label: o,
|
|
644
|
-
content:
|
|
644
|
+
content: i,
|
|
645
645
|
dataSource: n,
|
|
646
646
|
redirectUrl: d,
|
|
647
647
|
dependencies: a,
|
|
@@ -652,7 +652,7 @@ const It = (e) => {
|
|
|
652
652
|
a
|
|
653
653
|
), x = {
|
|
654
654
|
...f,
|
|
655
|
-
children:
|
|
655
|
+
children: i ?? o
|
|
656
656
|
}, m = (x == null ? void 0 : x.disabled) ?? y, g = D(async () => {
|
|
657
657
|
var b, N, p;
|
|
658
658
|
try {
|
|
@@ -660,7 +660,7 @@ const It = (e) => {
|
|
|
660
660
|
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
661
661
|
[r]: { status: 200 }
|
|
662
662
|
};
|
|
663
|
-
switch (L(t, C),
|
|
663
|
+
switch (L(t, C), l) {
|
|
664
664
|
case "CLOSE_MODAL":
|
|
665
665
|
me(t, !1);
|
|
666
666
|
break;
|
|
@@ -677,7 +677,7 @@ const It = (e) => {
|
|
|
677
677
|
C,
|
|
678
678
|
r
|
|
679
679
|
);
|
|
680
|
-
w != null && w.data &&
|
|
680
|
+
w != null && w.data && S(t, w == null ? void 0 : w.data);
|
|
681
681
|
break;
|
|
682
682
|
}
|
|
683
683
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -688,7 +688,7 @@ const It = (e) => {
|
|
|
688
688
|
r,
|
|
689
689
|
n
|
|
690
690
|
);
|
|
691
|
-
w != null && w.data &&
|
|
691
|
+
w != null && w.data && S(t, w == null ? void 0 : w.data);
|
|
692
692
|
break;
|
|
693
693
|
}
|
|
694
694
|
case "GET_DATA_SOURCE": {
|
|
@@ -719,20 +719,20 @@ const It = (e) => {
|
|
|
719
719
|
K,
|
|
720
720
|
r
|
|
721
721
|
);
|
|
722
|
-
G != null && G.data &&
|
|
722
|
+
G != null && G.data && S(t, G == null ? void 0 : G.data);
|
|
723
723
|
break;
|
|
724
724
|
}
|
|
725
725
|
case "REDIRECT":
|
|
726
726
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
727
727
|
break;
|
|
728
728
|
default:
|
|
729
|
-
console.warn(`Unhandled actionType: ${
|
|
729
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
730
730
|
break;
|
|
731
731
|
}
|
|
732
732
|
} catch (C) {
|
|
733
733
|
alert(JSON.stringify(C));
|
|
734
734
|
}
|
|
735
|
-
}, [
|
|
735
|
+
}, [l, n, s, r, t]);
|
|
736
736
|
return /* @__PURE__ */ c.jsx(
|
|
737
737
|
Qe,
|
|
738
738
|
{
|
|
@@ -744,14 +744,14 @@ const It = (e) => {
|
|
|
744
744
|
}, nn = "_cardNotificationNotFront_t7pln_1", rn = {
|
|
745
745
|
cardNotificationNotFront: nn
|
|
746
746
|
}, sn = (e) => {
|
|
747
|
-
const { content: t, description: s, ...r } = e,
|
|
747
|
+
const { content: t, description: s, ...r } = e, l = {
|
|
748
748
|
...r,
|
|
749
749
|
children: t ?? s
|
|
750
750
|
};
|
|
751
751
|
return /* @__PURE__ */ c.jsx(
|
|
752
752
|
he,
|
|
753
753
|
{
|
|
754
|
-
...
|
|
754
|
+
...l,
|
|
755
755
|
className: rn.cardNotificationNotFront
|
|
756
756
|
}
|
|
757
757
|
);
|
|
@@ -760,15 +760,15 @@ const It = (e) => {
|
|
|
760
760
|
userFlow: t,
|
|
761
761
|
pageId: s,
|
|
762
762
|
responseKey: r,
|
|
763
|
-
actionType:
|
|
763
|
+
actionType: l,
|
|
764
764
|
label: o,
|
|
765
|
-
value:
|
|
765
|
+
value: i,
|
|
766
766
|
required: n,
|
|
767
767
|
dependencies: d,
|
|
768
768
|
...a
|
|
769
769
|
} = e, u = {
|
|
770
770
|
...a
|
|
771
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
771
|
+
}, { getNextUI: f } = I(), [_, h] = q(i || !1), { disabled: j } = M(
|
|
772
772
|
t,
|
|
773
773
|
d
|
|
774
774
|
), y = O(() => n && o ? `${o} *` : o ?? "", [o, n]), x = D(async () => {
|
|
@@ -780,7 +780,7 @@ const It = (e) => {
|
|
|
780
780
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
781
781
|
[r]: b
|
|
782
782
|
};
|
|
783
|
-
switch (L(t, N),
|
|
783
|
+
switch (L(t, N), l) {
|
|
784
784
|
case "GO_TO_NEXT_UI":
|
|
785
785
|
const p = await f(
|
|
786
786
|
t,
|
|
@@ -788,16 +788,16 @@ const It = (e) => {
|
|
|
788
788
|
N,
|
|
789
789
|
r
|
|
790
790
|
);
|
|
791
|
-
p != null && p.data &&
|
|
791
|
+
p != null && p.data && S(t, p == null ? void 0 : p.data);
|
|
792
792
|
break;
|
|
793
793
|
default:
|
|
794
|
-
console.warn(`Unhandled actionType: ${
|
|
794
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
795
795
|
break;
|
|
796
796
|
}
|
|
797
797
|
} catch (b) {
|
|
798
798
|
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
799
799
|
}
|
|
800
|
-
}, [t, s, r,
|
|
800
|
+
}, [t, s, r, l, _]), m = (u == null ? void 0 : u.disabled) ?? j;
|
|
801
801
|
return /* @__PURE__ */ c.jsx(
|
|
802
802
|
Ye,
|
|
803
803
|
{
|
|
@@ -821,14 +821,14 @@ const It = (e) => {
|
|
|
821
821
|
userFlow: t,
|
|
822
822
|
responseKey: s,
|
|
823
823
|
label: r,
|
|
824
|
-
language:
|
|
824
|
+
language: l,
|
|
825
825
|
placeholder: o,
|
|
826
|
-
value:
|
|
826
|
+
value: i,
|
|
827
827
|
required: n,
|
|
828
828
|
dependencies: d,
|
|
829
829
|
disabled: a,
|
|
830
830
|
showPreview: u
|
|
831
|
-
} = e, [f, _] =
|
|
831
|
+
} = e, [f, _] = q(i ?? ""), h = ue.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
|
|
832
832
|
t,
|
|
833
833
|
d
|
|
834
834
|
), y = a ?? j, x = {
|
|
@@ -853,13 +853,13 @@ const It = (e) => {
|
|
|
853
853
|
value: f,
|
|
854
854
|
height: "400px",
|
|
855
855
|
placeholder: o,
|
|
856
|
-
extensions: [x[
|
|
856
|
+
extensions: [x[l] ?? be()],
|
|
857
857
|
onChange: (b) => g(b),
|
|
858
858
|
theme: h,
|
|
859
859
|
editable: !y
|
|
860
860
|
}
|
|
861
861
|
),
|
|
862
|
-
|
|
862
|
+
l == "markdown" && u && /* @__PURE__ */ c.jsx(Ze, { className: Y.preview, children: f })
|
|
863
863
|
] })
|
|
864
864
|
] });
|
|
865
865
|
};
|
|
@@ -873,18 +873,18 @@ var Le = { exports: {} };
|
|
|
873
873
|
(function() {
|
|
874
874
|
var t = {}.hasOwnProperty;
|
|
875
875
|
function s() {
|
|
876
|
-
for (var r = [],
|
|
877
|
-
var o = arguments[
|
|
876
|
+
for (var r = [], l = 0; l < arguments.length; l++) {
|
|
877
|
+
var o = arguments[l];
|
|
878
878
|
if (o) {
|
|
879
|
-
var
|
|
880
|
-
if (
|
|
879
|
+
var i = typeof o;
|
|
880
|
+
if (i === "string" || i === "number")
|
|
881
881
|
r.push(o);
|
|
882
882
|
else if (Array.isArray(o)) {
|
|
883
883
|
if (o.length) {
|
|
884
884
|
var n = s.apply(null, o);
|
|
885
885
|
n && r.push(n);
|
|
886
886
|
}
|
|
887
|
-
} else if (
|
|
887
|
+
} else if (i === "object") {
|
|
888
888
|
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
889
889
|
r.push(o.toString());
|
|
890
890
|
continue;
|
|
@@ -904,32 +904,32 @@ const ee = /* @__PURE__ */ Lt(hn);
|
|
|
904
904
|
const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
905
905
|
dividerNotFront: fn
|
|
906
906
|
}, mn = (e) => /* @__PURE__ */ c.jsx(Fe, { ...e, className: yn.dividerNotFront }), xn = (e, t, s) => {
|
|
907
|
-
const { url: r, paginationKeys:
|
|
908
|
-
if (
|
|
909
|
-
const u = (
|
|
910
|
-
|
|
907
|
+
const { url: r, paginationKeys: l, params: o } = e, i = [], n = (l == null ? void 0 : l.page) ?? "page";
|
|
908
|
+
if (i.push(`${n}=${t}`), typeof s == "string") {
|
|
909
|
+
const u = (l == null ? void 0 : l.text) ?? "text";
|
|
910
|
+
i.push(`${u}=${encodeURIComponent(s || "")}`);
|
|
911
911
|
}
|
|
912
912
|
if (o && typeof o == "object") {
|
|
913
913
|
const u = Object.entries(o).map(
|
|
914
914
|
([f, _]) => `${encodeURIComponent(f)}=${encodeURIComponent(_)}`
|
|
915
915
|
);
|
|
916
|
-
|
|
916
|
+
i.push(...u);
|
|
917
917
|
}
|
|
918
|
-
const d =
|
|
918
|
+
const d = i.join("&");
|
|
919
919
|
return d ? `${r}?${d}` : r;
|
|
920
920
|
}, xe = (e, t, s) => {
|
|
921
|
-
const { type: r, url:
|
|
921
|
+
const { type: r, url: l, method: o, headers: i } = e;
|
|
922
922
|
return r === "rest" ? {
|
|
923
923
|
type: "rest",
|
|
924
924
|
url: xn(e, t, s),
|
|
925
925
|
method: o,
|
|
926
|
-
headers:
|
|
926
|
+
headers: i,
|
|
927
927
|
data: (e == null ? void 0 : e.data) || {}
|
|
928
928
|
} : {
|
|
929
929
|
type: "graphql",
|
|
930
|
-
url:
|
|
930
|
+
url: l,
|
|
931
931
|
method: "post",
|
|
932
|
-
headers:
|
|
932
|
+
headers: i,
|
|
933
933
|
query: e == null ? void 0 : e.query,
|
|
934
934
|
variables: {
|
|
935
935
|
...(e == null ? void 0 : e.variables) || {},
|
|
@@ -938,7 +938,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
938
938
|
}
|
|
939
939
|
};
|
|
940
940
|
}, ie = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Be = (e, t, s, r) => {
|
|
941
|
-
const
|
|
941
|
+
const l = B.query(e, t), o = l == null ? void 0 : l.map((a) => {
|
|
942
942
|
var u, f;
|
|
943
943
|
if (s) {
|
|
944
944
|
const _ = {};
|
|
@@ -955,13 +955,13 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
955
955
|
return _;
|
|
956
956
|
} else
|
|
957
957
|
return a;
|
|
958
|
-
}),
|
|
959
|
-
size:
|
|
958
|
+
}), i = B.value(e, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? l.length, n = B.value(e, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = {
|
|
959
|
+
size: i,
|
|
960
960
|
total: n,
|
|
961
961
|
totalPages: r != null && r.totalPages ? B.value(
|
|
962
962
|
e,
|
|
963
963
|
(r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
|
|
964
|
-
) :
|
|
964
|
+
) : i > 0 ? Math.ceil(n / i) : 0
|
|
965
965
|
};
|
|
966
966
|
return { items: o, pagination: d };
|
|
967
967
|
}, ne = ({ withPadding: e = !1 }) => {
|
|
@@ -986,7 +986,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
986
986
|
var o;
|
|
987
987
|
if (!e || !t || !t.length)
|
|
988
988
|
return null;
|
|
989
|
-
const
|
|
989
|
+
const l = {
|
|
990
990
|
backgroundColor: R.tooltipBg,
|
|
991
991
|
borderRadius: R.tooltipBorderRadius,
|
|
992
992
|
color: R.tooltipColor,
|
|
@@ -994,13 +994,13 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
994
994
|
border: "1px solid #e5e7eb"
|
|
995
995
|
};
|
|
996
996
|
if (r) {
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
return /* @__PURE__ */ c.jsx("div", { style:
|
|
997
|
+
const i = (o = t[0]) == null ? void 0 : o.payload;
|
|
998
|
+
if (i && i[r] !== void 0 && i[r] !== null)
|
|
999
|
+
return /* @__PURE__ */ c.jsx("div", { style: l, children: /* @__PURE__ */ c.jsx("p", { style: { margin: 0 }, children: i[r] }) });
|
|
1000
1000
|
}
|
|
1001
|
-
return /* @__PURE__ */ c.jsxs("div", { style:
|
|
1001
|
+
return /* @__PURE__ */ c.jsxs("div", { style: l, children: [
|
|
1002
1002
|
/* @__PURE__ */ c.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1003
|
-
t.map((
|
|
1003
|
+
t.map((i, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: i.color }, children: `${i.name}: ${i.value}` }, n))
|
|
1004
1004
|
] });
|
|
1005
1005
|
}, re = ({ tooltipKey: e } = {}) => /* @__PURE__ */ c.jsx(
|
|
1006
1006
|
gt,
|
|
@@ -1026,55 +1026,55 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
1028
|
), pn = (e) => {
|
|
1029
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey:
|
|
1029
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
|
|
1030
1030
|
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(jt, { data: t, children: [
|
|
1031
1031
|
/* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
|
|
1032
1032
|
/* @__PURE__ */ c.jsx(ge, { dataKey: s }),
|
|
1033
1033
|
/* @__PURE__ */ c.jsx(pe, {}),
|
|
1034
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1034
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1035
1035
|
/* @__PURE__ */ c.jsx(ne, {}),
|
|
1036
|
-
r.map((o,
|
|
1036
|
+
r.map((o, i) => /* @__PURE__ */ c.jsx(
|
|
1037
1037
|
wt,
|
|
1038
1038
|
{
|
|
1039
1039
|
type: "monotone",
|
|
1040
1040
|
dataKey: o,
|
|
1041
|
-
stroke: z[
|
|
1042
|
-
fill: z[
|
|
1041
|
+
stroke: z[i % z.length],
|
|
1042
|
+
fill: z[i % z.length]
|
|
1043
1043
|
},
|
|
1044
1044
|
o
|
|
1045
1045
|
))
|
|
1046
1046
|
] }) });
|
|
1047
1047
|
}, bn = (e) => {
|
|
1048
|
-
const { data: t, yKeys: s, xKey: r, tooltipKey:
|
|
1048
|
+
const { data: t, yKeys: s, xKey: r, tooltipKey: l } = e;
|
|
1049
1049
|
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Ct, { data: t, children: [
|
|
1050
1050
|
/* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
|
|
1051
1051
|
/* @__PURE__ */ c.jsx(ge, { hide: !0, dataKey: r }),
|
|
1052
1052
|
/* @__PURE__ */ c.jsx(pe, {}),
|
|
1053
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1053
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1054
1054
|
/* @__PURE__ */ c.jsx(ne, { withPadding: !0 }),
|
|
1055
|
-
s.map((o,
|
|
1055
|
+
s.map((o, i) => /* @__PURE__ */ c.jsx(
|
|
1056
1056
|
Nt,
|
|
1057
1057
|
{
|
|
1058
1058
|
dataKey: o,
|
|
1059
|
-
fill: z[
|
|
1059
|
+
fill: z[i % z.length]
|
|
1060
1060
|
},
|
|
1061
1061
|
o
|
|
1062
1062
|
))
|
|
1063
1063
|
] }) });
|
|
1064
1064
|
}, jn = (e) => {
|
|
1065
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey:
|
|
1065
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
|
|
1066
1066
|
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(vt, { data: t, children: [
|
|
1067
1067
|
/* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
|
|
1068
1068
|
/* @__PURE__ */ c.jsx(ge, { dataKey: s }),
|
|
1069
1069
|
/* @__PURE__ */ c.jsx(pe, {}),
|
|
1070
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1070
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1071
1071
|
/* @__PURE__ */ c.jsx(ne, {}),
|
|
1072
|
-
r.map((o,
|
|
1072
|
+
r.map((o, i) => /* @__PURE__ */ c.jsx(
|
|
1073
1073
|
Et,
|
|
1074
1074
|
{
|
|
1075
1075
|
type: "monotone",
|
|
1076
1076
|
dataKey: o,
|
|
1077
|
-
stroke: z[
|
|
1077
|
+
stroke: z[i % z.length],
|
|
1078
1078
|
strokeWidth: 2,
|
|
1079
1079
|
dot: !1
|
|
1080
1080
|
},
|
|
@@ -1082,15 +1082,15 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1082
1082
|
))
|
|
1083
1083
|
] }) });
|
|
1084
1084
|
}, wn = (e) => {
|
|
1085
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey:
|
|
1086
|
-
cx:
|
|
1085
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e, o = ({
|
|
1086
|
+
cx: i,
|
|
1087
1087
|
cy: n,
|
|
1088
1088
|
midAngle: d,
|
|
1089
1089
|
innerRadius: a,
|
|
1090
1090
|
outerRadius: u,
|
|
1091
1091
|
value: f
|
|
1092
1092
|
}) => {
|
|
1093
|
-
const _ = Math.PI / 180, h = 25 + a + (u - a), j =
|
|
1093
|
+
const _ = Math.PI / 180, h = 25 + a + (u - a), j = i + h * Math.cos(-(d ?? 0) * _), y = n + h * Math.sin(-(d ?? 0) * _);
|
|
1094
1094
|
return /* @__PURE__ */ c.jsx(
|
|
1095
1095
|
"text",
|
|
1096
1096
|
{
|
|
@@ -1105,18 +1105,18 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1105
1105
|
);
|
|
1106
1106
|
};
|
|
1107
1107
|
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(kt, { children: [
|
|
1108
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1108
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1109
1109
|
/* @__PURE__ */ c.jsx(ne, {}),
|
|
1110
1110
|
/* @__PURE__ */ c.jsx(
|
|
1111
|
-
|
|
1111
|
+
qt,
|
|
1112
1112
|
{
|
|
1113
1113
|
data: t,
|
|
1114
1114
|
dataKey: r[0],
|
|
1115
1115
|
nameKey: s,
|
|
1116
1116
|
label: o,
|
|
1117
1117
|
outerRadius: 120,
|
|
1118
|
-
children: t.map((
|
|
1119
|
-
|
|
1118
|
+
children: t.map((i, n) => /* @__PURE__ */ c.jsx(
|
|
1119
|
+
St,
|
|
1120
1120
|
{
|
|
1121
1121
|
fill: z[n % z.length]
|
|
1122
1122
|
},
|
|
@@ -1156,10 +1156,10 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1156
1156
|
tooltipColor: "#000",
|
|
1157
1157
|
tooltipBorderRadius: "4px"
|
|
1158
1158
|
}, Nn = (e) => {
|
|
1159
|
-
const { component: t, userFlow: s, hash: r, responseKey:
|
|
1159
|
+
const { component: t, userFlow: s, hash: r, responseKey: l, dataSource: o, ...i } = e, n = Cn[i.type];
|
|
1160
1160
|
if (!n)
|
|
1161
1161
|
return /* @__PURE__ */ c.jsx("div", { children: "Not supported chart type" });
|
|
1162
|
-
const { fetchDataSource: d } = I(), [a, u] =
|
|
1162
|
+
const { fetchDataSource: d } = I(), [a, u] = q(!1), [f, _] = q([]), h = async () => {
|
|
1163
1163
|
var y, x;
|
|
1164
1164
|
try {
|
|
1165
1165
|
u(!0);
|
|
@@ -1177,10 +1177,10 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1177
1177
|
}
|
|
1178
1178
|
};
|
|
1179
1179
|
J(() => {
|
|
1180
|
-
o ? h() : _(
|
|
1180
|
+
o ? h() : _(i.data);
|
|
1181
1181
|
}, []);
|
|
1182
1182
|
const j = {
|
|
1183
|
-
...
|
|
1183
|
+
...i,
|
|
1184
1184
|
data: f
|
|
1185
1185
|
};
|
|
1186
1186
|
return a ? /* @__PURE__ */ c.jsx(Oe, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
|
|
@@ -1188,8 +1188,8 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1188
1188
|
header: vn,
|
|
1189
1189
|
header_content: En
|
|
1190
1190
|
}, kn = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ee.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), A = (e, t, s, r) => {
|
|
1191
|
-
var
|
|
1192
|
-
const
|
|
1191
|
+
var i;
|
|
1192
|
+
const l = {
|
|
1193
1193
|
accordion: (n) => /* @__PURE__ */ c.jsx(hr, { ...n, userFlow: e, pageId: t }),
|
|
1194
1194
|
aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Mt, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
|
|
1195
1195
|
aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Ut, { ...n, userFlow: e, pageId: t }),
|
|
@@ -1215,20 +1215,20 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1215
1215
|
textField: (n) => /* @__PURE__ */ c.jsx(lr, { ...n, userFlow: e, pageId: t }),
|
|
1216
1216
|
toast: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t })
|
|
1217
1217
|
};
|
|
1218
|
-
return (
|
|
1219
|
-
const d =
|
|
1218
|
+
return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
|
|
1219
|
+
const d = l[n.component];
|
|
1220
1220
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
1221
1221
|
});
|
|
1222
|
-
},
|
|
1223
|
-
modalContent:
|
|
1222
|
+
}, qn = "_modalContent_p06ci_1", Sn = {
|
|
1223
|
+
modalContent: qn
|
|
1224
1224
|
}, An = ({
|
|
1225
1225
|
userFlow: e,
|
|
1226
1226
|
pageId: t,
|
|
1227
1227
|
responseKey: s,
|
|
1228
1228
|
header: r,
|
|
1229
|
-
body:
|
|
1229
|
+
body: l,
|
|
1230
1230
|
footer: o,
|
|
1231
|
-
headerStatusColor:
|
|
1231
|
+
headerStatusColor: i,
|
|
1232
1232
|
...n
|
|
1233
1233
|
}) => {
|
|
1234
1234
|
const d = v((m) => {
|
|
@@ -1239,36 +1239,36 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1239
1239
|
return (g = m[e]) == null ? void 0 : g.isLoading;
|
|
1240
1240
|
}), u = d && !a, f = {
|
|
1241
1241
|
...n
|
|
1242
|
-
}, _ = (f == null ? void 0 : f.headerStatusColor) ??
|
|
1242
|
+
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? i, h = D(() => {
|
|
1243
1243
|
ye(e), me(e, !1);
|
|
1244
|
-
}, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t,
|
|
1244
|
+
}, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, l), x = A(e, t, o);
|
|
1245
1245
|
return /* @__PURE__ */ c.jsx(
|
|
1246
1246
|
Pe,
|
|
1247
1247
|
{
|
|
1248
1248
|
...f,
|
|
1249
1249
|
headerStatusColor: _,
|
|
1250
1250
|
header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-header-${g}`)) }),
|
|
1251
|
-
children: /* @__PURE__ */ c.jsx("section", { className:
|
|
1251
|
+
children: /* @__PURE__ */ c.jsx("section", { className: Sn.modalContent, children: y.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-body-${g}`)) }),
|
|
1252
1252
|
actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: x.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-footer-${g}`)) }),
|
|
1253
1253
|
open: u,
|
|
1254
1254
|
onClose: h
|
|
1255
1255
|
}
|
|
1256
1256
|
);
|
|
1257
1257
|
}, On = ({ userFlow: e, pageId: t }) => {
|
|
1258
|
-
var o,
|
|
1258
|
+
var o, i;
|
|
1259
1259
|
const s = Tt(e);
|
|
1260
1260
|
if (!s)
|
|
1261
1261
|
return null;
|
|
1262
1262
|
const r = [
|
|
1263
1263
|
...(s == null ? void 0 : s.components) || [],
|
|
1264
1264
|
...((o = s == null ? void 0 : s.header) == null ? void 0 : o.components) || [],
|
|
1265
|
-
...((
|
|
1266
|
-
],
|
|
1265
|
+
...((i = s == null ? void 0 : s.body) == null ? void 0 : i.components) || []
|
|
1266
|
+
], l = A(
|
|
1267
1267
|
e,
|
|
1268
1268
|
t,
|
|
1269
1269
|
r
|
|
1270
1270
|
);
|
|
1271
|
-
return /* @__PURE__ */ c.jsx(c.Fragment, { children:
|
|
1271
|
+
return /* @__PURE__ */ c.jsx(c.Fragment, { children: l == null ? void 0 : l.map((n, d) => {
|
|
1272
1272
|
const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
1273
1273
|
return /* @__PURE__ */ c.jsx($, { children: n }, a);
|
|
1274
1274
|
}) });
|
|
@@ -1299,12 +1299,12 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1299
1299
|
iconColor: "neutral-70"
|
|
1300
1300
|
}
|
|
1301
1301
|
}, $n = (e) => {
|
|
1302
|
-
const { content: t, variant: s = "neutral", ...r } = e,
|
|
1302
|
+
const { content: t, variant: s = "neutral", ...r } = e, l = Tn[s], o = {
|
|
1303
1303
|
...r,
|
|
1304
1304
|
children: t,
|
|
1305
|
-
color: (r == null ? void 0 : r.color) ??
|
|
1306
|
-
textColor: (r == null ? void 0 : r.textColor) ??
|
|
1307
|
-
iconColor: (r == null ? void 0 : r.iconColor) ??
|
|
1305
|
+
color: (r == null ? void 0 : r.color) ?? l.color,
|
|
1306
|
+
textColor: (r == null ? void 0 : r.textColor) ?? l.textColor,
|
|
1307
|
+
iconColor: (r == null ? void 0 : r.iconColor) ?? l.iconColor
|
|
1308
1308
|
};
|
|
1309
1309
|
return /* @__PURE__ */ c.jsx(de, { ...o });
|
|
1310
1310
|
}, Rn = (e) => {
|
|
@@ -1312,14 +1312,14 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1312
1312
|
userFlow: t,
|
|
1313
1313
|
pageId: s,
|
|
1314
1314
|
responseKey: r,
|
|
1315
|
-
actionType:
|
|
1315
|
+
actionType: l,
|
|
1316
1316
|
dataSource: o,
|
|
1317
|
-
dependencies:
|
|
1317
|
+
dependencies: i,
|
|
1318
1318
|
onClick: n,
|
|
1319
1319
|
...d
|
|
1320
1320
|
} = e, { getNextUI: a, fetchAndGetNextUI: u } = I(), { disabled: f } = M(
|
|
1321
1321
|
t,
|
|
1322
|
-
|
|
1322
|
+
i
|
|
1323
1323
|
), _ = {
|
|
1324
1324
|
...d
|
|
1325
1325
|
}, h = (_ == null ? void 0 : _.disabled) ?? f, j = D(async () => {
|
|
@@ -1329,7 +1329,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1329
1329
|
...(y = v.getState()[t]) == null ? void 0 : y.entries,
|
|
1330
1330
|
[r]: { status: 200 }
|
|
1331
1331
|
};
|
|
1332
|
-
switch (L(t, x),
|
|
1332
|
+
switch (L(t, x), l) {
|
|
1333
1333
|
case "GO_TO_NEXT_UI": {
|
|
1334
1334
|
const m = await a(
|
|
1335
1335
|
t,
|
|
@@ -1337,7 +1337,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1337
1337
|
x,
|
|
1338
1338
|
r
|
|
1339
1339
|
);
|
|
1340
|
-
m != null && m.data &&
|
|
1340
|
+
m != null && m.data && S(t, m == null ? void 0 : m.data);
|
|
1341
1341
|
break;
|
|
1342
1342
|
}
|
|
1343
1343
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1348,7 +1348,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1348
1348
|
r,
|
|
1349
1349
|
o
|
|
1350
1350
|
);
|
|
1351
|
-
m != null && m.data &&
|
|
1351
|
+
m != null && m.data && S(t, m == null ? void 0 : m.data);
|
|
1352
1352
|
break;
|
|
1353
1353
|
}
|
|
1354
1354
|
case "CLOSE_MODAL":
|
|
@@ -1361,13 +1361,13 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1361
1361
|
Z(t, !0);
|
|
1362
1362
|
break;
|
|
1363
1363
|
default:
|
|
1364
|
-
console.warn(`Unhandled actionType: ${
|
|
1364
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
1365
1365
|
break;
|
|
1366
1366
|
}
|
|
1367
1367
|
} catch (x) {
|
|
1368
1368
|
alert(JSON.stringify(x));
|
|
1369
1369
|
}
|
|
1370
|
-
}, [
|
|
1370
|
+
}, [l, o, s, r, t]);
|
|
1371
1371
|
return /* @__PURE__ */ c.jsx(
|
|
1372
1372
|
et,
|
|
1373
1373
|
{
|
|
@@ -1424,11 +1424,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1424
1424
|
userFlow: t,
|
|
1425
1425
|
pageId: s,
|
|
1426
1426
|
columnWidth: r,
|
|
1427
|
-
columns:
|
|
1427
|
+
columns: l,
|
|
1428
1428
|
gap: o = "md",
|
|
1429
|
-
justifyContent:
|
|
1429
|
+
justifyContent: i = "start",
|
|
1430
1430
|
alignItems: n = "stretch"
|
|
1431
|
-
} = e, d = Array.isArray(
|
|
1431
|
+
} = e, d = Array.isArray(l) ? l.map((a, u) => {
|
|
1432
1432
|
const f = `col_${u}`, _ = `col_${u}`;
|
|
1433
1433
|
if (Array.isArray(a))
|
|
1434
1434
|
return {
|
|
@@ -1455,7 +1455,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1455
1455
|
className: ee(
|
|
1456
1456
|
U.row,
|
|
1457
1457
|
U[`row__gap-${o}`],
|
|
1458
|
-
U[`row__justify-${
|
|
1458
|
+
U[`row__justify-${i}`],
|
|
1459
1459
|
U[`row__align-${n}`]
|
|
1460
1460
|
),
|
|
1461
1461
|
children: d == null ? void 0 : d.map((a, u) => {
|
|
@@ -1483,9 +1483,9 @@ function Ie({
|
|
|
1483
1483
|
pageId: t,
|
|
1484
1484
|
responseKey: s,
|
|
1485
1485
|
actionType: r,
|
|
1486
|
-
getNextUI:
|
|
1486
|
+
getNextUI: l,
|
|
1487
1487
|
isMulti: o = !1,
|
|
1488
|
-
debounceMs:
|
|
1488
|
+
debounceMs: i
|
|
1489
1489
|
}) {
|
|
1490
1490
|
const n = Je(null);
|
|
1491
1491
|
J(() => () => {
|
|
@@ -1500,19 +1500,19 @@ function Ie({
|
|
|
1500
1500
|
};
|
|
1501
1501
|
if (L(e, f), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
1502
1502
|
try {
|
|
1503
|
-
const y = await
|
|
1503
|
+
const y = await l(
|
|
1504
1504
|
e,
|
|
1505
1505
|
t,
|
|
1506
1506
|
f,
|
|
1507
1507
|
s,
|
|
1508
1508
|
r === "GO_TO_NEXT_UI"
|
|
1509
1509
|
);
|
|
1510
|
-
y != null && y.data &&
|
|
1510
|
+
y != null && y.data && S(e, y.data);
|
|
1511
1511
|
} catch (j) {
|
|
1512
1512
|
console.error("[useSelectChange] Failed to fetch next UI", j);
|
|
1513
1513
|
}
|
|
1514
1514
|
},
|
|
1515
|
-
[e, t, s, r,
|
|
1515
|
+
[e, t, s, r, l]
|
|
1516
1516
|
);
|
|
1517
1517
|
return D(
|
|
1518
1518
|
(u) => {
|
|
@@ -1520,39 +1520,39 @@ function Ie({
|
|
|
1520
1520
|
d(u);
|
|
1521
1521
|
return;
|
|
1522
1522
|
}
|
|
1523
|
-
if (
|
|
1523
|
+
if (i == null) {
|
|
1524
1524
|
d(u);
|
|
1525
1525
|
return;
|
|
1526
1526
|
}
|
|
1527
1527
|
n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
|
|
1528
1528
|
d(u), n.current = null;
|
|
1529
|
-
},
|
|
1529
|
+
}, i);
|
|
1530
1530
|
},
|
|
1531
|
-
[o,
|
|
1531
|
+
[o, i, d]
|
|
1532
1532
|
);
|
|
1533
1533
|
}
|
|
1534
1534
|
const In = (e, t, s, r) => {
|
|
1535
|
-
const
|
|
1536
|
-
return (
|
|
1535
|
+
const l = B.query(e, t);
|
|
1536
|
+
return (l == null ? void 0 : l.map((o) => {
|
|
1537
1537
|
var d, a;
|
|
1538
|
-
const
|
|
1539
|
-
return { label:
|
|
1538
|
+
const i = (d = B.query(o, s)) == null ? void 0 : d[0], n = r ? (a = B.query(o, r)) == null ? void 0 : a[0] : o;
|
|
1539
|
+
return { label: i, value: n };
|
|
1540
1540
|
})) ?? [];
|
|
1541
1541
|
}, zn = (e, t, s, r = 10) => {
|
|
1542
1542
|
var n, d;
|
|
1543
|
-
let
|
|
1543
|
+
let l, o;
|
|
1544
1544
|
if (s) {
|
|
1545
1545
|
const a = B.value(e, s.size ?? "$.meta.size") ?? r, u = B.value(e, s.total ?? "$.meta.total") ?? 0;
|
|
1546
|
-
|
|
1546
|
+
l = a, o = u;
|
|
1547
1547
|
} else {
|
|
1548
1548
|
const a = e == null ? void 0 : e.meta;
|
|
1549
|
-
|
|
1549
|
+
l = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, o = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
|
|
1550
1550
|
}
|
|
1551
|
-
const
|
|
1551
|
+
const i = o > 0 ? Math.ceil(o / l) > t : !1;
|
|
1552
1552
|
return {
|
|
1553
|
-
pageSize:
|
|
1553
|
+
pageSize: l,
|
|
1554
1554
|
total: o,
|
|
1555
|
-
hasMore:
|
|
1555
|
+
hasMore: i
|
|
1556
1556
|
};
|
|
1557
1557
|
}, Mn = "_selectNotFront_1yw9q_1", ze = {
|
|
1558
1558
|
selectNotFront: Mn
|
|
@@ -1561,17 +1561,17 @@ const In = (e, t, s, r) => {
|
|
|
1561
1561
|
pageId: t,
|
|
1562
1562
|
responseKey: s,
|
|
1563
1563
|
required: r,
|
|
1564
|
-
dataSource:
|
|
1564
|
+
dataSource: l,
|
|
1565
1565
|
actionType: o,
|
|
1566
|
-
dependencies:
|
|
1566
|
+
dependencies: i,
|
|
1567
1567
|
debounceMs: n,
|
|
1568
1568
|
...d
|
|
1569
1569
|
}) => {
|
|
1570
1570
|
const a = {
|
|
1571
1571
|
...d
|
|
1572
|
-
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] =
|
|
1572
|
+
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = q((a == null ? void 0 : a.value) ?? ""), { disabled: j } = M(
|
|
1573
1573
|
e,
|
|
1574
|
-
|
|
1574
|
+
i
|
|
1575
1575
|
), y = (a == null ? void 0 : a.disabled) ?? j, x = O(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), m = O(() => {
|
|
1576
1576
|
const p = a != null && a.isMulti ? _ : [_], C = {};
|
|
1577
1577
|
return typeof p == "object" && "length" in p && (p == null || p.forEach((w) => {
|
|
@@ -1594,8 +1594,8 @@ const In = (e, t, s, r) => {
|
|
|
1594
1594
|
jsonPathOptions: T,
|
|
1595
1595
|
jsonPathValue: k,
|
|
1596
1596
|
jsonPathPagination: K
|
|
1597
|
-
} =
|
|
1598
|
-
|
|
1597
|
+
} = l, G = xe(
|
|
1598
|
+
l,
|
|
1599
1599
|
w,
|
|
1600
1600
|
p
|
|
1601
1601
|
), se = await f(
|
|
@@ -1644,18 +1644,18 @@ const In = (e, t, s, r) => {
|
|
|
1644
1644
|
pageId: t,
|
|
1645
1645
|
responseKey: s,
|
|
1646
1646
|
dataSource: r,
|
|
1647
|
-
required:
|
|
1647
|
+
required: l,
|
|
1648
1648
|
actionType: o,
|
|
1649
|
-
dependencies:
|
|
1649
|
+
dependencies: i,
|
|
1650
1650
|
debounceMs: n,
|
|
1651
1651
|
...d
|
|
1652
1652
|
}) => {
|
|
1653
1653
|
const a = {
|
|
1654
1654
|
...d
|
|
1655
|
-
}, { getNextUI: u } = I(), [f, _] =
|
|
1655
|
+
}, { getNextUI: u } = I(), [f, _] = q(a.value || ""), { disabled: h } = M(
|
|
1656
1656
|
e,
|
|
1657
|
-
|
|
1658
|
-
), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() =>
|
|
1657
|
+
i
|
|
1658
|
+
), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), x = Ie({
|
|
1659
1659
|
userFlow: e,
|
|
1660
1660
|
pageId: t,
|
|
1661
1661
|
responseKey: s,
|
|
@@ -1698,15 +1698,15 @@ const In = (e, t, s, r) => {
|
|
|
1698
1698
|
userFlow: t,
|
|
1699
1699
|
pageId: s,
|
|
1700
1700
|
responseKey: r,
|
|
1701
|
-
actionType:
|
|
1701
|
+
actionType: l,
|
|
1702
1702
|
label: o,
|
|
1703
|
-
value:
|
|
1703
|
+
value: i,
|
|
1704
1704
|
required: n,
|
|
1705
1705
|
dependencies: d,
|
|
1706
1706
|
...a
|
|
1707
1707
|
} = e, u = {
|
|
1708
1708
|
...a
|
|
1709
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
1709
|
+
}, { getNextUI: f } = I(), [_, h] = q(i || !1), { disabled: j } = M(
|
|
1710
1710
|
t,
|
|
1711
1711
|
d
|
|
1712
1712
|
), y = (u == null ? void 0 : u.disabled) ?? j, x = O(() => n && o ? `${o} *` : o ?? "", [o, n]), m = D(async () => {
|
|
@@ -1718,7 +1718,7 @@ const In = (e, t, s, r) => {
|
|
|
1718
1718
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
1719
1719
|
[r]: b
|
|
1720
1720
|
};
|
|
1721
|
-
switch (L(t, N),
|
|
1721
|
+
switch (L(t, N), l) {
|
|
1722
1722
|
case "GO_TO_NEXT_UI":
|
|
1723
1723
|
const p = await f(
|
|
1724
1724
|
t,
|
|
@@ -1726,16 +1726,16 @@ const In = (e, t, s, r) => {
|
|
|
1726
1726
|
N,
|
|
1727
1727
|
r
|
|
1728
1728
|
);
|
|
1729
|
-
p != null && p.data &&
|
|
1729
|
+
p != null && p.data && S(t, p == null ? void 0 : p.data);
|
|
1730
1730
|
break;
|
|
1731
1731
|
default:
|
|
1732
|
-
console.warn(`Unhandled actionType: ${
|
|
1732
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
1733
1733
|
break;
|
|
1734
1734
|
}
|
|
1735
1735
|
} catch (b) {
|
|
1736
1736
|
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
1737
1737
|
}
|
|
1738
|
-
}, [t, s, r,
|
|
1738
|
+
}, [t, s, r, l, _]);
|
|
1739
1739
|
return /* @__PURE__ */ c.jsx(
|
|
1740
1740
|
rt,
|
|
1741
1741
|
{
|
|
@@ -1752,7 +1752,7 @@ const In = (e, t, s, r) => {
|
|
|
1752
1752
|
}, rr = ({ values: e }) => {
|
|
1753
1753
|
const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
|
|
1754
1754
|
return /* @__PURE__ */ c.jsxs("div", { className: Me.tableArrayPills, children: [
|
|
1755
|
-
s.map((
|
|
1755
|
+
s.map((l, o) => /* @__PURE__ */ c.jsx(de, { children: String(l) }, o)),
|
|
1756
1756
|
r > 0 && /* @__PURE__ */ c.jsxs(de, { outlined: !0, children: [
|
|
1757
1757
|
"+",
|
|
1758
1758
|
r
|
|
@@ -1763,9 +1763,9 @@ const In = (e, t, s, r) => {
|
|
|
1763
1763
|
pageId: t,
|
|
1764
1764
|
tableResponseKey: s,
|
|
1765
1765
|
component: r,
|
|
1766
|
-
rowData:
|
|
1766
|
+
rowData: l
|
|
1767
1767
|
}) => {
|
|
1768
|
-
const { getNextUI: o, fetchAndGetNextUI:
|
|
1768
|
+
const { getNextUI: o, fetchAndGetNextUI: i, fetchDataSource: n } = I(), d = A(e, t, [
|
|
1769
1769
|
{ ...r }
|
|
1770
1770
|
]), a = (d == null ? void 0 : d[0]) || null;
|
|
1771
1771
|
if (!a)
|
|
@@ -1780,7 +1780,7 @@ const In = (e, t, s, r) => {
|
|
|
1780
1780
|
const m = {
|
|
1781
1781
|
...(j = v.getState()[e]) == null ? void 0 : j.entries,
|
|
1782
1782
|
[f]: { status: 200 },
|
|
1783
|
-
[s]: [{ ...
|
|
1783
|
+
[s]: [{ ...l }]
|
|
1784
1784
|
};
|
|
1785
1785
|
switch (L(e, m), u) {
|
|
1786
1786
|
case "GO_TO_NEXT_UI": {
|
|
@@ -1790,18 +1790,18 @@ const In = (e, t, s, r) => {
|
|
|
1790
1790
|
m,
|
|
1791
1791
|
f
|
|
1792
1792
|
);
|
|
1793
|
-
g != null && g.data &&
|
|
1793
|
+
g != null && g.data && S(e, g == null ? void 0 : g.data);
|
|
1794
1794
|
break;
|
|
1795
1795
|
}
|
|
1796
1796
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1797
|
-
const g = await
|
|
1797
|
+
const g = await i(
|
|
1798
1798
|
e,
|
|
1799
1799
|
t,
|
|
1800
1800
|
m,
|
|
1801
1801
|
f,
|
|
1802
1802
|
_
|
|
1803
1803
|
);
|
|
1804
|
-
g != null && g.data &&
|
|
1804
|
+
g != null && g.data && S(e, g == null ? void 0 : g.data);
|
|
1805
1805
|
break;
|
|
1806
1806
|
}
|
|
1807
1807
|
case "GET_DATA_SOURCE": {
|
|
@@ -1832,7 +1832,7 @@ const In = (e, t, s, r) => {
|
|
|
1832
1832
|
C,
|
|
1833
1833
|
f
|
|
1834
1834
|
);
|
|
1835
|
-
w != null && w.data &&
|
|
1835
|
+
w != null && w.data && S(e, w == null ? void 0 : w.data);
|
|
1836
1836
|
break;
|
|
1837
1837
|
}
|
|
1838
1838
|
default:
|
|
@@ -1859,12 +1859,12 @@ const In = (e, t, s, r) => {
|
|
|
1859
1859
|
pageId: t,
|
|
1860
1860
|
responseKey: s,
|
|
1861
1861
|
component: r,
|
|
1862
|
-
dataSource:
|
|
1862
|
+
dataSource: l,
|
|
1863
1863
|
rightActions: o,
|
|
1864
|
-
...
|
|
1864
|
+
...i
|
|
1865
1865
|
}) => {
|
|
1866
1866
|
var b, N, p;
|
|
1867
|
-
const { fetchDataSource: n } = I(), [d, a] =
|
|
1867
|
+
const { fetchDataSource: n } = I(), [d, a] = q(!1), [u, f] = q(1), [_, h] = q(null), j = O(() => {
|
|
1868
1868
|
if (o != null && o.length)
|
|
1869
1869
|
return o.map((C, w) => ({
|
|
1870
1870
|
renderContent: (E) => /* @__PURE__ */ c.jsx(
|
|
@@ -1882,8 +1882,8 @@ const In = (e, t, s, r) => {
|
|
|
1882
1882
|
}, [o, e, t]), y = async (C = 1) => {
|
|
1883
1883
|
try {
|
|
1884
1884
|
a(!0);
|
|
1885
|
-
const { jsonPathData: w, mapperData: E, jsonPathPagination: T } =
|
|
1886
|
-
|
|
1885
|
+
const { jsonPathData: w, mapperData: E, jsonPathPagination: T } = l, k = xe(
|
|
1886
|
+
l,
|
|
1887
1887
|
C
|
|
1888
1888
|
), K = await n(
|
|
1889
1889
|
k,
|
|
@@ -1907,7 +1907,7 @@ const In = (e, t, s, r) => {
|
|
|
1907
1907
|
J(() => {
|
|
1908
1908
|
y();
|
|
1909
1909
|
}, []);
|
|
1910
|
-
const m = O(() => !(_ != null && _.items) || !(
|
|
1910
|
+
const m = O(() => !(_ != null && _.items) || !(i != null && i.columns) ? i == null ? void 0 : i.columns : i.columns.map((C) => {
|
|
1911
1911
|
var E;
|
|
1912
1912
|
return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
|
|
1913
1913
|
(T) => Array.isArray(C != null && C.accessor ? T[C == null ? void 0 : C.accessor] : void 0)
|
|
@@ -1918,8 +1918,8 @@ const In = (e, t, s, r) => {
|
|
|
1918
1918
|
return Array.isArray(k) ? /* @__PURE__ */ c.jsx(rr, { values: k }) : k;
|
|
1919
1919
|
}
|
|
1920
1920
|
} : C;
|
|
1921
|
-
}), [_ == null ? void 0 : _.items,
|
|
1922
|
-
...
|
|
1921
|
+
}), [_ == null ? void 0 : _.items, i == null ? void 0 : i.columns]), g = {
|
|
1922
|
+
...i,
|
|
1923
1923
|
data: _ == null ? void 0 : _.items,
|
|
1924
1924
|
columns: m,
|
|
1925
1925
|
rightActions: j
|
|
@@ -1944,17 +1944,17 @@ const In = (e, t, s, r) => {
|
|
|
1944
1944
|
userFlow: t,
|
|
1945
1945
|
pageId: s,
|
|
1946
1946
|
component: r,
|
|
1947
|
-
hash:
|
|
1947
|
+
hash: l,
|
|
1948
1948
|
responseKey: o,
|
|
1949
|
-
required:
|
|
1949
|
+
required: i,
|
|
1950
1950
|
dependencies: n,
|
|
1951
1951
|
...d
|
|
1952
1952
|
} = e, a = {
|
|
1953
1953
|
...d
|
|
1954
|
-
}, [u, f] =
|
|
1954
|
+
}, [u, f] = q((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = M(
|
|
1955
1955
|
t,
|
|
1956
1956
|
n
|
|
1957
|
-
), h = (a == null ? void 0 : a.disabled) ?? _, j = O(() =>
|
|
1957
|
+
), h = (a == null ? void 0 : a.disabled) ?? _, j = O(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), y = (x) => {
|
|
1958
1958
|
var b;
|
|
1959
1959
|
const m = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
|
|
1960
1960
|
f(m);
|
|
@@ -1982,16 +1982,16 @@ const In = (e, t, s, r) => {
|
|
|
1982
1982
|
pageId: t,
|
|
1983
1983
|
responseKey: s,
|
|
1984
1984
|
variant: r,
|
|
1985
|
-
content:
|
|
1985
|
+
content: l,
|
|
1986
1986
|
actionType: o,
|
|
1987
|
-
redirectUrl:
|
|
1987
|
+
redirectUrl: i
|
|
1988
1988
|
}) => {
|
|
1989
1989
|
const n = D(async () => {
|
|
1990
1990
|
ye(e);
|
|
1991
1991
|
try {
|
|
1992
1992
|
switch (o) {
|
|
1993
1993
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
1994
|
-
window.location.href =
|
|
1994
|
+
window.location.href = i;
|
|
1995
1995
|
break;
|
|
1996
1996
|
default:
|
|
1997
1997
|
console.warn(`Unhandled actionType: ${o}`);
|
|
@@ -2000,20 +2000,20 @@ const In = (e, t, s, r) => {
|
|
|
2000
2000
|
} catch (d) {
|
|
2001
2001
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
2002
2002
|
}
|
|
2003
|
-
}, [o, t, s, e,
|
|
2003
|
+
}, [o, t, s, e, i]);
|
|
2004
2004
|
return J(() => {
|
|
2005
2005
|
({
|
|
2006
2006
|
info: W.info,
|
|
2007
2007
|
error: W.error,
|
|
2008
2008
|
success: W.success,
|
|
2009
2009
|
warning: W.warning
|
|
2010
|
-
}[r] || W.info)(
|
|
2010
|
+
}[r] || W.info)(l, {
|
|
2011
2011
|
autoClose: o ? !1 : 4e3,
|
|
2012
2012
|
containerId: e,
|
|
2013
2013
|
onClose: n
|
|
2014
2014
|
});
|
|
2015
2015
|
}, [n, e]), null;
|
|
2016
|
-
}, _r = "_accordion_1ri2t_1", ur = "_accordionBody_1ri2t_8",
|
|
2016
|
+
}, _r = "_accordion_1ri2t_1", ur = "_accordionBody_1ri2t_8", qe = {
|
|
2017
2017
|
accordion: _r,
|
|
2018
2018
|
accordionBody: ur
|
|
2019
2019
|
}, hr = (e) => {
|
|
@@ -2021,17 +2021,17 @@ const In = (e, t, s, r) => {
|
|
|
2021
2021
|
userFlow: t,
|
|
2022
2022
|
pageId: s,
|
|
2023
2023
|
responseKey: r,
|
|
2024
|
-
dependencies:
|
|
2024
|
+
dependencies: l,
|
|
2025
2025
|
customContent: o,
|
|
2026
|
-
actionContent:
|
|
2026
|
+
actionContent: i,
|
|
2027
2027
|
components: n,
|
|
2028
2028
|
...d
|
|
2029
|
-
} = e, { getNextUI: a } = I(), [u, f] =
|
|
2029
|
+
} = e, { getNextUI: a } = I(), [u, f] = q(
|
|
2030
2030
|
d.checkboxChecked || !1
|
|
2031
2031
|
), { disabled: _ } = M(
|
|
2032
2032
|
t,
|
|
2033
|
-
|
|
2034
|
-
), h = A(t, s, n), j =
|
|
2033
|
+
l
|
|
2034
|
+
), h = A(t, s, n), j = i ? A(t, s, i) : void 0, y = o ? A(t, s, o) : void 0, x = D(
|
|
2035
2035
|
async (b) => {
|
|
2036
2036
|
var N;
|
|
2037
2037
|
try {
|
|
@@ -2048,7 +2048,7 @@ const In = (e, t, s, r) => {
|
|
|
2048
2048
|
C,
|
|
2049
2049
|
r
|
|
2050
2050
|
);
|
|
2051
|
-
w != null && w.data &&
|
|
2051
|
+
w != null && w.data && S(t, w == null ? void 0 : w.data);
|
|
2052
2052
|
}
|
|
2053
2053
|
} catch (p) {
|
|
2054
2054
|
console.error("Error in accordion checkbox action:", p), alert(JSON.stringify(p));
|
|
@@ -2057,13 +2057,13 @@ const In = (e, t, s, r) => {
|
|
|
2057
2057
|
[t, s, r, d.actionType, a]
|
|
2058
2058
|
), m = d.disabled || _, g = {
|
|
2059
2059
|
...d,
|
|
2060
|
-
className:
|
|
2060
|
+
className: qe.accordion,
|
|
2061
2061
|
disabled: m,
|
|
2062
2062
|
checkboxChecked: u,
|
|
2063
2063
|
onChanceCheckbox: d.hasCheckbox ? x : void 0,
|
|
2064
2064
|
actionContent: j ? /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-action-${N}`)) }) : void 0,
|
|
2065
2065
|
customContent: y ? /* @__PURE__ */ c.jsx(c.Fragment, { children: y.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-custom-${N}`)) }) : void 0,
|
|
2066
|
-
children: h ? /* @__PURE__ */ c.jsx("section", { className:
|
|
2066
|
+
children: h ? /* @__PURE__ */ c.jsx("section", { className: qe.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-child-${N}`)) }) : void 0
|
|
2067
2067
|
};
|
|
2068
2068
|
return /* @__PURE__ */ c.jsx(ct, { ...g });
|
|
2069
2069
|
}, fr = "_drawer_13pxo_1", yr = "_drawerBody_13pxo_5", mr = "_drawerFooter_13pxo_11", le = {
|
|
@@ -2075,9 +2075,9 @@ const In = (e, t, s, r) => {
|
|
|
2075
2075
|
pageId: t,
|
|
2076
2076
|
responseKey: s,
|
|
2077
2077
|
header: r,
|
|
2078
|
-
body:
|
|
2078
|
+
body: l,
|
|
2079
2079
|
footer: o,
|
|
2080
|
-
...
|
|
2080
|
+
...i
|
|
2081
2081
|
}) => {
|
|
2082
2082
|
const n = v((y) => {
|
|
2083
2083
|
var x;
|
|
@@ -2086,12 +2086,12 @@ const In = (e, t, s, r) => {
|
|
|
2086
2086
|
var x;
|
|
2087
2087
|
return (x = y[e]) == null ? void 0 : x.isLoading;
|
|
2088
2088
|
}), a = n && !d, u = {
|
|
2089
|
-
...
|
|
2089
|
+
...i,
|
|
2090
2090
|
isOpen: a,
|
|
2091
2091
|
children: null
|
|
2092
2092
|
}, f = D(() => {
|
|
2093
2093
|
ye(e), Z(e, !1);
|
|
2094
|
-
}, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Ae, { type: "h2", children: r }) : void 0, h = A(e, t,
|
|
2094
|
+
}, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Ae, { type: "h2", children: r }) : void 0, h = A(e, t, l), j = o ? A(e, t, o) : void 0;
|
|
2095
2095
|
return /* @__PURE__ */ c.jsx(
|
|
2096
2096
|
it,
|
|
2097
2097
|
{
|
|
@@ -2105,12 +2105,12 @@ const In = (e, t, s, r) => {
|
|
|
2105
2105
|
footer: j ? /* @__PURE__ */ c.jsx("div", { className: le.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-footer-${x}`)) }) : void 0
|
|
2106
2106
|
}
|
|
2107
2107
|
);
|
|
2108
|
-
},
|
|
2108
|
+
}, Se = (e, t, s, r, l) => {
|
|
2109
2109
|
const o = A(
|
|
2110
2110
|
e,
|
|
2111
2111
|
t,
|
|
2112
2112
|
(r == null ? void 0 : r.components) || null,
|
|
2113
|
-
|
|
2113
|
+
l
|
|
2114
2114
|
);
|
|
2115
2115
|
switch (s) {
|
|
2116
2116
|
case "body":
|
|
@@ -2136,37 +2136,36 @@ const In = (e, t, s, r) => {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
}, Ar = (e, t, s, r) => {
|
|
2138
2138
|
var _, h, j;
|
|
2139
|
-
const [
|
|
2139
|
+
const [l, o] = q(!1), i = v((y) => y), n = (_ = i[e]) == null ? void 0 : _.currentPageId, d = n ? Se(
|
|
2140
2140
|
e,
|
|
2141
2141
|
n,
|
|
2142
2142
|
"header",
|
|
2143
|
-
((h =
|
|
2143
|
+
((h = i[e].pages[n].page) == null ? void 0 : h.header) || null,
|
|
2144
2144
|
r
|
|
2145
|
-
) : null, a = n ?
|
|
2145
|
+
) : null, a = n ? Se(
|
|
2146
2146
|
e,
|
|
2147
2147
|
n,
|
|
2148
2148
|
"body",
|
|
2149
|
-
((j =
|
|
2149
|
+
((j = i[e].pages[n].page) == null ? void 0 : j.body) || null,
|
|
2150
2150
|
r
|
|
2151
2151
|
) : null, u = O(() => {
|
|
2152
2152
|
var y;
|
|
2153
2153
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2154
|
-
((y =
|
|
2154
|
+
((y = i[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(lt, {}),
|
|
2155
2155
|
d,
|
|
2156
2156
|
a,
|
|
2157
2157
|
n && /* @__PURE__ */ c.jsx(On, { userFlow: e, pageId: n }),
|
|
2158
|
-
|
|
2158
|
+
i[e] && /* @__PURE__ */ c.jsx(dt, {})
|
|
2159
2159
|
] });
|
|
2160
2160
|
}, [d, a, n, e]), f = async () => {
|
|
2161
|
-
var y;
|
|
2162
2161
|
try {
|
|
2163
|
-
const
|
|
2162
|
+
const y = await De(
|
|
2164
2163
|
t,
|
|
2165
2164
|
e
|
|
2166
|
-
),
|
|
2167
|
-
(
|
|
2168
|
-
} catch (
|
|
2169
|
-
console.error("[not-page]: API call failed",
|
|
2165
|
+
), x = y == null ? void 0 : y.data, m = x == null ? void 0 : x.content;
|
|
2166
|
+
(y == null ? void 0 : y.status) === 200 ? oe(e, t, m, x == null ? void 0 : x.sessionState) : o(!0);
|
|
2167
|
+
} catch (y) {
|
|
2168
|
+
console.error("[not-page]: API call failed", y), o(!0);
|
|
2170
2169
|
}
|
|
2171
2170
|
};
|
|
2172
2171
|
return J(() => {
|
|
@@ -2182,7 +2181,7 @@ const In = (e, t, s, r) => {
|
|
|
2182
2181
|
return window.addEventListener(y, x), () => {
|
|
2183
2182
|
window.removeEventListener(y, x);
|
|
2184
2183
|
};
|
|
2185
|
-
}, []),
|
|
2184
|
+
}, []), l && console.error("[not-page]: No render page"), u;
|
|
2186
2185
|
};
|
|
2187
2186
|
export {
|
|
2188
2187
|
Nn as Chart,
|