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