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