@foris/avocado-not-front 8.7.3 → 8.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  import P from "axios";
2
2
  import { create as an } from "zustand";
3
3
  import cn, { useMemo as T, useState as S, useCallback as k, Fragment as R, useEffect as X, useRef as ct, useLayoutEffect as ln, cloneElement as dn } from "react";
4
- import { Heading as De, Text as Ie, Accordion as un, ThemeStore as bt, Box as _n, RadioButton as hn, Stepper as fn, SegmentedProgress as mn, Breadcrumbs as gn, Button as yn, CardAccordion as xn, Card as pn, CardNotification as Nt, chartColors as B, BarChart as bn, Donut as jn, LineChart as Cn, SkeletonBase as $e, Checkbox as wn, PreviewerMarkdown as Le, DataCard as qe, Divider as Nn, Drawer as En, FileUpload as vn, DropdownButton as Tn, HeaderNavigation as Sn, Link as An, Menu as kn, Modal as On, Pill as Gt, RoundButton as Rn, SelectPagination as Dn, Select as In, Switch as $n, Pager as Lt, Table as Ln, Tabs as qn, Textarea as Bn, TextField as Hn, toast as ft, Tooltip as Un, ContextualNavigation as Mn, Loading as Gn, Toaster as Vn } from "@foris/avocado-suite";
4
+ import { Heading as De, Text as Ie, Accordion as un, ThemeStore as bt, Box as _n, RadioButton as hn, Stepper as fn, SegmentedProgress as mn, Breadcrumbs as gn, Button as yn, CardAccordion as xn, Card as pn, CardNotification as wt, chartColors as B, BarChart as bn, Donut as jn, LineChart as Cn, SkeletonBase as $e, Checkbox as Nn, PreviewerMarkdown as Le, DataCard as qe, Divider as wn, Drawer as En, FileUpload as vn, DropdownButton as Tn, HeaderNavigation as Sn, Link as An, Menu as kn, Modal as On, Pill as Gt, RoundButton as Rn, SelectPagination as Dn, Select as In, Switch as $n, Pager as Lt, Table as Ln, Tabs as qn, Textarea as Bn, TextField as Hn, toast as ft, Tooltip as Un, ContextualNavigation as Mn, Loading as Gn, Toaster as Vn } from "@foris/avocado-suite";
5
5
  import { ChatPanel as Kn, PromptCodeEditor as zn, SummaryCard as Xn } from "@foris/ai-agent";
6
6
  import $ from "jsonpath";
7
7
  import { ResponsiveContainer as Be, Legend as Jn, Tooltip as Wn, XAxis as Yn, YAxis as Qn, AreaChart as Zn, CartesianGrid as At, Area as He, ComposedChart as Pn, Bar as Jt, Line as Fn, BarChart as Ue, PieChart as tr, Pie as er, Cell as nr } from "recharts";
@@ -58,7 +58,7 @@ const yt = /* @__PURE__ */ new Map(), Et = /* @__PURE__ */ new WeakMap(), Me = (
58
58
  t && sessionStorage.setItem(Yt, t);
59
59
  }, pc = () => {
60
60
  sessionStorage.removeItem(Yt);
61
- }, v = an(() => ({})), wt = (t, e, n, r, o) => Wt(t, n, () => {
61
+ }, v = an(() => ({})), Nt = (t, e, n, r, o) => Wt(t, n, () => {
62
62
  Qt(o);
63
63
  const a = n == null ? void 0 : n.hash, c = r && Object.keys(r).length > 0 ? { ...r } : {};
64
64
  v.setState((s) => {
@@ -324,11 +324,11 @@ function Cr() {
324
324
  return mt.Fragment = n, mt.jsx = c, mt.jsxs = c, mt;
325
325
  }
326
326
  var je;
327
- function wr() {
327
+ function Nr() {
328
328
  return je || (je = 1, Bt.exports = Cr()), Bt.exports;
329
329
  }
330
- var l = wr();
331
- const Nr = (t) => {
330
+ var l = Nr();
331
+ const wr = (t) => {
332
332
  if (!(t != null && t.content)) return null;
333
333
  const e = {
334
334
  ...t,
@@ -383,10 +383,10 @@ const Nr = (t) => {
383
383
  dataCard: (s) => /* @__PURE__ */ l.jsx(jo, { ...s, userFlow: t, pageId: e }),
384
384
  checkbox: (s) => /* @__PURE__ */ l.jsx(ao, { ...s, userFlow: t, pageId: e }),
385
385
  code: (s) => /* @__PURE__ */ l.jsx(fo, { ...s, userFlow: t, pageId: e }),
386
- divider: (s) => /* @__PURE__ */ l.jsx(No, { ...s }),
386
+ divider: (s) => /* @__PURE__ */ l.jsx(wo, { ...s }),
387
387
  drawer: (s) => /* @__PURE__ */ l.jsx(Oo, { ...s, userFlow: t, pageId: e }),
388
388
  fileUpload: (s) => /* @__PURE__ */ l.jsx(Do, { ...s, userFlow: t, pageId: e }),
389
- heading: (s) => Nr(s),
389
+ heading: (s) => wr(s),
390
390
  headerNavigation: (s) => /* @__PURE__ */ l.jsx(
391
391
  Qe,
392
392
  {
@@ -867,7 +867,7 @@ const H = () => {
867
867
  a
868
868
  )
869
869
  };
870
- }, Mr = "_accordion_1ri2t_1", Gr = "_accordionBody_1ri2t_8", we = {
870
+ }, Mr = "_accordion_1ri2t_1", Gr = "_accordionBody_1ri2t_8", Ne = {
871
871
  accordion: Mr,
872
872
  accordionBody: Gr
873
873
  }, Vr = (t) => {
@@ -886,38 +886,38 @@ const H = () => {
886
886
  e,
887
887
  o
888
888
  ), f = A(e, n, s), m = c ? A(e, n, c) : void 0, y = a ? A(e, n, a) : void 0, g = k(
889
- async (p) => {
890
- var N;
889
+ async (b) => {
890
+ var w;
891
891
  try {
892
- const b = p.target.checked;
893
- _(b);
894
- const w = {
895
- ...(N = v.getState()[e]) == null ? void 0 : N.entries,
896
- [r]: b
892
+ const p = b.target.checked;
893
+ _(p);
894
+ const N = {
895
+ ...(w = v.getState()[e]) == null ? void 0 : w.entries,
896
+ [r]: p
897
897
  };
898
- if (L(e, w), d.actionType === "GO_TO_NEXT_UI") {
898
+ if (L(e, N), d.actionType === "GO_TO_NEXT_UI") {
899
899
  const C = await i(
900
900
  e,
901
901
  n,
902
- w,
902
+ N,
903
903
  r
904
904
  );
905
905
  C != null && C.data && q(e, C == null ? void 0 : C.data);
906
906
  }
907
- } catch (b) {
908
- console.error("Error in accordion checkbox action:", b), alert(JSON.stringify(b));
907
+ } catch (p) {
908
+ console.error("Error in accordion checkbox action:", p), alert(JSON.stringify(p));
909
909
  }
910
910
  },
911
911
  [e, n, r, d.actionType, i]
912
912
  ), x = d.disabled || h, j = {
913
913
  ...d,
914
- className: we.accordion,
914
+ className: Ne.accordion,
915
915
  disabled: x,
916
916
  checkboxChecked: u,
917
917
  onChanceCheckbox: d.hasCheckbox ? g : void 0,
918
- actionContent: m ? /* @__PURE__ */ l.jsx(l.Fragment, { children: m.map((p, N) => /* @__PURE__ */ l.jsx(R, { children: p }, `accordion-action-${N}`)) }) : void 0,
919
- customContent: y ? /* @__PURE__ */ l.jsx(l.Fragment, { children: y.map((p, N) => /* @__PURE__ */ l.jsx(R, { children: p }, `accordion-custom-${N}`)) }) : void 0,
920
- children: f ? /* @__PURE__ */ l.jsx("section", { className: we.accordionBody, children: f.map((p, N) => /* @__PURE__ */ l.jsx(R, { children: p }, `accordion-child-${N}`)) }) : void 0
918
+ actionContent: m ? /* @__PURE__ */ l.jsx(l.Fragment, { children: m.map((b, w) => /* @__PURE__ */ l.jsx(R, { children: b }, `accordion-action-${w}`)) }) : void 0,
919
+ customContent: y ? /* @__PURE__ */ l.jsx(l.Fragment, { children: y.map((b, w) => /* @__PURE__ */ l.jsx(R, { children: b }, `accordion-custom-${w}`)) }) : void 0,
920
+ children: f ? /* @__PURE__ */ l.jsx("section", { className: Ne.accordionBody, children: f.map((b, w) => /* @__PURE__ */ l.jsx(R, { children: b }, `accordion-child-${w}`)) }) : void 0
921
921
  };
922
922
  return /* @__PURE__ */ l.jsx(un, { ...j });
923
923
  }, Kr = (t) => {
@@ -976,7 +976,7 @@ const H = () => {
976
976
  inputLabel: d,
977
977
  inputPlaceholder: i,
978
978
  codeBlockLabel: u
979
- } = t, _ = bt.useThemeStore((p) => p.theme.mode), [h, f] = S(
979
+ } = t, _ = bt.useThemeStore((b) => b.theme.mode), [h, f] = S(
980
980
  r || ""
981
981
  ), { disabled: m } = D(
982
982
  e,
@@ -986,12 +986,12 @@ const H = () => {
986
986
  method: (s == null ? void 0 : s.method) || "post",
987
987
  headers: s == null ? void 0 : s.headers,
988
988
  body: s == null ? void 0 : s.data
989
- }, j = (p) => {
990
- f(p);
991
- const N = {
992
- [n]: p
989
+ }, j = (b) => {
990
+ f(b);
991
+ const w = {
992
+ [n]: b
993
993
  };
994
- L(e, N);
994
+ L(e, w);
995
995
  };
996
996
  return X(() => {
997
997
  r !== void 0 && r !== h && f(r);
@@ -1049,9 +1049,9 @@ var Ht = { exports: {} };
1049
1049
  Licensed under the MIT License (MIT), see
1050
1050
  http://jedwatson.github.io/classnames
1051
1051
  */
1052
- var Ne;
1052
+ var we;
1053
1053
  function Zr() {
1054
- return Ne || (Ne = 1, (function(t) {
1054
+ return we || (we = 1, (function(t) {
1055
1055
  (function() {
1056
1056
  var e = {}.hasOwnProperty;
1057
1057
  function n() {
@@ -1127,31 +1127,31 @@ const Y = /* @__PURE__ */ jr(Pr), Fr = "_body_6n5z9_1", ts = "_body__embedded_6n
1127
1127
  e,
1128
1128
  d
1129
1129
  ), m = v(
1130
- (p) => {
1131
- var N, b;
1132
- return (b = (N = p[e]) == null ? void 0 : N.entries) == null ? void 0 : b[r];
1130
+ (b) => {
1131
+ var w, p;
1132
+ return (p = (w = b[e]) == null ? void 0 : w.entries) == null ? void 0 : p[r];
1133
1133
  }
1134
1134
  ), y = m != null ? String(m) : a ?? "", g = f, x = T(() => o ? c ? `${o} *` : o : null, [o, c]), j = k(
1135
- async (p) => {
1136
- var N;
1135
+ async (b) => {
1136
+ var w;
1137
1137
  if (!g)
1138
1138
  try {
1139
- const b = {
1140
- ...(N = v.getState()[e]) == null ? void 0 : N.entries,
1141
- [r]: p
1139
+ const p = {
1140
+ ...(w = v.getState()[e]) == null ? void 0 : w.entries,
1141
+ [r]: b
1142
1142
  };
1143
- if (L(e, b), s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
1143
+ if (L(e, p), s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
1144
1144
  const E = await h(
1145
1145
  e,
1146
1146
  n,
1147
- b,
1147
+ p,
1148
1148
  r,
1149
1149
  s === "GO_TO_NEXT_UI"
1150
1150
  );
1151
1151
  E != null && E.data && q(e, E == null ? void 0 : E.data);
1152
1152
  }
1153
- } catch (b) {
1154
- alert(JSON.stringify(b));
1153
+ } catch (p) {
1154
+ alert(JSON.stringify(p));
1155
1155
  }
1156
1156
  },
1157
1157
  [
@@ -1179,19 +1179,19 @@ const Y = /* @__PURE__ */ jr(Pr), Fr = "_body_6n5z9_1", ts = "_body__embedded_6n
1179
1179
  ot.options,
1180
1180
  _ === "column" ? ot.optionsColumn : ot.optionsRow
1181
1181
  ),
1182
- children: u.map((p) => /* @__PURE__ */ l.jsx(
1182
+ children: u.map((b) => /* @__PURE__ */ l.jsx(
1183
1183
  hn,
1184
1184
  {
1185
1185
  name: r,
1186
- value: p.value,
1187
- checked: y === p.value,
1188
- disabled: g || p.disabled,
1189
- labelRight: p.label,
1186
+ value: b.value,
1187
+ checked: y === b.value,
1188
+ disabled: g || b.disabled,
1189
+ labelRight: b.label,
1190
1190
  onChange: () => {
1191
- j(p.value);
1191
+ j(b.value);
1192
1192
  }
1193
1193
  },
1194
- p.value
1194
+ b.value
1195
1195
  ))
1196
1196
  }
1197
1197
  )
@@ -1365,11 +1365,11 @@ const gs = (t) => {
1365
1365
  ), m = {
1366
1366
  ..._,
1367
1367
  children: c ?? a
1368
- }, y = (m == null ? void 0 : m.disabled) ?? f, [g, x] = S(!1), j = ct(!1), p = k(async () => {
1368
+ }, y = (m == null ? void 0 : m.disabled) ?? f, [g, x] = S(!1), j = ct(!1), b = k(async () => {
1369
1369
  if (j.current)
1370
1370
  return;
1371
- const N = o === "FETCH_DATA_SOURCE";
1372
- N && (j.current = !0, x(!0));
1371
+ const w = o === "FETCH_DATA_SOURCE";
1372
+ w && (j.current = !0, x(!0));
1373
1373
  try {
1374
1374
  await h({
1375
1375
  responseKey: r,
@@ -1378,10 +1378,10 @@ const gs = (t) => {
1378
1378
  redirectUrl: d,
1379
1379
  dependencies: i
1380
1380
  });
1381
- } catch (b) {
1382
- console.error("[ButtonNotFront] Action failed:", b);
1381
+ } catch (p) {
1382
+ console.error("[ButtonNotFront] Action failed:", p);
1383
1383
  } finally {
1384
- N && (j.current = !1, x(!1));
1384
+ w && (j.current = !1, x(!1));
1385
1385
  }
1386
1386
  }, [
1387
1387
  o,
@@ -1397,7 +1397,7 @@ const gs = (t) => {
1397
1397
  ...m,
1398
1398
  loading: m.loading || g,
1399
1399
  disabled: y,
1400
- onClick: () => !y && !g && (u ?? p)()
1400
+ onClick: () => !y && !g && (u ?? b)()
1401
1401
  }
1402
1402
  );
1403
1403
  }, ys = "_slotStack_12u4t_5", zt = {
@@ -1454,16 +1454,16 @@ const gs = (t) => {
1454
1454
  } = t, { getNextUI: f, fetchDataSource: m, fetchAndGetNextUI: y, runGetDataSource: g } = H(), { disabled: x } = D(
1455
1455
  e,
1456
1456
  h
1457
- ), j = d ?? x, p = A(
1457
+ ), j = d ?? x, b = A(
1458
1458
  e,
1459
1459
  n,
1460
1460
  c && c.length > 0 ? c : null
1461
- ), N = p && p.length > 0 ? /* @__PURE__ */ l.jsx("div", { className: ve.slotStack, children: p.map((w, C) => /* @__PURE__ */ l.jsx(R, { children: w }, `card-body-${o}-${C}`)) }) : null, b = k(async () => {
1462
- var w;
1461
+ ), w = b && b.length > 0 ? /* @__PURE__ */ l.jsx("div", { className: ve.slotStack, children: b.map((N, C) => /* @__PURE__ */ l.jsx(R, { children: N }, `card-body-${o}-${C}`)) }) : null, p = k(async () => {
1462
+ var N;
1463
1463
  if (!(!i || j))
1464
1464
  try {
1465
1465
  const C = {
1466
- ...(w = v.getState()[e]) == null ? void 0 : w.entries,
1466
+ ...(N = v.getState()[e]) == null ? void 0 : N.entries,
1467
1467
  [a]: { status: 200 }
1468
1468
  };
1469
1469
  switch (L(e, C), i) {
@@ -1536,8 +1536,8 @@ const gs = (t) => {
1536
1536
  className: ve.cardNotFront,
1537
1537
  colorId: s,
1538
1538
  disabled: j,
1539
- onClick: i && !j ? () => void b() : void 0,
1540
- children: N
1539
+ onClick: i && !j ? () => void p() : void 0,
1540
+ children: w
1541
1541
  }
1542
1542
  );
1543
1543
  }, Cs = (t) => {
@@ -1559,8 +1559,8 @@ const gs = (t) => {
1559
1559
  return u && u.length > 0 ? _ = /* @__PURE__ */ l.jsxs("div", { className: zt.slotStack, children: [
1560
1560
  s ? /* @__PURE__ */ l.jsx(Ie, { type: "sm", children: s }) : null,
1561
1561
  u.map((h, f) => /* @__PURE__ */ l.jsx(R, { children: h }, `card-notification-body-${o}-${f}`))
1562
- ] }) : _ = (typeof c == "string" ? c : void 0) ?? s, /* @__PURE__ */ l.jsx(Nt, { ...d, children: _ });
1563
- }, Mt = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, ws = (t, e) => {
1562
+ ] }) : _ = (typeof c == "string" ? c : void 0) ?? s, /* @__PURE__ */ l.jsx(wt, { ...d, children: _ });
1563
+ }, Mt = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, Ns = (t, e) => {
1564
1564
  if (!e || t == null)
1565
1565
  return null;
1566
1566
  const { extractionJsonPath: n, injectionJsonPath: r } = e, o = $.value(t, n);
@@ -1627,7 +1627,7 @@ const gs = (t) => {
1627
1627
  }
1628
1628
  }
1629
1629
  );
1630
- }, Ns = ({
1630
+ }, ws = ({
1631
1631
  active: t,
1632
1632
  payload: e,
1633
1633
  label: n,
@@ -1666,7 +1666,7 @@ const gs = (t) => {
1666
1666
  {
1667
1667
  defaultIndex: n,
1668
1668
  content: (r) => /* @__PURE__ */ l.jsx(
1669
- Ns,
1669
+ ws,
1670
1670
  {
1671
1671
  ...r,
1672
1672
  tooltipKey: t,
@@ -2066,7 +2066,7 @@ const zs = (t) => {
2066
2066
  tooltipBg: "#fff",
2067
2067
  tooltipColor: "#000",
2068
2068
  tooltipBorderRadius: "4px"
2069
- }, eo = "_chartScrollViewport_9i342_1", no = "_chartScrollViewport_track_9i342_30", Te = {
2069
+ }, eo = "_chartScrollViewport_1m1xh_1", no = "_chartScrollViewport_track_1m1xh_30", Te = {
2070
2070
  chartScrollViewport: eo,
2071
2071
  chartScrollViewport_track: no
2072
2072
  }, ro = "Scrollable chart area", so = ({
@@ -2137,15 +2137,15 @@ const zs = (t) => {
2137
2137
  var g, x;
2138
2138
  try {
2139
2139
  u(!0);
2140
- const { jsonPathData: j, mapperData: p } = a, N = te(
2140
+ const { jsonPathData: j, mapperData: b } = a, w = te(
2141
2141
  a,
2142
2142
  1
2143
- ), b = await d(
2144
- N,
2143
+ ), p = await d(
2144
+ w,
2145
2145
  n,
2146
2146
  !1
2147
- ), w = j ? (g = Je(b == null ? void 0 : b.data, j, p)) == null ? void 0 : g.items : (x = b == null ? void 0 : b.data) == null ? void 0 : x.data;
2148
- h(w), u(!1);
2147
+ ), N = j ? (g = Je(p == null ? void 0 : p.data, j, b)) == null ? void 0 : g.items : (x = p == null ? void 0 : p.data) == null ? void 0 : x.data;
2148
+ h(N), u(!1);
2149
2149
  } catch (j) {
2150
2150
  alert(JSON.stringify(j)), u(!1);
2151
2151
  }
@@ -2158,7 +2158,7 @@ const zs = (t) => {
2158
2158
  ...c,
2159
2159
  data: _
2160
2160
  };
2161
- return i ? /* @__PURE__ */ l.jsx($e, { height: 400 }) : _.length === 0 ? /* @__PURE__ */ l.jsx(Nt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Fs.has(c.type) ? /* @__PURE__ */ l.jsx(
2161
+ return i ? /* @__PURE__ */ l.jsx($e, { height: 400 }) : _.length === 0 ? /* @__PURE__ */ l.jsx(wt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Fs.has(c.type) ? /* @__PURE__ */ l.jsx(
2162
2162
  so,
2163
2163
  {
2164
2164
  dataLength: _.length,
@@ -2185,34 +2185,34 @@ const zs = (t) => {
2185
2185
  ), y = T(() => s && a ? `${a} *` : a ?? "", [a, s]), g = k(async () => {
2186
2186
  var j;
2187
2187
  try {
2188
- const p = !h;
2189
- f(p);
2190
- const N = {
2188
+ const b = !h;
2189
+ f(b);
2190
+ const w = {
2191
2191
  ...(j = v.getState()[e]) == null ? void 0 : j.entries,
2192
- [r]: p
2192
+ [r]: b
2193
2193
  };
2194
- switch (L(e, N), o) {
2194
+ switch (L(e, w), o) {
2195
2195
  case "GO_TO_NEXT_UI":
2196
2196
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
2197
- const w = await _(
2197
+ const N = await _(
2198
2198
  e,
2199
2199
  n,
2200
- N,
2200
+ w,
2201
2201
  r,
2202
2202
  o === "GO_TO_NEXT_UI"
2203
2203
  );
2204
- w != null && w.data && q(e, w == null ? void 0 : w.data);
2204
+ N != null && N.data && q(e, N == null ? void 0 : N.data);
2205
2205
  break;
2206
2206
  }
2207
2207
  default:
2208
2208
  break;
2209
2209
  }
2210
- } catch (p) {
2211
- console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
2210
+ } catch (b) {
2211
+ console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
2212
2212
  }
2213
2213
  }, [e, n, r, o, h]), x = (u == null ? void 0 : u.disabled) ?? m;
2214
2214
  return /* @__PURE__ */ l.jsx(
2215
- wn,
2215
+ Nn,
2216
2216
  {
2217
2217
  ...u,
2218
2218
  labelRight: y,
@@ -2243,7 +2243,7 @@ const zs = (t) => {
2243
2243
  disabled: i,
2244
2244
  showPreview: u,
2245
2245
  height: _ = "400px"
2246
- } = t, [h, f] = S(c ?? ""), m = bt.useThemeStore((N) => N.theme.mode), { disabled: y } = D(
2246
+ } = t, [h, f] = S(c ?? ""), m = bt.useThemeStore((w) => w.theme.mode), { disabled: y } = D(
2247
2247
  e,
2248
2248
  d
2249
2249
  ), g = i ?? y, x = {
@@ -2251,12 +2251,12 @@ const zs = (t) => {
2251
2251
  markdown: or(),
2252
2252
  sql: ar(),
2253
2253
  yaml: cr()
2254
- }, j = T(() => s && r ? `${r} *` : r ?? "", [r, s]), p = (N) => {
2255
- f(N);
2256
- const b = {
2257
- [n]: N
2254
+ }, j = T(() => s && r ? `${r} *` : r ?? "", [r, s]), b = (w) => {
2255
+ f(w);
2256
+ const p = {
2257
+ [n]: w
2258
2258
  };
2259
- L(e, b);
2259
+ L(e, p);
2260
2260
  };
2261
2261
  return /* @__PURE__ */ l.jsxs("div", { className: at.codeEditor, children: [
2262
2262
  j && j !== "" && /* @__PURE__ */ l.jsx("label", { className: at.codeEditor_label, children: j }),
@@ -2269,7 +2269,7 @@ const zs = (t) => {
2269
2269
  height: _,
2270
2270
  placeholder: a,
2271
2271
  extensions: [x[o] ?? ge()],
2272
- onChange: (N) => p(N),
2272
+ onChange: (w) => b(w),
2273
2273
  theme: m,
2274
2274
  editable: !g
2275
2275
  }
@@ -2355,22 +2355,22 @@ const xo = /* @__PURE__ */ new Set([
2355
2355
  borderColor: g,
2356
2356
  title: x,
2357
2357
  descriptionTop: j,
2358
- pillLabel: p
2358
+ pillLabel: b
2359
2359
  }) => {
2360
- const N = A(
2360
+ const w = A(
2361
2361
  t,
2362
2362
  e,
2363
2363
  s != null && s.length ? s : null
2364
- ), b = tt(t, e), { disabled: w } = D(
2364
+ ), p = tt(t, e), { disabled: N } = D(
2365
2365
  t,
2366
2366
  c
2367
- ), C = r ? () => void b({
2367
+ ), C = r ? () => void p({
2368
2368
  responseKey: n,
2369
2369
  actionType: r,
2370
2370
  dataSource: o,
2371
2371
  redirectUrl: a,
2372
2372
  dependencies: c
2373
- }) : void 0, E = h ?? w;
2373
+ }) : void 0, E = h ?? N;
2374
2374
  C && (s != null && s.some((V) => xo.has(V.component))) && yo.NODE_ENV;
2375
2375
  const O = C ? { onClick: C, disabled: E } : {};
2376
2376
  return /* @__PURE__ */ l.jsx(
@@ -2385,15 +2385,15 @@ const xo = /* @__PURE__ */ new Set([
2385
2385
  ariaLabel: i,
2386
2386
  descriptionTop: j,
2387
2387
  descriptionBottom: _ ?? u,
2388
- pillLabel: p,
2388
+ pillLabel: b,
2389
2389
  icon: d,
2390
2390
  ...O,
2391
- children: Xt(N, s)
2391
+ children: Xt(w, s)
2392
2392
  }
2393
2393
  );
2394
- }, jo = (t) => t.version === "v2" ? /* @__PURE__ */ l.jsx(bo, { ...t }) : /* @__PURE__ */ l.jsx(po, { ...t }), Co = "_dividerNotFront_tze3j_1", wo = {
2394
+ }, jo = (t) => t.version === "v2" ? /* @__PURE__ */ l.jsx(bo, { ...t }) : /* @__PURE__ */ l.jsx(po, { ...t }), Co = "_dividerNotFront_tze3j_1", No = {
2395
2395
  dividerNotFront: Co
2396
- }, No = (t) => /* @__PURE__ */ l.jsx(Nn, { ...t, className: wo.dividerNotFront });
2396
+ }, wo = (t) => /* @__PURE__ */ l.jsx(wn, { ...t, className: No.dividerNotFront });
2397
2397
  function K(t, e, n) {
2398
2398
  const r = A(
2399
2399
  t,
@@ -2406,7 +2406,7 @@ function K(t, e, n) {
2406
2406
  );
2407
2407
  return o != null && o.length ? o : void 0;
2408
2408
  }
2409
- const Eo = "_drawer_9wwj4_1", vo = "_drawerIconControl_9wwj4_1", To = "_drawerBody_9wwj4_14", So = "_drawerFooter_9wwj4_20", Ao = "_drawerToolbar_9wwj4_25", gt = {
2409
+ const Eo = "_drawer_19r0s_1", vo = "_drawerIconControl_19r0s_1", To = "_drawerBody_19r0s_14", So = "_drawerFooter_19r0s_20", Ao = "_drawerToolbar_19r0s_25", gt = {
2410
2410
  drawer: Eo,
2411
2411
  drawerIconControl: vo,
2412
2412
  drawerBody: To,
@@ -2465,32 +2465,32 @@ const Oo = ({
2465
2465
  expansion: g,
2466
2466
  accessibleLabel: x,
2467
2467
  className: j,
2468
- heightGap: p = 50
2468
+ heightGap: b = 50
2469
2469
  }) => {
2470
- const N = v((W) => {
2470
+ const w = v((W) => {
2471
2471
  var M;
2472
2472
  return (M = W[t]) == null ? void 0 : M.isDrawerOpen;
2473
- }), b = v((W) => {
2473
+ }), p = v((W) => {
2474
2474
  var M;
2475
2475
  return (M = W[t]) == null ? void 0 : M.isLoading;
2476
- }), w = !!g, C = (typeof g == "object" ? g.defaultExpanded : void 0) ?? y ?? !1, [E, O] = S({
2476
+ }), N = !!g, C = (typeof g == "object" ? g.defaultExpanded : void 0) ?? y ?? !1, [E, O] = S({
2477
2477
  hash: n,
2478
2478
  userFlow: t,
2479
2479
  pageId: e,
2480
- hasExpansion: w,
2480
+ hasExpansion: N,
2481
2481
  defaultExpanded: C,
2482
2482
  value: C
2483
2483
  });
2484
2484
  let V = E;
2485
- (E.hash !== n || E.userFlow !== t || E.pageId !== e || E.hasExpansion !== w || E.defaultExpanded !== C) && (V = {
2485
+ (E.hash !== n || E.userFlow !== t || E.pageId !== e || E.hasExpansion !== N || E.defaultExpanded !== C) && (V = {
2486
2486
  hash: n,
2487
2487
  userFlow: t,
2488
2488
  pageId: e,
2489
- hasExpansion: w,
2489
+ hasExpansion: N,
2490
2490
  defaultExpanded: C,
2491
2491
  value: C
2492
2492
  }, O(V));
2493
- const et = w ? V.value : y, Q = k(() => {
2493
+ const et = N ? V.value : y, Q = k(() => {
2494
2494
  O((W) => ({ ...W, value: C })), Zt(t), xt(t, !1);
2495
2495
  }, [t, C]), z = ko(t, e, a), U = K(
2496
2496
  t,
@@ -2509,7 +2509,7 @@ const Oo = ({
2509
2509
  {
2510
2510
  className: Y(gt.drawer, j),
2511
2511
  contentClassName: f,
2512
- isOpen: !!N && !b,
2512
+ isOpen: !!w && !p,
2513
2513
  onClose: Q,
2514
2514
  closeOnOverlayClick: i,
2515
2515
  bodyPadding: u,
@@ -2518,9 +2518,9 @@ const Oo = ({
2518
2518
  origin: m,
2519
2519
  isExpanded: et,
2520
2520
  expansion: g,
2521
- onExpandedChange: w ? (W) => O((M) => ({ ...M, value: W })) : void 0,
2521
+ onExpandedChange: N ? (W) => O((M) => ({ ...M, value: W })) : void 0,
2522
2522
  accessibleLabel: x,
2523
- heightGap: p,
2523
+ heightGap: b,
2524
2524
  headerConfig: Rt,
2525
2525
  title: typeof U == "string" ? /* @__PURE__ */ l.jsx(De, { type: "h2", children: U }) : U,
2526
2526
  headerExtra: nt,
@@ -2562,12 +2562,12 @@ const Oo = ({
2562
2562
  d
2563
2563
  ), x = f.disabled ?? g, j = k(() => {
2564
2564
  c && (s === "_blank" ? window.open(c, "_blank", "noopener,noreferrer") : window.location.assign(c));
2565
- }, [c, s]), p = k(
2566
- (b) => {
2567
- y(b);
2565
+ }, [c, s]), b = k(
2566
+ (p) => {
2567
+ y(p);
2568
2568
  },
2569
2569
  [y]
2570
- ), N = k(() => {
2570
+ ), w = k(() => {
2571
2571
  y(null);
2572
2572
  }, [y]);
2573
2573
  return /* @__PURE__ */ l.jsx(
@@ -2579,8 +2579,8 @@ const Oo = ({
2579
2579
  uploadStatus: i,
2580
2580
  disabled: x,
2581
2581
  notificationVisible: u,
2582
- onFileChange: p,
2583
- onRemove: N,
2582
+ onFileChange: b,
2583
+ onRemove: w,
2584
2584
  onTemplateLinkClick: c ? j : void 0
2585
2585
  }
2586
2586
  );
@@ -2715,8 +2715,8 @@ const Oo = ({
2715
2715
  e,
2716
2716
  d
2717
2717
  ), m = o && _ ? (() => {
2718
- const { href: x, target: j, download: p, ...N } = _;
2719
- return N;
2718
+ const { href: x, target: j, download: b, ...w } = _;
2719
+ return w;
2720
2720
  })() : _, y = k(async () => {
2721
2721
  var x;
2722
2722
  if (o)
@@ -2727,13 +2727,13 @@ const Oo = ({
2727
2727
  };
2728
2728
  switch (L(e, j), o) {
2729
2729
  case "GO_TO_NEXT_UI": {
2730
- const p = await h(
2730
+ const b = await h(
2731
2731
  e,
2732
2732
  n,
2733
2733
  j,
2734
2734
  r
2735
2735
  );
2736
- p != null && p.data && q(e, p == null ? void 0 : p.data);
2736
+ b != null && b.data && q(e, b == null ? void 0 : b.data);
2737
2737
  break;
2738
2738
  }
2739
2739
  case "REDIRECT":
@@ -3179,12 +3179,12 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3179
3179
  t,
3180
3180
  c
3181
3181
  ), y = (i == null ? void 0 : i.disabled) ?? m, g = T(() => r && (i != null && i.label) ? `${i == null ? void 0 : i.label} *` : (i == null ? void 0 : i.label) ?? "", [i == null ? void 0 : i.label, r]), x = T(() => {
3182
- const b = i != null && i.isMulti ? h : [h], w = {};
3183
- return Array.isArray(b) && b.forEach((C) => {
3182
+ const p = i != null && i.isMulti ? h : [h], N = {};
3183
+ return Array.isArray(p) && p.forEach((C) => {
3184
3184
  if (!C) return;
3185
3185
  const E = JSON.stringify(C.value), O = JSON.stringify(C.label);
3186
- w[E] = C, O in w || (w[O] = C);
3187
- }), w;
3186
+ N[E] = C, O in N || (N[O] = C);
3187
+ }), N;
3188
3188
  }, [h]), j = Ze({
3189
3189
  userFlow: t,
3190
3190
  pageId: e,
@@ -3193,9 +3193,9 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3193
3193
  getNextUI: u,
3194
3194
  isMulti: i == null ? void 0 : i.isMulti,
3195
3195
  debounceMs: s
3196
- }), p = (b) => {
3197
- f(b), j(b);
3198
- }, N = async (b, w, { page: C }) => {
3196
+ }), b = (p) => {
3197
+ f(p), j(p);
3198
+ }, w = async (p, N, { page: C }) => {
3199
3199
  const {
3200
3200
  jsonPathLabel: E,
3201
3201
  jsonPathOptions: O,
@@ -3204,7 +3204,7 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3204
3204
  } = o, Q = te(
3205
3205
  o,
3206
3206
  C,
3207
- b
3207
+ p
3208
3208
  ), z = await _(
3209
3209
  Q,
3210
3210
  t,
@@ -3236,12 +3236,12 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3236
3236
  value: h,
3237
3237
  disabled: y,
3238
3238
  noOptionsMessage: () => /* @__PURE__ */ l.jsx(l.Fragment, { children: "Sin opciones" }),
3239
- onChange: (b) => !y && p(b),
3240
- loadOptions: N,
3239
+ onChange: (p) => !y && b(p),
3240
+ loadOptions: w,
3241
3241
  additional: { page: 1 },
3242
- isOptionDisabled: (b) => {
3243
- const w = JSON.stringify(b == null ? void 0 : b.value), C = JSON.stringify(b == null ? void 0 : b.label);
3244
- return !!(x != null && x[w]) || !!(x != null && x[C]);
3242
+ isOptionDisabled: (p) => {
3243
+ const N = JSON.stringify(p == null ? void 0 : p.value), C = JSON.stringify(p == null ? void 0 : p.label);
3244
+ return !!(x != null && x[N]) || !!(x != null && x[C]);
3245
3245
  },
3246
3246
  debounceTimeout: 350
3247
3247
  }
@@ -3304,38 +3304,40 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3304
3304
  const {
3305
3305
  userFlow: e,
3306
3306
  pageId: n,
3307
- responseKey: r,
3308
- actionType: o,
3309
- label: a,
3310
- value: c,
3311
- required: s,
3312
- dependencies: d,
3313
- ...i
3314
- } = t, u = {
3315
- ...i
3316
- }, { getNextUI: _ } = H(), [h, f] = S(c || !1), { disabled: m } = D(
3307
+ component: r,
3308
+ hash: o,
3309
+ responseKey: a,
3310
+ actionType: c,
3311
+ label: s,
3312
+ value: d,
3313
+ required: i,
3314
+ dependencies: u,
3315
+ ..._
3316
+ } = t, h = {
3317
+ ..._
3318
+ }, { getNextUI: f } = H(), [m, y] = S(d || !1), { disabled: g } = D(
3317
3319
  e,
3318
- d
3319
- ), y = (u == null ? void 0 : u.disabled) ?? m, g = T(() => s && a ? `${a} *` : a ?? "", [a, s]), x = k(async () => {
3320
- var j;
3320
+ u
3321
+ ), x = (h == null ? void 0 : h.disabled) ?? g, j = T(() => i && s ? `${s} *` : s ?? "", [s, i]), b = k(async () => {
3322
+ var w;
3321
3323
  try {
3322
- const p = !h;
3323
- f(p);
3324
+ const p = !m;
3325
+ y(p);
3324
3326
  const N = {
3325
- ...(j = v.getState()[e]) == null ? void 0 : j.entries,
3326
- [r]: p
3327
+ ...(w = v.getState()[e]) == null ? void 0 : w.entries,
3328
+ [a]: p
3327
3329
  };
3328
- switch (L(e, N), o) {
3330
+ switch (L(e, N), c) {
3329
3331
  case "GO_TO_NEXT_UI":
3330
3332
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
3331
- const w = await _(
3333
+ const E = await f(
3332
3334
  e,
3333
3335
  n,
3334
3336
  N,
3335
- r,
3336
- o === "GO_TO_NEXT_UI"
3337
+ a,
3338
+ c === "GO_TO_NEXT_UI"
3337
3339
  );
3338
- w != null && w.data && q(e, w == null ? void 0 : w.data);
3340
+ E != null && E.data && q(e, E == null ? void 0 : E.data);
3339
3341
  break;
3340
3342
  }
3341
3343
  default:
@@ -3344,18 +3346,18 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3344
3346
  } catch (p) {
3345
3347
  console.error("Error in switch action:", p), alert(JSON.stringify(p));
3346
3348
  }
3347
- }, [e, n, r, o, h]);
3349
+ }, [e, n, a, c, m]);
3348
3350
  return /* @__PURE__ */ l.jsx(
3349
3351
  $n,
3350
3352
  {
3351
- ...u,
3352
- label: g,
3353
- checked: h,
3354
- disabled: y,
3355
- onChange: () => !y && x()
3353
+ ...h,
3354
+ label: j,
3355
+ checked: m,
3356
+ disabled: x,
3357
+ onChange: () => !x && b()
3356
3358
  }
3357
3359
  );
3358
- }, ja = 10, Ca = [10, 20, 50, 100], wa = 72, Na = 120, Ea = (t, e) => t != null && e.includes(t) ? t : e[0] ?? ja, va = ({
3360
+ }, ja = 10, Ca = [10, 20, 50, 100], Na = 72, wa = 120, Ea = (t, e) => t != null && e.includes(t) ? t : e[0] ?? ja, va = ({
3359
3361
  maxHeight: t,
3360
3362
  stickyHeader: e,
3361
3363
  shouldFitToViewport: n,
@@ -3369,8 +3371,8 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3369
3371
  }, Ta = ({
3370
3372
  viewportHeight: t,
3371
3373
  elementTop: e,
3372
- pagerReservedHeight: n = wa,
3373
- minTableHeight: r = Na
3374
+ pagerReservedHeight: n = Na,
3375
+ minTableHeight: r = wa
3374
3376
  }) => {
3375
3377
  const o = t - Math.max(e, 0) - n;
3376
3378
  return Math.max(o, r);
@@ -3564,9 +3566,9 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3564
3566
  ...h
3565
3567
  }) => {
3566
3568
  var le, de;
3567
- const { fetchDataSource: f } = H(), [m, y] = S(!1), [g, x] = S(1), j = i ?? Ca, [p, N] = S(
3569
+ const { fetchDataSource: f } = H(), [m, y] = S(!1), [g, x] = S(1), j = i ?? Ca, [b, w] = S(
3568
3570
  () => Ea(s, j)
3569
- ), [b, w] = S(null), C = !o && Array.isArray(c), E = !!(o != null && o.jsonPathCursorPagination) && !!((le = o == null ? void 0 : o.jsonPathPagination) != null && le.hasMore), O = d && !E, V = d || s != null, et = V ? p : void 0, Q = ct(
3571
+ ), [p, N] = S(null), C = !o && Array.isArray(c), E = !!(o != null && o.jsonPathCursorPagination) && !!((le = o == null ? void 0 : o.jsonPathPagination) != null && le.hasMore), O = d && !E, V = d || s != null, et = V ? b : void 0, Q = ct(
3570
3572
  /* @__PURE__ */ new Map([[1, null]])
3571
3573
  ), z = T(() => {
3572
3574
  if (a != null && a.length)
@@ -3616,10 +3618,10 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3616
3618
  Dt,
3617
3619
  rn
3618
3620
  );
3619
- w(he);
3621
+ N(he);
3620
3622
  const on = !!((ue = o == null ? void 0 : o.jsonPathPagination) != null && ue.size), $t = (_e = he.pagination) == null ? void 0 : _e.size;
3621
- if (V && on && $t != null && j.includes($t) && N($t), ht) {
3622
- const fe = ws(
3623
+ if (V && on && $t != null && j.includes($t) && w($t), ht) {
3624
+ const fe = Ns(
3623
3625
  rt == null ? void 0 : rt.data,
3624
3626
  ht
3625
3627
  );
@@ -3632,20 +3634,20 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3632
3634
  }, nt = (I) => {
3633
3635
  x(I), U(I, et);
3634
3636
  }, ut = (I) => {
3635
- N(I.value), x(1), U(1, I.value);
3637
+ w(I.value), x(1), U(1, I.value);
3636
3638
  };
3637
3639
  X(() => {
3638
3640
  C || U(1, et);
3639
3641
  }, []);
3640
- const J = C ? c : b == null ? void 0 : b.items, _t = C && V && ((c == null ? void 0 : c.length) ?? 0) > p, Rt = T(() => {
3642
+ const J = C ? c : p == null ? void 0 : p.items, _t = C && V && ((c == null ? void 0 : c.length) ?? 0) > b, Rt = T(() => {
3641
3643
  if (!_t || !c)
3642
3644
  return J ?? [];
3643
- const I = (g - 1) * p;
3644
- return c.slice(I, I + p);
3645
+ const I = (g - 1) * b;
3646
+ return c.slice(I, I + b);
3645
3647
  }, [
3646
3648
  _t,
3647
3649
  c,
3648
- p,
3650
+ b,
3649
3651
  g,
3650
3652
  J
3651
3653
  ]), W = T(
@@ -3680,7 +3682,7 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3680
3682
  onRowsPerPageChange: ut
3681
3683
  };
3682
3684
  if (C)
3683
- return !J || J.length === 0 ? /* @__PURE__ */ l.jsx(Nt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3685
+ return !J || J.length === 0 ? /* @__PURE__ */ l.jsx(wt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3684
3686
  ce,
3685
3687
  (_t || d) && c && /* @__PURE__ */ l.jsx(
3686
3688
  Lt,
@@ -3688,14 +3690,14 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3688
3690
  ...ie,
3689
3691
  classname: { global: "row__end" },
3690
3692
  page: g,
3691
- size: p,
3693
+ size: b,
3692
3694
  total: c.length,
3693
3695
  onChange: x
3694
3696
  }
3695
3697
  )
3696
3698
  ] });
3697
- const en = !E && (b == null ? void 0 : b.pagination) && (b.pagination.totalPages > 1 || d);
3698
- return /* @__PURE__ */ l.jsx(l.Fragment, { children: m ? /* @__PURE__ */ l.jsx($a, {}) : b && ((de = b == null ? void 0 : b.items) == null ? void 0 : de.length) > 0 ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3699
+ const en = !E && (p == null ? void 0 : p.pagination) && (p.pagination.totalPages > 1 || d);
3700
+ return /* @__PURE__ */ l.jsx(l.Fragment, { children: m ? /* @__PURE__ */ l.jsx($a, {}) : p && ((de = p == null ? void 0 : p.items) == null ? void 0 : de.length) > 0 ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
3699
3701
  ce,
3700
3702
  en && /* @__PURE__ */ l.jsx(
3701
3703
  Lt,
@@ -3703,22 +3705,22 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3703
3705
  ...ie,
3704
3706
  classname: { global: "row__end" },
3705
3707
  page: g,
3706
- size: p,
3707
- totalPages: b.pagination.totalPages,
3708
+ size: b,
3709
+ totalPages: p.pagination.totalPages,
3708
3710
  onChange: nt
3709
3711
  }
3710
3712
  ),
3711
- E && (b == null ? void 0 : b.pagination) && /* @__PURE__ */ l.jsx(
3713
+ E && (p == null ? void 0 : p.pagination) && /* @__PURE__ */ l.jsx(
3712
3714
  Lt,
3713
3715
  {
3714
3716
  variant: "cursor",
3715
3717
  classname: { global: "row__end" },
3716
3718
  page: g,
3717
- hasNextPage: !!b.pagination.hasMore,
3719
+ hasNextPage: !!p.pagination.hasMore,
3718
3720
  onChange: nt
3719
3721
  }
3720
3722
  )
3721
- ] }) : /* @__PURE__ */ l.jsx(Nt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
3723
+ ] }) : /* @__PURE__ */ l.jsx(wt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
3722
3724
  }, Ba = "_tabsPanel_kvslb_1", Ha = {
3723
3725
  tabsPanel: Ba
3724
3726
  }, Ua = ({ userFlow: t, pageId: e, components: n }) => {
@@ -3731,37 +3733,43 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3731
3733
  items: r,
3732
3734
  activeIndex: o,
3733
3735
  className: a,
3734
- responseKey: c,
3735
- preserveHeight: s
3736
+ id: c,
3737
+ responseKey: s,
3738
+ preserveHeight: d,
3739
+ "aria-label": i
3736
3740
  }) => {
3737
- const d = r.map((u, _) => ({
3738
- label: u.label,
3739
- disabled: u.disabled,
3741
+ const u = r.map((h, f) => ({
3742
+ label: h.label,
3743
+ disabled: h.disabled,
3744
+ icon: h.icon,
3745
+ count: h.count,
3740
3746
  children: /* @__PURE__ */ l.jsx(
3741
3747
  Ua,
3742
3748
  {
3743
3749
  userFlow: t,
3744
3750
  pageId: e,
3745
- components: u.components
3751
+ components: h.components
3746
3752
  },
3747
- `${n}-tab-${_}`
3753
+ `${n}-tab-${f}`
3748
3754
  )
3749
- })), i = (u) => {
3750
- var h;
3751
- const _ = {
3752
- ...(h = v.getState()[t]) == null ? void 0 : h.entries,
3753
- [c]: u
3755
+ })), _ = (h) => {
3756
+ var m;
3757
+ const f = {
3758
+ ...(m = v.getState()[t]) == null ? void 0 : m.entries,
3759
+ [s]: h
3754
3760
  };
3755
- L(t, _);
3761
+ L(t, f);
3756
3762
  };
3757
3763
  return /* @__PURE__ */ l.jsx(
3758
3764
  qn,
3759
3765
  {
3766
+ "aria-label": i,
3760
3767
  className: a,
3768
+ id: c,
3761
3769
  activeIndex: o,
3762
- items: d,
3763
- onClick: i,
3764
- preserveHeight: s
3770
+ items: u,
3771
+ onClick: _,
3772
+ preserveHeight: d
3765
3773
  }
3766
3774
  );
3767
3775
  }, Ga = "_textareaNotFront_1wpe5_1", Va = {
@@ -3877,12 +3885,13 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3877
3885
  label: s,
3878
3886
  placement: d,
3879
3887
  notShowArrow: i,
3880
- visible: u
3881
- } = t, _ = A(
3888
+ variant: u,
3889
+ visible: _
3890
+ } = t, h = A(
3882
3891
  e,
3883
3892
  n,
3884
3893
  c != null && c.length ? c : null
3885
- ), h = _ && _.length > 0 ? /* @__PURE__ */ l.jsx("div", { className: Oe.tooltipNotFront_content, children: _.map((f, m) => /* @__PURE__ */ l.jsx(R, { children: f }, `tooltip-${o}-${m}`)) }) : null;
3894
+ ), f = h && h.length > 0 ? /* @__PURE__ */ l.jsx("div", { className: Oe.tooltipNotFront_content, children: h.map((m, y) => /* @__PURE__ */ l.jsx(R, { children: m }, `tooltip-${o}-${y}`)) }) : null;
3886
3895
  return /* @__PURE__ */ l.jsx(
3887
3896
  Un,
3888
3897
  {
@@ -3890,8 +3899,9 @@ const na = /\{([^}]+)\}/g, ra = (t, e) => {
3890
3899
  label: s,
3891
3900
  placement: d,
3892
3901
  notShowArrow: i,
3893
- visible: u,
3894
- children: h
3902
+ variant: u,
3903
+ visible: _,
3904
+ children: f
3895
3905
  }
3896
3906
  );
3897
3907
  };
@@ -3921,7 +3931,7 @@ const Pa = { api: "", headers: {} }, Fa = ({
3921
3931
  const o = n ?? `${t}-page`;
3922
3932
  S(() => {
3923
3933
  var d, i;
3924
- return (i = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && i[o] || wt(t, r ?? Pa, {
3934
+ return (i = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && i[o] || Nt(t, r ?? Pa, {
3925
3935
  type: "page",
3926
3936
  hash: o,
3927
3937
  body: { components: e }
@@ -4022,52 +4032,52 @@ const ec = ({ payload: t, userFlow: e }) => {
4022
4032
  }
4023
4033
  );
4024
4034
  }, oc = (t, e, n, r) => {
4025
- var b;
4026
- const [o, a] = S(!1), c = !!(e != null && e.api && !n && t), [s, d] = S(c), i = v((w) => w[t]), u = i == null ? void 0 : i.currentPageId, _ = (i == null ? void 0 : i.isLoading) ?? !1, h = s || _, f = u ? (b = i == null ? void 0 : i.pages[u]) == null ? void 0 : b.page : void 0, m = (f == null ? void 0 : f.type) === "page" ? f.headerNavigation : void 0, y = (f == null ? void 0 : f.type) === "page" ? f.contextualNavigation : void 0, g = (f == null ? void 0 : f.header) ?? null, x = !!g || !m;
4035
+ var p;
4036
+ const [o, a] = S(!1), c = !!(e != null && e.api && !n && t), [s, d] = S(c), i = v((N) => N[t]), u = i == null ? void 0 : i.currentPageId, _ = (i == null ? void 0 : i.isLoading) ?? !1, h = s || _, f = u ? (p = i == null ? void 0 : i.pages[u]) == null ? void 0 : p.page : void 0, m = (f == null ? void 0 : f.type) === "page" ? f.headerNavigation : void 0, y = (f == null ? void 0 : f.type) === "page" ? f.contextualNavigation : void 0, g = (f == null ? void 0 : f.header) ?? null, x = !!g || !m;
4027
4037
  X(() => {
4028
4038
  if (typeof window > "u") return;
4029
- const w = new URL(window.location.href), C = w.searchParams.get("sessionId");
4030
- C && (Qt(C), w.searchParams.delete("sessionId"), window.history.replaceState({}, "", w.toString()));
4039
+ const N = new URL(window.location.href), C = N.searchParams.get("sessionId");
4040
+ C && (Qt(C), N.searchParams.delete("sessionId"), window.history.replaceState({}, "", N.toString()));
4031
4041
  }, []);
4032
4042
  const j = Re(t, u ?? "", "header", g, {
4033
4043
  onResolveComponentProps: r
4034
- }), p = Re(
4044
+ }), b = Re(
4035
4045
  t,
4036
4046
  u ?? "",
4037
4047
  "body",
4038
4048
  (f == null ? void 0 : f.body) ?? null,
4039
4049
  { onResolveComponentProps: r, embedded: !!y }
4040
- ), N = async () => {
4050
+ ), w = async () => {
4041
4051
  try {
4042
- const w = await Xe(
4052
+ const N = await Xe(
4043
4053
  e,
4044
4054
  t
4045
- ), C = w == null ? void 0 : w.data, E = C == null ? void 0 : C.content;
4046
- (w == null ? void 0 : w.status) === 200 ? await wt(
4055
+ ), C = N == null ? void 0 : N.data, E = C == null ? void 0 : C.content;
4056
+ (N == null ? void 0 : N.status) === 200 ? await Nt(
4047
4057
  t,
4048
4058
  e,
4049
4059
  E,
4050
4060
  C == null ? void 0 : C.sessionState,
4051
4061
  C == null ? void 0 : C.sessionId
4052
4062
  ) : a(!0);
4053
- } catch (w) {
4054
- console.error("[not-page]: API call failed", w), a(!0);
4063
+ } catch (N) {
4064
+ console.error("[not-page]: API call failed", N), a(!0);
4055
4065
  } finally {
4056
4066
  d(!1);
4057
4067
  }
4058
4068
  };
4059
4069
  return X(() => {
4060
- e != null && e.api && !n && t ? N() : !(e != null && e.api) && n && t || e != null && e.api && n && t ? wt(t, e, n) : (!(e != null && e.api) && !n || !t) && (a(!0), console.error(
4070
+ e != null && e.api && !n && t ? w() : !(e != null && e.api) && n && t || e != null && e.api && n && t ? Nt(t, e, n) : (!(e != null && e.api) && !n || !t) && (a(!0), console.error(
4061
4071
  "[not-page]: API call failed",
4062
4072
  "not api config",
4063
4073
  "not userFlow"
4064
4074
  ));
4065
- const w = "avocado-theme-mode-changed", C = (E) => {
4075
+ const N = "avocado-theme-mode-changed", C = (E) => {
4066
4076
  const O = E.detail;
4067
4077
  bt.setThemeMode(O);
4068
4078
  };
4069
- return window.addEventListener(w, C), () => {
4070
- window.removeEventListener(w, C);
4079
+ return window.addEventListener(N, C), () => {
4080
+ window.removeEventListener(N, C);
4071
4081
  };
4072
4082
  }, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
4073
4083
  h && /* @__PURE__ */ l.jsx(Gn, {}),
@@ -4086,10 +4096,10 @@ const ec = ({ payload: t, userFlow: e }) => {
4086
4096
  {
4087
4097
  ...y,
4088
4098
  userFlow: t,
4089
- children: p
4099
+ children: b
4090
4100
  },
4091
4101
  y.hash
4092
- ) : p),
4102
+ ) : b),
4093
4103
  u && /* @__PURE__ */ l.jsx(Ko, { userFlow: t, pageId: u }),
4094
4104
  i && /* @__PURE__ */ l.jsx(Vn, {})
4095
4105
  ] });
@@ -4101,7 +4111,7 @@ export {
4101
4111
  ea as Row,
4102
4112
  pc as clearSessionId,
4103
4113
  tc as extractNotFrontComponents,
4104
- Nr as heading,
4114
+ wr as heading,
4105
4115
  jc as renderNotFront,
4106
4116
  Er as text,
4107
4117
  Fa as useNotFrontFragment,