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