@foris/avocado-not-front 2.0.0 → 2.0.2

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,59 +1,63 @@
1
1
  import V from "axios";
2
2
  import { create as Ue } from "zustand";
3
- import Ve, { useEffect as J, useMemo as R, useState as S, Fragment as T, useCallback as D, useRef as Je, cloneElement as He } from "react";
3
+ import Ve, { useEffect as J, useMemo as O, useState as q, Fragment as $, useCallback as D, useRef as Je, cloneElement as He } from "react";
4
4
  import { Heading as Ae, Text as Xe, ThemeStore as ue, Breadcrumbs as We, Button as Qe, CardNotification as he, Checkbox as Ye, PreviewerMarkdown as Ze, Divider as Fe, SkeletonBase as Oe, Modal as Pe, Pill as de, RoundButton as et, SelectPagination as tt, Select as nt, Switch as rt, Table as st, Pager as at, TextField as ot, toast as W, Accordion as ct, Drawer as it, Loading as lt, Toaster as dt } from "@foris/avocado-suite";
5
5
  import { SummaryCard as _t, PromptCodeEditor as ut } from "@foris/ai-agent";
6
6
  import ht from "@uiw/react-codemirror";
7
7
  import { json as be } from "@codemirror/lang-json";
8
8
  import { markdown as ft } from "@codemirror/lang-markdown";
9
9
  import { sql as yt } from "@codemirror/lang-sql";
10
- import { yaml as xt } from "@codemirror/lang-yaml";
10
+ import { yaml as mt } from "@codemirror/lang-yaml";
11
11
  import B from "jsonpath";
12
- import { Legend as mt, Tooltip as gt, XAxis as pt, YAxis as bt, ResponsiveContainer as te, AreaChart as jt, CartesianGrid as fe, Area as wt, BarChart as Ct, Bar as Nt, LineChart as vt, Line as Et, PieChart as kt, Pie as St, Cell as qt } from "recharts";
13
- const v = Ue(() => ({})), oe = (e, t, s) => {
14
- const r = s == null ? void 0 : s.hash;
12
+ import { Legend as xt, Tooltip as gt, XAxis as pt, YAxis as bt, ResponsiveContainer as te, AreaChart as jt, CartesianGrid as fe, Area as wt, BarChart as Ct, Bar as Nt, LineChart as vt, Line as Et, PieChart as kt, Pie as qt, Cell as St } from "recharts";
13
+ const v = Ue(() => ({})), oe = (e, t, s, r) => {
14
+ const l = s == null ? void 0 : s.hash, o = r && Object.keys(r).length > 0 ? { ...r } : {};
15
15
  v.setState((i) => {
16
- var o;
16
+ var n;
17
17
  return {
18
18
  ...i,
19
19
  [e]: {
20
20
  ...i[e],
21
21
  apiConfig: t,
22
- currentPageId: r,
22
+ currentPageId: l,
23
23
  isLoading: !1,
24
24
  isModalOpen: !0,
25
25
  isDrawerOpen: !1,
26
- entries: {},
26
+ entries: o,
27
27
  overlay: null,
28
28
  pages: {
29
- ...(o = i[e]) == null ? void 0 : o.pages,
30
- [r]: {
29
+ ...(n = i[e]) == null ? void 0 : n.pages,
30
+ [l]: {
31
31
  page: s
32
32
  }
33
33
  }
34
34
  }
35
35
  };
36
36
  });
37
- }, Te = (e, t) => t.length === 0 ? e : Object.fromEntries(
38
- Object.entries(e).filter(
39
- ([s]) => !t.includes(s)
40
- )
41
- ), At = (e, t, s, r) => {
42
- sessionStorage.setItem("sessionId", s), v.setState((i) => {
43
- const o = i[e] ?? {}, l = o.entries ?? {}, n = Te(
44
- l,
45
- r
37
+ }, Te = (e, t, s) => {
38
+ const r = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
39
+ return t.length === 0 ? e : Object.fromEntries(
40
+ Object.entries(r).filter(
41
+ ([l]) => !t.includes(l)
42
+ )
43
+ );
44
+ }, At = (e, t, s, r, l) => {
45
+ sessionStorage.setItem("sessionId", s), v.setState((o) => {
46
+ const i = o[e] ?? {}, n = i.entries ?? {}, d = Te(
47
+ n,
48
+ r,
49
+ l
46
50
  );
47
51
  return {
48
- ...i,
52
+ ...o,
49
53
  [e]: {
50
- ...o,
54
+ ...i,
51
55
  currentPageId: t.hash,
52
- entries: n,
56
+ entries: d,
53
57
  isLoading: !1,
54
58
  overlay: null,
55
59
  pages: {
56
- ...o.pages,
60
+ ...i.pages,
57
61
  [t.hash]: {
58
62
  page: { ...t }
59
63
  }
@@ -61,24 +65,25 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
61
65
  }
62
66
  };
63
67
  });
64
- }, Ot = (e, t, s) => {
65
- v.setState((r) => {
66
- var d;
67
- const i = r[e] ?? {}, o = i.entries ?? {}, l = Te(
68
- o,
69
- s
70
- ), n = (d = t.components) == null ? void 0 : d.some(
71
- (a) => a.component === "drawer"
68
+ }, Ot = (e, t, s, r) => {
69
+ v.setState((l) => {
70
+ var a;
71
+ const o = l[e] ?? {}, i = o.entries ?? {}, n = Te(
72
+ i,
73
+ s,
74
+ r
75
+ ), d = (a = t.components) == null ? void 0 : a.some(
76
+ (u) => u.component === "drawer"
72
77
  );
73
78
  return {
74
- ...r,
79
+ ...l,
75
80
  [e]: {
76
- ...i,
77
- entries: l,
81
+ ...o,
82
+ entries: n,
78
83
  overlay: t,
79
84
  isLoading: !1,
80
- isModalOpen: !n,
81
- isDrawerOpen: !!n
85
+ isModalOpen: !d,
86
+ isDrawerOpen: !!d
82
87
  }
83
88
  };
84
89
  });
@@ -93,17 +98,24 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
93
98
  }, Tt = (e) => {
94
99
  var s;
95
100
  return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
96
- }, q = (e, t) => {
97
- const { content: s, sessionId: r, deprecatedStateKeys: i = [] } = t;
101
+ }, S = (e, t) => {
102
+ const {
103
+ content: s,
104
+ sessionId: r,
105
+ deprecatedStateKeys: l = [],
106
+ sessionState: o
107
+ } = t;
98
108
  s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? At(
99
109
  e,
100
110
  s,
101
111
  r,
102
- i
112
+ l,
113
+ o
103
114
  ) : Ot(
104
115
  e,
105
116
  s,
106
- i
117
+ l,
118
+ o
107
119
  ));
108
120
  }, L = (e, t) => {
109
121
  v.setState((s) => {
@@ -128,7 +140,7 @@ const v = Ue(() => ({})), oe = (e, t, s) => {
128
140
  isLoading: t
129
141
  }
130
142
  }));
131
- }, xe = (e, t) => {
143
+ }, me = (e, t) => {
132
144
  v.setState((s) => ({
133
145
  ...s,
134
146
  [e]: {
@@ -165,12 +177,12 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
165
177
  e ? s(e) : t(void 0);
166
178
  }), P = [];
167
179
  }, Rt = async (e) => {
168
- var r, i;
180
+ var r, l;
169
181
  const t = e == null ? void 0 : e.config;
170
182
  if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
171
183
  const o = $t(t);
172
184
  if (o) {
173
- const n = (i = v.getState()[o]) == null ? void 0 : i.apiConfig;
185
+ const n = (l = v.getState()[o]) == null ? void 0 : l.apiConfig;
174
186
  if (!n)
175
187
  return Promise.reject(e);
176
188
  if (n.onAuthenticationError || typeof n.headers == "function") {
@@ -238,8 +250,8 @@ function Bt() {
238
250
  if (Ne)
239
251
  return Q;
240
252
  Ne = 1;
241
- var e = Ve, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
242
- function l(n, d, a) {
253
+ var e = Ve, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
254
+ function i(n, d, a) {
243
255
  var u, f = {}, _ = null, h = null;
244
256
  a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
245
257
  for (u in d)
@@ -247,9 +259,9 @@ function Bt() {
247
259
  if (n && n.defaultProps)
248
260
  for (u in d = n.defaultProps, d)
249
261
  f[u] === void 0 && (f[u] = d[u]);
250
- return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: i.current };
262
+ return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: l.current };
251
263
  }
252
- return Q.Fragment = s, Q.jsx = l, Q.jsxs = l, Q;
264
+ return Q.Fragment = s, Q.jsx = i, Q.jsxs = i, Q;
253
265
  }
254
266
  $e.exports = Bt();
255
267
  var c = $e.exports;
@@ -275,28 +287,42 @@ const It = (e) => {
275
287
  }, [e == null ? void 0 : e.chatPanelCallback]), null), Kt = "_summaryCard_jva4h_1", Gt = {
276
288
  summaryCard: Kt
277
289
  }, Ut = (e) => {
278
- var t, s, r;
290
+ const t = e.dataSource, s = {
291
+ url: e.dataSource.url,
292
+ method: e.dataSource.method,
293
+ headers: e.dataSource.headers,
294
+ body: t == null ? void 0 : t.data
295
+ }, r = e.locale ?? "en", l = O(() => {
296
+ var i, n, d;
297
+ const o = {
298
+ title: (i = e == null ? void 0 : e.translations) == null ? void 0 : i.title,
299
+ loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
300
+ noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
301
+ };
302
+ return Object.fromEntries(
303
+ Object.entries(o).filter(([, a]) => !!a)
304
+ );
305
+ }, [e == null ? void 0 : e.translations]);
279
306
  return /* @__PURE__ */ c.jsx("section", { className: Gt.summaryCard, children: /* @__PURE__ */ c.jsx(
280
307
  _t,
281
308
  {
282
- api: (t = e == null ? void 0 : e.dataSource) == null ? void 0 : t.url,
283
- body: (s = e == null ? void 0 : e.dataSource) == null ? void 0 : s.data,
284
- headers: (r = e == null ? void 0 : e.dataSource) == null ? void 0 : r.headers,
285
- ...e
309
+ dataSource: s,
310
+ locale: r,
311
+ translations: l
286
312
  }
287
313
  ) });
288
314
  }, M = (e, t) => {
289
315
  const s = v((r) => {
290
- var i;
291
- return ((i = r[e]) == null ? void 0 : i.entries) || {};
316
+ var l;
317
+ return ((l = r[e]) == null ? void 0 : l.entries) || {};
292
318
  });
293
- return R(() => {
319
+ return O(() => {
294
320
  const r = {
295
321
  disabled: !1
296
322
  };
297
- return !t || t.length === 0 || t.forEach((i) => {
298
- const o = s[i.key], l = o == null || o === "" || Array.isArray(o) && o.length === 0;
299
- i.when === "empty" && l && i.actions.forEach((d) => {
323
+ return !t || t.length === 0 || t.forEach((l) => {
324
+ const o = s[l.key], i = o == null || o === "" || Array.isArray(o) && o.length === 0;
325
+ l.when === "empty" && i && l.actions.forEach((d) => {
300
326
  r[d] = !0;
301
327
  });
302
328
  }), r;
@@ -308,19 +334,19 @@ const It = (e) => {
308
334
  userFlow: t,
309
335
  responseKey: s,
310
336
  codeBlockValue: r,
311
- language: i,
337
+ language: l,
312
338
  disabled: o,
313
- dependencies: l,
339
+ dependencies: i,
314
340
  dataSource: n,
315
341
  inputLabel: d,
316
342
  inputPlaceholder: a,
317
343
  codeBlockLabel: u
318
- } = e, f = ue.useThemeStore((b) => b.theme.mode), [_, h] = S(
344
+ } = e, f = ue.useThemeStore((b) => b.theme.mode), [_, h] = q(
319
345
  r || ""
320
346
  ), { disabled: j } = M(
321
347
  t,
322
- l
323
- ), y = o ?? j, m = i ?? "json", x = {
348
+ i
349
+ ), y = o ?? j, x = l ?? "json", m = {
324
350
  url: (n == null ? void 0 : n.url) || "",
325
351
  method: (n == null ? void 0 : n.method) || "post",
326
352
  headers: n == null ? void 0 : n.headers,
@@ -338,8 +364,8 @@ const It = (e) => {
338
364
  ut,
339
365
  {
340
366
  themeMode: f,
341
- requestConfig: x,
342
- language: m,
367
+ requestConfig: m,
368
+ language: x,
343
369
  disabled: y,
344
370
  inputLabel: d,
345
371
  inputPlaceholder: a,
@@ -351,7 +377,7 @@ const It = (e) => {
351
377
  }, Xt = "_body_14tsv_1", Wt = "_body_content_14tsv_5", ve = {
352
378
  body: Xt,
353
379
  body_content: Wt
354
- }, Qt = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: ve.body, children: /* @__PURE__ */ c.jsx("div", { className: ve.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), X = (e) => {
380
+ }, Qt = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: ve.body, children: /* @__PURE__ */ c.jsx("div", { className: ve.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), X = (e) => {
355
381
  if (!e)
356
382
  return { "content-type": "application/json" };
357
383
  if (typeof e == "function")
@@ -363,24 +389,24 @@ const It = (e) => {
363
389
  return { "content-type": "application/json", Authorization: e };
364
390
  }
365
391
  return e;
366
- }, F = () => new AbortController(), Yt = (e, t = {}, s = {}, r = !1, i) => {
392
+ }, F = () => new AbortController(), Yt = (e, t = {}, s = {}, r = !1, l) => {
367
393
  const o = F();
368
394
  r && o.abort();
369
- const l = X(t);
395
+ const i = X(t);
370
396
  return {
371
397
  call: V.get(e, {
372
398
  headers: {
373
- ...l
399
+ ...i
374
400
  },
375
401
  params: s,
376
402
  signal: o.signal,
377
- _userFlow: i
403
+ _userFlow: l
378
404
  }),
379
405
  controller: o
380
406
  };
381
- }, _e = (e, t = {}, s = {}, r = {}, i = !1, o) => {
382
- const l = F();
383
- i && l.abort();
407
+ }, _e = (e, t = {}, s = {}, r = {}, l = !1, o) => {
408
+ const i = F();
409
+ l && i.abort();
384
410
  const n = X(t);
385
411
  return {
386
412
  call: V.post(e, s, {
@@ -388,14 +414,14 @@ const It = (e) => {
388
414
  ...n
389
415
  },
390
416
  params: r,
391
- signal: l.signal,
417
+ signal: i.signal,
392
418
  _userFlow: o
393
419
  }),
394
- controller: l
420
+ controller: i
395
421
  };
396
- }, Zt = (e, t = {}, s = {}, r = {}, i = !1, o) => {
397
- const l = F();
398
- i && l.abort();
422
+ }, Zt = (e, t = {}, s = {}, r = {}, l = !1, o) => {
423
+ const i = F();
424
+ l && i.abort();
399
425
  const n = X(t);
400
426
  return {
401
427
  call: V.put(e, s, {
@@ -403,14 +429,14 @@ const It = (e) => {
403
429
  ...n
404
430
  },
405
431
  params: r,
406
- signal: l.signal,
432
+ signal: i.signal,
407
433
  _userFlow: o
408
434
  }),
409
- controller: l
435
+ controller: i
410
436
  };
411
- }, Ft = (e, t = {}, s = {}, r = {}, i = !1, o) => {
412
- const l = F();
413
- i && l.abort();
437
+ }, Ft = (e, t = {}, s = {}, r = {}, l = !1, o) => {
438
+ const i = F();
439
+ l && i.abort();
414
440
  const n = X(t);
415
441
  return {
416
442
  call: V.patch(e, s, {
@@ -418,14 +444,14 @@ const It = (e) => {
418
444
  ...n
419
445
  },
420
446
  params: r,
421
- signal: l.signal,
447
+ signal: i.signal,
422
448
  _userFlow: o
423
449
  }),
424
- controller: l
450
+ controller: i
425
451
  };
426
- }, Pt = (e, t = {}, s = {}, r = {}, i = !1, o) => {
427
- const l = F();
428
- i && l.abort();
452
+ }, Pt = (e, t = {}, s = {}, r = {}, l = !1, o) => {
453
+ const i = F();
454
+ l && i.abort();
429
455
  const n = X(t);
430
456
  return {
431
457
  call: V.delete(e, {
@@ -434,34 +460,34 @@ const It = (e) => {
434
460
  },
435
461
  data: s,
436
462
  params: r,
437
- signal: l.signal,
463
+ signal: i.signal,
438
464
  _userFlow: o
439
465
  }),
440
- controller: l
466
+ controller: i
441
467
  };
442
468
  }, Re = () => {
443
469
  let e;
444
470
  return { callEndpoint: async (r) => {
445
471
  r.controller && (e = r.controller);
446
- let i = {};
472
+ let l = {};
447
473
  try {
448
- i = await r.call;
474
+ l = await r.call;
449
475
  } catch (o) {
450
476
  throw o;
451
477
  }
452
- return i;
478
+ return l;
453
479
  }, cancelEndpoint: () => {
454
480
  e && e.abort();
455
481
  } };
456
- }, De = async (e, t, s = "", r = {}, i = {}) => {
482
+ }, De = async (e, t, s = "", r = {}, l = {}) => {
457
483
  try {
458
- const { callEndpoint: o } = Re(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
484
+ const { callEndpoint: o } = Re(), { api: i, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
459
485
  s && a.append("hash_code", s), d && a.append("sessionId", d);
460
- const u = `${l}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = _e(
486
+ const u = `${i}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = _e(
461
487
  u,
462
488
  f,
463
489
  r,
464
- i,
490
+ l,
465
491
  !1,
466
492
  t
467
493
  );
@@ -501,7 +527,7 @@ const It = (e) => {
501
527
  default:
502
528
  return Yt(u, f, h, !1, d);
503
529
  }
504
- }, i = (n, d) => {
530
+ }, l = (n, d) => {
505
531
  const { url: a, headers: u } = n, f = {
506
532
  query: n == null ? void 0 : n.query,
507
533
  variables: (n == null ? void 0 : n.variables) || {}
@@ -531,7 +557,7 @@ const It = (e) => {
531
557
  _ = r(n, d);
532
558
  break;
533
559
  case "graphql":
534
- _ = i(n, d);
560
+ _ = l(n, d);
535
561
  break;
536
562
  default:
537
563
  throw new Error("[fetchDataSource] Unsupported data source type");
@@ -577,11 +603,11 @@ const It = (e) => {
577
603
  items: t,
578
604
  responseKey: s
579
605
  }) => {
580
- const { getNextUI: r } = I(), i = D(
581
- async ({ actionType: l, hashCode: n, redirectUrl: d }) => {
606
+ const { getNextUI: r } = I(), l = D(
607
+ async ({ actionType: i, hashCode: n, redirectUrl: d }) => {
582
608
  var a;
583
609
  try {
584
- switch (l) {
610
+ switch (i) {
585
611
  case "GO_TO_NEXT_UI":
586
612
  const u = await r(
587
613
  e,
@@ -589,13 +615,13 @@ const It = (e) => {
589
615
  { ...(a = v.getState()[e]) == null ? void 0 : a.entries },
590
616
  s
591
617
  );
592
- u != null && u.data && q(e, u == null ? void 0 : u.data);
618
+ u != null && u.data && S(e, u == null ? void 0 : u.data);
593
619
  break;
594
620
  case "REDIRECT":
595
621
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
596
622
  break;
597
623
  default:
598
- console.warn(`Unhandled actionType: ${l}`);
624
+ console.warn(`Unhandled actionType: ${i}`);
599
625
  break;
600
626
  }
601
627
  } catch (u) {
@@ -603,9 +629,9 @@ const It = (e) => {
603
629
  }
604
630
  },
605
631
  []
606
- ), o = R(() => t == null ? void 0 : t.map((l) => ({
607
- title: l == null ? void 0 : l.title,
608
- component: /* @__PURE__ */ c.jsx("div", { onClick: () => i(l) })
632
+ ), o = O(() => t == null ? void 0 : t.map((i) => ({
633
+ title: i == null ? void 0 : i.title,
634
+ component: /* @__PURE__ */ c.jsx("div", { onClick: () => l(i) })
609
635
  })), []);
610
636
  return /* @__PURE__ */ c.jsx(We, { items: o });
611
637
  }, tn = (e) => {
@@ -613,9 +639,9 @@ const It = (e) => {
613
639
  userFlow: t,
614
640
  pageId: s,
615
641
  responseKey: r,
616
- actionType: i,
642
+ actionType: l,
617
643
  label: o,
618
- content: l,
644
+ content: i,
619
645
  dataSource: n,
620
646
  redirectUrl: d,
621
647
  dependencies: a,
@@ -624,19 +650,19 @@ const It = (e) => {
624
650
  } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: j } = I(), { disabled: y } = M(
625
651
  t,
626
652
  a
627
- ), m = {
653
+ ), x = {
628
654
  ...f,
629
- children: l ?? o
630
- }, x = (m == null ? void 0 : m.disabled) ?? y, g = D(async () => {
655
+ children: i ?? o
656
+ }, m = (x == null ? void 0 : x.disabled) ?? y, g = D(async () => {
631
657
  var b, N, p;
632
658
  try {
633
659
  const C = {
634
660
  ...(b = v.getState()[t]) == null ? void 0 : b.entries,
635
661
  [r]: { status: 200 }
636
662
  };
637
- switch (L(t, C), i) {
663
+ switch (L(t, C), l) {
638
664
  case "CLOSE_MODAL":
639
- xe(t, !1);
665
+ me(t, !1);
640
666
  break;
641
667
  case "CLOSE_DRAWER":
642
668
  Z(t, !1);
@@ -651,7 +677,7 @@ const It = (e) => {
651
677
  C,
652
678
  r
653
679
  );
654
- w != null && w.data && q(t, w == null ? void 0 : w.data);
680
+ w != null && w.data && S(t, w == null ? void 0 : w.data);
655
681
  break;
656
682
  }
657
683
  case "FETCH_AND_GO_TO_NEXT_UI": {
@@ -662,7 +688,7 @@ const It = (e) => {
662
688
  r,
663
689
  n
664
690
  );
665
- w != null && w.data && q(t, w == null ? void 0 : w.data);
691
+ w != null && w.data && S(t, w == null ? void 0 : w.data);
666
692
  break;
667
693
  }
668
694
  case "GET_DATA_SOURCE": {
@@ -674,8 +700,8 @@ const It = (e) => {
674
700
  ), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
675
701
  if ((E == null ? void 0 : E.type) !== "fetch")
676
702
  break;
677
- const O = E == null ? void 0 : E.dataSource, k = await h(
678
- O,
703
+ const T = E == null ? void 0 : E.dataSource, k = await h(
704
+ T,
679
705
  t,
680
706
  // Avoid to handle loading state until all the requests are done
681
707
  !1
@@ -693,39 +719,39 @@ const It = (e) => {
693
719
  K,
694
720
  r
695
721
  );
696
- G != null && G.data && q(t, G == null ? void 0 : G.data);
722
+ G != null && G.data && S(t, G == null ? void 0 : G.data);
697
723
  break;
698
724
  }
699
725
  case "REDIRECT":
700
726
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
701
727
  break;
702
728
  default:
703
- console.warn(`Unhandled actionType: ${i}`);
729
+ console.warn(`Unhandled actionType: ${l}`);
704
730
  break;
705
731
  }
706
732
  } catch (C) {
707
733
  alert(JSON.stringify(C));
708
734
  }
709
- }, [i, n, s, r, t]);
735
+ }, [l, n, s, r, t]);
710
736
  return /* @__PURE__ */ c.jsx(
711
737
  Qe,
712
738
  {
713
- ...m,
714
- disabled: x,
715
- onClick: () => !x && (u ?? g)()
739
+ ...x,
740
+ disabled: m,
741
+ onClick: () => !m && (u ?? g)()
716
742
  }
717
743
  );
718
744
  }, nn = "_cardNotificationNotFront_t7pln_1", rn = {
719
745
  cardNotificationNotFront: nn
720
746
  }, sn = (e) => {
721
- const { content: t, description: s, ...r } = e, i = {
747
+ const { content: t, description: s, ...r } = e, l = {
722
748
  ...r,
723
749
  children: t ?? s
724
750
  };
725
751
  return /* @__PURE__ */ c.jsx(
726
752
  he,
727
753
  {
728
- ...i,
754
+ ...l,
729
755
  className: rn.cardNotificationNotFront
730
756
  }
731
757
  );
@@ -734,18 +760,18 @@ const It = (e) => {
734
760
  userFlow: t,
735
761
  pageId: s,
736
762
  responseKey: r,
737
- actionType: i,
763
+ actionType: l,
738
764
  label: o,
739
- value: l,
765
+ value: i,
740
766
  required: n,
741
767
  dependencies: d,
742
768
  ...a
743
769
  } = e, u = {
744
770
  ...a
745
- }, { getNextUI: f } = I(), [_, h] = S(l || !1), { disabled: j } = M(
771
+ }, { getNextUI: f } = I(), [_, h] = q(i || !1), { disabled: j } = M(
746
772
  t,
747
773
  d
748
- ), y = R(() => n && o ? `${o} *` : o ?? "", [o, n]), m = D(async () => {
774
+ ), y = O(() => n && o ? `${o} *` : o ?? "", [o, n]), x = D(async () => {
749
775
  var g;
750
776
  try {
751
777
  const b = !_;
@@ -754,7 +780,7 @@ const It = (e) => {
754
780
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
755
781
  [r]: b
756
782
  };
757
- switch (L(t, N), i) {
783
+ switch (L(t, N), l) {
758
784
  case "GO_TO_NEXT_UI":
759
785
  const p = await f(
760
786
  t,
@@ -762,25 +788,25 @@ const It = (e) => {
762
788
  N,
763
789
  r
764
790
  );
765
- p != null && p.data && q(t, p == null ? void 0 : p.data);
791
+ p != null && p.data && S(t, p == null ? void 0 : p.data);
766
792
  break;
767
793
  default:
768
- console.warn(`Unhandled actionType: ${i}`);
794
+ console.warn(`Unhandled actionType: ${l}`);
769
795
  break;
770
796
  }
771
797
  } catch (b) {
772
798
  console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
773
799
  }
774
- }, [t, s, r, i, _]), x = (u == null ? void 0 : u.disabled) ?? j;
800
+ }, [t, s, r, l, _]), m = (u == null ? void 0 : u.disabled) ?? j;
775
801
  return /* @__PURE__ */ c.jsx(
776
802
  Ye,
777
803
  {
778
804
  ...u,
779
805
  labelRight: y,
780
806
  checked: _,
781
- disabled: x,
807
+ disabled: m,
782
808
  onChange: () => {
783
- !x && m();
809
+ !m && x();
784
810
  }
785
811
  }
786
812
  );
@@ -795,22 +821,22 @@ const It = (e) => {
795
821
  userFlow: t,
796
822
  responseKey: s,
797
823
  label: r,
798
- language: i,
824
+ language: l,
799
825
  placeholder: o,
800
- value: l,
826
+ value: i,
801
827
  required: n,
802
828
  dependencies: d,
803
829
  disabled: a,
804
830
  showPreview: u
805
- } = e, [f, _] = S(l ?? ""), h = ue.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
831
+ } = e, [f, _] = q(i ?? ""), h = ue.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
806
832
  t,
807
833
  d
808
- ), y = a ?? j, m = {
834
+ ), y = a ?? j, x = {
809
835
  json: be(),
810
836
  markdown: ft(),
811
837
  sql: yt(),
812
- yaml: xt()
813
- }, x = R(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (b) => {
838
+ yaml: mt()
839
+ }, m = O(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (b) => {
814
840
  _(b);
815
841
  const N = {
816
842
  [s]: b
@@ -818,7 +844,7 @@ const It = (e) => {
818
844
  L(t, N);
819
845
  };
820
846
  return /* @__PURE__ */ c.jsxs("div", { className: Y.codeEditor, children: [
821
- x && x !== "" && /* @__PURE__ */ c.jsx("label", { className: Y.codeEditor_label, children: x }),
847
+ m && m !== "" && /* @__PURE__ */ c.jsx("label", { className: Y.codeEditor_label, children: m }),
822
848
  /* @__PURE__ */ c.jsxs("div", { className: Y.codeEditor_wrapper, children: [
823
849
  /* @__PURE__ */ c.jsx(
824
850
  ht,
@@ -827,13 +853,13 @@ const It = (e) => {
827
853
  value: f,
828
854
  height: "400px",
829
855
  placeholder: o,
830
- extensions: [m[i] ?? be()],
856
+ extensions: [x[l] ?? be()],
831
857
  onChange: (b) => g(b),
832
858
  theme: h,
833
859
  editable: !y
834
860
  }
835
861
  ),
836
- i == "markdown" && u && /* @__PURE__ */ c.jsx(Ze, { className: Y.preview, children: f })
862
+ l == "markdown" && u && /* @__PURE__ */ c.jsx(Ze, { className: Y.preview, children: f })
837
863
  ] })
838
864
  ] });
839
865
  };
@@ -847,18 +873,18 @@ var Le = { exports: {} };
847
873
  (function() {
848
874
  var t = {}.hasOwnProperty;
849
875
  function s() {
850
- for (var r = [], i = 0; i < arguments.length; i++) {
851
- var o = arguments[i];
876
+ for (var r = [], l = 0; l < arguments.length; l++) {
877
+ var o = arguments[l];
852
878
  if (o) {
853
- var l = typeof o;
854
- if (l === "string" || l === "number")
879
+ var i = typeof o;
880
+ if (i === "string" || i === "number")
855
881
  r.push(o);
856
882
  else if (Array.isArray(o)) {
857
883
  if (o.length) {
858
884
  var n = s.apply(null, o);
859
885
  n && r.push(n);
860
886
  }
861
- } else if (l === "object") {
887
+ } else if (i === "object") {
862
888
  if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
863
889
  r.push(o.toString());
864
890
  continue;
@@ -877,33 +903,33 @@ var hn = Le.exports;
877
903
  const ee = /* @__PURE__ */ Lt(hn);
878
904
  const fn = "_dividerNotFront_tze3j_1", yn = {
879
905
  dividerNotFront: fn
880
- }, xn = (e) => /* @__PURE__ */ c.jsx(Fe, { ...e, className: yn.dividerNotFront }), mn = (e, t, s) => {
881
- const { url: r, paginationKeys: i, params: o } = e, l = [], n = (i == null ? void 0 : i.page) ?? "page";
882
- if (l.push(`${n}=${t}`), typeof s == "string") {
883
- const u = (i == null ? void 0 : i.text) ?? "text";
884
- l.push(`${u}=${encodeURIComponent(s || "")}`);
906
+ }, mn = (e) => /* @__PURE__ */ c.jsx(Fe, { ...e, className: yn.dividerNotFront }), xn = (e, t, s) => {
907
+ const { url: r, paginationKeys: l, params: o } = e, i = [], n = (l == null ? void 0 : l.page) ?? "page";
908
+ if (i.push(`${n}=${t}`), typeof s == "string") {
909
+ const u = (l == null ? void 0 : l.text) ?? "text";
910
+ i.push(`${u}=${encodeURIComponent(s || "")}`);
885
911
  }
886
912
  if (o && typeof o == "object") {
887
913
  const u = Object.entries(o).map(
888
914
  ([f, _]) => `${encodeURIComponent(f)}=${encodeURIComponent(_)}`
889
915
  );
890
- l.push(...u);
916
+ i.push(...u);
891
917
  }
892
- const d = l.join("&");
918
+ const d = i.join("&");
893
919
  return d ? `${r}?${d}` : r;
894
- }, me = (e, t, s) => {
895
- const { type: r, url: i, method: o, headers: l } = e;
920
+ }, xe = (e, t, s) => {
921
+ const { type: r, url: l, method: o, headers: i } = e;
896
922
  return r === "rest" ? {
897
923
  type: "rest",
898
- url: mn(e, t, s),
924
+ url: xn(e, t, s),
899
925
  method: o,
900
- headers: l,
926
+ headers: i,
901
927
  data: (e == null ? void 0 : e.data) || {}
902
928
  } : {
903
929
  type: "graphql",
904
- url: i,
930
+ url: l,
905
931
  method: "post",
906
- headers: l,
932
+ headers: i,
907
933
  query: e == null ? void 0 : e.query,
908
934
  variables: {
909
935
  ...(e == null ? void 0 : e.variables) || {},
@@ -912,16 +938,16 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
912
938
  }
913
939
  };
914
940
  }, ie = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Be = (e, t, s, r) => {
915
- const i = B.query(e, t), o = i == null ? void 0 : i.map((a) => {
941
+ const l = B.query(e, t), o = l == null ? void 0 : l.map((a) => {
916
942
  var u, f;
917
943
  if (s) {
918
944
  const _ = {};
919
945
  for (const [h, j] of Object.entries(s))
920
946
  if (typeof j == "object" && "path" in j) {
921
- const y = j, m = (u = B.query(a, y.path)) == null ? void 0 : u[0];
922
- y.translations && String(m) in y.translations ? _[h] = ie(
923
- y.translations[String(m)]
924
- ) : _[h] = ie(m);
947
+ const y = j, x = (u = B.query(a, y.path)) == null ? void 0 : u[0];
948
+ y.translations && String(x) in y.translations ? _[h] = ie(
949
+ y.translations[String(x)]
950
+ ) : _[h] = ie(x);
925
951
  } else {
926
952
  const y = j;
927
953
  _[h] = ie((f = B.query(a, y)) == null ? void 0 : f[0]);
@@ -929,24 +955,24 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
929
955
  return _;
930
956
  } else
931
957
  return a;
932
- }), l = B.value(e, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? i.length, n = B.value(e, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = {
933
- size: l,
958
+ }), i = B.value(e, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? l.length, n = B.value(e, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = {
959
+ size: i,
934
960
  total: n,
935
961
  totalPages: r != null && r.totalPages ? B.value(
936
962
  e,
937
963
  (r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
938
- ) : l > 0 ? Math.ceil(n / l) : 0
964
+ ) : i > 0 ? Math.ceil(n / i) : 0
939
965
  };
940
966
  return { items: o, pagination: d };
941
967
  }, ne = ({ withPadding: e = !1 }) => {
942
- const t = (s) => /* @__PURE__ */ c.jsx("span", { style: { color: $.labelColor }, children: s });
968
+ const t = (s) => /* @__PURE__ */ c.jsx("span", { style: { color: R.labelColor }, children: s });
943
969
  return /* @__PURE__ */ c.jsx(
944
- mt,
970
+ xt,
945
971
  {
946
972
  formatter: t,
947
973
  wrapperStyle: {
948
- fontSize: $.fontSize,
949
- fontFamily: $.fontFamily,
974
+ fontSize: R.fontSize,
975
+ fontFamily: R.fontFamily,
950
976
  padding: e ? "1rem 0" : "0"
951
977
  }
952
978
  }
@@ -960,21 +986,21 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
960
986
  var o;
961
987
  if (!e || !t || !t.length)
962
988
  return null;
963
- const i = {
964
- backgroundColor: $.tooltipBg,
965
- borderRadius: $.tooltipBorderRadius,
966
- color: $.tooltipColor,
989
+ const l = {
990
+ backgroundColor: R.tooltipBg,
991
+ borderRadius: R.tooltipBorderRadius,
992
+ color: R.tooltipColor,
967
993
  padding: "8px 12px",
968
994
  border: "1px solid #e5e7eb"
969
995
  };
970
996
  if (r) {
971
- const l = (o = t[0]) == null ? void 0 : o.payload;
972
- if (l && l[r] !== void 0 && l[r] !== null)
973
- return /* @__PURE__ */ c.jsx("div", { style: i, children: /* @__PURE__ */ c.jsx("p", { style: { margin: 0 }, children: l[r] }) });
997
+ const i = (o = t[0]) == null ? void 0 : o.payload;
998
+ if (i && i[r] !== void 0 && i[r] !== null)
999
+ return /* @__PURE__ */ c.jsx("div", { style: l, children: /* @__PURE__ */ c.jsx("p", { style: { margin: 0 }, children: i[r] }) });
974
1000
  }
975
- return /* @__PURE__ */ c.jsxs("div", { style: i, children: [
1001
+ return /* @__PURE__ */ c.jsxs("div", { style: l, children: [
976
1002
  /* @__PURE__ */ c.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: s }),
977
- t.map((l, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
1003
+ t.map((i, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: i.color }, children: `${i.name}: ${i.value}` }, n))
978
1004
  ] });
979
1005
  }, re = ({ tooltipKey: e } = {}) => /* @__PURE__ */ c.jsx(
980
1006
  gt,
@@ -987,68 +1013,68 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
987
1013
  dataKey: e,
988
1014
  hide: t,
989
1015
  tick: {
990
- fill: $.labelColor,
991
- fontSize: $.fontSize
1016
+ fill: R.labelColor,
1017
+ fontSize: R.fontSize
992
1018
  }
993
1019
  }
994
1020
  ), pe = () => /* @__PURE__ */ c.jsx(
995
1021
  bt,
996
1022
  {
997
1023
  tick: {
998
- fill: $.labelColor,
999
- fontSize: $.fontSize
1024
+ fill: R.labelColor,
1025
+ fontSize: R.fontSize
1000
1026
  }
1001
1027
  }
1002
1028
  ), pn = (e) => {
1003
- const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e;
1029
+ const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
1004
1030
  return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(jt, { data: t, children: [
1005
1031
  /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1006
1032
  /* @__PURE__ */ c.jsx(ge, { dataKey: s }),
1007
1033
  /* @__PURE__ */ c.jsx(pe, {}),
1008
- /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1034
+ /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1009
1035
  /* @__PURE__ */ c.jsx(ne, {}),
1010
- r.map((o, l) => /* @__PURE__ */ c.jsx(
1036
+ r.map((o, i) => /* @__PURE__ */ c.jsx(
1011
1037
  wt,
1012
1038
  {
1013
1039
  type: "monotone",
1014
1040
  dataKey: o,
1015
- stroke: z[l % z.length],
1016
- fill: z[l % z.length]
1041
+ stroke: z[i % z.length],
1042
+ fill: z[i % z.length]
1017
1043
  },
1018
1044
  o
1019
1045
  ))
1020
1046
  ] }) });
1021
1047
  }, bn = (e) => {
1022
- const { data: t, yKeys: s, xKey: r, tooltipKey: i } = e;
1048
+ const { data: t, yKeys: s, xKey: r, tooltipKey: l } = e;
1023
1049
  return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Ct, { data: t, children: [
1024
1050
  /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1025
1051
  /* @__PURE__ */ c.jsx(ge, { hide: !0, dataKey: r }),
1026
1052
  /* @__PURE__ */ c.jsx(pe, {}),
1027
- /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1053
+ /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1028
1054
  /* @__PURE__ */ c.jsx(ne, { withPadding: !0 }),
1029
- s.map((o, l) => /* @__PURE__ */ c.jsx(
1055
+ s.map((o, i) => /* @__PURE__ */ c.jsx(
1030
1056
  Nt,
1031
1057
  {
1032
1058
  dataKey: o,
1033
- fill: z[l % z.length]
1059
+ fill: z[i % z.length]
1034
1060
  },
1035
1061
  o
1036
1062
  ))
1037
1063
  ] }) });
1038
1064
  }, jn = (e) => {
1039
- const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e;
1065
+ const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
1040
1066
  return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(vt, { data: t, children: [
1041
1067
  /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1042
1068
  /* @__PURE__ */ c.jsx(ge, { dataKey: s }),
1043
1069
  /* @__PURE__ */ c.jsx(pe, {}),
1044
- /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1070
+ /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1045
1071
  /* @__PURE__ */ c.jsx(ne, {}),
1046
- r.map((o, l) => /* @__PURE__ */ c.jsx(
1072
+ r.map((o, i) => /* @__PURE__ */ c.jsx(
1047
1073
  Et,
1048
1074
  {
1049
1075
  type: "monotone",
1050
1076
  dataKey: o,
1051
- stroke: z[l % z.length],
1077
+ stroke: z[i % z.length],
1052
1078
  strokeWidth: 2,
1053
1079
  dot: !1
1054
1080
  },
@@ -1056,22 +1082,22 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1056
1082
  ))
1057
1083
  ] }) });
1058
1084
  }, wn = (e) => {
1059
- const { data: t, xKey: s, yKeys: r, tooltipKey: i } = e, o = ({
1060
- cx: l,
1085
+ const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e, o = ({
1086
+ cx: i,
1061
1087
  cy: n,
1062
1088
  midAngle: d,
1063
1089
  innerRadius: a,
1064
1090
  outerRadius: u,
1065
1091
  value: f
1066
1092
  }) => {
1067
- const _ = Math.PI / 180, h = 25 + a + (u - a), j = l + h * Math.cos(-(d ?? 0) * _), y = n + h * Math.sin(-(d ?? 0) * _);
1093
+ const _ = Math.PI / 180, h = 25 + a + (u - a), j = i + h * Math.cos(-(d ?? 0) * _), y = n + h * Math.sin(-(d ?? 0) * _);
1068
1094
  return /* @__PURE__ */ c.jsx(
1069
1095
  "text",
1070
1096
  {
1071
1097
  x: j,
1072
1098
  y,
1073
- fill: $.labelColor,
1074
- color: $.labelColor,
1099
+ fill: R.labelColor,
1100
+ color: R.labelColor,
1075
1101
  textAnchor: "middle",
1076
1102
  dominantBaseline: "central",
1077
1103
  children: f
@@ -1079,18 +1105,18 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1079
1105
  );
1080
1106
  };
1081
1107
  return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(kt, { children: [
1082
- /* @__PURE__ */ c.jsx(re, { tooltipKey: i }),
1108
+ /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1083
1109
  /* @__PURE__ */ c.jsx(ne, {}),
1084
1110
  /* @__PURE__ */ c.jsx(
1085
- St,
1111
+ qt,
1086
1112
  {
1087
1113
  data: t,
1088
1114
  dataKey: r[0],
1089
1115
  nameKey: s,
1090
1116
  label: o,
1091
1117
  outerRadius: 120,
1092
- children: t.map((l, n) => /* @__PURE__ */ c.jsx(
1093
- qt,
1118
+ children: t.map((i, n) => /* @__PURE__ */ c.jsx(
1119
+ St,
1094
1120
  {
1095
1121
  fill: z[n % z.length]
1096
1122
  },
@@ -1122,7 +1148,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1122
1148
  "var(--color-primitive-palette-15-50)",
1123
1149
  "var(--color-primitive-palette-16-50)",
1124
1150
  "var(--color-primitive-palette-17-50)"
1125
- ], $ = {
1151
+ ], R = {
1126
1152
  fontFamily: "Roboto, sans-serif",
1127
1153
  fontSize: 12,
1128
1154
  labelColor: "var(--color-neutral-90)",
@@ -1130,40 +1156,40 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1130
1156
  tooltipColor: "#000",
1131
1157
  tooltipBorderRadius: "4px"
1132
1158
  }, Nn = (e) => {
1133
- const { component: t, userFlow: s, hash: r, responseKey: i, dataSource: o, ...l } = e, n = Cn[l.type];
1159
+ const { component: t, userFlow: s, hash: r, responseKey: l, dataSource: o, ...i } = e, n = Cn[i.type];
1134
1160
  if (!n)
1135
1161
  return /* @__PURE__ */ c.jsx("div", { children: "Not supported chart type" });
1136
- const { fetchDataSource: d } = I(), [a, u] = S(!1), [f, _] = S([]), h = async () => {
1137
- var y, m;
1162
+ const { fetchDataSource: d } = I(), [a, u] = q(!1), [f, _] = q([]), h = async () => {
1163
+ var y, x;
1138
1164
  try {
1139
1165
  u(!0);
1140
- const { jsonPathData: x, mapperData: g } = o, b = me(
1166
+ const { jsonPathData: m, mapperData: g } = o, b = xe(
1141
1167
  o,
1142
1168
  1
1143
1169
  ), N = await d(
1144
1170
  b,
1145
1171
  s,
1146
1172
  !1
1147
- ), p = x ? (y = Be(N == null ? void 0 : N.data, x, g)) == null ? void 0 : y.items : (m = N == null ? void 0 : N.data) == null ? void 0 : m.data;
1173
+ ), p = m ? (y = Be(N == null ? void 0 : N.data, m, g)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1148
1174
  _(p), u(!1);
1149
- } catch (x) {
1150
- alert(JSON.stringify(x)), u(!1);
1175
+ } catch (m) {
1176
+ alert(JSON.stringify(m)), u(!1);
1151
1177
  }
1152
1178
  };
1153
1179
  J(() => {
1154
- o ? h() : _(l.data);
1180
+ o ? h() : _(i.data);
1155
1181
  }, []);
1156
1182
  const j = {
1157
- ...l,
1183
+ ...i,
1158
1184
  data: f
1159
1185
  };
1160
1186
  return a ? /* @__PURE__ */ c.jsx(Oe, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1161
1187
  }, vn = "_header_g1eri_1", En = "_header_content_g1eri_5", Ee = {
1162
1188
  header: vn,
1163
1189
  header_content: En
1164
- }, kn = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ee.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx(T, { children: t }, s)) }) }), A = (e, t, s, r) => {
1165
- var l;
1166
- const i = {
1190
+ }, kn = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ee.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), A = (e, t, s, r) => {
1191
+ var i;
1192
+ const l = {
1167
1193
  accordion: (n) => /* @__PURE__ */ c.jsx(hr, { ...n, userFlow: e, pageId: t }),
1168
1194
  aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Mt, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
1169
1195
  aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Ut, { ...n, userFlow: e, pageId: t }),
@@ -1174,8 +1200,8 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1174
1200
  chart: (n) => /* @__PURE__ */ c.jsx(Nn, { ...n, userFlow: e }),
1175
1201
  checkbox: (n) => /* @__PURE__ */ c.jsx(an, { ...n, userFlow: e, pageId: t }),
1176
1202
  code: (n) => /* @__PURE__ */ c.jsx(un, { ...n, userFlow: e, pageId: t }),
1177
- divider: (n) => /* @__PURE__ */ c.jsx(xn, { ...n }),
1178
- drawer: (n) => /* @__PURE__ */ c.jsx(mr, { ...n, userFlow: e, pageId: t }),
1203
+ divider: (n) => /* @__PURE__ */ c.jsx(mn, { ...n }),
1204
+ drawer: (n) => /* @__PURE__ */ c.jsx(xr, { ...n, userFlow: e, pageId: t }),
1179
1205
  heading: (n) => It(n),
1180
1206
  pill: (n) => /* @__PURE__ */ c.jsx($n, { ...n }),
1181
1207
  modal: (n) => /* @__PURE__ */ c.jsx(An, { ...n, userFlow: e, pageId: t }),
@@ -1189,62 +1215,62 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1189
1215
  textField: (n) => /* @__PURE__ */ c.jsx(lr, { ...n, userFlow: e, pageId: t }),
1190
1216
  toast: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t })
1191
1217
  };
1192
- return (l = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : l.map((n) => {
1193
- const d = i[n.component];
1218
+ return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
1219
+ const d = l[n.component];
1194
1220
  return d ? d({ ...n, userFlow: e, pageId: t }) : null;
1195
1221
  });
1196
- }, Sn = "_modalContent_p06ci_1", qn = {
1197
- modalContent: Sn
1222
+ }, qn = "_modalContent_p06ci_1", Sn = {
1223
+ modalContent: qn
1198
1224
  }, An = ({
1199
1225
  userFlow: e,
1200
1226
  pageId: t,
1201
1227
  responseKey: s,
1202
1228
  header: r,
1203
- body: i,
1229
+ body: l,
1204
1230
  footer: o,
1205
- headerStatusColor: l,
1231
+ headerStatusColor: i,
1206
1232
  ...n
1207
1233
  }) => {
1208
- const d = v((x) => {
1234
+ const d = v((m) => {
1209
1235
  var g;
1210
- return (g = x[e]) == null ? void 0 : g.isModalOpen;
1211
- }), a = v((x) => {
1236
+ return (g = m[e]) == null ? void 0 : g.isModalOpen;
1237
+ }), a = v((m) => {
1212
1238
  var g;
1213
- return (g = x[e]) == null ? void 0 : g.isLoading;
1239
+ return (g = m[e]) == null ? void 0 : g.isLoading;
1214
1240
  }), u = d && !a, f = {
1215
1241
  ...n
1216
- }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = D(() => {
1217
- ye(e), xe(e, !1);
1218
- }, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, i), m = A(e, t, o);
1242
+ }, _ = (f == null ? void 0 : f.headerStatusColor) ?? i, h = D(() => {
1243
+ ye(e), me(e, !1);
1244
+ }, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, l), x = A(e, t, o);
1219
1245
  return /* @__PURE__ */ c.jsx(
1220
1246
  Pe,
1221
1247
  {
1222
1248
  ...f,
1223
1249
  headerStatusColor: _,
1224
- header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((x, g) => /* @__PURE__ */ c.jsx(T, { children: x }, `modal-header-${g}`)) }),
1225
- children: /* @__PURE__ */ c.jsx("section", { className: qn.modalContent, children: y.map((x, g) => /* @__PURE__ */ c.jsx(T, { children: x }, `modal-body-${g}`)) }),
1226
- actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: m.map((x, g) => /* @__PURE__ */ c.jsx(T, { children: x }, `modal-footer-${g}`)) }),
1250
+ header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-header-${g}`)) }),
1251
+ children: /* @__PURE__ */ c.jsx("section", { className: Sn.modalContent, children: y.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-body-${g}`)) }),
1252
+ actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: x.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-footer-${g}`)) }),
1227
1253
  open: u,
1228
1254
  onClose: h
1229
1255
  }
1230
1256
  );
1231
1257
  }, On = ({ userFlow: e, pageId: t }) => {
1232
- var o, l;
1258
+ var o, i;
1233
1259
  const s = Tt(e);
1234
1260
  if (!s)
1235
1261
  return null;
1236
1262
  const r = [
1237
1263
  ...(s == null ? void 0 : s.components) || [],
1238
1264
  ...((o = s == null ? void 0 : s.header) == null ? void 0 : o.components) || [],
1239
- ...((l = s == null ? void 0 : s.body) == null ? void 0 : l.components) || []
1240
- ], i = A(
1265
+ ...((i = s == null ? void 0 : s.body) == null ? void 0 : i.components) || []
1266
+ ], l = A(
1241
1267
  e,
1242
1268
  t,
1243
1269
  r
1244
1270
  );
1245
- return /* @__PURE__ */ c.jsx(c.Fragment, { children: i == null ? void 0 : i.map((n, d) => {
1271
+ return /* @__PURE__ */ c.jsx(c.Fragment, { children: l == null ? void 0 : l.map((n, d) => {
1246
1272
  const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
1247
- return /* @__PURE__ */ c.jsx(T, { children: n }, a);
1273
+ return /* @__PURE__ */ c.jsx($, { children: n }, a);
1248
1274
  }) });
1249
1275
  }, Tn = {
1250
1276
  success: {
@@ -1273,12 +1299,12 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1273
1299
  iconColor: "neutral-70"
1274
1300
  }
1275
1301
  }, $n = (e) => {
1276
- const { content: t, variant: s = "neutral", ...r } = e, i = Tn[s], o = {
1302
+ const { content: t, variant: s = "neutral", ...r } = e, l = Tn[s], o = {
1277
1303
  ...r,
1278
1304
  children: t,
1279
- color: (r == null ? void 0 : r.color) ?? i.color,
1280
- textColor: (r == null ? void 0 : r.textColor) ?? i.textColor,
1281
- iconColor: (r == null ? void 0 : r.iconColor) ?? i.iconColor
1305
+ color: (r == null ? void 0 : r.color) ?? l.color,
1306
+ textColor: (r == null ? void 0 : r.textColor) ?? l.textColor,
1307
+ iconColor: (r == null ? void 0 : r.iconColor) ?? l.iconColor
1282
1308
  };
1283
1309
  return /* @__PURE__ */ c.jsx(de, { ...o });
1284
1310
  }, Rn = (e) => {
@@ -1286,47 +1312,47 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1286
1312
  userFlow: t,
1287
1313
  pageId: s,
1288
1314
  responseKey: r,
1289
- actionType: i,
1315
+ actionType: l,
1290
1316
  dataSource: o,
1291
- dependencies: l,
1317
+ dependencies: i,
1292
1318
  onClick: n,
1293
1319
  ...d
1294
1320
  } = e, { getNextUI: a, fetchAndGetNextUI: u } = I(), { disabled: f } = M(
1295
1321
  t,
1296
- l
1322
+ i
1297
1323
  ), _ = {
1298
1324
  ...d
1299
1325
  }, h = (_ == null ? void 0 : _.disabled) ?? f, j = D(async () => {
1300
1326
  var y;
1301
1327
  try {
1302
- const m = {
1328
+ const x = {
1303
1329
  ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1304
1330
  [r]: { status: 200 }
1305
1331
  };
1306
- switch (L(t, m), i) {
1332
+ switch (L(t, x), l) {
1307
1333
  case "GO_TO_NEXT_UI": {
1308
- const x = await a(
1334
+ const m = await a(
1309
1335
  t,
1310
1336
  s,
1311
- m,
1337
+ x,
1312
1338
  r
1313
1339
  );
1314
- x != null && x.data && q(t, x == null ? void 0 : x.data);
1340
+ m != null && m.data && S(t, m == null ? void 0 : m.data);
1315
1341
  break;
1316
1342
  }
1317
1343
  case "FETCH_AND_GO_TO_NEXT_UI": {
1318
- const x = await u(
1344
+ const m = await u(
1319
1345
  t,
1320
1346
  s,
1321
- m,
1347
+ x,
1322
1348
  r,
1323
1349
  o
1324
1350
  );
1325
- x != null && x.data && q(t, x == null ? void 0 : x.data);
1351
+ m != null && m.data && S(t, m == null ? void 0 : m.data);
1326
1352
  break;
1327
1353
  }
1328
1354
  case "CLOSE_MODAL":
1329
- xe(t, !1);
1355
+ me(t, !1);
1330
1356
  break;
1331
1357
  case "CLOSE_DRAWER":
1332
1358
  Z(t, !1);
@@ -1335,13 +1361,13 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1335
1361
  Z(t, !0);
1336
1362
  break;
1337
1363
  default:
1338
- console.warn(`Unhandled actionType: ${i}`);
1364
+ console.warn(`Unhandled actionType: ${l}`);
1339
1365
  break;
1340
1366
  }
1341
- } catch (m) {
1342
- alert(JSON.stringify(m));
1367
+ } catch (x) {
1368
+ alert(JSON.stringify(x));
1343
1369
  }
1344
- }, [i, o, s, r, t]);
1370
+ }, [l, o, s, r, t]);
1345
1371
  return /* @__PURE__ */ c.jsx(
1346
1372
  et,
1347
1373
  {
@@ -1398,11 +1424,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1398
1424
  userFlow: t,
1399
1425
  pageId: s,
1400
1426
  columnWidth: r,
1401
- columns: i,
1427
+ columns: l,
1402
1428
  gap: o = "md",
1403
- justifyContent: l = "start",
1429
+ justifyContent: i = "start",
1404
1430
  alignItems: n = "stretch"
1405
- } = e, d = Array.isArray(i) ? i.map((a, u) => {
1431
+ } = e, d = Array.isArray(l) ? l.map((a, u) => {
1406
1432
  const f = `col_${u}`, _ = `col_${u}`;
1407
1433
  if (Array.isArray(a))
1408
1434
  return {
@@ -1429,7 +1455,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1429
1455
  className: ee(
1430
1456
  U.row,
1431
1457
  U[`row__gap-${o}`],
1432
- U[`row__justify-${l}`],
1458
+ U[`row__justify-${i}`],
1433
1459
  U[`row__align-${n}`]
1434
1460
  ),
1435
1461
  children: d == null ? void 0 : d.map((a, u) => {
@@ -1457,9 +1483,9 @@ function Ie({
1457
1483
  pageId: t,
1458
1484
  responseKey: s,
1459
1485
  actionType: r,
1460
- getNextUI: i,
1486
+ getNextUI: l,
1461
1487
  isMulti: o = !1,
1462
- debounceMs: l
1488
+ debounceMs: i
1463
1489
  }) {
1464
1490
  const n = Je(null);
1465
1491
  J(() => () => {
@@ -1474,19 +1500,19 @@ function Ie({
1474
1500
  };
1475
1501
  if (L(e, f), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1476
1502
  try {
1477
- const y = await i(
1503
+ const y = await l(
1478
1504
  e,
1479
1505
  t,
1480
1506
  f,
1481
1507
  s,
1482
1508
  r === "GO_TO_NEXT_UI"
1483
1509
  );
1484
- y != null && y.data && q(e, y.data);
1510
+ y != null && y.data && S(e, y.data);
1485
1511
  } catch (j) {
1486
1512
  console.error("[useSelectChange] Failed to fetch next UI", j);
1487
1513
  }
1488
1514
  },
1489
- [e, t, s, r, i]
1515
+ [e, t, s, r, l]
1490
1516
  );
1491
1517
  return D(
1492
1518
  (u) => {
@@ -1494,39 +1520,39 @@ function Ie({
1494
1520
  d(u);
1495
1521
  return;
1496
1522
  }
1497
- if (l == null) {
1523
+ if (i == null) {
1498
1524
  d(u);
1499
1525
  return;
1500
1526
  }
1501
1527
  n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
1502
1528
  d(u), n.current = null;
1503
- }, l);
1529
+ }, i);
1504
1530
  },
1505
- [o, l, d]
1531
+ [o, i, d]
1506
1532
  );
1507
1533
  }
1508
1534
  const In = (e, t, s, r) => {
1509
- const i = B.query(e, t);
1510
- return (i == null ? void 0 : i.map((o) => {
1535
+ const l = B.query(e, t);
1536
+ return (l == null ? void 0 : l.map((o) => {
1511
1537
  var d, a;
1512
- const l = (d = B.query(o, s)) == null ? void 0 : d[0], n = r ? (a = B.query(o, r)) == null ? void 0 : a[0] : o;
1513
- return { label: l, value: n };
1538
+ const i = (d = B.query(o, s)) == null ? void 0 : d[0], n = r ? (a = B.query(o, r)) == null ? void 0 : a[0] : o;
1539
+ return { label: i, value: n };
1514
1540
  })) ?? [];
1515
1541
  }, zn = (e, t, s, r = 10) => {
1516
1542
  var n, d;
1517
- let i, o;
1543
+ let l, o;
1518
1544
  if (s) {
1519
1545
  const a = B.value(e, s.size ?? "$.meta.size") ?? r, u = B.value(e, s.total ?? "$.meta.total") ?? 0;
1520
- i = a, o = u;
1546
+ l = a, o = u;
1521
1547
  } else {
1522
1548
  const a = e == null ? void 0 : e.meta;
1523
- i = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, o = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
1549
+ l = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, o = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
1524
1550
  }
1525
- const l = o > 0 ? Math.ceil(o / i) > t : !1;
1551
+ const i = o > 0 ? Math.ceil(o / l) > t : !1;
1526
1552
  return {
1527
- pageSize: i,
1553
+ pageSize: l,
1528
1554
  total: o,
1529
- hasMore: l
1555
+ hasMore: i
1530
1556
  };
1531
1557
  }, Mn = "_selectNotFront_1yw9q_1", ze = {
1532
1558
  selectNotFront: Mn
@@ -1535,22 +1561,22 @@ const In = (e, t, s, r) => {
1535
1561
  pageId: t,
1536
1562
  responseKey: s,
1537
1563
  required: r,
1538
- dataSource: i,
1564
+ dataSource: l,
1539
1565
  actionType: o,
1540
- dependencies: l,
1566
+ dependencies: i,
1541
1567
  debounceMs: n,
1542
1568
  ...d
1543
1569
  }) => {
1544
1570
  const a = {
1545
1571
  ...d
1546
- }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = S((a == null ? void 0 : a.value) ?? ""), { disabled: j } = M(
1572
+ }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = q((a == null ? void 0 : a.value) ?? ""), { disabled: j } = M(
1547
1573
  e,
1548
- l
1549
- ), y = (a == null ? void 0 : a.disabled) ?? j, m = R(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), x = R(() => {
1574
+ i
1575
+ ), y = (a == null ? void 0 : a.disabled) ?? j, x = O(() => 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 = O(() => {
1550
1576
  const p = a != null && a.isMulti ? _ : [_], C = {};
1551
1577
  return typeof p == "object" && "length" in p && (p == null || p.forEach((w) => {
1552
- const E = JSON.stringify(w.value), O = JSON.stringify(w.label);
1553
- C[E] = w, O in C || (C[O] = w);
1578
+ const E = JSON.stringify(w.value), T = JSON.stringify(w.label);
1579
+ C[E] = w, T in C || (C[T] = w);
1554
1580
  })), C;
1555
1581
  }, [_]), g = Ie({
1556
1582
  userFlow: e,
@@ -1565,11 +1591,11 @@ const In = (e, t, s, r) => {
1565
1591
  }, N = async (p, C, { page: w }) => {
1566
1592
  const {
1567
1593
  jsonPathLabel: E,
1568
- jsonPathOptions: O,
1594
+ jsonPathOptions: T,
1569
1595
  jsonPathValue: k,
1570
1596
  jsonPathPagination: K
1571
- } = i, G = me(
1572
- i,
1597
+ } = l, G = xe(
1598
+ l,
1573
1599
  w,
1574
1600
  p
1575
1601
  ), se = await f(
@@ -1578,7 +1604,7 @@ const In = (e, t, s, r) => {
1578
1604
  !1
1579
1605
  ), ae = se == null ? void 0 : se.data, Ke = ae ? In(
1580
1606
  ae,
1581
- O,
1607
+ T,
1582
1608
  E,
1583
1609
  k
1584
1610
  ) : [], { hasMore: Ge } = zn(
@@ -1599,7 +1625,7 @@ const In = (e, t, s, r) => {
1599
1625
  {
1600
1626
  ...a,
1601
1627
  className: ze.selectNotFront,
1602
- label: m,
1628
+ label: x,
1603
1629
  value: _,
1604
1630
  disabled: y,
1605
1631
  noOptionsMessage: () => /* @__PURE__ */ c.jsx(c.Fragment, { children: "Sin opciones" }),
@@ -1608,7 +1634,7 @@ const In = (e, t, s, r) => {
1608
1634
  additional: { page: 1 },
1609
1635
  isOptionDisabled: (p) => {
1610
1636
  const C = JSON.stringify(p == null ? void 0 : p.value), w = JSON.stringify(p == null ? void 0 : p.label);
1611
- return !!(x != null && x[C]) || !!(x != null && x[w]);
1637
+ return !!(m != null && m[C]) || !!(m != null && m[w]);
1612
1638
  },
1613
1639
  debounceTimeout: 350
1614
1640
  }
@@ -1618,18 +1644,18 @@ const In = (e, t, s, r) => {
1618
1644
  pageId: t,
1619
1645
  responseKey: s,
1620
1646
  dataSource: r,
1621
- required: i,
1647
+ required: l,
1622
1648
  actionType: o,
1623
- dependencies: l,
1649
+ dependencies: i,
1624
1650
  debounceMs: n,
1625
1651
  ...d
1626
1652
  }) => {
1627
1653
  const a = {
1628
1654
  ...d
1629
- }, { getNextUI: u } = I(), [f, _] = S(a.value || ""), { disabled: h } = M(
1655
+ }, { getNextUI: u } = I(), [f, _] = q(a.value || ""), { disabled: h } = M(
1630
1656
  e,
1631
- l
1632
- ), j = (a == null ? void 0 : a.disabled) ?? h, y = R(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), m = Ie({
1657
+ i
1658
+ ), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), x = Ie({
1633
1659
  userFlow: e,
1634
1660
  pageId: t,
1635
1661
  responseKey: s,
@@ -1637,8 +1663,8 @@ const In = (e, t, s, r) => {
1637
1663
  getNextUI: u,
1638
1664
  isMulti: a == null ? void 0 : a.isMulti,
1639
1665
  debounceMs: n
1640
- }), x = (g) => {
1641
- _(g), m(g);
1666
+ }), m = (g) => {
1667
+ _(g), x(g);
1642
1668
  };
1643
1669
  return /* @__PURE__ */ c.jsx(
1644
1670
  nt,
@@ -1648,7 +1674,7 @@ const In = (e, t, s, r) => {
1648
1674
  label: y,
1649
1675
  value: f,
1650
1676
  disabled: j,
1651
- onChange: (g) => !j && x(g)
1677
+ onChange: (g) => !j && m(g)
1652
1678
  }
1653
1679
  );
1654
1680
  }, Un = (e) => {
@@ -1672,18 +1698,18 @@ const In = (e, t, s, r) => {
1672
1698
  userFlow: t,
1673
1699
  pageId: s,
1674
1700
  responseKey: r,
1675
- actionType: i,
1701
+ actionType: l,
1676
1702
  label: o,
1677
- value: l,
1703
+ value: i,
1678
1704
  required: n,
1679
1705
  dependencies: d,
1680
1706
  ...a
1681
1707
  } = e, u = {
1682
1708
  ...a
1683
- }, { getNextUI: f } = I(), [_, h] = S(l || !1), { disabled: j } = M(
1709
+ }, { getNextUI: f } = I(), [_, h] = q(i || !1), { disabled: j } = M(
1684
1710
  t,
1685
1711
  d
1686
- ), y = (u == null ? void 0 : u.disabled) ?? j, m = R(() => n && o ? `${o} *` : o ?? "", [o, n]), x = D(async () => {
1712
+ ), y = (u == null ? void 0 : u.disabled) ?? j, x = O(() => n && o ? `${o} *` : o ?? "", [o, n]), m = D(async () => {
1687
1713
  var g;
1688
1714
  try {
1689
1715
  const b = !_;
@@ -1692,7 +1718,7 @@ const In = (e, t, s, r) => {
1692
1718
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
1693
1719
  [r]: b
1694
1720
  };
1695
- switch (L(t, N), i) {
1721
+ switch (L(t, N), l) {
1696
1722
  case "GO_TO_NEXT_UI":
1697
1723
  const p = await f(
1698
1724
  t,
@@ -1700,24 +1726,24 @@ const In = (e, t, s, r) => {
1700
1726
  N,
1701
1727
  r
1702
1728
  );
1703
- p != null && p.data && q(t, p == null ? void 0 : p.data);
1729
+ p != null && p.data && S(t, p == null ? void 0 : p.data);
1704
1730
  break;
1705
1731
  default:
1706
- console.warn(`Unhandled actionType: ${i}`);
1732
+ console.warn(`Unhandled actionType: ${l}`);
1707
1733
  break;
1708
1734
  }
1709
1735
  } catch (b) {
1710
1736
  console.error("Error in switch action:", b), alert(JSON.stringify(b));
1711
1737
  }
1712
- }, [t, s, r, i, _]);
1738
+ }, [t, s, r, l, _]);
1713
1739
  return /* @__PURE__ */ c.jsx(
1714
1740
  rt,
1715
1741
  {
1716
1742
  ...u,
1717
- label: m,
1743
+ label: x,
1718
1744
  checked: _,
1719
1745
  disabled: y,
1720
- onChange: () => !y && x()
1746
+ onChange: () => !y && m()
1721
1747
  }
1722
1748
  );
1723
1749
  }, tr = "_tableSkeleton_3nr9n_1", nr = "_tableArrayPills_3nr9n_7", Me = {
@@ -1726,7 +1752,7 @@ const In = (e, t, s, r) => {
1726
1752
  }, rr = ({ values: e }) => {
1727
1753
  const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
1728
1754
  return /* @__PURE__ */ c.jsxs("div", { className: Me.tableArrayPills, children: [
1729
- s.map((i, o) => /* @__PURE__ */ c.jsx(de, { children: String(i) }, o)),
1755
+ s.map((l, o) => /* @__PURE__ */ c.jsx(de, { children: String(l) }, o)),
1730
1756
  r > 0 && /* @__PURE__ */ c.jsxs(de, { outlined: !0, children: [
1731
1757
  "+",
1732
1758
  r
@@ -1737,9 +1763,9 @@ const In = (e, t, s, r) => {
1737
1763
  pageId: t,
1738
1764
  tableResponseKey: s,
1739
1765
  component: r,
1740
- rowData: i
1766
+ rowData: l
1741
1767
  }) => {
1742
- const { getNextUI: o, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = A(e, t, [
1768
+ const { getNextUI: o, fetchAndGetNextUI: i, fetchDataSource: n } = I(), d = A(e, t, [
1743
1769
  { ...r }
1744
1770
  ]), a = (d == null ? void 0 : d[0]) || null;
1745
1771
  if (!a)
@@ -1749,40 +1775,40 @@ const In = (e, t, s, r) => {
1749
1775
  responseKey: f,
1750
1776
  dataSource: _
1751
1777
  } = a.props, h = D(async () => {
1752
- var j, y, m;
1778
+ var j, y, x;
1753
1779
  try {
1754
- const x = {
1780
+ const m = {
1755
1781
  ...(j = v.getState()[e]) == null ? void 0 : j.entries,
1756
1782
  [f]: { status: 200 },
1757
- [s]: [{ ...i }]
1783
+ [s]: [{ ...l }]
1758
1784
  };
1759
- switch (L(e, x), u) {
1785
+ switch (L(e, m), u) {
1760
1786
  case "GO_TO_NEXT_UI": {
1761
1787
  const g = await o(
1762
1788
  e,
1763
1789
  t,
1764
- x,
1790
+ m,
1765
1791
  f
1766
1792
  );
1767
- g != null && g.data && q(e, g == null ? void 0 : g.data);
1793
+ g != null && g.data && S(e, g == null ? void 0 : g.data);
1768
1794
  break;
1769
1795
  }
1770
1796
  case "FETCH_AND_GO_TO_NEXT_UI": {
1771
- const g = await l(
1797
+ const g = await i(
1772
1798
  e,
1773
1799
  t,
1774
- x,
1800
+ m,
1775
1801
  f,
1776
1802
  _
1777
1803
  );
1778
- g != null && g.data && q(e, g == null ? void 0 : g.data);
1804
+ g != null && g.data && S(e, g == null ? void 0 : g.data);
1779
1805
  break;
1780
1806
  }
1781
1807
  case "GET_DATA_SOURCE": {
1782
1808
  const g = await o(
1783
1809
  e,
1784
1810
  t,
1785
- x,
1811
+ m,
1786
1812
  f
1787
1813
  ), b = (y = g == null ? void 0 : g.data) == null ? void 0 : y.content;
1788
1814
  if ((b == null ? void 0 : b.type) !== "fetch")
@@ -1793,7 +1819,7 @@ const In = (e, t, s, r) => {
1793
1819
  // Avoid to handle loading state until all the requests are done
1794
1820
  !1
1795
1821
  ), C = {
1796
- ...(m = v.getState()[e]) == null ? void 0 : m.entries,
1822
+ ...(x = v.getState()[e]) == null ? void 0 : x.entries,
1797
1823
  [f]: {
1798
1824
  status: p == null ? void 0 : p.status,
1799
1825
  content: p == null ? void 0 : p.data
@@ -1806,15 +1832,15 @@ const In = (e, t, s, r) => {
1806
1832
  C,
1807
1833
  f
1808
1834
  );
1809
- w != null && w.data && q(e, w == null ? void 0 : w.data);
1835
+ w != null && w.data && S(e, w == null ? void 0 : w.data);
1810
1836
  break;
1811
1837
  }
1812
1838
  default:
1813
1839
  console.warn(`Unhandled actionType: ${u}`);
1814
1840
  break;
1815
1841
  }
1816
- } catch (x) {
1817
- alert(JSON.stringify(x));
1842
+ } catch (m) {
1843
+ alert(JSON.stringify(m));
1818
1844
  }
1819
1845
  }, [u, _, t, f, e]);
1820
1846
  return He(a, {
@@ -1833,12 +1859,12 @@ const In = (e, t, s, r) => {
1833
1859
  pageId: t,
1834
1860
  responseKey: s,
1835
1861
  component: r,
1836
- dataSource: i,
1862
+ dataSource: l,
1837
1863
  rightActions: o,
1838
- ...l
1864
+ ...i
1839
1865
  }) => {
1840
1866
  var b, N, p;
1841
- const { fetchDataSource: n } = I(), [d, a] = S(!1), [u, f] = S(1), [_, h] = S(null), j = R(() => {
1867
+ const { fetchDataSource: n } = I(), [d, a] = q(!1), [u, f] = q(1), [_, h] = q(null), j = O(() => {
1842
1868
  if (o != null && o.length)
1843
1869
  return o.map((C, w) => ({
1844
1870
  renderContent: (E) => /* @__PURE__ */ c.jsx(
@@ -1856,8 +1882,8 @@ const In = (e, t, s, r) => {
1856
1882
  }, [o, e, t]), y = async (C = 1) => {
1857
1883
  try {
1858
1884
  a(!0);
1859
- const { jsonPathData: w, mapperData: E, jsonPathPagination: O } = i, k = me(
1860
- i,
1885
+ const { jsonPathData: w, mapperData: E, jsonPathPagination: T } = l, k = xe(
1886
+ l,
1861
1887
  C
1862
1888
  ), K = await n(
1863
1889
  k,
@@ -1869,33 +1895,33 @@ const In = (e, t, s, r) => {
1869
1895
  K == null ? void 0 : K.data,
1870
1896
  w,
1871
1897
  E,
1872
- O
1898
+ T
1873
1899
  )
1874
1900
  ), a(!1);
1875
1901
  } catch (w) {
1876
1902
  alert(JSON.stringify(w)), a(!1);
1877
1903
  }
1878
- }, m = (C) => {
1904
+ }, x = (C) => {
1879
1905
  f(C), y(C);
1880
1906
  };
1881
1907
  J(() => {
1882
1908
  y();
1883
1909
  }, []);
1884
- const x = R(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
1910
+ const m = O(() => !(_ != null && _.items) || !(i != null && i.columns) ? i == null ? void 0 : i.columns : i.columns.map((C) => {
1885
1911
  var E;
1886
1912
  return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
1887
- (O) => Array.isArray(C != null && C.accessor ? O[C == null ? void 0 : C.accessor] : void 0)
1913
+ (T) => Array.isArray(C != null && C.accessor ? T[C == null ? void 0 : C.accessor] : void 0)
1888
1914
  )) ? {
1889
1915
  ...C,
1890
- renderCell: (O) => {
1891
- const k = C.accessor ? O[C.accessor] : void 0;
1916
+ renderCell: (T) => {
1917
+ const k = C.accessor ? T[C.accessor] : void 0;
1892
1918
  return Array.isArray(k) ? /* @__PURE__ */ c.jsx(rr, { values: k }) : k;
1893
1919
  }
1894
1920
  } : C;
1895
- }), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
1896
- ...l,
1921
+ }), [_ == null ? void 0 : _.items, i == null ? void 0 : i.columns]), g = {
1922
+ ...i,
1897
1923
  data: _ == null ? void 0 : _.items,
1898
- columns: x,
1924
+ columns: m,
1899
1925
  rightActions: j
1900
1926
  };
1901
1927
  return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(ar, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
@@ -1907,7 +1933,7 @@ const In = (e, t, s, r) => {
1907
1933
  page: u,
1908
1934
  size: _ == null ? void 0 : _.pagination.size,
1909
1935
  total: (p = _ == null ? void 0 : _.pagination) == null ? void 0 : p.total,
1910
- onChange: m
1936
+ onChange: x
1911
1937
  }
1912
1938
  )
1913
1939
  ] }) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
@@ -1918,22 +1944,22 @@ const In = (e, t, s, r) => {
1918
1944
  userFlow: t,
1919
1945
  pageId: s,
1920
1946
  component: r,
1921
- hash: i,
1947
+ hash: l,
1922
1948
  responseKey: o,
1923
- required: l,
1949
+ required: i,
1924
1950
  dependencies: n,
1925
1951
  ...d
1926
1952
  } = e, a = {
1927
1953
  ...d
1928
- }, [u, f] = S((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = M(
1954
+ }, [u, f] = q((a == null ? void 0 : a.value) ?? ""), { disabled: _ } = M(
1929
1955
  t,
1930
1956
  n
1931
- ), h = (a == null ? void 0 : a.disabled) ?? _, j = R(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), y = (m) => {
1957
+ ), h = (a == null ? void 0 : a.disabled) ?? _, j = O(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), y = (x) => {
1932
1958
  var b;
1933
- const x = (b = m == null ? void 0 : m.target) == null ? void 0 : b.value;
1934
- f(x);
1959
+ const m = (b = x == null ? void 0 : x.target) == null ? void 0 : b.value;
1960
+ f(m);
1935
1961
  const g = {
1936
- [o]: x
1962
+ [o]: m
1937
1963
  };
1938
1964
  L(t, g);
1939
1965
  };
@@ -1948,7 +1974,7 @@ const In = (e, t, s, r) => {
1948
1974
  label: j,
1949
1975
  value: u,
1950
1976
  disabled: h,
1951
- onChange: (m) => !h && y(m)
1977
+ onChange: (x) => !h && y(x)
1952
1978
  }
1953
1979
  );
1954
1980
  }, dr = ({
@@ -1956,16 +1982,16 @@ const In = (e, t, s, r) => {
1956
1982
  pageId: t,
1957
1983
  responseKey: s,
1958
1984
  variant: r,
1959
- content: i,
1985
+ content: l,
1960
1986
  actionType: o,
1961
- redirectUrl: l
1987
+ redirectUrl: i
1962
1988
  }) => {
1963
1989
  const n = D(async () => {
1964
1990
  ye(e);
1965
1991
  try {
1966
1992
  switch (o) {
1967
1993
  case "AUTOCLOSE_AND_REDIRECT":
1968
- window.location.href = l;
1994
+ window.location.href = i;
1969
1995
  break;
1970
1996
  default:
1971
1997
  console.warn(`Unhandled actionType: ${o}`);
@@ -1974,20 +2000,20 @@ const In = (e, t, s, r) => {
1974
2000
  } catch (d) {
1975
2001
  console.error("Error in toast action:", d), alert(JSON.stringify(d));
1976
2002
  }
1977
- }, [o, t, s, e, l]);
2003
+ }, [o, t, s, e, i]);
1978
2004
  return J(() => {
1979
2005
  ({
1980
2006
  info: W.info,
1981
2007
  error: W.error,
1982
2008
  success: W.success,
1983
2009
  warning: W.warning
1984
- }[r] || W.info)(i, {
2010
+ }[r] || W.info)(l, {
1985
2011
  autoClose: o ? !1 : 4e3,
1986
2012
  containerId: e,
1987
2013
  onClose: n
1988
2014
  });
1989
2015
  }, [n, e]), null;
1990
- }, _r = "_accordion_1ri2t_1", ur = "_accordionBody_1ri2t_8", Se = {
2016
+ }, _r = "_accordion_1ri2t_1", ur = "_accordionBody_1ri2t_8", qe = {
1991
2017
  accordion: _r,
1992
2018
  accordionBody: ur
1993
2019
  }, hr = (e) => {
@@ -1995,17 +2021,17 @@ const In = (e, t, s, r) => {
1995
2021
  userFlow: t,
1996
2022
  pageId: s,
1997
2023
  responseKey: r,
1998
- dependencies: i,
2024
+ dependencies: l,
1999
2025
  customContent: o,
2000
- actionContent: l,
2026
+ actionContent: i,
2001
2027
  components: n,
2002
2028
  ...d
2003
- } = e, { getNextUI: a } = I(), [u, f] = S(
2029
+ } = e, { getNextUI: a } = I(), [u, f] = q(
2004
2030
  d.checkboxChecked || !1
2005
2031
  ), { disabled: _ } = M(
2006
2032
  t,
2007
- i
2008
- ), h = A(t, s, n), j = l ? A(t, s, l) : void 0, y = o ? A(t, s, o) : void 0, m = D(
2033
+ l
2034
+ ), h = A(t, s, n), j = i ? A(t, s, i) : void 0, y = o ? A(t, s, o) : void 0, x = D(
2009
2035
  async (b) => {
2010
2036
  var N;
2011
2037
  try {
@@ -2022,50 +2048,50 @@ const In = (e, t, s, r) => {
2022
2048
  C,
2023
2049
  r
2024
2050
  );
2025
- w != null && w.data && q(t, w == null ? void 0 : w.data);
2051
+ w != null && w.data && S(t, w == null ? void 0 : w.data);
2026
2052
  }
2027
2053
  } catch (p) {
2028
2054
  console.error("Error in accordion checkbox action:", p), alert(JSON.stringify(p));
2029
2055
  }
2030
2056
  },
2031
2057
  [t, s, r, d.actionType, a]
2032
- ), x = d.disabled || _, g = {
2058
+ ), m = d.disabled || _, g = {
2033
2059
  ...d,
2034
- className: Se.accordion,
2035
- disabled: x,
2060
+ className: qe.accordion,
2061
+ disabled: m,
2036
2062
  checkboxChecked: u,
2037
- onChanceCheckbox: d.hasCheckbox ? m : void 0,
2038
- actionContent: j ? /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-action-${N}`)) }) : void 0,
2039
- customContent: y ? /* @__PURE__ */ c.jsx(c.Fragment, { children: y.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-custom-${N}`)) }) : void 0,
2040
- children: h ? /* @__PURE__ */ c.jsx("section", { className: Se.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx(T, { children: b }, `accordion-child-${N}`)) }) : void 0
2063
+ onChanceCheckbox: d.hasCheckbox ? x : void 0,
2064
+ actionContent: j ? /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-action-${N}`)) }) : void 0,
2065
+ customContent: y ? /* @__PURE__ */ c.jsx(c.Fragment, { children: y.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-custom-${N}`)) }) : void 0,
2066
+ children: h ? /* @__PURE__ */ c.jsx("section", { className: qe.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-child-${N}`)) }) : void 0
2041
2067
  };
2042
2068
  return /* @__PURE__ */ c.jsx(ct, { ...g });
2043
- }, fr = "_drawer_13pxo_1", yr = "_drawerBody_13pxo_5", xr = "_drawerFooter_13pxo_11", le = {
2069
+ }, fr = "_drawer_13pxo_1", yr = "_drawerBody_13pxo_5", mr = "_drawerFooter_13pxo_11", le = {
2044
2070
  drawer: fr,
2045
2071
  drawerBody: yr,
2046
- drawerFooter: xr
2047
- }, mr = ({
2072
+ drawerFooter: mr
2073
+ }, xr = ({
2048
2074
  userFlow: e,
2049
2075
  pageId: t,
2050
2076
  responseKey: s,
2051
2077
  header: r,
2052
- body: i,
2078
+ body: l,
2053
2079
  footer: o,
2054
- ...l
2080
+ ...i
2055
2081
  }) => {
2056
2082
  const n = v((y) => {
2057
- var m;
2058
- return (m = y[e]) == null ? void 0 : m.isDrawerOpen;
2083
+ var x;
2084
+ return (x = y[e]) == null ? void 0 : x.isDrawerOpen;
2059
2085
  }), d = v((y) => {
2060
- var m;
2061
- return (m = y[e]) == null ? void 0 : m.isLoading;
2086
+ var x;
2087
+ return (x = y[e]) == null ? void 0 : x.isLoading;
2062
2088
  }), a = n && !d, u = {
2063
- ...l,
2089
+ ...i,
2064
2090
  isOpen: a,
2065
2091
  children: null
2066
2092
  }, f = D(() => {
2067
2093
  ye(e), Z(e, !1);
2068
- }, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Ae, { type: "h2", children: r }) : void 0, h = A(e, t, i), j = o ? A(e, t, o) : void 0;
2094
+ }, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Ae, { type: "h2", children: r }) : void 0, h = A(e, t, l), j = o ? A(e, t, o) : void 0;
2069
2095
  return /* @__PURE__ */ c.jsx(
2070
2096
  it,
2071
2097
  {
@@ -2074,17 +2100,17 @@ const In = (e, t, s, r) => {
2074
2100
  isOpen: a,
2075
2101
  onClose: f,
2076
2102
  heightGap: 0,
2077
- title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((y, m) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-header-${m}`)) : _ }) : void 0,
2078
- children: /* @__PURE__ */ c.jsx("section", { className: le.drawerBody, children: h.map((y, m) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-body-${m}`)) }),
2079
- footer: j ? /* @__PURE__ */ c.jsx("div", { className: le.drawerFooter, children: j.map((y, m) => /* @__PURE__ */ c.jsx(T, { children: y }, `drawer-footer-${m}`)) }) : void 0
2103
+ title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
2104
+ children: /* @__PURE__ */ c.jsx("section", { className: le.drawerBody, children: h.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-body-${x}`)) }),
2105
+ footer: j ? /* @__PURE__ */ c.jsx("div", { className: le.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-footer-${x}`)) }) : void 0
2080
2106
  }
2081
2107
  );
2082
- }, qe = (e, t, s, r, i) => {
2108
+ }, Se = (e, t, s, r, l) => {
2083
2109
  const o = A(
2084
2110
  e,
2085
2111
  t,
2086
2112
  (r == null ? void 0 : r.components) || null,
2087
- i
2113
+ l
2088
2114
  );
2089
2115
  switch (s) {
2090
2116
  case "body":
@@ -2110,37 +2136,36 @@ const In = (e, t, s, r) => {
2110
2136
  }
2111
2137
  }, Ar = (e, t, s, r) => {
2112
2138
  var _, h, j;
2113
- const [i, o] = S(!1), l = v((y) => y), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? qe(
2139
+ const [l, o] = q(!1), i = v((y) => y), n = (_ = i[e]) == null ? void 0 : _.currentPageId, d = n ? Se(
2114
2140
  e,
2115
2141
  n,
2116
2142
  "header",
2117
- ((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
2143
+ ((h = i[e].pages[n].page) == null ? void 0 : h.header) || null,
2118
2144
  r
2119
- ) : null, a = n ? qe(
2145
+ ) : null, a = n ? Se(
2120
2146
  e,
2121
2147
  n,
2122
2148
  "body",
2123
- ((j = l[e].pages[n].page) == null ? void 0 : j.body) || null,
2149
+ ((j = i[e].pages[n].page) == null ? void 0 : j.body) || null,
2124
2150
  r
2125
- ) : null, u = R(() => {
2151
+ ) : null, u = O(() => {
2126
2152
  var y;
2127
2153
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2128
- ((y = l[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(lt, {}),
2154
+ ((y = i[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(lt, {}),
2129
2155
  d,
2130
2156
  a,
2131
2157
  n && /* @__PURE__ */ c.jsx(On, { userFlow: e, pageId: n }),
2132
- l[e] && /* @__PURE__ */ c.jsx(dt, {})
2158
+ i[e] && /* @__PURE__ */ c.jsx(dt, {})
2133
2159
  ] });
2134
2160
  }, [d, a, n, e]), f = async () => {
2135
- var y;
2136
2161
  try {
2137
- const m = await De(
2162
+ const y = await De(
2138
2163
  t,
2139
2164
  e
2140
- ), x = (y = m == null ? void 0 : m.data) == null ? void 0 : y.content;
2141
- (m == null ? void 0 : m.status) === 200 ? oe(e, t, x) : o(!0);
2142
- } catch (m) {
2143
- console.error("[not-page]: API call failed", m), o(!0);
2165
+ ), x = y == null ? void 0 : y.data, m = x == null ? void 0 : x.content;
2166
+ (y == null ? void 0 : y.status) === 200 ? oe(e, t, m, x == null ? void 0 : x.sessionState) : o(!0);
2167
+ } catch (y) {
2168
+ console.error("[not-page]: API call failed", y), o(!0);
2144
2169
  }
2145
2170
  };
2146
2171
  return J(() => {
@@ -2149,14 +2174,14 @@ const In = (e, t, s, r) => {
2149
2174
  "not api config",
2150
2175
  "not userFlow"
2151
2176
  ));
2152
- const y = "avocado-theme-mode-changed", m = (x) => {
2153
- const g = x.detail;
2177
+ const y = "avocado-theme-mode-changed", x = (m) => {
2178
+ const g = m.detail;
2154
2179
  ue.setThemeMode(g);
2155
2180
  };
2156
- return window.addEventListener(y, m), () => {
2157
- window.removeEventListener(y, m);
2181
+ return window.addEventListener(y, x), () => {
2182
+ window.removeEventListener(y, x);
2158
2183
  };
2159
- }, []), i && console.error("[not-page]: No render page"), u;
2184
+ }, []), l && console.error("[not-page]: No render page"), u;
2160
2185
  };
2161
2186
  export {
2162
2187
  Nn as Chart,