@foris/avocado-not-front 5.2.12 → 5.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/avocado-not-front/src/index.d.ts +6 -0
- package/dist/{types → avocado-not-front/src/types}/components.type.d.ts +15 -4
- package/dist/avocado-not-front/src/utils/pillVariant.util.test.d.ts +1 -0
- package/dist/avocado-not-front/src/utils/session.util.test.d.ts +1 -0
- package/dist/avocado-not-front.es.js +458 -456
- package/dist/avocado-not-front.umd.js +3 -3
- package/dist/index.d.ts +1 -6
- package/dist/style.css +1 -1
- package/package.json +3 -3
- /package/dist/{components → avocado-not-front/src/components}/accordion/Accordion.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/ai-chat-panel/AIChatPanel.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/ai-prompt-code-editor/AIPromptCodeEditor.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/ai-summary-card/AISummaryCard.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/body/Body.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/box/Box.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/breadcrumbs/Breadcrumbs.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/button/Button.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/button/Button.test.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/card-accordion/CardAccordion.d.ts +0 -0
- /package/dist/{components/card-notification/CardNotification.test.d.ts → avocado-not-front/src/components/card-accordion/CardAccordion.test-d.d.ts} +0 -0
- /package/dist/{components/chart/chart.util.test.d.ts → avocado-not-front/src/components/card-accordion/CardAccordion.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/card-notification/CardNotification.d.ts +0 -0
- /package/dist/{components/data-card/DataCard.test.d.ts → avocado-not-front/src/components/card-notification/CardNotification.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/Chart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/chart.constants.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/chart.types.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/chart.util.d.ts +0 -0
- /package/dist/{components/not-front-page/NotFrontPage.test.d.ts → avocado-not-front/src/components/chart/chart.util.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/AreaChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/BarChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/ComposedChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/DonutChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/HorizontalBarChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/LineChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/MixBarChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/PieChart.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/charts/index.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/ChartFrame.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/ChartScrollViewport.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/Legend.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/Tooltip.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/XAxis.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/YAxis.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/chart/components/index.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/checkbox/Checkbox.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/code-editor/CodeEditor.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/content-wrapper/ContentWrapper.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/content-wrapper/index.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/data-card/DataCard.d.ts +0 -0
- /package/dist/{components/round-button/RoundButton.test.d.ts → avocado-not-front/src/components/data-card/DataCard.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/divider/Divider.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/drawer/Drawer.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/dropdown-button/DropdownButton.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/header/Header.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/index.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/layout-card/LayoutCard.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/link/Link.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/menu/Menu.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/modal/Modal.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/not-front-page/NotFrontPage.d.ts +0 -0
- /package/dist/{components/table/Table.test.d.ts → avocado-not-front/src/components/not-front-page/NotFrontPage.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/overlay-renderer/OverlayRenderer.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/pill/Pill.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/previewer-markdown/PreviewerMarkdown.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/progress-bar/ProgressBar.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/radio-group/RadioGroup.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/render-not-front/RenderNotFront.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/render-not-front/RenderNotFront.test.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/render-not-front/index.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/round-button/RoundButton.d.ts +0 -0
- /package/dist/{components/table/TableArrayPills.test.d.ts → avocado-not-front/src/components/round-button/RoundButton.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/row/Row.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/select/SelectPagination.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/select/SelectSimple.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/select/index.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/select/select.util.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/spacing/Spacing.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/stepper/Stepper.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/switch/Switch.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/table/Table.d.ts +0 -0
- /package/dist/{components/table/table.util.test.d.ts → avocado-not-front/src/components/table/Table.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/table/TableArrayPills.d.ts +0 -0
- /package/dist/{components/text-field/TextField.test.d.ts → avocado-not-front/src/components/table/TableArrayPills.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/table/TableRowAction.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/table/TableSkeleton.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/table/table.util.d.ts +0 -0
- /package/dist/{components/textarea/Textarea.test.d.ts → avocado-not-front/src/components/table/table.util.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/tabs/Tabs.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/text-field/TextField.d.ts +0 -0
- /package/dist/{hooks/builder/usePage.test.d.ts → avocado-not-front/src/components/text-field/TextField.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/textarea/Textarea.d.ts +0 -0
- /package/dist/{hooks/useEntryValue.test.d.ts → avocado-not-front/src/components/textarea/Textarea.test.d.ts} +0 -0
- /package/dist/{components → avocado-not-front/src/components}/toast/Toast.d.ts +0 -0
- /package/dist/{components → avocado-not-front/src/components}/tooltip/Tooltip.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/builder/useBuildComponentsList.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/builder/useBuilder.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/builder/useNotFrontFragment.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/builder/useNotFrontFragment.test.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/builder/usePage.d.ts +0 -0
- /package/dist/{hooks/useNotFrontButtonActionRunner.test.d.ts → avocado-not-front/src/hooks/builder/usePage.test.d.ts} +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/components/useHeading.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/components/useText.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/index.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/useAction.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/useDependencies.d.ts +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/useEntryValue.d.ts +0 -0
- /package/dist/{store/useStore.test.d.ts → avocado-not-front/src/hooks/useEntryValue.test.d.ts} +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/useNotFrontButtonActionRunner.d.ts +0 -0
- /package/dist/{utils/dataSource.util.test.d.ts → avocado-not-front/src/hooks/useNotFrontButtonActionRunner.test.d.ts} +0 -0
- /package/dist/{hooks → avocado-not-front/src/hooks}/useSelectChange.d.ts +0 -0
- /package/dist/{services → avocado-not-front/src/services}/axios/axiosInterceptors.d.ts +0 -0
- /package/dist/{services → avocado-not-front/src/services}/axios/axiosServices.d.ts +0 -0
- /package/dist/{services → avocado-not-front/src/services}/axios/useFetchAndLoad.d.ts +0 -0
- /package/dist/{services → avocado-not-front/src/services}/not-front/nextUIService.d.ts +0 -0
- /package/dist/{store → avocado-not-front/src/store}/useStore.d.ts +0 -0
- /package/dist/{utils/pillVariant.util.test.d.ts → avocado-not-front/src/store/useStore.test.d.ts} +0 -0
- /package/dist/{types → avocado-not-front/src/types}/builder.type.d.ts +0 -0
- /package/dist/{types → avocado-not-front/src/types}/componentsCore.type.d.ts +0 -0
- /package/dist/{types → avocado-not-front/src/types}/index.d.ts +0 -0
- /package/dist/{utils → avocado-not-front/src/utils}/dataSource.util.d.ts +0 -0
- /package/dist/{utils/session.util.test.d.ts → avocado-not-front/src/utils/dataSource.util.test.d.ts} +0 -0
- /package/dist/{utils → avocado-not-front/src/utils}/headers.util.d.ts +0 -0
- /package/dist/{utils → avocado-not-front/src/utils}/pillVariant.util.d.ts +0 -0
- /package/dist/{utils → avocado-not-front/src/utils}/session.util.d.ts +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import X from "axios";
|
|
2
|
-
import { create as
|
|
3
|
-
import
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { ChatPanel as
|
|
2
|
+
import { create as Oe } from "zustand";
|
|
3
|
+
import $e, { useMemo as D, useState as L, useCallback as I, Fragment as A, useEffect as U, useRef as ut, cloneElement as De } from "react";
|
|
4
|
+
import { Heading as ce, Text as ie, Accordion as Re, ThemeStore as ht, Box as Le, RadioButton as Ie, Stepper as qe, ProgressBar as Ke, Breadcrumbs as Be, Button as Me, CardAccordion as Ge, Card as He, CardNotification as mt, SkeletonBase as le, Checkbox as Ve, PreviewerMarkdown as de, DataCard as _e, Divider as Ue, Drawer as ze, DropdownButton as Xe, Link as Je, Menu as We, Modal as Ye, Pill as Tt, RoundButton as Qe, SelectPagination as Ze, Select as Fe, Switch as Pe, Table as Gt, Pager as Ct, Tabs as tn, Textarea as en, TextField as nn, toast as lt, Tooltip as rn, Loading as sn, Toaster as an } from "@foris/avocado-suite";
|
|
5
|
+
import { ChatPanel as on, PromptCodeEditor as cn, SummaryCard as ln } from "@foris/ai-agent";
|
|
6
6
|
import M from "jsonpath";
|
|
7
|
-
import { ResponsiveContainer as Dt, Legend as
|
|
8
|
-
import
|
|
7
|
+
import { ResponsiveContainer as Dt, Legend as dn, Tooltip as _n, XAxis as un, YAxis as hn, AreaChart as fn, CartesianGrid as rt, Area as ue, BarChart as Rt, Bar as pt, ComposedChart as xn, Line as he, PieChart as fe, Pie as xe, Cell as ye, Sector as Ht, LineChart as yn } from "recharts";
|
|
8
|
+
import mn from "@uiw/react-codemirror";
|
|
9
9
|
import { json as Vt } from "@codemirror/lang-json";
|
|
10
|
-
import { markdown as
|
|
11
|
-
import { sql as
|
|
12
|
-
import { yaml as
|
|
10
|
+
import { markdown as gn } from "@codemirror/lang-markdown";
|
|
11
|
+
import { sql as pn } from "@codemirror/lang-sql";
|
|
12
|
+
import { yaml as bn } from "@codemirror/lang-yaml";
|
|
13
13
|
import { Icon as Ut } from "@foris/avocado-icons";
|
|
14
|
-
const Lt = "sessionId",
|
|
14
|
+
const Lt = "sessionId", jn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
15
15
|
t && sessionStorage.setItem(Lt, t);
|
|
16
|
-
},
|
|
16
|
+
}, Ha = () => {
|
|
17
17
|
sessionStorage.removeItem(Lt);
|
|
18
|
-
}, v =
|
|
18
|
+
}, v = Oe(() => ({})), yt = (t, e, r, s, o) => {
|
|
19
19
|
It(o);
|
|
20
20
|
const i = r == null ? void 0 : r.hash, c = s && Object.keys(s).length > 0 ? { ...s } : {};
|
|
21
21
|
v.setState((n) => {
|
|
@@ -40,14 +40,14 @@ const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
|
-
},
|
|
43
|
+
}, me = (t, e, r) => {
|
|
44
44
|
const s = r && Object.keys(r).length > 0 ? { ...t, ...r } : t;
|
|
45
45
|
return e.length === 0 ? s : Object.fromEntries(
|
|
46
46
|
Object.entries(s).filter(([o]) => !e.includes(o))
|
|
47
47
|
);
|
|
48
|
-
},
|
|
48
|
+
}, Cn = (t, e, r, s, o) => {
|
|
49
49
|
It(r), v.setState((i) => {
|
|
50
|
-
const c = i[t] ?? {}, n = c.entries ?? {}, _ =
|
|
50
|
+
const c = i[t] ?? {}, n = c.entries ?? {}, _ = me(
|
|
51
51
|
n,
|
|
52
52
|
s,
|
|
53
53
|
o
|
|
@@ -69,10 +69,10 @@ const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
71
|
});
|
|
72
|
-
},
|
|
72
|
+
}, Nn = (t, e, r, s) => {
|
|
73
73
|
v.setState((o) => {
|
|
74
74
|
var l;
|
|
75
|
-
const i = o[t] ?? {}, c = i.entries ?? {}, n =
|
|
75
|
+
const i = o[t] ?? {}, c = i.entries ?? {}, n = me(
|
|
76
76
|
c,
|
|
77
77
|
r,
|
|
78
78
|
s
|
|
@@ -109,13 +109,13 @@ const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
|
109
109
|
deprecatedStateKeys: o = [],
|
|
110
110
|
sessionState: i
|
|
111
111
|
} = e;
|
|
112
|
-
r.type !== "page" && r.type !== "overlay" || (r.type === "page" ?
|
|
112
|
+
r.type !== "page" && r.type !== "overlay" || (r.type === "page" ? Cn(
|
|
113
113
|
t,
|
|
114
114
|
r,
|
|
115
115
|
s,
|
|
116
116
|
o,
|
|
117
117
|
i
|
|
118
|
-
) :
|
|
118
|
+
) : Nn(
|
|
119
119
|
t,
|
|
120
120
|
r,
|
|
121
121
|
o,
|
|
@@ -136,7 +136,7 @@ const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
|
136
136
|
}
|
|
137
137
|
};
|
|
138
138
|
});
|
|
139
|
-
},
|
|
139
|
+
}, vn = (t, e) => {
|
|
140
140
|
v.setState((r) => {
|
|
141
141
|
const s = r[t];
|
|
142
142
|
if (!s)
|
|
@@ -153,7 +153,7 @@ const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
});
|
|
156
|
-
},
|
|
156
|
+
}, F = (t, e) => {
|
|
157
157
|
v.setState((r) => ({
|
|
158
158
|
...r,
|
|
159
159
|
[t]: {
|
|
@@ -192,26 +192,26 @@ const Lt = "sessionId", bn = () => sessionStorage.getItem(Lt), It = (t) => {
|
|
|
192
192
|
} : r;
|
|
193
193
|
});
|
|
194
194
|
};
|
|
195
|
-
let
|
|
196
|
-
const
|
|
195
|
+
let Nt = !1, gt = [], Xt = !1;
|
|
196
|
+
const En = (t) => t._userFlow || null, Jt = (t) => {
|
|
197
197
|
gt.forEach(({ resolve: e, reject: r }) => {
|
|
198
198
|
t ? r(t) : e(void 0);
|
|
199
199
|
}), gt = [];
|
|
200
|
-
},
|
|
200
|
+
}, kn = async (t) => {
|
|
201
201
|
var s, o;
|
|
202
202
|
const e = t == null ? void 0 : t.config;
|
|
203
203
|
if (((s = t == null ? void 0 : t.response) == null ? void 0 : s.status) === 401 && !e._retry) {
|
|
204
|
-
const i =
|
|
204
|
+
const i = En(e);
|
|
205
205
|
if (i) {
|
|
206
206
|
const n = (o = v.getState()[i]) == null ? void 0 : o.apiConfig;
|
|
207
207
|
if (!n)
|
|
208
208
|
return Promise.reject(t);
|
|
209
209
|
if (n.onAuthenticationError || typeof n.headers == "function") {
|
|
210
|
-
if (
|
|
210
|
+
if (Nt)
|
|
211
211
|
return new Promise((l, d) => {
|
|
212
212
|
gt.push({ resolve: l, reject: d });
|
|
213
213
|
}).then(() => X(e)).catch((l) => (console.error("[axiosInterceptors] Queued request failed:", l), Promise.reject(l)));
|
|
214
|
-
e._retry = !0,
|
|
214
|
+
e._retry = !0, Nt = !0;
|
|
215
215
|
try {
|
|
216
216
|
let l;
|
|
217
217
|
if (n.onAuthenticationError)
|
|
@@ -230,7 +230,7 @@ const vn = (t) => t._userFlow || null, Jt = (t) => {
|
|
|
230
230
|
gt.length
|
|
231
231
|
), Jt(l), Promise.reject(l);
|
|
232
232
|
} finally {
|
|
233
|
-
|
|
233
|
+
Nt = !1;
|
|
234
234
|
}
|
|
235
235
|
} else
|
|
236
236
|
console.warn(
|
|
@@ -243,20 +243,20 @@ const vn = (t) => t._userFlow || null, Jt = (t) => {
|
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
245
|
return Promise.reject(t);
|
|
246
|
-
},
|
|
246
|
+
}, Tn = () => {
|
|
247
247
|
if (Xt) {
|
|
248
248
|
console.debug(
|
|
249
249
|
"[axiosInterceptors] Interceptors already initialized, skipping"
|
|
250
250
|
);
|
|
251
251
|
return;
|
|
252
252
|
}
|
|
253
|
-
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0,
|
|
253
|
+
console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, kn), console.debug("[axiosInterceptors] Response error interceptor registered"), Xt = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
|
|
254
254
|
};
|
|
255
|
-
|
|
256
|
-
function
|
|
255
|
+
Tn();
|
|
256
|
+
function Sn(t) {
|
|
257
257
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
258
258
|
}
|
|
259
|
-
var
|
|
259
|
+
var wt = { exports: {} }, dt = {};
|
|
260
260
|
/**
|
|
261
261
|
* @license React
|
|
262
262
|
* react-jsx-runtime.production.min.js
|
|
@@ -267,10 +267,10 @@ var Nt = { exports: {} }, dt = {};
|
|
|
267
267
|
* LICENSE file in the root directory of this source tree.
|
|
268
268
|
*/
|
|
269
269
|
var Wt;
|
|
270
|
-
function
|
|
270
|
+
function An() {
|
|
271
271
|
if (Wt) return dt;
|
|
272
272
|
Wt = 1;
|
|
273
|
-
var t =
|
|
273
|
+
var t = $e, e = Symbol.for("react.element"), r = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
274
274
|
function c(n, _, l) {
|
|
275
275
|
var d, u = {}, h = null, f = null;
|
|
276
276
|
l !== void 0 && (h = "" + l), _.key !== void 0 && (h = "" + _.key), _.ref !== void 0 && (f = _.ref);
|
|
@@ -281,31 +281,31 @@ function Sn() {
|
|
|
281
281
|
return dt.Fragment = r, dt.jsx = c, dt.jsxs = c, dt;
|
|
282
282
|
}
|
|
283
283
|
var Yt;
|
|
284
|
-
function
|
|
285
|
-
return Yt || (Yt = 1,
|
|
284
|
+
function On() {
|
|
285
|
+
return Yt || (Yt = 1, wt.exports = An()), wt.exports;
|
|
286
286
|
}
|
|
287
|
-
var a =
|
|
288
|
-
const
|
|
287
|
+
var a = On();
|
|
288
|
+
const $n = (t) => {
|
|
289
289
|
if (!(t != null && t.content)) return null;
|
|
290
290
|
const e = {
|
|
291
291
|
...t,
|
|
292
292
|
children: t.content,
|
|
293
293
|
type: t.variant
|
|
294
294
|
};
|
|
295
|
-
return /* @__PURE__ */ a.jsx(
|
|
296
|
-
},
|
|
295
|
+
return /* @__PURE__ */ a.jsx(ce, { ...e });
|
|
296
|
+
}, Dn = (t) => {
|
|
297
297
|
if (!t) return null;
|
|
298
298
|
const e = {
|
|
299
299
|
...t,
|
|
300
300
|
children: t.content
|
|
301
301
|
};
|
|
302
|
-
return /* @__PURE__ */ a.jsx(
|
|
302
|
+
return /* @__PURE__ */ a.jsx(ie, { ...e });
|
|
303
303
|
}, E = (t, e, r, s) => {
|
|
304
304
|
var c;
|
|
305
305
|
const o = {
|
|
306
|
-
accordion: (n) => /* @__PURE__ */ a.jsx(
|
|
306
|
+
accordion: (n) => /* @__PURE__ */ a.jsx(Hn, { ...n, userFlow: t, pageId: e }),
|
|
307
307
|
aiChatPanel: (n) => /* @__PURE__ */ a.jsx(
|
|
308
|
-
|
|
308
|
+
Vn,
|
|
309
309
|
{
|
|
310
310
|
...n,
|
|
311
311
|
userFlow: t,
|
|
@@ -314,7 +314,7 @@ const On = (t) => {
|
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
316
|
aiSummaryCard: (n) => /* @__PURE__ */ a.jsx(
|
|
317
|
-
|
|
317
|
+
Yn,
|
|
318
318
|
{
|
|
319
319
|
...n,
|
|
320
320
|
userFlow: t,
|
|
@@ -322,57 +322,57 @@ const On = (t) => {
|
|
|
322
322
|
onResolveProps: s == null ? void 0 : s.aiSummaryCard
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
aiPromptCodeEditor: (n) => /* @__PURE__ */ a.jsx(
|
|
326
|
-
box: (n) => /* @__PURE__ */ a.jsx(
|
|
327
|
-
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(
|
|
328
|
-
tooltip: (n) => /* @__PURE__ */ a.jsx(
|
|
329
|
-
textarea: (n) => /* @__PURE__ */ a.jsx(
|
|
330
|
-
card: (n) => /* @__PURE__ */ a.jsx(
|
|
331
|
-
dropdownButton: (n) => /* @__PURE__ */ a.jsx(
|
|
332
|
-
menu: (n) => /* @__PURE__ */ a.jsx(
|
|
333
|
-
radioGroup: (n) => /* @__PURE__ */ a.jsx(
|
|
334
|
-
stepper: (n) => /* @__PURE__ */ a.jsx(
|
|
335
|
-
progressBar: (n) => /* @__PURE__ */ a.jsx(
|
|
336
|
-
button: (n) => /* @__PURE__ */ a.jsx(
|
|
337
|
-
cardAccordion: (n) => /* @__PURE__ */ a.jsx(
|
|
338
|
-
cardNotification: (n) => /* @__PURE__ */ a.jsx(
|
|
339
|
-
chart: (n) => /* @__PURE__ */ a.jsx(
|
|
340
|
-
dataCard: (n) => /* @__PURE__ */ a.jsx(
|
|
341
|
-
checkbox: (n) => /* @__PURE__ */ a.jsx(
|
|
342
|
-
code: (n) => /* @__PURE__ */ a.jsx(
|
|
343
|
-
divider: (n) => /* @__PURE__ */ a.jsx(
|
|
344
|
-
drawer: (n) => /* @__PURE__ */ a.jsx(
|
|
345
|
-
heading: (n) =>
|
|
346
|
-
link: (n) => /* @__PURE__ */ a.jsx(
|
|
347
|
-
pill: (n) => /* @__PURE__ */ a.jsx(
|
|
348
|
-
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx(
|
|
349
|
-
modal: (n) => /* @__PURE__ */ a.jsx(
|
|
350
|
-
roundButton: (n) => /* @__PURE__ */ a.jsx(
|
|
351
|
-
row: (n) => /* @__PURE__ */ a.jsx(
|
|
352
|
-
select: (n) => /* @__PURE__ */ a.jsx(
|
|
353
|
-
switch: (n) => /* @__PURE__ */ a.jsx(
|
|
354
|
-
spacing: (n) => /* @__PURE__ */ a.jsx(
|
|
355
|
-
table: (n) => /* @__PURE__ */ a.jsx(
|
|
356
|
-
tabs: (n) => /* @__PURE__ */ a.jsx(
|
|
357
|
-
text: (n) =>
|
|
358
|
-
textField: (n) => /* @__PURE__ */ a.jsx(
|
|
359
|
-
toast: (n) => /* @__PURE__ */ a.jsx(
|
|
325
|
+
aiPromptCodeEditor: (n) => /* @__PURE__ */ a.jsx(Xn, { ...n, userFlow: t, pageId: e }),
|
|
326
|
+
box: (n) => /* @__PURE__ */ a.jsx(er, { ...n, userFlow: t, pageId: e }),
|
|
327
|
+
breadcrumbs: (n) => /* @__PURE__ */ a.jsx(hr, { ...n, userFlow: t, pageId: e }),
|
|
328
|
+
tooltip: (n) => /* @__PURE__ */ a.jsx(Na, { ...n, userFlow: t, pageId: e }),
|
|
329
|
+
textarea: (n) => /* @__PURE__ */ a.jsx(ya, { ...n, userFlow: t, pageId: e }),
|
|
330
|
+
card: (n) => /* @__PURE__ */ a.jsx(pr, { ...n, userFlow: t, pageId: e }),
|
|
331
|
+
dropdownButton: (n) => /* @__PURE__ */ a.jsx(gs, { ...n, userFlow: t, pageId: e }),
|
|
332
|
+
menu: (n) => /* @__PURE__ */ a.jsx(Ns, { ...n, userFlow: t, pageId: e }),
|
|
333
|
+
radioGroup: (n) => /* @__PURE__ */ a.jsx(dr, { ...n, userFlow: t, pageId: e }),
|
|
334
|
+
stepper: (n) => /* @__PURE__ */ a.jsx(_r, { ...n, userFlow: t, pageId: e }),
|
|
335
|
+
progressBar: (n) => /* @__PURE__ */ a.jsx(ur, { ...n, userFlow: t, pageId: e }),
|
|
336
|
+
button: (n) => /* @__PURE__ */ a.jsx(fr, { ...n, userFlow: t, pageId: e }),
|
|
337
|
+
cardAccordion: (n) => /* @__PURE__ */ a.jsx(yr, { ...n, userFlow: t, pageId: e }),
|
|
338
|
+
cardNotification: (n) => /* @__PURE__ */ a.jsx(br, { ...n, userFlow: t, pageId: e }),
|
|
339
|
+
chart: (n) => /* @__PURE__ */ a.jsx(Yr, { ...n, userFlow: t }),
|
|
340
|
+
dataCard: (n) => /* @__PURE__ */ a.jsx(ds, { ...n, userFlow: t, pageId: e }),
|
|
341
|
+
checkbox: (n) => /* @__PURE__ */ a.jsx(Qr, { ...n, userFlow: t, pageId: e }),
|
|
342
|
+
code: (n) => /* @__PURE__ */ a.jsx(rs, { ...n, userFlow: t, pageId: e }),
|
|
343
|
+
divider: (n) => /* @__PURE__ */ a.jsx(hs, { ...n }),
|
|
344
|
+
drawer: (n) => /* @__PURE__ */ a.jsx(ms, { ...n, userFlow: t, pageId: e }),
|
|
345
|
+
heading: (n) => $n(n),
|
|
346
|
+
link: (n) => /* @__PURE__ */ a.jsx(Cs, { ...n, userFlow: t, pageId: e }),
|
|
347
|
+
pill: (n) => /* @__PURE__ */ a.jsx(Os, { ...n }),
|
|
348
|
+
previewerMarkdown: (n) => /* @__PURE__ */ a.jsx($s, { ...n }),
|
|
349
|
+
modal: (n) => /* @__PURE__ */ a.jsx(Es, { ...n, userFlow: t, pageId: e }),
|
|
350
|
+
roundButton: (n) => /* @__PURE__ */ a.jsx(Ds, { ...n, userFlow: t, pageId: e }),
|
|
351
|
+
row: (n) => /* @__PURE__ */ a.jsx(Is, { ...n, userFlow: t, pageId: e }),
|
|
352
|
+
select: (n) => /* @__PURE__ */ a.jsx(Us, { ...n, userFlow: t, pageId: e }),
|
|
353
|
+
switch: (n) => /* @__PURE__ */ a.jsx(ea, { ...n, userFlow: t, pageId: e }),
|
|
354
|
+
spacing: (n) => /* @__PURE__ */ a.jsx(ta, { ...n, userFlow: t, pageId: e }),
|
|
355
|
+
table: (n) => /* @__PURE__ */ a.jsx(la, { ...n, userFlow: t, pageId: e }),
|
|
356
|
+
tabs: (n) => /* @__PURE__ */ a.jsx(ha, { ...n, userFlow: t, pageId: e }),
|
|
357
|
+
text: (n) => Dn(n),
|
|
358
|
+
textField: (n) => /* @__PURE__ */ a.jsx(pa, { ...n, userFlow: t, pageId: e }),
|
|
359
|
+
toast: (n) => /* @__PURE__ */ a.jsx(ba, { ...n, userFlow: t, pageId: e })
|
|
360
360
|
};
|
|
361
361
|
return (c = r == null ? void 0 : r.filter(Boolean)) == null ? void 0 : c.map((n) => {
|
|
362
362
|
const _ = o[n.component];
|
|
363
363
|
return _ ? _({ ...n, userFlow: t, pageId: e }) : null;
|
|
364
364
|
});
|
|
365
365
|
};
|
|
366
|
-
function
|
|
366
|
+
function Rn(t) {
|
|
367
367
|
return !!(t == null || typeof t == "string" && t.trim() === "" || Array.isArray(t) && t.length === 0);
|
|
368
368
|
}
|
|
369
|
-
function
|
|
369
|
+
function ge(t, e) {
|
|
370
370
|
if (!(e != null && e.length))
|
|
371
371
|
return !1;
|
|
372
372
|
for (const r of e)
|
|
373
373
|
if (r.when === "empty") {
|
|
374
374
|
const s = t == null ? void 0 : t[r.key];
|
|
375
|
-
if (
|
|
375
|
+
if (Rn(s))
|
|
376
376
|
return !0;
|
|
377
377
|
}
|
|
378
378
|
return !1;
|
|
@@ -384,7 +384,7 @@ function B(t, e) {
|
|
|
384
384
|
});
|
|
385
385
|
return D(
|
|
386
386
|
() => ({
|
|
387
|
-
disabled:
|
|
387
|
+
disabled: ge(r, e)
|
|
388
388
|
}),
|
|
389
389
|
[e, r]
|
|
390
390
|
);
|
|
@@ -401,7 +401,7 @@ const st = (t) => {
|
|
|
401
401
|
return { "content-type": "application/json", Authorization: t };
|
|
402
402
|
}
|
|
403
403
|
return t;
|
|
404
|
-
}, ft = () => new AbortController(),
|
|
404
|
+
}, ft = () => new AbortController(), Ln = (t, e = {}, r = {}, s = !1, o) => {
|
|
405
405
|
const i = ft();
|
|
406
406
|
s && i.abort();
|
|
407
407
|
const c = st(e);
|
|
@@ -431,7 +431,7 @@ const st = (t) => {
|
|
|
431
431
|
}),
|
|
432
432
|
controller: c
|
|
433
433
|
};
|
|
434
|
-
},
|
|
434
|
+
}, In = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
435
435
|
const c = ft();
|
|
436
436
|
o && c.abort();
|
|
437
437
|
const n = st(e);
|
|
@@ -446,7 +446,7 @@ const st = (t) => {
|
|
|
446
446
|
}),
|
|
447
447
|
controller: c
|
|
448
448
|
};
|
|
449
|
-
},
|
|
449
|
+
}, qn = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
450
450
|
const c = ft();
|
|
451
451
|
o && c.abort();
|
|
452
452
|
const n = st(e);
|
|
@@ -461,7 +461,7 @@ const st = (t) => {
|
|
|
461
461
|
}),
|
|
462
462
|
controller: c
|
|
463
463
|
};
|
|
464
|
-
},
|
|
464
|
+
}, Kn = (t, e = {}, r = {}, s = {}, o = !1, i) => {
|
|
465
465
|
const c = ft();
|
|
466
466
|
o && c.abort();
|
|
467
467
|
const n = st(e);
|
|
@@ -477,7 +477,7 @@ const st = (t) => {
|
|
|
477
477
|
}),
|
|
478
478
|
controller: c
|
|
479
479
|
};
|
|
480
|
-
},
|
|
480
|
+
}, pe = () => {
|
|
481
481
|
let t;
|
|
482
482
|
return { callEndpoint: async (s) => {
|
|
483
483
|
s.controller && (t = s.controller);
|
|
@@ -491,9 +491,9 @@ const st = (t) => {
|
|
|
491
491
|
}, cancelEndpoint: () => {
|
|
492
492
|
t && t.abort();
|
|
493
493
|
} };
|
|
494
|
-
},
|
|
494
|
+
}, be = async (t, e, r = "", s = {}, o = {}) => {
|
|
495
495
|
try {
|
|
496
|
-
const { callEndpoint: i } =
|
|
496
|
+
const { callEndpoint: i } = pe(), { api: c, headers: n } = t, _ = jn(), l = new URLSearchParams({ session_name: e });
|
|
497
497
|
r && l.append("hash_code", r), _ && l.append("sessionId", _);
|
|
498
498
|
const d = `${c}/not-front/next-ui/?${l.toString()}`, u = st(n), h = St(
|
|
499
499
|
d,
|
|
@@ -507,7 +507,7 @@ const st = (t) => {
|
|
|
507
507
|
} catch (i) {
|
|
508
508
|
return console.error(i), Promise.reject(i);
|
|
509
509
|
}
|
|
510
|
-
},
|
|
510
|
+
}, je = (t) => {
|
|
511
511
|
const e = t == null ? void 0 : t.toLowerCase();
|
|
512
512
|
switch (e) {
|
|
513
513
|
case "post":
|
|
@@ -519,7 +519,7 @@ const st = (t) => {
|
|
|
519
519
|
default:
|
|
520
520
|
return "get";
|
|
521
521
|
}
|
|
522
|
-
},
|
|
522
|
+
}, Bn = (t, e, r) => {
|
|
523
523
|
const { url: s, paginationKeys: o, params: i } = t, c = [], n = (o == null ? void 0 : o.page) ?? "page";
|
|
524
524
|
if (c.push(`${n}=${e}`), typeof r == "string") {
|
|
525
525
|
const d = (o == null ? void 0 : o.text) ?? "text";
|
|
@@ -536,11 +536,11 @@ const st = (t) => {
|
|
|
536
536
|
}, Bt = (t, e, r, s) => {
|
|
537
537
|
const { type: o, url: i, method: c, headers: n } = t;
|
|
538
538
|
if (o === "rest") {
|
|
539
|
-
const _ =
|
|
539
|
+
const _ = Bn(t, e, r), d = { ...(t == null ? void 0 : t.data) ?? {}, ...s ?? {} };
|
|
540
540
|
return {
|
|
541
541
|
type: "rest",
|
|
542
542
|
url: _,
|
|
543
|
-
method:
|
|
543
|
+
method: je(c),
|
|
544
544
|
headers: n,
|
|
545
545
|
data: d
|
|
546
546
|
};
|
|
@@ -558,36 +558,36 @@ const st = (t) => {
|
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
}, H = () => {
|
|
561
|
-
const t = v((n) => n), { callEndpoint: e } =
|
|
561
|
+
const t = v((n) => n), { callEndpoint: e } = pe(), r = async (n, _, l, d, u = !0) => {
|
|
562
562
|
var h;
|
|
563
563
|
try {
|
|
564
564
|
const f = (h = t[n]) == null ? void 0 : h.apiConfig, y = {
|
|
565
565
|
state: { ...l },
|
|
566
566
|
triggerKey: d
|
|
567
567
|
};
|
|
568
|
-
return u &&
|
|
568
|
+
return u && F(n, !0), await be(
|
|
569
569
|
f,
|
|
570
570
|
n,
|
|
571
571
|
_,
|
|
572
572
|
y
|
|
573
573
|
);
|
|
574
574
|
} catch (f) {
|
|
575
|
-
throw u &&
|
|
575
|
+
throw u && F(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
|
|
576
576
|
}
|
|
577
577
|
}, s = (n, _) => {
|
|
578
578
|
const { url: l, headers: d, data: u, params: h } = n;
|
|
579
|
-
switch (
|
|
579
|
+
switch (je(n.method)) {
|
|
580
580
|
case "post":
|
|
581
581
|
return St(l, d, u, {}, !1, _);
|
|
582
582
|
case "put":
|
|
583
|
-
return Ln(l, d, u, {}, !1, _);
|
|
584
|
-
case "patch":
|
|
585
583
|
return In(l, d, u, {}, !1, _);
|
|
584
|
+
case "patch":
|
|
585
|
+
return qn(l, d, u, {}, !1, _);
|
|
586
586
|
case "delete":
|
|
587
|
-
return
|
|
587
|
+
return Kn(l, d, u, h, !1, _);
|
|
588
588
|
case "get":
|
|
589
589
|
default:
|
|
590
|
-
return
|
|
590
|
+
return Ln(l, d, h, !1, _);
|
|
591
591
|
}
|
|
592
592
|
}, o = (n, _) => {
|
|
593
593
|
const { url: l, headers: d } = n, u = {
|
|
@@ -611,7 +611,7 @@ const st = (t) => {
|
|
|
611
611
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
612
612
|
return;
|
|
613
613
|
}
|
|
614
|
-
l &&
|
|
614
|
+
l && F(_, !0);
|
|
615
615
|
try {
|
|
616
616
|
let h;
|
|
617
617
|
switch (n == null ? void 0 : n.type) {
|
|
@@ -636,7 +636,7 @@ const st = (t) => {
|
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
} finally {
|
|
639
|
-
l &&
|
|
639
|
+
l && F(_, !1);
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
642
|
return {
|
|
@@ -644,7 +644,7 @@ const st = (t) => {
|
|
|
644
644
|
fetchDataSource: i,
|
|
645
645
|
fetchAndGetNextUI: async (n, _, l, d, u) => {
|
|
646
646
|
try {
|
|
647
|
-
|
|
647
|
+
F(n, !0);
|
|
648
648
|
const h = await i(u, n, !1);
|
|
649
649
|
return h && await r(
|
|
650
650
|
n,
|
|
@@ -653,17 +653,17 @@ const st = (t) => {
|
|
|
653
653
|
d
|
|
654
654
|
);
|
|
655
655
|
} catch (h) {
|
|
656
|
-
throw
|
|
656
|
+
throw F(n, !1), console.error(
|
|
657
657
|
"[fetchAndGetNextUI] Error fetching and navigating:",
|
|
658
658
|
h
|
|
659
659
|
), h;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
662
|
};
|
|
663
|
-
},
|
|
664
|
-
accordion:
|
|
665
|
-
accordionBody:
|
|
666
|
-
},
|
|
663
|
+
}, Mn = "_accordion_1ri2t_1", Gn = "_accordionBody_1ri2t_8", Qt = {
|
|
664
|
+
accordion: Mn,
|
|
665
|
+
accordionBody: Gn
|
|
666
|
+
}, Hn = (t) => {
|
|
667
667
|
const {
|
|
668
668
|
userFlow: e,
|
|
669
669
|
pageId: r,
|
|
@@ -684,18 +684,18 @@ const st = (t) => {
|
|
|
684
684
|
try {
|
|
685
685
|
const j = g.target.checked;
|
|
686
686
|
u(j);
|
|
687
|
-
const
|
|
687
|
+
const N = {
|
|
688
688
|
...(C = v.getState()[e]) == null ? void 0 : C.entries,
|
|
689
689
|
[s]: j
|
|
690
690
|
};
|
|
691
|
-
if (q(e,
|
|
692
|
-
const
|
|
691
|
+
if (q(e, N), _.actionType === "GO_TO_NEXT_UI") {
|
|
692
|
+
const w = await l(
|
|
693
693
|
e,
|
|
694
694
|
r,
|
|
695
|
-
|
|
695
|
+
N,
|
|
696
696
|
s
|
|
697
697
|
);
|
|
698
|
-
|
|
698
|
+
w != null && w.data && K(e, w == null ? void 0 : w.data);
|
|
699
699
|
}
|
|
700
700
|
} catch (j) {
|
|
701
701
|
console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
|
|
@@ -712,8 +712,8 @@ const st = (t) => {
|
|
|
712
712
|
customContent: b ? /* @__PURE__ */ a.jsx(a.Fragment, { children: b.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-custom-${C}`)) }) : void 0,
|
|
713
713
|
children: f ? /* @__PURE__ */ a.jsx("section", { className: Qt.accordionBody, children: f.map((g, C) => /* @__PURE__ */ a.jsx(A, { children: g }, `accordion-child-${C}`)) }) : void 0
|
|
714
714
|
};
|
|
715
|
-
return /* @__PURE__ */ a.jsx(
|
|
716
|
-
},
|
|
715
|
+
return /* @__PURE__ */ a.jsx(Re, { ...m });
|
|
716
|
+
}, Vn = (t) => {
|
|
717
717
|
const e = ht.useThemeStore((c) => c.theme.mode), r = t.dataSource, s = D(() => ({
|
|
718
718
|
url: t.dataSource.url,
|
|
719
719
|
method: t.dataSource.method,
|
|
@@ -746,7 +746,7 @@ const st = (t) => {
|
|
|
746
746
|
t.initialSuggestions,
|
|
747
747
|
e
|
|
748
748
|
]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx(
|
|
749
|
-
|
|
749
|
+
on,
|
|
750
750
|
{
|
|
751
751
|
dataSource: s,
|
|
752
752
|
locale: o,
|
|
@@ -755,9 +755,9 @@ const st = (t) => {
|
|
|
755
755
|
theme: e
|
|
756
756
|
}
|
|
757
757
|
);
|
|
758
|
-
},
|
|
759
|
-
promptCodeEditor:
|
|
760
|
-
},
|
|
758
|
+
}, Un = "_promptCodeEditor_1d57s_1", zn = {
|
|
759
|
+
promptCodeEditor: Un
|
|
760
|
+
}, Xn = (t) => {
|
|
761
761
|
const {
|
|
762
762
|
userFlow: e,
|
|
763
763
|
responseKey: r,
|
|
@@ -788,8 +788,8 @@ const st = (t) => {
|
|
|
788
788
|
};
|
|
789
789
|
return U(() => {
|
|
790
790
|
s !== void 0 && s !== h && f(s);
|
|
791
|
-
}, [s]), /* @__PURE__ */ a.jsx("section", { className:
|
|
792
|
-
|
|
791
|
+
}, [s]), /* @__PURE__ */ a.jsx("section", { className: zn.promptCodeEditor, children: /* @__PURE__ */ a.jsx(
|
|
792
|
+
cn,
|
|
793
793
|
{
|
|
794
794
|
themeMode: u,
|
|
795
795
|
requestConfig: x,
|
|
@@ -802,9 +802,9 @@ const st = (t) => {
|
|
|
802
802
|
onCodeChange: m
|
|
803
803
|
}
|
|
804
804
|
) });
|
|
805
|
-
},
|
|
806
|
-
summaryCard:
|
|
807
|
-
},
|
|
805
|
+
}, Jn = "_summaryCard_jva4h_1", Wn = {
|
|
806
|
+
summaryCard: Jn
|
|
807
|
+
}, Yn = (t) => {
|
|
808
808
|
const e = t.dataSource, r = D(() => ({
|
|
809
809
|
url: t.dataSource.url,
|
|
810
810
|
method: t.dataSource.method,
|
|
@@ -827,21 +827,21 @@ const st = (t) => {
|
|
|
827
827
|
locale: s,
|
|
828
828
|
translations: o
|
|
829
829
|
});
|
|
830
|
-
}, [t.onResolveProps, r, s, o]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx("section", { className:
|
|
831
|
-
|
|
830
|
+
}, [t.onResolveProps, r, s, o]), t.onResolveProps ? null : /* @__PURE__ */ a.jsx("section", { className: Wn.summaryCard, children: /* @__PURE__ */ a.jsx(
|
|
831
|
+
ln,
|
|
832
832
|
{
|
|
833
833
|
dataSource: r,
|
|
834
834
|
locale: s,
|
|
835
835
|
translations: o
|
|
836
836
|
}
|
|
837
837
|
) });
|
|
838
|
-
},
|
|
839
|
-
body:
|
|
840
|
-
body_content:
|
|
841
|
-
},
|
|
838
|
+
}, Qn = "_body_14tsv_1", Zn = "_body_content_14tsv_5", Zt = {
|
|
839
|
+
body: Qn,
|
|
840
|
+
body_content: Zn
|
|
841
|
+
}, Fn = ({ inputs: t }) => /* @__PURE__ */ a.jsx("section", { className: Zt.body, children: /* @__PURE__ */ a.jsx("div", { className: Zt.body_content, children: t.map((e, r) => /* @__PURE__ */ a.jsx(A, { children: e }, r)) }) }), Pn = "_boxNotFront_67q2e_1", tr = "_slotStack_67q2e_5", Ft = {
|
|
842
842
|
boxNotFront: Pn,
|
|
843
|
-
slotStack:
|
|
844
|
-
},
|
|
843
|
+
slotStack: tr
|
|
844
|
+
}, er = (t) => {
|
|
845
845
|
const {
|
|
846
846
|
userFlow: e,
|
|
847
847
|
pageId: r,
|
|
@@ -853,8 +853,8 @@ const st = (t) => {
|
|
|
853
853
|
e,
|
|
854
854
|
r,
|
|
855
855
|
c != null && c.length ? c : null
|
|
856
|
-
), l = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
857
|
-
return /* @__PURE__ */ a.jsx(
|
|
856
|
+
), l = _ && _.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: Ft.slotStack, children: _.map((d, u) => /* @__PURE__ */ a.jsx(A, { children: d }, `box-${o}-${u}`)) }) : null;
|
|
857
|
+
return /* @__PURE__ */ a.jsx(Le, { className: Ft.boxNotFront, darkMode: n, children: l });
|
|
858
858
|
};
|
|
859
859
|
var vt = { exports: {} };
|
|
860
860
|
/*!
|
|
@@ -862,9 +862,9 @@ var vt = { exports: {} };
|
|
|
862
862
|
Licensed under the MIT License (MIT), see
|
|
863
863
|
http://jedwatson.github.io/classnames
|
|
864
864
|
*/
|
|
865
|
-
var
|
|
866
|
-
function
|
|
867
|
-
return
|
|
865
|
+
var Pt;
|
|
866
|
+
function nr() {
|
|
867
|
+
return Pt || (Pt = 1, (function(t) {
|
|
868
868
|
(function() {
|
|
869
869
|
var e = {}.hasOwnProperty;
|
|
870
870
|
function r() {
|
|
@@ -895,15 +895,15 @@ function er() {
|
|
|
895
895
|
})();
|
|
896
896
|
})(vt)), vt.exports;
|
|
897
897
|
}
|
|
898
|
-
var
|
|
899
|
-
const et = /* @__PURE__ */
|
|
900
|
-
fieldset:
|
|
901
|
-
fieldsetColumn:
|
|
902
|
-
legend:
|
|
903
|
-
options:
|
|
904
|
-
optionsRow:
|
|
905
|
-
optionsColumn:
|
|
906
|
-
},
|
|
898
|
+
var rr = nr();
|
|
899
|
+
const et = /* @__PURE__ */ Sn(rr), sr = "_fieldset_1xrth_1", ar = "_fieldsetColumn_1xrth_8", or = "_legend_1xrth_14", cr = "_options_1xrth_20", ir = "_optionsRow_1xrth_25", lr = "_optionsColumn_1xrth_36", P = {
|
|
900
|
+
fieldset: sr,
|
|
901
|
+
fieldsetColumn: ar,
|
|
902
|
+
legend: or,
|
|
903
|
+
options: cr,
|
|
904
|
+
optionsRow: ir,
|
|
905
|
+
optionsColumn: lr
|
|
906
|
+
}, dr = (t) => {
|
|
907
907
|
const {
|
|
908
908
|
userFlow: e,
|
|
909
909
|
pageId: r,
|
|
@@ -959,20 +959,20 @@ const et = /* @__PURE__ */ Tn(nr), rr = "_fieldset_1xrth_1", sr = "_fieldsetColu
|
|
|
959
959
|
"fieldset",
|
|
960
960
|
{
|
|
961
961
|
className: et(
|
|
962
|
-
|
|
963
|
-
u === "column" &&
|
|
962
|
+
P.fieldset,
|
|
963
|
+
u === "column" && P.fieldsetColumn
|
|
964
964
|
),
|
|
965
965
|
children: [
|
|
966
|
-
x ? /* @__PURE__ */ a.jsx("legend", { className:
|
|
966
|
+
x ? /* @__PURE__ */ a.jsx("legend", { className: P.legend, children: x }) : null,
|
|
967
967
|
/* @__PURE__ */ a.jsx(
|
|
968
968
|
"div",
|
|
969
969
|
{
|
|
970
970
|
className: et(
|
|
971
|
-
|
|
972
|
-
u === "column" ?
|
|
971
|
+
P.options,
|
|
972
|
+
u === "column" ? P.optionsColumn : P.optionsRow
|
|
973
973
|
),
|
|
974
974
|
children: d.map((g) => /* @__PURE__ */ a.jsx(
|
|
975
|
-
|
|
975
|
+
Ie,
|
|
976
976
|
{
|
|
977
977
|
name: s,
|
|
978
978
|
value: g.value,
|
|
@@ -990,7 +990,7 @@ const et = /* @__PURE__ */ Tn(nr), rr = "_fieldset_1xrth_1", sr = "_fieldsetColu
|
|
|
990
990
|
]
|
|
991
991
|
}
|
|
992
992
|
);
|
|
993
|
-
},
|
|
993
|
+
}, _r = ({
|
|
994
994
|
userFlow: t,
|
|
995
995
|
pageId: e,
|
|
996
996
|
component: r,
|
|
@@ -999,7 +999,7 @@ const et = /* @__PURE__ */ Tn(nr), rr = "_fieldset_1xrth_1", sr = "_fieldsetColu
|
|
|
999
999
|
items: i,
|
|
1000
1000
|
itemActive: c,
|
|
1001
1001
|
darkMode: n
|
|
1002
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
1002
|
+
}) => /* @__PURE__ */ a.jsx(qe, { items: i, itemActive: c, darkMode: n }), ur = ({
|
|
1003
1003
|
userFlow: t,
|
|
1004
1004
|
pageId: e,
|
|
1005
1005
|
component: r,
|
|
@@ -1008,7 +1008,7 @@ const et = /* @__PURE__ */ Tn(nr), rr = "_fieldset_1xrth_1", sr = "_fieldsetColu
|
|
|
1008
1008
|
total: i,
|
|
1009
1009
|
done: c,
|
|
1010
1010
|
inProgress: n
|
|
1011
|
-
}) => /* @__PURE__ */ a.jsx(
|
|
1011
|
+
}) => /* @__PURE__ */ a.jsx(Ke, { total: i, done: c, inProgress: n }), hr = ({
|
|
1012
1012
|
userFlow: t,
|
|
1013
1013
|
items: e,
|
|
1014
1014
|
responseKey: r
|
|
@@ -1043,7 +1043,7 @@ const et = /* @__PURE__ */ Tn(nr), rr = "_fieldset_1xrth_1", sr = "_fieldsetColu
|
|
|
1043
1043
|
title: c == null ? void 0 : c.title,
|
|
1044
1044
|
component: /* @__PURE__ */ a.jsx("div", { onClick: () => o(c) })
|
|
1045
1045
|
})), []);
|
|
1046
|
-
return /* @__PURE__ */ a.jsx(
|
|
1046
|
+
return /* @__PURE__ */ a.jsx(Be, { items: i });
|
|
1047
1047
|
};
|
|
1048
1048
|
function xt(t, e) {
|
|
1049
1049
|
const { getNextUI: r, fetchDataSource: s, fetchAndGetNextUI: o } = H();
|
|
@@ -1051,7 +1051,7 @@ function xt(t, e) {
|
|
|
1051
1051
|
async (i) => {
|
|
1052
1052
|
var h, f, y, b;
|
|
1053
1053
|
const { responseKey: c, actionType: n, dataSource: _, redirectUrl: l, dependencies: d } = i, u = (h = v.getState()[t]) == null ? void 0 : h.entries;
|
|
1054
|
-
if (!
|
|
1054
|
+
if (!ge(u, d))
|
|
1055
1055
|
try {
|
|
1056
1056
|
const p = {
|
|
1057
1057
|
...(f = v.getState()[t]) == null ? void 0 : f.entries,
|
|
@@ -1119,13 +1119,13 @@ function xt(t, e) {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
1121
|
q(t, j);
|
|
1122
|
-
const
|
|
1122
|
+
const N = await r(
|
|
1123
1123
|
t,
|
|
1124
1124
|
e,
|
|
1125
1125
|
j,
|
|
1126
1126
|
c
|
|
1127
1127
|
);
|
|
1128
|
-
|
|
1128
|
+
N != null && N.data && K(t, N == null ? void 0 : N.data);
|
|
1129
1129
|
break;
|
|
1130
1130
|
}
|
|
1131
1131
|
case "REDIRECT":
|
|
@@ -1147,7 +1147,7 @@ function xt(t, e) {
|
|
|
1147
1147
|
]
|
|
1148
1148
|
);
|
|
1149
1149
|
}
|
|
1150
|
-
const
|
|
1150
|
+
const fr = (t) => {
|
|
1151
1151
|
const {
|
|
1152
1152
|
userFlow: e,
|
|
1153
1153
|
pageId: r,
|
|
@@ -1193,7 +1193,7 @@ const hr = (t) => {
|
|
|
1193
1193
|
h
|
|
1194
1194
|
]);
|
|
1195
1195
|
return /* @__PURE__ */ a.jsx(
|
|
1196
|
-
|
|
1196
|
+
Me,
|
|
1197
1197
|
{
|
|
1198
1198
|
...y,
|
|
1199
1199
|
loading: y.loading || p,
|
|
@@ -1201,9 +1201,9 @@ const hr = (t) => {
|
|
|
1201
1201
|
onClick: () => !b && !p && (d ?? g)()
|
|
1202
1202
|
}
|
|
1203
1203
|
);
|
|
1204
|
-
},
|
|
1205
|
-
slotStack:
|
|
1206
|
-
},
|
|
1204
|
+
}, xr = "_slotStack_12u4t_5", At = {
|
|
1205
|
+
slotStack: xr
|
|
1206
|
+
}, yr = (t) => {
|
|
1207
1207
|
const {
|
|
1208
1208
|
userFlow: e,
|
|
1209
1209
|
pageId: r,
|
|
@@ -1227,7 +1227,7 @@ const hr = (t) => {
|
|
|
1227
1227
|
_ && _.length > 0 ? _ : null
|
|
1228
1228
|
), f = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: At.slotStack, children: u.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `card-accordion-body-${o}-${x}`)) }) : void 0, y = h && h.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: At.slotStack, children: h.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `card-accordion-actions-${o}-${x}`)) }) : void 0, b = l.disabled || d;
|
|
1229
1229
|
return /* @__PURE__ */ a.jsx(
|
|
1230
|
-
|
|
1230
|
+
Ge,
|
|
1231
1231
|
{
|
|
1232
1232
|
...l,
|
|
1233
1233
|
disabled: b,
|
|
@@ -1235,9 +1235,10 @@ const hr = (t) => {
|
|
|
1235
1235
|
children: f ?? null
|
|
1236
1236
|
}
|
|
1237
1237
|
);
|
|
1238
|
-
},
|
|
1239
|
-
|
|
1240
|
-
|
|
1238
|
+
}, mr = "_cardNotFront_2xt48_1", gr = "_slotStack_2xt48_5", te = {
|
|
1239
|
+
cardNotFront: mr,
|
|
1240
|
+
slotStack: gr
|
|
1241
|
+
}, pr = (t) => {
|
|
1241
1242
|
const {
|
|
1242
1243
|
userFlow: e,
|
|
1243
1244
|
pageId: r,
|
|
@@ -1258,8 +1259,8 @@ const hr = (t) => {
|
|
|
1258
1259
|
e,
|
|
1259
1260
|
r,
|
|
1260
1261
|
c && c.length > 0 ? c : null
|
|
1261
|
-
), g = m && m.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
1262
|
-
var j,
|
|
1262
|
+
), g = m && m.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: te.slotStack, children: m.map((j, N) => /* @__PURE__ */ a.jsx(A, { children: j }, `card-body-${o}-${N}`)) }) : null, C = I(async () => {
|
|
1263
|
+
var j, N, w;
|
|
1263
1264
|
if (!(!l || x))
|
|
1264
1265
|
try {
|
|
1265
1266
|
const k = {
|
|
@@ -1305,11 +1306,11 @@ const hr = (t) => {
|
|
|
1305
1306
|
r,
|
|
1306
1307
|
k,
|
|
1307
1308
|
i
|
|
1308
|
-
), $ = (
|
|
1309
|
+
), $ = (N = O == null ? void 0 : O.data) == null ? void 0 : N.content;
|
|
1309
1310
|
if (($ == null ? void 0 : $.type) !== "fetch")
|
|
1310
1311
|
break;
|
|
1311
1312
|
const Q = $ == null ? void 0 : $.dataSource, V = await y(Q, e, !1), T = {
|
|
1312
|
-
...(
|
|
1313
|
+
...(w = v.getState()[e]) == null ? void 0 : w.entries,
|
|
1313
1314
|
[i]: {
|
|
1314
1315
|
status: V == null ? void 0 : V.status,
|
|
1315
1316
|
content: V == null ? void 0 : V.data
|
|
@@ -1347,15 +1348,16 @@ const hr = (t) => {
|
|
|
1347
1348
|
e
|
|
1348
1349
|
]);
|
|
1349
1350
|
return /* @__PURE__ */ a.jsx(
|
|
1350
|
-
|
|
1351
|
+
He,
|
|
1351
1352
|
{
|
|
1353
|
+
className: te.cardNotFront,
|
|
1352
1354
|
colorId: n,
|
|
1353
1355
|
disabled: x,
|
|
1354
1356
|
onClick: l && !x ? () => void C() : void 0,
|
|
1355
1357
|
children: g
|
|
1356
1358
|
}
|
|
1357
1359
|
);
|
|
1358
|
-
},
|
|
1360
|
+
}, br = (t) => {
|
|
1359
1361
|
const {
|
|
1360
1362
|
userFlow: e,
|
|
1361
1363
|
pageId: r,
|
|
@@ -1372,10 +1374,10 @@ const hr = (t) => {
|
|
|
1372
1374
|
);
|
|
1373
1375
|
let u;
|
|
1374
1376
|
return d && d.length > 0 ? u = /* @__PURE__ */ a.jsxs("div", { className: At.slotStack, children: [
|
|
1375
|
-
n ? /* @__PURE__ */ a.jsx(
|
|
1377
|
+
n ? /* @__PURE__ */ a.jsx(ie, { type: "sm", children: n }) : null,
|
|
1376
1378
|
d.map((h, f) => /* @__PURE__ */ a.jsx(A, { children: h }, `card-notification-body-${o}-${f}`))
|
|
1377
1379
|
] }) : u = (typeof c == "string" ? c : void 0) ?? n, /* @__PURE__ */ a.jsx(mt, { ..._, children: u });
|
|
1378
|
-
}, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t,
|
|
1380
|
+
}, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, jr = (t, e) => {
|
|
1379
1381
|
if (!e || t == null)
|
|
1380
1382
|
return null;
|
|
1381
1383
|
const { extractionJsonPath: r, injectionJsonPath: s } = e, o = M.value(t, r);
|
|
@@ -1391,7 +1393,7 @@ const hr = (t) => {
|
|
|
1391
1393
|
i
|
|
1392
1394
|
), null;
|
|
1393
1395
|
}
|
|
1394
|
-
},
|
|
1396
|
+
}, Ce = (t, e, r, s) => {
|
|
1395
1397
|
const o = M.query(t, e), i = o == null ? void 0 : o.map((d) => {
|
|
1396
1398
|
var u, h;
|
|
1397
1399
|
if (r) {
|
|
@@ -1432,7 +1434,7 @@ const hr = (t) => {
|
|
|
1432
1434
|
}, J = ({ withPadding: t = !1 }) => {
|
|
1433
1435
|
const e = (r) => /* @__PURE__ */ a.jsx("span", { style: { color: S.labelColor }, children: r });
|
|
1434
1436
|
return /* @__PURE__ */ a.jsx(
|
|
1435
|
-
|
|
1437
|
+
dn,
|
|
1436
1438
|
{
|
|
1437
1439
|
formatter: e,
|
|
1438
1440
|
wrapperStyle: {
|
|
@@ -1442,7 +1444,7 @@ const hr = (t) => {
|
|
|
1442
1444
|
}
|
|
1443
1445
|
}
|
|
1444
1446
|
);
|
|
1445
|
-
},
|
|
1447
|
+
}, Cr = ({
|
|
1446
1448
|
active: t,
|
|
1447
1449
|
payload: e,
|
|
1448
1450
|
label: r,
|
|
@@ -1478,12 +1480,12 @@ const hr = (t) => {
|
|
|
1478
1480
|
defaultIndex: r,
|
|
1479
1481
|
hideContent: s = !1
|
|
1480
1482
|
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1481
|
-
|
|
1483
|
+
_n,
|
|
1482
1484
|
{
|
|
1483
1485
|
defaultIndex: r,
|
|
1484
1486
|
cursor: s ? !1 : void 0,
|
|
1485
1487
|
content: s ? () => null : (o) => /* @__PURE__ */ a.jsx(
|
|
1486
|
-
|
|
1488
|
+
Cr,
|
|
1487
1489
|
{
|
|
1488
1490
|
...o,
|
|
1489
1491
|
tooltipKey: t,
|
|
@@ -1492,7 +1494,7 @@ const hr = (t) => {
|
|
|
1492
1494
|
)
|
|
1493
1495
|
}
|
|
1494
1496
|
), ot = ({ dataKey: t, hide: e = !1, type: r }) => /* @__PURE__ */ a.jsx(
|
|
1495
|
-
|
|
1497
|
+
un,
|
|
1496
1498
|
{
|
|
1497
1499
|
...t ? { dataKey: t } : {},
|
|
1498
1500
|
...r ? { type: r } : {},
|
|
@@ -1509,7 +1511,7 @@ const hr = (t) => {
|
|
|
1509
1511
|
yAxisId: s,
|
|
1510
1512
|
orientation: o
|
|
1511
1513
|
} = {}) => /* @__PURE__ */ a.jsx(
|
|
1512
|
-
|
|
1514
|
+
hn,
|
|
1513
1515
|
{
|
|
1514
1516
|
...t ? { type: t } : {},
|
|
1515
1517
|
...e ? { dataKey: e } : {},
|
|
@@ -1522,16 +1524,16 @@ const hr = (t) => {
|
|
|
1522
1524
|
},
|
|
1523
1525
|
tickMargin: 4
|
|
1524
1526
|
}
|
|
1525
|
-
),
|
|
1527
|
+
), Nr = (t) => {
|
|
1526
1528
|
const { data: e, xKey: r, yKeys: s, tooltipKey: o, width: i } = t;
|
|
1527
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1529
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: fn, children: [
|
|
1528
1530
|
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1529
1531
|
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1530
1532
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1531
1533
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1532
1534
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1533
1535
|
s.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1534
|
-
|
|
1536
|
+
ue,
|
|
1535
1537
|
{
|
|
1536
1538
|
type: "monotone",
|
|
1537
1539
|
dataKey: c,
|
|
@@ -1559,8 +1561,8 @@ const hr = (t) => {
|
|
|
1559
1561
|
))
|
|
1560
1562
|
] });
|
|
1561
1563
|
};
|
|
1562
|
-
var
|
|
1563
|
-
const
|
|
1564
|
+
var Ne = { NODE_ENV: "production" };
|
|
1565
|
+
const vr = (t, e) => {
|
|
1564
1566
|
if (e != null && e.length)
|
|
1565
1567
|
return e;
|
|
1566
1568
|
const r = [
|
|
@@ -1570,13 +1572,13 @@ const Nr = (t, e) => {
|
|
|
1570
1572
|
id: s,
|
|
1571
1573
|
orientation: o === 1 ? "right" : "left"
|
|
1572
1574
|
}));
|
|
1573
|
-
},
|
|
1574
|
-
!t.type &&
|
|
1575
|
+
}, Er = (t, e) => {
|
|
1576
|
+
!t.type && Ne.NODE_ENV;
|
|
1575
1577
|
const r = t.color ?? R[e % R.length], s = t.label ?? t.key, o = t.yAxisId ? { yAxisId: t.yAxisId } : {};
|
|
1576
1578
|
switch (t.type) {
|
|
1577
1579
|
case "area":
|
|
1578
1580
|
return /* @__PURE__ */ a.jsx(
|
|
1579
|
-
|
|
1581
|
+
ue,
|
|
1580
1582
|
{
|
|
1581
1583
|
dataKey: t.key,
|
|
1582
1584
|
name: s,
|
|
@@ -1590,7 +1592,7 @@ const Nr = (t, e) => {
|
|
|
1590
1592
|
);
|
|
1591
1593
|
case "line":
|
|
1592
1594
|
return /* @__PURE__ */ a.jsx(
|
|
1593
|
-
|
|
1595
|
+
he,
|
|
1594
1596
|
{
|
|
1595
1597
|
dataKey: t.key,
|
|
1596
1598
|
name: s,
|
|
@@ -1618,7 +1620,7 @@ const Nr = (t, e) => {
|
|
|
1618
1620
|
default:
|
|
1619
1621
|
return null;
|
|
1620
1622
|
}
|
|
1621
|
-
},
|
|
1623
|
+
}, kr = (t) => {
|
|
1622
1624
|
const {
|
|
1623
1625
|
data: e,
|
|
1624
1626
|
xKey: r,
|
|
@@ -1628,9 +1630,9 @@ const Nr = (t, e) => {
|
|
|
1628
1630
|
showLegend: c = !0,
|
|
1629
1631
|
yAxes: n
|
|
1630
1632
|
} = t;
|
|
1631
|
-
!s.length &&
|
|
1632
|
-
const _ =
|
|
1633
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1633
|
+
!s.length && Ne.NODE_ENV;
|
|
1634
|
+
const _ = vr(s, n);
|
|
1635
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: xn, children: [
|
|
1634
1636
|
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1635
1637
|
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1636
1638
|
_.length > 0 ? _.map((l) => /* @__PURE__ */ a.jsx(
|
|
@@ -1643,9 +1645,9 @@ const Nr = (t, e) => {
|
|
|
1643
1645
|
)) : /* @__PURE__ */ a.jsx(Y, {}),
|
|
1644
1646
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1645
1647
|
c && /* @__PURE__ */ a.jsx(J, {}),
|
|
1646
|
-
s.map((l, d) =>
|
|
1648
|
+
s.map((l, d) => Er(l, d))
|
|
1647
1649
|
] });
|
|
1648
|
-
},
|
|
1650
|
+
}, Tr = "55%", Sr = 120, Ar = (t) => (e) => {
|
|
1649
1651
|
const r = Math.PI / 180, {
|
|
1650
1652
|
cx: s = 0,
|
|
1651
1653
|
cy: o = 0,
|
|
@@ -1658,7 +1660,7 @@ const Nr = (t, e) => {
|
|
|
1658
1660
|
payload: u,
|
|
1659
1661
|
percent: h = 0,
|
|
1660
1662
|
value: f = 0
|
|
1661
|
-
} = e, y = Math.sin(-r * i), b = Math.cos(-r * i), p = s + (n + 10) * b, x = o + (n + 10) * y, m = s + (n + 30) * b, g = o + (n + 30) * y, C = m + (b >= 0 ? 1 : -1) * 22, j = g,
|
|
1663
|
+
} = e, y = Math.sin(-r * i), b = Math.cos(-r * i), p = s + (n + 10) * b, x = o + (n + 10) * y, m = s + (n + 30) * b, g = o + (n + 30) * y, C = m + (b >= 0 ? 1 : -1) * 22, j = g, N = b >= 0 ? "start" : "end", w = u, k = String((w == null ? void 0 : w[t]) ?? "");
|
|
1662
1664
|
return /* @__PURE__ */ a.jsxs("g", { children: [
|
|
1663
1665
|
/* @__PURE__ */ a.jsx(
|
|
1664
1666
|
"text",
|
|
@@ -1711,7 +1713,7 @@ const Nr = (t, e) => {
|
|
|
1711
1713
|
{
|
|
1712
1714
|
x: C + (b >= 0 ? 1 : -1) * 12,
|
|
1713
1715
|
y: j,
|
|
1714
|
-
textAnchor:
|
|
1716
|
+
textAnchor: N,
|
|
1715
1717
|
fill: S.labelColor,
|
|
1716
1718
|
fontSize: S.fontSize + 2,
|
|
1717
1719
|
fontFamily: S.fontFamily,
|
|
@@ -1724,7 +1726,7 @@ const Nr = (t, e) => {
|
|
|
1724
1726
|
x: C + (b >= 0 ? 1 : -1) * 12,
|
|
1725
1727
|
y: j,
|
|
1726
1728
|
dy: 18,
|
|
1727
|
-
textAnchor:
|
|
1729
|
+
textAnchor: N,
|
|
1728
1730
|
fill: S.labelColorMuted,
|
|
1729
1731
|
fontSize: S.fontSize,
|
|
1730
1732
|
fontFamily: S.fontFamily,
|
|
@@ -1732,19 +1734,19 @@ const Nr = (t, e) => {
|
|
|
1732
1734
|
}
|
|
1733
1735
|
)
|
|
1734
1736
|
] });
|
|
1735
|
-
},
|
|
1737
|
+
}, Or = (t) => {
|
|
1736
1738
|
const {
|
|
1737
1739
|
data: e,
|
|
1738
1740
|
xKey: r,
|
|
1739
1741
|
yKeys: s,
|
|
1740
1742
|
tooltipKey: o,
|
|
1741
|
-
innerRadius: i =
|
|
1742
|
-
outerRadius: c =
|
|
1743
|
+
innerRadius: i = Tr,
|
|
1744
|
+
outerRadius: c = Sr,
|
|
1743
1745
|
activeShape: n = !0,
|
|
1744
1746
|
defaultIndex: _,
|
|
1745
1747
|
showLegend: l = !0
|
|
1746
1748
|
} = t, d = s[0];
|
|
1747
|
-
return /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(
|
|
1749
|
+
return /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(fe, { children: [
|
|
1748
1750
|
/* @__PURE__ */ a.jsx(
|
|
1749
1751
|
W,
|
|
1750
1752
|
{
|
|
@@ -1755,7 +1757,7 @@ const Nr = (t, e) => {
|
|
|
1755
1757
|
),
|
|
1756
1758
|
l && /* @__PURE__ */ a.jsx(J, {}),
|
|
1757
1759
|
/* @__PURE__ */ a.jsx(
|
|
1758
|
-
|
|
1760
|
+
xe,
|
|
1759
1761
|
{
|
|
1760
1762
|
data: e,
|
|
1761
1763
|
dataKey: d,
|
|
@@ -1764,9 +1766,9 @@ const Nr = (t, e) => {
|
|
|
1764
1766
|
cy: "50%",
|
|
1765
1767
|
innerRadius: i,
|
|
1766
1768
|
outerRadius: c,
|
|
1767
|
-
activeShape: n ?
|
|
1769
|
+
activeShape: n ? Ar(r) : void 0,
|
|
1768
1770
|
children: e.map((u, h) => /* @__PURE__ */ a.jsx(
|
|
1769
|
-
|
|
1771
|
+
ye,
|
|
1770
1772
|
{
|
|
1771
1773
|
fill: R[h % R.length]
|
|
1772
1774
|
},
|
|
@@ -1776,13 +1778,13 @@ const Nr = (t, e) => {
|
|
|
1776
1778
|
)
|
|
1777
1779
|
] }) });
|
|
1778
1780
|
};
|
|
1779
|
-
function
|
|
1781
|
+
function $r(t, e, r = we) {
|
|
1780
1782
|
return t <= 0 ? 0 : e <= 0 ? t : Math.max(t, e * r);
|
|
1781
1783
|
}
|
|
1782
|
-
function
|
|
1784
|
+
function Dr(t, e = Mr, r) {
|
|
1783
1785
|
return r !== void 0 ? r : t <= 0 ? nt : Math.max(nt, t * e);
|
|
1784
1786
|
}
|
|
1785
|
-
function
|
|
1787
|
+
function Rr(t, e, r) {
|
|
1786
1788
|
if (r !== void 0)
|
|
1787
1789
|
return r;
|
|
1788
1790
|
const s = t.reduce((o, i) => {
|
|
@@ -1790,11 +1792,11 @@ function Dr(t, e, r) {
|
|
|
1790
1792
|
return Math.max(o, c.length);
|
|
1791
1793
|
}, 0);
|
|
1792
1794
|
return Math.max(
|
|
1793
|
-
|
|
1794
|
-
s *
|
|
1795
|
+
Gr,
|
|
1796
|
+
s * Hr
|
|
1795
1797
|
);
|
|
1796
1798
|
}
|
|
1797
|
-
const
|
|
1799
|
+
const Lr = (t) => {
|
|
1798
1800
|
const {
|
|
1799
1801
|
data: e,
|
|
1800
1802
|
yKeys: r,
|
|
@@ -1806,11 +1808,11 @@ const Rr = (t) => {
|
|
|
1806
1808
|
showLegend: _ = !0,
|
|
1807
1809
|
yKeyLabels: l,
|
|
1808
1810
|
yAxisWidth: d
|
|
1809
|
-
} = t, u =
|
|
1811
|
+
} = t, u = Dr(
|
|
1810
1812
|
e.length,
|
|
1811
1813
|
i,
|
|
1812
1814
|
c
|
|
1813
|
-
), h =
|
|
1815
|
+
), h = Rr(e, s, d);
|
|
1814
1816
|
return /* @__PURE__ */ a.jsxs(
|
|
1815
1817
|
at,
|
|
1816
1818
|
{
|
|
@@ -1836,16 +1838,16 @@ const Rr = (t) => {
|
|
|
1836
1838
|
]
|
|
1837
1839
|
}
|
|
1838
1840
|
);
|
|
1839
|
-
},
|
|
1841
|
+
}, Ir = (t) => {
|
|
1840
1842
|
const { data: e, xKey: r, yKeys: s, tooltipKey: o, width: i } = t;
|
|
1841
|
-
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart:
|
|
1843
|
+
return /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: yn, children: [
|
|
1842
1844
|
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1843
1845
|
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1844
1846
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
1845
1847
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1846
1848
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1847
1849
|
s.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1848
|
-
|
|
1850
|
+
he,
|
|
1849
1851
|
{
|
|
1850
1852
|
type: "monotone",
|
|
1851
1853
|
dataKey: c,
|
|
@@ -1857,10 +1859,10 @@ const Rr = (t) => {
|
|
|
1857
1859
|
))
|
|
1858
1860
|
] });
|
|
1859
1861
|
};
|
|
1860
|
-
var
|
|
1861
|
-
const
|
|
1862
|
+
var qr = { NODE_ENV: "production" };
|
|
1863
|
+
const Kr = (t) => {
|
|
1862
1864
|
const { data: e, xKey: r, series: s = [], tooltipKey: o, width: i } = t;
|
|
1863
|
-
return !s.length &&
|
|
1865
|
+
return !s.length && qr.NODE_ENV, /* @__PURE__ */ a.jsxs(at, { width: i, data: e, Chart: Rt, children: [
|
|
1864
1866
|
/* @__PURE__ */ a.jsx(rt, { strokeDasharray: "3 3" }),
|
|
1865
1867
|
/* @__PURE__ */ a.jsx(ot, { dataKey: r }),
|
|
1866
1868
|
/* @__PURE__ */ a.jsx(Y, {}),
|
|
@@ -1877,7 +1879,7 @@ const qr = (t) => {
|
|
|
1877
1879
|
c.key
|
|
1878
1880
|
))
|
|
1879
1881
|
] });
|
|
1880
|
-
},
|
|
1882
|
+
}, Br = (t) => {
|
|
1881
1883
|
const { data: e, xKey: r, yKeys: s, tooltipKey: o } = t, i = ({
|
|
1882
1884
|
cx: c,
|
|
1883
1885
|
cy: n,
|
|
@@ -1900,11 +1902,11 @@ const qr = (t) => {
|
|
|
1900
1902
|
}
|
|
1901
1903
|
);
|
|
1902
1904
|
};
|
|
1903
|
-
return /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(
|
|
1905
|
+
return /* @__PURE__ */ a.jsx(Dt, { width: "100%", height: nt, children: /* @__PURE__ */ a.jsxs(fe, { children: [
|
|
1904
1906
|
/* @__PURE__ */ a.jsx(W, { tooltipKey: o }),
|
|
1905
1907
|
/* @__PURE__ */ a.jsx(J, {}),
|
|
1906
1908
|
/* @__PURE__ */ a.jsx(
|
|
1907
|
-
|
|
1909
|
+
xe,
|
|
1908
1910
|
{
|
|
1909
1911
|
data: e,
|
|
1910
1912
|
dataKey: s[0],
|
|
@@ -1912,7 +1914,7 @@ const qr = (t) => {
|
|
|
1912
1914
|
label: i,
|
|
1913
1915
|
outerRadius: 120,
|
|
1914
1916
|
children: e.map((c, n) => /* @__PURE__ */ a.jsx(
|
|
1915
|
-
|
|
1917
|
+
ye,
|
|
1916
1918
|
{
|
|
1917
1919
|
fill: R[n % R.length]
|
|
1918
1920
|
},
|
|
@@ -1921,21 +1923,21 @@ const qr = (t) => {
|
|
|
1921
1923
|
}
|
|
1922
1924
|
)
|
|
1923
1925
|
] }) });
|
|
1924
|
-
}, nt = 400, we = 56,
|
|
1926
|
+
}, nt = 400, we = 56, Mr = 28, Gr = 100, Hr = 8, Vr = /* @__PURE__ */ new Set([
|
|
1925
1927
|
"bar",
|
|
1926
1928
|
"line",
|
|
1927
1929
|
"area",
|
|
1928
1930
|
"mixBar",
|
|
1929
1931
|
"composed"
|
|
1930
|
-
]),
|
|
1931
|
-
area:
|
|
1932
|
+
]), Ur = {
|
|
1933
|
+
area: Nr,
|
|
1932
1934
|
bar: wr,
|
|
1933
|
-
composed:
|
|
1934
|
-
donut:
|
|
1935
|
-
horizontalBar:
|
|
1936
|
-
line:
|
|
1937
|
-
mixBar:
|
|
1938
|
-
pie:
|
|
1935
|
+
composed: kr,
|
|
1936
|
+
donut: Or,
|
|
1937
|
+
horizontalBar: Lr,
|
|
1938
|
+
line: Ir,
|
|
1939
|
+
mixBar: Kr,
|
|
1940
|
+
pie: Br
|
|
1939
1941
|
}, R = [
|
|
1940
1942
|
"var(--color-primitive-palette-1-50)",
|
|
1941
1943
|
"var(--color-primitive-palette-2-50)",
|
|
@@ -1962,10 +1964,10 @@ const qr = (t) => {
|
|
|
1962
1964
|
tooltipBg: "#fff",
|
|
1963
1965
|
tooltipColor: "#000",
|
|
1964
1966
|
tooltipBorderRadius: "4px"
|
|
1965
|
-
},
|
|
1966
|
-
chartScrollViewport:
|
|
1967
|
-
chartScrollViewport_track:
|
|
1968
|
-
},
|
|
1967
|
+
}, zr = "_chartScrollViewport_sm5hx_1", Xr = "_chartScrollViewport_track_sm5hx_29", ee = {
|
|
1968
|
+
chartScrollViewport: zr,
|
|
1969
|
+
chartScrollViewport_track: Xr
|
|
1970
|
+
}, Jr = "Scrollable chart area", Wr = ({
|
|
1969
1971
|
dataLength: t,
|
|
1970
1972
|
minCategoryWidth: e,
|
|
1971
1973
|
children: r
|
|
@@ -1982,7 +1984,7 @@ const qr = (t) => {
|
|
|
1982
1984
|
const h = new ResizeObserver(u);
|
|
1983
1985
|
return h.observe(d), () => h.disconnect();
|
|
1984
1986
|
}, []);
|
|
1985
|
-
const n =
|
|
1987
|
+
const n = $r(
|
|
1986
1988
|
o,
|
|
1987
1989
|
t,
|
|
1988
1990
|
c
|
|
@@ -2011,23 +2013,23 @@ const qr = (t) => {
|
|
|
2011
2013
|
"div",
|
|
2012
2014
|
{
|
|
2013
2015
|
ref: s,
|
|
2014
|
-
className:
|
|
2016
|
+
className: ee.chartScrollViewport,
|
|
2015
2017
|
role: _ ? "region" : void 0,
|
|
2016
2018
|
tabIndex: _ ? 0 : void 0,
|
|
2017
|
-
"aria-label": _ ?
|
|
2019
|
+
"aria-label": _ ? Jr : void 0,
|
|
2018
2020
|
onKeyDown: _ ? l : void 0,
|
|
2019
2021
|
children: /* @__PURE__ */ a.jsx(
|
|
2020
2022
|
"div",
|
|
2021
2023
|
{
|
|
2022
|
-
className:
|
|
2024
|
+
className: ee.chartScrollViewport_track,
|
|
2023
2025
|
style: { width: n, height: nt },
|
|
2024
2026
|
children: o > 0 ? r(n) : null
|
|
2025
2027
|
}
|
|
2026
2028
|
)
|
|
2027
2029
|
}
|
|
2028
2030
|
);
|
|
2029
|
-
},
|
|
2030
|
-
const { component: e, userFlow: r, hash: s, responseKey: o, dataSource: i, ...c } = t, n =
|
|
2031
|
+
}, Yr = (t) => {
|
|
2032
|
+
const { component: e, userFlow: r, hash: s, responseKey: o, dataSource: i, ...c } = t, n = Ur[c.type], { fetchDataSource: _ } = H(), [l, d] = L(!1), [u, h] = L([]), f = async () => {
|
|
2031
2033
|
var p, x;
|
|
2032
2034
|
try {
|
|
2033
2035
|
d(!0);
|
|
@@ -2038,8 +2040,8 @@ const qr = (t) => {
|
|
|
2038
2040
|
C,
|
|
2039
2041
|
r,
|
|
2040
2042
|
!1
|
|
2041
|
-
),
|
|
2042
|
-
h(
|
|
2043
|
+
), N = m ? (p = Ce(j == null ? void 0 : j.data, m, g)) == null ? void 0 : p.items : (x = j == null ? void 0 : j.data) == null ? void 0 : x.data;
|
|
2044
|
+
h(N), d(!1);
|
|
2043
2045
|
} catch (m) {
|
|
2044
2046
|
alert(JSON.stringify(m)), d(!1);
|
|
2045
2047
|
}
|
|
@@ -2052,15 +2054,15 @@ const qr = (t) => {
|
|
|
2052
2054
|
...c,
|
|
2053
2055
|
data: u
|
|
2054
2056
|
};
|
|
2055
|
-
return l ? /* @__PURE__ */ a.jsx(
|
|
2056
|
-
|
|
2057
|
+
return l ? /* @__PURE__ */ a.jsx(le, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Vr.has(c.type) ? /* @__PURE__ */ a.jsx(
|
|
2058
|
+
Wr,
|
|
2057
2059
|
{
|
|
2058
2060
|
dataLength: u.length,
|
|
2059
2061
|
minCategoryWidth: c.minCategoryWidth,
|
|
2060
2062
|
children: (p) => /* @__PURE__ */ a.jsx(n, { ...y, width: p })
|
|
2061
2063
|
}
|
|
2062
2064
|
) : /* @__PURE__ */ a.jsx(n, { ...y });
|
|
2063
|
-
},
|
|
2065
|
+
}, Qr = (t) => {
|
|
2064
2066
|
const {
|
|
2065
2067
|
userFlow: e,
|
|
2066
2068
|
pageId: r,
|
|
@@ -2088,14 +2090,14 @@ const qr = (t) => {
|
|
|
2088
2090
|
switch (q(e, C), o) {
|
|
2089
2091
|
case "GO_TO_NEXT_UI":
|
|
2090
2092
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
2091
|
-
const
|
|
2093
|
+
const N = await u(
|
|
2092
2094
|
e,
|
|
2093
2095
|
r,
|
|
2094
2096
|
C,
|
|
2095
2097
|
s,
|
|
2096
2098
|
o === "GO_TO_NEXT_UI"
|
|
2097
2099
|
);
|
|
2098
|
-
|
|
2100
|
+
N != null && N.data && K(e, N == null ? void 0 : N.data);
|
|
2099
2101
|
break;
|
|
2100
2102
|
}
|
|
2101
2103
|
default:
|
|
@@ -2106,7 +2108,7 @@ const qr = (t) => {
|
|
|
2106
2108
|
}
|
|
2107
2109
|
}, [e, r, s, o, h]), x = (d == null ? void 0 : d.disabled) ?? y;
|
|
2108
2110
|
return /* @__PURE__ */ a.jsx(
|
|
2109
|
-
|
|
2111
|
+
Ve,
|
|
2110
2112
|
{
|
|
2111
2113
|
...d,
|
|
2112
2114
|
labelRight: b,
|
|
@@ -2117,14 +2119,14 @@ const qr = (t) => {
|
|
|
2117
2119
|
}
|
|
2118
2120
|
}
|
|
2119
2121
|
);
|
|
2120
|
-
},
|
|
2121
|
-
codeEditor:
|
|
2122
|
-
codeEditor_label:
|
|
2122
|
+
}, Zr = "_codeEditor_1wi2p_1", Fr = "_codeEditor_label_1wi2p_4", Pr = "_codeEditor_wrapper_1wi2p_13", ts = "_input_1wi2p_17", es = "_preview_1wi2p_18", ns = "_preview_inner_1wi2p_33", tt = {
|
|
2123
|
+
codeEditor: Zr,
|
|
2124
|
+
codeEditor_label: Fr,
|
|
2123
2125
|
codeEditor_wrapper: Pr,
|
|
2124
|
-
input:
|
|
2125
|
-
preview:
|
|
2126
|
-
preview_inner:
|
|
2127
|
-
},
|
|
2126
|
+
input: ts,
|
|
2127
|
+
preview: es,
|
|
2128
|
+
preview_inner: ns
|
|
2129
|
+
}, rs = (t) => {
|
|
2128
2130
|
const {
|
|
2129
2131
|
userFlow: e,
|
|
2130
2132
|
responseKey: r,
|
|
@@ -2142,9 +2144,9 @@ const qr = (t) => {
|
|
|
2142
2144
|
_
|
|
2143
2145
|
), p = l ?? b, x = {
|
|
2144
2146
|
json: Vt(),
|
|
2145
|
-
markdown:
|
|
2146
|
-
sql:
|
|
2147
|
-
yaml:
|
|
2147
|
+
markdown: gn(),
|
|
2148
|
+
sql: pn(),
|
|
2149
|
+
yaml: bn()
|
|
2148
2150
|
}, m = D(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (C) => {
|
|
2149
2151
|
f(C);
|
|
2150
2152
|
const j = {
|
|
@@ -2156,7 +2158,7 @@ const qr = (t) => {
|
|
|
2156
2158
|
m && m !== "" && /* @__PURE__ */ a.jsx("label", { className: tt.codeEditor_label, children: m }),
|
|
2157
2159
|
/* @__PURE__ */ a.jsxs("div", { className: tt.codeEditor_wrapper, children: [
|
|
2158
2160
|
/* @__PURE__ */ a.jsx(
|
|
2159
|
-
|
|
2161
|
+
mn,
|
|
2160
2162
|
{
|
|
2161
2163
|
className: tt.input,
|
|
2162
2164
|
value: h,
|
|
@@ -2168,14 +2170,14 @@ const qr = (t) => {
|
|
|
2168
2170
|
editable: !p
|
|
2169
2171
|
}
|
|
2170
2172
|
),
|
|
2171
|
-
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ a.jsx(
|
|
2173
|
+
o === "markdown" && d && /* @__PURE__ */ a.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ a.jsx(de, { className: tt.preview_inner, children: h }) })
|
|
2172
2174
|
] })
|
|
2173
2175
|
] });
|
|
2174
|
-
},
|
|
2175
|
-
slotStack:
|
|
2176
|
+
}, ss = "_slotStack_6n2wy_5", as = {
|
|
2177
|
+
slotStack: ss
|
|
2176
2178
|
};
|
|
2177
|
-
var
|
|
2178
|
-
const
|
|
2179
|
+
var os = { NODE_ENV: "production" };
|
|
2180
|
+
const cs = /* @__PURE__ */ new Set([
|
|
2179
2181
|
"accordion",
|
|
2180
2182
|
"button",
|
|
2181
2183
|
"cardAccordion",
|
|
@@ -2194,11 +2196,11 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2194
2196
|
"textarea"
|
|
2195
2197
|
]), Ot = (t, e) => {
|
|
2196
2198
|
if (t != null && t.length)
|
|
2197
|
-
return /* @__PURE__ */ a.jsx("div", { className:
|
|
2199
|
+
return /* @__PURE__ */ a.jsx("div", { className: as.slotStack, children: t.map((r, s) => {
|
|
2198
2200
|
var o;
|
|
2199
2201
|
return /* @__PURE__ */ a.jsx(A, { children: r }, ((o = e == null ? void 0 : e[s]) == null ? void 0 : o.hash) ?? s);
|
|
2200
2202
|
}) });
|
|
2201
|
-
},
|
|
2203
|
+
}, is = ({
|
|
2202
2204
|
userFlow: t,
|
|
2203
2205
|
pageId: e,
|
|
2204
2206
|
component: r,
|
|
@@ -2220,7 +2222,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2220
2222
|
c != null && c.length ? c : null
|
|
2221
2223
|
);
|
|
2222
2224
|
return /* @__PURE__ */ a.jsx(
|
|
2223
|
-
|
|
2225
|
+
_e,
|
|
2224
2226
|
{
|
|
2225
2227
|
...l,
|
|
2226
2228
|
icon: n,
|
|
@@ -2229,7 +2231,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2229
2231
|
children: Ot(u, i)
|
|
2230
2232
|
}
|
|
2231
2233
|
);
|
|
2232
|
-
},
|
|
2234
|
+
}, ls = ({
|
|
2233
2235
|
userFlow: t,
|
|
2234
2236
|
pageId: e,
|
|
2235
2237
|
responseKey: r,
|
|
@@ -2255,20 +2257,20 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2255
2257
|
t,
|
|
2256
2258
|
e,
|
|
2257
2259
|
n != null && n.length ? n : null
|
|
2258
|
-
), j = xt(t, e), { disabled:
|
|
2260
|
+
), j = xt(t, e), { disabled: N } = B(
|
|
2259
2261
|
t,
|
|
2260
2262
|
c
|
|
2261
|
-
),
|
|
2263
|
+
), w = s ? () => void j({
|
|
2262
2264
|
responseKey: r,
|
|
2263
2265
|
actionType: s,
|
|
2264
2266
|
dataSource: o,
|
|
2265
2267
|
redirectUrl: i,
|
|
2266
2268
|
dependencies: c
|
|
2267
|
-
}) : void 0, k = h ??
|
|
2268
|
-
|
|
2269
|
-
const O =
|
|
2269
|
+
}) : void 0, k = h ?? N;
|
|
2270
|
+
w && (n != null && n.some(($) => cs.has($.component))) && os.NODE_ENV;
|
|
2271
|
+
const O = w ? { onClick: w, disabled: k } : {};
|
|
2270
2272
|
return /* @__PURE__ */ a.jsx(
|
|
2271
|
-
|
|
2273
|
+
_e,
|
|
2272
2274
|
{
|
|
2273
2275
|
version: "v2",
|
|
2274
2276
|
status: f,
|
|
@@ -2285,13 +2287,13 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2285
2287
|
children: Ot(C, n)
|
|
2286
2288
|
}
|
|
2287
2289
|
);
|
|
2288
|
-
},
|
|
2289
|
-
dividerNotFront:
|
|
2290
|
-
},
|
|
2291
|
-
drawer:
|
|
2292
|
-
drawerBody:
|
|
2293
|
-
drawerFooter:
|
|
2294
|
-
},
|
|
2290
|
+
}, ds = (t) => t.version === "v2" ? /* @__PURE__ */ a.jsx(ls, { ...t }) : /* @__PURE__ */ a.jsx(is, { ...t }), _s = "_dividerNotFront_tze3j_1", us = {
|
|
2291
|
+
dividerNotFront: _s
|
|
2292
|
+
}, hs = (t) => /* @__PURE__ */ a.jsx(Ue, { ...t, className: us.dividerNotFront }), fs = "_drawer_13pxo_1", xs = "_drawerBody_13pxo_5", ys = "_drawerFooter_13pxo_11", kt = {
|
|
2293
|
+
drawer: fs,
|
|
2294
|
+
drawerBody: xs,
|
|
2295
|
+
drawerFooter: ys
|
|
2296
|
+
}, ms = ({
|
|
2295
2297
|
userFlow: t,
|
|
2296
2298
|
pageId: e,
|
|
2297
2299
|
responseKey: r,
|
|
@@ -2312,9 +2314,9 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2312
2314
|
children: null
|
|
2313
2315
|
}, u = I(() => {
|
|
2314
2316
|
qt(t), _t(t, !1);
|
|
2315
|
-
}, [t]), h = Array.isArray(s) ? E(t, e, s) : s ? /* @__PURE__ */ a.jsx(
|
|
2317
|
+
}, [t]), h = Array.isArray(s) ? E(t, e, s) : s ? /* @__PURE__ */ a.jsx(ce, { type: "h2", children: s }) : void 0, f = E(t, e, o), y = i ? E(t, e, i) : void 0;
|
|
2316
2318
|
return /* @__PURE__ */ a.jsx(
|
|
2317
|
-
|
|
2319
|
+
ze,
|
|
2318
2320
|
{
|
|
2319
2321
|
...d,
|
|
2320
2322
|
className: kt.drawer,
|
|
@@ -2326,7 +2328,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2326
2328
|
footer: y ? /* @__PURE__ */ a.jsx("div", { className: kt.drawerFooter, children: y.map((p, x) => /* @__PURE__ */ a.jsx(A, { children: p }, `drawer-footer-${x}`)) }) : void 0
|
|
2327
2329
|
}
|
|
2328
2330
|
);
|
|
2329
|
-
},
|
|
2331
|
+
}, gs = (t) => {
|
|
2330
2332
|
const {
|
|
2331
2333
|
userFlow: e,
|
|
2332
2334
|
pageId: r,
|
|
@@ -2355,7 +2357,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2355
2357
|
[n, h]
|
|
2356
2358
|
);
|
|
2357
2359
|
return /* @__PURE__ */ a.jsx(
|
|
2358
|
-
|
|
2360
|
+
Xe,
|
|
2359
2361
|
{
|
|
2360
2362
|
disabled: _,
|
|
2361
2363
|
variant: l,
|
|
@@ -2381,10 +2383,10 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2381
2383
|
] })
|
|
2382
2384
|
}
|
|
2383
2385
|
);
|
|
2384
|
-
},
|
|
2385
|
-
header:
|
|
2386
|
-
header_content:
|
|
2387
|
-
},
|
|
2386
|
+
}, ps = "_header_g1eri_1", bs = "_header_content_g1eri_5", ne = {
|
|
2387
|
+
header: ps,
|
|
2388
|
+
header_content: bs
|
|
2389
|
+
}, js = ({ components: t = [] }) => /* @__PURE__ */ a.jsx("section", { className: et(ne.header, "avocado-dark-theme"), children: /* @__PURE__ */ a.jsx("div", { className: ne.header_content, children: t.map((e, r) => /* @__PURE__ */ a.jsx(A, { children: e }, r)) }) }), Cs = (t) => {
|
|
2388
2390
|
const {
|
|
2389
2391
|
userFlow: e,
|
|
2390
2392
|
pageId: r,
|
|
@@ -2438,7 +2440,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2438
2440
|
}
|
|
2439
2441
|
}, [o, h, r, c, s, n, e]), p = y.disabled ?? f;
|
|
2440
2442
|
return /* @__PURE__ */ a.jsx(
|
|
2441
|
-
|
|
2443
|
+
Je,
|
|
2442
2444
|
{
|
|
2443
2445
|
...y,
|
|
2444
2446
|
disabled: p,
|
|
@@ -2446,7 +2448,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2446
2448
|
children: i
|
|
2447
2449
|
}
|
|
2448
2450
|
);
|
|
2449
|
-
},
|
|
2451
|
+
}, Ns = (t) => {
|
|
2450
2452
|
const {
|
|
2451
2453
|
userFlow: e,
|
|
2452
2454
|
pageId: r,
|
|
@@ -2477,7 +2479,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2477
2479
|
[c, h]
|
|
2478
2480
|
);
|
|
2479
2481
|
return /* @__PURE__ */ a.jsx(
|
|
2480
|
-
|
|
2482
|
+
We,
|
|
2481
2483
|
{
|
|
2482
2484
|
items: f,
|
|
2483
2485
|
closeOnClick: n,
|
|
@@ -2487,9 +2489,9 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2487
2489
|
variant: u
|
|
2488
2490
|
}
|
|
2489
2491
|
);
|
|
2490
|
-
}, ws = "_modalContent_p06ci_1",
|
|
2492
|
+
}, ws = "_modalContent_p06ci_1", vs = {
|
|
2491
2493
|
modalContent: ws
|
|
2492
|
-
},
|
|
2494
|
+
}, Es = ({
|
|
2493
2495
|
userFlow: t,
|
|
2494
2496
|
pageId: e,
|
|
2495
2497
|
responseKey: r,
|
|
@@ -2511,18 +2513,18 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2511
2513
|
qt(t), Kt(t, !1);
|
|
2512
2514
|
}, [t, r]), y = Array.isArray(s) ? E(t, e, s) : s, b = E(t, e, o), p = E(t, e, i);
|
|
2513
2515
|
return /* @__PURE__ */ a.jsx(
|
|
2514
|
-
|
|
2516
|
+
Ye,
|
|
2515
2517
|
{
|
|
2516
2518
|
...u,
|
|
2517
2519
|
headerStatusColor: h,
|
|
2518
2520
|
header: typeof y == "string" ? y : /* @__PURE__ */ a.jsx(a.Fragment, { children: y.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-header-${m}`)) }),
|
|
2519
|
-
children: /* @__PURE__ */ a.jsx("section", { className:
|
|
2521
|
+
children: /* @__PURE__ */ a.jsx("section", { className: vs.modalContent, children: b.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-body-${m}`)) }),
|
|
2520
2522
|
actions: /* @__PURE__ */ a.jsx(a.Fragment, { children: p.map((x, m) => /* @__PURE__ */ a.jsx(A, { children: x }, `modal-footer-${m}`)) }),
|
|
2521
2523
|
open: d,
|
|
2522
2524
|
onClose: f
|
|
2523
2525
|
}
|
|
2524
2526
|
);
|
|
2525
|
-
},
|
|
2527
|
+
}, ks = ({ userFlow: t, pageId: e }) => {
|
|
2526
2528
|
var i, c;
|
|
2527
2529
|
const r = wn(t);
|
|
2528
2530
|
if (!r)
|
|
@@ -2540,13 +2542,13 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2540
2542
|
const l = `overlay-${_}-${r == null ? void 0 : r.hash}`;
|
|
2541
2543
|
return /* @__PURE__ */ a.jsx(A, { children: n }, l);
|
|
2542
2544
|
}) });
|
|
2543
|
-
},
|
|
2545
|
+
}, Ts = [
|
|
2544
2546
|
"success",
|
|
2545
2547
|
"warning",
|
|
2546
2548
|
"error",
|
|
2547
2549
|
"info",
|
|
2548
2550
|
"neutral"
|
|
2549
|
-
],
|
|
2551
|
+
], ve = {
|
|
2550
2552
|
success: {
|
|
2551
2553
|
color: "success-opacity",
|
|
2552
2554
|
textColor: "success-60",
|
|
@@ -2598,7 +2600,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2598
2600
|
textColor: "neutral-50",
|
|
2599
2601
|
iconColor: "neutral-50"
|
|
2600
2602
|
}
|
|
2601
|
-
},
|
|
2603
|
+
}, Ss = "outlined", re = (t) => typeof t == "string" && Ts.includes(t), As = (t, e = {}) => t != null && t.length ? t.length === 3 && re(t[1]) && t[2] === Ss ? [{ label: String(t[0]), variant: t[1], outlined: !0 }] : t.length === 2 && re(t[1]) ? [
|
|
2602
2604
|
{
|
|
2603
2605
|
label: String(t[0]),
|
|
2604
2606
|
variant: t[1],
|
|
@@ -2608,8 +2610,8 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2608
2610
|
label: String(r),
|
|
2609
2611
|
variant: e.variant ?? "neutral",
|
|
2610
2612
|
...e.outlined ? { outlined: !0 } : {}
|
|
2611
|
-
})) : [],
|
|
2612
|
-
const { content: e, variant: r = "neutral", ...s } = t, o =
|
|
2613
|
+
})) : [], Os = (t) => {
|
|
2614
|
+
const { content: e, variant: r = "neutral", ...s } = t, o = ve[r], i = {
|
|
2613
2615
|
...s,
|
|
2614
2616
|
children: e,
|
|
2615
2617
|
color: (s == null ? void 0 : s.color) ?? o.color,
|
|
@@ -2617,10 +2619,10 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2617
2619
|
iconColor: (s == null ? void 0 : s.iconColor) ?? o.iconColor
|
|
2618
2620
|
};
|
|
2619
2621
|
return /* @__PURE__ */ a.jsx(Tt, { ...i });
|
|
2620
|
-
}, Os = (t) => {
|
|
2621
|
-
const { content: e } = t;
|
|
2622
|
-
return /* @__PURE__ */ a.jsx(le, { children: e });
|
|
2623
2622
|
}, $s = (t) => {
|
|
2623
|
+
const { content: e } = t;
|
|
2624
|
+
return /* @__PURE__ */ a.jsx(de, { children: e });
|
|
2625
|
+
}, Ds = (t) => {
|
|
2624
2626
|
const {
|
|
2625
2627
|
userFlow: e,
|
|
2626
2628
|
pageId: r,
|
|
@@ -2654,7 +2656,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2654
2656
|
}
|
|
2655
2657
|
}, [o, i, c, s, l]);
|
|
2656
2658
|
return /* @__PURE__ */ a.jsx(
|
|
2657
|
-
|
|
2659
|
+
Qe,
|
|
2658
2660
|
{
|
|
2659
2661
|
...u,
|
|
2660
2662
|
loading: u.loading || f,
|
|
@@ -2662,8 +2664,8 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2662
2664
|
onClick: () => !h && !f && (n ?? p)()
|
|
2663
2665
|
}
|
|
2664
2666
|
);
|
|
2665
|
-
},
|
|
2666
|
-
row:
|
|
2667
|
+
}, Rs = "_row_1bqj4_1", Ls = "_row_column_1bqj4_65", z = {
|
|
2668
|
+
row: Rs,
|
|
2667
2669
|
"row__gap-none": "_row__gap-none_1bqj4_5",
|
|
2668
2670
|
"row__gap-xxs": "_row__gap-xxs_1bqj4_8",
|
|
2669
2671
|
"row__gap-xs": "_row__gap-xs_1bqj4_11",
|
|
@@ -2684,7 +2686,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2684
2686
|
"row__align-center": "_row__align-center_1bqj4_56",
|
|
2685
2687
|
"row__align-stretch": "_row__align-stretch_1bqj4_59",
|
|
2686
2688
|
"row__align-baseline": "_row__align-baseline_1bqj4_62",
|
|
2687
|
-
row_column:
|
|
2689
|
+
row_column: Ls,
|
|
2688
2690
|
"row_column__gap-none": "_row_column__gap-none_1bqj4_72",
|
|
2689
2691
|
"row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
|
|
2690
2692
|
"row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
|
|
@@ -2705,7 +2707,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2705
2707
|
"row_column__align-center": "_row_column__align-center_1bqj4_123",
|
|
2706
2708
|
"row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
|
|
2707
2709
|
"row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
|
|
2708
|
-
},
|
|
2710
|
+
}, Is = (t) => {
|
|
2709
2711
|
const {
|
|
2710
2712
|
userFlow: e,
|
|
2711
2713
|
pageId: r,
|
|
@@ -2764,7 +2766,7 @@ const os = /* @__PURE__ */ new Set([
|
|
|
2764
2766
|
}
|
|
2765
2767
|
);
|
|
2766
2768
|
};
|
|
2767
|
-
function
|
|
2769
|
+
function Ee({
|
|
2768
2770
|
userFlow: t,
|
|
2769
2771
|
pageId: e,
|
|
2770
2772
|
responseKey: r,
|
|
@@ -2783,7 +2785,7 @@ function ve({
|
|
|
2783
2785
|
const u = {
|
|
2784
2786
|
...(f = v.getState()[t]) == null ? void 0 : f.entries
|
|
2785
2787
|
};
|
|
2786
|
-
if (d ? (u[r] = d, q(t, u)) : (delete u[r],
|
|
2788
|
+
if (d ? (u[r] = d, q(t, u)) : (delete u[r], vn(t, r)), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
|
|
2787
2789
|
try {
|
|
2788
2790
|
const b = await o(
|
|
2789
2791
|
t,
|
|
@@ -2816,21 +2818,21 @@ function ve({
|
|
|
2816
2818
|
[i, c, _]
|
|
2817
2819
|
);
|
|
2818
2820
|
}
|
|
2819
|
-
const
|
|
2821
|
+
const qs = /\{([^}]+)\}/g, Ks = (t, e) => {
|
|
2820
2822
|
var r;
|
|
2821
|
-
return e.includes("{") ? e.replace(
|
|
2823
|
+
return e.includes("{") ? e.replace(qs, (s, o) => {
|
|
2822
2824
|
var c;
|
|
2823
2825
|
const i = (c = M.query(t, o.trim())) == null ? void 0 : c[0];
|
|
2824
2826
|
return i != null ? String(i) : "";
|
|
2825
2827
|
}) : (r = M.query(t, e)) == null ? void 0 : r[0];
|
|
2826
|
-
},
|
|
2828
|
+
}, Bs = (t, e, r, s) => {
|
|
2827
2829
|
const o = M.query(t, e);
|
|
2828
2830
|
return (o == null ? void 0 : o.map((i) => {
|
|
2829
2831
|
var _;
|
|
2830
|
-
const c =
|
|
2832
|
+
const c = Ks(i, r), n = s ? (_ = M.query(i, s)) == null ? void 0 : _[0] : i;
|
|
2831
2833
|
return { label: c, value: n };
|
|
2832
2834
|
})) ?? [];
|
|
2833
|
-
},
|
|
2835
|
+
}, Ms = (t, e, r, s = 10) => {
|
|
2834
2836
|
var n, _;
|
|
2835
2837
|
let o, i;
|
|
2836
2838
|
if (r) {
|
|
@@ -2846,9 +2848,9 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2846
2848
|
total: i,
|
|
2847
2849
|
hasMore: c
|
|
2848
2850
|
};
|
|
2849
|
-
},
|
|
2850
|
-
selectNotFront:
|
|
2851
|
-
},
|
|
2851
|
+
}, Gs = "_selectNotFront_ch3v5_1", ke = {
|
|
2852
|
+
selectNotFront: Gs
|
|
2853
|
+
}, Hs = ({
|
|
2852
2854
|
userFlow: t,
|
|
2853
2855
|
pageId: e,
|
|
2854
2856
|
responseKey: r,
|
|
@@ -2865,13 +2867,13 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2865
2867
|
t,
|
|
2866
2868
|
c
|
|
2867
2869
|
), b = (l == null ? void 0 : l.disabled) ?? y, p = D(() => s && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, s]), x = D(() => {
|
|
2868
|
-
const j = l != null && l.isMulti ? h : [h],
|
|
2869
|
-
return Array.isArray(j) && j.forEach((
|
|
2870
|
-
if (!
|
|
2871
|
-
const k = JSON.stringify(
|
|
2872
|
-
|
|
2873
|
-
}),
|
|
2874
|
-
}, [h]), m =
|
|
2870
|
+
const j = l != null && l.isMulti ? h : [h], N = {};
|
|
2871
|
+
return Array.isArray(j) && j.forEach((w) => {
|
|
2872
|
+
if (!w) return;
|
|
2873
|
+
const k = JSON.stringify(w.value), O = JSON.stringify(w.label);
|
|
2874
|
+
N[k] = w, O in N || (N[O] = w);
|
|
2875
|
+
}), N;
|
|
2876
|
+
}, [h]), m = Ee({
|
|
2875
2877
|
userFlow: t,
|
|
2876
2878
|
pageId: e,
|
|
2877
2879
|
responseKey: r,
|
|
@@ -2881,7 +2883,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2881
2883
|
debounceMs: n
|
|
2882
2884
|
}), g = (j) => {
|
|
2883
2885
|
f(j), m(j);
|
|
2884
|
-
}, C = async (j,
|
|
2886
|
+
}, C = async (j, N, { page: w }) => {
|
|
2885
2887
|
const {
|
|
2886
2888
|
jsonPathLabel: k,
|
|
2887
2889
|
jsonPathOptions: O,
|
|
@@ -2889,35 +2891,35 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2889
2891
|
jsonPathPagination: Q
|
|
2890
2892
|
} = o, V = Bt(
|
|
2891
2893
|
o,
|
|
2892
|
-
|
|
2894
|
+
w,
|
|
2893
2895
|
j
|
|
2894
2896
|
), T = await u(
|
|
2895
2897
|
V,
|
|
2896
2898
|
t,
|
|
2897
2899
|
!1
|
|
2898
|
-
), G = T == null ? void 0 : T.data, ct = G ?
|
|
2900
|
+
), G = T == null ? void 0 : T.data, ct = G ? Bs(
|
|
2899
2901
|
G,
|
|
2900
2902
|
O,
|
|
2901
2903
|
k,
|
|
2902
2904
|
$
|
|
2903
|
-
) : [], { hasMore: bt } =
|
|
2905
|
+
) : [], { hasMore: bt } = Ms(
|
|
2904
2906
|
G,
|
|
2905
|
-
|
|
2907
|
+
w,
|
|
2906
2908
|
Q
|
|
2907
2909
|
);
|
|
2908
2910
|
return {
|
|
2909
2911
|
options: ct,
|
|
2910
2912
|
hasMore: bt,
|
|
2911
2913
|
additional: {
|
|
2912
|
-
page:
|
|
2914
|
+
page: w + 1
|
|
2913
2915
|
}
|
|
2914
2916
|
};
|
|
2915
2917
|
};
|
|
2916
2918
|
return /* @__PURE__ */ a.jsx(
|
|
2917
|
-
|
|
2919
|
+
Ze,
|
|
2918
2920
|
{
|
|
2919
2921
|
...l,
|
|
2920
|
-
className:
|
|
2922
|
+
className: ke.selectNotFront,
|
|
2921
2923
|
label: p,
|
|
2922
2924
|
value: h,
|
|
2923
2925
|
disabled: b,
|
|
@@ -2926,13 +2928,13 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2926
2928
|
loadOptions: C,
|
|
2927
2929
|
additional: { page: 1 },
|
|
2928
2930
|
isOptionDisabled: (j) => {
|
|
2929
|
-
const
|
|
2930
|
-
return !!(x != null && x[
|
|
2931
|
+
const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
|
|
2932
|
+
return !!(x != null && x[N]) || !!(x != null && x[w]);
|
|
2931
2933
|
},
|
|
2932
2934
|
debounceTimeout: 350
|
|
2933
2935
|
}
|
|
2934
2936
|
);
|
|
2935
|
-
},
|
|
2937
|
+
}, Vs = ({
|
|
2936
2938
|
userFlow: t,
|
|
2937
2939
|
pageId: e,
|
|
2938
2940
|
responseKey: r,
|
|
@@ -2948,7 +2950,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2948
2950
|
}, { getNextUI: d } = H(), [u, h] = L(l.value || ""), { disabled: f } = B(
|
|
2949
2951
|
t,
|
|
2950
2952
|
c
|
|
2951
|
-
), y = (l == null ? void 0 : l.disabled) ?? f, b = D(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), p =
|
|
2953
|
+
), y = (l == null ? void 0 : l.disabled) ?? f, b = D(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), p = Ee({
|
|
2952
2954
|
userFlow: t,
|
|
2953
2955
|
pageId: e,
|
|
2954
2956
|
responseKey: r,
|
|
@@ -2960,33 +2962,33 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
2960
2962
|
h(m), p(m);
|
|
2961
2963
|
};
|
|
2962
2964
|
return /* @__PURE__ */ a.jsx(
|
|
2963
|
-
|
|
2965
|
+
Fe,
|
|
2964
2966
|
{
|
|
2965
2967
|
...l,
|
|
2966
|
-
className:
|
|
2968
|
+
className: ke.selectNotFront,
|
|
2967
2969
|
label: b,
|
|
2968
2970
|
value: u,
|
|
2969
2971
|
disabled: y,
|
|
2970
2972
|
onChange: (m) => !y && x(m)
|
|
2971
2973
|
}
|
|
2972
2974
|
);
|
|
2973
|
-
},
|
|
2975
|
+
}, Us = (t) => {
|
|
2974
2976
|
const { dataSource: e } = t;
|
|
2975
|
-
return e ? /* @__PURE__ */ a.jsx(
|
|
2976
|
-
},
|
|
2977
|
-
spacing:
|
|
2978
|
-
spacing__xxs:
|
|
2979
|
-
spacing__xs:
|
|
2980
|
-
spacing__sm:
|
|
2981
|
-
spacing__md:
|
|
2982
|
-
spacing__lg:
|
|
2983
|
-
spacing__xl:
|
|
2984
|
-
spacing__xxl:
|
|
2977
|
+
return e ? /* @__PURE__ */ a.jsx(Hs, { ...t }) : /* @__PURE__ */ a.jsx(Vs, { ...t });
|
|
2978
|
+
}, zs = "_spacing_19hqa_1", Xs = "_spacing__xxs_19hqa_1", Js = "_spacing__xs_19hqa_4", Ws = "_spacing__sm_19hqa_7", Ys = "_spacing__md_19hqa_10", Qs = "_spacing__lg_19hqa_13", Zs = "_spacing__xl_19hqa_16", Fs = "_spacing__xxl_19hqa_19", Ps = "_spacing__xxxl_19hqa_22", se = {
|
|
2979
|
+
spacing: zs,
|
|
2980
|
+
spacing__xxs: Xs,
|
|
2981
|
+
spacing__xs: Js,
|
|
2982
|
+
spacing__sm: Ws,
|
|
2983
|
+
spacing__md: Ys,
|
|
2984
|
+
spacing__lg: Qs,
|
|
2985
|
+
spacing__xl: Zs,
|
|
2986
|
+
spacing__xxl: Fs,
|
|
2985
2987
|
spacing__xxxl: Ps
|
|
2986
|
-
}, Fs = (t) => {
|
|
2987
|
-
const { size: e } = t, r = et(re.spacing, re[`spacing__${e}`]);
|
|
2988
|
-
return /* @__PURE__ */ a.jsx("div", { className: r });
|
|
2989
2988
|
}, ta = (t) => {
|
|
2989
|
+
const { size: e } = t, r = et(se.spacing, se[`spacing__${e}`]);
|
|
2990
|
+
return /* @__PURE__ */ a.jsx("div", { className: r });
|
|
2991
|
+
}, ea = (t) => {
|
|
2990
2992
|
const {
|
|
2991
2993
|
userFlow: e,
|
|
2992
2994
|
pageId: r,
|
|
@@ -3014,14 +3016,14 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3014
3016
|
switch (q(e, C), o) {
|
|
3015
3017
|
case "GO_TO_NEXT_UI":
|
|
3016
3018
|
case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
|
|
3017
|
-
const
|
|
3019
|
+
const N = await u(
|
|
3018
3020
|
e,
|
|
3019
3021
|
r,
|
|
3020
3022
|
C,
|
|
3021
3023
|
s,
|
|
3022
3024
|
o === "GO_TO_NEXT_UI"
|
|
3023
3025
|
);
|
|
3024
|
-
|
|
3026
|
+
N != null && N.data && K(e, N == null ? void 0 : N.data);
|
|
3025
3027
|
break;
|
|
3026
3028
|
}
|
|
3027
3029
|
default:
|
|
@@ -3041,26 +3043,26 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3041
3043
|
onChange: () => !b && x()
|
|
3042
3044
|
}
|
|
3043
3045
|
);
|
|
3044
|
-
},
|
|
3045
|
-
tableSkeleton:
|
|
3046
|
-
tableArrayPills:
|
|
3047
|
-
},
|
|
3046
|
+
}, na = "_tableSkeleton_3nr9n_1", ra = "_tableArrayPills_3nr9n_7", Te = {
|
|
3047
|
+
tableSkeleton: na,
|
|
3048
|
+
tableArrayPills: ra
|
|
3049
|
+
}, sa = (t, e) => {
|
|
3048
3050
|
if (t)
|
|
3049
3051
|
return $t[t];
|
|
3050
3052
|
if (e)
|
|
3051
3053
|
return $t.neutral;
|
|
3052
|
-
},
|
|
3054
|
+
}, aa = ({
|
|
3053
3055
|
values: t,
|
|
3054
3056
|
pillVariant: e,
|
|
3055
3057
|
pillOutlined: r
|
|
3056
3058
|
}) => {
|
|
3057
|
-
const o =
|
|
3059
|
+
const o = As(t ?? [], {
|
|
3058
3060
|
variant: e,
|
|
3059
3061
|
outlined: r
|
|
3060
|
-
}), i = o.slice(0, 4), c = o.length - 4, n =
|
|
3061
|
-
return /* @__PURE__ */ a.jsxs("div", { className:
|
|
3062
|
+
}), i = o.slice(0, 4), c = o.length - 4, n = sa(e, r);
|
|
3063
|
+
return /* @__PURE__ */ a.jsxs("div", { className: Te.tableArrayPills, children: [
|
|
3062
3064
|
i.map((_, l) => {
|
|
3063
|
-
const d = _.outlined ? $t[_.variant] :
|
|
3065
|
+
const d = _.outlined ? $t[_.variant] : ve[_.variant];
|
|
3064
3066
|
return /* @__PURE__ */ a.jsx(
|
|
3065
3067
|
Tt,
|
|
3066
3068
|
{
|
|
@@ -3087,7 +3089,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3087
3089
|
}
|
|
3088
3090
|
)
|
|
3089
3091
|
] });
|
|
3090
|
-
},
|
|
3092
|
+
}, oa = ({
|
|
3091
3093
|
userFlow: t,
|
|
3092
3094
|
pageId: e,
|
|
3093
3095
|
tableResponseKey: r,
|
|
@@ -3145,21 +3147,21 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3145
3147
|
t,
|
|
3146
3148
|
// Avoid to handle loading state until all the requests are done
|
|
3147
3149
|
!1
|
|
3148
|
-
),
|
|
3150
|
+
), N = {
|
|
3149
3151
|
...(p = v.getState()[t]) == null ? void 0 : p.entries,
|
|
3150
3152
|
[u]: {
|
|
3151
3153
|
status: j == null ? void 0 : j.status,
|
|
3152
3154
|
content: j == null ? void 0 : j.data
|
|
3153
3155
|
}
|
|
3154
3156
|
};
|
|
3155
|
-
q(t,
|
|
3156
|
-
const
|
|
3157
|
+
q(t, N);
|
|
3158
|
+
const w = await i(
|
|
3157
3159
|
t,
|
|
3158
3160
|
e,
|
|
3159
|
-
|
|
3161
|
+
N,
|
|
3160
3162
|
u
|
|
3161
3163
|
);
|
|
3162
|
-
|
|
3164
|
+
w != null && w.data && K(t, w == null ? void 0 : w.data);
|
|
3163
3165
|
break;
|
|
3164
3166
|
}
|
|
3165
3167
|
default:
|
|
@@ -3170,18 +3172,18 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3170
3172
|
alert(JSON.stringify(x));
|
|
3171
3173
|
}
|
|
3172
3174
|
}, [d, h, e, u, t]);
|
|
3173
|
-
return
|
|
3175
|
+
return De(l, {
|
|
3174
3176
|
onClick: f
|
|
3175
3177
|
});
|
|
3176
|
-
},
|
|
3177
|
-
|
|
3178
|
+
}, ca = () => /* @__PURE__ */ a.jsx("div", { className: Te.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ a.jsx(
|
|
3179
|
+
le,
|
|
3178
3180
|
{
|
|
3179
3181
|
maxWidth: "100%",
|
|
3180
3182
|
height: 42,
|
|
3181
3183
|
radius: 8
|
|
3182
3184
|
},
|
|
3183
3185
|
`tableSkeletonBase${e}`
|
|
3184
|
-
)) }),
|
|
3186
|
+
)) }), ia = (t, e) => !(e != null && e.length) || !t ? t : t.map((r) => e.some((o) => {
|
|
3185
3187
|
const i = o;
|
|
3186
3188
|
return Array.isArray(
|
|
3187
3189
|
r != null && r.accessor ? i[r.accessor] : void 0
|
|
@@ -3191,7 +3193,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3191
3193
|
renderCell: (o) => {
|
|
3192
3194
|
const i = r.accessor ? o[r.accessor] : void 0;
|
|
3193
3195
|
return Array.isArray(i) ? /* @__PURE__ */ a.jsx(
|
|
3194
|
-
|
|
3196
|
+
aa,
|
|
3195
3197
|
{
|
|
3196
3198
|
values: i,
|
|
3197
3199
|
pillVariant: r.pillVariant,
|
|
@@ -3199,7 +3201,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3199
3201
|
}
|
|
3200
3202
|
) : i ?? "";
|
|
3201
3203
|
}
|
|
3202
|
-
} : r),
|
|
3204
|
+
} : r), la = ({
|
|
3203
3205
|
userFlow: t,
|
|
3204
3206
|
pageId: e,
|
|
3205
3207
|
responseKey: r,
|
|
@@ -3217,7 +3219,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3217
3219
|
if (i != null && i.length)
|
|
3218
3220
|
return i.map((T, G) => ({
|
|
3219
3221
|
renderContent: (ct) => /* @__PURE__ */ a.jsx(
|
|
3220
|
-
|
|
3222
|
+
oa,
|
|
3221
3223
|
{
|
|
3222
3224
|
userFlow: t,
|
|
3223
3225
|
pageId: e,
|
|
@@ -3244,25 +3246,25 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3244
3246
|
it && T === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
|
|
3245
3247
|
try {
|
|
3246
3248
|
u(!0);
|
|
3247
|
-
const jt = it ? m.current.get(T) ?? null : null,
|
|
3249
|
+
const jt = it ? m.current.get(T) ?? null : null, Ae = Bt(
|
|
3248
3250
|
o,
|
|
3249
3251
|
T,
|
|
3250
3252
|
void 0,
|
|
3251
3253
|
jt
|
|
3252
3254
|
), Z = await l(
|
|
3253
|
-
|
|
3255
|
+
Ae,
|
|
3254
3256
|
t,
|
|
3255
3257
|
!1
|
|
3256
3258
|
);
|
|
3257
3259
|
if (b(
|
|
3258
|
-
|
|
3260
|
+
Ce(
|
|
3259
3261
|
Z == null ? void 0 : Z.data,
|
|
3260
3262
|
ct,
|
|
3261
3263
|
G,
|
|
3262
3264
|
bt
|
|
3263
3265
|
)
|
|
3264
3266
|
), it) {
|
|
3265
|
-
const Mt =
|
|
3267
|
+
const Mt = jr(
|
|
3266
3268
|
Z == null ? void 0 : Z.data,
|
|
3267
3269
|
it
|
|
3268
3270
|
);
|
|
@@ -3278,29 +3280,29 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3278
3280
|
U(() => {
|
|
3279
3281
|
p || C();
|
|
3280
3282
|
}, []);
|
|
3281
|
-
const
|
|
3282
|
-
if (!
|
|
3283
|
-
return
|
|
3283
|
+
const N = p ? c : y == null ? void 0 : y.items, w = p && !!n && ((c == null ? void 0 : c.length) ?? 0) > n, k = D(() => {
|
|
3284
|
+
if (!w || !c || !n)
|
|
3285
|
+
return N ?? [];
|
|
3284
3286
|
const T = (h - 1) * n;
|
|
3285
3287
|
return c.slice(T, T + n);
|
|
3286
3288
|
}, [
|
|
3287
|
-
|
|
3289
|
+
w,
|
|
3288
3290
|
c,
|
|
3289
3291
|
n,
|
|
3290
3292
|
h,
|
|
3291
|
-
|
|
3293
|
+
N
|
|
3292
3294
|
]), O = D(
|
|
3293
|
-
() =>
|
|
3294
|
-
[
|
|
3295
|
+
() => ia(_.columns, N),
|
|
3296
|
+
[N, _.columns]
|
|
3295
3297
|
), $ = {
|
|
3296
3298
|
..._,
|
|
3297
3299
|
data: k,
|
|
3298
3300
|
columns: O ?? [],
|
|
3299
3301
|
rightActions: g
|
|
3300
3302
|
};
|
|
3301
|
-
return p ? !
|
|
3303
|
+
return p ? !N || N.length === 0 ? /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3302
3304
|
/* @__PURE__ */ a.jsx(Gt, { ...$ }),
|
|
3303
|
-
|
|
3305
|
+
w && n && c && /* @__PURE__ */ a.jsx(
|
|
3304
3306
|
Ct,
|
|
3305
3307
|
{
|
|
3306
3308
|
classname: { global: "row__end" },
|
|
@@ -3310,7 +3312,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3310
3312
|
onChange: f
|
|
3311
3313
|
}
|
|
3312
3314
|
)
|
|
3313
|
-
] }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: d ? /* @__PURE__ */ a.jsx(
|
|
3315
|
+
] }) : /* @__PURE__ */ a.jsx(a.Fragment, { children: d ? /* @__PURE__ */ a.jsx(ca, {}) : y && ((V = y == null ? void 0 : y.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3314
3316
|
/* @__PURE__ */ a.jsx(Gt, { ...$ }),
|
|
3315
3317
|
!x && (y == null ? void 0 : y.pagination) && y.pagination.totalPages > 1 && /* @__PURE__ */ a.jsx(
|
|
3316
3318
|
Ct,
|
|
@@ -3333,12 +3335,12 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3333
3335
|
}
|
|
3334
3336
|
)
|
|
3335
3337
|
] }) : /* @__PURE__ */ a.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
3336
|
-
},
|
|
3337
|
-
tabsPanel:
|
|
3338
|
-
},
|
|
3338
|
+
}, da = "_tabsPanel_kvslb_1", _a = {
|
|
3339
|
+
tabsPanel: da
|
|
3340
|
+
}, ua = ({ userFlow: t, pageId: e, components: r }) => {
|
|
3339
3341
|
const s = E(t, e, r);
|
|
3340
|
-
return s != null && s.length ? /* @__PURE__ */ a.jsx("section", { className:
|
|
3341
|
-
},
|
|
3342
|
+
return s != null && s.length ? /* @__PURE__ */ a.jsx("section", { className: _a.tabsPanel, children: s.map((o, i) => /* @__PURE__ */ a.jsx(A, { children: o }, `tabs-panel-${i}`)) }) : null;
|
|
3343
|
+
}, ha = ({
|
|
3342
3344
|
userFlow: t,
|
|
3343
3345
|
pageId: e,
|
|
3344
3346
|
hash: r,
|
|
@@ -3351,7 +3353,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3351
3353
|
label: l.label,
|
|
3352
3354
|
disabled: l.disabled,
|
|
3353
3355
|
children: /* @__PURE__ */ a.jsx(
|
|
3354
|
-
|
|
3356
|
+
ua,
|
|
3355
3357
|
{
|
|
3356
3358
|
userFlow: t,
|
|
3357
3359
|
pageId: e,
|
|
@@ -3368,7 +3370,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3368
3370
|
q(t, d);
|
|
3369
3371
|
};
|
|
3370
3372
|
return /* @__PURE__ */ a.jsx(
|
|
3371
|
-
|
|
3373
|
+
tn,
|
|
3372
3374
|
{
|
|
3373
3375
|
className: i,
|
|
3374
3376
|
activeIndex: o,
|
|
@@ -3376,7 +3378,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3376
3378
|
onClick: _
|
|
3377
3379
|
}
|
|
3378
3380
|
);
|
|
3379
|
-
},
|
|
3381
|
+
}, Se = (t, e, r) => {
|
|
3380
3382
|
const s = v(
|
|
3381
3383
|
(i) => {
|
|
3382
3384
|
var c, n;
|
|
@@ -3387,9 +3389,9 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3387
3389
|
[t, e]
|
|
3388
3390
|
);
|
|
3389
3391
|
return [s ?? r, o];
|
|
3390
|
-
},
|
|
3391
|
-
textareaNotFront:
|
|
3392
|
-
},
|
|
3392
|
+
}, fa = "_textareaNotFront_1wpe5_1", xa = {
|
|
3393
|
+
textareaNotFront: fa
|
|
3394
|
+
}, ya = (t) => {
|
|
3393
3395
|
const {
|
|
3394
3396
|
userFlow: e,
|
|
3395
3397
|
pageId: r,
|
|
@@ -3399,7 +3401,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3399
3401
|
required: c,
|
|
3400
3402
|
dependencies: n,
|
|
3401
3403
|
..._
|
|
3402
|
-
} = t, { value: l, ...d } = _, [u, h] =
|
|
3404
|
+
} = t, { value: l, ...d } = _, [u, h] = Se(
|
|
3403
3405
|
e,
|
|
3404
3406
|
i,
|
|
3405
3407
|
l ?? ""
|
|
@@ -3408,19 +3410,19 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3408
3410
|
n
|
|
3409
3411
|
), y = (d == null ? void 0 : d.disabled) ?? f, b = D(() => c && (d != null && d.label) ? `${d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, c]), p = (x) => h(x.target.value);
|
|
3410
3412
|
return /* @__PURE__ */ a.jsx(
|
|
3411
|
-
|
|
3413
|
+
en,
|
|
3412
3414
|
{
|
|
3413
3415
|
...d,
|
|
3414
|
-
className:
|
|
3416
|
+
className: xa.textareaNotFront,
|
|
3415
3417
|
label: b,
|
|
3416
3418
|
value: u,
|
|
3417
3419
|
disabled: y,
|
|
3418
3420
|
onChange: (x) => !y && p(x)
|
|
3419
3421
|
}
|
|
3420
3422
|
);
|
|
3421
|
-
},
|
|
3422
|
-
textFieldNotFront:
|
|
3423
|
-
},
|
|
3423
|
+
}, ma = "_textFieldNotFront_1n8fy_1", ga = {
|
|
3424
|
+
textFieldNotFront: ma
|
|
3425
|
+
}, pa = (t) => {
|
|
3424
3426
|
const {
|
|
3425
3427
|
userFlow: e,
|
|
3426
3428
|
pageId: r,
|
|
@@ -3430,7 +3432,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3430
3432
|
required: c,
|
|
3431
3433
|
dependencies: n,
|
|
3432
3434
|
..._
|
|
3433
|
-
} = t, { value: l, ...d } = _, [u, h] =
|
|
3435
|
+
} = t, { value: l, ...d } = _, [u, h] = Se(
|
|
3434
3436
|
e,
|
|
3435
3437
|
i,
|
|
3436
3438
|
l ?? ""
|
|
@@ -3439,10 +3441,10 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3439
3441
|
n
|
|
3440
3442
|
), y = (d == null ? void 0 : d.disabled) ?? f, b = D(() => c && (d != null && d.label) ? `${d == null ? void 0 : d.label} *` : (d == null ? void 0 : d.label) ?? "", [d == null ? void 0 : d.label, c]), p = (x) => h(x.target.value);
|
|
3441
3443
|
return /* @__PURE__ */ a.jsx(
|
|
3442
|
-
|
|
3444
|
+
nn,
|
|
3443
3445
|
{
|
|
3444
3446
|
...d,
|
|
3445
|
-
className:
|
|
3447
|
+
className: ga.textFieldNotFront,
|
|
3446
3448
|
allowClear: !1,
|
|
3447
3449
|
label: b,
|
|
3448
3450
|
value: u,
|
|
@@ -3450,7 +3452,7 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3450
3452
|
onChange: (x) => !y && p(x)
|
|
3451
3453
|
}
|
|
3452
3454
|
);
|
|
3453
|
-
},
|
|
3455
|
+
}, ba = ({
|
|
3454
3456
|
userFlow: t,
|
|
3455
3457
|
pageId: e,
|
|
3456
3458
|
responseKey: r,
|
|
@@ -3486,10 +3488,10 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3486
3488
|
onClose: n
|
|
3487
3489
|
});
|
|
3488
3490
|
}, [n, t]), null;
|
|
3489
|
-
},
|
|
3490
|
-
tooltipNotFront:
|
|
3491
|
-
tooltipNotFront_content:
|
|
3492
|
-
},
|
|
3491
|
+
}, ja = "_tooltipNotFront_106iw_1", Ca = "_tooltipNotFront_content_106iw_5", ae = {
|
|
3492
|
+
tooltipNotFront: ja,
|
|
3493
|
+
tooltipNotFront_content: Ca
|
|
3494
|
+
}, Na = (t) => {
|
|
3493
3495
|
const {
|
|
3494
3496
|
userFlow: e,
|
|
3495
3497
|
pageId: r,
|
|
@@ -3505,11 +3507,11 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3505
3507
|
e,
|
|
3506
3508
|
r,
|
|
3507
3509
|
c != null && c.length ? c : null
|
|
3508
|
-
), h = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className:
|
|
3510
|
+
), h = u && u.length > 0 ? /* @__PURE__ */ a.jsx("div", { className: ae.tooltipNotFront_content, children: u.map((f, y) => /* @__PURE__ */ a.jsx(A, { children: f }, `tooltip-${o}-${y}`)) }) : null;
|
|
3509
3511
|
return /* @__PURE__ */ a.jsx(
|
|
3510
|
-
|
|
3512
|
+
rn,
|
|
3511
3513
|
{
|
|
3512
|
-
className:
|
|
3514
|
+
className: ae.tooltipNotFront,
|
|
3513
3515
|
label: n,
|
|
3514
3516
|
placement: _,
|
|
3515
3517
|
notShowArrow: l,
|
|
@@ -3518,13 +3520,13 @@ const Is = /\{([^}]+)\}/g, qs = (t, e) => {
|
|
|
3518
3520
|
}
|
|
3519
3521
|
);
|
|
3520
3522
|
};
|
|
3521
|
-
function
|
|
3523
|
+
function Va({
|
|
3522
3524
|
sessionName: t,
|
|
3523
3525
|
apiConfig: e,
|
|
3524
3526
|
onResolveComponentProps: r,
|
|
3525
3527
|
children: s
|
|
3526
3528
|
}) {
|
|
3527
|
-
const o =
|
|
3529
|
+
const o = Ta(
|
|
3528
3530
|
t,
|
|
3529
3531
|
e,
|
|
3530
3532
|
null,
|
|
@@ -3535,7 +3537,7 @@ function Ha({
|
|
|
3535
3537
|
s
|
|
3536
3538
|
] });
|
|
3537
3539
|
}
|
|
3538
|
-
const wa = { api: "", headers: {} },
|
|
3540
|
+
const wa = { api: "", headers: {} }, va = ({
|
|
3539
3541
|
userFlow: t,
|
|
3540
3542
|
components: e,
|
|
3541
3543
|
hash: r,
|
|
@@ -3553,21 +3555,21 @@ const wa = { api: "", headers: {} }, Na = ({
|
|
|
3553
3555
|
const i = E(t, o, e);
|
|
3554
3556
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: i });
|
|
3555
3557
|
};
|
|
3556
|
-
function
|
|
3558
|
+
function Ea(t) {
|
|
3557
3559
|
if (t == null || typeof t != "object" || !("components" in t) || !Array.isArray(t.components))
|
|
3558
3560
|
throw new Error(
|
|
3559
3561
|
"[renderNotFront] payload.display must be an object with a `components` array"
|
|
3560
3562
|
);
|
|
3561
3563
|
return t.components;
|
|
3562
3564
|
}
|
|
3563
|
-
const
|
|
3564
|
-
const r =
|
|
3565
|
+
const ka = ({ payload: t, userFlow: e }) => {
|
|
3566
|
+
const r = Ea(t.display), s = va({
|
|
3565
3567
|
userFlow: e,
|
|
3566
3568
|
hash: t.id,
|
|
3567
3569
|
components: r
|
|
3568
3570
|
});
|
|
3569
3571
|
return /* @__PURE__ */ a.jsx(a.Fragment, { children: s });
|
|
3570
|
-
},
|
|
3572
|
+
}, Ua = ka, oe = (t, e, r, s, o) => {
|
|
3571
3573
|
const i = E(
|
|
3572
3574
|
t,
|
|
3573
3575
|
e,
|
|
@@ -3577,7 +3579,7 @@ const Ea = ({ payload: t, userFlow: e }) => {
|
|
|
3577
3579
|
switch (r) {
|
|
3578
3580
|
case "body":
|
|
3579
3581
|
return /* @__PURE__ */ a.jsx(
|
|
3580
|
-
|
|
3582
|
+
Fn,
|
|
3581
3583
|
{
|
|
3582
3584
|
...s,
|
|
3583
3585
|
inputs: i || []
|
|
@@ -3586,7 +3588,7 @@ const Ea = ({ payload: t, userFlow: e }) => {
|
|
|
3586
3588
|
);
|
|
3587
3589
|
case "header":
|
|
3588
3590
|
return /* @__PURE__ */ a.jsx(
|
|
3589
|
-
|
|
3591
|
+
js,
|
|
3590
3592
|
{
|
|
3591
3593
|
...s,
|
|
3592
3594
|
components: i || []
|
|
@@ -3596,7 +3598,7 @@ const Ea = ({ payload: t, userFlow: e }) => {
|
|
|
3596
3598
|
default:
|
|
3597
3599
|
return null;
|
|
3598
3600
|
}
|
|
3599
|
-
},
|
|
3601
|
+
}, Ta = (t, e, r, s) => {
|
|
3600
3602
|
var p, x;
|
|
3601
3603
|
const [o, i] = L(!1), c = !!(e != null && e.api && !r && t), [n, _] = L(c), l = v((m) => m[t]), d = l == null ? void 0 : l.currentPageId, u = (l == null ? void 0 : l.isLoading) ?? !1, h = n || u;
|
|
3602
3604
|
U(() => {
|
|
@@ -3604,13 +3606,13 @@ const Ea = ({ payload: t, userFlow: e }) => {
|
|
|
3604
3606
|
const m = new URL(window.location.href), g = m.searchParams.get("sessionId");
|
|
3605
3607
|
g && (It(g), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
|
|
3606
3608
|
}, []);
|
|
3607
|
-
const f = d ?
|
|
3609
|
+
const f = d ? oe(
|
|
3608
3610
|
t,
|
|
3609
3611
|
d,
|
|
3610
3612
|
"header",
|
|
3611
3613
|
((p = l == null ? void 0 : l.pages[d].page) == null ? void 0 : p.header) || null,
|
|
3612
3614
|
s
|
|
3613
|
-
) : null, y = d ?
|
|
3615
|
+
) : null, y = d ? oe(
|
|
3614
3616
|
t,
|
|
3615
3617
|
d,
|
|
3616
3618
|
"body",
|
|
@@ -3618,7 +3620,7 @@ const Ea = ({ payload: t, userFlow: e }) => {
|
|
|
3618
3620
|
s
|
|
3619
3621
|
) : null, b = async () => {
|
|
3620
3622
|
try {
|
|
3621
|
-
const m = await
|
|
3623
|
+
const m = await be(
|
|
3622
3624
|
e,
|
|
3623
3625
|
t
|
|
3624
3626
|
), g = m == null ? void 0 : m.data, C = g == null ? void 0 : g.content;
|
|
@@ -3649,23 +3651,23 @@ const Ea = ({ payload: t, userFlow: e }) => {
|
|
|
3649
3651
|
window.removeEventListener(m, g);
|
|
3650
3652
|
};
|
|
3651
3653
|
}, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
3652
|
-
h && /* @__PURE__ */ a.jsx(
|
|
3654
|
+
h && /* @__PURE__ */ a.jsx(sn, {}),
|
|
3653
3655
|
f,
|
|
3654
3656
|
y,
|
|
3655
|
-
d && /* @__PURE__ */ a.jsx(
|
|
3656
|
-
l && /* @__PURE__ */ a.jsx(
|
|
3657
|
+
d && /* @__PURE__ */ a.jsx(ks, { userFlow: t, pageId: d }),
|
|
3658
|
+
l && /* @__PURE__ */ a.jsx(an, {})
|
|
3657
3659
|
] });
|
|
3658
3660
|
};
|
|
3659
3661
|
export {
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3662
|
+
Yr as Chart,
|
|
3663
|
+
Va as NotFrontPage,
|
|
3664
|
+
ka as RenderNotFront,
|
|
3665
|
+
Is as Row,
|
|
3666
|
+
Ha as clearSessionId,
|
|
3667
|
+
Ea as extractNotFrontComponents,
|
|
3668
|
+
$n as heading,
|
|
3669
|
+
Ua as renderNotFront,
|
|
3670
|
+
Dn as text,
|
|
3671
|
+
va as useNotFrontFragment,
|
|
3672
|
+
Ta as usePage
|
|
3671
3673
|
};
|