@foris/avocado-not-front 5.1.1 → 5.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import X from "axios";
|
|
2
2
|
import { create as ft } from "zustand";
|
|
3
|
-
import yt, { useMemo as
|
|
4
|
-
import { Heading as Pe, Text as mt, Accordion as gt, ThemeStore as le, Box as pt, RadioButton as bt, Stepper as jt, ProgressBar as Ct, Breadcrumbs as wt, Button as Nt, CardAccordion as vt, Card as Et, CardNotification as xe, SkeletonBase as et, Checkbox as
|
|
3
|
+
import yt, { useMemo as k, useState as O, useCallback as q, Fragment as S, useEffect as U, useRef as ie, cloneElement as xt } from "react";
|
|
4
|
+
import { Heading as Pe, Text as mt, Accordion as gt, ThemeStore as le, Box as pt, RadioButton as bt, Stepper as jt, ProgressBar as Ct, Breadcrumbs as wt, Button as Nt, CardAccordion as vt, Card as Et, CardNotification as xe, SkeletonBase as et, Checkbox as Tt, PreviewerMarkdown as tt, DataCard as kt, Divider as St, Drawer as At, DropdownButton as Ot, Link as $t, Menu as Dt, Modal as Rt, Pill as Te, RoundButton as qt, SelectPagination as Lt, Select as It, Switch as Bt, Table as qe, Pager as je, Tabs as Kt, Textarea as Ht, TextField as Gt, toast as re, Tooltip as Mt, Loading as Ut, Toaster as Vt } from "@foris/avocado-suite";
|
|
5
5
|
import { ChatPanel as zt, PromptCodeEditor as Xt, SummaryCard as Jt } from "@foris/ai-agent";
|
|
6
|
-
import
|
|
7
|
-
import { ResponsiveContainer as nt, Legend as Wt, Tooltip as Yt, XAxis as Qt, YAxis as Zt, AreaChart as Ft, CartesianGrid as de, Area as Pt, BarChart as
|
|
6
|
+
import I from "jsonpath";
|
|
7
|
+
import { ResponsiveContainer as nt, Legend as Wt, Tooltip as Yt, XAxis as Qt, YAxis as Zt, AreaChart as Ft, CartesianGrid as de, Area as Pt, BarChart as Se, Bar as Ae, LineChart as en, Line as tn, PieChart as nn, Pie as sn, Cell as rn } from "recharts";
|
|
8
8
|
import an from "@uiw/react-codemirror";
|
|
9
9
|
import { json as Le } from "@codemirror/lang-json";
|
|
10
10
|
import { markdown as on } from "@codemirror/lang-markdown";
|
|
11
11
|
import { sql as cn } from "@codemirror/lang-sql";
|
|
12
12
|
import { yaml as ln } from "@codemirror/lang-yaml";
|
|
13
13
|
import { Icon as Ie } from "@foris/avocado-icons";
|
|
14
|
-
const N = ft(() => ({})), ye = (e, t, s,
|
|
15
|
-
const
|
|
16
|
-
N.setState((
|
|
14
|
+
const N = ft(() => ({})), ye = (e, t, s, r) => {
|
|
15
|
+
const c = s == null ? void 0 : s.hash, l = r && Object.keys(r).length > 0 ? { ...r } : {};
|
|
16
|
+
N.setState((i) => {
|
|
17
17
|
var n;
|
|
18
18
|
return {
|
|
19
|
-
...
|
|
19
|
+
...i,
|
|
20
20
|
[e]: {
|
|
21
|
-
...
|
|
21
|
+
...i[e],
|
|
22
22
|
apiConfig: t,
|
|
23
|
-
currentPageId:
|
|
23
|
+
currentPageId: c,
|
|
24
24
|
isLoading: !1,
|
|
25
25
|
isModalOpen: !0,
|
|
26
26
|
isDrawerOpen: !1,
|
|
27
27
|
entries: l,
|
|
28
28
|
overlay: null,
|
|
29
29
|
pages: {
|
|
30
|
-
...(n =
|
|
31
|
-
[
|
|
30
|
+
...(n = i[e]) == null ? void 0 : n.pages,
|
|
31
|
+
[c]: {
|
|
32
32
|
page: s
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -36,29 +36,29 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
38
|
}, st = (e, t, s) => {
|
|
39
|
-
const
|
|
39
|
+
const r = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
|
|
40
40
|
return t.length === 0 ? e : Object.fromEntries(
|
|
41
|
-
Object.entries(
|
|
42
|
-
([
|
|
41
|
+
Object.entries(r).filter(
|
|
42
|
+
([c]) => !t.includes(c)
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
|
-
}, dn = (e, t, s,
|
|
45
|
+
}, dn = (e, t, s, r, c) => {
|
|
46
46
|
sessionStorage.setItem("sessionId", s), N.setState((l) => {
|
|
47
|
-
const
|
|
47
|
+
const i = l[e] ?? {}, n = i.entries ?? {}, d = st(
|
|
48
48
|
n,
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
r,
|
|
50
|
+
c
|
|
51
51
|
);
|
|
52
52
|
return {
|
|
53
53
|
...l,
|
|
54
54
|
[e]: {
|
|
55
|
-
...
|
|
55
|
+
...i,
|
|
56
56
|
currentPageId: t.hash,
|
|
57
57
|
entries: d,
|
|
58
58
|
isLoading: !1,
|
|
59
59
|
overlay: null,
|
|
60
60
|
pages: {
|
|
61
|
-
...
|
|
61
|
+
...i.pages,
|
|
62
62
|
[t.hash]: {
|
|
63
63
|
page: { ...t }
|
|
64
64
|
}
|
|
@@ -66,18 +66,18 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
}, _n = (e, t, s,
|
|
70
|
-
N.setState((
|
|
71
|
-
var
|
|
72
|
-
const l =
|
|
73
|
-
|
|
69
|
+
}, _n = (e, t, s, r) => {
|
|
70
|
+
N.setState((c) => {
|
|
71
|
+
var a;
|
|
72
|
+
const l = c[e] ?? {}, i = l.entries ?? {}, n = st(
|
|
73
|
+
i,
|
|
74
74
|
s,
|
|
75
|
-
|
|
76
|
-
), d = (
|
|
75
|
+
r
|
|
76
|
+
), d = (a = t.components) == null ? void 0 : a.some(
|
|
77
77
|
(_) => _.component === "drawer"
|
|
78
78
|
);
|
|
79
79
|
return {
|
|
80
|
-
...
|
|
80
|
+
...c,
|
|
81
81
|
[e]: {
|
|
82
82
|
...l,
|
|
83
83
|
entries: n,
|
|
@@ -88,7 +88,7 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
|
-
},
|
|
91
|
+
}, Oe = (e) => {
|
|
92
92
|
N.setState((t) => ({
|
|
93
93
|
...t,
|
|
94
94
|
[e]: {
|
|
@@ -102,31 +102,31 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
102
102
|
}, L = (e, t) => {
|
|
103
103
|
const {
|
|
104
104
|
content: s,
|
|
105
|
-
sessionId:
|
|
106
|
-
deprecatedStateKeys:
|
|
105
|
+
sessionId: r,
|
|
106
|
+
deprecatedStateKeys: c = [],
|
|
107
107
|
sessionState: l
|
|
108
108
|
} = t;
|
|
109
109
|
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? dn(
|
|
110
110
|
e,
|
|
111
111
|
s,
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
r,
|
|
113
|
+
c,
|
|
114
114
|
l
|
|
115
115
|
) : _n(
|
|
116
116
|
e,
|
|
117
117
|
s,
|
|
118
|
-
|
|
118
|
+
c,
|
|
119
119
|
l
|
|
120
120
|
));
|
|
121
|
-
},
|
|
121
|
+
}, R = (e, t) => {
|
|
122
122
|
N.setState((s) => {
|
|
123
|
-
var
|
|
123
|
+
var r;
|
|
124
124
|
return {
|
|
125
125
|
...s,
|
|
126
126
|
[e]: {
|
|
127
127
|
...s[e],
|
|
128
128
|
entries: {
|
|
129
|
-
...(
|
|
129
|
+
...(r = s[e]) == null ? void 0 : r.entries,
|
|
130
130
|
...t
|
|
131
131
|
// New entries
|
|
132
132
|
}
|
|
@@ -135,18 +135,18 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
135
135
|
});
|
|
136
136
|
}, hn = (e, t) => {
|
|
137
137
|
N.setState((s) => {
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
138
|
+
const r = s[e];
|
|
139
|
+
if (!r)
|
|
140
140
|
return s;
|
|
141
|
-
const
|
|
142
|
-
if (!(t in
|
|
141
|
+
const c = r.entries ?? {};
|
|
142
|
+
if (!(t in c))
|
|
143
143
|
return s;
|
|
144
|
-
const { [t]: l, ...
|
|
144
|
+
const { [t]: l, ...i } = c;
|
|
145
145
|
return {
|
|
146
146
|
...s,
|
|
147
147
|
[e]: {
|
|
148
|
-
...
|
|
149
|
-
entries:
|
|
148
|
+
...r,
|
|
149
|
+
entries: i
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
});
|
|
@@ -158,7 +158,7 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
158
158
|
isLoading: t
|
|
159
159
|
}
|
|
160
160
|
}));
|
|
161
|
-
},
|
|
161
|
+
}, $e = (e, t) => {
|
|
162
162
|
N.setState((s) => ({
|
|
163
163
|
...s,
|
|
164
164
|
[e]: {
|
|
@@ -176,58 +176,58 @@ const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
|
176
176
|
}));
|
|
177
177
|
}, Be = (e, t) => {
|
|
178
178
|
N.setState((s) => {
|
|
179
|
-
const
|
|
180
|
-
return
|
|
179
|
+
const r = s[e];
|
|
180
|
+
return r ? {
|
|
181
181
|
...s,
|
|
182
182
|
[e]: {
|
|
183
|
-
...
|
|
183
|
+
...r,
|
|
184
184
|
apiConfig: {
|
|
185
|
-
...
|
|
185
|
+
...r.apiConfig,
|
|
186
186
|
headers: t
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
} : s;
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
let
|
|
192
|
+
let Ce = !1, me = [], Ke = !1;
|
|
193
193
|
const fn = (e) => e._userFlow || null, He = (e) => {
|
|
194
194
|
me.forEach(({ resolve: t, reject: s }) => {
|
|
195
195
|
e ? s(e) : t(void 0);
|
|
196
196
|
}), me = [];
|
|
197
197
|
}, yn = async (e) => {
|
|
198
|
-
var
|
|
198
|
+
var r, c;
|
|
199
199
|
const t = e == null ? void 0 : e.config;
|
|
200
|
-
if (((
|
|
200
|
+
if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
|
|
201
201
|
const l = fn(t);
|
|
202
202
|
if (l) {
|
|
203
|
-
const n = (
|
|
203
|
+
const n = (c = N.getState()[l]) == null ? void 0 : c.apiConfig;
|
|
204
204
|
if (!n)
|
|
205
205
|
return Promise.reject(e);
|
|
206
206
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
207
|
-
if (
|
|
208
|
-
return new Promise((
|
|
209
|
-
me.push({ resolve:
|
|
210
|
-
}).then(() => X(t)).catch((
|
|
211
|
-
t._retry = !0,
|
|
207
|
+
if (Ce)
|
|
208
|
+
return new Promise((a, _) => {
|
|
209
|
+
me.push({ resolve: a, reject: _ });
|
|
210
|
+
}).then(() => X(t)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
|
|
211
|
+
t._retry = !0, Ce = !0;
|
|
212
212
|
try {
|
|
213
|
-
let
|
|
213
|
+
let a;
|
|
214
214
|
if (n.onAuthenticationError)
|
|
215
|
-
|
|
215
|
+
a = await n.onAuthenticationError();
|
|
216
216
|
else if (typeof n.headers == "function")
|
|
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" ? Be(l, JSON.stringify(
|
|
221
|
-
} catch (
|
|
220
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Be(l, JSON.stringify(a)) : Be(l, a)), t.headers || (t.headers = {}), Object.assign(t.headers, a), He(null), X(t);
|
|
221
|
+
} catch (a) {
|
|
222
222
|
return console.error(
|
|
223
223
|
"[axiosInterceptors] Token refresh failed:",
|
|
224
|
-
|
|
224
|
+
a
|
|
225
225
|
), console.error(
|
|
226
226
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
227
227
|
me.length
|
|
228
|
-
), He(
|
|
228
|
+
), He(a), Promise.reject(a);
|
|
229
229
|
} finally {
|
|
230
|
-
|
|
230
|
+
Ce = !1;
|
|
231
231
|
}
|
|
232
232
|
} else
|
|
233
233
|
console.warn(
|
|
@@ -253,7 +253,7 @@ xn();
|
|
|
253
253
|
function mn(e) {
|
|
254
254
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
255
255
|
}
|
|
256
|
-
var
|
|
256
|
+
var we = { exports: {} }, ae = {};
|
|
257
257
|
/**
|
|
258
258
|
* @license React
|
|
259
259
|
* react-jsx-runtime.production.min.js
|
|
@@ -267,19 +267,19 @@ var Ge;
|
|
|
267
267
|
function gn() {
|
|
268
268
|
if (Ge) return ae;
|
|
269
269
|
Ge = 1;
|
|
270
|
-
var e = yt, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"),
|
|
271
|
-
function
|
|
270
|
+
var e = yt, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
271
|
+
function i(n, d, a) {
|
|
272
272
|
var _, u = {}, h = null, f = null;
|
|
273
|
-
|
|
274
|
-
for (_ in d)
|
|
273
|
+
a !== void 0 && (h = "" + a), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (f = d.ref);
|
|
274
|
+
for (_ in d) r.call(d, _) && !l.hasOwnProperty(_) && (u[_] = d[_]);
|
|
275
275
|
if (n && n.defaultProps) for (_ in d = n.defaultProps, d) u[_] === void 0 && (u[_] = d[_]);
|
|
276
|
-
return { $$typeof: t, type: n, key: h, ref: f, props: u, _owner:
|
|
276
|
+
return { $$typeof: t, type: n, key: h, ref: f, props: u, _owner: c.current };
|
|
277
277
|
}
|
|
278
|
-
return ae.Fragment = s, ae.jsx =
|
|
278
|
+
return ae.Fragment = s, ae.jsx = i, ae.jsxs = i, ae;
|
|
279
279
|
}
|
|
280
280
|
var Me;
|
|
281
281
|
function pn() {
|
|
282
|
-
return Me || (Me = 1,
|
|
282
|
+
return Me || (Me = 1, we.exports = gn()), we.exports;
|
|
283
283
|
}
|
|
284
284
|
var o = pn();
|
|
285
285
|
const bn = (e) => {
|
|
@@ -297,9 +297,9 @@ const bn = (e) => {
|
|
|
297
297
|
children: e.content
|
|
298
298
|
};
|
|
299
299
|
return /* @__PURE__ */ o.jsx(mt, { ...t });
|
|
300
|
-
}, E = (e, t, s,
|
|
301
|
-
var
|
|
302
|
-
const
|
|
300
|
+
}, E = (e, t, s, r) => {
|
|
301
|
+
var i;
|
|
302
|
+
const c = {
|
|
303
303
|
accordion: (n) => /* @__PURE__ */ o.jsx(An, { ...n, userFlow: e, pageId: t }),
|
|
304
304
|
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(
|
|
305
305
|
On,
|
|
@@ -307,7 +307,7 @@ const bn = (e) => {
|
|
|
307
307
|
...n,
|
|
308
308
|
userFlow: e,
|
|
309
309
|
pageId: t,
|
|
310
|
-
onResolveProps:
|
|
310
|
+
onResolveProps: r == null ? void 0 : r.aiChatPanel
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
313
|
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(
|
|
@@ -316,10 +316,10 @@ const bn = (e) => {
|
|
|
316
316
|
...n,
|
|
317
317
|
userFlow: e,
|
|
318
318
|
pageId: t,
|
|
319
|
-
onResolveProps:
|
|
319
|
+
onResolveProps: r == null ? void 0 : r.aiSummaryCard
|
|
320
320
|
}
|
|
321
321
|
),
|
|
322
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(
|
|
322
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n, userFlow: e, pageId: t }),
|
|
323
323
|
box: (n) => /* @__PURE__ */ o.jsx(Un, { ...n, userFlow: e, pageId: t }),
|
|
324
324
|
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(ts, { ...n, userFlow: e, pageId: t }),
|
|
325
325
|
tooltip: (n) => /* @__PURE__ */ o.jsx(Wr, { ...n, userFlow: e, pageId: t }),
|
|
@@ -347,16 +347,16 @@ const bn = (e) => {
|
|
|
347
347
|
roundButton: (n) => /* @__PURE__ */ o.jsx(cr, { ...n, userFlow: e, pageId: t }),
|
|
348
348
|
row: (n) => /* @__PURE__ */ o.jsx(dr, { ...n, userFlow: e, pageId: t }),
|
|
349
349
|
select: (n) => /* @__PURE__ */ o.jsx(gr, { ...n, userFlow: e, pageId: t }),
|
|
350
|
-
switch: (n) => /* @__PURE__ */ o.jsx(
|
|
351
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(
|
|
350
|
+
switch: (n) => /* @__PURE__ */ o.jsx(Sr, { ...n, userFlow: e, pageId: t }),
|
|
351
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(kr, { ...n, userFlow: e, pageId: t }),
|
|
352
352
|
table: (n) => /* @__PURE__ */ o.jsx(Lr, { ...n, userFlow: e, pageId: t }),
|
|
353
353
|
tabs: (n) => /* @__PURE__ */ o.jsx(Hr, { ...n, userFlow: e, pageId: t }),
|
|
354
354
|
text: (n) => jn(n),
|
|
355
355
|
textField: (n) => /* @__PURE__ */ o.jsx(Vr, { ...n, userFlow: e, pageId: t }),
|
|
356
356
|
toast: (n) => /* @__PURE__ */ o.jsx(zr, { ...n, userFlow: e, pageId: t })
|
|
357
357
|
};
|
|
358
|
-
return (
|
|
359
|
-
const d =
|
|
358
|
+
return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
|
|
359
|
+
const d = c[n.component];
|
|
360
360
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
361
361
|
});
|
|
362
362
|
};
|
|
@@ -368,18 +368,18 @@ function rt(e, t) {
|
|
|
368
368
|
return !1;
|
|
369
369
|
for (const s of t)
|
|
370
370
|
if (s.when === "empty") {
|
|
371
|
-
const
|
|
372
|
-
if (Cn(
|
|
371
|
+
const r = e == null ? void 0 : e[s.key];
|
|
372
|
+
if (Cn(r))
|
|
373
373
|
return !0;
|
|
374
374
|
}
|
|
375
375
|
return !1;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
const s = N((
|
|
379
|
-
var
|
|
380
|
-
return (
|
|
377
|
+
function B(e, t) {
|
|
378
|
+
const s = N((r) => {
|
|
379
|
+
var c;
|
|
380
|
+
return (c = r[e]) == null ? void 0 : c.entries;
|
|
381
381
|
});
|
|
382
|
-
return
|
|
382
|
+
return k(
|
|
383
383
|
() => ({
|
|
384
384
|
disabled: rt(s, t)
|
|
385
385
|
}),
|
|
@@ -398,69 +398,69 @@ const P = (e) => {
|
|
|
398
398
|
return { "content-type": "application/json", Authorization: e };
|
|
399
399
|
}
|
|
400
400
|
return e;
|
|
401
|
-
}, _e = () => new AbortController(), wn = (e, t = {}, s = {},
|
|
401
|
+
}, _e = () => new AbortController(), wn = (e, t = {}, s = {}, r = !1, c) => {
|
|
402
402
|
const l = _e();
|
|
403
|
-
|
|
404
|
-
const
|
|
403
|
+
r && l.abort();
|
|
404
|
+
const i = P(t);
|
|
405
405
|
return {
|
|
406
406
|
call: X.get(e, {
|
|
407
407
|
headers: {
|
|
408
|
-
...
|
|
408
|
+
...i
|
|
409
409
|
},
|
|
410
410
|
params: s,
|
|
411
411
|
signal: l.signal,
|
|
412
|
-
_userFlow:
|
|
412
|
+
_userFlow: c
|
|
413
413
|
}),
|
|
414
414
|
controller: l
|
|
415
415
|
};
|
|
416
|
-
},
|
|
417
|
-
const
|
|
418
|
-
|
|
416
|
+
}, ke = (e, t = {}, s = {}, r = {}, c = !1, l) => {
|
|
417
|
+
const i = _e();
|
|
418
|
+
c && i.abort();
|
|
419
419
|
const n = P(t);
|
|
420
420
|
return {
|
|
421
421
|
call: X.post(e, s, {
|
|
422
422
|
headers: {
|
|
423
423
|
...n
|
|
424
424
|
},
|
|
425
|
-
params:
|
|
426
|
-
signal:
|
|
425
|
+
params: r,
|
|
426
|
+
signal: i.signal,
|
|
427
427
|
_userFlow: l
|
|
428
428
|
}),
|
|
429
|
-
controller:
|
|
429
|
+
controller: i
|
|
430
430
|
};
|
|
431
|
-
}, Nn = (e, t = {}, s = {},
|
|
432
|
-
const
|
|
433
|
-
|
|
431
|
+
}, Nn = (e, t = {}, s = {}, r = {}, c = !1, l) => {
|
|
432
|
+
const i = _e();
|
|
433
|
+
c && i.abort();
|
|
434
434
|
const n = P(t);
|
|
435
435
|
return {
|
|
436
436
|
call: X.put(e, s, {
|
|
437
437
|
headers: {
|
|
438
438
|
...n
|
|
439
439
|
},
|
|
440
|
-
params:
|
|
441
|
-
signal:
|
|
440
|
+
params: r,
|
|
441
|
+
signal: i.signal,
|
|
442
442
|
_userFlow: l
|
|
443
443
|
}),
|
|
444
|
-
controller:
|
|
444
|
+
controller: i
|
|
445
445
|
};
|
|
446
|
-
}, vn = (e, t = {}, s = {},
|
|
447
|
-
const
|
|
448
|
-
|
|
446
|
+
}, vn = (e, t = {}, s = {}, r = {}, c = !1, l) => {
|
|
447
|
+
const i = _e();
|
|
448
|
+
c && i.abort();
|
|
449
449
|
const n = P(t);
|
|
450
450
|
return {
|
|
451
451
|
call: X.patch(e, s, {
|
|
452
452
|
headers: {
|
|
453
453
|
...n
|
|
454
454
|
},
|
|
455
|
-
params:
|
|
456
|
-
signal:
|
|
455
|
+
params: r,
|
|
456
|
+
signal: i.signal,
|
|
457
457
|
_userFlow: l
|
|
458
458
|
}),
|
|
459
|
-
controller:
|
|
459
|
+
controller: i
|
|
460
460
|
};
|
|
461
|
-
}, En = (e, t = {}, s = {},
|
|
462
|
-
const
|
|
463
|
-
|
|
461
|
+
}, En = (e, t = {}, s = {}, r = {}, c = !1, l) => {
|
|
462
|
+
const i = _e();
|
|
463
|
+
c && i.abort();
|
|
464
464
|
const n = P(t);
|
|
465
465
|
return {
|
|
466
466
|
call: X.delete(e, {
|
|
@@ -468,35 +468,35 @@ const P = (e) => {
|
|
|
468
468
|
...n
|
|
469
469
|
},
|
|
470
470
|
data: s,
|
|
471
|
-
params:
|
|
472
|
-
signal:
|
|
471
|
+
params: r,
|
|
472
|
+
signal: i.signal,
|
|
473
473
|
_userFlow: l
|
|
474
474
|
}),
|
|
475
|
-
controller:
|
|
475
|
+
controller: i
|
|
476
476
|
};
|
|
477
477
|
}, at = () => {
|
|
478
478
|
let e;
|
|
479
|
-
return { callEndpoint: async (
|
|
480
|
-
|
|
481
|
-
let
|
|
479
|
+
return { callEndpoint: async (r) => {
|
|
480
|
+
r.controller && (e = r.controller);
|
|
481
|
+
let c = {};
|
|
482
482
|
try {
|
|
483
|
-
|
|
483
|
+
c = await r.call;
|
|
484
484
|
} catch (l) {
|
|
485
485
|
throw l;
|
|
486
486
|
}
|
|
487
|
-
return
|
|
487
|
+
return c;
|
|
488
488
|
}, cancelEndpoint: () => {
|
|
489
489
|
e && e.abort();
|
|
490
490
|
} };
|
|
491
|
-
}, ot = async (e, t, s = "",
|
|
491
|
+
}, ot = async (e, t, s = "", r = {}, c = {}) => {
|
|
492
492
|
try {
|
|
493
|
-
const { callEndpoint: l } = at(), { api:
|
|
494
|
-
s &&
|
|
495
|
-
const _ = `${
|
|
493
|
+
const { callEndpoint: l } = at(), { api: i, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
|
|
494
|
+
s && a.append("hash_code", s), d && a.append("sessionId", d);
|
|
495
|
+
const _ = `${i}/not-front/next-ui/?${a.toString()}`, u = P(n), h = ke(
|
|
496
496
|
_,
|
|
497
497
|
u,
|
|
498
|
-
|
|
499
|
-
|
|
498
|
+
r,
|
|
499
|
+
c,
|
|
500
500
|
!1,
|
|
501
501
|
t
|
|
502
502
|
);
|
|
@@ -516,28 +516,28 @@ const P = (e) => {
|
|
|
516
516
|
default:
|
|
517
517
|
return "get";
|
|
518
518
|
}
|
|
519
|
-
},
|
|
520
|
-
const { url:
|
|
521
|
-
if (
|
|
522
|
-
const _ = (
|
|
523
|
-
|
|
519
|
+
}, Tn = (e, t, s) => {
|
|
520
|
+
const { url: r, paginationKeys: c, params: l } = e, i = [], n = (c == null ? void 0 : c.page) ?? "page";
|
|
521
|
+
if (i.push(`${n}=${t}`), typeof s == "string") {
|
|
522
|
+
const _ = (c == null ? void 0 : c.text) ?? "text";
|
|
523
|
+
i.push(`${_}=${encodeURIComponent(s || "")}`);
|
|
524
524
|
}
|
|
525
525
|
if (l && typeof l == "object") {
|
|
526
526
|
const _ = Object.entries(l).map(
|
|
527
527
|
([u, h]) => `${encodeURIComponent(u)}=${encodeURIComponent(h)}`
|
|
528
528
|
);
|
|
529
|
-
|
|
529
|
+
i.push(..._);
|
|
530
530
|
}
|
|
531
|
-
const d =
|
|
532
|
-
return d ? `${
|
|
533
|
-
},
|
|
534
|
-
const { type:
|
|
535
|
-
if (
|
|
536
|
-
const d =
|
|
531
|
+
const d = i.join("&");
|
|
532
|
+
return d ? `${r}?${d}` : r;
|
|
533
|
+
}, De = (e, t, s, r) => {
|
|
534
|
+
const { type: c, url: l, method: i, headers: n } = e;
|
|
535
|
+
if (c === "rest") {
|
|
536
|
+
const d = Tn(e, t, s), _ = { ...(e == null ? void 0 : e.data) ?? {}, ...r ?? {} };
|
|
537
537
|
return {
|
|
538
538
|
type: "rest",
|
|
539
539
|
url: d,
|
|
540
|
-
method: ct(
|
|
540
|
+
method: ct(i),
|
|
541
541
|
headers: n,
|
|
542
542
|
data: _
|
|
543
543
|
};
|
|
@@ -555,11 +555,11 @@ const P = (e) => {
|
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
557
|
}, G = () => {
|
|
558
|
-
const e = N((n) => n), { callEndpoint: t } = at(), s = async (n, d,
|
|
558
|
+
const e = N((n) => n), { callEndpoint: t } = at(), s = async (n, d, a, _, u = !0) => {
|
|
559
559
|
var h;
|
|
560
560
|
try {
|
|
561
561
|
const f = (h = e[n]) == null ? void 0 : h.apiConfig, x = {
|
|
562
|
-
state: { ...
|
|
562
|
+
state: { ...a },
|
|
563
563
|
triggerKey: _
|
|
564
564
|
};
|
|
565
565
|
return u && Y(n, !0), await ot(
|
|
@@ -571,28 +571,28 @@ const P = (e) => {
|
|
|
571
571
|
} catch (f) {
|
|
572
572
|
throw u && Y(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
const { url:
|
|
574
|
+
}, r = (n, d) => {
|
|
575
|
+
const { url: a, headers: _, data: u, params: h } = n;
|
|
576
576
|
switch (ct(n.method)) {
|
|
577
577
|
case "post":
|
|
578
|
-
return
|
|
578
|
+
return ke(a, _, u, {}, !1, d);
|
|
579
579
|
case "put":
|
|
580
|
-
return Nn(
|
|
580
|
+
return Nn(a, _, u, {}, !1, d);
|
|
581
581
|
case "patch":
|
|
582
|
-
return vn(
|
|
582
|
+
return vn(a, _, u, {}, !1, d);
|
|
583
583
|
case "delete":
|
|
584
|
-
return En(
|
|
584
|
+
return En(a, _, u, h, !1, d);
|
|
585
585
|
case "get":
|
|
586
586
|
default:
|
|
587
|
-
return wn(
|
|
587
|
+
return wn(a, _, h, !1, d);
|
|
588
588
|
}
|
|
589
|
-
},
|
|
590
|
-
const { url:
|
|
589
|
+
}, c = (n, d) => {
|
|
590
|
+
const { url: a, headers: _ } = n, u = {
|
|
591
591
|
query: n == null ? void 0 : n.query,
|
|
592
592
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
593
593
|
};
|
|
594
|
-
return
|
|
595
|
-
|
|
594
|
+
return ke(
|
|
595
|
+
a,
|
|
596
596
|
{
|
|
597
597
|
..._,
|
|
598
598
|
"Content-Type": "application/json"
|
|
@@ -602,21 +602,21 @@ const P = (e) => {
|
|
|
602
602
|
!1,
|
|
603
603
|
d
|
|
604
604
|
);
|
|
605
|
-
}, l = async (n, d,
|
|
605
|
+
}, l = async (n, d, a = !0) => {
|
|
606
606
|
var _, u;
|
|
607
607
|
if (!n) {
|
|
608
608
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
a && Y(d, !0);
|
|
612
612
|
try {
|
|
613
613
|
let h;
|
|
614
614
|
switch (n == null ? void 0 : n.type) {
|
|
615
615
|
case "rest":
|
|
616
|
-
h =
|
|
616
|
+
h = r(n, d);
|
|
617
617
|
break;
|
|
618
618
|
case "graphql":
|
|
619
|
-
h =
|
|
619
|
+
h = c(n, d);
|
|
620
620
|
break;
|
|
621
621
|
default:
|
|
622
622
|
throw new Error("[fetchDataSource] Unsupported data source type");
|
|
@@ -633,20 +633,20 @@ const P = (e) => {
|
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
} finally {
|
|
636
|
-
|
|
636
|
+
a && Y(d, !1);
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
639
|
return {
|
|
640
640
|
getNextUI: s,
|
|
641
641
|
fetchDataSource: l,
|
|
642
|
-
fetchAndGetNextUI: async (n, d,
|
|
642
|
+
fetchAndGetNextUI: async (n, d, a, _, u) => {
|
|
643
643
|
try {
|
|
644
644
|
Y(n, !0);
|
|
645
645
|
const h = await l(u, n, !1);
|
|
646
646
|
return h && await s(
|
|
647
647
|
n,
|
|
648
648
|
d,
|
|
649
|
-
|
|
649
|
+
a,
|
|
650
650
|
_
|
|
651
651
|
);
|
|
652
652
|
} catch (h) {
|
|
@@ -657,25 +657,25 @@ const P = (e) => {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
|
-
},
|
|
661
|
-
accordion:
|
|
662
|
-
accordionBody:
|
|
660
|
+
}, kn = "_accordion_1ri2t_1", Sn = "_accordionBody_1ri2t_8", Ue = {
|
|
661
|
+
accordion: kn,
|
|
662
|
+
accordionBody: Sn
|
|
663
663
|
}, An = (e) => {
|
|
664
664
|
const {
|
|
665
665
|
userFlow: t,
|
|
666
666
|
pageId: s,
|
|
667
|
-
responseKey:
|
|
668
|
-
dependencies:
|
|
667
|
+
responseKey: r,
|
|
668
|
+
dependencies: c,
|
|
669
669
|
customContent: l,
|
|
670
|
-
actionContent:
|
|
670
|
+
actionContent: i,
|
|
671
671
|
components: n,
|
|
672
672
|
...d
|
|
673
|
-
} = e, { getNextUI:
|
|
673
|
+
} = e, { getNextUI: a } = G(), [_, u] = O(
|
|
674
674
|
d.checkboxChecked || !1
|
|
675
|
-
), { disabled: h } =
|
|
675
|
+
), { disabled: h } = B(
|
|
676
676
|
t,
|
|
677
|
-
|
|
678
|
-
), f = E(t, s, n), x =
|
|
677
|
+
c
|
|
678
|
+
), f = E(t, s, n), x = i ? E(t, s, i) : void 0, p = l ? E(t, s, l) : void 0, m = q(
|
|
679
679
|
async (b) => {
|
|
680
680
|
var C;
|
|
681
681
|
try {
|
|
@@ -683,14 +683,14 @@ const P = (e) => {
|
|
|
683
683
|
u(j);
|
|
684
684
|
const w = {
|
|
685
685
|
...(C = N.getState()[t]) == null ? void 0 : C.entries,
|
|
686
|
-
[
|
|
686
|
+
[r]: j
|
|
687
687
|
};
|
|
688
|
-
if (
|
|
689
|
-
const v = await
|
|
688
|
+
if (R(t, w), d.actionType === "GO_TO_NEXT_UI") {
|
|
689
|
+
const v = await a(
|
|
690
690
|
t,
|
|
691
691
|
s,
|
|
692
692
|
w,
|
|
693
|
-
|
|
693
|
+
r
|
|
694
694
|
);
|
|
695
695
|
v != null && v.data && L(t, v == null ? void 0 : v.data);
|
|
696
696
|
}
|
|
@@ -698,161 +698,161 @@ const P = (e) => {
|
|
|
698
698
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
699
699
|
}
|
|
700
700
|
},
|
|
701
|
-
[t, s,
|
|
702
|
-
), y = d.disabled || h,
|
|
701
|
+
[t, s, r, d.actionType, a]
|
|
702
|
+
), y = d.disabled || h, g = {
|
|
703
703
|
...d,
|
|
704
704
|
className: Ue.accordion,
|
|
705
705
|
disabled: y,
|
|
706
706
|
checkboxChecked: _,
|
|
707
707
|
onChanceCheckbox: d.hasCheckbox ? m : void 0,
|
|
708
|
-
actionContent: x ? /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((b, C) => /* @__PURE__ */ o.jsx(
|
|
709
|
-
customContent:
|
|
710
|
-
children: f ? /* @__PURE__ */ o.jsx("section", { className: Ue.accordionBody, children: f.map((b, C) => /* @__PURE__ */ o.jsx(
|
|
708
|
+
actionContent: x ? /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-action-${C}`)) }) : void 0,
|
|
709
|
+
customContent: p ? /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-custom-${C}`)) }) : void 0,
|
|
710
|
+
children: f ? /* @__PURE__ */ o.jsx("section", { className: Ue.accordionBody, children: f.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-child-${C}`)) }) : void 0
|
|
711
711
|
};
|
|
712
|
-
return /* @__PURE__ */ o.jsx(gt, { ...
|
|
712
|
+
return /* @__PURE__ */ o.jsx(gt, { ...g });
|
|
713
713
|
}, On = (e) => {
|
|
714
|
-
const t = le.useThemeStore((
|
|
714
|
+
const t = le.useThemeStore((i) => i.theme.mode), s = e.dataSource, r = k(() => ({
|
|
715
715
|
url: e.dataSource.url,
|
|
716
716
|
method: e.dataSource.method,
|
|
717
717
|
headers: e.dataSource.headers,
|
|
718
718
|
params: s == null ? void 0 : s.data
|
|
719
|
-
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]),
|
|
720
|
-
var n, d,
|
|
721
|
-
const
|
|
719
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]), c = e.locale ?? "en", l = k(() => {
|
|
720
|
+
var n, d, a, _, u;
|
|
721
|
+
const i = {
|
|
722
722
|
title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
|
|
723
723
|
welcomeTitle: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.welcomeTitle,
|
|
724
|
-
welcomeDescription: (
|
|
724
|
+
welcomeDescription: (a = e == null ? void 0 : e.translations) == null ? void 0 : a.welcomeDescription,
|
|
725
725
|
placeholder: (_ = e == null ? void 0 : e.translations) == null ? void 0 : _.placeholder,
|
|
726
726
|
disclaimer: (u = e == null ? void 0 : e.translations) == null ? void 0 : u.disclaimer
|
|
727
727
|
};
|
|
728
|
-
return Object.fromEntries(Object.entries(
|
|
728
|
+
return Object.fromEntries(Object.entries(i).filter(([, h]) => !!h));
|
|
729
729
|
}, [e == null ? void 0 : e.translations]);
|
|
730
730
|
return U(() => {
|
|
731
731
|
e.onResolveProps && e.onResolveProps({
|
|
732
|
-
dataSource:
|
|
733
|
-
locale:
|
|
732
|
+
dataSource: r,
|
|
733
|
+
locale: c,
|
|
734
734
|
translations: l,
|
|
735
735
|
initialSuggestions: e.initialSuggestions,
|
|
736
736
|
theme: t
|
|
737
737
|
});
|
|
738
738
|
}, [
|
|
739
739
|
e.onResolveProps,
|
|
740
|
-
|
|
741
|
-
|
|
740
|
+
r,
|
|
741
|
+
c,
|
|
742
742
|
l,
|
|
743
743
|
e.initialSuggestions,
|
|
744
744
|
t
|
|
745
745
|
]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
|
|
746
746
|
zt,
|
|
747
747
|
{
|
|
748
|
-
dataSource:
|
|
749
|
-
locale:
|
|
748
|
+
dataSource: r,
|
|
749
|
+
locale: c,
|
|
750
750
|
translations: l,
|
|
751
751
|
initialSuggestions: e.initialSuggestions,
|
|
752
752
|
theme: t
|
|
753
753
|
}
|
|
754
754
|
);
|
|
755
|
-
}, $n = "_promptCodeEditor_1d57s_1",
|
|
755
|
+
}, $n = "_promptCodeEditor_1d57s_1", Dn = {
|
|
756
756
|
promptCodeEditor: $n
|
|
757
|
-
},
|
|
757
|
+
}, Rn = (e) => {
|
|
758
758
|
const {
|
|
759
759
|
userFlow: t,
|
|
760
760
|
responseKey: s,
|
|
761
|
-
codeBlockValue:
|
|
762
|
-
language:
|
|
761
|
+
codeBlockValue: r,
|
|
762
|
+
language: c,
|
|
763
763
|
disabled: l,
|
|
764
|
-
dependencies:
|
|
764
|
+
dependencies: i,
|
|
765
765
|
dataSource: n,
|
|
766
766
|
inputLabel: d,
|
|
767
|
-
inputPlaceholder:
|
|
767
|
+
inputPlaceholder: a,
|
|
768
768
|
codeBlockLabel: _
|
|
769
|
-
} = e, u = le.useThemeStore((b) => b.theme.mode), [h, f] =
|
|
770
|
-
|
|
771
|
-
), { disabled: x } =
|
|
769
|
+
} = e, u = le.useThemeStore((b) => b.theme.mode), [h, f] = O(
|
|
770
|
+
r || ""
|
|
771
|
+
), { disabled: x } = B(
|
|
772
772
|
t,
|
|
773
|
-
|
|
774
|
-
),
|
|
773
|
+
i
|
|
774
|
+
), p = l ?? x, m = c ?? "json", y = {
|
|
775
775
|
url: (n == null ? void 0 : n.url) || "",
|
|
776
776
|
method: (n == null ? void 0 : n.method) || "post",
|
|
777
777
|
headers: n == null ? void 0 : n.headers,
|
|
778
778
|
body: n == null ? void 0 : n.data
|
|
779
|
-
},
|
|
779
|
+
}, g = (b) => {
|
|
780
780
|
f(b);
|
|
781
781
|
const C = {
|
|
782
782
|
[s]: b
|
|
783
783
|
};
|
|
784
|
-
|
|
784
|
+
R(t, C);
|
|
785
785
|
};
|
|
786
786
|
return U(() => {
|
|
787
|
-
|
|
788
|
-
}, [
|
|
787
|
+
r !== void 0 && r !== h && f(r);
|
|
788
|
+
}, [r]), /* @__PURE__ */ o.jsx("section", { className: Dn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
|
|
789
789
|
Xt,
|
|
790
790
|
{
|
|
791
791
|
themeMode: u,
|
|
792
792
|
requestConfig: y,
|
|
793
793
|
language: m,
|
|
794
|
-
disabled:
|
|
794
|
+
disabled: p,
|
|
795
795
|
inputLabel: d,
|
|
796
|
-
inputPlaceholder:
|
|
796
|
+
inputPlaceholder: a,
|
|
797
797
|
codeBlockLabel: _,
|
|
798
798
|
codeBlockValue: h,
|
|
799
|
-
onCodeChange:
|
|
799
|
+
onCodeChange: g
|
|
800
800
|
}
|
|
801
801
|
) });
|
|
802
|
-
},
|
|
803
|
-
summaryCard:
|
|
802
|
+
}, qn = "_summaryCard_jva4h_1", Ln = {
|
|
803
|
+
summaryCard: qn
|
|
804
804
|
}, In = (e) => {
|
|
805
|
-
const t = e.dataSource, s =
|
|
805
|
+
const t = e.dataSource, s = k(() => ({
|
|
806
806
|
url: e.dataSource.url,
|
|
807
807
|
method: e.dataSource.method,
|
|
808
808
|
headers: e.dataSource.headers,
|
|
809
809
|
body: t == null ? void 0 : t.data
|
|
810
|
-
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]),
|
|
811
|
-
var
|
|
810
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), r = e.locale ?? "en", c = k(() => {
|
|
811
|
+
var i, n, d;
|
|
812
812
|
const l = {
|
|
813
|
-
title: (
|
|
813
|
+
title: (i = e == null ? void 0 : e.translations) == null ? void 0 : i.title,
|
|
814
814
|
loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
|
|
815
815
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
816
816
|
};
|
|
817
817
|
return Object.fromEntries(
|
|
818
|
-
Object.entries(l).filter(([,
|
|
818
|
+
Object.entries(l).filter(([, a]) => !!a)
|
|
819
819
|
);
|
|
820
820
|
}, [e == null ? void 0 : e.translations]);
|
|
821
821
|
return U(() => {
|
|
822
822
|
e.onResolveProps && e.onResolveProps({
|
|
823
823
|
dataSource: s,
|
|
824
|
-
locale:
|
|
825
|
-
translations:
|
|
824
|
+
locale: r,
|
|
825
|
+
translations: c
|
|
826
826
|
});
|
|
827
|
-
}, [e.onResolveProps, s,
|
|
827
|
+
}, [e.onResolveProps, s, r, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Ln.summaryCard, children: /* @__PURE__ */ o.jsx(
|
|
828
828
|
Jt,
|
|
829
829
|
{
|
|
830
830
|
dataSource: s,
|
|
831
|
-
locale:
|
|
832
|
-
translations:
|
|
831
|
+
locale: r,
|
|
832
|
+
translations: c
|
|
833
833
|
}
|
|
834
834
|
) });
|
|
835
835
|
}, Bn = "_body_14tsv_1", Kn = "_body_content_14tsv_5", Ve = {
|
|
836
836
|
body: Bn,
|
|
837
837
|
body_content: Kn
|
|
838
|
-
}, Hn = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Ve.body, children: /* @__PURE__ */ o.jsx("div", { className: Ve.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(
|
|
838
|
+
}, Hn = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Ve.body, children: /* @__PURE__ */ o.jsx("div", { className: Ve.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(S, { children: t }, s)) }) }), Gn = "_slotStack_1b4wy_1", Mn = {
|
|
839
839
|
slotStack: Gn
|
|
840
840
|
}, Un = (e) => {
|
|
841
841
|
const {
|
|
842
842
|
userFlow: t,
|
|
843
843
|
pageId: s,
|
|
844
|
-
component:
|
|
845
|
-
hash:
|
|
844
|
+
component: r,
|
|
845
|
+
hash: c,
|
|
846
846
|
responseKey: l,
|
|
847
|
-
content:
|
|
847
|
+
content: i
|
|
848
848
|
} = e, n = le.useThemeStore((_) => _.theme.mode) === "dark", d = E(
|
|
849
849
|
t,
|
|
850
850
|
s,
|
|
851
|
-
|
|
852
|
-
),
|
|
853
|
-
return /* @__PURE__ */ o.jsx(pt, { darkMode: n, children:
|
|
851
|
+
i != null && i.length ? i : null
|
|
852
|
+
), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Mn.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(S, { children: _ }, `box-${c}-${u}`)) }) : null;
|
|
853
|
+
return /* @__PURE__ */ o.jsx(pt, { darkMode: n, children: a });
|
|
854
854
|
};
|
|
855
|
-
var
|
|
855
|
+
var Ne = { exports: {} };
|
|
856
856
|
/*!
|
|
857
857
|
Copyright (c) 2018 Jed Watson.
|
|
858
858
|
Licensed under the MIT License (MIT), see
|
|
@@ -864,32 +864,32 @@ function Vn() {
|
|
|
864
864
|
(function() {
|
|
865
865
|
var t = {}.hasOwnProperty;
|
|
866
866
|
function s() {
|
|
867
|
-
for (var
|
|
868
|
-
var l = arguments[
|
|
867
|
+
for (var r = [], c = 0; c < arguments.length; c++) {
|
|
868
|
+
var l = arguments[c];
|
|
869
869
|
if (l) {
|
|
870
|
-
var
|
|
871
|
-
if (
|
|
872
|
-
|
|
870
|
+
var i = typeof l;
|
|
871
|
+
if (i === "string" || i === "number")
|
|
872
|
+
r.push(l);
|
|
873
873
|
else if (Array.isArray(l)) {
|
|
874
874
|
if (l.length) {
|
|
875
875
|
var n = s.apply(null, l);
|
|
876
|
-
n &&
|
|
876
|
+
n && r.push(n);
|
|
877
877
|
}
|
|
878
|
-
} else if (
|
|
878
|
+
} else if (i === "object") {
|
|
879
879
|
if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
|
|
880
|
-
|
|
880
|
+
r.push(l.toString());
|
|
881
881
|
continue;
|
|
882
882
|
}
|
|
883
883
|
for (var d in l)
|
|
884
|
-
t.call(l, d) && l[d] &&
|
|
884
|
+
t.call(l, d) && l[d] && r.push(d);
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
return
|
|
888
|
+
return r.join(" ");
|
|
889
889
|
}
|
|
890
890
|
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
891
891
|
})();
|
|
892
|
-
})(
|
|
892
|
+
})(Ne)), Ne.exports;
|
|
893
893
|
}
|
|
894
894
|
var zn = Vn();
|
|
895
895
|
const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColumn_1xrth_8", Wn = "_legend_1xrth_14", Yn = "_options_1xrth_20", Qn = "_optionsRow_1xrth_25", Zn = "_optionsColumn_1xrth_36", Q = {
|
|
@@ -903,37 +903,37 @@ const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
903
903
|
const {
|
|
904
904
|
userFlow: t,
|
|
905
905
|
pageId: s,
|
|
906
|
-
responseKey:
|
|
907
|
-
label:
|
|
906
|
+
responseKey: r,
|
|
907
|
+
label: c,
|
|
908
908
|
value: l,
|
|
909
|
-
required:
|
|
909
|
+
required: i,
|
|
910
910
|
actionType: n,
|
|
911
911
|
dependencies: d,
|
|
912
|
-
direction:
|
|
912
|
+
direction: a,
|
|
913
913
|
items: _
|
|
914
|
-
} = e, u =
|
|
914
|
+
} = e, u = a === "column" ? "column" : "row", { getNextUI: h } = G(), { disabled: f } = B(
|
|
915
915
|
t,
|
|
916
916
|
d
|
|
917
917
|
), x = N(
|
|
918
918
|
(b) => {
|
|
919
919
|
var C, j;
|
|
920
|
-
return (j = (C = b[t]) == null ? void 0 : C.entries) == null ? void 0 : j[
|
|
920
|
+
return (j = (C = b[t]) == null ? void 0 : C.entries) == null ? void 0 : j[r];
|
|
921
921
|
}
|
|
922
|
-
),
|
|
922
|
+
), p = x != null ? String(x) : l ?? "", m = f, y = k(() => c ? i ? `${c} *` : c : null, [c, i]), g = q(
|
|
923
923
|
async (b) => {
|
|
924
924
|
var C;
|
|
925
925
|
if (!m)
|
|
926
926
|
try {
|
|
927
927
|
const j = {
|
|
928
928
|
...(C = N.getState()[t]) == null ? void 0 : C.entries,
|
|
929
|
-
[
|
|
929
|
+
[r]: b
|
|
930
930
|
};
|
|
931
|
-
if (
|
|
931
|
+
if (R(t, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
|
|
932
932
|
const A = await h(
|
|
933
933
|
t,
|
|
934
934
|
s,
|
|
935
935
|
j,
|
|
936
|
-
|
|
936
|
+
r,
|
|
937
937
|
n === "GO_TO_NEXT_UI"
|
|
938
938
|
);
|
|
939
939
|
A != null && A.data && L(t, A == null ? void 0 : A.data);
|
|
@@ -947,7 +947,7 @@ const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
947
947
|
h,
|
|
948
948
|
m,
|
|
949
949
|
s,
|
|
950
|
-
|
|
950
|
+
r,
|
|
951
951
|
t
|
|
952
952
|
]
|
|
953
953
|
);
|
|
@@ -970,13 +970,13 @@ const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
970
970
|
children: _.map((b) => /* @__PURE__ */ o.jsx(
|
|
971
971
|
bt,
|
|
972
972
|
{
|
|
973
|
-
name:
|
|
973
|
+
name: r,
|
|
974
974
|
value: b.value,
|
|
975
|
-
checked:
|
|
975
|
+
checked: p === b.value,
|
|
976
976
|
disabled: m || b.disabled,
|
|
977
977
|
labelRight: b.label,
|
|
978
978
|
onChange: () => {
|
|
979
|
-
|
|
979
|
+
g(b.value);
|
|
980
980
|
}
|
|
981
981
|
},
|
|
982
982
|
b.value
|
|
@@ -990,35 +990,35 @@ const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
990
990
|
userFlow: e,
|
|
991
991
|
pageId: t,
|
|
992
992
|
component: s,
|
|
993
|
-
hash:
|
|
994
|
-
responseKey:
|
|
993
|
+
hash: r,
|
|
994
|
+
responseKey: c,
|
|
995
995
|
items: l,
|
|
996
|
-
itemActive:
|
|
996
|
+
itemActive: i,
|
|
997
997
|
darkMode: n
|
|
998
|
-
}) => /* @__PURE__ */ o.jsx(jt, { items: l, itemActive:
|
|
998
|
+
}) => /* @__PURE__ */ o.jsx(jt, { items: l, itemActive: i, darkMode: n }), es = ({
|
|
999
999
|
userFlow: e,
|
|
1000
1000
|
pageId: t,
|
|
1001
1001
|
component: s,
|
|
1002
|
-
hash:
|
|
1003
|
-
responseKey:
|
|
1002
|
+
hash: r,
|
|
1003
|
+
responseKey: c,
|
|
1004
1004
|
total: l,
|
|
1005
|
-
done:
|
|
1005
|
+
done: i,
|
|
1006
1006
|
inProgress: n
|
|
1007
|
-
}) => /* @__PURE__ */ o.jsx(Ct, { total: l, done:
|
|
1007
|
+
}) => /* @__PURE__ */ o.jsx(Ct, { total: l, done: i, inProgress: n }), ts = ({
|
|
1008
1008
|
userFlow: e,
|
|
1009
1009
|
items: t,
|
|
1010
1010
|
responseKey: s
|
|
1011
1011
|
}) => {
|
|
1012
|
-
const { getNextUI:
|
|
1013
|
-
async ({ actionType:
|
|
1014
|
-
var
|
|
1012
|
+
const { getNextUI: r } = G(), c = q(
|
|
1013
|
+
async ({ actionType: i, hashCode: n, redirectUrl: d }) => {
|
|
1014
|
+
var a;
|
|
1015
1015
|
try {
|
|
1016
|
-
switch (
|
|
1016
|
+
switch (i) {
|
|
1017
1017
|
case "GO_TO_NEXT_UI":
|
|
1018
|
-
const _ = await
|
|
1018
|
+
const _ = await r(
|
|
1019
1019
|
e,
|
|
1020
1020
|
n,
|
|
1021
|
-
{ ...(
|
|
1021
|
+
{ ...(a = N.getState()[e]) == null ? void 0 : a.entries },
|
|
1022
1022
|
s
|
|
1023
1023
|
);
|
|
1024
1024
|
_ != null && _.data && L(e, _ == null ? void 0 : _.data);
|
|
@@ -1027,7 +1027,7 @@ const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
1027
1027
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
1028
1028
|
break;
|
|
1029
1029
|
default:
|
|
1030
|
-
console.warn(`Unhandled actionType: ${
|
|
1030
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
1031
1031
|
break;
|
|
1032
1032
|
}
|
|
1033
1033
|
} catch (_) {
|
|
@@ -1035,27 +1035,27 @@ const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
1035
1035
|
}
|
|
1036
1036
|
},
|
|
1037
1037
|
[]
|
|
1038
|
-
), l =
|
|
1039
|
-
title:
|
|
1040
|
-
component: /* @__PURE__ */ o.jsx("div", { onClick: () => i
|
|
1038
|
+
), l = k(() => t == null ? void 0 : t.map((i) => ({
|
|
1039
|
+
title: i == null ? void 0 : i.title,
|
|
1040
|
+
component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(i) })
|
|
1041
1041
|
})), []);
|
|
1042
1042
|
return /* @__PURE__ */ o.jsx(wt, { items: l });
|
|
1043
1043
|
};
|
|
1044
1044
|
function ge(e, t) {
|
|
1045
|
-
const { getNextUI: s, fetchDataSource:
|
|
1046
|
-
return
|
|
1045
|
+
const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: c } = G();
|
|
1046
|
+
return q(
|
|
1047
1047
|
async (l) => {
|
|
1048
|
-
var h, f, x,
|
|
1049
|
-
const { responseKey:
|
|
1048
|
+
var h, f, x, p;
|
|
1049
|
+
const { responseKey: i, actionType: n, dataSource: d, redirectUrl: a, dependencies: _ } = l, u = (h = N.getState()[e]) == null ? void 0 : h.entries;
|
|
1050
1050
|
if (!rt(u, _))
|
|
1051
1051
|
try {
|
|
1052
1052
|
const m = {
|
|
1053
1053
|
...(f = N.getState()[e]) == null ? void 0 : f.entries,
|
|
1054
|
-
[
|
|
1054
|
+
[i]: { status: 200 }
|
|
1055
1055
|
};
|
|
1056
|
-
switch (
|
|
1056
|
+
switch (R(e, m), n) {
|
|
1057
1057
|
case "CLOSE_MODAL":
|
|
1058
|
-
|
|
1058
|
+
$e(e, !1);
|
|
1059
1059
|
break;
|
|
1060
1060
|
case "CLOSE_DRAWER":
|
|
1061
1061
|
oe(e, !1);
|
|
@@ -1068,30 +1068,30 @@ function ge(e, t) {
|
|
|
1068
1068
|
e,
|
|
1069
1069
|
t,
|
|
1070
1070
|
m,
|
|
1071
|
-
|
|
1071
|
+
i
|
|
1072
1072
|
);
|
|
1073
1073
|
y != null && y.data && L(e, y == null ? void 0 : y.data);
|
|
1074
1074
|
break;
|
|
1075
1075
|
}
|
|
1076
1076
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1077
|
-
const y = await
|
|
1077
|
+
const y = await c(
|
|
1078
1078
|
e,
|
|
1079
1079
|
t,
|
|
1080
1080
|
m,
|
|
1081
|
-
|
|
1081
|
+
i,
|
|
1082
1082
|
d
|
|
1083
1083
|
);
|
|
1084
1084
|
y != null && y.data && L(e, y == null ? void 0 : y.data);
|
|
1085
1085
|
break;
|
|
1086
1086
|
}
|
|
1087
1087
|
case "FETCH_DATA_SOURCE": {
|
|
1088
|
-
const y = await
|
|
1088
|
+
const y = await r(
|
|
1089
1089
|
d,
|
|
1090
1090
|
e,
|
|
1091
1091
|
!1
|
|
1092
1092
|
);
|
|
1093
|
-
|
|
1094
|
-
[
|
|
1093
|
+
R(e, {
|
|
1094
|
+
[i]: {
|
|
1095
1095
|
status: y == null ? void 0 : y.status,
|
|
1096
1096
|
content: y == null ? void 0 : y.data
|
|
1097
1097
|
}
|
|
@@ -1103,29 +1103,29 @@ function ge(e, t) {
|
|
|
1103
1103
|
e,
|
|
1104
1104
|
t,
|
|
1105
1105
|
m,
|
|
1106
|
-
|
|
1107
|
-
),
|
|
1108
|
-
if ((
|
|
1106
|
+
i
|
|
1107
|
+
), g = (x = y == null ? void 0 : y.data) == null ? void 0 : x.content;
|
|
1108
|
+
if ((g == null ? void 0 : g.type) !== "fetch")
|
|
1109
1109
|
break;
|
|
1110
|
-
const b =
|
|
1111
|
-
...(
|
|
1112
|
-
[
|
|
1110
|
+
const b = g == null ? void 0 : g.dataSource, C = await r(b, e, !1), j = {
|
|
1111
|
+
...(p = N.getState()[e]) == null ? void 0 : p.entries,
|
|
1112
|
+
[i]: {
|
|
1113
1113
|
status: C == null ? void 0 : C.status,
|
|
1114
1114
|
content: C == null ? void 0 : C.data
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
1117
|
-
|
|
1117
|
+
R(e, j);
|
|
1118
1118
|
const w = await s(
|
|
1119
1119
|
e,
|
|
1120
1120
|
t,
|
|
1121
1121
|
j,
|
|
1122
|
-
|
|
1122
|
+
i
|
|
1123
1123
|
);
|
|
1124
1124
|
w != null && w.data && L(e, w == null ? void 0 : w.data);
|
|
1125
1125
|
break;
|
|
1126
1126
|
}
|
|
1127
1127
|
case "REDIRECT":
|
|
1128
|
-
|
|
1128
|
+
a ? window.location.href = a : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
1129
1129
|
break;
|
|
1130
1130
|
default:
|
|
1131
1131
|
console.warn(`Unhandled actionType: ${n}`);
|
|
@@ -1135,8 +1135,8 @@ function ge(e, t) {
|
|
|
1135
1135
|
}
|
|
1136
1136
|
},
|
|
1137
1137
|
[
|
|
1138
|
-
|
|
1139
|
-
|
|
1138
|
+
c,
|
|
1139
|
+
r,
|
|
1140
1140
|
s,
|
|
1141
1141
|
t,
|
|
1142
1142
|
e
|
|
@@ -1147,45 +1147,45 @@ const ns = (e) => {
|
|
|
1147
1147
|
const {
|
|
1148
1148
|
userFlow: t,
|
|
1149
1149
|
pageId: s,
|
|
1150
|
-
responseKey:
|
|
1151
|
-
actionType:
|
|
1150
|
+
responseKey: r,
|
|
1151
|
+
actionType: c,
|
|
1152
1152
|
label: l,
|
|
1153
|
-
content:
|
|
1153
|
+
content: i,
|
|
1154
1154
|
dataSource: n,
|
|
1155
1155
|
redirectUrl: d,
|
|
1156
|
-
dependencies:
|
|
1156
|
+
dependencies: a,
|
|
1157
1157
|
onClick: _,
|
|
1158
1158
|
...u
|
|
1159
|
-
} = e, h = ge(t, s), { disabled: f } =
|
|
1159
|
+
} = e, h = ge(t, s), { disabled: f } = B(
|
|
1160
1160
|
t,
|
|
1161
|
-
|
|
1161
|
+
a
|
|
1162
1162
|
), x = {
|
|
1163
1163
|
...u,
|
|
1164
|
-
children:
|
|
1165
|
-
},
|
|
1166
|
-
if (
|
|
1164
|
+
children: i ?? l
|
|
1165
|
+
}, p = (x == null ? void 0 : x.disabled) ?? f, [m, y] = O(!1), g = ie(!1), b = q(async () => {
|
|
1166
|
+
if (g.current)
|
|
1167
1167
|
return;
|
|
1168
|
-
const C =
|
|
1169
|
-
C && (
|
|
1168
|
+
const C = c === "FETCH_DATA_SOURCE";
|
|
1169
|
+
C && (g.current = !0, y(!0));
|
|
1170
1170
|
try {
|
|
1171
1171
|
await h({
|
|
1172
|
-
responseKey:
|
|
1173
|
-
actionType:
|
|
1172
|
+
responseKey: r,
|
|
1173
|
+
actionType: c,
|
|
1174
1174
|
dataSource: n,
|
|
1175
1175
|
redirectUrl: d,
|
|
1176
|
-
dependencies:
|
|
1176
|
+
dependencies: a
|
|
1177
1177
|
});
|
|
1178
1178
|
} catch (j) {
|
|
1179
1179
|
console.error("[ButtonNotFront] Action failed:", j);
|
|
1180
1180
|
} finally {
|
|
1181
|
-
C && (
|
|
1181
|
+
C && (g.current = !1, y(!1));
|
|
1182
1182
|
}
|
|
1183
1183
|
}, [
|
|
1184
|
-
|
|
1184
|
+
c,
|
|
1185
1185
|
n,
|
|
1186
|
-
r,
|
|
1187
|
-
d,
|
|
1188
1186
|
a,
|
|
1187
|
+
d,
|
|
1188
|
+
r,
|
|
1189
1189
|
h
|
|
1190
1190
|
]);
|
|
1191
1191
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1193,8 +1193,8 @@ const ns = (e) => {
|
|
|
1193
1193
|
{
|
|
1194
1194
|
...x,
|
|
1195
1195
|
loading: x.loading || m,
|
|
1196
|
-
disabled:
|
|
1197
|
-
onClick: () => !
|
|
1196
|
+
disabled: p,
|
|
1197
|
+
onClick: () => !p && !m && (_ ?? b)()
|
|
1198
1198
|
}
|
|
1199
1199
|
);
|
|
1200
1200
|
}, ss = "_slotStack_12u4t_5", Xe = {
|
|
@@ -1203,16 +1203,16 @@ const ns = (e) => {
|
|
|
1203
1203
|
const {
|
|
1204
1204
|
userFlow: t,
|
|
1205
1205
|
pageId: s,
|
|
1206
|
-
component:
|
|
1207
|
-
hash:
|
|
1206
|
+
component: r,
|
|
1207
|
+
hash: c,
|
|
1208
1208
|
responseKey: l,
|
|
1209
|
-
dependencies:
|
|
1209
|
+
dependencies: i,
|
|
1210
1210
|
content: n,
|
|
1211
1211
|
actionContent: d,
|
|
1212
|
-
...
|
|
1213
|
-
} = e, { disabled: _ } =
|
|
1212
|
+
...a
|
|
1213
|
+
} = e, { disabled: _ } = B(
|
|
1214
1214
|
t,
|
|
1215
|
-
|
|
1215
|
+
i
|
|
1216
1216
|
), u = E(
|
|
1217
1217
|
t,
|
|
1218
1218
|
s,
|
|
@@ -1221,12 +1221,12 @@ const ns = (e) => {
|
|
|
1221
1221
|
t,
|
|
1222
1222
|
s,
|
|
1223
1223
|
d && d.length > 0 ? d : null
|
|
1224
|
-
), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: u.map((m, y) => /* @__PURE__ */ o.jsx(
|
|
1224
|
+
), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: u.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `card-accordion-body-${c}-${y}`)) }) : void 0, x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: h.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `card-accordion-actions-${c}-${y}`)) }) : void 0, p = a.disabled || _;
|
|
1225
1225
|
return /* @__PURE__ */ o.jsx(
|
|
1226
1226
|
vt,
|
|
1227
1227
|
{
|
|
1228
|
-
...
|
|
1229
|
-
disabled:
|
|
1228
|
+
...a,
|
|
1229
|
+
disabled: p,
|
|
1230
1230
|
actionContent: x,
|
|
1231
1231
|
children: f ?? null
|
|
1232
1232
|
}
|
|
@@ -1237,34 +1237,34 @@ const ns = (e) => {
|
|
|
1237
1237
|
const {
|
|
1238
1238
|
userFlow: t,
|
|
1239
1239
|
pageId: s,
|
|
1240
|
-
component:
|
|
1241
|
-
hash:
|
|
1240
|
+
component: r,
|
|
1241
|
+
hash: c,
|
|
1242
1242
|
responseKey: l,
|
|
1243
|
-
content:
|
|
1243
|
+
content: i,
|
|
1244
1244
|
colorId: n,
|
|
1245
1245
|
disabled: d,
|
|
1246
|
-
actionType:
|
|
1246
|
+
actionType: a,
|
|
1247
1247
|
dataSource: _,
|
|
1248
1248
|
redirectUrl: u,
|
|
1249
1249
|
dependencies: h
|
|
1250
|
-
} = e, { getNextUI: f, fetchDataSource: x, fetchAndGetNextUI:
|
|
1250
|
+
} = e, { getNextUI: f, fetchDataSource: x, fetchAndGetNextUI: p } = G(), { disabled: m } = B(
|
|
1251
1251
|
t,
|
|
1252
1252
|
h
|
|
1253
|
-
), y = d ?? m,
|
|
1253
|
+
), y = d ?? m, g = E(
|
|
1254
1254
|
t,
|
|
1255
1255
|
s,
|
|
1256
|
-
|
|
1257
|
-
), b =
|
|
1256
|
+
i && i.length > 0 ? i : null
|
|
1257
|
+
), b = g && g.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: os.slotStack, children: g.map((j, w) => /* @__PURE__ */ o.jsx(S, { children: j }, `card-body-${c}-${w}`)) }) : null, C = q(async () => {
|
|
1258
1258
|
var j, w, v;
|
|
1259
|
-
if (!(!
|
|
1259
|
+
if (!(!a || y))
|
|
1260
1260
|
try {
|
|
1261
1261
|
const A = {
|
|
1262
1262
|
...(j = N.getState()[t]) == null ? void 0 : j.entries,
|
|
1263
1263
|
[l]: { status: 200 }
|
|
1264
1264
|
};
|
|
1265
|
-
switch (
|
|
1265
|
+
switch (R(t, A), a) {
|
|
1266
1266
|
case "CLOSE_MODAL":
|
|
1267
|
-
|
|
1267
|
+
$e(t, !1);
|
|
1268
1268
|
break;
|
|
1269
1269
|
case "CLOSE_DRAWER":
|
|
1270
1270
|
oe(t, !1);
|
|
@@ -1274,67 +1274,67 @@ const ns = (e) => {
|
|
|
1274
1274
|
break;
|
|
1275
1275
|
case "GO_TO_NEXT_UI":
|
|
1276
1276
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1277
|
-
const
|
|
1277
|
+
const D = await f(
|
|
1278
1278
|
t,
|
|
1279
1279
|
s,
|
|
1280
1280
|
A,
|
|
1281
1281
|
l,
|
|
1282
|
-
|
|
1282
|
+
a === "GO_TO_NEXT_UI"
|
|
1283
1283
|
);
|
|
1284
|
-
|
|
1284
|
+
D != null && D.data && L(t, D == null ? void 0 : D.data);
|
|
1285
1285
|
break;
|
|
1286
1286
|
}
|
|
1287
1287
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1288
|
-
const
|
|
1288
|
+
const $ = await p(
|
|
1289
1289
|
t,
|
|
1290
1290
|
s,
|
|
1291
1291
|
A,
|
|
1292
1292
|
l,
|
|
1293
1293
|
_
|
|
1294
1294
|
);
|
|
1295
|
-
|
|
1295
|
+
$ != null && $.data && L(t, $ == null ? void 0 : $.data);
|
|
1296
1296
|
break;
|
|
1297
1297
|
}
|
|
1298
1298
|
case "GET_DATA_SOURCE": {
|
|
1299
|
-
const
|
|
1299
|
+
const $ = await f(
|
|
1300
1300
|
t,
|
|
1301
1301
|
s,
|
|
1302
1302
|
A,
|
|
1303
1303
|
l
|
|
1304
|
-
),
|
|
1305
|
-
if ((
|
|
1304
|
+
), D = (w = $ == null ? void 0 : $.data) == null ? void 0 : w.content;
|
|
1305
|
+
if ((D == null ? void 0 : D.type) !== "fetch")
|
|
1306
1306
|
break;
|
|
1307
|
-
const J =
|
|
1307
|
+
const J = D == null ? void 0 : D.dataSource, V = await x(J, t, !1), T = {
|
|
1308
1308
|
...(v = N.getState()[t]) == null ? void 0 : v.entries,
|
|
1309
1309
|
[l]: {
|
|
1310
1310
|
status: V == null ? void 0 : V.status,
|
|
1311
1311
|
content: V == null ? void 0 : V.data
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1314
|
+
R(t, T);
|
|
1315
|
+
const K = await f(
|
|
1316
1316
|
t,
|
|
1317
1317
|
s,
|
|
1318
|
-
|
|
1318
|
+
T,
|
|
1319
1319
|
l
|
|
1320
1320
|
);
|
|
1321
|
-
|
|
1321
|
+
K != null && K.data && L(t, K == null ? void 0 : K.data);
|
|
1322
1322
|
break;
|
|
1323
1323
|
}
|
|
1324
1324
|
case "REDIRECT":
|
|
1325
1325
|
u && (window.location.href = u);
|
|
1326
1326
|
break;
|
|
1327
1327
|
default:
|
|
1328
|
-
console.warn(`Unhandled card actionType: ${
|
|
1328
|
+
console.warn(`Unhandled card actionType: ${a}`);
|
|
1329
1329
|
}
|
|
1330
1330
|
} catch (A) {
|
|
1331
1331
|
alert(JSON.stringify(A));
|
|
1332
1332
|
}
|
|
1333
1333
|
}, [
|
|
1334
|
-
|
|
1334
|
+
a,
|
|
1335
1335
|
_,
|
|
1336
1336
|
y,
|
|
1337
|
-
|
|
1337
|
+
p,
|
|
1338
1338
|
x,
|
|
1339
1339
|
f,
|
|
1340
1340
|
s,
|
|
@@ -1347,69 +1347,70 @@ const ns = (e) => {
|
|
|
1347
1347
|
{
|
|
1348
1348
|
colorId: n,
|
|
1349
1349
|
disabled: y,
|
|
1350
|
-
onClick:
|
|
1350
|
+
onClick: a && !y ? () => void C() : void 0,
|
|
1351
1351
|
children: b
|
|
1352
1352
|
}
|
|
1353
1353
|
);
|
|
1354
1354
|
}, is = (e) => {
|
|
1355
|
-
const { content: t, description: s, ...
|
|
1356
|
-
...
|
|
1355
|
+
const { content: t, description: s, ...r } = e, c = {
|
|
1356
|
+
...r,
|
|
1357
1357
|
children: t ?? s
|
|
1358
1358
|
};
|
|
1359
|
-
return /* @__PURE__ */ o.jsx(xe, { ...
|
|
1360
|
-
},
|
|
1359
|
+
return /* @__PURE__ */ o.jsx(xe, { ...c });
|
|
1360
|
+
}, ve = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ls = (e, t) => {
|
|
1361
1361
|
if (!t || e == null)
|
|
1362
1362
|
return null;
|
|
1363
|
-
const { extractionJsonPath: s, injectionJsonPath:
|
|
1364
|
-
if (
|
|
1363
|
+
const { extractionJsonPath: s, injectionJsonPath: r } = t, c = I.value(e, s);
|
|
1364
|
+
if (c == null)
|
|
1365
1365
|
return null;
|
|
1366
1366
|
try {
|
|
1367
1367
|
const l = {};
|
|
1368
|
-
return
|
|
1368
|
+
return I.value(l, r, c), l;
|
|
1369
1369
|
} catch (l) {
|
|
1370
1370
|
return console.warn(
|
|
1371
1371
|
"[buildCursorPayload] invalid injectionJsonPath:",
|
|
1372
|
-
|
|
1372
|
+
r,
|
|
1373
1373
|
l
|
|
1374
1374
|
), null;
|
|
1375
1375
|
}
|
|
1376
|
-
}, it = (e, t, s,
|
|
1377
|
-
const
|
|
1378
|
-
var
|
|
1376
|
+
}, it = (e, t, s, r) => {
|
|
1377
|
+
const c = I.query(e, t), l = c == null ? void 0 : c.map((_) => {
|
|
1378
|
+
var u, h;
|
|
1379
1379
|
if (s) {
|
|
1380
|
-
const
|
|
1381
|
-
for (const [
|
|
1382
|
-
if (typeof
|
|
1383
|
-
const
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
) :
|
|
1380
|
+
const f = {};
|
|
1381
|
+
for (const [x, p] of Object.entries(s))
|
|
1382
|
+
if (typeof p == "object" && "path" in p) {
|
|
1383
|
+
const m = p, y = (u = I.query(_, m.path)) == null ? void 0 : u[0];
|
|
1384
|
+
m.translations && String(y) in m.translations ? f[x] = ve(
|
|
1385
|
+
m.translations[String(y)]
|
|
1386
|
+
) : f[x] = ve(y);
|
|
1387
1387
|
} else {
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1388
|
+
const m = p;
|
|
1389
|
+
f[x] = ve((h = I.query(_, m)) == null ? void 0 : h[0]);
|
|
1390
1390
|
}
|
|
1391
|
-
return
|
|
1391
|
+
return f;
|
|
1392
1392
|
} else
|
|
1393
|
-
return
|
|
1394
|
-
}),
|
|
1395
|
-
size:
|
|
1393
|
+
return _;
|
|
1394
|
+
}), i = I.value(e, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? c.length, n = I.value(e, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = r != null && r.hasMore ? !!I.value(e, r.hasMore) : void 0, a = {
|
|
1395
|
+
size: i,
|
|
1396
1396
|
total: n,
|
|
1397
|
-
totalPages:
|
|
1397
|
+
totalPages: r != null && r.totalPages ? I.value(
|
|
1398
1398
|
e,
|
|
1399
|
-
(
|
|
1400
|
-
) :
|
|
1399
|
+
(r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
|
|
1400
|
+
) : i > 0 ? Math.ceil(n / i) : 0,
|
|
1401
|
+
...d !== void 0 ? { hasMore: d } : {}
|
|
1401
1402
|
};
|
|
1402
|
-
return { items: l, pagination:
|
|
1403
|
+
return { items: l, pagination: a };
|
|
1403
1404
|
}, ue = ({
|
|
1404
1405
|
width: e,
|
|
1405
1406
|
height: t,
|
|
1406
1407
|
layout: s,
|
|
1407
|
-
data:
|
|
1408
|
-
Chart:
|
|
1408
|
+
data: r,
|
|
1409
|
+
Chart: c,
|
|
1409
1410
|
children: l
|
|
1410
1411
|
}) => {
|
|
1411
|
-
const
|
|
1412
|
-
return e ? /* @__PURE__ */ o.jsx(
|
|
1412
|
+
const i = t ?? ce, n = s ? { layout: s } : {};
|
|
1413
|
+
return e ? /* @__PURE__ */ o.jsx(c, { width: e, height: i, data: r, ...n, children: l }) : /* @__PURE__ */ o.jsx(nt, { width: "100%", height: i, children: /* @__PURE__ */ o.jsx(c, { data: r, ...n, children: l }) });
|
|
1413
1414
|
}, ee = ({ withPadding: e = !1 }) => {
|
|
1414
1415
|
const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: M.labelColor }, children: s });
|
|
1415
1416
|
return /* @__PURE__ */ o.jsx(
|
|
@@ -1427,8 +1428,8 @@ const ns = (e) => {
|
|
|
1427
1428
|
active: e,
|
|
1428
1429
|
payload: t,
|
|
1429
1430
|
label: s,
|
|
1430
|
-
tooltipKey:
|
|
1431
|
-
tooltipCoverage:
|
|
1431
|
+
tooltipKey: r,
|
|
1432
|
+
tooltipCoverage: c
|
|
1432
1433
|
}) => {
|
|
1433
1434
|
var _, u;
|
|
1434
1435
|
if (!e || !t || !t.length)
|
|
@@ -1440,17 +1441,17 @@ const ns = (e) => {
|
|
|
1440
1441
|
padding: "8px 12px",
|
|
1441
1442
|
border: "1px solid #e5e7eb"
|
|
1442
1443
|
};
|
|
1443
|
-
if (
|
|
1444
|
+
if (r) {
|
|
1444
1445
|
const h = (_ = t[0]) == null ? void 0 : _.payload;
|
|
1445
|
-
if (h && h[
|
|
1446
|
-
return /* @__PURE__ */ o.jsx("div", { style: l, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: h[
|
|
1446
|
+
if (h && h[r] !== void 0 && h[r] !== null)
|
|
1447
|
+
return /* @__PURE__ */ o.jsx("div", { style: l, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: h[r] }) });
|
|
1447
1448
|
}
|
|
1448
|
-
const
|
|
1449
|
+
const i = (u = t[0]) == null ? void 0 : u.payload, n = (c == null ? void 0 : c.label) ?? "Cobertura", d = c ? i == null ? void 0 : i[c.denominatorKey] : void 0, a = c && d !== void 0 && d !== null && d > 0;
|
|
1449
1450
|
return /* @__PURE__ */ o.jsxs("div", { style: l, children: [
|
|
1450
1451
|
/* @__PURE__ */ o.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1451
1452
|
t.map((h, f) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: h.color }, children: `${h.name}: ${h.value}` }, f)),
|
|
1452
|
-
|
|
1453
|
-
c
|
|
1453
|
+
a && /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0" }, children: `${n}: ${Math.round(
|
|
1454
|
+
i[c.numeratorKey] / d * 100
|
|
1454
1455
|
)}%` })
|
|
1455
1456
|
] });
|
|
1456
1457
|
}, te = ({
|
|
@@ -1491,39 +1492,39 @@ const ns = (e) => {
|
|
|
1491
1492
|
tickMargin: 4
|
|
1492
1493
|
}
|
|
1493
1494
|
), _s = (e) => {
|
|
1494
|
-
const { data: t, xKey: s, yKeys:
|
|
1495
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: c, width: l } = e;
|
|
1495
1496
|
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: Ft, children: [
|
|
1496
1497
|
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1497
1498
|
/* @__PURE__ */ o.jsx(he, { dataKey: s }),
|
|
1498
1499
|
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1499
|
-
/* @__PURE__ */ o.jsx(te, { tooltipKey:
|
|
1500
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: c }),
|
|
1500
1501
|
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1501
|
-
|
|
1502
|
+
r.map((i, n) => /* @__PURE__ */ o.jsx(
|
|
1502
1503
|
Pt,
|
|
1503
1504
|
{
|
|
1504
1505
|
type: "monotone",
|
|
1505
|
-
dataKey:
|
|
1506
|
+
dataKey: i,
|
|
1506
1507
|
stroke: H[n % H.length],
|
|
1507
1508
|
fill: H[n % H.length]
|
|
1508
1509
|
},
|
|
1509
|
-
|
|
1510
|
+
i
|
|
1510
1511
|
))
|
|
1511
1512
|
] });
|
|
1512
1513
|
}, us = (e) => {
|
|
1513
|
-
const { data: t, yKeys: s, xKey:
|
|
1514
|
-
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart:
|
|
1514
|
+
const { data: t, yKeys: s, xKey: r, tooltipKey: c, width: l } = e;
|
|
1515
|
+
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: Se, children: [
|
|
1515
1516
|
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1516
|
-
/* @__PURE__ */ o.jsx(he, { dataKey:
|
|
1517
|
+
/* @__PURE__ */ o.jsx(he, { dataKey: r }),
|
|
1517
1518
|
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1518
|
-
/* @__PURE__ */ o.jsx(te, { tooltipKey:
|
|
1519
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: c }),
|
|
1519
1520
|
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1520
|
-
s.map((
|
|
1521
|
-
|
|
1521
|
+
s.map((i, n) => /* @__PURE__ */ o.jsx(
|
|
1522
|
+
Ae,
|
|
1522
1523
|
{
|
|
1523
|
-
dataKey:
|
|
1524
|
+
dataKey: i,
|
|
1524
1525
|
fill: H[n % H.length]
|
|
1525
1526
|
},
|
|
1526
|
-
|
|
1527
|
+
i
|
|
1527
1528
|
))
|
|
1528
1529
|
] });
|
|
1529
1530
|
};
|
|
@@ -1536,50 +1537,50 @@ function fs(e, t = js, s) {
|
|
|
1536
1537
|
function ys(e, t, s) {
|
|
1537
1538
|
if (s !== void 0)
|
|
1538
1539
|
return s;
|
|
1539
|
-
const
|
|
1540
|
-
const
|
|
1541
|
-
return Math.max(
|
|
1540
|
+
const r = e.reduce((c, l) => {
|
|
1541
|
+
const i = String(l[t] ?? "");
|
|
1542
|
+
return Math.max(c, i.length);
|
|
1542
1543
|
}, 0);
|
|
1543
1544
|
return Math.max(
|
|
1544
1545
|
Cs,
|
|
1545
|
-
|
|
1546
|
+
r * ws
|
|
1546
1547
|
);
|
|
1547
1548
|
}
|
|
1548
1549
|
const xs = (e) => {
|
|
1549
1550
|
const {
|
|
1550
1551
|
data: t,
|
|
1551
1552
|
yKeys: s,
|
|
1552
|
-
xKey:
|
|
1553
|
-
tooltipKey:
|
|
1553
|
+
xKey: r,
|
|
1554
|
+
tooltipKey: c,
|
|
1554
1555
|
minCategoryHeight: l,
|
|
1555
|
-
chartHeight:
|
|
1556
|
+
chartHeight: i,
|
|
1556
1557
|
tooltipCoverage: n,
|
|
1557
1558
|
showLegend: d = !0,
|
|
1558
|
-
yKeyLabels:
|
|
1559
|
+
yKeyLabels: a,
|
|
1559
1560
|
yAxisWidth: _
|
|
1560
1561
|
} = e, u = fs(
|
|
1561
1562
|
t.length,
|
|
1562
1563
|
l,
|
|
1563
|
-
|
|
1564
|
-
), h = ys(t,
|
|
1564
|
+
i
|
|
1565
|
+
), h = ys(t, r, _);
|
|
1565
1566
|
return /* @__PURE__ */ o.jsxs(
|
|
1566
1567
|
ue,
|
|
1567
1568
|
{
|
|
1568
1569
|
height: u,
|
|
1569
1570
|
layout: "vertical",
|
|
1570
1571
|
data: t,
|
|
1571
|
-
Chart:
|
|
1572
|
+
Chart: Se,
|
|
1572
1573
|
children: [
|
|
1573
1574
|
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3", horizontal: !1 }),
|
|
1574
1575
|
/* @__PURE__ */ o.jsx(he, { type: "number" }),
|
|
1575
|
-
/* @__PURE__ */ o.jsx(fe, { type: "category", dataKey:
|
|
1576
|
-
/* @__PURE__ */ o.jsx(te, { tooltipKey:
|
|
1576
|
+
/* @__PURE__ */ o.jsx(fe, { type: "category", dataKey: r, width: h }),
|
|
1577
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: c, tooltipCoverage: n }),
|
|
1577
1578
|
d && /* @__PURE__ */ o.jsx(ee, {}),
|
|
1578
1579
|
s.map((f, x) => /* @__PURE__ */ o.jsx(
|
|
1579
|
-
|
|
1580
|
+
Ae,
|
|
1580
1581
|
{
|
|
1581
1582
|
dataKey: f,
|
|
1582
|
-
name: (
|
|
1583
|
+
name: (a == null ? void 0 : a[f]) ?? f,
|
|
1583
1584
|
fill: H[x % H.length]
|
|
1584
1585
|
},
|
|
1585
1586
|
f
|
|
@@ -1588,61 +1589,61 @@ const xs = (e) => {
|
|
|
1588
1589
|
}
|
|
1589
1590
|
);
|
|
1590
1591
|
}, ms = (e) => {
|
|
1591
|
-
const { data: t, xKey: s, yKeys:
|
|
1592
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: c, width: l } = e;
|
|
1592
1593
|
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: en, children: [
|
|
1593
1594
|
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1594
1595
|
/* @__PURE__ */ o.jsx(he, { dataKey: s }),
|
|
1595
1596
|
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1596
|
-
/* @__PURE__ */ o.jsx(te, { tooltipKey:
|
|
1597
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: c }),
|
|
1597
1598
|
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1598
|
-
|
|
1599
|
+
r.map((i, n) => /* @__PURE__ */ o.jsx(
|
|
1599
1600
|
tn,
|
|
1600
1601
|
{
|
|
1601
1602
|
type: "monotone",
|
|
1602
|
-
dataKey:
|
|
1603
|
+
dataKey: i,
|
|
1603
1604
|
stroke: H[n % H.length],
|
|
1604
1605
|
strokeWidth: 2,
|
|
1605
1606
|
dot: !1
|
|
1606
1607
|
},
|
|
1607
|
-
|
|
1608
|
+
i
|
|
1608
1609
|
))
|
|
1609
1610
|
] });
|
|
1610
1611
|
};
|
|
1611
1612
|
var gs = { NODE_ENV: "production" };
|
|
1612
1613
|
const ps = (e) => {
|
|
1613
|
-
const { data: t, xKey: s, series:
|
|
1614
|
-
return !
|
|
1614
|
+
const { data: t, xKey: s, series: r = [], tooltipKey: c, width: l } = e;
|
|
1615
|
+
return !r.length && gs.NODE_ENV, /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: Se, children: [
|
|
1615
1616
|
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1616
1617
|
/* @__PURE__ */ o.jsx(he, { dataKey: s }),
|
|
1617
1618
|
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1618
|
-
/* @__PURE__ */ o.jsx(te, { tooltipKey:
|
|
1619
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: c }),
|
|
1619
1620
|
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1620
|
-
|
|
1621
|
-
|
|
1621
|
+
r.map((i, n) => /* @__PURE__ */ o.jsx(
|
|
1622
|
+
Ae,
|
|
1622
1623
|
{
|
|
1623
|
-
dataKey:
|
|
1624
|
-
name:
|
|
1625
|
-
stackId:
|
|
1626
|
-
fill:
|
|
1624
|
+
dataKey: i.key,
|
|
1625
|
+
name: i.label ?? i.key,
|
|
1626
|
+
stackId: i.stackId,
|
|
1627
|
+
fill: i.color ?? H[n % H.length]
|
|
1627
1628
|
},
|
|
1628
|
-
|
|
1629
|
+
i.key
|
|
1629
1630
|
))
|
|
1630
1631
|
] });
|
|
1631
1632
|
}, bs = (e) => {
|
|
1632
|
-
const { data: t, xKey: s, yKeys:
|
|
1633
|
-
cx:
|
|
1633
|
+
const { data: t, xKey: s, yKeys: r, tooltipKey: c } = e, l = ({
|
|
1634
|
+
cx: i,
|
|
1634
1635
|
cy: n,
|
|
1635
1636
|
midAngle: d,
|
|
1636
|
-
innerRadius:
|
|
1637
|
+
innerRadius: a,
|
|
1637
1638
|
outerRadius: _,
|
|
1638
1639
|
value: u
|
|
1639
1640
|
}) => {
|
|
1640
|
-
const h = Math.PI / 180, f = 25 +
|
|
1641
|
+
const h = Math.PI / 180, f = 25 + a + (_ - a), x = i + f * Math.cos(-(d ?? 0) * h), p = n + f * Math.sin(-(d ?? 0) * h);
|
|
1641
1642
|
return /* @__PURE__ */ o.jsx(
|
|
1642
1643
|
"text",
|
|
1643
1644
|
{
|
|
1644
1645
|
x,
|
|
1645
|
-
y:
|
|
1646
|
+
y: p,
|
|
1646
1647
|
fill: M.labelColor,
|
|
1647
1648
|
color: M.labelColor,
|
|
1648
1649
|
textAnchor: "middle",
|
|
@@ -1652,17 +1653,17 @@ const ps = (e) => {
|
|
|
1652
1653
|
);
|
|
1653
1654
|
};
|
|
1654
1655
|
return /* @__PURE__ */ o.jsx(nt, { width: "100%", height: ce, children: /* @__PURE__ */ o.jsxs(nn, { children: [
|
|
1655
|
-
/* @__PURE__ */ o.jsx(te, { tooltipKey:
|
|
1656
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: c }),
|
|
1656
1657
|
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1657
1658
|
/* @__PURE__ */ o.jsx(
|
|
1658
1659
|
sn,
|
|
1659
1660
|
{
|
|
1660
1661
|
data: t,
|
|
1661
|
-
dataKey:
|
|
1662
|
+
dataKey: r[0],
|
|
1662
1663
|
nameKey: s,
|
|
1663
1664
|
label: l,
|
|
1664
1665
|
outerRadius: 120,
|
|
1665
|
-
children: t.map((
|
|
1666
|
+
children: t.map((i, n) => /* @__PURE__ */ o.jsx(
|
|
1666
1667
|
rn,
|
|
1667
1668
|
{
|
|
1668
1669
|
fill: H[n % H.length]
|
|
@@ -1709,17 +1710,17 @@ const ps = (e) => {
|
|
|
1709
1710
|
tooltipBg: "#fff",
|
|
1710
1711
|
tooltipColor: "#000",
|
|
1711
1712
|
tooltipBorderRadius: "4px"
|
|
1712
|
-
}, Es = "_chartScrollViewport_sm5hx_1",
|
|
1713
|
+
}, Es = "_chartScrollViewport_sm5hx_1", Ts = "_chartScrollViewport_track_sm5hx_29", Je = {
|
|
1713
1714
|
chartScrollViewport: Es,
|
|
1714
|
-
chartScrollViewport_track:
|
|
1715
|
-
},
|
|
1715
|
+
chartScrollViewport_track: Ts
|
|
1716
|
+
}, ks = "Scrollable chart area", Ss = ({
|
|
1716
1717
|
dataLength: e,
|
|
1717
1718
|
minCategoryWidth: t,
|
|
1718
1719
|
children: s
|
|
1719
1720
|
}) => {
|
|
1720
|
-
const
|
|
1721
|
+
const r = ie(null), [c, l] = O(0), i = t ?? lt;
|
|
1721
1722
|
U(() => {
|
|
1722
|
-
const _ =
|
|
1723
|
+
const _ = r.current;
|
|
1723
1724
|
if (!_)
|
|
1724
1725
|
return;
|
|
1725
1726
|
const u = () => {
|
|
@@ -1730,19 +1731,19 @@ const ps = (e) => {
|
|
|
1730
1731
|
return h.observe(_), () => h.disconnect();
|
|
1731
1732
|
}, []);
|
|
1732
1733
|
const n = hs(
|
|
1733
|
-
|
|
1734
|
+
c,
|
|
1734
1735
|
e,
|
|
1735
|
-
|
|
1736
|
-
), d =
|
|
1736
|
+
i
|
|
1737
|
+
), d = c > 0 && n > c, a = q(
|
|
1737
1738
|
(_) => {
|
|
1738
|
-
const u =
|
|
1739
|
+
const u = r.current;
|
|
1739
1740
|
if (u)
|
|
1740
1741
|
switch (_.key) {
|
|
1741
1742
|
case "ArrowLeft":
|
|
1742
|
-
u.scrollLeft -=
|
|
1743
|
+
u.scrollLeft -= i, _.preventDefault();
|
|
1743
1744
|
break;
|
|
1744
1745
|
case "ArrowRight":
|
|
1745
|
-
u.scrollLeft +=
|
|
1746
|
+
u.scrollLeft += i, _.preventDefault();
|
|
1746
1747
|
break;
|
|
1747
1748
|
case "Home":
|
|
1748
1749
|
u.scrollLeft = 0, _.preventDefault();
|
|
@@ -1752,58 +1753,58 @@ const ps = (e) => {
|
|
|
1752
1753
|
break;
|
|
1753
1754
|
}
|
|
1754
1755
|
},
|
|
1755
|
-
[
|
|
1756
|
+
[i]
|
|
1756
1757
|
);
|
|
1757
1758
|
return /* @__PURE__ */ o.jsx(
|
|
1758
1759
|
"div",
|
|
1759
1760
|
{
|
|
1760
|
-
ref:
|
|
1761
|
+
ref: r,
|
|
1761
1762
|
className: Je.chartScrollViewport,
|
|
1762
1763
|
role: d ? "region" : void 0,
|
|
1763
1764
|
tabIndex: d ? 0 : void 0,
|
|
1764
|
-
"aria-label": d ?
|
|
1765
|
-
onKeyDown: d ?
|
|
1765
|
+
"aria-label": d ? ks : void 0,
|
|
1766
|
+
onKeyDown: d ? a : void 0,
|
|
1766
1767
|
children: /* @__PURE__ */ o.jsx(
|
|
1767
1768
|
"div",
|
|
1768
1769
|
{
|
|
1769
1770
|
className: Je.chartScrollViewport_track,
|
|
1770
1771
|
style: { width: n, height: ce },
|
|
1771
|
-
children:
|
|
1772
|
+
children: c > 0 ? s(n) : null
|
|
1772
1773
|
}
|
|
1773
1774
|
)
|
|
1774
1775
|
}
|
|
1775
1776
|
);
|
|
1776
1777
|
}, As = (e) => {
|
|
1777
|
-
const { component: t, userFlow: s, hash:
|
|
1778
|
+
const { component: t, userFlow: s, hash: r, responseKey: c, dataSource: l, ...i } = e, n = vs[i.type], { fetchDataSource: d } = G(), [a, _] = O(!1), [u, h] = O([]), f = async () => {
|
|
1778
1779
|
var m, y;
|
|
1779
1780
|
try {
|
|
1780
1781
|
_(!0);
|
|
1781
|
-
const { jsonPathData:
|
|
1782
|
+
const { jsonPathData: g, mapperData: b } = l, C = De(
|
|
1782
1783
|
l,
|
|
1783
1784
|
1
|
|
1784
1785
|
), j = await d(
|
|
1785
1786
|
C,
|
|
1786
1787
|
s,
|
|
1787
1788
|
!1
|
|
1788
|
-
), w =
|
|
1789
|
+
), w = g ? (m = it(j == null ? void 0 : j.data, g, b)) == null ? void 0 : m.items : (y = j == null ? void 0 : j.data) == null ? void 0 : y.data;
|
|
1789
1790
|
h(w), _(!1);
|
|
1790
|
-
} catch (
|
|
1791
|
-
alert(JSON.stringify(
|
|
1791
|
+
} catch (g) {
|
|
1792
|
+
alert(JSON.stringify(g)), _(!1);
|
|
1792
1793
|
}
|
|
1793
1794
|
};
|
|
1794
1795
|
if (U(() => {
|
|
1795
|
-
n && (l ? f() : h(
|
|
1796
|
+
n && (l ? f() : h(i.data));
|
|
1796
1797
|
}, []), !n)
|
|
1797
1798
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1798
1799
|
const x = {
|
|
1799
|
-
...
|
|
1800
|
+
...i,
|
|
1800
1801
|
data: u
|
|
1801
1802
|
};
|
|
1802
|
-
return
|
|
1803
|
-
|
|
1803
|
+
return a ? /* @__PURE__ */ o.jsx(et, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(xe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Ns.has(i.type) ? /* @__PURE__ */ o.jsx(
|
|
1804
|
+
Ss,
|
|
1804
1805
|
{
|
|
1805
1806
|
dataLength: u.length,
|
|
1806
|
-
minCategoryWidth:
|
|
1807
|
+
minCategoryWidth: i.minCategoryWidth,
|
|
1807
1808
|
children: (m) => /* @__PURE__ */ o.jsx(n, { ...x, width: m })
|
|
1808
1809
|
}
|
|
1809
1810
|
) : /* @__PURE__ */ o.jsx(n, { ...x });
|
|
@@ -1811,36 +1812,36 @@ const ps = (e) => {
|
|
|
1811
1812
|
const {
|
|
1812
1813
|
userFlow: t,
|
|
1813
1814
|
pageId: s,
|
|
1814
|
-
responseKey:
|
|
1815
|
-
actionType:
|
|
1815
|
+
responseKey: r,
|
|
1816
|
+
actionType: c,
|
|
1816
1817
|
label: l,
|
|
1817
|
-
value:
|
|
1818
|
+
value: i,
|
|
1818
1819
|
required: n,
|
|
1819
1820
|
dependencies: d,
|
|
1820
|
-
...
|
|
1821
|
+
...a
|
|
1821
1822
|
} = e, _ = {
|
|
1822
|
-
...
|
|
1823
|
-
}, { getNextUI: u } = G(), [h, f] =
|
|
1823
|
+
...a
|
|
1824
|
+
}, { getNextUI: u } = G(), [h, f] = O(i || !1), { disabled: x } = B(
|
|
1824
1825
|
t,
|
|
1825
1826
|
d
|
|
1826
|
-
),
|
|
1827
|
-
var
|
|
1827
|
+
), p = k(() => n && l ? `${l} *` : l ?? "", [l, n]), m = q(async () => {
|
|
1828
|
+
var g;
|
|
1828
1829
|
try {
|
|
1829
1830
|
const b = !h;
|
|
1830
1831
|
f(b);
|
|
1831
1832
|
const C = {
|
|
1832
|
-
...(
|
|
1833
|
-
[
|
|
1833
|
+
...(g = N.getState()[t]) == null ? void 0 : g.entries,
|
|
1834
|
+
[r]: b
|
|
1834
1835
|
};
|
|
1835
|
-
switch (
|
|
1836
|
+
switch (R(t, C), c) {
|
|
1836
1837
|
case "GO_TO_NEXT_UI":
|
|
1837
1838
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1838
1839
|
const w = await u(
|
|
1839
1840
|
t,
|
|
1840
1841
|
s,
|
|
1841
1842
|
C,
|
|
1842
|
-
|
|
1843
|
-
|
|
1843
|
+
r,
|
|
1844
|
+
c === "GO_TO_NEXT_UI"
|
|
1844
1845
|
);
|
|
1845
1846
|
w != null && w.data && L(t, w == null ? void 0 : w.data);
|
|
1846
1847
|
break;
|
|
@@ -1851,12 +1852,12 @@ const ps = (e) => {
|
|
|
1851
1852
|
} catch (b) {
|
|
1852
1853
|
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
1853
1854
|
}
|
|
1854
|
-
}, [t, s,
|
|
1855
|
+
}, [t, s, r, c, h]), y = (_ == null ? void 0 : _.disabled) ?? x;
|
|
1855
1856
|
return /* @__PURE__ */ o.jsx(
|
|
1856
|
-
|
|
1857
|
+
Tt,
|
|
1857
1858
|
{
|
|
1858
1859
|
..._,
|
|
1859
|
-
labelRight:
|
|
1860
|
+
labelRight: p,
|
|
1860
1861
|
checked: h,
|
|
1861
1862
|
disabled: y,
|
|
1862
1863
|
onChange: () => {
|
|
@@ -1864,43 +1865,43 @@ const ps = (e) => {
|
|
|
1864
1865
|
}
|
|
1865
1866
|
}
|
|
1866
1867
|
);
|
|
1867
|
-
}, $s = "_codeEditor_1wi2p_1",
|
|
1868
|
+
}, $s = "_codeEditor_1wi2p_1", Ds = "_codeEditor_label_1wi2p_4", Rs = "_codeEditor_wrapper_1wi2p_13", qs = "_input_1wi2p_17", Ls = "_preview_1wi2p_18", Is = "_preview_inner_1wi2p_33", Z = {
|
|
1868
1869
|
codeEditor: $s,
|
|
1869
|
-
codeEditor_label:
|
|
1870
|
-
codeEditor_wrapper:
|
|
1871
|
-
input:
|
|
1870
|
+
codeEditor_label: Ds,
|
|
1871
|
+
codeEditor_wrapper: Rs,
|
|
1872
|
+
input: qs,
|
|
1872
1873
|
preview: Ls,
|
|
1873
1874
|
preview_inner: Is
|
|
1874
1875
|
}, Bs = (e) => {
|
|
1875
1876
|
const {
|
|
1876
1877
|
userFlow: t,
|
|
1877
1878
|
responseKey: s,
|
|
1878
|
-
label:
|
|
1879
|
-
language:
|
|
1879
|
+
label: r,
|
|
1880
|
+
language: c,
|
|
1880
1881
|
placeholder: l,
|
|
1881
|
-
value:
|
|
1882
|
+
value: i,
|
|
1882
1883
|
required: n,
|
|
1883
1884
|
dependencies: d,
|
|
1884
|
-
disabled:
|
|
1885
|
+
disabled: a,
|
|
1885
1886
|
showPreview: _,
|
|
1886
1887
|
height: u = "400px"
|
|
1887
|
-
} = e, [h, f] =
|
|
1888
|
+
} = e, [h, f] = O(i ?? ""), x = le.useThemeStore((C) => C.theme.mode), { disabled: p } = B(
|
|
1888
1889
|
t,
|
|
1889
1890
|
d
|
|
1890
|
-
), m =
|
|
1891
|
+
), m = a ?? p, y = {
|
|
1891
1892
|
json: Le(),
|
|
1892
1893
|
markdown: on(),
|
|
1893
1894
|
sql: cn(),
|
|
1894
1895
|
yaml: ln()
|
|
1895
|
-
},
|
|
1896
|
+
}, g = k(() => n && r ? `${r} *` : r ?? "", [r, n]), b = (C) => {
|
|
1896
1897
|
f(C);
|
|
1897
1898
|
const j = {
|
|
1898
1899
|
[s]: C
|
|
1899
1900
|
};
|
|
1900
|
-
|
|
1901
|
+
R(t, j);
|
|
1901
1902
|
};
|
|
1902
1903
|
return /* @__PURE__ */ o.jsxs("div", { className: Z.codeEditor, children: [
|
|
1903
|
-
|
|
1904
|
+
g && g !== "" && /* @__PURE__ */ o.jsx("label", { className: Z.codeEditor_label, children: g }),
|
|
1904
1905
|
/* @__PURE__ */ o.jsxs("div", { className: Z.codeEditor_wrapper, children: [
|
|
1905
1906
|
/* @__PURE__ */ o.jsx(
|
|
1906
1907
|
an,
|
|
@@ -1909,13 +1910,13 @@ const ps = (e) => {
|
|
|
1909
1910
|
value: h,
|
|
1910
1911
|
height: u,
|
|
1911
1912
|
placeholder: l,
|
|
1912
|
-
extensions: [y[
|
|
1913
|
+
extensions: [y[c] ?? Le()],
|
|
1913
1914
|
onChange: (C) => b(C),
|
|
1914
1915
|
theme: x,
|
|
1915
1916
|
editable: !m
|
|
1916
1917
|
}
|
|
1917
1918
|
),
|
|
1918
|
-
|
|
1919
|
+
c === "markdown" && _ && /* @__PURE__ */ o.jsx("div", { className: Z.preview, style: { height: u }, children: /* @__PURE__ */ o.jsx(tt, { className: Z.preview_inner, children: h }) })
|
|
1919
1920
|
] })
|
|
1920
1921
|
] });
|
|
1921
1922
|
}, Ks = "_slotStack_6n2wy_5", We = {
|
|
@@ -1924,36 +1925,36 @@ const ps = (e) => {
|
|
|
1924
1925
|
const {
|
|
1925
1926
|
userFlow: t,
|
|
1926
1927
|
pageId: s,
|
|
1927
|
-
component:
|
|
1928
|
-
hash:
|
|
1928
|
+
component: r,
|
|
1929
|
+
hash: c,
|
|
1929
1930
|
responseKey: l,
|
|
1930
|
-
content:
|
|
1931
|
+
content: i,
|
|
1931
1932
|
topContent: n,
|
|
1932
1933
|
icon: d,
|
|
1933
|
-
headerStatusColor:
|
|
1934
|
+
headerStatusColor: a,
|
|
1934
1935
|
..._
|
|
1935
|
-
} = e, u =
|
|
1936
|
+
} = e, u = a ? `palette_${a}_50` : void 0, h = E(
|
|
1936
1937
|
t,
|
|
1937
1938
|
s,
|
|
1938
|
-
|
|
1939
|
+
i && i.length > 0 ? i : null
|
|
1939
1940
|
), f = E(
|
|
1940
1941
|
t,
|
|
1941
1942
|
s,
|
|
1942
1943
|
n && n.length > 0 ? n : null
|
|
1943
|
-
), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: We.slotStack, children: h.map((m, y) => /* @__PURE__ */ o.jsx(
|
|
1944
|
+
), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: We.slotStack, children: h.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `data-card-body-${c}-${y}`)) }) : void 0, p = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: We.slotStack, children: f.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `data-card-top-${c}-${y}`)) }) : void 0;
|
|
1944
1945
|
return /* @__PURE__ */ o.jsx(
|
|
1945
|
-
|
|
1946
|
+
kt,
|
|
1946
1947
|
{
|
|
1947
1948
|
..._,
|
|
1948
1949
|
icon: d,
|
|
1949
1950
|
headerStatusColor: u,
|
|
1950
|
-
topContent:
|
|
1951
|
+
topContent: p,
|
|
1951
1952
|
children: x
|
|
1952
1953
|
}
|
|
1953
1954
|
);
|
|
1954
1955
|
}, Gs = "_dividerNotFront_tze3j_1", Ms = {
|
|
1955
1956
|
dividerNotFront: Gs
|
|
1956
|
-
}, Us = (e) => /* @__PURE__ */ o.jsx(
|
|
1957
|
+
}, Us = (e) => /* @__PURE__ */ o.jsx(St, { ...e, className: Ms.dividerNotFront }), Vs = "_drawer_13pxo_1", zs = "_drawerBody_13pxo_5", Xs = "_drawerFooter_13pxo_11", Ee = {
|
|
1957
1958
|
drawer: Vs,
|
|
1958
1959
|
drawerBody: zs,
|
|
1959
1960
|
drawerFooter: Xs
|
|
@@ -1961,10 +1962,10 @@ const ps = (e) => {
|
|
|
1961
1962
|
userFlow: e,
|
|
1962
1963
|
pageId: t,
|
|
1963
1964
|
responseKey: s,
|
|
1964
|
-
header:
|
|
1965
|
-
body:
|
|
1965
|
+
header: r,
|
|
1966
|
+
body: c,
|
|
1966
1967
|
footer: l,
|
|
1967
|
-
...
|
|
1968
|
+
...i
|
|
1968
1969
|
}) => {
|
|
1969
1970
|
const n = N((m) => {
|
|
1970
1971
|
var y;
|
|
@@ -1972,40 +1973,40 @@ const ps = (e) => {
|
|
|
1972
1973
|
}), d = N((m) => {
|
|
1973
1974
|
var y;
|
|
1974
1975
|
return (y = m[e]) == null ? void 0 : y.isLoading;
|
|
1975
|
-
}),
|
|
1976
|
-
...
|
|
1977
|
-
isOpen:
|
|
1976
|
+
}), a = n && !d, _ = {
|
|
1977
|
+
...i,
|
|
1978
|
+
isOpen: a,
|
|
1978
1979
|
children: null
|
|
1979
|
-
}, u =
|
|
1980
|
-
|
|
1981
|
-
}, [e]), h = Array.isArray(
|
|
1980
|
+
}, u = q(() => {
|
|
1981
|
+
Oe(e), oe(e, !1);
|
|
1982
|
+
}, [e]), h = Array.isArray(r) ? E(e, t, r) : r ? /* @__PURE__ */ o.jsx(Pe, { type: "h2", children: r }) : void 0, f = E(e, t, c), x = l ? E(e, t, l) : void 0;
|
|
1982
1983
|
return /* @__PURE__ */ o.jsx(
|
|
1983
1984
|
At,
|
|
1984
1985
|
{
|
|
1985
1986
|
..._,
|
|
1986
|
-
className:
|
|
1987
|
-
isOpen:
|
|
1987
|
+
className: Ee.drawer,
|
|
1988
|
+
isOpen: a,
|
|
1988
1989
|
onClose: u,
|
|
1989
1990
|
heightGap: 50,
|
|
1990
|
-
title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((m, y) => /* @__PURE__ */ o.jsx(
|
|
1991
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
1992
|
-
footer: x ? /* @__PURE__ */ o.jsx("div", { className:
|
|
1991
|
+
title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-header-${y}`)) : h }) : void 0,
|
|
1992
|
+
children: /* @__PURE__ */ o.jsx("section", { className: Ee.drawerBody, children: f.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-body-${y}`)) }),
|
|
1993
|
+
footer: x ? /* @__PURE__ */ o.jsx("div", { className: Ee.drawerFooter, children: x.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-footer-${y}`)) }) : void 0
|
|
1993
1994
|
}
|
|
1994
1995
|
);
|
|
1995
1996
|
}, Ws = (e) => {
|
|
1996
1997
|
const {
|
|
1997
1998
|
userFlow: t,
|
|
1998
1999
|
pageId: s,
|
|
1999
|
-
component:
|
|
2000
|
-
hash:
|
|
2000
|
+
component: r,
|
|
2001
|
+
hash: c,
|
|
2001
2002
|
responseKey: l,
|
|
2002
|
-
content:
|
|
2003
|
+
content: i,
|
|
2003
2004
|
items: n,
|
|
2004
2005
|
disabled: d,
|
|
2005
|
-
variant:
|
|
2006
|
+
variant: a,
|
|
2006
2007
|
leftIcon: _,
|
|
2007
2008
|
rightIcon: u
|
|
2008
|
-
} = e, h = ge(t, s), f =
|
|
2009
|
+
} = e, h = ge(t, s), f = k(
|
|
2009
2010
|
() => n.map((x) => ({
|
|
2010
2011
|
label: x.content ?? x.label ?? "",
|
|
2011
2012
|
onClick: () => {
|
|
@@ -2024,9 +2025,9 @@ const ps = (e) => {
|
|
|
2024
2025
|
Ot,
|
|
2025
2026
|
{
|
|
2026
2027
|
disabled: d,
|
|
2027
|
-
variant:
|
|
2028
|
+
variant: a,
|
|
2028
2029
|
items: f,
|
|
2029
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
2030
|
+
children: /* @__PURE__ */ o.jsxs(S, { children: [
|
|
2030
2031
|
_ ? /* @__PURE__ */ o.jsx(
|
|
2031
2032
|
Ie,
|
|
2032
2033
|
{
|
|
@@ -2035,7 +2036,7 @@ const ps = (e) => {
|
|
|
2035
2036
|
style: { marginRight: 8, verticalAlign: "middle" }
|
|
2036
2037
|
}
|
|
2037
2038
|
) : null,
|
|
2038
|
-
|
|
2039
|
+
i,
|
|
2039
2040
|
u ? /* @__PURE__ */ o.jsx(
|
|
2040
2041
|
Ie,
|
|
2041
2042
|
{
|
|
@@ -2050,65 +2051,65 @@ const ps = (e) => {
|
|
|
2050
2051
|
}, Ys = "_header_g1eri_1", Qs = "_header_content_g1eri_5", Ye = {
|
|
2051
2052
|
header: Ys,
|
|
2052
2053
|
header_content: Qs
|
|
2053
|
-
}, Zs = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: F(Ye.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Ye.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(
|
|
2054
|
+
}, Zs = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: F(Ye.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Ye.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(S, { children: t }, s)) }) }), Fs = (e) => {
|
|
2054
2055
|
const {
|
|
2055
2056
|
userFlow: t,
|
|
2056
2057
|
pageId: s,
|
|
2057
|
-
responseKey:
|
|
2058
|
-
actionType:
|
|
2058
|
+
responseKey: r,
|
|
2059
|
+
actionType: c,
|
|
2059
2060
|
content: l,
|
|
2060
|
-
redirectUrl:
|
|
2061
|
+
redirectUrl: i,
|
|
2061
2062
|
target: n,
|
|
2062
2063
|
dependencies: d,
|
|
2063
|
-
component:
|
|
2064
|
+
component: a,
|
|
2064
2065
|
hash: _,
|
|
2065
2066
|
...u
|
|
2066
|
-
} = e, { getNextUI: h } = G(), { disabled: f } =
|
|
2067
|
+
} = e, { getNextUI: h } = G(), { disabled: f } = B(
|
|
2067
2068
|
t,
|
|
2068
2069
|
d
|
|
2069
|
-
), x =
|
|
2070
|
-
const { href: y, target:
|
|
2070
|
+
), x = c && u ? (() => {
|
|
2071
|
+
const { href: y, target: g, download: b, ...C } = u;
|
|
2071
2072
|
return C;
|
|
2072
|
-
})() : u,
|
|
2073
|
+
})() : u, p = q(async () => {
|
|
2073
2074
|
var y;
|
|
2074
|
-
if (
|
|
2075
|
+
if (c)
|
|
2075
2076
|
try {
|
|
2076
|
-
const
|
|
2077
|
+
const g = {
|
|
2077
2078
|
...(y = N.getState()[t]) == null ? void 0 : y.entries,
|
|
2078
|
-
[
|
|
2079
|
+
[r]: { status: 200 }
|
|
2079
2080
|
};
|
|
2080
|
-
switch (
|
|
2081
|
+
switch (R(t, g), c) {
|
|
2081
2082
|
case "GO_TO_NEXT_UI": {
|
|
2082
2083
|
const b = await h(
|
|
2083
2084
|
t,
|
|
2084
2085
|
s,
|
|
2085
|
-
|
|
2086
|
-
|
|
2086
|
+
g,
|
|
2087
|
+
r
|
|
2087
2088
|
);
|
|
2088
2089
|
b != null && b.data && L(t, b == null ? void 0 : b.data);
|
|
2089
2090
|
break;
|
|
2090
2091
|
}
|
|
2091
2092
|
case "REDIRECT":
|
|
2092
|
-
if (!
|
|
2093
|
+
if (!i) {
|
|
2093
2094
|
console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
2094
2095
|
break;
|
|
2095
2096
|
}
|
|
2096
|
-
n === "_blank" ? window.open(
|
|
2097
|
+
n === "_blank" ? window.open(i, "_blank", "noopener,noreferrer") : window.location.assign(i);
|
|
2097
2098
|
break;
|
|
2098
2099
|
default:
|
|
2099
|
-
console.warn(`Unhandled actionType for link: ${
|
|
2100
|
+
console.warn(`Unhandled actionType for link: ${c}`);
|
|
2100
2101
|
break;
|
|
2101
2102
|
}
|
|
2102
|
-
} catch (
|
|
2103
|
-
alert(JSON.stringify(
|
|
2103
|
+
} catch (g) {
|
|
2104
|
+
alert(JSON.stringify(g));
|
|
2104
2105
|
}
|
|
2105
|
-
}, [
|
|
2106
|
+
}, [c, h, s, i, r, n, t]), m = x.disabled ?? f;
|
|
2106
2107
|
return /* @__PURE__ */ o.jsx(
|
|
2107
2108
|
$t,
|
|
2108
2109
|
{
|
|
2109
2110
|
...x,
|
|
2110
2111
|
disabled: m,
|
|
2111
|
-
onClick:
|
|
2112
|
+
onClick: c ? p : void 0,
|
|
2112
2113
|
children: l
|
|
2113
2114
|
}
|
|
2114
2115
|
);
|
|
@@ -2116,22 +2117,22 @@ const ps = (e) => {
|
|
|
2116
2117
|
const {
|
|
2117
2118
|
userFlow: t,
|
|
2118
2119
|
pageId: s,
|
|
2119
|
-
component:
|
|
2120
|
-
hash:
|
|
2120
|
+
component: r,
|
|
2121
|
+
hash: c,
|
|
2121
2122
|
responseKey: l,
|
|
2122
|
-
items:
|
|
2123
|
+
items: i,
|
|
2123
2124
|
closeOnClick: n,
|
|
2124
2125
|
disabled: d,
|
|
2125
|
-
listOrigin:
|
|
2126
|
+
listOrigin: a,
|
|
2126
2127
|
size: _,
|
|
2127
2128
|
variant: u
|
|
2128
|
-
} = e, h = ge(t, s), f =
|
|
2129
|
-
() =>
|
|
2129
|
+
} = e, h = ge(t, s), f = k(
|
|
2130
|
+
() => i.map((x) => ({
|
|
2130
2131
|
icon: x.leftIcon,
|
|
2131
2132
|
label: x.content ?? x.label ?? "",
|
|
2132
|
-
onClick: (
|
|
2133
|
+
onClick: (p) => {
|
|
2133
2134
|
var m;
|
|
2134
|
-
(m =
|
|
2135
|
+
(m = p == null ? void 0 : p.preventDefault) == null || m.call(p), h({
|
|
2135
2136
|
responseKey: x.responseKey,
|
|
2136
2137
|
actionType: x.actionType,
|
|
2137
2138
|
dataSource: x.dataSource,
|
|
@@ -2140,15 +2141,15 @@ const ps = (e) => {
|
|
|
2140
2141
|
});
|
|
2141
2142
|
}
|
|
2142
2143
|
})),
|
|
2143
|
-
[
|
|
2144
|
+
[i, h]
|
|
2144
2145
|
);
|
|
2145
2146
|
return /* @__PURE__ */ o.jsx(
|
|
2146
|
-
|
|
2147
|
+
Dt,
|
|
2147
2148
|
{
|
|
2148
2149
|
items: f,
|
|
2149
2150
|
closeOnClick: n,
|
|
2150
2151
|
disabled: d,
|
|
2151
|
-
listOrigin:
|
|
2152
|
+
listOrigin: a,
|
|
2152
2153
|
size: _,
|
|
2153
2154
|
variant: u
|
|
2154
2155
|
}
|
|
@@ -2159,52 +2160,52 @@ const ps = (e) => {
|
|
|
2159
2160
|
userFlow: e,
|
|
2160
2161
|
pageId: t,
|
|
2161
2162
|
responseKey: s,
|
|
2162
|
-
header:
|
|
2163
|
-
body:
|
|
2163
|
+
header: r,
|
|
2164
|
+
body: c,
|
|
2164
2165
|
footer: l,
|
|
2165
|
-
headerStatusColor:
|
|
2166
|
+
headerStatusColor: i,
|
|
2166
2167
|
...n
|
|
2167
2168
|
}) => {
|
|
2168
2169
|
const d = N((y) => {
|
|
2169
|
-
var
|
|
2170
|
-
return (
|
|
2171
|
-
}),
|
|
2172
|
-
var
|
|
2173
|
-
return (
|
|
2174
|
-
}), _ = d && !
|
|
2170
|
+
var g;
|
|
2171
|
+
return (g = y[e]) == null ? void 0 : g.isModalOpen;
|
|
2172
|
+
}), a = N((y) => {
|
|
2173
|
+
var g;
|
|
2174
|
+
return (g = y[e]) == null ? void 0 : g.isLoading;
|
|
2175
|
+
}), _ = d && !a, u = {
|
|
2175
2176
|
...n
|
|
2176
|
-
}, h = (u == null ? void 0 : u.headerStatusColor) ??
|
|
2177
|
-
|
|
2178
|
-
}, [e, s]), x = Array.isArray(
|
|
2177
|
+
}, h = (u == null ? void 0 : u.headerStatusColor) ?? i, f = q(() => {
|
|
2178
|
+
Oe(e), $e(e, !1);
|
|
2179
|
+
}, [e, s]), x = Array.isArray(r) ? E(e, t, r) : r, p = E(e, t, c), m = E(e, t, l);
|
|
2179
2180
|
return /* @__PURE__ */ o.jsx(
|
|
2180
|
-
|
|
2181
|
+
Rt,
|
|
2181
2182
|
{
|
|
2182
2183
|
...u,
|
|
2183
2184
|
headerStatusColor: h,
|
|
2184
|
-
header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y,
|
|
2185
|
-
children: /* @__PURE__ */ o.jsx("section", { className: tr.modalContent, children:
|
|
2186
|
-
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((y,
|
|
2185
|
+
header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, g) => /* @__PURE__ */ o.jsx(S, { children: y }, `modal-header-${g}`)) }),
|
|
2186
|
+
children: /* @__PURE__ */ o.jsx("section", { className: tr.modalContent, children: p.map((y, g) => /* @__PURE__ */ o.jsx(S, { children: y }, `modal-body-${g}`)) }),
|
|
2187
|
+
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((y, g) => /* @__PURE__ */ o.jsx(S, { children: y }, `modal-footer-${g}`)) }),
|
|
2187
2188
|
open: _,
|
|
2188
2189
|
onClose: f
|
|
2189
2190
|
}
|
|
2190
2191
|
);
|
|
2191
2192
|
}, sr = ({ userFlow: e, pageId: t }) => {
|
|
2192
|
-
var l,
|
|
2193
|
+
var l, i;
|
|
2193
2194
|
const s = un(e);
|
|
2194
2195
|
if (!s)
|
|
2195
2196
|
return null;
|
|
2196
|
-
const
|
|
2197
|
+
const r = [
|
|
2197
2198
|
...(s == null ? void 0 : s.components) || [],
|
|
2198
2199
|
...((l = s == null ? void 0 : s.header) == null ? void 0 : l.components) || [],
|
|
2199
|
-
...((
|
|
2200
|
-
],
|
|
2200
|
+
...((i = s == null ? void 0 : s.body) == null ? void 0 : i.components) || []
|
|
2201
|
+
], c = E(
|
|
2201
2202
|
e,
|
|
2202
2203
|
t,
|
|
2203
|
-
|
|
2204
|
+
r
|
|
2204
2205
|
);
|
|
2205
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
2206
|
-
const
|
|
2207
|
-
return /* @__PURE__ */ o.jsx(
|
|
2206
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
|
|
2207
|
+
const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
2208
|
+
return /* @__PURE__ */ o.jsx(S, { children: n }, a);
|
|
2208
2209
|
}) });
|
|
2209
2210
|
}, rr = {
|
|
2210
2211
|
success: {
|
|
@@ -2233,14 +2234,14 @@ const ps = (e) => {
|
|
|
2233
2234
|
iconColor: "neutral-70"
|
|
2234
2235
|
}
|
|
2235
2236
|
}, ar = (e) => {
|
|
2236
|
-
const { content: t, variant: s = "neutral", ...
|
|
2237
|
-
...
|
|
2237
|
+
const { content: t, variant: s = "neutral", ...r } = e, c = rr[s], l = {
|
|
2238
|
+
...r,
|
|
2238
2239
|
children: t,
|
|
2239
|
-
color: (
|
|
2240
|
-
textColor: (
|
|
2241
|
-
iconColor: (
|
|
2240
|
+
color: (r == null ? void 0 : r.color) ?? c.color,
|
|
2241
|
+
textColor: (r == null ? void 0 : r.textColor) ?? c.textColor,
|
|
2242
|
+
iconColor: (r == null ? void 0 : r.iconColor) ?? c.iconColor
|
|
2242
2243
|
};
|
|
2243
|
-
return /* @__PURE__ */ o.jsx(
|
|
2244
|
+
return /* @__PURE__ */ o.jsx(Te, { ...l });
|
|
2244
2245
|
}, or = (e) => {
|
|
2245
2246
|
const { content: t } = e;
|
|
2246
2247
|
return /* @__PURE__ */ o.jsx(tt, { children: t });
|
|
@@ -2248,37 +2249,37 @@ const ps = (e) => {
|
|
|
2248
2249
|
const {
|
|
2249
2250
|
userFlow: t,
|
|
2250
2251
|
pageId: s,
|
|
2251
|
-
responseKey:
|
|
2252
|
-
actionType:
|
|
2252
|
+
responseKey: r,
|
|
2253
|
+
actionType: c,
|
|
2253
2254
|
dataSource: l,
|
|
2254
|
-
dependencies:
|
|
2255
|
+
dependencies: i,
|
|
2255
2256
|
onClick: n,
|
|
2256
2257
|
...d
|
|
2257
|
-
} = e,
|
|
2258
|
+
} = e, a = ge(t, s), { disabled: _ } = B(
|
|
2258
2259
|
t,
|
|
2259
|
-
|
|
2260
|
+
i
|
|
2260
2261
|
), u = {
|
|
2261
2262
|
...d
|
|
2262
|
-
}, h = (u == null ? void 0 : u.disabled) ?? _, [f, x] =
|
|
2263
|
-
if (
|
|
2263
|
+
}, h = (u == null ? void 0 : u.disabled) ?? _, [f, x] = O(!1), p = ie(!1), m = q(async () => {
|
|
2264
|
+
if (p.current)
|
|
2264
2265
|
return;
|
|
2265
|
-
const y =
|
|
2266
|
-
y && (
|
|
2266
|
+
const y = c === "FETCH_DATA_SOURCE";
|
|
2267
|
+
y && (p.current = !0, x(!0));
|
|
2267
2268
|
try {
|
|
2268
|
-
await
|
|
2269
|
-
responseKey:
|
|
2270
|
-
actionType:
|
|
2269
|
+
await a({
|
|
2270
|
+
responseKey: r,
|
|
2271
|
+
actionType: c,
|
|
2271
2272
|
dataSource: l,
|
|
2272
|
-
dependencies:
|
|
2273
|
+
dependencies: i
|
|
2273
2274
|
});
|
|
2274
|
-
} catch (
|
|
2275
|
-
console.error("[RoundButtonNotFront] Action failed:",
|
|
2275
|
+
} catch (g) {
|
|
2276
|
+
console.error("[RoundButtonNotFront] Action failed:", g);
|
|
2276
2277
|
} finally {
|
|
2277
|
-
y && (
|
|
2278
|
+
y && (p.current = !1, x(!1));
|
|
2278
2279
|
}
|
|
2279
|
-
}, [
|
|
2280
|
+
}, [c, l, i, r, a]);
|
|
2280
2281
|
return /* @__PURE__ */ o.jsx(
|
|
2281
|
-
|
|
2282
|
+
qt,
|
|
2282
2283
|
{
|
|
2283
2284
|
...u,
|
|
2284
2285
|
loading: u.loading || f,
|
|
@@ -2333,23 +2334,23 @@ const ps = (e) => {
|
|
|
2333
2334
|
const {
|
|
2334
2335
|
userFlow: t,
|
|
2335
2336
|
pageId: s,
|
|
2336
|
-
columnWidth:
|
|
2337
|
-
columns:
|
|
2337
|
+
columnWidth: r,
|
|
2338
|
+
columns: c,
|
|
2338
2339
|
gap: l = "md",
|
|
2339
|
-
justifyContent:
|
|
2340
|
+
justifyContent: i = "start",
|
|
2340
2341
|
alignItems: n = "stretch"
|
|
2341
|
-
} = e, d = Array.isArray(
|
|
2342
|
+
} = e, d = Array.isArray(c) ? c.map((a, _) => {
|
|
2342
2343
|
const u = `col_${_}`, h = `col_${_}`;
|
|
2343
|
-
if (Array.isArray(
|
|
2344
|
+
if (Array.isArray(a))
|
|
2344
2345
|
return {
|
|
2345
2346
|
gap: "md",
|
|
2346
2347
|
justifyContent: "start",
|
|
2347
2348
|
alignItems: "start",
|
|
2348
|
-
items:
|
|
2349
|
+
items: a,
|
|
2349
2350
|
hash: u,
|
|
2350
2351
|
responseKey: h
|
|
2351
2352
|
};
|
|
2352
|
-
const f =
|
|
2353
|
+
const f = a;
|
|
2353
2354
|
return {
|
|
2354
2355
|
gap: (f == null ? void 0 : f.gap) ?? "md",
|
|
2355
2356
|
justifyContent: (f == null ? void 0 : f.justifyContent) ?? "start",
|
|
@@ -2365,24 +2366,24 @@ const ps = (e) => {
|
|
|
2365
2366
|
className: F(
|
|
2366
2367
|
z.row,
|
|
2367
2368
|
z[`row__gap-${l}`],
|
|
2368
|
-
z[`row__justify-${
|
|
2369
|
+
z[`row__justify-${i}`],
|
|
2369
2370
|
z[`row__align-${n}`]
|
|
2370
2371
|
),
|
|
2371
|
-
children: d == null ? void 0 : d.map((
|
|
2372
|
-
const u = (
|
|
2372
|
+
children: d == null ? void 0 : d.map((a, _) => {
|
|
2373
|
+
const u = (r == null ? void 0 : r[_]) || `${100 / d.length}%`, h = E(t, s, a.items);
|
|
2373
2374
|
return !h || h.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
2374
2375
|
"div",
|
|
2375
2376
|
{
|
|
2376
2377
|
className: F(
|
|
2377
2378
|
z.row_column,
|
|
2378
|
-
z[`row_column__gap-${
|
|
2379
|
-
z[`row_column__justify-${
|
|
2380
|
-
z[`row_column__align-${
|
|
2379
|
+
z[`row_column__gap-${a.gap}`],
|
|
2380
|
+
z[`row_column__justify-${a.justifyContent}`],
|
|
2381
|
+
z[`row_column__align-${a.alignItems}`]
|
|
2381
2382
|
),
|
|
2382
2383
|
style: { width: u },
|
|
2383
2384
|
children: h
|
|
2384
2385
|
},
|
|
2385
|
-
|
|
2386
|
+
a.hash || _
|
|
2386
2387
|
);
|
|
2387
2388
|
})
|
|
2388
2389
|
}
|
|
@@ -2392,83 +2393,83 @@ function dt({
|
|
|
2392
2393
|
userFlow: e,
|
|
2393
2394
|
pageId: t,
|
|
2394
2395
|
responseKey: s,
|
|
2395
|
-
actionType:
|
|
2396
|
-
getNextUI:
|
|
2396
|
+
actionType: r,
|
|
2397
|
+
getNextUI: c,
|
|
2397
2398
|
isMulti: l = !1,
|
|
2398
|
-
debounceMs:
|
|
2399
|
+
debounceMs: i
|
|
2399
2400
|
}) {
|
|
2400
2401
|
const n = ie(null);
|
|
2401
2402
|
U(() => () => {
|
|
2402
2403
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
2403
2404
|
}, []);
|
|
2404
|
-
const d =
|
|
2405
|
+
const d = q(
|
|
2405
2406
|
async (_) => {
|
|
2406
2407
|
var f;
|
|
2407
2408
|
const u = {
|
|
2408
2409
|
...(f = N.getState()[e]) == null ? void 0 : f.entries
|
|
2409
2410
|
};
|
|
2410
|
-
if (_ ? (u[s] = _,
|
|
2411
|
+
if (_ ? (u[s] = _, R(e, u)) : (delete u[s], hn(e, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2411
2412
|
try {
|
|
2412
|
-
const
|
|
2413
|
+
const p = await c(
|
|
2413
2414
|
e,
|
|
2414
2415
|
t,
|
|
2415
2416
|
u,
|
|
2416
2417
|
s,
|
|
2417
|
-
|
|
2418
|
+
r === "GO_TO_NEXT_UI"
|
|
2418
2419
|
);
|
|
2419
|
-
|
|
2420
|
+
p != null && p.data && L(e, p.data);
|
|
2420
2421
|
} catch (x) {
|
|
2421
2422
|
console.error("[useSelectChange] Failed to fetch next UI", x);
|
|
2422
2423
|
}
|
|
2423
2424
|
},
|
|
2424
|
-
[e, t, s,
|
|
2425
|
+
[e, t, s, r, c]
|
|
2425
2426
|
);
|
|
2426
|
-
return
|
|
2427
|
+
return q(
|
|
2427
2428
|
(_) => {
|
|
2428
2429
|
if (!l) {
|
|
2429
2430
|
d(_);
|
|
2430
2431
|
return;
|
|
2431
2432
|
}
|
|
2432
|
-
if (
|
|
2433
|
+
if (i == null) {
|
|
2433
2434
|
d(_);
|
|
2434
2435
|
return;
|
|
2435
2436
|
}
|
|
2436
2437
|
n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
|
|
2437
2438
|
d(_), n.current = null;
|
|
2438
|
-
},
|
|
2439
|
+
}, i);
|
|
2439
2440
|
},
|
|
2440
|
-
[l,
|
|
2441
|
+
[l, i, d]
|
|
2441
2442
|
);
|
|
2442
2443
|
}
|
|
2443
2444
|
const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
2444
2445
|
var s;
|
|
2445
|
-
return t.includes("{") ? t.replace(_r, (
|
|
2446
|
-
var
|
|
2447
|
-
const l = (
|
|
2446
|
+
return t.includes("{") ? t.replace(_r, (r, c) => {
|
|
2447
|
+
var i;
|
|
2448
|
+
const l = (i = I.query(e, c.trim())) == null ? void 0 : i[0];
|
|
2448
2449
|
return l != null ? String(l) : "";
|
|
2449
|
-
}) : (s =
|
|
2450
|
-
}, hr = (e, t, s,
|
|
2451
|
-
const
|
|
2452
|
-
return (
|
|
2450
|
+
}) : (s = I.query(e, t)) == null ? void 0 : s[0];
|
|
2451
|
+
}, hr = (e, t, s, r) => {
|
|
2452
|
+
const c = I.query(e, t);
|
|
2453
|
+
return (c == null ? void 0 : c.map((l) => {
|
|
2453
2454
|
var d;
|
|
2454
|
-
const
|
|
2455
|
-
return { label:
|
|
2455
|
+
const i = ur(l, s), n = r ? (d = I.query(l, r)) == null ? void 0 : d[0] : l;
|
|
2456
|
+
return { label: i, value: n };
|
|
2456
2457
|
})) ?? [];
|
|
2457
|
-
}, fr = (e, t, s,
|
|
2458
|
+
}, fr = (e, t, s, r = 10) => {
|
|
2458
2459
|
var n, d;
|
|
2459
|
-
let
|
|
2460
|
+
let c, l;
|
|
2460
2461
|
if (s) {
|
|
2461
|
-
const
|
|
2462
|
-
|
|
2462
|
+
const a = I.value(e, s.size ?? "$.meta.size") ?? r, _ = I.value(e, s.total ?? "$.meta.total") ?? 0;
|
|
2463
|
+
c = a, l = _;
|
|
2463
2464
|
} else {
|
|
2464
|
-
const
|
|
2465
|
-
|
|
2465
|
+
const a = e == null ? void 0 : e.meta;
|
|
2466
|
+
c = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, l = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
|
|
2466
2467
|
}
|
|
2467
|
-
const
|
|
2468
|
+
const i = l > 0 ? Math.ceil(l / c) > t : !1;
|
|
2468
2469
|
return {
|
|
2469
|
-
pageSize:
|
|
2470
|
+
pageSize: c,
|
|
2470
2471
|
total: l,
|
|
2471
|
-
hasMore:
|
|
2472
|
+
hasMore: i
|
|
2472
2473
|
};
|
|
2473
2474
|
}, yr = "_selectNotFront_ch3v5_1", _t = {
|
|
2474
2475
|
selectNotFront: yr
|
|
@@ -2476,56 +2477,56 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2476
2477
|
userFlow: e,
|
|
2477
2478
|
pageId: t,
|
|
2478
2479
|
responseKey: s,
|
|
2479
|
-
required:
|
|
2480
|
-
dataSource:
|
|
2480
|
+
required: r,
|
|
2481
|
+
dataSource: c,
|
|
2481
2482
|
actionType: l,
|
|
2482
|
-
dependencies:
|
|
2483
|
+
dependencies: i,
|
|
2483
2484
|
debounceMs: n,
|
|
2484
2485
|
...d
|
|
2485
2486
|
}) => {
|
|
2486
|
-
const
|
|
2487
|
+
const a = {
|
|
2487
2488
|
...d
|
|
2488
|
-
}, { getNextUI: _, fetchDataSource: u } = G(), [h, f] =
|
|
2489
|
+
}, { getNextUI: _, fetchDataSource: u } = G(), [h, f] = O((a == null ? void 0 : a.value) ?? ""), { disabled: x } = B(
|
|
2489
2490
|
e,
|
|
2490
|
-
|
|
2491
|
-
),
|
|
2492
|
-
const j =
|
|
2491
|
+
i
|
|
2492
|
+
), p = (a == null ? void 0 : a.disabled) ?? x, m = k(() => 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 = k(() => {
|
|
2493
|
+
const j = a != null && a.isMulti ? h : [h], w = {};
|
|
2493
2494
|
return Array.isArray(j) && j.forEach((v) => {
|
|
2494
2495
|
if (!v) return;
|
|
2495
|
-
const A = JSON.stringify(v.value),
|
|
2496
|
-
w[A] = v,
|
|
2496
|
+
const A = JSON.stringify(v.value), $ = JSON.stringify(v.label);
|
|
2497
|
+
w[A] = v, $ in w || (w[$] = v);
|
|
2497
2498
|
}), w;
|
|
2498
|
-
}, [h]),
|
|
2499
|
+
}, [h]), g = dt({
|
|
2499
2500
|
userFlow: e,
|
|
2500
2501
|
pageId: t,
|
|
2501
2502
|
responseKey: s,
|
|
2502
2503
|
actionType: l,
|
|
2503
2504
|
getNextUI: _,
|
|
2504
|
-
isMulti:
|
|
2505
|
+
isMulti: a == null ? void 0 : a.isMulti,
|
|
2505
2506
|
debounceMs: n
|
|
2506
2507
|
}), b = (j) => {
|
|
2507
|
-
f(j),
|
|
2508
|
+
f(j), g(j);
|
|
2508
2509
|
}, C = async (j, w, { page: v }) => {
|
|
2509
2510
|
const {
|
|
2510
2511
|
jsonPathLabel: A,
|
|
2511
|
-
jsonPathOptions:
|
|
2512
|
-
jsonPathValue:
|
|
2512
|
+
jsonPathOptions: $,
|
|
2513
|
+
jsonPathValue: D,
|
|
2513
2514
|
jsonPathPagination: J
|
|
2514
|
-
} =
|
|
2515
|
-
|
|
2515
|
+
} = c, V = De(
|
|
2516
|
+
c,
|
|
2516
2517
|
v,
|
|
2517
2518
|
j
|
|
2518
|
-
),
|
|
2519
|
+
), T = await u(
|
|
2519
2520
|
V,
|
|
2520
2521
|
e,
|
|
2521
2522
|
!1
|
|
2522
|
-
),
|
|
2523
|
-
|
|
2524
|
-
|
|
2523
|
+
), K = T == null ? void 0 : T.data, ne = K ? hr(
|
|
2524
|
+
K,
|
|
2525
|
+
$,
|
|
2525
2526
|
A,
|
|
2526
|
-
|
|
2527
|
+
D
|
|
2527
2528
|
) : [], { hasMore: pe } = fr(
|
|
2528
|
-
|
|
2529
|
+
K,
|
|
2529
2530
|
v,
|
|
2530
2531
|
J
|
|
2531
2532
|
);
|
|
@@ -2540,13 +2541,13 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2540
2541
|
return /* @__PURE__ */ o.jsx(
|
|
2541
2542
|
Lt,
|
|
2542
2543
|
{
|
|
2543
|
-
...
|
|
2544
|
+
...a,
|
|
2544
2545
|
className: _t.selectNotFront,
|
|
2545
2546
|
label: m,
|
|
2546
2547
|
value: h,
|
|
2547
|
-
disabled:
|
|
2548
|
+
disabled: p,
|
|
2548
2549
|
noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
|
|
2549
|
-
onChange: (j) => !
|
|
2550
|
+
onChange: (j) => !p && b(j),
|
|
2550
2551
|
loadOptions: C,
|
|
2551
2552
|
additional: { page: 1 },
|
|
2552
2553
|
isOptionDisabled: (j) => {
|
|
@@ -2560,44 +2561,44 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2560
2561
|
userFlow: e,
|
|
2561
2562
|
pageId: t,
|
|
2562
2563
|
responseKey: s,
|
|
2563
|
-
dataSource:
|
|
2564
|
-
required:
|
|
2564
|
+
dataSource: r,
|
|
2565
|
+
required: c,
|
|
2565
2566
|
actionType: l,
|
|
2566
|
-
dependencies:
|
|
2567
|
+
dependencies: i,
|
|
2567
2568
|
debounceMs: n,
|
|
2568
2569
|
...d
|
|
2569
2570
|
}) => {
|
|
2570
|
-
const
|
|
2571
|
+
const a = {
|
|
2571
2572
|
...d
|
|
2572
|
-
}, { getNextUI: _ } = G(), [u, h] =
|
|
2573
|
+
}, { getNextUI: _ } = G(), [u, h] = O(a.value || ""), { disabled: f } = B(
|
|
2573
2574
|
e,
|
|
2574
|
-
|
|
2575
|
-
), x = (
|
|
2575
|
+
i
|
|
2576
|
+
), x = (a == null ? void 0 : a.disabled) ?? f, p = k(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), m = dt({
|
|
2576
2577
|
userFlow: e,
|
|
2577
2578
|
pageId: t,
|
|
2578
2579
|
responseKey: s,
|
|
2579
2580
|
actionType: l,
|
|
2580
2581
|
getNextUI: _,
|
|
2581
|
-
isMulti:
|
|
2582
|
+
isMulti: a == null ? void 0 : a.isMulti,
|
|
2582
2583
|
debounceMs: n
|
|
2583
|
-
}), y = (
|
|
2584
|
-
h(
|
|
2584
|
+
}), y = (g) => {
|
|
2585
|
+
h(g), m(g);
|
|
2585
2586
|
};
|
|
2586
2587
|
return /* @__PURE__ */ o.jsx(
|
|
2587
2588
|
It,
|
|
2588
2589
|
{
|
|
2589
|
-
...
|
|
2590
|
+
...a,
|
|
2590
2591
|
className: _t.selectNotFront,
|
|
2591
|
-
label:
|
|
2592
|
+
label: p,
|
|
2592
2593
|
value: u,
|
|
2593
2594
|
disabled: x,
|
|
2594
|
-
onChange: (
|
|
2595
|
+
onChange: (g) => !x && y(g)
|
|
2595
2596
|
}
|
|
2596
2597
|
);
|
|
2597
2598
|
}, gr = (e) => {
|
|
2598
2599
|
const { dataSource: t } = e;
|
|
2599
2600
|
return t ? /* @__PURE__ */ o.jsx(xr, { ...e }) : /* @__PURE__ */ o.jsx(mr, { ...e });
|
|
2600
|
-
}, pr = "_spacing_19hqa_1", br = "_spacing__xxs_19hqa_1", jr = "_spacing__xs_19hqa_4", Cr = "_spacing__sm_19hqa_7", wr = "_spacing__md_19hqa_10", Nr = "_spacing__lg_19hqa_13", vr = "_spacing__xl_19hqa_16", Er = "_spacing__xxl_19hqa_19",
|
|
2601
|
+
}, pr = "_spacing_19hqa_1", br = "_spacing__xxs_19hqa_1", jr = "_spacing__xs_19hqa_4", Cr = "_spacing__sm_19hqa_7", wr = "_spacing__md_19hqa_10", Nr = "_spacing__lg_19hqa_13", vr = "_spacing__xl_19hqa_16", Er = "_spacing__xxl_19hqa_19", Tr = "_spacing__xxxl_19hqa_22", Qe = {
|
|
2601
2602
|
spacing: pr,
|
|
2602
2603
|
spacing__xxs: br,
|
|
2603
2604
|
spacing__xs: jr,
|
|
@@ -2606,44 +2607,44 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2606
2607
|
spacing__lg: Nr,
|
|
2607
2608
|
spacing__xl: vr,
|
|
2608
2609
|
spacing__xxl: Er,
|
|
2609
|
-
spacing__xxxl:
|
|
2610
|
-
},
|
|
2610
|
+
spacing__xxxl: Tr
|
|
2611
|
+
}, kr = (e) => {
|
|
2611
2612
|
const { size: t } = e, s = F(Qe.spacing, Qe[`spacing__${t}`]);
|
|
2612
2613
|
return /* @__PURE__ */ o.jsx("div", { className: s });
|
|
2613
|
-
},
|
|
2614
|
+
}, Sr = (e) => {
|
|
2614
2615
|
const {
|
|
2615
2616
|
userFlow: t,
|
|
2616
2617
|
pageId: s,
|
|
2617
|
-
responseKey:
|
|
2618
|
-
actionType:
|
|
2618
|
+
responseKey: r,
|
|
2619
|
+
actionType: c,
|
|
2619
2620
|
label: l,
|
|
2620
|
-
value:
|
|
2621
|
+
value: i,
|
|
2621
2622
|
required: n,
|
|
2622
2623
|
dependencies: d,
|
|
2623
|
-
...
|
|
2624
|
+
...a
|
|
2624
2625
|
} = e, _ = {
|
|
2625
|
-
...
|
|
2626
|
-
}, { getNextUI: u } = G(), [h, f] =
|
|
2626
|
+
...a
|
|
2627
|
+
}, { getNextUI: u } = G(), [h, f] = O(i || !1), { disabled: x } = B(
|
|
2627
2628
|
t,
|
|
2628
2629
|
d
|
|
2629
|
-
),
|
|
2630
|
-
var
|
|
2630
|
+
), p = (_ == null ? void 0 : _.disabled) ?? x, m = k(() => n && l ? `${l} *` : l ?? "", [l, n]), y = q(async () => {
|
|
2631
|
+
var g;
|
|
2631
2632
|
try {
|
|
2632
2633
|
const b = !h;
|
|
2633
2634
|
f(b);
|
|
2634
2635
|
const C = {
|
|
2635
|
-
...(
|
|
2636
|
-
[
|
|
2636
|
+
...(g = N.getState()[t]) == null ? void 0 : g.entries,
|
|
2637
|
+
[r]: b
|
|
2637
2638
|
};
|
|
2638
|
-
switch (
|
|
2639
|
+
switch (R(t, C), c) {
|
|
2639
2640
|
case "GO_TO_NEXT_UI":
|
|
2640
2641
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2641
2642
|
const w = await u(
|
|
2642
2643
|
t,
|
|
2643
2644
|
s,
|
|
2644
2645
|
C,
|
|
2645
|
-
|
|
2646
|
-
|
|
2646
|
+
r,
|
|
2647
|
+
c === "GO_TO_NEXT_UI"
|
|
2647
2648
|
);
|
|
2648
2649
|
w != null && w.data && L(t, w == null ? void 0 : w.data);
|
|
2649
2650
|
break;
|
|
@@ -2654,81 +2655,81 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2654
2655
|
} catch (b) {
|
|
2655
2656
|
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
2656
2657
|
}
|
|
2657
|
-
}, [t, s,
|
|
2658
|
+
}, [t, s, r, c, h]);
|
|
2658
2659
|
return /* @__PURE__ */ o.jsx(
|
|
2659
2660
|
Bt,
|
|
2660
2661
|
{
|
|
2661
2662
|
..._,
|
|
2662
2663
|
label: m,
|
|
2663
2664
|
checked: h,
|
|
2664
|
-
disabled:
|
|
2665
|
-
onChange: () => !
|
|
2665
|
+
disabled: p,
|
|
2666
|
+
onChange: () => !p && y()
|
|
2666
2667
|
}
|
|
2667
2668
|
);
|
|
2668
2669
|
}, Ar = "_tableSkeleton_3nr9n_1", Or = "_tableArrayPills_3nr9n_7", ut = {
|
|
2669
2670
|
tableSkeleton: Ar,
|
|
2670
2671
|
tableArrayPills: Or
|
|
2671
2672
|
}, $r = ({ values: e }) => {
|
|
2672
|
-
const s = e == null ? void 0 : e.slice(0, 4),
|
|
2673
|
+
const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
|
|
2673
2674
|
return /* @__PURE__ */ o.jsxs("div", { className: ut.tableArrayPills, children: [
|
|
2674
|
-
s.map((
|
|
2675
|
-
|
|
2675
|
+
s.map((c, l) => /* @__PURE__ */ o.jsx(Te, { children: String(c) }, l)),
|
|
2676
|
+
r > 0 && /* @__PURE__ */ o.jsxs(Te, { outlined: !0, children: [
|
|
2676
2677
|
"+",
|
|
2677
|
-
|
|
2678
|
+
r
|
|
2678
2679
|
] })
|
|
2679
2680
|
] });
|
|
2680
|
-
},
|
|
2681
|
+
}, Dr = ({
|
|
2681
2682
|
userFlow: e,
|
|
2682
2683
|
pageId: t,
|
|
2683
2684
|
tableResponseKey: s,
|
|
2684
|
-
component:
|
|
2685
|
-
rowData:
|
|
2685
|
+
component: r,
|
|
2686
|
+
rowData: c
|
|
2686
2687
|
}) => {
|
|
2687
|
-
const { getNextUI: l, fetchAndGetNextUI:
|
|
2688
|
-
{ ...
|
|
2689
|
-
]),
|
|
2690
|
-
if (!
|
|
2688
|
+
const { getNextUI: l, fetchAndGetNextUI: i, fetchDataSource: n } = G(), d = E(e, t, [
|
|
2689
|
+
{ ...r }
|
|
2690
|
+
]), a = (d == null ? void 0 : d[0]) || null;
|
|
2691
|
+
if (!a) return null;
|
|
2691
2692
|
const {
|
|
2692
2693
|
actionType: _,
|
|
2693
2694
|
responseKey: u,
|
|
2694
2695
|
dataSource: h
|
|
2695
|
-
} =
|
|
2696
|
-
var x,
|
|
2696
|
+
} = a.props, f = q(async () => {
|
|
2697
|
+
var x, p, m;
|
|
2697
2698
|
try {
|
|
2698
2699
|
const y = {
|
|
2699
2700
|
...(x = N.getState()[e]) == null ? void 0 : x.entries,
|
|
2700
2701
|
[u]: { status: 200 },
|
|
2701
|
-
[s]: [{ ...
|
|
2702
|
+
[s]: [{ ...c }]
|
|
2702
2703
|
};
|
|
2703
|
-
switch (
|
|
2704
|
+
switch (R(e, y), _) {
|
|
2704
2705
|
case "GO_TO_NEXT_UI": {
|
|
2705
|
-
const
|
|
2706
|
+
const g = await l(
|
|
2706
2707
|
e,
|
|
2707
2708
|
t,
|
|
2708
2709
|
y,
|
|
2709
2710
|
u
|
|
2710
2711
|
);
|
|
2711
|
-
|
|
2712
|
+
g != null && g.data && L(e, g == null ? void 0 : g.data);
|
|
2712
2713
|
break;
|
|
2713
2714
|
}
|
|
2714
2715
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
2715
|
-
const
|
|
2716
|
+
const g = await i(
|
|
2716
2717
|
e,
|
|
2717
2718
|
t,
|
|
2718
2719
|
y,
|
|
2719
2720
|
u,
|
|
2720
2721
|
h
|
|
2721
2722
|
);
|
|
2722
|
-
|
|
2723
|
+
g != null && g.data && L(e, g == null ? void 0 : g.data);
|
|
2723
2724
|
break;
|
|
2724
2725
|
}
|
|
2725
2726
|
case "GET_DATA_SOURCE": {
|
|
2726
|
-
const
|
|
2727
|
+
const g = await l(
|
|
2727
2728
|
e,
|
|
2728
2729
|
t,
|
|
2729
2730
|
y,
|
|
2730
2731
|
u
|
|
2731
|
-
), b = (
|
|
2732
|
+
), b = (p = g == null ? void 0 : g.data) == null ? void 0 : p.content;
|
|
2732
2733
|
if ((b == null ? void 0 : b.type) !== "fetch") break;
|
|
2733
2734
|
const C = b == null ? void 0 : b.dataSource, j = await n(
|
|
2734
2735
|
C,
|
|
@@ -2742,7 +2743,7 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2742
2743
|
content: j == null ? void 0 : j.data
|
|
2743
2744
|
}
|
|
2744
2745
|
};
|
|
2745
|
-
|
|
2746
|
+
R(e, w);
|
|
2746
2747
|
const v = await l(
|
|
2747
2748
|
e,
|
|
2748
2749
|
t,
|
|
@@ -2760,10 +2761,10 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2760
2761
|
alert(JSON.stringify(y));
|
|
2761
2762
|
}
|
|
2762
2763
|
}, [_, h, t, u, e]);
|
|
2763
|
-
return xt(
|
|
2764
|
+
return xt(a, {
|
|
2764
2765
|
onClick: f
|
|
2765
2766
|
});
|
|
2766
|
-
},
|
|
2767
|
+
}, Rr = () => /* @__PURE__ */ o.jsx("div", { className: ut.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
2767
2768
|
et,
|
|
2768
2769
|
{
|
|
2769
2770
|
maxWidth: "100%",
|
|
@@ -2771,74 +2772,76 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2771
2772
|
radius: 8
|
|
2772
2773
|
},
|
|
2773
2774
|
`tableSkeletonBase${t}`
|
|
2774
|
-
)) }),
|
|
2775
|
-
(
|
|
2775
|
+
)) }), qr = (e, t) => !(t != null && t.length) || !e ? e : e.map((s) => t.some(
|
|
2776
|
+
(c) => Array.isArray(
|
|
2777
|
+
s != null && s.accessor ? c[s == null ? void 0 : s.accessor] : void 0
|
|
2778
|
+
)
|
|
2776
2779
|
) ? {
|
|
2777
2780
|
...s,
|
|
2778
|
-
renderCell: (
|
|
2779
|
-
const l = s.accessor ?
|
|
2781
|
+
renderCell: (c) => {
|
|
2782
|
+
const l = s.accessor ? c[s.accessor] : void 0;
|
|
2780
2783
|
return Array.isArray(l) ? /* @__PURE__ */ o.jsx($r, { values: l }) : l ?? "";
|
|
2781
2784
|
}
|
|
2782
2785
|
} : s), Lr = ({
|
|
2783
2786
|
userFlow: e,
|
|
2784
2787
|
pageId: t,
|
|
2785
2788
|
responseKey: s,
|
|
2786
|
-
component:
|
|
2787
|
-
dataSource:
|
|
2789
|
+
component: r,
|
|
2790
|
+
dataSource: c,
|
|
2788
2791
|
rightActions: l,
|
|
2789
|
-
data:
|
|
2792
|
+
data: i,
|
|
2790
2793
|
pageSize: n,
|
|
2791
2794
|
...d
|
|
2792
2795
|
}) => {
|
|
2793
|
-
var
|
|
2794
|
-
const { fetchDataSource:
|
|
2796
|
+
var J, V;
|
|
2797
|
+
const { fetchDataSource: a } = G(), [_, u] = O(!1), [h, f] = O(1), [x, p] = O(null), m = !c && Array.isArray(i), y = !!(c != null && c.jsonPathCursorPagination) && !!((J = c == null ? void 0 : c.jsonPathPagination) != null && J.hasMore), g = ie(
|
|
2795
2798
|
/* @__PURE__ */ new Map([[1, null]])
|
|
2796
|
-
),
|
|
2799
|
+
), b = k(() => {
|
|
2797
2800
|
if (l != null && l.length)
|
|
2798
|
-
return l.map((
|
|
2801
|
+
return l.map((T, K) => ({
|
|
2799
2802
|
renderContent: (ne) => /* @__PURE__ */ o.jsx(
|
|
2800
|
-
|
|
2803
|
+
Dr,
|
|
2801
2804
|
{
|
|
2802
2805
|
userFlow: e,
|
|
2803
2806
|
pageId: t,
|
|
2804
2807
|
tableResponseKey: s,
|
|
2805
|
-
component:
|
|
2808
|
+
component: T,
|
|
2806
2809
|
rowData: ne
|
|
2807
2810
|
},
|
|
2808
|
-
`tableRowAction${
|
|
2811
|
+
`tableRowAction${K}`
|
|
2809
2812
|
)
|
|
2810
2813
|
}));
|
|
2811
|
-
}, [l, e, t, s]),
|
|
2812
|
-
if (!
|
|
2814
|
+
}, [l, e, t, s]), C = async (T = 1) => {
|
|
2815
|
+
if (!c)
|
|
2813
2816
|
return;
|
|
2814
2817
|
const {
|
|
2815
|
-
mapperData:
|
|
2818
|
+
mapperData: K,
|
|
2816
2819
|
jsonPathData: ne,
|
|
2817
2820
|
jsonPathPagination: pe,
|
|
2818
2821
|
jsonPathCursorPagination: se
|
|
2819
|
-
} =
|
|
2820
|
-
if (se &&
|
|
2821
|
-
f(1),
|
|
2822
|
+
} = c;
|
|
2823
|
+
if (se && T !== 1 && !g.current.has(T)) {
|
|
2824
|
+
f(1), C(1);
|
|
2822
2825
|
return;
|
|
2823
2826
|
}
|
|
2824
|
-
se &&
|
|
2827
|
+
se && T === 1 && (g.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
2825
2828
|
try {
|
|
2826
2829
|
u(!0);
|
|
2827
|
-
const be = se ?
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
+
const be = se ? g.current.get(T) ?? null : null, ht = De(
|
|
2831
|
+
c,
|
|
2832
|
+
T,
|
|
2830
2833
|
void 0,
|
|
2831
2834
|
be
|
|
2832
|
-
), W = await
|
|
2835
|
+
), W = await a(
|
|
2833
2836
|
ht,
|
|
2834
2837
|
e,
|
|
2835
2838
|
!1
|
|
2836
2839
|
);
|
|
2837
|
-
if (
|
|
2840
|
+
if (p(
|
|
2838
2841
|
it(
|
|
2839
2842
|
W == null ? void 0 : W.data,
|
|
2840
2843
|
ne,
|
|
2841
|
-
|
|
2844
|
+
K,
|
|
2842
2845
|
pe
|
|
2843
2846
|
)
|
|
2844
2847
|
), se) {
|
|
@@ -2846,99 +2849,115 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2846
2849
|
W == null ? void 0 : W.data,
|
|
2847
2850
|
se
|
|
2848
2851
|
);
|
|
2849
|
-
Re &&
|
|
2852
|
+
Re && g.current.set(T + 1, Re);
|
|
2850
2853
|
}
|
|
2851
2854
|
u(!1);
|
|
2852
2855
|
} catch (be) {
|
|
2853
2856
|
console.error("[TableNotFront] fetchData:", be), u(!1);
|
|
2854
2857
|
}
|
|
2855
|
-
},
|
|
2856
|
-
f(
|
|
2858
|
+
}, j = (T) => {
|
|
2859
|
+
f(T), C(T);
|
|
2857
2860
|
};
|
|
2858
2861
|
U(() => {
|
|
2859
|
-
m ||
|
|
2862
|
+
m || C();
|
|
2860
2863
|
}, []);
|
|
2861
|
-
const
|
|
2862
|
-
if (!
|
|
2863
|
-
return
|
|
2864
|
-
const
|
|
2865
|
-
return
|
|
2866
|
-
}, [
|
|
2867
|
-
|
|
2864
|
+
const w = m ? i : x == null ? void 0 : x.items, v = m && !!n && ((i == null ? void 0 : i.length) ?? 0) > n, A = k(() => {
|
|
2865
|
+
if (!v || !i || !n)
|
|
2866
|
+
return w ?? [];
|
|
2867
|
+
const T = (h - 1) * n;
|
|
2868
|
+
return i.slice(T, T + n);
|
|
2869
|
+
}, [
|
|
2870
|
+
v,
|
|
2871
|
+
i,
|
|
2872
|
+
n,
|
|
2873
|
+
h,
|
|
2874
|
+
w
|
|
2875
|
+
]), $ = k(
|
|
2876
|
+
() => qr(
|
|
2868
2877
|
d.columns,
|
|
2869
|
-
|
|
2878
|
+
w
|
|
2870
2879
|
),
|
|
2871
|
-
[
|
|
2872
|
-
),
|
|
2880
|
+
[w, d.columns]
|
|
2881
|
+
), D = {
|
|
2873
2882
|
...d,
|
|
2874
|
-
data:
|
|
2875
|
-
columns:
|
|
2876
|
-
rightActions:
|
|
2883
|
+
data: A,
|
|
2884
|
+
columns: $ ?? [],
|
|
2885
|
+
rightActions: b
|
|
2877
2886
|
};
|
|
2878
|
-
return m ? !
|
|
2879
|
-
/* @__PURE__ */ o.jsx(qe, { ...
|
|
2880
|
-
|
|
2881
|
-
|
|
2887
|
+
return m ? !w || w.length === 0 ? /* @__PURE__ */ o.jsx(xe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2888
|
+
/* @__PURE__ */ o.jsx(qe, { ...D }),
|
|
2889
|
+
v && n && i && /* @__PURE__ */ o.jsx(
|
|
2890
|
+
je,
|
|
2882
2891
|
{
|
|
2883
2892
|
classname: { global: "row__end" },
|
|
2884
2893
|
page: h,
|
|
2885
2894
|
size: n,
|
|
2886
|
-
total:
|
|
2895
|
+
total: i.length,
|
|
2887
2896
|
onChange: f
|
|
2888
2897
|
}
|
|
2889
2898
|
)
|
|
2890
|
-
] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(
|
|
2891
|
-
/* @__PURE__ */ o.jsx(qe, { ...
|
|
2892
|
-
(x == null ? void 0 : x.pagination) &&
|
|
2893
|
-
|
|
2899
|
+
] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Rr, {}) : x && ((V = x == null ? void 0 : x.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2900
|
+
/* @__PURE__ */ o.jsx(qe, { ...D }),
|
|
2901
|
+
!y && (x == null ? void 0 : x.pagination) && x.pagination.totalPages > 1 && /* @__PURE__ */ o.jsx(
|
|
2902
|
+
je,
|
|
2894
2903
|
{
|
|
2895
2904
|
classname: { global: "row__end" },
|
|
2896
2905
|
page: h,
|
|
2897
|
-
size: x
|
|
2898
|
-
total:
|
|
2899
|
-
onChange:
|
|
2906
|
+
size: x.pagination.size,
|
|
2907
|
+
total: x.pagination.total,
|
|
2908
|
+
onChange: j
|
|
2909
|
+
}
|
|
2910
|
+
),
|
|
2911
|
+
y && (x == null ? void 0 : x.pagination) && /* @__PURE__ */ o.jsx(
|
|
2912
|
+
je,
|
|
2913
|
+
{
|
|
2914
|
+
variant: "cursor",
|
|
2915
|
+
classname: { global: "row__end" },
|
|
2916
|
+
page: h,
|
|
2917
|
+
hasNextPage: !!x.pagination.hasMore,
|
|
2918
|
+
onChange: j
|
|
2900
2919
|
}
|
|
2901
2920
|
)
|
|
2902
2921
|
] }) : /* @__PURE__ */ o.jsx(xe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2903
2922
|
}, Ir = "_tabsPanel_kvslb_1", Br = {
|
|
2904
2923
|
tabsPanel: Ir
|
|
2905
2924
|
}, Kr = ({ userFlow: e, pageId: t, components: s }) => {
|
|
2906
|
-
const
|
|
2907
|
-
return
|
|
2925
|
+
const r = E(e, t, s);
|
|
2926
|
+
return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: Br.tabsPanel, children: r.map((c, l) => /* @__PURE__ */ o.jsx(S, { children: c }, `tabs-panel-${l}`)) }) : null;
|
|
2908
2927
|
}, Hr = ({
|
|
2909
2928
|
userFlow: e,
|
|
2910
2929
|
pageId: t,
|
|
2911
2930
|
hash: s,
|
|
2912
|
-
items:
|
|
2913
|
-
activeIndex:
|
|
2931
|
+
items: r,
|
|
2932
|
+
activeIndex: c,
|
|
2914
2933
|
className: l,
|
|
2915
|
-
responseKey:
|
|
2934
|
+
responseKey: i
|
|
2916
2935
|
}) => {
|
|
2917
|
-
const n =
|
|
2918
|
-
label:
|
|
2919
|
-
disabled:
|
|
2936
|
+
const n = r.map((a, _) => ({
|
|
2937
|
+
label: a.label,
|
|
2938
|
+
disabled: a.disabled,
|
|
2920
2939
|
children: /* @__PURE__ */ o.jsx(
|
|
2921
2940
|
Kr,
|
|
2922
2941
|
{
|
|
2923
2942
|
userFlow: e,
|
|
2924
2943
|
pageId: t,
|
|
2925
|
-
components:
|
|
2944
|
+
components: a.components
|
|
2926
2945
|
},
|
|
2927
2946
|
`${s}-tab-${_}`
|
|
2928
2947
|
)
|
|
2929
|
-
})), d = (
|
|
2948
|
+
})), d = (a) => {
|
|
2930
2949
|
var u;
|
|
2931
2950
|
const _ = {
|
|
2932
2951
|
...(u = N.getState()[e]) == null ? void 0 : u.entries,
|
|
2933
|
-
[
|
|
2952
|
+
[i]: a
|
|
2934
2953
|
};
|
|
2935
|
-
|
|
2954
|
+
R(e, _);
|
|
2936
2955
|
};
|
|
2937
2956
|
return /* @__PURE__ */ o.jsx(
|
|
2938
2957
|
Kt,
|
|
2939
2958
|
{
|
|
2940
2959
|
className: l,
|
|
2941
|
-
activeIndex:
|
|
2960
|
+
activeIndex: c,
|
|
2942
2961
|
items: n,
|
|
2943
2962
|
onClick: d
|
|
2944
2963
|
}
|
|
@@ -2947,32 +2966,32 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2947
2966
|
const {
|
|
2948
2967
|
userFlow: t,
|
|
2949
2968
|
pageId: s,
|
|
2950
|
-
component:
|
|
2951
|
-
hash:
|
|
2969
|
+
component: r,
|
|
2970
|
+
hash: c,
|
|
2952
2971
|
responseKey: l,
|
|
2953
|
-
required:
|
|
2972
|
+
required: i,
|
|
2954
2973
|
dependencies: n,
|
|
2955
2974
|
...d
|
|
2956
|
-
} = e,
|
|
2975
|
+
} = e, a = {
|
|
2957
2976
|
...d
|
|
2958
|
-
}, [_, u] =
|
|
2977
|
+
}, [_, u] = O((a == null ? void 0 : a.value) ?? ""), { disabled: h } = B(
|
|
2959
2978
|
t,
|
|
2960
2979
|
n
|
|
2961
|
-
), f = (
|
|
2962
|
-
var
|
|
2963
|
-
const y = (
|
|
2964
|
-
u(y),
|
|
2980
|
+
), f = (a == null ? void 0 : a.disabled) ?? h, x = k(() => i && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), p = (m) => {
|
|
2981
|
+
var g;
|
|
2982
|
+
const y = (g = m == null ? void 0 : m.target) == null ? void 0 : g.value;
|
|
2983
|
+
u(y), R(t, { [l]: y });
|
|
2965
2984
|
};
|
|
2966
2985
|
return U(() => {
|
|
2967
|
-
u((
|
|
2968
|
-
}, [
|
|
2986
|
+
u((a == null ? void 0 : a.value) ?? "");
|
|
2987
|
+
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
|
|
2969
2988
|
Ht,
|
|
2970
2989
|
{
|
|
2971
|
-
...
|
|
2990
|
+
...a,
|
|
2972
2991
|
label: x,
|
|
2973
2992
|
value: _,
|
|
2974
2993
|
disabled: f,
|
|
2975
|
-
onChange: (m) => !f &&
|
|
2994
|
+
onChange: (m) => !f && p(m)
|
|
2976
2995
|
}
|
|
2977
2996
|
);
|
|
2978
2997
|
}, Mr = "_textFieldNotFront_1n8fy_1", Ur = {
|
|
@@ -2981,55 +3000,55 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
2981
3000
|
const {
|
|
2982
3001
|
userFlow: t,
|
|
2983
3002
|
pageId: s,
|
|
2984
|
-
component:
|
|
2985
|
-
hash:
|
|
3003
|
+
component: r,
|
|
3004
|
+
hash: c,
|
|
2986
3005
|
responseKey: l,
|
|
2987
|
-
required:
|
|
3006
|
+
required: i,
|
|
2988
3007
|
dependencies: n,
|
|
2989
3008
|
...d
|
|
2990
|
-
} = e,
|
|
3009
|
+
} = e, a = {
|
|
2991
3010
|
...d
|
|
2992
|
-
}, [_, u] =
|
|
3011
|
+
}, [_, u] = O((a == null ? void 0 : a.value) ?? ""), { disabled: h } = B(
|
|
2993
3012
|
t,
|
|
2994
3013
|
n
|
|
2995
|
-
), f = (
|
|
3014
|
+
), f = (a == null ? void 0 : a.disabled) ?? h, x = k(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), p = (m) => {
|
|
2996
3015
|
var b;
|
|
2997
3016
|
const y = (b = m == null ? void 0 : m.target) == null ? void 0 : b.value;
|
|
2998
3017
|
u(y);
|
|
2999
|
-
const
|
|
3018
|
+
const g = {
|
|
3000
3019
|
[l]: y
|
|
3001
3020
|
};
|
|
3002
|
-
|
|
3021
|
+
R(t, g);
|
|
3003
3022
|
};
|
|
3004
3023
|
return U(() => {
|
|
3005
|
-
u((
|
|
3006
|
-
}, [
|
|
3024
|
+
u((a == null ? void 0 : a.value) ?? "");
|
|
3025
|
+
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
|
|
3007
3026
|
Gt,
|
|
3008
3027
|
{
|
|
3009
|
-
...
|
|
3028
|
+
...a,
|
|
3010
3029
|
className: Ur.textFieldNotFront,
|
|
3011
3030
|
allowClear: !1,
|
|
3012
3031
|
label: x,
|
|
3013
3032
|
value: _,
|
|
3014
3033
|
disabled: f,
|
|
3015
|
-
onChange: (m) => !f &&
|
|
3034
|
+
onChange: (m) => !f && p(m)
|
|
3016
3035
|
}
|
|
3017
3036
|
);
|
|
3018
3037
|
}, zr = ({
|
|
3019
3038
|
userFlow: e,
|
|
3020
3039
|
pageId: t,
|
|
3021
3040
|
responseKey: s,
|
|
3022
|
-
variant:
|
|
3023
|
-
content:
|
|
3041
|
+
variant: r,
|
|
3042
|
+
content: c,
|
|
3024
3043
|
actionType: l,
|
|
3025
|
-
redirectUrl:
|
|
3044
|
+
redirectUrl: i
|
|
3026
3045
|
}) => {
|
|
3027
|
-
const n =
|
|
3028
|
-
|
|
3046
|
+
const n = q(async () => {
|
|
3047
|
+
Oe(e);
|
|
3029
3048
|
try {
|
|
3030
3049
|
switch (l) {
|
|
3031
3050
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
3032
|
-
window.location.href =
|
|
3051
|
+
window.location.href = i;
|
|
3033
3052
|
break;
|
|
3034
3053
|
default:
|
|
3035
3054
|
console.warn(`Unhandled actionType: ${l}`);
|
|
@@ -3038,14 +3057,14 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
3038
3057
|
} catch (d) {
|
|
3039
3058
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
3040
3059
|
}
|
|
3041
|
-
}, [l, t, s, e,
|
|
3060
|
+
}, [l, t, s, e, i]);
|
|
3042
3061
|
return U(() => {
|
|
3043
3062
|
({
|
|
3044
3063
|
info: re.info,
|
|
3045
3064
|
error: re.error,
|
|
3046
3065
|
success: re.success,
|
|
3047
3066
|
warning: re.warning
|
|
3048
|
-
}[
|
|
3067
|
+
}[r] || re.info)(c, {
|
|
3049
3068
|
autoClose: l ? !1 : 4e3,
|
|
3050
3069
|
containerId: e,
|
|
3051
3070
|
onClose: n
|
|
@@ -3058,26 +3077,26 @@ const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
|
3058
3077
|
const {
|
|
3059
3078
|
userFlow: t,
|
|
3060
3079
|
pageId: s,
|
|
3061
|
-
component:
|
|
3062
|
-
hash:
|
|
3080
|
+
component: r,
|
|
3081
|
+
hash: c,
|
|
3063
3082
|
responseKey: l,
|
|
3064
|
-
content:
|
|
3083
|
+
content: i,
|
|
3065
3084
|
label: n,
|
|
3066
3085
|
placement: d,
|
|
3067
|
-
notShowArrow:
|
|
3086
|
+
notShowArrow: a,
|
|
3068
3087
|
visible: _
|
|
3069
3088
|
} = e, u = E(
|
|
3070
3089
|
t,
|
|
3071
3090
|
s,
|
|
3072
|
-
|
|
3073
|
-
), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ze.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(
|
|
3091
|
+
i != null && i.length ? i : null
|
|
3092
|
+
), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ze.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(S, { children: f }, `tooltip-${c}-${x}`)) }) : null;
|
|
3074
3093
|
return /* @__PURE__ */ o.jsx(
|
|
3075
3094
|
Mt,
|
|
3076
3095
|
{
|
|
3077
3096
|
className: Ze.tooltipNotFront,
|
|
3078
3097
|
label: n,
|
|
3079
3098
|
placement: d,
|
|
3080
|
-
notShowArrow:
|
|
3099
|
+
notShowArrow: a,
|
|
3081
3100
|
visible: _,
|
|
3082
3101
|
children: h
|
|
3083
3102
|
}
|
|
@@ -3087,35 +3106,35 @@ function ha({
|
|
|
3087
3106
|
sessionName: e,
|
|
3088
3107
|
apiConfig: t,
|
|
3089
3108
|
onResolveComponentProps: s,
|
|
3090
|
-
children:
|
|
3109
|
+
children: r
|
|
3091
3110
|
}) {
|
|
3092
|
-
const
|
|
3111
|
+
const c = Pr(
|
|
3093
3112
|
e,
|
|
3094
3113
|
t,
|
|
3095
3114
|
null,
|
|
3096
3115
|
s
|
|
3097
3116
|
);
|
|
3098
3117
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3099
|
-
|
|
3100
|
-
|
|
3118
|
+
c,
|
|
3119
|
+
r
|
|
3101
3120
|
] });
|
|
3102
3121
|
}
|
|
3103
3122
|
const Yr = { api: "", headers: {} }, Qr = ({
|
|
3104
3123
|
userFlow: e,
|
|
3105
3124
|
components: t,
|
|
3106
3125
|
hash: s,
|
|
3107
|
-
apiConfig:
|
|
3126
|
+
apiConfig: r
|
|
3108
3127
|
}) => {
|
|
3109
|
-
const
|
|
3110
|
-
|
|
3111
|
-
var d,
|
|
3112
|
-
return (
|
|
3128
|
+
const c = s ?? `${e}-page`;
|
|
3129
|
+
O(() => {
|
|
3130
|
+
var d, a;
|
|
3131
|
+
return (a = (d = N.getState()[e]) == null ? void 0 : d.pages) != null && a[c] || ye(e, r ?? Yr, {
|
|
3113
3132
|
type: "page",
|
|
3114
|
-
hash:
|
|
3133
|
+
hash: c,
|
|
3115
3134
|
body: { components: t }
|
|
3116
3135
|
}), null;
|
|
3117
3136
|
});
|
|
3118
|
-
const l = E(e,
|
|
3137
|
+
const l = E(e, c, t);
|
|
3119
3138
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: l });
|
|
3120
3139
|
};
|
|
3121
3140
|
function Zr(e) {
|
|
@@ -3126,79 +3145,79 @@ function Zr(e) {
|
|
|
3126
3145
|
return e.components;
|
|
3127
3146
|
}
|
|
3128
3147
|
const Fr = ({ payload: e, userFlow: t }) => {
|
|
3129
|
-
const s = Zr(e.display),
|
|
3148
|
+
const s = Zr(e.display), r = Qr({
|
|
3130
3149
|
userFlow: t,
|
|
3131
3150
|
hash: e.id,
|
|
3132
3151
|
components: s
|
|
3133
3152
|
});
|
|
3134
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
3135
|
-
}, fa = Fr, Fe = (e, t, s,
|
|
3153
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: r });
|
|
3154
|
+
}, fa = Fr, Fe = (e, t, s, r, c) => {
|
|
3136
3155
|
const l = E(
|
|
3137
3156
|
e,
|
|
3138
3157
|
t,
|
|
3139
|
-
(
|
|
3140
|
-
|
|
3158
|
+
(r == null ? void 0 : r.components) || null,
|
|
3159
|
+
c
|
|
3141
3160
|
);
|
|
3142
3161
|
switch (s) {
|
|
3143
3162
|
case "body":
|
|
3144
3163
|
return /* @__PURE__ */ o.jsx(
|
|
3145
3164
|
Hn,
|
|
3146
3165
|
{
|
|
3147
|
-
...
|
|
3166
|
+
...r,
|
|
3148
3167
|
inputs: l || []
|
|
3149
3168
|
},
|
|
3150
|
-
JSON.stringify(
|
|
3169
|
+
JSON.stringify(r == null ? void 0 : r.components)
|
|
3151
3170
|
);
|
|
3152
3171
|
case "header":
|
|
3153
3172
|
return /* @__PURE__ */ o.jsx(
|
|
3154
3173
|
Zs,
|
|
3155
3174
|
{
|
|
3156
|
-
...
|
|
3175
|
+
...r,
|
|
3157
3176
|
components: l || []
|
|
3158
3177
|
},
|
|
3159
|
-
JSON.stringify(
|
|
3178
|
+
JSON.stringify(r == null ? void 0 : r.components)
|
|
3160
3179
|
);
|
|
3161
3180
|
default:
|
|
3162
3181
|
return null;
|
|
3163
3182
|
}
|
|
3164
|
-
}, Pr = (e, t, s,
|
|
3183
|
+
}, Pr = (e, t, s, r) => {
|
|
3165
3184
|
var h, f, x;
|
|
3166
|
-
const [
|
|
3185
|
+
const [c, l] = O(!1), i = N((p) => p), n = (h = i[e]) == null ? void 0 : h.currentPageId;
|
|
3167
3186
|
U(() => {
|
|
3168
3187
|
if (typeof window > "u") return;
|
|
3169
|
-
const
|
|
3170
|
-
m && (sessionStorage.setItem("sessionId", m),
|
|
3188
|
+
const p = new URL(window.location.href), m = p.searchParams.get("sessionId");
|
|
3189
|
+
m && (sessionStorage.setItem("sessionId", m), p.searchParams.delete("sessionId"), window.history.replaceState({}, "", p.toString()));
|
|
3171
3190
|
}, []);
|
|
3172
3191
|
const d = n ? Fe(
|
|
3173
3192
|
e,
|
|
3174
3193
|
n,
|
|
3175
3194
|
"header",
|
|
3176
|
-
((f =
|
|
3177
|
-
|
|
3178
|
-
) : null,
|
|
3195
|
+
((f = i[e].pages[n].page) == null ? void 0 : f.header) || null,
|
|
3196
|
+
r
|
|
3197
|
+
) : null, a = n ? Fe(
|
|
3179
3198
|
e,
|
|
3180
3199
|
n,
|
|
3181
3200
|
"body",
|
|
3182
|
-
((x =
|
|
3183
|
-
|
|
3184
|
-
) : null, _ =
|
|
3185
|
-
var
|
|
3201
|
+
((x = i[e].pages[n].page) == null ? void 0 : x.body) || null,
|
|
3202
|
+
r
|
|
3203
|
+
) : null, _ = k(() => {
|
|
3204
|
+
var p;
|
|
3186
3205
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3187
|
-
((
|
|
3206
|
+
((p = i[e]) == null ? void 0 : p.isLoading) && /* @__PURE__ */ o.jsx(Ut, {}),
|
|
3188
3207
|
d,
|
|
3189
|
-
|
|
3208
|
+
a,
|
|
3190
3209
|
n && /* @__PURE__ */ o.jsx(sr, { userFlow: e, pageId: n }),
|
|
3191
|
-
|
|
3210
|
+
i[e] && /* @__PURE__ */ o.jsx(Vt, {})
|
|
3192
3211
|
] });
|
|
3193
|
-
}, [d,
|
|
3212
|
+
}, [d, a, n, e]), u = async () => {
|
|
3194
3213
|
try {
|
|
3195
|
-
const
|
|
3214
|
+
const p = await ot(
|
|
3196
3215
|
t,
|
|
3197
3216
|
e
|
|
3198
|
-
), m =
|
|
3199
|
-
(
|
|
3200
|
-
} catch (
|
|
3201
|
-
console.error("[not-page]: API call failed",
|
|
3217
|
+
), m = p == null ? void 0 : p.data, y = m == null ? void 0 : m.content;
|
|
3218
|
+
(p == null ? void 0 : p.status) === 200 ? ye(e, t, y, m == null ? void 0 : m.sessionState) : l(!0);
|
|
3219
|
+
} catch (p) {
|
|
3220
|
+
console.error("[not-page]: API call failed", p), l(!0);
|
|
3202
3221
|
}
|
|
3203
3222
|
};
|
|
3204
3223
|
return U(() => {
|
|
@@ -3207,14 +3226,14 @@ const Fr = ({ payload: e, userFlow: t }) => {
|
|
|
3207
3226
|
"not api config",
|
|
3208
3227
|
"not userFlow"
|
|
3209
3228
|
));
|
|
3210
|
-
const
|
|
3211
|
-
const
|
|
3212
|
-
le.setThemeMode(
|
|
3229
|
+
const p = "avocado-theme-mode-changed", m = (y) => {
|
|
3230
|
+
const g = y.detail;
|
|
3231
|
+
le.setThemeMode(g);
|
|
3213
3232
|
};
|
|
3214
|
-
return window.addEventListener(
|
|
3215
|
-
window.removeEventListener(
|
|
3233
|
+
return window.addEventListener(p, m), () => {
|
|
3234
|
+
window.removeEventListener(p, m);
|
|
3216
3235
|
};
|
|
3217
|
-
}, []),
|
|
3236
|
+
}, []), c && console.error("[not-page]: No render page"), _;
|
|
3218
3237
|
};
|
|
3219
3238
|
export {
|
|
3220
3239
|
As as Chart,
|