@foris/avocado-not-front 4.3.1 → 4.3.3
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,16 +1,16 @@
|
|
|
1
1
|
import V from "axios";
|
|
2
2
|
import { create as Qe } from "zustand";
|
|
3
|
-
import Ye, { useMemo as
|
|
4
|
-
import { Heading as
|
|
3
|
+
import Ye, { useMemo as T, useEffect as z, useState as q, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
|
|
4
|
+
import { Heading as Ie, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Be, DataCard as at, Divider as rt, SkeletonBase as Ke, Link as ot, Modal as ct, Pill as he, RoundButton as it, SelectPagination as lt, Select as dt, Switch as _t, Table as ut, Pager as ht, Tabs as ft, TextField as mt, toast as Q, Accordion as yt, Drawer as xt, Loading as gt, Toaster as pt } from "@foris/avocado-suite";
|
|
5
5
|
import { ChatPanel as bt, SummaryCard as jt, PromptCodeEditor as wt } from "@foris/ai-agent";
|
|
6
6
|
import Ct from "@uiw/react-codemirror";
|
|
7
7
|
import { json as we } from "@codemirror/lang-json";
|
|
8
8
|
import { markdown as Nt } from "@codemirror/lang-markdown";
|
|
9
9
|
import { sql as vt } from "@codemirror/lang-sql";
|
|
10
10
|
import { yaml as St } from "@codemirror/lang-yaml";
|
|
11
|
-
import
|
|
12
|
-
import { Legend as Et, Tooltip as kt, XAxis as
|
|
13
|
-
import { Routes as
|
|
11
|
+
import L from "jsonpath";
|
|
12
|
+
import { Legend as Et, Tooltip as kt, XAxis as Tt, YAxis as At, ResponsiveContainer as ne, AreaChart as qt, CartesianGrid as ye, Area as $t, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as It, Pie as Bt, Cell as Kt } from "recharts";
|
|
13
|
+
import { Routes as Mt, Route as Ce, Navigate as zt } from "react-router-dom";
|
|
14
14
|
const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
15
15
|
const c = a == null ? void 0 : a.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
|
|
16
16
|
v.setState((l) => {
|
|
@@ -35,7 +35,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
|
-
},
|
|
38
|
+
}, Me = (e, t, a) => {
|
|
39
39
|
const s = a && Object.keys(a).length > 0 ? { ...e, ...a } : e;
|
|
40
40
|
return t.length === 0 ? e : Object.fromEntries(
|
|
41
41
|
Object.entries(s).filter(
|
|
@@ -44,7 +44,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
44
44
|
);
|
|
45
45
|
}, Gt = (e, t, a, s, c) => {
|
|
46
46
|
sessionStorage.setItem("sessionId", a), v.setState((i) => {
|
|
47
|
-
const l = i[e] ?? {}, n = l.entries ?? {}, d =
|
|
47
|
+
const l = i[e] ?? {}, n = l.entries ?? {}, d = Me(
|
|
48
48
|
n,
|
|
49
49
|
s,
|
|
50
50
|
c
|
|
@@ -69,7 +69,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
69
69
|
}, Ut = (e, t, a, s) => {
|
|
70
70
|
v.setState((c) => {
|
|
71
71
|
var r;
|
|
72
|
-
const i = c[e] ?? {}, l = i.entries ?? {}, n =
|
|
72
|
+
const i = c[e] ?? {}, l = i.entries ?? {}, n = Me(
|
|
73
73
|
l,
|
|
74
74
|
a,
|
|
75
75
|
s
|
|
@@ -99,7 +99,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
99
99
|
}, Jt = (e) => {
|
|
100
100
|
var a;
|
|
101
101
|
return ((a = v.getState()[e]) == null ? void 0 : a.overlay) ?? null;
|
|
102
|
-
},
|
|
102
|
+
}, $ = (e, t) => {
|
|
103
103
|
const {
|
|
104
104
|
content: a,
|
|
105
105
|
sessionId: s,
|
|
@@ -236,7 +236,7 @@ Xt();
|
|
|
236
236
|
function Wt(e) {
|
|
237
237
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
238
238
|
}
|
|
239
|
-
var le = { exports: {} },
|
|
239
|
+
var le = { exports: {} }, Y = {};
|
|
240
240
|
/**
|
|
241
241
|
* @license React
|
|
242
242
|
* react-jsx-runtime.production.min.js
|
|
@@ -248,7 +248,7 @@ var le = { exports: {} }, Q = {};
|
|
|
248
248
|
*/
|
|
249
249
|
var Ee;
|
|
250
250
|
function Qt() {
|
|
251
|
-
if (Ee) return
|
|
251
|
+
if (Ee) return Y;
|
|
252
252
|
Ee = 1;
|
|
253
253
|
var e = Ye, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
254
254
|
function l(n, d, r) {
|
|
@@ -258,7 +258,7 @@ function Qt() {
|
|
|
258
258
|
if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
|
|
259
259
|
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: c.current };
|
|
260
260
|
}
|
|
261
|
-
return
|
|
261
|
+
return Y.Fragment = a, Y.jsx = l, Y.jsxs = l, Y;
|
|
262
262
|
}
|
|
263
263
|
var ke;
|
|
264
264
|
function Yt() {
|
|
@@ -272,7 +272,7 @@ const Zt = (e) => {
|
|
|
272
272
|
children: e.content,
|
|
273
273
|
type: e.variant
|
|
274
274
|
};
|
|
275
|
-
return /* @__PURE__ */ o.jsx(
|
|
275
|
+
return /* @__PURE__ */ o.jsx(Ie, { ...t });
|
|
276
276
|
}, Ft = (e) => {
|
|
277
277
|
if (!e) return null;
|
|
278
278
|
const t = {
|
|
@@ -281,12 +281,12 @@ const Zt = (e) => {
|
|
|
281
281
|
};
|
|
282
282
|
return /* @__PURE__ */ o.jsx(Pe, { ...t });
|
|
283
283
|
}, Pt = (e) => {
|
|
284
|
-
const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s =
|
|
284
|
+
const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = T(() => ({
|
|
285
285
|
url: e.dataSource.url,
|
|
286
286
|
method: e.dataSource.method,
|
|
287
287
|
headers: e.dataSource.headers,
|
|
288
288
|
params: a == null ? void 0 : a.data
|
|
289
|
-
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), c = e.locale ?? "en", i =
|
|
289
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), c = e.locale ?? "en", i = T(() => {
|
|
290
290
|
var n, d, r, u, f;
|
|
291
291
|
const l = {
|
|
292
292
|
title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
|
|
@@ -297,7 +297,7 @@ const Zt = (e) => {
|
|
|
297
297
|
};
|
|
298
298
|
return Object.fromEntries(Object.entries(l).filter(([, _]) => !!_));
|
|
299
299
|
}, [e == null ? void 0 : e.translations]);
|
|
300
|
-
return
|
|
300
|
+
return z(() => {
|
|
301
301
|
e.onResolveProps && e.onResolveProps({
|
|
302
302
|
dataSource: s,
|
|
303
303
|
locale: c,
|
|
@@ -325,12 +325,12 @@ const Zt = (e) => {
|
|
|
325
325
|
}, en = "_summaryCard_jva4h_1", tn = {
|
|
326
326
|
summaryCard: en
|
|
327
327
|
}, nn = (e) => {
|
|
328
|
-
const t = e.dataSource, a =
|
|
328
|
+
const t = e.dataSource, a = T(() => ({
|
|
329
329
|
url: e.dataSource.url,
|
|
330
330
|
method: e.dataSource.method,
|
|
331
331
|
headers: e.dataSource.headers,
|
|
332
332
|
body: t == null ? void 0 : t.data
|
|
333
|
-
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", c =
|
|
333
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", c = T(() => {
|
|
334
334
|
var l, n, d;
|
|
335
335
|
const i = {
|
|
336
336
|
title: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.title,
|
|
@@ -341,7 +341,7 @@ const Zt = (e) => {
|
|
|
341
341
|
Object.entries(i).filter(([, r]) => !!r)
|
|
342
342
|
);
|
|
343
343
|
}, [e == null ? void 0 : e.translations]);
|
|
344
|
-
return
|
|
344
|
+
return z(() => {
|
|
345
345
|
e.onResolveProps && e.onResolveProps({
|
|
346
346
|
dataSource: a,
|
|
347
347
|
locale: s,
|
|
@@ -360,7 +360,7 @@ const Zt = (e) => {
|
|
|
360
360
|
var c;
|
|
361
361
|
return ((c = s[e]) == null ? void 0 : c.entries) || {};
|
|
362
362
|
});
|
|
363
|
-
return
|
|
363
|
+
return T(() => {
|
|
364
364
|
const s = {
|
|
365
365
|
disabled: !1
|
|
366
366
|
};
|
|
@@ -385,31 +385,31 @@ const Zt = (e) => {
|
|
|
385
385
|
inputLabel: d,
|
|
386
386
|
inputPlaceholder: r,
|
|
387
387
|
codeBlockLabel: u
|
|
388
|
-
} = e, f = te.useThemeStore((
|
|
388
|
+
} = e, f = te.useThemeStore((b) => b.theme.mode), [_, h] = q(
|
|
389
389
|
s || ""
|
|
390
|
-
), { disabled:
|
|
390
|
+
), { disabled: p } = B(
|
|
391
391
|
t,
|
|
392
392
|
l
|
|
393
|
-
), m = i ??
|
|
393
|
+
), m = i ?? p, y = c ?? "json", x = {
|
|
394
394
|
url: (n == null ? void 0 : n.url) || "",
|
|
395
395
|
method: (n == null ? void 0 : n.method) || "post",
|
|
396
396
|
headers: n == null ? void 0 : n.headers,
|
|
397
397
|
body: n == null ? void 0 : n.data
|
|
398
|
-
}, g = (
|
|
399
|
-
h(
|
|
400
|
-
const
|
|
401
|
-
[a]:
|
|
398
|
+
}, g = (b) => {
|
|
399
|
+
h(b);
|
|
400
|
+
const C = {
|
|
401
|
+
[a]: b
|
|
402
402
|
};
|
|
403
|
-
O(t,
|
|
403
|
+
O(t, C);
|
|
404
404
|
};
|
|
405
|
-
return
|
|
405
|
+
return z(() => {
|
|
406
406
|
s !== void 0 && s !== _ && h(s);
|
|
407
407
|
}, [s]), /* @__PURE__ */ o.jsx("section", { className: an.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
|
|
408
408
|
wt,
|
|
409
409
|
{
|
|
410
410
|
themeMode: f,
|
|
411
|
-
requestConfig:
|
|
412
|
-
language:
|
|
411
|
+
requestConfig: x,
|
|
412
|
+
language: y,
|
|
413
413
|
disabled: m,
|
|
414
414
|
inputLabel: d,
|
|
415
415
|
inputPlaceholder: r,
|
|
@@ -418,10 +418,10 @@ const Zt = (e) => {
|
|
|
418
418
|
onCodeChange: g
|
|
419
419
|
}
|
|
420
420
|
) });
|
|
421
|
-
}, on = "_body_14tsv_1", cn = "_body_content_14tsv_5",
|
|
421
|
+
}, on = "_body_14tsv_1", cn = "_body_content_14tsv_5", Te = {
|
|
422
422
|
body: on,
|
|
423
423
|
body_content: cn
|
|
424
|
-
}, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className:
|
|
424
|
+
}, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Te.body, children: /* @__PURE__ */ o.jsx("div", { className: Te.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), W = (e) => {
|
|
425
425
|
if (!e)
|
|
426
426
|
return { "content-type": "application/json" };
|
|
427
427
|
if (typeof e == "function")
|
|
@@ -436,7 +436,7 @@ const Zt = (e) => {
|
|
|
436
436
|
}, F = () => new AbortController(), dn = (e, t = {}, a = {}, s = !1, c) => {
|
|
437
437
|
const i = F();
|
|
438
438
|
s && i.abort();
|
|
439
|
-
const l =
|
|
439
|
+
const l = W(t);
|
|
440
440
|
return {
|
|
441
441
|
call: V.get(e, {
|
|
442
442
|
headers: {
|
|
@@ -451,7 +451,7 @@ const Zt = (e) => {
|
|
|
451
451
|
}, fe = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
452
452
|
const l = F();
|
|
453
453
|
c && l.abort();
|
|
454
|
-
const n =
|
|
454
|
+
const n = W(t);
|
|
455
455
|
return {
|
|
456
456
|
call: V.post(e, a, {
|
|
457
457
|
headers: {
|
|
@@ -466,7 +466,7 @@ const Zt = (e) => {
|
|
|
466
466
|
}, _n = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
467
467
|
const l = F();
|
|
468
468
|
c && l.abort();
|
|
469
|
-
const n =
|
|
469
|
+
const n = W(t);
|
|
470
470
|
return {
|
|
471
471
|
call: V.put(e, a, {
|
|
472
472
|
headers: {
|
|
@@ -481,7 +481,7 @@ const Zt = (e) => {
|
|
|
481
481
|
}, un = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
482
482
|
const l = F();
|
|
483
483
|
c && l.abort();
|
|
484
|
-
const n =
|
|
484
|
+
const n = W(t);
|
|
485
485
|
return {
|
|
486
486
|
call: V.patch(e, a, {
|
|
487
487
|
headers: {
|
|
@@ -496,7 +496,7 @@ const Zt = (e) => {
|
|
|
496
496
|
}, hn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
497
497
|
const l = F();
|
|
498
498
|
c && l.abort();
|
|
499
|
-
const n =
|
|
499
|
+
const n = W(t);
|
|
500
500
|
return {
|
|
501
501
|
call: V.delete(e, {
|
|
502
502
|
headers: {
|
|
@@ -509,7 +509,7 @@ const Zt = (e) => {
|
|
|
509
509
|
}),
|
|
510
510
|
controller: l
|
|
511
511
|
};
|
|
512
|
-
},
|
|
512
|
+
}, ze = () => {
|
|
513
513
|
let e;
|
|
514
514
|
return { callEndpoint: async (s) => {
|
|
515
515
|
s.controller && (e = s.controller);
|
|
@@ -525,9 +525,9 @@ const Zt = (e) => {
|
|
|
525
525
|
} };
|
|
526
526
|
}, Ge = async (e, t, a = "", s = {}, c = {}) => {
|
|
527
527
|
try {
|
|
528
|
-
const { callEndpoint: i } =
|
|
528
|
+
const { callEndpoint: i } = ze(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
|
|
529
529
|
a && r.append("hash_code", a), d && r.append("sessionId", d);
|
|
530
|
-
const u = `${l}/not-front/next-ui/?${r.toString()}`, f =
|
|
530
|
+
const u = `${l}/not-front/next-ui/?${r.toString()}`, f = W(n), _ = fe(
|
|
531
531
|
u,
|
|
532
532
|
f,
|
|
533
533
|
s,
|
|
@@ -539,11 +539,11 @@ const Zt = (e) => {
|
|
|
539
539
|
} catch (i) {
|
|
540
540
|
return console.error(i), Promise.reject(i);
|
|
541
541
|
}
|
|
542
|
-
},
|
|
543
|
-
const e = v((n) => n), { callEndpoint: t } =
|
|
542
|
+
}, K = () => {
|
|
543
|
+
const e = v((n) => n), { callEndpoint: t } = ze(), a = async (n, d, r, u, f = !0) => {
|
|
544
544
|
var _;
|
|
545
545
|
try {
|
|
546
|
-
const h = (_ = e[n]) == null ? void 0 : _.apiConfig,
|
|
546
|
+
const h = (_ = e[n]) == null ? void 0 : _.apiConfig, p = {
|
|
547
547
|
state: { ...r },
|
|
548
548
|
triggerKey: u
|
|
549
549
|
};
|
|
@@ -551,7 +551,7 @@ const Zt = (e) => {
|
|
|
551
551
|
h,
|
|
552
552
|
n,
|
|
553
553
|
d,
|
|
554
|
-
|
|
554
|
+
p
|
|
555
555
|
);
|
|
556
556
|
} catch (h) {
|
|
557
557
|
throw f && H(n, !1), console.error("[getNextUI] Error fetching next UI:", h), h;
|
|
@@ -647,7 +647,7 @@ const Zt = (e) => {
|
|
|
647
647
|
items: t,
|
|
648
648
|
responseKey: a
|
|
649
649
|
}) => {
|
|
650
|
-
const { getNextUI: s } =
|
|
650
|
+
const { getNextUI: s } = K(), c = R(
|
|
651
651
|
async ({ actionType: l, hashCode: n, redirectUrl: d }) => {
|
|
652
652
|
var r;
|
|
653
653
|
try {
|
|
@@ -659,7 +659,7 @@ const Zt = (e) => {
|
|
|
659
659
|
{ ...(r = v.getState()[e]) == null ? void 0 : r.entries },
|
|
660
660
|
a
|
|
661
661
|
);
|
|
662
|
-
u != null && u.data &&
|
|
662
|
+
u != null && u.data && $(e, u == null ? void 0 : u.data);
|
|
663
663
|
break;
|
|
664
664
|
case "REDIRECT":
|
|
665
665
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
@@ -673,7 +673,7 @@ const Zt = (e) => {
|
|
|
673
673
|
}
|
|
674
674
|
},
|
|
675
675
|
[]
|
|
676
|
-
), i =
|
|
676
|
+
), i = T(() => t == null ? void 0 : t.map((l) => ({
|
|
677
677
|
title: l == null ? void 0 : l.title,
|
|
678
678
|
component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(l) })
|
|
679
679
|
})), []);
|
|
@@ -691,20 +691,20 @@ const Zt = (e) => {
|
|
|
691
691
|
dependencies: r,
|
|
692
692
|
onClick: u,
|
|
693
693
|
...f
|
|
694
|
-
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI:
|
|
694
|
+
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: p } = K(), { disabled: m } = B(
|
|
695
695
|
t,
|
|
696
696
|
r
|
|
697
|
-
),
|
|
697
|
+
), y = {
|
|
698
698
|
...f,
|
|
699
699
|
children: l ?? i
|
|
700
|
-
},
|
|
701
|
-
var
|
|
700
|
+
}, x = (y == null ? void 0 : y.disabled) ?? m, g = R(async () => {
|
|
701
|
+
var b, C, j;
|
|
702
702
|
try {
|
|
703
|
-
const
|
|
704
|
-
...(
|
|
703
|
+
const N = {
|
|
704
|
+
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
705
705
|
[s]: { status: 200 }
|
|
706
706
|
};
|
|
707
|
-
switch (O(t,
|
|
707
|
+
switch (O(t, N), c) {
|
|
708
708
|
case "CLOSE_MODAL":
|
|
709
709
|
ge(t, !1);
|
|
710
710
|
break;
|
|
@@ -718,32 +718,32 @@ const Zt = (e) => {
|
|
|
718
718
|
const w = await _(
|
|
719
719
|
t,
|
|
720
720
|
a,
|
|
721
|
-
|
|
721
|
+
N,
|
|
722
722
|
s
|
|
723
723
|
);
|
|
724
|
-
w != null && w.data &&
|
|
724
|
+
w != null && w.data && $(t, w == null ? void 0 : w.data);
|
|
725
725
|
break;
|
|
726
726
|
}
|
|
727
727
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
728
|
-
const w = await
|
|
728
|
+
const w = await p(
|
|
729
729
|
t,
|
|
730
730
|
a,
|
|
731
|
-
|
|
731
|
+
N,
|
|
732
732
|
s,
|
|
733
733
|
n
|
|
734
734
|
);
|
|
735
|
-
w != null && w.data &&
|
|
735
|
+
w != null && w.data && $(t, w == null ? void 0 : w.data);
|
|
736
736
|
break;
|
|
737
737
|
}
|
|
738
738
|
case "GET_DATA_SOURCE": {
|
|
739
739
|
const w = await _(
|
|
740
740
|
t,
|
|
741
741
|
a,
|
|
742
|
-
|
|
742
|
+
N,
|
|
743
743
|
s
|
|
744
|
-
), E = (
|
|
744
|
+
), E = (C = w == null ? void 0 : w.data) == null ? void 0 : C.content;
|
|
745
745
|
if ((E == null ? void 0 : E.type) !== "fetch") break;
|
|
746
|
-
const D = E == null ? void 0 : E.dataSource,
|
|
746
|
+
const D = E == null ? void 0 : E.dataSource, A = await h(
|
|
747
747
|
D,
|
|
748
748
|
t,
|
|
749
749
|
// Avoid to handle loading state until all the requests are done
|
|
@@ -751,8 +751,8 @@ const Zt = (e) => {
|
|
|
751
751
|
), G = {
|
|
752
752
|
...(j = v.getState()[t]) == null ? void 0 : j.entries,
|
|
753
753
|
[s]: {
|
|
754
|
-
status:
|
|
755
|
-
content:
|
|
754
|
+
status: A == null ? void 0 : A.status,
|
|
755
|
+
content: A == null ? void 0 : A.data
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
758
|
O(t, G);
|
|
@@ -762,7 +762,7 @@ const Zt = (e) => {
|
|
|
762
762
|
G,
|
|
763
763
|
s
|
|
764
764
|
);
|
|
765
|
-
U != null && U.data &&
|
|
765
|
+
U != null && U.data && $(t, U == null ? void 0 : U.data);
|
|
766
766
|
break;
|
|
767
767
|
}
|
|
768
768
|
case "REDIRECT":
|
|
@@ -772,16 +772,16 @@ const Zt = (e) => {
|
|
|
772
772
|
console.warn(`Unhandled actionType: ${c}`);
|
|
773
773
|
break;
|
|
774
774
|
}
|
|
775
|
-
} catch (
|
|
776
|
-
alert(JSON.stringify(
|
|
775
|
+
} catch (N) {
|
|
776
|
+
alert(JSON.stringify(N));
|
|
777
777
|
}
|
|
778
778
|
}, [c, n, a, s, t]);
|
|
779
779
|
return /* @__PURE__ */ o.jsx(
|
|
780
780
|
tt,
|
|
781
781
|
{
|
|
782
|
-
...
|
|
783
|
-
disabled:
|
|
784
|
-
onClick: () => !
|
|
782
|
+
...y,
|
|
783
|
+
disabled: x,
|
|
784
|
+
onClick: () => !x && (u ?? g)()
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
787
|
}, S = (e, t, a, s) => {
|
|
@@ -794,34 +794,34 @@ const Zt = (e) => {
|
|
|
794
794
|
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(fn, { ...n, userFlow: e, pageId: t }),
|
|
795
795
|
button: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
|
|
796
796
|
cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
|
|
797
|
-
cardNotification: (n) => /* @__PURE__ */ o.jsx(
|
|
798
|
-
chart: (n) => /* @__PURE__ */ o.jsx(
|
|
799
|
-
dataCard: (n) => /* @__PURE__ */ o.jsx(
|
|
800
|
-
checkbox: (n) => /* @__PURE__ */ o.jsx(
|
|
801
|
-
code: (n) => /* @__PURE__ */ o.jsx(
|
|
802
|
-
divider: (n) => /* @__PURE__ */ o.jsx(
|
|
803
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(
|
|
797
|
+
cardNotification: (n) => /* @__PURE__ */ o.jsx(gn, { ...n }),
|
|
798
|
+
chart: (n) => /* @__PURE__ */ o.jsx(zn, { ...n, userFlow: e }),
|
|
799
|
+
dataCard: (n) => /* @__PURE__ */ o.jsx(An, { ...n, userFlow: e, pageId: t }),
|
|
800
|
+
checkbox: (n) => /* @__PURE__ */ o.jsx(pn, { ...n, userFlow: e, pageId: t }),
|
|
801
|
+
code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
|
|
802
|
+
divider: (n) => /* @__PURE__ */ o.jsx(On, { ...n }),
|
|
803
|
+
drawer: (n) => /* @__PURE__ */ o.jsx(Gs, { ...n, userFlow: e, pageId: t }),
|
|
804
804
|
heading: (n) => Zt(n),
|
|
805
|
-
link: (n) => /* @__PURE__ */ o.jsx(
|
|
806
|
-
pill: (n) => /* @__PURE__ */ o.jsx(
|
|
807
|
-
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(
|
|
808
|
-
modal: (n) => /* @__PURE__ */ o.jsx(
|
|
809
|
-
roundButton: (n) => /* @__PURE__ */ o.jsx(
|
|
810
|
-
row: (n) => /* @__PURE__ */ o.jsx(
|
|
811
|
-
select: (n) => /* @__PURE__ */ o.jsx(
|
|
812
|
-
switch: (n) => /* @__PURE__ */ o.jsx(
|
|
813
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(
|
|
814
|
-
table: (n) => /* @__PURE__ */ o.jsx(
|
|
805
|
+
link: (n) => /* @__PURE__ */ o.jsx(Vn, { ...n, userFlow: e, pageId: t }),
|
|
806
|
+
pill: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n }),
|
|
807
|
+
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
|
|
808
|
+
modal: (n) => /* @__PURE__ */ o.jsx(Wn, { ...n, userFlow: e, pageId: t }),
|
|
809
|
+
roundButton: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n, userFlow: e, pageId: t }),
|
|
810
|
+
row: (n) => /* @__PURE__ */ o.jsx(ns, { ...n, userFlow: e, pageId: t }),
|
|
811
|
+
select: (n) => /* @__PURE__ */ o.jsx(ds, { ...n, userFlow: e, pageId: t }),
|
|
812
|
+
switch: (n) => /* @__PURE__ */ o.jsx(js, { ...n, userFlow: e, pageId: t }),
|
|
813
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
|
|
814
|
+
table: (n) => /* @__PURE__ */ o.jsx(Es, { ...n, userFlow: e, pageId: t }),
|
|
815
815
|
tabs: (n) => /* @__PURE__ */ o.jsx(qs, { ...n, userFlow: e, pageId: t }),
|
|
816
816
|
text: (n) => Ft(n),
|
|
817
|
-
textField: (n) => /* @__PURE__ */ o.jsx(
|
|
818
|
-
toast: (n) => /* @__PURE__ */ o.jsx(
|
|
817
|
+
textField: (n) => /* @__PURE__ */ o.jsx(Rs, { ...n, userFlow: e, pageId: t }),
|
|
818
|
+
toast: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n, userFlow: e, pageId: t })
|
|
819
819
|
};
|
|
820
820
|
return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
|
|
821
821
|
const d = c[n.component];
|
|
822
822
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
823
823
|
});
|
|
824
|
-
}, yn = "_slotStack_12u4t_5",
|
|
824
|
+
}, yn = "_slotStack_12u4t_5", Ae = {
|
|
825
825
|
slotStack: yn
|
|
826
826
|
}, xn = (e) => {
|
|
827
827
|
const {
|
|
@@ -845,31 +845,23 @@ const Zt = (e) => {
|
|
|
845
845
|
t,
|
|
846
846
|
a,
|
|
847
847
|
d && d.length > 0 ? d : null
|
|
848
|
-
), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className:
|
|
848
|
+
), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: f.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `card-accordion-body-${c}-${x}`)) }) : void 0, p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `card-accordion-actions-${c}-${x}`)) }) : void 0, m = r.disabled || u;
|
|
849
849
|
return /* @__PURE__ */ o.jsx(
|
|
850
850
|
nt,
|
|
851
851
|
{
|
|
852
852
|
...r,
|
|
853
853
|
disabled: m,
|
|
854
|
-
actionContent:
|
|
854
|
+
actionContent: p,
|
|
855
855
|
children: h ?? null
|
|
856
856
|
}
|
|
857
857
|
);
|
|
858
|
-
}, gn =
|
|
859
|
-
cardNotificationNotFront: gn
|
|
860
|
-
}, bn = (e) => {
|
|
858
|
+
}, gn = (e) => {
|
|
861
859
|
const { content: t, description: a, ...s } = e, c = {
|
|
862
860
|
...s,
|
|
863
861
|
children: t ?? a
|
|
864
862
|
};
|
|
865
|
-
return /* @__PURE__ */ o.jsx(
|
|
866
|
-
|
|
867
|
-
{
|
|
868
|
-
...c,
|
|
869
|
-
className: pn.cardNotificationNotFront
|
|
870
|
-
}
|
|
871
|
-
);
|
|
872
|
-
}, jn = (e) => {
|
|
863
|
+
return /* @__PURE__ */ o.jsx(me, { ...c });
|
|
864
|
+
}, pn = (e) => {
|
|
873
865
|
const {
|
|
874
866
|
userFlow: t,
|
|
875
867
|
pageId: a,
|
|
@@ -882,55 +874,56 @@ const Zt = (e) => {
|
|
|
882
874
|
...r
|
|
883
875
|
} = e, u = {
|
|
884
876
|
...r
|
|
885
|
-
}, { getNextUI: f } =
|
|
877
|
+
}, { getNextUI: f } = K(), [_, h] = q(l || !1), { disabled: p } = B(
|
|
886
878
|
t,
|
|
887
879
|
d
|
|
888
|
-
), m =
|
|
880
|
+
), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
|
|
889
881
|
var g;
|
|
890
882
|
try {
|
|
891
|
-
const
|
|
892
|
-
h(
|
|
893
|
-
const
|
|
883
|
+
const b = !_;
|
|
884
|
+
h(b);
|
|
885
|
+
const C = {
|
|
894
886
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
895
|
-
[s]:
|
|
887
|
+
[s]: b
|
|
896
888
|
};
|
|
897
|
-
switch (O(t,
|
|
889
|
+
switch (O(t, C), c) {
|
|
898
890
|
case "GO_TO_NEXT_UI":
|
|
899
891
|
const j = await f(
|
|
900
892
|
t,
|
|
901
893
|
a,
|
|
902
|
-
|
|
894
|
+
C,
|
|
903
895
|
s
|
|
904
896
|
);
|
|
905
|
-
j != null && j.data &&
|
|
897
|
+
j != null && j.data && $(t, j == null ? void 0 : j.data);
|
|
906
898
|
break;
|
|
907
899
|
default:
|
|
908
900
|
console.warn(`Unhandled actionType: ${c}`);
|
|
909
901
|
break;
|
|
910
902
|
}
|
|
911
|
-
} catch (
|
|
912
|
-
console.error("Error in checkbox action:",
|
|
903
|
+
} catch (b) {
|
|
904
|
+
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
913
905
|
}
|
|
914
|
-
}, [t, a, s, c, _]),
|
|
906
|
+
}, [t, a, s, c, _]), x = (u == null ? void 0 : u.disabled) ?? p;
|
|
915
907
|
return /* @__PURE__ */ o.jsx(
|
|
916
908
|
st,
|
|
917
909
|
{
|
|
918
910
|
...u,
|
|
919
911
|
labelRight: m,
|
|
920
912
|
checked: _,
|
|
921
|
-
disabled:
|
|
913
|
+
disabled: x,
|
|
922
914
|
onChange: () => {
|
|
923
|
-
!
|
|
915
|
+
!x && y();
|
|
924
916
|
}
|
|
925
917
|
}
|
|
926
918
|
);
|
|
927
|
-
},
|
|
928
|
-
codeEditor:
|
|
929
|
-
codeEditor_label:
|
|
930
|
-
codeEditor_wrapper:
|
|
931
|
-
input:
|
|
932
|
-
preview:
|
|
933
|
-
|
|
919
|
+
}, bn = "_codeEditor_1wi2p_1", jn = "_codeEditor_label_1wi2p_4", wn = "_codeEditor_wrapper_1wi2p_13", Cn = "_input_1wi2p_17", Nn = "_preview_1wi2p_18", vn = "_preview_inner_1wi2p_33", X = {
|
|
920
|
+
codeEditor: bn,
|
|
921
|
+
codeEditor_label: jn,
|
|
922
|
+
codeEditor_wrapper: wn,
|
|
923
|
+
input: Cn,
|
|
924
|
+
preview: Nn,
|
|
925
|
+
preview_inner: vn
|
|
926
|
+
}, Sn = (e) => {
|
|
934
927
|
const {
|
|
935
928
|
userFlow: t,
|
|
936
929
|
responseKey: a,
|
|
@@ -941,39 +934,40 @@ const Zt = (e) => {
|
|
|
941
934
|
required: n,
|
|
942
935
|
dependencies: d,
|
|
943
936
|
disabled: r,
|
|
944
|
-
showPreview: u
|
|
945
|
-
|
|
937
|
+
showPreview: u,
|
|
938
|
+
height: f = "400px"
|
|
939
|
+
} = e, [_, h] = q(l ?? ""), p = te.useThemeStore((C) => C.theme.mode), { disabled: m } = B(
|
|
946
940
|
t,
|
|
947
941
|
d
|
|
948
|
-
),
|
|
942
|
+
), y = r ?? m, x = {
|
|
949
943
|
json: we(),
|
|
950
944
|
markdown: Nt(),
|
|
951
945
|
sql: vt(),
|
|
952
946
|
yaml: St()
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
const
|
|
956
|
-
[a]:
|
|
947
|
+
}, g = T(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (C) => {
|
|
948
|
+
h(C);
|
|
949
|
+
const j = {
|
|
950
|
+
[a]: C
|
|
957
951
|
};
|
|
958
|
-
O(t,
|
|
952
|
+
O(t, j);
|
|
959
953
|
};
|
|
960
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
961
|
-
|
|
962
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
954
|
+
return /* @__PURE__ */ o.jsxs("div", { className: X.codeEditor, children: [
|
|
955
|
+
g && g !== "" && /* @__PURE__ */ o.jsx("label", { className: X.codeEditor_label, children: g }),
|
|
956
|
+
/* @__PURE__ */ o.jsxs("div", { className: X.codeEditor_wrapper, children: [
|
|
963
957
|
/* @__PURE__ */ o.jsx(
|
|
964
958
|
Ct,
|
|
965
959
|
{
|
|
966
|
-
className:
|
|
967
|
-
value:
|
|
968
|
-
height:
|
|
960
|
+
className: X.input,
|
|
961
|
+
value: _,
|
|
962
|
+
height: f,
|
|
969
963
|
placeholder: i,
|
|
970
964
|
extensions: [x[c] ?? we()],
|
|
971
|
-
onChange: (
|
|
972
|
-
theme:
|
|
973
|
-
editable: !
|
|
965
|
+
onChange: (C) => b(C),
|
|
966
|
+
theme: p,
|
|
967
|
+
editable: !y
|
|
974
968
|
}
|
|
975
969
|
),
|
|
976
|
-
c
|
|
970
|
+
c === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: X.preview, style: { height: f }, children: /* @__PURE__ */ o.jsx(Be, { className: X.preview_inner, children: _ }) })
|
|
977
971
|
] })
|
|
978
972
|
] });
|
|
979
973
|
};
|
|
@@ -983,9 +977,9 @@ var de = { exports: {} };
|
|
|
983
977
|
Licensed under the MIT License (MIT), see
|
|
984
978
|
http://jedwatson.github.io/classnames
|
|
985
979
|
*/
|
|
986
|
-
var
|
|
987
|
-
function
|
|
988
|
-
return
|
|
980
|
+
var qe;
|
|
981
|
+
function En() {
|
|
982
|
+
return qe || (qe = 1, (function(e) {
|
|
989
983
|
(function() {
|
|
990
984
|
var t = {}.hasOwnProperty;
|
|
991
985
|
function a() {
|
|
@@ -1016,10 +1010,10 @@ function kn() {
|
|
|
1016
1010
|
})();
|
|
1017
1011
|
})(de)), de.exports;
|
|
1018
1012
|
}
|
|
1019
|
-
var
|
|
1020
|
-
const ee = /* @__PURE__ */ Wt(
|
|
1021
|
-
slotStack:
|
|
1022
|
-
},
|
|
1013
|
+
var kn = En();
|
|
1014
|
+
const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
1015
|
+
slotStack: Tn
|
|
1016
|
+
}, An = (e) => {
|
|
1023
1017
|
const {
|
|
1024
1018
|
userFlow: t,
|
|
1025
1019
|
pageId: a,
|
|
@@ -1039,7 +1033,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1039
1033
|
t,
|
|
1040
1034
|
a,
|
|
1041
1035
|
n && n.length > 0 ? n : null
|
|
1042
|
-
),
|
|
1036
|
+
), p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: $e.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `data-card-body-${c}-${x}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: $e.slotStack, children: h.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `data-card-top-${c}-${x}`)) }) : void 0;
|
|
1043
1037
|
return /* @__PURE__ */ o.jsx(
|
|
1044
1038
|
at,
|
|
1045
1039
|
{
|
|
@@ -1047,12 +1041,12 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1047
1041
|
icon: d,
|
|
1048
1042
|
headerStatusColor: f,
|
|
1049
1043
|
topContent: m,
|
|
1050
|
-
children:
|
|
1044
|
+
children: p
|
|
1051
1045
|
}
|
|
1052
1046
|
);
|
|
1053
|
-
},
|
|
1054
|
-
dividerNotFront:
|
|
1055
|
-
},
|
|
1047
|
+
}, qn = "_dividerNotFront_tze3j_1", $n = {
|
|
1048
|
+
dividerNotFront: qn
|
|
1049
|
+
}, On = (e) => /* @__PURE__ */ o.jsx(rt, { ...e, className: $n.dividerNotFront }), Rn = (e, t, a) => {
|
|
1056
1050
|
const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
|
|
1057
1051
|
if (l.push(`${n}=${t}`), typeof a == "string") {
|
|
1058
1052
|
const u = (c == null ? void 0 : c.text) ?? "text";
|
|
@@ -1070,7 +1064,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1070
1064
|
const { type: s, url: c, method: i, headers: l } = e;
|
|
1071
1065
|
return s === "rest" ? {
|
|
1072
1066
|
type: "rest",
|
|
1073
|
-
url:
|
|
1067
|
+
url: Rn(e, t, a),
|
|
1074
1068
|
method: i,
|
|
1075
1069
|
headers: l,
|
|
1076
1070
|
data: (e == null ? void 0 : e.data) || {}
|
|
@@ -1087,46 +1081,46 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1087
1081
|
}
|
|
1088
1082
|
};
|
|
1089
1083
|
}, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ue = (e, t, a, s) => {
|
|
1090
|
-
const c =
|
|
1084
|
+
const c = L.query(e, t), i = c == null ? void 0 : c.map((r) => {
|
|
1091
1085
|
var u, f;
|
|
1092
1086
|
if (a) {
|
|
1093
1087
|
const _ = {};
|
|
1094
|
-
for (const [h,
|
|
1095
|
-
if (typeof
|
|
1096
|
-
const m =
|
|
1097
|
-
m.translations && String(
|
|
1098
|
-
m.translations[String(
|
|
1099
|
-
) : _[h] = _e(
|
|
1088
|
+
for (const [h, p] of Object.entries(a))
|
|
1089
|
+
if (typeof p == "object" && "path" in p) {
|
|
1090
|
+
const m = p, y = (u = L.query(r, m.path)) == null ? void 0 : u[0];
|
|
1091
|
+
m.translations && String(y) in m.translations ? _[h] = _e(
|
|
1092
|
+
m.translations[String(y)]
|
|
1093
|
+
) : _[h] = _e(y);
|
|
1100
1094
|
} else {
|
|
1101
|
-
const m =
|
|
1102
|
-
_[h] = _e((f =
|
|
1095
|
+
const m = p;
|
|
1096
|
+
_[h] = _e((f = L.query(r, m)) == null ? void 0 : f[0]);
|
|
1103
1097
|
}
|
|
1104
1098
|
return _;
|
|
1105
1099
|
} else
|
|
1106
1100
|
return r;
|
|
1107
|
-
}), l =
|
|
1101
|
+
}), l = L.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? c.length, n = L.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
|
|
1108
1102
|
size: l,
|
|
1109
1103
|
total: n,
|
|
1110
|
-
totalPages: s != null && s.totalPages ?
|
|
1104
|
+
totalPages: s != null && s.totalPages ? L.value(
|
|
1111
1105
|
e,
|
|
1112
1106
|
(s == null ? void 0 : s.totalPages) ?? "$.meta.totalPages"
|
|
1113
1107
|
) : l > 0 ? Math.ceil(n / l) : 0
|
|
1114
1108
|
};
|
|
1115
1109
|
return { items: i, pagination: d };
|
|
1116
1110
|
}, se = ({ withPadding: e = !1 }) => {
|
|
1117
|
-
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color:
|
|
1111
|
+
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: I.labelColor }, children: a });
|
|
1118
1112
|
return /* @__PURE__ */ o.jsx(
|
|
1119
1113
|
Et,
|
|
1120
1114
|
{
|
|
1121
1115
|
formatter: t,
|
|
1122
1116
|
wrapperStyle: {
|
|
1123
|
-
fontSize:
|
|
1124
|
-
fontFamily:
|
|
1117
|
+
fontSize: I.fontSize,
|
|
1118
|
+
fontFamily: I.fontFamily,
|
|
1125
1119
|
padding: e ? "1rem 0" : "0"
|
|
1126
1120
|
}
|
|
1127
1121
|
}
|
|
1128
1122
|
);
|
|
1129
|
-
},
|
|
1123
|
+
}, Dn = ({
|
|
1130
1124
|
active: e,
|
|
1131
1125
|
payload: t,
|
|
1132
1126
|
label: a,
|
|
@@ -1136,9 +1130,9 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1136
1130
|
if (!e || !t || !t.length)
|
|
1137
1131
|
return null;
|
|
1138
1132
|
const c = {
|
|
1139
|
-
backgroundColor:
|
|
1140
|
-
borderRadius:
|
|
1141
|
-
color:
|
|
1133
|
+
backgroundColor: I.tooltipBg,
|
|
1134
|
+
borderRadius: I.tooltipBorderRadius,
|
|
1135
|
+
color: I.tooltipColor,
|
|
1142
1136
|
padding: "8px 12px",
|
|
1143
1137
|
border: "1px solid #e5e7eb"
|
|
1144
1138
|
};
|
|
@@ -1154,41 +1148,41 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1154
1148
|
}, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
|
|
1155
1149
|
kt,
|
|
1156
1150
|
{
|
|
1157
|
-
content: /* @__PURE__ */ o.jsx(
|
|
1151
|
+
content: /* @__PURE__ */ o.jsx(Dn, { tooltipKey: e })
|
|
1158
1152
|
}
|
|
1159
1153
|
), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
1160
|
-
|
|
1154
|
+
Tt,
|
|
1161
1155
|
{
|
|
1162
1156
|
dataKey: e,
|
|
1163
1157
|
hide: t,
|
|
1164
1158
|
tick: {
|
|
1165
|
-
fill:
|
|
1166
|
-
fontSize:
|
|
1159
|
+
fill: I.labelColor,
|
|
1160
|
+
fontSize: I.fontSize
|
|
1167
1161
|
}
|
|
1168
1162
|
}
|
|
1169
1163
|
), je = () => /* @__PURE__ */ o.jsx(
|
|
1170
|
-
|
|
1164
|
+
At,
|
|
1171
1165
|
{
|
|
1172
1166
|
tick: {
|
|
1173
|
-
fill:
|
|
1174
|
-
fontSize:
|
|
1167
|
+
fill: I.labelColor,
|
|
1168
|
+
fontSize: I.fontSize
|
|
1175
1169
|
}
|
|
1176
1170
|
}
|
|
1177
|
-
),
|
|
1171
|
+
), Ln = (e) => {
|
|
1178
1172
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1179
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1173
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(qt, { data: t, children: [
|
|
1180
1174
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1181
1175
|
/* @__PURE__ */ o.jsx(be, { dataKey: a }),
|
|
1182
1176
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1183
1177
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1184
1178
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1185
1179
|
s.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1186
|
-
|
|
1180
|
+
$t,
|
|
1187
1181
|
{
|
|
1188
1182
|
type: "monotone",
|
|
1189
1183
|
dataKey: i,
|
|
1190
|
-
stroke:
|
|
1191
|
-
fill:
|
|
1184
|
+
stroke: M[l % M.length],
|
|
1185
|
+
fill: M[l % M.length]
|
|
1192
1186
|
},
|
|
1193
1187
|
i
|
|
1194
1188
|
))
|
|
@@ -1205,12 +1199,12 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1205
1199
|
Rt,
|
|
1206
1200
|
{
|
|
1207
1201
|
dataKey: i,
|
|
1208
|
-
fill:
|
|
1202
|
+
fill: M[l % M.length]
|
|
1209
1203
|
},
|
|
1210
1204
|
i
|
|
1211
1205
|
))
|
|
1212
1206
|
] }) });
|
|
1213
|
-
},
|
|
1207
|
+
}, Bn = (e) => {
|
|
1214
1208
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1215
1209
|
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
|
|
1216
1210
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
@@ -1223,14 +1217,14 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1223
1217
|
{
|
|
1224
1218
|
type: "monotone",
|
|
1225
1219
|
dataKey: i,
|
|
1226
|
-
stroke:
|
|
1220
|
+
stroke: M[l % M.length],
|
|
1227
1221
|
strokeWidth: 2,
|
|
1228
1222
|
dot: !1
|
|
1229
1223
|
},
|
|
1230
1224
|
i
|
|
1231
1225
|
))
|
|
1232
1226
|
] }) });
|
|
1233
|
-
},
|
|
1227
|
+
}, Kn = (e) => {
|
|
1234
1228
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
|
|
1235
1229
|
cx: l,
|
|
1236
1230
|
cy: n,
|
|
@@ -1239,25 +1233,25 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1239
1233
|
outerRadius: u,
|
|
1240
1234
|
value: f
|
|
1241
1235
|
}) => {
|
|
1242
|
-
const _ = Math.PI / 180, h = 25 + r + (u - r),
|
|
1236
|
+
const _ = Math.PI / 180, h = 25 + r + (u - r), p = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
|
|
1243
1237
|
return /* @__PURE__ */ o.jsx(
|
|
1244
1238
|
"text",
|
|
1245
1239
|
{
|
|
1246
|
-
x:
|
|
1240
|
+
x: p,
|
|
1247
1241
|
y: m,
|
|
1248
|
-
fill:
|
|
1249
|
-
color:
|
|
1242
|
+
fill: I.labelColor,
|
|
1243
|
+
color: I.labelColor,
|
|
1250
1244
|
textAnchor: "middle",
|
|
1251
1245
|
dominantBaseline: "central",
|
|
1252
1246
|
children: f
|
|
1253
1247
|
}
|
|
1254
1248
|
);
|
|
1255
1249
|
};
|
|
1256
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1250
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(It, { children: [
|
|
1257
1251
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1258
1252
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1259
1253
|
/* @__PURE__ */ o.jsx(
|
|
1260
|
-
|
|
1254
|
+
Bt,
|
|
1261
1255
|
{
|
|
1262
1256
|
data: t,
|
|
1263
1257
|
dataKey: s[0],
|
|
@@ -1267,7 +1261,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1267
1261
|
children: t.map((l, n) => /* @__PURE__ */ o.jsx(
|
|
1268
1262
|
Kt,
|
|
1269
1263
|
{
|
|
1270
|
-
fill:
|
|
1264
|
+
fill: M[n % M.length]
|
|
1271
1265
|
},
|
|
1272
1266
|
`cell-${n}`
|
|
1273
1267
|
))
|
|
@@ -1275,11 +1269,11 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1275
1269
|
)
|
|
1276
1270
|
] }) });
|
|
1277
1271
|
}, Mn = {
|
|
1278
|
-
area:
|
|
1272
|
+
area: Ln,
|
|
1279
1273
|
bar: In,
|
|
1280
|
-
line:
|
|
1281
|
-
pie:
|
|
1282
|
-
},
|
|
1274
|
+
line: Bn,
|
|
1275
|
+
pie: Kn
|
|
1276
|
+
}, M = [
|
|
1283
1277
|
"var(--color-primitive-palette-1-50)",
|
|
1284
1278
|
"var(--color-primitive-palette-2-50)",
|
|
1285
1279
|
"var(--color-primitive-palette-3-50)",
|
|
@@ -1297,46 +1291,46 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1297
1291
|
"var(--color-primitive-palette-15-50)",
|
|
1298
1292
|
"var(--color-primitive-palette-16-50)",
|
|
1299
1293
|
"var(--color-primitive-palette-17-50)"
|
|
1300
|
-
],
|
|
1294
|
+
], I = {
|
|
1301
1295
|
fontFamily: "Roboto, sans-serif",
|
|
1302
1296
|
fontSize: 12,
|
|
1303
1297
|
labelColor: "var(--color-neutral-90)",
|
|
1304
1298
|
tooltipBg: "#fff",
|
|
1305
1299
|
tooltipColor: "#000",
|
|
1306
1300
|
tooltipBorderRadius: "4px"
|
|
1307
|
-
},
|
|
1301
|
+
}, zn = (e) => {
|
|
1308
1302
|
const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = Mn[l.type];
|
|
1309
1303
|
if (!n)
|
|
1310
1304
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1311
|
-
const { fetchDataSource: d } =
|
|
1312
|
-
var m,
|
|
1305
|
+
const { fetchDataSource: d } = K(), [r, u] = q(!1), [f, _] = q([]), h = async () => {
|
|
1306
|
+
var m, y;
|
|
1313
1307
|
try {
|
|
1314
1308
|
u(!0);
|
|
1315
|
-
const { jsonPathData:
|
|
1309
|
+
const { jsonPathData: x, mapperData: g } = i, b = pe(
|
|
1316
1310
|
i,
|
|
1317
1311
|
1
|
|
1318
|
-
),
|
|
1319
|
-
|
|
1312
|
+
), C = await d(
|
|
1313
|
+
b,
|
|
1320
1314
|
a,
|
|
1321
1315
|
!1
|
|
1322
|
-
), j =
|
|
1316
|
+
), j = x ? (m = Ue(C == null ? void 0 : C.data, x, g)) == null ? void 0 : m.items : (y = C == null ? void 0 : C.data) == null ? void 0 : y.data;
|
|
1323
1317
|
_(j), u(!1);
|
|
1324
|
-
} catch (
|
|
1325
|
-
alert(JSON.stringify(
|
|
1318
|
+
} catch (x) {
|
|
1319
|
+
alert(JSON.stringify(x)), u(!1);
|
|
1326
1320
|
}
|
|
1327
1321
|
};
|
|
1328
|
-
|
|
1322
|
+
z(() => {
|
|
1329
1323
|
i ? h() : _(l.data);
|
|
1330
1324
|
}, []);
|
|
1331
|
-
const
|
|
1325
|
+
const p = {
|
|
1332
1326
|
...l,
|
|
1333
1327
|
data: f
|
|
1334
1328
|
};
|
|
1335
|
-
return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(
|
|
1336
|
-
},
|
|
1337
|
-
header:
|
|
1338
|
-
header_content:
|
|
1339
|
-
},
|
|
1329
|
+
return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(p) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
|
|
1330
|
+
}, Gn = "_header_g1eri_1", Un = "_header_content_g1eri_5", Oe = {
|
|
1331
|
+
header: Gn,
|
|
1332
|
+
header_content: Un
|
|
1333
|
+
}, Jn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), Vn = (e) => {
|
|
1340
1334
|
const {
|
|
1341
1335
|
userFlow: t,
|
|
1342
1336
|
pageId: a,
|
|
@@ -1349,29 +1343,29 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1349
1343
|
component: r,
|
|
1350
1344
|
hash: u,
|
|
1351
1345
|
...f
|
|
1352
|
-
} = e, { getNextUI: _ } =
|
|
1346
|
+
} = e, { getNextUI: _ } = K(), { disabled: h } = B(
|
|
1353
1347
|
t,
|
|
1354
1348
|
d
|
|
1355
|
-
),
|
|
1356
|
-
const { href:
|
|
1357
|
-
return
|
|
1349
|
+
), p = c && f ? (() => {
|
|
1350
|
+
const { href: x, target: g, download: b, ...C } = f;
|
|
1351
|
+
return C;
|
|
1358
1352
|
})() : f, m = R(async () => {
|
|
1359
|
-
var
|
|
1353
|
+
var x;
|
|
1360
1354
|
if (c)
|
|
1361
1355
|
try {
|
|
1362
1356
|
const g = {
|
|
1363
|
-
...(
|
|
1357
|
+
...(x = v.getState()[t]) == null ? void 0 : x.entries,
|
|
1364
1358
|
[s]: { status: 200 }
|
|
1365
1359
|
};
|
|
1366
1360
|
switch (O(t, g), c) {
|
|
1367
1361
|
case "GO_TO_NEXT_UI": {
|
|
1368
|
-
const
|
|
1362
|
+
const b = await _(
|
|
1369
1363
|
t,
|
|
1370
1364
|
a,
|
|
1371
1365
|
g,
|
|
1372
1366
|
s
|
|
1373
1367
|
);
|
|
1374
|
-
|
|
1368
|
+
b != null && b.data && $(t, b == null ? void 0 : b.data);
|
|
1375
1369
|
break;
|
|
1376
1370
|
}
|
|
1377
1371
|
case "REDIRECT":
|
|
@@ -1388,19 +1382,19 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1388
1382
|
} catch (g) {
|
|
1389
1383
|
alert(JSON.stringify(g));
|
|
1390
1384
|
}
|
|
1391
|
-
}, [c, _, a, l, s, n, t]),
|
|
1385
|
+
}, [c, _, a, l, s, n, t]), y = p.disabled ?? h;
|
|
1392
1386
|
return /* @__PURE__ */ o.jsx(
|
|
1393
1387
|
ot,
|
|
1394
1388
|
{
|
|
1395
|
-
...
|
|
1396
|
-
disabled:
|
|
1389
|
+
...p,
|
|
1390
|
+
disabled: y,
|
|
1397
1391
|
onClick: c ? m : void 0,
|
|
1398
1392
|
children: i
|
|
1399
1393
|
}
|
|
1400
1394
|
);
|
|
1401
|
-
},
|
|
1402
|
-
modalContent:
|
|
1403
|
-
},
|
|
1395
|
+
}, Hn = "_modalContent_p06ci_1", Xn = {
|
|
1396
|
+
modalContent: Hn
|
|
1397
|
+
}, Wn = ({
|
|
1404
1398
|
userFlow: e,
|
|
1405
1399
|
pageId: t,
|
|
1406
1400
|
responseKey: a,
|
|
@@ -1410,30 +1404,30 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1410
1404
|
headerStatusColor: l,
|
|
1411
1405
|
...n
|
|
1412
1406
|
}) => {
|
|
1413
|
-
const d = v((
|
|
1407
|
+
const d = v((x) => {
|
|
1414
1408
|
var g;
|
|
1415
|
-
return (g =
|
|
1416
|
-
}), r = v((
|
|
1409
|
+
return (g = x[e]) == null ? void 0 : g.isModalOpen;
|
|
1410
|
+
}), r = v((x) => {
|
|
1417
1411
|
var g;
|
|
1418
|
-
return (g =
|
|
1412
|
+
return (g = x[e]) == null ? void 0 : g.isLoading;
|
|
1419
1413
|
}), u = d && !r, f = {
|
|
1420
1414
|
...n
|
|
1421
1415
|
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
|
|
1422
1416
|
xe(e), ge(e, !1);
|
|
1423
|
-
}, [e, a]),
|
|
1417
|
+
}, [e, a]), p = Array.isArray(s) ? S(e, t, s) : s, m = S(e, t, c), y = S(e, t, i);
|
|
1424
1418
|
return /* @__PURE__ */ o.jsx(
|
|
1425
1419
|
ct,
|
|
1426
1420
|
{
|
|
1427
1421
|
...f,
|
|
1428
1422
|
headerStatusColor: _,
|
|
1429
|
-
header: typeof
|
|
1430
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
1431
|
-
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
1423
|
+
header: typeof p == "string" ? p : /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((x, g) => /* @__PURE__ */ o.jsx(k, { children: x }, `modal-header-${g}`)) }),
|
|
1424
|
+
children: /* @__PURE__ */ o.jsx("section", { className: Xn.modalContent, children: m.map((x, g) => /* @__PURE__ */ o.jsx(k, { children: x }, `modal-body-${g}`)) }),
|
|
1425
|
+
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((x, g) => /* @__PURE__ */ o.jsx(k, { children: x }, `modal-footer-${g}`)) }),
|
|
1432
1426
|
open: u,
|
|
1433
1427
|
onClose: h
|
|
1434
1428
|
}
|
|
1435
1429
|
);
|
|
1436
|
-
},
|
|
1430
|
+
}, Qn = ({ userFlow: e, pageId: t }) => {
|
|
1437
1431
|
var i, l;
|
|
1438
1432
|
const a = Jt(e);
|
|
1439
1433
|
if (!a)
|
|
@@ -1451,7 +1445,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1451
1445
|
const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
|
|
1452
1446
|
return /* @__PURE__ */ o.jsx(k, { children: n }, r);
|
|
1453
1447
|
}) });
|
|
1454
|
-
},
|
|
1448
|
+
}, Yn = {
|
|
1455
1449
|
success: {
|
|
1456
1450
|
color: "success-opacity",
|
|
1457
1451
|
textColor: "success-60",
|
|
@@ -1477,8 +1471,8 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1477
1471
|
textColor: "neutral-70",
|
|
1478
1472
|
iconColor: "neutral-70"
|
|
1479
1473
|
}
|
|
1480
|
-
},
|
|
1481
|
-
const { content: t, variant: a = "neutral", ...s } = e, c =
|
|
1474
|
+
}, Zn = (e) => {
|
|
1475
|
+
const { content: t, variant: a = "neutral", ...s } = e, c = Yn[a], i = {
|
|
1482
1476
|
...s,
|
|
1483
1477
|
children: t,
|
|
1484
1478
|
color: (s == null ? void 0 : s.color) ?? c.color,
|
|
@@ -1486,10 +1480,10 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1486
1480
|
iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
|
|
1487
1481
|
};
|
|
1488
1482
|
return /* @__PURE__ */ o.jsx(he, { ...i });
|
|
1489
|
-
},
|
|
1483
|
+
}, Fn = (e) => {
|
|
1490
1484
|
const { content: t } = e;
|
|
1491
|
-
return /* @__PURE__ */ o.jsx(
|
|
1492
|
-
},
|
|
1485
|
+
return /* @__PURE__ */ o.jsx(Be, { children: t });
|
|
1486
|
+
}, Pn = (e) => {
|
|
1493
1487
|
const {
|
|
1494
1488
|
userFlow: t,
|
|
1495
1489
|
pageId: a,
|
|
@@ -1499,38 +1493,38 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1499
1493
|
dependencies: l,
|
|
1500
1494
|
onClick: n,
|
|
1501
1495
|
...d
|
|
1502
|
-
} = e, { getNextUI: r, fetchAndGetNextUI: u } =
|
|
1496
|
+
} = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } = B(
|
|
1503
1497
|
t,
|
|
1504
1498
|
l
|
|
1505
1499
|
), _ = {
|
|
1506
1500
|
...d
|
|
1507
|
-
}, h = (_ == null ? void 0 : _.disabled) ?? f,
|
|
1501
|
+
}, h = (_ == null ? void 0 : _.disabled) ?? f, p = R(async () => {
|
|
1508
1502
|
var m;
|
|
1509
1503
|
try {
|
|
1510
|
-
const
|
|
1504
|
+
const y = {
|
|
1511
1505
|
...(m = v.getState()[t]) == null ? void 0 : m.entries,
|
|
1512
1506
|
[s]: { status: 200 }
|
|
1513
1507
|
};
|
|
1514
|
-
switch (O(t,
|
|
1508
|
+
switch (O(t, y), c) {
|
|
1515
1509
|
case "GO_TO_NEXT_UI": {
|
|
1516
|
-
const
|
|
1510
|
+
const x = await r(
|
|
1517
1511
|
t,
|
|
1518
1512
|
a,
|
|
1519
|
-
|
|
1513
|
+
y,
|
|
1520
1514
|
s
|
|
1521
1515
|
);
|
|
1522
|
-
|
|
1516
|
+
x != null && x.data && $(t, x == null ? void 0 : x.data);
|
|
1523
1517
|
break;
|
|
1524
1518
|
}
|
|
1525
1519
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1526
|
-
const
|
|
1520
|
+
const x = await u(
|
|
1527
1521
|
t,
|
|
1528
1522
|
a,
|
|
1529
|
-
|
|
1523
|
+
y,
|
|
1530
1524
|
s,
|
|
1531
1525
|
i
|
|
1532
1526
|
);
|
|
1533
|
-
|
|
1527
|
+
x != null && x.data && $(t, x == null ? void 0 : x.data);
|
|
1534
1528
|
break;
|
|
1535
1529
|
}
|
|
1536
1530
|
case "CLOSE_MODAL":
|
|
@@ -1546,8 +1540,8 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1546
1540
|
console.warn(`Unhandled actionType: ${c}`);
|
|
1547
1541
|
break;
|
|
1548
1542
|
}
|
|
1549
|
-
} catch (
|
|
1550
|
-
alert(JSON.stringify(
|
|
1543
|
+
} catch (y) {
|
|
1544
|
+
alert(JSON.stringify(y));
|
|
1551
1545
|
}
|
|
1552
1546
|
}, [c, i, a, s, t]);
|
|
1553
1547
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1555,11 +1549,11 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1555
1549
|
{
|
|
1556
1550
|
..._,
|
|
1557
1551
|
disabled: h,
|
|
1558
|
-
onClick: () => !h && (n ??
|
|
1552
|
+
onClick: () => !h && (n ?? p)()
|
|
1559
1553
|
}
|
|
1560
1554
|
);
|
|
1561
|
-
},
|
|
1562
|
-
row:
|
|
1555
|
+
}, es = "_row_1bqj4_1", ts = "_row_column_1bqj4_65", J = {
|
|
1556
|
+
row: es,
|
|
1563
1557
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
1564
1558
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
1565
1559
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -1580,7 +1574,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1580
1574
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
1581
1575
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
1582
1576
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
1583
|
-
row_column:
|
|
1577
|
+
row_column: ts,
|
|
1584
1578
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
1585
1579
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
1586
1580
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -1601,7 +1595,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1601
1595
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
1602
1596
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
1603
1597
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
1604
|
-
},
|
|
1598
|
+
}, ns = (e) => {
|
|
1605
1599
|
const {
|
|
1606
1600
|
userFlow: t,
|
|
1607
1601
|
pageId: a,
|
|
@@ -1670,17 +1664,16 @@ function Je({
|
|
|
1670
1664
|
debounceMs: l
|
|
1671
1665
|
}) {
|
|
1672
1666
|
const n = Ze(null);
|
|
1673
|
-
|
|
1667
|
+
z(() => () => {
|
|
1674
1668
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
1675
1669
|
}, []);
|
|
1676
1670
|
const d = R(
|
|
1677
1671
|
async (u) => {
|
|
1678
1672
|
var h;
|
|
1679
1673
|
const f = {
|
|
1680
|
-
...(h = v.getState()[e]) == null ? void 0 : h.entries
|
|
1681
|
-
[a]: u
|
|
1674
|
+
...(h = v.getState()[e]) == null ? void 0 : h.entries
|
|
1682
1675
|
};
|
|
1683
|
-
if (O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
1676
|
+
if (u ? f[a] = u : delete f[a], O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
1684
1677
|
try {
|
|
1685
1678
|
const m = await c(
|
|
1686
1679
|
e,
|
|
@@ -1689,9 +1682,9 @@ function Je({
|
|
|
1689
1682
|
a,
|
|
1690
1683
|
s === "GO_TO_NEXT_UI"
|
|
1691
1684
|
);
|
|
1692
|
-
m != null && m.data &&
|
|
1693
|
-
} catch (
|
|
1694
|
-
console.error("[useSelectChange] Failed to fetch next UI",
|
|
1685
|
+
m != null && m.data && $(e, m.data);
|
|
1686
|
+
} catch (p) {
|
|
1687
|
+
console.error("[useSelectChange] Failed to fetch next UI", p);
|
|
1695
1688
|
}
|
|
1696
1689
|
},
|
|
1697
1690
|
[e, t, a, s, c]
|
|
@@ -1713,18 +1706,25 @@ function Je({
|
|
|
1713
1706
|
[i, l, d]
|
|
1714
1707
|
);
|
|
1715
1708
|
}
|
|
1716
|
-
const as = (e, t
|
|
1717
|
-
|
|
1709
|
+
const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
1710
|
+
var a;
|
|
1711
|
+
return t.includes("{") ? t.replace(ss, (s, c) => {
|
|
1712
|
+
var l;
|
|
1713
|
+
const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
|
|
1714
|
+
return i != null ? String(i) : "";
|
|
1715
|
+
}) : (a = L.query(e, t)) == null ? void 0 : a[0];
|
|
1716
|
+
}, rs = (e, t, a, s) => {
|
|
1717
|
+
const c = L.query(e, t);
|
|
1718
1718
|
return (c == null ? void 0 : c.map((i) => {
|
|
1719
|
-
var d
|
|
1720
|
-
const l = (
|
|
1719
|
+
var d;
|
|
1720
|
+
const l = as(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
|
|
1721
1721
|
return { label: l, value: n };
|
|
1722
1722
|
})) ?? [];
|
|
1723
|
-
},
|
|
1723
|
+
}, os = (e, t, a, s = 10) => {
|
|
1724
1724
|
var n, d;
|
|
1725
1725
|
let c, i;
|
|
1726
1726
|
if (a) {
|
|
1727
|
-
const r =
|
|
1727
|
+
const r = L.value(e, a.size ?? "$.meta.size") ?? s, u = L.value(e, a.total ?? "$.meta.total") ?? 0;
|
|
1728
1728
|
c = r, i = u;
|
|
1729
1729
|
} else {
|
|
1730
1730
|
const r = e == null ? void 0 : e.meta;
|
|
@@ -1736,9 +1736,9 @@ const as = (e, t, a, s) => {
|
|
|
1736
1736
|
total: i,
|
|
1737
1737
|
hasMore: l
|
|
1738
1738
|
};
|
|
1739
|
-
},
|
|
1740
|
-
selectNotFront:
|
|
1741
|
-
},
|
|
1739
|
+
}, cs = "_selectNotFront_ch3v5_1", Ve = {
|
|
1740
|
+
selectNotFront: cs
|
|
1741
|
+
}, is = ({
|
|
1742
1742
|
userFlow: e,
|
|
1743
1743
|
pageId: t,
|
|
1744
1744
|
responseKey: a,
|
|
@@ -1751,15 +1751,16 @@ const as = (e, t, a, s) => {
|
|
|
1751
1751
|
}) => {
|
|
1752
1752
|
const r = {
|
|
1753
1753
|
...d
|
|
1754
|
-
}, { getNextUI: u, fetchDataSource: f } =
|
|
1754
|
+
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = q((r == null ? void 0 : r.value) ?? ""), { disabled: p } = B(
|
|
1755
1755
|
e,
|
|
1756
1756
|
l
|
|
1757
|
-
), m = (r == null ? void 0 : r.disabled) ??
|
|
1758
|
-
const j = r != null && r.isMulti ? _ : [_],
|
|
1759
|
-
return
|
|
1757
|
+
), m = (r == null ? void 0 : r.disabled) ?? p, y = T(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), x = T(() => {
|
|
1758
|
+
const j = r != null && r.isMulti ? _ : [_], N = {};
|
|
1759
|
+
return Array.isArray(j) && j.forEach((w) => {
|
|
1760
|
+
if (!w) return;
|
|
1760
1761
|
const E = JSON.stringify(w.value), D = JSON.stringify(w.label);
|
|
1761
|
-
|
|
1762
|
-
})
|
|
1762
|
+
N[E] = w, D in N || (N[D] = w);
|
|
1763
|
+
}), N;
|
|
1763
1764
|
}, [_]), g = Je({
|
|
1764
1765
|
userFlow: e,
|
|
1765
1766
|
pageId: t,
|
|
@@ -1768,13 +1769,13 @@ const as = (e, t, a, s) => {
|
|
|
1768
1769
|
getNextUI: u,
|
|
1769
1770
|
isMulti: r == null ? void 0 : r.isMulti,
|
|
1770
1771
|
debounceMs: n
|
|
1771
|
-
}),
|
|
1772
|
+
}), b = (j) => {
|
|
1772
1773
|
h(j), g(j);
|
|
1773
|
-
},
|
|
1774
|
+
}, C = async (j, N, { page: w }) => {
|
|
1774
1775
|
const {
|
|
1775
1776
|
jsonPathLabel: E,
|
|
1776
1777
|
jsonPathOptions: D,
|
|
1777
|
-
jsonPathValue:
|
|
1778
|
+
jsonPathValue: A,
|
|
1778
1779
|
jsonPathPagination: G
|
|
1779
1780
|
} = c, U = pe(
|
|
1780
1781
|
c,
|
|
@@ -1784,12 +1785,12 @@ const as = (e, t, a, s) => {
|
|
|
1784
1785
|
U,
|
|
1785
1786
|
e,
|
|
1786
1787
|
!1
|
|
1787
|
-
), oe = re == null ? void 0 : re.data, Xe = oe ?
|
|
1788
|
+
), oe = re == null ? void 0 : re.data, Xe = oe ? rs(
|
|
1788
1789
|
oe,
|
|
1789
1790
|
D,
|
|
1790
1791
|
E,
|
|
1791
|
-
|
|
1792
|
-
) : [], { hasMore: We } =
|
|
1792
|
+
A
|
|
1793
|
+
) : [], { hasMore: We } = os(
|
|
1793
1794
|
oe,
|
|
1794
1795
|
w,
|
|
1795
1796
|
G
|
|
@@ -1807,21 +1808,21 @@ const as = (e, t, a, s) => {
|
|
|
1807
1808
|
{
|
|
1808
1809
|
...r,
|
|
1809
1810
|
className: Ve.selectNotFront,
|
|
1810
|
-
label:
|
|
1811
|
+
label: y,
|
|
1811
1812
|
value: _,
|
|
1812
1813
|
disabled: m,
|
|
1813
1814
|
noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
|
|
1814
|
-
onChange: (j) => !m &&
|
|
1815
|
-
loadOptions:
|
|
1815
|
+
onChange: (j) => !m && b(j),
|
|
1816
|
+
loadOptions: C,
|
|
1816
1817
|
additional: { page: 1 },
|
|
1817
1818
|
isOptionDisabled: (j) => {
|
|
1818
|
-
const
|
|
1819
|
-
return !!(
|
|
1819
|
+
const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
|
|
1820
|
+
return !!(x != null && x[N]) || !!(x != null && x[w]);
|
|
1820
1821
|
},
|
|
1821
1822
|
debounceTimeout: 350
|
|
1822
1823
|
}
|
|
1823
1824
|
);
|
|
1824
|
-
},
|
|
1825
|
+
}, ls = ({
|
|
1825
1826
|
userFlow: e,
|
|
1826
1827
|
pageId: t,
|
|
1827
1828
|
responseKey: a,
|
|
@@ -1834,10 +1835,10 @@ const as = (e, t, a, s) => {
|
|
|
1834
1835
|
}) => {
|
|
1835
1836
|
const r = {
|
|
1836
1837
|
...d
|
|
1837
|
-
}, { getNextUI: u } =
|
|
1838
|
+
}, { getNextUI: u } = K(), [f, _] = q(r.value || ""), { disabled: h } = B(
|
|
1838
1839
|
e,
|
|
1839
1840
|
l
|
|
1840
|
-
),
|
|
1841
|
+
), p = (r == null ? void 0 : r.disabled) ?? h, m = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), y = Je({
|
|
1841
1842
|
userFlow: e,
|
|
1842
1843
|
pageId: t,
|
|
1843
1844
|
responseKey: a,
|
|
@@ -1845,8 +1846,8 @@ const as = (e, t, a, s) => {
|
|
|
1845
1846
|
getNextUI: u,
|
|
1846
1847
|
isMulti: r == null ? void 0 : r.isMulti,
|
|
1847
1848
|
debounceMs: n
|
|
1848
|
-
}),
|
|
1849
|
-
_(g),
|
|
1849
|
+
}), x = (g) => {
|
|
1850
|
+
_(g), y(g);
|
|
1850
1851
|
};
|
|
1851
1852
|
return /* @__PURE__ */ o.jsx(
|
|
1852
1853
|
dt,
|
|
@@ -1855,27 +1856,27 @@ const as = (e, t, a, s) => {
|
|
|
1855
1856
|
className: Ve.selectNotFront,
|
|
1856
1857
|
label: m,
|
|
1857
1858
|
value: f,
|
|
1858
|
-
disabled:
|
|
1859
|
-
onChange: (g) => !
|
|
1859
|
+
disabled: p,
|
|
1860
|
+
onChange: (g) => !p && x(g)
|
|
1860
1861
|
}
|
|
1861
1862
|
);
|
|
1862
|
-
},
|
|
1863
|
+
}, ds = (e) => {
|
|
1863
1864
|
const { dataSource: t } = e;
|
|
1864
|
-
return t ? /* @__PURE__ */ o.jsx(
|
|
1865
|
-
},
|
|
1866
|
-
spacing:
|
|
1867
|
-
spacing__xxs:
|
|
1868
|
-
spacing__xs:
|
|
1869
|
-
spacing__sm:
|
|
1870
|
-
spacing__md:
|
|
1871
|
-
spacing__lg:
|
|
1872
|
-
spacing__xl:
|
|
1873
|
-
spacing__xxl:
|
|
1874
|
-
spacing__xxxl:
|
|
1875
|
-
},
|
|
1865
|
+
return t ? /* @__PURE__ */ o.jsx(is, { ...e }) : /* @__PURE__ */ o.jsx(ls, { ...e });
|
|
1866
|
+
}, _s = "_spacing_19hqa_1", us = "_spacing__xxs_19hqa_1", hs = "_spacing__xs_19hqa_4", fs = "_spacing__sm_19hqa_7", ms = "_spacing__md_19hqa_10", ys = "_spacing__lg_19hqa_13", xs = "_spacing__xl_19hqa_16", gs = "_spacing__xxl_19hqa_19", ps = "_spacing__xxxl_19hqa_22", Re = {
|
|
1867
|
+
spacing: _s,
|
|
1868
|
+
spacing__xxs: us,
|
|
1869
|
+
spacing__xs: hs,
|
|
1870
|
+
spacing__sm: fs,
|
|
1871
|
+
spacing__md: ms,
|
|
1872
|
+
spacing__lg: ys,
|
|
1873
|
+
spacing__xl: xs,
|
|
1874
|
+
spacing__xxl: gs,
|
|
1875
|
+
spacing__xxxl: ps
|
|
1876
|
+
}, bs = (e) => {
|
|
1876
1877
|
const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
|
|
1877
1878
|
return /* @__PURE__ */ o.jsx("div", { className: a });
|
|
1878
|
-
},
|
|
1879
|
+
}, js = (e) => {
|
|
1879
1880
|
const {
|
|
1880
1881
|
userFlow: t,
|
|
1881
1882
|
pageId: a,
|
|
@@ -1888,50 +1889,50 @@ const as = (e, t, a, s) => {
|
|
|
1888
1889
|
...r
|
|
1889
1890
|
} = e, u = {
|
|
1890
1891
|
...r
|
|
1891
|
-
}, { getNextUI: f } =
|
|
1892
|
+
}, { getNextUI: f } = K(), [_, h] = q(l || !1), { disabled: p } = B(
|
|
1892
1893
|
t,
|
|
1893
1894
|
d
|
|
1894
|
-
), m = (u == null ? void 0 : u.disabled) ??
|
|
1895
|
+
), m = (u == null ? void 0 : u.disabled) ?? p, y = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
|
|
1895
1896
|
var g;
|
|
1896
1897
|
try {
|
|
1897
|
-
const
|
|
1898
|
-
h(
|
|
1899
|
-
const
|
|
1898
|
+
const b = !_;
|
|
1899
|
+
h(b);
|
|
1900
|
+
const C = {
|
|
1900
1901
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
1901
|
-
[s]:
|
|
1902
|
+
[s]: b
|
|
1902
1903
|
};
|
|
1903
|
-
switch (O(t,
|
|
1904
|
+
switch (O(t, C), c) {
|
|
1904
1905
|
case "GO_TO_NEXT_UI":
|
|
1905
1906
|
const j = await f(
|
|
1906
1907
|
t,
|
|
1907
1908
|
a,
|
|
1908
|
-
|
|
1909
|
+
C,
|
|
1909
1910
|
s
|
|
1910
1911
|
);
|
|
1911
|
-
j != null && j.data &&
|
|
1912
|
+
j != null && j.data && $(t, j == null ? void 0 : j.data);
|
|
1912
1913
|
break;
|
|
1913
1914
|
default:
|
|
1914
1915
|
console.warn(`Unhandled actionType: ${c}`);
|
|
1915
1916
|
break;
|
|
1916
1917
|
}
|
|
1917
|
-
} catch (
|
|
1918
|
-
console.error("Error in switch action:",
|
|
1918
|
+
} catch (b) {
|
|
1919
|
+
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
1919
1920
|
}
|
|
1920
1921
|
}, [t, a, s, c, _]);
|
|
1921
1922
|
return /* @__PURE__ */ o.jsx(
|
|
1922
1923
|
_t,
|
|
1923
1924
|
{
|
|
1924
1925
|
...u,
|
|
1925
|
-
label:
|
|
1926
|
+
label: y,
|
|
1926
1927
|
checked: _,
|
|
1927
1928
|
disabled: m,
|
|
1928
|
-
onChange: () => !m &&
|
|
1929
|
+
onChange: () => !m && x()
|
|
1929
1930
|
}
|
|
1930
1931
|
);
|
|
1931
|
-
},
|
|
1932
|
-
tableSkeleton:
|
|
1933
|
-
tableArrayPills:
|
|
1934
|
-
},
|
|
1932
|
+
}, ws = "_tableSkeleton_3nr9n_1", Cs = "_tableArrayPills_3nr9n_7", He = {
|
|
1933
|
+
tableSkeleton: ws,
|
|
1934
|
+
tableArrayPills: Cs
|
|
1935
|
+
}, Ns = ({ values: e }) => {
|
|
1935
1936
|
const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
|
|
1936
1937
|
return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
|
|
1937
1938
|
a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
|
|
@@ -1940,14 +1941,14 @@ const as = (e, t, a, s) => {
|
|
|
1940
1941
|
s
|
|
1941
1942
|
] })
|
|
1942
1943
|
] });
|
|
1943
|
-
},
|
|
1944
|
+
}, vs = ({
|
|
1944
1945
|
userFlow: e,
|
|
1945
1946
|
pageId: t,
|
|
1946
1947
|
tableResponseKey: a,
|
|
1947
1948
|
component: s,
|
|
1948
1949
|
rowData: c
|
|
1949
1950
|
}) => {
|
|
1950
|
-
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } =
|
|
1951
|
+
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d = S(e, t, [
|
|
1951
1952
|
{ ...s }
|
|
1952
1953
|
]), r = (d == null ? void 0 : d[0]) || null;
|
|
1953
1954
|
if (!r) return null;
|
|
@@ -1956,77 +1957,77 @@ const as = (e, t, a, s) => {
|
|
|
1956
1957
|
responseKey: f,
|
|
1957
1958
|
dataSource: _
|
|
1958
1959
|
} = r.props, h = R(async () => {
|
|
1959
|
-
var
|
|
1960
|
+
var p, m, y;
|
|
1960
1961
|
try {
|
|
1961
|
-
const
|
|
1962
|
-
...(
|
|
1962
|
+
const x = {
|
|
1963
|
+
...(p = v.getState()[e]) == null ? void 0 : p.entries,
|
|
1963
1964
|
[f]: { status: 200 },
|
|
1964
1965
|
[a]: [{ ...c }]
|
|
1965
1966
|
};
|
|
1966
|
-
switch (O(e,
|
|
1967
|
+
switch (O(e, x), u) {
|
|
1967
1968
|
case "GO_TO_NEXT_UI": {
|
|
1968
1969
|
const g = await i(
|
|
1969
1970
|
e,
|
|
1970
1971
|
t,
|
|
1971
|
-
|
|
1972
|
+
x,
|
|
1972
1973
|
f
|
|
1973
1974
|
);
|
|
1974
|
-
g != null && g.data &&
|
|
1975
|
+
g != null && g.data && $(e, g == null ? void 0 : g.data);
|
|
1975
1976
|
break;
|
|
1976
1977
|
}
|
|
1977
1978
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1978
1979
|
const g = await l(
|
|
1979
1980
|
e,
|
|
1980
1981
|
t,
|
|
1981
|
-
|
|
1982
|
+
x,
|
|
1982
1983
|
f,
|
|
1983
1984
|
_
|
|
1984
1985
|
);
|
|
1985
|
-
g != null && g.data &&
|
|
1986
|
+
g != null && g.data && $(e, g == null ? void 0 : g.data);
|
|
1986
1987
|
break;
|
|
1987
1988
|
}
|
|
1988
1989
|
case "GET_DATA_SOURCE": {
|
|
1989
1990
|
const g = await i(
|
|
1990
1991
|
e,
|
|
1991
1992
|
t,
|
|
1992
|
-
|
|
1993
|
+
x,
|
|
1993
1994
|
f
|
|
1994
|
-
),
|
|
1995
|
-
if ((
|
|
1996
|
-
const
|
|
1997
|
-
|
|
1995
|
+
), b = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
|
|
1996
|
+
if ((b == null ? void 0 : b.type) !== "fetch") break;
|
|
1997
|
+
const C = b == null ? void 0 : b.dataSource, j = await n(
|
|
1998
|
+
C,
|
|
1998
1999
|
e,
|
|
1999
2000
|
// Avoid to handle loading state until all the requests are done
|
|
2000
2001
|
!1
|
|
2001
|
-
),
|
|
2002
|
-
...(
|
|
2002
|
+
), N = {
|
|
2003
|
+
...(y = v.getState()[e]) == null ? void 0 : y.entries,
|
|
2003
2004
|
[f]: {
|
|
2004
2005
|
status: j == null ? void 0 : j.status,
|
|
2005
2006
|
content: j == null ? void 0 : j.data
|
|
2006
2007
|
}
|
|
2007
2008
|
};
|
|
2008
|
-
O(e,
|
|
2009
|
+
O(e, N);
|
|
2009
2010
|
const w = await i(
|
|
2010
2011
|
e,
|
|
2011
2012
|
t,
|
|
2012
|
-
|
|
2013
|
+
N,
|
|
2013
2014
|
f
|
|
2014
2015
|
);
|
|
2015
|
-
w != null && w.data &&
|
|
2016
|
+
w != null && w.data && $(e, w == null ? void 0 : w.data);
|
|
2016
2017
|
break;
|
|
2017
2018
|
}
|
|
2018
2019
|
default:
|
|
2019
2020
|
console.warn(`Unhandled actionType: ${u}`);
|
|
2020
2021
|
break;
|
|
2021
2022
|
}
|
|
2022
|
-
} catch (
|
|
2023
|
-
alert(JSON.stringify(
|
|
2023
|
+
} catch (x) {
|
|
2024
|
+
alert(JSON.stringify(x));
|
|
2024
2025
|
}
|
|
2025
2026
|
}, [u, _, t, f, e]);
|
|
2026
2027
|
return Fe(r, {
|
|
2027
2028
|
onClick: h
|
|
2028
2029
|
});
|
|
2029
|
-
},
|
|
2030
|
+
}, Ss = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
2030
2031
|
Ke,
|
|
2031
2032
|
{
|
|
2032
2033
|
maxWidth: "100%",
|
|
@@ -2034,7 +2035,7 @@ const as = (e, t, a, s) => {
|
|
|
2034
2035
|
radius: 8
|
|
2035
2036
|
},
|
|
2036
2037
|
`tableSkeletonBase${t}`
|
|
2037
|
-
)) }),
|
|
2038
|
+
)) }), Es = ({
|
|
2038
2039
|
userFlow: e,
|
|
2039
2040
|
pageId: t,
|
|
2040
2041
|
responseKey: a,
|
|
@@ -2043,30 +2044,30 @@ const as = (e, t, a, s) => {
|
|
|
2043
2044
|
rightActions: i,
|
|
2044
2045
|
...l
|
|
2045
2046
|
}) => {
|
|
2046
|
-
var
|
|
2047
|
-
const { fetchDataSource: n } =
|
|
2047
|
+
var b, C, j;
|
|
2048
|
+
const { fetchDataSource: n } = K(), [d, r] = q(!1), [u, f] = q(1), [_, h] = q(null), p = T(() => {
|
|
2048
2049
|
if (i != null && i.length)
|
|
2049
|
-
return i.map((
|
|
2050
|
+
return i.map((N, w) => ({
|
|
2050
2051
|
renderContent: (E) => /* @__PURE__ */ o.jsx(
|
|
2051
|
-
|
|
2052
|
+
vs,
|
|
2052
2053
|
{
|
|
2053
2054
|
userFlow: e,
|
|
2054
2055
|
pageId: t,
|
|
2055
2056
|
tableResponseKey: a,
|
|
2056
|
-
component:
|
|
2057
|
+
component: N,
|
|
2057
2058
|
rowData: E
|
|
2058
2059
|
},
|
|
2059
2060
|
`tableRowAction${w}`
|
|
2060
2061
|
)
|
|
2061
2062
|
}));
|
|
2062
|
-
}, [i, e, t]), m = async (
|
|
2063
|
+
}, [i, e, t]), m = async (N = 1) => {
|
|
2063
2064
|
try {
|
|
2064
2065
|
r(!0);
|
|
2065
|
-
const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c,
|
|
2066
|
+
const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c, A = pe(
|
|
2066
2067
|
c,
|
|
2067
|
-
|
|
2068
|
+
N
|
|
2068
2069
|
), G = await n(
|
|
2069
|
-
|
|
2070
|
+
A,
|
|
2070
2071
|
e,
|
|
2071
2072
|
!1
|
|
2072
2073
|
);
|
|
@@ -2081,47 +2082,47 @@ const as = (e, t, a, s) => {
|
|
|
2081
2082
|
} catch (w) {
|
|
2082
2083
|
alert(JSON.stringify(w)), r(!1);
|
|
2083
2084
|
}
|
|
2084
|
-
},
|
|
2085
|
-
f(
|
|
2085
|
+
}, y = (N) => {
|
|
2086
|
+
f(N), m(N);
|
|
2086
2087
|
};
|
|
2087
|
-
|
|
2088
|
+
z(() => {
|
|
2088
2089
|
m();
|
|
2089
2090
|
}, []);
|
|
2090
|
-
const
|
|
2091
|
+
const x = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((N) => {
|
|
2091
2092
|
var E;
|
|
2092
2093
|
return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
|
|
2093
|
-
(D) => Array.isArray(
|
|
2094
|
+
(D) => Array.isArray(N != null && N.accessor ? D[N == null ? void 0 : N.accessor] : void 0)
|
|
2094
2095
|
)) ? {
|
|
2095
|
-
...
|
|
2096
|
+
...N,
|
|
2096
2097
|
renderCell: (D) => {
|
|
2097
|
-
const
|
|
2098
|
-
return Array.isArray(
|
|
2098
|
+
const A = N.accessor ? D[N.accessor] : void 0;
|
|
2099
|
+
return Array.isArray(A) ? /* @__PURE__ */ o.jsx(Ns, { values: A }) : A;
|
|
2099
2100
|
}
|
|
2100
|
-
} :
|
|
2101
|
+
} : N;
|
|
2101
2102
|
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
2102
2103
|
...l,
|
|
2103
2104
|
data: _ == null ? void 0 : _.items,
|
|
2104
|
-
columns:
|
|
2105
|
-
rightActions:
|
|
2105
|
+
columns: x,
|
|
2106
|
+
rightActions: p
|
|
2106
2107
|
};
|
|
2107
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(
|
|
2108
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(Ss, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2108
2109
|
/* @__PURE__ */ o.jsx(ut, { ...g }),
|
|
2109
|
-
(_ == null ? void 0 : _.pagination) && ((
|
|
2110
|
+
(_ == null ? void 0 : _.pagination) && ((C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
2110
2111
|
ht,
|
|
2111
2112
|
{
|
|
2112
2113
|
classname: { global: "row__end" },
|
|
2113
2114
|
page: u,
|
|
2114
2115
|
size: _ == null ? void 0 : _.pagination.size,
|
|
2115
2116
|
total: (j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.total,
|
|
2116
|
-
onChange:
|
|
2117
|
+
onChange: y
|
|
2117
2118
|
}
|
|
2118
2119
|
)
|
|
2119
2120
|
] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2120
|
-
},
|
|
2121
|
-
tabsPanel:
|
|
2122
|
-
},
|
|
2121
|
+
}, ks = "_tabsPanel_kvslb_1", Ts = {
|
|
2122
|
+
tabsPanel: ks
|
|
2123
|
+
}, As = ({ userFlow: e, pageId: t, components: a }) => {
|
|
2123
2124
|
const s = S(e, t, a);
|
|
2124
|
-
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2125
|
+
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: Ts.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
|
|
2125
2126
|
}, qs = ({
|
|
2126
2127
|
userFlow: e,
|
|
2127
2128
|
pageId: t,
|
|
@@ -2135,7 +2136,7 @@ const as = (e, t, a, s) => {
|
|
|
2135
2136
|
label: r.label,
|
|
2136
2137
|
disabled: r.disabled,
|
|
2137
2138
|
children: /* @__PURE__ */ o.jsx(
|
|
2138
|
-
|
|
2139
|
+
As,
|
|
2139
2140
|
{
|
|
2140
2141
|
userFlow: e,
|
|
2141
2142
|
pageId: t,
|
|
@@ -2160,9 +2161,9 @@ const as = (e, t, a, s) => {
|
|
|
2160
2161
|
onClick: d
|
|
2161
2162
|
}
|
|
2162
2163
|
);
|
|
2163
|
-
},
|
|
2164
|
-
textFieldNotFront:
|
|
2165
|
-
},
|
|
2164
|
+
}, $s = "_textFieldNotFront_1n8fy_1", Os = {
|
|
2165
|
+
textFieldNotFront: $s
|
|
2166
|
+
}, Rs = (e) => {
|
|
2166
2167
|
const {
|
|
2167
2168
|
userFlow: t,
|
|
2168
2169
|
pageId: a,
|
|
@@ -2174,33 +2175,33 @@ const as = (e, t, a, s) => {
|
|
|
2174
2175
|
...d
|
|
2175
2176
|
} = e, r = {
|
|
2176
2177
|
...d
|
|
2177
|
-
}, [u, f] =
|
|
2178
|
+
}, [u, f] = q((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
|
|
2178
2179
|
t,
|
|
2179
2180
|
n
|
|
2180
|
-
), h = (r == null ? void 0 : r.disabled) ?? _,
|
|
2181
|
-
var
|
|
2182
|
-
const
|
|
2183
|
-
f(
|
|
2181
|
+
), h = (r == null ? void 0 : r.disabled) ?? _, p = T(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (y) => {
|
|
2182
|
+
var b;
|
|
2183
|
+
const x = (b = y == null ? void 0 : y.target) == null ? void 0 : b.value;
|
|
2184
|
+
f(x);
|
|
2184
2185
|
const g = {
|
|
2185
|
-
[i]:
|
|
2186
|
+
[i]: x
|
|
2186
2187
|
};
|
|
2187
2188
|
O(t, g);
|
|
2188
2189
|
};
|
|
2189
|
-
return
|
|
2190
|
+
return z(() => {
|
|
2190
2191
|
f((r == null ? void 0 : r.value) ?? "");
|
|
2191
2192
|
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2192
2193
|
mt,
|
|
2193
2194
|
{
|
|
2194
2195
|
...r,
|
|
2195
|
-
className:
|
|
2196
|
+
className: Os.textFieldNotFront,
|
|
2196
2197
|
allowClear: !1,
|
|
2197
|
-
label:
|
|
2198
|
+
label: p,
|
|
2198
2199
|
value: u,
|
|
2199
2200
|
disabled: h,
|
|
2200
|
-
onChange: (
|
|
2201
|
+
onChange: (y) => !h && m(y)
|
|
2201
2202
|
}
|
|
2202
2203
|
);
|
|
2203
|
-
},
|
|
2204
|
+
}, Ds = ({
|
|
2204
2205
|
userFlow: e,
|
|
2205
2206
|
pageId: t,
|
|
2206
2207
|
responseKey: a,
|
|
@@ -2224,21 +2225,21 @@ const as = (e, t, a, s) => {
|
|
|
2224
2225
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
2225
2226
|
}
|
|
2226
2227
|
}, [i, t, a, e, l]);
|
|
2227
|
-
return
|
|
2228
|
+
return z(() => {
|
|
2228
2229
|
({
|
|
2229
|
-
info:
|
|
2230
|
-
error:
|
|
2231
|
-
success:
|
|
2232
|
-
warning:
|
|
2233
|
-
}[s] ||
|
|
2230
|
+
info: Q.info,
|
|
2231
|
+
error: Q.error,
|
|
2232
|
+
success: Q.success,
|
|
2233
|
+
warning: Q.warning
|
|
2234
|
+
}[s] || Q.info)(c, {
|
|
2234
2235
|
autoClose: i ? !1 : 4e3,
|
|
2235
2236
|
containerId: e,
|
|
2236
2237
|
onClose: n
|
|
2237
2238
|
});
|
|
2238
2239
|
}, [n, e]), null;
|
|
2239
|
-
},
|
|
2240
|
-
accordion:
|
|
2241
|
-
accordionBody:
|
|
2240
|
+
}, Ls = "_accordion_1ri2t_1", Is = "_accordionBody_1ri2t_8", De = {
|
|
2241
|
+
accordion: Ls,
|
|
2242
|
+
accordionBody: Is
|
|
2242
2243
|
}, Bs = (e) => {
|
|
2243
2244
|
const {
|
|
2244
2245
|
userFlow: t,
|
|
@@ -2249,51 +2250,51 @@ const as = (e, t, a, s) => {
|
|
|
2249
2250
|
actionContent: l,
|
|
2250
2251
|
components: n,
|
|
2251
2252
|
...d
|
|
2252
|
-
} = e, { getNextUI: r } =
|
|
2253
|
+
} = e, { getNextUI: r } = K(), [u, f] = q(
|
|
2253
2254
|
d.checkboxChecked || !1
|
|
2254
2255
|
), { disabled: _ } = B(
|
|
2255
2256
|
t,
|
|
2256
2257
|
c
|
|
2257
|
-
), h = S(t, a, n),
|
|
2258
|
-
async (
|
|
2259
|
-
var
|
|
2258
|
+
), h = S(t, a, n), p = l ? S(t, a, l) : void 0, m = i ? S(t, a, i) : void 0, y = R(
|
|
2259
|
+
async (b) => {
|
|
2260
|
+
var C;
|
|
2260
2261
|
try {
|
|
2261
|
-
const j =
|
|
2262
|
+
const j = b.target.checked;
|
|
2262
2263
|
f(j);
|
|
2263
|
-
const
|
|
2264
|
-
...(
|
|
2264
|
+
const N = {
|
|
2265
|
+
...(C = v.getState()[t]) == null ? void 0 : C.entries,
|
|
2265
2266
|
[s]: j
|
|
2266
2267
|
};
|
|
2267
|
-
if (O(t,
|
|
2268
|
+
if (O(t, N), d.actionType === "GO_TO_NEXT_UI") {
|
|
2268
2269
|
const w = await r(
|
|
2269
2270
|
t,
|
|
2270
2271
|
a,
|
|
2271
|
-
|
|
2272
|
+
N,
|
|
2272
2273
|
s
|
|
2273
2274
|
);
|
|
2274
|
-
w != null && w.data &&
|
|
2275
|
+
w != null && w.data && $(t, w == null ? void 0 : w.data);
|
|
2275
2276
|
}
|
|
2276
2277
|
} catch (j) {
|
|
2277
2278
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
2278
2279
|
}
|
|
2279
2280
|
},
|
|
2280
2281
|
[t, a, s, d.actionType, r]
|
|
2281
|
-
),
|
|
2282
|
+
), x = d.disabled || _, g = {
|
|
2282
2283
|
...d,
|
|
2283
2284
|
className: De.accordion,
|
|
2284
|
-
disabled:
|
|
2285
|
+
disabled: x,
|
|
2285
2286
|
checkboxChecked: u,
|
|
2286
|
-
onChanceCheckbox: d.hasCheckbox ?
|
|
2287
|
-
actionContent:
|
|
2288
|
-
customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((
|
|
2289
|
-
children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((
|
|
2287
|
+
onChanceCheckbox: d.hasCheckbox ? y : void 0,
|
|
2288
|
+
actionContent: p ? /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-action-${C}`)) }) : void 0,
|
|
2289
|
+
customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-custom-${C}`)) }) : void 0,
|
|
2290
|
+
children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-child-${C}`)) }) : void 0
|
|
2290
2291
|
};
|
|
2291
2292
|
return /* @__PURE__ */ o.jsx(yt, { ...g });
|
|
2292
|
-
},
|
|
2293
|
-
drawer:
|
|
2294
|
-
drawerBody:
|
|
2293
|
+
}, Ks = "_drawer_13pxo_1", Ms = "_drawerBody_13pxo_5", zs = "_drawerFooter_13pxo_11", ue = {
|
|
2294
|
+
drawer: Ks,
|
|
2295
|
+
drawerBody: Ms,
|
|
2295
2296
|
drawerFooter: zs
|
|
2296
|
-
},
|
|
2297
|
+
}, Gs = ({
|
|
2297
2298
|
userFlow: e,
|
|
2298
2299
|
pageId: t,
|
|
2299
2300
|
responseKey: a,
|
|
@@ -2303,18 +2304,18 @@ const as = (e, t, a, s) => {
|
|
|
2303
2304
|
...l
|
|
2304
2305
|
}) => {
|
|
2305
2306
|
const n = v((m) => {
|
|
2306
|
-
var
|
|
2307
|
-
return (
|
|
2307
|
+
var y;
|
|
2308
|
+
return (y = m[e]) == null ? void 0 : y.isDrawerOpen;
|
|
2308
2309
|
}), d = v((m) => {
|
|
2309
|
-
var
|
|
2310
|
-
return (
|
|
2310
|
+
var y;
|
|
2311
|
+
return (y = m[e]) == null ? void 0 : y.isLoading;
|
|
2311
2312
|
}), r = n && !d, u = {
|
|
2312
2313
|
...l,
|
|
2313
2314
|
isOpen: r,
|
|
2314
2315
|
children: null
|
|
2315
2316
|
}, f = R(() => {
|
|
2316
2317
|
xe(e), Z(e, !1);
|
|
2317
|
-
}, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ o.jsx(
|
|
2318
|
+
}, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ o.jsx(Ie, { type: "h2", children: s }) : void 0, h = S(e, t, c), p = i ? S(e, t, i) : void 0;
|
|
2318
2319
|
return /* @__PURE__ */ o.jsx(
|
|
2319
2320
|
xt,
|
|
2320
2321
|
{
|
|
@@ -2323,19 +2324,19 @@ const as = (e, t, a, s) => {
|
|
|
2323
2324
|
isOpen: r,
|
|
2324
2325
|
onClose: f,
|
|
2325
2326
|
heightGap: 0,
|
|
2326
|
-
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m,
|
|
2327
|
-
children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m,
|
|
2328
|
-
footer:
|
|
2327
|
+
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${y}`)) : _ }) : void 0,
|
|
2328
|
+
children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${y}`)) }),
|
|
2329
|
+
footer: p ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: p.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${y}`)) }) : void 0
|
|
2329
2330
|
}
|
|
2330
2331
|
);
|
|
2331
2332
|
};
|
|
2332
|
-
function
|
|
2333
|
+
function sa({
|
|
2333
2334
|
routes: e,
|
|
2334
2335
|
renderPage: t,
|
|
2335
2336
|
renderFallback: a,
|
|
2336
2337
|
redirectTo: s = "/"
|
|
2337
2338
|
}) {
|
|
2338
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2339
|
+
return /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
2339
2340
|
e.map((c) => /* @__PURE__ */ o.jsx(
|
|
2340
2341
|
Ce,
|
|
2341
2342
|
{
|
|
@@ -2344,16 +2345,16 @@ function na({
|
|
|
2344
2345
|
},
|
|
2345
2346
|
`${c.path}:${c.sessionName}`
|
|
2346
2347
|
)),
|
|
2347
|
-
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(
|
|
2348
|
+
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(zt, { to: s, replace: !0 }) })
|
|
2348
2349
|
] });
|
|
2349
2350
|
}
|
|
2350
|
-
function
|
|
2351
|
+
function aa({
|
|
2351
2352
|
sessionName: e,
|
|
2352
2353
|
apiConfig: t,
|
|
2353
2354
|
onResolveComponentProps: a,
|
|
2354
2355
|
children: s
|
|
2355
2356
|
}) {
|
|
2356
|
-
const c =
|
|
2357
|
+
const c = Us(
|
|
2357
2358
|
e,
|
|
2358
2359
|
t,
|
|
2359
2360
|
null,
|
|
@@ -2383,7 +2384,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2383
2384
|
);
|
|
2384
2385
|
case "header":
|
|
2385
2386
|
return /* @__PURE__ */ o.jsx(
|
|
2386
|
-
|
|
2387
|
+
Jn,
|
|
2387
2388
|
{
|
|
2388
2389
|
...s,
|
|
2389
2390
|
components: i || []
|
|
@@ -2393,9 +2394,15 @@ const Le = (e, t, a, s, c) => {
|
|
|
2393
2394
|
default:
|
|
2394
2395
|
return null;
|
|
2395
2396
|
}
|
|
2396
|
-
},
|
|
2397
|
-
var _, h,
|
|
2398
|
-
const [c, i] =
|
|
2397
|
+
}, Us = (e, t, a, s) => {
|
|
2398
|
+
var _, h, p;
|
|
2399
|
+
const [c, i] = q(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId;
|
|
2400
|
+
z(() => {
|
|
2401
|
+
if (typeof window > "u") return;
|
|
2402
|
+
const m = new URL(window.location.href), y = m.searchParams.get("sessionId");
|
|
2403
|
+
y && (sessionStorage.setItem("sessionId", y), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
|
|
2404
|
+
}, []);
|
|
2405
|
+
const d = n ? Le(
|
|
2399
2406
|
e,
|
|
2400
2407
|
n,
|
|
2401
2408
|
"header",
|
|
@@ -2405,15 +2412,15 @@ const Le = (e, t, a, s, c) => {
|
|
|
2405
2412
|
e,
|
|
2406
2413
|
n,
|
|
2407
2414
|
"body",
|
|
2408
|
-
((
|
|
2415
|
+
((p = l[e].pages[n].page) == null ? void 0 : p.body) || null,
|
|
2409
2416
|
s
|
|
2410
|
-
) : null, u =
|
|
2417
|
+
) : null, u = T(() => {
|
|
2411
2418
|
var m;
|
|
2412
2419
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2413
2420
|
((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(gt, {}),
|
|
2414
2421
|
d,
|
|
2415
2422
|
r,
|
|
2416
|
-
n && /* @__PURE__ */ o.jsx(
|
|
2423
|
+
n && /* @__PURE__ */ o.jsx(Qn, { userFlow: e, pageId: n }),
|
|
2417
2424
|
l[e] && /* @__PURE__ */ o.jsx(pt, {})
|
|
2418
2425
|
] });
|
|
2419
2426
|
}, [d, r, n, e]), f = async () => {
|
|
@@ -2421,33 +2428,33 @@ const Le = (e, t, a, s, c) => {
|
|
|
2421
2428
|
const m = await Ge(
|
|
2422
2429
|
t,
|
|
2423
2430
|
e
|
|
2424
|
-
),
|
|
2425
|
-
(m == null ? void 0 : m.status) === 200 ? ce(e, t,
|
|
2431
|
+
), y = m == null ? void 0 : m.data, x = y == null ? void 0 : y.content;
|
|
2432
|
+
(m == null ? void 0 : m.status) === 200 ? ce(e, t, x, y == null ? void 0 : y.sessionState) : i(!0);
|
|
2426
2433
|
} catch (m) {
|
|
2427
2434
|
console.error("[not-page]: API call failed", m), i(!0);
|
|
2428
2435
|
}
|
|
2429
2436
|
};
|
|
2430
|
-
return
|
|
2437
|
+
return z(() => {
|
|
2431
2438
|
t != null && t.api && !a && e ? f() : !(t != null && t.api) && a && e || t != null && t.api && a && e ? ce(e, t, a) : (!(t != null && t.api) && !a || !e) && (i(!0), console.error(
|
|
2432
2439
|
"[not-page]: API call failed",
|
|
2433
2440
|
"not api config",
|
|
2434
2441
|
"not userFlow"
|
|
2435
2442
|
));
|
|
2436
|
-
const m = "avocado-theme-mode-changed",
|
|
2437
|
-
const g =
|
|
2443
|
+
const m = "avocado-theme-mode-changed", y = (x) => {
|
|
2444
|
+
const g = x.detail;
|
|
2438
2445
|
te.setThemeMode(g);
|
|
2439
2446
|
};
|
|
2440
|
-
return window.addEventListener(m,
|
|
2441
|
-
window.removeEventListener(m,
|
|
2447
|
+
return window.addEventListener(m, y), () => {
|
|
2448
|
+
window.removeEventListener(m, y);
|
|
2442
2449
|
};
|
|
2443
2450
|
}, []), c && console.error("[not-page]: No render page"), u;
|
|
2444
2451
|
};
|
|
2445
2452
|
export {
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2453
|
+
zn as Chart,
|
|
2454
|
+
sa as NotFrontDynamicRouter,
|
|
2455
|
+
aa as NotFrontPage,
|
|
2456
|
+
ns as Row,
|
|
2450
2457
|
Zt as heading,
|
|
2451
2458
|
Ft as text,
|
|
2452
|
-
|
|
2459
|
+
Us as usePage
|
|
2453
2460
|
};
|