@foris/avocado-not-front 4.1.1 → 4.2.0

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