@foris/avocado-not-front 4.3.1 → 4.3.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,16 +1,16 @@
|
|
|
1
1
|
import V from "axios";
|
|
2
2
|
import { create as Qe } from "zustand";
|
|
3
|
-
import Ye, { useMemo as
|
|
3
|
+
import Ye, { useMemo as T, useEffect as z, useState as $, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
|
|
4
4
|
import { Heading as Be, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Ie, 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 W, 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
|
-
import { yaml as
|
|
11
|
-
import
|
|
12
|
-
import { Legend as
|
|
13
|
-
import { Routes as
|
|
10
|
+
import { yaml as Et } from "@codemirror/lang-yaml";
|
|
11
|
+
import L from "jsonpath";
|
|
12
|
+
import { Legend as St, Tooltip as kt, XAxis as Tt, YAxis as qt, ResponsiveContainer as ne, AreaChart as $t, CartesianGrid as ye, Area as At, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as Bt, Pie as It, 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
|
|
@@ -173,7 +173,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
173
173
|
});
|
|
174
174
|
};
|
|
175
175
|
let ie = !1, P = [], ve = !1;
|
|
176
|
-
const Vt = (e) => e._userFlow || null,
|
|
176
|
+
const Vt = (e) => e._userFlow || null, Ee = (e) => {
|
|
177
177
|
P.forEach(({ resolve: t, reject: a }) => {
|
|
178
178
|
e ? a(e) : t(void 0);
|
|
179
179
|
}), P = [];
|
|
@@ -200,7 +200,7 @@ const Vt = (e) => e._userFlow || null, Se = (e) => {
|
|
|
200
200
|
r = n.headers();
|
|
201
201
|
else
|
|
202
202
|
throw new Error("No refresh handler available");
|
|
203
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(i, JSON.stringify(r)) : Ne(i, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r),
|
|
203
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(i, JSON.stringify(r)) : Ne(i, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), Ee(null), V(t);
|
|
204
204
|
} catch (r) {
|
|
205
205
|
return console.error(
|
|
206
206
|
"[axiosInterceptors] Token refresh failed:",
|
|
@@ -208,7 +208,7 @@ const Vt = (e) => e._userFlow || null, Se = (e) => {
|
|
|
208
208
|
), console.error(
|
|
209
209
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
210
210
|
P.length
|
|
211
|
-
),
|
|
211
|
+
), Ee(r), Promise.reject(r);
|
|
212
212
|
} finally {
|
|
213
213
|
ie = !1;
|
|
214
214
|
}
|
|
@@ -246,10 +246,10 @@ var le = { exports: {} }, Q = {};
|
|
|
246
246
|
* This source code is licensed under the MIT license found in the
|
|
247
247
|
* LICENSE file in the root directory of this source tree.
|
|
248
248
|
*/
|
|
249
|
-
var
|
|
249
|
+
var Se;
|
|
250
250
|
function Qt() {
|
|
251
|
-
if (
|
|
252
|
-
|
|
251
|
+
if (Se) return Q;
|
|
252
|
+
Se = 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) {
|
|
255
255
|
var u, f = {}, _ = null, h = null;
|
|
@@ -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,
|
|
@@ -355,12 +355,12 @@ const Zt = (e) => {
|
|
|
355
355
|
translations: c
|
|
356
356
|
}
|
|
357
357
|
) });
|
|
358
|
-
},
|
|
358
|
+
}, I = (e, t) => {
|
|
359
359
|
const a = v((s) => {
|
|
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,9 +385,9 @@ const Zt = (e) => {
|
|
|
385
385
|
inputLabel: d,
|
|
386
386
|
inputPlaceholder: r,
|
|
387
387
|
codeBlockLabel: u
|
|
388
|
-
} = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] =
|
|
388
|
+
} = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = $(
|
|
389
389
|
s || ""
|
|
390
|
-
), { disabled: b } =
|
|
390
|
+
), { disabled: b } = I(
|
|
391
391
|
t,
|
|
392
392
|
l
|
|
393
393
|
), m = i ?? b, x = c ?? "json", y = {
|
|
@@ -402,7 +402,7 @@ const Zt = (e) => {
|
|
|
402
402
|
};
|
|
403
403
|
O(t, N);
|
|
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,
|
|
@@ -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)) }) }), X = (e) => {
|
|
425
425
|
if (!e)
|
|
426
426
|
return { "content-type": "application/json" };
|
|
427
427
|
if (typeof e == "function")
|
|
@@ -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,7 +525,7 @@ 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
530
|
const u = `${l}/not-front/next-ui/?${r.toString()}`, f = X(n), _ = fe(
|
|
531
531
|
u,
|
|
@@ -539,8 +539,8 @@ 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
546
|
const h = (_ = e[n]) == null ? void 0 : _.apiConfig, b = {
|
|
@@ -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 {
|
|
@@ -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,7 +691,7 @@ const Zt = (e) => {
|
|
|
691
691
|
dependencies: r,
|
|
692
692
|
onClick: u,
|
|
693
693
|
...f
|
|
694
|
-
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } =
|
|
694
|
+
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } = K(), { disabled: m } = I(
|
|
695
695
|
t,
|
|
696
696
|
r
|
|
697
697
|
), x = {
|
|
@@ -741,9 +741,9 @@ const Zt = (e) => {
|
|
|
741
741
|
a,
|
|
742
742
|
C,
|
|
743
743
|
s
|
|
744
|
-
),
|
|
745
|
-
if ((
|
|
746
|
-
const D =
|
|
744
|
+
), S = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
|
|
745
|
+
if ((S == null ? void 0 : S.type) !== "fetch") break;
|
|
746
|
+
const D = S == null ? void 0 : S.dataSource, q = await h(
|
|
747
747
|
D,
|
|
748
748
|
t,
|
|
749
749
|
// Avoid to handle loading state until all the requests are done
|
|
@@ -784,10 +784,10 @@ const Zt = (e) => {
|
|
|
784
784
|
onClick: () => !y && (u ?? g)()
|
|
785
785
|
}
|
|
786
786
|
);
|
|
787
|
-
},
|
|
787
|
+
}, E = (e, t, a, s) => {
|
|
788
788
|
var l;
|
|
789
789
|
const c = {
|
|
790
|
-
accordion: (n) => /* @__PURE__ */ o.jsx(
|
|
790
|
+
accordion: (n) => /* @__PURE__ */ o.jsx(Ks, { ...n, userFlow: e, pageId: t }),
|
|
791
791
|
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Pt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
|
|
792
792
|
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
|
|
793
793
|
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
|
|
@@ -796,11 +796,11 @@ const Zt = (e) => {
|
|
|
796
796
|
cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
|
|
797
797
|
cardNotification: (n) => /* @__PURE__ */ o.jsx(bn, { ...n }),
|
|
798
798
|
chart: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e }),
|
|
799
|
-
dataCard: (n) => /* @__PURE__ */ o.jsx(
|
|
799
|
+
dataCard: (n) => /* @__PURE__ */ o.jsx($n, { ...n, userFlow: e, pageId: t }),
|
|
800
800
|
checkbox: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
|
|
801
|
-
code: (n) => /* @__PURE__ */ o.jsx(
|
|
801
|
+
code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
|
|
802
802
|
divider: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n }),
|
|
803
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(
|
|
803
|
+
drawer: (n) => /* @__PURE__ */ o.jsx(Us, { ...n, userFlow: e, pageId: t }),
|
|
804
804
|
heading: (n) => Zt(n),
|
|
805
805
|
link: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
|
|
806
806
|
pill: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
|
|
@@ -808,14 +808,14 @@ const Zt = (e) => {
|
|
|
808
808
|
modal: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
|
|
809
809
|
roundButton: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
|
|
810
810
|
row: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: e, pageId: t }),
|
|
811
|
-
select: (n) => /* @__PURE__ */ o.jsx(
|
|
812
|
-
switch: (n) => /* @__PURE__ */ o.jsx(
|
|
813
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(
|
|
814
|
-
table: (n) => /* @__PURE__ */ o.jsx(
|
|
815
|
-
tabs: (n) => /* @__PURE__ */ o.jsx(
|
|
811
|
+
select: (n) => /* @__PURE__ */ o.jsx(_s, { ...n, userFlow: e, pageId: t }),
|
|
812
|
+
switch: (n) => /* @__PURE__ */ o.jsx(ws, { ...n, userFlow: e, pageId: t }),
|
|
813
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(js, { ...n, userFlow: e, pageId: t }),
|
|
814
|
+
table: (n) => /* @__PURE__ */ o.jsx(ks, { ...n, userFlow: e, pageId: t }),
|
|
815
|
+
tabs: (n) => /* @__PURE__ */ o.jsx(As, { ...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(Ds, { ...n, userFlow: e, pageId: t }),
|
|
818
|
+
toast: (n) => /* @__PURE__ */ o.jsx(Ls, { ...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];
|
|
@@ -834,14 +834,14 @@ const Zt = (e) => {
|
|
|
834
834
|
content: n,
|
|
835
835
|
actionContent: d,
|
|
836
836
|
...r
|
|
837
|
-
} = e, { disabled: u } =
|
|
837
|
+
} = e, { disabled: u } = I(
|
|
838
838
|
t,
|
|
839
839
|
l
|
|
840
|
-
), f =
|
|
840
|
+
), f = E(
|
|
841
841
|
t,
|
|
842
842
|
a,
|
|
843
843
|
n && n.length > 0 ? n : null
|
|
844
|
-
), _ =
|
|
844
|
+
), _ = E(
|
|
845
845
|
t,
|
|
846
846
|
a,
|
|
847
847
|
d && d.length > 0 ? d : null
|
|
@@ -882,10 +882,10 @@ const Zt = (e) => {
|
|
|
882
882
|
...r
|
|
883
883
|
} = e, u = {
|
|
884
884
|
...r
|
|
885
|
-
}, { getNextUI: f } =
|
|
885
|
+
}, { getNextUI: f } = K(), [_, h] = $(l || !1), { disabled: b } = I(
|
|
886
886
|
t,
|
|
887
887
|
d
|
|
888
|
-
), m =
|
|
888
|
+
), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
|
|
889
889
|
var g;
|
|
890
890
|
try {
|
|
891
891
|
const p = !_;
|
|
@@ -924,13 +924,13 @@ const Zt = (e) => {
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
}, wn = "_codeEditor_1coz7_1", Cn = "_codeEditor_label_1coz7_4", Nn = "_codeEditor_wrapper_1coz7_13", vn = "_input_1coz7_17",
|
|
927
|
+
}, wn = "_codeEditor_1coz7_1", Cn = "_codeEditor_label_1coz7_4", Nn = "_codeEditor_wrapper_1coz7_13", vn = "_input_1coz7_17", En = "_preview_1coz7_18", Y = {
|
|
928
928
|
codeEditor: wn,
|
|
929
929
|
codeEditor_label: Cn,
|
|
930
930
|
codeEditor_wrapper: Nn,
|
|
931
931
|
input: vn,
|
|
932
|
-
preview:
|
|
933
|
-
},
|
|
932
|
+
preview: En
|
|
933
|
+
}, Sn = (e) => {
|
|
934
934
|
const {
|
|
935
935
|
userFlow: t,
|
|
936
936
|
responseKey: a,
|
|
@@ -942,15 +942,15 @@ const Zt = (e) => {
|
|
|
942
942
|
dependencies: d,
|
|
943
943
|
disabled: r,
|
|
944
944
|
showPreview: u
|
|
945
|
-
} = e, [f, _] =
|
|
945
|
+
} = e, [f, _] = $(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: b } = I(
|
|
946
946
|
t,
|
|
947
947
|
d
|
|
948
948
|
), m = r ?? b, x = {
|
|
949
949
|
json: we(),
|
|
950
950
|
markdown: Nt(),
|
|
951
951
|
sql: vt(),
|
|
952
|
-
yaml:
|
|
953
|
-
}, y =
|
|
952
|
+
yaml: Et()
|
|
953
|
+
}, y = T(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
|
|
954
954
|
_(p);
|
|
955
955
|
const N = {
|
|
956
956
|
[a]: p
|
|
@@ -983,9 +983,9 @@ var de = { exports: {} };
|
|
|
983
983
|
Licensed under the MIT License (MIT), see
|
|
984
984
|
http://jedwatson.github.io/classnames
|
|
985
985
|
*/
|
|
986
|
-
var
|
|
986
|
+
var $e;
|
|
987
987
|
function kn() {
|
|
988
|
-
return
|
|
988
|
+
return $e || ($e = 1, (function(e) {
|
|
989
989
|
(function() {
|
|
990
990
|
var t = {}.hasOwnProperty;
|
|
991
991
|
function a() {
|
|
@@ -1016,10 +1016,10 @@ function kn() {
|
|
|
1016
1016
|
})();
|
|
1017
1017
|
})(de)), de.exports;
|
|
1018
1018
|
}
|
|
1019
|
-
var
|
|
1020
|
-
const ee = /* @__PURE__ */ Wt(
|
|
1019
|
+
var Tn = kn();
|
|
1020
|
+
const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
1021
1021
|
slotStack: qn
|
|
1022
|
-
},
|
|
1022
|
+
}, $n = (e) => {
|
|
1023
1023
|
const {
|
|
1024
1024
|
userFlow: t,
|
|
1025
1025
|
pageId: a,
|
|
@@ -1031,11 +1031,11 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1031
1031
|
icon: d,
|
|
1032
1032
|
headerStatusColor: r,
|
|
1033
1033
|
...u
|
|
1034
|
-
} = e, f = r ? `palette_${r}_50` : void 0, _ =
|
|
1034
|
+
} = e, f = r ? `palette_${r}_50` : void 0, _ = E(
|
|
1035
1035
|
t,
|
|
1036
1036
|
a,
|
|
1037
1037
|
l && l.length > 0 ? l : null
|
|
1038
|
-
), h =
|
|
1038
|
+
), h = E(
|
|
1039
1039
|
t,
|
|
1040
1040
|
a,
|
|
1041
1041
|
n && n.length > 0 ? n : null
|
|
@@ -1087,41 +1087,41 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1087
1087
|
}
|
|
1088
1088
|
};
|
|
1089
1089
|
}, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ue = (e, t, a, s) => {
|
|
1090
|
-
const c =
|
|
1090
|
+
const c = L.query(e, t), i = c == null ? void 0 : c.map((r) => {
|
|
1091
1091
|
var u, f;
|
|
1092
1092
|
if (a) {
|
|
1093
1093
|
const _ = {};
|
|
1094
1094
|
for (const [h, b] of Object.entries(a))
|
|
1095
1095
|
if (typeof b == "object" && "path" in b) {
|
|
1096
|
-
const m = b, x = (u =
|
|
1096
|
+
const m = b, x = (u = L.query(r, m.path)) == null ? void 0 : u[0];
|
|
1097
1097
|
m.translations && String(x) in m.translations ? _[h] = _e(
|
|
1098
1098
|
m.translations[String(x)]
|
|
1099
1099
|
) : _[h] = _e(x);
|
|
1100
1100
|
} else {
|
|
1101
1101
|
const m = b;
|
|
1102
|
-
_[h] = _e((f =
|
|
1102
|
+
_[h] = _e((f = L.query(r, m)) == null ? void 0 : f[0]);
|
|
1103
1103
|
}
|
|
1104
1104
|
return _;
|
|
1105
1105
|
} else
|
|
1106
1106
|
return r;
|
|
1107
|
-
}), l =
|
|
1107
|
+
}), 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
1108
|
size: l,
|
|
1109
1109
|
total: n,
|
|
1110
|
-
totalPages: s != null && s.totalPages ?
|
|
1110
|
+
totalPages: s != null && s.totalPages ? L.value(
|
|
1111
1111
|
e,
|
|
1112
1112
|
(s == null ? void 0 : s.totalPages) ?? "$.meta.totalPages"
|
|
1113
1113
|
) : l > 0 ? Math.ceil(n / l) : 0
|
|
1114
1114
|
};
|
|
1115
1115
|
return { items: i, pagination: d };
|
|
1116
1116
|
}, se = ({ withPadding: e = !1 }) => {
|
|
1117
|
-
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color:
|
|
1117
|
+
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: B.labelColor }, children: a });
|
|
1118
1118
|
return /* @__PURE__ */ o.jsx(
|
|
1119
|
-
|
|
1119
|
+
St,
|
|
1120
1120
|
{
|
|
1121
1121
|
formatter: t,
|
|
1122
1122
|
wrapperStyle: {
|
|
1123
|
-
fontSize:
|
|
1124
|
-
fontFamily:
|
|
1123
|
+
fontSize: B.fontSize,
|
|
1124
|
+
fontFamily: B.fontFamily,
|
|
1125
1125
|
padding: e ? "1rem 0" : "0"
|
|
1126
1126
|
}
|
|
1127
1127
|
}
|
|
@@ -1136,9 +1136,9 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1136
1136
|
if (!e || !t || !t.length)
|
|
1137
1137
|
return null;
|
|
1138
1138
|
const c = {
|
|
1139
|
-
backgroundColor:
|
|
1140
|
-
borderRadius:
|
|
1141
|
-
color:
|
|
1139
|
+
backgroundColor: B.tooltipBg,
|
|
1140
|
+
borderRadius: B.tooltipBorderRadius,
|
|
1141
|
+
color: B.tooltipColor,
|
|
1142
1142
|
padding: "8px 12px",
|
|
1143
1143
|
border: "1px solid #e5e7eb"
|
|
1144
1144
|
};
|
|
@@ -1157,26 +1157,26 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1157
1157
|
content: /* @__PURE__ */ o.jsx(Ln, { tooltipKey: e })
|
|
1158
1158
|
}
|
|
1159
1159
|
), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
1160
|
-
|
|
1160
|
+
Tt,
|
|
1161
1161
|
{
|
|
1162
1162
|
dataKey: e,
|
|
1163
1163
|
hide: t,
|
|
1164
1164
|
tick: {
|
|
1165
|
-
fill:
|
|
1166
|
-
fontSize:
|
|
1165
|
+
fill: B.labelColor,
|
|
1166
|
+
fontSize: B.fontSize
|
|
1167
1167
|
}
|
|
1168
1168
|
}
|
|
1169
1169
|
), je = () => /* @__PURE__ */ o.jsx(
|
|
1170
1170
|
qt,
|
|
1171
1171
|
{
|
|
1172
1172
|
tick: {
|
|
1173
|
-
fill:
|
|
1174
|
-
fontSize:
|
|
1173
|
+
fill: B.labelColor,
|
|
1174
|
+
fontSize: B.fontSize
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
), Bn = (e) => {
|
|
1178
1178
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1179
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1179
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs($t, { data: t, children: [
|
|
1180
1180
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1181
1181
|
/* @__PURE__ */ o.jsx(be, { dataKey: a }),
|
|
1182
1182
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
@@ -1187,8 +1187,8 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1187
1187
|
{
|
|
1188
1188
|
type: "monotone",
|
|
1189
1189
|
dataKey: i,
|
|
1190
|
-
stroke:
|
|
1191
|
-
fill:
|
|
1190
|
+
stroke: M[l % M.length],
|
|
1191
|
+
fill: M[l % M.length]
|
|
1192
1192
|
},
|
|
1193
1193
|
i
|
|
1194
1194
|
))
|
|
@@ -1205,7 +1205,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1205
1205
|
Rt,
|
|
1206
1206
|
{
|
|
1207
1207
|
dataKey: i,
|
|
1208
|
-
fill:
|
|
1208
|
+
fill: M[l % M.length]
|
|
1209
1209
|
},
|
|
1210
1210
|
i
|
|
1211
1211
|
))
|
|
@@ -1223,14 +1223,14 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1223
1223
|
{
|
|
1224
1224
|
type: "monotone",
|
|
1225
1225
|
dataKey: i,
|
|
1226
|
-
stroke:
|
|
1226
|
+
stroke: M[l % M.length],
|
|
1227
1227
|
strokeWidth: 2,
|
|
1228
1228
|
dot: !1
|
|
1229
1229
|
},
|
|
1230
1230
|
i
|
|
1231
1231
|
))
|
|
1232
1232
|
] }) });
|
|
1233
|
-
},
|
|
1233
|
+
}, Mn = (e) => {
|
|
1234
1234
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
|
|
1235
1235
|
cx: l,
|
|
1236
1236
|
cy: n,
|
|
@@ -1245,8 +1245,8 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1245
1245
|
{
|
|
1246
1246
|
x: b,
|
|
1247
1247
|
y: m,
|
|
1248
|
-
fill:
|
|
1249
|
-
color:
|
|
1248
|
+
fill: B.labelColor,
|
|
1249
|
+
color: B.labelColor,
|
|
1250
1250
|
textAnchor: "middle",
|
|
1251
1251
|
dominantBaseline: "central",
|
|
1252
1252
|
children: f
|
|
@@ -1267,19 +1267,19 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1267
1267
|
children: t.map((l, n) => /* @__PURE__ */ o.jsx(
|
|
1268
1268
|
Kt,
|
|
1269
1269
|
{
|
|
1270
|
-
fill:
|
|
1270
|
+
fill: M[n % M.length]
|
|
1271
1271
|
},
|
|
1272
1272
|
`cell-${n}`
|
|
1273
1273
|
))
|
|
1274
1274
|
}
|
|
1275
1275
|
)
|
|
1276
1276
|
] }) });
|
|
1277
|
-
},
|
|
1277
|
+
}, zn = {
|
|
1278
1278
|
area: Bn,
|
|
1279
1279
|
bar: In,
|
|
1280
1280
|
line: Kn,
|
|
1281
|
-
pie:
|
|
1282
|
-
},
|
|
1281
|
+
pie: Mn
|
|
1282
|
+
}, M = [
|
|
1283
1283
|
"var(--color-primitive-palette-1-50)",
|
|
1284
1284
|
"var(--color-primitive-palette-2-50)",
|
|
1285
1285
|
"var(--color-primitive-palette-3-50)",
|
|
@@ -1297,7 +1297,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1297
1297
|
"var(--color-primitive-palette-15-50)",
|
|
1298
1298
|
"var(--color-primitive-palette-16-50)",
|
|
1299
1299
|
"var(--color-primitive-palette-17-50)"
|
|
1300
|
-
],
|
|
1300
|
+
], B = {
|
|
1301
1301
|
fontFamily: "Roboto, sans-serif",
|
|
1302
1302
|
fontSize: 12,
|
|
1303
1303
|
labelColor: "var(--color-neutral-90)",
|
|
@@ -1305,10 +1305,10 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1305
1305
|
tooltipColor: "#000",
|
|
1306
1306
|
tooltipBorderRadius: "4px"
|
|
1307
1307
|
}, Gn = (e) => {
|
|
1308
|
-
const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n =
|
|
1308
|
+
const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = zn[l.type];
|
|
1309
1309
|
if (!n)
|
|
1310
1310
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1311
|
-
const { fetchDataSource: d } =
|
|
1311
|
+
const { fetchDataSource: d } = K(), [r, u] = $(!1), [f, _] = $([]), h = async () => {
|
|
1312
1312
|
var m, x;
|
|
1313
1313
|
try {
|
|
1314
1314
|
u(!0);
|
|
@@ -1325,7 +1325,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1325
1325
|
alert(JSON.stringify(y)), u(!1);
|
|
1326
1326
|
}
|
|
1327
1327
|
};
|
|
1328
|
-
|
|
1328
|
+
z(() => {
|
|
1329
1329
|
i ? h() : _(l.data);
|
|
1330
1330
|
}, []);
|
|
1331
1331
|
const b = {
|
|
@@ -1349,7 +1349,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1349
1349
|
component: r,
|
|
1350
1350
|
hash: u,
|
|
1351
1351
|
...f
|
|
1352
|
-
} = e, { getNextUI: _ } =
|
|
1352
|
+
} = e, { getNextUI: _ } = K(), { disabled: h } = I(
|
|
1353
1353
|
t,
|
|
1354
1354
|
d
|
|
1355
1355
|
), b = c && f ? (() => {
|
|
@@ -1420,7 +1420,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1420
1420
|
...n
|
|
1421
1421
|
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
|
|
1422
1422
|
xe(e), ge(e, !1);
|
|
1423
|
-
}, [e, a]), b = Array.isArray(s) ?
|
|
1423
|
+
}, [e, a]), b = Array.isArray(s) ? E(e, t, s) : s, m = E(e, t, c), x = E(e, t, i);
|
|
1424
1424
|
return /* @__PURE__ */ o.jsx(
|
|
1425
1425
|
ct,
|
|
1426
1426
|
{
|
|
@@ -1442,7 +1442,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1442
1442
|
...(a == null ? void 0 : a.components) || [],
|
|
1443
1443
|
...((i = a == null ? void 0 : a.header) == null ? void 0 : i.components) || [],
|
|
1444
1444
|
...((l = a == null ? void 0 : a.body) == null ? void 0 : l.components) || []
|
|
1445
|
-
], c =
|
|
1445
|
+
], c = E(
|
|
1446
1446
|
e,
|
|
1447
1447
|
t,
|
|
1448
1448
|
s
|
|
@@ -1499,7 +1499,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1499
1499
|
dependencies: l,
|
|
1500
1500
|
onClick: n,
|
|
1501
1501
|
...d
|
|
1502
|
-
} = e, { getNextUI: r, fetchAndGetNextUI: u } =
|
|
1502
|
+
} = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } = I(
|
|
1503
1503
|
t,
|
|
1504
1504
|
l
|
|
1505
1505
|
), _ = {
|
|
@@ -1641,7 +1641,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1641
1641
|
J[`row__align-${n}`]
|
|
1642
1642
|
),
|
|
1643
1643
|
children: d == null ? void 0 : d.map((r, u) => {
|
|
1644
|
-
const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ =
|
|
1644
|
+
const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ = E(t, a, r.items);
|
|
1645
1645
|
return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1646
1646
|
"div",
|
|
1647
1647
|
{
|
|
@@ -1670,7 +1670,7 @@ function Je({
|
|
|
1670
1670
|
debounceMs: l
|
|
1671
1671
|
}) {
|
|
1672
1672
|
const n = Ze(null);
|
|
1673
|
-
|
|
1673
|
+
z(() => () => {
|
|
1674
1674
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
1675
1675
|
}, []);
|
|
1676
1676
|
const d = R(
|
|
@@ -1713,18 +1713,25 @@ function Je({
|
|
|
1713
1713
|
[i, l, d]
|
|
1714
1714
|
);
|
|
1715
1715
|
}
|
|
1716
|
-
const as = (
|
|
1717
|
-
|
|
1716
|
+
const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
1717
|
+
var a;
|
|
1718
|
+
return t.includes("{") ? t.replace(as, (s, c) => {
|
|
1719
|
+
var l;
|
|
1720
|
+
const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
|
|
1721
|
+
return i != null ? String(i) : "";
|
|
1722
|
+
}) : (a = L.query(e, t)) == null ? void 0 : a[0];
|
|
1723
|
+
}, os = (e, t, a, s) => {
|
|
1724
|
+
const c = L.query(e, t);
|
|
1718
1725
|
return (c == null ? void 0 : c.map((i) => {
|
|
1719
|
-
var d
|
|
1720
|
-
const l = (
|
|
1726
|
+
var d;
|
|
1727
|
+
const l = rs(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
|
|
1721
1728
|
return { label: l, value: n };
|
|
1722
1729
|
})) ?? [];
|
|
1723
|
-
},
|
|
1730
|
+
}, cs = (e, t, a, s = 10) => {
|
|
1724
1731
|
var n, d;
|
|
1725
1732
|
let c, i;
|
|
1726
1733
|
if (a) {
|
|
1727
|
-
const r =
|
|
1734
|
+
const r = L.value(e, a.size ?? "$.meta.size") ?? s, u = L.value(e, a.total ?? "$.meta.total") ?? 0;
|
|
1728
1735
|
c = r, i = u;
|
|
1729
1736
|
} else {
|
|
1730
1737
|
const r = e == null ? void 0 : e.meta;
|
|
@@ -1736,9 +1743,9 @@ const as = (e, t, a, s) => {
|
|
|
1736
1743
|
total: i,
|
|
1737
1744
|
hasMore: l
|
|
1738
1745
|
};
|
|
1739
|
-
},
|
|
1740
|
-
selectNotFront:
|
|
1741
|
-
},
|
|
1746
|
+
}, is = "_selectNotFront_1yw9q_1", Ve = {
|
|
1747
|
+
selectNotFront: is
|
|
1748
|
+
}, ls = ({
|
|
1742
1749
|
userFlow: e,
|
|
1743
1750
|
pageId: t,
|
|
1744
1751
|
responseKey: a,
|
|
@@ -1751,14 +1758,14 @@ const as = (e, t, a, s) => {
|
|
|
1751
1758
|
}) => {
|
|
1752
1759
|
const r = {
|
|
1753
1760
|
...d
|
|
1754
|
-
}, { getNextUI: u, fetchDataSource: f } =
|
|
1761
|
+
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = $((r == null ? void 0 : r.value) ?? ""), { disabled: b } = I(
|
|
1755
1762
|
e,
|
|
1756
1763
|
l
|
|
1757
|
-
), m = (r == null ? void 0 : r.disabled) ?? b, x =
|
|
1764
|
+
), m = (r == null ? void 0 : r.disabled) ?? b, x = 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]), y = T(() => {
|
|
1758
1765
|
const j = r != null && r.isMulti ? _ : [_], C = {};
|
|
1759
1766
|
return typeof j == "object" && "length" in j && (j == null || j.forEach((w) => {
|
|
1760
|
-
const
|
|
1761
|
-
C[
|
|
1767
|
+
const S = JSON.stringify(w.value), D = JSON.stringify(w.label);
|
|
1768
|
+
C[S] = w, D in C || (C[D] = w);
|
|
1762
1769
|
})), C;
|
|
1763
1770
|
}, [_]), g = Je({
|
|
1764
1771
|
userFlow: e,
|
|
@@ -1772,7 +1779,7 @@ const as = (e, t, a, s) => {
|
|
|
1772
1779
|
h(j), g(j);
|
|
1773
1780
|
}, N = async (j, C, { page: w }) => {
|
|
1774
1781
|
const {
|
|
1775
|
-
jsonPathLabel:
|
|
1782
|
+
jsonPathLabel: S,
|
|
1776
1783
|
jsonPathOptions: D,
|
|
1777
1784
|
jsonPathValue: q,
|
|
1778
1785
|
jsonPathPagination: G
|
|
@@ -1784,12 +1791,12 @@ const as = (e, t, a, s) => {
|
|
|
1784
1791
|
U,
|
|
1785
1792
|
e,
|
|
1786
1793
|
!1
|
|
1787
|
-
), oe = re == null ? void 0 : re.data, Xe = oe ?
|
|
1794
|
+
), oe = re == null ? void 0 : re.data, Xe = oe ? os(
|
|
1788
1795
|
oe,
|
|
1789
1796
|
D,
|
|
1790
|
-
|
|
1797
|
+
S,
|
|
1791
1798
|
q
|
|
1792
|
-
) : [], { hasMore: We } =
|
|
1799
|
+
) : [], { hasMore: We } = cs(
|
|
1793
1800
|
oe,
|
|
1794
1801
|
w,
|
|
1795
1802
|
G
|
|
@@ -1821,7 +1828,7 @@ const as = (e, t, a, s) => {
|
|
|
1821
1828
|
debounceTimeout: 350
|
|
1822
1829
|
}
|
|
1823
1830
|
);
|
|
1824
|
-
},
|
|
1831
|
+
}, ds = ({
|
|
1825
1832
|
userFlow: e,
|
|
1826
1833
|
pageId: t,
|
|
1827
1834
|
responseKey: a,
|
|
@@ -1834,10 +1841,10 @@ const as = (e, t, a, s) => {
|
|
|
1834
1841
|
}) => {
|
|
1835
1842
|
const r = {
|
|
1836
1843
|
...d
|
|
1837
|
-
}, { getNextUI: u } =
|
|
1844
|
+
}, { getNextUI: u } = K(), [f, _] = $(r.value || ""), { disabled: h } = I(
|
|
1838
1845
|
e,
|
|
1839
1846
|
l
|
|
1840
|
-
), b = (r == null ? void 0 : r.disabled) ?? h, m =
|
|
1847
|
+
), b = (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]), x = Je({
|
|
1841
1848
|
userFlow: e,
|
|
1842
1849
|
pageId: t,
|
|
1843
1850
|
responseKey: a,
|
|
@@ -1859,23 +1866,23 @@ const as = (e, t, a, s) => {
|
|
|
1859
1866
|
onChange: (g) => !b && y(g)
|
|
1860
1867
|
}
|
|
1861
1868
|
);
|
|
1862
|
-
},
|
|
1869
|
+
}, _s = (e) => {
|
|
1863
1870
|
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
|
-
},
|
|
1871
|
+
return t ? /* @__PURE__ */ o.jsx(ls, { ...e }) : /* @__PURE__ */ o.jsx(ds, { ...e });
|
|
1872
|
+
}, us = "_spacing_19hqa_1", hs = "_spacing__xxs_19hqa_1", fs = "_spacing__xs_19hqa_4", ms = "_spacing__sm_19hqa_7", ys = "_spacing__md_19hqa_10", xs = "_spacing__lg_19hqa_13", gs = "_spacing__xl_19hqa_16", ps = "_spacing__xxl_19hqa_19", bs = "_spacing__xxxl_19hqa_22", Re = {
|
|
1873
|
+
spacing: us,
|
|
1874
|
+
spacing__xxs: hs,
|
|
1875
|
+
spacing__xs: fs,
|
|
1876
|
+
spacing__sm: ms,
|
|
1877
|
+
spacing__md: ys,
|
|
1878
|
+
spacing__lg: xs,
|
|
1879
|
+
spacing__xl: gs,
|
|
1880
|
+
spacing__xxl: ps,
|
|
1881
|
+
spacing__xxxl: bs
|
|
1882
|
+
}, js = (e) => {
|
|
1876
1883
|
const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
|
|
1877
1884
|
return /* @__PURE__ */ o.jsx("div", { className: a });
|
|
1878
|
-
},
|
|
1885
|
+
}, ws = (e) => {
|
|
1879
1886
|
const {
|
|
1880
1887
|
userFlow: t,
|
|
1881
1888
|
pageId: a,
|
|
@@ -1888,10 +1895,10 @@ const as = (e, t, a, s) => {
|
|
|
1888
1895
|
...r
|
|
1889
1896
|
} = e, u = {
|
|
1890
1897
|
...r
|
|
1891
|
-
}, { getNextUI: f } =
|
|
1898
|
+
}, { getNextUI: f } = K(), [_, h] = $(l || !1), { disabled: b } = I(
|
|
1892
1899
|
t,
|
|
1893
1900
|
d
|
|
1894
|
-
), m = (u == null ? void 0 : u.disabled) ?? b, x =
|
|
1901
|
+
), m = (u == null ? void 0 : u.disabled) ?? b, x = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
|
|
1895
1902
|
var g;
|
|
1896
1903
|
try {
|
|
1897
1904
|
const p = !_;
|
|
@@ -1928,10 +1935,10 @@ const as = (e, t, a, s) => {
|
|
|
1928
1935
|
onChange: () => !m && y()
|
|
1929
1936
|
}
|
|
1930
1937
|
);
|
|
1931
|
-
},
|
|
1932
|
-
tableSkeleton:
|
|
1933
|
-
tableArrayPills:
|
|
1934
|
-
},
|
|
1938
|
+
}, Cs = "_tableSkeleton_3nr9n_1", Ns = "_tableArrayPills_3nr9n_7", He = {
|
|
1939
|
+
tableSkeleton: Cs,
|
|
1940
|
+
tableArrayPills: Ns
|
|
1941
|
+
}, vs = ({ values: e }) => {
|
|
1935
1942
|
const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
|
|
1936
1943
|
return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
|
|
1937
1944
|
a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
|
|
@@ -1940,14 +1947,14 @@ const as = (e, t, a, s) => {
|
|
|
1940
1947
|
s
|
|
1941
1948
|
] })
|
|
1942
1949
|
] });
|
|
1943
|
-
},
|
|
1950
|
+
}, Es = ({
|
|
1944
1951
|
userFlow: e,
|
|
1945
1952
|
pageId: t,
|
|
1946
1953
|
tableResponseKey: a,
|
|
1947
1954
|
component: s,
|
|
1948
1955
|
rowData: c
|
|
1949
1956
|
}) => {
|
|
1950
|
-
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } =
|
|
1957
|
+
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d = E(e, t, [
|
|
1951
1958
|
{ ...s }
|
|
1952
1959
|
]), r = (d == null ? void 0 : d[0]) || null;
|
|
1953
1960
|
if (!r) return null;
|
|
@@ -2026,7 +2033,7 @@ const as = (e, t, a, s) => {
|
|
|
2026
2033
|
return Fe(r, {
|
|
2027
2034
|
onClick: h
|
|
2028
2035
|
});
|
|
2029
|
-
},
|
|
2036
|
+
}, Ss = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
2030
2037
|
Ke,
|
|
2031
2038
|
{
|
|
2032
2039
|
maxWidth: "100%",
|
|
@@ -2034,7 +2041,7 @@ const as = (e, t, a, s) => {
|
|
|
2034
2041
|
radius: 8
|
|
2035
2042
|
},
|
|
2036
2043
|
`tableSkeletonBase${t}`
|
|
2037
|
-
)) }),
|
|
2044
|
+
)) }), ks = ({
|
|
2038
2045
|
userFlow: e,
|
|
2039
2046
|
pageId: t,
|
|
2040
2047
|
responseKey: a,
|
|
@@ -2044,17 +2051,17 @@ const as = (e, t, a, s) => {
|
|
|
2044
2051
|
...l
|
|
2045
2052
|
}) => {
|
|
2046
2053
|
var p, N, j;
|
|
2047
|
-
const { fetchDataSource: n } =
|
|
2054
|
+
const { fetchDataSource: n } = K(), [d, r] = $(!1), [u, f] = $(1), [_, h] = $(null), b = T(() => {
|
|
2048
2055
|
if (i != null && i.length)
|
|
2049
2056
|
return i.map((C, w) => ({
|
|
2050
|
-
renderContent: (
|
|
2051
|
-
|
|
2057
|
+
renderContent: (S) => /* @__PURE__ */ o.jsx(
|
|
2058
|
+
Es,
|
|
2052
2059
|
{
|
|
2053
2060
|
userFlow: e,
|
|
2054
2061
|
pageId: t,
|
|
2055
2062
|
tableResponseKey: a,
|
|
2056
2063
|
component: C,
|
|
2057
|
-
rowData:
|
|
2064
|
+
rowData: S
|
|
2058
2065
|
},
|
|
2059
2066
|
`tableRowAction${w}`
|
|
2060
2067
|
)
|
|
@@ -2062,7 +2069,7 @@ const as = (e, t, a, s) => {
|
|
|
2062
2069
|
}, [i, e, t]), m = async (C = 1) => {
|
|
2063
2070
|
try {
|
|
2064
2071
|
r(!0);
|
|
2065
|
-
const { jsonPathData: w, mapperData:
|
|
2072
|
+
const { jsonPathData: w, mapperData: S, jsonPathPagination: D } = c, q = pe(
|
|
2066
2073
|
c,
|
|
2067
2074
|
C
|
|
2068
2075
|
), G = await n(
|
|
@@ -2074,7 +2081,7 @@ const as = (e, t, a, s) => {
|
|
|
2074
2081
|
Ue(
|
|
2075
2082
|
G == null ? void 0 : G.data,
|
|
2076
2083
|
w,
|
|
2077
|
-
|
|
2084
|
+
S,
|
|
2078
2085
|
D
|
|
2079
2086
|
)
|
|
2080
2087
|
), r(!1);
|
|
@@ -2084,18 +2091,18 @@ const as = (e, t, a, s) => {
|
|
|
2084
2091
|
}, x = (C) => {
|
|
2085
2092
|
f(C), m(C);
|
|
2086
2093
|
};
|
|
2087
|
-
|
|
2094
|
+
z(() => {
|
|
2088
2095
|
m();
|
|
2089
2096
|
}, []);
|
|
2090
|
-
const y =
|
|
2091
|
-
var
|
|
2092
|
-
return ((
|
|
2097
|
+
const y = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
|
|
2098
|
+
var S;
|
|
2099
|
+
return ((S = _ == null ? void 0 : _.items) == null ? void 0 : S.some(
|
|
2093
2100
|
(D) => Array.isArray(C != null && C.accessor ? D[C == null ? void 0 : C.accessor] : void 0)
|
|
2094
2101
|
)) ? {
|
|
2095
2102
|
...C,
|
|
2096
2103
|
renderCell: (D) => {
|
|
2097
2104
|
const q = C.accessor ? D[C.accessor] : void 0;
|
|
2098
|
-
return Array.isArray(q) ? /* @__PURE__ */ o.jsx(
|
|
2105
|
+
return Array.isArray(q) ? /* @__PURE__ */ o.jsx(vs, { values: q }) : q;
|
|
2099
2106
|
}
|
|
2100
2107
|
} : C;
|
|
2101
2108
|
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
@@ -2104,7 +2111,7 @@ const as = (e, t, a, s) => {
|
|
|
2104
2111
|
columns: y,
|
|
2105
2112
|
rightActions: b
|
|
2106
2113
|
};
|
|
2107
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(
|
|
2114
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(Ss, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2108
2115
|
/* @__PURE__ */ o.jsx(ut, { ...g }),
|
|
2109
2116
|
(_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
2110
2117
|
ht,
|
|
@@ -2117,12 +2124,12 @@ const as = (e, t, a, s) => {
|
|
|
2117
2124
|
}
|
|
2118
2125
|
)
|
|
2119
2126
|
] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2120
|
-
},
|
|
2121
|
-
tabsPanel:
|
|
2127
|
+
}, Ts = "_tabsPanel_kvslb_1", qs = {
|
|
2128
|
+
tabsPanel: Ts
|
|
2122
2129
|
}, $s = ({ userFlow: e, pageId: t, components: a }) => {
|
|
2123
|
-
const s =
|
|
2124
|
-
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2125
|
-
},
|
|
2130
|
+
const s = E(e, t, a);
|
|
2131
|
+
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: qs.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
|
|
2132
|
+
}, As = ({
|
|
2126
2133
|
userFlow: e,
|
|
2127
2134
|
pageId: t,
|
|
2128
2135
|
hash: a,
|
|
@@ -2160,9 +2167,9 @@ const as = (e, t, a, s) => {
|
|
|
2160
2167
|
onClick: d
|
|
2161
2168
|
}
|
|
2162
2169
|
);
|
|
2163
|
-
},
|
|
2164
|
-
textFieldNotFront:
|
|
2165
|
-
},
|
|
2170
|
+
}, Os = "_textFieldNotFront_cps4i_1", Rs = {
|
|
2171
|
+
textFieldNotFront: Os
|
|
2172
|
+
}, Ds = (e) => {
|
|
2166
2173
|
const {
|
|
2167
2174
|
userFlow: t,
|
|
2168
2175
|
pageId: a,
|
|
@@ -2174,10 +2181,10 @@ const as = (e, t, a, s) => {
|
|
|
2174
2181
|
...d
|
|
2175
2182
|
} = e, r = {
|
|
2176
2183
|
...d
|
|
2177
|
-
}, [u, f] =
|
|
2184
|
+
}, [u, f] = $((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = I(
|
|
2178
2185
|
t,
|
|
2179
2186
|
n
|
|
2180
|
-
), h = (r == null ? void 0 : r.disabled) ?? _, b =
|
|
2187
|
+
), h = (r == null ? void 0 : r.disabled) ?? _, b = 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 = (x) => {
|
|
2181
2188
|
var p;
|
|
2182
2189
|
const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
|
|
2183
2190
|
f(y);
|
|
@@ -2186,13 +2193,13 @@ const as = (e, t, a, s) => {
|
|
|
2186
2193
|
};
|
|
2187
2194
|
O(t, g);
|
|
2188
2195
|
};
|
|
2189
|
-
return
|
|
2196
|
+
return z(() => {
|
|
2190
2197
|
f((r == null ? void 0 : r.value) ?? "");
|
|
2191
2198
|
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2192
2199
|
mt,
|
|
2193
2200
|
{
|
|
2194
2201
|
...r,
|
|
2195
|
-
className:
|
|
2202
|
+
className: Rs.textFieldNotFront,
|
|
2196
2203
|
allowClear: !1,
|
|
2197
2204
|
label: b,
|
|
2198
2205
|
value: u,
|
|
@@ -2200,7 +2207,7 @@ const as = (e, t, a, s) => {
|
|
|
2200
2207
|
onChange: (x) => !h && m(x)
|
|
2201
2208
|
}
|
|
2202
2209
|
);
|
|
2203
|
-
},
|
|
2210
|
+
}, Ls = ({
|
|
2204
2211
|
userFlow: e,
|
|
2205
2212
|
pageId: t,
|
|
2206
2213
|
responseKey: a,
|
|
@@ -2224,7 +2231,7 @@ const as = (e, t, a, s) => {
|
|
|
2224
2231
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
2225
2232
|
}
|
|
2226
2233
|
}, [i, t, a, e, l]);
|
|
2227
|
-
return
|
|
2234
|
+
return z(() => {
|
|
2228
2235
|
({
|
|
2229
2236
|
info: W.info,
|
|
2230
2237
|
error: W.error,
|
|
@@ -2236,10 +2243,10 @@ const as = (e, t, a, s) => {
|
|
|
2236
2243
|
onClose: n
|
|
2237
2244
|
});
|
|
2238
2245
|
}, [n, e]), null;
|
|
2239
|
-
},
|
|
2240
|
-
accordion:
|
|
2241
|
-
accordionBody:
|
|
2242
|
-
},
|
|
2246
|
+
}, Bs = "_accordion_1ri2t_1", Is = "_accordionBody_1ri2t_8", De = {
|
|
2247
|
+
accordion: Bs,
|
|
2248
|
+
accordionBody: Is
|
|
2249
|
+
}, Ks = (e) => {
|
|
2243
2250
|
const {
|
|
2244
2251
|
userFlow: t,
|
|
2245
2252
|
pageId: a,
|
|
@@ -2249,12 +2256,12 @@ const as = (e, t, a, s) => {
|
|
|
2249
2256
|
actionContent: l,
|
|
2250
2257
|
components: n,
|
|
2251
2258
|
...d
|
|
2252
|
-
} = e, { getNextUI: r } =
|
|
2259
|
+
} = e, { getNextUI: r } = K(), [u, f] = $(
|
|
2253
2260
|
d.checkboxChecked || !1
|
|
2254
|
-
), { disabled: _ } =
|
|
2261
|
+
), { disabled: _ } = I(
|
|
2255
2262
|
t,
|
|
2256
2263
|
c
|
|
2257
|
-
), h =
|
|
2264
|
+
), h = E(t, a, n), b = l ? E(t, a, l) : void 0, m = i ? E(t, a, i) : void 0, x = R(
|
|
2258
2265
|
async (p) => {
|
|
2259
2266
|
var N;
|
|
2260
2267
|
try {
|
|
@@ -2289,11 +2296,11 @@ const as = (e, t, a, s) => {
|
|
|
2289
2296
|
children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${N}`)) }) : void 0
|
|
2290
2297
|
};
|
|
2291
2298
|
return /* @__PURE__ */ o.jsx(yt, { ...g });
|
|
2292
|
-
},
|
|
2293
|
-
drawer:
|
|
2294
|
-
drawerBody:
|
|
2295
|
-
drawerFooter:
|
|
2296
|
-
},
|
|
2299
|
+
}, Ms = "_drawer_13pxo_1", zs = "_drawerBody_13pxo_5", Gs = "_drawerFooter_13pxo_11", ue = {
|
|
2300
|
+
drawer: Ms,
|
|
2301
|
+
drawerBody: zs,
|
|
2302
|
+
drawerFooter: Gs
|
|
2303
|
+
}, Us = ({
|
|
2297
2304
|
userFlow: e,
|
|
2298
2305
|
pageId: t,
|
|
2299
2306
|
responseKey: a,
|
|
@@ -2314,7 +2321,7 @@ const as = (e, t, a, s) => {
|
|
|
2314
2321
|
children: null
|
|
2315
2322
|
}, f = R(() => {
|
|
2316
2323
|
xe(e), Z(e, !1);
|
|
2317
|
-
}, [e]), _ = Array.isArray(s) ?
|
|
2324
|
+
}, [e]), _ = Array.isArray(s) ? E(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = E(e, t, c), b = i ? E(e, t, i) : void 0;
|
|
2318
2325
|
return /* @__PURE__ */ o.jsx(
|
|
2319
2326
|
xt,
|
|
2320
2327
|
{
|
|
@@ -2329,13 +2336,13 @@ const as = (e, t, a, s) => {
|
|
|
2329
2336
|
}
|
|
2330
2337
|
);
|
|
2331
2338
|
};
|
|
2332
|
-
function
|
|
2339
|
+
function aa({
|
|
2333
2340
|
routes: e,
|
|
2334
2341
|
renderPage: t,
|
|
2335
2342
|
renderFallback: a,
|
|
2336
2343
|
redirectTo: s = "/"
|
|
2337
2344
|
}) {
|
|
2338
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2345
|
+
return /* @__PURE__ */ o.jsxs(Mt, { children: [
|
|
2339
2346
|
e.map((c) => /* @__PURE__ */ o.jsx(
|
|
2340
2347
|
Ce,
|
|
2341
2348
|
{
|
|
@@ -2344,16 +2351,16 @@ function na({
|
|
|
2344
2351
|
},
|
|
2345
2352
|
`${c.path}:${c.sessionName}`
|
|
2346
2353
|
)),
|
|
2347
|
-
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(
|
|
2354
|
+
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(zt, { to: s, replace: !0 }) })
|
|
2348
2355
|
] });
|
|
2349
2356
|
}
|
|
2350
|
-
function
|
|
2357
|
+
function ra({
|
|
2351
2358
|
sessionName: e,
|
|
2352
2359
|
apiConfig: t,
|
|
2353
2360
|
onResolveComponentProps: a,
|
|
2354
2361
|
children: s
|
|
2355
2362
|
}) {
|
|
2356
|
-
const c =
|
|
2363
|
+
const c = Js(
|
|
2357
2364
|
e,
|
|
2358
2365
|
t,
|
|
2359
2366
|
null,
|
|
@@ -2365,7 +2372,7 @@ function sa({
|
|
|
2365
2372
|
] });
|
|
2366
2373
|
}
|
|
2367
2374
|
const Le = (e, t, a, s, c) => {
|
|
2368
|
-
const i =
|
|
2375
|
+
const i = E(
|
|
2369
2376
|
e,
|
|
2370
2377
|
t,
|
|
2371
2378
|
(s == null ? void 0 : s.components) || null,
|
|
@@ -2393,9 +2400,9 @@ const Le = (e, t, a, s, c) => {
|
|
|
2393
2400
|
default:
|
|
2394
2401
|
return null;
|
|
2395
2402
|
}
|
|
2396
|
-
},
|
|
2403
|
+
}, Js = (e, t, a, s) => {
|
|
2397
2404
|
var _, h, b;
|
|
2398
|
-
const [c, i] =
|
|
2405
|
+
const [c, i] = $(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? Le(
|
|
2399
2406
|
e,
|
|
2400
2407
|
n,
|
|
2401
2408
|
"header",
|
|
@@ -2407,7 +2414,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2407
2414
|
"body",
|
|
2408
2415
|
((b = l[e].pages[n].page) == null ? void 0 : b.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, {}),
|
|
@@ -2427,7 +2434,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
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",
|
|
@@ -2444,10 +2451,10 @@ const Le = (e, t, a, s, c) => {
|
|
|
2444
2451
|
};
|
|
2445
2452
|
export {
|
|
2446
2453
|
Gn as Chart,
|
|
2447
|
-
|
|
2448
|
-
|
|
2454
|
+
aa as NotFrontDynamicRouter,
|
|
2455
|
+
ra as NotFrontPage,
|
|
2449
2456
|
ss as Row,
|
|
2450
2457
|
Zt as heading,
|
|
2451
2458
|
Ft as text,
|
|
2452
|
-
|
|
2459
|
+
Js as usePage
|
|
2453
2460
|
};
|