@foris/avocado-not-front 4.3.2 → 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,15 +1,15 @@
|
|
|
1
1
|
import V from "axios";
|
|
2
2
|
import { create as Qe } from "zustand";
|
|
3
|
-
import Ye, { useMemo as T, useEffect as z, useState 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
|
-
import { yaml as
|
|
10
|
+
import { yaml as St } from "@codemirror/lang-yaml";
|
|
11
11
|
import L from "jsonpath";
|
|
12
|
-
import { Legend as
|
|
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
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 } : {};
|
|
@@ -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,
|
|
@@ -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, Se = (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, Ee = (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), Se(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, Ee = (e) => {
|
|
|
208
208
|
), console.error(
|
|
209
209
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
210
210
|
P.length
|
|
211
|
-
),
|
|
211
|
+
), Se(r), Promise.reject(r);
|
|
212
212
|
} finally {
|
|
213
213
|
ie = !1;
|
|
214
214
|
}
|
|
@@ -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
|
|
@@ -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 Ee;
|
|
250
250
|
function Qt() {
|
|
251
|
-
if (
|
|
252
|
-
|
|
251
|
+
if (Ee) return Y;
|
|
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) {
|
|
255
255
|
var u, f = {}, _ = null, h = null;
|
|
@@ -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 = {
|
|
@@ -355,7 +355,7 @@ const Zt = (e) => {
|
|
|
355
355
|
translations: c
|
|
356
356
|
}
|
|
357
357
|
) });
|
|
358
|
-
},
|
|
358
|
+
}, B = (e, t) => {
|
|
359
359
|
const a = v((s) => {
|
|
360
360
|
var c;
|
|
361
361
|
return ((c = s[e]) == null ? void 0 : c.entries) || {};
|
|
@@ -385,22 +385,22 @@ 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
405
|
return z(() => {
|
|
406
406
|
s !== void 0 && s !== _ && h(s);
|
|
@@ -408,8 +408,8 @@ const Zt = (e) => {
|
|
|
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,
|
|
@@ -421,7 +421,7 @@ const Zt = (e) => {
|
|
|
421
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: Te.body, children: /* @__PURE__ */ o.jsx("div", { className: Te.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }),
|
|
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: {
|
|
@@ -527,7 +527,7 @@ const Zt = (e) => {
|
|
|
527
527
|
try {
|
|
528
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,
|
|
@@ -543,7 +543,7 @@ const Zt = (e) => {
|
|
|
543
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;
|
|
@@ -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");
|
|
@@ -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
|
-
),
|
|
745
|
-
if ((
|
|
746
|
-
const D =
|
|
744
|
+
), E = (C = w == null ? void 0 : w.data) == null ? void 0 : C.content;
|
|
745
|
+
if ((E == null ? void 0 : E.type) !== "fetch") break;
|
|
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,56 +772,56 @@ 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) => {
|
|
788
788
|
var l;
|
|
789
789
|
const c = {
|
|
790
|
-
accordion: (n) => /* @__PURE__ */ o.jsx(
|
|
790
|
+
accordion: (n) => /* @__PURE__ */ o.jsx(Bs, { ...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 }),
|
|
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(
|
|
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
801
|
code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
|
|
802
|
-
divider: (n) => /* @__PURE__ */ o.jsx(
|
|
803
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(
|
|
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(
|
|
815
|
-
tabs: (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
|
+
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 {
|
|
@@ -834,42 +834,34 @@ const Zt = (e) => {
|
|
|
834
834
|
content: n,
|
|
835
835
|
actionContent: d,
|
|
836
836
|
...r
|
|
837
|
-
} = e, { disabled: u } =
|
|
837
|
+
} = e, { disabled: u } = B(
|
|
838
838
|
t,
|
|
839
839
|
l
|
|
840
|
-
), f =
|
|
840
|
+
), f = S(
|
|
841
841
|
t,
|
|
842
842
|
a,
|
|
843
843
|
n && n.length > 0 ? n : null
|
|
844
|
-
), _ =
|
|
844
|
+
), _ = S(
|
|
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,54 +874,55 @@ const Zt = (e) => {
|
|
|
882
874
|
...r
|
|
883
875
|
} = e, u = {
|
|
884
876
|
...r
|
|
885
|
-
}, { getNextUI: f } = K(), [_, h] =
|
|
877
|
+
}, { getNextUI: f } = K(), [_, h] = q(l || !1), { disabled: p } = B(
|
|
886
878
|
t,
|
|
887
879
|
d
|
|
888
|
-
), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]),
|
|
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:
|
|
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
|
|
933
926
|
}, Sn = (e) => {
|
|
934
927
|
const {
|
|
935
928
|
userFlow: t,
|
|
@@ -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
|
-
yaml:
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
const
|
|
956
|
-
[a]:
|
|
946
|
+
yaml: St()
|
|
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,
|
|
@@ -1031,15 +1025,15 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1031
1025
|
icon: d,
|
|
1032
1026
|
headerStatusColor: r,
|
|
1033
1027
|
...u
|
|
1034
|
-
} = e, f = r ? `palette_${r}_50` : void 0, _ =
|
|
1028
|
+
} = e, f = r ? `palette_${r}_50` : void 0, _ = S(
|
|
1035
1029
|
t,
|
|
1036
1030
|
a,
|
|
1037
1031
|
l && l.length > 0 ? l : null
|
|
1038
|
-
), h =
|
|
1032
|
+
), h = S(
|
|
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(Tn), 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(Tn), 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) || {}
|
|
@@ -1091,14 +1085,14 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
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 =
|
|
1095
|
+
const m = p;
|
|
1102
1096
|
_[h] = _e((f = L.query(r, m)) == null ? void 0 : f[0]);
|
|
1103
1097
|
}
|
|
1104
1098
|
return _;
|
|
@@ -1114,19 +1108,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
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(Tn), 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,7 +1148,7 @@ const ee = /* @__PURE__ */ Wt(Tn), 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,
|
|
@@ -1162,28 +1156,28 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
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,
|
|
@@ -1210,7 +1204,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
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" }),
|
|
@@ -1230,7 +1224,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
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(Tn), 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],
|
|
@@ -1274,11 +1268,11 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1274
1268
|
}
|
|
1275
1269
|
)
|
|
1276
1270
|
] }) });
|
|
1277
|
-
},
|
|
1278
|
-
area:
|
|
1271
|
+
}, Mn = {
|
|
1272
|
+
area: Ln,
|
|
1279
1273
|
bar: In,
|
|
1280
|
-
line:
|
|
1281
|
-
pie:
|
|
1274
|
+
line: Bn,
|
|
1275
|
+
pie: Kn
|
|
1282
1276
|
}, M = [
|
|
1283
1277
|
"var(--color-primitive-palette-1-50)",
|
|
1284
1278
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1297,46 +1291,46 @@ const ee = /* @__PURE__ */ Wt(Tn), 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
|
-
},
|
|
1308
|
-
const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n =
|
|
1301
|
+
}, zn = (e) => {
|
|
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 } = K(), [r, u] =
|
|
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(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1349
1343
|
component: r,
|
|
1350
1344
|
hash: u,
|
|
1351
1345
|
...f
|
|
1352
|
-
} = e, { getNextUI: _ } = K(), { disabled: h } =
|
|
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(Tn), 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(Tn), 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)
|
|
@@ -1442,7 +1436,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1442
1436
|
...(a == null ? void 0 : a.components) || [],
|
|
1443
1437
|
...((i = a == null ? void 0 : a.header) == null ? void 0 : i.components) || [],
|
|
1444
1438
|
...((l = a == null ? void 0 : a.body) == null ? void 0 : l.components) || []
|
|
1445
|
-
], c =
|
|
1439
|
+
], c = S(
|
|
1446
1440
|
e,
|
|
1447
1441
|
t,
|
|
1448
1442
|
s
|
|
@@ -1451,7 +1445,7 @@ const ee = /* @__PURE__ */ Wt(Tn), 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(Tn), 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(Tn), 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(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1499
1493
|
dependencies: l,
|
|
1500
1494
|
onClick: n,
|
|
1501
1495
|
...d
|
|
1502
|
-
} = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } =
|
|
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(Tn), 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(Tn), 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(Tn), 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(Tn), 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,
|
|
@@ -1641,7 +1635,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1641
1635
|
J[`row__align-${n}`]
|
|
1642
1636
|
),
|
|
1643
1637
|
children: d == null ? void 0 : d.map((r, u) => {
|
|
1644
|
-
const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ =
|
|
1638
|
+
const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ = S(t, a, r.items);
|
|
1645
1639
|
return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1646
1640
|
"div",
|
|
1647
1641
|
{
|
|
@@ -1677,10 +1671,9 @@ function Je({
|
|
|
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,21 +1706,21 @@ function Je({
|
|
|
1713
1706
|
[i, l, d]
|
|
1714
1707
|
);
|
|
1715
1708
|
}
|
|
1716
|
-
const
|
|
1709
|
+
const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
1717
1710
|
var a;
|
|
1718
|
-
return t.includes("{") ? t.replace(
|
|
1711
|
+
return t.includes("{") ? t.replace(ss, (s, c) => {
|
|
1719
1712
|
var l;
|
|
1720
1713
|
const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
|
|
1721
1714
|
return i != null ? String(i) : "";
|
|
1722
1715
|
}) : (a = L.query(e, t)) == null ? void 0 : a[0];
|
|
1723
|
-
},
|
|
1716
|
+
}, rs = (e, t, a, s) => {
|
|
1724
1717
|
const c = L.query(e, t);
|
|
1725
1718
|
return (c == null ? void 0 : c.map((i) => {
|
|
1726
1719
|
var d;
|
|
1727
|
-
const l =
|
|
1720
|
+
const l = as(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
|
|
1728
1721
|
return { label: l, value: n };
|
|
1729
1722
|
})) ?? [];
|
|
1730
|
-
},
|
|
1723
|
+
}, os = (e, t, a, s = 10) => {
|
|
1731
1724
|
var n, d;
|
|
1732
1725
|
let c, i;
|
|
1733
1726
|
if (a) {
|
|
@@ -1743,9 +1736,9 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1743
1736
|
total: i,
|
|
1744
1737
|
hasMore: l
|
|
1745
1738
|
};
|
|
1746
|
-
},
|
|
1747
|
-
selectNotFront:
|
|
1748
|
-
},
|
|
1739
|
+
}, cs = "_selectNotFront_ch3v5_1", Ve = {
|
|
1740
|
+
selectNotFront: cs
|
|
1741
|
+
}, is = ({
|
|
1749
1742
|
userFlow: e,
|
|
1750
1743
|
pageId: t,
|
|
1751
1744
|
responseKey: a,
|
|
@@ -1758,15 +1751,16 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1758
1751
|
}) => {
|
|
1759
1752
|
const r = {
|
|
1760
1753
|
...d
|
|
1761
|
-
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] =
|
|
1754
|
+
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = q((r == null ? void 0 : r.value) ?? ""), { disabled: p } = B(
|
|
1762
1755
|
e,
|
|
1763
1756
|
l
|
|
1764
|
-
), m = (r == null ? void 0 : r.disabled) ??
|
|
1765
|
-
const j = r != null && r.isMulti ? _ : [_],
|
|
1766
|
-
return
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
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;
|
|
1761
|
+
const E = JSON.stringify(w.value), D = JSON.stringify(w.label);
|
|
1762
|
+
N[E] = w, D in N || (N[D] = w);
|
|
1763
|
+
}), N;
|
|
1770
1764
|
}, [_]), g = Je({
|
|
1771
1765
|
userFlow: e,
|
|
1772
1766
|
pageId: t,
|
|
@@ -1775,13 +1769,13 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1775
1769
|
getNextUI: u,
|
|
1776
1770
|
isMulti: r == null ? void 0 : r.isMulti,
|
|
1777
1771
|
debounceMs: n
|
|
1778
|
-
}),
|
|
1772
|
+
}), b = (j) => {
|
|
1779
1773
|
h(j), g(j);
|
|
1780
|
-
},
|
|
1774
|
+
}, C = async (j, N, { page: w }) => {
|
|
1781
1775
|
const {
|
|
1782
|
-
jsonPathLabel:
|
|
1776
|
+
jsonPathLabel: E,
|
|
1783
1777
|
jsonPathOptions: D,
|
|
1784
|
-
jsonPathValue:
|
|
1778
|
+
jsonPathValue: A,
|
|
1785
1779
|
jsonPathPagination: G
|
|
1786
1780
|
} = c, U = pe(
|
|
1787
1781
|
c,
|
|
@@ -1791,12 +1785,12 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1791
1785
|
U,
|
|
1792
1786
|
e,
|
|
1793
1787
|
!1
|
|
1794
|
-
), oe = re == null ? void 0 : re.data, Xe = oe ?
|
|
1788
|
+
), oe = re == null ? void 0 : re.data, Xe = oe ? rs(
|
|
1795
1789
|
oe,
|
|
1796
1790
|
D,
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
) : [], { hasMore: We } =
|
|
1791
|
+
E,
|
|
1792
|
+
A
|
|
1793
|
+
) : [], { hasMore: We } = os(
|
|
1800
1794
|
oe,
|
|
1801
1795
|
w,
|
|
1802
1796
|
G
|
|
@@ -1814,21 +1808,21 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1814
1808
|
{
|
|
1815
1809
|
...r,
|
|
1816
1810
|
className: Ve.selectNotFront,
|
|
1817
|
-
label:
|
|
1811
|
+
label: y,
|
|
1818
1812
|
value: _,
|
|
1819
1813
|
disabled: m,
|
|
1820
1814
|
noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
|
|
1821
|
-
onChange: (j) => !m &&
|
|
1822
|
-
loadOptions:
|
|
1815
|
+
onChange: (j) => !m && b(j),
|
|
1816
|
+
loadOptions: C,
|
|
1823
1817
|
additional: { page: 1 },
|
|
1824
1818
|
isOptionDisabled: (j) => {
|
|
1825
|
-
const
|
|
1826
|
-
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]);
|
|
1827
1821
|
},
|
|
1828
1822
|
debounceTimeout: 350
|
|
1829
1823
|
}
|
|
1830
1824
|
);
|
|
1831
|
-
},
|
|
1825
|
+
}, ls = ({
|
|
1832
1826
|
userFlow: e,
|
|
1833
1827
|
pageId: t,
|
|
1834
1828
|
responseKey: a,
|
|
@@ -1841,10 +1835,10 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1841
1835
|
}) => {
|
|
1842
1836
|
const r = {
|
|
1843
1837
|
...d
|
|
1844
|
-
}, { getNextUI: u } = K(), [f, _] =
|
|
1838
|
+
}, { getNextUI: u } = K(), [f, _] = q(r.value || ""), { disabled: h } = B(
|
|
1845
1839
|
e,
|
|
1846
1840
|
l
|
|
1847
|
-
),
|
|
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({
|
|
1848
1842
|
userFlow: e,
|
|
1849
1843
|
pageId: t,
|
|
1850
1844
|
responseKey: a,
|
|
@@ -1852,8 +1846,8 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1852
1846
|
getNextUI: u,
|
|
1853
1847
|
isMulti: r == null ? void 0 : r.isMulti,
|
|
1854
1848
|
debounceMs: n
|
|
1855
|
-
}),
|
|
1856
|
-
_(g),
|
|
1849
|
+
}), x = (g) => {
|
|
1850
|
+
_(g), y(g);
|
|
1857
1851
|
};
|
|
1858
1852
|
return /* @__PURE__ */ o.jsx(
|
|
1859
1853
|
dt,
|
|
@@ -1862,27 +1856,27 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1862
1856
|
className: Ve.selectNotFront,
|
|
1863
1857
|
label: m,
|
|
1864
1858
|
value: f,
|
|
1865
|
-
disabled:
|
|
1866
|
-
onChange: (g) => !
|
|
1859
|
+
disabled: p,
|
|
1860
|
+
onChange: (g) => !p && x(g)
|
|
1867
1861
|
}
|
|
1868
1862
|
);
|
|
1869
|
-
},
|
|
1863
|
+
}, ds = (e) => {
|
|
1870
1864
|
const { dataSource: t } = e;
|
|
1871
|
-
return t ? /* @__PURE__ */ o.jsx(
|
|
1872
|
-
},
|
|
1873
|
-
spacing:
|
|
1874
|
-
spacing__xxs:
|
|
1875
|
-
spacing__xs:
|
|
1876
|
-
spacing__sm:
|
|
1877
|
-
spacing__md:
|
|
1878
|
-
spacing__lg:
|
|
1879
|
-
spacing__xl:
|
|
1880
|
-
spacing__xxl:
|
|
1881
|
-
spacing__xxxl:
|
|
1882
|
-
},
|
|
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) => {
|
|
1883
1877
|
const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
|
|
1884
1878
|
return /* @__PURE__ */ o.jsx("div", { className: a });
|
|
1885
|
-
},
|
|
1879
|
+
}, js = (e) => {
|
|
1886
1880
|
const {
|
|
1887
1881
|
userFlow: t,
|
|
1888
1882
|
pageId: a,
|
|
@@ -1895,50 +1889,50 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1895
1889
|
...r
|
|
1896
1890
|
} = e, u = {
|
|
1897
1891
|
...r
|
|
1898
|
-
}, { getNextUI: f } = K(), [_, h] =
|
|
1892
|
+
}, { getNextUI: f } = K(), [_, h] = q(l || !1), { disabled: p } = B(
|
|
1899
1893
|
t,
|
|
1900
1894
|
d
|
|
1901
|
-
), 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 () => {
|
|
1902
1896
|
var g;
|
|
1903
1897
|
try {
|
|
1904
|
-
const
|
|
1905
|
-
h(
|
|
1906
|
-
const
|
|
1898
|
+
const b = !_;
|
|
1899
|
+
h(b);
|
|
1900
|
+
const C = {
|
|
1907
1901
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
1908
|
-
[s]:
|
|
1902
|
+
[s]: b
|
|
1909
1903
|
};
|
|
1910
|
-
switch (O(t,
|
|
1904
|
+
switch (O(t, C), c) {
|
|
1911
1905
|
case "GO_TO_NEXT_UI":
|
|
1912
1906
|
const j = await f(
|
|
1913
1907
|
t,
|
|
1914
1908
|
a,
|
|
1915
|
-
|
|
1909
|
+
C,
|
|
1916
1910
|
s
|
|
1917
1911
|
);
|
|
1918
|
-
j != null && j.data &&
|
|
1912
|
+
j != null && j.data && $(t, j == null ? void 0 : j.data);
|
|
1919
1913
|
break;
|
|
1920
1914
|
default:
|
|
1921
1915
|
console.warn(`Unhandled actionType: ${c}`);
|
|
1922
1916
|
break;
|
|
1923
1917
|
}
|
|
1924
|
-
} catch (
|
|
1925
|
-
console.error("Error in switch action:",
|
|
1918
|
+
} catch (b) {
|
|
1919
|
+
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
1926
1920
|
}
|
|
1927
1921
|
}, [t, a, s, c, _]);
|
|
1928
1922
|
return /* @__PURE__ */ o.jsx(
|
|
1929
1923
|
_t,
|
|
1930
1924
|
{
|
|
1931
1925
|
...u,
|
|
1932
|
-
label:
|
|
1926
|
+
label: y,
|
|
1933
1927
|
checked: _,
|
|
1934
1928
|
disabled: m,
|
|
1935
|
-
onChange: () => !m &&
|
|
1929
|
+
onChange: () => !m && x()
|
|
1936
1930
|
}
|
|
1937
1931
|
);
|
|
1938
|
-
},
|
|
1939
|
-
tableSkeleton:
|
|
1940
|
-
tableArrayPills:
|
|
1941
|
-
},
|
|
1932
|
+
}, ws = "_tableSkeleton_3nr9n_1", Cs = "_tableArrayPills_3nr9n_7", He = {
|
|
1933
|
+
tableSkeleton: ws,
|
|
1934
|
+
tableArrayPills: Cs
|
|
1935
|
+
}, Ns = ({ values: e }) => {
|
|
1942
1936
|
const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
|
|
1943
1937
|
return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
|
|
1944
1938
|
a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
|
|
@@ -1947,14 +1941,14 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1947
1941
|
s
|
|
1948
1942
|
] })
|
|
1949
1943
|
] });
|
|
1950
|
-
},
|
|
1944
|
+
}, vs = ({
|
|
1951
1945
|
userFlow: e,
|
|
1952
1946
|
pageId: t,
|
|
1953
1947
|
tableResponseKey: a,
|
|
1954
1948
|
component: s,
|
|
1955
1949
|
rowData: c
|
|
1956
1950
|
}) => {
|
|
1957
|
-
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d =
|
|
1951
|
+
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d = S(e, t, [
|
|
1958
1952
|
{ ...s }
|
|
1959
1953
|
]), r = (d == null ? void 0 : d[0]) || null;
|
|
1960
1954
|
if (!r) return null;
|
|
@@ -1963,71 +1957,71 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1963
1957
|
responseKey: f,
|
|
1964
1958
|
dataSource: _
|
|
1965
1959
|
} = r.props, h = R(async () => {
|
|
1966
|
-
var
|
|
1960
|
+
var p, m, y;
|
|
1967
1961
|
try {
|
|
1968
|
-
const
|
|
1969
|
-
...(
|
|
1962
|
+
const x = {
|
|
1963
|
+
...(p = v.getState()[e]) == null ? void 0 : p.entries,
|
|
1970
1964
|
[f]: { status: 200 },
|
|
1971
1965
|
[a]: [{ ...c }]
|
|
1972
1966
|
};
|
|
1973
|
-
switch (O(e,
|
|
1967
|
+
switch (O(e, x), u) {
|
|
1974
1968
|
case "GO_TO_NEXT_UI": {
|
|
1975
1969
|
const g = await i(
|
|
1976
1970
|
e,
|
|
1977
1971
|
t,
|
|
1978
|
-
|
|
1972
|
+
x,
|
|
1979
1973
|
f
|
|
1980
1974
|
);
|
|
1981
|
-
g != null && g.data &&
|
|
1975
|
+
g != null && g.data && $(e, g == null ? void 0 : g.data);
|
|
1982
1976
|
break;
|
|
1983
1977
|
}
|
|
1984
1978
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1985
1979
|
const g = await l(
|
|
1986
1980
|
e,
|
|
1987
1981
|
t,
|
|
1988
|
-
|
|
1982
|
+
x,
|
|
1989
1983
|
f,
|
|
1990
1984
|
_
|
|
1991
1985
|
);
|
|
1992
|
-
g != null && g.data &&
|
|
1986
|
+
g != null && g.data && $(e, g == null ? void 0 : g.data);
|
|
1993
1987
|
break;
|
|
1994
1988
|
}
|
|
1995
1989
|
case "GET_DATA_SOURCE": {
|
|
1996
1990
|
const g = await i(
|
|
1997
1991
|
e,
|
|
1998
1992
|
t,
|
|
1999
|
-
|
|
1993
|
+
x,
|
|
2000
1994
|
f
|
|
2001
|
-
),
|
|
2002
|
-
if ((
|
|
2003
|
-
const
|
|
2004
|
-
|
|
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,
|
|
2005
1999
|
e,
|
|
2006
2000
|
// Avoid to handle loading state until all the requests are done
|
|
2007
2001
|
!1
|
|
2008
|
-
),
|
|
2009
|
-
...(
|
|
2002
|
+
), N = {
|
|
2003
|
+
...(y = v.getState()[e]) == null ? void 0 : y.entries,
|
|
2010
2004
|
[f]: {
|
|
2011
2005
|
status: j == null ? void 0 : j.status,
|
|
2012
2006
|
content: j == null ? void 0 : j.data
|
|
2013
2007
|
}
|
|
2014
2008
|
};
|
|
2015
|
-
O(e,
|
|
2009
|
+
O(e, N);
|
|
2016
2010
|
const w = await i(
|
|
2017
2011
|
e,
|
|
2018
2012
|
t,
|
|
2019
|
-
|
|
2013
|
+
N,
|
|
2020
2014
|
f
|
|
2021
2015
|
);
|
|
2022
|
-
w != null && w.data &&
|
|
2016
|
+
w != null && w.data && $(e, w == null ? void 0 : w.data);
|
|
2023
2017
|
break;
|
|
2024
2018
|
}
|
|
2025
2019
|
default:
|
|
2026
2020
|
console.warn(`Unhandled actionType: ${u}`);
|
|
2027
2021
|
break;
|
|
2028
2022
|
}
|
|
2029
|
-
} catch (
|
|
2030
|
-
alert(JSON.stringify(
|
|
2023
|
+
} catch (x) {
|
|
2024
|
+
alert(JSON.stringify(x));
|
|
2031
2025
|
}
|
|
2032
2026
|
}, [u, _, t, f, e]);
|
|
2033
2027
|
return Fe(r, {
|
|
@@ -2041,7 +2035,7 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2041
2035
|
radius: 8
|
|
2042
2036
|
},
|
|
2043
2037
|
`tableSkeletonBase${t}`
|
|
2044
|
-
)) }),
|
|
2038
|
+
)) }), Es = ({
|
|
2045
2039
|
userFlow: e,
|
|
2046
2040
|
pageId: t,
|
|
2047
2041
|
responseKey: a,
|
|
@@ -2050,30 +2044,30 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2050
2044
|
rightActions: i,
|
|
2051
2045
|
...l
|
|
2052
2046
|
}) => {
|
|
2053
|
-
var
|
|
2054
|
-
const { fetchDataSource: n } = K(), [d, r] =
|
|
2047
|
+
var b, C, j;
|
|
2048
|
+
const { fetchDataSource: n } = K(), [d, r] = q(!1), [u, f] = q(1), [_, h] = q(null), p = T(() => {
|
|
2055
2049
|
if (i != null && i.length)
|
|
2056
|
-
return i.map((
|
|
2057
|
-
renderContent: (
|
|
2058
|
-
|
|
2050
|
+
return i.map((N, w) => ({
|
|
2051
|
+
renderContent: (E) => /* @__PURE__ */ o.jsx(
|
|
2052
|
+
vs,
|
|
2059
2053
|
{
|
|
2060
2054
|
userFlow: e,
|
|
2061
2055
|
pageId: t,
|
|
2062
2056
|
tableResponseKey: a,
|
|
2063
|
-
component:
|
|
2064
|
-
rowData:
|
|
2057
|
+
component: N,
|
|
2058
|
+
rowData: E
|
|
2065
2059
|
},
|
|
2066
2060
|
`tableRowAction${w}`
|
|
2067
2061
|
)
|
|
2068
2062
|
}));
|
|
2069
|
-
}, [i, e, t]), m = async (
|
|
2063
|
+
}, [i, e, t]), m = async (N = 1) => {
|
|
2070
2064
|
try {
|
|
2071
2065
|
r(!0);
|
|
2072
|
-
const { jsonPathData: w, mapperData:
|
|
2066
|
+
const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c, A = pe(
|
|
2073
2067
|
c,
|
|
2074
|
-
|
|
2068
|
+
N
|
|
2075
2069
|
), G = await n(
|
|
2076
|
-
|
|
2070
|
+
A,
|
|
2077
2071
|
e,
|
|
2078
2072
|
!1
|
|
2079
2073
|
);
|
|
@@ -2081,55 +2075,55 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2081
2075
|
Ue(
|
|
2082
2076
|
G == null ? void 0 : G.data,
|
|
2083
2077
|
w,
|
|
2084
|
-
|
|
2078
|
+
E,
|
|
2085
2079
|
D
|
|
2086
2080
|
)
|
|
2087
2081
|
), r(!1);
|
|
2088
2082
|
} catch (w) {
|
|
2089
2083
|
alert(JSON.stringify(w)), r(!1);
|
|
2090
2084
|
}
|
|
2091
|
-
},
|
|
2092
|
-
f(
|
|
2085
|
+
}, y = (N) => {
|
|
2086
|
+
f(N), m(N);
|
|
2093
2087
|
};
|
|
2094
2088
|
z(() => {
|
|
2095
2089
|
m();
|
|
2096
2090
|
}, []);
|
|
2097
|
-
const
|
|
2098
|
-
var
|
|
2099
|
-
return ((
|
|
2100
|
-
(D) => Array.isArray(
|
|
2091
|
+
const x = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((N) => {
|
|
2092
|
+
var E;
|
|
2093
|
+
return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
|
|
2094
|
+
(D) => Array.isArray(N != null && N.accessor ? D[N == null ? void 0 : N.accessor] : void 0)
|
|
2101
2095
|
)) ? {
|
|
2102
|
-
...
|
|
2096
|
+
...N,
|
|
2103
2097
|
renderCell: (D) => {
|
|
2104
|
-
const
|
|
2105
|
-
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;
|
|
2106
2100
|
}
|
|
2107
|
-
} :
|
|
2101
|
+
} : N;
|
|
2108
2102
|
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
2109
2103
|
...l,
|
|
2110
2104
|
data: _ == null ? void 0 : _.items,
|
|
2111
|
-
columns:
|
|
2112
|
-
rightActions:
|
|
2105
|
+
columns: x,
|
|
2106
|
+
rightActions: p
|
|
2113
2107
|
};
|
|
2114
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(Ss, {}) : _ && ((
|
|
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: [
|
|
2115
2109
|
/* @__PURE__ */ o.jsx(ut, { ...g }),
|
|
2116
|
-
(_ == null ? void 0 : _.pagination) && ((
|
|
2110
|
+
(_ == null ? void 0 : _.pagination) && ((C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
2117
2111
|
ht,
|
|
2118
2112
|
{
|
|
2119
2113
|
classname: { global: "row__end" },
|
|
2120
2114
|
page: u,
|
|
2121
2115
|
size: _ == null ? void 0 : _.pagination.size,
|
|
2122
2116
|
total: (j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.total,
|
|
2123
|
-
onChange:
|
|
2117
|
+
onChange: y
|
|
2124
2118
|
}
|
|
2125
2119
|
)
|
|
2126
2120
|
] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2127
|
-
},
|
|
2128
|
-
tabsPanel:
|
|
2129
|
-
},
|
|
2130
|
-
const s =
|
|
2131
|
-
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2132
|
-
},
|
|
2121
|
+
}, ks = "_tabsPanel_kvslb_1", Ts = {
|
|
2122
|
+
tabsPanel: ks
|
|
2123
|
+
}, As = ({ userFlow: e, pageId: t, components: a }) => {
|
|
2124
|
+
const s = S(e, t, a);
|
|
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;
|
|
2126
|
+
}, qs = ({
|
|
2133
2127
|
userFlow: e,
|
|
2134
2128
|
pageId: t,
|
|
2135
2129
|
hash: a,
|
|
@@ -2142,7 +2136,7 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2142
2136
|
label: r.label,
|
|
2143
2137
|
disabled: r.disabled,
|
|
2144
2138
|
children: /* @__PURE__ */ o.jsx(
|
|
2145
|
-
|
|
2139
|
+
As,
|
|
2146
2140
|
{
|
|
2147
2141
|
userFlow: e,
|
|
2148
2142
|
pageId: t,
|
|
@@ -2167,9 +2161,9 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2167
2161
|
onClick: d
|
|
2168
2162
|
}
|
|
2169
2163
|
);
|
|
2170
|
-
},
|
|
2171
|
-
textFieldNotFront:
|
|
2172
|
-
},
|
|
2164
|
+
}, $s = "_textFieldNotFront_1n8fy_1", Os = {
|
|
2165
|
+
textFieldNotFront: $s
|
|
2166
|
+
}, Rs = (e) => {
|
|
2173
2167
|
const {
|
|
2174
2168
|
userFlow: t,
|
|
2175
2169
|
pageId: a,
|
|
@@ -2181,15 +2175,15 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2181
2175
|
...d
|
|
2182
2176
|
} = e, r = {
|
|
2183
2177
|
...d
|
|
2184
|
-
}, [u, f] =
|
|
2178
|
+
}, [u, f] = q((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
|
|
2185
2179
|
t,
|
|
2186
2180
|
n
|
|
2187
|
-
), h = (r == null ? void 0 : r.disabled) ?? _,
|
|
2188
|
-
var
|
|
2189
|
-
const
|
|
2190
|
-
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);
|
|
2191
2185
|
const g = {
|
|
2192
|
-
[i]:
|
|
2186
|
+
[i]: x
|
|
2193
2187
|
};
|
|
2194
2188
|
O(t, g);
|
|
2195
2189
|
};
|
|
@@ -2199,15 +2193,15 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2199
2193
|
mt,
|
|
2200
2194
|
{
|
|
2201
2195
|
...r,
|
|
2202
|
-
className:
|
|
2196
|
+
className: Os.textFieldNotFront,
|
|
2203
2197
|
allowClear: !1,
|
|
2204
|
-
label:
|
|
2198
|
+
label: p,
|
|
2205
2199
|
value: u,
|
|
2206
2200
|
disabled: h,
|
|
2207
|
-
onChange: (
|
|
2201
|
+
onChange: (y) => !h && m(y)
|
|
2208
2202
|
}
|
|
2209
2203
|
);
|
|
2210
|
-
},
|
|
2204
|
+
}, Ds = ({
|
|
2211
2205
|
userFlow: e,
|
|
2212
2206
|
pageId: t,
|
|
2213
2207
|
responseKey: a,
|
|
@@ -2233,20 +2227,20 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2233
2227
|
}, [i, t, a, e, l]);
|
|
2234
2228
|
return z(() => {
|
|
2235
2229
|
({
|
|
2236
|
-
info:
|
|
2237
|
-
error:
|
|
2238
|
-
success:
|
|
2239
|
-
warning:
|
|
2240
|
-
}[s] ||
|
|
2230
|
+
info: Q.info,
|
|
2231
|
+
error: Q.error,
|
|
2232
|
+
success: Q.success,
|
|
2233
|
+
warning: Q.warning
|
|
2234
|
+
}[s] || Q.info)(c, {
|
|
2241
2235
|
autoClose: i ? !1 : 4e3,
|
|
2242
2236
|
containerId: e,
|
|
2243
2237
|
onClose: n
|
|
2244
2238
|
});
|
|
2245
2239
|
}, [n, e]), null;
|
|
2246
|
-
},
|
|
2247
|
-
accordion:
|
|
2240
|
+
}, Ls = "_accordion_1ri2t_1", Is = "_accordionBody_1ri2t_8", De = {
|
|
2241
|
+
accordion: Ls,
|
|
2248
2242
|
accordionBody: Is
|
|
2249
|
-
},
|
|
2243
|
+
}, Bs = (e) => {
|
|
2250
2244
|
const {
|
|
2251
2245
|
userFlow: t,
|
|
2252
2246
|
pageId: a,
|
|
@@ -2256,51 +2250,51 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2256
2250
|
actionContent: l,
|
|
2257
2251
|
components: n,
|
|
2258
2252
|
...d
|
|
2259
|
-
} = e, { getNextUI: r } = K(), [u, f] =
|
|
2253
|
+
} = e, { getNextUI: r } = K(), [u, f] = q(
|
|
2260
2254
|
d.checkboxChecked || !1
|
|
2261
|
-
), { disabled: _ } =
|
|
2255
|
+
), { disabled: _ } = B(
|
|
2262
2256
|
t,
|
|
2263
2257
|
c
|
|
2264
|
-
), h =
|
|
2265
|
-
async (
|
|
2266
|
-
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;
|
|
2267
2261
|
try {
|
|
2268
|
-
const j =
|
|
2262
|
+
const j = b.target.checked;
|
|
2269
2263
|
f(j);
|
|
2270
|
-
const
|
|
2271
|
-
...(
|
|
2264
|
+
const N = {
|
|
2265
|
+
...(C = v.getState()[t]) == null ? void 0 : C.entries,
|
|
2272
2266
|
[s]: j
|
|
2273
2267
|
};
|
|
2274
|
-
if (O(t,
|
|
2268
|
+
if (O(t, N), d.actionType === "GO_TO_NEXT_UI") {
|
|
2275
2269
|
const w = await r(
|
|
2276
2270
|
t,
|
|
2277
2271
|
a,
|
|
2278
|
-
|
|
2272
|
+
N,
|
|
2279
2273
|
s
|
|
2280
2274
|
);
|
|
2281
|
-
w != null && w.data &&
|
|
2275
|
+
w != null && w.data && $(t, w == null ? void 0 : w.data);
|
|
2282
2276
|
}
|
|
2283
2277
|
} catch (j) {
|
|
2284
2278
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
2285
2279
|
}
|
|
2286
2280
|
},
|
|
2287
2281
|
[t, a, s, d.actionType, r]
|
|
2288
|
-
),
|
|
2282
|
+
), x = d.disabled || _, g = {
|
|
2289
2283
|
...d,
|
|
2290
2284
|
className: De.accordion,
|
|
2291
|
-
disabled:
|
|
2285
|
+
disabled: x,
|
|
2292
2286
|
checkboxChecked: u,
|
|
2293
|
-
onChanceCheckbox: d.hasCheckbox ?
|
|
2294
|
-
actionContent:
|
|
2295
|
-
customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((
|
|
2296
|
-
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
|
|
2297
2291
|
};
|
|
2298
2292
|
return /* @__PURE__ */ o.jsx(yt, { ...g });
|
|
2299
|
-
},
|
|
2300
|
-
drawer:
|
|
2301
|
-
drawerBody:
|
|
2302
|
-
drawerFooter:
|
|
2303
|
-
},
|
|
2293
|
+
}, Ks = "_drawer_13pxo_1", Ms = "_drawerBody_13pxo_5", zs = "_drawerFooter_13pxo_11", ue = {
|
|
2294
|
+
drawer: Ks,
|
|
2295
|
+
drawerBody: Ms,
|
|
2296
|
+
drawerFooter: zs
|
|
2297
|
+
}, Gs = ({
|
|
2304
2298
|
userFlow: e,
|
|
2305
2299
|
pageId: t,
|
|
2306
2300
|
responseKey: a,
|
|
@@ -2310,18 +2304,18 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2310
2304
|
...l
|
|
2311
2305
|
}) => {
|
|
2312
2306
|
const n = v((m) => {
|
|
2313
|
-
var
|
|
2314
|
-
return (
|
|
2307
|
+
var y;
|
|
2308
|
+
return (y = m[e]) == null ? void 0 : y.isDrawerOpen;
|
|
2315
2309
|
}), d = v((m) => {
|
|
2316
|
-
var
|
|
2317
|
-
return (
|
|
2310
|
+
var y;
|
|
2311
|
+
return (y = m[e]) == null ? void 0 : y.isLoading;
|
|
2318
2312
|
}), r = n && !d, u = {
|
|
2319
2313
|
...l,
|
|
2320
2314
|
isOpen: r,
|
|
2321
2315
|
children: null
|
|
2322
2316
|
}, f = R(() => {
|
|
2323
2317
|
xe(e), Z(e, !1);
|
|
2324
|
-
}, [e]), _ = Array.isArray(s) ?
|
|
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;
|
|
2325
2319
|
return /* @__PURE__ */ o.jsx(
|
|
2326
2320
|
xt,
|
|
2327
2321
|
{
|
|
@@ -2330,13 +2324,13 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2330
2324
|
isOpen: r,
|
|
2331
2325
|
onClose: f,
|
|
2332
2326
|
heightGap: 0,
|
|
2333
|
-
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m,
|
|
2334
|
-
children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m,
|
|
2335
|
-
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
|
|
2336
2330
|
}
|
|
2337
2331
|
);
|
|
2338
2332
|
};
|
|
2339
|
-
function
|
|
2333
|
+
function sa({
|
|
2340
2334
|
routes: e,
|
|
2341
2335
|
renderPage: t,
|
|
2342
2336
|
renderFallback: a,
|
|
@@ -2354,13 +2348,13 @@ function aa({
|
|
|
2354
2348
|
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(zt, { to: s, replace: !0 }) })
|
|
2355
2349
|
] });
|
|
2356
2350
|
}
|
|
2357
|
-
function
|
|
2351
|
+
function aa({
|
|
2358
2352
|
sessionName: e,
|
|
2359
2353
|
apiConfig: t,
|
|
2360
2354
|
onResolveComponentProps: a,
|
|
2361
2355
|
children: s
|
|
2362
2356
|
}) {
|
|
2363
|
-
const c =
|
|
2357
|
+
const c = Us(
|
|
2364
2358
|
e,
|
|
2365
2359
|
t,
|
|
2366
2360
|
null,
|
|
@@ -2372,7 +2366,7 @@ function ra({
|
|
|
2372
2366
|
] });
|
|
2373
2367
|
}
|
|
2374
2368
|
const Le = (e, t, a, s, c) => {
|
|
2375
|
-
const i =
|
|
2369
|
+
const i = S(
|
|
2376
2370
|
e,
|
|
2377
2371
|
t,
|
|
2378
2372
|
(s == null ? void 0 : s.components) || null,
|
|
@@ -2390,7 +2384,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2390
2384
|
);
|
|
2391
2385
|
case "header":
|
|
2392
2386
|
return /* @__PURE__ */ o.jsx(
|
|
2393
|
-
|
|
2387
|
+
Jn,
|
|
2394
2388
|
{
|
|
2395
2389
|
...s,
|
|
2396
2390
|
components: i || []
|
|
@@ -2400,9 +2394,15 @@ const Le = (e, t, a, s, c) => {
|
|
|
2400
2394
|
default:
|
|
2401
2395
|
return null;
|
|
2402
2396
|
}
|
|
2403
|
-
},
|
|
2404
|
-
var _, h,
|
|
2405
|
-
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(
|
|
2406
2406
|
e,
|
|
2407
2407
|
n,
|
|
2408
2408
|
"header",
|
|
@@ -2412,7 +2412,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2412
2412
|
e,
|
|
2413
2413
|
n,
|
|
2414
2414
|
"body",
|
|
2415
|
-
((
|
|
2415
|
+
((p = l[e].pages[n].page) == null ? void 0 : p.body) || null,
|
|
2416
2416
|
s
|
|
2417
2417
|
) : null, u = T(() => {
|
|
2418
2418
|
var m;
|
|
@@ -2420,7 +2420,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2420
2420
|
((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(gt, {}),
|
|
2421
2421
|
d,
|
|
2422
2422
|
r,
|
|
2423
|
-
n && /* @__PURE__ */ o.jsx(
|
|
2423
|
+
n && /* @__PURE__ */ o.jsx(Qn, { userFlow: e, pageId: n }),
|
|
2424
2424
|
l[e] && /* @__PURE__ */ o.jsx(pt, {})
|
|
2425
2425
|
] });
|
|
2426
2426
|
}, [d, r, n, e]), f = async () => {
|
|
@@ -2428,8 +2428,8 @@ const Le = (e, t, a, s, c) => {
|
|
|
2428
2428
|
const m = await Ge(
|
|
2429
2429
|
t,
|
|
2430
2430
|
e
|
|
2431
|
-
),
|
|
2432
|
-
(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);
|
|
2433
2433
|
} catch (m) {
|
|
2434
2434
|
console.error("[not-page]: API call failed", m), i(!0);
|
|
2435
2435
|
}
|
|
@@ -2440,21 +2440,21 @@ const Le = (e, t, a, s, c) => {
|
|
|
2440
2440
|
"not api config",
|
|
2441
2441
|
"not userFlow"
|
|
2442
2442
|
));
|
|
2443
|
-
const m = "avocado-theme-mode-changed",
|
|
2444
|
-
const g =
|
|
2443
|
+
const m = "avocado-theme-mode-changed", y = (x) => {
|
|
2444
|
+
const g = x.detail;
|
|
2445
2445
|
te.setThemeMode(g);
|
|
2446
2446
|
};
|
|
2447
|
-
return window.addEventListener(m,
|
|
2448
|
-
window.removeEventListener(m,
|
|
2447
|
+
return window.addEventListener(m, y), () => {
|
|
2448
|
+
window.removeEventListener(m, y);
|
|
2449
2449
|
};
|
|
2450
2450
|
}, []), c && console.error("[not-page]: No render page"), u;
|
|
2451
2451
|
};
|
|
2452
2452
|
export {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2453
|
+
zn as Chart,
|
|
2454
|
+
sa as NotFrontDynamicRouter,
|
|
2455
|
+
aa as NotFrontPage,
|
|
2456
|
+
ns as Row,
|
|
2457
2457
|
Zt as heading,
|
|
2458
2458
|
Ft as text,
|
|
2459
|
-
|
|
2459
|
+
Us as usePage
|
|
2460
2460
|
};
|