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