@foris/avocado-not-front 4.6.2 → 4.6.3

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