@foris/avocado-not-front 4.1.2 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/avocado-not-front.es.js +852 -668
  2. package/dist/avocado-not-front.umd.js +3 -3
  3. package/dist/index.d.ts +1 -3
  4. package/dist/src/components/card-accordion/CardAccordion.d.ts +7 -0
  5. package/dist/src/components/data-card/DataCard.d.ts +7 -0
  6. package/dist/{components → src/components}/index.d.ts +7 -1
  7. package/dist/src/components/link/Link.d.ts +7 -0
  8. package/dist/src/components/not-front-dynamic-router/NotFrontDynamicRouter.d.ts +9 -0
  9. package/dist/src/components/not-front-dynamic-router/NotFrontDynamicRouter.test.d.ts +1 -0
  10. package/dist/src/components/not-front-page/NotFrontPage.d.ts +9 -0
  11. package/dist/src/components/not-front-page/NotFrontPage.test.d.ts +1 -0
  12. package/dist/src/components/previewer-markdown/PreviewerMarkdown.d.ts +4 -0
  13. package/dist/{components → src/components}/tabs/Tabs.d.ts +1 -1
  14. package/dist/src/index.d.ts +3 -0
  15. package/dist/{types → src/types}/components.type.d.ts +77 -2
  16. package/dist/{types → src/types}/index.d.ts +1 -0
  17. package/dist/src/types/router.type.d.ts +5 -0
  18. package/dist/style.css +1 -1
  19. package/package.json +13 -6
  20. /package/dist/{components → src/components}/accordion/Accordion.d.ts +0 -0
  21. /package/dist/{components → src/components}/ai-chat-panel/AIChatPanel.d.ts +0 -0
  22. /package/dist/{components → src/components}/ai-prompt-code-editor/AIPromptCodeEditor.d.ts +0 -0
  23. /package/dist/{components → src/components}/ai-summary-card/AISummaryCard.d.ts +0 -0
  24. /package/dist/{components → src/components}/body/Body.d.ts +0 -0
  25. /package/dist/{components → src/components}/breadcrumbs/Breadcrumbs.d.ts +0 -0
  26. /package/dist/{components → src/components}/button/Button.d.ts +0 -0
  27. /package/dist/{components → src/components}/card-notification/CardNotification.d.ts +0 -0
  28. /package/dist/{components → src/components}/chart/Chart.d.ts +0 -0
  29. /package/dist/{components → src/components}/chart/chart.constants.d.ts +0 -0
  30. /package/dist/{components → src/components}/chart/chart.types.d.ts +0 -0
  31. /package/dist/{components → src/components}/chart/charts/AreaChart.d.ts +0 -0
  32. /package/dist/{components → src/components}/chart/charts/BarChart.d.ts +0 -0
  33. /package/dist/{components → src/components}/chart/charts/LineChart.d.ts +0 -0
  34. /package/dist/{components → src/components}/chart/charts/PieChart.d.ts +0 -0
  35. /package/dist/{components → src/components}/chart/charts/index.d.ts +0 -0
  36. /package/dist/{components → src/components}/chart/components/Legend.d.ts +0 -0
  37. /package/dist/{components → src/components}/chart/components/Tooltip.d.ts +0 -0
  38. /package/dist/{components → src/components}/chart/components/XAxis.d.ts +0 -0
  39. /package/dist/{components → src/components}/chart/components/YAxis.d.ts +0 -0
  40. /package/dist/{components → src/components}/chart/components/index.d.ts +0 -0
  41. /package/dist/{components → src/components}/checkbox/Checkbox.d.ts +0 -0
  42. /package/dist/{components → src/components}/code-editor/CodeEditor.d.ts +0 -0
  43. /package/dist/{components → src/components}/content-wrapper/ContentWrapper.d.ts +0 -0
  44. /package/dist/{components → src/components}/content-wrapper/index.d.ts +0 -0
  45. /package/dist/{components → src/components}/divider/Divider.d.ts +0 -0
  46. /package/dist/{components → src/components}/drawer/Drawer.d.ts +0 -0
  47. /package/dist/{components → src/components}/header/Header.d.ts +0 -0
  48. /package/dist/{components → src/components}/modal/Modal.d.ts +0 -0
  49. /package/dist/{components → src/components}/overlay-renderer/OverlayRenderer.d.ts +0 -0
  50. /package/dist/{components → src/components}/pill/Pill.d.ts +0 -0
  51. /package/dist/{components → src/components}/round-button/RoundButton.d.ts +0 -0
  52. /package/dist/{components → src/components}/row/Row.d.ts +0 -0
  53. /package/dist/{components → src/components}/select/SelectPagination.d.ts +0 -0
  54. /package/dist/{components → src/components}/select/SelectSimple.d.ts +0 -0
  55. /package/dist/{components → src/components}/select/index.d.ts +0 -0
  56. /package/dist/{components → src/components}/select/select.util.d.ts +0 -0
  57. /package/dist/{components → src/components}/spacing/Spacing.d.ts +0 -0
  58. /package/dist/{components → src/components}/switch/Switch.d.ts +0 -0
  59. /package/dist/{components → src/components}/table/Table.d.ts +0 -0
  60. /package/dist/{components → src/components}/table/TableArrayPills.d.ts +0 -0
  61. /package/dist/{components → src/components}/table/TableRowAction.d.ts +0 -0
  62. /package/dist/{components → src/components}/table/TableSkeleton.d.ts +0 -0
  63. /package/dist/{components → src/components}/table/table.util.d.ts +0 -0
  64. /package/dist/{components → src/components}/text-field/TextField.d.ts +0 -0
  65. /package/dist/{components → src/components}/toast/Toast.d.ts +0 -0
  66. /package/dist/{hooks → src/hooks}/builder/useBuildComponentsList.d.ts +0 -0
  67. /package/dist/{hooks → src/hooks}/builder/useBuilder.d.ts +0 -0
  68. /package/dist/{hooks → src/hooks}/builder/usePage.d.ts +0 -0
  69. /package/dist/{hooks → src/hooks}/components/useHeading.d.ts +0 -0
  70. /package/dist/{hooks → src/hooks}/components/useText.d.ts +0 -0
  71. /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
  72. /package/dist/{hooks → src/hooks}/useAction.d.ts +0 -0
  73. /package/dist/{hooks → src/hooks}/useDependencies.d.ts +0 -0
  74. /package/dist/{hooks → src/hooks}/useSelectChange.d.ts +0 -0
  75. /package/dist/{services → src/services}/axios/axiosInterceptors.d.ts +0 -0
  76. /package/dist/{services → src/services}/axios/axiosServices.d.ts +0 -0
  77. /package/dist/{services → src/services}/axios/useFetchAndLoad.d.ts +0 -0
  78. /package/dist/{services → src/services}/not-front/nextUIService.d.ts +0 -0
  79. /package/dist/{store → src/store}/useStore.d.ts +0 -0
  80. /package/dist/{types → src/types}/builder.type.d.ts +0 -0
  81. /package/dist/{types → src/types}/componentsCore.type.d.ts +0 -0
  82. /package/dist/{utils → src/utils}/dataSource.util.d.ts +0 -0
  83. /package/dist/{utils → src/utils}/headers.util.d.ts +0 -0
@@ -1,17 +1,18 @@
1
1
  import V from "axios";
2
- import { create as Ve } from "zustand";
3
- import He, { useMemo as S, useEffect as K, useState as q, Fragment as A, useCallback as D, useRef as Xe, cloneElement as We } from "react";
4
- import { Heading as Re, Text as Qe, ThemeStore as te, Breadcrumbs as Ye, Button as Ze, CardNotification as me, Checkbox as Fe, PreviewerMarkdown as Pe, Divider as et, SkeletonBase as De, Modal as tt, Pill as he, RoundButton as nt, SelectPagination as st, Select as at, Switch as rt, Table as ct, Pager as ot, Tabs as it, TextField as lt, toast as W, Accordion as dt, Drawer as _t, Loading as ut, Toaster as ht } from "@foris/avocado-suite";
5
- import { ChatPanel as ft, SummaryCard as mt, PromptCodeEditor as yt } from "@foris/ai-agent";
6
- import xt from "@uiw/react-codemirror";
2
+ import { create as Qe } from "zustand";
3
+ import Ye, { useMemo as $, useEffect as M, useState as T, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
4
+ import { Heading as Be, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Ie, DataCard as at, Divider as rt, SkeletonBase as Ke, Link as ot, Modal as ct, Pill as he, RoundButton as it, SelectPagination as lt, Select as dt, Switch as _t, Table as ut, Pager as ht, Tabs as ft, TextField as mt, toast as W, Accordion as yt, Drawer as xt, Loading as gt, Toaster as pt } from "@foris/avocado-suite";
5
+ import { ChatPanel as bt, SummaryCard as jt, PromptCodeEditor as wt } from "@foris/ai-agent";
6
+ import Ct from "@uiw/react-codemirror";
7
7
  import { json as we } from "@codemirror/lang-json";
8
- import { markdown as gt } from "@codemirror/lang-markdown";
9
- import { sql as bt } from "@codemirror/lang-sql";
10
- import { yaml as pt } from "@codemirror/lang-yaml";
11
- import B from "jsonpath";
12
- import { Legend as jt, Tooltip as wt, XAxis as Ct, YAxis as Nt, ResponsiveContainer as ne, AreaChart as vt, CartesianGrid as ye, Area as Et, BarChart as St, Bar as kt, LineChart as qt, Line as Ot, PieChart as At, Pie as Tt, Cell as $t } from "recharts";
13
- const v = Ve(() => ({})), oe = (e, t, a, s) => {
14
- const i = a == null ? void 0 : a.hash, c = s && Object.keys(s).length > 0 ? { ...s } : {};
8
+ import { markdown as Nt } from "@codemirror/lang-markdown";
9
+ import { sql as vt } from "@codemirror/lang-sql";
10
+ import { yaml as St } from "@codemirror/lang-yaml";
11
+ import K from "jsonpath";
12
+ import { Legend as Et, Tooltip as kt, XAxis as $t, YAxis as qt, ResponsiveContainer as ne, AreaChart as Tt, CartesianGrid as ye, Area as At, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as Bt, Pie as It, Cell as Kt } from "recharts";
13
+ import { Routes as zt, Route as Ce, Navigate as Mt } from "react-router-dom";
14
+ const v = Qe(() => ({})), ce = (e, t, a, s) => {
15
+ const c = a == null ? void 0 : a.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
15
16
  v.setState((l) => {
16
17
  var n;
17
18
  return {
@@ -19,37 +20,37 @@ const v = Ve(() => ({})), oe = (e, t, a, s) => {
19
20
  [e]: {
20
21
  ...l[e],
21
22
  apiConfig: t,
22
- currentPageId: i,
23
+ currentPageId: c,
23
24
  isLoading: !1,
24
25
  isModalOpen: !0,
25
26
  isDrawerOpen: !1,
26
- entries: c,
27
+ entries: i,
27
28
  overlay: null,
28
29
  pages: {
29
30
  ...(n = l[e]) == null ? void 0 : n.pages,
30
- [i]: {
31
+ [c]: {
31
32
  page: a
32
33
  }
33
34
  }
34
35
  }
35
36
  };
36
37
  });
37
- }, Le = (e, t, a) => {
38
+ }, ze = (e, t, a) => {
38
39
  const s = a && Object.keys(a).length > 0 ? { ...e, ...a } : e;
39
40
  return t.length === 0 ? e : Object.fromEntries(
40
41
  Object.entries(s).filter(
41
- ([i]) => !t.includes(i)
42
+ ([c]) => !t.includes(c)
42
43
  )
43
44
  );
44
- }, Rt = (e, t, a, s, i) => {
45
- sessionStorage.setItem("sessionId", a), v.setState((c) => {
46
- const l = c[e] ?? {}, n = l.entries ?? {}, d = Le(
45
+ }, Gt = (e, t, a, s, c) => {
46
+ sessionStorage.setItem("sessionId", a), v.setState((i) => {
47
+ const l = i[e] ?? {}, n = l.entries ?? {}, d = ze(
47
48
  n,
48
49
  s,
49
- i
50
+ c
50
51
  );
51
52
  return {
52
- ...c,
53
+ ...i,
53
54
  [e]: {
54
55
  ...l,
55
56
  currentPageId: t.hash,
@@ -65,10 +66,10 @@ const v = Ve(() => ({})), oe = (e, t, a, s) => {
65
66
  }
66
67
  };
67
68
  });
68
- }, Dt = (e, t, a, s) => {
69
- v.setState((i) => {
69
+ }, Ut = (e, t, a, s) => {
70
+ v.setState((c) => {
70
71
  var r;
71
- const c = i[e] ?? {}, l = c.entries ?? {}, n = Le(
72
+ const i = c[e] ?? {}, l = i.entries ?? {}, n = ze(
72
73
  l,
73
74
  a,
74
75
  s
@@ -76,9 +77,9 @@ const v = Ve(() => ({})), oe = (e, t, a, s) => {
76
77
  (u) => u.component === "drawer"
77
78
  );
78
79
  return {
79
- ...i,
80
+ ...c,
80
81
  [e]: {
81
- ...c,
82
+ ...i,
82
83
  entries: n,
83
84
  overlay: t,
84
85
  isLoading: !1,
@@ -95,29 +96,29 @@ const v = Ve(() => ({})), oe = (e, t, a, s) => {
95
96
  overlay: null
96
97
  }
97
98
  }));
98
- }, Lt = (e) => {
99
+ }, Jt = (e) => {
99
100
  var a;
100
101
  return ((a = v.getState()[e]) == null ? void 0 : a.overlay) ?? null;
101
- }, T = (e, t) => {
102
+ }, A = (e, t) => {
102
103
  const {
103
104
  content: a,
104
105
  sessionId: s,
105
- deprecatedStateKeys: i = [],
106
- sessionState: c
106
+ deprecatedStateKeys: c = [],
107
+ sessionState: i
107
108
  } = t;
108
- a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Rt(
109
+ a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Gt(
109
110
  e,
110
111
  a,
111
112
  s,
112
- i,
113
- c
114
- ) : Dt(
113
+ c,
114
+ i
115
+ ) : Ut(
115
116
  e,
116
117
  a,
117
- i,
118
- c
118
+ c,
119
+ i
119
120
  ));
120
- }, L = (e, t) => {
121
+ }, O = (e, t) => {
121
122
  v.setState((a) => {
122
123
  var s;
123
124
  return {
@@ -156,7 +157,7 @@ const v = Ve(() => ({})), oe = (e, t, a, s) => {
156
157
  isDrawerOpen: t
157
158
  }
158
159
  }));
159
- }, Ce = (e, t) => {
160
+ }, Ne = (e, t) => {
160
161
  v.setState((a) => {
161
162
  const s = a[e];
162
163
  return s ? {
@@ -171,18 +172,18 @@ const v = Ve(() => ({})), oe = (e, t, a, s) => {
171
172
  } : a;
172
173
  });
173
174
  };
174
- let ie = !1, P = [], Ne = !1;
175
- const Bt = (e) => e._userFlow || null, ve = (e) => {
175
+ let ie = !1, P = [], ve = !1;
176
+ const Vt = (e) => e._userFlow || null, Se = (e) => {
176
177
  P.forEach(({ resolve: t, reject: a }) => {
177
178
  e ? a(e) : t(void 0);
178
179
  }), P = [];
179
- }, It = async (e) => {
180
- var s, i;
180
+ }, Ht = async (e) => {
181
+ var s, c;
181
182
  const t = e == null ? void 0 : e.config;
182
183
  if (((s = e == null ? void 0 : e.response) == null ? void 0 : s.status) === 401 && !t._retry) {
183
- const c = Bt(t);
184
- if (c) {
185
- const n = (i = v.getState()[c]) == null ? void 0 : i.apiConfig;
184
+ const i = Vt(t);
185
+ if (i) {
186
+ const n = (c = v.getState()[i]) == null ? void 0 : c.apiConfig;
186
187
  if (!n)
187
188
  return Promise.reject(e);
188
189
  if (n.onAuthenticationError || typeof n.headers == "function") {
@@ -199,7 +200,7 @@ const Bt = (e) => e._userFlow || null, ve = (e) => {
199
200
  r = n.headers();
200
201
  else
201
202
  throw new Error("No refresh handler available");
202
- return n.onAuthenticationError && (typeof n.headers == "string" ? Ce(c, JSON.stringify(r)) : Ce(c, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), ve(null), V(t);
203
+ return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(i, JSON.stringify(r)) : Ne(i, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), Se(null), V(t);
203
204
  } catch (r) {
204
205
  return console.error(
205
206
  "[axiosInterceptors] Token refresh failed:",
@@ -207,7 +208,7 @@ const Bt = (e) => e._userFlow || null, ve = (e) => {
207
208
  ), console.error(
208
209
  "[axiosInterceptors] Rejecting queued requests:",
209
210
  P.length
210
- ), ve(r), Promise.reject(r);
211
+ ), Se(r), Promise.reject(r);
211
212
  } finally {
212
213
  ie = !1;
213
214
  }
@@ -222,17 +223,17 @@ const Bt = (e) => e._userFlow || null, ve = (e) => {
222
223
  );
223
224
  }
224
225
  return Promise.reject(e);
225
- }, zt = () => {
226
- if (Ne) {
226
+ }, Xt = () => {
227
+ if (ve) {
227
228
  console.debug(
228
229
  "[axiosInterceptors] Interceptors already initialized, skipping"
229
230
  );
230
231
  return;
231
232
  }
232
- console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, It), console.debug("[axiosInterceptors] Response error interceptor registered"), Ne = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
233
+ console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Ht), console.debug("[axiosInterceptors] Response error interceptor registered"), ve = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
233
234
  };
234
- zt();
235
- function Mt(e) {
235
+ Xt();
236
+ function Wt(e) {
236
237
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
237
238
  }
238
239
  var le = { exports: {} }, Q = {};
@@ -246,46 +247,46 @@ var le = { exports: {} }, Q = {};
246
247
  * LICENSE file in the root directory of this source tree.
247
248
  */
248
249
  var Ee;
249
- function Kt() {
250
+ function Qt() {
250
251
  if (Ee) return Q;
251
252
  Ee = 1;
252
- var e = He, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
253
+ var e = Ye, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
253
254
  function l(n, d, r) {
254
255
  var u, f = {}, _ = null, h = null;
255
256
  r !== void 0 && (_ = "" + r), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
256
- for (u in d) s.call(d, u) && !c.hasOwnProperty(u) && (f[u] = d[u]);
257
+ for (u in d) s.call(d, u) && !i.hasOwnProperty(u) && (f[u] = d[u]);
257
258
  if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
258
- return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: i.current };
259
+ return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: c.current };
259
260
  }
260
261
  return Q.Fragment = a, Q.jsx = l, Q.jsxs = l, Q;
261
262
  }
262
- var Se;
263
- function Gt() {
264
- return Se || (Se = 1, le.exports = Kt()), le.exports;
263
+ var ke;
264
+ function Yt() {
265
+ return ke || (ke = 1, le.exports = Qt()), le.exports;
265
266
  }
266
- var o = Gt();
267
- const Ut = (e) => {
267
+ var o = Yt();
268
+ const Zt = (e) => {
268
269
  if (!(e != null && e.content)) return null;
269
270
  const t = {
270
271
  ...e,
271
272
  children: e.content,
272
273
  type: e.variant
273
274
  };
274
- return /* @__PURE__ */ o.jsx(Re, { ...t });
275
- }, Jt = (e) => {
275
+ return /* @__PURE__ */ o.jsx(Be, { ...t });
276
+ }, Ft = (e) => {
276
277
  if (!e) return null;
277
278
  const t = {
278
279
  ...e,
279
280
  children: e.content
280
281
  };
281
- return /* @__PURE__ */ o.jsx(Qe, { ...t });
282
- }, Vt = (e) => {
283
- const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = S(() => ({
282
+ return /* @__PURE__ */ o.jsx(Pe, { ...t });
283
+ }, Pt = (e) => {
284
+ const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = $(() => ({
284
285
  url: e.dataSource.url,
285
286
  method: e.dataSource.method,
286
287
  headers: e.dataSource.headers,
287
288
  params: a == null ? void 0 : a.data
288
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), i = e.locale ?? "en", c = S(() => {
289
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), c = e.locale ?? "en", i = $(() => {
289
290
  var n, d, r, u, f;
290
291
  const l = {
291
292
  title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
@@ -296,100 +297,100 @@ const Ut = (e) => {
296
297
  };
297
298
  return Object.fromEntries(Object.entries(l).filter(([, _]) => !!_));
298
299
  }, [e == null ? void 0 : e.translations]);
299
- return K(() => {
300
+ return M(() => {
300
301
  e.onResolveProps && e.onResolveProps({
301
302
  dataSource: s,
302
- locale: i,
303
- translations: c,
303
+ locale: c,
304
+ translations: i,
304
305
  initialSuggestions: e.initialSuggestions,
305
306
  theme: t
306
307
  });
307
308
  }, [
308
309
  e.onResolveProps,
309
310
  s,
310
- i,
311
311
  c,
312
+ i,
312
313
  e.initialSuggestions,
313
314
  t
314
315
  ]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
315
- ft,
316
+ bt,
316
317
  {
317
318
  dataSource: s,
318
- locale: i,
319
- translations: c,
319
+ locale: c,
320
+ translations: i,
320
321
  initialSuggestions: e.initialSuggestions,
321
322
  theme: t
322
323
  }
323
324
  );
324
- }, Ht = "_summaryCard_jva4h_1", Xt = {
325
- summaryCard: Ht
326
- }, Wt = (e) => {
327
- const t = e.dataSource, a = S(() => ({
325
+ }, en = "_summaryCard_jva4h_1", tn = {
326
+ summaryCard: en
327
+ }, nn = (e) => {
328
+ const t = e.dataSource, a = $(() => ({
328
329
  url: e.dataSource.url,
329
330
  method: e.dataSource.method,
330
331
  headers: e.dataSource.headers,
331
332
  body: t == null ? void 0 : t.data
332
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", i = S(() => {
333
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", c = $(() => {
333
334
  var l, n, d;
334
- const c = {
335
+ const i = {
335
336
  title: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.title,
336
337
  loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
337
338
  noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
338
339
  };
339
340
  return Object.fromEntries(
340
- Object.entries(c).filter(([, r]) => !!r)
341
+ Object.entries(i).filter(([, r]) => !!r)
341
342
  );
342
343
  }, [e == null ? void 0 : e.translations]);
343
- return K(() => {
344
+ return M(() => {
344
345
  e.onResolveProps && e.onResolveProps({
345
346
  dataSource: a,
346
347
  locale: s,
347
- translations: i
348
+ translations: c
348
349
  });
349
- }, [e.onResolveProps, a, s, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Xt.summaryCard, children: /* @__PURE__ */ o.jsx(
350
- mt,
350
+ }, [e.onResolveProps, a, s, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: tn.summaryCard, children: /* @__PURE__ */ o.jsx(
351
+ jt,
351
352
  {
352
353
  dataSource: a,
353
354
  locale: s,
354
- translations: i
355
+ translations: c
355
356
  }
356
357
  ) });
357
- }, M = (e, t) => {
358
+ }, B = (e, t) => {
358
359
  const a = v((s) => {
359
- var i;
360
- return ((i = s[e]) == null ? void 0 : i.entries) || {};
360
+ var c;
361
+ return ((c = s[e]) == null ? void 0 : c.entries) || {};
361
362
  });
362
- return S(() => {
363
+ return $(() => {
363
364
  const s = {
364
365
  disabled: !1
365
366
  };
366
- return !t || t.length === 0 || t.forEach((i) => {
367
- const c = a[i.key], l = c == null || c === "" || Array.isArray(c) && c.length === 0;
368
- i.when === "empty" && l && i.actions.forEach((d) => {
367
+ return !t || t.length === 0 || t.forEach((c) => {
368
+ const i = a[c.key], l = i == null || i === "" || Array.isArray(i) && i.length === 0;
369
+ c.when === "empty" && l && c.actions.forEach((d) => {
369
370
  s[d] = !0;
370
371
  });
371
372
  }), s;
372
373
  }, [t, a]);
373
- }, Qt = "_promptCodeEditor_1d57s_1", Yt = {
374
- promptCodeEditor: Qt
375
- }, Zt = (e) => {
374
+ }, sn = "_promptCodeEditor_1d57s_1", an = {
375
+ promptCodeEditor: sn
376
+ }, rn = (e) => {
376
377
  const {
377
378
  userFlow: t,
378
379
  responseKey: a,
379
380
  codeBlockValue: s,
380
- language: i,
381
- disabled: c,
381
+ language: c,
382
+ disabled: i,
382
383
  dependencies: l,
383
384
  dataSource: n,
384
385
  inputLabel: d,
385
386
  inputPlaceholder: r,
386
387
  codeBlockLabel: u
387
- } = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = q(
388
+ } = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = T(
388
389
  s || ""
389
- ), { disabled: j } = M(
390
+ ), { disabled: b } = B(
390
391
  t,
391
392
  l
392
- ), m = c ?? j, x = i ?? "json", y = {
393
+ ), m = i ?? b, x = c ?? "json", y = {
393
394
  url: (n == null ? void 0 : n.url) || "",
394
395
  method: (n == null ? void 0 : n.method) || "post",
395
396
  headers: n == null ? void 0 : n.headers,
@@ -399,12 +400,12 @@ const Ut = (e) => {
399
400
  const N = {
400
401
  [a]: p
401
402
  };
402
- L(t, N);
403
+ O(t, N);
403
404
  };
404
- return K(() => {
405
+ return M(() => {
405
406
  s !== void 0 && s !== _ && h(s);
406
- }, [s]), /* @__PURE__ */ o.jsx("section", { className: Yt.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
407
- yt,
407
+ }, [s]), /* @__PURE__ */ o.jsx("section", { className: an.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
408
+ wt,
408
409
  {
409
410
  themeMode: f,
410
411
  requestConfig: y,
@@ -417,10 +418,10 @@ const Ut = (e) => {
417
418
  onCodeChange: g
418
419
  }
419
420
  ) });
420
- }, Ft = "_body_14tsv_1", Pt = "_body_content_14tsv_5", ke = {
421
- body: Ft,
422
- body_content: Pt
423
- }, en = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: ke.body, children: /* @__PURE__ */ o.jsx("div", { className: ke.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(A, { children: t }, a)) }) }), X = (e) => {
421
+ }, on = "_body_14tsv_1", cn = "_body_content_14tsv_5", $e = {
422
+ body: on,
423
+ body_content: cn
424
+ }, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: $e.body, children: /* @__PURE__ */ o.jsx("div", { className: $e.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), X = (e) => {
424
425
  if (!e)
425
426
  return { "content-type": "application/json" };
426
427
  if (typeof e == "function")
@@ -432,9 +433,9 @@ const Ut = (e) => {
432
433
  return { "content-type": "application/json", Authorization: e };
433
434
  }
434
435
  return e;
435
- }, F = () => new AbortController(), tn = (e, t = {}, a = {}, s = !1, i) => {
436
- const c = F();
437
- s && c.abort();
436
+ }, F = () => new AbortController(), dn = (e, t = {}, a = {}, s = !1, c) => {
437
+ const i = F();
438
+ s && i.abort();
438
439
  const l = X(t);
439
440
  return {
440
441
  call: V.get(e, {
@@ -442,14 +443,14 @@ const Ut = (e) => {
442
443
  ...l
443
444
  },
444
445
  params: a,
445
- signal: c.signal,
446
- _userFlow: i
446
+ signal: i.signal,
447
+ _userFlow: c
447
448
  }),
448
- controller: c
449
+ controller: i
449
450
  };
450
- }, fe = (e, t = {}, a = {}, s = {}, i = !1, c) => {
451
+ }, fe = (e, t = {}, a = {}, s = {}, c = !1, i) => {
451
452
  const l = F();
452
- i && l.abort();
453
+ c && l.abort();
453
454
  const n = X(t);
454
455
  return {
455
456
  call: V.post(e, a, {
@@ -458,13 +459,13 @@ const Ut = (e) => {
458
459
  },
459
460
  params: s,
460
461
  signal: l.signal,
461
- _userFlow: c
462
+ _userFlow: i
462
463
  }),
463
464
  controller: l
464
465
  };
465
- }, nn = (e, t = {}, a = {}, s = {}, i = !1, c) => {
466
+ }, _n = (e, t = {}, a = {}, s = {}, c = !1, i) => {
466
467
  const l = F();
467
- i && l.abort();
468
+ c && l.abort();
468
469
  const n = X(t);
469
470
  return {
470
471
  call: V.put(e, a, {
@@ -473,13 +474,13 @@ const Ut = (e) => {
473
474
  },
474
475
  params: s,
475
476
  signal: l.signal,
476
- _userFlow: c
477
+ _userFlow: i
477
478
  }),
478
479
  controller: l
479
480
  };
480
- }, sn = (e, t = {}, a = {}, s = {}, i = !1, c) => {
481
+ }, un = (e, t = {}, a = {}, s = {}, c = !1, i) => {
481
482
  const l = F();
482
- i && l.abort();
483
+ c && l.abort();
483
484
  const n = X(t);
484
485
  return {
485
486
  call: V.patch(e, a, {
@@ -488,13 +489,13 @@ const Ut = (e) => {
488
489
  },
489
490
  params: s,
490
491
  signal: l.signal,
491
- _userFlow: c
492
+ _userFlow: i
492
493
  }),
493
494
  controller: l
494
495
  };
495
- }, an = (e, t = {}, a = {}, s = {}, i = !1, c) => {
496
+ }, hn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
496
497
  const l = F();
497
- i && l.abort();
498
+ c && l.abort();
498
499
  const n = X(t);
499
500
  return {
500
501
  call: V.delete(e, {
@@ -504,53 +505,53 @@ const Ut = (e) => {
504
505
  data: a,
505
506
  params: s,
506
507
  signal: l.signal,
507
- _userFlow: c
508
+ _userFlow: i
508
509
  }),
509
510
  controller: l
510
511
  };
511
- }, Be = () => {
512
+ }, Me = () => {
512
513
  let e;
513
514
  return { callEndpoint: async (s) => {
514
515
  s.controller && (e = s.controller);
515
- let i = {};
516
+ let c = {};
516
517
  try {
517
- i = await s.call;
518
- } catch (c) {
519
- throw c;
518
+ c = await s.call;
519
+ } catch (i) {
520
+ throw i;
520
521
  }
521
- return i;
522
+ return c;
522
523
  }, cancelEndpoint: () => {
523
524
  e && e.abort();
524
525
  } };
525
- }, Ie = async (e, t, a = "", s = {}, i = {}) => {
526
+ }, Ge = async (e, t, a = "", s = {}, c = {}) => {
526
527
  try {
527
- const { callEndpoint: c } = Be(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
528
+ const { callEndpoint: i } = Me(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
528
529
  a && r.append("hash_code", a), d && r.append("sessionId", d);
529
530
  const u = `${l}/not-front/next-ui/?${r.toString()}`, f = X(n), _ = fe(
530
531
  u,
531
532
  f,
532
533
  s,
533
- i,
534
+ c,
534
535
  !1,
535
536
  t
536
537
  );
537
- return await c(_);
538
- } catch (c) {
539
- return console.error(c), Promise.reject(c);
538
+ return await i(_);
539
+ } catch (i) {
540
+ return console.error(i), Promise.reject(i);
540
541
  }
541
542
  }, I = () => {
542
- const e = v((n) => n), { callEndpoint: t } = Be(), a = async (n, d, r, u, f = !0) => {
543
+ const e = v((n) => n), { callEndpoint: t } = Me(), a = async (n, d, r, u, f = !0) => {
543
544
  var _;
544
545
  try {
545
- const h = (_ = e[n]) == null ? void 0 : _.apiConfig, j = {
546
+ const h = (_ = e[n]) == null ? void 0 : _.apiConfig, b = {
546
547
  state: { ...r },
547
548
  triggerKey: u
548
549
  };
549
- return f && H(n, !0), await Ie(
550
+ return f && H(n, !0), await Ge(
550
551
  h,
551
552
  n,
552
553
  d,
553
- j
554
+ b
554
555
  );
555
556
  } catch (h) {
556
557
  throw f && H(n, !1), console.error("[getNextUI] Error fetching next UI:", h), h;
@@ -561,16 +562,16 @@ const Ut = (e) => {
561
562
  case "post":
562
563
  return fe(u, f, _, {}, !1, d);
563
564
  case "put":
564
- return nn(u, f, _, {}, !1, d);
565
+ return _n(u, f, _, {}, !1, d);
565
566
  case "patch":
566
- return sn(u, f, _, {}, !1, d);
567
+ return un(u, f, _, {}, !1, d);
567
568
  case "delete":
568
- return an(u, f, _, h, !1, d);
569
+ return hn(u, f, _, h, !1, d);
569
570
  case "get":
570
571
  default:
571
- return tn(u, f, h, !1, d);
572
+ return dn(u, f, h, !1, d);
572
573
  }
573
- }, i = (n, d) => {
574
+ }, c = (n, d) => {
574
575
  const { url: r, headers: u } = n, f = {
575
576
  query: n == null ? void 0 : n.query,
576
577
  variables: (n == null ? void 0 : n.variables) || {}
@@ -586,7 +587,7 @@ const Ut = (e) => {
586
587
  !1,
587
588
  d
588
589
  );
589
- }, c = async (n, d, r = !0) => {
590
+ }, i = async (n, d, r = !0) => {
590
591
  var u, f;
591
592
  if (!n) {
592
593
  console.warn("[fetchDataSource] Invalid or missing dataSource");
@@ -600,7 +601,7 @@ const Ut = (e) => {
600
601
  _ = s(n, d);
601
602
  break;
602
603
  case "graphql":
603
- _ = i(n, d);
604
+ _ = c(n, d);
604
605
  break;
605
606
  default:
606
607
  throw new Error("[fetchDataSource] Unsupported data source type");
@@ -622,11 +623,11 @@ const Ut = (e) => {
622
623
  };
623
624
  return {
624
625
  getNextUI: a,
625
- fetchDataSource: c,
626
+ fetchDataSource: i,
626
627
  fetchAndGetNextUI: async (n, d, r, u, f) => {
627
628
  try {
628
629
  H(n, !0);
629
- const _ = await c(f, n, !1);
630
+ const _ = await i(f, n, !1);
630
631
  return _ && await a(
631
632
  n,
632
633
  d,
@@ -641,12 +642,12 @@ const Ut = (e) => {
641
642
  }
642
643
  }
643
644
  };
644
- }, rn = ({
645
+ }, fn = ({
645
646
  userFlow: e,
646
647
  items: t,
647
648
  responseKey: a
648
649
  }) => {
649
- const { getNextUI: s } = I(), i = D(
650
+ const { getNextUI: s } = I(), c = R(
650
651
  async ({ actionType: l, hashCode: n, redirectUrl: d }) => {
651
652
  var r;
652
653
  try {
@@ -658,7 +659,7 @@ const Ut = (e) => {
658
659
  { ...(r = v.getState()[e]) == null ? void 0 : r.entries },
659
660
  a
660
661
  );
661
- u != null && u.data && T(e, u == null ? void 0 : u.data);
662
+ u != null && u.data && A(e, u == null ? void 0 : u.data);
662
663
  break;
663
664
  case "REDIRECT":
664
665
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
@@ -672,38 +673,38 @@ const Ut = (e) => {
672
673
  }
673
674
  },
674
675
  []
675
- ), c = S(() => t == null ? void 0 : t.map((l) => ({
676
+ ), i = $(() => t == null ? void 0 : t.map((l) => ({
676
677
  title: l == null ? void 0 : l.title,
677
- component: /* @__PURE__ */ o.jsx("div", { onClick: () => i(l) })
678
+ component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(l) })
678
679
  })), []);
679
- return /* @__PURE__ */ o.jsx(Ye, { items: c });
680
- }, cn = (e) => {
680
+ return /* @__PURE__ */ o.jsx(et, { items: i });
681
+ }, mn = (e) => {
681
682
  const {
682
683
  userFlow: t,
683
684
  pageId: a,
684
685
  responseKey: s,
685
- actionType: i,
686
- label: c,
686
+ actionType: c,
687
+ label: i,
687
688
  content: l,
688
689
  dataSource: n,
689
690
  redirectUrl: d,
690
691
  dependencies: r,
691
692
  onClick: u,
692
693
  ...f
693
- } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: j } = I(), { disabled: m } = M(
694
+ } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } = I(), { disabled: m } = B(
694
695
  t,
695
696
  r
696
697
  ), x = {
697
698
  ...f,
698
- children: l ?? c
699
- }, y = (x == null ? void 0 : x.disabled) ?? m, g = D(async () => {
700
- var p, N, b;
699
+ children: l ?? i
700
+ }, y = (x == null ? void 0 : x.disabled) ?? m, g = R(async () => {
701
+ var p, N, j;
701
702
  try {
702
703
  const C = {
703
704
  ...(p = v.getState()[t]) == null ? void 0 : p.entries,
704
705
  [s]: { status: 200 }
705
706
  };
706
- switch (L(t, C), i) {
707
+ switch (O(t, C), c) {
707
708
  case "CLOSE_MODAL":
708
709
  ge(t, !1);
709
710
  break;
@@ -720,18 +721,18 @@ const Ut = (e) => {
720
721
  C,
721
722
  s
722
723
  );
723
- w != null && w.data && T(t, w == null ? void 0 : w.data);
724
+ w != null && w.data && A(t, w == null ? void 0 : w.data);
724
725
  break;
725
726
  }
726
727
  case "FETCH_AND_GO_TO_NEXT_UI": {
727
- const w = await j(
728
+ const w = await b(
728
729
  t,
729
730
  a,
730
731
  C,
731
732
  s,
732
733
  n
733
734
  );
734
- w != null && w.data && T(t, w == null ? void 0 : w.data);
735
+ w != null && w.data && A(t, w == null ? void 0 : w.data);
735
736
  break;
736
737
  }
737
738
  case "GET_DATA_SOURCE": {
@@ -742,78 +743,149 @@ const Ut = (e) => {
742
743
  s
743
744
  ), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
744
745
  if ((E == null ? void 0 : E.type) !== "fetch") break;
745
- const $ = E == null ? void 0 : E.dataSource, k = await h(
746
- $,
746
+ const D = E == null ? void 0 : E.dataSource, q = await h(
747
+ D,
747
748
  t,
748
749
  // Avoid to handle loading state until all the requests are done
749
750
  !1
750
751
  ), G = {
751
- ...(b = v.getState()[t]) == null ? void 0 : b.entries,
752
+ ...(j = v.getState()[t]) == null ? void 0 : j.entries,
752
753
  [s]: {
753
- status: k == null ? void 0 : k.status,
754
- content: k == null ? void 0 : k.data
754
+ status: q == null ? void 0 : q.status,
755
+ content: q == null ? void 0 : q.data
755
756
  }
756
757
  };
757
- L(t, G);
758
+ O(t, G);
758
759
  const U = await _(
759
760
  t,
760
761
  a,
761
762
  G,
762
763
  s
763
764
  );
764
- U != null && U.data && T(t, U == null ? void 0 : U.data);
765
+ U != null && U.data && A(t, U == null ? void 0 : U.data);
765
766
  break;
766
767
  }
767
768
  case "REDIRECT":
768
769
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
769
770
  break;
770
771
  default:
771
- console.warn(`Unhandled actionType: ${i}`);
772
+ console.warn(`Unhandled actionType: ${c}`);
772
773
  break;
773
774
  }
774
775
  } catch (C) {
775
776
  alert(JSON.stringify(C));
776
777
  }
777
- }, [i, n, a, s, t]);
778
+ }, [c, n, a, s, t]);
778
779
  return /* @__PURE__ */ o.jsx(
779
- Ze,
780
+ tt,
780
781
  {
781
782
  ...x,
782
783
  disabled: y,
783
784
  onClick: () => !y && (u ?? g)()
784
785
  }
785
786
  );
786
- }, on = "_cardNotificationNotFront_t7pln_1", ln = {
787
- cardNotificationNotFront: on
788
- }, dn = (e) => {
789
- const { content: t, description: a, ...s } = e, i = {
787
+ }, S = (e, t, a, s) => {
788
+ var l;
789
+ const c = {
790
+ accordion: (n) => /* @__PURE__ */ o.jsx(Bs, { ...n, userFlow: e, pageId: t }),
791
+ aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Pt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
792
+ aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
793
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
794
+ breadcrumbs: (n) => /* @__PURE__ */ o.jsx(fn, { ...n, userFlow: e, pageId: t }),
795
+ button: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
796
+ cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
797
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(bn, { ...n }),
798
+ chart: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e }),
799
+ dataCard: (n) => /* @__PURE__ */ o.jsx(Tn, { ...n, userFlow: e, pageId: t }),
800
+ checkbox: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
801
+ code: (n) => /* @__PURE__ */ o.jsx(En, { ...n, userFlow: e, pageId: t }),
802
+ divider: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n }),
803
+ drawer: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: e, pageId: t }),
804
+ heading: (n) => Zt(n),
805
+ link: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
806
+ pill: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
807
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n }),
808
+ modal: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
809
+ roundButton: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
810
+ row: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: e, pageId: t }),
811
+ select: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: e, pageId: t }),
812
+ switch: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
813
+ spacing: (n) => /* @__PURE__ */ o.jsx(ps, { ...n, userFlow: e, pageId: t }),
814
+ table: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
815
+ tabs: (n) => /* @__PURE__ */ o.jsx(qs, { ...n, userFlow: e, pageId: t }),
816
+ text: (n) => Ft(n),
817
+ textField: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
818
+ toast: (n) => /* @__PURE__ */ o.jsx(Rs, { ...n, userFlow: e, pageId: t })
819
+ };
820
+ return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
821
+ const d = c[n.component];
822
+ return d ? d({ ...n, userFlow: e, pageId: t }) : null;
823
+ });
824
+ }, yn = "_slotStack_12u4t_5", qe = {
825
+ slotStack: yn
826
+ }, xn = (e) => {
827
+ const {
828
+ userFlow: t,
829
+ pageId: a,
830
+ component: s,
831
+ hash: c,
832
+ responseKey: i,
833
+ dependencies: l,
834
+ content: n,
835
+ actionContent: d,
836
+ ...r
837
+ } = e, { disabled: u } = B(
838
+ t,
839
+ l
840
+ ), f = S(
841
+ t,
842
+ a,
843
+ n && n.length > 0 ? n : null
844
+ ), _ = S(
845
+ t,
846
+ a,
847
+ d && d.length > 0 ? d : null
848
+ ), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: f.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-body-${c}-${y}`)) }) : void 0, b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-actions-${c}-${y}`)) }) : void 0, m = r.disabled || u;
849
+ return /* @__PURE__ */ o.jsx(
850
+ nt,
851
+ {
852
+ ...r,
853
+ disabled: m,
854
+ actionContent: b,
855
+ children: h ?? null
856
+ }
857
+ );
858
+ }, gn = "_cardNotificationNotFront_t7pln_1", pn = {
859
+ cardNotificationNotFront: gn
860
+ }, bn = (e) => {
861
+ const { content: t, description: a, ...s } = e, c = {
790
862
  ...s,
791
863
  children: t ?? a
792
864
  };
793
865
  return /* @__PURE__ */ o.jsx(
794
866
  me,
795
867
  {
796
- ...i,
797
- className: ln.cardNotificationNotFront
868
+ ...c,
869
+ className: pn.cardNotificationNotFront
798
870
  }
799
871
  );
800
- }, _n = (e) => {
872
+ }, jn = (e) => {
801
873
  const {
802
874
  userFlow: t,
803
875
  pageId: a,
804
876
  responseKey: s,
805
- actionType: i,
806
- label: c,
877
+ actionType: c,
878
+ label: i,
807
879
  value: l,
808
880
  required: n,
809
881
  dependencies: d,
810
882
  ...r
811
883
  } = e, u = {
812
884
  ...r
813
- }, { getNextUI: f } = I(), [_, h] = q(l || !1), { disabled: j } = M(
885
+ }, { getNextUI: f } = I(), [_, h] = T(l || !1), { disabled: b } = B(
814
886
  t,
815
887
  d
816
- ), m = S(() => n && c ? `${c} *` : c ?? "", [c, n]), x = D(async () => {
888
+ ), m = $(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
817
889
  var g;
818
890
  try {
819
891
  const p = !_;
@@ -822,26 +894,26 @@ const Ut = (e) => {
822
894
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
823
895
  [s]: p
824
896
  };
825
- switch (L(t, N), i) {
897
+ switch (O(t, N), c) {
826
898
  case "GO_TO_NEXT_UI":
827
- const b = await f(
899
+ const j = await f(
828
900
  t,
829
901
  a,
830
902
  N,
831
903
  s
832
904
  );
833
- b != null && b.data && T(t, b == null ? void 0 : b.data);
905
+ j != null && j.data && A(t, j == null ? void 0 : j.data);
834
906
  break;
835
907
  default:
836
- console.warn(`Unhandled actionType: ${i}`);
908
+ console.warn(`Unhandled actionType: ${c}`);
837
909
  break;
838
910
  }
839
911
  } catch (p) {
840
912
  console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
841
913
  }
842
- }, [t, a, s, i, _]), y = (u == null ? void 0 : u.disabled) ?? j;
914
+ }, [t, a, s, c, _]), y = (u == null ? void 0 : u.disabled) ?? b;
843
915
  return /* @__PURE__ */ o.jsx(
844
- Fe,
916
+ st,
845
917
  {
846
918
  ...u,
847
919
  labelRight: m,
@@ -852,56 +924,56 @@ const Ut = (e) => {
852
924
  }
853
925
  }
854
926
  );
855
- }, un = "_codeEditor_1coz7_1", hn = "_codeEditor_label_1coz7_4", fn = "_codeEditor_wrapper_1coz7_13", mn = "_input_1coz7_17", yn = "_preview_1coz7_18", Y = {
856
- codeEditor: un,
857
- codeEditor_label: hn,
858
- codeEditor_wrapper: fn,
859
- input: mn,
860
- preview: yn
861
- }, xn = (e) => {
927
+ }, wn = "_codeEditor_1coz7_1", Cn = "_codeEditor_label_1coz7_4", Nn = "_codeEditor_wrapper_1coz7_13", vn = "_input_1coz7_17", Sn = "_preview_1coz7_18", Y = {
928
+ codeEditor: wn,
929
+ codeEditor_label: Cn,
930
+ codeEditor_wrapper: Nn,
931
+ input: vn,
932
+ preview: Sn
933
+ }, En = (e) => {
862
934
  const {
863
935
  userFlow: t,
864
936
  responseKey: a,
865
937
  label: s,
866
- language: i,
867
- placeholder: c,
938
+ language: c,
939
+ placeholder: i,
868
940
  value: l,
869
941
  required: n,
870
942
  dependencies: d,
871
943
  disabled: r,
872
944
  showPreview: u
873
- } = e, [f, _] = q(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: j } = M(
945
+ } = e, [f, _] = T(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: b } = B(
874
946
  t,
875
947
  d
876
- ), m = r ?? j, x = {
948
+ ), m = r ?? b, x = {
877
949
  json: we(),
878
- markdown: gt(),
879
- sql: bt(),
880
- yaml: pt()
881
- }, y = S(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
950
+ markdown: Nt(),
951
+ sql: vt(),
952
+ yaml: St()
953
+ }, y = $(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
882
954
  _(p);
883
955
  const N = {
884
956
  [a]: p
885
957
  };
886
- L(t, N);
958
+ O(t, N);
887
959
  };
888
960
  return /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor, children: [
889
961
  y && y !== "" && /* @__PURE__ */ o.jsx("label", { className: Y.codeEditor_label, children: y }),
890
962
  /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor_wrapper, children: [
891
963
  /* @__PURE__ */ o.jsx(
892
- xt,
964
+ Ct,
893
965
  {
894
966
  className: Y.input,
895
967
  value: f,
896
968
  height: "400px",
897
- placeholder: c,
898
- extensions: [x[i] ?? we()],
969
+ placeholder: i,
970
+ extensions: [x[c] ?? we()],
899
971
  onChange: (p) => g(p),
900
972
  theme: h,
901
973
  editable: !m
902
974
  }
903
975
  ),
904
- i == "markdown" && u && /* @__PURE__ */ o.jsx(Pe, { className: Y.preview, children: f })
976
+ c == "markdown" && u && /* @__PURE__ */ o.jsx(Ie, { className: Y.preview, children: f })
905
977
  ] })
906
978
  ] });
907
979
  };
@@ -911,30 +983,30 @@ var de = { exports: {} };
911
983
  Licensed under the MIT License (MIT), see
912
984
  http://jedwatson.github.io/classnames
913
985
  */
914
- var qe;
915
- function gn() {
916
- return qe || (qe = 1, (function(e) {
986
+ var Te;
987
+ function kn() {
988
+ return Te || (Te = 1, (function(e) {
917
989
  (function() {
918
990
  var t = {}.hasOwnProperty;
919
991
  function a() {
920
- for (var s = [], i = 0; i < arguments.length; i++) {
921
- var c = arguments[i];
922
- if (c) {
923
- var l = typeof c;
992
+ for (var s = [], c = 0; c < arguments.length; c++) {
993
+ var i = arguments[c];
994
+ if (i) {
995
+ var l = typeof i;
924
996
  if (l === "string" || l === "number")
925
- s.push(c);
926
- else if (Array.isArray(c)) {
927
- if (c.length) {
928
- var n = a.apply(null, c);
997
+ s.push(i);
998
+ else if (Array.isArray(i)) {
999
+ if (i.length) {
1000
+ var n = a.apply(null, i);
929
1001
  n && s.push(n);
930
1002
  }
931
1003
  } else if (l === "object") {
932
- if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
933
- s.push(c.toString());
1004
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
1005
+ s.push(i.toString());
934
1006
  continue;
935
1007
  }
936
- for (var d in c)
937
- t.call(c, d) && c[d] && s.push(d);
1008
+ for (var d in i)
1009
+ t.call(i, d) && i[d] && s.push(d);
938
1010
  }
939
1011
  }
940
1012
  }
@@ -944,34 +1016,67 @@ function gn() {
944
1016
  })();
945
1017
  })(de)), de.exports;
946
1018
  }
947
- var bn = gn();
948
- const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
949
- dividerNotFront: pn
950
- }, wn = (e) => /* @__PURE__ */ o.jsx(et, { ...e, className: jn.dividerNotFront }), Cn = (e, t, a) => {
951
- const { url: s, paginationKeys: i, params: c } = e, l = [], n = (i == null ? void 0 : i.page) ?? "page";
1019
+ var $n = kn();
1020
+ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1021
+ slotStack: qn
1022
+ }, Tn = (e) => {
1023
+ const {
1024
+ userFlow: t,
1025
+ pageId: a,
1026
+ component: s,
1027
+ hash: c,
1028
+ responseKey: i,
1029
+ content: l,
1030
+ topContent: n,
1031
+ icon: d,
1032
+ headerStatusColor: r,
1033
+ ...u
1034
+ } = e, f = r ? `palette_${r}_50` : void 0, _ = S(
1035
+ t,
1036
+ a,
1037
+ l && l.length > 0 ? l : null
1038
+ ), h = S(
1039
+ t,
1040
+ a,
1041
+ n && n.length > 0 ? n : null
1042
+ ), b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-body-${c}-${y}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-top-${c}-${y}`)) }) : void 0;
1043
+ return /* @__PURE__ */ o.jsx(
1044
+ at,
1045
+ {
1046
+ ...u,
1047
+ icon: d,
1048
+ headerStatusColor: f,
1049
+ topContent: m,
1050
+ children: b
1051
+ }
1052
+ );
1053
+ }, An = "_dividerNotFront_tze3j_1", On = {
1054
+ dividerNotFront: An
1055
+ }, Rn = (e) => /* @__PURE__ */ o.jsx(rt, { ...e, className: On.dividerNotFront }), Dn = (e, t, a) => {
1056
+ const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
952
1057
  if (l.push(`${n}=${t}`), typeof a == "string") {
953
- const u = (i == null ? void 0 : i.text) ?? "text";
1058
+ const u = (c == null ? void 0 : c.text) ?? "text";
954
1059
  l.push(`${u}=${encodeURIComponent(a || "")}`);
955
1060
  }
956
- if (c && typeof c == "object") {
957
- const u = Object.entries(c).map(
1061
+ if (i && typeof i == "object") {
1062
+ const u = Object.entries(i).map(
958
1063
  ([f, _]) => `${encodeURIComponent(f)}=${encodeURIComponent(_)}`
959
1064
  );
960
1065
  l.push(...u);
961
1066
  }
962
1067
  const d = l.join("&");
963
1068
  return d ? `${s}?${d}` : s;
964
- }, be = (e, t, a) => {
965
- const { type: s, url: i, method: c, headers: l } = e;
1069
+ }, pe = (e, t, a) => {
1070
+ const { type: s, url: c, method: i, headers: l } = e;
966
1071
  return s === "rest" ? {
967
1072
  type: "rest",
968
- url: Cn(e, t, a),
969
- method: c,
1073
+ url: Dn(e, t, a),
1074
+ method: i,
970
1075
  headers: l,
971
1076
  data: (e == null ? void 0 : e.data) || {}
972
1077
  } : {
973
1078
  type: "graphql",
974
- url: i,
1079
+ url: c,
975
1080
  method: "post",
976
1081
  headers: l,
977
1082
  query: e == null ? void 0 : e.query,
@@ -981,152 +1086,152 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
981
1086
  page: t
982
1087
  }
983
1088
  };
984
- }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ze = (e, t, a, s) => {
985
- const i = B.query(e, t), c = i == null ? void 0 : i.map((r) => {
1089
+ }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ue = (e, t, a, s) => {
1090
+ const c = K.query(e, t), i = c == null ? void 0 : c.map((r) => {
986
1091
  var u, f;
987
1092
  if (a) {
988
1093
  const _ = {};
989
- for (const [h, j] of Object.entries(a))
990
- if (typeof j == "object" && "path" in j) {
991
- const m = j, x = (u = B.query(r, m.path)) == null ? void 0 : u[0];
1094
+ for (const [h, b] of Object.entries(a))
1095
+ if (typeof b == "object" && "path" in b) {
1096
+ const m = b, x = (u = K.query(r, m.path)) == null ? void 0 : u[0];
992
1097
  m.translations && String(x) in m.translations ? _[h] = _e(
993
1098
  m.translations[String(x)]
994
1099
  ) : _[h] = _e(x);
995
1100
  } else {
996
- const m = j;
997
- _[h] = _e((f = B.query(r, m)) == null ? void 0 : f[0]);
1101
+ const m = b;
1102
+ _[h] = _e((f = K.query(r, m)) == null ? void 0 : f[0]);
998
1103
  }
999
1104
  return _;
1000
1105
  } else
1001
1106
  return r;
1002
- }), l = B.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? i.length, n = B.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
1107
+ }), l = K.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? c.length, n = K.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
1003
1108
  size: l,
1004
1109
  total: n,
1005
- totalPages: s != null && s.totalPages ? B.value(
1110
+ totalPages: s != null && s.totalPages ? K.value(
1006
1111
  e,
1007
1112
  (s == null ? void 0 : s.totalPages) ?? "$.meta.totalPages"
1008
1113
  ) : l > 0 ? Math.ceil(n / l) : 0
1009
1114
  };
1010
- return { items: c, pagination: d };
1115
+ return { items: i, pagination: d };
1011
1116
  }, se = ({ withPadding: e = !1 }) => {
1012
- const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: R.labelColor }, children: a });
1117
+ const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: L.labelColor }, children: a });
1013
1118
  return /* @__PURE__ */ o.jsx(
1014
- jt,
1119
+ Et,
1015
1120
  {
1016
1121
  formatter: t,
1017
1122
  wrapperStyle: {
1018
- fontSize: R.fontSize,
1019
- fontFamily: R.fontFamily,
1123
+ fontSize: L.fontSize,
1124
+ fontFamily: L.fontFamily,
1020
1125
  padding: e ? "1rem 0" : "0"
1021
1126
  }
1022
1127
  }
1023
1128
  );
1024
- }, Nn = ({
1129
+ }, Ln = ({
1025
1130
  active: e,
1026
1131
  payload: t,
1027
1132
  label: a,
1028
1133
  tooltipKey: s
1029
1134
  }) => {
1030
- var c;
1135
+ var i;
1031
1136
  if (!e || !t || !t.length)
1032
1137
  return null;
1033
- const i = {
1034
- backgroundColor: R.tooltipBg,
1035
- borderRadius: R.tooltipBorderRadius,
1036
- color: R.tooltipColor,
1138
+ const c = {
1139
+ backgroundColor: L.tooltipBg,
1140
+ borderRadius: L.tooltipBorderRadius,
1141
+ color: L.tooltipColor,
1037
1142
  padding: "8px 12px",
1038
1143
  border: "1px solid #e5e7eb"
1039
1144
  };
1040
1145
  if (s) {
1041
- const l = (c = t[0]) == null ? void 0 : c.payload;
1146
+ const l = (i = t[0]) == null ? void 0 : i.payload;
1042
1147
  if (l && l[s] !== void 0 && l[s] !== null)
1043
- return /* @__PURE__ */ o.jsx("div", { style: i, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: l[s] }) });
1148
+ return /* @__PURE__ */ o.jsx("div", { style: c, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: l[s] }) });
1044
1149
  }
1045
- return /* @__PURE__ */ o.jsxs("div", { style: i, children: [
1150
+ return /* @__PURE__ */ o.jsxs("div", { style: c, children: [
1046
1151
  /* @__PURE__ */ o.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: a }),
1047
1152
  t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
1048
1153
  ] });
1049
1154
  }, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
1050
- wt,
1155
+ kt,
1051
1156
  {
1052
- content: /* @__PURE__ */ o.jsx(Nn, { tooltipKey: e })
1157
+ content: /* @__PURE__ */ o.jsx(Ln, { tooltipKey: e })
1053
1158
  }
1054
- ), pe = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
1055
- Ct,
1159
+ ), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
1160
+ $t,
1056
1161
  {
1057
1162
  dataKey: e,
1058
1163
  hide: t,
1059
1164
  tick: {
1060
- fill: R.labelColor,
1061
- fontSize: R.fontSize
1165
+ fill: L.labelColor,
1166
+ fontSize: L.fontSize
1062
1167
  }
1063
1168
  }
1064
1169
  ), je = () => /* @__PURE__ */ o.jsx(
1065
- Nt,
1170
+ qt,
1066
1171
  {
1067
1172
  tick: {
1068
- fill: R.labelColor,
1069
- fontSize: R.fontSize
1173
+ fill: L.labelColor,
1174
+ fontSize: L.fontSize
1070
1175
  }
1071
1176
  }
1072
- ), vn = (e) => {
1073
- const { data: t, xKey: a, yKeys: s, tooltipKey: i } = e;
1074
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(vt, { data: t, children: [
1177
+ ), Bn = (e) => {
1178
+ const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1179
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Tt, { data: t, children: [
1075
1180
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1076
- /* @__PURE__ */ o.jsx(pe, { dataKey: a }),
1181
+ /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1077
1182
  /* @__PURE__ */ o.jsx(je, {}),
1078
- /* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
1183
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1079
1184
  /* @__PURE__ */ o.jsx(se, {}),
1080
- s.map((c, l) => /* @__PURE__ */ o.jsx(
1081
- Et,
1185
+ s.map((i, l) => /* @__PURE__ */ o.jsx(
1186
+ At,
1082
1187
  {
1083
1188
  type: "monotone",
1084
- dataKey: c,
1189
+ dataKey: i,
1085
1190
  stroke: z[l % z.length],
1086
1191
  fill: z[l % z.length]
1087
1192
  },
1088
- c
1193
+ i
1089
1194
  ))
1090
1195
  ] }) });
1091
- }, En = (e) => {
1092
- const { data: t, yKeys: a, xKey: s, tooltipKey: i } = e;
1093
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(St, { data: t, children: [
1196
+ }, In = (e) => {
1197
+ const { data: t, yKeys: a, xKey: s, tooltipKey: c } = e;
1198
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ot, { data: t, children: [
1094
1199
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1095
- /* @__PURE__ */ o.jsx(pe, { hide: !0, dataKey: s }),
1200
+ /* @__PURE__ */ o.jsx(be, { hide: !0, dataKey: s }),
1096
1201
  /* @__PURE__ */ o.jsx(je, {}),
1097
- /* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
1202
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1098
1203
  /* @__PURE__ */ o.jsx(se, { withPadding: !0 }),
1099
- a.map((c, l) => /* @__PURE__ */ o.jsx(
1100
- kt,
1204
+ a.map((i, l) => /* @__PURE__ */ o.jsx(
1205
+ Rt,
1101
1206
  {
1102
- dataKey: c,
1207
+ dataKey: i,
1103
1208
  fill: z[l % z.length]
1104
1209
  },
1105
- c
1210
+ i
1106
1211
  ))
1107
1212
  ] }) });
1108
- }, Sn = (e) => {
1109
- const { data: t, xKey: a, yKeys: s, tooltipKey: i } = e;
1110
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(qt, { data: t, children: [
1213
+ }, Kn = (e) => {
1214
+ const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1215
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
1111
1216
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1112
- /* @__PURE__ */ o.jsx(pe, { dataKey: a }),
1217
+ /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1113
1218
  /* @__PURE__ */ o.jsx(je, {}),
1114
- /* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
1219
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1115
1220
  /* @__PURE__ */ o.jsx(se, {}),
1116
- s.map((c, l) => /* @__PURE__ */ o.jsx(
1117
- Ot,
1221
+ s.map((i, l) => /* @__PURE__ */ o.jsx(
1222
+ Lt,
1118
1223
  {
1119
1224
  type: "monotone",
1120
- dataKey: c,
1225
+ dataKey: i,
1121
1226
  stroke: z[l % z.length],
1122
1227
  strokeWidth: 2,
1123
1228
  dot: !1
1124
1229
  },
1125
- c
1230
+ i
1126
1231
  ))
1127
1232
  ] }) });
1128
- }, kn = (e) => {
1129
- const { data: t, xKey: a, yKeys: s, tooltipKey: i } = e, c = ({
1233
+ }, zn = (e) => {
1234
+ const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
1130
1235
  cx: l,
1131
1236
  cy: n,
1132
1237
  midAngle: d,
@@ -1134,33 +1239,33 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1134
1239
  outerRadius: u,
1135
1240
  value: f
1136
1241
  }) => {
1137
- const _ = Math.PI / 180, h = 25 + r + (u - r), j = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1242
+ const _ = Math.PI / 180, h = 25 + r + (u - r), b = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1138
1243
  return /* @__PURE__ */ o.jsx(
1139
1244
  "text",
1140
1245
  {
1141
- x: j,
1246
+ x: b,
1142
1247
  y: m,
1143
- fill: R.labelColor,
1144
- color: R.labelColor,
1248
+ fill: L.labelColor,
1249
+ color: L.labelColor,
1145
1250
  textAnchor: "middle",
1146
1251
  dominantBaseline: "central",
1147
1252
  children: f
1148
1253
  }
1149
1254
  );
1150
1255
  };
1151
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(At, { children: [
1152
- /* @__PURE__ */ o.jsx(ae, { tooltipKey: i }),
1256
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Bt, { children: [
1257
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1153
1258
  /* @__PURE__ */ o.jsx(se, {}),
1154
1259
  /* @__PURE__ */ o.jsx(
1155
- Tt,
1260
+ It,
1156
1261
  {
1157
1262
  data: t,
1158
1263
  dataKey: s[0],
1159
1264
  nameKey: a,
1160
- label: c,
1265
+ label: i,
1161
1266
  outerRadius: 120,
1162
1267
  children: t.map((l, n) => /* @__PURE__ */ o.jsx(
1163
- $t,
1268
+ Kt,
1164
1269
  {
1165
1270
  fill: z[n % z.length]
1166
1271
  },
@@ -1169,11 +1274,11 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1169
1274
  }
1170
1275
  )
1171
1276
  ] }) });
1172
- }, qn = {
1173
- area: vn,
1174
- bar: En,
1175
- line: Sn,
1176
- pie: kn
1277
+ }, Mn = {
1278
+ area: Bn,
1279
+ bar: In,
1280
+ line: Kn,
1281
+ pie: zn
1177
1282
  }, z = [
1178
1283
  "var(--color-primitive-palette-1-50)",
1179
1284
  "var(--color-primitive-palette-2-50)",
@@ -1192,87 +1297,116 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1192
1297
  "var(--color-primitive-palette-15-50)",
1193
1298
  "var(--color-primitive-palette-16-50)",
1194
1299
  "var(--color-primitive-palette-17-50)"
1195
- ], R = {
1300
+ ], L = {
1196
1301
  fontFamily: "Roboto, sans-serif",
1197
1302
  fontSize: 12,
1198
1303
  labelColor: "var(--color-neutral-90)",
1199
1304
  tooltipBg: "#fff",
1200
1305
  tooltipColor: "#000",
1201
1306
  tooltipBorderRadius: "4px"
1202
- }, On = (e) => {
1203
- const { component: t, userFlow: a, hash: s, responseKey: i, dataSource: c, ...l } = e, n = qn[l.type];
1307
+ }, Gn = (e) => {
1308
+ const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = Mn[l.type];
1204
1309
  if (!n)
1205
1310
  return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
1206
- const { fetchDataSource: d } = I(), [r, u] = q(!1), [f, _] = q([]), h = async () => {
1311
+ const { fetchDataSource: d } = I(), [r, u] = T(!1), [f, _] = T([]), h = async () => {
1207
1312
  var m, x;
1208
1313
  try {
1209
1314
  u(!0);
1210
- const { jsonPathData: y, mapperData: g } = c, p = be(
1211
- c,
1315
+ const { jsonPathData: y, mapperData: g } = i, p = pe(
1316
+ i,
1212
1317
  1
1213
1318
  ), N = await d(
1214
1319
  p,
1215
1320
  a,
1216
1321
  !1
1217
- ), b = y ? (m = ze(N == null ? void 0 : N.data, y, g)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1218
- _(b), u(!1);
1322
+ ), j = y ? (m = Ue(N == null ? void 0 : N.data, y, g)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1323
+ _(j), u(!1);
1219
1324
  } catch (y) {
1220
1325
  alert(JSON.stringify(y)), u(!1);
1221
1326
  }
1222
1327
  };
1223
- K(() => {
1224
- c ? h() : _(l.data);
1328
+ M(() => {
1329
+ i ? h() : _(l.data);
1225
1330
  }, []);
1226
- const j = {
1331
+ const b = {
1227
1332
  ...l,
1228
1333
  data: f
1229
1334
  };
1230
- return r ? /* @__PURE__ */ o.jsx(De, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1231
- }, An = "_header_g1eri_1", Tn = "_header_content_g1eri_5", Oe = {
1232
- header: An,
1233
- header_content: Tn
1234
- }, $n = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(A, { children: t }, a)) }) }), O = (e, t, a, s) => {
1235
- var l;
1236
- const i = {
1237
- accordion: (n) => /* @__PURE__ */ o.jsx(Cs, { ...n, userFlow: e, pageId: t }),
1238
- aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Vt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
1239
- aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(Wt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
1240
- aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Zt, { ...n, userFlow: e, pageId: t }),
1241
- breadcrumbs: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
1242
- button: (n) => /* @__PURE__ */ o.jsx(cn, { ...n, userFlow: e, pageId: t }),
1243
- cardNotification: (n) => /* @__PURE__ */ o.jsx(dn, { ...n }),
1244
- chart: (n) => /* @__PURE__ */ o.jsx(On, { ...n, userFlow: e }),
1245
- checkbox: (n) => /* @__PURE__ */ o.jsx(_n, { ...n, userFlow: e, pageId: t }),
1246
- code: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
1247
- divider: (n) => /* @__PURE__ */ o.jsx(wn, { ...n }),
1248
- drawer: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
1249
- heading: (n) => Ut(n),
1250
- pill: (n) => /* @__PURE__ */ o.jsx(zn, { ...n }),
1251
- modal: (n) => /* @__PURE__ */ o.jsx(Ln, { ...n, userFlow: e, pageId: t }),
1252
- roundButton: (n) => /* @__PURE__ */ o.jsx(Mn, { ...n, userFlow: e, pageId: t }),
1253
- row: (n) => /* @__PURE__ */ o.jsx(Un, { ...n, userFlow: e, pageId: t }),
1254
- select: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
1255
- switch: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: e, pageId: t }),
1256
- spacing: (n) => /* @__PURE__ */ o.jsx(rs, { ...n, userFlow: e, pageId: t }),
1257
- table: (n) => /* @__PURE__ */ o.jsx(us, { ...n, userFlow: e, pageId: t }),
1258
- tabs: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: e, pageId: t }),
1259
- text: (n) => Jt(n),
1260
- textField: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
1261
- toast: (n) => /* @__PURE__ */ o.jsx(ps, { ...n, userFlow: e, pageId: t })
1262
- };
1263
- return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
1264
- const d = i[n.component];
1265
- return d ? d({ ...n, userFlow: e, pageId: t }) : null;
1266
- });
1267
- }, Rn = "_modalContent_p06ci_1", Dn = {
1268
- modalContent: Rn
1269
- }, Ln = ({
1335
+ return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(b) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1336
+ }, Un = "_header_g1eri_1", Jn = "_header_content_g1eri_5", Oe = {
1337
+ header: Un,
1338
+ header_content: Jn
1339
+ }, Vn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), Hn = (e) => {
1340
+ const {
1341
+ userFlow: t,
1342
+ pageId: a,
1343
+ responseKey: s,
1344
+ actionType: c,
1345
+ content: i,
1346
+ redirectUrl: l,
1347
+ target: n,
1348
+ dependencies: d,
1349
+ component: r,
1350
+ hash: u,
1351
+ ...f
1352
+ } = e, { getNextUI: _ } = I(), { disabled: h } = B(
1353
+ t,
1354
+ d
1355
+ ), b = c && f ? (() => {
1356
+ const { href: y, target: g, download: p, ...N } = f;
1357
+ return N;
1358
+ })() : f, m = R(async () => {
1359
+ var y;
1360
+ if (c)
1361
+ try {
1362
+ const g = {
1363
+ ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1364
+ [s]: { status: 200 }
1365
+ };
1366
+ switch (O(t, g), c) {
1367
+ case "GO_TO_NEXT_UI": {
1368
+ const p = await _(
1369
+ t,
1370
+ a,
1371
+ g,
1372
+ s
1373
+ );
1374
+ p != null && p.data && A(t, p == null ? void 0 : p.data);
1375
+ break;
1376
+ }
1377
+ case "REDIRECT":
1378
+ if (!l) {
1379
+ console.warn("Missing redirectUrl for REDIRECT actionType");
1380
+ break;
1381
+ }
1382
+ n === "_blank" ? window.open(l, "_blank", "noopener,noreferrer") : window.location.assign(l);
1383
+ break;
1384
+ default:
1385
+ console.warn(`Unhandled actionType for link: ${c}`);
1386
+ break;
1387
+ }
1388
+ } catch (g) {
1389
+ alert(JSON.stringify(g));
1390
+ }
1391
+ }, [c, _, a, l, s, n, t]), x = b.disabled ?? h;
1392
+ return /* @__PURE__ */ o.jsx(
1393
+ ot,
1394
+ {
1395
+ ...b,
1396
+ disabled: x,
1397
+ onClick: c ? m : void 0,
1398
+ children: i
1399
+ }
1400
+ );
1401
+ }, Xn = "_modalContent_p06ci_1", Wn = {
1402
+ modalContent: Xn
1403
+ }, Qn = ({
1270
1404
  userFlow: e,
1271
1405
  pageId: t,
1272
1406
  responseKey: a,
1273
1407
  header: s,
1274
- body: i,
1275
- footer: c,
1408
+ body: c,
1409
+ footer: i,
1276
1410
  headerStatusColor: l,
1277
1411
  ...n
1278
1412
  }) => {
@@ -1284,40 +1418,40 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1284
1418
  return (g = y[e]) == null ? void 0 : g.isLoading;
1285
1419
  }), u = d && !r, f = {
1286
1420
  ...n
1287
- }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = D(() => {
1421
+ }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
1288
1422
  xe(e), ge(e, !1);
1289
- }, [e, a]), j = Array.isArray(s) ? O(e, t, s) : s, m = O(e, t, i), x = O(e, t, c);
1423
+ }, [e, a]), b = Array.isArray(s) ? S(e, t, s) : s, m = S(e, t, c), x = S(e, t, i);
1290
1424
  return /* @__PURE__ */ o.jsx(
1291
- tt,
1425
+ ct,
1292
1426
  {
1293
1427
  ...f,
1294
1428
  headerStatusColor: _,
1295
- header: typeof j == "string" ? j : /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((y, g) => /* @__PURE__ */ o.jsx(A, { children: y }, `modal-header-${g}`)) }),
1296
- children: /* @__PURE__ */ o.jsx("section", { className: Dn.modalContent, children: m.map((y, g) => /* @__PURE__ */ o.jsx(A, { children: y }, `modal-body-${g}`)) }),
1297
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, g) => /* @__PURE__ */ o.jsx(A, { children: y }, `modal-footer-${g}`)) }),
1429
+ header: typeof b == "string" ? b : /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${g}`)) }),
1430
+ children: /* @__PURE__ */ o.jsx("section", { className: Wn.modalContent, children: m.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${g}`)) }),
1431
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${g}`)) }),
1298
1432
  open: u,
1299
1433
  onClose: h
1300
1434
  }
1301
1435
  );
1302
- }, Bn = ({ userFlow: e, pageId: t }) => {
1303
- var c, l;
1304
- const a = Lt(e);
1436
+ }, Yn = ({ userFlow: e, pageId: t }) => {
1437
+ var i, l;
1438
+ const a = Jt(e);
1305
1439
  if (!a)
1306
1440
  return null;
1307
1441
  const s = [
1308
1442
  ...(a == null ? void 0 : a.components) || [],
1309
- ...((c = a == null ? void 0 : a.header) == null ? void 0 : c.components) || [],
1443
+ ...((i = a == null ? void 0 : a.header) == null ? void 0 : i.components) || [],
1310
1444
  ...((l = a == null ? void 0 : a.body) == null ? void 0 : l.components) || []
1311
- ], i = O(
1445
+ ], c = S(
1312
1446
  e,
1313
1447
  t,
1314
1448
  s
1315
1449
  );
1316
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: i == null ? void 0 : i.map((n, d) => {
1450
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
1317
1451
  const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
1318
- return /* @__PURE__ */ o.jsx(A, { children: n }, r);
1452
+ return /* @__PURE__ */ o.jsx(k, { children: n }, r);
1319
1453
  }) });
1320
- }, In = {
1454
+ }, Zn = {
1321
1455
  success: {
1322
1456
  color: "success-opacity",
1323
1457
  textColor: "success-60",
@@ -1343,38 +1477,41 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1343
1477
  textColor: "neutral-70",
1344
1478
  iconColor: "neutral-70"
1345
1479
  }
1346
- }, zn = (e) => {
1347
- const { content: t, variant: a = "neutral", ...s } = e, i = In[a], c = {
1480
+ }, Fn = (e) => {
1481
+ const { content: t, variant: a = "neutral", ...s } = e, c = Zn[a], i = {
1348
1482
  ...s,
1349
1483
  children: t,
1350
- color: (s == null ? void 0 : s.color) ?? i.color,
1351
- textColor: (s == null ? void 0 : s.textColor) ?? i.textColor,
1352
- iconColor: (s == null ? void 0 : s.iconColor) ?? i.iconColor
1484
+ color: (s == null ? void 0 : s.color) ?? c.color,
1485
+ textColor: (s == null ? void 0 : s.textColor) ?? c.textColor,
1486
+ iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
1353
1487
  };
1354
- return /* @__PURE__ */ o.jsx(he, { ...c });
1355
- }, Mn = (e) => {
1488
+ return /* @__PURE__ */ o.jsx(he, { ...i });
1489
+ }, Pn = (e) => {
1490
+ const { content: t } = e;
1491
+ return /* @__PURE__ */ o.jsx(Ie, { children: t });
1492
+ }, es = (e) => {
1356
1493
  const {
1357
1494
  userFlow: t,
1358
1495
  pageId: a,
1359
1496
  responseKey: s,
1360
- actionType: i,
1361
- dataSource: c,
1497
+ actionType: c,
1498
+ dataSource: i,
1362
1499
  dependencies: l,
1363
1500
  onClick: n,
1364
1501
  ...d
1365
- } = e, { getNextUI: r, fetchAndGetNextUI: u } = I(), { disabled: f } = M(
1502
+ } = e, { getNextUI: r, fetchAndGetNextUI: u } = I(), { disabled: f } = B(
1366
1503
  t,
1367
1504
  l
1368
1505
  ), _ = {
1369
1506
  ...d
1370
- }, h = (_ == null ? void 0 : _.disabled) ?? f, j = D(async () => {
1507
+ }, h = (_ == null ? void 0 : _.disabled) ?? f, b = R(async () => {
1371
1508
  var m;
1372
1509
  try {
1373
1510
  const x = {
1374
1511
  ...(m = v.getState()[t]) == null ? void 0 : m.entries,
1375
1512
  [s]: { status: 200 }
1376
1513
  };
1377
- switch (L(t, x), i) {
1514
+ switch (O(t, x), c) {
1378
1515
  case "GO_TO_NEXT_UI": {
1379
1516
  const y = await r(
1380
1517
  t,
@@ -1382,7 +1519,7 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1382
1519
  x,
1383
1520
  s
1384
1521
  );
1385
- y != null && y.data && T(t, y == null ? void 0 : y.data);
1522
+ y != null && y.data && A(t, y == null ? void 0 : y.data);
1386
1523
  break;
1387
1524
  }
1388
1525
  case "FETCH_AND_GO_TO_NEXT_UI": {
@@ -1391,9 +1528,9 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1391
1528
  a,
1392
1529
  x,
1393
1530
  s,
1394
- c
1531
+ i
1395
1532
  );
1396
- y != null && y.data && T(t, y == null ? void 0 : y.data);
1533
+ y != null && y.data && A(t, y == null ? void 0 : y.data);
1397
1534
  break;
1398
1535
  }
1399
1536
  case "CLOSE_MODAL":
@@ -1406,23 +1543,23 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1406
1543
  Z(t, !0);
1407
1544
  break;
1408
1545
  default:
1409
- console.warn(`Unhandled actionType: ${i}`);
1546
+ console.warn(`Unhandled actionType: ${c}`);
1410
1547
  break;
1411
1548
  }
1412
1549
  } catch (x) {
1413
1550
  alert(JSON.stringify(x));
1414
1551
  }
1415
- }, [i, c, a, s, t]);
1552
+ }, [c, i, a, s, t]);
1416
1553
  return /* @__PURE__ */ o.jsx(
1417
- nt,
1554
+ it,
1418
1555
  {
1419
1556
  ..._,
1420
1557
  disabled: h,
1421
- onClick: () => !h && (n ?? j)()
1558
+ onClick: () => !h && (n ?? b)()
1422
1559
  }
1423
1560
  );
1424
- }, Kn = "_row_1bqj4_1", Gn = "_row_column_1bqj4_65", J = {
1425
- row: Kn,
1561
+ }, ts = "_row_1bqj4_1", ns = "_row_column_1bqj4_65", J = {
1562
+ row: ts,
1426
1563
  "row__gap-none": "_row__gap-none_1bqj4_5",
1427
1564
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
1428
1565
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -1443,7 +1580,7 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1443
1580
  "row__align-center": "_row__align-center_1bqj4_56",
1444
1581
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
1445
1582
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
1446
- row_column: Gn,
1583
+ row_column: ns,
1447
1584
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
1448
1585
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
1449
1586
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -1464,16 +1601,16 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1464
1601
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
1465
1602
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
1466
1603
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
1467
- }, Un = (e) => {
1604
+ }, ss = (e) => {
1468
1605
  const {
1469
1606
  userFlow: t,
1470
1607
  pageId: a,
1471
1608
  columnWidth: s,
1472
- columns: i,
1473
- gap: c = "md",
1609
+ columns: c,
1610
+ gap: i = "md",
1474
1611
  justifyContent: l = "start",
1475
1612
  alignItems: n = "stretch"
1476
- } = e, d = Array.isArray(i) ? i.map((r, u) => {
1613
+ } = e, d = Array.isArray(c) ? c.map((r, u) => {
1477
1614
  const f = `col_${u}`, _ = `col_${u}`;
1478
1615
  if (Array.isArray(r))
1479
1616
  return {
@@ -1499,12 +1636,12 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1499
1636
  {
1500
1637
  className: ee(
1501
1638
  J.row,
1502
- J[`row__gap-${c}`],
1639
+ J[`row__gap-${i}`],
1503
1640
  J[`row__justify-${l}`],
1504
1641
  J[`row__align-${n}`]
1505
1642
  ),
1506
1643
  children: d == null ? void 0 : d.map((r, u) => {
1507
- const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ = O(t, a, r.items);
1644
+ const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ = S(t, a, r.items);
1508
1645
  return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
1509
1646
  "div",
1510
1647
  {
@@ -1523,45 +1660,45 @@ const ee = /* @__PURE__ */ Mt(bn), pn = "_dividerNotFront_tze3j_1", jn = {
1523
1660
  }
1524
1661
  );
1525
1662
  };
1526
- function Me({
1663
+ function Je({
1527
1664
  userFlow: e,
1528
1665
  pageId: t,
1529
1666
  responseKey: a,
1530
1667
  actionType: s,
1531
- getNextUI: i,
1532
- isMulti: c = !1,
1668
+ getNextUI: c,
1669
+ isMulti: i = !1,
1533
1670
  debounceMs: l
1534
1671
  }) {
1535
- const n = Xe(null);
1536
- K(() => () => {
1672
+ const n = Ze(null);
1673
+ M(() => () => {
1537
1674
  n.current !== null && (clearTimeout(n.current), n.current = null);
1538
1675
  }, []);
1539
- const d = D(
1676
+ const d = R(
1540
1677
  async (u) => {
1541
1678
  var h;
1542
1679
  const f = {
1543
1680
  ...(h = v.getState()[e]) == null ? void 0 : h.entries,
1544
1681
  [a]: u
1545
1682
  };
1546
- if (L(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1683
+ if (O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1547
1684
  try {
1548
- const m = await i(
1685
+ const m = await c(
1549
1686
  e,
1550
1687
  t,
1551
1688
  f,
1552
1689
  a,
1553
1690
  s === "GO_TO_NEXT_UI"
1554
1691
  );
1555
- m != null && m.data && T(e, m.data);
1556
- } catch (j) {
1557
- console.error("[useSelectChange] Failed to fetch next UI", j);
1692
+ m != null && m.data && A(e, m.data);
1693
+ } catch (b) {
1694
+ console.error("[useSelectChange] Failed to fetch next UI", b);
1558
1695
  }
1559
1696
  },
1560
- [e, t, a, s, i]
1697
+ [e, t, a, s, c]
1561
1698
  );
1562
- return D(
1699
+ return R(
1563
1700
  (u) => {
1564
- if (!c) {
1701
+ if (!i) {
1565
1702
  d(u);
1566
1703
  return;
1567
1704
  }
@@ -1573,138 +1710,138 @@ function Me({
1573
1710
  d(u), n.current = null;
1574
1711
  }, l);
1575
1712
  },
1576
- [c, l, d]
1713
+ [i, l, d]
1577
1714
  );
1578
1715
  }
1579
- const Jn = (e, t, a, s) => {
1580
- const i = B.query(e, t);
1581
- return (i == null ? void 0 : i.map((c) => {
1716
+ const as = (e, t, a, s) => {
1717
+ const c = K.query(e, t);
1718
+ return (c == null ? void 0 : c.map((i) => {
1582
1719
  var d, r;
1583
- const l = (d = B.query(c, a)) == null ? void 0 : d[0], n = s ? (r = B.query(c, s)) == null ? void 0 : r[0] : c;
1720
+ const l = (d = K.query(i, a)) == null ? void 0 : d[0], n = s ? (r = K.query(i, s)) == null ? void 0 : r[0] : i;
1584
1721
  return { label: l, value: n };
1585
1722
  })) ?? [];
1586
- }, Vn = (e, t, a, s = 10) => {
1723
+ }, rs = (e, t, a, s = 10) => {
1587
1724
  var n, d;
1588
- let i, c;
1725
+ let c, i;
1589
1726
  if (a) {
1590
- const r = B.value(e, a.size ?? "$.meta.size") ?? s, u = B.value(e, a.total ?? "$.meta.total") ?? 0;
1591
- i = r, c = u;
1727
+ const r = K.value(e, a.size ?? "$.meta.size") ?? s, u = K.value(e, a.total ?? "$.meta.total") ?? 0;
1728
+ c = r, i = u;
1592
1729
  } else {
1593
1730
  const r = e == null ? void 0 : e.meta;
1594
- i = (r == null ? void 0 : r.size) ?? ((n = r == null ? void 0 : r.page) == null ? void 0 : n.size) ?? s, c = (r == null ? void 0 : r.total) ?? ((d = r == null ? void 0 : r.page) == null ? void 0 : d.total) ?? 0;
1731
+ c = (r == null ? void 0 : r.size) ?? ((n = r == null ? void 0 : r.page) == null ? void 0 : n.size) ?? s, i = (r == null ? void 0 : r.total) ?? ((d = r == null ? void 0 : r.page) == null ? void 0 : d.total) ?? 0;
1595
1732
  }
1596
- const l = c > 0 ? Math.ceil(c / i) > t : !1;
1733
+ const l = i > 0 ? Math.ceil(i / c) > t : !1;
1597
1734
  return {
1598
- pageSize: i,
1599
- total: c,
1735
+ pageSize: c,
1736
+ total: i,
1600
1737
  hasMore: l
1601
1738
  };
1602
- }, Hn = "_selectNotFront_1yw9q_1", Ke = {
1603
- selectNotFront: Hn
1604
- }, Xn = ({
1739
+ }, os = "_selectNotFront_1yw9q_1", Ve = {
1740
+ selectNotFront: os
1741
+ }, cs = ({
1605
1742
  userFlow: e,
1606
1743
  pageId: t,
1607
1744
  responseKey: a,
1608
1745
  required: s,
1609
- dataSource: i,
1610
- actionType: c,
1746
+ dataSource: c,
1747
+ actionType: i,
1611
1748
  dependencies: l,
1612
1749
  debounceMs: n,
1613
1750
  ...d
1614
1751
  }) => {
1615
1752
  const r = {
1616
1753
  ...d
1617
- }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = q((r == null ? void 0 : r.value) ?? ""), { disabled: j } = M(
1754
+ }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = T((r == null ? void 0 : r.value) ?? ""), { disabled: b } = B(
1618
1755
  e,
1619
1756
  l
1620
- ), m = (r == null ? void 0 : r.disabled) ?? j, x = S(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), y = S(() => {
1621
- const b = r != null && r.isMulti ? _ : [_], C = {};
1622
- return typeof b == "object" && "length" in b && (b == null || b.forEach((w) => {
1623
- const E = JSON.stringify(w.value), $ = JSON.stringify(w.label);
1624
- C[E] = w, $ in C || (C[$] = w);
1757
+ ), m = (r == null ? void 0 : r.disabled) ?? b, x = $(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), y = $(() => {
1758
+ const j = r != null && r.isMulti ? _ : [_], C = {};
1759
+ return typeof j == "object" && "length" in j && (j == null || j.forEach((w) => {
1760
+ const E = JSON.stringify(w.value), D = JSON.stringify(w.label);
1761
+ C[E] = w, D in C || (C[D] = w);
1625
1762
  })), C;
1626
- }, [_]), g = Me({
1763
+ }, [_]), g = Je({
1627
1764
  userFlow: e,
1628
1765
  pageId: t,
1629
1766
  responseKey: a,
1630
- actionType: c,
1767
+ actionType: i,
1631
1768
  getNextUI: u,
1632
1769
  isMulti: r == null ? void 0 : r.isMulti,
1633
1770
  debounceMs: n
1634
- }), p = (b) => {
1635
- h(b), g(b);
1636
- }, N = async (b, C, { page: w }) => {
1771
+ }), p = (j) => {
1772
+ h(j), g(j);
1773
+ }, N = async (j, C, { page: w }) => {
1637
1774
  const {
1638
1775
  jsonPathLabel: E,
1639
- jsonPathOptions: $,
1640
- jsonPathValue: k,
1776
+ jsonPathOptions: D,
1777
+ jsonPathValue: q,
1641
1778
  jsonPathPagination: G
1642
- } = i, U = be(
1643
- i,
1779
+ } = c, U = pe(
1780
+ c,
1644
1781
  w,
1645
- b
1782
+ j
1646
1783
  ), re = await f(
1647
1784
  U,
1648
1785
  e,
1649
1786
  !1
1650
- ), ce = re == null ? void 0 : re.data, Ue = ce ? Jn(
1651
- ce,
1652
- $,
1787
+ ), oe = re == null ? void 0 : re.data, Xe = oe ? as(
1788
+ oe,
1789
+ D,
1653
1790
  E,
1654
- k
1655
- ) : [], { hasMore: Je } = Vn(
1656
- ce,
1791
+ q
1792
+ ) : [], { hasMore: We } = rs(
1793
+ oe,
1657
1794
  w,
1658
1795
  G
1659
1796
  );
1660
1797
  return {
1661
- options: Ue,
1662
- hasMore: Je,
1798
+ options: Xe,
1799
+ hasMore: We,
1663
1800
  additional: {
1664
- page: b ? 1 : w + 1
1801
+ page: j ? 1 : w + 1
1665
1802
  }
1666
1803
  };
1667
1804
  };
1668
1805
  return /* @__PURE__ */ o.jsx(
1669
- st,
1806
+ lt,
1670
1807
  {
1671
1808
  ...r,
1672
- className: Ke.selectNotFront,
1809
+ className: Ve.selectNotFront,
1673
1810
  label: x,
1674
1811
  value: _,
1675
1812
  disabled: m,
1676
1813
  noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
1677
- onChange: (b) => !m && p(b),
1814
+ onChange: (j) => !m && p(j),
1678
1815
  loadOptions: N,
1679
1816
  additional: { page: 1 },
1680
- isOptionDisabled: (b) => {
1681
- const C = JSON.stringify(b == null ? void 0 : b.value), w = JSON.stringify(b == null ? void 0 : b.label);
1817
+ isOptionDisabled: (j) => {
1818
+ const C = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
1682
1819
  return !!(y != null && y[C]) || !!(y != null && y[w]);
1683
1820
  },
1684
1821
  debounceTimeout: 350
1685
1822
  }
1686
1823
  );
1687
- }, Wn = ({
1824
+ }, is = ({
1688
1825
  userFlow: e,
1689
1826
  pageId: t,
1690
1827
  responseKey: a,
1691
1828
  dataSource: s,
1692
- required: i,
1693
- actionType: c,
1829
+ required: c,
1830
+ actionType: i,
1694
1831
  dependencies: l,
1695
1832
  debounceMs: n,
1696
1833
  ...d
1697
1834
  }) => {
1698
1835
  const r = {
1699
1836
  ...d
1700
- }, { getNextUI: u } = I(), [f, _] = q(r.value || ""), { disabled: h } = M(
1837
+ }, { getNextUI: u } = I(), [f, _] = T(r.value || ""), { disabled: h } = B(
1701
1838
  e,
1702
1839
  l
1703
- ), j = (r == null ? void 0 : r.disabled) ?? h, m = S(() => i && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, i]), x = Me({
1840
+ ), b = (r == null ? void 0 : r.disabled) ?? h, m = $(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), x = Je({
1704
1841
  userFlow: e,
1705
1842
  pageId: t,
1706
1843
  responseKey: a,
1707
- actionType: c,
1844
+ actionType: i,
1708
1845
  getNextUI: u,
1709
1846
  isMulti: r == null ? void 0 : r.isMulti,
1710
1847
  debounceMs: n
@@ -1712,49 +1849,49 @@ const Jn = (e, t, a, s) => {
1712
1849
  _(g), x(g);
1713
1850
  };
1714
1851
  return /* @__PURE__ */ o.jsx(
1715
- at,
1852
+ dt,
1716
1853
  {
1717
1854
  ...r,
1718
- className: Ke.selectNotFront,
1855
+ className: Ve.selectNotFront,
1719
1856
  label: m,
1720
1857
  value: f,
1721
- disabled: j,
1722
- onChange: (g) => !j && y(g)
1858
+ disabled: b,
1859
+ onChange: (g) => !b && y(g)
1723
1860
  }
1724
1861
  );
1725
- }, Qn = (e) => {
1862
+ }, ls = (e) => {
1726
1863
  const { dataSource: t } = e;
1727
- return t ? /* @__PURE__ */ o.jsx(Xn, { ...e }) : /* @__PURE__ */ o.jsx(Wn, { ...e });
1728
- }, Yn = "_spacing_19hqa_1", Zn = "_spacing__xxs_19hqa_1", Fn = "_spacing__xs_19hqa_4", Pn = "_spacing__sm_19hqa_7", es = "_spacing__md_19hqa_10", ts = "_spacing__lg_19hqa_13", ns = "_spacing__xl_19hqa_16", ss = "_spacing__xxl_19hqa_19", as = "_spacing__xxxl_19hqa_22", Ae = {
1729
- spacing: Yn,
1730
- spacing__xxs: Zn,
1731
- spacing__xs: Fn,
1732
- spacing__sm: Pn,
1733
- spacing__md: es,
1734
- spacing__lg: ts,
1735
- spacing__xl: ns,
1736
- spacing__xxl: ss,
1737
- spacing__xxxl: as
1738
- }, rs = (e) => {
1739
- const { size: t } = e, a = ee(Ae.spacing, Ae[`spacing__${t}`]);
1864
+ return t ? /* @__PURE__ */ o.jsx(cs, { ...e }) : /* @__PURE__ */ o.jsx(is, { ...e });
1865
+ }, ds = "_spacing_19hqa_1", _s = "_spacing__xxs_19hqa_1", us = "_spacing__xs_19hqa_4", hs = "_spacing__sm_19hqa_7", fs = "_spacing__md_19hqa_10", ms = "_spacing__lg_19hqa_13", ys = "_spacing__xl_19hqa_16", xs = "_spacing__xxl_19hqa_19", gs = "_spacing__xxxl_19hqa_22", Re = {
1866
+ spacing: ds,
1867
+ spacing__xxs: _s,
1868
+ spacing__xs: us,
1869
+ spacing__sm: hs,
1870
+ spacing__md: fs,
1871
+ spacing__lg: ms,
1872
+ spacing__xl: ys,
1873
+ spacing__xxl: xs,
1874
+ spacing__xxxl: gs
1875
+ }, ps = (e) => {
1876
+ const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
1740
1877
  return /* @__PURE__ */ o.jsx("div", { className: a });
1741
- }, cs = (e) => {
1878
+ }, bs = (e) => {
1742
1879
  const {
1743
1880
  userFlow: t,
1744
1881
  pageId: a,
1745
1882
  responseKey: s,
1746
- actionType: i,
1747
- label: c,
1883
+ actionType: c,
1884
+ label: i,
1748
1885
  value: l,
1749
1886
  required: n,
1750
1887
  dependencies: d,
1751
1888
  ...r
1752
1889
  } = e, u = {
1753
1890
  ...r
1754
- }, { getNextUI: f } = I(), [_, h] = q(l || !1), { disabled: j } = M(
1891
+ }, { getNextUI: f } = I(), [_, h] = T(l || !1), { disabled: b } = B(
1755
1892
  t,
1756
1893
  d
1757
- ), m = (u == null ? void 0 : u.disabled) ?? j, x = S(() => n && c ? `${c} *` : c ?? "", [c, n]), y = D(async () => {
1894
+ ), m = (u == null ? void 0 : u.disabled) ?? b, x = $(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
1758
1895
  var g;
1759
1896
  try {
1760
1897
  const p = !_;
@@ -1763,26 +1900,26 @@ const Jn = (e, t, a, s) => {
1763
1900
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
1764
1901
  [s]: p
1765
1902
  };
1766
- switch (L(t, N), i) {
1903
+ switch (O(t, N), c) {
1767
1904
  case "GO_TO_NEXT_UI":
1768
- const b = await f(
1905
+ const j = await f(
1769
1906
  t,
1770
1907
  a,
1771
1908
  N,
1772
1909
  s
1773
1910
  );
1774
- b != null && b.data && T(t, b == null ? void 0 : b.data);
1911
+ j != null && j.data && A(t, j == null ? void 0 : j.data);
1775
1912
  break;
1776
1913
  default:
1777
- console.warn(`Unhandled actionType: ${i}`);
1914
+ console.warn(`Unhandled actionType: ${c}`);
1778
1915
  break;
1779
1916
  }
1780
1917
  } catch (p) {
1781
1918
  console.error("Error in switch action:", p), alert(JSON.stringify(p));
1782
1919
  }
1783
- }, [t, a, s, i, _]);
1920
+ }, [t, a, s, c, _]);
1784
1921
  return /* @__PURE__ */ o.jsx(
1785
- rt,
1922
+ _t,
1786
1923
  {
1787
1924
  ...u,
1788
1925
  label: x,
@@ -1791,26 +1928,26 @@ const Jn = (e, t, a, s) => {
1791
1928
  onChange: () => !m && y()
1792
1929
  }
1793
1930
  );
1794
- }, os = "_tableSkeleton_3nr9n_1", is = "_tableArrayPills_3nr9n_7", Ge = {
1795
- tableSkeleton: os,
1796
- tableArrayPills: is
1797
- }, ls = ({ values: e }) => {
1931
+ }, js = "_tableSkeleton_3nr9n_1", ws = "_tableArrayPills_3nr9n_7", He = {
1932
+ tableSkeleton: js,
1933
+ tableArrayPills: ws
1934
+ }, Cs = ({ values: e }) => {
1798
1935
  const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
1799
- return /* @__PURE__ */ o.jsxs("div", { className: Ge.tableArrayPills, children: [
1800
- a.map((i, c) => /* @__PURE__ */ o.jsx(he, { children: String(i) }, c)),
1936
+ return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
1937
+ a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
1801
1938
  s > 0 && /* @__PURE__ */ o.jsxs(he, { outlined: !0, children: [
1802
1939
  "+",
1803
1940
  s
1804
1941
  ] })
1805
1942
  ] });
1806
- }, ds = ({
1943
+ }, Ns = ({
1807
1944
  userFlow: e,
1808
1945
  pageId: t,
1809
1946
  tableResponseKey: a,
1810
1947
  component: s,
1811
- rowData: i
1948
+ rowData: c
1812
1949
  }) => {
1813
- const { getNextUI: c, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = O(e, t, [
1950
+ const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = S(e, t, [
1814
1951
  { ...s }
1815
1952
  ]), r = (d == null ? void 0 : d[0]) || null;
1816
1953
  if (!r) return null;
@@ -1818,23 +1955,23 @@ const Jn = (e, t, a, s) => {
1818
1955
  actionType: u,
1819
1956
  responseKey: f,
1820
1957
  dataSource: _
1821
- } = r.props, h = D(async () => {
1822
- var j, m, x;
1958
+ } = r.props, h = R(async () => {
1959
+ var b, m, x;
1823
1960
  try {
1824
1961
  const y = {
1825
- ...(j = v.getState()[e]) == null ? void 0 : j.entries,
1962
+ ...(b = v.getState()[e]) == null ? void 0 : b.entries,
1826
1963
  [f]: { status: 200 },
1827
- [a]: [{ ...i }]
1964
+ [a]: [{ ...c }]
1828
1965
  };
1829
- switch (L(e, y), u) {
1966
+ switch (O(e, y), u) {
1830
1967
  case "GO_TO_NEXT_UI": {
1831
- const g = await c(
1968
+ const g = await i(
1832
1969
  e,
1833
1970
  t,
1834
1971
  y,
1835
1972
  f
1836
1973
  );
1837
- g != null && g.data && T(e, g == null ? void 0 : g.data);
1974
+ g != null && g.data && A(e, g == null ? void 0 : g.data);
1838
1975
  break;
1839
1976
  }
1840
1977
  case "FETCH_AND_GO_TO_NEXT_UI": {
@@ -1845,18 +1982,18 @@ const Jn = (e, t, a, s) => {
1845
1982
  f,
1846
1983
  _
1847
1984
  );
1848
- g != null && g.data && T(e, g == null ? void 0 : g.data);
1985
+ g != null && g.data && A(e, g == null ? void 0 : g.data);
1849
1986
  break;
1850
1987
  }
1851
1988
  case "GET_DATA_SOURCE": {
1852
- const g = await c(
1989
+ const g = await i(
1853
1990
  e,
1854
1991
  t,
1855
1992
  y,
1856
1993
  f
1857
1994
  ), p = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
1858
1995
  if ((p == null ? void 0 : p.type) !== "fetch") break;
1859
- const N = p == null ? void 0 : p.dataSource, b = await n(
1996
+ const N = p == null ? void 0 : p.dataSource, j = await n(
1860
1997
  N,
1861
1998
  e,
1862
1999
  // Avoid to handle loading state until all the requests are done
@@ -1864,18 +2001,18 @@ const Jn = (e, t, a, s) => {
1864
2001
  ), C = {
1865
2002
  ...(x = v.getState()[e]) == null ? void 0 : x.entries,
1866
2003
  [f]: {
1867
- status: b == null ? void 0 : b.status,
1868
- content: b == null ? void 0 : b.data
2004
+ status: j == null ? void 0 : j.status,
2005
+ content: j == null ? void 0 : j.data
1869
2006
  }
1870
2007
  };
1871
- L(e, C);
1872
- const w = await c(
2008
+ O(e, C);
2009
+ const w = await i(
1873
2010
  e,
1874
2011
  t,
1875
2012
  C,
1876
2013
  f
1877
2014
  );
1878
- w != null && w.data && T(e, w == null ? void 0 : w.data);
2015
+ w != null && w.data && A(e, w == null ? void 0 : w.data);
1879
2016
  break;
1880
2017
  }
1881
2018
  default:
@@ -1886,32 +2023,32 @@ const Jn = (e, t, a, s) => {
1886
2023
  alert(JSON.stringify(y));
1887
2024
  }
1888
2025
  }, [u, _, t, f, e]);
1889
- return We(r, {
2026
+ return Fe(r, {
1890
2027
  onClick: h
1891
2028
  });
1892
- }, _s = () => /* @__PURE__ */ o.jsx("div", { className: Ge.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
1893
- De,
2029
+ }, vs = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2030
+ Ke,
1894
2031
  {
1895
2032
  maxWidth: "100%",
1896
2033
  height: 42,
1897
2034
  radius: 8
1898
2035
  },
1899
2036
  `tableSkeletonBase${t}`
1900
- )) }), us = ({
2037
+ )) }), Ss = ({
1901
2038
  userFlow: e,
1902
2039
  pageId: t,
1903
2040
  responseKey: a,
1904
2041
  component: s,
1905
- dataSource: i,
1906
- rightActions: c,
2042
+ dataSource: c,
2043
+ rightActions: i,
1907
2044
  ...l
1908
2045
  }) => {
1909
- var p, N, b;
1910
- const { fetchDataSource: n } = I(), [d, r] = q(!1), [u, f] = q(1), [_, h] = q(null), j = S(() => {
1911
- if (c != null && c.length)
1912
- return c.map((C, w) => ({
2046
+ var p, N, j;
2047
+ const { fetchDataSource: n } = I(), [d, r] = T(!1), [u, f] = T(1), [_, h] = T(null), b = $(() => {
2048
+ if (i != null && i.length)
2049
+ return i.map((C, w) => ({
1913
2050
  renderContent: (E) => /* @__PURE__ */ o.jsx(
1914
- ds,
2051
+ Ns,
1915
2052
  {
1916
2053
  userFlow: e,
1917
2054
  pageId: t,
@@ -1922,23 +2059,23 @@ const Jn = (e, t, a, s) => {
1922
2059
  `tableRowAction${w}`
1923
2060
  )
1924
2061
  }));
1925
- }, [c, e, t]), m = async (C = 1) => {
2062
+ }, [i, e, t]), m = async (C = 1) => {
1926
2063
  try {
1927
2064
  r(!0);
1928
- const { jsonPathData: w, mapperData: E, jsonPathPagination: $ } = i, k = be(
1929
- i,
2065
+ const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c, q = pe(
2066
+ c,
1930
2067
  C
1931
2068
  ), G = await n(
1932
- k,
2069
+ q,
1933
2070
  e,
1934
2071
  !1
1935
2072
  );
1936
2073
  h(
1937
- ze(
2074
+ Ue(
1938
2075
  G == null ? void 0 : G.data,
1939
2076
  w,
1940
2077
  E,
1941
- $
2078
+ D
1942
2079
  )
1943
2080
  ), r(!1);
1944
2081
  } catch (w) {
@@ -1947,213 +2084,222 @@ const Jn = (e, t, a, s) => {
1947
2084
  }, x = (C) => {
1948
2085
  f(C), m(C);
1949
2086
  };
1950
- K(() => {
2087
+ M(() => {
1951
2088
  m();
1952
2089
  }, []);
1953
- const y = S(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
2090
+ const y = $(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
1954
2091
  var E;
1955
2092
  return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
1956
- ($) => Array.isArray(C != null && C.accessor ? $[C == null ? void 0 : C.accessor] : void 0)
2093
+ (D) => Array.isArray(C != null && C.accessor ? D[C == null ? void 0 : C.accessor] : void 0)
1957
2094
  )) ? {
1958
2095
  ...C,
1959
- renderCell: ($) => {
1960
- const k = C.accessor ? $[C.accessor] : void 0;
1961
- return Array.isArray(k) ? /* @__PURE__ */ o.jsx(ls, { values: k }) : k;
2096
+ renderCell: (D) => {
2097
+ const q = C.accessor ? D[C.accessor] : void 0;
2098
+ return Array.isArray(q) ? /* @__PURE__ */ o.jsx(Cs, { values: q }) : q;
1962
2099
  }
1963
2100
  } : C;
1964
2101
  }), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
1965
2102
  ...l,
1966
2103
  data: _ == null ? void 0 : _.items,
1967
2104
  columns: y,
1968
- rightActions: j
2105
+ rightActions: b
1969
2106
  };
1970
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(_s, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
1971
- /* @__PURE__ */ o.jsx(ct, { ...g }),
2107
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(vs, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2108
+ /* @__PURE__ */ o.jsx(ut, { ...g }),
1972
2109
  (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
1973
- ot,
2110
+ ht,
1974
2111
  {
1975
2112
  classname: { global: "row__end" },
1976
2113
  page: u,
1977
2114
  size: _ == null ? void 0 : _.pagination.size,
1978
- total: (b = _ == null ? void 0 : _.pagination) == null ? void 0 : b.total,
2115
+ total: (j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.total,
1979
2116
  onChange: x
1980
2117
  }
1981
2118
  )
1982
2119
  ] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
1983
- }, hs = "_tabsPanel_kvslb_1", fs = {
1984
- tabsPanel: hs
1985
- }, ms = ({ userFlow: e, pageId: t, components: a }) => {
1986
- const s = O(e, t, a);
1987
- return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: fs.tabsPanel, children: s.map((i, c) => /* @__PURE__ */ o.jsx(A, { children: i }, `tabs-panel-${c}`)) }) : null;
1988
- }, ys = ({
2120
+ }, Es = "_tabsPanel_kvslb_1", ks = {
2121
+ tabsPanel: Es
2122
+ }, $s = ({ userFlow: e, pageId: t, components: a }) => {
2123
+ const s = S(e, t, a);
2124
+ return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: ks.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
2125
+ }, qs = ({
1989
2126
  userFlow: e,
1990
2127
  pageId: t,
1991
2128
  hash: a,
1992
2129
  items: s,
1993
- activeIndex: i,
1994
- className: c
2130
+ activeIndex: c,
2131
+ className: i,
2132
+ responseKey: l
1995
2133
  }) => {
1996
- const l = s.map((n, d) => ({
1997
- label: n.label,
1998
- disabled: n.disabled,
2134
+ const n = s.map((r, u) => ({
2135
+ label: r.label,
2136
+ disabled: r.disabled,
1999
2137
  children: /* @__PURE__ */ o.jsx(
2000
- ms,
2138
+ $s,
2001
2139
  {
2002
2140
  userFlow: e,
2003
2141
  pageId: t,
2004
- components: n.components
2142
+ components: r.components
2005
2143
  },
2006
- `${a}-tab-${d}`
2144
+ `${a}-tab-${u}`
2007
2145
  )
2008
- }));
2146
+ })), d = (r) => {
2147
+ var f;
2148
+ const u = {
2149
+ ...(f = v.getState()[e]) == null ? void 0 : f.entries,
2150
+ [l]: r
2151
+ };
2152
+ O(e, u);
2153
+ };
2009
2154
  return /* @__PURE__ */ o.jsx(
2010
- it,
2155
+ ft,
2011
2156
  {
2012
- className: c,
2013
- activeIndex: i,
2014
- items: l
2157
+ className: i,
2158
+ activeIndex: c,
2159
+ items: n,
2160
+ onClick: d
2015
2161
  }
2016
2162
  );
2017
- }, xs = "_textFieldNotFront_cps4i_1", gs = {
2018
- textFieldNotFront: xs
2019
- }, bs = (e) => {
2163
+ }, Ts = "_textFieldNotFront_cps4i_1", As = {
2164
+ textFieldNotFront: Ts
2165
+ }, Os = (e) => {
2020
2166
  const {
2021
2167
  userFlow: t,
2022
2168
  pageId: a,
2023
2169
  component: s,
2024
- hash: i,
2025
- responseKey: c,
2170
+ hash: c,
2171
+ responseKey: i,
2026
2172
  required: l,
2027
2173
  dependencies: n,
2028
2174
  ...d
2029
2175
  } = e, r = {
2030
2176
  ...d
2031
- }, [u, f] = q((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = M(
2177
+ }, [u, f] = T((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
2032
2178
  t,
2033
2179
  n
2034
- ), h = (r == null ? void 0 : r.disabled) ?? _, j = S(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (x) => {
2180
+ ), h = (r == null ? void 0 : r.disabled) ?? _, b = $(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (x) => {
2035
2181
  var p;
2036
2182
  const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2037
2183
  f(y);
2038
2184
  const g = {
2039
- [c]: y
2185
+ [i]: y
2040
2186
  };
2041
- L(t, g);
2187
+ O(t, g);
2042
2188
  };
2043
- return K(() => {
2189
+ return M(() => {
2044
2190
  f((r == null ? void 0 : r.value) ?? "");
2045
2191
  }, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
2046
- lt,
2192
+ mt,
2047
2193
  {
2048
2194
  ...r,
2049
- className: gs.textFieldNotFront,
2195
+ className: As.textFieldNotFront,
2050
2196
  allowClear: !1,
2051
- label: j,
2197
+ label: b,
2052
2198
  value: u,
2053
2199
  disabled: h,
2054
2200
  onChange: (x) => !h && m(x)
2055
2201
  }
2056
2202
  );
2057
- }, ps = ({
2203
+ }, Rs = ({
2058
2204
  userFlow: e,
2059
2205
  pageId: t,
2060
2206
  responseKey: a,
2061
2207
  variant: s,
2062
- content: i,
2063
- actionType: c,
2208
+ content: c,
2209
+ actionType: i,
2064
2210
  redirectUrl: l
2065
2211
  }) => {
2066
- const n = D(async () => {
2212
+ const n = R(async () => {
2067
2213
  xe(e);
2068
2214
  try {
2069
- switch (c) {
2215
+ switch (i) {
2070
2216
  case "AUTOCLOSE_AND_REDIRECT":
2071
2217
  window.location.href = l;
2072
2218
  break;
2073
2219
  default:
2074
- console.warn(`Unhandled actionType: ${c}`);
2220
+ console.warn(`Unhandled actionType: ${i}`);
2075
2221
  break;
2076
2222
  }
2077
2223
  } catch (d) {
2078
2224
  console.error("Error in toast action:", d), alert(JSON.stringify(d));
2079
2225
  }
2080
- }, [c, t, a, e, l]);
2081
- return K(() => {
2226
+ }, [i, t, a, e, l]);
2227
+ return M(() => {
2082
2228
  ({
2083
2229
  info: W.info,
2084
2230
  error: W.error,
2085
2231
  success: W.success,
2086
2232
  warning: W.warning
2087
- }[s] || W.info)(i, {
2088
- autoClose: c ? !1 : 4e3,
2233
+ }[s] || W.info)(c, {
2234
+ autoClose: i ? !1 : 4e3,
2089
2235
  containerId: e,
2090
2236
  onClose: n
2091
2237
  });
2092
2238
  }, [n, e]), null;
2093
- }, js = "_accordion_1ri2t_1", ws = "_accordionBody_1ri2t_8", Te = {
2094
- accordion: js,
2095
- accordionBody: ws
2096
- }, Cs = (e) => {
2239
+ }, Ds = "_accordion_1ri2t_1", Ls = "_accordionBody_1ri2t_8", De = {
2240
+ accordion: Ds,
2241
+ accordionBody: Ls
2242
+ }, Bs = (e) => {
2097
2243
  const {
2098
2244
  userFlow: t,
2099
2245
  pageId: a,
2100
2246
  responseKey: s,
2101
- dependencies: i,
2102
- customContent: c,
2247
+ dependencies: c,
2248
+ customContent: i,
2103
2249
  actionContent: l,
2104
2250
  components: n,
2105
2251
  ...d
2106
- } = e, { getNextUI: r } = I(), [u, f] = q(
2252
+ } = e, { getNextUI: r } = I(), [u, f] = T(
2107
2253
  d.checkboxChecked || !1
2108
- ), { disabled: _ } = M(
2254
+ ), { disabled: _ } = B(
2109
2255
  t,
2110
- i
2111
- ), h = O(t, a, n), j = l ? O(t, a, l) : void 0, m = c ? O(t, a, c) : void 0, x = D(
2256
+ c
2257
+ ), h = S(t, a, n), b = l ? S(t, a, l) : void 0, m = i ? S(t, a, i) : void 0, x = R(
2112
2258
  async (p) => {
2113
2259
  var N;
2114
2260
  try {
2115
- const b = p.target.checked;
2116
- f(b);
2261
+ const j = p.target.checked;
2262
+ f(j);
2117
2263
  const C = {
2118
2264
  ...(N = v.getState()[t]) == null ? void 0 : N.entries,
2119
- [s]: b
2265
+ [s]: j
2120
2266
  };
2121
- if (L(t, C), d.actionType === "GO_TO_NEXT_UI") {
2267
+ if (O(t, C), d.actionType === "GO_TO_NEXT_UI") {
2122
2268
  const w = await r(
2123
2269
  t,
2124
2270
  a,
2125
2271
  C,
2126
2272
  s
2127
2273
  );
2128
- w != null && w.data && T(t, w == null ? void 0 : w.data);
2274
+ w != null && w.data && A(t, w == null ? void 0 : w.data);
2129
2275
  }
2130
- } catch (b) {
2131
- console.error("Error in accordion checkbox action:", b), alert(JSON.stringify(b));
2276
+ } catch (j) {
2277
+ console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
2132
2278
  }
2133
2279
  },
2134
2280
  [t, a, s, d.actionType, r]
2135
2281
  ), y = d.disabled || _, g = {
2136
2282
  ...d,
2137
- className: Te.accordion,
2283
+ className: De.accordion,
2138
2284
  disabled: y,
2139
2285
  checkboxChecked: u,
2140
2286
  onChanceCheckbox: d.hasCheckbox ? x : void 0,
2141
- actionContent: j ? /* @__PURE__ */ o.jsx(o.Fragment, { children: j.map((p, N) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-action-${N}`)) }) : void 0,
2142
- customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((p, N) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-custom-${N}`)) }) : void 0,
2143
- children: h ? /* @__PURE__ */ o.jsx("section", { className: Te.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-child-${N}`)) }) : void 0
2287
+ actionContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-action-${N}`)) }) : void 0,
2288
+ customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-custom-${N}`)) }) : void 0,
2289
+ children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${N}`)) }) : void 0
2144
2290
  };
2145
- return /* @__PURE__ */ o.jsx(dt, { ...g });
2146
- }, Ns = "_drawer_13pxo_1", vs = "_drawerBody_13pxo_5", Es = "_drawerFooter_13pxo_11", ue = {
2147
- drawer: Ns,
2148
- drawerBody: vs,
2149
- drawerFooter: Es
2150
- }, Ss = ({
2291
+ return /* @__PURE__ */ o.jsx(yt, { ...g });
2292
+ }, Is = "_drawer_13pxo_1", Ks = "_drawerBody_13pxo_5", zs = "_drawerFooter_13pxo_11", ue = {
2293
+ drawer: Is,
2294
+ drawerBody: Ks,
2295
+ drawerFooter: zs
2296
+ }, Ms = ({
2151
2297
  userFlow: e,
2152
2298
  pageId: t,
2153
2299
  responseKey: a,
2154
2300
  header: s,
2155
- body: i,
2156
- footer: c,
2301
+ body: c,
2302
+ footer: i,
2157
2303
  ...l
2158
2304
  }) => {
2159
2305
  const n = v((m) => {
@@ -2166,87 +2312,123 @@ const Jn = (e, t, a, s) => {
2166
2312
  ...l,
2167
2313
  isOpen: r,
2168
2314
  children: null
2169
- }, f = D(() => {
2315
+ }, f = R(() => {
2170
2316
  xe(e), Z(e, !1);
2171
- }, [e]), _ = Array.isArray(s) ? O(e, t, s) : s ? /* @__PURE__ */ o.jsx(Re, { type: "h2", children: s }) : void 0, h = O(e, t, i), j = c ? O(e, t, c) : void 0;
2317
+ }, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = S(e, t, c), b = i ? S(e, t, i) : void 0;
2172
2318
  return /* @__PURE__ */ o.jsx(
2173
- _t,
2319
+ xt,
2174
2320
  {
2175
2321
  ...u,
2176
2322
  className: ue.drawer,
2177
2323
  isOpen: r,
2178
2324
  onClose: f,
2179
2325
  heightGap: 0,
2180
- title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ o.jsx(A, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
2181
- children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, x) => /* @__PURE__ */ o.jsx(A, { children: m }, `drawer-body-${x}`)) }),
2182
- footer: j ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: j.map((m, x) => /* @__PURE__ */ o.jsx(A, { children: m }, `drawer-footer-${x}`)) }) : void 0
2326
+ title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
2327
+ children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${x}`)) }),
2328
+ footer: b ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: b.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${x}`)) }) : void 0
2183
2329
  }
2184
2330
  );
2185
- }, $e = (e, t, a, s, i) => {
2186
- const c = O(
2331
+ };
2332
+ function na({
2333
+ routes: e,
2334
+ renderPage: t,
2335
+ renderFallback: a,
2336
+ redirectTo: s = "/"
2337
+ }) {
2338
+ return /* @__PURE__ */ o.jsxs(zt, { children: [
2339
+ e.map((c) => /* @__PURE__ */ o.jsx(
2340
+ Ce,
2341
+ {
2342
+ path: c.path,
2343
+ element: c.canAccess ? t(c.sessionName) : (a == null ? void 0 : a()) ?? null
2344
+ },
2345
+ `${c.path}:${c.sessionName}`
2346
+ )),
2347
+ /* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(Mt, { to: s, replace: !0 }) })
2348
+ ] });
2349
+ }
2350
+ function sa({
2351
+ sessionName: e,
2352
+ apiConfig: t,
2353
+ onResolveComponentProps: a,
2354
+ children: s
2355
+ }) {
2356
+ const c = Gs(
2357
+ e,
2358
+ t,
2359
+ null,
2360
+ a
2361
+ );
2362
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2363
+ c,
2364
+ s
2365
+ ] });
2366
+ }
2367
+ const Le = (e, t, a, s, c) => {
2368
+ const i = S(
2187
2369
  e,
2188
2370
  t,
2189
2371
  (s == null ? void 0 : s.components) || null,
2190
- i
2372
+ c
2191
2373
  );
2192
2374
  switch (a) {
2193
2375
  case "body":
2194
2376
  return /* @__PURE__ */ o.jsx(
2195
- en,
2377
+ ln,
2196
2378
  {
2197
2379
  ...s,
2198
- inputs: c || []
2380
+ inputs: i || []
2199
2381
  },
2200
2382
  JSON.stringify(s == null ? void 0 : s.components)
2201
2383
  );
2202
2384
  case "header":
2203
2385
  return /* @__PURE__ */ o.jsx(
2204
- $n,
2386
+ Vn,
2205
2387
  {
2206
2388
  ...s,
2207
- components: c || []
2389
+ components: i || []
2208
2390
  },
2209
2391
  JSON.stringify(s == null ? void 0 : s.components)
2210
2392
  );
2211
2393
  default:
2212
2394
  return null;
2213
2395
  }
2214
- }, Ms = (e, t, a, s) => {
2215
- var _, h, j;
2216
- const [i, c] = q(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? $e(
2396
+ }, Gs = (e, t, a, s) => {
2397
+ var _, h, b;
2398
+ const [c, i] = T(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? Le(
2217
2399
  e,
2218
2400
  n,
2219
2401
  "header",
2220
2402
  ((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
2221
2403
  s
2222
- ) : null, r = n ? $e(
2404
+ ) : null, r = n ? Le(
2223
2405
  e,
2224
2406
  n,
2225
2407
  "body",
2226
- ((j = l[e].pages[n].page) == null ? void 0 : j.body) || null,
2408
+ ((b = l[e].pages[n].page) == null ? void 0 : b.body) || null,
2227
2409
  s
2228
- ) : null, u = S(() => {
2410
+ ) : null, u = $(() => {
2229
2411
  var m;
2230
2412
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2231
- ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(ut, {}),
2413
+ ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(gt, {}),
2232
2414
  d,
2233
2415
  r,
2234
- n && /* @__PURE__ */ o.jsx(Bn, { userFlow: e, pageId: n }),
2235
- l[e] && /* @__PURE__ */ o.jsx(ht, {})
2416
+ n && /* @__PURE__ */ o.jsx(Yn, { userFlow: e, pageId: n }),
2417
+ l[e] && /* @__PURE__ */ o.jsx(pt, {})
2236
2418
  ] });
2237
2419
  }, [d, r, n, e]), f = async () => {
2238
2420
  try {
2239
- const m = await Ie(
2421
+ const m = await Ge(
2240
2422
  t,
2241
2423
  e
2242
2424
  ), x = m == null ? void 0 : m.data, y = x == null ? void 0 : x.content;
2243
- (m == null ? void 0 : m.status) === 200 ? oe(e, t, y, x == null ? void 0 : x.sessionState) : c(!0);
2425
+ (m == null ? void 0 : m.status) === 200 ? ce(e, t, y, x == null ? void 0 : x.sessionState) : i(!0);
2244
2426
  } catch (m) {
2245
- console.error("[not-page]: API call failed", m), c(!0);
2427
+ console.error("[not-page]: API call failed", m), i(!0);
2246
2428
  }
2247
2429
  };
2248
- return K(() => {
2249
- t != null && t.api && !a && e ? f() : !(t != null && t.api) && a && e || t != null && t.api && a && e ? oe(e, t, a) : (!(t != null && t.api) && !a || !e) && (c(!0), console.error(
2430
+ return M(() => {
2431
+ t != null && t.api && !a && e ? f() : !(t != null && t.api) && a && e || t != null && t.api && a && e ? ce(e, t, a) : (!(t != null && t.api) && !a || !e) && (i(!0), console.error(
2250
2432
  "[not-page]: API call failed",
2251
2433
  "not api config",
2252
2434
  "not userFlow"
@@ -2258,12 +2440,14 @@ const Jn = (e, t, a, s) => {
2258
2440
  return window.addEventListener(m, x), () => {
2259
2441
  window.removeEventListener(m, x);
2260
2442
  };
2261
- }, []), i && console.error("[not-page]: No render page"), u;
2443
+ }, []), c && console.error("[not-page]: No render page"), u;
2262
2444
  };
2263
2445
  export {
2264
- On as Chart,
2265
- Un as Row,
2266
- Ut as heading,
2267
- Jt as text,
2268
- Ms as usePage
2446
+ Gn as Chart,
2447
+ na as NotFrontDynamicRouter,
2448
+ sa as NotFrontPage,
2449
+ ss as Row,
2450
+ Zt as heading,
2451
+ Ft as text,
2452
+ Gs as usePage
2269
2453
  };