@foris/avocado-not-front 5.2.8 → 5.2.10
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 +1404 -1407
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/components/text-field/TextField.d.ts +1 -2
- package/dist/components/text-field/TextField.test.d.ts +1 -0
- package/dist/components/textarea/Textarea.test.d.ts +1 -0
- package/dist/hooks/useEntryValue.d.ts +12 -0
- package/dist/hooks/useEntryValue.test.d.ts +1 -0
- package/dist/store/useStore.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import X from "axios";
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as re, Text as ae, Accordion as
|
|
5
|
-
import { ChatPanel as
|
|
2
|
+
import { create as Se } from "zustand";
|
|
3
|
+
import Te, { useMemo as D, useState as q, useCallback as L, Fragment as A, useEffect as U, useRef as ut, cloneElement as Ae } from "react";
|
|
4
|
+
import { Heading as re, Text as ae, Accordion as Oe, ThemeStore as ht, Box as $e, RadioButton as De, Stepper as Re, ProgressBar as qe, Breadcrumbs as Le, Button as Ie, CardAccordion as Ke, Card as Be, CardNotification as mt, SkeletonBase as oe, Checkbox as Me, PreviewerMarkdown as ce, DataCard as ie, Divider as Ge, Drawer as He, DropdownButton as Ve, Link as Ue, Menu as ze, Modal as Xe, Pill as St, RoundButton as Je, SelectPagination as We, Select as Ye, Switch as Qe, Table as Mt, Pager as Ct, Tabs as Ze, Textarea as Fe, TextField as Pe, toast as lt, Tooltip as tn, Loading as en, Toaster as nn } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as sn, PromptCodeEditor as rn, SummaryCard as an } from "@foris/ai-agent";
|
|
6
6
|
import M from "jsonpath";
|
|
7
|
-
import { ResponsiveContainer as $t, Legend as
|
|
8
|
-
import
|
|
7
|
+
import { ResponsiveContainer as $t, Legend as on, Tooltip as cn, XAxis as ln, YAxis as dn, AreaChart as _n, CartesianGrid as st, Area as le, BarChart as Dt, Bar as pt, ComposedChart as un, Line as de, PieChart as _e, Pie as ue, Cell as he, Sector as Gt, LineChart as hn } from "recharts";
|
|
8
|
+
import fn from "@uiw/react-codemirror";
|
|
9
9
|
import { json as Ht } from "@codemirror/lang-json";
|
|
10
|
-
import { markdown as
|
|
11
|
-
import { sql as
|
|
12
|
-
import { yaml as
|
|
13
|
-
import { Icon as
|
|
14
|
-
const Rt = "sessionId",
|
|
10
|
+
import { markdown as xn } from "@codemirror/lang-markdown";
|
|
11
|
+
import { sql as yn } from "@codemirror/lang-sql";
|
|
12
|
+
import { yaml as mn } from "@codemirror/lang-yaml";
|
|
13
|
+
import { Icon as Vt } from "@foris/avocado-icons";
|
|
14
|
+
const Rt = "sessionId", gn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
15
15
|
t && sessionStorage.setItem(Rt, t);
|
|
16
|
-
},
|
|
16
|
+
}, Ka = () => {
|
|
17
17
|
sessionStorage.removeItem(Rt);
|
|
18
|
-
}, v =
|
|
19
|
-
qt(
|
|
20
|
-
const
|
|
18
|
+
}, v = Se(() => ({})), yt = (t, e, s, r, o) => {
|
|
19
|
+
qt(o);
|
|
20
|
+
const i = s == null ? void 0 : s.hash, c = r && Object.keys(r).length > 0 ? { ...r } : {};
|
|
21
21
|
v.setState((n) => {
|
|
22
|
-
var
|
|
22
|
+
var _;
|
|
23
23
|
return {
|
|
24
24
|
...n,
|
|
25
25
|
[t]: {
|
|
26
26
|
...n[t],
|
|
27
27
|
apiConfig: e,
|
|
28
|
-
currentPageId:
|
|
28
|
+
currentPageId: i,
|
|
29
29
|
isLoading: !1,
|
|
30
30
|
isModalOpen: !0,
|
|
31
31
|
isDrawerOpen: !1,
|
|
32
|
-
entries:
|
|
32
|
+
entries: c,
|
|
33
33
|
overlay: null,
|
|
34
34
|
pages: {
|
|
35
|
-
...(
|
|
36
|
-
[
|
|
35
|
+
...(_ = n[t]) == null ? void 0 : _.pages,
|
|
36
|
+
[i]: {
|
|
37
37
|
page: s
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -42,28 +42,26 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
42
42
|
});
|
|
43
43
|
}, fe = (t, e, s) => {
|
|
44
44
|
const r = s && Object.keys(s).length > 0 ? { ...t, ...s } : t;
|
|
45
|
-
return e.length === 0 ?
|
|
46
|
-
Object.entries(r).filter(
|
|
47
|
-
([c]) => !e.includes(c)
|
|
48
|
-
)
|
|
45
|
+
return e.length === 0 ? r : Object.fromEntries(
|
|
46
|
+
Object.entries(r).filter(([o]) => !e.includes(o))
|
|
49
47
|
);
|
|
50
|
-
},
|
|
51
|
-
qt(s), v.setState((
|
|
52
|
-
const
|
|
48
|
+
}, pn = (t, e, s, r, o) => {
|
|
49
|
+
qt(s), v.setState((i) => {
|
|
50
|
+
const c = i[t] ?? {}, n = c.entries ?? {}, _ = fe(
|
|
53
51
|
n,
|
|
54
52
|
r,
|
|
55
|
-
|
|
53
|
+
o
|
|
56
54
|
);
|
|
57
55
|
return {
|
|
58
|
-
...
|
|
56
|
+
...i,
|
|
59
57
|
[t]: {
|
|
60
|
-
...
|
|
58
|
+
...c,
|
|
61
59
|
currentPageId: e.hash,
|
|
62
|
-
entries:
|
|
60
|
+
entries: _,
|
|
63
61
|
isLoading: !1,
|
|
64
62
|
overlay: null,
|
|
65
63
|
pages: {
|
|
66
|
-
...
|
|
64
|
+
...c.pages,
|
|
67
65
|
[e.hash]: {
|
|
68
66
|
page: { ...e }
|
|
69
67
|
}
|
|
@@ -71,25 +69,25 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
71
69
|
}
|
|
72
70
|
};
|
|
73
71
|
});
|
|
74
|
-
},
|
|
75
|
-
v.setState((
|
|
76
|
-
var
|
|
77
|
-
const
|
|
78
|
-
|
|
72
|
+
}, bn = (t, e, s, r) => {
|
|
73
|
+
v.setState((o) => {
|
|
74
|
+
var l;
|
|
75
|
+
const i = o[t] ?? {}, c = i.entries ?? {}, n = fe(
|
|
76
|
+
c,
|
|
79
77
|
s,
|
|
80
78
|
r
|
|
81
|
-
),
|
|
82
|
-
(
|
|
79
|
+
), _ = (l = e.components) == null ? void 0 : l.some(
|
|
80
|
+
(d) => d.component === "drawer"
|
|
83
81
|
);
|
|
84
82
|
return {
|
|
85
|
-
...
|
|
83
|
+
...o,
|
|
86
84
|
[t]: {
|
|
87
|
-
...
|
|
85
|
+
...i,
|
|
88
86
|
entries: n,
|
|
89
87
|
overlay: e,
|
|
90
88
|
isLoading: !1,
|
|
91
|
-
isModalOpen: !
|
|
92
|
-
isDrawerOpen: !!
|
|
89
|
+
isModalOpen: !_,
|
|
90
|
+
isDrawerOpen: !!_
|
|
93
91
|
}
|
|
94
92
|
};
|
|
95
93
|
});
|
|
@@ -101,29 +99,29 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
101
99
|
overlay: null
|
|
102
100
|
}
|
|
103
101
|
}));
|
|
104
|
-
},
|
|
102
|
+
}, jn = (t) => {
|
|
105
103
|
var s;
|
|
106
104
|
return ((s = v.getState()[t]) == null ? void 0 : s.overlay) ?? null;
|
|
107
105
|
}, K = (t, e) => {
|
|
108
106
|
const {
|
|
109
107
|
content: s,
|
|
110
108
|
sessionId: r,
|
|
111
|
-
deprecatedStateKeys:
|
|
112
|
-
sessionState:
|
|
109
|
+
deprecatedStateKeys: o = [],
|
|
110
|
+
sessionState: i
|
|
113
111
|
} = e;
|
|
114
|
-
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ?
|
|
112
|
+
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? pn(
|
|
115
113
|
t,
|
|
116
114
|
s,
|
|
117
115
|
r,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
) :
|
|
116
|
+
o,
|
|
117
|
+
i
|
|
118
|
+
) : bn(
|
|
121
119
|
t,
|
|
122
120
|
s,
|
|
123
|
-
|
|
124
|
-
|
|
121
|
+
o,
|
|
122
|
+
i
|
|
125
123
|
));
|
|
126
|
-
},
|
|
124
|
+
}, I = (t, e) => {
|
|
127
125
|
v.setState((s) => {
|
|
128
126
|
var r;
|
|
129
127
|
return {
|
|
@@ -138,20 +136,20 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
138
136
|
}
|
|
139
137
|
};
|
|
140
138
|
});
|
|
141
|
-
},
|
|
139
|
+
}, Cn = (t, e) => {
|
|
142
140
|
v.setState((s) => {
|
|
143
141
|
const r = s[t];
|
|
144
142
|
if (!r)
|
|
145
143
|
return s;
|
|
146
|
-
const
|
|
147
|
-
if (!(e in
|
|
144
|
+
const o = r.entries ?? {};
|
|
145
|
+
if (!(e in o))
|
|
148
146
|
return s;
|
|
149
|
-
const { [e]:
|
|
147
|
+
const { [e]: i, ...c } = o;
|
|
150
148
|
return {
|
|
151
149
|
...s,
|
|
152
150
|
[t]: {
|
|
153
151
|
...r,
|
|
154
|
-
entries:
|
|
152
|
+
entries: c
|
|
155
153
|
}
|
|
156
154
|
};
|
|
157
155
|
});
|
|
@@ -179,7 +177,7 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
179
177
|
isDrawerOpen: e
|
|
180
178
|
}
|
|
181
179
|
}));
|
|
182
|
-
},
|
|
180
|
+
}, Ut = (t, e) => {
|
|
183
181
|
v.setState((s) => {
|
|
184
182
|
const r = s[t];
|
|
185
183
|
return r ? {
|
|
@@ -195,42 +193,42 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
195
193
|
});
|
|
196
194
|
};
|
|
197
195
|
let wt = !1, gt = [], zt = !1;
|
|
198
|
-
const
|
|
196
|
+
const wn = (t) => t._userFlow || null, Xt = (t) => {
|
|
199
197
|
gt.forEach(({ resolve: e, reject: s }) => {
|
|
200
198
|
t ? s(t) : e(void 0);
|
|
201
199
|
}), gt = [];
|
|
202
|
-
},
|
|
203
|
-
var r,
|
|
200
|
+
}, Nn = async (t) => {
|
|
201
|
+
var r, o;
|
|
204
202
|
const e = t == null ? void 0 : t.config;
|
|
205
203
|
if (((r = t == null ? void 0 : t.response) == null ? void 0 : r.status) === 401 && !e._retry) {
|
|
206
|
-
const
|
|
207
|
-
if (
|
|
208
|
-
const n = (
|
|
204
|
+
const i = wn(e);
|
|
205
|
+
if (i) {
|
|
206
|
+
const n = (o = v.getState()[i]) == null ? void 0 : o.apiConfig;
|
|
209
207
|
if (!n)
|
|
210
208
|
return Promise.reject(t);
|
|
211
209
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
212
210
|
if (wt)
|
|
213
|
-
return new Promise((
|
|
214
|
-
gt.push({ resolve:
|
|
215
|
-
}).then(() => X(e)).catch((
|
|
211
|
+
return new Promise((l, d) => {
|
|
212
|
+
gt.push({ resolve: l, reject: d });
|
|
213
|
+
}).then(() => X(e)).catch((l) => (console.error("[axiosInterceptors] Queued request failed:", l), Promise.reject(l)));
|
|
216
214
|
e._retry = !0, wt = !0;
|
|
217
215
|
try {
|
|
218
|
-
let
|
|
216
|
+
let l;
|
|
219
217
|
if (n.onAuthenticationError)
|
|
220
|
-
|
|
218
|
+
l = await n.onAuthenticationError();
|
|
221
219
|
else if (typeof n.headers == "function")
|
|
222
|
-
|
|
220
|
+
l = n.headers();
|
|
223
221
|
else
|
|
224
222
|
throw new Error("No refresh handler available");
|
|
225
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ?
|
|
226
|
-
} catch (
|
|
223
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Ut(i, JSON.stringify(l)) : Ut(i, l)), e.headers || (e.headers = {}), Object.assign(e.headers, l), Xt(null), X(e);
|
|
224
|
+
} catch (l) {
|
|
227
225
|
return console.error(
|
|
228
226
|
"[axiosInterceptors] Token refresh failed:",
|
|
229
|
-
|
|
227
|
+
l
|
|
230
228
|
), console.error(
|
|
231
229
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
232
230
|
gt.length
|
|
233
|
-
), Xt(
|
|
231
|
+
), Xt(l), Promise.reject(l);
|
|
234
232
|
} finally {
|
|
235
233
|
wt = !1;
|
|
236
234
|
}
|
|
@@ -245,17 +243,17 @@ const Cn = (t) => t._userFlow || null, Xt = (t) => {
|
|
|
245
243
|
);
|
|
246
244
|
}
|
|
247
245
|
return Promise.reject(t);
|
|
248
|
-
},
|
|
246
|
+
}, vn = () => {
|
|
249
247
|
if (zt) {
|
|
250
248
|
console.debug(
|
|
251
249
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
252
250
|
);
|
|
253
251
|
return;
|
|
254
252
|
}
|
|
255
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0,
|
|
253
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, Nn), console.debug("[axiosInterceptors] Response error interceptor registered"), zt = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
256
254
|
};
|
|
257
|
-
|
|
258
|
-
function
|
|
255
|
+
vn();
|
|
256
|
+
function En(t) {
|
|
259
257
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
260
258
|
}
|
|
261
259
|
var Nt = { exports: {} }, dt = {};
|
|
@@ -269,45 +267,45 @@ var Nt = { exports: {} }, dt = {};
|
|
|
269
267
|
* LICENSE file in the root directory of this source tree.
|
|
270
268
|
*/
|
|
271
269
|
var Jt;
|
|
272
|
-
function
|
|
270
|
+
function kn() {
|
|
273
271
|
if (Jt) return dt;
|
|
274
272
|
Jt = 1;
|
|
275
|
-
var t =
|
|
276
|
-
function
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
for (
|
|
280
|
-
if (n && n.defaultProps) for (
|
|
281
|
-
return { $$typeof: e, type: n, key: h, ref: f, props: u, _owner:
|
|
273
|
+
var t = Te, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
274
|
+
function c(n, _, l) {
|
|
275
|
+
var d, u = {}, h = null, f = null;
|
|
276
|
+
l !== void 0 && (h = "" + l), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (f = _.ref);
|
|
277
|
+
for (d in _) r.call(_, d) && !i.hasOwnProperty(d) && (u[d] = _[d]);
|
|
278
|
+
if (n && n.defaultProps) for (d in _ = n.defaultProps, _) u[d] === void 0 && (u[d] = _[d]);
|
|
279
|
+
return { $$typeof: e, type: n, key: h, ref: f, props: u, _owner: o.current };
|
|
282
280
|
}
|
|
283
|
-
return dt.Fragment = s, dt.jsx =
|
|
281
|
+
return dt.Fragment = s, dt.jsx = c, dt.jsxs = c, dt;
|
|
284
282
|
}
|
|
285
283
|
var Wt;
|
|
286
|
-
function
|
|
287
|
-
return Wt || (Wt = 1, Nt.exports =
|
|
284
|
+
function Sn() {
|
|
285
|
+
return Wt || (Wt = 1, Nt.exports = kn()), Nt.exports;
|
|
288
286
|
}
|
|
289
|
-
var
|
|
290
|
-
const
|
|
287
|
+
var a = Sn();
|
|
288
|
+
const Tn = (t) => {
|
|
291
289
|
if (!(t != null && t.content)) return null;
|
|
292
290
|
const e = {
|
|
293
291
|
...t,
|
|
294
292
|
children: t.content,
|
|
295
293
|
type: t.variant
|
|
296
294
|
};
|
|
297
|
-
return /* @__PURE__ */
|
|
298
|
-
},
|
|
295
|
+
return /* @__PURE__ */ a.jsx(re, { ...e });
|
|
296
|
+
}, An = (t) => {
|
|
299
297
|
if (!t) return null;
|
|
300
298
|
const e = {
|
|
301
299
|
...t,
|
|
302
300
|
children: t.content
|
|
303
301
|
};
|
|
304
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ a.jsx(ae, { ...e });
|
|
305
303
|
}, E = (t, e, s, r) => {
|
|
306
|
-
var
|
|
307
|
-
const
|
|
308
|
-
accordion: (n) => /* @__PURE__ */
|
|
309
|
-
aiChatPanel: (n) => /* @__PURE__ */
|
|
310
|
-
|
|
304
|
+
var c;
|
|
305
|
+
const o = {
|
|
306
|
+
accordion: (n) => /* @__PURE__ */ a.jsx(Bn, { ...n, userFlow: t, pageId: e }),
|
|
307
|
+
aiChatPanel: (n) => /* @__PURE__ */ a.jsx(
|
|
308
|
+
Mn,
|
|
311
309
|
{
|
|
312
310
|
...n,
|
|
313
311
|
userFlow: t,
|
|
@@ -315,8 +313,8 @@ const Sn = (t) => {
|
|
|
315
313
|
onResolveProps: r == null ? void 0 : r.aiChatPanel
|
|
316
314
|
}
|
|
317
315
|
),
|
|
318
|
-
aiSummaryCard: (n) => /* @__PURE__ */
|
|
319
|
-
|
|
316
|
+
aiSummaryCard: (n) => /* @__PURE__ */ a.jsx(
|
|
317
|
+
Xn,
|
|
320
318
|
{
|
|
321
319
|
...n,
|
|
322
320
|
userFlow: t,
|
|
@@ -324,48 +322,48 @@ const Sn = (t) => {
|
|
|
324
322
|
onResolveProps: r == null ? void 0 : r.aiSummaryCard
|
|
325
323
|
}
|
|
326
324
|
),
|
|
327
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */
|
|
328
|
-
box: (n) => /* @__PURE__ */
|
|
329
|
-
breadcrumbs: (n) => /* @__PURE__ */
|
|
330
|
-
tooltip: (n) => /* @__PURE__ */
|
|
331
|
-
textarea: (n) => /* @__PURE__ */
|
|
332
|
-
card: (n) => /* @__PURE__ */
|
|
333
|
-
dropdownButton: (n) => /* @__PURE__ */
|
|
334
|
-
menu: (n) => /* @__PURE__ */
|
|
335
|
-
radioGroup: (n) => /* @__PURE__ */
|
|
336
|
-
stepper: (n) => /* @__PURE__ */
|
|
337
|
-
progressBar: (n) => /* @__PURE__ */
|
|
338
|
-
button: (n) => /* @__PURE__ */
|
|
339
|
-
cardAccordion: (n) => /* @__PURE__ */
|
|
340
|
-
cardNotification: (n) => /* @__PURE__ */
|
|
341
|
-
chart: (n) => /* @__PURE__ */
|
|
342
|
-
dataCard: (n) => /* @__PURE__ */
|
|
343
|
-
checkbox: (n) => /* @__PURE__ */
|
|
344
|
-
code: (n) => /* @__PURE__ */
|
|
345
|
-
divider: (n) => /* @__PURE__ */
|
|
346
|
-
drawer: (n) => /* @__PURE__ */
|
|
347
|
-
heading: (n) =>
|
|
348
|
-
link: (n) => /* @__PURE__ */
|
|
349
|
-
pill: (n) => /* @__PURE__ */
|
|
350
|
-
previewerMarkdown: (n) => /* @__PURE__ */
|
|
351
|
-
modal: (n) => /* @__PURE__ */
|
|
352
|
-
roundButton: (n) => /* @__PURE__ */
|
|
353
|
-
row: (n) => /* @__PURE__ */
|
|
354
|
-
select: (n) => /* @__PURE__ */
|
|
355
|
-
switch: (n) => /* @__PURE__ */
|
|
356
|
-
spacing: (n) => /* @__PURE__ */
|
|
357
|
-
table: (n) => /* @__PURE__ */
|
|
358
|
-
tabs: (n) => /* @__PURE__ */
|
|
359
|
-
text: (n) =>
|
|
360
|
-
textField: (n) => /* @__PURE__ */
|
|
361
|
-
toast: (n) => /* @__PURE__ */
|
|
325
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ a.jsx(Vn, { ...n, userFlow: t, pageId: e }),
|
|
326
|
+
box: (n) => /* @__PURE__ */ a.jsx(Fn, { ...n, userFlow: t, pageId: e }),
|
|
327
|
+
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(ds, { ...n, userFlow: t, pageId: e }),
|
|
328
|
+
tooltip: (n) => /* @__PURE__ */ a.jsx(pa, { ...n, userFlow: t, pageId: e }),
|
|
329
|
+
textarea: (n) => /* @__PURE__ */ a.jsx(ua, { ...n, userFlow: t, pageId: e }),
|
|
330
|
+
card: (n) => /* @__PURE__ */ a.jsx(ys, { ...n, userFlow: t, pageId: e }),
|
|
331
|
+
dropdownButton: (n) => /* @__PURE__ */ a.jsx(xr, { ...n, userFlow: t, pageId: e }),
|
|
332
|
+
menu: (n) => /* @__PURE__ */ a.jsx(br, { ...n, userFlow: t, pageId: e }),
|
|
333
|
+
radioGroup: (n) => /* @__PURE__ */ a.jsx(cs, { ...n, userFlow: t, pageId: e }),
|
|
334
|
+
stepper: (n) => /* @__PURE__ */ a.jsx(is, { ...n, userFlow: t, pageId: e }),
|
|
335
|
+
progressBar: (n) => /* @__PURE__ */ a.jsx(ls, { ...n, userFlow: t, pageId: e }),
|
|
336
|
+
button: (n) => /* @__PURE__ */ a.jsx(_s, { ...n, userFlow: t, pageId: e }),
|
|
337
|
+
cardAccordion: (n) => /* @__PURE__ */ a.jsx(hs, { ...n, userFlow: t, pageId: e }),
|
|
338
|
+
cardNotification: (n) => /* @__PURE__ */ a.jsx(ms, { ...n, userFlow: t, pageId: e }),
|
|
339
|
+
chart: (n) => /* @__PURE__ */ a.jsx(Xs, { ...n, userFlow: t }),
|
|
340
|
+
dataCard: (n) => /* @__PURE__ */ a.jsx(cr, { ...n, userFlow: t, pageId: e }),
|
|
341
|
+
checkbox: (n) => /* @__PURE__ */ a.jsx(Js, { ...n, userFlow: t, pageId: e }),
|
|
342
|
+
code: (n) => /* @__PURE__ */ a.jsx(tr, { ...n, userFlow: t, pageId: e }),
|
|
343
|
+
divider: (n) => /* @__PURE__ */ a.jsx(dr, { ...n }),
|
|
344
|
+
drawer: (n) => /* @__PURE__ */ a.jsx(fr, { ...n, userFlow: t, pageId: e }),
|
|
345
|
+
heading: (n) => Tn(n),
|
|
346
|
+
link: (n) => /* @__PURE__ */ a.jsx(pr, { ...n, userFlow: t, pageId: e }),
|
|
347
|
+
pill: (n) => /* @__PURE__ */ a.jsx(Sr, { ...n }),
|
|
348
|
+
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx(Tr, { ...n }),
|
|
349
|
+
modal: (n) => /* @__PURE__ */ a.jsx(wr, { ...n, userFlow: t, pageId: e }),
|
|
350
|
+
roundButton: (n) => /* @__PURE__ */ a.jsx(Ar, { ...n, userFlow: t, pageId: e }),
|
|
351
|
+
row: (n) => /* @__PURE__ */ a.jsx(Dr, { ...n, userFlow: t, pageId: e }),
|
|
352
|
+
select: (n) => /* @__PURE__ */ a.jsx(Gr, { ...n, userFlow: t, pageId: e }),
|
|
353
|
+
switch: (n) => /* @__PURE__ */ a.jsx(Fr, { ...n, userFlow: t, pageId: e }),
|
|
354
|
+
spacing: (n) => /* @__PURE__ */ a.jsx(Zr, { ...n, userFlow: t, pageId: e }),
|
|
355
|
+
table: (n) => /* @__PURE__ */ a.jsx(aa, { ...n, userFlow: t, pageId: e }),
|
|
356
|
+
tabs: (n) => /* @__PURE__ */ a.jsx(la, { ...n, userFlow: t, pageId: e }),
|
|
357
|
+
text: (n) => An(n),
|
|
358
|
+
textField: (n) => /* @__PURE__ */ a.jsx(xa, { ...n, userFlow: t, pageId: e }),
|
|
359
|
+
toast: (n) => /* @__PURE__ */ a.jsx(ya, { ...n, userFlow: t, pageId: e })
|
|
362
360
|
};
|
|
363
|
-
return (
|
|
364
|
-
const
|
|
365
|
-
return
|
|
361
|
+
return (c = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : c.map((n) => {
|
|
362
|
+
const _ = o[n.component];
|
|
363
|
+
return _ ? _({ ...n, userFlow: t, pageId: e }) : null;
|
|
366
364
|
});
|
|
367
365
|
};
|
|
368
|
-
function
|
|
366
|
+
function On(t) {
|
|
369
367
|
return !!(t == null || typeof t == "string" && t.trim() === "" || Array.isArray(t) && t.length === 0);
|
|
370
368
|
}
|
|
371
369
|
function xe(t, e) {
|
|
@@ -374,15 +372,15 @@ function xe(t, e) {
|
|
|
374
372
|
for (const s of e)
|
|
375
373
|
if (s.when === "empty") {
|
|
376
374
|
const r = t == null ? void 0 : t[s.key];
|
|
377
|
-
if (
|
|
375
|
+
if (On(r))
|
|
378
376
|
return !0;
|
|
379
377
|
}
|
|
380
378
|
return !1;
|
|
381
379
|
}
|
|
382
380
|
function B(t, e) {
|
|
383
381
|
const s = v((r) => {
|
|
384
|
-
var
|
|
385
|
-
return (
|
|
382
|
+
var o;
|
|
383
|
+
return (o = r[t]) == null ? void 0 : o.entries;
|
|
386
384
|
});
|
|
387
385
|
return D(
|
|
388
386
|
() => ({
|
|
@@ -403,24 +401,24 @@ const rt = (t) => {
|
|
|
403
401
|
return { "content-type": "application/json", Authorization: t };
|
|
404
402
|
}
|
|
405
403
|
return t;
|
|
406
|
-
}, ft = () => new AbortController(),
|
|
407
|
-
const
|
|
408
|
-
r &&
|
|
409
|
-
const
|
|
404
|
+
}, ft = () => new AbortController(), $n = (t, e = {}, s = {}, r = !1, o) => {
|
|
405
|
+
const i = ft();
|
|
406
|
+
r && i.abort();
|
|
407
|
+
const c = rt(e);
|
|
410
408
|
return {
|
|
411
409
|
call: X.get(t, {
|
|
412
410
|
headers: {
|
|
413
|
-
...
|
|
411
|
+
...c
|
|
414
412
|
},
|
|
415
413
|
params: s,
|
|
416
|
-
signal:
|
|
417
|
-
_userFlow:
|
|
414
|
+
signal: i.signal,
|
|
415
|
+
_userFlow: o
|
|
418
416
|
}),
|
|
419
|
-
controller:
|
|
417
|
+
controller: i
|
|
420
418
|
};
|
|
421
|
-
}, Tt = (t, e = {}, s = {}, r = {},
|
|
422
|
-
const
|
|
423
|
-
|
|
419
|
+
}, Tt = (t, e = {}, s = {}, r = {}, o = !1, i) => {
|
|
420
|
+
const c = ft();
|
|
421
|
+
o && c.abort();
|
|
424
422
|
const n = rt(e);
|
|
425
423
|
return {
|
|
426
424
|
call: X.post(t, s, {
|
|
@@ -428,14 +426,14 @@ const rt = (t) => {
|
|
|
428
426
|
...n
|
|
429
427
|
},
|
|
430
428
|
params: r,
|
|
431
|
-
signal:
|
|
432
|
-
_userFlow:
|
|
429
|
+
signal: c.signal,
|
|
430
|
+
_userFlow: i
|
|
433
431
|
}),
|
|
434
|
-
controller:
|
|
432
|
+
controller: c
|
|
435
433
|
};
|
|
436
|
-
},
|
|
437
|
-
const
|
|
438
|
-
|
|
434
|
+
}, Dn = (t, e = {}, s = {}, r = {}, o = !1, i) => {
|
|
435
|
+
const c = ft();
|
|
436
|
+
o && c.abort();
|
|
439
437
|
const n = rt(e);
|
|
440
438
|
return {
|
|
441
439
|
call: X.put(t, s, {
|
|
@@ -443,14 +441,14 @@ const rt = (t) => {
|
|
|
443
441
|
...n
|
|
444
442
|
},
|
|
445
443
|
params: r,
|
|
446
|
-
signal:
|
|
447
|
-
_userFlow:
|
|
444
|
+
signal: c.signal,
|
|
445
|
+
_userFlow: i
|
|
448
446
|
}),
|
|
449
|
-
controller:
|
|
447
|
+
controller: c
|
|
450
448
|
};
|
|
451
|
-
},
|
|
452
|
-
const
|
|
453
|
-
|
|
449
|
+
}, Rn = (t, e = {}, s = {}, r = {}, o = !1, i) => {
|
|
450
|
+
const c = ft();
|
|
451
|
+
o && c.abort();
|
|
454
452
|
const n = rt(e);
|
|
455
453
|
return {
|
|
456
454
|
call: X.patch(t, s, {
|
|
@@ -458,14 +456,14 @@ const rt = (t) => {
|
|
|
458
456
|
...n
|
|
459
457
|
},
|
|
460
458
|
params: r,
|
|
461
|
-
signal:
|
|
462
|
-
_userFlow:
|
|
459
|
+
signal: c.signal,
|
|
460
|
+
_userFlow: i
|
|
463
461
|
}),
|
|
464
|
-
controller:
|
|
462
|
+
controller: c
|
|
465
463
|
};
|
|
466
|
-
},
|
|
467
|
-
const
|
|
468
|
-
|
|
464
|
+
}, qn = (t, e = {}, s = {}, r = {}, o = !1, i) => {
|
|
465
|
+
const c = ft();
|
|
466
|
+
o && c.abort();
|
|
469
467
|
const n = rt(e);
|
|
470
468
|
return {
|
|
471
469
|
call: X.delete(t, {
|
|
@@ -474,40 +472,40 @@ const rt = (t) => {
|
|
|
474
472
|
},
|
|
475
473
|
data: s,
|
|
476
474
|
params: r,
|
|
477
|
-
signal:
|
|
478
|
-
_userFlow:
|
|
475
|
+
signal: c.signal,
|
|
476
|
+
_userFlow: i
|
|
479
477
|
}),
|
|
480
|
-
controller:
|
|
478
|
+
controller: c
|
|
481
479
|
};
|
|
482
480
|
}, ye = () => {
|
|
483
481
|
let t;
|
|
484
482
|
return { callEndpoint: async (r) => {
|
|
485
483
|
r.controller && (t = r.controller);
|
|
486
|
-
let
|
|
484
|
+
let o = {};
|
|
487
485
|
try {
|
|
488
|
-
|
|
489
|
-
} catch (
|
|
490
|
-
throw
|
|
486
|
+
o = await r.call;
|
|
487
|
+
} catch (i) {
|
|
488
|
+
throw i;
|
|
491
489
|
}
|
|
492
|
-
return
|
|
490
|
+
return o;
|
|
493
491
|
}, cancelEndpoint: () => {
|
|
494
492
|
t && t.abort();
|
|
495
493
|
} };
|
|
496
|
-
}, me = async (t, e, s = "", r = {},
|
|
494
|
+
}, me = async (t, e, s = "", r = {}, o = {}) => {
|
|
497
495
|
try {
|
|
498
|
-
const { callEndpoint:
|
|
499
|
-
s &&
|
|
500
|
-
const
|
|
501
|
-
|
|
496
|
+
const { callEndpoint: i } = ye(), { api: c, headers: n } = t, _ = gn(), l = new URLSearchParams({ session_name: e });
|
|
497
|
+
s && l.append("hash_code", s), _ && l.append("sessionId", _);
|
|
498
|
+
const d = `${c}/not-front/next-ui/?${l.toString()}`, u = rt(n), h = Tt(
|
|
499
|
+
d,
|
|
502
500
|
u,
|
|
503
501
|
r,
|
|
504
|
-
|
|
502
|
+
o,
|
|
505
503
|
!1,
|
|
506
504
|
e
|
|
507
505
|
);
|
|
508
|
-
return await
|
|
509
|
-
} catch (
|
|
510
|
-
return console.error(
|
|
506
|
+
return await i(h);
|
|
507
|
+
} catch (i) {
|
|
508
|
+
return console.error(i), Promise.reject(i);
|
|
511
509
|
}
|
|
512
510
|
}, ge = (t) => {
|
|
513
511
|
const e = t == null ? void 0 : t.toLowerCase();
|
|
@@ -521,35 +519,35 @@ const rt = (t) => {
|
|
|
521
519
|
default:
|
|
522
520
|
return "get";
|
|
523
521
|
}
|
|
524
|
-
},
|
|
525
|
-
const { url: r, paginationKeys:
|
|
526
|
-
if (
|
|
527
|
-
const
|
|
528
|
-
|
|
522
|
+
}, Ln = (t, e, s) => {
|
|
523
|
+
const { url: r, paginationKeys: o, params: i } = t, c = [], n = (o == null ? void 0 : o.page) ?? "page";
|
|
524
|
+
if (c.push(`${n}=${e}`), typeof s == "string") {
|
|
525
|
+
const d = (o == null ? void 0 : o.text) ?? "text";
|
|
526
|
+
c.push(`${d}=${encodeURIComponent(s || "")}`);
|
|
529
527
|
}
|
|
530
|
-
if (
|
|
531
|
-
const
|
|
528
|
+
if (i && typeof i == "object") {
|
|
529
|
+
const d = Object.entries(i).map(
|
|
532
530
|
([u, h]) => `${encodeURIComponent(u)}=${encodeURIComponent(h)}`
|
|
533
531
|
);
|
|
534
|
-
|
|
532
|
+
c.push(...d);
|
|
535
533
|
}
|
|
536
|
-
const
|
|
537
|
-
return
|
|
534
|
+
const _ = c.join("&");
|
|
535
|
+
return _ ? `${r}?${_}` : r;
|
|
538
536
|
}, Kt = (t, e, s, r) => {
|
|
539
|
-
const { type:
|
|
540
|
-
if (
|
|
541
|
-
const
|
|
537
|
+
const { type: o, url: i, method: c, headers: n } = t;
|
|
538
|
+
if (o === "rest") {
|
|
539
|
+
const _ = Ln(t, e, s), d = { ...(t == null ? void 0 : t.data) ?? {}, ...r ?? {} };
|
|
542
540
|
return {
|
|
543
541
|
type: "rest",
|
|
544
|
-
url:
|
|
545
|
-
method: ge(
|
|
542
|
+
url: _,
|
|
543
|
+
method: ge(c),
|
|
546
544
|
headers: n,
|
|
547
|
-
data:
|
|
545
|
+
data: d
|
|
548
546
|
};
|
|
549
547
|
} else
|
|
550
548
|
return {
|
|
551
549
|
type: "graphql",
|
|
552
|
-
url:
|
|
550
|
+
url: i,
|
|
553
551
|
method: "post",
|
|
554
552
|
headers: n,
|
|
555
553
|
query: t == null ? void 0 : t.query,
|
|
@@ -560,68 +558,68 @@ const rt = (t) => {
|
|
|
560
558
|
}
|
|
561
559
|
};
|
|
562
560
|
}, H = () => {
|
|
563
|
-
const t = v((n) => n), { callEndpoint: e } = ye(), s = async (n,
|
|
561
|
+
const t = v((n) => n), { callEndpoint: e } = ye(), s = async (n, _, l, d, u = !0) => {
|
|
564
562
|
var h;
|
|
565
563
|
try {
|
|
566
564
|
const f = (h = t[n]) == null ? void 0 : h.apiConfig, y = {
|
|
567
|
-
state: { ...
|
|
568
|
-
triggerKey:
|
|
565
|
+
state: { ...l },
|
|
566
|
+
triggerKey: d
|
|
569
567
|
};
|
|
570
568
|
return u && F(n, !0), await me(
|
|
571
569
|
f,
|
|
572
570
|
n,
|
|
573
|
-
|
|
571
|
+
_,
|
|
574
572
|
y
|
|
575
573
|
);
|
|
576
574
|
} catch (f) {
|
|
577
575
|
throw u && F(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
|
|
578
576
|
}
|
|
579
|
-
}, r = (n,
|
|
580
|
-
const { url:
|
|
577
|
+
}, r = (n, _) => {
|
|
578
|
+
const { url: l, headers: d, data: u, params: h } = n;
|
|
581
579
|
switch (ge(n.method)) {
|
|
582
580
|
case "post":
|
|
583
|
-
return Tt(
|
|
581
|
+
return Tt(l, d, u, {}, !1, _);
|
|
584
582
|
case "put":
|
|
585
|
-
return
|
|
583
|
+
return Dn(l, d, u, {}, !1, _);
|
|
586
584
|
case "patch":
|
|
587
|
-
return
|
|
585
|
+
return Rn(l, d, u, {}, !1, _);
|
|
588
586
|
case "delete":
|
|
589
|
-
return
|
|
587
|
+
return qn(l, d, u, h, !1, _);
|
|
590
588
|
case "get":
|
|
591
589
|
default:
|
|
592
|
-
return
|
|
590
|
+
return $n(l, d, h, !1, _);
|
|
593
591
|
}
|
|
594
|
-
},
|
|
595
|
-
const { url:
|
|
592
|
+
}, o = (n, _) => {
|
|
593
|
+
const { url: l, headers: d } = n, u = {
|
|
596
594
|
query: n == null ? void 0 : n.query,
|
|
597
595
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
598
596
|
};
|
|
599
597
|
return Tt(
|
|
600
|
-
|
|
598
|
+
l,
|
|
601
599
|
{
|
|
602
|
-
...
|
|
600
|
+
...d,
|
|
603
601
|
"Content-Type": "application/json"
|
|
604
602
|
},
|
|
605
603
|
u,
|
|
606
604
|
{},
|
|
607
605
|
!1,
|
|
608
|
-
|
|
606
|
+
_
|
|
609
607
|
);
|
|
610
|
-
},
|
|
611
|
-
var
|
|
608
|
+
}, i = async (n, _, l = !0) => {
|
|
609
|
+
var d, u;
|
|
612
610
|
if (!n) {
|
|
613
611
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
614
612
|
return;
|
|
615
613
|
}
|
|
616
|
-
|
|
614
|
+
l && F(_, !0);
|
|
617
615
|
try {
|
|
618
616
|
let h;
|
|
619
617
|
switch (n == null ? void 0 : n.type) {
|
|
620
618
|
case "rest":
|
|
621
|
-
h = r(n,
|
|
619
|
+
h = r(n, _);
|
|
622
620
|
break;
|
|
623
621
|
case "graphql":
|
|
624
|
-
h =
|
|
622
|
+
h = o(n, _);
|
|
625
623
|
break;
|
|
626
624
|
default:
|
|
627
625
|
throw new Error("[fetchDataSource] Unsupported data source type");
|
|
@@ -630,7 +628,7 @@ const rt = (t) => {
|
|
|
630
628
|
} catch (h) {
|
|
631
629
|
const f = h;
|
|
632
630
|
return console.error("[fetchDataSource] Error:", f), {
|
|
633
|
-
status: ((
|
|
631
|
+
status: ((d = f == null ? void 0 : f.response) == null ? void 0 : d.status) ?? 0,
|
|
634
632
|
data: ((u = f == null ? void 0 : f.response) == null ? void 0 : u.data) ?? {
|
|
635
633
|
message: f == null ? void 0 : f.message,
|
|
636
634
|
code: f == null ? void 0 : f.code,
|
|
@@ -638,21 +636,21 @@ const rt = (t) => {
|
|
|
638
636
|
}
|
|
639
637
|
};
|
|
640
638
|
} finally {
|
|
641
|
-
|
|
639
|
+
l && F(_, !1);
|
|
642
640
|
}
|
|
643
641
|
};
|
|
644
642
|
return {
|
|
645
643
|
getNextUI: s,
|
|
646
|
-
fetchDataSource:
|
|
647
|
-
fetchAndGetNextUI: async (n,
|
|
644
|
+
fetchDataSource: i,
|
|
645
|
+
fetchAndGetNextUI: async (n, _, l, d, u) => {
|
|
648
646
|
try {
|
|
649
647
|
F(n, !0);
|
|
650
|
-
const h = await
|
|
648
|
+
const h = await i(u, n, !1);
|
|
651
649
|
return h && await s(
|
|
652
650
|
n,
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
651
|
+
_,
|
|
652
|
+
l,
|
|
653
|
+
d
|
|
656
654
|
);
|
|
657
655
|
} catch (h) {
|
|
658
656
|
throw F(n, !1), console.error(
|
|
@@ -662,36 +660,36 @@ const rt = (t) => {
|
|
|
662
660
|
}
|
|
663
661
|
}
|
|
664
662
|
};
|
|
665
|
-
},
|
|
666
|
-
accordion:
|
|
667
|
-
accordionBody:
|
|
668
|
-
},
|
|
663
|
+
}, In = "_accordion_1ri2t_1", Kn = "_accordionBody_1ri2t_8", Yt = {
|
|
664
|
+
accordion: In,
|
|
665
|
+
accordionBody: Kn
|
|
666
|
+
}, Bn = (t) => {
|
|
669
667
|
const {
|
|
670
668
|
userFlow: e,
|
|
671
669
|
pageId: s,
|
|
672
670
|
responseKey: r,
|
|
673
|
-
dependencies:
|
|
674
|
-
customContent:
|
|
675
|
-
actionContent:
|
|
671
|
+
dependencies: o,
|
|
672
|
+
customContent: i,
|
|
673
|
+
actionContent: c,
|
|
676
674
|
components: n,
|
|
677
|
-
...
|
|
678
|
-
} = t, { getNextUI:
|
|
679
|
-
|
|
675
|
+
..._
|
|
676
|
+
} = t, { getNextUI: l } = H(), [d, u] = q(
|
|
677
|
+
_.checkboxChecked || !1
|
|
680
678
|
), { disabled: h } = B(
|
|
681
679
|
e,
|
|
682
|
-
|
|
683
|
-
), f = E(e, s, n), y =
|
|
684
|
-
async (
|
|
680
|
+
o
|
|
681
|
+
), f = E(e, s, n), y = c ? E(e, s, c) : void 0, b = i ? E(e, s, i) : void 0, p = L(
|
|
682
|
+
async (g) => {
|
|
685
683
|
var C;
|
|
686
684
|
try {
|
|
687
|
-
const j =
|
|
685
|
+
const j = g.target.checked;
|
|
688
686
|
u(j);
|
|
689
687
|
const w = {
|
|
690
688
|
...(C = v.getState()[e]) == null ? void 0 : C.entries,
|
|
691
689
|
[r]: j
|
|
692
690
|
};
|
|
693
|
-
if (
|
|
694
|
-
const N = await
|
|
691
|
+
if (I(e, w), _.actionType === "GO_TO_NEXT_UI") {
|
|
692
|
+
const N = await l(
|
|
695
693
|
e,
|
|
696
694
|
s,
|
|
697
695
|
w,
|
|
@@ -703,160 +701,160 @@ const rt = (t) => {
|
|
|
703
701
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
704
702
|
}
|
|
705
703
|
},
|
|
706
|
-
[e, s, r,
|
|
707
|
-
), x =
|
|
708
|
-
...
|
|
704
|
+
[e, s, r, _.actionType, l]
|
|
705
|
+
), x = _.disabled || h, m = {
|
|
706
|
+
..._,
|
|
709
707
|
className: Yt.accordion,
|
|
710
708
|
disabled: x,
|
|
711
|
-
checkboxChecked:
|
|
712
|
-
onChanceCheckbox:
|
|
713
|
-
actionContent: y ? /* @__PURE__ */
|
|
714
|
-
customContent: b ? /* @__PURE__ */
|
|
715
|
-
children: f ? /* @__PURE__ */
|
|
709
|
+
checkboxChecked: d,
|
|
710
|
+
onChanceCheckbox: _.hasCheckbox ? p : void 0,
|
|
711
|
+
actionContent: y ? /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-action-${C}`)) }) : void 0,
|
|
712
|
+
customContent: b ? /* @__PURE__ */ a.jsx(a.Fragment, { children: b.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-custom-${C}`)) }) : void 0,
|
|
713
|
+
children: f ? /* @__PURE__ */ a.jsx("section", { className: Yt.accordionBody, children: f.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-child-${C}`)) }) : void 0
|
|
716
714
|
};
|
|
717
|
-
return /* @__PURE__ */
|
|
718
|
-
},
|
|
719
|
-
const e = ht.useThemeStore((
|
|
715
|
+
return /* @__PURE__ */ a.jsx(Oe, { ...m });
|
|
716
|
+
}, Mn = (t) => {
|
|
717
|
+
const e = ht.useThemeStore((c) => c.theme.mode), s = t.dataSource, r = D(() => ({
|
|
720
718
|
url: t.dataSource.url,
|
|
721
719
|
method: t.dataSource.method,
|
|
722
720
|
headers: t.dataSource.headers,
|
|
723
721
|
params: s == null ? void 0 : s.data
|
|
724
|
-
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, s == null ? void 0 : s.data]),
|
|
725
|
-
var n,
|
|
726
|
-
const
|
|
722
|
+
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, s == null ? void 0 : s.data]), o = t.locale ?? "en", i = D(() => {
|
|
723
|
+
var n, _, l, d, u;
|
|
724
|
+
const c = {
|
|
727
725
|
title: (n = t == null ? void 0 : t.translations) == null ? void 0 : n.title,
|
|
728
|
-
welcomeTitle: (
|
|
729
|
-
welcomeDescription: (
|
|
730
|
-
placeholder: (
|
|
726
|
+
welcomeTitle: (_ = t == null ? void 0 : t.translations) == null ? void 0 : _.welcomeTitle,
|
|
727
|
+
welcomeDescription: (l = t == null ? void 0 : t.translations) == null ? void 0 : l.welcomeDescription,
|
|
728
|
+
placeholder: (d = t == null ? void 0 : t.translations) == null ? void 0 : d.placeholder,
|
|
731
729
|
disclaimer: (u = t == null ? void 0 : t.translations) == null ? void 0 : u.disclaimer
|
|
732
730
|
};
|
|
733
|
-
return Object.fromEntries(Object.entries(
|
|
731
|
+
return Object.fromEntries(Object.entries(c).filter(([, h]) => !!h));
|
|
734
732
|
}, [t == null ? void 0 : t.translations]);
|
|
735
733
|
return U(() => {
|
|
736
734
|
t.onResolveProps && t.onResolveProps({
|
|
737
735
|
dataSource: r,
|
|
738
|
-
locale:
|
|
739
|
-
translations:
|
|
736
|
+
locale: o,
|
|
737
|
+
translations: i,
|
|
740
738
|
initialSuggestions: t.initialSuggestions,
|
|
741
739
|
theme: e
|
|
742
740
|
});
|
|
743
741
|
}, [
|
|
744
742
|
t.onResolveProps,
|
|
745
743
|
r,
|
|
746
|
-
|
|
747
|
-
|
|
744
|
+
o,
|
|
745
|
+
i,
|
|
748
746
|
t.initialSuggestions,
|
|
749
747
|
e
|
|
750
|
-
]), t.onResolveProps ? null : /* @__PURE__ */
|
|
751
|
-
|
|
748
|
+
]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx(
|
|
749
|
+
sn,
|
|
752
750
|
{
|
|
753
751
|
dataSource: r,
|
|
754
|
-
locale:
|
|
755
|
-
translations:
|
|
752
|
+
locale: o,
|
|
753
|
+
translations: i,
|
|
756
754
|
initialSuggestions: t.initialSuggestions,
|
|
757
755
|
theme: e
|
|
758
756
|
}
|
|
759
757
|
);
|
|
760
|
-
},
|
|
761
|
-
promptCodeEditor:
|
|
762
|
-
},
|
|
758
|
+
}, Gn = "_promptCodeEditor_1d57s_1", Hn = {
|
|
759
|
+
promptCodeEditor: Gn
|
|
760
|
+
}, Vn = (t) => {
|
|
763
761
|
const {
|
|
764
762
|
userFlow: e,
|
|
765
763
|
responseKey: s,
|
|
766
764
|
codeBlockValue: r,
|
|
767
|
-
language:
|
|
768
|
-
disabled:
|
|
769
|
-
dependencies:
|
|
765
|
+
language: o,
|
|
766
|
+
disabled: i,
|
|
767
|
+
dependencies: c,
|
|
770
768
|
dataSource: n,
|
|
771
|
-
inputLabel:
|
|
772
|
-
inputPlaceholder:
|
|
773
|
-
codeBlockLabel:
|
|
774
|
-
} = t, u = ht.useThemeStore((
|
|
769
|
+
inputLabel: _,
|
|
770
|
+
inputPlaceholder: l,
|
|
771
|
+
codeBlockLabel: d
|
|
772
|
+
} = t, u = ht.useThemeStore((g) => g.theme.mode), [h, f] = q(
|
|
775
773
|
r || ""
|
|
776
774
|
), { disabled: y } = B(
|
|
777
775
|
e,
|
|
778
|
-
|
|
779
|
-
), b =
|
|
776
|
+
c
|
|
777
|
+
), b = i ?? y, p = o ?? "json", x = {
|
|
780
778
|
url: (n == null ? void 0 : n.url) || "",
|
|
781
779
|
method: (n == null ? void 0 : n.method) || "post",
|
|
782
780
|
headers: n == null ? void 0 : n.headers,
|
|
783
781
|
body: n == null ? void 0 : n.data
|
|
784
|
-
}, m = (
|
|
785
|
-
f(
|
|
782
|
+
}, m = (g) => {
|
|
783
|
+
f(g);
|
|
786
784
|
const C = {
|
|
787
|
-
[s]:
|
|
785
|
+
[s]: g
|
|
788
786
|
};
|
|
789
|
-
|
|
787
|
+
I(e, C);
|
|
790
788
|
};
|
|
791
789
|
return U(() => {
|
|
792
790
|
r !== void 0 && r !== h && f(r);
|
|
793
|
-
}, [r]), /* @__PURE__ */
|
|
794
|
-
|
|
791
|
+
}, [r]), /* @__PURE__ */ a.jsx("section", { className: Hn.promptCodeEditor, children: /* @__PURE__ */ a.jsx(
|
|
792
|
+
rn,
|
|
795
793
|
{
|
|
796
794
|
themeMode: u,
|
|
797
795
|
requestConfig: x,
|
|
798
|
-
language:
|
|
796
|
+
language: p,
|
|
799
797
|
disabled: b,
|
|
800
|
-
inputLabel:
|
|
801
|
-
inputPlaceholder:
|
|
802
|
-
codeBlockLabel:
|
|
798
|
+
inputLabel: _,
|
|
799
|
+
inputPlaceholder: l,
|
|
800
|
+
codeBlockLabel: d,
|
|
803
801
|
codeBlockValue: h,
|
|
804
802
|
onCodeChange: m
|
|
805
803
|
}
|
|
806
804
|
) });
|
|
807
|
-
}, Un = "_summaryCard_jva4h_1",
|
|
805
|
+
}, Un = "_summaryCard_jva4h_1", zn = {
|
|
808
806
|
summaryCard: Un
|
|
809
|
-
},
|
|
807
|
+
}, Xn = (t) => {
|
|
810
808
|
const e = t.dataSource, s = D(() => ({
|
|
811
809
|
url: t.dataSource.url,
|
|
812
810
|
method: t.dataSource.method,
|
|
813
811
|
headers: t.dataSource.headers,
|
|
814
812
|
body: e == null ? void 0 : e.data
|
|
815
|
-
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, e == null ? void 0 : e.data]), r = t.locale ?? "en",
|
|
816
|
-
var
|
|
817
|
-
const
|
|
818
|
-
title: (
|
|
813
|
+
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, e == null ? void 0 : e.data]), r = t.locale ?? "en", o = D(() => {
|
|
814
|
+
var c, n, _;
|
|
815
|
+
const i = {
|
|
816
|
+
title: (c = t == null ? void 0 : t.translations) == null ? void 0 : c.title,
|
|
819
817
|
loading: (n = t == null ? void 0 : t.translations) == null ? void 0 : n.loading,
|
|
820
|
-
noData: (
|
|
818
|
+
noData: (_ = t == null ? void 0 : t.translations) == null ? void 0 : _.noData
|
|
821
819
|
};
|
|
822
820
|
return Object.fromEntries(
|
|
823
|
-
Object.entries(
|
|
821
|
+
Object.entries(i).filter(([, l]) => !!l)
|
|
824
822
|
);
|
|
825
823
|
}, [t == null ? void 0 : t.translations]);
|
|
826
824
|
return U(() => {
|
|
827
825
|
t.onResolveProps && t.onResolveProps({
|
|
828
826
|
dataSource: s,
|
|
829
827
|
locale: r,
|
|
830
|
-
translations:
|
|
828
|
+
translations: o
|
|
831
829
|
});
|
|
832
|
-
}, [t.onResolveProps, s, r,
|
|
833
|
-
|
|
830
|
+
}, [t.onResolveProps, s, r, o]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx("section", { className: zn.summaryCard, children: /* @__PURE__ */ a.jsx(
|
|
831
|
+
an,
|
|
834
832
|
{
|
|
835
833
|
dataSource: s,
|
|
836
834
|
locale: r,
|
|
837
|
-
translations:
|
|
835
|
+
translations: o
|
|
838
836
|
}
|
|
839
837
|
) });
|
|
840
|
-
},
|
|
841
|
-
body:
|
|
842
|
-
body_content:
|
|
843
|
-
},
|
|
844
|
-
boxNotFront:
|
|
845
|
-
slotStack:
|
|
846
|
-
},
|
|
838
|
+
}, Jn = "_body_14tsv_1", Wn = "_body_content_14tsv_5", Qt = {
|
|
839
|
+
body: Jn,
|
|
840
|
+
body_content: Wn
|
|
841
|
+
}, Yn = ({ inputs: t }) => /* @__PURE__ */ a.jsx("section", { className: Qt.body, children: /* @__PURE__ */ a.jsx("div", { className: Qt.body_content, children: t.map((e, s) => /* @__PURE__ */ a.jsx(A, { children: e }, s)) }) }), Qn = "_boxNotFront_67q2e_1", Zn = "_slotStack_67q2e_5", Zt = {
|
|
842
|
+
boxNotFront: Qn,
|
|
843
|
+
slotStack: Zn
|
|
844
|
+
}, Fn = (t) => {
|
|
847
845
|
const {
|
|
848
846
|
userFlow: e,
|
|
849
847
|
pageId: s,
|
|
850
848
|
component: r,
|
|
851
|
-
hash:
|
|
852
|
-
responseKey:
|
|
853
|
-
content:
|
|
854
|
-
} = t, n = ht.useThemeStore((
|
|
849
|
+
hash: o,
|
|
850
|
+
responseKey: i,
|
|
851
|
+
content: c
|
|
852
|
+
} = t, n = ht.useThemeStore((d) => d.theme.mode) === "dark", _ = E(
|
|
855
853
|
e,
|
|
856
854
|
s,
|
|
857
|
-
|
|
858
|
-
),
|
|
859
|
-
return /* @__PURE__ */
|
|
855
|
+
c != null && c.length ? c : null
|
|
856
|
+
), l = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: Zt.slotStack, children: _.map((d, u) => /* @__PURE__ */ a.jsx(A, { children: d }, `box-${o}-${u}`)) }) : null;
|
|
857
|
+
return /* @__PURE__ */ a.jsx($e, { className: Zt.boxNotFront, darkMode: n, children: l });
|
|
860
858
|
};
|
|
861
859
|
var vt = { exports: {} };
|
|
862
860
|
/*!
|
|
@@ -865,29 +863,29 @@ var vt = { exports: {} };
|
|
|
865
863
|
http://jedwatson.github.io/classnames
|
|
866
864
|
*/
|
|
867
865
|
var Ft;
|
|
868
|
-
function
|
|
866
|
+
function Pn() {
|
|
869
867
|
return Ft || (Ft = 1, (function(t) {
|
|
870
868
|
(function() {
|
|
871
869
|
var e = {}.hasOwnProperty;
|
|
872
870
|
function s() {
|
|
873
|
-
for (var r = [],
|
|
874
|
-
var
|
|
875
|
-
if (
|
|
876
|
-
var
|
|
877
|
-
if (
|
|
878
|
-
r.push(
|
|
879
|
-
else if (Array.isArray(
|
|
880
|
-
if (
|
|
881
|
-
var n = s.apply(null,
|
|
871
|
+
for (var r = [], o = 0; o < arguments.length; o++) {
|
|
872
|
+
var i = arguments[o];
|
|
873
|
+
if (i) {
|
|
874
|
+
var c = typeof i;
|
|
875
|
+
if (c === "string" || c === "number")
|
|
876
|
+
r.push(i);
|
|
877
|
+
else if (Array.isArray(i)) {
|
|
878
|
+
if (i.length) {
|
|
879
|
+
var n = s.apply(null, i);
|
|
882
880
|
n && r.push(n);
|
|
883
881
|
}
|
|
884
|
-
} else if (
|
|
885
|
-
if (
|
|
886
|
-
r.push(
|
|
882
|
+
} else if (c === "object") {
|
|
883
|
+
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
|
|
884
|
+
r.push(i.toString());
|
|
887
885
|
continue;
|
|
888
886
|
}
|
|
889
|
-
for (var
|
|
890
|
-
e.call(
|
|
887
|
+
for (var _ in i)
|
|
888
|
+
e.call(i, _) && i[_] && r.push(_);
|
|
891
889
|
}
|
|
892
890
|
}
|
|
893
891
|
}
|
|
@@ -897,44 +895,44 @@ function Fn() {
|
|
|
897
895
|
})();
|
|
898
896
|
})(vt)), vt.exports;
|
|
899
897
|
}
|
|
900
|
-
var
|
|
901
|
-
const et = /* @__PURE__ */
|
|
902
|
-
fieldset:
|
|
903
|
-
fieldsetColumn:
|
|
904
|
-
legend:
|
|
905
|
-
options:
|
|
906
|
-
optionsRow:
|
|
907
|
-
optionsColumn:
|
|
908
|
-
},
|
|
898
|
+
var ts = Pn();
|
|
899
|
+
const et = /* @__PURE__ */ En(ts), es = "_fieldset_1xrth_1", ns = "_fieldsetColumn_1xrth_8", ss = "_legend_1xrth_14", rs = "_options_1xrth_20", as = "_optionsRow_1xrth_25", os = "_optionsColumn_1xrth_36", P = {
|
|
900
|
+
fieldset: es,
|
|
901
|
+
fieldsetColumn: ns,
|
|
902
|
+
legend: ss,
|
|
903
|
+
options: rs,
|
|
904
|
+
optionsRow: as,
|
|
905
|
+
optionsColumn: os
|
|
906
|
+
}, cs = (t) => {
|
|
909
907
|
const {
|
|
910
908
|
userFlow: e,
|
|
911
909
|
pageId: s,
|
|
912
910
|
responseKey: r,
|
|
913
|
-
label:
|
|
914
|
-
value:
|
|
915
|
-
required:
|
|
911
|
+
label: o,
|
|
912
|
+
value: i,
|
|
913
|
+
required: c,
|
|
916
914
|
actionType: n,
|
|
917
|
-
dependencies:
|
|
918
|
-
direction:
|
|
919
|
-
items:
|
|
920
|
-
} = t, u =
|
|
915
|
+
dependencies: _,
|
|
916
|
+
direction: l,
|
|
917
|
+
items: d
|
|
918
|
+
} = t, u = l === "column" ? "column" : "row", { getNextUI: h } = H(), { disabled: f } = B(
|
|
921
919
|
e,
|
|
922
|
-
|
|
920
|
+
_
|
|
923
921
|
), y = v(
|
|
924
|
-
(
|
|
922
|
+
(g) => {
|
|
925
923
|
var C, j;
|
|
926
|
-
return (j = (C =
|
|
924
|
+
return (j = (C = g[e]) == null ? void 0 : C.entries) == null ? void 0 : j[r];
|
|
927
925
|
}
|
|
928
|
-
), b = y != null ? String(y) :
|
|
929
|
-
async (
|
|
926
|
+
), b = y != null ? String(y) : i ?? "", p = f, x = D(() => o ? c ? `${o} *` : o : null, [o, c]), m = L(
|
|
927
|
+
async (g) => {
|
|
930
928
|
var C;
|
|
931
|
-
if (!
|
|
929
|
+
if (!p)
|
|
932
930
|
try {
|
|
933
931
|
const j = {
|
|
934
932
|
...(C = v.getState()[e]) == null ? void 0 : C.entries,
|
|
935
|
-
[r]:
|
|
933
|
+
[r]: g
|
|
936
934
|
};
|
|
937
|
-
if (
|
|
935
|
+
if (I(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
|
|
938
936
|
const k = await h(
|
|
939
937
|
e,
|
|
940
938
|
s,
|
|
@@ -951,13 +949,13 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
|
|
|
951
949
|
[
|
|
952
950
|
n,
|
|
953
951
|
h,
|
|
954
|
-
|
|
952
|
+
p,
|
|
955
953
|
s,
|
|
956
954
|
r,
|
|
957
955
|
e
|
|
958
956
|
]
|
|
959
957
|
);
|
|
960
|
-
return /* @__PURE__ */
|
|
958
|
+
return /* @__PURE__ */ a.jsxs(
|
|
961
959
|
"fieldset",
|
|
962
960
|
{
|
|
963
961
|
className: et(
|
|
@@ -965,101 +963,101 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
|
|
|
965
963
|
u === "column" && P.fieldsetColumn
|
|
966
964
|
),
|
|
967
965
|
children: [
|
|
968
|
-
x ? /* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */
|
|
966
|
+
x ? /* @__PURE__ */ a.jsx("legend", { className: P.legend, children: x }) : null,
|
|
967
|
+
/* @__PURE__ */ a.jsx(
|
|
970
968
|
"div",
|
|
971
969
|
{
|
|
972
970
|
className: et(
|
|
973
971
|
P.options,
|
|
974
972
|
u === "column" ? P.optionsColumn : P.optionsRow
|
|
975
973
|
),
|
|
976
|
-
children:
|
|
977
|
-
|
|
974
|
+
children: d.map((g) => /* @__PURE__ */ a.jsx(
|
|
975
|
+
De,
|
|
978
976
|
{
|
|
979
977
|
name: r,
|
|
980
|
-
value:
|
|
981
|
-
checked: b ===
|
|
982
|
-
disabled:
|
|
983
|
-
labelRight:
|
|
978
|
+
value: g.value,
|
|
979
|
+
checked: b === g.value,
|
|
980
|
+
disabled: p || g.disabled,
|
|
981
|
+
labelRight: g.label,
|
|
984
982
|
onChange: () => {
|
|
985
|
-
m(
|
|
983
|
+
m(g.value);
|
|
986
984
|
}
|
|
987
985
|
},
|
|
988
|
-
|
|
986
|
+
g.value
|
|
989
987
|
))
|
|
990
988
|
}
|
|
991
989
|
)
|
|
992
990
|
]
|
|
993
991
|
}
|
|
994
992
|
);
|
|
995
|
-
},
|
|
993
|
+
}, is = ({
|
|
996
994
|
userFlow: t,
|
|
997
995
|
pageId: e,
|
|
998
996
|
component: s,
|
|
999
997
|
hash: r,
|
|
1000
|
-
responseKey:
|
|
1001
|
-
items:
|
|
1002
|
-
itemActive:
|
|
998
|
+
responseKey: o,
|
|
999
|
+
items: i,
|
|
1000
|
+
itemActive: c,
|
|
1003
1001
|
darkMode: n
|
|
1004
|
-
}) => /* @__PURE__ */
|
|
1002
|
+
}) => /* @__PURE__ */ a.jsx(Re, { items: i, itemActive: c, darkMode: n }), ls = ({
|
|
1005
1003
|
userFlow: t,
|
|
1006
1004
|
pageId: e,
|
|
1007
1005
|
component: s,
|
|
1008
1006
|
hash: r,
|
|
1009
|
-
responseKey:
|
|
1010
|
-
total:
|
|
1011
|
-
done:
|
|
1007
|
+
responseKey: o,
|
|
1008
|
+
total: i,
|
|
1009
|
+
done: c,
|
|
1012
1010
|
inProgress: n
|
|
1013
|
-
}) => /* @__PURE__ */
|
|
1011
|
+
}) => /* @__PURE__ */ a.jsx(qe, { total: i, done: c, inProgress: n }), ds = ({
|
|
1014
1012
|
userFlow: t,
|
|
1015
1013
|
items: e,
|
|
1016
1014
|
responseKey: s
|
|
1017
1015
|
}) => {
|
|
1018
|
-
const { getNextUI: r } = H(),
|
|
1019
|
-
async ({ actionType:
|
|
1020
|
-
var
|
|
1016
|
+
const { getNextUI: r } = H(), o = L(
|
|
1017
|
+
async ({ actionType: c, hashCode: n, redirectUrl: _ }) => {
|
|
1018
|
+
var l;
|
|
1021
1019
|
try {
|
|
1022
|
-
switch (
|
|
1020
|
+
switch (c) {
|
|
1023
1021
|
case "GO_TO_NEXT_UI":
|
|
1024
|
-
const
|
|
1022
|
+
const d = await r(
|
|
1025
1023
|
t,
|
|
1026
1024
|
n,
|
|
1027
|
-
{ ...(
|
|
1025
|
+
{ ...(l = v.getState()[t]) == null ? void 0 : l.entries },
|
|
1028
1026
|
s
|
|
1029
1027
|
);
|
|
1030
|
-
|
|
1028
|
+
d != null && d.data && K(t, d == null ? void 0 : d.data);
|
|
1031
1029
|
break;
|
|
1032
1030
|
case "REDIRECT":
|
|
1033
|
-
|
|
1031
|
+
_ ? window.location.href = _ : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
1034
1032
|
break;
|
|
1035
1033
|
default:
|
|
1036
|
-
console.warn(`Unhandled actionType: ${
|
|
1034
|
+
console.warn(`Unhandled actionType: ${c}`);
|
|
1037
1035
|
break;
|
|
1038
1036
|
}
|
|
1039
|
-
} catch (
|
|
1040
|
-
alert(JSON.stringify(
|
|
1037
|
+
} catch (d) {
|
|
1038
|
+
alert(JSON.stringify(d));
|
|
1041
1039
|
}
|
|
1042
1040
|
},
|
|
1043
1041
|
[]
|
|
1044
|
-
),
|
|
1045
|
-
title:
|
|
1046
|
-
component: /* @__PURE__ */
|
|
1042
|
+
), i = D(() => e == null ? void 0 : e.map((c) => ({
|
|
1043
|
+
title: c == null ? void 0 : c.title,
|
|
1044
|
+
component: /* @__PURE__ */ a.jsx("div", { onClick: () => o(c) })
|
|
1047
1045
|
})), []);
|
|
1048
|
-
return /* @__PURE__ */
|
|
1046
|
+
return /* @__PURE__ */ a.jsx(Le, { items: i });
|
|
1049
1047
|
};
|
|
1050
1048
|
function xt(t, e) {
|
|
1051
|
-
const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI:
|
|
1052
|
-
return
|
|
1053
|
-
async (
|
|
1049
|
+
const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: o } = H();
|
|
1050
|
+
return L(
|
|
1051
|
+
async (i) => {
|
|
1054
1052
|
var h, f, y, b;
|
|
1055
|
-
const { responseKey:
|
|
1056
|
-
if (!xe(u,
|
|
1053
|
+
const { responseKey: c, actionType: n, dataSource: _, redirectUrl: l, dependencies: d } = i, u = (h = v.getState()[t]) == null ? void 0 : h.entries;
|
|
1054
|
+
if (!xe(u, d))
|
|
1057
1055
|
try {
|
|
1058
|
-
const
|
|
1056
|
+
const p = {
|
|
1059
1057
|
...(f = v.getState()[t]) == null ? void 0 : f.entries,
|
|
1060
|
-
[
|
|
1058
|
+
[c]: { status: 200 }
|
|
1061
1059
|
};
|
|
1062
|
-
switch (
|
|
1060
|
+
switch (I(t, p), n) {
|
|
1063
1061
|
case "CLOSE_MODAL":
|
|
1064
1062
|
It(t, !1);
|
|
1065
1063
|
break;
|
|
@@ -1073,31 +1071,31 @@ function xt(t, e) {
|
|
|
1073
1071
|
const x = await s(
|
|
1074
1072
|
t,
|
|
1075
1073
|
e,
|
|
1076
|
-
|
|
1077
|
-
|
|
1074
|
+
p,
|
|
1075
|
+
c
|
|
1078
1076
|
);
|
|
1079
1077
|
x != null && x.data && K(t, x == null ? void 0 : x.data);
|
|
1080
1078
|
break;
|
|
1081
1079
|
}
|
|
1082
1080
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1083
|
-
const x = await
|
|
1081
|
+
const x = await o(
|
|
1084
1082
|
t,
|
|
1085
1083
|
e,
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1084
|
+
p,
|
|
1085
|
+
c,
|
|
1086
|
+
_
|
|
1089
1087
|
);
|
|
1090
1088
|
x != null && x.data && K(t, x == null ? void 0 : x.data);
|
|
1091
1089
|
break;
|
|
1092
1090
|
}
|
|
1093
1091
|
case "FETCH_DATA_SOURCE": {
|
|
1094
1092
|
const x = await r(
|
|
1095
|
-
|
|
1093
|
+
_,
|
|
1096
1094
|
t,
|
|
1097
1095
|
!1
|
|
1098
1096
|
);
|
|
1099
|
-
|
|
1100
|
-
[
|
|
1097
|
+
I(t, {
|
|
1098
|
+
[c]: {
|
|
1101
1099
|
status: x == null ? void 0 : x.status,
|
|
1102
1100
|
content: x == null ? void 0 : x.data
|
|
1103
1101
|
}
|
|
@@ -1108,40 +1106,40 @@ function xt(t, e) {
|
|
|
1108
1106
|
const x = await s(
|
|
1109
1107
|
t,
|
|
1110
1108
|
e,
|
|
1111
|
-
|
|
1112
|
-
|
|
1109
|
+
p,
|
|
1110
|
+
c
|
|
1113
1111
|
), m = (y = x == null ? void 0 : x.data) == null ? void 0 : y.content;
|
|
1114
1112
|
if ((m == null ? void 0 : m.type) !== "fetch")
|
|
1115
1113
|
break;
|
|
1116
|
-
const
|
|
1114
|
+
const g = m == null ? void 0 : m.dataSource, C = await r(g, t, !1), j = {
|
|
1117
1115
|
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
1118
|
-
[
|
|
1116
|
+
[c]: {
|
|
1119
1117
|
status: C == null ? void 0 : C.status,
|
|
1120
1118
|
content: C == null ? void 0 : C.data
|
|
1121
1119
|
}
|
|
1122
1120
|
};
|
|
1123
|
-
|
|
1121
|
+
I(t, j);
|
|
1124
1122
|
const w = await s(
|
|
1125
1123
|
t,
|
|
1126
1124
|
e,
|
|
1127
1125
|
j,
|
|
1128
|
-
|
|
1126
|
+
c
|
|
1129
1127
|
);
|
|
1130
1128
|
w != null && w.data && K(t, w == null ? void 0 : w.data);
|
|
1131
1129
|
break;
|
|
1132
1130
|
}
|
|
1133
1131
|
case "REDIRECT":
|
|
1134
|
-
|
|
1132
|
+
l ? window.location.href = l : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
1135
1133
|
break;
|
|
1136
1134
|
default:
|
|
1137
1135
|
console.warn(`Unhandled actionType: ${n}`);
|
|
1138
1136
|
}
|
|
1139
|
-
} catch (
|
|
1140
|
-
alert(JSON.stringify(
|
|
1137
|
+
} catch (p) {
|
|
1138
|
+
alert(JSON.stringify(p));
|
|
1141
1139
|
}
|
|
1142
1140
|
},
|
|
1143
1141
|
[
|
|
1144
|
-
|
|
1142
|
+
o,
|
|
1145
1143
|
r,
|
|
1146
1144
|
s,
|
|
1147
1145
|
e,
|
|
@@ -1149,37 +1147,37 @@ function xt(t, e) {
|
|
|
1149
1147
|
]
|
|
1150
1148
|
);
|
|
1151
1149
|
}
|
|
1152
|
-
const
|
|
1150
|
+
const _s = (t) => {
|
|
1153
1151
|
const {
|
|
1154
1152
|
userFlow: e,
|
|
1155
1153
|
pageId: s,
|
|
1156
1154
|
responseKey: r,
|
|
1157
|
-
actionType:
|
|
1158
|
-
label:
|
|
1159
|
-
content:
|
|
1155
|
+
actionType: o,
|
|
1156
|
+
label: i,
|
|
1157
|
+
content: c,
|
|
1160
1158
|
dataSource: n,
|
|
1161
|
-
redirectUrl:
|
|
1162
|
-
dependencies:
|
|
1163
|
-
onClick:
|
|
1159
|
+
redirectUrl: _,
|
|
1160
|
+
dependencies: l,
|
|
1161
|
+
onClick: d,
|
|
1164
1162
|
...u
|
|
1165
1163
|
} = t, h = xt(e, s), { disabled: f } = B(
|
|
1166
1164
|
e,
|
|
1167
|
-
|
|
1165
|
+
l
|
|
1168
1166
|
), y = {
|
|
1169
1167
|
...u,
|
|
1170
|
-
children:
|
|
1171
|
-
}, b = (y == null ? void 0 : y.disabled) ?? f, [
|
|
1168
|
+
children: c ?? i
|
|
1169
|
+
}, b = (y == null ? void 0 : y.disabled) ?? f, [p, x] = q(!1), m = ut(!1), g = L(async () => {
|
|
1172
1170
|
if (m.current)
|
|
1173
1171
|
return;
|
|
1174
|
-
const C =
|
|
1172
|
+
const C = o === "FETCH_DATA_SOURCE";
|
|
1175
1173
|
C && (m.current = !0, x(!0));
|
|
1176
1174
|
try {
|
|
1177
1175
|
await h({
|
|
1178
1176
|
responseKey: r,
|
|
1179
|
-
actionType:
|
|
1177
|
+
actionType: o,
|
|
1180
1178
|
dataSource: n,
|
|
1181
|
-
redirectUrl:
|
|
1182
|
-
dependencies:
|
|
1179
|
+
redirectUrl: _,
|
|
1180
|
+
dependencies: l
|
|
1183
1181
|
});
|
|
1184
1182
|
} catch (j) {
|
|
1185
1183
|
console.error("[ButtonNotFront] Action failed:", j);
|
|
@@ -1187,38 +1185,38 @@ const ds = (t) => {
|
|
|
1187
1185
|
C && (m.current = !1, x(!1));
|
|
1188
1186
|
}
|
|
1189
1187
|
}, [
|
|
1190
|
-
|
|
1188
|
+
o,
|
|
1191
1189
|
n,
|
|
1192
|
-
|
|
1193
|
-
|
|
1190
|
+
l,
|
|
1191
|
+
_,
|
|
1194
1192
|
r,
|
|
1195
1193
|
h
|
|
1196
1194
|
]);
|
|
1197
|
-
return /* @__PURE__ */
|
|
1198
|
-
|
|
1195
|
+
return /* @__PURE__ */ a.jsx(
|
|
1196
|
+
Ie,
|
|
1199
1197
|
{
|
|
1200
1198
|
...y,
|
|
1201
|
-
loading: y.loading ||
|
|
1199
|
+
loading: y.loading || p,
|
|
1202
1200
|
disabled: b,
|
|
1203
|
-
onClick: () => !b && !
|
|
1201
|
+
onClick: () => !b && !p && (d ?? g)()
|
|
1204
1202
|
}
|
|
1205
1203
|
);
|
|
1206
|
-
},
|
|
1207
|
-
slotStack:
|
|
1208
|
-
},
|
|
1204
|
+
}, us = "_slotStack_12u4t_5", At = {
|
|
1205
|
+
slotStack: us
|
|
1206
|
+
}, hs = (t) => {
|
|
1209
1207
|
const {
|
|
1210
1208
|
userFlow: e,
|
|
1211
1209
|
pageId: s,
|
|
1212
1210
|
component: r,
|
|
1213
|
-
hash:
|
|
1214
|
-
responseKey:
|
|
1215
|
-
dependencies:
|
|
1211
|
+
hash: o,
|
|
1212
|
+
responseKey: i,
|
|
1213
|
+
dependencies: c,
|
|
1216
1214
|
content: n,
|
|
1217
|
-
actionContent:
|
|
1218
|
-
...
|
|
1219
|
-
} = t, { disabled:
|
|
1215
|
+
actionContent: _,
|
|
1216
|
+
...l
|
|
1217
|
+
} = t, { disabled: d } = B(
|
|
1220
1218
|
e,
|
|
1221
|
-
|
|
1219
|
+
c
|
|
1222
1220
|
), u = E(
|
|
1223
1221
|
e,
|
|
1224
1222
|
s,
|
|
@@ -1226,49 +1224,49 @@ const ds = (t) => {
|
|
|
1226
1224
|
), h = E(
|
|
1227
1225
|
e,
|
|
1228
1226
|
s,
|
|
1229
|
-
|
|
1230
|
-
), f = u && u.length > 0 ? /* @__PURE__ */
|
|
1231
|
-
return /* @__PURE__ */
|
|
1232
|
-
|
|
1227
|
+
_ && _.length > 0 ? _ : null
|
|
1228
|
+
), f = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: At.slotStack, children: u.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `card-accordion-body-${o}-${x}`)) }) : void 0, y = h && h.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: At.slotStack, children: h.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `card-accordion-actions-${o}-${x}`)) }) : void 0, b = l.disabled || d;
|
|
1229
|
+
return /* @__PURE__ */ a.jsx(
|
|
1230
|
+
Ke,
|
|
1233
1231
|
{
|
|
1234
|
-
...
|
|
1232
|
+
...l,
|
|
1235
1233
|
disabled: b,
|
|
1236
1234
|
actionContent: y,
|
|
1237
1235
|
children: f ?? null
|
|
1238
1236
|
}
|
|
1239
1237
|
);
|
|
1240
|
-
},
|
|
1241
|
-
slotStack:
|
|
1242
|
-
},
|
|
1238
|
+
}, fs = "_slotStack_ivk5b_1", xs = {
|
|
1239
|
+
slotStack: fs
|
|
1240
|
+
}, ys = (t) => {
|
|
1243
1241
|
const {
|
|
1244
1242
|
userFlow: e,
|
|
1245
1243
|
pageId: s,
|
|
1246
1244
|
component: r,
|
|
1247
|
-
hash:
|
|
1248
|
-
responseKey:
|
|
1249
|
-
content:
|
|
1245
|
+
hash: o,
|
|
1246
|
+
responseKey: i,
|
|
1247
|
+
content: c,
|
|
1250
1248
|
colorId: n,
|
|
1251
|
-
disabled:
|
|
1252
|
-
actionType:
|
|
1253
|
-
dataSource:
|
|
1249
|
+
disabled: _,
|
|
1250
|
+
actionType: l,
|
|
1251
|
+
dataSource: d,
|
|
1254
1252
|
redirectUrl: u,
|
|
1255
1253
|
dependencies: h
|
|
1256
|
-
} = t, { getNextUI: f, fetchDataSource: y, fetchAndGetNextUI: b } = H(), { disabled:
|
|
1254
|
+
} = t, { getNextUI: f, fetchDataSource: y, fetchAndGetNextUI: b } = H(), { disabled: p } = B(
|
|
1257
1255
|
e,
|
|
1258
1256
|
h
|
|
1259
|
-
), x =
|
|
1257
|
+
), x = _ ?? p, m = E(
|
|
1260
1258
|
e,
|
|
1261
1259
|
s,
|
|
1262
|
-
|
|
1263
|
-
),
|
|
1260
|
+
c && c.length > 0 ? c : null
|
|
1261
|
+
), g = m && m.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: xs.slotStack, children: m.map((j, w) => /* @__PURE__ */ a.jsx(A, { children: j }, `card-body-${o}-${w}`)) }) : null, C = L(async () => {
|
|
1264
1262
|
var j, w, N;
|
|
1265
|
-
if (!(!
|
|
1263
|
+
if (!(!l || x))
|
|
1266
1264
|
try {
|
|
1267
1265
|
const k = {
|
|
1268
1266
|
...(j = v.getState()[e]) == null ? void 0 : j.entries,
|
|
1269
|
-
[
|
|
1267
|
+
[i]: { status: 200 }
|
|
1270
1268
|
};
|
|
1271
|
-
switch (
|
|
1269
|
+
switch (I(e, k), l) {
|
|
1272
1270
|
case "CLOSE_MODAL":
|
|
1273
1271
|
It(e, !1);
|
|
1274
1272
|
break;
|
|
@@ -1284,8 +1282,8 @@ const ds = (t) => {
|
|
|
1284
1282
|
e,
|
|
1285
1283
|
s,
|
|
1286
1284
|
k,
|
|
1287
|
-
|
|
1288
|
-
|
|
1285
|
+
i,
|
|
1286
|
+
l === "GO_TO_NEXT_UI"
|
|
1289
1287
|
);
|
|
1290
1288
|
$ != null && $.data && K(e, $ == null ? void 0 : $.data);
|
|
1291
1289
|
break;
|
|
@@ -1295,8 +1293,8 @@ const ds = (t) => {
|
|
|
1295
1293
|
e,
|
|
1296
1294
|
s,
|
|
1297
1295
|
k,
|
|
1298
|
-
|
|
1299
|
-
|
|
1296
|
+
i,
|
|
1297
|
+
d
|
|
1300
1298
|
);
|
|
1301
1299
|
O != null && O.data && K(e, O == null ? void 0 : O.data);
|
|
1302
1300
|
break;
|
|
@@ -1306,23 +1304,23 @@ const ds = (t) => {
|
|
|
1306
1304
|
e,
|
|
1307
1305
|
s,
|
|
1308
1306
|
k,
|
|
1309
|
-
|
|
1307
|
+
i
|
|
1310
1308
|
), $ = (w = O == null ? void 0 : O.data) == null ? void 0 : w.content;
|
|
1311
1309
|
if (($ == null ? void 0 : $.type) !== "fetch")
|
|
1312
1310
|
break;
|
|
1313
1311
|
const Q = $ == null ? void 0 : $.dataSource, V = await y(Q, e, !1), S = {
|
|
1314
1312
|
...(N = v.getState()[e]) == null ? void 0 : N.entries,
|
|
1315
|
-
[
|
|
1313
|
+
[i]: {
|
|
1316
1314
|
status: V == null ? void 0 : V.status,
|
|
1317
1315
|
content: V == null ? void 0 : V.data
|
|
1318
1316
|
}
|
|
1319
1317
|
};
|
|
1320
|
-
|
|
1318
|
+
I(e, S);
|
|
1321
1319
|
const G = await f(
|
|
1322
1320
|
e,
|
|
1323
1321
|
s,
|
|
1324
1322
|
S,
|
|
1325
|
-
|
|
1323
|
+
i
|
|
1326
1324
|
);
|
|
1327
1325
|
G != null && G.data && K(e, G == null ? void 0 : G.data);
|
|
1328
1326
|
break;
|
|
@@ -1331,110 +1329,110 @@ const ds = (t) => {
|
|
|
1331
1329
|
u && (window.location.href = u);
|
|
1332
1330
|
break;
|
|
1333
1331
|
default:
|
|
1334
|
-
console.warn(`Unhandled card actionType: ${
|
|
1332
|
+
console.warn(`Unhandled card actionType: ${l}`);
|
|
1335
1333
|
}
|
|
1336
1334
|
} catch (k) {
|
|
1337
1335
|
alert(JSON.stringify(k));
|
|
1338
1336
|
}
|
|
1339
1337
|
}, [
|
|
1340
|
-
|
|
1341
|
-
|
|
1338
|
+
l,
|
|
1339
|
+
d,
|
|
1342
1340
|
x,
|
|
1343
1341
|
b,
|
|
1344
1342
|
y,
|
|
1345
1343
|
f,
|
|
1346
1344
|
s,
|
|
1347
1345
|
u,
|
|
1348
|
-
|
|
1346
|
+
i,
|
|
1349
1347
|
e
|
|
1350
1348
|
]);
|
|
1351
|
-
return /* @__PURE__ */
|
|
1352
|
-
|
|
1349
|
+
return /* @__PURE__ */ a.jsx(
|
|
1350
|
+
Be,
|
|
1353
1351
|
{
|
|
1354
1352
|
colorId: n,
|
|
1355
1353
|
disabled: x,
|
|
1356
|
-
onClick:
|
|
1357
|
-
children:
|
|
1354
|
+
onClick: l && !x ? () => void C() : void 0,
|
|
1355
|
+
children: g
|
|
1358
1356
|
}
|
|
1359
1357
|
);
|
|
1360
|
-
},
|
|
1358
|
+
}, ms = (t) => {
|
|
1361
1359
|
const {
|
|
1362
1360
|
userFlow: e,
|
|
1363
1361
|
pageId: s,
|
|
1364
1362
|
component: r,
|
|
1365
|
-
hash:
|
|
1366
|
-
responseKey:
|
|
1367
|
-
content:
|
|
1363
|
+
hash: o,
|
|
1364
|
+
responseKey: i,
|
|
1365
|
+
content: c,
|
|
1368
1366
|
description: n,
|
|
1369
|
-
...
|
|
1370
|
-
} = t,
|
|
1367
|
+
..._
|
|
1368
|
+
} = t, l = Array.isArray(c), d = E(
|
|
1371
1369
|
e,
|
|
1372
1370
|
s,
|
|
1373
|
-
|
|
1371
|
+
l && c.length > 0 ? c : null
|
|
1374
1372
|
);
|
|
1375
1373
|
let u;
|
|
1376
|
-
return
|
|
1377
|
-
n ? /* @__PURE__ */
|
|
1378
|
-
|
|
1379
|
-
] }) : u = (typeof
|
|
1380
|
-
}, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t,
|
|
1374
|
+
return d && d.length > 0 ? u = /* @__PURE__ */ a.jsxs("div", { className: At.slotStack, children: [
|
|
1375
|
+
n ? /* @__PURE__ */ a.jsx(ae, { type: "sm", children: n }) : null,
|
|
1376
|
+
d.map((h, f) => /* @__PURE__ */ a.jsx(A, { children: h }, `card-notification-body-${o}-${f}`))
|
|
1377
|
+
] }) : u = (typeof c == "string" ? c : void 0) ?? n, /* @__PURE__ */ a.jsx(mt, { ..._, children: u });
|
|
1378
|
+
}, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, gs = (t, e) => {
|
|
1381
1379
|
if (!e || t == null)
|
|
1382
1380
|
return null;
|
|
1383
|
-
const { extractionJsonPath: s, injectionJsonPath: r } = e,
|
|
1384
|
-
if (
|
|
1381
|
+
const { extractionJsonPath: s, injectionJsonPath: r } = e, o = M.value(t, s);
|
|
1382
|
+
if (o == null)
|
|
1385
1383
|
return null;
|
|
1386
1384
|
try {
|
|
1387
|
-
const
|
|
1388
|
-
return M.value(
|
|
1389
|
-
} catch (
|
|
1385
|
+
const i = {};
|
|
1386
|
+
return M.value(i, r, o), i;
|
|
1387
|
+
} catch (i) {
|
|
1390
1388
|
return console.warn(
|
|
1391
1389
|
"[buildCursorPayload] invalid injectionJsonPath:",
|
|
1392
1390
|
r,
|
|
1393
|
-
|
|
1391
|
+
i
|
|
1394
1392
|
), null;
|
|
1395
1393
|
}
|
|
1396
1394
|
}, pe = (t, e, s, r) => {
|
|
1397
|
-
const
|
|
1395
|
+
const o = M.query(t, e), i = o == null ? void 0 : o.map((d) => {
|
|
1398
1396
|
var u, h;
|
|
1399
1397
|
if (s) {
|
|
1400
1398
|
const f = {};
|
|
1401
1399
|
for (const [y, b] of Object.entries(s))
|
|
1402
1400
|
if (typeof b == "object" && "path" in b) {
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1405
|
-
|
|
1401
|
+
const p = b, x = (u = M.query(d, p.path)) == null ? void 0 : u[0];
|
|
1402
|
+
p.translations && String(x) in p.translations ? f[y] = Et(
|
|
1403
|
+
p.translations[String(x)]
|
|
1406
1404
|
) : f[y] = Et(x);
|
|
1407
1405
|
} else {
|
|
1408
|
-
const
|
|
1409
|
-
f[y] = Et((h = M.query(
|
|
1406
|
+
const p = b;
|
|
1407
|
+
f[y] = Et((h = M.query(d, p)) == null ? void 0 : h[0]);
|
|
1410
1408
|
}
|
|
1411
1409
|
return f;
|
|
1412
1410
|
} else
|
|
1413
|
-
return
|
|
1414
|
-
}),
|
|
1415
|
-
size:
|
|
1411
|
+
return d;
|
|
1412
|
+
}), c = M.value(t, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? o.length, n = M.value(t, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, _ = r != null && r.hasMore ? !!M.value(t, r.hasMore) : void 0, l = {
|
|
1413
|
+
size: c,
|
|
1416
1414
|
total: n,
|
|
1417
1415
|
totalPages: r != null && r.totalPages ? M.value(
|
|
1418
1416
|
t,
|
|
1419
1417
|
(r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
|
|
1420
|
-
) :
|
|
1421
|
-
...
|
|
1418
|
+
) : c > 0 ? Math.ceil(n / c) : 0,
|
|
1419
|
+
..._ !== void 0 ? { hasMore: _ } : {}
|
|
1422
1420
|
};
|
|
1423
|
-
return { items:
|
|
1421
|
+
return { items: i, pagination: l };
|
|
1424
1422
|
}, at = ({
|
|
1425
1423
|
width: t,
|
|
1426
1424
|
height: e,
|
|
1427
1425
|
layout: s,
|
|
1428
1426
|
data: r,
|
|
1429
|
-
Chart:
|
|
1430
|
-
children:
|
|
1427
|
+
Chart: o,
|
|
1428
|
+
children: i
|
|
1431
1429
|
}) => {
|
|
1432
|
-
const
|
|
1433
|
-
return t ? /* @__PURE__ */
|
|
1430
|
+
const c = e ?? nt, n = s ? { layout: s } : {};
|
|
1431
|
+
return t ? /* @__PURE__ */ a.jsx(o, { width: t, height: c, data: r, ...n, children: i }) : /* @__PURE__ */ a.jsx($t, { width: "100%", height: c, children: /* @__PURE__ */ a.jsx(o, { data: r, ...n, children: i }) });
|
|
1434
1432
|
}, J = ({ withPadding: t = !1 }) => {
|
|
1435
|
-
const e = (s) => /* @__PURE__ */
|
|
1436
|
-
return /* @__PURE__ */
|
|
1437
|
-
|
|
1433
|
+
const e = (s) => /* @__PURE__ */ a.jsx("span", { style: { color: T.labelColor }, children: s });
|
|
1434
|
+
return /* @__PURE__ */ a.jsx(
|
|
1435
|
+
on,
|
|
1438
1436
|
{
|
|
1439
1437
|
formatter: e,
|
|
1440
1438
|
wrapperStyle: {
|
|
@@ -1444,17 +1442,17 @@ const ds = (t) => {
|
|
|
1444
1442
|
}
|
|
1445
1443
|
}
|
|
1446
1444
|
);
|
|
1447
|
-
},
|
|
1445
|
+
}, ps = ({
|
|
1448
1446
|
active: t,
|
|
1449
1447
|
payload: e,
|
|
1450
1448
|
label: s,
|
|
1451
1449
|
tooltipKey: r,
|
|
1452
|
-
tooltipCoverage:
|
|
1450
|
+
tooltipCoverage: o
|
|
1453
1451
|
}) => {
|
|
1454
|
-
var
|
|
1452
|
+
var d, u;
|
|
1455
1453
|
if (!t || !e || !e.length)
|
|
1456
1454
|
return null;
|
|
1457
|
-
const
|
|
1455
|
+
const i = {
|
|
1458
1456
|
backgroundColor: T.tooltipBg,
|
|
1459
1457
|
borderRadius: T.tooltipBorderRadius,
|
|
1460
1458
|
color: T.tooltipColor,
|
|
@@ -1462,16 +1460,16 @@ const ds = (t) => {
|
|
|
1462
1460
|
border: "1px solid #e5e7eb"
|
|
1463
1461
|
};
|
|
1464
1462
|
if (r) {
|
|
1465
|
-
const h = (
|
|
1463
|
+
const h = (d = e[0]) == null ? void 0 : d.payload;
|
|
1466
1464
|
if (h && h[r] !== void 0 && h[r] !== null)
|
|
1467
|
-
return /* @__PURE__ */
|
|
1465
|
+
return /* @__PURE__ */ a.jsx("div", { style: i, children: /* @__PURE__ */ a.jsx("p", { style: { margin: 0 }, children: h[r] }) });
|
|
1468
1466
|
}
|
|
1469
|
-
const
|
|
1470
|
-
return /* @__PURE__ */
|
|
1471
|
-
/* @__PURE__ */
|
|
1472
|
-
e.map((h, f) => /* @__PURE__ */
|
|
1473
|
-
|
|
1474
|
-
|
|
1467
|
+
const c = (u = e[0]) == null ? void 0 : u.payload, n = (o == null ? void 0 : o.label) ?? "Cobertura", _ = o ? c == null ? void 0 : c[o.denominatorKey] : void 0, l = o && _ !== void 0 && _ !== null && _ > 0;
|
|
1468
|
+
return /* @__PURE__ */ a.jsxs("div", { style: i, children: [
|
|
1469
|
+
/* @__PURE__ */ a.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1470
|
+
e.map((h, f) => /* @__PURE__ */ a.jsx("p", { style: { margin: "2px 0", color: h.color }, children: `${h.name}: ${h.value}` }, f)),
|
|
1471
|
+
l && /* @__PURE__ */ a.jsx("p", { style: { margin: "2px 0" }, children: `${n}: ${Math.round(
|
|
1472
|
+
c[o.numeratorKey] / _ * 100
|
|
1475
1473
|
)}%` })
|
|
1476
1474
|
] });
|
|
1477
1475
|
}, W = ({
|
|
@@ -1479,22 +1477,22 @@ const ds = (t) => {
|
|
|
1479
1477
|
tooltipCoverage: e,
|
|
1480
1478
|
defaultIndex: s,
|
|
1481
1479
|
hideContent: r = !1
|
|
1482
|
-
} = {}) => /* @__PURE__ */
|
|
1483
|
-
|
|
1480
|
+
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1481
|
+
cn,
|
|
1484
1482
|
{
|
|
1485
1483
|
defaultIndex: s,
|
|
1486
1484
|
cursor: r ? !1 : void 0,
|
|
1487
|
-
content: r ? () => null : (
|
|
1488
|
-
|
|
1485
|
+
content: r ? () => null : (o) => /* @__PURE__ */ a.jsx(
|
|
1486
|
+
ps,
|
|
1489
1487
|
{
|
|
1490
|
-
...
|
|
1488
|
+
...o,
|
|
1491
1489
|
tooltipKey: t,
|
|
1492
1490
|
tooltipCoverage: e
|
|
1493
1491
|
}
|
|
1494
1492
|
)
|
|
1495
1493
|
}
|
|
1496
|
-
), ot = ({ dataKey: t, hide: e = !1, type: s }) => /* @__PURE__ */
|
|
1497
|
-
|
|
1494
|
+
), ot = ({ dataKey: t, hide: e = !1, type: s }) => /* @__PURE__ */ a.jsx(
|
|
1495
|
+
ln,
|
|
1498
1496
|
{
|
|
1499
1497
|
...t ? { dataKey: t } : {},
|
|
1500
1498
|
...s ? { type: s } : {},
|
|
@@ -1509,75 +1507,75 @@ const ds = (t) => {
|
|
|
1509
1507
|
dataKey: e,
|
|
1510
1508
|
width: s,
|
|
1511
1509
|
yAxisId: r,
|
|
1512
|
-
orientation:
|
|
1513
|
-
} = {}) => /* @__PURE__ */
|
|
1514
|
-
|
|
1510
|
+
orientation: o
|
|
1511
|
+
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1512
|
+
dn,
|
|
1515
1513
|
{
|
|
1516
1514
|
...t ? { type: t } : {},
|
|
1517
1515
|
...e ? { dataKey: e } : {},
|
|
1518
1516
|
...s !== void 0 ? { width: s } : {},
|
|
1519
1517
|
...r ? { yAxisId: r } : {},
|
|
1520
|
-
...
|
|
1518
|
+
...o ? { orientation: o } : {},
|
|
1521
1519
|
tick: {
|
|
1522
1520
|
fill: T.labelColor,
|
|
1523
1521
|
fontSize: T.fontSize
|
|
1524
1522
|
},
|
|
1525
1523
|
tickMargin: 4
|
|
1526
1524
|
}
|
|
1527
|
-
),
|
|
1528
|
-
const { data: e, xKey: s, yKeys: r, tooltipKey:
|
|
1529
|
-
return /* @__PURE__ */
|
|
1530
|
-
/* @__PURE__ */
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
-
/* @__PURE__ */
|
|
1533
|
-
/* @__PURE__ */
|
|
1534
|
-
/* @__PURE__ */
|
|
1535
|
-
r.map((
|
|
1525
|
+
), bs = (t) => {
|
|
1526
|
+
const { data: e, xKey: s, yKeys: r, tooltipKey: o, width: i } = t;
|
|
1527
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: _n, children: [
|
|
1528
|
+
/* @__PURE__ */ a.jsx(st, { strokeDasharray: "3 3" }),
|
|
1529
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: s }),
|
|
1530
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1531
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1532
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
1533
|
+
r.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1536
1534
|
le,
|
|
1537
1535
|
{
|
|
1538
1536
|
type: "monotone",
|
|
1539
|
-
dataKey:
|
|
1540
|
-
stroke:
|
|
1541
|
-
fill:
|
|
1537
|
+
dataKey: c,
|
|
1538
|
+
stroke: R[n % R.length],
|
|
1539
|
+
fill: R[n % R.length]
|
|
1542
1540
|
},
|
|
1543
|
-
|
|
1541
|
+
c
|
|
1544
1542
|
))
|
|
1545
1543
|
] });
|
|
1546
|
-
},
|
|
1547
|
-
const { data: e, yKeys: s, xKey: r, tooltipKey:
|
|
1548
|
-
return /* @__PURE__ */
|
|
1549
|
-
/* @__PURE__ */
|
|
1550
|
-
/* @__PURE__ */
|
|
1551
|
-
/* @__PURE__ */
|
|
1552
|
-
/* @__PURE__ */
|
|
1553
|
-
/* @__PURE__ */
|
|
1554
|
-
s.map((
|
|
1544
|
+
}, js = (t) => {
|
|
1545
|
+
const { data: e, yKeys: s, xKey: r, tooltipKey: o, width: i } = t;
|
|
1546
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: Dt, children: [
|
|
1547
|
+
/* @__PURE__ */ a.jsx(st, { strokeDasharray: "3 3" }),
|
|
1548
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1549
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1550
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1551
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
1552
|
+
s.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1555
1553
|
pt,
|
|
1556
1554
|
{
|
|
1557
|
-
dataKey:
|
|
1558
|
-
fill:
|
|
1555
|
+
dataKey: c,
|
|
1556
|
+
fill: R[n % R.length]
|
|
1559
1557
|
},
|
|
1560
|
-
|
|
1558
|
+
c
|
|
1561
1559
|
))
|
|
1562
1560
|
] });
|
|
1563
1561
|
};
|
|
1564
1562
|
var be = { NODE_ENV: "production" };
|
|
1565
|
-
const
|
|
1563
|
+
const Cs = (t, e) => {
|
|
1566
1564
|
if (e != null && e.length)
|
|
1567
1565
|
return e;
|
|
1568
1566
|
const s = [
|
|
1569
1567
|
...new Set(t.map((r) => r.yAxisId).filter((r) => !!r))
|
|
1570
1568
|
];
|
|
1571
|
-
return s.length === 0 ? [] : s.map((r,
|
|
1569
|
+
return s.length === 0 ? [] : s.map((r, o) => ({
|
|
1572
1570
|
id: r,
|
|
1573
|
-
orientation:
|
|
1571
|
+
orientation: o === 1 ? "right" : "left"
|
|
1574
1572
|
}));
|
|
1575
|
-
},
|
|
1573
|
+
}, ws = (t, e) => {
|
|
1576
1574
|
!t.type && be.NODE_ENV;
|
|
1577
|
-
const s = t.color ??
|
|
1575
|
+
const s = t.color ?? R[e % R.length], r = t.label ?? t.key, o = t.yAxisId ? { yAxisId: t.yAxisId } : {};
|
|
1578
1576
|
switch (t.type) {
|
|
1579
1577
|
case "area":
|
|
1580
|
-
return /* @__PURE__ */
|
|
1578
|
+
return /* @__PURE__ */ a.jsx(
|
|
1581
1579
|
le,
|
|
1582
1580
|
{
|
|
1583
1581
|
dataKey: t.key,
|
|
@@ -1586,12 +1584,12 @@ const js = (t, e) => {
|
|
|
1586
1584
|
fill: s,
|
|
1587
1585
|
stroke: s,
|
|
1588
1586
|
fillOpacity: 0.3,
|
|
1589
|
-
...
|
|
1587
|
+
...o
|
|
1590
1588
|
},
|
|
1591
1589
|
t.key
|
|
1592
1590
|
);
|
|
1593
1591
|
case "line":
|
|
1594
|
-
return /* @__PURE__ */
|
|
1592
|
+
return /* @__PURE__ */ a.jsx(
|
|
1595
1593
|
de,
|
|
1596
1594
|
{
|
|
1597
1595
|
dataKey: t.key,
|
|
@@ -1600,12 +1598,12 @@ const js = (t, e) => {
|
|
|
1600
1598
|
stroke: s,
|
|
1601
1599
|
strokeWidth: 2,
|
|
1602
1600
|
dot: !1,
|
|
1603
|
-
...
|
|
1601
|
+
...o
|
|
1604
1602
|
},
|
|
1605
1603
|
t.key
|
|
1606
1604
|
);
|
|
1607
1605
|
case "bar":
|
|
1608
|
-
return /* @__PURE__ */
|
|
1606
|
+
return /* @__PURE__ */ a.jsx(
|
|
1609
1607
|
pt,
|
|
1610
1608
|
{
|
|
1611
1609
|
dataKey: t.key,
|
|
@@ -1613,60 +1611,60 @@ const js = (t, e) => {
|
|
|
1613
1611
|
fill: s,
|
|
1614
1612
|
stackId: t.stackId,
|
|
1615
1613
|
barSize: t.barSize,
|
|
1616
|
-
...
|
|
1614
|
+
...o
|
|
1617
1615
|
},
|
|
1618
1616
|
t.key
|
|
1619
1617
|
);
|
|
1620
1618
|
default:
|
|
1621
1619
|
return null;
|
|
1622
1620
|
}
|
|
1623
|
-
},
|
|
1621
|
+
}, Ns = (t) => {
|
|
1624
1622
|
const {
|
|
1625
1623
|
data: e,
|
|
1626
1624
|
xKey: s,
|
|
1627
1625
|
series: r = [],
|
|
1628
|
-
tooltipKey:
|
|
1629
|
-
width:
|
|
1630
|
-
showLegend:
|
|
1626
|
+
tooltipKey: o,
|
|
1627
|
+
width: i,
|
|
1628
|
+
showLegend: c = !0,
|
|
1631
1629
|
yAxes: n
|
|
1632
1630
|
} = t;
|
|
1633
1631
|
!r.length && be.NODE_ENV;
|
|
1634
|
-
const
|
|
1635
|
-
return /* @__PURE__ */
|
|
1636
|
-
/* @__PURE__ */
|
|
1637
|
-
/* @__PURE__ */
|
|
1638
|
-
|
|
1632
|
+
const _ = Cs(r, n);
|
|
1633
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: un, children: [
|
|
1634
|
+
/* @__PURE__ */ a.jsx(st, { strokeDasharray: "3 3" }),
|
|
1635
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: s }),
|
|
1636
|
+
_.length > 0 ? _.map((l) => /* @__PURE__ */ a.jsx(
|
|
1639
1637
|
Y,
|
|
1640
1638
|
{
|
|
1641
|
-
yAxisId:
|
|
1642
|
-
orientation:
|
|
1639
|
+
yAxisId: l.id,
|
|
1640
|
+
orientation: l.orientation
|
|
1643
1641
|
},
|
|
1644
|
-
|
|
1645
|
-
)) : /* @__PURE__ */
|
|
1646
|
-
/* @__PURE__ */
|
|
1647
|
-
|
|
1648
|
-
r.map((
|
|
1642
|
+
l.id
|
|
1643
|
+
)) : /* @__PURE__ */ a.jsx(Y, {}),
|
|
1644
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1645
|
+
c && /* @__PURE__ */ a.jsx(J, {}),
|
|
1646
|
+
r.map((l, d) => ws(l, d))
|
|
1649
1647
|
] });
|
|
1650
|
-
},
|
|
1648
|
+
}, vs = "55%", Es = 120, ks = (t) => (e) => {
|
|
1651
1649
|
const s = Math.PI / 180, {
|
|
1652
1650
|
cx: r = 0,
|
|
1653
|
-
cy:
|
|
1654
|
-
midAngle:
|
|
1655
|
-
innerRadius:
|
|
1651
|
+
cy: o = 0,
|
|
1652
|
+
midAngle: i = 0,
|
|
1653
|
+
innerRadius: c = 0,
|
|
1656
1654
|
outerRadius: n = 0,
|
|
1657
|
-
startAngle:
|
|
1658
|
-
endAngle:
|
|
1659
|
-
fill:
|
|
1655
|
+
startAngle: _ = 0,
|
|
1656
|
+
endAngle: l = 0,
|
|
1657
|
+
fill: d = R[0],
|
|
1660
1658
|
payload: u,
|
|
1661
1659
|
percent: h = 0,
|
|
1662
1660
|
value: f = 0
|
|
1663
|
-
} = e, y = Math.sin(-s *
|
|
1664
|
-
return /* @__PURE__ */
|
|
1665
|
-
/* @__PURE__ */
|
|
1661
|
+
} = e, y = Math.sin(-s * i), b = Math.cos(-s * i), p = r + (n + 10) * b, x = o + (n + 10) * y, m = r + (n + 30) * b, g = o + (n + 30) * y, C = m + (b >= 0 ? 1 : -1) * 22, j = g, w = b >= 0 ? "start" : "end", N = u, k = String((N == null ? void 0 : N[t]) ?? "");
|
|
1662
|
+
return /* @__PURE__ */ a.jsxs("g", { children: [
|
|
1663
|
+
/* @__PURE__ */ a.jsx(
|
|
1666
1664
|
"text",
|
|
1667
1665
|
{
|
|
1668
1666
|
x: r,
|
|
1669
|
-
y:
|
|
1667
|
+
y: o,
|
|
1670
1668
|
dy: 8,
|
|
1671
1669
|
textAnchor: "middle",
|
|
1672
1670
|
fill: T.labelColor,
|
|
@@ -1675,40 +1673,40 @@ const js = (t, e) => {
|
|
|
1675
1673
|
children: k
|
|
1676
1674
|
}
|
|
1677
1675
|
),
|
|
1678
|
-
/* @__PURE__ */
|
|
1676
|
+
/* @__PURE__ */ a.jsx(
|
|
1679
1677
|
Gt,
|
|
1680
1678
|
{
|
|
1681
1679
|
cx: r,
|
|
1682
|
-
cy:
|
|
1683
|
-
innerRadius:
|
|
1680
|
+
cy: o,
|
|
1681
|
+
innerRadius: c,
|
|
1684
1682
|
outerRadius: n,
|
|
1685
|
-
startAngle:
|
|
1686
|
-
endAngle:
|
|
1687
|
-
fill:
|
|
1683
|
+
startAngle: _,
|
|
1684
|
+
endAngle: l,
|
|
1685
|
+
fill: d
|
|
1688
1686
|
}
|
|
1689
1687
|
),
|
|
1690
|
-
/* @__PURE__ */
|
|
1688
|
+
/* @__PURE__ */ a.jsx(
|
|
1691
1689
|
Gt,
|
|
1692
1690
|
{
|
|
1693
1691
|
cx: r,
|
|
1694
|
-
cy:
|
|
1695
|
-
startAngle:
|
|
1696
|
-
endAngle:
|
|
1692
|
+
cy: o,
|
|
1693
|
+
startAngle: _,
|
|
1694
|
+
endAngle: l,
|
|
1697
1695
|
innerRadius: n + 6,
|
|
1698
1696
|
outerRadius: n + 10,
|
|
1699
|
-
fill:
|
|
1697
|
+
fill: d
|
|
1700
1698
|
}
|
|
1701
1699
|
),
|
|
1702
|
-
/* @__PURE__ */
|
|
1700
|
+
/* @__PURE__ */ a.jsx(
|
|
1703
1701
|
"path",
|
|
1704
1702
|
{
|
|
1705
|
-
d: `M${
|
|
1706
|
-
stroke:
|
|
1703
|
+
d: `M${p},${x}L${m},${g}L${C},${j}`,
|
|
1704
|
+
stroke: d,
|
|
1707
1705
|
fill: "none"
|
|
1708
1706
|
}
|
|
1709
1707
|
),
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
/* @__PURE__ */
|
|
1708
|
+
/* @__PURE__ */ a.jsx("circle", { cx: C, cy: j, r: 2, fill: d, stroke: "none" }),
|
|
1709
|
+
/* @__PURE__ */ a.jsx(
|
|
1712
1710
|
"text",
|
|
1713
1711
|
{
|
|
1714
1712
|
x: C + (b >= 0 ? 1 : -1) * 12,
|
|
@@ -1720,7 +1718,7 @@ const js = (t, e) => {
|
|
|
1720
1718
|
children: f
|
|
1721
1719
|
}
|
|
1722
1720
|
),
|
|
1723
|
-
/* @__PURE__ */
|
|
1721
|
+
/* @__PURE__ */ a.jsx(
|
|
1724
1722
|
"text",
|
|
1725
1723
|
{
|
|
1726
1724
|
x: C + (b >= 0 ? 1 : -1) * 12,
|
|
@@ -1734,43 +1732,43 @@ const js = (t, e) => {
|
|
|
1734
1732
|
}
|
|
1735
1733
|
)
|
|
1736
1734
|
] });
|
|
1737
|
-
},
|
|
1735
|
+
}, Ss = (t) => {
|
|
1738
1736
|
const {
|
|
1739
1737
|
data: e,
|
|
1740
1738
|
xKey: s,
|
|
1741
1739
|
yKeys: r,
|
|
1742
|
-
tooltipKey:
|
|
1743
|
-
innerRadius:
|
|
1744
|
-
outerRadius:
|
|
1740
|
+
tooltipKey: o,
|
|
1741
|
+
innerRadius: i = vs,
|
|
1742
|
+
outerRadius: c = Es,
|
|
1745
1743
|
activeShape: n = !0,
|
|
1746
|
-
defaultIndex:
|
|
1747
|
-
showLegend:
|
|
1748
|
-
} = t,
|
|
1749
|
-
return /* @__PURE__ */
|
|
1750
|
-
/* @__PURE__ */
|
|
1744
|
+
defaultIndex: _,
|
|
1745
|
+
showLegend: l = !0
|
|
1746
|
+
} = t, d = r[0];
|
|
1747
|
+
return /* @__PURE__ */ a.jsx($t, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(_e, { children: [
|
|
1748
|
+
/* @__PURE__ */ a.jsx(
|
|
1751
1749
|
W,
|
|
1752
1750
|
{
|
|
1753
|
-
tooltipKey: n ? void 0 :
|
|
1754
|
-
defaultIndex:
|
|
1751
|
+
tooltipKey: n ? void 0 : o,
|
|
1752
|
+
defaultIndex: _,
|
|
1755
1753
|
hideContent: n
|
|
1756
1754
|
}
|
|
1757
1755
|
),
|
|
1758
|
-
|
|
1759
|
-
/* @__PURE__ */
|
|
1756
|
+
l && /* @__PURE__ */ a.jsx(J, {}),
|
|
1757
|
+
/* @__PURE__ */ a.jsx(
|
|
1760
1758
|
ue,
|
|
1761
1759
|
{
|
|
1762
1760
|
data: e,
|
|
1763
|
-
dataKey:
|
|
1761
|
+
dataKey: d,
|
|
1764
1762
|
nameKey: s,
|
|
1765
1763
|
cx: "50%",
|
|
1766
1764
|
cy: "50%",
|
|
1767
|
-
innerRadius:
|
|
1768
|
-
outerRadius:
|
|
1769
|
-
activeShape: n ?
|
|
1770
|
-
children: e.map((u, h) => /* @__PURE__ */
|
|
1765
|
+
innerRadius: i,
|
|
1766
|
+
outerRadius: c,
|
|
1767
|
+
activeShape: n ? ks(s) : void 0,
|
|
1768
|
+
children: e.map((u, h) => /* @__PURE__ */ a.jsx(
|
|
1771
1769
|
he,
|
|
1772
1770
|
{
|
|
1773
|
-
fill:
|
|
1771
|
+
fill: R[h % R.length]
|
|
1774
1772
|
},
|
|
1775
1773
|
`cell-${h}`
|
|
1776
1774
|
))
|
|
@@ -1778,42 +1776,42 @@ const js = (t, e) => {
|
|
|
1778
1776
|
)
|
|
1779
1777
|
] }) });
|
|
1780
1778
|
};
|
|
1781
|
-
function
|
|
1779
|
+
function Ts(t, e, s = je) {
|
|
1782
1780
|
return t <= 0 ? 0 : e <= 0 ? t : Math.max(t, e * s);
|
|
1783
1781
|
}
|
|
1784
|
-
function
|
|
1782
|
+
function As(t, e = Is, s) {
|
|
1785
1783
|
return s !== void 0 ? s : t <= 0 ? nt : Math.max(nt, t * e);
|
|
1786
1784
|
}
|
|
1787
|
-
function
|
|
1785
|
+
function Os(t, e, s) {
|
|
1788
1786
|
if (s !== void 0)
|
|
1789
1787
|
return s;
|
|
1790
|
-
const r = t.reduce((
|
|
1791
|
-
const
|
|
1792
|
-
return Math.max(
|
|
1788
|
+
const r = t.reduce((o, i) => {
|
|
1789
|
+
const c = String(i[e] ?? "");
|
|
1790
|
+
return Math.max(o, c.length);
|
|
1793
1791
|
}, 0);
|
|
1794
1792
|
return Math.max(
|
|
1795
|
-
|
|
1796
|
-
r *
|
|
1793
|
+
Ks,
|
|
1794
|
+
r * Bs
|
|
1797
1795
|
);
|
|
1798
1796
|
}
|
|
1799
|
-
const
|
|
1797
|
+
const $s = (t) => {
|
|
1800
1798
|
const {
|
|
1801
1799
|
data: e,
|
|
1802
1800
|
yKeys: s,
|
|
1803
1801
|
xKey: r,
|
|
1804
|
-
tooltipKey:
|
|
1805
|
-
minCategoryHeight:
|
|
1806
|
-
chartHeight:
|
|
1802
|
+
tooltipKey: o,
|
|
1803
|
+
minCategoryHeight: i,
|
|
1804
|
+
chartHeight: c,
|
|
1807
1805
|
tooltipCoverage: n,
|
|
1808
|
-
showLegend:
|
|
1809
|
-
yKeyLabels:
|
|
1810
|
-
yAxisWidth:
|
|
1811
|
-
} = t, u =
|
|
1806
|
+
showLegend: _ = !0,
|
|
1807
|
+
yKeyLabels: l,
|
|
1808
|
+
yAxisWidth: d
|
|
1809
|
+
} = t, u = As(
|
|
1812
1810
|
e.length,
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
), h =
|
|
1816
|
-
return /* @__PURE__ */
|
|
1811
|
+
i,
|
|
1812
|
+
c
|
|
1813
|
+
), h = Os(e, r, d);
|
|
1814
|
+
return /* @__PURE__ */ a.jsxs(
|
|
1817
1815
|
at,
|
|
1818
1816
|
{
|
|
1819
1817
|
height: u,
|
|
@@ -1821,75 +1819,75 @@ const Os = (t) => {
|
|
|
1821
1819
|
data: e,
|
|
1822
1820
|
Chart: Dt,
|
|
1823
1821
|
children: [
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */
|
|
1826
|
-
/* @__PURE__ */
|
|
1827
|
-
/* @__PURE__ */
|
|
1828
|
-
|
|
1829
|
-
s.map((f, y) => /* @__PURE__ */
|
|
1822
|
+
/* @__PURE__ */ a.jsx(st, { strokeDasharray: "3 3", horizontal: !1 }),
|
|
1823
|
+
/* @__PURE__ */ a.jsx(ot, { type: "number" }),
|
|
1824
|
+
/* @__PURE__ */ a.jsx(Y, { type: "category", dataKey: r, width: h }),
|
|
1825
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o, tooltipCoverage: n }),
|
|
1826
|
+
_ && /* @__PURE__ */ a.jsx(J, {}),
|
|
1827
|
+
s.map((f, y) => /* @__PURE__ */ a.jsx(
|
|
1830
1828
|
pt,
|
|
1831
1829
|
{
|
|
1832
1830
|
dataKey: f,
|
|
1833
|
-
name: (
|
|
1834
|
-
fill:
|
|
1831
|
+
name: (l == null ? void 0 : l[f]) ?? f,
|
|
1832
|
+
fill: R[y % R.length]
|
|
1835
1833
|
},
|
|
1836
1834
|
f
|
|
1837
1835
|
))
|
|
1838
1836
|
]
|
|
1839
1837
|
}
|
|
1840
1838
|
);
|
|
1841
|
-
},
|
|
1842
|
-
const { data: e, xKey: s, yKeys: r, tooltipKey:
|
|
1843
|
-
return /* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
/* @__PURE__ */
|
|
1847
|
-
/* @__PURE__ */
|
|
1848
|
-
/* @__PURE__ */
|
|
1849
|
-
r.map((
|
|
1839
|
+
}, Ds = (t) => {
|
|
1840
|
+
const { data: e, xKey: s, yKeys: r, tooltipKey: o, width: i } = t;
|
|
1841
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: hn, children: [
|
|
1842
|
+
/* @__PURE__ */ a.jsx(st, { strokeDasharray: "3 3" }),
|
|
1843
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: s }),
|
|
1844
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1845
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1846
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
1847
|
+
r.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1850
1848
|
de,
|
|
1851
1849
|
{
|
|
1852
1850
|
type: "monotone",
|
|
1853
|
-
dataKey:
|
|
1854
|
-
stroke:
|
|
1851
|
+
dataKey: c,
|
|
1852
|
+
stroke: R[n % R.length],
|
|
1855
1853
|
strokeWidth: 2,
|
|
1856
1854
|
dot: !1
|
|
1857
1855
|
},
|
|
1858
|
-
|
|
1856
|
+
c
|
|
1859
1857
|
))
|
|
1860
1858
|
] });
|
|
1861
1859
|
};
|
|
1862
|
-
var
|
|
1863
|
-
const
|
|
1864
|
-
const { data: e, xKey: s, series: r = [], tooltipKey:
|
|
1865
|
-
return !r.length &&
|
|
1866
|
-
/* @__PURE__ */
|
|
1867
|
-
/* @__PURE__ */
|
|
1868
|
-
/* @__PURE__ */
|
|
1869
|
-
/* @__PURE__ */
|
|
1870
|
-
/* @__PURE__ */
|
|
1871
|
-
r.map((
|
|
1860
|
+
var Rs = { NODE_ENV: "production" };
|
|
1861
|
+
const qs = (t) => {
|
|
1862
|
+
const { data: e, xKey: s, series: r = [], tooltipKey: o, width: i } = t;
|
|
1863
|
+
return !r.length && Rs.NODE_ENV, /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: Dt, children: [
|
|
1864
|
+
/* @__PURE__ */ a.jsx(st, { strokeDasharray: "3 3" }),
|
|
1865
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: s }),
|
|
1866
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1867
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1868
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
1869
|
+
r.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1872
1870
|
pt,
|
|
1873
1871
|
{
|
|
1874
|
-
dataKey:
|
|
1875
|
-
name:
|
|
1876
|
-
stackId:
|
|
1877
|
-
fill:
|
|
1872
|
+
dataKey: c.key,
|
|
1873
|
+
name: c.label ?? c.key,
|
|
1874
|
+
stackId: c.stackId,
|
|
1875
|
+
fill: c.color ?? R[n % R.length]
|
|
1878
1876
|
},
|
|
1879
|
-
|
|
1877
|
+
c.key
|
|
1880
1878
|
))
|
|
1881
1879
|
] });
|
|
1882
|
-
},
|
|
1883
|
-
const { data: e, xKey: s, yKeys: r, tooltipKey:
|
|
1884
|
-
cx:
|
|
1880
|
+
}, Ls = (t) => {
|
|
1881
|
+
const { data: e, xKey: s, yKeys: r, tooltipKey: o } = t, i = ({
|
|
1882
|
+
cx: c,
|
|
1885
1883
|
cy: n,
|
|
1886
|
-
midAngle:
|
|
1887
|
-
innerRadius:
|
|
1888
|
-
outerRadius:
|
|
1884
|
+
midAngle: _,
|
|
1885
|
+
innerRadius: l,
|
|
1886
|
+
outerRadius: d,
|
|
1889
1887
|
value: u
|
|
1890
1888
|
}) => {
|
|
1891
|
-
const h = Math.PI / 180, f = 25 +
|
|
1892
|
-
return /* @__PURE__ */
|
|
1889
|
+
const h = Math.PI / 180, f = 25 + l + (d - l), y = c + f * Math.cos(-(_ ?? 0) * h), b = n + f * Math.sin(-(_ ?? 0) * h);
|
|
1890
|
+
return /* @__PURE__ */ a.jsx(
|
|
1893
1891
|
"text",
|
|
1894
1892
|
{
|
|
1895
1893
|
x: y,
|
|
@@ -1902,43 +1900,43 @@ const Rs = (t) => {
|
|
|
1902
1900
|
}
|
|
1903
1901
|
);
|
|
1904
1902
|
};
|
|
1905
|
-
return /* @__PURE__ */
|
|
1906
|
-
/* @__PURE__ */
|
|
1907
|
-
/* @__PURE__ */
|
|
1908
|
-
/* @__PURE__ */
|
|
1903
|
+
return /* @__PURE__ */ a.jsx($t, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(_e, { children: [
|
|
1904
|
+
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1905
|
+
/* @__PURE__ */ a.jsx(J, {}),
|
|
1906
|
+
/* @__PURE__ */ a.jsx(
|
|
1909
1907
|
ue,
|
|
1910
1908
|
{
|
|
1911
1909
|
data: e,
|
|
1912
1910
|
dataKey: r[0],
|
|
1913
1911
|
nameKey: s,
|
|
1914
|
-
label:
|
|
1912
|
+
label: i,
|
|
1915
1913
|
outerRadius: 120,
|
|
1916
|
-
children: e.map((
|
|
1914
|
+
children: e.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1917
1915
|
he,
|
|
1918
1916
|
{
|
|
1919
|
-
fill:
|
|
1917
|
+
fill: R[n % R.length]
|
|
1920
1918
|
},
|
|
1921
1919
|
`cell-${n}`
|
|
1922
1920
|
))
|
|
1923
1921
|
}
|
|
1924
1922
|
)
|
|
1925
1923
|
] }) });
|
|
1926
|
-
}, nt = 400, je = 56,
|
|
1924
|
+
}, nt = 400, je = 56, Is = 28, Ks = 100, Bs = 8, Ms = /* @__PURE__ */ new Set([
|
|
1927
1925
|
"bar",
|
|
1928
1926
|
"line",
|
|
1929
1927
|
"area",
|
|
1930
1928
|
"mixBar",
|
|
1931
1929
|
"composed"
|
|
1932
|
-
]),
|
|
1933
|
-
area:
|
|
1934
|
-
bar:
|
|
1935
|
-
composed:
|
|
1936
|
-
donut:
|
|
1937
|
-
horizontalBar:
|
|
1938
|
-
line:
|
|
1939
|
-
mixBar:
|
|
1940
|
-
pie:
|
|
1941
|
-
},
|
|
1930
|
+
]), Gs = {
|
|
1931
|
+
area: bs,
|
|
1932
|
+
bar: js,
|
|
1933
|
+
composed: Ns,
|
|
1934
|
+
donut: Ss,
|
|
1935
|
+
horizontalBar: $s,
|
|
1936
|
+
line: Ds,
|
|
1937
|
+
mixBar: qs,
|
|
1938
|
+
pie: Ls
|
|
1939
|
+
}, R = [
|
|
1942
1940
|
"var(--color-primitive-palette-1-50)",
|
|
1943
1941
|
"var(--color-primitive-palette-2-50)",
|
|
1944
1942
|
"var(--color-primitive-palette-3-50)",
|
|
@@ -1964,130 +1962,130 @@ const Rs = (t) => {
|
|
|
1964
1962
|
tooltipBg: "#fff",
|
|
1965
1963
|
tooltipColor: "#000",
|
|
1966
1964
|
tooltipBorderRadius: "4px"
|
|
1967
|
-
},
|
|
1968
|
-
chartScrollViewport:
|
|
1969
|
-
chartScrollViewport_track:
|
|
1970
|
-
}, Us = "Scrollable chart area",
|
|
1965
|
+
}, Hs = "_chartScrollViewport_sm5hx_1", Vs = "_chartScrollViewport_track_sm5hx_29", Pt = {
|
|
1966
|
+
chartScrollViewport: Hs,
|
|
1967
|
+
chartScrollViewport_track: Vs
|
|
1968
|
+
}, Us = "Scrollable chart area", zs = ({
|
|
1971
1969
|
dataLength: t,
|
|
1972
1970
|
minCategoryWidth: e,
|
|
1973
1971
|
children: s
|
|
1974
1972
|
}) => {
|
|
1975
|
-
const r = ut(null), [
|
|
1973
|
+
const r = ut(null), [o, i] = q(0), c = e ?? je;
|
|
1976
1974
|
U(() => {
|
|
1977
|
-
const
|
|
1978
|
-
if (!
|
|
1975
|
+
const d = r.current;
|
|
1976
|
+
if (!d)
|
|
1979
1977
|
return;
|
|
1980
1978
|
const u = () => {
|
|
1981
|
-
|
|
1979
|
+
i(d.clientWidth);
|
|
1982
1980
|
};
|
|
1983
1981
|
u();
|
|
1984
1982
|
const h = new ResizeObserver(u);
|
|
1985
|
-
return h.observe(
|
|
1983
|
+
return h.observe(d), () => h.disconnect();
|
|
1986
1984
|
}, []);
|
|
1987
|
-
const n =
|
|
1988
|
-
|
|
1985
|
+
const n = Ts(
|
|
1986
|
+
o,
|
|
1989
1987
|
t,
|
|
1990
|
-
|
|
1991
|
-
),
|
|
1992
|
-
(
|
|
1988
|
+
c
|
|
1989
|
+
), _ = o > 0 && n > o, l = L(
|
|
1990
|
+
(d) => {
|
|
1993
1991
|
const u = r.current;
|
|
1994
1992
|
if (u)
|
|
1995
|
-
switch (
|
|
1993
|
+
switch (d.key) {
|
|
1996
1994
|
case "ArrowLeft":
|
|
1997
|
-
u.scrollLeft -=
|
|
1995
|
+
u.scrollLeft -= c, d.preventDefault();
|
|
1998
1996
|
break;
|
|
1999
1997
|
case "ArrowRight":
|
|
2000
|
-
u.scrollLeft +=
|
|
1998
|
+
u.scrollLeft += c, d.preventDefault();
|
|
2001
1999
|
break;
|
|
2002
2000
|
case "Home":
|
|
2003
|
-
u.scrollLeft = 0,
|
|
2001
|
+
u.scrollLeft = 0, d.preventDefault();
|
|
2004
2002
|
break;
|
|
2005
2003
|
case "End":
|
|
2006
|
-
u.scrollLeft = u.scrollWidth - u.clientWidth,
|
|
2004
|
+
u.scrollLeft = u.scrollWidth - u.clientWidth, d.preventDefault();
|
|
2007
2005
|
break;
|
|
2008
2006
|
}
|
|
2009
2007
|
},
|
|
2010
|
-
[
|
|
2008
|
+
[c]
|
|
2011
2009
|
);
|
|
2012
|
-
return /* @__PURE__ */
|
|
2010
|
+
return /* @__PURE__ */ a.jsx(
|
|
2013
2011
|
"div",
|
|
2014
2012
|
{
|
|
2015
2013
|
ref: r,
|
|
2016
2014
|
className: Pt.chartScrollViewport,
|
|
2017
|
-
role:
|
|
2018
|
-
tabIndex:
|
|
2019
|
-
"aria-label":
|
|
2020
|
-
onKeyDown:
|
|
2021
|
-
children: /* @__PURE__ */
|
|
2015
|
+
role: _ ? "region" : void 0,
|
|
2016
|
+
tabIndex: _ ? 0 : void 0,
|
|
2017
|
+
"aria-label": _ ? Us : void 0,
|
|
2018
|
+
onKeyDown: _ ? l : void 0,
|
|
2019
|
+
children: /* @__PURE__ */ a.jsx(
|
|
2022
2020
|
"div",
|
|
2023
2021
|
{
|
|
2024
2022
|
className: Pt.chartScrollViewport_track,
|
|
2025
2023
|
style: { width: n, height: nt },
|
|
2026
|
-
children:
|
|
2024
|
+
children: o > 0 ? s(n) : null
|
|
2027
2025
|
}
|
|
2028
2026
|
)
|
|
2029
2027
|
}
|
|
2030
2028
|
);
|
|
2031
|
-
},
|
|
2032
|
-
const { component: e, userFlow: s, hash: r, responseKey:
|
|
2033
|
-
var
|
|
2029
|
+
}, Xs = (t) => {
|
|
2030
|
+
const { component: e, userFlow: s, hash: r, responseKey: o, dataSource: i, ...c } = t, n = Gs[c.type], { fetchDataSource: _ } = H(), [l, d] = q(!1), [u, h] = q([]), f = async () => {
|
|
2031
|
+
var p, x;
|
|
2034
2032
|
try {
|
|
2035
|
-
|
|
2036
|
-
const { jsonPathData: m, mapperData:
|
|
2037
|
-
|
|
2033
|
+
d(!0);
|
|
2034
|
+
const { jsonPathData: m, mapperData: g } = i, C = Kt(
|
|
2035
|
+
i,
|
|
2038
2036
|
1
|
|
2039
|
-
), j = await
|
|
2037
|
+
), j = await _(
|
|
2040
2038
|
C,
|
|
2041
2039
|
s,
|
|
2042
2040
|
!1
|
|
2043
|
-
), w = m ? (
|
|
2044
|
-
h(w),
|
|
2041
|
+
), w = m ? (p = pe(j == null ? void 0 : j.data, m, g)) == null ? void 0 : p.items : (x = j == null ? void 0 : j.data) == null ? void 0 : x.data;
|
|
2042
|
+
h(w), d(!1);
|
|
2045
2043
|
} catch (m) {
|
|
2046
|
-
alert(JSON.stringify(m)),
|
|
2044
|
+
alert(JSON.stringify(m)), d(!1);
|
|
2047
2045
|
}
|
|
2048
2046
|
};
|
|
2049
2047
|
if (U(() => {
|
|
2050
|
-
n && (
|
|
2048
|
+
n && (i ? f() : h(c.data));
|
|
2051
2049
|
}, []), !n)
|
|
2052
|
-
return /* @__PURE__ */
|
|
2050
|
+
return /* @__PURE__ */ a.jsx("div", { children: "Not supported chart type" });
|
|
2053
2051
|
const y = {
|
|
2054
|
-
...
|
|
2052
|
+
...c,
|
|
2055
2053
|
data: u
|
|
2056
2054
|
};
|
|
2057
|
-
return
|
|
2058
|
-
|
|
2055
|
+
return l ? /* @__PURE__ */ a.jsx(oe, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Ms.has(c.type) ? /* @__PURE__ */ a.jsx(
|
|
2056
|
+
zs,
|
|
2059
2057
|
{
|
|
2060
2058
|
dataLength: u.length,
|
|
2061
|
-
minCategoryWidth:
|
|
2062
|
-
children: (
|
|
2059
|
+
minCategoryWidth: c.minCategoryWidth,
|
|
2060
|
+
children: (p) => /* @__PURE__ */ a.jsx(n, { ...y, width: p })
|
|
2063
2061
|
}
|
|
2064
|
-
) : /* @__PURE__ */
|
|
2065
|
-
},
|
|
2062
|
+
) : /* @__PURE__ */ a.jsx(n, { ...y });
|
|
2063
|
+
}, Js = (t) => {
|
|
2066
2064
|
const {
|
|
2067
2065
|
userFlow: e,
|
|
2068
2066
|
pageId: s,
|
|
2069
2067
|
responseKey: r,
|
|
2070
|
-
actionType:
|
|
2071
|
-
label:
|
|
2072
|
-
value:
|
|
2068
|
+
actionType: o,
|
|
2069
|
+
label: i,
|
|
2070
|
+
value: c,
|
|
2073
2071
|
required: n,
|
|
2074
|
-
dependencies:
|
|
2075
|
-
...
|
|
2076
|
-
} = t,
|
|
2077
|
-
...
|
|
2078
|
-
}, { getNextUI: u } = H(), [h, f] =
|
|
2072
|
+
dependencies: _,
|
|
2073
|
+
...l
|
|
2074
|
+
} = t, d = {
|
|
2075
|
+
...l
|
|
2076
|
+
}, { getNextUI: u } = H(), [h, f] = q(c || !1), { disabled: y } = B(
|
|
2079
2077
|
e,
|
|
2080
|
-
|
|
2081
|
-
), b = D(() => n &&
|
|
2078
|
+
_
|
|
2079
|
+
), b = D(() => n && i ? `${i} *` : i ?? "", [i, n]), p = L(async () => {
|
|
2082
2080
|
var m;
|
|
2083
2081
|
try {
|
|
2084
|
-
const
|
|
2085
|
-
f(
|
|
2082
|
+
const g = !h;
|
|
2083
|
+
f(g);
|
|
2086
2084
|
const C = {
|
|
2087
2085
|
...(m = v.getState()[e]) == null ? void 0 : m.entries,
|
|
2088
|
-
[r]:
|
|
2086
|
+
[r]: g
|
|
2089
2087
|
};
|
|
2090
|
-
switch (
|
|
2088
|
+
switch (I(e, C), o) {
|
|
2091
2089
|
case "GO_TO_NEXT_UI":
|
|
2092
2090
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2093
2091
|
const w = await u(
|
|
@@ -2095,7 +2093,7 @@ const Rs = (t) => {
|
|
|
2095
2093
|
s,
|
|
2096
2094
|
C,
|
|
2097
2095
|
r,
|
|
2098
|
-
|
|
2096
|
+
o === "GO_TO_NEXT_UI"
|
|
2099
2097
|
);
|
|
2100
2098
|
w != null && w.data && K(e, w == null ? void 0 : w.data);
|
|
2101
2099
|
break;
|
|
@@ -2103,81 +2101,81 @@ const Rs = (t) => {
|
|
|
2103
2101
|
default:
|
|
2104
2102
|
break;
|
|
2105
2103
|
}
|
|
2106
|
-
} catch (
|
|
2107
|
-
console.error("Error in checkbox action:",
|
|
2104
|
+
} catch (g) {
|
|
2105
|
+
console.error("Error in checkbox action:", g), alert(JSON.stringify(g));
|
|
2108
2106
|
}
|
|
2109
|
-
}, [e, s, r,
|
|
2110
|
-
return /* @__PURE__ */
|
|
2111
|
-
|
|
2107
|
+
}, [e, s, r, o, h]), x = (d == null ? void 0 : d.disabled) ?? y;
|
|
2108
|
+
return /* @__PURE__ */ a.jsx(
|
|
2109
|
+
Me,
|
|
2112
2110
|
{
|
|
2113
|
-
...
|
|
2111
|
+
...d,
|
|
2114
2112
|
labelRight: b,
|
|
2115
2113
|
checked: h,
|
|
2116
2114
|
disabled: x,
|
|
2117
2115
|
onChange: () => {
|
|
2118
|
-
!x &&
|
|
2116
|
+
!x && p();
|
|
2119
2117
|
}
|
|
2120
2118
|
}
|
|
2121
2119
|
);
|
|
2122
|
-
},
|
|
2123
|
-
codeEditor:
|
|
2124
|
-
codeEditor_label:
|
|
2125
|
-
codeEditor_wrapper:
|
|
2126
|
-
input:
|
|
2127
|
-
preview:
|
|
2128
|
-
preview_inner:
|
|
2129
|
-
},
|
|
2120
|
+
}, Ws = "_codeEditor_1wi2p_1", Ys = "_codeEditor_label_1wi2p_4", Qs = "_codeEditor_wrapper_1wi2p_13", Zs = "_input_1wi2p_17", Fs = "_preview_1wi2p_18", Ps = "_preview_inner_1wi2p_33", tt = {
|
|
2121
|
+
codeEditor: Ws,
|
|
2122
|
+
codeEditor_label: Ys,
|
|
2123
|
+
codeEditor_wrapper: Qs,
|
|
2124
|
+
input: Zs,
|
|
2125
|
+
preview: Fs,
|
|
2126
|
+
preview_inner: Ps
|
|
2127
|
+
}, tr = (t) => {
|
|
2130
2128
|
const {
|
|
2131
2129
|
userFlow: e,
|
|
2132
2130
|
responseKey: s,
|
|
2133
2131
|
label: r,
|
|
2134
|
-
language:
|
|
2135
|
-
placeholder:
|
|
2136
|
-
value:
|
|
2132
|
+
language: o,
|
|
2133
|
+
placeholder: i,
|
|
2134
|
+
value: c,
|
|
2137
2135
|
required: n,
|
|
2138
|
-
dependencies:
|
|
2139
|
-
disabled:
|
|
2140
|
-
showPreview:
|
|
2136
|
+
dependencies: _,
|
|
2137
|
+
disabled: l,
|
|
2138
|
+
showPreview: d,
|
|
2141
2139
|
height: u = "400px"
|
|
2142
|
-
} = t, [h, f] =
|
|
2140
|
+
} = t, [h, f] = q(c ?? ""), y = ht.useThemeStore((C) => C.theme.mode), { disabled: b } = B(
|
|
2143
2141
|
e,
|
|
2144
|
-
|
|
2145
|
-
),
|
|
2142
|
+
_
|
|
2143
|
+
), p = l ?? b, x = {
|
|
2146
2144
|
json: Ht(),
|
|
2147
|
-
markdown:
|
|
2148
|
-
sql:
|
|
2149
|
-
yaml:
|
|
2150
|
-
}, m = D(() => n && r ? `${r} *` : r ?? "", [r, n]),
|
|
2145
|
+
markdown: xn(),
|
|
2146
|
+
sql: yn(),
|
|
2147
|
+
yaml: mn()
|
|
2148
|
+
}, m = D(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (C) => {
|
|
2151
2149
|
f(C);
|
|
2152
2150
|
const j = {
|
|
2153
2151
|
[s]: C
|
|
2154
2152
|
};
|
|
2155
|
-
|
|
2153
|
+
I(e, j);
|
|
2156
2154
|
};
|
|
2157
|
-
return /* @__PURE__ */
|
|
2158
|
-
m && m !== "" && /* @__PURE__ */
|
|
2159
|
-
/* @__PURE__ */
|
|
2160
|
-
/* @__PURE__ */
|
|
2161
|
-
|
|
2155
|
+
return /* @__PURE__ */ a.jsxs("div", { className: tt.codeEditor, children: [
|
|
2156
|
+
m && m !== "" && /* @__PURE__ */ a.jsx("label", { className: tt.codeEditor_label, children: m }),
|
|
2157
|
+
/* @__PURE__ */ a.jsxs("div", { className: tt.codeEditor_wrapper, children: [
|
|
2158
|
+
/* @__PURE__ */ a.jsx(
|
|
2159
|
+
fn,
|
|
2162
2160
|
{
|
|
2163
2161
|
className: tt.input,
|
|
2164
2162
|
value: h,
|
|
2165
2163
|
height: u,
|
|
2166
|
-
placeholder:
|
|
2167
|
-
extensions: [x[
|
|
2168
|
-
onChange: (C) =>
|
|
2164
|
+
placeholder: i,
|
|
2165
|
+
extensions: [x[o] ?? Ht()],
|
|
2166
|
+
onChange: (C) => g(C),
|
|
2169
2167
|
theme: y,
|
|
2170
|
-
editable: !
|
|
2168
|
+
editable: !p
|
|
2171
2169
|
}
|
|
2172
2170
|
),
|
|
2173
|
-
|
|
2171
|
+
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ a.jsx(ce, { className: tt.preview_inner, children: h }) })
|
|
2174
2172
|
] })
|
|
2175
2173
|
] });
|
|
2176
|
-
},
|
|
2177
|
-
slotStack:
|
|
2174
|
+
}, er = "_slotStack_6n2wy_5", nr = {
|
|
2175
|
+
slotStack: er
|
|
2178
2176
|
};
|
|
2179
|
-
var
|
|
2180
|
-
const
|
|
2177
|
+
var sr = { NODE_ENV: "production" };
|
|
2178
|
+
const rr = /* @__PURE__ */ new Set([
|
|
2181
2179
|
"accordion",
|
|
2182
2180
|
"button",
|
|
2183
2181
|
"cardAccordion",
|
|
@@ -2196,62 +2194,62 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2196
2194
|
"textarea"
|
|
2197
2195
|
]), Ot = (t, e) => {
|
|
2198
2196
|
if (t != null && t.length)
|
|
2199
|
-
return /* @__PURE__ */
|
|
2200
|
-
var
|
|
2201
|
-
return /* @__PURE__ */
|
|
2197
|
+
return /* @__PURE__ */ a.jsx("div", { className: nr.slotStack, children: t.map((s, r) => {
|
|
2198
|
+
var o;
|
|
2199
|
+
return /* @__PURE__ */ a.jsx(A, { children: s }, ((o = e == null ? void 0 : e[r]) == null ? void 0 : o.hash) ?? r);
|
|
2202
2200
|
}) });
|
|
2203
|
-
},
|
|
2201
|
+
}, ar = ({
|
|
2204
2202
|
userFlow: t,
|
|
2205
2203
|
pageId: e,
|
|
2206
2204
|
component: s,
|
|
2207
2205
|
hash: r,
|
|
2208
|
-
responseKey:
|
|
2209
|
-
content:
|
|
2210
|
-
topContent:
|
|
2206
|
+
responseKey: o,
|
|
2207
|
+
content: i,
|
|
2208
|
+
topContent: c,
|
|
2211
2209
|
icon: n,
|
|
2212
|
-
headerStatusColor:
|
|
2213
|
-
...
|
|
2210
|
+
headerStatusColor: _,
|
|
2211
|
+
...l
|
|
2214
2212
|
}) => {
|
|
2215
|
-
const
|
|
2213
|
+
const d = _ ? `palette_${_}_50` : void 0, u = E(
|
|
2216
2214
|
t,
|
|
2217
2215
|
e,
|
|
2218
|
-
|
|
2216
|
+
i != null && i.length ? i : null
|
|
2219
2217
|
), h = E(
|
|
2220
2218
|
t,
|
|
2221
2219
|
e,
|
|
2222
|
-
|
|
2220
|
+
c != null && c.length ? c : null
|
|
2223
2221
|
);
|
|
2224
|
-
return /* @__PURE__ */
|
|
2222
|
+
return /* @__PURE__ */ a.jsx(
|
|
2225
2223
|
ie,
|
|
2226
2224
|
{
|
|
2227
|
-
...
|
|
2225
|
+
...l,
|
|
2228
2226
|
icon: n,
|
|
2229
|
-
headerStatusColor:
|
|
2230
|
-
topContent: Ot(h,
|
|
2231
|
-
children: Ot(u,
|
|
2227
|
+
headerStatusColor: d,
|
|
2228
|
+
topContent: Ot(h, c),
|
|
2229
|
+
children: Ot(u, i)
|
|
2232
2230
|
}
|
|
2233
2231
|
);
|
|
2234
|
-
},
|
|
2232
|
+
}, or = ({
|
|
2235
2233
|
userFlow: t,
|
|
2236
2234
|
pageId: e,
|
|
2237
2235
|
responseKey: s,
|
|
2238
2236
|
actionType: r,
|
|
2239
|
-
dataSource:
|
|
2240
|
-
redirectUrl:
|
|
2241
|
-
dependencies:
|
|
2237
|
+
dataSource: o,
|
|
2238
|
+
redirectUrl: i,
|
|
2239
|
+
dependencies: c,
|
|
2242
2240
|
content: n,
|
|
2243
|
-
icon:
|
|
2244
|
-
ariaLabel:
|
|
2245
|
-
description:
|
|
2241
|
+
icon: _,
|
|
2242
|
+
ariaLabel: l,
|
|
2243
|
+
description: d,
|
|
2246
2244
|
descriptionBottom: u,
|
|
2247
2245
|
disabled: h,
|
|
2248
2246
|
status: f,
|
|
2249
2247
|
headerStyle: y,
|
|
2250
2248
|
showBorder: b,
|
|
2251
|
-
borderColor:
|
|
2249
|
+
borderColor: p,
|
|
2252
2250
|
title: x,
|
|
2253
2251
|
descriptionTop: m,
|
|
2254
|
-
pillLabel:
|
|
2252
|
+
pillLabel: g
|
|
2255
2253
|
}) => {
|
|
2256
2254
|
const C = E(
|
|
2257
2255
|
t,
|
|
@@ -2259,87 +2257,87 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2259
2257
|
n != null && n.length ? n : null
|
|
2260
2258
|
), j = xt(t, e), { disabled: w } = B(
|
|
2261
2259
|
t,
|
|
2262
|
-
|
|
2260
|
+
c
|
|
2263
2261
|
), N = r ? () => void j({
|
|
2264
2262
|
responseKey: s,
|
|
2265
2263
|
actionType: r,
|
|
2266
|
-
dataSource:
|
|
2267
|
-
redirectUrl:
|
|
2268
|
-
dependencies:
|
|
2264
|
+
dataSource: o,
|
|
2265
|
+
redirectUrl: i,
|
|
2266
|
+
dependencies: c
|
|
2269
2267
|
}) : void 0, k = h ?? w;
|
|
2270
|
-
N && (n != null && n.some(($) =>
|
|
2268
|
+
N && (n != null && n.some(($) => rr.has($.component))) && sr.NODE_ENV;
|
|
2271
2269
|
const O = N ? { onClick: N, disabled: k } : {};
|
|
2272
|
-
return /* @__PURE__ */
|
|
2270
|
+
return /* @__PURE__ */ a.jsx(
|
|
2273
2271
|
ie,
|
|
2274
2272
|
{
|
|
2275
2273
|
version: "v2",
|
|
2276
2274
|
status: f,
|
|
2277
2275
|
headerStyle: y,
|
|
2278
2276
|
showBorder: b,
|
|
2279
|
-
borderColor:
|
|
2277
|
+
borderColor: p,
|
|
2280
2278
|
title: x,
|
|
2281
|
-
ariaLabel:
|
|
2279
|
+
ariaLabel: l,
|
|
2282
2280
|
descriptionTop: m,
|
|
2283
|
-
descriptionBottom: u ??
|
|
2284
|
-
pillLabel:
|
|
2285
|
-
icon:
|
|
2281
|
+
descriptionBottom: u ?? d,
|
|
2282
|
+
pillLabel: g,
|
|
2283
|
+
icon: _,
|
|
2286
2284
|
...O,
|
|
2287
2285
|
children: Ot(C, n)
|
|
2288
2286
|
}
|
|
2289
2287
|
);
|
|
2290
|
-
},
|
|
2291
|
-
dividerNotFront:
|
|
2292
|
-
},
|
|
2293
|
-
drawer:
|
|
2294
|
-
drawerBody:
|
|
2295
|
-
drawerFooter:
|
|
2296
|
-
},
|
|
2288
|
+
}, cr = (t) => t.version === "v2" ? /* @__PURE__ */ a.jsx(or, { ...t }) : /* @__PURE__ */ a.jsx(ar, { ...t }), ir = "_dividerNotFront_tze3j_1", lr = {
|
|
2289
|
+
dividerNotFront: ir
|
|
2290
|
+
}, dr = (t) => /* @__PURE__ */ a.jsx(Ge, { ...t, className: lr.dividerNotFront }), _r = "_drawer_13pxo_1", ur = "_drawerBody_13pxo_5", hr = "_drawerFooter_13pxo_11", kt = {
|
|
2291
|
+
drawer: _r,
|
|
2292
|
+
drawerBody: ur,
|
|
2293
|
+
drawerFooter: hr
|
|
2294
|
+
}, fr = ({
|
|
2297
2295
|
userFlow: t,
|
|
2298
2296
|
pageId: e,
|
|
2299
2297
|
responseKey: s,
|
|
2300
2298
|
header: r,
|
|
2301
|
-
body:
|
|
2302
|
-
footer:
|
|
2303
|
-
...
|
|
2299
|
+
body: o,
|
|
2300
|
+
footer: i,
|
|
2301
|
+
...c
|
|
2304
2302
|
}) => {
|
|
2305
|
-
const n = v((
|
|
2303
|
+
const n = v((p) => {
|
|
2306
2304
|
var x;
|
|
2307
|
-
return (x =
|
|
2308
|
-
}),
|
|
2305
|
+
return (x = p[t]) == null ? void 0 : x.isDrawerOpen;
|
|
2306
|
+
}), _ = v((p) => {
|
|
2309
2307
|
var x;
|
|
2310
|
-
return (x =
|
|
2311
|
-
}),
|
|
2312
|
-
...
|
|
2313
|
-
isOpen:
|
|
2308
|
+
return (x = p[t]) == null ? void 0 : x.isLoading;
|
|
2309
|
+
}), l = n && !_, d = {
|
|
2310
|
+
...c,
|
|
2311
|
+
isOpen: l,
|
|
2314
2312
|
children: null
|
|
2315
|
-
}, u =
|
|
2313
|
+
}, u = L(() => {
|
|
2316
2314
|
Lt(t), _t(t, !1);
|
|
2317
|
-
}, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */
|
|
2318
|
-
return /* @__PURE__ */
|
|
2319
|
-
|
|
2315
|
+
}, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */ a.jsx(re, { type: "h2", children: r }) : void 0, f = E(t, e, o), y = i ? E(t, e, i) : void 0;
|
|
2316
|
+
return /* @__PURE__ */ a.jsx(
|
|
2317
|
+
He,
|
|
2320
2318
|
{
|
|
2321
|
-
...
|
|
2319
|
+
...d,
|
|
2322
2320
|
className: kt.drawer,
|
|
2323
|
-
isOpen:
|
|
2321
|
+
isOpen: l,
|
|
2324
2322
|
onClose: u,
|
|
2325
2323
|
heightGap: 50,
|
|
2326
|
-
title: h ? /* @__PURE__ */
|
|
2327
|
-
children: /* @__PURE__ */
|
|
2328
|
-
footer: y ? /* @__PURE__ */
|
|
2324
|
+
title: h ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Array.isArray(h) ? h.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `drawer-header-${x}`)) : h }) : void 0,
|
|
2325
|
+
children: /* @__PURE__ */ a.jsx("section", { className: kt.drawerBody, children: f.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `drawer-body-${x}`)) }),
|
|
2326
|
+
footer: y ? /* @__PURE__ */ a.jsx("div", { className: kt.drawerFooter, children: y.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `drawer-footer-${x}`)) }) : void 0
|
|
2329
2327
|
}
|
|
2330
2328
|
);
|
|
2331
|
-
},
|
|
2329
|
+
}, xr = (t) => {
|
|
2332
2330
|
const {
|
|
2333
2331
|
userFlow: e,
|
|
2334
2332
|
pageId: s,
|
|
2335
2333
|
component: r,
|
|
2336
|
-
hash:
|
|
2337
|
-
responseKey:
|
|
2338
|
-
content:
|
|
2334
|
+
hash: o,
|
|
2335
|
+
responseKey: i,
|
|
2336
|
+
content: c,
|
|
2339
2337
|
items: n,
|
|
2340
|
-
disabled:
|
|
2341
|
-
variant:
|
|
2342
|
-
leftIcon:
|
|
2338
|
+
disabled: _,
|
|
2339
|
+
variant: l,
|
|
2340
|
+
leftIcon: d,
|
|
2343
2341
|
rightIcon: u
|
|
2344
2342
|
} = t, h = xt(e, s), f = D(
|
|
2345
2343
|
() => n.map((y) => ({
|
|
@@ -2356,24 +2354,24 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2356
2354
|
})),
|
|
2357
2355
|
[n, h]
|
|
2358
2356
|
);
|
|
2359
|
-
return /* @__PURE__ */
|
|
2360
|
-
|
|
2357
|
+
return /* @__PURE__ */ a.jsx(
|
|
2358
|
+
Ve,
|
|
2361
2359
|
{
|
|
2362
|
-
disabled:
|
|
2363
|
-
variant:
|
|
2360
|
+
disabled: _,
|
|
2361
|
+
variant: l,
|
|
2364
2362
|
items: f,
|
|
2365
|
-
children: /* @__PURE__ */
|
|
2366
|
-
|
|
2367
|
-
|
|
2363
|
+
children: /* @__PURE__ */ a.jsxs(A, { children: [
|
|
2364
|
+
d ? /* @__PURE__ */ a.jsx(
|
|
2365
|
+
Vt,
|
|
2368
2366
|
{
|
|
2369
|
-
name:
|
|
2367
|
+
name: d,
|
|
2370
2368
|
size: "md",
|
|
2371
2369
|
style: { marginRight: 8, verticalAlign: "middle" }
|
|
2372
2370
|
}
|
|
2373
2371
|
) : null,
|
|
2374
|
-
|
|
2375
|
-
u ? /* @__PURE__ */
|
|
2376
|
-
|
|
2372
|
+
c,
|
|
2373
|
+
u ? /* @__PURE__ */ a.jsx(
|
|
2374
|
+
Vt,
|
|
2377
2375
|
{
|
|
2378
2376
|
name: u,
|
|
2379
2377
|
size: "md",
|
|
@@ -2383,91 +2381,91 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2383
2381
|
] })
|
|
2384
2382
|
}
|
|
2385
2383
|
);
|
|
2386
|
-
},
|
|
2387
|
-
header:
|
|
2388
|
-
header_content:
|
|
2389
|
-
},
|
|
2384
|
+
}, yr = "_header_g1eri_1", mr = "_header_content_g1eri_5", te = {
|
|
2385
|
+
header: yr,
|
|
2386
|
+
header_content: mr
|
|
2387
|
+
}, gr = ({ components: t = [] }) => /* @__PURE__ */ a.jsx("section", { className: et(te.header, "avocado-dark-theme"), children: /* @__PURE__ */ a.jsx("div", { className: te.header_content, children: t.map((e, s) => /* @__PURE__ */ a.jsx(A, { children: e }, s)) }) }), pr = (t) => {
|
|
2390
2388
|
const {
|
|
2391
2389
|
userFlow: e,
|
|
2392
2390
|
pageId: s,
|
|
2393
2391
|
responseKey: r,
|
|
2394
|
-
actionType:
|
|
2395
|
-
content:
|
|
2396
|
-
redirectUrl:
|
|
2392
|
+
actionType: o,
|
|
2393
|
+
content: i,
|
|
2394
|
+
redirectUrl: c,
|
|
2397
2395
|
target: n,
|
|
2398
|
-
dependencies:
|
|
2399
|
-
component:
|
|
2400
|
-
hash:
|
|
2396
|
+
dependencies: _,
|
|
2397
|
+
component: l,
|
|
2398
|
+
hash: d,
|
|
2401
2399
|
...u
|
|
2402
2400
|
} = t, { getNextUI: h } = H(), { disabled: f } = B(
|
|
2403
2401
|
e,
|
|
2404
|
-
|
|
2405
|
-
), y =
|
|
2406
|
-
const { href: x, target: m, download:
|
|
2402
|
+
_
|
|
2403
|
+
), y = o && u ? (() => {
|
|
2404
|
+
const { href: x, target: m, download: g, ...C } = u;
|
|
2407
2405
|
return C;
|
|
2408
|
-
})() : u, b =
|
|
2406
|
+
})() : u, b = L(async () => {
|
|
2409
2407
|
var x;
|
|
2410
|
-
if (
|
|
2408
|
+
if (o)
|
|
2411
2409
|
try {
|
|
2412
2410
|
const m = {
|
|
2413
2411
|
...(x = v.getState()[e]) == null ? void 0 : x.entries,
|
|
2414
2412
|
[r]: { status: 200 }
|
|
2415
2413
|
};
|
|
2416
|
-
switch (
|
|
2414
|
+
switch (I(e, m), o) {
|
|
2417
2415
|
case "GO_TO_NEXT_UI": {
|
|
2418
|
-
const
|
|
2416
|
+
const g = await h(
|
|
2419
2417
|
e,
|
|
2420
2418
|
s,
|
|
2421
2419
|
m,
|
|
2422
2420
|
r
|
|
2423
2421
|
);
|
|
2424
|
-
|
|
2422
|
+
g != null && g.data && K(e, g == null ? void 0 : g.data);
|
|
2425
2423
|
break;
|
|
2426
2424
|
}
|
|
2427
2425
|
case "REDIRECT":
|
|
2428
|
-
if (!
|
|
2426
|
+
if (!c) {
|
|
2429
2427
|
console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
2430
2428
|
break;
|
|
2431
2429
|
}
|
|
2432
|
-
n === "_blank" ? window.open(
|
|
2430
|
+
n === "_blank" ? window.open(c, "_blank", "noopener,noreferrer") : window.location.assign(c);
|
|
2433
2431
|
break;
|
|
2434
2432
|
default:
|
|
2435
|
-
console.warn(`Unhandled actionType for link: ${
|
|
2433
|
+
console.warn(`Unhandled actionType for link: ${o}`);
|
|
2436
2434
|
break;
|
|
2437
2435
|
}
|
|
2438
2436
|
} catch (m) {
|
|
2439
2437
|
alert(JSON.stringify(m));
|
|
2440
2438
|
}
|
|
2441
|
-
}, [
|
|
2442
|
-
return /* @__PURE__ */
|
|
2439
|
+
}, [o, h, s, c, r, n, e]), p = y.disabled ?? f;
|
|
2440
|
+
return /* @__PURE__ */ a.jsx(
|
|
2443
2441
|
Ue,
|
|
2444
2442
|
{
|
|
2445
2443
|
...y,
|
|
2446
|
-
disabled:
|
|
2447
|
-
onClick:
|
|
2448
|
-
children:
|
|
2444
|
+
disabled: p,
|
|
2445
|
+
onClick: o ? b : void 0,
|
|
2446
|
+
children: i
|
|
2449
2447
|
}
|
|
2450
2448
|
);
|
|
2451
|
-
},
|
|
2449
|
+
}, br = (t) => {
|
|
2452
2450
|
const {
|
|
2453
2451
|
userFlow: e,
|
|
2454
2452
|
pageId: s,
|
|
2455
2453
|
component: r,
|
|
2456
|
-
hash:
|
|
2457
|
-
responseKey:
|
|
2458
|
-
items:
|
|
2454
|
+
hash: o,
|
|
2455
|
+
responseKey: i,
|
|
2456
|
+
items: c,
|
|
2459
2457
|
closeOnClick: n,
|
|
2460
|
-
disabled:
|
|
2461
|
-
listOrigin:
|
|
2462
|
-
size:
|
|
2458
|
+
disabled: _,
|
|
2459
|
+
listOrigin: l,
|
|
2460
|
+
size: d,
|
|
2463
2461
|
variant: u
|
|
2464
2462
|
} = t, h = xt(e, s), f = D(
|
|
2465
|
-
() =>
|
|
2463
|
+
() => c.map((y) => ({
|
|
2466
2464
|
icon: y.leftIcon,
|
|
2467
2465
|
label: y.content ?? y.label ?? "",
|
|
2468
2466
|
onClick: (b) => {
|
|
2469
|
-
var
|
|
2470
|
-
(
|
|
2467
|
+
var p;
|
|
2468
|
+
(p = b == null ? void 0 : b.preventDefault) == null || p.call(b), h({
|
|
2471
2469
|
responseKey: y.responseKey,
|
|
2472
2470
|
actionType: y.actionType,
|
|
2473
2471
|
dataSource: y.dataSource,
|
|
@@ -2476,73 +2474,73 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2476
2474
|
});
|
|
2477
2475
|
}
|
|
2478
2476
|
})),
|
|
2479
|
-
[
|
|
2477
|
+
[c, h]
|
|
2480
2478
|
);
|
|
2481
|
-
return /* @__PURE__ */
|
|
2482
|
-
|
|
2479
|
+
return /* @__PURE__ */ a.jsx(
|
|
2480
|
+
ze,
|
|
2483
2481
|
{
|
|
2484
2482
|
items: f,
|
|
2485
2483
|
closeOnClick: n,
|
|
2486
|
-
disabled:
|
|
2487
|
-
listOrigin:
|
|
2488
|
-
size:
|
|
2484
|
+
disabled: _,
|
|
2485
|
+
listOrigin: l,
|
|
2486
|
+
size: d,
|
|
2489
2487
|
variant: u
|
|
2490
2488
|
}
|
|
2491
2489
|
);
|
|
2492
|
-
},
|
|
2493
|
-
modalContent:
|
|
2494
|
-
},
|
|
2490
|
+
}, jr = "_modalContent_p06ci_1", Cr = {
|
|
2491
|
+
modalContent: jr
|
|
2492
|
+
}, wr = ({
|
|
2495
2493
|
userFlow: t,
|
|
2496
2494
|
pageId: e,
|
|
2497
2495
|
responseKey: s,
|
|
2498
2496
|
header: r,
|
|
2499
|
-
body:
|
|
2500
|
-
footer:
|
|
2501
|
-
headerStatusColor:
|
|
2497
|
+
body: o,
|
|
2498
|
+
footer: i,
|
|
2499
|
+
headerStatusColor: c,
|
|
2502
2500
|
...n
|
|
2503
2501
|
}) => {
|
|
2504
|
-
const
|
|
2502
|
+
const _ = v((x) => {
|
|
2505
2503
|
var m;
|
|
2506
2504
|
return (m = x[t]) == null ? void 0 : m.isModalOpen;
|
|
2507
|
-
}),
|
|
2505
|
+
}), l = v((x) => {
|
|
2508
2506
|
var m;
|
|
2509
2507
|
return (m = x[t]) == null ? void 0 : m.isLoading;
|
|
2510
|
-
}),
|
|
2508
|
+
}), d = _ && !l, u = {
|
|
2511
2509
|
...n
|
|
2512
|
-
}, h = (u == null ? void 0 : u.headerStatusColor) ??
|
|
2510
|
+
}, h = (u == null ? void 0 : u.headerStatusColor) ?? c, f = L(() => {
|
|
2513
2511
|
Lt(t), It(t, !1);
|
|
2514
|
-
}, [t, s]), y = Array.isArray(r) ? E(t, e, r) : r, b = E(t, e,
|
|
2515
|
-
return /* @__PURE__ */
|
|
2516
|
-
|
|
2512
|
+
}, [t, s]), y = Array.isArray(r) ? E(t, e, r) : r, b = E(t, e, o), p = E(t, e, i);
|
|
2513
|
+
return /* @__PURE__ */ a.jsx(
|
|
2514
|
+
Xe,
|
|
2517
2515
|
{
|
|
2518
2516
|
...u,
|
|
2519
2517
|
headerStatusColor: h,
|
|
2520
|
-
header: typeof y == "string" ? y : /* @__PURE__ */
|
|
2521
|
-
children: /* @__PURE__ */
|
|
2522
|
-
actions: /* @__PURE__ */
|
|
2523
|
-
open:
|
|
2518
|
+
header: typeof y == "string" ? y : /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-header-${m}`)) }),
|
|
2519
|
+
children: /* @__PURE__ */ a.jsx("section", { className: Cr.modalContent, children: b.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-body-${m}`)) }),
|
|
2520
|
+
actions: /* @__PURE__ */ a.jsx(a.Fragment, { children: p.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-footer-${m}`)) }),
|
|
2521
|
+
open: d,
|
|
2524
2522
|
onClose: f
|
|
2525
2523
|
}
|
|
2526
2524
|
);
|
|
2527
|
-
},
|
|
2528
|
-
var
|
|
2529
|
-
const s =
|
|
2525
|
+
}, Nr = ({ userFlow: t, pageId: e }) => {
|
|
2526
|
+
var i, c;
|
|
2527
|
+
const s = jn(t);
|
|
2530
2528
|
if (!s)
|
|
2531
2529
|
return null;
|
|
2532
2530
|
const r = [
|
|
2533
2531
|
...(s == null ? void 0 : s.components) || [],
|
|
2534
|
-
...((
|
|
2535
|
-
...((
|
|
2536
|
-
],
|
|
2532
|
+
...((i = s == null ? void 0 : s.header) == null ? void 0 : i.components) || [],
|
|
2533
|
+
...((c = s == null ? void 0 : s.body) == null ? void 0 : c.components) || []
|
|
2534
|
+
], o = E(
|
|
2537
2535
|
t,
|
|
2538
2536
|
e,
|
|
2539
2537
|
r
|
|
2540
2538
|
);
|
|
2541
|
-
return /* @__PURE__ */
|
|
2542
|
-
const
|
|
2543
|
-
return /* @__PURE__ */
|
|
2539
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: o == null ? void 0 : o.map((n, _) => {
|
|
2540
|
+
const l = `overlay-${_}-${s == null ? void 0 : s.hash}`;
|
|
2541
|
+
return /* @__PURE__ */ a.jsx(A, { children: n }, l);
|
|
2544
2542
|
}) });
|
|
2545
|
-
},
|
|
2543
|
+
}, vr = [
|
|
2546
2544
|
"success",
|
|
2547
2545
|
"warning",
|
|
2548
2546
|
"error",
|
|
@@ -2574,65 +2572,65 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2574
2572
|
textColor: "neutral-70",
|
|
2575
2573
|
iconColor: "neutral-70"
|
|
2576
2574
|
}
|
|
2577
|
-
},
|
|
2575
|
+
}, Er = (t) => typeof t == "string" && vr.includes(t), kr = (t) => t != null && t.length ? t.length === 2 && Er(t[1]) ? [{ label: String(t[0]), variant: t[1] }] : t.map((e) => ({
|
|
2578
2576
|
label: String(e),
|
|
2579
2577
|
variant: "neutral"
|
|
2580
|
-
})) : [],
|
|
2581
|
-
const { content: e, variant: s = "neutral", ...r } = t,
|
|
2578
|
+
})) : [], Sr = (t) => {
|
|
2579
|
+
const { content: e, variant: s = "neutral", ...r } = t, o = Ce[s], i = {
|
|
2582
2580
|
...r,
|
|
2583
2581
|
children: e,
|
|
2584
|
-
color: (r == null ? void 0 : r.color) ??
|
|
2585
|
-
textColor: (r == null ? void 0 : r.textColor) ??
|
|
2586
|
-
iconColor: (r == null ? void 0 : r.iconColor) ??
|
|
2582
|
+
color: (r == null ? void 0 : r.color) ?? o.color,
|
|
2583
|
+
textColor: (r == null ? void 0 : r.textColor) ?? o.textColor,
|
|
2584
|
+
iconColor: (r == null ? void 0 : r.iconColor) ?? o.iconColor
|
|
2587
2585
|
};
|
|
2588
|
-
return /* @__PURE__ */
|
|
2589
|
-
}, Sr = (t) => {
|
|
2590
|
-
const { content: e } = t;
|
|
2591
|
-
return /* @__PURE__ */ o.jsx(ce, { children: e });
|
|
2586
|
+
return /* @__PURE__ */ a.jsx(St, { ...i });
|
|
2592
2587
|
}, Tr = (t) => {
|
|
2588
|
+
const { content: e } = t;
|
|
2589
|
+
return /* @__PURE__ */ a.jsx(ce, { children: e });
|
|
2590
|
+
}, Ar = (t) => {
|
|
2593
2591
|
const {
|
|
2594
2592
|
userFlow: e,
|
|
2595
2593
|
pageId: s,
|
|
2596
2594
|
responseKey: r,
|
|
2597
|
-
actionType:
|
|
2598
|
-
dataSource:
|
|
2599
|
-
dependencies:
|
|
2595
|
+
actionType: o,
|
|
2596
|
+
dataSource: i,
|
|
2597
|
+
dependencies: c,
|
|
2600
2598
|
onClick: n,
|
|
2601
|
-
...
|
|
2602
|
-
} = t,
|
|
2599
|
+
..._
|
|
2600
|
+
} = t, l = xt(e, s), { disabled: d } = B(
|
|
2603
2601
|
e,
|
|
2604
|
-
|
|
2602
|
+
c
|
|
2605
2603
|
), u = {
|
|
2606
|
-
...
|
|
2607
|
-
}, h = (u == null ? void 0 : u.disabled) ??
|
|
2604
|
+
..._
|
|
2605
|
+
}, h = (u == null ? void 0 : u.disabled) ?? d, [f, y] = q(!1), b = ut(!1), p = L(async () => {
|
|
2608
2606
|
if (b.current)
|
|
2609
2607
|
return;
|
|
2610
|
-
const x =
|
|
2608
|
+
const x = o === "FETCH_DATA_SOURCE";
|
|
2611
2609
|
x && (b.current = !0, y(!0));
|
|
2612
2610
|
try {
|
|
2613
|
-
await
|
|
2611
|
+
await l({
|
|
2614
2612
|
responseKey: r,
|
|
2615
|
-
actionType:
|
|
2616
|
-
dataSource:
|
|
2617
|
-
dependencies:
|
|
2613
|
+
actionType: o,
|
|
2614
|
+
dataSource: i,
|
|
2615
|
+
dependencies: c
|
|
2618
2616
|
});
|
|
2619
2617
|
} catch (m) {
|
|
2620
2618
|
console.error("[RoundButtonNotFront] Action failed:", m);
|
|
2621
2619
|
} finally {
|
|
2622
2620
|
x && (b.current = !1, y(!1));
|
|
2623
2621
|
}
|
|
2624
|
-
}, [
|
|
2625
|
-
return /* @__PURE__ */
|
|
2626
|
-
|
|
2622
|
+
}, [o, i, c, r, l]);
|
|
2623
|
+
return /* @__PURE__ */ a.jsx(
|
|
2624
|
+
Je,
|
|
2627
2625
|
{
|
|
2628
2626
|
...u,
|
|
2629
2627
|
loading: u.loading || f,
|
|
2630
2628
|
disabled: h,
|
|
2631
|
-
onClick: () => !h && !f && (n ??
|
|
2629
|
+
onClick: () => !h && !f && (n ?? p)()
|
|
2632
2630
|
}
|
|
2633
2631
|
);
|
|
2634
|
-
},
|
|
2635
|
-
row:
|
|
2632
|
+
}, Or = "_row_1bqj4_1", $r = "_row_column_1bqj4_65", z = {
|
|
2633
|
+
row: Or,
|
|
2636
2634
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
2637
2635
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
2638
2636
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -2653,7 +2651,7 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2653
2651
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
2654
2652
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
2655
2653
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
2656
|
-
row_column:
|
|
2654
|
+
row_column: $r,
|
|
2657
2655
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
2658
2656
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
2659
2657
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -2674,27 +2672,27 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2674
2672
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
2675
2673
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
2676
2674
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
2677
|
-
},
|
|
2675
|
+
}, Dr = (t) => {
|
|
2678
2676
|
const {
|
|
2679
2677
|
userFlow: e,
|
|
2680
2678
|
pageId: s,
|
|
2681
2679
|
columnWidth: r,
|
|
2682
|
-
columns:
|
|
2683
|
-
gap:
|
|
2684
|
-
justifyContent:
|
|
2680
|
+
columns: o,
|
|
2681
|
+
gap: i = "md",
|
|
2682
|
+
justifyContent: c = "start",
|
|
2685
2683
|
alignItems: n = "stretch"
|
|
2686
|
-
} = t,
|
|
2687
|
-
const u = `col_${
|
|
2688
|
-
if (Array.isArray(
|
|
2684
|
+
} = t, _ = Array.isArray(o) ? o.map((l, d) => {
|
|
2685
|
+
const u = `col_${d}`, h = `col_${d}`;
|
|
2686
|
+
if (Array.isArray(l))
|
|
2689
2687
|
return {
|
|
2690
2688
|
gap: "md",
|
|
2691
2689
|
justifyContent: "start",
|
|
2692
2690
|
alignItems: "start",
|
|
2693
|
-
items:
|
|
2691
|
+
items: l,
|
|
2694
2692
|
hash: u,
|
|
2695
2693
|
responseKey: h
|
|
2696
2694
|
};
|
|
2697
|
-
const f =
|
|
2695
|
+
const f = l;
|
|
2698
2696
|
return {
|
|
2699
2697
|
gap: (f == null ? void 0 : f.gap) ?? "md",
|
|
2700
2698
|
justifyContent: (f == null ? void 0 : f.justifyContent) ?? "start",
|
|
@@ -2704,30 +2702,30 @@ const sr = /* @__PURE__ */ new Set([
|
|
|
2704
2702
|
responseKey: (f == null ? void 0 : f.responseKey) ?? h
|
|
2705
2703
|
};
|
|
2706
2704
|
}) : [];
|
|
2707
|
-
return
|
|
2705
|
+
return _.length === 0 ? null : /* @__PURE__ */ a.jsx(
|
|
2708
2706
|
"div",
|
|
2709
2707
|
{
|
|
2710
2708
|
className: et(
|
|
2711
2709
|
z.row,
|
|
2712
|
-
z[`row__gap-${
|
|
2713
|
-
z[`row__justify-${
|
|
2710
|
+
z[`row__gap-${i}`],
|
|
2711
|
+
z[`row__justify-${c}`],
|
|
2714
2712
|
z[`row__align-${n}`]
|
|
2715
2713
|
),
|
|
2716
|
-
children:
|
|
2717
|
-
const u = (r == null ? void 0 : r[
|
|
2718
|
-
return !h || h.length === 0 ? null : /* @__PURE__ */
|
|
2714
|
+
children: _ == null ? void 0 : _.map((l, d) => {
|
|
2715
|
+
const u = (r == null ? void 0 : r[d]) || `${100 / _.length}%`, h = E(e, s, l.items);
|
|
2716
|
+
return !h || h.length === 0 ? null : /* @__PURE__ */ a.jsx(
|
|
2719
2717
|
"div",
|
|
2720
2718
|
{
|
|
2721
2719
|
className: et(
|
|
2722
2720
|
z.row_column,
|
|
2723
|
-
z[`row_column__gap-${
|
|
2724
|
-
z[`row_column__justify-${
|
|
2725
|
-
z[`row_column__align-${
|
|
2721
|
+
z[`row_column__gap-${l.gap}`],
|
|
2722
|
+
z[`row_column__justify-${l.justifyContent}`],
|
|
2723
|
+
z[`row_column__align-${l.alignItems}`]
|
|
2726
2724
|
),
|
|
2727
2725
|
style: { width: u },
|
|
2728
2726
|
children: h
|
|
2729
2727
|
},
|
|
2730
|
-
|
|
2728
|
+
l.hash || d
|
|
2731
2729
|
);
|
|
2732
2730
|
})
|
|
2733
2731
|
}
|
|
@@ -2738,23 +2736,23 @@ function we({
|
|
|
2738
2736
|
pageId: e,
|
|
2739
2737
|
responseKey: s,
|
|
2740
2738
|
actionType: r,
|
|
2741
|
-
getNextUI:
|
|
2742
|
-
isMulti:
|
|
2743
|
-
debounceMs:
|
|
2739
|
+
getNextUI: o,
|
|
2740
|
+
isMulti: i = !1,
|
|
2741
|
+
debounceMs: c
|
|
2744
2742
|
}) {
|
|
2745
2743
|
const n = ut(null);
|
|
2746
2744
|
U(() => () => {
|
|
2747
2745
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
2748
2746
|
}, []);
|
|
2749
|
-
const
|
|
2750
|
-
async (
|
|
2747
|
+
const _ = L(
|
|
2748
|
+
async (d) => {
|
|
2751
2749
|
var f;
|
|
2752
2750
|
const u = {
|
|
2753
2751
|
...(f = v.getState()[t]) == null ? void 0 : f.entries
|
|
2754
2752
|
};
|
|
2755
|
-
if (
|
|
2753
|
+
if (d ? (u[s] = d, I(t, u)) : (delete u[s], Cn(t, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2756
2754
|
try {
|
|
2757
|
-
const b = await
|
|
2755
|
+
const b = await o(
|
|
2758
2756
|
t,
|
|
2759
2757
|
e,
|
|
2760
2758
|
u,
|
|
@@ -2766,75 +2764,75 @@ function we({
|
|
|
2766
2764
|
console.error("[useSelectChange] Failed to fetch next UI", y);
|
|
2767
2765
|
}
|
|
2768
2766
|
},
|
|
2769
|
-
[t, e, s, r,
|
|
2767
|
+
[t, e, s, r, o]
|
|
2770
2768
|
);
|
|
2771
|
-
return
|
|
2772
|
-
(
|
|
2773
|
-
if (!
|
|
2774
|
-
d
|
|
2769
|
+
return L(
|
|
2770
|
+
(d) => {
|
|
2771
|
+
if (!i) {
|
|
2772
|
+
_(d);
|
|
2775
2773
|
return;
|
|
2776
2774
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
d
|
|
2775
|
+
if (c == null) {
|
|
2776
|
+
_(d);
|
|
2779
2777
|
return;
|
|
2780
2778
|
}
|
|
2781
2779
|
n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
|
|
2782
|
-
d
|
|
2783
|
-
},
|
|
2780
|
+
_(d), n.current = null;
|
|
2781
|
+
}, c);
|
|
2784
2782
|
},
|
|
2785
|
-
[
|
|
2783
|
+
[i, c, _]
|
|
2786
2784
|
);
|
|
2787
2785
|
}
|
|
2788
|
-
const
|
|
2786
|
+
const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
2789
2787
|
var s;
|
|
2790
|
-
return e.includes("{") ? e.replace(
|
|
2791
|
-
var
|
|
2792
|
-
const
|
|
2793
|
-
return
|
|
2788
|
+
return e.includes("{") ? e.replace(Rr, (r, o) => {
|
|
2789
|
+
var c;
|
|
2790
|
+
const i = (c = M.query(t, o.trim())) == null ? void 0 : c[0];
|
|
2791
|
+
return i != null ? String(i) : "";
|
|
2794
2792
|
}) : (s = M.query(t, e)) == null ? void 0 : s[0];
|
|
2795
|
-
},
|
|
2796
|
-
const
|
|
2797
|
-
return (
|
|
2798
|
-
var
|
|
2799
|
-
const
|
|
2800
|
-
return { label:
|
|
2793
|
+
}, Lr = (t, e, s, r) => {
|
|
2794
|
+
const o = M.query(t, e);
|
|
2795
|
+
return (o == null ? void 0 : o.map((i) => {
|
|
2796
|
+
var _;
|
|
2797
|
+
const c = qr(i, s), n = r ? (_ = M.query(i, r)) == null ? void 0 : _[0] : i;
|
|
2798
|
+
return { label: c, value: n };
|
|
2801
2799
|
})) ?? [];
|
|
2802
|
-
},
|
|
2803
|
-
var n,
|
|
2804
|
-
let
|
|
2800
|
+
}, Ir = (t, e, s, r = 10) => {
|
|
2801
|
+
var n, _;
|
|
2802
|
+
let o, i;
|
|
2805
2803
|
if (s) {
|
|
2806
|
-
const
|
|
2807
|
-
|
|
2804
|
+
const l = M.value(t, s.size ?? "$.meta.size") ?? r, d = M.value(t, s.total ?? "$.meta.total") ?? 0;
|
|
2805
|
+
o = l, i = d;
|
|
2808
2806
|
} else {
|
|
2809
|
-
const
|
|
2810
|
-
|
|
2807
|
+
const l = t == null ? void 0 : t.meta;
|
|
2808
|
+
o = (l == null ? void 0 : l.size) ?? ((n = l == null ? void 0 : l.page) == null ? void 0 : n.size) ?? r, i = (l == null ? void 0 : l.total) ?? ((_ = l == null ? void 0 : l.page) == null ? void 0 : _.total) ?? 0;
|
|
2811
2809
|
}
|
|
2812
|
-
const
|
|
2810
|
+
const c = i > 0 ? Math.ceil(i / o) > e : !1;
|
|
2813
2811
|
return {
|
|
2814
|
-
pageSize:
|
|
2815
|
-
total:
|
|
2816
|
-
hasMore:
|
|
2812
|
+
pageSize: o,
|
|
2813
|
+
total: i,
|
|
2814
|
+
hasMore: c
|
|
2817
2815
|
};
|
|
2818
|
-
},
|
|
2819
|
-
selectNotFront:
|
|
2820
|
-
},
|
|
2816
|
+
}, Kr = "_selectNotFront_ch3v5_1", Ne = {
|
|
2817
|
+
selectNotFront: Kr
|
|
2818
|
+
}, Br = ({
|
|
2821
2819
|
userFlow: t,
|
|
2822
2820
|
pageId: e,
|
|
2823
2821
|
responseKey: s,
|
|
2824
2822
|
required: r,
|
|
2825
|
-
dataSource:
|
|
2826
|
-
actionType:
|
|
2827
|
-
dependencies:
|
|
2823
|
+
dataSource: o,
|
|
2824
|
+
actionType: i,
|
|
2825
|
+
dependencies: c,
|
|
2828
2826
|
debounceMs: n,
|
|
2829
|
-
...
|
|
2827
|
+
..._
|
|
2830
2828
|
}) => {
|
|
2831
|
-
const
|
|
2832
|
-
...
|
|
2833
|
-
}, { getNextUI:
|
|
2829
|
+
const l = {
|
|
2830
|
+
..._
|
|
2831
|
+
}, { getNextUI: d, fetchDataSource: u } = H(), [h, f] = q((l == null ? void 0 : l.value) ?? ""), { disabled: y } = B(
|
|
2834
2832
|
t,
|
|
2835
|
-
|
|
2836
|
-
), b = (
|
|
2837
|
-
const j =
|
|
2833
|
+
c
|
|
2834
|
+
), b = (l == null ? void 0 : l.disabled) ?? y, p = D(() => r && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, r]), x = D(() => {
|
|
2835
|
+
const j = l != null && l.isMulti ? h : [h], w = {};
|
|
2838
2836
|
return Array.isArray(j) && j.forEach((N) => {
|
|
2839
2837
|
if (!N) return;
|
|
2840
2838
|
const k = JSON.stringify(N.value), O = JSON.stringify(N.label);
|
|
@@ -2844,11 +2842,11 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2844
2842
|
userFlow: t,
|
|
2845
2843
|
pageId: e,
|
|
2846
2844
|
responseKey: s,
|
|
2847
|
-
actionType:
|
|
2848
|
-
getNextUI:
|
|
2849
|
-
isMulti:
|
|
2845
|
+
actionType: i,
|
|
2846
|
+
getNextUI: d,
|
|
2847
|
+
isMulti: l == null ? void 0 : l.isMulti,
|
|
2850
2848
|
debounceMs: n
|
|
2851
|
-
}),
|
|
2849
|
+
}), g = (j) => {
|
|
2852
2850
|
f(j), m(j);
|
|
2853
2851
|
}, C = async (j, w, { page: N }) => {
|
|
2854
2852
|
const {
|
|
@@ -2856,20 +2854,20 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2856
2854
|
jsonPathOptions: O,
|
|
2857
2855
|
jsonPathValue: $,
|
|
2858
2856
|
jsonPathPagination: Q
|
|
2859
|
-
} =
|
|
2860
|
-
|
|
2857
|
+
} = o, V = Kt(
|
|
2858
|
+
o,
|
|
2861
2859
|
N,
|
|
2862
2860
|
j
|
|
2863
2861
|
), S = await u(
|
|
2864
2862
|
V,
|
|
2865
2863
|
t,
|
|
2866
2864
|
!1
|
|
2867
|
-
), G = S == null ? void 0 : S.data, ct = G ?
|
|
2865
|
+
), G = S == null ? void 0 : S.data, ct = G ? Lr(
|
|
2868
2866
|
G,
|
|
2869
2867
|
O,
|
|
2870
2868
|
k,
|
|
2871
2869
|
$
|
|
2872
|
-
) : [], { hasMore: bt } =
|
|
2870
|
+
) : [], { hasMore: bt } = Ir(
|
|
2873
2871
|
G,
|
|
2874
2872
|
N,
|
|
2875
2873
|
Q
|
|
@@ -2882,16 +2880,16 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2882
2880
|
}
|
|
2883
2881
|
};
|
|
2884
2882
|
};
|
|
2885
|
-
return /* @__PURE__ */
|
|
2886
|
-
|
|
2883
|
+
return /* @__PURE__ */ a.jsx(
|
|
2884
|
+
We,
|
|
2887
2885
|
{
|
|
2888
|
-
...
|
|
2886
|
+
...l,
|
|
2889
2887
|
className: Ne.selectNotFront,
|
|
2890
|
-
label:
|
|
2888
|
+
label: p,
|
|
2891
2889
|
value: h,
|
|
2892
2890
|
disabled: b,
|
|
2893
|
-
noOptionsMessage: () => /* @__PURE__ */
|
|
2894
|
-
onChange: (j) => !b &&
|
|
2891
|
+
noOptionsMessage: () => /* @__PURE__ */ a.jsx(a.Fragment, { children: "Sin opciones" }),
|
|
2892
|
+
onChange: (j) => !b && g(j),
|
|
2895
2893
|
loadOptions: C,
|
|
2896
2894
|
additional: { page: 1 },
|
|
2897
2895
|
isOptionDisabled: (j) => {
|
|
@@ -2901,37 +2899,37 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2901
2899
|
debounceTimeout: 350
|
|
2902
2900
|
}
|
|
2903
2901
|
);
|
|
2904
|
-
},
|
|
2902
|
+
}, Mr = ({
|
|
2905
2903
|
userFlow: t,
|
|
2906
2904
|
pageId: e,
|
|
2907
2905
|
responseKey: s,
|
|
2908
2906
|
dataSource: r,
|
|
2909
|
-
required:
|
|
2910
|
-
actionType:
|
|
2911
|
-
dependencies:
|
|
2907
|
+
required: o,
|
|
2908
|
+
actionType: i,
|
|
2909
|
+
dependencies: c,
|
|
2912
2910
|
debounceMs: n,
|
|
2913
|
-
...
|
|
2911
|
+
..._
|
|
2914
2912
|
}) => {
|
|
2915
|
-
const
|
|
2916
|
-
...
|
|
2917
|
-
}, { getNextUI:
|
|
2913
|
+
const l = {
|
|
2914
|
+
..._
|
|
2915
|
+
}, { getNextUI: d } = H(), [u, h] = q(l.value || ""), { disabled: f } = B(
|
|
2918
2916
|
t,
|
|
2919
|
-
|
|
2920
|
-
), y = (
|
|
2917
|
+
c
|
|
2918
|
+
), y = (l == null ? void 0 : l.disabled) ?? f, b = D(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), p = we({
|
|
2921
2919
|
userFlow: t,
|
|
2922
2920
|
pageId: e,
|
|
2923
2921
|
responseKey: s,
|
|
2924
|
-
actionType:
|
|
2925
|
-
getNextUI:
|
|
2926
|
-
isMulti:
|
|
2922
|
+
actionType: i,
|
|
2923
|
+
getNextUI: d,
|
|
2924
|
+
isMulti: l == null ? void 0 : l.isMulti,
|
|
2927
2925
|
debounceMs: n
|
|
2928
2926
|
}), x = (m) => {
|
|
2929
|
-
h(m),
|
|
2927
|
+
h(m), p(m);
|
|
2930
2928
|
};
|
|
2931
|
-
return /* @__PURE__ */
|
|
2932
|
-
|
|
2929
|
+
return /* @__PURE__ */ a.jsx(
|
|
2930
|
+
Ye,
|
|
2933
2931
|
{
|
|
2934
|
-
...
|
|
2932
|
+
...l,
|
|
2935
2933
|
className: Ne.selectNotFront,
|
|
2936
2934
|
label: b,
|
|
2937
2935
|
value: u,
|
|
@@ -2939,48 +2937,48 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2939
2937
|
onChange: (m) => !y && x(m)
|
|
2940
2938
|
}
|
|
2941
2939
|
);
|
|
2942
|
-
},
|
|
2940
|
+
}, Gr = (t) => {
|
|
2943
2941
|
const { dataSource: e } = t;
|
|
2944
|
-
return e ? /* @__PURE__ */
|
|
2945
|
-
},
|
|
2946
|
-
spacing:
|
|
2947
|
-
spacing__xxs:
|
|
2942
|
+
return e ? /* @__PURE__ */ a.jsx(Br, { ...t }) : /* @__PURE__ */ a.jsx(Mr, { ...t });
|
|
2943
|
+
}, Hr = "_spacing_19hqa_1", Vr = "_spacing__xxs_19hqa_1", Ur = "_spacing__xs_19hqa_4", zr = "_spacing__sm_19hqa_7", Xr = "_spacing__md_19hqa_10", Jr = "_spacing__lg_19hqa_13", Wr = "_spacing__xl_19hqa_16", Yr = "_spacing__xxl_19hqa_19", Qr = "_spacing__xxxl_19hqa_22", ee = {
|
|
2944
|
+
spacing: Hr,
|
|
2945
|
+
spacing__xxs: Vr,
|
|
2948
2946
|
spacing__xs: Ur,
|
|
2949
|
-
spacing__sm:
|
|
2950
|
-
spacing__md:
|
|
2951
|
-
spacing__lg:
|
|
2952
|
-
spacing__xl:
|
|
2953
|
-
spacing__xxl:
|
|
2954
|
-
spacing__xxxl:
|
|
2955
|
-
}, Qr = (t) => {
|
|
2956
|
-
const { size: e } = t, s = et(ee.spacing, ee[`spacing__${e}`]);
|
|
2957
|
-
return /* @__PURE__ */ o.jsx("div", { className: s });
|
|
2947
|
+
spacing__sm: zr,
|
|
2948
|
+
spacing__md: Xr,
|
|
2949
|
+
spacing__lg: Jr,
|
|
2950
|
+
spacing__xl: Wr,
|
|
2951
|
+
spacing__xxl: Yr,
|
|
2952
|
+
spacing__xxxl: Qr
|
|
2958
2953
|
}, Zr = (t) => {
|
|
2954
|
+
const { size: e } = t, s = et(ee.spacing, ee[`spacing__${e}`]);
|
|
2955
|
+
return /* @__PURE__ */ a.jsx("div", { className: s });
|
|
2956
|
+
}, Fr = (t) => {
|
|
2959
2957
|
const {
|
|
2960
2958
|
userFlow: e,
|
|
2961
2959
|
pageId: s,
|
|
2962
2960
|
responseKey: r,
|
|
2963
|
-
actionType:
|
|
2964
|
-
label:
|
|
2965
|
-
value:
|
|
2961
|
+
actionType: o,
|
|
2962
|
+
label: i,
|
|
2963
|
+
value: c,
|
|
2966
2964
|
required: n,
|
|
2967
|
-
dependencies:
|
|
2968
|
-
...
|
|
2969
|
-
} = t,
|
|
2970
|
-
...
|
|
2971
|
-
}, { getNextUI: u } = H(), [h, f] =
|
|
2965
|
+
dependencies: _,
|
|
2966
|
+
...l
|
|
2967
|
+
} = t, d = {
|
|
2968
|
+
...l
|
|
2969
|
+
}, { getNextUI: u } = H(), [h, f] = q(c || !1), { disabled: y } = B(
|
|
2972
2970
|
e,
|
|
2973
|
-
|
|
2974
|
-
), b = (
|
|
2971
|
+
_
|
|
2972
|
+
), b = (d == null ? void 0 : d.disabled) ?? y, p = D(() => n && i ? `${i} *` : i ?? "", [i, n]), x = L(async () => {
|
|
2975
2973
|
var m;
|
|
2976
2974
|
try {
|
|
2977
|
-
const
|
|
2978
|
-
f(
|
|
2975
|
+
const g = !h;
|
|
2976
|
+
f(g);
|
|
2979
2977
|
const C = {
|
|
2980
2978
|
...(m = v.getState()[e]) == null ? void 0 : m.entries,
|
|
2981
|
-
[r]:
|
|
2979
|
+
[r]: g
|
|
2982
2980
|
};
|
|
2983
|
-
switch (
|
|
2981
|
+
switch (I(e, C), o) {
|
|
2984
2982
|
case "GO_TO_NEXT_UI":
|
|
2985
2983
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2986
2984
|
const w = await u(
|
|
@@ -2988,7 +2986,7 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2988
2986
|
s,
|
|
2989
2987
|
C,
|
|
2990
2988
|
r,
|
|
2991
|
-
|
|
2989
|
+
o === "GO_TO_NEXT_UI"
|
|
2992
2990
|
);
|
|
2993
2991
|
w != null && w.data && K(e, w == null ? void 0 : w.data);
|
|
2994
2992
|
break;
|
|
@@ -2996,70 +2994,70 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
2996
2994
|
default:
|
|
2997
2995
|
break;
|
|
2998
2996
|
}
|
|
2999
|
-
} catch (
|
|
3000
|
-
console.error("Error in switch action:",
|
|
2997
|
+
} catch (g) {
|
|
2998
|
+
console.error("Error in switch action:", g), alert(JSON.stringify(g));
|
|
3001
2999
|
}
|
|
3002
|
-
}, [e, s, r,
|
|
3003
|
-
return /* @__PURE__ */
|
|
3004
|
-
|
|
3000
|
+
}, [e, s, r, o, h]);
|
|
3001
|
+
return /* @__PURE__ */ a.jsx(
|
|
3002
|
+
Qe,
|
|
3005
3003
|
{
|
|
3006
|
-
...
|
|
3007
|
-
label:
|
|
3004
|
+
...d,
|
|
3005
|
+
label: p,
|
|
3008
3006
|
checked: h,
|
|
3009
3007
|
disabled: b,
|
|
3010
3008
|
onChange: () => !b && x()
|
|
3011
3009
|
}
|
|
3012
3010
|
);
|
|
3013
|
-
},
|
|
3014
|
-
tableSkeleton:
|
|
3015
|
-
tableArrayPills:
|
|
3016
|
-
},
|
|
3017
|
-
const s =
|
|
3018
|
-
return /* @__PURE__ */
|
|
3019
|
-
r.map((
|
|
3020
|
-
const n = Ce[
|
|
3021
|
-
return /* @__PURE__ */
|
|
3011
|
+
}, Pr = "_tableSkeleton_3nr9n_1", ta = "_tableArrayPills_3nr9n_7", ve = {
|
|
3012
|
+
tableSkeleton: Pr,
|
|
3013
|
+
tableArrayPills: ta
|
|
3014
|
+
}, ea = ({ values: t }) => {
|
|
3015
|
+
const s = kr(t ?? []), r = s.slice(0, 4), o = s.length - 4;
|
|
3016
|
+
return /* @__PURE__ */ a.jsxs("div", { className: ve.tableArrayPills, children: [
|
|
3017
|
+
r.map((i, c) => {
|
|
3018
|
+
const n = Ce[i.variant];
|
|
3019
|
+
return /* @__PURE__ */ a.jsx(
|
|
3022
3020
|
St,
|
|
3023
3021
|
{
|
|
3024
3022
|
color: n.color,
|
|
3025
3023
|
textColor: n.textColor,
|
|
3026
3024
|
iconColor: n.iconColor,
|
|
3027
|
-
children:
|
|
3025
|
+
children: i.label
|
|
3028
3026
|
},
|
|
3029
|
-
`${
|
|
3027
|
+
`${i.label}-${i.variant}-${c}`
|
|
3030
3028
|
);
|
|
3031
3029
|
}),
|
|
3032
|
-
|
|
3030
|
+
o > 0 && /* @__PURE__ */ a.jsxs(St, { outlined: !0, children: [
|
|
3033
3031
|
"+",
|
|
3034
|
-
|
|
3032
|
+
o
|
|
3035
3033
|
] })
|
|
3036
3034
|
] });
|
|
3037
|
-
},
|
|
3035
|
+
}, na = ({
|
|
3038
3036
|
userFlow: t,
|
|
3039
3037
|
pageId: e,
|
|
3040
3038
|
tableResponseKey: s,
|
|
3041
3039
|
component: r,
|
|
3042
|
-
rowData:
|
|
3040
|
+
rowData: o
|
|
3043
3041
|
}) => {
|
|
3044
|
-
const { getNextUI:
|
|
3042
|
+
const { getNextUI: i, fetchAndGetNextUI: c, fetchDataSource: n } = H(), _ = E(t, e, [
|
|
3045
3043
|
{ ...r }
|
|
3046
|
-
]),
|
|
3047
|
-
if (!
|
|
3044
|
+
]), l = (_ == null ? void 0 : _[0]) || null;
|
|
3045
|
+
if (!l) return null;
|
|
3048
3046
|
const {
|
|
3049
|
-
actionType:
|
|
3047
|
+
actionType: d,
|
|
3050
3048
|
responseKey: u,
|
|
3051
3049
|
dataSource: h
|
|
3052
|
-
} =
|
|
3053
|
-
var y, b,
|
|
3050
|
+
} = l.props, f = L(async () => {
|
|
3051
|
+
var y, b, p;
|
|
3054
3052
|
try {
|
|
3055
3053
|
const x = {
|
|
3056
3054
|
...(y = v.getState()[t]) == null ? void 0 : y.entries,
|
|
3057
3055
|
[u]: { status: 200 },
|
|
3058
|
-
[s]: [{ ...
|
|
3056
|
+
[s]: [{ ...o }]
|
|
3059
3057
|
};
|
|
3060
|
-
switch (
|
|
3058
|
+
switch (I(t, x), d) {
|
|
3061
3059
|
case "GO_TO_NEXT_UI": {
|
|
3062
|
-
const m = await
|
|
3060
|
+
const m = await i(
|
|
3063
3061
|
t,
|
|
3064
3062
|
e,
|
|
3065
3063
|
x,
|
|
@@ -3069,7 +3067,7 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3069
3067
|
break;
|
|
3070
3068
|
}
|
|
3071
3069
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
3072
|
-
const m = await
|
|
3070
|
+
const m = await c(
|
|
3073
3071
|
t,
|
|
3074
3072
|
e,
|
|
3075
3073
|
x,
|
|
@@ -3080,27 +3078,27 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3080
3078
|
break;
|
|
3081
3079
|
}
|
|
3082
3080
|
case "GET_DATA_SOURCE": {
|
|
3083
|
-
const m = await
|
|
3081
|
+
const m = await i(
|
|
3084
3082
|
t,
|
|
3085
3083
|
e,
|
|
3086
3084
|
x,
|
|
3087
3085
|
u
|
|
3088
|
-
),
|
|
3089
|
-
if ((
|
|
3090
|
-
const C =
|
|
3086
|
+
), g = (b = m == null ? void 0 : m.data) == null ? void 0 : b.content;
|
|
3087
|
+
if ((g == null ? void 0 : g.type) !== "fetch") break;
|
|
3088
|
+
const C = g == null ? void 0 : g.dataSource, j = await n(
|
|
3091
3089
|
C,
|
|
3092
3090
|
t,
|
|
3093
3091
|
// Avoid to handle loading state until all the requests are done
|
|
3094
3092
|
!1
|
|
3095
3093
|
), w = {
|
|
3096
|
-
...(
|
|
3094
|
+
...(p = v.getState()[t]) == null ? void 0 : p.entries,
|
|
3097
3095
|
[u]: {
|
|
3098
3096
|
status: j == null ? void 0 : j.status,
|
|
3099
3097
|
content: j == null ? void 0 : j.data
|
|
3100
3098
|
}
|
|
3101
3099
|
};
|
|
3102
|
-
|
|
3103
|
-
const N = await
|
|
3100
|
+
I(t, w);
|
|
3101
|
+
const N = await i(
|
|
3104
3102
|
t,
|
|
3105
3103
|
e,
|
|
3106
3104
|
w,
|
|
@@ -3110,17 +3108,17 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3110
3108
|
break;
|
|
3111
3109
|
}
|
|
3112
3110
|
default:
|
|
3113
|
-
console.warn(`Unhandled actionType: ${
|
|
3111
|
+
console.warn(`Unhandled actionType: ${d}`);
|
|
3114
3112
|
break;
|
|
3115
3113
|
}
|
|
3116
3114
|
} catch (x) {
|
|
3117
3115
|
alert(JSON.stringify(x));
|
|
3118
3116
|
}
|
|
3119
|
-
}, [
|
|
3120
|
-
return
|
|
3117
|
+
}, [d, h, e, u, t]);
|
|
3118
|
+
return Ae(l, {
|
|
3121
3119
|
onClick: f
|
|
3122
3120
|
});
|
|
3123
|
-
},
|
|
3121
|
+
}, sa = () => /* @__PURE__ */ a.jsx("div", { className: ve.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ a.jsx(
|
|
3124
3122
|
oe,
|
|
3125
3123
|
{
|
|
3126
3124
|
maxWidth: "100%",
|
|
@@ -3128,35 +3126,35 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3128
3126
|
radius: 8
|
|
3129
3127
|
},
|
|
3130
3128
|
`tableSkeletonBase${e}`
|
|
3131
|
-
)) }),
|
|
3132
|
-
(
|
|
3133
|
-
s != null && s.accessor ?
|
|
3129
|
+
)) }), ra = (t, e) => !(e != null && e.length) || !t ? t : t.map((s) => e.some(
|
|
3130
|
+
(o) => Array.isArray(
|
|
3131
|
+
s != null && s.accessor ? o[s == null ? void 0 : s.accessor] : void 0
|
|
3134
3132
|
)
|
|
3135
3133
|
) ? {
|
|
3136
3134
|
...s,
|
|
3137
|
-
renderCell: (
|
|
3138
|
-
const
|
|
3139
|
-
return Array.isArray(
|
|
3135
|
+
renderCell: (o) => {
|
|
3136
|
+
const i = s.accessor ? o[s.accessor] : void 0;
|
|
3137
|
+
return Array.isArray(i) ? /* @__PURE__ */ a.jsx(ea, { values: i }) : i ?? "";
|
|
3140
3138
|
}
|
|
3141
|
-
} : s),
|
|
3139
|
+
} : s), aa = ({
|
|
3142
3140
|
userFlow: t,
|
|
3143
3141
|
pageId: e,
|
|
3144
3142
|
responseKey: s,
|
|
3145
3143
|
component: r,
|
|
3146
|
-
dataSource:
|
|
3147
|
-
rightActions:
|
|
3148
|
-
data:
|
|
3144
|
+
dataSource: o,
|
|
3145
|
+
rightActions: i,
|
|
3146
|
+
data: c,
|
|
3149
3147
|
pageSize: n,
|
|
3150
|
-
...
|
|
3148
|
+
..._
|
|
3151
3149
|
}) => {
|
|
3152
3150
|
var Q, V;
|
|
3153
|
-
const { fetchDataSource:
|
|
3151
|
+
const { fetchDataSource: l } = H(), [d, u] = q(!1), [h, f] = q(1), [y, b] = q(null), p = !o && Array.isArray(c), x = !!(o != null && o.jsonPathCursorPagination) && !!((Q = o == null ? void 0 : o.jsonPathPagination) != null && Q.hasMore), m = ut(
|
|
3154
3152
|
/* @__PURE__ */ new Map([[1, null]])
|
|
3155
|
-
),
|
|
3156
|
-
if (
|
|
3157
|
-
return
|
|
3158
|
-
renderContent: (ct) => /* @__PURE__ */
|
|
3159
|
-
|
|
3153
|
+
), g = D(() => {
|
|
3154
|
+
if (i != null && i.length)
|
|
3155
|
+
return i.map((S, G) => ({
|
|
3156
|
+
renderContent: (ct) => /* @__PURE__ */ a.jsx(
|
|
3157
|
+
na,
|
|
3160
3158
|
{
|
|
3161
3159
|
userFlow: t,
|
|
3162
3160
|
pageId: e,
|
|
@@ -3167,15 +3165,15 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3167
3165
|
`tableRowAction${G}`
|
|
3168
3166
|
)
|
|
3169
3167
|
}));
|
|
3170
|
-
}, [
|
|
3171
|
-
if (!
|
|
3168
|
+
}, [i, t, e, s]), C = async (S = 1) => {
|
|
3169
|
+
if (!o)
|
|
3172
3170
|
return;
|
|
3173
3171
|
const {
|
|
3174
3172
|
mapperData: G,
|
|
3175
3173
|
jsonPathData: ct,
|
|
3176
3174
|
jsonPathPagination: bt,
|
|
3177
3175
|
jsonPathCursorPagination: it
|
|
3178
|
-
} =
|
|
3176
|
+
} = o;
|
|
3179
3177
|
if (it && S !== 1 && !m.current.has(S)) {
|
|
3180
3178
|
f(1), C(1);
|
|
3181
3179
|
return;
|
|
@@ -3183,13 +3181,13 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3183
3181
|
it && S === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
3184
3182
|
try {
|
|
3185
3183
|
u(!0);
|
|
3186
|
-
const jt = it ? m.current.get(S) ?? null : null,
|
|
3187
|
-
|
|
3184
|
+
const jt = it ? m.current.get(S) ?? null : null, ke = Kt(
|
|
3185
|
+
o,
|
|
3188
3186
|
S,
|
|
3189
3187
|
void 0,
|
|
3190
3188
|
jt
|
|
3191
|
-
), Z = await
|
|
3192
|
-
|
|
3189
|
+
), Z = await l(
|
|
3190
|
+
ke,
|
|
3193
3191
|
t,
|
|
3194
3192
|
!1
|
|
3195
3193
|
);
|
|
@@ -3201,7 +3199,7 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3201
3199
|
bt
|
|
3202
3200
|
)
|
|
3203
3201
|
), it) {
|
|
3204
|
-
const Bt =
|
|
3202
|
+
const Bt = gs(
|
|
3205
3203
|
Z == null ? void 0 : Z.data,
|
|
3206
3204
|
it
|
|
3207
3205
|
);
|
|
@@ -3215,46 +3213,46 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3215
3213
|
f(S), C(S);
|
|
3216
3214
|
};
|
|
3217
3215
|
U(() => {
|
|
3218
|
-
|
|
3216
|
+
p || C();
|
|
3219
3217
|
}, []);
|
|
3220
|
-
const w =
|
|
3221
|
-
if (!N || !
|
|
3218
|
+
const w = p ? c : y == null ? void 0 : y.items, N = p && !!n && ((c == null ? void 0 : c.length) ?? 0) > n, k = D(() => {
|
|
3219
|
+
if (!N || !c || !n)
|
|
3222
3220
|
return w ?? [];
|
|
3223
3221
|
const S = (h - 1) * n;
|
|
3224
|
-
return
|
|
3222
|
+
return c.slice(S, S + n);
|
|
3225
3223
|
}, [
|
|
3226
3224
|
N,
|
|
3227
|
-
|
|
3225
|
+
c,
|
|
3228
3226
|
n,
|
|
3229
3227
|
h,
|
|
3230
3228
|
w
|
|
3231
3229
|
]), O = D(
|
|
3232
|
-
() =>
|
|
3233
|
-
|
|
3230
|
+
() => ra(
|
|
3231
|
+
_.columns,
|
|
3234
3232
|
w
|
|
3235
3233
|
),
|
|
3236
|
-
[w,
|
|
3234
|
+
[w, _.columns]
|
|
3237
3235
|
), $ = {
|
|
3238
|
-
...
|
|
3236
|
+
..._,
|
|
3239
3237
|
data: k,
|
|
3240
3238
|
columns: O ?? [],
|
|
3241
|
-
rightActions:
|
|
3239
|
+
rightActions: g
|
|
3242
3240
|
};
|
|
3243
|
-
return
|
|
3244
|
-
/* @__PURE__ */
|
|
3245
|
-
N && n &&
|
|
3241
|
+
return p ? !w || w.length === 0 ? /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3242
|
+
/* @__PURE__ */ a.jsx(Mt, { ...$ }),
|
|
3243
|
+
N && n && c && /* @__PURE__ */ a.jsx(
|
|
3246
3244
|
Ct,
|
|
3247
3245
|
{
|
|
3248
3246
|
classname: { global: "row__end" },
|
|
3249
3247
|
page: h,
|
|
3250
3248
|
size: n,
|
|
3251
|
-
total:
|
|
3249
|
+
total: c.length,
|
|
3252
3250
|
onChange: f
|
|
3253
3251
|
}
|
|
3254
3252
|
)
|
|
3255
|
-
] }) : /* @__PURE__ */
|
|
3256
|
-
/* @__PURE__ */
|
|
3257
|
-
!x && (y == null ? void 0 : y.pagination) && y.pagination.totalPages > 1 && /* @__PURE__ */
|
|
3253
|
+
] }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: d ? /* @__PURE__ */ a.jsx(sa, {}) : y && ((V = y == null ? void 0 : y.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3254
|
+
/* @__PURE__ */ a.jsx(Mt, { ...$ }),
|
|
3255
|
+
!x && (y == null ? void 0 : y.pagination) && y.pagination.totalPages > 1 && /* @__PURE__ */ a.jsx(
|
|
3258
3256
|
Ct,
|
|
3259
3257
|
{
|
|
3260
3258
|
classname: { global: "row__end" },
|
|
@@ -3264,7 +3262,7 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3264
3262
|
onChange: j
|
|
3265
3263
|
}
|
|
3266
3264
|
),
|
|
3267
|
-
x && (y == null ? void 0 : y.pagination) && /* @__PURE__ */
|
|
3265
|
+
x && (y == null ? void 0 : y.pagination) && /* @__PURE__ */ a.jsx(
|
|
3268
3266
|
Ct,
|
|
3269
3267
|
{
|
|
3270
3268
|
variant: "cursor",
|
|
@@ -3274,341 +3272,340 @@ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
|
|
|
3274
3272
|
onChange: j
|
|
3275
3273
|
}
|
|
3276
3274
|
)
|
|
3277
|
-
] }) : /* @__PURE__ */
|
|
3278
|
-
},
|
|
3279
|
-
tabsPanel:
|
|
3280
|
-
},
|
|
3275
|
+
] }) : /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
3276
|
+
}, oa = "_tabsPanel_kvslb_1", ca = {
|
|
3277
|
+
tabsPanel: oa
|
|
3278
|
+
}, ia = ({ userFlow: t, pageId: e, components: s }) => {
|
|
3281
3279
|
const r = E(t, e, s);
|
|
3282
|
-
return r != null && r.length ? /* @__PURE__ */
|
|
3283
|
-
},
|
|
3280
|
+
return r != null && r.length ? /* @__PURE__ */ a.jsx("section", { className: ca.tabsPanel, children: r.map((o, i) => /* @__PURE__ */ a.jsx(A, { children: o }, `tabs-panel-${i}`)) }) : null;
|
|
3281
|
+
}, la = ({
|
|
3284
3282
|
userFlow: t,
|
|
3285
3283
|
pageId: e,
|
|
3286
3284
|
hash: s,
|
|
3287
3285
|
items: r,
|
|
3288
|
-
activeIndex:
|
|
3289
|
-
className:
|
|
3290
|
-
responseKey:
|
|
3286
|
+
activeIndex: o,
|
|
3287
|
+
className: i,
|
|
3288
|
+
responseKey: c
|
|
3291
3289
|
}) => {
|
|
3292
|
-
const n = r.map((
|
|
3293
|
-
label:
|
|
3294
|
-
disabled:
|
|
3295
|
-
children: /* @__PURE__ */
|
|
3296
|
-
|
|
3290
|
+
const n = r.map((l, d) => ({
|
|
3291
|
+
label: l.label,
|
|
3292
|
+
disabled: l.disabled,
|
|
3293
|
+
children: /* @__PURE__ */ a.jsx(
|
|
3294
|
+
ia,
|
|
3297
3295
|
{
|
|
3298
3296
|
userFlow: t,
|
|
3299
3297
|
pageId: e,
|
|
3300
|
-
components:
|
|
3298
|
+
components: l.components
|
|
3301
3299
|
},
|
|
3302
|
-
`${s}-tab-${
|
|
3300
|
+
`${s}-tab-${d}`
|
|
3303
3301
|
)
|
|
3304
|
-
})),
|
|
3302
|
+
})), _ = (l) => {
|
|
3305
3303
|
var u;
|
|
3306
|
-
const
|
|
3304
|
+
const d = {
|
|
3307
3305
|
...(u = v.getState()[t]) == null ? void 0 : u.entries,
|
|
3308
|
-
[
|
|
3306
|
+
[c]: l
|
|
3309
3307
|
};
|
|
3310
|
-
|
|
3308
|
+
I(t, d);
|
|
3311
3309
|
};
|
|
3312
|
-
return /* @__PURE__ */
|
|
3313
|
-
|
|
3310
|
+
return /* @__PURE__ */ a.jsx(
|
|
3311
|
+
Ze,
|
|
3314
3312
|
{
|
|
3315
|
-
className:
|
|
3316
|
-
activeIndex:
|
|
3313
|
+
className: i,
|
|
3314
|
+
activeIndex: o,
|
|
3317
3315
|
items: n,
|
|
3318
|
-
onClick:
|
|
3316
|
+
onClick: _
|
|
3319
3317
|
}
|
|
3320
3318
|
);
|
|
3321
|
-
},
|
|
3322
|
-
|
|
3323
|
-
|
|
3319
|
+
}, Ee = (t, e, s) => {
|
|
3320
|
+
const r = v(
|
|
3321
|
+
(i) => {
|
|
3322
|
+
var c, n;
|
|
3323
|
+
return (n = (c = i[t]) == null ? void 0 : c.entries) == null ? void 0 : n[e];
|
|
3324
|
+
}
|
|
3325
|
+
), o = L(
|
|
3326
|
+
(i) => I(t, { [e]: i }),
|
|
3327
|
+
[t, e]
|
|
3328
|
+
);
|
|
3329
|
+
return [r ?? s, o];
|
|
3330
|
+
}, da = "_textareaNotFront_1wpe5_1", _a = {
|
|
3331
|
+
textareaNotFront: da
|
|
3332
|
+
}, ua = (t) => {
|
|
3324
3333
|
const {
|
|
3325
3334
|
userFlow: e,
|
|
3326
3335
|
pageId: s,
|
|
3327
3336
|
component: r,
|
|
3328
|
-
hash:
|
|
3329
|
-
responseKey:
|
|
3330
|
-
required:
|
|
3337
|
+
hash: o,
|
|
3338
|
+
responseKey: i,
|
|
3339
|
+
required: c,
|
|
3331
3340
|
dependencies: n,
|
|
3332
|
-
...
|
|
3333
|
-
} = t,
|
|
3334
|
-
|
|
3335
|
-
|
|
3341
|
+
..._
|
|
3342
|
+
} = t, { value: l, ...d } = _, [u, h] = Ee(
|
|
3343
|
+
e,
|
|
3344
|
+
i,
|
|
3345
|
+
l ?? ""
|
|
3346
|
+
), { disabled: f } = B(
|
|
3336
3347
|
e,
|
|
3337
3348
|
n
|
|
3338
|
-
),
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
u(x), L(e, { [l]: x });
|
|
3342
|
-
};
|
|
3343
|
-
return U(() => {
|
|
3344
|
-
u((a == null ? void 0 : a.value) ?? "");
|
|
3345
|
-
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
|
|
3346
|
-
Ze,
|
|
3349
|
+
), y = (d == null ? void 0 : d.disabled) ?? f, b = D(() => c && (d != null && d.label) ? `${d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, c]), p = (x) => h(x.target.value);
|
|
3350
|
+
return /* @__PURE__ */ a.jsx(
|
|
3351
|
+
Fe,
|
|
3347
3352
|
{
|
|
3348
|
-
...
|
|
3349
|
-
className:
|
|
3350
|
-
label:
|
|
3351
|
-
value:
|
|
3352
|
-
disabled:
|
|
3353
|
-
onChange: (
|
|
3353
|
+
...d,
|
|
3354
|
+
className: _a.textareaNotFront,
|
|
3355
|
+
label: b,
|
|
3356
|
+
value: u,
|
|
3357
|
+
disabled: y,
|
|
3358
|
+
onChange: (x) => !y && p(x)
|
|
3354
3359
|
}
|
|
3355
3360
|
);
|
|
3356
|
-
},
|
|
3357
|
-
textFieldNotFront:
|
|
3358
|
-
},
|
|
3361
|
+
}, ha = "_textFieldNotFront_1n8fy_1", fa = {
|
|
3362
|
+
textFieldNotFront: ha
|
|
3363
|
+
}, xa = (t) => {
|
|
3359
3364
|
const {
|
|
3360
3365
|
userFlow: e,
|
|
3361
3366
|
pageId: s,
|
|
3362
3367
|
component: r,
|
|
3363
|
-
hash:
|
|
3364
|
-
responseKey:
|
|
3365
|
-
required:
|
|
3368
|
+
hash: o,
|
|
3369
|
+
responseKey: i,
|
|
3370
|
+
required: c,
|
|
3366
3371
|
dependencies: n,
|
|
3367
|
-
...
|
|
3368
|
-
} = t,
|
|
3369
|
-
|
|
3370
|
-
|
|
3372
|
+
..._
|
|
3373
|
+
} = t, { value: l, ...d } = _, [u, h] = Ee(
|
|
3374
|
+
e,
|
|
3375
|
+
i,
|
|
3376
|
+
l ?? ""
|
|
3377
|
+
), { disabled: f } = B(
|
|
3371
3378
|
e,
|
|
3372
3379
|
n
|
|
3373
|
-
),
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
u(x);
|
|
3377
|
-
const m = {
|
|
3378
|
-
[l]: x
|
|
3379
|
-
};
|
|
3380
|
-
L(e, m);
|
|
3381
|
-
};
|
|
3382
|
-
return U(() => {
|
|
3383
|
-
u((a == null ? void 0 : a.value) ?? "");
|
|
3384
|
-
}, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
|
|
3385
|
-
Fe,
|
|
3380
|
+
), y = (d == null ? void 0 : d.disabled) ?? f, b = D(() => c && (d != null && d.label) ? `${d == null ? void 0 : d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, c]), p = (x) => h(x.target.value);
|
|
3381
|
+
return /* @__PURE__ */ a.jsx(
|
|
3382
|
+
Pe,
|
|
3386
3383
|
{
|
|
3387
|
-
...
|
|
3388
|
-
className:
|
|
3384
|
+
...d,
|
|
3385
|
+
className: fa.textFieldNotFront,
|
|
3389
3386
|
allowClear: !1,
|
|
3390
|
-
label:
|
|
3391
|
-
value:
|
|
3392
|
-
disabled:
|
|
3393
|
-
onChange: (
|
|
3387
|
+
label: b,
|
|
3388
|
+
value: u,
|
|
3389
|
+
disabled: y,
|
|
3390
|
+
onChange: (x) => !y && p(x)
|
|
3394
3391
|
}
|
|
3395
3392
|
);
|
|
3396
|
-
},
|
|
3393
|
+
}, ya = ({
|
|
3397
3394
|
userFlow: t,
|
|
3398
3395
|
pageId: e,
|
|
3399
3396
|
responseKey: s,
|
|
3400
3397
|
variant: r,
|
|
3401
|
-
content:
|
|
3402
|
-
actionType:
|
|
3403
|
-
redirectUrl:
|
|
3398
|
+
content: o,
|
|
3399
|
+
actionType: i,
|
|
3400
|
+
redirectUrl: c
|
|
3404
3401
|
}) => {
|
|
3405
|
-
const n =
|
|
3402
|
+
const n = L(async () => {
|
|
3406
3403
|
Lt(t);
|
|
3407
3404
|
try {
|
|
3408
|
-
switch (
|
|
3405
|
+
switch (i) {
|
|
3409
3406
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
3410
|
-
window.location.href =
|
|
3407
|
+
window.location.href = c;
|
|
3411
3408
|
break;
|
|
3412
3409
|
default:
|
|
3413
|
-
console.warn(`Unhandled actionType: ${
|
|
3410
|
+
console.warn(`Unhandled actionType: ${i}`);
|
|
3414
3411
|
break;
|
|
3415
3412
|
}
|
|
3416
|
-
} catch (
|
|
3417
|
-
console.error("Error in toast action:",
|
|
3413
|
+
} catch (_) {
|
|
3414
|
+
console.error("Error in toast action:", _), alert(JSON.stringify(_));
|
|
3418
3415
|
}
|
|
3419
|
-
}, [
|
|
3416
|
+
}, [i, e, s, t, c]);
|
|
3420
3417
|
return U(() => {
|
|
3421
3418
|
({
|
|
3422
3419
|
info: lt.info,
|
|
3423
3420
|
error: lt.error,
|
|
3424
3421
|
success: lt.success,
|
|
3425
3422
|
warning: lt.warning
|
|
3426
|
-
}[r] || lt.info)(
|
|
3427
|
-
autoClose:
|
|
3423
|
+
}[r] || lt.info)(o, {
|
|
3424
|
+
autoClose: i ? !1 : 4e3,
|
|
3428
3425
|
containerId: t,
|
|
3429
3426
|
onClose: n
|
|
3430
3427
|
});
|
|
3431
3428
|
}, [n, t]), null;
|
|
3432
|
-
},
|
|
3433
|
-
tooltipNotFront:
|
|
3434
|
-
tooltipNotFront_content:
|
|
3435
|
-
},
|
|
3429
|
+
}, ma = "_tooltipNotFront_106iw_1", ga = "_tooltipNotFront_content_106iw_5", ne = {
|
|
3430
|
+
tooltipNotFront: ma,
|
|
3431
|
+
tooltipNotFront_content: ga
|
|
3432
|
+
}, pa = (t) => {
|
|
3436
3433
|
const {
|
|
3437
3434
|
userFlow: e,
|
|
3438
3435
|
pageId: s,
|
|
3439
3436
|
component: r,
|
|
3440
|
-
hash:
|
|
3441
|
-
responseKey:
|
|
3442
|
-
content:
|
|
3437
|
+
hash: o,
|
|
3438
|
+
responseKey: i,
|
|
3439
|
+
content: c,
|
|
3443
3440
|
label: n,
|
|
3444
|
-
placement:
|
|
3445
|
-
notShowArrow:
|
|
3446
|
-
visible:
|
|
3441
|
+
placement: _,
|
|
3442
|
+
notShowArrow: l,
|
|
3443
|
+
visible: d
|
|
3447
3444
|
} = t, u = E(
|
|
3448
3445
|
e,
|
|
3449
3446
|
s,
|
|
3450
|
-
|
|
3451
|
-
), h = u && u.length > 0 ? /* @__PURE__ */
|
|
3452
|
-
return /* @__PURE__ */
|
|
3453
|
-
|
|
3447
|
+
c != null && c.length ? c : null
|
|
3448
|
+
), h = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: ne.tooltipNotFront_content, children: u.map((f, y) => /* @__PURE__ */ a.jsx(A, { children: f }, `tooltip-${o}-${y}`)) }) : null;
|
|
3449
|
+
return /* @__PURE__ */ a.jsx(
|
|
3450
|
+
tn,
|
|
3454
3451
|
{
|
|
3455
3452
|
className: ne.tooltipNotFront,
|
|
3456
3453
|
label: n,
|
|
3457
|
-
placement:
|
|
3458
|
-
notShowArrow:
|
|
3459
|
-
visible:
|
|
3454
|
+
placement: _,
|
|
3455
|
+
notShowArrow: l,
|
|
3456
|
+
visible: d,
|
|
3460
3457
|
children: h
|
|
3461
3458
|
}
|
|
3462
3459
|
);
|
|
3463
3460
|
};
|
|
3464
|
-
function
|
|
3461
|
+
function Ba({
|
|
3465
3462
|
sessionName: t,
|
|
3466
3463
|
apiConfig: e,
|
|
3467
3464
|
onResolveComponentProps: s,
|
|
3468
3465
|
children: r
|
|
3469
3466
|
}) {
|
|
3470
|
-
const
|
|
3467
|
+
const o = Na(
|
|
3471
3468
|
t,
|
|
3472
3469
|
e,
|
|
3473
3470
|
null,
|
|
3474
3471
|
s
|
|
3475
3472
|
);
|
|
3476
|
-
return /* @__PURE__ */
|
|
3477
|
-
|
|
3473
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3474
|
+
o,
|
|
3478
3475
|
r
|
|
3479
3476
|
] });
|
|
3480
3477
|
}
|
|
3481
|
-
const
|
|
3478
|
+
const ba = { api: "", headers: {} }, ja = ({
|
|
3482
3479
|
userFlow: t,
|
|
3483
3480
|
components: e,
|
|
3484
3481
|
hash: s,
|
|
3485
3482
|
apiConfig: r
|
|
3486
3483
|
}) => {
|
|
3487
|
-
const
|
|
3488
|
-
|
|
3489
|
-
var
|
|
3490
|
-
return (
|
|
3484
|
+
const o = s ?? `${t}-page`;
|
|
3485
|
+
q(() => {
|
|
3486
|
+
var _, l;
|
|
3487
|
+
return (l = (_ = v.getState()[t]) == null ? void 0 : _.pages) != null && l[o] || yt(t, r ?? ba, {
|
|
3491
3488
|
type: "page",
|
|
3492
|
-
hash:
|
|
3489
|
+
hash: o,
|
|
3493
3490
|
body: { components: e }
|
|
3494
3491
|
}), null;
|
|
3495
3492
|
});
|
|
3496
|
-
const
|
|
3497
|
-
return /* @__PURE__ */
|
|
3493
|
+
const i = E(t, o, e);
|
|
3494
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: i });
|
|
3498
3495
|
};
|
|
3499
|
-
function
|
|
3496
|
+
function Ca(t) {
|
|
3500
3497
|
if (t == null || typeof t != "object" || !("components" in t) || !Array.isArray(t.components))
|
|
3501
3498
|
throw new Error(
|
|
3502
3499
|
"[renderNotFront] payload.display must be an object with a `components` array"
|
|
3503
3500
|
);
|
|
3504
3501
|
return t.components;
|
|
3505
3502
|
}
|
|
3506
|
-
const
|
|
3507
|
-
const s =
|
|
3503
|
+
const wa = ({ payload: t, userFlow: e }) => {
|
|
3504
|
+
const s = Ca(t.display), r = ja({
|
|
3508
3505
|
userFlow: e,
|
|
3509
3506
|
hash: t.id,
|
|
3510
3507
|
components: s
|
|
3511
3508
|
});
|
|
3512
|
-
return /* @__PURE__ */
|
|
3513
|
-
},
|
|
3514
|
-
const
|
|
3509
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: r });
|
|
3510
|
+
}, Ma = wa, se = (t, e, s, r, o) => {
|
|
3511
|
+
const i = E(
|
|
3515
3512
|
t,
|
|
3516
3513
|
e,
|
|
3517
3514
|
(r == null ? void 0 : r.components) || null,
|
|
3518
|
-
|
|
3515
|
+
o
|
|
3519
3516
|
);
|
|
3520
3517
|
switch (s) {
|
|
3521
3518
|
case "body":
|
|
3522
|
-
return /* @__PURE__ */
|
|
3523
|
-
|
|
3519
|
+
return /* @__PURE__ */ a.jsx(
|
|
3520
|
+
Yn,
|
|
3524
3521
|
{
|
|
3525
3522
|
...r,
|
|
3526
|
-
inputs:
|
|
3523
|
+
inputs: i || []
|
|
3527
3524
|
},
|
|
3528
3525
|
JSON.stringify(r == null ? void 0 : r.components)
|
|
3529
3526
|
);
|
|
3530
3527
|
case "header":
|
|
3531
|
-
return /* @__PURE__ */
|
|
3532
|
-
|
|
3528
|
+
return /* @__PURE__ */ a.jsx(
|
|
3529
|
+
gr,
|
|
3533
3530
|
{
|
|
3534
3531
|
...r,
|
|
3535
|
-
components:
|
|
3532
|
+
components: i || []
|
|
3536
3533
|
},
|
|
3537
3534
|
JSON.stringify(r == null ? void 0 : r.components)
|
|
3538
3535
|
);
|
|
3539
3536
|
default:
|
|
3540
3537
|
return null;
|
|
3541
3538
|
}
|
|
3542
|
-
},
|
|
3543
|
-
var
|
|
3544
|
-
const [
|
|
3539
|
+
}, Na = (t, e, s, r) => {
|
|
3540
|
+
var p, x;
|
|
3541
|
+
const [o, i] = q(!1), c = !!(e != null && e.api && !s && t), [n, _] = q(c), l = v((m) => m[t]), d = l == null ? void 0 : l.currentPageId, u = (l == null ? void 0 : l.isLoading) ?? !1, h = n || u;
|
|
3545
3542
|
U(() => {
|
|
3546
3543
|
if (typeof window > "u") return;
|
|
3547
|
-
const m = new URL(window.location.href),
|
|
3548
|
-
|
|
3544
|
+
const m = new URL(window.location.href), g = m.searchParams.get("sessionId");
|
|
3545
|
+
g && (qt(g), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
|
|
3549
3546
|
}, []);
|
|
3550
|
-
const f =
|
|
3547
|
+
const f = d ? se(
|
|
3551
3548
|
t,
|
|
3552
|
-
|
|
3549
|
+
d,
|
|
3553
3550
|
"header",
|
|
3554
|
-
((
|
|
3551
|
+
((p = l == null ? void 0 : l.pages[d].page) == null ? void 0 : p.header) || null,
|
|
3555
3552
|
r
|
|
3556
|
-
) : null, y =
|
|
3553
|
+
) : null, y = d ? se(
|
|
3557
3554
|
t,
|
|
3558
|
-
|
|
3555
|
+
d,
|
|
3559
3556
|
"body",
|
|
3560
|
-
((x =
|
|
3557
|
+
((x = l == null ? void 0 : l.pages[d].page) == null ? void 0 : x.body) || null,
|
|
3561
3558
|
r
|
|
3562
3559
|
) : null, b = async () => {
|
|
3563
3560
|
try {
|
|
3564
3561
|
const m = await me(
|
|
3565
3562
|
e,
|
|
3566
3563
|
t
|
|
3567
|
-
),
|
|
3564
|
+
), g = m == null ? void 0 : m.data, C = g == null ? void 0 : g.content;
|
|
3568
3565
|
(m == null ? void 0 : m.status) === 200 ? yt(
|
|
3569
3566
|
t,
|
|
3570
3567
|
e,
|
|
3571
3568
|
C,
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
) :
|
|
3569
|
+
g == null ? void 0 : g.sessionState,
|
|
3570
|
+
g == null ? void 0 : g.sessionId
|
|
3571
|
+
) : i(!0);
|
|
3575
3572
|
} catch (m) {
|
|
3576
|
-
console.error("[not-page]: API call failed", m),
|
|
3573
|
+
console.error("[not-page]: API call failed", m), i(!0);
|
|
3577
3574
|
} finally {
|
|
3578
|
-
|
|
3575
|
+
_(!1);
|
|
3579
3576
|
}
|
|
3580
3577
|
};
|
|
3581
3578
|
return U(() => {
|
|
3582
|
-
e != null && e.api && !s && t ? b() : !(e != null && e.api) && s && t || e != null && e.api && s && t ? yt(t, e, s) : (!(e != null && e.api) && !s || !t) && (
|
|
3579
|
+
e != null && e.api && !s && t ? b() : !(e != null && e.api) && s && t || e != null && e.api && s && t ? yt(t, e, s) : (!(e != null && e.api) && !s || !t) && (i(!0), console.error(
|
|
3583
3580
|
"[not-page]: API call failed",
|
|
3584
3581
|
"not api config",
|
|
3585
3582
|
"not userFlow"
|
|
3586
3583
|
));
|
|
3587
|
-
const m = "avocado-theme-mode-changed",
|
|
3584
|
+
const m = "avocado-theme-mode-changed", g = (C) => {
|
|
3588
3585
|
const j = C.detail;
|
|
3589
3586
|
ht.setThemeMode(j);
|
|
3590
3587
|
};
|
|
3591
|
-
return window.addEventListener(m,
|
|
3592
|
-
window.removeEventListener(m,
|
|
3588
|
+
return window.addEventListener(m, g), () => {
|
|
3589
|
+
window.removeEventListener(m, g);
|
|
3593
3590
|
};
|
|
3594
|
-
}, []),
|
|
3595
|
-
h && /* @__PURE__ */
|
|
3591
|
+
}, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3592
|
+
h && /* @__PURE__ */ a.jsx(en, {}),
|
|
3596
3593
|
f,
|
|
3597
3594
|
y,
|
|
3598
|
-
|
|
3599
|
-
|
|
3595
|
+
d && /* @__PURE__ */ a.jsx(Nr, { userFlow: t, pageId: d }),
|
|
3596
|
+
l && /* @__PURE__ */ a.jsx(nn, {})
|
|
3600
3597
|
] });
|
|
3601
3598
|
};
|
|
3602
3599
|
export {
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3600
|
+
Xs as Chart,
|
|
3601
|
+
Ba as NotFrontPage,
|
|
3602
|
+
wa as RenderNotFront,
|
|
3603
|
+
Dr as Row,
|
|
3604
|
+
Ka as clearSessionId,
|
|
3605
|
+
Ca as extractNotFrontComponents,
|
|
3606
|
+
Tn as heading,
|
|
3607
|
+
Ma as renderNotFront,
|
|
3608
|
+
An as text,
|
|
3609
|
+
ja as useNotFrontFragment,
|
|
3610
|
+
Na as usePage
|
|
3614
3611
|
};
|