@foris/avocado-not-front 2.0.1 → 2.0.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.
- package/dist/avocado-not-front.css +1 -0
- package/dist/avocado-not-front.es.js +583 -588
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/store/useStore.d.ts +1 -1
- package/package.json +11 -11
- package/dist/style.css +0 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { SummaryCard as
|
|
6
|
-
import
|
|
7
|
-
import { json as
|
|
8
|
-
import { markdown as
|
|
9
|
-
import { sql as
|
|
10
|
-
import { yaml as
|
|
1
|
+
import J from "axios";
|
|
2
|
+
import { create as Ve } from "zustand";
|
|
3
|
+
import He, { useEffect as V, useMemo as O, useState as q, Fragment as $, 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 rt, Select as st, Switch as at, Table as ot, Pager as ct, TextField as it, toast as W, Accordion as lt, Drawer as dt, Loading as _t, Toaster as ut } from "@foris/avocado-suite";
|
|
5
|
+
import { SummaryCard as ht, PromptCodeEditor as ft } from "@foris/ai-agent";
|
|
6
|
+
import yt from "@uiw/react-codemirror";
|
|
7
|
+
import { json as we } from "@codemirror/lang-json";
|
|
8
|
+
import { markdown as mt } from "@codemirror/lang-markdown";
|
|
9
|
+
import { sql as xt } from "@codemirror/lang-sql";
|
|
10
|
+
import { yaml as gt } from "@codemirror/lang-yaml";
|
|
11
11
|
import B from "jsonpath";
|
|
12
|
-
import { Legend as
|
|
13
|
-
const v =
|
|
14
|
-
const
|
|
12
|
+
import { Legend as pt, Tooltip as bt, XAxis as jt, YAxis as wt, ResponsiveContainer as te, AreaChart as Ct, CartesianGrid as me, Area as Nt, BarChart as vt, Bar as Et, LineChart as kt, Line as qt, PieChart as St, Pie as At, Cell as Ot } from "recharts";
|
|
13
|
+
const v = Ve(() => ({})), oe = (e, t, s, r) => {
|
|
14
|
+
const l = s == null ? void 0 : s.hash, o = r && Object.keys(r).length > 0 ? { ...r } : {};
|
|
15
15
|
v.setState((i) => {
|
|
16
|
-
var
|
|
16
|
+
var n;
|
|
17
17
|
return {
|
|
18
18
|
...i,
|
|
19
19
|
[e]: {
|
|
20
20
|
...i[e],
|
|
21
21
|
apiConfig: t,
|
|
22
|
-
currentPageId:
|
|
22
|
+
currentPageId: l,
|
|
23
23
|
isLoading: !1,
|
|
24
24
|
isModalOpen: !0,
|
|
25
25
|
isDrawerOpen: !1,
|
|
26
|
-
entries:
|
|
26
|
+
entries: o,
|
|
27
27
|
overlay: null,
|
|
28
28
|
pages: {
|
|
29
|
-
...(
|
|
30
|
-
[
|
|
29
|
+
...(n = i[e]) == null ? void 0 : n.pages,
|
|
30
|
+
[l]: {
|
|
31
31
|
page: s
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
|
-
},
|
|
37
|
+
}, Le = (e, t, s) => {
|
|
38
38
|
const r = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
|
|
39
39
|
return t.length === 0 ? e : Object.fromEntries(
|
|
40
40
|
Object.entries(r).filter(
|
|
41
|
-
([
|
|
41
|
+
([l]) => !t.includes(l)
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
|
-
},
|
|
44
|
+
}, Tt = (e, t, s, r, l) => {
|
|
45
45
|
sessionStorage.setItem("sessionId", s), v.setState((o) => {
|
|
46
|
-
const
|
|
46
|
+
const i = o[e] ?? {}, n = i.entries ?? {}, d = Le(
|
|
47
47
|
n,
|
|
48
48
|
r,
|
|
49
|
-
|
|
49
|
+
l
|
|
50
50
|
);
|
|
51
51
|
return {
|
|
52
52
|
...o,
|
|
53
53
|
[e]: {
|
|
54
|
-
...
|
|
54
|
+
...i,
|
|
55
55
|
currentPageId: t.hash,
|
|
56
56
|
entries: d,
|
|
57
57
|
isLoading: !1,
|
|
58
58
|
overlay: null,
|
|
59
59
|
pages: {
|
|
60
|
-
...
|
|
60
|
+
...i.pages,
|
|
61
61
|
[t.hash]: {
|
|
62
62
|
page: { ...t }
|
|
63
63
|
}
|
|
@@ -65,18 +65,18 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
});
|
|
68
|
-
},
|
|
69
|
-
v.setState((
|
|
68
|
+
}, $t = (e, t, s, r) => {
|
|
69
|
+
v.setState((l) => {
|
|
70
70
|
var a;
|
|
71
|
-
const o =
|
|
72
|
-
|
|
71
|
+
const o = l[e] ?? {}, i = o.entries ?? {}, n = Le(
|
|
72
|
+
i,
|
|
73
73
|
s,
|
|
74
74
|
r
|
|
75
75
|
), d = (a = t.components) == null ? void 0 : a.some(
|
|
76
76
|
(u) => u.component === "drawer"
|
|
77
77
|
);
|
|
78
78
|
return {
|
|
79
|
-
...
|
|
79
|
+
...l,
|
|
80
80
|
[e]: {
|
|
81
81
|
...o,
|
|
82
82
|
entries: n,
|
|
@@ -87,7 +87,7 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
});
|
|
90
|
-
},
|
|
90
|
+
}, xe = (e) => {
|
|
91
91
|
v.setState((t) => ({
|
|
92
92
|
...t,
|
|
93
93
|
[e]: {
|
|
@@ -95,26 +95,26 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
95
95
|
overlay: null
|
|
96
96
|
}
|
|
97
97
|
}));
|
|
98
|
-
},
|
|
98
|
+
}, Rt = (e) => {
|
|
99
99
|
var s;
|
|
100
100
|
return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
|
|
101
|
-
},
|
|
101
|
+
}, S = (e, t) => {
|
|
102
102
|
const {
|
|
103
103
|
content: s,
|
|
104
104
|
sessionId: r,
|
|
105
|
-
deprecatedStateKeys:
|
|
106
|
-
sessionState: o
|
|
105
|
+
deprecatedStateKeys: l = [],
|
|
106
|
+
sessionState: o
|
|
107
107
|
} = t;
|
|
108
|
-
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ?
|
|
108
|
+
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? Tt(
|
|
109
109
|
e,
|
|
110
110
|
s,
|
|
111
111
|
r,
|
|
112
|
-
|
|
112
|
+
l,
|
|
113
113
|
o
|
|
114
|
-
) :
|
|
114
|
+
) : $t(
|
|
115
115
|
e,
|
|
116
116
|
s,
|
|
117
|
-
|
|
117
|
+
l,
|
|
118
118
|
o
|
|
119
119
|
));
|
|
120
120
|
}, L = (e, t) => {
|
|
@@ -140,7 +140,7 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
140
140
|
isLoading: t
|
|
141
141
|
}
|
|
142
142
|
}));
|
|
143
|
-
},
|
|
143
|
+
}, ge = (e, t) => {
|
|
144
144
|
v.setState((s) => ({
|
|
145
145
|
...s,
|
|
146
146
|
[e]: {
|
|
@@ -156,7 +156,7 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
156
156
|
isDrawerOpen: t
|
|
157
157
|
}
|
|
158
158
|
}));
|
|
159
|
-
},
|
|
159
|
+
}, Ce = (e, t) => {
|
|
160
160
|
v.setState((s) => {
|
|
161
161
|
const r = s[e];
|
|
162
162
|
return r ? {
|
|
@@ -171,25 +171,25 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
|
|
|
171
171
|
} : s;
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
let ce = !1, P = [],
|
|
175
|
-
const
|
|
174
|
+
let ce = !1, P = [], Ne = !1;
|
|
175
|
+
const Dt = (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
|
-
},
|
|
180
|
-
var r,
|
|
179
|
+
}, Lt = async (e) => {
|
|
180
|
+
var r, l;
|
|
181
181
|
const t = e == null ? void 0 : e.config;
|
|
182
182
|
if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
|
|
183
|
-
const o =
|
|
183
|
+
const o = Dt(t);
|
|
184
184
|
if (o) {
|
|
185
|
-
const n = (
|
|
185
|
+
const n = (l = v.getState()[o]) == null ? void 0 : l.apiConfig;
|
|
186
186
|
if (!n)
|
|
187
187
|
return Promise.reject(e);
|
|
188
188
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
189
189
|
if (ce)
|
|
190
190
|
return new Promise((a, u) => {
|
|
191
191
|
P.push({ resolve: a, reject: u });
|
|
192
|
-
}).then(() =>
|
|
192
|
+
}).then(() => J(t)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
|
|
193
193
|
t._retry = !0, ce = !0;
|
|
194
194
|
try {
|
|
195
195
|
let a;
|
|
@@ -199,7 +199,7 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
|
|
|
199
199
|
a = n.headers();
|
|
200
200
|
else
|
|
201
201
|
throw new Error("No refresh handler available");
|
|
202
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ?
|
|
202
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Ce(o, JSON.stringify(a)) : Ce(o, a)), t.headers || (t.headers = {}), Object.assign(t.headers, a), ve(null), J(t);
|
|
203
203
|
} catch (a) {
|
|
204
204
|
return console.error(
|
|
205
205
|
"[axiosInterceptors] Token refresh failed:",
|
|
@@ -207,7 +207,7 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
|
|
|
207
207
|
), console.error(
|
|
208
208
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
209
209
|
P.length
|
|
210
|
-
),
|
|
210
|
+
), ve(a), Promise.reject(a);
|
|
211
211
|
} finally {
|
|
212
212
|
ce = !1;
|
|
213
213
|
}
|
|
@@ -222,20 +222,20 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
|
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
return Promise.reject(e);
|
|
225
|
-
},
|
|
226
|
-
if (
|
|
225
|
+
}, Bt = () => {
|
|
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..."),
|
|
232
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), J.interceptors.response.use(void 0, Lt), console.debug("[axiosInterceptors] Response error interceptor registered"), Ne = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
233
233
|
};
|
|
234
|
-
|
|
235
|
-
function
|
|
234
|
+
Bt();
|
|
235
|
+
function It(e) {
|
|
236
236
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var ie = { exports: {} }, Q = {};
|
|
239
239
|
/**
|
|
240
240
|
* @license React
|
|
241
241
|
* react-jsx-runtime.production.min.js
|
|
@@ -245,57 +245,54 @@ var $e = { exports: {} }, Q = {};
|
|
|
245
245
|
* This source code is licensed under the MIT license found in the
|
|
246
246
|
* LICENSE file in the root directory of this source tree.
|
|
247
247
|
*/
|
|
248
|
-
var
|
|
249
|
-
function
|
|
250
|
-
if (
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
function l(n, d, a) {
|
|
248
|
+
var Ee;
|
|
249
|
+
function zt() {
|
|
250
|
+
if (Ee) return Q;
|
|
251
|
+
Ee = 1;
|
|
252
|
+
var e = He, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
253
|
+
function i(n, d, a) {
|
|
255
254
|
var u, f = {}, _ = null, h = null;
|
|
256
255
|
a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
257
|
-
for (u in d)
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
for (u in d = n.defaultProps, d)
|
|
261
|
-
f[u] === void 0 && (f[u] = d[u]);
|
|
262
|
-
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: i.current };
|
|
256
|
+
for (u in d) r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
|
|
257
|
+
if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
|
|
258
|
+
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: l.current };
|
|
263
259
|
}
|
|
264
|
-
return Q.Fragment = s, Q.jsx =
|
|
260
|
+
return Q.Fragment = s, Q.jsx = i, Q.jsxs = i, Q;
|
|
265
261
|
}
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
262
|
+
var ke;
|
|
263
|
+
function Mt() {
|
|
264
|
+
return ke || (ke = 1, ie.exports = zt()), ie.exports;
|
|
265
|
+
}
|
|
266
|
+
var c = Mt();
|
|
267
|
+
const Kt = (e) => {
|
|
268
|
+
if (!(e != null && e.content)) return null;
|
|
271
269
|
const t = {
|
|
272
270
|
...e,
|
|
273
271
|
children: e.content,
|
|
274
272
|
type: e.variant
|
|
275
273
|
};
|
|
276
|
-
return /* @__PURE__ */ c.jsx(
|
|
277
|
-
},
|
|
278
|
-
if (!e)
|
|
279
|
-
return null;
|
|
274
|
+
return /* @__PURE__ */ c.jsx(Re, { ...t });
|
|
275
|
+
}, Gt = (e) => {
|
|
276
|
+
if (!e) return null;
|
|
280
277
|
const t = {
|
|
281
278
|
...e,
|
|
282
279
|
children: e.content
|
|
283
280
|
};
|
|
284
|
-
return /* @__PURE__ */ c.jsx(
|
|
285
|
-
},
|
|
281
|
+
return /* @__PURE__ */ c.jsx(Qe, { ...t });
|
|
282
|
+
}, Ut = (e) => (V(() => {
|
|
286
283
|
e != null && e.chatPanelCallback && (e == null || e.chatPanelCallback(e));
|
|
287
|
-
}, [e == null ? void 0 : e.chatPanelCallback]), null),
|
|
288
|
-
summaryCard:
|
|
289
|
-
},
|
|
284
|
+
}, [e == null ? void 0 : e.chatPanelCallback]), null), Jt = "_summaryCard_jva4h_1", Vt = {
|
|
285
|
+
summaryCard: Jt
|
|
286
|
+
}, Ht = (e) => {
|
|
290
287
|
const t = e.dataSource, s = {
|
|
291
288
|
url: e.dataSource.url,
|
|
292
289
|
method: e.dataSource.method,
|
|
293
290
|
headers: e.dataSource.headers,
|
|
294
291
|
body: t == null ? void 0 : t.data
|
|
295
|
-
}, r = e.locale ?? "en",
|
|
296
|
-
var
|
|
292
|
+
}, r = e.locale ?? "en", l = O(() => {
|
|
293
|
+
var i, n, d;
|
|
297
294
|
const o = {
|
|
298
|
-
title: (
|
|
295
|
+
title: (i = e == null ? void 0 : e.translations) == null ? void 0 : i.title,
|
|
299
296
|
loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
|
|
300
297
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
301
298
|
};
|
|
@@ -303,50 +300,50 @@ const It = (e) => {
|
|
|
303
300
|
Object.entries(o).filter(([, a]) => !!a)
|
|
304
301
|
);
|
|
305
302
|
}, [e == null ? void 0 : e.translations]);
|
|
306
|
-
return /* @__PURE__ */ c.jsx("section", { className:
|
|
307
|
-
|
|
303
|
+
return /* @__PURE__ */ c.jsx("section", { className: Vt.summaryCard, children: /* @__PURE__ */ c.jsx(
|
|
304
|
+
ht,
|
|
308
305
|
{
|
|
309
306
|
dataSource: s,
|
|
310
307
|
locale: r,
|
|
311
|
-
translations:
|
|
308
|
+
translations: l
|
|
312
309
|
}
|
|
313
310
|
) });
|
|
314
311
|
}, M = (e, t) => {
|
|
315
312
|
const s = v((r) => {
|
|
316
|
-
var
|
|
317
|
-
return ((
|
|
313
|
+
var l;
|
|
314
|
+
return ((l = r[e]) == null ? void 0 : l.entries) || {};
|
|
318
315
|
});
|
|
319
316
|
return O(() => {
|
|
320
317
|
const r = {
|
|
321
318
|
disabled: !1
|
|
322
319
|
};
|
|
323
|
-
return !t || t.length === 0 || t.forEach((
|
|
324
|
-
const o = s[
|
|
325
|
-
|
|
320
|
+
return !t || t.length === 0 || t.forEach((l) => {
|
|
321
|
+
const o = s[l.key], i = o == null || o === "" || Array.isArray(o) && o.length === 0;
|
|
322
|
+
l.when === "empty" && i && l.actions.forEach((d) => {
|
|
326
323
|
r[d] = !0;
|
|
327
324
|
});
|
|
328
325
|
}), r;
|
|
329
326
|
}, [t, s]);
|
|
330
|
-
},
|
|
331
|
-
promptCodeEditor:
|
|
332
|
-
},
|
|
327
|
+
}, Xt = "_promptCodeEditor_1d57s_1", Wt = {
|
|
328
|
+
promptCodeEditor: Xt
|
|
329
|
+
}, Qt = (e) => {
|
|
333
330
|
const {
|
|
334
331
|
userFlow: t,
|
|
335
332
|
responseKey: s,
|
|
336
333
|
codeBlockValue: r,
|
|
337
|
-
language:
|
|
334
|
+
language: l,
|
|
338
335
|
disabled: o,
|
|
339
|
-
dependencies:
|
|
336
|
+
dependencies: i,
|
|
340
337
|
dataSource: n,
|
|
341
338
|
inputLabel: d,
|
|
342
339
|
inputPlaceholder: a,
|
|
343
340
|
codeBlockLabel: u
|
|
344
|
-
} = e, f =
|
|
341
|
+
} = e, f = fe.useThemeStore((b) => b.theme.mode), [_, h] = q(
|
|
345
342
|
r || ""
|
|
346
343
|
), { disabled: j } = M(
|
|
347
344
|
t,
|
|
348
|
-
|
|
349
|
-
), y = o ?? j, x =
|
|
345
|
+
i
|
|
346
|
+
), y = o ?? j, x = l ?? "json", m = {
|
|
350
347
|
url: (n == null ? void 0 : n.url) || "",
|
|
351
348
|
method: (n == null ? void 0 : n.method) || "post",
|
|
352
349
|
headers: n == null ? void 0 : n.headers,
|
|
@@ -358,10 +355,10 @@ const It = (e) => {
|
|
|
358
355
|
};
|
|
359
356
|
L(t, N);
|
|
360
357
|
};
|
|
361
|
-
return
|
|
358
|
+
return V(() => {
|
|
362
359
|
r !== void 0 && r !== _ && h(r);
|
|
363
|
-
}, [r]), /* @__PURE__ */ c.jsx("section", { className:
|
|
364
|
-
|
|
360
|
+
}, [r]), /* @__PURE__ */ c.jsx("section", { className: Wt.promptCodeEditor, children: /* @__PURE__ */ c.jsx(
|
|
361
|
+
ft,
|
|
365
362
|
{
|
|
366
363
|
themeMode: f,
|
|
367
364
|
requestConfig: m,
|
|
@@ -374,10 +371,10 @@ const It = (e) => {
|
|
|
374
371
|
onCodeChange: g
|
|
375
372
|
}
|
|
376
373
|
) });
|
|
377
|
-
},
|
|
378
|
-
body:
|
|
379
|
-
body_content:
|
|
380
|
-
},
|
|
374
|
+
}, Yt = "_body_14tsv_1", Zt = "_body_content_14tsv_5", qe = {
|
|
375
|
+
body: Yt,
|
|
376
|
+
body_content: Zt
|
|
377
|
+
}, Ft = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: qe.body, children: /* @__PURE__ */ c.jsx("div", { className: qe.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), X = (e) => {
|
|
381
378
|
if (!e)
|
|
382
379
|
return { "content-type": "application/json" };
|
|
383
380
|
if (typeof e == "function")
|
|
@@ -389,105 +386,105 @@ const It = (e) => {
|
|
|
389
386
|
return { "content-type": "application/json", Authorization: e };
|
|
390
387
|
}
|
|
391
388
|
return e;
|
|
392
|
-
}, F = () => new AbortController(),
|
|
389
|
+
}, F = () => new AbortController(), Pt = (e, t = {}, s = {}, r = !1, l) => {
|
|
393
390
|
const o = F();
|
|
394
391
|
r && o.abort();
|
|
395
|
-
const
|
|
392
|
+
const i = X(t);
|
|
396
393
|
return {
|
|
397
|
-
call:
|
|
394
|
+
call: J.get(e, {
|
|
398
395
|
headers: {
|
|
399
|
-
...
|
|
396
|
+
...i
|
|
400
397
|
},
|
|
401
398
|
params: s,
|
|
402
399
|
signal: o.signal,
|
|
403
|
-
_userFlow:
|
|
400
|
+
_userFlow: l
|
|
404
401
|
}),
|
|
405
402
|
controller: o
|
|
406
403
|
};
|
|
407
|
-
},
|
|
408
|
-
const
|
|
409
|
-
|
|
404
|
+
}, he = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
405
|
+
const i = F();
|
|
406
|
+
l && i.abort();
|
|
410
407
|
const n = X(t);
|
|
411
408
|
return {
|
|
412
|
-
call:
|
|
409
|
+
call: J.post(e, s, {
|
|
413
410
|
headers: {
|
|
414
411
|
...n
|
|
415
412
|
},
|
|
416
413
|
params: r,
|
|
417
|
-
signal:
|
|
414
|
+
signal: i.signal,
|
|
418
415
|
_userFlow: o
|
|
419
416
|
}),
|
|
420
|
-
controller:
|
|
417
|
+
controller: i
|
|
421
418
|
};
|
|
422
|
-
},
|
|
423
|
-
const
|
|
424
|
-
|
|
419
|
+
}, en = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
420
|
+
const i = F();
|
|
421
|
+
l && i.abort();
|
|
425
422
|
const n = X(t);
|
|
426
423
|
return {
|
|
427
|
-
call:
|
|
424
|
+
call: J.put(e, s, {
|
|
428
425
|
headers: {
|
|
429
426
|
...n
|
|
430
427
|
},
|
|
431
428
|
params: r,
|
|
432
|
-
signal:
|
|
429
|
+
signal: i.signal,
|
|
433
430
|
_userFlow: o
|
|
434
431
|
}),
|
|
435
|
-
controller:
|
|
432
|
+
controller: i
|
|
436
433
|
};
|
|
437
|
-
},
|
|
438
|
-
const
|
|
439
|
-
|
|
434
|
+
}, tn = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
435
|
+
const i = F();
|
|
436
|
+
l && i.abort();
|
|
440
437
|
const n = X(t);
|
|
441
438
|
return {
|
|
442
|
-
call:
|
|
439
|
+
call: J.patch(e, s, {
|
|
443
440
|
headers: {
|
|
444
441
|
...n
|
|
445
442
|
},
|
|
446
443
|
params: r,
|
|
447
|
-
signal:
|
|
444
|
+
signal: i.signal,
|
|
448
445
|
_userFlow: o
|
|
449
446
|
}),
|
|
450
|
-
controller:
|
|
447
|
+
controller: i
|
|
451
448
|
};
|
|
452
|
-
},
|
|
453
|
-
const
|
|
454
|
-
|
|
449
|
+
}, nn = (e, t = {}, s = {}, r = {}, l = !1, o) => {
|
|
450
|
+
const i = F();
|
|
451
|
+
l && i.abort();
|
|
455
452
|
const n = X(t);
|
|
456
453
|
return {
|
|
457
|
-
call:
|
|
454
|
+
call: J.delete(e, {
|
|
458
455
|
headers: {
|
|
459
456
|
...n
|
|
460
457
|
},
|
|
461
458
|
data: s,
|
|
462
459
|
params: r,
|
|
463
|
-
signal:
|
|
460
|
+
signal: i.signal,
|
|
464
461
|
_userFlow: o
|
|
465
462
|
}),
|
|
466
|
-
controller:
|
|
463
|
+
controller: i
|
|
467
464
|
};
|
|
468
|
-
},
|
|
465
|
+
}, Be = () => {
|
|
469
466
|
let e;
|
|
470
467
|
return { callEndpoint: async (r) => {
|
|
471
468
|
r.controller && (e = r.controller);
|
|
472
|
-
let
|
|
469
|
+
let l = {};
|
|
473
470
|
try {
|
|
474
|
-
|
|
471
|
+
l = await r.call;
|
|
475
472
|
} catch (o) {
|
|
476
473
|
throw o;
|
|
477
474
|
}
|
|
478
|
-
return
|
|
475
|
+
return l;
|
|
479
476
|
}, cancelEndpoint: () => {
|
|
480
477
|
e && e.abort();
|
|
481
478
|
} };
|
|
482
|
-
},
|
|
479
|
+
}, Ie = async (e, t, s = "", r = {}, l = {}) => {
|
|
483
480
|
try {
|
|
484
|
-
const { callEndpoint: o } =
|
|
481
|
+
const { callEndpoint: o } = Be(), { api: i, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
|
|
485
482
|
s && a.append("hash_code", s), d && a.append("sessionId", d);
|
|
486
|
-
const u = `${
|
|
483
|
+
const u = `${i}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = he(
|
|
487
484
|
u,
|
|
488
485
|
f,
|
|
489
486
|
r,
|
|
490
|
-
|
|
487
|
+
l,
|
|
491
488
|
!1,
|
|
492
489
|
t
|
|
493
490
|
);
|
|
@@ -496,14 +493,14 @@ const It = (e) => {
|
|
|
496
493
|
return console.error(o), Promise.reject(o);
|
|
497
494
|
}
|
|
498
495
|
}, I = () => {
|
|
499
|
-
const e = v((n) => n), { callEndpoint: t } =
|
|
496
|
+
const e = v((n) => n), { callEndpoint: t } = Be(), s = async (n, d, a, u, f = !0) => {
|
|
500
497
|
var _;
|
|
501
498
|
try {
|
|
502
499
|
const h = (_ = e[n]) == null ? void 0 : _.apiConfig, j = {
|
|
503
500
|
state: { ...a },
|
|
504
501
|
triggerKey: u
|
|
505
502
|
};
|
|
506
|
-
return f && H(n, !0), await
|
|
503
|
+
return f && H(n, !0), await Ie(
|
|
507
504
|
h,
|
|
508
505
|
n,
|
|
509
506
|
d,
|
|
@@ -516,23 +513,23 @@ const It = (e) => {
|
|
|
516
513
|
const { method: a, url: u, headers: f, data: _, params: h } = n;
|
|
517
514
|
switch (a) {
|
|
518
515
|
case "post":
|
|
519
|
-
return
|
|
516
|
+
return he(u, f, _, {}, !1, d);
|
|
520
517
|
case "put":
|
|
521
|
-
return
|
|
518
|
+
return en(u, f, _, {}, !1, d);
|
|
522
519
|
case "patch":
|
|
523
|
-
return
|
|
520
|
+
return tn(u, f, _, {}, !1, d);
|
|
524
521
|
case "delete":
|
|
525
|
-
return
|
|
522
|
+
return nn(u, f, _, h, !1, d);
|
|
526
523
|
case "get":
|
|
527
524
|
default:
|
|
528
|
-
return
|
|
525
|
+
return Pt(u, f, h, !1, d);
|
|
529
526
|
}
|
|
530
|
-
},
|
|
527
|
+
}, l = (n, d) => {
|
|
531
528
|
const { url: a, headers: u } = n, f = {
|
|
532
529
|
query: n == null ? void 0 : n.query,
|
|
533
530
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
534
531
|
};
|
|
535
|
-
return
|
|
532
|
+
return he(
|
|
536
533
|
a,
|
|
537
534
|
{
|
|
538
535
|
...u,
|
|
@@ -557,7 +554,7 @@ const It = (e) => {
|
|
|
557
554
|
_ = r(n, d);
|
|
558
555
|
break;
|
|
559
556
|
case "graphql":
|
|
560
|
-
_ =
|
|
557
|
+
_ = l(n, d);
|
|
561
558
|
break;
|
|
562
559
|
default:
|
|
563
560
|
throw new Error("[fetchDataSource] Unsupported data source type");
|
|
@@ -598,16 +595,16 @@ const It = (e) => {
|
|
|
598
595
|
}
|
|
599
596
|
}
|
|
600
597
|
};
|
|
601
|
-
},
|
|
598
|
+
}, rn = ({
|
|
602
599
|
userFlow: e,
|
|
603
600
|
items: t,
|
|
604
601
|
responseKey: s
|
|
605
602
|
}) => {
|
|
606
|
-
const { getNextUI: r } = I(),
|
|
607
|
-
async ({ actionType:
|
|
603
|
+
const { getNextUI: r } = I(), l = D(
|
|
604
|
+
async ({ actionType: i, hashCode: n, redirectUrl: d }) => {
|
|
608
605
|
var a;
|
|
609
606
|
try {
|
|
610
|
-
switch (
|
|
607
|
+
switch (i) {
|
|
611
608
|
case "GO_TO_NEXT_UI":
|
|
612
609
|
const u = await r(
|
|
613
610
|
e,
|
|
@@ -615,13 +612,13 @@ const It = (e) => {
|
|
|
615
612
|
{ ...(a = v.getState()[e]) == null ? void 0 : a.entries },
|
|
616
613
|
s
|
|
617
614
|
);
|
|
618
|
-
u != null && u.data &&
|
|
615
|
+
u != null && u.data && S(e, u == null ? void 0 : u.data);
|
|
619
616
|
break;
|
|
620
617
|
case "REDIRECT":
|
|
621
618
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
622
619
|
break;
|
|
623
620
|
default:
|
|
624
|
-
console.warn(`Unhandled actionType: ${
|
|
621
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
625
622
|
break;
|
|
626
623
|
}
|
|
627
624
|
} catch (u) {
|
|
@@ -629,19 +626,19 @@ const It = (e) => {
|
|
|
629
626
|
}
|
|
630
627
|
},
|
|
631
628
|
[]
|
|
632
|
-
), o = O(() => t == null ? void 0 : t.map((
|
|
633
|
-
title:
|
|
634
|
-
component: /* @__PURE__ */ c.jsx("div", { onClick: () => i
|
|
629
|
+
), o = O(() => t == null ? void 0 : t.map((i) => ({
|
|
630
|
+
title: i == null ? void 0 : i.title,
|
|
631
|
+
component: /* @__PURE__ */ c.jsx("div", { onClick: () => l(i) })
|
|
635
632
|
})), []);
|
|
636
|
-
return /* @__PURE__ */ c.jsx(
|
|
637
|
-
},
|
|
633
|
+
return /* @__PURE__ */ c.jsx(Ye, { items: o });
|
|
634
|
+
}, sn = (e) => {
|
|
638
635
|
const {
|
|
639
636
|
userFlow: t,
|
|
640
637
|
pageId: s,
|
|
641
638
|
responseKey: r,
|
|
642
|
-
actionType:
|
|
639
|
+
actionType: l,
|
|
643
640
|
label: o,
|
|
644
|
-
content:
|
|
641
|
+
content: i,
|
|
645
642
|
dataSource: n,
|
|
646
643
|
redirectUrl: d,
|
|
647
644
|
dependencies: a,
|
|
@@ -652,7 +649,7 @@ const It = (e) => {
|
|
|
652
649
|
a
|
|
653
650
|
), x = {
|
|
654
651
|
...f,
|
|
655
|
-
children:
|
|
652
|
+
children: i ?? o
|
|
656
653
|
}, m = (x == null ? void 0 : x.disabled) ?? y, g = D(async () => {
|
|
657
654
|
var b, N, p;
|
|
658
655
|
try {
|
|
@@ -660,9 +657,9 @@ const It = (e) => {
|
|
|
660
657
|
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
661
658
|
[r]: { status: 200 }
|
|
662
659
|
};
|
|
663
|
-
switch (L(t, C),
|
|
660
|
+
switch (L(t, C), l) {
|
|
664
661
|
case "CLOSE_MODAL":
|
|
665
|
-
|
|
662
|
+
ge(t, !1);
|
|
666
663
|
break;
|
|
667
664
|
case "CLOSE_DRAWER":
|
|
668
665
|
Z(t, !1);
|
|
@@ -677,7 +674,7 @@ const It = (e) => {
|
|
|
677
674
|
C,
|
|
678
675
|
r
|
|
679
676
|
);
|
|
680
|
-
w != null && w.data &&
|
|
677
|
+
w != null && w.data && S(t, w == null ? void 0 : w.data);
|
|
681
678
|
break;
|
|
682
679
|
}
|
|
683
680
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -688,7 +685,7 @@ const It = (e) => {
|
|
|
688
685
|
r,
|
|
689
686
|
n
|
|
690
687
|
);
|
|
691
|
-
w != null && w.data &&
|
|
688
|
+
w != null && w.data && S(t, w == null ? void 0 : w.data);
|
|
692
689
|
break;
|
|
693
690
|
}
|
|
694
691
|
case "GET_DATA_SOURCE": {
|
|
@@ -698,8 +695,7 @@ const It = (e) => {
|
|
|
698
695
|
C,
|
|
699
696
|
r
|
|
700
697
|
), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
|
|
701
|
-
if ((E == null ? void 0 : E.type) !== "fetch")
|
|
702
|
-
break;
|
|
698
|
+
if ((E == null ? void 0 : E.type) !== "fetch") break;
|
|
703
699
|
const T = E == null ? void 0 : E.dataSource, k = await h(
|
|
704
700
|
T,
|
|
705
701
|
t,
|
|
@@ -719,56 +715,56 @@ const It = (e) => {
|
|
|
719
715
|
K,
|
|
720
716
|
r
|
|
721
717
|
);
|
|
722
|
-
G != null && G.data &&
|
|
718
|
+
G != null && G.data && S(t, G == null ? void 0 : G.data);
|
|
723
719
|
break;
|
|
724
720
|
}
|
|
725
721
|
case "REDIRECT":
|
|
726
722
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
727
723
|
break;
|
|
728
724
|
default:
|
|
729
|
-
console.warn(`Unhandled actionType: ${
|
|
725
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
730
726
|
break;
|
|
731
727
|
}
|
|
732
728
|
} catch (C) {
|
|
733
729
|
alert(JSON.stringify(C));
|
|
734
730
|
}
|
|
735
|
-
}, [
|
|
731
|
+
}, [l, n, s, r, t]);
|
|
736
732
|
return /* @__PURE__ */ c.jsx(
|
|
737
|
-
|
|
733
|
+
Ze,
|
|
738
734
|
{
|
|
739
735
|
...x,
|
|
740
736
|
disabled: m,
|
|
741
737
|
onClick: () => !m && (u ?? g)()
|
|
742
738
|
}
|
|
743
739
|
);
|
|
744
|
-
},
|
|
745
|
-
cardNotificationNotFront:
|
|
746
|
-
},
|
|
747
|
-
const { content: t, description: s, ...r } = e,
|
|
740
|
+
}, an = "_cardNotificationNotFront_t7pln_1", on = {
|
|
741
|
+
cardNotificationNotFront: an
|
|
742
|
+
}, cn = (e) => {
|
|
743
|
+
const { content: t, description: s, ...r } = e, l = {
|
|
748
744
|
...r,
|
|
749
745
|
children: t ?? s
|
|
750
746
|
};
|
|
751
747
|
return /* @__PURE__ */ c.jsx(
|
|
752
|
-
|
|
748
|
+
ye,
|
|
753
749
|
{
|
|
754
|
-
...
|
|
755
|
-
className:
|
|
750
|
+
...l,
|
|
751
|
+
className: on.cardNotificationNotFront
|
|
756
752
|
}
|
|
757
753
|
);
|
|
758
|
-
},
|
|
754
|
+
}, ln = (e) => {
|
|
759
755
|
const {
|
|
760
756
|
userFlow: t,
|
|
761
757
|
pageId: s,
|
|
762
758
|
responseKey: r,
|
|
763
|
-
actionType:
|
|
759
|
+
actionType: l,
|
|
764
760
|
label: o,
|
|
765
|
-
value:
|
|
761
|
+
value: i,
|
|
766
762
|
required: n,
|
|
767
763
|
dependencies: d,
|
|
768
764
|
...a
|
|
769
765
|
} = e, u = {
|
|
770
766
|
...a
|
|
771
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
767
|
+
}, { getNextUI: f } = I(), [_, h] = q(i || !1), { disabled: j } = M(
|
|
772
768
|
t,
|
|
773
769
|
d
|
|
774
770
|
), y = O(() => n && o ? `${o} *` : o ?? "", [o, n]), x = D(async () => {
|
|
@@ -780,7 +776,7 @@ const It = (e) => {
|
|
|
780
776
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
781
777
|
[r]: b
|
|
782
778
|
};
|
|
783
|
-
switch (L(t, N),
|
|
779
|
+
switch (L(t, N), l) {
|
|
784
780
|
case "GO_TO_NEXT_UI":
|
|
785
781
|
const p = await f(
|
|
786
782
|
t,
|
|
@@ -788,18 +784,18 @@ const It = (e) => {
|
|
|
788
784
|
N,
|
|
789
785
|
r
|
|
790
786
|
);
|
|
791
|
-
p != null && p.data &&
|
|
787
|
+
p != null && p.data && S(t, p == null ? void 0 : p.data);
|
|
792
788
|
break;
|
|
793
789
|
default:
|
|
794
|
-
console.warn(`Unhandled actionType: ${
|
|
790
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
795
791
|
break;
|
|
796
792
|
}
|
|
797
793
|
} catch (b) {
|
|
798
794
|
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
799
795
|
}
|
|
800
|
-
}, [t, s, r,
|
|
796
|
+
}, [t, s, r, l, _]), m = (u == null ? void 0 : u.disabled) ?? j;
|
|
801
797
|
return /* @__PURE__ */ c.jsx(
|
|
802
|
-
|
|
798
|
+
Fe,
|
|
803
799
|
{
|
|
804
800
|
...u,
|
|
805
801
|
labelRight: y,
|
|
@@ -810,32 +806,32 @@ const It = (e) => {
|
|
|
810
806
|
}
|
|
811
807
|
}
|
|
812
808
|
);
|
|
813
|
-
},
|
|
814
|
-
codeEditor:
|
|
815
|
-
codeEditor_label:
|
|
816
|
-
codeEditor_wrapper:
|
|
817
|
-
input:
|
|
818
|
-
preview:
|
|
819
|
-
},
|
|
809
|
+
}, dn = "_codeEditor_1coz7_1", _n = "_codeEditor_label_1coz7_4", un = "_codeEditor_wrapper_1coz7_13", hn = "_input_1coz7_17", fn = "_preview_1coz7_18", Y = {
|
|
810
|
+
codeEditor: dn,
|
|
811
|
+
codeEditor_label: _n,
|
|
812
|
+
codeEditor_wrapper: un,
|
|
813
|
+
input: hn,
|
|
814
|
+
preview: fn
|
|
815
|
+
}, yn = (e) => {
|
|
820
816
|
const {
|
|
821
817
|
userFlow: t,
|
|
822
818
|
responseKey: s,
|
|
823
819
|
label: r,
|
|
824
|
-
language:
|
|
820
|
+
language: l,
|
|
825
821
|
placeholder: o,
|
|
826
|
-
value:
|
|
822
|
+
value: i,
|
|
827
823
|
required: n,
|
|
828
824
|
dependencies: d,
|
|
829
825
|
disabled: a,
|
|
830
826
|
showPreview: u
|
|
831
|
-
} = e, [f, _] =
|
|
827
|
+
} = e, [f, _] = q(i ?? ""), h = fe.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
|
|
832
828
|
t,
|
|
833
829
|
d
|
|
834
830
|
), y = a ?? j, x = {
|
|
835
|
-
json:
|
|
836
|
-
markdown:
|
|
837
|
-
sql:
|
|
838
|
-
yaml:
|
|
831
|
+
json: we(),
|
|
832
|
+
markdown: mt(),
|
|
833
|
+
sql: xt(),
|
|
834
|
+
yaml: gt()
|
|
839
835
|
}, m = O(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (b) => {
|
|
840
836
|
_(b);
|
|
841
837
|
const N = {
|
|
@@ -847,89 +843,91 @@ const It = (e) => {
|
|
|
847
843
|
m && m !== "" && /* @__PURE__ */ c.jsx("label", { className: Y.codeEditor_label, children: m }),
|
|
848
844
|
/* @__PURE__ */ c.jsxs("div", { className: Y.codeEditor_wrapper, children: [
|
|
849
845
|
/* @__PURE__ */ c.jsx(
|
|
850
|
-
|
|
846
|
+
yt,
|
|
851
847
|
{
|
|
852
848
|
className: Y.input,
|
|
853
849
|
value: f,
|
|
854
850
|
height: "400px",
|
|
855
851
|
placeholder: o,
|
|
856
|
-
extensions: [x[
|
|
852
|
+
extensions: [x[l] ?? we()],
|
|
857
853
|
onChange: (b) => g(b),
|
|
858
854
|
theme: h,
|
|
859
855
|
editable: !y
|
|
860
856
|
}
|
|
861
857
|
),
|
|
862
|
-
|
|
858
|
+
l == "markdown" && u && /* @__PURE__ */ c.jsx(Pe, { className: Y.preview, children: f })
|
|
863
859
|
] })
|
|
864
860
|
] });
|
|
865
861
|
};
|
|
866
|
-
var
|
|
862
|
+
var le = { exports: {} };
|
|
867
863
|
/*!
|
|
868
864
|
Copyright (c) 2018 Jed Watson.
|
|
869
865
|
Licensed under the MIT License (MIT), see
|
|
870
866
|
http://jedwatson.github.io/classnames
|
|
871
867
|
*/
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
function
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
var
|
|
880
|
-
if (
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
868
|
+
var Se;
|
|
869
|
+
function mn() {
|
|
870
|
+
return Se || (Se = 1, (function(e) {
|
|
871
|
+
(function() {
|
|
872
|
+
var t = {}.hasOwnProperty;
|
|
873
|
+
function s() {
|
|
874
|
+
for (var r = [], l = 0; l < arguments.length; l++) {
|
|
875
|
+
var o = arguments[l];
|
|
876
|
+
if (o) {
|
|
877
|
+
var i = typeof o;
|
|
878
|
+
if (i === "string" || i === "number")
|
|
879
|
+
r.push(o);
|
|
880
|
+
else if (Array.isArray(o)) {
|
|
881
|
+
if (o.length) {
|
|
882
|
+
var n = s.apply(null, o);
|
|
883
|
+
n && r.push(n);
|
|
884
|
+
}
|
|
885
|
+
} else if (i === "object") {
|
|
886
|
+
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
887
|
+
r.push(o.toString());
|
|
888
|
+
continue;
|
|
889
|
+
}
|
|
890
|
+
for (var d in o)
|
|
891
|
+
t.call(o, d) && o[d] && r.push(d);
|
|
886
892
|
}
|
|
887
|
-
} else if (l === "object") {
|
|
888
|
-
if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
|
|
889
|
-
r.push(o.toString());
|
|
890
|
-
continue;
|
|
891
|
-
}
|
|
892
|
-
for (var d in o)
|
|
893
|
-
t.call(o, d) && o[d] && r.push(d);
|
|
894
893
|
}
|
|
895
894
|
}
|
|
895
|
+
return r.join(" ");
|
|
896
896
|
}
|
|
897
|
-
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
const u = (i == null ? void 0 : i.text) ?? "text";
|
|
910
|
-
l.push(`${u}=${encodeURIComponent(s || "")}`);
|
|
897
|
+
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
898
|
+
})();
|
|
899
|
+
})(le)), le.exports;
|
|
900
|
+
}
|
|
901
|
+
var xn = mn();
|
|
902
|
+
const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
903
|
+
dividerNotFront: gn
|
|
904
|
+
}, bn = (e) => /* @__PURE__ */ c.jsx(et, { ...e, className: pn.dividerNotFront }), jn = (e, t, s) => {
|
|
905
|
+
const { url: r, paginationKeys: l, params: o } = e, i = [], n = (l == null ? void 0 : l.page) ?? "page";
|
|
906
|
+
if (i.push(`${n}=${t}`), typeof s == "string") {
|
|
907
|
+
const u = (l == null ? void 0 : l.text) ?? "text";
|
|
908
|
+
i.push(`${u}=${encodeURIComponent(s || "")}`);
|
|
911
909
|
}
|
|
912
910
|
if (o && typeof o == "object") {
|
|
913
911
|
const u = Object.entries(o).map(
|
|
914
912
|
([f, _]) => `${encodeURIComponent(f)}=${encodeURIComponent(_)}`
|
|
915
913
|
);
|
|
916
|
-
|
|
914
|
+
i.push(...u);
|
|
917
915
|
}
|
|
918
|
-
const d =
|
|
916
|
+
const d = i.join("&");
|
|
919
917
|
return d ? `${r}?${d}` : r;
|
|
920
|
-
},
|
|
921
|
-
const { type: r, url:
|
|
918
|
+
}, pe = (e, t, s) => {
|
|
919
|
+
const { type: r, url: l, method: o, headers: i } = e;
|
|
922
920
|
return r === "rest" ? {
|
|
923
921
|
type: "rest",
|
|
924
|
-
url:
|
|
922
|
+
url: jn(e, t, s),
|
|
925
923
|
method: o,
|
|
926
|
-
headers:
|
|
924
|
+
headers: i,
|
|
927
925
|
data: (e == null ? void 0 : e.data) || {}
|
|
928
926
|
} : {
|
|
929
927
|
type: "graphql",
|
|
930
|
-
url:
|
|
928
|
+
url: l,
|
|
931
929
|
method: "post",
|
|
932
|
-
headers:
|
|
930
|
+
headers: i,
|
|
933
931
|
query: e == null ? void 0 : e.query,
|
|
934
932
|
variables: {
|
|
935
933
|
...(e == null ? void 0 : e.variables) || {},
|
|
@@ -937,37 +935,37 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
937
935
|
page: t
|
|
938
936
|
}
|
|
939
937
|
};
|
|
940
|
-
},
|
|
941
|
-
const
|
|
938
|
+
}, de = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ze = (e, t, s, r) => {
|
|
939
|
+
const l = B.query(e, t), o = l == null ? void 0 : l.map((a) => {
|
|
942
940
|
var u, f;
|
|
943
941
|
if (s) {
|
|
944
942
|
const _ = {};
|
|
945
943
|
for (const [h, j] of Object.entries(s))
|
|
946
944
|
if (typeof j == "object" && "path" in j) {
|
|
947
945
|
const y = j, x = (u = B.query(a, y.path)) == null ? void 0 : u[0];
|
|
948
|
-
y.translations && String(x) in y.translations ? _[h] =
|
|
946
|
+
y.translations && String(x) in y.translations ? _[h] = de(
|
|
949
947
|
y.translations[String(x)]
|
|
950
|
-
) : _[h] =
|
|
948
|
+
) : _[h] = de(x);
|
|
951
949
|
} else {
|
|
952
950
|
const y = j;
|
|
953
|
-
_[h] =
|
|
951
|
+
_[h] = de((f = B.query(a, y)) == null ? void 0 : f[0]);
|
|
954
952
|
}
|
|
955
953
|
return _;
|
|
956
954
|
} else
|
|
957
955
|
return a;
|
|
958
|
-
}),
|
|
959
|
-
size:
|
|
956
|
+
}), i = B.value(e, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? l.length, n = B.value(e, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = {
|
|
957
|
+
size: i,
|
|
960
958
|
total: n,
|
|
961
959
|
totalPages: r != null && r.totalPages ? B.value(
|
|
962
960
|
e,
|
|
963
961
|
(r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
|
|
964
|
-
) :
|
|
962
|
+
) : i > 0 ? Math.ceil(n / i) : 0
|
|
965
963
|
};
|
|
966
964
|
return { items: o, pagination: d };
|
|
967
965
|
}, ne = ({ withPadding: e = !1 }) => {
|
|
968
966
|
const t = (s) => /* @__PURE__ */ c.jsx("span", { style: { color: R.labelColor }, children: s });
|
|
969
967
|
return /* @__PURE__ */ c.jsx(
|
|
970
|
-
|
|
968
|
+
pt,
|
|
971
969
|
{
|
|
972
970
|
formatter: t,
|
|
973
971
|
wrapperStyle: {
|
|
@@ -977,7 +975,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
977
975
|
}
|
|
978
976
|
}
|
|
979
977
|
);
|
|
980
|
-
},
|
|
978
|
+
}, wn = ({
|
|
981
979
|
active: e,
|
|
982
980
|
payload: t,
|
|
983
981
|
label: s,
|
|
@@ -986,7 +984,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
986
984
|
var o;
|
|
987
985
|
if (!e || !t || !t.length)
|
|
988
986
|
return null;
|
|
989
|
-
const
|
|
987
|
+
const l = {
|
|
990
988
|
backgroundColor: R.tooltipBg,
|
|
991
989
|
borderRadius: R.tooltipBorderRadius,
|
|
992
990
|
color: R.tooltipColor,
|
|
@@ -994,21 +992,21 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
994
992
|
border: "1px solid #e5e7eb"
|
|
995
993
|
};
|
|
996
994
|
if (r) {
|
|
997
|
-
const
|
|
998
|
-
if (
|
|
999
|
-
return /* @__PURE__ */ c.jsx("div", { style:
|
|
995
|
+
const i = (o = t[0]) == null ? void 0 : o.payload;
|
|
996
|
+
if (i && i[r] !== void 0 && i[r] !== null)
|
|
997
|
+
return /* @__PURE__ */ c.jsx("div", { style: l, children: /* @__PURE__ */ c.jsx("p", { style: { margin: 0 }, children: i[r] }) });
|
|
1000
998
|
}
|
|
1001
|
-
return /* @__PURE__ */ c.jsxs("div", { style:
|
|
999
|
+
return /* @__PURE__ */ c.jsxs("div", { style: l, children: [
|
|
1002
1000
|
/* @__PURE__ */ c.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1003
|
-
t.map((
|
|
1001
|
+
t.map((i, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: i.color }, children: `${i.name}: ${i.value}` }, n))
|
|
1004
1002
|
] });
|
|
1005
1003
|
}, re = ({ tooltipKey: e } = {}) => /* @__PURE__ */ c.jsx(
|
|
1006
|
-
|
|
1004
|
+
bt,
|
|
1007
1005
|
{
|
|
1008
|
-
content: /* @__PURE__ */ c.jsx(
|
|
1006
|
+
content: /* @__PURE__ */ c.jsx(wn, { tooltipKey: e })
|
|
1009
1007
|
}
|
|
1010
|
-
),
|
|
1011
|
-
|
|
1008
|
+
), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ c.jsx(
|
|
1009
|
+
jt,
|
|
1012
1010
|
{
|
|
1013
1011
|
dataKey: e,
|
|
1014
1012
|
hide: t,
|
|
@@ -1017,80 +1015,80 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1017
1015
|
fontSize: R.fontSize
|
|
1018
1016
|
}
|
|
1019
1017
|
}
|
|
1020
|
-
),
|
|
1021
|
-
|
|
1018
|
+
), je = () => /* @__PURE__ */ c.jsx(
|
|
1019
|
+
wt,
|
|
1022
1020
|
{
|
|
1023
1021
|
tick: {
|
|
1024
1022
|
fill: R.labelColor,
|
|
1025
1023
|
fontSize: R.fontSize
|
|
1026
1024
|
}
|
|
1027
1025
|
}
|
|
1028
|
-
),
|
|
1029
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey:
|
|
1030
|
-
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(
|
|
1031
|
-
/* @__PURE__ */ c.jsx(
|
|
1032
|
-
/* @__PURE__ */ c.jsx(
|
|
1033
|
-
/* @__PURE__ */ c.jsx(
|
|
1034
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1026
|
+
), Cn = (e) => {
|
|
1027
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
|
|
1028
|
+
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Ct, { data: t, children: [
|
|
1029
|
+
/* @__PURE__ */ c.jsx(me, { strokeDasharray: "3 3" }),
|
|
1030
|
+
/* @__PURE__ */ c.jsx(be, { dataKey: s }),
|
|
1031
|
+
/* @__PURE__ */ c.jsx(je, {}),
|
|
1032
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1035
1033
|
/* @__PURE__ */ c.jsx(ne, {}),
|
|
1036
|
-
r.map((o,
|
|
1037
|
-
|
|
1034
|
+
r.map((o, i) => /* @__PURE__ */ c.jsx(
|
|
1035
|
+
Nt,
|
|
1038
1036
|
{
|
|
1039
1037
|
type: "monotone",
|
|
1040
1038
|
dataKey: o,
|
|
1041
|
-
stroke: z[
|
|
1042
|
-
fill: z[
|
|
1039
|
+
stroke: z[i % z.length],
|
|
1040
|
+
fill: z[i % z.length]
|
|
1043
1041
|
},
|
|
1044
1042
|
o
|
|
1045
1043
|
))
|
|
1046
1044
|
] }) });
|
|
1047
|
-
},
|
|
1048
|
-
const { data: t, yKeys: s, xKey: r, tooltipKey:
|
|
1049
|
-
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(
|
|
1050
|
-
/* @__PURE__ */ c.jsx(
|
|
1051
|
-
/* @__PURE__ */ c.jsx(
|
|
1052
|
-
/* @__PURE__ */ c.jsx(
|
|
1053
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1045
|
+
}, Nn = (e) => {
|
|
1046
|
+
const { data: t, yKeys: s, xKey: r, tooltipKey: l } = e;
|
|
1047
|
+
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(vt, { data: t, children: [
|
|
1048
|
+
/* @__PURE__ */ c.jsx(me, { strokeDasharray: "3 3" }),
|
|
1049
|
+
/* @__PURE__ */ c.jsx(be, { hide: !0, dataKey: r }),
|
|
1050
|
+
/* @__PURE__ */ c.jsx(je, {}),
|
|
1051
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1054
1052
|
/* @__PURE__ */ c.jsx(ne, { withPadding: !0 }),
|
|
1055
|
-
s.map((o,
|
|
1056
|
-
|
|
1053
|
+
s.map((o, i) => /* @__PURE__ */ c.jsx(
|
|
1054
|
+
Et,
|
|
1057
1055
|
{
|
|
1058
1056
|
dataKey: o,
|
|
1059
|
-
fill: z[
|
|
1057
|
+
fill: z[i % z.length]
|
|
1060
1058
|
},
|
|
1061
1059
|
o
|
|
1062
1060
|
))
|
|
1063
1061
|
] }) });
|
|
1064
|
-
},
|
|
1065
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey:
|
|
1066
|
-
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(
|
|
1067
|
-
/* @__PURE__ */ c.jsx(
|
|
1068
|
-
/* @__PURE__ */ c.jsx(
|
|
1069
|
-
/* @__PURE__ */ c.jsx(
|
|
1070
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1062
|
+
}, vn = (e) => {
|
|
1063
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
|
|
1064
|
+
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(kt, { data: t, children: [
|
|
1065
|
+
/* @__PURE__ */ c.jsx(me, { strokeDasharray: "3 3" }),
|
|
1066
|
+
/* @__PURE__ */ c.jsx(be, { dataKey: s }),
|
|
1067
|
+
/* @__PURE__ */ c.jsx(je, {}),
|
|
1068
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1071
1069
|
/* @__PURE__ */ c.jsx(ne, {}),
|
|
1072
|
-
r.map((o,
|
|
1073
|
-
|
|
1070
|
+
r.map((o, i) => /* @__PURE__ */ c.jsx(
|
|
1071
|
+
qt,
|
|
1074
1072
|
{
|
|
1075
1073
|
type: "monotone",
|
|
1076
1074
|
dataKey: o,
|
|
1077
|
-
stroke: z[
|
|
1075
|
+
stroke: z[i % z.length],
|
|
1078
1076
|
strokeWidth: 2,
|
|
1079
1077
|
dot: !1
|
|
1080
1078
|
},
|
|
1081
1079
|
o
|
|
1082
1080
|
))
|
|
1083
1081
|
] }) });
|
|
1084
|
-
},
|
|
1085
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey:
|
|
1086
|
-
cx:
|
|
1082
|
+
}, En = (e) => {
|
|
1083
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e, o = ({
|
|
1084
|
+
cx: i,
|
|
1087
1085
|
cy: n,
|
|
1088
1086
|
midAngle: d,
|
|
1089
1087
|
innerRadius: a,
|
|
1090
1088
|
outerRadius: u,
|
|
1091
1089
|
value: f
|
|
1092
1090
|
}) => {
|
|
1093
|
-
const _ = Math.PI / 180, h = 25 + a + (u - a), j =
|
|
1091
|
+
const _ = Math.PI / 180, h = 25 + a + (u - a), j = i + h * Math.cos(-(d ?? 0) * _), y = n + h * Math.sin(-(d ?? 0) * _);
|
|
1094
1092
|
return /* @__PURE__ */ c.jsx(
|
|
1095
1093
|
"text",
|
|
1096
1094
|
{
|
|
@@ -1104,19 +1102,19 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1104
1102
|
}
|
|
1105
1103
|
);
|
|
1106
1104
|
};
|
|
1107
|
-
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(
|
|
1108
|
-
/* @__PURE__ */ c.jsx(re, { tooltipKey:
|
|
1105
|
+
return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(St, { children: [
|
|
1106
|
+
/* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
|
|
1109
1107
|
/* @__PURE__ */ c.jsx(ne, {}),
|
|
1110
1108
|
/* @__PURE__ */ c.jsx(
|
|
1111
|
-
|
|
1109
|
+
At,
|
|
1112
1110
|
{
|
|
1113
1111
|
data: t,
|
|
1114
1112
|
dataKey: r[0],
|
|
1115
1113
|
nameKey: s,
|
|
1116
1114
|
label: o,
|
|
1117
1115
|
outerRadius: 120,
|
|
1118
|
-
children: t.map((
|
|
1119
|
-
|
|
1116
|
+
children: t.map((i, n) => /* @__PURE__ */ c.jsx(
|
|
1117
|
+
Ot,
|
|
1120
1118
|
{
|
|
1121
1119
|
fill: z[n % z.length]
|
|
1122
1120
|
},
|
|
@@ -1125,11 +1123,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1125
1123
|
}
|
|
1126
1124
|
)
|
|
1127
1125
|
] }) });
|
|
1128
|
-
},
|
|
1129
|
-
area:
|
|
1130
|
-
bar:
|
|
1131
|
-
line:
|
|
1132
|
-
pie:
|
|
1126
|
+
}, kn = {
|
|
1127
|
+
area: Cn,
|
|
1128
|
+
bar: Nn,
|
|
1129
|
+
line: vn,
|
|
1130
|
+
pie: En
|
|
1133
1131
|
}, z = [
|
|
1134
1132
|
"var(--color-primitive-palette-1-50)",
|
|
1135
1133
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1155,80 +1153,80 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1155
1153
|
tooltipBg: "#fff",
|
|
1156
1154
|
tooltipColor: "#000",
|
|
1157
1155
|
tooltipBorderRadius: "4px"
|
|
1158
|
-
},
|
|
1159
|
-
const { component: t, userFlow: s, hash: r, responseKey:
|
|
1156
|
+
}, qn = (e) => {
|
|
1157
|
+
const { component: t, userFlow: s, hash: r, responseKey: l, dataSource: o, ...i } = e, n = kn[i.type];
|
|
1160
1158
|
if (!n)
|
|
1161
1159
|
return /* @__PURE__ */ c.jsx("div", { children: "Not supported chart type" });
|
|
1162
|
-
const { fetchDataSource: d } = I(), [a, u] =
|
|
1160
|
+
const { fetchDataSource: d } = I(), [a, u] = q(!1), [f, _] = q([]), h = async () => {
|
|
1163
1161
|
var y, x;
|
|
1164
1162
|
try {
|
|
1165
1163
|
u(!0);
|
|
1166
|
-
const { jsonPathData: m, mapperData: g } = o, b =
|
|
1164
|
+
const { jsonPathData: m, mapperData: g } = o, b = pe(
|
|
1167
1165
|
o,
|
|
1168
1166
|
1
|
|
1169
1167
|
), N = await d(
|
|
1170
1168
|
b,
|
|
1171
1169
|
s,
|
|
1172
1170
|
!1
|
|
1173
|
-
), p = m ? (y =
|
|
1171
|
+
), p = m ? (y = ze(N == null ? void 0 : N.data, m, g)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
|
|
1174
1172
|
_(p), u(!1);
|
|
1175
1173
|
} catch (m) {
|
|
1176
1174
|
alert(JSON.stringify(m)), u(!1);
|
|
1177
1175
|
}
|
|
1178
1176
|
};
|
|
1179
|
-
|
|
1180
|
-
o ? h() : _(
|
|
1177
|
+
V(() => {
|
|
1178
|
+
o ? h() : _(i.data);
|
|
1181
1179
|
}, []);
|
|
1182
1180
|
const j = {
|
|
1183
|
-
...
|
|
1181
|
+
...i,
|
|
1184
1182
|
data: f
|
|
1185
1183
|
};
|
|
1186
|
-
return a ? /* @__PURE__ */ c.jsx(
|
|
1187
|
-
},
|
|
1188
|
-
header:
|
|
1189
|
-
header_content:
|
|
1190
|
-
},
|
|
1191
|
-
var
|
|
1192
|
-
const
|
|
1193
|
-
accordion: (n) => /* @__PURE__ */ c.jsx(
|
|
1194
|
-
aiChatPanel: (n) => /* @__PURE__ */ c.jsx(
|
|
1195
|
-
aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(
|
|
1196
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(
|
|
1197
|
-
breadcrumbs: (n) => /* @__PURE__ */ c.jsx(
|
|
1198
|
-
button: (n) => /* @__PURE__ */ c.jsx(
|
|
1199
|
-
cardNotification: (n) => /* @__PURE__ */ c.jsx(
|
|
1200
|
-
chart: (n) => /* @__PURE__ */ c.jsx(
|
|
1201
|
-
checkbox: (n) => /* @__PURE__ */ c.jsx(
|
|
1202
|
-
code: (n) => /* @__PURE__ */ c.jsx(
|
|
1203
|
-
divider: (n) => /* @__PURE__ */ c.jsx(
|
|
1204
|
-
drawer: (n) => /* @__PURE__ */ c.jsx(
|
|
1205
|
-
heading: (n) =>
|
|
1206
|
-
pill: (n) => /* @__PURE__ */ c.jsx(
|
|
1207
|
-
modal: (n) => /* @__PURE__ */ c.jsx(
|
|
1208
|
-
roundButton: (n) => /* @__PURE__ */ c.jsx(
|
|
1209
|
-
row: (n) => /* @__PURE__ */ c.jsx(
|
|
1210
|
-
select: (n) => /* @__PURE__ */ c.jsx(
|
|
1211
|
-
switch: (n) => /* @__PURE__ */ c.jsx(
|
|
1212
|
-
spacing: (n) => /* @__PURE__ */ c.jsx(
|
|
1213
|
-
table: (n) => /* @__PURE__ */ c.jsx(
|
|
1214
|
-
text: (n) =>
|
|
1215
|
-
textField: (n) => /* @__PURE__ */ c.jsx(
|
|
1216
|
-
toast: (n) => /* @__PURE__ */ c.jsx(
|
|
1184
|
+
return a ? /* @__PURE__ */ c.jsx(De, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
|
|
1185
|
+
}, Sn = "_header_g1eri_1", An = "_header_content_g1eri_5", Ae = {
|
|
1186
|
+
header: Sn,
|
|
1187
|
+
header_content: An
|
|
1188
|
+
}, On = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ae.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ae.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), A = (e, t, s, r) => {
|
|
1189
|
+
var i;
|
|
1190
|
+
const l = {
|
|
1191
|
+
accordion: (n) => /* @__PURE__ */ c.jsx(xr, { ...n, userFlow: e, pageId: t }),
|
|
1192
|
+
aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Ut, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
|
|
1193
|
+
aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Ht, { ...n, userFlow: e, pageId: t }),
|
|
1194
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(Qt, { ...n, userFlow: e, pageId: t }),
|
|
1195
|
+
breadcrumbs: (n) => /* @__PURE__ */ c.jsx(rn, { ...n, userFlow: e, pageId: t }),
|
|
1196
|
+
button: (n) => /* @__PURE__ */ c.jsx(sn, { ...n, userFlow: e, pageId: t }),
|
|
1197
|
+
cardNotification: (n) => /* @__PURE__ */ c.jsx(cn, { ...n }),
|
|
1198
|
+
chart: (n) => /* @__PURE__ */ c.jsx(qn, { ...n, userFlow: e }),
|
|
1199
|
+
checkbox: (n) => /* @__PURE__ */ c.jsx(ln, { ...n, userFlow: e, pageId: t }),
|
|
1200
|
+
code: (n) => /* @__PURE__ */ c.jsx(yn, { ...n, userFlow: e, pageId: t }),
|
|
1201
|
+
divider: (n) => /* @__PURE__ */ c.jsx(bn, { ...n }),
|
|
1202
|
+
drawer: (n) => /* @__PURE__ */ c.jsx(jr, { ...n, userFlow: e, pageId: t }),
|
|
1203
|
+
heading: (n) => Kt(n),
|
|
1204
|
+
pill: (n) => /* @__PURE__ */ c.jsx(Bn, { ...n }),
|
|
1205
|
+
modal: (n) => /* @__PURE__ */ c.jsx(Rn, { ...n, userFlow: e, pageId: t }),
|
|
1206
|
+
roundButton: (n) => /* @__PURE__ */ c.jsx(In, { ...n, userFlow: e, pageId: t }),
|
|
1207
|
+
row: (n) => /* @__PURE__ */ c.jsx(Kn, { ...n, userFlow: e, pageId: t }),
|
|
1208
|
+
select: (n) => /* @__PURE__ */ c.jsx(Xn, { ...n, userFlow: e, pageId: t }),
|
|
1209
|
+
switch: (n) => /* @__PURE__ */ c.jsx(sr, { ...n, userFlow: e, pageId: t }),
|
|
1210
|
+
spacing: (n) => /* @__PURE__ */ c.jsx(rr, { ...n, userFlow: e, pageId: t }),
|
|
1211
|
+
table: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t }),
|
|
1212
|
+
text: (n) => Gt(n),
|
|
1213
|
+
textField: (n) => /* @__PURE__ */ c.jsx(hr, { ...n, userFlow: e, pageId: t }),
|
|
1214
|
+
toast: (n) => /* @__PURE__ */ c.jsx(fr, { ...n, userFlow: e, pageId: t })
|
|
1217
1215
|
};
|
|
1218
|
-
return (
|
|
1219
|
-
const d =
|
|
1216
|
+
return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
|
|
1217
|
+
const d = l[n.component];
|
|
1220
1218
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
1221
1219
|
});
|
|
1222
|
-
},
|
|
1223
|
-
modalContent:
|
|
1224
|
-
},
|
|
1220
|
+
}, Tn = "_modalContent_p06ci_1", $n = {
|
|
1221
|
+
modalContent: Tn
|
|
1222
|
+
}, Rn = ({
|
|
1225
1223
|
userFlow: e,
|
|
1226
1224
|
pageId: t,
|
|
1227
1225
|
responseKey: s,
|
|
1228
1226
|
header: r,
|
|
1229
|
-
body:
|
|
1227
|
+
body: l,
|
|
1230
1228
|
footer: o,
|
|
1231
|
-
headerStatusColor:
|
|
1229
|
+
headerStatusColor: i,
|
|
1232
1230
|
...n
|
|
1233
1231
|
}) => {
|
|
1234
1232
|
const d = v((m) => {
|
|
@@ -1239,40 +1237,40 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1239
1237
|
return (g = m[e]) == null ? void 0 : g.isLoading;
|
|
1240
1238
|
}), u = d && !a, f = {
|
|
1241
1239
|
...n
|
|
1242
|
-
}, _ = (f == null ? void 0 : f.headerStatusColor) ??
|
|
1243
|
-
|
|
1244
|
-
}, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t,
|
|
1240
|
+
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? i, h = D(() => {
|
|
1241
|
+
xe(e), ge(e, !1);
|
|
1242
|
+
}, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, l), x = A(e, t, o);
|
|
1245
1243
|
return /* @__PURE__ */ c.jsx(
|
|
1246
|
-
|
|
1244
|
+
tt,
|
|
1247
1245
|
{
|
|
1248
1246
|
...f,
|
|
1249
1247
|
headerStatusColor: _,
|
|
1250
1248
|
header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-header-${g}`)) }),
|
|
1251
|
-
children: /* @__PURE__ */ c.jsx("section", { className:
|
|
1249
|
+
children: /* @__PURE__ */ c.jsx("section", { className: $n.modalContent, children: y.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-body-${g}`)) }),
|
|
1252
1250
|
actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: x.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-footer-${g}`)) }),
|
|
1253
1251
|
open: u,
|
|
1254
1252
|
onClose: h
|
|
1255
1253
|
}
|
|
1256
1254
|
);
|
|
1257
|
-
},
|
|
1258
|
-
var o,
|
|
1259
|
-
const s =
|
|
1255
|
+
}, Dn = ({ userFlow: e, pageId: t }) => {
|
|
1256
|
+
var o, i;
|
|
1257
|
+
const s = Rt(e);
|
|
1260
1258
|
if (!s)
|
|
1261
1259
|
return null;
|
|
1262
1260
|
const r = [
|
|
1263
1261
|
...(s == null ? void 0 : s.components) || [],
|
|
1264
1262
|
...((o = s == null ? void 0 : s.header) == null ? void 0 : o.components) || [],
|
|
1265
|
-
...((
|
|
1266
|
-
],
|
|
1263
|
+
...((i = s == null ? void 0 : s.body) == null ? void 0 : i.components) || []
|
|
1264
|
+
], l = A(
|
|
1267
1265
|
e,
|
|
1268
1266
|
t,
|
|
1269
1267
|
r
|
|
1270
1268
|
);
|
|
1271
|
-
return /* @__PURE__ */ c.jsx(c.Fragment, { children:
|
|
1269
|
+
return /* @__PURE__ */ c.jsx(c.Fragment, { children: l == null ? void 0 : l.map((n, d) => {
|
|
1272
1270
|
const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
1273
1271
|
return /* @__PURE__ */ c.jsx($, { children: n }, a);
|
|
1274
1272
|
}) });
|
|
1275
|
-
},
|
|
1273
|
+
}, Ln = {
|
|
1276
1274
|
success: {
|
|
1277
1275
|
color: "success-opacity",
|
|
1278
1276
|
textColor: "success-60",
|
|
@@ -1298,28 +1296,28 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1298
1296
|
textColor: "neutral-70",
|
|
1299
1297
|
iconColor: "neutral-70"
|
|
1300
1298
|
}
|
|
1301
|
-
},
|
|
1302
|
-
const { content: t, variant: s = "neutral", ...r } = e,
|
|
1299
|
+
}, Bn = (e) => {
|
|
1300
|
+
const { content: t, variant: s = "neutral", ...r } = e, l = Ln[s], o = {
|
|
1303
1301
|
...r,
|
|
1304
1302
|
children: t,
|
|
1305
|
-
color: (r == null ? void 0 : r.color) ??
|
|
1306
|
-
textColor: (r == null ? void 0 : r.textColor) ??
|
|
1307
|
-
iconColor: (r == null ? void 0 : r.iconColor) ??
|
|
1303
|
+
color: (r == null ? void 0 : r.color) ?? l.color,
|
|
1304
|
+
textColor: (r == null ? void 0 : r.textColor) ?? l.textColor,
|
|
1305
|
+
iconColor: (r == null ? void 0 : r.iconColor) ?? l.iconColor
|
|
1308
1306
|
};
|
|
1309
|
-
return /* @__PURE__ */ c.jsx(
|
|
1310
|
-
},
|
|
1307
|
+
return /* @__PURE__ */ c.jsx(ue, { ...o });
|
|
1308
|
+
}, In = (e) => {
|
|
1311
1309
|
const {
|
|
1312
1310
|
userFlow: t,
|
|
1313
1311
|
pageId: s,
|
|
1314
1312
|
responseKey: r,
|
|
1315
|
-
actionType:
|
|
1313
|
+
actionType: l,
|
|
1316
1314
|
dataSource: o,
|
|
1317
|
-
dependencies:
|
|
1315
|
+
dependencies: i,
|
|
1318
1316
|
onClick: n,
|
|
1319
1317
|
...d
|
|
1320
1318
|
} = e, { getNextUI: a, fetchAndGetNextUI: u } = I(), { disabled: f } = M(
|
|
1321
1319
|
t,
|
|
1322
|
-
|
|
1320
|
+
i
|
|
1323
1321
|
), _ = {
|
|
1324
1322
|
...d
|
|
1325
1323
|
}, h = (_ == null ? void 0 : _.disabled) ?? f, j = D(async () => {
|
|
@@ -1329,7 +1327,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1329
1327
|
...(y = v.getState()[t]) == null ? void 0 : y.entries,
|
|
1330
1328
|
[r]: { status: 200 }
|
|
1331
1329
|
};
|
|
1332
|
-
switch (L(t, x),
|
|
1330
|
+
switch (L(t, x), l) {
|
|
1333
1331
|
case "GO_TO_NEXT_UI": {
|
|
1334
1332
|
const m = await a(
|
|
1335
1333
|
t,
|
|
@@ -1337,7 +1335,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1337
1335
|
x,
|
|
1338
1336
|
r
|
|
1339
1337
|
);
|
|
1340
|
-
m != null && m.data &&
|
|
1338
|
+
m != null && m.data && S(t, m == null ? void 0 : m.data);
|
|
1341
1339
|
break;
|
|
1342
1340
|
}
|
|
1343
1341
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1348,11 +1346,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1348
1346
|
r,
|
|
1349
1347
|
o
|
|
1350
1348
|
);
|
|
1351
|
-
m != null && m.data &&
|
|
1349
|
+
m != null && m.data && S(t, m == null ? void 0 : m.data);
|
|
1352
1350
|
break;
|
|
1353
1351
|
}
|
|
1354
1352
|
case "CLOSE_MODAL":
|
|
1355
|
-
|
|
1353
|
+
ge(t, !1);
|
|
1356
1354
|
break;
|
|
1357
1355
|
case "CLOSE_DRAWER":
|
|
1358
1356
|
Z(t, !1);
|
|
@@ -1361,23 +1359,23 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1361
1359
|
Z(t, !0);
|
|
1362
1360
|
break;
|
|
1363
1361
|
default:
|
|
1364
|
-
console.warn(`Unhandled actionType: ${
|
|
1362
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
1365
1363
|
break;
|
|
1366
1364
|
}
|
|
1367
1365
|
} catch (x) {
|
|
1368
1366
|
alert(JSON.stringify(x));
|
|
1369
1367
|
}
|
|
1370
|
-
}, [
|
|
1368
|
+
}, [l, o, s, r, t]);
|
|
1371
1369
|
return /* @__PURE__ */ c.jsx(
|
|
1372
|
-
|
|
1370
|
+
nt,
|
|
1373
1371
|
{
|
|
1374
1372
|
..._,
|
|
1375
1373
|
disabled: h,
|
|
1376
1374
|
onClick: () => !h && (n ?? j)()
|
|
1377
1375
|
}
|
|
1378
1376
|
);
|
|
1379
|
-
},
|
|
1380
|
-
row:
|
|
1377
|
+
}, zn = "_row_1bqj4_1", Mn = "_row_column_1bqj4_65", U = {
|
|
1378
|
+
row: zn,
|
|
1381
1379
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
1382
1380
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
1383
1381
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -1398,7 +1396,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1398
1396
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
1399
1397
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
1400
1398
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
1401
|
-
row_column:
|
|
1399
|
+
row_column: Mn,
|
|
1402
1400
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
1403
1401
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
1404
1402
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -1419,16 +1417,16 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1419
1417
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
1420
1418
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
1421
1419
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
1422
|
-
},
|
|
1420
|
+
}, Kn = (e) => {
|
|
1423
1421
|
const {
|
|
1424
1422
|
userFlow: t,
|
|
1425
1423
|
pageId: s,
|
|
1426
1424
|
columnWidth: r,
|
|
1427
|
-
columns:
|
|
1425
|
+
columns: l,
|
|
1428
1426
|
gap: o = "md",
|
|
1429
|
-
justifyContent:
|
|
1427
|
+
justifyContent: i = "start",
|
|
1430
1428
|
alignItems: n = "stretch"
|
|
1431
|
-
} = e, d = Array.isArray(
|
|
1429
|
+
} = e, d = Array.isArray(l) ? l.map((a, u) => {
|
|
1432
1430
|
const f = `col_${u}`, _ = `col_${u}`;
|
|
1433
1431
|
if (Array.isArray(a))
|
|
1434
1432
|
return {
|
|
@@ -1455,7 +1453,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1455
1453
|
className: ee(
|
|
1456
1454
|
U.row,
|
|
1457
1455
|
U[`row__gap-${o}`],
|
|
1458
|
-
U[`row__justify-${
|
|
1456
|
+
U[`row__justify-${i}`],
|
|
1459
1457
|
U[`row__align-${n}`]
|
|
1460
1458
|
),
|
|
1461
1459
|
children: d == null ? void 0 : d.map((a, u) => {
|
|
@@ -1478,17 +1476,17 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
|
|
|
1478
1476
|
}
|
|
1479
1477
|
);
|
|
1480
1478
|
};
|
|
1481
|
-
function
|
|
1479
|
+
function Me({
|
|
1482
1480
|
userFlow: e,
|
|
1483
1481
|
pageId: t,
|
|
1484
1482
|
responseKey: s,
|
|
1485
1483
|
actionType: r,
|
|
1486
|
-
getNextUI:
|
|
1484
|
+
getNextUI: l,
|
|
1487
1485
|
isMulti: o = !1,
|
|
1488
|
-
debounceMs:
|
|
1486
|
+
debounceMs: i
|
|
1489
1487
|
}) {
|
|
1490
|
-
const n =
|
|
1491
|
-
|
|
1488
|
+
const n = Xe(null);
|
|
1489
|
+
V(() => () => {
|
|
1492
1490
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
1493
1491
|
}, []);
|
|
1494
1492
|
const d = D(
|
|
@@ -1500,19 +1498,19 @@ function Ie({
|
|
|
1500
1498
|
};
|
|
1501
1499
|
if (L(e, f), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
1502
1500
|
try {
|
|
1503
|
-
const y = await
|
|
1501
|
+
const y = await l(
|
|
1504
1502
|
e,
|
|
1505
1503
|
t,
|
|
1506
1504
|
f,
|
|
1507
1505
|
s,
|
|
1508
1506
|
r === "GO_TO_NEXT_UI"
|
|
1509
1507
|
);
|
|
1510
|
-
y != null && y.data &&
|
|
1508
|
+
y != null && y.data && S(e, y.data);
|
|
1511
1509
|
} catch (j) {
|
|
1512
1510
|
console.error("[useSelectChange] Failed to fetch next UI", j);
|
|
1513
1511
|
}
|
|
1514
1512
|
},
|
|
1515
|
-
[e, t, s, r,
|
|
1513
|
+
[e, t, s, r, l]
|
|
1516
1514
|
);
|
|
1517
1515
|
return D(
|
|
1518
1516
|
(u) => {
|
|
@@ -1520,65 +1518,65 @@ function Ie({
|
|
|
1520
1518
|
d(u);
|
|
1521
1519
|
return;
|
|
1522
1520
|
}
|
|
1523
|
-
if (
|
|
1521
|
+
if (i == null) {
|
|
1524
1522
|
d(u);
|
|
1525
1523
|
return;
|
|
1526
1524
|
}
|
|
1527
1525
|
n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
|
|
1528
1526
|
d(u), n.current = null;
|
|
1529
|
-
},
|
|
1527
|
+
}, i);
|
|
1530
1528
|
},
|
|
1531
|
-
[o,
|
|
1529
|
+
[o, i, d]
|
|
1532
1530
|
);
|
|
1533
1531
|
}
|
|
1534
|
-
const
|
|
1535
|
-
const
|
|
1536
|
-
return (
|
|
1532
|
+
const Gn = (e, t, s, r) => {
|
|
1533
|
+
const l = B.query(e, t);
|
|
1534
|
+
return (l == null ? void 0 : l.map((o) => {
|
|
1537
1535
|
var d, a;
|
|
1538
|
-
const
|
|
1539
|
-
return { label:
|
|
1536
|
+
const i = (d = B.query(o, s)) == null ? void 0 : d[0], n = r ? (a = B.query(o, r)) == null ? void 0 : a[0] : o;
|
|
1537
|
+
return { label: i, value: n };
|
|
1540
1538
|
})) ?? [];
|
|
1541
|
-
},
|
|
1539
|
+
}, Un = (e, t, s, r = 10) => {
|
|
1542
1540
|
var n, d;
|
|
1543
|
-
let
|
|
1541
|
+
let l, o;
|
|
1544
1542
|
if (s) {
|
|
1545
1543
|
const a = B.value(e, s.size ?? "$.meta.size") ?? r, u = B.value(e, s.total ?? "$.meta.total") ?? 0;
|
|
1546
|
-
|
|
1544
|
+
l = a, o = u;
|
|
1547
1545
|
} else {
|
|
1548
1546
|
const a = e == null ? void 0 : e.meta;
|
|
1549
|
-
|
|
1547
|
+
l = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, o = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
|
|
1550
1548
|
}
|
|
1551
|
-
const
|
|
1549
|
+
const i = o > 0 ? Math.ceil(o / l) > t : !1;
|
|
1552
1550
|
return {
|
|
1553
|
-
pageSize:
|
|
1551
|
+
pageSize: l,
|
|
1554
1552
|
total: o,
|
|
1555
|
-
hasMore:
|
|
1553
|
+
hasMore: i
|
|
1556
1554
|
};
|
|
1557
|
-
},
|
|
1558
|
-
selectNotFront:
|
|
1559
|
-
},
|
|
1555
|
+
}, Jn = "_selectNotFront_1yw9q_1", Ke = {
|
|
1556
|
+
selectNotFront: Jn
|
|
1557
|
+
}, Vn = ({
|
|
1560
1558
|
userFlow: e,
|
|
1561
1559
|
pageId: t,
|
|
1562
1560
|
responseKey: s,
|
|
1563
1561
|
required: r,
|
|
1564
|
-
dataSource:
|
|
1562
|
+
dataSource: l,
|
|
1565
1563
|
actionType: o,
|
|
1566
|
-
dependencies:
|
|
1564
|
+
dependencies: i,
|
|
1567
1565
|
debounceMs: n,
|
|
1568
1566
|
...d
|
|
1569
1567
|
}) => {
|
|
1570
1568
|
const a = {
|
|
1571
1569
|
...d
|
|
1572
|
-
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] =
|
|
1570
|
+
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = q((a == null ? void 0 : a.value) ?? ""), { disabled: j } = M(
|
|
1573
1571
|
e,
|
|
1574
|
-
|
|
1572
|
+
i
|
|
1575
1573
|
), y = (a == null ? void 0 : a.disabled) ?? j, x = O(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), m = O(() => {
|
|
1576
1574
|
const p = a != null && a.isMulti ? _ : [_], C = {};
|
|
1577
1575
|
return typeof p == "object" && "length" in p && (p == null || p.forEach((w) => {
|
|
1578
1576
|
const E = JSON.stringify(w.value), T = JSON.stringify(w.label);
|
|
1579
1577
|
C[E] = w, T in C || (C[T] = w);
|
|
1580
1578
|
})), C;
|
|
1581
|
-
}, [_]), g =
|
|
1579
|
+
}, [_]), g = Me({
|
|
1582
1580
|
userFlow: e,
|
|
1583
1581
|
pageId: t,
|
|
1584
1582
|
responseKey: s,
|
|
@@ -1594,37 +1592,37 @@ const In = (e, t, s, r) => {
|
|
|
1594
1592
|
jsonPathOptions: T,
|
|
1595
1593
|
jsonPathValue: k,
|
|
1596
1594
|
jsonPathPagination: K
|
|
1597
|
-
} =
|
|
1598
|
-
|
|
1595
|
+
} = l, G = pe(
|
|
1596
|
+
l,
|
|
1599
1597
|
w,
|
|
1600
1598
|
p
|
|
1601
1599
|
), se = await f(
|
|
1602
1600
|
G,
|
|
1603
1601
|
e,
|
|
1604
1602
|
!1
|
|
1605
|
-
), ae = se == null ? void 0 : se.data,
|
|
1603
|
+
), ae = se == null ? void 0 : se.data, Ue = ae ? Gn(
|
|
1606
1604
|
ae,
|
|
1607
1605
|
T,
|
|
1608
1606
|
E,
|
|
1609
1607
|
k
|
|
1610
|
-
) : [], { hasMore:
|
|
1608
|
+
) : [], { hasMore: Je } = Un(
|
|
1611
1609
|
ae,
|
|
1612
1610
|
w,
|
|
1613
1611
|
K
|
|
1614
1612
|
);
|
|
1615
1613
|
return {
|
|
1616
|
-
options:
|
|
1617
|
-
hasMore:
|
|
1614
|
+
options: Ue,
|
|
1615
|
+
hasMore: Je,
|
|
1618
1616
|
additional: {
|
|
1619
1617
|
page: p ? 1 : w + 1
|
|
1620
1618
|
}
|
|
1621
1619
|
};
|
|
1622
1620
|
};
|
|
1623
1621
|
return /* @__PURE__ */ c.jsx(
|
|
1624
|
-
|
|
1622
|
+
rt,
|
|
1625
1623
|
{
|
|
1626
1624
|
...a,
|
|
1627
|
-
className:
|
|
1625
|
+
className: Ke.selectNotFront,
|
|
1628
1626
|
label: x,
|
|
1629
1627
|
value: _,
|
|
1630
1628
|
disabled: y,
|
|
@@ -1639,23 +1637,23 @@ const In = (e, t, s, r) => {
|
|
|
1639
1637
|
debounceTimeout: 350
|
|
1640
1638
|
}
|
|
1641
1639
|
);
|
|
1642
|
-
},
|
|
1640
|
+
}, Hn = ({
|
|
1643
1641
|
userFlow: e,
|
|
1644
1642
|
pageId: t,
|
|
1645
1643
|
responseKey: s,
|
|
1646
1644
|
dataSource: r,
|
|
1647
|
-
required:
|
|
1645
|
+
required: l,
|
|
1648
1646
|
actionType: o,
|
|
1649
|
-
dependencies:
|
|
1647
|
+
dependencies: i,
|
|
1650
1648
|
debounceMs: n,
|
|
1651
1649
|
...d
|
|
1652
1650
|
}) => {
|
|
1653
1651
|
const a = {
|
|
1654
1652
|
...d
|
|
1655
|
-
}, { getNextUI: u } = I(), [f, _] =
|
|
1653
|
+
}, { getNextUI: u } = I(), [f, _] = q(a.value || ""), { disabled: h } = M(
|
|
1656
1654
|
e,
|
|
1657
|
-
|
|
1658
|
-
), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() =>
|
|
1655
|
+
i
|
|
1656
|
+
), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), x = Me({
|
|
1659
1657
|
userFlow: e,
|
|
1660
1658
|
pageId: t,
|
|
1661
1659
|
responseKey: s,
|
|
@@ -1667,46 +1665,46 @@ const In = (e, t, s, r) => {
|
|
|
1667
1665
|
_(g), x(g);
|
|
1668
1666
|
};
|
|
1669
1667
|
return /* @__PURE__ */ c.jsx(
|
|
1670
|
-
|
|
1668
|
+
st,
|
|
1671
1669
|
{
|
|
1672
1670
|
...a,
|
|
1673
|
-
className:
|
|
1671
|
+
className: Ke.selectNotFront,
|
|
1674
1672
|
label: y,
|
|
1675
1673
|
value: f,
|
|
1676
1674
|
disabled: j,
|
|
1677
1675
|
onChange: (g) => !j && m(g)
|
|
1678
1676
|
}
|
|
1679
1677
|
);
|
|
1680
|
-
},
|
|
1678
|
+
}, Xn = (e) => {
|
|
1681
1679
|
const { dataSource: t } = e;
|
|
1682
|
-
return t ? /* @__PURE__ */ c.jsx(
|
|
1683
|
-
},
|
|
1684
|
-
spacing:
|
|
1685
|
-
spacing__xxs:
|
|
1686
|
-
spacing__xs:
|
|
1687
|
-
spacing__sm:
|
|
1688
|
-
spacing__md:
|
|
1689
|
-
spacing__lg:
|
|
1690
|
-
spacing__xl:
|
|
1691
|
-
spacing__xxl:
|
|
1692
|
-
spacing__xxxl:
|
|
1693
|
-
},
|
|
1694
|
-
const { size: t } = e, s = ee(
|
|
1680
|
+
return t ? /* @__PURE__ */ c.jsx(Vn, { ...e }) : /* @__PURE__ */ c.jsx(Hn, { ...e });
|
|
1681
|
+
}, Wn = "_spacing_19hqa_1", Qn = "_spacing__xxs_19hqa_1", Yn = "_spacing__xs_19hqa_4", Zn = "_spacing__sm_19hqa_7", Fn = "_spacing__md_19hqa_10", Pn = "_spacing__lg_19hqa_13", er = "_spacing__xl_19hqa_16", tr = "_spacing__xxl_19hqa_19", nr = "_spacing__xxxl_19hqa_22", Oe = {
|
|
1682
|
+
spacing: Wn,
|
|
1683
|
+
spacing__xxs: Qn,
|
|
1684
|
+
spacing__xs: Yn,
|
|
1685
|
+
spacing__sm: Zn,
|
|
1686
|
+
spacing__md: Fn,
|
|
1687
|
+
spacing__lg: Pn,
|
|
1688
|
+
spacing__xl: er,
|
|
1689
|
+
spacing__xxl: tr,
|
|
1690
|
+
spacing__xxxl: nr
|
|
1691
|
+
}, rr = (e) => {
|
|
1692
|
+
const { size: t } = e, s = ee(Oe.spacing, Oe[`spacing__${t}`]);
|
|
1695
1693
|
return /* @__PURE__ */ c.jsx("div", { className: s });
|
|
1696
|
-
},
|
|
1694
|
+
}, sr = (e) => {
|
|
1697
1695
|
const {
|
|
1698
1696
|
userFlow: t,
|
|
1699
1697
|
pageId: s,
|
|
1700
1698
|
responseKey: r,
|
|
1701
|
-
actionType:
|
|
1699
|
+
actionType: l,
|
|
1702
1700
|
label: o,
|
|
1703
|
-
value:
|
|
1701
|
+
value: i,
|
|
1704
1702
|
required: n,
|
|
1705
1703
|
dependencies: d,
|
|
1706
1704
|
...a
|
|
1707
1705
|
} = e, u = {
|
|
1708
1706
|
...a
|
|
1709
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
1707
|
+
}, { getNextUI: f } = I(), [_, h] = q(i || !1), { disabled: j } = M(
|
|
1710
1708
|
t,
|
|
1711
1709
|
d
|
|
1712
1710
|
), y = (u == null ? void 0 : u.disabled) ?? j, x = O(() => n && o ? `${o} *` : o ?? "", [o, n]), m = D(async () => {
|
|
@@ -1718,7 +1716,7 @@ const In = (e, t, s, r) => {
|
|
|
1718
1716
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
1719
1717
|
[r]: b
|
|
1720
1718
|
};
|
|
1721
|
-
switch (L(t, N),
|
|
1719
|
+
switch (L(t, N), l) {
|
|
1722
1720
|
case "GO_TO_NEXT_UI":
|
|
1723
1721
|
const p = await f(
|
|
1724
1722
|
t,
|
|
@@ -1726,18 +1724,18 @@ const In = (e, t, s, r) => {
|
|
|
1726
1724
|
N,
|
|
1727
1725
|
r
|
|
1728
1726
|
);
|
|
1729
|
-
p != null && p.data &&
|
|
1727
|
+
p != null && p.data && S(t, p == null ? void 0 : p.data);
|
|
1730
1728
|
break;
|
|
1731
1729
|
default:
|
|
1732
|
-
console.warn(`Unhandled actionType: ${
|
|
1730
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
1733
1731
|
break;
|
|
1734
1732
|
}
|
|
1735
1733
|
} catch (b) {
|
|
1736
1734
|
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
1737
1735
|
}
|
|
1738
|
-
}, [t, s, r,
|
|
1736
|
+
}, [t, s, r, l, _]);
|
|
1739
1737
|
return /* @__PURE__ */ c.jsx(
|
|
1740
|
-
|
|
1738
|
+
at,
|
|
1741
1739
|
{
|
|
1742
1740
|
...u,
|
|
1743
1741
|
label: x,
|
|
@@ -1746,30 +1744,29 @@ const In = (e, t, s, r) => {
|
|
|
1746
1744
|
onChange: () => !y && m()
|
|
1747
1745
|
}
|
|
1748
1746
|
);
|
|
1749
|
-
},
|
|
1750
|
-
tableSkeleton:
|
|
1751
|
-
tableArrayPills:
|
|
1752
|
-
},
|
|
1747
|
+
}, ar = "_tableSkeleton_3nr9n_1", or = "_tableArrayPills_3nr9n_7", Ge = {
|
|
1748
|
+
tableSkeleton: ar,
|
|
1749
|
+
tableArrayPills: or
|
|
1750
|
+
}, cr = ({ values: e }) => {
|
|
1753
1751
|
const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
|
|
1754
|
-
return /* @__PURE__ */ c.jsxs("div", { className:
|
|
1755
|
-
s.map((
|
|
1756
|
-
r > 0 && /* @__PURE__ */ c.jsxs(
|
|
1752
|
+
return /* @__PURE__ */ c.jsxs("div", { className: Ge.tableArrayPills, children: [
|
|
1753
|
+
s.map((l, o) => /* @__PURE__ */ c.jsx(ue, { children: String(l) }, o)),
|
|
1754
|
+
r > 0 && /* @__PURE__ */ c.jsxs(ue, { outlined: !0, children: [
|
|
1757
1755
|
"+",
|
|
1758
1756
|
r
|
|
1759
1757
|
] })
|
|
1760
1758
|
] });
|
|
1761
|
-
},
|
|
1759
|
+
}, ir = ({
|
|
1762
1760
|
userFlow: e,
|
|
1763
1761
|
pageId: t,
|
|
1764
1762
|
tableResponseKey: s,
|
|
1765
1763
|
component: r,
|
|
1766
|
-
rowData:
|
|
1764
|
+
rowData: l
|
|
1767
1765
|
}) => {
|
|
1768
|
-
const { getNextUI: o, fetchAndGetNextUI:
|
|
1766
|
+
const { getNextUI: o, fetchAndGetNextUI: i, fetchDataSource: n } = I(), d = A(e, t, [
|
|
1769
1767
|
{ ...r }
|
|
1770
1768
|
]), a = (d == null ? void 0 : d[0]) || null;
|
|
1771
|
-
if (!a)
|
|
1772
|
-
return null;
|
|
1769
|
+
if (!a) return null;
|
|
1773
1770
|
const {
|
|
1774
1771
|
actionType: u,
|
|
1775
1772
|
responseKey: f,
|
|
@@ -1780,7 +1777,7 @@ const In = (e, t, s, r) => {
|
|
|
1780
1777
|
const m = {
|
|
1781
1778
|
...(j = v.getState()[e]) == null ? void 0 : j.entries,
|
|
1782
1779
|
[f]: { status: 200 },
|
|
1783
|
-
[s]: [{ ...
|
|
1780
|
+
[s]: [{ ...l }]
|
|
1784
1781
|
};
|
|
1785
1782
|
switch (L(e, m), u) {
|
|
1786
1783
|
case "GO_TO_NEXT_UI": {
|
|
@@ -1790,18 +1787,18 @@ const In = (e, t, s, r) => {
|
|
|
1790
1787
|
m,
|
|
1791
1788
|
f
|
|
1792
1789
|
);
|
|
1793
|
-
g != null && g.data &&
|
|
1790
|
+
g != null && g.data && S(e, g == null ? void 0 : g.data);
|
|
1794
1791
|
break;
|
|
1795
1792
|
}
|
|
1796
1793
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1797
|
-
const g = await
|
|
1794
|
+
const g = await i(
|
|
1798
1795
|
e,
|
|
1799
1796
|
t,
|
|
1800
1797
|
m,
|
|
1801
1798
|
f,
|
|
1802
1799
|
_
|
|
1803
1800
|
);
|
|
1804
|
-
g != null && g.data &&
|
|
1801
|
+
g != null && g.data && S(e, g == null ? void 0 : g.data);
|
|
1805
1802
|
break;
|
|
1806
1803
|
}
|
|
1807
1804
|
case "GET_DATA_SOURCE": {
|
|
@@ -1811,8 +1808,7 @@ const In = (e, t, s, r) => {
|
|
|
1811
1808
|
m,
|
|
1812
1809
|
f
|
|
1813
1810
|
), b = (y = g == null ? void 0 : g.data) == null ? void 0 : y.content;
|
|
1814
|
-
if ((b == null ? void 0 : b.type) !== "fetch")
|
|
1815
|
-
break;
|
|
1811
|
+
if ((b == null ? void 0 : b.type) !== "fetch") break;
|
|
1816
1812
|
const N = b == null ? void 0 : b.dataSource, p = await n(
|
|
1817
1813
|
N,
|
|
1818
1814
|
e,
|
|
@@ -1832,7 +1828,7 @@ const In = (e, t, s, r) => {
|
|
|
1832
1828
|
C,
|
|
1833
1829
|
f
|
|
1834
1830
|
);
|
|
1835
|
-
w != null && w.data &&
|
|
1831
|
+
w != null && w.data && S(e, w == null ? void 0 : w.data);
|
|
1836
1832
|
break;
|
|
1837
1833
|
}
|
|
1838
1834
|
default:
|
|
@@ -1843,32 +1839,32 @@ const In = (e, t, s, r) => {
|
|
|
1843
1839
|
alert(JSON.stringify(m));
|
|
1844
1840
|
}
|
|
1845
1841
|
}, [u, _, t, f, e]);
|
|
1846
|
-
return
|
|
1842
|
+
return We(a, {
|
|
1847
1843
|
onClick: h
|
|
1848
1844
|
});
|
|
1849
|
-
},
|
|
1850
|
-
|
|
1845
|
+
}, lr = () => /* @__PURE__ */ c.jsx("div", { className: Ge.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ c.jsx(
|
|
1846
|
+
De,
|
|
1851
1847
|
{
|
|
1852
1848
|
maxWidth: "100%",
|
|
1853
1849
|
height: 42,
|
|
1854
1850
|
radius: 8
|
|
1855
1851
|
},
|
|
1856
1852
|
`tableSkeletonBase${t}`
|
|
1857
|
-
)) }),
|
|
1853
|
+
)) }), dr = ({
|
|
1858
1854
|
userFlow: e,
|
|
1859
1855
|
pageId: t,
|
|
1860
1856
|
responseKey: s,
|
|
1861
1857
|
component: r,
|
|
1862
|
-
dataSource:
|
|
1858
|
+
dataSource: l,
|
|
1863
1859
|
rightActions: o,
|
|
1864
|
-
...
|
|
1860
|
+
...i
|
|
1865
1861
|
}) => {
|
|
1866
1862
|
var b, N, p;
|
|
1867
|
-
const { fetchDataSource: n } = I(), [d, a] =
|
|
1863
|
+
const { fetchDataSource: n } = I(), [d, a] = q(!1), [u, f] = q(1), [_, h] = q(null), j = O(() => {
|
|
1868
1864
|
if (o != null && o.length)
|
|
1869
1865
|
return o.map((C, w) => ({
|
|
1870
1866
|
renderContent: (E) => /* @__PURE__ */ c.jsx(
|
|
1871
|
-
|
|
1867
|
+
ir,
|
|
1872
1868
|
{
|
|
1873
1869
|
userFlow: e,
|
|
1874
1870
|
pageId: t,
|
|
@@ -1882,8 +1878,8 @@ const In = (e, t, s, r) => {
|
|
|
1882
1878
|
}, [o, e, t]), y = async (C = 1) => {
|
|
1883
1879
|
try {
|
|
1884
1880
|
a(!0);
|
|
1885
|
-
const { jsonPathData: w, mapperData: E, jsonPathPagination: T } =
|
|
1886
|
-
|
|
1881
|
+
const { jsonPathData: w, mapperData: E, jsonPathPagination: T } = l, k = pe(
|
|
1882
|
+
l,
|
|
1887
1883
|
C
|
|
1888
1884
|
), K = await n(
|
|
1889
1885
|
k,
|
|
@@ -1891,7 +1887,7 @@ const In = (e, t, s, r) => {
|
|
|
1891
1887
|
!1
|
|
1892
1888
|
);
|
|
1893
1889
|
h(
|
|
1894
|
-
|
|
1890
|
+
ze(
|
|
1895
1891
|
K == null ? void 0 : K.data,
|
|
1896
1892
|
w,
|
|
1897
1893
|
E,
|
|
@@ -1904,10 +1900,10 @@ const In = (e, t, s, r) => {
|
|
|
1904
1900
|
}, x = (C) => {
|
|
1905
1901
|
f(C), y(C);
|
|
1906
1902
|
};
|
|
1907
|
-
|
|
1903
|
+
V(() => {
|
|
1908
1904
|
y();
|
|
1909
1905
|
}, []);
|
|
1910
|
-
const m = O(() => !(_ != null && _.items) || !(
|
|
1906
|
+
const m = O(() => !(_ != null && _.items) || !(i != null && i.columns) ? i == null ? void 0 : i.columns : i.columns.map((C) => {
|
|
1911
1907
|
var E;
|
|
1912
1908
|
return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
|
|
1913
1909
|
(T) => Array.isArray(C != null && C.accessor ? T[C == null ? void 0 : C.accessor] : void 0)
|
|
@@ -1915,19 +1911,19 @@ const In = (e, t, s, r) => {
|
|
|
1915
1911
|
...C,
|
|
1916
1912
|
renderCell: (T) => {
|
|
1917
1913
|
const k = C.accessor ? T[C.accessor] : void 0;
|
|
1918
|
-
return Array.isArray(k) ? /* @__PURE__ */ c.jsx(
|
|
1914
|
+
return Array.isArray(k) ? /* @__PURE__ */ c.jsx(cr, { values: k }) : k;
|
|
1919
1915
|
}
|
|
1920
1916
|
} : C;
|
|
1921
|
-
}), [_ == null ? void 0 : _.items,
|
|
1922
|
-
...
|
|
1917
|
+
}), [_ == null ? void 0 : _.items, i == null ? void 0 : i.columns]), g = {
|
|
1918
|
+
...i,
|
|
1923
1919
|
data: _ == null ? void 0 : _.items,
|
|
1924
1920
|
columns: m,
|
|
1925
1921
|
rightActions: j
|
|
1926
1922
|
};
|
|
1927
|
-
return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(
|
|
1928
|
-
/* @__PURE__ */ c.jsx(
|
|
1923
|
+
return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(lr, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
1924
|
+
/* @__PURE__ */ c.jsx(ot, { ...g }),
|
|
1929
1925
|
(_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ c.jsx(
|
|
1930
|
-
|
|
1926
|
+
ct,
|
|
1931
1927
|
{
|
|
1932
1928
|
classname: { global: "row__end" },
|
|
1933
1929
|
page: u,
|
|
@@ -1936,25 +1932,25 @@ const In = (e, t, s, r) => {
|
|
|
1936
1932
|
onChange: x
|
|
1937
1933
|
}
|
|
1938
1934
|
)
|
|
1939
|
-
] }) : /* @__PURE__ */ c.jsx(
|
|
1940
|
-
},
|
|
1941
|
-
textFieldNotFront:
|
|
1942
|
-
},
|
|
1935
|
+
] }) : /* @__PURE__ */ c.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
1936
|
+
}, _r = "_textFieldNotFront_cps4i_1", ur = {
|
|
1937
|
+
textFieldNotFront: _r
|
|
1938
|
+
}, hr = (e) => {
|
|
1943
1939
|
const {
|
|
1944
1940
|
userFlow: t,
|
|
1945
1941
|
pageId: s,
|
|
1946
1942
|
component: r,
|
|
1947
|
-
hash:
|
|
1943
|
+
hash: l,
|
|
1948
1944
|
responseKey: o,
|
|
1949
|
-
required:
|
|
1945
|
+
required: i,
|
|
1950
1946
|
dependencies: n,
|
|
1951
1947
|
...d
|
|
1952
1948
|
} = e, a = {
|
|
1953
1949
|
...d
|
|
1954
|
-
}, [u, f] =
|
|
1950
|
+
}, [u, f] = q((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = M(
|
|
1955
1951
|
t,
|
|
1956
1952
|
n
|
|
1957
|
-
), h = (a == null ? void 0 : a.disabled) ?? _, j = O(() =>
|
|
1953
|
+
), h = (a == null ? void 0 : a.disabled) ?? _, j = O(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), y = (x) => {
|
|
1958
1954
|
var b;
|
|
1959
1955
|
const m = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
|
|
1960
1956
|
f(m);
|
|
@@ -1963,13 +1959,13 @@ const In = (e, t, s, r) => {
|
|
|
1963
1959
|
};
|
|
1964
1960
|
L(t, g);
|
|
1965
1961
|
};
|
|
1966
|
-
return
|
|
1962
|
+
return V(() => {
|
|
1967
1963
|
f((a == null ? void 0 : a.value) ?? "");
|
|
1968
1964
|
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ c.jsx(
|
|
1969
|
-
|
|
1965
|
+
it,
|
|
1970
1966
|
{
|
|
1971
1967
|
...a,
|
|
1972
|
-
className:
|
|
1968
|
+
className: ur.textFieldNotFront,
|
|
1973
1969
|
allowClear: !1,
|
|
1974
1970
|
label: j,
|
|
1975
1971
|
value: u,
|
|
@@ -1977,21 +1973,21 @@ const In = (e, t, s, r) => {
|
|
|
1977
1973
|
onChange: (x) => !h && y(x)
|
|
1978
1974
|
}
|
|
1979
1975
|
);
|
|
1980
|
-
},
|
|
1976
|
+
}, fr = ({
|
|
1981
1977
|
userFlow: e,
|
|
1982
1978
|
pageId: t,
|
|
1983
1979
|
responseKey: s,
|
|
1984
1980
|
variant: r,
|
|
1985
|
-
content:
|
|
1981
|
+
content: l,
|
|
1986
1982
|
actionType: o,
|
|
1987
|
-
redirectUrl:
|
|
1983
|
+
redirectUrl: i
|
|
1988
1984
|
}) => {
|
|
1989
1985
|
const n = D(async () => {
|
|
1990
|
-
|
|
1986
|
+
xe(e);
|
|
1991
1987
|
try {
|
|
1992
1988
|
switch (o) {
|
|
1993
1989
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
1994
|
-
window.location.href =
|
|
1990
|
+
window.location.href = i;
|
|
1995
1991
|
break;
|
|
1996
1992
|
default:
|
|
1997
1993
|
console.warn(`Unhandled actionType: ${o}`);
|
|
@@ -2000,38 +1996,38 @@ const In = (e, t, s, r) => {
|
|
|
2000
1996
|
} catch (d) {
|
|
2001
1997
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
2002
1998
|
}
|
|
2003
|
-
}, [o, t, s, e,
|
|
2004
|
-
return
|
|
1999
|
+
}, [o, t, s, e, i]);
|
|
2000
|
+
return V(() => {
|
|
2005
2001
|
({
|
|
2006
2002
|
info: W.info,
|
|
2007
2003
|
error: W.error,
|
|
2008
2004
|
success: W.success,
|
|
2009
2005
|
warning: W.warning
|
|
2010
|
-
}[r] || W.info)(
|
|
2006
|
+
}[r] || W.info)(l, {
|
|
2011
2007
|
autoClose: o ? !1 : 4e3,
|
|
2012
2008
|
containerId: e,
|
|
2013
2009
|
onClose: n
|
|
2014
2010
|
});
|
|
2015
2011
|
}, [n, e]), null;
|
|
2016
|
-
},
|
|
2017
|
-
accordion:
|
|
2018
|
-
accordionBody:
|
|
2019
|
-
},
|
|
2012
|
+
}, yr = "_accordion_1ri2t_1", mr = "_accordionBody_1ri2t_8", Te = {
|
|
2013
|
+
accordion: yr,
|
|
2014
|
+
accordionBody: mr
|
|
2015
|
+
}, xr = (e) => {
|
|
2020
2016
|
const {
|
|
2021
2017
|
userFlow: t,
|
|
2022
2018
|
pageId: s,
|
|
2023
2019
|
responseKey: r,
|
|
2024
|
-
dependencies:
|
|
2020
|
+
dependencies: l,
|
|
2025
2021
|
customContent: o,
|
|
2026
|
-
actionContent:
|
|
2022
|
+
actionContent: i,
|
|
2027
2023
|
components: n,
|
|
2028
2024
|
...d
|
|
2029
|
-
} = e, { getNextUI: a } = I(), [u, f] =
|
|
2025
|
+
} = e, { getNextUI: a } = I(), [u, f] = q(
|
|
2030
2026
|
d.checkboxChecked || !1
|
|
2031
2027
|
), { disabled: _ } = M(
|
|
2032
2028
|
t,
|
|
2033
|
-
|
|
2034
|
-
), h = A(t, s, n), j =
|
|
2029
|
+
l
|
|
2030
|
+
), h = A(t, s, n), j = i ? A(t, s, i) : void 0, y = o ? A(t, s, o) : void 0, x = D(
|
|
2035
2031
|
async (b) => {
|
|
2036
2032
|
var N;
|
|
2037
2033
|
try {
|
|
@@ -2048,7 +2044,7 @@ const In = (e, t, s, r) => {
|
|
|
2048
2044
|
C,
|
|
2049
2045
|
r
|
|
2050
2046
|
);
|
|
2051
|
-
w != null && w.data &&
|
|
2047
|
+
w != null && w.data && S(t, w == null ? void 0 : w.data);
|
|
2052
2048
|
}
|
|
2053
2049
|
} catch (p) {
|
|
2054
2050
|
console.error("Error in accordion checkbox action:", p), alert(JSON.stringify(p));
|
|
@@ -2057,27 +2053,27 @@ const In = (e, t, s, r) => {
|
|
|
2057
2053
|
[t, s, r, d.actionType, a]
|
|
2058
2054
|
), m = d.disabled || _, g = {
|
|
2059
2055
|
...d,
|
|
2060
|
-
className:
|
|
2056
|
+
className: Te.accordion,
|
|
2061
2057
|
disabled: m,
|
|
2062
2058
|
checkboxChecked: u,
|
|
2063
2059
|
onChanceCheckbox: d.hasCheckbox ? x : void 0,
|
|
2064
2060
|
actionContent: j ? /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-action-${N}`)) }) : void 0,
|
|
2065
2061
|
customContent: y ? /* @__PURE__ */ c.jsx(c.Fragment, { children: y.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-custom-${N}`)) }) : void 0,
|
|
2066
|
-
children: h ? /* @__PURE__ */ c.jsx("section", { className:
|
|
2062
|
+
children: h ? /* @__PURE__ */ c.jsx("section", { className: Te.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-child-${N}`)) }) : void 0
|
|
2067
2063
|
};
|
|
2068
|
-
return /* @__PURE__ */ c.jsx(
|
|
2069
|
-
},
|
|
2070
|
-
drawer:
|
|
2071
|
-
drawerBody:
|
|
2072
|
-
drawerFooter:
|
|
2073
|
-
},
|
|
2064
|
+
return /* @__PURE__ */ c.jsx(lt, { ...g });
|
|
2065
|
+
}, gr = "_drawer_13pxo_1", pr = "_drawerBody_13pxo_5", br = "_drawerFooter_13pxo_11", _e = {
|
|
2066
|
+
drawer: gr,
|
|
2067
|
+
drawerBody: pr,
|
|
2068
|
+
drawerFooter: br
|
|
2069
|
+
}, jr = ({
|
|
2074
2070
|
userFlow: e,
|
|
2075
2071
|
pageId: t,
|
|
2076
2072
|
responseKey: s,
|
|
2077
2073
|
header: r,
|
|
2078
|
-
body:
|
|
2074
|
+
body: l,
|
|
2079
2075
|
footer: o,
|
|
2080
|
-
...
|
|
2076
|
+
...i
|
|
2081
2077
|
}) => {
|
|
2082
2078
|
const n = v((y) => {
|
|
2083
2079
|
var x;
|
|
@@ -2086,36 +2082,36 @@ const In = (e, t, s, r) => {
|
|
|
2086
2082
|
var x;
|
|
2087
2083
|
return (x = y[e]) == null ? void 0 : x.isLoading;
|
|
2088
2084
|
}), a = n && !d, u = {
|
|
2089
|
-
...
|
|
2085
|
+
...i,
|
|
2090
2086
|
isOpen: a,
|
|
2091
2087
|
children: null
|
|
2092
2088
|
}, f = D(() => {
|
|
2093
|
-
|
|
2094
|
-
}, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(
|
|
2089
|
+
xe(e), Z(e, !1);
|
|
2090
|
+
}, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Re, { type: "h2", children: r }) : void 0, h = A(e, t, l), j = o ? A(e, t, o) : void 0;
|
|
2095
2091
|
return /* @__PURE__ */ c.jsx(
|
|
2096
|
-
|
|
2092
|
+
dt,
|
|
2097
2093
|
{
|
|
2098
2094
|
...u,
|
|
2099
|
-
className:
|
|
2095
|
+
className: _e.drawer,
|
|
2100
2096
|
isOpen: a,
|
|
2101
2097
|
onClose: f,
|
|
2102
2098
|
heightGap: 0,
|
|
2103
2099
|
title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
|
|
2104
|
-
children: /* @__PURE__ */ c.jsx("section", { className:
|
|
2105
|
-
footer: j ? /* @__PURE__ */ c.jsx("div", { className:
|
|
2100
|
+
children: /* @__PURE__ */ c.jsx("section", { className: _e.drawerBody, children: h.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-body-${x}`)) }),
|
|
2101
|
+
footer: j ? /* @__PURE__ */ c.jsx("div", { className: _e.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-footer-${x}`)) }) : void 0
|
|
2106
2102
|
}
|
|
2107
2103
|
);
|
|
2108
|
-
},
|
|
2104
|
+
}, $e = (e, t, s, r, l) => {
|
|
2109
2105
|
const o = A(
|
|
2110
2106
|
e,
|
|
2111
2107
|
t,
|
|
2112
2108
|
(r == null ? void 0 : r.components) || null,
|
|
2113
|
-
|
|
2109
|
+
l
|
|
2114
2110
|
);
|
|
2115
2111
|
switch (s) {
|
|
2116
2112
|
case "body":
|
|
2117
2113
|
return /* @__PURE__ */ c.jsx(
|
|
2118
|
-
|
|
2114
|
+
Ft,
|
|
2119
2115
|
{
|
|
2120
2116
|
...r,
|
|
2121
2117
|
inputs: o || []
|
|
@@ -2124,7 +2120,7 @@ const In = (e, t, s, r) => {
|
|
|
2124
2120
|
);
|
|
2125
2121
|
case "header":
|
|
2126
2122
|
return /* @__PURE__ */ c.jsx(
|
|
2127
|
-
|
|
2123
|
+
On,
|
|
2128
2124
|
{
|
|
2129
2125
|
...r,
|
|
2130
2126
|
components: o || []
|
|
@@ -2134,42 +2130,41 @@ const In = (e, t, s, r) => {
|
|
|
2134
2130
|
default:
|
|
2135
2131
|
return null;
|
|
2136
2132
|
}
|
|
2137
|
-
},
|
|
2133
|
+
}, Rr = (e, t, s, r) => {
|
|
2138
2134
|
var _, h, j;
|
|
2139
|
-
const [
|
|
2135
|
+
const [l, o] = q(!1), i = v((y) => y), n = (_ = i[e]) == null ? void 0 : _.currentPageId, d = n ? $e(
|
|
2140
2136
|
e,
|
|
2141
2137
|
n,
|
|
2142
2138
|
"header",
|
|
2143
|
-
((h =
|
|
2139
|
+
((h = i[e].pages[n].page) == null ? void 0 : h.header) || null,
|
|
2144
2140
|
r
|
|
2145
|
-
) : null, a = n ?
|
|
2141
|
+
) : null, a = n ? $e(
|
|
2146
2142
|
e,
|
|
2147
2143
|
n,
|
|
2148
2144
|
"body",
|
|
2149
|
-
((j =
|
|
2145
|
+
((j = i[e].pages[n].page) == null ? void 0 : j.body) || null,
|
|
2150
2146
|
r
|
|
2151
2147
|
) : null, u = O(() => {
|
|
2152
2148
|
var y;
|
|
2153
2149
|
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2154
|
-
((y =
|
|
2150
|
+
((y = i[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(_t, {}),
|
|
2155
2151
|
d,
|
|
2156
2152
|
a,
|
|
2157
|
-
n && /* @__PURE__ */ c.jsx(
|
|
2158
|
-
|
|
2153
|
+
n && /* @__PURE__ */ c.jsx(Dn, { userFlow: e, pageId: n }),
|
|
2154
|
+
i[e] && /* @__PURE__ */ c.jsx(ut, {})
|
|
2159
2155
|
] });
|
|
2160
2156
|
}, [d, a, n, e]), f = async () => {
|
|
2161
|
-
var y;
|
|
2162
2157
|
try {
|
|
2163
|
-
const
|
|
2158
|
+
const y = await Ie(
|
|
2164
2159
|
t,
|
|
2165
2160
|
e
|
|
2166
|
-
),
|
|
2167
|
-
(
|
|
2168
|
-
} catch (
|
|
2169
|
-
console.error("[not-page]: API call failed",
|
|
2161
|
+
), x = y == null ? void 0 : y.data, m = x == null ? void 0 : x.content;
|
|
2162
|
+
(y == null ? void 0 : y.status) === 200 ? oe(e, t, m, x == null ? void 0 : x.sessionState) : o(!0);
|
|
2163
|
+
} catch (y) {
|
|
2164
|
+
console.error("[not-page]: API call failed", y), o(!0);
|
|
2170
2165
|
}
|
|
2171
2166
|
};
|
|
2172
|
-
return
|
|
2167
|
+
return V(() => {
|
|
2173
2168
|
t != null && t.api && !s && e ? f() : !(t != null && t.api) && s && e || t != null && t.api && s && e ? oe(e, t, s) : (!(t != null && t.api) && !s || !e) && (o(!0), console.error(
|
|
2174
2169
|
"[not-page]: API call failed",
|
|
2175
2170
|
"not api config",
|
|
@@ -2177,17 +2172,17 @@ const In = (e, t, s, r) => {
|
|
|
2177
2172
|
));
|
|
2178
2173
|
const y = "avocado-theme-mode-changed", x = (m) => {
|
|
2179
2174
|
const g = m.detail;
|
|
2180
|
-
|
|
2175
|
+
fe.setThemeMode(g);
|
|
2181
2176
|
};
|
|
2182
2177
|
return window.addEventListener(y, x), () => {
|
|
2183
2178
|
window.removeEventListener(y, x);
|
|
2184
2179
|
};
|
|
2185
|
-
}, []),
|
|
2180
|
+
}, []), l && console.error("[not-page]: No render page"), u;
|
|
2186
2181
|
};
|
|
2187
2182
|
export {
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2183
|
+
qn as Chart,
|
|
2184
|
+
Kn as Row,
|
|
2185
|
+
Kt as heading,
|
|
2186
|
+
Gt as text,
|
|
2187
|
+
Rr as usePage
|
|
2193
2188
|
};
|