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