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