@foris/avocado-not-front 4.5.0 → 4.6.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,18 +1,18 @@
1
1
  import H from "axios";
2
- import { create as tt } from "zustand";
3
- import nt, { useMemo as A, useState as L, useCallback as R, Fragment as k, useEffect as z, useRef as Ue, cloneElement as st } from "react";
4
- import { Heading as ze, Text as at, Accordion as rt, ThemeStore as ne, Box as ot, RadioButton as ct, Stepper as it, Breadcrumbs as lt, Button as dt, CardAccordion as _t, Card as ut, CardNotification as ge, SkeletonBase as Ve, Checkbox as ht, PreviewerMarkdown as Je, DataCard as ft, Divider as yt, Drawer as mt, DropdownButton as xt, Link as gt, Menu as pt, Modal as bt, Pill as me, RoundButton as jt, SelectPagination as Nt, Select as wt, Switch as Ct, Table as vt, Pager as St, Tabs as Et, Textarea as Tt, TextField as kt, toast as ee, Tooltip as Ot, Loading as At, Toaster as $t } from "@foris/avocado-suite";
5
- import { ChatPanel as qt, PromptCodeEditor as Dt, SummaryCard as Rt } from "@foris/ai-agent";
2
+ import { create as nt } from "zustand";
3
+ import st, { useMemo as A, useState as L, useCallback as R, Fragment as k, useEffect as z, useRef as Me, cloneElement as at } from "react";
4
+ import { Heading as ze, Text as rt, Accordion as ot, ThemeStore as ne, Box as ct, RadioButton as it, Stepper as lt, Breadcrumbs as dt, Button as _t, CardAccordion as ut, Card as ht, CardNotification as ge, SkeletonBase as Ve, Checkbox as ft, PreviewerMarkdown as Je, DataCard as mt, Divider as yt, Drawer as xt, DropdownButton as gt, Link as pt, Menu as bt, Modal as jt, Pill as ye, RoundButton as Nt, SelectPagination as wt, Select as Ct, Switch as vt, Table as St, Pager as Et, Tabs as Tt, Textarea as kt, TextField as Ot, toast as ee, Tooltip as At, Loading as $t, Toaster as qt } from "@foris/avocado-suite";
5
+ import { ChatPanel as Dt, PromptCodeEditor as Rt, SummaryCard as Lt } from "@foris/ai-agent";
6
6
  import B from "jsonpath";
7
- import { Legend as Lt, Tooltip as It, XAxis as Bt, YAxis as Kt, ResponsiveContainer as oe, AreaChart as Gt, CartesianGrid as pe, Area as Mt, BarChart as Ut, Bar as zt, LineChart as Vt, Line as Jt, PieChart as Xt, Pie as Ht, Cell as Wt } from "recharts";
8
- import Qt from "@uiw/react-codemirror";
7
+ import { Legend as It, Tooltip as Bt, XAxis as Kt, YAxis as Gt, ResponsiveContainer as oe, AreaChart as Ut, CartesianGrid as pe, Area as Mt, BarChart as zt, Bar as Vt, LineChart as Jt, Line as Xt, PieChart as Ht, Pie as Wt, Cell as Qt } from "recharts";
8
+ import Yt from "@uiw/react-codemirror";
9
9
  import { json as ve } from "@codemirror/lang-json";
10
- import { markdown as Yt } from "@codemirror/lang-markdown";
11
- import { sql as Zt } from "@codemirror/lang-sql";
12
- import { yaml as Ft } from "@codemirror/lang-yaml";
10
+ import { markdown as Zt } from "@codemirror/lang-markdown";
11
+ import { sql as Ft } from "@codemirror/lang-sql";
12
+ import { yaml as Pt } from "@codemirror/lang-yaml";
13
13
  import { Icon as Se } from "@foris/avocado-icons";
14
- import { Routes as Pt, Route as Ee, Navigate as en } from "react-router-dom";
15
- const v = tt(() => ({})), de = (e, t, s, r) => {
14
+ import { Routes as en, Route as Ee, Navigate as tn } from "react-router-dom";
15
+ const v = nt(() => ({})), de = (e, t, s, r) => {
16
16
  const i = s == null ? void 0 : s.hash, l = r && Object.keys(r).length > 0 ? { ...r } : {};
17
17
  v.setState((c) => {
18
18
  var n;
@@ -43,7 +43,7 @@ const v = tt(() => ({})), de = (e, t, s, r) => {
43
43
  ([i]) => !t.includes(i)
44
44
  )
45
45
  );
46
- }, tn = (e, t, s, r, i) => {
46
+ }, nn = (e, t, s, r, i) => {
47
47
  sessionStorage.setItem("sessionId", s), v.setState((l) => {
48
48
  const c = l[e] ?? {}, n = c.entries ?? {}, d = Xe(
49
49
  n,
@@ -67,7 +67,7 @@ const v = tt(() => ({})), de = (e, t, s, r) => {
67
67
  }
68
68
  };
69
69
  });
70
- }, nn = (e, t, s, r) => {
70
+ }, sn = (e, t, s, r) => {
71
71
  v.setState((i) => {
72
72
  var a;
73
73
  const l = i[e] ?? {}, c = l.entries ?? {}, n = Xe(
@@ -97,7 +97,7 @@ const v = tt(() => ({})), de = (e, t, s, r) => {
97
97
  overlay: null
98
98
  }
99
99
  }));
100
- }, sn = (e) => {
100
+ }, an = (e) => {
101
101
  var s;
102
102
  return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
103
103
  }, $ = (e, t) => {
@@ -107,13 +107,13 @@ const v = tt(() => ({})), de = (e, t, s, r) => {
107
107
  deprecatedStateKeys: i = [],
108
108
  sessionState: l
109
109
  } = t;
110
- s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? tn(
110
+ s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? nn(
111
111
  e,
112
112
  s,
113
113
  r,
114
114
  i,
115
115
  l
116
- ) : nn(
116
+ ) : sn(
117
117
  e,
118
118
  s,
119
119
  i,
@@ -134,7 +134,7 @@ const v = tt(() => ({})), de = (e, t, s, r) => {
134
134
  }
135
135
  };
136
136
  });
137
- }, an = (e, t) => {
137
+ }, rn = (e, t) => {
138
138
  v.setState((s) => {
139
139
  const r = s[e];
140
140
  if (!r)
@@ -191,15 +191,15 @@ const v = tt(() => ({})), de = (e, t, s, r) => {
191
191
  });
192
192
  };
193
193
  let _e = !1, re = [], ke = !1;
194
- const rn = (e) => e._userFlow || null, Oe = (e) => {
194
+ const on = (e) => e._userFlow || null, Oe = (e) => {
195
195
  re.forEach(({ resolve: t, reject: s }) => {
196
196
  e ? s(e) : t(void 0);
197
197
  }), re = [];
198
- }, on = async (e) => {
198
+ }, cn = async (e) => {
199
199
  var r, i;
200
200
  const t = e == null ? void 0 : e.config;
201
201
  if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
202
- const l = rn(t);
202
+ const l = on(t);
203
203
  if (l) {
204
204
  const n = (i = v.getState()[l]) == null ? void 0 : i.apiConfig;
205
205
  if (!n)
@@ -241,17 +241,17 @@ const rn = (e) => e._userFlow || null, Oe = (e) => {
241
241
  );
242
242
  }
243
243
  return Promise.reject(e);
244
- }, cn = () => {
244
+ }, ln = () => {
245
245
  if (ke) {
246
246
  console.debug(
247
247
  "[axiosInterceptors] Interceptors already initialized, skipping"
248
248
  );
249
249
  return;
250
250
  }
251
- console.debug("[axiosInterceptors] Initializing interceptors..."), H.interceptors.response.use(void 0, on), console.debug("[axiosInterceptors] Response error interceptor registered"), ke = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
251
+ console.debug("[axiosInterceptors] Initializing interceptors..."), H.interceptors.response.use(void 0, cn), console.debug("[axiosInterceptors] Response error interceptor registered"), ke = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
252
252
  };
253
- cn();
254
- function ln(e) {
253
+ ln();
254
+ function dn(e) {
255
255
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
256
256
  }
257
257
  var ue = { exports: {} }, te = {};
@@ -265,10 +265,10 @@ var ue = { exports: {} }, te = {};
265
265
  * LICENSE file in the root directory of this source tree.
266
266
  */
267
267
  var Ae;
268
- function dn() {
268
+ function _n() {
269
269
  if (Ae) return te;
270
270
  Ae = 1;
271
- var e = nt, 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
+ var e = st, 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 };
272
272
  function c(n, d, a) {
273
273
  var u, h = {}, _ = null, f = null;
274
274
  a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (f = d.ref);
@@ -279,11 +279,11 @@ function dn() {
279
279
  return te.Fragment = s, te.jsx = c, te.jsxs = c, te;
280
280
  }
281
281
  var $e;
282
- function _n() {
283
- return $e || ($e = 1, ue.exports = dn()), ue.exports;
282
+ function un() {
283
+ return $e || ($e = 1, ue.exports = _n()), ue.exports;
284
284
  }
285
- var o = _n();
286
- const un = (e) => {
285
+ var o = un();
286
+ const hn = (e) => {
287
287
  if (!(e != null && e.content)) return null;
288
288
  const t = {
289
289
  ...e,
@@ -291,19 +291,19 @@ const un = (e) => {
291
291
  type: e.variant
292
292
  };
293
293
  return /* @__PURE__ */ o.jsx(ze, { ...t });
294
- }, hn = (e) => {
294
+ }, fn = (e) => {
295
295
  if (!e) return null;
296
296
  const t = {
297
297
  ...e,
298
298
  children: e.content
299
299
  };
300
- return /* @__PURE__ */ o.jsx(at, { ...t });
300
+ return /* @__PURE__ */ o.jsx(rt, { ...t });
301
301
  }, O = (e, t, s, r) => {
302
302
  var c;
303
303
  const i = {
304
- accordion: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
304
+ accordion: (n) => /* @__PURE__ */ o.jsx(Nn, { ...n, userFlow: e, pageId: t }),
305
305
  aiChatPanel: (n) => /* @__PURE__ */ o.jsx(
306
- Nn,
306
+ wn,
307
307
  {
308
308
  ...n,
309
309
  userFlow: e,
@@ -312,7 +312,7 @@ const un = (e) => {
312
312
  }
313
313
  ),
314
314
  aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(
315
- Tn,
315
+ kn,
316
316
  {
317
317
  ...n,
318
318
  userFlow: e,
@@ -320,47 +320,47 @@ const un = (e) => {
320
320
  onResolveProps: r == null ? void 0 : r.aiSummaryCard
321
321
  }
322
322
  ),
323
- aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(vn, { ...n, userFlow: e, pageId: t }),
324
- box: (n) => /* @__PURE__ */ o.jsx(Dn, { ...n, userFlow: e, pageId: t }),
325
- breadcrumbs: (n) => /* @__PURE__ */ o.jsx(Jn, { ...n, userFlow: e, pageId: t }),
326
- tooltip: (n) => /* @__PURE__ */ o.jsx(Ca, { ...n, userFlow: e, pageId: t }),
327
- textarea: (n) => /* @__PURE__ */ o.jsx(xa, { ...n, userFlow: e, pageId: t }),
328
- card: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n, userFlow: e, pageId: t }),
329
- dropdownButton: (n) => /* @__PURE__ */ o.jsx(vs, { ...n, userFlow: e, pageId: t }),
330
- menu: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
331
- radioGroup: (n) => /* @__PURE__ */ o.jsx(zn, { ...n, userFlow: e, pageId: t }),
332
- stepper: (n) => /* @__PURE__ */ o.jsx(Vn, { ...n, userFlow: e, pageId: t }),
333
- button: (n) => /* @__PURE__ */ o.jsx(Xn, { ...n, userFlow: e, pageId: t }),
334
- cardAccordion: (n) => /* @__PURE__ */ o.jsx(Wn, { ...n, userFlow: e, pageId: t }),
335
- cardNotification: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
336
- chart: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: e }),
337
- dataCard: (n) => /* @__PURE__ */ o.jsx(xs, { ...n, userFlow: e, pageId: t }),
338
- checkbox: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: e, pageId: t }),
323
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
324
+ box: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n, userFlow: e, pageId: t }),
325
+ breadcrumbs: (n) => /* @__PURE__ */ o.jsx(Xn, { ...n, userFlow: e, pageId: t }),
326
+ tooltip: (n) => /* @__PURE__ */ o.jsx(va, { ...n, userFlow: e, pageId: t }),
327
+ textarea: (n) => /* @__PURE__ */ o.jsx(ga, { ...n, userFlow: e, pageId: t }),
328
+ card: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n, userFlow: e, pageId: t }),
329
+ dropdownButton: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
330
+ menu: (n) => /* @__PURE__ */ o.jsx(As, { ...n, userFlow: e, pageId: t }),
331
+ radioGroup: (n) => /* @__PURE__ */ o.jsx(Vn, { ...n, userFlow: e, pageId: t }),
332
+ stepper: (n) => /* @__PURE__ */ o.jsx(Jn, { ...n, userFlow: e, pageId: t }),
333
+ button: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
334
+ cardAccordion: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
335
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n }),
336
+ chart: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: e }),
337
+ dataCard: (n) => /* @__PURE__ */ o.jsx(gs, { ...n, userFlow: e, pageId: t }),
338
+ checkbox: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: e, pageId: t }),
339
339
  code: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: e, pageId: t }),
340
- divider: (n) => /* @__PURE__ */ o.jsx(bs, { ...n }),
341
- drawer: (n) => /* @__PURE__ */ o.jsx(Cs, { ...n, userFlow: e, pageId: t }),
342
- heading: (n) => un(n),
343
- link: (n) => /* @__PURE__ */ o.jsx(ks, { ...n, userFlow: e, pageId: t }),
344
- pill: (n) => /* @__PURE__ */ o.jsx(Ls, { ...n }),
345
- previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Is, { ...n }),
346
- modal: (n) => /* @__PURE__ */ o.jsx(qs, { ...n, userFlow: e, pageId: t }),
347
- roundButton: (n) => /* @__PURE__ */ o.jsx(Bs, { ...n, userFlow: e, pageId: t }),
340
+ divider: (n) => /* @__PURE__ */ o.jsx(js, { ...n }),
341
+ drawer: (n) => /* @__PURE__ */ o.jsx(vs, { ...n, userFlow: e, pageId: t }),
342
+ heading: (n) => hn(n),
343
+ link: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
344
+ pill: (n) => /* @__PURE__ */ o.jsx(Is, { ...n }),
345
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Bs, { ...n }),
346
+ modal: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n, userFlow: e, pageId: t }),
347
+ roundButton: (n) => /* @__PURE__ */ o.jsx(Ks, { ...n, userFlow: e, pageId: t }),
348
348
  row: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: e, pageId: t }),
349
- select: (n) => /* @__PURE__ */ o.jsx(Qs, { ...n, userFlow: e, pageId: t }),
350
- switch: (n) => /* @__PURE__ */ o.jsx(oa, { ...n, userFlow: e, pageId: t }),
351
- spacing: (n) => /* @__PURE__ */ o.jsx(ra, { ...n, userFlow: e, pageId: t }),
352
- table: (n) => /* @__PURE__ */ o.jsx(ua, { ...n, userFlow: e, pageId: t }),
353
- tabs: (n) => /* @__PURE__ */ o.jsx(ma, { ...n, userFlow: e, pageId: t }),
354
- text: (n) => hn(n),
355
- textField: (n) => /* @__PURE__ */ o.jsx(ba, { ...n, userFlow: e, pageId: t }),
356
- toast: (n) => /* @__PURE__ */ o.jsx(ja, { ...n, userFlow: e, pageId: t })
349
+ select: (n) => /* @__PURE__ */ o.jsx(Ys, { ...n, userFlow: e, pageId: t }),
350
+ switch: (n) => /* @__PURE__ */ o.jsx(ca, { ...n, userFlow: e, pageId: t }),
351
+ spacing: (n) => /* @__PURE__ */ o.jsx(oa, { ...n, userFlow: e, pageId: t }),
352
+ table: (n) => /* @__PURE__ */ o.jsx(ha, { ...n, userFlow: e, pageId: t }),
353
+ tabs: (n) => /* @__PURE__ */ o.jsx(xa, { ...n, userFlow: e, pageId: t }),
354
+ text: (n) => fn(n),
355
+ textField: (n) => /* @__PURE__ */ o.jsx(ja, { ...n, userFlow: e, pageId: t }),
356
+ toast: (n) => /* @__PURE__ */ o.jsx(Na, { ...n, userFlow: e, pageId: t })
357
357
  };
358
358
  return (c = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : c.map((n) => {
359
359
  const d = i[n.component];
360
360
  return d ? d({ ...n, userFlow: e, pageId: t }) : null;
361
361
  });
362
362
  };
363
- function fn(e) {
363
+ function mn(e) {
364
364
  return !!(e == null || typeof e == "string" && e.trim() === "" || Array.isArray(e) && e.length === 0);
365
365
  }
366
366
  function He(e, t) {
@@ -369,7 +369,7 @@ function He(e, t) {
369
369
  for (const s of t)
370
370
  if (s.when === "empty") {
371
371
  const r = e == null ? void 0 : e[s.key];
372
- if (fn(r))
372
+ if (mn(r))
373
373
  return !0;
374
374
  }
375
375
  return !1;
@@ -428,7 +428,7 @@ const P = (e) => {
428
428
  }),
429
429
  controller: c
430
430
  };
431
- }, mn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
431
+ }, xn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
432
432
  const c = se();
433
433
  i && c.abort();
434
434
  const n = P(t);
@@ -443,7 +443,7 @@ const P = (e) => {
443
443
  }),
444
444
  controller: c
445
445
  };
446
- }, xn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
446
+ }, gn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
447
447
  const c = se();
448
448
  i && c.abort();
449
449
  const n = P(t);
@@ -458,7 +458,7 @@ const P = (e) => {
458
458
  }),
459
459
  controller: c
460
460
  };
461
- }, gn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
461
+ }, pn = (e, t = {}, s = {}, r = {}, i = !1, l) => {
462
462
  const c = se();
463
463
  i && c.abort();
464
464
  const n = P(t);
@@ -527,11 +527,11 @@ const P = (e) => {
527
527
  case "post":
528
528
  return xe(u, h, _, {}, !1, d);
529
529
  case "put":
530
- return mn(u, h, _, {}, !1, d);
531
- case "patch":
532
530
  return xn(u, h, _, {}, !1, d);
531
+ case "patch":
532
+ return gn(u, h, _, {}, !1, d);
533
533
  case "delete":
534
- return gn(u, h, _, f, !1, d);
534
+ return pn(u, h, _, f, !1, d);
535
535
  case "get":
536
536
  default:
537
537
  return yn(u, h, f, !1, d);
@@ -607,10 +607,10 @@ const P = (e) => {
607
607
  }
608
608
  }
609
609
  };
610
- }, pn = "_accordion_1ri2t_1", bn = "_accordionBody_1ri2t_8", qe = {
611
- accordion: pn,
612
- accordionBody: bn
613
- }, jn = (e) => {
610
+ }, bn = "_accordion_1ri2t_1", jn = "_accordionBody_1ri2t_8", qe = {
611
+ accordion: bn,
612
+ accordionBody: jn
613
+ }, Nn = (e) => {
614
614
  const {
615
615
  userFlow: t,
616
616
  pageId: s,
@@ -625,7 +625,7 @@ const P = (e) => {
625
625
  ), { disabled: _ } = I(
626
626
  t,
627
627
  i
628
- ), f = O(t, s, n), g = c ? O(t, s, c) : void 0, m = l ? O(t, s, l) : void 0, x = R(
628
+ ), f = O(t, s, n), g = c ? O(t, s, c) : void 0, y = l ? O(t, s, l) : void 0, x = R(
629
629
  async (b) => {
630
630
  var N;
631
631
  try {
@@ -649,18 +649,18 @@ const P = (e) => {
649
649
  }
650
650
  },
651
651
  [t, s, r, d.actionType, a]
652
- ), y = d.disabled || _, p = {
652
+ ), m = d.disabled || _, p = {
653
653
  ...d,
654
654
  className: qe.accordion,
655
- disabled: y,
655
+ disabled: m,
656
656
  checkboxChecked: u,
657
657
  onChanceCheckbox: d.hasCheckbox ? x : void 0,
658
658
  actionContent: g ? /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((b, N) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-action-${N}`)) }) : void 0,
659
- customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((b, N) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-custom-${N}`)) }) : void 0,
659
+ customContent: y ? /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((b, N) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-custom-${N}`)) }) : void 0,
660
660
  children: f ? /* @__PURE__ */ o.jsx("section", { className: qe.accordionBody, children: f.map((b, N) => /* @__PURE__ */ o.jsx(k, { children: b }, `accordion-child-${N}`)) }) : void 0
661
661
  };
662
- return /* @__PURE__ */ o.jsx(rt, { ...p });
663
- }, Nn = (e) => {
662
+ return /* @__PURE__ */ o.jsx(ot, { ...p });
663
+ }, wn = (e) => {
664
664
  const t = ne.useThemeStore((c) => c.theme.mode), s = e.dataSource, r = A(() => ({
665
665
  url: e.dataSource.url,
666
666
  method: e.dataSource.method,
@@ -693,7 +693,7 @@ const P = (e) => {
693
693
  e.initialSuggestions,
694
694
  t
695
695
  ]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
696
- qt,
696
+ Dt,
697
697
  {
698
698
  dataSource: r,
699
699
  locale: i,
@@ -702,9 +702,9 @@ const P = (e) => {
702
702
  theme: t
703
703
  }
704
704
  );
705
- }, wn = "_promptCodeEditor_1d57s_1", Cn = {
706
- promptCodeEditor: wn
707
- }, vn = (e) => {
705
+ }, Cn = "_promptCodeEditor_1d57s_1", vn = {
706
+ promptCodeEditor: Cn
707
+ }, Sn = (e) => {
708
708
  const {
709
709
  userFlow: t,
710
710
  responseKey: s,
@@ -721,7 +721,7 @@ const P = (e) => {
721
721
  ), { disabled: g } = I(
722
722
  t,
723
723
  c
724
- ), m = l ?? g, x = i ?? "json", y = {
724
+ ), y = l ?? g, x = i ?? "json", m = {
725
725
  url: (n == null ? void 0 : n.url) || "",
726
726
  method: (n == null ? void 0 : n.method) || "post",
727
727
  headers: n == null ? void 0 : n.headers,
@@ -735,13 +735,13 @@ const P = (e) => {
735
735
  };
736
736
  return z(() => {
737
737
  r !== void 0 && r !== _ && f(r);
738
- }, [r]), /* @__PURE__ */ o.jsx("section", { className: Cn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
739
- Dt,
738
+ }, [r]), /* @__PURE__ */ o.jsx("section", { className: vn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
739
+ Rt,
740
740
  {
741
741
  themeMode: h,
742
- requestConfig: y,
742
+ requestConfig: m,
743
743
  language: x,
744
- disabled: m,
744
+ disabled: y,
745
745
  inputLabel: d,
746
746
  inputPlaceholder: a,
747
747
  codeBlockLabel: u,
@@ -749,9 +749,9 @@ const P = (e) => {
749
749
  onCodeChange: p
750
750
  }
751
751
  ) });
752
- }, Sn = "_summaryCard_jva4h_1", En = {
753
- summaryCard: Sn
754
- }, Tn = (e) => {
752
+ }, En = "_summaryCard_jva4h_1", Tn = {
753
+ summaryCard: En
754
+ }, kn = (e) => {
755
755
  const t = e.dataSource, s = A(() => ({
756
756
  url: e.dataSource.url,
757
757
  method: e.dataSource.method,
@@ -774,20 +774,20 @@ const P = (e) => {
774
774
  locale: r,
775
775
  translations: i
776
776
  });
777
- }, [e.onResolveProps, s, r, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: En.summaryCard, children: /* @__PURE__ */ o.jsx(
778
- Rt,
777
+ }, [e.onResolveProps, s, r, i]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Tn.summaryCard, children: /* @__PURE__ */ o.jsx(
778
+ Lt,
779
779
  {
780
780
  dataSource: s,
781
781
  locale: r,
782
782
  translations: i
783
783
  }
784
784
  ) });
785
- }, kn = "_body_14tsv_1", On = "_body_content_14tsv_5", De = {
786
- body: kn,
787
- body_content: On
788
- }, An = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: De.body, children: /* @__PURE__ */ o.jsx("div", { className: De.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(k, { children: t }, s)) }) }), $n = "_slotStack_1b4wy_1", qn = {
789
- slotStack: $n
790
- }, Dn = (e) => {
785
+ }, On = "_body_14tsv_1", An = "_body_content_14tsv_5", De = {
786
+ body: On,
787
+ body_content: An
788
+ }, $n = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: De.body, children: /* @__PURE__ */ o.jsx("div", { className: De.body_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(k, { children: t }, s)) }) }), qn = "_slotStack_1b4wy_1", Dn = {
789
+ slotStack: qn
790
+ }, Rn = (e) => {
791
791
  const {
792
792
  userFlow: t,
793
793
  pageId: s,
@@ -799,8 +799,8 @@ const P = (e) => {
799
799
  t,
800
800
  s,
801
801
  c != null && c.length ? c : null
802
- ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qn.slotStack, children: d.map((u, h) => /* @__PURE__ */ o.jsx(k, { children: u }, `box-${i}-${h}`)) }) : null;
803
- return /* @__PURE__ */ o.jsx(ot, { darkMode: n, children: a });
802
+ ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Dn.slotStack, children: d.map((u, h) => /* @__PURE__ */ o.jsx(k, { children: u }, `box-${i}-${h}`)) }) : null;
803
+ return /* @__PURE__ */ o.jsx(ct, { darkMode: n, children: a });
804
804
  };
805
805
  var he = { exports: {} };
806
806
  /*!
@@ -809,7 +809,7 @@ var he = { exports: {} };
809
809
  http://jedwatson.github.io/classnames
810
810
  */
811
811
  var Re;
812
- function Rn() {
812
+ function Ln() {
813
813
  return Re || (Re = 1, (function(e) {
814
814
  (function() {
815
815
  var t = {}.hasOwnProperty;
@@ -841,15 +841,15 @@ function Rn() {
841
841
  })();
842
842
  })(he)), he.exports;
843
843
  }
844
- var Ln = Rn();
845
- const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColumn_1xrth_8", Kn = "_legend_1xrth_14", Gn = "_options_1xrth_20", Mn = "_optionsRow_1xrth_25", Un = "_optionsColumn_1xrth_36", Y = {
846
- fieldset: In,
847
- fieldsetColumn: Bn,
848
- legend: Kn,
849
- options: Gn,
844
+ var In = Ln();
845
+ const F = /* @__PURE__ */ dn(In), Bn = "_fieldset_1xrth_1", Kn = "_fieldsetColumn_1xrth_8", Gn = "_legend_1xrth_14", Un = "_options_1xrth_20", Mn = "_optionsRow_1xrth_25", zn = "_optionsColumn_1xrth_36", Y = {
846
+ fieldset: Bn,
847
+ fieldsetColumn: Kn,
848
+ legend: Gn,
849
+ options: Un,
850
850
  optionsRow: Mn,
851
- optionsColumn: Un
852
- }, zn = (e) => {
851
+ optionsColumn: zn
852
+ }, Vn = (e) => {
853
853
  const {
854
854
  userFlow: t,
855
855
  pageId: s,
@@ -869,7 +869,7 @@ const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColum
869
869
  var N, j;
870
870
  return (j = (N = b[t]) == null ? void 0 : N.entries) == null ? void 0 : j[r];
871
871
  }
872
- ), m = g != null ? String(g) : l ?? "", x = f, y = A(() => i ? c ? `${i} *` : i : null, [i, c]), p = R(
872
+ ), y = g != null ? String(g) : l ?? "", x = f, m = A(() => i ? c ? `${i} *` : i : null, [i, c]), p = R(
873
873
  async (b) => {
874
874
  var N;
875
875
  if (!x)
@@ -909,7 +909,7 @@ const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColum
909
909
  h === "column" && Y.fieldsetColumn
910
910
  ),
911
911
  children: [
912
- y ? /* @__PURE__ */ o.jsx("legend", { className: Y.legend, children: y }) : null,
912
+ m ? /* @__PURE__ */ o.jsx("legend", { className: Y.legend, children: m }) : null,
913
913
  /* @__PURE__ */ o.jsx(
914
914
  "div",
915
915
  {
@@ -918,11 +918,11 @@ const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColum
918
918
  h === "column" ? Y.optionsColumn : Y.optionsRow
919
919
  ),
920
920
  children: u.map((b) => /* @__PURE__ */ o.jsx(
921
- ct,
921
+ it,
922
922
  {
923
923
  name: r,
924
924
  value: b.value,
925
- checked: m === b.value,
925
+ checked: y === b.value,
926
926
  disabled: x || b.disabled,
927
927
  labelRight: b.label,
928
928
  onChange: () => {
@@ -936,7 +936,7 @@ const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColum
936
936
  ]
937
937
  }
938
938
  );
939
- }, Vn = ({
939
+ }, Jn = ({
940
940
  userFlow: e,
941
941
  pageId: t,
942
942
  component: s,
@@ -945,7 +945,7 @@ const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColum
945
945
  items: l,
946
946
  itemActive: c,
947
947
  darkMode: n
948
- }) => /* @__PURE__ */ o.jsx(it, { items: l, itemActive: c, darkMode: n }), Jn = ({
948
+ }) => /* @__PURE__ */ o.jsx(lt, { items: l, itemActive: c, darkMode: n }), Xn = ({
949
949
  userFlow: e,
950
950
  items: t,
951
951
  responseKey: s
@@ -980,13 +980,13 @@ const F = /* @__PURE__ */ ln(Ln), In = "_fieldset_1xrth_1", Bn = "_fieldsetColum
980
980
  title: c == null ? void 0 : c.title,
981
981
  component: /* @__PURE__ */ o.jsx("div", { onClick: () => i(c) })
982
982
  })), []);
983
- return /* @__PURE__ */ o.jsx(lt, { items: l });
983
+ return /* @__PURE__ */ o.jsx(dt, { items: l });
984
984
  };
985
985
  function je(e, t) {
986
986
  const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: i } = K();
987
987
  return R(
988
988
  async (l) => {
989
- var _, f, g, m;
989
+ var _, f, g, y;
990
990
  const { responseKey: c, actionType: n, dataSource: d, redirectUrl: a, dependencies: u } = l, h = (_ = v.getState()[e]) == null ? void 0 : _.entries;
991
991
  if (!He(h, u))
992
992
  try {
@@ -1005,37 +1005,37 @@ function je(e, t) {
1005
1005
  W(e, !0);
1006
1006
  break;
1007
1007
  case "GO_TO_NEXT_UI": {
1008
- const y = await s(
1008
+ const m = await s(
1009
1009
  e,
1010
1010
  t,
1011
1011
  x,
1012
1012
  c
1013
1013
  );
1014
- y != null && y.data && $(e, y == null ? void 0 : y.data);
1014
+ m != null && m.data && $(e, m == null ? void 0 : m.data);
1015
1015
  break;
1016
1016
  }
1017
1017
  case "FETCH_AND_GO_TO_NEXT_UI": {
1018
- const y = await i(
1018
+ const m = await i(
1019
1019
  e,
1020
1020
  t,
1021
1021
  x,
1022
1022
  c,
1023
1023
  d
1024
1024
  );
1025
- y != null && y.data && $(e, y == null ? void 0 : y.data);
1025
+ m != null && m.data && $(e, m == null ? void 0 : m.data);
1026
1026
  break;
1027
1027
  }
1028
1028
  case "GET_DATA_SOURCE": {
1029
- const y = await s(
1029
+ const m = await s(
1030
1030
  e,
1031
1031
  t,
1032
1032
  x,
1033
1033
  c
1034
- ), p = (g = y == null ? void 0 : y.data) == null ? void 0 : g.content;
1034
+ ), p = (g = m == null ? void 0 : m.data) == null ? void 0 : g.content;
1035
1035
  if ((p == null ? void 0 : p.type) !== "fetch")
1036
1036
  break;
1037
1037
  const b = p == null ? void 0 : p.dataSource, N = await r(b, e, !1), j = {
1038
- ...(m = v.getState()[e]) == null ? void 0 : m.entries,
1038
+ ...(y = v.getState()[e]) == null ? void 0 : y.entries,
1039
1039
  [c]: {
1040
1040
  status: N == null ? void 0 : N.status,
1041
1041
  content: N == null ? void 0 : N.data
@@ -1070,7 +1070,7 @@ function je(e, t) {
1070
1070
  ]
1071
1071
  );
1072
1072
  }
1073
- const Xn = (e) => {
1073
+ const Hn = (e) => {
1074
1074
  const {
1075
1075
  userFlow: t,
1076
1076
  pageId: s,
@@ -1089,7 +1089,7 @@ const Xn = (e) => {
1089
1089
  ), g = {
1090
1090
  ...h,
1091
1091
  children: c ?? l
1092
- }, m = (g == null ? void 0 : g.disabled) ?? f, x = R(async () => {
1092
+ }, y = (g == null ? void 0 : g.disabled) ?? f, x = R(async () => {
1093
1093
  await _({
1094
1094
  responseKey: r,
1095
1095
  actionType: i,
@@ -1106,16 +1106,16 @@ const Xn = (e) => {
1106
1106
  _
1107
1107
  ]);
1108
1108
  return /* @__PURE__ */ o.jsx(
1109
- dt,
1109
+ _t,
1110
1110
  {
1111
1111
  ...g,
1112
- disabled: m,
1113
- onClick: () => !m && (u ?? x)()
1112
+ disabled: y,
1113
+ onClick: () => !y && (u ?? x)()
1114
1114
  }
1115
1115
  );
1116
- }, Hn = "_slotStack_12u4t_5", Le = {
1117
- slotStack: Hn
1118
- }, Wn = (e) => {
1116
+ }, Wn = "_slotStack_12u4t_5", Le = {
1117
+ slotStack: Wn
1118
+ }, Qn = (e) => {
1119
1119
  const {
1120
1120
  userFlow: t,
1121
1121
  pageId: s,
@@ -1137,19 +1137,19 @@ const Xn = (e) => {
1137
1137
  t,
1138
1138
  s,
1139
1139
  d && d.length > 0 ? d : null
1140
- ), f = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Le.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-body-${i}-${y}`)) }) : void 0, g = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Le.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-actions-${i}-${y}`)) }) : void 0, m = a.disabled || u;
1140
+ ), f = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Le.slotStack, children: h.map((x, m) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-body-${i}-${m}`)) }) : void 0, g = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Le.slotStack, children: _.map((x, m) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-actions-${i}-${m}`)) }) : void 0, y = a.disabled || u;
1141
1141
  return /* @__PURE__ */ o.jsx(
1142
- _t,
1142
+ ut,
1143
1143
  {
1144
1144
  ...a,
1145
- disabled: m,
1145
+ disabled: y,
1146
1146
  actionContent: g,
1147
1147
  children: f ?? null
1148
1148
  }
1149
1149
  );
1150
- }, Qn = "_slotStack_ivk5b_1", Yn = {
1151
- slotStack: Qn
1152
- }, Zn = (e) => {
1150
+ }, Yn = "_slotStack_ivk5b_1", Zn = {
1151
+ slotStack: Yn
1152
+ }, Fn = (e) => {
1153
1153
  const {
1154
1154
  userFlow: t,
1155
1155
  pageId: s,
@@ -1163,16 +1163,16 @@ const Xn = (e) => {
1163
1163
  dataSource: u,
1164
1164
  redirectUrl: h,
1165
1165
  dependencies: _
1166
- } = e, { getNextUI: f, fetchDataSource: g, fetchAndGetNextUI: m } = K(), { disabled: x } = I(
1166
+ } = e, { getNextUI: f, fetchDataSource: g, fetchAndGetNextUI: y } = K(), { disabled: x } = I(
1167
1167
  t,
1168
1168
  _
1169
- ), y = d ?? x, p = O(
1169
+ ), m = d ?? x, p = O(
1170
1170
  t,
1171
1171
  s,
1172
1172
  c && c.length > 0 ? c : null
1173
- ), b = p && p.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Yn.slotStack, children: p.map((j, C) => /* @__PURE__ */ o.jsx(k, { children: j }, `card-body-${i}-${C}`)) }) : null, N = R(async () => {
1173
+ ), b = p && p.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Zn.slotStack, children: p.map((j, C) => /* @__PURE__ */ o.jsx(k, { children: j }, `card-body-${i}-${C}`)) }) : null, N = R(async () => {
1174
1174
  var j, C, w;
1175
- if (!(!a || y))
1175
+ if (!(!a || m))
1176
1176
  try {
1177
1177
  const E = {
1178
1178
  ...(j = v.getState()[t]) == null ? void 0 : j.entries,
@@ -1201,7 +1201,7 @@ const Xn = (e) => {
1201
1201
  break;
1202
1202
  }
1203
1203
  case "FETCH_AND_GO_TO_NEXT_UI": {
1204
- const S = await m(
1204
+ const S = await y(
1205
1205
  t,
1206
1206
  s,
1207
1207
  E,
@@ -1220,11 +1220,11 @@ const Xn = (e) => {
1220
1220
  ), T = (C = S == null ? void 0 : S.data) == null ? void 0 : C.content;
1221
1221
  if ((T == null ? void 0 : T.type) !== "fetch")
1222
1222
  break;
1223
- const G = T == null ? void 0 : T.dataSource, M = await g(G, t, !1), J = {
1223
+ const G = T == null ? void 0 : T.dataSource, U = await g(G, t, !1), J = {
1224
1224
  ...(w = v.getState()[t]) == null ? void 0 : w.entries,
1225
1225
  [l]: {
1226
- status: M == null ? void 0 : M.status,
1227
- content: M == null ? void 0 : M.data
1226
+ status: U == null ? void 0 : U.status,
1227
+ content: U == null ? void 0 : U.data
1228
1228
  }
1229
1229
  };
1230
1230
  q(t, J);
@@ -1249,8 +1249,8 @@ const Xn = (e) => {
1249
1249
  }, [
1250
1250
  a,
1251
1251
  u,
1252
- y,
1253
1252
  m,
1253
+ y,
1254
1254
  g,
1255
1255
  f,
1256
1256
  s,
@@ -1259,21 +1259,21 @@ const Xn = (e) => {
1259
1259
  t
1260
1260
  ]);
1261
1261
  return /* @__PURE__ */ o.jsx(
1262
- ut,
1262
+ ht,
1263
1263
  {
1264
1264
  colorId: n,
1265
- disabled: y,
1266
- onClick: a && !y ? () => void N() : void 0,
1265
+ disabled: m,
1266
+ onClick: a && !m ? () => void N() : void 0,
1267
1267
  children: b
1268
1268
  }
1269
1269
  );
1270
- }, Fn = (e) => {
1270
+ }, Pn = (e) => {
1271
1271
  const { content: t, description: s, ...r } = e, i = {
1272
1272
  ...r,
1273
1273
  children: t ?? s
1274
1274
  };
1275
1275
  return /* @__PURE__ */ o.jsx(ge, { ...i });
1276
- }, Pn = (e, t, s) => {
1276
+ }, es = (e, t, s) => {
1277
1277
  const { url: r, paginationKeys: i, params: l } = e, c = [], n = (i == null ? void 0 : i.page) ?? "page";
1278
1278
  if (c.push(`${n}=${t}`), typeof s == "string") {
1279
1279
  const u = (i == null ? void 0 : i.text) ?? "text";
@@ -1290,7 +1290,7 @@ const Xn = (e) => {
1290
1290
  }, Ne = (e, t, s, r) => {
1291
1291
  const { type: i, url: l, method: c, headers: n } = e;
1292
1292
  if (i === "rest") {
1293
- const d = Pn(e, t, s), u = { ...(e == null ? void 0 : e.data) ?? {}, ...r ?? {} };
1293
+ const d = es(e, t, s), u = { ...(e == null ? void 0 : e.data) ?? {}, ...r ?? {} };
1294
1294
  return {
1295
1295
  type: "rest",
1296
1296
  url: d,
@@ -1311,7 +1311,7 @@ const Xn = (e) => {
1311
1311
  page: t
1312
1312
  }
1313
1313
  };
1314
- }, fe = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, es = (e, t) => {
1314
+ }, fe = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ts = (e, t) => {
1315
1315
  if (!t || e == null)
1316
1316
  return null;
1317
1317
  const { extractionJsonPath: s, injectionJsonPath: r } = t, i = B.value(e, s);
@@ -1334,13 +1334,13 @@ const Xn = (e) => {
1334
1334
  const _ = {};
1335
1335
  for (const [f, g] of Object.entries(s))
1336
1336
  if (typeof g == "object" && "path" in g) {
1337
- const m = g, x = (u = B.query(a, m.path)) == null ? void 0 : u[0];
1338
- m.translations && String(x) in m.translations ? _[f] = fe(
1339
- m.translations[String(x)]
1337
+ const y = g, x = (u = B.query(a, y.path)) == null ? void 0 : u[0];
1338
+ y.translations && String(x) in y.translations ? _[f] = fe(
1339
+ y.translations[String(x)]
1340
1340
  ) : _[f] = fe(x);
1341
1341
  } else {
1342
- const m = g;
1343
- _[f] = fe((h = B.query(a, m)) == null ? void 0 : h[0]);
1342
+ const y = g;
1343
+ _[f] = fe((h = B.query(a, y)) == null ? void 0 : h[0]);
1344
1344
  }
1345
1345
  return _;
1346
1346
  } else
@@ -1355,19 +1355,19 @@ const Xn = (e) => {
1355
1355
  };
1356
1356
  return { items: l, pagination: d };
1357
1357
  }, ie = ({ withPadding: e = !1 }) => {
1358
- const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: U.labelColor }, children: s });
1358
+ const t = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: M.labelColor }, children: s });
1359
1359
  return /* @__PURE__ */ o.jsx(
1360
- Lt,
1360
+ It,
1361
1361
  {
1362
1362
  formatter: t,
1363
1363
  wrapperStyle: {
1364
- fontSize: U.fontSize,
1365
- fontFamily: U.fontFamily,
1364
+ fontSize: M.fontSize,
1365
+ fontFamily: M.fontFamily,
1366
1366
  padding: e ? "1rem 0" : "0"
1367
1367
  }
1368
1368
  }
1369
1369
  );
1370
- }, ts = ({
1370
+ }, ns = ({
1371
1371
  active: e,
1372
1372
  payload: t,
1373
1373
  label: s,
@@ -1377,9 +1377,9 @@ const Xn = (e) => {
1377
1377
  if (!e || !t || !t.length)
1378
1378
  return null;
1379
1379
  const i = {
1380
- backgroundColor: U.tooltipBg,
1381
- borderRadius: U.tooltipBorderRadius,
1382
- color: U.tooltipColor,
1380
+ backgroundColor: M.tooltipBg,
1381
+ borderRadius: M.tooltipBorderRadius,
1382
+ color: M.tooltipColor,
1383
1383
  padding: "8px 12px",
1384
1384
  border: "1px solid #e5e7eb"
1385
1385
  };
@@ -1393,31 +1393,31 @@ const Xn = (e) => {
1393
1393
  t.map((c, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: c.color }, children: `${c.name}: ${c.value}` }, n))
1394
1394
  ] });
1395
1395
  }, le = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
1396
- It,
1396
+ Bt,
1397
1397
  {
1398
- content: /* @__PURE__ */ o.jsx(ts, { tooltipKey: e })
1398
+ content: /* @__PURE__ */ o.jsx(ns, { tooltipKey: e })
1399
1399
  }
1400
1400
  ), we = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
1401
- Bt,
1401
+ Kt,
1402
1402
  {
1403
1403
  dataKey: e,
1404
1404
  hide: t,
1405
1405
  tick: {
1406
- fill: U.labelColor,
1407
- fontSize: U.fontSize
1406
+ fill: M.labelColor,
1407
+ fontSize: M.fontSize
1408
1408
  }
1409
1409
  }
1410
1410
  ), Ce = () => /* @__PURE__ */ o.jsx(
1411
- Kt,
1411
+ Gt,
1412
1412
  {
1413
1413
  tick: {
1414
- fill: U.labelColor,
1415
- fontSize: U.fontSize
1414
+ fill: M.labelColor,
1415
+ fontSize: M.fontSize
1416
1416
  }
1417
1417
  }
1418
- ), ns = (e) => {
1418
+ ), ss = (e) => {
1419
1419
  const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e;
1420
- return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Gt, { data: t, children: [
1420
+ return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ut, { data: t, children: [
1421
1421
  /* @__PURE__ */ o.jsx(pe, { strokeDasharray: "3 3" }),
1422
1422
  /* @__PURE__ */ o.jsx(we, { dataKey: s }),
1423
1423
  /* @__PURE__ */ o.jsx(Ce, {}),
@@ -1434,16 +1434,16 @@ const Xn = (e) => {
1434
1434
  l
1435
1435
  ))
1436
1436
  ] }) });
1437
- }, ss = (e) => {
1437
+ }, as = (e) => {
1438
1438
  const { data: t, yKeys: s, xKey: r, tooltipKey: i } = e;
1439
- return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ut, { data: t, children: [
1439
+ return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(zt, { data: t, children: [
1440
1440
  /* @__PURE__ */ o.jsx(pe, { strokeDasharray: "3 3" }),
1441
1441
  /* @__PURE__ */ o.jsx(we, { hide: !0, dataKey: r }),
1442
1442
  /* @__PURE__ */ o.jsx(Ce, {}),
1443
1443
  /* @__PURE__ */ o.jsx(le, { tooltipKey: i }),
1444
1444
  /* @__PURE__ */ o.jsx(ie, { withPadding: !0 }),
1445
1445
  s.map((l, c) => /* @__PURE__ */ o.jsx(
1446
- zt,
1446
+ Vt,
1447
1447
  {
1448
1448
  dataKey: l,
1449
1449
  fill: V[c % V.length]
@@ -1451,16 +1451,16 @@ const Xn = (e) => {
1451
1451
  l
1452
1452
  ))
1453
1453
  ] }) });
1454
- }, as = (e) => {
1454
+ }, rs = (e) => {
1455
1455
  const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e;
1456
- return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Vt, { data: t, children: [
1456
+ return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Jt, { data: t, children: [
1457
1457
  /* @__PURE__ */ o.jsx(pe, { strokeDasharray: "3 3" }),
1458
1458
  /* @__PURE__ */ o.jsx(we, { dataKey: s }),
1459
1459
  /* @__PURE__ */ o.jsx(Ce, {}),
1460
1460
  /* @__PURE__ */ o.jsx(le, { tooltipKey: i }),
1461
1461
  /* @__PURE__ */ o.jsx(ie, {}),
1462
1462
  r.map((l, c) => /* @__PURE__ */ o.jsx(
1463
- Jt,
1463
+ Xt,
1464
1464
  {
1465
1465
  type: "monotone",
1466
1466
  dataKey: l,
@@ -1471,7 +1471,7 @@ const Xn = (e) => {
1471
1471
  l
1472
1472
  ))
1473
1473
  ] }) });
1474
- }, rs = (e) => {
1474
+ }, os = (e) => {
1475
1475
  const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e, l = ({
1476
1476
  cx: c,
1477
1477
  cy: n,
@@ -1480,25 +1480,25 @@ const Xn = (e) => {
1480
1480
  outerRadius: u,
1481
1481
  value: h
1482
1482
  }) => {
1483
- const _ = Math.PI / 180, f = 25 + a + (u - a), g = c + f * Math.cos(-(d ?? 0) * _), m = n + f * Math.sin(-(d ?? 0) * _);
1483
+ const _ = Math.PI / 180, f = 25 + a + (u - a), g = c + f * Math.cos(-(d ?? 0) * _), y = n + f * Math.sin(-(d ?? 0) * _);
1484
1484
  return /* @__PURE__ */ o.jsx(
1485
1485
  "text",
1486
1486
  {
1487
1487
  x: g,
1488
- y: m,
1489
- fill: U.labelColor,
1490
- color: U.labelColor,
1488
+ y,
1489
+ fill: M.labelColor,
1490
+ color: M.labelColor,
1491
1491
  textAnchor: "middle",
1492
1492
  dominantBaseline: "central",
1493
1493
  children: h
1494
1494
  }
1495
1495
  );
1496
1496
  };
1497
- return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Xt, { children: [
1497
+ return /* @__PURE__ */ o.jsx(oe, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ht, { children: [
1498
1498
  /* @__PURE__ */ o.jsx(le, { tooltipKey: i }),
1499
1499
  /* @__PURE__ */ o.jsx(ie, {}),
1500
1500
  /* @__PURE__ */ o.jsx(
1501
- Ht,
1501
+ Wt,
1502
1502
  {
1503
1503
  data: t,
1504
1504
  dataKey: r[0],
@@ -1506,7 +1506,7 @@ const Xn = (e) => {
1506
1506
  label: l,
1507
1507
  outerRadius: 120,
1508
1508
  children: t.map((c, n) => /* @__PURE__ */ o.jsx(
1509
- Wt,
1509
+ Qt,
1510
1510
  {
1511
1511
  fill: V[n % V.length]
1512
1512
  },
@@ -1515,11 +1515,11 @@ const Xn = (e) => {
1515
1515
  }
1516
1516
  )
1517
1517
  ] }) });
1518
- }, os = {
1519
- area: ns,
1520
- bar: ss,
1521
- line: as,
1522
- pie: rs
1518
+ }, cs = {
1519
+ area: ss,
1520
+ bar: as,
1521
+ line: rs,
1522
+ pie: os
1523
1523
  }, V = [
1524
1524
  "var(--color-primitive-palette-1-50)",
1525
1525
  "var(--color-primitive-palette-2-50)",
@@ -1538,32 +1538,32 @@ const Xn = (e) => {
1538
1538
  "var(--color-primitive-palette-15-50)",
1539
1539
  "var(--color-primitive-palette-16-50)",
1540
1540
  "var(--color-primitive-palette-17-50)"
1541
- ], U = {
1541
+ ], M = {
1542
1542
  fontFamily: "Roboto, sans-serif",
1543
1543
  fontSize: 12,
1544
1544
  labelColor: "var(--color-neutral-90)",
1545
1545
  tooltipBg: "#fff",
1546
1546
  tooltipColor: "#000",
1547
1547
  tooltipBorderRadius: "4px"
1548
- }, cs = (e) => {
1549
- const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: l, ...c } = e, n = os[c.type];
1548
+ }, is = (e) => {
1549
+ const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: l, ...c } = e, n = cs[c.type];
1550
1550
  if (!n)
1551
1551
  return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
1552
1552
  const { fetchDataSource: d } = K(), [a, u] = L(!1), [h, _] = L([]), f = async () => {
1553
- var m, x;
1553
+ var y, x;
1554
1554
  try {
1555
1555
  u(!0);
1556
- const { jsonPathData: y, mapperData: p } = l, b = Ne(
1556
+ const { jsonPathData: m, mapperData: p } = l, b = Ne(
1557
1557
  l,
1558
1558
  1
1559
1559
  ), N = await d(
1560
1560
  b,
1561
1561
  s,
1562
1562
  !1
1563
- ), j = y ? (m = Ye(N == null ? void 0 : N.data, y, p)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1563
+ ), j = m ? (y = Ye(N == null ? void 0 : N.data, m, p)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1564
1564
  _(j), u(!1);
1565
- } catch (y) {
1566
- alert(JSON.stringify(y)), u(!1);
1565
+ } catch (m) {
1566
+ alert(JSON.stringify(m)), u(!1);
1567
1567
  }
1568
1568
  };
1569
1569
  z(() => {
@@ -1574,7 +1574,7 @@ const Xn = (e) => {
1574
1574
  data: h
1575
1575
  };
1576
1576
  return a ? /* @__PURE__ */ o.jsx(Ve, { height: 400 }) : h.length > 0 ? n(g) : /* @__PURE__ */ o.jsx(ge, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1577
- }, is = (e) => {
1577
+ }, ls = (e) => {
1578
1578
  const {
1579
1579
  userFlow: t,
1580
1580
  pageId: s,
@@ -1590,7 +1590,7 @@ const Xn = (e) => {
1590
1590
  }, { getNextUI: h } = K(), [_, f] = L(c || !1), { disabled: g } = I(
1591
1591
  t,
1592
1592
  d
1593
- ), m = A(() => n && l ? `${l} *` : l ?? "", [l, n]), x = R(async () => {
1593
+ ), y = A(() => n && l ? `${l} *` : l ?? "", [l, n]), x = R(async () => {
1594
1594
  var p;
1595
1595
  try {
1596
1596
  const b = !_;
@@ -1618,26 +1618,26 @@ const Xn = (e) => {
1618
1618
  } catch (b) {
1619
1619
  console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
1620
1620
  }
1621
- }, [t, s, r, i, _]), y = (u == null ? void 0 : u.disabled) ?? g;
1621
+ }, [t, s, r, i, _]), m = (u == null ? void 0 : u.disabled) ?? g;
1622
1622
  return /* @__PURE__ */ o.jsx(
1623
- ht,
1623
+ ft,
1624
1624
  {
1625
1625
  ...u,
1626
- labelRight: m,
1626
+ labelRight: y,
1627
1627
  checked: _,
1628
- disabled: y,
1628
+ disabled: m,
1629
1629
  onChange: () => {
1630
- !y && x();
1630
+ !m && x();
1631
1631
  }
1632
1632
  }
1633
1633
  );
1634
- }, ls = "_codeEditor_1wi2p_1", ds = "_codeEditor_label_1wi2p_4", _s = "_codeEditor_wrapper_1wi2p_13", us = "_input_1wi2p_17", hs = "_preview_1wi2p_18", fs = "_preview_inner_1wi2p_33", Z = {
1635
- codeEditor: ls,
1636
- codeEditor_label: ds,
1637
- codeEditor_wrapper: _s,
1638
- input: us,
1639
- preview: hs,
1640
- preview_inner: fs
1634
+ }, ds = "_codeEditor_1wi2p_1", _s = "_codeEditor_label_1wi2p_4", us = "_codeEditor_wrapper_1wi2p_13", hs = "_input_1wi2p_17", fs = "_preview_1wi2p_18", ms = "_preview_inner_1wi2p_33", Z = {
1635
+ codeEditor: ds,
1636
+ codeEditor_label: _s,
1637
+ codeEditor_wrapper: us,
1638
+ input: hs,
1639
+ preview: fs,
1640
+ preview_inner: ms
1641
1641
  }, ys = (e) => {
1642
1642
  const {
1643
1643
  userFlow: t,
@@ -1651,14 +1651,14 @@ const Xn = (e) => {
1651
1651
  disabled: a,
1652
1652
  showPreview: u,
1653
1653
  height: h = "400px"
1654
- } = e, [_, f] = L(c ?? ""), g = ne.useThemeStore((N) => N.theme.mode), { disabled: m } = I(
1654
+ } = e, [_, f] = L(c ?? ""), g = ne.useThemeStore((N) => N.theme.mode), { disabled: y } = I(
1655
1655
  t,
1656
1656
  d
1657
- ), x = a ?? m, y = {
1657
+ ), x = a ?? y, m = {
1658
1658
  json: ve(),
1659
- markdown: Yt(),
1660
- sql: Zt(),
1661
- yaml: Ft()
1659
+ markdown: Zt(),
1660
+ sql: Ft(),
1661
+ yaml: Pt()
1662
1662
  }, p = A(() => n && r ? `${r} *` : r ?? "", [r, n]), b = (N) => {
1663
1663
  f(N);
1664
1664
  const j = {
@@ -1670,13 +1670,13 @@ const Xn = (e) => {
1670
1670
  p && p !== "" && /* @__PURE__ */ o.jsx("label", { className: Z.codeEditor_label, children: p }),
1671
1671
  /* @__PURE__ */ o.jsxs("div", { className: Z.codeEditor_wrapper, children: [
1672
1672
  /* @__PURE__ */ o.jsx(
1673
- Qt,
1673
+ Yt,
1674
1674
  {
1675
1675
  className: Z.input,
1676
1676
  value: _,
1677
1677
  height: h,
1678
1678
  placeholder: l,
1679
- extensions: [y[i] ?? ve()],
1679
+ extensions: [m[i] ?? ve()],
1680
1680
  onChange: (N) => b(N),
1681
1681
  theme: g,
1682
1682
  editable: !x
@@ -1685,9 +1685,9 @@ const Xn = (e) => {
1685
1685
  i === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: Z.preview, style: { height: h }, children: /* @__PURE__ */ o.jsx(Je, { className: Z.preview_inner, children: _ }) })
1686
1686
  ] })
1687
1687
  ] });
1688
- }, ms = "_slotStack_6n2wy_5", Ie = {
1689
- slotStack: ms
1690
- }, xs = (e) => {
1688
+ }, xs = "_slotStack_6n2wy_5", Ie = {
1689
+ slotStack: xs
1690
+ }, gs = (e) => {
1691
1691
  const {
1692
1692
  userFlow: t,
1693
1693
  pageId: s,
@@ -1707,24 +1707,24 @@ const Xn = (e) => {
1707
1707
  t,
1708
1708
  s,
1709
1709
  n && n.length > 0 ? n : null
1710
- ), g = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ie.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-body-${i}-${y}`)) }) : void 0, m = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ie.slotStack, children: f.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-top-${i}-${y}`)) }) : void 0;
1710
+ ), g = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ie.slotStack, children: _.map((x, m) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-body-${i}-${m}`)) }) : void 0, y = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ie.slotStack, children: f.map((x, m) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-top-${i}-${m}`)) }) : void 0;
1711
1711
  return /* @__PURE__ */ o.jsx(
1712
- ft,
1712
+ mt,
1713
1713
  {
1714
1714
  ...u,
1715
1715
  icon: d,
1716
1716
  headerStatusColor: h,
1717
- topContent: m,
1717
+ topContent: y,
1718
1718
  children: g
1719
1719
  }
1720
1720
  );
1721
- }, gs = "_dividerNotFront_tze3j_1", ps = {
1722
- dividerNotFront: gs
1723
- }, bs = (e) => /* @__PURE__ */ o.jsx(yt, { ...e, className: ps.dividerNotFront }), js = "_drawer_13pxo_1", Ns = "_drawerBody_13pxo_5", ws = "_drawerFooter_13pxo_11", ye = {
1724
- drawer: js,
1725
- drawerBody: Ns,
1726
- drawerFooter: ws
1727
- }, Cs = ({
1721
+ }, ps = "_dividerNotFront_tze3j_1", bs = {
1722
+ dividerNotFront: ps
1723
+ }, js = (e) => /* @__PURE__ */ o.jsx(yt, { ...e, className: bs.dividerNotFront }), Ns = "_drawer_13pxo_1", ws = "_drawerBody_13pxo_5", Cs = "_drawerFooter_13pxo_11", me = {
1724
+ drawer: Ns,
1725
+ drawerBody: ws,
1726
+ drawerFooter: Cs
1727
+ }, vs = ({
1728
1728
  userFlow: e,
1729
1729
  pageId: t,
1730
1730
  responseKey: s,
@@ -1733,12 +1733,12 @@ const Xn = (e) => {
1733
1733
  footer: l,
1734
1734
  ...c
1735
1735
  }) => {
1736
- const n = v((m) => {
1736
+ const n = v((y) => {
1737
1737
  var x;
1738
- return (x = m[e]) == null ? void 0 : x.isDrawerOpen;
1739
- }), d = v((m) => {
1738
+ return (x = y[e]) == null ? void 0 : x.isDrawerOpen;
1739
+ }), d = v((y) => {
1740
1740
  var x;
1741
- return (x = m[e]) == null ? void 0 : x.isLoading;
1741
+ return (x = y[e]) == null ? void 0 : x.isLoading;
1742
1742
  }), a = n && !d, u = {
1743
1743
  ...c,
1744
1744
  isOpen: a,
@@ -1747,19 +1747,19 @@ const Xn = (e) => {
1747
1747
  be(e), W(e, !1);
1748
1748
  }, [e]), _ = Array.isArray(r) ? O(e, t, r) : r ? /* @__PURE__ */ o.jsx(ze, { type: "h2", children: r }) : void 0, f = O(e, t, i), g = l ? O(e, t, l) : void 0;
1749
1749
  return /* @__PURE__ */ o.jsx(
1750
- mt,
1750
+ xt,
1751
1751
  {
1752
1752
  ...u,
1753
- className: ye.drawer,
1753
+ className: me.drawer,
1754
1754
  isOpen: a,
1755
1755
  onClose: h,
1756
1756
  heightGap: 0,
1757
- title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
1758
- children: /* @__PURE__ */ o.jsx("section", { className: ye.drawerBody, children: f.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${x}`)) }),
1759
- footer: g ? /* @__PURE__ */ o.jsx("div", { className: ye.drawerFooter, children: g.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${x}`)) }) : void 0
1757
+ title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
1758
+ children: /* @__PURE__ */ o.jsx("section", { className: me.drawerBody, children: f.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `drawer-body-${x}`)) }),
1759
+ footer: g ? /* @__PURE__ */ o.jsx("div", { className: me.drawerFooter, children: g.map((y, x) => /* @__PURE__ */ o.jsx(k, { children: y }, `drawer-footer-${x}`)) }) : void 0
1760
1760
  }
1761
1761
  );
1762
- }, vs = (e) => {
1762
+ }, Ss = (e) => {
1763
1763
  const {
1764
1764
  userFlow: t,
1765
1765
  pageId: s,
@@ -1788,7 +1788,7 @@ const Xn = (e) => {
1788
1788
  [n, _]
1789
1789
  );
1790
1790
  return /* @__PURE__ */ o.jsx(
1791
- xt,
1791
+ gt,
1792
1792
  {
1793
1793
  disabled: d,
1794
1794
  variant: a,
@@ -1814,10 +1814,10 @@ const Xn = (e) => {
1814
1814
  ] })
1815
1815
  }
1816
1816
  );
1817
- }, Ss = "_header_g1eri_1", Es = "_header_content_g1eri_5", Be = {
1818
- header: Ss,
1819
- header_content: Es
1820
- }, Ts = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: F(Be.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Be.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(k, { children: t }, s)) }) }), ks = (e) => {
1817
+ }, Es = "_header_g1eri_1", Ts = "_header_content_g1eri_5", Be = {
1818
+ header: Es,
1819
+ header_content: Ts
1820
+ }, ks = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: F(Be.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Be.header_content, children: e.map((t, s) => /* @__PURE__ */ o.jsx(k, { children: t }, s)) }) }), Os = (e) => {
1821
1821
  const {
1822
1822
  userFlow: t,
1823
1823
  pageId: s,
@@ -1834,14 +1834,14 @@ const Xn = (e) => {
1834
1834
  t,
1835
1835
  d
1836
1836
  ), g = i && h ? (() => {
1837
- const { href: y, target: p, download: b, ...N } = h;
1837
+ const { href: m, target: p, download: b, ...N } = h;
1838
1838
  return N;
1839
- })() : h, m = R(async () => {
1840
- var y;
1839
+ })() : h, y = R(async () => {
1840
+ var m;
1841
1841
  if (i)
1842
1842
  try {
1843
1843
  const p = {
1844
- ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1844
+ ...(m = v.getState()[t]) == null ? void 0 : m.entries,
1845
1845
  [r]: { status: 200 }
1846
1846
  };
1847
1847
  switch (q(t, p), i) {
@@ -1871,15 +1871,15 @@ const Xn = (e) => {
1871
1871
  }
1872
1872
  }, [i, _, s, c, r, n, t]), x = g.disabled ?? f;
1873
1873
  return /* @__PURE__ */ o.jsx(
1874
- gt,
1874
+ pt,
1875
1875
  {
1876
1876
  ...g,
1877
1877
  disabled: x,
1878
- onClick: i ? m : void 0,
1878
+ onClick: i ? y : void 0,
1879
1879
  children: l
1880
1880
  }
1881
1881
  );
1882
- }, Os = (e) => {
1882
+ }, As = (e) => {
1883
1883
  const {
1884
1884
  userFlow: t,
1885
1885
  pageId: s,
@@ -1896,9 +1896,9 @@ const Xn = (e) => {
1896
1896
  () => c.map((g) => ({
1897
1897
  icon: g.leftIcon,
1898
1898
  label: g.content ?? g.label ?? "",
1899
- onClick: (m) => {
1899
+ onClick: (y) => {
1900
1900
  var x;
1901
- (x = m == null ? void 0 : m.preventDefault) == null || x.call(m), _({
1901
+ (x = y == null ? void 0 : y.preventDefault) == null || x.call(y), _({
1902
1902
  responseKey: g.responseKey,
1903
1903
  actionType: g.actionType,
1904
1904
  dataSource: g.dataSource,
@@ -1910,7 +1910,7 @@ const Xn = (e) => {
1910
1910
  [c, _]
1911
1911
  );
1912
1912
  return /* @__PURE__ */ o.jsx(
1913
- pt,
1913
+ bt,
1914
1914
  {
1915
1915
  items: f,
1916
1916
  closeOnClick: n,
@@ -1920,9 +1920,9 @@ const Xn = (e) => {
1920
1920
  variant: h
1921
1921
  }
1922
1922
  );
1923
- }, As = "_modalContent_p06ci_1", $s = {
1924
- modalContent: As
1925
- }, qs = ({
1923
+ }, $s = "_modalContent_p06ci_1", qs = {
1924
+ modalContent: $s
1925
+ }, Ds = ({
1926
1926
  userFlow: e,
1927
1927
  pageId: t,
1928
1928
  responseKey: s,
@@ -1932,32 +1932,32 @@ const Xn = (e) => {
1932
1932
  headerStatusColor: c,
1933
1933
  ...n
1934
1934
  }) => {
1935
- const d = v((y) => {
1935
+ const d = v((m) => {
1936
1936
  var p;
1937
- return (p = y[e]) == null ? void 0 : p.isModalOpen;
1938
- }), a = v((y) => {
1937
+ return (p = m[e]) == null ? void 0 : p.isModalOpen;
1938
+ }), a = v((m) => {
1939
1939
  var p;
1940
- return (p = y[e]) == null ? void 0 : p.isLoading;
1940
+ return (p = m[e]) == null ? void 0 : p.isLoading;
1941
1941
  }), u = d && !a, h = {
1942
1942
  ...n
1943
1943
  }, _ = (h == null ? void 0 : h.headerStatusColor) ?? c, f = R(() => {
1944
1944
  be(e), ce(e, !1);
1945
- }, [e, s]), g = Array.isArray(r) ? O(e, t, r) : r, m = O(e, t, i), x = O(e, t, l);
1945
+ }, [e, s]), g = Array.isArray(r) ? O(e, t, r) : r, y = O(e, t, i), x = O(e, t, l);
1946
1946
  return /* @__PURE__ */ o.jsx(
1947
- bt,
1947
+ jt,
1948
1948
  {
1949
1949
  ...h,
1950
1950
  headerStatusColor: _,
1951
- header: typeof g == "string" ? g : /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((y, p) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${p}`)) }),
1952
- children: /* @__PURE__ */ o.jsx("section", { className: $s.modalContent, children: m.map((y, p) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${p}`)) }),
1953
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, p) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${p}`)) }),
1951
+ header: typeof g == "string" ? g : /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((m, p) => /* @__PURE__ */ o.jsx(k, { children: m }, `modal-header-${p}`)) }),
1952
+ children: /* @__PURE__ */ o.jsx("section", { className: qs.modalContent, children: y.map((m, p) => /* @__PURE__ */ o.jsx(k, { children: m }, `modal-body-${p}`)) }),
1953
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((m, p) => /* @__PURE__ */ o.jsx(k, { children: m }, `modal-footer-${p}`)) }),
1954
1954
  open: u,
1955
1955
  onClose: f
1956
1956
  }
1957
1957
  );
1958
- }, Ds = ({ userFlow: e, pageId: t }) => {
1958
+ }, Rs = ({ userFlow: e, pageId: t }) => {
1959
1959
  var l, c;
1960
- const s = sn(e);
1960
+ const s = an(e);
1961
1961
  if (!s)
1962
1962
  return null;
1963
1963
  const r = [
@@ -1973,7 +1973,7 @@ const Xn = (e) => {
1973
1973
  const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
1974
1974
  return /* @__PURE__ */ o.jsx(k, { children: n }, a);
1975
1975
  }) });
1976
- }, Rs = {
1976
+ }, Ls = {
1977
1977
  success: {
1978
1978
  color: "success-opacity",
1979
1979
  textColor: "success-60",
@@ -1999,19 +1999,19 @@ const Xn = (e) => {
1999
1999
  textColor: "neutral-70",
2000
2000
  iconColor: "neutral-70"
2001
2001
  }
2002
- }, Ls = (e) => {
2003
- const { content: t, variant: s = "neutral", ...r } = e, i = Rs[s], l = {
2002
+ }, Is = (e) => {
2003
+ const { content: t, variant: s = "neutral", ...r } = e, i = Ls[s], l = {
2004
2004
  ...r,
2005
2005
  children: t,
2006
2006
  color: (r == null ? void 0 : r.color) ?? i.color,
2007
2007
  textColor: (r == null ? void 0 : r.textColor) ?? i.textColor,
2008
2008
  iconColor: (r == null ? void 0 : r.iconColor) ?? i.iconColor
2009
2009
  };
2010
- return /* @__PURE__ */ o.jsx(me, { ...l });
2011
- }, Is = (e) => {
2010
+ return /* @__PURE__ */ o.jsx(ye, { ...l });
2011
+ }, Bs = (e) => {
2012
2012
  const { content: t } = e;
2013
2013
  return /* @__PURE__ */ o.jsx(Je, { children: t });
2014
- }, Bs = (e) => {
2014
+ }, Ks = (e) => {
2015
2015
  const {
2016
2016
  userFlow: t,
2017
2017
  pageId: s,
@@ -2027,32 +2027,32 @@ const Xn = (e) => {
2027
2027
  ), _ = {
2028
2028
  ...d
2029
2029
  }, f = (_ == null ? void 0 : _.disabled) ?? h, g = R(async () => {
2030
- var m;
2030
+ var y;
2031
2031
  try {
2032
2032
  const x = {
2033
- ...(m = v.getState()[t]) == null ? void 0 : m.entries,
2033
+ ...(y = v.getState()[t]) == null ? void 0 : y.entries,
2034
2034
  [r]: { status: 200 }
2035
2035
  };
2036
2036
  switch (q(t, x), i) {
2037
2037
  case "GO_TO_NEXT_UI": {
2038
- const y = await a(
2038
+ const m = await a(
2039
2039
  t,
2040
2040
  s,
2041
2041
  x,
2042
2042
  r
2043
2043
  );
2044
- y != null && y.data && $(t, y == null ? void 0 : y.data);
2044
+ m != null && m.data && $(t, m == null ? void 0 : m.data);
2045
2045
  break;
2046
2046
  }
2047
2047
  case "FETCH_AND_GO_TO_NEXT_UI": {
2048
- const y = await u(
2048
+ const m = await u(
2049
2049
  t,
2050
2050
  s,
2051
2051
  x,
2052
2052
  r,
2053
2053
  l
2054
2054
  );
2055
- y != null && y.data && $(t, y == null ? void 0 : y.data);
2055
+ m != null && m.data && $(t, m == null ? void 0 : m.data);
2056
2056
  break;
2057
2057
  }
2058
2058
  case "CLOSE_MODAL":
@@ -2073,15 +2073,15 @@ const Xn = (e) => {
2073
2073
  }
2074
2074
  }, [i, l, s, r, t]);
2075
2075
  return /* @__PURE__ */ o.jsx(
2076
- jt,
2076
+ Nt,
2077
2077
  {
2078
2078
  ..._,
2079
2079
  disabled: f,
2080
2080
  onClick: () => !f && (n ?? g)()
2081
2081
  }
2082
2082
  );
2083
- }, Ks = "_row_1bqj4_1", Gs = "_row_column_1bqj4_65", X = {
2084
- row: Ks,
2083
+ }, Gs = "_row_1bqj4_1", Us = "_row_column_1bqj4_65", X = {
2084
+ row: Gs,
2085
2085
  "row__gap-none": "_row__gap-none_1bqj4_5",
2086
2086
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
2087
2087
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -2102,7 +2102,7 @@ const Xn = (e) => {
2102
2102
  "row__align-center": "_row__align-center_1bqj4_56",
2103
2103
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
2104
2104
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
2105
- row_column: Gs,
2105
+ row_column: Us,
2106
2106
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
2107
2107
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
2108
2108
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -2191,7 +2191,7 @@ function Ze({
2191
2191
  isMulti: l = !1,
2192
2192
  debounceMs: c
2193
2193
  }) {
2194
- const n = Ue(null);
2194
+ const n = Me(null);
2195
2195
  z(() => () => {
2196
2196
  n.current !== null && (clearTimeout(n.current), n.current = null);
2197
2197
  }, []);
@@ -2201,16 +2201,16 @@ function Ze({
2201
2201
  const h = {
2202
2202
  ...(f = v.getState()[e]) == null ? void 0 : f.entries
2203
2203
  };
2204
- if (u ? (h[s] = u, q(e, h)) : (delete h[s], an(e, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2204
+ if (u ? (h[s] = u, q(e, h)) : (delete h[s], rn(e, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2205
2205
  try {
2206
- const m = await i(
2206
+ const y = await i(
2207
2207
  e,
2208
2208
  t,
2209
2209
  h,
2210
2210
  s,
2211
2211
  r === "GO_TO_NEXT_UI"
2212
2212
  );
2213
- m != null && m.data && $(e, m.data);
2213
+ y != null && y.data && $(e, y.data);
2214
2214
  } catch (g) {
2215
2215
  console.error("[useSelectChange] Failed to fetch next UI", g);
2216
2216
  }
@@ -2234,21 +2234,21 @@ function Ze({
2234
2234
  [l, c, d]
2235
2235
  );
2236
2236
  }
2237
- const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2237
+ const zs = /\{([^}]+)\}/g, Vs = (e, t) => {
2238
2238
  var s;
2239
- return t.includes("{") ? t.replace(Us, (r, i) => {
2239
+ return t.includes("{") ? t.replace(zs, (r, i) => {
2240
2240
  var c;
2241
2241
  const l = (c = B.query(e, i.trim())) == null ? void 0 : c[0];
2242
2242
  return l != null ? String(l) : "";
2243
2243
  }) : (s = B.query(e, t)) == null ? void 0 : s[0];
2244
- }, Vs = (e, t, s, r) => {
2244
+ }, Js = (e, t, s, r) => {
2245
2245
  const i = B.query(e, t);
2246
2246
  return (i == null ? void 0 : i.map((l) => {
2247
2247
  var d;
2248
- const c = zs(l, s), n = r ? (d = B.query(l, r)) == null ? void 0 : d[0] : l;
2248
+ const c = Vs(l, s), n = r ? (d = B.query(l, r)) == null ? void 0 : d[0] : l;
2249
2249
  return { label: c, value: n };
2250
2250
  })) ?? [];
2251
- }, Js = (e, t, s, r = 10) => {
2251
+ }, Xs = (e, t, s, r = 10) => {
2252
2252
  var n, d;
2253
2253
  let i, l;
2254
2254
  if (s) {
@@ -2264,9 +2264,9 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2264
2264
  total: l,
2265
2265
  hasMore: c
2266
2266
  };
2267
- }, Xs = "_selectNotFront_ch3v5_1", Fe = {
2268
- selectNotFront: Xs
2269
- }, Hs = ({
2267
+ }, Hs = "_selectNotFront_ch3v5_1", Fe = {
2268
+ selectNotFront: Hs
2269
+ }, Ws = ({
2270
2270
  userFlow: e,
2271
2271
  pageId: t,
2272
2272
  responseKey: s,
@@ -2282,7 +2282,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2282
2282
  }, { getNextUI: u, fetchDataSource: h } = K(), [_, f] = L((a == null ? void 0 : a.value) ?? ""), { disabled: g } = I(
2283
2283
  e,
2284
2284
  c
2285
- ), m = (a == null ? void 0 : a.disabled) ?? g, x = A(() => 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 = A(() => {
2285
+ ), y = (a == null ? void 0 : a.disabled) ?? g, x = A(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), m = A(() => {
2286
2286
  const j = a != null && a.isMulti ? _ : [_], C = {};
2287
2287
  return Array.isArray(j) && j.forEach((w) => {
2288
2288
  if (!w) return;
@@ -2305,52 +2305,52 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2305
2305
  jsonPathOptions: S,
2306
2306
  jsonPathValue: T,
2307
2307
  jsonPathPagination: G
2308
- } = i, M = Ne(
2308
+ } = i, U = Ne(
2309
2309
  i,
2310
2310
  w,
2311
2311
  j
2312
2312
  ), J = await h(
2313
- M,
2313
+ U,
2314
2314
  e,
2315
2315
  !1
2316
- ), D = J == null ? void 0 : J.data, ae = D ? Vs(
2316
+ ), D = J == null ? void 0 : J.data, ae = D ? Js(
2317
2317
  D,
2318
2318
  S,
2319
2319
  E,
2320
2320
  T
2321
- ) : [], { hasMore: et } = Js(
2321
+ ) : [], { hasMore: tt } = Xs(
2322
2322
  D,
2323
2323
  w,
2324
2324
  G
2325
2325
  );
2326
2326
  return {
2327
2327
  options: ae,
2328
- hasMore: et,
2328
+ hasMore: tt,
2329
2329
  additional: {
2330
2330
  page: j ? 1 : w + 1
2331
2331
  }
2332
2332
  };
2333
2333
  };
2334
2334
  return /* @__PURE__ */ o.jsx(
2335
- Nt,
2335
+ wt,
2336
2336
  {
2337
2337
  ...a,
2338
2338
  className: Fe.selectNotFront,
2339
2339
  label: x,
2340
2340
  value: _,
2341
- disabled: m,
2341
+ disabled: y,
2342
2342
  noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
2343
- onChange: (j) => !m && b(j),
2343
+ onChange: (j) => !y && b(j),
2344
2344
  loadOptions: N,
2345
2345
  additional: { page: 1 },
2346
2346
  isOptionDisabled: (j) => {
2347
2347
  const C = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
2348
- return !!(y != null && y[C]) || !!(y != null && y[w]);
2348
+ return !!(m != null && m[C]) || !!(m != null && m[w]);
2349
2349
  },
2350
2350
  debounceTimeout: 350
2351
2351
  }
2352
2352
  );
2353
- }, Ws = ({
2353
+ }, Qs = ({
2354
2354
  userFlow: e,
2355
2355
  pageId: t,
2356
2356
  responseKey: s,
@@ -2366,7 +2366,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2366
2366
  }, { getNextUI: u } = K(), [h, _] = L(a.value || ""), { disabled: f } = I(
2367
2367
  e,
2368
2368
  c
2369
- ), g = (a == null ? void 0 : a.disabled) ?? f, m = A(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), x = Ze({
2369
+ ), g = (a == null ? void 0 : a.disabled) ?? f, y = A(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), x = Ze({
2370
2370
  userFlow: e,
2371
2371
  pageId: t,
2372
2372
  responseKey: s,
@@ -2374,37 +2374,37 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2374
2374
  getNextUI: u,
2375
2375
  isMulti: a == null ? void 0 : a.isMulti,
2376
2376
  debounceMs: n
2377
- }), y = (p) => {
2377
+ }), m = (p) => {
2378
2378
  _(p), x(p);
2379
2379
  };
2380
2380
  return /* @__PURE__ */ o.jsx(
2381
- wt,
2381
+ Ct,
2382
2382
  {
2383
2383
  ...a,
2384
2384
  className: Fe.selectNotFront,
2385
- label: m,
2385
+ label: y,
2386
2386
  value: h,
2387
2387
  disabled: g,
2388
- onChange: (p) => !g && y(p)
2388
+ onChange: (p) => !g && m(p)
2389
2389
  }
2390
2390
  );
2391
- }, Qs = (e) => {
2391
+ }, Ys = (e) => {
2392
2392
  const { dataSource: t } = e;
2393
- return t ? /* @__PURE__ */ o.jsx(Hs, { ...e }) : /* @__PURE__ */ o.jsx(Ws, { ...e });
2394
- }, Ys = "_spacing_19hqa_1", Zs = "_spacing__xxs_19hqa_1", Fs = "_spacing__xs_19hqa_4", Ps = "_spacing__sm_19hqa_7", ea = "_spacing__md_19hqa_10", ta = "_spacing__lg_19hqa_13", na = "_spacing__xl_19hqa_16", sa = "_spacing__xxl_19hqa_19", aa = "_spacing__xxxl_19hqa_22", Ke = {
2395
- spacing: Ys,
2396
- spacing__xxs: Zs,
2397
- spacing__xs: Fs,
2398
- spacing__sm: Ps,
2399
- spacing__md: ea,
2400
- spacing__lg: ta,
2401
- spacing__xl: na,
2402
- spacing__xxl: sa,
2403
- spacing__xxxl: aa
2404
- }, ra = (e) => {
2393
+ return t ? /* @__PURE__ */ o.jsx(Ws, { ...e }) : /* @__PURE__ */ o.jsx(Qs, { ...e });
2394
+ }, Zs = "_spacing_19hqa_1", Fs = "_spacing__xxs_19hqa_1", Ps = "_spacing__xs_19hqa_4", ea = "_spacing__sm_19hqa_7", ta = "_spacing__md_19hqa_10", na = "_spacing__lg_19hqa_13", sa = "_spacing__xl_19hqa_16", aa = "_spacing__xxl_19hqa_19", ra = "_spacing__xxxl_19hqa_22", Ke = {
2395
+ spacing: Zs,
2396
+ spacing__xxs: Fs,
2397
+ spacing__xs: Ps,
2398
+ spacing__sm: ea,
2399
+ spacing__md: ta,
2400
+ spacing__lg: na,
2401
+ spacing__xl: sa,
2402
+ spacing__xxl: aa,
2403
+ spacing__xxxl: ra
2404
+ }, oa = (e) => {
2405
2405
  const { size: t } = e, s = F(Ke.spacing, Ke[`spacing__${t}`]);
2406
2406
  return /* @__PURE__ */ o.jsx("div", { className: s });
2407
- }, oa = (e) => {
2407
+ }, ca = (e) => {
2408
2408
  const {
2409
2409
  userFlow: t,
2410
2410
  pageId: s,
@@ -2420,7 +2420,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2420
2420
  }, { getNextUI: h } = K(), [_, f] = L(c || !1), { disabled: g } = I(
2421
2421
  t,
2422
2422
  d
2423
- ), m = (u == null ? void 0 : u.disabled) ?? g, x = A(() => n && l ? `${l} *` : l ?? "", [l, n]), y = R(async () => {
2423
+ ), y = (u == null ? void 0 : u.disabled) ?? g, x = A(() => n && l ? `${l} *` : l ?? "", [l, n]), m = R(async () => {
2424
2424
  var p;
2425
2425
  try {
2426
2426
  const b = !_;
@@ -2450,28 +2450,28 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2450
2450
  }
2451
2451
  }, [t, s, r, i, _]);
2452
2452
  return /* @__PURE__ */ o.jsx(
2453
- Ct,
2453
+ vt,
2454
2454
  {
2455
2455
  ...u,
2456
2456
  label: x,
2457
2457
  checked: _,
2458
- disabled: m,
2459
- onChange: () => !m && y()
2458
+ disabled: y,
2459
+ onChange: () => !y && m()
2460
2460
  }
2461
2461
  );
2462
- }, ca = "_tableSkeleton_3nr9n_1", ia = "_tableArrayPills_3nr9n_7", Pe = {
2463
- tableSkeleton: ca,
2464
- tableArrayPills: ia
2465
- }, la = ({ values: e }) => {
2462
+ }, ia = "_tableSkeleton_3nr9n_1", la = "_tableArrayPills_3nr9n_7", Pe = {
2463
+ tableSkeleton: ia,
2464
+ tableArrayPills: la
2465
+ }, da = ({ values: e }) => {
2466
2466
  const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
2467
2467
  return /* @__PURE__ */ o.jsxs("div", { className: Pe.tableArrayPills, children: [
2468
- s.map((i, l) => /* @__PURE__ */ o.jsx(me, { children: String(i) }, l)),
2469
- r > 0 && /* @__PURE__ */ o.jsxs(me, { outlined: !0, children: [
2468
+ s.map((i, l) => /* @__PURE__ */ o.jsx(ye, { children: String(i) }, l)),
2469
+ r > 0 && /* @__PURE__ */ o.jsxs(ye, { outlined: !0, children: [
2470
2470
  "+",
2471
2471
  r
2472
2472
  ] })
2473
2473
  ] });
2474
- }, da = ({
2474
+ }, _a = ({
2475
2475
  userFlow: e,
2476
2476
  pageId: t,
2477
2477
  tableResponseKey: s,
@@ -2487,19 +2487,19 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2487
2487
  responseKey: h,
2488
2488
  dataSource: _
2489
2489
  } = a.props, f = R(async () => {
2490
- var g, m, x;
2490
+ var g, y, x;
2491
2491
  try {
2492
- const y = {
2492
+ const m = {
2493
2493
  ...(g = v.getState()[e]) == null ? void 0 : g.entries,
2494
2494
  [h]: { status: 200 },
2495
2495
  [s]: [{ ...i }]
2496
2496
  };
2497
- switch (q(e, y), u) {
2497
+ switch (q(e, m), u) {
2498
2498
  case "GO_TO_NEXT_UI": {
2499
2499
  const p = await l(
2500
2500
  e,
2501
2501
  t,
2502
- y,
2502
+ m,
2503
2503
  h
2504
2504
  );
2505
2505
  p != null && p.data && $(e, p == null ? void 0 : p.data);
@@ -2509,7 +2509,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2509
2509
  const p = await c(
2510
2510
  e,
2511
2511
  t,
2512
- y,
2512
+ m,
2513
2513
  h,
2514
2514
  _
2515
2515
  );
@@ -2520,9 +2520,9 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2520
2520
  const p = await l(
2521
2521
  e,
2522
2522
  t,
2523
- y,
2523
+ m,
2524
2524
  h
2525
- ), b = (m = p == null ? void 0 : p.data) == null ? void 0 : m.content;
2525
+ ), b = (y = p == null ? void 0 : p.data) == null ? void 0 : y.content;
2526
2526
  if ((b == null ? void 0 : b.type) !== "fetch") break;
2527
2527
  const N = b == null ? void 0 : b.dataSource, j = await n(
2528
2528
  N,
@@ -2550,14 +2550,14 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2550
2550
  console.warn(`Unhandled actionType: ${u}`);
2551
2551
  break;
2552
2552
  }
2553
- } catch (y) {
2554
- alert(JSON.stringify(y));
2553
+ } catch (m) {
2554
+ alert(JSON.stringify(m));
2555
2555
  }
2556
2556
  }, [u, _, t, h, e]);
2557
- return st(a, {
2557
+ return at(a, {
2558
2558
  onClick: f
2559
2559
  });
2560
- }, _a = () => /* @__PURE__ */ o.jsx("div", { className: Pe.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2560
+ }, ua = () => /* @__PURE__ */ o.jsx("div", { className: Pe.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2561
2561
  Ve,
2562
2562
  {
2563
2563
  maxWidth: "100%",
@@ -2565,7 +2565,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2565
2565
  radius: 8
2566
2566
  },
2567
2567
  `tableSkeletonBase${t}`
2568
- )) }), ua = ({
2568
+ )) }), ha = ({
2569
2569
  userFlow: e,
2570
2570
  pageId: t,
2571
2571
  responseKey: s,
@@ -2575,13 +2575,13 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2575
2575
  ...c
2576
2576
  }) => {
2577
2577
  var N, j, C;
2578
- const { fetchDataSource: n } = K(), [d, a] = L(!1), [u, h] = L(1), [_, f] = L(null), g = Ue(
2578
+ const { fetchDataSource: n } = K(), [d, a] = L(!1), [u, h] = L(1), [_, f] = L(null), g = Me(
2579
2579
  /* @__PURE__ */ new Map([[1, null]])
2580
- ), m = A(() => {
2580
+ ), y = A(() => {
2581
2581
  if (l != null && l.length)
2582
2582
  return l.map((w, E) => ({
2583
2583
  renderContent: (S) => /* @__PURE__ */ o.jsx(
2584
- da,
2584
+ _a,
2585
2585
  {
2586
2586
  userFlow: e,
2587
2587
  pageId: t,
@@ -2606,11 +2606,11 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2606
2606
  G && w === 1 && (g.current = /* @__PURE__ */ new Map([[1, null]]));
2607
2607
  try {
2608
2608
  a(!0);
2609
- const M = G ? g.current.get(w) ?? null : null, J = Ne(
2609
+ const U = G ? g.current.get(w) ?? null : null, J = Ne(
2610
2610
  i,
2611
2611
  w,
2612
2612
  void 0,
2613
- M
2613
+ U
2614
2614
  ), D = await n(
2615
2615
  J,
2616
2616
  e,
@@ -2624,17 +2624,17 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2624
2624
  T
2625
2625
  )
2626
2626
  ), G) {
2627
- const ae = es(
2627
+ const ae = ts(
2628
2628
  D == null ? void 0 : D.data,
2629
2629
  G
2630
2630
  );
2631
2631
  ae && g.current.set(w + 1, ae);
2632
2632
  }
2633
2633
  a(!1);
2634
- } catch (M) {
2635
- console.error("[TableNotFront] fetchData:", M), a(!1);
2634
+ } catch (U) {
2635
+ console.error("[TableNotFront] fetchData:", U), a(!1);
2636
2636
  }
2637
- }, y = (w) => {
2637
+ }, m = (w) => {
2638
2638
  h(w), x(w);
2639
2639
  };
2640
2640
  z(() => {
@@ -2648,34 +2648,34 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2648
2648
  ...w,
2649
2649
  renderCell: (T) => {
2650
2650
  const G = w.accessor ? T[w.accessor] : void 0;
2651
- return Array.isArray(G) ? /* @__PURE__ */ o.jsx(la, { values: G }) : G ?? "";
2651
+ return Array.isArray(G) ? /* @__PURE__ */ o.jsx(da, { values: G }) : G ?? "";
2652
2652
  }
2653
2653
  } : w;
2654
2654
  }), [_ == null ? void 0 : _.items, c == null ? void 0 : c.columns]), b = {
2655
2655
  ...c,
2656
2656
  data: _ == null ? void 0 : _.items,
2657
2657
  columns: p,
2658
- rightActions: m
2658
+ rightActions: y
2659
2659
  };
2660
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(_a, {}) : _ && ((N = _ == null ? void 0 : _.items) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2661
- /* @__PURE__ */ o.jsx(vt, { ...b }),
2660
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(ua, {}) : _ && ((N = _ == null ? void 0 : _.items) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2661
+ /* @__PURE__ */ o.jsx(St, { ...b }),
2662
2662
  (_ == null ? void 0 : _.pagination) && ((j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2663
- St,
2663
+ Et,
2664
2664
  {
2665
2665
  classname: { global: "row__end" },
2666
2666
  page: u,
2667
2667
  size: _ == null ? void 0 : _.pagination.size,
2668
2668
  total: (C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.total,
2669
- onChange: y
2669
+ onChange: m
2670
2670
  }
2671
2671
  )
2672
2672
  ] }) : /* @__PURE__ */ o.jsx(ge, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
2673
- }, ha = "_tabsPanel_kvslb_1", fa = {
2674
- tabsPanel: ha
2673
+ }, fa = "_tabsPanel_kvslb_1", ma = {
2674
+ tabsPanel: fa
2675
2675
  }, ya = ({ userFlow: e, pageId: t, components: s }) => {
2676
2676
  const r = O(e, t, s);
2677
- return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: fa.tabsPanel, children: r.map((i, l) => /* @__PURE__ */ o.jsx(k, { children: i }, `tabs-panel-${l}`)) }) : null;
2678
- }, ma = ({
2677
+ return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: ma.tabsPanel, children: r.map((i, l) => /* @__PURE__ */ o.jsx(k, { children: i }, `tabs-panel-${l}`)) }) : null;
2678
+ }, xa = ({
2679
2679
  userFlow: e,
2680
2680
  pageId: t,
2681
2681
  hash: s,
@@ -2705,7 +2705,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2705
2705
  q(e, u);
2706
2706
  };
2707
2707
  return /* @__PURE__ */ o.jsx(
2708
- Et,
2708
+ Tt,
2709
2709
  {
2710
2710
  className: l,
2711
2711
  activeIndex: i,
@@ -2713,7 +2713,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2713
2713
  onClick: d
2714
2714
  }
2715
2715
  );
2716
- }, xa = (e) => {
2716
+ }, ga = (e) => {
2717
2717
  const {
2718
2718
  userFlow: t,
2719
2719
  pageId: s,
@@ -2728,26 +2728,26 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2728
2728
  }, [u, h] = L((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = I(
2729
2729
  t,
2730
2730
  n
2731
- ), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() => c && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), m = (x) => {
2731
+ ), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() => c && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), y = (x) => {
2732
2732
  var p;
2733
- const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2734
- h(y), q(t, { [l]: y });
2733
+ const m = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2734
+ h(m), q(t, { [l]: m });
2735
2735
  };
2736
2736
  return z(() => {
2737
2737
  h((a == null ? void 0 : a.value) ?? "");
2738
2738
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
2739
- Tt,
2739
+ kt,
2740
2740
  {
2741
2741
  ...a,
2742
2742
  label: g,
2743
2743
  value: u,
2744
2744
  disabled: f,
2745
- onChange: (x) => !f && m(x)
2745
+ onChange: (x) => !f && y(x)
2746
2746
  }
2747
2747
  );
2748
- }, ga = "_textFieldNotFront_1n8fy_1", pa = {
2749
- textFieldNotFront: ga
2750
- }, ba = (e) => {
2748
+ }, pa = "_textFieldNotFront_1n8fy_1", ba = {
2749
+ textFieldNotFront: pa
2750
+ }, ja = (e) => {
2751
2751
  const {
2752
2752
  userFlow: t,
2753
2753
  pageId: s,
@@ -2762,30 +2762,30 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2762
2762
  }, [u, h] = L((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = I(
2763
2763
  t,
2764
2764
  n
2765
- ), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), m = (x) => {
2765
+ ), f = (a == null ? void 0 : a.disabled) ?? _, g = A(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), y = (x) => {
2766
2766
  var b;
2767
- const y = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
2768
- h(y);
2767
+ const m = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
2768
+ h(m);
2769
2769
  const p = {
2770
- [l]: y
2770
+ [l]: m
2771
2771
  };
2772
2772
  q(t, p);
2773
2773
  };
2774
2774
  return z(() => {
2775
2775
  h((a == null ? void 0 : a.value) ?? "");
2776
2776
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
2777
- kt,
2777
+ Ot,
2778
2778
  {
2779
2779
  ...a,
2780
- className: pa.textFieldNotFront,
2780
+ className: ba.textFieldNotFront,
2781
2781
  allowClear: !1,
2782
2782
  label: g,
2783
2783
  value: u,
2784
2784
  disabled: f,
2785
- onChange: (x) => !f && m(x)
2785
+ onChange: (x) => !f && y(x)
2786
2786
  }
2787
2787
  );
2788
- }, ja = ({
2788
+ }, Na = ({
2789
2789
  userFlow: e,
2790
2790
  pageId: t,
2791
2791
  responseKey: s,
@@ -2821,10 +2821,10 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2821
2821
  onClose: n
2822
2822
  });
2823
2823
  }, [n, e]), null;
2824
- }, Na = "_tooltipNotFront_106iw_1", wa = "_tooltipNotFront_content_106iw_5", Ge = {
2825
- tooltipNotFront: Na,
2826
- tooltipNotFront_content: wa
2827
- }, Ca = (e) => {
2824
+ }, wa = "_tooltipNotFront_106iw_1", Ca = "_tooltipNotFront_content_106iw_5", Ge = {
2825
+ tooltipNotFront: wa,
2826
+ tooltipNotFront_content: Ca
2827
+ }, va = (e) => {
2828
2828
  const {
2829
2829
  userFlow: t,
2830
2830
  pageId: s,
@@ -2842,7 +2842,7 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2842
2842
  c != null && c.length ? c : null
2843
2843
  ), _ = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ge.tooltipNotFront_content, children: h.map((f, g) => /* @__PURE__ */ o.jsx(k, { children: f }, `tooltip-${i}-${g}`)) }) : null;
2844
2844
  return /* @__PURE__ */ o.jsx(
2845
- Ot,
2845
+ At,
2846
2846
  {
2847
2847
  className: Ge.tooltipNotFront,
2848
2848
  label: n,
@@ -2853,13 +2853,13 @@ const Us = /\{([^}]+)\}/g, zs = (e, t) => {
2853
2853
  }
2854
2854
  );
2855
2855
  };
2856
- function Ga({
2856
+ function Ma({
2857
2857
  routes: e,
2858
2858
  renderPage: t,
2859
2859
  renderFallback: s,
2860
2860
  redirectTo: r = "/"
2861
2861
  }) {
2862
- return /* @__PURE__ */ o.jsxs(Pt, { children: [
2862
+ return /* @__PURE__ */ o.jsxs(en, { children: [
2863
2863
  e.map((i) => /* @__PURE__ */ o.jsx(
2864
2864
  Ee,
2865
2865
  {
@@ -2868,16 +2868,16 @@ function Ga({
2868
2868
  },
2869
2869
  `${i.path}:${i.sessionName}`
2870
2870
  )),
2871
- /* @__PURE__ */ o.jsx(Ee, { path: "*", element: /* @__PURE__ */ o.jsx(en, { to: r, replace: !0 }) })
2871
+ /* @__PURE__ */ o.jsx(Ee, { path: "*", element: /* @__PURE__ */ o.jsx(tn, { to: r, replace: !0 }) })
2872
2872
  ] });
2873
2873
  }
2874
- function Ma({
2874
+ function za({
2875
2875
  sessionName: e,
2876
2876
  apiConfig: t,
2877
2877
  onResolveComponentProps: s,
2878
2878
  children: r
2879
2879
  }) {
2880
- const i = va(
2880
+ const i = Sa(
2881
2881
  e,
2882
2882
  t,
2883
2883
  null,
@@ -2888,7 +2888,7 @@ function Ma({
2888
2888
  r
2889
2889
  ] });
2890
2890
  }
2891
- const Me = (e, t, s, r, i) => {
2891
+ const Ue = (e, t, s, r, i) => {
2892
2892
  const l = O(
2893
2893
  e,
2894
2894
  t,
@@ -2898,7 +2898,7 @@ const Me = (e, t, s, r, i) => {
2898
2898
  switch (s) {
2899
2899
  case "body":
2900
2900
  return /* @__PURE__ */ o.jsx(
2901
- An,
2901
+ $n,
2902
2902
  {
2903
2903
  ...r,
2904
2904
  inputs: l || []
@@ -2907,7 +2907,7 @@ const Me = (e, t, s, r, i) => {
2907
2907
  );
2908
2908
  case "header":
2909
2909
  return /* @__PURE__ */ o.jsx(
2910
- Ts,
2910
+ ks,
2911
2911
  {
2912
2912
  ...r,
2913
2913
  components: l || []
@@ -2917,44 +2917,44 @@ const Me = (e, t, s, r, i) => {
2917
2917
  default:
2918
2918
  return null;
2919
2919
  }
2920
- }, va = (e, t, s, r) => {
2920
+ }, Sa = (e, t, s, r) => {
2921
2921
  var _, f, g;
2922
- const [i, l] = L(!1), c = v((m) => m), n = (_ = c[e]) == null ? void 0 : _.currentPageId;
2922
+ const [i, l] = L(!1), c = v((y) => y), n = (_ = c[e]) == null ? void 0 : _.currentPageId;
2923
2923
  z(() => {
2924
2924
  if (typeof window > "u") return;
2925
- const m = new URL(window.location.href), x = m.searchParams.get("sessionId");
2926
- x && (sessionStorage.setItem("sessionId", x), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
2925
+ const y = new URL(window.location.href), x = y.searchParams.get("sessionId");
2926
+ x && (sessionStorage.setItem("sessionId", x), y.searchParams.delete("sessionId"), window.history.replaceState({}, "", y.toString()));
2927
2927
  }, []);
2928
- const d = n ? Me(
2928
+ const d = n ? Ue(
2929
2929
  e,
2930
2930
  n,
2931
2931
  "header",
2932
2932
  ((f = c[e].pages[n].page) == null ? void 0 : f.header) || null,
2933
2933
  r
2934
- ) : null, a = n ? Me(
2934
+ ) : null, a = n ? Ue(
2935
2935
  e,
2936
2936
  n,
2937
2937
  "body",
2938
2938
  ((g = c[e].pages[n].page) == null ? void 0 : g.body) || null,
2939
2939
  r
2940
2940
  ) : null, u = A(() => {
2941
- var m;
2941
+ var y;
2942
2942
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2943
- ((m = c[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(At, {}),
2943
+ ((y = c[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ o.jsx($t, {}),
2944
2944
  d,
2945
2945
  a,
2946
- n && /* @__PURE__ */ o.jsx(Ds, { userFlow: e, pageId: n }),
2947
- c[e] && /* @__PURE__ */ o.jsx($t, {})
2946
+ n && /* @__PURE__ */ o.jsx(Rs, { userFlow: e, pageId: n }),
2947
+ c[e] && /* @__PURE__ */ o.jsx(qt, {})
2948
2948
  ] });
2949
2949
  }, [d, a, n, e]), h = async () => {
2950
2950
  try {
2951
- const m = await Qe(
2951
+ const y = await Qe(
2952
2952
  t,
2953
2953
  e
2954
- ), x = m == null ? void 0 : m.data, y = x == null ? void 0 : x.content;
2955
- (m == null ? void 0 : m.status) === 200 ? de(e, t, y, x == null ? void 0 : x.sessionState) : l(!0);
2956
- } catch (m) {
2957
- console.error("[not-page]: API call failed", m), l(!0);
2954
+ ), x = y == null ? void 0 : y.data, m = x == null ? void 0 : x.content;
2955
+ (y == null ? void 0 : y.status) === 200 ? de(e, t, m, x == null ? void 0 : x.sessionState) : l(!0);
2956
+ } catch (y) {
2957
+ console.error("[not-page]: API call failed", y), l(!0);
2958
2958
  }
2959
2959
  };
2960
2960
  return z(() => {
@@ -2963,21 +2963,45 @@ const Me = (e, t, s, r, i) => {
2963
2963
  "not api config",
2964
2964
  "not userFlow"
2965
2965
  ));
2966
- const m = "avocado-theme-mode-changed", x = (y) => {
2967
- const p = y.detail;
2966
+ const y = "avocado-theme-mode-changed", x = (m) => {
2967
+ const p = m.detail;
2968
2968
  ne.setThemeMode(p);
2969
2969
  };
2970
- return window.addEventListener(m, x), () => {
2971
- window.removeEventListener(m, x);
2970
+ return window.addEventListener(y, x), () => {
2971
+ window.removeEventListener(y, x);
2972
2972
  };
2973
2973
  }, []), i && console.error("[not-page]: No render page"), u;
2974
2974
  };
2975
+ function Ea(e) {
2976
+ const t = e.replace(/\/{2,}/g, "/");
2977
+ return !t || t === "/" ? "/" : t.replace(/\/+$/, "");
2978
+ }
2979
+ function Va(e, t) {
2980
+ return t.requiredPermissions.length === 0 ? !0 : t.requiredPermissions.some(
2981
+ (s) => e.includes(s)
2982
+ );
2983
+ }
2984
+ function et(e, t) {
2985
+ return e === t || e.startsWith(`${t}/`);
2986
+ }
2987
+ function Ja(e, t) {
2988
+ return e.filter((s) => et(s.path, t));
2989
+ }
2990
+ function Xa(e, t) {
2991
+ const s = Ea(e);
2992
+ return et(s, t) ? s.slice(t.length) || "/" : s;
2993
+ }
2975
2994
  export {
2976
- cs as Chart,
2977
- Ga as NotFrontDynamicRouter,
2978
- Ma as NotFrontPage,
2995
+ is as Chart,
2996
+ Ma as NotFrontDynamicRouter,
2997
+ za as NotFrontPage,
2979
2998
  Ms as Row,
2980
- un as heading,
2981
- hn as text,
2982
- va as usePage
2999
+ hn as heading,
3000
+ Ea as normalizePathname,
3001
+ et as pathBelongsToPrefix,
3002
+ Ja as selectDynamicRoutesUnderPrefix,
3003
+ Xa as stripPrefixFromPathname,
3004
+ fn as text,
3005
+ Sa as usePage,
3006
+ Va as userCanAccessDynamicRoute
2983
3007
  };