@foris/avocado-not-front 4.6.3 → 4.7.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 +992 -904
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/components/chart/chart.constants.d.ts +4 -1
- package/dist/components/chart/chart.types.d.ts +4 -0
- package/dist/components/chart/chart.util.d.ts +12 -0
- package/dist/components/chart/chart.util.test.d.ts +1 -0
- package/dist/components/chart/components/ChartFrame.d.ts +15 -0
- package/dist/components/chart/components/ChartScrollViewport.d.ts +13 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/progress-bar/ProgressBar.d.ts +7 -0
- package/dist/style.css +1 -1
- package/dist/types/components.type.d.ts +29 -49
- package/package.json +10 -5
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { ChatPanel as
|
|
1
|
+
import J from "axios";
|
|
2
|
+
import { create as at } from "zustand";
|
|
3
|
+
import rt, { useMemo as A, useState as L, useCallback as R, Fragment as T, useEffect as V, useRef as ge, cloneElement as ot } from "react";
|
|
4
|
+
import { Heading as ze, Text as ct, Accordion as it, ThemeStore as ne, Box as lt, RadioButton as dt, Stepper as _t, ProgressBar as ut, Breadcrumbs as ht, Button as ft, CardAccordion as yt, Card as mt, CardNotification as pe, SkeletonBase as He, Checkbox as xt, PreviewerMarkdown as Xe, DataCard as gt, Divider as pt, Drawer as bt, DropdownButton as jt, Link as wt, Menu as Ct, Modal as Nt, Pill as me, RoundButton as vt, SelectPagination as St, Select as kt, Switch as Et, Table as Tt, Pager as Ot, Tabs as At, Textarea as $t, TextField as qt, toast as ee, Tooltip as Dt, Loading as Rt, Toaster as Lt } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as It, PromptCodeEditor as Bt, SummaryCard as Kt } from "@foris/ai-agent";
|
|
6
6
|
import B from "jsonpath";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import { json as
|
|
10
|
-
import { markdown as
|
|
11
|
-
import { sql as
|
|
12
|
-
import { yaml as
|
|
13
|
-
import { Icon as
|
|
14
|
-
const v =
|
|
7
|
+
import { ResponsiveContainer as Je, Legend as Gt, Tooltip as Mt, XAxis as Ut, YAxis as Vt, AreaChart as zt, CartesianGrid as be, Area as Ht, BarChart as Xt, Bar as Jt, LineChart as Wt, Line as Qt, PieChart as Yt, Pie as Zt, Cell as Ft } from "recharts";
|
|
8
|
+
import Pt from "@uiw/react-codemirror";
|
|
9
|
+
import { json as ke } from "@codemirror/lang-json";
|
|
10
|
+
import { markdown as en } from "@codemirror/lang-markdown";
|
|
11
|
+
import { sql as tn } from "@codemirror/lang-sql";
|
|
12
|
+
import { yaml as nn } from "@codemirror/lang-yaml";
|
|
13
|
+
import { Icon as Ee } from "@foris/avocado-icons";
|
|
14
|
+
const v = at(() => ({})), de = (e, t, s, r) => {
|
|
15
15
|
const l = s == null ? void 0 : s.hash, i = r && Object.keys(r).length > 0 ? { ...r } : {};
|
|
16
|
-
v.setState((
|
|
16
|
+
v.setState((o) => {
|
|
17
17
|
var n;
|
|
18
18
|
return {
|
|
19
|
-
...
|
|
19
|
+
...o,
|
|
20
20
|
[e]: {
|
|
21
|
-
...
|
|
21
|
+
...o[e],
|
|
22
22
|
apiConfig: t,
|
|
23
23
|
currentPageId: l,
|
|
24
24
|
isLoading: !1,
|
|
@@ -27,7 +27,7 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
27
27
|
entries: i,
|
|
28
28
|
overlay: null,
|
|
29
29
|
pages: {
|
|
30
|
-
...(n =
|
|
30
|
+
...(n = o[e]) == null ? void 0 : n.pages,
|
|
31
31
|
[l]: {
|
|
32
32
|
page: s
|
|
33
33
|
}
|
|
@@ -35,16 +35,16 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
|
-
},
|
|
38
|
+
}, We = (e, t, s) => {
|
|
39
39
|
const r = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
|
|
40
40
|
return t.length === 0 ? e : Object.fromEntries(
|
|
41
41
|
Object.entries(r).filter(
|
|
42
42
|
([l]) => !t.includes(l)
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
|
-
},
|
|
45
|
+
}, sn = (e, t, s, r, l) => {
|
|
46
46
|
sessionStorage.setItem("sessionId", s), v.setState((i) => {
|
|
47
|
-
const
|
|
47
|
+
const o = i[e] ?? {}, n = o.entries ?? {}, d = We(
|
|
48
48
|
n,
|
|
49
49
|
r,
|
|
50
50
|
l
|
|
@@ -52,13 +52,13 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
52
52
|
return {
|
|
53
53
|
...i,
|
|
54
54
|
[e]: {
|
|
55
|
-
...
|
|
55
|
+
...o,
|
|
56
56
|
currentPageId: t.hash,
|
|
57
57
|
entries: d,
|
|
58
58
|
isLoading: !1,
|
|
59
59
|
overlay: null,
|
|
60
60
|
pages: {
|
|
61
|
-
...
|
|
61
|
+
...o.pages,
|
|
62
62
|
[t.hash]: {
|
|
63
63
|
page: { ...t }
|
|
64
64
|
}
|
|
@@ -66,11 +66,11 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, an = (e, t, s, r) => {
|
|
70
70
|
v.setState((l) => {
|
|
71
71
|
var a;
|
|
72
|
-
const i = l[e] ?? {},
|
|
73
|
-
|
|
72
|
+
const i = l[e] ?? {}, o = i.entries ?? {}, n = We(
|
|
73
|
+
o,
|
|
74
74
|
s,
|
|
75
75
|
r
|
|
76
76
|
), d = (a = t.components) == null ? void 0 : a.some(
|
|
@@ -88,7 +88,7 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
|
-
},
|
|
91
|
+
}, je = (e) => {
|
|
92
92
|
v.setState((t) => ({
|
|
93
93
|
...t,
|
|
94
94
|
[e]: {
|
|
@@ -96,7 +96,7 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
96
96
|
overlay: null
|
|
97
97
|
}
|
|
98
98
|
}));
|
|
99
|
-
},
|
|
99
|
+
}, rn = (e) => {
|
|
100
100
|
var s;
|
|
101
101
|
return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
|
|
102
102
|
}, $ = (e, t) => {
|
|
@@ -106,13 +106,13 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
106
106
|
deprecatedStateKeys: l = [],
|
|
107
107
|
sessionState: i
|
|
108
108
|
} = t;
|
|
109
|
-
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ?
|
|
109
|
+
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? sn(
|
|
110
110
|
e,
|
|
111
111
|
s,
|
|
112
112
|
r,
|
|
113
113
|
l,
|
|
114
114
|
i
|
|
115
|
-
) :
|
|
115
|
+
) : an(
|
|
116
116
|
e,
|
|
117
117
|
s,
|
|
118
118
|
l,
|
|
@@ -133,7 +133,7 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
});
|
|
136
|
-
},
|
|
136
|
+
}, on = (e, t) => {
|
|
137
137
|
v.setState((s) => {
|
|
138
138
|
const r = s[e];
|
|
139
139
|
if (!r)
|
|
@@ -141,12 +141,12 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
141
141
|
const l = r.entries ?? {};
|
|
142
142
|
if (!(t in l))
|
|
143
143
|
return s;
|
|
144
|
-
const { [t]: i, ...
|
|
144
|
+
const { [t]: i, ...o } = l;
|
|
145
145
|
return {
|
|
146
146
|
...s,
|
|
147
147
|
[e]: {
|
|
148
148
|
...r,
|
|
149
|
-
entries:
|
|
149
|
+
entries: o
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
});
|
|
@@ -174,7 +174,7 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
174
174
|
isDrawerOpen: t
|
|
175
175
|
}
|
|
176
176
|
}));
|
|
177
|
-
},
|
|
177
|
+
}, Te = (e, t) => {
|
|
178
178
|
v.setState((s) => {
|
|
179
179
|
const r = s[e];
|
|
180
180
|
return r ? {
|
|
@@ -189,16 +189,16 @@ const v = et(() => ({})), de = (e, t, s, r) => {
|
|
|
189
189
|
} : s;
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
let _e = !1, re = [],
|
|
193
|
-
const
|
|
192
|
+
let _e = !1, re = [], Oe = !1;
|
|
193
|
+
const cn = (e) => e._userFlow || null, Ae = (e) => {
|
|
194
194
|
re.forEach(({ resolve: t, reject: s }) => {
|
|
195
195
|
e ? s(e) : t(void 0);
|
|
196
196
|
}), re = [];
|
|
197
|
-
},
|
|
197
|
+
}, ln = async (e) => {
|
|
198
198
|
var r, l;
|
|
199
199
|
const t = e == null ? void 0 : e.config;
|
|
200
200
|
if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
|
|
201
|
-
const i =
|
|
201
|
+
const i = cn(t);
|
|
202
202
|
if (i) {
|
|
203
203
|
const n = (l = v.getState()[i]) == null ? void 0 : l.apiConfig;
|
|
204
204
|
if (!n)
|
|
@@ -207,7 +207,7 @@ const nn = (e) => e._userFlow || null, Te = (e) => {
|
|
|
207
207
|
if (_e)
|
|
208
208
|
return new Promise((a, u) => {
|
|
209
209
|
re.push({ resolve: a, reject: u });
|
|
210
|
-
}).then(() =>
|
|
210
|
+
}).then(() => J(t)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
|
|
211
211
|
t._retry = !0, _e = !0;
|
|
212
212
|
try {
|
|
213
213
|
let a;
|
|
@@ -217,7 +217,7 @@ const nn = (e) => e._userFlow || null, Te = (e) => {
|
|
|
217
217
|
a = n.headers();
|
|
218
218
|
else
|
|
219
219
|
throw new Error("No refresh handler available");
|
|
220
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ?
|
|
220
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Te(i, JSON.stringify(a)) : Te(i, a)), t.headers || (t.headers = {}), Object.assign(t.headers, a), Ae(null), J(t);
|
|
221
221
|
} catch (a) {
|
|
222
222
|
return console.error(
|
|
223
223
|
"[axiosInterceptors] Token refresh failed:",
|
|
@@ -225,7 +225,7 @@ const nn = (e) => e._userFlow || null, Te = (e) => {
|
|
|
225
225
|
), console.error(
|
|
226
226
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
227
227
|
re.length
|
|
228
|
-
),
|
|
228
|
+
), Ae(a), Promise.reject(a);
|
|
229
229
|
} finally {
|
|
230
230
|
_e = !1;
|
|
231
231
|
}
|
|
@@ -240,17 +240,17 @@ const nn = (e) => e._userFlow || null, Te = (e) => {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
return Promise.reject(e);
|
|
243
|
-
},
|
|
244
|
-
if (
|
|
243
|
+
}, dn = () => {
|
|
244
|
+
if (Oe) {
|
|
245
245
|
console.debug(
|
|
246
246
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
247
247
|
);
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."),
|
|
250
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), J.interceptors.response.use(void 0, ln), console.debug("[axiosInterceptors] Response error interceptor registered"), Oe = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
251
251
|
};
|
|
252
|
-
|
|
253
|
-
function
|
|
252
|
+
dn();
|
|
253
|
+
function _n(e) {
|
|
254
254
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
255
255
|
}
|
|
256
256
|
var ue = { exports: {} }, te = {};
|
|
@@ -263,46 +263,46 @@ var ue = { exports: {} }, te = {};
|
|
|
263
263
|
* This source code is licensed under the MIT license found in the
|
|
264
264
|
* LICENSE file in the root directory of this source tree.
|
|
265
265
|
*/
|
|
266
|
-
var
|
|
267
|
-
function
|
|
268
|
-
if (
|
|
269
|
-
|
|
270
|
-
var e =
|
|
271
|
-
function
|
|
266
|
+
var $e;
|
|
267
|
+
function un() {
|
|
268
|
+
if ($e) return te;
|
|
269
|
+
$e = 1;
|
|
270
|
+
var e = rt, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
271
|
+
function o(n, d, a) {
|
|
272
272
|
var u, h = {}, _ = null, f = null;
|
|
273
273
|
a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (f = d.ref);
|
|
274
274
|
for (u in d) r.call(d, u) && !i.hasOwnProperty(u) && (h[u] = d[u]);
|
|
275
275
|
if (n && n.defaultProps) for (u in d = n.defaultProps, d) h[u] === void 0 && (h[u] = d[u]);
|
|
276
276
|
return { $$typeof: t, type: n, key: _, ref: f, props: h, _owner: l.current };
|
|
277
277
|
}
|
|
278
|
-
return te.Fragment = s, te.jsx =
|
|
278
|
+
return te.Fragment = s, te.jsx = o, te.jsxs = o, te;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var qe;
|
|
281
|
+
function hn() {
|
|
282
|
+
return qe || (qe = 1, ue.exports = un()), ue.exports;
|
|
283
283
|
}
|
|
284
|
-
var
|
|
285
|
-
const
|
|
284
|
+
var c = hn();
|
|
285
|
+
const fn = (e) => {
|
|
286
286
|
if (!(e != null && e.content)) return null;
|
|
287
287
|
const t = {
|
|
288
288
|
...e,
|
|
289
289
|
children: e.content,
|
|
290
290
|
type: e.variant
|
|
291
291
|
};
|
|
292
|
-
return /* @__PURE__ */
|
|
293
|
-
},
|
|
292
|
+
return /* @__PURE__ */ c.jsx(ze, { ...t });
|
|
293
|
+
}, yn = (e) => {
|
|
294
294
|
if (!e) return null;
|
|
295
295
|
const t = {
|
|
296
296
|
...e,
|
|
297
297
|
children: e.content
|
|
298
298
|
};
|
|
299
|
-
return /* @__PURE__ */
|
|
299
|
+
return /* @__PURE__ */ c.jsx(ct, { ...t });
|
|
300
300
|
}, O = (e, t, s, r) => {
|
|
301
|
-
var
|
|
301
|
+
var o;
|
|
302
302
|
const l = {
|
|
303
|
-
accordion: (n) => /* @__PURE__ */
|
|
304
|
-
aiChatPanel: (n) => /* @__PURE__ */
|
|
305
|
-
|
|
303
|
+
accordion: (n) => /* @__PURE__ */ c.jsx(Cn, { ...n, userFlow: e, pageId: t }),
|
|
304
|
+
aiChatPanel: (n) => /* @__PURE__ */ c.jsx(
|
|
305
|
+
Nn,
|
|
306
306
|
{
|
|
307
307
|
...n,
|
|
308
308
|
userFlow: e,
|
|
@@ -310,8 +310,8 @@ const ln = (e) => {
|
|
|
310
310
|
onResolveProps: r == null ? void 0 : r.aiChatPanel
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
|
-
aiSummaryCard: (n) => /* @__PURE__ */
|
|
314
|
-
|
|
313
|
+
aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(
|
|
314
|
+
On,
|
|
315
315
|
{
|
|
316
316
|
...n,
|
|
317
317
|
userFlow: e,
|
|
@@ -319,56 +319,57 @@ const ln = (e) => {
|
|
|
319
319
|
onResolveProps: r == null ? void 0 : r.aiSummaryCard
|
|
320
320
|
}
|
|
321
321
|
),
|
|
322
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */
|
|
323
|
-
box: (n) => /* @__PURE__ */
|
|
324
|
-
breadcrumbs: (n) => /* @__PURE__ */
|
|
325
|
-
tooltip: (n) => /* @__PURE__ */
|
|
326
|
-
textarea: (n) => /* @__PURE__ */
|
|
327
|
-
card: (n) => /* @__PURE__ */
|
|
328
|
-
dropdownButton: (n) => /* @__PURE__ */
|
|
329
|
-
menu: (n) => /* @__PURE__ */
|
|
330
|
-
radioGroup: (n) => /* @__PURE__ */
|
|
331
|
-
stepper: (n) => /* @__PURE__ */
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
322
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(kn, { ...n, userFlow: e, pageId: t }),
|
|
323
|
+
box: (n) => /* @__PURE__ */ c.jsx(Ln, { ...n, userFlow: e, pageId: t }),
|
|
324
|
+
breadcrumbs: (n) => /* @__PURE__ */ c.jsx(Wn, { ...n, userFlow: e, pageId: t }),
|
|
325
|
+
tooltip: (n) => /* @__PURE__ */ c.jsx(qa, { ...n, userFlow: e, pageId: t }),
|
|
326
|
+
textarea: (n) => /* @__PURE__ */ c.jsx(Sa, { ...n, userFlow: e, pageId: t }),
|
|
327
|
+
card: (n) => /* @__PURE__ */ c.jsx(es, { ...n, userFlow: e, pageId: t }),
|
|
328
|
+
dropdownButton: (n) => /* @__PURE__ */ c.jsx(Ds, { ...n, userFlow: e, pageId: t }),
|
|
329
|
+
menu: (n) => /* @__PURE__ */ c.jsx(Ks, { ...n, userFlow: e, pageId: t }),
|
|
330
|
+
radioGroup: (n) => /* @__PURE__ */ c.jsx(Hn, { ...n, userFlow: e, pageId: t }),
|
|
331
|
+
stepper: (n) => /* @__PURE__ */ c.jsx(Xn, { ...n, userFlow: e, pageId: t }),
|
|
332
|
+
progressBar: (n) => /* @__PURE__ */ c.jsx(Jn, { ...n, userFlow: e, pageId: t }),
|
|
333
|
+
button: (n) => /* @__PURE__ */ c.jsx(Qn, { ...n, userFlow: e, pageId: t }),
|
|
334
|
+
cardAccordion: (n) => /* @__PURE__ */ c.jsx(Zn, { ...n, userFlow: e, pageId: t }),
|
|
335
|
+
cardNotification: (n) => /* @__PURE__ */ c.jsx(ts, { ...n }),
|
|
336
|
+
chart: (n) => /* @__PURE__ */ c.jsx(ms, { ...n, userFlow: e }),
|
|
337
|
+
dataCard: (n) => /* @__PURE__ */ c.jsx(Ss, { ...n, userFlow: e, pageId: t }),
|
|
338
|
+
checkbox: (n) => /* @__PURE__ */ c.jsx(xs, { ...n, userFlow: e, pageId: t }),
|
|
339
|
+
code: (n) => /* @__PURE__ */ c.jsx(Ns, { ...n, userFlow: e, pageId: t }),
|
|
340
|
+
divider: (n) => /* @__PURE__ */ c.jsx(Ts, { ...n }),
|
|
341
|
+
drawer: (n) => /* @__PURE__ */ c.jsx(qs, { ...n, userFlow: e, pageId: t }),
|
|
342
|
+
heading: (n) => fn(n),
|
|
343
|
+
link: (n) => /* @__PURE__ */ c.jsx(Bs, { ...n, userFlow: e, pageId: t }),
|
|
344
|
+
pill: (n) => /* @__PURE__ */ c.jsx(Hs, { ...n }),
|
|
345
|
+
previewerMarkdown: (n) => /* @__PURE__ */ c.jsx(Xs, { ...n }),
|
|
346
|
+
modal: (n) => /* @__PURE__ */ c.jsx(Us, { ...n, userFlow: e, pageId: t }),
|
|
347
|
+
roundButton: (n) => /* @__PURE__ */ c.jsx(Js, { ...n, userFlow: e, pageId: t }),
|
|
348
|
+
row: (n) => /* @__PURE__ */ c.jsx(Ys, { ...n, userFlow: e, pageId: t }),
|
|
349
|
+
select: (n) => /* @__PURE__ */ c.jsx(aa, { ...n, userFlow: e, pageId: t }),
|
|
350
|
+
switch: (n) => /* @__PURE__ */ c.jsx(ya, { ...n, userFlow: e, pageId: t }),
|
|
351
|
+
spacing: (n) => /* @__PURE__ */ c.jsx(fa, { ...n, userFlow: e, pageId: t }),
|
|
352
|
+
table: (n) => /* @__PURE__ */ c.jsx(ja, { ...n, userFlow: e, pageId: t }),
|
|
353
|
+
tabs: (n) => /* @__PURE__ */ c.jsx(va, { ...n, userFlow: e, pageId: t }),
|
|
354
|
+
text: (n) => yn(n),
|
|
355
|
+
textField: (n) => /* @__PURE__ */ c.jsx(Ta, { ...n, userFlow: e, pageId: t }),
|
|
356
|
+
toast: (n) => /* @__PURE__ */ c.jsx(Oa, { ...n, userFlow: e, pageId: t })
|
|
356
357
|
};
|
|
357
|
-
return (
|
|
358
|
+
return (o = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : o.map((n) => {
|
|
358
359
|
const d = l[n.component];
|
|
359
360
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
360
361
|
});
|
|
361
362
|
};
|
|
362
|
-
function
|
|
363
|
+
function mn(e) {
|
|
363
364
|
return !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0);
|
|
364
365
|
}
|
|
365
|
-
function
|
|
366
|
+
function Qe(e, t) {
|
|
366
367
|
if (!(t != null && t.length))
|
|
367
368
|
return !1;
|
|
368
369
|
for (const s of t)
|
|
369
370
|
if (s.when === "empty") {
|
|
370
371
|
const r = e == null ? void 0 : e[s.key];
|
|
371
|
-
if (
|
|
372
|
+
if (mn(r))
|
|
372
373
|
return !0;
|
|
373
374
|
}
|
|
374
375
|
return !1;
|
|
@@ -380,7 +381,7 @@ function I(e, t) {
|
|
|
380
381
|
});
|
|
381
382
|
return A(
|
|
382
383
|
() => ({
|
|
383
|
-
disabled:
|
|
384
|
+
disabled: Qe(s, t)
|
|
384
385
|
}),
|
|
385
386
|
[t, s]
|
|
386
387
|
);
|
|
@@ -397,14 +398,14 @@ const P = (e) => {
|
|
|
397
398
|
return { "content-type": "application/json", Authorization: e };
|
|
398
399
|
}
|
|
399
400
|
return e;
|
|
400
|
-
}, se = () => new AbortController(),
|
|
401
|
+
}, se = () => new AbortController(), xn = (e, t = {}, s = {}, r = !1, l) => {
|
|
401
402
|
const i = se();
|
|
402
403
|
r && i.abort();
|
|
403
|
-
const
|
|
404
|
+
const o = P(t);
|
|
404
405
|
return {
|
|
405
|
-
call:
|
|
406
|
+
call: J.get(e, {
|
|
406
407
|
headers: {
|
|
407
|
-
...
|
|
408
|
+
...o
|
|
408
409
|
},
|
|
409
410
|
params: s,
|
|
410
411
|
signal: i.signal,
|
|
@@ -413,67 +414,67 @@ const P = (e) => {
|
|
|
413
414
|
controller: i
|
|
414
415
|
};
|
|
415
416
|
}, xe = (e, t = {}, s = {}, r = {}, l = !1, i) => {
|
|
416
|
-
const
|
|
417
|
-
l &&
|
|
417
|
+
const o = se();
|
|
418
|
+
l && o.abort();
|
|
418
419
|
const n = P(t);
|
|
419
420
|
return {
|
|
420
|
-
call:
|
|
421
|
+
call: J.post(e, s, {
|
|
421
422
|
headers: {
|
|
422
423
|
...n
|
|
423
424
|
},
|
|
424
425
|
params: r,
|
|
425
|
-
signal:
|
|
426
|
+
signal: o.signal,
|
|
426
427
|
_userFlow: i
|
|
427
428
|
}),
|
|
428
|
-
controller:
|
|
429
|
+
controller: o
|
|
429
430
|
};
|
|
430
|
-
},
|
|
431
|
-
const
|
|
432
|
-
l &&
|
|
431
|
+
}, gn = (e, t = {}, s = {}, r = {}, l = !1, i) => {
|
|
432
|
+
const o = se();
|
|
433
|
+
l && o.abort();
|
|
433
434
|
const n = P(t);
|
|
434
435
|
return {
|
|
435
|
-
call:
|
|
436
|
+
call: J.put(e, s, {
|
|
436
437
|
headers: {
|
|
437
438
|
...n
|
|
438
439
|
},
|
|
439
440
|
params: r,
|
|
440
|
-
signal:
|
|
441
|
+
signal: o.signal,
|
|
441
442
|
_userFlow: i
|
|
442
443
|
}),
|
|
443
|
-
controller:
|
|
444
|
+
controller: o
|
|
444
445
|
};
|
|
445
|
-
},
|
|
446
|
-
const
|
|
447
|
-
l &&
|
|
446
|
+
}, pn = (e, t = {}, s = {}, r = {}, l = !1, i) => {
|
|
447
|
+
const o = se();
|
|
448
|
+
l && o.abort();
|
|
448
449
|
const n = P(t);
|
|
449
450
|
return {
|
|
450
|
-
call:
|
|
451
|
+
call: J.patch(e, s, {
|
|
451
452
|
headers: {
|
|
452
453
|
...n
|
|
453
454
|
},
|
|
454
455
|
params: r,
|
|
455
|
-
signal:
|
|
456
|
+
signal: o.signal,
|
|
456
457
|
_userFlow: i
|
|
457
458
|
}),
|
|
458
|
-
controller:
|
|
459
|
+
controller: o
|
|
459
460
|
};
|
|
460
|
-
},
|
|
461
|
-
const
|
|
462
|
-
l &&
|
|
461
|
+
}, bn = (e, t = {}, s = {}, r = {}, l = !1, i) => {
|
|
462
|
+
const o = se();
|
|
463
|
+
l && o.abort();
|
|
463
464
|
const n = P(t);
|
|
464
465
|
return {
|
|
465
|
-
call:
|
|
466
|
+
call: J.delete(e, {
|
|
466
467
|
headers: {
|
|
467
468
|
...n
|
|
468
469
|
},
|
|
469
470
|
data: s,
|
|
470
471
|
params: r,
|
|
471
|
-
signal:
|
|
472
|
+
signal: o.signal,
|
|
472
473
|
_userFlow: i
|
|
473
474
|
}),
|
|
474
|
-
controller:
|
|
475
|
+
controller: o
|
|
475
476
|
};
|
|
476
|
-
},
|
|
477
|
+
}, Ye = () => {
|
|
477
478
|
let e;
|
|
478
479
|
return { callEndpoint: async (r) => {
|
|
479
480
|
r.controller && (e = r.controller);
|
|
@@ -487,11 +488,11 @@ const P = (e) => {
|
|
|
487
488
|
}, cancelEndpoint: () => {
|
|
488
489
|
e && e.abort();
|
|
489
490
|
} };
|
|
490
|
-
},
|
|
491
|
+
}, Ze = async (e, t, s = "", r = {}, l = {}) => {
|
|
491
492
|
try {
|
|
492
|
-
const { callEndpoint: i } =
|
|
493
|
+
const { callEndpoint: i } = Ye(), { api: o, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
|
|
493
494
|
s && a.append("hash_code", s), d && a.append("sessionId", d);
|
|
494
|
-
const u = `${
|
|
495
|
+
const u = `${o}/not-front/next-ui/?${a.toString()}`, h = P(n), _ = xe(
|
|
495
496
|
u,
|
|
496
497
|
h,
|
|
497
498
|
r,
|
|
@@ -504,14 +505,14 @@ const P = (e) => {
|
|
|
504
505
|
return console.error(i), Promise.reject(i);
|
|
505
506
|
}
|
|
506
507
|
}, K = () => {
|
|
507
|
-
const e = v((n) => n), { callEndpoint: t } =
|
|
508
|
+
const e = v((n) => n), { callEndpoint: t } = Ye(), s = async (n, d, a, u, h = !0) => {
|
|
508
509
|
var _;
|
|
509
510
|
try {
|
|
510
511
|
const f = (_ = e[n]) == null ? void 0 : _.apiConfig, g = {
|
|
511
512
|
state: { ...a },
|
|
512
513
|
triggerKey: u
|
|
513
514
|
};
|
|
514
|
-
return h && Q(n, !0), await
|
|
515
|
+
return h && Q(n, !0), await Ze(
|
|
515
516
|
f,
|
|
516
517
|
n,
|
|
517
518
|
d,
|
|
@@ -526,14 +527,14 @@ const P = (e) => {
|
|
|
526
527
|
case "post":
|
|
527
528
|
return xe(u, h, _, {}, !1, d);
|
|
528
529
|
case "put":
|
|
529
|
-
return
|
|
530
|
+
return gn(u, h, _, {}, !1, d);
|
|
530
531
|
case "patch":
|
|
531
|
-
return
|
|
532
|
+
return pn(u, h, _, {}, !1, d);
|
|
532
533
|
case "delete":
|
|
533
|
-
return
|
|
534
|
+
return bn(u, h, _, f, !1, d);
|
|
534
535
|
case "get":
|
|
535
536
|
default:
|
|
536
|
-
return
|
|
537
|
+
return xn(u, h, f, !1, d);
|
|
537
538
|
}
|
|
538
539
|
}, l = (n, d) => {
|
|
539
540
|
const { url: a, headers: u } = n, h = {
|
|
@@ -606,17 +607,17 @@ const P = (e) => {
|
|
|
606
607
|
}
|
|
607
608
|
}
|
|
608
609
|
};
|
|
609
|
-
},
|
|
610
|
-
accordion:
|
|
611
|
-
accordionBody:
|
|
612
|
-
},
|
|
610
|
+
}, jn = "_accordion_1ri2t_1", wn = "_accordionBody_1ri2t_8", De = {
|
|
611
|
+
accordion: jn,
|
|
612
|
+
accordionBody: wn
|
|
613
|
+
}, Cn = (e) => {
|
|
613
614
|
const {
|
|
614
615
|
userFlow: t,
|
|
615
616
|
pageId: s,
|
|
616
617
|
responseKey: r,
|
|
617
618
|
dependencies: l,
|
|
618
619
|
customContent: i,
|
|
619
|
-
actionContent:
|
|
620
|
+
actionContent: o,
|
|
620
621
|
components: n,
|
|
621
622
|
...d
|
|
622
623
|
} = e, { getNextUI: a } = K(), [u, h] = L(
|
|
@@ -624,59 +625,59 @@ const P = (e) => {
|
|
|
624
625
|
), { disabled: _ } = I(
|
|
625
626
|
t,
|
|
626
627
|
l
|
|
627
|
-
), f = O(t, s, n), g =
|
|
628
|
-
async (
|
|
629
|
-
var
|
|
628
|
+
), f = O(t, s, n), g = o ? O(t, s, o) : void 0, x = i ? O(t, s, i) : void 0, m = R(
|
|
629
|
+
async (b) => {
|
|
630
|
+
var C;
|
|
630
631
|
try {
|
|
631
|
-
const
|
|
632
|
-
h(
|
|
633
|
-
const
|
|
634
|
-
...(
|
|
635
|
-
[r]:
|
|
632
|
+
const j = b.target.checked;
|
|
633
|
+
h(j);
|
|
634
|
+
const N = {
|
|
635
|
+
...(C = v.getState()[t]) == null ? void 0 : C.entries,
|
|
636
|
+
[r]: j
|
|
636
637
|
};
|
|
637
|
-
if (q(t,
|
|
638
|
-
const
|
|
638
|
+
if (q(t, N), d.actionType === "GO_TO_NEXT_UI") {
|
|
639
|
+
const w = await a(
|
|
639
640
|
t,
|
|
640
641
|
s,
|
|
641
|
-
|
|
642
|
+
N,
|
|
642
643
|
r
|
|
643
644
|
);
|
|
644
|
-
|
|
645
|
+
w != null && w.data && $(t, w == null ? void 0 : w.data);
|
|
645
646
|
}
|
|
646
|
-
} catch (
|
|
647
|
-
console.error("Error in accordion checkbox action:",
|
|
647
|
+
} catch (j) {
|
|
648
|
+
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
648
649
|
}
|
|
649
650
|
},
|
|
650
651
|
[t, s, r, d.actionType, a]
|
|
651
|
-
), y = d.disabled || _,
|
|
652
|
+
), y = d.disabled || _, p = {
|
|
652
653
|
...d,
|
|
653
|
-
className:
|
|
654
|
+
className: De.accordion,
|
|
654
655
|
disabled: y,
|
|
655
656
|
checkboxChecked: u,
|
|
656
|
-
onChanceCheckbox: d.hasCheckbox ?
|
|
657
|
-
actionContent: g ? /* @__PURE__ */
|
|
658
|
-
customContent:
|
|
659
|
-
children: f ? /* @__PURE__ */
|
|
657
|
+
onChanceCheckbox: d.hasCheckbox ? m : void 0,
|
|
658
|
+
actionContent: g ? /* @__PURE__ */ c.jsx(c.Fragment, { children: g.map((b, C) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-action-${C}`)) }) : void 0,
|
|
659
|
+
customContent: x ? /* @__PURE__ */ c.jsx(c.Fragment, { children: x.map((b, C) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-custom-${C}`)) }) : void 0,
|
|
660
|
+
children: f ? /* @__PURE__ */ c.jsx("section", { className: De.accordionBody, children: f.map((b, C) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-child-${C}`)) }) : void 0
|
|
660
661
|
};
|
|
661
|
-
return /* @__PURE__ */
|
|
662
|
-
},
|
|
663
|
-
const t = ne.useThemeStore((
|
|
662
|
+
return /* @__PURE__ */ c.jsx(it, { ...p });
|
|
663
|
+
}, Nn = (e) => {
|
|
664
|
+
const t = ne.useThemeStore((o) => o.theme.mode), s = e.dataSource, r = A(() => ({
|
|
664
665
|
url: e.dataSource.url,
|
|
665
666
|
method: e.dataSource.method,
|
|
666
667
|
headers: e.dataSource.headers,
|
|
667
668
|
params: s == null ? void 0 : s.data
|
|
668
669
|
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]), l = e.locale ?? "en", i = A(() => {
|
|
669
670
|
var n, d, a, u, h;
|
|
670
|
-
const
|
|
671
|
+
const o = {
|
|
671
672
|
title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
|
|
672
673
|
welcomeTitle: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.welcomeTitle,
|
|
673
674
|
welcomeDescription: (a = e == null ? void 0 : e.translations) == null ? void 0 : a.welcomeDescription,
|
|
674
675
|
placeholder: (u = e == null ? void 0 : e.translations) == null ? void 0 : u.placeholder,
|
|
675
676
|
disclaimer: (h = e == null ? void 0 : e.translations) == null ? void 0 : h.disclaimer
|
|
676
677
|
};
|
|
677
|
-
return Object.fromEntries(Object.entries(
|
|
678
|
+
return Object.fromEntries(Object.entries(o).filter(([, _]) => !!_));
|
|
678
679
|
}, [e == null ? void 0 : e.translations]);
|
|
679
|
-
return
|
|
680
|
+
return V(() => {
|
|
680
681
|
e.onResolveProps && e.onResolveProps({
|
|
681
682
|
dataSource: r,
|
|
682
683
|
locale: l,
|
|
@@ -691,8 +692,8 @@ const P = (e) => {
|
|
|
691
692
|
i,
|
|
692
693
|
e.initialSuggestions,
|
|
693
694
|
t
|
|
694
|
-
]), e.onResolveProps ? null : /* @__PURE__ */
|
|
695
|
-
|
|
695
|
+
]), e.onResolveProps ? null : /* @__PURE__ */ c.jsx(
|
|
696
|
+
It,
|
|
696
697
|
{
|
|
697
698
|
dataSource: r,
|
|
698
699
|
locale: l,
|
|
@@ -701,65 +702,65 @@ const P = (e) => {
|
|
|
701
702
|
theme: t
|
|
702
703
|
}
|
|
703
704
|
);
|
|
704
|
-
},
|
|
705
|
-
promptCodeEditor:
|
|
706
|
-
},
|
|
705
|
+
}, vn = "_promptCodeEditor_1d57s_1", Sn = {
|
|
706
|
+
promptCodeEditor: vn
|
|
707
|
+
}, kn = (e) => {
|
|
707
708
|
const {
|
|
708
709
|
userFlow: t,
|
|
709
710
|
responseKey: s,
|
|
710
711
|
codeBlockValue: r,
|
|
711
712
|
language: l,
|
|
712
713
|
disabled: i,
|
|
713
|
-
dependencies:
|
|
714
|
+
dependencies: o,
|
|
714
715
|
dataSource: n,
|
|
715
716
|
inputLabel: d,
|
|
716
717
|
inputPlaceholder: a,
|
|
717
718
|
codeBlockLabel: u
|
|
718
|
-
} = e, h = ne.useThemeStore((
|
|
719
|
+
} = e, h = ne.useThemeStore((b) => b.theme.mode), [_, f] = L(
|
|
719
720
|
r || ""
|
|
720
721
|
), { disabled: g } = I(
|
|
721
722
|
t,
|
|
722
|
-
|
|
723
|
-
),
|
|
723
|
+
o
|
|
724
|
+
), x = i ?? g, m = l ?? "json", y = {
|
|
724
725
|
url: (n == null ? void 0 : n.url) || "",
|
|
725
726
|
method: (n == null ? void 0 : n.method) || "post",
|
|
726
727
|
headers: n == null ? void 0 : n.headers,
|
|
727
728
|
body: n == null ? void 0 : n.data
|
|
728
|
-
},
|
|
729
|
-
f(
|
|
730
|
-
const
|
|
731
|
-
[s]:
|
|
729
|
+
}, p = (b) => {
|
|
730
|
+
f(b);
|
|
731
|
+
const C = {
|
|
732
|
+
[s]: b
|
|
732
733
|
};
|
|
733
|
-
q(t,
|
|
734
|
+
q(t, C);
|
|
734
735
|
};
|
|
735
|
-
return
|
|
736
|
+
return V(() => {
|
|
736
737
|
r !== void 0 && r !== _ && f(r);
|
|
737
|
-
}, [r]), /* @__PURE__ */
|
|
738
|
-
|
|
738
|
+
}, [r]), /* @__PURE__ */ c.jsx("section", { className: Sn.promptCodeEditor, children: /* @__PURE__ */ c.jsx(
|
|
739
|
+
Bt,
|
|
739
740
|
{
|
|
740
741
|
themeMode: h,
|
|
741
742
|
requestConfig: y,
|
|
742
|
-
language:
|
|
743
|
-
disabled:
|
|
743
|
+
language: m,
|
|
744
|
+
disabled: x,
|
|
744
745
|
inputLabel: d,
|
|
745
746
|
inputPlaceholder: a,
|
|
746
747
|
codeBlockLabel: u,
|
|
747
748
|
codeBlockValue: _,
|
|
748
|
-
onCodeChange:
|
|
749
|
+
onCodeChange: p
|
|
749
750
|
}
|
|
750
751
|
) });
|
|
751
|
-
},
|
|
752
|
-
summaryCard:
|
|
753
|
-
},
|
|
752
|
+
}, En = "_summaryCard_jva4h_1", Tn = {
|
|
753
|
+
summaryCard: En
|
|
754
|
+
}, On = (e) => {
|
|
754
755
|
const t = e.dataSource, s = A(() => ({
|
|
755
756
|
url: e.dataSource.url,
|
|
756
757
|
method: e.dataSource.method,
|
|
757
758
|
headers: e.dataSource.headers,
|
|
758
759
|
body: t == null ? void 0 : t.data
|
|
759
760
|
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), r = e.locale ?? "en", l = A(() => {
|
|
760
|
-
var
|
|
761
|
+
var o, n, d;
|
|
761
762
|
const i = {
|
|
762
|
-
title: (
|
|
763
|
+
title: (o = e == null ? void 0 : e.translations) == null ? void 0 : o.title,
|
|
763
764
|
loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
|
|
764
765
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
765
766
|
};
|
|
@@ -767,39 +768,39 @@ const P = (e) => {
|
|
|
767
768
|
Object.entries(i).filter(([, a]) => !!a)
|
|
768
769
|
);
|
|
769
770
|
}, [e == null ? void 0 : e.translations]);
|
|
770
|
-
return
|
|
771
|
+
return V(() => {
|
|
771
772
|
e.onResolveProps && e.onResolveProps({
|
|
772
773
|
dataSource: s,
|
|
773
774
|
locale: r,
|
|
774
775
|
translations: l
|
|
775
776
|
});
|
|
776
|
-
}, [e.onResolveProps, s, r, l]), e.onResolveProps ? null : /* @__PURE__ */
|
|
777
|
-
|
|
777
|
+
}, [e.onResolveProps, s, r, l]), e.onResolveProps ? null : /* @__PURE__ */ c.jsx("section", { className: Tn.summaryCard, children: /* @__PURE__ */ c.jsx(
|
|
778
|
+
Kt,
|
|
778
779
|
{
|
|
779
780
|
dataSource: s,
|
|
780
781
|
locale: r,
|
|
781
782
|
translations: l
|
|
782
783
|
}
|
|
783
784
|
) });
|
|
784
|
-
},
|
|
785
|
-
body:
|
|
786
|
-
body_content:
|
|
787
|
-
},
|
|
788
|
-
slotStack:
|
|
789
|
-
},
|
|
785
|
+
}, An = "_body_14tsv_1", $n = "_body_content_14tsv_5", Re = {
|
|
786
|
+
body: An,
|
|
787
|
+
body_content: $n
|
|
788
|
+
}, qn = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: Re.body, children: /* @__PURE__ */ c.jsx("div", { className: Re.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), Dn = "_slotStack_1b4wy_1", Rn = {
|
|
789
|
+
slotStack: Dn
|
|
790
|
+
}, Ln = (e) => {
|
|
790
791
|
const {
|
|
791
792
|
userFlow: t,
|
|
792
793
|
pageId: s,
|
|
793
794
|
component: r,
|
|
794
795
|
hash: l,
|
|
795
796
|
responseKey: i,
|
|
796
|
-
content:
|
|
797
|
+
content: o
|
|
797
798
|
} = e, n = ne.useThemeStore((u) => u.theme.mode) === "dark", d = O(
|
|
798
799
|
t,
|
|
799
800
|
s,
|
|
800
|
-
|
|
801
|
-
), a = d && d.length > 0 ? /* @__PURE__ */
|
|
802
|
-
return /* @__PURE__ */
|
|
801
|
+
o != null && o.length ? o : null
|
|
802
|
+
), a = d && d.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Rn.slotStack, children: d.map((u, h) => /* @__PURE__ */ c.jsx(T, { children: u }, `box-${l}-${h}`)) }) : null;
|
|
803
|
+
return /* @__PURE__ */ c.jsx(lt, { darkMode: n, children: a });
|
|
803
804
|
};
|
|
804
805
|
var he = { exports: {} };
|
|
805
806
|
/*!
|
|
@@ -807,24 +808,24 @@ var he = { exports: {} };
|
|
|
807
808
|
Licensed under the MIT License (MIT), see
|
|
808
809
|
http://jedwatson.github.io/classnames
|
|
809
810
|
*/
|
|
810
|
-
var
|
|
811
|
-
function
|
|
812
|
-
return
|
|
811
|
+
var Le;
|
|
812
|
+
function In() {
|
|
813
|
+
return Le || (Le = 1, (function(e) {
|
|
813
814
|
(function() {
|
|
814
815
|
var t = {}.hasOwnProperty;
|
|
815
816
|
function s() {
|
|
816
817
|
for (var r = [], l = 0; l < arguments.length; l++) {
|
|
817
818
|
var i = arguments[l];
|
|
818
819
|
if (i) {
|
|
819
|
-
var
|
|
820
|
-
if (
|
|
820
|
+
var o = typeof i;
|
|
821
|
+
if (o === "string" || o === "number")
|
|
821
822
|
r.push(i);
|
|
822
823
|
else if (Array.isArray(i)) {
|
|
823
824
|
if (i.length) {
|
|
824
825
|
var n = s.apply(null, i);
|
|
825
826
|
n && r.push(n);
|
|
826
827
|
}
|
|
827
|
-
} else if (
|
|
828
|
+
} else if (o === "object") {
|
|
828
829
|
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
|
|
829
830
|
r.push(i.toString());
|
|
830
831
|
continue;
|
|
@@ -840,22 +841,22 @@ function $n() {
|
|
|
840
841
|
})();
|
|
841
842
|
})(he)), he.exports;
|
|
842
843
|
}
|
|
843
|
-
var
|
|
844
|
-
const F = /* @__PURE__ */
|
|
845
|
-
fieldset:
|
|
846
|
-
fieldsetColumn:
|
|
847
|
-
legend:
|
|
848
|
-
options:
|
|
849
|
-
optionsRow:
|
|
850
|
-
optionsColumn:
|
|
851
|
-
},
|
|
844
|
+
var Bn = In();
|
|
845
|
+
const F = /* @__PURE__ */ _n(Bn), Kn = "_fieldset_1xrth_1", Gn = "_fieldsetColumn_1xrth_8", Mn = "_legend_1xrth_14", Un = "_options_1xrth_20", Vn = "_optionsRow_1xrth_25", zn = "_optionsColumn_1xrth_36", Y = {
|
|
846
|
+
fieldset: Kn,
|
|
847
|
+
fieldsetColumn: Gn,
|
|
848
|
+
legend: Mn,
|
|
849
|
+
options: Un,
|
|
850
|
+
optionsRow: Vn,
|
|
851
|
+
optionsColumn: zn
|
|
852
|
+
}, Hn = (e) => {
|
|
852
853
|
const {
|
|
853
854
|
userFlow: t,
|
|
854
855
|
pageId: s,
|
|
855
856
|
responseKey: r,
|
|
856
857
|
label: l,
|
|
857
858
|
value: i,
|
|
858
|
-
required:
|
|
859
|
+
required: o,
|
|
859
860
|
actionType: n,
|
|
860
861
|
dependencies: d,
|
|
861
862
|
direction: a,
|
|
@@ -864,43 +865,43 @@ const F = /* @__PURE__ */ rn(qn), Dn = "_fieldset_1xrth_1", Rn = "_fieldsetColum
|
|
|
864
865
|
t,
|
|
865
866
|
d
|
|
866
867
|
), g = v(
|
|
867
|
-
(
|
|
868
|
-
var
|
|
869
|
-
return (
|
|
868
|
+
(b) => {
|
|
869
|
+
var C, j;
|
|
870
|
+
return (j = (C = b[t]) == null ? void 0 : C.entries) == null ? void 0 : j[r];
|
|
870
871
|
}
|
|
871
|
-
),
|
|
872
|
-
async (
|
|
873
|
-
var
|
|
874
|
-
if (!
|
|
872
|
+
), x = g != null ? String(g) : i ?? "", m = f, y = A(() => l ? o ? `${l} *` : l : null, [l, o]), p = R(
|
|
873
|
+
async (b) => {
|
|
874
|
+
var C;
|
|
875
|
+
if (!m)
|
|
875
876
|
try {
|
|
876
|
-
const
|
|
877
|
-
...(
|
|
878
|
-
[r]:
|
|
877
|
+
const j = {
|
|
878
|
+
...(C = v.getState()[t]) == null ? void 0 : C.entries,
|
|
879
|
+
[r]: b
|
|
879
880
|
};
|
|
880
|
-
if (q(t,
|
|
881
|
-
const
|
|
881
|
+
if (q(t, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
|
|
882
|
+
const k = await _(
|
|
882
883
|
t,
|
|
883
884
|
s,
|
|
884
|
-
|
|
885
|
+
j,
|
|
885
886
|
r,
|
|
886
887
|
n === "GO_TO_NEXT_UI"
|
|
887
888
|
);
|
|
888
|
-
|
|
889
|
+
k != null && k.data && $(t, k == null ? void 0 : k.data);
|
|
889
890
|
}
|
|
890
|
-
} catch (
|
|
891
|
-
alert(JSON.stringify(
|
|
891
|
+
} catch (j) {
|
|
892
|
+
alert(JSON.stringify(j));
|
|
892
893
|
}
|
|
893
894
|
},
|
|
894
895
|
[
|
|
895
896
|
n,
|
|
896
897
|
_,
|
|
897
|
-
|
|
898
|
+
m,
|
|
898
899
|
s,
|
|
899
900
|
r,
|
|
900
901
|
t
|
|
901
902
|
]
|
|
902
903
|
);
|
|
903
|
-
return /* @__PURE__ */
|
|
904
|
+
return /* @__PURE__ */ c.jsxs(
|
|
904
905
|
"fieldset",
|
|
905
906
|
{
|
|
906
907
|
className: F(
|
|
@@ -908,52 +909,61 @@ const F = /* @__PURE__ */ rn(qn), Dn = "_fieldset_1xrth_1", Rn = "_fieldsetColum
|
|
|
908
909
|
h === "column" && Y.fieldsetColumn
|
|
909
910
|
),
|
|
910
911
|
children: [
|
|
911
|
-
y ? /* @__PURE__ */
|
|
912
|
-
/* @__PURE__ */
|
|
912
|
+
y ? /* @__PURE__ */ c.jsx("legend", { className: Y.legend, children: y }) : null,
|
|
913
|
+
/* @__PURE__ */ c.jsx(
|
|
913
914
|
"div",
|
|
914
915
|
{
|
|
915
916
|
className: F(
|
|
916
917
|
Y.options,
|
|
917
918
|
h === "column" ? Y.optionsColumn : Y.optionsRow
|
|
918
919
|
),
|
|
919
|
-
children: u.map((
|
|
920
|
-
|
|
920
|
+
children: u.map((b) => /* @__PURE__ */ c.jsx(
|
|
921
|
+
dt,
|
|
921
922
|
{
|
|
922
923
|
name: r,
|
|
923
|
-
value:
|
|
924
|
-
checked:
|
|
925
|
-
disabled:
|
|
926
|
-
labelRight:
|
|
924
|
+
value: b.value,
|
|
925
|
+
checked: x === b.value,
|
|
926
|
+
disabled: m || b.disabled,
|
|
927
|
+
labelRight: b.label,
|
|
927
928
|
onChange: () => {
|
|
928
|
-
b
|
|
929
|
+
p(b.value);
|
|
929
930
|
}
|
|
930
931
|
},
|
|
931
|
-
|
|
932
|
+
b.value
|
|
932
933
|
))
|
|
933
934
|
}
|
|
934
935
|
)
|
|
935
936
|
]
|
|
936
937
|
}
|
|
937
938
|
);
|
|
938
|
-
},
|
|
939
|
+
}, Xn = ({
|
|
939
940
|
userFlow: e,
|
|
940
941
|
pageId: t,
|
|
941
942
|
component: s,
|
|
942
943
|
hash: r,
|
|
943
944
|
responseKey: l,
|
|
944
945
|
items: i,
|
|
945
|
-
itemActive:
|
|
946
|
+
itemActive: o,
|
|
946
947
|
darkMode: n
|
|
947
|
-
}) => /* @__PURE__ */
|
|
948
|
+
}) => /* @__PURE__ */ c.jsx(_t, { items: i, itemActive: o, darkMode: n }), Jn = ({
|
|
949
|
+
userFlow: e,
|
|
950
|
+
pageId: t,
|
|
951
|
+
component: s,
|
|
952
|
+
hash: r,
|
|
953
|
+
responseKey: l,
|
|
954
|
+
total: i,
|
|
955
|
+
done: o,
|
|
956
|
+
inProgress: n
|
|
957
|
+
}) => /* @__PURE__ */ c.jsx(ut, { total: i, done: o, inProgress: n }), Wn = ({
|
|
948
958
|
userFlow: e,
|
|
949
959
|
items: t,
|
|
950
960
|
responseKey: s
|
|
951
961
|
}) => {
|
|
952
962
|
const { getNextUI: r } = K(), l = R(
|
|
953
|
-
async ({ actionType:
|
|
963
|
+
async ({ actionType: o, hashCode: n, redirectUrl: d }) => {
|
|
954
964
|
var a;
|
|
955
965
|
try {
|
|
956
|
-
switch (
|
|
966
|
+
switch (o) {
|
|
957
967
|
case "GO_TO_NEXT_UI":
|
|
958
968
|
const u = await r(
|
|
959
969
|
e,
|
|
@@ -967,7 +977,7 @@ const F = /* @__PURE__ */ rn(qn), Dn = "_fieldset_1xrth_1", Rn = "_fieldsetColum
|
|
|
967
977
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
968
978
|
break;
|
|
969
979
|
default:
|
|
970
|
-
console.warn(`Unhandled actionType: ${
|
|
980
|
+
console.warn(`Unhandled actionType: ${o}`);
|
|
971
981
|
break;
|
|
972
982
|
}
|
|
973
983
|
} catch (u) {
|
|
@@ -975,25 +985,25 @@ const F = /* @__PURE__ */ rn(qn), Dn = "_fieldset_1xrth_1", Rn = "_fieldsetColum
|
|
|
975
985
|
}
|
|
976
986
|
},
|
|
977
987
|
[]
|
|
978
|
-
), i = A(() => t == null ? void 0 : t.map((
|
|
979
|
-
title:
|
|
980
|
-
component: /* @__PURE__ */
|
|
988
|
+
), i = A(() => t == null ? void 0 : t.map((o) => ({
|
|
989
|
+
title: o == null ? void 0 : o.title,
|
|
990
|
+
component: /* @__PURE__ */ c.jsx("div", { onClick: () => l(o) })
|
|
981
991
|
})), []);
|
|
982
|
-
return /* @__PURE__ */
|
|
992
|
+
return /* @__PURE__ */ c.jsx(ht, { items: i });
|
|
983
993
|
};
|
|
984
|
-
function
|
|
994
|
+
function we(e, t) {
|
|
985
995
|
const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: l } = K();
|
|
986
996
|
return R(
|
|
987
997
|
async (i) => {
|
|
988
|
-
var _, f, g,
|
|
989
|
-
const { responseKey:
|
|
990
|
-
if (!
|
|
998
|
+
var _, f, g, x;
|
|
999
|
+
const { responseKey: o, actionType: n, dataSource: d, redirectUrl: a, dependencies: u } = i, h = (_ = v.getState()[e]) == null ? void 0 : _.entries;
|
|
1000
|
+
if (!Qe(h, u))
|
|
991
1001
|
try {
|
|
992
|
-
const
|
|
1002
|
+
const m = {
|
|
993
1003
|
...(f = v.getState()[e]) == null ? void 0 : f.entries,
|
|
994
|
-
[
|
|
1004
|
+
[o]: { status: 200 }
|
|
995
1005
|
};
|
|
996
|
-
switch (q(e,
|
|
1006
|
+
switch (q(e, m), n) {
|
|
997
1007
|
case "CLOSE_MODAL":
|
|
998
1008
|
ce(e, !1);
|
|
999
1009
|
break;
|
|
@@ -1007,8 +1017,8 @@ function je(e, t) {
|
|
|
1007
1017
|
const y = await s(
|
|
1008
1018
|
e,
|
|
1009
1019
|
t,
|
|
1010
|
-
|
|
1011
|
-
|
|
1020
|
+
m,
|
|
1021
|
+
o
|
|
1012
1022
|
);
|
|
1013
1023
|
y != null && y.data && $(e, y == null ? void 0 : y.data);
|
|
1014
1024
|
break;
|
|
@@ -1017,8 +1027,8 @@ function je(e, t) {
|
|
|
1017
1027
|
const y = await l(
|
|
1018
1028
|
e,
|
|
1019
1029
|
t,
|
|
1020
|
-
|
|
1021
|
-
|
|
1030
|
+
m,
|
|
1031
|
+
o,
|
|
1022
1032
|
d
|
|
1023
1033
|
);
|
|
1024
1034
|
y != null && y.data && $(e, y == null ? void 0 : y.data);
|
|
@@ -1028,26 +1038,26 @@ function je(e, t) {
|
|
|
1028
1038
|
const y = await s(
|
|
1029
1039
|
e,
|
|
1030
1040
|
t,
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
),
|
|
1034
|
-
if ((
|
|
1041
|
+
m,
|
|
1042
|
+
o
|
|
1043
|
+
), p = (g = y == null ? void 0 : y.data) == null ? void 0 : g.content;
|
|
1044
|
+
if ((p == null ? void 0 : p.type) !== "fetch")
|
|
1035
1045
|
break;
|
|
1036
|
-
const
|
|
1037
|
-
...(
|
|
1038
|
-
[
|
|
1039
|
-
status:
|
|
1040
|
-
content:
|
|
1046
|
+
const b = p == null ? void 0 : p.dataSource, C = await r(b, e, !1), j = {
|
|
1047
|
+
...(x = v.getState()[e]) == null ? void 0 : x.entries,
|
|
1048
|
+
[o]: {
|
|
1049
|
+
status: C == null ? void 0 : C.status,
|
|
1050
|
+
content: C == null ? void 0 : C.data
|
|
1041
1051
|
}
|
|
1042
1052
|
};
|
|
1043
|
-
q(e,
|
|
1044
|
-
const
|
|
1053
|
+
q(e, j);
|
|
1054
|
+
const N = await s(
|
|
1045
1055
|
e,
|
|
1046
1056
|
t,
|
|
1047
|
-
|
|
1048
|
-
|
|
1057
|
+
j,
|
|
1058
|
+
o
|
|
1049
1059
|
);
|
|
1050
|
-
|
|
1060
|
+
N != null && N.data && $(e, N == null ? void 0 : N.data);
|
|
1051
1061
|
break;
|
|
1052
1062
|
}
|
|
1053
1063
|
case "REDIRECT":
|
|
@@ -1056,8 +1066,8 @@ function je(e, t) {
|
|
|
1056
1066
|
default:
|
|
1057
1067
|
console.warn(`Unhandled actionType: ${n}`);
|
|
1058
1068
|
}
|
|
1059
|
-
} catch (
|
|
1060
|
-
alert(JSON.stringify(
|
|
1069
|
+
} catch (m) {
|
|
1070
|
+
alert(JSON.stringify(m));
|
|
1061
1071
|
}
|
|
1062
1072
|
},
|
|
1063
1073
|
[
|
|
@@ -1069,26 +1079,26 @@ function je(e, t) {
|
|
|
1069
1079
|
]
|
|
1070
1080
|
);
|
|
1071
1081
|
}
|
|
1072
|
-
const
|
|
1082
|
+
const Qn = (e) => {
|
|
1073
1083
|
const {
|
|
1074
1084
|
userFlow: t,
|
|
1075
1085
|
pageId: s,
|
|
1076
1086
|
responseKey: r,
|
|
1077
1087
|
actionType: l,
|
|
1078
1088
|
label: i,
|
|
1079
|
-
content:
|
|
1089
|
+
content: o,
|
|
1080
1090
|
dataSource: n,
|
|
1081
1091
|
redirectUrl: d,
|
|
1082
1092
|
dependencies: a,
|
|
1083
1093
|
onClick: u,
|
|
1084
1094
|
...h
|
|
1085
|
-
} = e, _ =
|
|
1095
|
+
} = e, _ = we(t, s), { disabled: f } = I(
|
|
1086
1096
|
t,
|
|
1087
1097
|
a
|
|
1088
1098
|
), g = {
|
|
1089
1099
|
...h,
|
|
1090
|
-
children:
|
|
1091
|
-
},
|
|
1100
|
+
children: o ?? i
|
|
1101
|
+
}, x = (g == null ? void 0 : g.disabled) ?? f, m = R(async () => {
|
|
1092
1102
|
await _({
|
|
1093
1103
|
responseKey: r,
|
|
1094
1104
|
actionType: l,
|
|
@@ -1104,30 +1114,30 @@ const zn = (e) => {
|
|
|
1104
1114
|
r,
|
|
1105
1115
|
_
|
|
1106
1116
|
]);
|
|
1107
|
-
return /* @__PURE__ */
|
|
1108
|
-
|
|
1117
|
+
return /* @__PURE__ */ c.jsx(
|
|
1118
|
+
ft,
|
|
1109
1119
|
{
|
|
1110
1120
|
...g,
|
|
1111
|
-
disabled:
|
|
1112
|
-
onClick: () => !
|
|
1121
|
+
disabled: x,
|
|
1122
|
+
onClick: () => !x && (u ?? m)()
|
|
1113
1123
|
}
|
|
1114
1124
|
);
|
|
1115
|
-
},
|
|
1116
|
-
slotStack:
|
|
1117
|
-
},
|
|
1125
|
+
}, Yn = "_slotStack_12u4t_5", Ie = {
|
|
1126
|
+
slotStack: Yn
|
|
1127
|
+
}, Zn = (e) => {
|
|
1118
1128
|
const {
|
|
1119
1129
|
userFlow: t,
|
|
1120
1130
|
pageId: s,
|
|
1121
1131
|
component: r,
|
|
1122
1132
|
hash: l,
|
|
1123
1133
|
responseKey: i,
|
|
1124
|
-
dependencies:
|
|
1134
|
+
dependencies: o,
|
|
1125
1135
|
content: n,
|
|
1126
1136
|
actionContent: d,
|
|
1127
1137
|
...a
|
|
1128
1138
|
} = e, { disabled: u } = I(
|
|
1129
1139
|
t,
|
|
1130
|
-
|
|
1140
|
+
o
|
|
1131
1141
|
), h = O(
|
|
1132
1142
|
t,
|
|
1133
1143
|
s,
|
|
@@ -1136,48 +1146,48 @@ const zn = (e) => {
|
|
|
1136
1146
|
t,
|
|
1137
1147
|
s,
|
|
1138
1148
|
d && d.length > 0 ? d : null
|
|
1139
|
-
), f = h && h.length > 0 ? /* @__PURE__ */
|
|
1140
|
-
return /* @__PURE__ */
|
|
1141
|
-
|
|
1149
|
+
), f = h && h.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Ie.slotStack, children: h.map((m, y) => /* @__PURE__ */ c.jsx(T, { children: m }, `card-accordion-body-${l}-${y}`)) }) : void 0, g = _ && _.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Ie.slotStack, children: _.map((m, y) => /* @__PURE__ */ c.jsx(T, { children: m }, `card-accordion-actions-${l}-${y}`)) }) : void 0, x = a.disabled || u;
|
|
1150
|
+
return /* @__PURE__ */ c.jsx(
|
|
1151
|
+
yt,
|
|
1142
1152
|
{
|
|
1143
1153
|
...a,
|
|
1144
|
-
disabled:
|
|
1154
|
+
disabled: x,
|
|
1145
1155
|
actionContent: g,
|
|
1146
1156
|
children: f ?? null
|
|
1147
1157
|
}
|
|
1148
1158
|
);
|
|
1149
|
-
},
|
|
1150
|
-
slotStack:
|
|
1151
|
-
},
|
|
1159
|
+
}, Fn = "_slotStack_ivk5b_1", Pn = {
|
|
1160
|
+
slotStack: Fn
|
|
1161
|
+
}, es = (e) => {
|
|
1152
1162
|
const {
|
|
1153
1163
|
userFlow: t,
|
|
1154
1164
|
pageId: s,
|
|
1155
1165
|
component: r,
|
|
1156
1166
|
hash: l,
|
|
1157
1167
|
responseKey: i,
|
|
1158
|
-
content:
|
|
1168
|
+
content: o,
|
|
1159
1169
|
colorId: n,
|
|
1160
1170
|
disabled: d,
|
|
1161
1171
|
actionType: a,
|
|
1162
1172
|
dataSource: u,
|
|
1163
1173
|
redirectUrl: h,
|
|
1164
1174
|
dependencies: _
|
|
1165
|
-
} = e, { getNextUI: f, fetchDataSource: g, fetchAndGetNextUI:
|
|
1175
|
+
} = e, { getNextUI: f, fetchDataSource: g, fetchAndGetNextUI: x } = K(), { disabled: m } = I(
|
|
1166
1176
|
t,
|
|
1167
1177
|
_
|
|
1168
|
-
), y = d ??
|
|
1178
|
+
), y = d ?? m, p = O(
|
|
1169
1179
|
t,
|
|
1170
1180
|
s,
|
|
1171
|
-
|
|
1172
|
-
),
|
|
1173
|
-
var
|
|
1181
|
+
o && o.length > 0 ? o : null
|
|
1182
|
+
), b = p && p.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Pn.slotStack, children: p.map((j, N) => /* @__PURE__ */ c.jsx(T, { children: j }, `card-body-${l}-${N}`)) }) : null, C = R(async () => {
|
|
1183
|
+
var j, N, w;
|
|
1174
1184
|
if (!(!a || y))
|
|
1175
1185
|
try {
|
|
1176
|
-
const
|
|
1177
|
-
...(
|
|
1186
|
+
const k = {
|
|
1187
|
+
...(j = v.getState()[t]) == null ? void 0 : j.entries,
|
|
1178
1188
|
[i]: { status: 200 }
|
|
1179
1189
|
};
|
|
1180
|
-
switch (q(t,
|
|
1190
|
+
switch (q(t, k), a) {
|
|
1181
1191
|
case "CLOSE_MODAL":
|
|
1182
1192
|
ce(t, !1);
|
|
1183
1193
|
break;
|
|
@@ -1189,21 +1199,21 @@ const zn = (e) => {
|
|
|
1189
1199
|
break;
|
|
1190
1200
|
case "GO_TO_NEXT_UI":
|
|
1191
1201
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1192
|
-
const
|
|
1202
|
+
const E = await f(
|
|
1193
1203
|
t,
|
|
1194
1204
|
s,
|
|
1195
|
-
|
|
1205
|
+
k,
|
|
1196
1206
|
i,
|
|
1197
1207
|
a === "GO_TO_NEXT_UI"
|
|
1198
1208
|
);
|
|
1199
|
-
|
|
1209
|
+
E != null && E.data && $(t, E == null ? void 0 : E.data);
|
|
1200
1210
|
break;
|
|
1201
1211
|
}
|
|
1202
1212
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1203
|
-
const S = await
|
|
1213
|
+
const S = await x(
|
|
1204
1214
|
t,
|
|
1205
1215
|
s,
|
|
1206
|
-
|
|
1216
|
+
k,
|
|
1207
1217
|
i,
|
|
1208
1218
|
u
|
|
1209
1219
|
);
|
|
@@ -1214,23 +1224,23 @@ const zn = (e) => {
|
|
|
1214
1224
|
const S = await f(
|
|
1215
1225
|
t,
|
|
1216
1226
|
s,
|
|
1217
|
-
|
|
1227
|
+
k,
|
|
1218
1228
|
i
|
|
1219
|
-
),
|
|
1220
|
-
if ((
|
|
1229
|
+
), E = (N = S == null ? void 0 : S.data) == null ? void 0 : N.content;
|
|
1230
|
+
if ((E == null ? void 0 : E.type) !== "fetch")
|
|
1221
1231
|
break;
|
|
1222
|
-
const G =
|
|
1223
|
-
...(
|
|
1232
|
+
const G = E == null ? void 0 : E.dataSource, M = await g(G, t, !1), H = {
|
|
1233
|
+
...(w = v.getState()[t]) == null ? void 0 : w.entries,
|
|
1224
1234
|
[i]: {
|
|
1225
1235
|
status: M == null ? void 0 : M.status,
|
|
1226
1236
|
content: M == null ? void 0 : M.data
|
|
1227
1237
|
}
|
|
1228
1238
|
};
|
|
1229
|
-
q(t,
|
|
1239
|
+
q(t, H);
|
|
1230
1240
|
const D = await f(
|
|
1231
1241
|
t,
|
|
1232
1242
|
s,
|
|
1233
|
-
|
|
1243
|
+
H,
|
|
1234
1244
|
i
|
|
1235
1245
|
);
|
|
1236
1246
|
D != null && D.data && $(t, D == null ? void 0 : D.data);
|
|
@@ -1242,14 +1252,14 @@ const zn = (e) => {
|
|
|
1242
1252
|
default:
|
|
1243
1253
|
console.warn(`Unhandled card actionType: ${a}`);
|
|
1244
1254
|
}
|
|
1245
|
-
} catch (
|
|
1246
|
-
alert(JSON.stringify(
|
|
1255
|
+
} catch (k) {
|
|
1256
|
+
alert(JSON.stringify(k));
|
|
1247
1257
|
}
|
|
1248
1258
|
}, [
|
|
1249
1259
|
a,
|
|
1250
1260
|
u,
|
|
1251
1261
|
y,
|
|
1252
|
-
|
|
1262
|
+
x,
|
|
1253
1263
|
g,
|
|
1254
1264
|
f,
|
|
1255
1265
|
s,
|
|
@@ -1257,43 +1267,43 @@ const zn = (e) => {
|
|
|
1257
1267
|
i,
|
|
1258
1268
|
t
|
|
1259
1269
|
]);
|
|
1260
|
-
return /* @__PURE__ */
|
|
1261
|
-
|
|
1270
|
+
return /* @__PURE__ */ c.jsx(
|
|
1271
|
+
mt,
|
|
1262
1272
|
{
|
|
1263
1273
|
colorId: n,
|
|
1264
1274
|
disabled: y,
|
|
1265
|
-
onClick: a && !y ? () => void
|
|
1266
|
-
children:
|
|
1275
|
+
onClick: a && !y ? () => void C() : void 0,
|
|
1276
|
+
children: b
|
|
1267
1277
|
}
|
|
1268
1278
|
);
|
|
1269
|
-
},
|
|
1279
|
+
}, ts = (e) => {
|
|
1270
1280
|
const { content: t, description: s, ...r } = e, l = {
|
|
1271
1281
|
...r,
|
|
1272
1282
|
children: t ?? s
|
|
1273
1283
|
};
|
|
1274
|
-
return /* @__PURE__ */
|
|
1275
|
-
},
|
|
1276
|
-
const { url: r, paginationKeys: l, params: i } = e,
|
|
1277
|
-
if (
|
|
1284
|
+
return /* @__PURE__ */ c.jsx(pe, { ...l });
|
|
1285
|
+
}, ns = (e, t, s) => {
|
|
1286
|
+
const { url: r, paginationKeys: l, params: i } = e, o = [], n = (l == null ? void 0 : l.page) ?? "page";
|
|
1287
|
+
if (o.push(`${n}=${t}`), typeof s == "string") {
|
|
1278
1288
|
const u = (l == null ? void 0 : l.text) ?? "text";
|
|
1279
|
-
|
|
1289
|
+
o.push(`${u}=${encodeURIComponent(s || "")}`);
|
|
1280
1290
|
}
|
|
1281
1291
|
if (i && typeof i == "object") {
|
|
1282
1292
|
const u = Object.entries(i).map(
|
|
1283
1293
|
([h, _]) => `${encodeURIComponent(h)}=${encodeURIComponent(_)}`
|
|
1284
1294
|
);
|
|
1285
|
-
|
|
1295
|
+
o.push(...u);
|
|
1286
1296
|
}
|
|
1287
|
-
const d =
|
|
1297
|
+
const d = o.join("&");
|
|
1288
1298
|
return d ? `${r}?${d}` : r;
|
|
1289
|
-
},
|
|
1290
|
-
const { type: l, url: i, method:
|
|
1299
|
+
}, Ce = (e, t, s, r) => {
|
|
1300
|
+
const { type: l, url: i, method: o, headers: n } = e;
|
|
1291
1301
|
if (l === "rest") {
|
|
1292
|
-
const d =
|
|
1302
|
+
const d = ns(e, t, s), u = { ...(e == null ? void 0 : e.data) ?? {}, ...r ?? {} };
|
|
1293
1303
|
return {
|
|
1294
1304
|
type: "rest",
|
|
1295
1305
|
url: d,
|
|
1296
|
-
method:
|
|
1306
|
+
method: o,
|
|
1297
1307
|
headers: n,
|
|
1298
1308
|
data: u
|
|
1299
1309
|
};
|
|
@@ -1310,7 +1320,7 @@ const zn = (e) => {
|
|
|
1310
1320
|
page: t
|
|
1311
1321
|
}
|
|
1312
1322
|
};
|
|
1313
|
-
}, fe = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e,
|
|
1323
|
+
}, fe = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ss = (e, t) => {
|
|
1314
1324
|
if (!t || e == null)
|
|
1315
1325
|
return null;
|
|
1316
1326
|
const { extractionJsonPath: s, injectionJsonPath: r } = t, l = B.value(e, s);
|
|
@@ -1326,37 +1336,42 @@ const zn = (e) => {
|
|
|
1326
1336
|
i
|
|
1327
1337
|
), null;
|
|
1328
1338
|
}
|
|
1329
|
-
},
|
|
1339
|
+
}, Fe = (e, t, s, r) => {
|
|
1330
1340
|
const l = B.query(e, t), i = l == null ? void 0 : l.map((a) => {
|
|
1331
1341
|
var u, h;
|
|
1332
1342
|
if (s) {
|
|
1333
1343
|
const _ = {};
|
|
1334
1344
|
for (const [f, g] of Object.entries(s))
|
|
1335
1345
|
if (typeof g == "object" && "path" in g) {
|
|
1336
|
-
const
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
) : _[f] = fe(
|
|
1346
|
+
const x = g, m = (u = B.query(a, x.path)) == null ? void 0 : u[0];
|
|
1347
|
+
x.translations && String(m) in x.translations ? _[f] = fe(
|
|
1348
|
+
x.translations[String(m)]
|
|
1349
|
+
) : _[f] = fe(m);
|
|
1340
1350
|
} else {
|
|
1341
|
-
const
|
|
1342
|
-
_[f] = fe((h = B.query(a,
|
|
1351
|
+
const x = g;
|
|
1352
|
+
_[f] = fe((h = B.query(a, x)) == null ? void 0 : h[0]);
|
|
1343
1353
|
}
|
|
1344
1354
|
return _;
|
|
1345
1355
|
} else
|
|
1346
1356
|
return a;
|
|
1347
|
-
}),
|
|
1348
|
-
size:
|
|
1357
|
+
}), o = B.value(e, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? l.length, n = B.value(e, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = {
|
|
1358
|
+
size: o,
|
|
1349
1359
|
total: n,
|
|
1350
1360
|
totalPages: r != null && r.totalPages ? B.value(
|
|
1351
1361
|
e,
|
|
1352
1362
|
(r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
|
|
1353
|
-
) :
|
|
1363
|
+
) : o > 0 ? Math.ceil(n / o) : 0
|
|
1354
1364
|
};
|
|
1355
1365
|
return { items: i, pagination: d };
|
|
1356
|
-
},
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1366
|
+
}, Ne = ({
|
|
1367
|
+
width: e,
|
|
1368
|
+
data: t,
|
|
1369
|
+
Chart: s,
|
|
1370
|
+
children: r
|
|
1371
|
+
}) => e ? /* @__PURE__ */ c.jsx(s, { width: e, height: oe, data: t, children: r }) : /* @__PURE__ */ c.jsx(Je, { width: "100%", height: oe, children: /* @__PURE__ */ c.jsx(s, { data: t, children: r }) }), ie = ({ withPadding: e = !1 }) => {
|
|
1372
|
+
const t = (s) => /* @__PURE__ */ c.jsx("span", { style: { color: U.labelColor }, children: s });
|
|
1373
|
+
return /* @__PURE__ */ c.jsx(
|
|
1374
|
+
Gt,
|
|
1360
1375
|
{
|
|
1361
1376
|
formatter: t,
|
|
1362
1377
|
wrapperStyle: {
|
|
@@ -1366,7 +1381,7 @@ const zn = (e) => {
|
|
|
1366
1381
|
}
|
|
1367
1382
|
}
|
|
1368
1383
|
);
|
|
1369
|
-
},
|
|
1384
|
+
}, as = ({
|
|
1370
1385
|
active: e,
|
|
1371
1386
|
payload: t,
|
|
1372
1387
|
label: s,
|
|
@@ -1383,21 +1398,21 @@ const zn = (e) => {
|
|
|
1383
1398
|
border: "1px solid #e5e7eb"
|
|
1384
1399
|
};
|
|
1385
1400
|
if (r) {
|
|
1386
|
-
const
|
|
1387
|
-
if (
|
|
1388
|
-
return /* @__PURE__ */
|
|
1401
|
+
const o = (i = t[0]) == null ? void 0 : i.payload;
|
|
1402
|
+
if (o && o[r] !== void 0 && o[r] !== null)
|
|
1403
|
+
return /* @__PURE__ */ c.jsx("div", { style: l, children: /* @__PURE__ */ c.jsx("p", { style: { margin: 0 }, children: o[r] }) });
|
|
1389
1404
|
}
|
|
1390
|
-
return /* @__PURE__ */
|
|
1391
|
-
/* @__PURE__ */
|
|
1392
|
-
t.map((
|
|
1405
|
+
return /* @__PURE__ */ c.jsxs("div", { style: l, children: [
|
|
1406
|
+
/* @__PURE__ */ c.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1407
|
+
t.map((o, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: o.color }, children: `${o.name}: ${o.value}` }, n))
|
|
1393
1408
|
] });
|
|
1394
|
-
}, le = ({ tooltipKey: e } = {}) => /* @__PURE__ */
|
|
1395
|
-
|
|
1409
|
+
}, le = ({ tooltipKey: e } = {}) => /* @__PURE__ */ c.jsx(
|
|
1410
|
+
Mt,
|
|
1396
1411
|
{
|
|
1397
|
-
content: /* @__PURE__ */
|
|
1412
|
+
content: /* @__PURE__ */ c.jsx(as, { tooltipKey: e })
|
|
1398
1413
|
}
|
|
1399
|
-
),
|
|
1400
|
-
|
|
1414
|
+
), ve = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ c.jsx(
|
|
1415
|
+
Ut,
|
|
1401
1416
|
{
|
|
1402
1417
|
dataKey: e,
|
|
1403
1418
|
hide: t,
|
|
@@ -1406,85 +1421,85 @@ const zn = (e) => {
|
|
|
1406
1421
|
fontSize: U.fontSize
|
|
1407
1422
|
}
|
|
1408
1423
|
}
|
|
1409
|
-
),
|
|
1410
|
-
|
|
1424
|
+
), Se = () => /* @__PURE__ */ c.jsx(
|
|
1425
|
+
Vt,
|
|
1411
1426
|
{
|
|
1412
1427
|
tick: {
|
|
1413
1428
|
fill: U.labelColor,
|
|
1414
1429
|
fontSize: U.fontSize
|
|
1415
1430
|
}
|
|
1416
1431
|
}
|
|
1417
|
-
),
|
|
1418
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
|
|
1419
|
-
return /* @__PURE__ */
|
|
1420
|
-
/* @__PURE__ */
|
|
1421
|
-
/* @__PURE__ */
|
|
1422
|
-
/* @__PURE__ */
|
|
1423
|
-
/* @__PURE__ */
|
|
1424
|
-
/* @__PURE__ */
|
|
1425
|
-
r.map((
|
|
1426
|
-
|
|
1432
|
+
), rs = (e) => {
|
|
1433
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l, width: i } = e;
|
|
1434
|
+
return /* @__PURE__ */ c.jsxs(Ne, { width: i, data: t, Chart: zt, children: [
|
|
1435
|
+
/* @__PURE__ */ c.jsx(be, { strokeDasharray: "3 3" }),
|
|
1436
|
+
/* @__PURE__ */ c.jsx(ve, { dataKey: s }),
|
|
1437
|
+
/* @__PURE__ */ c.jsx(Se, {}),
|
|
1438
|
+
/* @__PURE__ */ c.jsx(le, { tooltipKey: l }),
|
|
1439
|
+
/* @__PURE__ */ c.jsx(ie, {}),
|
|
1440
|
+
r.map((o, n) => /* @__PURE__ */ c.jsx(
|
|
1441
|
+
Ht,
|
|
1427
1442
|
{
|
|
1428
1443
|
type: "monotone",
|
|
1429
|
-
dataKey:
|
|
1430
|
-
stroke:
|
|
1431
|
-
fill:
|
|
1444
|
+
dataKey: o,
|
|
1445
|
+
stroke: z[n % z.length],
|
|
1446
|
+
fill: z[n % z.length]
|
|
1432
1447
|
},
|
|
1433
|
-
|
|
1448
|
+
o
|
|
1434
1449
|
))
|
|
1435
|
-
] })
|
|
1436
|
-
},
|
|
1437
|
-
const { data: t, yKeys: s, xKey: r, tooltipKey: l } = e;
|
|
1438
|
-
return /* @__PURE__ */
|
|
1439
|
-
/* @__PURE__ */
|
|
1440
|
-
/* @__PURE__ */
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
/* @__PURE__ */
|
|
1443
|
-
/* @__PURE__ */
|
|
1444
|
-
s.map((
|
|
1445
|
-
|
|
1450
|
+
] });
|
|
1451
|
+
}, os = (e) => {
|
|
1452
|
+
const { data: t, yKeys: s, xKey: r, tooltipKey: l, width: i } = e;
|
|
1453
|
+
return /* @__PURE__ */ c.jsxs(Ne, { width: i, data: t, Chart: Xt, children: [
|
|
1454
|
+
/* @__PURE__ */ c.jsx(be, { strokeDasharray: "3 3" }),
|
|
1455
|
+
/* @__PURE__ */ c.jsx(ve, { dataKey: r }),
|
|
1456
|
+
/* @__PURE__ */ c.jsx(Se, {}),
|
|
1457
|
+
/* @__PURE__ */ c.jsx(le, { tooltipKey: l }),
|
|
1458
|
+
/* @__PURE__ */ c.jsx(ie, {}),
|
|
1459
|
+
s.map((o, n) => /* @__PURE__ */ c.jsx(
|
|
1460
|
+
Jt,
|
|
1446
1461
|
{
|
|
1447
|
-
dataKey:
|
|
1448
|
-
fill:
|
|
1462
|
+
dataKey: o,
|
|
1463
|
+
fill: z[n % z.length]
|
|
1449
1464
|
},
|
|
1450
|
-
|
|
1465
|
+
o
|
|
1451
1466
|
))
|
|
1452
|
-
] })
|
|
1453
|
-
},
|
|
1454
|
-
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
|
|
1455
|
-
return /* @__PURE__ */
|
|
1456
|
-
/* @__PURE__ */
|
|
1457
|
-
/* @__PURE__ */
|
|
1458
|
-
/* @__PURE__ */
|
|
1459
|
-
/* @__PURE__ */
|
|
1460
|
-
/* @__PURE__ */
|
|
1461
|
-
r.map((
|
|
1462
|
-
|
|
1467
|
+
] });
|
|
1468
|
+
}, cs = (e) => {
|
|
1469
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: l, width: i } = e;
|
|
1470
|
+
return /* @__PURE__ */ c.jsxs(Ne, { width: i, data: t, Chart: Wt, children: [
|
|
1471
|
+
/* @__PURE__ */ c.jsx(be, { strokeDasharray: "3 3" }),
|
|
1472
|
+
/* @__PURE__ */ c.jsx(ve, { dataKey: s }),
|
|
1473
|
+
/* @__PURE__ */ c.jsx(Se, {}),
|
|
1474
|
+
/* @__PURE__ */ c.jsx(le, { tooltipKey: l }),
|
|
1475
|
+
/* @__PURE__ */ c.jsx(ie, {}),
|
|
1476
|
+
r.map((o, n) => /* @__PURE__ */ c.jsx(
|
|
1477
|
+
Qt,
|
|
1463
1478
|
{
|
|
1464
1479
|
type: "monotone",
|
|
1465
|
-
dataKey:
|
|
1466
|
-
stroke:
|
|
1480
|
+
dataKey: o,
|
|
1481
|
+
stroke: z[n % z.length],
|
|
1467
1482
|
strokeWidth: 2,
|
|
1468
1483
|
dot: !1
|
|
1469
1484
|
},
|
|
1470
|
-
|
|
1485
|
+
o
|
|
1471
1486
|
))
|
|
1472
|
-
] })
|
|
1473
|
-
},
|
|
1487
|
+
] });
|
|
1488
|
+
}, is = (e) => {
|
|
1474
1489
|
const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e, i = ({
|
|
1475
|
-
cx:
|
|
1490
|
+
cx: o,
|
|
1476
1491
|
cy: n,
|
|
1477
1492
|
midAngle: d,
|
|
1478
1493
|
innerRadius: a,
|
|
1479
1494
|
outerRadius: u,
|
|
1480
1495
|
value: h
|
|
1481
1496
|
}) => {
|
|
1482
|
-
const _ = Math.PI / 180, f = 25 + a + (u - a), g =
|
|
1483
|
-
return /* @__PURE__ */
|
|
1497
|
+
const _ = Math.PI / 180, f = 25 + a + (u - a), g = o + f * Math.cos(-(d ?? 0) * _), x = n + f * Math.sin(-(d ?? 0) * _);
|
|
1498
|
+
return /* @__PURE__ */ c.jsx(
|
|
1484
1499
|
"text",
|
|
1485
1500
|
{
|
|
1486
1501
|
x: g,
|
|
1487
|
-
y:
|
|
1502
|
+
y: x,
|
|
1488
1503
|
fill: U.labelColor,
|
|
1489
1504
|
color: U.labelColor,
|
|
1490
1505
|
textAnchor: "middle",
|
|
@@ -1493,33 +1508,33 @@ const zn = (e) => {
|
|
|
1493
1508
|
}
|
|
1494
1509
|
);
|
|
1495
1510
|
};
|
|
1496
|
-
return /* @__PURE__ */
|
|
1497
|
-
/* @__PURE__ */
|
|
1498
|
-
/* @__PURE__ */
|
|
1499
|
-
/* @__PURE__ */
|
|
1500
|
-
|
|
1511
|
+
return /* @__PURE__ */ c.jsx(Je, { width: "100%", height: oe, children: /* @__PURE__ */ c.jsxs(Yt, { children: [
|
|
1512
|
+
/* @__PURE__ */ c.jsx(le, { tooltipKey: l }),
|
|
1513
|
+
/* @__PURE__ */ c.jsx(ie, {}),
|
|
1514
|
+
/* @__PURE__ */ c.jsx(
|
|
1515
|
+
Zt,
|
|
1501
1516
|
{
|
|
1502
1517
|
data: t,
|
|
1503
1518
|
dataKey: r[0],
|
|
1504
1519
|
nameKey: s,
|
|
1505
1520
|
label: i,
|
|
1506
1521
|
outerRadius: 120,
|
|
1507
|
-
children: t.map((
|
|
1508
|
-
|
|
1522
|
+
children: t.map((o, n) => /* @__PURE__ */ c.jsx(
|
|
1523
|
+
Ft,
|
|
1509
1524
|
{
|
|
1510
|
-
fill:
|
|
1525
|
+
fill: z[n % z.length]
|
|
1511
1526
|
},
|
|
1512
1527
|
`cell-${n}`
|
|
1513
1528
|
))
|
|
1514
1529
|
}
|
|
1515
1530
|
)
|
|
1516
1531
|
] }) });
|
|
1517
|
-
},
|
|
1518
|
-
area:
|
|
1519
|
-
bar:
|
|
1520
|
-
line:
|
|
1521
|
-
pie:
|
|
1522
|
-
},
|
|
1532
|
+
}, oe = 400, Pe = 56, ls = /* @__PURE__ */ new Set(["bar", "line", "area"]), ds = {
|
|
1533
|
+
area: rs,
|
|
1534
|
+
bar: os,
|
|
1535
|
+
line: cs,
|
|
1536
|
+
pie: is
|
|
1537
|
+
}, z = [
|
|
1523
1538
|
"var(--color-primitive-palette-1-50)",
|
|
1524
1539
|
"var(--color-primitive-palette-2-50)",
|
|
1525
1540
|
"var(--color-primitive-palette-3-50)",
|
|
@@ -1544,156 +1559,229 @@ const zn = (e) => {
|
|
|
1544
1559
|
tooltipBg: "#fff",
|
|
1545
1560
|
tooltipColor: "#000",
|
|
1546
1561
|
tooltipBorderRadius: "4px"
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1562
|
+
};
|
|
1563
|
+
function _s(e, t, s = Pe) {
|
|
1564
|
+
return e <= 0 ? 0 : t <= 0 ? e : Math.max(e, t * s);
|
|
1565
|
+
}
|
|
1566
|
+
const us = "_chartScrollViewport_sm5hx_1", hs = "_chartScrollViewport_track_sm5hx_29", Be = {
|
|
1567
|
+
chartScrollViewport: us,
|
|
1568
|
+
chartScrollViewport_track: hs
|
|
1569
|
+
}, fs = "Scrollable chart area", ys = ({
|
|
1570
|
+
dataLength: e,
|
|
1571
|
+
minCategoryWidth: t,
|
|
1572
|
+
children: s
|
|
1573
|
+
}) => {
|
|
1574
|
+
const r = ge(null), [l, i] = L(0), o = t ?? Pe;
|
|
1575
|
+
V(() => {
|
|
1576
|
+
const u = r.current;
|
|
1577
|
+
if (!u)
|
|
1578
|
+
return;
|
|
1579
|
+
const h = () => {
|
|
1580
|
+
i(u.clientWidth);
|
|
1581
|
+
};
|
|
1582
|
+
h();
|
|
1583
|
+
const _ = new ResizeObserver(h);
|
|
1584
|
+
return _.observe(u), () => _.disconnect();
|
|
1585
|
+
}, []);
|
|
1586
|
+
const n = _s(
|
|
1587
|
+
l,
|
|
1588
|
+
e,
|
|
1589
|
+
o
|
|
1590
|
+
), d = l > 0 && n > l, a = R(
|
|
1591
|
+
(u) => {
|
|
1592
|
+
const h = r.current;
|
|
1593
|
+
if (h)
|
|
1594
|
+
switch (u.key) {
|
|
1595
|
+
case "ArrowLeft":
|
|
1596
|
+
h.scrollLeft -= o, u.preventDefault();
|
|
1597
|
+
break;
|
|
1598
|
+
case "ArrowRight":
|
|
1599
|
+
h.scrollLeft += o, u.preventDefault();
|
|
1600
|
+
break;
|
|
1601
|
+
case "Home":
|
|
1602
|
+
h.scrollLeft = 0, u.preventDefault();
|
|
1603
|
+
break;
|
|
1604
|
+
case "End":
|
|
1605
|
+
h.scrollLeft = h.scrollWidth - h.clientWidth, u.preventDefault();
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
},
|
|
1609
|
+
[o]
|
|
1610
|
+
);
|
|
1611
|
+
return /* @__PURE__ */ c.jsx(
|
|
1612
|
+
"div",
|
|
1613
|
+
{
|
|
1614
|
+
ref: r,
|
|
1615
|
+
className: Be.chartScrollViewport,
|
|
1616
|
+
role: d ? "region" : void 0,
|
|
1617
|
+
tabIndex: d ? 0 : void 0,
|
|
1618
|
+
"aria-label": d ? fs : void 0,
|
|
1619
|
+
onKeyDown: d ? a : void 0,
|
|
1620
|
+
children: /* @__PURE__ */ c.jsx(
|
|
1621
|
+
"div",
|
|
1622
|
+
{
|
|
1623
|
+
className: Be.chartScrollViewport_track,
|
|
1624
|
+
style: { width: n, height: oe },
|
|
1625
|
+
children: l > 0 ? s(n) : null
|
|
1626
|
+
}
|
|
1627
|
+
)
|
|
1628
|
+
}
|
|
1629
|
+
);
|
|
1630
|
+
}, ms = (e) => {
|
|
1631
|
+
const { component: t, userFlow: s, hash: r, responseKey: l, dataSource: i, ...o } = e, n = ds[o.type], { fetchDataSource: d } = K(), [a, u] = L(!1), [h, _] = L([]), f = async () => {
|
|
1632
|
+
var m, y;
|
|
1553
1633
|
try {
|
|
1554
1634
|
u(!0);
|
|
1555
|
-
const { jsonPathData:
|
|
1635
|
+
const { jsonPathData: p, mapperData: b } = i, C = Ce(
|
|
1556
1636
|
i,
|
|
1557
1637
|
1
|
|
1558
1638
|
), j = await d(
|
|
1559
|
-
|
|
1639
|
+
C,
|
|
1560
1640
|
s,
|
|
1561
1641
|
!1
|
|
1562
|
-
),
|
|
1563
|
-
_(
|
|
1564
|
-
} catch (
|
|
1565
|
-
alert(JSON.stringify(
|
|
1642
|
+
), N = p ? (m = Fe(j == null ? void 0 : j.data, p, b)) == null ? void 0 : m.items : (y = j == null ? void 0 : j.data) == null ? void 0 : y.data;
|
|
1643
|
+
_(N), u(!1);
|
|
1644
|
+
} catch (p) {
|
|
1645
|
+
alert(JSON.stringify(p)), u(!1);
|
|
1566
1646
|
}
|
|
1567
1647
|
};
|
|
1568
|
-
|
|
1569
|
-
i ? f() : _(
|
|
1570
|
-
}, [])
|
|
1648
|
+
if (V(() => {
|
|
1649
|
+
n && (i ? f() : _(o.data));
|
|
1650
|
+
}, []), !n)
|
|
1651
|
+
return /* @__PURE__ */ c.jsx("div", { children: "Not supported chart type" });
|
|
1571
1652
|
const g = {
|
|
1572
|
-
...
|
|
1653
|
+
...o,
|
|
1573
1654
|
data: h
|
|
1574
1655
|
};
|
|
1575
|
-
return a ? /* @__PURE__ */
|
|
1576
|
-
|
|
1656
|
+
return a ? /* @__PURE__ */ c.jsx(He, { height: 400 }) : h.length === 0 ? /* @__PURE__ */ c.jsx(pe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : ls.has(o.type) ? /* @__PURE__ */ c.jsx(
|
|
1657
|
+
ys,
|
|
1658
|
+
{
|
|
1659
|
+
dataLength: h.length,
|
|
1660
|
+
minCategoryWidth: o.minCategoryWidth,
|
|
1661
|
+
children: (m) => /* @__PURE__ */ c.jsx(n, { ...g, width: m })
|
|
1662
|
+
}
|
|
1663
|
+
) : /* @__PURE__ */ c.jsx(n, { ...g });
|
|
1664
|
+
}, xs = (e) => {
|
|
1577
1665
|
const {
|
|
1578
1666
|
userFlow: t,
|
|
1579
1667
|
pageId: s,
|
|
1580
1668
|
responseKey: r,
|
|
1581
1669
|
actionType: l,
|
|
1582
1670
|
label: i,
|
|
1583
|
-
value:
|
|
1671
|
+
value: o,
|
|
1584
1672
|
required: n,
|
|
1585
1673
|
dependencies: d,
|
|
1586
1674
|
...a
|
|
1587
1675
|
} = e, u = {
|
|
1588
1676
|
...a
|
|
1589
|
-
}, { getNextUI: h } = K(), [_, f] = L(
|
|
1677
|
+
}, { getNextUI: h } = K(), [_, f] = L(o || !1), { disabled: g } = I(
|
|
1590
1678
|
t,
|
|
1591
1679
|
d
|
|
1592
|
-
),
|
|
1593
|
-
var
|
|
1680
|
+
), x = A(() => n && i ? `${i} *` : i ?? "", [i, n]), m = R(async () => {
|
|
1681
|
+
var p;
|
|
1594
1682
|
try {
|
|
1595
|
-
const
|
|
1596
|
-
f(
|
|
1597
|
-
const
|
|
1598
|
-
...(
|
|
1599
|
-
[r]:
|
|
1683
|
+
const b = !_;
|
|
1684
|
+
f(b);
|
|
1685
|
+
const C = {
|
|
1686
|
+
...(p = v.getState()[t]) == null ? void 0 : p.entries,
|
|
1687
|
+
[r]: b
|
|
1600
1688
|
};
|
|
1601
|
-
switch (q(t,
|
|
1689
|
+
switch (q(t, C), l) {
|
|
1602
1690
|
case "GO_TO_NEXT_UI":
|
|
1603
1691
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1604
|
-
const
|
|
1692
|
+
const N = await h(
|
|
1605
1693
|
t,
|
|
1606
1694
|
s,
|
|
1607
|
-
|
|
1695
|
+
C,
|
|
1608
1696
|
r,
|
|
1609
1697
|
l === "GO_TO_NEXT_UI"
|
|
1610
1698
|
);
|
|
1611
|
-
|
|
1699
|
+
N != null && N.data && $(t, N == null ? void 0 : N.data);
|
|
1612
1700
|
break;
|
|
1613
1701
|
}
|
|
1614
1702
|
default:
|
|
1615
1703
|
break;
|
|
1616
1704
|
}
|
|
1617
|
-
} catch (
|
|
1618
|
-
console.error("Error in checkbox action:",
|
|
1705
|
+
} catch (b) {
|
|
1706
|
+
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
1619
1707
|
}
|
|
1620
1708
|
}, [t, s, r, l, _]), y = (u == null ? void 0 : u.disabled) ?? g;
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
|
|
1709
|
+
return /* @__PURE__ */ c.jsx(
|
|
1710
|
+
xt,
|
|
1623
1711
|
{
|
|
1624
1712
|
...u,
|
|
1625
|
-
labelRight:
|
|
1713
|
+
labelRight: x,
|
|
1626
1714
|
checked: _,
|
|
1627
1715
|
disabled: y,
|
|
1628
1716
|
onChange: () => {
|
|
1629
|
-
!y &&
|
|
1717
|
+
!y && m();
|
|
1630
1718
|
}
|
|
1631
1719
|
}
|
|
1632
1720
|
);
|
|
1633
|
-
},
|
|
1634
|
-
codeEditor:
|
|
1635
|
-
codeEditor_label:
|
|
1636
|
-
codeEditor_wrapper:
|
|
1637
|
-
input:
|
|
1638
|
-
preview:
|
|
1639
|
-
preview_inner:
|
|
1640
|
-
},
|
|
1721
|
+
}, gs = "_codeEditor_1wi2p_1", ps = "_codeEditor_label_1wi2p_4", bs = "_codeEditor_wrapper_1wi2p_13", js = "_input_1wi2p_17", ws = "_preview_1wi2p_18", Cs = "_preview_inner_1wi2p_33", Z = {
|
|
1722
|
+
codeEditor: gs,
|
|
1723
|
+
codeEditor_label: ps,
|
|
1724
|
+
codeEditor_wrapper: bs,
|
|
1725
|
+
input: js,
|
|
1726
|
+
preview: ws,
|
|
1727
|
+
preview_inner: Cs
|
|
1728
|
+
}, Ns = (e) => {
|
|
1641
1729
|
const {
|
|
1642
1730
|
userFlow: t,
|
|
1643
1731
|
responseKey: s,
|
|
1644
1732
|
label: r,
|
|
1645
1733
|
language: l,
|
|
1646
1734
|
placeholder: i,
|
|
1647
|
-
value:
|
|
1735
|
+
value: o,
|
|
1648
1736
|
required: n,
|
|
1649
1737
|
dependencies: d,
|
|
1650
1738
|
disabled: a,
|
|
1651
1739
|
showPreview: u,
|
|
1652
1740
|
height: h = "400px"
|
|
1653
|
-
} = e, [_, f] = L(
|
|
1741
|
+
} = e, [_, f] = L(o ?? ""), g = ne.useThemeStore((C) => C.theme.mode), { disabled: x } = I(
|
|
1654
1742
|
t,
|
|
1655
1743
|
d
|
|
1656
|
-
),
|
|
1657
|
-
json:
|
|
1658
|
-
markdown:
|
|
1659
|
-
sql:
|
|
1660
|
-
yaml:
|
|
1661
|
-
},
|
|
1662
|
-
f(
|
|
1663
|
-
const
|
|
1664
|
-
[s]:
|
|
1744
|
+
), m = a ?? x, y = {
|
|
1745
|
+
json: ke(),
|
|
1746
|
+
markdown: en(),
|
|
1747
|
+
sql: tn(),
|
|
1748
|
+
yaml: nn()
|
|
1749
|
+
}, p = A(() => n && r ? `${r} *` : r ?? "", [r, n]), b = (C) => {
|
|
1750
|
+
f(C);
|
|
1751
|
+
const j = {
|
|
1752
|
+
[s]: C
|
|
1665
1753
|
};
|
|
1666
|
-
q(t,
|
|
1754
|
+
q(t, j);
|
|
1667
1755
|
};
|
|
1668
|
-
return /* @__PURE__ */
|
|
1669
|
-
|
|
1670
|
-
/* @__PURE__ */
|
|
1671
|
-
/* @__PURE__ */
|
|
1672
|
-
|
|
1756
|
+
return /* @__PURE__ */ c.jsxs("div", { className: Z.codeEditor, children: [
|
|
1757
|
+
p && p !== "" && /* @__PURE__ */ c.jsx("label", { className: Z.codeEditor_label, children: p }),
|
|
1758
|
+
/* @__PURE__ */ c.jsxs("div", { className: Z.codeEditor_wrapper, children: [
|
|
1759
|
+
/* @__PURE__ */ c.jsx(
|
|
1760
|
+
Pt,
|
|
1673
1761
|
{
|
|
1674
1762
|
className: Z.input,
|
|
1675
1763
|
value: _,
|
|
1676
1764
|
height: h,
|
|
1677
1765
|
placeholder: i,
|
|
1678
|
-
extensions: [y[l] ??
|
|
1679
|
-
onChange: (
|
|
1766
|
+
extensions: [y[l] ?? ke()],
|
|
1767
|
+
onChange: (C) => b(C),
|
|
1680
1768
|
theme: g,
|
|
1681
|
-
editable: !
|
|
1769
|
+
editable: !m
|
|
1682
1770
|
}
|
|
1683
1771
|
),
|
|
1684
|
-
l === "markdown" && u && /* @__PURE__ */
|
|
1772
|
+
l === "markdown" && u && /* @__PURE__ */ c.jsx("div", { className: Z.preview, style: { height: h }, children: /* @__PURE__ */ c.jsx(Xe, { className: Z.preview_inner, children: _ }) })
|
|
1685
1773
|
] })
|
|
1686
1774
|
] });
|
|
1687
|
-
},
|
|
1688
|
-
slotStack:
|
|
1689
|
-
},
|
|
1775
|
+
}, vs = "_slotStack_6n2wy_5", Ke = {
|
|
1776
|
+
slotStack: vs
|
|
1777
|
+
}, Ss = (e) => {
|
|
1690
1778
|
const {
|
|
1691
1779
|
userFlow: t,
|
|
1692
1780
|
pageId: s,
|
|
1693
1781
|
component: r,
|
|
1694
1782
|
hash: l,
|
|
1695
1783
|
responseKey: i,
|
|
1696
|
-
content:
|
|
1784
|
+
content: o,
|
|
1697
1785
|
topContent: n,
|
|
1698
1786
|
icon: d,
|
|
1699
1787
|
headerStatusColor: a,
|
|
@@ -1701,77 +1789,77 @@ const zn = (e) => {
|
|
|
1701
1789
|
} = e, h = a ? `palette_${a}_50` : void 0, _ = O(
|
|
1702
1790
|
t,
|
|
1703
1791
|
s,
|
|
1704
|
-
|
|
1792
|
+
o && o.length > 0 ? o : null
|
|
1705
1793
|
), f = O(
|
|
1706
1794
|
t,
|
|
1707
1795
|
s,
|
|
1708
1796
|
n && n.length > 0 ? n : null
|
|
1709
|
-
), g = _ && _.length > 0 ? /* @__PURE__ */
|
|
1710
|
-
return /* @__PURE__ */
|
|
1711
|
-
|
|
1797
|
+
), g = _ && _.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Ke.slotStack, children: _.map((m, y) => /* @__PURE__ */ c.jsx(T, { children: m }, `data-card-body-${l}-${y}`)) }) : void 0, x = f && f.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Ke.slotStack, children: f.map((m, y) => /* @__PURE__ */ c.jsx(T, { children: m }, `data-card-top-${l}-${y}`)) }) : void 0;
|
|
1798
|
+
return /* @__PURE__ */ c.jsx(
|
|
1799
|
+
gt,
|
|
1712
1800
|
{
|
|
1713
1801
|
...u,
|
|
1714
1802
|
icon: d,
|
|
1715
1803
|
headerStatusColor: h,
|
|
1716
|
-
topContent:
|
|
1804
|
+
topContent: x,
|
|
1717
1805
|
children: g
|
|
1718
1806
|
}
|
|
1719
1807
|
);
|
|
1720
|
-
},
|
|
1721
|
-
dividerNotFront:
|
|
1722
|
-
},
|
|
1723
|
-
drawer:
|
|
1724
|
-
drawerBody:
|
|
1725
|
-
drawerFooter:
|
|
1726
|
-
},
|
|
1808
|
+
}, ks = "_dividerNotFront_tze3j_1", Es = {
|
|
1809
|
+
dividerNotFront: ks
|
|
1810
|
+
}, Ts = (e) => /* @__PURE__ */ c.jsx(pt, { ...e, className: Es.dividerNotFront }), Os = "_drawer_13pxo_1", As = "_drawerBody_13pxo_5", $s = "_drawerFooter_13pxo_11", ye = {
|
|
1811
|
+
drawer: Os,
|
|
1812
|
+
drawerBody: As,
|
|
1813
|
+
drawerFooter: $s
|
|
1814
|
+
}, qs = ({
|
|
1727
1815
|
userFlow: e,
|
|
1728
1816
|
pageId: t,
|
|
1729
1817
|
responseKey: s,
|
|
1730
1818
|
header: r,
|
|
1731
1819
|
body: l,
|
|
1732
1820
|
footer: i,
|
|
1733
|
-
...
|
|
1821
|
+
...o
|
|
1734
1822
|
}) => {
|
|
1735
|
-
const n = v((
|
|
1736
|
-
var
|
|
1737
|
-
return (
|
|
1738
|
-
}), d = v((
|
|
1739
|
-
var
|
|
1740
|
-
return (
|
|
1823
|
+
const n = v((x) => {
|
|
1824
|
+
var m;
|
|
1825
|
+
return (m = x[e]) == null ? void 0 : m.isDrawerOpen;
|
|
1826
|
+
}), d = v((x) => {
|
|
1827
|
+
var m;
|
|
1828
|
+
return (m = x[e]) == null ? void 0 : m.isLoading;
|
|
1741
1829
|
}), a = n && !d, u = {
|
|
1742
|
-
...
|
|
1830
|
+
...o,
|
|
1743
1831
|
isOpen: a,
|
|
1744
1832
|
children: null
|
|
1745
1833
|
}, h = R(() => {
|
|
1746
|
-
|
|
1747
|
-
}, [e]), _ = Array.isArray(r) ? O(e, t, r) : r ? /* @__PURE__ */
|
|
1748
|
-
return /* @__PURE__ */
|
|
1749
|
-
|
|
1834
|
+
je(e), W(e, !1);
|
|
1835
|
+
}, [e]), _ = Array.isArray(r) ? O(e, t, r) : r ? /* @__PURE__ */ c.jsx(ze, { type: "h2", children: r }) : void 0, f = O(e, t, l), g = i ? O(e, t, i) : void 0;
|
|
1836
|
+
return /* @__PURE__ */ c.jsx(
|
|
1837
|
+
bt,
|
|
1750
1838
|
{
|
|
1751
1839
|
...u,
|
|
1752
1840
|
className: ye.drawer,
|
|
1753
1841
|
isOpen: a,
|
|
1754
1842
|
onClose: h,
|
|
1755
1843
|
heightGap: 0,
|
|
1756
|
-
title: _ ? /* @__PURE__ */
|
|
1757
|
-
children: /* @__PURE__ */
|
|
1758
|
-
footer: g ? /* @__PURE__ */
|
|
1844
|
+
title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((x, m) => /* @__PURE__ */ c.jsx(T, { children: x }, `drawer-header-${m}`)) : _ }) : void 0,
|
|
1845
|
+
children: /* @__PURE__ */ c.jsx("section", { className: ye.drawerBody, children: f.map((x, m) => /* @__PURE__ */ c.jsx(T, { children: x }, `drawer-body-${m}`)) }),
|
|
1846
|
+
footer: g ? /* @__PURE__ */ c.jsx("div", { className: ye.drawerFooter, children: g.map((x, m) => /* @__PURE__ */ c.jsx(T, { children: x }, `drawer-footer-${m}`)) }) : void 0
|
|
1759
1847
|
}
|
|
1760
1848
|
);
|
|
1761
|
-
},
|
|
1849
|
+
}, Ds = (e) => {
|
|
1762
1850
|
const {
|
|
1763
1851
|
userFlow: t,
|
|
1764
1852
|
pageId: s,
|
|
1765
1853
|
component: r,
|
|
1766
1854
|
hash: l,
|
|
1767
1855
|
responseKey: i,
|
|
1768
|
-
content:
|
|
1856
|
+
content: o,
|
|
1769
1857
|
items: n,
|
|
1770
1858
|
disabled: d,
|
|
1771
1859
|
variant: a,
|
|
1772
1860
|
leftIcon: u,
|
|
1773
1861
|
rightIcon: h
|
|
1774
|
-
} = e, _ =
|
|
1862
|
+
} = e, _ = we(t, s), f = A(
|
|
1775
1863
|
() => n.map((g) => ({
|
|
1776
1864
|
label: g.content ?? g.label ?? "",
|
|
1777
1865
|
onClick: () => {
|
|
@@ -1786,24 +1874,24 @@ const zn = (e) => {
|
|
|
1786
1874
|
})),
|
|
1787
1875
|
[n, _]
|
|
1788
1876
|
);
|
|
1789
|
-
return /* @__PURE__ */
|
|
1790
|
-
|
|
1877
|
+
return /* @__PURE__ */ c.jsx(
|
|
1878
|
+
jt,
|
|
1791
1879
|
{
|
|
1792
1880
|
disabled: d,
|
|
1793
1881
|
variant: a,
|
|
1794
1882
|
items: f,
|
|
1795
|
-
children: /* @__PURE__ */
|
|
1796
|
-
u ? /* @__PURE__ */
|
|
1797
|
-
|
|
1883
|
+
children: /* @__PURE__ */ c.jsxs(T, { children: [
|
|
1884
|
+
u ? /* @__PURE__ */ c.jsx(
|
|
1885
|
+
Ee,
|
|
1798
1886
|
{
|
|
1799
1887
|
name: u,
|
|
1800
1888
|
size: "md",
|
|
1801
1889
|
style: { marginRight: 8, verticalAlign: "middle" }
|
|
1802
1890
|
}
|
|
1803
1891
|
) : null,
|
|
1804
|
-
|
|
1805
|
-
h ? /* @__PURE__ */
|
|
1806
|
-
|
|
1892
|
+
o,
|
|
1893
|
+
h ? /* @__PURE__ */ c.jsx(
|
|
1894
|
+
Ee,
|
|
1807
1895
|
{
|
|
1808
1896
|
name: h,
|
|
1809
1897
|
size: "md",
|
|
@@ -1813,17 +1901,17 @@ const zn = (e) => {
|
|
|
1813
1901
|
] })
|
|
1814
1902
|
}
|
|
1815
1903
|
);
|
|
1816
|
-
},
|
|
1817
|
-
header:
|
|
1818
|
-
header_content:
|
|
1819
|
-
},
|
|
1904
|
+
}, Rs = "_header_g1eri_1", Ls = "_header_content_g1eri_5", Ge = {
|
|
1905
|
+
header: Rs,
|
|
1906
|
+
header_content: Ls
|
|
1907
|
+
}, Is = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: F(Ge.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ge.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), Bs = (e) => {
|
|
1820
1908
|
const {
|
|
1821
1909
|
userFlow: t,
|
|
1822
1910
|
pageId: s,
|
|
1823
1911
|
responseKey: r,
|
|
1824
1912
|
actionType: l,
|
|
1825
1913
|
content: i,
|
|
1826
|
-
redirectUrl:
|
|
1914
|
+
redirectUrl: o,
|
|
1827
1915
|
target: n,
|
|
1828
1916
|
dependencies: d,
|
|
1829
1917
|
component: a,
|
|
@@ -1833,71 +1921,71 @@ const zn = (e) => {
|
|
|
1833
1921
|
t,
|
|
1834
1922
|
d
|
|
1835
1923
|
), g = l && h ? (() => {
|
|
1836
|
-
const { href: y, target:
|
|
1837
|
-
return
|
|
1838
|
-
})() : h,
|
|
1924
|
+
const { href: y, target: p, download: b, ...C } = h;
|
|
1925
|
+
return C;
|
|
1926
|
+
})() : h, x = R(async () => {
|
|
1839
1927
|
var y;
|
|
1840
1928
|
if (l)
|
|
1841
1929
|
try {
|
|
1842
|
-
const
|
|
1930
|
+
const p = {
|
|
1843
1931
|
...(y = v.getState()[t]) == null ? void 0 : y.entries,
|
|
1844
1932
|
[r]: { status: 200 }
|
|
1845
1933
|
};
|
|
1846
|
-
switch (q(t,
|
|
1934
|
+
switch (q(t, p), l) {
|
|
1847
1935
|
case "GO_TO_NEXT_UI": {
|
|
1848
|
-
const
|
|
1936
|
+
const b = await _(
|
|
1849
1937
|
t,
|
|
1850
1938
|
s,
|
|
1851
|
-
|
|
1939
|
+
p,
|
|
1852
1940
|
r
|
|
1853
1941
|
);
|
|
1854
|
-
|
|
1942
|
+
b != null && b.data && $(t, b == null ? void 0 : b.data);
|
|
1855
1943
|
break;
|
|
1856
1944
|
}
|
|
1857
1945
|
case "REDIRECT":
|
|
1858
|
-
if (!
|
|
1946
|
+
if (!o) {
|
|
1859
1947
|
console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
1860
1948
|
break;
|
|
1861
1949
|
}
|
|
1862
|
-
n === "_blank" ? window.open(
|
|
1950
|
+
n === "_blank" ? window.open(o, "_blank", "noopener,noreferrer") : window.location.assign(o);
|
|
1863
1951
|
break;
|
|
1864
1952
|
default:
|
|
1865
1953
|
console.warn(`Unhandled actionType for link: ${l}`);
|
|
1866
1954
|
break;
|
|
1867
1955
|
}
|
|
1868
|
-
} catch (
|
|
1869
|
-
alert(JSON.stringify(
|
|
1956
|
+
} catch (p) {
|
|
1957
|
+
alert(JSON.stringify(p));
|
|
1870
1958
|
}
|
|
1871
|
-
}, [l, _, s,
|
|
1872
|
-
return /* @__PURE__ */
|
|
1873
|
-
|
|
1959
|
+
}, [l, _, s, o, r, n, t]), m = g.disabled ?? f;
|
|
1960
|
+
return /* @__PURE__ */ c.jsx(
|
|
1961
|
+
wt,
|
|
1874
1962
|
{
|
|
1875
1963
|
...g,
|
|
1876
|
-
disabled:
|
|
1877
|
-
onClick: l ?
|
|
1964
|
+
disabled: m,
|
|
1965
|
+
onClick: l ? x : void 0,
|
|
1878
1966
|
children: i
|
|
1879
1967
|
}
|
|
1880
1968
|
);
|
|
1881
|
-
},
|
|
1969
|
+
}, Ks = (e) => {
|
|
1882
1970
|
const {
|
|
1883
1971
|
userFlow: t,
|
|
1884
1972
|
pageId: s,
|
|
1885
1973
|
component: r,
|
|
1886
1974
|
hash: l,
|
|
1887
1975
|
responseKey: i,
|
|
1888
|
-
items:
|
|
1976
|
+
items: o,
|
|
1889
1977
|
closeOnClick: n,
|
|
1890
1978
|
disabled: d,
|
|
1891
1979
|
listOrigin: a,
|
|
1892
1980
|
size: u,
|
|
1893
1981
|
variant: h
|
|
1894
|
-
} = e, _ =
|
|
1895
|
-
() =>
|
|
1982
|
+
} = e, _ = we(t, s), f = A(
|
|
1983
|
+
() => o.map((g) => ({
|
|
1896
1984
|
icon: g.leftIcon,
|
|
1897
1985
|
label: g.content ?? g.label ?? "",
|
|
1898
|
-
onClick: (
|
|
1899
|
-
var
|
|
1900
|
-
(
|
|
1986
|
+
onClick: (x) => {
|
|
1987
|
+
var m;
|
|
1988
|
+
(m = x == null ? void 0 : x.preventDefault) == null || m.call(x), _({
|
|
1901
1989
|
responseKey: g.responseKey,
|
|
1902
1990
|
actionType: g.actionType,
|
|
1903
1991
|
dataSource: g.dataSource,
|
|
@@ -1906,10 +1994,10 @@ const zn = (e) => {
|
|
|
1906
1994
|
});
|
|
1907
1995
|
}
|
|
1908
1996
|
})),
|
|
1909
|
-
[
|
|
1997
|
+
[o, _]
|
|
1910
1998
|
);
|
|
1911
|
-
return /* @__PURE__ */
|
|
1912
|
-
|
|
1999
|
+
return /* @__PURE__ */ c.jsx(
|
|
2000
|
+
Ct,
|
|
1913
2001
|
{
|
|
1914
2002
|
items: f,
|
|
1915
2003
|
closeOnClick: n,
|
|
@@ -1919,60 +2007,60 @@ const zn = (e) => {
|
|
|
1919
2007
|
variant: h
|
|
1920
2008
|
}
|
|
1921
2009
|
);
|
|
1922
|
-
},
|
|
1923
|
-
modalContent:
|
|
1924
|
-
},
|
|
2010
|
+
}, Gs = "_modalContent_p06ci_1", Ms = {
|
|
2011
|
+
modalContent: Gs
|
|
2012
|
+
}, Us = ({
|
|
1925
2013
|
userFlow: e,
|
|
1926
2014
|
pageId: t,
|
|
1927
2015
|
responseKey: s,
|
|
1928
2016
|
header: r,
|
|
1929
2017
|
body: l,
|
|
1930
2018
|
footer: i,
|
|
1931
|
-
headerStatusColor:
|
|
2019
|
+
headerStatusColor: o,
|
|
1932
2020
|
...n
|
|
1933
2021
|
}) => {
|
|
1934
2022
|
const d = v((y) => {
|
|
1935
|
-
var
|
|
1936
|
-
return (
|
|
2023
|
+
var p;
|
|
2024
|
+
return (p = y[e]) == null ? void 0 : p.isModalOpen;
|
|
1937
2025
|
}), a = v((y) => {
|
|
1938
|
-
var
|
|
1939
|
-
return (
|
|
2026
|
+
var p;
|
|
2027
|
+
return (p = y[e]) == null ? void 0 : p.isLoading;
|
|
1940
2028
|
}), u = d && !a, h = {
|
|
1941
2029
|
...n
|
|
1942
|
-
}, _ = (h == null ? void 0 : h.headerStatusColor) ??
|
|
1943
|
-
|
|
1944
|
-
}, [e, s]), g = Array.isArray(r) ? O(e, t, r) : r,
|
|
1945
|
-
return /* @__PURE__ */
|
|
1946
|
-
|
|
2030
|
+
}, _ = (h == null ? void 0 : h.headerStatusColor) ?? o, f = R(() => {
|
|
2031
|
+
je(e), ce(e, !1);
|
|
2032
|
+
}, [e, s]), g = Array.isArray(r) ? O(e, t, r) : r, x = O(e, t, l), m = O(e, t, i);
|
|
2033
|
+
return /* @__PURE__ */ c.jsx(
|
|
2034
|
+
Nt,
|
|
1947
2035
|
{
|
|
1948
2036
|
...h,
|
|
1949
2037
|
headerStatusColor: _,
|
|
1950
|
-
header: typeof g == "string" ? g : /* @__PURE__ */
|
|
1951
|
-
children: /* @__PURE__ */
|
|
1952
|
-
actions: /* @__PURE__ */
|
|
2038
|
+
header: typeof g == "string" ? g : /* @__PURE__ */ c.jsx(c.Fragment, { children: g.map((y, p) => /* @__PURE__ */ c.jsx(T, { children: y }, `modal-header-${p}`)) }),
|
|
2039
|
+
children: /* @__PURE__ */ c.jsx("section", { className: Ms.modalContent, children: x.map((y, p) => /* @__PURE__ */ c.jsx(T, { children: y }, `modal-body-${p}`)) }),
|
|
2040
|
+
actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: m.map((y, p) => /* @__PURE__ */ c.jsx(T, { children: y }, `modal-footer-${p}`)) }),
|
|
1953
2041
|
open: u,
|
|
1954
2042
|
onClose: f
|
|
1955
2043
|
}
|
|
1956
2044
|
);
|
|
1957
|
-
},
|
|
1958
|
-
var i,
|
|
1959
|
-
const s =
|
|
2045
|
+
}, Vs = ({ userFlow: e, pageId: t }) => {
|
|
2046
|
+
var i, o;
|
|
2047
|
+
const s = rn(e);
|
|
1960
2048
|
if (!s)
|
|
1961
2049
|
return null;
|
|
1962
2050
|
const r = [
|
|
1963
2051
|
...(s == null ? void 0 : s.components) || [],
|
|
1964
2052
|
...((i = s == null ? void 0 : s.header) == null ? void 0 : i.components) || [],
|
|
1965
|
-
...((
|
|
2053
|
+
...((o = s == null ? void 0 : s.body) == null ? void 0 : o.components) || []
|
|
1966
2054
|
], l = O(
|
|
1967
2055
|
e,
|
|
1968
2056
|
t,
|
|
1969
2057
|
r
|
|
1970
2058
|
);
|
|
1971
|
-
return /* @__PURE__ */
|
|
2059
|
+
return /* @__PURE__ */ c.jsx(c.Fragment, { children: l == null ? void 0 : l.map((n, d) => {
|
|
1972
2060
|
const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
1973
|
-
return /* @__PURE__ */
|
|
2061
|
+
return /* @__PURE__ */ c.jsx(T, { children: n }, a);
|
|
1974
2062
|
}) });
|
|
1975
|
-
},
|
|
2063
|
+
}, zs = {
|
|
1976
2064
|
success: {
|
|
1977
2065
|
color: "success-opacity",
|
|
1978
2066
|
textColor: "success-60",
|
|
@@ -1998,46 +2086,46 @@ const zn = (e) => {
|
|
|
1998
2086
|
textColor: "neutral-70",
|
|
1999
2087
|
iconColor: "neutral-70"
|
|
2000
2088
|
}
|
|
2001
|
-
},
|
|
2002
|
-
const { content: t, variant: s = "neutral", ...r } = e, l =
|
|
2089
|
+
}, Hs = (e) => {
|
|
2090
|
+
const { content: t, variant: s = "neutral", ...r } = e, l = zs[s], i = {
|
|
2003
2091
|
...r,
|
|
2004
2092
|
children: t,
|
|
2005
2093
|
color: (r == null ? void 0 : r.color) ?? l.color,
|
|
2006
2094
|
textColor: (r == null ? void 0 : r.textColor) ?? l.textColor,
|
|
2007
2095
|
iconColor: (r == null ? void 0 : r.iconColor) ?? l.iconColor
|
|
2008
2096
|
};
|
|
2009
|
-
return /* @__PURE__ */
|
|
2010
|
-
},
|
|
2097
|
+
return /* @__PURE__ */ c.jsx(me, { ...i });
|
|
2098
|
+
}, Xs = (e) => {
|
|
2011
2099
|
const { content: t } = e;
|
|
2012
|
-
return /* @__PURE__ */
|
|
2013
|
-
},
|
|
2100
|
+
return /* @__PURE__ */ c.jsx(Xe, { children: t });
|
|
2101
|
+
}, Js = (e) => {
|
|
2014
2102
|
const {
|
|
2015
2103
|
userFlow: t,
|
|
2016
2104
|
pageId: s,
|
|
2017
2105
|
responseKey: r,
|
|
2018
2106
|
actionType: l,
|
|
2019
2107
|
dataSource: i,
|
|
2020
|
-
dependencies:
|
|
2108
|
+
dependencies: o,
|
|
2021
2109
|
onClick: n,
|
|
2022
2110
|
...d
|
|
2023
2111
|
} = e, { getNextUI: a, fetchAndGetNextUI: u } = K(), { disabled: h } = I(
|
|
2024
2112
|
t,
|
|
2025
|
-
|
|
2113
|
+
o
|
|
2026
2114
|
), _ = {
|
|
2027
2115
|
...d
|
|
2028
2116
|
}, f = (_ == null ? void 0 : _.disabled) ?? h, g = R(async () => {
|
|
2029
|
-
var
|
|
2117
|
+
var x;
|
|
2030
2118
|
try {
|
|
2031
|
-
const
|
|
2032
|
-
...(
|
|
2119
|
+
const m = {
|
|
2120
|
+
...(x = v.getState()[t]) == null ? void 0 : x.entries,
|
|
2033
2121
|
[r]: { status: 200 }
|
|
2034
2122
|
};
|
|
2035
|
-
switch (q(t,
|
|
2123
|
+
switch (q(t, m), l) {
|
|
2036
2124
|
case "GO_TO_NEXT_UI": {
|
|
2037
2125
|
const y = await a(
|
|
2038
2126
|
t,
|
|
2039
2127
|
s,
|
|
2040
|
-
|
|
2128
|
+
m,
|
|
2041
2129
|
r
|
|
2042
2130
|
);
|
|
2043
2131
|
y != null && y.data && $(t, y == null ? void 0 : y.data);
|
|
@@ -2047,7 +2135,7 @@ const zn = (e) => {
|
|
|
2047
2135
|
const y = await u(
|
|
2048
2136
|
t,
|
|
2049
2137
|
s,
|
|
2050
|
-
|
|
2138
|
+
m,
|
|
2051
2139
|
r,
|
|
2052
2140
|
i
|
|
2053
2141
|
);
|
|
@@ -2067,20 +2155,20 @@ const zn = (e) => {
|
|
|
2067
2155
|
console.warn(`Unhandled actionType: ${l}`);
|
|
2068
2156
|
break;
|
|
2069
2157
|
}
|
|
2070
|
-
} catch (
|
|
2071
|
-
alert(JSON.stringify(
|
|
2158
|
+
} catch (m) {
|
|
2159
|
+
alert(JSON.stringify(m));
|
|
2072
2160
|
}
|
|
2073
2161
|
}, [l, i, s, r, t]);
|
|
2074
|
-
return /* @__PURE__ */
|
|
2075
|
-
|
|
2162
|
+
return /* @__PURE__ */ c.jsx(
|
|
2163
|
+
vt,
|
|
2076
2164
|
{
|
|
2077
2165
|
..._,
|
|
2078
2166
|
disabled: f,
|
|
2079
2167
|
onClick: () => !f && (n ?? g)()
|
|
2080
2168
|
}
|
|
2081
2169
|
);
|
|
2082
|
-
},
|
|
2083
|
-
row:
|
|
2170
|
+
}, Ws = "_row_1bqj4_1", Qs = "_row_column_1bqj4_65", X = {
|
|
2171
|
+
row: Ws,
|
|
2084
2172
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
2085
2173
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
2086
2174
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -2101,7 +2189,7 @@ const zn = (e) => {
|
|
|
2101
2189
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
2102
2190
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
2103
2191
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
2104
|
-
row_column:
|
|
2192
|
+
row_column: Qs,
|
|
2105
2193
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
2106
2194
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
2107
2195
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -2122,14 +2210,14 @@ const zn = (e) => {
|
|
|
2122
2210
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
2123
2211
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
2124
2212
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
2125
|
-
},
|
|
2213
|
+
}, Ys = (e) => {
|
|
2126
2214
|
const {
|
|
2127
2215
|
userFlow: t,
|
|
2128
2216
|
pageId: s,
|
|
2129
2217
|
columnWidth: r,
|
|
2130
2218
|
columns: l,
|
|
2131
2219
|
gap: i = "md",
|
|
2132
|
-
justifyContent:
|
|
2220
|
+
justifyContent: o = "start",
|
|
2133
2221
|
alignItems: n = "stretch"
|
|
2134
2222
|
} = e, d = Array.isArray(l) ? l.map((a, u) => {
|
|
2135
2223
|
const h = `col_${u}`, _ = `col_${u}`;
|
|
@@ -2152,18 +2240,18 @@ const zn = (e) => {
|
|
|
2152
2240
|
responseKey: (f == null ? void 0 : f.responseKey) ?? _
|
|
2153
2241
|
};
|
|
2154
2242
|
}) : [];
|
|
2155
|
-
return d.length === 0 ? null : /* @__PURE__ */
|
|
2243
|
+
return d.length === 0 ? null : /* @__PURE__ */ c.jsx(
|
|
2156
2244
|
"div",
|
|
2157
2245
|
{
|
|
2158
2246
|
className: F(
|
|
2159
2247
|
X.row,
|
|
2160
2248
|
X[`row__gap-${i}`],
|
|
2161
|
-
X[`row__justify-${
|
|
2249
|
+
X[`row__justify-${o}`],
|
|
2162
2250
|
X[`row__align-${n}`]
|
|
2163
2251
|
),
|
|
2164
2252
|
children: d == null ? void 0 : d.map((a, u) => {
|
|
2165
2253
|
const h = (r == null ? void 0 : r[u]) || `${100 / d.length}%`, _ = O(t, s, a.items);
|
|
2166
|
-
return !_ || _.length === 0 ? null : /* @__PURE__ */
|
|
2254
|
+
return !_ || _.length === 0 ? null : /* @__PURE__ */ c.jsx(
|
|
2167
2255
|
"div",
|
|
2168
2256
|
{
|
|
2169
2257
|
className: F(
|
|
@@ -2181,17 +2269,17 @@ const zn = (e) => {
|
|
|
2181
2269
|
}
|
|
2182
2270
|
);
|
|
2183
2271
|
};
|
|
2184
|
-
function
|
|
2272
|
+
function et({
|
|
2185
2273
|
userFlow: e,
|
|
2186
2274
|
pageId: t,
|
|
2187
2275
|
responseKey: s,
|
|
2188
2276
|
actionType: r,
|
|
2189
2277
|
getNextUI: l,
|
|
2190
2278
|
isMulti: i = !1,
|
|
2191
|
-
debounceMs:
|
|
2279
|
+
debounceMs: o
|
|
2192
2280
|
}) {
|
|
2193
|
-
const n =
|
|
2194
|
-
|
|
2281
|
+
const n = ge(null);
|
|
2282
|
+
V(() => () => {
|
|
2195
2283
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
2196
2284
|
}, []);
|
|
2197
2285
|
const d = R(
|
|
@@ -2200,16 +2288,16 @@ function Ye({
|
|
|
2200
2288
|
const h = {
|
|
2201
2289
|
...(f = v.getState()[e]) == null ? void 0 : f.entries
|
|
2202
2290
|
};
|
|
2203
|
-
if (u ? (h[s] = u, q(e, h)) : (delete h[s],
|
|
2291
|
+
if (u ? (h[s] = u, q(e, h)) : (delete h[s], on(e, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2204
2292
|
try {
|
|
2205
|
-
const
|
|
2293
|
+
const x = await l(
|
|
2206
2294
|
e,
|
|
2207
2295
|
t,
|
|
2208
2296
|
h,
|
|
2209
2297
|
s,
|
|
2210
2298
|
r === "GO_TO_NEXT_UI"
|
|
2211
2299
|
);
|
|
2212
|
-
|
|
2300
|
+
x != null && x.data && $(e, x.data);
|
|
2213
2301
|
} catch (g) {
|
|
2214
2302
|
console.error("[useSelectChange] Failed to fetch next UI", g);
|
|
2215
2303
|
}
|
|
@@ -2222,32 +2310,32 @@ function Ye({
|
|
|
2222
2310
|
d(u);
|
|
2223
2311
|
return;
|
|
2224
2312
|
}
|
|
2225
|
-
if (
|
|
2313
|
+
if (o == null) {
|
|
2226
2314
|
d(u);
|
|
2227
2315
|
return;
|
|
2228
2316
|
}
|
|
2229
2317
|
n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
|
|
2230
2318
|
d(u), n.current = null;
|
|
2231
|
-
},
|
|
2319
|
+
}, o);
|
|
2232
2320
|
},
|
|
2233
|
-
[i,
|
|
2321
|
+
[i, o, d]
|
|
2234
2322
|
);
|
|
2235
2323
|
}
|
|
2236
|
-
const
|
|
2324
|
+
const Zs = /\{([^}]+)\}/g, Fs = (e, t) => {
|
|
2237
2325
|
var s;
|
|
2238
|
-
return t.includes("{") ? t.replace(
|
|
2239
|
-
var
|
|
2240
|
-
const i = (
|
|
2326
|
+
return t.includes("{") ? t.replace(Zs, (r, l) => {
|
|
2327
|
+
var o;
|
|
2328
|
+
const i = (o = B.query(e, l.trim())) == null ? void 0 : o[0];
|
|
2241
2329
|
return i != null ? String(i) : "";
|
|
2242
2330
|
}) : (s = B.query(e, t)) == null ? void 0 : s[0];
|
|
2243
|
-
},
|
|
2331
|
+
}, Ps = (e, t, s, r) => {
|
|
2244
2332
|
const l = B.query(e, t);
|
|
2245
2333
|
return (l == null ? void 0 : l.map((i) => {
|
|
2246
2334
|
var d;
|
|
2247
|
-
const
|
|
2248
|
-
return { label:
|
|
2335
|
+
const o = Fs(i, s), n = r ? (d = B.query(i, r)) == null ? void 0 : d[0] : i;
|
|
2336
|
+
return { label: o, value: n };
|
|
2249
2337
|
})) ?? [];
|
|
2250
|
-
},
|
|
2338
|
+
}, ea = (e, t, s, r = 10) => {
|
|
2251
2339
|
var n, d;
|
|
2252
2340
|
let l, i;
|
|
2253
2341
|
if (s) {
|
|
@@ -2257,22 +2345,22 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2257
2345
|
const a = e == null ? void 0 : e.meta;
|
|
2258
2346
|
l = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, i = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
|
|
2259
2347
|
}
|
|
2260
|
-
const
|
|
2348
|
+
const o = i > 0 ? Math.ceil(i / l) > t : !1;
|
|
2261
2349
|
return {
|
|
2262
2350
|
pageSize: l,
|
|
2263
2351
|
total: i,
|
|
2264
|
-
hasMore:
|
|
2352
|
+
hasMore: o
|
|
2265
2353
|
};
|
|
2266
|
-
},
|
|
2267
|
-
selectNotFront:
|
|
2268
|
-
},
|
|
2354
|
+
}, ta = "_selectNotFront_ch3v5_1", tt = {
|
|
2355
|
+
selectNotFront: ta
|
|
2356
|
+
}, na = ({
|
|
2269
2357
|
userFlow: e,
|
|
2270
2358
|
pageId: t,
|
|
2271
2359
|
responseKey: s,
|
|
2272
2360
|
required: r,
|
|
2273
2361
|
dataSource: l,
|
|
2274
2362
|
actionType: i,
|
|
2275
|
-
dependencies:
|
|
2363
|
+
dependencies: o,
|
|
2276
2364
|
debounceMs: n,
|
|
2277
2365
|
...d
|
|
2278
2366
|
}) => {
|
|
@@ -2280,15 +2368,15 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2280
2368
|
...d
|
|
2281
2369
|
}, { getNextUI: u, fetchDataSource: h } = K(), [_, f] = L((a == null ? void 0 : a.value) ?? ""), { disabled: g } = I(
|
|
2282
2370
|
e,
|
|
2283
|
-
|
|
2284
|
-
),
|
|
2285
|
-
const
|
|
2286
|
-
return Array.isArray(
|
|
2287
|
-
if (!
|
|
2288
|
-
const
|
|
2289
|
-
|
|
2290
|
-
}),
|
|
2291
|
-
}, [_]),
|
|
2371
|
+
o
|
|
2372
|
+
), x = (a == null ? void 0 : a.disabled) ?? g, m = A(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), y = A(() => {
|
|
2373
|
+
const j = a != null && a.isMulti ? _ : [_], N = {};
|
|
2374
|
+
return Array.isArray(j) && j.forEach((w) => {
|
|
2375
|
+
if (!w) return;
|
|
2376
|
+
const k = JSON.stringify(w.value), S = JSON.stringify(w.label);
|
|
2377
|
+
N[k] = w, S in N || (N[S] = w);
|
|
2378
|
+
}), N;
|
|
2379
|
+
}, [_]), p = et({
|
|
2292
2380
|
userFlow: e,
|
|
2293
2381
|
pageId: t,
|
|
2294
2382
|
responseKey: s,
|
|
@@ -2296,67 +2384,67 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2296
2384
|
getNextUI: u,
|
|
2297
2385
|
isMulti: a == null ? void 0 : a.isMulti,
|
|
2298
2386
|
debounceMs: n
|
|
2299
|
-
}),
|
|
2300
|
-
f(
|
|
2301
|
-
},
|
|
2387
|
+
}), b = (j) => {
|
|
2388
|
+
f(j), p(j);
|
|
2389
|
+
}, C = async (j, N, { page: w }) => {
|
|
2302
2390
|
const {
|
|
2303
|
-
jsonPathLabel:
|
|
2391
|
+
jsonPathLabel: k,
|
|
2304
2392
|
jsonPathOptions: S,
|
|
2305
|
-
jsonPathValue:
|
|
2393
|
+
jsonPathValue: E,
|
|
2306
2394
|
jsonPathPagination: G
|
|
2307
|
-
} = l, M =
|
|
2395
|
+
} = l, M = Ce(
|
|
2308
2396
|
l,
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
),
|
|
2397
|
+
w,
|
|
2398
|
+
j
|
|
2399
|
+
), H = await h(
|
|
2312
2400
|
M,
|
|
2313
2401
|
e,
|
|
2314
2402
|
!1
|
|
2315
|
-
), D =
|
|
2403
|
+
), D = H == null ? void 0 : H.data, ae = D ? Ps(
|
|
2316
2404
|
D,
|
|
2317
2405
|
S,
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
) : [], { hasMore:
|
|
2406
|
+
k,
|
|
2407
|
+
E
|
|
2408
|
+
) : [], { hasMore: st } = ea(
|
|
2321
2409
|
D,
|
|
2322
|
-
|
|
2410
|
+
w,
|
|
2323
2411
|
G
|
|
2324
2412
|
);
|
|
2325
2413
|
return {
|
|
2326
2414
|
options: ae,
|
|
2327
|
-
hasMore:
|
|
2415
|
+
hasMore: st,
|
|
2328
2416
|
additional: {
|
|
2329
|
-
page:
|
|
2417
|
+
page: w + 1
|
|
2330
2418
|
}
|
|
2331
2419
|
};
|
|
2332
2420
|
};
|
|
2333
|
-
return /* @__PURE__ */
|
|
2334
|
-
|
|
2421
|
+
return /* @__PURE__ */ c.jsx(
|
|
2422
|
+
St,
|
|
2335
2423
|
{
|
|
2336
2424
|
...a,
|
|
2337
|
-
className:
|
|
2338
|
-
label:
|
|
2425
|
+
className: tt.selectNotFront,
|
|
2426
|
+
label: m,
|
|
2339
2427
|
value: _,
|
|
2340
|
-
disabled:
|
|
2341
|
-
noOptionsMessage: () => /* @__PURE__ */
|
|
2342
|
-
onChange: (
|
|
2343
|
-
loadOptions:
|
|
2428
|
+
disabled: x,
|
|
2429
|
+
noOptionsMessage: () => /* @__PURE__ */ c.jsx(c.Fragment, { children: "Sin opciones" }),
|
|
2430
|
+
onChange: (j) => !x && b(j),
|
|
2431
|
+
loadOptions: C,
|
|
2344
2432
|
additional: { page: 1 },
|
|
2345
|
-
isOptionDisabled: (
|
|
2346
|
-
const
|
|
2347
|
-
return !!(y != null && y[
|
|
2433
|
+
isOptionDisabled: (j) => {
|
|
2434
|
+
const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
|
|
2435
|
+
return !!(y != null && y[N]) || !!(y != null && y[w]);
|
|
2348
2436
|
},
|
|
2349
2437
|
debounceTimeout: 350
|
|
2350
2438
|
}
|
|
2351
2439
|
);
|
|
2352
|
-
},
|
|
2440
|
+
}, sa = ({
|
|
2353
2441
|
userFlow: e,
|
|
2354
2442
|
pageId: t,
|
|
2355
2443
|
responseKey: s,
|
|
2356
2444
|
dataSource: r,
|
|
2357
2445
|
required: l,
|
|
2358
2446
|
actionType: i,
|
|
2359
|
-
dependencies:
|
|
2447
|
+
dependencies: o,
|
|
2360
2448
|
debounceMs: n,
|
|
2361
2449
|
...d
|
|
2362
2450
|
}) => {
|
|
@@ -2364,8 +2452,8 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2364
2452
|
...d
|
|
2365
2453
|
}, { getNextUI: u } = K(), [h, _] = L(a.value || ""), { disabled: f } = I(
|
|
2366
2454
|
e,
|
|
2367
|
-
|
|
2368
|
-
), g = (a == null ? void 0 : a.disabled) ?? f,
|
|
2455
|
+
o
|
|
2456
|
+
), g = (a == null ? void 0 : a.disabled) ?? f, x = A(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), m = et({
|
|
2369
2457
|
userFlow: e,
|
|
2370
2458
|
pageId: t,
|
|
2371
2459
|
responseKey: s,
|
|
@@ -2373,111 +2461,111 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2373
2461
|
getNextUI: u,
|
|
2374
2462
|
isMulti: a == null ? void 0 : a.isMulti,
|
|
2375
2463
|
debounceMs: n
|
|
2376
|
-
}), y = (
|
|
2377
|
-
_(
|
|
2464
|
+
}), y = (p) => {
|
|
2465
|
+
_(p), m(p);
|
|
2378
2466
|
};
|
|
2379
|
-
return /* @__PURE__ */
|
|
2380
|
-
|
|
2467
|
+
return /* @__PURE__ */ c.jsx(
|
|
2468
|
+
kt,
|
|
2381
2469
|
{
|
|
2382
2470
|
...a,
|
|
2383
|
-
className:
|
|
2384
|
-
label:
|
|
2471
|
+
className: tt.selectNotFront,
|
|
2472
|
+
label: x,
|
|
2385
2473
|
value: h,
|
|
2386
2474
|
disabled: g,
|
|
2387
|
-
onChange: (
|
|
2475
|
+
onChange: (p) => !g && y(p)
|
|
2388
2476
|
}
|
|
2389
2477
|
);
|
|
2390
|
-
},
|
|
2478
|
+
}, aa = (e) => {
|
|
2391
2479
|
const { dataSource: t } = e;
|
|
2392
|
-
return t ? /* @__PURE__ */
|
|
2393
|
-
},
|
|
2394
|
-
spacing:
|
|
2395
|
-
spacing__xxs:
|
|
2396
|
-
spacing__xs:
|
|
2397
|
-
spacing__sm:
|
|
2398
|
-
spacing__md:
|
|
2399
|
-
spacing__lg:
|
|
2400
|
-
spacing__xl:
|
|
2401
|
-
spacing__xxl:
|
|
2402
|
-
spacing__xxxl:
|
|
2403
|
-
},
|
|
2404
|
-
const { size: t } = e, s = F(
|
|
2405
|
-
return /* @__PURE__ */
|
|
2406
|
-
},
|
|
2480
|
+
return t ? /* @__PURE__ */ c.jsx(na, { ...e }) : /* @__PURE__ */ c.jsx(sa, { ...e });
|
|
2481
|
+
}, ra = "_spacing_19hqa_1", oa = "_spacing__xxs_19hqa_1", ca = "_spacing__xs_19hqa_4", ia = "_spacing__sm_19hqa_7", la = "_spacing__md_19hqa_10", da = "_spacing__lg_19hqa_13", _a = "_spacing__xl_19hqa_16", ua = "_spacing__xxl_19hqa_19", ha = "_spacing__xxxl_19hqa_22", Me = {
|
|
2482
|
+
spacing: ra,
|
|
2483
|
+
spacing__xxs: oa,
|
|
2484
|
+
spacing__xs: ca,
|
|
2485
|
+
spacing__sm: ia,
|
|
2486
|
+
spacing__md: la,
|
|
2487
|
+
spacing__lg: da,
|
|
2488
|
+
spacing__xl: _a,
|
|
2489
|
+
spacing__xxl: ua,
|
|
2490
|
+
spacing__xxxl: ha
|
|
2491
|
+
}, fa = (e) => {
|
|
2492
|
+
const { size: t } = e, s = F(Me.spacing, Me[`spacing__${t}`]);
|
|
2493
|
+
return /* @__PURE__ */ c.jsx("div", { className: s });
|
|
2494
|
+
}, ya = (e) => {
|
|
2407
2495
|
const {
|
|
2408
2496
|
userFlow: t,
|
|
2409
2497
|
pageId: s,
|
|
2410
2498
|
responseKey: r,
|
|
2411
2499
|
actionType: l,
|
|
2412
2500
|
label: i,
|
|
2413
|
-
value:
|
|
2501
|
+
value: o,
|
|
2414
2502
|
required: n,
|
|
2415
2503
|
dependencies: d,
|
|
2416
2504
|
...a
|
|
2417
2505
|
} = e, u = {
|
|
2418
2506
|
...a
|
|
2419
|
-
}, { getNextUI: h } = K(), [_, f] = L(
|
|
2507
|
+
}, { getNextUI: h } = K(), [_, f] = L(o || !1), { disabled: g } = I(
|
|
2420
2508
|
t,
|
|
2421
2509
|
d
|
|
2422
|
-
),
|
|
2423
|
-
var
|
|
2510
|
+
), x = (u == null ? void 0 : u.disabled) ?? g, m = A(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
|
|
2511
|
+
var p;
|
|
2424
2512
|
try {
|
|
2425
|
-
const
|
|
2426
|
-
f(
|
|
2427
|
-
const
|
|
2428
|
-
...(
|
|
2429
|
-
[r]:
|
|
2513
|
+
const b = !_;
|
|
2514
|
+
f(b);
|
|
2515
|
+
const C = {
|
|
2516
|
+
...(p = v.getState()[t]) == null ? void 0 : p.entries,
|
|
2517
|
+
[r]: b
|
|
2430
2518
|
};
|
|
2431
|
-
switch (q(t,
|
|
2519
|
+
switch (q(t, C), l) {
|
|
2432
2520
|
case "GO_TO_NEXT_UI":
|
|
2433
2521
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2434
|
-
const
|
|
2522
|
+
const N = await h(
|
|
2435
2523
|
t,
|
|
2436
2524
|
s,
|
|
2437
|
-
|
|
2525
|
+
C,
|
|
2438
2526
|
r,
|
|
2439
2527
|
l === "GO_TO_NEXT_UI"
|
|
2440
2528
|
);
|
|
2441
|
-
|
|
2529
|
+
N != null && N.data && $(t, N == null ? void 0 : N.data);
|
|
2442
2530
|
break;
|
|
2443
2531
|
}
|
|
2444
2532
|
default:
|
|
2445
2533
|
break;
|
|
2446
2534
|
}
|
|
2447
|
-
} catch (
|
|
2448
|
-
console.error("Error in switch action:",
|
|
2535
|
+
} catch (b) {
|
|
2536
|
+
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
2449
2537
|
}
|
|
2450
2538
|
}, [t, s, r, l, _]);
|
|
2451
|
-
return /* @__PURE__ */
|
|
2452
|
-
|
|
2539
|
+
return /* @__PURE__ */ c.jsx(
|
|
2540
|
+
Et,
|
|
2453
2541
|
{
|
|
2454
2542
|
...u,
|
|
2455
|
-
label:
|
|
2543
|
+
label: m,
|
|
2456
2544
|
checked: _,
|
|
2457
|
-
disabled:
|
|
2458
|
-
onChange: () => !
|
|
2545
|
+
disabled: x,
|
|
2546
|
+
onChange: () => !x && y()
|
|
2459
2547
|
}
|
|
2460
2548
|
);
|
|
2461
|
-
},
|
|
2462
|
-
tableSkeleton:
|
|
2463
|
-
tableArrayPills:
|
|
2464
|
-
},
|
|
2549
|
+
}, ma = "_tableSkeleton_3nr9n_1", xa = "_tableArrayPills_3nr9n_7", nt = {
|
|
2550
|
+
tableSkeleton: ma,
|
|
2551
|
+
tableArrayPills: xa
|
|
2552
|
+
}, ga = ({ values: e }) => {
|
|
2465
2553
|
const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
|
|
2466
|
-
return /* @__PURE__ */
|
|
2467
|
-
s.map((l, i) => /* @__PURE__ */
|
|
2468
|
-
r > 0 && /* @__PURE__ */
|
|
2554
|
+
return /* @__PURE__ */ c.jsxs("div", { className: nt.tableArrayPills, children: [
|
|
2555
|
+
s.map((l, i) => /* @__PURE__ */ c.jsx(me, { children: String(l) }, i)),
|
|
2556
|
+
r > 0 && /* @__PURE__ */ c.jsxs(me, { outlined: !0, children: [
|
|
2469
2557
|
"+",
|
|
2470
2558
|
r
|
|
2471
2559
|
] })
|
|
2472
2560
|
] });
|
|
2473
|
-
},
|
|
2561
|
+
}, pa = ({
|
|
2474
2562
|
userFlow: e,
|
|
2475
2563
|
pageId: t,
|
|
2476
2564
|
tableResponseKey: s,
|
|
2477
2565
|
component: r,
|
|
2478
2566
|
rowData: l
|
|
2479
2567
|
}) => {
|
|
2480
|
-
const { getNextUI: i, fetchAndGetNextUI:
|
|
2568
|
+
const { getNextUI: i, fetchAndGetNextUI: o, fetchDataSource: n } = K(), d = O(e, t, [
|
|
2481
2569
|
{ ...r }
|
|
2482
2570
|
]), a = (d == null ? void 0 : d[0]) || null;
|
|
2483
2571
|
if (!a) return null;
|
|
@@ -2486,7 +2574,7 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2486
2574
|
responseKey: h,
|
|
2487
2575
|
dataSource: _
|
|
2488
2576
|
} = a.props, f = R(async () => {
|
|
2489
|
-
var g,
|
|
2577
|
+
var g, x, m;
|
|
2490
2578
|
try {
|
|
2491
2579
|
const y = {
|
|
2492
2580
|
...(g = v.getState()[e]) == null ? void 0 : g.entries,
|
|
@@ -2495,54 +2583,54 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2495
2583
|
};
|
|
2496
2584
|
switch (q(e, y), u) {
|
|
2497
2585
|
case "GO_TO_NEXT_UI": {
|
|
2498
|
-
const
|
|
2586
|
+
const p = await i(
|
|
2499
2587
|
e,
|
|
2500
2588
|
t,
|
|
2501
2589
|
y,
|
|
2502
2590
|
h
|
|
2503
2591
|
);
|
|
2504
|
-
|
|
2592
|
+
p != null && p.data && $(e, p == null ? void 0 : p.data);
|
|
2505
2593
|
break;
|
|
2506
2594
|
}
|
|
2507
2595
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
2508
|
-
const
|
|
2596
|
+
const p = await o(
|
|
2509
2597
|
e,
|
|
2510
2598
|
t,
|
|
2511
2599
|
y,
|
|
2512
2600
|
h,
|
|
2513
2601
|
_
|
|
2514
2602
|
);
|
|
2515
|
-
|
|
2603
|
+
p != null && p.data && $(e, p == null ? void 0 : p.data);
|
|
2516
2604
|
break;
|
|
2517
2605
|
}
|
|
2518
2606
|
case "GET_DATA_SOURCE": {
|
|
2519
|
-
const
|
|
2607
|
+
const p = await i(
|
|
2520
2608
|
e,
|
|
2521
2609
|
t,
|
|
2522
2610
|
y,
|
|
2523
2611
|
h
|
|
2524
|
-
),
|
|
2525
|
-
if ((
|
|
2526
|
-
const
|
|
2527
|
-
|
|
2612
|
+
), b = (x = p == null ? void 0 : p.data) == null ? void 0 : x.content;
|
|
2613
|
+
if ((b == null ? void 0 : b.type) !== "fetch") break;
|
|
2614
|
+
const C = b == null ? void 0 : b.dataSource, j = await n(
|
|
2615
|
+
C,
|
|
2528
2616
|
e,
|
|
2529
2617
|
// Avoid to handle loading state until all the requests are done
|
|
2530
2618
|
!1
|
|
2531
|
-
),
|
|
2532
|
-
...(
|
|
2619
|
+
), N = {
|
|
2620
|
+
...(m = v.getState()[e]) == null ? void 0 : m.entries,
|
|
2533
2621
|
[h]: {
|
|
2534
|
-
status:
|
|
2535
|
-
content:
|
|
2622
|
+
status: j == null ? void 0 : j.status,
|
|
2623
|
+
content: j == null ? void 0 : j.data
|
|
2536
2624
|
}
|
|
2537
2625
|
};
|
|
2538
|
-
q(e,
|
|
2539
|
-
const
|
|
2626
|
+
q(e, N);
|
|
2627
|
+
const w = await i(
|
|
2540
2628
|
e,
|
|
2541
2629
|
t,
|
|
2542
|
-
|
|
2630
|
+
N,
|
|
2543
2631
|
h
|
|
2544
2632
|
);
|
|
2545
|
-
|
|
2633
|
+
w != null && w.data && $(e, w == null ? void 0 : w.data);
|
|
2546
2634
|
break;
|
|
2547
2635
|
}
|
|
2548
2636
|
default:
|
|
@@ -2553,141 +2641,141 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2553
2641
|
alert(JSON.stringify(y));
|
|
2554
2642
|
}
|
|
2555
2643
|
}, [u, _, t, h, e]);
|
|
2556
|
-
return
|
|
2644
|
+
return ot(a, {
|
|
2557
2645
|
onClick: f
|
|
2558
2646
|
});
|
|
2559
|
-
},
|
|
2560
|
-
|
|
2647
|
+
}, ba = () => /* @__PURE__ */ c.jsx("div", { className: nt.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ c.jsx(
|
|
2648
|
+
He,
|
|
2561
2649
|
{
|
|
2562
2650
|
maxWidth: "100%",
|
|
2563
2651
|
height: 42,
|
|
2564
2652
|
radius: 8
|
|
2565
2653
|
},
|
|
2566
2654
|
`tableSkeletonBase${t}`
|
|
2567
|
-
)) }),
|
|
2655
|
+
)) }), ja = ({
|
|
2568
2656
|
userFlow: e,
|
|
2569
2657
|
pageId: t,
|
|
2570
2658
|
responseKey: s,
|
|
2571
2659
|
component: r,
|
|
2572
2660
|
dataSource: l,
|
|
2573
2661
|
rightActions: i,
|
|
2574
|
-
...
|
|
2662
|
+
...o
|
|
2575
2663
|
}) => {
|
|
2576
|
-
var
|
|
2577
|
-
const { fetchDataSource: n } = K(), [d, a] = L(!1), [u, h] = L(1), [_, f] = L(null), g =
|
|
2664
|
+
var C, j, N;
|
|
2665
|
+
const { fetchDataSource: n } = K(), [d, a] = L(!1), [u, h] = L(1), [_, f] = L(null), g = ge(
|
|
2578
2666
|
/* @__PURE__ */ new Map([[1, null]])
|
|
2579
|
-
),
|
|
2667
|
+
), x = A(() => {
|
|
2580
2668
|
if (i != null && i.length)
|
|
2581
|
-
return i.map((
|
|
2582
|
-
renderContent: (S) => /* @__PURE__ */
|
|
2583
|
-
|
|
2669
|
+
return i.map((w, k) => ({
|
|
2670
|
+
renderContent: (S) => /* @__PURE__ */ c.jsx(
|
|
2671
|
+
pa,
|
|
2584
2672
|
{
|
|
2585
2673
|
userFlow: e,
|
|
2586
2674
|
pageId: t,
|
|
2587
2675
|
tableResponseKey: s,
|
|
2588
|
-
component:
|
|
2676
|
+
component: w,
|
|
2589
2677
|
rowData: S
|
|
2590
2678
|
},
|
|
2591
|
-
`tableRowAction${
|
|
2679
|
+
`tableRowAction${k}`
|
|
2592
2680
|
)
|
|
2593
2681
|
}));
|
|
2594
|
-
}, [i, e, t]),
|
|
2682
|
+
}, [i, e, t]), m = async (w = 1) => {
|
|
2595
2683
|
const {
|
|
2596
|
-
mapperData:
|
|
2684
|
+
mapperData: k,
|
|
2597
2685
|
jsonPathData: S,
|
|
2598
|
-
jsonPathPagination:
|
|
2686
|
+
jsonPathPagination: E,
|
|
2599
2687
|
jsonPathCursorPagination: G
|
|
2600
2688
|
} = l;
|
|
2601
|
-
if (G &&
|
|
2602
|
-
h(1),
|
|
2689
|
+
if (G && w !== 1 && !g.current.has(w)) {
|
|
2690
|
+
h(1), m(1);
|
|
2603
2691
|
return;
|
|
2604
2692
|
}
|
|
2605
|
-
G &&
|
|
2693
|
+
G && w === 1 && (g.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
2606
2694
|
try {
|
|
2607
2695
|
a(!0);
|
|
2608
|
-
const M = G ? g.current.get(
|
|
2696
|
+
const M = G ? g.current.get(w) ?? null : null, H = Ce(
|
|
2609
2697
|
l,
|
|
2610
|
-
|
|
2698
|
+
w,
|
|
2611
2699
|
void 0,
|
|
2612
2700
|
M
|
|
2613
2701
|
), D = await n(
|
|
2614
|
-
|
|
2702
|
+
H,
|
|
2615
2703
|
e,
|
|
2616
2704
|
!1
|
|
2617
2705
|
);
|
|
2618
2706
|
if (f(
|
|
2619
|
-
|
|
2707
|
+
Fe(
|
|
2620
2708
|
D == null ? void 0 : D.data,
|
|
2621
2709
|
S,
|
|
2622
|
-
|
|
2623
|
-
|
|
2710
|
+
k,
|
|
2711
|
+
E
|
|
2624
2712
|
)
|
|
2625
2713
|
), G) {
|
|
2626
|
-
const ae =
|
|
2714
|
+
const ae = ss(
|
|
2627
2715
|
D == null ? void 0 : D.data,
|
|
2628
2716
|
G
|
|
2629
2717
|
);
|
|
2630
|
-
ae && g.current.set(
|
|
2718
|
+
ae && g.current.set(w + 1, ae);
|
|
2631
2719
|
}
|
|
2632
2720
|
a(!1);
|
|
2633
2721
|
} catch (M) {
|
|
2634
2722
|
console.error("[TableNotFront] fetchData:", M), a(!1);
|
|
2635
2723
|
}
|
|
2636
|
-
}, y = (
|
|
2637
|
-
h(
|
|
2724
|
+
}, y = (w) => {
|
|
2725
|
+
h(w), m(w);
|
|
2638
2726
|
};
|
|
2639
|
-
|
|
2640
|
-
|
|
2727
|
+
V(() => {
|
|
2728
|
+
m();
|
|
2641
2729
|
}, []);
|
|
2642
|
-
const
|
|
2730
|
+
const p = A(() => !(_ != null && _.items) || !(o != null && o.columns) ? o == null ? void 0 : o.columns : o.columns.map((w) => {
|
|
2643
2731
|
var S;
|
|
2644
2732
|
return ((S = _ == null ? void 0 : _.items) == null ? void 0 : S.some(
|
|
2645
|
-
(
|
|
2733
|
+
(E) => Array.isArray(w != null && w.accessor ? E[w == null ? void 0 : w.accessor] : void 0)
|
|
2646
2734
|
)) ? {
|
|
2647
|
-
...
|
|
2648
|
-
renderCell: (
|
|
2649
|
-
const G =
|
|
2650
|
-
return Array.isArray(G) ? /* @__PURE__ */
|
|
2735
|
+
...w,
|
|
2736
|
+
renderCell: (E) => {
|
|
2737
|
+
const G = w.accessor ? E[w.accessor] : void 0;
|
|
2738
|
+
return Array.isArray(G) ? /* @__PURE__ */ c.jsx(ga, { values: G }) : G ?? "";
|
|
2651
2739
|
}
|
|
2652
|
-
} :
|
|
2653
|
-
}), [_ == null ? void 0 : _.items,
|
|
2654
|
-
...
|
|
2740
|
+
} : w;
|
|
2741
|
+
}), [_ == null ? void 0 : _.items, o == null ? void 0 : o.columns]), b = {
|
|
2742
|
+
...o,
|
|
2655
2743
|
data: _ == null ? void 0 : _.items,
|
|
2656
|
-
columns:
|
|
2657
|
-
rightActions:
|
|
2744
|
+
columns: p,
|
|
2745
|
+
rightActions: x
|
|
2658
2746
|
};
|
|
2659
|
-
return /* @__PURE__ */
|
|
2660
|
-
/* @__PURE__ */
|
|
2661
|
-
(_ == null ? void 0 : _.pagination) && ((
|
|
2662
|
-
|
|
2747
|
+
return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(ba, {}) : _ && ((C = _ == null ? void 0 : _.items) == null ? void 0 : C.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2748
|
+
/* @__PURE__ */ c.jsx(Tt, { ...b }),
|
|
2749
|
+
(_ == null ? void 0 : _.pagination) && ((j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.totalPages) > 1 && /* @__PURE__ */ c.jsx(
|
|
2750
|
+
Ot,
|
|
2663
2751
|
{
|
|
2664
2752
|
classname: { global: "row__end" },
|
|
2665
2753
|
page: u,
|
|
2666
2754
|
size: _ == null ? void 0 : _.pagination.size,
|
|
2667
|
-
total: (
|
|
2755
|
+
total: (N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.total,
|
|
2668
2756
|
onChange: y
|
|
2669
2757
|
}
|
|
2670
2758
|
)
|
|
2671
|
-
] }) : /* @__PURE__ */
|
|
2672
|
-
},
|
|
2673
|
-
tabsPanel:
|
|
2674
|
-
},
|
|
2759
|
+
] }) : /* @__PURE__ */ c.jsx(pe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2760
|
+
}, wa = "_tabsPanel_kvslb_1", Ca = {
|
|
2761
|
+
tabsPanel: wa
|
|
2762
|
+
}, Na = ({ userFlow: e, pageId: t, components: s }) => {
|
|
2675
2763
|
const r = O(e, t, s);
|
|
2676
|
-
return r != null && r.length ? /* @__PURE__ */
|
|
2677
|
-
},
|
|
2764
|
+
return r != null && r.length ? /* @__PURE__ */ c.jsx("section", { className: Ca.tabsPanel, children: r.map((l, i) => /* @__PURE__ */ c.jsx(T, { children: l }, `tabs-panel-${i}`)) }) : null;
|
|
2765
|
+
}, va = ({
|
|
2678
2766
|
userFlow: e,
|
|
2679
2767
|
pageId: t,
|
|
2680
2768
|
hash: s,
|
|
2681
2769
|
items: r,
|
|
2682
2770
|
activeIndex: l,
|
|
2683
2771
|
className: i,
|
|
2684
|
-
responseKey:
|
|
2772
|
+
responseKey: o
|
|
2685
2773
|
}) => {
|
|
2686
2774
|
const n = r.map((a, u) => ({
|
|
2687
2775
|
label: a.label,
|
|
2688
2776
|
disabled: a.disabled,
|
|
2689
|
-
children: /* @__PURE__ */
|
|
2690
|
-
|
|
2777
|
+
children: /* @__PURE__ */ c.jsx(
|
|
2778
|
+
Na,
|
|
2691
2779
|
{
|
|
2692
2780
|
userFlow: e,
|
|
2693
2781
|
pageId: t,
|
|
@@ -2699,12 +2787,12 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2699
2787
|
var h;
|
|
2700
2788
|
const u = {
|
|
2701
2789
|
...(h = v.getState()[e]) == null ? void 0 : h.entries,
|
|
2702
|
-
[
|
|
2790
|
+
[o]: a
|
|
2703
2791
|
};
|
|
2704
2792
|
q(e, u);
|
|
2705
2793
|
};
|
|
2706
|
-
return /* @__PURE__ */
|
|
2707
|
-
|
|
2794
|
+
return /* @__PURE__ */ c.jsx(
|
|
2795
|
+
At,
|
|
2708
2796
|
{
|
|
2709
2797
|
className: i,
|
|
2710
2798
|
activeIndex: l,
|
|
@@ -2712,14 +2800,14 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2712
2800
|
onClick: d
|
|
2713
2801
|
}
|
|
2714
2802
|
);
|
|
2715
|
-
},
|
|
2803
|
+
}, Sa = (e) => {
|
|
2716
2804
|
const {
|
|
2717
2805
|
userFlow: t,
|
|
2718
2806
|
pageId: s,
|
|
2719
2807
|
component: r,
|
|
2720
2808
|
hash: l,
|
|
2721
2809
|
responseKey: i,
|
|
2722
|
-
required:
|
|
2810
|
+
required: o,
|
|
2723
2811
|
dependencies: n,
|
|
2724
2812
|
...d
|
|
2725
2813
|
} = e, a = {
|
|
@@ -2727,33 +2815,33 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2727
2815
|
}, [u, h] = L((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = I(
|
|
2728
2816
|
t,
|
|
2729
2817
|
n
|
|
2730
|
-
), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() =>
|
|
2731
|
-
var
|
|
2732
|
-
const y = (
|
|
2818
|
+
), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() => o && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, o]), x = (m) => {
|
|
2819
|
+
var p;
|
|
2820
|
+
const y = (p = m == null ? void 0 : m.target) == null ? void 0 : p.value;
|
|
2733
2821
|
h(y), q(t, { [i]: y });
|
|
2734
2822
|
};
|
|
2735
|
-
return
|
|
2823
|
+
return V(() => {
|
|
2736
2824
|
h((a == null ? void 0 : a.value) ?? "");
|
|
2737
|
-
}, [a == null ? void 0 : a.value]), /* @__PURE__ */
|
|
2738
|
-
|
|
2825
|
+
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ c.jsx(
|
|
2826
|
+
$t,
|
|
2739
2827
|
{
|
|
2740
2828
|
...a,
|
|
2741
2829
|
label: g,
|
|
2742
2830
|
value: u,
|
|
2743
2831
|
disabled: f,
|
|
2744
|
-
onChange: (
|
|
2832
|
+
onChange: (m) => !f && x(m)
|
|
2745
2833
|
}
|
|
2746
2834
|
);
|
|
2747
|
-
},
|
|
2748
|
-
textFieldNotFront:
|
|
2749
|
-
},
|
|
2835
|
+
}, ka = "_textFieldNotFront_1n8fy_1", Ea = {
|
|
2836
|
+
textFieldNotFront: ka
|
|
2837
|
+
}, Ta = (e) => {
|
|
2750
2838
|
const {
|
|
2751
2839
|
userFlow: t,
|
|
2752
2840
|
pageId: s,
|
|
2753
2841
|
component: r,
|
|
2754
2842
|
hash: l,
|
|
2755
2843
|
responseKey: i,
|
|
2756
|
-
required:
|
|
2844
|
+
required: o,
|
|
2757
2845
|
dependencies: n,
|
|
2758
2846
|
...d
|
|
2759
2847
|
} = e, a = {
|
|
@@ -2761,44 +2849,44 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2761
2849
|
}, [u, h] = L((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = I(
|
|
2762
2850
|
t,
|
|
2763
2851
|
n
|
|
2764
|
-
), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() =>
|
|
2765
|
-
var
|
|
2766
|
-
const y = (
|
|
2852
|
+
), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() => o && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, o]), x = (m) => {
|
|
2853
|
+
var b;
|
|
2854
|
+
const y = (b = m == null ? void 0 : m.target) == null ? void 0 : b.value;
|
|
2767
2855
|
h(y);
|
|
2768
|
-
const
|
|
2856
|
+
const p = {
|
|
2769
2857
|
[i]: y
|
|
2770
2858
|
};
|
|
2771
|
-
q(t,
|
|
2859
|
+
q(t, p);
|
|
2772
2860
|
};
|
|
2773
|
-
return
|
|
2861
|
+
return V(() => {
|
|
2774
2862
|
h((a == null ? void 0 : a.value) ?? "");
|
|
2775
|
-
}, [a == null ? void 0 : a.value]), /* @__PURE__ */
|
|
2776
|
-
|
|
2863
|
+
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ c.jsx(
|
|
2864
|
+
qt,
|
|
2777
2865
|
{
|
|
2778
2866
|
...a,
|
|
2779
|
-
className:
|
|
2867
|
+
className: Ea.textFieldNotFront,
|
|
2780
2868
|
allowClear: !1,
|
|
2781
2869
|
label: g,
|
|
2782
2870
|
value: u,
|
|
2783
2871
|
disabled: f,
|
|
2784
|
-
onChange: (
|
|
2872
|
+
onChange: (m) => !f && x(m)
|
|
2785
2873
|
}
|
|
2786
2874
|
);
|
|
2787
|
-
},
|
|
2875
|
+
}, Oa = ({
|
|
2788
2876
|
userFlow: e,
|
|
2789
2877
|
pageId: t,
|
|
2790
2878
|
responseKey: s,
|
|
2791
2879
|
variant: r,
|
|
2792
2880
|
content: l,
|
|
2793
2881
|
actionType: i,
|
|
2794
|
-
redirectUrl:
|
|
2882
|
+
redirectUrl: o
|
|
2795
2883
|
}) => {
|
|
2796
2884
|
const n = R(async () => {
|
|
2797
|
-
|
|
2885
|
+
je(e);
|
|
2798
2886
|
try {
|
|
2799
2887
|
switch (i) {
|
|
2800
2888
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
2801
|
-
window.location.href =
|
|
2889
|
+
window.location.href = o;
|
|
2802
2890
|
break;
|
|
2803
2891
|
default:
|
|
2804
2892
|
console.warn(`Unhandled actionType: ${i}`);
|
|
@@ -2807,8 +2895,8 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2807
2895
|
} catch (d) {
|
|
2808
2896
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
2809
2897
|
}
|
|
2810
|
-
}, [i, t, s, e,
|
|
2811
|
-
return
|
|
2898
|
+
}, [i, t, s, e, o]);
|
|
2899
|
+
return V(() => {
|
|
2812
2900
|
({
|
|
2813
2901
|
info: ee.info,
|
|
2814
2902
|
error: ee.error,
|
|
@@ -2820,17 +2908,17 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2820
2908
|
onClose: n
|
|
2821
2909
|
});
|
|
2822
2910
|
}, [n, e]), null;
|
|
2823
|
-
},
|
|
2824
|
-
tooltipNotFront:
|
|
2825
|
-
tooltipNotFront_content:
|
|
2826
|
-
},
|
|
2911
|
+
}, Aa = "_tooltipNotFront_106iw_1", $a = "_tooltipNotFront_content_106iw_5", Ue = {
|
|
2912
|
+
tooltipNotFront: Aa,
|
|
2913
|
+
tooltipNotFront_content: $a
|
|
2914
|
+
}, qa = (e) => {
|
|
2827
2915
|
const {
|
|
2828
2916
|
userFlow: t,
|
|
2829
2917
|
pageId: s,
|
|
2830
2918
|
component: r,
|
|
2831
2919
|
hash: l,
|
|
2832
2920
|
responseKey: i,
|
|
2833
|
-
content:
|
|
2921
|
+
content: o,
|
|
2834
2922
|
label: n,
|
|
2835
2923
|
placement: d,
|
|
2836
2924
|
notShowArrow: a,
|
|
@@ -2838,12 +2926,12 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2838
2926
|
} = e, h = O(
|
|
2839
2927
|
t,
|
|
2840
2928
|
s,
|
|
2841
|
-
|
|
2842
|
-
), _ = h && h.length > 0 ? /* @__PURE__ */
|
|
2843
|
-
return /* @__PURE__ */
|
|
2844
|
-
|
|
2929
|
+
o != null && o.length ? o : null
|
|
2930
|
+
), _ = h && h.length > 0 ? /* @__PURE__ */ c.jsx("div", { className: Ue.tooltipNotFront_content, children: h.map((f, g) => /* @__PURE__ */ c.jsx(T, { children: f }, `tooltip-${l}-${g}`)) }) : null;
|
|
2931
|
+
return /* @__PURE__ */ c.jsx(
|
|
2932
|
+
Dt,
|
|
2845
2933
|
{
|
|
2846
|
-
className:
|
|
2934
|
+
className: Ue.tooltipNotFront,
|
|
2847
2935
|
label: n,
|
|
2848
2936
|
placement: d,
|
|
2849
2937
|
notShowArrow: a,
|
|
@@ -2852,24 +2940,24 @@ const Ks = /\{([^}]+)\}/g, Gs = (e, t) => {
|
|
|
2852
2940
|
}
|
|
2853
2941
|
);
|
|
2854
2942
|
};
|
|
2855
|
-
function
|
|
2943
|
+
function Wa({
|
|
2856
2944
|
sessionName: e,
|
|
2857
2945
|
apiConfig: t,
|
|
2858
2946
|
onResolveComponentProps: s,
|
|
2859
2947
|
children: r
|
|
2860
2948
|
}) {
|
|
2861
|
-
const l =
|
|
2949
|
+
const l = Da(
|
|
2862
2950
|
e,
|
|
2863
2951
|
t,
|
|
2864
2952
|
null,
|
|
2865
2953
|
s
|
|
2866
2954
|
);
|
|
2867
|
-
return /* @__PURE__ */
|
|
2955
|
+
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2868
2956
|
l,
|
|
2869
2957
|
r
|
|
2870
2958
|
] });
|
|
2871
2959
|
}
|
|
2872
|
-
const
|
|
2960
|
+
const Ve = (e, t, s, r, l) => {
|
|
2873
2961
|
const i = O(
|
|
2874
2962
|
e,
|
|
2875
2963
|
t,
|
|
@@ -2878,8 +2966,8 @@ const Ge = (e, t, s, r, l) => {
|
|
|
2878
2966
|
);
|
|
2879
2967
|
switch (s) {
|
|
2880
2968
|
case "body":
|
|
2881
|
-
return /* @__PURE__ */
|
|
2882
|
-
|
|
2969
|
+
return /* @__PURE__ */ c.jsx(
|
|
2970
|
+
qn,
|
|
2883
2971
|
{
|
|
2884
2972
|
...r,
|
|
2885
2973
|
inputs: i || []
|
|
@@ -2887,8 +2975,8 @@ const Ge = (e, t, s, r, l) => {
|
|
|
2887
2975
|
JSON.stringify(r == null ? void 0 : r.components)
|
|
2888
2976
|
);
|
|
2889
2977
|
case "header":
|
|
2890
|
-
return /* @__PURE__ */
|
|
2891
|
-
|
|
2978
|
+
return /* @__PURE__ */ c.jsx(
|
|
2979
|
+
Is,
|
|
2892
2980
|
{
|
|
2893
2981
|
...r,
|
|
2894
2982
|
components: i || []
|
|
@@ -2898,66 +2986,66 @@ const Ge = (e, t, s, r, l) => {
|
|
|
2898
2986
|
default:
|
|
2899
2987
|
return null;
|
|
2900
2988
|
}
|
|
2901
|
-
},
|
|
2989
|
+
}, Da = (e, t, s, r) => {
|
|
2902
2990
|
var _, f, g;
|
|
2903
|
-
const [l, i] = L(!1),
|
|
2904
|
-
|
|
2991
|
+
const [l, i] = L(!1), o = v((x) => x), n = (_ = o[e]) == null ? void 0 : _.currentPageId;
|
|
2992
|
+
V(() => {
|
|
2905
2993
|
if (typeof window > "u") return;
|
|
2906
|
-
const
|
|
2907
|
-
|
|
2994
|
+
const x = new URL(window.location.href), m = x.searchParams.get("sessionId");
|
|
2995
|
+
m && (sessionStorage.setItem("sessionId", m), x.searchParams.delete("sessionId"), window.history.replaceState({}, "", x.toString()));
|
|
2908
2996
|
}, []);
|
|
2909
|
-
const d = n ?
|
|
2997
|
+
const d = n ? Ve(
|
|
2910
2998
|
e,
|
|
2911
2999
|
n,
|
|
2912
3000
|
"header",
|
|
2913
|
-
((f =
|
|
3001
|
+
((f = o[e].pages[n].page) == null ? void 0 : f.header) || null,
|
|
2914
3002
|
r
|
|
2915
|
-
) : null, a = n ?
|
|
3003
|
+
) : null, a = n ? Ve(
|
|
2916
3004
|
e,
|
|
2917
3005
|
n,
|
|
2918
3006
|
"body",
|
|
2919
|
-
((g =
|
|
3007
|
+
((g = o[e].pages[n].page) == null ? void 0 : g.body) || null,
|
|
2920
3008
|
r
|
|
2921
3009
|
) : null, u = A(() => {
|
|
2922
|
-
var
|
|
2923
|
-
return /* @__PURE__ */
|
|
2924
|
-
((
|
|
3010
|
+
var x;
|
|
3011
|
+
return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
3012
|
+
((x = o[e]) == null ? void 0 : x.isLoading) && /* @__PURE__ */ c.jsx(Rt, {}),
|
|
2925
3013
|
d,
|
|
2926
3014
|
a,
|
|
2927
|
-
n && /* @__PURE__ */
|
|
2928
|
-
|
|
3015
|
+
n && /* @__PURE__ */ c.jsx(Vs, { userFlow: e, pageId: n }),
|
|
3016
|
+
o[e] && /* @__PURE__ */ c.jsx(Lt, {})
|
|
2929
3017
|
] });
|
|
2930
3018
|
}, [d, a, n, e]), h = async () => {
|
|
2931
3019
|
try {
|
|
2932
|
-
const
|
|
3020
|
+
const x = await Ze(
|
|
2933
3021
|
t,
|
|
2934
3022
|
e
|
|
2935
|
-
),
|
|
2936
|
-
(
|
|
2937
|
-
} catch (
|
|
2938
|
-
console.error("[not-page]: API call failed",
|
|
3023
|
+
), m = x == null ? void 0 : x.data, y = m == null ? void 0 : m.content;
|
|
3024
|
+
(x == null ? void 0 : x.status) === 200 ? de(e, t, y, m == null ? void 0 : m.sessionState) : i(!0);
|
|
3025
|
+
} catch (x) {
|
|
3026
|
+
console.error("[not-page]: API call failed", x), i(!0);
|
|
2939
3027
|
}
|
|
2940
3028
|
};
|
|
2941
|
-
return
|
|
3029
|
+
return V(() => {
|
|
2942
3030
|
t != null && t.api && !s && e ? h() : !(t != null && t.api) && s && e || t != null && t.api && s && e ? de(e, t, s) : (!(t != null && t.api) && !s || !e) && (i(!0), console.error(
|
|
2943
3031
|
"[not-page]: API call failed",
|
|
2944
3032
|
"not api config",
|
|
2945
3033
|
"not userFlow"
|
|
2946
3034
|
));
|
|
2947
|
-
const
|
|
2948
|
-
const
|
|
2949
|
-
ne.setThemeMode(
|
|
3035
|
+
const x = "avocado-theme-mode-changed", m = (y) => {
|
|
3036
|
+
const p = y.detail;
|
|
3037
|
+
ne.setThemeMode(p);
|
|
2950
3038
|
};
|
|
2951
|
-
return window.addEventListener(
|
|
2952
|
-
window.removeEventListener(
|
|
3039
|
+
return window.addEventListener(x, m), () => {
|
|
3040
|
+
window.removeEventListener(x, m);
|
|
2953
3041
|
};
|
|
2954
3042
|
}, []), l && console.error("[not-page]: No render page"), u;
|
|
2955
3043
|
};
|
|
2956
3044
|
export {
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
3045
|
+
ms as Chart,
|
|
3046
|
+
Wa as NotFrontPage,
|
|
3047
|
+
Ys as Row,
|
|
3048
|
+
fn as heading,
|
|
3049
|
+
yn as text,
|
|
3050
|
+
Da as usePage
|
|
2963
3051
|
};
|