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