@foris/avocado-not-front 4.3.1 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  import V from "axios";
2
2
  import { create as Qe } from "zustand";
3
- import Ye, { useMemo as $, useEffect as M, useState as T, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
4
- import { Heading as Be, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Ie, DataCard as at, Divider as rt, SkeletonBase as Ke, Link as ot, Modal as ct, Pill as he, RoundButton as it, SelectPagination as lt, Select as dt, Switch as _t, Table as ut, Pager as ht, Tabs as ft, TextField as mt, toast as W, Accordion as yt, Drawer as xt, Loading as gt, Toaster as pt } from "@foris/avocado-suite";
3
+ import Ye, { useMemo as T, useEffect as z, useState as q, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
4
+ import { Heading as Ie, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Be, DataCard as at, Divider as rt, SkeletonBase as Ke, Link as ot, Modal as ct, Pill as he, RoundButton as it, SelectPagination as lt, Select as dt, Switch as _t, Table as ut, Pager as ht, Tabs as ft, TextField as mt, toast as Q, Accordion as yt, Drawer as xt, Loading as gt, Toaster as pt } from "@foris/avocado-suite";
5
5
  import { ChatPanel as bt, SummaryCard as jt, PromptCodeEditor as wt } from "@foris/ai-agent";
6
6
  import Ct from "@uiw/react-codemirror";
7
7
  import { json as we } from "@codemirror/lang-json";
8
8
  import { markdown as Nt } from "@codemirror/lang-markdown";
9
9
  import { sql as vt } from "@codemirror/lang-sql";
10
10
  import { yaml as St } from "@codemirror/lang-yaml";
11
- import K from "jsonpath";
12
- import { Legend as Et, Tooltip as kt, XAxis as $t, YAxis as qt, ResponsiveContainer as ne, AreaChart as Tt, CartesianGrid as ye, Area as At, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as Bt, Pie as It, Cell as Kt } from "recharts";
13
- import { Routes as zt, Route as Ce, Navigate as Mt } from "react-router-dom";
11
+ import L from "jsonpath";
12
+ import { Legend as Et, Tooltip as kt, XAxis as Tt, YAxis as At, ResponsiveContainer as ne, AreaChart as qt, CartesianGrid as ye, Area as $t, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as It, Pie as Bt, Cell as Kt } from "recharts";
13
+ import { Routes as Mt, Route as Ce, Navigate as zt } from "react-router-dom";
14
14
  const v = Qe(() => ({})), ce = (e, t, a, s) => {
15
15
  const c = a == null ? void 0 : a.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
16
16
  v.setState((l) => {
@@ -35,7 +35,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
35
35
  }
36
36
  };
37
37
  });
38
- }, ze = (e, t, a) => {
38
+ }, Me = (e, t, a) => {
39
39
  const s = a && Object.keys(a).length > 0 ? { ...e, ...a } : e;
40
40
  return t.length === 0 ? e : Object.fromEntries(
41
41
  Object.entries(s).filter(
@@ -44,7 +44,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
44
44
  );
45
45
  }, Gt = (e, t, a, s, c) => {
46
46
  sessionStorage.setItem("sessionId", a), v.setState((i) => {
47
- const l = i[e] ?? {}, n = l.entries ?? {}, d = ze(
47
+ const l = i[e] ?? {}, n = l.entries ?? {}, d = Me(
48
48
  n,
49
49
  s,
50
50
  c
@@ -69,7 +69,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
69
69
  }, Ut = (e, t, a, s) => {
70
70
  v.setState((c) => {
71
71
  var r;
72
- const i = c[e] ?? {}, l = i.entries ?? {}, n = ze(
72
+ const i = c[e] ?? {}, l = i.entries ?? {}, n = Me(
73
73
  l,
74
74
  a,
75
75
  s
@@ -99,7 +99,7 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
99
99
  }, Jt = (e) => {
100
100
  var a;
101
101
  return ((a = v.getState()[e]) == null ? void 0 : a.overlay) ?? null;
102
- }, A = (e, t) => {
102
+ }, $ = (e, t) => {
103
103
  const {
104
104
  content: a,
105
105
  sessionId: s,
@@ -236,7 +236,7 @@ Xt();
236
236
  function Wt(e) {
237
237
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
238
238
  }
239
- var le = { exports: {} }, Q = {};
239
+ var le = { exports: {} }, Y = {};
240
240
  /**
241
241
  * @license React
242
242
  * react-jsx-runtime.production.min.js
@@ -248,7 +248,7 @@ var le = { exports: {} }, Q = {};
248
248
  */
249
249
  var Ee;
250
250
  function Qt() {
251
- if (Ee) return Q;
251
+ if (Ee) return Y;
252
252
  Ee = 1;
253
253
  var e = Ye, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
254
254
  function l(n, d, r) {
@@ -258,7 +258,7 @@ function Qt() {
258
258
  if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
259
259
  return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: c.current };
260
260
  }
261
- return Q.Fragment = a, Q.jsx = l, Q.jsxs = l, Q;
261
+ return Y.Fragment = a, Y.jsx = l, Y.jsxs = l, Y;
262
262
  }
263
263
  var ke;
264
264
  function Yt() {
@@ -272,7 +272,7 @@ const Zt = (e) => {
272
272
  children: e.content,
273
273
  type: e.variant
274
274
  };
275
- return /* @__PURE__ */ o.jsx(Be, { ...t });
275
+ return /* @__PURE__ */ o.jsx(Ie, { ...t });
276
276
  }, Ft = (e) => {
277
277
  if (!e) return null;
278
278
  const t = {
@@ -281,12 +281,12 @@ const Zt = (e) => {
281
281
  };
282
282
  return /* @__PURE__ */ o.jsx(Pe, { ...t });
283
283
  }, Pt = (e) => {
284
- const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = $(() => ({
284
+ const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = T(() => ({
285
285
  url: e.dataSource.url,
286
286
  method: e.dataSource.method,
287
287
  headers: e.dataSource.headers,
288
288
  params: a == null ? void 0 : a.data
289
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), c = e.locale ?? "en", i = $(() => {
289
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), c = e.locale ?? "en", i = T(() => {
290
290
  var n, d, r, u, f;
291
291
  const l = {
292
292
  title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
@@ -297,7 +297,7 @@ const Zt = (e) => {
297
297
  };
298
298
  return Object.fromEntries(Object.entries(l).filter(([, _]) => !!_));
299
299
  }, [e == null ? void 0 : e.translations]);
300
- return M(() => {
300
+ return z(() => {
301
301
  e.onResolveProps && e.onResolveProps({
302
302
  dataSource: s,
303
303
  locale: c,
@@ -325,12 +325,12 @@ const Zt = (e) => {
325
325
  }, en = "_summaryCard_jva4h_1", tn = {
326
326
  summaryCard: en
327
327
  }, nn = (e) => {
328
- const t = e.dataSource, a = $(() => ({
328
+ const t = e.dataSource, a = T(() => ({
329
329
  url: e.dataSource.url,
330
330
  method: e.dataSource.method,
331
331
  headers: e.dataSource.headers,
332
332
  body: t == null ? void 0 : t.data
333
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", c = $(() => {
333
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", c = T(() => {
334
334
  var l, n, d;
335
335
  const i = {
336
336
  title: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.title,
@@ -341,7 +341,7 @@ const Zt = (e) => {
341
341
  Object.entries(i).filter(([, r]) => !!r)
342
342
  );
343
343
  }, [e == null ? void 0 : e.translations]);
344
- return M(() => {
344
+ return z(() => {
345
345
  e.onResolveProps && e.onResolveProps({
346
346
  dataSource: a,
347
347
  locale: s,
@@ -360,7 +360,7 @@ const Zt = (e) => {
360
360
  var c;
361
361
  return ((c = s[e]) == null ? void 0 : c.entries) || {};
362
362
  });
363
- return $(() => {
363
+ return T(() => {
364
364
  const s = {
365
365
  disabled: !1
366
366
  };
@@ -385,31 +385,31 @@ const Zt = (e) => {
385
385
  inputLabel: d,
386
386
  inputPlaceholder: r,
387
387
  codeBlockLabel: u
388
- } = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = T(
388
+ } = e, f = te.useThemeStore((b) => b.theme.mode), [_, h] = q(
389
389
  s || ""
390
- ), { disabled: b } = B(
390
+ ), { disabled: p } = B(
391
391
  t,
392
392
  l
393
- ), m = i ?? b, x = c ?? "json", y = {
393
+ ), m = i ?? p, y = c ?? "json", x = {
394
394
  url: (n == null ? void 0 : n.url) || "",
395
395
  method: (n == null ? void 0 : n.method) || "post",
396
396
  headers: n == null ? void 0 : n.headers,
397
397
  body: n == null ? void 0 : n.data
398
- }, g = (p) => {
399
- h(p);
400
- const N = {
401
- [a]: p
398
+ }, g = (b) => {
399
+ h(b);
400
+ const C = {
401
+ [a]: b
402
402
  };
403
- O(t, N);
403
+ O(t, C);
404
404
  };
405
- return M(() => {
405
+ return z(() => {
406
406
  s !== void 0 && s !== _ && h(s);
407
407
  }, [s]), /* @__PURE__ */ o.jsx("section", { className: an.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
408
408
  wt,
409
409
  {
410
410
  themeMode: f,
411
- requestConfig: y,
412
- language: x,
411
+ requestConfig: x,
412
+ language: y,
413
413
  disabled: m,
414
414
  inputLabel: d,
415
415
  inputPlaceholder: r,
@@ -418,10 +418,10 @@ const Zt = (e) => {
418
418
  onCodeChange: g
419
419
  }
420
420
  ) });
421
- }, on = "_body_14tsv_1", cn = "_body_content_14tsv_5", $e = {
421
+ }, on = "_body_14tsv_1", cn = "_body_content_14tsv_5", Te = {
422
422
  body: on,
423
423
  body_content: cn
424
- }, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: $e.body, children: /* @__PURE__ */ o.jsx("div", { className: $e.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), X = (e) => {
424
+ }, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Te.body, children: /* @__PURE__ */ o.jsx("div", { className: Te.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), W = (e) => {
425
425
  if (!e)
426
426
  return { "content-type": "application/json" };
427
427
  if (typeof e == "function")
@@ -436,7 +436,7 @@ const Zt = (e) => {
436
436
  }, F = () => new AbortController(), dn = (e, t = {}, a = {}, s = !1, c) => {
437
437
  const i = F();
438
438
  s && i.abort();
439
- const l = X(t);
439
+ const l = W(t);
440
440
  return {
441
441
  call: V.get(e, {
442
442
  headers: {
@@ -451,7 +451,7 @@ const Zt = (e) => {
451
451
  }, fe = (e, t = {}, a = {}, s = {}, c = !1, i) => {
452
452
  const l = F();
453
453
  c && l.abort();
454
- const n = X(t);
454
+ const n = W(t);
455
455
  return {
456
456
  call: V.post(e, a, {
457
457
  headers: {
@@ -466,7 +466,7 @@ const Zt = (e) => {
466
466
  }, _n = (e, t = {}, a = {}, s = {}, c = !1, i) => {
467
467
  const l = F();
468
468
  c && l.abort();
469
- const n = X(t);
469
+ const n = W(t);
470
470
  return {
471
471
  call: V.put(e, a, {
472
472
  headers: {
@@ -481,7 +481,7 @@ const Zt = (e) => {
481
481
  }, un = (e, t = {}, a = {}, s = {}, c = !1, i) => {
482
482
  const l = F();
483
483
  c && l.abort();
484
- const n = X(t);
484
+ const n = W(t);
485
485
  return {
486
486
  call: V.patch(e, a, {
487
487
  headers: {
@@ -496,7 +496,7 @@ const Zt = (e) => {
496
496
  }, hn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
497
497
  const l = F();
498
498
  c && l.abort();
499
- const n = X(t);
499
+ const n = W(t);
500
500
  return {
501
501
  call: V.delete(e, {
502
502
  headers: {
@@ -509,7 +509,7 @@ const Zt = (e) => {
509
509
  }),
510
510
  controller: l
511
511
  };
512
- }, Me = () => {
512
+ }, ze = () => {
513
513
  let e;
514
514
  return { callEndpoint: async (s) => {
515
515
  s.controller && (e = s.controller);
@@ -525,9 +525,9 @@ const Zt = (e) => {
525
525
  } };
526
526
  }, Ge = async (e, t, a = "", s = {}, c = {}) => {
527
527
  try {
528
- const { callEndpoint: i } = Me(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
528
+ const { callEndpoint: i } = ze(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
529
529
  a && r.append("hash_code", a), d && r.append("sessionId", d);
530
- const u = `${l}/not-front/next-ui/?${r.toString()}`, f = X(n), _ = fe(
530
+ const u = `${l}/not-front/next-ui/?${r.toString()}`, f = W(n), _ = fe(
531
531
  u,
532
532
  f,
533
533
  s,
@@ -539,11 +539,11 @@ const Zt = (e) => {
539
539
  } catch (i) {
540
540
  return console.error(i), Promise.reject(i);
541
541
  }
542
- }, I = () => {
543
- const e = v((n) => n), { callEndpoint: t } = Me(), a = async (n, d, r, u, f = !0) => {
542
+ }, K = () => {
543
+ const e = v((n) => n), { callEndpoint: t } = ze(), a = async (n, d, r, u, f = !0) => {
544
544
  var _;
545
545
  try {
546
- const h = (_ = e[n]) == null ? void 0 : _.apiConfig, b = {
546
+ const h = (_ = e[n]) == null ? void 0 : _.apiConfig, p = {
547
547
  state: { ...r },
548
548
  triggerKey: u
549
549
  };
@@ -551,7 +551,7 @@ const Zt = (e) => {
551
551
  h,
552
552
  n,
553
553
  d,
554
- b
554
+ p
555
555
  );
556
556
  } catch (h) {
557
557
  throw f && H(n, !1), console.error("[getNextUI] Error fetching next UI:", h), h;
@@ -647,7 +647,7 @@ const Zt = (e) => {
647
647
  items: t,
648
648
  responseKey: a
649
649
  }) => {
650
- const { getNextUI: s } = I(), c = R(
650
+ const { getNextUI: s } = K(), c = R(
651
651
  async ({ actionType: l, hashCode: n, redirectUrl: d }) => {
652
652
  var r;
653
653
  try {
@@ -659,7 +659,7 @@ const Zt = (e) => {
659
659
  { ...(r = v.getState()[e]) == null ? void 0 : r.entries },
660
660
  a
661
661
  );
662
- u != null && u.data && A(e, u == null ? void 0 : u.data);
662
+ u != null && u.data && $(e, u == null ? void 0 : u.data);
663
663
  break;
664
664
  case "REDIRECT":
665
665
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
@@ -673,7 +673,7 @@ const Zt = (e) => {
673
673
  }
674
674
  },
675
675
  []
676
- ), i = $(() => t == null ? void 0 : t.map((l) => ({
676
+ ), i = T(() => t == null ? void 0 : t.map((l) => ({
677
677
  title: l == null ? void 0 : l.title,
678
678
  component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(l) })
679
679
  })), []);
@@ -691,20 +691,20 @@ const Zt = (e) => {
691
691
  dependencies: r,
692
692
  onClick: u,
693
693
  ...f
694
- } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } = I(), { disabled: m } = B(
694
+ } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: p } = K(), { disabled: m } = B(
695
695
  t,
696
696
  r
697
- ), x = {
697
+ ), y = {
698
698
  ...f,
699
699
  children: l ?? i
700
- }, y = (x == null ? void 0 : x.disabled) ?? m, g = R(async () => {
701
- var p, N, j;
700
+ }, x = (y == null ? void 0 : y.disabled) ?? m, g = R(async () => {
701
+ var b, C, j;
702
702
  try {
703
- const C = {
704
- ...(p = v.getState()[t]) == null ? void 0 : p.entries,
703
+ const N = {
704
+ ...(b = v.getState()[t]) == null ? void 0 : b.entries,
705
705
  [s]: { status: 200 }
706
706
  };
707
- switch (O(t, C), c) {
707
+ switch (O(t, N), c) {
708
708
  case "CLOSE_MODAL":
709
709
  ge(t, !1);
710
710
  break;
@@ -718,32 +718,32 @@ const Zt = (e) => {
718
718
  const w = await _(
719
719
  t,
720
720
  a,
721
- C,
721
+ N,
722
722
  s
723
723
  );
724
- w != null && w.data && A(t, w == null ? void 0 : w.data);
724
+ w != null && w.data && $(t, w == null ? void 0 : w.data);
725
725
  break;
726
726
  }
727
727
  case "FETCH_AND_GO_TO_NEXT_UI": {
728
- const w = await b(
728
+ const w = await p(
729
729
  t,
730
730
  a,
731
- C,
731
+ N,
732
732
  s,
733
733
  n
734
734
  );
735
- w != null && w.data && A(t, w == null ? void 0 : w.data);
735
+ w != null && w.data && $(t, w == null ? void 0 : w.data);
736
736
  break;
737
737
  }
738
738
  case "GET_DATA_SOURCE": {
739
739
  const w = await _(
740
740
  t,
741
741
  a,
742
- C,
742
+ N,
743
743
  s
744
- ), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
744
+ ), E = (C = w == null ? void 0 : w.data) == null ? void 0 : C.content;
745
745
  if ((E == null ? void 0 : E.type) !== "fetch") break;
746
- const D = E == null ? void 0 : E.dataSource, q = await h(
746
+ const D = E == null ? void 0 : E.dataSource, A = await h(
747
747
  D,
748
748
  t,
749
749
  // Avoid to handle loading state until all the requests are done
@@ -751,8 +751,8 @@ const Zt = (e) => {
751
751
  ), G = {
752
752
  ...(j = v.getState()[t]) == null ? void 0 : j.entries,
753
753
  [s]: {
754
- status: q == null ? void 0 : q.status,
755
- content: q == null ? void 0 : q.data
754
+ status: A == null ? void 0 : A.status,
755
+ content: A == null ? void 0 : A.data
756
756
  }
757
757
  };
758
758
  O(t, G);
@@ -762,7 +762,7 @@ const Zt = (e) => {
762
762
  G,
763
763
  s
764
764
  );
765
- U != null && U.data && A(t, U == null ? void 0 : U.data);
765
+ U != null && U.data && $(t, U == null ? void 0 : U.data);
766
766
  break;
767
767
  }
768
768
  case "REDIRECT":
@@ -772,16 +772,16 @@ const Zt = (e) => {
772
772
  console.warn(`Unhandled actionType: ${c}`);
773
773
  break;
774
774
  }
775
- } catch (C) {
776
- alert(JSON.stringify(C));
775
+ } catch (N) {
776
+ alert(JSON.stringify(N));
777
777
  }
778
778
  }, [c, n, a, s, t]);
779
779
  return /* @__PURE__ */ o.jsx(
780
780
  tt,
781
781
  {
782
- ...x,
783
- disabled: y,
784
- onClick: () => !y && (u ?? g)()
782
+ ...y,
783
+ disabled: x,
784
+ onClick: () => !x && (u ?? g)()
785
785
  }
786
786
  );
787
787
  }, S = (e, t, a, s) => {
@@ -794,34 +794,34 @@ const Zt = (e) => {
794
794
  breadcrumbs: (n) => /* @__PURE__ */ o.jsx(fn, { ...n, userFlow: e, pageId: t }),
795
795
  button: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
796
796
  cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
797
- cardNotification: (n) => /* @__PURE__ */ o.jsx(bn, { ...n }),
798
- chart: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e }),
799
- dataCard: (n) => /* @__PURE__ */ o.jsx(Tn, { ...n, userFlow: e, pageId: t }),
800
- checkbox: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
801
- code: (n) => /* @__PURE__ */ o.jsx(En, { ...n, userFlow: e, pageId: t }),
802
- divider: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n }),
803
- drawer: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: e, pageId: t }),
797
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(gn, { ...n }),
798
+ chart: (n) => /* @__PURE__ */ o.jsx(zn, { ...n, userFlow: e }),
799
+ dataCard: (n) => /* @__PURE__ */ o.jsx(An, { ...n, userFlow: e, pageId: t }),
800
+ checkbox: (n) => /* @__PURE__ */ o.jsx(pn, { ...n, userFlow: e, pageId: t }),
801
+ code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
802
+ divider: (n) => /* @__PURE__ */ o.jsx(On, { ...n }),
803
+ drawer: (n) => /* @__PURE__ */ o.jsx(Gs, { ...n, userFlow: e, pageId: t }),
804
804
  heading: (n) => Zt(n),
805
- link: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
806
- pill: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
807
- previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n }),
808
- modal: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
809
- roundButton: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
810
- row: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: e, pageId: t }),
811
- select: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: e, pageId: t }),
812
- switch: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
813
- spacing: (n) => /* @__PURE__ */ o.jsx(ps, { ...n, userFlow: e, pageId: t }),
814
- table: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
805
+ link: (n) => /* @__PURE__ */ o.jsx(Vn, { ...n, userFlow: e, pageId: t }),
806
+ pill: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n }),
807
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
808
+ modal: (n) => /* @__PURE__ */ o.jsx(Wn, { ...n, userFlow: e, pageId: t }),
809
+ roundButton: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n, userFlow: e, pageId: t }),
810
+ row: (n) => /* @__PURE__ */ o.jsx(ns, { ...n, userFlow: e, pageId: t }),
811
+ select: (n) => /* @__PURE__ */ o.jsx(ds, { ...n, userFlow: e, pageId: t }),
812
+ switch: (n) => /* @__PURE__ */ o.jsx(js, { ...n, userFlow: e, pageId: t }),
813
+ spacing: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
814
+ table: (n) => /* @__PURE__ */ o.jsx(Es, { ...n, userFlow: e, pageId: t }),
815
815
  tabs: (n) => /* @__PURE__ */ o.jsx(qs, { ...n, userFlow: e, pageId: t }),
816
816
  text: (n) => Ft(n),
817
- textField: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
818
- toast: (n) => /* @__PURE__ */ o.jsx(Rs, { ...n, userFlow: e, pageId: t })
817
+ textField: (n) => /* @__PURE__ */ o.jsx(Rs, { ...n, userFlow: e, pageId: t }),
818
+ toast: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n, userFlow: e, pageId: t })
819
819
  };
820
820
  return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
821
821
  const d = c[n.component];
822
822
  return d ? d({ ...n, userFlow: e, pageId: t }) : null;
823
823
  });
824
- }, yn = "_slotStack_12u4t_5", qe = {
824
+ }, yn = "_slotStack_12u4t_5", Ae = {
825
825
  slotStack: yn
826
826
  }, xn = (e) => {
827
827
  const {
@@ -845,31 +845,23 @@ const Zt = (e) => {
845
845
  t,
846
846
  a,
847
847
  d && d.length > 0 ? d : null
848
- ), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: f.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-body-${c}-${y}`)) }) : void 0, b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-actions-${c}-${y}`)) }) : void 0, m = r.disabled || u;
848
+ ), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: f.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `card-accordion-body-${c}-${x}`)) }) : void 0, p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `card-accordion-actions-${c}-${x}`)) }) : void 0, m = r.disabled || u;
849
849
  return /* @__PURE__ */ o.jsx(
850
850
  nt,
851
851
  {
852
852
  ...r,
853
853
  disabled: m,
854
- actionContent: b,
854
+ actionContent: p,
855
855
  children: h ?? null
856
856
  }
857
857
  );
858
- }, gn = "_cardNotificationNotFront_t7pln_1", pn = {
859
- cardNotificationNotFront: gn
860
- }, bn = (e) => {
858
+ }, gn = (e) => {
861
859
  const { content: t, description: a, ...s } = e, c = {
862
860
  ...s,
863
861
  children: t ?? a
864
862
  };
865
- return /* @__PURE__ */ o.jsx(
866
- me,
867
- {
868
- ...c,
869
- className: pn.cardNotificationNotFront
870
- }
871
- );
872
- }, jn = (e) => {
863
+ return /* @__PURE__ */ o.jsx(me, { ...c });
864
+ }, pn = (e) => {
873
865
  const {
874
866
  userFlow: t,
875
867
  pageId: a,
@@ -882,55 +874,56 @@ const Zt = (e) => {
882
874
  ...r
883
875
  } = e, u = {
884
876
  ...r
885
- }, { getNextUI: f } = I(), [_, h] = T(l || !1), { disabled: b } = B(
877
+ }, { getNextUI: f } = K(), [_, h] = q(l || !1), { disabled: p } = B(
886
878
  t,
887
879
  d
888
- ), m = $(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
880
+ ), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
889
881
  var g;
890
882
  try {
891
- const p = !_;
892
- h(p);
893
- const N = {
883
+ const b = !_;
884
+ h(b);
885
+ const C = {
894
886
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
895
- [s]: p
887
+ [s]: b
896
888
  };
897
- switch (O(t, N), c) {
889
+ switch (O(t, C), c) {
898
890
  case "GO_TO_NEXT_UI":
899
891
  const j = await f(
900
892
  t,
901
893
  a,
902
- N,
894
+ C,
903
895
  s
904
896
  );
905
- j != null && j.data && A(t, j == null ? void 0 : j.data);
897
+ j != null && j.data && $(t, j == null ? void 0 : j.data);
906
898
  break;
907
899
  default:
908
900
  console.warn(`Unhandled actionType: ${c}`);
909
901
  break;
910
902
  }
911
- } catch (p) {
912
- console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
903
+ } catch (b) {
904
+ console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
913
905
  }
914
- }, [t, a, s, c, _]), y = (u == null ? void 0 : u.disabled) ?? b;
906
+ }, [t, a, s, c, _]), x = (u == null ? void 0 : u.disabled) ?? p;
915
907
  return /* @__PURE__ */ o.jsx(
916
908
  st,
917
909
  {
918
910
  ...u,
919
911
  labelRight: m,
920
912
  checked: _,
921
- disabled: y,
913
+ disabled: x,
922
914
  onChange: () => {
923
- !y && x();
915
+ !x && y();
924
916
  }
925
917
  }
926
918
  );
927
- }, wn = "_codeEditor_1coz7_1", Cn = "_codeEditor_label_1coz7_4", Nn = "_codeEditor_wrapper_1coz7_13", vn = "_input_1coz7_17", Sn = "_preview_1coz7_18", Y = {
928
- codeEditor: wn,
929
- codeEditor_label: Cn,
930
- codeEditor_wrapper: Nn,
931
- input: vn,
932
- preview: Sn
933
- }, En = (e) => {
919
+ }, bn = "_codeEditor_1wi2p_1", jn = "_codeEditor_label_1wi2p_4", wn = "_codeEditor_wrapper_1wi2p_13", Cn = "_input_1wi2p_17", Nn = "_preview_1wi2p_18", vn = "_preview_inner_1wi2p_33", X = {
920
+ codeEditor: bn,
921
+ codeEditor_label: jn,
922
+ codeEditor_wrapper: wn,
923
+ input: Cn,
924
+ preview: Nn,
925
+ preview_inner: vn
926
+ }, Sn = (e) => {
934
927
  const {
935
928
  userFlow: t,
936
929
  responseKey: a,
@@ -941,39 +934,40 @@ const Zt = (e) => {
941
934
  required: n,
942
935
  dependencies: d,
943
936
  disabled: r,
944
- showPreview: u
945
- } = e, [f, _] = T(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: b } = B(
937
+ showPreview: u,
938
+ height: f = "400px"
939
+ } = e, [_, h] = q(l ?? ""), p = te.useThemeStore((C) => C.theme.mode), { disabled: m } = B(
946
940
  t,
947
941
  d
948
- ), m = r ?? b, x = {
942
+ ), y = r ?? m, x = {
949
943
  json: we(),
950
944
  markdown: Nt(),
951
945
  sql: vt(),
952
946
  yaml: St()
953
- }, y = $(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
954
- _(p);
955
- const N = {
956
- [a]: p
947
+ }, g = T(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (C) => {
948
+ h(C);
949
+ const j = {
950
+ [a]: C
957
951
  };
958
- O(t, N);
952
+ O(t, j);
959
953
  };
960
- return /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor, children: [
961
- y && y !== "" && /* @__PURE__ */ o.jsx("label", { className: Y.codeEditor_label, children: y }),
962
- /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor_wrapper, children: [
954
+ return /* @__PURE__ */ o.jsxs("div", { className: X.codeEditor, children: [
955
+ g && g !== "" && /* @__PURE__ */ o.jsx("label", { className: X.codeEditor_label, children: g }),
956
+ /* @__PURE__ */ o.jsxs("div", { className: X.codeEditor_wrapper, children: [
963
957
  /* @__PURE__ */ o.jsx(
964
958
  Ct,
965
959
  {
966
- className: Y.input,
967
- value: f,
968
- height: "400px",
960
+ className: X.input,
961
+ value: _,
962
+ height: f,
969
963
  placeholder: i,
970
964
  extensions: [x[c] ?? we()],
971
- onChange: (p) => g(p),
972
- theme: h,
973
- editable: !m
965
+ onChange: (C) => b(C),
966
+ theme: p,
967
+ editable: !y
974
968
  }
975
969
  ),
976
- c == "markdown" && u && /* @__PURE__ */ o.jsx(Ie, { className: Y.preview, children: f })
970
+ c === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: X.preview, style: { height: f }, children: /* @__PURE__ */ o.jsx(Be, { className: X.preview_inner, children: _ }) })
977
971
  ] })
978
972
  ] });
979
973
  };
@@ -983,9 +977,9 @@ var de = { exports: {} };
983
977
  Licensed under the MIT License (MIT), see
984
978
  http://jedwatson.github.io/classnames
985
979
  */
986
- var Te;
987
- function kn() {
988
- return Te || (Te = 1, (function(e) {
980
+ var qe;
981
+ function En() {
982
+ return qe || (qe = 1, (function(e) {
989
983
  (function() {
990
984
  var t = {}.hasOwnProperty;
991
985
  function a() {
@@ -1016,10 +1010,10 @@ function kn() {
1016
1010
  })();
1017
1011
  })(de)), de.exports;
1018
1012
  }
1019
- var $n = kn();
1020
- const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1021
- slotStack: qn
1022
- }, Tn = (e) => {
1013
+ var kn = En();
1014
+ const ee = /* @__PURE__ */ Wt(kn), Tn = "_slotStack_6n2wy_5", $e = {
1015
+ slotStack: Tn
1016
+ }, An = (e) => {
1023
1017
  const {
1024
1018
  userFlow: t,
1025
1019
  pageId: a,
@@ -1039,7 +1033,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1039
1033
  t,
1040
1034
  a,
1041
1035
  n && n.length > 0 ? n : null
1042
- ), b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-body-${c}-${y}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-top-${c}-${y}`)) }) : void 0;
1036
+ ), p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: $e.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `data-card-body-${c}-${x}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: $e.slotStack, children: h.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `data-card-top-${c}-${x}`)) }) : void 0;
1043
1037
  return /* @__PURE__ */ o.jsx(
1044
1038
  at,
1045
1039
  {
@@ -1047,12 +1041,12 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1047
1041
  icon: d,
1048
1042
  headerStatusColor: f,
1049
1043
  topContent: m,
1050
- children: b
1044
+ children: p
1051
1045
  }
1052
1046
  );
1053
- }, An = "_dividerNotFront_tze3j_1", On = {
1054
- dividerNotFront: An
1055
- }, Rn = (e) => /* @__PURE__ */ o.jsx(rt, { ...e, className: On.dividerNotFront }), Dn = (e, t, a) => {
1047
+ }, qn = "_dividerNotFront_tze3j_1", $n = {
1048
+ dividerNotFront: qn
1049
+ }, On = (e) => /* @__PURE__ */ o.jsx(rt, { ...e, className: $n.dividerNotFront }), Rn = (e, t, a) => {
1056
1050
  const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
1057
1051
  if (l.push(`${n}=${t}`), typeof a == "string") {
1058
1052
  const u = (c == null ? void 0 : c.text) ?? "text";
@@ -1070,7 +1064,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1070
1064
  const { type: s, url: c, method: i, headers: l } = e;
1071
1065
  return s === "rest" ? {
1072
1066
  type: "rest",
1073
- url: Dn(e, t, a),
1067
+ url: Rn(e, t, a),
1074
1068
  method: i,
1075
1069
  headers: l,
1076
1070
  data: (e == null ? void 0 : e.data) || {}
@@ -1087,46 +1081,46 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1087
1081
  }
1088
1082
  };
1089
1083
  }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ue = (e, t, a, s) => {
1090
- const c = K.query(e, t), i = c == null ? void 0 : c.map((r) => {
1084
+ const c = L.query(e, t), i = c == null ? void 0 : c.map((r) => {
1091
1085
  var u, f;
1092
1086
  if (a) {
1093
1087
  const _ = {};
1094
- for (const [h, b] of Object.entries(a))
1095
- if (typeof b == "object" && "path" in b) {
1096
- const m = b, x = (u = K.query(r, m.path)) == null ? void 0 : u[0];
1097
- m.translations && String(x) in m.translations ? _[h] = _e(
1098
- m.translations[String(x)]
1099
- ) : _[h] = _e(x);
1088
+ for (const [h, p] of Object.entries(a))
1089
+ if (typeof p == "object" && "path" in p) {
1090
+ const m = p, y = (u = L.query(r, m.path)) == null ? void 0 : u[0];
1091
+ m.translations && String(y) in m.translations ? _[h] = _e(
1092
+ m.translations[String(y)]
1093
+ ) : _[h] = _e(y);
1100
1094
  } else {
1101
- const m = b;
1102
- _[h] = _e((f = K.query(r, m)) == null ? void 0 : f[0]);
1095
+ const m = p;
1096
+ _[h] = _e((f = L.query(r, m)) == null ? void 0 : f[0]);
1103
1097
  }
1104
1098
  return _;
1105
1099
  } else
1106
1100
  return r;
1107
- }), l = K.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? c.length, n = K.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
1101
+ }), l = L.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? c.length, n = L.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
1108
1102
  size: l,
1109
1103
  total: n,
1110
- totalPages: s != null && s.totalPages ? K.value(
1104
+ totalPages: s != null && s.totalPages ? L.value(
1111
1105
  e,
1112
1106
  (s == null ? void 0 : s.totalPages) ?? "$.meta.totalPages"
1113
1107
  ) : l > 0 ? Math.ceil(n / l) : 0
1114
1108
  };
1115
1109
  return { items: i, pagination: d };
1116
1110
  }, se = ({ withPadding: e = !1 }) => {
1117
- const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: L.labelColor }, children: a });
1111
+ const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: I.labelColor }, children: a });
1118
1112
  return /* @__PURE__ */ o.jsx(
1119
1113
  Et,
1120
1114
  {
1121
1115
  formatter: t,
1122
1116
  wrapperStyle: {
1123
- fontSize: L.fontSize,
1124
- fontFamily: L.fontFamily,
1117
+ fontSize: I.fontSize,
1118
+ fontFamily: I.fontFamily,
1125
1119
  padding: e ? "1rem 0" : "0"
1126
1120
  }
1127
1121
  }
1128
1122
  );
1129
- }, Ln = ({
1123
+ }, Dn = ({
1130
1124
  active: e,
1131
1125
  payload: t,
1132
1126
  label: a,
@@ -1136,9 +1130,9 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1136
1130
  if (!e || !t || !t.length)
1137
1131
  return null;
1138
1132
  const c = {
1139
- backgroundColor: L.tooltipBg,
1140
- borderRadius: L.tooltipBorderRadius,
1141
- color: L.tooltipColor,
1133
+ backgroundColor: I.tooltipBg,
1134
+ borderRadius: I.tooltipBorderRadius,
1135
+ color: I.tooltipColor,
1142
1136
  padding: "8px 12px",
1143
1137
  border: "1px solid #e5e7eb"
1144
1138
  };
@@ -1154,41 +1148,41 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1154
1148
  }, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
1155
1149
  kt,
1156
1150
  {
1157
- content: /* @__PURE__ */ o.jsx(Ln, { tooltipKey: e })
1151
+ content: /* @__PURE__ */ o.jsx(Dn, { tooltipKey: e })
1158
1152
  }
1159
1153
  ), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
1160
- $t,
1154
+ Tt,
1161
1155
  {
1162
1156
  dataKey: e,
1163
1157
  hide: t,
1164
1158
  tick: {
1165
- fill: L.labelColor,
1166
- fontSize: L.fontSize
1159
+ fill: I.labelColor,
1160
+ fontSize: I.fontSize
1167
1161
  }
1168
1162
  }
1169
1163
  ), je = () => /* @__PURE__ */ o.jsx(
1170
- qt,
1164
+ At,
1171
1165
  {
1172
1166
  tick: {
1173
- fill: L.labelColor,
1174
- fontSize: L.fontSize
1167
+ fill: I.labelColor,
1168
+ fontSize: I.fontSize
1175
1169
  }
1176
1170
  }
1177
- ), Bn = (e) => {
1171
+ ), Ln = (e) => {
1178
1172
  const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1179
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Tt, { data: t, children: [
1173
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(qt, { data: t, children: [
1180
1174
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1181
1175
  /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1182
1176
  /* @__PURE__ */ o.jsx(je, {}),
1183
1177
  /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1184
1178
  /* @__PURE__ */ o.jsx(se, {}),
1185
1179
  s.map((i, l) => /* @__PURE__ */ o.jsx(
1186
- At,
1180
+ $t,
1187
1181
  {
1188
1182
  type: "monotone",
1189
1183
  dataKey: i,
1190
- stroke: z[l % z.length],
1191
- fill: z[l % z.length]
1184
+ stroke: M[l % M.length],
1185
+ fill: M[l % M.length]
1192
1186
  },
1193
1187
  i
1194
1188
  ))
@@ -1205,12 +1199,12 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1205
1199
  Rt,
1206
1200
  {
1207
1201
  dataKey: i,
1208
- fill: z[l % z.length]
1202
+ fill: M[l % M.length]
1209
1203
  },
1210
1204
  i
1211
1205
  ))
1212
1206
  ] }) });
1213
- }, Kn = (e) => {
1207
+ }, Bn = (e) => {
1214
1208
  const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1215
1209
  return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
1216
1210
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
@@ -1223,14 +1217,14 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1223
1217
  {
1224
1218
  type: "monotone",
1225
1219
  dataKey: i,
1226
- stroke: z[l % z.length],
1220
+ stroke: M[l % M.length],
1227
1221
  strokeWidth: 2,
1228
1222
  dot: !1
1229
1223
  },
1230
1224
  i
1231
1225
  ))
1232
1226
  ] }) });
1233
- }, zn = (e) => {
1227
+ }, Kn = (e) => {
1234
1228
  const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
1235
1229
  cx: l,
1236
1230
  cy: n,
@@ -1239,25 +1233,25 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1239
1233
  outerRadius: u,
1240
1234
  value: f
1241
1235
  }) => {
1242
- const _ = Math.PI / 180, h = 25 + r + (u - r), b = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1236
+ const _ = Math.PI / 180, h = 25 + r + (u - r), p = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1243
1237
  return /* @__PURE__ */ o.jsx(
1244
1238
  "text",
1245
1239
  {
1246
- x: b,
1240
+ x: p,
1247
1241
  y: m,
1248
- fill: L.labelColor,
1249
- color: L.labelColor,
1242
+ fill: I.labelColor,
1243
+ color: I.labelColor,
1250
1244
  textAnchor: "middle",
1251
1245
  dominantBaseline: "central",
1252
1246
  children: f
1253
1247
  }
1254
1248
  );
1255
1249
  };
1256
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Bt, { children: [
1250
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(It, { children: [
1257
1251
  /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1258
1252
  /* @__PURE__ */ o.jsx(se, {}),
1259
1253
  /* @__PURE__ */ o.jsx(
1260
- It,
1254
+ Bt,
1261
1255
  {
1262
1256
  data: t,
1263
1257
  dataKey: s[0],
@@ -1267,7 +1261,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1267
1261
  children: t.map((l, n) => /* @__PURE__ */ o.jsx(
1268
1262
  Kt,
1269
1263
  {
1270
- fill: z[n % z.length]
1264
+ fill: M[n % M.length]
1271
1265
  },
1272
1266
  `cell-${n}`
1273
1267
  ))
@@ -1275,11 +1269,11 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1275
1269
  )
1276
1270
  ] }) });
1277
1271
  }, Mn = {
1278
- area: Bn,
1272
+ area: Ln,
1279
1273
  bar: In,
1280
- line: Kn,
1281
- pie: zn
1282
- }, z = [
1274
+ line: Bn,
1275
+ pie: Kn
1276
+ }, M = [
1283
1277
  "var(--color-primitive-palette-1-50)",
1284
1278
  "var(--color-primitive-palette-2-50)",
1285
1279
  "var(--color-primitive-palette-3-50)",
@@ -1297,46 +1291,46 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1297
1291
  "var(--color-primitive-palette-15-50)",
1298
1292
  "var(--color-primitive-palette-16-50)",
1299
1293
  "var(--color-primitive-palette-17-50)"
1300
- ], L = {
1294
+ ], I = {
1301
1295
  fontFamily: "Roboto, sans-serif",
1302
1296
  fontSize: 12,
1303
1297
  labelColor: "var(--color-neutral-90)",
1304
1298
  tooltipBg: "#fff",
1305
1299
  tooltipColor: "#000",
1306
1300
  tooltipBorderRadius: "4px"
1307
- }, Gn = (e) => {
1301
+ }, zn = (e) => {
1308
1302
  const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = Mn[l.type];
1309
1303
  if (!n)
1310
1304
  return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
1311
- const { fetchDataSource: d } = I(), [r, u] = T(!1), [f, _] = T([]), h = async () => {
1312
- var m, x;
1305
+ const { fetchDataSource: d } = K(), [r, u] = q(!1), [f, _] = q([]), h = async () => {
1306
+ var m, y;
1313
1307
  try {
1314
1308
  u(!0);
1315
- const { jsonPathData: y, mapperData: g } = i, p = pe(
1309
+ const { jsonPathData: x, mapperData: g } = i, b = pe(
1316
1310
  i,
1317
1311
  1
1318
- ), N = await d(
1319
- p,
1312
+ ), C = await d(
1313
+ b,
1320
1314
  a,
1321
1315
  !1
1322
- ), j = y ? (m = Ue(N == null ? void 0 : N.data, y, g)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1316
+ ), j = x ? (m = Ue(C == null ? void 0 : C.data, x, g)) == null ? void 0 : m.items : (y = C == null ? void 0 : C.data) == null ? void 0 : y.data;
1323
1317
  _(j), u(!1);
1324
- } catch (y) {
1325
- alert(JSON.stringify(y)), u(!1);
1318
+ } catch (x) {
1319
+ alert(JSON.stringify(x)), u(!1);
1326
1320
  }
1327
1321
  };
1328
- M(() => {
1322
+ z(() => {
1329
1323
  i ? h() : _(l.data);
1330
1324
  }, []);
1331
- const b = {
1325
+ const p = {
1332
1326
  ...l,
1333
1327
  data: f
1334
1328
  };
1335
- return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(b) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1336
- }, Un = "_header_g1eri_1", Jn = "_header_content_g1eri_5", Oe = {
1337
- header: Un,
1338
- header_content: Jn
1339
- }, Vn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), Hn = (e) => {
1329
+ return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(p) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1330
+ }, Gn = "_header_g1eri_1", Un = "_header_content_g1eri_5", Oe = {
1331
+ header: Gn,
1332
+ header_content: Un
1333
+ }, Jn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), Vn = (e) => {
1340
1334
  const {
1341
1335
  userFlow: t,
1342
1336
  pageId: a,
@@ -1349,29 +1343,29 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1349
1343
  component: r,
1350
1344
  hash: u,
1351
1345
  ...f
1352
- } = e, { getNextUI: _ } = I(), { disabled: h } = B(
1346
+ } = e, { getNextUI: _ } = K(), { disabled: h } = B(
1353
1347
  t,
1354
1348
  d
1355
- ), b = c && f ? (() => {
1356
- const { href: y, target: g, download: p, ...N } = f;
1357
- return N;
1349
+ ), p = c && f ? (() => {
1350
+ const { href: x, target: g, download: b, ...C } = f;
1351
+ return C;
1358
1352
  })() : f, m = R(async () => {
1359
- var y;
1353
+ var x;
1360
1354
  if (c)
1361
1355
  try {
1362
1356
  const g = {
1363
- ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1357
+ ...(x = v.getState()[t]) == null ? void 0 : x.entries,
1364
1358
  [s]: { status: 200 }
1365
1359
  };
1366
1360
  switch (O(t, g), c) {
1367
1361
  case "GO_TO_NEXT_UI": {
1368
- const p = await _(
1362
+ const b = await _(
1369
1363
  t,
1370
1364
  a,
1371
1365
  g,
1372
1366
  s
1373
1367
  );
1374
- p != null && p.data && A(t, p == null ? void 0 : p.data);
1368
+ b != null && b.data && $(t, b == null ? void 0 : b.data);
1375
1369
  break;
1376
1370
  }
1377
1371
  case "REDIRECT":
@@ -1388,19 +1382,19 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1388
1382
  } catch (g) {
1389
1383
  alert(JSON.stringify(g));
1390
1384
  }
1391
- }, [c, _, a, l, s, n, t]), x = b.disabled ?? h;
1385
+ }, [c, _, a, l, s, n, t]), y = p.disabled ?? h;
1392
1386
  return /* @__PURE__ */ o.jsx(
1393
1387
  ot,
1394
1388
  {
1395
- ...b,
1396
- disabled: x,
1389
+ ...p,
1390
+ disabled: y,
1397
1391
  onClick: c ? m : void 0,
1398
1392
  children: i
1399
1393
  }
1400
1394
  );
1401
- }, Xn = "_modalContent_p06ci_1", Wn = {
1402
- modalContent: Xn
1403
- }, Qn = ({
1395
+ }, Hn = "_modalContent_p06ci_1", Xn = {
1396
+ modalContent: Hn
1397
+ }, Wn = ({
1404
1398
  userFlow: e,
1405
1399
  pageId: t,
1406
1400
  responseKey: a,
@@ -1410,30 +1404,30 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1410
1404
  headerStatusColor: l,
1411
1405
  ...n
1412
1406
  }) => {
1413
- const d = v((y) => {
1407
+ const d = v((x) => {
1414
1408
  var g;
1415
- return (g = y[e]) == null ? void 0 : g.isModalOpen;
1416
- }), r = v((y) => {
1409
+ return (g = x[e]) == null ? void 0 : g.isModalOpen;
1410
+ }), r = v((x) => {
1417
1411
  var g;
1418
- return (g = y[e]) == null ? void 0 : g.isLoading;
1412
+ return (g = x[e]) == null ? void 0 : g.isLoading;
1419
1413
  }), u = d && !r, f = {
1420
1414
  ...n
1421
1415
  }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
1422
1416
  xe(e), ge(e, !1);
1423
- }, [e, a]), b = Array.isArray(s) ? S(e, t, s) : s, m = S(e, t, c), x = S(e, t, i);
1417
+ }, [e, a]), p = Array.isArray(s) ? S(e, t, s) : s, m = S(e, t, c), y = S(e, t, i);
1424
1418
  return /* @__PURE__ */ o.jsx(
1425
1419
  ct,
1426
1420
  {
1427
1421
  ...f,
1428
1422
  headerStatusColor: _,
1429
- header: typeof b == "string" ? b : /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${g}`)) }),
1430
- children: /* @__PURE__ */ o.jsx("section", { className: Wn.modalContent, children: m.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${g}`)) }),
1431
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${g}`)) }),
1423
+ header: typeof p == "string" ? p : /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((x, g) => /* @__PURE__ */ o.jsx(k, { children: x }, `modal-header-${g}`)) }),
1424
+ children: /* @__PURE__ */ o.jsx("section", { className: Xn.modalContent, children: m.map((x, g) => /* @__PURE__ */ o.jsx(k, { children: x }, `modal-body-${g}`)) }),
1425
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((x, g) => /* @__PURE__ */ o.jsx(k, { children: x }, `modal-footer-${g}`)) }),
1432
1426
  open: u,
1433
1427
  onClose: h
1434
1428
  }
1435
1429
  );
1436
- }, Yn = ({ userFlow: e, pageId: t }) => {
1430
+ }, Qn = ({ userFlow: e, pageId: t }) => {
1437
1431
  var i, l;
1438
1432
  const a = Jt(e);
1439
1433
  if (!a)
@@ -1451,7 +1445,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1451
1445
  const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
1452
1446
  return /* @__PURE__ */ o.jsx(k, { children: n }, r);
1453
1447
  }) });
1454
- }, Zn = {
1448
+ }, Yn = {
1455
1449
  success: {
1456
1450
  color: "success-opacity",
1457
1451
  textColor: "success-60",
@@ -1477,8 +1471,8 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1477
1471
  textColor: "neutral-70",
1478
1472
  iconColor: "neutral-70"
1479
1473
  }
1480
- }, Fn = (e) => {
1481
- const { content: t, variant: a = "neutral", ...s } = e, c = Zn[a], i = {
1474
+ }, Zn = (e) => {
1475
+ const { content: t, variant: a = "neutral", ...s } = e, c = Yn[a], i = {
1482
1476
  ...s,
1483
1477
  children: t,
1484
1478
  color: (s == null ? void 0 : s.color) ?? c.color,
@@ -1486,10 +1480,10 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1486
1480
  iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
1487
1481
  };
1488
1482
  return /* @__PURE__ */ o.jsx(he, { ...i });
1489
- }, Pn = (e) => {
1483
+ }, Fn = (e) => {
1490
1484
  const { content: t } = e;
1491
- return /* @__PURE__ */ o.jsx(Ie, { children: t });
1492
- }, es = (e) => {
1485
+ return /* @__PURE__ */ o.jsx(Be, { children: t });
1486
+ }, Pn = (e) => {
1493
1487
  const {
1494
1488
  userFlow: t,
1495
1489
  pageId: a,
@@ -1499,38 +1493,38 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1499
1493
  dependencies: l,
1500
1494
  onClick: n,
1501
1495
  ...d
1502
- } = e, { getNextUI: r, fetchAndGetNextUI: u } = I(), { disabled: f } = B(
1496
+ } = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } = B(
1503
1497
  t,
1504
1498
  l
1505
1499
  ), _ = {
1506
1500
  ...d
1507
- }, h = (_ == null ? void 0 : _.disabled) ?? f, b = R(async () => {
1501
+ }, h = (_ == null ? void 0 : _.disabled) ?? f, p = R(async () => {
1508
1502
  var m;
1509
1503
  try {
1510
- const x = {
1504
+ const y = {
1511
1505
  ...(m = v.getState()[t]) == null ? void 0 : m.entries,
1512
1506
  [s]: { status: 200 }
1513
1507
  };
1514
- switch (O(t, x), c) {
1508
+ switch (O(t, y), c) {
1515
1509
  case "GO_TO_NEXT_UI": {
1516
- const y = await r(
1510
+ const x = await r(
1517
1511
  t,
1518
1512
  a,
1519
- x,
1513
+ y,
1520
1514
  s
1521
1515
  );
1522
- y != null && y.data && A(t, y == null ? void 0 : y.data);
1516
+ x != null && x.data && $(t, x == null ? void 0 : x.data);
1523
1517
  break;
1524
1518
  }
1525
1519
  case "FETCH_AND_GO_TO_NEXT_UI": {
1526
- const y = await u(
1520
+ const x = await u(
1527
1521
  t,
1528
1522
  a,
1529
- x,
1523
+ y,
1530
1524
  s,
1531
1525
  i
1532
1526
  );
1533
- y != null && y.data && A(t, y == null ? void 0 : y.data);
1527
+ x != null && x.data && $(t, x == null ? void 0 : x.data);
1534
1528
  break;
1535
1529
  }
1536
1530
  case "CLOSE_MODAL":
@@ -1546,8 +1540,8 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1546
1540
  console.warn(`Unhandled actionType: ${c}`);
1547
1541
  break;
1548
1542
  }
1549
- } catch (x) {
1550
- alert(JSON.stringify(x));
1543
+ } catch (y) {
1544
+ alert(JSON.stringify(y));
1551
1545
  }
1552
1546
  }, [c, i, a, s, t]);
1553
1547
  return /* @__PURE__ */ o.jsx(
@@ -1555,11 +1549,11 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1555
1549
  {
1556
1550
  ..._,
1557
1551
  disabled: h,
1558
- onClick: () => !h && (n ?? b)()
1552
+ onClick: () => !h && (n ?? p)()
1559
1553
  }
1560
1554
  );
1561
- }, ts = "_row_1bqj4_1", ns = "_row_column_1bqj4_65", J = {
1562
- row: ts,
1555
+ }, es = "_row_1bqj4_1", ts = "_row_column_1bqj4_65", J = {
1556
+ row: es,
1563
1557
  "row__gap-none": "_row__gap-none_1bqj4_5",
1564
1558
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
1565
1559
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -1580,7 +1574,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1580
1574
  "row__align-center": "_row__align-center_1bqj4_56",
1581
1575
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
1582
1576
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
1583
- row_column: ns,
1577
+ row_column: ts,
1584
1578
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
1585
1579
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
1586
1580
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -1601,7 +1595,7 @@ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1601
1595
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
1602
1596
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
1603
1597
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
1604
- }, ss = (e) => {
1598
+ }, ns = (e) => {
1605
1599
  const {
1606
1600
  userFlow: t,
1607
1601
  pageId: a,
@@ -1670,17 +1664,16 @@ function Je({
1670
1664
  debounceMs: l
1671
1665
  }) {
1672
1666
  const n = Ze(null);
1673
- M(() => () => {
1667
+ z(() => () => {
1674
1668
  n.current !== null && (clearTimeout(n.current), n.current = null);
1675
1669
  }, []);
1676
1670
  const d = R(
1677
1671
  async (u) => {
1678
1672
  var h;
1679
1673
  const f = {
1680
- ...(h = v.getState()[e]) == null ? void 0 : h.entries,
1681
- [a]: u
1674
+ ...(h = v.getState()[e]) == null ? void 0 : h.entries
1682
1675
  };
1683
- if (O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1676
+ if (u ? f[a] = u : delete f[a], O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1684
1677
  try {
1685
1678
  const m = await c(
1686
1679
  e,
@@ -1689,9 +1682,9 @@ function Je({
1689
1682
  a,
1690
1683
  s === "GO_TO_NEXT_UI"
1691
1684
  );
1692
- m != null && m.data && A(e, m.data);
1693
- } catch (b) {
1694
- console.error("[useSelectChange] Failed to fetch next UI", b);
1685
+ m != null && m.data && $(e, m.data);
1686
+ } catch (p) {
1687
+ console.error("[useSelectChange] Failed to fetch next UI", p);
1695
1688
  }
1696
1689
  },
1697
1690
  [e, t, a, s, c]
@@ -1713,18 +1706,25 @@ function Je({
1713
1706
  [i, l, d]
1714
1707
  );
1715
1708
  }
1716
- const as = (e, t, a, s) => {
1717
- const c = K.query(e, t);
1709
+ const ss = /\{([^}]+)\}/g, as = (e, t) => {
1710
+ var a;
1711
+ return t.includes("{") ? t.replace(ss, (s, c) => {
1712
+ var l;
1713
+ const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
1714
+ return i != null ? String(i) : "";
1715
+ }) : (a = L.query(e, t)) == null ? void 0 : a[0];
1716
+ }, rs = (e, t, a, s) => {
1717
+ const c = L.query(e, t);
1718
1718
  return (c == null ? void 0 : c.map((i) => {
1719
- var d, r;
1720
- const l = (d = K.query(i, a)) == null ? void 0 : d[0], n = s ? (r = K.query(i, s)) == null ? void 0 : r[0] : i;
1719
+ var d;
1720
+ const l = as(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
1721
1721
  return { label: l, value: n };
1722
1722
  })) ?? [];
1723
- }, rs = (e, t, a, s = 10) => {
1723
+ }, os = (e, t, a, s = 10) => {
1724
1724
  var n, d;
1725
1725
  let c, i;
1726
1726
  if (a) {
1727
- const r = K.value(e, a.size ?? "$.meta.size") ?? s, u = K.value(e, a.total ?? "$.meta.total") ?? 0;
1727
+ const r = L.value(e, a.size ?? "$.meta.size") ?? s, u = L.value(e, a.total ?? "$.meta.total") ?? 0;
1728
1728
  c = r, i = u;
1729
1729
  } else {
1730
1730
  const r = e == null ? void 0 : e.meta;
@@ -1736,9 +1736,9 @@ const as = (e, t, a, s) => {
1736
1736
  total: i,
1737
1737
  hasMore: l
1738
1738
  };
1739
- }, os = "_selectNotFront_1yw9q_1", Ve = {
1740
- selectNotFront: os
1741
- }, cs = ({
1739
+ }, cs = "_selectNotFront_ch3v5_1", Ve = {
1740
+ selectNotFront: cs
1741
+ }, is = ({
1742
1742
  userFlow: e,
1743
1743
  pageId: t,
1744
1744
  responseKey: a,
@@ -1751,15 +1751,16 @@ const as = (e, t, a, s) => {
1751
1751
  }) => {
1752
1752
  const r = {
1753
1753
  ...d
1754
- }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = T((r == null ? void 0 : r.value) ?? ""), { disabled: b } = B(
1754
+ }, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = q((r == null ? void 0 : r.value) ?? ""), { disabled: p } = B(
1755
1755
  e,
1756
1756
  l
1757
- ), m = (r == null ? void 0 : r.disabled) ?? b, x = $(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), y = $(() => {
1758
- const j = r != null && r.isMulti ? _ : [_], C = {};
1759
- return typeof j == "object" && "length" in j && (j == null || j.forEach((w) => {
1757
+ ), m = (r == null ? void 0 : r.disabled) ?? p, y = T(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), x = T(() => {
1758
+ const j = r != null && r.isMulti ? _ : [_], N = {};
1759
+ return Array.isArray(j) && j.forEach((w) => {
1760
+ if (!w) return;
1760
1761
  const E = JSON.stringify(w.value), D = JSON.stringify(w.label);
1761
- C[E] = w, D in C || (C[D] = w);
1762
- })), C;
1762
+ N[E] = w, D in N || (N[D] = w);
1763
+ }), N;
1763
1764
  }, [_]), g = Je({
1764
1765
  userFlow: e,
1765
1766
  pageId: t,
@@ -1768,13 +1769,13 @@ const as = (e, t, a, s) => {
1768
1769
  getNextUI: u,
1769
1770
  isMulti: r == null ? void 0 : r.isMulti,
1770
1771
  debounceMs: n
1771
- }), p = (j) => {
1772
+ }), b = (j) => {
1772
1773
  h(j), g(j);
1773
- }, N = async (j, C, { page: w }) => {
1774
+ }, C = async (j, N, { page: w }) => {
1774
1775
  const {
1775
1776
  jsonPathLabel: E,
1776
1777
  jsonPathOptions: D,
1777
- jsonPathValue: q,
1778
+ jsonPathValue: A,
1778
1779
  jsonPathPagination: G
1779
1780
  } = c, U = pe(
1780
1781
  c,
@@ -1784,12 +1785,12 @@ const as = (e, t, a, s) => {
1784
1785
  U,
1785
1786
  e,
1786
1787
  !1
1787
- ), oe = re == null ? void 0 : re.data, Xe = oe ? as(
1788
+ ), oe = re == null ? void 0 : re.data, Xe = oe ? rs(
1788
1789
  oe,
1789
1790
  D,
1790
1791
  E,
1791
- q
1792
- ) : [], { hasMore: We } = rs(
1792
+ A
1793
+ ) : [], { hasMore: We } = os(
1793
1794
  oe,
1794
1795
  w,
1795
1796
  G
@@ -1807,21 +1808,21 @@ const as = (e, t, a, s) => {
1807
1808
  {
1808
1809
  ...r,
1809
1810
  className: Ve.selectNotFront,
1810
- label: x,
1811
+ label: y,
1811
1812
  value: _,
1812
1813
  disabled: m,
1813
1814
  noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
1814
- onChange: (j) => !m && p(j),
1815
- loadOptions: N,
1815
+ onChange: (j) => !m && b(j),
1816
+ loadOptions: C,
1816
1817
  additional: { page: 1 },
1817
1818
  isOptionDisabled: (j) => {
1818
- const C = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
1819
- return !!(y != null && y[C]) || !!(y != null && y[w]);
1819
+ const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
1820
+ return !!(x != null && x[N]) || !!(x != null && x[w]);
1820
1821
  },
1821
1822
  debounceTimeout: 350
1822
1823
  }
1823
1824
  );
1824
- }, is = ({
1825
+ }, ls = ({
1825
1826
  userFlow: e,
1826
1827
  pageId: t,
1827
1828
  responseKey: a,
@@ -1834,10 +1835,10 @@ const as = (e, t, a, s) => {
1834
1835
  }) => {
1835
1836
  const r = {
1836
1837
  ...d
1837
- }, { getNextUI: u } = I(), [f, _] = T(r.value || ""), { disabled: h } = B(
1838
+ }, { getNextUI: u } = K(), [f, _] = q(r.value || ""), { disabled: h } = B(
1838
1839
  e,
1839
1840
  l
1840
- ), b = (r == null ? void 0 : r.disabled) ?? h, m = $(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), x = Je({
1841
+ ), p = (r == null ? void 0 : r.disabled) ?? h, m = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), y = Je({
1841
1842
  userFlow: e,
1842
1843
  pageId: t,
1843
1844
  responseKey: a,
@@ -1845,8 +1846,8 @@ const as = (e, t, a, s) => {
1845
1846
  getNextUI: u,
1846
1847
  isMulti: r == null ? void 0 : r.isMulti,
1847
1848
  debounceMs: n
1848
- }), y = (g) => {
1849
- _(g), x(g);
1849
+ }), x = (g) => {
1850
+ _(g), y(g);
1850
1851
  };
1851
1852
  return /* @__PURE__ */ o.jsx(
1852
1853
  dt,
@@ -1855,27 +1856,27 @@ const as = (e, t, a, s) => {
1855
1856
  className: Ve.selectNotFront,
1856
1857
  label: m,
1857
1858
  value: f,
1858
- disabled: b,
1859
- onChange: (g) => !b && y(g)
1859
+ disabled: p,
1860
+ onChange: (g) => !p && x(g)
1860
1861
  }
1861
1862
  );
1862
- }, ls = (e) => {
1863
+ }, ds = (e) => {
1863
1864
  const { dataSource: t } = e;
1864
- return t ? /* @__PURE__ */ o.jsx(cs, { ...e }) : /* @__PURE__ */ o.jsx(is, { ...e });
1865
- }, ds = "_spacing_19hqa_1", _s = "_spacing__xxs_19hqa_1", us = "_spacing__xs_19hqa_4", hs = "_spacing__sm_19hqa_7", fs = "_spacing__md_19hqa_10", ms = "_spacing__lg_19hqa_13", ys = "_spacing__xl_19hqa_16", xs = "_spacing__xxl_19hqa_19", gs = "_spacing__xxxl_19hqa_22", Re = {
1866
- spacing: ds,
1867
- spacing__xxs: _s,
1868
- spacing__xs: us,
1869
- spacing__sm: hs,
1870
- spacing__md: fs,
1871
- spacing__lg: ms,
1872
- spacing__xl: ys,
1873
- spacing__xxl: xs,
1874
- spacing__xxxl: gs
1875
- }, ps = (e) => {
1865
+ return t ? /* @__PURE__ */ o.jsx(is, { ...e }) : /* @__PURE__ */ o.jsx(ls, { ...e });
1866
+ }, _s = "_spacing_19hqa_1", us = "_spacing__xxs_19hqa_1", hs = "_spacing__xs_19hqa_4", fs = "_spacing__sm_19hqa_7", ms = "_spacing__md_19hqa_10", ys = "_spacing__lg_19hqa_13", xs = "_spacing__xl_19hqa_16", gs = "_spacing__xxl_19hqa_19", ps = "_spacing__xxxl_19hqa_22", Re = {
1867
+ spacing: _s,
1868
+ spacing__xxs: us,
1869
+ spacing__xs: hs,
1870
+ spacing__sm: fs,
1871
+ spacing__md: ms,
1872
+ spacing__lg: ys,
1873
+ spacing__xl: xs,
1874
+ spacing__xxl: gs,
1875
+ spacing__xxxl: ps
1876
+ }, bs = (e) => {
1876
1877
  const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
1877
1878
  return /* @__PURE__ */ o.jsx("div", { className: a });
1878
- }, bs = (e) => {
1879
+ }, js = (e) => {
1879
1880
  const {
1880
1881
  userFlow: t,
1881
1882
  pageId: a,
@@ -1888,50 +1889,50 @@ const as = (e, t, a, s) => {
1888
1889
  ...r
1889
1890
  } = e, u = {
1890
1891
  ...r
1891
- }, { getNextUI: f } = I(), [_, h] = T(l || !1), { disabled: b } = B(
1892
+ }, { getNextUI: f } = K(), [_, h] = q(l || !1), { disabled: p } = B(
1892
1893
  t,
1893
1894
  d
1894
- ), m = (u == null ? void 0 : u.disabled) ?? b, x = $(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
1895
+ ), m = (u == null ? void 0 : u.disabled) ?? p, y = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
1895
1896
  var g;
1896
1897
  try {
1897
- const p = !_;
1898
- h(p);
1899
- const N = {
1898
+ const b = !_;
1899
+ h(b);
1900
+ const C = {
1900
1901
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
1901
- [s]: p
1902
+ [s]: b
1902
1903
  };
1903
- switch (O(t, N), c) {
1904
+ switch (O(t, C), c) {
1904
1905
  case "GO_TO_NEXT_UI":
1905
1906
  const j = await f(
1906
1907
  t,
1907
1908
  a,
1908
- N,
1909
+ C,
1909
1910
  s
1910
1911
  );
1911
- j != null && j.data && A(t, j == null ? void 0 : j.data);
1912
+ j != null && j.data && $(t, j == null ? void 0 : j.data);
1912
1913
  break;
1913
1914
  default:
1914
1915
  console.warn(`Unhandled actionType: ${c}`);
1915
1916
  break;
1916
1917
  }
1917
- } catch (p) {
1918
- console.error("Error in switch action:", p), alert(JSON.stringify(p));
1918
+ } catch (b) {
1919
+ console.error("Error in switch action:", b), alert(JSON.stringify(b));
1919
1920
  }
1920
1921
  }, [t, a, s, c, _]);
1921
1922
  return /* @__PURE__ */ o.jsx(
1922
1923
  _t,
1923
1924
  {
1924
1925
  ...u,
1925
- label: x,
1926
+ label: y,
1926
1927
  checked: _,
1927
1928
  disabled: m,
1928
- onChange: () => !m && y()
1929
+ onChange: () => !m && x()
1929
1930
  }
1930
1931
  );
1931
- }, js = "_tableSkeleton_3nr9n_1", ws = "_tableArrayPills_3nr9n_7", He = {
1932
- tableSkeleton: js,
1933
- tableArrayPills: ws
1934
- }, Cs = ({ values: e }) => {
1932
+ }, ws = "_tableSkeleton_3nr9n_1", Cs = "_tableArrayPills_3nr9n_7", He = {
1933
+ tableSkeleton: ws,
1934
+ tableArrayPills: Cs
1935
+ }, Ns = ({ values: e }) => {
1935
1936
  const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
1936
1937
  return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
1937
1938
  a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
@@ -1940,14 +1941,14 @@ const as = (e, t, a, s) => {
1940
1941
  s
1941
1942
  ] })
1942
1943
  ] });
1943
- }, Ns = ({
1944
+ }, vs = ({
1944
1945
  userFlow: e,
1945
1946
  pageId: t,
1946
1947
  tableResponseKey: a,
1947
1948
  component: s,
1948
1949
  rowData: c
1949
1950
  }) => {
1950
- const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = S(e, t, [
1951
+ const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = K(), d = S(e, t, [
1951
1952
  { ...s }
1952
1953
  ]), r = (d == null ? void 0 : d[0]) || null;
1953
1954
  if (!r) return null;
@@ -1956,77 +1957,77 @@ const as = (e, t, a, s) => {
1956
1957
  responseKey: f,
1957
1958
  dataSource: _
1958
1959
  } = r.props, h = R(async () => {
1959
- var b, m, x;
1960
+ var p, m, y;
1960
1961
  try {
1961
- const y = {
1962
- ...(b = v.getState()[e]) == null ? void 0 : b.entries,
1962
+ const x = {
1963
+ ...(p = v.getState()[e]) == null ? void 0 : p.entries,
1963
1964
  [f]: { status: 200 },
1964
1965
  [a]: [{ ...c }]
1965
1966
  };
1966
- switch (O(e, y), u) {
1967
+ switch (O(e, x), u) {
1967
1968
  case "GO_TO_NEXT_UI": {
1968
1969
  const g = await i(
1969
1970
  e,
1970
1971
  t,
1971
- y,
1972
+ x,
1972
1973
  f
1973
1974
  );
1974
- g != null && g.data && A(e, g == null ? void 0 : g.data);
1975
+ g != null && g.data && $(e, g == null ? void 0 : g.data);
1975
1976
  break;
1976
1977
  }
1977
1978
  case "FETCH_AND_GO_TO_NEXT_UI": {
1978
1979
  const g = await l(
1979
1980
  e,
1980
1981
  t,
1981
- y,
1982
+ x,
1982
1983
  f,
1983
1984
  _
1984
1985
  );
1985
- g != null && g.data && A(e, g == null ? void 0 : g.data);
1986
+ g != null && g.data && $(e, g == null ? void 0 : g.data);
1986
1987
  break;
1987
1988
  }
1988
1989
  case "GET_DATA_SOURCE": {
1989
1990
  const g = await i(
1990
1991
  e,
1991
1992
  t,
1992
- y,
1993
+ x,
1993
1994
  f
1994
- ), p = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
1995
- if ((p == null ? void 0 : p.type) !== "fetch") break;
1996
- const N = p == null ? void 0 : p.dataSource, j = await n(
1997
- N,
1995
+ ), b = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
1996
+ if ((b == null ? void 0 : b.type) !== "fetch") break;
1997
+ const C = b == null ? void 0 : b.dataSource, j = await n(
1998
+ C,
1998
1999
  e,
1999
2000
  // Avoid to handle loading state until all the requests are done
2000
2001
  !1
2001
- ), C = {
2002
- ...(x = v.getState()[e]) == null ? void 0 : x.entries,
2002
+ ), N = {
2003
+ ...(y = v.getState()[e]) == null ? void 0 : y.entries,
2003
2004
  [f]: {
2004
2005
  status: j == null ? void 0 : j.status,
2005
2006
  content: j == null ? void 0 : j.data
2006
2007
  }
2007
2008
  };
2008
- O(e, C);
2009
+ O(e, N);
2009
2010
  const w = await i(
2010
2011
  e,
2011
2012
  t,
2012
- C,
2013
+ N,
2013
2014
  f
2014
2015
  );
2015
- w != null && w.data && A(e, w == null ? void 0 : w.data);
2016
+ w != null && w.data && $(e, w == null ? void 0 : w.data);
2016
2017
  break;
2017
2018
  }
2018
2019
  default:
2019
2020
  console.warn(`Unhandled actionType: ${u}`);
2020
2021
  break;
2021
2022
  }
2022
- } catch (y) {
2023
- alert(JSON.stringify(y));
2023
+ } catch (x) {
2024
+ alert(JSON.stringify(x));
2024
2025
  }
2025
2026
  }, [u, _, t, f, e]);
2026
2027
  return Fe(r, {
2027
2028
  onClick: h
2028
2029
  });
2029
- }, vs = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2030
+ }, Ss = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2030
2031
  Ke,
2031
2032
  {
2032
2033
  maxWidth: "100%",
@@ -2034,7 +2035,7 @@ const as = (e, t, a, s) => {
2034
2035
  radius: 8
2035
2036
  },
2036
2037
  `tableSkeletonBase${t}`
2037
- )) }), Ss = ({
2038
+ )) }), Es = ({
2038
2039
  userFlow: e,
2039
2040
  pageId: t,
2040
2041
  responseKey: a,
@@ -2043,30 +2044,30 @@ const as = (e, t, a, s) => {
2043
2044
  rightActions: i,
2044
2045
  ...l
2045
2046
  }) => {
2046
- var p, N, j;
2047
- const { fetchDataSource: n } = I(), [d, r] = T(!1), [u, f] = T(1), [_, h] = T(null), b = $(() => {
2047
+ var b, C, j;
2048
+ const { fetchDataSource: n } = K(), [d, r] = q(!1), [u, f] = q(1), [_, h] = q(null), p = T(() => {
2048
2049
  if (i != null && i.length)
2049
- return i.map((C, w) => ({
2050
+ return i.map((N, w) => ({
2050
2051
  renderContent: (E) => /* @__PURE__ */ o.jsx(
2051
- Ns,
2052
+ vs,
2052
2053
  {
2053
2054
  userFlow: e,
2054
2055
  pageId: t,
2055
2056
  tableResponseKey: a,
2056
- component: C,
2057
+ component: N,
2057
2058
  rowData: E
2058
2059
  },
2059
2060
  `tableRowAction${w}`
2060
2061
  )
2061
2062
  }));
2062
- }, [i, e, t]), m = async (C = 1) => {
2063
+ }, [i, e, t]), m = async (N = 1) => {
2063
2064
  try {
2064
2065
  r(!0);
2065
- const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c, q = pe(
2066
+ const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c, A = pe(
2066
2067
  c,
2067
- C
2068
+ N
2068
2069
  ), G = await n(
2069
- q,
2070
+ A,
2070
2071
  e,
2071
2072
  !1
2072
2073
  );
@@ -2081,47 +2082,47 @@ const as = (e, t, a, s) => {
2081
2082
  } catch (w) {
2082
2083
  alert(JSON.stringify(w)), r(!1);
2083
2084
  }
2084
- }, x = (C) => {
2085
- f(C), m(C);
2085
+ }, y = (N) => {
2086
+ f(N), m(N);
2086
2087
  };
2087
- M(() => {
2088
+ z(() => {
2088
2089
  m();
2089
2090
  }, []);
2090
- const y = $(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
2091
+ const x = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((N) => {
2091
2092
  var E;
2092
2093
  return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
2093
- (D) => Array.isArray(C != null && C.accessor ? D[C == null ? void 0 : C.accessor] : void 0)
2094
+ (D) => Array.isArray(N != null && N.accessor ? D[N == null ? void 0 : N.accessor] : void 0)
2094
2095
  )) ? {
2095
- ...C,
2096
+ ...N,
2096
2097
  renderCell: (D) => {
2097
- const q = C.accessor ? D[C.accessor] : void 0;
2098
- return Array.isArray(q) ? /* @__PURE__ */ o.jsx(Cs, { values: q }) : q;
2098
+ const A = N.accessor ? D[N.accessor] : void 0;
2099
+ return Array.isArray(A) ? /* @__PURE__ */ o.jsx(Ns, { values: A }) : A;
2099
2100
  }
2100
- } : C;
2101
+ } : N;
2101
2102
  }), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
2102
2103
  ...l,
2103
2104
  data: _ == null ? void 0 : _.items,
2104
- columns: y,
2105
- rightActions: b
2105
+ columns: x,
2106
+ rightActions: p
2106
2107
  };
2107
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(vs, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2108
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(Ss, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2108
2109
  /* @__PURE__ */ o.jsx(ut, { ...g }),
2109
- (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2110
+ (_ == null ? void 0 : _.pagination) && ((C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2110
2111
  ht,
2111
2112
  {
2112
2113
  classname: { global: "row__end" },
2113
2114
  page: u,
2114
2115
  size: _ == null ? void 0 : _.pagination.size,
2115
2116
  total: (j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.total,
2116
- onChange: x
2117
+ onChange: y
2117
2118
  }
2118
2119
  )
2119
2120
  ] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
2120
- }, Es = "_tabsPanel_kvslb_1", ks = {
2121
- tabsPanel: Es
2122
- }, $s = ({ userFlow: e, pageId: t, components: a }) => {
2121
+ }, ks = "_tabsPanel_kvslb_1", Ts = {
2122
+ tabsPanel: ks
2123
+ }, As = ({ userFlow: e, pageId: t, components: a }) => {
2123
2124
  const s = S(e, t, a);
2124
- return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: ks.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
2125
+ return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: Ts.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
2125
2126
  }, qs = ({
2126
2127
  userFlow: e,
2127
2128
  pageId: t,
@@ -2135,7 +2136,7 @@ const as = (e, t, a, s) => {
2135
2136
  label: r.label,
2136
2137
  disabled: r.disabled,
2137
2138
  children: /* @__PURE__ */ o.jsx(
2138
- $s,
2139
+ As,
2139
2140
  {
2140
2141
  userFlow: e,
2141
2142
  pageId: t,
@@ -2160,9 +2161,9 @@ const as = (e, t, a, s) => {
2160
2161
  onClick: d
2161
2162
  }
2162
2163
  );
2163
- }, Ts = "_textFieldNotFront_cps4i_1", As = {
2164
- textFieldNotFront: Ts
2165
- }, Os = (e) => {
2164
+ }, $s = "_textFieldNotFront_1n8fy_1", Os = {
2165
+ textFieldNotFront: $s
2166
+ }, Rs = (e) => {
2166
2167
  const {
2167
2168
  userFlow: t,
2168
2169
  pageId: a,
@@ -2174,33 +2175,33 @@ const as = (e, t, a, s) => {
2174
2175
  ...d
2175
2176
  } = e, r = {
2176
2177
  ...d
2177
- }, [u, f] = T((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
2178
+ }, [u, f] = q((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
2178
2179
  t,
2179
2180
  n
2180
- ), h = (r == null ? void 0 : r.disabled) ?? _, b = $(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (x) => {
2181
- var p;
2182
- const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2183
- f(y);
2181
+ ), h = (r == null ? void 0 : r.disabled) ?? _, p = T(() => 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 = (y) => {
2182
+ var b;
2183
+ const x = (b = y == null ? void 0 : y.target) == null ? void 0 : b.value;
2184
+ f(x);
2184
2185
  const g = {
2185
- [i]: y
2186
+ [i]: x
2186
2187
  };
2187
2188
  O(t, g);
2188
2189
  };
2189
- return M(() => {
2190
+ return z(() => {
2190
2191
  f((r == null ? void 0 : r.value) ?? "");
2191
2192
  }, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
2192
2193
  mt,
2193
2194
  {
2194
2195
  ...r,
2195
- className: As.textFieldNotFront,
2196
+ className: Os.textFieldNotFront,
2196
2197
  allowClear: !1,
2197
- label: b,
2198
+ label: p,
2198
2199
  value: u,
2199
2200
  disabled: h,
2200
- onChange: (x) => !h && m(x)
2201
+ onChange: (y) => !h && m(y)
2201
2202
  }
2202
2203
  );
2203
- }, Rs = ({
2204
+ }, Ds = ({
2204
2205
  userFlow: e,
2205
2206
  pageId: t,
2206
2207
  responseKey: a,
@@ -2224,21 +2225,21 @@ const as = (e, t, a, s) => {
2224
2225
  console.error("Error in toast action:", d), alert(JSON.stringify(d));
2225
2226
  }
2226
2227
  }, [i, t, a, e, l]);
2227
- return M(() => {
2228
+ return z(() => {
2228
2229
  ({
2229
- info: W.info,
2230
- error: W.error,
2231
- success: W.success,
2232
- warning: W.warning
2233
- }[s] || W.info)(c, {
2230
+ info: Q.info,
2231
+ error: Q.error,
2232
+ success: Q.success,
2233
+ warning: Q.warning
2234
+ }[s] || Q.info)(c, {
2234
2235
  autoClose: i ? !1 : 4e3,
2235
2236
  containerId: e,
2236
2237
  onClose: n
2237
2238
  });
2238
2239
  }, [n, e]), null;
2239
- }, Ds = "_accordion_1ri2t_1", Ls = "_accordionBody_1ri2t_8", De = {
2240
- accordion: Ds,
2241
- accordionBody: Ls
2240
+ }, Ls = "_accordion_1ri2t_1", Is = "_accordionBody_1ri2t_8", De = {
2241
+ accordion: Ls,
2242
+ accordionBody: Is
2242
2243
  }, Bs = (e) => {
2243
2244
  const {
2244
2245
  userFlow: t,
@@ -2249,51 +2250,51 @@ const as = (e, t, a, s) => {
2249
2250
  actionContent: l,
2250
2251
  components: n,
2251
2252
  ...d
2252
- } = e, { getNextUI: r } = I(), [u, f] = T(
2253
+ } = e, { getNextUI: r } = K(), [u, f] = q(
2253
2254
  d.checkboxChecked || !1
2254
2255
  ), { disabled: _ } = B(
2255
2256
  t,
2256
2257
  c
2257
- ), h = S(t, a, n), b = l ? S(t, a, l) : void 0, m = i ? S(t, a, i) : void 0, x = R(
2258
- async (p) => {
2259
- var N;
2258
+ ), h = S(t, a, n), p = l ? S(t, a, l) : void 0, m = i ? S(t, a, i) : void 0, y = R(
2259
+ async (b) => {
2260
+ var C;
2260
2261
  try {
2261
- const j = p.target.checked;
2262
+ const j = b.target.checked;
2262
2263
  f(j);
2263
- const C = {
2264
- ...(N = v.getState()[t]) == null ? void 0 : N.entries,
2264
+ const N = {
2265
+ ...(C = v.getState()[t]) == null ? void 0 : C.entries,
2265
2266
  [s]: j
2266
2267
  };
2267
- if (O(t, C), d.actionType === "GO_TO_NEXT_UI") {
2268
+ if (O(t, N), d.actionType === "GO_TO_NEXT_UI") {
2268
2269
  const w = await r(
2269
2270
  t,
2270
2271
  a,
2271
- C,
2272
+ N,
2272
2273
  s
2273
2274
  );
2274
- w != null && w.data && A(t, w == null ? void 0 : w.data);
2275
+ w != null && w.data && $(t, w == null ? void 0 : w.data);
2275
2276
  }
2276
2277
  } catch (j) {
2277
2278
  console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
2278
2279
  }
2279
2280
  },
2280
2281
  [t, a, s, d.actionType, r]
2281
- ), y = d.disabled || _, g = {
2282
+ ), x = d.disabled || _, g = {
2282
2283
  ...d,
2283
2284
  className: De.accordion,
2284
- disabled: y,
2285
+ disabled: x,
2285
2286
  checkboxChecked: u,
2286
- onChanceCheckbox: d.hasCheckbox ? x : void 0,
2287
- actionContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-action-${N}`)) }) : void 0,
2288
- customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-custom-${N}`)) }) : void 0,
2289
- children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${N}`)) }) : void 0
2287
+ onChanceCheckbox: d.hasCheckbox ? y : void 0,
2288
+ actionContent: p ? /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-action-${C}`)) }) : void 0,
2289
+ customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-custom-${C}`)) }) : void 0,
2290
+ children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((b, C) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-child-${C}`)) }) : void 0
2290
2291
  };
2291
2292
  return /* @__PURE__ */ o.jsx(yt, { ...g });
2292
- }, Is = "_drawer_13pxo_1", Ks = "_drawerBody_13pxo_5", zs = "_drawerFooter_13pxo_11", ue = {
2293
- drawer: Is,
2294
- drawerBody: Ks,
2293
+ }, Ks = "_drawer_13pxo_1", Ms = "_drawerBody_13pxo_5", zs = "_drawerFooter_13pxo_11", ue = {
2294
+ drawer: Ks,
2295
+ drawerBody: Ms,
2295
2296
  drawerFooter: zs
2296
- }, Ms = ({
2297
+ }, Gs = ({
2297
2298
  userFlow: e,
2298
2299
  pageId: t,
2299
2300
  responseKey: a,
@@ -2303,18 +2304,18 @@ const as = (e, t, a, s) => {
2303
2304
  ...l
2304
2305
  }) => {
2305
2306
  const n = v((m) => {
2306
- var x;
2307
- return (x = m[e]) == null ? void 0 : x.isDrawerOpen;
2307
+ var y;
2308
+ return (y = m[e]) == null ? void 0 : y.isDrawerOpen;
2308
2309
  }), d = v((m) => {
2309
- var x;
2310
- return (x = m[e]) == null ? void 0 : x.isLoading;
2310
+ var y;
2311
+ return (y = m[e]) == null ? void 0 : y.isLoading;
2311
2312
  }), r = n && !d, u = {
2312
2313
  ...l,
2313
2314
  isOpen: r,
2314
2315
  children: null
2315
2316
  }, f = R(() => {
2316
2317
  xe(e), Z(e, !1);
2317
- }, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = S(e, t, c), b = i ? S(e, t, i) : void 0;
2318
+ }, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ o.jsx(Ie, { type: "h2", children: s }) : void 0, h = S(e, t, c), p = i ? S(e, t, i) : void 0;
2318
2319
  return /* @__PURE__ */ o.jsx(
2319
2320
  xt,
2320
2321
  {
@@ -2323,19 +2324,19 @@ const as = (e, t, a, s) => {
2323
2324
  isOpen: r,
2324
2325
  onClose: f,
2325
2326
  heightGap: 0,
2326
- title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
2327
- children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${x}`)) }),
2328
- footer: b ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: b.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${x}`)) }) : void 0
2327
+ title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${y}`)) : _ }) : void 0,
2328
+ children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${y}`)) }),
2329
+ footer: p ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: p.map((m, y) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${y}`)) }) : void 0
2329
2330
  }
2330
2331
  );
2331
2332
  };
2332
- function na({
2333
+ function sa({
2333
2334
  routes: e,
2334
2335
  renderPage: t,
2335
2336
  renderFallback: a,
2336
2337
  redirectTo: s = "/"
2337
2338
  }) {
2338
- return /* @__PURE__ */ o.jsxs(zt, { children: [
2339
+ return /* @__PURE__ */ o.jsxs(Mt, { children: [
2339
2340
  e.map((c) => /* @__PURE__ */ o.jsx(
2340
2341
  Ce,
2341
2342
  {
@@ -2344,16 +2345,16 @@ function na({
2344
2345
  },
2345
2346
  `${c.path}:${c.sessionName}`
2346
2347
  )),
2347
- /* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(Mt, { to: s, replace: !0 }) })
2348
+ /* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(zt, { to: s, replace: !0 }) })
2348
2349
  ] });
2349
2350
  }
2350
- function sa({
2351
+ function aa({
2351
2352
  sessionName: e,
2352
2353
  apiConfig: t,
2353
2354
  onResolveComponentProps: a,
2354
2355
  children: s
2355
2356
  }) {
2356
- const c = Gs(
2357
+ const c = Us(
2357
2358
  e,
2358
2359
  t,
2359
2360
  null,
@@ -2383,7 +2384,7 @@ const Le = (e, t, a, s, c) => {
2383
2384
  );
2384
2385
  case "header":
2385
2386
  return /* @__PURE__ */ o.jsx(
2386
- Vn,
2387
+ Jn,
2387
2388
  {
2388
2389
  ...s,
2389
2390
  components: i || []
@@ -2393,9 +2394,15 @@ const Le = (e, t, a, s, c) => {
2393
2394
  default:
2394
2395
  return null;
2395
2396
  }
2396
- }, Gs = (e, t, a, s) => {
2397
- var _, h, b;
2398
- const [c, i] = T(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? Le(
2397
+ }, Us = (e, t, a, s) => {
2398
+ var _, h, p;
2399
+ const [c, i] = q(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId;
2400
+ z(() => {
2401
+ if (typeof window > "u") return;
2402
+ const m = new URL(window.location.href), y = m.searchParams.get("sessionId");
2403
+ y && (sessionStorage.setItem("sessionId", y), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
2404
+ }, []);
2405
+ const d = n ? Le(
2399
2406
  e,
2400
2407
  n,
2401
2408
  "header",
@@ -2405,15 +2412,15 @@ const Le = (e, t, a, s, c) => {
2405
2412
  e,
2406
2413
  n,
2407
2414
  "body",
2408
- ((b = l[e].pages[n].page) == null ? void 0 : b.body) || null,
2415
+ ((p = l[e].pages[n].page) == null ? void 0 : p.body) || null,
2409
2416
  s
2410
- ) : null, u = $(() => {
2417
+ ) : null, u = T(() => {
2411
2418
  var m;
2412
2419
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2413
2420
  ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(gt, {}),
2414
2421
  d,
2415
2422
  r,
2416
- n && /* @__PURE__ */ o.jsx(Yn, { userFlow: e, pageId: n }),
2423
+ n && /* @__PURE__ */ o.jsx(Qn, { userFlow: e, pageId: n }),
2417
2424
  l[e] && /* @__PURE__ */ o.jsx(pt, {})
2418
2425
  ] });
2419
2426
  }, [d, r, n, e]), f = async () => {
@@ -2421,33 +2428,33 @@ const Le = (e, t, a, s, c) => {
2421
2428
  const m = await Ge(
2422
2429
  t,
2423
2430
  e
2424
- ), x = m == null ? void 0 : m.data, y = x == null ? void 0 : x.content;
2425
- (m == null ? void 0 : m.status) === 200 ? ce(e, t, y, x == null ? void 0 : x.sessionState) : i(!0);
2431
+ ), y = m == null ? void 0 : m.data, x = y == null ? void 0 : y.content;
2432
+ (m == null ? void 0 : m.status) === 200 ? ce(e, t, x, y == null ? void 0 : y.sessionState) : i(!0);
2426
2433
  } catch (m) {
2427
2434
  console.error("[not-page]: API call failed", m), i(!0);
2428
2435
  }
2429
2436
  };
2430
- return M(() => {
2437
+ return z(() => {
2431
2438
  t != null && t.api && !a && e ? f() : !(t != null && t.api) && a && e || t != null && t.api && a && e ? ce(e, t, a) : (!(t != null && t.api) && !a || !e) && (i(!0), console.error(
2432
2439
  "[not-page]: API call failed",
2433
2440
  "not api config",
2434
2441
  "not userFlow"
2435
2442
  ));
2436
- const m = "avocado-theme-mode-changed", x = (y) => {
2437
- const g = y.detail;
2443
+ const m = "avocado-theme-mode-changed", y = (x) => {
2444
+ const g = x.detail;
2438
2445
  te.setThemeMode(g);
2439
2446
  };
2440
- return window.addEventListener(m, x), () => {
2441
- window.removeEventListener(m, x);
2447
+ return window.addEventListener(m, y), () => {
2448
+ window.removeEventListener(m, y);
2442
2449
  };
2443
2450
  }, []), c && console.error("[not-page]: No render page"), u;
2444
2451
  };
2445
2452
  export {
2446
- Gn as Chart,
2447
- na as NotFrontDynamicRouter,
2448
- sa as NotFrontPage,
2449
- ss as Row,
2453
+ zn as Chart,
2454
+ sa as NotFrontDynamicRouter,
2455
+ aa as NotFrontPage,
2456
+ ns as Row,
2450
2457
  Zt as heading,
2451
2458
  Ft as text,
2452
- Gs as usePage
2459
+ Us as usePage
2453
2460
  };