@foris/avocado-not-front 5.0.2 → 5.0.4

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,8 +1,8 @@
1
1
  import X from "axios";
2
2
  import { create as ut } from "zustand";
3
- import ht, { useMemo as E, useState as R, useCallback as L, Fragment as T, useEffect as U, useRef as _e, cloneElement as ft } from "react";
4
- import { Heading as Ze, Text as yt, Accordion as mt, ThemeStore as re, Box as xt, RadioButton as gt, Stepper as bt, ProgressBar as pt, Breadcrumbs as jt, Button as Ct, CardAccordion as wt, Card as Nt, CardNotification as ie, SkeletonBase as Fe, Checkbox as vt, PreviewerMarkdown as Pe, DataCard as St, Divider as kt, Drawer as Et, DropdownButton as Tt, Link as Ot, Menu as At, Modal as $t, Pill as Ce, RoundButton as qt, SelectPagination as Rt, Select as Dt, Switch as Lt, Table as $e, Pager as qe, Tabs as It, Textarea as Bt, TextField as Gt, toast as se, Tooltip as Kt, Loading as Mt, Toaster as Ut } from "@foris/avocado-suite";
5
- import { ChatPanel as Vt, PromptCodeEditor as Ht, SummaryCard as zt } from "@foris/ai-agent";
3
+ import ht, { useMemo as k, useState as R, useCallback as L, Fragment as T, useEffect as M, useRef as _e, cloneElement as ft } from "react";
4
+ import { Heading as Ze, Text as yt, Accordion as mt, ThemeStore as re, Box as xt, RadioButton as gt, Stepper as bt, ProgressBar as pt, Breadcrumbs as jt, Button as Ct, CardAccordion as wt, Card as Nt, CardNotification as ie, SkeletonBase as Fe, Checkbox as vt, PreviewerMarkdown as Pe, DataCard as Et, Divider as St, Drawer as kt, DropdownButton as Tt, Link as Ot, Menu as At, Modal as $t, Pill as Ce, RoundButton as qt, SelectPagination as Rt, Select as Dt, Switch as Lt, Table as $e, Pager as qe, Tabs as It, Textarea as Bt, TextField as Gt, toast as se, Tooltip as Kt, Loading as Ht, Toaster as Mt } from "@foris/avocado-suite";
5
+ import { ChatPanel as Ut, PromptCodeEditor as Vt, SummaryCard as zt } from "@foris/ai-agent";
6
6
  import G from "jsonpath";
7
7
  import { ResponsiveContainer as et, Legend as Xt, Tooltip as Jt, XAxis as Wt, YAxis as Qt, AreaChart as Yt, CartesianGrid as Ne, Area as Zt, BarChart as Ft, Bar as Pt, LineChart as en, Line as tn, PieChart as nn, Pie as sn, Cell as an } from "recharts";
8
8
  import rn from "@uiw/react-codemirror";
@@ -269,11 +269,11 @@ function gn() {
269
269
  Ge = 1;
270
270
  var e = ht, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
271
271
  function c(n, d, a) {
272
- var _, u = {}, h = null, f = null;
273
- a !== void 0 && (h = "" + a), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (f = d.ref);
272
+ var _, u = {}, h = null, y = null;
273
+ a !== void 0 && (h = "" + a), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (y = d.ref);
274
274
  for (_ in d) r.call(d, _) && !l.hasOwnProperty(_) && (u[_] = d[_]);
275
275
  if (n && n.defaultProps) for (_ in d = n.defaultProps, d) u[_] === void 0 && (u[_] = d[_]);
276
- return { $$typeof: t, type: n, key: h, ref: f, props: u, _owner: i.current };
276
+ return { $$typeof: t, type: n, key: h, ref: y, props: u, _owner: i.current };
277
277
  }
278
278
  return ae.Fragment = s, ae.jsx = c, ae.jsxs = c, ae;
279
279
  }
@@ -297,7 +297,7 @@ const pn = (e) => {
297
297
  children: e.content
298
298
  };
299
299
  return /* @__PURE__ */ o.jsx(yt, { ...t });
300
- }, S = (e, t, s, r) => {
300
+ }, E = (e, t, s, r) => {
301
301
  var c;
302
302
  const i = {
303
303
  accordion: (n) => /* @__PURE__ */ o.jsx(On, { ...n, userFlow: e, pageId: t }),
@@ -320,7 +320,7 @@ const pn = (e) => {
320
320
  }
321
321
  ),
322
322
  aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n, userFlow: e, pageId: t }),
323
- box: (n) => /* @__PURE__ */ o.jsx(Vn, { ...n, userFlow: e, pageId: t }),
323
+ box: (n) => /* @__PURE__ */ o.jsx(Un, { ...n, userFlow: e, pageId: t }),
324
324
  breadcrumbs: (n) => /* @__PURE__ */ o.jsx(ts, { ...n, userFlow: e, pageId: t }),
325
325
  tooltip: (n) => /* @__PURE__ */ o.jsx(Ka, { ...n, userFlow: e, pageId: t }),
326
326
  textarea: (n) => /* @__PURE__ */ o.jsx(qa, { ...n, userFlow: e, pageId: t }),
@@ -340,7 +340,7 @@ const pn = (e) => {
340
340
  divider: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n }),
341
341
  drawer: (n) => /* @__PURE__ */ o.jsx(Gs, { ...n, userFlow: e, pageId: t }),
342
342
  heading: (n) => pn(n),
343
- link: (n) => /* @__PURE__ */ o.jsx(Hs, { ...n, userFlow: e, pageId: t }),
343
+ link: (n) => /* @__PURE__ */ o.jsx(Vs, { ...n, userFlow: e, pageId: t }),
344
344
  pill: (n) => /* @__PURE__ */ o.jsx(Zs, { ...n }),
345
345
  previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Fs, { ...n }),
346
346
  modal: (n) => /* @__PURE__ */ o.jsx(Ws, { ...n, userFlow: e, pageId: t }),
@@ -349,7 +349,7 @@ const pn = (e) => {
349
349
  select: (n) => /* @__PURE__ */ o.jsx(da, { ...n, userFlow: e, pageId: t }),
350
350
  switch: (n) => /* @__PURE__ */ o.jsx(ja, { ...n, userFlow: e, pageId: t }),
351
351
  spacing: (n) => /* @__PURE__ */ o.jsx(pa, { ...n, userFlow: e, pageId: t }),
352
- table: (n) => /* @__PURE__ */ o.jsx(Ea, { ...n, userFlow: e, pageId: t }),
352
+ table: (n) => /* @__PURE__ */ o.jsx(ka, { ...n, userFlow: e, pageId: t }),
353
353
  tabs: (n) => /* @__PURE__ */ o.jsx($a, { ...n, userFlow: e, pageId: t }),
354
354
  text: (n) => jn(n),
355
355
  textField: (n) => /* @__PURE__ */ o.jsx(La, { ...n, userFlow: e, pageId: t }),
@@ -379,7 +379,7 @@ function I(e, t) {
379
379
  var i;
380
380
  return (i = r[e]) == null ? void 0 : i.entries;
381
381
  });
382
- return E(
382
+ return k(
383
383
  () => ({
384
384
  disabled: nt(s, t)
385
385
  }),
@@ -458,7 +458,7 @@ const ee = (e) => {
458
458
  }),
459
459
  controller: c
460
460
  };
461
- }, Sn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
461
+ }, En = (e, t = {}, s = {}, r = {}, i = !1, l) => {
462
462
  const c = oe();
463
463
  i && c.abort();
464
464
  const n = ee(t);
@@ -516,7 +516,7 @@ const ee = (e) => {
516
516
  default:
517
517
  return "get";
518
518
  }
519
- }, kn = (e, t, s) => {
519
+ }, Sn = (e, t, s) => {
520
520
  const { url: r, paginationKeys: i, params: l } = e, c = [], n = (i == null ? void 0 : i.page) ?? "page";
521
521
  if (c.push(`${n}=${t}`), typeof s == "string") {
522
522
  const _ = (i == null ? void 0 : i.text) ?? "text";
@@ -530,10 +530,10 @@ const ee = (e) => {
530
530
  }
531
531
  const d = c.join("&");
532
532
  return d ? `${r}?${d}` : r;
533
- }, Se = (e, t, s, r) => {
533
+ }, Ee = (e, t, s, r) => {
534
534
  const { type: i, url: l, method: c, headers: n } = e;
535
535
  if (i === "rest") {
536
- const d = kn(e, t, s), _ = { ...(e == null ? void 0 : e.data) ?? {}, ...r ?? {} };
536
+ const d = Sn(e, t, s), _ = { ...(e == null ? void 0 : e.data) ?? {}, ...r ?? {} };
537
537
  return {
538
538
  type: "rest",
539
539
  url: d,
@@ -558,18 +558,18 @@ const ee = (e) => {
558
558
  const e = N((n) => n), { callEndpoint: t } = st(), s = async (n, d, a, _, u = !0) => {
559
559
  var h;
560
560
  try {
561
- const f = (h = e[n]) == null ? void 0 : h.apiConfig, m = {
561
+ const y = (h = e[n]) == null ? void 0 : h.apiConfig, m = {
562
562
  state: { ...a },
563
563
  triggerKey: _
564
564
  };
565
565
  return u && Y(n, !0), await at(
566
- f,
566
+ y,
567
567
  n,
568
568
  d,
569
569
  m
570
570
  );
571
- } catch (f) {
572
- throw u && Y(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
571
+ } catch (y) {
572
+ throw u && Y(n, !1), console.error("[getNextUI] Error fetching next UI:", y), y;
573
573
  }
574
574
  }, r = (n, d) => {
575
575
  const { url: a, headers: _, data: u, params: h } = n;
@@ -581,7 +581,7 @@ const ee = (e) => {
581
581
  case "patch":
582
582
  return vn(a, _, u, {}, !1, d);
583
583
  case "delete":
584
- return Sn(a, _, u, h, !1, d);
584
+ return En(a, _, u, h, !1, d);
585
585
  case "get":
586
586
  default:
587
587
  return wn(a, _, h, !1, d);
@@ -623,13 +623,13 @@ const ee = (e) => {
623
623
  }
624
624
  return await t(h);
625
625
  } catch (h) {
626
- const f = h;
627
- return console.error("[fetchDataSource] Error:", f), {
628
- status: ((_ = f == null ? void 0 : f.response) == null ? void 0 : _.status) ?? 0,
629
- data: ((u = f == null ? void 0 : f.response) == null ? void 0 : u.data) ?? {
630
- message: f == null ? void 0 : f.message,
631
- code: f == null ? void 0 : f.code,
632
- config: f == null ? void 0 : f.config
626
+ const y = h;
627
+ return console.error("[fetchDataSource] Error:", y), {
628
+ status: ((_ = y == null ? void 0 : y.response) == null ? void 0 : _.status) ?? 0,
629
+ data: ((u = y == null ? void 0 : y.response) == null ? void 0 : u.data) ?? {
630
+ message: y == null ? void 0 : y.message,
631
+ code: y == null ? void 0 : y.code,
632
+ config: y == null ? void 0 : y.config
633
633
  }
634
634
  };
635
635
  } finally {
@@ -657,8 +657,8 @@ const ee = (e) => {
657
657
  }
658
658
  }
659
659
  };
660
- }, En = "_accordion_1ri2t_1", Tn = "_accordionBody_1ri2t_8", Me = {
661
- accordion: En,
660
+ }, kn = "_accordion_1ri2t_1", Tn = "_accordionBody_1ri2t_8", He = {
661
+ accordion: kn,
662
662
  accordionBody: Tn
663
663
  }, On = (e) => {
664
664
  const {
@@ -675,7 +675,7 @@ const ee = (e) => {
675
675
  ), { disabled: h } = I(
676
676
  t,
677
677
  i
678
- ), f = S(t, s, n), m = c ? S(t, s, c) : void 0, g = l ? S(t, s, l) : void 0, x = L(
678
+ ), y = E(t, s, n), m = c ? E(t, s, c) : void 0, g = l ? E(t, s, l) : void 0, x = L(
679
679
  async (p) => {
680
680
  var C;
681
681
  try {
@@ -699,24 +699,24 @@ const ee = (e) => {
699
699
  }
700
700
  },
701
701
  [t, s, r, d.actionType, a]
702
- ), y = d.disabled || h, b = {
702
+ ), f = d.disabled || h, b = {
703
703
  ...d,
704
- className: Me.accordion,
705
- disabled: y,
704
+ className: He.accordion,
705
+ disabled: f,
706
706
  checkboxChecked: _,
707
707
  onChanceCheckbox: d.hasCheckbox ? x : void 0,
708
708
  actionContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((p, C) => /* @__PURE__ */ o.jsx(T, { children: p }, `accordion-action-${C}`)) }) : void 0,
709
709
  customContent: g ? /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((p, C) => /* @__PURE__ */ o.jsx(T, { children: p }, `accordion-custom-${C}`)) }) : void 0,
710
- children: f ? /* @__PURE__ */ o.jsx("section", { className: Me.accordionBody, children: f.map((p, C) => /* @__PURE__ */ o.jsx(T, { children: p }, `accordion-child-${C}`)) }) : void 0
710
+ children: y ? /* @__PURE__ */ o.jsx("section", { className: He.accordionBody, children: y.map((p, C) => /* @__PURE__ */ o.jsx(T, { children: p }, `accordion-child-${C}`)) }) : void 0
711
711
  };
712
712
  return /* @__PURE__ */ o.jsx(mt, { ...b });
713
713
  }, An = (e) => {
714
- const t = re.useThemeStore((c) => c.theme.mode), s = e.dataSource, r = E(() => ({
714
+ const t = re.useThemeStore((c) => c.theme.mode), s = e.dataSource, r = k(() => ({
715
715
  url: e.dataSource.url,
716
716
  method: e.dataSource.method,
717
717
  headers: e.dataSource.headers,
718
718
  params: s == null ? void 0 : s.data
719
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]), i = e.locale ?? "en", l = E(() => {
719
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, s == null ? void 0 : s.data]), i = e.locale ?? "en", l = k(() => {
720
720
  var n, d, a, _, u;
721
721
  const c = {
722
722
  title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
@@ -727,7 +727,7 @@ const ee = (e) => {
727
727
  };
728
728
  return Object.fromEntries(Object.entries(c).filter(([, h]) => !!h));
729
729
  }, [e == null ? void 0 : e.translations]);
730
- return U(() => {
730
+ return M(() => {
731
731
  e.onResolveProps && e.onResolveProps({
732
732
  dataSource: r,
733
733
  locale: i,
@@ -743,7 +743,7 @@ const ee = (e) => {
743
743
  e.initialSuggestions,
744
744
  t
745
745
  ]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
746
- Vt,
746
+ Ut,
747
747
  {
748
748
  dataSource: r,
749
749
  locale: i,
@@ -766,30 +766,30 @@ const ee = (e) => {
766
766
  inputLabel: d,
767
767
  inputPlaceholder: a,
768
768
  codeBlockLabel: _
769
- } = e, u = re.useThemeStore((p) => p.theme.mode), [h, f] = R(
769
+ } = e, u = re.useThemeStore((p) => p.theme.mode), [h, y] = R(
770
770
  r || ""
771
771
  ), { disabled: m } = I(
772
772
  t,
773
773
  c
774
- ), g = l ?? m, x = i ?? "json", y = {
774
+ ), g = l ?? m, x = i ?? "json", f = {
775
775
  url: (n == null ? void 0 : n.url) || "",
776
776
  method: (n == null ? void 0 : n.method) || "post",
777
777
  headers: n == null ? void 0 : n.headers,
778
778
  body: n == null ? void 0 : n.data
779
779
  }, b = (p) => {
780
- f(p);
780
+ y(p);
781
781
  const C = {
782
782
  [s]: p
783
783
  };
784
784
  $(t, C);
785
785
  };
786
- return U(() => {
787
- r !== void 0 && r !== h && f(r);
786
+ return M(() => {
787
+ r !== void 0 && r !== h && y(r);
788
788
  }, [r]), /* @__PURE__ */ o.jsx("section", { className: qn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
789
- Ht,
789
+ Vt,
790
790
  {
791
791
  themeMode: u,
792
- requestConfig: y,
792
+ requestConfig: f,
793
793
  language: x,
794
794
  disabled: g,
795
795
  inputLabel: d,
@@ -802,12 +802,12 @@ const ee = (e) => {
802
802
  }, Dn = "_summaryCard_jva4h_1", Ln = {
803
803
  summaryCard: Dn
804
804
  }, In = (e) => {
805
- const t = e.dataSource, s = E(() => ({
805
+ const t = e.dataSource, s = k(() => ({
806
806
  url: e.dataSource.url,
807
807
  method: e.dataSource.method,
808
808
  headers: e.dataSource.headers,
809
809
  body: t == null ? void 0 : t.data
810
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), r = e.locale ?? "en", i = E(() => {
810
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), r = e.locale ?? "en", i = k(() => {
811
811
  var c, n, d;
812
812
  const l = {
813
813
  title: (c = e == null ? void 0 : e.translations) == null ? void 0 : c.title,
@@ -818,7 +818,7 @@ const ee = (e) => {
818
818
  Object.entries(l).filter(([, a]) => !!a)
819
819
  );
820
820
  }, [e == null ? void 0 : e.translations]);
821
- return U(() => {
821
+ return M(() => {
822
822
  e.onResolveProps && e.onResolveProps({
823
823
  dataSource: s,
824
824
  locale: r,
@@ -832,12 +832,12 @@ const ee = (e) => {
832
832
  translations: i
833
833
  }
834
834
  ) });
835
- }, Bn = "_body_14tsv_1", Gn = "_body_content_14tsv_5", Ue = {
835
+ }, Bn = "_body_14tsv_1", Gn = "_body_content_14tsv_5", Me = {
836
836
  body: Bn,
837
837
  body_content: Gn
838
- }, Kn = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Ue.body, children: /* @__PURE__ */ o.jsx("div", { className: Ue.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(T, { children: t }, s)) }) }), Mn = "_slotStack_1b4wy_1", Un = {
839
- slotStack: Mn
840
- }, Vn = (e) => {
838
+ }, Kn = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Me.body, children: /* @__PURE__ */ o.jsx("div", { className: Me.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(T, { children: t }, s)) }) }), Hn = "_slotStack_1b4wy_1", Mn = {
839
+ slotStack: Hn
840
+ }, Un = (e) => {
841
841
  const {
842
842
  userFlow: t,
843
843
  pageId: s,
@@ -845,11 +845,11 @@ const ee = (e) => {
845
845
  hash: i,
846
846
  responseKey: l,
847
847
  content: c
848
- } = e, n = re.useThemeStore((_) => _.theme.mode) === "dark", d = S(
848
+ } = e, n = re.useThemeStore((_) => _.theme.mode) === "dark", d = E(
849
849
  t,
850
850
  s,
851
851
  c != null && c.length ? c : null
852
- ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Un.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(T, { children: _ }, `box-${i}-${u}`)) }) : null;
852
+ ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Mn.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(T, { children: _ }, `box-${i}-${u}`)) }) : null;
853
853
  return /* @__PURE__ */ o.jsx(xt, { darkMode: n, children: a });
854
854
  };
855
855
  var be = { exports: {} };
@@ -858,9 +858,9 @@ var be = { exports: {} };
858
858
  Licensed under the MIT License (MIT), see
859
859
  http://jedwatson.github.io/classnames
860
860
  */
861
- var Ve;
862
- function Hn() {
863
- return Ve || (Ve = 1, (function(e) {
861
+ var Ue;
862
+ function Vn() {
863
+ return Ue || (Ue = 1, (function(e) {
864
864
  (function() {
865
865
  var t = {}.hasOwnProperty;
866
866
  function s() {
@@ -891,7 +891,7 @@ function Hn() {
891
891
  })();
892
892
  })(be)), be.exports;
893
893
  }
894
- var zn = Hn();
894
+ var zn = Vn();
895
895
  const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColumn_1xrth_8", Wn = "_legend_1xrth_14", Qn = "_options_1xrth_20", Yn = "_optionsRow_1xrth_25", Zn = "_optionsColumn_1xrth_36", Z = {
896
896
  fieldset: Xn,
897
897
  fieldsetColumn: Jn,
@@ -911,7 +911,7 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
911
911
  dependencies: d,
912
912
  direction: a,
913
913
  items: _
914
- } = e, u = a === "column" ? "column" : "row", { getNextUI: h } = K(), { disabled: f } = I(
914
+ } = e, u = a === "column" ? "column" : "row", { getNextUI: h } = K(), { disabled: y } = I(
915
915
  t,
916
916
  d
917
917
  ), m = N(
@@ -919,7 +919,7 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
919
919
  var C, j;
920
920
  return (j = (C = p[t]) == null ? void 0 : C.entries) == null ? void 0 : j[r];
921
921
  }
922
- ), g = m != null ? String(m) : l ?? "", x = f, y = E(() => i ? c ? `${i} *` : i : null, [i, c]), b = L(
922
+ ), g = m != null ? String(m) : l ?? "", x = y, f = k(() => i ? c ? `${i} *` : i : null, [i, c]), b = L(
923
923
  async (p) => {
924
924
  var C;
925
925
  if (!x)
@@ -959,7 +959,7 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
959
959
  u === "column" && Z.fieldsetColumn
960
960
  ),
961
961
  children: [
962
- y ? /* @__PURE__ */ o.jsx("legend", { className: Z.legend, children: y }) : null,
962
+ f ? /* @__PURE__ */ o.jsx("legend", { className: Z.legend, children: f }) : null,
963
963
  /* @__PURE__ */ o.jsx(
964
964
  "div",
965
965
  {
@@ -1035,22 +1035,22 @@ const P = /* @__PURE__ */ xn(zn), Xn = "_fieldset_1xrth_1", Jn = "_fieldsetColum
1035
1035
  }
1036
1036
  },
1037
1037
  []
1038
- ), l = E(() => t == null ? void 0 : t.map((c) => ({
1038
+ ), l = k(() => t == null ? void 0 : t.map((c) => ({
1039
1039
  title: c == null ? void 0 : c.title,
1040
1040
  component: /* @__PURE__ */ o.jsx("div", { onClick: () => i(c) })
1041
1041
  })), []);
1042
1042
  return /* @__PURE__ */ o.jsx(jt, { items: l });
1043
1043
  };
1044
- function ke(e, t) {
1044
+ function Se(e, t) {
1045
1045
  const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: i } = K();
1046
1046
  return L(
1047
1047
  async (l) => {
1048
- var h, f, m, g;
1048
+ var h, y, m, g;
1049
1049
  const { responseKey: c, actionType: n, dataSource: d, redirectUrl: a, dependencies: _ } = l, u = (h = N.getState()[e]) == null ? void 0 : h.entries;
1050
1050
  if (!nt(u, _))
1051
1051
  try {
1052
1052
  const x = {
1053
- ...(f = N.getState()[e]) == null ? void 0 : f.entries,
1053
+ ...(y = N.getState()[e]) == null ? void 0 : y.entries,
1054
1054
  [c]: { status: 200 }
1055
1055
  };
1056
1056
  switch ($(e, x), n) {
@@ -1064,47 +1064,47 @@ function ke(e, t) {
1064
1064
  J(e, !0);
1065
1065
  break;
1066
1066
  case "GO_TO_NEXT_UI": {
1067
- const y = await s(
1067
+ const f = await s(
1068
1068
  e,
1069
1069
  t,
1070
1070
  x,
1071
1071
  c
1072
1072
  );
1073
- y != null && y.data && D(e, y == null ? void 0 : y.data);
1073
+ f != null && f.data && D(e, f == null ? void 0 : f.data);
1074
1074
  break;
1075
1075
  }
1076
1076
  case "FETCH_AND_GO_TO_NEXT_UI": {
1077
- const y = await i(
1077
+ const f = await i(
1078
1078
  e,
1079
1079
  t,
1080
1080
  x,
1081
1081
  c,
1082
1082
  d
1083
1083
  );
1084
- y != null && y.data && D(e, y == null ? void 0 : y.data);
1084
+ f != null && f.data && D(e, f == null ? void 0 : f.data);
1085
1085
  break;
1086
1086
  }
1087
1087
  case "FETCH_DATA_SOURCE": {
1088
- const y = await r(
1088
+ const f = await r(
1089
1089
  d,
1090
1090
  e,
1091
1091
  !1
1092
1092
  );
1093
1093
  $(e, {
1094
1094
  [c]: {
1095
- status: y == null ? void 0 : y.status,
1096
- content: y == null ? void 0 : y.data
1095
+ status: f == null ? void 0 : f.status,
1096
+ content: f == null ? void 0 : f.data
1097
1097
  }
1098
1098
  });
1099
1099
  break;
1100
1100
  }
1101
1101
  case "GET_DATA_SOURCE": {
1102
- const y = await s(
1102
+ const f = await s(
1103
1103
  e,
1104
1104
  t,
1105
1105
  x,
1106
1106
  c
1107
- ), b = (m = y == null ? void 0 : y.data) == null ? void 0 : m.content;
1107
+ ), b = (m = f == null ? void 0 : f.data) == null ? void 0 : m.content;
1108
1108
  if ((b == null ? void 0 : b.type) !== "fetch")
1109
1109
  break;
1110
1110
  const p = b == null ? void 0 : b.dataSource, C = await r(p, e, !1), j = {
@@ -1156,17 +1156,17 @@ const ns = (e) => {
1156
1156
  dependencies: a,
1157
1157
  onClick: _,
1158
1158
  ...u
1159
- } = e, h = ke(t, s), { disabled: f } = I(
1159
+ } = e, h = Se(t, s), { disabled: y } = I(
1160
1160
  t,
1161
1161
  a
1162
1162
  ), m = {
1163
1163
  ...u,
1164
1164
  children: c ?? l
1165
- }, g = (m == null ? void 0 : m.disabled) ?? f, [x, y] = R(!1), b = _e(!1), p = L(async () => {
1165
+ }, g = (m == null ? void 0 : m.disabled) ?? y, [x, f] = R(!1), b = _e(!1), p = L(async () => {
1166
1166
  if (b.current)
1167
1167
  return;
1168
1168
  const C = i === "FETCH_DATA_SOURCE";
1169
- C && (b.current = !0, y(!0));
1169
+ C && (b.current = !0, f(!0));
1170
1170
  try {
1171
1171
  await h({
1172
1172
  responseKey: r,
@@ -1178,7 +1178,7 @@ const ns = (e) => {
1178
1178
  } catch (j) {
1179
1179
  console.error("[ButtonNotFront] Action failed:", j);
1180
1180
  } finally {
1181
- C && (b.current = !1, y(!1));
1181
+ C && (b.current = !1, f(!1));
1182
1182
  }
1183
1183
  }, [
1184
1184
  i,
@@ -1197,7 +1197,7 @@ const ns = (e) => {
1197
1197
  onClick: () => !g && !x && (_ ?? p)()
1198
1198
  }
1199
1199
  );
1200
- }, ss = "_slotStack_12u4t_5", He = {
1200
+ }, ss = "_slotStack_12u4t_5", Ve = {
1201
1201
  slotStack: ss
1202
1202
  }, as = (e) => {
1203
1203
  const {
@@ -1213,22 +1213,22 @@ const ns = (e) => {
1213
1213
  } = e, { disabled: _ } = I(
1214
1214
  t,
1215
1215
  c
1216
- ), u = S(
1216
+ ), u = E(
1217
1217
  t,
1218
1218
  s,
1219
1219
  n && n.length > 0 ? n : null
1220
- ), h = S(
1220
+ ), h = E(
1221
1221
  t,
1222
1222
  s,
1223
1223
  d && d.length > 0 ? d : null
1224
- ), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: He.slotStack, children: u.map((x, y) => /* @__PURE__ */ o.jsx(T, { children: x }, `card-accordion-body-${i}-${y}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: He.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(T, { children: x }, `card-accordion-actions-${i}-${y}`)) }) : void 0, g = a.disabled || _;
1224
+ ), y = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ve.slotStack, children: u.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `card-accordion-body-${i}-${f}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ve.slotStack, children: h.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `card-accordion-actions-${i}-${f}`)) }) : void 0, g = a.disabled || _;
1225
1225
  return /* @__PURE__ */ o.jsx(
1226
1226
  wt,
1227
1227
  {
1228
1228
  ...a,
1229
1229
  disabled: g,
1230
1230
  actionContent: m,
1231
- children: f ?? null
1231
+ children: y ?? null
1232
1232
  }
1233
1233
  );
1234
1234
  }, rs = "_slotStack_ivk5b_1", os = {
@@ -1247,16 +1247,16 @@ const ns = (e) => {
1247
1247
  dataSource: _,
1248
1248
  redirectUrl: u,
1249
1249
  dependencies: h
1250
- } = e, { getNextUI: f, fetchDataSource: m, fetchAndGetNextUI: g } = K(), { disabled: x } = I(
1250
+ } = e, { getNextUI: y, fetchDataSource: m, fetchAndGetNextUI: g } = K(), { disabled: x } = I(
1251
1251
  t,
1252
1252
  h
1253
- ), y = d ?? x, b = S(
1253
+ ), f = d ?? x, b = E(
1254
1254
  t,
1255
1255
  s,
1256
1256
  c && c.length > 0 ? c : null
1257
1257
  ), p = b && b.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: os.slotStack, children: b.map((j, w) => /* @__PURE__ */ o.jsx(T, { children: j }, `card-body-${i}-${w}`)) }) : null, C = L(async () => {
1258
1258
  var j, w, v;
1259
- if (!(!a || y))
1259
+ if (!(!a || f))
1260
1260
  try {
1261
1261
  const O = {
1262
1262
  ...(j = N.getState()[t]) == null ? void 0 : j.entries,
@@ -1274,7 +1274,7 @@ const ns = (e) => {
1274
1274
  break;
1275
1275
  case "GO_TO_NEXT_UI":
1276
1276
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
1277
- const q = await f(
1277
+ const q = await y(
1278
1278
  t,
1279
1279
  s,
1280
1280
  O,
@@ -1296,7 +1296,7 @@ const ns = (e) => {
1296
1296
  break;
1297
1297
  }
1298
1298
  case "GET_DATA_SOURCE": {
1299
- const A = await f(
1299
+ const A = await y(
1300
1300
  t,
1301
1301
  s,
1302
1302
  O,
@@ -1304,18 +1304,18 @@ const ns = (e) => {
1304
1304
  ), q = (w = A == null ? void 0 : A.data) == null ? void 0 : w.content;
1305
1305
  if ((q == null ? void 0 : q.type) !== "fetch")
1306
1306
  break;
1307
- const W = q == null ? void 0 : q.dataSource, V = await m(W, t, !1), k = {
1307
+ const W = q == null ? void 0 : q.dataSource, U = await m(W, t, !1), S = {
1308
1308
  ...(v = N.getState()[t]) == null ? void 0 : v.entries,
1309
1309
  [l]: {
1310
- status: V == null ? void 0 : V.status,
1311
- content: V == null ? void 0 : V.data
1310
+ status: U == null ? void 0 : U.status,
1311
+ content: U == null ? void 0 : U.data
1312
1312
  }
1313
1313
  };
1314
- $(t, k);
1315
- const B = await f(
1314
+ $(t, S);
1315
+ const B = await y(
1316
1316
  t,
1317
1317
  s,
1318
- k,
1318
+ S,
1319
1319
  l
1320
1320
  );
1321
1321
  B != null && B.data && D(t, B == null ? void 0 : B.data);
@@ -1333,10 +1333,10 @@ const ns = (e) => {
1333
1333
  }, [
1334
1334
  a,
1335
1335
  _,
1336
- y,
1336
+ f,
1337
1337
  g,
1338
1338
  m,
1339
- f,
1339
+ y,
1340
1340
  s,
1341
1341
  u,
1342
1342
  l,
@@ -1346,8 +1346,8 @@ const ns = (e) => {
1346
1346
  Nt,
1347
1347
  {
1348
1348
  colorId: n,
1349
- disabled: y,
1350
- onClick: a && !y ? () => void C() : void 0,
1349
+ disabled: f,
1350
+ onClick: a && !f ? () => void C() : void 0,
1351
1351
  children: p
1352
1352
  }
1353
1353
  );
@@ -1378,15 +1378,15 @@ const ns = (e) => {
1378
1378
  var _, u;
1379
1379
  if (s) {
1380
1380
  const h = {};
1381
- for (const [f, m] of Object.entries(s))
1381
+ for (const [y, m] of Object.entries(s))
1382
1382
  if (typeof m == "object" && "path" in m) {
1383
1383
  const g = m, x = (_ = G.query(a, g.path)) == null ? void 0 : _[0];
1384
- g.translations && String(x) in g.translations ? h[f] = pe(
1384
+ g.translations && String(x) in g.translations ? h[y] = pe(
1385
1385
  g.translations[String(x)]
1386
- ) : h[f] = pe(x);
1386
+ ) : h[y] = pe(x);
1387
1387
  } else {
1388
1388
  const g = m;
1389
- h[f] = pe((u = G.query(a, g)) == null ? void 0 : u[0]);
1389
+ h[y] = pe((u = G.query(a, g)) == null ? void 0 : u[0]);
1390
1390
  }
1391
1391
  return h;
1392
1392
  } else
@@ -1400,20 +1400,20 @@ const ns = (e) => {
1400
1400
  ) : c > 0 ? Math.ceil(n / c) : 0
1401
1401
  };
1402
1402
  return { items: l, pagination: d };
1403
- }, Ee = ({
1403
+ }, ke = ({
1404
1404
  width: e,
1405
1405
  data: t,
1406
1406
  Chart: s,
1407
1407
  children: r
1408
1408
  }) => e ? /* @__PURE__ */ o.jsx(s, { width: e, height: de, data: t, children: r }) : /* @__PURE__ */ o.jsx(et, { width: "100%", height: de, children: /* @__PURE__ */ o.jsx(s, { data: t, children: r }) }), he = ({ withPadding: e = !1 }) => {
1409
- const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: M.labelColor }, children: s });
1409
+ const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: H.labelColor }, children: s });
1410
1410
  return /* @__PURE__ */ o.jsx(
1411
1411
  Xt,
1412
1412
  {
1413
1413
  formatter: t,
1414
1414
  wrapperStyle: {
1415
- fontSize: M.fontSize,
1416
- fontFamily: M.fontFamily,
1415
+ fontSize: H.fontSize,
1416
+ fontFamily: H.fontFamily,
1417
1417
  padding: e ? "1rem 0" : "0"
1418
1418
  }
1419
1419
  }
@@ -1428,9 +1428,9 @@ const ns = (e) => {
1428
1428
  if (!e || !t || !t.length)
1429
1429
  return null;
1430
1430
  const i = {
1431
- backgroundColor: M.tooltipBg,
1432
- borderRadius: M.tooltipBorderRadius,
1433
- color: M.tooltipColor,
1431
+ backgroundColor: H.tooltipBg,
1432
+ borderRadius: H.tooltipBorderRadius,
1433
+ color: H.tooltipColor,
1434
1434
  padding: "8px 12px",
1435
1435
  border: "1px solid #e5e7eb"
1436
1436
  };
@@ -1454,21 +1454,21 @@ const ns = (e) => {
1454
1454
  dataKey: e,
1455
1455
  hide: t,
1456
1456
  tick: {
1457
- fill: M.labelColor,
1458
- fontSize: M.fontSize
1457
+ fill: H.labelColor,
1458
+ fontSize: H.fontSize
1459
1459
  }
1460
1460
  }
1461
1461
  ), Oe = () => /* @__PURE__ */ o.jsx(
1462
1462
  Qt,
1463
1463
  {
1464
1464
  tick: {
1465
- fill: M.labelColor,
1466
- fontSize: M.fontSize
1465
+ fill: H.labelColor,
1466
+ fontSize: H.fontSize
1467
1467
  }
1468
1468
  }
1469
1469
  ), _s = (e) => {
1470
1470
  const { data: t, xKey: s, yKeys: r, tooltipKey: i, width: l } = e;
1471
- return /* @__PURE__ */ o.jsxs(Ee, { width: l, data: t, Chart: Yt, children: [
1471
+ return /* @__PURE__ */ o.jsxs(ke, { width: l, data: t, Chart: Yt, children: [
1472
1472
  /* @__PURE__ */ o.jsx(Ne, { strokeDasharray: "3 3" }),
1473
1473
  /* @__PURE__ */ o.jsx(Te, { dataKey: s }),
1474
1474
  /* @__PURE__ */ o.jsx(Oe, {}),
@@ -1479,15 +1479,15 @@ const ns = (e) => {
1479
1479
  {
1480
1480
  type: "monotone",
1481
1481
  dataKey: c,
1482
- stroke: H[n % H.length],
1483
- fill: H[n % H.length]
1482
+ stroke: V[n % V.length],
1483
+ fill: V[n % V.length]
1484
1484
  },
1485
1485
  c
1486
1486
  ))
1487
1487
  ] });
1488
1488
  }, us = (e) => {
1489
1489
  const { data: t, yKeys: s, xKey: r, tooltipKey: i, width: l } = e;
1490
- return /* @__PURE__ */ o.jsxs(Ee, { width: l, data: t, Chart: Ft, children: [
1490
+ return /* @__PURE__ */ o.jsxs(ke, { width: l, data: t, Chart: Ft, children: [
1491
1491
  /* @__PURE__ */ o.jsx(Ne, { strokeDasharray: "3 3" }),
1492
1492
  /* @__PURE__ */ o.jsx(Te, { dataKey: r }),
1493
1493
  /* @__PURE__ */ o.jsx(Oe, {}),
@@ -1497,14 +1497,14 @@ const ns = (e) => {
1497
1497
  Pt,
1498
1498
  {
1499
1499
  dataKey: c,
1500
- fill: H[n % H.length]
1500
+ fill: V[n % V.length]
1501
1501
  },
1502
1502
  c
1503
1503
  ))
1504
1504
  ] });
1505
1505
  }, hs = (e) => {
1506
1506
  const { data: t, xKey: s, yKeys: r, tooltipKey: i, width: l } = e;
1507
- return /* @__PURE__ */ o.jsxs(Ee, { width: l, data: t, Chart: en, children: [
1507
+ return /* @__PURE__ */ o.jsxs(ke, { width: l, data: t, Chart: en, children: [
1508
1508
  /* @__PURE__ */ o.jsx(Ne, { strokeDasharray: "3 3" }),
1509
1509
  /* @__PURE__ */ o.jsx(Te, { dataKey: s }),
1510
1510
  /* @__PURE__ */ o.jsx(Oe, {}),
@@ -1515,7 +1515,7 @@ const ns = (e) => {
1515
1515
  {
1516
1516
  type: "monotone",
1517
1517
  dataKey: c,
1518
- stroke: H[n % H.length],
1518
+ stroke: V[n % V.length],
1519
1519
  strokeWidth: 2,
1520
1520
  dot: !1
1521
1521
  },
@@ -1531,14 +1531,14 @@ const ns = (e) => {
1531
1531
  outerRadius: _,
1532
1532
  value: u
1533
1533
  }) => {
1534
- const h = Math.PI / 180, f = 25 + a + (_ - a), m = c + f * Math.cos(-(d ?? 0) * h), g = n + f * Math.sin(-(d ?? 0) * h);
1534
+ const h = Math.PI / 180, y = 25 + a + (_ - a), m = c + y * Math.cos(-(d ?? 0) * h), g = n + y * Math.sin(-(d ?? 0) * h);
1535
1535
  return /* @__PURE__ */ o.jsx(
1536
1536
  "text",
1537
1537
  {
1538
1538
  x: m,
1539
1539
  y: g,
1540
- fill: M.labelColor,
1541
- color: M.labelColor,
1540
+ fill: H.labelColor,
1541
+ color: H.labelColor,
1542
1542
  textAnchor: "middle",
1543
1543
  dominantBaseline: "central",
1544
1544
  children: u
@@ -1559,7 +1559,7 @@ const ns = (e) => {
1559
1559
  children: t.map((c, n) => /* @__PURE__ */ o.jsx(
1560
1560
  an,
1561
1561
  {
1562
- fill: H[n % H.length]
1562
+ fill: V[n % V.length]
1563
1563
  },
1564
1564
  `cell-${n}`
1565
1565
  ))
@@ -1571,7 +1571,7 @@ const ns = (e) => {
1571
1571
  bar: us,
1572
1572
  line: hs,
1573
1573
  pie: fs
1574
- }, H = [
1574
+ }, V = [
1575
1575
  "var(--color-primitive-palette-1-50)",
1576
1576
  "var(--color-primitive-palette-2-50)",
1577
1577
  "var(--color-primitive-palette-3-50)",
@@ -1589,7 +1589,7 @@ const ns = (e) => {
1589
1589
  "var(--color-primitive-palette-15-50)",
1590
1590
  "var(--color-primitive-palette-16-50)",
1591
1591
  "var(--color-primitive-palette-17-50)"
1592
- ], M = {
1592
+ ], H = {
1593
1593
  fontFamily: "Roboto, sans-serif",
1594
1594
  fontSize: 12,
1595
1595
  labelColor: "var(--color-neutral-90)",
@@ -1609,7 +1609,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1609
1609
  children: s
1610
1610
  }) => {
1611
1611
  const r = _e(null), [i, l] = R(0), c = t ?? ct;
1612
- U(() => {
1612
+ M(() => {
1613
1613
  const _ = r.current;
1614
1614
  if (!_)
1615
1615
  return;
@@ -1665,25 +1665,25 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1665
1665
  }
1666
1666
  );
1667
1667
  }, Cs = (e) => {
1668
- const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: l, ...c } = e, n = ms[c.type], { fetchDataSource: d } = K(), [a, _] = R(!1), [u, h] = R([]), f = async () => {
1669
- var x, y;
1668
+ const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: l, ...c } = e, n = ms[c.type], { fetchDataSource: d } = K(), [a, _] = R(!1), [u, h] = R([]), y = async () => {
1669
+ var x, f;
1670
1670
  try {
1671
1671
  _(!0);
1672
- const { jsonPathData: b, mapperData: p } = l, C = Se(
1672
+ const { jsonPathData: b, mapperData: p } = l, C = Ee(
1673
1673
  l,
1674
1674
  1
1675
1675
  ), j = await d(
1676
1676
  C,
1677
1677
  s,
1678
1678
  !1
1679
- ), w = b ? (x = ot(j == null ? void 0 : j.data, b, p)) == null ? void 0 : x.items : (y = j == null ? void 0 : j.data) == null ? void 0 : y.data;
1679
+ ), w = b ? (x = ot(j == null ? void 0 : j.data, b, p)) == null ? void 0 : x.items : (f = j == null ? void 0 : j.data) == null ? void 0 : f.data;
1680
1680
  h(w), _(!1);
1681
1681
  } catch (b) {
1682
1682
  alert(JSON.stringify(b)), _(!1);
1683
1683
  }
1684
1684
  };
1685
- if (U(() => {
1686
- n && (l ? f() : h(c.data));
1685
+ if (M(() => {
1686
+ n && (l ? y() : h(c.data));
1687
1687
  }, []), !n)
1688
1688
  return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
1689
1689
  const m = {
@@ -1711,14 +1711,14 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1711
1711
  ...a
1712
1712
  } = e, _ = {
1713
1713
  ...a
1714
- }, { getNextUI: u } = K(), [h, f] = R(c || !1), { disabled: m } = I(
1714
+ }, { getNextUI: u } = K(), [h, y] = R(c || !1), { disabled: m } = I(
1715
1715
  t,
1716
1716
  d
1717
- ), g = E(() => n && l ? `${l} *` : l ?? "", [l, n]), x = L(async () => {
1717
+ ), g = k(() => n && l ? `${l} *` : l ?? "", [l, n]), x = L(async () => {
1718
1718
  var b;
1719
1719
  try {
1720
1720
  const p = !h;
1721
- f(p);
1721
+ y(p);
1722
1722
  const C = {
1723
1723
  ...(b = N.getState()[t]) == null ? void 0 : b.entries,
1724
1724
  [r]: p
@@ -1742,25 +1742,25 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1742
1742
  } catch (p) {
1743
1743
  console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
1744
1744
  }
1745
- }, [t, s, r, i, h]), y = (_ == null ? void 0 : _.disabled) ?? m;
1745
+ }, [t, s, r, i, h]), f = (_ == null ? void 0 : _.disabled) ?? m;
1746
1746
  return /* @__PURE__ */ o.jsx(
1747
1747
  vt,
1748
1748
  {
1749
1749
  ..._,
1750
1750
  labelRight: g,
1751
1751
  checked: h,
1752
- disabled: y,
1752
+ disabled: f,
1753
1753
  onChange: () => {
1754
- !y && x();
1754
+ !f && x();
1755
1755
  }
1756
1756
  }
1757
1757
  );
1758
- }, Ns = "_codeEditor_1wi2p_1", vs = "_codeEditor_label_1wi2p_4", Ss = "_codeEditor_wrapper_1wi2p_13", ks = "_input_1wi2p_17", Es = "_preview_1wi2p_18", Ts = "_preview_inner_1wi2p_33", F = {
1758
+ }, Ns = "_codeEditor_1wi2p_1", vs = "_codeEditor_label_1wi2p_4", Es = "_codeEditor_wrapper_1wi2p_13", Ss = "_input_1wi2p_17", ks = "_preview_1wi2p_18", Ts = "_preview_inner_1wi2p_33", F = {
1759
1759
  codeEditor: Ns,
1760
1760
  codeEditor_label: vs,
1761
- codeEditor_wrapper: Ss,
1762
- input: ks,
1763
- preview: Es,
1761
+ codeEditor_wrapper: Es,
1762
+ input: Ss,
1763
+ preview: ks,
1764
1764
  preview_inner: Ts
1765
1765
  }, Os = (e) => {
1766
1766
  const {
@@ -1775,16 +1775,16 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1775
1775
  disabled: a,
1776
1776
  showPreview: _,
1777
1777
  height: u = "400px"
1778
- } = e, [h, f] = R(c ?? ""), m = re.useThemeStore((C) => C.theme.mode), { disabled: g } = I(
1778
+ } = e, [h, y] = R(c ?? ""), m = re.useThemeStore((C) => C.theme.mode), { disabled: g } = I(
1779
1779
  t,
1780
1780
  d
1781
- ), x = a ?? g, y = {
1781
+ ), x = a ?? g, f = {
1782
1782
  json: Re(),
1783
1783
  markdown: on(),
1784
1784
  sql: cn(),
1785
1785
  yaml: ln()
1786
- }, b = E(() => n && r ? `${r} *` : r ?? "", [r, n]), p = (C) => {
1787
- f(C);
1786
+ }, b = k(() => n && r ? `${r} *` : r ?? "", [r, n]), p = (C) => {
1787
+ y(C);
1788
1788
  const j = {
1789
1789
  [s]: C
1790
1790
  };
@@ -1800,7 +1800,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1800
1800
  value: h,
1801
1801
  height: u,
1802
1802
  placeholder: l,
1803
- extensions: [y[i] ?? Re()],
1803
+ extensions: [f[i] ?? Re()],
1804
1804
  onChange: (C) => p(C),
1805
1805
  theme: m,
1806
1806
  editable: !x
@@ -1823,17 +1823,17 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1823
1823
  icon: d,
1824
1824
  headerStatusColor: a,
1825
1825
  ..._
1826
- } = e, u = a ? `palette_${a}_50` : void 0, h = S(
1826
+ } = e, u = a ? `palette_${a}_50` : void 0, h = E(
1827
1827
  t,
1828
1828
  s,
1829
1829
  c && c.length > 0 ? c : null
1830
- ), f = S(
1830
+ ), y = E(
1831
1831
  t,
1832
1832
  s,
1833
1833
  n && n.length > 0 ? n : null
1834
- ), m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(T, { children: x }, `data-card-body-${i}-${y}`)) }) : void 0, g = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: f.map((x, y) => /* @__PURE__ */ o.jsx(T, { children: x }, `data-card-top-${i}-${y}`)) }) : void 0;
1834
+ ), m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: h.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `data-card-body-${i}-${f}`)) }) : void 0, g = y && y.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Xe.slotStack, children: y.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `data-card-top-${i}-${f}`)) }) : void 0;
1835
1835
  return /* @__PURE__ */ o.jsx(
1836
- St,
1836
+ Et,
1837
1837
  {
1838
1838
  ..._,
1839
1839
  icon: d,
@@ -1844,7 +1844,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1844
1844
  );
1845
1845
  }, qs = "_dividerNotFront_tze3j_1", Rs = {
1846
1846
  dividerNotFront: qs
1847
- }, Ds = (e) => /* @__PURE__ */ o.jsx(kt, { ...e, className: Rs.dividerNotFront }), Ls = "_drawer_13pxo_1", Is = "_drawerBody_13pxo_5", Bs = "_drawerFooter_13pxo_11", je = {
1847
+ }, Ds = (e) => /* @__PURE__ */ o.jsx(St, { ...e, className: Rs.dividerNotFront }), Ls = "_drawer_13pxo_1", Is = "_drawerBody_13pxo_5", Bs = "_drawerFooter_13pxo_11", je = {
1848
1848
  drawer: Ls,
1849
1849
  drawerBody: Is,
1850
1850
  drawerFooter: Bs
@@ -1857,30 +1857,30 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1857
1857
  footer: l,
1858
1858
  ...c
1859
1859
  }) => {
1860
- const n = N((g) => {
1861
- var x;
1862
- return (x = g[e]) == null ? void 0 : x.isDrawerOpen;
1863
- }), d = N((g) => {
1864
- var x;
1865
- return (x = g[e]) == null ? void 0 : x.isLoading;
1860
+ const n = N((x) => {
1861
+ var f;
1862
+ return (f = x[e]) == null ? void 0 : f.isDrawerOpen;
1863
+ }), d = N((x) => {
1864
+ var f;
1865
+ return (f = x[e]) == null ? void 0 : f.isLoading;
1866
1866
  }), a = n && !d, _ = {
1867
1867
  ...c,
1868
1868
  isOpen: a,
1869
1869
  children: null
1870
1870
  }, u = L(() => {
1871
1871
  ve(e), J(e, !1);
1872
- }, [e]), h = Array.isArray(r) ? S(e, t, r) : r ? /* @__PURE__ */ o.jsx(Ze, { type: "h2", children: r }) : void 0, f = S(e, t, i), m = l ? S(e, t, l) : void 0;
1872
+ }, [e]), h = Array.isArray(r) ? E(e, t, r) : r ? /* @__PURE__ */ o.jsx(Ze, { type: "h2", children: r }) : void 0, y = E(e, t, i), m = l ? E(e, t, l) : void 0;
1873
1873
  return /* @__PURE__ */ o.jsx(
1874
- Et,
1874
+ kt,
1875
1875
  {
1876
1876
  ..._,
1877
1877
  className: je.drawer,
1878
1878
  isOpen: a,
1879
1879
  onClose: u,
1880
- heightGap: 0,
1881
- title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((g, x) => /* @__PURE__ */ o.jsx(T, { children: g }, `drawer-header-${x}`)) : h }) : void 0,
1882
- children: /* @__PURE__ */ o.jsx("section", { className: je.drawerBody, children: f.map((g, x) => /* @__PURE__ */ o.jsx(T, { children: g }, `drawer-body-${x}`)) }),
1883
- footer: m ? /* @__PURE__ */ o.jsx("div", { className: je.drawerFooter, children: m.map((g, x) => /* @__PURE__ */ o.jsx(T, { children: g }, `drawer-footer-${x}`)) }) : void 0
1880
+ heightGap: 50,
1881
+ title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `drawer-header-${f}`)) : h }) : void 0,
1882
+ children: /* @__PURE__ */ o.jsx("section", { className: je.drawerBody, children: y.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `drawer-body-${f}`)) }),
1883
+ footer: m ? /* @__PURE__ */ o.jsx("div", { className: je.drawerFooter, children: m.map((x, f) => /* @__PURE__ */ o.jsx(T, { children: x }, `drawer-footer-${f}`)) }) : void 0
1884
1884
  }
1885
1885
  );
1886
1886
  }, Ks = (e) => {
@@ -1896,7 +1896,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1896
1896
  variant: a,
1897
1897
  leftIcon: _,
1898
1898
  rightIcon: u
1899
- } = e, h = ke(t, s), f = E(
1899
+ } = e, h = Se(t, s), y = k(
1900
1900
  () => n.map((m) => ({
1901
1901
  label: m.content ?? m.label ?? "",
1902
1902
  onClick: () => {
@@ -1916,7 +1916,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1916
1916
  {
1917
1917
  disabled: d,
1918
1918
  variant: a,
1919
- items: f,
1919
+ items: y,
1920
1920
  children: /* @__PURE__ */ o.jsxs(T, { children: [
1921
1921
  _ ? /* @__PURE__ */ o.jsx(
1922
1922
  De,
@@ -1938,10 +1938,10 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1938
1938
  ] })
1939
1939
  }
1940
1940
  );
1941
- }, Ms = "_header_g1eri_1", Us = "_header_content_g1eri_5", Je = {
1942
- header: Ms,
1943
- header_content: Us
1944
- }, Vs = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: P(Je.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Je.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(T, { children: t }, s)) }) }), Hs = (e) => {
1941
+ }, Hs = "_header_g1eri_1", Ms = "_header_content_g1eri_5", Je = {
1942
+ header: Hs,
1943
+ header_content: Ms
1944
+ }, Us = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: P(Je.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Je.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(T, { children: t }, s)) }) }), Vs = (e) => {
1945
1945
  const {
1946
1946
  userFlow: t,
1947
1947
  pageId: s,
@@ -1954,18 +1954,18 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1954
1954
  component: a,
1955
1955
  hash: _,
1956
1956
  ...u
1957
- } = e, { getNextUI: h } = K(), { disabled: f } = I(
1957
+ } = e, { getNextUI: h } = K(), { disabled: y } = I(
1958
1958
  t,
1959
1959
  d
1960
1960
  ), m = i && u ? (() => {
1961
- const { href: y, target: b, download: p, ...C } = u;
1961
+ const { href: f, target: b, download: p, ...C } = u;
1962
1962
  return C;
1963
1963
  })() : u, g = L(async () => {
1964
- var y;
1964
+ var f;
1965
1965
  if (i)
1966
1966
  try {
1967
1967
  const b = {
1968
- ...(y = N.getState()[t]) == null ? void 0 : y.entries,
1968
+ ...(f = N.getState()[t]) == null ? void 0 : f.entries,
1969
1969
  [r]: { status: 200 }
1970
1970
  };
1971
1971
  switch ($(t, b), i) {
@@ -1993,7 +1993,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
1993
1993
  } catch (b) {
1994
1994
  alert(JSON.stringify(b));
1995
1995
  }
1996
- }, [i, h, s, c, r, n, t]), x = m.disabled ?? f;
1996
+ }, [i, h, s, c, r, n, t]), x = m.disabled ?? y;
1997
1997
  return /* @__PURE__ */ o.jsx(
1998
1998
  Ot,
1999
1999
  {
@@ -2016,7 +2016,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2016
2016
  listOrigin: a,
2017
2017
  size: _,
2018
2018
  variant: u
2019
- } = e, h = ke(t, s), f = E(
2019
+ } = e, h = Se(t, s), y = k(
2020
2020
  () => c.map((m) => ({
2021
2021
  icon: m.leftIcon,
2022
2022
  label: m.content ?? m.label ?? "",
@@ -2036,7 +2036,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2036
2036
  return /* @__PURE__ */ o.jsx(
2037
2037
  At,
2038
2038
  {
2039
- items: f,
2039
+ items: y,
2040
2040
  closeOnClick: n,
2041
2041
  disabled: d,
2042
2042
  listOrigin: a,
@@ -2056,27 +2056,27 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2056
2056
  headerStatusColor: c,
2057
2057
  ...n
2058
2058
  }) => {
2059
- const d = N((y) => {
2059
+ const d = N((f) => {
2060
2060
  var b;
2061
- return (b = y[e]) == null ? void 0 : b.isModalOpen;
2062
- }), a = N((y) => {
2061
+ return (b = f[e]) == null ? void 0 : b.isModalOpen;
2062
+ }), a = N((f) => {
2063
2063
  var b;
2064
- return (b = y[e]) == null ? void 0 : b.isLoading;
2064
+ return (b = f[e]) == null ? void 0 : b.isLoading;
2065
2065
  }), _ = d && !a, u = {
2066
2066
  ...n
2067
- }, h = (u == null ? void 0 : u.headerStatusColor) ?? c, f = L(() => {
2067
+ }, h = (u == null ? void 0 : u.headerStatusColor) ?? c, y = L(() => {
2068
2068
  ve(e), ue(e, !1);
2069
- }, [e, s]), m = Array.isArray(r) ? S(e, t, r) : r, g = S(e, t, i), x = S(e, t, l);
2069
+ }, [e, s]), m = Array.isArray(r) ? E(e, t, r) : r, g = E(e, t, i), x = E(e, t, l);
2070
2070
  return /* @__PURE__ */ o.jsx(
2071
2071
  $t,
2072
2072
  {
2073
2073
  ...u,
2074
2074
  headerStatusColor: h,
2075
- header: typeof m == "string" ? m : /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((y, b) => /* @__PURE__ */ o.jsx(T, { children: y }, `modal-header-${b}`)) }),
2076
- children: /* @__PURE__ */ o.jsx("section", { className: Js.modalContent, children: g.map((y, b) => /* @__PURE__ */ o.jsx(T, { children: y }, `modal-body-${b}`)) }),
2077
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, b) => /* @__PURE__ */ o.jsx(T, { children: y }, `modal-footer-${b}`)) }),
2075
+ header: typeof m == "string" ? m : /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((f, b) => /* @__PURE__ */ o.jsx(T, { children: f }, `modal-header-${b}`)) }),
2076
+ children: /* @__PURE__ */ o.jsx("section", { className: Js.modalContent, children: g.map((f, b) => /* @__PURE__ */ o.jsx(T, { children: f }, `modal-body-${b}`)) }),
2077
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((f, b) => /* @__PURE__ */ o.jsx(T, { children: f }, `modal-footer-${b}`)) }),
2078
2078
  open: _,
2079
- onClose: f
2079
+ onClose: y
2080
2080
  }
2081
2081
  );
2082
2082
  }, Qs = ({ userFlow: e, pageId: t }) => {
@@ -2088,7 +2088,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2088
2088
  ...(s == null ? void 0 : s.components) || [],
2089
2089
  ...((l = s == null ? void 0 : s.header) == null ? void 0 : l.components) || [],
2090
2090
  ...((c = s == null ? void 0 : s.body) == null ? void 0 : c.components) || []
2091
- ], i = S(
2091
+ ], i = E(
2092
2092
  e,
2093
2093
  t,
2094
2094
  r
@@ -2150,7 +2150,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2150
2150
  c
2151
2151
  ), h = {
2152
2152
  ...d
2153
- }, f = (h == null ? void 0 : h.disabled) ?? u, m = L(async () => {
2153
+ }, y = (h == null ? void 0 : h.disabled) ?? u, m = L(async () => {
2154
2154
  var g;
2155
2155
  try {
2156
2156
  const x = {
@@ -2159,24 +2159,24 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2159
2159
  };
2160
2160
  switch ($(t, x), i) {
2161
2161
  case "GO_TO_NEXT_UI": {
2162
- const y = await a(
2162
+ const f = await a(
2163
2163
  t,
2164
2164
  s,
2165
2165
  x,
2166
2166
  r
2167
2167
  );
2168
- y != null && y.data && D(t, y == null ? void 0 : y.data);
2168
+ f != null && f.data && D(t, f == null ? void 0 : f.data);
2169
2169
  break;
2170
2170
  }
2171
2171
  case "FETCH_AND_GO_TO_NEXT_UI": {
2172
- const y = await _(
2172
+ const f = await _(
2173
2173
  t,
2174
2174
  s,
2175
2175
  x,
2176
2176
  r,
2177
2177
  l
2178
2178
  );
2179
- y != null && y.data && D(t, y == null ? void 0 : y.data);
2179
+ f != null && f.data && D(t, f == null ? void 0 : f.data);
2180
2180
  break;
2181
2181
  }
2182
2182
  case "CLOSE_MODAL":
@@ -2200,8 +2200,8 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2200
2200
  qt,
2201
2201
  {
2202
2202
  ...h,
2203
- disabled: f,
2204
- onClick: () => !f && (n ?? m)()
2203
+ disabled: y,
2204
+ onClick: () => !y && (n ?? m)()
2205
2205
  }
2206
2206
  );
2207
2207
  }, ea = "_row_1bqj4_1", ta = "_row_column_1bqj4_65", z = {
@@ -2267,14 +2267,14 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2267
2267
  hash: u,
2268
2268
  responseKey: h
2269
2269
  };
2270
- const f = a;
2270
+ const y = a;
2271
2271
  return {
2272
- gap: (f == null ? void 0 : f.gap) ?? "md",
2273
- justifyContent: (f == null ? void 0 : f.justifyContent) ?? "start",
2274
- alignItems: (f == null ? void 0 : f.alignItems) ?? "start",
2275
- items: (f == null ? void 0 : f.items) ?? [],
2276
- hash: (f == null ? void 0 : f.hash) ?? u,
2277
- responseKey: (f == null ? void 0 : f.responseKey) ?? h
2272
+ gap: (y == null ? void 0 : y.gap) ?? "md",
2273
+ justifyContent: (y == null ? void 0 : y.justifyContent) ?? "start",
2274
+ alignItems: (y == null ? void 0 : y.alignItems) ?? "start",
2275
+ items: (y == null ? void 0 : y.items) ?? [],
2276
+ hash: (y == null ? void 0 : y.hash) ?? u,
2277
+ responseKey: (y == null ? void 0 : y.responseKey) ?? h
2278
2278
  };
2279
2279
  }) : [];
2280
2280
  return d.length === 0 ? null : /* @__PURE__ */ o.jsx(
@@ -2287,7 +2287,7 @@ const gs = "_chartScrollViewport_sm5hx_1", bs = "_chartScrollViewport_track_sm5h
2287
2287
  z[`row__align-${n}`]
2288
2288
  ),
2289
2289
  children: d == null ? void 0 : d.map((a, _) => {
2290
- const u = (r == null ? void 0 : r[_]) || `${100 / d.length}%`, h = S(t, s, a.items);
2290
+ const u = (r == null ? void 0 : r[_]) || `${100 / d.length}%`, h = E(t, s, a.items);
2291
2291
  return !h || h.length === 0 ? null : /* @__PURE__ */ o.jsx(
2292
2292
  "div",
2293
2293
  {
@@ -2316,14 +2316,14 @@ function it({
2316
2316
  debounceMs: c
2317
2317
  }) {
2318
2318
  const n = _e(null);
2319
- U(() => () => {
2319
+ M(() => () => {
2320
2320
  n.current !== null && (clearTimeout(n.current), n.current = null);
2321
2321
  }, []);
2322
2322
  const d = L(
2323
2323
  async (_) => {
2324
- var f;
2324
+ var y;
2325
2325
  const u = {
2326
- ...(f = N.getState()[e]) == null ? void 0 : f.entries
2326
+ ...(y = N.getState()[e]) == null ? void 0 : y.entries
2327
2327
  };
2328
2328
  if (_ ? (u[s] = _, $(e, u)) : (delete u[s], hn(e, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2329
2329
  try {
@@ -2403,10 +2403,10 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2403
2403
  }) => {
2404
2404
  const a = {
2405
2405
  ...d
2406
- }, { getNextUI: _, fetchDataSource: u } = K(), [h, f] = R((a == null ? void 0 : a.value) ?? ""), { disabled: m } = I(
2406
+ }, { getNextUI: _, fetchDataSource: u } = K(), [h, y] = R((a == null ? void 0 : a.value) ?? ""), { disabled: m } = I(
2407
2407
  e,
2408
2408
  c
2409
- ), g = (a == null ? void 0 : a.disabled) ?? m, x = E(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), y = E(() => {
2409
+ ), g = (a == null ? void 0 : a.disabled) ?? m, x = k(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), f = k(() => {
2410
2410
  const j = a != null && a.isMulti ? h : [h], w = {};
2411
2411
  return Array.isArray(j) && j.forEach((v) => {
2412
2412
  if (!v) return;
@@ -2422,22 +2422,22 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2422
2422
  isMulti: a == null ? void 0 : a.isMulti,
2423
2423
  debounceMs: n
2424
2424
  }), p = (j) => {
2425
- f(j), b(j);
2425
+ y(j), b(j);
2426
2426
  }, C = async (j, w, { page: v }) => {
2427
2427
  const {
2428
2428
  jsonPathLabel: O,
2429
2429
  jsonPathOptions: A,
2430
2430
  jsonPathValue: q,
2431
2431
  jsonPathPagination: W
2432
- } = i, V = Se(
2432
+ } = i, U = Ee(
2433
2433
  i,
2434
2434
  v,
2435
2435
  j
2436
- ), k = await u(
2437
- V,
2436
+ ), S = await u(
2437
+ U,
2438
2438
  e,
2439
2439
  !1
2440
- ), B = k == null ? void 0 : k.data, te = B ? ra(
2440
+ ), B = S == null ? void 0 : S.data, te = B ? ra(
2441
2441
  B,
2442
2442
  A,
2443
2443
  O,
@@ -2469,7 +2469,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2469
2469
  additional: { page: 1 },
2470
2470
  isOptionDisabled: (j) => {
2471
2471
  const w = JSON.stringify(j == null ? void 0 : j.value), v = JSON.stringify(j == null ? void 0 : j.label);
2472
- return !!(y != null && y[w]) || !!(y != null && y[v]);
2472
+ return !!(f != null && f[w]) || !!(f != null && f[v]);
2473
2473
  },
2474
2474
  debounceTimeout: 350
2475
2475
  }
@@ -2487,10 +2487,10 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2487
2487
  }) => {
2488
2488
  const a = {
2489
2489
  ...d
2490
- }, { getNextUI: _ } = K(), [u, h] = R(a.value || ""), { disabled: f } = I(
2490
+ }, { getNextUI: _ } = K(), [u, h] = R(a.value || ""), { disabled: y } = I(
2491
2491
  e,
2492
2492
  c
2493
- ), m = (a == null ? void 0 : a.disabled) ?? f, g = E(() => 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 = it({
2493
+ ), m = (a == null ? void 0 : a.disabled) ?? y, g = k(() => 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 = it({
2494
2494
  userFlow: e,
2495
2495
  pageId: t,
2496
2496
  responseKey: s,
@@ -2498,7 +2498,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2498
2498
  getNextUI: _,
2499
2499
  isMulti: a == null ? void 0 : a.isMulti,
2500
2500
  debounceMs: n
2501
- }), y = (b) => {
2501
+ }), f = (b) => {
2502
2502
  h(b), x(b);
2503
2503
  };
2504
2504
  return /* @__PURE__ */ o.jsx(
@@ -2509,7 +2509,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2509
2509
  label: g,
2510
2510
  value: u,
2511
2511
  disabled: m,
2512
- onChange: (b) => !m && y(b)
2512
+ onChange: (b) => !m && f(b)
2513
2513
  }
2514
2514
  );
2515
2515
  }, da = (e) => {
@@ -2541,14 +2541,14 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2541
2541
  ...a
2542
2542
  } = e, _ = {
2543
2543
  ...a
2544
- }, { getNextUI: u } = K(), [h, f] = R(c || !1), { disabled: m } = I(
2544
+ }, { getNextUI: u } = K(), [h, y] = R(c || !1), { disabled: m } = I(
2545
2545
  t,
2546
2546
  d
2547
- ), g = (_ == null ? void 0 : _.disabled) ?? m, x = E(() => n && l ? `${l} *` : l ?? "", [l, n]), y = L(async () => {
2547
+ ), g = (_ == null ? void 0 : _.disabled) ?? m, x = k(() => n && l ? `${l} *` : l ?? "", [l, n]), f = L(async () => {
2548
2548
  var b;
2549
2549
  try {
2550
2550
  const p = !h;
2551
- f(p);
2551
+ y(p);
2552
2552
  const C = {
2553
2553
  ...(b = N.getState()[t]) == null ? void 0 : b.entries,
2554
2554
  [r]: p
@@ -2580,7 +2580,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2580
2580
  label: x,
2581
2581
  checked: h,
2582
2582
  disabled: g,
2583
- onChange: () => !g && y()
2583
+ onChange: () => !g && f()
2584
2584
  }
2585
2585
  );
2586
2586
  }, Ca = "_tableSkeleton_3nr9n_1", wa = "_tableArrayPills_3nr9n_7", dt = {
@@ -2602,7 +2602,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2602
2602
  component: r,
2603
2603
  rowData: i
2604
2604
  }) => {
2605
- const { getNextUI: l, fetchAndGetNextUI: c, fetchDataSource: n } = K(), d = S(e, t, [
2605
+ const { getNextUI: l, fetchAndGetNextUI: c, fetchDataSource: n } = K(), d = E(e, t, [
2606
2606
  { ...r }
2607
2607
  ]), a = (d == null ? void 0 : d[0]) || null;
2608
2608
  if (!a) return null;
@@ -2610,20 +2610,20 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2610
2610
  actionType: _,
2611
2611
  responseKey: u,
2612
2612
  dataSource: h
2613
- } = a.props, f = L(async () => {
2613
+ } = a.props, y = L(async () => {
2614
2614
  var m, g, x;
2615
2615
  try {
2616
- const y = {
2616
+ const f = {
2617
2617
  ...(m = N.getState()[e]) == null ? void 0 : m.entries,
2618
2618
  [u]: { status: 200 },
2619
2619
  [s]: [{ ...i }]
2620
2620
  };
2621
- switch ($(e, y), _) {
2621
+ switch ($(e, f), _) {
2622
2622
  case "GO_TO_NEXT_UI": {
2623
2623
  const b = await l(
2624
2624
  e,
2625
2625
  t,
2626
- y,
2626
+ f,
2627
2627
  u
2628
2628
  );
2629
2629
  b != null && b.data && D(e, b == null ? void 0 : b.data);
@@ -2633,7 +2633,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2633
2633
  const b = await c(
2634
2634
  e,
2635
2635
  t,
2636
- y,
2636
+ f,
2637
2637
  u,
2638
2638
  h
2639
2639
  );
@@ -2644,7 +2644,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2644
2644
  const b = await l(
2645
2645
  e,
2646
2646
  t,
2647
- y,
2647
+ f,
2648
2648
  u
2649
2649
  ), p = (g = b == null ? void 0 : b.data) == null ? void 0 : g.content;
2650
2650
  if ((p == null ? void 0 : p.type) !== "fetch") break;
@@ -2674,14 +2674,14 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2674
2674
  console.warn(`Unhandled actionType: ${_}`);
2675
2675
  break;
2676
2676
  }
2677
- } catch (y) {
2678
- alert(JSON.stringify(y));
2677
+ } catch (f) {
2678
+ alert(JSON.stringify(f));
2679
2679
  }
2680
2680
  }, [_, h, t, u, e]);
2681
2681
  return ft(a, {
2682
- onClick: f
2682
+ onClick: y
2683
2683
  });
2684
- }, Sa = () => /* @__PURE__ */ o.jsx("div", { className: dt.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2684
+ }, Ea = () => /* @__PURE__ */ o.jsx("div", { className: dt.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2685
2685
  Fe,
2686
2686
  {
2687
2687
  maxWidth: "100%",
@@ -2689,7 +2689,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2689
2689
  radius: 8
2690
2690
  },
2691
2691
  `tableSkeletonBase${t}`
2692
- )) }), ka = (e, t) => !(t != null && t.length) || !e ? e : e.map((s) => t.some(
2692
+ )) }), Sa = (e, t) => !(t != null && t.length) || !e ? e : e.map((s) => t.some(
2693
2693
  (i) => Array.isArray(s != null && s.accessor ? i[s == null ? void 0 : s.accessor] : void 0)
2694
2694
  ) ? {
2695
2695
  ...s,
@@ -2697,7 +2697,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2697
2697
  const l = s.accessor ? i[s.accessor] : void 0;
2698
2698
  return Array.isArray(l) ? /* @__PURE__ */ o.jsx(Na, { values: l }) : l ?? "";
2699
2699
  }
2700
- } : s), Ea = ({
2700
+ } : s), ka = ({
2701
2701
  userFlow: e,
2702
2702
  pageId: t,
2703
2703
  responseKey: s,
@@ -2708,25 +2708,25 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2708
2708
  pageSize: n,
2709
2709
  ...d
2710
2710
  }) => {
2711
- var q, W, V;
2712
- const { fetchDataSource: a } = K(), [_, u] = R(!1), [h, f] = R(1), [m, g] = R(null), x = !i && Array.isArray(c), y = _e(
2711
+ var q, W, U;
2712
+ const { fetchDataSource: a } = K(), [_, u] = R(!1), [h, y] = R(1), [m, g] = R(null), x = !i && Array.isArray(c), f = _e(
2713
2713
  /* @__PURE__ */ new Map([[1, null]])
2714
- ), b = E(() => {
2714
+ ), b = k(() => {
2715
2715
  if (l != null && l.length)
2716
- return l.map((k, B) => ({
2716
+ return l.map((S, B) => ({
2717
2717
  renderContent: (te) => /* @__PURE__ */ o.jsx(
2718
2718
  va,
2719
2719
  {
2720
2720
  userFlow: e,
2721
2721
  pageId: t,
2722
2722
  tableResponseKey: s,
2723
- component: k,
2723
+ component: S,
2724
2724
  rowData: te
2725
2725
  },
2726
2726
  `tableRowAction${B}`
2727
2727
  )
2728
2728
  }));
2729
- }, [l, e, t, s]), p = async (k = 1) => {
2729
+ }, [l, e, t, s]), p = async (S = 1) => {
2730
2730
  if (!i)
2731
2731
  return;
2732
2732
  const {
@@ -2735,16 +2735,16 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2735
2735
  jsonPathPagination: ye,
2736
2736
  jsonPathCursorPagination: ne
2737
2737
  } = i;
2738
- if (ne && k !== 1 && !y.current.has(k)) {
2739
- f(1), p(1);
2738
+ if (ne && S !== 1 && !f.current.has(S)) {
2739
+ y(1), p(1);
2740
2740
  return;
2741
2741
  }
2742
- ne && k === 1 && (y.current = /* @__PURE__ */ new Map([[1, null]]));
2742
+ ne && S === 1 && (f.current = /* @__PURE__ */ new Map([[1, null]]));
2743
2743
  try {
2744
2744
  u(!0);
2745
- const me = ne ? y.current.get(k) ?? null : null, _t = Se(
2745
+ const me = ne ? f.current.get(S) ?? null : null, _t = Ee(
2746
2746
  i,
2747
- k,
2747
+ S,
2748
2748
  void 0,
2749
2749
  me
2750
2750
  ), Q = await a(
@@ -2764,25 +2764,25 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2764
2764
  Q == null ? void 0 : Q.data,
2765
2765
  ne
2766
2766
  );
2767
- Ae && y.current.set(k + 1, Ae);
2767
+ Ae && f.current.set(S + 1, Ae);
2768
2768
  }
2769
2769
  u(!1);
2770
2770
  } catch (me) {
2771
2771
  console.error("[TableNotFront] fetchData:", me), u(!1);
2772
2772
  }
2773
- }, C = (k) => {
2774
- f(k), p(k);
2773
+ }, C = (S) => {
2774
+ y(S), p(S);
2775
2775
  };
2776
- U(() => {
2776
+ M(() => {
2777
2777
  x || p();
2778
2778
  }, []);
2779
- const j = x ? c : m == null ? void 0 : m.items, w = x && !!n && ((c == null ? void 0 : c.length) ?? 0) > n, v = E(() => {
2779
+ const j = x ? c : m == null ? void 0 : m.items, w = x && !!n && ((c == null ? void 0 : c.length) ?? 0) > n, v = k(() => {
2780
2780
  if (!w || !c || !n)
2781
2781
  return j ?? [];
2782
- const k = (h - 1) * n;
2783
- return c.slice(k, k + n);
2784
- }, [w, c, n, h, j]), O = E(
2785
- () => ka(
2782
+ const S = (h - 1) * n;
2783
+ return c.slice(S, S + n);
2784
+ }, [w, c, n, h, j]), O = k(
2785
+ () => Sa(
2786
2786
  d.columns,
2787
2787
  j
2788
2788
  ),
@@ -2802,10 +2802,10 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2802
2802
  page: h,
2803
2803
  size: n,
2804
2804
  total: c.length,
2805
- onChange: f
2805
+ onChange: y
2806
2806
  }
2807
2807
  )
2808
- ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Sa, {}) : m && ((q = m == null ? void 0 : m.items) == null ? void 0 : q.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2808
+ ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Ea, {}) : m && ((q = m == null ? void 0 : m.items) == null ? void 0 : q.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2809
2809
  /* @__PURE__ */ o.jsx($e, { ...A }),
2810
2810
  (m == null ? void 0 : m.pagination) && ((W = m == null ? void 0 : m.pagination) == null ? void 0 : W.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2811
2811
  qe,
@@ -2813,7 +2813,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2813
2813
  classname: { global: "row__end" },
2814
2814
  page: h,
2815
2815
  size: m == null ? void 0 : m.pagination.size,
2816
- total: (V = m == null ? void 0 : m.pagination) == null ? void 0 : V.total,
2816
+ total: (U = m == null ? void 0 : m.pagination) == null ? void 0 : U.total,
2817
2817
  onChange: C
2818
2818
  }
2819
2819
  )
@@ -2821,7 +2821,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2821
2821
  }, Ta = "_tabsPanel_kvslb_1", Oa = {
2822
2822
  tabsPanel: Ta
2823
2823
  }, Aa = ({ userFlow: e, pageId: t, components: s }) => {
2824
- const r = S(e, t, s);
2824
+ const r = E(e, t, s);
2825
2825
  return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: Oa.tabsPanel, children: r.map((i, l) => /* @__PURE__ */ o.jsx(T, { children: i }, `tabs-panel-${l}`)) }) : null;
2826
2826
  }, $a = ({
2827
2827
  userFlow: e,
@@ -2876,12 +2876,12 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2876
2876
  }, [_, u] = R((a == null ? void 0 : a.value) ?? ""), { disabled: h } = I(
2877
2877
  t,
2878
2878
  n
2879
- ), f = (a == null ? void 0 : a.disabled) ?? h, m = E(() => c && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = (x) => {
2879
+ ), y = (a == null ? void 0 : a.disabled) ?? h, m = k(() => c && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = (x) => {
2880
2880
  var b;
2881
- const y = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
2882
- u(y), $(t, { [l]: y });
2881
+ const f = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
2882
+ u(f), $(t, { [l]: f });
2883
2883
  };
2884
- return U(() => {
2884
+ return M(() => {
2885
2885
  u((a == null ? void 0 : a.value) ?? "");
2886
2886
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
2887
2887
  Bt,
@@ -2889,8 +2889,8 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2889
2889
  ...a,
2890
2890
  label: m,
2891
2891
  value: _,
2892
- disabled: f,
2893
- onChange: (x) => !f && g(x)
2892
+ disabled: y,
2893
+ onChange: (x) => !y && g(x)
2894
2894
  }
2895
2895
  );
2896
2896
  }, Ra = "_textFieldNotFront_1n8fy_1", Da = {
@@ -2910,16 +2910,16 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2910
2910
  }, [_, u] = R((a == null ? void 0 : a.value) ?? ""), { disabled: h } = I(
2911
2911
  t,
2912
2912
  n
2913
- ), f = (a == null ? void 0 : a.disabled) ?? h, m = E(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = (x) => {
2913
+ ), y = (a == null ? void 0 : a.disabled) ?? h, m = k(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = (x) => {
2914
2914
  var p;
2915
- const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2916
- u(y);
2915
+ const f = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2916
+ u(f);
2917
2917
  const b = {
2918
- [l]: y
2918
+ [l]: f
2919
2919
  };
2920
2920
  $(t, b);
2921
2921
  };
2922
- return U(() => {
2922
+ return M(() => {
2923
2923
  u((a == null ? void 0 : a.value) ?? "");
2924
2924
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
2925
2925
  Gt,
@@ -2929,8 +2929,8 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2929
2929
  allowClear: !1,
2930
2930
  label: m,
2931
2931
  value: _,
2932
- disabled: f,
2933
- onChange: (x) => !f && g(x)
2932
+ disabled: y,
2933
+ onChange: (x) => !y && g(x)
2934
2934
  }
2935
2935
  );
2936
2936
  }, Ia = ({
@@ -2957,7 +2957,7 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2957
2957
  console.error("Error in toast action:", d), alert(JSON.stringify(d));
2958
2958
  }
2959
2959
  }, [l, t, s, e, c]);
2960
- return U(() => {
2960
+ return M(() => {
2961
2961
  ({
2962
2962
  info: se.info,
2963
2963
  error: se.error,
@@ -2984,11 +2984,11 @@ const sa = /\{([^}]+)\}/g, aa = (e, t) => {
2984
2984
  placement: d,
2985
2985
  notShowArrow: a,
2986
2986
  visible: _
2987
- } = e, u = S(
2987
+ } = e, u = E(
2988
2988
  t,
2989
2989
  s,
2990
2990
  c != null && c.length ? c : null
2991
- ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Qe.tooltipNotFront_content, children: u.map((f, m) => /* @__PURE__ */ o.jsx(T, { children: f }, `tooltip-${i}-${m}`)) }) : null;
2991
+ ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Qe.tooltipNotFront_content, children: u.map((y, m) => /* @__PURE__ */ o.jsx(T, { children: y }, `tooltip-${i}-${m}`)) }) : null;
2992
2992
  return /* @__PURE__ */ o.jsx(
2993
2993
  Kt,
2994
2994
  {
@@ -3018,7 +3018,7 @@ function rr({
3018
3018
  r
3019
3019
  ] });
3020
3020
  }
3021
- const Ma = { api: "", headers: {} }, Ua = ({
3021
+ const Ha = { api: "", headers: {} }, Ma = ({
3022
3022
  userFlow: e,
3023
3023
  components: t,
3024
3024
  hash: s,
@@ -3027,31 +3027,31 @@ const Ma = { api: "", headers: {} }, Ua = ({
3027
3027
  const i = s ?? `${e}-page`;
3028
3028
  R(() => {
3029
3029
  var d, a;
3030
- return (a = (d = N.getState()[e]) == null ? void 0 : d.pages) != null && a[i] || ce(e, r ?? Ma, {
3030
+ return (a = (d = N.getState()[e]) == null ? void 0 : d.pages) != null && a[i] || ce(e, r ?? Ha, {
3031
3031
  type: "page",
3032
3032
  hash: i,
3033
3033
  body: { components: t }
3034
3034
  }), null;
3035
3035
  });
3036
- const l = S(e, i, t);
3036
+ const l = E(e, i, t);
3037
3037
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: l });
3038
3038
  };
3039
- function Va(e) {
3039
+ function Ua(e) {
3040
3040
  if (e == null || typeof e != "object" || !("components" in e) || !Array.isArray(e.components))
3041
3041
  throw new Error(
3042
3042
  "[renderNotFront] payload.display must be an object with a `components` array"
3043
3043
  );
3044
3044
  return e.components;
3045
3045
  }
3046
- const Ha = ({ payload: e, userFlow: t }) => {
3047
- const s = Va(e.display), r = Ua({
3046
+ const Va = ({ payload: e, userFlow: t }) => {
3047
+ const s = Ua(e.display), r = Ma({
3048
3048
  userFlow: t,
3049
3049
  hash: e.id,
3050
3050
  components: s
3051
3051
  });
3052
3052
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: r });
3053
- }, or = Ha, Ye = (e, t, s, r, i) => {
3054
- const l = S(
3053
+ }, or = Va, Ye = (e, t, s, r, i) => {
3054
+ const l = E(
3055
3055
  e,
3056
3056
  t,
3057
3057
  (r == null ? void 0 : r.components) || null,
@@ -3069,7 +3069,7 @@ const Ha = ({ payload: e, userFlow: t }) => {
3069
3069
  );
3070
3070
  case "header":
3071
3071
  return /* @__PURE__ */ o.jsx(
3072
- Vs,
3072
+ Us,
3073
3073
  {
3074
3074
  ...r,
3075
3075
  components: l || []
@@ -3080,9 +3080,9 @@ const Ha = ({ payload: e, userFlow: t }) => {
3080
3080
  return null;
3081
3081
  }
3082
3082
  }, za = (e, t, s, r) => {
3083
- var h, f, m;
3083
+ var h, y, m;
3084
3084
  const [i, l] = R(!1), c = N((g) => g), n = (h = c[e]) == null ? void 0 : h.currentPageId;
3085
- U(() => {
3085
+ M(() => {
3086
3086
  if (typeof window > "u") return;
3087
3087
  const g = new URL(window.location.href), x = g.searchParams.get("sessionId");
3088
3088
  x && (sessionStorage.setItem("sessionId", x), g.searchParams.delete("sessionId"), window.history.replaceState({}, "", g.toString()));
@@ -3091,7 +3091,7 @@ const Ha = ({ payload: e, userFlow: t }) => {
3091
3091
  e,
3092
3092
  n,
3093
3093
  "header",
3094
- ((f = c[e].pages[n].page) == null ? void 0 : f.header) || null,
3094
+ ((y = c[e].pages[n].page) == null ? void 0 : y.header) || null,
3095
3095
  r
3096
3096
  ) : null, a = n ? Ye(
3097
3097
  e,
@@ -3099,34 +3099,34 @@ const Ha = ({ payload: e, userFlow: t }) => {
3099
3099
  "body",
3100
3100
  ((m = c[e].pages[n].page) == null ? void 0 : m.body) || null,
3101
3101
  r
3102
- ) : null, _ = E(() => {
3102
+ ) : null, _ = k(() => {
3103
3103
  var g;
3104
3104
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3105
- ((g = c[e]) == null ? void 0 : g.isLoading) && /* @__PURE__ */ o.jsx(Mt, {}),
3105
+ ((g = c[e]) == null ? void 0 : g.isLoading) && /* @__PURE__ */ o.jsx(Ht, {}),
3106
3106
  d,
3107
3107
  a,
3108
3108
  n && /* @__PURE__ */ o.jsx(Qs, { userFlow: e, pageId: n }),
3109
- c[e] && /* @__PURE__ */ o.jsx(Ut, {})
3109
+ c[e] && /* @__PURE__ */ o.jsx(Mt, {})
3110
3110
  ] });
3111
3111
  }, [d, a, n, e]), u = async () => {
3112
3112
  try {
3113
3113
  const g = await at(
3114
3114
  t,
3115
3115
  e
3116
- ), x = g == null ? void 0 : g.data, y = x == null ? void 0 : x.content;
3117
- (g == null ? void 0 : g.status) === 200 ? ce(e, t, y, x == null ? void 0 : x.sessionState) : l(!0);
3116
+ ), x = g == null ? void 0 : g.data, f = x == null ? void 0 : x.content;
3117
+ (g == null ? void 0 : g.status) === 200 ? ce(e, t, f, x == null ? void 0 : x.sessionState) : l(!0);
3118
3118
  } catch (g) {
3119
3119
  console.error("[not-page]: API call failed", g), l(!0);
3120
3120
  }
3121
3121
  };
3122
- return U(() => {
3122
+ return M(() => {
3123
3123
  t != null && t.api && !s && e ? u() : !(t != null && t.api) && s && e || t != null && t.api && s && e ? ce(e, t, s) : (!(t != null && t.api) && !s || !e) && (l(!0), console.error(
3124
3124
  "[not-page]: API call failed",
3125
3125
  "not api config",
3126
3126
  "not userFlow"
3127
3127
  ));
3128
- const g = "avocado-theme-mode-changed", x = (y) => {
3129
- const b = y.detail;
3128
+ const g = "avocado-theme-mode-changed", x = (f) => {
3129
+ const b = f.detail;
3130
3130
  re.setThemeMode(b);
3131
3131
  };
3132
3132
  return window.addEventListener(g, x), () => {
@@ -3137,12 +3137,12 @@ const Ha = ({ payload: e, userFlow: t }) => {
3137
3137
  export {
3138
3138
  Cs as Chart,
3139
3139
  rr as NotFrontPage,
3140
- Ha as RenderNotFront,
3140
+ Va as RenderNotFront,
3141
3141
  na as Row,
3142
- Va as extractNotFrontComponents,
3142
+ Ua as extractNotFrontComponents,
3143
3143
  pn as heading,
3144
3144
  or as renderNotFront,
3145
3145
  jn as text,
3146
- Ua as useNotFrontFragment,
3146
+ Ma as useNotFrontFragment,
3147
3147
  za as usePage
3148
3148
  };