@foris/avocado-not-front 4.0.2 → 4.1.0
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 Ve } from "zustand";
|
|
3
|
-
import He, { useMemo as S, useEffect as K, useState as
|
|
4
|
-
import { Heading as Re, Text as Qe, ThemeStore as fe, Breadcrumbs as Ye, Button as Ze, CardNotification as ye, Checkbox as Fe, PreviewerMarkdown as Pe, Divider as et, SkeletonBase as De, Modal as tt, Pill as ue, RoundButton as nt, SelectPagination as at, Select as st, Switch as rt, Table as ct, Pager as ot,
|
|
5
|
-
import { ChatPanel as
|
|
6
|
-
import
|
|
3
|
+
import He, { useMemo as S, useEffect as K, useState as q, Fragment as A, useCallback as D, useRef as Xe, cloneElement as We } from "react";
|
|
4
|
+
import { Heading as Re, Text as Qe, ThemeStore as fe, Breadcrumbs as Ye, Button as Ze, CardNotification as ye, Checkbox as Fe, PreviewerMarkdown as Pe, Divider as et, SkeletonBase as De, Modal as tt, Pill as ue, RoundButton as nt, SelectPagination as at, Select as st, Switch as rt, Table as ct, Pager as ot, Tabs as it, TextField as lt, toast as W, Accordion as dt, Drawer as _t, Loading as ut, Toaster as ht } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as ft, SummaryCard as yt, PromptCodeEditor as mt } from "@foris/ai-agent";
|
|
6
|
+
import xt from "@uiw/react-codemirror";
|
|
7
7
|
import { json as we } from "@codemirror/lang-json";
|
|
8
|
-
import { markdown as
|
|
9
|
-
import { sql as
|
|
10
|
-
import { yaml as
|
|
8
|
+
import { markdown as gt } from "@codemirror/lang-markdown";
|
|
9
|
+
import { sql as bt } from "@codemirror/lang-sql";
|
|
10
|
+
import { yaml as pt } from "@codemirror/lang-yaml";
|
|
11
11
|
import B from "jsonpath";
|
|
12
|
-
import { Legend as
|
|
12
|
+
import { Legend as jt, Tooltip as wt, XAxis as Ct, YAxis as Nt, ResponsiveContainer as te, AreaChart as vt, CartesianGrid as me, Area as Et, BarChart as St, Bar as kt, LineChart as qt, Line as Ot, PieChart as At, Pie as Tt, Cell as $t } from "recharts";
|
|
13
13
|
const v = Ve(() => ({})), ce = (e, t, s, a) => {
|
|
14
14
|
const i = s == null ? void 0 : s.hash, c = a && Object.keys(a).length > 0 ? { ...a } : {};
|
|
15
15
|
v.setState((l) => {
|
|
@@ -41,7 +41,7 @@ const v = Ve(() => ({})), ce = (e, t, s, a) => {
|
|
|
41
41
|
([i]) => !t.includes(i)
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
|
-
},
|
|
44
|
+
}, Rt = (e, t, s, a, i) => {
|
|
45
45
|
sessionStorage.setItem("sessionId", s), v.setState((c) => {
|
|
46
46
|
const l = c[e] ?? {}, n = l.entries ?? {}, d = Le(
|
|
47
47
|
n,
|
|
@@ -65,7 +65,7 @@ const v = Ve(() => ({})), ce = (e, t, s, a) => {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
});
|
|
68
|
-
},
|
|
68
|
+
}, Dt = (e, t, s, a) => {
|
|
69
69
|
v.setState((i) => {
|
|
70
70
|
var r;
|
|
71
71
|
const c = i[e] ?? {}, l = c.entries ?? {}, n = Le(
|
|
@@ -95,23 +95,23 @@ const v = Ve(() => ({})), ce = (e, t, s, a) => {
|
|
|
95
95
|
overlay: null
|
|
96
96
|
}
|
|
97
97
|
}));
|
|
98
|
-
},
|
|
98
|
+
}, Lt = (e) => {
|
|
99
99
|
var s;
|
|
100
100
|
return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
|
|
101
|
-
},
|
|
101
|
+
}, T = (e, t) => {
|
|
102
102
|
const {
|
|
103
103
|
content: s,
|
|
104
104
|
sessionId: a,
|
|
105
105
|
deprecatedStateKeys: i = [],
|
|
106
106
|
sessionState: c
|
|
107
107
|
} = t;
|
|
108
|
-
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ?
|
|
108
|
+
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? Rt(
|
|
109
109
|
e,
|
|
110
110
|
s,
|
|
111
111
|
a,
|
|
112
112
|
i,
|
|
113
113
|
c
|
|
114
|
-
) :
|
|
114
|
+
) : Dt(
|
|
115
115
|
e,
|
|
116
116
|
s,
|
|
117
117
|
i,
|
|
@@ -172,15 +172,15 @@ const v = Ve(() => ({})), ce = (e, t, s, a) => {
|
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
174
|
let oe = !1, P = [], Ne = !1;
|
|
175
|
-
const
|
|
175
|
+
const Bt = (e) => e._userFlow || null, ve = (e) => {
|
|
176
176
|
P.forEach(({ resolve: t, reject: s }) => {
|
|
177
177
|
e ? s(e) : t(void 0);
|
|
178
178
|
}), P = [];
|
|
179
|
-
},
|
|
179
|
+
}, It = async (e) => {
|
|
180
180
|
var a, i;
|
|
181
181
|
const t = e == null ? void 0 : e.config;
|
|
182
182
|
if (((a = e == null ? void 0 : e.response) == null ? void 0 : a.status) === 401 && !t._retry) {
|
|
183
|
-
const c =
|
|
183
|
+
const c = Bt(t);
|
|
184
184
|
if (c) {
|
|
185
185
|
const n = (i = v.getState()[c]) == null ? void 0 : i.apiConfig;
|
|
186
186
|
if (!n)
|
|
@@ -222,17 +222,17 @@ const Lt = (e) => e._userFlow || null, ve = (e) => {
|
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
return Promise.reject(e);
|
|
225
|
-
},
|
|
225
|
+
}, zt = () => {
|
|
226
226
|
if (Ne) {
|
|
227
227
|
console.debug(
|
|
228
228
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
229
229
|
);
|
|
230
230
|
return;
|
|
231
231
|
}
|
|
232
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0,
|
|
232
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, It), console.debug("[axiosInterceptors] Response error interceptor registered"), Ne = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
233
233
|
};
|
|
234
|
-
|
|
235
|
-
function
|
|
234
|
+
zt();
|
|
235
|
+
function Mt(e) {
|
|
236
236
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
237
237
|
}
|
|
238
238
|
var ie = { exports: {} }, Q = {};
|
|
@@ -246,7 +246,7 @@ var ie = { exports: {} }, Q = {};
|
|
|
246
246
|
* LICENSE file in the root directory of this source tree.
|
|
247
247
|
*/
|
|
248
248
|
var Ee;
|
|
249
|
-
function
|
|
249
|
+
function Kt() {
|
|
250
250
|
if (Ee) return Q;
|
|
251
251
|
Ee = 1;
|
|
252
252
|
var e = He, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
@@ -260,11 +260,11 @@ function Mt() {
|
|
|
260
260
|
return Q.Fragment = s, Q.jsx = l, Q.jsxs = l, Q;
|
|
261
261
|
}
|
|
262
262
|
var Se;
|
|
263
|
-
function
|
|
264
|
-
return Se || (Se = 1, ie.exports =
|
|
263
|
+
function Gt() {
|
|
264
|
+
return Se || (Se = 1, ie.exports = Kt()), ie.exports;
|
|
265
265
|
}
|
|
266
|
-
var o =
|
|
267
|
-
const
|
|
266
|
+
var o = Gt();
|
|
267
|
+
const Ut = (e) => {
|
|
268
268
|
if (!(e != null && e.content)) return null;
|
|
269
269
|
const t = {
|
|
270
270
|
...e,
|
|
@@ -272,14 +272,14 @@ const Gt = (e) => {
|
|
|
272
272
|
type: e.variant
|
|
273
273
|
};
|
|
274
274
|
return /* @__PURE__ */ o.jsx(Re, { ...t });
|
|
275
|
-
},
|
|
275
|
+
}, Jt = (e) => {
|
|
276
276
|
if (!e) return null;
|
|
277
277
|
const t = {
|
|
278
278
|
...e,
|
|
279
279
|
children: e.content
|
|
280
280
|
};
|
|
281
281
|
return /* @__PURE__ */ o.jsx(Qe, { ...t });
|
|
282
|
-
},
|
|
282
|
+
}, Vt = (e) => {
|
|
283
283
|
const t = e.dataSource, s = S(() => ({
|
|
284
284
|
url: e.dataSource.url,
|
|
285
285
|
method: e.dataSource.method,
|
|
@@ -304,7 +304,7 @@ const Gt = (e) => {
|
|
|
304
304
|
initialSuggestions: e.initialSuggestions
|
|
305
305
|
});
|
|
306
306
|
}, [e.onResolveProps, s, a, i, e.initialSuggestions]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
|
|
307
|
-
|
|
307
|
+
ft,
|
|
308
308
|
{
|
|
309
309
|
dataSource: s,
|
|
310
310
|
locale: a,
|
|
@@ -312,9 +312,9 @@ const Gt = (e) => {
|
|
|
312
312
|
initialSuggestions: e.initialSuggestions
|
|
313
313
|
}
|
|
314
314
|
);
|
|
315
|
-
},
|
|
316
|
-
summaryCard:
|
|
317
|
-
},
|
|
315
|
+
}, Ht = "_summaryCard_jva4h_1", Xt = {
|
|
316
|
+
summaryCard: Ht
|
|
317
|
+
}, Wt = (e) => {
|
|
318
318
|
const t = e.dataSource, s = S(() => ({
|
|
319
319
|
url: e.dataSource.url,
|
|
320
320
|
method: e.dataSource.method,
|
|
@@ -337,8 +337,8 @@ const Gt = (e) => {
|
|
|
337
337
|
locale: a,
|
|
338
338
|
translations: i
|
|
339
339
|
});
|
|
340
|
-
}, [e.onResolveProps, s, a, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className:
|
|
341
|
-
|
|
340
|
+
}, [e.onResolveProps, s, a, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Xt.summaryCard, children: /* @__PURE__ */ o.jsx(
|
|
341
|
+
yt,
|
|
342
342
|
{
|
|
343
343
|
dataSource: s,
|
|
344
344
|
locale: a,
|
|
@@ -361,9 +361,9 @@ const Gt = (e) => {
|
|
|
361
361
|
});
|
|
362
362
|
}), a;
|
|
363
363
|
}, [t, s]);
|
|
364
|
-
},
|
|
365
|
-
promptCodeEditor:
|
|
366
|
-
},
|
|
364
|
+
}, Qt = "_promptCodeEditor_1d57s_1", Yt = {
|
|
365
|
+
promptCodeEditor: Qt
|
|
366
|
+
}, Zt = (e) => {
|
|
367
367
|
const {
|
|
368
368
|
userFlow: t,
|
|
369
369
|
responseKey: s,
|
|
@@ -375,7 +375,7 @@ const Gt = (e) => {
|
|
|
375
375
|
inputLabel: d,
|
|
376
376
|
inputPlaceholder: r,
|
|
377
377
|
codeBlockLabel: u
|
|
378
|
-
} = e, f = fe.useThemeStore((p) => p.theme.mode), [_, h] =
|
|
378
|
+
} = e, f = fe.useThemeStore((p) => p.theme.mode), [_, h] = q(
|
|
379
379
|
a || ""
|
|
380
380
|
), { disabled: j } = M(
|
|
381
381
|
t,
|
|
@@ -394,8 +394,8 @@ const Gt = (e) => {
|
|
|
394
394
|
};
|
|
395
395
|
return K(() => {
|
|
396
396
|
a !== void 0 && a !== _ && h(a);
|
|
397
|
-
}, [a]), /* @__PURE__ */ o.jsx("section", { className:
|
|
398
|
-
|
|
397
|
+
}, [a]), /* @__PURE__ */ o.jsx("section", { className: Yt.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
|
|
398
|
+
mt,
|
|
399
399
|
{
|
|
400
400
|
themeMode: f,
|
|
401
401
|
requestConfig: m,
|
|
@@ -408,10 +408,10 @@ const Gt = (e) => {
|
|
|
408
408
|
onCodeChange: g
|
|
409
409
|
}
|
|
410
410
|
) });
|
|
411
|
-
},
|
|
412
|
-
body:
|
|
413
|
-
body_content:
|
|
414
|
-
},
|
|
411
|
+
}, Ft = "_body_14tsv_1", Pt = "_body_content_14tsv_5", ke = {
|
|
412
|
+
body: Ft,
|
|
413
|
+
body_content: Pt
|
|
414
|
+
}, en = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: ke.body, children: /* @__PURE__ */ o.jsx("div", { className: ke.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(A, { children: t }, s)) }) }), X = (e) => {
|
|
415
415
|
if (!e)
|
|
416
416
|
return { "content-type": "application/json" };
|
|
417
417
|
if (typeof e == "function")
|
|
@@ -423,7 +423,7 @@ const Gt = (e) => {
|
|
|
423
423
|
return { "content-type": "application/json", Authorization: e };
|
|
424
424
|
}
|
|
425
425
|
return e;
|
|
426
|
-
}, F = () => new AbortController(),
|
|
426
|
+
}, F = () => new AbortController(), tn = (e, t = {}, s = {}, a = !1, i) => {
|
|
427
427
|
const c = F();
|
|
428
428
|
a && c.abort();
|
|
429
429
|
const l = X(t);
|
|
@@ -453,7 +453,7 @@ const Gt = (e) => {
|
|
|
453
453
|
}),
|
|
454
454
|
controller: l
|
|
455
455
|
};
|
|
456
|
-
},
|
|
456
|
+
}, nn = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
457
457
|
const l = F();
|
|
458
458
|
i && l.abort();
|
|
459
459
|
const n = X(t);
|
|
@@ -468,7 +468,7 @@ const Gt = (e) => {
|
|
|
468
468
|
}),
|
|
469
469
|
controller: l
|
|
470
470
|
};
|
|
471
|
-
},
|
|
471
|
+
}, an = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
472
472
|
const l = F();
|
|
473
473
|
i && l.abort();
|
|
474
474
|
const n = X(t);
|
|
@@ -483,7 +483,7 @@ const Gt = (e) => {
|
|
|
483
483
|
}),
|
|
484
484
|
controller: l
|
|
485
485
|
};
|
|
486
|
-
},
|
|
486
|
+
}, sn = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
487
487
|
const l = F();
|
|
488
488
|
i && l.abort();
|
|
489
489
|
const n = X(t);
|
|
@@ -552,14 +552,14 @@ const Gt = (e) => {
|
|
|
552
552
|
case "post":
|
|
553
553
|
return he(u, f, _, {}, !1, d);
|
|
554
554
|
case "put":
|
|
555
|
-
return tn(u, f, _, {}, !1, d);
|
|
556
|
-
case "patch":
|
|
557
555
|
return nn(u, f, _, {}, !1, d);
|
|
556
|
+
case "patch":
|
|
557
|
+
return an(u, f, _, {}, !1, d);
|
|
558
558
|
case "delete":
|
|
559
|
-
return
|
|
559
|
+
return sn(u, f, _, h, !1, d);
|
|
560
560
|
case "get":
|
|
561
561
|
default:
|
|
562
|
-
return
|
|
562
|
+
return tn(u, f, h, !1, d);
|
|
563
563
|
}
|
|
564
564
|
}, i = (n, d) => {
|
|
565
565
|
const { url: r, headers: u } = n, f = {
|
|
@@ -632,7 +632,7 @@ const Gt = (e) => {
|
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
|
-
},
|
|
635
|
+
}, rn = ({
|
|
636
636
|
userFlow: e,
|
|
637
637
|
items: t,
|
|
638
638
|
responseKey: s
|
|
@@ -649,7 +649,7 @@ const Gt = (e) => {
|
|
|
649
649
|
{ ...(r = v.getState()[e]) == null ? void 0 : r.entries },
|
|
650
650
|
s
|
|
651
651
|
);
|
|
652
|
-
u != null && u.data &&
|
|
652
|
+
u != null && u.data && T(e, u == null ? void 0 : u.data);
|
|
653
653
|
break;
|
|
654
654
|
case "REDIRECT":
|
|
655
655
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
@@ -668,7 +668,7 @@ const Gt = (e) => {
|
|
|
668
668
|
component: /* @__PURE__ */ o.jsx("div", { onClick: () => i(l) })
|
|
669
669
|
})), []);
|
|
670
670
|
return /* @__PURE__ */ o.jsx(Ye, { items: c });
|
|
671
|
-
},
|
|
671
|
+
}, cn = (e) => {
|
|
672
672
|
const {
|
|
673
673
|
userFlow: t,
|
|
674
674
|
pageId: s,
|
|
@@ -711,7 +711,7 @@ const Gt = (e) => {
|
|
|
711
711
|
C,
|
|
712
712
|
a
|
|
713
713
|
);
|
|
714
|
-
w != null && w.data &&
|
|
714
|
+
w != null && w.data && T(t, w == null ? void 0 : w.data);
|
|
715
715
|
break;
|
|
716
716
|
}
|
|
717
717
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -722,7 +722,7 @@ const Gt = (e) => {
|
|
|
722
722
|
a,
|
|
723
723
|
n
|
|
724
724
|
);
|
|
725
|
-
w != null && w.data &&
|
|
725
|
+
w != null && w.data && T(t, w == null ? void 0 : w.data);
|
|
726
726
|
break;
|
|
727
727
|
}
|
|
728
728
|
case "GET_DATA_SOURCE": {
|
|
@@ -733,16 +733,16 @@ const Gt = (e) => {
|
|
|
733
733
|
a
|
|
734
734
|
), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
|
|
735
735
|
if ((E == null ? void 0 : E.type) !== "fetch") break;
|
|
736
|
-
const
|
|
737
|
-
|
|
736
|
+
const $ = E == null ? void 0 : E.dataSource, k = await h(
|
|
737
|
+
$,
|
|
738
738
|
t,
|
|
739
739
|
// Avoid to handle loading state until all the requests are done
|
|
740
740
|
!1
|
|
741
741
|
), G = {
|
|
742
742
|
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
743
743
|
[a]: {
|
|
744
|
-
status:
|
|
745
|
-
content:
|
|
744
|
+
status: k == null ? void 0 : k.status,
|
|
745
|
+
content: k == null ? void 0 : k.data
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
L(t, G);
|
|
@@ -752,7 +752,7 @@ const Gt = (e) => {
|
|
|
752
752
|
G,
|
|
753
753
|
a
|
|
754
754
|
);
|
|
755
|
-
U != null && U.data &&
|
|
755
|
+
U != null && U.data && T(t, U == null ? void 0 : U.data);
|
|
756
756
|
break;
|
|
757
757
|
}
|
|
758
758
|
case "REDIRECT":
|
|
@@ -774,9 +774,9 @@ const Gt = (e) => {
|
|
|
774
774
|
onClick: () => !m && (u ?? g)()
|
|
775
775
|
}
|
|
776
776
|
);
|
|
777
|
-
},
|
|
778
|
-
cardNotificationNotFront:
|
|
779
|
-
},
|
|
777
|
+
}, on = "_cardNotificationNotFront_t7pln_1", ln = {
|
|
778
|
+
cardNotificationNotFront: on
|
|
779
|
+
}, dn = (e) => {
|
|
780
780
|
const { content: t, description: s, ...a } = e, i = {
|
|
781
781
|
...a,
|
|
782
782
|
children: t ?? s
|
|
@@ -785,10 +785,10 @@ const Gt = (e) => {
|
|
|
785
785
|
ye,
|
|
786
786
|
{
|
|
787
787
|
...i,
|
|
788
|
-
className:
|
|
788
|
+
className: ln.cardNotificationNotFront
|
|
789
789
|
}
|
|
790
790
|
);
|
|
791
|
-
},
|
|
791
|
+
}, _n = (e) => {
|
|
792
792
|
const {
|
|
793
793
|
userFlow: t,
|
|
794
794
|
pageId: s,
|
|
@@ -801,7 +801,7 @@ const Gt = (e) => {
|
|
|
801
801
|
...r
|
|
802
802
|
} = e, u = {
|
|
803
803
|
...r
|
|
804
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
804
|
+
}, { getNextUI: f } = I(), [_, h] = q(l || !1), { disabled: j } = M(
|
|
805
805
|
t,
|
|
806
806
|
d
|
|
807
807
|
), y = S(() => n && c ? `${c} *` : c ?? "", [c, n]), x = D(async () => {
|
|
@@ -821,7 +821,7 @@ const Gt = (e) => {
|
|
|
821
821
|
N,
|
|
822
822
|
a
|
|
823
823
|
);
|
|
824
|
-
b != null && b.data &&
|
|
824
|
+
b != null && b.data && T(t, b == null ? void 0 : b.data);
|
|
825
825
|
break;
|
|
826
826
|
default:
|
|
827
827
|
console.warn(`Unhandled actionType: ${i}`);
|
|
@@ -843,13 +843,13 @@ const Gt = (e) => {
|
|
|
843
843
|
}
|
|
844
844
|
}
|
|
845
845
|
);
|
|
846
|
-
},
|
|
847
|
-
codeEditor:
|
|
848
|
-
codeEditor_label:
|
|
849
|
-
codeEditor_wrapper:
|
|
850
|
-
input:
|
|
851
|
-
preview:
|
|
852
|
-
},
|
|
846
|
+
}, un = "_codeEditor_1coz7_1", hn = "_codeEditor_label_1coz7_4", fn = "_codeEditor_wrapper_1coz7_13", yn = "_input_1coz7_17", mn = "_preview_1coz7_18", Y = {
|
|
847
|
+
codeEditor: un,
|
|
848
|
+
codeEditor_label: hn,
|
|
849
|
+
codeEditor_wrapper: fn,
|
|
850
|
+
input: yn,
|
|
851
|
+
preview: mn
|
|
852
|
+
}, xn = (e) => {
|
|
853
853
|
const {
|
|
854
854
|
userFlow: t,
|
|
855
855
|
responseKey: s,
|
|
@@ -861,14 +861,14 @@ const Gt = (e) => {
|
|
|
861
861
|
dependencies: d,
|
|
862
862
|
disabled: r,
|
|
863
863
|
showPreview: u
|
|
864
|
-
} = e, [f, _] =
|
|
864
|
+
} = e, [f, _] = q(l ?? ""), h = fe.useThemeStore((p) => p.theme.mode), { disabled: j } = M(
|
|
865
865
|
t,
|
|
866
866
|
d
|
|
867
867
|
), y = r ?? j, x = {
|
|
868
868
|
json: we(),
|
|
869
|
-
markdown:
|
|
870
|
-
sql:
|
|
871
|
-
yaml:
|
|
869
|
+
markdown: gt(),
|
|
870
|
+
sql: bt(),
|
|
871
|
+
yaml: pt()
|
|
872
872
|
}, m = S(() => n && a ? `${a} *` : a ?? "", [a, n]), g = (p) => {
|
|
873
873
|
_(p);
|
|
874
874
|
const N = {
|
|
@@ -880,7 +880,7 @@ const Gt = (e) => {
|
|
|
880
880
|
m && m !== "" && /* @__PURE__ */ o.jsx("label", { className: Y.codeEditor_label, children: m }),
|
|
881
881
|
/* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor_wrapper, children: [
|
|
882
882
|
/* @__PURE__ */ o.jsx(
|
|
883
|
-
|
|
883
|
+
xt,
|
|
884
884
|
{
|
|
885
885
|
className: Y.input,
|
|
886
886
|
value: f,
|
|
@@ -902,9 +902,9 @@ var le = { exports: {} };
|
|
|
902
902
|
Licensed under the MIT License (MIT), see
|
|
903
903
|
http://jedwatson.github.io/classnames
|
|
904
904
|
*/
|
|
905
|
-
var
|
|
906
|
-
function
|
|
907
|
-
return
|
|
905
|
+
var qe;
|
|
906
|
+
function gn() {
|
|
907
|
+
return qe || (qe = 1, (function(e) {
|
|
908
908
|
(function() {
|
|
909
909
|
var t = {}.hasOwnProperty;
|
|
910
910
|
function s() {
|
|
@@ -935,10 +935,10 @@ function xn() {
|
|
|
935
935
|
})();
|
|
936
936
|
})(le)), le.exports;
|
|
937
937
|
}
|
|
938
|
-
var
|
|
939
|
-
const ee = /* @__PURE__ */
|
|
940
|
-
dividerNotFront:
|
|
941
|
-
},
|
|
938
|
+
var bn = gn();
|
|
939
|
+
const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
|
|
940
|
+
dividerNotFront: pn
|
|
941
|
+
}, wn = (e) => /* @__PURE__ */ o.jsx(et, { ...e, className: jn.dividerNotFront }), Cn = (e, t, s) => {
|
|
942
942
|
const { url: a, paginationKeys: i, params: c } = e, l = [], n = (i == null ? void 0 : i.page) ?? "page";
|
|
943
943
|
if (l.push(`${n}=${t}`), typeof s == "string") {
|
|
944
944
|
const u = (i == null ? void 0 : i.text) ?? "text";
|
|
@@ -956,7 +956,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
956
956
|
const { type: a, url: i, method: c, headers: l } = e;
|
|
957
957
|
return a === "rest" ? {
|
|
958
958
|
type: "rest",
|
|
959
|
-
url:
|
|
959
|
+
url: Cn(e, t, s),
|
|
960
960
|
method: c,
|
|
961
961
|
headers: l,
|
|
962
962
|
data: (e == null ? void 0 : e.data) || {}
|
|
@@ -1002,7 +1002,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1002
1002
|
}, ne = ({ withPadding: e = !1 }) => {
|
|
1003
1003
|
const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: R.labelColor }, children: s });
|
|
1004
1004
|
return /* @__PURE__ */ o.jsx(
|
|
1005
|
-
|
|
1005
|
+
jt,
|
|
1006
1006
|
{
|
|
1007
1007
|
formatter: t,
|
|
1008
1008
|
wrapperStyle: {
|
|
@@ -1012,7 +1012,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
1014
|
);
|
|
1015
|
-
},
|
|
1015
|
+
}, Nn = ({
|
|
1016
1016
|
active: e,
|
|
1017
1017
|
payload: t,
|
|
1018
1018
|
label: s,
|
|
@@ -1038,12 +1038,12 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1038
1038
|
t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
|
|
1039
1039
|
] });
|
|
1040
1040
|
}, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
|
|
1041
|
-
|
|
1041
|
+
wt,
|
|
1042
1042
|
{
|
|
1043
|
-
content: /* @__PURE__ */ o.jsx(
|
|
1043
|
+
content: /* @__PURE__ */ o.jsx(Nn, { tooltipKey: e })
|
|
1044
1044
|
}
|
|
1045
1045
|
), pe = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
1046
|
-
|
|
1046
|
+
Ct,
|
|
1047
1047
|
{
|
|
1048
1048
|
dataKey: e,
|
|
1049
1049
|
hide: t,
|
|
@@ -1053,23 +1053,23 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
), je = () => /* @__PURE__ */ o.jsx(
|
|
1056
|
-
|
|
1056
|
+
Nt,
|
|
1057
1057
|
{
|
|
1058
1058
|
tick: {
|
|
1059
1059
|
fill: R.labelColor,
|
|
1060
1060
|
fontSize: R.fontSize
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
|
-
),
|
|
1063
|
+
), vn = (e) => {
|
|
1064
1064
|
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e;
|
|
1065
|
-
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1065
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(vt, { data: t, children: [
|
|
1066
1066
|
/* @__PURE__ */ o.jsx(me, { strokeDasharray: "3 3" }),
|
|
1067
1067
|
/* @__PURE__ */ o.jsx(pe, { dataKey: s }),
|
|
1068
1068
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1069
1069
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1070
1070
|
/* @__PURE__ */ o.jsx(ne, {}),
|
|
1071
1071
|
a.map((c, l) => /* @__PURE__ */ o.jsx(
|
|
1072
|
-
|
|
1072
|
+
Et,
|
|
1073
1073
|
{
|
|
1074
1074
|
type: "monotone",
|
|
1075
1075
|
dataKey: c,
|
|
@@ -1079,16 +1079,16 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1079
1079
|
c
|
|
1080
1080
|
))
|
|
1081
1081
|
] }) });
|
|
1082
|
-
},
|
|
1082
|
+
}, En = (e) => {
|
|
1083
1083
|
const { data: t, yKeys: s, xKey: a, tooltipKey: i } = e;
|
|
1084
|
-
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1084
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(St, { data: t, children: [
|
|
1085
1085
|
/* @__PURE__ */ o.jsx(me, { strokeDasharray: "3 3" }),
|
|
1086
1086
|
/* @__PURE__ */ o.jsx(pe, { hide: !0, dataKey: a }),
|
|
1087
1087
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1088
1088
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1089
1089
|
/* @__PURE__ */ o.jsx(ne, { withPadding: !0 }),
|
|
1090
1090
|
s.map((c, l) => /* @__PURE__ */ o.jsx(
|
|
1091
|
-
|
|
1091
|
+
kt,
|
|
1092
1092
|
{
|
|
1093
1093
|
dataKey: c,
|
|
1094
1094
|
fill: z[l % z.length]
|
|
@@ -1096,7 +1096,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1096
1096
|
c
|
|
1097
1097
|
))
|
|
1098
1098
|
] }) });
|
|
1099
|
-
},
|
|
1099
|
+
}, Sn = (e) => {
|
|
1100
1100
|
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e;
|
|
1101
1101
|
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(qt, { data: t, children: [
|
|
1102
1102
|
/* @__PURE__ */ o.jsx(me, { strokeDasharray: "3 3" }),
|
|
@@ -1105,7 +1105,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1105
1105
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1106
1106
|
/* @__PURE__ */ o.jsx(ne, {}),
|
|
1107
1107
|
a.map((c, l) => /* @__PURE__ */ o.jsx(
|
|
1108
|
-
|
|
1108
|
+
Ot,
|
|
1109
1109
|
{
|
|
1110
1110
|
type: "monotone",
|
|
1111
1111
|
dataKey: c,
|
|
@@ -1116,7 +1116,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1116
1116
|
c
|
|
1117
1117
|
))
|
|
1118
1118
|
] }) });
|
|
1119
|
-
},
|
|
1119
|
+
}, kn = (e) => {
|
|
1120
1120
|
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e, c = ({
|
|
1121
1121
|
cx: l,
|
|
1122
1122
|
cy: n,
|
|
@@ -1139,11 +1139,11 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1139
1139
|
}
|
|
1140
1140
|
);
|
|
1141
1141
|
};
|
|
1142
|
-
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1142
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(At, { children: [
|
|
1143
1143
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1144
1144
|
/* @__PURE__ */ o.jsx(ne, {}),
|
|
1145
1145
|
/* @__PURE__ */ o.jsx(
|
|
1146
|
-
|
|
1146
|
+
Tt,
|
|
1147
1147
|
{
|
|
1148
1148
|
data: t,
|
|
1149
1149
|
dataKey: a[0],
|
|
@@ -1151,7 +1151,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1151
1151
|
label: c,
|
|
1152
1152
|
outerRadius: 120,
|
|
1153
1153
|
children: t.map((l, n) => /* @__PURE__ */ o.jsx(
|
|
1154
|
-
|
|
1154
|
+
$t,
|
|
1155
1155
|
{
|
|
1156
1156
|
fill: z[n % z.length]
|
|
1157
1157
|
},
|
|
@@ -1161,10 +1161,10 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1161
1161
|
)
|
|
1162
1162
|
] }) });
|
|
1163
1163
|
}, qn = {
|
|
1164
|
-
area:
|
|
1165
|
-
bar:
|
|
1166
|
-
line:
|
|
1167
|
-
pie:
|
|
1164
|
+
area: vn,
|
|
1165
|
+
bar: En,
|
|
1166
|
+
line: Sn,
|
|
1167
|
+
pie: kn
|
|
1168
1168
|
}, z = [
|
|
1169
1169
|
"var(--color-primitive-palette-1-50)",
|
|
1170
1170
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1190,11 +1190,11 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1190
1190
|
tooltipBg: "#fff",
|
|
1191
1191
|
tooltipColor: "#000",
|
|
1192
1192
|
tooltipBorderRadius: "4px"
|
|
1193
|
-
},
|
|
1193
|
+
}, On = (e) => {
|
|
1194
1194
|
const { component: t, userFlow: s, hash: a, responseKey: i, dataSource: c, ...l } = e, n = qn[l.type];
|
|
1195
1195
|
if (!n)
|
|
1196
1196
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1197
|
-
const { fetchDataSource: d } = I(), [r, u] =
|
|
1197
|
+
const { fetchDataSource: d } = I(), [r, u] = q(!1), [f, _] = q([]), h = async () => {
|
|
1198
1198
|
var y, x;
|
|
1199
1199
|
try {
|
|
1200
1200
|
u(!0);
|
|
@@ -1219,44 +1219,45 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1219
1219
|
data: f
|
|
1220
1220
|
};
|
|
1221
1221
|
return r ? /* @__PURE__ */ o.jsx(De, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ o.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
|
|
1222
|
-
},
|
|
1223
|
-
header:
|
|
1224
|
-
header_content:
|
|
1225
|
-
},
|
|
1222
|
+
}, An = "_header_g1eri_1", Tn = "_header_content_g1eri_5", Oe = {
|
|
1223
|
+
header: An,
|
|
1224
|
+
header_content: Tn
|
|
1225
|
+
}, $n = ({ 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, s) => /* @__PURE__ */ o.jsx(A, { children: t }, s)) }) }), O = (e, t, s, a) => {
|
|
1226
1226
|
var l;
|
|
1227
1227
|
const i = {
|
|
1228
|
-
accordion: (n) => /* @__PURE__ */ o.jsx(
|
|
1229
|
-
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(
|
|
1230
|
-
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(
|
|
1231
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(
|
|
1232
|
-
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(
|
|
1233
|
-
button: (n) => /* @__PURE__ */ o.jsx(
|
|
1234
|
-
cardNotification: (n) => /* @__PURE__ */ o.jsx(
|
|
1235
|
-
chart: (n) => /* @__PURE__ */ o.jsx(
|
|
1236
|
-
checkbox: (n) => /* @__PURE__ */ o.jsx(
|
|
1237
|
-
code: (n) => /* @__PURE__ */ o.jsx(
|
|
1238
|
-
divider: (n) => /* @__PURE__ */ o.jsx(
|
|
1239
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(
|
|
1240
|
-
heading: (n) =>
|
|
1241
|
-
pill: (n) => /* @__PURE__ */ o.jsx(
|
|
1242
|
-
modal: (n) => /* @__PURE__ */ o.jsx(
|
|
1243
|
-
roundButton: (n) => /* @__PURE__ */ o.jsx(
|
|
1244
|
-
row: (n) => /* @__PURE__ */ o.jsx(
|
|
1245
|
-
select: (n) => /* @__PURE__ */ o.jsx(
|
|
1246
|
-
switch: (n) => /* @__PURE__ */ o.jsx(
|
|
1247
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(
|
|
1248
|
-
table: (n) => /* @__PURE__ */ o.jsx(
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1228
|
+
accordion: (n) => /* @__PURE__ */ o.jsx(Ca, { ...n, userFlow: e, pageId: t }),
|
|
1229
|
+
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Vt, { ...n, userFlow: e, pageId: t, onResolveProps: a == null ? void 0 : a.aiChatPanel }),
|
|
1230
|
+
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(Wt, { ...n, userFlow: e, pageId: t, onResolveProps: a == null ? void 0 : a.aiSummaryCard }),
|
|
1231
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Zt, { ...n, userFlow: e, pageId: t }),
|
|
1232
|
+
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
|
|
1233
|
+
button: (n) => /* @__PURE__ */ o.jsx(cn, { ...n, userFlow: e, pageId: t }),
|
|
1234
|
+
cardNotification: (n) => /* @__PURE__ */ o.jsx(dn, { ...n }),
|
|
1235
|
+
chart: (n) => /* @__PURE__ */ o.jsx(On, { ...n, userFlow: e }),
|
|
1236
|
+
checkbox: (n) => /* @__PURE__ */ o.jsx(_n, { ...n, userFlow: e, pageId: t }),
|
|
1237
|
+
code: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
|
|
1238
|
+
divider: (n) => /* @__PURE__ */ o.jsx(wn, { ...n }),
|
|
1239
|
+
drawer: (n) => /* @__PURE__ */ o.jsx(Sa, { ...n, userFlow: e, pageId: t }),
|
|
1240
|
+
heading: (n) => Ut(n),
|
|
1241
|
+
pill: (n) => /* @__PURE__ */ o.jsx(zn, { ...n }),
|
|
1242
|
+
modal: (n) => /* @__PURE__ */ o.jsx(Ln, { ...n, userFlow: e, pageId: t }),
|
|
1243
|
+
roundButton: (n) => /* @__PURE__ */ o.jsx(Mn, { ...n, userFlow: e, pageId: t }),
|
|
1244
|
+
row: (n) => /* @__PURE__ */ o.jsx(Un, { ...n, userFlow: e, pageId: t }),
|
|
1245
|
+
select: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
|
|
1246
|
+
switch: (n) => /* @__PURE__ */ o.jsx(ca, { ...n, userFlow: e, pageId: t }),
|
|
1247
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(ra, { ...n, userFlow: e, pageId: t }),
|
|
1248
|
+
table: (n) => /* @__PURE__ */ o.jsx(ua, { ...n, userFlow: e, pageId: t }),
|
|
1249
|
+
tabs: (n) => /* @__PURE__ */ o.jsx(ma, { ...n, userFlow: e, pageId: t }),
|
|
1250
|
+
text: (n) => Jt(n),
|
|
1251
|
+
textField: (n) => /* @__PURE__ */ o.jsx(ba, { ...n, userFlow: e, pageId: t }),
|
|
1252
|
+
toast: (n) => /* @__PURE__ */ o.jsx(pa, { ...n, userFlow: e, pageId: t })
|
|
1252
1253
|
};
|
|
1253
1254
|
return (l = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : l.map((n) => {
|
|
1254
1255
|
const d = i[n.component];
|
|
1255
1256
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
1256
1257
|
});
|
|
1257
|
-
},
|
|
1258
|
-
modalContent:
|
|
1259
|
-
},
|
|
1258
|
+
}, Rn = "_modalContent_p06ci_1", Dn = {
|
|
1259
|
+
modalContent: Rn
|
|
1260
|
+
}, Ln = ({
|
|
1260
1261
|
userFlow: e,
|
|
1261
1262
|
pageId: t,
|
|
1262
1263
|
responseKey: s,
|
|
@@ -1276,38 +1277,38 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1276
1277
|
...n
|
|
1277
1278
|
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = D(() => {
|
|
1278
1279
|
xe(e), ge(e, !1);
|
|
1279
|
-
}, [e, s]), j = Array.isArray(a) ?
|
|
1280
|
+
}, [e, s]), j = Array.isArray(a) ? O(e, t, a) : a, y = O(e, t, i), x = O(e, t, c);
|
|
1280
1281
|
return /* @__PURE__ */ o.jsx(
|
|
1281
1282
|
tt,
|
|
1282
1283
|
{
|
|
1283
1284
|
...f,
|
|
1284
1285
|
headerStatusColor: _,
|
|
1285
|
-
header: typeof j == "string" ? j : /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((m, g) => /* @__PURE__ */ o.jsx(
|
|
1286
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
1287
|
-
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((m, g) => /* @__PURE__ */ o.jsx(
|
|
1286
|
+
header: typeof j == "string" ? j : /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((m, g) => /* @__PURE__ */ o.jsx(A, { children: m }, `modal-header-${g}`)) }),
|
|
1287
|
+
children: /* @__PURE__ */ o.jsx("section", { className: Dn.modalContent, children: y.map((m, g) => /* @__PURE__ */ o.jsx(A, { children: m }, `modal-body-${g}`)) }),
|
|
1288
|
+
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((m, g) => /* @__PURE__ */ o.jsx(A, { children: m }, `modal-footer-${g}`)) }),
|
|
1288
1289
|
open: u,
|
|
1289
1290
|
onClose: h
|
|
1290
1291
|
}
|
|
1291
1292
|
);
|
|
1292
|
-
},
|
|
1293
|
+
}, Bn = ({ userFlow: e, pageId: t }) => {
|
|
1293
1294
|
var c, l;
|
|
1294
|
-
const s =
|
|
1295
|
+
const s = Lt(e);
|
|
1295
1296
|
if (!s)
|
|
1296
1297
|
return null;
|
|
1297
1298
|
const a = [
|
|
1298
1299
|
...(s == null ? void 0 : s.components) || [],
|
|
1299
1300
|
...((c = s == null ? void 0 : s.header) == null ? void 0 : c.components) || [],
|
|
1300
1301
|
...((l = s == null ? void 0 : s.body) == null ? void 0 : l.components) || []
|
|
1301
|
-
], i =
|
|
1302
|
+
], i = O(
|
|
1302
1303
|
e,
|
|
1303
1304
|
t,
|
|
1304
1305
|
a
|
|
1305
1306
|
);
|
|
1306
1307
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: i == null ? void 0 : i.map((n, d) => {
|
|
1307
1308
|
const r = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
1308
|
-
return /* @__PURE__ */ o.jsx(
|
|
1309
|
+
return /* @__PURE__ */ o.jsx(A, { children: n }, r);
|
|
1309
1310
|
}) });
|
|
1310
|
-
},
|
|
1311
|
+
}, In = {
|
|
1311
1312
|
success: {
|
|
1312
1313
|
color: "success-opacity",
|
|
1313
1314
|
textColor: "success-60",
|
|
@@ -1333,8 +1334,8 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1333
1334
|
textColor: "neutral-70",
|
|
1334
1335
|
iconColor: "neutral-70"
|
|
1335
1336
|
}
|
|
1336
|
-
},
|
|
1337
|
-
const { content: t, variant: s = "neutral", ...a } = e, i =
|
|
1337
|
+
}, zn = (e) => {
|
|
1338
|
+
const { content: t, variant: s = "neutral", ...a } = e, i = In[s], c = {
|
|
1338
1339
|
...a,
|
|
1339
1340
|
children: t,
|
|
1340
1341
|
color: (a == null ? void 0 : a.color) ?? i.color,
|
|
@@ -1342,7 +1343,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1342
1343
|
iconColor: (a == null ? void 0 : a.iconColor) ?? i.iconColor
|
|
1343
1344
|
};
|
|
1344
1345
|
return /* @__PURE__ */ o.jsx(ue, { ...c });
|
|
1345
|
-
},
|
|
1346
|
+
}, Mn = (e) => {
|
|
1346
1347
|
const {
|
|
1347
1348
|
userFlow: t,
|
|
1348
1349
|
pageId: s,
|
|
@@ -1372,7 +1373,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1372
1373
|
x,
|
|
1373
1374
|
a
|
|
1374
1375
|
);
|
|
1375
|
-
m != null && m.data &&
|
|
1376
|
+
m != null && m.data && T(t, m == null ? void 0 : m.data);
|
|
1376
1377
|
break;
|
|
1377
1378
|
}
|
|
1378
1379
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1383,7 +1384,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1383
1384
|
a,
|
|
1384
1385
|
c
|
|
1385
1386
|
);
|
|
1386
|
-
m != null && m.data &&
|
|
1387
|
+
m != null && m.data && T(t, m == null ? void 0 : m.data);
|
|
1387
1388
|
break;
|
|
1388
1389
|
}
|
|
1389
1390
|
case "CLOSE_MODAL":
|
|
@@ -1411,8 +1412,8 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1411
1412
|
onClick: () => !h && (n ?? j)()
|
|
1412
1413
|
}
|
|
1413
1414
|
);
|
|
1414
|
-
},
|
|
1415
|
-
row:
|
|
1415
|
+
}, Kn = "_row_1bqj4_1", Gn = "_row_column_1bqj4_65", J = {
|
|
1416
|
+
row: Kn,
|
|
1416
1417
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
1417
1418
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
1418
1419
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -1433,7 +1434,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1433
1434
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
1434
1435
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
1435
1436
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
1436
|
-
row_column:
|
|
1437
|
+
row_column: Gn,
|
|
1437
1438
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
1438
1439
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
1439
1440
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -1454,7 +1455,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1454
1455
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
1455
1456
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
1456
1457
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
1457
|
-
},
|
|
1458
|
+
}, Un = (e) => {
|
|
1458
1459
|
const {
|
|
1459
1460
|
userFlow: t,
|
|
1460
1461
|
pageId: s,
|
|
@@ -1494,7 +1495,7 @@ const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1494
1495
|
J[`row__align-${n}`]
|
|
1495
1496
|
),
|
|
1496
1497
|
children: d == null ? void 0 : d.map((r, u) => {
|
|
1497
|
-
const f = (a == null ? void 0 : a[u]) || `${100 / d.length}%`, _ =
|
|
1498
|
+
const f = (a == null ? void 0 : a[u]) || `${100 / d.length}%`, _ = O(t, s, r.items);
|
|
1498
1499
|
return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1499
1500
|
"div",
|
|
1500
1501
|
{
|
|
@@ -1542,7 +1543,7 @@ function Me({
|
|
|
1542
1543
|
s,
|
|
1543
1544
|
a === "GO_TO_NEXT_UI"
|
|
1544
1545
|
);
|
|
1545
|
-
y != null && y.data &&
|
|
1546
|
+
y != null && y.data && T(e, y.data);
|
|
1546
1547
|
} catch (j) {
|
|
1547
1548
|
console.error("[useSelectChange] Failed to fetch next UI", j);
|
|
1548
1549
|
}
|
|
@@ -1566,14 +1567,14 @@ function Me({
|
|
|
1566
1567
|
[c, l, d]
|
|
1567
1568
|
);
|
|
1568
1569
|
}
|
|
1569
|
-
const
|
|
1570
|
+
const Jn = (e, t, s, a) => {
|
|
1570
1571
|
const i = B.query(e, t);
|
|
1571
1572
|
return (i == null ? void 0 : i.map((c) => {
|
|
1572
1573
|
var d, r;
|
|
1573
1574
|
const l = (d = B.query(c, s)) == null ? void 0 : d[0], n = a ? (r = B.query(c, a)) == null ? void 0 : r[0] : c;
|
|
1574
1575
|
return { label: l, value: n };
|
|
1575
1576
|
})) ?? [];
|
|
1576
|
-
},
|
|
1577
|
+
}, Vn = (e, t, s, a = 10) => {
|
|
1577
1578
|
var n, d;
|
|
1578
1579
|
let i, c;
|
|
1579
1580
|
if (s) {
|
|
@@ -1589,9 +1590,9 @@ const Un = (e, t, s, a) => {
|
|
|
1589
1590
|
total: c,
|
|
1590
1591
|
hasMore: l
|
|
1591
1592
|
};
|
|
1592
|
-
},
|
|
1593
|
-
selectNotFront:
|
|
1594
|
-
},
|
|
1593
|
+
}, Hn = "_selectNotFront_1yw9q_1", Ke = {
|
|
1594
|
+
selectNotFront: Hn
|
|
1595
|
+
}, Xn = ({
|
|
1595
1596
|
userFlow: e,
|
|
1596
1597
|
pageId: t,
|
|
1597
1598
|
responseKey: s,
|
|
@@ -1604,14 +1605,14 @@ const Un = (e, t, s, a) => {
|
|
|
1604
1605
|
}) => {
|
|
1605
1606
|
const r = {
|
|
1606
1607
|
...d
|
|
1607
|
-
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] =
|
|
1608
|
+
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = q((r == null ? void 0 : r.value) ?? ""), { disabled: j } = M(
|
|
1608
1609
|
e,
|
|
1609
1610
|
l
|
|
1610
1611
|
), y = (r == null ? void 0 : r.disabled) ?? j, x = S(() => a && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, a]), m = S(() => {
|
|
1611
1612
|
const b = r != null && r.isMulti ? _ : [_], C = {};
|
|
1612
1613
|
return typeof b == "object" && "length" in b && (b == null || b.forEach((w) => {
|
|
1613
|
-
const E = JSON.stringify(w.value),
|
|
1614
|
-
C[E] = w,
|
|
1614
|
+
const E = JSON.stringify(w.value), $ = JSON.stringify(w.label);
|
|
1615
|
+
C[E] = w, $ in C || (C[$] = w);
|
|
1615
1616
|
})), C;
|
|
1616
1617
|
}, [_]), g = Me({
|
|
1617
1618
|
userFlow: e,
|
|
@@ -1626,8 +1627,8 @@ const Un = (e, t, s, a) => {
|
|
|
1626
1627
|
}, N = async (b, C, { page: w }) => {
|
|
1627
1628
|
const {
|
|
1628
1629
|
jsonPathLabel: E,
|
|
1629
|
-
jsonPathOptions:
|
|
1630
|
-
jsonPathValue:
|
|
1630
|
+
jsonPathOptions: $,
|
|
1631
|
+
jsonPathValue: k,
|
|
1631
1632
|
jsonPathPagination: G
|
|
1632
1633
|
} = i, U = be(
|
|
1633
1634
|
i,
|
|
@@ -1637,12 +1638,12 @@ const Un = (e, t, s, a) => {
|
|
|
1637
1638
|
U,
|
|
1638
1639
|
e,
|
|
1639
1640
|
!1
|
|
1640
|
-
), re = se == null ? void 0 : se.data, Ue = re ?
|
|
1641
|
+
), re = se == null ? void 0 : se.data, Ue = re ? Jn(
|
|
1641
1642
|
re,
|
|
1642
|
-
|
|
1643
|
+
$,
|
|
1643
1644
|
E,
|
|
1644
|
-
|
|
1645
|
-
) : [], { hasMore: Je } =
|
|
1645
|
+
k
|
|
1646
|
+
) : [], { hasMore: Je } = Vn(
|
|
1646
1647
|
re,
|
|
1647
1648
|
w,
|
|
1648
1649
|
G
|
|
@@ -1674,7 +1675,7 @@ const Un = (e, t, s, a) => {
|
|
|
1674
1675
|
debounceTimeout: 350
|
|
1675
1676
|
}
|
|
1676
1677
|
);
|
|
1677
|
-
},
|
|
1678
|
+
}, Wn = ({
|
|
1678
1679
|
userFlow: e,
|
|
1679
1680
|
pageId: t,
|
|
1680
1681
|
responseKey: s,
|
|
@@ -1687,7 +1688,7 @@ const Un = (e, t, s, a) => {
|
|
|
1687
1688
|
}) => {
|
|
1688
1689
|
const r = {
|
|
1689
1690
|
...d
|
|
1690
|
-
}, { getNextUI: u } = I(), [f, _] =
|
|
1691
|
+
}, { getNextUI: u } = I(), [f, _] = q(r.value || ""), { disabled: h } = M(
|
|
1691
1692
|
e,
|
|
1692
1693
|
l
|
|
1693
1694
|
), j = (r == null ? void 0 : r.disabled) ?? h, y = S(() => i && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, i]), x = Me({
|
|
@@ -1712,23 +1713,23 @@ const Un = (e, t, s, a) => {
|
|
|
1712
1713
|
onChange: (g) => !j && m(g)
|
|
1713
1714
|
}
|
|
1714
1715
|
);
|
|
1715
|
-
},
|
|
1716
|
+
}, Qn = (e) => {
|
|
1716
1717
|
const { dataSource: t } = e;
|
|
1717
|
-
return t ? /* @__PURE__ */ o.jsx(
|
|
1718
|
-
},
|
|
1719
|
-
spacing:
|
|
1720
|
-
spacing__xxs:
|
|
1721
|
-
spacing__xs:
|
|
1722
|
-
spacing__sm:
|
|
1723
|
-
spacing__md:
|
|
1724
|
-
spacing__lg:
|
|
1725
|
-
spacing__xl:
|
|
1726
|
-
spacing__xxl:
|
|
1727
|
-
spacing__xxxl:
|
|
1728
|
-
},
|
|
1718
|
+
return t ? /* @__PURE__ */ o.jsx(Xn, { ...e }) : /* @__PURE__ */ o.jsx(Wn, { ...e });
|
|
1719
|
+
}, Yn = "_spacing_19hqa_1", Zn = "_spacing__xxs_19hqa_1", Fn = "_spacing__xs_19hqa_4", Pn = "_spacing__sm_19hqa_7", ea = "_spacing__md_19hqa_10", ta = "_spacing__lg_19hqa_13", na = "_spacing__xl_19hqa_16", aa = "_spacing__xxl_19hqa_19", sa = "_spacing__xxxl_19hqa_22", Ae = {
|
|
1720
|
+
spacing: Yn,
|
|
1721
|
+
spacing__xxs: Zn,
|
|
1722
|
+
spacing__xs: Fn,
|
|
1723
|
+
spacing__sm: Pn,
|
|
1724
|
+
spacing__md: ea,
|
|
1725
|
+
spacing__lg: ta,
|
|
1726
|
+
spacing__xl: na,
|
|
1727
|
+
spacing__xxl: aa,
|
|
1728
|
+
spacing__xxxl: sa
|
|
1729
|
+
}, ra = (e) => {
|
|
1729
1730
|
const { size: t } = e, s = ee(Ae.spacing, Ae[`spacing__${t}`]);
|
|
1730
1731
|
return /* @__PURE__ */ o.jsx("div", { className: s });
|
|
1731
|
-
},
|
|
1732
|
+
}, ca = (e) => {
|
|
1732
1733
|
const {
|
|
1733
1734
|
userFlow: t,
|
|
1734
1735
|
pageId: s,
|
|
@@ -1741,7 +1742,7 @@ const Un = (e, t, s, a) => {
|
|
|
1741
1742
|
...r
|
|
1742
1743
|
} = e, u = {
|
|
1743
1744
|
...r
|
|
1744
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
1745
|
+
}, { getNextUI: f } = I(), [_, h] = q(l || !1), { disabled: j } = M(
|
|
1745
1746
|
t,
|
|
1746
1747
|
d
|
|
1747
1748
|
), y = (u == null ? void 0 : u.disabled) ?? j, x = S(() => n && c ? `${c} *` : c ?? "", [c, n]), m = D(async () => {
|
|
@@ -1761,7 +1762,7 @@ const Un = (e, t, s, a) => {
|
|
|
1761
1762
|
N,
|
|
1762
1763
|
a
|
|
1763
1764
|
);
|
|
1764
|
-
b != null && b.data &&
|
|
1765
|
+
b != null && b.data && T(t, b == null ? void 0 : b.data);
|
|
1765
1766
|
break;
|
|
1766
1767
|
default:
|
|
1767
1768
|
console.warn(`Unhandled actionType: ${i}`);
|
|
@@ -1781,10 +1782,10 @@ const Un = (e, t, s, a) => {
|
|
|
1781
1782
|
onChange: () => !y && m()
|
|
1782
1783
|
}
|
|
1783
1784
|
);
|
|
1784
|
-
},
|
|
1785
|
-
tableSkeleton:
|
|
1786
|
-
tableArrayPills:
|
|
1787
|
-
},
|
|
1785
|
+
}, oa = "_tableSkeleton_3nr9n_1", ia = "_tableArrayPills_3nr9n_7", Ge = {
|
|
1786
|
+
tableSkeleton: oa,
|
|
1787
|
+
tableArrayPills: ia
|
|
1788
|
+
}, la = ({ values: e }) => {
|
|
1788
1789
|
const s = e == null ? void 0 : e.slice(0, 4), a = (e == null ? void 0 : e.length) - 4;
|
|
1789
1790
|
return /* @__PURE__ */ o.jsxs("div", { className: Ge.tableArrayPills, children: [
|
|
1790
1791
|
s.map((i, c) => /* @__PURE__ */ o.jsx(ue, { children: String(i) }, c)),
|
|
@@ -1793,14 +1794,14 @@ const Un = (e, t, s, a) => {
|
|
|
1793
1794
|
a
|
|
1794
1795
|
] })
|
|
1795
1796
|
] });
|
|
1796
|
-
},
|
|
1797
|
+
}, da = ({
|
|
1797
1798
|
userFlow: e,
|
|
1798
1799
|
pageId: t,
|
|
1799
1800
|
tableResponseKey: s,
|
|
1800
1801
|
component: a,
|
|
1801
1802
|
rowData: i
|
|
1802
1803
|
}) => {
|
|
1803
|
-
const { getNextUI: c, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d =
|
|
1804
|
+
const { getNextUI: c, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = O(e, t, [
|
|
1804
1805
|
{ ...a }
|
|
1805
1806
|
]), r = (d == null ? void 0 : d[0]) || null;
|
|
1806
1807
|
if (!r) return null;
|
|
@@ -1824,7 +1825,7 @@ const Un = (e, t, s, a) => {
|
|
|
1824
1825
|
m,
|
|
1825
1826
|
f
|
|
1826
1827
|
);
|
|
1827
|
-
g != null && g.data &&
|
|
1828
|
+
g != null && g.data && T(e, g == null ? void 0 : g.data);
|
|
1828
1829
|
break;
|
|
1829
1830
|
}
|
|
1830
1831
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1835,7 +1836,7 @@ const Un = (e, t, s, a) => {
|
|
|
1835
1836
|
f,
|
|
1836
1837
|
_
|
|
1837
1838
|
);
|
|
1838
|
-
g != null && g.data &&
|
|
1839
|
+
g != null && g.data && T(e, g == null ? void 0 : g.data);
|
|
1839
1840
|
break;
|
|
1840
1841
|
}
|
|
1841
1842
|
case "GET_DATA_SOURCE": {
|
|
@@ -1865,7 +1866,7 @@ const Un = (e, t, s, a) => {
|
|
|
1865
1866
|
C,
|
|
1866
1867
|
f
|
|
1867
1868
|
);
|
|
1868
|
-
w != null && w.data &&
|
|
1869
|
+
w != null && w.data && T(e, w == null ? void 0 : w.data);
|
|
1869
1870
|
break;
|
|
1870
1871
|
}
|
|
1871
1872
|
default:
|
|
@@ -1879,7 +1880,7 @@ const Un = (e, t, s, a) => {
|
|
|
1879
1880
|
return We(r, {
|
|
1880
1881
|
onClick: h
|
|
1881
1882
|
});
|
|
1882
|
-
},
|
|
1883
|
+
}, _a = () => /* @__PURE__ */ o.jsx("div", { className: Ge.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
1883
1884
|
De,
|
|
1884
1885
|
{
|
|
1885
1886
|
maxWidth: "100%",
|
|
@@ -1887,7 +1888,7 @@ const Un = (e, t, s, a) => {
|
|
|
1887
1888
|
radius: 8
|
|
1888
1889
|
},
|
|
1889
1890
|
`tableSkeletonBase${t}`
|
|
1890
|
-
)) }),
|
|
1891
|
+
)) }), ua = ({
|
|
1891
1892
|
userFlow: e,
|
|
1892
1893
|
pageId: t,
|
|
1893
1894
|
responseKey: s,
|
|
@@ -1897,11 +1898,11 @@ const Un = (e, t, s, a) => {
|
|
|
1897
1898
|
...l
|
|
1898
1899
|
}) => {
|
|
1899
1900
|
var p, N, b;
|
|
1900
|
-
const { fetchDataSource: n } = I(), [d, r] =
|
|
1901
|
+
const { fetchDataSource: n } = I(), [d, r] = q(!1), [u, f] = q(1), [_, h] = q(null), j = S(() => {
|
|
1901
1902
|
if (c != null && c.length)
|
|
1902
1903
|
return c.map((C, w) => ({
|
|
1903
1904
|
renderContent: (E) => /* @__PURE__ */ o.jsx(
|
|
1904
|
-
|
|
1905
|
+
da,
|
|
1905
1906
|
{
|
|
1906
1907
|
userFlow: e,
|
|
1907
1908
|
pageId: t,
|
|
@@ -1915,11 +1916,11 @@ const Un = (e, t, s, a) => {
|
|
|
1915
1916
|
}, [c, e, t]), y = async (C = 1) => {
|
|
1916
1917
|
try {
|
|
1917
1918
|
r(!0);
|
|
1918
|
-
const { jsonPathData: w, mapperData: E, jsonPathPagination:
|
|
1919
|
+
const { jsonPathData: w, mapperData: E, jsonPathPagination: $ } = i, k = be(
|
|
1919
1920
|
i,
|
|
1920
1921
|
C
|
|
1921
1922
|
), G = await n(
|
|
1922
|
-
|
|
1923
|
+
k,
|
|
1923
1924
|
e,
|
|
1924
1925
|
!1
|
|
1925
1926
|
);
|
|
@@ -1928,7 +1929,7 @@ const Un = (e, t, s, a) => {
|
|
|
1928
1929
|
G == null ? void 0 : G.data,
|
|
1929
1930
|
w,
|
|
1930
1931
|
E,
|
|
1931
|
-
|
|
1932
|
+
$
|
|
1932
1933
|
)
|
|
1933
1934
|
), r(!1);
|
|
1934
1935
|
} catch (w) {
|
|
@@ -1943,12 +1944,12 @@ const Un = (e, t, s, a) => {
|
|
|
1943
1944
|
const m = S(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
|
|
1944
1945
|
var E;
|
|
1945
1946
|
return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
|
|
1946
|
-
(
|
|
1947
|
+
($) => Array.isArray(C != null && C.accessor ? $[C == null ? void 0 : C.accessor] : void 0)
|
|
1947
1948
|
)) ? {
|
|
1948
1949
|
...C,
|
|
1949
|
-
renderCell: (
|
|
1950
|
-
const
|
|
1951
|
-
return Array.isArray(
|
|
1950
|
+
renderCell: ($) => {
|
|
1951
|
+
const k = C.accessor ? $[C.accessor] : void 0;
|
|
1952
|
+
return Array.isArray(k) ? /* @__PURE__ */ o.jsx(la, { values: k }) : k;
|
|
1952
1953
|
}
|
|
1953
1954
|
} : C;
|
|
1954
1955
|
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
@@ -1957,7 +1958,7 @@ const Un = (e, t, s, a) => {
|
|
|
1957
1958
|
columns: m,
|
|
1958
1959
|
rightActions: j
|
|
1959
1960
|
};
|
|
1960
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(
|
|
1961
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(_a, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1961
1962
|
/* @__PURE__ */ o.jsx(ct, { ...g }),
|
|
1962
1963
|
(_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
1963
1964
|
ot,
|
|
@@ -1970,9 +1971,43 @@ const Un = (e, t, s, a) => {
|
|
|
1970
1971
|
}
|
|
1971
1972
|
)
|
|
1972
1973
|
] }) : /* @__PURE__ */ o.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
1973
|
-
},
|
|
1974
|
-
|
|
1975
|
-
},
|
|
1974
|
+
}, ha = "_tabsPanel_kvslb_1", fa = {
|
|
1975
|
+
tabsPanel: ha
|
|
1976
|
+
}, ya = ({ userFlow: e, pageId: t, components: s }) => {
|
|
1977
|
+
const a = O(e, t, s);
|
|
1978
|
+
return a != null && a.length ? /* @__PURE__ */ o.jsx("section", { className: fa.tabsPanel, children: a.map((i, c) => /* @__PURE__ */ o.jsx(A, { children: i }, `tabs-panel-${c}`)) }) : null;
|
|
1979
|
+
}, ma = ({
|
|
1980
|
+
userFlow: e,
|
|
1981
|
+
pageId: t,
|
|
1982
|
+
hash: s,
|
|
1983
|
+
items: a,
|
|
1984
|
+
activeIndex: i,
|
|
1985
|
+
className: c
|
|
1986
|
+
}) => {
|
|
1987
|
+
const l = a.map((n, d) => ({
|
|
1988
|
+
label: n.label,
|
|
1989
|
+
disabled: n.disabled,
|
|
1990
|
+
children: /* @__PURE__ */ o.jsx(
|
|
1991
|
+
ya,
|
|
1992
|
+
{
|
|
1993
|
+
userFlow: e,
|
|
1994
|
+
pageId: t,
|
|
1995
|
+
components: n.components
|
|
1996
|
+
},
|
|
1997
|
+
`${s}-tab-${d}`
|
|
1998
|
+
)
|
|
1999
|
+
}));
|
|
2000
|
+
return /* @__PURE__ */ o.jsx(
|
|
2001
|
+
it,
|
|
2002
|
+
{
|
|
2003
|
+
className: c,
|
|
2004
|
+
activeIndex: i,
|
|
2005
|
+
items: l
|
|
2006
|
+
}
|
|
2007
|
+
);
|
|
2008
|
+
}, xa = "_textFieldNotFront_cps4i_1", ga = {
|
|
2009
|
+
textFieldNotFront: xa
|
|
2010
|
+
}, ba = (e) => {
|
|
1976
2011
|
const {
|
|
1977
2012
|
userFlow: t,
|
|
1978
2013
|
pageId: s,
|
|
@@ -1984,7 +2019,7 @@ const Un = (e, t, s, a) => {
|
|
|
1984
2019
|
...d
|
|
1985
2020
|
} = e, r = {
|
|
1986
2021
|
...d
|
|
1987
|
-
}, [u, f] =
|
|
2022
|
+
}, [u, f] = q((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = M(
|
|
1988
2023
|
t,
|
|
1989
2024
|
n
|
|
1990
2025
|
), h = (r == null ? void 0 : r.disabled) ?? _, j = S(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), y = (x) => {
|
|
@@ -1999,10 +2034,10 @@ const Un = (e, t, s, a) => {
|
|
|
1999
2034
|
return K(() => {
|
|
2000
2035
|
f((r == null ? void 0 : r.value) ?? "");
|
|
2001
2036
|
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2002
|
-
|
|
2037
|
+
lt,
|
|
2003
2038
|
{
|
|
2004
2039
|
...r,
|
|
2005
|
-
className:
|
|
2040
|
+
className: ga.textFieldNotFront,
|
|
2006
2041
|
allowClear: !1,
|
|
2007
2042
|
label: j,
|
|
2008
2043
|
value: u,
|
|
@@ -2010,7 +2045,7 @@ const Un = (e, t, s, a) => {
|
|
|
2010
2045
|
onChange: (x) => !h && y(x)
|
|
2011
2046
|
}
|
|
2012
2047
|
);
|
|
2013
|
-
},
|
|
2048
|
+
}, pa = ({
|
|
2014
2049
|
userFlow: e,
|
|
2015
2050
|
pageId: t,
|
|
2016
2051
|
responseKey: s,
|
|
@@ -2046,10 +2081,10 @@ const Un = (e, t, s, a) => {
|
|
|
2046
2081
|
onClose: n
|
|
2047
2082
|
});
|
|
2048
2083
|
}, [n, e]), null;
|
|
2049
|
-
},
|
|
2050
|
-
accordion:
|
|
2051
|
-
accordionBody:
|
|
2052
|
-
},
|
|
2084
|
+
}, ja = "_accordion_1ri2t_1", wa = "_accordionBody_1ri2t_8", Te = {
|
|
2085
|
+
accordion: ja,
|
|
2086
|
+
accordionBody: wa
|
|
2087
|
+
}, Ca = (e) => {
|
|
2053
2088
|
const {
|
|
2054
2089
|
userFlow: t,
|
|
2055
2090
|
pageId: s,
|
|
@@ -2059,12 +2094,12 @@ const Un = (e, t, s, a) => {
|
|
|
2059
2094
|
actionContent: l,
|
|
2060
2095
|
components: n,
|
|
2061
2096
|
...d
|
|
2062
|
-
} = e, { getNextUI: r } = I(), [u, f] =
|
|
2097
|
+
} = e, { getNextUI: r } = I(), [u, f] = q(
|
|
2063
2098
|
d.checkboxChecked || !1
|
|
2064
2099
|
), { disabled: _ } = M(
|
|
2065
2100
|
t,
|
|
2066
2101
|
i
|
|
2067
|
-
), h =
|
|
2102
|
+
), h = O(t, s, n), j = l ? O(t, s, l) : void 0, y = c ? O(t, s, c) : void 0, x = D(
|
|
2068
2103
|
async (p) => {
|
|
2069
2104
|
var N;
|
|
2070
2105
|
try {
|
|
@@ -2081,7 +2116,7 @@ const Un = (e, t, s, a) => {
|
|
|
2081
2116
|
C,
|
|
2082
2117
|
a
|
|
2083
2118
|
);
|
|
2084
|
-
w != null && w.data &&
|
|
2119
|
+
w != null && w.data && T(t, w == null ? void 0 : w.data);
|
|
2085
2120
|
}
|
|
2086
2121
|
} catch (b) {
|
|
2087
2122
|
console.error("Error in accordion checkbox action:", b), alert(JSON.stringify(b));
|
|
@@ -2094,16 +2129,16 @@ const Un = (e, t, s, a) => {
|
|
|
2094
2129
|
disabled: m,
|
|
2095
2130
|
checkboxChecked: u,
|
|
2096
2131
|
onChanceCheckbox: d.hasCheckbox ? x : void 0,
|
|
2097
|
-
actionContent: j ? /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((p, N) => /* @__PURE__ */ o.jsx(
|
|
2098
|
-
customContent: y ? /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((p, N) => /* @__PURE__ */ o.jsx(
|
|
2099
|
-
children: h ? /* @__PURE__ */ o.jsx("section", { className: Te.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(
|
|
2132
|
+
actionContent: j ? /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((p, N) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-action-${N}`)) }) : void 0,
|
|
2133
|
+
customContent: y ? /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((p, N) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-custom-${N}`)) }) : void 0,
|
|
2134
|
+
children: h ? /* @__PURE__ */ o.jsx("section", { className: Te.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-child-${N}`)) }) : void 0
|
|
2100
2135
|
};
|
|
2101
|
-
return /* @__PURE__ */ o.jsx(
|
|
2102
|
-
},
|
|
2103
|
-
drawer:
|
|
2104
|
-
drawerBody:
|
|
2105
|
-
drawerFooter:
|
|
2106
|
-
},
|
|
2136
|
+
return /* @__PURE__ */ o.jsx(dt, { ...g });
|
|
2137
|
+
}, Na = "_drawer_13pxo_1", va = "_drawerBody_13pxo_5", Ea = "_drawerFooter_13pxo_11", _e = {
|
|
2138
|
+
drawer: Na,
|
|
2139
|
+
drawerBody: va,
|
|
2140
|
+
drawerFooter: Ea
|
|
2141
|
+
}, Sa = ({
|
|
2107
2142
|
userFlow: e,
|
|
2108
2143
|
pageId: t,
|
|
2109
2144
|
responseKey: s,
|
|
@@ -2124,22 +2159,22 @@ const Un = (e, t, s, a) => {
|
|
|
2124
2159
|
children: null
|
|
2125
2160
|
}, f = D(() => {
|
|
2126
2161
|
xe(e), Z(e, !1);
|
|
2127
|
-
}, [e]), _ = Array.isArray(a) ?
|
|
2162
|
+
}, [e]), _ = Array.isArray(a) ? O(e, t, a) : a ? /* @__PURE__ */ o.jsx(Re, { type: "h2", children: a }) : void 0, h = O(e, t, i), j = c ? O(e, t, c) : void 0;
|
|
2128
2163
|
return /* @__PURE__ */ o.jsx(
|
|
2129
|
-
|
|
2164
|
+
_t,
|
|
2130
2165
|
{
|
|
2131
2166
|
...u,
|
|
2132
2167
|
className: _e.drawer,
|
|
2133
2168
|
isOpen: r,
|
|
2134
2169
|
onClose: f,
|
|
2135
2170
|
heightGap: 0,
|
|
2136
|
-
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ o.jsx(
|
|
2137
|
-
children: /* @__PURE__ */ o.jsx("section", { className: _e.drawerBody, children: h.map((y, x) => /* @__PURE__ */ o.jsx(
|
|
2138
|
-
footer: j ? /* @__PURE__ */ o.jsx("div", { className: _e.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ o.jsx(
|
|
2171
|
+
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ o.jsx(A, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
|
|
2172
|
+
children: /* @__PURE__ */ o.jsx("section", { className: _e.drawerBody, children: h.map((y, x) => /* @__PURE__ */ o.jsx(A, { children: y }, `drawer-body-${x}`)) }),
|
|
2173
|
+
footer: j ? /* @__PURE__ */ o.jsx("div", { className: _e.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ o.jsx(A, { children: y }, `drawer-footer-${x}`)) }) : void 0
|
|
2139
2174
|
}
|
|
2140
2175
|
);
|
|
2141
2176
|
}, $e = (e, t, s, a, i) => {
|
|
2142
|
-
const c =
|
|
2177
|
+
const c = O(
|
|
2143
2178
|
e,
|
|
2144
2179
|
t,
|
|
2145
2180
|
(a == null ? void 0 : a.components) || null,
|
|
@@ -2148,7 +2183,7 @@ const Un = (e, t, s, a) => {
|
|
|
2148
2183
|
switch (s) {
|
|
2149
2184
|
case "body":
|
|
2150
2185
|
return /* @__PURE__ */ o.jsx(
|
|
2151
|
-
|
|
2186
|
+
en,
|
|
2152
2187
|
{
|
|
2153
2188
|
...a,
|
|
2154
2189
|
inputs: c || []
|
|
@@ -2157,7 +2192,7 @@ const Un = (e, t, s, a) => {
|
|
|
2157
2192
|
);
|
|
2158
2193
|
case "header":
|
|
2159
2194
|
return /* @__PURE__ */ o.jsx(
|
|
2160
|
-
|
|
2195
|
+
$n,
|
|
2161
2196
|
{
|
|
2162
2197
|
...a,
|
|
2163
2198
|
components: c || []
|
|
@@ -2167,9 +2202,9 @@ const Un = (e, t, s, a) => {
|
|
|
2167
2202
|
default:
|
|
2168
2203
|
return null;
|
|
2169
2204
|
}
|
|
2170
|
-
},
|
|
2205
|
+
}, Ma = (e, t, s, a) => {
|
|
2171
2206
|
var _, h, j;
|
|
2172
|
-
const [i, c] =
|
|
2207
|
+
const [i, c] = q(!1), l = v((y) => y), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? $e(
|
|
2173
2208
|
e,
|
|
2174
2209
|
n,
|
|
2175
2210
|
"header",
|
|
@@ -2184,11 +2219,11 @@ const Un = (e, t, s, a) => {
|
|
|
2184
2219
|
) : null, u = S(() => {
|
|
2185
2220
|
var y;
|
|
2186
2221
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2187
|
-
((y = l[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ o.jsx(
|
|
2222
|
+
((y = l[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ o.jsx(ut, {}),
|
|
2188
2223
|
d,
|
|
2189
2224
|
r,
|
|
2190
|
-
n && /* @__PURE__ */ o.jsx(
|
|
2191
|
-
l[e] && /* @__PURE__ */ o.jsx(
|
|
2225
|
+
n && /* @__PURE__ */ o.jsx(Bn, { userFlow: e, pageId: n }),
|
|
2226
|
+
l[e] && /* @__PURE__ */ o.jsx(ht, {})
|
|
2192
2227
|
] });
|
|
2193
2228
|
}, [d, r, n, e]), f = async () => {
|
|
2194
2229
|
try {
|
|
@@ -2217,9 +2252,9 @@ const Un = (e, t, s, a) => {
|
|
|
2217
2252
|
}, []), i && console.error("[not-page]: No render page"), u;
|
|
2218
2253
|
};
|
|
2219
2254
|
export {
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2255
|
+
On as Chart,
|
|
2256
|
+
Un as Row,
|
|
2257
|
+
Ut as heading,
|
|
2258
|
+
Jt as text,
|
|
2259
|
+
Ma as usePage
|
|
2225
2260
|
};
|