@foris/avocado-not-front 8.0.1 → 8.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avocado-not-front/src/components/body/Body.d.ts +1 -0
- package/dist/avocado-not-front/src/components/contextual-navigation/ContextualNavigation.d.ts +9 -0
- package/dist/avocado-not-front/src/components/contextual-navigation/ContextualNavigation.test.d.ts +1 -0
- package/dist/avocado-not-front/src/components/contextual-navigation/useContextualNavigationActions.d.ts +7 -0
- package/dist/avocado-not-front/src/components/contextual-navigation/useContextualNavigationActions.test.d.ts +1 -0
- package/dist/avocado-not-front/src/hooks/builder/useBuilder.d.ts +5 -1
- package/dist/avocado-not-front/src/types/builder.type.d.ts +3 -1
- package/dist/avocado-not-front/src/types/components.type.d.ts +15 -4
- package/dist/avocado-not-front.es.js +772 -719
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
1
|
+
import z from "axios";
|
|
2
2
|
import { create as nn } from "zustand";
|
|
3
3
|
import rn, { useMemo as S, useState as O, useCallback as R, Fragment as A, useEffect as U, useRef as he, useLayoutEffect as sn, cloneElement as on } from "react";
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { ChatPanel as
|
|
4
|
+
import { Heading as Et, Text as Tt, Accordion as an, ThemeStore as fe, Box as cn, RadioButton as ln, Stepper as dn, ProgressBar as un, Breadcrumbs as _n, Button as hn, CardAccordion as fn, Card as xn, CardNotification as je, SkeletonBase as At, Checkbox as yn, PreviewerMarkdown as kt, DataCard as St, Divider as mn, Drawer as gn, FileUpload as pn, DropdownButton as bn, HeaderNavigation as jn, Link as Cn, Menu as Nn, Modal as wn, Pill as qe, RoundButton as vn, SelectPagination as En, Select as Tn, Switch as An, Pager as Se, Table as kn, Tabs as Sn, Textarea as On, TextField as Rn, toast as de, Tooltip as Dn, ContextualNavigation as In, Loading as $n, Toaster as Ln } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as qn, PromptCodeEditor as Bn, SummaryCard as Hn } from "@foris/ai-agent";
|
|
6
6
|
import q from "jsonpath";
|
|
7
|
-
import { ResponsiveContainer as
|
|
8
|
-
import
|
|
9
|
-
import { json as
|
|
10
|
-
import { markdown as
|
|
11
|
-
import { sql as
|
|
12
|
-
import { yaml as
|
|
13
|
-
import { Icon as
|
|
14
|
-
const
|
|
15
|
-
e && sessionStorage.setItem(
|
|
16
|
-
},
|
|
17
|
-
sessionStorage.removeItem(
|
|
7
|
+
import { ResponsiveContainer as Ue, Legend as Kn, Tooltip as Un, XAxis as Gn, YAxis as Mn, AreaChart as zn, CartesianGrid as re, Area as Ot, BarChart as Ge, Bar as we, ComposedChart as Vn, Line as Rt, PieChart as Dt, Pie as It, Cell as $t, Sector as it, LineChart as Xn } from "recharts";
|
|
8
|
+
import Wn from "@uiw/react-codemirror";
|
|
9
|
+
import { json as lt } from "@codemirror/lang-json";
|
|
10
|
+
import { markdown as Jn } from "@codemirror/lang-markdown";
|
|
11
|
+
import { sql as Yn } from "@codemirror/lang-sql";
|
|
12
|
+
import { yaml as Qn } from "@codemirror/lang-yaml";
|
|
13
|
+
import { Icon as dt } from "@foris/avocado-icons";
|
|
14
|
+
const Me = "sessionId", Zn = () => sessionStorage.getItem(Me), ze = (e) => {
|
|
15
|
+
e && sessionStorage.setItem(Me, e);
|
|
16
|
+
}, Ha = () => {
|
|
17
|
+
sessionStorage.removeItem(Me);
|
|
18
18
|
}, v = nn(() => ({})), be = (e, t, r, s, o) => {
|
|
19
|
-
|
|
19
|
+
ze(o);
|
|
20
20
|
const c = r == null ? void 0 : r.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
|
|
21
21
|
v.setState((n) => {
|
|
22
22
|
var u;
|
|
@@ -40,14 +40,14 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, Lt = (e, t, r) => {
|
|
44
44
|
const s = r && Object.keys(r).length > 0 ? { ...e, ...r } : e;
|
|
45
45
|
return t.length === 0 ? s : Object.fromEntries(
|
|
46
46
|
Object.entries(s).filter(([o]) => !t.includes(o))
|
|
47
47
|
);
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
const i = c[e] ?? {}, n = i.entries ?? {}, u =
|
|
48
|
+
}, Fn = (e, t, r, s, o) => {
|
|
49
|
+
ze(r), v.setState((c) => {
|
|
50
|
+
const i = c[e] ?? {}, n = i.entries ?? {}, u = Lt(
|
|
51
51
|
n,
|
|
52
52
|
s,
|
|
53
53
|
o
|
|
@@ -69,10 +69,10 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
});
|
|
72
|
-
},
|
|
72
|
+
}, Pn = (e, t, r, s) => {
|
|
73
73
|
v.setState((o) => {
|
|
74
74
|
var l;
|
|
75
|
-
const c = o[e] ?? {}, i = c.entries ?? {}, n =
|
|
75
|
+
const c = o[e] ?? {}, i = c.entries ?? {}, n = Lt(
|
|
76
76
|
i,
|
|
77
77
|
r,
|
|
78
78
|
s
|
|
@@ -99,7 +99,7 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
99
99
|
overlay: null
|
|
100
100
|
}
|
|
101
101
|
}));
|
|
102
|
-
},
|
|
102
|
+
}, er = (e) => {
|
|
103
103
|
var r;
|
|
104
104
|
return ((r = v.getState()[e]) == null ? void 0 : r.overlay) ?? null;
|
|
105
105
|
}, H = (e, t) => {
|
|
@@ -109,13 +109,13 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
109
109
|
deprecatedStateKeys: o = [],
|
|
110
110
|
sessionState: c
|
|
111
111
|
} = t;
|
|
112
|
-
r.type !== "page" && r.type !== "overlay" || (r.type === "page" ?
|
|
112
|
+
r.type !== "page" && r.type !== "overlay" || (r.type === "page" ? Fn(
|
|
113
113
|
e,
|
|
114
114
|
r,
|
|
115
115
|
s,
|
|
116
116
|
o,
|
|
117
117
|
c
|
|
118
|
-
) :
|
|
118
|
+
) : Pn(
|
|
119
119
|
e,
|
|
120
120
|
r,
|
|
121
121
|
o,
|
|
@@ -136,7 +136,7 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
},
|
|
139
|
+
}, tr = (e, t) => {
|
|
140
140
|
v.setState((r) => {
|
|
141
141
|
const s = r[e];
|
|
142
142
|
if (!s)
|
|
@@ -153,7 +153,7 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
});
|
|
156
|
-
},
|
|
156
|
+
}, P = (e, t) => {
|
|
157
157
|
v.setState((r) => ({
|
|
158
158
|
...r,
|
|
159
159
|
[e]: {
|
|
@@ -161,7 +161,7 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
161
161
|
isLoading: t
|
|
162
162
|
}
|
|
163
163
|
}));
|
|
164
|
-
},
|
|
164
|
+
}, Xe = (e, t) => {
|
|
165
165
|
v.setState((r) => ({
|
|
166
166
|
...r,
|
|
167
167
|
[e]: {
|
|
@@ -177,7 +177,7 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
177
177
|
isDrawerOpen: t
|
|
178
178
|
}
|
|
179
179
|
}));
|
|
180
|
-
},
|
|
180
|
+
}, ut = (e, t) => {
|
|
181
181
|
v.setState((r) => {
|
|
182
182
|
const s = r[e];
|
|
183
183
|
return s ? {
|
|
@@ -192,16 +192,16 @@ const Ge = "sessionId", Qn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
192
192
|
} : r;
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
|
-
let Oe = !1, Ce = [],
|
|
196
|
-
const
|
|
195
|
+
let Oe = !1, Ce = [], _t = !1;
|
|
196
|
+
const nr = (e) => e._userFlow || null, ht = (e) => {
|
|
197
197
|
Ce.forEach(({ resolve: t, reject: r }) => {
|
|
198
198
|
e ? r(e) : t(void 0);
|
|
199
199
|
}), Ce = [];
|
|
200
|
-
},
|
|
200
|
+
}, rr = async (e) => {
|
|
201
201
|
var s, o;
|
|
202
202
|
const t = e == null ? void 0 : e.config;
|
|
203
203
|
if (((s = e == null ? void 0 : e.response) == null ? void 0 : s.status) === 401 && !t._retry) {
|
|
204
|
-
const c =
|
|
204
|
+
const c = nr(t);
|
|
205
205
|
if (c) {
|
|
206
206
|
const n = (o = v.getState()[c]) == null ? void 0 : o.apiConfig;
|
|
207
207
|
if (!n)
|
|
@@ -210,7 +210,7 @@ const tr = (e) => e._userFlow || null, ut = (e) => {
|
|
|
210
210
|
if (Oe)
|
|
211
211
|
return new Promise((l, d) => {
|
|
212
212
|
Ce.push({ resolve: l, reject: d });
|
|
213
|
-
}).then(() =>
|
|
213
|
+
}).then(() => z(t)).catch((l) => (console.error("[axiosInterceptors] Queued request failed:", l), Promise.reject(l)));
|
|
214
214
|
t._retry = !0, Oe = !0;
|
|
215
215
|
try {
|
|
216
216
|
let l;
|
|
@@ -220,7 +220,7 @@ const tr = (e) => e._userFlow || null, ut = (e) => {
|
|
|
220
220
|
l = n.headers();
|
|
221
221
|
else
|
|
222
222
|
throw new Error("No refresh handler available");
|
|
223
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ?
|
|
223
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? ut(c, JSON.stringify(l)) : ut(c, l)), t.headers || (t.headers = {}), Object.assign(t.headers, l), ht(null), z(t);
|
|
224
224
|
} catch (l) {
|
|
225
225
|
return console.error(
|
|
226
226
|
"[axiosInterceptors] Token refresh failed:",
|
|
@@ -228,7 +228,7 @@ const tr = (e) => e._userFlow || null, ut = (e) => {
|
|
|
228
228
|
), console.error(
|
|
229
229
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
230
230
|
Ce.length
|
|
231
|
-
),
|
|
231
|
+
), ht(l), Promise.reject(l);
|
|
232
232
|
} finally {
|
|
233
233
|
Oe = !1;
|
|
234
234
|
}
|
|
@@ -243,17 +243,17 @@ const tr = (e) => e._userFlow || null, ut = (e) => {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
return Promise.reject(e);
|
|
246
|
-
},
|
|
247
|
-
if (
|
|
246
|
+
}, sr = () => {
|
|
247
|
+
if (_t) {
|
|
248
248
|
console.debug(
|
|
249
249
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
250
250
|
);
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."),
|
|
253
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), z.interceptors.response.use(void 0, rr), console.debug("[axiosInterceptors] Response error interceptor registered"), _t = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
254
254
|
};
|
|
255
|
-
|
|
256
|
-
function
|
|
255
|
+
sr();
|
|
256
|
+
function or(e) {
|
|
257
257
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
258
258
|
}
|
|
259
259
|
var Re = { exports: {} }, ue = {};
|
|
@@ -266,10 +266,10 @@ var Re = { exports: {} }, ue = {};
|
|
|
266
266
|
* This source code is licensed under the MIT license found in the
|
|
267
267
|
* LICENSE file in the root directory of this source tree.
|
|
268
268
|
*/
|
|
269
|
-
var
|
|
270
|
-
function
|
|
271
|
-
if (
|
|
272
|
-
|
|
269
|
+
var ft;
|
|
270
|
+
function ar() {
|
|
271
|
+
if (ft) return ue;
|
|
272
|
+
ft = 1;
|
|
273
273
|
var e = rn, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
274
274
|
function i(n, u, l) {
|
|
275
275
|
var d, _ = {}, h = null, f = null;
|
|
@@ -280,32 +280,32 @@ function or() {
|
|
|
280
280
|
}
|
|
281
281
|
return ue.Fragment = r, ue.jsx = i, ue.jsxs = i, ue;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
function
|
|
285
|
-
return
|
|
283
|
+
var xt;
|
|
284
|
+
function cr() {
|
|
285
|
+
return xt || (xt = 1, Re.exports = ar()), Re.exports;
|
|
286
286
|
}
|
|
287
|
-
var a =
|
|
288
|
-
const
|
|
287
|
+
var a = cr();
|
|
288
|
+
const ir = (e) => {
|
|
289
289
|
if (!(e != null && e.content)) return null;
|
|
290
290
|
const t = {
|
|
291
291
|
...e,
|
|
292
292
|
children: e.content,
|
|
293
293
|
type: e.variant
|
|
294
294
|
};
|
|
295
|
-
return /* @__PURE__ */ a.jsx(
|
|
296
|
-
},
|
|
295
|
+
return /* @__PURE__ */ a.jsx(Et, { ...t });
|
|
296
|
+
}, lr = (e) => {
|
|
297
297
|
if (!e) return null;
|
|
298
298
|
const t = {
|
|
299
299
|
...e,
|
|
300
300
|
children: e.content
|
|
301
301
|
};
|
|
302
|
-
return /* @__PURE__ */ a.jsx(
|
|
302
|
+
return /* @__PURE__ */ a.jsx(Tt, { ...t });
|
|
303
303
|
}, T = (e, t, r, s) => {
|
|
304
304
|
var i;
|
|
305
305
|
const o = {
|
|
306
|
-
accordion: (n) => /* @__PURE__ */ a.jsx(
|
|
306
|
+
accordion: (n) => /* @__PURE__ */ a.jsx(br, { ...n, userFlow: e, pageId: t }),
|
|
307
307
|
aiChatPanel: (n) => /* @__PURE__ */ a.jsx(
|
|
308
|
-
|
|
308
|
+
jr,
|
|
309
309
|
{
|
|
310
310
|
...n,
|
|
311
311
|
userFlow: e,
|
|
@@ -314,7 +314,7 @@ const cr = (e) => {
|
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
aiSummaryCard: (n) => /* @__PURE__ */ a.jsx(
|
|
317
|
-
|
|
317
|
+
Tr,
|
|
318
318
|
{
|
|
319
319
|
...n,
|
|
320
320
|
userFlow: e,
|
|
@@ -323,29 +323,29 @@ const cr = (e) => {
|
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
325
|
aiPromptCodeEditor: (n) => /* @__PURE__ */ a.jsx(wr, { ...n, userFlow: e, pageId: t }),
|
|
326
|
-
box: (n) => /* @__PURE__ */ a.jsx(
|
|
327
|
-
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(
|
|
328
|
-
tooltip: (n) => /* @__PURE__ */ a.jsx(
|
|
329
|
-
textarea: (n) => /* @__PURE__ */ a.jsx(
|
|
330
|
-
card: (n) => /* @__PURE__ */ a.jsx(
|
|
331
|
-
dropdownButton: (n) => /* @__PURE__ */ a.jsx(
|
|
332
|
-
menu: (n) => /* @__PURE__ */ a.jsx(
|
|
333
|
-
radioGroup: (n) => /* @__PURE__ */ a.jsx(
|
|
334
|
-
stepper: (n) => /* @__PURE__ */ a.jsx(
|
|
335
|
-
progressBar: (n) => /* @__PURE__ */ a.jsx(
|
|
336
|
-
button: (n) => /* @__PURE__ */ a.jsx(
|
|
337
|
-
cardAccordion: (n) => /* @__PURE__ */ a.jsx(
|
|
338
|
-
cardNotification: (n) => /* @__PURE__ */ a.jsx(
|
|
339
|
-
chart: (n) => /* @__PURE__ */ a.jsx(
|
|
340
|
-
dataCard: (n) => /* @__PURE__ */ a.jsx(
|
|
341
|
-
checkbox: (n) => /* @__PURE__ */ a.jsx(
|
|
342
|
-
code: (n) => /* @__PURE__ */ a.jsx(
|
|
343
|
-
divider: (n) => /* @__PURE__ */ a.jsx(
|
|
344
|
-
drawer: (n) => /* @__PURE__ */ a.jsx(
|
|
345
|
-
fileUpload: (n) => /* @__PURE__ */ a.jsx(
|
|
346
|
-
heading: (n) =>
|
|
326
|
+
box: (n) => /* @__PURE__ */ a.jsx(Lr, { ...n, userFlow: e, pageId: t }),
|
|
327
|
+
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(Xr, { ...n, userFlow: e, pageId: t }),
|
|
328
|
+
tooltip: (n) => /* @__PURE__ */ a.jsx(ma, { ...n, userFlow: e, pageId: t }),
|
|
329
|
+
textarea: (n) => /* @__PURE__ */ a.jsx(da, { ...n, userFlow: e, pageId: t }),
|
|
330
|
+
card: (n) => /* @__PURE__ */ a.jsx(Fr, { ...n, userFlow: e, pageId: t }),
|
|
331
|
+
dropdownButton: (n) => /* @__PURE__ */ a.jsx(Ps, { ...n, userFlow: e, pageId: t }),
|
|
332
|
+
menu: (n) => /* @__PURE__ */ a.jsx(oo, { ...n, userFlow: e, pageId: t }),
|
|
333
|
+
radioGroup: (n) => /* @__PURE__ */ a.jsx(Mr, { ...n, userFlow: e, pageId: t }),
|
|
334
|
+
stepper: (n) => /* @__PURE__ */ a.jsx(zr, { ...n, userFlow: e, pageId: t }),
|
|
335
|
+
progressBar: (n) => /* @__PURE__ */ a.jsx(Vr, { ...n, userFlow: e, pageId: t }),
|
|
336
|
+
button: (n) => /* @__PURE__ */ a.jsx(Wr, { ...n, userFlow: e, pageId: t }),
|
|
337
|
+
cardAccordion: (n) => /* @__PURE__ */ a.jsx(Yr, { ...n, userFlow: e, pageId: t }),
|
|
338
|
+
cardNotification: (n) => /* @__PURE__ */ a.jsx(Pr, { ...n, userFlow: e, pageId: t }),
|
|
339
|
+
chart: (n) => /* @__PURE__ */ a.jsx(As, { ...n, userFlow: e }),
|
|
340
|
+
dataCard: (n) => /* @__PURE__ */ a.jsx(Ms, { ...n, userFlow: e, pageId: t }),
|
|
341
|
+
checkbox: (n) => /* @__PURE__ */ a.jsx(ks, { ...n, userFlow: e, pageId: t }),
|
|
342
|
+
code: (n) => /* @__PURE__ */ a.jsx(Ls, { ...n, userFlow: e, pageId: t }),
|
|
343
|
+
divider: (n) => /* @__PURE__ */ a.jsx(Xs, { ...n }),
|
|
344
|
+
drawer: (n) => /* @__PURE__ */ a.jsx(Qs, { ...n, userFlow: e, pageId: t }),
|
|
345
|
+
fileUpload: (n) => /* @__PURE__ */ a.jsx(Fs, { ...n, userFlow: e, pageId: t }),
|
|
346
|
+
heading: (n) => ir(n),
|
|
347
347
|
headerNavigation: (n) => /* @__PURE__ */ a.jsx(
|
|
348
|
-
|
|
348
|
+
zt,
|
|
349
349
|
{
|
|
350
350
|
...n,
|
|
351
351
|
userFlow: e,
|
|
@@ -353,48 +353,48 @@ const cr = (e) => {
|
|
|
353
353
|
onResolveComponentProps: s
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
|
-
link: (n) => /* @__PURE__ */ a.jsx(
|
|
357
|
-
pill: (n) => /* @__PURE__ */ a.jsx(
|
|
358
|
-
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx(
|
|
359
|
-
modal: (n) => /* @__PURE__ */ a.jsx(
|
|
360
|
-
roundButton: (n) => /* @__PURE__ */ a.jsx(
|
|
361
|
-
row: (n) => /* @__PURE__ */ a.jsx(
|
|
362
|
-
select: (n) => /* @__PURE__ */ a.jsx(
|
|
363
|
-
switch: (n) => /* @__PURE__ */ a.jsx(
|
|
364
|
-
spacing: (n) => /* @__PURE__ */ a.jsx(
|
|
365
|
-
table: (n) => /* @__PURE__ */ a.jsx(
|
|
366
|
-
tabs: (n) => /* @__PURE__ */ a.jsx(
|
|
367
|
-
text: (n) =>
|
|
368
|
-
textField: (n) => /* @__PURE__ */ a.jsx(
|
|
369
|
-
toast: (n) => /* @__PURE__ */ a.jsx(
|
|
356
|
+
link: (n) => /* @__PURE__ */ a.jsx(so, { ...n, userFlow: e, pageId: t }),
|
|
357
|
+
pill: (n) => /* @__PURE__ */ a.jsx(yo, { ...n }),
|
|
358
|
+
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx(mo, { ...n }),
|
|
359
|
+
modal: (n) => /* @__PURE__ */ a.jsx(io, { ...n, userFlow: e, pageId: t }),
|
|
360
|
+
roundButton: (n) => /* @__PURE__ */ a.jsx(go, { ...n, userFlow: e, pageId: t }),
|
|
361
|
+
row: (n) => /* @__PURE__ */ a.jsx(jo, { ...n, userFlow: e, pageId: t }),
|
|
362
|
+
select: (n) => /* @__PURE__ */ a.jsx(ko, { ...n, userFlow: e, pageId: t }),
|
|
363
|
+
switch: (n) => /* @__PURE__ */ a.jsx(Ko, { ...n, userFlow: e, pageId: t }),
|
|
364
|
+
spacing: (n) => /* @__PURE__ */ a.jsx(Ho, { ...n, userFlow: e, pageId: t }),
|
|
365
|
+
table: (n) => /* @__PURE__ */ a.jsx(ra, { ...n, userFlow: e, pageId: t }),
|
|
366
|
+
tabs: (n) => /* @__PURE__ */ a.jsx(ca, { ...n, userFlow: e, pageId: t }),
|
|
367
|
+
text: (n) => lr(n),
|
|
368
|
+
textField: (n) => /* @__PURE__ */ a.jsx(ha, { ...n, userFlow: e, pageId: t }),
|
|
369
|
+
toast: (n) => /* @__PURE__ */ a.jsx(fa, { ...n, userFlow: e, pageId: t })
|
|
370
370
|
};
|
|
371
371
|
return (i = r == null ? void 0 : r.filter(Boolean)) == null ? void 0 : i.map((n) => {
|
|
372
372
|
const u = o[n.component];
|
|
373
373
|
return u ? u({ ...n, userFlow: e, pageId: t }) : null;
|
|
374
374
|
});
|
|
375
375
|
};
|
|
376
|
-
function
|
|
376
|
+
function dr(e) {
|
|
377
377
|
return !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function qt(e, t) {
|
|
380
380
|
if (!(t != null && t.length))
|
|
381
381
|
return !1;
|
|
382
382
|
for (const r of t)
|
|
383
383
|
if (r.when === "empty") {
|
|
384
384
|
const s = e == null ? void 0 : e[r.key];
|
|
385
|
-
if (
|
|
385
|
+
if (dr(s))
|
|
386
386
|
return !0;
|
|
387
387
|
}
|
|
388
388
|
return !1;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function L(e, t) {
|
|
391
391
|
const r = v((s) => {
|
|
392
392
|
var o;
|
|
393
393
|
return (o = s[e]) == null ? void 0 : o.entries;
|
|
394
394
|
});
|
|
395
395
|
return S(
|
|
396
396
|
() => ({
|
|
397
|
-
disabled:
|
|
397
|
+
disabled: qt(r, t)
|
|
398
398
|
}),
|
|
399
399
|
[t, r]
|
|
400
400
|
);
|
|
@@ -411,12 +411,12 @@ const se = (e) => {
|
|
|
411
411
|
return { "content-type": "application/json", Authorization: e };
|
|
412
412
|
}
|
|
413
413
|
return e;
|
|
414
|
-
}, xe = () => new AbortController(),
|
|
414
|
+
}, xe = () => new AbortController(), ur = (e, t = {}, r = {}, s = !1, o) => {
|
|
415
415
|
const c = xe();
|
|
416
416
|
s && c.abort();
|
|
417
417
|
const i = se(t);
|
|
418
418
|
return {
|
|
419
|
-
call:
|
|
419
|
+
call: z.get(e, {
|
|
420
420
|
headers: {
|
|
421
421
|
...i
|
|
422
422
|
},
|
|
@@ -426,12 +426,12 @@ const se = (e) => {
|
|
|
426
426
|
}),
|
|
427
427
|
controller: c
|
|
428
428
|
};
|
|
429
|
-
},
|
|
429
|
+
}, Be = (e, t = {}, r = {}, s = {}, o = !1, c) => {
|
|
430
430
|
const i = xe();
|
|
431
431
|
o && i.abort();
|
|
432
432
|
const n = se(t);
|
|
433
433
|
return {
|
|
434
|
-
call:
|
|
434
|
+
call: z.post(e, r, {
|
|
435
435
|
headers: {
|
|
436
436
|
...n
|
|
437
437
|
},
|
|
@@ -441,12 +441,12 @@ const se = (e) => {
|
|
|
441
441
|
}),
|
|
442
442
|
controller: i
|
|
443
443
|
};
|
|
444
|
-
},
|
|
444
|
+
}, _r = (e, t = {}, r = {}, s = {}, o = !1, c) => {
|
|
445
445
|
const i = xe();
|
|
446
446
|
o && i.abort();
|
|
447
447
|
const n = se(t);
|
|
448
448
|
return {
|
|
449
|
-
call:
|
|
449
|
+
call: z.put(e, r, {
|
|
450
450
|
headers: {
|
|
451
451
|
...n
|
|
452
452
|
},
|
|
@@ -456,12 +456,12 @@ const se = (e) => {
|
|
|
456
456
|
}),
|
|
457
457
|
controller: i
|
|
458
458
|
};
|
|
459
|
-
},
|
|
459
|
+
}, hr = (e, t = {}, r = {}, s = {}, o = !1, c) => {
|
|
460
460
|
const i = xe();
|
|
461
461
|
o && i.abort();
|
|
462
462
|
const n = se(t);
|
|
463
463
|
return {
|
|
464
|
-
call:
|
|
464
|
+
call: z.patch(e, r, {
|
|
465
465
|
headers: {
|
|
466
466
|
...n
|
|
467
467
|
},
|
|
@@ -471,12 +471,12 @@ const se = (e) => {
|
|
|
471
471
|
}),
|
|
472
472
|
controller: i
|
|
473
473
|
};
|
|
474
|
-
},
|
|
474
|
+
}, fr = (e, t = {}, r = {}, s = {}, o = !1, c) => {
|
|
475
475
|
const i = xe();
|
|
476
476
|
o && i.abort();
|
|
477
477
|
const n = se(t);
|
|
478
478
|
return {
|
|
479
|
-
call:
|
|
479
|
+
call: z.delete(e, {
|
|
480
480
|
headers: {
|
|
481
481
|
...n
|
|
482
482
|
},
|
|
@@ -487,7 +487,7 @@ const se = (e) => {
|
|
|
487
487
|
}),
|
|
488
488
|
controller: i
|
|
489
489
|
};
|
|
490
|
-
},
|
|
490
|
+
}, Bt = () => {
|
|
491
491
|
let e;
|
|
492
492
|
return { callEndpoint: async (s) => {
|
|
493
493
|
s.controller && (e = s.controller);
|
|
@@ -501,11 +501,11 @@ const se = (e) => {
|
|
|
501
501
|
}, cancelEndpoint: () => {
|
|
502
502
|
e && e.abort();
|
|
503
503
|
} };
|
|
504
|
-
},
|
|
504
|
+
}, Ht = async (e, t, r = "", s = {}, o = {}) => {
|
|
505
505
|
try {
|
|
506
|
-
const { callEndpoint: c } =
|
|
506
|
+
const { callEndpoint: c } = Bt(), { api: i, headers: n } = e, u = Zn(), l = new URLSearchParams({ session_name: t });
|
|
507
507
|
r && l.append("hash_code", r), u && l.append("sessionId", u);
|
|
508
|
-
const d = `${i}/not-front/next-ui/?${l.toString()}`, _ = se(n), h =
|
|
508
|
+
const d = `${i}/not-front/next-ui/?${l.toString()}`, _ = se(n), h = Be(
|
|
509
509
|
d,
|
|
510
510
|
_,
|
|
511
511
|
s,
|
|
@@ -517,7 +517,7 @@ const se = (e) => {
|
|
|
517
517
|
} catch (c) {
|
|
518
518
|
return console.error(c), Promise.reject(c);
|
|
519
519
|
}
|
|
520
|
-
},
|
|
520
|
+
}, Kt = (e) => {
|
|
521
521
|
const t = e == null ? void 0 : e.toLowerCase();
|
|
522
522
|
switch (t) {
|
|
523
523
|
case "post":
|
|
@@ -529,7 +529,7 @@ const se = (e) => {
|
|
|
529
529
|
default:
|
|
530
530
|
return "get";
|
|
531
531
|
}
|
|
532
|
-
},
|
|
532
|
+
}, xr = (e, t, r, s) => {
|
|
533
533
|
const { url: o, paginationKeys: c, params: i } = e, n = [], u = (c == null ? void 0 : c.page) ?? "page";
|
|
534
534
|
if (n.push(`${u}=${t}`), s != null) {
|
|
535
535
|
const _ = (c == null ? void 0 : c.size) ?? "size";
|
|
@@ -547,7 +547,7 @@ const se = (e) => {
|
|
|
547
547
|
}
|
|
548
548
|
const l = n.join("&");
|
|
549
549
|
return l ? `${o}?${l}` : o;
|
|
550
|
-
},
|
|
550
|
+
}, yr = (e, t, r) => {
|
|
551
551
|
var c;
|
|
552
552
|
const o = { ...(e == null ? void 0 : e.data) ?? {}, ...t ?? {} };
|
|
553
553
|
if (r != null) {
|
|
@@ -555,14 +555,14 @@ const se = (e) => {
|
|
|
555
555
|
o[i] = r;
|
|
556
556
|
}
|
|
557
557
|
return o;
|
|
558
|
-
},
|
|
558
|
+
}, We = (e, t, r, s, o) => {
|
|
559
559
|
const { type: c, url: i, method: n, headers: u } = e;
|
|
560
560
|
if (c === "rest") {
|
|
561
|
-
const l =
|
|
561
|
+
const l = xr(e, t, r, o), d = yr(e, s, o);
|
|
562
562
|
return {
|
|
563
563
|
type: "rest",
|
|
564
564
|
url: l,
|
|
565
|
-
method:
|
|
565
|
+
method: Kt(n),
|
|
566
566
|
headers: u,
|
|
567
567
|
data: d
|
|
568
568
|
};
|
|
@@ -581,7 +581,7 @@ const se = (e) => {
|
|
|
581
581
|
}
|
|
582
582
|
};
|
|
583
583
|
};
|
|
584
|
-
async function
|
|
584
|
+
async function mr(e, t, r, s, o, c) {
|
|
585
585
|
var f, x;
|
|
586
586
|
const i = await o(
|
|
587
587
|
e,
|
|
@@ -612,43 +612,43 @@ async function yr(e, t, r, s, o, c) {
|
|
|
612
612
|
h != null && h.data && H(e, h.data);
|
|
613
613
|
}
|
|
614
614
|
const K = () => {
|
|
615
|
-
const e = v((u) => u), { callEndpoint: t } =
|
|
615
|
+
const e = v((u) => u), { callEndpoint: t } = Bt(), r = async (u, l, d, _, h = !0) => {
|
|
616
616
|
var f;
|
|
617
617
|
try {
|
|
618
618
|
const x = (f = e[u]) == null ? void 0 : f.apiConfig, m = {
|
|
619
619
|
state: { ...d },
|
|
620
620
|
triggerKey: _
|
|
621
621
|
};
|
|
622
|
-
return h &&
|
|
622
|
+
return h && P(u, !0), await Ht(
|
|
623
623
|
x,
|
|
624
624
|
u,
|
|
625
625
|
l,
|
|
626
626
|
m
|
|
627
627
|
);
|
|
628
628
|
} catch (x) {
|
|
629
|
-
throw h &&
|
|
629
|
+
throw h && P(u, !1), console.error("[getNextUI] Error fetching next UI:", x), x;
|
|
630
630
|
}
|
|
631
631
|
}, s = (u, l) => {
|
|
632
632
|
const { url: d, headers: _, data: h, params: f } = u;
|
|
633
|
-
switch (
|
|
633
|
+
switch (Kt(u.method)) {
|
|
634
634
|
case "post":
|
|
635
|
-
return
|
|
635
|
+
return Be(d, _, h, {}, !1, l);
|
|
636
636
|
case "put":
|
|
637
|
-
return ur(d, _, h, {}, !1, l);
|
|
638
|
-
case "patch":
|
|
639
637
|
return _r(d, _, h, {}, !1, l);
|
|
638
|
+
case "patch":
|
|
639
|
+
return hr(d, _, h, {}, !1, l);
|
|
640
640
|
case "delete":
|
|
641
|
-
return
|
|
641
|
+
return fr(d, _, h, f, !1, l);
|
|
642
642
|
case "get":
|
|
643
643
|
default:
|
|
644
|
-
return
|
|
644
|
+
return ur(d, _, f, !1, l);
|
|
645
645
|
}
|
|
646
646
|
}, o = (u, l) => {
|
|
647
647
|
const { url: d, headers: _ } = u, h = {
|
|
648
648
|
query: u == null ? void 0 : u.query,
|
|
649
649
|
variables: (u == null ? void 0 : u.variables) || {}
|
|
650
650
|
};
|
|
651
|
-
return
|
|
651
|
+
return Be(
|
|
652
652
|
d,
|
|
653
653
|
{
|
|
654
654
|
..._,
|
|
@@ -665,7 +665,7 @@ const K = () => {
|
|
|
665
665
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
d &&
|
|
668
|
+
d && P(l, !0);
|
|
669
669
|
try {
|
|
670
670
|
let f;
|
|
671
671
|
switch (u == null ? void 0 : u.type) {
|
|
@@ -690,7 +690,7 @@ const K = () => {
|
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
} finally {
|
|
693
|
-
d &&
|
|
693
|
+
d && P(l, !1);
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
return {
|
|
@@ -698,7 +698,7 @@ const K = () => {
|
|
|
698
698
|
fetchDataSource: c,
|
|
699
699
|
fetchAndGetNextUI: async (u, l, d, _, h) => {
|
|
700
700
|
try {
|
|
701
|
-
|
|
701
|
+
P(u, !0);
|
|
702
702
|
const f = await c(h, u, !1);
|
|
703
703
|
return f && await r(
|
|
704
704
|
u,
|
|
@@ -707,13 +707,13 @@ const K = () => {
|
|
|
707
707
|
_
|
|
708
708
|
);
|
|
709
709
|
} catch (f) {
|
|
710
|
-
throw
|
|
710
|
+
throw P(u, !1), console.error(
|
|
711
711
|
"[fetchAndGetNextUI] Error fetching and navigating:",
|
|
712
712
|
f
|
|
713
713
|
), f;
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
|
-
runGetDataSource: (u, l, d, _) =>
|
|
716
|
+
runGetDataSource: (u, l, d, _) => mr(
|
|
717
717
|
u,
|
|
718
718
|
l,
|
|
719
719
|
d,
|
|
@@ -722,10 +722,10 @@ const K = () => {
|
|
|
722
722
|
c
|
|
723
723
|
)
|
|
724
724
|
};
|
|
725
|
-
},
|
|
726
|
-
accordion:
|
|
727
|
-
accordionBody:
|
|
728
|
-
},
|
|
725
|
+
}, gr = "_accordion_1ri2t_1", pr = "_accordionBody_1ri2t_8", yt = {
|
|
726
|
+
accordion: gr,
|
|
727
|
+
accordionBody: pr
|
|
728
|
+
}, br = (e) => {
|
|
729
729
|
const {
|
|
730
730
|
userFlow: t,
|
|
731
731
|
pageId: r,
|
|
@@ -737,45 +737,45 @@ const K = () => {
|
|
|
737
737
|
...u
|
|
738
738
|
} = e, { getNextUI: l } = K(), [d, _] = O(
|
|
739
739
|
u.checkboxChecked || !1
|
|
740
|
-
), { disabled: h } =
|
|
740
|
+
), { disabled: h } = L(
|
|
741
741
|
t,
|
|
742
742
|
o
|
|
743
743
|
), f = T(t, r, n), x = i ? T(t, r, i) : void 0, m = c ? T(t, r, c) : void 0, y = R(
|
|
744
744
|
async (b) => {
|
|
745
|
-
var
|
|
745
|
+
var w;
|
|
746
746
|
try {
|
|
747
|
-
const
|
|
748
|
-
_(
|
|
749
|
-
const
|
|
750
|
-
...(
|
|
751
|
-
[s]:
|
|
747
|
+
const p = b.target.checked;
|
|
748
|
+
_(p);
|
|
749
|
+
const C = {
|
|
750
|
+
...(w = v.getState()[t]) == null ? void 0 : w.entries,
|
|
751
|
+
[s]: p
|
|
752
752
|
};
|
|
753
|
-
if (B(t,
|
|
753
|
+
if (B(t, C), u.actionType === "GO_TO_NEXT_UI") {
|
|
754
754
|
const N = await l(
|
|
755
755
|
t,
|
|
756
756
|
r,
|
|
757
|
-
|
|
757
|
+
C,
|
|
758
758
|
s
|
|
759
759
|
);
|
|
760
760
|
N != null && N.data && H(t, N == null ? void 0 : N.data);
|
|
761
761
|
}
|
|
762
|
-
} catch (
|
|
763
|
-
console.error("Error in accordion checkbox action:",
|
|
762
|
+
} catch (p) {
|
|
763
|
+
console.error("Error in accordion checkbox action:", p), alert(JSON.stringify(p));
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
766
|
[t, r, s, u.actionType, l]
|
|
767
|
-
),
|
|
767
|
+
), g = u.disabled || h, j = {
|
|
768
768
|
...u,
|
|
769
|
-
className:
|
|
770
|
-
disabled:
|
|
769
|
+
className: yt.accordion,
|
|
770
|
+
disabled: g,
|
|
771
771
|
checkboxChecked: d,
|
|
772
772
|
onChanceCheckbox: u.hasCheckbox ? y : void 0,
|
|
773
|
-
actionContent: x ? /* @__PURE__ */ a.jsx(a.Fragment, { children: x.map((b,
|
|
774
|
-
customContent: m ? /* @__PURE__ */ a.jsx(a.Fragment, { children: m.map((b,
|
|
775
|
-
children: f ? /* @__PURE__ */ a.jsx("section", { className:
|
|
773
|
+
actionContent: x ? /* @__PURE__ */ a.jsx(a.Fragment, { children: x.map((b, w) => /* @__PURE__ */ a.jsx(A, { children: b }, `accordion-action-${w}`)) }) : void 0,
|
|
774
|
+
customContent: m ? /* @__PURE__ */ a.jsx(a.Fragment, { children: m.map((b, w) => /* @__PURE__ */ a.jsx(A, { children: b }, `accordion-custom-${w}`)) }) : void 0,
|
|
775
|
+
children: f ? /* @__PURE__ */ a.jsx("section", { className: yt.accordionBody, children: f.map((b, w) => /* @__PURE__ */ a.jsx(A, { children: b }, `accordion-child-${w}`)) }) : void 0
|
|
776
776
|
};
|
|
777
777
|
return /* @__PURE__ */ a.jsx(an, { ...j });
|
|
778
|
-
},
|
|
778
|
+
}, jr = (e) => {
|
|
779
779
|
const t = fe.useThemeStore((i) => i.theme.mode), r = e.dataSource, s = S(() => ({
|
|
780
780
|
url: e.dataSource.url,
|
|
781
781
|
method: e.dataSource.method,
|
|
@@ -808,7 +808,7 @@ const K = () => {
|
|
|
808
808
|
e.initialSuggestions,
|
|
809
809
|
t
|
|
810
810
|
]), e.onResolveProps ? null : /* @__PURE__ */ a.jsx(
|
|
811
|
-
|
|
811
|
+
qn,
|
|
812
812
|
{
|
|
813
813
|
dataSource: s,
|
|
814
814
|
locale: o,
|
|
@@ -817,8 +817,8 @@ const K = () => {
|
|
|
817
817
|
theme: t
|
|
818
818
|
}
|
|
819
819
|
);
|
|
820
|
-
},
|
|
821
|
-
promptCodeEditor:
|
|
820
|
+
}, Cr = "_promptCodeEditor_1d57s_1", Nr = {
|
|
821
|
+
promptCodeEditor: Cr
|
|
822
822
|
}, wr = (e) => {
|
|
823
823
|
const {
|
|
824
824
|
userFlow: t,
|
|
@@ -833,28 +833,28 @@ const K = () => {
|
|
|
833
833
|
codeBlockLabel: d
|
|
834
834
|
} = e, _ = fe.useThemeStore((b) => b.theme.mode), [h, f] = O(
|
|
835
835
|
s || ""
|
|
836
|
-
), { disabled: x } =
|
|
836
|
+
), { disabled: x } = L(
|
|
837
837
|
t,
|
|
838
838
|
i
|
|
839
|
-
), m = c ?? x, y = o ?? "json",
|
|
839
|
+
), m = c ?? x, y = o ?? "json", g = {
|
|
840
840
|
url: (n == null ? void 0 : n.url) || "",
|
|
841
841
|
method: (n == null ? void 0 : n.method) || "post",
|
|
842
842
|
headers: n == null ? void 0 : n.headers,
|
|
843
843
|
body: n == null ? void 0 : n.data
|
|
844
844
|
}, j = (b) => {
|
|
845
845
|
f(b);
|
|
846
|
-
const
|
|
846
|
+
const w = {
|
|
847
847
|
[r]: b
|
|
848
848
|
};
|
|
849
|
-
B(t,
|
|
849
|
+
B(t, w);
|
|
850
850
|
};
|
|
851
851
|
return U(() => {
|
|
852
852
|
s !== void 0 && s !== h && f(s);
|
|
853
|
-
}, [s]), /* @__PURE__ */ a.jsx("section", { className:
|
|
854
|
-
|
|
853
|
+
}, [s]), /* @__PURE__ */ a.jsx("section", { className: Nr.promptCodeEditor, children: /* @__PURE__ */ a.jsx(
|
|
854
|
+
Bn,
|
|
855
855
|
{
|
|
856
856
|
themeMode: _,
|
|
857
|
-
requestConfig:
|
|
857
|
+
requestConfig: g,
|
|
858
858
|
language: y,
|
|
859
859
|
disabled: m,
|
|
860
860
|
inputLabel: u,
|
|
@@ -864,9 +864,9 @@ const K = () => {
|
|
|
864
864
|
onCodeChange: j
|
|
865
865
|
}
|
|
866
866
|
) });
|
|
867
|
-
},
|
|
868
|
-
summaryCard:
|
|
869
|
-
},
|
|
867
|
+
}, vr = "_summaryCard_jva4h_1", Er = {
|
|
868
|
+
summaryCard: vr
|
|
869
|
+
}, Tr = (e) => {
|
|
870
870
|
const t = e.dataSource, r = S(() => ({
|
|
871
871
|
url: e.dataSource.url,
|
|
872
872
|
method: e.dataSource.method,
|
|
@@ -889,34 +889,14 @@ const K = () => {
|
|
|
889
889
|
locale: s,
|
|
890
890
|
translations: o
|
|
891
891
|
});
|
|
892
|
-
}, [e.onResolveProps, r, s, o]), e.onResolveProps ? null : /* @__PURE__ */ a.jsx("section", { className:
|
|
893
|
-
|
|
892
|
+
}, [e.onResolveProps, r, s, o]), e.onResolveProps ? null : /* @__PURE__ */ a.jsx("section", { className: Er.summaryCard, children: /* @__PURE__ */ a.jsx(
|
|
893
|
+
Hn,
|
|
894
894
|
{
|
|
895
895
|
dataSource: r,
|
|
896
896
|
locale: s,
|
|
897
897
|
translations: o
|
|
898
898
|
}
|
|
899
899
|
) });
|
|
900
|
-
}, Tr = "_body_14tsv_1", Ar = "_body_content_14tsv_5", xt = {
|
|
901
|
-
body: Tr,
|
|
902
|
-
body_content: Ar
|
|
903
|
-
}, kr = ({ inputs: e }) => /* @__PURE__ */ a.jsx("section", { className: xt.body, children: /* @__PURE__ */ a.jsx("div", { className: xt.body_content, children: e.map((t, r) => /* @__PURE__ */ a.jsx(A, { children: t }, r)) }) }), Sr = "_boxNotFront_67q2e_1", Or = "_slotStack_67q2e_5", yt = {
|
|
904
|
-
boxNotFront: Sr,
|
|
905
|
-
slotStack: Or
|
|
906
|
-
}, Rr = (e) => {
|
|
907
|
-
const {
|
|
908
|
-
userFlow: t,
|
|
909
|
-
pageId: r,
|
|
910
|
-
component: s,
|
|
911
|
-
hash: o,
|
|
912
|
-
responseKey: c,
|
|
913
|
-
content: i
|
|
914
|
-
} = e, n = fe.useThemeStore((d) => d.theme.mode) === "dark", u = T(
|
|
915
|
-
t,
|
|
916
|
-
r,
|
|
917
|
-
i != null && i.length ? i : null
|
|
918
|
-
), l = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: yt.slotStack, children: u.map((d, _) => /* @__PURE__ */ a.jsx(A, { children: d }, `box-${o}-${_}`)) }) : null;
|
|
919
|
-
return /* @__PURE__ */ a.jsx(cn, { className: yt.boxNotFront, darkMode: n, children: l });
|
|
920
900
|
};
|
|
921
901
|
var De = { exports: {} };
|
|
922
902
|
/*!
|
|
@@ -925,7 +905,7 @@ var De = { exports: {} };
|
|
|
925
905
|
http://jedwatson.github.io/classnames
|
|
926
906
|
*/
|
|
927
907
|
var mt;
|
|
928
|
-
function
|
|
908
|
+
function Ar() {
|
|
929
909
|
return mt || (mt = 1, (function(e) {
|
|
930
910
|
(function() {
|
|
931
911
|
var t = {}.hasOwnProperty;
|
|
@@ -957,15 +937,36 @@ function Dr() {
|
|
|
957
937
|
})();
|
|
958
938
|
})(De)), De.exports;
|
|
959
939
|
}
|
|
960
|
-
var
|
|
961
|
-
const
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
},
|
|
940
|
+
var kr = Ar();
|
|
941
|
+
const J = /* @__PURE__ */ or(kr), Sr = "_body_6n5z9_1", Or = "_body__embedded_6n5z9_5", Rr = "_body_content_6n5z9_8", Ie = {
|
|
942
|
+
body: Sr,
|
|
943
|
+
body__embedded: Or,
|
|
944
|
+
body_content: Rr
|
|
945
|
+
}, Dr = ({ inputs: e, embedded: t }) => /* @__PURE__ */ a.jsx("section", { className: J(Ie.body, t && Ie.body__embedded), children: /* @__PURE__ */ a.jsx("div", { className: Ie.body_content, children: e.map((r, s) => /* @__PURE__ */ a.jsx(A, { children: r }, s)) }) }), Ir = "_boxNotFront_67q2e_1", $r = "_slotStack_67q2e_5", gt = {
|
|
946
|
+
boxNotFront: Ir,
|
|
947
|
+
slotStack: $r
|
|
948
|
+
}, Lr = (e) => {
|
|
949
|
+
const {
|
|
950
|
+
userFlow: t,
|
|
951
|
+
pageId: r,
|
|
952
|
+
component: s,
|
|
953
|
+
hash: o,
|
|
954
|
+
responseKey: c,
|
|
955
|
+
content: i
|
|
956
|
+
} = e, n = fe.useThemeStore((d) => d.theme.mode) === "dark", u = T(
|
|
957
|
+
t,
|
|
958
|
+
r,
|
|
959
|
+
i != null && i.length ? i : null
|
|
960
|
+
), l = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: gt.slotStack, children: u.map((d, _) => /* @__PURE__ */ a.jsx(A, { children: d }, `box-${o}-${_}`)) }) : null;
|
|
961
|
+
return /* @__PURE__ */ a.jsx(cn, { className: gt.boxNotFront, darkMode: n, children: l });
|
|
962
|
+
}, qr = "_fieldset_1xrth_1", Br = "_fieldsetColumn_1xrth_8", Hr = "_legend_1xrth_14", Kr = "_options_1xrth_20", Ur = "_optionsRow_1xrth_25", Gr = "_optionsColumn_1xrth_36", ee = {
|
|
963
|
+
fieldset: qr,
|
|
964
|
+
fieldsetColumn: Br,
|
|
965
|
+
legend: Hr,
|
|
966
|
+
options: Kr,
|
|
967
|
+
optionsRow: Ur,
|
|
968
|
+
optionsColumn: Gr
|
|
969
|
+
}, Mr = (e) => {
|
|
969
970
|
const {
|
|
970
971
|
userFlow: t,
|
|
971
972
|
pageId: r,
|
|
@@ -977,35 +978,35 @@ const te = /* @__PURE__ */ sr($r), Ir = "_fieldset_1xrth_1", Lr = "_fieldsetColu
|
|
|
977
978
|
dependencies: u,
|
|
978
979
|
direction: l,
|
|
979
980
|
items: d
|
|
980
|
-
} = e, _ = l === "column" ? "column" : "row", { getNextUI: h } = K(), { disabled: f } =
|
|
981
|
+
} = e, _ = l === "column" ? "column" : "row", { getNextUI: h } = K(), { disabled: f } = L(
|
|
981
982
|
t,
|
|
982
983
|
u
|
|
983
984
|
), x = v(
|
|
984
985
|
(b) => {
|
|
985
|
-
var
|
|
986
|
-
return (
|
|
986
|
+
var w, p;
|
|
987
|
+
return (p = (w = b[t]) == null ? void 0 : w.entries) == null ? void 0 : p[s];
|
|
987
988
|
}
|
|
988
|
-
), m = x != null ? String(x) : c ?? "", y = f,
|
|
989
|
+
), m = x != null ? String(x) : c ?? "", y = f, g = S(() => o ? i ? `${o} *` : o : null, [o, i]), j = R(
|
|
989
990
|
async (b) => {
|
|
990
|
-
var
|
|
991
|
+
var w;
|
|
991
992
|
if (!y)
|
|
992
993
|
try {
|
|
993
|
-
const
|
|
994
|
-
...(
|
|
994
|
+
const p = {
|
|
995
|
+
...(w = v.getState()[t]) == null ? void 0 : w.entries,
|
|
995
996
|
[s]: b
|
|
996
997
|
};
|
|
997
|
-
if (B(t,
|
|
998
|
+
if (B(t, p), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
|
|
998
999
|
const E = await h(
|
|
999
1000
|
t,
|
|
1000
1001
|
r,
|
|
1001
|
-
|
|
1002
|
+
p,
|
|
1002
1003
|
s,
|
|
1003
1004
|
n === "GO_TO_NEXT_UI"
|
|
1004
1005
|
);
|
|
1005
1006
|
E != null && E.data && H(t, E == null ? void 0 : E.data);
|
|
1006
1007
|
}
|
|
1007
|
-
} catch (
|
|
1008
|
-
alert(JSON.stringify(
|
|
1008
|
+
} catch (p) {
|
|
1009
|
+
alert(JSON.stringify(p));
|
|
1009
1010
|
}
|
|
1010
1011
|
},
|
|
1011
1012
|
[
|
|
@@ -1020,18 +1021,18 @@ const te = /* @__PURE__ */ sr($r), Ir = "_fieldset_1xrth_1", Lr = "_fieldsetColu
|
|
|
1020
1021
|
return /* @__PURE__ */ a.jsxs(
|
|
1021
1022
|
"fieldset",
|
|
1022
1023
|
{
|
|
1023
|
-
className:
|
|
1024
|
-
|
|
1025
|
-
_ === "column" &&
|
|
1024
|
+
className: J(
|
|
1025
|
+
ee.fieldset,
|
|
1026
|
+
_ === "column" && ee.fieldsetColumn
|
|
1026
1027
|
),
|
|
1027
1028
|
children: [
|
|
1028
|
-
|
|
1029
|
+
g ? /* @__PURE__ */ a.jsx("legend", { className: ee.legend, children: g }) : null,
|
|
1029
1030
|
/* @__PURE__ */ a.jsx(
|
|
1030
1031
|
"div",
|
|
1031
1032
|
{
|
|
1032
|
-
className:
|
|
1033
|
-
|
|
1034
|
-
_ === "column" ?
|
|
1033
|
+
className: J(
|
|
1034
|
+
ee.options,
|
|
1035
|
+
_ === "column" ? ee.optionsColumn : ee.optionsRow
|
|
1035
1036
|
),
|
|
1036
1037
|
children: d.map((b) => /* @__PURE__ */ a.jsx(
|
|
1037
1038
|
ln,
|
|
@@ -1052,7 +1053,7 @@ const te = /* @__PURE__ */ sr($r), Ir = "_fieldset_1xrth_1", Lr = "_fieldsetColu
|
|
|
1052
1053
|
]
|
|
1053
1054
|
}
|
|
1054
1055
|
);
|
|
1055
|
-
},
|
|
1056
|
+
}, zr = ({
|
|
1056
1057
|
userFlow: e,
|
|
1057
1058
|
pageId: t,
|
|
1058
1059
|
component: r,
|
|
@@ -1061,7 +1062,7 @@ const te = /* @__PURE__ */ sr($r), Ir = "_fieldset_1xrth_1", Lr = "_fieldsetColu
|
|
|
1061
1062
|
items: c,
|
|
1062
1063
|
itemActive: i,
|
|
1063
1064
|
darkMode: n
|
|
1064
|
-
}) => /* @__PURE__ */ a.jsx(dn, { items: c, itemActive: i, darkMode: n }),
|
|
1065
|
+
}) => /* @__PURE__ */ a.jsx(dn, { items: c, itemActive: i, darkMode: n }), Vr = ({
|
|
1065
1066
|
userFlow: e,
|
|
1066
1067
|
pageId: t,
|
|
1067
1068
|
component: r,
|
|
@@ -1070,7 +1071,7 @@ const te = /* @__PURE__ */ sr($r), Ir = "_fieldset_1xrth_1", Lr = "_fieldsetColu
|
|
|
1070
1071
|
total: c,
|
|
1071
1072
|
done: i,
|
|
1072
1073
|
inProgress: n
|
|
1073
|
-
}) => /* @__PURE__ */ a.jsx(un, { total: c, done: i, inProgress: n }),
|
|
1074
|
+
}) => /* @__PURE__ */ a.jsx(un, { total: c, done: i, inProgress: n }), Je = (e, t) => {
|
|
1074
1075
|
const { getNextUI: r } = K();
|
|
1075
1076
|
return R(
|
|
1076
1077
|
async ({ hashCode: s, responseKey: o }) => {
|
|
@@ -1089,12 +1090,12 @@ const te = /* @__PURE__ */ sr($r), Ir = "_fieldset_1xrth_1", Lr = "_fieldsetColu
|
|
|
1089
1090
|
},
|
|
1090
1091
|
[t, r, e]
|
|
1091
1092
|
);
|
|
1092
|
-
},
|
|
1093
|
+
}, Xr = ({
|
|
1093
1094
|
userFlow: e,
|
|
1094
1095
|
items: t,
|
|
1095
1096
|
responseKey: r
|
|
1096
1097
|
}) => {
|
|
1097
|
-
const s =
|
|
1098
|
+
const s = Je(
|
|
1098
1099
|
e,
|
|
1099
1100
|
r
|
|
1100
1101
|
), o = S(
|
|
@@ -1120,7 +1121,7 @@ function oe(e, t) {
|
|
|
1120
1121
|
async (i) => {
|
|
1121
1122
|
var f, x;
|
|
1122
1123
|
const { responseKey: n, actionType: u, dataSource: l, redirectUrl: d, dependencies: _ } = i, h = (f = v.getState()[e]) == null ? void 0 : f.entries;
|
|
1123
|
-
if (!
|
|
1124
|
+
if (!qt(h, _))
|
|
1124
1125
|
try {
|
|
1125
1126
|
const m = {
|
|
1126
1127
|
...(x = v.getState()[e]) == null ? void 0 : x.entries,
|
|
@@ -1128,7 +1129,7 @@ function oe(e, t) {
|
|
|
1128
1129
|
};
|
|
1129
1130
|
switch (B(e, m), u) {
|
|
1130
1131
|
case "CLOSE_MODAL":
|
|
1131
|
-
|
|
1132
|
+
Xe(e, !1);
|
|
1132
1133
|
break;
|
|
1133
1134
|
case "CLOSE_DRAWER":
|
|
1134
1135
|
_e(e, !1);
|
|
@@ -1200,7 +1201,7 @@ function oe(e, t) {
|
|
|
1200
1201
|
]
|
|
1201
1202
|
);
|
|
1202
1203
|
}
|
|
1203
|
-
const
|
|
1204
|
+
const Wr = (e) => {
|
|
1204
1205
|
const {
|
|
1205
1206
|
userFlow: t,
|
|
1206
1207
|
pageId: r,
|
|
@@ -1213,17 +1214,17 @@ const zr = (e) => {
|
|
|
1213
1214
|
dependencies: l,
|
|
1214
1215
|
onClick: d,
|
|
1215
1216
|
..._
|
|
1216
|
-
} = e, h = oe(t, r), { disabled: f } =
|
|
1217
|
+
} = e, h = oe(t, r), { disabled: f } = L(
|
|
1217
1218
|
t,
|
|
1218
1219
|
l
|
|
1219
1220
|
), x = {
|
|
1220
1221
|
..._,
|
|
1221
1222
|
children: i ?? c
|
|
1222
|
-
}, m = (x == null ? void 0 : x.disabled) ?? f, [y,
|
|
1223
|
+
}, m = (x == null ? void 0 : x.disabled) ?? f, [y, g] = O(!1), j = he(!1), b = R(async () => {
|
|
1223
1224
|
if (j.current)
|
|
1224
1225
|
return;
|
|
1225
|
-
const
|
|
1226
|
-
|
|
1226
|
+
const w = o === "FETCH_DATA_SOURCE";
|
|
1227
|
+
w && (j.current = !0, g(!0));
|
|
1227
1228
|
try {
|
|
1228
1229
|
await h({
|
|
1229
1230
|
responseKey: s,
|
|
@@ -1232,10 +1233,10 @@ const zr = (e) => {
|
|
|
1232
1233
|
redirectUrl: u,
|
|
1233
1234
|
dependencies: l
|
|
1234
1235
|
});
|
|
1235
|
-
} catch (
|
|
1236
|
-
console.error("[ButtonNotFront] Action failed:",
|
|
1236
|
+
} catch (p) {
|
|
1237
|
+
console.error("[ButtonNotFront] Action failed:", p);
|
|
1237
1238
|
} finally {
|
|
1238
|
-
|
|
1239
|
+
w && (j.current = !1, g(!1));
|
|
1239
1240
|
}
|
|
1240
1241
|
}, [
|
|
1241
1242
|
o,
|
|
@@ -1254,9 +1255,9 @@ const zr = (e) => {
|
|
|
1254
1255
|
onClick: () => !m && !y && (d ?? b)()
|
|
1255
1256
|
}
|
|
1256
1257
|
);
|
|
1257
|
-
},
|
|
1258
|
-
slotStack:
|
|
1259
|
-
},
|
|
1258
|
+
}, Jr = "_slotStack_12u4t_5", He = {
|
|
1259
|
+
slotStack: Jr
|
|
1260
|
+
}, Yr = (e) => {
|
|
1260
1261
|
const {
|
|
1261
1262
|
userFlow: t,
|
|
1262
1263
|
pageId: r,
|
|
@@ -1267,7 +1268,7 @@ const zr = (e) => {
|
|
|
1267
1268
|
content: n,
|
|
1268
1269
|
actionContent: u,
|
|
1269
1270
|
...l
|
|
1270
|
-
} = e, { disabled: d } =
|
|
1271
|
+
} = e, { disabled: d } = L(
|
|
1271
1272
|
t,
|
|
1272
1273
|
i
|
|
1273
1274
|
), _ = T(
|
|
@@ -1278,7 +1279,7 @@ const zr = (e) => {
|
|
|
1278
1279
|
t,
|
|
1279
1280
|
r,
|
|
1280
1281
|
u && u.length > 0 ? u : null
|
|
1281
|
-
), f = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
1282
|
+
), f = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: He.slotStack, children: _.map((y, g) => /* @__PURE__ */ a.jsx(A, { children: y }, `card-accordion-body-${o}-${g}`)) }) : void 0, x = h && h.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: He.slotStack, children: h.map((y, g) => /* @__PURE__ */ a.jsx(A, { children: y }, `card-accordion-actions-${o}-${g}`)) }) : void 0, m = l.disabled || d;
|
|
1282
1283
|
return /* @__PURE__ */ a.jsx(
|
|
1283
1284
|
fn,
|
|
1284
1285
|
{
|
|
@@ -1288,10 +1289,10 @@ const zr = (e) => {
|
|
|
1288
1289
|
children: f ?? null
|
|
1289
1290
|
}
|
|
1290
1291
|
);
|
|
1291
|
-
},
|
|
1292
|
-
cardNotFront:
|
|
1293
|
-
slotStack:
|
|
1294
|
-
},
|
|
1292
|
+
}, Qr = "_cardNotFront_2xt48_1", Zr = "_slotStack_2xt48_5", pt = {
|
|
1293
|
+
cardNotFront: Qr,
|
|
1294
|
+
slotStack: Zr
|
|
1295
|
+
}, Fr = (e) => {
|
|
1295
1296
|
const {
|
|
1296
1297
|
userFlow: t,
|
|
1297
1298
|
pageId: r,
|
|
@@ -1305,24 +1306,24 @@ const zr = (e) => {
|
|
|
1305
1306
|
dataSource: d,
|
|
1306
1307
|
redirectUrl: _,
|
|
1307
1308
|
dependencies: h
|
|
1308
|
-
} = e, { getNextUI: f, fetchDataSource: x, fetchAndGetNextUI: m, runGetDataSource: y } = K(), { disabled:
|
|
1309
|
+
} = e, { getNextUI: f, fetchDataSource: x, fetchAndGetNextUI: m, runGetDataSource: y } = K(), { disabled: g } = L(
|
|
1309
1310
|
t,
|
|
1310
1311
|
h
|
|
1311
|
-
), j = u ??
|
|
1312
|
+
), j = u ?? g, b = T(
|
|
1312
1313
|
t,
|
|
1313
1314
|
r,
|
|
1314
1315
|
i && i.length > 0 ? i : null
|
|
1315
|
-
),
|
|
1316
|
-
var
|
|
1316
|
+
), w = b && b.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: pt.slotStack, children: b.map((C, N) => /* @__PURE__ */ a.jsx(A, { children: C }, `card-body-${o}-${N}`)) }) : null, p = R(async () => {
|
|
1317
|
+
var C;
|
|
1317
1318
|
if (!(!l || j))
|
|
1318
1319
|
try {
|
|
1319
1320
|
const N = {
|
|
1320
|
-
...(
|
|
1321
|
+
...(C = v.getState()[t]) == null ? void 0 : C.entries,
|
|
1321
1322
|
[c]: { status: 200 }
|
|
1322
1323
|
};
|
|
1323
1324
|
switch (B(t, N), l) {
|
|
1324
1325
|
case "CLOSE_MODAL":
|
|
1325
|
-
|
|
1326
|
+
Xe(t, !1);
|
|
1326
1327
|
break;
|
|
1327
1328
|
case "CLOSE_DRAWER":
|
|
1328
1329
|
_e(t, !1);
|
|
@@ -1332,14 +1333,14 @@ const zr = (e) => {
|
|
|
1332
1333
|
break;
|
|
1333
1334
|
case "GO_TO_NEXT_UI":
|
|
1334
1335
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1335
|
-
const
|
|
1336
|
+
const I = await f(
|
|
1336
1337
|
t,
|
|
1337
1338
|
r,
|
|
1338
1339
|
N,
|
|
1339
1340
|
c,
|
|
1340
1341
|
l === "GO_TO_NEXT_UI"
|
|
1341
1342
|
);
|
|
1342
|
-
|
|
1343
|
+
I != null && I.data && H(t, I == null ? void 0 : I.data);
|
|
1343
1344
|
break;
|
|
1344
1345
|
}
|
|
1345
1346
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
@@ -1387,14 +1388,14 @@ const zr = (e) => {
|
|
|
1387
1388
|
return /* @__PURE__ */ a.jsx(
|
|
1388
1389
|
xn,
|
|
1389
1390
|
{
|
|
1390
|
-
className:
|
|
1391
|
+
className: pt.cardNotFront,
|
|
1391
1392
|
colorId: n,
|
|
1392
1393
|
disabled: j,
|
|
1393
|
-
onClick: l && !j ? () => void
|
|
1394
|
-
children:
|
|
1394
|
+
onClick: l && !j ? () => void p() : void 0,
|
|
1395
|
+
children: w
|
|
1395
1396
|
}
|
|
1396
1397
|
);
|
|
1397
|
-
},
|
|
1398
|
+
}, Pr = (e) => {
|
|
1398
1399
|
const {
|
|
1399
1400
|
userFlow: t,
|
|
1400
1401
|
pageId: r,
|
|
@@ -1410,11 +1411,11 @@ const zr = (e) => {
|
|
|
1410
1411
|
l && i.length > 0 ? i : null
|
|
1411
1412
|
);
|
|
1412
1413
|
let _;
|
|
1413
|
-
return d && d.length > 0 ? _ = /* @__PURE__ */ a.jsxs("div", { className:
|
|
1414
|
-
n ? /* @__PURE__ */ a.jsx(
|
|
1414
|
+
return d && d.length > 0 ? _ = /* @__PURE__ */ a.jsxs("div", { className: He.slotStack, children: [
|
|
1415
|
+
n ? /* @__PURE__ */ a.jsx(Tt, { type: "sm", children: n }) : null,
|
|
1415
1416
|
d.map((h, f) => /* @__PURE__ */ a.jsx(A, { children: h }, `card-notification-body-${o}-${f}`))
|
|
1416
1417
|
] }) : _ = (typeof i == "string" ? i : void 0) ?? n, /* @__PURE__ */ a.jsx(je, { ...u, children: _ });
|
|
1417
|
-
}, $e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e,
|
|
1418
|
+
}, $e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, es = (e, t) => {
|
|
1418
1419
|
if (!t || e == null)
|
|
1419
1420
|
return null;
|
|
1420
1421
|
const { extractionJsonPath: r, injectionJsonPath: s } = t, o = q.value(e, r);
|
|
@@ -1437,10 +1438,10 @@ const zr = (e) => {
|
|
|
1437
1438
|
const f = {};
|
|
1438
1439
|
for (const [x, m] of Object.entries(r))
|
|
1439
1440
|
if (typeof m == "object" && "path" in m) {
|
|
1440
|
-
const y = m,
|
|
1441
|
-
y.translations && String(
|
|
1442
|
-
y.translations[String(
|
|
1443
|
-
) : f[x] = $e(
|
|
1441
|
+
const y = m, g = (_ = q.query(d, y.path)) == null ? void 0 : _[0];
|
|
1442
|
+
y.translations && String(g) in y.translations ? f[x] = $e(
|
|
1443
|
+
y.translations[String(g)]
|
|
1444
|
+
) : f[x] = $e(g);
|
|
1444
1445
|
} else {
|
|
1445
1446
|
const y = m;
|
|
1446
1447
|
f[x] = $e((h = q.query(d, y)) == null ? void 0 : h[0]);
|
|
@@ -1467,11 +1468,11 @@ const zr = (e) => {
|
|
|
1467
1468
|
children: c
|
|
1468
1469
|
}) => {
|
|
1469
1470
|
const i = t ?? ne, n = r ? { layout: r } : {};
|
|
1470
|
-
return e ? /* @__PURE__ */ a.jsx(o, { width: e, height: i, data: s, ...n, children: c }) : /* @__PURE__ */ a.jsx(
|
|
1471
|
-
},
|
|
1471
|
+
return e ? /* @__PURE__ */ a.jsx(o, { width: e, height: i, data: s, ...n, children: c }) : /* @__PURE__ */ a.jsx(Ue, { width: "100%", height: i, children: /* @__PURE__ */ a.jsx(o, { data: s, ...n, children: c }) });
|
|
1472
|
+
}, V = ({ withPadding: e = !1 }) => {
|
|
1472
1473
|
const t = (r) => /* @__PURE__ */ a.jsx("span", { style: { color: k.labelColor }, children: r });
|
|
1473
1474
|
return /* @__PURE__ */ a.jsx(
|
|
1474
|
-
|
|
1475
|
+
Kn,
|
|
1475
1476
|
{
|
|
1476
1477
|
formatter: t,
|
|
1477
1478
|
wrapperStyle: {
|
|
@@ -1481,7 +1482,7 @@ const zr = (e) => {
|
|
|
1481
1482
|
}
|
|
1482
1483
|
}
|
|
1483
1484
|
);
|
|
1484
|
-
},
|
|
1485
|
+
}, ts = ({
|
|
1485
1486
|
active: e,
|
|
1486
1487
|
payload: t,
|
|
1487
1488
|
label: r,
|
|
@@ -1517,12 +1518,12 @@ const zr = (e) => {
|
|
|
1517
1518
|
defaultIndex: r,
|
|
1518
1519
|
hideContent: s = !1
|
|
1519
1520
|
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1520
|
-
|
|
1521
|
+
Un,
|
|
1521
1522
|
{
|
|
1522
1523
|
defaultIndex: r,
|
|
1523
1524
|
cursor: s ? !1 : void 0,
|
|
1524
1525
|
content: s ? () => null : (o) => /* @__PURE__ */ a.jsx(
|
|
1525
|
-
|
|
1526
|
+
ts,
|
|
1526
1527
|
{
|
|
1527
1528
|
...o,
|
|
1528
1529
|
tooltipKey: e,
|
|
@@ -1531,7 +1532,7 @@ const zr = (e) => {
|
|
|
1531
1532
|
)
|
|
1532
1533
|
}
|
|
1533
1534
|
), ce = ({ dataKey: e, hide: t = !1, type: r }) => /* @__PURE__ */ a.jsx(
|
|
1534
|
-
|
|
1535
|
+
Gn,
|
|
1535
1536
|
{
|
|
1536
1537
|
...e ? { dataKey: e } : {},
|
|
1537
1538
|
...r ? { type: r } : {},
|
|
@@ -1541,14 +1542,14 @@ const zr = (e) => {
|
|
|
1541
1542
|
fontSize: k.fontSize
|
|
1542
1543
|
}
|
|
1543
1544
|
}
|
|
1544
|
-
),
|
|
1545
|
+
), Y = ({
|
|
1545
1546
|
type: e,
|
|
1546
1547
|
dataKey: t,
|
|
1547
1548
|
width: r,
|
|
1548
1549
|
yAxisId: s,
|
|
1549
1550
|
orientation: o
|
|
1550
1551
|
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1551
|
-
|
|
1552
|
+
Mn,
|
|
1552
1553
|
{
|
|
1553
1554
|
...e ? { type: e } : {},
|
|
1554
1555
|
...t ? { dataKey: t } : {},
|
|
@@ -1561,16 +1562,16 @@ const zr = (e) => {
|
|
|
1561
1562
|
},
|
|
1562
1563
|
tickMargin: 4
|
|
1563
1564
|
}
|
|
1564
|
-
),
|
|
1565
|
+
), ns = (e) => {
|
|
1565
1566
|
const { data: t, xKey: r, yKeys: s, tooltipKey: o, width: c } = e;
|
|
1566
|
-
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart:
|
|
1567
|
+
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart: zn, children: [
|
|
1567
1568
|
/* @__PURE__ */ a.jsx(re, { strokeDasharray: "3 3" }),
|
|
1568
1569
|
/* @__PURE__ */ a.jsx(ce, { dataKey: r }),
|
|
1569
|
-
/* @__PURE__ */ a.jsx(
|
|
1570
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1570
1571
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o }),
|
|
1571
|
-
/* @__PURE__ */ a.jsx(
|
|
1572
|
+
/* @__PURE__ */ a.jsx(V, {}),
|
|
1572
1573
|
s.map((i, n) => /* @__PURE__ */ a.jsx(
|
|
1573
|
-
|
|
1574
|
+
Ot,
|
|
1574
1575
|
{
|
|
1575
1576
|
type: "monotone",
|
|
1576
1577
|
dataKey: i,
|
|
@@ -1580,16 +1581,16 @@ const zr = (e) => {
|
|
|
1580
1581
|
i
|
|
1581
1582
|
))
|
|
1582
1583
|
] });
|
|
1583
|
-
},
|
|
1584
|
+
}, rs = (e) => {
|
|
1584
1585
|
const { data: t, yKeys: r, xKey: s, tooltipKey: o, width: c } = e;
|
|
1585
|
-
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart:
|
|
1586
|
+
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart: Ge, children: [
|
|
1586
1587
|
/* @__PURE__ */ a.jsx(re, { strokeDasharray: "3 3" }),
|
|
1587
1588
|
/* @__PURE__ */ a.jsx(ce, { dataKey: s }),
|
|
1588
|
-
/* @__PURE__ */ a.jsx(
|
|
1589
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1589
1590
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o }),
|
|
1590
|
-
/* @__PURE__ */ a.jsx(
|
|
1591
|
+
/* @__PURE__ */ a.jsx(V, {}),
|
|
1591
1592
|
r.map((i, n) => /* @__PURE__ */ a.jsx(
|
|
1592
|
-
|
|
1593
|
+
we,
|
|
1593
1594
|
{
|
|
1594
1595
|
dataKey: i,
|
|
1595
1596
|
fill: D[n % D.length]
|
|
@@ -1599,7 +1600,7 @@ const zr = (e) => {
|
|
|
1599
1600
|
] });
|
|
1600
1601
|
};
|
|
1601
1602
|
var Gt = { NODE_ENV: "production" };
|
|
1602
|
-
const
|
|
1603
|
+
const ss = (e, t) => {
|
|
1603
1604
|
if (t != null && t.length)
|
|
1604
1605
|
return t;
|
|
1605
1606
|
const r = [
|
|
@@ -1609,13 +1610,13 @@ const ns = (e, t) => {
|
|
|
1609
1610
|
id: s,
|
|
1610
1611
|
orientation: o === 1 ? "right" : "left"
|
|
1611
1612
|
}));
|
|
1612
|
-
},
|
|
1613
|
+
}, os = (e, t) => {
|
|
1613
1614
|
!e.type && Gt.NODE_ENV;
|
|
1614
1615
|
const r = e.color ?? D[t % D.length], s = e.label ?? e.key, o = e.yAxisId ? { yAxisId: e.yAxisId } : {};
|
|
1615
1616
|
switch (e.type) {
|
|
1616
1617
|
case "area":
|
|
1617
1618
|
return /* @__PURE__ */ a.jsx(
|
|
1618
|
-
|
|
1619
|
+
Ot,
|
|
1619
1620
|
{
|
|
1620
1621
|
dataKey: e.key,
|
|
1621
1622
|
name: s,
|
|
@@ -1629,7 +1630,7 @@ const ns = (e, t) => {
|
|
|
1629
1630
|
);
|
|
1630
1631
|
case "line":
|
|
1631
1632
|
return /* @__PURE__ */ a.jsx(
|
|
1632
|
-
|
|
1633
|
+
Rt,
|
|
1633
1634
|
{
|
|
1634
1635
|
dataKey: e.key,
|
|
1635
1636
|
name: s,
|
|
@@ -1643,7 +1644,7 @@ const ns = (e, t) => {
|
|
|
1643
1644
|
);
|
|
1644
1645
|
case "bar":
|
|
1645
1646
|
return /* @__PURE__ */ a.jsx(
|
|
1646
|
-
|
|
1647
|
+
we,
|
|
1647
1648
|
{
|
|
1648
1649
|
dataKey: e.key,
|
|
1649
1650
|
name: s,
|
|
@@ -1657,7 +1658,7 @@ const ns = (e, t) => {
|
|
|
1657
1658
|
default:
|
|
1658
1659
|
return null;
|
|
1659
1660
|
}
|
|
1660
|
-
},
|
|
1661
|
+
}, as = (e) => {
|
|
1661
1662
|
const {
|
|
1662
1663
|
data: t,
|
|
1663
1664
|
xKey: r,
|
|
@@ -1668,23 +1669,23 @@ const ns = (e, t) => {
|
|
|
1668
1669
|
yAxes: n
|
|
1669
1670
|
} = e;
|
|
1670
1671
|
!s.length && Gt.NODE_ENV;
|
|
1671
|
-
const u =
|
|
1672
|
+
const u = ss(s, n);
|
|
1672
1673
|
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart: Vn, children: [
|
|
1673
1674
|
/* @__PURE__ */ a.jsx(re, { strokeDasharray: "3 3" }),
|
|
1674
1675
|
/* @__PURE__ */ a.jsx(ce, { dataKey: r }),
|
|
1675
1676
|
u.length > 0 ? u.map((l) => /* @__PURE__ */ a.jsx(
|
|
1676
|
-
|
|
1677
|
+
Y,
|
|
1677
1678
|
{
|
|
1678
1679
|
yAxisId: l.id,
|
|
1679
1680
|
orientation: l.orientation
|
|
1680
1681
|
},
|
|
1681
1682
|
l.id
|
|
1682
|
-
)) : /* @__PURE__ */ a.jsx(
|
|
1683
|
+
)) : /* @__PURE__ */ a.jsx(Y, {}),
|
|
1683
1684
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o }),
|
|
1684
|
-
i && /* @__PURE__ */ a.jsx(
|
|
1685
|
-
s.map((l, d) =>
|
|
1685
|
+
i && /* @__PURE__ */ a.jsx(V, {}),
|
|
1686
|
+
s.map((l, d) => os(l, d))
|
|
1686
1687
|
] });
|
|
1687
|
-
},
|
|
1688
|
+
}, cs = "55%", is = 120, ls = (e) => (t) => {
|
|
1688
1689
|
const r = Math.PI / 180, {
|
|
1689
1690
|
cx: s = 0,
|
|
1690
1691
|
cy: o = 0,
|
|
@@ -1697,7 +1698,7 @@ const ns = (e, t) => {
|
|
|
1697
1698
|
payload: _,
|
|
1698
1699
|
percent: h = 0,
|
|
1699
1700
|
value: f = 0
|
|
1700
|
-
} = t, x = Math.sin(-r * c), m = Math.cos(-r * c), y = s + (n + 10) * m,
|
|
1701
|
+
} = t, x = Math.sin(-r * c), m = Math.cos(-r * c), y = s + (n + 10) * m, g = o + (n + 10) * x, j = s + (n + 30) * m, b = o + (n + 30) * x, w = j + (m >= 0 ? 1 : -1) * 22, p = b, C = m >= 0 ? "start" : "end", N = _, E = String((N == null ? void 0 : N[e]) ?? "");
|
|
1701
1702
|
return /* @__PURE__ */ a.jsxs("g", { children: [
|
|
1702
1703
|
/* @__PURE__ */ a.jsx(
|
|
1703
1704
|
"text",
|
|
@@ -1713,7 +1714,7 @@ const ns = (e, t) => {
|
|
|
1713
1714
|
}
|
|
1714
1715
|
),
|
|
1715
1716
|
/* @__PURE__ */ a.jsx(
|
|
1716
|
-
|
|
1717
|
+
it,
|
|
1717
1718
|
{
|
|
1718
1719
|
cx: s,
|
|
1719
1720
|
cy: o,
|
|
@@ -1725,7 +1726,7 @@ const ns = (e, t) => {
|
|
|
1725
1726
|
}
|
|
1726
1727
|
),
|
|
1727
1728
|
/* @__PURE__ */ a.jsx(
|
|
1728
|
-
|
|
1729
|
+
it,
|
|
1729
1730
|
{
|
|
1730
1731
|
cx: s,
|
|
1731
1732
|
cy: o,
|
|
@@ -1739,18 +1740,18 @@ const ns = (e, t) => {
|
|
|
1739
1740
|
/* @__PURE__ */ a.jsx(
|
|
1740
1741
|
"path",
|
|
1741
1742
|
{
|
|
1742
|
-
d: `M${y},${
|
|
1743
|
+
d: `M${y},${g}L${j},${b}L${w},${p}`,
|
|
1743
1744
|
stroke: d,
|
|
1744
1745
|
fill: "none"
|
|
1745
1746
|
}
|
|
1746
1747
|
),
|
|
1747
|
-
/* @__PURE__ */ a.jsx("circle", { cx:
|
|
1748
|
+
/* @__PURE__ */ a.jsx("circle", { cx: w, cy: p, r: 2, fill: d, stroke: "none" }),
|
|
1748
1749
|
/* @__PURE__ */ a.jsx(
|
|
1749
1750
|
"text",
|
|
1750
1751
|
{
|
|
1751
|
-
x:
|
|
1752
|
-
y:
|
|
1753
|
-
textAnchor:
|
|
1752
|
+
x: w + (m >= 0 ? 1 : -1) * 12,
|
|
1753
|
+
y: p,
|
|
1754
|
+
textAnchor: C,
|
|
1754
1755
|
fill: k.labelColor,
|
|
1755
1756
|
fontSize: k.fontSize + 2,
|
|
1756
1757
|
fontFamily: k.fontFamily,
|
|
@@ -1760,10 +1761,10 @@ const ns = (e, t) => {
|
|
|
1760
1761
|
/* @__PURE__ */ a.jsx(
|
|
1761
1762
|
"text",
|
|
1762
1763
|
{
|
|
1763
|
-
x:
|
|
1764
|
-
y:
|
|
1764
|
+
x: w + (m >= 0 ? 1 : -1) * 12,
|
|
1765
|
+
y: p,
|
|
1765
1766
|
dy: 18,
|
|
1766
|
-
textAnchor:
|
|
1767
|
+
textAnchor: C,
|
|
1767
1768
|
fill: k.labelColorMuted,
|
|
1768
1769
|
fontSize: k.fontSize,
|
|
1769
1770
|
fontFamily: k.fontFamily,
|
|
@@ -1771,19 +1772,19 @@ const ns = (e, t) => {
|
|
|
1771
1772
|
}
|
|
1772
1773
|
)
|
|
1773
1774
|
] });
|
|
1774
|
-
},
|
|
1775
|
+
}, ds = (e) => {
|
|
1775
1776
|
const {
|
|
1776
1777
|
data: t,
|
|
1777
1778
|
xKey: r,
|
|
1778
1779
|
yKeys: s,
|
|
1779
1780
|
tooltipKey: o,
|
|
1780
|
-
innerRadius: c =
|
|
1781
|
-
outerRadius: i =
|
|
1781
|
+
innerRadius: c = cs,
|
|
1782
|
+
outerRadius: i = is,
|
|
1782
1783
|
activeShape: n = !0,
|
|
1783
1784
|
defaultIndex: u,
|
|
1784
1785
|
showLegend: l = !0
|
|
1785
1786
|
} = e, d = s[0];
|
|
1786
|
-
return /* @__PURE__ */ a.jsx(
|
|
1787
|
+
return /* @__PURE__ */ a.jsx(Ue, { width: "100%", height: ne, children: /* @__PURE__ */ a.jsxs(Dt, { children: [
|
|
1787
1788
|
/* @__PURE__ */ a.jsx(
|
|
1788
1789
|
X,
|
|
1789
1790
|
{
|
|
@@ -1792,9 +1793,9 @@ const ns = (e, t) => {
|
|
|
1792
1793
|
hideContent: n
|
|
1793
1794
|
}
|
|
1794
1795
|
),
|
|
1795
|
-
l && /* @__PURE__ */ a.jsx(
|
|
1796
|
+
l && /* @__PURE__ */ a.jsx(V, {}),
|
|
1796
1797
|
/* @__PURE__ */ a.jsx(
|
|
1797
|
-
|
|
1798
|
+
It,
|
|
1798
1799
|
{
|
|
1799
1800
|
data: t,
|
|
1800
1801
|
dataKey: d,
|
|
@@ -1803,7 +1804,7 @@ const ns = (e, t) => {
|
|
|
1803
1804
|
cy: "50%",
|
|
1804
1805
|
innerRadius: c,
|
|
1805
1806
|
outerRadius: i,
|
|
1806
|
-
activeShape: n ?
|
|
1807
|
+
activeShape: n ? ls(r) : void 0,
|
|
1807
1808
|
children: t.map((_, h) => /* @__PURE__ */ a.jsx(
|
|
1808
1809
|
$t,
|
|
1809
1810
|
{
|
|
@@ -1815,13 +1816,13 @@ const ns = (e, t) => {
|
|
|
1815
1816
|
)
|
|
1816
1817
|
] }) });
|
|
1817
1818
|
};
|
|
1818
|
-
function
|
|
1819
|
+
function us(e, t, r = Mt) {
|
|
1819
1820
|
return e <= 0 ? 0 : t <= 0 ? e : Math.max(e, t * r);
|
|
1820
1821
|
}
|
|
1821
|
-
function
|
|
1822
|
+
function _s(e, t = ps, r) {
|
|
1822
1823
|
return r !== void 0 ? r : e <= 0 ? ne : Math.max(ne, e * t);
|
|
1823
1824
|
}
|
|
1824
|
-
function
|
|
1825
|
+
function hs(e, t, r) {
|
|
1825
1826
|
if (r !== void 0)
|
|
1826
1827
|
return r;
|
|
1827
1828
|
const s = e.reduce((o, c) => {
|
|
@@ -1829,11 +1830,11 @@ function us(e, t, r) {
|
|
|
1829
1830
|
return Math.max(o, i.length);
|
|
1830
1831
|
}, 0);
|
|
1831
1832
|
return Math.max(
|
|
1832
|
-
|
|
1833
|
-
s *
|
|
1833
|
+
bs,
|
|
1834
|
+
s * js
|
|
1834
1835
|
);
|
|
1835
1836
|
}
|
|
1836
|
-
const
|
|
1837
|
+
const fs = (e) => {
|
|
1837
1838
|
const {
|
|
1838
1839
|
data: t,
|
|
1839
1840
|
yKeys: r,
|
|
@@ -1845,26 +1846,26 @@ const _s = (e) => {
|
|
|
1845
1846
|
showLegend: u = !0,
|
|
1846
1847
|
yKeyLabels: l,
|
|
1847
1848
|
yAxisWidth: d
|
|
1848
|
-
} = e, _ =
|
|
1849
|
+
} = e, _ = _s(
|
|
1849
1850
|
t.length,
|
|
1850
1851
|
c,
|
|
1851
1852
|
i
|
|
1852
|
-
), h =
|
|
1853
|
+
), h = hs(t, s, d);
|
|
1853
1854
|
return /* @__PURE__ */ a.jsxs(
|
|
1854
1855
|
ae,
|
|
1855
1856
|
{
|
|
1856
1857
|
height: _,
|
|
1857
1858
|
layout: "vertical",
|
|
1858
1859
|
data: t,
|
|
1859
|
-
Chart:
|
|
1860
|
+
Chart: Ge,
|
|
1860
1861
|
children: [
|
|
1861
1862
|
/* @__PURE__ */ a.jsx(re, { strokeDasharray: "3 3", horizontal: !1 }),
|
|
1862
1863
|
/* @__PURE__ */ a.jsx(ce, { type: "number" }),
|
|
1863
|
-
/* @__PURE__ */ a.jsx(
|
|
1864
|
+
/* @__PURE__ */ a.jsx(Y, { type: "category", dataKey: s, width: h }),
|
|
1864
1865
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o, tooltipCoverage: n }),
|
|
1865
|
-
u && /* @__PURE__ */ a.jsx(
|
|
1866
|
+
u && /* @__PURE__ */ a.jsx(V, {}),
|
|
1866
1867
|
r.map((f, x) => /* @__PURE__ */ a.jsx(
|
|
1867
|
-
|
|
1868
|
+
we,
|
|
1868
1869
|
{
|
|
1869
1870
|
dataKey: f,
|
|
1870
1871
|
name: (l == null ? void 0 : l[f]) ?? f,
|
|
@@ -1875,16 +1876,16 @@ const _s = (e) => {
|
|
|
1875
1876
|
]
|
|
1876
1877
|
}
|
|
1877
1878
|
);
|
|
1878
|
-
},
|
|
1879
|
+
}, xs = (e) => {
|
|
1879
1880
|
const { data: t, xKey: r, yKeys: s, tooltipKey: o, width: c } = e;
|
|
1880
|
-
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart:
|
|
1881
|
+
return /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart: Xn, children: [
|
|
1881
1882
|
/* @__PURE__ */ a.jsx(re, { strokeDasharray: "3 3" }),
|
|
1882
1883
|
/* @__PURE__ */ a.jsx(ce, { dataKey: r }),
|
|
1883
|
-
/* @__PURE__ */ a.jsx(
|
|
1884
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1884
1885
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o }),
|
|
1885
|
-
/* @__PURE__ */ a.jsx(
|
|
1886
|
+
/* @__PURE__ */ a.jsx(V, {}),
|
|
1886
1887
|
s.map((i, n) => /* @__PURE__ */ a.jsx(
|
|
1887
|
-
|
|
1888
|
+
Rt,
|
|
1888
1889
|
{
|
|
1889
1890
|
type: "monotone",
|
|
1890
1891
|
dataKey: i,
|
|
@@ -1896,17 +1897,17 @@ const _s = (e) => {
|
|
|
1896
1897
|
))
|
|
1897
1898
|
] });
|
|
1898
1899
|
};
|
|
1899
|
-
var
|
|
1900
|
-
const
|
|
1900
|
+
var ys = { NODE_ENV: "production" };
|
|
1901
|
+
const ms = (e) => {
|
|
1901
1902
|
const { data: t, xKey: r, series: s = [], tooltipKey: o, width: c } = e;
|
|
1902
|
-
return !s.length &&
|
|
1903
|
+
return !s.length && ys.NODE_ENV, /* @__PURE__ */ a.jsxs(ae, { width: c, data: t, Chart: Ge, children: [
|
|
1903
1904
|
/* @__PURE__ */ a.jsx(re, { strokeDasharray: "3 3" }),
|
|
1904
1905
|
/* @__PURE__ */ a.jsx(ce, { dataKey: r }),
|
|
1905
|
-
/* @__PURE__ */ a.jsx(
|
|
1906
|
+
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1906
1907
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o }),
|
|
1907
|
-
/* @__PURE__ */ a.jsx(
|
|
1908
|
+
/* @__PURE__ */ a.jsx(V, {}),
|
|
1908
1909
|
s.map((i, n) => /* @__PURE__ */ a.jsx(
|
|
1909
|
-
|
|
1910
|
+
we,
|
|
1910
1911
|
{
|
|
1911
1912
|
dataKey: i.key,
|
|
1912
1913
|
name: i.label ?? i.key,
|
|
@@ -1916,7 +1917,7 @@ const xs = (e) => {
|
|
|
1916
1917
|
i.key
|
|
1917
1918
|
))
|
|
1918
1919
|
] });
|
|
1919
|
-
},
|
|
1920
|
+
}, gs = (e) => {
|
|
1920
1921
|
const { data: t, xKey: r, yKeys: s, tooltipKey: o } = e, c = ({
|
|
1921
1922
|
cx: i,
|
|
1922
1923
|
cy: n,
|
|
@@ -1939,11 +1940,11 @@ const xs = (e) => {
|
|
|
1939
1940
|
}
|
|
1940
1941
|
);
|
|
1941
1942
|
};
|
|
1942
|
-
return /* @__PURE__ */ a.jsx(
|
|
1943
|
+
return /* @__PURE__ */ a.jsx(Ue, { width: "100%", height: ne, children: /* @__PURE__ */ a.jsxs(Dt, { children: [
|
|
1943
1944
|
/* @__PURE__ */ a.jsx(X, { tooltipKey: o }),
|
|
1944
|
-
/* @__PURE__ */ a.jsx(
|
|
1945
|
+
/* @__PURE__ */ a.jsx(V, {}),
|
|
1945
1946
|
/* @__PURE__ */ a.jsx(
|
|
1946
|
-
|
|
1947
|
+
It,
|
|
1947
1948
|
{
|
|
1948
1949
|
data: t,
|
|
1949
1950
|
dataKey: s[0],
|
|
@@ -1960,21 +1961,21 @@ const xs = (e) => {
|
|
|
1960
1961
|
}
|
|
1961
1962
|
)
|
|
1962
1963
|
] }) });
|
|
1963
|
-
}, ne = 400, Mt = 56,
|
|
1964
|
+
}, ne = 400, Mt = 56, ps = 28, bs = 100, js = 8, Cs = /* @__PURE__ */ new Set([
|
|
1964
1965
|
"bar",
|
|
1965
1966
|
"line",
|
|
1966
1967
|
"area",
|
|
1967
1968
|
"mixBar",
|
|
1968
1969
|
"composed"
|
|
1969
|
-
]),
|
|
1970
|
-
area:
|
|
1971
|
-
bar:
|
|
1972
|
-
composed:
|
|
1973
|
-
donut:
|
|
1974
|
-
horizontalBar:
|
|
1975
|
-
line:
|
|
1976
|
-
mixBar:
|
|
1977
|
-
pie:
|
|
1970
|
+
]), Ns = {
|
|
1971
|
+
area: ns,
|
|
1972
|
+
bar: rs,
|
|
1973
|
+
composed: as,
|
|
1974
|
+
donut: ds,
|
|
1975
|
+
horizontalBar: fs,
|
|
1976
|
+
line: xs,
|
|
1977
|
+
mixBar: ms,
|
|
1978
|
+
pie: gs
|
|
1978
1979
|
}, D = [
|
|
1979
1980
|
"var(--color-primitive-palette-1-50)",
|
|
1980
1981
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -2001,10 +2002,10 @@ const xs = (e) => {
|
|
|
2001
2002
|
tooltipBg: "#fff",
|
|
2002
2003
|
tooltipColor: "#000",
|
|
2003
2004
|
tooltipBorderRadius: "4px"
|
|
2004
|
-
},
|
|
2005
|
-
chartScrollViewport:
|
|
2006
|
-
chartScrollViewport_track:
|
|
2007
|
-
},
|
|
2005
|
+
}, ws = "_chartScrollViewport_sm5hx_1", vs = "_chartScrollViewport_track_sm5hx_29", bt = {
|
|
2006
|
+
chartScrollViewport: ws,
|
|
2007
|
+
chartScrollViewport_track: vs
|
|
2008
|
+
}, Es = "Scrollable chart area", Ts = ({
|
|
2008
2009
|
dataLength: e,
|
|
2009
2010
|
minCategoryWidth: t,
|
|
2010
2011
|
children: r
|
|
@@ -2021,7 +2022,7 @@ const xs = (e) => {
|
|
|
2021
2022
|
const h = new ResizeObserver(_);
|
|
2022
2023
|
return h.observe(d), () => h.disconnect();
|
|
2023
2024
|
}, []);
|
|
2024
|
-
const n =
|
|
2025
|
+
const n = us(
|
|
2025
2026
|
o,
|
|
2026
2027
|
e,
|
|
2027
2028
|
i
|
|
@@ -2050,35 +2051,35 @@ const xs = (e) => {
|
|
|
2050
2051
|
"div",
|
|
2051
2052
|
{
|
|
2052
2053
|
ref: s,
|
|
2053
|
-
className:
|
|
2054
|
+
className: bt.chartScrollViewport,
|
|
2054
2055
|
role: u ? "region" : void 0,
|
|
2055
2056
|
tabIndex: u ? 0 : void 0,
|
|
2056
|
-
"aria-label": u ?
|
|
2057
|
+
"aria-label": u ? Es : void 0,
|
|
2057
2058
|
onKeyDown: u ? l : void 0,
|
|
2058
2059
|
children: /* @__PURE__ */ a.jsx(
|
|
2059
2060
|
"div",
|
|
2060
2061
|
{
|
|
2061
|
-
className:
|
|
2062
|
+
className: bt.chartScrollViewport_track,
|
|
2062
2063
|
style: { width: n, height: ne },
|
|
2063
2064
|
children: o > 0 ? r(n) : null
|
|
2064
2065
|
}
|
|
2065
2066
|
)
|
|
2066
2067
|
}
|
|
2067
2068
|
);
|
|
2068
|
-
},
|
|
2069
|
-
const { component: t, userFlow: r, hash: s, responseKey: o, dataSource: c, ...i } = e, n =
|
|
2070
|
-
var y,
|
|
2069
|
+
}, As = (e) => {
|
|
2070
|
+
const { component: t, userFlow: r, hash: s, responseKey: o, dataSource: c, ...i } = e, n = Ns[i.type], { fetchDataSource: u } = K(), [l, d] = O(!1), [_, h] = O([]), f = async () => {
|
|
2071
|
+
var y, g;
|
|
2071
2072
|
try {
|
|
2072
2073
|
d(!0);
|
|
2073
|
-
const { jsonPathData: j, mapperData: b } = c,
|
|
2074
|
+
const { jsonPathData: j, mapperData: b } = c, w = We(
|
|
2074
2075
|
c,
|
|
2075
2076
|
1
|
|
2076
|
-
),
|
|
2077
|
-
|
|
2077
|
+
), p = await u(
|
|
2078
|
+
w,
|
|
2078
2079
|
r,
|
|
2079
2080
|
!1
|
|
2080
|
-
),
|
|
2081
|
-
h(
|
|
2081
|
+
), C = j ? (y = Ut(p == null ? void 0 : p.data, j, b)) == null ? void 0 : y.items : (g = p == null ? void 0 : p.data) == null ? void 0 : g.data;
|
|
2082
|
+
h(C), d(!1);
|
|
2082
2083
|
} catch (j) {
|
|
2083
2084
|
alert(JSON.stringify(j)), d(!1);
|
|
2084
2085
|
}
|
|
@@ -2091,15 +2092,15 @@ const xs = (e) => {
|
|
|
2091
2092
|
...i,
|
|
2092
2093
|
data: _
|
|
2093
2094
|
};
|
|
2094
|
-
return l ? /* @__PURE__ */ a.jsx(
|
|
2095
|
-
|
|
2095
|
+
return l ? /* @__PURE__ */ a.jsx(At, { height: 400 }) : _.length === 0 ? /* @__PURE__ */ a.jsx(je, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Cs.has(i.type) ? /* @__PURE__ */ a.jsx(
|
|
2096
|
+
Ts,
|
|
2096
2097
|
{
|
|
2097
2098
|
dataLength: _.length,
|
|
2098
2099
|
minCategoryWidth: i.minCategoryWidth,
|
|
2099
2100
|
children: (y) => /* @__PURE__ */ a.jsx(n, { ...x, width: y })
|
|
2100
2101
|
}
|
|
2101
2102
|
) : /* @__PURE__ */ a.jsx(n, { ...x });
|
|
2102
|
-
},
|
|
2103
|
+
}, ks = (e) => {
|
|
2103
2104
|
const {
|
|
2104
2105
|
userFlow: t,
|
|
2105
2106
|
pageId: r,
|
|
@@ -2112,7 +2113,7 @@ const xs = (e) => {
|
|
|
2112
2113
|
...l
|
|
2113
2114
|
} = e, d = {
|
|
2114
2115
|
...l
|
|
2115
|
-
}, { getNextUI: _ } = K(), [h, f] = O(i || !1), { disabled: x } =
|
|
2116
|
+
}, { getNextUI: _ } = K(), [h, f] = O(i || !1), { disabled: x } = L(
|
|
2116
2117
|
t,
|
|
2117
2118
|
u
|
|
2118
2119
|
), m = S(() => n && c ? `${c} *` : c ?? "", [c, n]), y = R(async () => {
|
|
@@ -2120,21 +2121,21 @@ const xs = (e) => {
|
|
|
2120
2121
|
try {
|
|
2121
2122
|
const b = !h;
|
|
2122
2123
|
f(b);
|
|
2123
|
-
const
|
|
2124
|
+
const w = {
|
|
2124
2125
|
...(j = v.getState()[t]) == null ? void 0 : j.entries,
|
|
2125
2126
|
[s]: b
|
|
2126
2127
|
};
|
|
2127
|
-
switch (B(t,
|
|
2128
|
+
switch (B(t, w), o) {
|
|
2128
2129
|
case "GO_TO_NEXT_UI":
|
|
2129
2130
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2130
|
-
const
|
|
2131
|
+
const C = await _(
|
|
2131
2132
|
t,
|
|
2132
2133
|
r,
|
|
2133
|
-
|
|
2134
|
+
w,
|
|
2134
2135
|
s,
|
|
2135
2136
|
o === "GO_TO_NEXT_UI"
|
|
2136
2137
|
);
|
|
2137
|
-
|
|
2138
|
+
C != null && C.data && H(t, C == null ? void 0 : C.data);
|
|
2138
2139
|
break;
|
|
2139
2140
|
}
|
|
2140
2141
|
default:
|
|
@@ -2143,27 +2144,27 @@ const xs = (e) => {
|
|
|
2143
2144
|
} catch (b) {
|
|
2144
2145
|
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
2145
2146
|
}
|
|
2146
|
-
}, [t, r, s, o, h]),
|
|
2147
|
+
}, [t, r, s, o, h]), g = (d == null ? void 0 : d.disabled) ?? x;
|
|
2147
2148
|
return /* @__PURE__ */ a.jsx(
|
|
2148
2149
|
yn,
|
|
2149
2150
|
{
|
|
2150
2151
|
...d,
|
|
2151
2152
|
labelRight: m,
|
|
2152
2153
|
checked: h,
|
|
2153
|
-
disabled:
|
|
2154
|
+
disabled: g,
|
|
2154
2155
|
onChange: () => {
|
|
2155
|
-
!
|
|
2156
|
+
!g && y();
|
|
2156
2157
|
}
|
|
2157
2158
|
}
|
|
2158
2159
|
);
|
|
2159
|
-
},
|
|
2160
|
-
codeEditor:
|
|
2161
|
-
codeEditor_label:
|
|
2162
|
-
codeEditor_wrapper:
|
|
2163
|
-
input:
|
|
2164
|
-
preview:
|
|
2165
|
-
preview_inner:
|
|
2166
|
-
},
|
|
2160
|
+
}, Ss = "_codeEditor_1wi2p_1", Os = "_codeEditor_label_1wi2p_4", Rs = "_codeEditor_wrapper_1wi2p_13", Ds = "_input_1wi2p_17", Is = "_preview_1wi2p_18", $s = "_preview_inner_1wi2p_33", te = {
|
|
2161
|
+
codeEditor: Ss,
|
|
2162
|
+
codeEditor_label: Os,
|
|
2163
|
+
codeEditor_wrapper: Rs,
|
|
2164
|
+
input: Ds,
|
|
2165
|
+
preview: Is,
|
|
2166
|
+
preview_inner: $s
|
|
2167
|
+
}, Ls = (e) => {
|
|
2167
2168
|
const {
|
|
2168
2169
|
userFlow: t,
|
|
2169
2170
|
responseKey: r,
|
|
@@ -2176,45 +2177,45 @@ const xs = (e) => {
|
|
|
2176
2177
|
disabled: l,
|
|
2177
2178
|
showPreview: d,
|
|
2178
2179
|
height: _ = "400px"
|
|
2179
|
-
} = e, [h, f] = O(i ?? ""), x = fe.useThemeStore((
|
|
2180
|
+
} = e, [h, f] = O(i ?? ""), x = fe.useThemeStore((w) => w.theme.mode), { disabled: m } = L(
|
|
2180
2181
|
t,
|
|
2181
2182
|
u
|
|
2182
|
-
), y = l ?? m,
|
|
2183
|
-
json:
|
|
2184
|
-
markdown:
|
|
2185
|
-
sql:
|
|
2186
|
-
yaml:
|
|
2187
|
-
}, j = S(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (
|
|
2188
|
-
f(
|
|
2189
|
-
const
|
|
2190
|
-
[r]:
|
|
2183
|
+
), y = l ?? m, g = {
|
|
2184
|
+
json: lt(),
|
|
2185
|
+
markdown: Jn(),
|
|
2186
|
+
sql: Yn(),
|
|
2187
|
+
yaml: Qn()
|
|
2188
|
+
}, j = S(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (w) => {
|
|
2189
|
+
f(w);
|
|
2190
|
+
const p = {
|
|
2191
|
+
[r]: w
|
|
2191
2192
|
};
|
|
2192
|
-
B(t,
|
|
2193
|
+
B(t, p);
|
|
2193
2194
|
};
|
|
2194
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
2195
|
-
j && j !== "" && /* @__PURE__ */ a.jsx("label", { className:
|
|
2196
|
-
/* @__PURE__ */ a.jsxs("div", { className:
|
|
2195
|
+
return /* @__PURE__ */ a.jsxs("div", { className: te.codeEditor, children: [
|
|
2196
|
+
j && j !== "" && /* @__PURE__ */ a.jsx("label", { className: te.codeEditor_label, children: j }),
|
|
2197
|
+
/* @__PURE__ */ a.jsxs("div", { className: te.codeEditor_wrapper, children: [
|
|
2197
2198
|
/* @__PURE__ */ a.jsx(
|
|
2198
|
-
|
|
2199
|
+
Wn,
|
|
2199
2200
|
{
|
|
2200
|
-
className:
|
|
2201
|
+
className: te.input,
|
|
2201
2202
|
value: h,
|
|
2202
2203
|
height: _,
|
|
2203
2204
|
placeholder: c,
|
|
2204
|
-
extensions: [
|
|
2205
|
-
onChange: (
|
|
2205
|
+
extensions: [g[o] ?? lt()],
|
|
2206
|
+
onChange: (w) => b(w),
|
|
2206
2207
|
theme: x,
|
|
2207
2208
|
editable: !y
|
|
2208
2209
|
}
|
|
2209
2210
|
),
|
|
2210
|
-
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className:
|
|
2211
|
+
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className: te.preview, style: { height: _ }, children: /* @__PURE__ */ a.jsx(kt, { className: te.preview_inner, children: h }) })
|
|
2211
2212
|
] })
|
|
2212
2213
|
] });
|
|
2213
|
-
},
|
|
2214
|
-
slotStack:
|
|
2214
|
+
}, qs = "_slotStack_6n2wy_5", Bs = {
|
|
2215
|
+
slotStack: qs
|
|
2215
2216
|
};
|
|
2216
|
-
var
|
|
2217
|
-
const
|
|
2217
|
+
var Hs = { NODE_ENV: "production" };
|
|
2218
|
+
const Ks = /* @__PURE__ */ new Set([
|
|
2218
2219
|
"accordion",
|
|
2219
2220
|
"button",
|
|
2220
2221
|
"cardAccordion",
|
|
@@ -2231,13 +2232,13 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2231
2232
|
"tabs",
|
|
2232
2233
|
"textField",
|
|
2233
2234
|
"textarea"
|
|
2234
|
-
]),
|
|
2235
|
+
]), Ke = (e, t) => {
|
|
2235
2236
|
if (e != null && e.length)
|
|
2236
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
2237
|
+
return /* @__PURE__ */ a.jsx("div", { className: Bs.slotStack, children: e.map((r, s) => {
|
|
2237
2238
|
var o;
|
|
2238
2239
|
return /* @__PURE__ */ a.jsx(A, { children: r }, ((o = t == null ? void 0 : t[s]) == null ? void 0 : o.hash) ?? s);
|
|
2239
2240
|
}) });
|
|
2240
|
-
},
|
|
2241
|
+
}, Us = ({
|
|
2241
2242
|
userFlow: e,
|
|
2242
2243
|
pageId: t,
|
|
2243
2244
|
component: r,
|
|
@@ -2259,16 +2260,16 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2259
2260
|
i != null && i.length ? i : null
|
|
2260
2261
|
);
|
|
2261
2262
|
return /* @__PURE__ */ a.jsx(
|
|
2262
|
-
|
|
2263
|
+
St,
|
|
2263
2264
|
{
|
|
2264
2265
|
...l,
|
|
2265
2266
|
icon: n,
|
|
2266
2267
|
headerStatusColor: d,
|
|
2267
|
-
topContent:
|
|
2268
|
-
children:
|
|
2268
|
+
topContent: Ke(h, i),
|
|
2269
|
+
children: Ke(_, c)
|
|
2269
2270
|
}
|
|
2270
2271
|
);
|
|
2271
|
-
},
|
|
2272
|
+
}, Gs = ({
|
|
2272
2273
|
userFlow: e,
|
|
2273
2274
|
pageId: t,
|
|
2274
2275
|
responseKey: r,
|
|
@@ -2286,51 +2287,51 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2286
2287
|
headerStyle: x,
|
|
2287
2288
|
showBorder: m,
|
|
2288
2289
|
borderColor: y,
|
|
2289
|
-
title:
|
|
2290
|
+
title: g,
|
|
2290
2291
|
descriptionTop: j,
|
|
2291
2292
|
pillLabel: b
|
|
2292
2293
|
}) => {
|
|
2293
|
-
const
|
|
2294
|
+
const w = T(
|
|
2294
2295
|
e,
|
|
2295
2296
|
t,
|
|
2296
2297
|
n != null && n.length ? n : null
|
|
2297
|
-
),
|
|
2298
|
+
), p = oe(e, t), { disabled: C } = L(
|
|
2298
2299
|
e,
|
|
2299
2300
|
i
|
|
2300
|
-
), N = s ? () => void
|
|
2301
|
+
), N = s ? () => void p({
|
|
2301
2302
|
responseKey: r,
|
|
2302
2303
|
actionType: s,
|
|
2303
2304
|
dataSource: o,
|
|
2304
2305
|
redirectUrl: c,
|
|
2305
2306
|
dependencies: i
|
|
2306
|
-
}) : void 0, E = h ??
|
|
2307
|
-
N && (n != null && n.some((W) =>
|
|
2308
|
-
const
|
|
2307
|
+
}) : void 0, E = h ?? C;
|
|
2308
|
+
N && (n != null && n.some((W) => Ks.has(W.component))) && Hs.NODE_ENV;
|
|
2309
|
+
const I = N ? { onClick: N, disabled: E } : {};
|
|
2309
2310
|
return /* @__PURE__ */ a.jsx(
|
|
2310
|
-
|
|
2311
|
+
St,
|
|
2311
2312
|
{
|
|
2312
2313
|
version: "v2",
|
|
2313
2314
|
status: f,
|
|
2314
2315
|
headerStyle: x,
|
|
2315
2316
|
showBorder: m,
|
|
2316
2317
|
borderColor: y,
|
|
2317
|
-
title:
|
|
2318
|
+
title: g,
|
|
2318
2319
|
ariaLabel: l,
|
|
2319
2320
|
descriptionTop: j,
|
|
2320
2321
|
descriptionBottom: _ ?? d,
|
|
2321
2322
|
pillLabel: b,
|
|
2322
2323
|
icon: u,
|
|
2323
|
-
...
|
|
2324
|
-
children:
|
|
2324
|
+
...I,
|
|
2325
|
+
children: Ke(w, n)
|
|
2325
2326
|
}
|
|
2326
2327
|
);
|
|
2327
|
-
},
|
|
2328
|
-
dividerNotFront:
|
|
2329
|
-
},
|
|
2330
|
-
drawer:
|
|
2331
|
-
drawerBody:
|
|
2332
|
-
drawerFooter:
|
|
2333
|
-
},
|
|
2328
|
+
}, Ms = (e) => e.version === "v2" ? /* @__PURE__ */ a.jsx(Gs, { ...e }) : /* @__PURE__ */ a.jsx(Us, { ...e }), zs = "_dividerNotFront_tze3j_1", Vs = {
|
|
2329
|
+
dividerNotFront: zs
|
|
2330
|
+
}, Xs = (e) => /* @__PURE__ */ a.jsx(mn, { ...e, className: Vs.dividerNotFront }), Ws = "_drawer_13pxo_1", Js = "_drawerBody_13pxo_5", Ys = "_drawerFooter_13pxo_11", Le = {
|
|
2331
|
+
drawer: Ws,
|
|
2332
|
+
drawerBody: Js,
|
|
2333
|
+
drawerFooter: Ys
|
|
2334
|
+
}, Qs = ({
|
|
2334
2335
|
userFlow: e,
|
|
2335
2336
|
pageId: t,
|
|
2336
2337
|
responseKey: r,
|
|
@@ -2340,32 +2341,32 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2340
2341
|
...i
|
|
2341
2342
|
}) => {
|
|
2342
2343
|
const n = v((y) => {
|
|
2343
|
-
var
|
|
2344
|
-
return (
|
|
2344
|
+
var g;
|
|
2345
|
+
return (g = y[e]) == null ? void 0 : g.isDrawerOpen;
|
|
2345
2346
|
}), u = v((y) => {
|
|
2346
|
-
var
|
|
2347
|
-
return (
|
|
2347
|
+
var g;
|
|
2348
|
+
return (g = y[e]) == null ? void 0 : g.isLoading;
|
|
2348
2349
|
}), l = n && !u, d = {
|
|
2349
2350
|
...i,
|
|
2350
2351
|
isOpen: l,
|
|
2351
2352
|
children: null
|
|
2352
2353
|
}, _ = R(() => {
|
|
2353
2354
|
Ve(e), _e(e, !1);
|
|
2354
|
-
}, [e]), h = Array.isArray(s) ? T(e, t, s) : s ? /* @__PURE__ */ a.jsx(
|
|
2355
|
+
}, [e]), h = Array.isArray(s) ? T(e, t, s) : s ? /* @__PURE__ */ a.jsx(Et, { type: "h2", children: s }) : void 0, f = T(e, t, o), x = c ? T(e, t, c) : void 0;
|
|
2355
2356
|
return /* @__PURE__ */ a.jsx(
|
|
2356
2357
|
gn,
|
|
2357
2358
|
{
|
|
2358
2359
|
...d,
|
|
2359
|
-
className:
|
|
2360
|
+
className: Le.drawer,
|
|
2360
2361
|
isOpen: l,
|
|
2361
2362
|
onClose: _,
|
|
2362
2363
|
heightGap: 50,
|
|
2363
|
-
title: h ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Array.isArray(h) ? h.map((y,
|
|
2364
|
-
children: /* @__PURE__ */ a.jsx("section", { className:
|
|
2365
|
-
footer: x ? /* @__PURE__ */ a.jsx("div", { className:
|
|
2364
|
+
title: h ? /* @__PURE__ */ a.jsx(a.Fragment, { children: Array.isArray(h) ? h.map((y, g) => /* @__PURE__ */ a.jsx(A, { children: y }, `drawer-header-${g}`)) : h }) : void 0,
|
|
2365
|
+
children: /* @__PURE__ */ a.jsx("section", { className: Le.drawerBody, children: f.map((y, g) => /* @__PURE__ */ a.jsx(A, { children: y }, `drawer-body-${g}`)) }),
|
|
2366
|
+
footer: x ? /* @__PURE__ */ a.jsx("div", { className: Le.drawerFooter, children: x.map((y, g) => /* @__PURE__ */ a.jsx(A, { children: y }, `drawer-footer-${g}`)) }) : void 0
|
|
2366
2367
|
}
|
|
2367
2368
|
);
|
|
2368
|
-
},
|
|
2369
|
+
}, Ye = (e, t, r) => {
|
|
2369
2370
|
const s = v(
|
|
2370
2371
|
(c) => {
|
|
2371
2372
|
var i, n;
|
|
@@ -2376,9 +2377,9 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2376
2377
|
[e, t]
|
|
2377
2378
|
);
|
|
2378
2379
|
return [s ?? r, o];
|
|
2379
|
-
},
|
|
2380
|
+
}, Zs = (e, t) => [e, t].filter(
|
|
2380
2381
|
(r) => typeof r == "string" && r.trim().length > 0
|
|
2381
|
-
),
|
|
2382
|
+
), Fs = (e) => {
|
|
2382
2383
|
const {
|
|
2383
2384
|
userFlow: t,
|
|
2384
2385
|
pageId: r,
|
|
@@ -2393,34 +2394,34 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2393
2394
|
rule1: _,
|
|
2394
2395
|
rule2: h,
|
|
2395
2396
|
...f
|
|
2396
|
-
} = e, [x, m] =
|
|
2397
|
+
} = e, [x, m] = Ye(t, s, null), { disabled: y } = L(
|
|
2397
2398
|
t,
|
|
2398
2399
|
u
|
|
2399
|
-
),
|
|
2400
|
+
), g = f.disabled ?? y, j = R(() => {
|
|
2400
2401
|
i && (n === "_blank" ? window.open(i, "_blank", "noopener,noreferrer") : window.location.assign(i));
|
|
2401
2402
|
}, [i, n]), b = R(
|
|
2402
|
-
(
|
|
2403
|
-
m(
|
|
2403
|
+
(p) => {
|
|
2404
|
+
m(p);
|
|
2404
2405
|
},
|
|
2405
2406
|
[m]
|
|
2406
|
-
),
|
|
2407
|
+
), w = R(() => {
|
|
2407
2408
|
m(null);
|
|
2408
2409
|
}, [m]);
|
|
2409
2410
|
return /* @__PURE__ */ a.jsx(
|
|
2410
2411
|
pn,
|
|
2411
2412
|
{
|
|
2412
2413
|
...f,
|
|
2413
|
-
rules:
|
|
2414
|
+
rules: Zs(_, h),
|
|
2414
2415
|
file: x,
|
|
2415
2416
|
uploadStatus: l,
|
|
2416
|
-
disabled:
|
|
2417
|
+
disabled: g,
|
|
2417
2418
|
notificationVisible: d,
|
|
2418
2419
|
onFileChange: b,
|
|
2419
|
-
onRemove:
|
|
2420
|
+
onRemove: w,
|
|
2420
2421
|
onTemplateLinkClick: i ? j : void 0
|
|
2421
2422
|
}
|
|
2422
2423
|
);
|
|
2423
|
-
},
|
|
2424
|
+
}, Ps = (e) => {
|
|
2424
2425
|
const {
|
|
2425
2426
|
userFlow: t,
|
|
2426
2427
|
pageId: r,
|
|
@@ -2456,7 +2457,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2456
2457
|
items: f,
|
|
2457
2458
|
children: /* @__PURE__ */ a.jsxs(A, { children: [
|
|
2458
2459
|
d ? /* @__PURE__ */ a.jsx(
|
|
2459
|
-
|
|
2460
|
+
dt,
|
|
2460
2461
|
{
|
|
2461
2462
|
name: d,
|
|
2462
2463
|
size: "md",
|
|
@@ -2465,7 +2466,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2465
2466
|
) : null,
|
|
2466
2467
|
i,
|
|
2467
2468
|
_ ? /* @__PURE__ */ a.jsx(
|
|
2468
|
-
|
|
2469
|
+
dt,
|
|
2469
2470
|
{
|
|
2470
2471
|
name: _,
|
|
2471
2472
|
size: "md",
|
|
@@ -2475,11 +2476,11 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2475
2476
|
] })
|
|
2476
2477
|
}
|
|
2477
2478
|
);
|
|
2478
|
-
},
|
|
2479
|
-
header:
|
|
2480
|
-
header_content:
|
|
2481
|
-
},
|
|
2482
|
-
const c =
|
|
2479
|
+
}, eo = "_header_g1eri_1", to = "_header_content_g1eri_5", jt = {
|
|
2480
|
+
header: eo,
|
|
2481
|
+
header_content: to
|
|
2482
|
+
}, no = ({ components: e = [] }) => /* @__PURE__ */ a.jsx("section", { className: J(jt.header, "avocado-dark-theme"), children: /* @__PURE__ */ a.jsx("div", { className: jt.header_content, children: e.map((t, r) => /* @__PURE__ */ a.jsx(A, { children: t }, r)) }) }), ro = (e, t, r, s, o) => {
|
|
2483
|
+
const c = Je(
|
|
2483
2484
|
e,
|
|
2484
2485
|
r
|
|
2485
2486
|
), i = oe(e, t), n = async (d, _) => {
|
|
@@ -2496,7 +2497,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2496
2497
|
}
|
|
2497
2498
|
}));
|
|
2498
2499
|
return { breadcrumbs: u, menu: l };
|
|
2499
|
-
},
|
|
2500
|
+
}, zt = ({
|
|
2500
2501
|
userFlow: e,
|
|
2501
2502
|
pageId: t,
|
|
2502
2503
|
responseKey: r,
|
|
@@ -2508,7 +2509,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2508
2509
|
onResolveComponentProps: u,
|
|
2509
2510
|
...l
|
|
2510
2511
|
}) => {
|
|
2511
|
-
const { breadcrumbs: d, menu: _ } =
|
|
2512
|
+
const { breadcrumbs: d, menu: _ } = ro(
|
|
2512
2513
|
e,
|
|
2513
2514
|
t,
|
|
2514
2515
|
r,
|
|
@@ -2524,7 +2525,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2524
2525
|
var m;
|
|
2525
2526
|
return /* @__PURE__ */ a.jsx(A, { children: f }, ((m = n == null ? void 0 : n[x]) == null ? void 0 : m.hash) ?? x);
|
|
2526
2527
|
}) : void 0 });
|
|
2527
|
-
},
|
|
2528
|
+
}, so = (e) => {
|
|
2528
2529
|
const {
|
|
2529
2530
|
userFlow: t,
|
|
2530
2531
|
pageId: r,
|
|
@@ -2537,18 +2538,18 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2537
2538
|
component: l,
|
|
2538
2539
|
hash: d,
|
|
2539
2540
|
..._
|
|
2540
|
-
} = e, { getNextUI: h } = K(), { disabled: f } =
|
|
2541
|
+
} = e, { getNextUI: h } = K(), { disabled: f } = L(
|
|
2541
2542
|
t,
|
|
2542
2543
|
u
|
|
2543
2544
|
), x = o && _ ? (() => {
|
|
2544
|
-
const { href:
|
|
2545
|
-
return
|
|
2545
|
+
const { href: g, target: j, download: b, ...w } = _;
|
|
2546
|
+
return w;
|
|
2546
2547
|
})() : _, m = R(async () => {
|
|
2547
|
-
var
|
|
2548
|
+
var g;
|
|
2548
2549
|
if (o)
|
|
2549
2550
|
try {
|
|
2550
2551
|
const j = {
|
|
2551
|
-
...(
|
|
2552
|
+
...(g = v.getState()[t]) == null ? void 0 : g.entries,
|
|
2552
2553
|
[s]: { status: 200 }
|
|
2553
2554
|
};
|
|
2554
2555
|
switch (B(t, j), o) {
|
|
@@ -2586,7 +2587,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2586
2587
|
children: c
|
|
2587
2588
|
}
|
|
2588
2589
|
);
|
|
2589
|
-
},
|
|
2590
|
+
}, oo = (e) => {
|
|
2590
2591
|
const {
|
|
2591
2592
|
userFlow: t,
|
|
2592
2593
|
pageId: r,
|
|
@@ -2617,7 +2618,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2617
2618
|
[i, h]
|
|
2618
2619
|
);
|
|
2619
2620
|
return /* @__PURE__ */ a.jsx(
|
|
2620
|
-
|
|
2621
|
+
Nn,
|
|
2621
2622
|
{
|
|
2622
2623
|
items: f,
|
|
2623
2624
|
closeOnClick: n,
|
|
@@ -2627,9 +2628,9 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2627
2628
|
variant: _
|
|
2628
2629
|
}
|
|
2629
2630
|
);
|
|
2630
|
-
},
|
|
2631
|
-
modalContent:
|
|
2632
|
-
},
|
|
2631
|
+
}, ao = "_modalContent_p06ci_1", co = {
|
|
2632
|
+
modalContent: ao
|
|
2633
|
+
}, io = ({
|
|
2633
2634
|
userFlow: e,
|
|
2634
2635
|
pageId: t,
|
|
2635
2636
|
responseKey: r,
|
|
@@ -2639,32 +2640,32 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2639
2640
|
headerStatusColor: i,
|
|
2640
2641
|
...n
|
|
2641
2642
|
}) => {
|
|
2642
|
-
const u = v((
|
|
2643
|
+
const u = v((g) => {
|
|
2643
2644
|
var j;
|
|
2644
|
-
return (j =
|
|
2645
|
-
}), l = v((
|
|
2645
|
+
return (j = g[e]) == null ? void 0 : j.isModalOpen;
|
|
2646
|
+
}), l = v((g) => {
|
|
2646
2647
|
var j;
|
|
2647
|
-
return (j =
|
|
2648
|
+
return (j = g[e]) == null ? void 0 : j.isLoading;
|
|
2648
2649
|
}), d = u && !l, _ = {
|
|
2649
2650
|
...n
|
|
2650
2651
|
}, h = (_ == null ? void 0 : _.headerStatusColor) ?? i, f = R(() => {
|
|
2651
|
-
Ve(e),
|
|
2652
|
+
Ve(e), Xe(e, !1);
|
|
2652
2653
|
}, [e, r]), x = Array.isArray(s) ? T(e, t, s) : s, m = T(e, t, o), y = T(e, t, c);
|
|
2653
2654
|
return /* @__PURE__ */ a.jsx(
|
|
2654
|
-
|
|
2655
|
+
wn,
|
|
2655
2656
|
{
|
|
2656
2657
|
..._,
|
|
2657
2658
|
headerStatusColor: h,
|
|
2658
|
-
header: typeof x == "string" ? x : /* @__PURE__ */ a.jsx(a.Fragment, { children: x.map((
|
|
2659
|
-
children: /* @__PURE__ */ a.jsx("section", { className:
|
|
2660
|
-
actions: /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((
|
|
2659
|
+
header: typeof x == "string" ? x : /* @__PURE__ */ a.jsx(a.Fragment, { children: x.map((g, j) => /* @__PURE__ */ a.jsx(A, { children: g }, `modal-header-${j}`)) }),
|
|
2660
|
+
children: /* @__PURE__ */ a.jsx("section", { className: co.modalContent, children: m.map((g, j) => /* @__PURE__ */ a.jsx(A, { children: g }, `modal-body-${j}`)) }),
|
|
2661
|
+
actions: /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((g, j) => /* @__PURE__ */ a.jsx(A, { children: g }, `modal-footer-${j}`)) }),
|
|
2661
2662
|
open: d,
|
|
2662
2663
|
onClose: f
|
|
2663
2664
|
}
|
|
2664
2665
|
);
|
|
2665
|
-
},
|
|
2666
|
+
}, lo = ({ userFlow: e, pageId: t }) => {
|
|
2666
2667
|
var c, i;
|
|
2667
|
-
const r =
|
|
2668
|
+
const r = er(e);
|
|
2668
2669
|
if (!r)
|
|
2669
2670
|
return null;
|
|
2670
2671
|
const s = [
|
|
@@ -2680,13 +2681,13 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2680
2681
|
const l = `overlay-${u}-${r == null ? void 0 : r.hash}`;
|
|
2681
2682
|
return /* @__PURE__ */ a.jsx(A, { children: n }, l);
|
|
2682
2683
|
}) });
|
|
2683
|
-
},
|
|
2684
|
+
}, uo = [
|
|
2684
2685
|
"success",
|
|
2685
2686
|
"warning",
|
|
2686
2687
|
"error",
|
|
2687
2688
|
"info",
|
|
2688
2689
|
"neutral"
|
|
2689
|
-
],
|
|
2690
|
+
], _o = {
|
|
2690
2691
|
success: {
|
|
2691
2692
|
color: "success-opacity",
|
|
2692
2693
|
textColor: "success-60",
|
|
@@ -2712,7 +2713,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2712
2713
|
textColor: "neutral-70",
|
|
2713
2714
|
iconColor: "neutral-70"
|
|
2714
2715
|
}
|
|
2715
|
-
},
|
|
2716
|
+
}, ho = {
|
|
2716
2717
|
success: {
|
|
2717
2718
|
color: "success-50",
|
|
2718
2719
|
textColor: "success-60",
|
|
@@ -2738,7 +2739,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2738
2739
|
textColor: "neutral-50",
|
|
2739
2740
|
iconColor: "neutral-50"
|
|
2740
2741
|
}
|
|
2741
|
-
},
|
|
2742
|
+
}, Ne = (e, t) => t ? ho[e] : _o[e], fo = "outlined", Ct = (e) => typeof e == "string" && uo.includes(e), xo = (e, t = {}) => e != null && e.length ? e.length === 3 && Ct(e[1]) && e[2] === fo ? [{ label: String(e[0]), variant: e[1], outlined: !0 }] : e.length === 2 && Ct(e[1]) ? [
|
|
2742
2743
|
{
|
|
2743
2744
|
label: String(e[0]),
|
|
2744
2745
|
variant: e[1],
|
|
@@ -2748,19 +2749,19 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2748
2749
|
label: String(r),
|
|
2749
2750
|
variant: t.variant ?? "neutral",
|
|
2750
2751
|
...t.outlined ? { outlined: !0 } : {}
|
|
2751
|
-
})) : [],
|
|
2752
|
-
const { content: t, variant: r = "neutral", ...s } = e, o =
|
|
2752
|
+
})) : [], yo = (e) => {
|
|
2753
|
+
const { content: t, variant: r = "neutral", ...s } = e, o = Ne(r, s == null ? void 0 : s.outlined), c = {
|
|
2753
2754
|
...s,
|
|
2754
2755
|
children: t,
|
|
2755
2756
|
color: (s == null ? void 0 : s.color) ?? o.color,
|
|
2756
2757
|
textColor: (s == null ? void 0 : s.textColor) ?? o.textColor,
|
|
2757
2758
|
iconColor: (s == null ? void 0 : s.iconColor) ?? o.iconColor
|
|
2758
2759
|
};
|
|
2759
|
-
return /* @__PURE__ */ a.jsx(
|
|
2760
|
-
},
|
|
2760
|
+
return /* @__PURE__ */ a.jsx(qe, { ...c });
|
|
2761
|
+
}, mo = (e) => {
|
|
2761
2762
|
const { content: t } = e;
|
|
2762
|
-
return /* @__PURE__ */ a.jsx(
|
|
2763
|
-
},
|
|
2763
|
+
return /* @__PURE__ */ a.jsx(kt, { children: t });
|
|
2764
|
+
}, go = (e) => {
|
|
2764
2765
|
const {
|
|
2765
2766
|
userFlow: t,
|
|
2766
2767
|
pageId: r,
|
|
@@ -2770,7 +2771,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2770
2771
|
dependencies: i,
|
|
2771
2772
|
onClick: n,
|
|
2772
2773
|
...u
|
|
2773
|
-
} = e, l = oe(t, r), { disabled: d } =
|
|
2774
|
+
} = e, l = oe(t, r), { disabled: d } = L(
|
|
2774
2775
|
t,
|
|
2775
2776
|
i
|
|
2776
2777
|
), _ = {
|
|
@@ -2778,8 +2779,8 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2778
2779
|
}, h = (_ == null ? void 0 : _.disabled) ?? d, [f, x] = O(!1), m = he(!1), y = R(async () => {
|
|
2779
2780
|
if (m.current)
|
|
2780
2781
|
return;
|
|
2781
|
-
const
|
|
2782
|
-
|
|
2782
|
+
const g = o === "FETCH_DATA_SOURCE";
|
|
2783
|
+
g && (m.current = !0, x(!0));
|
|
2783
2784
|
try {
|
|
2784
2785
|
await l({
|
|
2785
2786
|
responseKey: s,
|
|
@@ -2790,7 +2791,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2790
2791
|
} catch (j) {
|
|
2791
2792
|
console.error("[RoundButtonNotFront] Action failed:", j);
|
|
2792
2793
|
} finally {
|
|
2793
|
-
|
|
2794
|
+
g && (m.current = !1, x(!1));
|
|
2794
2795
|
}
|
|
2795
2796
|
}, [o, c, i, s, l]);
|
|
2796
2797
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -2802,8 +2803,8 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2802
2803
|
onClick: () => !h && !f && (n ?? y)()
|
|
2803
2804
|
}
|
|
2804
2805
|
);
|
|
2805
|
-
},
|
|
2806
|
-
row:
|
|
2806
|
+
}, po = "_row_1bqj4_1", bo = "_row_column_1bqj4_65", M = {
|
|
2807
|
+
row: po,
|
|
2807
2808
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
2808
2809
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
2809
2810
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -2824,7 +2825,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2824
2825
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
2825
2826
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
2826
2827
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
2827
|
-
row_column:
|
|
2828
|
+
row_column: bo,
|
|
2828
2829
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
2829
2830
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
2830
2831
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -2845,7 +2846,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2845
2846
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
2846
2847
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
2847
2848
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
2848
|
-
},
|
|
2849
|
+
}, jo = (e) => {
|
|
2849
2850
|
const {
|
|
2850
2851
|
userFlow: t,
|
|
2851
2852
|
pageId: r,
|
|
@@ -2878,7 +2879,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2878
2879
|
return u.length === 0 ? null : /* @__PURE__ */ a.jsx(
|
|
2879
2880
|
"div",
|
|
2880
2881
|
{
|
|
2881
|
-
className:
|
|
2882
|
+
className: J(
|
|
2882
2883
|
M.row,
|
|
2883
2884
|
M[`row__gap-${c}`],
|
|
2884
2885
|
M[`row__justify-${i}`],
|
|
@@ -2889,7 +2890,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2889
2890
|
return !h || h.length === 0 ? null : /* @__PURE__ */ a.jsx(
|
|
2890
2891
|
"div",
|
|
2891
2892
|
{
|
|
2892
|
-
className:
|
|
2893
|
+
className: J(
|
|
2893
2894
|
M.row_column,
|
|
2894
2895
|
M[`row_column__gap-${l.gap}`],
|
|
2895
2896
|
M[`row_column__justify-${l.justifyContent}`],
|
|
@@ -2904,7 +2905,7 @@ const Bs = /* @__PURE__ */ new Set([
|
|
|
2904
2905
|
}
|
|
2905
2906
|
);
|
|
2906
2907
|
};
|
|
2907
|
-
function
|
|
2908
|
+
function Vt({
|
|
2908
2909
|
userFlow: e,
|
|
2909
2910
|
pageId: t,
|
|
2910
2911
|
responseKey: r,
|
|
@@ -2923,7 +2924,7 @@ function zt({
|
|
|
2923
2924
|
const _ = {
|
|
2924
2925
|
...(f = v.getState()[e]) == null ? void 0 : f.entries
|
|
2925
2926
|
};
|
|
2926
|
-
if (d ? (_[r] = d, B(e, _)) : (delete _[r],
|
|
2927
|
+
if (d ? (_[r] = d, B(e, _)) : (delete _[r], tr(e, r)), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2927
2928
|
try {
|
|
2928
2929
|
const m = await o(
|
|
2929
2930
|
e,
|
|
@@ -2956,21 +2957,21 @@ function zt({
|
|
|
2956
2957
|
[c, i, u]
|
|
2957
2958
|
);
|
|
2958
2959
|
}
|
|
2959
|
-
const
|
|
2960
|
+
const Co = /\{([^}]+)\}/g, No = (e, t) => {
|
|
2960
2961
|
var r;
|
|
2961
|
-
return t.includes("{") ? t.replace(
|
|
2962
|
+
return t.includes("{") ? t.replace(Co, (s, o) => {
|
|
2962
2963
|
var i;
|
|
2963
2964
|
const c = (i = q.query(e, o.trim())) == null ? void 0 : i[0];
|
|
2964
2965
|
return c != null ? String(c) : "";
|
|
2965
2966
|
}) : (r = q.query(e, t)) == null ? void 0 : r[0];
|
|
2966
|
-
},
|
|
2967
|
+
}, wo = (e, t, r, s) => {
|
|
2967
2968
|
const o = q.query(e, t);
|
|
2968
2969
|
return (o == null ? void 0 : o.map((c) => {
|
|
2969
2970
|
var u;
|
|
2970
|
-
const i =
|
|
2971
|
+
const i = No(c, r), n = s ? (u = q.query(c, s)) == null ? void 0 : u[0] : c;
|
|
2971
2972
|
return { label: i, value: n };
|
|
2972
2973
|
})) ?? [];
|
|
2973
|
-
},
|
|
2974
|
+
}, vo = (e, t, r, s = 10) => {
|
|
2974
2975
|
var n, u;
|
|
2975
2976
|
let o, c;
|
|
2976
2977
|
if (r) {
|
|
@@ -2986,9 +2987,9 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
2986
2987
|
total: c,
|
|
2987
2988
|
hasMore: i
|
|
2988
2989
|
};
|
|
2989
|
-
},
|
|
2990
|
-
selectNotFront:
|
|
2991
|
-
},
|
|
2990
|
+
}, Eo = "_selectNotFront_ch3v5_1", Xt = {
|
|
2991
|
+
selectNotFront: Eo
|
|
2992
|
+
}, To = ({
|
|
2992
2993
|
userFlow: e,
|
|
2993
2994
|
pageId: t,
|
|
2994
2995
|
responseKey: r,
|
|
@@ -3001,17 +3002,17 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3001
3002
|
}) => {
|
|
3002
3003
|
const l = {
|
|
3003
3004
|
...u
|
|
3004
|
-
}, { getNextUI: d, fetchDataSource: _ } = K(), [h, f] = O((l == null ? void 0 : l.value) ?? ""), { disabled: x } =
|
|
3005
|
+
}, { getNextUI: d, fetchDataSource: _ } = K(), [h, f] = O((l == null ? void 0 : l.value) ?? ""), { disabled: x } = L(
|
|
3005
3006
|
e,
|
|
3006
3007
|
i
|
|
3007
|
-
), m = (l == null ? void 0 : l.disabled) ?? x, y = S(() => s && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, s]),
|
|
3008
|
-
const
|
|
3009
|
-
return Array.isArray(
|
|
3008
|
+
), m = (l == null ? void 0 : l.disabled) ?? x, y = S(() => s && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, s]), g = S(() => {
|
|
3009
|
+
const p = l != null && l.isMulti ? h : [h], C = {};
|
|
3010
|
+
return Array.isArray(p) && p.forEach((N) => {
|
|
3010
3011
|
if (!N) return;
|
|
3011
|
-
const E = JSON.stringify(N.value),
|
|
3012
|
-
|
|
3013
|
-
}),
|
|
3014
|
-
}, [h]), j =
|
|
3012
|
+
const E = JSON.stringify(N.value), I = JSON.stringify(N.label);
|
|
3013
|
+
C[E] = N, I in C || (C[I] = N);
|
|
3014
|
+
}), C;
|
|
3015
|
+
}, [h]), j = Vt({
|
|
3015
3016
|
userFlow: e,
|
|
3016
3017
|
pageId: t,
|
|
3017
3018
|
responseKey: r,
|
|
@@ -3019,28 +3020,28 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3019
3020
|
getNextUI: d,
|
|
3020
3021
|
isMulti: l == null ? void 0 : l.isMulti,
|
|
3021
3022
|
debounceMs: n
|
|
3022
|
-
}), b = (
|
|
3023
|
-
f(
|
|
3024
|
-
},
|
|
3023
|
+
}), b = (p) => {
|
|
3024
|
+
f(p), j(p);
|
|
3025
|
+
}, w = async (p, C, { page: N }) => {
|
|
3025
3026
|
const {
|
|
3026
3027
|
jsonPathLabel: E,
|
|
3027
|
-
jsonPathOptions:
|
|
3028
|
+
jsonPathOptions: I,
|
|
3028
3029
|
jsonPathValue: W,
|
|
3029
3030
|
jsonPathPagination: ye
|
|
3030
|
-
} = o,
|
|
3031
|
+
} = o, Q = We(
|
|
3031
3032
|
o,
|
|
3032
3033
|
N,
|
|
3033
|
-
|
|
3034
|
+
p
|
|
3034
3035
|
), ie = await _(
|
|
3035
|
-
|
|
3036
|
+
Q,
|
|
3036
3037
|
e,
|
|
3037
3038
|
!1
|
|
3038
|
-
), G = ie == null ? void 0 : ie.data, me = G ?
|
|
3039
|
+
), G = ie == null ? void 0 : ie.data, me = G ? wo(
|
|
3039
3040
|
G,
|
|
3040
|
-
|
|
3041
|
+
I,
|
|
3041
3042
|
E,
|
|
3042
3043
|
W
|
|
3043
|
-
) : [], { hasMore: ve } =
|
|
3044
|
+
) : [], { hasMore: ve } = vo(
|
|
3044
3045
|
G,
|
|
3045
3046
|
N,
|
|
3046
3047
|
ye
|
|
@@ -3062,17 +3063,17 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3062
3063
|
value: h,
|
|
3063
3064
|
disabled: m,
|
|
3064
3065
|
noOptionsMessage: () => /* @__PURE__ */ a.jsx(a.Fragment, { children: "Sin opciones" }),
|
|
3065
|
-
onChange: (
|
|
3066
|
-
loadOptions:
|
|
3066
|
+
onChange: (p) => !m && b(p),
|
|
3067
|
+
loadOptions: w,
|
|
3067
3068
|
additional: { page: 1 },
|
|
3068
|
-
isOptionDisabled: (
|
|
3069
|
-
const
|
|
3070
|
-
return !!(
|
|
3069
|
+
isOptionDisabled: (p) => {
|
|
3070
|
+
const C = JSON.stringify(p == null ? void 0 : p.value), N = JSON.stringify(p == null ? void 0 : p.label);
|
|
3071
|
+
return !!(g != null && g[C]) || !!(g != null && g[N]);
|
|
3071
3072
|
},
|
|
3072
3073
|
debounceTimeout: 350
|
|
3073
3074
|
}
|
|
3074
3075
|
);
|
|
3075
|
-
},
|
|
3076
|
+
}, Ao = ({
|
|
3076
3077
|
userFlow: e,
|
|
3077
3078
|
pageId: t,
|
|
3078
3079
|
responseKey: r,
|
|
@@ -3085,10 +3086,10 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3085
3086
|
}) => {
|
|
3086
3087
|
const l = {
|
|
3087
3088
|
...u
|
|
3088
|
-
}, { getNextUI: d } = K(), [_, h] = O(l.value || ""), { disabled: f } =
|
|
3089
|
+
}, { getNextUI: d } = K(), [_, h] = O(l.value || ""), { disabled: f } = L(
|
|
3089
3090
|
e,
|
|
3090
3091
|
i
|
|
3091
|
-
), x = (l == null ? void 0 : l.disabled) ?? f, m = S(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), y =
|
|
3092
|
+
), x = (l == null ? void 0 : l.disabled) ?? f, m = S(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), y = Vt({
|
|
3092
3093
|
userFlow: e,
|
|
3093
3094
|
pageId: t,
|
|
3094
3095
|
responseKey: r,
|
|
@@ -3096,7 +3097,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3096
3097
|
getNextUI: d,
|
|
3097
3098
|
isMulti: l == null ? void 0 : l.isMulti,
|
|
3098
3099
|
debounceMs: n
|
|
3099
|
-
}),
|
|
3100
|
+
}), g = (j) => {
|
|
3100
3101
|
h(j), y(j);
|
|
3101
3102
|
};
|
|
3102
3103
|
return /* @__PURE__ */ a.jsx(
|
|
@@ -3107,26 +3108,26 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3107
3108
|
label: m,
|
|
3108
3109
|
value: _,
|
|
3109
3110
|
disabled: x,
|
|
3110
|
-
onChange: (j) => !x &&
|
|
3111
|
+
onChange: (j) => !x && g(j)
|
|
3111
3112
|
}
|
|
3112
3113
|
);
|
|
3113
|
-
},
|
|
3114
|
+
}, ko = (e) => {
|
|
3114
3115
|
const { dataSource: t } = e;
|
|
3115
|
-
return t ? /* @__PURE__ */ a.jsx(
|
|
3116
|
-
},
|
|
3117
|
-
spacing:
|
|
3118
|
-
spacing__xxs:
|
|
3119
|
-
spacing__xs:
|
|
3120
|
-
spacing__sm:
|
|
3121
|
-
spacing__md:
|
|
3122
|
-
spacing__lg:
|
|
3123
|
-
spacing__xl:
|
|
3124
|
-
spacing__xxl:
|
|
3125
|
-
spacing__xxxl:
|
|
3126
|
-
},
|
|
3127
|
-
const { size: t } = e, r =
|
|
3116
|
+
return t ? /* @__PURE__ */ a.jsx(To, { ...e }) : /* @__PURE__ */ a.jsx(Ao, { ...e });
|
|
3117
|
+
}, So = "_spacing_19hqa_1", Oo = "_spacing__xxs_19hqa_1", Ro = "_spacing__xs_19hqa_4", Do = "_spacing__sm_19hqa_7", Io = "_spacing__md_19hqa_10", $o = "_spacing__lg_19hqa_13", Lo = "_spacing__xl_19hqa_16", qo = "_spacing__xxl_19hqa_19", Bo = "_spacing__xxxl_19hqa_22", Nt = {
|
|
3118
|
+
spacing: So,
|
|
3119
|
+
spacing__xxs: Oo,
|
|
3120
|
+
spacing__xs: Ro,
|
|
3121
|
+
spacing__sm: Do,
|
|
3122
|
+
spacing__md: Io,
|
|
3123
|
+
spacing__lg: $o,
|
|
3124
|
+
spacing__xl: Lo,
|
|
3125
|
+
spacing__xxl: qo,
|
|
3126
|
+
spacing__xxxl: Bo
|
|
3127
|
+
}, Ho = (e) => {
|
|
3128
|
+
const { size: t } = e, r = J(Nt.spacing, Nt[`spacing__${t}`]);
|
|
3128
3129
|
return /* @__PURE__ */ a.jsx("div", { className: r });
|
|
3129
|
-
},
|
|
3130
|
+
}, Ko = (e) => {
|
|
3130
3131
|
const {
|
|
3131
3132
|
userFlow: t,
|
|
3132
3133
|
pageId: r,
|
|
@@ -3139,29 +3140,29 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3139
3140
|
...l
|
|
3140
3141
|
} = e, d = {
|
|
3141
3142
|
...l
|
|
3142
|
-
}, { getNextUI: _ } = K(), [h, f] = O(i || !1), { disabled: x } =
|
|
3143
|
+
}, { getNextUI: _ } = K(), [h, f] = O(i || !1), { disabled: x } = L(
|
|
3143
3144
|
t,
|
|
3144
3145
|
u
|
|
3145
|
-
), m = (d == null ? void 0 : d.disabled) ?? x, y = S(() => n && c ? `${c} *` : c ?? "", [c, n]),
|
|
3146
|
+
), m = (d == null ? void 0 : d.disabled) ?? x, y = S(() => n && c ? `${c} *` : c ?? "", [c, n]), g = R(async () => {
|
|
3146
3147
|
var j;
|
|
3147
3148
|
try {
|
|
3148
3149
|
const b = !h;
|
|
3149
3150
|
f(b);
|
|
3150
|
-
const
|
|
3151
|
+
const w = {
|
|
3151
3152
|
...(j = v.getState()[t]) == null ? void 0 : j.entries,
|
|
3152
3153
|
[s]: b
|
|
3153
3154
|
};
|
|
3154
|
-
switch (B(t,
|
|
3155
|
+
switch (B(t, w), o) {
|
|
3155
3156
|
case "GO_TO_NEXT_UI":
|
|
3156
3157
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
3157
|
-
const
|
|
3158
|
+
const C = await _(
|
|
3158
3159
|
t,
|
|
3159
3160
|
r,
|
|
3160
|
-
|
|
3161
|
+
w,
|
|
3161
3162
|
s,
|
|
3162
3163
|
o === "GO_TO_NEXT_UI"
|
|
3163
3164
|
);
|
|
3164
|
-
|
|
3165
|
+
C != null && C.data && H(t, C == null ? void 0 : C.data);
|
|
3165
3166
|
break;
|
|
3166
3167
|
}
|
|
3167
3168
|
default:
|
|
@@ -3178,10 +3179,10 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3178
3179
|
label: y,
|
|
3179
3180
|
checked: h,
|
|
3180
3181
|
disabled: m,
|
|
3181
|
-
onChange: () => !m &&
|
|
3182
|
+
onChange: () => !m && g()
|
|
3182
3183
|
}
|
|
3183
3184
|
);
|
|
3184
|
-
},
|
|
3185
|
+
}, Uo = 10, Go = [10, 20, 50, 100], Mo = 72, zo = 120, Vo = (e, t) => e != null && t.includes(e) ? e : t[0] ?? Uo, Xo = ({
|
|
3185
3186
|
maxHeight: e,
|
|
3186
3187
|
stickyHeader: t,
|
|
3187
3188
|
autoFitToViewport: r,
|
|
@@ -3195,15 +3196,15 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3195
3196
|
} : {
|
|
3196
3197
|
maxHeight: s,
|
|
3197
3198
|
stickyHeader: t ?? !0
|
|
3198
|
-
},
|
|
3199
|
+
}, Wo = ({
|
|
3199
3200
|
viewportHeight: e,
|
|
3200
3201
|
elementTop: t,
|
|
3201
|
-
pagerReservedHeight: r =
|
|
3202
|
-
minTableHeight: s =
|
|
3202
|
+
pagerReservedHeight: r = Mo,
|
|
3203
|
+
minTableHeight: s = zo
|
|
3203
3204
|
}) => {
|
|
3204
3205
|
const o = e - Math.max(t, 0) - r;
|
|
3205
3206
|
return Math.max(o, s);
|
|
3206
|
-
},
|
|
3207
|
+
}, Jo = ({ enabled: e }) => {
|
|
3207
3208
|
const [t, r] = O(null), [s, o] = O();
|
|
3208
3209
|
return sn(() => {
|
|
3209
3210
|
if (!e || !t) {
|
|
@@ -3213,7 +3214,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3213
3214
|
const c = () => {
|
|
3214
3215
|
const n = t.getBoundingClientRect().top;
|
|
3215
3216
|
o(
|
|
3216
|
-
|
|
3217
|
+
Wo({
|
|
3217
3218
|
viewportHeight: window.innerHeight,
|
|
3218
3219
|
elementTop: n
|
|
3219
3220
|
})
|
|
@@ -3228,29 +3229,29 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3228
3229
|
tableContainerRef: r,
|
|
3229
3230
|
availableHeight: s
|
|
3230
3231
|
};
|
|
3231
|
-
},
|
|
3232
|
-
table_scrollContainer:
|
|
3233
|
-
tableSkeleton:
|
|
3234
|
-
tableArrayPills:
|
|
3235
|
-
},
|
|
3232
|
+
}, Yo = "_table_scrollContainer_1g2ed_1", Qo = "_tableSkeleton_1g2ed_5", Zo = "_tableArrayPills_1g2ed_11", Qe = {
|
|
3233
|
+
table_scrollContainer: Yo,
|
|
3234
|
+
tableSkeleton: Qo,
|
|
3235
|
+
tableArrayPills: Zo
|
|
3236
|
+
}, Fo = (e, t) => {
|
|
3236
3237
|
if (e)
|
|
3237
|
-
return
|
|
3238
|
+
return Ne(e, !0);
|
|
3238
3239
|
if (t)
|
|
3239
|
-
return
|
|
3240
|
-
},
|
|
3240
|
+
return Ne("neutral", !0);
|
|
3241
|
+
}, Po = ({
|
|
3241
3242
|
values: e,
|
|
3242
3243
|
pillVariant: t,
|
|
3243
3244
|
pillOutlined: r
|
|
3244
3245
|
}) => {
|
|
3245
|
-
const o =
|
|
3246
|
+
const o = xo(e ?? [], {
|
|
3246
3247
|
variant: t,
|
|
3247
3248
|
outlined: r
|
|
3248
|
-
}), c = o.slice(0, 4), i = o.length - 4, n =
|
|
3249
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
3249
|
+
}), c = o.slice(0, 4), i = o.length - 4, n = Fo(t, r);
|
|
3250
|
+
return /* @__PURE__ */ a.jsxs("div", { className: Qe.tableArrayPills, children: [
|
|
3250
3251
|
c.map((u, l) => {
|
|
3251
|
-
const d =
|
|
3252
|
+
const d = Ne(u.variant, u.outlined);
|
|
3252
3253
|
return /* @__PURE__ */ a.jsx(
|
|
3253
|
-
|
|
3254
|
+
qe,
|
|
3254
3255
|
{
|
|
3255
3256
|
color: d.color,
|
|
3256
3257
|
textColor: d.textColor,
|
|
@@ -3262,7 +3263,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3262
3263
|
);
|
|
3263
3264
|
}),
|
|
3264
3265
|
i > 0 && /* @__PURE__ */ a.jsxs(
|
|
3265
|
-
|
|
3266
|
+
qe,
|
|
3266
3267
|
{
|
|
3267
3268
|
outlined: !0,
|
|
3268
3269
|
color: n == null ? void 0 : n.color,
|
|
@@ -3275,7 +3276,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3275
3276
|
}
|
|
3276
3277
|
)
|
|
3277
3278
|
] });
|
|
3278
|
-
},
|
|
3279
|
+
}, ea = ({
|
|
3279
3280
|
userFlow: e,
|
|
3280
3281
|
pageId: t,
|
|
3281
3282
|
tableResponseKey: r,
|
|
@@ -3351,15 +3352,15 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3351
3352
|
return on(l, {
|
|
3352
3353
|
onClick: f
|
|
3353
3354
|
});
|
|
3354
|
-
},
|
|
3355
|
-
|
|
3355
|
+
}, ta = () => /* @__PURE__ */ a.jsx("div", { className: Qe.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ a.jsx(
|
|
3356
|
+
At,
|
|
3356
3357
|
{
|
|
3357
3358
|
maxWidth: "100%",
|
|
3358
3359
|
height: 42,
|
|
3359
3360
|
radius: 8
|
|
3360
3361
|
},
|
|
3361
3362
|
`tableSkeletonBase${t}`
|
|
3362
|
-
)) }),
|
|
3363
|
+
)) }), na = (e, t) => !(t != null && t.length) || !e ? e : e.map((r) => t.some((o) => {
|
|
3363
3364
|
const c = o;
|
|
3364
3365
|
return Array.isArray(
|
|
3365
3366
|
r != null && r.accessor ? c[r.accessor] : void 0
|
|
@@ -3369,7 +3370,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3369
3370
|
renderCell: (o) => {
|
|
3370
3371
|
const c = r.accessor ? o[r.accessor] : void 0;
|
|
3371
3372
|
return Array.isArray(c) ? /* @__PURE__ */ a.jsx(
|
|
3372
|
-
|
|
3373
|
+
Po,
|
|
3373
3374
|
{
|
|
3374
3375
|
values: c,
|
|
3375
3376
|
pillVariant: r.pillVariant,
|
|
@@ -3377,7 +3378,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3377
3378
|
}
|
|
3378
3379
|
) : c ?? "";
|
|
3379
3380
|
}
|
|
3380
|
-
} : r),
|
|
3381
|
+
} : r), ra = ({
|
|
3381
3382
|
userFlow: e,
|
|
3382
3383
|
pageId: t,
|
|
3383
3384
|
responseKey: r,
|
|
@@ -3392,16 +3393,16 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3392
3393
|
autoHeight: _,
|
|
3393
3394
|
...h
|
|
3394
3395
|
}) => {
|
|
3395
|
-
var
|
|
3396
|
-
const { fetchDataSource: f } = K(), [x, m] = O(!1), [y,
|
|
3397
|
-
() =>
|
|
3398
|
-
), [
|
|
3396
|
+
var nt, rt;
|
|
3397
|
+
const { fetchDataSource: f } = K(), [x, m] = O(!1), [y, g] = O(1), j = l ?? Go, [b, w] = O(
|
|
3398
|
+
() => Vo(n, j)
|
|
3399
|
+
), [p, C] = O(null), N = !o && Array.isArray(i), E = !!(o != null && o.jsonPathCursorPagination) && !!((nt = o == null ? void 0 : o.jsonPathPagination) != null && nt.hasMore), I = u && !E, W = u || n != null, ye = W ? b : void 0, Q = he(
|
|
3399
3400
|
/* @__PURE__ */ new Map([[1, null]])
|
|
3400
3401
|
), ie = S(() => {
|
|
3401
3402
|
if (c != null && c.length)
|
|
3402
3403
|
return c.map(($, pe) => ({
|
|
3403
3404
|
renderContent: (Te) => /* @__PURE__ */ a.jsx(
|
|
3404
|
-
|
|
3405
|
+
ea,
|
|
3405
3406
|
{
|
|
3406
3407
|
userFlow: e,
|
|
3407
3408
|
pageId: t,
|
|
@@ -3413,7 +3414,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3413
3414
|
)
|
|
3414
3415
|
}));
|
|
3415
3416
|
}, [c, e, t, r]), G = async ($, pe) => {
|
|
3416
|
-
var
|
|
3417
|
+
var st, ot;
|
|
3417
3418
|
if (!o)
|
|
3418
3419
|
return;
|
|
3419
3420
|
const {
|
|
@@ -3422,53 +3423,53 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3422
3423
|
jsonPathPagination: Pt,
|
|
3423
3424
|
jsonPathCursorPagination: le
|
|
3424
3425
|
} = o;
|
|
3425
|
-
if (le && $ !== 1 && !
|
|
3426
|
-
|
|
3426
|
+
if (le && $ !== 1 && !Q.current.has($)) {
|
|
3427
|
+
g(1), G(1, pe);
|
|
3427
3428
|
return;
|
|
3428
3429
|
}
|
|
3429
|
-
le && $ === 1 && (
|
|
3430
|
+
le && $ === 1 && (Q.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
3430
3431
|
try {
|
|
3431
3432
|
m(!0);
|
|
3432
|
-
const Ae = le ?
|
|
3433
|
+
const Ae = le ? Q.current.get($) ?? null : null, en = We(
|
|
3433
3434
|
o,
|
|
3434
3435
|
$,
|
|
3435
3436
|
void 0,
|
|
3436
3437
|
Ae,
|
|
3437
3438
|
pe
|
|
3438
|
-
),
|
|
3439
|
+
), F = await f(
|
|
3439
3440
|
en,
|
|
3440
3441
|
e,
|
|
3441
3442
|
!1
|
|
3442
|
-
),
|
|
3443
|
-
|
|
3443
|
+
), at = Ut(
|
|
3444
|
+
F == null ? void 0 : F.data,
|
|
3444
3445
|
Ft,
|
|
3445
3446
|
Te,
|
|
3446
3447
|
Pt
|
|
3447
3448
|
);
|
|
3448
|
-
|
|
3449
|
-
const tn = !!((
|
|
3450
|
-
if (W && tn && ke != null && j.includes(ke) &&
|
|
3451
|
-
const
|
|
3452
|
-
|
|
3449
|
+
C(at);
|
|
3450
|
+
const tn = !!((st = o == null ? void 0 : o.jsonPathPagination) != null && st.size), ke = (ot = at.pagination) == null ? void 0 : ot.size;
|
|
3451
|
+
if (W && tn && ke != null && j.includes(ke) && w(ke), le) {
|
|
3452
|
+
const ct = es(
|
|
3453
|
+
F == null ? void 0 : F.data,
|
|
3453
3454
|
le
|
|
3454
3455
|
);
|
|
3455
|
-
|
|
3456
|
+
ct && Q.current.set($ + 1, ct);
|
|
3456
3457
|
}
|
|
3457
3458
|
m(!1);
|
|
3458
3459
|
} catch (Ae) {
|
|
3459
3460
|
console.error("[TableNotFront] fetchData:", Ae), m(!1);
|
|
3460
3461
|
}
|
|
3461
3462
|
}, me = ($) => {
|
|
3462
|
-
|
|
3463
|
+
g($), G($, ye);
|
|
3463
3464
|
}, ve = ($) => {
|
|
3464
|
-
|
|
3465
|
+
w($.value), g(1), G(1, $.value);
|
|
3465
3466
|
};
|
|
3466
3467
|
U(() => {
|
|
3467
3468
|
N || G(1, ye);
|
|
3468
3469
|
}, []);
|
|
3469
|
-
const
|
|
3470
|
+
const Z = N ? i : p == null ? void 0 : p.items, Ee = N && W && ((i == null ? void 0 : i.length) ?? 0) > b, Wt = S(() => {
|
|
3470
3471
|
if (!Ee || !i)
|
|
3471
|
-
return
|
|
3472
|
+
return Z ?? [];
|
|
3472
3473
|
const $ = (y - 1) * b;
|
|
3473
3474
|
return i.slice($, $ + b);
|
|
3474
3475
|
}, [
|
|
@@ -3476,84 +3477,84 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3476
3477
|
i,
|
|
3477
3478
|
b,
|
|
3478
3479
|
y,
|
|
3479
|
-
|
|
3480
|
+
Z
|
|
3480
3481
|
]), Jt = S(
|
|
3481
|
-
() =>
|
|
3482
|
-
[
|
|
3483
|
-
), ge = (_ ?? !0) && !E, { tableContainerRef: Yt, availableHeight:
|
|
3482
|
+
() => na(h.columns, Z),
|
|
3483
|
+
[Z, h.columns]
|
|
3484
|
+
), ge = (_ ?? !0) && !E, { tableContainerRef: Yt, availableHeight: Ze } = Jo({
|
|
3484
3485
|
enabled: ge
|
|
3485
|
-
}),
|
|
3486
|
-
() =>
|
|
3486
|
+
}), Fe = S(
|
|
3487
|
+
() => Xo({
|
|
3487
3488
|
maxHeight: h.maxHeight,
|
|
3488
3489
|
stickyHeader: h.stickyHeader,
|
|
3489
3490
|
autoFitToViewport: ge,
|
|
3490
|
-
availableHeight:
|
|
3491
|
+
availableHeight: Ze
|
|
3491
3492
|
}),
|
|
3492
3493
|
[
|
|
3493
3494
|
h.maxHeight,
|
|
3494
3495
|
h.stickyHeader,
|
|
3495
3496
|
ge,
|
|
3496
|
-
|
|
3497
|
+
Ze
|
|
3497
3498
|
]
|
|
3498
3499
|
), Qt = {
|
|
3499
3500
|
...h,
|
|
3500
|
-
maxHeight:
|
|
3501
|
-
stickyHeader:
|
|
3501
|
+
maxHeight: Fe.maxHeight,
|
|
3502
|
+
stickyHeader: Fe.stickyHeader,
|
|
3502
3503
|
data: Wt,
|
|
3503
3504
|
columns: Jt ?? [],
|
|
3504
3505
|
rightActions: ie
|
|
3505
|
-
},
|
|
3506
|
-
showRowsPerPage:
|
|
3506
|
+
}, Pe = /* @__PURE__ */ a.jsx(kn, { ...Qt }), et = ge ? /* @__PURE__ */ a.jsx("div", { ref: Yt, className: Qe.table_scrollContainer, children: Pe }) : Pe, tt = {
|
|
3507
|
+
showRowsPerPage: I,
|
|
3507
3508
|
pageSizeOptions: j,
|
|
3508
3509
|
labelRowsPerPage: d,
|
|
3509
3510
|
onRowsPerPageChange: ve
|
|
3510
3511
|
};
|
|
3511
3512
|
if (N)
|
|
3512
|
-
return !
|
|
3513
|
-
|
|
3513
|
+
return !Z || Z.length === 0 ? /* @__PURE__ */ a.jsx(je, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3514
|
+
et,
|
|
3514
3515
|
(Ee || u) && i && /* @__PURE__ */ a.jsx(
|
|
3515
3516
|
Se,
|
|
3516
3517
|
{
|
|
3517
|
-
...
|
|
3518
|
+
...tt,
|
|
3518
3519
|
classname: { global: "row__end" },
|
|
3519
3520
|
page: y,
|
|
3520
3521
|
size: b,
|
|
3521
3522
|
total: i.length,
|
|
3522
|
-
onChange:
|
|
3523
|
+
onChange: g
|
|
3523
3524
|
}
|
|
3524
3525
|
)
|
|
3525
3526
|
] });
|
|
3526
|
-
const Zt = !E && (
|
|
3527
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children: x ? /* @__PURE__ */ a.jsx(
|
|
3528
|
-
|
|
3527
|
+
const Zt = !E && (p == null ? void 0 : p.pagination) && (p.pagination.totalPages > 1 || u);
|
|
3528
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: x ? /* @__PURE__ */ a.jsx(ta, {}) : p && ((rt = p == null ? void 0 : p.items) == null ? void 0 : rt.length) > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3529
|
+
et,
|
|
3529
3530
|
Zt && /* @__PURE__ */ a.jsx(
|
|
3530
3531
|
Se,
|
|
3531
3532
|
{
|
|
3532
|
-
...
|
|
3533
|
+
...tt,
|
|
3533
3534
|
classname: { global: "row__end" },
|
|
3534
3535
|
page: y,
|
|
3535
3536
|
size: b,
|
|
3536
|
-
totalPages:
|
|
3537
|
+
totalPages: p.pagination.totalPages,
|
|
3537
3538
|
onChange: me
|
|
3538
3539
|
}
|
|
3539
3540
|
),
|
|
3540
|
-
E && (
|
|
3541
|
+
E && (p == null ? void 0 : p.pagination) && /* @__PURE__ */ a.jsx(
|
|
3541
3542
|
Se,
|
|
3542
3543
|
{
|
|
3543
3544
|
variant: "cursor",
|
|
3544
3545
|
classname: { global: "row__end" },
|
|
3545
3546
|
page: y,
|
|
3546
|
-
hasNextPage: !!
|
|
3547
|
+
hasNextPage: !!p.pagination.hasMore,
|
|
3547
3548
|
onChange: me
|
|
3548
3549
|
}
|
|
3549
3550
|
)
|
|
3550
3551
|
] }) : /* @__PURE__ */ a.jsx(je, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
3551
|
-
},
|
|
3552
|
-
tabsPanel:
|
|
3553
|
-
},
|
|
3552
|
+
}, sa = "_tabsPanel_kvslb_1", oa = {
|
|
3553
|
+
tabsPanel: sa
|
|
3554
|
+
}, aa = ({ userFlow: e, pageId: t, components: r }) => {
|
|
3554
3555
|
const s = T(e, t, r);
|
|
3555
|
-
return s != null && s.length ? /* @__PURE__ */ a.jsx("section", { className:
|
|
3556
|
-
},
|
|
3556
|
+
return s != null && s.length ? /* @__PURE__ */ a.jsx("section", { className: oa.tabsPanel, children: s.map((o, c) => /* @__PURE__ */ a.jsx(A, { children: o }, `tabs-panel-${c}`)) }) : null;
|
|
3557
|
+
}, ca = ({
|
|
3557
3558
|
userFlow: e,
|
|
3558
3559
|
pageId: t,
|
|
3559
3560
|
hash: r,
|
|
@@ -3566,7 +3567,7 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3566
3567
|
label: l.label,
|
|
3567
3568
|
disabled: l.disabled,
|
|
3568
3569
|
children: /* @__PURE__ */ a.jsx(
|
|
3569
|
-
|
|
3570
|
+
aa,
|
|
3570
3571
|
{
|
|
3571
3572
|
userFlow: e,
|
|
3572
3573
|
pageId: t,
|
|
@@ -3591,9 +3592,9 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3591
3592
|
onClick: u
|
|
3592
3593
|
}
|
|
3593
3594
|
);
|
|
3594
|
-
},
|
|
3595
|
-
textareaNotFront:
|
|
3596
|
-
},
|
|
3595
|
+
}, ia = "_textareaNotFront_1wpe5_1", la = {
|
|
3596
|
+
textareaNotFront: ia
|
|
3597
|
+
}, da = (e) => {
|
|
3597
3598
|
const {
|
|
3598
3599
|
userFlow: t,
|
|
3599
3600
|
pageId: r,
|
|
@@ -3603,28 +3604,28 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3603
3604
|
required: i,
|
|
3604
3605
|
dependencies: n,
|
|
3605
3606
|
...u
|
|
3606
|
-
} = e, { value: l, ...d } = u, [_, h] =
|
|
3607
|
+
} = e, { value: l, ...d } = u, [_, h] = Ye(
|
|
3607
3608
|
t,
|
|
3608
3609
|
c,
|
|
3609
3610
|
l ?? ""
|
|
3610
|
-
), { disabled: f } =
|
|
3611
|
+
), { disabled: f } = L(
|
|
3611
3612
|
t,
|
|
3612
3613
|
n
|
|
3613
|
-
), x = (d == null ? void 0 : d.disabled) ?? f, m = S(() => i && (d != null && d.label) ? `${d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, i]), y = (
|
|
3614
|
+
), x = (d == null ? void 0 : d.disabled) ?? f, m = S(() => i && (d != null && d.label) ? `${d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, i]), y = (g) => h(g.target.value);
|
|
3614
3615
|
return /* @__PURE__ */ a.jsx(
|
|
3615
3616
|
On,
|
|
3616
3617
|
{
|
|
3617
3618
|
...d,
|
|
3618
|
-
className:
|
|
3619
|
+
className: la.textareaNotFront,
|
|
3619
3620
|
label: m,
|
|
3620
3621
|
value: _,
|
|
3621
3622
|
disabled: x,
|
|
3622
|
-
onChange: (
|
|
3623
|
+
onChange: (g) => !x && y(g)
|
|
3623
3624
|
}
|
|
3624
3625
|
);
|
|
3625
|
-
},
|
|
3626
|
-
textFieldNotFront:
|
|
3627
|
-
},
|
|
3626
|
+
}, ua = "_textFieldNotFront_1n8fy_1", _a = {
|
|
3627
|
+
textFieldNotFront: ua
|
|
3628
|
+
}, ha = (e) => {
|
|
3628
3629
|
const {
|
|
3629
3630
|
userFlow: t,
|
|
3630
3631
|
pageId: r,
|
|
@@ -3634,27 +3635,27 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3634
3635
|
required: i,
|
|
3635
3636
|
dependencies: n,
|
|
3636
3637
|
...u
|
|
3637
|
-
} = e, { value: l, ...d } = u, [_, h] =
|
|
3638
|
+
} = e, { value: l, ...d } = u, [_, h] = Ye(
|
|
3638
3639
|
t,
|
|
3639
3640
|
c,
|
|
3640
3641
|
l ?? ""
|
|
3641
|
-
), { disabled: f } =
|
|
3642
|
+
), { disabled: f } = L(
|
|
3642
3643
|
t,
|
|
3643
3644
|
n
|
|
3644
|
-
), x = (d == null ? void 0 : d.disabled) ?? f, m = S(() => i && (d != null && d.label) ? `${d == null ? void 0 : d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, i]), y = (
|
|
3645
|
+
), x = (d == null ? void 0 : d.disabled) ?? f, m = S(() => i && (d != null && d.label) ? `${d == null ? void 0 : d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, i]), y = (g) => h(g.target.value);
|
|
3645
3646
|
return /* @__PURE__ */ a.jsx(
|
|
3646
3647
|
Rn,
|
|
3647
3648
|
{
|
|
3648
3649
|
...d,
|
|
3649
|
-
className:
|
|
3650
|
+
className: _a.textFieldNotFront,
|
|
3650
3651
|
allowClear: !1,
|
|
3651
3652
|
label: m,
|
|
3652
3653
|
value: _,
|
|
3653
3654
|
disabled: x,
|
|
3654
|
-
onChange: (
|
|
3655
|
+
onChange: (g) => !x && y(g)
|
|
3655
3656
|
}
|
|
3656
3657
|
);
|
|
3657
|
-
},
|
|
3658
|
+
}, fa = ({
|
|
3658
3659
|
userFlow: e,
|
|
3659
3660
|
pageId: t,
|
|
3660
3661
|
responseKey: r,
|
|
@@ -3690,10 +3691,10 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3690
3691
|
onClose: n
|
|
3691
3692
|
});
|
|
3692
3693
|
}, [n, e]), null;
|
|
3693
|
-
},
|
|
3694
|
-
tooltipNotFront:
|
|
3695
|
-
tooltipNotFront_content:
|
|
3696
|
-
},
|
|
3694
|
+
}, xa = "_tooltipNotFront_106iw_1", ya = "_tooltipNotFront_content_106iw_5", wt = {
|
|
3695
|
+
tooltipNotFront: xa,
|
|
3696
|
+
tooltipNotFront_content: ya
|
|
3697
|
+
}, ma = (e) => {
|
|
3697
3698
|
const {
|
|
3698
3699
|
userFlow: t,
|
|
3699
3700
|
pageId: r,
|
|
@@ -3722,13 +3723,13 @@ const bo = /\{([^}]+)\}/g, jo = (e, t) => {
|
|
|
3722
3723
|
}
|
|
3723
3724
|
);
|
|
3724
3725
|
};
|
|
3725
|
-
function
|
|
3726
|
+
function Ka({
|
|
3726
3727
|
sessionName: e,
|
|
3727
3728
|
apiConfig: t,
|
|
3728
3729
|
onResolveComponentProps: r,
|
|
3729
3730
|
children: s
|
|
3730
3731
|
}) {
|
|
3731
|
-
const o =
|
|
3732
|
+
const o = va(
|
|
3732
3733
|
e,
|
|
3733
3734
|
t,
|
|
3734
3735
|
null,
|
|
@@ -3739,7 +3740,7 @@ function Ia({
|
|
|
3739
3740
|
s
|
|
3740
3741
|
] });
|
|
3741
3742
|
}
|
|
3742
|
-
const
|
|
3743
|
+
const ga = { api: "", headers: {} }, pa = ({
|
|
3743
3744
|
userFlow: e,
|
|
3744
3745
|
components: t,
|
|
3745
3746
|
hash: r,
|
|
@@ -3748,7 +3749,7 @@ const ya = { api: "", headers: {} }, ma = ({
|
|
|
3748
3749
|
const o = r ?? `${e}-page`;
|
|
3749
3750
|
O(() => {
|
|
3750
3751
|
var u, l;
|
|
3751
|
-
return (l = (u = v.getState()[e]) == null ? void 0 : u.pages) != null && l[o] || be(e, s ??
|
|
3752
|
+
return (l = (u = v.getState()[e]) == null ? void 0 : u.pages) != null && l[o] || be(e, s ?? ga, {
|
|
3752
3753
|
type: "page",
|
|
3753
3754
|
hash: o,
|
|
3754
3755
|
body: { components: t }
|
|
@@ -3757,22 +3758,25 @@ const ya = { api: "", headers: {} }, ma = ({
|
|
|
3757
3758
|
const c = T(e, o, t);
|
|
3758
3759
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: c });
|
|
3759
3760
|
};
|
|
3760
|
-
function
|
|
3761
|
+
function ba(e) {
|
|
3761
3762
|
if (e == null || typeof e != "object" || !("components" in e) || !Array.isArray(e.components))
|
|
3762
3763
|
throw new Error(
|
|
3763
3764
|
"[renderNotFront] payload.display must be an object with a `components` array"
|
|
3764
3765
|
);
|
|
3765
3766
|
return e.components;
|
|
3766
3767
|
}
|
|
3767
|
-
const
|
|
3768
|
-
const r =
|
|
3768
|
+
const ja = ({ payload: e, userFlow: t }) => {
|
|
3769
|
+
const r = ba(e.display), s = pa({
|
|
3769
3770
|
userFlow: t,
|
|
3770
3771
|
hash: e.id,
|
|
3771
3772
|
components: r
|
|
3772
3773
|
});
|
|
3773
3774
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
|
|
3774
|
-
},
|
|
3775
|
-
|
|
3775
|
+
}, Ua = ja, vt = (e, t, r, s, {
|
|
3776
|
+
onResolveComponentProps: o,
|
|
3777
|
+
embedded: c
|
|
3778
|
+
} = {}) => {
|
|
3779
|
+
const i = T(
|
|
3776
3780
|
e,
|
|
3777
3781
|
t,
|
|
3778
3782
|
(s == null ? void 0 : s.components) || null,
|
|
@@ -3781,82 +3785,123 @@ const pa = ({ payload: e, userFlow: t }) => {
|
|
|
3781
3785
|
switch (r) {
|
|
3782
3786
|
case "body":
|
|
3783
3787
|
return /* @__PURE__ */ a.jsx(
|
|
3784
|
-
|
|
3788
|
+
Dr,
|
|
3785
3789
|
{
|
|
3786
3790
|
...s,
|
|
3787
|
-
inputs:
|
|
3791
|
+
inputs: i || [],
|
|
3792
|
+
embedded: c
|
|
3788
3793
|
},
|
|
3789
3794
|
JSON.stringify(s == null ? void 0 : s.components)
|
|
3790
3795
|
);
|
|
3791
3796
|
case "header":
|
|
3792
3797
|
return /* @__PURE__ */ a.jsx(
|
|
3793
|
-
|
|
3798
|
+
no,
|
|
3794
3799
|
{
|
|
3795
3800
|
...s,
|
|
3796
|
-
components:
|
|
3801
|
+
components: i || []
|
|
3797
3802
|
},
|
|
3798
3803
|
JSON.stringify(s == null ? void 0 : s.components)
|
|
3799
3804
|
);
|
|
3800
3805
|
default:
|
|
3801
3806
|
return null;
|
|
3802
3807
|
}
|
|
3803
|
-
},
|
|
3804
|
-
|
|
3805
|
-
|
|
3808
|
+
}, Ca = (e) => ({
|
|
3809
|
+
id: e.id,
|
|
3810
|
+
label: e.label,
|
|
3811
|
+
icon: e.icon,
|
|
3812
|
+
disabled: e.disabled,
|
|
3813
|
+
showBadge: e.showBadge,
|
|
3814
|
+
badgeAriaLabel: e.badgeAriaLabel,
|
|
3815
|
+
href: e.actionType === "REDIRECT" ? e.redirectUrl : void 0
|
|
3816
|
+
}), Na = (e, t, r = []) => {
|
|
3817
|
+
const s = Je(
|
|
3818
|
+
e,
|
|
3819
|
+
t
|
|
3820
|
+
), o = (c, i) => {
|
|
3821
|
+
const n = r.flat().find(({ id: u }) => u === c.id);
|
|
3822
|
+
(n == null ? void 0 : n.actionType) === "GO_TO_NEXT_UI" && (i.preventDefault(), s(n));
|
|
3823
|
+
};
|
|
3824
|
+
return {
|
|
3825
|
+
sections: r.map((c) => c.map(Ca)),
|
|
3826
|
+
onItemClick: o
|
|
3827
|
+
};
|
|
3828
|
+
}, wa = ({
|
|
3829
|
+
userFlow: e,
|
|
3830
|
+
responseKey: t,
|
|
3831
|
+
sections: r,
|
|
3832
|
+
activeId: s,
|
|
3833
|
+
persistenceKey: o,
|
|
3834
|
+
ariaLabel: c,
|
|
3835
|
+
children: i
|
|
3836
|
+
}) => {
|
|
3837
|
+
const n = Na(
|
|
3838
|
+
e,
|
|
3839
|
+
t,
|
|
3840
|
+
r
|
|
3841
|
+
);
|
|
3842
|
+
return /* @__PURE__ */ a.jsx(
|
|
3843
|
+
In,
|
|
3844
|
+
{
|
|
3845
|
+
...n,
|
|
3846
|
+
activeId: s,
|
|
3847
|
+
persistenceKey: o,
|
|
3848
|
+
"aria-label": c,
|
|
3849
|
+
children: i
|
|
3850
|
+
}
|
|
3851
|
+
);
|
|
3852
|
+
}, va = (e, t, r, s) => {
|
|
3853
|
+
var p;
|
|
3854
|
+
const [o, c] = O(!1), i = !!(t != null && t.api && !r && e), [n, u] = O(i), l = v((C) => C[e]), d = l == null ? void 0 : l.currentPageId, _ = (l == null ? void 0 : l.isLoading) ?? !1, h = n || _, f = d ? (p = l == null ? void 0 : l.pages[d]) == null ? void 0 : p.page : void 0, x = (f == null ? void 0 : f.type) === "page" ? f.headerNavigation : void 0, m = (f == null ? void 0 : f.type) === "page" ? f.contextualNavigation : void 0, y = (f == null ? void 0 : f.header) ?? null, g = !!y || !x;
|
|
3806
3855
|
U(() => {
|
|
3807
3856
|
if (typeof window > "u") return;
|
|
3808
|
-
const
|
|
3809
|
-
|
|
3857
|
+
const C = new URL(window.location.href), N = C.searchParams.get("sessionId");
|
|
3858
|
+
N && (ze(N), C.searchParams.delete("sessionId"), window.history.replaceState({}, "", C.toString()));
|
|
3810
3859
|
}, []);
|
|
3811
|
-
const
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
"header",
|
|
3815
|
-
m,
|
|
3816
|
-
s
|
|
3817
|
-
), j = Nt(
|
|
3860
|
+
const j = vt(e, d ?? "", "header", y, {
|
|
3861
|
+
onResolveComponentProps: s
|
|
3862
|
+
}), b = vt(
|
|
3818
3863
|
e,
|
|
3819
3864
|
d ?? "",
|
|
3820
3865
|
"body",
|
|
3821
3866
|
(f == null ? void 0 : f.body) ?? null,
|
|
3822
|
-
s
|
|
3823
|
-
),
|
|
3867
|
+
{ onResolveComponentProps: s, embedded: !!m }
|
|
3868
|
+
), w = async () => {
|
|
3824
3869
|
try {
|
|
3825
|
-
const
|
|
3870
|
+
const C = await Ht(
|
|
3826
3871
|
t,
|
|
3827
3872
|
e
|
|
3828
|
-
),
|
|
3829
|
-
(
|
|
3873
|
+
), N = C == null ? void 0 : C.data, E = N == null ? void 0 : N.content;
|
|
3874
|
+
(C == null ? void 0 : C.status) === 200 ? be(
|
|
3830
3875
|
e,
|
|
3831
3876
|
t,
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3877
|
+
E,
|
|
3878
|
+
N == null ? void 0 : N.sessionState,
|
|
3879
|
+
N == null ? void 0 : N.sessionId
|
|
3835
3880
|
) : c(!0);
|
|
3836
|
-
} catch (
|
|
3837
|
-
console.error("[not-page]: API call failed",
|
|
3881
|
+
} catch (C) {
|
|
3882
|
+
console.error("[not-page]: API call failed", C), c(!0);
|
|
3838
3883
|
} finally {
|
|
3839
3884
|
u(!1);
|
|
3840
3885
|
}
|
|
3841
3886
|
};
|
|
3842
3887
|
return U(() => {
|
|
3843
|
-
t != null && t.api && !r && e ?
|
|
3888
|
+
t != null && t.api && !r && e ? w() : !(t != null && t.api) && r && e || t != null && t.api && r && e ? be(e, t, r) : (!(t != null && t.api) && !r || !e) && (c(!0), console.error(
|
|
3844
3889
|
"[not-page]: API call failed",
|
|
3845
3890
|
"not api config",
|
|
3846
3891
|
"not userFlow"
|
|
3847
3892
|
));
|
|
3848
|
-
const
|
|
3849
|
-
const
|
|
3850
|
-
fe.setThemeMode(
|
|
3893
|
+
const C = "avocado-theme-mode-changed", N = (E) => {
|
|
3894
|
+
const I = E.detail;
|
|
3895
|
+
fe.setThemeMode(I);
|
|
3851
3896
|
};
|
|
3852
|
-
return window.addEventListener(
|
|
3853
|
-
window.removeEventListener(
|
|
3897
|
+
return window.addEventListener(C, N), () => {
|
|
3898
|
+
window.removeEventListener(C, N);
|
|
3854
3899
|
};
|
|
3855
3900
|
}, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3856
3901
|
h && /* @__PURE__ */ a.jsx($n, {}),
|
|
3857
|
-
d &&
|
|
3902
|
+
d && g ? j : null,
|
|
3858
3903
|
d && x && /* @__PURE__ */ a.jsx(
|
|
3859
|
-
|
|
3904
|
+
zt,
|
|
3860
3905
|
{
|
|
3861
3906
|
...x,
|
|
3862
3907
|
userFlow: e,
|
|
@@ -3864,21 +3909,29 @@ const pa = ({ payload: e, userFlow: t }) => {
|
|
|
3864
3909
|
onResolveComponentProps: s
|
|
3865
3910
|
}
|
|
3866
3911
|
),
|
|
3867
|
-
d ?
|
|
3868
|
-
|
|
3869
|
-
|
|
3912
|
+
d && (m ? /* @__PURE__ */ a.jsx(
|
|
3913
|
+
wa,
|
|
3914
|
+
{
|
|
3915
|
+
...m,
|
|
3916
|
+
userFlow: e,
|
|
3917
|
+
children: b
|
|
3918
|
+
},
|
|
3919
|
+
m.hash
|
|
3920
|
+
) : b),
|
|
3921
|
+
d && /* @__PURE__ */ a.jsx(lo, { userFlow: e, pageId: d }),
|
|
3922
|
+
l && /* @__PURE__ */ a.jsx(Ln, {})
|
|
3870
3923
|
] });
|
|
3871
3924
|
};
|
|
3872
3925
|
export {
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3926
|
+
As as Chart,
|
|
3927
|
+
Ka as NotFrontPage,
|
|
3928
|
+
ja as RenderNotFront,
|
|
3929
|
+
jo as Row,
|
|
3930
|
+
Ha as clearSessionId,
|
|
3931
|
+
ba as extractNotFrontComponents,
|
|
3932
|
+
ir as heading,
|
|
3933
|
+
Ua as renderNotFront,
|
|
3934
|
+
lr as text,
|
|
3935
|
+
pa as useNotFrontFragment,
|
|
3936
|
+
va as usePage
|
|
3884
3937
|
};
|