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