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