@foris/avocado-not-front 4.6.1 → 4.6.3-beta.0.2

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