@foris/avocado-not-front 1.11.7-beta.5 → 2.0.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.
@@ -1,16 +1,16 @@
1
1
  import V from "axios";
2
- import { create as Ve } from "zustand";
3
- import Je, { useEffect as J, useMemo as R, useState as S, Fragment as T, useCallback as D, useRef as He, cloneElement as Xe } from "react";
4
- import { Heading as Oe, Text as We, ThemeStore as ue, Breadcrumbs as Qe, Button as Ye, CardNotification as he, Checkbox as Ze, PreviewerMarkdown as Fe, Divider as Pe, SkeletonBase as Te, Modal as et, Pill as de, RoundButton as tt, SelectPagination as nt, Select as rt, Switch as st, Table as at, Pager as ot, TextField as ct, toast as W, Accordion as it, Drawer as lt, Loading as dt, Toaster as _t } from "@foris/avocado-suite";
5
- import { SummaryCard as ut, PromptCodeEditor as ht } from "@foris/ai-agent";
6
- import ft from "@uiw/react-codemirror";
2
+ import { create as Ue } from "zustand";
3
+ import Ve, { useEffect as J, useMemo as R, useState as S, Fragment as T, useCallback as D, useRef as Je, cloneElement as He } from "react";
4
+ import { Heading as Ae, Text as Xe, ThemeStore as ue, Breadcrumbs as We, Button as Qe, CardNotification as he, Checkbox as Ye, PreviewerMarkdown as Ze, Divider as Fe, SkeletonBase as Oe, Modal as Pe, Pill as de, RoundButton as et, SelectPagination as tt, Select as nt, Switch as rt, Table as st, Pager as at, TextField as ot, toast as W, Accordion as ct, Drawer as it, Loading as lt, Toaster as dt } from "@foris/avocado-suite";
5
+ import { SummaryCard as _t, PromptCodeEditor as ut } from "@foris/ai-agent";
6
+ import ht from "@uiw/react-codemirror";
7
7
  import { json as be } from "@codemirror/lang-json";
8
- import { markdown as yt } from "@codemirror/lang-markdown";
9
- import { sql as mt } from "@codemirror/lang-sql";
8
+ import { markdown as ft } from "@codemirror/lang-markdown";
9
+ import { sql as yt } from "@codemirror/lang-sql";
10
10
  import { yaml as xt } from "@codemirror/lang-yaml";
11
11
  import B from "jsonpath";
12
- import { Legend as gt, Tooltip as pt, XAxis as bt, YAxis as jt, ResponsiveContainer as te, AreaChart as wt, CartesianGrid as fe, Area as Ct, BarChart as Nt, Bar as vt, LineChart as Et, Line as kt, PieChart as St, Pie as qt, Cell as At } from "recharts";
13
- const v = Ve(() => ({})), oe = (e, t, s) => {
12
+ import { Legend as mt, Tooltip as gt, XAxis as pt, YAxis as bt, ResponsiveContainer as te, AreaChart as jt, CartesianGrid as fe, Area as wt, BarChart as Ct, Bar as Nt, LineChart as vt, Line as Et, PieChart as kt, Pie as St, Cell as qt } from "recharts";
13
+ const v = Ue(() => ({})), oe = (e, t, s) => {
14
14
  const r = s == null ? void 0 : s.hash;
15
15
  v.setState((i) => {
16
16
  var o;
@@ -34,13 +34,13 @@ const v = Ve(() => ({})), oe = (e, t, s) => {
34
34
  }
35
35
  };
36
36
  });
37
- }, $e = (e, t) => t.length === 0 ? e : Object.fromEntries(
37
+ }, Te = (e, t) => t.length === 0 ? e : Object.fromEntries(
38
38
  Object.entries(e).filter(
39
39
  ([s]) => !t.includes(s)
40
40
  )
41
- ), Ot = (e, t, s, r) => {
41
+ ), At = (e, t, s, r) => {
42
42
  sessionStorage.setItem("sessionId", s), v.setState((i) => {
43
- const o = i[e] ?? {}, l = o.entries ?? {}, n = $e(
43
+ const o = i[e] ?? {}, l = o.entries ?? {}, n = Te(
44
44
  l,
45
45
  r
46
46
  );
@@ -61,10 +61,10 @@ const v = Ve(() => ({})), oe = (e, t, s) => {
61
61
  }
62
62
  };
63
63
  });
64
- }, Tt = (e, t, s) => {
64
+ }, Ot = (e, t, s) => {
65
65
  v.setState((r) => {
66
66
  var d;
67
- const i = r[e] ?? {}, o = i.entries ?? {}, l = $e(
67
+ const i = r[e] ?? {}, o = i.entries ?? {}, l = Te(
68
68
  o,
69
69
  s
70
70
  ), n = (d = t.components) == null ? void 0 : d.some(
@@ -90,17 +90,17 @@ const v = Ve(() => ({})), oe = (e, t, s) => {
90
90
  overlay: null
91
91
  }
92
92
  }));
93
- }, $t = (e) => {
93
+ }, Tt = (e) => {
94
94
  var s;
95
95
  return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
96
96
  }, q = (e, t) => {
97
97
  const { content: s, sessionId: r, deprecatedStateKeys: i = [] } = t;
98
- s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? Ot(
98
+ s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? At(
99
99
  e,
100
100
  s,
101
101
  r,
102
102
  i
103
- ) : Tt(
103
+ ) : Ot(
104
104
  e,
105
105
  s,
106
106
  i
@@ -128,7 +128,7 @@ const v = Ve(() => ({})), oe = (e, t, s) => {
128
128
  isLoading: t
129
129
  }
130
130
  }));
131
- }, me = (e, t) => {
131
+ }, xe = (e, t) => {
132
132
  v.setState((s) => ({
133
133
  ...s,
134
134
  [e]: {
@@ -160,15 +160,15 @@ const v = Ve(() => ({})), oe = (e, t, s) => {
160
160
  });
161
161
  };
162
162
  let ce = !1, P = [], we = !1;
163
- const Rt = (e) => e._userFlow || null, Ce = (e) => {
163
+ const $t = (e) => e._userFlow || null, Ce = (e) => {
164
164
  P.forEach(({ resolve: t, reject: s }) => {
165
165
  e ? s(e) : t(void 0);
166
166
  }), P = [];
167
- }, Dt = async (e) => {
167
+ }, Rt = async (e) => {
168
168
  var r, i;
169
169
  const t = e == null ? void 0 : e.config;
170
170
  if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
171
- const o = Rt(t);
171
+ const o = $t(t);
172
172
  if (o) {
173
173
  const n = (i = v.getState()[o]) == null ? void 0 : i.apiConfig;
174
174
  if (!n)
@@ -210,20 +210,20 @@ const Rt = (e) => e._userFlow || null, Ce = (e) => {
210
210
  );
211
211
  }
212
212
  return Promise.reject(e);
213
- }, Lt = () => {
213
+ }, Dt = () => {
214
214
  if (we) {
215
215
  console.debug(
216
216
  "[axiosInterceptors] Interceptors already initialized, skipping"
217
217
  );
218
218
  return;
219
219
  }
220
- console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Dt), console.debug("[axiosInterceptors] Response error interceptor registered"), we = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
220
+ console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Rt), console.debug("[axiosInterceptors] Response error interceptor registered"), we = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
221
221
  };
222
- Lt();
223
- function Bt(e) {
222
+ Dt();
223
+ function Lt(e) {
224
224
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
225
225
  }
226
- var Re = { exports: {} }, Q = {};
226
+ var $e = { exports: {} }, Q = {};
227
227
  /**
228
228
  * @license React
229
229
  * react-jsx-runtime.production.min.js
@@ -234,11 +234,11 @@ var Re = { exports: {} }, Q = {};
234
234
  * LICENSE file in the root directory of this source tree.
235
235
  */
236
236
  var Ne;
237
- function It() {
237
+ function Bt() {
238
238
  if (Ne)
239
239
  return Q;
240
240
  Ne = 1;
241
- var e = Je, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
241
+ var e = Ve, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
242
242
  function l(n, d, a) {
243
243
  var u, f = {}, _ = null, h = null;
244
244
  a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
@@ -251,9 +251,9 @@ function It() {
251
251
  }
252
252
  return Q.Fragment = s, Q.jsx = l, Q.jsxs = l, Q;
253
253
  }
254
- Re.exports = It();
255
- var c = Re.exports;
256
- const zt = (e) => {
254
+ $e.exports = Bt();
255
+ var c = $e.exports;
256
+ const It = (e) => {
257
257
  if (!(e != null && e.content))
258
258
  return null;
259
259
  const t = {
@@ -261,23 +261,23 @@ const zt = (e) => {
261
261
  children: e.content,
262
262
  type: e.variant
263
263
  };
264
- return /* @__PURE__ */ c.jsx(Oe, { ...t });
265
- }, Mt = (e) => {
264
+ return /* @__PURE__ */ c.jsx(Ae, { ...t });
265
+ }, zt = (e) => {
266
266
  if (!e)
267
267
  return null;
268
268
  const t = {
269
269
  ...e,
270
270
  children: e.content
271
271
  };
272
- return /* @__PURE__ */ c.jsx(We, { ...t });
273
- }, Kt = (e) => (J(() => {
272
+ return /* @__PURE__ */ c.jsx(Xe, { ...t });
273
+ }, Mt = (e) => (J(() => {
274
274
  e != null && e.chatPanelCallback && (e == null || e.chatPanelCallback(e));
275
- }, [e == null ? void 0 : e.chatPanelCallback]), null), Gt = "_summaryCard_jva4h_1", Ut = {
276
- summaryCard: Gt
277
- }, Vt = (e) => {
275
+ }, [e == null ? void 0 : e.chatPanelCallback]), null), Kt = "_summaryCard_jva4h_1", Gt = {
276
+ summaryCard: Kt
277
+ }, Ut = (e) => {
278
278
  var t, s, r;
279
- return /* @__PURE__ */ c.jsx("section", { className: Ut.summaryCard, children: /* @__PURE__ */ c.jsx(
280
- ut,
279
+ return /* @__PURE__ */ c.jsx("section", { className: Gt.summaryCard, children: /* @__PURE__ */ c.jsx(
280
+ _t,
281
281
  {
282
282
  api: (t = e == null ? void 0 : e.dataSource) == null ? void 0 : t.url,
283
283
  body: (s = e == null ? void 0 : e.dataSource) == null ? void 0 : s.data,
@@ -301,9 +301,9 @@ const zt = (e) => {
301
301
  });
302
302
  }), r;
303
303
  }, [t, s]);
304
- }, Jt = "_promptCodeEditor_1d57s_1", Ht = {
305
- promptCodeEditor: Jt
306
- }, Xt = (e) => {
304
+ }, Vt = "_promptCodeEditor_1d57s_1", Jt = {
305
+ promptCodeEditor: Vt
306
+ }, Ht = (e) => {
307
307
  const {
308
308
  userFlow: t,
309
309
  responseKey: s,
@@ -320,7 +320,7 @@ const zt = (e) => {
320
320
  ), { disabled: j } = M(
321
321
  t,
322
322
  l
323
- ), y = o ?? j, x = i ?? "json", m = {
323
+ ), y = o ?? j, m = i ?? "json", x = {
324
324
  url: (n == null ? void 0 : n.url) || "",
325
325
  method: (n == null ? void 0 : n.method) || "post",
326
326
  headers: n == null ? void 0 : n.headers,
@@ -334,12 +334,12 @@ const zt = (e) => {
334
334
  };
335
335
  return J(() => {
336
336
  r !== void 0 && r !== _ && h(r);
337
- }, [r]), /* @__PURE__ */ c.jsx("section", { className: Ht.promptCodeEditor, children: /* @__PURE__ */ c.jsx(
338
- ht,
337
+ }, [r]), /* @__PURE__ */ c.jsx("section", { className: Jt.promptCodeEditor, children: /* @__PURE__ */ c.jsx(
338
+ ut,
339
339
  {
340
340
  themeMode: f,
341
- requestConfig: m,
342
- language: x,
341
+ requestConfig: x,
342
+ language: m,
343
343
  disabled: y,
344
344
  inputLabel: d,
345
345
  inputPlaceholder: a,
@@ -348,10 +348,10 @@ const zt = (e) => {
348
348
  onCodeChange: g
349
349
  }
350
350
  ) });
351
- }, Wt = "_body_14tsv_1", Qt = "_body_content_14tsv_5", ve = {
352
- body: Wt,
353
- body_content: Qt
354
- }, Yt = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: ve.body, children: /* @__PURE__ */ c.jsx("div", { className: ve.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), X = (e) => {
351
+ }, Xt = "_body_14tsv_1", Wt = "_body_content_14tsv_5", ve = {
352
+ body: Xt,
353
+ body_content: Wt
354
+ }, Qt = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: ve.body, children: /* @__PURE__ */ c.jsx("div", { className: ve.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), X = (e) => {
355
355
  if (!e)
356
356
  return { "content-type": "application/json" };
357
357
  if (typeof e == "function")
@@ -363,7 +363,7 @@ const zt = (e) => {
363
363
  return { "content-type": "application/json", Authorization: e };
364
364
  }
365
365
  return e;
366
- }, F = () => new AbortController(), Zt = (e, t = {}, s = {}, r = !1, i) => {
366
+ }, F = () => new AbortController(), Yt = (e, t = {}, s = {}, r = !1, i) => {
367
367
  const o = F();
368
368
  r && o.abort();
369
369
  const l = X(t);
@@ -393,7 +393,7 @@ const zt = (e) => {
393
393
  }),
394
394
  controller: l
395
395
  };
396
- }, Ft = (e, t = {}, s = {}, r = {}, i = !1, o) => {
396
+ }, Zt = (e, t = {}, s = {}, r = {}, i = !1, o) => {
397
397
  const l = F();
398
398
  i && l.abort();
399
399
  const n = X(t);
@@ -408,7 +408,7 @@ const zt = (e) => {
408
408
  }),
409
409
  controller: l
410
410
  };
411
- }, Pt = (e, t = {}, s = {}, r = {}, i = !1, o) => {
411
+ }, Ft = (e, t = {}, s = {}, r = {}, i = !1, o) => {
412
412
  const l = F();
413
413
  i && l.abort();
414
414
  const n = X(t);
@@ -423,7 +423,7 @@ const zt = (e) => {
423
423
  }),
424
424
  controller: l
425
425
  };
426
- }, en = (e, t = {}, s = {}, r = {}, i = !1, o) => {
426
+ }, Pt = (e, t = {}, s = {}, r = {}, i = !1, o) => {
427
427
  const l = F();
428
428
  i && l.abort();
429
429
  const n = X(t);
@@ -439,7 +439,7 @@ const zt = (e) => {
439
439
  }),
440
440
  controller: l
441
441
  };
442
- }, De = () => {
442
+ }, Re = () => {
443
443
  let e;
444
444
  return { callEndpoint: async (r) => {
445
445
  r.controller && (e = r.controller);
@@ -453,9 +453,9 @@ const zt = (e) => {
453
453
  }, cancelEndpoint: () => {
454
454
  e && e.abort();
455
455
  } };
456
- }, Le = async (e, t, s = "", r = {}, i = {}) => {
456
+ }, De = async (e, t, s = "", r = {}, i = {}) => {
457
457
  try {
458
- const { callEndpoint: o } = De(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
458
+ const { callEndpoint: o } = Re(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
459
459
  s && a.append("hash_code", s), d && a.append("sessionId", d);
460
460
  const u = `${l}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = _e(
461
461
  u,
@@ -470,14 +470,14 @@ const zt = (e) => {
470
470
  return console.error(o), Promise.reject(o);
471
471
  }
472
472
  }, I = () => {
473
- const e = v((n) => n), { callEndpoint: t } = De(), s = async (n, d, a, u, f = !0) => {
473
+ const e = v((n) => n), { callEndpoint: t } = Re(), s = async (n, d, a, u, f = !0) => {
474
474
  var _;
475
475
  try {
476
476
  const h = (_ = e[n]) == null ? void 0 : _.apiConfig, j = {
477
477
  state: { ...a },
478
478
  triggerKey: u
479
479
  };
480
- return f && H(n, !0), await Le(
480
+ return f && H(n, !0), await De(
481
481
  h,
482
482
  n,
483
483
  d,
@@ -492,14 +492,14 @@ const zt = (e) => {
492
492
  case "post":
493
493
  return _e(u, f, _, {}, !1, d);
494
494
  case "put":
495
- return Ft(u, f, _, {}, !1, d);
495
+ return Zt(u, f, _, {}, !1, d);
496
496
  case "patch":
497
- return Pt(u, f, _, {}, !1, d);
497
+ return Ft(u, f, _, {}, !1, d);
498
498
  case "delete":
499
- return en(u, f, _, h, !1, d);
499
+ return Pt(u, f, _, h, !1, d);
500
500
  case "get":
501
501
  default:
502
- return Zt(u, f, h, !1, d);
502
+ return Yt(u, f, h, !1, d);
503
503
  }
504
504
  }, i = (n, d) => {
505
505
  const { url: a, headers: u } = n, f = {
@@ -572,7 +572,7 @@ const zt = (e) => {
572
572
  }
573
573
  }
574
574
  };
575
- }, tn = ({
575
+ }, en = ({
576
576
  userFlow: e,
577
577
  items: t,
578
578
  responseKey: s
@@ -607,8 +607,8 @@ const zt = (e) => {
607
607
  title: l == null ? void 0 : l.title,
608
608
  component: /* @__PURE__ */ c.jsx("div", { onClick: () => i(l) })
609
609
  })), []);
610
- return /* @__PURE__ */ c.jsx(Qe, { items: o });
611
- }, nn = (e) => {
610
+ return /* @__PURE__ */ c.jsx(We, { items: o });
611
+ }, tn = (e) => {
612
612
  const {
613
613
  userFlow: t,
614
614
  pageId: s,
@@ -624,10 +624,10 @@ const zt = (e) => {
624
624
  } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: j } = I(), { disabled: y } = M(
625
625
  t,
626
626
  a
627
- ), x = {
627
+ ), m = {
628
628
  ...f,
629
629
  children: l ?? o
630
- }, m = (x == null ? void 0 : x.disabled) ?? y, g = D(async () => {
630
+ }, x = (m == null ? void 0 : m.disabled) ?? y, g = D(async () => {
631
631
  var b, N, p;
632
632
  try {
633
633
  const C = {
@@ -636,7 +636,7 @@ const zt = (e) => {
636
636
  };
637
637
  switch (L(t, C), i) {
638
638
  case "CLOSE_MODAL":
639
- me(t, !1);
639
+ xe(t, !1);
640
640
  break;
641
641
  case "CLOSE_DRAWER":
642
642
  Z(t, !1);
@@ -708,16 +708,16 @@ const zt = (e) => {
708
708
  }
709
709
  }, [i, n, s, r, t]);
710
710
  return /* @__PURE__ */ c.jsx(
711
- Ye,
711
+ Qe,
712
712
  {
713
- ...x,
714
- disabled: m,
715
- onClick: () => !m && (u ?? g)()
713
+ ...m,
714
+ disabled: x,
715
+ onClick: () => !x && (u ?? g)()
716
716
  }
717
717
  );
718
- }, rn = "_cardNotificationNotFront_t7pln_1", sn = {
719
- cardNotificationNotFront: rn
720
- }, an = (e) => {
718
+ }, nn = "_cardNotificationNotFront_t7pln_1", rn = {
719
+ cardNotificationNotFront: nn
720
+ }, sn = (e) => {
721
721
  const { content: t, description: s, ...r } = e, i = {
722
722
  ...r,
723
723
  children: t ?? s
@@ -726,10 +726,10 @@ const zt = (e) => {
726
726
  he,
727
727
  {
728
728
  ...i,
729
- className: sn.cardNotificationNotFront
729
+ className: rn.cardNotificationNotFront
730
730
  }
731
731
  );
732
- }, on = (e) => {
732
+ }, an = (e) => {
733
733
  const {
734
734
  userFlow: t,
735
735
  pageId: s,
@@ -745,7 +745,7 @@ const zt = (e) => {
745
745
  }, { getNextUI: f } = I(), [_, h] = S(l || !1), { disabled: j } = M(
746
746
  t,
747
747
  d
748
- ), y = R(() => n && o ? `${o} *` : o ?? "", [o, n]), x = D(async () => {
748
+ ), y = R(() => n && o ? `${o} *` : o ?? "", [o, n]), m = D(async () => {
749
749
  var g;
750
750
  try {
751
751
  const b = !_;
@@ -771,26 +771,26 @@ const zt = (e) => {
771
771
  } catch (b) {
772
772
  console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
773
773
  }
774
- }, [t, s, r, i, _]), m = (u == null ? void 0 : u.disabled) ?? j;
774
+ }, [t, s, r, i, _]), x = (u == null ? void 0 : u.disabled) ?? j;
775
775
  return /* @__PURE__ */ c.jsx(
776
- Ze,
776
+ Ye,
777
777
  {
778
778
  ...u,
779
779
  labelRight: y,
780
780
  checked: _,
781
- disabled: m,
781
+ disabled: x,
782
782
  onChange: () => {
783
- !m && x();
783
+ !x && m();
784
784
  }
785
785
  }
786
786
  );
787
- }, cn = "_codeEditor_1coz7_1", ln = "_codeEditor_label_1coz7_4", dn = "_codeEditor_wrapper_1coz7_13", _n = "_input_1coz7_17", un = "_preview_1coz7_18", Y = {
788
- codeEditor: cn,
789
- codeEditor_label: ln,
790
- codeEditor_wrapper: dn,
791
- input: _n,
792
- preview: un
793
- }, hn = (e) => {
787
+ }, on = "_codeEditor_1coz7_1", cn = "_codeEditor_label_1coz7_4", ln = "_codeEditor_wrapper_1coz7_13", dn = "_input_1coz7_17", _n = "_preview_1coz7_18", Y = {
788
+ codeEditor: on,
789
+ codeEditor_label: cn,
790
+ codeEditor_wrapper: ln,
791
+ input: dn,
792
+ preview: _n
793
+ }, un = (e) => {
794
794
  const {
795
795
  userFlow: t,
796
796
  responseKey: s,
@@ -805,12 +805,12 @@ const zt = (e) => {
805
805
  } = e, [f, _] = S(l ?? ""), h = ue.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
806
806
  t,
807
807
  d
808
- ), y = a ?? j, x = {
808
+ ), y = a ?? j, m = {
809
809
  json: be(),
810
- markdown: yt(),
811
- sql: mt(),
810
+ markdown: ft(),
811
+ sql: yt(),
812
812
  yaml: xt()
813
- }, m = R(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (b) => {
813
+ }, x = R(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (b) => {
814
814
  _(b);
815
815
  const N = {
816
816
  [s]: b
@@ -818,26 +818,26 @@ const zt = (e) => {
818
818
  L(t, N);
819
819
  };
820
820
  return /* @__PURE__ */ c.jsxs("div", { className: Y.codeEditor, children: [
821
- m && m !== "" && /* @__PURE__ */ c.jsx("label", { className: Y.codeEditor_label, children: m }),
821
+ x && x !== "" && /* @__PURE__ */ c.jsx("label", { className: Y.codeEditor_label, children: x }),
822
822
  /* @__PURE__ */ c.jsxs("div", { className: Y.codeEditor_wrapper, children: [
823
823
  /* @__PURE__ */ c.jsx(
824
- ft,
824
+ ht,
825
825
  {
826
826
  className: Y.input,
827
827
  value: f,
828
828
  height: "400px",
829
829
  placeholder: o,
830
- extensions: [x[i] ?? be()],
830
+ extensions: [m[i] ?? be()],
831
831
  onChange: (b) => g(b),
832
832
  theme: h,
833
833
  editable: !y
834
834
  }
835
835
  ),
836
- i == "markdown" && u && /* @__PURE__ */ c.jsx(Fe, { className: Y.preview, children: f })
836
+ i == "markdown" && u && /* @__PURE__ */ c.jsx(Ze, { className: Y.preview, children: f })
837
837
  ] })
838
838
  ] });
839
839
  };
840
- var Be = { exports: {} };
840
+ var Le = { exports: {} };
841
841
  /*!
842
842
  Copyright (c) 2018 Jed Watson.
843
843
  Licensed under the MIT License (MIT), see
@@ -872,12 +872,12 @@ var Be = { exports: {} };
872
872
  }
873
873
  e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
874
874
  })();
875
- })(Be);
876
- var fn = Be.exports;
877
- const ee = /* @__PURE__ */ Bt(fn);
878
- const yn = "_dividerNotFront_tze3j_1", mn = {
879
- dividerNotFront: yn
880
- }, xn = (e) => /* @__PURE__ */ c.jsx(Pe, { ...e, className: mn.dividerNotFront }), gn = (e, t, s) => {
875
+ })(Le);
876
+ var hn = Le.exports;
877
+ const ee = /* @__PURE__ */ Lt(hn);
878
+ const fn = "_dividerNotFront_tze3j_1", yn = {
879
+ dividerNotFront: fn
880
+ }, xn = (e) => /* @__PURE__ */ c.jsx(Fe, { ...e, className: yn.dividerNotFront }), mn = (e, t, s) => {
881
881
  const { url: r, paginationKeys: i, params: o } = e, l = [], n = (i == null ? void 0 : i.page) ?? "page";
882
882
  if (l.push(`${n}=${t}`), typeof s == "string") {
883
883
  const u = (i == null ? void 0 : i.text) ?? "text";
@@ -891,11 +891,11 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
891
891
  }
892
892
  const d = l.join("&");
893
893
  return d ? `${r}?${d}` : r;
894
- }, xe = (e, t, s) => {
894
+ }, me = (e, t, s) => {
895
895
  const { type: r, url: i, method: o, headers: l } = e;
896
896
  return r === "rest" ? {
897
897
  type: "rest",
898
- url: gn(e, t, s),
898
+ url: mn(e, t, s),
899
899
  method: o,
900
900
  headers: l,
901
901
  data: (e == null ? void 0 : e.data) || {}
@@ -911,17 +911,17 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
911
911
  page: t
912
912
  }
913
913
  };
914
- }, ie = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ie = (e, t, s, r) => {
914
+ }, ie = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Be = (e, t, s, r) => {
915
915
  const i = B.query(e, t), o = i == null ? void 0 : i.map((a) => {
916
916
  var u, f;
917
917
  if (s) {
918
918
  const _ = {};
919
919
  for (const [h, j] of Object.entries(s))
920
920
  if (typeof j == "object" && "path" in j) {
921
- const y = j, x = (u = B.query(a, y.path)) == null ? void 0 : u[0];
922
- y.translations && y.translations[String(x)] ? _[h] = ie(
923
- y.translations[String(x)]
924
- ) : _[h] = ie(x);
921
+ const y = j, m = (u = B.query(a, y.path)) == null ? void 0 : u[0];
922
+ y.translations && String(m) in y.translations ? _[h] = ie(
923
+ y.translations[String(m)]
924
+ ) : _[h] = ie(m);
925
925
  } else {
926
926
  const y = j;
927
927
  _[h] = ie((f = B.query(a, y)) == null ? void 0 : f[0]);
@@ -941,7 +941,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
941
941
  }, ne = ({ withPadding: e = !1 }) => {
942
942
  const t = (s) => /* @__PURE__ */ c.jsx("span", { style: { color: $.labelColor }, children: s });
943
943
  return /* @__PURE__ */ c.jsx(
944
- gt,
944
+ mt,
945
945
  {
946
946
  formatter: t,
947
947
  wrapperStyle: {
@@ -951,7 +951,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
951
951
  }
952
952
  }
953
953
  );
954
- }, pn = ({
954
+ }, gn = ({
955
955
  active: e,
956
956
  payload: t,
957
957
  label: s,
@@ -977,12 +977,12 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
977
977
  t.map((l, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
978
978
  ] });
979
979
  }, re = ({ tooltipKey: e } = {}) => /* @__PURE__ */ c.jsx(
980
- pt,
980
+ gt,
981
981
  {
982
- content: /* @__PURE__ */ c.jsx(pn, { tooltipKey: e })
982
+ content: /* @__PURE__ */ c.jsx(gn, { tooltipKey: e })
983
983
  }
984
984
  ), ge = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ c.jsx(
985
- bt,
985
+ pt,
986
986
  {
987
987
  dataKey: e,
988
988
  hide: t,
@@ -992,23 +992,23 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
992
992
  }
993
993
  }
994
994
  ), pe = () => /* @__PURE__ */ c.jsx(
995
- jt,
995
+ bt,
996
996
  {
997
997
  tick: {
998
998
  fill: $.labelColor,
999
999
  fontSize: $.fontSize
1000
1000
  }
1001
1001
  }
1002
- ), bn = (e) => {
1002
+ ), pn = (e) => {
1003
1003
  const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e;
1004
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(wt, { data: t, children: [
1004
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(jt, { data: t, children: [
1005
1005
  /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1006
1006
  /* @__PURE__ */ c.jsx(ge, { dataKey: s }),
1007
1007
  /* @__PURE__ */ c.jsx(pe, {}),
1008
1008
  /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1009
1009
  /* @__PURE__ */ c.jsx(ne, {}),
1010
1010
  r.map((o, l) => /* @__PURE__ */ c.jsx(
1011
- Ct,
1011
+ wt,
1012
1012
  {
1013
1013
  type: "monotone",
1014
1014
  dataKey: o,
@@ -1018,16 +1018,16 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1018
1018
  o
1019
1019
  ))
1020
1020
  ] }) });
1021
- }, jn = (e) => {
1021
+ }, bn = (e) => {
1022
1022
  const { data: t, yKeys: s, xKey: r, tooltipKey: i } = e;
1023
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Nt, { data: t, children: [
1023
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Ct, { data: t, children: [
1024
1024
  /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1025
1025
  /* @__PURE__ */ c.jsx(ge, { hide: !0, dataKey: r }),
1026
1026
  /* @__PURE__ */ c.jsx(pe, {}),
1027
1027
  /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1028
1028
  /* @__PURE__ */ c.jsx(ne, { withPadding: !0 }),
1029
1029
  s.map((o, l) => /* @__PURE__ */ c.jsx(
1030
- vt,
1030
+ Nt,
1031
1031
  {
1032
1032
  dataKey: o,
1033
1033
  fill: z[l % z.length]
@@ -1035,16 +1035,16 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1035
1035
  o
1036
1036
  ))
1037
1037
  ] }) });
1038
- }, wn = (e) => {
1038
+ }, jn = (e) => {
1039
1039
  const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e;
1040
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Et, { data: t, children: [
1040
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(vt, { data: t, children: [
1041
1041
  /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1042
1042
  /* @__PURE__ */ c.jsx(ge, { dataKey: s }),
1043
1043
  /* @__PURE__ */ c.jsx(pe, {}),
1044
1044
  /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1045
1045
  /* @__PURE__ */ c.jsx(ne, {}),
1046
1046
  r.map((o, l) => /* @__PURE__ */ c.jsx(
1047
- kt,
1047
+ Et,
1048
1048
  {
1049
1049
  type: "monotone",
1050
1050
  dataKey: o,
@@ -1055,7 +1055,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1055
1055
  o
1056
1056
  ))
1057
1057
  ] }) });
1058
- }, Cn = (e) => {
1058
+ }, wn = (e) => {
1059
1059
  const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e, o = ({
1060
1060
  cx: l,
1061
1061
  cy: n,
@@ -1078,11 +1078,11 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1078
1078
  }
1079
1079
  );
1080
1080
  };
1081
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(St, { children: [
1081
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(kt, { children: [
1082
1082
  /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1083
1083
  /* @__PURE__ */ c.jsx(ne, {}),
1084
1084
  /* @__PURE__ */ c.jsx(
1085
- qt,
1085
+ St,
1086
1086
  {
1087
1087
  data: t,
1088
1088
  dataKey: r[0],
@@ -1090,7 +1090,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1090
1090
  label: o,
1091
1091
  outerRadius: 120,
1092
1092
  children: t.map((l, n) => /* @__PURE__ */ c.jsx(
1093
- At,
1093
+ qt,
1094
1094
  {
1095
1095
  fill: z[n % z.length]
1096
1096
  },
@@ -1099,11 +1099,11 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1099
1099
  }
1100
1100
  )
1101
1101
  ] }) });
1102
- }, Nn = {
1103
- area: bn,
1104
- bar: jn,
1105
- line: wn,
1106
- pie: Cn
1102
+ }, Cn = {
1103
+ area: pn,
1104
+ bar: bn,
1105
+ line: jn,
1106
+ pie: wn
1107
1107
  }, z = [
1108
1108
  "var(--color-primitive-palette-1-50)",
1109
1109
  "var(--color-primitive-palette-2-50)",
@@ -1129,25 +1129,25 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1129
1129
  tooltipBg: "#fff",
1130
1130
  tooltipColor: "#000",
1131
1131
  tooltipBorderRadius: "4px"
1132
- }, vn = (e) => {
1133
- const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: o, ...l } = e, n = Nn[l.type];
1132
+ }, Nn = (e) => {
1133
+ const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: o, ...l } = e, n = Cn[l.type];
1134
1134
  if (!n)
1135
1135
  return /* @__PURE__ */ c.jsx("div", { children: "Not supported chart type" });
1136
1136
  const { fetchDataSource: d } = I(), [a, u] = S(!1), [f, _] = S([]), h = async () => {
1137
- var y, x;
1137
+ var y, m;
1138
1138
  try {
1139
1139
  u(!0);
1140
- const { jsonPathData: m, mapperData: g } = o, b = xe(
1140
+ const { jsonPathData: x, mapperData: g } = o, b = me(
1141
1141
  o,
1142
1142
  1
1143
1143
  ), N = await d(
1144
1144
  b,
1145
1145
  s,
1146
1146
  !1
1147
- ), p = m ? (y = Ie(N == null ? void 0 : N.data, m, g)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1147
+ ), p = x ? (y = Be(N == null ? void 0 : N.data, x, g)) == null ? void 0 : y.items : (m = N == null ? void 0 : N.data) == null ? void 0 : m.data;
1148
1148
  _(p), u(!1);
1149
- } catch (m) {
1150
- alert(JSON.stringify(m)), u(!1);
1149
+ } catch (x) {
1150
+ alert(JSON.stringify(x)), u(!1);
1151
1151
  }
1152
1152
  };
1153
1153
  J(() => {
@@ -1157,46 +1157,45 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1157
1157
  ...l,
1158
1158
  data: f
1159
1159
  };
1160
- return a ? /* @__PURE__ */ c.jsx(Te, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1161
- }, En = "_header_g1eri_1", kn = "_header_content_g1eri_5", Ee = {
1162
- header: En,
1163
- header_content: kn
1164
- }, Sn = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ee.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), A = (e, t, s, r) => {
1160
+ return a ? /* @__PURE__ */ c.jsx(Oe, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1161
+ }, vn = "_header_g1eri_1", En = "_header_content_g1eri_5", Ee = {
1162
+ header: vn,
1163
+ header_content: En
1164
+ }, kn = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ee.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), A = (e, t, s, r) => {
1165
1165
  var l;
1166
1166
  const i = {
1167
- accordion: (n) => /* @__PURE__ */ c.jsx(fr, { ...n, userFlow: e, pageId: t }),
1168
- aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Kt, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
1169
- aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Vt, { ...n, userFlow: e, pageId: t }),
1170
- aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(Xt, { ...n, userFlow: e, pageId: t }),
1171
- breadcrumbs: (n) => /* @__PURE__ */ c.jsx(tn, { ...n, userFlow: e, pageId: t }),
1172
- button: (n) => /* @__PURE__ */ c.jsx(nn, { ...n, userFlow: e, pageId: t }),
1173
- cardNotification: (n) => /* @__PURE__ */ c.jsx(an, { ...n }),
1174
- chart: (n) => /* @__PURE__ */ c.jsx(vn, { ...n, userFlow: e }),
1175
- checkbox: (n) => /* @__PURE__ */ c.jsx(on, { ...n, userFlow: e, pageId: t }),
1176
- code: (n) => /* @__PURE__ */ c.jsx(hn, { ...n, userFlow: e, pageId: t }),
1167
+ accordion: (n) => /* @__PURE__ */ c.jsx(hr, { ...n, userFlow: e, pageId: t }),
1168
+ aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Mt, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
1169
+ aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Ut, { ...n, userFlow: e, pageId: t }),
1170
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(Ht, { ...n, userFlow: e, pageId: t }),
1171
+ breadcrumbs: (n) => /* @__PURE__ */ c.jsx(en, { ...n, userFlow: e, pageId: t }),
1172
+ button: (n) => /* @__PURE__ */ c.jsx(tn, { ...n, userFlow: e, pageId: t }),
1173
+ cardNotification: (n) => /* @__PURE__ */ c.jsx(sn, { ...n }),
1174
+ chart: (n) => /* @__PURE__ */ c.jsx(Nn, { ...n, userFlow: e }),
1175
+ checkbox: (n) => /* @__PURE__ */ c.jsx(an, { ...n, userFlow: e, pageId: t }),
1176
+ code: (n) => /* @__PURE__ */ c.jsx(un, { ...n, userFlow: e, pageId: t }),
1177
1177
  divider: (n) => /* @__PURE__ */ c.jsx(xn, { ...n }),
1178
- drawer: (n) => /* @__PURE__ */ c.jsx(gr, { ...n, userFlow: e, pageId: t }),
1179
- heading: (n) => zt(n),
1180
- pill: (n) => /* @__PURE__ */ c.jsx(Rn, { ...n }),
1181
- modal: (n) => /* @__PURE__ */ c.jsx(On, { ...n, userFlow: e, pageId: t }),
1182
- roundButton: (n) => /* @__PURE__ */ c.jsx(Dn, { ...n, userFlow: e, pageId: t }),
1183
- row: (n) => /* @__PURE__ */ c.jsx(In, { ...n, userFlow: e, pageId: t }),
1184
- select: (n) => /* @__PURE__ */ c.jsx(Vn, { ...n, userFlow: e, pageId: t }),
1185
- switch: (n) => /* @__PURE__ */ c.jsx(tr, { ...n, userFlow: e, pageId: t }),
1186
- spacing: (n) => /* @__PURE__ */ c.jsx(er, { ...n, userFlow: e, pageId: t }),
1187
- table: (n) => /* @__PURE__ */ c.jsx(cr, { ...n, userFlow: e, pageId: t }),
1188
- text: (n) => Mt(n),
1189
- textField: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t }),
1190
- toast: (n) => /* @__PURE__ */ c.jsx(_r, { ...n, userFlow: e, pageId: t })
1178
+ drawer: (n) => /* @__PURE__ */ c.jsx(mr, { ...n, userFlow: e, pageId: t }),
1179
+ heading: (n) => It(n),
1180
+ pill: (n) => /* @__PURE__ */ c.jsx($n, { ...n }),
1181
+ modal: (n) => /* @__PURE__ */ c.jsx(An, { ...n, userFlow: e, pageId: t }),
1182
+ roundButton: (n) => /* @__PURE__ */ c.jsx(Rn, { ...n, userFlow: e, pageId: t }),
1183
+ row: (n) => /* @__PURE__ */ c.jsx(Bn, { ...n, userFlow: e, pageId: t }),
1184
+ select: (n) => /* @__PURE__ */ c.jsx(Un, { ...n, userFlow: e, pageId: t }),
1185
+ switch: (n) => /* @__PURE__ */ c.jsx(er, { ...n, userFlow: e, pageId: t }),
1186
+ spacing: (n) => /* @__PURE__ */ c.jsx(Pn, { ...n, userFlow: e, pageId: t }),
1187
+ table: (n) => /* @__PURE__ */ c.jsx(or, { ...n, userFlow: e, pageId: t }),
1188
+ text: (n) => zt(n),
1189
+ textField: (n) => /* @__PURE__ */ c.jsx(lr, { ...n, userFlow: e, pageId: t }),
1190
+ toast: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t })
1191
1191
  };
1192
1192
  return (l = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : l.map((n) => {
1193
1193
  const d = i[n.component];
1194
1194
  return d ? d({ ...n, userFlow: e, pageId: t }) : null;
1195
1195
  });
1196
- }, qn = "_modalNotFront_xyah1_1", An = "_modalNotFront_body_xyah1_13", ke = {
1197
- modalNotFront: qn,
1198
- modalNotFront_body: An
1199
- }, On = ({
1196
+ }, Sn = "_modalContent_p06ci_1", qn = {
1197
+ modalContent: Sn
1198
+ }, An = ({
1200
1199
  userFlow: e,
1201
1200
  pageId: t,
1202
1201
  responseKey: s,
@@ -1206,33 +1205,32 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1206
1205
  headerStatusColor: l,
1207
1206
  ...n
1208
1207
  }) => {
1209
- const d = v((m) => {
1208
+ const d = v((x) => {
1210
1209
  var g;
1211
- return (g = m[e]) == null ? void 0 : g.isModalOpen;
1212
- }), a = v((m) => {
1210
+ return (g = x[e]) == null ? void 0 : g.isModalOpen;
1211
+ }), a = v((x) => {
1213
1212
  var g;
1214
- return (g = m[e]) == null ? void 0 : g.isLoading;
1213
+ return (g = x[e]) == null ? void 0 : g.isLoading;
1215
1214
  }), u = d && !a, f = {
1216
1215
  ...n
1217
1216
  }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = D(() => {
1218
- ye(e), me(e, !1);
1219
- }, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, i), x = A(e, t, o);
1217
+ ye(e), xe(e, !1);
1218
+ }, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, i), m = A(e, t, o);
1220
1219
  return /* @__PURE__ */ c.jsx(
1221
- et,
1220
+ Pe,
1222
1221
  {
1223
1222
  ...f,
1224
- className: ke.modalNotFront,
1225
1223
  headerStatusColor: _,
1226
- header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((m, g) => /* @__PURE__ */ c.jsx(T, { children: m }, `modal-header-${g}`)) }),
1227
- children: /* @__PURE__ */ c.jsx("section", { className: ke.modalNotFront_body, children: y.map((m, g) => /* @__PURE__ */ c.jsx(T, { children: m }, `modal-body-${g}`)) }),
1228
- actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: x.map((m, g) => /* @__PURE__ */ c.jsx(T, { children: m }, `modal-footer-${g}`)) }),
1224
+ header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((x, g) => /* @__PURE__ */ c.jsx(T, { children: x }, `modal-header-${g}`)) }),
1225
+ children: /* @__PURE__ */ c.jsx("section", { className: qn.modalContent, children: y.map((x, g) => /* @__PURE__ */ c.jsx(T, { children: x }, `modal-body-${g}`)) }),
1226
+ actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: m.map((x, g) => /* @__PURE__ */ c.jsx(T, { children: x }, `modal-footer-${g}`)) }),
1229
1227
  open: u,
1230
1228
  onClose: h
1231
1229
  }
1232
1230
  );
1233
- }, Tn = ({ userFlow: e, pageId: t }) => {
1231
+ }, On = ({ userFlow: e, pageId: t }) => {
1234
1232
  var o, l;
1235
- const s = $t(e);
1233
+ const s = Tt(e);
1236
1234
  if (!s)
1237
1235
  return null;
1238
1236
  const r = [
@@ -1248,7 +1246,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1248
1246
  const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
1249
1247
  return /* @__PURE__ */ c.jsx(T, { children: n }, a);
1250
1248
  }) });
1251
- }, $n = {
1249
+ }, Tn = {
1252
1250
  success: {
1253
1251
  color: "success-opacity",
1254
1252
  textColor: "success-60",
@@ -1274,8 +1272,8 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1274
1272
  textColor: "neutral-70",
1275
1273
  iconColor: "neutral-70"
1276
1274
  }
1277
- }, Rn = (e) => {
1278
- const { content: t, variant: s = "neutral", ...r } = e, i = $n[s], o = {
1275
+ }, $n = (e) => {
1276
+ const { content: t, variant: s = "neutral", ...r } = e, i = Tn[s], o = {
1279
1277
  ...r,
1280
1278
  children: t,
1281
1279
  color: (r == null ? void 0 : r.color) ?? i.color,
@@ -1283,7 +1281,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1283
1281
  iconColor: (r == null ? void 0 : r.iconColor) ?? i.iconColor
1284
1282
  };
1285
1283
  return /* @__PURE__ */ c.jsx(de, { ...o });
1286
- }, Dn = (e) => {
1284
+ }, Rn = (e) => {
1287
1285
  const {
1288
1286
  userFlow: t,
1289
1287
  pageId: s,
@@ -1301,34 +1299,34 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1301
1299
  }, h = (_ == null ? void 0 : _.disabled) ?? f, j = D(async () => {
1302
1300
  var y;
1303
1301
  try {
1304
- const x = {
1302
+ const m = {
1305
1303
  ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1306
1304
  [r]: { status: 200 }
1307
1305
  };
1308
- switch (L(t, x), i) {
1306
+ switch (L(t, m), i) {
1309
1307
  case "GO_TO_NEXT_UI": {
1310
- const m = await a(
1308
+ const x = await a(
1311
1309
  t,
1312
1310
  s,
1313
- x,
1311
+ m,
1314
1312
  r
1315
1313
  );
1316
- m != null && m.data && q(t, m == null ? void 0 : m.data);
1314
+ x != null && x.data && q(t, x == null ? void 0 : x.data);
1317
1315
  break;
1318
1316
  }
1319
1317
  case "FETCH_AND_GO_TO_NEXT_UI": {
1320
- const m = await u(
1318
+ const x = await u(
1321
1319
  t,
1322
1320
  s,
1323
- x,
1321
+ m,
1324
1322
  r,
1325
1323
  o
1326
1324
  );
1327
- m != null && m.data && q(t, m == null ? void 0 : m.data);
1325
+ x != null && x.data && q(t, x == null ? void 0 : x.data);
1328
1326
  break;
1329
1327
  }
1330
1328
  case "CLOSE_MODAL":
1331
- me(t, !1);
1329
+ xe(t, !1);
1332
1330
  break;
1333
1331
  case "CLOSE_DRAWER":
1334
1332
  Z(t, !1);
@@ -1340,20 +1338,20 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1340
1338
  console.warn(`Unhandled actionType: ${i}`);
1341
1339
  break;
1342
1340
  }
1343
- } catch (x) {
1344
- alert(JSON.stringify(x));
1341
+ } catch (m) {
1342
+ alert(JSON.stringify(m));
1345
1343
  }
1346
1344
  }, [i, o, s, r, t]);
1347
1345
  return /* @__PURE__ */ c.jsx(
1348
- tt,
1346
+ et,
1349
1347
  {
1350
1348
  ..._,
1351
1349
  disabled: h,
1352
1350
  onClick: () => !h && (n ?? j)()
1353
1351
  }
1354
1352
  );
1355
- }, Ln = "_row_1bqj4_1", Bn = "_row_column_1bqj4_65", U = {
1356
- row: Ln,
1353
+ }, Dn = "_row_1bqj4_1", Ln = "_row_column_1bqj4_65", U = {
1354
+ row: Dn,
1357
1355
  "row__gap-none": "_row__gap-none_1bqj4_5",
1358
1356
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
1359
1357
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -1374,7 +1372,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1374
1372
  "row__align-center": "_row__align-center_1bqj4_56",
1375
1373
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
1376
1374
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
1377
- row_column: Bn,
1375
+ row_column: Ln,
1378
1376
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
1379
1377
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
1380
1378
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -1395,7 +1393,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1395
1393
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
1396
1394
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
1397
1395
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
1398
- }, In = (e) => {
1396
+ }, Bn = (e) => {
1399
1397
  const {
1400
1398
  userFlow: t,
1401
1399
  pageId: s,
@@ -1454,7 +1452,7 @@ const yn = "_dividerNotFront_tze3j_1", mn = {
1454
1452
  }
1455
1453
  );
1456
1454
  };
1457
- function ze({
1455
+ function Ie({
1458
1456
  userFlow: e,
1459
1457
  pageId: t,
1460
1458
  responseKey: s,
@@ -1463,7 +1461,7 @@ function ze({
1463
1461
  isMulti: o = !1,
1464
1462
  debounceMs: l
1465
1463
  }) {
1466
- const n = He(null);
1464
+ const n = Je(null);
1467
1465
  J(() => () => {
1468
1466
  n.current !== null && (clearTimeout(n.current), n.current = null);
1469
1467
  }, []);
@@ -1507,14 +1505,14 @@ function ze({
1507
1505
  [o, l, d]
1508
1506
  );
1509
1507
  }
1510
- const zn = (e, t, s, r) => {
1508
+ const In = (e, t, s, r) => {
1511
1509
  const i = B.query(e, t);
1512
1510
  return (i == null ? void 0 : i.map((o) => {
1513
1511
  var d, a;
1514
1512
  const l = (d = B.query(o, s)) == null ? void 0 : d[0], n = r ? (a = B.query(o, r)) == null ? void 0 : a[0] : o;
1515
1513
  return { label: l, value: n };
1516
1514
  })) ?? [];
1517
- }, Mn = (e, t, s, r = 10) => {
1515
+ }, zn = (e, t, s, r = 10) => {
1518
1516
  var n, d;
1519
1517
  let i, o;
1520
1518
  if (s) {
@@ -1530,9 +1528,9 @@ const zn = (e, t, s, r) => {
1530
1528
  total: o,
1531
1529
  hasMore: l
1532
1530
  };
1533
- }, Kn = "_selectNotFront_1yw9q_1", Me = {
1534
- selectNotFront: Kn
1535
- }, Gn = ({
1531
+ }, Mn = "_selectNotFront_1yw9q_1", ze = {
1532
+ selectNotFront: Mn
1533
+ }, Kn = ({
1536
1534
  userFlow: e,
1537
1535
  pageId: t,
1538
1536
  responseKey: s,
@@ -1548,13 +1546,13 @@ const zn = (e, t, s, r) => {
1548
1546
  }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = S((a == null ? void 0 : a.value) ?? ""), { disabled: j } = M(
1549
1547
  e,
1550
1548
  l
1551
- ), y = (a == null ? void 0 : a.disabled) ?? j, x = R(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), m = R(() => {
1549
+ ), y = (a == null ? void 0 : a.disabled) ?? j, m = R(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), x = R(() => {
1552
1550
  const p = a != null && a.isMulti ? _ : [_], C = {};
1553
1551
  return typeof p == "object" && "length" in p && (p == null || p.forEach((w) => {
1554
1552
  const E = JSON.stringify(w.value), O = JSON.stringify(w.label);
1555
1553
  C[E] = w, O in C || (C[O] = w);
1556
1554
  })), C;
1557
- }, [_]), g = ze({
1555
+ }, [_]), g = Ie({
1558
1556
  userFlow: e,
1559
1557
  pageId: t,
1560
1558
  responseKey: s,
@@ -1570,7 +1568,7 @@ const zn = (e, t, s, r) => {
1570
1568
  jsonPathOptions: O,
1571
1569
  jsonPathValue: k,
1572
1570
  jsonPathPagination: K
1573
- } = i, G = xe(
1571
+ } = i, G = me(
1574
1572
  i,
1575
1573
  w,
1576
1574
  p
@@ -1578,30 +1576,30 @@ const zn = (e, t, s, r) => {
1578
1576
  G,
1579
1577
  e,
1580
1578
  !1
1581
- ), ae = se == null ? void 0 : se.data, Ge = ae ? zn(
1579
+ ), ae = se == null ? void 0 : se.data, Ke = ae ? In(
1582
1580
  ae,
1583
1581
  O,
1584
1582
  E,
1585
1583
  k
1586
- ) : [], { hasMore: Ue } = Mn(
1584
+ ) : [], { hasMore: Ge } = zn(
1587
1585
  ae,
1588
1586
  w,
1589
1587
  K
1590
1588
  );
1591
1589
  return {
1592
- options: Ge,
1593
- hasMore: Ue,
1590
+ options: Ke,
1591
+ hasMore: Ge,
1594
1592
  additional: {
1595
1593
  page: p ? 1 : w + 1
1596
1594
  }
1597
1595
  };
1598
1596
  };
1599
1597
  return /* @__PURE__ */ c.jsx(
1600
- nt,
1598
+ tt,
1601
1599
  {
1602
1600
  ...a,
1603
- className: Me.selectNotFront,
1604
- label: x,
1601
+ className: ze.selectNotFront,
1602
+ label: m,
1605
1603
  value: _,
1606
1604
  disabled: y,
1607
1605
  noOptionsMessage: () => /* @__PURE__ */ c.jsx(c.Fragment, { children: "Sin opciones" }),
@@ -1610,12 +1608,12 @@ const zn = (e, t, s, r) => {
1610
1608
  additional: { page: 1 },
1611
1609
  isOptionDisabled: (p) => {
1612
1610
  const C = JSON.stringify(p == null ? void 0 : p.value), w = JSON.stringify(p == null ? void 0 : p.label);
1613
- return !!(m != null && m[C]) || !!(m != null && m[w]);
1611
+ return !!(x != null && x[C]) || !!(x != null && x[w]);
1614
1612
  },
1615
1613
  debounceTimeout: 350
1616
1614
  }
1617
1615
  );
1618
- }, Un = ({
1616
+ }, Gn = ({
1619
1617
  userFlow: e,
1620
1618
  pageId: t,
1621
1619
  responseKey: s,
@@ -1631,7 +1629,7 @@ const zn = (e, t, s, r) => {
1631
1629
  }, { getNextUI: u } = I(), [f, _] = S(a.value || ""), { disabled: h } = M(
1632
1630
  e,
1633
1631
  l
1634
- ), j = (a == null ? void 0 : a.disabled) ?? h, y = R(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), x = ze({
1632
+ ), j = (a == null ? void 0 : a.disabled) ?? h, y = R(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), m = Ie({
1635
1633
  userFlow: e,
1636
1634
  pageId: t,
1637
1635
  responseKey: s,
@@ -1639,37 +1637,37 @@ const zn = (e, t, s, r) => {
1639
1637
  getNextUI: u,
1640
1638
  isMulti: a == null ? void 0 : a.isMulti,
1641
1639
  debounceMs: n
1642
- }), m = (g) => {
1643
- _(g), x(g);
1640
+ }), x = (g) => {
1641
+ _(g), m(g);
1644
1642
  };
1645
1643
  return /* @__PURE__ */ c.jsx(
1646
- rt,
1644
+ nt,
1647
1645
  {
1648
1646
  ...a,
1649
- className: Me.selectNotFront,
1647
+ className: ze.selectNotFront,
1650
1648
  label: y,
1651
1649
  value: f,
1652
1650
  disabled: j,
1653
- onChange: (g) => !j && m(g)
1651
+ onChange: (g) => !j && x(g)
1654
1652
  }
1655
1653
  );
1656
- }, Vn = (e) => {
1654
+ }, Un = (e) => {
1657
1655
  const { dataSource: t } = e;
1658
- return t ? /* @__PURE__ */ c.jsx(Gn, { ...e }) : /* @__PURE__ */ c.jsx(Un, { ...e });
1659
- }, Jn = "_spacing_19hqa_1", Hn = "_spacing__xxs_19hqa_1", Xn = "_spacing__xs_19hqa_4", Wn = "_spacing__sm_19hqa_7", Qn = "_spacing__md_19hqa_10", Yn = "_spacing__lg_19hqa_13", Zn = "_spacing__xl_19hqa_16", Fn = "_spacing__xxl_19hqa_19", Pn = "_spacing__xxxl_19hqa_22", Se = {
1660
- spacing: Jn,
1661
- spacing__xxs: Hn,
1662
- spacing__xs: Xn,
1663
- spacing__sm: Wn,
1664
- spacing__md: Qn,
1665
- spacing__lg: Yn,
1666
- spacing__xl: Zn,
1667
- spacing__xxl: Fn,
1668
- spacing__xxxl: Pn
1669
- }, er = (e) => {
1670
- const { size: t } = e, s = ee(Se.spacing, Se[`spacing__${t}`]);
1656
+ return t ? /* @__PURE__ */ c.jsx(Kn, { ...e }) : /* @__PURE__ */ c.jsx(Gn, { ...e });
1657
+ }, Vn = "_spacing_19hqa_1", Jn = "_spacing__xxs_19hqa_1", Hn = "_spacing__xs_19hqa_4", Xn = "_spacing__sm_19hqa_7", Wn = "_spacing__md_19hqa_10", Qn = "_spacing__lg_19hqa_13", Yn = "_spacing__xl_19hqa_16", Zn = "_spacing__xxl_19hqa_19", Fn = "_spacing__xxxl_19hqa_22", ke = {
1658
+ spacing: Vn,
1659
+ spacing__xxs: Jn,
1660
+ spacing__xs: Hn,
1661
+ spacing__sm: Xn,
1662
+ spacing__md: Wn,
1663
+ spacing__lg: Qn,
1664
+ spacing__xl: Yn,
1665
+ spacing__xxl: Zn,
1666
+ spacing__xxxl: Fn
1667
+ }, Pn = (e) => {
1668
+ const { size: t } = e, s = ee(ke.spacing, ke[`spacing__${t}`]);
1671
1669
  return /* @__PURE__ */ c.jsx("div", { className: s });
1672
- }, tr = (e) => {
1670
+ }, er = (e) => {
1673
1671
  const {
1674
1672
  userFlow: t,
1675
1673
  pageId: s,
@@ -1685,7 +1683,7 @@ const zn = (e, t, s, r) => {
1685
1683
  }, { getNextUI: f } = I(), [_, h] = S(l || !1), { disabled: j } = M(
1686
1684
  t,
1687
1685
  d
1688
- ), y = (u == null ? void 0 : u.disabled) ?? j, x = R(() => n && o ? `${o} *` : o ?? "", [o, n]), m = D(async () => {
1686
+ ), y = (u == null ? void 0 : u.disabled) ?? j, m = R(() => n && o ? `${o} *` : o ?? "", [o, n]), x = D(async () => {
1689
1687
  var g;
1690
1688
  try {
1691
1689
  const b = !_;
@@ -1713,28 +1711,28 @@ const zn = (e, t, s, r) => {
1713
1711
  }
1714
1712
  }, [t, s, r, i, _]);
1715
1713
  return /* @__PURE__ */ c.jsx(
1716
- st,
1714
+ rt,
1717
1715
  {
1718
1716
  ...u,
1719
- label: x,
1717
+ label: m,
1720
1718
  checked: _,
1721
1719
  disabled: y,
1722
- onChange: () => !y && m()
1720
+ onChange: () => !y && x()
1723
1721
  }
1724
1722
  );
1725
- }, nr = "_tableSkeleton_3nr9n_1", rr = "_tableArrayPills_3nr9n_7", Ke = {
1726
- tableSkeleton: nr,
1727
- tableArrayPills: rr
1728
- }, sr = ({ values: e }) => {
1723
+ }, tr = "_tableSkeleton_3nr9n_1", nr = "_tableArrayPills_3nr9n_7", Me = {
1724
+ tableSkeleton: tr,
1725
+ tableArrayPills: nr
1726
+ }, rr = ({ values: e }) => {
1729
1727
  const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
1730
- return /* @__PURE__ */ c.jsxs("div", { className: Ke.tableArrayPills, children: [
1728
+ return /* @__PURE__ */ c.jsxs("div", { className: Me.tableArrayPills, children: [
1731
1729
  s.map((i, o) => /* @__PURE__ */ c.jsx(de, { children: String(i) }, o)),
1732
1730
  r > 0 && /* @__PURE__ */ c.jsxs(de, { outlined: !0, children: [
1733
1731
  "+",
1734
1732
  r
1735
1733
  ] })
1736
1734
  ] });
1737
- }, ar = ({
1735
+ }, sr = ({
1738
1736
  userFlow: e,
1739
1737
  pageId: t,
1740
1738
  tableResponseKey: s,
@@ -1751,19 +1749,19 @@ const zn = (e, t, s, r) => {
1751
1749
  responseKey: f,
1752
1750
  dataSource: _
1753
1751
  } = a.props, h = D(async () => {
1754
- var j, y, x;
1752
+ var j, y, m;
1755
1753
  try {
1756
- const m = {
1754
+ const x = {
1757
1755
  ...(j = v.getState()[e]) == null ? void 0 : j.entries,
1758
1756
  [f]: { status: 200 },
1759
1757
  [s]: [{ ...i }]
1760
1758
  };
1761
- switch (L(e, m), u) {
1759
+ switch (L(e, x), u) {
1762
1760
  case "GO_TO_NEXT_UI": {
1763
1761
  const g = await o(
1764
1762
  e,
1765
1763
  t,
1766
- m,
1764
+ x,
1767
1765
  f
1768
1766
  );
1769
1767
  g != null && g.data && q(e, g == null ? void 0 : g.data);
@@ -1773,7 +1771,7 @@ const zn = (e, t, s, r) => {
1773
1771
  const g = await l(
1774
1772
  e,
1775
1773
  t,
1776
- m,
1774
+ x,
1777
1775
  f,
1778
1776
  _
1779
1777
  );
@@ -1784,7 +1782,7 @@ const zn = (e, t, s, r) => {
1784
1782
  const g = await o(
1785
1783
  e,
1786
1784
  t,
1787
- m,
1785
+ x,
1788
1786
  f
1789
1787
  ), b = (y = g == null ? void 0 : g.data) == null ? void 0 : y.content;
1790
1788
  if ((b == null ? void 0 : b.type) !== "fetch")
@@ -1795,7 +1793,7 @@ const zn = (e, t, s, r) => {
1795
1793
  // Avoid to handle loading state until all the requests are done
1796
1794
  !1
1797
1795
  ), C = {
1798
- ...(x = v.getState()[e]) == null ? void 0 : x.entries,
1796
+ ...(m = v.getState()[e]) == null ? void 0 : m.entries,
1799
1797
  [f]: {
1800
1798
  status: p == null ? void 0 : p.status,
1801
1799
  content: p == null ? void 0 : p.data
@@ -1815,22 +1813,22 @@ const zn = (e, t, s, r) => {
1815
1813
  console.warn(`Unhandled actionType: ${u}`);
1816
1814
  break;
1817
1815
  }
1818
- } catch (m) {
1819
- alert(JSON.stringify(m));
1816
+ } catch (x) {
1817
+ alert(JSON.stringify(x));
1820
1818
  }
1821
1819
  }, [u, _, t, f, e]);
1822
- return Xe(a, {
1820
+ return He(a, {
1823
1821
  onClick: h
1824
1822
  });
1825
- }, or = () => /* @__PURE__ */ c.jsx("div", { className: Ke.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ c.jsx(
1826
- Te,
1823
+ }, ar = () => /* @__PURE__ */ c.jsx("div", { className: Me.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ c.jsx(
1824
+ Oe,
1827
1825
  {
1828
1826
  maxWidth: "100%",
1829
1827
  height: 42,
1830
1828
  radius: 8
1831
1829
  },
1832
1830
  `tableSkeletonBase${t}`
1833
- )) }), cr = ({
1831
+ )) }), or = ({
1834
1832
  userFlow: e,
1835
1833
  pageId: t,
1836
1834
  responseKey: s,
@@ -1844,7 +1842,7 @@ const zn = (e, t, s, r) => {
1844
1842
  if (o != null && o.length)
1845
1843
  return o.map((C, w) => ({
1846
1844
  renderContent: (E) => /* @__PURE__ */ c.jsx(
1847
- ar,
1845
+ sr,
1848
1846
  {
1849
1847
  userFlow: e,
1850
1848
  pageId: t,
@@ -1858,7 +1856,7 @@ const zn = (e, t, s, r) => {
1858
1856
  }, [o, e, t]), y = async (C = 1) => {
1859
1857
  try {
1860
1858
  a(!0);
1861
- const { jsonPathData: w, mapperData: E, jsonPathPagination: O } = i, k = xe(
1859
+ const { jsonPathData: w, mapperData: E, jsonPathPagination: O } = i, k = me(
1862
1860
  i,
1863
1861
  C
1864
1862
  ), K = await n(
@@ -1867,7 +1865,7 @@ const zn = (e, t, s, r) => {
1867
1865
  !1
1868
1866
  );
1869
1867
  h(
1870
- Ie(
1868
+ Be(
1871
1869
  K == null ? void 0 : K.data,
1872
1870
  w,
1873
1871
  E,
@@ -1877,13 +1875,13 @@ const zn = (e, t, s, r) => {
1877
1875
  } catch (w) {
1878
1876
  alert(JSON.stringify(w)), a(!1);
1879
1877
  }
1880
- }, x = (C) => {
1878
+ }, m = (C) => {
1881
1879
  f(C), y(C);
1882
1880
  };
1883
1881
  J(() => {
1884
1882
  y();
1885
1883
  }, []);
1886
- const m = R(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
1884
+ const x = R(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
1887
1885
  var E;
1888
1886
  return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
1889
1887
  (O) => Array.isArray(C != null && C.accessor ? O[C == null ? void 0 : C.accessor] : void 0)
@@ -1891,31 +1889,31 @@ const zn = (e, t, s, r) => {
1891
1889
  ...C,
1892
1890
  renderCell: (O) => {
1893
1891
  const k = C.accessor ? O[C.accessor] : void 0;
1894
- return Array.isArray(k) ? /* @__PURE__ */ c.jsx(sr, { values: k }) : k;
1892
+ return Array.isArray(k) ? /* @__PURE__ */ c.jsx(rr, { values: k }) : k;
1895
1893
  }
1896
1894
  } : C;
1897
1895
  }), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
1898
1896
  ...l,
1899
1897
  data: _ == null ? void 0 : _.items,
1900
- columns: m,
1898
+ columns: x,
1901
1899
  rightActions: j
1902
1900
  };
1903
- return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(or, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1904
- /* @__PURE__ */ c.jsx(at, { ...g }),
1901
+ return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(ar, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1902
+ /* @__PURE__ */ c.jsx(st, { ...g }),
1905
1903
  (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ c.jsx(
1906
- ot,
1904
+ at,
1907
1905
  {
1908
1906
  classname: { global: "row__end" },
1909
1907
  page: u,
1910
1908
  size: _ == null ? void 0 : _.pagination.size,
1911
1909
  total: (p = _ == null ? void 0 : _.pagination) == null ? void 0 : p.total,
1912
- onChange: x
1910
+ onChange: m
1913
1911
  }
1914
1912
  )
1915
1913
  ] }) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
1916
- }, ir = "_textFieldNotFront_cps4i_1", lr = {
1917
- textFieldNotFront: ir
1918
- }, dr = (e) => {
1914
+ }, cr = "_textFieldNotFront_cps4i_1", ir = {
1915
+ textFieldNotFront: cr
1916
+ }, lr = (e) => {
1919
1917
  const {
1920
1918
  userFlow: t,
1921
1919
  pageId: s,
@@ -1930,30 +1928,30 @@ const zn = (e, t, s, r) => {
1930
1928
  }, [u, f] = S((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = M(
1931
1929
  t,
1932
1930
  n
1933
- ), h = (a == null ? void 0 : a.disabled) ?? _, j = R(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), y = (x) => {
1931
+ ), h = (a == null ? void 0 : a.disabled) ?? _, j = R(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), y = (m) => {
1934
1932
  var b;
1935
- const m = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
1936
- f(m);
1933
+ const x = (b = m == null ? void 0 : m.target) == null ? void 0 : b.value;
1934
+ f(x);
1937
1935
  const g = {
1938
- [o]: m
1936
+ [o]: x
1939
1937
  };
1940
1938
  L(t, g);
1941
1939
  };
1942
1940
  return J(() => {
1943
1941
  f((a == null ? void 0 : a.value) ?? "");
1944
1942
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ c.jsx(
1945
- ct,
1943
+ ot,
1946
1944
  {
1947
1945
  ...a,
1948
- className: lr.textFieldNotFront,
1946
+ className: ir.textFieldNotFront,
1949
1947
  allowClear: !1,
1950
1948
  label: j,
1951
1949
  value: u,
1952
1950
  disabled: h,
1953
- onChange: (x) => !h && y(x)
1951
+ onChange: (m) => !h && y(m)
1954
1952
  }
1955
1953
  );
1956
- }, _r = ({
1954
+ }, dr = ({
1957
1955
  userFlow: e,
1958
1956
  pageId: t,
1959
1957
  responseKey: s,
@@ -1989,10 +1987,10 @@ const zn = (e, t, s, r) => {
1989
1987
  onClose: n
1990
1988
  });
1991
1989
  }, [n, e]), null;
1992
- }, ur = "_accordion_1ri2t_1", hr = "_accordionBody_1ri2t_8", qe = {
1993
- accordion: ur,
1994
- accordionBody: hr
1995
- }, fr = (e) => {
1990
+ }, _r = "_accordion_1ri2t_1", ur = "_accordionBody_1ri2t_8", Se = {
1991
+ accordion: _r,
1992
+ accordionBody: ur
1993
+ }, hr = (e) => {
1996
1994
  const {
1997
1995
  userFlow: t,
1998
1996
  pageId: s,
@@ -2007,7 +2005,7 @@ const zn = (e, t, s, r) => {
2007
2005
  ), { disabled: _ } = M(
2008
2006
  t,
2009
2007
  i
2010
- ), h = A(t, s, n), j = l ? A(t, s, l) : void 0, y = o ? A(t, s, o) : void 0, x = D(
2008
+ ), h = A(t, s, n), j = l ? A(t, s, l) : void 0, y = o ? A(t, s, o) : void 0, m = D(
2011
2009
  async (b) => {
2012
2010
  var N;
2013
2011
  try {
@@ -2031,22 +2029,22 @@ const zn = (e, t, s, r) => {
2031
2029
  }
2032
2030
  },
2033
2031
  [t, s, r, d.actionType, a]
2034
- ), m = d.disabled || _, g = {
2032
+ ), x = d.disabled || _, g = {
2035
2033
  ...d,
2036
- className: qe.accordion,
2037
- disabled: m,
2034
+ className: Se.accordion,
2035
+ disabled: x,
2038
2036
  checkboxChecked: u,
2039
- onChanceCheckbox: d.hasCheckbox ? x : void 0,
2037
+ onChanceCheckbox: d.hasCheckbox ? m : void 0,
2040
2038
  actionContent: j ? /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-action-${N}`)) }) : void 0,
2041
2039
  customContent: y ? /* @__PURE__ */ c.jsx(c.Fragment, { children: y.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-custom-${N}`)) }) : void 0,
2042
- children: h ? /* @__PURE__ */ c.jsx("section", { className: qe.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-child-${N}`)) }) : void 0
2040
+ children: h ? /* @__PURE__ */ c.jsx("section", { className: Se.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-child-${N}`)) }) : void 0
2043
2041
  };
2044
- return /* @__PURE__ */ c.jsx(it, { ...g });
2045
- }, yr = "_drawer_13pxo_1", mr = "_drawerBody_13pxo_5", xr = "_drawerFooter_13pxo_11", le = {
2046
- drawer: yr,
2047
- drawerBody: mr,
2042
+ return /* @__PURE__ */ c.jsx(ct, { ...g });
2043
+ }, fr = "_drawer_13pxo_1", yr = "_drawerBody_13pxo_5", xr = "_drawerFooter_13pxo_11", le = {
2044
+ drawer: fr,
2045
+ drawerBody: yr,
2048
2046
  drawerFooter: xr
2049
- }, gr = ({
2047
+ }, mr = ({
2050
2048
  userFlow: e,
2051
2049
  pageId: t,
2052
2050
  responseKey: s,
@@ -2056,32 +2054,32 @@ const zn = (e, t, s, r) => {
2056
2054
  ...l
2057
2055
  }) => {
2058
2056
  const n = v((y) => {
2059
- var x;
2060
- return (x = y[e]) == null ? void 0 : x.isDrawerOpen;
2057
+ var m;
2058
+ return (m = y[e]) == null ? void 0 : m.isDrawerOpen;
2061
2059
  }), d = v((y) => {
2062
- var x;
2063
- return (x = y[e]) == null ? void 0 : x.isLoading;
2060
+ var m;
2061
+ return (m = y[e]) == null ? void 0 : m.isLoading;
2064
2062
  }), a = n && !d, u = {
2065
2063
  ...l,
2066
2064
  isOpen: a,
2067
2065
  children: null
2068
2066
  }, f = D(() => {
2069
2067
  ye(e), Z(e, !1);
2070
- }, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Oe, { type: "h2", children: r }) : void 0, h = A(e, t, i), j = o ? A(e, t, o) : void 0;
2068
+ }, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Ae, { type: "h2", children: r }) : void 0, h = A(e, t, i), j = o ? A(e, t, o) : void 0;
2071
2069
  return /* @__PURE__ */ c.jsx(
2072
- lt,
2070
+ it,
2073
2071
  {
2074
2072
  ...u,
2075
2073
  className: le.drawer,
2076
2074
  isOpen: a,
2077
2075
  onClose: f,
2078
2076
  heightGap: 0,
2079
- title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
2080
- children: /* @__PURE__ */ c.jsx("section", { className: le.drawerBody, children: h.map((y, x) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-body-${x}`)) }),
2081
- footer: j ? /* @__PURE__ */ c.jsx("div", { className: le.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-footer-${x}`)) }) : void 0
2077
+ title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((y, m) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-header-${m}`)) : _ }) : void 0,
2078
+ children: /* @__PURE__ */ c.jsx("section", { className: le.drawerBody, children: h.map((y, m) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-body-${m}`)) }),
2079
+ footer: j ? /* @__PURE__ */ c.jsx("div", { className: le.drawerFooter, children: j.map((y, m) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-footer-${m}`)) }) : void 0
2082
2080
  }
2083
2081
  );
2084
- }, Ae = (e, t, s, r, i) => {
2082
+ }, qe = (e, t, s, r, i) => {
2085
2083
  const o = A(
2086
2084
  e,
2087
2085
  t,
@@ -2091,7 +2089,7 @@ const zn = (e, t, s, r) => {
2091
2089
  switch (s) {
2092
2090
  case "body":
2093
2091
  return /* @__PURE__ */ c.jsx(
2094
- Yt,
2092
+ Qt,
2095
2093
  {
2096
2094
  ...r,
2097
2095
  inputs: o || []
@@ -2100,7 +2098,7 @@ const zn = (e, t, s, r) => {
2100
2098
  );
2101
2099
  case "header":
2102
2100
  return /* @__PURE__ */ c.jsx(
2103
- Sn,
2101
+ kn,
2104
2102
  {
2105
2103
  ...r,
2106
2104
  components: o || []
@@ -2110,15 +2108,15 @@ const zn = (e, t, s, r) => {
2110
2108
  default:
2111
2109
  return null;
2112
2110
  }
2113
- }, Or = (e, t, s, r) => {
2111
+ }, Ar = (e, t, s, r) => {
2114
2112
  var _, h, j;
2115
- const [i, o] = S(!1), l = v((y) => y), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? Ae(
2113
+ const [i, o] = S(!1), l = v((y) => y), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? qe(
2116
2114
  e,
2117
2115
  n,
2118
2116
  "header",
2119
2117
  ((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
2120
2118
  r
2121
- ) : null, a = n ? Ae(
2119
+ ) : null, a = n ? qe(
2122
2120
  e,
2123
2121
  n,
2124
2122
  "body",
@@ -2127,22 +2125,22 @@ const zn = (e, t, s, r) => {
2127
2125
  ) : null, u = R(() => {
2128
2126
  var y;
2129
2127
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2130
- ((y = l[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(dt, {}),
2128
+ ((y = l[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(lt, {}),
2131
2129
  d,
2132
2130
  a,
2133
- n && /* @__PURE__ */ c.jsx(Tn, { userFlow: e, pageId: n }),
2134
- l[e] && /* @__PURE__ */ c.jsx(_t, {})
2131
+ n && /* @__PURE__ */ c.jsx(On, { userFlow: e, pageId: n }),
2132
+ l[e] && /* @__PURE__ */ c.jsx(dt, {})
2135
2133
  ] });
2136
2134
  }, [d, a, n, e]), f = async () => {
2137
2135
  var y;
2138
2136
  try {
2139
- const x = await Le(
2137
+ const m = await De(
2140
2138
  t,
2141
2139
  e
2142
- ), m = (y = x == null ? void 0 : x.data) == null ? void 0 : y.content;
2143
- (x == null ? void 0 : x.status) === 200 ? oe(e, t, m) : o(!0);
2144
- } catch (x) {
2145
- console.error("[not-page]: API call failed", x), o(!0);
2140
+ ), x = (y = m == null ? void 0 : m.data) == null ? void 0 : y.content;
2141
+ (m == null ? void 0 : m.status) === 200 ? oe(e, t, x) : o(!0);
2142
+ } catch (m) {
2143
+ console.error("[not-page]: API call failed", m), o(!0);
2146
2144
  }
2147
2145
  };
2148
2146
  return J(() => {
@@ -2151,19 +2149,19 @@ const zn = (e, t, s, r) => {
2151
2149
  "not api config",
2152
2150
  "not userFlow"
2153
2151
  ));
2154
- const y = "avocado-theme-mode-changed", x = (m) => {
2155
- const g = m.detail;
2152
+ const y = "avocado-theme-mode-changed", m = (x) => {
2153
+ const g = x.detail;
2156
2154
  ue.setThemeMode(g);
2157
2155
  };
2158
- return window.addEventListener(y, x), () => {
2159
- window.removeEventListener(y, x);
2156
+ return window.addEventListener(y, m), () => {
2157
+ window.removeEventListener(y, m);
2160
2158
  };
2161
2159
  }, []), i && console.error("[not-page]: No render page"), u;
2162
2160
  };
2163
2161
  export {
2164
- vn as Chart,
2165
- In as Row,
2166
- zt as heading,
2167
- Mt as text,
2168
- Or as usePage
2162
+ Nn as Chart,
2163
+ Bn as Row,
2164
+ It as heading,
2165
+ zt as text,
2166
+ Ar as usePage
2169
2167
  };