@foris/avocado-not-front 3.0.1-beta.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avocado-not-front.es.js +905 -868
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/components/ai-chat-panel/AIChatPanel.d.ts +3 -3
- package/dist/components/ai-summary-card/AISummaryCard.d.ts +3 -2
- package/dist/components/table/TableRowAction.d.ts +0 -1
- package/dist/hooks/builder/useBuildComponentsList.d.ts +2 -2
- package/dist/hooks/builder/useBuilder.d.ts +2 -2
- package/dist/hooks/builder/usePage.d.ts +2 -2
- package/dist/types/components.type.d.ts +52 -1
- package/package.json +9 -9
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
1
|
+
import V from "axios";
|
|
2
2
|
import { create as Ve } from "zustand";
|
|
3
|
-
import He, {
|
|
4
|
-
import { Heading as Re, Text as Qe, ThemeStore as fe, Breadcrumbs as Ye, Button as Ze, CardNotification as ye, Checkbox as Fe, PreviewerMarkdown as Pe, Divider as et, SkeletonBase as De, Modal as tt, Pill as ue, RoundButton as nt, SelectPagination as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
3
|
+
import He, { useMemo as S, useEffect as K, useState as k, Fragment as $, useCallback as D, useRef as Xe, cloneElement as We } from "react";
|
|
4
|
+
import { Heading as Re, Text as Qe, ThemeStore as fe, Breadcrumbs as Ye, Button as Ze, CardNotification as ye, Checkbox as Fe, PreviewerMarkdown as Pe, Divider as et, SkeletonBase as De, Modal as tt, Pill as ue, RoundButton as nt, SelectPagination as at, Select as st, Switch as rt, Table as ct, Pager as ot, TextField as it, toast as W, Accordion as lt, Drawer as dt, Loading as _t, Toaster as ut } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as ht, SummaryCard as ft, PromptCodeEditor as yt } from "@foris/ai-agent";
|
|
6
|
+
import mt from "@uiw/react-codemirror";
|
|
7
7
|
import { json as we } from "@codemirror/lang-json";
|
|
8
|
-
import { markdown as
|
|
9
|
-
import { sql as
|
|
10
|
-
import { yaml as
|
|
8
|
+
import { markdown as xt } from "@codemirror/lang-markdown";
|
|
9
|
+
import { sql as gt } from "@codemirror/lang-sql";
|
|
10
|
+
import { yaml as bt } from "@codemirror/lang-yaml";
|
|
11
11
|
import B from "jsonpath";
|
|
12
|
-
import { Legend as pt, Tooltip as
|
|
13
|
-
const v = Ve(() => ({})),
|
|
14
|
-
const
|
|
15
|
-
v.setState((
|
|
12
|
+
import { Legend as pt, Tooltip as jt, XAxis as wt, YAxis as Ct, ResponsiveContainer as te, AreaChart as Nt, CartesianGrid as me, Area as vt, BarChart as Et, Bar as St, LineChart as qt, Line as kt, PieChart as Ot, Pie as At, Cell as Tt } from "recharts";
|
|
13
|
+
const v = Ve(() => ({})), ce = (e, t, s, a) => {
|
|
14
|
+
const i = s == null ? void 0 : s.hash, c = a && Object.keys(a).length > 0 ? { ...a } : {};
|
|
15
|
+
v.setState((l) => {
|
|
16
16
|
var n;
|
|
17
17
|
return {
|
|
18
|
-
...
|
|
18
|
+
...l,
|
|
19
19
|
[e]: {
|
|
20
|
-
...
|
|
20
|
+
...l[e],
|
|
21
21
|
apiConfig: t,
|
|
22
|
-
currentPageId:
|
|
22
|
+
currentPageId: i,
|
|
23
23
|
isLoading: !1,
|
|
24
24
|
isModalOpen: !0,
|
|
25
25
|
isDrawerOpen: !1,
|
|
26
|
-
entries:
|
|
26
|
+
entries: c,
|
|
27
27
|
overlay: null,
|
|
28
28
|
pages: {
|
|
29
|
-
...(n =
|
|
30
|
-
[
|
|
29
|
+
...(n = l[e]) == null ? void 0 : n.pages,
|
|
30
|
+
[i]: {
|
|
31
31
|
page: s
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -35,29 +35,29 @@ const v = Ve(() => ({})), oe = (e, t, s, r) => {
|
|
|
35
35
|
};
|
|
36
36
|
});
|
|
37
37
|
}, Le = (e, t, s) => {
|
|
38
|
-
const
|
|
38
|
+
const a = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
|
|
39
39
|
return t.length === 0 ? e : Object.fromEntries(
|
|
40
|
-
Object.entries(
|
|
41
|
-
([
|
|
40
|
+
Object.entries(a).filter(
|
|
41
|
+
([i]) => !t.includes(i)
|
|
42
42
|
)
|
|
43
43
|
);
|
|
44
|
-
},
|
|
45
|
-
sessionStorage.setItem("sessionId", s), v.setState((
|
|
46
|
-
const
|
|
44
|
+
}, $t = (e, t, s, a, i) => {
|
|
45
|
+
sessionStorage.setItem("sessionId", s), v.setState((c) => {
|
|
46
|
+
const l = c[e] ?? {}, n = l.entries ?? {}, d = Le(
|
|
47
47
|
n,
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
a,
|
|
49
|
+
i
|
|
50
50
|
);
|
|
51
51
|
return {
|
|
52
|
-
...
|
|
52
|
+
...c,
|
|
53
53
|
[e]: {
|
|
54
|
-
...
|
|
54
|
+
...l,
|
|
55
55
|
currentPageId: t.hash,
|
|
56
56
|
entries: d,
|
|
57
57
|
isLoading: !1,
|
|
58
58
|
overlay: null,
|
|
59
59
|
pages: {
|
|
60
|
-
...
|
|
60
|
+
...l.pages,
|
|
61
61
|
[t.hash]: {
|
|
62
62
|
page: { ...t }
|
|
63
63
|
}
|
|
@@ -65,20 +65,20 @@ const v = Ve(() => ({})), oe = (e, t, s, r) => {
|
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
});
|
|
68
|
-
},
|
|
69
|
-
v.setState((
|
|
70
|
-
var
|
|
71
|
-
const
|
|
72
|
-
|
|
68
|
+
}, Rt = (e, t, s, a) => {
|
|
69
|
+
v.setState((i) => {
|
|
70
|
+
var r;
|
|
71
|
+
const c = i[e] ?? {}, l = c.entries ?? {}, n = Le(
|
|
72
|
+
l,
|
|
73
73
|
s,
|
|
74
|
-
|
|
75
|
-
), d = (
|
|
74
|
+
a
|
|
75
|
+
), d = (r = t.components) == null ? void 0 : r.some(
|
|
76
76
|
(u) => u.component === "drawer"
|
|
77
77
|
);
|
|
78
78
|
return {
|
|
79
|
-
...
|
|
79
|
+
...i,
|
|
80
80
|
[e]: {
|
|
81
|
-
...
|
|
81
|
+
...c,
|
|
82
82
|
entries: n,
|
|
83
83
|
overlay: t,
|
|
84
84
|
isLoading: !1,
|
|
@@ -95,37 +95,37 @@ const v = Ve(() => ({})), oe = (e, t, s, r) => {
|
|
|
95
95
|
overlay: null
|
|
96
96
|
}
|
|
97
97
|
}));
|
|
98
|
-
},
|
|
98
|
+
}, Dt = (e) => {
|
|
99
99
|
var s;
|
|
100
100
|
return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
|
|
101
|
-
},
|
|
101
|
+
}, O = (e, t) => {
|
|
102
102
|
const {
|
|
103
103
|
content: s,
|
|
104
|
-
sessionId:
|
|
105
|
-
deprecatedStateKeys:
|
|
106
|
-
sessionState:
|
|
104
|
+
sessionId: a,
|
|
105
|
+
deprecatedStateKeys: i = [],
|
|
106
|
+
sessionState: c
|
|
107
107
|
} = t;
|
|
108
|
-
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ?
|
|
108
|
+
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? $t(
|
|
109
109
|
e,
|
|
110
110
|
s,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
) :
|
|
111
|
+
a,
|
|
112
|
+
i,
|
|
113
|
+
c
|
|
114
|
+
) : Rt(
|
|
115
115
|
e,
|
|
116
116
|
s,
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
i,
|
|
118
|
+
c
|
|
119
119
|
));
|
|
120
120
|
}, L = (e, t) => {
|
|
121
121
|
v.setState((s) => {
|
|
122
|
-
var
|
|
122
|
+
var a;
|
|
123
123
|
return {
|
|
124
124
|
...s,
|
|
125
125
|
[e]: {
|
|
126
126
|
...s[e],
|
|
127
127
|
entries: {
|
|
128
|
-
...(
|
|
128
|
+
...(a = s[e]) == null ? void 0 : a.entries,
|
|
129
129
|
...t
|
|
130
130
|
// New entries
|
|
131
131
|
}
|
|
@@ -158,58 +158,58 @@ const v = Ve(() => ({})), oe = (e, t, s, r) => {
|
|
|
158
158
|
}));
|
|
159
159
|
}, Ce = (e, t) => {
|
|
160
160
|
v.setState((s) => {
|
|
161
|
-
const
|
|
162
|
-
return
|
|
161
|
+
const a = s[e];
|
|
162
|
+
return a ? {
|
|
163
163
|
...s,
|
|
164
164
|
[e]: {
|
|
165
|
-
...
|
|
165
|
+
...a,
|
|
166
166
|
apiConfig: {
|
|
167
|
-
...
|
|
167
|
+
...a.apiConfig,
|
|
168
168
|
headers: t
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
} : s;
|
|
172
172
|
});
|
|
173
173
|
};
|
|
174
|
-
let
|
|
175
|
-
const
|
|
174
|
+
let oe = !1, P = [], Ne = !1;
|
|
175
|
+
const Lt = (e) => e._userFlow || null, ve = (e) => {
|
|
176
176
|
P.forEach(({ resolve: t, reject: s }) => {
|
|
177
177
|
e ? s(e) : t(void 0);
|
|
178
178
|
}), P = [];
|
|
179
|
-
},
|
|
180
|
-
var
|
|
179
|
+
}, Bt = async (e) => {
|
|
180
|
+
var a, i;
|
|
181
181
|
const t = e == null ? void 0 : e.config;
|
|
182
|
-
if (((
|
|
183
|
-
const
|
|
184
|
-
if (
|
|
185
|
-
const n = (
|
|
182
|
+
if (((a = e == null ? void 0 : e.response) == null ? void 0 : a.status) === 401 && !t._retry) {
|
|
183
|
+
const c = Lt(t);
|
|
184
|
+
if (c) {
|
|
185
|
+
const n = (i = v.getState()[c]) == null ? void 0 : i.apiConfig;
|
|
186
186
|
if (!n)
|
|
187
187
|
return Promise.reject(e);
|
|
188
188
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
189
|
-
if (
|
|
190
|
-
return new Promise((
|
|
191
|
-
P.push({ resolve:
|
|
192
|
-
}).then(() =>
|
|
193
|
-
t._retry = !0,
|
|
189
|
+
if (oe)
|
|
190
|
+
return new Promise((r, u) => {
|
|
191
|
+
P.push({ resolve: r, reject: u });
|
|
192
|
+
}).then(() => V(t)).catch((r) => (console.error("[axiosInterceptors] Queued request failed:", r), Promise.reject(r)));
|
|
193
|
+
t._retry = !0, oe = !0;
|
|
194
194
|
try {
|
|
195
|
-
let
|
|
195
|
+
let r;
|
|
196
196
|
if (n.onAuthenticationError)
|
|
197
|
-
|
|
197
|
+
r = await n.onAuthenticationError();
|
|
198
198
|
else if (typeof n.headers == "function")
|
|
199
|
-
|
|
199
|
+
r = n.headers();
|
|
200
200
|
else
|
|
201
201
|
throw new Error("No refresh handler available");
|
|
202
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ? Ce(
|
|
203
|
-
} catch (
|
|
202
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Ce(c, JSON.stringify(r)) : Ce(c, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), ve(null), V(t);
|
|
203
|
+
} catch (r) {
|
|
204
204
|
return console.error(
|
|
205
205
|
"[axiosInterceptors] Token refresh failed:",
|
|
206
|
-
|
|
206
|
+
r
|
|
207
207
|
), console.error(
|
|
208
208
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
209
209
|
P.length
|
|
210
|
-
), ve(
|
|
210
|
+
), ve(r), Promise.reject(r);
|
|
211
211
|
} finally {
|
|
212
|
-
|
|
212
|
+
oe = !1;
|
|
213
213
|
}
|
|
214
214
|
} else
|
|
215
215
|
console.warn(
|
|
@@ -222,17 +222,17 @@ const Dt = (e) => e._userFlow || null, ve = (e) => {
|
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
224
|
return Promise.reject(e);
|
|
225
|
-
},
|
|
225
|
+
}, It = () => {
|
|
226
226
|
if (Ne) {
|
|
227
227
|
console.debug(
|
|
228
228
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
229
229
|
);
|
|
230
230
|
return;
|
|
231
231
|
}
|
|
232
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."),
|
|
232
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Bt), console.debug("[axiosInterceptors] Response error interceptor registered"), Ne = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
233
233
|
};
|
|
234
|
-
|
|
235
|
-
function
|
|
234
|
+
It();
|
|
235
|
+
function zt(e) {
|
|
236
236
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
237
237
|
}
|
|
238
238
|
var ie = { exports: {} }, Q = {};
|
|
@@ -246,135 +246,172 @@ var ie = { exports: {} }, Q = {};
|
|
|
246
246
|
* LICENSE file in the root directory of this source tree.
|
|
247
247
|
*/
|
|
248
248
|
var Ee;
|
|
249
|
-
function
|
|
249
|
+
function Mt() {
|
|
250
250
|
if (Ee) return Q;
|
|
251
251
|
Ee = 1;
|
|
252
|
-
var e = He, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"),
|
|
253
|
-
function
|
|
252
|
+
var e = He, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
253
|
+
function l(n, d, r) {
|
|
254
254
|
var u, f = {}, _ = null, h = null;
|
|
255
|
-
|
|
256
|
-
for (u in d)
|
|
255
|
+
r !== void 0 && (_ = "" + r), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
|
|
256
|
+
for (u in d) a.call(d, u) && !c.hasOwnProperty(u) && (f[u] = d[u]);
|
|
257
257
|
if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
|
|
258
|
-
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner:
|
|
258
|
+
return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: i.current };
|
|
259
259
|
}
|
|
260
|
-
return Q.Fragment = s, Q.jsx =
|
|
260
|
+
return Q.Fragment = s, Q.jsx = l, Q.jsxs = l, Q;
|
|
261
261
|
}
|
|
262
|
-
var
|
|
263
|
-
function
|
|
264
|
-
return
|
|
262
|
+
var Se;
|
|
263
|
+
function Kt() {
|
|
264
|
+
return Se || (Se = 1, ie.exports = Mt()), ie.exports;
|
|
265
265
|
}
|
|
266
|
-
var
|
|
267
|
-
const
|
|
266
|
+
var o = Kt();
|
|
267
|
+
const Gt = (e) => {
|
|
268
268
|
if (!(e != null && e.content)) return null;
|
|
269
269
|
const t = {
|
|
270
270
|
...e,
|
|
271
271
|
children: e.content,
|
|
272
272
|
type: e.variant
|
|
273
273
|
};
|
|
274
|
-
return /* @__PURE__ */
|
|
275
|
-
},
|
|
274
|
+
return /* @__PURE__ */ o.jsx(Re, { ...t });
|
|
275
|
+
}, Ut = (e) => {
|
|
276
276
|
if (!e) return null;
|
|
277
277
|
const t = {
|
|
278
278
|
...e,
|
|
279
279
|
children: e.content
|
|
280
280
|
};
|
|
281
|
-
return /* @__PURE__ */
|
|
282
|
-
},
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
281
|
+
return /* @__PURE__ */ o.jsx(Qe, { ...t });
|
|
282
|
+
}, Jt = (e) => {
|
|
283
|
+
const t = e.dataSource, s = S(() => ({
|
|
284
|
+
url: e.dataSource.url,
|
|
285
|
+
method: e.dataSource.method,
|
|
286
|
+
headers: e.dataSource.headers,
|
|
287
|
+
params: t == null ? void 0 : t.data
|
|
288
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), a = e.locale ?? "en", i = S(() => {
|
|
289
|
+
var l, n, d, r, u;
|
|
290
|
+
const c = {
|
|
291
|
+
title: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.title,
|
|
292
|
+
welcomeTitle: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.welcomeTitle,
|
|
293
|
+
welcomeDescription: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.welcomeDescription,
|
|
294
|
+
placeholder: (r = e == null ? void 0 : e.translations) == null ? void 0 : r.placeholder,
|
|
295
|
+
disclaimer: (u = e == null ? void 0 : e.translations) == null ? void 0 : u.disclaimer
|
|
296
|
+
};
|
|
297
|
+
return Object.fromEntries(Object.entries(c).filter(([, f]) => !!f));
|
|
298
|
+
}, [e == null ? void 0 : e.translations]);
|
|
299
|
+
return K(() => {
|
|
300
|
+
e.onResolveProps && e.onResolveProps({
|
|
301
|
+
dataSource: s,
|
|
302
|
+
locale: a,
|
|
303
|
+
translations: i,
|
|
304
|
+
initialSuggestions: e.initialSuggestions
|
|
305
|
+
});
|
|
306
|
+
}, [e.onResolveProps, s, a, i, e.initialSuggestions]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
|
|
307
|
+
ht,
|
|
308
|
+
{
|
|
309
|
+
dataSource: s,
|
|
310
|
+
locale: a,
|
|
311
|
+
translations: i,
|
|
312
|
+
initialSuggestions: e.initialSuggestions
|
|
313
|
+
}
|
|
314
|
+
);
|
|
315
|
+
}, Vt = "_summaryCard_jva4h_1", Ht = {
|
|
316
|
+
summaryCard: Vt
|
|
317
|
+
}, Xt = (e) => {
|
|
318
|
+
const t = e.dataSource, s = S(() => ({
|
|
288
319
|
url: e.dataSource.url,
|
|
289
320
|
method: e.dataSource.method,
|
|
290
321
|
headers: e.dataSource.headers,
|
|
291
322
|
body: t == null ? void 0 : t.data
|
|
292
|
-
},
|
|
293
|
-
var
|
|
294
|
-
const
|
|
295
|
-
title: (
|
|
323
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), a = e.locale ?? "en", i = S(() => {
|
|
324
|
+
var l, n, d;
|
|
325
|
+
const c = {
|
|
326
|
+
title: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.title,
|
|
296
327
|
loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
|
|
297
328
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
298
329
|
};
|
|
299
330
|
return Object.fromEntries(
|
|
300
|
-
Object.entries(
|
|
331
|
+
Object.entries(c).filter(([, r]) => !!r)
|
|
301
332
|
);
|
|
302
333
|
}, [e == null ? void 0 : e.translations]);
|
|
303
|
-
return
|
|
304
|
-
|
|
334
|
+
return K(() => {
|
|
335
|
+
e.onResolveProps && e.onResolveProps({
|
|
336
|
+
dataSource: s,
|
|
337
|
+
locale: a,
|
|
338
|
+
translations: i
|
|
339
|
+
});
|
|
340
|
+
}, [e.onResolveProps, s, a, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Ht.summaryCard, children: /* @__PURE__ */ o.jsx(
|
|
341
|
+
ft,
|
|
305
342
|
{
|
|
306
343
|
dataSource: s,
|
|
307
|
-
locale:
|
|
308
|
-
translations:
|
|
344
|
+
locale: a,
|
|
345
|
+
translations: i
|
|
309
346
|
}
|
|
310
347
|
) });
|
|
311
348
|
}, M = (e, t) => {
|
|
312
|
-
const s = v((
|
|
313
|
-
var
|
|
314
|
-
return ((
|
|
349
|
+
const s = v((a) => {
|
|
350
|
+
var i;
|
|
351
|
+
return ((i = a[e]) == null ? void 0 : i.entries) || {};
|
|
315
352
|
});
|
|
316
|
-
return
|
|
317
|
-
const
|
|
353
|
+
return S(() => {
|
|
354
|
+
const a = {
|
|
318
355
|
disabled: !1
|
|
319
356
|
};
|
|
320
|
-
return !t || t.length === 0 || t.forEach((
|
|
321
|
-
const
|
|
322
|
-
|
|
323
|
-
|
|
357
|
+
return !t || t.length === 0 || t.forEach((i) => {
|
|
358
|
+
const c = s[i.key], l = c == null || c === "" || Array.isArray(c) && c.length === 0;
|
|
359
|
+
i.when === "empty" && l && i.actions.forEach((d) => {
|
|
360
|
+
a[d] = !0;
|
|
324
361
|
});
|
|
325
|
-
}),
|
|
362
|
+
}), a;
|
|
326
363
|
}, [t, s]);
|
|
327
|
-
},
|
|
328
|
-
promptCodeEditor:
|
|
329
|
-
},
|
|
364
|
+
}, Wt = "_promptCodeEditor_1d57s_1", Qt = {
|
|
365
|
+
promptCodeEditor: Wt
|
|
366
|
+
}, Yt = (e) => {
|
|
330
367
|
const {
|
|
331
368
|
userFlow: t,
|
|
332
369
|
responseKey: s,
|
|
333
|
-
codeBlockValue:
|
|
334
|
-
language:
|
|
335
|
-
disabled:
|
|
336
|
-
dependencies:
|
|
370
|
+
codeBlockValue: a,
|
|
371
|
+
language: i,
|
|
372
|
+
disabled: c,
|
|
373
|
+
dependencies: l,
|
|
337
374
|
dataSource: n,
|
|
338
375
|
inputLabel: d,
|
|
339
|
-
inputPlaceholder:
|
|
376
|
+
inputPlaceholder: r,
|
|
340
377
|
codeBlockLabel: u
|
|
341
|
-
} = e, f = fe.useThemeStore((
|
|
342
|
-
|
|
378
|
+
} = e, f = fe.useThemeStore((p) => p.theme.mode), [_, h] = k(
|
|
379
|
+
a || ""
|
|
343
380
|
), { disabled: j } = M(
|
|
344
381
|
t,
|
|
345
|
-
|
|
346
|
-
), y =
|
|
382
|
+
l
|
|
383
|
+
), y = c ?? j, x = i ?? "json", m = {
|
|
347
384
|
url: (n == null ? void 0 : n.url) || "",
|
|
348
385
|
method: (n == null ? void 0 : n.method) || "post",
|
|
349
386
|
headers: n == null ? void 0 : n.headers,
|
|
350
387
|
body: n == null ? void 0 : n.data
|
|
351
|
-
}, g = (
|
|
352
|
-
h(
|
|
388
|
+
}, g = (p) => {
|
|
389
|
+
h(p);
|
|
353
390
|
const N = {
|
|
354
|
-
[s]:
|
|
391
|
+
[s]: p
|
|
355
392
|
};
|
|
356
393
|
L(t, N);
|
|
357
394
|
};
|
|
358
|
-
return
|
|
359
|
-
|
|
360
|
-
}, [
|
|
361
|
-
|
|
395
|
+
return K(() => {
|
|
396
|
+
a !== void 0 && a !== _ && h(a);
|
|
397
|
+
}, [a]), /* @__PURE__ */ o.jsx("section", { className: Qt.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
|
|
398
|
+
yt,
|
|
362
399
|
{
|
|
363
400
|
themeMode: f,
|
|
364
401
|
requestConfig: m,
|
|
365
402
|
language: x,
|
|
366
403
|
disabled: y,
|
|
367
404
|
inputLabel: d,
|
|
368
|
-
inputPlaceholder:
|
|
405
|
+
inputPlaceholder: r,
|
|
369
406
|
codeBlockLabel: u,
|
|
370
407
|
codeBlockValue: _,
|
|
371
408
|
onCodeChange: g
|
|
372
409
|
}
|
|
373
410
|
) });
|
|
374
|
-
},
|
|
375
|
-
body:
|
|
376
|
-
body_content:
|
|
377
|
-
},
|
|
411
|
+
}, Zt = "_body_14tsv_1", Ft = "_body_content_14tsv_5", qe = {
|
|
412
|
+
body: Zt,
|
|
413
|
+
body_content: Ft
|
|
414
|
+
}, Pt = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: qe.body, children: /* @__PURE__ */ o.jsx("div", { className: qe.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx($, { children: t }, s)) }) }), X = (e) => {
|
|
378
415
|
if (!e)
|
|
379
416
|
return { "content-type": "application/json" };
|
|
380
417
|
if (typeof e == "function")
|
|
@@ -386,118 +423,118 @@ const Kt = (e) => {
|
|
|
386
423
|
return { "content-type": "application/json", Authorization: e };
|
|
387
424
|
}
|
|
388
425
|
return e;
|
|
389
|
-
}, F = () => new AbortController(),
|
|
390
|
-
const
|
|
391
|
-
|
|
392
|
-
const
|
|
426
|
+
}, F = () => new AbortController(), en = (e, t = {}, s = {}, a = !1, i) => {
|
|
427
|
+
const c = F();
|
|
428
|
+
a && c.abort();
|
|
429
|
+
const l = X(t);
|
|
393
430
|
return {
|
|
394
|
-
call:
|
|
431
|
+
call: V.get(e, {
|
|
395
432
|
headers: {
|
|
396
|
-
...
|
|
433
|
+
...l
|
|
397
434
|
},
|
|
398
435
|
params: s,
|
|
399
|
-
signal:
|
|
400
|
-
_userFlow:
|
|
436
|
+
signal: c.signal,
|
|
437
|
+
_userFlow: i
|
|
401
438
|
}),
|
|
402
|
-
controller:
|
|
439
|
+
controller: c
|
|
403
440
|
};
|
|
404
|
-
}, he = (e, t = {}, s = {},
|
|
405
|
-
const
|
|
406
|
-
|
|
441
|
+
}, he = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
442
|
+
const l = F();
|
|
443
|
+
i && l.abort();
|
|
407
444
|
const n = X(t);
|
|
408
445
|
return {
|
|
409
|
-
call:
|
|
446
|
+
call: V.post(e, s, {
|
|
410
447
|
headers: {
|
|
411
448
|
...n
|
|
412
449
|
},
|
|
413
|
-
params:
|
|
414
|
-
signal:
|
|
415
|
-
_userFlow:
|
|
450
|
+
params: a,
|
|
451
|
+
signal: l.signal,
|
|
452
|
+
_userFlow: c
|
|
416
453
|
}),
|
|
417
|
-
controller:
|
|
454
|
+
controller: l
|
|
418
455
|
};
|
|
419
|
-
},
|
|
420
|
-
const
|
|
421
|
-
|
|
456
|
+
}, tn = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
457
|
+
const l = F();
|
|
458
|
+
i && l.abort();
|
|
422
459
|
const n = X(t);
|
|
423
460
|
return {
|
|
424
|
-
call:
|
|
461
|
+
call: V.put(e, s, {
|
|
425
462
|
headers: {
|
|
426
463
|
...n
|
|
427
464
|
},
|
|
428
|
-
params:
|
|
429
|
-
signal:
|
|
430
|
-
_userFlow:
|
|
465
|
+
params: a,
|
|
466
|
+
signal: l.signal,
|
|
467
|
+
_userFlow: c
|
|
431
468
|
}),
|
|
432
|
-
controller:
|
|
469
|
+
controller: l
|
|
433
470
|
};
|
|
434
|
-
},
|
|
435
|
-
const
|
|
436
|
-
|
|
471
|
+
}, nn = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
472
|
+
const l = F();
|
|
473
|
+
i && l.abort();
|
|
437
474
|
const n = X(t);
|
|
438
475
|
return {
|
|
439
|
-
call:
|
|
476
|
+
call: V.patch(e, s, {
|
|
440
477
|
headers: {
|
|
441
478
|
...n
|
|
442
479
|
},
|
|
443
|
-
params:
|
|
444
|
-
signal:
|
|
445
|
-
_userFlow:
|
|
480
|
+
params: a,
|
|
481
|
+
signal: l.signal,
|
|
482
|
+
_userFlow: c
|
|
446
483
|
}),
|
|
447
|
-
controller:
|
|
484
|
+
controller: l
|
|
448
485
|
};
|
|
449
|
-
},
|
|
450
|
-
const
|
|
451
|
-
|
|
486
|
+
}, an = (e, t = {}, s = {}, a = {}, i = !1, c) => {
|
|
487
|
+
const l = F();
|
|
488
|
+
i && l.abort();
|
|
452
489
|
const n = X(t);
|
|
453
490
|
return {
|
|
454
|
-
call:
|
|
491
|
+
call: V.delete(e, {
|
|
455
492
|
headers: {
|
|
456
493
|
...n
|
|
457
494
|
},
|
|
458
495
|
data: s,
|
|
459
|
-
params:
|
|
460
|
-
signal:
|
|
461
|
-
_userFlow:
|
|
496
|
+
params: a,
|
|
497
|
+
signal: l.signal,
|
|
498
|
+
_userFlow: c
|
|
462
499
|
}),
|
|
463
|
-
controller:
|
|
500
|
+
controller: l
|
|
464
501
|
};
|
|
465
502
|
}, Be = () => {
|
|
466
503
|
let e;
|
|
467
|
-
return { callEndpoint: async (
|
|
468
|
-
|
|
469
|
-
let
|
|
504
|
+
return { callEndpoint: async (a) => {
|
|
505
|
+
a.controller && (e = a.controller);
|
|
506
|
+
let i = {};
|
|
470
507
|
try {
|
|
471
|
-
|
|
472
|
-
} catch (
|
|
473
|
-
throw
|
|
508
|
+
i = await a.call;
|
|
509
|
+
} catch (c) {
|
|
510
|
+
throw c;
|
|
474
511
|
}
|
|
475
|
-
return
|
|
512
|
+
return i;
|
|
476
513
|
}, cancelEndpoint: () => {
|
|
477
514
|
e && e.abort();
|
|
478
515
|
} };
|
|
479
|
-
}, Ie = async (e, t, s = "",
|
|
516
|
+
}, Ie = async (e, t, s = "", a = {}, i = {}) => {
|
|
480
517
|
try {
|
|
481
|
-
const { callEndpoint:
|
|
482
|
-
s &&
|
|
483
|
-
const u = `${
|
|
518
|
+
const { callEndpoint: c } = Be(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
|
|
519
|
+
s && r.append("hash_code", s), d && r.append("sessionId", d);
|
|
520
|
+
const u = `${l}/not-front/next-ui/?${r.toString()}`, f = X(n), _ = he(
|
|
484
521
|
u,
|
|
485
522
|
f,
|
|
486
|
-
|
|
487
|
-
|
|
523
|
+
a,
|
|
524
|
+
i,
|
|
488
525
|
!1,
|
|
489
526
|
t
|
|
490
527
|
);
|
|
491
|
-
return await
|
|
492
|
-
} catch (
|
|
493
|
-
return console.error(
|
|
528
|
+
return await c(_);
|
|
529
|
+
} catch (c) {
|
|
530
|
+
return console.error(c), Promise.reject(c);
|
|
494
531
|
}
|
|
495
532
|
}, I = () => {
|
|
496
|
-
const e = v((n) => n), { callEndpoint: t } = Be(), s = async (n, d,
|
|
533
|
+
const e = v((n) => n), { callEndpoint: t } = Be(), s = async (n, d, r, u, f = !0) => {
|
|
497
534
|
var _;
|
|
498
535
|
try {
|
|
499
536
|
const h = (_ = e[n]) == null ? void 0 : _.apiConfig, j = {
|
|
500
|
-
state: { ...
|
|
537
|
+
state: { ...r },
|
|
501
538
|
triggerKey: u
|
|
502
539
|
};
|
|
503
540
|
return f && H(n, !0), await Ie(
|
|
@@ -509,28 +546,28 @@ const Kt = (e) => {
|
|
|
509
546
|
} catch (h) {
|
|
510
547
|
throw f && H(n, !1), console.error("[getNextUI] Error fetching next UI:", h), h;
|
|
511
548
|
}
|
|
512
|
-
},
|
|
513
|
-
const { method:
|
|
514
|
-
switch (
|
|
549
|
+
}, a = (n, d) => {
|
|
550
|
+
const { method: r, url: u, headers: f, data: _, params: h } = n;
|
|
551
|
+
switch (r) {
|
|
515
552
|
case "post":
|
|
516
553
|
return he(u, f, _, {}, !1, d);
|
|
517
554
|
case "put":
|
|
518
|
-
return en(u, f, _, {}, !1, d);
|
|
519
|
-
case "patch":
|
|
520
555
|
return tn(u, f, _, {}, !1, d);
|
|
556
|
+
case "patch":
|
|
557
|
+
return nn(u, f, _, {}, !1, d);
|
|
521
558
|
case "delete":
|
|
522
|
-
return
|
|
559
|
+
return an(u, f, _, h, !1, d);
|
|
523
560
|
case "get":
|
|
524
561
|
default:
|
|
525
|
-
return
|
|
562
|
+
return en(u, f, h, !1, d);
|
|
526
563
|
}
|
|
527
|
-
},
|
|
528
|
-
const { url:
|
|
564
|
+
}, i = (n, d) => {
|
|
565
|
+
const { url: r, headers: u } = n, f = {
|
|
529
566
|
query: n == null ? void 0 : n.query,
|
|
530
567
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
531
568
|
};
|
|
532
569
|
return he(
|
|
533
|
-
|
|
570
|
+
r,
|
|
534
571
|
{
|
|
535
572
|
...u,
|
|
536
573
|
"Content-Type": "application/json"
|
|
@@ -540,21 +577,21 @@ const Kt = (e) => {
|
|
|
540
577
|
!1,
|
|
541
578
|
d
|
|
542
579
|
);
|
|
543
|
-
},
|
|
580
|
+
}, c = async (n, d, r = !0) => {
|
|
544
581
|
var u, f;
|
|
545
582
|
if (!n) {
|
|
546
583
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
547
584
|
return;
|
|
548
585
|
}
|
|
549
|
-
|
|
586
|
+
r && H(d, !0);
|
|
550
587
|
try {
|
|
551
588
|
let _;
|
|
552
589
|
switch (n == null ? void 0 : n.type) {
|
|
553
590
|
case "rest":
|
|
554
|
-
_ =
|
|
591
|
+
_ = a(n, d);
|
|
555
592
|
break;
|
|
556
593
|
case "graphql":
|
|
557
|
-
_ =
|
|
594
|
+
_ = i(n, d);
|
|
558
595
|
break;
|
|
559
596
|
default:
|
|
560
597
|
throw new Error("[fetchDataSource] Unsupported data source type");
|
|
@@ -571,20 +608,20 @@ const Kt = (e) => {
|
|
|
571
608
|
}
|
|
572
609
|
};
|
|
573
610
|
} finally {
|
|
574
|
-
|
|
611
|
+
r && H(d, !1);
|
|
575
612
|
}
|
|
576
613
|
};
|
|
577
614
|
return {
|
|
578
615
|
getNextUI: s,
|
|
579
|
-
fetchDataSource:
|
|
580
|
-
fetchAndGetNextUI: async (n, d,
|
|
616
|
+
fetchDataSource: c,
|
|
617
|
+
fetchAndGetNextUI: async (n, d, r, u, f) => {
|
|
581
618
|
try {
|
|
582
619
|
H(n, !0);
|
|
583
|
-
const _ = await
|
|
620
|
+
const _ = await c(f, n, !1);
|
|
584
621
|
return _ && await s(
|
|
585
622
|
n,
|
|
586
623
|
d,
|
|
587
|
-
|
|
624
|
+
r,
|
|
588
625
|
u
|
|
589
626
|
);
|
|
590
627
|
} catch (_) {
|
|
@@ -595,30 +632,30 @@ const Kt = (e) => {
|
|
|
595
632
|
}
|
|
596
633
|
}
|
|
597
634
|
};
|
|
598
|
-
},
|
|
635
|
+
}, sn = ({
|
|
599
636
|
userFlow: e,
|
|
600
637
|
items: t,
|
|
601
638
|
responseKey: s
|
|
602
639
|
}) => {
|
|
603
|
-
const { getNextUI:
|
|
604
|
-
async ({ actionType:
|
|
605
|
-
var
|
|
640
|
+
const { getNextUI: a } = I(), i = D(
|
|
641
|
+
async ({ actionType: l, hashCode: n, redirectUrl: d }) => {
|
|
642
|
+
var r;
|
|
606
643
|
try {
|
|
607
|
-
switch (
|
|
644
|
+
switch (l) {
|
|
608
645
|
case "GO_TO_NEXT_UI":
|
|
609
|
-
const u = await
|
|
646
|
+
const u = await a(
|
|
610
647
|
e,
|
|
611
648
|
n,
|
|
612
|
-
{ ...(
|
|
649
|
+
{ ...(r = v.getState()[e]) == null ? void 0 : r.entries },
|
|
613
650
|
s
|
|
614
651
|
);
|
|
615
|
-
u != null && u.data &&
|
|
652
|
+
u != null && u.data && O(e, u == null ? void 0 : u.data);
|
|
616
653
|
break;
|
|
617
654
|
case "REDIRECT":
|
|
618
655
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
619
656
|
break;
|
|
620
657
|
default:
|
|
621
|
-
console.warn(`Unhandled actionType: ${
|
|
658
|
+
console.warn(`Unhandled actionType: ${l}`);
|
|
622
659
|
break;
|
|
623
660
|
}
|
|
624
661
|
} catch (u) {
|
|
@@ -626,38 +663,38 @@ const Kt = (e) => {
|
|
|
626
663
|
}
|
|
627
664
|
},
|
|
628
665
|
[]
|
|
629
|
-
),
|
|
630
|
-
title:
|
|
631
|
-
component: /* @__PURE__ */
|
|
666
|
+
), c = S(() => t == null ? void 0 : t.map((l) => ({
|
|
667
|
+
title: l == null ? void 0 : l.title,
|
|
668
|
+
component: /* @__PURE__ */ o.jsx("div", { onClick: () => i(l) })
|
|
632
669
|
})), []);
|
|
633
|
-
return /* @__PURE__ */
|
|
634
|
-
},
|
|
670
|
+
return /* @__PURE__ */ o.jsx(Ye, { items: c });
|
|
671
|
+
}, rn = (e) => {
|
|
635
672
|
const {
|
|
636
673
|
userFlow: t,
|
|
637
674
|
pageId: s,
|
|
638
|
-
responseKey:
|
|
639
|
-
actionType:
|
|
640
|
-
label:
|
|
641
|
-
content:
|
|
675
|
+
responseKey: a,
|
|
676
|
+
actionType: i,
|
|
677
|
+
label: c,
|
|
678
|
+
content: l,
|
|
642
679
|
dataSource: n,
|
|
643
680
|
redirectUrl: d,
|
|
644
|
-
dependencies:
|
|
681
|
+
dependencies: r,
|
|
645
682
|
onClick: u,
|
|
646
683
|
...f
|
|
647
684
|
} = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: j } = I(), { disabled: y } = M(
|
|
648
685
|
t,
|
|
649
|
-
|
|
686
|
+
r
|
|
650
687
|
), x = {
|
|
651
688
|
...f,
|
|
652
|
-
children:
|
|
689
|
+
children: l ?? c
|
|
653
690
|
}, m = (x == null ? void 0 : x.disabled) ?? y, g = D(async () => {
|
|
654
|
-
var
|
|
691
|
+
var p, N, b;
|
|
655
692
|
try {
|
|
656
693
|
const C = {
|
|
657
|
-
...(
|
|
658
|
-
[
|
|
694
|
+
...(p = v.getState()[t]) == null ? void 0 : p.entries,
|
|
695
|
+
[a]: { status: 200 }
|
|
659
696
|
};
|
|
660
|
-
switch (L(t, C),
|
|
697
|
+
switch (L(t, C), i) {
|
|
661
698
|
case "CLOSE_MODAL":
|
|
662
699
|
ge(t, !1);
|
|
663
700
|
break;
|
|
@@ -672,9 +709,9 @@ const Kt = (e) => {
|
|
|
672
709
|
t,
|
|
673
710
|
s,
|
|
674
711
|
C,
|
|
675
|
-
|
|
712
|
+
a
|
|
676
713
|
);
|
|
677
|
-
w != null && w.data &&
|
|
714
|
+
w != null && w.data && O(t, w == null ? void 0 : w.data);
|
|
678
715
|
break;
|
|
679
716
|
}
|
|
680
717
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -682,10 +719,10 @@ const Kt = (e) => {
|
|
|
682
719
|
t,
|
|
683
720
|
s,
|
|
684
721
|
C,
|
|
685
|
-
|
|
722
|
+
a,
|
|
686
723
|
n
|
|
687
724
|
);
|
|
688
|
-
w != null && w.data &&
|
|
725
|
+
w != null && w.data && O(t, w == null ? void 0 : w.data);
|
|
689
726
|
break;
|
|
690
727
|
}
|
|
691
728
|
case "GET_DATA_SOURCE": {
|
|
@@ -693,43 +730,43 @@ const Kt = (e) => {
|
|
|
693
730
|
t,
|
|
694
731
|
s,
|
|
695
732
|
C,
|
|
696
|
-
|
|
733
|
+
a
|
|
697
734
|
), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
|
|
698
735
|
if ((E == null ? void 0 : E.type) !== "fetch") break;
|
|
699
|
-
const T = E == null ? void 0 : E.dataSource,
|
|
736
|
+
const T = E == null ? void 0 : E.dataSource, q = await h(
|
|
700
737
|
T,
|
|
701
738
|
t,
|
|
702
739
|
// Avoid to handle loading state until all the requests are done
|
|
703
740
|
!1
|
|
704
|
-
),
|
|
705
|
-
...(
|
|
706
|
-
[
|
|
707
|
-
status:
|
|
708
|
-
content:
|
|
741
|
+
), G = {
|
|
742
|
+
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
743
|
+
[a]: {
|
|
744
|
+
status: q == null ? void 0 : q.status,
|
|
745
|
+
content: q == null ? void 0 : q.data
|
|
709
746
|
}
|
|
710
747
|
};
|
|
711
|
-
L(t,
|
|
712
|
-
const
|
|
748
|
+
L(t, G);
|
|
749
|
+
const U = await _(
|
|
713
750
|
t,
|
|
714
751
|
s,
|
|
715
|
-
|
|
716
|
-
|
|
752
|
+
G,
|
|
753
|
+
a
|
|
717
754
|
);
|
|
718
|
-
|
|
755
|
+
U != null && U.data && O(t, U == null ? void 0 : U.data);
|
|
719
756
|
break;
|
|
720
757
|
}
|
|
721
758
|
case "REDIRECT":
|
|
722
759
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
723
760
|
break;
|
|
724
761
|
default:
|
|
725
|
-
console.warn(`Unhandled actionType: ${
|
|
762
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
726
763
|
break;
|
|
727
764
|
}
|
|
728
765
|
} catch (C) {
|
|
729
766
|
alert(JSON.stringify(C));
|
|
730
767
|
}
|
|
731
|
-
}, [
|
|
732
|
-
return /* @__PURE__ */
|
|
768
|
+
}, [i, n, s, a, t]);
|
|
769
|
+
return /* @__PURE__ */ o.jsx(
|
|
733
770
|
Ze,
|
|
734
771
|
{
|
|
735
772
|
...x,
|
|
@@ -737,64 +774,64 @@ const Kt = (e) => {
|
|
|
737
774
|
onClick: () => !m && (u ?? g)()
|
|
738
775
|
}
|
|
739
776
|
);
|
|
740
|
-
},
|
|
741
|
-
cardNotificationNotFront:
|
|
742
|
-
},
|
|
743
|
-
const { content: t, description: s, ...
|
|
744
|
-
...
|
|
777
|
+
}, cn = "_cardNotificationNotFront_t7pln_1", on = {
|
|
778
|
+
cardNotificationNotFront: cn
|
|
779
|
+
}, ln = (e) => {
|
|
780
|
+
const { content: t, description: s, ...a } = e, i = {
|
|
781
|
+
...a,
|
|
745
782
|
children: t ?? s
|
|
746
783
|
};
|
|
747
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ o.jsx(
|
|
748
785
|
ye,
|
|
749
786
|
{
|
|
750
|
-
...
|
|
787
|
+
...i,
|
|
751
788
|
className: on.cardNotificationNotFront
|
|
752
789
|
}
|
|
753
790
|
);
|
|
754
|
-
},
|
|
791
|
+
}, dn = (e) => {
|
|
755
792
|
const {
|
|
756
793
|
userFlow: t,
|
|
757
794
|
pageId: s,
|
|
758
|
-
responseKey:
|
|
759
|
-
actionType:
|
|
760
|
-
label:
|
|
761
|
-
value:
|
|
795
|
+
responseKey: a,
|
|
796
|
+
actionType: i,
|
|
797
|
+
label: c,
|
|
798
|
+
value: l,
|
|
762
799
|
required: n,
|
|
763
800
|
dependencies: d,
|
|
764
|
-
...
|
|
801
|
+
...r
|
|
765
802
|
} = e, u = {
|
|
766
|
-
...
|
|
767
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
803
|
+
...r
|
|
804
|
+
}, { getNextUI: f } = I(), [_, h] = k(l || !1), { disabled: j } = M(
|
|
768
805
|
t,
|
|
769
806
|
d
|
|
770
|
-
), y =
|
|
807
|
+
), y = S(() => n && c ? `${c} *` : c ?? "", [c, n]), x = D(async () => {
|
|
771
808
|
var g;
|
|
772
809
|
try {
|
|
773
|
-
const
|
|
774
|
-
h(
|
|
810
|
+
const p = !_;
|
|
811
|
+
h(p);
|
|
775
812
|
const N = {
|
|
776
813
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
777
|
-
[
|
|
814
|
+
[a]: p
|
|
778
815
|
};
|
|
779
|
-
switch (L(t, N),
|
|
816
|
+
switch (L(t, N), i) {
|
|
780
817
|
case "GO_TO_NEXT_UI":
|
|
781
|
-
const
|
|
818
|
+
const b = await f(
|
|
782
819
|
t,
|
|
783
820
|
s,
|
|
784
821
|
N,
|
|
785
|
-
|
|
822
|
+
a
|
|
786
823
|
);
|
|
787
|
-
|
|
824
|
+
b != null && b.data && O(t, b == null ? void 0 : b.data);
|
|
788
825
|
break;
|
|
789
826
|
default:
|
|
790
|
-
console.warn(`Unhandled actionType: ${
|
|
827
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
791
828
|
break;
|
|
792
829
|
}
|
|
793
|
-
} catch (
|
|
794
|
-
console.error("Error in checkbox action:",
|
|
830
|
+
} catch (p) {
|
|
831
|
+
console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
|
|
795
832
|
}
|
|
796
|
-
}, [t, s,
|
|
797
|
-
return /* @__PURE__ */
|
|
833
|
+
}, [t, s, a, i, _]), m = (u == null ? void 0 : u.disabled) ?? j;
|
|
834
|
+
return /* @__PURE__ */ o.jsx(
|
|
798
835
|
Fe,
|
|
799
836
|
{
|
|
800
837
|
...u,
|
|
@@ -806,56 +843,56 @@ const Kt = (e) => {
|
|
|
806
843
|
}
|
|
807
844
|
}
|
|
808
845
|
);
|
|
809
|
-
},
|
|
810
|
-
codeEditor:
|
|
811
|
-
codeEditor_label:
|
|
812
|
-
codeEditor_wrapper:
|
|
813
|
-
input:
|
|
814
|
-
preview:
|
|
815
|
-
},
|
|
846
|
+
}, _n = "_codeEditor_1coz7_1", un = "_codeEditor_label_1coz7_4", hn = "_codeEditor_wrapper_1coz7_13", fn = "_input_1coz7_17", yn = "_preview_1coz7_18", Y = {
|
|
847
|
+
codeEditor: _n,
|
|
848
|
+
codeEditor_label: un,
|
|
849
|
+
codeEditor_wrapper: hn,
|
|
850
|
+
input: fn,
|
|
851
|
+
preview: yn
|
|
852
|
+
}, mn = (e) => {
|
|
816
853
|
const {
|
|
817
854
|
userFlow: t,
|
|
818
855
|
responseKey: s,
|
|
819
|
-
label:
|
|
820
|
-
language:
|
|
821
|
-
placeholder:
|
|
822
|
-
value:
|
|
856
|
+
label: a,
|
|
857
|
+
language: i,
|
|
858
|
+
placeholder: c,
|
|
859
|
+
value: l,
|
|
823
860
|
required: n,
|
|
824
861
|
dependencies: d,
|
|
825
|
-
disabled:
|
|
862
|
+
disabled: r,
|
|
826
863
|
showPreview: u
|
|
827
|
-
} = e, [f, _] =
|
|
864
|
+
} = e, [f, _] = k(l ?? ""), h = fe.useThemeStore((p) => p.theme.mode), { disabled: j } = M(
|
|
828
865
|
t,
|
|
829
866
|
d
|
|
830
|
-
), y =
|
|
867
|
+
), y = r ?? j, x = {
|
|
831
868
|
json: we(),
|
|
832
|
-
markdown:
|
|
833
|
-
sql:
|
|
834
|
-
yaml:
|
|
835
|
-
}, m =
|
|
836
|
-
_(
|
|
869
|
+
markdown: xt(),
|
|
870
|
+
sql: gt(),
|
|
871
|
+
yaml: bt()
|
|
872
|
+
}, m = S(() => n && a ? `${a} *` : a ?? "", [a, n]), g = (p) => {
|
|
873
|
+
_(p);
|
|
837
874
|
const N = {
|
|
838
|
-
[s]:
|
|
875
|
+
[s]: p
|
|
839
876
|
};
|
|
840
877
|
L(t, N);
|
|
841
878
|
};
|
|
842
|
-
return /* @__PURE__ */
|
|
843
|
-
m && m !== "" && /* @__PURE__ */
|
|
844
|
-
/* @__PURE__ */
|
|
845
|
-
/* @__PURE__ */
|
|
846
|
-
|
|
879
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor, children: [
|
|
880
|
+
m && m !== "" && /* @__PURE__ */ o.jsx("label", { className: Y.codeEditor_label, children: m }),
|
|
881
|
+
/* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor_wrapper, children: [
|
|
882
|
+
/* @__PURE__ */ o.jsx(
|
|
883
|
+
mt,
|
|
847
884
|
{
|
|
848
885
|
className: Y.input,
|
|
849
886
|
value: f,
|
|
850
887
|
height: "400px",
|
|
851
|
-
placeholder:
|
|
852
|
-
extensions: [x[
|
|
853
|
-
onChange: (
|
|
888
|
+
placeholder: c,
|
|
889
|
+
extensions: [x[i] ?? we()],
|
|
890
|
+
onChange: (p) => g(p),
|
|
854
891
|
theme: h,
|
|
855
892
|
editable: !y
|
|
856
893
|
}
|
|
857
894
|
),
|
|
858
|
-
|
|
895
|
+
i == "markdown" && u && /* @__PURE__ */ o.jsx(Pe, { className: Y.preview, children: f })
|
|
859
896
|
] })
|
|
860
897
|
] });
|
|
861
898
|
};
|
|
@@ -865,69 +902,69 @@ var le = { exports: {} };
|
|
|
865
902
|
Licensed under the MIT License (MIT), see
|
|
866
903
|
http://jedwatson.github.io/classnames
|
|
867
904
|
*/
|
|
868
|
-
var
|
|
869
|
-
function
|
|
870
|
-
return
|
|
905
|
+
var ke;
|
|
906
|
+
function xn() {
|
|
907
|
+
return ke || (ke = 1, (function(e) {
|
|
871
908
|
(function() {
|
|
872
909
|
var t = {}.hasOwnProperty;
|
|
873
910
|
function s() {
|
|
874
|
-
for (var
|
|
875
|
-
var
|
|
876
|
-
if (
|
|
877
|
-
var
|
|
878
|
-
if (
|
|
879
|
-
|
|
880
|
-
else if (Array.isArray(
|
|
881
|
-
if (
|
|
882
|
-
var n = s.apply(null,
|
|
883
|
-
n &&
|
|
911
|
+
for (var a = [], i = 0; i < arguments.length; i++) {
|
|
912
|
+
var c = arguments[i];
|
|
913
|
+
if (c) {
|
|
914
|
+
var l = typeof c;
|
|
915
|
+
if (l === "string" || l === "number")
|
|
916
|
+
a.push(c);
|
|
917
|
+
else if (Array.isArray(c)) {
|
|
918
|
+
if (c.length) {
|
|
919
|
+
var n = s.apply(null, c);
|
|
920
|
+
n && a.push(n);
|
|
884
921
|
}
|
|
885
|
-
} else if (
|
|
886
|
-
if (
|
|
887
|
-
|
|
922
|
+
} else if (l === "object") {
|
|
923
|
+
if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
|
|
924
|
+
a.push(c.toString());
|
|
888
925
|
continue;
|
|
889
926
|
}
|
|
890
|
-
for (var d in
|
|
891
|
-
t.call(
|
|
927
|
+
for (var d in c)
|
|
928
|
+
t.call(c, d) && c[d] && a.push(d);
|
|
892
929
|
}
|
|
893
930
|
}
|
|
894
931
|
}
|
|
895
|
-
return
|
|
932
|
+
return a.join(" ");
|
|
896
933
|
}
|
|
897
934
|
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
898
935
|
})();
|
|
899
936
|
})(le)), le.exports;
|
|
900
937
|
}
|
|
901
|
-
var
|
|
902
|
-
const ee = /* @__PURE__ */
|
|
903
|
-
dividerNotFront:
|
|
904
|
-
},
|
|
905
|
-
const { url:
|
|
906
|
-
if (
|
|
907
|
-
const u = (
|
|
908
|
-
|
|
938
|
+
var gn = xn();
|
|
939
|
+
const ee = /* @__PURE__ */ zt(gn), bn = "_dividerNotFront_tze3j_1", pn = {
|
|
940
|
+
dividerNotFront: bn
|
|
941
|
+
}, jn = (e) => /* @__PURE__ */ o.jsx(et, { ...e, className: pn.dividerNotFront }), wn = (e, t, s) => {
|
|
942
|
+
const { url: a, paginationKeys: i, params: c } = e, l = [], n = (i == null ? void 0 : i.page) ?? "page";
|
|
943
|
+
if (l.push(`${n}=${t}`), typeof s == "string") {
|
|
944
|
+
const u = (i == null ? void 0 : i.text) ?? "text";
|
|
945
|
+
l.push(`${u}=${encodeURIComponent(s || "")}`);
|
|
909
946
|
}
|
|
910
|
-
if (
|
|
911
|
-
const u = Object.entries(
|
|
947
|
+
if (c && typeof c == "object") {
|
|
948
|
+
const u = Object.entries(c).map(
|
|
912
949
|
([f, _]) => `${encodeURIComponent(f)}=${encodeURIComponent(_)}`
|
|
913
950
|
);
|
|
914
|
-
|
|
951
|
+
l.push(...u);
|
|
915
952
|
}
|
|
916
|
-
const d =
|
|
917
|
-
return d ? `${
|
|
918
|
-
},
|
|
919
|
-
const { type:
|
|
920
|
-
return
|
|
953
|
+
const d = l.join("&");
|
|
954
|
+
return d ? `${a}?${d}` : a;
|
|
955
|
+
}, be = (e, t, s) => {
|
|
956
|
+
const { type: a, url: i, method: c, headers: l } = e;
|
|
957
|
+
return a === "rest" ? {
|
|
921
958
|
type: "rest",
|
|
922
|
-
url:
|
|
923
|
-
method:
|
|
924
|
-
headers:
|
|
959
|
+
url: wn(e, t, s),
|
|
960
|
+
method: c,
|
|
961
|
+
headers: l,
|
|
925
962
|
data: (e == null ? void 0 : e.data) || {}
|
|
926
963
|
} : {
|
|
927
964
|
type: "graphql",
|
|
928
|
-
url:
|
|
965
|
+
url: i,
|
|
929
966
|
method: "post",
|
|
930
|
-
headers:
|
|
967
|
+
headers: l,
|
|
931
968
|
query: e == null ? void 0 : e.query,
|
|
932
969
|
variables: {
|
|
933
970
|
...(e == null ? void 0 : e.variables) || {},
|
|
@@ -935,36 +972,36 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
935
972
|
page: t
|
|
936
973
|
}
|
|
937
974
|
};
|
|
938
|
-
}, de = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ze = (e, t, s,
|
|
939
|
-
const
|
|
975
|
+
}, de = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ze = (e, t, s, a) => {
|
|
976
|
+
const i = B.query(e, t), c = i == null ? void 0 : i.map((r) => {
|
|
940
977
|
var u, f;
|
|
941
978
|
if (s) {
|
|
942
979
|
const _ = {};
|
|
943
980
|
for (const [h, j] of Object.entries(s))
|
|
944
981
|
if (typeof j == "object" && "path" in j) {
|
|
945
|
-
const y = j, x = (u = B.query(
|
|
982
|
+
const y = j, x = (u = B.query(r, y.path)) == null ? void 0 : u[0];
|
|
946
983
|
y.translations && String(x) in y.translations ? _[h] = de(
|
|
947
984
|
y.translations[String(x)]
|
|
948
985
|
) : _[h] = de(x);
|
|
949
986
|
} else {
|
|
950
987
|
const y = j;
|
|
951
|
-
_[h] = de((f = B.query(
|
|
988
|
+
_[h] = de((f = B.query(r, y)) == null ? void 0 : f[0]);
|
|
952
989
|
}
|
|
953
990
|
return _;
|
|
954
991
|
} else
|
|
955
|
-
return
|
|
956
|
-
}),
|
|
957
|
-
size:
|
|
992
|
+
return r;
|
|
993
|
+
}), l = B.value(e, (a == null ? void 0 : a.size) ?? "$.meta.size") ?? i.length, n = B.value(e, (a == null ? void 0 : a.total) ?? "$.meta.total") ?? 0, d = {
|
|
994
|
+
size: l,
|
|
958
995
|
total: n,
|
|
959
|
-
totalPages:
|
|
996
|
+
totalPages: a != null && a.totalPages ? B.value(
|
|
960
997
|
e,
|
|
961
|
-
(
|
|
962
|
-
) :
|
|
998
|
+
(a == null ? void 0 : a.totalPages) ?? "$.meta.totalPages"
|
|
999
|
+
) : l > 0 ? Math.ceil(n / l) : 0
|
|
963
1000
|
};
|
|
964
|
-
return { items:
|
|
1001
|
+
return { items: c, pagination: d };
|
|
965
1002
|
}, ne = ({ withPadding: e = !1 }) => {
|
|
966
|
-
const t = (s) => /* @__PURE__ */
|
|
967
|
-
return /* @__PURE__ */
|
|
1003
|
+
const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: R.labelColor }, children: s });
|
|
1004
|
+
return /* @__PURE__ */ o.jsx(
|
|
968
1005
|
pt,
|
|
969
1006
|
{
|
|
970
1007
|
formatter: t,
|
|
@@ -975,38 +1012,38 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
975
1012
|
}
|
|
976
1013
|
}
|
|
977
1014
|
);
|
|
978
|
-
},
|
|
1015
|
+
}, Cn = ({
|
|
979
1016
|
active: e,
|
|
980
1017
|
payload: t,
|
|
981
1018
|
label: s,
|
|
982
|
-
tooltipKey:
|
|
1019
|
+
tooltipKey: a
|
|
983
1020
|
}) => {
|
|
984
|
-
var
|
|
1021
|
+
var c;
|
|
985
1022
|
if (!e || !t || !t.length)
|
|
986
1023
|
return null;
|
|
987
|
-
const
|
|
1024
|
+
const i = {
|
|
988
1025
|
backgroundColor: R.tooltipBg,
|
|
989
1026
|
borderRadius: R.tooltipBorderRadius,
|
|
990
1027
|
color: R.tooltipColor,
|
|
991
1028
|
padding: "8px 12px",
|
|
992
1029
|
border: "1px solid #e5e7eb"
|
|
993
1030
|
};
|
|
994
|
-
if (
|
|
995
|
-
const
|
|
996
|
-
if (
|
|
997
|
-
return /* @__PURE__ */
|
|
1031
|
+
if (a) {
|
|
1032
|
+
const l = (c = t[0]) == null ? void 0 : c.payload;
|
|
1033
|
+
if (l && l[a] !== void 0 && l[a] !== null)
|
|
1034
|
+
return /* @__PURE__ */ o.jsx("div", { style: i, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: l[a] }) });
|
|
998
1035
|
}
|
|
999
|
-
return /* @__PURE__ */
|
|
1000
|
-
/* @__PURE__ */
|
|
1001
|
-
t.map((
|
|
1036
|
+
return /* @__PURE__ */ o.jsxs("div", { style: i, children: [
|
|
1037
|
+
/* @__PURE__ */ o.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1038
|
+
t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
|
|
1002
1039
|
] });
|
|
1003
|
-
},
|
|
1004
|
-
|
|
1040
|
+
}, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
|
|
1041
|
+
jt,
|
|
1005
1042
|
{
|
|
1006
|
-
content: /* @__PURE__ */
|
|
1043
|
+
content: /* @__PURE__ */ o.jsx(Cn, { tooltipKey: e })
|
|
1007
1044
|
}
|
|
1008
|
-
),
|
|
1009
|
-
|
|
1045
|
+
), pe = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
|
|
1046
|
+
wt,
|
|
1010
1047
|
{
|
|
1011
1048
|
dataKey: e,
|
|
1012
1049
|
hide: t,
|
|
@@ -1015,81 +1052,81 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1015
1052
|
fontSize: R.fontSize
|
|
1016
1053
|
}
|
|
1017
1054
|
}
|
|
1018
|
-
), je = () => /* @__PURE__ */
|
|
1019
|
-
|
|
1055
|
+
), je = () => /* @__PURE__ */ o.jsx(
|
|
1056
|
+
Ct,
|
|
1020
1057
|
{
|
|
1021
1058
|
tick: {
|
|
1022
1059
|
fill: R.labelColor,
|
|
1023
1060
|
fontSize: R.fontSize
|
|
1024
1061
|
}
|
|
1025
1062
|
}
|
|
1026
|
-
),
|
|
1027
|
-
const { data: t, xKey: s, yKeys:
|
|
1028
|
-
return /* @__PURE__ */
|
|
1029
|
-
/* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
/* @__PURE__ */
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
-
/* @__PURE__ */
|
|
1034
|
-
|
|
1035
|
-
|
|
1063
|
+
), Nn = (e) => {
|
|
1064
|
+
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e;
|
|
1065
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Nt, { data: t, children: [
|
|
1066
|
+
/* @__PURE__ */ o.jsx(me, { strokeDasharray: "3 3" }),
|
|
1067
|
+
/* @__PURE__ */ o.jsx(pe, { dataKey: s }),
|
|
1068
|
+
/* @__PURE__ */ o.jsx(je, {}),
|
|
1069
|
+
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1070
|
+
/* @__PURE__ */ o.jsx(ne, {}),
|
|
1071
|
+
a.map((c, l) => /* @__PURE__ */ o.jsx(
|
|
1072
|
+
vt,
|
|
1036
1073
|
{
|
|
1037
1074
|
type: "monotone",
|
|
1038
|
-
dataKey:
|
|
1039
|
-
stroke: z[
|
|
1040
|
-
fill: z[
|
|
1075
|
+
dataKey: c,
|
|
1076
|
+
stroke: z[l % z.length],
|
|
1077
|
+
fill: z[l % z.length]
|
|
1041
1078
|
},
|
|
1042
|
-
|
|
1079
|
+
c
|
|
1043
1080
|
))
|
|
1044
1081
|
] }) });
|
|
1045
|
-
},
|
|
1046
|
-
const { data: t, yKeys: s, xKey:
|
|
1047
|
-
return /* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
/* @__PURE__ */
|
|
1052
|
-
/* @__PURE__ */
|
|
1053
|
-
s.map((
|
|
1054
|
-
|
|
1082
|
+
}, vn = (e) => {
|
|
1083
|
+
const { data: t, yKeys: s, xKey: a, tooltipKey: i } = e;
|
|
1084
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Et, { data: t, children: [
|
|
1085
|
+
/* @__PURE__ */ o.jsx(me, { strokeDasharray: "3 3" }),
|
|
1086
|
+
/* @__PURE__ */ o.jsx(pe, { hide: !0, dataKey: a }),
|
|
1087
|
+
/* @__PURE__ */ o.jsx(je, {}),
|
|
1088
|
+
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1089
|
+
/* @__PURE__ */ o.jsx(ne, { withPadding: !0 }),
|
|
1090
|
+
s.map((c, l) => /* @__PURE__ */ o.jsx(
|
|
1091
|
+
St,
|
|
1055
1092
|
{
|
|
1056
|
-
dataKey:
|
|
1057
|
-
fill: z[
|
|
1093
|
+
dataKey: c,
|
|
1094
|
+
fill: z[l % z.length]
|
|
1058
1095
|
},
|
|
1059
|
-
|
|
1096
|
+
c
|
|
1060
1097
|
))
|
|
1061
1098
|
] }) });
|
|
1062
|
-
},
|
|
1063
|
-
const { data: t, xKey: s, yKeys:
|
|
1064
|
-
return /* @__PURE__ */
|
|
1065
|
-
/* @__PURE__ */
|
|
1066
|
-
/* @__PURE__ */
|
|
1067
|
-
/* @__PURE__ */
|
|
1068
|
-
/* @__PURE__ */
|
|
1069
|
-
/* @__PURE__ */
|
|
1070
|
-
|
|
1071
|
-
|
|
1099
|
+
}, En = (e) => {
|
|
1100
|
+
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e;
|
|
1101
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(qt, { data: t, children: [
|
|
1102
|
+
/* @__PURE__ */ o.jsx(me, { strokeDasharray: "3 3" }),
|
|
1103
|
+
/* @__PURE__ */ o.jsx(pe, { dataKey: s }),
|
|
1104
|
+
/* @__PURE__ */ o.jsx(je, {}),
|
|
1105
|
+
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1106
|
+
/* @__PURE__ */ o.jsx(ne, {}),
|
|
1107
|
+
a.map((c, l) => /* @__PURE__ */ o.jsx(
|
|
1108
|
+
kt,
|
|
1072
1109
|
{
|
|
1073
1110
|
type: "monotone",
|
|
1074
|
-
dataKey:
|
|
1075
|
-
stroke: z[
|
|
1111
|
+
dataKey: c,
|
|
1112
|
+
stroke: z[l % z.length],
|
|
1076
1113
|
strokeWidth: 2,
|
|
1077
1114
|
dot: !1
|
|
1078
1115
|
},
|
|
1079
|
-
|
|
1116
|
+
c
|
|
1080
1117
|
))
|
|
1081
1118
|
] }) });
|
|
1082
|
-
},
|
|
1083
|
-
const { data: t, xKey: s, yKeys:
|
|
1084
|
-
cx:
|
|
1119
|
+
}, Sn = (e) => {
|
|
1120
|
+
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e, c = ({
|
|
1121
|
+
cx: l,
|
|
1085
1122
|
cy: n,
|
|
1086
1123
|
midAngle: d,
|
|
1087
|
-
innerRadius:
|
|
1124
|
+
innerRadius: r,
|
|
1088
1125
|
outerRadius: u,
|
|
1089
1126
|
value: f
|
|
1090
1127
|
}) => {
|
|
1091
|
-
const _ = Math.PI / 180, h = 25 +
|
|
1092
|
-
return /* @__PURE__ */
|
|
1128
|
+
const _ = Math.PI / 180, h = 25 + r + (u - r), j = l + h * Math.cos(-(d ?? 0) * _), y = n + h * Math.sin(-(d ?? 0) * _);
|
|
1129
|
+
return /* @__PURE__ */ o.jsx(
|
|
1093
1130
|
"text",
|
|
1094
1131
|
{
|
|
1095
1132
|
x: j,
|
|
@@ -1102,19 +1139,19 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1102
1139
|
}
|
|
1103
1140
|
);
|
|
1104
1141
|
};
|
|
1105
|
-
return /* @__PURE__ */
|
|
1106
|
-
/* @__PURE__ */
|
|
1107
|
-
/* @__PURE__ */
|
|
1108
|
-
/* @__PURE__ */
|
|
1142
|
+
return /* @__PURE__ */ o.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ot, { children: [
|
|
1143
|
+
/* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
|
|
1144
|
+
/* @__PURE__ */ o.jsx(ne, {}),
|
|
1145
|
+
/* @__PURE__ */ o.jsx(
|
|
1109
1146
|
At,
|
|
1110
1147
|
{
|
|
1111
1148
|
data: t,
|
|
1112
|
-
dataKey:
|
|
1149
|
+
dataKey: a[0],
|
|
1113
1150
|
nameKey: s,
|
|
1114
|
-
label:
|
|
1151
|
+
label: c,
|
|
1115
1152
|
outerRadius: 120,
|
|
1116
|
-
children: t.map((
|
|
1117
|
-
|
|
1153
|
+
children: t.map((l, n) => /* @__PURE__ */ o.jsx(
|
|
1154
|
+
Tt,
|
|
1118
1155
|
{
|
|
1119
1156
|
fill: z[n % z.length]
|
|
1120
1157
|
},
|
|
@@ -1123,11 +1160,11 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1123
1160
|
}
|
|
1124
1161
|
)
|
|
1125
1162
|
] }) });
|
|
1126
|
-
},
|
|
1127
|
-
area:
|
|
1128
|
-
bar:
|
|
1129
|
-
line:
|
|
1130
|
-
pie:
|
|
1163
|
+
}, qn = {
|
|
1164
|
+
area: Nn,
|
|
1165
|
+
bar: vn,
|
|
1166
|
+
line: En,
|
|
1167
|
+
pie: Sn
|
|
1131
1168
|
}, z = [
|
|
1132
1169
|
"var(--color-primitive-palette-1-50)",
|
|
1133
1170
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1153,124 +1190,124 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1153
1190
|
tooltipBg: "#fff",
|
|
1154
1191
|
tooltipColor: "#000",
|
|
1155
1192
|
tooltipBorderRadius: "4px"
|
|
1156
|
-
},
|
|
1157
|
-
const { component: t, userFlow: s, hash:
|
|
1193
|
+
}, kn = (e) => {
|
|
1194
|
+
const { component: t, userFlow: s, hash: a, responseKey: i, dataSource: c, ...l } = e, n = qn[l.type];
|
|
1158
1195
|
if (!n)
|
|
1159
|
-
return /* @__PURE__ */
|
|
1160
|
-
const { fetchDataSource: d } = I(), [
|
|
1196
|
+
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1197
|
+
const { fetchDataSource: d } = I(), [r, u] = k(!1), [f, _] = k([]), h = async () => {
|
|
1161
1198
|
var y, x;
|
|
1162
1199
|
try {
|
|
1163
1200
|
u(!0);
|
|
1164
|
-
const { jsonPathData: m, mapperData: g } =
|
|
1165
|
-
|
|
1201
|
+
const { jsonPathData: m, mapperData: g } = c, p = be(
|
|
1202
|
+
c,
|
|
1166
1203
|
1
|
|
1167
1204
|
), N = await d(
|
|
1168
|
-
|
|
1205
|
+
p,
|
|
1169
1206
|
s,
|
|
1170
1207
|
!1
|
|
1171
|
-
),
|
|
1172
|
-
_(
|
|
1208
|
+
), b = m ? (y = ze(N == null ? void 0 : N.data, m, g)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
|
|
1209
|
+
_(b), u(!1);
|
|
1173
1210
|
} catch (m) {
|
|
1174
1211
|
alert(JSON.stringify(m)), u(!1);
|
|
1175
1212
|
}
|
|
1176
1213
|
};
|
|
1177
|
-
|
|
1178
|
-
|
|
1214
|
+
K(() => {
|
|
1215
|
+
c ? h() : _(l.data);
|
|
1179
1216
|
}, []);
|
|
1180
1217
|
const j = {
|
|
1181
|
-
...
|
|
1218
|
+
...l,
|
|
1182
1219
|
data: f
|
|
1183
1220
|
};
|
|
1184
|
-
return
|
|
1185
|
-
},
|
|
1186
|
-
header:
|
|
1221
|
+
return r ? /* @__PURE__ */ o.jsx(De, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ o.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
|
|
1222
|
+
}, On = "_header_g1eri_1", An = "_header_content_g1eri_5", Oe = {
|
|
1223
|
+
header: On,
|
|
1187
1224
|
header_content: An
|
|
1188
|
-
},
|
|
1189
|
-
var
|
|
1190
|
-
const
|
|
1191
|
-
accordion: (n) => /* @__PURE__ */
|
|
1192
|
-
aiChatPanel: (n) => /* @__PURE__ */
|
|
1193
|
-
aiSummaryCard: (n) => /* @__PURE__ */
|
|
1194
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */
|
|
1195
|
-
breadcrumbs: (n) => /* @__PURE__ */
|
|
1196
|
-
button: (n) => /* @__PURE__ */
|
|
1197
|
-
cardNotification: (n) => /* @__PURE__ */
|
|
1198
|
-
chart: (n) => /* @__PURE__ */
|
|
1199
|
-
checkbox: (n) => /* @__PURE__ */
|
|
1200
|
-
code: (n) => /* @__PURE__ */
|
|
1201
|
-
divider: (n) => /* @__PURE__ */
|
|
1202
|
-
drawer: (n) => /* @__PURE__ */
|
|
1203
|
-
heading: (n) =>
|
|
1204
|
-
pill: (n) => /* @__PURE__ */
|
|
1205
|
-
modal: (n) => /* @__PURE__ */
|
|
1206
|
-
roundButton: (n) => /* @__PURE__ */
|
|
1207
|
-
row: (n) => /* @__PURE__ */
|
|
1208
|
-
select: (n) => /* @__PURE__ */
|
|
1209
|
-
switch: (n) => /* @__PURE__ */
|
|
1210
|
-
spacing: (n) => /* @__PURE__ */
|
|
1211
|
-
table: (n) => /* @__PURE__ */
|
|
1212
|
-
text: (n) =>
|
|
1213
|
-
textField: (n) => /* @__PURE__ */
|
|
1214
|
-
toast: (n) => /* @__PURE__ */
|
|
1225
|
+
}, Tn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx($, { children: t }, s)) }) }), A = (e, t, s, a) => {
|
|
1226
|
+
var l;
|
|
1227
|
+
const i = {
|
|
1228
|
+
accordion: (n) => /* @__PURE__ */ o.jsx(ga, { ...n, userFlow: e, pageId: t }),
|
|
1229
|
+
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Jt, { ...n, userFlow: e, pageId: t, onResolveProps: a == null ? void 0 : a.aiChatPanel }),
|
|
1230
|
+
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(Xt, { ...n, userFlow: e, pageId: t, onResolveProps: a == null ? void 0 : a.aiSummaryCard }),
|
|
1231
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Yt, { ...n, userFlow: e, pageId: t }),
|
|
1232
|
+
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(sn, { ...n, userFlow: e, pageId: t }),
|
|
1233
|
+
button: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
|
|
1234
|
+
cardNotification: (n) => /* @__PURE__ */ o.jsx(ln, { ...n }),
|
|
1235
|
+
chart: (n) => /* @__PURE__ */ o.jsx(kn, { ...n, userFlow: e }),
|
|
1236
|
+
checkbox: (n) => /* @__PURE__ */ o.jsx(dn, { ...n, userFlow: e, pageId: t }),
|
|
1237
|
+
code: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
|
|
1238
|
+
divider: (n) => /* @__PURE__ */ o.jsx(jn, { ...n }),
|
|
1239
|
+
drawer: (n) => /* @__PURE__ */ o.jsx(wa, { ...n, userFlow: e, pageId: t }),
|
|
1240
|
+
heading: (n) => Gt(n),
|
|
1241
|
+
pill: (n) => /* @__PURE__ */ o.jsx(In, { ...n }),
|
|
1242
|
+
modal: (n) => /* @__PURE__ */ o.jsx(Dn, { ...n, userFlow: e, pageId: t }),
|
|
1243
|
+
roundButton: (n) => /* @__PURE__ */ o.jsx(zn, { ...n, userFlow: e, pageId: t }),
|
|
1244
|
+
row: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e, pageId: t }),
|
|
1245
|
+
select: (n) => /* @__PURE__ */ o.jsx(Wn, { ...n, userFlow: e, pageId: t }),
|
|
1246
|
+
switch: (n) => /* @__PURE__ */ o.jsx(ra, { ...n, userFlow: e, pageId: t }),
|
|
1247
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(sa, { ...n, userFlow: e, pageId: t }),
|
|
1248
|
+
table: (n) => /* @__PURE__ */ o.jsx(_a, { ...n, userFlow: e, pageId: t }),
|
|
1249
|
+
text: (n) => Ut(n),
|
|
1250
|
+
textField: (n) => /* @__PURE__ */ o.jsx(fa, { ...n, userFlow: e, pageId: t }),
|
|
1251
|
+
toast: (n) => /* @__PURE__ */ o.jsx(ya, { ...n, userFlow: e, pageId: t })
|
|
1215
1252
|
};
|
|
1216
|
-
return (
|
|
1217
|
-
const d =
|
|
1253
|
+
return (l = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : l.map((n) => {
|
|
1254
|
+
const d = i[n.component];
|
|
1218
1255
|
return d ? d({ ...n, userFlow: e, pageId: t }) : null;
|
|
1219
1256
|
});
|
|
1220
|
-
},
|
|
1221
|
-
modalContent:
|
|
1222
|
-
},
|
|
1257
|
+
}, $n = "_modalContent_p06ci_1", Rn = {
|
|
1258
|
+
modalContent: $n
|
|
1259
|
+
}, Dn = ({
|
|
1223
1260
|
userFlow: e,
|
|
1224
1261
|
pageId: t,
|
|
1225
1262
|
responseKey: s,
|
|
1226
|
-
header:
|
|
1227
|
-
body:
|
|
1228
|
-
footer:
|
|
1229
|
-
headerStatusColor:
|
|
1263
|
+
header: a,
|
|
1264
|
+
body: i,
|
|
1265
|
+
footer: c,
|
|
1266
|
+
headerStatusColor: l,
|
|
1230
1267
|
...n
|
|
1231
1268
|
}) => {
|
|
1232
1269
|
const d = v((m) => {
|
|
1233
1270
|
var g;
|
|
1234
1271
|
return (g = m[e]) == null ? void 0 : g.isModalOpen;
|
|
1235
|
-
}),
|
|
1272
|
+
}), r = v((m) => {
|
|
1236
1273
|
var g;
|
|
1237
1274
|
return (g = m[e]) == null ? void 0 : g.isLoading;
|
|
1238
|
-
}), u = d && !
|
|
1275
|
+
}), u = d && !r, f = {
|
|
1239
1276
|
...n
|
|
1240
|
-
}, _ = (f == null ? void 0 : f.headerStatusColor) ??
|
|
1277
|
+
}, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = D(() => {
|
|
1241
1278
|
xe(e), ge(e, !1);
|
|
1242
|
-
}, [e, s]), j = Array.isArray(
|
|
1243
|
-
return /* @__PURE__ */
|
|
1279
|
+
}, [e, s]), j = Array.isArray(a) ? A(e, t, a) : a, y = A(e, t, i), x = A(e, t, c);
|
|
1280
|
+
return /* @__PURE__ */ o.jsx(
|
|
1244
1281
|
tt,
|
|
1245
1282
|
{
|
|
1246
1283
|
...f,
|
|
1247
1284
|
headerStatusColor: _,
|
|
1248
|
-
header: typeof j == "string" ? j : /* @__PURE__ */
|
|
1249
|
-
children: /* @__PURE__ */
|
|
1250
|
-
actions: /* @__PURE__ */
|
|
1285
|
+
header: typeof j == "string" ? j : /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((m, g) => /* @__PURE__ */ o.jsx($, { children: m }, `modal-header-${g}`)) }),
|
|
1286
|
+
children: /* @__PURE__ */ o.jsx("section", { className: Rn.modalContent, children: y.map((m, g) => /* @__PURE__ */ o.jsx($, { children: m }, `modal-body-${g}`)) }),
|
|
1287
|
+
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((m, g) => /* @__PURE__ */ o.jsx($, { children: m }, `modal-footer-${g}`)) }),
|
|
1251
1288
|
open: u,
|
|
1252
1289
|
onClose: h
|
|
1253
1290
|
}
|
|
1254
1291
|
);
|
|
1255
|
-
},
|
|
1256
|
-
var
|
|
1257
|
-
const s =
|
|
1292
|
+
}, Ln = ({ userFlow: e, pageId: t }) => {
|
|
1293
|
+
var c, l;
|
|
1294
|
+
const s = Dt(e);
|
|
1258
1295
|
if (!s)
|
|
1259
1296
|
return null;
|
|
1260
|
-
const
|
|
1297
|
+
const a = [
|
|
1261
1298
|
...(s == null ? void 0 : s.components) || [],
|
|
1262
|
-
...((
|
|
1263
|
-
...((
|
|
1264
|
-
],
|
|
1299
|
+
...((c = s == null ? void 0 : s.header) == null ? void 0 : c.components) || [],
|
|
1300
|
+
...((l = s == null ? void 0 : s.body) == null ? void 0 : l.components) || []
|
|
1301
|
+
], i = A(
|
|
1265
1302
|
e,
|
|
1266
1303
|
t,
|
|
1267
|
-
|
|
1304
|
+
a
|
|
1268
1305
|
);
|
|
1269
|
-
return /* @__PURE__ */
|
|
1270
|
-
const
|
|
1271
|
-
return /* @__PURE__ */
|
|
1306
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: i == null ? void 0 : i.map((n, d) => {
|
|
1307
|
+
const r = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
1308
|
+
return /* @__PURE__ */ o.jsx($, { children: n }, r);
|
|
1272
1309
|
}) });
|
|
1273
|
-
},
|
|
1310
|
+
}, Bn = {
|
|
1274
1311
|
success: {
|
|
1275
1312
|
color: "success-opacity",
|
|
1276
1313
|
textColor: "success-60",
|
|
@@ -1296,28 +1333,28 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1296
1333
|
textColor: "neutral-70",
|
|
1297
1334
|
iconColor: "neutral-70"
|
|
1298
1335
|
}
|
|
1299
|
-
},
|
|
1300
|
-
const { content: t, variant: s = "neutral", ...
|
|
1301
|
-
...
|
|
1336
|
+
}, In = (e) => {
|
|
1337
|
+
const { content: t, variant: s = "neutral", ...a } = e, i = Bn[s], c = {
|
|
1338
|
+
...a,
|
|
1302
1339
|
children: t,
|
|
1303
|
-
color: (
|
|
1304
|
-
textColor: (
|
|
1305
|
-
iconColor: (
|
|
1340
|
+
color: (a == null ? void 0 : a.color) ?? i.color,
|
|
1341
|
+
textColor: (a == null ? void 0 : a.textColor) ?? i.textColor,
|
|
1342
|
+
iconColor: (a == null ? void 0 : a.iconColor) ?? i.iconColor
|
|
1306
1343
|
};
|
|
1307
|
-
return /* @__PURE__ */
|
|
1308
|
-
},
|
|
1344
|
+
return /* @__PURE__ */ o.jsx(ue, { ...c });
|
|
1345
|
+
}, zn = (e) => {
|
|
1309
1346
|
const {
|
|
1310
1347
|
userFlow: t,
|
|
1311
1348
|
pageId: s,
|
|
1312
|
-
responseKey:
|
|
1313
|
-
actionType:
|
|
1314
|
-
dataSource:
|
|
1315
|
-
dependencies:
|
|
1349
|
+
responseKey: a,
|
|
1350
|
+
actionType: i,
|
|
1351
|
+
dataSource: c,
|
|
1352
|
+
dependencies: l,
|
|
1316
1353
|
onClick: n,
|
|
1317
1354
|
...d
|
|
1318
|
-
} = e, { getNextUI:
|
|
1355
|
+
} = e, { getNextUI: r, fetchAndGetNextUI: u } = I(), { disabled: f } = M(
|
|
1319
1356
|
t,
|
|
1320
|
-
|
|
1357
|
+
l
|
|
1321
1358
|
), _ = {
|
|
1322
1359
|
...d
|
|
1323
1360
|
}, h = (_ == null ? void 0 : _.disabled) ?? f, j = D(async () => {
|
|
@@ -1325,17 +1362,17 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1325
1362
|
try {
|
|
1326
1363
|
const x = {
|
|
1327
1364
|
...(y = v.getState()[t]) == null ? void 0 : y.entries,
|
|
1328
|
-
[
|
|
1365
|
+
[a]: { status: 200 }
|
|
1329
1366
|
};
|
|
1330
|
-
switch (L(t, x),
|
|
1367
|
+
switch (L(t, x), i) {
|
|
1331
1368
|
case "GO_TO_NEXT_UI": {
|
|
1332
|
-
const m = await
|
|
1369
|
+
const m = await r(
|
|
1333
1370
|
t,
|
|
1334
1371
|
s,
|
|
1335
1372
|
x,
|
|
1336
|
-
|
|
1373
|
+
a
|
|
1337
1374
|
);
|
|
1338
|
-
m != null && m.data &&
|
|
1375
|
+
m != null && m.data && O(t, m == null ? void 0 : m.data);
|
|
1339
1376
|
break;
|
|
1340
1377
|
}
|
|
1341
1378
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1343,10 +1380,10 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1343
1380
|
t,
|
|
1344
1381
|
s,
|
|
1345
1382
|
x,
|
|
1346
|
-
|
|
1347
|
-
|
|
1383
|
+
a,
|
|
1384
|
+
c
|
|
1348
1385
|
);
|
|
1349
|
-
m != null && m.data &&
|
|
1386
|
+
m != null && m.data && O(t, m == null ? void 0 : m.data);
|
|
1350
1387
|
break;
|
|
1351
1388
|
}
|
|
1352
1389
|
case "CLOSE_MODAL":
|
|
@@ -1359,14 +1396,14 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1359
1396
|
Z(t, !0);
|
|
1360
1397
|
break;
|
|
1361
1398
|
default:
|
|
1362
|
-
console.warn(`Unhandled actionType: ${
|
|
1399
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
1363
1400
|
break;
|
|
1364
1401
|
}
|
|
1365
1402
|
} catch (x) {
|
|
1366
1403
|
alert(JSON.stringify(x));
|
|
1367
1404
|
}
|
|
1368
|
-
}, [
|
|
1369
|
-
return /* @__PURE__ */
|
|
1405
|
+
}, [i, c, s, a, t]);
|
|
1406
|
+
return /* @__PURE__ */ o.jsx(
|
|
1370
1407
|
nt,
|
|
1371
1408
|
{
|
|
1372
1409
|
..._,
|
|
@@ -1374,8 +1411,8 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1374
1411
|
onClick: () => !h && (n ?? j)()
|
|
1375
1412
|
}
|
|
1376
1413
|
);
|
|
1377
|
-
},
|
|
1378
|
-
row:
|
|
1414
|
+
}, Mn = "_row_1bqj4_1", Kn = "_row_column_1bqj4_65", J = {
|
|
1415
|
+
row: Mn,
|
|
1379
1416
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
1380
1417
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
1381
1418
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -1396,7 +1433,7 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1396
1433
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
1397
1434
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
1398
1435
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
1399
|
-
row_column:
|
|
1436
|
+
row_column: Kn,
|
|
1400
1437
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
1401
1438
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
1402
1439
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -1417,27 +1454,27 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1417
1454
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
1418
1455
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
1419
1456
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
1420
|
-
},
|
|
1457
|
+
}, Gn = (e) => {
|
|
1421
1458
|
const {
|
|
1422
1459
|
userFlow: t,
|
|
1423
1460
|
pageId: s,
|
|
1424
|
-
columnWidth:
|
|
1425
|
-
columns:
|
|
1426
|
-
gap:
|
|
1427
|
-
justifyContent:
|
|
1461
|
+
columnWidth: a,
|
|
1462
|
+
columns: i,
|
|
1463
|
+
gap: c = "md",
|
|
1464
|
+
justifyContent: l = "start",
|
|
1428
1465
|
alignItems: n = "stretch"
|
|
1429
|
-
} = e, d = Array.isArray(
|
|
1466
|
+
} = e, d = Array.isArray(i) ? i.map((r, u) => {
|
|
1430
1467
|
const f = `col_${u}`, _ = `col_${u}`;
|
|
1431
|
-
if (Array.isArray(
|
|
1468
|
+
if (Array.isArray(r))
|
|
1432
1469
|
return {
|
|
1433
1470
|
gap: "md",
|
|
1434
1471
|
justifyContent: "start",
|
|
1435
1472
|
alignItems: "start",
|
|
1436
|
-
items:
|
|
1473
|
+
items: r,
|
|
1437
1474
|
hash: f,
|
|
1438
1475
|
responseKey: _
|
|
1439
1476
|
};
|
|
1440
|
-
const h =
|
|
1477
|
+
const h = r;
|
|
1441
1478
|
return {
|
|
1442
1479
|
gap: (h == null ? void 0 : h.gap) ?? "md",
|
|
1443
1480
|
justifyContent: (h == null ? void 0 : h.justifyContent) ?? "start",
|
|
@@ -1447,30 +1484,30 @@ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
|
|
|
1447
1484
|
responseKey: (h == null ? void 0 : h.responseKey) ?? _
|
|
1448
1485
|
};
|
|
1449
1486
|
}) : [];
|
|
1450
|
-
return d.length === 0 ? null : /* @__PURE__ */
|
|
1487
|
+
return d.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1451
1488
|
"div",
|
|
1452
1489
|
{
|
|
1453
1490
|
className: ee(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1491
|
+
J.row,
|
|
1492
|
+
J[`row__gap-${c}`],
|
|
1493
|
+
J[`row__justify-${l}`],
|
|
1494
|
+
J[`row__align-${n}`]
|
|
1458
1495
|
),
|
|
1459
|
-
children: d == null ? void 0 : d.map((
|
|
1460
|
-
const f = (
|
|
1461
|
-
return !_ || _.length === 0 ? null : /* @__PURE__ */
|
|
1496
|
+
children: d == null ? void 0 : d.map((r, u) => {
|
|
1497
|
+
const f = (a == null ? void 0 : a[u]) || `${100 / d.length}%`, _ = A(t, s, r.items);
|
|
1498
|
+
return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
1462
1499
|
"div",
|
|
1463
1500
|
{
|
|
1464
1501
|
className: ee(
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1502
|
+
J.row_column,
|
|
1503
|
+
J[`row_column__gap-${r.gap}`],
|
|
1504
|
+
J[`row_column__justify-${r.justifyContent}`],
|
|
1505
|
+
J[`row_column__align-${r.alignItems}`]
|
|
1469
1506
|
),
|
|
1470
1507
|
style: { width: f },
|
|
1471
1508
|
children: _
|
|
1472
1509
|
},
|
|
1473
|
-
|
|
1510
|
+
r.hash || u
|
|
1474
1511
|
);
|
|
1475
1512
|
})
|
|
1476
1513
|
}
|
|
@@ -1480,13 +1517,13 @@ function Me({
|
|
|
1480
1517
|
userFlow: e,
|
|
1481
1518
|
pageId: t,
|
|
1482
1519
|
responseKey: s,
|
|
1483
|
-
actionType:
|
|
1484
|
-
getNextUI:
|
|
1485
|
-
isMulti:
|
|
1486
|
-
debounceMs:
|
|
1520
|
+
actionType: a,
|
|
1521
|
+
getNextUI: i,
|
|
1522
|
+
isMulti: c = !1,
|
|
1523
|
+
debounceMs: l
|
|
1487
1524
|
}) {
|
|
1488
1525
|
const n = Xe(null);
|
|
1489
|
-
|
|
1526
|
+
K(() => () => {
|
|
1490
1527
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
1491
1528
|
}, []);
|
|
1492
1529
|
const d = D(
|
|
@@ -1496,83 +1533,83 @@ function Me({
|
|
|
1496
1533
|
...(h = v.getState()[e]) == null ? void 0 : h.entries,
|
|
1497
1534
|
[s]: u
|
|
1498
1535
|
};
|
|
1499
|
-
if (L(e, f),
|
|
1536
|
+
if (L(e, f), a && (a === "GO_TO_NEXT_UI" || a === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
1500
1537
|
try {
|
|
1501
|
-
const y = await
|
|
1538
|
+
const y = await i(
|
|
1502
1539
|
e,
|
|
1503
1540
|
t,
|
|
1504
1541
|
f,
|
|
1505
1542
|
s,
|
|
1506
|
-
|
|
1543
|
+
a === "GO_TO_NEXT_UI"
|
|
1507
1544
|
);
|
|
1508
|
-
y != null && y.data &&
|
|
1545
|
+
y != null && y.data && O(e, y.data);
|
|
1509
1546
|
} catch (j) {
|
|
1510
1547
|
console.error("[useSelectChange] Failed to fetch next UI", j);
|
|
1511
1548
|
}
|
|
1512
1549
|
},
|
|
1513
|
-
[e, t, s,
|
|
1550
|
+
[e, t, s, a, i]
|
|
1514
1551
|
);
|
|
1515
1552
|
return D(
|
|
1516
1553
|
(u) => {
|
|
1517
|
-
if (!
|
|
1554
|
+
if (!c) {
|
|
1518
1555
|
d(u);
|
|
1519
1556
|
return;
|
|
1520
1557
|
}
|
|
1521
|
-
if (
|
|
1558
|
+
if (l == null) {
|
|
1522
1559
|
d(u);
|
|
1523
1560
|
return;
|
|
1524
1561
|
}
|
|
1525
1562
|
n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
|
|
1526
1563
|
d(u), n.current = null;
|
|
1527
|
-
},
|
|
1564
|
+
}, l);
|
|
1528
1565
|
},
|
|
1529
|
-
[
|
|
1566
|
+
[c, l, d]
|
|
1530
1567
|
);
|
|
1531
1568
|
}
|
|
1532
|
-
const
|
|
1533
|
-
const
|
|
1534
|
-
return (
|
|
1535
|
-
var d,
|
|
1536
|
-
const
|
|
1537
|
-
return { label:
|
|
1569
|
+
const Un = (e, t, s, a) => {
|
|
1570
|
+
const i = B.query(e, t);
|
|
1571
|
+
return (i == null ? void 0 : i.map((c) => {
|
|
1572
|
+
var d, r;
|
|
1573
|
+
const l = (d = B.query(c, s)) == null ? void 0 : d[0], n = a ? (r = B.query(c, a)) == null ? void 0 : r[0] : c;
|
|
1574
|
+
return { label: l, value: n };
|
|
1538
1575
|
})) ?? [];
|
|
1539
|
-
},
|
|
1576
|
+
}, Jn = (e, t, s, a = 10) => {
|
|
1540
1577
|
var n, d;
|
|
1541
|
-
let
|
|
1578
|
+
let i, c;
|
|
1542
1579
|
if (s) {
|
|
1543
|
-
const
|
|
1544
|
-
|
|
1580
|
+
const r = B.value(e, s.size ?? "$.meta.size") ?? a, u = B.value(e, s.total ?? "$.meta.total") ?? 0;
|
|
1581
|
+
i = r, c = u;
|
|
1545
1582
|
} else {
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1583
|
+
const r = e == null ? void 0 : e.meta;
|
|
1584
|
+
i = (r == null ? void 0 : r.size) ?? ((n = r == null ? void 0 : r.page) == null ? void 0 : n.size) ?? a, c = (r == null ? void 0 : r.total) ?? ((d = r == null ? void 0 : r.page) == null ? void 0 : d.total) ?? 0;
|
|
1548
1585
|
}
|
|
1549
|
-
const
|
|
1586
|
+
const l = c > 0 ? Math.ceil(c / i) > t : !1;
|
|
1550
1587
|
return {
|
|
1551
|
-
pageSize:
|
|
1552
|
-
total:
|
|
1553
|
-
hasMore:
|
|
1588
|
+
pageSize: i,
|
|
1589
|
+
total: c,
|
|
1590
|
+
hasMore: l
|
|
1554
1591
|
};
|
|
1555
|
-
},
|
|
1556
|
-
selectNotFront:
|
|
1557
|
-
},
|
|
1592
|
+
}, Vn = "_selectNotFront_1yw9q_1", Ke = {
|
|
1593
|
+
selectNotFront: Vn
|
|
1594
|
+
}, Hn = ({
|
|
1558
1595
|
userFlow: e,
|
|
1559
1596
|
pageId: t,
|
|
1560
1597
|
responseKey: s,
|
|
1561
|
-
required:
|
|
1562
|
-
dataSource:
|
|
1563
|
-
actionType:
|
|
1564
|
-
dependencies:
|
|
1598
|
+
required: a,
|
|
1599
|
+
dataSource: i,
|
|
1600
|
+
actionType: c,
|
|
1601
|
+
dependencies: l,
|
|
1565
1602
|
debounceMs: n,
|
|
1566
1603
|
...d
|
|
1567
1604
|
}) => {
|
|
1568
|
-
const
|
|
1605
|
+
const r = {
|
|
1569
1606
|
...d
|
|
1570
|
-
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] =
|
|
1607
|
+
}, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = k((r == null ? void 0 : r.value) ?? ""), { disabled: j } = M(
|
|
1571
1608
|
e,
|
|
1572
|
-
|
|
1573
|
-
), y = (
|
|
1574
|
-
const
|
|
1575
|
-
return typeof
|
|
1609
|
+
l
|
|
1610
|
+
), y = (r == null ? void 0 : r.disabled) ?? j, x = S(() => a && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, a]), m = S(() => {
|
|
1611
|
+
const b = r != null && r.isMulti ? _ : [_], C = {};
|
|
1612
|
+
return typeof b == "object" && "length" in b && (b == null || b.forEach((w) => {
|
|
1576
1613
|
const E = JSON.stringify(w.value), T = JSON.stringify(w.label);
|
|
1577
1614
|
C[E] = w, T in C || (C[T] = w);
|
|
1578
1615
|
})), C;
|
|
@@ -1580,94 +1617,94 @@ const Gn = (e, t, s, r) => {
|
|
|
1580
1617
|
userFlow: e,
|
|
1581
1618
|
pageId: t,
|
|
1582
1619
|
responseKey: s,
|
|
1583
|
-
actionType:
|
|
1620
|
+
actionType: c,
|
|
1584
1621
|
getNextUI: u,
|
|
1585
|
-
isMulti:
|
|
1622
|
+
isMulti: r == null ? void 0 : r.isMulti,
|
|
1586
1623
|
debounceMs: n
|
|
1587
|
-
}),
|
|
1588
|
-
h(
|
|
1589
|
-
}, N = async (
|
|
1624
|
+
}), p = (b) => {
|
|
1625
|
+
h(b), g(b);
|
|
1626
|
+
}, N = async (b, C, { page: w }) => {
|
|
1590
1627
|
const {
|
|
1591
1628
|
jsonPathLabel: E,
|
|
1592
1629
|
jsonPathOptions: T,
|
|
1593
|
-
jsonPathValue:
|
|
1594
|
-
jsonPathPagination:
|
|
1595
|
-
} =
|
|
1596
|
-
|
|
1630
|
+
jsonPathValue: q,
|
|
1631
|
+
jsonPathPagination: G
|
|
1632
|
+
} = i, U = be(
|
|
1633
|
+
i,
|
|
1597
1634
|
w,
|
|
1598
|
-
|
|
1635
|
+
b
|
|
1599
1636
|
), se = await f(
|
|
1600
|
-
|
|
1637
|
+
U,
|
|
1601
1638
|
e,
|
|
1602
1639
|
!1
|
|
1603
|
-
),
|
|
1604
|
-
|
|
1640
|
+
), re = se == null ? void 0 : se.data, Ue = re ? Un(
|
|
1641
|
+
re,
|
|
1605
1642
|
T,
|
|
1606
1643
|
E,
|
|
1607
|
-
|
|
1608
|
-
) : [], { hasMore: Je } =
|
|
1609
|
-
|
|
1644
|
+
q
|
|
1645
|
+
) : [], { hasMore: Je } = Jn(
|
|
1646
|
+
re,
|
|
1610
1647
|
w,
|
|
1611
|
-
|
|
1648
|
+
G
|
|
1612
1649
|
);
|
|
1613
1650
|
return {
|
|
1614
1651
|
options: Ue,
|
|
1615
1652
|
hasMore: Je,
|
|
1616
1653
|
additional: {
|
|
1617
|
-
page:
|
|
1654
|
+
page: b ? 1 : w + 1
|
|
1618
1655
|
}
|
|
1619
1656
|
};
|
|
1620
1657
|
};
|
|
1621
|
-
return /* @__PURE__ */
|
|
1622
|
-
|
|
1658
|
+
return /* @__PURE__ */ o.jsx(
|
|
1659
|
+
at,
|
|
1623
1660
|
{
|
|
1624
|
-
...
|
|
1661
|
+
...r,
|
|
1625
1662
|
className: Ke.selectNotFront,
|
|
1626
1663
|
label: x,
|
|
1627
1664
|
value: _,
|
|
1628
1665
|
disabled: y,
|
|
1629
|
-
noOptionsMessage: () => /* @__PURE__ */
|
|
1630
|
-
onChange: (
|
|
1666
|
+
noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
|
|
1667
|
+
onChange: (b) => !y && p(b),
|
|
1631
1668
|
loadOptions: N,
|
|
1632
1669
|
additional: { page: 1 },
|
|
1633
|
-
isOptionDisabled: (
|
|
1634
|
-
const C = JSON.stringify(
|
|
1670
|
+
isOptionDisabled: (b) => {
|
|
1671
|
+
const C = JSON.stringify(b == null ? void 0 : b.value), w = JSON.stringify(b == null ? void 0 : b.label);
|
|
1635
1672
|
return !!(m != null && m[C]) || !!(m != null && m[w]);
|
|
1636
1673
|
},
|
|
1637
1674
|
debounceTimeout: 350
|
|
1638
1675
|
}
|
|
1639
1676
|
);
|
|
1640
|
-
},
|
|
1677
|
+
}, Xn = ({
|
|
1641
1678
|
userFlow: e,
|
|
1642
1679
|
pageId: t,
|
|
1643
1680
|
responseKey: s,
|
|
1644
|
-
dataSource:
|
|
1645
|
-
required:
|
|
1646
|
-
actionType:
|
|
1647
|
-
dependencies:
|
|
1681
|
+
dataSource: a,
|
|
1682
|
+
required: i,
|
|
1683
|
+
actionType: c,
|
|
1684
|
+
dependencies: l,
|
|
1648
1685
|
debounceMs: n,
|
|
1649
1686
|
...d
|
|
1650
1687
|
}) => {
|
|
1651
|
-
const
|
|
1688
|
+
const r = {
|
|
1652
1689
|
...d
|
|
1653
|
-
}, { getNextUI: u } = I(), [f, _] =
|
|
1690
|
+
}, { getNextUI: u } = I(), [f, _] = k(r.value || ""), { disabled: h } = M(
|
|
1654
1691
|
e,
|
|
1655
|
-
|
|
1656
|
-
), j = (
|
|
1692
|
+
l
|
|
1693
|
+
), j = (r == null ? void 0 : r.disabled) ?? h, y = S(() => i && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, i]), x = Me({
|
|
1657
1694
|
userFlow: e,
|
|
1658
1695
|
pageId: t,
|
|
1659
1696
|
responseKey: s,
|
|
1660
|
-
actionType:
|
|
1697
|
+
actionType: c,
|
|
1661
1698
|
getNextUI: u,
|
|
1662
|
-
isMulti:
|
|
1699
|
+
isMulti: r == null ? void 0 : r.isMulti,
|
|
1663
1700
|
debounceMs: n
|
|
1664
1701
|
}), m = (g) => {
|
|
1665
1702
|
_(g), x(g);
|
|
1666
1703
|
};
|
|
1667
|
-
return /* @__PURE__ */
|
|
1704
|
+
return /* @__PURE__ */ o.jsx(
|
|
1668
1705
|
st,
|
|
1669
1706
|
{
|
|
1670
|
-
...
|
|
1707
|
+
...r,
|
|
1671
1708
|
className: Ke.selectNotFront,
|
|
1672
1709
|
label: y,
|
|
1673
1710
|
value: f,
|
|
@@ -1675,67 +1712,67 @@ const Gn = (e, t, s, r) => {
|
|
|
1675
1712
|
onChange: (g) => !j && m(g)
|
|
1676
1713
|
}
|
|
1677
1714
|
);
|
|
1678
|
-
},
|
|
1715
|
+
}, Wn = (e) => {
|
|
1679
1716
|
const { dataSource: t } = e;
|
|
1680
|
-
return t ? /* @__PURE__ */
|
|
1681
|
-
},
|
|
1682
|
-
spacing:
|
|
1683
|
-
spacing__xxs:
|
|
1684
|
-
spacing__xs:
|
|
1685
|
-
spacing__sm:
|
|
1686
|
-
spacing__md:
|
|
1687
|
-
spacing__lg:
|
|
1688
|
-
spacing__xl:
|
|
1689
|
-
spacing__xxl:
|
|
1690
|
-
spacing__xxxl:
|
|
1691
|
-
},
|
|
1692
|
-
const { size: t } = e, s = ee(
|
|
1693
|
-
return /* @__PURE__ */
|
|
1694
|
-
},
|
|
1717
|
+
return t ? /* @__PURE__ */ o.jsx(Hn, { ...e }) : /* @__PURE__ */ o.jsx(Xn, { ...e });
|
|
1718
|
+
}, Qn = "_spacing_19hqa_1", Yn = "_spacing__xxs_19hqa_1", Zn = "_spacing__xs_19hqa_4", Fn = "_spacing__sm_19hqa_7", Pn = "_spacing__md_19hqa_10", ea = "_spacing__lg_19hqa_13", ta = "_spacing__xl_19hqa_16", na = "_spacing__xxl_19hqa_19", aa = "_spacing__xxxl_19hqa_22", Ae = {
|
|
1719
|
+
spacing: Qn,
|
|
1720
|
+
spacing__xxs: Yn,
|
|
1721
|
+
spacing__xs: Zn,
|
|
1722
|
+
spacing__sm: Fn,
|
|
1723
|
+
spacing__md: Pn,
|
|
1724
|
+
spacing__lg: ea,
|
|
1725
|
+
spacing__xl: ta,
|
|
1726
|
+
spacing__xxl: na,
|
|
1727
|
+
spacing__xxxl: aa
|
|
1728
|
+
}, sa = (e) => {
|
|
1729
|
+
const { size: t } = e, s = ee(Ae.spacing, Ae[`spacing__${t}`]);
|
|
1730
|
+
return /* @__PURE__ */ o.jsx("div", { className: s });
|
|
1731
|
+
}, ra = (e) => {
|
|
1695
1732
|
const {
|
|
1696
1733
|
userFlow: t,
|
|
1697
1734
|
pageId: s,
|
|
1698
|
-
responseKey:
|
|
1699
|
-
actionType:
|
|
1700
|
-
label:
|
|
1701
|
-
value:
|
|
1735
|
+
responseKey: a,
|
|
1736
|
+
actionType: i,
|
|
1737
|
+
label: c,
|
|
1738
|
+
value: l,
|
|
1702
1739
|
required: n,
|
|
1703
1740
|
dependencies: d,
|
|
1704
|
-
...
|
|
1741
|
+
...r
|
|
1705
1742
|
} = e, u = {
|
|
1706
|
-
...
|
|
1707
|
-
}, { getNextUI: f } = I(), [_, h] =
|
|
1743
|
+
...r
|
|
1744
|
+
}, { getNextUI: f } = I(), [_, h] = k(l || !1), { disabled: j } = M(
|
|
1708
1745
|
t,
|
|
1709
1746
|
d
|
|
1710
|
-
), y = (u == null ? void 0 : u.disabled) ?? j, x =
|
|
1747
|
+
), y = (u == null ? void 0 : u.disabled) ?? j, x = S(() => n && c ? `${c} *` : c ?? "", [c, n]), m = D(async () => {
|
|
1711
1748
|
var g;
|
|
1712
1749
|
try {
|
|
1713
|
-
const
|
|
1714
|
-
h(
|
|
1750
|
+
const p = !_;
|
|
1751
|
+
h(p);
|
|
1715
1752
|
const N = {
|
|
1716
1753
|
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
1717
|
-
[
|
|
1754
|
+
[a]: p
|
|
1718
1755
|
};
|
|
1719
|
-
switch (L(t, N),
|
|
1756
|
+
switch (L(t, N), i) {
|
|
1720
1757
|
case "GO_TO_NEXT_UI":
|
|
1721
|
-
const
|
|
1758
|
+
const b = await f(
|
|
1722
1759
|
t,
|
|
1723
1760
|
s,
|
|
1724
1761
|
N,
|
|
1725
|
-
|
|
1762
|
+
a
|
|
1726
1763
|
);
|
|
1727
|
-
|
|
1764
|
+
b != null && b.data && O(t, b == null ? void 0 : b.data);
|
|
1728
1765
|
break;
|
|
1729
1766
|
default:
|
|
1730
|
-
console.warn(`Unhandled actionType: ${
|
|
1767
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
1731
1768
|
break;
|
|
1732
1769
|
}
|
|
1733
|
-
} catch (
|
|
1734
|
-
console.error("Error in switch action:",
|
|
1770
|
+
} catch (p) {
|
|
1771
|
+
console.error("Error in switch action:", p), alert(JSON.stringify(p));
|
|
1735
1772
|
}
|
|
1736
|
-
}, [t, s,
|
|
1737
|
-
return /* @__PURE__ */
|
|
1738
|
-
|
|
1773
|
+
}, [t, s, a, i, _]);
|
|
1774
|
+
return /* @__PURE__ */ o.jsx(
|
|
1775
|
+
rt,
|
|
1739
1776
|
{
|
|
1740
1777
|
...u,
|
|
1741
1778
|
label: x,
|
|
@@ -1744,72 +1781,72 @@ const Gn = (e, t, s, r) => {
|
|
|
1744
1781
|
onChange: () => !y && m()
|
|
1745
1782
|
}
|
|
1746
1783
|
);
|
|
1747
|
-
},
|
|
1748
|
-
tableSkeleton:
|
|
1749
|
-
tableArrayPills:
|
|
1750
|
-
},
|
|
1751
|
-
const s = e == null ? void 0 : e.slice(0, 4),
|
|
1752
|
-
return /* @__PURE__ */
|
|
1753
|
-
s.map((
|
|
1754
|
-
|
|
1784
|
+
}, ca = "_tableSkeleton_3nr9n_1", oa = "_tableArrayPills_3nr9n_7", Ge = {
|
|
1785
|
+
tableSkeleton: ca,
|
|
1786
|
+
tableArrayPills: oa
|
|
1787
|
+
}, ia = ({ values: e }) => {
|
|
1788
|
+
const s = e == null ? void 0 : e.slice(0, 4), a = (e == null ? void 0 : e.length) - 4;
|
|
1789
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Ge.tableArrayPills, children: [
|
|
1790
|
+
s.map((i, c) => /* @__PURE__ */ o.jsx(ue, { children: String(i) }, c)),
|
|
1791
|
+
a > 0 && /* @__PURE__ */ o.jsxs(ue, { outlined: !0, children: [
|
|
1755
1792
|
"+",
|
|
1756
|
-
|
|
1793
|
+
a
|
|
1757
1794
|
] })
|
|
1758
1795
|
] });
|
|
1759
|
-
},
|
|
1796
|
+
}, la = ({
|
|
1760
1797
|
userFlow: e,
|
|
1761
1798
|
pageId: t,
|
|
1762
1799
|
tableResponseKey: s,
|
|
1763
|
-
component:
|
|
1764
|
-
rowData:
|
|
1800
|
+
component: a,
|
|
1801
|
+
rowData: i
|
|
1765
1802
|
}) => {
|
|
1766
|
-
const { getNextUI:
|
|
1767
|
-
{ ...
|
|
1768
|
-
]),
|
|
1769
|
-
if (!
|
|
1803
|
+
const { getNextUI: c, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = A(e, t, [
|
|
1804
|
+
{ ...a }
|
|
1805
|
+
]), r = (d == null ? void 0 : d[0]) || null;
|
|
1806
|
+
if (!r) return null;
|
|
1770
1807
|
const {
|
|
1771
1808
|
actionType: u,
|
|
1772
1809
|
responseKey: f,
|
|
1773
1810
|
dataSource: _
|
|
1774
|
-
} =
|
|
1811
|
+
} = r.props, h = D(async () => {
|
|
1775
1812
|
var j, y, x;
|
|
1776
1813
|
try {
|
|
1777
1814
|
const m = {
|
|
1778
1815
|
...(j = v.getState()[e]) == null ? void 0 : j.entries,
|
|
1779
1816
|
[f]: { status: 200 },
|
|
1780
|
-
[s]: [{ ...
|
|
1817
|
+
[s]: [{ ...i }]
|
|
1781
1818
|
};
|
|
1782
1819
|
switch (L(e, m), u) {
|
|
1783
1820
|
case "GO_TO_NEXT_UI": {
|
|
1784
|
-
const g = await
|
|
1821
|
+
const g = await c(
|
|
1785
1822
|
e,
|
|
1786
1823
|
t,
|
|
1787
1824
|
m,
|
|
1788
1825
|
f
|
|
1789
1826
|
);
|
|
1790
|
-
g != null && g.data &&
|
|
1827
|
+
g != null && g.data && O(e, g == null ? void 0 : g.data);
|
|
1791
1828
|
break;
|
|
1792
1829
|
}
|
|
1793
1830
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1794
|
-
const g = await
|
|
1831
|
+
const g = await l(
|
|
1795
1832
|
e,
|
|
1796
1833
|
t,
|
|
1797
1834
|
m,
|
|
1798
1835
|
f,
|
|
1799
1836
|
_
|
|
1800
1837
|
);
|
|
1801
|
-
g != null && g.data &&
|
|
1838
|
+
g != null && g.data && O(e, g == null ? void 0 : g.data);
|
|
1802
1839
|
break;
|
|
1803
1840
|
}
|
|
1804
1841
|
case "GET_DATA_SOURCE": {
|
|
1805
|
-
const g = await
|
|
1842
|
+
const g = await c(
|
|
1806
1843
|
e,
|
|
1807
1844
|
t,
|
|
1808
1845
|
m,
|
|
1809
1846
|
f
|
|
1810
|
-
),
|
|
1811
|
-
if ((
|
|
1812
|
-
const N =
|
|
1847
|
+
), p = (y = g == null ? void 0 : g.data) == null ? void 0 : y.content;
|
|
1848
|
+
if ((p == null ? void 0 : p.type) !== "fetch") break;
|
|
1849
|
+
const N = p == null ? void 0 : p.dataSource, b = await n(
|
|
1813
1850
|
N,
|
|
1814
1851
|
e,
|
|
1815
1852
|
// Avoid to handle loading state until all the requests are done
|
|
@@ -1817,18 +1854,18 @@ const Gn = (e, t, s, r) => {
|
|
|
1817
1854
|
), C = {
|
|
1818
1855
|
...(x = v.getState()[e]) == null ? void 0 : x.entries,
|
|
1819
1856
|
[f]: {
|
|
1820
|
-
status:
|
|
1821
|
-
content:
|
|
1857
|
+
status: b == null ? void 0 : b.status,
|
|
1858
|
+
content: b == null ? void 0 : b.data
|
|
1822
1859
|
}
|
|
1823
1860
|
};
|
|
1824
1861
|
L(e, C);
|
|
1825
|
-
const w = await
|
|
1862
|
+
const w = await c(
|
|
1826
1863
|
e,
|
|
1827
1864
|
t,
|
|
1828
1865
|
C,
|
|
1829
1866
|
f
|
|
1830
1867
|
);
|
|
1831
|
-
w != null && w.data &&
|
|
1868
|
+
w != null && w.data && O(e, w == null ? void 0 : w.data);
|
|
1832
1869
|
break;
|
|
1833
1870
|
}
|
|
1834
1871
|
default:
|
|
@@ -1839,10 +1876,10 @@ const Gn = (e, t, s, r) => {
|
|
|
1839
1876
|
alert(JSON.stringify(m));
|
|
1840
1877
|
}
|
|
1841
1878
|
}, [u, _, t, f, e]);
|
|
1842
|
-
return We(
|
|
1879
|
+
return We(r, {
|
|
1843
1880
|
onClick: h
|
|
1844
1881
|
});
|
|
1845
|
-
},
|
|
1882
|
+
}, da = () => /* @__PURE__ */ o.jsx("div", { className: Ge.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
1846
1883
|
De,
|
|
1847
1884
|
{
|
|
1848
1885
|
maxWidth: "100%",
|
|
@@ -1850,21 +1887,21 @@ const Gn = (e, t, s, r) => {
|
|
|
1850
1887
|
radius: 8
|
|
1851
1888
|
},
|
|
1852
1889
|
`tableSkeletonBase${t}`
|
|
1853
|
-
)) }),
|
|
1890
|
+
)) }), _a = ({
|
|
1854
1891
|
userFlow: e,
|
|
1855
1892
|
pageId: t,
|
|
1856
1893
|
responseKey: s,
|
|
1857
|
-
component:
|
|
1858
|
-
dataSource:
|
|
1859
|
-
rightActions:
|
|
1860
|
-
...
|
|
1894
|
+
component: a,
|
|
1895
|
+
dataSource: i,
|
|
1896
|
+
rightActions: c,
|
|
1897
|
+
...l
|
|
1861
1898
|
}) => {
|
|
1862
|
-
var
|
|
1863
|
-
const { fetchDataSource: n } = I(), [d,
|
|
1864
|
-
if (
|
|
1865
|
-
return
|
|
1866
|
-
renderContent: (E) => /* @__PURE__ */
|
|
1867
|
-
|
|
1899
|
+
var p, N, b;
|
|
1900
|
+
const { fetchDataSource: n } = I(), [d, r] = k(!1), [u, f] = k(1), [_, h] = k(null), j = S(() => {
|
|
1901
|
+
if (c != null && c.length)
|
|
1902
|
+
return c.map((C, w) => ({
|
|
1903
|
+
renderContent: (E) => /* @__PURE__ */ o.jsx(
|
|
1904
|
+
la,
|
|
1868
1905
|
{
|
|
1869
1906
|
userFlow: e,
|
|
1870
1907
|
pageId: t,
|
|
@@ -1875,97 +1912,97 @@ const Gn = (e, t, s, r) => {
|
|
|
1875
1912
|
`tableRowAction${w}`
|
|
1876
1913
|
)
|
|
1877
1914
|
}));
|
|
1878
|
-
}, [
|
|
1915
|
+
}, [c, e, t]), y = async (C = 1) => {
|
|
1879
1916
|
try {
|
|
1880
|
-
|
|
1881
|
-
const { jsonPathData: w, mapperData: E, jsonPathPagination: T } =
|
|
1882
|
-
|
|
1917
|
+
r(!0);
|
|
1918
|
+
const { jsonPathData: w, mapperData: E, jsonPathPagination: T } = i, q = be(
|
|
1919
|
+
i,
|
|
1883
1920
|
C
|
|
1884
|
-
),
|
|
1885
|
-
|
|
1921
|
+
), G = await n(
|
|
1922
|
+
q,
|
|
1886
1923
|
e,
|
|
1887
1924
|
!1
|
|
1888
1925
|
);
|
|
1889
1926
|
h(
|
|
1890
1927
|
ze(
|
|
1891
|
-
|
|
1928
|
+
G == null ? void 0 : G.data,
|
|
1892
1929
|
w,
|
|
1893
1930
|
E,
|
|
1894
1931
|
T
|
|
1895
1932
|
)
|
|
1896
|
-
),
|
|
1933
|
+
), r(!1);
|
|
1897
1934
|
} catch (w) {
|
|
1898
|
-
alert(JSON.stringify(w)),
|
|
1935
|
+
alert(JSON.stringify(w)), r(!1);
|
|
1899
1936
|
}
|
|
1900
1937
|
}, x = (C) => {
|
|
1901
1938
|
f(C), y(C);
|
|
1902
1939
|
};
|
|
1903
|
-
|
|
1940
|
+
K(() => {
|
|
1904
1941
|
y();
|
|
1905
1942
|
}, []);
|
|
1906
|
-
const m =
|
|
1943
|
+
const m = S(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
|
|
1907
1944
|
var E;
|
|
1908
1945
|
return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
|
|
1909
1946
|
(T) => Array.isArray(C != null && C.accessor ? T[C == null ? void 0 : C.accessor] : void 0)
|
|
1910
1947
|
)) ? {
|
|
1911
1948
|
...C,
|
|
1912
1949
|
renderCell: (T) => {
|
|
1913
|
-
const
|
|
1914
|
-
return Array.isArray(
|
|
1950
|
+
const q = C.accessor ? T[C.accessor] : void 0;
|
|
1951
|
+
return Array.isArray(q) ? /* @__PURE__ */ o.jsx(ia, { values: q }) : q;
|
|
1915
1952
|
}
|
|
1916
1953
|
} : C;
|
|
1917
|
-
}), [_ == null ? void 0 : _.items,
|
|
1918
|
-
...
|
|
1954
|
+
}), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
|
|
1955
|
+
...l,
|
|
1919
1956
|
data: _ == null ? void 0 : _.items,
|
|
1920
1957
|
columns: m,
|
|
1921
1958
|
rightActions: j
|
|
1922
1959
|
};
|
|
1923
|
-
return /* @__PURE__ */
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
(_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */
|
|
1926
|
-
|
|
1960
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(da, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
1961
|
+
/* @__PURE__ */ o.jsx(ct, { ...g }),
|
|
1962
|
+
(_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
1963
|
+
ot,
|
|
1927
1964
|
{
|
|
1928
1965
|
classname: { global: "row__end" },
|
|
1929
1966
|
page: u,
|
|
1930
1967
|
size: _ == null ? void 0 : _.pagination.size,
|
|
1931
|
-
total: (
|
|
1968
|
+
total: (b = _ == null ? void 0 : _.pagination) == null ? void 0 : b.total,
|
|
1932
1969
|
onChange: x
|
|
1933
1970
|
}
|
|
1934
1971
|
)
|
|
1935
|
-
] }) : /* @__PURE__ */
|
|
1936
|
-
},
|
|
1937
|
-
textFieldNotFront:
|
|
1938
|
-
},
|
|
1972
|
+
] }) : /* @__PURE__ */ o.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
1973
|
+
}, ua = "_textFieldNotFront_cps4i_1", ha = {
|
|
1974
|
+
textFieldNotFront: ua
|
|
1975
|
+
}, fa = (e) => {
|
|
1939
1976
|
const {
|
|
1940
1977
|
userFlow: t,
|
|
1941
1978
|
pageId: s,
|
|
1942
|
-
component:
|
|
1943
|
-
hash:
|
|
1944
|
-
responseKey:
|
|
1945
|
-
required:
|
|
1979
|
+
component: a,
|
|
1980
|
+
hash: i,
|
|
1981
|
+
responseKey: c,
|
|
1982
|
+
required: l,
|
|
1946
1983
|
dependencies: n,
|
|
1947
1984
|
...d
|
|
1948
|
-
} = e,
|
|
1985
|
+
} = e, r = {
|
|
1949
1986
|
...d
|
|
1950
|
-
}, [u, f] =
|
|
1987
|
+
}, [u, f] = k((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = M(
|
|
1951
1988
|
t,
|
|
1952
1989
|
n
|
|
1953
|
-
), h = (
|
|
1954
|
-
var
|
|
1955
|
-
const m = (
|
|
1990
|
+
), h = (r == null ? void 0 : r.disabled) ?? _, j = S(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), y = (x) => {
|
|
1991
|
+
var p;
|
|
1992
|
+
const m = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
|
|
1956
1993
|
f(m);
|
|
1957
1994
|
const g = {
|
|
1958
|
-
[
|
|
1995
|
+
[c]: m
|
|
1959
1996
|
};
|
|
1960
1997
|
L(t, g);
|
|
1961
1998
|
};
|
|
1962
|
-
return
|
|
1963
|
-
f((
|
|
1964
|
-
}, [
|
|
1999
|
+
return K(() => {
|
|
2000
|
+
f((r == null ? void 0 : r.value) ?? "");
|
|
2001
|
+
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
1965
2002
|
it,
|
|
1966
2003
|
{
|
|
1967
|
-
...
|
|
1968
|
-
className:
|
|
2004
|
+
...r,
|
|
2005
|
+
className: ha.textFieldNotFront,
|
|
1969
2006
|
allowClear: !1,
|
|
1970
2007
|
label: j,
|
|
1971
2008
|
value: u,
|
|
@@ -1973,107 +2010,107 @@ const Gn = (e, t, s, r) => {
|
|
|
1973
2010
|
onChange: (x) => !h && y(x)
|
|
1974
2011
|
}
|
|
1975
2012
|
);
|
|
1976
|
-
},
|
|
2013
|
+
}, ya = ({
|
|
1977
2014
|
userFlow: e,
|
|
1978
2015
|
pageId: t,
|
|
1979
2016
|
responseKey: s,
|
|
1980
|
-
variant:
|
|
1981
|
-
content:
|
|
1982
|
-
actionType:
|
|
1983
|
-
redirectUrl:
|
|
2017
|
+
variant: a,
|
|
2018
|
+
content: i,
|
|
2019
|
+
actionType: c,
|
|
2020
|
+
redirectUrl: l
|
|
1984
2021
|
}) => {
|
|
1985
2022
|
const n = D(async () => {
|
|
1986
2023
|
xe(e);
|
|
1987
2024
|
try {
|
|
1988
|
-
switch (
|
|
2025
|
+
switch (c) {
|
|
1989
2026
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
1990
|
-
window.location.href =
|
|
2027
|
+
window.location.href = l;
|
|
1991
2028
|
break;
|
|
1992
2029
|
default:
|
|
1993
|
-
console.warn(`Unhandled actionType: ${
|
|
2030
|
+
console.warn(`Unhandled actionType: ${c}`);
|
|
1994
2031
|
break;
|
|
1995
2032
|
}
|
|
1996
2033
|
} catch (d) {
|
|
1997
2034
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
1998
2035
|
}
|
|
1999
|
-
}, [
|
|
2000
|
-
return
|
|
2036
|
+
}, [c, t, s, e, l]);
|
|
2037
|
+
return K(() => {
|
|
2001
2038
|
({
|
|
2002
2039
|
info: W.info,
|
|
2003
2040
|
error: W.error,
|
|
2004
2041
|
success: W.success,
|
|
2005
2042
|
warning: W.warning
|
|
2006
|
-
}[
|
|
2007
|
-
autoClose:
|
|
2043
|
+
}[a] || W.info)(i, {
|
|
2044
|
+
autoClose: c ? !1 : 4e3,
|
|
2008
2045
|
containerId: e,
|
|
2009
2046
|
onClose: n
|
|
2010
2047
|
});
|
|
2011
2048
|
}, [n, e]), null;
|
|
2012
|
-
},
|
|
2013
|
-
accordion:
|
|
2014
|
-
accordionBody:
|
|
2015
|
-
},
|
|
2049
|
+
}, ma = "_accordion_1ri2t_1", xa = "_accordionBody_1ri2t_8", Te = {
|
|
2050
|
+
accordion: ma,
|
|
2051
|
+
accordionBody: xa
|
|
2052
|
+
}, ga = (e) => {
|
|
2016
2053
|
const {
|
|
2017
2054
|
userFlow: t,
|
|
2018
2055
|
pageId: s,
|
|
2019
|
-
responseKey:
|
|
2020
|
-
dependencies:
|
|
2021
|
-
customContent:
|
|
2022
|
-
actionContent:
|
|
2056
|
+
responseKey: a,
|
|
2057
|
+
dependencies: i,
|
|
2058
|
+
customContent: c,
|
|
2059
|
+
actionContent: l,
|
|
2023
2060
|
components: n,
|
|
2024
2061
|
...d
|
|
2025
|
-
} = e, { getNextUI:
|
|
2062
|
+
} = e, { getNextUI: r } = I(), [u, f] = k(
|
|
2026
2063
|
d.checkboxChecked || !1
|
|
2027
2064
|
), { disabled: _ } = M(
|
|
2028
2065
|
t,
|
|
2029
|
-
|
|
2030
|
-
), h = A(t, s, n), j =
|
|
2031
|
-
async (
|
|
2066
|
+
i
|
|
2067
|
+
), h = A(t, s, n), j = l ? A(t, s, l) : void 0, y = c ? A(t, s, c) : void 0, x = D(
|
|
2068
|
+
async (p) => {
|
|
2032
2069
|
var N;
|
|
2033
2070
|
try {
|
|
2034
|
-
const
|
|
2035
|
-
f(
|
|
2071
|
+
const b = p.target.checked;
|
|
2072
|
+
f(b);
|
|
2036
2073
|
const C = {
|
|
2037
2074
|
...(N = v.getState()[t]) == null ? void 0 : N.entries,
|
|
2038
|
-
[
|
|
2075
|
+
[a]: b
|
|
2039
2076
|
};
|
|
2040
2077
|
if (L(t, C), d.actionType === "GO_TO_NEXT_UI") {
|
|
2041
|
-
const w = await
|
|
2078
|
+
const w = await r(
|
|
2042
2079
|
t,
|
|
2043
2080
|
s,
|
|
2044
2081
|
C,
|
|
2045
|
-
|
|
2082
|
+
a
|
|
2046
2083
|
);
|
|
2047
|
-
w != null && w.data &&
|
|
2084
|
+
w != null && w.data && O(t, w == null ? void 0 : w.data);
|
|
2048
2085
|
}
|
|
2049
|
-
} catch (
|
|
2050
|
-
console.error("Error in accordion checkbox action:",
|
|
2086
|
+
} catch (b) {
|
|
2087
|
+
console.error("Error in accordion checkbox action:", b), alert(JSON.stringify(b));
|
|
2051
2088
|
}
|
|
2052
2089
|
},
|
|
2053
|
-
[t, s,
|
|
2090
|
+
[t, s, a, d.actionType, r]
|
|
2054
2091
|
), m = d.disabled || _, g = {
|
|
2055
2092
|
...d,
|
|
2056
2093
|
className: Te.accordion,
|
|
2057
2094
|
disabled: m,
|
|
2058
2095
|
checkboxChecked: u,
|
|
2059
2096
|
onChanceCheckbox: d.hasCheckbox ? x : void 0,
|
|
2060
|
-
actionContent: j ? /* @__PURE__ */
|
|
2061
|
-
customContent: y ? /* @__PURE__ */
|
|
2062
|
-
children: h ? /* @__PURE__ */
|
|
2097
|
+
actionContent: j ? /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((p, N) => /* @__PURE__ */ o.jsx($, { children: p }, `accordion-action-${N}`)) }) : void 0,
|
|
2098
|
+
customContent: y ? /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((p, N) => /* @__PURE__ */ o.jsx($, { children: p }, `accordion-custom-${N}`)) }) : void 0,
|
|
2099
|
+
children: h ? /* @__PURE__ */ o.jsx("section", { className: Te.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx($, { children: p }, `accordion-child-${N}`)) }) : void 0
|
|
2063
2100
|
};
|
|
2064
|
-
return /* @__PURE__ */
|
|
2065
|
-
},
|
|
2066
|
-
drawer:
|
|
2067
|
-
drawerBody:
|
|
2068
|
-
drawerFooter:
|
|
2069
|
-
},
|
|
2101
|
+
return /* @__PURE__ */ o.jsx(lt, { ...g });
|
|
2102
|
+
}, ba = "_drawer_13pxo_1", pa = "_drawerBody_13pxo_5", ja = "_drawerFooter_13pxo_11", _e = {
|
|
2103
|
+
drawer: ba,
|
|
2104
|
+
drawerBody: pa,
|
|
2105
|
+
drawerFooter: ja
|
|
2106
|
+
}, wa = ({
|
|
2070
2107
|
userFlow: e,
|
|
2071
2108
|
pageId: t,
|
|
2072
2109
|
responseKey: s,
|
|
2073
|
-
header:
|
|
2074
|
-
body:
|
|
2075
|
-
footer:
|
|
2076
|
-
...
|
|
2110
|
+
header: a,
|
|
2111
|
+
body: i,
|
|
2112
|
+
footer: c,
|
|
2113
|
+
...l
|
|
2077
2114
|
}) => {
|
|
2078
2115
|
const n = v((y) => {
|
|
2079
2116
|
var x;
|
|
@@ -2081,91 +2118,91 @@ const Gn = (e, t, s, r) => {
|
|
|
2081
2118
|
}), d = v((y) => {
|
|
2082
2119
|
var x;
|
|
2083
2120
|
return (x = y[e]) == null ? void 0 : x.isLoading;
|
|
2084
|
-
}),
|
|
2085
|
-
...
|
|
2086
|
-
isOpen:
|
|
2121
|
+
}), r = n && !d, u = {
|
|
2122
|
+
...l,
|
|
2123
|
+
isOpen: r,
|
|
2087
2124
|
children: null
|
|
2088
2125
|
}, f = D(() => {
|
|
2089
2126
|
xe(e), Z(e, !1);
|
|
2090
|
-
}, [e]), _ = Array.isArray(
|
|
2091
|
-
return /* @__PURE__ */
|
|
2127
|
+
}, [e]), _ = Array.isArray(a) ? A(e, t, a) : a ? /* @__PURE__ */ o.jsx(Re, { type: "h2", children: a }) : void 0, h = A(e, t, i), j = c ? A(e, t, c) : void 0;
|
|
2128
|
+
return /* @__PURE__ */ o.jsx(
|
|
2092
2129
|
dt,
|
|
2093
2130
|
{
|
|
2094
2131
|
...u,
|
|
2095
2132
|
className: _e.drawer,
|
|
2096
|
-
isOpen:
|
|
2133
|
+
isOpen: r,
|
|
2097
2134
|
onClose: f,
|
|
2098
2135
|
heightGap: 0,
|
|
2099
|
-
title: _ ? /* @__PURE__ */
|
|
2100
|
-
children: /* @__PURE__ */
|
|
2101
|
-
footer: j ? /* @__PURE__ */
|
|
2136
|
+
title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ o.jsx($, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
|
|
2137
|
+
children: /* @__PURE__ */ o.jsx("section", { className: _e.drawerBody, children: h.map((y, x) => /* @__PURE__ */ o.jsx($, { children: y }, `drawer-body-${x}`)) }),
|
|
2138
|
+
footer: j ? /* @__PURE__ */ o.jsx("div", { className: _e.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ o.jsx($, { children: y }, `drawer-footer-${x}`)) }) : void 0
|
|
2102
2139
|
}
|
|
2103
2140
|
);
|
|
2104
|
-
}, $e = (e, t, s,
|
|
2105
|
-
const
|
|
2141
|
+
}, $e = (e, t, s, a, i) => {
|
|
2142
|
+
const c = A(
|
|
2106
2143
|
e,
|
|
2107
2144
|
t,
|
|
2108
|
-
(
|
|
2109
|
-
|
|
2145
|
+
(a == null ? void 0 : a.components) || null,
|
|
2146
|
+
i
|
|
2110
2147
|
);
|
|
2111
2148
|
switch (s) {
|
|
2112
2149
|
case "body":
|
|
2113
|
-
return /* @__PURE__ */
|
|
2114
|
-
|
|
2150
|
+
return /* @__PURE__ */ o.jsx(
|
|
2151
|
+
Pt,
|
|
2115
2152
|
{
|
|
2116
|
-
...
|
|
2117
|
-
inputs:
|
|
2153
|
+
...a,
|
|
2154
|
+
inputs: c || []
|
|
2118
2155
|
},
|
|
2119
|
-
JSON.stringify(
|
|
2156
|
+
JSON.stringify(a == null ? void 0 : a.components)
|
|
2120
2157
|
);
|
|
2121
2158
|
case "header":
|
|
2122
|
-
return /* @__PURE__ */
|
|
2123
|
-
|
|
2159
|
+
return /* @__PURE__ */ o.jsx(
|
|
2160
|
+
Tn,
|
|
2124
2161
|
{
|
|
2125
|
-
...
|
|
2126
|
-
components:
|
|
2162
|
+
...a,
|
|
2163
|
+
components: c || []
|
|
2127
2164
|
},
|
|
2128
|
-
JSON.stringify(
|
|
2165
|
+
JSON.stringify(a == null ? void 0 : a.components)
|
|
2129
2166
|
);
|
|
2130
2167
|
default:
|
|
2131
2168
|
return null;
|
|
2132
2169
|
}
|
|
2133
|
-
},
|
|
2170
|
+
}, Da = (e, t, s, a) => {
|
|
2134
2171
|
var _, h, j;
|
|
2135
|
-
const [
|
|
2172
|
+
const [i, c] = k(!1), l = v((y) => y), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? $e(
|
|
2136
2173
|
e,
|
|
2137
2174
|
n,
|
|
2138
2175
|
"header",
|
|
2139
|
-
((h =
|
|
2140
|
-
|
|
2141
|
-
) : null,
|
|
2176
|
+
((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
|
|
2177
|
+
a
|
|
2178
|
+
) : null, r = n ? $e(
|
|
2142
2179
|
e,
|
|
2143
2180
|
n,
|
|
2144
2181
|
"body",
|
|
2145
|
-
((j =
|
|
2146
|
-
|
|
2147
|
-
) : null, u =
|
|
2182
|
+
((j = l[e].pages[n].page) == null ? void 0 : j.body) || null,
|
|
2183
|
+
a
|
|
2184
|
+
) : null, u = S(() => {
|
|
2148
2185
|
var y;
|
|
2149
|
-
return /* @__PURE__ */
|
|
2150
|
-
((y =
|
|
2186
|
+
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2187
|
+
((y = l[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ o.jsx(_t, {}),
|
|
2151
2188
|
d,
|
|
2152
|
-
|
|
2153
|
-
n && /* @__PURE__ */
|
|
2154
|
-
|
|
2189
|
+
r,
|
|
2190
|
+
n && /* @__PURE__ */ o.jsx(Ln, { userFlow: e, pageId: n }),
|
|
2191
|
+
l[e] && /* @__PURE__ */ o.jsx(ut, {})
|
|
2155
2192
|
] });
|
|
2156
|
-
}, [d,
|
|
2193
|
+
}, [d, r, n, e]), f = async () => {
|
|
2157
2194
|
try {
|
|
2158
2195
|
const y = await Ie(
|
|
2159
2196
|
t,
|
|
2160
2197
|
e
|
|
2161
2198
|
), x = y == null ? void 0 : y.data, m = x == null ? void 0 : x.content;
|
|
2162
|
-
(y == null ? void 0 : y.status) === 200 ?
|
|
2199
|
+
(y == null ? void 0 : y.status) === 200 ? ce(e, t, m, x == null ? void 0 : x.sessionState) : c(!0);
|
|
2163
2200
|
} catch (y) {
|
|
2164
|
-
console.error("[not-page]: API call failed", y),
|
|
2201
|
+
console.error("[not-page]: API call failed", y), c(!0);
|
|
2165
2202
|
}
|
|
2166
2203
|
};
|
|
2167
|
-
return
|
|
2168
|
-
t != null && t.api && !s && e ? f() : !(t != null && t.api) && s && e || t != null && t.api && s && e ?
|
|
2204
|
+
return K(() => {
|
|
2205
|
+
t != null && t.api && !s && e ? f() : !(t != null && t.api) && s && e || t != null && t.api && s && e ? ce(e, t, s) : (!(t != null && t.api) && !s || !e) && (c(!0), console.error(
|
|
2169
2206
|
"[not-page]: API call failed",
|
|
2170
2207
|
"not api config",
|
|
2171
2208
|
"not userFlow"
|
|
@@ -2177,12 +2214,12 @@ const Gn = (e, t, s, r) => {
|
|
|
2177
2214
|
return window.addEventListener(y, x), () => {
|
|
2178
2215
|
window.removeEventListener(y, x);
|
|
2179
2216
|
};
|
|
2180
|
-
}, []),
|
|
2217
|
+
}, []), i && console.error("[not-page]: No render page"), u;
|
|
2181
2218
|
};
|
|
2182
2219
|
export {
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2220
|
+
kn as Chart,
|
|
2221
|
+
Gn as Row,
|
|
2222
|
+
Gt as heading,
|
|
2223
|
+
Ut as text,
|
|
2224
|
+
Da as usePage
|
|
2188
2225
|
};
|