@foris/avocado-not-front 4.3.2 → 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 +622 -573
- 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 +18 -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 Be, Text 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)
|
|
@@ -223,20 +240,20 @@ const Vt = (e) => e._userFlow || null, Ee = (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
|
-
var le = { exports: {} },
|
|
256
|
+
var le = { exports: {} }, Y = {};
|
|
240
257
|
/**
|
|
241
258
|
* @license React
|
|
242
259
|
* react-jsx-runtime.production.min.js
|
|
@@ -247,10 +264,10 @@ var le = { exports: {} }, Q = {};
|
|
|
247
264
|
* LICENSE file in the root directory of this source tree.
|
|
248
265
|
*/
|
|
249
266
|
var Se;
|
|
250
|
-
function
|
|
251
|
-
if (Se) return
|
|
267
|
+
function Ft() {
|
|
268
|
+
if (Se) return Y;
|
|
252
269
|
Se = 1;
|
|
253
|
-
var e =
|
|
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);
|
|
@@ -258,14 +275,14 @@ function Qt() {
|
|
|
258
275
|
if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
|
|
259
276
|
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: c.current };
|
|
260
277
|
}
|
|
261
|
-
return
|
|
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,
|
|
@@ -273,14 +290,14 @@ const Zt = (e) => {
|
|
|
273
290
|
type: e.variant
|
|
274
291
|
};
|
|
275
292
|
return /* @__PURE__ */ o.jsx(Be, { ...t });
|
|
276
|
-
},
|
|
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,15 +364,15 @@ 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,
|
|
355
372
|
translations: c
|
|
356
373
|
}
|
|
357
374
|
) });
|
|
358
|
-
},
|
|
375
|
+
}, B = (e, t) => {
|
|
359
376
|
const a = v((s) => {
|
|
360
377
|
var c;
|
|
361
378
|
return ((c = s[e]) == null ? void 0 : c.entries) || {};
|
|
@@ -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,31 +402,31 @@ const Zt = (e) => {
|
|
|
385
402
|
inputLabel: d,
|
|
386
403
|
inputPlaceholder: r,
|
|
387
404
|
codeBlockLabel: u
|
|
388
|
-
} = e, f = te.useThemeStore((
|
|
405
|
+
} = e, f = te.useThemeStore((b) => b.theme.mode), [_, h] = A(
|
|
389
406
|
s || ""
|
|
390
|
-
), { disabled:
|
|
407
|
+
), { disabled: p } = B(
|
|
391
408
|
t,
|
|
392
409
|
l
|
|
393
|
-
), m = i ??
|
|
410
|
+
), m = i ?? p, y = c ?? "json", x = {
|
|
394
411
|
url: (n == null ? void 0 : n.url) || "",
|
|
395
412
|
method: (n == null ? void 0 : n.method) || "post",
|
|
396
413
|
headers: n == null ? void 0 : n.headers,
|
|
397
414
|
body: n == null ? void 0 : n.data
|
|
398
|
-
}, g = (
|
|
399
|
-
h(
|
|
400
|
-
const
|
|
401
|
-
[a]:
|
|
415
|
+
}, g = (b) => {
|
|
416
|
+
h(b);
|
|
417
|
+
const C = {
|
|
418
|
+
[a]: b
|
|
402
419
|
};
|
|
403
|
-
O(t,
|
|
420
|
+
O(t, C);
|
|
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
|
-
requestConfig:
|
|
412
|
-
language:
|
|
428
|
+
requestConfig: x,
|
|
429
|
+
language: y,
|
|
413
430
|
disabled: m,
|
|
414
431
|
inputLabel: d,
|
|
415
432
|
inputPlaceholder: r,
|
|
@@ -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,10 +519,10 @@ 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
|
-
const l =
|
|
525
|
+
const l = W(t);
|
|
440
526
|
return {
|
|
441
527
|
call: V.get(e, {
|
|
442
528
|
headers: {
|
|
@@ -451,7 +537,7 @@ const Zt = (e) => {
|
|
|
451
537
|
}, fe = (e, t = {}, a = {}, s = {}, c = !1, i) => {
|
|
452
538
|
const l = F();
|
|
453
539
|
c && l.abort();
|
|
454
|
-
const n =
|
|
540
|
+
const n = W(t);
|
|
455
541
|
return {
|
|
456
542
|
call: V.post(e, a, {
|
|
457
543
|
headers: {
|
|
@@ -463,10 +549,10 @@ 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
|
-
const n =
|
|
555
|
+
const n = W(t);
|
|
470
556
|
return {
|
|
471
557
|
call: V.put(e, a, {
|
|
472
558
|
headers: {
|
|
@@ -478,10 +564,10 @@ 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
|
-
const n =
|
|
570
|
+
const n = W(t);
|
|
485
571
|
return {
|
|
486
572
|
call: V.patch(e, a, {
|
|
487
573
|
headers: {
|
|
@@ -493,10 +579,10 @@ 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
|
-
const n =
|
|
585
|
+
const n = W(t);
|
|
500
586
|
return {
|
|
501
587
|
call: V.delete(e, {
|
|
502
588
|
headers: {
|
|
@@ -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,11 +609,11 @@ 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
|
-
const u = `${l}/not-front/next-ui/?${r.toString()}`, f =
|
|
616
|
+
const u = `${l}/not-front/next-ui/?${r.toString()}`, f = W(n), _ = fe(
|
|
531
617
|
u,
|
|
532
618
|
f,
|
|
533
619
|
s,
|
|
@@ -540,18 +626,18 @@ 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
|
-
const h = (_ = e[n]) == null ? void 0 : _.apiConfig,
|
|
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,
|
|
554
|
-
|
|
640
|
+
p
|
|
555
641
|
);
|
|
556
642
|
} catch (h) {
|
|
557
643
|
throw f && H(n, !1), console.error("[getNextUI] Error fetching next UI:", h), h;
|
|
@@ -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,
|
|
@@ -691,20 +777,20 @@ const Zt = (e) => {
|
|
|
691
777
|
dependencies: r,
|
|
692
778
|
onClick: u,
|
|
693
779
|
...f
|
|
694
|
-
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI:
|
|
780
|
+
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: p } = K(), { disabled: m } = B(
|
|
695
781
|
t,
|
|
696
782
|
r
|
|
697
|
-
),
|
|
783
|
+
), y = {
|
|
698
784
|
...f,
|
|
699
785
|
children: l ?? i
|
|
700
|
-
},
|
|
701
|
-
var
|
|
786
|
+
}, x = (y == null ? void 0 : y.disabled) ?? m, g = R(async () => {
|
|
787
|
+
var b, C, j;
|
|
702
788
|
try {
|
|
703
|
-
const
|
|
704
|
-
...(
|
|
789
|
+
const N = {
|
|
790
|
+
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
705
791
|
[s]: { status: 200 }
|
|
706
792
|
};
|
|
707
|
-
switch (O(t,
|
|
793
|
+
switch (O(t, N), c) {
|
|
708
794
|
case "CLOSE_MODAL":
|
|
709
795
|
ge(t, !1);
|
|
710
796
|
break;
|
|
@@ -718,32 +804,32 @@ const Zt = (e) => {
|
|
|
718
804
|
const w = await _(
|
|
719
805
|
t,
|
|
720
806
|
a,
|
|
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": {
|
|
728
|
-
const w = await
|
|
814
|
+
const w = await p(
|
|
729
815
|
t,
|
|
730
816
|
a,
|
|
731
|
-
|
|
817
|
+
N,
|
|
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": {
|
|
739
825
|
const w = await _(
|
|
740
826
|
t,
|
|
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":
|
|
@@ -772,58 +858,21 @@ const Zt = (e) => {
|
|
|
772
858
|
console.warn(`Unhandled actionType: ${c}`);
|
|
773
859
|
break;
|
|
774
860
|
}
|
|
775
|
-
} catch (
|
|
776
|
-
alert(JSON.stringify(
|
|
861
|
+
} catch (N) {
|
|
862
|
+
alert(JSON.stringify(N));
|
|
777
863
|
}
|
|
778
864
|
}, [c, n, a, s, t]);
|
|
779
865
|
return /* @__PURE__ */ o.jsx(
|
|
780
|
-
|
|
866
|
+
st,
|
|
781
867
|
{
|
|
782
|
-
...
|
|
783
|
-
disabled:
|
|
784
|
-
onClick: () => !
|
|
868
|
+
...y,
|
|
869
|
+
disabled: x,
|
|
870
|
+
onClick: () => !x && (u ?? g)()
|
|
785
871
|
}
|
|
786
872
|
);
|
|
787
|
-
},
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
accordion: (n) => /* @__PURE__ */ o.jsx(Ks, { ...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(bn, { ...n }),
|
|
798
|
-
chart: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e }),
|
|
799
|
-
dataCard: (n) => /* @__PURE__ */ o.jsx($n, { ...n, userFlow: e, pageId: t }),
|
|
800
|
-
checkbox: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
|
|
801
|
-
code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
|
|
802
|
-
divider: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n }),
|
|
803
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(Us, { ...n, userFlow: e, pageId: t }),
|
|
804
|
-
heading: (n) => Zt(n),
|
|
805
|
-
link: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
|
|
806
|
-
pill: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
|
|
807
|
-
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n }),
|
|
808
|
-
modal: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
|
|
809
|
-
roundButton: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
|
|
810
|
-
row: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: e, pageId: t }),
|
|
811
|
-
select: (n) => /* @__PURE__ */ o.jsx(_s, { ...n, userFlow: e, pageId: t }),
|
|
812
|
-
switch: (n) => /* @__PURE__ */ o.jsx(ws, { ...n, userFlow: e, pageId: t }),
|
|
813
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(js, { ...n, userFlow: e, pageId: t }),
|
|
814
|
-
table: (n) => /* @__PURE__ */ o.jsx(ks, { ...n, userFlow: e, pageId: t }),
|
|
815
|
-
tabs: (n) => /* @__PURE__ */ o.jsx(As, { ...n, userFlow: e, pageId: t }),
|
|
816
|
-
text: (n) => Ft(n),
|
|
817
|
-
textField: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n, userFlow: e, pageId: t }),
|
|
818
|
-
toast: (n) => /* @__PURE__ */ o.jsx(Ls, { ...n, userFlow: e, pageId: t })
|
|
819
|
-
};
|
|
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", qe = {
|
|
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,
|
|
@@ -834,7 +883,7 @@ const Zt = (e) => {
|
|
|
834
883
|
content: n,
|
|
835
884
|
actionContent: d,
|
|
836
885
|
...r
|
|
837
|
-
} = e, { disabled: u } =
|
|
886
|
+
} = e, { disabled: u } = B(
|
|
838
887
|
t,
|
|
839
888
|
l
|
|
840
889
|
), f = E(
|
|
@@ -845,31 +894,23 @@ const Zt = (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:
|
|
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,
|
|
854
|
-
actionContent:
|
|
903
|
+
actionContent: p,
|
|
855
904
|
children: h ?? null
|
|
856
905
|
}
|
|
857
906
|
);
|
|
858
|
-
},
|
|
859
|
-
cardNotificationNotFront: gn
|
|
860
|
-
}, bn = (e) => {
|
|
907
|
+
}, Nn = (e) => {
|
|
861
908
|
const { content: t, description: a, ...s } = e, c = {
|
|
862
909
|
...s,
|
|
863
910
|
children: t ?? a
|
|
864
911
|
};
|
|
865
|
-
return /* @__PURE__ */ o.jsx(
|
|
866
|
-
|
|
867
|
-
{
|
|
868
|
-
...c,
|
|
869
|
-
className: pn.cardNotificationNotFront
|
|
870
|
-
}
|
|
871
|
-
);
|
|
872
|
-
}, jn = (e) => {
|
|
912
|
+
return /* @__PURE__ */ o.jsx(me, { ...c });
|
|
913
|
+
}, vn = (e) => {
|
|
873
914
|
const {
|
|
874
915
|
userFlow: t,
|
|
875
916
|
pageId: a,
|
|
@@ -882,55 +923,56 @@ const Zt = (e) => {
|
|
|
882
923
|
...r
|
|
883
924
|
} = e, u = {
|
|
884
925
|
...r
|
|
885
|
-
}, { getNextUI: f } = K(), [_, h] =
|
|
926
|
+
}, { getNextUI: f } = K(), [_, h] = A(l || !1), { disabled: p } = B(
|
|
886
927
|
t,
|
|
887
928
|
d
|
|
888
|
-
), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]),
|
|
929
|
+
), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
|
|
889
930
|
var g;
|
|
890
931
|
try {
|
|
891
|
-
const
|
|
892
|
-
h(
|
|
893
|
-
const
|
|
932
|
+
const b = !_;
|
|
933
|
+
h(b);
|
|
934
|
+
const C = {
|
|
894
935
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
895
|
-
[s]:
|
|
936
|
+
[s]: b
|
|
896
937
|
};
|
|
897
|
-
switch (O(t,
|
|
938
|
+
switch (O(t, C), c) {
|
|
898
939
|
case "GO_TO_NEXT_UI":
|
|
899
940
|
const j = await f(
|
|
900
941
|
t,
|
|
901
942
|
a,
|
|
902
|
-
|
|
943
|
+
C,
|
|
903
944
|
s
|
|
904
945
|
);
|
|
905
|
-
j != null && j.data &&
|
|
946
|
+
j != null && j.data && q(t, j == null ? void 0 : j.data);
|
|
906
947
|
break;
|
|
907
948
|
default:
|
|
908
949
|
console.warn(`Unhandled actionType: ${c}`);
|
|
909
950
|
break;
|
|
910
951
|
}
|
|
911
|
-
} catch (
|
|
912
|
-
console.error("Error in checkbox action:",
|
|
952
|
+
} catch (b) {
|
|
953
|
+
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
913
954
|
}
|
|
914
|
-
}, [t, a, s, c, _]),
|
|
955
|
+
}, [t, a, s, c, _]), x = (u == null ? void 0 : u.disabled) ?? p;
|
|
915
956
|
return /* @__PURE__ */ o.jsx(
|
|
916
|
-
|
|
957
|
+
rt,
|
|
917
958
|
{
|
|
918
959
|
...u,
|
|
919
960
|
labelRight: m,
|
|
920
961
|
checked: _,
|
|
921
|
-
disabled:
|
|
962
|
+
disabled: x,
|
|
922
963
|
onChange: () => {
|
|
923
|
-
!
|
|
964
|
+
!x && y();
|
|
924
965
|
}
|
|
925
966
|
}
|
|
926
967
|
);
|
|
927
|
-
},
|
|
928
|
-
codeEditor:
|
|
929
|
-
codeEditor_label:
|
|
930
|
-
codeEditor_wrapper:
|
|
931
|
-
input:
|
|
932
|
-
preview:
|
|
933
|
-
|
|
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) => {
|
|
934
976
|
const {
|
|
935
977
|
userFlow: t,
|
|
936
978
|
responseKey: a,
|
|
@@ -941,39 +983,40 @@ const Zt = (e) => {
|
|
|
941
983
|
required: n,
|
|
942
984
|
dependencies: d,
|
|
943
985
|
disabled: r,
|
|
944
|
-
showPreview: u
|
|
945
|
-
|
|
986
|
+
showPreview: u,
|
|
987
|
+
height: f = "400px"
|
|
988
|
+
} = e, [_, h] = A(l ?? ""), p = te.useThemeStore((C) => C.theme.mode), { disabled: m } = B(
|
|
946
989
|
t,
|
|
947
990
|
d
|
|
948
|
-
),
|
|
991
|
+
), y = r ?? m, x = {
|
|
949
992
|
json: we(),
|
|
950
|
-
markdown:
|
|
951
|
-
sql:
|
|
952
|
-
yaml:
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
const
|
|
956
|
-
[a]:
|
|
993
|
+
markdown: Et(),
|
|
994
|
+
sql: St(),
|
|
995
|
+
yaml: kt()
|
|
996
|
+
}, g = T(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (C) => {
|
|
997
|
+
h(C);
|
|
998
|
+
const j = {
|
|
999
|
+
[a]: C
|
|
957
1000
|
};
|
|
958
|
-
O(t,
|
|
1001
|
+
O(t, j);
|
|
959
1002
|
};
|
|
960
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
961
|
-
|
|
962
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1003
|
+
return /* @__PURE__ */ o.jsxs("div", { className: X.codeEditor, children: [
|
|
1004
|
+
g && g !== "" && /* @__PURE__ */ o.jsx("label", { className: X.codeEditor_label, children: g }),
|
|
1005
|
+
/* @__PURE__ */ o.jsxs("div", { className: X.codeEditor_wrapper, children: [
|
|
963
1006
|
/* @__PURE__ */ o.jsx(
|
|
964
|
-
|
|
1007
|
+
vt,
|
|
965
1008
|
{
|
|
966
|
-
className:
|
|
967
|
-
value:
|
|
968
|
-
height:
|
|
1009
|
+
className: X.input,
|
|
1010
|
+
value: _,
|
|
1011
|
+
height: f,
|
|
969
1012
|
placeholder: i,
|
|
970
1013
|
extensions: [x[c] ?? we()],
|
|
971
|
-
onChange: (
|
|
972
|
-
theme:
|
|
973
|
-
editable: !
|
|
1014
|
+
onChange: (C) => b(C),
|
|
1015
|
+
theme: p,
|
|
1016
|
+
editable: !y
|
|
974
1017
|
}
|
|
975
1018
|
),
|
|
976
|
-
c
|
|
1019
|
+
c === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: X.preview, style: { height: f }, children: /* @__PURE__ */ o.jsx(Ke, { className: X.preview_inner, children: _ }) })
|
|
977
1020
|
] })
|
|
978
1021
|
] });
|
|
979
1022
|
};
|
|
@@ -983,9 +1026,9 @@ var de = { exports: {} };
|
|
|
983
1026
|
Licensed under the MIT License (MIT), see
|
|
984
1027
|
http://jedwatson.github.io/classnames
|
|
985
1028
|
*/
|
|
986
|
-
var
|
|
987
|
-
function
|
|
988
|
-
return
|
|
1029
|
+
var qe;
|
|
1030
|
+
function On() {
|
|
1031
|
+
return qe || (qe = 1, (function(e) {
|
|
989
1032
|
(function() {
|
|
990
1033
|
var t = {}.hasOwnProperty;
|
|
991
1034
|
function a() {
|
|
@@ -1016,10 +1059,10 @@ function kn() {
|
|
|
1016
1059
|
})();
|
|
1017
1060
|
})(de)), de.exports;
|
|
1018
1061
|
}
|
|
1019
|
-
var
|
|
1020
|
-
const ee = /* @__PURE__ */
|
|
1021
|
-
slotStack:
|
|
1022
|
-
},
|
|
1062
|
+
var Rn = On();
|
|
1063
|
+
const ee = /* @__PURE__ */ Zt(Rn), Dn = "_slotStack_6n2wy_5", Oe = {
|
|
1064
|
+
slotStack: Dn
|
|
1065
|
+
}, Ln = (e) => {
|
|
1023
1066
|
const {
|
|
1024
1067
|
userFlow: t,
|
|
1025
1068
|
pageId: a,
|
|
@@ -1039,20 +1082,20 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1039
1082
|
t,
|
|
1040
1083
|
a,
|
|
1041
1084
|
n && n.length > 0 ? n : null
|
|
1042
|
-
),
|
|
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;
|
|
1043
1086
|
return /* @__PURE__ */ o.jsx(
|
|
1044
|
-
|
|
1087
|
+
ot,
|
|
1045
1088
|
{
|
|
1046
1089
|
...u,
|
|
1047
1090
|
icon: d,
|
|
1048
1091
|
headerStatusColor: f,
|
|
1049
1092
|
topContent: m,
|
|
1050
|
-
children:
|
|
1093
|
+
children: p
|
|
1051
1094
|
}
|
|
1052
1095
|
);
|
|
1053
|
-
},
|
|
1054
|
-
dividerNotFront:
|
|
1055
|
-
},
|
|
1096
|
+
}, In = "_dividerNotFront_tze3j_1", Bn = {
|
|
1097
|
+
dividerNotFront: In
|
|
1098
|
+
}, Kn = (e) => /* @__PURE__ */ o.jsx(ct, { ...e, className: Bn.dividerNotFront }), Mn = (e, t, a) => {
|
|
1056
1099
|
const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
|
|
1057
1100
|
if (l.push(`${n}=${t}`), typeof a == "string") {
|
|
1058
1101
|
const u = (c == null ? void 0 : c.text) ?? "text";
|
|
@@ -1070,7 +1113,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1070
1113
|
const { type: s, url: c, method: i, headers: l } = e;
|
|
1071
1114
|
return s === "rest" ? {
|
|
1072
1115
|
type: "rest",
|
|
1073
|
-
url:
|
|
1116
|
+
url: Mn(e, t, a),
|
|
1074
1117
|
method: i,
|
|
1075
1118
|
headers: l,
|
|
1076
1119
|
data: (e == null ? void 0 : e.data) || {}
|
|
@@ -1086,19 +1129,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1086
1129
|
page: t
|
|
1087
1130
|
}
|
|
1088
1131
|
};
|
|
1089
|
-
}, _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) => {
|
|
1090
1133
|
const c = L.query(e, t), i = c == null ? void 0 : c.map((r) => {
|
|
1091
1134
|
var u, f;
|
|
1092
1135
|
if (a) {
|
|
1093
1136
|
const _ = {};
|
|
1094
|
-
for (const [h,
|
|
1095
|
-
if (typeof
|
|
1096
|
-
const m =
|
|
1097
|
-
m.translations && String(
|
|
1098
|
-
m.translations[String(
|
|
1099
|
-
) : _[h] = _e(
|
|
1137
|
+
for (const [h, p] of Object.entries(a))
|
|
1138
|
+
if (typeof p == "object" && "path" in p) {
|
|
1139
|
+
const m = p, y = (u = L.query(r, m.path)) == null ? void 0 : u[0];
|
|
1140
|
+
m.translations && String(y) in m.translations ? _[h] = _e(
|
|
1141
|
+
m.translations[String(y)]
|
|
1142
|
+
) : _[h] = _e(y);
|
|
1100
1143
|
} else {
|
|
1101
|
-
const m =
|
|
1144
|
+
const m = p;
|
|
1102
1145
|
_[h] = _e((f = L.query(r, m)) == null ? void 0 : f[0]);
|
|
1103
1146
|
}
|
|
1104
1147
|
return _;
|
|
@@ -1114,19 +1157,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1114
1157
|
};
|
|
1115
1158
|
return { items: i, pagination: d };
|
|
1116
1159
|
}, se = ({ withPadding: e = !1 }) => {
|
|
1117
|
-
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color:
|
|
1160
|
+
const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: I.labelColor }, children: a });
|
|
1118
1161
|
return /* @__PURE__ */ o.jsx(
|
|
1119
|
-
|
|
1162
|
+
Tt,
|
|
1120
1163
|
{
|
|
1121
1164
|
formatter: t,
|
|
1122
1165
|
wrapperStyle: {
|
|
1123
|
-
fontSize:
|
|
1124
|
-
fontFamily:
|
|
1166
|
+
fontSize: I.fontSize,
|
|
1167
|
+
fontFamily: I.fontFamily,
|
|
1125
1168
|
padding: e ? "1rem 0" : "0"
|
|
1126
1169
|
}
|
|
1127
1170
|
}
|
|
1128
1171
|
);
|
|
1129
|
-
},
|
|
1172
|
+
}, zn = ({
|
|
1130
1173
|
active: e,
|
|
1131
1174
|
payload: t,
|
|
1132
1175
|
label: a,
|
|
@@ -1136,9 +1179,9 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1136
1179
|
if (!e || !t || !t.length)
|
|
1137
1180
|
return null;
|
|
1138
1181
|
const c = {
|
|
1139
|
-
backgroundColor:
|
|
1140
|
-
borderRadius:
|
|
1141
|
-
color:
|
|
1182
|
+
backgroundColor: I.tooltipBg,
|
|
1183
|
+
borderRadius: I.tooltipBorderRadius,
|
|
1184
|
+
color: I.tooltipColor,
|
|
1142
1185
|
padding: "8px 12px",
|
|
1143
1186
|
border: "1px solid #e5e7eb"
|
|
1144
1187
|
};
|
|
@@ -1152,38 +1195,38 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1152
1195
|
t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
|
|
1153
1196
|
] });
|
|
1154
1197
|
}, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
|
|
1155
|
-
|
|
1198
|
+
$t,
|
|
1156
1199
|
{
|
|
1157
|
-
content: /* @__PURE__ */ o.jsx(
|
|
1200
|
+
content: /* @__PURE__ */ o.jsx(zn, { tooltipKey: e })
|
|
1158
1201
|
}
|
|
1159
1202
|
), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
1160
|
-
|
|
1203
|
+
At,
|
|
1161
1204
|
{
|
|
1162
1205
|
dataKey: e,
|
|
1163
1206
|
hide: t,
|
|
1164
1207
|
tick: {
|
|
1165
|
-
fill:
|
|
1166
|
-
fontSize:
|
|
1208
|
+
fill: I.labelColor,
|
|
1209
|
+
fontSize: I.fontSize
|
|
1167
1210
|
}
|
|
1168
1211
|
}
|
|
1169
1212
|
), je = () => /* @__PURE__ */ o.jsx(
|
|
1170
1213
|
qt,
|
|
1171
1214
|
{
|
|
1172
1215
|
tick: {
|
|
1173
|
-
fill:
|
|
1174
|
-
fontSize:
|
|
1216
|
+
fill: I.labelColor,
|
|
1217
|
+
fontSize: I.fontSize
|
|
1175
1218
|
}
|
|
1176
1219
|
}
|
|
1177
|
-
),
|
|
1220
|
+
), Gn = (e) => {
|
|
1178
1221
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1179
|
-
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: [
|
|
1180
1223
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1181
1224
|
/* @__PURE__ */ o.jsx(be, { dataKey: a }),
|
|
1182
1225
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1183
1226
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1184
1227
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1185
1228
|
s.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1186
|
-
|
|
1229
|
+
Rt,
|
|
1187
1230
|
{
|
|
1188
1231
|
type: "monotone",
|
|
1189
1232
|
dataKey: i,
|
|
@@ -1193,16 +1236,16 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1193
1236
|
i
|
|
1194
1237
|
))
|
|
1195
1238
|
] }) });
|
|
1196
|
-
},
|
|
1239
|
+
}, Un = (e) => {
|
|
1197
1240
|
const { data: t, yKeys: a, xKey: s, tooltipKey: c } = e;
|
|
1198
|
-
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: [
|
|
1199
1242
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1200
1243
|
/* @__PURE__ */ o.jsx(be, { hide: !0, dataKey: s }),
|
|
1201
1244
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1202
1245
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1203
1246
|
/* @__PURE__ */ o.jsx(se, { withPadding: !0 }),
|
|
1204
1247
|
a.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1205
|
-
|
|
1248
|
+
Lt,
|
|
1206
1249
|
{
|
|
1207
1250
|
dataKey: i,
|
|
1208
1251
|
fill: M[l % M.length]
|
|
@@ -1210,16 +1253,16 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1210
1253
|
i
|
|
1211
1254
|
))
|
|
1212
1255
|
] }) });
|
|
1213
|
-
},
|
|
1256
|
+
}, Jn = (e) => {
|
|
1214
1257
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
|
|
1215
|
-
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: [
|
|
1216
1259
|
/* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
|
|
1217
1260
|
/* @__PURE__ */ o.jsx(be, { dataKey: a }),
|
|
1218
1261
|
/* @__PURE__ */ o.jsx(je, {}),
|
|
1219
1262
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1220
1263
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1221
1264
|
s.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
1222
|
-
|
|
1265
|
+
Bt,
|
|
1223
1266
|
{
|
|
1224
1267
|
type: "monotone",
|
|
1225
1268
|
dataKey: i,
|
|
@@ -1230,7 +1273,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1230
1273
|
i
|
|
1231
1274
|
))
|
|
1232
1275
|
] }) });
|
|
1233
|
-
},
|
|
1276
|
+
}, Vn = (e) => {
|
|
1234
1277
|
const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
|
|
1235
1278
|
cx: l,
|
|
1236
1279
|
cy: n,
|
|
@@ -1239,25 +1282,25 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1239
1282
|
outerRadius: u,
|
|
1240
1283
|
value: f
|
|
1241
1284
|
}) => {
|
|
1242
|
-
const _ = Math.PI / 180, h = 25 + r + (u - r),
|
|
1285
|
+
const _ = Math.PI / 180, h = 25 + r + (u - r), p = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
|
|
1243
1286
|
return /* @__PURE__ */ o.jsx(
|
|
1244
1287
|
"text",
|
|
1245
1288
|
{
|
|
1246
|
-
x:
|
|
1289
|
+
x: p,
|
|
1247
1290
|
y: m,
|
|
1248
|
-
fill:
|
|
1249
|
-
color:
|
|
1291
|
+
fill: I.labelColor,
|
|
1292
|
+
color: I.labelColor,
|
|
1250
1293
|
textAnchor: "middle",
|
|
1251
1294
|
dominantBaseline: "central",
|
|
1252
1295
|
children: f
|
|
1253
1296
|
}
|
|
1254
1297
|
);
|
|
1255
1298
|
};
|
|
1256
|
-
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: [
|
|
1257
1300
|
/* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
|
|
1258
1301
|
/* @__PURE__ */ o.jsx(se, {}),
|
|
1259
1302
|
/* @__PURE__ */ o.jsx(
|
|
1260
|
-
|
|
1303
|
+
Mt,
|
|
1261
1304
|
{
|
|
1262
1305
|
data: t,
|
|
1263
1306
|
dataKey: s[0],
|
|
@@ -1265,7 +1308,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1265
1308
|
label: i,
|
|
1266
1309
|
outerRadius: 120,
|
|
1267
1310
|
children: t.map((l, n) => /* @__PURE__ */ o.jsx(
|
|
1268
|
-
|
|
1311
|
+
zt,
|
|
1269
1312
|
{
|
|
1270
1313
|
fill: M[n % M.length]
|
|
1271
1314
|
},
|
|
@@ -1274,11 +1317,11 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1274
1317
|
}
|
|
1275
1318
|
)
|
|
1276
1319
|
] }) });
|
|
1277
|
-
},
|
|
1278
|
-
area:
|
|
1279
|
-
bar:
|
|
1280
|
-
line:
|
|
1281
|
-
pie:
|
|
1320
|
+
}, Hn = {
|
|
1321
|
+
area: Gn,
|
|
1322
|
+
bar: Un,
|
|
1323
|
+
line: Jn,
|
|
1324
|
+
pie: Vn
|
|
1282
1325
|
}, M = [
|
|
1283
1326
|
"var(--color-primitive-palette-1-50)",
|
|
1284
1327
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1297,46 +1340,46 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1297
1340
|
"var(--color-primitive-palette-15-50)",
|
|
1298
1341
|
"var(--color-primitive-palette-16-50)",
|
|
1299
1342
|
"var(--color-primitive-palette-17-50)"
|
|
1300
|
-
],
|
|
1343
|
+
], I = {
|
|
1301
1344
|
fontFamily: "Roboto, sans-serif",
|
|
1302
1345
|
fontSize: 12,
|
|
1303
1346
|
labelColor: "var(--color-neutral-90)",
|
|
1304
1347
|
tooltipBg: "#fff",
|
|
1305
1348
|
tooltipColor: "#000",
|
|
1306
1349
|
tooltipBorderRadius: "4px"
|
|
1307
|
-
},
|
|
1308
|
-
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];
|
|
1309
1352
|
if (!n)
|
|
1310
1353
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1311
|
-
const { fetchDataSource: d } = K(), [r, u] =
|
|
1312
|
-
var m,
|
|
1354
|
+
const { fetchDataSource: d } = K(), [r, u] = A(!1), [f, _] = A([]), h = async () => {
|
|
1355
|
+
var m, y;
|
|
1313
1356
|
try {
|
|
1314
1357
|
u(!0);
|
|
1315
|
-
const { jsonPathData:
|
|
1358
|
+
const { jsonPathData: x, mapperData: g } = i, b = pe(
|
|
1316
1359
|
i,
|
|
1317
1360
|
1
|
|
1318
|
-
),
|
|
1319
|
-
|
|
1361
|
+
), C = await d(
|
|
1362
|
+
b,
|
|
1320
1363
|
a,
|
|
1321
1364
|
!1
|
|
1322
|
-
), j =
|
|
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;
|
|
1323
1366
|
_(j), u(!1);
|
|
1324
|
-
} catch (
|
|
1325
|
-
alert(JSON.stringify(
|
|
1367
|
+
} catch (x) {
|
|
1368
|
+
alert(JSON.stringify(x)), u(!1);
|
|
1326
1369
|
}
|
|
1327
1370
|
};
|
|
1328
1371
|
z(() => {
|
|
1329
1372
|
i ? h() : _(l.data);
|
|
1330
1373
|
}, []);
|
|
1331
|
-
const
|
|
1374
|
+
const p = {
|
|
1332
1375
|
...l,
|
|
1333
1376
|
data: f
|
|
1334
1377
|
};
|
|
1335
|
-
return r ? /* @__PURE__ */ o.jsx(
|
|
1336
|
-
},
|
|
1337
|
-
header:
|
|
1338
|
-
header_content:
|
|
1339
|
-
},
|
|
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) => {
|
|
1340
1383
|
const {
|
|
1341
1384
|
userFlow: t,
|
|
1342
1385
|
pageId: a,
|
|
@@ -1349,29 +1392,29 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1349
1392
|
component: r,
|
|
1350
1393
|
hash: u,
|
|
1351
1394
|
...f
|
|
1352
|
-
} = e, { getNextUI: _ } = K(), { disabled: h } =
|
|
1395
|
+
} = e, { getNextUI: _ } = K(), { disabled: h } = B(
|
|
1353
1396
|
t,
|
|
1354
1397
|
d
|
|
1355
|
-
),
|
|
1356
|
-
const { href:
|
|
1357
|
-
return
|
|
1398
|
+
), p = c && f ? (() => {
|
|
1399
|
+
const { href: x, target: g, download: b, ...C } = f;
|
|
1400
|
+
return C;
|
|
1358
1401
|
})() : f, m = R(async () => {
|
|
1359
|
-
var
|
|
1402
|
+
var x;
|
|
1360
1403
|
if (c)
|
|
1361
1404
|
try {
|
|
1362
1405
|
const g = {
|
|
1363
|
-
...(
|
|
1406
|
+
...(x = v.getState()[t]) == null ? void 0 : x.entries,
|
|
1364
1407
|
[s]: { status: 200 }
|
|
1365
1408
|
};
|
|
1366
1409
|
switch (O(t, g), c) {
|
|
1367
1410
|
case "GO_TO_NEXT_UI": {
|
|
1368
|
-
const
|
|
1411
|
+
const b = await _(
|
|
1369
1412
|
t,
|
|
1370
1413
|
a,
|
|
1371
1414
|
g,
|
|
1372
1415
|
s
|
|
1373
1416
|
);
|
|
1374
|
-
|
|
1417
|
+
b != null && b.data && q(t, b == null ? void 0 : b.data);
|
|
1375
1418
|
break;
|
|
1376
1419
|
}
|
|
1377
1420
|
case "REDIRECT":
|
|
@@ -1388,19 +1431,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1388
1431
|
} catch (g) {
|
|
1389
1432
|
alert(JSON.stringify(g));
|
|
1390
1433
|
}
|
|
1391
|
-
}, [c, _, a, l, s, n, t]),
|
|
1434
|
+
}, [c, _, a, l, s, n, t]), y = p.disabled ?? h;
|
|
1392
1435
|
return /* @__PURE__ */ o.jsx(
|
|
1393
|
-
|
|
1436
|
+
it,
|
|
1394
1437
|
{
|
|
1395
|
-
...
|
|
1396
|
-
disabled:
|
|
1438
|
+
...p,
|
|
1439
|
+
disabled: y,
|
|
1397
1440
|
onClick: c ? m : void 0,
|
|
1398
1441
|
children: i
|
|
1399
1442
|
}
|
|
1400
1443
|
);
|
|
1401
|
-
},
|
|
1402
|
-
modalContent:
|
|
1403
|
-
},
|
|
1444
|
+
}, Fn = "_modalContent_p06ci_1", Pn = {
|
|
1445
|
+
modalContent: Fn
|
|
1446
|
+
}, es = ({
|
|
1404
1447
|
userFlow: e,
|
|
1405
1448
|
pageId: t,
|
|
1406
1449
|
responseKey: a,
|
|
@@ -1410,32 +1453,32 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1410
1453
|
headerStatusColor: l,
|
|
1411
1454
|
...n
|
|
1412
1455
|
}) => {
|
|
1413
|
-
const d = v((
|
|
1456
|
+
const d = v((x) => {
|
|
1414
1457
|
var g;
|
|
1415
|
-
return (g =
|
|
1416
|
-
}), r = v((
|
|
1458
|
+
return (g = x[e]) == null ? void 0 : g.isModalOpen;
|
|
1459
|
+
}), r = v((x) => {
|
|
1417
1460
|
var g;
|
|
1418
|
-
return (g =
|
|
1461
|
+
return (g = x[e]) == null ? void 0 : g.isLoading;
|
|
1419
1462
|
}), u = d && !r, f = {
|
|
1420
1463
|
...n
|
|
1421
1464
|
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
|
|
1422
1465
|
xe(e), ge(e, !1);
|
|
1423
|
-
}, [e, a]),
|
|
1466
|
+
}, [e, a]), p = Array.isArray(s) ? E(e, t, s) : s, m = E(e, t, c), y = E(e, t, i);
|
|
1424
1467
|
return /* @__PURE__ */ o.jsx(
|
|
1425
|
-
|
|
1468
|
+
lt,
|
|
1426
1469
|
{
|
|
1427
1470
|
...f,
|
|
1428
1471
|
headerStatusColor: _,
|
|
1429
|
-
header: typeof
|
|
1430
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
1431
|
-
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
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}`)) }),
|
|
1432
1475
|
open: u,
|
|
1433
1476
|
onClose: h
|
|
1434
1477
|
}
|
|
1435
1478
|
);
|
|
1436
|
-
},
|
|
1479
|
+
}, ts = ({ userFlow: e, pageId: t }) => {
|
|
1437
1480
|
var i, l;
|
|
1438
|
-
const a =
|
|
1481
|
+
const a = Ht(e);
|
|
1439
1482
|
if (!a)
|
|
1440
1483
|
return null;
|
|
1441
1484
|
const s = [
|
|
@@ -1449,9 +1492,9 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1449
1492
|
);
|
|
1450
1493
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
|
|
1451
1494
|
const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
|
|
1452
|
-
return /* @__PURE__ */ o.jsx(
|
|
1495
|
+
return /* @__PURE__ */ o.jsx(S, { children: n }, r);
|
|
1453
1496
|
}) });
|
|
1454
|
-
},
|
|
1497
|
+
}, ns = {
|
|
1455
1498
|
success: {
|
|
1456
1499
|
color: "success-opacity",
|
|
1457
1500
|
textColor: "success-60",
|
|
@@ -1477,8 +1520,8 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1477
1520
|
textColor: "neutral-70",
|
|
1478
1521
|
iconColor: "neutral-70"
|
|
1479
1522
|
}
|
|
1480
|
-
},
|
|
1481
|
-
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 = {
|
|
1482
1525
|
...s,
|
|
1483
1526
|
children: t,
|
|
1484
1527
|
color: (s == null ? void 0 : s.color) ?? c.color,
|
|
@@ -1486,10 +1529,10 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1486
1529
|
iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
|
|
1487
1530
|
};
|
|
1488
1531
|
return /* @__PURE__ */ o.jsx(he, { ...i });
|
|
1489
|
-
},
|
|
1532
|
+
}, as = (e) => {
|
|
1490
1533
|
const { content: t } = e;
|
|
1491
|
-
return /* @__PURE__ */ o.jsx(
|
|
1492
|
-
},
|
|
1534
|
+
return /* @__PURE__ */ o.jsx(Ke, { children: t });
|
|
1535
|
+
}, rs = (e) => {
|
|
1493
1536
|
const {
|
|
1494
1537
|
userFlow: t,
|
|
1495
1538
|
pageId: a,
|
|
@@ -1499,38 +1542,38 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1499
1542
|
dependencies: l,
|
|
1500
1543
|
onClick: n,
|
|
1501
1544
|
...d
|
|
1502
|
-
} = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } =
|
|
1545
|
+
} = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } = B(
|
|
1503
1546
|
t,
|
|
1504
1547
|
l
|
|
1505
1548
|
), _ = {
|
|
1506
1549
|
...d
|
|
1507
|
-
}, h = (_ == null ? void 0 : _.disabled) ?? f,
|
|
1550
|
+
}, h = (_ == null ? void 0 : _.disabled) ?? f, p = R(async () => {
|
|
1508
1551
|
var m;
|
|
1509
1552
|
try {
|
|
1510
|
-
const
|
|
1553
|
+
const y = {
|
|
1511
1554
|
...(m = v.getState()[t]) == null ? void 0 : m.entries,
|
|
1512
1555
|
[s]: { status: 200 }
|
|
1513
1556
|
};
|
|
1514
|
-
switch (O(t,
|
|
1557
|
+
switch (O(t, y), c) {
|
|
1515
1558
|
case "GO_TO_NEXT_UI": {
|
|
1516
|
-
const
|
|
1559
|
+
const x = await r(
|
|
1517
1560
|
t,
|
|
1518
1561
|
a,
|
|
1519
|
-
|
|
1562
|
+
y,
|
|
1520
1563
|
s
|
|
1521
1564
|
);
|
|
1522
|
-
|
|
1565
|
+
x != null && x.data && q(t, x == null ? void 0 : x.data);
|
|
1523
1566
|
break;
|
|
1524
1567
|
}
|
|
1525
1568
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1526
|
-
const
|
|
1569
|
+
const x = await u(
|
|
1527
1570
|
t,
|
|
1528
1571
|
a,
|
|
1529
|
-
|
|
1572
|
+
y,
|
|
1530
1573
|
s,
|
|
1531
1574
|
i
|
|
1532
1575
|
);
|
|
1533
|
-
|
|
1576
|
+
x != null && x.data && q(t, x == null ? void 0 : x.data);
|
|
1534
1577
|
break;
|
|
1535
1578
|
}
|
|
1536
1579
|
case "CLOSE_MODAL":
|
|
@@ -1546,20 +1589,20 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1546
1589
|
console.warn(`Unhandled actionType: ${c}`);
|
|
1547
1590
|
break;
|
|
1548
1591
|
}
|
|
1549
|
-
} catch (
|
|
1550
|
-
alert(JSON.stringify(
|
|
1592
|
+
} catch (y) {
|
|
1593
|
+
alert(JSON.stringify(y));
|
|
1551
1594
|
}
|
|
1552
1595
|
}, [c, i, a, s, t]);
|
|
1553
1596
|
return /* @__PURE__ */ o.jsx(
|
|
1554
|
-
|
|
1597
|
+
dt,
|
|
1555
1598
|
{
|
|
1556
1599
|
..._,
|
|
1557
1600
|
disabled: h,
|
|
1558
|
-
onClick: () => !h && (n ??
|
|
1601
|
+
onClick: () => !h && (n ?? p)()
|
|
1559
1602
|
}
|
|
1560
1603
|
);
|
|
1561
|
-
},
|
|
1562
|
-
row:
|
|
1604
|
+
}, os = "_row_1bqj4_1", cs = "_row_column_1bqj4_65", J = {
|
|
1605
|
+
row: os,
|
|
1563
1606
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
1564
1607
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
1565
1608
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -1580,7 +1623,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1580
1623
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
1581
1624
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
1582
1625
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
1583
|
-
row_column:
|
|
1626
|
+
row_column: cs,
|
|
1584
1627
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
1585
1628
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
1586
1629
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -1601,7 +1644,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1601
1644
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
1602
1645
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
1603
1646
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
1604
|
-
},
|
|
1647
|
+
}, is = (e) => {
|
|
1605
1648
|
const {
|
|
1606
1649
|
userFlow: t,
|
|
1607
1650
|
pageId: a,
|
|
@@ -1660,7 +1703,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
|
|
|
1660
1703
|
}
|
|
1661
1704
|
);
|
|
1662
1705
|
};
|
|
1663
|
-
function
|
|
1706
|
+
function Ve({
|
|
1664
1707
|
userFlow: e,
|
|
1665
1708
|
pageId: t,
|
|
1666
1709
|
responseKey: a,
|
|
@@ -1669,7 +1712,7 @@ function Je({
|
|
|
1669
1712
|
isMulti: i = !1,
|
|
1670
1713
|
debounceMs: l
|
|
1671
1714
|
}) {
|
|
1672
|
-
const n =
|
|
1715
|
+
const n = Fe(null);
|
|
1673
1716
|
z(() => () => {
|
|
1674
1717
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
1675
1718
|
}, []);
|
|
@@ -1677,10 +1720,9 @@ function Je({
|
|
|
1677
1720
|
async (u) => {
|
|
1678
1721
|
var h;
|
|
1679
1722
|
const f = {
|
|
1680
|
-
...(h = v.getState()[e]) == null ? void 0 : h.entries
|
|
1681
|
-
[a]: u
|
|
1723
|
+
...(h = v.getState()[e]) == null ? void 0 : h.entries
|
|
1682
1724
|
};
|
|
1683
|
-
if (O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
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"))
|
|
1684
1726
|
try {
|
|
1685
1727
|
const m = await c(
|
|
1686
1728
|
e,
|
|
@@ -1689,9 +1731,9 @@ function Je({
|
|
|
1689
1731
|
a,
|
|
1690
1732
|
s === "GO_TO_NEXT_UI"
|
|
1691
1733
|
);
|
|
1692
|
-
m != null && m.data &&
|
|
1693
|
-
} catch (
|
|
1694
|
-
console.error("[useSelectChange] Failed to fetch next UI",
|
|
1734
|
+
m != null && m.data && q(e, m.data);
|
|
1735
|
+
} catch (p) {
|
|
1736
|
+
console.error("[useSelectChange] Failed to fetch next UI", p);
|
|
1695
1737
|
}
|
|
1696
1738
|
},
|
|
1697
1739
|
[e, t, a, s, c]
|
|
@@ -1713,21 +1755,21 @@ function Je({
|
|
|
1713
1755
|
[i, l, d]
|
|
1714
1756
|
);
|
|
1715
1757
|
}
|
|
1716
|
-
const
|
|
1758
|
+
const ls = /\{([^}]+)\}/g, ds = (e, t) => {
|
|
1717
1759
|
var a;
|
|
1718
|
-
return t.includes("{") ? t.replace(
|
|
1760
|
+
return t.includes("{") ? t.replace(ls, (s, c) => {
|
|
1719
1761
|
var l;
|
|
1720
1762
|
const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
|
|
1721
1763
|
return i != null ? String(i) : "";
|
|
1722
1764
|
}) : (a = L.query(e, t)) == null ? void 0 : a[0];
|
|
1723
|
-
},
|
|
1765
|
+
}, _s = (e, t, a, s) => {
|
|
1724
1766
|
const c = L.query(e, t);
|
|
1725
1767
|
return (c == null ? void 0 : c.map((i) => {
|
|
1726
1768
|
var d;
|
|
1727
|
-
const l =
|
|
1769
|
+
const l = ds(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
|
|
1728
1770
|
return { label: l, value: n };
|
|
1729
1771
|
})) ?? [];
|
|
1730
|
-
},
|
|
1772
|
+
}, us = (e, t, a, s = 10) => {
|
|
1731
1773
|
var n, d;
|
|
1732
1774
|
let c, i;
|
|
1733
1775
|
if (a) {
|
|
@@ -1743,9 +1785,9 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1743
1785
|
total: i,
|
|
1744
1786
|
hasMore: l
|
|
1745
1787
|
};
|
|
1746
|
-
},
|
|
1747
|
-
selectNotFront:
|
|
1748
|
-
},
|
|
1788
|
+
}, hs = "_selectNotFront_ch3v5_1", He = {
|
|
1789
|
+
selectNotFront: hs
|
|
1790
|
+
}, fs = ({
|
|
1749
1791
|
userFlow: e,
|
|
1750
1792
|
pageId: t,
|
|
1751
1793
|
responseKey: a,
|
|
@@ -1758,16 +1800,17 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1758
1800
|
}) => {
|
|
1759
1801
|
const r = {
|
|
1760
1802
|
...d
|
|
1761
|
-
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] =
|
|
1803
|
+
}, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = A((r == null ? void 0 : r.value) ?? ""), { disabled: p } = B(
|
|
1762
1804
|
e,
|
|
1763
1805
|
l
|
|
1764
|
-
), m = (r == null ? void 0 : r.disabled) ??
|
|
1765
|
-
const j = r != null && r.isMulti ? _ : [_],
|
|
1766
|
-
return
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
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(() => {
|
|
1807
|
+
const j = r != null && r.isMulti ? _ : [_], N = {};
|
|
1808
|
+
return Array.isArray(j) && j.forEach((w) => {
|
|
1809
|
+
if (!w) return;
|
|
1810
|
+
const k = JSON.stringify(w.value), D = JSON.stringify(w.label);
|
|
1811
|
+
N[k] = w, D in N || (N[D] = w);
|
|
1812
|
+
}), N;
|
|
1813
|
+
}, [_]), g = Ve({
|
|
1771
1814
|
userFlow: e,
|
|
1772
1815
|
pageId: t,
|
|
1773
1816
|
responseKey: a,
|
|
@@ -1775,13 +1818,13 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1775
1818
|
getNextUI: u,
|
|
1776
1819
|
isMulti: r == null ? void 0 : r.isMulti,
|
|
1777
1820
|
debounceMs: n
|
|
1778
|
-
}),
|
|
1821
|
+
}), b = (j) => {
|
|
1779
1822
|
h(j), g(j);
|
|
1780
|
-
},
|
|
1823
|
+
}, C = async (j, N, { page: w }) => {
|
|
1781
1824
|
const {
|
|
1782
|
-
jsonPathLabel:
|
|
1825
|
+
jsonPathLabel: k,
|
|
1783
1826
|
jsonPathOptions: D,
|
|
1784
|
-
jsonPathValue:
|
|
1827
|
+
jsonPathValue: $,
|
|
1785
1828
|
jsonPathPagination: G
|
|
1786
1829
|
} = c, U = pe(
|
|
1787
1830
|
c,
|
|
@@ -1791,44 +1834,44 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1791
1834
|
U,
|
|
1792
1835
|
e,
|
|
1793
1836
|
!1
|
|
1794
|
-
), oe = re == null ? void 0 : re.data,
|
|
1837
|
+
), oe = re == null ? void 0 : re.data, We = oe ? _s(
|
|
1795
1838
|
oe,
|
|
1796
1839
|
D,
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
) : [], { hasMore:
|
|
1840
|
+
k,
|
|
1841
|
+
$
|
|
1842
|
+
) : [], { hasMore: Qe } = us(
|
|
1800
1843
|
oe,
|
|
1801
1844
|
w,
|
|
1802
1845
|
G
|
|
1803
1846
|
);
|
|
1804
1847
|
return {
|
|
1805
|
-
options:
|
|
1806
|
-
hasMore:
|
|
1848
|
+
options: We,
|
|
1849
|
+
hasMore: Qe,
|
|
1807
1850
|
additional: {
|
|
1808
1851
|
page: j ? 1 : w + 1
|
|
1809
1852
|
}
|
|
1810
1853
|
};
|
|
1811
1854
|
};
|
|
1812
1855
|
return /* @__PURE__ */ o.jsx(
|
|
1813
|
-
|
|
1856
|
+
_t,
|
|
1814
1857
|
{
|
|
1815
1858
|
...r,
|
|
1816
|
-
className:
|
|
1817
|
-
label:
|
|
1859
|
+
className: He.selectNotFront,
|
|
1860
|
+
label: y,
|
|
1818
1861
|
value: _,
|
|
1819
1862
|
disabled: m,
|
|
1820
1863
|
noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
|
|
1821
|
-
onChange: (j) => !m &&
|
|
1822
|
-
loadOptions:
|
|
1864
|
+
onChange: (j) => !m && b(j),
|
|
1865
|
+
loadOptions: C,
|
|
1823
1866
|
additional: { page: 1 },
|
|
1824
1867
|
isOptionDisabled: (j) => {
|
|
1825
|
-
const
|
|
1826
|
-
return !!(
|
|
1868
|
+
const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
|
|
1869
|
+
return !!(x != null && x[N]) || !!(x != null && x[w]);
|
|
1827
1870
|
},
|
|
1828
1871
|
debounceTimeout: 350
|
|
1829
1872
|
}
|
|
1830
1873
|
);
|
|
1831
|
-
},
|
|
1874
|
+
}, ms = ({
|
|
1832
1875
|
userFlow: e,
|
|
1833
1876
|
pageId: t,
|
|
1834
1877
|
responseKey: a,
|
|
@@ -1841,10 +1884,10 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1841
1884
|
}) => {
|
|
1842
1885
|
const r = {
|
|
1843
1886
|
...d
|
|
1844
|
-
}, { getNextUI: u } = K(), [f, _] =
|
|
1887
|
+
}, { getNextUI: u } = K(), [f, _] = A(r.value || ""), { disabled: h } = B(
|
|
1845
1888
|
e,
|
|
1846
1889
|
l
|
|
1847
|
-
),
|
|
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({
|
|
1848
1891
|
userFlow: e,
|
|
1849
1892
|
pageId: t,
|
|
1850
1893
|
responseKey: a,
|
|
@@ -1852,37 +1895,37 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1852
1895
|
getNextUI: u,
|
|
1853
1896
|
isMulti: r == null ? void 0 : r.isMulti,
|
|
1854
1897
|
debounceMs: n
|
|
1855
|
-
}),
|
|
1856
|
-
_(g),
|
|
1898
|
+
}), x = (g) => {
|
|
1899
|
+
_(g), y(g);
|
|
1857
1900
|
};
|
|
1858
1901
|
return /* @__PURE__ */ o.jsx(
|
|
1859
|
-
|
|
1902
|
+
ut,
|
|
1860
1903
|
{
|
|
1861
1904
|
...r,
|
|
1862
|
-
className:
|
|
1905
|
+
className: He.selectNotFront,
|
|
1863
1906
|
label: m,
|
|
1864
1907
|
value: f,
|
|
1865
|
-
disabled:
|
|
1866
|
-
onChange: (g) => !
|
|
1908
|
+
disabled: p,
|
|
1909
|
+
onChange: (g) => !p && x(g)
|
|
1867
1910
|
}
|
|
1868
1911
|
);
|
|
1869
|
-
},
|
|
1912
|
+
}, ys = (e) => {
|
|
1870
1913
|
const { dataSource: t } = e;
|
|
1871
|
-
return t ? /* @__PURE__ */ o.jsx(
|
|
1872
|
-
},
|
|
1873
|
-
spacing:
|
|
1874
|
-
spacing__xxs:
|
|
1875
|
-
spacing__xs:
|
|
1876
|
-
spacing__sm:
|
|
1877
|
-
spacing__md:
|
|
1878
|
-
spacing__lg:
|
|
1879
|
-
spacing__xl:
|
|
1880
|
-
spacing__xxl:
|
|
1881
|
-
spacing__xxxl:
|
|
1882
|
-
},
|
|
1883
|
-
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}`]);
|
|
1884
1927
|
return /* @__PURE__ */ o.jsx("div", { className: a });
|
|
1885
|
-
},
|
|
1928
|
+
}, Ss = (e) => {
|
|
1886
1929
|
const {
|
|
1887
1930
|
userFlow: t,
|
|
1888
1931
|
pageId: a,
|
|
@@ -1895,59 +1938,59 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1895
1938
|
...r
|
|
1896
1939
|
} = e, u = {
|
|
1897
1940
|
...r
|
|
1898
|
-
}, { getNextUI: f } = K(), [_, h] =
|
|
1941
|
+
}, { getNextUI: f } = K(), [_, h] = A(l || !1), { disabled: p } = B(
|
|
1899
1942
|
t,
|
|
1900
1943
|
d
|
|
1901
|
-
), m = (u == null ? void 0 : u.disabled) ??
|
|
1944
|
+
), m = (u == null ? void 0 : u.disabled) ?? p, y = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
|
|
1902
1945
|
var g;
|
|
1903
1946
|
try {
|
|
1904
|
-
const
|
|
1905
|
-
h(
|
|
1906
|
-
const
|
|
1947
|
+
const b = !_;
|
|
1948
|
+
h(b);
|
|
1949
|
+
const C = {
|
|
1907
1950
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
1908
|
-
[s]:
|
|
1951
|
+
[s]: b
|
|
1909
1952
|
};
|
|
1910
|
-
switch (O(t,
|
|
1953
|
+
switch (O(t, C), c) {
|
|
1911
1954
|
case "GO_TO_NEXT_UI":
|
|
1912
1955
|
const j = await f(
|
|
1913
1956
|
t,
|
|
1914
1957
|
a,
|
|
1915
|
-
|
|
1958
|
+
C,
|
|
1916
1959
|
s
|
|
1917
1960
|
);
|
|
1918
|
-
j != null && j.data &&
|
|
1961
|
+
j != null && j.data && q(t, j == null ? void 0 : j.data);
|
|
1919
1962
|
break;
|
|
1920
1963
|
default:
|
|
1921
1964
|
console.warn(`Unhandled actionType: ${c}`);
|
|
1922
1965
|
break;
|
|
1923
1966
|
}
|
|
1924
|
-
} catch (
|
|
1925
|
-
console.error("Error in switch action:",
|
|
1967
|
+
} catch (b) {
|
|
1968
|
+
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
1926
1969
|
}
|
|
1927
1970
|
}, [t, a, s, c, _]);
|
|
1928
1971
|
return /* @__PURE__ */ o.jsx(
|
|
1929
|
-
|
|
1972
|
+
ht,
|
|
1930
1973
|
{
|
|
1931
1974
|
...u,
|
|
1932
|
-
label:
|
|
1975
|
+
label: y,
|
|
1933
1976
|
checked: _,
|
|
1934
1977
|
disabled: m,
|
|
1935
|
-
onChange: () => !m &&
|
|
1978
|
+
onChange: () => !m && x()
|
|
1936
1979
|
}
|
|
1937
1980
|
);
|
|
1938
|
-
},
|
|
1939
|
-
tableSkeleton:
|
|
1940
|
-
tableArrayPills:
|
|
1941
|
-
},
|
|
1981
|
+
}, ks = "_tableSkeleton_3nr9n_1", Ts = "_tableArrayPills_3nr9n_7", Xe = {
|
|
1982
|
+
tableSkeleton: ks,
|
|
1983
|
+
tableArrayPills: Ts
|
|
1984
|
+
}, $s = ({ values: e }) => {
|
|
1942
1985
|
const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
|
|
1943
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1986
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Xe.tableArrayPills, children: [
|
|
1944
1987
|
a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
|
|
1945
1988
|
s > 0 && /* @__PURE__ */ o.jsxs(he, { outlined: !0, children: [
|
|
1946
1989
|
"+",
|
|
1947
1990
|
s
|
|
1948
1991
|
] })
|
|
1949
1992
|
] });
|
|
1950
|
-
},
|
|
1993
|
+
}, As = ({
|
|
1951
1994
|
userFlow: e,
|
|
1952
1995
|
pageId: t,
|
|
1953
1996
|
tableResponseKey: a,
|
|
@@ -1963,85 +2006,85 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
1963
2006
|
responseKey: f,
|
|
1964
2007
|
dataSource: _
|
|
1965
2008
|
} = r.props, h = R(async () => {
|
|
1966
|
-
var
|
|
2009
|
+
var p, m, y;
|
|
1967
2010
|
try {
|
|
1968
|
-
const
|
|
1969
|
-
...(
|
|
2011
|
+
const x = {
|
|
2012
|
+
...(p = v.getState()[e]) == null ? void 0 : p.entries,
|
|
1970
2013
|
[f]: { status: 200 },
|
|
1971
2014
|
[a]: [{ ...c }]
|
|
1972
2015
|
};
|
|
1973
|
-
switch (O(e,
|
|
2016
|
+
switch (O(e, x), u) {
|
|
1974
2017
|
case "GO_TO_NEXT_UI": {
|
|
1975
2018
|
const g = await i(
|
|
1976
2019
|
e,
|
|
1977
2020
|
t,
|
|
1978
|
-
|
|
2021
|
+
x,
|
|
1979
2022
|
f
|
|
1980
2023
|
);
|
|
1981
|
-
g != null && g.data &&
|
|
2024
|
+
g != null && g.data && q(e, g == null ? void 0 : g.data);
|
|
1982
2025
|
break;
|
|
1983
2026
|
}
|
|
1984
2027
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1985
2028
|
const g = await l(
|
|
1986
2029
|
e,
|
|
1987
2030
|
t,
|
|
1988
|
-
|
|
2031
|
+
x,
|
|
1989
2032
|
f,
|
|
1990
2033
|
_
|
|
1991
2034
|
);
|
|
1992
|
-
g != null && g.data &&
|
|
2035
|
+
g != null && g.data && q(e, g == null ? void 0 : g.data);
|
|
1993
2036
|
break;
|
|
1994
2037
|
}
|
|
1995
2038
|
case "GET_DATA_SOURCE": {
|
|
1996
2039
|
const g = await i(
|
|
1997
2040
|
e,
|
|
1998
2041
|
t,
|
|
1999
|
-
|
|
2042
|
+
x,
|
|
2000
2043
|
f
|
|
2001
|
-
),
|
|
2002
|
-
if ((
|
|
2003
|
-
const
|
|
2004
|
-
|
|
2044
|
+
), b = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
|
|
2045
|
+
if ((b == null ? void 0 : b.type) !== "fetch") break;
|
|
2046
|
+
const C = b == null ? void 0 : b.dataSource, j = await n(
|
|
2047
|
+
C,
|
|
2005
2048
|
e,
|
|
2006
2049
|
// Avoid to handle loading state until all the requests are done
|
|
2007
2050
|
!1
|
|
2008
|
-
),
|
|
2009
|
-
...(
|
|
2051
|
+
), N = {
|
|
2052
|
+
...(y = v.getState()[e]) == null ? void 0 : y.entries,
|
|
2010
2053
|
[f]: {
|
|
2011
2054
|
status: j == null ? void 0 : j.status,
|
|
2012
2055
|
content: j == null ? void 0 : j.data
|
|
2013
2056
|
}
|
|
2014
2057
|
};
|
|
2015
|
-
O(e,
|
|
2058
|
+
O(e, N);
|
|
2016
2059
|
const w = await i(
|
|
2017
2060
|
e,
|
|
2018
2061
|
t,
|
|
2019
|
-
|
|
2062
|
+
N,
|
|
2020
2063
|
f
|
|
2021
2064
|
);
|
|
2022
|
-
w != null && w.data &&
|
|
2065
|
+
w != null && w.data && q(e, w == null ? void 0 : w.data);
|
|
2023
2066
|
break;
|
|
2024
2067
|
}
|
|
2025
2068
|
default:
|
|
2026
2069
|
console.warn(`Unhandled actionType: ${u}`);
|
|
2027
2070
|
break;
|
|
2028
2071
|
}
|
|
2029
|
-
} catch (
|
|
2030
|
-
alert(JSON.stringify(
|
|
2072
|
+
} catch (x) {
|
|
2073
|
+
alert(JSON.stringify(x));
|
|
2031
2074
|
}
|
|
2032
2075
|
}, [u, _, t, f, e]);
|
|
2033
|
-
return
|
|
2076
|
+
return Pe(r, {
|
|
2034
2077
|
onClick: h
|
|
2035
2078
|
});
|
|
2036
|
-
},
|
|
2037
|
-
|
|
2079
|
+
}, qs = () => /* @__PURE__ */ o.jsx("div", { className: Xe.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
2080
|
+
Me,
|
|
2038
2081
|
{
|
|
2039
2082
|
maxWidth: "100%",
|
|
2040
2083
|
height: 42,
|
|
2041
2084
|
radius: 8
|
|
2042
2085
|
},
|
|
2043
2086
|
`tableSkeletonBase${t}`
|
|
2044
|
-
)) }),
|
|
2087
|
+
)) }), Os = ({
|
|
2045
2088
|
userFlow: e,
|
|
2046
2089
|
pageId: t,
|
|
2047
2090
|
responseKey: a,
|
|
@@ -2050,86 +2093,86 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2050
2093
|
rightActions: i,
|
|
2051
2094
|
...l
|
|
2052
2095
|
}) => {
|
|
2053
|
-
var
|
|
2054
|
-
const { fetchDataSource: n } = K(), [d, r] =
|
|
2096
|
+
var b, C, j;
|
|
2097
|
+
const { fetchDataSource: n } = K(), [d, r] = A(!1), [u, f] = A(1), [_, h] = A(null), p = T(() => {
|
|
2055
2098
|
if (i != null && i.length)
|
|
2056
|
-
return i.map((
|
|
2057
|
-
renderContent: (
|
|
2058
|
-
|
|
2099
|
+
return i.map((N, w) => ({
|
|
2100
|
+
renderContent: (k) => /* @__PURE__ */ o.jsx(
|
|
2101
|
+
As,
|
|
2059
2102
|
{
|
|
2060
2103
|
userFlow: e,
|
|
2061
2104
|
pageId: t,
|
|
2062
2105
|
tableResponseKey: a,
|
|
2063
|
-
component:
|
|
2064
|
-
rowData:
|
|
2106
|
+
component: N,
|
|
2107
|
+
rowData: k
|
|
2065
2108
|
},
|
|
2066
2109
|
`tableRowAction${w}`
|
|
2067
2110
|
)
|
|
2068
2111
|
}));
|
|
2069
|
-
}, [i, e, t]), m = async (
|
|
2112
|
+
}, [i, e, t]), m = async (N = 1) => {
|
|
2070
2113
|
try {
|
|
2071
2114
|
r(!0);
|
|
2072
|
-
const { jsonPathData: w, mapperData:
|
|
2115
|
+
const { jsonPathData: w, mapperData: k, jsonPathPagination: D } = c, $ = pe(
|
|
2073
2116
|
c,
|
|
2074
|
-
|
|
2117
|
+
N
|
|
2075
2118
|
), G = await n(
|
|
2076
|
-
|
|
2119
|
+
$,
|
|
2077
2120
|
e,
|
|
2078
2121
|
!1
|
|
2079
2122
|
);
|
|
2080
2123
|
h(
|
|
2081
|
-
|
|
2124
|
+
Je(
|
|
2082
2125
|
G == null ? void 0 : G.data,
|
|
2083
2126
|
w,
|
|
2084
|
-
|
|
2127
|
+
k,
|
|
2085
2128
|
D
|
|
2086
2129
|
)
|
|
2087
2130
|
), r(!1);
|
|
2088
2131
|
} catch (w) {
|
|
2089
2132
|
alert(JSON.stringify(w)), r(!1);
|
|
2090
2133
|
}
|
|
2091
|
-
},
|
|
2092
|
-
f(
|
|
2134
|
+
}, y = (N) => {
|
|
2135
|
+
f(N), m(N);
|
|
2093
2136
|
};
|
|
2094
2137
|
z(() => {
|
|
2095
2138
|
m();
|
|
2096
2139
|
}, []);
|
|
2097
|
-
const
|
|
2098
|
-
var
|
|
2099
|
-
return ((
|
|
2100
|
-
(D) => Array.isArray(
|
|
2140
|
+
const x = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((N) => {
|
|
2141
|
+
var k;
|
|
2142
|
+
return ((k = _ == null ? void 0 : _.items) == null ? void 0 : k.some(
|
|
2143
|
+
(D) => Array.isArray(N != null && N.accessor ? D[N == null ? void 0 : N.accessor] : void 0)
|
|
2101
2144
|
)) ? {
|
|
2102
|
-
...
|
|
2145
|
+
...N,
|
|
2103
2146
|
renderCell: (D) => {
|
|
2104
|
-
const
|
|
2105
|
-
return Array.isArray(
|
|
2147
|
+
const $ = N.accessor ? D[N.accessor] : void 0;
|
|
2148
|
+
return Array.isArray($) ? /* @__PURE__ */ o.jsx($s, { values: $ }) : $ ?? "";
|
|
2106
2149
|
}
|
|
2107
|
-
} :
|
|
2150
|
+
} : N;
|
|
2108
2151
|
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
2109
2152
|
...l,
|
|
2110
2153
|
data: _ == null ? void 0 : _.items,
|
|
2111
|
-
columns:
|
|
2112
|
-
rightActions:
|
|
2154
|
+
columns: x,
|
|
2155
|
+
rightActions: p
|
|
2113
2156
|
};
|
|
2114
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(
|
|
2115
|
-
/* @__PURE__ */ o.jsx(
|
|
2116
|
-
(_ == null ? void 0 : _.pagination) && ((
|
|
2117
|
-
|
|
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 }),
|
|
2159
|
+
(_ == null ? void 0 : _.pagination) && ((C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
2160
|
+
mt,
|
|
2118
2161
|
{
|
|
2119
2162
|
classname: { global: "row__end" },
|
|
2120
2163
|
page: u,
|
|
2121
2164
|
size: _ == null ? void 0 : _.pagination.size,
|
|
2122
2165
|
total: (j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.total,
|
|
2123
|
-
onChange:
|
|
2166
|
+
onChange: y
|
|
2124
2167
|
}
|
|
2125
2168
|
)
|
|
2126
2169
|
] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2127
|
-
},
|
|
2128
|
-
tabsPanel:
|
|
2129
|
-
},
|
|
2170
|
+
}, Rs = "_tabsPanel_kvslb_1", Ds = {
|
|
2171
|
+
tabsPanel: Rs
|
|
2172
|
+
}, Ls = ({ userFlow: e, pageId: t, components: a }) => {
|
|
2130
2173
|
const s = E(e, t, a);
|
|
2131
|
-
return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2132
|
-
},
|
|
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 = ({
|
|
2133
2176
|
userFlow: e,
|
|
2134
2177
|
pageId: t,
|
|
2135
2178
|
hash: a,
|
|
@@ -2142,7 +2185,7 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2142
2185
|
label: r.label,
|
|
2143
2186
|
disabled: r.disabled,
|
|
2144
2187
|
children: /* @__PURE__ */ o.jsx(
|
|
2145
|
-
|
|
2188
|
+
Ls,
|
|
2146
2189
|
{
|
|
2147
2190
|
userFlow: e,
|
|
2148
2191
|
pageId: t,
|
|
@@ -2159,7 +2202,7 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2159
2202
|
O(e, u);
|
|
2160
2203
|
};
|
|
2161
2204
|
return /* @__PURE__ */ o.jsx(
|
|
2162
|
-
|
|
2205
|
+
yt,
|
|
2163
2206
|
{
|
|
2164
2207
|
className: i,
|
|
2165
2208
|
activeIndex: c,
|
|
@@ -2167,9 +2210,9 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2167
2210
|
onClick: d
|
|
2168
2211
|
}
|
|
2169
2212
|
);
|
|
2170
|
-
},
|
|
2171
|
-
textFieldNotFront:
|
|
2172
|
-
},
|
|
2213
|
+
}, Bs = "_textFieldNotFront_1n8fy_1", Ks = {
|
|
2214
|
+
textFieldNotFront: Bs
|
|
2215
|
+
}, Ms = (e) => {
|
|
2173
2216
|
const {
|
|
2174
2217
|
userFlow: t,
|
|
2175
2218
|
pageId: a,
|
|
@@ -2181,33 +2224,33 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2181
2224
|
...d
|
|
2182
2225
|
} = e, r = {
|
|
2183
2226
|
...d
|
|
2184
|
-
}, [u, f] =
|
|
2227
|
+
}, [u, f] = A((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
|
|
2185
2228
|
t,
|
|
2186
2229
|
n
|
|
2187
|
-
), h = (r == null ? void 0 : r.disabled) ?? _,
|
|
2188
|
-
var
|
|
2189
|
-
const
|
|
2190
|
-
f(
|
|
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) => {
|
|
2231
|
+
var b;
|
|
2232
|
+
const x = (b = y == null ? void 0 : y.target) == null ? void 0 : b.value;
|
|
2233
|
+
f(x);
|
|
2191
2234
|
const g = {
|
|
2192
|
-
[i]:
|
|
2235
|
+
[i]: x
|
|
2193
2236
|
};
|
|
2194
2237
|
O(t, g);
|
|
2195
2238
|
};
|
|
2196
2239
|
return z(() => {
|
|
2197
2240
|
f((r == null ? void 0 : r.value) ?? "");
|
|
2198
2241
|
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2199
|
-
|
|
2242
|
+
xt,
|
|
2200
2243
|
{
|
|
2201
2244
|
...r,
|
|
2202
|
-
className:
|
|
2245
|
+
className: Ks.textFieldNotFront,
|
|
2203
2246
|
allowClear: !1,
|
|
2204
|
-
label:
|
|
2247
|
+
label: p,
|
|
2205
2248
|
value: u,
|
|
2206
2249
|
disabled: h,
|
|
2207
|
-
onChange: (
|
|
2250
|
+
onChange: (y) => !h && m(y)
|
|
2208
2251
|
}
|
|
2209
2252
|
);
|
|
2210
|
-
},
|
|
2253
|
+
}, zs = ({
|
|
2211
2254
|
userFlow: e,
|
|
2212
2255
|
pageId: t,
|
|
2213
2256
|
responseKey: a,
|
|
@@ -2233,20 +2276,20 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2233
2276
|
}, [i, t, a, e, l]);
|
|
2234
2277
|
return z(() => {
|
|
2235
2278
|
({
|
|
2236
|
-
info:
|
|
2237
|
-
error:
|
|
2238
|
-
success:
|
|
2239
|
-
warning:
|
|
2240
|
-
}[s] ||
|
|
2279
|
+
info: Q.info,
|
|
2280
|
+
error: Q.error,
|
|
2281
|
+
success: Q.success,
|
|
2282
|
+
warning: Q.warning
|
|
2283
|
+
}[s] || Q.info)(c, {
|
|
2241
2284
|
autoClose: i ? !1 : 4e3,
|
|
2242
2285
|
containerId: e,
|
|
2243
2286
|
onClose: n
|
|
2244
2287
|
});
|
|
2245
2288
|
}, [n, e]), null;
|
|
2246
|
-
},
|
|
2247
|
-
accordion:
|
|
2248
|
-
accordionBody:
|
|
2249
|
-
},
|
|
2289
|
+
}, Gs = "_accordion_1ri2t_1", Us = "_accordionBody_1ri2t_8", Le = {
|
|
2290
|
+
accordion: Gs,
|
|
2291
|
+
accordionBody: Us
|
|
2292
|
+
}, Js = (e) => {
|
|
2250
2293
|
const {
|
|
2251
2294
|
userFlow: t,
|
|
2252
2295
|
pageId: a,
|
|
@@ -2256,51 +2299,51 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2256
2299
|
actionContent: l,
|
|
2257
2300
|
components: n,
|
|
2258
2301
|
...d
|
|
2259
|
-
} = e, { getNextUI: r } = K(), [u, f] =
|
|
2302
|
+
} = e, { getNextUI: r } = K(), [u, f] = A(
|
|
2260
2303
|
d.checkboxChecked || !1
|
|
2261
|
-
), { disabled: _ } =
|
|
2304
|
+
), { disabled: _ } = B(
|
|
2262
2305
|
t,
|
|
2263
2306
|
c
|
|
2264
|
-
), h = E(t, a, n),
|
|
2265
|
-
async (
|
|
2266
|
-
var
|
|
2307
|
+
), h = E(t, a, n), p = l ? E(t, a, l) : void 0, m = i ? E(t, a, i) : void 0, y = R(
|
|
2308
|
+
async (b) => {
|
|
2309
|
+
var C;
|
|
2267
2310
|
try {
|
|
2268
|
-
const j =
|
|
2311
|
+
const j = b.target.checked;
|
|
2269
2312
|
f(j);
|
|
2270
|
-
const
|
|
2271
|
-
...(
|
|
2313
|
+
const N = {
|
|
2314
|
+
...(C = v.getState()[t]) == null ? void 0 : C.entries,
|
|
2272
2315
|
[s]: j
|
|
2273
2316
|
};
|
|
2274
|
-
if (O(t,
|
|
2317
|
+
if (O(t, N), d.actionType === "GO_TO_NEXT_UI") {
|
|
2275
2318
|
const w = await r(
|
|
2276
2319
|
t,
|
|
2277
2320
|
a,
|
|
2278
|
-
|
|
2321
|
+
N,
|
|
2279
2322
|
s
|
|
2280
2323
|
);
|
|
2281
|
-
w != null && w.data &&
|
|
2324
|
+
w != null && w.data && q(t, w == null ? void 0 : w.data);
|
|
2282
2325
|
}
|
|
2283
2326
|
} catch (j) {
|
|
2284
2327
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
2285
2328
|
}
|
|
2286
2329
|
},
|
|
2287
2330
|
[t, a, s, d.actionType, r]
|
|
2288
|
-
),
|
|
2331
|
+
), x = d.disabled || _, g = {
|
|
2289
2332
|
...d,
|
|
2290
|
-
className:
|
|
2291
|
-
disabled:
|
|
2333
|
+
className: Le.accordion,
|
|
2334
|
+
disabled: x,
|
|
2292
2335
|
checkboxChecked: u,
|
|
2293
|
-
onChanceCheckbox: d.hasCheckbox ?
|
|
2294
|
-
actionContent:
|
|
2295
|
-
customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((
|
|
2296
|
-
children: h ? /* @__PURE__ */ o.jsx("section", { className:
|
|
2336
|
+
onChanceCheckbox: d.hasCheckbox ? y : void 0,
|
|
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
|
|
2297
2340
|
};
|
|
2298
|
-
return /* @__PURE__ */ o.jsx(
|
|
2299
|
-
},
|
|
2300
|
-
drawer:
|
|
2301
|
-
drawerBody:
|
|
2302
|
-
drawerFooter:
|
|
2303
|
-
},
|
|
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 = ({
|
|
2304
2347
|
userFlow: e,
|
|
2305
2348
|
pageId: t,
|
|
2306
2349
|
responseKey: a,
|
|
@@ -2310,39 +2353,39 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
|
|
|
2310
2353
|
...l
|
|
2311
2354
|
}) => {
|
|
2312
2355
|
const n = v((m) => {
|
|
2313
|
-
var
|
|
2314
|
-
return (
|
|
2356
|
+
var y;
|
|
2357
|
+
return (y = m[e]) == null ? void 0 : y.isDrawerOpen;
|
|
2315
2358
|
}), d = v((m) => {
|
|
2316
|
-
var
|
|
2317
|
-
return (
|
|
2359
|
+
var y;
|
|
2360
|
+
return (y = m[e]) == null ? void 0 : y.isLoading;
|
|
2318
2361
|
}), r = n && !d, u = {
|
|
2319
2362
|
...l,
|
|
2320
2363
|
isOpen: r,
|
|
2321
2364
|
children: null
|
|
2322
2365
|
}, f = R(() => {
|
|
2323
2366
|
xe(e), Z(e, !1);
|
|
2324
|
-
}, [e]), _ = Array.isArray(s) ? E(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = E(e, t, c),
|
|
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;
|
|
2325
2368
|
return /* @__PURE__ */ o.jsx(
|
|
2326
|
-
|
|
2369
|
+
pt,
|
|
2327
2370
|
{
|
|
2328
2371
|
...u,
|
|
2329
2372
|
className: ue.drawer,
|
|
2330
2373
|
isOpen: r,
|
|
2331
2374
|
onClose: f,
|
|
2332
2375
|
heightGap: 0,
|
|
2333
|
-
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m,
|
|
2334
|
-
children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m,
|
|
2335
|
-
footer:
|
|
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
|
|
2336
2379
|
}
|
|
2337
2380
|
);
|
|
2338
2381
|
};
|
|
2339
|
-
function
|
|
2382
|
+
function la({
|
|
2340
2383
|
routes: e,
|
|
2341
2384
|
renderPage: t,
|
|
2342
2385
|
renderFallback: a,
|
|
2343
2386
|
redirectTo: s = "/"
|
|
2344
2387
|
}) {
|
|
2345
|
-
return /* @__PURE__ */ o.jsxs(
|
|
2388
|
+
return /* @__PURE__ */ o.jsxs(Gt, { children: [
|
|
2346
2389
|
e.map((c) => /* @__PURE__ */ o.jsx(
|
|
2347
2390
|
Ce,
|
|
2348
2391
|
{
|
|
@@ -2351,16 +2394,16 @@ function aa({
|
|
|
2351
2394
|
},
|
|
2352
2395
|
`${c.path}:${c.sessionName}`
|
|
2353
2396
|
)),
|
|
2354
|
-
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(
|
|
2397
|
+
/* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(Ut, { to: s, replace: !0 }) })
|
|
2355
2398
|
] });
|
|
2356
2399
|
}
|
|
2357
|
-
function
|
|
2400
|
+
function da({
|
|
2358
2401
|
sessionName: e,
|
|
2359
2402
|
apiConfig: t,
|
|
2360
2403
|
onResolveComponentProps: a,
|
|
2361
2404
|
children: s
|
|
2362
2405
|
}) {
|
|
2363
|
-
const c =
|
|
2406
|
+
const c = Qs(
|
|
2364
2407
|
e,
|
|
2365
2408
|
t,
|
|
2366
2409
|
null,
|
|
@@ -2371,7 +2414,7 @@ function ra({
|
|
|
2371
2414
|
s
|
|
2372
2415
|
] });
|
|
2373
2416
|
}
|
|
2374
|
-
const
|
|
2417
|
+
const Ie = (e, t, a, s, c) => {
|
|
2375
2418
|
const i = E(
|
|
2376
2419
|
e,
|
|
2377
2420
|
t,
|
|
@@ -2381,7 +2424,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2381
2424
|
switch (a) {
|
|
2382
2425
|
case "body":
|
|
2383
2426
|
return /* @__PURE__ */ o.jsx(
|
|
2384
|
-
|
|
2427
|
+
un,
|
|
2385
2428
|
{
|
|
2386
2429
|
...s,
|
|
2387
2430
|
inputs: i || []
|
|
@@ -2390,7 +2433,7 @@ const Le = (e, t, a, s, c) => {
|
|
|
2390
2433
|
);
|
|
2391
2434
|
case "header":
|
|
2392
2435
|
return /* @__PURE__ */ o.jsx(
|
|
2393
|
-
|
|
2436
|
+
Yn,
|
|
2394
2437
|
{
|
|
2395
2438
|
...s,
|
|
2396
2439
|
components: i || []
|
|
@@ -2400,36 +2443,42 @@ const Le = (e, t, a, s, c) => {
|
|
|
2400
2443
|
default:
|
|
2401
2444
|
return null;
|
|
2402
2445
|
}
|
|
2403
|
-
},
|
|
2404
|
-
var _, h,
|
|
2405
|
-
const [c, i] =
|
|
2446
|
+
}, Qs = (e, t, a, s) => {
|
|
2447
|
+
var _, h, p;
|
|
2448
|
+
const [c, i] = A(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId;
|
|
2449
|
+
z(() => {
|
|
2450
|
+
if (typeof window > "u") return;
|
|
2451
|
+
const m = new URL(window.location.href), y = m.searchParams.get("sessionId");
|
|
2452
|
+
y && (sessionStorage.setItem("sessionId", y), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
|
|
2453
|
+
}, []);
|
|
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",
|
|
2415
|
-
((
|
|
2464
|
+
((p = l[e].pages[n].page) == null ? void 0 : p.body) || null,
|
|
2416
2465
|
s
|
|
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
|
-
),
|
|
2432
|
-
(m == null ? void 0 : m.status) === 200 ? ce(e, t,
|
|
2480
|
+
), y = m == null ? void 0 : m.data, x = y == null ? void 0 : y.content;
|
|
2481
|
+
(m == null ? void 0 : m.status) === 200 ? ce(e, t, x, y == null ? void 0 : y.sessionState) : i(!0);
|
|
2433
2482
|
} catch (m) {
|
|
2434
2483
|
console.error("[not-page]: API call failed", m), i(!0);
|
|
2435
2484
|
}
|
|
@@ -2440,21 +2489,21 @@ const Le = (e, t, a, s, c) => {
|
|
|
2440
2489
|
"not api config",
|
|
2441
2490
|
"not userFlow"
|
|
2442
2491
|
));
|
|
2443
|
-
const m = "avocado-theme-mode-changed",
|
|
2444
|
-
const g =
|
|
2492
|
+
const m = "avocado-theme-mode-changed", y = (x) => {
|
|
2493
|
+
const g = x.detail;
|
|
2445
2494
|
te.setThemeMode(g);
|
|
2446
2495
|
};
|
|
2447
|
-
return window.addEventListener(m,
|
|
2448
|
-
window.removeEventListener(m,
|
|
2496
|
+
return window.addEventListener(m, y), () => {
|
|
2497
|
+
window.removeEventListener(m, y);
|
|
2449
2498
|
};
|
|
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
|
};
|