@foris/avocado-not-front 5.2.10 → 5.2.11
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 +992 -932
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/components/table/TableArrayPills.d.ts +5 -0
- package/dist/types/components.type.d.ts +22 -2
- package/dist/types/componentsCore.type.d.ts +11 -1
- package/dist/utils/pillVariant.util.d.ts +29 -6
- package/package.json +6 -6
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import X from "axios";
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { ChatPanel as
|
|
2
|
+
import { create as Ae } from "zustand";
|
|
3
|
+
import Oe, { useMemo as D, useState as L, useCallback as I, Fragment as A, useEffect as U, useRef as ut, cloneElement as $e } from "react";
|
|
4
|
+
import { Heading as oe, Text as ce, Accordion as De, ThemeStore as ht, Box as Re, RadioButton as Le, Stepper as Ie, ProgressBar as qe, Breadcrumbs as Ke, Button as Be, CardAccordion as Me, Card as Ge, CardNotification as mt, SkeletonBase as ie, Checkbox as He, PreviewerMarkdown as le, DataCard as de, Divider as Ve, Drawer as Ue, DropdownButton as ze, Link as Xe, Menu as Je, Modal as We, Pill as Tt, RoundButton as Ye, SelectPagination as Qe, Select as Ze, Switch as Pe, Table as Gt, Pager as Ct, Tabs as Fe, Textarea as tn, TextField as en, toast as lt, Tooltip as nn, Loading as rn, Toaster as sn } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as an, PromptCodeEditor as on, SummaryCard as cn } from "@foris/ai-agent";
|
|
6
6
|
import M from "jsonpath";
|
|
7
|
-
import { ResponsiveContainer as
|
|
8
|
-
import
|
|
9
|
-
import { json as
|
|
10
|
-
import { markdown as
|
|
11
|
-
import { sql as
|
|
12
|
-
import { yaml as
|
|
13
|
-
import { Icon as
|
|
14
|
-
const
|
|
15
|
-
t && sessionStorage.setItem(
|
|
16
|
-
},
|
|
17
|
-
sessionStorage.removeItem(
|
|
18
|
-
}, v =
|
|
19
|
-
|
|
20
|
-
const i =
|
|
7
|
+
import { ResponsiveContainer as Dt, Legend as ln, Tooltip as dn, XAxis as _n, YAxis as un, AreaChart as hn, CartesianGrid as rt, Area as _e, BarChart as Rt, Bar as pt, ComposedChart as fn, Line as ue, PieChart as he, Pie as fe, Cell as xe, Sector as Ht, LineChart as xn } from "recharts";
|
|
8
|
+
import yn from "@uiw/react-codemirror";
|
|
9
|
+
import { json as Vt } from "@codemirror/lang-json";
|
|
10
|
+
import { markdown as mn } from "@codemirror/lang-markdown";
|
|
11
|
+
import { sql as gn } from "@codemirror/lang-sql";
|
|
12
|
+
import { yaml as pn } from "@codemirror/lang-yaml";
|
|
13
|
+
import { Icon as Ut } from "@foris/avocado-icons";
|
|
14
|
+
const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
15
|
+
t && sessionStorage.setItem(Lt, t);
|
|
16
|
+
}, Ga = () => {
|
|
17
|
+
sessionStorage.removeItem(Lt);
|
|
18
|
+
}, v = Ae(() => ({})), yt = (t, e, r, s, o) => {
|
|
19
|
+
It(o);
|
|
20
|
+
const i = r == null ? void 0 : r.hash, c = s && Object.keys(s).length > 0 ? { ...s } : {};
|
|
21
21
|
v.setState((n) => {
|
|
22
22
|
var _;
|
|
23
23
|
return {
|
|
@@ -34,22 +34,22 @@ const Rt = "sessionId", gn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
34
34
|
pages: {
|
|
35
35
|
...(_ = n[t]) == null ? void 0 : _.pages,
|
|
36
36
|
[i]: {
|
|
37
|
-
page:
|
|
37
|
+
page: r
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
|
-
},
|
|
44
|
-
const
|
|
45
|
-
return e.length === 0 ?
|
|
46
|
-
Object.entries(
|
|
43
|
+
}, ye = (t, e, r) => {
|
|
44
|
+
const s = r && Object.keys(r).length > 0 ? { ...t, ...r } : t;
|
|
45
|
+
return e.length === 0 ? s : Object.fromEntries(
|
|
46
|
+
Object.entries(s).filter(([o]) => !e.includes(o))
|
|
47
47
|
);
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
const c = i[t] ?? {}, n = c.entries ?? {}, _ =
|
|
48
|
+
}, jn = (t, e, r, s, o) => {
|
|
49
|
+
It(r), v.setState((i) => {
|
|
50
|
+
const c = i[t] ?? {}, n = c.entries ?? {}, _ = ye(
|
|
51
51
|
n,
|
|
52
|
-
|
|
52
|
+
s,
|
|
53
53
|
o
|
|
54
54
|
);
|
|
55
55
|
return {
|
|
@@ -69,13 +69,13 @@ const Rt = "sessionId", gn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
});
|
|
72
|
-
},
|
|
72
|
+
}, Cn = (t, e, r, s) => {
|
|
73
73
|
v.setState((o) => {
|
|
74
74
|
var l;
|
|
75
|
-
const i = o[t] ?? {}, c = i.entries ?? {}, n =
|
|
75
|
+
const i = o[t] ?? {}, c = i.entries ?? {}, n = ye(
|
|
76
76
|
c,
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
r,
|
|
78
|
+
s
|
|
79
79
|
), _ = (l = e.components) == null ? void 0 : l.some(
|
|
80
80
|
(d) => d.component === "drawer"
|
|
81
81
|
);
|
|
@@ -91,7 +91,7 @@ const Rt = "sessionId", gn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
});
|
|
94
|
-
},
|
|
94
|
+
}, qt = (t) => {
|
|
95
95
|
v.setState((e) => ({
|
|
96
96
|
...e,
|
|
97
97
|
[t]: {
|
|
@@ -99,109 +99,109 @@ const Rt = "sessionId", gn = () => sessionStorage.getItem(Rt), qt = (t) => {
|
|
|
99
99
|
overlay: null
|
|
100
100
|
}
|
|
101
101
|
}));
|
|
102
|
-
},
|
|
103
|
-
var
|
|
104
|
-
return ((
|
|
102
|
+
}, wn = (t) => {
|
|
103
|
+
var r;
|
|
104
|
+
return ((r = v.getState()[t]) == null ? void 0 : r.overlay) ?? null;
|
|
105
105
|
}, K = (t, e) => {
|
|
106
106
|
const {
|
|
107
|
-
content:
|
|
108
|
-
sessionId:
|
|
107
|
+
content: r,
|
|
108
|
+
sessionId: s,
|
|
109
109
|
deprecatedStateKeys: o = [],
|
|
110
110
|
sessionState: i
|
|
111
111
|
} = e;
|
|
112
|
-
|
|
112
|
+
r.type !== "page" && r.type !== "overlay" || (r.type === "page" ? jn(
|
|
113
113
|
t,
|
|
114
|
-
s,
|
|
115
114
|
r,
|
|
115
|
+
s,
|
|
116
116
|
o,
|
|
117
117
|
i
|
|
118
|
-
) :
|
|
118
|
+
) : Cn(
|
|
119
119
|
t,
|
|
120
|
-
|
|
120
|
+
r,
|
|
121
121
|
o,
|
|
122
122
|
i
|
|
123
123
|
));
|
|
124
|
-
},
|
|
125
|
-
v.setState((
|
|
126
|
-
var
|
|
124
|
+
}, q = (t, e) => {
|
|
125
|
+
v.setState((r) => {
|
|
126
|
+
var s;
|
|
127
127
|
return {
|
|
128
|
-
...
|
|
128
|
+
...r,
|
|
129
129
|
[t]: {
|
|
130
|
-
...
|
|
130
|
+
...r[t],
|
|
131
131
|
entries: {
|
|
132
|
-
...(
|
|
132
|
+
...(s = r[t]) == null ? void 0 : s.entries,
|
|
133
133
|
...e
|
|
134
134
|
// New entries
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
},
|
|
140
|
-
v.setState((
|
|
141
|
-
const
|
|
142
|
-
if (!
|
|
143
|
-
return
|
|
144
|
-
const o =
|
|
139
|
+
}, Nn = (t, e) => {
|
|
140
|
+
v.setState((r) => {
|
|
141
|
+
const s = r[t];
|
|
142
|
+
if (!s)
|
|
143
|
+
return r;
|
|
144
|
+
const o = s.entries ?? {};
|
|
145
145
|
if (!(e in o))
|
|
146
|
-
return
|
|
146
|
+
return r;
|
|
147
147
|
const { [e]: i, ...c } = o;
|
|
148
148
|
return {
|
|
149
|
-
...
|
|
149
|
+
...r,
|
|
150
150
|
[t]: {
|
|
151
|
-
...
|
|
151
|
+
...s,
|
|
152
152
|
entries: c
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
});
|
|
156
|
-
},
|
|
157
|
-
v.setState((
|
|
158
|
-
...
|
|
156
|
+
}, P = (t, e) => {
|
|
157
|
+
v.setState((r) => ({
|
|
158
|
+
...r,
|
|
159
159
|
[t]: {
|
|
160
|
-
...
|
|
160
|
+
...r[t],
|
|
161
161
|
isLoading: e
|
|
162
162
|
}
|
|
163
163
|
}));
|
|
164
|
-
},
|
|
165
|
-
v.setState((
|
|
166
|
-
...
|
|
164
|
+
}, Kt = (t, e) => {
|
|
165
|
+
v.setState((r) => ({
|
|
166
|
+
...r,
|
|
167
167
|
[t]: {
|
|
168
|
-
...
|
|
168
|
+
...r[t],
|
|
169
169
|
isModalOpen: e
|
|
170
170
|
}
|
|
171
171
|
}));
|
|
172
172
|
}, _t = (t, e) => {
|
|
173
|
-
v.setState((
|
|
174
|
-
...
|
|
173
|
+
v.setState((r) => ({
|
|
174
|
+
...r,
|
|
175
175
|
[t]: {
|
|
176
|
-
...
|
|
176
|
+
...r[t],
|
|
177
177
|
isDrawerOpen: e
|
|
178
178
|
}
|
|
179
179
|
}));
|
|
180
|
-
},
|
|
181
|
-
v.setState((
|
|
182
|
-
const
|
|
183
|
-
return
|
|
184
|
-
...
|
|
180
|
+
}, zt = (t, e) => {
|
|
181
|
+
v.setState((r) => {
|
|
182
|
+
const s = r[t];
|
|
183
|
+
return s ? {
|
|
184
|
+
...r,
|
|
185
185
|
[t]: {
|
|
186
|
-
...
|
|
186
|
+
...s,
|
|
187
187
|
apiConfig: {
|
|
188
|
-
...
|
|
188
|
+
...s.apiConfig,
|
|
189
189
|
headers: e
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
} :
|
|
192
|
+
} : r;
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
|
-
let wt = !1, gt = [],
|
|
196
|
-
const
|
|
197
|
-
gt.forEach(({ resolve: e, reject:
|
|
198
|
-
t ?
|
|
195
|
+
let wt = !1, gt = [], Xt = !1;
|
|
196
|
+
const vn = (t) => t._userFlow || null, Jt = (t) => {
|
|
197
|
+
gt.forEach(({ resolve: e, reject: r }) => {
|
|
198
|
+
t ? r(t) : e(void 0);
|
|
199
199
|
}), gt = [];
|
|
200
|
-
},
|
|
201
|
-
var
|
|
200
|
+
}, En = async (t) => {
|
|
201
|
+
var s, o;
|
|
202
202
|
const e = t == null ? void 0 : t.config;
|
|
203
|
-
if (((
|
|
204
|
-
const i =
|
|
203
|
+
if (((s = t == null ? void 0 : t.response) == null ? void 0 : s.status) === 401 && !e._retry) {
|
|
204
|
+
const i = vn(e);
|
|
205
205
|
if (i) {
|
|
206
206
|
const n = (o = v.getState()[i]) == null ? void 0 : o.apiConfig;
|
|
207
207
|
if (!n)
|
|
@@ -220,7 +220,7 @@ const wn = (t) => t._userFlow || null, Xt = (t) => {
|
|
|
220
220
|
l = n.headers();
|
|
221
221
|
else
|
|
222
222
|
throw new Error("No refresh handler available");
|
|
223
|
-
return n.onAuthenticationError && (typeof n.headers == "string" ?
|
|
223
|
+
return n.onAuthenticationError && (typeof n.headers == "string" ? zt(i, JSON.stringify(l)) : zt(i, l)), e.headers || (e.headers = {}), Object.assign(e.headers, l), Jt(null), X(e);
|
|
224
224
|
} catch (l) {
|
|
225
225
|
return console.error(
|
|
226
226
|
"[axiosInterceptors] Token refresh failed:",
|
|
@@ -228,7 +228,7 @@ const wn = (t) => t._userFlow || null, Xt = (t) => {
|
|
|
228
228
|
), console.error(
|
|
229
229
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
230
230
|
gt.length
|
|
231
|
-
),
|
|
231
|
+
), Jt(l), Promise.reject(l);
|
|
232
232
|
} finally {
|
|
233
233
|
wt = !1;
|
|
234
234
|
}
|
|
@@ -243,17 +243,17 @@ const wn = (t) => t._userFlow || null, Xt = (t) => {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
return Promise.reject(t);
|
|
246
|
-
},
|
|
247
|
-
if (
|
|
246
|
+
}, kn = () => {
|
|
247
|
+
if (Xt) {
|
|
248
248
|
console.debug(
|
|
249
249
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
250
250
|
);
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0,
|
|
253
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, En), console.debug("[axiosInterceptors] Response error interceptor registered"), Xt = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
254
254
|
};
|
|
255
|
-
|
|
256
|
-
function
|
|
255
|
+
kn();
|
|
256
|
+
function Tn(t) {
|
|
257
257
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
258
258
|
}
|
|
259
259
|
var Nt = { exports: {} }, dt = {};
|
|
@@ -266,130 +266,130 @@ var Nt = { exports: {} }, dt = {};
|
|
|
266
266
|
* This source code is licensed under the MIT license found in the
|
|
267
267
|
* LICENSE file in the root directory of this source tree.
|
|
268
268
|
*/
|
|
269
|
-
var
|
|
270
|
-
function
|
|
271
|
-
if (
|
|
272
|
-
|
|
273
|
-
var t =
|
|
269
|
+
var Wt;
|
|
270
|
+
function Sn() {
|
|
271
|
+
if (Wt) return dt;
|
|
272
|
+
Wt = 1;
|
|
273
|
+
var t = Oe, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
274
274
|
function c(n, _, l) {
|
|
275
275
|
var d, u = {}, h = null, f = null;
|
|
276
276
|
l !== void 0 && (h = "" + l), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (f = _.ref);
|
|
277
|
-
for (d in _)
|
|
277
|
+
for (d in _) s.call(_, d) && !i.hasOwnProperty(d) && (u[d] = _[d]);
|
|
278
278
|
if (n && n.defaultProps) for (d in _ = n.defaultProps, _) u[d] === void 0 && (u[d] = _[d]);
|
|
279
279
|
return { $$typeof: e, type: n, key: h, ref: f, props: u, _owner: o.current };
|
|
280
280
|
}
|
|
281
|
-
return dt.Fragment =
|
|
281
|
+
return dt.Fragment = r, dt.jsx = c, dt.jsxs = c, dt;
|
|
282
282
|
}
|
|
283
|
-
var
|
|
284
|
-
function
|
|
285
|
-
return
|
|
283
|
+
var Yt;
|
|
284
|
+
function An() {
|
|
285
|
+
return Yt || (Yt = 1, Nt.exports = Sn()), Nt.exports;
|
|
286
286
|
}
|
|
287
|
-
var a =
|
|
288
|
-
const
|
|
287
|
+
var a = An();
|
|
288
|
+
const On = (t) => {
|
|
289
289
|
if (!(t != null && t.content)) return null;
|
|
290
290
|
const e = {
|
|
291
291
|
...t,
|
|
292
292
|
children: t.content,
|
|
293
293
|
type: t.variant
|
|
294
294
|
};
|
|
295
|
-
return /* @__PURE__ */ a.jsx(
|
|
296
|
-
},
|
|
295
|
+
return /* @__PURE__ */ a.jsx(oe, { ...e });
|
|
296
|
+
}, $n = (t) => {
|
|
297
297
|
if (!t) return null;
|
|
298
298
|
const e = {
|
|
299
299
|
...t,
|
|
300
300
|
children: t.content
|
|
301
301
|
};
|
|
302
|
-
return /* @__PURE__ */ a.jsx(
|
|
303
|
-
}, E = (t, e,
|
|
302
|
+
return /* @__PURE__ */ a.jsx(ce, { ...e });
|
|
303
|
+
}, E = (t, e, r, s) => {
|
|
304
304
|
var c;
|
|
305
305
|
const o = {
|
|
306
|
-
accordion: (n) => /* @__PURE__ */ a.jsx(
|
|
306
|
+
accordion: (n) => /* @__PURE__ */ a.jsx(Gn, { ...n, userFlow: t, pageId: e }),
|
|
307
307
|
aiChatPanel: (n) => /* @__PURE__ */ a.jsx(
|
|
308
|
-
|
|
308
|
+
Hn,
|
|
309
309
|
{
|
|
310
310
|
...n,
|
|
311
311
|
userFlow: t,
|
|
312
312
|
pageId: e,
|
|
313
|
-
onResolveProps:
|
|
313
|
+
onResolveProps: s == null ? void 0 : s.aiChatPanel
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
aiSummaryCard: (n) => /* @__PURE__ */ a.jsx(
|
|
317
|
-
|
|
317
|
+
Wn,
|
|
318
318
|
{
|
|
319
319
|
...n,
|
|
320
320
|
userFlow: t,
|
|
321
321
|
pageId: e,
|
|
322
|
-
onResolveProps:
|
|
322
|
+
onResolveProps: s == null ? void 0 : s.aiSummaryCard
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ a.jsx(
|
|
326
|
-
box: (n) => /* @__PURE__ */ a.jsx(
|
|
327
|
-
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(
|
|
328
|
-
tooltip: (n) => /* @__PURE__ */ a.jsx(
|
|
329
|
-
textarea: (n) => /* @__PURE__ */ a.jsx(
|
|
330
|
-
card: (n) => /* @__PURE__ */ a.jsx(
|
|
331
|
-
dropdownButton: (n) => /* @__PURE__ */ a.jsx(
|
|
332
|
-
menu: (n) => /* @__PURE__ */ a.jsx(
|
|
333
|
-
radioGroup: (n) => /* @__PURE__ */ a.jsx(
|
|
334
|
-
stepper: (n) => /* @__PURE__ */ a.jsx(
|
|
335
|
-
progressBar: (n) => /* @__PURE__ */ a.jsx(
|
|
336
|
-
button: (n) => /* @__PURE__ */ a.jsx(
|
|
337
|
-
cardAccordion: (n) => /* @__PURE__ */ a.jsx(
|
|
338
|
-
cardNotification: (n) => /* @__PURE__ */ a.jsx(
|
|
339
|
-
chart: (n) => /* @__PURE__ */ a.jsx(
|
|
340
|
-
dataCard: (n) => /* @__PURE__ */ a.jsx(
|
|
341
|
-
checkbox: (n) => /* @__PURE__ */ a.jsx(
|
|
342
|
-
code: (n) => /* @__PURE__ */ a.jsx(
|
|
343
|
-
divider: (n) => /* @__PURE__ */ a.jsx(
|
|
344
|
-
drawer: (n) => /* @__PURE__ */ a.jsx(
|
|
345
|
-
heading: (n) =>
|
|
346
|
-
link: (n) => /* @__PURE__ */ a.jsx(
|
|
347
|
-
pill: (n) => /* @__PURE__ */ a.jsx(
|
|
348
|
-
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx(
|
|
349
|
-
modal: (n) => /* @__PURE__ */ a.jsx(
|
|
350
|
-
roundButton: (n) => /* @__PURE__ */ a.jsx(
|
|
351
|
-
row: (n) => /* @__PURE__ */ a.jsx(
|
|
352
|
-
select: (n) => /* @__PURE__ */ a.jsx(
|
|
353
|
-
switch: (n) => /* @__PURE__ */ a.jsx(
|
|
354
|
-
spacing: (n) => /* @__PURE__ */ a.jsx(
|
|
355
|
-
table: (n) => /* @__PURE__ */ a.jsx(
|
|
356
|
-
tabs: (n) => /* @__PURE__ */ a.jsx(
|
|
357
|
-
text: (n) =>
|
|
358
|
-
textField: (n) => /* @__PURE__ */ a.jsx(
|
|
359
|
-
toast: (n) => /* @__PURE__ */ a.jsx(
|
|
325
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ a.jsx(zn, { ...n, userFlow: t, pageId: e }),
|
|
326
|
+
box: (n) => /* @__PURE__ */ a.jsx(tr, { ...n, userFlow: t, pageId: e }),
|
|
327
|
+
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(ur, { ...n, userFlow: t, pageId: e }),
|
|
328
|
+
tooltip: (n) => /* @__PURE__ */ a.jsx(Ca, { ...n, userFlow: t, pageId: e }),
|
|
329
|
+
textarea: (n) => /* @__PURE__ */ a.jsx(xa, { ...n, userFlow: t, pageId: e }),
|
|
330
|
+
card: (n) => /* @__PURE__ */ a.jsx(gr, { ...n, userFlow: t, pageId: e }),
|
|
331
|
+
dropdownButton: (n) => /* @__PURE__ */ a.jsx(ms, { ...n, userFlow: t, pageId: e }),
|
|
332
|
+
menu: (n) => /* @__PURE__ */ a.jsx(Cs, { ...n, userFlow: t, pageId: e }),
|
|
333
|
+
radioGroup: (n) => /* @__PURE__ */ a.jsx(lr, { ...n, userFlow: t, pageId: e }),
|
|
334
|
+
stepper: (n) => /* @__PURE__ */ a.jsx(dr, { ...n, userFlow: t, pageId: e }),
|
|
335
|
+
progressBar: (n) => /* @__PURE__ */ a.jsx(_r, { ...n, userFlow: t, pageId: e }),
|
|
336
|
+
button: (n) => /* @__PURE__ */ a.jsx(hr, { ...n, userFlow: t, pageId: e }),
|
|
337
|
+
cardAccordion: (n) => /* @__PURE__ */ a.jsx(xr, { ...n, userFlow: t, pageId: e }),
|
|
338
|
+
cardNotification: (n) => /* @__PURE__ */ a.jsx(pr, { ...n, userFlow: t, pageId: e }),
|
|
339
|
+
chart: (n) => /* @__PURE__ */ a.jsx(Wr, { ...n, userFlow: t }),
|
|
340
|
+
dataCard: (n) => /* @__PURE__ */ a.jsx(ls, { ...n, userFlow: t, pageId: e }),
|
|
341
|
+
checkbox: (n) => /* @__PURE__ */ a.jsx(Yr, { ...n, userFlow: t, pageId: e }),
|
|
342
|
+
code: (n) => /* @__PURE__ */ a.jsx(ns, { ...n, userFlow: t, pageId: e }),
|
|
343
|
+
divider: (n) => /* @__PURE__ */ a.jsx(us, { ...n }),
|
|
344
|
+
drawer: (n) => /* @__PURE__ */ a.jsx(ys, { ...n, userFlow: t, pageId: e }),
|
|
345
|
+
heading: (n) => On(n),
|
|
346
|
+
link: (n) => /* @__PURE__ */ a.jsx(js, { ...n, userFlow: t, pageId: e }),
|
|
347
|
+
pill: (n) => /* @__PURE__ */ a.jsx(As, { ...n }),
|
|
348
|
+
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx(Os, { ...n }),
|
|
349
|
+
modal: (n) => /* @__PURE__ */ a.jsx(vs, { ...n, userFlow: t, pageId: e }),
|
|
350
|
+
roundButton: (n) => /* @__PURE__ */ a.jsx($s, { ...n, userFlow: t, pageId: e }),
|
|
351
|
+
row: (n) => /* @__PURE__ */ a.jsx(Ls, { ...n, userFlow: t, pageId: e }),
|
|
352
|
+
select: (n) => /* @__PURE__ */ a.jsx(Vs, { ...n, userFlow: t, pageId: e }),
|
|
353
|
+
switch: (n) => /* @__PURE__ */ a.jsx(ta, { ...n, userFlow: t, pageId: e }),
|
|
354
|
+
spacing: (n) => /* @__PURE__ */ a.jsx(Fs, { ...n, userFlow: t, pageId: e }),
|
|
355
|
+
table: (n) => /* @__PURE__ */ a.jsx(ia, { ...n, userFlow: t, pageId: e }),
|
|
356
|
+
tabs: (n) => /* @__PURE__ */ a.jsx(ua, { ...n, userFlow: t, pageId: e }),
|
|
357
|
+
text: (n) => $n(n),
|
|
358
|
+
textField: (n) => /* @__PURE__ */ a.jsx(ga, { ...n, userFlow: t, pageId: e }),
|
|
359
|
+
toast: (n) => /* @__PURE__ */ a.jsx(pa, { ...n, userFlow: t, pageId: e })
|
|
360
360
|
};
|
|
361
|
-
return (c =
|
|
361
|
+
return (c = r == null ? void 0 : r.filter(Boolean)) == null ? void 0 : c.map((n) => {
|
|
362
362
|
const _ = o[n.component];
|
|
363
363
|
return _ ? _({ ...n, userFlow: t, pageId: e }) : null;
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
|
-
function
|
|
366
|
+
function Dn(t) {
|
|
367
367
|
return !!(t == null || typeof t == "string" && t.trim() === "" || Array.isArray(t) && t.length === 0);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function me(t, e) {
|
|
370
370
|
if (!(e != null && e.length))
|
|
371
371
|
return !1;
|
|
372
|
-
for (const
|
|
373
|
-
if (
|
|
374
|
-
const
|
|
375
|
-
if (
|
|
372
|
+
for (const r of e)
|
|
373
|
+
if (r.when === "empty") {
|
|
374
|
+
const s = t == null ? void 0 : t[r.key];
|
|
375
|
+
if (Dn(s))
|
|
376
376
|
return !0;
|
|
377
377
|
}
|
|
378
378
|
return !1;
|
|
379
379
|
}
|
|
380
380
|
function B(t, e) {
|
|
381
|
-
const
|
|
381
|
+
const r = v((s) => {
|
|
382
382
|
var o;
|
|
383
|
-
return (o =
|
|
383
|
+
return (o = s[t]) == null ? void 0 : o.entries;
|
|
384
384
|
});
|
|
385
385
|
return D(
|
|
386
386
|
() => ({
|
|
387
|
-
disabled:
|
|
387
|
+
disabled: me(r, e)
|
|
388
388
|
}),
|
|
389
|
-
[e,
|
|
389
|
+
[e, r]
|
|
390
390
|
);
|
|
391
391
|
}
|
|
392
|
-
const
|
|
392
|
+
const st = (t) => {
|
|
393
393
|
if (!t)
|
|
394
394
|
return { "content-type": "application/json" };
|
|
395
395
|
if (typeof t == "function")
|
|
@@ -401,89 +401,89 @@ const rt = (t) => {
|
|
|
401
401
|
return { "content-type": "application/json", Authorization: t };
|
|
402
402
|
}
|
|
403
403
|
return t;
|
|
404
|
-
}, ft = () => new AbortController(),
|
|
404
|
+
}, ft = () => new AbortController(), Rn = (t, e = {}, r = {}, s = !1, o) => {
|
|
405
405
|
const i = ft();
|
|
406
|
-
|
|
407
|
-
const c =
|
|
406
|
+
s && i.abort();
|
|
407
|
+
const c = st(e);
|
|
408
408
|
return {
|
|
409
409
|
call: X.get(t, {
|
|
410
410
|
headers: {
|
|
411
411
|
...c
|
|
412
412
|
},
|
|
413
|
-
params:
|
|
413
|
+
params: r,
|
|
414
414
|
signal: i.signal,
|
|
415
415
|
_userFlow: o
|
|
416
416
|
}),
|
|
417
417
|
controller: i
|
|
418
418
|
};
|
|
419
|
-
},
|
|
419
|
+
}, St = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
420
420
|
const c = ft();
|
|
421
421
|
o && c.abort();
|
|
422
|
-
const n =
|
|
422
|
+
const n = st(e);
|
|
423
423
|
return {
|
|
424
|
-
call: X.post(t,
|
|
424
|
+
call: X.post(t, r, {
|
|
425
425
|
headers: {
|
|
426
426
|
...n
|
|
427
427
|
},
|
|
428
|
-
params:
|
|
428
|
+
params: s,
|
|
429
429
|
signal: c.signal,
|
|
430
430
|
_userFlow: i
|
|
431
431
|
}),
|
|
432
432
|
controller: c
|
|
433
433
|
};
|
|
434
|
-
},
|
|
434
|
+
}, Ln = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
435
435
|
const c = ft();
|
|
436
436
|
o && c.abort();
|
|
437
|
-
const n =
|
|
437
|
+
const n = st(e);
|
|
438
438
|
return {
|
|
439
|
-
call: X.put(t,
|
|
439
|
+
call: X.put(t, r, {
|
|
440
440
|
headers: {
|
|
441
441
|
...n
|
|
442
442
|
},
|
|
443
|
-
params:
|
|
443
|
+
params: s,
|
|
444
444
|
signal: c.signal,
|
|
445
445
|
_userFlow: i
|
|
446
446
|
}),
|
|
447
447
|
controller: c
|
|
448
448
|
};
|
|
449
|
-
},
|
|
449
|
+
}, In = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
450
450
|
const c = ft();
|
|
451
451
|
o && c.abort();
|
|
452
|
-
const n =
|
|
452
|
+
const n = st(e);
|
|
453
453
|
return {
|
|
454
|
-
call: X.patch(t,
|
|
454
|
+
call: X.patch(t, r, {
|
|
455
455
|
headers: {
|
|
456
456
|
...n
|
|
457
457
|
},
|
|
458
|
-
params:
|
|
458
|
+
params: s,
|
|
459
459
|
signal: c.signal,
|
|
460
460
|
_userFlow: i
|
|
461
461
|
}),
|
|
462
462
|
controller: c
|
|
463
463
|
};
|
|
464
|
-
}, qn = (t, e = {},
|
|
464
|
+
}, qn = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
465
465
|
const c = ft();
|
|
466
466
|
o && c.abort();
|
|
467
|
-
const n =
|
|
467
|
+
const n = st(e);
|
|
468
468
|
return {
|
|
469
469
|
call: X.delete(t, {
|
|
470
470
|
headers: {
|
|
471
471
|
...n
|
|
472
472
|
},
|
|
473
|
-
data:
|
|
474
|
-
params:
|
|
473
|
+
data: r,
|
|
474
|
+
params: s,
|
|
475
475
|
signal: c.signal,
|
|
476
476
|
_userFlow: i
|
|
477
477
|
}),
|
|
478
478
|
controller: c
|
|
479
479
|
};
|
|
480
|
-
},
|
|
480
|
+
}, ge = () => {
|
|
481
481
|
let t;
|
|
482
|
-
return { callEndpoint: async (
|
|
483
|
-
|
|
482
|
+
return { callEndpoint: async (s) => {
|
|
483
|
+
s.controller && (t = s.controller);
|
|
484
484
|
let o = {};
|
|
485
485
|
try {
|
|
486
|
-
o = await
|
|
486
|
+
o = await s.call;
|
|
487
487
|
} catch (i) {
|
|
488
488
|
throw i;
|
|
489
489
|
}
|
|
@@ -491,14 +491,14 @@ const rt = (t) => {
|
|
|
491
491
|
}, cancelEndpoint: () => {
|
|
492
492
|
t && t.abort();
|
|
493
493
|
} };
|
|
494
|
-
},
|
|
494
|
+
}, pe = async (t, e, r = "", s = {}, o = {}) => {
|
|
495
495
|
try {
|
|
496
|
-
const { callEndpoint: i } =
|
|
497
|
-
|
|
498
|
-
const d = `${c}/not-front/next-ui/?${l.toString()}`, u =
|
|
496
|
+
const { callEndpoint: i } = ge(), { api: c, headers: n } = t, _ = bn(), l = new URLSearchParams({ session_name: e });
|
|
497
|
+
r && l.append("hash_code", r), _ && l.append("sessionId", _);
|
|
498
|
+
const d = `${c}/not-front/next-ui/?${l.toString()}`, u = st(n), h = St(
|
|
499
499
|
d,
|
|
500
500
|
u,
|
|
501
|
-
|
|
501
|
+
s,
|
|
502
502
|
o,
|
|
503
503
|
!1,
|
|
504
504
|
e
|
|
@@ -507,7 +507,7 @@ const rt = (t) => {
|
|
|
507
507
|
} catch (i) {
|
|
508
508
|
return console.error(i), Promise.reject(i);
|
|
509
509
|
}
|
|
510
|
-
},
|
|
510
|
+
}, be = (t) => {
|
|
511
511
|
const e = t == null ? void 0 : t.toLowerCase();
|
|
512
512
|
switch (e) {
|
|
513
513
|
case "post":
|
|
@@ -519,11 +519,11 @@ const rt = (t) => {
|
|
|
519
519
|
default:
|
|
520
520
|
return "get";
|
|
521
521
|
}
|
|
522
|
-
},
|
|
523
|
-
const { url:
|
|
524
|
-
if (c.push(`${n}=${e}`), typeof
|
|
522
|
+
}, Kn = (t, e, r) => {
|
|
523
|
+
const { url: s, paginationKeys: o, params: i } = t, c = [], n = (o == null ? void 0 : o.page) ?? "page";
|
|
524
|
+
if (c.push(`${n}=${e}`), typeof r == "string") {
|
|
525
525
|
const d = (o == null ? void 0 : o.text) ?? "text";
|
|
526
|
-
c.push(`${d}=${encodeURIComponent(
|
|
526
|
+
c.push(`${d}=${encodeURIComponent(r || "")}`);
|
|
527
527
|
}
|
|
528
528
|
if (i && typeof i == "object") {
|
|
529
529
|
const d = Object.entries(i).map(
|
|
@@ -532,15 +532,15 @@ const rt = (t) => {
|
|
|
532
532
|
c.push(...d);
|
|
533
533
|
}
|
|
534
534
|
const _ = c.join("&");
|
|
535
|
-
return _ ? `${
|
|
536
|
-
},
|
|
535
|
+
return _ ? `${s}?${_}` : s;
|
|
536
|
+
}, Bt = (t, e, r, s) => {
|
|
537
537
|
const { type: o, url: i, method: c, headers: n } = t;
|
|
538
538
|
if (o === "rest") {
|
|
539
|
-
const _ =
|
|
539
|
+
const _ = Kn(t, e, r), d = { ...(t == null ? void 0 : t.data) ?? {}, ...s ?? {} };
|
|
540
540
|
return {
|
|
541
541
|
type: "rest",
|
|
542
542
|
url: _,
|
|
543
|
-
method:
|
|
543
|
+
method: be(c),
|
|
544
544
|
headers: n,
|
|
545
545
|
data: d
|
|
546
546
|
};
|
|
@@ -553,48 +553,48 @@ const rt = (t) => {
|
|
|
553
553
|
query: t == null ? void 0 : t.query,
|
|
554
554
|
variables: {
|
|
555
555
|
...(t == null ? void 0 : t.variables) || {},
|
|
556
|
-
...typeof
|
|
556
|
+
...typeof r == "string" ? { text: r } : {},
|
|
557
557
|
page: e
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
}, H = () => {
|
|
561
|
-
const t = v((n) => n), { callEndpoint: e } =
|
|
561
|
+
const t = v((n) => n), { callEndpoint: e } = ge(), r = async (n, _, l, d, u = !0) => {
|
|
562
562
|
var h;
|
|
563
563
|
try {
|
|
564
564
|
const f = (h = t[n]) == null ? void 0 : h.apiConfig, y = {
|
|
565
565
|
state: { ...l },
|
|
566
566
|
triggerKey: d
|
|
567
567
|
};
|
|
568
|
-
return u &&
|
|
568
|
+
return u && P(n, !0), await pe(
|
|
569
569
|
f,
|
|
570
570
|
n,
|
|
571
571
|
_,
|
|
572
572
|
y
|
|
573
573
|
);
|
|
574
574
|
} catch (f) {
|
|
575
|
-
throw u &&
|
|
575
|
+
throw u && P(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
|
|
576
576
|
}
|
|
577
|
-
},
|
|
577
|
+
}, s = (n, _) => {
|
|
578
578
|
const { url: l, headers: d, data: u, params: h } = n;
|
|
579
|
-
switch (
|
|
579
|
+
switch (be(n.method)) {
|
|
580
580
|
case "post":
|
|
581
|
-
return
|
|
581
|
+
return St(l, d, u, {}, !1, _);
|
|
582
582
|
case "put":
|
|
583
|
-
return
|
|
583
|
+
return Ln(l, d, u, {}, !1, _);
|
|
584
584
|
case "patch":
|
|
585
|
-
return
|
|
585
|
+
return In(l, d, u, {}, !1, _);
|
|
586
586
|
case "delete":
|
|
587
587
|
return qn(l, d, u, h, !1, _);
|
|
588
588
|
case "get":
|
|
589
589
|
default:
|
|
590
|
-
return
|
|
590
|
+
return Rn(l, d, h, !1, _);
|
|
591
591
|
}
|
|
592
592
|
}, o = (n, _) => {
|
|
593
593
|
const { url: l, headers: d } = n, u = {
|
|
594
594
|
query: n == null ? void 0 : n.query,
|
|
595
595
|
variables: (n == null ? void 0 : n.variables) || {}
|
|
596
596
|
};
|
|
597
|
-
return
|
|
597
|
+
return St(
|
|
598
598
|
l,
|
|
599
599
|
{
|
|
600
600
|
...d,
|
|
@@ -611,12 +611,12 @@ const rt = (t) => {
|
|
|
611
611
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
l &&
|
|
614
|
+
l && P(_, !0);
|
|
615
615
|
try {
|
|
616
616
|
let h;
|
|
617
617
|
switch (n == null ? void 0 : n.type) {
|
|
618
618
|
case "rest":
|
|
619
|
-
h =
|
|
619
|
+
h = s(n, _);
|
|
620
620
|
break;
|
|
621
621
|
case "graphql":
|
|
622
622
|
h = o(n, _);
|
|
@@ -636,49 +636,49 @@ const rt = (t) => {
|
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
} finally {
|
|
639
|
-
l &&
|
|
639
|
+
l && P(_, !1);
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
return {
|
|
643
|
-
getNextUI:
|
|
643
|
+
getNextUI: r,
|
|
644
644
|
fetchDataSource: i,
|
|
645
645
|
fetchAndGetNextUI: async (n, _, l, d, u) => {
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
P(n, !0);
|
|
648
648
|
const h = await i(u, n, !1);
|
|
649
|
-
return h && await
|
|
649
|
+
return h && await r(
|
|
650
650
|
n,
|
|
651
651
|
_,
|
|
652
652
|
l,
|
|
653
653
|
d
|
|
654
654
|
);
|
|
655
655
|
} catch (h) {
|
|
656
|
-
throw
|
|
656
|
+
throw P(n, !1), console.error(
|
|
657
657
|
"[fetchAndGetNextUI] Error fetching and navigating:",
|
|
658
658
|
h
|
|
659
659
|
), h;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
};
|
|
663
|
-
},
|
|
664
|
-
accordion:
|
|
665
|
-
accordionBody:
|
|
666
|
-
},
|
|
663
|
+
}, Bn = "_accordion_1ri2t_1", Mn = "_accordionBody_1ri2t_8", Qt = {
|
|
664
|
+
accordion: Bn,
|
|
665
|
+
accordionBody: Mn
|
|
666
|
+
}, Gn = (t) => {
|
|
667
667
|
const {
|
|
668
668
|
userFlow: e,
|
|
669
|
-
pageId:
|
|
670
|
-
responseKey:
|
|
669
|
+
pageId: r,
|
|
670
|
+
responseKey: s,
|
|
671
671
|
dependencies: o,
|
|
672
672
|
customContent: i,
|
|
673
673
|
actionContent: c,
|
|
674
674
|
components: n,
|
|
675
675
|
..._
|
|
676
|
-
} = t, { getNextUI: l } = H(), [d, u] =
|
|
676
|
+
} = t, { getNextUI: l } = H(), [d, u] = L(
|
|
677
677
|
_.checkboxChecked || !1
|
|
678
678
|
), { disabled: h } = B(
|
|
679
679
|
e,
|
|
680
680
|
o
|
|
681
|
-
), f = E(e,
|
|
681
|
+
), f = E(e, r, n), y = c ? E(e, r, c) : void 0, b = i ? E(e, r, i) : void 0, p = I(
|
|
682
682
|
async (g) => {
|
|
683
683
|
var C;
|
|
684
684
|
try {
|
|
@@ -686,14 +686,14 @@ const rt = (t) => {
|
|
|
686
686
|
u(j);
|
|
687
687
|
const w = {
|
|
688
688
|
...(C = v.getState()[e]) == null ? void 0 : C.entries,
|
|
689
|
-
[
|
|
689
|
+
[s]: j
|
|
690
690
|
};
|
|
691
|
-
if (
|
|
691
|
+
if (q(e, w), _.actionType === "GO_TO_NEXT_UI") {
|
|
692
692
|
const N = await l(
|
|
693
693
|
e,
|
|
694
|
-
|
|
694
|
+
r,
|
|
695
695
|
w,
|
|
696
|
-
|
|
696
|
+
s
|
|
697
697
|
);
|
|
698
698
|
N != null && N.data && K(e, N == null ? void 0 : N.data);
|
|
699
699
|
}
|
|
@@ -701,25 +701,25 @@ const rt = (t) => {
|
|
|
701
701
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
|
-
[e,
|
|
704
|
+
[e, r, s, _.actionType, l]
|
|
705
705
|
), x = _.disabled || h, m = {
|
|
706
706
|
..._,
|
|
707
|
-
className:
|
|
707
|
+
className: Qt.accordion,
|
|
708
708
|
disabled: x,
|
|
709
709
|
checkboxChecked: d,
|
|
710
710
|
onChanceCheckbox: _.hasCheckbox ? p : void 0,
|
|
711
711
|
actionContent: y ? /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-action-${C}`)) }) : void 0,
|
|
712
712
|
customContent: b ? /* @__PURE__ */ a.jsx(a.Fragment, { children: b.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-custom-${C}`)) }) : void 0,
|
|
713
|
-
children: f ? /* @__PURE__ */ a.jsx("section", { className:
|
|
713
|
+
children: f ? /* @__PURE__ */ a.jsx("section", { className: Qt.accordionBody, children: f.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-child-${C}`)) }) : void 0
|
|
714
714
|
};
|
|
715
|
-
return /* @__PURE__ */ a.jsx(
|
|
716
|
-
},
|
|
717
|
-
const e = ht.useThemeStore((c) => c.theme.mode),
|
|
715
|
+
return /* @__PURE__ */ a.jsx(De, { ...m });
|
|
716
|
+
}, Hn = (t) => {
|
|
717
|
+
const e = ht.useThemeStore((c) => c.theme.mode), r = t.dataSource, s = D(() => ({
|
|
718
718
|
url: t.dataSource.url,
|
|
719
719
|
method: t.dataSource.method,
|
|
720
720
|
headers: t.dataSource.headers,
|
|
721
|
-
params:
|
|
722
|
-
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers,
|
|
721
|
+
params: r == null ? void 0 : r.data
|
|
722
|
+
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, r == null ? void 0 : r.data]), o = t.locale ?? "en", i = D(() => {
|
|
723
723
|
var n, _, l, d, u;
|
|
724
724
|
const c = {
|
|
725
725
|
title: (n = t == null ? void 0 : t.translations) == null ? void 0 : n.title,
|
|
@@ -732,7 +732,7 @@ const rt = (t) => {
|
|
|
732
732
|
}, [t == null ? void 0 : t.translations]);
|
|
733
733
|
return U(() => {
|
|
734
734
|
t.onResolveProps && t.onResolveProps({
|
|
735
|
-
dataSource:
|
|
735
|
+
dataSource: s,
|
|
736
736
|
locale: o,
|
|
737
737
|
translations: i,
|
|
738
738
|
initialSuggestions: t.initialSuggestions,
|
|
@@ -740,28 +740,28 @@ const rt = (t) => {
|
|
|
740
740
|
});
|
|
741
741
|
}, [
|
|
742
742
|
t.onResolveProps,
|
|
743
|
-
|
|
743
|
+
s,
|
|
744
744
|
o,
|
|
745
745
|
i,
|
|
746
746
|
t.initialSuggestions,
|
|
747
747
|
e
|
|
748
748
|
]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx(
|
|
749
|
-
|
|
749
|
+
an,
|
|
750
750
|
{
|
|
751
|
-
dataSource:
|
|
751
|
+
dataSource: s,
|
|
752
752
|
locale: o,
|
|
753
753
|
translations: i,
|
|
754
754
|
initialSuggestions: t.initialSuggestions,
|
|
755
755
|
theme: e
|
|
756
756
|
}
|
|
757
757
|
);
|
|
758
|
-
},
|
|
759
|
-
promptCodeEditor:
|
|
760
|
-
},
|
|
758
|
+
}, Vn = "_promptCodeEditor_1d57s_1", Un = {
|
|
759
|
+
promptCodeEditor: Vn
|
|
760
|
+
}, zn = (t) => {
|
|
761
761
|
const {
|
|
762
762
|
userFlow: e,
|
|
763
|
-
responseKey:
|
|
764
|
-
codeBlockValue:
|
|
763
|
+
responseKey: r,
|
|
764
|
+
codeBlockValue: s,
|
|
765
765
|
language: o,
|
|
766
766
|
disabled: i,
|
|
767
767
|
dependencies: c,
|
|
@@ -769,8 +769,8 @@ const rt = (t) => {
|
|
|
769
769
|
inputLabel: _,
|
|
770
770
|
inputPlaceholder: l,
|
|
771
771
|
codeBlockLabel: d
|
|
772
|
-
} = t, u = ht.useThemeStore((g) => g.theme.mode), [h, f] =
|
|
773
|
-
|
|
772
|
+
} = t, u = ht.useThemeStore((g) => g.theme.mode), [h, f] = L(
|
|
773
|
+
s || ""
|
|
774
774
|
), { disabled: y } = B(
|
|
775
775
|
e,
|
|
776
776
|
c
|
|
@@ -782,14 +782,14 @@ const rt = (t) => {
|
|
|
782
782
|
}, m = (g) => {
|
|
783
783
|
f(g);
|
|
784
784
|
const C = {
|
|
785
|
-
[
|
|
785
|
+
[r]: g
|
|
786
786
|
};
|
|
787
|
-
|
|
787
|
+
q(e, C);
|
|
788
788
|
};
|
|
789
789
|
return U(() => {
|
|
790
|
-
|
|
791
|
-
}, [
|
|
792
|
-
|
|
790
|
+
s !== void 0 && s !== h && f(s);
|
|
791
|
+
}, [s]), /* @__PURE__ */ a.jsx("section", { className: Un.promptCodeEditor, children: /* @__PURE__ */ a.jsx(
|
|
792
|
+
on,
|
|
793
793
|
{
|
|
794
794
|
themeMode: u,
|
|
795
795
|
requestConfig: x,
|
|
@@ -802,15 +802,15 @@ const rt = (t) => {
|
|
|
802
802
|
onCodeChange: m
|
|
803
803
|
}
|
|
804
804
|
) });
|
|
805
|
-
},
|
|
806
|
-
summaryCard:
|
|
807
|
-
},
|
|
808
|
-
const e = t.dataSource,
|
|
805
|
+
}, Xn = "_summaryCard_jva4h_1", Jn = {
|
|
806
|
+
summaryCard: Xn
|
|
807
|
+
}, Wn = (t) => {
|
|
808
|
+
const e = t.dataSource, r = D(() => ({
|
|
809
809
|
url: t.dataSource.url,
|
|
810
810
|
method: t.dataSource.method,
|
|
811
811
|
headers: t.dataSource.headers,
|
|
812
812
|
body: e == null ? void 0 : e.data
|
|
813
|
-
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, e == null ? void 0 : e.data]),
|
|
813
|
+
}), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, e == null ? void 0 : e.data]), s = t.locale ?? "en", o = D(() => {
|
|
814
814
|
var c, n, _;
|
|
815
815
|
const i = {
|
|
816
816
|
title: (c = t == null ? void 0 : t.translations) == null ? void 0 : c.title,
|
|
@@ -823,38 +823,38 @@ const rt = (t) => {
|
|
|
823
823
|
}, [t == null ? void 0 : t.translations]);
|
|
824
824
|
return U(() => {
|
|
825
825
|
t.onResolveProps && t.onResolveProps({
|
|
826
|
-
dataSource:
|
|
827
|
-
locale:
|
|
826
|
+
dataSource: r,
|
|
827
|
+
locale: s,
|
|
828
828
|
translations: o
|
|
829
829
|
});
|
|
830
|
-
}, [t.onResolveProps,
|
|
831
|
-
|
|
830
|
+
}, [t.onResolveProps, r, s, o]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx("section", { className: Jn.summaryCard, children: /* @__PURE__ */ a.jsx(
|
|
831
|
+
cn,
|
|
832
832
|
{
|
|
833
|
-
dataSource:
|
|
834
|
-
locale:
|
|
833
|
+
dataSource: r,
|
|
834
|
+
locale: s,
|
|
835
835
|
translations: o
|
|
836
836
|
}
|
|
837
837
|
) });
|
|
838
|
-
},
|
|
839
|
-
body:
|
|
840
|
-
body_content:
|
|
841
|
-
},
|
|
842
|
-
boxNotFront:
|
|
843
|
-
slotStack:
|
|
844
|
-
},
|
|
838
|
+
}, Yn = "_body_14tsv_1", Qn = "_body_content_14tsv_5", Zt = {
|
|
839
|
+
body: Yn,
|
|
840
|
+
body_content: Qn
|
|
841
|
+
}, Zn = ({ inputs: t }) => /* @__PURE__ */ a.jsx("section", { className: Zt.body, children: /* @__PURE__ */ a.jsx("div", { className: Zt.body_content, children: t.map((e, r) => /* @__PURE__ */ a.jsx(A, { children: e }, r)) }) }), Pn = "_boxNotFront_67q2e_1", Fn = "_slotStack_67q2e_5", Pt = {
|
|
842
|
+
boxNotFront: Pn,
|
|
843
|
+
slotStack: Fn
|
|
844
|
+
}, tr = (t) => {
|
|
845
845
|
const {
|
|
846
846
|
userFlow: e,
|
|
847
|
-
pageId:
|
|
848
|
-
component:
|
|
847
|
+
pageId: r,
|
|
848
|
+
component: s,
|
|
849
849
|
hash: o,
|
|
850
850
|
responseKey: i,
|
|
851
851
|
content: c
|
|
852
852
|
} = t, n = ht.useThemeStore((d) => d.theme.mode) === "dark", _ = E(
|
|
853
853
|
e,
|
|
854
|
-
|
|
854
|
+
r,
|
|
855
855
|
c != null && c.length ? c : null
|
|
856
|
-
), l = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
857
|
-
return /* @__PURE__ */ a.jsx(
|
|
856
|
+
), l = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: Pt.slotStack, children: _.map((d, u) => /* @__PURE__ */ a.jsx(A, { children: d }, `box-${o}-${u}`)) }) : null;
|
|
857
|
+
return /* @__PURE__ */ a.jsx(Re, { className: Pt.boxNotFront, darkMode: n, children: l });
|
|
858
858
|
};
|
|
859
859
|
var vt = { exports: {} };
|
|
860
860
|
/*!
|
|
@@ -863,51 +863,51 @@ var vt = { exports: {} };
|
|
|
863
863
|
http://jedwatson.github.io/classnames
|
|
864
864
|
*/
|
|
865
865
|
var Ft;
|
|
866
|
-
function
|
|
866
|
+
function er() {
|
|
867
867
|
return Ft || (Ft = 1, (function(t) {
|
|
868
868
|
(function() {
|
|
869
869
|
var e = {}.hasOwnProperty;
|
|
870
|
-
function
|
|
871
|
-
for (var
|
|
870
|
+
function r() {
|
|
871
|
+
for (var s = [], o = 0; o < arguments.length; o++) {
|
|
872
872
|
var i = arguments[o];
|
|
873
873
|
if (i) {
|
|
874
874
|
var c = typeof i;
|
|
875
875
|
if (c === "string" || c === "number")
|
|
876
|
-
|
|
876
|
+
s.push(i);
|
|
877
877
|
else if (Array.isArray(i)) {
|
|
878
878
|
if (i.length) {
|
|
879
|
-
var n =
|
|
880
|
-
n &&
|
|
879
|
+
var n = r.apply(null, i);
|
|
880
|
+
n && s.push(n);
|
|
881
881
|
}
|
|
882
882
|
} else if (c === "object") {
|
|
883
883
|
if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
|
|
884
|
-
|
|
884
|
+
s.push(i.toString());
|
|
885
885
|
continue;
|
|
886
886
|
}
|
|
887
887
|
for (var _ in i)
|
|
888
|
-
e.call(i, _) && i[_] &&
|
|
888
|
+
e.call(i, _) && i[_] && s.push(_);
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
return
|
|
892
|
+
return s.join(" ");
|
|
893
893
|
}
|
|
894
|
-
t.exports ? (
|
|
894
|
+
t.exports ? (r.default = r, t.exports = r) : window.classNames = r;
|
|
895
895
|
})();
|
|
896
896
|
})(vt)), vt.exports;
|
|
897
897
|
}
|
|
898
|
-
var
|
|
899
|
-
const et = /* @__PURE__ */
|
|
900
|
-
fieldset:
|
|
901
|
-
fieldsetColumn:
|
|
902
|
-
legend:
|
|
903
|
-
options:
|
|
904
|
-
optionsRow:
|
|
905
|
-
optionsColumn:
|
|
906
|
-
},
|
|
898
|
+
var nr = er();
|
|
899
|
+
const et = /* @__PURE__ */ Tn(nr), rr = "_fieldset_1xrth_1", sr = "_fieldsetColumn_1xrth_8", ar = "_legend_1xrth_14", or = "_options_1xrth_20", cr = "_optionsRow_1xrth_25", ir = "_optionsColumn_1xrth_36", F = {
|
|
900
|
+
fieldset: rr,
|
|
901
|
+
fieldsetColumn: sr,
|
|
902
|
+
legend: ar,
|
|
903
|
+
options: or,
|
|
904
|
+
optionsRow: cr,
|
|
905
|
+
optionsColumn: ir
|
|
906
|
+
}, lr = (t) => {
|
|
907
907
|
const {
|
|
908
908
|
userFlow: e,
|
|
909
|
-
pageId:
|
|
910
|
-
responseKey:
|
|
909
|
+
pageId: r,
|
|
910
|
+
responseKey: s,
|
|
911
911
|
label: o,
|
|
912
912
|
value: i,
|
|
913
913
|
required: c,
|
|
@@ -921,23 +921,23 @@ const et = /* @__PURE__ */ En(ts), es = "_fieldset_1xrth_1", ns = "_fieldsetColu
|
|
|
921
921
|
), y = v(
|
|
922
922
|
(g) => {
|
|
923
923
|
var C, j;
|
|
924
|
-
return (j = (C = g[e]) == null ? void 0 : C.entries) == null ? void 0 : j[
|
|
924
|
+
return (j = (C = g[e]) == null ? void 0 : C.entries) == null ? void 0 : j[s];
|
|
925
925
|
}
|
|
926
|
-
), b = y != null ? String(y) : i ?? "", p = f, x = D(() => o ? c ? `${o} *` : o : null, [o, c]), m =
|
|
926
|
+
), b = y != null ? String(y) : i ?? "", p = f, x = D(() => o ? c ? `${o} *` : o : null, [o, c]), m = I(
|
|
927
927
|
async (g) => {
|
|
928
928
|
var C;
|
|
929
929
|
if (!p)
|
|
930
930
|
try {
|
|
931
931
|
const j = {
|
|
932
932
|
...(C = v.getState()[e]) == null ? void 0 : C.entries,
|
|
933
|
-
[
|
|
933
|
+
[s]: g
|
|
934
934
|
};
|
|
935
|
-
if (
|
|
935
|
+
if (q(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
|
|
936
936
|
const k = await h(
|
|
937
937
|
e,
|
|
938
|
-
s,
|
|
939
|
-
j,
|
|
940
938
|
r,
|
|
939
|
+
j,
|
|
940
|
+
s,
|
|
941
941
|
n === "GO_TO_NEXT_UI"
|
|
942
942
|
);
|
|
943
943
|
k != null && k.data && K(e, k == null ? void 0 : k.data);
|
|
@@ -950,8 +950,8 @@ const et = /* @__PURE__ */ En(ts), es = "_fieldset_1xrth_1", ns = "_fieldsetColu
|
|
|
950
950
|
n,
|
|
951
951
|
h,
|
|
952
952
|
p,
|
|
953
|
-
s,
|
|
954
953
|
r,
|
|
954
|
+
s,
|
|
955
955
|
e
|
|
956
956
|
]
|
|
957
957
|
);
|
|
@@ -959,22 +959,22 @@ const et = /* @__PURE__ */ En(ts), es = "_fieldset_1xrth_1", ns = "_fieldsetColu
|
|
|
959
959
|
"fieldset",
|
|
960
960
|
{
|
|
961
961
|
className: et(
|
|
962
|
-
|
|
963
|
-
u === "column" &&
|
|
962
|
+
F.fieldset,
|
|
963
|
+
u === "column" && F.fieldsetColumn
|
|
964
964
|
),
|
|
965
965
|
children: [
|
|
966
|
-
x ? /* @__PURE__ */ a.jsx("legend", { className:
|
|
966
|
+
x ? /* @__PURE__ */ a.jsx("legend", { className: F.legend, children: x }) : null,
|
|
967
967
|
/* @__PURE__ */ a.jsx(
|
|
968
968
|
"div",
|
|
969
969
|
{
|
|
970
970
|
className: et(
|
|
971
|
-
|
|
972
|
-
u === "column" ?
|
|
971
|
+
F.options,
|
|
972
|
+
u === "column" ? F.optionsColumn : F.optionsRow
|
|
973
973
|
),
|
|
974
974
|
children: d.map((g) => /* @__PURE__ */ a.jsx(
|
|
975
|
-
|
|
975
|
+
Le,
|
|
976
976
|
{
|
|
977
|
-
name:
|
|
977
|
+
name: s,
|
|
978
978
|
value: g.value,
|
|
979
979
|
checked: b === g.value,
|
|
980
980
|
disabled: p || g.disabled,
|
|
@@ -990,40 +990,40 @@ const et = /* @__PURE__ */ En(ts), es = "_fieldset_1xrth_1", ns = "_fieldsetColu
|
|
|
990
990
|
]
|
|
991
991
|
}
|
|
992
992
|
);
|
|
993
|
-
},
|
|
993
|
+
}, dr = ({
|
|
994
994
|
userFlow: t,
|
|
995
995
|
pageId: e,
|
|
996
|
-
component:
|
|
997
|
-
hash:
|
|
996
|
+
component: r,
|
|
997
|
+
hash: s,
|
|
998
998
|
responseKey: o,
|
|
999
999
|
items: i,
|
|
1000
1000
|
itemActive: c,
|
|
1001
1001
|
darkMode: n
|
|
1002
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
1002
|
+
}) => /* @__PURE__ */ a.jsx(Ie, { items: i, itemActive: c, darkMode: n }), _r = ({
|
|
1003
1003
|
userFlow: t,
|
|
1004
1004
|
pageId: e,
|
|
1005
|
-
component:
|
|
1006
|
-
hash:
|
|
1005
|
+
component: r,
|
|
1006
|
+
hash: s,
|
|
1007
1007
|
responseKey: o,
|
|
1008
1008
|
total: i,
|
|
1009
1009
|
done: c,
|
|
1010
1010
|
inProgress: n
|
|
1011
|
-
}) => /* @__PURE__ */ a.jsx(qe, { total: i, done: c, inProgress: n }),
|
|
1011
|
+
}) => /* @__PURE__ */ a.jsx(qe, { total: i, done: c, inProgress: n }), ur = ({
|
|
1012
1012
|
userFlow: t,
|
|
1013
1013
|
items: e,
|
|
1014
|
-
responseKey:
|
|
1014
|
+
responseKey: r
|
|
1015
1015
|
}) => {
|
|
1016
|
-
const { getNextUI:
|
|
1016
|
+
const { getNextUI: s } = H(), o = I(
|
|
1017
1017
|
async ({ actionType: c, hashCode: n, redirectUrl: _ }) => {
|
|
1018
1018
|
var l;
|
|
1019
1019
|
try {
|
|
1020
1020
|
switch (c) {
|
|
1021
1021
|
case "GO_TO_NEXT_UI":
|
|
1022
|
-
const d = await
|
|
1022
|
+
const d = await s(
|
|
1023
1023
|
t,
|
|
1024
1024
|
n,
|
|
1025
1025
|
{ ...(l = v.getState()[t]) == null ? void 0 : l.entries },
|
|
1026
|
-
|
|
1026
|
+
r
|
|
1027
1027
|
);
|
|
1028
1028
|
d != null && d.data && K(t, d == null ? void 0 : d.data);
|
|
1029
1029
|
break;
|
|
@@ -1043,23 +1043,23 @@ const et = /* @__PURE__ */ En(ts), es = "_fieldset_1xrth_1", ns = "_fieldsetColu
|
|
|
1043
1043
|
title: c == null ? void 0 : c.title,
|
|
1044
1044
|
component: /* @__PURE__ */ a.jsx("div", { onClick: () => o(c) })
|
|
1045
1045
|
})), []);
|
|
1046
|
-
return /* @__PURE__ */ a.jsx(
|
|
1046
|
+
return /* @__PURE__ */ a.jsx(Ke, { items: i });
|
|
1047
1047
|
};
|
|
1048
1048
|
function xt(t, e) {
|
|
1049
|
-
const { getNextUI:
|
|
1050
|
-
return
|
|
1049
|
+
const { getNextUI: r, fetchDataSource: s, fetchAndGetNextUI: o } = H();
|
|
1050
|
+
return I(
|
|
1051
1051
|
async (i) => {
|
|
1052
1052
|
var h, f, y, b;
|
|
1053
1053
|
const { responseKey: c, actionType: n, dataSource: _, redirectUrl: l, dependencies: d } = i, u = (h = v.getState()[t]) == null ? void 0 : h.entries;
|
|
1054
|
-
if (!
|
|
1054
|
+
if (!me(u, d))
|
|
1055
1055
|
try {
|
|
1056
1056
|
const p = {
|
|
1057
1057
|
...(f = v.getState()[t]) == null ? void 0 : f.entries,
|
|
1058
1058
|
[c]: { status: 200 }
|
|
1059
1059
|
};
|
|
1060
|
-
switch (
|
|
1060
|
+
switch (q(t, p), n) {
|
|
1061
1061
|
case "CLOSE_MODAL":
|
|
1062
|
-
|
|
1062
|
+
Kt(t, !1);
|
|
1063
1063
|
break;
|
|
1064
1064
|
case "CLOSE_DRAWER":
|
|
1065
1065
|
_t(t, !1);
|
|
@@ -1068,7 +1068,7 @@ function xt(t, e) {
|
|
|
1068
1068
|
_t(t, !0);
|
|
1069
1069
|
break;
|
|
1070
1070
|
case "GO_TO_NEXT_UI": {
|
|
1071
|
-
const x = await
|
|
1071
|
+
const x = await r(
|
|
1072
1072
|
t,
|
|
1073
1073
|
e,
|
|
1074
1074
|
p,
|
|
@@ -1089,12 +1089,12 @@ function xt(t, e) {
|
|
|
1089
1089
|
break;
|
|
1090
1090
|
}
|
|
1091
1091
|
case "FETCH_DATA_SOURCE": {
|
|
1092
|
-
const x = await
|
|
1092
|
+
const x = await s(
|
|
1093
1093
|
_,
|
|
1094
1094
|
t,
|
|
1095
1095
|
!1
|
|
1096
1096
|
);
|
|
1097
|
-
|
|
1097
|
+
q(t, {
|
|
1098
1098
|
[c]: {
|
|
1099
1099
|
status: x == null ? void 0 : x.status,
|
|
1100
1100
|
content: x == null ? void 0 : x.data
|
|
@@ -1103,7 +1103,7 @@ function xt(t, e) {
|
|
|
1103
1103
|
break;
|
|
1104
1104
|
}
|
|
1105
1105
|
case "GET_DATA_SOURCE": {
|
|
1106
|
-
const x = await
|
|
1106
|
+
const x = await r(
|
|
1107
1107
|
t,
|
|
1108
1108
|
e,
|
|
1109
1109
|
p,
|
|
@@ -1111,15 +1111,15 @@ function xt(t, e) {
|
|
|
1111
1111
|
), m = (y = x == null ? void 0 : x.data) == null ? void 0 : y.content;
|
|
1112
1112
|
if ((m == null ? void 0 : m.type) !== "fetch")
|
|
1113
1113
|
break;
|
|
1114
|
-
const g = m == null ? void 0 : m.dataSource, C = await
|
|
1114
|
+
const g = m == null ? void 0 : m.dataSource, C = await s(g, t, !1), j = {
|
|
1115
1115
|
...(b = v.getState()[t]) == null ? void 0 : b.entries,
|
|
1116
1116
|
[c]: {
|
|
1117
1117
|
status: C == null ? void 0 : C.status,
|
|
1118
1118
|
content: C == null ? void 0 : C.data
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
|
-
|
|
1122
|
-
const w = await
|
|
1121
|
+
q(t, j);
|
|
1122
|
+
const w = await r(
|
|
1123
1123
|
t,
|
|
1124
1124
|
e,
|
|
1125
1125
|
j,
|
|
@@ -1140,18 +1140,18 @@ function xt(t, e) {
|
|
|
1140
1140
|
},
|
|
1141
1141
|
[
|
|
1142
1142
|
o,
|
|
1143
|
-
r,
|
|
1144
1143
|
s,
|
|
1144
|
+
r,
|
|
1145
1145
|
e,
|
|
1146
1146
|
t
|
|
1147
1147
|
]
|
|
1148
1148
|
);
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const hr = (t) => {
|
|
1151
1151
|
const {
|
|
1152
1152
|
userFlow: e,
|
|
1153
|
-
pageId:
|
|
1154
|
-
responseKey:
|
|
1153
|
+
pageId: r,
|
|
1154
|
+
responseKey: s,
|
|
1155
1155
|
actionType: o,
|
|
1156
1156
|
label: i,
|
|
1157
1157
|
content: c,
|
|
@@ -1160,20 +1160,20 @@ const _s = (t) => {
|
|
|
1160
1160
|
dependencies: l,
|
|
1161
1161
|
onClick: d,
|
|
1162
1162
|
...u
|
|
1163
|
-
} = t, h = xt(e,
|
|
1163
|
+
} = t, h = xt(e, r), { disabled: f } = B(
|
|
1164
1164
|
e,
|
|
1165
1165
|
l
|
|
1166
1166
|
), y = {
|
|
1167
1167
|
...u,
|
|
1168
1168
|
children: c ?? i
|
|
1169
|
-
}, b = (y == null ? void 0 : y.disabled) ?? f, [p, x] =
|
|
1169
|
+
}, b = (y == null ? void 0 : y.disabled) ?? f, [p, x] = L(!1), m = ut(!1), g = I(async () => {
|
|
1170
1170
|
if (m.current)
|
|
1171
1171
|
return;
|
|
1172
1172
|
const C = o === "FETCH_DATA_SOURCE";
|
|
1173
1173
|
C && (m.current = !0, x(!0));
|
|
1174
1174
|
try {
|
|
1175
1175
|
await h({
|
|
1176
|
-
responseKey:
|
|
1176
|
+
responseKey: s,
|
|
1177
1177
|
actionType: o,
|
|
1178
1178
|
dataSource: n,
|
|
1179
1179
|
redirectUrl: _,
|
|
@@ -1189,11 +1189,11 @@ const _s = (t) => {
|
|
|
1189
1189
|
n,
|
|
1190
1190
|
l,
|
|
1191
1191
|
_,
|
|
1192
|
-
|
|
1192
|
+
s,
|
|
1193
1193
|
h
|
|
1194
1194
|
]);
|
|
1195
1195
|
return /* @__PURE__ */ a.jsx(
|
|
1196
|
-
|
|
1196
|
+
Be,
|
|
1197
1197
|
{
|
|
1198
1198
|
...y,
|
|
1199
1199
|
loading: y.loading || p,
|
|
@@ -1201,13 +1201,13 @@ const _s = (t) => {
|
|
|
1201
1201
|
onClick: () => !b && !p && (d ?? g)()
|
|
1202
1202
|
}
|
|
1203
1203
|
);
|
|
1204
|
-
},
|
|
1205
|
-
slotStack:
|
|
1206
|
-
},
|
|
1204
|
+
}, fr = "_slotStack_12u4t_5", At = {
|
|
1205
|
+
slotStack: fr
|
|
1206
|
+
}, xr = (t) => {
|
|
1207
1207
|
const {
|
|
1208
1208
|
userFlow: e,
|
|
1209
|
-
pageId:
|
|
1210
|
-
component:
|
|
1209
|
+
pageId: r,
|
|
1210
|
+
component: s,
|
|
1211
1211
|
hash: o,
|
|
1212
1212
|
responseKey: i,
|
|
1213
1213
|
dependencies: c,
|
|
@@ -1219,15 +1219,15 @@ const _s = (t) => {
|
|
|
1219
1219
|
c
|
|
1220
1220
|
), u = E(
|
|
1221
1221
|
e,
|
|
1222
|
-
|
|
1222
|
+
r,
|
|
1223
1223
|
n && n.length > 0 ? n : null
|
|
1224
1224
|
), h = E(
|
|
1225
1225
|
e,
|
|
1226
|
-
|
|
1226
|
+
r,
|
|
1227
1227
|
_ && _.length > 0 ? _ : null
|
|
1228
1228
|
), f = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: At.slotStack, children: u.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `card-accordion-body-${o}-${x}`)) }) : void 0, y = h && h.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: At.slotStack, children: h.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `card-accordion-actions-${o}-${x}`)) }) : void 0, b = l.disabled || d;
|
|
1229
1229
|
return /* @__PURE__ */ a.jsx(
|
|
1230
|
-
|
|
1230
|
+
Me,
|
|
1231
1231
|
{
|
|
1232
1232
|
...l,
|
|
1233
1233
|
disabled: b,
|
|
@@ -1235,13 +1235,13 @@ const _s = (t) => {
|
|
|
1235
1235
|
children: f ?? null
|
|
1236
1236
|
}
|
|
1237
1237
|
);
|
|
1238
|
-
},
|
|
1239
|
-
slotStack:
|
|
1240
|
-
},
|
|
1238
|
+
}, yr = "_slotStack_ivk5b_1", mr = {
|
|
1239
|
+
slotStack: yr
|
|
1240
|
+
}, gr = (t) => {
|
|
1241
1241
|
const {
|
|
1242
1242
|
userFlow: e,
|
|
1243
|
-
pageId:
|
|
1244
|
-
component:
|
|
1243
|
+
pageId: r,
|
|
1244
|
+
component: s,
|
|
1245
1245
|
hash: o,
|
|
1246
1246
|
responseKey: i,
|
|
1247
1247
|
content: c,
|
|
@@ -1256,9 +1256,9 @@ const _s = (t) => {
|
|
|
1256
1256
|
h
|
|
1257
1257
|
), x = _ ?? p, m = E(
|
|
1258
1258
|
e,
|
|
1259
|
-
|
|
1259
|
+
r,
|
|
1260
1260
|
c && c.length > 0 ? c : null
|
|
1261
|
-
), g = m && m.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
1261
|
+
), g = m && m.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: mr.slotStack, children: m.map((j, w) => /* @__PURE__ */ a.jsx(A, { children: j }, `card-body-${o}-${w}`)) }) : null, C = I(async () => {
|
|
1262
1262
|
var j, w, N;
|
|
1263
1263
|
if (!(!l || x))
|
|
1264
1264
|
try {
|
|
@@ -1266,9 +1266,9 @@ const _s = (t) => {
|
|
|
1266
1266
|
...(j = v.getState()[e]) == null ? void 0 : j.entries,
|
|
1267
1267
|
[i]: { status: 200 }
|
|
1268
1268
|
};
|
|
1269
|
-
switch (
|
|
1269
|
+
switch (q(e, k), l) {
|
|
1270
1270
|
case "CLOSE_MODAL":
|
|
1271
|
-
|
|
1271
|
+
Kt(e, !1);
|
|
1272
1272
|
break;
|
|
1273
1273
|
case "CLOSE_DRAWER":
|
|
1274
1274
|
_t(e, !1);
|
|
@@ -1280,7 +1280,7 @@ const _s = (t) => {
|
|
|
1280
1280
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
1281
1281
|
const $ = await f(
|
|
1282
1282
|
e,
|
|
1283
|
-
|
|
1283
|
+
r,
|
|
1284
1284
|
k,
|
|
1285
1285
|
i,
|
|
1286
1286
|
l === "GO_TO_NEXT_UI"
|
|
@@ -1291,7 +1291,7 @@ const _s = (t) => {
|
|
|
1291
1291
|
case "FETCH_AND_GO_TO_NEXT_UI": {
|
|
1292
1292
|
const O = await b(
|
|
1293
1293
|
e,
|
|
1294
|
-
|
|
1294
|
+
r,
|
|
1295
1295
|
k,
|
|
1296
1296
|
i,
|
|
1297
1297
|
d
|
|
@@ -1302,24 +1302,24 @@ const _s = (t) => {
|
|
|
1302
1302
|
case "GET_DATA_SOURCE": {
|
|
1303
1303
|
const O = await f(
|
|
1304
1304
|
e,
|
|
1305
|
-
|
|
1305
|
+
r,
|
|
1306
1306
|
k,
|
|
1307
1307
|
i
|
|
1308
1308
|
), $ = (w = O == null ? void 0 : O.data) == null ? void 0 : w.content;
|
|
1309
1309
|
if (($ == null ? void 0 : $.type) !== "fetch")
|
|
1310
1310
|
break;
|
|
1311
|
-
const Q = $ == null ? void 0 : $.dataSource, V = await y(Q, e, !1),
|
|
1311
|
+
const Q = $ == null ? void 0 : $.dataSource, V = await y(Q, e, !1), T = {
|
|
1312
1312
|
...(N = v.getState()[e]) == null ? void 0 : N.entries,
|
|
1313
1313
|
[i]: {
|
|
1314
1314
|
status: V == null ? void 0 : V.status,
|
|
1315
1315
|
content: V == null ? void 0 : V.data
|
|
1316
1316
|
}
|
|
1317
1317
|
};
|
|
1318
|
-
|
|
1318
|
+
q(e, T);
|
|
1319
1319
|
const G = await f(
|
|
1320
1320
|
e,
|
|
1321
|
-
|
|
1322
|
-
|
|
1321
|
+
r,
|
|
1322
|
+
T,
|
|
1323
1323
|
i
|
|
1324
1324
|
);
|
|
1325
1325
|
G != null && G.data && K(e, G == null ? void 0 : G.data);
|
|
@@ -1341,13 +1341,13 @@ const _s = (t) => {
|
|
|
1341
1341
|
b,
|
|
1342
1342
|
y,
|
|
1343
1343
|
f,
|
|
1344
|
-
|
|
1344
|
+
r,
|
|
1345
1345
|
u,
|
|
1346
1346
|
i,
|
|
1347
1347
|
e
|
|
1348
1348
|
]);
|
|
1349
1349
|
return /* @__PURE__ */ a.jsx(
|
|
1350
|
-
|
|
1350
|
+
Ge,
|
|
1351
1351
|
{
|
|
1352
1352
|
colorId: n,
|
|
1353
1353
|
disabled: x,
|
|
@@ -1355,11 +1355,11 @@ const _s = (t) => {
|
|
|
1355
1355
|
children: g
|
|
1356
1356
|
}
|
|
1357
1357
|
);
|
|
1358
|
-
},
|
|
1358
|
+
}, pr = (t) => {
|
|
1359
1359
|
const {
|
|
1360
1360
|
userFlow: e,
|
|
1361
|
-
pageId:
|
|
1362
|
-
component:
|
|
1361
|
+
pageId: r,
|
|
1362
|
+
component: s,
|
|
1363
1363
|
hash: o,
|
|
1364
1364
|
responseKey: i,
|
|
1365
1365
|
content: c,
|
|
@@ -1367,36 +1367,36 @@ const _s = (t) => {
|
|
|
1367
1367
|
..._
|
|
1368
1368
|
} = t, l = Array.isArray(c), d = E(
|
|
1369
1369
|
e,
|
|
1370
|
-
|
|
1370
|
+
r,
|
|
1371
1371
|
l && c.length > 0 ? c : null
|
|
1372
1372
|
);
|
|
1373
1373
|
let u;
|
|
1374
1374
|
return d && d.length > 0 ? u = /* @__PURE__ */ a.jsxs("div", { className: At.slotStack, children: [
|
|
1375
|
-
n ? /* @__PURE__ */ a.jsx(
|
|
1375
|
+
n ? /* @__PURE__ */ a.jsx(ce, { type: "sm", children: n }) : null,
|
|
1376
1376
|
d.map((h, f) => /* @__PURE__ */ a.jsx(A, { children: h }, `card-notification-body-${o}-${f}`))
|
|
1377
1377
|
] }) : u = (typeof c == "string" ? c : void 0) ?? n, /* @__PURE__ */ a.jsx(mt, { ..._, children: u });
|
|
1378
|
-
}, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t,
|
|
1378
|
+
}, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, br = (t, e) => {
|
|
1379
1379
|
if (!e || t == null)
|
|
1380
1380
|
return null;
|
|
1381
|
-
const { extractionJsonPath:
|
|
1381
|
+
const { extractionJsonPath: r, injectionJsonPath: s } = e, o = M.value(t, r);
|
|
1382
1382
|
if (o == null)
|
|
1383
1383
|
return null;
|
|
1384
1384
|
try {
|
|
1385
1385
|
const i = {};
|
|
1386
|
-
return M.value(i,
|
|
1386
|
+
return M.value(i, s, o), i;
|
|
1387
1387
|
} catch (i) {
|
|
1388
1388
|
return console.warn(
|
|
1389
1389
|
"[buildCursorPayload] invalid injectionJsonPath:",
|
|
1390
|
-
|
|
1390
|
+
s,
|
|
1391
1391
|
i
|
|
1392
1392
|
), null;
|
|
1393
1393
|
}
|
|
1394
|
-
},
|
|
1394
|
+
}, je = (t, e, r, s) => {
|
|
1395
1395
|
const o = M.query(t, e), i = o == null ? void 0 : o.map((d) => {
|
|
1396
1396
|
var u, h;
|
|
1397
|
-
if (
|
|
1397
|
+
if (r) {
|
|
1398
1398
|
const f = {};
|
|
1399
|
-
for (const [y, b] of Object.entries(
|
|
1399
|
+
for (const [y, b] of Object.entries(r))
|
|
1400
1400
|
if (typeof b == "object" && "path" in b) {
|
|
1401
1401
|
const p = b, x = (u = M.query(d, p.path)) == null ? void 0 : u[0];
|
|
1402
1402
|
p.translations && String(x) in p.translations ? f[y] = Et(
|
|
@@ -1409,12 +1409,12 @@ const _s = (t) => {
|
|
|
1409
1409
|
return f;
|
|
1410
1410
|
} else
|
|
1411
1411
|
return d;
|
|
1412
|
-
}), c = M.value(t, (
|
|
1412
|
+
}), c = M.value(t, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? o.length, n = M.value(t, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, _ = s != null && s.hasMore ? !!M.value(t, s.hasMore) : void 0, l = {
|
|
1413
1413
|
size: c,
|
|
1414
1414
|
total: n,
|
|
1415
|
-
totalPages:
|
|
1415
|
+
totalPages: s != null && s.totalPages ? M.value(
|
|
1416
1416
|
t,
|
|
1417
|
-
(
|
|
1417
|
+
(s == null ? void 0 : s.totalPages) ?? "$.meta.totalPages"
|
|
1418
1418
|
) : c > 0 ? Math.ceil(n / c) : 0,
|
|
1419
1419
|
..._ !== void 0 ? { hasMore: _ } : {}
|
|
1420
1420
|
};
|
|
@@ -1422,51 +1422,51 @@ const _s = (t) => {
|
|
|
1422
1422
|
}, at = ({
|
|
1423
1423
|
width: t,
|
|
1424
1424
|
height: e,
|
|
1425
|
-
layout:
|
|
1426
|
-
data:
|
|
1425
|
+
layout: r,
|
|
1426
|
+
data: s,
|
|
1427
1427
|
Chart: o,
|
|
1428
1428
|
children: i
|
|
1429
1429
|
}) => {
|
|
1430
|
-
const c = e ?? nt, n =
|
|
1431
|
-
return t ? /* @__PURE__ */ a.jsx(o, { width: t, height: c, data:
|
|
1430
|
+
const c = e ?? nt, n = r ? { layout: r } : {};
|
|
1431
|
+
return t ? /* @__PURE__ */ a.jsx(o, { width: t, height: c, data: s, ...n, children: i }) : /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: c, children: /* @__PURE__ */ a.jsx(o, { data: s, ...n, children: i }) });
|
|
1432
1432
|
}, J = ({ withPadding: t = !1 }) => {
|
|
1433
|
-
const e = (
|
|
1433
|
+
const e = (r) => /* @__PURE__ */ a.jsx("span", { style: { color: S.labelColor }, children: r });
|
|
1434
1434
|
return /* @__PURE__ */ a.jsx(
|
|
1435
|
-
|
|
1435
|
+
ln,
|
|
1436
1436
|
{
|
|
1437
1437
|
formatter: e,
|
|
1438
1438
|
wrapperStyle: {
|
|
1439
|
-
fontSize:
|
|
1440
|
-
fontFamily:
|
|
1439
|
+
fontSize: S.fontSize,
|
|
1440
|
+
fontFamily: S.fontFamily,
|
|
1441
1441
|
padding: t ? "1rem 0" : "0"
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
);
|
|
1445
|
-
},
|
|
1445
|
+
}, jr = ({
|
|
1446
1446
|
active: t,
|
|
1447
1447
|
payload: e,
|
|
1448
|
-
label:
|
|
1449
|
-
tooltipKey:
|
|
1448
|
+
label: r,
|
|
1449
|
+
tooltipKey: s,
|
|
1450
1450
|
tooltipCoverage: o
|
|
1451
1451
|
}) => {
|
|
1452
1452
|
var d, u;
|
|
1453
1453
|
if (!t || !e || !e.length)
|
|
1454
1454
|
return null;
|
|
1455
1455
|
const i = {
|
|
1456
|
-
backgroundColor:
|
|
1457
|
-
borderRadius:
|
|
1458
|
-
color:
|
|
1456
|
+
backgroundColor: S.tooltipBg,
|
|
1457
|
+
borderRadius: S.tooltipBorderRadius,
|
|
1458
|
+
color: S.tooltipColor,
|
|
1459
1459
|
padding: "8px 12px",
|
|
1460
1460
|
border: "1px solid #e5e7eb"
|
|
1461
1461
|
};
|
|
1462
|
-
if (
|
|
1462
|
+
if (s) {
|
|
1463
1463
|
const h = (d = e[0]) == null ? void 0 : d.payload;
|
|
1464
|
-
if (h && h[
|
|
1465
|
-
return /* @__PURE__ */ a.jsx("div", { style: i, children: /* @__PURE__ */ a.jsx("p", { style: { margin: 0 }, children: h[
|
|
1464
|
+
if (h && h[s] !== void 0 && h[s] !== null)
|
|
1465
|
+
return /* @__PURE__ */ a.jsx("div", { style: i, children: /* @__PURE__ */ a.jsx("p", { style: { margin: 0 }, children: h[s] }) });
|
|
1466
1466
|
}
|
|
1467
1467
|
const c = (u = e[0]) == null ? void 0 : u.payload, n = (o == null ? void 0 : o.label) ?? "Cobertura", _ = o ? c == null ? void 0 : c[o.denominatorKey] : void 0, l = o && _ !== void 0 && _ !== null && _ > 0;
|
|
1468
1468
|
return /* @__PURE__ */ a.jsxs("div", { style: i, children: [
|
|
1469
|
-
/* @__PURE__ */ a.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children:
|
|
1469
|
+
/* @__PURE__ */ a.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: r }),
|
|
1470
1470
|
e.map((h, f) => /* @__PURE__ */ a.jsx("p", { style: { margin: "2px 0", color: h.color }, children: `${h.name}: ${h.value}` }, f)),
|
|
1471
1471
|
l && /* @__PURE__ */ a.jsx("p", { style: { margin: "2px 0" }, children: `${n}: ${Math.round(
|
|
1472
1472
|
c[o.numeratorKey] / _ * 100
|
|
@@ -1475,15 +1475,15 @@ const _s = (t) => {
|
|
|
1475
1475
|
}, W = ({
|
|
1476
1476
|
tooltipKey: t,
|
|
1477
1477
|
tooltipCoverage: e,
|
|
1478
|
-
defaultIndex:
|
|
1479
|
-
hideContent:
|
|
1478
|
+
defaultIndex: r,
|
|
1479
|
+
hideContent: s = !1
|
|
1480
1480
|
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1481
|
-
|
|
1481
|
+
dn,
|
|
1482
1482
|
{
|
|
1483
|
-
defaultIndex:
|
|
1484
|
-
cursor:
|
|
1485
|
-
content:
|
|
1486
|
-
|
|
1483
|
+
defaultIndex: r,
|
|
1484
|
+
cursor: s ? !1 : void 0,
|
|
1485
|
+
content: s ? () => null : (o) => /* @__PURE__ */ a.jsx(
|
|
1486
|
+
jr,
|
|
1487
1487
|
{
|
|
1488
1488
|
...o,
|
|
1489
1489
|
tooltipKey: t,
|
|
@@ -1491,47 +1491,47 @@ const _s = (t) => {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
)
|
|
1493
1493
|
}
|
|
1494
|
-
), ot = ({ dataKey: t, hide: e = !1, type:
|
|
1495
|
-
|
|
1494
|
+
), ot = ({ dataKey: t, hide: e = !1, type: r }) => /* @__PURE__ */ a.jsx(
|
|
1495
|
+
_n,
|
|
1496
1496
|
{
|
|
1497
1497
|
...t ? { dataKey: t } : {},
|
|
1498
|
-
...
|
|
1498
|
+
...r ? { type: r } : {},
|
|
1499
1499
|
hide: e,
|
|
1500
1500
|
tick: {
|
|
1501
|
-
fill:
|
|
1502
|
-
fontSize:
|
|
1501
|
+
fill: S.labelColor,
|
|
1502
|
+
fontSize: S.fontSize
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
), Y = ({
|
|
1506
1506
|
type: t,
|
|
1507
1507
|
dataKey: e,
|
|
1508
|
-
width:
|
|
1509
|
-
yAxisId:
|
|
1508
|
+
width: r,
|
|
1509
|
+
yAxisId: s,
|
|
1510
1510
|
orientation: o
|
|
1511
1511
|
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1512
|
-
|
|
1512
|
+
un,
|
|
1513
1513
|
{
|
|
1514
1514
|
...t ? { type: t } : {},
|
|
1515
1515
|
...e ? { dataKey: e } : {},
|
|
1516
|
-
...
|
|
1517
|
-
...
|
|
1516
|
+
...r !== void 0 ? { width: r } : {},
|
|
1517
|
+
...s ? { yAxisId: s } : {},
|
|
1518
1518
|
...o ? { orientation: o } : {},
|
|
1519
1519
|
tick: {
|
|
1520
|
-
fill:
|
|
1521
|
-
fontSize:
|
|
1520
|
+
fill: S.labelColor,
|
|
1521
|
+
fontSize: S.fontSize
|
|
1522
1522
|
},
|
|
1523
1523
|
tickMargin: 4
|
|
1524
1524
|
}
|
|
1525
|
-
),
|
|
1526
|
-
const { data: e, xKey:
|
|
1527
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1528
|
-
/* @__PURE__ */ a.jsx(
|
|
1529
|
-
/* @__PURE__ */ a.jsx(ot, { dataKey:
|
|
1525
|
+
), Cr = (t) => {
|
|
1526
|
+
const { data: e, xKey: r, yKeys: s, tooltipKey: o, width: i } = t;
|
|
1527
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: hn, children: [
|
|
1528
|
+
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1529
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1530
1530
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1531
1531
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1532
1532
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1533
|
-
|
|
1534
|
-
|
|
1533
|
+
s.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1534
|
+
_e,
|
|
1535
1535
|
{
|
|
1536
1536
|
type: "monotone",
|
|
1537
1537
|
dataKey: c,
|
|
@@ -1541,15 +1541,15 @@ const _s = (t) => {
|
|
|
1541
1541
|
c
|
|
1542
1542
|
))
|
|
1543
1543
|
] });
|
|
1544
|
-
},
|
|
1545
|
-
const { data: e, yKeys:
|
|
1546
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1547
|
-
/* @__PURE__ */ a.jsx(
|
|
1548
|
-
/* @__PURE__ */ a.jsx(ot, { dataKey:
|
|
1544
|
+
}, wr = (t) => {
|
|
1545
|
+
const { data: e, yKeys: r, xKey: s, tooltipKey: o, width: i } = t;
|
|
1546
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: Rt, children: [
|
|
1547
|
+
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1548
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: s }),
|
|
1549
1549
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1550
1550
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1551
1551
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1552
|
-
|
|
1552
|
+
r.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1553
1553
|
pt,
|
|
1554
1554
|
{
|
|
1555
1555
|
dataKey: c,
|
|
@@ -1559,30 +1559,30 @@ const _s = (t) => {
|
|
|
1559
1559
|
))
|
|
1560
1560
|
] });
|
|
1561
1561
|
};
|
|
1562
|
-
var
|
|
1563
|
-
const
|
|
1562
|
+
var Ce = { NODE_ENV: "production" };
|
|
1563
|
+
const Nr = (t, e) => {
|
|
1564
1564
|
if (e != null && e.length)
|
|
1565
1565
|
return e;
|
|
1566
|
-
const
|
|
1567
|
-
...new Set(t.map((
|
|
1566
|
+
const r = [
|
|
1567
|
+
...new Set(t.map((s) => s.yAxisId).filter((s) => !!s))
|
|
1568
1568
|
];
|
|
1569
|
-
return
|
|
1570
|
-
id:
|
|
1569
|
+
return r.length === 0 ? [] : r.map((s, o) => ({
|
|
1570
|
+
id: s,
|
|
1571
1571
|
orientation: o === 1 ? "right" : "left"
|
|
1572
1572
|
}));
|
|
1573
|
-
},
|
|
1574
|
-
!t.type &&
|
|
1575
|
-
const
|
|
1573
|
+
}, vr = (t, e) => {
|
|
1574
|
+
!t.type && Ce.NODE_ENV;
|
|
1575
|
+
const r = t.color ?? R[e % R.length], s = t.label ?? t.key, o = t.yAxisId ? { yAxisId: t.yAxisId } : {};
|
|
1576
1576
|
switch (t.type) {
|
|
1577
1577
|
case "area":
|
|
1578
1578
|
return /* @__PURE__ */ a.jsx(
|
|
1579
|
-
|
|
1579
|
+
_e,
|
|
1580
1580
|
{
|
|
1581
1581
|
dataKey: t.key,
|
|
1582
|
-
name:
|
|
1582
|
+
name: s,
|
|
1583
1583
|
type: "monotone",
|
|
1584
|
-
fill:
|
|
1585
|
-
stroke:
|
|
1584
|
+
fill: r,
|
|
1585
|
+
stroke: r,
|
|
1586
1586
|
fillOpacity: 0.3,
|
|
1587
1587
|
...o
|
|
1588
1588
|
},
|
|
@@ -1590,12 +1590,12 @@ const Cs = (t, e) => {
|
|
|
1590
1590
|
);
|
|
1591
1591
|
case "line":
|
|
1592
1592
|
return /* @__PURE__ */ a.jsx(
|
|
1593
|
-
|
|
1593
|
+
ue,
|
|
1594
1594
|
{
|
|
1595
1595
|
dataKey: t.key,
|
|
1596
|
-
name:
|
|
1596
|
+
name: s,
|
|
1597
1597
|
type: "monotone",
|
|
1598
|
-
stroke:
|
|
1598
|
+
stroke: r,
|
|
1599
1599
|
strokeWidth: 2,
|
|
1600
1600
|
dot: !1,
|
|
1601
1601
|
...o
|
|
@@ -1607,8 +1607,8 @@ const Cs = (t, e) => {
|
|
|
1607
1607
|
pt,
|
|
1608
1608
|
{
|
|
1609
1609
|
dataKey: t.key,
|
|
1610
|
-
name:
|
|
1611
|
-
fill:
|
|
1610
|
+
name: s,
|
|
1611
|
+
fill: r,
|
|
1612
1612
|
stackId: t.stackId,
|
|
1613
1613
|
barSize: t.barSize,
|
|
1614
1614
|
...o
|
|
@@ -1618,21 +1618,21 @@ const Cs = (t, e) => {
|
|
|
1618
1618
|
default:
|
|
1619
1619
|
return null;
|
|
1620
1620
|
}
|
|
1621
|
-
},
|
|
1621
|
+
}, Er = (t) => {
|
|
1622
1622
|
const {
|
|
1623
1623
|
data: e,
|
|
1624
|
-
xKey:
|
|
1625
|
-
series:
|
|
1624
|
+
xKey: r,
|
|
1625
|
+
series: s = [],
|
|
1626
1626
|
tooltipKey: o,
|
|
1627
1627
|
width: i,
|
|
1628
1628
|
showLegend: c = !0,
|
|
1629
1629
|
yAxes: n
|
|
1630
1630
|
} = t;
|
|
1631
|
-
!
|
|
1632
|
-
const _ =
|
|
1633
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1634
|
-
/* @__PURE__ */ a.jsx(
|
|
1635
|
-
/* @__PURE__ */ a.jsx(ot, { dataKey:
|
|
1631
|
+
!s.length && Ce.NODE_ENV;
|
|
1632
|
+
const _ = Nr(s, n);
|
|
1633
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: fn, children: [
|
|
1634
|
+
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1635
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1636
1636
|
_.length > 0 ? _.map((l) => /* @__PURE__ */ a.jsx(
|
|
1637
1637
|
Y,
|
|
1638
1638
|
{
|
|
@@ -1643,11 +1643,11 @@ const Cs = (t, e) => {
|
|
|
1643
1643
|
)) : /* @__PURE__ */ a.jsx(Y, {}),
|
|
1644
1644
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1645
1645
|
c && /* @__PURE__ */ a.jsx(J, {}),
|
|
1646
|
-
|
|
1646
|
+
s.map((l, d) => vr(l, d))
|
|
1647
1647
|
] });
|
|
1648
|
-
},
|
|
1649
|
-
const
|
|
1650
|
-
cx:
|
|
1648
|
+
}, kr = "55%", Tr = 120, Sr = (t) => (e) => {
|
|
1649
|
+
const r = Math.PI / 180, {
|
|
1650
|
+
cx: s = 0,
|
|
1651
1651
|
cy: o = 0,
|
|
1652
1652
|
midAngle: i = 0,
|
|
1653
1653
|
innerRadius: c = 0,
|
|
@@ -1658,25 +1658,25 @@ const Cs = (t, e) => {
|
|
|
1658
1658
|
payload: u,
|
|
1659
1659
|
percent: h = 0,
|
|
1660
1660
|
value: f = 0
|
|
1661
|
-
} = e, y = Math.sin(-
|
|
1661
|
+
} = e, y = Math.sin(-r * i), b = Math.cos(-r * i), p = s + (n + 10) * b, x = o + (n + 10) * y, m = s + (n + 30) * b, g = o + (n + 30) * y, C = m + (b >= 0 ? 1 : -1) * 22, j = g, w = b >= 0 ? "start" : "end", N = u, k = String((N == null ? void 0 : N[t]) ?? "");
|
|
1662
1662
|
return /* @__PURE__ */ a.jsxs("g", { children: [
|
|
1663
1663
|
/* @__PURE__ */ a.jsx(
|
|
1664
1664
|
"text",
|
|
1665
1665
|
{
|
|
1666
|
-
x:
|
|
1666
|
+
x: s,
|
|
1667
1667
|
y: o,
|
|
1668
1668
|
dy: 8,
|
|
1669
1669
|
textAnchor: "middle",
|
|
1670
|
-
fill:
|
|
1671
|
-
fontSize:
|
|
1672
|
-
fontFamily:
|
|
1670
|
+
fill: S.labelColor,
|
|
1671
|
+
fontSize: S.fontSize + 2,
|
|
1672
|
+
fontFamily: S.fontFamily,
|
|
1673
1673
|
children: k
|
|
1674
1674
|
}
|
|
1675
1675
|
),
|
|
1676
1676
|
/* @__PURE__ */ a.jsx(
|
|
1677
|
-
|
|
1677
|
+
Ht,
|
|
1678
1678
|
{
|
|
1679
|
-
cx:
|
|
1679
|
+
cx: s,
|
|
1680
1680
|
cy: o,
|
|
1681
1681
|
innerRadius: c,
|
|
1682
1682
|
outerRadius: n,
|
|
@@ -1686,9 +1686,9 @@ const Cs = (t, e) => {
|
|
|
1686
1686
|
}
|
|
1687
1687
|
),
|
|
1688
1688
|
/* @__PURE__ */ a.jsx(
|
|
1689
|
-
|
|
1689
|
+
Ht,
|
|
1690
1690
|
{
|
|
1691
|
-
cx:
|
|
1691
|
+
cx: s,
|
|
1692
1692
|
cy: o,
|
|
1693
1693
|
startAngle: _,
|
|
1694
1694
|
endAngle: l,
|
|
@@ -1712,9 +1712,9 @@ const Cs = (t, e) => {
|
|
|
1712
1712
|
x: C + (b >= 0 ? 1 : -1) * 12,
|
|
1713
1713
|
y: j,
|
|
1714
1714
|
textAnchor: w,
|
|
1715
|
-
fill:
|
|
1716
|
-
fontSize:
|
|
1717
|
-
fontFamily:
|
|
1715
|
+
fill: S.labelColor,
|
|
1716
|
+
fontSize: S.fontSize + 2,
|
|
1717
|
+
fontFamily: S.fontFamily,
|
|
1718
1718
|
children: f
|
|
1719
1719
|
}
|
|
1720
1720
|
),
|
|
@@ -1725,26 +1725,26 @@ const Cs = (t, e) => {
|
|
|
1725
1725
|
y: j,
|
|
1726
1726
|
dy: 18,
|
|
1727
1727
|
textAnchor: w,
|
|
1728
|
-
fill:
|
|
1729
|
-
fontSize:
|
|
1730
|
-
fontFamily:
|
|
1728
|
+
fill: S.labelColorMuted,
|
|
1729
|
+
fontSize: S.fontSize,
|
|
1730
|
+
fontFamily: S.fontFamily,
|
|
1731
1731
|
children: `(${(h * 100).toFixed(0)}%)`
|
|
1732
1732
|
}
|
|
1733
1733
|
)
|
|
1734
1734
|
] });
|
|
1735
|
-
},
|
|
1735
|
+
}, Ar = (t) => {
|
|
1736
1736
|
const {
|
|
1737
1737
|
data: e,
|
|
1738
|
-
xKey:
|
|
1739
|
-
yKeys:
|
|
1738
|
+
xKey: r,
|
|
1739
|
+
yKeys: s,
|
|
1740
1740
|
tooltipKey: o,
|
|
1741
|
-
innerRadius: i =
|
|
1742
|
-
outerRadius: c =
|
|
1741
|
+
innerRadius: i = kr,
|
|
1742
|
+
outerRadius: c = Tr,
|
|
1743
1743
|
activeShape: n = !0,
|
|
1744
1744
|
defaultIndex: _,
|
|
1745
1745
|
showLegend: l = !0
|
|
1746
|
-
} = t, d =
|
|
1747
|
-
return /* @__PURE__ */ a.jsx(
|
|
1746
|
+
} = t, d = s[0];
|
|
1747
|
+
return /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(he, { children: [
|
|
1748
1748
|
/* @__PURE__ */ a.jsx(
|
|
1749
1749
|
W,
|
|
1750
1750
|
{
|
|
@@ -1755,18 +1755,18 @@ const Cs = (t, e) => {
|
|
|
1755
1755
|
),
|
|
1756
1756
|
l && /* @__PURE__ */ a.jsx(J, {}),
|
|
1757
1757
|
/* @__PURE__ */ a.jsx(
|
|
1758
|
-
|
|
1758
|
+
fe,
|
|
1759
1759
|
{
|
|
1760
1760
|
data: e,
|
|
1761
1761
|
dataKey: d,
|
|
1762
|
-
nameKey:
|
|
1762
|
+
nameKey: r,
|
|
1763
1763
|
cx: "50%",
|
|
1764
1764
|
cy: "50%",
|
|
1765
1765
|
innerRadius: i,
|
|
1766
1766
|
outerRadius: c,
|
|
1767
|
-
activeShape: n ?
|
|
1767
|
+
activeShape: n ? Sr(r) : void 0,
|
|
1768
1768
|
children: e.map((u, h) => /* @__PURE__ */ a.jsx(
|
|
1769
|
-
|
|
1769
|
+
xe,
|
|
1770
1770
|
{
|
|
1771
1771
|
fill: R[h % R.length]
|
|
1772
1772
|
},
|
|
@@ -1776,29 +1776,29 @@ const Cs = (t, e) => {
|
|
|
1776
1776
|
)
|
|
1777
1777
|
] }) });
|
|
1778
1778
|
};
|
|
1779
|
-
function
|
|
1780
|
-
return t <= 0 ? 0 : e <= 0 ? t : Math.max(t, e *
|
|
1779
|
+
function Or(t, e, r = we) {
|
|
1780
|
+
return t <= 0 ? 0 : e <= 0 ? t : Math.max(t, e * r);
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1782
|
+
function $r(t, e = Br, r) {
|
|
1783
|
+
return r !== void 0 ? r : t <= 0 ? nt : Math.max(nt, t * e);
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1786
|
-
if (
|
|
1787
|
-
return
|
|
1788
|
-
const
|
|
1785
|
+
function Dr(t, e, r) {
|
|
1786
|
+
if (r !== void 0)
|
|
1787
|
+
return r;
|
|
1788
|
+
const s = t.reduce((o, i) => {
|
|
1789
1789
|
const c = String(i[e] ?? "");
|
|
1790
1790
|
return Math.max(o, c.length);
|
|
1791
1791
|
}, 0);
|
|
1792
1792
|
return Math.max(
|
|
1793
|
-
|
|
1794
|
-
|
|
1793
|
+
Mr,
|
|
1794
|
+
s * Gr
|
|
1795
1795
|
);
|
|
1796
1796
|
}
|
|
1797
|
-
const
|
|
1797
|
+
const Rr = (t) => {
|
|
1798
1798
|
const {
|
|
1799
1799
|
data: e,
|
|
1800
|
-
yKeys:
|
|
1801
|
-
xKey:
|
|
1800
|
+
yKeys: r,
|
|
1801
|
+
xKey: s,
|
|
1802
1802
|
tooltipKey: o,
|
|
1803
1803
|
minCategoryHeight: i,
|
|
1804
1804
|
chartHeight: c,
|
|
@@ -1806,25 +1806,25 @@ const $s = (t) => {
|
|
|
1806
1806
|
showLegend: _ = !0,
|
|
1807
1807
|
yKeyLabels: l,
|
|
1808
1808
|
yAxisWidth: d
|
|
1809
|
-
} = t, u =
|
|
1809
|
+
} = t, u = $r(
|
|
1810
1810
|
e.length,
|
|
1811
1811
|
i,
|
|
1812
1812
|
c
|
|
1813
|
-
), h =
|
|
1813
|
+
), h = Dr(e, s, d);
|
|
1814
1814
|
return /* @__PURE__ */ a.jsxs(
|
|
1815
1815
|
at,
|
|
1816
1816
|
{
|
|
1817
1817
|
height: u,
|
|
1818
1818
|
layout: "vertical",
|
|
1819
1819
|
data: e,
|
|
1820
|
-
Chart:
|
|
1820
|
+
Chart: Rt,
|
|
1821
1821
|
children: [
|
|
1822
|
-
/* @__PURE__ */ a.jsx(
|
|
1822
|
+
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3", horizontal: !1 }),
|
|
1823
1823
|
/* @__PURE__ */ a.jsx(ot, { type: "number" }),
|
|
1824
|
-
/* @__PURE__ */ a.jsx(Y, { type: "category", dataKey:
|
|
1824
|
+
/* @__PURE__ */ a.jsx(Y, { type: "category", dataKey: s, width: h }),
|
|
1825
1825
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o, tooltipCoverage: n }),
|
|
1826
1826
|
_ && /* @__PURE__ */ a.jsx(J, {}),
|
|
1827
|
-
|
|
1827
|
+
r.map((f, y) => /* @__PURE__ */ a.jsx(
|
|
1828
1828
|
pt,
|
|
1829
1829
|
{
|
|
1830
1830
|
dataKey: f,
|
|
@@ -1836,16 +1836,16 @@ const $s = (t) => {
|
|
|
1836
1836
|
]
|
|
1837
1837
|
}
|
|
1838
1838
|
);
|
|
1839
|
-
},
|
|
1840
|
-
const { data: e, xKey:
|
|
1841
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1842
|
-
/* @__PURE__ */ a.jsx(
|
|
1843
|
-
/* @__PURE__ */ a.jsx(ot, { dataKey:
|
|
1839
|
+
}, Lr = (t) => {
|
|
1840
|
+
const { data: e, xKey: r, yKeys: s, tooltipKey: o, width: i } = t;
|
|
1841
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: xn, children: [
|
|
1842
|
+
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1843
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1844
1844
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1845
1845
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1846
1846
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1847
|
-
|
|
1848
|
-
|
|
1847
|
+
s.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1848
|
+
ue,
|
|
1849
1849
|
{
|
|
1850
1850
|
type: "monotone",
|
|
1851
1851
|
dataKey: c,
|
|
@@ -1857,16 +1857,16 @@ const $s = (t) => {
|
|
|
1857
1857
|
))
|
|
1858
1858
|
] });
|
|
1859
1859
|
};
|
|
1860
|
-
var
|
|
1861
|
-
const
|
|
1862
|
-
const { data: e, xKey:
|
|
1863
|
-
return !
|
|
1864
|
-
/* @__PURE__ */ a.jsx(
|
|
1865
|
-
/* @__PURE__ */ a.jsx(ot, { dataKey:
|
|
1860
|
+
var Ir = { NODE_ENV: "production" };
|
|
1861
|
+
const qr = (t) => {
|
|
1862
|
+
const { data: e, xKey: r, series: s = [], tooltipKey: o, width: i } = t;
|
|
1863
|
+
return !s.length && Ir.NODE_ENV, /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: Rt, children: [
|
|
1864
|
+
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1865
|
+
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1866
1866
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1867
1867
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1868
1868
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1869
|
-
|
|
1869
|
+
s.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1870
1870
|
pt,
|
|
1871
1871
|
{
|
|
1872
1872
|
dataKey: c.key,
|
|
@@ -1877,8 +1877,8 @@ const qs = (t) => {
|
|
|
1877
1877
|
c.key
|
|
1878
1878
|
))
|
|
1879
1879
|
] });
|
|
1880
|
-
},
|
|
1881
|
-
const { data: e, xKey:
|
|
1880
|
+
}, Kr = (t) => {
|
|
1881
|
+
const { data: e, xKey: r, yKeys: s, tooltipKey: o } = t, i = ({
|
|
1882
1882
|
cx: c,
|
|
1883
1883
|
cy: n,
|
|
1884
1884
|
midAngle: _,
|
|
@@ -1892,27 +1892,27 @@ const qs = (t) => {
|
|
|
1892
1892
|
{
|
|
1893
1893
|
x: y,
|
|
1894
1894
|
y: b,
|
|
1895
|
-
fill:
|
|
1896
|
-
color:
|
|
1895
|
+
fill: S.labelColor,
|
|
1896
|
+
color: S.labelColor,
|
|
1897
1897
|
textAnchor: "middle",
|
|
1898
1898
|
dominantBaseline: "central",
|
|
1899
1899
|
children: u
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
1902
|
};
|
|
1903
|
-
return /* @__PURE__ */ a.jsx(
|
|
1903
|
+
return /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(he, { children: [
|
|
1904
1904
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1905
1905
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1906
1906
|
/* @__PURE__ */ a.jsx(
|
|
1907
|
-
|
|
1907
|
+
fe,
|
|
1908
1908
|
{
|
|
1909
1909
|
data: e,
|
|
1910
|
-
dataKey:
|
|
1911
|
-
nameKey:
|
|
1910
|
+
dataKey: s[0],
|
|
1911
|
+
nameKey: r,
|
|
1912
1912
|
label: i,
|
|
1913
1913
|
outerRadius: 120,
|
|
1914
1914
|
children: e.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1915
|
-
|
|
1915
|
+
xe,
|
|
1916
1916
|
{
|
|
1917
1917
|
fill: R[n % R.length]
|
|
1918
1918
|
},
|
|
@@ -1921,21 +1921,21 @@ const qs = (t) => {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
)
|
|
1923
1923
|
] }) });
|
|
1924
|
-
}, nt = 400,
|
|
1924
|
+
}, nt = 400, we = 56, Br = 28, Mr = 100, Gr = 8, Hr = /* @__PURE__ */ new Set([
|
|
1925
1925
|
"bar",
|
|
1926
1926
|
"line",
|
|
1927
1927
|
"area",
|
|
1928
1928
|
"mixBar",
|
|
1929
1929
|
"composed"
|
|
1930
|
-
]),
|
|
1931
|
-
area:
|
|
1932
|
-
bar:
|
|
1933
|
-
composed:
|
|
1934
|
-
donut:
|
|
1935
|
-
horizontalBar:
|
|
1936
|
-
line:
|
|
1937
|
-
mixBar:
|
|
1938
|
-
pie:
|
|
1930
|
+
]), Vr = {
|
|
1931
|
+
area: Cr,
|
|
1932
|
+
bar: wr,
|
|
1933
|
+
composed: Er,
|
|
1934
|
+
donut: Ar,
|
|
1935
|
+
horizontalBar: Rr,
|
|
1936
|
+
line: Lr,
|
|
1937
|
+
mixBar: qr,
|
|
1938
|
+
pie: Kr
|
|
1939
1939
|
}, R = [
|
|
1940
1940
|
"var(--color-primitive-palette-1-50)",
|
|
1941
1941
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1954,7 +1954,7 @@ const qs = (t) => {
|
|
|
1954
1954
|
"var(--color-primitive-palette-15-50)",
|
|
1955
1955
|
"var(--color-primitive-palette-16-50)",
|
|
1956
1956
|
"var(--color-primitive-palette-17-50)"
|
|
1957
|
-
],
|
|
1957
|
+
], S = {
|
|
1958
1958
|
fontFamily: "Roboto, sans-serif",
|
|
1959
1959
|
fontSize: 12,
|
|
1960
1960
|
labelColor: "var(--color-neutral-90)",
|
|
@@ -1962,17 +1962,17 @@ const qs = (t) => {
|
|
|
1962
1962
|
tooltipBg: "#fff",
|
|
1963
1963
|
tooltipColor: "#000",
|
|
1964
1964
|
tooltipBorderRadius: "4px"
|
|
1965
|
-
},
|
|
1966
|
-
chartScrollViewport:
|
|
1967
|
-
chartScrollViewport_track:
|
|
1968
|
-
},
|
|
1965
|
+
}, Ur = "_chartScrollViewport_sm5hx_1", zr = "_chartScrollViewport_track_sm5hx_29", te = {
|
|
1966
|
+
chartScrollViewport: Ur,
|
|
1967
|
+
chartScrollViewport_track: zr
|
|
1968
|
+
}, Xr = "Scrollable chart area", Jr = ({
|
|
1969
1969
|
dataLength: t,
|
|
1970
1970
|
minCategoryWidth: e,
|
|
1971
|
-
children:
|
|
1971
|
+
children: r
|
|
1972
1972
|
}) => {
|
|
1973
|
-
const
|
|
1973
|
+
const s = ut(null), [o, i] = L(0), c = e ?? we;
|
|
1974
1974
|
U(() => {
|
|
1975
|
-
const d =
|
|
1975
|
+
const d = s.current;
|
|
1976
1976
|
if (!d)
|
|
1977
1977
|
return;
|
|
1978
1978
|
const u = () => {
|
|
@@ -1982,13 +1982,13 @@ const qs = (t) => {
|
|
|
1982
1982
|
const h = new ResizeObserver(u);
|
|
1983
1983
|
return h.observe(d), () => h.disconnect();
|
|
1984
1984
|
}, []);
|
|
1985
|
-
const n =
|
|
1985
|
+
const n = Or(
|
|
1986
1986
|
o,
|
|
1987
1987
|
t,
|
|
1988
1988
|
c
|
|
1989
|
-
), _ = o > 0 && n > o, l =
|
|
1989
|
+
), _ = o > 0 && n > o, l = I(
|
|
1990
1990
|
(d) => {
|
|
1991
|
-
const u =
|
|
1991
|
+
const u = s.current;
|
|
1992
1992
|
if (u)
|
|
1993
1993
|
switch (d.key) {
|
|
1994
1994
|
case "ArrowLeft":
|
|
@@ -2010,35 +2010,35 @@ const qs = (t) => {
|
|
|
2010
2010
|
return /* @__PURE__ */ a.jsx(
|
|
2011
2011
|
"div",
|
|
2012
2012
|
{
|
|
2013
|
-
ref:
|
|
2014
|
-
className:
|
|
2013
|
+
ref: s,
|
|
2014
|
+
className: te.chartScrollViewport,
|
|
2015
2015
|
role: _ ? "region" : void 0,
|
|
2016
2016
|
tabIndex: _ ? 0 : void 0,
|
|
2017
|
-
"aria-label": _ ?
|
|
2017
|
+
"aria-label": _ ? Xr : void 0,
|
|
2018
2018
|
onKeyDown: _ ? l : void 0,
|
|
2019
2019
|
children: /* @__PURE__ */ a.jsx(
|
|
2020
2020
|
"div",
|
|
2021
2021
|
{
|
|
2022
|
-
className:
|
|
2022
|
+
className: te.chartScrollViewport_track,
|
|
2023
2023
|
style: { width: n, height: nt },
|
|
2024
|
-
children: o > 0 ?
|
|
2024
|
+
children: o > 0 ? r(n) : null
|
|
2025
2025
|
}
|
|
2026
2026
|
)
|
|
2027
2027
|
}
|
|
2028
2028
|
);
|
|
2029
|
-
},
|
|
2030
|
-
const { component: e, userFlow:
|
|
2029
|
+
}, Wr = (t) => {
|
|
2030
|
+
const { component: e, userFlow: r, hash: s, responseKey: o, dataSource: i, ...c } = t, n = Vr[c.type], { fetchDataSource: _ } = H(), [l, d] = L(!1), [u, h] = L([]), f = async () => {
|
|
2031
2031
|
var p, x;
|
|
2032
2032
|
try {
|
|
2033
2033
|
d(!0);
|
|
2034
|
-
const { jsonPathData: m, mapperData: g } = i, C =
|
|
2034
|
+
const { jsonPathData: m, mapperData: g } = i, C = Bt(
|
|
2035
2035
|
i,
|
|
2036
2036
|
1
|
|
2037
2037
|
), j = await _(
|
|
2038
2038
|
C,
|
|
2039
|
-
|
|
2039
|
+
r,
|
|
2040
2040
|
!1
|
|
2041
|
-
), w = m ? (p =
|
|
2041
|
+
), w = m ? (p = je(j == null ? void 0 : j.data, m, g)) == null ? void 0 : p.items : (x = j == null ? void 0 : j.data) == null ? void 0 : x.data;
|
|
2042
2042
|
h(w), d(!1);
|
|
2043
2043
|
} catch (m) {
|
|
2044
2044
|
alert(JSON.stringify(m)), d(!1);
|
|
@@ -2052,19 +2052,19 @@ const qs = (t) => {
|
|
|
2052
2052
|
...c,
|
|
2053
2053
|
data: u
|
|
2054
2054
|
};
|
|
2055
|
-
return l ? /* @__PURE__ */ a.jsx(
|
|
2056
|
-
|
|
2055
|
+
return l ? /* @__PURE__ */ a.jsx(ie, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Hr.has(c.type) ? /* @__PURE__ */ a.jsx(
|
|
2056
|
+
Jr,
|
|
2057
2057
|
{
|
|
2058
2058
|
dataLength: u.length,
|
|
2059
2059
|
minCategoryWidth: c.minCategoryWidth,
|
|
2060
2060
|
children: (p) => /* @__PURE__ */ a.jsx(n, { ...y, width: p })
|
|
2061
2061
|
}
|
|
2062
2062
|
) : /* @__PURE__ */ a.jsx(n, { ...y });
|
|
2063
|
-
},
|
|
2063
|
+
}, Yr = (t) => {
|
|
2064
2064
|
const {
|
|
2065
2065
|
userFlow: e,
|
|
2066
|
-
pageId:
|
|
2067
|
-
responseKey:
|
|
2066
|
+
pageId: r,
|
|
2067
|
+
responseKey: s,
|
|
2068
2068
|
actionType: o,
|
|
2069
2069
|
label: i,
|
|
2070
2070
|
value: c,
|
|
@@ -2073,26 +2073,26 @@ const qs = (t) => {
|
|
|
2073
2073
|
...l
|
|
2074
2074
|
} = t, d = {
|
|
2075
2075
|
...l
|
|
2076
|
-
}, { getNextUI: u } = H(), [h, f] =
|
|
2076
|
+
}, { getNextUI: u } = H(), [h, f] = L(c || !1), { disabled: y } = B(
|
|
2077
2077
|
e,
|
|
2078
2078
|
_
|
|
2079
|
-
), b = D(() => n && i ? `${i} *` : i ?? "", [i, n]), p =
|
|
2079
|
+
), b = D(() => n && i ? `${i} *` : i ?? "", [i, n]), p = I(async () => {
|
|
2080
2080
|
var m;
|
|
2081
2081
|
try {
|
|
2082
2082
|
const g = !h;
|
|
2083
2083
|
f(g);
|
|
2084
2084
|
const C = {
|
|
2085
2085
|
...(m = v.getState()[e]) == null ? void 0 : m.entries,
|
|
2086
|
-
[
|
|
2086
|
+
[s]: g
|
|
2087
2087
|
};
|
|
2088
|
-
switch (
|
|
2088
|
+
switch (q(e, C), o) {
|
|
2089
2089
|
case "GO_TO_NEXT_UI":
|
|
2090
2090
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2091
2091
|
const w = await u(
|
|
2092
2092
|
e,
|
|
2093
|
-
s,
|
|
2094
|
-
C,
|
|
2095
2093
|
r,
|
|
2094
|
+
C,
|
|
2095
|
+
s,
|
|
2096
2096
|
o === "GO_TO_NEXT_UI"
|
|
2097
2097
|
);
|
|
2098
2098
|
w != null && w.data && K(e, w == null ? void 0 : w.data);
|
|
@@ -2104,9 +2104,9 @@ const qs = (t) => {
|
|
|
2104
2104
|
} catch (g) {
|
|
2105
2105
|
console.error("Error in checkbox action:", g), alert(JSON.stringify(g));
|
|
2106
2106
|
}
|
|
2107
|
-
}, [e,
|
|
2107
|
+
}, [e, r, s, o, h]), x = (d == null ? void 0 : d.disabled) ?? y;
|
|
2108
2108
|
return /* @__PURE__ */ a.jsx(
|
|
2109
|
-
|
|
2109
|
+
He,
|
|
2110
2110
|
{
|
|
2111
2111
|
...d,
|
|
2112
2112
|
labelRight: b,
|
|
@@ -2117,18 +2117,18 @@ const qs = (t) => {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
}
|
|
2119
2119
|
);
|
|
2120
|
-
},
|
|
2121
|
-
codeEditor:
|
|
2122
|
-
codeEditor_label:
|
|
2123
|
-
codeEditor_wrapper:
|
|
2124
|
-
input:
|
|
2125
|
-
preview:
|
|
2126
|
-
preview_inner:
|
|
2127
|
-
},
|
|
2120
|
+
}, Qr = "_codeEditor_1wi2p_1", Zr = "_codeEditor_label_1wi2p_4", Pr = "_codeEditor_wrapper_1wi2p_13", Fr = "_input_1wi2p_17", ts = "_preview_1wi2p_18", es = "_preview_inner_1wi2p_33", tt = {
|
|
2121
|
+
codeEditor: Qr,
|
|
2122
|
+
codeEditor_label: Zr,
|
|
2123
|
+
codeEditor_wrapper: Pr,
|
|
2124
|
+
input: Fr,
|
|
2125
|
+
preview: ts,
|
|
2126
|
+
preview_inner: es
|
|
2127
|
+
}, ns = (t) => {
|
|
2128
2128
|
const {
|
|
2129
2129
|
userFlow: e,
|
|
2130
|
-
responseKey:
|
|
2131
|
-
label:
|
|
2130
|
+
responseKey: r,
|
|
2131
|
+
label: s,
|
|
2132
2132
|
language: o,
|
|
2133
2133
|
placeholder: i,
|
|
2134
2134
|
value: c,
|
|
@@ -2137,45 +2137,45 @@ const qs = (t) => {
|
|
|
2137
2137
|
disabled: l,
|
|
2138
2138
|
showPreview: d,
|
|
2139
2139
|
height: u = "400px"
|
|
2140
|
-
} = t, [h, f] =
|
|
2140
|
+
} = t, [h, f] = L(c ?? ""), y = ht.useThemeStore((C) => C.theme.mode), { disabled: b } = B(
|
|
2141
2141
|
e,
|
|
2142
2142
|
_
|
|
2143
2143
|
), p = l ?? b, x = {
|
|
2144
|
-
json:
|
|
2145
|
-
markdown:
|
|
2146
|
-
sql:
|
|
2147
|
-
yaml:
|
|
2148
|
-
}, m = D(() => n &&
|
|
2144
|
+
json: Vt(),
|
|
2145
|
+
markdown: mn(),
|
|
2146
|
+
sql: gn(),
|
|
2147
|
+
yaml: pn()
|
|
2148
|
+
}, m = D(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (C) => {
|
|
2149
2149
|
f(C);
|
|
2150
2150
|
const j = {
|
|
2151
|
-
[
|
|
2151
|
+
[r]: C
|
|
2152
2152
|
};
|
|
2153
|
-
|
|
2153
|
+
q(e, j);
|
|
2154
2154
|
};
|
|
2155
2155
|
return /* @__PURE__ */ a.jsxs("div", { className: tt.codeEditor, children: [
|
|
2156
2156
|
m && m !== "" && /* @__PURE__ */ a.jsx("label", { className: tt.codeEditor_label, children: m }),
|
|
2157
2157
|
/* @__PURE__ */ a.jsxs("div", { className: tt.codeEditor_wrapper, children: [
|
|
2158
2158
|
/* @__PURE__ */ a.jsx(
|
|
2159
|
-
|
|
2159
|
+
yn,
|
|
2160
2160
|
{
|
|
2161
2161
|
className: tt.input,
|
|
2162
2162
|
value: h,
|
|
2163
2163
|
height: u,
|
|
2164
2164
|
placeholder: i,
|
|
2165
|
-
extensions: [x[o] ??
|
|
2165
|
+
extensions: [x[o] ?? Vt()],
|
|
2166
2166
|
onChange: (C) => g(C),
|
|
2167
2167
|
theme: y,
|
|
2168
2168
|
editable: !p
|
|
2169
2169
|
}
|
|
2170
2170
|
),
|
|
2171
|
-
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ a.jsx(
|
|
2171
|
+
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ a.jsx(le, { className: tt.preview_inner, children: h }) })
|
|
2172
2172
|
] })
|
|
2173
2173
|
] });
|
|
2174
|
-
},
|
|
2175
|
-
slotStack:
|
|
2174
|
+
}, rs = "_slotStack_6n2wy_5", ss = {
|
|
2175
|
+
slotStack: rs
|
|
2176
2176
|
};
|
|
2177
|
-
var
|
|
2178
|
-
const
|
|
2177
|
+
var as = { NODE_ENV: "production" };
|
|
2178
|
+
const os = /* @__PURE__ */ new Set([
|
|
2179
2179
|
"accordion",
|
|
2180
2180
|
"button",
|
|
2181
2181
|
"cardAccordion",
|
|
@@ -2194,15 +2194,15 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2194
2194
|
"textarea"
|
|
2195
2195
|
]), Ot = (t, e) => {
|
|
2196
2196
|
if (t != null && t.length)
|
|
2197
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
2197
|
+
return /* @__PURE__ */ a.jsx("div", { className: ss.slotStack, children: t.map((r, s) => {
|
|
2198
2198
|
var o;
|
|
2199
|
-
return /* @__PURE__ */ a.jsx(A, { children:
|
|
2199
|
+
return /* @__PURE__ */ a.jsx(A, { children: r }, ((o = e == null ? void 0 : e[s]) == null ? void 0 : o.hash) ?? s);
|
|
2200
2200
|
}) });
|
|
2201
|
-
},
|
|
2201
|
+
}, cs = ({
|
|
2202
2202
|
userFlow: t,
|
|
2203
2203
|
pageId: e,
|
|
2204
|
-
component:
|
|
2205
|
-
hash:
|
|
2204
|
+
component: r,
|
|
2205
|
+
hash: s,
|
|
2206
2206
|
responseKey: o,
|
|
2207
2207
|
content: i,
|
|
2208
2208
|
topContent: c,
|
|
@@ -2220,7 +2220,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2220
2220
|
c != null && c.length ? c : null
|
|
2221
2221
|
);
|
|
2222
2222
|
return /* @__PURE__ */ a.jsx(
|
|
2223
|
-
|
|
2223
|
+
de,
|
|
2224
2224
|
{
|
|
2225
2225
|
...l,
|
|
2226
2226
|
icon: n,
|
|
@@ -2229,11 +2229,11 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2229
2229
|
children: Ot(u, i)
|
|
2230
2230
|
}
|
|
2231
2231
|
);
|
|
2232
|
-
},
|
|
2232
|
+
}, is = ({
|
|
2233
2233
|
userFlow: t,
|
|
2234
2234
|
pageId: e,
|
|
2235
|
-
responseKey:
|
|
2236
|
-
actionType:
|
|
2235
|
+
responseKey: r,
|
|
2236
|
+
actionType: s,
|
|
2237
2237
|
dataSource: o,
|
|
2238
2238
|
redirectUrl: i,
|
|
2239
2239
|
dependencies: c,
|
|
@@ -2258,17 +2258,17 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2258
2258
|
), j = xt(t, e), { disabled: w } = B(
|
|
2259
2259
|
t,
|
|
2260
2260
|
c
|
|
2261
|
-
), N =
|
|
2262
|
-
responseKey:
|
|
2263
|
-
actionType:
|
|
2261
|
+
), N = s ? () => void j({
|
|
2262
|
+
responseKey: r,
|
|
2263
|
+
actionType: s,
|
|
2264
2264
|
dataSource: o,
|
|
2265
2265
|
redirectUrl: i,
|
|
2266
2266
|
dependencies: c
|
|
2267
2267
|
}) : void 0, k = h ?? w;
|
|
2268
|
-
N && (n != null && n.some(($) =>
|
|
2268
|
+
N && (n != null && n.some(($) => os.has($.component))) && as.NODE_ENV;
|
|
2269
2269
|
const O = N ? { onClick: N, disabled: k } : {};
|
|
2270
2270
|
return /* @__PURE__ */ a.jsx(
|
|
2271
|
-
|
|
2271
|
+
de,
|
|
2272
2272
|
{
|
|
2273
2273
|
version: "v2",
|
|
2274
2274
|
status: f,
|
|
@@ -2285,17 +2285,17 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2285
2285
|
children: Ot(C, n)
|
|
2286
2286
|
}
|
|
2287
2287
|
);
|
|
2288
|
-
},
|
|
2289
|
-
dividerNotFront:
|
|
2290
|
-
},
|
|
2291
|
-
drawer:
|
|
2292
|
-
drawerBody:
|
|
2293
|
-
drawerFooter:
|
|
2294
|
-
},
|
|
2288
|
+
}, ls = (t) => t.version === "v2" ? /* @__PURE__ */ a.jsx(is, { ...t }) : /* @__PURE__ */ a.jsx(cs, { ...t }), ds = "_dividerNotFront_tze3j_1", _s = {
|
|
2289
|
+
dividerNotFront: ds
|
|
2290
|
+
}, us = (t) => /* @__PURE__ */ a.jsx(Ve, { ...t, className: _s.dividerNotFront }), hs = "_drawer_13pxo_1", fs = "_drawerBody_13pxo_5", xs = "_drawerFooter_13pxo_11", kt = {
|
|
2291
|
+
drawer: hs,
|
|
2292
|
+
drawerBody: fs,
|
|
2293
|
+
drawerFooter: xs
|
|
2294
|
+
}, ys = ({
|
|
2295
2295
|
userFlow: t,
|
|
2296
2296
|
pageId: e,
|
|
2297
|
-
responseKey:
|
|
2298
|
-
header:
|
|
2297
|
+
responseKey: r,
|
|
2298
|
+
header: s,
|
|
2299
2299
|
body: o,
|
|
2300
2300
|
footer: i,
|
|
2301
2301
|
...c
|
|
@@ -2310,11 +2310,11 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2310
2310
|
...c,
|
|
2311
2311
|
isOpen: l,
|
|
2312
2312
|
children: null
|
|
2313
|
-
}, u =
|
|
2314
|
-
|
|
2315
|
-
}, [t]), h = Array.isArray(
|
|
2313
|
+
}, u = I(() => {
|
|
2314
|
+
qt(t), _t(t, !1);
|
|
2315
|
+
}, [t]), h = Array.isArray(s) ? E(t, e, s) : s ? /* @__PURE__ */ a.jsx(oe, { type: "h2", children: s }) : void 0, f = E(t, e, o), y = i ? E(t, e, i) : void 0;
|
|
2316
2316
|
return /* @__PURE__ */ a.jsx(
|
|
2317
|
-
|
|
2317
|
+
Ue,
|
|
2318
2318
|
{
|
|
2319
2319
|
...d,
|
|
2320
2320
|
className: kt.drawer,
|
|
@@ -2326,11 +2326,11 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2326
2326
|
footer: y ? /* @__PURE__ */ a.jsx("div", { className: kt.drawerFooter, children: y.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `drawer-footer-${x}`)) }) : void 0
|
|
2327
2327
|
}
|
|
2328
2328
|
);
|
|
2329
|
-
},
|
|
2329
|
+
}, ms = (t) => {
|
|
2330
2330
|
const {
|
|
2331
2331
|
userFlow: e,
|
|
2332
|
-
pageId:
|
|
2333
|
-
component:
|
|
2332
|
+
pageId: r,
|
|
2333
|
+
component: s,
|
|
2334
2334
|
hash: o,
|
|
2335
2335
|
responseKey: i,
|
|
2336
2336
|
content: c,
|
|
@@ -2339,7 +2339,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2339
2339
|
variant: l,
|
|
2340
2340
|
leftIcon: d,
|
|
2341
2341
|
rightIcon: u
|
|
2342
|
-
} = t, h = xt(e,
|
|
2342
|
+
} = t, h = xt(e, r), f = D(
|
|
2343
2343
|
() => n.map((y) => ({
|
|
2344
2344
|
label: y.content ?? y.label ?? "",
|
|
2345
2345
|
onClick: () => {
|
|
@@ -2355,14 +2355,14 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2355
2355
|
[n, h]
|
|
2356
2356
|
);
|
|
2357
2357
|
return /* @__PURE__ */ a.jsx(
|
|
2358
|
-
|
|
2358
|
+
ze,
|
|
2359
2359
|
{
|
|
2360
2360
|
disabled: _,
|
|
2361
2361
|
variant: l,
|
|
2362
2362
|
items: f,
|
|
2363
2363
|
children: /* @__PURE__ */ a.jsxs(A, { children: [
|
|
2364
2364
|
d ? /* @__PURE__ */ a.jsx(
|
|
2365
|
-
|
|
2365
|
+
Ut,
|
|
2366
2366
|
{
|
|
2367
2367
|
name: d,
|
|
2368
2368
|
size: "md",
|
|
@@ -2371,7 +2371,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2371
2371
|
) : null,
|
|
2372
2372
|
c,
|
|
2373
2373
|
u ? /* @__PURE__ */ a.jsx(
|
|
2374
|
-
|
|
2374
|
+
Ut,
|
|
2375
2375
|
{
|
|
2376
2376
|
name: u,
|
|
2377
2377
|
size: "md",
|
|
@@ -2381,14 +2381,14 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2381
2381
|
] })
|
|
2382
2382
|
}
|
|
2383
2383
|
);
|
|
2384
|
-
},
|
|
2385
|
-
header:
|
|
2386
|
-
header_content:
|
|
2387
|
-
},
|
|
2384
|
+
}, gs = "_header_g1eri_1", ps = "_header_content_g1eri_5", ee = {
|
|
2385
|
+
header: gs,
|
|
2386
|
+
header_content: ps
|
|
2387
|
+
}, bs = ({ components: t = [] }) => /* @__PURE__ */ a.jsx("section", { className: et(ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ a.jsx("div", { className: ee.header_content, children: t.map((e, r) => /* @__PURE__ */ a.jsx(A, { children: e }, r)) }) }), js = (t) => {
|
|
2388
2388
|
const {
|
|
2389
2389
|
userFlow: e,
|
|
2390
|
-
pageId:
|
|
2391
|
-
responseKey:
|
|
2390
|
+
pageId: r,
|
|
2391
|
+
responseKey: s,
|
|
2392
2392
|
actionType: o,
|
|
2393
2393
|
content: i,
|
|
2394
2394
|
redirectUrl: c,
|
|
@@ -2403,21 +2403,21 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2403
2403
|
), y = o && u ? (() => {
|
|
2404
2404
|
const { href: x, target: m, download: g, ...C } = u;
|
|
2405
2405
|
return C;
|
|
2406
|
-
})() : u, b =
|
|
2406
|
+
})() : u, b = I(async () => {
|
|
2407
2407
|
var x;
|
|
2408
2408
|
if (o)
|
|
2409
2409
|
try {
|
|
2410
2410
|
const m = {
|
|
2411
2411
|
...(x = v.getState()[e]) == null ? void 0 : x.entries,
|
|
2412
|
-
[
|
|
2412
|
+
[s]: { status: 200 }
|
|
2413
2413
|
};
|
|
2414
|
-
switch (
|
|
2414
|
+
switch (q(e, m), o) {
|
|
2415
2415
|
case "GO_TO_NEXT_UI": {
|
|
2416
2416
|
const g = await h(
|
|
2417
2417
|
e,
|
|
2418
|
-
|
|
2418
|
+
r,
|
|
2419
2419
|
m,
|
|
2420
|
-
|
|
2420
|
+
s
|
|
2421
2421
|
);
|
|
2422
2422
|
g != null && g.data && K(e, g == null ? void 0 : g.data);
|
|
2423
2423
|
break;
|
|
@@ -2436,9 +2436,9 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2436
2436
|
} catch (m) {
|
|
2437
2437
|
alert(JSON.stringify(m));
|
|
2438
2438
|
}
|
|
2439
|
-
}, [o, h,
|
|
2439
|
+
}, [o, h, r, c, s, n, e]), p = y.disabled ?? f;
|
|
2440
2440
|
return /* @__PURE__ */ a.jsx(
|
|
2441
|
-
|
|
2441
|
+
Xe,
|
|
2442
2442
|
{
|
|
2443
2443
|
...y,
|
|
2444
2444
|
disabled: p,
|
|
@@ -2446,11 +2446,11 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2446
2446
|
children: i
|
|
2447
2447
|
}
|
|
2448
2448
|
);
|
|
2449
|
-
},
|
|
2449
|
+
}, Cs = (t) => {
|
|
2450
2450
|
const {
|
|
2451
2451
|
userFlow: e,
|
|
2452
|
-
pageId:
|
|
2453
|
-
component:
|
|
2452
|
+
pageId: r,
|
|
2453
|
+
component: s,
|
|
2454
2454
|
hash: o,
|
|
2455
2455
|
responseKey: i,
|
|
2456
2456
|
items: c,
|
|
@@ -2459,7 +2459,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2459
2459
|
listOrigin: l,
|
|
2460
2460
|
size: d,
|
|
2461
2461
|
variant: u
|
|
2462
|
-
} = t, h = xt(e,
|
|
2462
|
+
} = t, h = xt(e, r), f = D(
|
|
2463
2463
|
() => c.map((y) => ({
|
|
2464
2464
|
icon: y.leftIcon,
|
|
2465
2465
|
label: y.content ?? y.label ?? "",
|
|
@@ -2477,7 +2477,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2477
2477
|
[c, h]
|
|
2478
2478
|
);
|
|
2479
2479
|
return /* @__PURE__ */ a.jsx(
|
|
2480
|
-
|
|
2480
|
+
Je,
|
|
2481
2481
|
{
|
|
2482
2482
|
items: f,
|
|
2483
2483
|
closeOnClick: n,
|
|
@@ -2487,13 +2487,13 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2487
2487
|
variant: u
|
|
2488
2488
|
}
|
|
2489
2489
|
);
|
|
2490
|
-
},
|
|
2491
|
-
modalContent:
|
|
2492
|
-
},
|
|
2490
|
+
}, ws = "_modalContent_p06ci_1", Ns = {
|
|
2491
|
+
modalContent: ws
|
|
2492
|
+
}, vs = ({
|
|
2493
2493
|
userFlow: t,
|
|
2494
2494
|
pageId: e,
|
|
2495
|
-
responseKey:
|
|
2496
|
-
header:
|
|
2495
|
+
responseKey: r,
|
|
2496
|
+
header: s,
|
|
2497
2497
|
body: o,
|
|
2498
2498
|
footer: i,
|
|
2499
2499
|
headerStatusColor: c,
|
|
@@ -2507,46 +2507,46 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2507
2507
|
return (m = x[t]) == null ? void 0 : m.isLoading;
|
|
2508
2508
|
}), d = _ && !l, u = {
|
|
2509
2509
|
...n
|
|
2510
|
-
}, h = (u == null ? void 0 : u.headerStatusColor) ?? c, f =
|
|
2511
|
-
|
|
2512
|
-
}, [t,
|
|
2510
|
+
}, h = (u == null ? void 0 : u.headerStatusColor) ?? c, f = I(() => {
|
|
2511
|
+
qt(t), Kt(t, !1);
|
|
2512
|
+
}, [t, r]), y = Array.isArray(s) ? E(t, e, s) : s, b = E(t, e, o), p = E(t, e, i);
|
|
2513
2513
|
return /* @__PURE__ */ a.jsx(
|
|
2514
|
-
|
|
2514
|
+
We,
|
|
2515
2515
|
{
|
|
2516
2516
|
...u,
|
|
2517
2517
|
headerStatusColor: h,
|
|
2518
2518
|
header: typeof y == "string" ? y : /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-header-${m}`)) }),
|
|
2519
|
-
children: /* @__PURE__ */ a.jsx("section", { className:
|
|
2519
|
+
children: /* @__PURE__ */ a.jsx("section", { className: Ns.modalContent, children: b.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-body-${m}`)) }),
|
|
2520
2520
|
actions: /* @__PURE__ */ a.jsx(a.Fragment, { children: p.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-footer-${m}`)) }),
|
|
2521
2521
|
open: d,
|
|
2522
2522
|
onClose: f
|
|
2523
2523
|
}
|
|
2524
2524
|
);
|
|
2525
|
-
},
|
|
2525
|
+
}, Es = ({ userFlow: t, pageId: e }) => {
|
|
2526
2526
|
var i, c;
|
|
2527
|
-
const
|
|
2528
|
-
if (!
|
|
2527
|
+
const r = wn(t);
|
|
2528
|
+
if (!r)
|
|
2529
2529
|
return null;
|
|
2530
|
-
const
|
|
2531
|
-
...(
|
|
2532
|
-
...((i =
|
|
2533
|
-
...((c =
|
|
2530
|
+
const s = [
|
|
2531
|
+
...(r == null ? void 0 : r.components) || [],
|
|
2532
|
+
...((i = r == null ? void 0 : r.header) == null ? void 0 : i.components) || [],
|
|
2533
|
+
...((c = r == null ? void 0 : r.body) == null ? void 0 : c.components) || []
|
|
2534
2534
|
], o = E(
|
|
2535
2535
|
t,
|
|
2536
2536
|
e,
|
|
2537
|
-
|
|
2537
|
+
s
|
|
2538
2538
|
);
|
|
2539
2539
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: o == null ? void 0 : o.map((n, _) => {
|
|
2540
|
-
const l = `overlay-${_}-${
|
|
2540
|
+
const l = `overlay-${_}-${r == null ? void 0 : r.hash}`;
|
|
2541
2541
|
return /* @__PURE__ */ a.jsx(A, { children: n }, l);
|
|
2542
2542
|
}) });
|
|
2543
|
-
},
|
|
2543
|
+
}, ks = [
|
|
2544
2544
|
"success",
|
|
2545
2545
|
"warning",
|
|
2546
2546
|
"error",
|
|
2547
2547
|
"info",
|
|
2548
2548
|
"neutral"
|
|
2549
|
-
],
|
|
2549
|
+
], Ne = {
|
|
2550
2550
|
success: {
|
|
2551
2551
|
color: "success-opacity",
|
|
2552
2552
|
textColor: "success-60",
|
|
@@ -2572,44 +2572,77 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2572
2572
|
textColor: "neutral-70",
|
|
2573
2573
|
iconColor: "neutral-70"
|
|
2574
2574
|
}
|
|
2575
|
-
},
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2575
|
+
}, $t = {
|
|
2576
|
+
success: {
|
|
2577
|
+
color: "success-50",
|
|
2578
|
+
textColor: "success-60",
|
|
2579
|
+
iconColor: "success-50"
|
|
2580
|
+
},
|
|
2581
|
+
warning: {
|
|
2582
|
+
color: "warning-50",
|
|
2583
|
+
textColor: "warning-60",
|
|
2584
|
+
iconColor: "warning-50"
|
|
2585
|
+
},
|
|
2586
|
+
error: {
|
|
2587
|
+
color: "error-50",
|
|
2588
|
+
textColor: "error-60",
|
|
2589
|
+
iconColor: "error-50"
|
|
2590
|
+
},
|
|
2591
|
+
info: {
|
|
2592
|
+
color: "primary-50",
|
|
2593
|
+
textColor: "primary-70",
|
|
2594
|
+
iconColor: "primary-70"
|
|
2595
|
+
},
|
|
2596
|
+
neutral: {
|
|
2597
|
+
color: "neutral-30",
|
|
2598
|
+
textColor: "neutral-50",
|
|
2599
|
+
iconColor: "neutral-50"
|
|
2600
|
+
}
|
|
2601
|
+
}, Ts = "outlined", ne = (t) => typeof t == "string" && ks.includes(t), Ss = (t, e = {}) => t != null && t.length ? t.length === 3 && ne(t[1]) && t[2] === Ts ? [{ label: String(t[0]), variant: t[1], outlined: !0 }] : t.length === 2 && ne(t[1]) ? [
|
|
2602
|
+
{
|
|
2603
|
+
label: String(t[0]),
|
|
2604
|
+
variant: t[1],
|
|
2605
|
+
...e.outlined ? { outlined: !0 } : {}
|
|
2606
|
+
}
|
|
2607
|
+
] : t.map((r) => ({
|
|
2608
|
+
label: String(r),
|
|
2609
|
+
variant: e.variant ?? "neutral",
|
|
2610
|
+
...e.outlined ? { outlined: !0 } : {}
|
|
2611
|
+
})) : [], As = (t) => {
|
|
2612
|
+
const { content: e, variant: r = "neutral", ...s } = t, o = Ne[r], i = {
|
|
2613
|
+
...s,
|
|
2581
2614
|
children: e,
|
|
2582
|
-
color: (
|
|
2583
|
-
textColor: (
|
|
2584
|
-
iconColor: (
|
|
2615
|
+
color: (s == null ? void 0 : s.color) ?? o.color,
|
|
2616
|
+
textColor: (s == null ? void 0 : s.textColor) ?? o.textColor,
|
|
2617
|
+
iconColor: (s == null ? void 0 : s.iconColor) ?? o.iconColor
|
|
2585
2618
|
};
|
|
2586
|
-
return /* @__PURE__ */ a.jsx(
|
|
2587
|
-
},
|
|
2619
|
+
return /* @__PURE__ */ a.jsx(Tt, { ...i });
|
|
2620
|
+
}, Os = (t) => {
|
|
2588
2621
|
const { content: e } = t;
|
|
2589
|
-
return /* @__PURE__ */ a.jsx(
|
|
2590
|
-
},
|
|
2622
|
+
return /* @__PURE__ */ a.jsx(le, { children: e });
|
|
2623
|
+
}, $s = (t) => {
|
|
2591
2624
|
const {
|
|
2592
2625
|
userFlow: e,
|
|
2593
|
-
pageId:
|
|
2594
|
-
responseKey:
|
|
2626
|
+
pageId: r,
|
|
2627
|
+
responseKey: s,
|
|
2595
2628
|
actionType: o,
|
|
2596
2629
|
dataSource: i,
|
|
2597
2630
|
dependencies: c,
|
|
2598
2631
|
onClick: n,
|
|
2599
2632
|
..._
|
|
2600
|
-
} = t, l = xt(e,
|
|
2633
|
+
} = t, l = xt(e, r), { disabled: d } = B(
|
|
2601
2634
|
e,
|
|
2602
2635
|
c
|
|
2603
2636
|
), u = {
|
|
2604
2637
|
..._
|
|
2605
|
-
}, h = (u == null ? void 0 : u.disabled) ?? d, [f, y] =
|
|
2638
|
+
}, h = (u == null ? void 0 : u.disabled) ?? d, [f, y] = L(!1), b = ut(!1), p = I(async () => {
|
|
2606
2639
|
if (b.current)
|
|
2607
2640
|
return;
|
|
2608
2641
|
const x = o === "FETCH_DATA_SOURCE";
|
|
2609
2642
|
x && (b.current = !0, y(!0));
|
|
2610
2643
|
try {
|
|
2611
2644
|
await l({
|
|
2612
|
-
responseKey:
|
|
2645
|
+
responseKey: s,
|
|
2613
2646
|
actionType: o,
|
|
2614
2647
|
dataSource: i,
|
|
2615
2648
|
dependencies: c
|
|
@@ -2619,9 +2652,9 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2619
2652
|
} finally {
|
|
2620
2653
|
x && (b.current = !1, y(!1));
|
|
2621
2654
|
}
|
|
2622
|
-
}, [o, i, c,
|
|
2655
|
+
}, [o, i, c, s, l]);
|
|
2623
2656
|
return /* @__PURE__ */ a.jsx(
|
|
2624
|
-
|
|
2657
|
+
Ye,
|
|
2625
2658
|
{
|
|
2626
2659
|
...u,
|
|
2627
2660
|
loading: u.loading || f,
|
|
@@ -2629,8 +2662,8 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2629
2662
|
onClick: () => !h && !f && (n ?? p)()
|
|
2630
2663
|
}
|
|
2631
2664
|
);
|
|
2632
|
-
},
|
|
2633
|
-
row:
|
|
2665
|
+
}, Ds = "_row_1bqj4_1", Rs = "_row_column_1bqj4_65", z = {
|
|
2666
|
+
row: Ds,
|
|
2634
2667
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
2635
2668
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
2636
2669
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -2651,7 +2684,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2651
2684
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
2652
2685
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
2653
2686
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
2654
|
-
row_column:
|
|
2687
|
+
row_column: Rs,
|
|
2655
2688
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
2656
2689
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
2657
2690
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -2672,11 +2705,11 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2672
2705
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
2673
2706
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
2674
2707
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
2675
|
-
},
|
|
2708
|
+
}, Ls = (t) => {
|
|
2676
2709
|
const {
|
|
2677
2710
|
userFlow: e,
|
|
2678
|
-
pageId:
|
|
2679
|
-
columnWidth:
|
|
2711
|
+
pageId: r,
|
|
2712
|
+
columnWidth: s,
|
|
2680
2713
|
columns: o,
|
|
2681
2714
|
gap: i = "md",
|
|
2682
2715
|
justifyContent: c = "start",
|
|
@@ -2712,7 +2745,7 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2712
2745
|
z[`row__align-${n}`]
|
|
2713
2746
|
),
|
|
2714
2747
|
children: _ == null ? void 0 : _.map((l, d) => {
|
|
2715
|
-
const u = (
|
|
2748
|
+
const u = (s == null ? void 0 : s[d]) || `${100 / _.length}%`, h = E(e, r, l.items);
|
|
2716
2749
|
return !h || h.length === 0 ? null : /* @__PURE__ */ a.jsx(
|
|
2717
2750
|
"div",
|
|
2718
2751
|
{
|
|
@@ -2731,11 +2764,11 @@ const rr = /* @__PURE__ */ new Set([
|
|
|
2731
2764
|
}
|
|
2732
2765
|
);
|
|
2733
2766
|
};
|
|
2734
|
-
function
|
|
2767
|
+
function ve({
|
|
2735
2768
|
userFlow: t,
|
|
2736
2769
|
pageId: e,
|
|
2737
|
-
responseKey:
|
|
2738
|
-
actionType:
|
|
2770
|
+
responseKey: r,
|
|
2771
|
+
actionType: s,
|
|
2739
2772
|
getNextUI: o,
|
|
2740
2773
|
isMulti: i = !1,
|
|
2741
2774
|
debounceMs: c
|
|
@@ -2744,29 +2777,29 @@ function we({
|
|
|
2744
2777
|
U(() => () => {
|
|
2745
2778
|
n.current !== null && (clearTimeout(n.current), n.current = null);
|
|
2746
2779
|
}, []);
|
|
2747
|
-
const _ =
|
|
2780
|
+
const _ = I(
|
|
2748
2781
|
async (d) => {
|
|
2749
2782
|
var f;
|
|
2750
2783
|
const u = {
|
|
2751
2784
|
...(f = v.getState()[t]) == null ? void 0 : f.entries
|
|
2752
2785
|
};
|
|
2753
|
-
if (d ? (u[
|
|
2786
|
+
if (d ? (u[r] = d, q(t, u)) : (delete u[r], Nn(t, r)), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2754
2787
|
try {
|
|
2755
2788
|
const b = await o(
|
|
2756
2789
|
t,
|
|
2757
2790
|
e,
|
|
2758
2791
|
u,
|
|
2759
|
-
|
|
2760
|
-
|
|
2792
|
+
r,
|
|
2793
|
+
s === "GO_TO_NEXT_UI"
|
|
2761
2794
|
);
|
|
2762
2795
|
b != null && b.data && K(t, b.data);
|
|
2763
2796
|
} catch (y) {
|
|
2764
2797
|
console.error("[useSelectChange] Failed to fetch next UI", y);
|
|
2765
2798
|
}
|
|
2766
2799
|
},
|
|
2767
|
-
[t, e,
|
|
2800
|
+
[t, e, r, s, o]
|
|
2768
2801
|
);
|
|
2769
|
-
return
|
|
2802
|
+
return I(
|
|
2770
2803
|
(d) => {
|
|
2771
2804
|
if (!i) {
|
|
2772
2805
|
_(d);
|
|
@@ -2783,29 +2816,29 @@ function we({
|
|
|
2783
2816
|
[i, c, _]
|
|
2784
2817
|
);
|
|
2785
2818
|
}
|
|
2786
|
-
const
|
|
2787
|
-
var
|
|
2788
|
-
return e.includes("{") ? e.replace(
|
|
2819
|
+
const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
2820
|
+
var r;
|
|
2821
|
+
return e.includes("{") ? e.replace(Is, (s, o) => {
|
|
2789
2822
|
var c;
|
|
2790
2823
|
const i = (c = M.query(t, o.trim())) == null ? void 0 : c[0];
|
|
2791
2824
|
return i != null ? String(i) : "";
|
|
2792
|
-
}) : (
|
|
2793
|
-
},
|
|
2825
|
+
}) : (r = M.query(t, e)) == null ? void 0 : r[0];
|
|
2826
|
+
}, Ks = (t, e, r, s) => {
|
|
2794
2827
|
const o = M.query(t, e);
|
|
2795
2828
|
return (o == null ? void 0 : o.map((i) => {
|
|
2796
2829
|
var _;
|
|
2797
|
-
const c =
|
|
2830
|
+
const c = qs(i, r), n = s ? (_ = M.query(i, s)) == null ? void 0 : _[0] : i;
|
|
2798
2831
|
return { label: c, value: n };
|
|
2799
2832
|
})) ?? [];
|
|
2800
|
-
},
|
|
2833
|
+
}, Bs = (t, e, r, s = 10) => {
|
|
2801
2834
|
var n, _;
|
|
2802
2835
|
let o, i;
|
|
2803
|
-
if (
|
|
2804
|
-
const l = M.value(t,
|
|
2836
|
+
if (r) {
|
|
2837
|
+
const l = M.value(t, r.size ?? "$.meta.size") ?? s, d = M.value(t, r.total ?? "$.meta.total") ?? 0;
|
|
2805
2838
|
o = l, i = d;
|
|
2806
2839
|
} else {
|
|
2807
2840
|
const l = t == null ? void 0 : t.meta;
|
|
2808
|
-
o = (l == null ? void 0 : l.size) ?? ((n = l == null ? void 0 : l.page) == null ? void 0 : n.size) ??
|
|
2841
|
+
o = (l == null ? void 0 : l.size) ?? ((n = l == null ? void 0 : l.page) == null ? void 0 : n.size) ?? s, i = (l == null ? void 0 : l.total) ?? ((_ = l == null ? void 0 : l.page) == null ? void 0 : _.total) ?? 0;
|
|
2809
2842
|
}
|
|
2810
2843
|
const c = i > 0 ? Math.ceil(i / o) > e : !1;
|
|
2811
2844
|
return {
|
|
@@ -2813,13 +2846,13 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2813
2846
|
total: i,
|
|
2814
2847
|
hasMore: c
|
|
2815
2848
|
};
|
|
2816
|
-
},
|
|
2817
|
-
selectNotFront:
|
|
2818
|
-
},
|
|
2849
|
+
}, Ms = "_selectNotFront_ch3v5_1", Ee = {
|
|
2850
|
+
selectNotFront: Ms
|
|
2851
|
+
}, Gs = ({
|
|
2819
2852
|
userFlow: t,
|
|
2820
2853
|
pageId: e,
|
|
2821
|
-
responseKey:
|
|
2822
|
-
required:
|
|
2854
|
+
responseKey: r,
|
|
2855
|
+
required: s,
|
|
2823
2856
|
dataSource: o,
|
|
2824
2857
|
actionType: i,
|
|
2825
2858
|
dependencies: c,
|
|
@@ -2828,20 +2861,20 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2828
2861
|
}) => {
|
|
2829
2862
|
const l = {
|
|
2830
2863
|
..._
|
|
2831
|
-
}, { getNextUI: d, fetchDataSource: u } = H(), [h, f] =
|
|
2864
|
+
}, { getNextUI: d, fetchDataSource: u } = H(), [h, f] = L((l == null ? void 0 : l.value) ?? ""), { disabled: y } = B(
|
|
2832
2865
|
t,
|
|
2833
2866
|
c
|
|
2834
|
-
), b = (l == null ? void 0 : l.disabled) ?? y, p = D(() =>
|
|
2867
|
+
), b = (l == null ? void 0 : l.disabled) ?? y, p = D(() => s && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, s]), x = D(() => {
|
|
2835
2868
|
const j = l != null && l.isMulti ? h : [h], w = {};
|
|
2836
2869
|
return Array.isArray(j) && j.forEach((N) => {
|
|
2837
2870
|
if (!N) return;
|
|
2838
2871
|
const k = JSON.stringify(N.value), O = JSON.stringify(N.label);
|
|
2839
2872
|
w[k] = N, O in w || (w[O] = N);
|
|
2840
2873
|
}), w;
|
|
2841
|
-
}, [h]), m =
|
|
2874
|
+
}, [h]), m = ve({
|
|
2842
2875
|
userFlow: t,
|
|
2843
2876
|
pageId: e,
|
|
2844
|
-
responseKey:
|
|
2877
|
+
responseKey: r,
|
|
2845
2878
|
actionType: i,
|
|
2846
2879
|
getNextUI: d,
|
|
2847
2880
|
isMulti: l == null ? void 0 : l.isMulti,
|
|
@@ -2854,20 +2887,20 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2854
2887
|
jsonPathOptions: O,
|
|
2855
2888
|
jsonPathValue: $,
|
|
2856
2889
|
jsonPathPagination: Q
|
|
2857
|
-
} = o, V =
|
|
2890
|
+
} = o, V = Bt(
|
|
2858
2891
|
o,
|
|
2859
2892
|
N,
|
|
2860
2893
|
j
|
|
2861
|
-
),
|
|
2894
|
+
), T = await u(
|
|
2862
2895
|
V,
|
|
2863
2896
|
t,
|
|
2864
2897
|
!1
|
|
2865
|
-
), G =
|
|
2898
|
+
), G = T == null ? void 0 : T.data, ct = G ? Ks(
|
|
2866
2899
|
G,
|
|
2867
2900
|
O,
|
|
2868
2901
|
k,
|
|
2869
2902
|
$
|
|
2870
|
-
) : [], { hasMore: bt } =
|
|
2903
|
+
) : [], { hasMore: bt } = Bs(
|
|
2871
2904
|
G,
|
|
2872
2905
|
N,
|
|
2873
2906
|
Q
|
|
@@ -2881,10 +2914,10 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2881
2914
|
};
|
|
2882
2915
|
};
|
|
2883
2916
|
return /* @__PURE__ */ a.jsx(
|
|
2884
|
-
|
|
2917
|
+
Qe,
|
|
2885
2918
|
{
|
|
2886
2919
|
...l,
|
|
2887
|
-
className:
|
|
2920
|
+
className: Ee.selectNotFront,
|
|
2888
2921
|
label: p,
|
|
2889
2922
|
value: h,
|
|
2890
2923
|
disabled: b,
|
|
@@ -2899,11 +2932,11 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2899
2932
|
debounceTimeout: 350
|
|
2900
2933
|
}
|
|
2901
2934
|
);
|
|
2902
|
-
},
|
|
2935
|
+
}, Hs = ({
|
|
2903
2936
|
userFlow: t,
|
|
2904
2937
|
pageId: e,
|
|
2905
|
-
responseKey:
|
|
2906
|
-
dataSource:
|
|
2938
|
+
responseKey: r,
|
|
2939
|
+
dataSource: s,
|
|
2907
2940
|
required: o,
|
|
2908
2941
|
actionType: i,
|
|
2909
2942
|
dependencies: c,
|
|
@@ -2912,13 +2945,13 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2912
2945
|
}) => {
|
|
2913
2946
|
const l = {
|
|
2914
2947
|
..._
|
|
2915
|
-
}, { getNextUI: d } = H(), [u, h] =
|
|
2948
|
+
}, { getNextUI: d } = H(), [u, h] = L(l.value || ""), { disabled: f } = B(
|
|
2916
2949
|
t,
|
|
2917
2950
|
c
|
|
2918
|
-
), y = (l == null ? void 0 : l.disabled) ?? f, b = D(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), p =
|
|
2951
|
+
), y = (l == null ? void 0 : l.disabled) ?? f, b = D(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), p = ve({
|
|
2919
2952
|
userFlow: t,
|
|
2920
2953
|
pageId: e,
|
|
2921
|
-
responseKey:
|
|
2954
|
+
responseKey: r,
|
|
2922
2955
|
actionType: i,
|
|
2923
2956
|
getNextUI: d,
|
|
2924
2957
|
isMulti: l == null ? void 0 : l.isMulti,
|
|
@@ -2927,37 +2960,37 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2927
2960
|
h(m), p(m);
|
|
2928
2961
|
};
|
|
2929
2962
|
return /* @__PURE__ */ a.jsx(
|
|
2930
|
-
|
|
2963
|
+
Ze,
|
|
2931
2964
|
{
|
|
2932
2965
|
...l,
|
|
2933
|
-
className:
|
|
2966
|
+
className: Ee.selectNotFront,
|
|
2934
2967
|
label: b,
|
|
2935
2968
|
value: u,
|
|
2936
2969
|
disabled: y,
|
|
2937
2970
|
onChange: (m) => !y && x(m)
|
|
2938
2971
|
}
|
|
2939
2972
|
);
|
|
2940
|
-
},
|
|
2973
|
+
}, Vs = (t) => {
|
|
2941
2974
|
const { dataSource: e } = t;
|
|
2942
|
-
return e ? /* @__PURE__ */ a.jsx(
|
|
2943
|
-
},
|
|
2944
|
-
spacing:
|
|
2945
|
-
spacing__xxs:
|
|
2946
|
-
spacing__xs:
|
|
2947
|
-
spacing__sm:
|
|
2948
|
-
spacing__md:
|
|
2949
|
-
spacing__lg:
|
|
2950
|
-
spacing__xl:
|
|
2951
|
-
spacing__xxl:
|
|
2952
|
-
spacing__xxxl:
|
|
2953
|
-
},
|
|
2954
|
-
const { size: e } = t,
|
|
2955
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
2956
|
-
},
|
|
2975
|
+
return e ? /* @__PURE__ */ a.jsx(Gs, { ...t }) : /* @__PURE__ */ a.jsx(Hs, { ...t });
|
|
2976
|
+
}, Us = "_spacing_19hqa_1", zs = "_spacing__xxs_19hqa_1", Xs = "_spacing__xs_19hqa_4", Js = "_spacing__sm_19hqa_7", Ws = "_spacing__md_19hqa_10", Ys = "_spacing__lg_19hqa_13", Qs = "_spacing__xl_19hqa_16", Zs = "_spacing__xxl_19hqa_19", Ps = "_spacing__xxxl_19hqa_22", re = {
|
|
2977
|
+
spacing: Us,
|
|
2978
|
+
spacing__xxs: zs,
|
|
2979
|
+
spacing__xs: Xs,
|
|
2980
|
+
spacing__sm: Js,
|
|
2981
|
+
spacing__md: Ws,
|
|
2982
|
+
spacing__lg: Ys,
|
|
2983
|
+
spacing__xl: Qs,
|
|
2984
|
+
spacing__xxl: Zs,
|
|
2985
|
+
spacing__xxxl: Ps
|
|
2986
|
+
}, Fs = (t) => {
|
|
2987
|
+
const { size: e } = t, r = et(re.spacing, re[`spacing__${e}`]);
|
|
2988
|
+
return /* @__PURE__ */ a.jsx("div", { className: r });
|
|
2989
|
+
}, ta = (t) => {
|
|
2957
2990
|
const {
|
|
2958
2991
|
userFlow: e,
|
|
2959
|
-
pageId:
|
|
2960
|
-
responseKey:
|
|
2992
|
+
pageId: r,
|
|
2993
|
+
responseKey: s,
|
|
2961
2994
|
actionType: o,
|
|
2962
2995
|
label: i,
|
|
2963
2996
|
value: c,
|
|
@@ -2966,26 +2999,26 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2966
2999
|
...l
|
|
2967
3000
|
} = t, d = {
|
|
2968
3001
|
...l
|
|
2969
|
-
}, { getNextUI: u } = H(), [h, f] =
|
|
3002
|
+
}, { getNextUI: u } = H(), [h, f] = L(c || !1), { disabled: y } = B(
|
|
2970
3003
|
e,
|
|
2971
3004
|
_
|
|
2972
|
-
), b = (d == null ? void 0 : d.disabled) ?? y, p = D(() => n && i ? `${i} *` : i ?? "", [i, n]), x =
|
|
3005
|
+
), b = (d == null ? void 0 : d.disabled) ?? y, p = D(() => n && i ? `${i} *` : i ?? "", [i, n]), x = I(async () => {
|
|
2973
3006
|
var m;
|
|
2974
3007
|
try {
|
|
2975
3008
|
const g = !h;
|
|
2976
3009
|
f(g);
|
|
2977
3010
|
const C = {
|
|
2978
3011
|
...(m = v.getState()[e]) == null ? void 0 : m.entries,
|
|
2979
|
-
[
|
|
3012
|
+
[s]: g
|
|
2980
3013
|
};
|
|
2981
|
-
switch (
|
|
3014
|
+
switch (q(e, C), o) {
|
|
2982
3015
|
case "GO_TO_NEXT_UI":
|
|
2983
3016
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2984
3017
|
const w = await u(
|
|
2985
3018
|
e,
|
|
2986
|
-
s,
|
|
2987
|
-
C,
|
|
2988
3019
|
r,
|
|
3020
|
+
C,
|
|
3021
|
+
s,
|
|
2989
3022
|
o === "GO_TO_NEXT_UI"
|
|
2990
3023
|
);
|
|
2991
3024
|
w != null && w.data && K(e, w == null ? void 0 : w.data);
|
|
@@ -2997,9 +3030,9 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
2997
3030
|
} catch (g) {
|
|
2998
3031
|
console.error("Error in switch action:", g), alert(JSON.stringify(g));
|
|
2999
3032
|
}
|
|
3000
|
-
}, [e,
|
|
3033
|
+
}, [e, r, s, o, h]);
|
|
3001
3034
|
return /* @__PURE__ */ a.jsx(
|
|
3002
|
-
|
|
3035
|
+
Pe,
|
|
3003
3036
|
{
|
|
3004
3037
|
...d,
|
|
3005
3038
|
label: p,
|
|
@@ -3008,54 +3041,76 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3008
3041
|
onChange: () => !b && x()
|
|
3009
3042
|
}
|
|
3010
3043
|
);
|
|
3011
|
-
},
|
|
3012
|
-
tableSkeleton:
|
|
3013
|
-
tableArrayPills:
|
|
3014
|
-
},
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3044
|
+
}, ea = "_tableSkeleton_3nr9n_1", na = "_tableArrayPills_3nr9n_7", ke = {
|
|
3045
|
+
tableSkeleton: ea,
|
|
3046
|
+
tableArrayPills: na
|
|
3047
|
+
}, ra = (t, e) => {
|
|
3048
|
+
if (t)
|
|
3049
|
+
return $t[t];
|
|
3050
|
+
if (e)
|
|
3051
|
+
return $t.neutral;
|
|
3052
|
+
}, sa = ({
|
|
3053
|
+
values: t,
|
|
3054
|
+
pillVariant: e,
|
|
3055
|
+
pillOutlined: r
|
|
3056
|
+
}) => {
|
|
3057
|
+
const o = Ss(t ?? [], {
|
|
3058
|
+
variant: e,
|
|
3059
|
+
outlined: r
|
|
3060
|
+
}), i = o.slice(0, 4), c = o.length - 4, n = ra(e, r);
|
|
3061
|
+
return /* @__PURE__ */ a.jsxs("div", { className: ke.tableArrayPills, children: [
|
|
3062
|
+
i.map((_, l) => {
|
|
3063
|
+
const d = _.outlined ? $t[_.variant] : Ne[_.variant];
|
|
3019
3064
|
return /* @__PURE__ */ a.jsx(
|
|
3020
|
-
|
|
3065
|
+
Tt,
|
|
3021
3066
|
{
|
|
3022
|
-
color:
|
|
3023
|
-
textColor:
|
|
3024
|
-
iconColor:
|
|
3025
|
-
|
|
3067
|
+
color: d.color,
|
|
3068
|
+
textColor: d.textColor,
|
|
3069
|
+
iconColor: d.iconColor,
|
|
3070
|
+
outlined: _.outlined,
|
|
3071
|
+
children: _.label
|
|
3026
3072
|
},
|
|
3027
|
-
`${
|
|
3073
|
+
`${_.label}-${_.variant}-${_.outlined ?? !1}-${l}`
|
|
3028
3074
|
);
|
|
3029
3075
|
}),
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3076
|
+
c > 0 && /* @__PURE__ */ a.jsxs(
|
|
3077
|
+
Tt,
|
|
3078
|
+
{
|
|
3079
|
+
outlined: !0,
|
|
3080
|
+
color: n == null ? void 0 : n.color,
|
|
3081
|
+
textColor: n == null ? void 0 : n.textColor,
|
|
3082
|
+
iconColor: n == null ? void 0 : n.iconColor,
|
|
3083
|
+
children: [
|
|
3084
|
+
"+",
|
|
3085
|
+
c
|
|
3086
|
+
]
|
|
3087
|
+
}
|
|
3088
|
+
)
|
|
3034
3089
|
] });
|
|
3035
|
-
},
|
|
3090
|
+
}, aa = ({
|
|
3036
3091
|
userFlow: t,
|
|
3037
3092
|
pageId: e,
|
|
3038
|
-
tableResponseKey:
|
|
3039
|
-
component:
|
|
3093
|
+
tableResponseKey: r,
|
|
3094
|
+
component: s,
|
|
3040
3095
|
rowData: o
|
|
3041
3096
|
}) => {
|
|
3042
3097
|
const { getNextUI: i, fetchAndGetNextUI: c, fetchDataSource: n } = H(), _ = E(t, e, [
|
|
3043
|
-
{ ...
|
|
3098
|
+
{ ...s }
|
|
3044
3099
|
]), l = (_ == null ? void 0 : _[0]) || null;
|
|
3045
3100
|
if (!l) return null;
|
|
3046
3101
|
const {
|
|
3047
3102
|
actionType: d,
|
|
3048
3103
|
responseKey: u,
|
|
3049
3104
|
dataSource: h
|
|
3050
|
-
} = l.props, f =
|
|
3105
|
+
} = l.props, f = I(async () => {
|
|
3051
3106
|
var y, b, p;
|
|
3052
3107
|
try {
|
|
3053
3108
|
const x = {
|
|
3054
3109
|
...(y = v.getState()[t]) == null ? void 0 : y.entries,
|
|
3055
3110
|
[u]: { status: 200 },
|
|
3056
|
-
[
|
|
3111
|
+
[r]: [{ ...o }]
|
|
3057
3112
|
};
|
|
3058
|
-
switch (
|
|
3113
|
+
switch (q(t, x), d) {
|
|
3059
3114
|
case "GO_TO_NEXT_UI": {
|
|
3060
3115
|
const m = await i(
|
|
3061
3116
|
t,
|
|
@@ -3097,7 +3152,7 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3097
3152
|
content: j == null ? void 0 : j.data
|
|
3098
3153
|
}
|
|
3099
3154
|
};
|
|
3100
|
-
|
|
3155
|
+
q(t, w);
|
|
3101
3156
|
const N = await i(
|
|
3102
3157
|
t,
|
|
3103
3158
|
e,
|
|
@@ -3115,32 +3170,40 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3115
3170
|
alert(JSON.stringify(x));
|
|
3116
3171
|
}
|
|
3117
3172
|
}, [d, h, e, u, t]);
|
|
3118
|
-
return
|
|
3173
|
+
return $e(l, {
|
|
3119
3174
|
onClick: f
|
|
3120
3175
|
});
|
|
3121
|
-
},
|
|
3122
|
-
|
|
3176
|
+
}, oa = () => /* @__PURE__ */ a.jsx("div", { className: ke.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ a.jsx(
|
|
3177
|
+
ie,
|
|
3123
3178
|
{
|
|
3124
3179
|
maxWidth: "100%",
|
|
3125
3180
|
height: 42,
|
|
3126
3181
|
radius: 8
|
|
3127
3182
|
},
|
|
3128
3183
|
`tableSkeletonBase${e}`
|
|
3129
|
-
)) }),
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
)
|
|
3134
|
-
|
|
3184
|
+
)) }), ca = (t, e) => !(e != null && e.length) || !t ? t : t.map((r) => e.some((o) => {
|
|
3185
|
+
const i = o;
|
|
3186
|
+
return Array.isArray(
|
|
3187
|
+
r != null && r.accessor ? i[r.accessor] : void 0
|
|
3188
|
+
);
|
|
3189
|
+
}) ? {
|
|
3190
|
+
...r,
|
|
3135
3191
|
renderCell: (o) => {
|
|
3136
|
-
const i =
|
|
3137
|
-
return Array.isArray(i) ? /* @__PURE__ */ a.jsx(
|
|
3192
|
+
const i = r.accessor ? o[r.accessor] : void 0;
|
|
3193
|
+
return Array.isArray(i) ? /* @__PURE__ */ a.jsx(
|
|
3194
|
+
sa,
|
|
3195
|
+
{
|
|
3196
|
+
values: i,
|
|
3197
|
+
pillVariant: r.pillVariant,
|
|
3198
|
+
pillOutlined: r.pillOutlined
|
|
3199
|
+
}
|
|
3200
|
+
) : i ?? "";
|
|
3138
3201
|
}
|
|
3139
|
-
} :
|
|
3202
|
+
} : r), ia = ({
|
|
3140
3203
|
userFlow: t,
|
|
3141
3204
|
pageId: e,
|
|
3142
|
-
responseKey:
|
|
3143
|
-
component:
|
|
3205
|
+
responseKey: r,
|
|
3206
|
+
component: s,
|
|
3144
3207
|
dataSource: o,
|
|
3145
3208
|
rightActions: i,
|
|
3146
3209
|
data: c,
|
|
@@ -3148,24 +3211,24 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3148
3211
|
..._
|
|
3149
3212
|
}) => {
|
|
3150
3213
|
var Q, V;
|
|
3151
|
-
const { fetchDataSource: l } = H(), [d, u] =
|
|
3214
|
+
const { fetchDataSource: l } = H(), [d, u] = L(!1), [h, f] = L(1), [y, b] = L(null), p = !o && Array.isArray(c), x = !!(o != null && o.jsonPathCursorPagination) && !!((Q = o == null ? void 0 : o.jsonPathPagination) != null && Q.hasMore), m = ut(
|
|
3152
3215
|
/* @__PURE__ */ new Map([[1, null]])
|
|
3153
3216
|
), g = D(() => {
|
|
3154
3217
|
if (i != null && i.length)
|
|
3155
|
-
return i.map((
|
|
3218
|
+
return i.map((T, G) => ({
|
|
3156
3219
|
renderContent: (ct) => /* @__PURE__ */ a.jsx(
|
|
3157
|
-
|
|
3220
|
+
aa,
|
|
3158
3221
|
{
|
|
3159
3222
|
userFlow: t,
|
|
3160
3223
|
pageId: e,
|
|
3161
|
-
tableResponseKey:
|
|
3162
|
-
component:
|
|
3224
|
+
tableResponseKey: r,
|
|
3225
|
+
component: T,
|
|
3163
3226
|
rowData: ct
|
|
3164
3227
|
},
|
|
3165
3228
|
`tableRowAction${G}`
|
|
3166
3229
|
)
|
|
3167
3230
|
}));
|
|
3168
|
-
}, [i, t, e,
|
|
3231
|
+
}, [i, t, e, r]), C = async (T = 1) => {
|
|
3169
3232
|
if (!o)
|
|
3170
3233
|
return;
|
|
3171
3234
|
const {
|
|
@@ -3174,43 +3237,43 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3174
3237
|
jsonPathPagination: bt,
|
|
3175
3238
|
jsonPathCursorPagination: it
|
|
3176
3239
|
} = o;
|
|
3177
|
-
if (it &&
|
|
3240
|
+
if (it && T !== 1 && !m.current.has(T)) {
|
|
3178
3241
|
f(1), C(1);
|
|
3179
3242
|
return;
|
|
3180
3243
|
}
|
|
3181
|
-
it &&
|
|
3244
|
+
it && T === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
3182
3245
|
try {
|
|
3183
3246
|
u(!0);
|
|
3184
|
-
const jt = it ? m.current.get(
|
|
3247
|
+
const jt = it ? m.current.get(T) ?? null : null, Se = Bt(
|
|
3185
3248
|
o,
|
|
3186
|
-
|
|
3249
|
+
T,
|
|
3187
3250
|
void 0,
|
|
3188
3251
|
jt
|
|
3189
3252
|
), Z = await l(
|
|
3190
|
-
|
|
3253
|
+
Se,
|
|
3191
3254
|
t,
|
|
3192
3255
|
!1
|
|
3193
3256
|
);
|
|
3194
3257
|
if (b(
|
|
3195
|
-
|
|
3258
|
+
je(
|
|
3196
3259
|
Z == null ? void 0 : Z.data,
|
|
3197
3260
|
ct,
|
|
3198
3261
|
G,
|
|
3199
3262
|
bt
|
|
3200
3263
|
)
|
|
3201
3264
|
), it) {
|
|
3202
|
-
const
|
|
3265
|
+
const Mt = br(
|
|
3203
3266
|
Z == null ? void 0 : Z.data,
|
|
3204
3267
|
it
|
|
3205
3268
|
);
|
|
3206
|
-
|
|
3269
|
+
Mt && m.current.set(T + 1, Mt);
|
|
3207
3270
|
}
|
|
3208
3271
|
u(!1);
|
|
3209
3272
|
} catch (jt) {
|
|
3210
3273
|
console.error("[TableNotFront] fetchData:", jt), u(!1);
|
|
3211
3274
|
}
|
|
3212
|
-
}, j = (
|
|
3213
|
-
f(
|
|
3275
|
+
}, j = (T) => {
|
|
3276
|
+
f(T), C(T);
|
|
3214
3277
|
};
|
|
3215
3278
|
U(() => {
|
|
3216
3279
|
p || C();
|
|
@@ -3218,8 +3281,8 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3218
3281
|
const w = p ? c : y == null ? void 0 : y.items, N = p && !!n && ((c == null ? void 0 : c.length) ?? 0) > n, k = D(() => {
|
|
3219
3282
|
if (!N || !c || !n)
|
|
3220
3283
|
return w ?? [];
|
|
3221
|
-
const
|
|
3222
|
-
return c.slice(
|
|
3284
|
+
const T = (h - 1) * n;
|
|
3285
|
+
return c.slice(T, T + n);
|
|
3223
3286
|
}, [
|
|
3224
3287
|
N,
|
|
3225
3288
|
c,
|
|
@@ -3227,10 +3290,7 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3227
3290
|
h,
|
|
3228
3291
|
w
|
|
3229
3292
|
]), O = D(
|
|
3230
|
-
() =>
|
|
3231
|
-
_.columns,
|
|
3232
|
-
w
|
|
3233
|
-
),
|
|
3293
|
+
() => ca(_.columns, w),
|
|
3234
3294
|
[w, _.columns]
|
|
3235
3295
|
), $ = {
|
|
3236
3296
|
..._,
|
|
@@ -3239,7 +3299,7 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3239
3299
|
rightActions: g
|
|
3240
3300
|
};
|
|
3241
3301
|
return p ? !w || w.length === 0 ? /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3242
|
-
/* @__PURE__ */ a.jsx(
|
|
3302
|
+
/* @__PURE__ */ a.jsx(Gt, { ...$ }),
|
|
3243
3303
|
N && n && c && /* @__PURE__ */ a.jsx(
|
|
3244
3304
|
Ct,
|
|
3245
3305
|
{
|
|
@@ -3250,8 +3310,8 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3250
3310
|
onChange: f
|
|
3251
3311
|
}
|
|
3252
3312
|
)
|
|
3253
|
-
] }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: d ? /* @__PURE__ */ a.jsx(
|
|
3254
|
-
/* @__PURE__ */ a.jsx(
|
|
3313
|
+
] }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: d ? /* @__PURE__ */ a.jsx(oa, {}) : y && ((V = y == null ? void 0 : y.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3314
|
+
/* @__PURE__ */ a.jsx(Gt, { ...$ }),
|
|
3255
3315
|
!x && (y == null ? void 0 : y.pagination) && y.pagination.totalPages > 1 && /* @__PURE__ */ a.jsx(
|
|
3256
3316
|
Ct,
|
|
3257
3317
|
{
|
|
@@ -3273,31 +3333,31 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3273
3333
|
}
|
|
3274
3334
|
)
|
|
3275
3335
|
] }) : /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
3276
|
-
},
|
|
3277
|
-
tabsPanel:
|
|
3278
|
-
},
|
|
3279
|
-
const
|
|
3280
|
-
return
|
|
3281
|
-
},
|
|
3336
|
+
}, la = "_tabsPanel_kvslb_1", da = {
|
|
3337
|
+
tabsPanel: la
|
|
3338
|
+
}, _a = ({ userFlow: t, pageId: e, components: r }) => {
|
|
3339
|
+
const s = E(t, e, r);
|
|
3340
|
+
return s != null && s.length ? /* @__PURE__ */ a.jsx("section", { className: da.tabsPanel, children: s.map((o, i) => /* @__PURE__ */ a.jsx(A, { children: o }, `tabs-panel-${i}`)) }) : null;
|
|
3341
|
+
}, ua = ({
|
|
3282
3342
|
userFlow: t,
|
|
3283
3343
|
pageId: e,
|
|
3284
|
-
hash:
|
|
3285
|
-
items:
|
|
3344
|
+
hash: r,
|
|
3345
|
+
items: s,
|
|
3286
3346
|
activeIndex: o,
|
|
3287
3347
|
className: i,
|
|
3288
3348
|
responseKey: c
|
|
3289
3349
|
}) => {
|
|
3290
|
-
const n =
|
|
3350
|
+
const n = s.map((l, d) => ({
|
|
3291
3351
|
label: l.label,
|
|
3292
3352
|
disabled: l.disabled,
|
|
3293
3353
|
children: /* @__PURE__ */ a.jsx(
|
|
3294
|
-
|
|
3354
|
+
_a,
|
|
3295
3355
|
{
|
|
3296
3356
|
userFlow: t,
|
|
3297
3357
|
pageId: e,
|
|
3298
3358
|
components: l.components
|
|
3299
3359
|
},
|
|
3300
|
-
`${
|
|
3360
|
+
`${r}-tab-${d}`
|
|
3301
3361
|
)
|
|
3302
3362
|
})), _ = (l) => {
|
|
3303
3363
|
var u;
|
|
@@ -3305,10 +3365,10 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3305
3365
|
...(u = v.getState()[t]) == null ? void 0 : u.entries,
|
|
3306
3366
|
[c]: l
|
|
3307
3367
|
};
|
|
3308
|
-
|
|
3368
|
+
q(t, d);
|
|
3309
3369
|
};
|
|
3310
3370
|
return /* @__PURE__ */ a.jsx(
|
|
3311
|
-
|
|
3371
|
+
Fe,
|
|
3312
3372
|
{
|
|
3313
3373
|
className: i,
|
|
3314
3374
|
activeIndex: o,
|
|
@@ -3316,30 +3376,30 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3316
3376
|
onClick: _
|
|
3317
3377
|
}
|
|
3318
3378
|
);
|
|
3319
|
-
},
|
|
3320
|
-
const
|
|
3379
|
+
}, Te = (t, e, r) => {
|
|
3380
|
+
const s = v(
|
|
3321
3381
|
(i) => {
|
|
3322
3382
|
var c, n;
|
|
3323
3383
|
return (n = (c = i[t]) == null ? void 0 : c.entries) == null ? void 0 : n[e];
|
|
3324
3384
|
}
|
|
3325
|
-
), o =
|
|
3326
|
-
(i) =>
|
|
3385
|
+
), o = I(
|
|
3386
|
+
(i) => q(t, { [e]: i }),
|
|
3327
3387
|
[t, e]
|
|
3328
3388
|
);
|
|
3329
|
-
return [
|
|
3330
|
-
},
|
|
3331
|
-
textareaNotFront:
|
|
3332
|
-
},
|
|
3389
|
+
return [s ?? r, o];
|
|
3390
|
+
}, ha = "_textareaNotFront_1wpe5_1", fa = {
|
|
3391
|
+
textareaNotFront: ha
|
|
3392
|
+
}, xa = (t) => {
|
|
3333
3393
|
const {
|
|
3334
3394
|
userFlow: e,
|
|
3335
|
-
pageId:
|
|
3336
|
-
component:
|
|
3395
|
+
pageId: r,
|
|
3396
|
+
component: s,
|
|
3337
3397
|
hash: o,
|
|
3338
3398
|
responseKey: i,
|
|
3339
3399
|
required: c,
|
|
3340
3400
|
dependencies: n,
|
|
3341
3401
|
..._
|
|
3342
|
-
} = t, { value: l, ...d } = _, [u, h] =
|
|
3402
|
+
} = t, { value: l, ...d } = _, [u, h] = Te(
|
|
3343
3403
|
e,
|
|
3344
3404
|
i,
|
|
3345
3405
|
l ?? ""
|
|
@@ -3348,29 +3408,29 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3348
3408
|
n
|
|
3349
3409
|
), y = (d == null ? void 0 : d.disabled) ?? f, b = D(() => c && (d != null && d.label) ? `${d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, c]), p = (x) => h(x.target.value);
|
|
3350
3410
|
return /* @__PURE__ */ a.jsx(
|
|
3351
|
-
|
|
3411
|
+
tn,
|
|
3352
3412
|
{
|
|
3353
3413
|
...d,
|
|
3354
|
-
className:
|
|
3414
|
+
className: fa.textareaNotFront,
|
|
3355
3415
|
label: b,
|
|
3356
3416
|
value: u,
|
|
3357
3417
|
disabled: y,
|
|
3358
3418
|
onChange: (x) => !y && p(x)
|
|
3359
3419
|
}
|
|
3360
3420
|
);
|
|
3361
|
-
},
|
|
3362
|
-
textFieldNotFront:
|
|
3363
|
-
},
|
|
3421
|
+
}, ya = "_textFieldNotFront_1n8fy_1", ma = {
|
|
3422
|
+
textFieldNotFront: ya
|
|
3423
|
+
}, ga = (t) => {
|
|
3364
3424
|
const {
|
|
3365
3425
|
userFlow: e,
|
|
3366
|
-
pageId:
|
|
3367
|
-
component:
|
|
3426
|
+
pageId: r,
|
|
3427
|
+
component: s,
|
|
3368
3428
|
hash: o,
|
|
3369
3429
|
responseKey: i,
|
|
3370
3430
|
required: c,
|
|
3371
3431
|
dependencies: n,
|
|
3372
3432
|
..._
|
|
3373
|
-
} = t, { value: l, ...d } = _, [u, h] =
|
|
3433
|
+
} = t, { value: l, ...d } = _, [u, h] = Te(
|
|
3374
3434
|
e,
|
|
3375
3435
|
i,
|
|
3376
3436
|
l ?? ""
|
|
@@ -3379,10 +3439,10 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3379
3439
|
n
|
|
3380
3440
|
), y = (d == null ? void 0 : d.disabled) ?? f, b = D(() => c && (d != null && d.label) ? `${d == null ? void 0 : d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, c]), p = (x) => h(x.target.value);
|
|
3381
3441
|
return /* @__PURE__ */ a.jsx(
|
|
3382
|
-
|
|
3442
|
+
en,
|
|
3383
3443
|
{
|
|
3384
3444
|
...d,
|
|
3385
|
-
className:
|
|
3445
|
+
className: ma.textFieldNotFront,
|
|
3386
3446
|
allowClear: !1,
|
|
3387
3447
|
label: b,
|
|
3388
3448
|
value: u,
|
|
@@ -3390,17 +3450,17 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3390
3450
|
onChange: (x) => !y && p(x)
|
|
3391
3451
|
}
|
|
3392
3452
|
);
|
|
3393
|
-
},
|
|
3453
|
+
}, pa = ({
|
|
3394
3454
|
userFlow: t,
|
|
3395
3455
|
pageId: e,
|
|
3396
|
-
responseKey:
|
|
3397
|
-
variant:
|
|
3456
|
+
responseKey: r,
|
|
3457
|
+
variant: s,
|
|
3398
3458
|
content: o,
|
|
3399
3459
|
actionType: i,
|
|
3400
3460
|
redirectUrl: c
|
|
3401
3461
|
}) => {
|
|
3402
|
-
const n =
|
|
3403
|
-
|
|
3462
|
+
const n = I(async () => {
|
|
3463
|
+
qt(t);
|
|
3404
3464
|
try {
|
|
3405
3465
|
switch (i) {
|
|
3406
3466
|
case "AUTOCLOSE_AND_REDIRECT":
|
|
@@ -3413,27 +3473,27 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3413
3473
|
} catch (_) {
|
|
3414
3474
|
console.error("Error in toast action:", _), alert(JSON.stringify(_));
|
|
3415
3475
|
}
|
|
3416
|
-
}, [i, e,
|
|
3476
|
+
}, [i, e, r, t, c]);
|
|
3417
3477
|
return U(() => {
|
|
3418
3478
|
({
|
|
3419
3479
|
info: lt.info,
|
|
3420
3480
|
error: lt.error,
|
|
3421
3481
|
success: lt.success,
|
|
3422
3482
|
warning: lt.warning
|
|
3423
|
-
}[
|
|
3483
|
+
}[s] || lt.info)(o, {
|
|
3424
3484
|
autoClose: i ? !1 : 4e3,
|
|
3425
3485
|
containerId: t,
|
|
3426
3486
|
onClose: n
|
|
3427
3487
|
});
|
|
3428
3488
|
}, [n, t]), null;
|
|
3429
|
-
},
|
|
3430
|
-
tooltipNotFront:
|
|
3431
|
-
tooltipNotFront_content:
|
|
3432
|
-
},
|
|
3489
|
+
}, ba = "_tooltipNotFront_106iw_1", ja = "_tooltipNotFront_content_106iw_5", se = {
|
|
3490
|
+
tooltipNotFront: ba,
|
|
3491
|
+
tooltipNotFront_content: ja
|
|
3492
|
+
}, Ca = (t) => {
|
|
3433
3493
|
const {
|
|
3434
3494
|
userFlow: e,
|
|
3435
|
-
pageId:
|
|
3436
|
-
component:
|
|
3495
|
+
pageId: r,
|
|
3496
|
+
component: s,
|
|
3437
3497
|
hash: o,
|
|
3438
3498
|
responseKey: i,
|
|
3439
3499
|
content: c,
|
|
@@ -3443,13 +3503,13 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3443
3503
|
visible: d
|
|
3444
3504
|
} = t, u = E(
|
|
3445
3505
|
e,
|
|
3446
|
-
|
|
3506
|
+
r,
|
|
3447
3507
|
c != null && c.length ? c : null
|
|
3448
|
-
), h = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
3508
|
+
), h = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: se.tooltipNotFront_content, children: u.map((f, y) => /* @__PURE__ */ a.jsx(A, { children: f }, `tooltip-${o}-${y}`)) }) : null;
|
|
3449
3509
|
return /* @__PURE__ */ a.jsx(
|
|
3450
|
-
|
|
3510
|
+
nn,
|
|
3451
3511
|
{
|
|
3452
|
-
className:
|
|
3512
|
+
className: se.tooltipNotFront,
|
|
3453
3513
|
label: n,
|
|
3454
3514
|
placement: _,
|
|
3455
3515
|
notShowArrow: l,
|
|
@@ -3458,33 +3518,33 @@ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
|
|
|
3458
3518
|
}
|
|
3459
3519
|
);
|
|
3460
3520
|
};
|
|
3461
|
-
function
|
|
3521
|
+
function Ha({
|
|
3462
3522
|
sessionName: t,
|
|
3463
3523
|
apiConfig: e,
|
|
3464
|
-
onResolveComponentProps:
|
|
3465
|
-
children:
|
|
3524
|
+
onResolveComponentProps: r,
|
|
3525
|
+
children: s
|
|
3466
3526
|
}) {
|
|
3467
|
-
const o =
|
|
3527
|
+
const o = ka(
|
|
3468
3528
|
t,
|
|
3469
3529
|
e,
|
|
3470
3530
|
null,
|
|
3471
|
-
|
|
3531
|
+
r
|
|
3472
3532
|
);
|
|
3473
3533
|
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3474
3534
|
o,
|
|
3475
|
-
|
|
3535
|
+
s
|
|
3476
3536
|
] });
|
|
3477
3537
|
}
|
|
3478
|
-
const
|
|
3538
|
+
const wa = { api: "", headers: {} }, Na = ({
|
|
3479
3539
|
userFlow: t,
|
|
3480
3540
|
components: e,
|
|
3481
|
-
hash:
|
|
3482
|
-
apiConfig:
|
|
3541
|
+
hash: r,
|
|
3542
|
+
apiConfig: s
|
|
3483
3543
|
}) => {
|
|
3484
|
-
const o =
|
|
3485
|
-
|
|
3544
|
+
const o = r ?? `${t}-page`;
|
|
3545
|
+
L(() => {
|
|
3486
3546
|
var _, l;
|
|
3487
|
-
return (l = (_ = v.getState()[t]) == null ? void 0 : _.pages) != null && l[o] || yt(t,
|
|
3547
|
+
return (l = (_ = v.getState()[t]) == null ? void 0 : _.pages) != null && l[o] || yt(t, s ?? wa, {
|
|
3488
3548
|
type: "page",
|
|
3489
3549
|
hash: o,
|
|
3490
3550
|
body: { components: e }
|
|
@@ -3493,72 +3553,72 @@ const ba = { api: "", headers: {} }, ja = ({
|
|
|
3493
3553
|
const i = E(t, o, e);
|
|
3494
3554
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: i });
|
|
3495
3555
|
};
|
|
3496
|
-
function
|
|
3556
|
+
function va(t) {
|
|
3497
3557
|
if (t == null || typeof t != "object" || !("components" in t) || !Array.isArray(t.components))
|
|
3498
3558
|
throw new Error(
|
|
3499
3559
|
"[renderNotFront] payload.display must be an object with a `components` array"
|
|
3500
3560
|
);
|
|
3501
3561
|
return t.components;
|
|
3502
3562
|
}
|
|
3503
|
-
const
|
|
3504
|
-
const
|
|
3563
|
+
const Ea = ({ payload: t, userFlow: e }) => {
|
|
3564
|
+
const r = va(t.display), s = Na({
|
|
3505
3565
|
userFlow: e,
|
|
3506
3566
|
hash: t.id,
|
|
3507
|
-
components:
|
|
3567
|
+
components: r
|
|
3508
3568
|
});
|
|
3509
|
-
return /* @__PURE__ */ a.jsx(a.Fragment, { children:
|
|
3510
|
-
},
|
|
3569
|
+
return /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
|
|
3570
|
+
}, Va = Ea, ae = (t, e, r, s, o) => {
|
|
3511
3571
|
const i = E(
|
|
3512
3572
|
t,
|
|
3513
3573
|
e,
|
|
3514
|
-
(
|
|
3574
|
+
(s == null ? void 0 : s.components) || null,
|
|
3515
3575
|
o
|
|
3516
3576
|
);
|
|
3517
|
-
switch (
|
|
3577
|
+
switch (r) {
|
|
3518
3578
|
case "body":
|
|
3519
3579
|
return /* @__PURE__ */ a.jsx(
|
|
3520
|
-
|
|
3580
|
+
Zn,
|
|
3521
3581
|
{
|
|
3522
|
-
...
|
|
3582
|
+
...s,
|
|
3523
3583
|
inputs: i || []
|
|
3524
3584
|
},
|
|
3525
|
-
JSON.stringify(
|
|
3585
|
+
JSON.stringify(s == null ? void 0 : s.components)
|
|
3526
3586
|
);
|
|
3527
3587
|
case "header":
|
|
3528
3588
|
return /* @__PURE__ */ a.jsx(
|
|
3529
|
-
|
|
3589
|
+
bs,
|
|
3530
3590
|
{
|
|
3531
|
-
...
|
|
3591
|
+
...s,
|
|
3532
3592
|
components: i || []
|
|
3533
3593
|
},
|
|
3534
|
-
JSON.stringify(
|
|
3594
|
+
JSON.stringify(s == null ? void 0 : s.components)
|
|
3535
3595
|
);
|
|
3536
3596
|
default:
|
|
3537
3597
|
return null;
|
|
3538
3598
|
}
|
|
3539
|
-
},
|
|
3599
|
+
}, ka = (t, e, r, s) => {
|
|
3540
3600
|
var p, x;
|
|
3541
|
-
const [o, i] =
|
|
3601
|
+
const [o, i] = L(!1), c = !!(e != null && e.api && !r && t), [n, _] = L(c), l = v((m) => m[t]), d = l == null ? void 0 : l.currentPageId, u = (l == null ? void 0 : l.isLoading) ?? !1, h = n || u;
|
|
3542
3602
|
U(() => {
|
|
3543
3603
|
if (typeof window > "u") return;
|
|
3544
3604
|
const m = new URL(window.location.href), g = m.searchParams.get("sessionId");
|
|
3545
|
-
g && (
|
|
3605
|
+
g && (It(g), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
|
|
3546
3606
|
}, []);
|
|
3547
|
-
const f = d ?
|
|
3607
|
+
const f = d ? ae(
|
|
3548
3608
|
t,
|
|
3549
3609
|
d,
|
|
3550
3610
|
"header",
|
|
3551
3611
|
((p = l == null ? void 0 : l.pages[d].page) == null ? void 0 : p.header) || null,
|
|
3552
|
-
|
|
3553
|
-
) : null, y = d ?
|
|
3612
|
+
s
|
|
3613
|
+
) : null, y = d ? ae(
|
|
3554
3614
|
t,
|
|
3555
3615
|
d,
|
|
3556
3616
|
"body",
|
|
3557
3617
|
((x = l == null ? void 0 : l.pages[d].page) == null ? void 0 : x.body) || null,
|
|
3558
|
-
|
|
3618
|
+
s
|
|
3559
3619
|
) : null, b = async () => {
|
|
3560
3620
|
try {
|
|
3561
|
-
const m = await
|
|
3621
|
+
const m = await pe(
|
|
3562
3622
|
e,
|
|
3563
3623
|
t
|
|
3564
3624
|
), g = m == null ? void 0 : m.data, C = g == null ? void 0 : g.content;
|
|
@@ -3576,7 +3636,7 @@ const wa = ({ payload: t, userFlow: e }) => {
|
|
|
3576
3636
|
}
|
|
3577
3637
|
};
|
|
3578
3638
|
return U(() => {
|
|
3579
|
-
e != null && e.api && !
|
|
3639
|
+
e != null && e.api && !r && t ? b() : !(e != null && e.api) && r && t || e != null && e.api && r && t ? yt(t, e, r) : (!(e != null && e.api) && !r || !t) && (i(!0), console.error(
|
|
3580
3640
|
"[not-page]: API call failed",
|
|
3581
3641
|
"not api config",
|
|
3582
3642
|
"not userFlow"
|
|
@@ -3589,23 +3649,23 @@ const wa = ({ payload: t, userFlow: e }) => {
|
|
|
3589
3649
|
window.removeEventListener(m, g);
|
|
3590
3650
|
};
|
|
3591
3651
|
}, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3592
|
-
h && /* @__PURE__ */ a.jsx(
|
|
3652
|
+
h && /* @__PURE__ */ a.jsx(rn, {}),
|
|
3593
3653
|
f,
|
|
3594
3654
|
y,
|
|
3595
|
-
d && /* @__PURE__ */ a.jsx(
|
|
3596
|
-
l && /* @__PURE__ */ a.jsx(
|
|
3655
|
+
d && /* @__PURE__ */ a.jsx(Es, { userFlow: t, pageId: d }),
|
|
3656
|
+
l && /* @__PURE__ */ a.jsx(sn, {})
|
|
3597
3657
|
] });
|
|
3598
3658
|
};
|
|
3599
3659
|
export {
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3660
|
+
Wr as Chart,
|
|
3661
|
+
Ha as NotFrontPage,
|
|
3662
|
+
Ea as RenderNotFront,
|
|
3663
|
+
Ls as Row,
|
|
3664
|
+
Ga as clearSessionId,
|
|
3665
|
+
va as extractNotFrontComponents,
|
|
3666
|
+
On as heading,
|
|
3667
|
+
Va as renderNotFront,
|
|
3668
|
+
$n as text,
|
|
3669
|
+
Na as useNotFrontFragment,
|
|
3670
|
+
ka as usePage
|
|
3611
3671
|
};
|