@foris/avocado-not-front 4.3.3 → 4.4.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.
- package/dist/avocado-not-front.es.js +410 -361
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/src/components/index.d.ts +2 -1
- package/dist/src/components/tooltip/Tooltip.d.ts +7 -0
- package/dist/src/store/useStore.d.ts +4 -0
- package/dist/src/types/components.type.d.ts +13 -1
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import V from "axios";
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { ChatPanel as
|
|
6
|
-
import
|
|
2
|
+
import { create as Ye } from "zustand";
|
|
3
|
+
import Ze, { useMemo as T, useEffect as z, useState as A, Fragment as S, useCallback as R, useRef as Fe, cloneElement as Pe } from "react";
|
|
4
|
+
import { Heading as Be, Text as et, ThemeStore as te, Tooltip as tt, Breadcrumbs as nt, Button as st, CardAccordion as at, CardNotification as me, Checkbox as rt, PreviewerMarkdown as Ke, DataCard as ot, Divider as ct, SkeletonBase as Me, Link as it, Modal as lt, Pill as he, RoundButton as dt, SelectPagination as _t, Select as ut, Switch as ht, Table as ft, Pager as mt, Tabs as yt, TextField as xt, toast as Q, Accordion as gt, Drawer as pt, Loading as bt, Toaster as jt } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as wt, SummaryCard as Ct, PromptCodeEditor as Nt } from "@foris/ai-agent";
|
|
6
|
+
import vt 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 Et } from "@codemirror/lang-markdown";
|
|
9
|
+
import { sql as St } from "@codemirror/lang-sql";
|
|
10
|
+
import { yaml as kt } from "@codemirror/lang-yaml";
|
|
11
11
|
import L from "jsonpath";
|
|
12
|
-
import { Legend as
|
|
13
|
-
import { Routes as
|
|
14
|
-
const v =
|
|
12
|
+
import { Legend as Tt, Tooltip as $t, XAxis as At, YAxis as qt, ResponsiveContainer as ne, AreaChart as Ot, CartesianGrid as ye, Area as Rt, BarChart as Dt, Bar as Lt, LineChart as It, Line as Bt, PieChart as Kt, Pie as Mt, Cell as zt } from "recharts";
|
|
13
|
+
import { Routes as Gt, Route as Ce, Navigate as Ut } from "react-router-dom";
|
|
14
|
+
const v = Ye(() => ({})), ce = (e, t, a, s) => {
|
|
15
15
|
const c = a == null ? void 0 : a.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
|
|
16
16
|
v.setState((l) => {
|
|
17
17
|
var n;
|
|
@@ -35,16 +35,16 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
|
-
},
|
|
38
|
+
}, ze = (e, t, a) => {
|
|
39
39
|
const s = a && Object.keys(a).length > 0 ? { ...e, ...a } : e;
|
|
40
40
|
return t.length === 0 ? e : Object.fromEntries(
|
|
41
41
|
Object.entries(s).filter(
|
|
42
42
|
([c]) => !t.includes(c)
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
|
-
},
|
|
45
|
+
}, Jt = (e, t, a, s, c) => {
|
|
46
46
|
sessionStorage.setItem("sessionId", a), v.setState((i) => {
|
|
47
|
-
const l = i[e] ?? {}, n = l.entries ?? {}, d =
|
|
47
|
+
const l = i[e] ?? {}, n = l.entries ?? {}, d = ze(
|
|
48
48
|
n,
|
|
49
49
|
s,
|
|
50
50
|
c
|
|
@@ -66,10 +66,10 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, Vt = (e, t, a, s) => {
|
|
70
70
|
v.setState((c) => {
|
|
71
71
|
var r;
|
|
72
|
-
const i = c[e] ?? {}, l = i.entries ?? {}, n =
|
|
72
|
+
const i = c[e] ?? {}, l = i.entries ?? {}, n = ze(
|
|
73
73
|
l,
|
|
74
74
|
a,
|
|
75
75
|
s
|
|
@@ -96,23 +96,23 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
96
96
|
overlay: null
|
|
97
97
|
}
|
|
98
98
|
}));
|
|
99
|
-
},
|
|
99
|
+
}, Ht = (e) => {
|
|
100
100
|
var a;
|
|
101
101
|
return ((a = v.getState()[e]) == null ? void 0 : a.overlay) ?? null;
|
|
102
|
-
},
|
|
102
|
+
}, q = (e, t) => {
|
|
103
103
|
const {
|
|
104
104
|
content: a,
|
|
105
105
|
sessionId: s,
|
|
106
106
|
deprecatedStateKeys: c = [],
|
|
107
107
|
sessionState: i
|
|
108
108
|
} = t;
|
|
109
|
-
a.type !== "page" && a.type !== "overlay" || (a.type === "page" ?
|
|
109
|
+
a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Jt(
|
|
110
110
|
e,
|
|
111
111
|
a,
|
|
112
112
|
s,
|
|
113
113
|
c,
|
|
114
114
|
i
|
|
115
|
-
) :
|
|
115
|
+
) : Vt(
|
|
116
116
|
e,
|
|
117
117
|
a,
|
|
118
118
|
c,
|
|
@@ -133,6 +133,23 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
|
+
}, Xt = (e, t) => {
|
|
137
|
+
v.setState((a) => {
|
|
138
|
+
const s = a[e];
|
|
139
|
+
if (!s)
|
|
140
|
+
return a;
|
|
141
|
+
const c = s.entries ?? {};
|
|
142
|
+
if (!(t in c))
|
|
143
|
+
return a;
|
|
144
|
+
const { [t]: i, ...l } = c;
|
|
145
|
+
return {
|
|
146
|
+
...a,
|
|
147
|
+
[e]: {
|
|
148
|
+
...s,
|
|
149
|
+
entries: l
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
});
|
|
136
153
|
}, H = (e, t) => {
|
|
137
154
|
v.setState((a) => ({
|
|
138
155
|
...a,
|
|
@@ -173,15 +190,15 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
|
|
|
173
190
|
});
|
|
174
191
|
};
|
|
175
192
|
let ie = !1, P = [], ve = !1;
|
|
176
|
-
const
|
|
193
|
+
const Wt = (e) => e._userFlow || null, Ee = (e) => {
|
|
177
194
|
P.forEach(({ resolve: t, reject: a }) => {
|
|
178
195
|
e ? a(e) : t(void 0);
|
|
179
196
|
}), P = [];
|
|
180
|
-
},
|
|
197
|
+
}, Qt = async (e) => {
|
|
181
198
|
var s, c;
|
|
182
199
|
const t = e == null ? void 0 : e.config;
|
|
183
200
|
if (((s = e == null ? void 0 : e.response) == null ? void 0 : s.status) === 401 && !t._retry) {
|
|
184
|
-
const i =
|
|
201
|
+
const i = Wt(t);
|
|
185
202
|
if (i) {
|
|
186
203
|
const n = (c = v.getState()[i]) == null ? void 0 : c.apiConfig;
|
|
187
204
|
if (!n)
|
|
@@ -200,7 +217,7 @@ const Vt = (e) => e._userFlow || null, Se = (e) => {
|
|
|
200
217
|
r = n.headers();
|
|
201
218
|
else
|
|
202
219
|
throw new Error("No refresh handler available");
|
|
203
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(i, JSON.stringify(r)) : Ne(i, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r),
|
|
220
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(i, JSON.stringify(r)) : Ne(i, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), Ee(null), V(t);
|
|
204
221
|
} catch (r) {
|
|
205
222
|
return console.error(
|
|
206
223
|
"[axiosInterceptors] Token refresh failed:",
|
|
@@ -208,7 +225,7 @@ const Vt = (e) => e._userFlow || null, Se = (e) => {
|
|
|
208
225
|
), console.error(
|
|
209
226
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
210
227
|
P.length
|
|
211
|
-
),
|
|
228
|
+
), Ee(r), Promise.reject(r);
|
|
212
229
|
} finally {
|
|
213
230
|
ie = !1;
|
|
214
231
|
}
|
|
@@ -223,17 +240,17 @@ const Vt = (e) => e._userFlow || null, Se = (e) => {
|
|
|
223
240
|
);
|
|
224
241
|
}
|
|
225
242
|
return Promise.reject(e);
|
|
226
|
-
},
|
|
243
|
+
}, Yt = () => {
|
|
227
244
|
if (ve) {
|
|
228
245
|
console.debug(
|
|
229
246
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
230
247
|
);
|
|
231
248
|
return;
|
|
232
249
|
}
|
|
233
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0,
|
|
250
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Qt), console.debug("[axiosInterceptors] Response error interceptor registered"), ve = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
234
251
|
};
|
|
235
|
-
|
|
236
|
-
function
|
|
252
|
+
Yt();
|
|
253
|
+
function Zt(e) {
|
|
237
254
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
238
255
|
}
|
|
239
256
|
var le = { exports: {} }, Y = {};
|
|
@@ -246,11 +263,11 @@ var le = { exports: {} }, Y = {};
|
|
|
246
263
|
* This source code is licensed under the MIT license found in the
|
|
247
264
|
* LICENSE file in the root directory of this source tree.
|
|
248
265
|
*/
|
|
249
|
-
var
|
|
250
|
-
function
|
|
251
|
-
if (
|
|
252
|
-
|
|
253
|
-
var e =
|
|
266
|
+
var Se;
|
|
267
|
+
function Ft() {
|
|
268
|
+
if (Se) return Y;
|
|
269
|
+
Se = 1;
|
|
270
|
+
var e = Ze, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
254
271
|
function l(n, d, r) {
|
|
255
272
|
var u, f = {}, _ = null, h = null;
|
|
256
273
|
r !== void 0 && (_ = "" + r), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
@@ -261,26 +278,26 @@ function Qt() {
|
|
|
261
278
|
return Y.Fragment = a, Y.jsx = l, Y.jsxs = l, Y;
|
|
262
279
|
}
|
|
263
280
|
var ke;
|
|
264
|
-
function
|
|
265
|
-
return ke || (ke = 1, le.exports =
|
|
281
|
+
function Pt() {
|
|
282
|
+
return ke || (ke = 1, le.exports = Ft()), le.exports;
|
|
266
283
|
}
|
|
267
|
-
var o =
|
|
268
|
-
const
|
|
284
|
+
var o = Pt();
|
|
285
|
+
const en = (e) => {
|
|
269
286
|
if (!(e != null && e.content)) return null;
|
|
270
287
|
const t = {
|
|
271
288
|
...e,
|
|
272
289
|
children: e.content,
|
|
273
290
|
type: e.variant
|
|
274
291
|
};
|
|
275
|
-
return /* @__PURE__ */ o.jsx(
|
|
276
|
-
},
|
|
292
|
+
return /* @__PURE__ */ o.jsx(Be, { ...t });
|
|
293
|
+
}, tn = (e) => {
|
|
277
294
|
if (!e) return null;
|
|
278
295
|
const t = {
|
|
279
296
|
...e,
|
|
280
297
|
children: e.content
|
|
281
298
|
};
|
|
282
|
-
return /* @__PURE__ */ o.jsx(
|
|
283
|
-
},
|
|
299
|
+
return /* @__PURE__ */ o.jsx(et, { ...t });
|
|
300
|
+
}, nn = (e) => {
|
|
284
301
|
const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = T(() => ({
|
|
285
302
|
url: e.dataSource.url,
|
|
286
303
|
method: e.dataSource.method,
|
|
@@ -313,7 +330,7 @@ const Zt = (e) => {
|
|
|
313
330
|
e.initialSuggestions,
|
|
314
331
|
t
|
|
315
332
|
]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
|
|
316
|
-
|
|
333
|
+
wt,
|
|
317
334
|
{
|
|
318
335
|
dataSource: s,
|
|
319
336
|
locale: c,
|
|
@@ -322,9 +339,9 @@ const Zt = (e) => {
|
|
|
322
339
|
theme: t
|
|
323
340
|
}
|
|
324
341
|
);
|
|
325
|
-
},
|
|
326
|
-
summaryCard:
|
|
327
|
-
},
|
|
342
|
+
}, sn = "_summaryCard_jva4h_1", an = {
|
|
343
|
+
summaryCard: sn
|
|
344
|
+
}, rn = (e) => {
|
|
328
345
|
const t = e.dataSource, a = T(() => ({
|
|
329
346
|
url: e.dataSource.url,
|
|
330
347
|
method: e.dataSource.method,
|
|
@@ -347,8 +364,8 @@ const Zt = (e) => {
|
|
|
347
364
|
locale: s,
|
|
348
365
|
translations: c
|
|
349
366
|
});
|
|
350
|
-
}, [e.onResolveProps, a, s, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className:
|
|
351
|
-
|
|
367
|
+
}, [e.onResolveProps, a, s, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: an.summaryCard, children: /* @__PURE__ */ o.jsx(
|
|
368
|
+
Ct,
|
|
352
369
|
{
|
|
353
370
|
dataSource: a,
|
|
354
371
|
locale: s,
|
|
@@ -371,9 +388,9 @@ const Zt = (e) => {
|
|
|
371
388
|
});
|
|
372
389
|
}), s;
|
|
373
390
|
}, [t, a]);
|
|
374
|
-
},
|
|
375
|
-
promptCodeEditor:
|
|
376
|
-
},
|
|
391
|
+
}, on = "_promptCodeEditor_1d57s_1", cn = {
|
|
392
|
+
promptCodeEditor: on
|
|
393
|
+
}, ln = (e) => {
|
|
377
394
|
const {
|
|
378
395
|
userFlow: t,
|
|
379
396
|
responseKey: a,
|
|
@@ -385,7 +402,7 @@ const Zt = (e) => {
|
|
|
385
402
|
inputLabel: d,
|
|
386
403
|
inputPlaceholder: r,
|
|
387
404
|
codeBlockLabel: u
|
|
388
|
-
} = e, f = te.useThemeStore((b) => b.theme.mode), [_, h] =
|
|
405
|
+
} = e, f = te.useThemeStore((b) => b.theme.mode), [_, h] = A(
|
|
389
406
|
s || ""
|
|
390
407
|
), { disabled: p } = B(
|
|
391
408
|
t,
|
|
@@ -404,8 +421,8 @@ const Zt = (e) => {
|
|
|
404
421
|
};
|
|
405
422
|
return z(() => {
|
|
406
423
|
s !== void 0 && s !== _ && h(s);
|
|
407
|
-
}, [s]), /* @__PURE__ */ o.jsx("section", { className:
|
|
408
|
-
|
|
424
|
+
}, [s]), /* @__PURE__ */ o.jsx("section", { className: cn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
|
|
425
|
+
Nt,
|
|
409
426
|
{
|
|
410
427
|
themeMode: f,
|
|
411
428
|
requestConfig: x,
|
|
@@ -418,10 +435,79 @@ const Zt = (e) => {
|
|
|
418
435
|
onCodeChange: g
|
|
419
436
|
}
|
|
420
437
|
) });
|
|
421
|
-
},
|
|
422
|
-
body:
|
|
423
|
-
body_content:
|
|
424
|
-
},
|
|
438
|
+
}, dn = "_body_14tsv_1", _n = "_body_content_14tsv_5", Te = {
|
|
439
|
+
body: dn,
|
|
440
|
+
body_content: _n
|
|
441
|
+
}, un = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Te.body, children: /* @__PURE__ */ o.jsx("div", { className: Te.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(S, { children: t }, a)) }) }), E = (e, t, a, s) => {
|
|
442
|
+
var l;
|
|
443
|
+
const c = {
|
|
444
|
+
accordion: (n) => /* @__PURE__ */ o.jsx(Js, { ...n, userFlow: e, pageId: t }),
|
|
445
|
+
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
|
|
446
|
+
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
|
|
447
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(ln, { ...n, userFlow: e, pageId: t }),
|
|
448
|
+
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(bn, { ...n, userFlow: e, pageId: t }),
|
|
449
|
+
tooltip: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
|
|
450
|
+
button: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
|
|
451
|
+
cardAccordion: (n) => /* @__PURE__ */ o.jsx(Cn, { ...n, userFlow: e, pageId: t }),
|
|
452
|
+
cardNotification: (n) => /* @__PURE__ */ o.jsx(Nn, { ...n }),
|
|
453
|
+
chart: (n) => /* @__PURE__ */ o.jsx(Xn, { ...n, userFlow: e }),
|
|
454
|
+
dataCard: (n) => /* @__PURE__ */ o.jsx(Ln, { ...n, userFlow: e, pageId: t }),
|
|
455
|
+
checkbox: (n) => /* @__PURE__ */ o.jsx(vn, { ...n, userFlow: e, pageId: t }),
|
|
456
|
+
code: (n) => /* @__PURE__ */ o.jsx(qn, { ...n, userFlow: e, pageId: t }),
|
|
457
|
+
divider: (n) => /* @__PURE__ */ o.jsx(Kn, { ...n }),
|
|
458
|
+
drawer: (n) => /* @__PURE__ */ o.jsx(Ws, { ...n, userFlow: e, pageId: t }),
|
|
459
|
+
heading: (n) => en(n),
|
|
460
|
+
link: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n, userFlow: e, pageId: t }),
|
|
461
|
+
pill: (n) => /* @__PURE__ */ o.jsx(ss, { ...n }),
|
|
462
|
+
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(as, { ...n }),
|
|
463
|
+
modal: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
|
|
464
|
+
roundButton: (n) => /* @__PURE__ */ o.jsx(rs, { ...n, userFlow: e, pageId: t }),
|
|
465
|
+
row: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: e, pageId: t }),
|
|
466
|
+
select: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: e, pageId: t }),
|
|
467
|
+
switch: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
|
|
468
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(Es, { ...n, userFlow: e, pageId: t }),
|
|
469
|
+
table: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
|
|
470
|
+
tabs: (n) => /* @__PURE__ */ o.jsx(Is, { ...n, userFlow: e, pageId: t }),
|
|
471
|
+
text: (n) => tn(n),
|
|
472
|
+
textField: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: e, pageId: t }),
|
|
473
|
+
toast: (n) => /* @__PURE__ */ o.jsx(zs, { ...n, userFlow: e, pageId: t })
|
|
474
|
+
};
|
|
475
|
+
return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
|
|
476
|
+
const d = c[n.component];
|
|
477
|
+
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
478
|
+
});
|
|
479
|
+
}, hn = "_tooltipNotFront_106iw_1", fn = "_tooltipNotFront_content_106iw_5", $e = {
|
|
480
|
+
tooltipNotFront: hn,
|
|
481
|
+
tooltipNotFront_content: fn
|
|
482
|
+
}, mn = (e) => {
|
|
483
|
+
const {
|
|
484
|
+
userFlow: t,
|
|
485
|
+
pageId: a,
|
|
486
|
+
component: s,
|
|
487
|
+
hash: c,
|
|
488
|
+
responseKey: i,
|
|
489
|
+
content: l,
|
|
490
|
+
label: n,
|
|
491
|
+
placement: d,
|
|
492
|
+
notShowArrow: r,
|
|
493
|
+
visible: u
|
|
494
|
+
} = e, f = E(
|
|
495
|
+
t,
|
|
496
|
+
a,
|
|
497
|
+
l != null && l.length ? l : null
|
|
498
|
+
), _ = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: $e.tooltipNotFront_content, children: f.map((h, p) => /* @__PURE__ */ o.jsx(S, { children: h }, `tooltip-${c}-${p}`)) }) : null;
|
|
499
|
+
return /* @__PURE__ */ o.jsx(
|
|
500
|
+
tt,
|
|
501
|
+
{
|
|
502
|
+
className: $e.tooltipNotFront,
|
|
503
|
+
label: n,
|
|
504
|
+
placement: d,
|
|
505
|
+
notShowArrow: r,
|
|
506
|
+
visible: u,
|
|
507
|
+
children: _
|
|
508
|
+
}
|
|
509
|
+
);
|
|
510
|
+
}, W = (e) => {
|
|
425
511
|
if (!e)
|
|
426
512
|
return { "content-type": "application/json" };
|
|
427
513
|
if (typeof e == "function")
|
|
@@ -433,7 +519,7 @@ const Zt = (e) => {
|
|
|
433
519
|
return { "content-type": "application/json", Authorization: e };
|
|
434
520
|
}
|
|
435
521
|
return e;
|
|
436
|
-
}, F = () => new AbortController(),
|
|
522
|
+
}, F = () => new AbortController(), yn = (e, t = {}, a = {}, s = !1, c) => {
|
|
437
523
|
const i = F();
|
|
438
524
|
s && i.abort();
|
|
439
525
|
const l = W(t);
|
|
@@ -463,7 +549,7 @@ const Zt = (e) => {
|
|
|
463
549
|
}),
|
|
464
550
|
controller: l
|
|
465
551
|
};
|
|
466
|
-
},
|
|
552
|
+
}, xn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
467
553
|
const l = F();
|
|
468
554
|
c && l.abort();
|
|
469
555
|
const n = W(t);
|
|
@@ -478,7 +564,7 @@ const Zt = (e) => {
|
|
|
478
564
|
}),
|
|
479
565
|
controller: l
|
|
480
566
|
};
|
|
481
|
-
},
|
|
567
|
+
}, gn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
482
568
|
const l = F();
|
|
483
569
|
c && l.abort();
|
|
484
570
|
const n = W(t);
|
|
@@ -493,7 +579,7 @@ const Zt = (e) => {
|
|
|
493
579
|
}),
|
|
494
580
|
controller: l
|
|
495
581
|
};
|
|
496
|
-
},
|
|
582
|
+
}, pn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
497
583
|
const l = F();
|
|
498
584
|
c && l.abort();
|
|
499
585
|
const n = W(t);
|
|
@@ -509,7 +595,7 @@ const Zt = (e) => {
|
|
|
509
595
|
}),
|
|
510
596
|
controller: l
|
|
511
597
|
};
|
|
512
|
-
},
|
|
598
|
+
}, Ge = () => {
|
|
513
599
|
let e;
|
|
514
600
|
return { callEndpoint: async (s) => {
|
|
515
601
|
s.controller && (e = s.controller);
|
|
@@ -523,9 +609,9 @@ const Zt = (e) => {
|
|
|
523
609
|
}, cancelEndpoint: () => {
|
|
524
610
|
e && e.abort();
|
|
525
611
|
} };
|
|
526
|
-
},
|
|
612
|
+
}, Ue = async (e, t, a = "", s = {}, c = {}) => {
|
|
527
613
|
try {
|
|
528
|
-
const { callEndpoint: i } =
|
|
614
|
+
const { callEndpoint: i } = Ge(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
|
|
529
615
|
a && r.append("hash_code", a), d && r.append("sessionId", d);
|
|
530
616
|
const u = `${l}/not-front/next-ui/?${r.toString()}`, f = W(n), _ = fe(
|
|
531
617
|
u,
|
|
@@ -540,14 +626,14 @@ const Zt = (e) => {
|
|
|
540
626
|
return console.error(i), Promise.reject(i);
|
|
541
627
|
}
|
|
542
628
|
}, K = () => {
|
|
543
|
-
const e = v((n) => n), { callEndpoint: t } =
|
|
629
|
+
const e = v((n) => n), { callEndpoint: t } = Ge(), a = async (n, d, r, u, f = !0) => {
|
|
544
630
|
var _;
|
|
545
631
|
try {
|
|
546
632
|
const h = (_ = e[n]) == null ? void 0 : _.apiConfig, p = {
|
|
547
633
|
state: { ...r },
|
|
548
634
|
triggerKey: u
|
|
549
635
|
};
|
|
550
|
-
return f && H(n, !0), await
|
|
636
|
+
return f && H(n, !0), await Ue(
|
|
551
637
|
h,
|
|
552
638
|
n,
|
|
553
639
|
d,
|
|
@@ -562,14 +648,14 @@ const Zt = (e) => {
|
|
|
562
648
|
case "post":
|
|
563
649
|
return fe(u, f, _, {}, !1, d);
|
|
564
650
|
case "put":
|
|
565
|
-
return
|
|
651
|
+
return xn(u, f, _, {}, !1, d);
|
|
566
652
|
case "patch":
|
|
567
|
-
return
|
|
653
|
+
return gn(u, f, _, {}, !1, d);
|
|
568
654
|
case "delete":
|
|
569
|
-
return
|
|
655
|
+
return pn(u, f, _, h, !1, d);
|
|
570
656
|
case "get":
|
|
571
657
|
default:
|
|
572
|
-
return
|
|
658
|
+
return yn(u, f, h, !1, d);
|
|
573
659
|
}
|
|
574
660
|
}, c = (n, d) => {
|
|
575
661
|
const { url: r, headers: u } = n, f = {
|
|
@@ -642,7 +728,7 @@ const Zt = (e) => {
|
|
|
642
728
|
}
|
|
643
729
|
}
|
|
644
730
|
};
|
|
645
|
-
},
|
|
731
|
+
}, bn = ({
|
|
646
732
|
userFlow: e,
|
|
647
733
|
items: t,
|
|
648
734
|
responseKey: a
|
|
@@ -659,7 +745,7 @@ const Zt = (e) => {
|
|
|
659
745
|
{ ...(r = v.getState()[e]) == null ? void 0 : r.entries },
|
|
660
746
|
a
|
|
661
747
|
);
|
|
662
|
-
u != null && u.data &&
|
|
748
|
+
u != null && u.data && q(e, u == null ? void 0 : u.data);
|
|
663
749
|
break;
|
|
664
750
|
case "REDIRECT":
|
|
665
751
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
@@ -677,8 +763,8 @@ const Zt = (e) => {
|
|
|
677
763
|
title: l == null ? void 0 : l.title,
|
|
678
764
|
component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(l) })
|
|
679
765
|
})), []);
|
|
680
|
-
return /* @__PURE__ */ o.jsx(
|
|
681
|
-
},
|
|
766
|
+
return /* @__PURE__ */ o.jsx(nt, { items: i });
|
|
767
|
+
}, jn = (e) => {
|
|
682
768
|
const {
|
|
683
769
|
userFlow: t,
|
|
684
770
|
pageId: a,
|
|
@@ -721,7 +807,7 @@ const Zt = (e) => {
|
|
|
721
807
|
N,
|
|
722
808
|
s
|
|
723
809
|
);
|
|
724
|
-
w != null && w.data &&
|
|
810
|
+
w != null && w.data && q(t, w == null ? void 0 : w.data);
|
|
725
811
|
break;
|
|
726
812
|
}
|
|
727
813
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -732,7 +818,7 @@ const Zt = (e) => {
|
|
|
732
818
|
s,
|
|
733
819
|
n
|
|
734
820
|
);
|
|
735
|
-
w != null && w.data &&
|
|
821
|
+
w != null && w.data && q(t, w == null ? void 0 : w.data);
|
|
736
822
|
break;
|
|
737
823
|
}
|
|
738
824
|
case "GET_DATA_SOURCE": {
|
|
@@ -741,9 +827,9 @@ const Zt = (e) => {
|
|
|
741
827
|
a,
|
|
742
828
|
N,
|
|
743
829
|
s
|
|
744
|
-
),
|
|
745
|
-
if ((
|
|
746
|
-
const D =
|
|
830
|
+
), k = (C = w == null ? void 0 : w.data) == null ? void 0 : C.content;
|
|
831
|
+
if ((k == null ? void 0 : k.type) !== "fetch") break;
|
|
832
|
+
const D = k == null ? void 0 : k.dataSource, $ = await h(
|
|
747
833
|
D,
|
|
748
834
|
t,
|
|
749
835
|
// Avoid to handle loading state until all the requests are done
|
|
@@ -751,8 +837,8 @@ const Zt = (e) => {
|
|
|
751
837
|
), G = {
|
|
752
838
|
...(j = v.getState()[t]) == null ? void 0 : j.entries,
|
|
753
839
|
[s]: {
|
|
754
|
-
status:
|
|
755
|
-
content:
|
|
840
|
+
status: $ == null ? void 0 : $.status,
|
|
841
|
+
content: $ == null ? void 0 : $.data
|
|
756
842
|
}
|
|
757
843
|
};
|
|
758
844
|
O(t, G);
|
|
@@ -762,7 +848,7 @@ const Zt = (e) => {
|
|
|
762
848
|
G,
|
|
763
849
|
s
|
|
764
850
|
);
|
|
765
|
-
U != null && U.data &&
|
|
851
|
+
U != null && U.data && q(t, U == null ? void 0 : U.data);
|
|
766
852
|
break;
|
|
767
853
|
}
|
|
768
854
|
case "REDIRECT":
|
|
@@ -777,53 +863,16 @@ const Zt = (e) => {
|
|
|
777
863
|
}
|
|
778
864
|
}, [c, n, a, s, t]);
|
|
779
865
|
return /* @__PURE__ */ o.jsx(
|
|
780
|
-
|
|
866
|
+
st,
|
|
781
867
|
{
|
|
782
868
|
...y,
|
|
783
869
|
disabled: x,
|
|
784
870
|
onClick: () => !x && (u ?? g)()
|
|
785
871
|
}
|
|
786
872
|
);
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
accordion: (n) => /* @__PURE__ */ o.jsx(Bs, { ...n, userFlow: e, pageId: t }),
|
|
791
|
-
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Pt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
|
|
792
|
-
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
|
|
793
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
|
|
794
|
-
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(fn, { ...n, userFlow: e, pageId: t }),
|
|
795
|
-
button: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
|
|
796
|
-
cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
|
|
797
|
-
cardNotification: (n) => /* @__PURE__ */ o.jsx(gn, { ...n }),
|
|
798
|
-
chart: (n) => /* @__PURE__ */ o.jsx(zn, { ...n, userFlow: e }),
|
|
799
|
-
dataCard: (n) => /* @__PURE__ */ o.jsx(An, { ...n, userFlow: e, pageId: t }),
|
|
800
|
-
checkbox: (n) => /* @__PURE__ */ o.jsx(pn, { ...n, userFlow: e, pageId: t }),
|
|
801
|
-
code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
|
|
802
|
-
divider: (n) => /* @__PURE__ */ o.jsx(On, { ...n }),
|
|
803
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(Gs, { ...n, userFlow: e, pageId: t }),
|
|
804
|
-
heading: (n) => Zt(n),
|
|
805
|
-
link: (n) => /* @__PURE__ */ o.jsx(Vn, { ...n, userFlow: e, pageId: t }),
|
|
806
|
-
pill: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n }),
|
|
807
|
-
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
|
|
808
|
-
modal: (n) => /* @__PURE__ */ o.jsx(Wn, { ...n, userFlow: e, pageId: t }),
|
|
809
|
-
roundButton: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n, userFlow: e, pageId: t }),
|
|
810
|
-
row: (n) => /* @__PURE__ */ o.jsx(ns, { ...n, userFlow: e, pageId: t }),
|
|
811
|
-
select: (n) => /* @__PURE__ */ o.jsx(ds, { ...n, userFlow: e, pageId: t }),
|
|
812
|
-
switch: (n) => /* @__PURE__ */ o.jsx(js, { ...n, userFlow: e, pageId: t }),
|
|
813
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
|
|
814
|
-
table: (n) => /* @__PURE__ */ o.jsx(Es, { ...n, userFlow: e, pageId: t }),
|
|
815
|
-
tabs: (n) => /* @__PURE__ */ o.jsx(qs, { ...n, userFlow: e, pageId: t }),
|
|
816
|
-
text: (n) => Ft(n),
|
|
817
|
-
textField: (n) => /* @__PURE__ */ o.jsx(Rs, { ...n, userFlow: e, pageId: t }),
|
|
818
|
-
toast: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n, userFlow: e, pageId: t })
|
|
819
|
-
};
|
|
820
|
-
return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
|
|
821
|
-
const d = c[n.component];
|
|
822
|
-
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
823
|
-
});
|
|
824
|
-
}, yn = "_slotStack_12u4t_5", Ae = {
|
|
825
|
-
slotStack: yn
|
|
826
|
-
}, xn = (e) => {
|
|
873
|
+
}, wn = "_slotStack_12u4t_5", Ae = {
|
|
874
|
+
slotStack: wn
|
|
875
|
+
}, Cn = (e) => {
|
|
827
876
|
const {
|
|
828
877
|
userFlow: t,
|
|
829
878
|
pageId: a,
|
|
@@ -837,17 +886,17 @@ const Zt = (e) => {
|
|
|
837
886
|
} = e, { disabled: u } = B(
|
|
838
887
|
t,
|
|
839
888
|
l
|
|
840
|
-
), f =
|
|
889
|
+
), f = E(
|
|
841
890
|
t,
|
|
842
891
|
a,
|
|
843
892
|
n && n.length > 0 ? n : null
|
|
844
|
-
), _ =
|
|
893
|
+
), _ = E(
|
|
845
894
|
t,
|
|
846
895
|
a,
|
|
847
896
|
d && d.length > 0 ? d : null
|
|
848
|
-
), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: f.map((y, x) => /* @__PURE__ */ o.jsx(
|
|
897
|
+
), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: f.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `card-accordion-body-${c}-${x}`)) }) : void 0, p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `card-accordion-actions-${c}-${x}`)) }) : void 0, m = r.disabled || u;
|
|
849
898
|
return /* @__PURE__ */ o.jsx(
|
|
850
|
-
|
|
899
|
+
at,
|
|
851
900
|
{
|
|
852
901
|
...r,
|
|
853
902
|
disabled: m,
|
|
@@ -855,13 +904,13 @@ const Zt = (e) => {
|
|
|
855
904
|
children: h ?? null
|
|
856
905
|
}
|
|
857
906
|
);
|
|
858
|
-
},
|
|
907
|
+
}, Nn = (e) => {
|
|
859
908
|
const { content: t, description: a, ...s } = e, c = {
|
|
860
909
|
...s,
|
|
861
910
|
children: t ?? a
|
|
862
911
|
};
|
|
863
912
|
return /* @__PURE__ */ o.jsx(me, { ...c });
|
|
864
|
-
},
|
|
913
|
+
}, vn = (e) => {
|
|
865
914
|
const {
|
|
866
915
|
userFlow: t,
|
|
867
916
|
pageId: a,
|
|
@@ -874,7 +923,7 @@ const Zt = (e) => {
|
|
|
874
923
|
...r
|
|
875
924
|
} = e, u = {
|
|
876
925
|
...r
|
|
877
|
-
}, { getNextUI: f } = K(), [_, h] =
|
|
926
|
+
}, { getNextUI: f } = K(), [_, h] = A(l || !1), { disabled: p } = B(
|
|
878
927
|
t,
|
|
879
928
|
d
|
|
880
929
|
), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
|
|
@@ -894,7 +943,7 @@ const Zt = (e) => {
|
|
|
894
943
|
C,
|
|
895
944
|
s
|
|
896
945
|
);
|
|
897
|
-
j != null && j.data &&
|
|
946
|
+
j != null && j.data && q(t, j == null ? void 0 : j.data);
|
|
898
947
|
break;
|
|
899
948
|
default:
|
|
900
949
|
console.warn(`Unhandled actionType: ${c}`);
|
|
@@ -905,7 +954,7 @@ const Zt = (e) => {
|
|
|
905
954
|
}
|
|
906
955
|
}, [t, a, s, c, _]), x = (u == null ? void 0 : u.disabled) ?? p;
|
|
907
956
|
return /* @__PURE__ */ o.jsx(
|
|
908
|
-
|
|
957
|
+
rt,
|
|
909
958
|
{
|
|
910
959
|
...u,
|
|
911
960
|
labelRight: m,
|
|
@@ -916,14 +965,14 @@ const Zt = (e) => {
|
|
|
916
965
|
}
|
|
917
966
|
}
|
|
918
967
|
);
|
|
919
|
-
},
|
|
920
|
-
codeEditor:
|
|
921
|
-
codeEditor_label:
|
|
922
|
-
codeEditor_wrapper:
|
|
923
|
-
input:
|
|
924
|
-
preview:
|
|
925
|
-
preview_inner:
|
|
926
|
-
},
|
|
968
|
+
}, En = "_codeEditor_1wi2p_1", Sn = "_codeEditor_label_1wi2p_4", kn = "_codeEditor_wrapper_1wi2p_13", Tn = "_input_1wi2p_17", $n = "_preview_1wi2p_18", An = "_preview_inner_1wi2p_33", X = {
|
|
969
|
+
codeEditor: En,
|
|
970
|
+
codeEditor_label: Sn,
|
|
971
|
+
codeEditor_wrapper: kn,
|
|
972
|
+
input: Tn,
|
|
973
|
+
preview: $n,
|
|
974
|
+
preview_inner: An
|
|
975
|
+
}, qn = (e) => {
|
|
927
976
|
const {
|
|
928
977
|
userFlow: t,
|
|
929
978
|
responseKey: a,
|
|
@@ -936,14 +985,14 @@ const Zt = (e) => {
|
|
|
936
985
|
disabled: r,
|
|
937
986
|
showPreview: u,
|
|
938
987
|
height: f = "400px"
|
|
939
|
-
} = e, [_, h] =
|
|
988
|
+
} = e, [_, h] = A(l ?? ""), p = te.useThemeStore((C) => C.theme.mode), { disabled: m } = B(
|
|
940
989
|
t,
|
|
941
990
|
d
|
|
942
991
|
), y = r ?? m, x = {
|
|
943
992
|
json: we(),
|
|
944
|
-
markdown:
|
|
945
|
-
sql:
|
|
946
|
-
yaml:
|
|
993
|
+
markdown: Et(),
|
|
994
|
+
sql: St(),
|
|
995
|
+
yaml: kt()
|
|
947
996
|
}, g = T(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (C) => {
|
|
948
997
|
h(C);
|
|
949
998
|
const j = {
|
|
@@ -955,7 +1004,7 @@ const Zt = (e) => {
|
|
|
955
1004
|
g && g !== "" && /* @__PURE__ */ o.jsx("label", { className: X.codeEditor_label, children: g }),
|
|
956
1005
|
/* @__PURE__ */ o.jsxs("div", { className: X.codeEditor_wrapper, children: [
|
|
957
1006
|
/* @__PURE__ */ o.jsx(
|
|
958
|
-
|
|
1007
|
+
vt,
|
|
959
1008
|
{
|
|
960
1009
|
className: X.input,
|
|
961
1010
|
value: _,
|
|
@@ -967,7 +1016,7 @@ const Zt = (e) => {
|
|
|
967
1016
|
editable: !y
|
|
968
1017
|
}
|
|
969
1018
|
),
|
|
970
|
-
c === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: X.preview, style: { height: f }, children: /* @__PURE__ */ o.jsx(
|
|
1019
|
+
c === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: X.preview, style: { height: f }, children: /* @__PURE__ */ o.jsx(Ke, { className: X.preview_inner, children: _ }) })
|
|
971
1020
|
] })
|
|
972
1021
|
] });
|
|
973
1022
|
};
|
|
@@ -978,7 +1027,7 @@ var de = { exports: {} };
|
|
|
978
1027
|
http://jedwatson.github.io/classnames
|
|
979
1028
|
*/
|
|
980
1029
|
var qe;
|
|
981
|
-
function
|
|
1030
|
+
function On() {
|
|
982
1031
|
return qe || (qe = 1, (function(e) {
|
|
983
1032
|
(function() {
|
|
984
1033
|
var t = {}.hasOwnProperty;
|
|
@@ -1010,10 +1059,10 @@ function En() {
|
|
|
1010
1059
|
})();
|
|
1011
1060
|
})(de)), de.exports;
|
|
1012
1061
|
}
|
|
1013
|
-
var
|
|
1014
|
-
const ee = /* @__PURE__ */
|
|
1015
|
-
slotStack:
|
|
1016
|
-
},
|
|
1062
|
+
var Rn = On();
|
|
1063
|
+
const ee = /* @__PURE__ */ Zt(Rn), Dn = "_slotStack_6n2wy_5", Oe = {
|
|
1064
|
+
slotStack: Dn
|
|
1065
|
+
}, Ln = (e) => {
|
|
1017
1066
|
const {
|
|
1018
1067
|
userFlow: t,
|
|
1019
1068
|
pageId: a,
|
|
@@ -1025,17 +1074,17 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1025
1074
|
icon: d,
|
|
1026
1075
|
headerStatusColor: r,
|
|
1027
1076
|
...u
|
|
1028
|
-
} = e, f = r ? `palette_${r}_50` : void 0, _ =
|
|
1077
|
+
} = e, f = r ? `palette_${r}_50` : void 0, _ = E(
|
|
1029
1078
|
t,
|
|
1030
1079
|
a,
|
|
1031
1080
|
l && l.length > 0 ? l : null
|
|
1032
|
-
), h =
|
|
1081
|
+
), h = E(
|
|
1033
1082
|
t,
|
|
1034
1083
|
a,
|
|
1035
1084
|
n && n.length > 0 ? n : null
|
|
1036
|
-
), p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className:
|
|
1085
|
+
), p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Oe.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `data-card-body-${c}-${x}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Oe.slotStack, children: h.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `data-card-top-${c}-${x}`)) }) : void 0;
|
|
1037
1086
|
return /* @__PURE__ */ o.jsx(
|
|
1038
|
-
|
|
1087
|
+
ot,
|
|
1039
1088
|
{
|
|
1040
1089
|
...u,
|
|
1041
1090
|
icon: d,
|
|
@@ -1044,9 +1093,9 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1044
1093
|
children: p
|
|
1045
1094
|
}
|
|
1046
1095
|
);
|
|
1047
|
-
},
|
|
1048
|
-
dividerNotFront:
|
|
1049
|
-
},
|
|
1096
|
+
}, In = "_dividerNotFront_tze3j_1", Bn = {
|
|
1097
|
+
dividerNotFront: In
|
|
1098
|
+
}, Kn = (e) => /* @__PURE__ */ o.jsx(ct, { ...e, className: Bn.dividerNotFront }), Mn = (e, t, a) => {
|
|
1050
1099
|
const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
|
|
1051
1100
|
if (l.push(`${n}=${t}`), typeof a == "string") {
|
|
1052
1101
|
const u = (c == null ? void 0 : c.text) ?? "text";
|
|
@@ -1064,7 +1113,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1064
1113
|
const { type: s, url: c, method: i, headers: l } = e;
|
|
1065
1114
|
return s === "rest" ? {
|
|
1066
1115
|
type: "rest",
|
|
1067
|
-
url:
|
|
1116
|
+
url: Mn(e, t, a),
|
|
1068
1117
|
method: i,
|
|
1069
1118
|
headers: l,
|
|
1070
1119
|
data: (e == null ? void 0 : e.data) || {}
|
|
@@ -1080,7 +1129,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1080
1129
|
page: t
|
|
1081
1130
|
}
|
|
1082
1131
|
};
|
|
1083
|
-
}, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e,
|
|
1132
|
+
}, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Je = (e, t, a, s) => {
|
|
1084
1133
|
const c = L.query(e, t), i = c == null ? void 0 : c.map((r) => {
|
|
1085
1134
|
var u, f;
|
|
1086
1135
|
if (a) {
|
|
@@ -1110,7 +1159,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1110
1159
|
}, se = ({ withPadding: e = !1 }) => {
|
|
1111
1160
|
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: I.labelColor }, children: a });
|
|
1112
1161
|
return /* @__PURE__ */ o.jsx(
|
|
1113
|
-
|
|
1162
|
+
Tt,
|
|
1114
1163
|
{
|
|
1115
1164
|
formatter: t,
|
|
1116
1165
|
wrapperStyle: {
|
|
@@ -1120,7 +1169,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1120
1169
|
}
|
|
1121
1170
|
}
|
|
1122
1171
|
);
|
|
1123
|
-
},
|
|
1172
|
+
}, zn = ({
|
|
1124
1173
|
active: e,
|
|
1125
1174
|
payload: t,
|
|
1126
1175
|
label: a,
|
|
@@ -1146,12 +1195,12 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1146
1195
|
t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
|
|
1147
1196
|
] });
|
|
1148
1197
|
}, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
|
|
1149
|
-
|
|
1198
|
+
$t,
|
|
1150
1199
|
{
|
|
1151
|
-
content: /* @__PURE__ */ o.jsx(
|
|
1200
|
+
content: /* @__PURE__ */ o.jsx(zn, { tooltipKey: e })
|
|
1152
1201
|
}
|
|
1153
1202
|
), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
1154
|
-
|
|
1203
|
+
At,
|
|
1155
1204
|
{
|
|
1156
1205
|
dataKey: e,
|
|
1157
1206
|
hide: t,
|
|
@@ -1161,23 +1210,23 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1161
1210
|
}
|
|
1162
1211
|
}
|
|
1163
1212
|
), je = () => /* @__PURE__ */ o.jsx(
|
|
1164
|
-
|
|
1213
|
+
qt,
|
|
1165
1214
|
{
|
|
1166
1215
|
tick: {
|
|
1167
1216
|
fill: I.labelColor,
|
|
1168
1217
|
fontSize: I.fontSize
|
|
1169
1218
|
}
|
|
1170
1219
|
}
|
|
1171
|
-
),
|
|
1220
|
+
), Gn = (e) => {
|
|
1172
1221
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1173
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1222
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ot, { data: t, children: [
|
|
1174
1223
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1175
1224
|
/* @__PURE__ */ o.jsx(be, { dataKey: a }),
|
|
1176
1225
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1177
1226
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1178
1227
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1179
1228
|
s.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1180
|
-
|
|
1229
|
+
Rt,
|
|
1181
1230
|
{
|
|
1182
1231
|
type: "monotone",
|
|
1183
1232
|
dataKey: i,
|
|
@@ -1187,16 +1236,16 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1187
1236
|
i
|
|
1188
1237
|
))
|
|
1189
1238
|
] }) });
|
|
1190
|
-
},
|
|
1239
|
+
}, Un = (e) => {
|
|
1191
1240
|
const { data: t, yKeys: a, xKey: s, tooltipKey: c } = e;
|
|
1192
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1241
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
|
|
1193
1242
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1194
1243
|
/* @__PURE__ */ o.jsx(be, { hide: !0, dataKey: s }),
|
|
1195
1244
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1196
1245
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1197
1246
|
/* @__PURE__ */ o.jsx(se, { withPadding: !0 }),
|
|
1198
1247
|
a.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1199
|
-
|
|
1248
|
+
Lt,
|
|
1200
1249
|
{
|
|
1201
1250
|
dataKey: i,
|
|
1202
1251
|
fill: M[l % M.length]
|
|
@@ -1204,16 +1253,16 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1204
1253
|
i
|
|
1205
1254
|
))
|
|
1206
1255
|
] }) });
|
|
1207
|
-
},
|
|
1256
|
+
}, Jn = (e) => {
|
|
1208
1257
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1209
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1258
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(It, { data: t, children: [
|
|
1210
1259
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1211
1260
|
/* @__PURE__ */ o.jsx(be, { dataKey: a }),
|
|
1212
1261
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1213
1262
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1214
1263
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1215
1264
|
s.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1216
|
-
|
|
1265
|
+
Bt,
|
|
1217
1266
|
{
|
|
1218
1267
|
type: "monotone",
|
|
1219
1268
|
dataKey: i,
|
|
@@ -1224,7 +1273,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1224
1273
|
i
|
|
1225
1274
|
))
|
|
1226
1275
|
] }) });
|
|
1227
|
-
},
|
|
1276
|
+
}, Vn = (e) => {
|
|
1228
1277
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
|
|
1229
1278
|
cx: l,
|
|
1230
1279
|
cy: n,
|
|
@@ -1247,11 +1296,11 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1247
1296
|
}
|
|
1248
1297
|
);
|
|
1249
1298
|
};
|
|
1250
|
-
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(
|
|
1299
|
+
return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Kt, { children: [
|
|
1251
1300
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1252
1301
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1253
1302
|
/* @__PURE__ */ o.jsx(
|
|
1254
|
-
|
|
1303
|
+
Mt,
|
|
1255
1304
|
{
|
|
1256
1305
|
data: t,
|
|
1257
1306
|
dataKey: s[0],
|
|
@@ -1259,7 +1308,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1259
1308
|
label: i,
|
|
1260
1309
|
outerRadius: 120,
|
|
1261
1310
|
children: t.map((l, n) => /* @__PURE__ */ o.jsx(
|
|
1262
|
-
|
|
1311
|
+
zt,
|
|
1263
1312
|
{
|
|
1264
1313
|
fill: M[n % M.length]
|
|
1265
1314
|
},
|
|
@@ -1268,11 +1317,11 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1268
1317
|
}
|
|
1269
1318
|
)
|
|
1270
1319
|
] }) });
|
|
1271
|
-
},
|
|
1272
|
-
area:
|
|
1273
|
-
bar:
|
|
1274
|
-
line:
|
|
1275
|
-
pie:
|
|
1320
|
+
}, Hn = {
|
|
1321
|
+
area: Gn,
|
|
1322
|
+
bar: Un,
|
|
1323
|
+
line: Jn,
|
|
1324
|
+
pie: Vn
|
|
1276
1325
|
}, M = [
|
|
1277
1326
|
"var(--color-primitive-palette-1-50)",
|
|
1278
1327
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1298,11 +1347,11 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1298
1347
|
tooltipBg: "#fff",
|
|
1299
1348
|
tooltipColor: "#000",
|
|
1300
1349
|
tooltipBorderRadius: "4px"
|
|
1301
|
-
},
|
|
1302
|
-
const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n =
|
|
1350
|
+
}, Xn = (e) => {
|
|
1351
|
+
const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = Hn[l.type];
|
|
1303
1352
|
if (!n)
|
|
1304
1353
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1305
|
-
const { fetchDataSource: d } = K(), [r, u] =
|
|
1354
|
+
const { fetchDataSource: d } = K(), [r, u] = A(!1), [f, _] = A([]), h = async () => {
|
|
1306
1355
|
var m, y;
|
|
1307
1356
|
try {
|
|
1308
1357
|
u(!0);
|
|
@@ -1313,7 +1362,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1313
1362
|
b,
|
|
1314
1363
|
a,
|
|
1315
1364
|
!1
|
|
1316
|
-
), j = x ? (m =
|
|
1365
|
+
), j = x ? (m = Je(C == null ? void 0 : C.data, x, g)) == null ? void 0 : m.items : (y = C == null ? void 0 : C.data) == null ? void 0 : y.data;
|
|
1317
1366
|
_(j), u(!1);
|
|
1318
1367
|
} catch (x) {
|
|
1319
1368
|
alert(JSON.stringify(x)), u(!1);
|
|
@@ -1326,11 +1375,11 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1326
1375
|
...l,
|
|
1327
1376
|
data: f
|
|
1328
1377
|
};
|
|
1329
|
-
return r ? /* @__PURE__ */ o.jsx(
|
|
1330
|
-
},
|
|
1331
|
-
header:
|
|
1332
|
-
header_content:
|
|
1333
|
-
},
|
|
1378
|
+
return r ? /* @__PURE__ */ o.jsx(Me, { height: 400 }) : f.length > 0 ? n(p) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
|
|
1379
|
+
}, Wn = "_header_g1eri_1", Qn = "_header_content_g1eri_5", Re = {
|
|
1380
|
+
header: Wn,
|
|
1381
|
+
header_content: Qn
|
|
1382
|
+
}, Yn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Re.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Re.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(S, { children: t }, a)) }) }), Zn = (e) => {
|
|
1334
1383
|
const {
|
|
1335
1384
|
userFlow: t,
|
|
1336
1385
|
pageId: a,
|
|
@@ -1365,7 +1414,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1365
1414
|
g,
|
|
1366
1415
|
s
|
|
1367
1416
|
);
|
|
1368
|
-
b != null && b.data &&
|
|
1417
|
+
b != null && b.data && q(t, b == null ? void 0 : b.data);
|
|
1369
1418
|
break;
|
|
1370
1419
|
}
|
|
1371
1420
|
case "REDIRECT":
|
|
@@ -1384,7 +1433,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1384
1433
|
}
|
|
1385
1434
|
}, [c, _, a, l, s, n, t]), y = p.disabled ?? h;
|
|
1386
1435
|
return /* @__PURE__ */ o.jsx(
|
|
1387
|
-
|
|
1436
|
+
it,
|
|
1388
1437
|
{
|
|
1389
1438
|
...p,
|
|
1390
1439
|
disabled: y,
|
|
@@ -1392,9 +1441,9 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1392
1441
|
children: i
|
|
1393
1442
|
}
|
|
1394
1443
|
);
|
|
1395
|
-
},
|
|
1396
|
-
modalContent:
|
|
1397
|
-
},
|
|
1444
|
+
}, Fn = "_modalContent_p06ci_1", Pn = {
|
|
1445
|
+
modalContent: Fn
|
|
1446
|
+
}, es = ({
|
|
1398
1447
|
userFlow: e,
|
|
1399
1448
|
pageId: t,
|
|
1400
1449
|
responseKey: a,
|
|
@@ -1414,38 +1463,38 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1414
1463
|
...n
|
|
1415
1464
|
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
|
|
1416
1465
|
xe(e), ge(e, !1);
|
|
1417
|
-
}, [e, a]), p = Array.isArray(s) ?
|
|
1466
|
+
}, [e, a]), p = Array.isArray(s) ? E(e, t, s) : s, m = E(e, t, c), y = E(e, t, i);
|
|
1418
1467
|
return /* @__PURE__ */ o.jsx(
|
|
1419
|
-
|
|
1468
|
+
lt,
|
|
1420
1469
|
{
|
|
1421
1470
|
...f,
|
|
1422
1471
|
headerStatusColor: _,
|
|
1423
|
-
header: typeof p == "string" ? p : /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((x, g) => /* @__PURE__ */ o.jsx(
|
|
1424
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
1425
|
-
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((x, g) => /* @__PURE__ */ o.jsx(
|
|
1472
|
+
header: typeof p == "string" ? p : /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((x, g) => /* @__PURE__ */ o.jsx(S, { children: x }, `modal-header-${g}`)) }),
|
|
1473
|
+
children: /* @__PURE__ */ o.jsx("section", { className: Pn.modalContent, children: m.map((x, g) => /* @__PURE__ */ o.jsx(S, { children: x }, `modal-body-${g}`)) }),
|
|
1474
|
+
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((x, g) => /* @__PURE__ */ o.jsx(S, { children: x }, `modal-footer-${g}`)) }),
|
|
1426
1475
|
open: u,
|
|
1427
1476
|
onClose: h
|
|
1428
1477
|
}
|
|
1429
1478
|
);
|
|
1430
|
-
},
|
|
1479
|
+
}, ts = ({ userFlow: e, pageId: t }) => {
|
|
1431
1480
|
var i, l;
|
|
1432
|
-
const a =
|
|
1481
|
+
const a = Ht(e);
|
|
1433
1482
|
if (!a)
|
|
1434
1483
|
return null;
|
|
1435
1484
|
const s = [
|
|
1436
1485
|
...(a == null ? void 0 : a.components) || [],
|
|
1437
1486
|
...((i = a == null ? void 0 : a.header) == null ? void 0 : i.components) || [],
|
|
1438
1487
|
...((l = a == null ? void 0 : a.body) == null ? void 0 : l.components) || []
|
|
1439
|
-
], c =
|
|
1488
|
+
], c = E(
|
|
1440
1489
|
e,
|
|
1441
1490
|
t,
|
|
1442
1491
|
s
|
|
1443
1492
|
);
|
|
1444
1493
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
|
|
1445
1494
|
const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
|
|
1446
|
-
return /* @__PURE__ */ o.jsx(
|
|
1495
|
+
return /* @__PURE__ */ o.jsx(S, { children: n }, r);
|
|
1447
1496
|
}) });
|
|
1448
|
-
},
|
|
1497
|
+
}, ns = {
|
|
1449
1498
|
success: {
|
|
1450
1499
|
color: "success-opacity",
|
|
1451
1500
|
textColor: "success-60",
|
|
@@ -1471,8 +1520,8 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1471
1520
|
textColor: "neutral-70",
|
|
1472
1521
|
iconColor: "neutral-70"
|
|
1473
1522
|
}
|
|
1474
|
-
},
|
|
1475
|
-
const { content: t, variant: a = "neutral", ...s } = e, c =
|
|
1523
|
+
}, ss = (e) => {
|
|
1524
|
+
const { content: t, variant: a = "neutral", ...s } = e, c = ns[a], i = {
|
|
1476
1525
|
...s,
|
|
1477
1526
|
children: t,
|
|
1478
1527
|
color: (s == null ? void 0 : s.color) ?? c.color,
|
|
@@ -1480,10 +1529,10 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1480
1529
|
iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
|
|
1481
1530
|
};
|
|
1482
1531
|
return /* @__PURE__ */ o.jsx(he, { ...i });
|
|
1483
|
-
},
|
|
1532
|
+
}, as = (e) => {
|
|
1484
1533
|
const { content: t } = e;
|
|
1485
|
-
return /* @__PURE__ */ o.jsx(
|
|
1486
|
-
},
|
|
1534
|
+
return /* @__PURE__ */ o.jsx(Ke, { children: t });
|
|
1535
|
+
}, rs = (e) => {
|
|
1487
1536
|
const {
|
|
1488
1537
|
userFlow: t,
|
|
1489
1538
|
pageId: a,
|
|
@@ -1513,7 +1562,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1513
1562
|
y,
|
|
1514
1563
|
s
|
|
1515
1564
|
);
|
|
1516
|
-
x != null && x.data &&
|
|
1565
|
+
x != null && x.data && q(t, x == null ? void 0 : x.data);
|
|
1517
1566
|
break;
|
|
1518
1567
|
}
|
|
1519
1568
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1524,7 +1573,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1524
1573
|
s,
|
|
1525
1574
|
i
|
|
1526
1575
|
);
|
|
1527
|
-
x != null && x.data &&
|
|
1576
|
+
x != null && x.data && q(t, x == null ? void 0 : x.data);
|
|
1528
1577
|
break;
|
|
1529
1578
|
}
|
|
1530
1579
|
case "CLOSE_MODAL":
|
|
@@ -1545,15 +1594,15 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1545
1594
|
}
|
|
1546
1595
|
}, [c, i, a, s, t]);
|
|
1547
1596
|
return /* @__PURE__ */ o.jsx(
|
|
1548
|
-
|
|
1597
|
+
dt,
|
|
1549
1598
|
{
|
|
1550
1599
|
..._,
|
|
1551
1600
|
disabled: h,
|
|
1552
1601
|
onClick: () => !h && (n ?? p)()
|
|
1553
1602
|
}
|
|
1554
1603
|
);
|
|
1555
|
-
},
|
|
1556
|
-
row:
|
|
1604
|
+
}, os = "_row_1bqj4_1", cs = "_row_column_1bqj4_65", J = {
|
|
1605
|
+
row: os,
|
|
1557
1606
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
1558
1607
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
1559
1608
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -1574,7 +1623,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1574
1623
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
1575
1624
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
1576
1625
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
1577
|
-
row_column:
|
|
1626
|
+
row_column: cs,
|
|
1578
1627
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
1579
1628
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
1580
1629
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -1595,7 +1644,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1595
1644
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
1596
1645
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
1597
1646
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
1598
|
-
},
|
|
1647
|
+
}, is = (e) => {
|
|
1599
1648
|
const {
|
|
1600
1649
|
userFlow: t,
|
|
1601
1650
|
pageId: a,
|
|
@@ -1635,7 +1684,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1635
1684
|
J[`row__align-${n}`]
|
|
1636
1685
|
),
|
|
1637
1686
|
children: d == null ? void 0 : d.map((r, u) => {
|
|
1638
|
-
const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ =
|
|
1687
|
+
const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ = E(t, a, r.items);
|
|
1639
1688
|
return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1640
1689
|
"div",
|
|
1641
1690
|
{
|
|
@@ -1654,7 +1703,7 @@ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
|
|
|
1654
1703
|
}
|
|
1655
1704
|
);
|
|
1656
1705
|
};
|
|
1657
|
-
function
|
|
1706
|
+
function Ve({
|
|
1658
1707
|
userFlow: e,
|
|
1659
1708
|
pageId: t,
|
|
1660
1709
|
responseKey: a,
|
|
@@ -1663,7 +1712,7 @@ function Je({
|
|
|
1663
1712
|
isMulti: i = !1,
|
|
1664
1713
|
debounceMs: l
|
|
1665
1714
|
}) {
|
|
1666
|
-
const n =
|
|
1715
|
+
const n = Fe(null);
|
|
1667
1716
|
z(() => () => {
|
|
1668
1717
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
1669
1718
|
}, []);
|
|
@@ -1673,7 +1722,7 @@ function Je({
|
|
|
1673
1722
|
const f = {
|
|
1674
1723
|
...(h = v.getState()[e]) == null ? void 0 : h.entries
|
|
1675
1724
|
};
|
|
1676
|
-
if (u ? f[a] = u : delete f[a],
|
|
1725
|
+
if (u ? (f[a] = u, O(e, f)) : (delete f[a], Xt(e, a)), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
1677
1726
|
try {
|
|
1678
1727
|
const m = await c(
|
|
1679
1728
|
e,
|
|
@@ -1682,7 +1731,7 @@ function Je({
|
|
|
1682
1731
|
a,
|
|
1683
1732
|
s === "GO_TO_NEXT_UI"
|
|
1684
1733
|
);
|
|
1685
|
-
m != null && m.data &&
|
|
1734
|
+
m != null && m.data && q(e, m.data);
|
|
1686
1735
|
} catch (p) {
|
|
1687
1736
|
console.error("[useSelectChange] Failed to fetch next UI", p);
|
|
1688
1737
|
}
|
|
@@ -1706,21 +1755,21 @@ function Je({
|
|
|
1706
1755
|
[i, l, d]
|
|
1707
1756
|
);
|
|
1708
1757
|
}
|
|
1709
|
-
const
|
|
1758
|
+
const ls = /\{([^}]+)\}/g, ds = (e, t) => {
|
|
1710
1759
|
var a;
|
|
1711
|
-
return t.includes("{") ? t.replace(
|
|
1760
|
+
return t.includes("{") ? t.replace(ls, (s, c) => {
|
|
1712
1761
|
var l;
|
|
1713
1762
|
const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
|
|
1714
1763
|
return i != null ? String(i) : "";
|
|
1715
1764
|
}) : (a = L.query(e, t)) == null ? void 0 : a[0];
|
|
1716
|
-
},
|
|
1765
|
+
}, _s = (e, t, a, s) => {
|
|
1717
1766
|
const c = L.query(e, t);
|
|
1718
1767
|
return (c == null ? void 0 : c.map((i) => {
|
|
1719
1768
|
var d;
|
|
1720
|
-
const l =
|
|
1769
|
+
const l = ds(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
|
|
1721
1770
|
return { label: l, value: n };
|
|
1722
1771
|
})) ?? [];
|
|
1723
|
-
},
|
|
1772
|
+
}, us = (e, t, a, s = 10) => {
|
|
1724
1773
|
var n, d;
|
|
1725
1774
|
let c, i;
|
|
1726
1775
|
if (a) {
|
|
@@ -1736,9 +1785,9 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1736
1785
|
total: i,
|
|
1737
1786
|
hasMore: l
|
|
1738
1787
|
};
|
|
1739
|
-
},
|
|
1740
|
-
selectNotFront:
|
|
1741
|
-
},
|
|
1788
|
+
}, hs = "_selectNotFront_ch3v5_1", He = {
|
|
1789
|
+
selectNotFront: hs
|
|
1790
|
+
}, fs = ({
|
|
1742
1791
|
userFlow: e,
|
|
1743
1792
|
pageId: t,
|
|
1744
1793
|
responseKey: a,
|
|
@@ -1751,17 +1800,17 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1751
1800
|
}) => {
|
|
1752
1801
|
const r = {
|
|
1753
1802
|
...d
|
|
1754
|
-
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] =
|
|
1803
|
+
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = A((r == null ? void 0 : r.value) ?? ""), { disabled: p } = B(
|
|
1755
1804
|
e,
|
|
1756
1805
|
l
|
|
1757
1806
|
), m = (r == null ? void 0 : r.disabled) ?? p, y = T(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), x = T(() => {
|
|
1758
1807
|
const j = r != null && r.isMulti ? _ : [_], N = {};
|
|
1759
1808
|
return Array.isArray(j) && j.forEach((w) => {
|
|
1760
1809
|
if (!w) return;
|
|
1761
|
-
const
|
|
1762
|
-
N[
|
|
1810
|
+
const k = JSON.stringify(w.value), D = JSON.stringify(w.label);
|
|
1811
|
+
N[k] = w, D in N || (N[D] = w);
|
|
1763
1812
|
}), N;
|
|
1764
|
-
}, [_]), g =
|
|
1813
|
+
}, [_]), g = Ve({
|
|
1765
1814
|
userFlow: e,
|
|
1766
1815
|
pageId: t,
|
|
1767
1816
|
responseKey: a,
|
|
@@ -1773,9 +1822,9 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1773
1822
|
h(j), g(j);
|
|
1774
1823
|
}, C = async (j, N, { page: w }) => {
|
|
1775
1824
|
const {
|
|
1776
|
-
jsonPathLabel:
|
|
1825
|
+
jsonPathLabel: k,
|
|
1777
1826
|
jsonPathOptions: D,
|
|
1778
|
-
jsonPathValue:
|
|
1827
|
+
jsonPathValue: $,
|
|
1779
1828
|
jsonPathPagination: G
|
|
1780
1829
|
} = c, U = pe(
|
|
1781
1830
|
c,
|
|
@@ -1785,29 +1834,29 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1785
1834
|
U,
|
|
1786
1835
|
e,
|
|
1787
1836
|
!1
|
|
1788
|
-
), oe = re == null ? void 0 : re.data,
|
|
1837
|
+
), oe = re == null ? void 0 : re.data, We = oe ? _s(
|
|
1789
1838
|
oe,
|
|
1790
1839
|
D,
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
) : [], { hasMore:
|
|
1840
|
+
k,
|
|
1841
|
+
$
|
|
1842
|
+
) : [], { hasMore: Qe } = us(
|
|
1794
1843
|
oe,
|
|
1795
1844
|
w,
|
|
1796
1845
|
G
|
|
1797
1846
|
);
|
|
1798
1847
|
return {
|
|
1799
|
-
options:
|
|
1800
|
-
hasMore:
|
|
1848
|
+
options: We,
|
|
1849
|
+
hasMore: Qe,
|
|
1801
1850
|
additional: {
|
|
1802
1851
|
page: j ? 1 : w + 1
|
|
1803
1852
|
}
|
|
1804
1853
|
};
|
|
1805
1854
|
};
|
|
1806
1855
|
return /* @__PURE__ */ o.jsx(
|
|
1807
|
-
|
|
1856
|
+
_t,
|
|
1808
1857
|
{
|
|
1809
1858
|
...r,
|
|
1810
|
-
className:
|
|
1859
|
+
className: He.selectNotFront,
|
|
1811
1860
|
label: y,
|
|
1812
1861
|
value: _,
|
|
1813
1862
|
disabled: m,
|
|
@@ -1822,7 +1871,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1822
1871
|
debounceTimeout: 350
|
|
1823
1872
|
}
|
|
1824
1873
|
);
|
|
1825
|
-
},
|
|
1874
|
+
}, ms = ({
|
|
1826
1875
|
userFlow: e,
|
|
1827
1876
|
pageId: t,
|
|
1828
1877
|
responseKey: a,
|
|
@@ -1835,10 +1884,10 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1835
1884
|
}) => {
|
|
1836
1885
|
const r = {
|
|
1837
1886
|
...d
|
|
1838
|
-
}, { getNextUI: u } = K(), [f, _] =
|
|
1887
|
+
}, { getNextUI: u } = K(), [f, _] = A(r.value || ""), { disabled: h } = B(
|
|
1839
1888
|
e,
|
|
1840
1889
|
l
|
|
1841
|
-
), p = (r == null ? void 0 : r.disabled) ?? h, m = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), y =
|
|
1890
|
+
), p = (r == null ? void 0 : r.disabled) ?? h, m = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), y = Ve({
|
|
1842
1891
|
userFlow: e,
|
|
1843
1892
|
pageId: t,
|
|
1844
1893
|
responseKey: a,
|
|
@@ -1850,33 +1899,33 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1850
1899
|
_(g), y(g);
|
|
1851
1900
|
};
|
|
1852
1901
|
return /* @__PURE__ */ o.jsx(
|
|
1853
|
-
|
|
1902
|
+
ut,
|
|
1854
1903
|
{
|
|
1855
1904
|
...r,
|
|
1856
|
-
className:
|
|
1905
|
+
className: He.selectNotFront,
|
|
1857
1906
|
label: m,
|
|
1858
1907
|
value: f,
|
|
1859
1908
|
disabled: p,
|
|
1860
1909
|
onChange: (g) => !p && x(g)
|
|
1861
1910
|
}
|
|
1862
1911
|
);
|
|
1863
|
-
},
|
|
1912
|
+
}, ys = (e) => {
|
|
1864
1913
|
const { dataSource: t } = e;
|
|
1865
|
-
return t ? /* @__PURE__ */ o.jsx(
|
|
1866
|
-
},
|
|
1867
|
-
spacing:
|
|
1868
|
-
spacing__xxs:
|
|
1869
|
-
spacing__xs:
|
|
1870
|
-
spacing__sm:
|
|
1871
|
-
spacing__md:
|
|
1872
|
-
spacing__lg:
|
|
1873
|
-
spacing__xl:
|
|
1874
|
-
spacing__xxl:
|
|
1875
|
-
spacing__xxxl:
|
|
1876
|
-
},
|
|
1877
|
-
const { size: t } = e, a = ee(
|
|
1914
|
+
return t ? /* @__PURE__ */ o.jsx(fs, { ...e }) : /* @__PURE__ */ o.jsx(ms, { ...e });
|
|
1915
|
+
}, xs = "_spacing_19hqa_1", gs = "_spacing__xxs_19hqa_1", ps = "_spacing__xs_19hqa_4", bs = "_spacing__sm_19hqa_7", js = "_spacing__md_19hqa_10", ws = "_spacing__lg_19hqa_13", Cs = "_spacing__xl_19hqa_16", Ns = "_spacing__xxl_19hqa_19", vs = "_spacing__xxxl_19hqa_22", De = {
|
|
1916
|
+
spacing: xs,
|
|
1917
|
+
spacing__xxs: gs,
|
|
1918
|
+
spacing__xs: ps,
|
|
1919
|
+
spacing__sm: bs,
|
|
1920
|
+
spacing__md: js,
|
|
1921
|
+
spacing__lg: ws,
|
|
1922
|
+
spacing__xl: Cs,
|
|
1923
|
+
spacing__xxl: Ns,
|
|
1924
|
+
spacing__xxxl: vs
|
|
1925
|
+
}, Es = (e) => {
|
|
1926
|
+
const { size: t } = e, a = ee(De.spacing, De[`spacing__${t}`]);
|
|
1878
1927
|
return /* @__PURE__ */ o.jsx("div", { className: a });
|
|
1879
|
-
},
|
|
1928
|
+
}, Ss = (e) => {
|
|
1880
1929
|
const {
|
|
1881
1930
|
userFlow: t,
|
|
1882
1931
|
pageId: a,
|
|
@@ -1889,7 +1938,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1889
1938
|
...r
|
|
1890
1939
|
} = e, u = {
|
|
1891
1940
|
...r
|
|
1892
|
-
}, { getNextUI: f } = K(), [_, h] =
|
|
1941
|
+
}, { getNextUI: f } = K(), [_, h] = A(l || !1), { disabled: p } = B(
|
|
1893
1942
|
t,
|
|
1894
1943
|
d
|
|
1895
1944
|
), m = (u == null ? void 0 : u.disabled) ?? p, y = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
|
|
@@ -1909,7 +1958,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1909
1958
|
C,
|
|
1910
1959
|
s
|
|
1911
1960
|
);
|
|
1912
|
-
j != null && j.data &&
|
|
1961
|
+
j != null && j.data && q(t, j == null ? void 0 : j.data);
|
|
1913
1962
|
break;
|
|
1914
1963
|
default:
|
|
1915
1964
|
console.warn(`Unhandled actionType: ${c}`);
|
|
@@ -1920,7 +1969,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1920
1969
|
}
|
|
1921
1970
|
}, [t, a, s, c, _]);
|
|
1922
1971
|
return /* @__PURE__ */ o.jsx(
|
|
1923
|
-
|
|
1972
|
+
ht,
|
|
1924
1973
|
{
|
|
1925
1974
|
...u,
|
|
1926
1975
|
label: y,
|
|
@@ -1929,26 +1978,26 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1929
1978
|
onChange: () => !m && x()
|
|
1930
1979
|
}
|
|
1931
1980
|
);
|
|
1932
|
-
},
|
|
1933
|
-
tableSkeleton:
|
|
1934
|
-
tableArrayPills:
|
|
1935
|
-
},
|
|
1981
|
+
}, ks = "_tableSkeleton_3nr9n_1", Ts = "_tableArrayPills_3nr9n_7", Xe = {
|
|
1982
|
+
tableSkeleton: ks,
|
|
1983
|
+
tableArrayPills: Ts
|
|
1984
|
+
}, $s = ({ values: e }) => {
|
|
1936
1985
|
const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
|
|
1937
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1986
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Xe.tableArrayPills, children: [
|
|
1938
1987
|
a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
|
|
1939
1988
|
s > 0 && /* @__PURE__ */ o.jsxs(he, { outlined: !0, children: [
|
|
1940
1989
|
"+",
|
|
1941
1990
|
s
|
|
1942
1991
|
] })
|
|
1943
1992
|
] });
|
|
1944
|
-
},
|
|
1993
|
+
}, As = ({
|
|
1945
1994
|
userFlow: e,
|
|
1946
1995
|
pageId: t,
|
|
1947
1996
|
tableResponseKey: a,
|
|
1948
1997
|
component: s,
|
|
1949
1998
|
rowData: c
|
|
1950
1999
|
}) => {
|
|
1951
|
-
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d =
|
|
2000
|
+
const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d = E(e, t, [
|
|
1952
2001
|
{ ...s }
|
|
1953
2002
|
]), r = (d == null ? void 0 : d[0]) || null;
|
|
1954
2003
|
if (!r) return null;
|
|
@@ -1972,7 +2021,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1972
2021
|
x,
|
|
1973
2022
|
f
|
|
1974
2023
|
);
|
|
1975
|
-
g != null && g.data &&
|
|
2024
|
+
g != null && g.data && q(e, g == null ? void 0 : g.data);
|
|
1976
2025
|
break;
|
|
1977
2026
|
}
|
|
1978
2027
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1983,7 +2032,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
1983
2032
|
f,
|
|
1984
2033
|
_
|
|
1985
2034
|
);
|
|
1986
|
-
g != null && g.data &&
|
|
2035
|
+
g != null && g.data && q(e, g == null ? void 0 : g.data);
|
|
1987
2036
|
break;
|
|
1988
2037
|
}
|
|
1989
2038
|
case "GET_DATA_SOURCE": {
|
|
@@ -2013,7 +2062,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2013
2062
|
N,
|
|
2014
2063
|
f
|
|
2015
2064
|
);
|
|
2016
|
-
w != null && w.data &&
|
|
2065
|
+
w != null && w.data && q(e, w == null ? void 0 : w.data);
|
|
2017
2066
|
break;
|
|
2018
2067
|
}
|
|
2019
2068
|
default:
|
|
@@ -2024,18 +2073,18 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2024
2073
|
alert(JSON.stringify(x));
|
|
2025
2074
|
}
|
|
2026
2075
|
}, [u, _, t, f, e]);
|
|
2027
|
-
return
|
|
2076
|
+
return Pe(r, {
|
|
2028
2077
|
onClick: h
|
|
2029
2078
|
});
|
|
2030
|
-
},
|
|
2031
|
-
|
|
2079
|
+
}, qs = () => /* @__PURE__ */ o.jsx("div", { className: Xe.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
2080
|
+
Me,
|
|
2032
2081
|
{
|
|
2033
2082
|
maxWidth: "100%",
|
|
2034
2083
|
height: 42,
|
|
2035
2084
|
radius: 8
|
|
2036
2085
|
},
|
|
2037
2086
|
`tableSkeletonBase${t}`
|
|
2038
|
-
)) }),
|
|
2087
|
+
)) }), Os = ({
|
|
2039
2088
|
userFlow: e,
|
|
2040
2089
|
pageId: t,
|
|
2041
2090
|
responseKey: a,
|
|
@@ -2045,17 +2094,17 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2045
2094
|
...l
|
|
2046
2095
|
}) => {
|
|
2047
2096
|
var b, C, j;
|
|
2048
|
-
const { fetchDataSource: n } = K(), [d, r] =
|
|
2097
|
+
const { fetchDataSource: n } = K(), [d, r] = A(!1), [u, f] = A(1), [_, h] = A(null), p = T(() => {
|
|
2049
2098
|
if (i != null && i.length)
|
|
2050
2099
|
return i.map((N, w) => ({
|
|
2051
|
-
renderContent: (
|
|
2052
|
-
|
|
2100
|
+
renderContent: (k) => /* @__PURE__ */ o.jsx(
|
|
2101
|
+
As,
|
|
2053
2102
|
{
|
|
2054
2103
|
userFlow: e,
|
|
2055
2104
|
pageId: t,
|
|
2056
2105
|
tableResponseKey: a,
|
|
2057
2106
|
component: N,
|
|
2058
|
-
rowData:
|
|
2107
|
+
rowData: k
|
|
2059
2108
|
},
|
|
2060
2109
|
`tableRowAction${w}`
|
|
2061
2110
|
)
|
|
@@ -2063,19 +2112,19 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2063
2112
|
}, [i, e, t]), m = async (N = 1) => {
|
|
2064
2113
|
try {
|
|
2065
2114
|
r(!0);
|
|
2066
|
-
const { jsonPathData: w, mapperData:
|
|
2115
|
+
const { jsonPathData: w, mapperData: k, jsonPathPagination: D } = c, $ = pe(
|
|
2067
2116
|
c,
|
|
2068
2117
|
N
|
|
2069
2118
|
), G = await n(
|
|
2070
|
-
|
|
2119
|
+
$,
|
|
2071
2120
|
e,
|
|
2072
2121
|
!1
|
|
2073
2122
|
);
|
|
2074
2123
|
h(
|
|
2075
|
-
|
|
2124
|
+
Je(
|
|
2076
2125
|
G == null ? void 0 : G.data,
|
|
2077
2126
|
w,
|
|
2078
|
-
|
|
2127
|
+
k,
|
|
2079
2128
|
D
|
|
2080
2129
|
)
|
|
2081
2130
|
), r(!1);
|
|
@@ -2089,14 +2138,14 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2089
2138
|
m();
|
|
2090
2139
|
}, []);
|
|
2091
2140
|
const x = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((N) => {
|
|
2092
|
-
var
|
|
2093
|
-
return ((
|
|
2141
|
+
var k;
|
|
2142
|
+
return ((k = _ == null ? void 0 : _.items) == null ? void 0 : k.some(
|
|
2094
2143
|
(D) => Array.isArray(N != null && N.accessor ? D[N == null ? void 0 : N.accessor] : void 0)
|
|
2095
2144
|
)) ? {
|
|
2096
2145
|
...N,
|
|
2097
2146
|
renderCell: (D) => {
|
|
2098
|
-
const
|
|
2099
|
-
return Array.isArray(
|
|
2147
|
+
const $ = N.accessor ? D[N.accessor] : void 0;
|
|
2148
|
+
return Array.isArray($) ? /* @__PURE__ */ o.jsx($s, { values: $ }) : $ ?? "";
|
|
2100
2149
|
}
|
|
2101
2150
|
} : N;
|
|
2102
2151
|
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
@@ -2105,10 +2154,10 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2105
2154
|
columns: x,
|
|
2106
2155
|
rightActions: p
|
|
2107
2156
|
};
|
|
2108
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(
|
|
2109
|
-
/* @__PURE__ */ o.jsx(
|
|
2157
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(qs, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2158
|
+
/* @__PURE__ */ o.jsx(ft, { ...g }),
|
|
2110
2159
|
(_ == null ? void 0 : _.pagination) && ((C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
2111
|
-
|
|
2160
|
+
mt,
|
|
2112
2161
|
{
|
|
2113
2162
|
classname: { global: "row__end" },
|
|
2114
2163
|
page: u,
|
|
@@ -2118,12 +2167,12 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2118
2167
|
}
|
|
2119
2168
|
)
|
|
2120
2169
|
] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2121
|
-
},
|
|
2122
|
-
tabsPanel:
|
|
2123
|
-
},
|
|
2124
|
-
const s =
|
|
2125
|
-
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2126
|
-
},
|
|
2170
|
+
}, Rs = "_tabsPanel_kvslb_1", Ds = {
|
|
2171
|
+
tabsPanel: Rs
|
|
2172
|
+
}, Ls = ({ userFlow: e, pageId: t, components: a }) => {
|
|
2173
|
+
const s = E(e, t, a);
|
|
2174
|
+
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: Ds.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(S, { children: c }, `tabs-panel-${i}`)) }) : null;
|
|
2175
|
+
}, Is = ({
|
|
2127
2176
|
userFlow: e,
|
|
2128
2177
|
pageId: t,
|
|
2129
2178
|
hash: a,
|
|
@@ -2136,7 +2185,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2136
2185
|
label: r.label,
|
|
2137
2186
|
disabled: r.disabled,
|
|
2138
2187
|
children: /* @__PURE__ */ o.jsx(
|
|
2139
|
-
|
|
2188
|
+
Ls,
|
|
2140
2189
|
{
|
|
2141
2190
|
userFlow: e,
|
|
2142
2191
|
pageId: t,
|
|
@@ -2153,7 +2202,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2153
2202
|
O(e, u);
|
|
2154
2203
|
};
|
|
2155
2204
|
return /* @__PURE__ */ o.jsx(
|
|
2156
|
-
|
|
2205
|
+
yt,
|
|
2157
2206
|
{
|
|
2158
2207
|
className: i,
|
|
2159
2208
|
activeIndex: c,
|
|
@@ -2161,9 +2210,9 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2161
2210
|
onClick: d
|
|
2162
2211
|
}
|
|
2163
2212
|
);
|
|
2164
|
-
},
|
|
2165
|
-
textFieldNotFront:
|
|
2166
|
-
},
|
|
2213
|
+
}, Bs = "_textFieldNotFront_1n8fy_1", Ks = {
|
|
2214
|
+
textFieldNotFront: Bs
|
|
2215
|
+
}, Ms = (e) => {
|
|
2167
2216
|
const {
|
|
2168
2217
|
userFlow: t,
|
|
2169
2218
|
pageId: a,
|
|
@@ -2175,7 +2224,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2175
2224
|
...d
|
|
2176
2225
|
} = e, r = {
|
|
2177
2226
|
...d
|
|
2178
|
-
}, [u, f] =
|
|
2227
|
+
}, [u, f] = A((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
|
|
2179
2228
|
t,
|
|
2180
2229
|
n
|
|
2181
2230
|
), h = (r == null ? void 0 : r.disabled) ?? _, p = T(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (y) => {
|
|
@@ -2190,10 +2239,10 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2190
2239
|
return z(() => {
|
|
2191
2240
|
f((r == null ? void 0 : r.value) ?? "");
|
|
2192
2241
|
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2193
|
-
|
|
2242
|
+
xt,
|
|
2194
2243
|
{
|
|
2195
2244
|
...r,
|
|
2196
|
-
className:
|
|
2245
|
+
className: Ks.textFieldNotFront,
|
|
2197
2246
|
allowClear: !1,
|
|
2198
2247
|
label: p,
|
|
2199
2248
|
value: u,
|
|
@@ -2201,7 +2250,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2201
2250
|
onChange: (y) => !h && m(y)
|
|
2202
2251
|
}
|
|
2203
2252
|
);
|
|
2204
|
-
},
|
|
2253
|
+
}, zs = ({
|
|
2205
2254
|
userFlow: e,
|
|
2206
2255
|
pageId: t,
|
|
2207
2256
|
responseKey: a,
|
|
@@ -2237,10 +2286,10 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2237
2286
|
onClose: n
|
|
2238
2287
|
});
|
|
2239
2288
|
}, [n, e]), null;
|
|
2240
|
-
},
|
|
2241
|
-
accordion:
|
|
2242
|
-
accordionBody:
|
|
2243
|
-
},
|
|
2289
|
+
}, Gs = "_accordion_1ri2t_1", Us = "_accordionBody_1ri2t_8", Le = {
|
|
2290
|
+
accordion: Gs,
|
|
2291
|
+
accordionBody: Us
|
|
2292
|
+
}, Js = (e) => {
|
|
2244
2293
|
const {
|
|
2245
2294
|
userFlow: t,
|
|
2246
2295
|
pageId: a,
|
|
@@ -2250,12 +2299,12 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2250
2299
|
actionContent: l,
|
|
2251
2300
|
components: n,
|
|
2252
2301
|
...d
|
|
2253
|
-
} = e, { getNextUI: r } = K(), [u, f] =
|
|
2302
|
+
} = e, { getNextUI: r } = K(), [u, f] = A(
|
|
2254
2303
|
d.checkboxChecked || !1
|
|
2255
2304
|
), { disabled: _ } = B(
|
|
2256
2305
|
t,
|
|
2257
2306
|
c
|
|
2258
|
-
), h =
|
|
2307
|
+
), h = E(t, a, n), p = l ? E(t, a, l) : void 0, m = i ? E(t, a, i) : void 0, y = R(
|
|
2259
2308
|
async (b) => {
|
|
2260
2309
|
var C;
|
|
2261
2310
|
try {
|
|
@@ -2272,7 +2321,7 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2272
2321
|
N,
|
|
2273
2322
|
s
|
|
2274
2323
|
);
|
|
2275
|
-
w != null && w.data &&
|
|
2324
|
+
w != null && w.data && q(t, w == null ? void 0 : w.data);
|
|
2276
2325
|
}
|
|
2277
2326
|
} catch (j) {
|
|
2278
2327
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
@@ -2281,20 +2330,20 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2281
2330
|
[t, a, s, d.actionType, r]
|
|
2282
2331
|
), x = d.disabled || _, g = {
|
|
2283
2332
|
...d,
|
|
2284
|
-
className:
|
|
2333
|
+
className: Le.accordion,
|
|
2285
2334
|
disabled: x,
|
|
2286
2335
|
checkboxChecked: u,
|
|
2287
2336
|
onChanceCheckbox: d.hasCheckbox ? y : void 0,
|
|
2288
|
-
actionContent: p ? /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((b, C) => /* @__PURE__ */ o.jsx(
|
|
2289
|
-
customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((b, C) => /* @__PURE__ */ o.jsx(
|
|
2290
|
-
children: h ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2337
|
+
actionContent: p ? /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-action-${C}`)) }) : void 0,
|
|
2338
|
+
customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-custom-${C}`)) }) : void 0,
|
|
2339
|
+
children: h ? /* @__PURE__ */ o.jsx("section", { className: Le.accordionBody, children: h.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-child-${C}`)) }) : void 0
|
|
2291
2340
|
};
|
|
2292
|
-
return /* @__PURE__ */ o.jsx(
|
|
2293
|
-
},
|
|
2294
|
-
drawer:
|
|
2295
|
-
drawerBody:
|
|
2296
|
-
drawerFooter:
|
|
2297
|
-
},
|
|
2341
|
+
return /* @__PURE__ */ o.jsx(gt, { ...g });
|
|
2342
|
+
}, Vs = "_drawer_13pxo_1", Hs = "_drawerBody_13pxo_5", Xs = "_drawerFooter_13pxo_11", ue = {
|
|
2343
|
+
drawer: Vs,
|
|
2344
|
+
drawerBody: Hs,
|
|
2345
|
+
drawerFooter: Xs
|
|
2346
|
+
}, Ws = ({
|
|
2298
2347
|
userFlow: e,
|
|
2299
2348
|
pageId: t,
|
|
2300
2349
|
responseKey: a,
|
|
@@ -2315,28 +2364,28 @@ const ss = /\{([^}]+)\}/g, as = (e, t) => {
|
|
|
2315
2364
|
children: null
|
|
2316
2365
|
}, f = R(() => {
|
|
2317
2366
|
xe(e), Z(e, !1);
|
|
2318
|
-
}, [e]), _ = Array.isArray(s) ?
|
|
2367
|
+
}, [e]), _ = Array.isArray(s) ? E(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = E(e, t, c), p = i ? E(e, t, i) : void 0;
|
|
2319
2368
|
return /* @__PURE__ */ o.jsx(
|
|
2320
|
-
|
|
2369
|
+
pt,
|
|
2321
2370
|
{
|
|
2322
2371
|
...u,
|
|
2323
2372
|
className: ue.drawer,
|
|
2324
2373
|
isOpen: r,
|
|
2325
2374
|
onClose: f,
|
|
2326
2375
|
heightGap: 0,
|
|
2327
|
-
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, y) => /* @__PURE__ */ o.jsx(
|
|
2328
|
-
children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, y) => /* @__PURE__ */ o.jsx(
|
|
2329
|
-
footer: p ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: p.map((m, y) => /* @__PURE__ */ o.jsx(
|
|
2376
|
+
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-header-${y}`)) : _ }) : void 0,
|
|
2377
|
+
children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-body-${y}`)) }),
|
|
2378
|
+
footer: p ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: p.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-footer-${y}`)) }) : void 0
|
|
2330
2379
|
}
|
|
2331
2380
|
);
|
|
2332
2381
|
};
|
|
2333
|
-
function
|
|
2382
|
+
function la({
|
|
2334
2383
|
routes: e,
|
|
2335
2384
|
renderPage: t,
|
|
2336
2385
|
renderFallback: a,
|
|
2337
2386
|
redirectTo: s = "/"
|
|
2338
2387
|
}) {
|
|
2339
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2388
|
+
return /* @__PURE__ */ o.jsxs(Gt, { children: [
|
|
2340
2389
|
e.map((c) => /* @__PURE__ */ o.jsx(
|
|
2341
2390
|
Ce,
|
|
2342
2391
|
{
|
|
@@ -2345,16 +2394,16 @@ function sa({
|
|
|
2345
2394
|
},
|
|
2346
2395
|
`${c.path}:${c.sessionName}`
|
|
2347
2396
|
)),
|
|
2348
|
-
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(
|
|
2397
|
+
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(Ut, { to: s, replace: !0 }) })
|
|
2349
2398
|
] });
|
|
2350
2399
|
}
|
|
2351
|
-
function
|
|
2400
|
+
function da({
|
|
2352
2401
|
sessionName: e,
|
|
2353
2402
|
apiConfig: t,
|
|
2354
2403
|
onResolveComponentProps: a,
|
|
2355
2404
|
children: s
|
|
2356
2405
|
}) {
|
|
2357
|
-
const c =
|
|
2406
|
+
const c = Qs(
|
|
2358
2407
|
e,
|
|
2359
2408
|
t,
|
|
2360
2409
|
null,
|
|
@@ -2365,8 +2414,8 @@ function aa({
|
|
|
2365
2414
|
s
|
|
2366
2415
|
] });
|
|
2367
2416
|
}
|
|
2368
|
-
const
|
|
2369
|
-
const i =
|
|
2417
|
+
const Ie = (e, t, a, s, c) => {
|
|
2418
|
+
const i = E(
|
|
2370
2419
|
e,
|
|
2371
2420
|
t,
|
|
2372
2421
|
(s == null ? void 0 : s.components) || null,
|
|
@@ -2375,7 +2424,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2375
2424
|
switch (a) {
|
|
2376
2425
|
case "body":
|
|
2377
2426
|
return /* @__PURE__ */ o.jsx(
|
|
2378
|
-
|
|
2427
|
+
un,
|
|
2379
2428
|
{
|
|
2380
2429
|
...s,
|
|
2381
2430
|
inputs: i || []
|
|
@@ -2384,7 +2433,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2384
2433
|
);
|
|
2385
2434
|
case "header":
|
|
2386
2435
|
return /* @__PURE__ */ o.jsx(
|
|
2387
|
-
|
|
2436
|
+
Yn,
|
|
2388
2437
|
{
|
|
2389
2438
|
...s,
|
|
2390
2439
|
components: i || []
|
|
@@ -2394,21 +2443,21 @@ const Le = (e, t, a, s, c) => {
|
|
|
2394
2443
|
default:
|
|
2395
2444
|
return null;
|
|
2396
2445
|
}
|
|
2397
|
-
},
|
|
2446
|
+
}, Qs = (e, t, a, s) => {
|
|
2398
2447
|
var _, h, p;
|
|
2399
|
-
const [c, i] =
|
|
2448
|
+
const [c, i] = A(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId;
|
|
2400
2449
|
z(() => {
|
|
2401
2450
|
if (typeof window > "u") return;
|
|
2402
2451
|
const m = new URL(window.location.href), y = m.searchParams.get("sessionId");
|
|
2403
2452
|
y && (sessionStorage.setItem("sessionId", y), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
|
|
2404
2453
|
}, []);
|
|
2405
|
-
const d = n ?
|
|
2454
|
+
const d = n ? Ie(
|
|
2406
2455
|
e,
|
|
2407
2456
|
n,
|
|
2408
2457
|
"header",
|
|
2409
2458
|
((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
|
|
2410
2459
|
s
|
|
2411
|
-
) : null, r = n ?
|
|
2460
|
+
) : null, r = n ? Ie(
|
|
2412
2461
|
e,
|
|
2413
2462
|
n,
|
|
2414
2463
|
"body",
|
|
@@ -2417,15 +2466,15 @@ const Le = (e, t, a, s, c) => {
|
|
|
2417
2466
|
) : null, u = T(() => {
|
|
2418
2467
|
var m;
|
|
2419
2468
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2420
|
-
((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(
|
|
2469
|
+
((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(bt, {}),
|
|
2421
2470
|
d,
|
|
2422
2471
|
r,
|
|
2423
|
-
n && /* @__PURE__ */ o.jsx(
|
|
2424
|
-
l[e] && /* @__PURE__ */ o.jsx(
|
|
2472
|
+
n && /* @__PURE__ */ o.jsx(ts, { userFlow: e, pageId: n }),
|
|
2473
|
+
l[e] && /* @__PURE__ */ o.jsx(jt, {})
|
|
2425
2474
|
] });
|
|
2426
2475
|
}, [d, r, n, e]), f = async () => {
|
|
2427
2476
|
try {
|
|
2428
|
-
const m = await
|
|
2477
|
+
const m = await Ue(
|
|
2429
2478
|
t,
|
|
2430
2479
|
e
|
|
2431
2480
|
), y = m == null ? void 0 : m.data, x = y == null ? void 0 : y.content;
|
|
@@ -2450,11 +2499,11 @@ const Le = (e, t, a, s, c) => {
|
|
|
2450
2499
|
}, []), c && console.error("[not-page]: No render page"), u;
|
|
2451
2500
|
};
|
|
2452
2501
|
export {
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2502
|
+
Xn as Chart,
|
|
2503
|
+
la as NotFrontDynamicRouter,
|
|
2504
|
+
da as NotFrontPage,
|
|
2505
|
+
is as Row,
|
|
2506
|
+
en as heading,
|
|
2507
|
+
tn as text,
|
|
2508
|
+
Qs as usePage
|
|
2460
2509
|
};
|