@foris/avocado-not-front 5.0.3 → 5.1.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.es.js +1208 -1126
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/components/chart/chart.constants.d.ts +5 -0
- package/dist/components/chart/chart.types.d.ts +25 -1
- package/dist/components/chart/chart.util.d.ts +18 -0
- package/dist/components/chart/charts/HorizontalBarChart.d.ts +2 -0
- package/dist/components/chart/charts/MixBarChart.d.ts +2 -0
- package/dist/components/chart/charts/index.d.ts +3 -1
- package/dist/components/chart/components/ChartFrame.d.ts +4 -1
- package/dist/components/chart/components/Tooltip.d.ts +3 -1
- package/dist/components/chart/components/XAxis.d.ts +3 -2
- package/dist/components/chart/components/YAxis.d.ts +7 -1
- package/dist/components/round-button/RoundButton.test.d.ts +1 -0
- package/dist/types/components.type.d.ts +17 -1
- package/package.json +5 -5
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import X from "axios";
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { ChatPanel as
|
|
6
|
-
import
|
|
7
|
-
import { ResponsiveContainer as
|
|
8
|
-
import
|
|
9
|
-
import { json as
|
|
2
|
+
import { create as ft } from "zustand";
|
|
3
|
+
import yt, { useMemo as T, useState as $, useCallback as D, Fragment as k, useEffect as U, useRef as ie, cloneElement as xt } from "react";
|
|
4
|
+
import { Heading as Pe, Text as mt, Accordion as gt, ThemeStore as le, Box as pt, RadioButton as bt, Stepper as jt, ProgressBar as Ct, Breadcrumbs as wt, Button as Nt, CardAccordion as vt, Card as Et, CardNotification as xe, SkeletonBase as et, Checkbox as St, PreviewerMarkdown as tt, DataCard as Tt, Divider as kt, Drawer as At, DropdownButton as Ot, Link as $t, Menu as Rt, Modal as qt, Pill as Ee, RoundButton as Dt, SelectPagination as Lt, Select as It, Switch as Bt, Table as qe, Pager as De, Tabs as Kt, Textarea as Ht, TextField as Gt, toast as re, Tooltip as Mt, Loading as Ut, Toaster as Vt } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as zt, PromptCodeEditor as Xt, SummaryCard as Jt } from "@foris/ai-agent";
|
|
6
|
+
import K from "jsonpath";
|
|
7
|
+
import { ResponsiveContainer as nt, Legend as Wt, Tooltip as Yt, XAxis as Qt, YAxis as Zt, AreaChart as Ft, CartesianGrid as de, Area as Pt, BarChart as Te, Bar as ke, LineChart as en, Line as tn, PieChart as nn, Pie as sn, Cell as rn } from "recharts";
|
|
8
|
+
import an from "@uiw/react-codemirror";
|
|
9
|
+
import { json as Le } from "@codemirror/lang-json";
|
|
10
10
|
import { markdown as on } from "@codemirror/lang-markdown";
|
|
11
11
|
import { sql as cn } from "@codemirror/lang-sql";
|
|
12
12
|
import { yaml as ln } from "@codemirror/lang-yaml";
|
|
13
|
-
import { Icon as
|
|
14
|
-
const N =
|
|
15
|
-
const i = s == null ? void 0 : s.hash, l =
|
|
13
|
+
import { Icon as Ie } from "@foris/avocado-icons";
|
|
14
|
+
const N = ft(() => ({})), ye = (e, t, s, a) => {
|
|
15
|
+
const i = s == null ? void 0 : s.hash, l = a && Object.keys(a).length > 0 ? { ...a } : {};
|
|
16
16
|
N.setState((c) => {
|
|
17
17
|
var n;
|
|
18
18
|
return {
|
|
@@ -35,18 +35,18 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
|
-
},
|
|
39
|
-
const
|
|
38
|
+
}, st = (e, t, s) => {
|
|
39
|
+
const a = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
|
|
40
40
|
return t.length === 0 ? e : Object.fromEntries(
|
|
41
|
-
Object.entries(
|
|
41
|
+
Object.entries(a).filter(
|
|
42
42
|
([i]) => !t.includes(i)
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
|
-
}, dn = (e, t, s,
|
|
45
|
+
}, dn = (e, t, s, a, i) => {
|
|
46
46
|
sessionStorage.setItem("sessionId", s), N.setState((l) => {
|
|
47
|
-
const c = l[e] ?? {}, n = c.entries ?? {}, d =
|
|
47
|
+
const c = l[e] ?? {}, n = c.entries ?? {}, d = st(
|
|
48
48
|
n,
|
|
49
|
-
|
|
49
|
+
a,
|
|
50
50
|
i
|
|
51
51
|
);
|
|
52
52
|
return {
|
|
@@ -66,14 +66,14 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
}, _n = (e, t, s,
|
|
69
|
+
}, _n = (e, t, s, a) => {
|
|
70
70
|
N.setState((i) => {
|
|
71
|
-
var
|
|
72
|
-
const l = i[e] ?? {}, c = l.entries ?? {}, n =
|
|
71
|
+
var r;
|
|
72
|
+
const l = i[e] ?? {}, c = l.entries ?? {}, n = st(
|
|
73
73
|
c,
|
|
74
74
|
s,
|
|
75
|
-
|
|
76
|
-
), d = (
|
|
75
|
+
a
|
|
76
|
+
), d = (r = t.components) == null ? void 0 : r.some(
|
|
77
77
|
(_) => _.component === "drawer"
|
|
78
78
|
);
|
|
79
79
|
return {
|
|
@@ -88,7 +88,7 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
|
-
},
|
|
91
|
+
}, Ae = (e) => {
|
|
92
92
|
N.setState((t) => ({
|
|
93
93
|
...t,
|
|
94
94
|
[e]: {
|
|
@@ -99,17 +99,17 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
99
99
|
}, un = (e) => {
|
|
100
100
|
var s;
|
|
101
101
|
return ((s = N.getState()[e]) == null ? void 0 : s.overlay) ?? null;
|
|
102
|
-
},
|
|
102
|
+
}, L = (e, t) => {
|
|
103
103
|
const {
|
|
104
104
|
content: s,
|
|
105
|
-
sessionId:
|
|
105
|
+
sessionId: a,
|
|
106
106
|
deprecatedStateKeys: i = [],
|
|
107
107
|
sessionState: l
|
|
108
108
|
} = t;
|
|
109
109
|
s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? dn(
|
|
110
110
|
e,
|
|
111
111
|
s,
|
|
112
|
-
|
|
112
|
+
a,
|
|
113
113
|
i,
|
|
114
114
|
l
|
|
115
115
|
) : _n(
|
|
@@ -118,15 +118,15 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
118
118
|
i,
|
|
119
119
|
l
|
|
120
120
|
));
|
|
121
|
-
},
|
|
121
|
+
}, q = (e, t) => {
|
|
122
122
|
N.setState((s) => {
|
|
123
|
-
var
|
|
123
|
+
var a;
|
|
124
124
|
return {
|
|
125
125
|
...s,
|
|
126
126
|
[e]: {
|
|
127
127
|
...s[e],
|
|
128
128
|
entries: {
|
|
129
|
-
...(
|
|
129
|
+
...(a = s[e]) == null ? void 0 : a.entries,
|
|
130
130
|
...t
|
|
131
131
|
// New entries
|
|
132
132
|
}
|
|
@@ -135,17 +135,17 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
135
135
|
});
|
|
136
136
|
}, hn = (e, t) => {
|
|
137
137
|
N.setState((s) => {
|
|
138
|
-
const
|
|
139
|
-
if (!
|
|
138
|
+
const a = s[e];
|
|
139
|
+
if (!a)
|
|
140
140
|
return s;
|
|
141
|
-
const i =
|
|
141
|
+
const i = a.entries ?? {};
|
|
142
142
|
if (!(t in i))
|
|
143
143
|
return s;
|
|
144
144
|
const { [t]: l, ...c } = i;
|
|
145
145
|
return {
|
|
146
146
|
...s,
|
|
147
147
|
[e]: {
|
|
148
|
-
...
|
|
148
|
+
...a,
|
|
149
149
|
entries: c
|
|
150
150
|
}
|
|
151
151
|
};
|
|
@@ -158,7 +158,7 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
158
158
|
isLoading: t
|
|
159
159
|
}
|
|
160
160
|
}));
|
|
161
|
-
},
|
|
161
|
+
}, Oe = (e, t) => {
|
|
162
162
|
N.setState((s) => ({
|
|
163
163
|
...s,
|
|
164
164
|
[e]: {
|
|
@@ -166,7 +166,7 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
166
166
|
isModalOpen: t
|
|
167
167
|
}
|
|
168
168
|
}));
|
|
169
|
-
},
|
|
169
|
+
}, oe = (e, t) => {
|
|
170
170
|
N.setState((s) => ({
|
|
171
171
|
...s,
|
|
172
172
|
[e]: {
|
|
@@ -174,60 +174,60 @@ const N = ut(() => ({})), ce = (e, t, s, r) => {
|
|
|
174
174
|
isDrawerOpen: t
|
|
175
175
|
}
|
|
176
176
|
}));
|
|
177
|
-
},
|
|
177
|
+
}, Be = (e, t) => {
|
|
178
178
|
N.setState((s) => {
|
|
179
|
-
const
|
|
180
|
-
return
|
|
179
|
+
const a = s[e];
|
|
180
|
+
return a ? {
|
|
181
181
|
...s,
|
|
182
182
|
[e]: {
|
|
183
|
-
...
|
|
183
|
+
...a,
|
|
184
184
|
apiConfig: {
|
|
185
|
-
...
|
|
185
|
+
...a.apiConfig,
|
|
186
186
|
headers: t
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
} : s;
|
|
190
190
|
});
|
|
191
191
|
};
|
|
192
|
-
let
|
|
193
|
-
const fn = (e) => e._userFlow || null,
|
|
194
|
-
|
|
192
|
+
let je = !1, me = [], Ke = !1;
|
|
193
|
+
const fn = (e) => e._userFlow || null, He = (e) => {
|
|
194
|
+
me.forEach(({ resolve: t, reject: s }) => {
|
|
195
195
|
e ? s(e) : t(void 0);
|
|
196
|
-
}),
|
|
196
|
+
}), me = [];
|
|
197
197
|
}, yn = async (e) => {
|
|
198
|
-
var
|
|
198
|
+
var a, i;
|
|
199
199
|
const t = e == null ? void 0 : e.config;
|
|
200
|
-
if (((
|
|
200
|
+
if (((a = e == null ? void 0 : e.response) == null ? void 0 : a.status) === 401 && !t._retry) {
|
|
201
201
|
const l = fn(t);
|
|
202
202
|
if (l) {
|
|
203
203
|
const n = (i = N.getState()[l]) == null ? void 0 : i.apiConfig;
|
|
204
204
|
if (!n)
|
|
205
205
|
return Promise.reject(e);
|
|
206
206
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
207
|
-
if (
|
|
208
|
-
return new Promise((
|
|
209
|
-
|
|
210
|
-
}).then(() => X(t)).catch((
|
|
211
|
-
t._retry = !0,
|
|
207
|
+
if (je)
|
|
208
|
+
return new Promise((r, _) => {
|
|
209
|
+
me.push({ resolve: r, reject: _ });
|
|
210
|
+
}).then(() => X(t)).catch((r) => (console.error("[axiosInterceptors] Queued request failed:", r), Promise.reject(r)));
|
|
211
|
+
t._retry = !0, je = !0;
|
|
212
212
|
try {
|
|
213
|
-
let
|
|
213
|
+
let r;
|
|
214
214
|
if (n.onAuthenticationError)
|
|
215
|
-
|
|
215
|
+
r = await n.onAuthenticationError();
|
|
216
216
|
else if (typeof n.headers == "function")
|
|
217
|
-
|
|
217
|
+
r = n.headers();
|
|
218
218
|
else
|
|
219
219
|
throw new Error("No refresh handler available");
|
|
220
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ?
|
|
221
|
-
} catch (
|
|
220
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? Be(l, JSON.stringify(r)) : Be(l, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), He(null), X(t);
|
|
221
|
+
} catch (r) {
|
|
222
222
|
return console.error(
|
|
223
223
|
"[axiosInterceptors] Token refresh failed:",
|
|
224
|
-
|
|
224
|
+
r
|
|
225
225
|
), console.error(
|
|
226
226
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
227
|
-
|
|
228
|
-
),
|
|
227
|
+
me.length
|
|
228
|
+
), He(r), Promise.reject(r);
|
|
229
229
|
} finally {
|
|
230
|
-
|
|
230
|
+
je = !1;
|
|
231
231
|
}
|
|
232
232
|
} else
|
|
233
233
|
console.warn(
|
|
@@ -240,20 +240,20 @@ const fn = (e) => e._userFlow || null, Be = (e) => {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
return Promise.reject(e);
|
|
243
|
-
},
|
|
244
|
-
if (
|
|
243
|
+
}, xn = () => {
|
|
244
|
+
if (Ke) {
|
|
245
245
|
console.debug(
|
|
246
246
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
247
247
|
);
|
|
248
248
|
return;
|
|
249
249
|
}
|
|
250
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, yn), console.debug("[axiosInterceptors] Response error interceptor registered"),
|
|
250
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, yn), console.debug("[axiosInterceptors] Response error interceptor registered"), Ke = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
251
251
|
};
|
|
252
|
-
|
|
253
|
-
function
|
|
252
|
+
xn();
|
|
253
|
+
function mn(e) {
|
|
254
254
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
255
255
|
}
|
|
256
|
-
var
|
|
256
|
+
var Ce = { exports: {} }, ae = {};
|
|
257
257
|
/**
|
|
258
258
|
* @license React
|
|
259
259
|
* react-jsx-runtime.production.min.js
|
|
@@ -267,47 +267,47 @@ var Ge;
|
|
|
267
267
|
function gn() {
|
|
268
268
|
if (Ge) return ae;
|
|
269
269
|
Ge = 1;
|
|
270
|
-
var e =
|
|
271
|
-
function c(n, d,
|
|
272
|
-
var _, u = {}, h = null,
|
|
273
|
-
|
|
274
|
-
for (_ in d)
|
|
270
|
+
var e = yt, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), a = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
271
|
+
function c(n, d, r) {
|
|
272
|
+
var _, u = {}, h = null, f = null;
|
|
273
|
+
r !== void 0 && (h = "" + r), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (f = d.ref);
|
|
274
|
+
for (_ in d) a.call(d, _) && !l.hasOwnProperty(_) && (u[_] = d[_]);
|
|
275
275
|
if (n && n.defaultProps) for (_ in d = n.defaultProps, d) u[_] === void 0 && (u[_] = d[_]);
|
|
276
|
-
return { $$typeof: t, type: n, key: h, ref:
|
|
276
|
+
return { $$typeof: t, type: n, key: h, ref: f, props: u, _owner: i.current };
|
|
277
277
|
}
|
|
278
278
|
return ae.Fragment = s, ae.jsx = c, ae.jsxs = c, ae;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var Me;
|
|
281
|
+
function pn() {
|
|
282
|
+
return Me || (Me = 1, Ce.exports = gn()), Ce.exports;
|
|
283
283
|
}
|
|
284
|
-
var o =
|
|
285
|
-
const
|
|
284
|
+
var o = pn();
|
|
285
|
+
const bn = (e) => {
|
|
286
286
|
if (!(e != null && e.content)) return null;
|
|
287
287
|
const t = {
|
|
288
288
|
...e,
|
|
289
289
|
children: e.content,
|
|
290
290
|
type: e.variant
|
|
291
291
|
};
|
|
292
|
-
return /* @__PURE__ */ o.jsx(
|
|
292
|
+
return /* @__PURE__ */ o.jsx(Pe, { ...t });
|
|
293
293
|
}, jn = (e) => {
|
|
294
294
|
if (!e) return null;
|
|
295
295
|
const t = {
|
|
296
296
|
...e,
|
|
297
297
|
children: e.content
|
|
298
298
|
};
|
|
299
|
-
return /* @__PURE__ */ o.jsx(
|
|
300
|
-
}, E = (e, t, s,
|
|
299
|
+
return /* @__PURE__ */ o.jsx(mt, { ...t });
|
|
300
|
+
}, E = (e, t, s, a) => {
|
|
301
301
|
var c;
|
|
302
302
|
const i = {
|
|
303
|
-
accordion: (n) => /* @__PURE__ */ o.jsx(
|
|
303
|
+
accordion: (n) => /* @__PURE__ */ o.jsx(An, { ...n, userFlow: e, pageId: t }),
|
|
304
304
|
aiChatPanel: (n) => /* @__PURE__ */ o.jsx(
|
|
305
|
-
|
|
305
|
+
On,
|
|
306
306
|
{
|
|
307
307
|
...n,
|
|
308
308
|
userFlow: e,
|
|
309
309
|
pageId: t,
|
|
310
|
-
onResolveProps:
|
|
310
|
+
onResolveProps: a == null ? void 0 : a.aiChatPanel
|
|
311
311
|
}
|
|
312
312
|
),
|
|
313
313
|
aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(
|
|
@@ -316,44 +316,44 @@ const pn = (e) => {
|
|
|
316
316
|
...n,
|
|
317
317
|
userFlow: e,
|
|
318
318
|
pageId: t,
|
|
319
|
-
onResolveProps:
|
|
319
|
+
onResolveProps: a == null ? void 0 : a.aiSummaryCard
|
|
320
320
|
}
|
|
321
321
|
),
|
|
322
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(
|
|
322
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(qn, { ...n, userFlow: e, pageId: t }),
|
|
323
323
|
box: (n) => /* @__PURE__ */ o.jsx(Un, { ...n, userFlow: e, pageId: t }),
|
|
324
324
|
breadcrumbs: (n) => /* @__PURE__ */ o.jsx(ts, { ...n, userFlow: e, pageId: t }),
|
|
325
|
-
tooltip: (n) => /* @__PURE__ */ o.jsx(
|
|
326
|
-
textarea: (n) => /* @__PURE__ */ o.jsx(
|
|
325
|
+
tooltip: (n) => /* @__PURE__ */ o.jsx(Wr, { ...n, userFlow: e, pageId: t }),
|
|
326
|
+
textarea: (n) => /* @__PURE__ */ o.jsx(Gr, { ...n, userFlow: e, pageId: t }),
|
|
327
327
|
card: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: e, pageId: t }),
|
|
328
|
-
dropdownButton: (n) => /* @__PURE__ */ o.jsx(
|
|
329
|
-
menu: (n) => /* @__PURE__ */ o.jsx(
|
|
328
|
+
dropdownButton: (n) => /* @__PURE__ */ o.jsx(Ws, { ...n, userFlow: e, pageId: t }),
|
|
329
|
+
menu: (n) => /* @__PURE__ */ o.jsx(Ps, { ...n, userFlow: e, pageId: t }),
|
|
330
330
|
radioGroup: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n, userFlow: e, pageId: t }),
|
|
331
331
|
stepper: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n, userFlow: e, pageId: t }),
|
|
332
332
|
progressBar: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
|
|
333
333
|
button: (n) => /* @__PURE__ */ o.jsx(ns, { ...n, userFlow: e, pageId: t }),
|
|
334
|
-
cardAccordion: (n) => /* @__PURE__ */ o.jsx(
|
|
334
|
+
cardAccordion: (n) => /* @__PURE__ */ o.jsx(rs, { ...n, userFlow: e, pageId: t }),
|
|
335
335
|
cardNotification: (n) => /* @__PURE__ */ o.jsx(is, { ...n }),
|
|
336
|
-
chart: (n) => /* @__PURE__ */ o.jsx(
|
|
337
|
-
dataCard: (n) => /* @__PURE__ */ o.jsx(
|
|
338
|
-
checkbox: (n) => /* @__PURE__ */ o.jsx(
|
|
339
|
-
code: (n) => /* @__PURE__ */ o.jsx(
|
|
340
|
-
divider: (n) => /* @__PURE__ */ o.jsx(
|
|
341
|
-
drawer: (n) => /* @__PURE__ */ o.jsx(
|
|
342
|
-
heading: (n) =>
|
|
343
|
-
link: (n) => /* @__PURE__ */ o.jsx(
|
|
344
|
-
pill: (n) => /* @__PURE__ */ o.jsx(
|
|
345
|
-
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(
|
|
346
|
-
modal: (n) => /* @__PURE__ */ o.jsx(
|
|
347
|
-
roundButton: (n) => /* @__PURE__ */ o.jsx(
|
|
348
|
-
row: (n) => /* @__PURE__ */ o.jsx(
|
|
349
|
-
select: (n) => /* @__PURE__ */ o.jsx(
|
|
350
|
-
switch: (n) => /* @__PURE__ */ o.jsx(
|
|
351
|
-
spacing: (n) => /* @__PURE__ */ o.jsx(
|
|
352
|
-
table: (n) => /* @__PURE__ */ o.jsx(
|
|
353
|
-
tabs: (n) => /* @__PURE__ */ o.jsx(
|
|
336
|
+
chart: (n) => /* @__PURE__ */ o.jsx(As, { ...n, userFlow: e }),
|
|
337
|
+
dataCard: (n) => /* @__PURE__ */ o.jsx(Hs, { ...n, userFlow: e, pageId: t }),
|
|
338
|
+
checkbox: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
|
|
339
|
+
code: (n) => /* @__PURE__ */ o.jsx(Bs, { ...n, userFlow: e, pageId: t }),
|
|
340
|
+
divider: (n) => /* @__PURE__ */ o.jsx(Us, { ...n }),
|
|
341
|
+
drawer: (n) => /* @__PURE__ */ o.jsx(Js, { ...n, userFlow: e, pageId: t }),
|
|
342
|
+
heading: (n) => bn(n),
|
|
343
|
+
link: (n) => /* @__PURE__ */ o.jsx(Fs, { ...n, userFlow: e, pageId: t }),
|
|
344
|
+
pill: (n) => /* @__PURE__ */ o.jsx(ar, { ...n }),
|
|
345
|
+
previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(or, { ...n }),
|
|
346
|
+
modal: (n) => /* @__PURE__ */ o.jsx(nr, { ...n, userFlow: e, pageId: t }),
|
|
347
|
+
roundButton: (n) => /* @__PURE__ */ o.jsx(cr, { ...n, userFlow: e, pageId: t }),
|
|
348
|
+
row: (n) => /* @__PURE__ */ o.jsx(dr, { ...n, userFlow: e, pageId: t }),
|
|
349
|
+
select: (n) => /* @__PURE__ */ o.jsx(gr, { ...n, userFlow: e, pageId: t }),
|
|
350
|
+
switch: (n) => /* @__PURE__ */ o.jsx(kr, { ...n, userFlow: e, pageId: t }),
|
|
351
|
+
spacing: (n) => /* @__PURE__ */ o.jsx(Tr, { ...n, userFlow: e, pageId: t }),
|
|
352
|
+
table: (n) => /* @__PURE__ */ o.jsx(Lr, { ...n, userFlow: e, pageId: t }),
|
|
353
|
+
tabs: (n) => /* @__PURE__ */ o.jsx(Hr, { ...n, userFlow: e, pageId: t }),
|
|
354
354
|
text: (n) => jn(n),
|
|
355
|
-
textField: (n) => /* @__PURE__ */ o.jsx(
|
|
356
|
-
toast: (n) => /* @__PURE__ */ o.jsx(
|
|
355
|
+
textField: (n) => /* @__PURE__ */ o.jsx(Vr, { ...n, userFlow: e, pageId: t }),
|
|
356
|
+
toast: (n) => /* @__PURE__ */ o.jsx(zr, { ...n, userFlow: e, pageId: t })
|
|
357
357
|
};
|
|
358
358
|
return (c = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : c.map((n) => {
|
|
359
359
|
const d = i[n.component];
|
|
@@ -363,30 +363,30 @@ const pn = (e) => {
|
|
|
363
363
|
function Cn(e) {
|
|
364
364
|
return !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0);
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function rt(e, t) {
|
|
367
367
|
if (!(t != null && t.length))
|
|
368
368
|
return !1;
|
|
369
369
|
for (const s of t)
|
|
370
370
|
if (s.when === "empty") {
|
|
371
|
-
const
|
|
372
|
-
if (Cn(
|
|
371
|
+
const a = e == null ? void 0 : e[s.key];
|
|
372
|
+
if (Cn(a))
|
|
373
373
|
return !0;
|
|
374
374
|
}
|
|
375
375
|
return !1;
|
|
376
376
|
}
|
|
377
377
|
function I(e, t) {
|
|
378
|
-
const s = N((
|
|
378
|
+
const s = N((a) => {
|
|
379
379
|
var i;
|
|
380
|
-
return (i =
|
|
380
|
+
return (i = a[e]) == null ? void 0 : i.entries;
|
|
381
381
|
});
|
|
382
|
-
return
|
|
382
|
+
return T(
|
|
383
383
|
() => ({
|
|
384
|
-
disabled:
|
|
384
|
+
disabled: rt(s, t)
|
|
385
385
|
}),
|
|
386
386
|
[t, s]
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
|
-
const
|
|
389
|
+
const P = (e) => {
|
|
390
390
|
if (!e)
|
|
391
391
|
return { "content-type": "application/json" };
|
|
392
392
|
if (typeof e == "function")
|
|
@@ -398,10 +398,10 @@ const ee = (e) => {
|
|
|
398
398
|
return { "content-type": "application/json", Authorization: e };
|
|
399
399
|
}
|
|
400
400
|
return e;
|
|
401
|
-
},
|
|
402
|
-
const l =
|
|
403
|
-
|
|
404
|
-
const c =
|
|
401
|
+
}, _e = () => new AbortController(), wn = (e, t = {}, s = {}, a = !1, i) => {
|
|
402
|
+
const l = _e();
|
|
403
|
+
a && l.abort();
|
|
404
|
+
const c = P(t);
|
|
405
405
|
return {
|
|
406
406
|
call: X.get(e, {
|
|
407
407
|
headers: {
|
|
@@ -413,74 +413,74 @@ const ee = (e) => {
|
|
|
413
413
|
}),
|
|
414
414
|
controller: l
|
|
415
415
|
};
|
|
416
|
-
},
|
|
417
|
-
const c =
|
|
416
|
+
}, Se = (e, t = {}, s = {}, a = {}, i = !1, l) => {
|
|
417
|
+
const c = _e();
|
|
418
418
|
i && c.abort();
|
|
419
|
-
const n =
|
|
419
|
+
const n = P(t);
|
|
420
420
|
return {
|
|
421
421
|
call: X.post(e, s, {
|
|
422
422
|
headers: {
|
|
423
423
|
...n
|
|
424
424
|
},
|
|
425
|
-
params:
|
|
425
|
+
params: a,
|
|
426
426
|
signal: c.signal,
|
|
427
427
|
_userFlow: l
|
|
428
428
|
}),
|
|
429
429
|
controller: c
|
|
430
430
|
};
|
|
431
|
-
}, Nn = (e, t = {}, s = {},
|
|
432
|
-
const c =
|
|
431
|
+
}, Nn = (e, t = {}, s = {}, a = {}, i = !1, l) => {
|
|
432
|
+
const c = _e();
|
|
433
433
|
i && c.abort();
|
|
434
|
-
const n =
|
|
434
|
+
const n = P(t);
|
|
435
435
|
return {
|
|
436
436
|
call: X.put(e, s, {
|
|
437
437
|
headers: {
|
|
438
438
|
...n
|
|
439
439
|
},
|
|
440
|
-
params:
|
|
440
|
+
params: a,
|
|
441
441
|
signal: c.signal,
|
|
442
442
|
_userFlow: l
|
|
443
443
|
}),
|
|
444
444
|
controller: c
|
|
445
445
|
};
|
|
446
|
-
}, vn = (e, t = {}, s = {},
|
|
447
|
-
const c =
|
|
446
|
+
}, vn = (e, t = {}, s = {}, a = {}, i = !1, l) => {
|
|
447
|
+
const c = _e();
|
|
448
448
|
i && c.abort();
|
|
449
|
-
const n =
|
|
449
|
+
const n = P(t);
|
|
450
450
|
return {
|
|
451
451
|
call: X.patch(e, s, {
|
|
452
452
|
headers: {
|
|
453
453
|
...n
|
|
454
454
|
},
|
|
455
|
-
params:
|
|
455
|
+
params: a,
|
|
456
456
|
signal: c.signal,
|
|
457
457
|
_userFlow: l
|
|
458
458
|
}),
|
|
459
459
|
controller: c
|
|
460
460
|
};
|
|
461
|
-
}, En = (e, t = {}, s = {},
|
|
462
|
-
const c =
|
|
461
|
+
}, En = (e, t = {}, s = {}, a = {}, i = !1, l) => {
|
|
462
|
+
const c = _e();
|
|
463
463
|
i && c.abort();
|
|
464
|
-
const n =
|
|
464
|
+
const n = P(t);
|
|
465
465
|
return {
|
|
466
466
|
call: X.delete(e, {
|
|
467
467
|
headers: {
|
|
468
468
|
...n
|
|
469
469
|
},
|
|
470
470
|
data: s,
|
|
471
|
-
params:
|
|
471
|
+
params: a,
|
|
472
472
|
signal: c.signal,
|
|
473
473
|
_userFlow: l
|
|
474
474
|
}),
|
|
475
475
|
controller: c
|
|
476
476
|
};
|
|
477
|
-
},
|
|
477
|
+
}, at = () => {
|
|
478
478
|
let e;
|
|
479
|
-
return { callEndpoint: async (
|
|
480
|
-
|
|
479
|
+
return { callEndpoint: async (a) => {
|
|
480
|
+
a.controller && (e = a.controller);
|
|
481
481
|
let i = {};
|
|
482
482
|
try {
|
|
483
|
-
i = await
|
|
483
|
+
i = await a.call;
|
|
484
484
|
} catch (l) {
|
|
485
485
|
throw l;
|
|
486
486
|
}
|
|
@@ -488,14 +488,14 @@ const ee = (e) => {
|
|
|
488
488
|
}, cancelEndpoint: () => {
|
|
489
489
|
e && e.abort();
|
|
490
490
|
} };
|
|
491
|
-
},
|
|
491
|
+
}, ot = async (e, t, s = "", a = {}, i = {}) => {
|
|
492
492
|
try {
|
|
493
|
-
const { callEndpoint: l } =
|
|
494
|
-
s &&
|
|
495
|
-
const _ = `${c}/not-front/next-ui/?${
|
|
493
|
+
const { callEndpoint: l } = at(), { api: c, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
|
|
494
|
+
s && r.append("hash_code", s), d && r.append("sessionId", d);
|
|
495
|
+
const _ = `${c}/not-front/next-ui/?${r.toString()}`, u = P(n), h = Se(
|
|
496
496
|
_,
|
|
497
497
|
u,
|
|
498
|
-
|
|
498
|
+
a,
|
|
499
499
|
i,
|
|
500
500
|
!1,
|
|
501
501
|
t
|
|
@@ -504,7 +504,7 @@ const ee = (e) => {
|
|
|
504
504
|
} catch (l) {
|
|
505
505
|
return console.error(l), Promise.reject(l);
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, ct = (e) => {
|
|
508
508
|
const t = e == null ? void 0 : e.toLowerCase();
|
|
509
509
|
switch (t) {
|
|
510
510
|
case "post":
|
|
@@ -517,7 +517,7 @@ const ee = (e) => {
|
|
|
517
517
|
return "get";
|
|
518
518
|
}
|
|
519
519
|
}, Sn = (e, t, s) => {
|
|
520
|
-
const { url:
|
|
520
|
+
const { url: a, paginationKeys: i, params: l } = e, c = [], n = (i == null ? void 0 : i.page) ?? "page";
|
|
521
521
|
if (c.push(`${n}=${t}`), typeof s == "string") {
|
|
522
522
|
const _ = (i == null ? void 0 : i.text) ?? "text";
|
|
523
523
|
c.push(`${_}=${encodeURIComponent(s || "")}`);
|
|
@@ -529,15 +529,15 @@ const ee = (e) => {
|
|
|
529
529
|
c.push(..._);
|
|
530
530
|
}
|
|
531
531
|
const d = c.join("&");
|
|
532
|
-
return d ? `${
|
|
533
|
-
},
|
|
532
|
+
return d ? `${a}?${d}` : a;
|
|
533
|
+
}, $e = (e, t, s, a) => {
|
|
534
534
|
const { type: i, url: l, method: c, headers: n } = e;
|
|
535
535
|
if (i === "rest") {
|
|
536
|
-
const d = Sn(e, t, s), _ = { ...(e == null ? void 0 : e.data) ?? {}, ...
|
|
536
|
+
const d = Sn(e, t, s), _ = { ...(e == null ? void 0 : e.data) ?? {}, ...a ?? {} };
|
|
537
537
|
return {
|
|
538
538
|
type: "rest",
|
|
539
539
|
url: d,
|
|
540
|
-
method:
|
|
540
|
+
method: ct(c),
|
|
541
541
|
headers: n,
|
|
542
542
|
data: _
|
|
543
543
|
};
|
|
@@ -554,45 +554,45 @@ const ee = (e) => {
|
|
|
554
554
|
page: t
|
|
555
555
|
}
|
|
556
556
|
};
|
|
557
|
-
},
|
|
558
|
-
const e = N((n) => n), { callEndpoint: t } =
|
|
557
|
+
}, G = () => {
|
|
558
|
+
const e = N((n) => n), { callEndpoint: t } = at(), s = async (n, d, r, _, u = !0) => {
|
|
559
559
|
var h;
|
|
560
560
|
try {
|
|
561
|
-
const
|
|
562
|
-
state: { ...
|
|
561
|
+
const f = (h = e[n]) == null ? void 0 : h.apiConfig, x = {
|
|
562
|
+
state: { ...r },
|
|
563
563
|
triggerKey: _
|
|
564
564
|
};
|
|
565
|
-
return u && Y(n, !0), await
|
|
566
|
-
|
|
565
|
+
return u && Y(n, !0), await ot(
|
|
566
|
+
f,
|
|
567
567
|
n,
|
|
568
568
|
d,
|
|
569
|
-
|
|
569
|
+
x
|
|
570
570
|
);
|
|
571
|
-
} catch (
|
|
572
|
-
throw u && Y(n, !1), console.error("[getNextUI] Error fetching next UI:",
|
|
571
|
+
} catch (f) {
|
|
572
|
+
throw u && Y(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
const { url:
|
|
576
|
-
switch (
|
|
574
|
+
}, a = (n, d) => {
|
|
575
|
+
const { url: r, headers: _, data: u, params: h } = n;
|
|
576
|
+
switch (ct(n.method)) {
|
|
577
577
|
case "post":
|
|
578
|
-
return
|
|
578
|
+
return Se(r, _, u, {}, !1, d);
|
|
579
579
|
case "put":
|
|
580
|
-
return Nn(
|
|
580
|
+
return Nn(r, _, u, {}, !1, d);
|
|
581
581
|
case "patch":
|
|
582
|
-
return vn(
|
|
582
|
+
return vn(r, _, u, {}, !1, d);
|
|
583
583
|
case "delete":
|
|
584
|
-
return En(
|
|
584
|
+
return En(r, _, u, h, !1, d);
|
|
585
585
|
case "get":
|
|
586
586
|
default:
|
|
587
|
-
return wn(
|
|
587
|
+
return wn(r, _, h, !1, d);
|
|
588
588
|
}
|
|
589
589
|
}, i = (n, d) => {
|
|
590
|
-
const { url:
|
|
590
|
+
const { url: r, headers: _ } = n, u = {
|
|
591
591
|
query: n == null ? void 0 : n.query,
|
|
592
592
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
593
593
|
};
|
|
594
|
-
return
|
|
595
|
-
|
|
594
|
+
return Se(
|
|
595
|
+
r,
|
|
596
596
|
{
|
|
597
597
|
..._,
|
|
598
598
|
"Content-Type": "application/json"
|
|
@@ -602,18 +602,18 @@ const ee = (e) => {
|
|
|
602
602
|
!1,
|
|
603
603
|
d
|
|
604
604
|
);
|
|
605
|
-
}, l = async (n, d,
|
|
605
|
+
}, l = async (n, d, r = !0) => {
|
|
606
606
|
var _, u;
|
|
607
607
|
if (!n) {
|
|
608
608
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
609
609
|
return;
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
r && Y(d, !0);
|
|
612
612
|
try {
|
|
613
613
|
let h;
|
|
614
614
|
switch (n == null ? void 0 : n.type) {
|
|
615
615
|
case "rest":
|
|
616
|
-
h =
|
|
616
|
+
h = a(n, d);
|
|
617
617
|
break;
|
|
618
618
|
case "graphql":
|
|
619
619
|
h = i(n, d);
|
|
@@ -623,30 +623,30 @@ const ee = (e) => {
|
|
|
623
623
|
}
|
|
624
624
|
return await t(h);
|
|
625
625
|
} catch (h) {
|
|
626
|
-
const
|
|
627
|
-
return console.error("[fetchDataSource] Error:",
|
|
628
|
-
status: ((_ =
|
|
629
|
-
data: ((u =
|
|
630
|
-
message:
|
|
631
|
-
code:
|
|
632
|
-
config:
|
|
626
|
+
const f = h;
|
|
627
|
+
return console.error("[fetchDataSource] Error:", f), {
|
|
628
|
+
status: ((_ = f == null ? void 0 : f.response) == null ? void 0 : _.status) ?? 0,
|
|
629
|
+
data: ((u = f == null ? void 0 : f.response) == null ? void 0 : u.data) ?? {
|
|
630
|
+
message: f == null ? void 0 : f.message,
|
|
631
|
+
code: f == null ? void 0 : f.code,
|
|
632
|
+
config: f == null ? void 0 : f.config
|
|
633
633
|
}
|
|
634
634
|
};
|
|
635
635
|
} finally {
|
|
636
|
-
|
|
636
|
+
r && Y(d, !1);
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
639
|
return {
|
|
640
640
|
getNextUI: s,
|
|
641
641
|
fetchDataSource: l,
|
|
642
|
-
fetchAndGetNextUI: async (n, d,
|
|
642
|
+
fetchAndGetNextUI: async (n, d, r, _, u) => {
|
|
643
643
|
try {
|
|
644
644
|
Y(n, !0);
|
|
645
645
|
const h = await l(u, n, !1);
|
|
646
646
|
return h && await s(
|
|
647
647
|
n,
|
|
648
648
|
d,
|
|
649
|
-
|
|
649
|
+
r,
|
|
650
650
|
_
|
|
651
651
|
);
|
|
652
652
|
} catch (h) {
|
|
@@ -657,79 +657,79 @@ const ee = (e) => {
|
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
659
|
};
|
|
660
|
-
},
|
|
661
|
-
accordion:
|
|
662
|
-
accordionBody:
|
|
663
|
-
},
|
|
660
|
+
}, Tn = "_accordion_1ri2t_1", kn = "_accordionBody_1ri2t_8", Ue = {
|
|
661
|
+
accordion: Tn,
|
|
662
|
+
accordionBody: kn
|
|
663
|
+
}, An = (e) => {
|
|
664
664
|
const {
|
|
665
665
|
userFlow: t,
|
|
666
666
|
pageId: s,
|
|
667
|
-
responseKey:
|
|
667
|
+
responseKey: a,
|
|
668
668
|
dependencies: i,
|
|
669
669
|
customContent: l,
|
|
670
670
|
actionContent: c,
|
|
671
671
|
components: n,
|
|
672
672
|
...d
|
|
673
|
-
} = e, { getNextUI:
|
|
673
|
+
} = e, { getNextUI: r } = G(), [_, u] = $(
|
|
674
674
|
d.checkboxChecked || !1
|
|
675
675
|
), { disabled: h } = I(
|
|
676
676
|
t,
|
|
677
677
|
i
|
|
678
|
-
),
|
|
679
|
-
async (
|
|
678
|
+
), f = E(t, s, n), x = c ? E(t, s, c) : void 0, g = l ? E(t, s, l) : void 0, m = D(
|
|
679
|
+
async (b) => {
|
|
680
680
|
var C;
|
|
681
681
|
try {
|
|
682
|
-
const j =
|
|
682
|
+
const j = b.target.checked;
|
|
683
683
|
u(j);
|
|
684
684
|
const w = {
|
|
685
685
|
...(C = N.getState()[t]) == null ? void 0 : C.entries,
|
|
686
|
-
[
|
|
686
|
+
[a]: j
|
|
687
687
|
};
|
|
688
|
-
if (
|
|
689
|
-
const v = await
|
|
688
|
+
if (q(t, w), d.actionType === "GO_TO_NEXT_UI") {
|
|
689
|
+
const v = await r(
|
|
690
690
|
t,
|
|
691
691
|
s,
|
|
692
692
|
w,
|
|
693
|
-
|
|
693
|
+
a
|
|
694
694
|
);
|
|
695
|
-
v != null && v.data &&
|
|
695
|
+
v != null && v.data && L(t, v == null ? void 0 : v.data);
|
|
696
696
|
}
|
|
697
697
|
} catch (j) {
|
|
698
698
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
699
699
|
}
|
|
700
700
|
},
|
|
701
|
-
[t, s,
|
|
702
|
-
),
|
|
701
|
+
[t, s, a, d.actionType, r]
|
|
702
|
+
), y = d.disabled || h, p = {
|
|
703
703
|
...d,
|
|
704
|
-
className:
|
|
705
|
-
disabled:
|
|
704
|
+
className: Ue.accordion,
|
|
705
|
+
disabled: y,
|
|
706
706
|
checkboxChecked: _,
|
|
707
|
-
onChanceCheckbox: d.hasCheckbox ?
|
|
708
|
-
actionContent:
|
|
709
|
-
customContent: g ? /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((
|
|
710
|
-
children:
|
|
707
|
+
onChanceCheckbox: d.hasCheckbox ? m : void 0,
|
|
708
|
+
actionContent: x ? /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-action-${C}`)) }) : void 0,
|
|
709
|
+
customContent: g ? /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-custom-${C}`)) }) : void 0,
|
|
710
|
+
children: f ? /* @__PURE__ */ o.jsx("section", { className: Ue.accordionBody, children: f.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-child-${C}`)) }) : void 0
|
|
711
711
|
};
|
|
712
|
-
return /* @__PURE__ */ o.jsx(
|
|
713
|
-
},
|
|
714
|
-
const t =
|
|
712
|
+
return /* @__PURE__ */ o.jsx(gt, { ...p });
|
|
713
|
+
}, On = (e) => {
|
|
714
|
+
const t = le.useThemeStore((c) => c.theme.mode), s = e.dataSource, a = T(() => ({
|
|
715
715
|
url: e.dataSource.url,
|
|
716
716
|
method: e.dataSource.method,
|
|
717
717
|
headers: e.dataSource.headers,
|
|
718
718
|
params: s == null ? void 0 : s.data
|
|
719
|
-
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]), i = e.locale ?? "en", l =
|
|
720
|
-
var n, d,
|
|
719
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]), i = e.locale ?? "en", l = T(() => {
|
|
720
|
+
var n, d, r, _, u;
|
|
721
721
|
const c = {
|
|
722
722
|
title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
|
|
723
723
|
welcomeTitle: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.welcomeTitle,
|
|
724
|
-
welcomeDescription: (
|
|
724
|
+
welcomeDescription: (r = e == null ? void 0 : e.translations) == null ? void 0 : r.welcomeDescription,
|
|
725
725
|
placeholder: (_ = e == null ? void 0 : e.translations) == null ? void 0 : _.placeholder,
|
|
726
726
|
disclaimer: (u = e == null ? void 0 : e.translations) == null ? void 0 : u.disclaimer
|
|
727
727
|
};
|
|
728
728
|
return Object.fromEntries(Object.entries(c).filter(([, h]) => !!h));
|
|
729
729
|
}, [e == null ? void 0 : e.translations]);
|
|
730
|
-
return
|
|
730
|
+
return U(() => {
|
|
731
731
|
e.onResolveProps && e.onResolveProps({
|
|
732
|
-
dataSource:
|
|
732
|
+
dataSource: a,
|
|
733
733
|
locale: i,
|
|
734
734
|
translations: l,
|
|
735
735
|
initialSuggestions: e.initialSuggestions,
|
|
@@ -737,77 +737,77 @@ const ee = (e) => {
|
|
|
737
737
|
});
|
|
738
738
|
}, [
|
|
739
739
|
e.onResolveProps,
|
|
740
|
-
|
|
740
|
+
a,
|
|
741
741
|
i,
|
|
742
742
|
l,
|
|
743
743
|
e.initialSuggestions,
|
|
744
744
|
t
|
|
745
745
|
]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
|
|
746
|
-
|
|
746
|
+
zt,
|
|
747
747
|
{
|
|
748
|
-
dataSource:
|
|
748
|
+
dataSource: a,
|
|
749
749
|
locale: i,
|
|
750
750
|
translations: l,
|
|
751
751
|
initialSuggestions: e.initialSuggestions,
|
|
752
752
|
theme: t
|
|
753
753
|
}
|
|
754
754
|
);
|
|
755
|
-
}, $n = "_promptCodeEditor_1d57s_1",
|
|
755
|
+
}, $n = "_promptCodeEditor_1d57s_1", Rn = {
|
|
756
756
|
promptCodeEditor: $n
|
|
757
|
-
},
|
|
757
|
+
}, qn = (e) => {
|
|
758
758
|
const {
|
|
759
759
|
userFlow: t,
|
|
760
760
|
responseKey: s,
|
|
761
|
-
codeBlockValue:
|
|
761
|
+
codeBlockValue: a,
|
|
762
762
|
language: i,
|
|
763
763
|
disabled: l,
|
|
764
764
|
dependencies: c,
|
|
765
765
|
dataSource: n,
|
|
766
766
|
inputLabel: d,
|
|
767
|
-
inputPlaceholder:
|
|
767
|
+
inputPlaceholder: r,
|
|
768
768
|
codeBlockLabel: _
|
|
769
|
-
} = e, u =
|
|
770
|
-
|
|
771
|
-
), { disabled:
|
|
769
|
+
} = e, u = le.useThemeStore((b) => b.theme.mode), [h, f] = $(
|
|
770
|
+
a || ""
|
|
771
|
+
), { disabled: x } = I(
|
|
772
772
|
t,
|
|
773
773
|
c
|
|
774
|
-
), g = l ??
|
|
774
|
+
), g = l ?? x, m = i ?? "json", y = {
|
|
775
775
|
url: (n == null ? void 0 : n.url) || "",
|
|
776
776
|
method: (n == null ? void 0 : n.method) || "post",
|
|
777
777
|
headers: n == null ? void 0 : n.headers,
|
|
778
778
|
body: n == null ? void 0 : n.data
|
|
779
|
-
},
|
|
780
|
-
|
|
779
|
+
}, p = (b) => {
|
|
780
|
+
f(b);
|
|
781
781
|
const C = {
|
|
782
|
-
[s]:
|
|
782
|
+
[s]: b
|
|
783
783
|
};
|
|
784
|
-
|
|
784
|
+
q(t, C);
|
|
785
785
|
};
|
|
786
|
-
return
|
|
787
|
-
|
|
788
|
-
}, [
|
|
789
|
-
|
|
786
|
+
return U(() => {
|
|
787
|
+
a !== void 0 && a !== h && f(a);
|
|
788
|
+
}, [a]), /* @__PURE__ */ o.jsx("section", { className: Rn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
|
|
789
|
+
Xt,
|
|
790
790
|
{
|
|
791
791
|
themeMode: u,
|
|
792
|
-
requestConfig:
|
|
793
|
-
language:
|
|
792
|
+
requestConfig: y,
|
|
793
|
+
language: m,
|
|
794
794
|
disabled: g,
|
|
795
795
|
inputLabel: d,
|
|
796
|
-
inputPlaceholder:
|
|
796
|
+
inputPlaceholder: r,
|
|
797
797
|
codeBlockLabel: _,
|
|
798
798
|
codeBlockValue: h,
|
|
799
|
-
onCodeChange:
|
|
799
|
+
onCodeChange: p
|
|
800
800
|
}
|
|
801
801
|
) });
|
|
802
802
|
}, Dn = "_summaryCard_jva4h_1", Ln = {
|
|
803
803
|
summaryCard: Dn
|
|
804
804
|
}, In = (e) => {
|
|
805
|
-
const t = e.dataSource, s =
|
|
805
|
+
const t = e.dataSource, s = T(() => ({
|
|
806
806
|
url: e.dataSource.url,
|
|
807
807
|
method: e.dataSource.method,
|
|
808
808
|
headers: e.dataSource.headers,
|
|
809
809
|
body: t == null ? void 0 : t.data
|
|
810
|
-
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]),
|
|
810
|
+
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), a = e.locale ?? "en", i = T(() => {
|
|
811
811
|
var c, n, d;
|
|
812
812
|
const l = {
|
|
813
813
|
title: (c = e == null ? void 0 : e.translations) == null ? void 0 : c.title,
|
|
@@ -815,128 +815,128 @@ const ee = (e) => {
|
|
|
815
815
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
816
816
|
};
|
|
817
817
|
return Object.fromEntries(
|
|
818
|
-
Object.entries(l).filter(([,
|
|
818
|
+
Object.entries(l).filter(([, r]) => !!r)
|
|
819
819
|
);
|
|
820
820
|
}, [e == null ? void 0 : e.translations]);
|
|
821
|
-
return
|
|
821
|
+
return U(() => {
|
|
822
822
|
e.onResolveProps && e.onResolveProps({
|
|
823
823
|
dataSource: s,
|
|
824
|
-
locale:
|
|
824
|
+
locale: a,
|
|
825
825
|
translations: i
|
|
826
826
|
});
|
|
827
|
-
}, [e.onResolveProps, s,
|
|
828
|
-
|
|
827
|
+
}, [e.onResolveProps, s, a, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Ln.summaryCard, children: /* @__PURE__ */ o.jsx(
|
|
828
|
+
Jt,
|
|
829
829
|
{
|
|
830
830
|
dataSource: s,
|
|
831
|
-
locale:
|
|
831
|
+
locale: a,
|
|
832
832
|
translations: i
|
|
833
833
|
}
|
|
834
834
|
) });
|
|
835
|
-
}, Bn = "_body_14tsv_1",
|
|
835
|
+
}, Bn = "_body_14tsv_1", Kn = "_body_content_14tsv_5", Ve = {
|
|
836
836
|
body: Bn,
|
|
837
|
-
body_content:
|
|
838
|
-
},
|
|
839
|
-
slotStack:
|
|
837
|
+
body_content: Kn
|
|
838
|
+
}, Hn = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Ve.body, children: /* @__PURE__ */ o.jsx("div", { className: Ve.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(k, { children: t }, s)) }) }), Gn = "_slotStack_1b4wy_1", Mn = {
|
|
839
|
+
slotStack: Gn
|
|
840
840
|
}, Un = (e) => {
|
|
841
841
|
const {
|
|
842
842
|
userFlow: t,
|
|
843
843
|
pageId: s,
|
|
844
|
-
component:
|
|
844
|
+
component: a,
|
|
845
845
|
hash: i,
|
|
846
846
|
responseKey: l,
|
|
847
847
|
content: c
|
|
848
|
-
} = e, n =
|
|
848
|
+
} = e, n = le.useThemeStore((_) => _.theme.mode) === "dark", d = E(
|
|
849
849
|
t,
|
|
850
850
|
s,
|
|
851
851
|
c != null && c.length ? c : null
|
|
852
|
-
),
|
|
853
|
-
return /* @__PURE__ */ o.jsx(
|
|
852
|
+
), r = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Mn.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(k, { children: _ }, `box-${i}-${u}`)) }) : null;
|
|
853
|
+
return /* @__PURE__ */ o.jsx(pt, { darkMode: n, children: r });
|
|
854
854
|
};
|
|
855
|
-
var
|
|
855
|
+
var we = { exports: {} };
|
|
856
856
|
/*!
|
|
857
857
|
Copyright (c) 2018 Jed Watson.
|
|
858
858
|
Licensed under the MIT License (MIT), see
|
|
859
859
|
http://jedwatson.github.io/classnames
|
|
860
860
|
*/
|
|
861
|
-
var
|
|
861
|
+
var ze;
|
|
862
862
|
function Vn() {
|
|
863
|
-
return
|
|
863
|
+
return ze || (ze = 1, (function(e) {
|
|
864
864
|
(function() {
|
|
865
865
|
var t = {}.hasOwnProperty;
|
|
866
866
|
function s() {
|
|
867
|
-
for (var
|
|
867
|
+
for (var a = [], i = 0; i < arguments.length; i++) {
|
|
868
868
|
var l = arguments[i];
|
|
869
869
|
if (l) {
|
|
870
870
|
var c = typeof l;
|
|
871
871
|
if (c === "string" || c === "number")
|
|
872
|
-
|
|
872
|
+
a.push(l);
|
|
873
873
|
else if (Array.isArray(l)) {
|
|
874
874
|
if (l.length) {
|
|
875
875
|
var n = s.apply(null, l);
|
|
876
|
-
n &&
|
|
876
|
+
n && a.push(n);
|
|
877
877
|
}
|
|
878
878
|
} else if (c === "object") {
|
|
879
879
|
if (l.toString !== Object.prototype.toString && !l.toString.toString().includes("[native code]")) {
|
|
880
|
-
|
|
880
|
+
a.push(l.toString());
|
|
881
881
|
continue;
|
|
882
882
|
}
|
|
883
883
|
for (var d in l)
|
|
884
|
-
t.call(l, d) && l[d] &&
|
|
884
|
+
t.call(l, d) && l[d] && a.push(d);
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
|
-
return
|
|
888
|
+
return a.join(" ");
|
|
889
889
|
}
|
|
890
890
|
e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
|
|
891
891
|
})();
|
|
892
|
-
})(
|
|
892
|
+
})(we)), we.exports;
|
|
893
893
|
}
|
|
894
894
|
var zn = Vn();
|
|
895
|
-
const
|
|
895
|
+
const F = /* @__PURE__ */ mn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColumn_1xrth_8", Wn = "_legend_1xrth_14", Yn = "_options_1xrth_20", Qn = "_optionsRow_1xrth_25", Zn = "_optionsColumn_1xrth_36", Q = {
|
|
896
896
|
fieldset: Xn,
|
|
897
897
|
fieldsetColumn: Jn,
|
|
898
898
|
legend: Wn,
|
|
899
|
-
options:
|
|
900
|
-
optionsRow:
|
|
899
|
+
options: Yn,
|
|
900
|
+
optionsRow: Qn,
|
|
901
901
|
optionsColumn: Zn
|
|
902
902
|
}, Fn = (e) => {
|
|
903
903
|
const {
|
|
904
904
|
userFlow: t,
|
|
905
905
|
pageId: s,
|
|
906
|
-
responseKey:
|
|
906
|
+
responseKey: a,
|
|
907
907
|
label: i,
|
|
908
908
|
value: l,
|
|
909
909
|
required: c,
|
|
910
910
|
actionType: n,
|
|
911
911
|
dependencies: d,
|
|
912
|
-
direction:
|
|
912
|
+
direction: r,
|
|
913
913
|
items: _
|
|
914
|
-
} = e, u =
|
|
914
|
+
} = e, u = r === "column" ? "column" : "row", { getNextUI: h } = G(), { disabled: f } = I(
|
|
915
915
|
t,
|
|
916
916
|
d
|
|
917
|
-
),
|
|
918
|
-
(
|
|
917
|
+
), x = N(
|
|
918
|
+
(b) => {
|
|
919
919
|
var C, j;
|
|
920
|
-
return (j = (C =
|
|
920
|
+
return (j = (C = b[t]) == null ? void 0 : C.entries) == null ? void 0 : j[a];
|
|
921
921
|
}
|
|
922
|
-
), g =
|
|
923
|
-
async (
|
|
922
|
+
), g = x != null ? String(x) : l ?? "", m = f, y = T(() => i ? c ? `${i} *` : i : null, [i, c]), p = D(
|
|
923
|
+
async (b) => {
|
|
924
924
|
var C;
|
|
925
|
-
if (!
|
|
925
|
+
if (!m)
|
|
926
926
|
try {
|
|
927
927
|
const j = {
|
|
928
928
|
...(C = N.getState()[t]) == null ? void 0 : C.entries,
|
|
929
|
-
[
|
|
929
|
+
[a]: b
|
|
930
930
|
};
|
|
931
|
-
if (
|
|
932
|
-
const
|
|
931
|
+
if (q(t, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
|
|
932
|
+
const A = await h(
|
|
933
933
|
t,
|
|
934
934
|
s,
|
|
935
935
|
j,
|
|
936
|
-
|
|
936
|
+
a,
|
|
937
937
|
n === "GO_TO_NEXT_UI"
|
|
938
938
|
);
|
|
939
|
-
|
|
939
|
+
A != null && A.data && L(t, A == null ? void 0 : A.data);
|
|
940
940
|
}
|
|
941
941
|
} catch (j) {
|
|
942
942
|
alert(JSON.stringify(j));
|
|
@@ -945,41 +945,41 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
945
945
|
[
|
|
946
946
|
n,
|
|
947
947
|
h,
|
|
948
|
-
|
|
948
|
+
m,
|
|
949
949
|
s,
|
|
950
|
-
|
|
950
|
+
a,
|
|
951
951
|
t
|
|
952
952
|
]
|
|
953
953
|
);
|
|
954
954
|
return /* @__PURE__ */ o.jsxs(
|
|
955
955
|
"fieldset",
|
|
956
956
|
{
|
|
957
|
-
className:
|
|
958
|
-
|
|
959
|
-
u === "column" &&
|
|
957
|
+
className: F(
|
|
958
|
+
Q.fieldset,
|
|
959
|
+
u === "column" && Q.fieldsetColumn
|
|
960
960
|
),
|
|
961
961
|
children: [
|
|
962
|
-
|
|
962
|
+
y ? /* @__PURE__ */ o.jsx("legend", { className: Q.legend, children: y }) : null,
|
|
963
963
|
/* @__PURE__ */ o.jsx(
|
|
964
964
|
"div",
|
|
965
965
|
{
|
|
966
|
-
className:
|
|
967
|
-
|
|
968
|
-
u === "column" ?
|
|
966
|
+
className: F(
|
|
967
|
+
Q.options,
|
|
968
|
+
u === "column" ? Q.optionsColumn : Q.optionsRow
|
|
969
969
|
),
|
|
970
|
-
children: _.map((
|
|
971
|
-
|
|
970
|
+
children: _.map((b) => /* @__PURE__ */ o.jsx(
|
|
971
|
+
bt,
|
|
972
972
|
{
|
|
973
|
-
name:
|
|
974
|
-
value:
|
|
975
|
-
checked: g ===
|
|
976
|
-
disabled:
|
|
977
|
-
labelRight:
|
|
973
|
+
name: a,
|
|
974
|
+
value: b.value,
|
|
975
|
+
checked: g === b.value,
|
|
976
|
+
disabled: m || b.disabled,
|
|
977
|
+
labelRight: b.label,
|
|
978
978
|
onChange: () => {
|
|
979
|
-
b
|
|
979
|
+
p(b.value);
|
|
980
980
|
}
|
|
981
981
|
},
|
|
982
|
-
|
|
982
|
+
b.value
|
|
983
983
|
))
|
|
984
984
|
}
|
|
985
985
|
)
|
|
@@ -990,38 +990,38 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
990
990
|
userFlow: e,
|
|
991
991
|
pageId: t,
|
|
992
992
|
component: s,
|
|
993
|
-
hash:
|
|
993
|
+
hash: a,
|
|
994
994
|
responseKey: i,
|
|
995
995
|
items: l,
|
|
996
996
|
itemActive: c,
|
|
997
997
|
darkMode: n
|
|
998
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
998
|
+
}) => /* @__PURE__ */ o.jsx(jt, { items: l, itemActive: c, darkMode: n }), es = ({
|
|
999
999
|
userFlow: e,
|
|
1000
1000
|
pageId: t,
|
|
1001
1001
|
component: s,
|
|
1002
|
-
hash:
|
|
1002
|
+
hash: a,
|
|
1003
1003
|
responseKey: i,
|
|
1004
1004
|
total: l,
|
|
1005
1005
|
done: c,
|
|
1006
1006
|
inProgress: n
|
|
1007
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
1007
|
+
}) => /* @__PURE__ */ o.jsx(Ct, { total: l, done: c, inProgress: n }), ts = ({
|
|
1008
1008
|
userFlow: e,
|
|
1009
1009
|
items: t,
|
|
1010
1010
|
responseKey: s
|
|
1011
1011
|
}) => {
|
|
1012
|
-
const { getNextUI:
|
|
1012
|
+
const { getNextUI: a } = G(), i = D(
|
|
1013
1013
|
async ({ actionType: c, hashCode: n, redirectUrl: d }) => {
|
|
1014
|
-
var
|
|
1014
|
+
var r;
|
|
1015
1015
|
try {
|
|
1016
1016
|
switch (c) {
|
|
1017
1017
|
case "GO_TO_NEXT_UI":
|
|
1018
|
-
const _ = await
|
|
1018
|
+
const _ = await a(
|
|
1019
1019
|
e,
|
|
1020
1020
|
n,
|
|
1021
|
-
{ ...(
|
|
1021
|
+
{ ...(r = N.getState()[e]) == null ? void 0 : r.entries },
|
|
1022
1022
|
s
|
|
1023
1023
|
);
|
|
1024
|
-
_ != null && _.data &&
|
|
1024
|
+
_ != null && _.data && L(e, _ == null ? void 0 : _.data);
|
|
1025
1025
|
break;
|
|
1026
1026
|
case "REDIRECT":
|
|
1027
1027
|
d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
@@ -1035,108 +1035,108 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
|
|
|
1035
1035
|
}
|
|
1036
1036
|
},
|
|
1037
1037
|
[]
|
|
1038
|
-
), l =
|
|
1038
|
+
), l = T(() => t == null ? void 0 : t.map((c) => ({
|
|
1039
1039
|
title: c == null ? void 0 : c.title,
|
|
1040
1040
|
component: /* @__PURE__ */ o.jsx("div", { onClick: () => i(c) })
|
|
1041
1041
|
})), []);
|
|
1042
|
-
return /* @__PURE__ */ o.jsx(
|
|
1042
|
+
return /* @__PURE__ */ o.jsx(wt, { items: l });
|
|
1043
1043
|
};
|
|
1044
|
-
function
|
|
1045
|
-
const { getNextUI: s, fetchDataSource:
|
|
1046
|
-
return
|
|
1044
|
+
function ge(e, t) {
|
|
1045
|
+
const { getNextUI: s, fetchDataSource: a, fetchAndGetNextUI: i } = G();
|
|
1046
|
+
return D(
|
|
1047
1047
|
async (l) => {
|
|
1048
|
-
var h,
|
|
1049
|
-
const { responseKey: c, actionType: n, dataSource: d, redirectUrl:
|
|
1050
|
-
if (!
|
|
1048
|
+
var h, f, x, g;
|
|
1049
|
+
const { responseKey: c, actionType: n, dataSource: d, redirectUrl: r, dependencies: _ } = l, u = (h = N.getState()[e]) == null ? void 0 : h.entries;
|
|
1050
|
+
if (!rt(u, _))
|
|
1051
1051
|
try {
|
|
1052
|
-
const
|
|
1053
|
-
...(
|
|
1052
|
+
const m = {
|
|
1053
|
+
...(f = N.getState()[e]) == null ? void 0 : f.entries,
|
|
1054
1054
|
[c]: { status: 200 }
|
|
1055
1055
|
};
|
|
1056
|
-
switch (
|
|
1056
|
+
switch (q(e, m), n) {
|
|
1057
1057
|
case "CLOSE_MODAL":
|
|
1058
|
-
|
|
1058
|
+
Oe(e, !1);
|
|
1059
1059
|
break;
|
|
1060
1060
|
case "CLOSE_DRAWER":
|
|
1061
|
-
|
|
1061
|
+
oe(e, !1);
|
|
1062
1062
|
break;
|
|
1063
1063
|
case "OPEN_DRAWER":
|
|
1064
|
-
|
|
1064
|
+
oe(e, !0);
|
|
1065
1065
|
break;
|
|
1066
1066
|
case "GO_TO_NEXT_UI": {
|
|
1067
|
-
const
|
|
1067
|
+
const y = await s(
|
|
1068
1068
|
e,
|
|
1069
1069
|
t,
|
|
1070
|
-
|
|
1070
|
+
m,
|
|
1071
1071
|
c
|
|
1072
1072
|
);
|
|
1073
|
-
|
|
1073
|
+
y != null && y.data && L(e, y == null ? void 0 : y.data);
|
|
1074
1074
|
break;
|
|
1075
1075
|
}
|
|
1076
1076
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1077
|
-
const
|
|
1077
|
+
const y = await i(
|
|
1078
1078
|
e,
|
|
1079
1079
|
t,
|
|
1080
|
-
|
|
1080
|
+
m,
|
|
1081
1081
|
c,
|
|
1082
1082
|
d
|
|
1083
1083
|
);
|
|
1084
|
-
|
|
1084
|
+
y != null && y.data && L(e, y == null ? void 0 : y.data);
|
|
1085
1085
|
break;
|
|
1086
1086
|
}
|
|
1087
1087
|
case "FETCH_DATA_SOURCE": {
|
|
1088
|
-
const
|
|
1088
|
+
const y = await a(
|
|
1089
1089
|
d,
|
|
1090
1090
|
e,
|
|
1091
1091
|
!1
|
|
1092
1092
|
);
|
|
1093
|
-
|
|
1093
|
+
q(e, {
|
|
1094
1094
|
[c]: {
|
|
1095
|
-
status:
|
|
1096
|
-
content:
|
|
1095
|
+
status: y == null ? void 0 : y.status,
|
|
1096
|
+
content: y == null ? void 0 : y.data
|
|
1097
1097
|
}
|
|
1098
1098
|
});
|
|
1099
1099
|
break;
|
|
1100
1100
|
}
|
|
1101
1101
|
case "GET_DATA_SOURCE": {
|
|
1102
|
-
const
|
|
1102
|
+
const y = await s(
|
|
1103
1103
|
e,
|
|
1104
1104
|
t,
|
|
1105
|
-
|
|
1105
|
+
m,
|
|
1106
1106
|
c
|
|
1107
|
-
),
|
|
1108
|
-
if ((
|
|
1107
|
+
), p = (x = y == null ? void 0 : y.data) == null ? void 0 : x.content;
|
|
1108
|
+
if ((p == null ? void 0 : p.type) !== "fetch")
|
|
1109
1109
|
break;
|
|
1110
|
-
const
|
|
1110
|
+
const b = p == null ? void 0 : p.dataSource, C = await a(b, e, !1), j = {
|
|
1111
1111
|
...(g = N.getState()[e]) == null ? void 0 : g.entries,
|
|
1112
1112
|
[c]: {
|
|
1113
1113
|
status: C == null ? void 0 : C.status,
|
|
1114
1114
|
content: C == null ? void 0 : C.data
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
1117
|
-
|
|
1117
|
+
q(e, j);
|
|
1118
1118
|
const w = await s(
|
|
1119
1119
|
e,
|
|
1120
1120
|
t,
|
|
1121
1121
|
j,
|
|
1122
1122
|
c
|
|
1123
1123
|
);
|
|
1124
|
-
w != null && w.data &&
|
|
1124
|
+
w != null && w.data && L(e, w == null ? void 0 : w.data);
|
|
1125
1125
|
break;
|
|
1126
1126
|
}
|
|
1127
1127
|
case "REDIRECT":
|
|
1128
|
-
|
|
1128
|
+
r ? window.location.href = r : console.warn("Missing redirectUrl for REDIRECT actionType");
|
|
1129
1129
|
break;
|
|
1130
1130
|
default:
|
|
1131
1131
|
console.warn(`Unhandled actionType: ${n}`);
|
|
1132
1132
|
}
|
|
1133
|
-
} catch (
|
|
1134
|
-
alert(JSON.stringify(
|
|
1133
|
+
} catch (m) {
|
|
1134
|
+
alert(JSON.stringify(m));
|
|
1135
1135
|
}
|
|
1136
1136
|
},
|
|
1137
1137
|
[
|
|
1138
1138
|
i,
|
|
1139
|
-
|
|
1139
|
+
a,
|
|
1140
1140
|
s,
|
|
1141
1141
|
t,
|
|
1142
1142
|
e
|
|
@@ -1147,69 +1147,69 @@ const ns = (e) => {
|
|
|
1147
1147
|
const {
|
|
1148
1148
|
userFlow: t,
|
|
1149
1149
|
pageId: s,
|
|
1150
|
-
responseKey:
|
|
1150
|
+
responseKey: a,
|
|
1151
1151
|
actionType: i,
|
|
1152
1152
|
label: l,
|
|
1153
1153
|
content: c,
|
|
1154
1154
|
dataSource: n,
|
|
1155
1155
|
redirectUrl: d,
|
|
1156
|
-
dependencies:
|
|
1156
|
+
dependencies: r,
|
|
1157
1157
|
onClick: _,
|
|
1158
1158
|
...u
|
|
1159
|
-
} = e, h =
|
|
1159
|
+
} = e, h = ge(t, s), { disabled: f } = I(
|
|
1160
1160
|
t,
|
|
1161
|
-
|
|
1162
|
-
),
|
|
1161
|
+
r
|
|
1162
|
+
), x = {
|
|
1163
1163
|
...u,
|
|
1164
1164
|
children: c ?? l
|
|
1165
|
-
}, g = (
|
|
1166
|
-
if (
|
|
1165
|
+
}, g = (x == null ? void 0 : x.disabled) ?? f, [m, y] = $(!1), p = ie(!1), b = D(async () => {
|
|
1166
|
+
if (p.current)
|
|
1167
1167
|
return;
|
|
1168
1168
|
const C = i === "FETCH_DATA_SOURCE";
|
|
1169
|
-
C && (
|
|
1169
|
+
C && (p.current = !0, y(!0));
|
|
1170
1170
|
try {
|
|
1171
1171
|
await h({
|
|
1172
|
-
responseKey:
|
|
1172
|
+
responseKey: a,
|
|
1173
1173
|
actionType: i,
|
|
1174
1174
|
dataSource: n,
|
|
1175
1175
|
redirectUrl: d,
|
|
1176
|
-
dependencies:
|
|
1176
|
+
dependencies: r
|
|
1177
1177
|
});
|
|
1178
1178
|
} catch (j) {
|
|
1179
1179
|
console.error("[ButtonNotFront] Action failed:", j);
|
|
1180
1180
|
} finally {
|
|
1181
|
-
C && (
|
|
1181
|
+
C && (p.current = !1, y(!1));
|
|
1182
1182
|
}
|
|
1183
1183
|
}, [
|
|
1184
1184
|
i,
|
|
1185
1185
|
n,
|
|
1186
|
-
a,
|
|
1187
|
-
d,
|
|
1188
1186
|
r,
|
|
1187
|
+
d,
|
|
1188
|
+
a,
|
|
1189
1189
|
h
|
|
1190
1190
|
]);
|
|
1191
1191
|
return /* @__PURE__ */ o.jsx(
|
|
1192
|
-
|
|
1192
|
+
Nt,
|
|
1193
1193
|
{
|
|
1194
|
-
...
|
|
1195
|
-
loading:
|
|
1194
|
+
...x,
|
|
1195
|
+
loading: x.loading || m,
|
|
1196
1196
|
disabled: g,
|
|
1197
|
-
onClick: () => !g && !
|
|
1197
|
+
onClick: () => !g && !m && (_ ?? b)()
|
|
1198
1198
|
}
|
|
1199
1199
|
);
|
|
1200
|
-
}, ss = "_slotStack_12u4t_5",
|
|
1200
|
+
}, ss = "_slotStack_12u4t_5", Xe = {
|
|
1201
1201
|
slotStack: ss
|
|
1202
|
-
},
|
|
1202
|
+
}, rs = (e) => {
|
|
1203
1203
|
const {
|
|
1204
1204
|
userFlow: t,
|
|
1205
1205
|
pageId: s,
|
|
1206
|
-
component:
|
|
1206
|
+
component: a,
|
|
1207
1207
|
hash: i,
|
|
1208
1208
|
responseKey: l,
|
|
1209
1209
|
dependencies: c,
|
|
1210
1210
|
content: n,
|
|
1211
1211
|
actionContent: d,
|
|
1212
|
-
...
|
|
1212
|
+
...r
|
|
1213
1213
|
} = e, { disabled: _ } = I(
|
|
1214
1214
|
t,
|
|
1215
1215
|
c
|
|
@@ -1221,199 +1221,204 @@ const ns = (e) => {
|
|
|
1221
1221
|
t,
|
|
1222
1222
|
s,
|
|
1223
1223
|
d && d.length > 0 ? d : null
|
|
1224
|
-
),
|
|
1224
|
+
), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: u.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `card-accordion-body-${i}-${y}`)) }) : void 0, x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: h.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `card-accordion-actions-${i}-${y}`)) }) : void 0, g = r.disabled || _;
|
|
1225
1225
|
return /* @__PURE__ */ o.jsx(
|
|
1226
|
-
|
|
1226
|
+
vt,
|
|
1227
1227
|
{
|
|
1228
|
-
...
|
|
1228
|
+
...r,
|
|
1229
1229
|
disabled: g,
|
|
1230
|
-
actionContent:
|
|
1231
|
-
children:
|
|
1230
|
+
actionContent: x,
|
|
1231
|
+
children: f ?? null
|
|
1232
1232
|
}
|
|
1233
1233
|
);
|
|
1234
|
-
},
|
|
1235
|
-
slotStack:
|
|
1234
|
+
}, as = "_slotStack_ivk5b_1", os = {
|
|
1235
|
+
slotStack: as
|
|
1236
1236
|
}, cs = (e) => {
|
|
1237
1237
|
const {
|
|
1238
1238
|
userFlow: t,
|
|
1239
1239
|
pageId: s,
|
|
1240
|
-
component:
|
|
1240
|
+
component: a,
|
|
1241
1241
|
hash: i,
|
|
1242
1242
|
responseKey: l,
|
|
1243
1243
|
content: c,
|
|
1244
1244
|
colorId: n,
|
|
1245
1245
|
disabled: d,
|
|
1246
|
-
actionType:
|
|
1246
|
+
actionType: r,
|
|
1247
1247
|
dataSource: _,
|
|
1248
1248
|
redirectUrl: u,
|
|
1249
1249
|
dependencies: h
|
|
1250
|
-
} = e, { getNextUI:
|
|
1250
|
+
} = e, { getNextUI: f, fetchDataSource: x, fetchAndGetNextUI: g } = G(), { disabled: m } = I(
|
|
1251
1251
|
t,
|
|
1252
1252
|
h
|
|
1253
|
-
),
|
|
1253
|
+
), y = d ?? m, p = E(
|
|
1254
1254
|
t,
|
|
1255
1255
|
s,
|
|
1256
1256
|
c && c.length > 0 ? c : null
|
|
1257
|
-
),
|
|
1257
|
+
), b = p && p.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: os.slotStack, children: p.map((j, w) => /* @__PURE__ */ o.jsx(k, { children: j }, `card-body-${i}-${w}`)) }) : null, C = D(async () => {
|
|
1258
1258
|
var j, w, v;
|
|
1259
|
-
if (!(!
|
|
1259
|
+
if (!(!r || y))
|
|
1260
1260
|
try {
|
|
1261
|
-
const
|
|
1261
|
+
const A = {
|
|
1262
1262
|
...(j = N.getState()[t]) == null ? void 0 : j.entries,
|
|
1263
1263
|
[l]: { status: 200 }
|
|
1264
1264
|
};
|
|
1265
|
-
switch (
|
|
1265
|
+
switch (q(t, A), r) {
|
|
1266
1266
|
case "CLOSE_MODAL":
|
|
1267
|
-
|
|
1267
|
+
Oe(t, !1);
|
|
1268
1268
|
break;
|
|
1269
1269
|
case "CLOSE_DRAWER":
|
|
1270
|
-
|
|
1270
|
+
oe(t, !1);
|
|
1271
1271
|
break;
|
|
1272
1272
|
case "OPEN_DRAWER":
|
|
1273
|
-
|
|
1273
|
+
oe(t, !0);
|
|
1274
1274
|
break;
|
|
1275
1275
|
case "GO_TO_NEXT_UI":
|
|
1276
1276
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1277
|
-
const
|
|
1277
|
+
const R = await f(
|
|
1278
1278
|
t,
|
|
1279
1279
|
s,
|
|
1280
|
-
|
|
1280
|
+
A,
|
|
1281
1281
|
l,
|
|
1282
|
-
|
|
1282
|
+
r === "GO_TO_NEXT_UI"
|
|
1283
1283
|
);
|
|
1284
|
-
|
|
1284
|
+
R != null && R.data && L(t, R == null ? void 0 : R.data);
|
|
1285
1285
|
break;
|
|
1286
1286
|
}
|
|
1287
1287
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1288
|
-
const
|
|
1288
|
+
const O = await g(
|
|
1289
1289
|
t,
|
|
1290
1290
|
s,
|
|
1291
|
-
|
|
1291
|
+
A,
|
|
1292
1292
|
l,
|
|
1293
1293
|
_
|
|
1294
1294
|
);
|
|
1295
|
-
|
|
1295
|
+
O != null && O.data && L(t, O == null ? void 0 : O.data);
|
|
1296
1296
|
break;
|
|
1297
1297
|
}
|
|
1298
1298
|
case "GET_DATA_SOURCE": {
|
|
1299
|
-
const
|
|
1299
|
+
const O = await f(
|
|
1300
1300
|
t,
|
|
1301
1301
|
s,
|
|
1302
|
-
|
|
1302
|
+
A,
|
|
1303
1303
|
l
|
|
1304
|
-
),
|
|
1305
|
-
if ((
|
|
1304
|
+
), R = (w = O == null ? void 0 : O.data) == null ? void 0 : w.content;
|
|
1305
|
+
if ((R == null ? void 0 : R.type) !== "fetch")
|
|
1306
1306
|
break;
|
|
1307
|
-
const
|
|
1307
|
+
const J = R == null ? void 0 : R.dataSource, V = await x(J, t, !1), S = {
|
|
1308
1308
|
...(v = N.getState()[t]) == null ? void 0 : v.entries,
|
|
1309
1309
|
[l]: {
|
|
1310
|
-
status:
|
|
1311
|
-
content:
|
|
1310
|
+
status: V == null ? void 0 : V.status,
|
|
1311
|
+
content: V == null ? void 0 : V.data
|
|
1312
1312
|
}
|
|
1313
1313
|
};
|
|
1314
|
-
|
|
1315
|
-
const B = await
|
|
1314
|
+
q(t, S);
|
|
1315
|
+
const B = await f(
|
|
1316
1316
|
t,
|
|
1317
1317
|
s,
|
|
1318
1318
|
S,
|
|
1319
1319
|
l
|
|
1320
1320
|
);
|
|
1321
|
-
B != null && B.data &&
|
|
1321
|
+
B != null && B.data && L(t, B == null ? void 0 : B.data);
|
|
1322
1322
|
break;
|
|
1323
1323
|
}
|
|
1324
1324
|
case "REDIRECT":
|
|
1325
1325
|
u && (window.location.href = u);
|
|
1326
1326
|
break;
|
|
1327
1327
|
default:
|
|
1328
|
-
console.warn(`Unhandled card actionType: ${
|
|
1328
|
+
console.warn(`Unhandled card actionType: ${r}`);
|
|
1329
1329
|
}
|
|
1330
|
-
} catch (
|
|
1331
|
-
alert(JSON.stringify(
|
|
1330
|
+
} catch (A) {
|
|
1331
|
+
alert(JSON.stringify(A));
|
|
1332
1332
|
}
|
|
1333
1333
|
}, [
|
|
1334
|
-
|
|
1334
|
+
r,
|
|
1335
1335
|
_,
|
|
1336
|
-
f,
|
|
1337
|
-
g,
|
|
1338
|
-
m,
|
|
1339
1336
|
y,
|
|
1337
|
+
g,
|
|
1338
|
+
x,
|
|
1339
|
+
f,
|
|
1340
1340
|
s,
|
|
1341
1341
|
u,
|
|
1342
1342
|
l,
|
|
1343
1343
|
t
|
|
1344
1344
|
]);
|
|
1345
1345
|
return /* @__PURE__ */ o.jsx(
|
|
1346
|
-
|
|
1346
|
+
Et,
|
|
1347
1347
|
{
|
|
1348
1348
|
colorId: n,
|
|
1349
|
-
disabled:
|
|
1350
|
-
onClick:
|
|
1351
|
-
children:
|
|
1349
|
+
disabled: y,
|
|
1350
|
+
onClick: r && !y ? () => void C() : void 0,
|
|
1351
|
+
children: b
|
|
1352
1352
|
}
|
|
1353
1353
|
);
|
|
1354
1354
|
}, is = (e) => {
|
|
1355
|
-
const { content: t, description: s, ...
|
|
1356
|
-
...
|
|
1355
|
+
const { content: t, description: s, ...a } = e, i = {
|
|
1356
|
+
...a,
|
|
1357
1357
|
children: t ?? s
|
|
1358
1358
|
};
|
|
1359
|
-
return /* @__PURE__ */ o.jsx(
|
|
1360
|
-
},
|
|
1359
|
+
return /* @__PURE__ */ o.jsx(xe, { ...i });
|
|
1360
|
+
}, Ne = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ls = (e, t) => {
|
|
1361
1361
|
if (!t || e == null)
|
|
1362
1362
|
return null;
|
|
1363
|
-
const { extractionJsonPath: s, injectionJsonPath:
|
|
1363
|
+
const { extractionJsonPath: s, injectionJsonPath: a } = t, i = K.value(e, s);
|
|
1364
1364
|
if (i == null)
|
|
1365
1365
|
return null;
|
|
1366
1366
|
try {
|
|
1367
1367
|
const l = {};
|
|
1368
|
-
return
|
|
1368
|
+
return K.value(l, a, i), l;
|
|
1369
1369
|
} catch (l) {
|
|
1370
1370
|
return console.warn(
|
|
1371
1371
|
"[buildCursorPayload] invalid injectionJsonPath:",
|
|
1372
|
-
|
|
1372
|
+
a,
|
|
1373
1373
|
l
|
|
1374
1374
|
), null;
|
|
1375
1375
|
}
|
|
1376
|
-
},
|
|
1377
|
-
const i =
|
|
1376
|
+
}, it = (e, t, s, a) => {
|
|
1377
|
+
const i = K.query(e, t), l = i == null ? void 0 : i.map((r) => {
|
|
1378
1378
|
var _, u;
|
|
1379
1379
|
if (s) {
|
|
1380
1380
|
const h = {};
|
|
1381
|
-
for (const [
|
|
1382
|
-
if (typeof
|
|
1383
|
-
const g =
|
|
1384
|
-
g.translations && String(
|
|
1385
|
-
g.translations[String(
|
|
1386
|
-
) : h[
|
|
1381
|
+
for (const [f, x] of Object.entries(s))
|
|
1382
|
+
if (typeof x == "object" && "path" in x) {
|
|
1383
|
+
const g = x, m = (_ = K.query(r, g.path)) == null ? void 0 : _[0];
|
|
1384
|
+
g.translations && String(m) in g.translations ? h[f] = Ne(
|
|
1385
|
+
g.translations[String(m)]
|
|
1386
|
+
) : h[f] = Ne(m);
|
|
1387
1387
|
} else {
|
|
1388
|
-
const g =
|
|
1389
|
-
h[
|
|
1388
|
+
const g = x;
|
|
1389
|
+
h[f] = Ne((u = K.query(r, g)) == null ? void 0 : u[0]);
|
|
1390
1390
|
}
|
|
1391
1391
|
return h;
|
|
1392
1392
|
} else
|
|
1393
|
-
return
|
|
1394
|
-
}), c =
|
|
1393
|
+
return r;
|
|
1394
|
+
}), c = K.value(e, (a == null ? void 0 : a.size) ?? "$.meta.size") ?? i.length, n = K.value(e, (a == null ? void 0 : a.total) ?? "$.meta.total") ?? 0, d = {
|
|
1395
1395
|
size: c,
|
|
1396
1396
|
total: n,
|
|
1397
|
-
totalPages:
|
|
1397
|
+
totalPages: a != null && a.totalPages ? K.value(
|
|
1398
1398
|
e,
|
|
1399
|
-
(
|
|
1399
|
+
(a == null ? void 0 : a.totalPages) ?? "$.meta.totalPages"
|
|
1400
1400
|
) : c > 0 ? Math.ceil(n / c) : 0
|
|
1401
1401
|
};
|
|
1402
1402
|
return { items: l, pagination: d };
|
|
1403
|
-
},
|
|
1403
|
+
}, ue = ({
|
|
1404
1404
|
width: e,
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1405
|
+
height: t,
|
|
1406
|
+
layout: s,
|
|
1407
|
+
data: a,
|
|
1408
|
+
Chart: i,
|
|
1409
|
+
children: l
|
|
1410
|
+
}) => {
|
|
1411
|
+
const c = t ?? ce, n = s ? { layout: s } : {};
|
|
1412
|
+
return e ? /* @__PURE__ */ o.jsx(i, { width: e, height: c, data: a, ...n, children: l }) : /* @__PURE__ */ o.jsx(nt, { width: "100%", height: c, children: /* @__PURE__ */ o.jsx(i, { data: a, ...n, children: l }) });
|
|
1413
|
+
}, ee = ({ withPadding: e = !1 }) => {
|
|
1414
|
+
const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: M.labelColor }, children: s });
|
|
1410
1415
|
return /* @__PURE__ */ o.jsx(
|
|
1411
|
-
|
|
1416
|
+
Wt,
|
|
1412
1417
|
{
|
|
1413
1418
|
formatter: t,
|
|
1414
1419
|
wrapperStyle: {
|
|
1415
|
-
fontSize:
|
|
1416
|
-
fontFamily:
|
|
1420
|
+
fontSize: M.fontSize,
|
|
1421
|
+
fontFamily: M.fontFamily,
|
|
1417
1422
|
padding: e ? "1rem 0" : "0"
|
|
1418
1423
|
}
|
|
1419
1424
|
}
|
|
@@ -1422,156 +1427,264 @@ const ns = (e) => {
|
|
|
1422
1427
|
active: e,
|
|
1423
1428
|
payload: t,
|
|
1424
1429
|
label: s,
|
|
1425
|
-
tooltipKey:
|
|
1430
|
+
tooltipKey: a,
|
|
1431
|
+
tooltipCoverage: i
|
|
1426
1432
|
}) => {
|
|
1427
|
-
var
|
|
1433
|
+
var _, u;
|
|
1428
1434
|
if (!e || !t || !t.length)
|
|
1429
1435
|
return null;
|
|
1430
|
-
const
|
|
1431
|
-
backgroundColor:
|
|
1432
|
-
borderRadius:
|
|
1433
|
-
color:
|
|
1436
|
+
const l = {
|
|
1437
|
+
backgroundColor: M.tooltipBg,
|
|
1438
|
+
borderRadius: M.tooltipBorderRadius,
|
|
1439
|
+
color: M.tooltipColor,
|
|
1434
1440
|
padding: "8px 12px",
|
|
1435
1441
|
border: "1px solid #e5e7eb"
|
|
1436
1442
|
};
|
|
1437
|
-
if (
|
|
1438
|
-
const
|
|
1439
|
-
if (
|
|
1440
|
-
return /* @__PURE__ */ o.jsx("div", { style:
|
|
1443
|
+
if (a) {
|
|
1444
|
+
const h = (_ = t[0]) == null ? void 0 : _.payload;
|
|
1445
|
+
if (h && h[a] !== void 0 && h[a] !== null)
|
|
1446
|
+
return /* @__PURE__ */ o.jsx("div", { style: l, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: h[a] }) });
|
|
1441
1447
|
}
|
|
1442
|
-
|
|
1448
|
+
const c = (u = t[0]) == null ? void 0 : u.payload, n = (i == null ? void 0 : i.label) ?? "Cobertura", d = i ? c == null ? void 0 : c[i.denominatorKey] : void 0, r = i && d !== void 0 && d !== null && d > 0;
|
|
1449
|
+
return /* @__PURE__ */ o.jsxs("div", { style: l, children: [
|
|
1443
1450
|
/* @__PURE__ */ o.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
|
|
1444
|
-
t.map((
|
|
1451
|
+
t.map((h, f) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: h.color }, children: `${h.name}: ${h.value}` }, f)),
|
|
1452
|
+
r && /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0" }, children: `${n}: ${Math.round(
|
|
1453
|
+
c[i.numeratorKey] / d * 100
|
|
1454
|
+
)}%` })
|
|
1445
1455
|
] });
|
|
1446
|
-
},
|
|
1447
|
-
|
|
1456
|
+
}, te = ({
|
|
1457
|
+
tooltipKey: e,
|
|
1458
|
+
tooltipCoverage: t
|
|
1459
|
+
} = {}) => /* @__PURE__ */ o.jsx(
|
|
1460
|
+
Yt,
|
|
1448
1461
|
{
|
|
1449
|
-
content: /* @__PURE__ */ o.jsx(
|
|
1462
|
+
content: /* @__PURE__ */ o.jsx(
|
|
1463
|
+
ds,
|
|
1464
|
+
{
|
|
1465
|
+
tooltipKey: e,
|
|
1466
|
+
tooltipCoverage: t
|
|
1467
|
+
}
|
|
1468
|
+
)
|
|
1450
1469
|
}
|
|
1451
|
-
),
|
|
1452
|
-
|
|
1470
|
+
), he = ({ dataKey: e, hide: t = !1, type: s }) => /* @__PURE__ */ o.jsx(
|
|
1471
|
+
Qt,
|
|
1453
1472
|
{
|
|
1454
|
-
dataKey: e,
|
|
1473
|
+
...e ? { dataKey: e } : {},
|
|
1474
|
+
...s ? { type: s } : {},
|
|
1455
1475
|
hide: t,
|
|
1456
1476
|
tick: {
|
|
1457
|
-
fill:
|
|
1458
|
-
fontSize:
|
|
1477
|
+
fill: M.labelColor,
|
|
1478
|
+
fontSize: M.fontSize
|
|
1459
1479
|
}
|
|
1460
1480
|
}
|
|
1461
|
-
),
|
|
1462
|
-
|
|
1481
|
+
), fe = ({ type: e, dataKey: t, width: s } = {}) => /* @__PURE__ */ o.jsx(
|
|
1482
|
+
Zt,
|
|
1463
1483
|
{
|
|
1484
|
+
...e ? { type: e } : {},
|
|
1485
|
+
...t ? { dataKey: t } : {},
|
|
1486
|
+
...s !== void 0 ? { width: s } : {},
|
|
1464
1487
|
tick: {
|
|
1465
|
-
fill:
|
|
1466
|
-
fontSize:
|
|
1467
|
-
}
|
|
1488
|
+
fill: M.labelColor,
|
|
1489
|
+
fontSize: M.fontSize
|
|
1490
|
+
},
|
|
1491
|
+
tickMargin: 4
|
|
1468
1492
|
}
|
|
1469
1493
|
), _s = (e) => {
|
|
1470
|
-
const { data: t, xKey: s, yKeys:
|
|
1471
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1472
|
-
/* @__PURE__ */ o.jsx(
|
|
1473
|
-
/* @__PURE__ */ o.jsx(
|
|
1474
|
-
/* @__PURE__ */ o.jsx(
|
|
1475
|
-
/* @__PURE__ */ o.jsx(
|
|
1476
|
-
/* @__PURE__ */ o.jsx(
|
|
1477
|
-
|
|
1478
|
-
|
|
1494
|
+
const { data: t, xKey: s, yKeys: a, tooltipKey: i, width: l } = e;
|
|
1495
|
+
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: Ft, children: [
|
|
1496
|
+
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1497
|
+
/* @__PURE__ */ o.jsx(he, { dataKey: s }),
|
|
1498
|
+
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1499
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: i }),
|
|
1500
|
+
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1501
|
+
a.map((c, n) => /* @__PURE__ */ o.jsx(
|
|
1502
|
+
Pt,
|
|
1479
1503
|
{
|
|
1480
1504
|
type: "monotone",
|
|
1481
1505
|
dataKey: c,
|
|
1482
|
-
stroke:
|
|
1483
|
-
fill:
|
|
1506
|
+
stroke: H[n % H.length],
|
|
1507
|
+
fill: H[n % H.length]
|
|
1484
1508
|
},
|
|
1485
1509
|
c
|
|
1486
1510
|
))
|
|
1487
1511
|
] });
|
|
1488
1512
|
}, us = (e) => {
|
|
1489
|
-
const { data: t, yKeys: s, xKey:
|
|
1490
|
-
return /* @__PURE__ */ o.jsxs(
|
|
1491
|
-
/* @__PURE__ */ o.jsx(
|
|
1492
|
-
/* @__PURE__ */ o.jsx(
|
|
1493
|
-
/* @__PURE__ */ o.jsx(
|
|
1494
|
-
/* @__PURE__ */ o.jsx(
|
|
1495
|
-
/* @__PURE__ */ o.jsx(
|
|
1513
|
+
const { data: t, yKeys: s, xKey: a, tooltipKey: i, width: l } = e;
|
|
1514
|
+
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: Te, children: [
|
|
1515
|
+
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1516
|
+
/* @__PURE__ */ o.jsx(he, { dataKey: a }),
|
|
1517
|
+
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1518
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: i }),
|
|
1519
|
+
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1496
1520
|
s.map((c, n) => /* @__PURE__ */ o.jsx(
|
|
1497
|
-
|
|
1521
|
+
ke,
|
|
1498
1522
|
{
|
|
1499
1523
|
dataKey: c,
|
|
1500
|
-
fill:
|
|
1524
|
+
fill: H[n % H.length]
|
|
1501
1525
|
},
|
|
1502
1526
|
c
|
|
1503
1527
|
))
|
|
1504
1528
|
] });
|
|
1505
|
-
}
|
|
1506
|
-
|
|
1507
|
-
return
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1529
|
+
};
|
|
1530
|
+
function hs(e, t, s = lt) {
|
|
1531
|
+
return e <= 0 ? 0 : t <= 0 ? e : Math.max(e, t * s);
|
|
1532
|
+
}
|
|
1533
|
+
function fs(e, t = js, s) {
|
|
1534
|
+
return s !== void 0 ? s : e <= 0 ? ce : Math.max(ce, e * t);
|
|
1535
|
+
}
|
|
1536
|
+
function ys(e, t, s) {
|
|
1537
|
+
if (s !== void 0)
|
|
1538
|
+
return s;
|
|
1539
|
+
const a = e.reduce((i, l) => {
|
|
1540
|
+
const c = String(l[t] ?? "");
|
|
1541
|
+
return Math.max(i, c.length);
|
|
1542
|
+
}, 0);
|
|
1543
|
+
return Math.max(
|
|
1544
|
+
Cs,
|
|
1545
|
+
a * ws
|
|
1546
|
+
);
|
|
1547
|
+
}
|
|
1548
|
+
const xs = (e) => {
|
|
1549
|
+
const {
|
|
1550
|
+
data: t,
|
|
1551
|
+
yKeys: s,
|
|
1552
|
+
xKey: a,
|
|
1553
|
+
tooltipKey: i,
|
|
1554
|
+
minCategoryHeight: l,
|
|
1555
|
+
chartHeight: c,
|
|
1556
|
+
tooltipCoverage: n,
|
|
1557
|
+
showLegend: d = !0,
|
|
1558
|
+
yKeyLabels: r,
|
|
1559
|
+
yAxisWidth: _
|
|
1560
|
+
} = e, u = fs(
|
|
1561
|
+
t.length,
|
|
1562
|
+
l,
|
|
1563
|
+
c
|
|
1564
|
+
), h = ys(t, a, _);
|
|
1565
|
+
return /* @__PURE__ */ o.jsxs(
|
|
1566
|
+
ue,
|
|
1567
|
+
{
|
|
1568
|
+
height: u,
|
|
1569
|
+
layout: "vertical",
|
|
1570
|
+
data: t,
|
|
1571
|
+
Chart: Te,
|
|
1572
|
+
children: [
|
|
1573
|
+
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3", horizontal: !1 }),
|
|
1574
|
+
/* @__PURE__ */ o.jsx(he, { type: "number" }),
|
|
1575
|
+
/* @__PURE__ */ o.jsx(fe, { type: "category", dataKey: a, width: h }),
|
|
1576
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: i, tooltipCoverage: n }),
|
|
1577
|
+
d && /* @__PURE__ */ o.jsx(ee, {}),
|
|
1578
|
+
s.map((f, x) => /* @__PURE__ */ o.jsx(
|
|
1579
|
+
ke,
|
|
1580
|
+
{
|
|
1581
|
+
dataKey: f,
|
|
1582
|
+
name: (r == null ? void 0 : r[f]) ?? f,
|
|
1583
|
+
fill: H[x % H.length]
|
|
1584
|
+
},
|
|
1585
|
+
f
|
|
1586
|
+
))
|
|
1587
|
+
]
|
|
1588
|
+
}
|
|
1589
|
+
);
|
|
1590
|
+
}, ms = (e) => {
|
|
1591
|
+
const { data: t, xKey: s, yKeys: a, tooltipKey: i, width: l } = e;
|
|
1592
|
+
return /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: en, children: [
|
|
1593
|
+
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1594
|
+
/* @__PURE__ */ o.jsx(he, { dataKey: s }),
|
|
1595
|
+
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1596
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: i }),
|
|
1597
|
+
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1598
|
+
a.map((c, n) => /* @__PURE__ */ o.jsx(
|
|
1514
1599
|
tn,
|
|
1515
1600
|
{
|
|
1516
1601
|
type: "monotone",
|
|
1517
1602
|
dataKey: c,
|
|
1518
|
-
stroke:
|
|
1603
|
+
stroke: H[n % H.length],
|
|
1519
1604
|
strokeWidth: 2,
|
|
1520
1605
|
dot: !1
|
|
1521
1606
|
},
|
|
1522
1607
|
c
|
|
1523
1608
|
))
|
|
1524
1609
|
] });
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1610
|
+
};
|
|
1611
|
+
var gs = { NODE_ENV: "production" };
|
|
1612
|
+
const ps = (e) => {
|
|
1613
|
+
const { data: t, xKey: s, series: a = [], tooltipKey: i, width: l } = e;
|
|
1614
|
+
return !a.length && gs.NODE_ENV, /* @__PURE__ */ o.jsxs(ue, { width: l, data: t, Chart: Te, children: [
|
|
1615
|
+
/* @__PURE__ */ o.jsx(de, { strokeDasharray: "3 3" }),
|
|
1616
|
+
/* @__PURE__ */ o.jsx(he, { dataKey: s }),
|
|
1617
|
+
/* @__PURE__ */ o.jsx(fe, {}),
|
|
1618
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: i }),
|
|
1619
|
+
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1620
|
+
a.map((c, n) => /* @__PURE__ */ o.jsx(
|
|
1621
|
+
ke,
|
|
1622
|
+
{
|
|
1623
|
+
dataKey: c.key,
|
|
1624
|
+
name: c.label ?? c.key,
|
|
1625
|
+
stackId: c.stackId,
|
|
1626
|
+
fill: c.color ?? H[n % H.length]
|
|
1627
|
+
},
|
|
1628
|
+
c.key
|
|
1629
|
+
))
|
|
1630
|
+
] });
|
|
1631
|
+
}, bs = (e) => {
|
|
1632
|
+
const { data: t, xKey: s, yKeys: a, tooltipKey: i } = e, l = ({
|
|
1527
1633
|
cx: c,
|
|
1528
1634
|
cy: n,
|
|
1529
1635
|
midAngle: d,
|
|
1530
|
-
innerRadius:
|
|
1636
|
+
innerRadius: r,
|
|
1531
1637
|
outerRadius: _,
|
|
1532
1638
|
value: u
|
|
1533
1639
|
}) => {
|
|
1534
|
-
const h = Math.PI / 180,
|
|
1640
|
+
const h = Math.PI / 180, f = 25 + r + (_ - r), x = c + f * Math.cos(-(d ?? 0) * h), g = n + f * Math.sin(-(d ?? 0) * h);
|
|
1535
1641
|
return /* @__PURE__ */ o.jsx(
|
|
1536
1642
|
"text",
|
|
1537
1643
|
{
|
|
1538
|
-
x
|
|
1644
|
+
x,
|
|
1539
1645
|
y: g,
|
|
1540
|
-
fill:
|
|
1541
|
-
color:
|
|
1646
|
+
fill: M.labelColor,
|
|
1647
|
+
color: M.labelColor,
|
|
1542
1648
|
textAnchor: "middle",
|
|
1543
1649
|
dominantBaseline: "central",
|
|
1544
1650
|
children: u
|
|
1545
1651
|
}
|
|
1546
1652
|
);
|
|
1547
1653
|
};
|
|
1548
|
-
return /* @__PURE__ */ o.jsx(
|
|
1549
|
-
/* @__PURE__ */ o.jsx(
|
|
1550
|
-
/* @__PURE__ */ o.jsx(
|
|
1654
|
+
return /* @__PURE__ */ o.jsx(nt, { width: "100%", height: ce, children: /* @__PURE__ */ o.jsxs(nn, { children: [
|
|
1655
|
+
/* @__PURE__ */ o.jsx(te, { tooltipKey: i }),
|
|
1656
|
+
/* @__PURE__ */ o.jsx(ee, {}),
|
|
1551
1657
|
/* @__PURE__ */ o.jsx(
|
|
1552
1658
|
sn,
|
|
1553
1659
|
{
|
|
1554
1660
|
data: t,
|
|
1555
|
-
dataKey:
|
|
1661
|
+
dataKey: a[0],
|
|
1556
1662
|
nameKey: s,
|
|
1557
1663
|
label: l,
|
|
1558
1664
|
outerRadius: 120,
|
|
1559
1665
|
children: t.map((c, n) => /* @__PURE__ */ o.jsx(
|
|
1560
|
-
|
|
1666
|
+
rn,
|
|
1561
1667
|
{
|
|
1562
|
-
fill:
|
|
1668
|
+
fill: H[n % H.length]
|
|
1563
1669
|
},
|
|
1564
1670
|
`cell-${n}`
|
|
1565
1671
|
))
|
|
1566
1672
|
}
|
|
1567
1673
|
)
|
|
1568
1674
|
] }) });
|
|
1569
|
-
},
|
|
1675
|
+
}, ce = 400, lt = 56, js = 28, Cs = 100, ws = 8, Ns = /* @__PURE__ */ new Set([
|
|
1676
|
+
"bar",
|
|
1677
|
+
"line",
|
|
1678
|
+
"area",
|
|
1679
|
+
"mixBar"
|
|
1680
|
+
]), vs = {
|
|
1570
1681
|
area: _s,
|
|
1571
1682
|
bar: us,
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1683
|
+
horizontalBar: xs,
|
|
1684
|
+
line: ms,
|
|
1685
|
+
mixBar: ps,
|
|
1686
|
+
pie: bs
|
|
1687
|
+
}, H = [
|
|
1575
1688
|
"var(--color-primitive-palette-1-50)",
|
|
1576
1689
|
"var(--color-primitive-palette-2-50)",
|
|
1577
1690
|
"var(--color-primitive-palette-3-50)",
|
|
@@ -1589,28 +1702,24 @@ const ns = (e) => {
|
|
|
1589
1702
|
"var(--color-primitive-palette-15-50)",
|
|
1590
1703
|
"var(--color-primitive-palette-16-50)",
|
|
1591
1704
|
"var(--color-primitive-palette-17-50)"
|
|
1592
|
-
],
|
|
1705
|
+
], M = {
|
|
1593
1706
|
fontFamily: "Roboto, sans-serif",
|
|
1594
1707
|
fontSize: 12,
|
|
1595
1708
|
labelColor: "var(--color-neutral-90)",
|
|
1596
1709
|
tooltipBg: "#fff",
|
|
1597
1710
|
tooltipColor: "#000",
|
|
1598
1711
|
tooltipBorderRadius: "4px"
|
|
1599
|
-
}
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
}
|
|
1603
|
-
const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5hx_29", ze = {
|
|
1604
|
-
chartScrollViewport: gs,
|
|
1605
|
-
chartScrollViewport_track: bs
|
|
1606
|
-
}, ps = "Scrollable chart area", js = ({
|
|
1712
|
+
}, Es = "_chartScrollViewport_sm5hx_1", Ss = "_chartScrollViewport_track_sm5hx_29", Je = {
|
|
1713
|
+
chartScrollViewport: Es,
|
|
1714
|
+
chartScrollViewport_track: Ss
|
|
1715
|
+
}, Ts = "Scrollable chart area", ks = ({
|
|
1607
1716
|
dataLength: e,
|
|
1608
1717
|
minCategoryWidth: t,
|
|
1609
1718
|
children: s
|
|
1610
1719
|
}) => {
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
const _ =
|
|
1720
|
+
const a = ie(null), [i, l] = $(0), c = t ?? lt;
|
|
1721
|
+
U(() => {
|
|
1722
|
+
const _ = a.current;
|
|
1614
1723
|
if (!_)
|
|
1615
1724
|
return;
|
|
1616
1725
|
const u = () => {
|
|
@@ -1620,13 +1729,13 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
1620
1729
|
const h = new ResizeObserver(u);
|
|
1621
1730
|
return h.observe(_), () => h.disconnect();
|
|
1622
1731
|
}, []);
|
|
1623
|
-
const n =
|
|
1732
|
+
const n = hs(
|
|
1624
1733
|
i,
|
|
1625
1734
|
e,
|
|
1626
1735
|
c
|
|
1627
|
-
), d = i > 0 && n > i,
|
|
1736
|
+
), d = i > 0 && n > i, r = D(
|
|
1628
1737
|
(_) => {
|
|
1629
|
-
const u =
|
|
1738
|
+
const u = a.current;
|
|
1630
1739
|
if (u)
|
|
1631
1740
|
switch (_.key) {
|
|
1632
1741
|
case "ArrowLeft":
|
|
@@ -1648,278 +1757,278 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
1648
1757
|
return /* @__PURE__ */ o.jsx(
|
|
1649
1758
|
"div",
|
|
1650
1759
|
{
|
|
1651
|
-
ref:
|
|
1652
|
-
className:
|
|
1760
|
+
ref: a,
|
|
1761
|
+
className: Je.chartScrollViewport,
|
|
1653
1762
|
role: d ? "region" : void 0,
|
|
1654
1763
|
tabIndex: d ? 0 : void 0,
|
|
1655
|
-
"aria-label": d ?
|
|
1656
|
-
onKeyDown: d ?
|
|
1764
|
+
"aria-label": d ? Ts : void 0,
|
|
1765
|
+
onKeyDown: d ? r : void 0,
|
|
1657
1766
|
children: /* @__PURE__ */ o.jsx(
|
|
1658
1767
|
"div",
|
|
1659
1768
|
{
|
|
1660
|
-
className:
|
|
1661
|
-
style: { width: n, height:
|
|
1769
|
+
className: Je.chartScrollViewport_track,
|
|
1770
|
+
style: { width: n, height: ce },
|
|
1662
1771
|
children: i > 0 ? s(n) : null
|
|
1663
1772
|
}
|
|
1664
1773
|
)
|
|
1665
1774
|
}
|
|
1666
1775
|
);
|
|
1667
|
-
},
|
|
1668
|
-
const { component: t, userFlow: s, hash:
|
|
1669
|
-
var
|
|
1776
|
+
}, As = (e) => {
|
|
1777
|
+
const { component: t, userFlow: s, hash: a, responseKey: i, dataSource: l, ...c } = e, n = vs[c.type], { fetchDataSource: d } = G(), [r, _] = $(!1), [u, h] = $([]), f = async () => {
|
|
1778
|
+
var m, y;
|
|
1670
1779
|
try {
|
|
1671
1780
|
_(!0);
|
|
1672
|
-
const { jsonPathData:
|
|
1781
|
+
const { jsonPathData: p, mapperData: b } = l, C = $e(
|
|
1673
1782
|
l,
|
|
1674
1783
|
1
|
|
1675
1784
|
), j = await d(
|
|
1676
1785
|
C,
|
|
1677
1786
|
s,
|
|
1678
1787
|
!1
|
|
1679
|
-
), w =
|
|
1788
|
+
), w = p ? (m = it(j == null ? void 0 : j.data, p, b)) == null ? void 0 : m.items : (y = j == null ? void 0 : j.data) == null ? void 0 : y.data;
|
|
1680
1789
|
h(w), _(!1);
|
|
1681
|
-
} catch (
|
|
1682
|
-
alert(JSON.stringify(
|
|
1790
|
+
} catch (p) {
|
|
1791
|
+
alert(JSON.stringify(p)), _(!1);
|
|
1683
1792
|
}
|
|
1684
1793
|
};
|
|
1685
|
-
if (
|
|
1686
|
-
n && (l ?
|
|
1794
|
+
if (U(() => {
|
|
1795
|
+
n && (l ? f() : h(c.data));
|
|
1687
1796
|
}, []), !n)
|
|
1688
1797
|
return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
|
|
1689
|
-
const
|
|
1798
|
+
const x = {
|
|
1690
1799
|
...c,
|
|
1691
1800
|
data: u
|
|
1692
1801
|
};
|
|
1693
|
-
return
|
|
1694
|
-
|
|
1802
|
+
return r ? /* @__PURE__ */ o.jsx(et, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(xe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Ns.has(c.type) ? /* @__PURE__ */ o.jsx(
|
|
1803
|
+
ks,
|
|
1695
1804
|
{
|
|
1696
1805
|
dataLength: u.length,
|
|
1697
1806
|
minCategoryWidth: c.minCategoryWidth,
|
|
1698
|
-
children: (
|
|
1807
|
+
children: (m) => /* @__PURE__ */ o.jsx(n, { ...x, width: m })
|
|
1699
1808
|
}
|
|
1700
|
-
) : /* @__PURE__ */ o.jsx(n, { ...
|
|
1701
|
-
},
|
|
1809
|
+
) : /* @__PURE__ */ o.jsx(n, { ...x });
|
|
1810
|
+
}, Os = (e) => {
|
|
1702
1811
|
const {
|
|
1703
1812
|
userFlow: t,
|
|
1704
1813
|
pageId: s,
|
|
1705
|
-
responseKey:
|
|
1814
|
+
responseKey: a,
|
|
1706
1815
|
actionType: i,
|
|
1707
1816
|
label: l,
|
|
1708
1817
|
value: c,
|
|
1709
1818
|
required: n,
|
|
1710
1819
|
dependencies: d,
|
|
1711
|
-
...
|
|
1820
|
+
...r
|
|
1712
1821
|
} = e, _ = {
|
|
1713
|
-
...
|
|
1714
|
-
}, { getNextUI: u } =
|
|
1822
|
+
...r
|
|
1823
|
+
}, { getNextUI: u } = G(), [h, f] = $(c || !1), { disabled: x } = I(
|
|
1715
1824
|
t,
|
|
1716
1825
|
d
|
|
1717
|
-
), g =
|
|
1718
|
-
var
|
|
1826
|
+
), g = T(() => n && l ? `${l} *` : l ?? "", [l, n]), m = D(async () => {
|
|
1827
|
+
var p;
|
|
1719
1828
|
try {
|
|
1720
|
-
const
|
|
1721
|
-
|
|
1829
|
+
const b = !h;
|
|
1830
|
+
f(b);
|
|
1722
1831
|
const C = {
|
|
1723
|
-
...(
|
|
1724
|
-
[
|
|
1832
|
+
...(p = N.getState()[t]) == null ? void 0 : p.entries,
|
|
1833
|
+
[a]: b
|
|
1725
1834
|
};
|
|
1726
|
-
switch (
|
|
1835
|
+
switch (q(t, C), i) {
|
|
1727
1836
|
case "GO_TO_NEXT_UI":
|
|
1728
1837
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1729
1838
|
const w = await u(
|
|
1730
1839
|
t,
|
|
1731
1840
|
s,
|
|
1732
1841
|
C,
|
|
1733
|
-
|
|
1842
|
+
a,
|
|
1734
1843
|
i === "GO_TO_NEXT_UI"
|
|
1735
1844
|
);
|
|
1736
|
-
w != null && w.data &&
|
|
1845
|
+
w != null && w.data && L(t, w == null ? void 0 : w.data);
|
|
1737
1846
|
break;
|
|
1738
1847
|
}
|
|
1739
1848
|
default:
|
|
1740
1849
|
break;
|
|
1741
1850
|
}
|
|
1742
|
-
} catch (
|
|
1743
|
-
console.error("Error in checkbox action:",
|
|
1851
|
+
} catch (b) {
|
|
1852
|
+
console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
|
|
1744
1853
|
}
|
|
1745
|
-
}, [t, s,
|
|
1854
|
+
}, [t, s, a, i, h]), y = (_ == null ? void 0 : _.disabled) ?? x;
|
|
1746
1855
|
return /* @__PURE__ */ o.jsx(
|
|
1747
|
-
|
|
1856
|
+
St,
|
|
1748
1857
|
{
|
|
1749
1858
|
..._,
|
|
1750
1859
|
labelRight: g,
|
|
1751
1860
|
checked: h,
|
|
1752
|
-
disabled:
|
|
1861
|
+
disabled: y,
|
|
1753
1862
|
onChange: () => {
|
|
1754
|
-
!
|
|
1863
|
+
!y && m();
|
|
1755
1864
|
}
|
|
1756
1865
|
}
|
|
1757
1866
|
);
|
|
1758
|
-
},
|
|
1759
|
-
codeEditor:
|
|
1760
|
-
codeEditor_label:
|
|
1761
|
-
codeEditor_wrapper:
|
|
1762
|
-
input:
|
|
1763
|
-
preview:
|
|
1764
|
-
preview_inner:
|
|
1765
|
-
},
|
|
1867
|
+
}, $s = "_codeEditor_1wi2p_1", Rs = "_codeEditor_label_1wi2p_4", qs = "_codeEditor_wrapper_1wi2p_13", Ds = "_input_1wi2p_17", Ls = "_preview_1wi2p_18", Is = "_preview_inner_1wi2p_33", Z = {
|
|
1868
|
+
codeEditor: $s,
|
|
1869
|
+
codeEditor_label: Rs,
|
|
1870
|
+
codeEditor_wrapper: qs,
|
|
1871
|
+
input: Ds,
|
|
1872
|
+
preview: Ls,
|
|
1873
|
+
preview_inner: Is
|
|
1874
|
+
}, Bs = (e) => {
|
|
1766
1875
|
const {
|
|
1767
1876
|
userFlow: t,
|
|
1768
1877
|
responseKey: s,
|
|
1769
|
-
label:
|
|
1878
|
+
label: a,
|
|
1770
1879
|
language: i,
|
|
1771
1880
|
placeholder: l,
|
|
1772
1881
|
value: c,
|
|
1773
1882
|
required: n,
|
|
1774
1883
|
dependencies: d,
|
|
1775
|
-
disabled:
|
|
1884
|
+
disabled: r,
|
|
1776
1885
|
showPreview: _,
|
|
1777
1886
|
height: u = "400px"
|
|
1778
|
-
} = e, [h,
|
|
1887
|
+
} = e, [h, f] = $(c ?? ""), x = le.useThemeStore((C) => C.theme.mode), { disabled: g } = I(
|
|
1779
1888
|
t,
|
|
1780
1889
|
d
|
|
1781
|
-
),
|
|
1782
|
-
json:
|
|
1890
|
+
), m = r ?? g, y = {
|
|
1891
|
+
json: Le(),
|
|
1783
1892
|
markdown: on(),
|
|
1784
1893
|
sql: cn(),
|
|
1785
1894
|
yaml: ln()
|
|
1786
|
-
},
|
|
1787
|
-
|
|
1895
|
+
}, p = T(() => n && a ? `${a} *` : a ?? "", [a, n]), b = (C) => {
|
|
1896
|
+
f(C);
|
|
1788
1897
|
const j = {
|
|
1789
1898
|
[s]: C
|
|
1790
1899
|
};
|
|
1791
|
-
|
|
1900
|
+
q(t, j);
|
|
1792
1901
|
};
|
|
1793
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
1794
|
-
|
|
1795
|
-
/* @__PURE__ */ o.jsxs("div", { className:
|
|
1902
|
+
return /* @__PURE__ */ o.jsxs("div", { className: Z.codeEditor, children: [
|
|
1903
|
+
p && p !== "" && /* @__PURE__ */ o.jsx("label", { className: Z.codeEditor_label, children: p }),
|
|
1904
|
+
/* @__PURE__ */ o.jsxs("div", { className: Z.codeEditor_wrapper, children: [
|
|
1796
1905
|
/* @__PURE__ */ o.jsx(
|
|
1797
|
-
|
|
1906
|
+
an,
|
|
1798
1907
|
{
|
|
1799
|
-
className:
|
|
1908
|
+
className: Z.input,
|
|
1800
1909
|
value: h,
|
|
1801
1910
|
height: u,
|
|
1802
1911
|
placeholder: l,
|
|
1803
|
-
extensions: [
|
|
1804
|
-
onChange: (C) =>
|
|
1805
|
-
theme:
|
|
1806
|
-
editable: !
|
|
1912
|
+
extensions: [y[i] ?? Le()],
|
|
1913
|
+
onChange: (C) => b(C),
|
|
1914
|
+
theme: x,
|
|
1915
|
+
editable: !m
|
|
1807
1916
|
}
|
|
1808
1917
|
),
|
|
1809
|
-
i === "markdown" && _ && /* @__PURE__ */ o.jsx("div", { className:
|
|
1918
|
+
i === "markdown" && _ && /* @__PURE__ */ o.jsx("div", { className: Z.preview, style: { height: u }, children: /* @__PURE__ */ o.jsx(tt, { className: Z.preview_inner, children: h }) })
|
|
1810
1919
|
] })
|
|
1811
1920
|
] });
|
|
1812
|
-
},
|
|
1813
|
-
slotStack:
|
|
1814
|
-
},
|
|
1921
|
+
}, Ks = "_slotStack_6n2wy_5", We = {
|
|
1922
|
+
slotStack: Ks
|
|
1923
|
+
}, Hs = (e) => {
|
|
1815
1924
|
const {
|
|
1816
1925
|
userFlow: t,
|
|
1817
1926
|
pageId: s,
|
|
1818
|
-
component:
|
|
1927
|
+
component: a,
|
|
1819
1928
|
hash: i,
|
|
1820
1929
|
responseKey: l,
|
|
1821
1930
|
content: c,
|
|
1822
1931
|
topContent: n,
|
|
1823
1932
|
icon: d,
|
|
1824
|
-
headerStatusColor:
|
|
1933
|
+
headerStatusColor: r,
|
|
1825
1934
|
..._
|
|
1826
|
-
} = e, u =
|
|
1935
|
+
} = e, u = r ? `palette_${r}_50` : void 0, h = E(
|
|
1827
1936
|
t,
|
|
1828
1937
|
s,
|
|
1829
1938
|
c && c.length > 0 ? c : null
|
|
1830
|
-
),
|
|
1939
|
+
), f = E(
|
|
1831
1940
|
t,
|
|
1832
1941
|
s,
|
|
1833
1942
|
n && n.length > 0 ? n : null
|
|
1834
|
-
),
|
|
1943
|
+
), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: We.slotStack, children: h.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `data-card-body-${i}-${y}`)) }) : void 0, g = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: We.slotStack, children: f.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `data-card-top-${i}-${y}`)) }) : void 0;
|
|
1835
1944
|
return /* @__PURE__ */ o.jsx(
|
|
1836
|
-
|
|
1945
|
+
Tt,
|
|
1837
1946
|
{
|
|
1838
1947
|
..._,
|
|
1839
1948
|
icon: d,
|
|
1840
1949
|
headerStatusColor: u,
|
|
1841
1950
|
topContent: g,
|
|
1842
|
-
children:
|
|
1951
|
+
children: x
|
|
1843
1952
|
}
|
|
1844
1953
|
);
|
|
1845
|
-
},
|
|
1846
|
-
dividerNotFront:
|
|
1847
|
-
},
|
|
1848
|
-
drawer:
|
|
1849
|
-
drawerBody:
|
|
1850
|
-
drawerFooter:
|
|
1851
|
-
},
|
|
1954
|
+
}, Gs = "_dividerNotFront_tze3j_1", Ms = {
|
|
1955
|
+
dividerNotFront: Gs
|
|
1956
|
+
}, Us = (e) => /* @__PURE__ */ o.jsx(kt, { ...e, className: Ms.dividerNotFront }), Vs = "_drawer_13pxo_1", zs = "_drawerBody_13pxo_5", Xs = "_drawerFooter_13pxo_11", ve = {
|
|
1957
|
+
drawer: Vs,
|
|
1958
|
+
drawerBody: zs,
|
|
1959
|
+
drawerFooter: Xs
|
|
1960
|
+
}, Js = ({
|
|
1852
1961
|
userFlow: e,
|
|
1853
1962
|
pageId: t,
|
|
1854
1963
|
responseKey: s,
|
|
1855
|
-
header:
|
|
1964
|
+
header: a,
|
|
1856
1965
|
body: i,
|
|
1857
1966
|
footer: l,
|
|
1858
1967
|
...c
|
|
1859
1968
|
}) => {
|
|
1860
|
-
const n = N((
|
|
1861
|
-
var
|
|
1862
|
-
return (
|
|
1863
|
-
}), d = N((
|
|
1864
|
-
var
|
|
1865
|
-
return (
|
|
1866
|
-
}),
|
|
1969
|
+
const n = N((m) => {
|
|
1970
|
+
var y;
|
|
1971
|
+
return (y = m[e]) == null ? void 0 : y.isDrawerOpen;
|
|
1972
|
+
}), d = N((m) => {
|
|
1973
|
+
var y;
|
|
1974
|
+
return (y = m[e]) == null ? void 0 : y.isLoading;
|
|
1975
|
+
}), r = n && !d, _ = {
|
|
1867
1976
|
...c,
|
|
1868
|
-
isOpen:
|
|
1977
|
+
isOpen: r,
|
|
1869
1978
|
children: null
|
|
1870
|
-
}, u =
|
|
1871
|
-
|
|
1872
|
-
}, [e]), h = Array.isArray(
|
|
1979
|
+
}, u = D(() => {
|
|
1980
|
+
Ae(e), oe(e, !1);
|
|
1981
|
+
}, [e]), h = Array.isArray(a) ? E(e, t, a) : a ? /* @__PURE__ */ o.jsx(Pe, { type: "h2", children: a }) : void 0, f = E(e, t, i), x = l ? E(e, t, l) : void 0;
|
|
1873
1982
|
return /* @__PURE__ */ o.jsx(
|
|
1874
|
-
|
|
1983
|
+
At,
|
|
1875
1984
|
{
|
|
1876
1985
|
..._,
|
|
1877
|
-
className:
|
|
1878
|
-
isOpen:
|
|
1986
|
+
className: ve.drawer,
|
|
1987
|
+
isOpen: r,
|
|
1879
1988
|
onClose: u,
|
|
1880
1989
|
heightGap: 50,
|
|
1881
|
-
title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((
|
|
1882
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
1883
|
-
footer:
|
|
1990
|
+
title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${y}`)) : h }) : void 0,
|
|
1991
|
+
children: /* @__PURE__ */ o.jsx("section", { className: ve.drawerBody, children: f.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${y}`)) }),
|
|
1992
|
+
footer: x ? /* @__PURE__ */ o.jsx("div", { className: ve.drawerFooter, children: x.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${y}`)) }) : void 0
|
|
1884
1993
|
}
|
|
1885
1994
|
);
|
|
1886
|
-
},
|
|
1995
|
+
}, Ws = (e) => {
|
|
1887
1996
|
const {
|
|
1888
1997
|
userFlow: t,
|
|
1889
1998
|
pageId: s,
|
|
1890
|
-
component:
|
|
1999
|
+
component: a,
|
|
1891
2000
|
hash: i,
|
|
1892
2001
|
responseKey: l,
|
|
1893
2002
|
content: c,
|
|
1894
2003
|
items: n,
|
|
1895
2004
|
disabled: d,
|
|
1896
|
-
variant:
|
|
2005
|
+
variant: r,
|
|
1897
2006
|
leftIcon: _,
|
|
1898
2007
|
rightIcon: u
|
|
1899
|
-
} = e, h =
|
|
1900
|
-
() => n.map((
|
|
1901
|
-
label:
|
|
2008
|
+
} = e, h = ge(t, s), f = T(
|
|
2009
|
+
() => n.map((x) => ({
|
|
2010
|
+
label: x.content ?? x.label ?? "",
|
|
1902
2011
|
onClick: () => {
|
|
1903
2012
|
h({
|
|
1904
|
-
responseKey:
|
|
1905
|
-
actionType:
|
|
1906
|
-
dataSource:
|
|
1907
|
-
redirectUrl:
|
|
1908
|
-
dependencies:
|
|
2013
|
+
responseKey: x.responseKey,
|
|
2014
|
+
actionType: x.actionType,
|
|
2015
|
+
dataSource: x.dataSource,
|
|
2016
|
+
redirectUrl: x.redirectUrl,
|
|
2017
|
+
dependencies: x.dependencies
|
|
1909
2018
|
});
|
|
1910
2019
|
}
|
|
1911
2020
|
})),
|
|
1912
2021
|
[n, h]
|
|
1913
2022
|
);
|
|
1914
2023
|
return /* @__PURE__ */ o.jsx(
|
|
1915
|
-
|
|
2024
|
+
Ot,
|
|
1916
2025
|
{
|
|
1917
2026
|
disabled: d,
|
|
1918
|
-
variant:
|
|
1919
|
-
items:
|
|
1920
|
-
children: /* @__PURE__ */ o.jsxs(
|
|
2027
|
+
variant: r,
|
|
2028
|
+
items: f,
|
|
2029
|
+
children: /* @__PURE__ */ o.jsxs(k, { children: [
|
|
1921
2030
|
_ ? /* @__PURE__ */ o.jsx(
|
|
1922
|
-
|
|
2031
|
+
Ie,
|
|
1923
2032
|
{
|
|
1924
2033
|
name: _,
|
|
1925
2034
|
size: "md",
|
|
@@ -1928,7 +2037,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
1928
2037
|
) : null,
|
|
1929
2038
|
c,
|
|
1930
2039
|
u ? /* @__PURE__ */ o.jsx(
|
|
1931
|
-
|
|
2040
|
+
Ie,
|
|
1932
2041
|
{
|
|
1933
2042
|
name: u,
|
|
1934
2043
|
size: "md",
|
|
@@ -1938,45 +2047,45 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
1938
2047
|
] })
|
|
1939
2048
|
}
|
|
1940
2049
|
);
|
|
1941
|
-
},
|
|
1942
|
-
header:
|
|
1943
|
-
header_content:
|
|
1944
|
-
},
|
|
2050
|
+
}, Ys = "_header_g1eri_1", Qs = "_header_content_g1eri_5", Ye = {
|
|
2051
|
+
header: Ys,
|
|
2052
|
+
header_content: Qs
|
|
2053
|
+
}, Zs = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: F(Ye.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Ye.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(k, { children: t }, s)) }) }), Fs = (e) => {
|
|
1945
2054
|
const {
|
|
1946
2055
|
userFlow: t,
|
|
1947
2056
|
pageId: s,
|
|
1948
|
-
responseKey:
|
|
2057
|
+
responseKey: a,
|
|
1949
2058
|
actionType: i,
|
|
1950
2059
|
content: l,
|
|
1951
2060
|
redirectUrl: c,
|
|
1952
2061
|
target: n,
|
|
1953
2062
|
dependencies: d,
|
|
1954
|
-
component:
|
|
2063
|
+
component: r,
|
|
1955
2064
|
hash: _,
|
|
1956
2065
|
...u
|
|
1957
|
-
} = e, { getNextUI: h } =
|
|
2066
|
+
} = e, { getNextUI: h } = G(), { disabled: f } = I(
|
|
1958
2067
|
t,
|
|
1959
2068
|
d
|
|
1960
|
-
),
|
|
1961
|
-
const { href:
|
|
2069
|
+
), x = i && u ? (() => {
|
|
2070
|
+
const { href: y, target: p, download: b, ...C } = u;
|
|
1962
2071
|
return C;
|
|
1963
|
-
})() : u, g =
|
|
1964
|
-
var
|
|
2072
|
+
})() : u, g = D(async () => {
|
|
2073
|
+
var y;
|
|
1965
2074
|
if (i)
|
|
1966
2075
|
try {
|
|
1967
|
-
const
|
|
1968
|
-
...(
|
|
1969
|
-
[
|
|
2076
|
+
const p = {
|
|
2077
|
+
...(y = N.getState()[t]) == null ? void 0 : y.entries,
|
|
2078
|
+
[a]: { status: 200 }
|
|
1970
2079
|
};
|
|
1971
|
-
switch (
|
|
2080
|
+
switch (q(t, p), i) {
|
|
1972
2081
|
case "GO_TO_NEXT_UI": {
|
|
1973
|
-
const
|
|
2082
|
+
const b = await h(
|
|
1974
2083
|
t,
|
|
1975
2084
|
s,
|
|
1976
|
-
|
|
1977
|
-
|
|
2085
|
+
p,
|
|
2086
|
+
a
|
|
1978
2087
|
);
|
|
1979
|
-
|
|
2088
|
+
b != null && b.data && L(t, b == null ? void 0 : b.data);
|
|
1980
2089
|
break;
|
|
1981
2090
|
}
|
|
1982
2091
|
case "REDIRECT":
|
|
@@ -1990,114 +2099,114 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
1990
2099
|
console.warn(`Unhandled actionType for link: ${i}`);
|
|
1991
2100
|
break;
|
|
1992
2101
|
}
|
|
1993
|
-
} catch (
|
|
1994
|
-
alert(JSON.stringify(
|
|
2102
|
+
} catch (p) {
|
|
2103
|
+
alert(JSON.stringify(p));
|
|
1995
2104
|
}
|
|
1996
|
-
}, [i, h, s, c,
|
|
2105
|
+
}, [i, h, s, c, a, n, t]), m = x.disabled ?? f;
|
|
1997
2106
|
return /* @__PURE__ */ o.jsx(
|
|
1998
|
-
|
|
2107
|
+
$t,
|
|
1999
2108
|
{
|
|
2000
|
-
...
|
|
2001
|
-
disabled:
|
|
2109
|
+
...x,
|
|
2110
|
+
disabled: m,
|
|
2002
2111
|
onClick: i ? g : void 0,
|
|
2003
2112
|
children: l
|
|
2004
2113
|
}
|
|
2005
2114
|
);
|
|
2006
|
-
},
|
|
2115
|
+
}, Ps = (e) => {
|
|
2007
2116
|
const {
|
|
2008
2117
|
userFlow: t,
|
|
2009
2118
|
pageId: s,
|
|
2010
|
-
component:
|
|
2119
|
+
component: a,
|
|
2011
2120
|
hash: i,
|
|
2012
2121
|
responseKey: l,
|
|
2013
2122
|
items: c,
|
|
2014
2123
|
closeOnClick: n,
|
|
2015
2124
|
disabled: d,
|
|
2016
|
-
listOrigin:
|
|
2125
|
+
listOrigin: r,
|
|
2017
2126
|
size: _,
|
|
2018
2127
|
variant: u
|
|
2019
|
-
} = e, h =
|
|
2020
|
-
() => c.map((
|
|
2021
|
-
icon:
|
|
2022
|
-
label:
|
|
2128
|
+
} = e, h = ge(t, s), f = T(
|
|
2129
|
+
() => c.map((x) => ({
|
|
2130
|
+
icon: x.leftIcon,
|
|
2131
|
+
label: x.content ?? x.label ?? "",
|
|
2023
2132
|
onClick: (g) => {
|
|
2024
|
-
var
|
|
2025
|
-
(
|
|
2026
|
-
responseKey:
|
|
2027
|
-
actionType:
|
|
2028
|
-
dataSource:
|
|
2029
|
-
redirectUrl:
|
|
2030
|
-
dependencies:
|
|
2133
|
+
var m;
|
|
2134
|
+
(m = g == null ? void 0 : g.preventDefault) == null || m.call(g), h({
|
|
2135
|
+
responseKey: x.responseKey,
|
|
2136
|
+
actionType: x.actionType,
|
|
2137
|
+
dataSource: x.dataSource,
|
|
2138
|
+
redirectUrl: x.redirectUrl,
|
|
2139
|
+
dependencies: x.dependencies
|
|
2031
2140
|
});
|
|
2032
2141
|
}
|
|
2033
2142
|
})),
|
|
2034
2143
|
[c, h]
|
|
2035
2144
|
);
|
|
2036
2145
|
return /* @__PURE__ */ o.jsx(
|
|
2037
|
-
|
|
2146
|
+
Rt,
|
|
2038
2147
|
{
|
|
2039
|
-
items:
|
|
2148
|
+
items: f,
|
|
2040
2149
|
closeOnClick: n,
|
|
2041
2150
|
disabled: d,
|
|
2042
|
-
listOrigin:
|
|
2151
|
+
listOrigin: r,
|
|
2043
2152
|
size: _,
|
|
2044
2153
|
variant: u
|
|
2045
2154
|
}
|
|
2046
2155
|
);
|
|
2047
|
-
},
|
|
2048
|
-
modalContent:
|
|
2049
|
-
},
|
|
2156
|
+
}, er = "_modalContent_p06ci_1", tr = {
|
|
2157
|
+
modalContent: er
|
|
2158
|
+
}, nr = ({
|
|
2050
2159
|
userFlow: e,
|
|
2051
2160
|
pageId: t,
|
|
2052
2161
|
responseKey: s,
|
|
2053
|
-
header:
|
|
2162
|
+
header: a,
|
|
2054
2163
|
body: i,
|
|
2055
2164
|
footer: l,
|
|
2056
2165
|
headerStatusColor: c,
|
|
2057
2166
|
...n
|
|
2058
2167
|
}) => {
|
|
2059
|
-
const d = N((
|
|
2060
|
-
var
|
|
2061
|
-
return (
|
|
2062
|
-
}),
|
|
2063
|
-
var
|
|
2064
|
-
return (
|
|
2065
|
-
}), _ = d && !
|
|
2168
|
+
const d = N((y) => {
|
|
2169
|
+
var p;
|
|
2170
|
+
return (p = y[e]) == null ? void 0 : p.isModalOpen;
|
|
2171
|
+
}), r = N((y) => {
|
|
2172
|
+
var p;
|
|
2173
|
+
return (p = y[e]) == null ? void 0 : p.isLoading;
|
|
2174
|
+
}), _ = d && !r, u = {
|
|
2066
2175
|
...n
|
|
2067
|
-
}, h = (u == null ? void 0 : u.headerStatusColor) ?? c,
|
|
2068
|
-
|
|
2069
|
-
}, [e, s]),
|
|
2176
|
+
}, h = (u == null ? void 0 : u.headerStatusColor) ?? c, f = D(() => {
|
|
2177
|
+
Ae(e), Oe(e, !1);
|
|
2178
|
+
}, [e, s]), x = Array.isArray(a) ? E(e, t, a) : a, g = E(e, t, i), m = E(e, t, l);
|
|
2070
2179
|
return /* @__PURE__ */ o.jsx(
|
|
2071
|
-
|
|
2180
|
+
qt,
|
|
2072
2181
|
{
|
|
2073
2182
|
...u,
|
|
2074
2183
|
headerStatusColor: h,
|
|
2075
|
-
header: typeof
|
|
2076
|
-
children: /* @__PURE__ */ o.jsx("section", { className:
|
|
2077
|
-
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
2184
|
+
header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, p) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${p}`)) }),
|
|
2185
|
+
children: /* @__PURE__ */ o.jsx("section", { className: tr.modalContent, children: g.map((y, p) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${p}`)) }),
|
|
2186
|
+
actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((y, p) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${p}`)) }),
|
|
2078
2187
|
open: _,
|
|
2079
|
-
onClose:
|
|
2188
|
+
onClose: f
|
|
2080
2189
|
}
|
|
2081
2190
|
);
|
|
2082
|
-
},
|
|
2191
|
+
}, sr = ({ userFlow: e, pageId: t }) => {
|
|
2083
2192
|
var l, c;
|
|
2084
2193
|
const s = un(e);
|
|
2085
2194
|
if (!s)
|
|
2086
2195
|
return null;
|
|
2087
|
-
const
|
|
2196
|
+
const a = [
|
|
2088
2197
|
...(s == null ? void 0 : s.components) || [],
|
|
2089
2198
|
...((l = s == null ? void 0 : s.header) == null ? void 0 : l.components) || [],
|
|
2090
2199
|
...((c = s == null ? void 0 : s.body) == null ? void 0 : c.components) || []
|
|
2091
2200
|
], i = E(
|
|
2092
2201
|
e,
|
|
2093
2202
|
t,
|
|
2094
|
-
|
|
2203
|
+
a
|
|
2095
2204
|
);
|
|
2096
2205
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: i == null ? void 0 : i.map((n, d) => {
|
|
2097
|
-
const
|
|
2098
|
-
return /* @__PURE__ */ o.jsx(
|
|
2206
|
+
const r = `overlay-${d}-${s == null ? void 0 : s.hash}`;
|
|
2207
|
+
return /* @__PURE__ */ o.jsx(k, { children: n }, r);
|
|
2099
2208
|
}) });
|
|
2100
|
-
},
|
|
2209
|
+
}, rr = {
|
|
2101
2210
|
success: {
|
|
2102
2211
|
color: "success-opacity",
|
|
2103
2212
|
textColor: "success-60",
|
|
@@ -2123,89 +2232,62 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
2123
2232
|
textColor: "neutral-70",
|
|
2124
2233
|
iconColor: "neutral-70"
|
|
2125
2234
|
}
|
|
2126
|
-
},
|
|
2127
|
-
const { content: t, variant: s = "neutral", ...
|
|
2128
|
-
...
|
|
2235
|
+
}, ar = (e) => {
|
|
2236
|
+
const { content: t, variant: s = "neutral", ...a } = e, i = rr[s], l = {
|
|
2237
|
+
...a,
|
|
2129
2238
|
children: t,
|
|
2130
|
-
color: (
|
|
2131
|
-
textColor: (
|
|
2132
|
-
iconColor: (
|
|
2239
|
+
color: (a == null ? void 0 : a.color) ?? i.color,
|
|
2240
|
+
textColor: (a == null ? void 0 : a.textColor) ?? i.textColor,
|
|
2241
|
+
iconColor: (a == null ? void 0 : a.iconColor) ?? i.iconColor
|
|
2133
2242
|
};
|
|
2134
|
-
return /* @__PURE__ */ o.jsx(
|
|
2135
|
-
},
|
|
2243
|
+
return /* @__PURE__ */ o.jsx(Ee, { ...l });
|
|
2244
|
+
}, or = (e) => {
|
|
2136
2245
|
const { content: t } = e;
|
|
2137
|
-
return /* @__PURE__ */ o.jsx(
|
|
2138
|
-
},
|
|
2246
|
+
return /* @__PURE__ */ o.jsx(tt, { children: t });
|
|
2247
|
+
}, cr = (e) => {
|
|
2139
2248
|
const {
|
|
2140
2249
|
userFlow: t,
|
|
2141
2250
|
pageId: s,
|
|
2142
|
-
responseKey:
|
|
2251
|
+
responseKey: a,
|
|
2143
2252
|
actionType: i,
|
|
2144
2253
|
dataSource: l,
|
|
2145
2254
|
dependencies: c,
|
|
2146
2255
|
onClick: n,
|
|
2147
2256
|
...d
|
|
2148
|
-
} = e,
|
|
2257
|
+
} = e, r = ge(t, s), { disabled: _ } = I(
|
|
2149
2258
|
t,
|
|
2150
2259
|
c
|
|
2151
|
-
),
|
|
2260
|
+
), u = {
|
|
2152
2261
|
...d
|
|
2153
|
-
},
|
|
2154
|
-
|
|
2262
|
+
}, h = (u == null ? void 0 : u.disabled) ?? _, [f, x] = $(!1), g = ie(!1), m = D(async () => {
|
|
2263
|
+
if (g.current)
|
|
2264
|
+
return;
|
|
2265
|
+
const y = i === "FETCH_DATA_SOURCE";
|
|
2266
|
+
y && (g.current = !0, x(!0));
|
|
2155
2267
|
try {
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
r
|
|
2167
|
-
);
|
|
2168
|
-
f != null && f.data && D(t, f == null ? void 0 : f.data);
|
|
2169
|
-
break;
|
|
2170
|
-
}
|
|
2171
|
-
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
2172
|
-
const f = await _(
|
|
2173
|
-
t,
|
|
2174
|
-
s,
|
|
2175
|
-
x,
|
|
2176
|
-
r,
|
|
2177
|
-
l
|
|
2178
|
-
);
|
|
2179
|
-
f != null && f.data && D(t, f == null ? void 0 : f.data);
|
|
2180
|
-
break;
|
|
2181
|
-
}
|
|
2182
|
-
case "CLOSE_MODAL":
|
|
2183
|
-
ue(t, !1);
|
|
2184
|
-
break;
|
|
2185
|
-
case "CLOSE_DRAWER":
|
|
2186
|
-
J(t, !1);
|
|
2187
|
-
break;
|
|
2188
|
-
case "OPEN_DRAWER":
|
|
2189
|
-
J(t, !0);
|
|
2190
|
-
break;
|
|
2191
|
-
default:
|
|
2192
|
-
console.warn(`Unhandled actionType: ${i}`);
|
|
2193
|
-
break;
|
|
2194
|
-
}
|
|
2195
|
-
} catch (x) {
|
|
2196
|
-
alert(JSON.stringify(x));
|
|
2268
|
+
await r({
|
|
2269
|
+
responseKey: a,
|
|
2270
|
+
actionType: i,
|
|
2271
|
+
dataSource: l,
|
|
2272
|
+
dependencies: c
|
|
2273
|
+
});
|
|
2274
|
+
} catch (p) {
|
|
2275
|
+
console.error("[RoundButtonNotFront] Action failed:", p);
|
|
2276
|
+
} finally {
|
|
2277
|
+
y && (g.current = !1, x(!1));
|
|
2197
2278
|
}
|
|
2198
|
-
}, [i, l,
|
|
2279
|
+
}, [i, l, c, a, r]);
|
|
2199
2280
|
return /* @__PURE__ */ o.jsx(
|
|
2200
|
-
|
|
2281
|
+
Dt,
|
|
2201
2282
|
{
|
|
2202
|
-
...
|
|
2203
|
-
|
|
2204
|
-
|
|
2283
|
+
...u,
|
|
2284
|
+
loading: u.loading || f,
|
|
2285
|
+
disabled: h,
|
|
2286
|
+
onClick: () => !h && !f && (n ?? m)()
|
|
2205
2287
|
}
|
|
2206
2288
|
);
|
|
2207
|
-
},
|
|
2208
|
-
row:
|
|
2289
|
+
}, ir = "_row_1bqj4_1", lr = "_row_column_1bqj4_65", z = {
|
|
2290
|
+
row: ir,
|
|
2209
2291
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
2210
2292
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
2211
2293
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -2226,7 +2308,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
2226
2308
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
2227
2309
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
2228
2310
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
2229
|
-
row_column:
|
|
2311
|
+
row_column: lr,
|
|
2230
2312
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
2231
2313
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
2232
2314
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -2247,101 +2329,101 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
|
|
|
2247
2329
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
2248
2330
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
2249
2331
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
2250
|
-
},
|
|
2332
|
+
}, dr = (e) => {
|
|
2251
2333
|
const {
|
|
2252
2334
|
userFlow: t,
|
|
2253
2335
|
pageId: s,
|
|
2254
|
-
columnWidth:
|
|
2336
|
+
columnWidth: a,
|
|
2255
2337
|
columns: i,
|
|
2256
2338
|
gap: l = "md",
|
|
2257
2339
|
justifyContent: c = "start",
|
|
2258
2340
|
alignItems: n = "stretch"
|
|
2259
|
-
} = e, d = Array.isArray(i) ? i.map((
|
|
2341
|
+
} = e, d = Array.isArray(i) ? i.map((r, _) => {
|
|
2260
2342
|
const u = `col_${_}`, h = `col_${_}`;
|
|
2261
|
-
if (Array.isArray(
|
|
2343
|
+
if (Array.isArray(r))
|
|
2262
2344
|
return {
|
|
2263
2345
|
gap: "md",
|
|
2264
2346
|
justifyContent: "start",
|
|
2265
2347
|
alignItems: "start",
|
|
2266
|
-
items:
|
|
2348
|
+
items: r,
|
|
2267
2349
|
hash: u,
|
|
2268
2350
|
responseKey: h
|
|
2269
2351
|
};
|
|
2270
|
-
const
|
|
2352
|
+
const f = r;
|
|
2271
2353
|
return {
|
|
2272
|
-
gap: (
|
|
2273
|
-
justifyContent: (
|
|
2274
|
-
alignItems: (
|
|
2275
|
-
items: (
|
|
2276
|
-
hash: (
|
|
2277
|
-
responseKey: (
|
|
2354
|
+
gap: (f == null ? void 0 : f.gap) ?? "md",
|
|
2355
|
+
justifyContent: (f == null ? void 0 : f.justifyContent) ?? "start",
|
|
2356
|
+
alignItems: (f == null ? void 0 : f.alignItems) ?? "start",
|
|
2357
|
+
items: (f == null ? void 0 : f.items) ?? [],
|
|
2358
|
+
hash: (f == null ? void 0 : f.hash) ?? u,
|
|
2359
|
+
responseKey: (f == null ? void 0 : f.responseKey) ?? h
|
|
2278
2360
|
};
|
|
2279
2361
|
}) : [];
|
|
2280
2362
|
return d.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
2281
2363
|
"div",
|
|
2282
2364
|
{
|
|
2283
|
-
className:
|
|
2365
|
+
className: F(
|
|
2284
2366
|
z.row,
|
|
2285
2367
|
z[`row__gap-${l}`],
|
|
2286
2368
|
z[`row__justify-${c}`],
|
|
2287
2369
|
z[`row__align-${n}`]
|
|
2288
2370
|
),
|
|
2289
|
-
children: d == null ? void 0 : d.map((
|
|
2290
|
-
const u = (
|
|
2371
|
+
children: d == null ? void 0 : d.map((r, _) => {
|
|
2372
|
+
const u = (a == null ? void 0 : a[_]) || `${100 / d.length}%`, h = E(t, s, r.items);
|
|
2291
2373
|
return !h || h.length === 0 ? null : /* @__PURE__ */ o.jsx(
|
|
2292
2374
|
"div",
|
|
2293
2375
|
{
|
|
2294
|
-
className:
|
|
2376
|
+
className: F(
|
|
2295
2377
|
z.row_column,
|
|
2296
|
-
z[`row_column__gap-${
|
|
2297
|
-
z[`row_column__justify-${
|
|
2298
|
-
z[`row_column__align-${
|
|
2378
|
+
z[`row_column__gap-${r.gap}`],
|
|
2379
|
+
z[`row_column__justify-${r.justifyContent}`],
|
|
2380
|
+
z[`row_column__align-${r.alignItems}`]
|
|
2299
2381
|
),
|
|
2300
2382
|
style: { width: u },
|
|
2301
2383
|
children: h
|
|
2302
2384
|
},
|
|
2303
|
-
|
|
2385
|
+
r.hash || _
|
|
2304
2386
|
);
|
|
2305
2387
|
})
|
|
2306
2388
|
}
|
|
2307
2389
|
);
|
|
2308
2390
|
};
|
|
2309
|
-
function
|
|
2391
|
+
function dt({
|
|
2310
2392
|
userFlow: e,
|
|
2311
2393
|
pageId: t,
|
|
2312
2394
|
responseKey: s,
|
|
2313
|
-
actionType:
|
|
2395
|
+
actionType: a,
|
|
2314
2396
|
getNextUI: i,
|
|
2315
2397
|
isMulti: l = !1,
|
|
2316
2398
|
debounceMs: c
|
|
2317
2399
|
}) {
|
|
2318
|
-
const n =
|
|
2319
|
-
|
|
2400
|
+
const n = ie(null);
|
|
2401
|
+
U(() => () => {
|
|
2320
2402
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
2321
2403
|
}, []);
|
|
2322
|
-
const d =
|
|
2404
|
+
const d = D(
|
|
2323
2405
|
async (_) => {
|
|
2324
|
-
var
|
|
2406
|
+
var f;
|
|
2325
2407
|
const u = {
|
|
2326
|
-
...(
|
|
2408
|
+
...(f = N.getState()[e]) == null ? void 0 : f.entries
|
|
2327
2409
|
};
|
|
2328
|
-
if (_ ? (u[s] = _,
|
|
2410
|
+
if (_ ? (u[s] = _, q(e, u)) : (delete u[s], hn(e, s)), a && (a === "GO_TO_NEXT_UI" || a === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2329
2411
|
try {
|
|
2330
2412
|
const g = await i(
|
|
2331
2413
|
e,
|
|
2332
2414
|
t,
|
|
2333
2415
|
u,
|
|
2334
2416
|
s,
|
|
2335
|
-
|
|
2417
|
+
a === "GO_TO_NEXT_UI"
|
|
2336
2418
|
);
|
|
2337
|
-
g != null && g.data &&
|
|
2338
|
-
} catch (
|
|
2339
|
-
console.error("[useSelectChange] Failed to fetch next UI",
|
|
2419
|
+
g != null && g.data && L(e, g.data);
|
|
2420
|
+
} catch (x) {
|
|
2421
|
+
console.error("[useSelectChange] Failed to fetch next UI", x);
|
|
2340
2422
|
}
|
|
2341
2423
|
},
|
|
2342
|
-
[e, t, s,
|
|
2424
|
+
[e, t, s, a, i]
|
|
2343
2425
|
);
|
|
2344
|
-
return
|
|
2426
|
+
return D(
|
|
2345
2427
|
(_) => {
|
|
2346
2428
|
if (!l) {
|
|
2347
2429
|
d(_);
|
|
@@ -2358,29 +2440,29 @@ function it({
|
|
|
2358
2440
|
[l, c, d]
|
|
2359
2441
|
);
|
|
2360
2442
|
}
|
|
2361
|
-
const
|
|
2443
|
+
const _r = /\{([^}]+)\}/g, ur = (e, t) => {
|
|
2362
2444
|
var s;
|
|
2363
|
-
return t.includes("{") ? t.replace(
|
|
2445
|
+
return t.includes("{") ? t.replace(_r, (a, i) => {
|
|
2364
2446
|
var c;
|
|
2365
|
-
const l = (c =
|
|
2447
|
+
const l = (c = K.query(e, i.trim())) == null ? void 0 : c[0];
|
|
2366
2448
|
return l != null ? String(l) : "";
|
|
2367
|
-
}) : (s =
|
|
2368
|
-
},
|
|
2369
|
-
const i =
|
|
2449
|
+
}) : (s = K.query(e, t)) == null ? void 0 : s[0];
|
|
2450
|
+
}, hr = (e, t, s, a) => {
|
|
2451
|
+
const i = K.query(e, t);
|
|
2370
2452
|
return (i == null ? void 0 : i.map((l) => {
|
|
2371
2453
|
var d;
|
|
2372
|
-
const c =
|
|
2454
|
+
const c = ur(l, s), n = a ? (d = K.query(l, a)) == null ? void 0 : d[0] : l;
|
|
2373
2455
|
return { label: c, value: n };
|
|
2374
2456
|
})) ?? [];
|
|
2375
|
-
},
|
|
2457
|
+
}, fr = (e, t, s, a = 10) => {
|
|
2376
2458
|
var n, d;
|
|
2377
2459
|
let i, l;
|
|
2378
2460
|
if (s) {
|
|
2379
|
-
const
|
|
2380
|
-
i =
|
|
2461
|
+
const r = K.value(e, s.size ?? "$.meta.size") ?? a, _ = K.value(e, s.total ?? "$.meta.total") ?? 0;
|
|
2462
|
+
i = r, l = _;
|
|
2381
2463
|
} else {
|
|
2382
|
-
const
|
|
2383
|
-
i = (
|
|
2464
|
+
const r = e == null ? void 0 : e.meta;
|
|
2465
|
+
i = (r == null ? void 0 : r.size) ?? ((n = r == null ? void 0 : r.page) == null ? void 0 : n.size) ?? a, l = (r == null ? void 0 : r.total) ?? ((d = r == null ? void 0 : r.page) == null ? void 0 : d.total) ?? 0;
|
|
2384
2466
|
}
|
|
2385
2467
|
const c = l > 0 ? Math.ceil(l / i) > t : !1;
|
|
2386
2468
|
return {
|
|
@@ -2388,472 +2470,472 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
|
|
|
2388
2470
|
total: l,
|
|
2389
2471
|
hasMore: c
|
|
2390
2472
|
};
|
|
2391
|
-
},
|
|
2392
|
-
selectNotFront:
|
|
2393
|
-
},
|
|
2473
|
+
}, yr = "_selectNotFront_ch3v5_1", _t = {
|
|
2474
|
+
selectNotFront: yr
|
|
2475
|
+
}, xr = ({
|
|
2394
2476
|
userFlow: e,
|
|
2395
2477
|
pageId: t,
|
|
2396
2478
|
responseKey: s,
|
|
2397
|
-
required:
|
|
2479
|
+
required: a,
|
|
2398
2480
|
dataSource: i,
|
|
2399
2481
|
actionType: l,
|
|
2400
2482
|
dependencies: c,
|
|
2401
2483
|
debounceMs: n,
|
|
2402
2484
|
...d
|
|
2403
2485
|
}) => {
|
|
2404
|
-
const
|
|
2486
|
+
const r = {
|
|
2405
2487
|
...d
|
|
2406
|
-
}, { getNextUI: _, fetchDataSource: u } =
|
|
2488
|
+
}, { getNextUI: _, fetchDataSource: u } = G(), [h, f] = $((r == null ? void 0 : r.value) ?? ""), { disabled: x } = I(
|
|
2407
2489
|
e,
|
|
2408
2490
|
c
|
|
2409
|
-
), g = (
|
|
2410
|
-
const j =
|
|
2491
|
+
), g = (r == null ? void 0 : r.disabled) ?? x, m = T(() => a && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, a]), y = T(() => {
|
|
2492
|
+
const j = r != null && r.isMulti ? h : [h], w = {};
|
|
2411
2493
|
return Array.isArray(j) && j.forEach((v) => {
|
|
2412
2494
|
if (!v) return;
|
|
2413
|
-
const
|
|
2414
|
-
w[
|
|
2495
|
+
const A = JSON.stringify(v.value), O = JSON.stringify(v.label);
|
|
2496
|
+
w[A] = v, O in w || (w[O] = v);
|
|
2415
2497
|
}), w;
|
|
2416
|
-
}, [h]),
|
|
2498
|
+
}, [h]), p = dt({
|
|
2417
2499
|
userFlow: e,
|
|
2418
2500
|
pageId: t,
|
|
2419
2501
|
responseKey: s,
|
|
2420
2502
|
actionType: l,
|
|
2421
2503
|
getNextUI: _,
|
|
2422
|
-
isMulti:
|
|
2504
|
+
isMulti: r == null ? void 0 : r.isMulti,
|
|
2423
2505
|
debounceMs: n
|
|
2424
|
-
}),
|
|
2425
|
-
|
|
2506
|
+
}), b = (j) => {
|
|
2507
|
+
f(j), p(j);
|
|
2426
2508
|
}, C = async (j, w, { page: v }) => {
|
|
2427
2509
|
const {
|
|
2428
|
-
jsonPathLabel:
|
|
2429
|
-
jsonPathOptions:
|
|
2430
|
-
jsonPathValue:
|
|
2431
|
-
jsonPathPagination:
|
|
2432
|
-
} = i,
|
|
2510
|
+
jsonPathLabel: A,
|
|
2511
|
+
jsonPathOptions: O,
|
|
2512
|
+
jsonPathValue: R,
|
|
2513
|
+
jsonPathPagination: J
|
|
2514
|
+
} = i, V = $e(
|
|
2433
2515
|
i,
|
|
2434
2516
|
v,
|
|
2435
2517
|
j
|
|
2436
2518
|
), S = await u(
|
|
2437
|
-
|
|
2519
|
+
V,
|
|
2438
2520
|
e,
|
|
2439
2521
|
!1
|
|
2440
|
-
), B = S == null ? void 0 : S.data,
|
|
2522
|
+
), B = S == null ? void 0 : S.data, ne = B ? hr(
|
|
2441
2523
|
B,
|
|
2442
|
-
A,
|
|
2443
2524
|
O,
|
|
2444
|
-
|
|
2445
|
-
|
|
2525
|
+
A,
|
|
2526
|
+
R
|
|
2527
|
+
) : [], { hasMore: pe } = fr(
|
|
2446
2528
|
B,
|
|
2447
2529
|
v,
|
|
2448
|
-
|
|
2530
|
+
J
|
|
2449
2531
|
);
|
|
2450
2532
|
return {
|
|
2451
|
-
options:
|
|
2452
|
-
hasMore:
|
|
2533
|
+
options: ne,
|
|
2534
|
+
hasMore: pe,
|
|
2453
2535
|
additional: {
|
|
2454
2536
|
page: v + 1
|
|
2455
2537
|
}
|
|
2456
2538
|
};
|
|
2457
2539
|
};
|
|
2458
2540
|
return /* @__PURE__ */ o.jsx(
|
|
2459
|
-
|
|
2541
|
+
Lt,
|
|
2460
2542
|
{
|
|
2461
|
-
...
|
|
2462
|
-
className:
|
|
2463
|
-
label:
|
|
2543
|
+
...r,
|
|
2544
|
+
className: _t.selectNotFront,
|
|
2545
|
+
label: m,
|
|
2464
2546
|
value: h,
|
|
2465
2547
|
disabled: g,
|
|
2466
2548
|
noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
|
|
2467
|
-
onChange: (j) => !g &&
|
|
2549
|
+
onChange: (j) => !g && b(j),
|
|
2468
2550
|
loadOptions: C,
|
|
2469
2551
|
additional: { page: 1 },
|
|
2470
2552
|
isOptionDisabled: (j) => {
|
|
2471
2553
|
const w = JSON.stringify(j == null ? void 0 : j.value), v = JSON.stringify(j == null ? void 0 : j.label);
|
|
2472
|
-
return !!(
|
|
2554
|
+
return !!(y != null && y[w]) || !!(y != null && y[v]);
|
|
2473
2555
|
},
|
|
2474
2556
|
debounceTimeout: 350
|
|
2475
2557
|
}
|
|
2476
2558
|
);
|
|
2477
|
-
},
|
|
2559
|
+
}, mr = ({
|
|
2478
2560
|
userFlow: e,
|
|
2479
2561
|
pageId: t,
|
|
2480
2562
|
responseKey: s,
|
|
2481
|
-
dataSource:
|
|
2563
|
+
dataSource: a,
|
|
2482
2564
|
required: i,
|
|
2483
2565
|
actionType: l,
|
|
2484
2566
|
dependencies: c,
|
|
2485
2567
|
debounceMs: n,
|
|
2486
2568
|
...d
|
|
2487
2569
|
}) => {
|
|
2488
|
-
const
|
|
2570
|
+
const r = {
|
|
2489
2571
|
...d
|
|
2490
|
-
}, { getNextUI: _ } =
|
|
2572
|
+
}, { getNextUI: _ } = G(), [u, h] = $(r.value || ""), { disabled: f } = I(
|
|
2491
2573
|
e,
|
|
2492
2574
|
c
|
|
2493
|
-
),
|
|
2575
|
+
), x = (r == null ? void 0 : r.disabled) ?? f, g = T(() => i && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, i]), m = dt({
|
|
2494
2576
|
userFlow: e,
|
|
2495
2577
|
pageId: t,
|
|
2496
2578
|
responseKey: s,
|
|
2497
2579
|
actionType: l,
|
|
2498
2580
|
getNextUI: _,
|
|
2499
|
-
isMulti:
|
|
2581
|
+
isMulti: r == null ? void 0 : r.isMulti,
|
|
2500
2582
|
debounceMs: n
|
|
2501
|
-
}),
|
|
2502
|
-
h(
|
|
2583
|
+
}), y = (p) => {
|
|
2584
|
+
h(p), m(p);
|
|
2503
2585
|
};
|
|
2504
2586
|
return /* @__PURE__ */ o.jsx(
|
|
2505
|
-
|
|
2587
|
+
It,
|
|
2506
2588
|
{
|
|
2507
|
-
...
|
|
2508
|
-
className:
|
|
2589
|
+
...r,
|
|
2590
|
+
className: _t.selectNotFront,
|
|
2509
2591
|
label: g,
|
|
2510
2592
|
value: u,
|
|
2511
|
-
disabled:
|
|
2512
|
-
onChange: (
|
|
2593
|
+
disabled: x,
|
|
2594
|
+
onChange: (p) => !x && y(p)
|
|
2513
2595
|
}
|
|
2514
2596
|
);
|
|
2515
|
-
},
|
|
2597
|
+
}, gr = (e) => {
|
|
2516
2598
|
const { dataSource: t } = e;
|
|
2517
|
-
return t ? /* @__PURE__ */ o.jsx(
|
|
2518
|
-
},
|
|
2519
|
-
spacing:
|
|
2520
|
-
spacing__xxs:
|
|
2521
|
-
spacing__xs:
|
|
2522
|
-
spacing__sm:
|
|
2523
|
-
spacing__md:
|
|
2524
|
-
spacing__lg:
|
|
2525
|
-
spacing__xl:
|
|
2526
|
-
spacing__xxl:
|
|
2527
|
-
spacing__xxxl:
|
|
2528
|
-
},
|
|
2529
|
-
const { size: t } = e, s =
|
|
2599
|
+
return t ? /* @__PURE__ */ o.jsx(xr, { ...e }) : /* @__PURE__ */ o.jsx(mr, { ...e });
|
|
2600
|
+
}, pr = "_spacing_19hqa_1", br = "_spacing__xxs_19hqa_1", jr = "_spacing__xs_19hqa_4", Cr = "_spacing__sm_19hqa_7", wr = "_spacing__md_19hqa_10", Nr = "_spacing__lg_19hqa_13", vr = "_spacing__xl_19hqa_16", Er = "_spacing__xxl_19hqa_19", Sr = "_spacing__xxxl_19hqa_22", Qe = {
|
|
2601
|
+
spacing: pr,
|
|
2602
|
+
spacing__xxs: br,
|
|
2603
|
+
spacing__xs: jr,
|
|
2604
|
+
spacing__sm: Cr,
|
|
2605
|
+
spacing__md: wr,
|
|
2606
|
+
spacing__lg: Nr,
|
|
2607
|
+
spacing__xl: vr,
|
|
2608
|
+
spacing__xxl: Er,
|
|
2609
|
+
spacing__xxxl: Sr
|
|
2610
|
+
}, Tr = (e) => {
|
|
2611
|
+
const { size: t } = e, s = F(Qe.spacing, Qe[`spacing__${t}`]);
|
|
2530
2612
|
return /* @__PURE__ */ o.jsx("div", { className: s });
|
|
2531
|
-
},
|
|
2613
|
+
}, kr = (e) => {
|
|
2532
2614
|
const {
|
|
2533
2615
|
userFlow: t,
|
|
2534
2616
|
pageId: s,
|
|
2535
|
-
responseKey:
|
|
2617
|
+
responseKey: a,
|
|
2536
2618
|
actionType: i,
|
|
2537
2619
|
label: l,
|
|
2538
2620
|
value: c,
|
|
2539
2621
|
required: n,
|
|
2540
2622
|
dependencies: d,
|
|
2541
|
-
...
|
|
2623
|
+
...r
|
|
2542
2624
|
} = e, _ = {
|
|
2543
|
-
...
|
|
2544
|
-
}, { getNextUI: u } =
|
|
2625
|
+
...r
|
|
2626
|
+
}, { getNextUI: u } = G(), [h, f] = $(c || !1), { disabled: x } = I(
|
|
2545
2627
|
t,
|
|
2546
2628
|
d
|
|
2547
|
-
), g = (_ == null ? void 0 : _.disabled) ??
|
|
2548
|
-
var
|
|
2629
|
+
), g = (_ == null ? void 0 : _.disabled) ?? x, m = T(() => n && l ? `${l} *` : l ?? "", [l, n]), y = D(async () => {
|
|
2630
|
+
var p;
|
|
2549
2631
|
try {
|
|
2550
|
-
const
|
|
2551
|
-
|
|
2632
|
+
const b = !h;
|
|
2633
|
+
f(b);
|
|
2552
2634
|
const C = {
|
|
2553
|
-
...(
|
|
2554
|
-
[
|
|
2635
|
+
...(p = N.getState()[t]) == null ? void 0 : p.entries,
|
|
2636
|
+
[a]: b
|
|
2555
2637
|
};
|
|
2556
|
-
switch (
|
|
2638
|
+
switch (q(t, C), i) {
|
|
2557
2639
|
case "GO_TO_NEXT_UI":
|
|
2558
2640
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2559
2641
|
const w = await u(
|
|
2560
2642
|
t,
|
|
2561
2643
|
s,
|
|
2562
2644
|
C,
|
|
2563
|
-
|
|
2645
|
+
a,
|
|
2564
2646
|
i === "GO_TO_NEXT_UI"
|
|
2565
2647
|
);
|
|
2566
|
-
w != null && w.data &&
|
|
2648
|
+
w != null && w.data && L(t, w == null ? void 0 : w.data);
|
|
2567
2649
|
break;
|
|
2568
2650
|
}
|
|
2569
2651
|
default:
|
|
2570
2652
|
break;
|
|
2571
2653
|
}
|
|
2572
|
-
} catch (
|
|
2573
|
-
console.error("Error in switch action:",
|
|
2654
|
+
} catch (b) {
|
|
2655
|
+
console.error("Error in switch action:", b), alert(JSON.stringify(b));
|
|
2574
2656
|
}
|
|
2575
|
-
}, [t, s,
|
|
2657
|
+
}, [t, s, a, i, h]);
|
|
2576
2658
|
return /* @__PURE__ */ o.jsx(
|
|
2577
|
-
|
|
2659
|
+
Bt,
|
|
2578
2660
|
{
|
|
2579
2661
|
..._,
|
|
2580
|
-
label:
|
|
2662
|
+
label: m,
|
|
2581
2663
|
checked: h,
|
|
2582
2664
|
disabled: g,
|
|
2583
|
-
onChange: () => !g &&
|
|
2665
|
+
onChange: () => !g && y()
|
|
2584
2666
|
}
|
|
2585
2667
|
);
|
|
2586
|
-
},
|
|
2587
|
-
tableSkeleton:
|
|
2588
|
-
tableArrayPills:
|
|
2589
|
-
},
|
|
2590
|
-
const s = e == null ? void 0 : e.slice(0, 4),
|
|
2591
|
-
return /* @__PURE__ */ o.jsxs("div", { className:
|
|
2592
|
-
s.map((i, l) => /* @__PURE__ */ o.jsx(
|
|
2593
|
-
|
|
2668
|
+
}, Ar = "_tableSkeleton_3nr9n_1", Or = "_tableArrayPills_3nr9n_7", ut = {
|
|
2669
|
+
tableSkeleton: Ar,
|
|
2670
|
+
tableArrayPills: Or
|
|
2671
|
+
}, $r = ({ values: e }) => {
|
|
2672
|
+
const s = e == null ? void 0 : e.slice(0, 4), a = (e == null ? void 0 : e.length) - 4;
|
|
2673
|
+
return /* @__PURE__ */ o.jsxs("div", { className: ut.tableArrayPills, children: [
|
|
2674
|
+
s.map((i, l) => /* @__PURE__ */ o.jsx(Ee, { children: String(i) }, l)),
|
|
2675
|
+
a > 0 && /* @__PURE__ */ o.jsxs(Ee, { outlined: !0, children: [
|
|
2594
2676
|
"+",
|
|
2595
|
-
|
|
2677
|
+
a
|
|
2596
2678
|
] })
|
|
2597
2679
|
] });
|
|
2598
|
-
},
|
|
2680
|
+
}, Rr = ({
|
|
2599
2681
|
userFlow: e,
|
|
2600
2682
|
pageId: t,
|
|
2601
2683
|
tableResponseKey: s,
|
|
2602
|
-
component:
|
|
2684
|
+
component: a,
|
|
2603
2685
|
rowData: i
|
|
2604
2686
|
}) => {
|
|
2605
|
-
const { getNextUI: l, fetchAndGetNextUI: c, fetchDataSource: n } =
|
|
2606
|
-
{ ...
|
|
2607
|
-
]),
|
|
2608
|
-
if (!
|
|
2687
|
+
const { getNextUI: l, fetchAndGetNextUI: c, fetchDataSource: n } = G(), d = E(e, t, [
|
|
2688
|
+
{ ...a }
|
|
2689
|
+
]), r = (d == null ? void 0 : d[0]) || null;
|
|
2690
|
+
if (!r) return null;
|
|
2609
2691
|
const {
|
|
2610
2692
|
actionType: _,
|
|
2611
2693
|
responseKey: u,
|
|
2612
2694
|
dataSource: h
|
|
2613
|
-
} =
|
|
2614
|
-
var
|
|
2695
|
+
} = r.props, f = D(async () => {
|
|
2696
|
+
var x, g, m;
|
|
2615
2697
|
try {
|
|
2616
|
-
const
|
|
2617
|
-
...(
|
|
2698
|
+
const y = {
|
|
2699
|
+
...(x = N.getState()[e]) == null ? void 0 : x.entries,
|
|
2618
2700
|
[u]: { status: 200 },
|
|
2619
2701
|
[s]: [{ ...i }]
|
|
2620
2702
|
};
|
|
2621
|
-
switch (
|
|
2703
|
+
switch (q(e, y), _) {
|
|
2622
2704
|
case "GO_TO_NEXT_UI": {
|
|
2623
|
-
const
|
|
2705
|
+
const p = await l(
|
|
2624
2706
|
e,
|
|
2625
2707
|
t,
|
|
2626
|
-
|
|
2708
|
+
y,
|
|
2627
2709
|
u
|
|
2628
2710
|
);
|
|
2629
|
-
|
|
2711
|
+
p != null && p.data && L(e, p == null ? void 0 : p.data);
|
|
2630
2712
|
break;
|
|
2631
2713
|
}
|
|
2632
2714
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
2633
|
-
const
|
|
2715
|
+
const p = await c(
|
|
2634
2716
|
e,
|
|
2635
2717
|
t,
|
|
2636
|
-
|
|
2718
|
+
y,
|
|
2637
2719
|
u,
|
|
2638
2720
|
h
|
|
2639
2721
|
);
|
|
2640
|
-
|
|
2722
|
+
p != null && p.data && L(e, p == null ? void 0 : p.data);
|
|
2641
2723
|
break;
|
|
2642
2724
|
}
|
|
2643
2725
|
case "GET_DATA_SOURCE": {
|
|
2644
|
-
const
|
|
2726
|
+
const p = await l(
|
|
2645
2727
|
e,
|
|
2646
2728
|
t,
|
|
2647
|
-
|
|
2729
|
+
y,
|
|
2648
2730
|
u
|
|
2649
|
-
),
|
|
2650
|
-
if ((
|
|
2651
|
-
const C =
|
|
2731
|
+
), b = (g = p == null ? void 0 : p.data) == null ? void 0 : g.content;
|
|
2732
|
+
if ((b == null ? void 0 : b.type) !== "fetch") break;
|
|
2733
|
+
const C = b == null ? void 0 : b.dataSource, j = await n(
|
|
2652
2734
|
C,
|
|
2653
2735
|
e,
|
|
2654
2736
|
// Avoid to handle loading state until all the requests are done
|
|
2655
2737
|
!1
|
|
2656
2738
|
), w = {
|
|
2657
|
-
...(
|
|
2739
|
+
...(m = N.getState()[e]) == null ? void 0 : m.entries,
|
|
2658
2740
|
[u]: {
|
|
2659
2741
|
status: j == null ? void 0 : j.status,
|
|
2660
2742
|
content: j == null ? void 0 : j.data
|
|
2661
2743
|
}
|
|
2662
2744
|
};
|
|
2663
|
-
|
|
2745
|
+
q(e, w);
|
|
2664
2746
|
const v = await l(
|
|
2665
2747
|
e,
|
|
2666
2748
|
t,
|
|
2667
2749
|
w,
|
|
2668
2750
|
u
|
|
2669
2751
|
);
|
|
2670
|
-
v != null && v.data &&
|
|
2752
|
+
v != null && v.data && L(e, v == null ? void 0 : v.data);
|
|
2671
2753
|
break;
|
|
2672
2754
|
}
|
|
2673
2755
|
default:
|
|
2674
2756
|
console.warn(`Unhandled actionType: ${_}`);
|
|
2675
2757
|
break;
|
|
2676
2758
|
}
|
|
2677
|
-
} catch (
|
|
2678
|
-
alert(JSON.stringify(
|
|
2759
|
+
} catch (y) {
|
|
2760
|
+
alert(JSON.stringify(y));
|
|
2679
2761
|
}
|
|
2680
2762
|
}, [_, h, t, u, e]);
|
|
2681
|
-
return
|
|
2682
|
-
onClick:
|
|
2763
|
+
return xt(r, {
|
|
2764
|
+
onClick: f
|
|
2683
2765
|
});
|
|
2684
|
-
},
|
|
2685
|
-
|
|
2766
|
+
}, qr = () => /* @__PURE__ */ o.jsx("div", { className: ut.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
|
|
2767
|
+
et,
|
|
2686
2768
|
{
|
|
2687
2769
|
maxWidth: "100%",
|
|
2688
2770
|
height: 42,
|
|
2689
2771
|
radius: 8
|
|
2690
2772
|
},
|
|
2691
2773
|
`tableSkeletonBase${t}`
|
|
2692
|
-
)) }),
|
|
2774
|
+
)) }), Dr = (e, t) => !(t != null && t.length) || !e ? e : e.map((s) => t.some(
|
|
2693
2775
|
(i) => Array.isArray(s != null && s.accessor ? i[s == null ? void 0 : s.accessor] : void 0)
|
|
2694
2776
|
) ? {
|
|
2695
2777
|
...s,
|
|
2696
2778
|
renderCell: (i) => {
|
|
2697
2779
|
const l = s.accessor ? i[s.accessor] : void 0;
|
|
2698
|
-
return Array.isArray(l) ? /* @__PURE__ */ o.jsx(
|
|
2780
|
+
return Array.isArray(l) ? /* @__PURE__ */ o.jsx($r, { values: l }) : l ?? "";
|
|
2699
2781
|
}
|
|
2700
|
-
} : s),
|
|
2782
|
+
} : s), Lr = ({
|
|
2701
2783
|
userFlow: e,
|
|
2702
2784
|
pageId: t,
|
|
2703
2785
|
responseKey: s,
|
|
2704
|
-
component:
|
|
2786
|
+
component: a,
|
|
2705
2787
|
dataSource: i,
|
|
2706
2788
|
rightActions: l,
|
|
2707
2789
|
data: c,
|
|
2708
2790
|
pageSize: n,
|
|
2709
2791
|
...d
|
|
2710
2792
|
}) => {
|
|
2711
|
-
var
|
|
2712
|
-
const { fetchDataSource:
|
|
2793
|
+
var R, J, V;
|
|
2794
|
+
const { fetchDataSource: r } = G(), [_, u] = $(!1), [h, f] = $(1), [x, g] = $(null), m = !i && Array.isArray(c), y = ie(
|
|
2713
2795
|
/* @__PURE__ */ new Map([[1, null]])
|
|
2714
|
-
),
|
|
2796
|
+
), p = T(() => {
|
|
2715
2797
|
if (l != null && l.length)
|
|
2716
2798
|
return l.map((S, B) => ({
|
|
2717
|
-
renderContent: (
|
|
2718
|
-
|
|
2799
|
+
renderContent: (ne) => /* @__PURE__ */ o.jsx(
|
|
2800
|
+
Rr,
|
|
2719
2801
|
{
|
|
2720
2802
|
userFlow: e,
|
|
2721
2803
|
pageId: t,
|
|
2722
2804
|
tableResponseKey: s,
|
|
2723
2805
|
component: S,
|
|
2724
|
-
rowData:
|
|
2806
|
+
rowData: ne
|
|
2725
2807
|
},
|
|
2726
2808
|
`tableRowAction${B}`
|
|
2727
2809
|
)
|
|
2728
2810
|
}));
|
|
2729
|
-
}, [l, e, t, s]),
|
|
2811
|
+
}, [l, e, t, s]), b = async (S = 1) => {
|
|
2730
2812
|
if (!i)
|
|
2731
2813
|
return;
|
|
2732
2814
|
const {
|
|
2733
2815
|
mapperData: B,
|
|
2734
|
-
jsonPathData:
|
|
2735
|
-
jsonPathPagination:
|
|
2736
|
-
jsonPathCursorPagination:
|
|
2816
|
+
jsonPathData: ne,
|
|
2817
|
+
jsonPathPagination: pe,
|
|
2818
|
+
jsonPathCursorPagination: se
|
|
2737
2819
|
} = i;
|
|
2738
|
-
if (
|
|
2739
|
-
|
|
2820
|
+
if (se && S !== 1 && !y.current.has(S)) {
|
|
2821
|
+
f(1), b(1);
|
|
2740
2822
|
return;
|
|
2741
2823
|
}
|
|
2742
|
-
|
|
2824
|
+
se && S === 1 && (y.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
2743
2825
|
try {
|
|
2744
2826
|
u(!0);
|
|
2745
|
-
const
|
|
2827
|
+
const be = se ? y.current.get(S) ?? null : null, ht = $e(
|
|
2746
2828
|
i,
|
|
2747
2829
|
S,
|
|
2748
2830
|
void 0,
|
|
2749
|
-
|
|
2750
|
-
),
|
|
2751
|
-
|
|
2831
|
+
be
|
|
2832
|
+
), W = await r(
|
|
2833
|
+
ht,
|
|
2752
2834
|
e,
|
|
2753
2835
|
!1
|
|
2754
2836
|
);
|
|
2755
2837
|
if (g(
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2838
|
+
it(
|
|
2839
|
+
W == null ? void 0 : W.data,
|
|
2840
|
+
ne,
|
|
2759
2841
|
B,
|
|
2760
|
-
|
|
2842
|
+
pe
|
|
2761
2843
|
)
|
|
2762
|
-
),
|
|
2763
|
-
const
|
|
2764
|
-
|
|
2765
|
-
|
|
2844
|
+
), se) {
|
|
2845
|
+
const Re = ls(
|
|
2846
|
+
W == null ? void 0 : W.data,
|
|
2847
|
+
se
|
|
2766
2848
|
);
|
|
2767
|
-
|
|
2849
|
+
Re && y.current.set(S + 1, Re);
|
|
2768
2850
|
}
|
|
2769
2851
|
u(!1);
|
|
2770
|
-
} catch (
|
|
2771
|
-
console.error("[TableNotFront] fetchData:",
|
|
2852
|
+
} catch (be) {
|
|
2853
|
+
console.error("[TableNotFront] fetchData:", be), u(!1);
|
|
2772
2854
|
}
|
|
2773
2855
|
}, C = (S) => {
|
|
2774
|
-
|
|
2856
|
+
f(S), b(S);
|
|
2775
2857
|
};
|
|
2776
|
-
|
|
2777
|
-
|
|
2858
|
+
U(() => {
|
|
2859
|
+
m || b();
|
|
2778
2860
|
}, []);
|
|
2779
|
-
const j =
|
|
2861
|
+
const j = m ? c : x == null ? void 0 : x.items, w = m && !!n && ((c == null ? void 0 : c.length) ?? 0) > n, v = T(() => {
|
|
2780
2862
|
if (!w || !c || !n)
|
|
2781
2863
|
return j ?? [];
|
|
2782
2864
|
const S = (h - 1) * n;
|
|
2783
2865
|
return c.slice(S, S + n);
|
|
2784
|
-
}, [w, c, n, h, j]),
|
|
2785
|
-
() =>
|
|
2866
|
+
}, [w, c, n, h, j]), A = T(
|
|
2867
|
+
() => Dr(
|
|
2786
2868
|
d.columns,
|
|
2787
2869
|
j
|
|
2788
2870
|
),
|
|
2789
2871
|
[j, d.columns]
|
|
2790
|
-
),
|
|
2872
|
+
), O = {
|
|
2791
2873
|
...d,
|
|
2792
2874
|
data: v,
|
|
2793
|
-
columns:
|
|
2794
|
-
rightActions:
|
|
2875
|
+
columns: A ?? [],
|
|
2876
|
+
rightActions: p
|
|
2795
2877
|
};
|
|
2796
|
-
return
|
|
2797
|
-
/* @__PURE__ */ o.jsx(
|
|
2878
|
+
return m ? !j || j.length === 0 ? /* @__PURE__ */ o.jsx(xe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2879
|
+
/* @__PURE__ */ o.jsx(qe, { ...O }),
|
|
2798
2880
|
w && n && c && /* @__PURE__ */ o.jsx(
|
|
2799
|
-
|
|
2881
|
+
De,
|
|
2800
2882
|
{
|
|
2801
2883
|
classname: { global: "row__end" },
|
|
2802
2884
|
page: h,
|
|
2803
2885
|
size: n,
|
|
2804
2886
|
total: c.length,
|
|
2805
|
-
onChange:
|
|
2887
|
+
onChange: f
|
|
2806
2888
|
}
|
|
2807
2889
|
)
|
|
2808
|
-
] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(
|
|
2809
|
-
/* @__PURE__ */ o.jsx(
|
|
2810
|
-
(
|
|
2811
|
-
|
|
2890
|
+
] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(qr, {}) : x && ((R = x == null ? void 0 : x.items) == null ? void 0 : R.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
2891
|
+
/* @__PURE__ */ o.jsx(qe, { ...O }),
|
|
2892
|
+
(x == null ? void 0 : x.pagination) && ((J = x == null ? void 0 : x.pagination) == null ? void 0 : J.totalPages) > 1 && /* @__PURE__ */ o.jsx(
|
|
2893
|
+
De,
|
|
2812
2894
|
{
|
|
2813
2895
|
classname: { global: "row__end" },
|
|
2814
2896
|
page: h,
|
|
2815
|
-
size:
|
|
2816
|
-
total: (
|
|
2897
|
+
size: x == null ? void 0 : x.pagination.size,
|
|
2898
|
+
total: (V = x == null ? void 0 : x.pagination) == null ? void 0 : V.total,
|
|
2817
2899
|
onChange: C
|
|
2818
2900
|
}
|
|
2819
2901
|
)
|
|
2820
|
-
] }) : /* @__PURE__ */ o.jsx(
|
|
2821
|
-
},
|
|
2822
|
-
tabsPanel:
|
|
2823
|
-
},
|
|
2824
|
-
const
|
|
2825
|
-
return
|
|
2826
|
-
},
|
|
2902
|
+
] }) : /* @__PURE__ */ o.jsx(xe, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
2903
|
+
}, Ir = "_tabsPanel_kvslb_1", Br = {
|
|
2904
|
+
tabsPanel: Ir
|
|
2905
|
+
}, Kr = ({ userFlow: e, pageId: t, components: s }) => {
|
|
2906
|
+
const a = E(e, t, s);
|
|
2907
|
+
return a != null && a.length ? /* @__PURE__ */ o.jsx("section", { className: Br.tabsPanel, children: a.map((i, l) => /* @__PURE__ */ o.jsx(k, { children: i }, `tabs-panel-${l}`)) }) : null;
|
|
2908
|
+
}, Hr = ({
|
|
2827
2909
|
userFlow: e,
|
|
2828
2910
|
pageId: t,
|
|
2829
2911
|
hash: s,
|
|
2830
|
-
items:
|
|
2912
|
+
items: a,
|
|
2831
2913
|
activeIndex: i,
|
|
2832
2914
|
className: l,
|
|
2833
2915
|
responseKey: c
|
|
2834
2916
|
}) => {
|
|
2835
|
-
const n =
|
|
2836
|
-
label:
|
|
2837
|
-
disabled:
|
|
2917
|
+
const n = a.map((r, _) => ({
|
|
2918
|
+
label: r.label,
|
|
2919
|
+
disabled: r.disabled,
|
|
2838
2920
|
children: /* @__PURE__ */ o.jsx(
|
|
2839
|
-
|
|
2921
|
+
Kr,
|
|
2840
2922
|
{
|
|
2841
2923
|
userFlow: e,
|
|
2842
2924
|
pageId: t,
|
|
2843
|
-
components:
|
|
2925
|
+
components: r.components
|
|
2844
2926
|
},
|
|
2845
2927
|
`${s}-tab-${_}`
|
|
2846
2928
|
)
|
|
2847
|
-
})), d = (
|
|
2929
|
+
})), d = (r) => {
|
|
2848
2930
|
var u;
|
|
2849
2931
|
const _ = {
|
|
2850
2932
|
...(u = N.getState()[e]) == null ? void 0 : u.entries,
|
|
2851
|
-
[c]:
|
|
2933
|
+
[c]: r
|
|
2852
2934
|
};
|
|
2853
|
-
|
|
2935
|
+
q(e, _);
|
|
2854
2936
|
};
|
|
2855
2937
|
return /* @__PURE__ */ o.jsx(
|
|
2856
|
-
|
|
2938
|
+
Kt,
|
|
2857
2939
|
{
|
|
2858
2940
|
className: l,
|
|
2859
2941
|
activeIndex: i,
|
|
@@ -2861,89 +2943,89 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
|
|
|
2861
2943
|
onClick: d
|
|
2862
2944
|
}
|
|
2863
2945
|
);
|
|
2864
|
-
},
|
|
2946
|
+
}, Gr = (e) => {
|
|
2865
2947
|
const {
|
|
2866
2948
|
userFlow: t,
|
|
2867
2949
|
pageId: s,
|
|
2868
|
-
component:
|
|
2950
|
+
component: a,
|
|
2869
2951
|
hash: i,
|
|
2870
2952
|
responseKey: l,
|
|
2871
2953
|
required: c,
|
|
2872
2954
|
dependencies: n,
|
|
2873
2955
|
...d
|
|
2874
|
-
} = e,
|
|
2956
|
+
} = e, r = {
|
|
2875
2957
|
...d
|
|
2876
|
-
}, [_, u] =
|
|
2958
|
+
}, [_, u] = $((r == null ? void 0 : r.value) ?? ""), { disabled: h } = I(
|
|
2877
2959
|
t,
|
|
2878
2960
|
n
|
|
2879
|
-
),
|
|
2880
|
-
var
|
|
2881
|
-
const
|
|
2882
|
-
u(
|
|
2961
|
+
), f = (r == null ? void 0 : r.disabled) ?? h, x = T(() => c && (r != null && r.label) ? `${r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), g = (m) => {
|
|
2962
|
+
var p;
|
|
2963
|
+
const y = (p = m == null ? void 0 : m.target) == null ? void 0 : p.value;
|
|
2964
|
+
u(y), q(t, { [l]: y });
|
|
2883
2965
|
};
|
|
2884
|
-
return
|
|
2885
|
-
u((
|
|
2886
|
-
}, [
|
|
2887
|
-
|
|
2966
|
+
return U(() => {
|
|
2967
|
+
u((r == null ? void 0 : r.value) ?? "");
|
|
2968
|
+
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2969
|
+
Ht,
|
|
2888
2970
|
{
|
|
2889
|
-
...
|
|
2890
|
-
label:
|
|
2971
|
+
...r,
|
|
2972
|
+
label: x,
|
|
2891
2973
|
value: _,
|
|
2892
|
-
disabled:
|
|
2893
|
-
onChange: (
|
|
2974
|
+
disabled: f,
|
|
2975
|
+
onChange: (m) => !f && g(m)
|
|
2894
2976
|
}
|
|
2895
2977
|
);
|
|
2896
|
-
},
|
|
2897
|
-
textFieldNotFront:
|
|
2898
|
-
},
|
|
2978
|
+
}, Mr = "_textFieldNotFront_1n8fy_1", Ur = {
|
|
2979
|
+
textFieldNotFront: Mr
|
|
2980
|
+
}, Vr = (e) => {
|
|
2899
2981
|
const {
|
|
2900
2982
|
userFlow: t,
|
|
2901
2983
|
pageId: s,
|
|
2902
|
-
component:
|
|
2984
|
+
component: a,
|
|
2903
2985
|
hash: i,
|
|
2904
2986
|
responseKey: l,
|
|
2905
2987
|
required: c,
|
|
2906
2988
|
dependencies: n,
|
|
2907
2989
|
...d
|
|
2908
|
-
} = e,
|
|
2990
|
+
} = e, r = {
|
|
2909
2991
|
...d
|
|
2910
|
-
}, [_, u] =
|
|
2992
|
+
}, [_, u] = $((r == null ? void 0 : r.value) ?? ""), { disabled: h } = I(
|
|
2911
2993
|
t,
|
|
2912
2994
|
n
|
|
2913
|
-
),
|
|
2914
|
-
var
|
|
2915
|
-
const
|
|
2916
|
-
u(
|
|
2917
|
-
const
|
|
2918
|
-
[l]:
|
|
2995
|
+
), f = (r == null ? void 0 : r.disabled) ?? h, x = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), g = (m) => {
|
|
2996
|
+
var b;
|
|
2997
|
+
const y = (b = m == null ? void 0 : m.target) == null ? void 0 : b.value;
|
|
2998
|
+
u(y);
|
|
2999
|
+
const p = {
|
|
3000
|
+
[l]: y
|
|
2919
3001
|
};
|
|
2920
|
-
|
|
3002
|
+
q(t, p);
|
|
2921
3003
|
};
|
|
2922
|
-
return
|
|
2923
|
-
u((
|
|
2924
|
-
}, [
|
|
3004
|
+
return U(() => {
|
|
3005
|
+
u((r == null ? void 0 : r.value) ?? "");
|
|
3006
|
+
}, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
|
|
2925
3007
|
Gt,
|
|
2926
3008
|
{
|
|
2927
|
-
...
|
|
2928
|
-
className:
|
|
3009
|
+
...r,
|
|
3010
|
+
className: Ur.textFieldNotFront,
|
|
2929
3011
|
allowClear: !1,
|
|
2930
|
-
label:
|
|
3012
|
+
label: x,
|
|
2931
3013
|
value: _,
|
|
2932
|
-
disabled:
|
|
2933
|
-
onChange: (
|
|
3014
|
+
disabled: f,
|
|
3015
|
+
onChange: (m) => !f && g(m)
|
|
2934
3016
|
}
|
|
2935
3017
|
);
|
|
2936
|
-
},
|
|
3018
|
+
}, zr = ({
|
|
2937
3019
|
userFlow: e,
|
|
2938
3020
|
pageId: t,
|
|
2939
3021
|
responseKey: s,
|
|
2940
|
-
variant:
|
|
3022
|
+
variant: a,
|
|
2941
3023
|
content: i,
|
|
2942
3024
|
actionType: l,
|
|
2943
3025
|
redirectUrl: c
|
|
2944
3026
|
}) => {
|
|
2945
|
-
const n =
|
|
2946
|
-
|
|
3027
|
+
const n = D(async () => {
|
|
3028
|
+
Ae(e);
|
|
2947
3029
|
try {
|
|
2948
3030
|
switch (l) {
|
|
2949
3031
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
@@ -2957,57 +3039,57 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
|
|
|
2957
3039
|
console.error("Error in toast action:", d), alert(JSON.stringify(d));
|
|
2958
3040
|
}
|
|
2959
3041
|
}, [l, t, s, e, c]);
|
|
2960
|
-
return
|
|
3042
|
+
return U(() => {
|
|
2961
3043
|
({
|
|
2962
|
-
info:
|
|
2963
|
-
error:
|
|
2964
|
-
success:
|
|
2965
|
-
warning:
|
|
2966
|
-
}[
|
|
3044
|
+
info: re.info,
|
|
3045
|
+
error: re.error,
|
|
3046
|
+
success: re.success,
|
|
3047
|
+
warning: re.warning
|
|
3048
|
+
}[a] || re.info)(i, {
|
|
2967
3049
|
autoClose: l ? !1 : 4e3,
|
|
2968
3050
|
containerId: e,
|
|
2969
3051
|
onClose: n
|
|
2970
3052
|
});
|
|
2971
3053
|
}, [n, e]), null;
|
|
2972
|
-
},
|
|
2973
|
-
tooltipNotFront:
|
|
2974
|
-
tooltipNotFront_content:
|
|
2975
|
-
},
|
|
3054
|
+
}, Xr = "_tooltipNotFront_106iw_1", Jr = "_tooltipNotFront_content_106iw_5", Ze = {
|
|
3055
|
+
tooltipNotFront: Xr,
|
|
3056
|
+
tooltipNotFront_content: Jr
|
|
3057
|
+
}, Wr = (e) => {
|
|
2976
3058
|
const {
|
|
2977
3059
|
userFlow: t,
|
|
2978
3060
|
pageId: s,
|
|
2979
|
-
component:
|
|
3061
|
+
component: a,
|
|
2980
3062
|
hash: i,
|
|
2981
3063
|
responseKey: l,
|
|
2982
3064
|
content: c,
|
|
2983
3065
|
label: n,
|
|
2984
3066
|
placement: d,
|
|
2985
|
-
notShowArrow:
|
|
3067
|
+
notShowArrow: r,
|
|
2986
3068
|
visible: _
|
|
2987
3069
|
} = e, u = E(
|
|
2988
3070
|
t,
|
|
2989
3071
|
s,
|
|
2990
3072
|
c != null && c.length ? c : null
|
|
2991
|
-
), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className:
|
|
3073
|
+
), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ze.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(k, { children: f }, `tooltip-${i}-${x}`)) }) : null;
|
|
2992
3074
|
return /* @__PURE__ */ o.jsx(
|
|
2993
|
-
|
|
3075
|
+
Mt,
|
|
2994
3076
|
{
|
|
2995
|
-
className:
|
|
3077
|
+
className: Ze.tooltipNotFront,
|
|
2996
3078
|
label: n,
|
|
2997
3079
|
placement: d,
|
|
2998
|
-
notShowArrow:
|
|
3080
|
+
notShowArrow: r,
|
|
2999
3081
|
visible: _,
|
|
3000
3082
|
children: h
|
|
3001
3083
|
}
|
|
3002
3084
|
);
|
|
3003
3085
|
};
|
|
3004
|
-
function
|
|
3086
|
+
function ha({
|
|
3005
3087
|
sessionName: e,
|
|
3006
3088
|
apiConfig: t,
|
|
3007
3089
|
onResolveComponentProps: s,
|
|
3008
|
-
children:
|
|
3090
|
+
children: a
|
|
3009
3091
|
}) {
|
|
3010
|
-
const i =
|
|
3092
|
+
const i = Pr(
|
|
3011
3093
|
e,
|
|
3012
3094
|
t,
|
|
3013
3095
|
null,
|
|
@@ -3015,19 +3097,19 @@ function rr({
|
|
|
3015
3097
|
);
|
|
3016
3098
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3017
3099
|
i,
|
|
3018
|
-
|
|
3100
|
+
a
|
|
3019
3101
|
] });
|
|
3020
3102
|
}
|
|
3021
|
-
const
|
|
3103
|
+
const Yr = { api: "", headers: {} }, Qr = ({
|
|
3022
3104
|
userFlow: e,
|
|
3023
3105
|
components: t,
|
|
3024
3106
|
hash: s,
|
|
3025
|
-
apiConfig:
|
|
3107
|
+
apiConfig: a
|
|
3026
3108
|
}) => {
|
|
3027
3109
|
const i = s ?? `${e}-page`;
|
|
3028
|
-
|
|
3029
|
-
var d,
|
|
3030
|
-
return (
|
|
3110
|
+
$(() => {
|
|
3111
|
+
var d, r;
|
|
3112
|
+
return (r = (d = N.getState()[e]) == null ? void 0 : d.pages) != null && r[i] || ye(e, a ?? Yr, {
|
|
3031
3113
|
type: "page",
|
|
3032
3114
|
hash: i,
|
|
3033
3115
|
body: { components: t }
|
|
@@ -3036,113 +3118,113 @@ const Ha = { api: "", headers: {} }, Ma = ({
|
|
|
3036
3118
|
const l = E(e, i, t);
|
|
3037
3119
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: l });
|
|
3038
3120
|
};
|
|
3039
|
-
function
|
|
3121
|
+
function Zr(e) {
|
|
3040
3122
|
if (e == null || typeof e != "object" || !("components" in e) || !Array.isArray(e.components))
|
|
3041
3123
|
throw new Error(
|
|
3042
3124
|
"[renderNotFront] payload.display must be an object with a `components` array"
|
|
3043
3125
|
);
|
|
3044
3126
|
return e.components;
|
|
3045
3127
|
}
|
|
3046
|
-
const
|
|
3047
|
-
const s =
|
|
3128
|
+
const Fr = ({ payload: e, userFlow: t }) => {
|
|
3129
|
+
const s = Zr(e.display), a = Qr({
|
|
3048
3130
|
userFlow: t,
|
|
3049
3131
|
hash: e.id,
|
|
3050
3132
|
components: s
|
|
3051
3133
|
});
|
|
3052
|
-
return /* @__PURE__ */ o.jsx(o.Fragment, { children:
|
|
3053
|
-
},
|
|
3134
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: a });
|
|
3135
|
+
}, fa = Fr, Fe = (e, t, s, a, i) => {
|
|
3054
3136
|
const l = E(
|
|
3055
3137
|
e,
|
|
3056
3138
|
t,
|
|
3057
|
-
(
|
|
3139
|
+
(a == null ? void 0 : a.components) || null,
|
|
3058
3140
|
i
|
|
3059
3141
|
);
|
|
3060
3142
|
switch (s) {
|
|
3061
3143
|
case "body":
|
|
3062
3144
|
return /* @__PURE__ */ o.jsx(
|
|
3063
|
-
|
|
3145
|
+
Hn,
|
|
3064
3146
|
{
|
|
3065
|
-
...
|
|
3147
|
+
...a,
|
|
3066
3148
|
inputs: l || []
|
|
3067
3149
|
},
|
|
3068
|
-
JSON.stringify(
|
|
3150
|
+
JSON.stringify(a == null ? void 0 : a.components)
|
|
3069
3151
|
);
|
|
3070
3152
|
case "header":
|
|
3071
3153
|
return /* @__PURE__ */ o.jsx(
|
|
3072
|
-
|
|
3154
|
+
Zs,
|
|
3073
3155
|
{
|
|
3074
|
-
...
|
|
3156
|
+
...a,
|
|
3075
3157
|
components: l || []
|
|
3076
3158
|
},
|
|
3077
|
-
JSON.stringify(
|
|
3159
|
+
JSON.stringify(a == null ? void 0 : a.components)
|
|
3078
3160
|
);
|
|
3079
3161
|
default:
|
|
3080
3162
|
return null;
|
|
3081
3163
|
}
|
|
3082
|
-
},
|
|
3083
|
-
var h,
|
|
3084
|
-
const [i, l] =
|
|
3085
|
-
|
|
3164
|
+
}, Pr = (e, t, s, a) => {
|
|
3165
|
+
var h, f, x;
|
|
3166
|
+
const [i, l] = $(!1), c = N((g) => g), n = (h = c[e]) == null ? void 0 : h.currentPageId;
|
|
3167
|
+
U(() => {
|
|
3086
3168
|
if (typeof window > "u") return;
|
|
3087
|
-
const g = new URL(window.location.href),
|
|
3088
|
-
|
|
3169
|
+
const g = new URL(window.location.href), m = g.searchParams.get("sessionId");
|
|
3170
|
+
m && (sessionStorage.setItem("sessionId", m), g.searchParams.delete("sessionId"), window.history.replaceState({}, "", g.toString()));
|
|
3089
3171
|
}, []);
|
|
3090
|
-
const d = n ?
|
|
3172
|
+
const d = n ? Fe(
|
|
3091
3173
|
e,
|
|
3092
3174
|
n,
|
|
3093
3175
|
"header",
|
|
3094
|
-
((
|
|
3095
|
-
|
|
3096
|
-
) : null,
|
|
3176
|
+
((f = c[e].pages[n].page) == null ? void 0 : f.header) || null,
|
|
3177
|
+
a
|
|
3178
|
+
) : null, r = n ? Fe(
|
|
3097
3179
|
e,
|
|
3098
3180
|
n,
|
|
3099
3181
|
"body",
|
|
3100
|
-
((
|
|
3101
|
-
|
|
3102
|
-
) : null, _ =
|
|
3182
|
+
((x = c[e].pages[n].page) == null ? void 0 : x.body) || null,
|
|
3183
|
+
a
|
|
3184
|
+
) : null, _ = T(() => {
|
|
3103
3185
|
var g;
|
|
3104
3186
|
return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
3105
|
-
((g = c[e]) == null ? void 0 : g.isLoading) && /* @__PURE__ */ o.jsx(
|
|
3187
|
+
((g = c[e]) == null ? void 0 : g.isLoading) && /* @__PURE__ */ o.jsx(Ut, {}),
|
|
3106
3188
|
d,
|
|
3107
|
-
|
|
3108
|
-
n && /* @__PURE__ */ o.jsx(
|
|
3109
|
-
c[e] && /* @__PURE__ */ o.jsx(
|
|
3189
|
+
r,
|
|
3190
|
+
n && /* @__PURE__ */ o.jsx(sr, { userFlow: e, pageId: n }),
|
|
3191
|
+
c[e] && /* @__PURE__ */ o.jsx(Vt, {})
|
|
3110
3192
|
] });
|
|
3111
|
-
}, [d,
|
|
3193
|
+
}, [d, r, n, e]), u = async () => {
|
|
3112
3194
|
try {
|
|
3113
|
-
const g = await
|
|
3195
|
+
const g = await ot(
|
|
3114
3196
|
t,
|
|
3115
3197
|
e
|
|
3116
|
-
),
|
|
3117
|
-
(g == null ? void 0 : g.status) === 200 ?
|
|
3198
|
+
), m = g == null ? void 0 : g.data, y = m == null ? void 0 : m.content;
|
|
3199
|
+
(g == null ? void 0 : g.status) === 200 ? ye(e, t, y, m == null ? void 0 : m.sessionState) : l(!0);
|
|
3118
3200
|
} catch (g) {
|
|
3119
3201
|
console.error("[not-page]: API call failed", g), l(!0);
|
|
3120
3202
|
}
|
|
3121
3203
|
};
|
|
3122
|
-
return
|
|
3123
|
-
t != null && t.api && !s && e ? u() : !(t != null && t.api) && s && e || t != null && t.api && s && e ?
|
|
3204
|
+
return U(() => {
|
|
3205
|
+
t != null && t.api && !s && e ? u() : !(t != null && t.api) && s && e || t != null && t.api && s && e ? ye(e, t, s) : (!(t != null && t.api) && !s || !e) && (l(!0), console.error(
|
|
3124
3206
|
"[not-page]: API call failed",
|
|
3125
3207
|
"not api config",
|
|
3126
3208
|
"not userFlow"
|
|
3127
3209
|
));
|
|
3128
|
-
const g = "avocado-theme-mode-changed",
|
|
3129
|
-
const
|
|
3130
|
-
|
|
3210
|
+
const g = "avocado-theme-mode-changed", m = (y) => {
|
|
3211
|
+
const p = y.detail;
|
|
3212
|
+
le.setThemeMode(p);
|
|
3131
3213
|
};
|
|
3132
|
-
return window.addEventListener(g,
|
|
3133
|
-
window.removeEventListener(g,
|
|
3214
|
+
return window.addEventListener(g, m), () => {
|
|
3215
|
+
window.removeEventListener(g, m);
|
|
3134
3216
|
};
|
|
3135
3217
|
}, []), i && console.error("[not-page]: No render page"), _;
|
|
3136
3218
|
};
|
|
3137
3219
|
export {
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3220
|
+
As as Chart,
|
|
3221
|
+
ha as NotFrontPage,
|
|
3222
|
+
Fr as RenderNotFront,
|
|
3223
|
+
dr as Row,
|
|
3224
|
+
Zr as extractNotFrontComponents,
|
|
3225
|
+
bn as heading,
|
|
3226
|
+
fa as renderNotFront,
|
|
3145
3227
|
jn as text,
|
|
3146
|
-
|
|
3147
|
-
|
|
3228
|
+
Qr as useNotFrontFragment,
|
|
3229
|
+
Pr as usePage
|
|
3148
3230
|
};
|