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