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