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