@foris/avocado-not-front 4.3.2 → 4.4.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,17 +1,17 @@
1
1
  import V from "axios";
2
- import { create as Qe } from "zustand";
3
- import Ye, { useMemo as T, useEffect as z, useState as $, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
4
- import { Heading as Be, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Ie, DataCard as at, Divider as rt, SkeletonBase as Ke, Link as ot, Modal as ct, Pill as he, RoundButton as it, SelectPagination as lt, Select as dt, Switch as _t, Table as ut, Pager as ht, Tabs as ft, TextField as mt, toast as W, Accordion as yt, Drawer as xt, Loading as gt, Toaster as pt } from "@foris/avocado-suite";
5
- import { ChatPanel as bt, SummaryCard as jt, PromptCodeEditor as wt } from "@foris/ai-agent";
6
- import Ct from "@uiw/react-codemirror";
2
+ import { create as Ye } from "zustand";
3
+ import Ze, { useMemo as T, useEffect as z, useState as A, Fragment as S, useCallback as R, useRef as Fe, cloneElement as Pe } from "react";
4
+ import { Heading as Be, Text as et, ThemeStore as te, Tooltip as tt, Breadcrumbs as nt, Button as st, CardAccordion as at, CardNotification as me, Checkbox as rt, PreviewerMarkdown as Ke, DataCard as ot, Divider as ct, SkeletonBase as Me, Link as it, Modal as lt, Pill as he, RoundButton as dt, SelectPagination as _t, Select as ut, Switch as ht, Table as ft, Pager as mt, Tabs as yt, TextField as xt, toast as Q, Accordion as gt, Drawer as pt, Loading as bt, Toaster as jt } from "@foris/avocado-suite";
5
+ import { ChatPanel as wt, SummaryCard as Ct, PromptCodeEditor as Nt } from "@foris/ai-agent";
6
+ import vt from "@uiw/react-codemirror";
7
7
  import { json as we } from "@codemirror/lang-json";
8
- import { markdown as Nt } from "@codemirror/lang-markdown";
9
- import { sql as vt } from "@codemirror/lang-sql";
10
- import { yaml as Et } from "@codemirror/lang-yaml";
8
+ import { markdown as Et } from "@codemirror/lang-markdown";
9
+ import { sql as St } from "@codemirror/lang-sql";
10
+ import { yaml as kt } from "@codemirror/lang-yaml";
11
11
  import L from "jsonpath";
12
- import { Legend as St, Tooltip as kt, XAxis as Tt, YAxis as qt, ResponsiveContainer as ne, AreaChart as $t, CartesianGrid as ye, Area as At, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as Bt, Pie as It, Cell as Kt } from "recharts";
13
- import { Routes as Mt, Route as Ce, Navigate as zt } from "react-router-dom";
14
- const v = Qe(() => ({})), ce = (e, t, a, s) => {
12
+ import { Legend as Tt, Tooltip as $t, XAxis as At, YAxis as qt, ResponsiveContainer as ne, AreaChart as Ot, CartesianGrid as ye, Area as Rt, BarChart as Dt, Bar as Lt, LineChart as It, Line as Bt, PieChart as Kt, Pie as Mt, Cell as zt } from "recharts";
13
+ import { Routes as Gt, Route as Ce, Navigate as Ut } from "react-router-dom";
14
+ const v = Ye(() => ({})), ce = (e, t, a, s) => {
15
15
  const c = a == null ? void 0 : a.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
16
16
  v.setState((l) => {
17
17
  var n;
@@ -35,16 +35,16 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
35
35
  }
36
36
  };
37
37
  });
38
- }, Me = (e, t, a) => {
38
+ }, ze = (e, t, a) => {
39
39
  const s = a && Object.keys(a).length > 0 ? { ...e, ...a } : e;
40
40
  return t.length === 0 ? e : Object.fromEntries(
41
41
  Object.entries(s).filter(
42
42
  ([c]) => !t.includes(c)
43
43
  )
44
44
  );
45
- }, Gt = (e, t, a, s, c) => {
45
+ }, Jt = (e, t, a, s, c) => {
46
46
  sessionStorage.setItem("sessionId", a), v.setState((i) => {
47
- const l = i[e] ?? {}, n = l.entries ?? {}, d = Me(
47
+ const l = i[e] ?? {}, n = l.entries ?? {}, d = ze(
48
48
  n,
49
49
  s,
50
50
  c
@@ -66,10 +66,10 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
66
66
  }
67
67
  };
68
68
  });
69
- }, Ut = (e, t, a, s) => {
69
+ }, Vt = (e, t, a, s) => {
70
70
  v.setState((c) => {
71
71
  var r;
72
- const i = c[e] ?? {}, l = i.entries ?? {}, n = Me(
72
+ const i = c[e] ?? {}, l = i.entries ?? {}, n = ze(
73
73
  l,
74
74
  a,
75
75
  s
@@ -96,23 +96,23 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
96
96
  overlay: null
97
97
  }
98
98
  }));
99
- }, Jt = (e) => {
99
+ }, Ht = (e) => {
100
100
  var a;
101
101
  return ((a = v.getState()[e]) == null ? void 0 : a.overlay) ?? null;
102
- }, A = (e, t) => {
102
+ }, q = (e, t) => {
103
103
  const {
104
104
  content: a,
105
105
  sessionId: s,
106
106
  deprecatedStateKeys: c = [],
107
107
  sessionState: i
108
108
  } = t;
109
- a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Gt(
109
+ a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Jt(
110
110
  e,
111
111
  a,
112
112
  s,
113
113
  c,
114
114
  i
115
- ) : Ut(
115
+ ) : Vt(
116
116
  e,
117
117
  a,
118
118
  c,
@@ -133,6 +133,23 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
133
133
  }
134
134
  };
135
135
  });
136
+ }, Xt = (e, t) => {
137
+ v.setState((a) => {
138
+ const s = a[e];
139
+ if (!s)
140
+ return a;
141
+ const c = s.entries ?? {};
142
+ if (!(t in c))
143
+ return a;
144
+ const { [t]: i, ...l } = c;
145
+ return {
146
+ ...a,
147
+ [e]: {
148
+ ...s,
149
+ entries: l
150
+ }
151
+ };
152
+ });
136
153
  }, H = (e, t) => {
137
154
  v.setState((a) => ({
138
155
  ...a,
@@ -173,15 +190,15 @@ const v = Qe(() => ({})), ce = (e, t, a, s) => {
173
190
  });
174
191
  };
175
192
  let ie = !1, P = [], ve = !1;
176
- const Vt = (e) => e._userFlow || null, Ee = (e) => {
193
+ const Wt = (e) => e._userFlow || null, Ee = (e) => {
177
194
  P.forEach(({ resolve: t, reject: a }) => {
178
195
  e ? a(e) : t(void 0);
179
196
  }), P = [];
180
- }, Ht = async (e) => {
197
+ }, Qt = async (e) => {
181
198
  var s, c;
182
199
  const t = e == null ? void 0 : e.config;
183
200
  if (((s = e == null ? void 0 : e.response) == null ? void 0 : s.status) === 401 && !t._retry) {
184
- const i = Vt(t);
201
+ const i = Wt(t);
185
202
  if (i) {
186
203
  const n = (c = v.getState()[i]) == null ? void 0 : c.apiConfig;
187
204
  if (!n)
@@ -223,20 +240,20 @@ const Vt = (e) => e._userFlow || null, Ee = (e) => {
223
240
  );
224
241
  }
225
242
  return Promise.reject(e);
226
- }, Xt = () => {
243
+ }, Yt = () => {
227
244
  if (ve) {
228
245
  console.debug(
229
246
  "[axiosInterceptors] Interceptors already initialized, skipping"
230
247
  );
231
248
  return;
232
249
  }
233
- console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Ht), console.debug("[axiosInterceptors] Response error interceptor registered"), ve = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
250
+ console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Qt), console.debug("[axiosInterceptors] Response error interceptor registered"), ve = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
234
251
  };
235
- Xt();
236
- function Wt(e) {
252
+ Yt();
253
+ function Zt(e) {
237
254
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
238
255
  }
239
- var le = { exports: {} }, Q = {};
256
+ var le = { exports: {} }, Y = {};
240
257
  /**
241
258
  * @license React
242
259
  * react-jsx-runtime.production.min.js
@@ -247,10 +264,10 @@ var le = { exports: {} }, Q = {};
247
264
  * LICENSE file in the root directory of this source tree.
248
265
  */
249
266
  var Se;
250
- function Qt() {
251
- if (Se) return Q;
267
+ function Ft() {
268
+ if (Se) return Y;
252
269
  Se = 1;
253
- var e = Ye, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
270
+ var e = Ze, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
254
271
  function l(n, d, r) {
255
272
  var u, f = {}, _ = null, h = null;
256
273
  r !== void 0 && (_ = "" + r), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
@@ -258,14 +275,14 @@ function Qt() {
258
275
  if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
259
276
  return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: c.current };
260
277
  }
261
- return Q.Fragment = a, Q.jsx = l, Q.jsxs = l, Q;
278
+ return Y.Fragment = a, Y.jsx = l, Y.jsxs = l, Y;
262
279
  }
263
280
  var ke;
264
- function Yt() {
265
- return ke || (ke = 1, le.exports = Qt()), le.exports;
281
+ function Pt() {
282
+ return ke || (ke = 1, le.exports = Ft()), le.exports;
266
283
  }
267
- var o = Yt();
268
- const Zt = (e) => {
284
+ var o = Pt();
285
+ const en = (e) => {
269
286
  if (!(e != null && e.content)) return null;
270
287
  const t = {
271
288
  ...e,
@@ -273,14 +290,14 @@ const Zt = (e) => {
273
290
  type: e.variant
274
291
  };
275
292
  return /* @__PURE__ */ o.jsx(Be, { ...t });
276
- }, Ft = (e) => {
293
+ }, tn = (e) => {
277
294
  if (!e) return null;
278
295
  const t = {
279
296
  ...e,
280
297
  children: e.content
281
298
  };
282
- return /* @__PURE__ */ o.jsx(Pe, { ...t });
283
- }, Pt = (e) => {
299
+ return /* @__PURE__ */ o.jsx(et, { ...t });
300
+ }, nn = (e) => {
284
301
  const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = T(() => ({
285
302
  url: e.dataSource.url,
286
303
  method: e.dataSource.method,
@@ -313,7 +330,7 @@ const Zt = (e) => {
313
330
  e.initialSuggestions,
314
331
  t
315
332
  ]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
316
- bt,
333
+ wt,
317
334
  {
318
335
  dataSource: s,
319
336
  locale: c,
@@ -322,9 +339,9 @@ const Zt = (e) => {
322
339
  theme: t
323
340
  }
324
341
  );
325
- }, en = "_summaryCard_jva4h_1", tn = {
326
- summaryCard: en
327
- }, nn = (e) => {
342
+ }, sn = "_summaryCard_jva4h_1", an = {
343
+ summaryCard: sn
344
+ }, rn = (e) => {
328
345
  const t = e.dataSource, a = T(() => ({
329
346
  url: e.dataSource.url,
330
347
  method: e.dataSource.method,
@@ -347,15 +364,15 @@ const Zt = (e) => {
347
364
  locale: s,
348
365
  translations: c
349
366
  });
350
- }, [e.onResolveProps, a, s, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: tn.summaryCard, children: /* @__PURE__ */ o.jsx(
351
- jt,
367
+ }, [e.onResolveProps, a, s, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: an.summaryCard, children: /* @__PURE__ */ o.jsx(
368
+ Ct,
352
369
  {
353
370
  dataSource: a,
354
371
  locale: s,
355
372
  translations: c
356
373
  }
357
374
  ) });
358
- }, I = (e, t) => {
375
+ }, B = (e, t) => {
359
376
  const a = v((s) => {
360
377
  var c;
361
378
  return ((c = s[e]) == null ? void 0 : c.entries) || {};
@@ -371,9 +388,9 @@ const Zt = (e) => {
371
388
  });
372
389
  }), s;
373
390
  }, [t, a]);
374
- }, sn = "_promptCodeEditor_1d57s_1", an = {
375
- promptCodeEditor: sn
376
- }, rn = (e) => {
391
+ }, on = "_promptCodeEditor_1d57s_1", cn = {
392
+ promptCodeEditor: on
393
+ }, ln = (e) => {
377
394
  const {
378
395
  userFlow: t,
379
396
  responseKey: a,
@@ -385,31 +402,31 @@ const Zt = (e) => {
385
402
  inputLabel: d,
386
403
  inputPlaceholder: r,
387
404
  codeBlockLabel: u
388
- } = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = $(
405
+ } = e, f = te.useThemeStore((b) => b.theme.mode), [_, h] = A(
389
406
  s || ""
390
- ), { disabled: b } = I(
407
+ ), { disabled: p } = B(
391
408
  t,
392
409
  l
393
- ), m = i ?? b, x = c ?? "json", y = {
410
+ ), m = i ?? p, y = c ?? "json", x = {
394
411
  url: (n == null ? void 0 : n.url) || "",
395
412
  method: (n == null ? void 0 : n.method) || "post",
396
413
  headers: n == null ? void 0 : n.headers,
397
414
  body: n == null ? void 0 : n.data
398
- }, g = (p) => {
399
- h(p);
400
- const N = {
401
- [a]: p
415
+ }, g = (b) => {
416
+ h(b);
417
+ const C = {
418
+ [a]: b
402
419
  };
403
- O(t, N);
420
+ O(t, C);
404
421
  };
405
422
  return z(() => {
406
423
  s !== void 0 && s !== _ && h(s);
407
- }, [s]), /* @__PURE__ */ o.jsx("section", { className: an.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
408
- wt,
424
+ }, [s]), /* @__PURE__ */ o.jsx("section", { className: cn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
425
+ Nt,
409
426
  {
410
427
  themeMode: f,
411
- requestConfig: y,
412
- language: x,
428
+ requestConfig: x,
429
+ language: y,
413
430
  disabled: m,
414
431
  inputLabel: d,
415
432
  inputPlaceholder: r,
@@ -418,10 +435,79 @@ const Zt = (e) => {
418
435
  onCodeChange: g
419
436
  }
420
437
  ) });
421
- }, on = "_body_14tsv_1", cn = "_body_content_14tsv_5", Te = {
422
- body: on,
423
- body_content: cn
424
- }, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Te.body, children: /* @__PURE__ */ o.jsx("div", { className: Te.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), X = (e) => {
438
+ }, dn = "_body_14tsv_1", _n = "_body_content_14tsv_5", Te = {
439
+ body: dn,
440
+ body_content: _n
441
+ }, un = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: Te.body, children: /* @__PURE__ */ o.jsx("div", { className: Te.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(S, { children: t }, a)) }) }), E = (e, t, a, s) => {
442
+ var l;
443
+ const c = {
444
+ accordion: (n) => /* @__PURE__ */ o.jsx(Js, { ...n, userFlow: e, pageId: t }),
445
+ aiChatPanel: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
446
+ aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
447
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(ln, { ...n, userFlow: e, pageId: t }),
448
+ breadcrumbs: (n) => /* @__PURE__ */ o.jsx(bn, { ...n, userFlow: e, pageId: t }),
449
+ tooltip: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
450
+ button: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
451
+ cardAccordion: (n) => /* @__PURE__ */ o.jsx(Cn, { ...n, userFlow: e, pageId: t }),
452
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(Nn, { ...n }),
453
+ chart: (n) => /* @__PURE__ */ o.jsx(Xn, { ...n, userFlow: e }),
454
+ dataCard: (n) => /* @__PURE__ */ o.jsx(Ln, { ...n, userFlow: e, pageId: t }),
455
+ checkbox: (n) => /* @__PURE__ */ o.jsx(vn, { ...n, userFlow: e, pageId: t }),
456
+ code: (n) => /* @__PURE__ */ o.jsx(qn, { ...n, userFlow: e, pageId: t }),
457
+ divider: (n) => /* @__PURE__ */ o.jsx(Kn, { ...n }),
458
+ drawer: (n) => /* @__PURE__ */ o.jsx(Ws, { ...n, userFlow: e, pageId: t }),
459
+ heading: (n) => en(n),
460
+ link: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n, userFlow: e, pageId: t }),
461
+ pill: (n) => /* @__PURE__ */ o.jsx(ss, { ...n }),
462
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(as, { ...n }),
463
+ modal: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
464
+ roundButton: (n) => /* @__PURE__ */ o.jsx(rs, { ...n, userFlow: e, pageId: t }),
465
+ row: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: e, pageId: t }),
466
+ select: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: e, pageId: t }),
467
+ switch: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
468
+ spacing: (n) => /* @__PURE__ */ o.jsx(Es, { ...n, userFlow: e, pageId: t }),
469
+ table: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
470
+ tabs: (n) => /* @__PURE__ */ o.jsx(Is, { ...n, userFlow: e, pageId: t }),
471
+ text: (n) => tn(n),
472
+ textField: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: e, pageId: t }),
473
+ toast: (n) => /* @__PURE__ */ o.jsx(zs, { ...n, userFlow: e, pageId: t })
474
+ };
475
+ return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
476
+ const d = c[n.component];
477
+ return d ? d({ ...n, userFlow: e, pageId: t }) : null;
478
+ });
479
+ }, hn = "_tooltipNotFront_106iw_1", fn = "_tooltipNotFront_content_106iw_5", $e = {
480
+ tooltipNotFront: hn,
481
+ tooltipNotFront_content: fn
482
+ }, mn = (e) => {
483
+ const {
484
+ userFlow: t,
485
+ pageId: a,
486
+ component: s,
487
+ hash: c,
488
+ responseKey: i,
489
+ content: l,
490
+ label: n,
491
+ placement: d,
492
+ notShowArrow: r,
493
+ visible: u
494
+ } = e, f = E(
495
+ t,
496
+ a,
497
+ l != null && l.length ? l : null
498
+ ), _ = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: $e.tooltipNotFront_content, children: f.map((h, p) => /* @__PURE__ */ o.jsx(S, { children: h }, `tooltip-${c}-${p}`)) }) : null;
499
+ return /* @__PURE__ */ o.jsx(
500
+ tt,
501
+ {
502
+ className: $e.tooltipNotFront,
503
+ label: n,
504
+ placement: d,
505
+ notShowArrow: r,
506
+ visible: u,
507
+ children: _
508
+ }
509
+ );
510
+ }, W = (e) => {
425
511
  if (!e)
426
512
  return { "content-type": "application/json" };
427
513
  if (typeof e == "function")
@@ -433,10 +519,10 @@ const Zt = (e) => {
433
519
  return { "content-type": "application/json", Authorization: e };
434
520
  }
435
521
  return e;
436
- }, F = () => new AbortController(), dn = (e, t = {}, a = {}, s = !1, c) => {
522
+ }, F = () => new AbortController(), yn = (e, t = {}, a = {}, s = !1, c) => {
437
523
  const i = F();
438
524
  s && i.abort();
439
- const l = X(t);
525
+ const l = W(t);
440
526
  return {
441
527
  call: V.get(e, {
442
528
  headers: {
@@ -451,7 +537,7 @@ const Zt = (e) => {
451
537
  }, fe = (e, t = {}, a = {}, s = {}, c = !1, i) => {
452
538
  const l = F();
453
539
  c && l.abort();
454
- const n = X(t);
540
+ const n = W(t);
455
541
  return {
456
542
  call: V.post(e, a, {
457
543
  headers: {
@@ -463,10 +549,10 @@ const Zt = (e) => {
463
549
  }),
464
550
  controller: l
465
551
  };
466
- }, _n = (e, t = {}, a = {}, s = {}, c = !1, i) => {
552
+ }, xn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
467
553
  const l = F();
468
554
  c && l.abort();
469
- const n = X(t);
555
+ const n = W(t);
470
556
  return {
471
557
  call: V.put(e, a, {
472
558
  headers: {
@@ -478,10 +564,10 @@ const Zt = (e) => {
478
564
  }),
479
565
  controller: l
480
566
  };
481
- }, un = (e, t = {}, a = {}, s = {}, c = !1, i) => {
567
+ }, gn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
482
568
  const l = F();
483
569
  c && l.abort();
484
- const n = X(t);
570
+ const n = W(t);
485
571
  return {
486
572
  call: V.patch(e, a, {
487
573
  headers: {
@@ -493,10 +579,10 @@ const Zt = (e) => {
493
579
  }),
494
580
  controller: l
495
581
  };
496
- }, hn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
582
+ }, pn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
497
583
  const l = F();
498
584
  c && l.abort();
499
- const n = X(t);
585
+ const n = W(t);
500
586
  return {
501
587
  call: V.delete(e, {
502
588
  headers: {
@@ -509,7 +595,7 @@ const Zt = (e) => {
509
595
  }),
510
596
  controller: l
511
597
  };
512
- }, ze = () => {
598
+ }, Ge = () => {
513
599
  let e;
514
600
  return { callEndpoint: async (s) => {
515
601
  s.controller && (e = s.controller);
@@ -523,11 +609,11 @@ const Zt = (e) => {
523
609
  }, cancelEndpoint: () => {
524
610
  e && e.abort();
525
611
  } };
526
- }, Ge = async (e, t, a = "", s = {}, c = {}) => {
612
+ }, Ue = async (e, t, a = "", s = {}, c = {}) => {
527
613
  try {
528
- const { callEndpoint: i } = ze(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
614
+ const { callEndpoint: i } = Ge(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
529
615
  a && r.append("hash_code", a), d && r.append("sessionId", d);
530
- const u = `${l}/not-front/next-ui/?${r.toString()}`, f = X(n), _ = fe(
616
+ const u = `${l}/not-front/next-ui/?${r.toString()}`, f = W(n), _ = fe(
531
617
  u,
532
618
  f,
533
619
  s,
@@ -540,18 +626,18 @@ const Zt = (e) => {
540
626
  return console.error(i), Promise.reject(i);
541
627
  }
542
628
  }, K = () => {
543
- const e = v((n) => n), { callEndpoint: t } = ze(), a = async (n, d, r, u, f = !0) => {
629
+ const e = v((n) => n), { callEndpoint: t } = Ge(), a = async (n, d, r, u, f = !0) => {
544
630
  var _;
545
631
  try {
546
- const h = (_ = e[n]) == null ? void 0 : _.apiConfig, b = {
632
+ const h = (_ = e[n]) == null ? void 0 : _.apiConfig, p = {
547
633
  state: { ...r },
548
634
  triggerKey: u
549
635
  };
550
- return f && H(n, !0), await Ge(
636
+ return f && H(n, !0), await Ue(
551
637
  h,
552
638
  n,
553
639
  d,
554
- b
640
+ p
555
641
  );
556
642
  } catch (h) {
557
643
  throw f && H(n, !1), console.error("[getNextUI] Error fetching next UI:", h), h;
@@ -562,14 +648,14 @@ const Zt = (e) => {
562
648
  case "post":
563
649
  return fe(u, f, _, {}, !1, d);
564
650
  case "put":
565
- return _n(u, f, _, {}, !1, d);
651
+ return xn(u, f, _, {}, !1, d);
566
652
  case "patch":
567
- return un(u, f, _, {}, !1, d);
653
+ return gn(u, f, _, {}, !1, d);
568
654
  case "delete":
569
- return hn(u, f, _, h, !1, d);
655
+ return pn(u, f, _, h, !1, d);
570
656
  case "get":
571
657
  default:
572
- return dn(u, f, h, !1, d);
658
+ return yn(u, f, h, !1, d);
573
659
  }
574
660
  }, c = (n, d) => {
575
661
  const { url: r, headers: u } = n, f = {
@@ -642,7 +728,7 @@ const Zt = (e) => {
642
728
  }
643
729
  }
644
730
  };
645
- }, fn = ({
731
+ }, bn = ({
646
732
  userFlow: e,
647
733
  items: t,
648
734
  responseKey: a
@@ -659,7 +745,7 @@ const Zt = (e) => {
659
745
  { ...(r = v.getState()[e]) == null ? void 0 : r.entries },
660
746
  a
661
747
  );
662
- u != null && u.data && A(e, u == null ? void 0 : u.data);
748
+ u != null && u.data && q(e, u == null ? void 0 : u.data);
663
749
  break;
664
750
  case "REDIRECT":
665
751
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
@@ -677,8 +763,8 @@ const Zt = (e) => {
677
763
  title: l == null ? void 0 : l.title,
678
764
  component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(l) })
679
765
  })), []);
680
- return /* @__PURE__ */ o.jsx(et, { items: i });
681
- }, mn = (e) => {
766
+ return /* @__PURE__ */ o.jsx(nt, { items: i });
767
+ }, jn = (e) => {
682
768
  const {
683
769
  userFlow: t,
684
770
  pageId: a,
@@ -691,20 +777,20 @@ const Zt = (e) => {
691
777
  dependencies: r,
692
778
  onClick: u,
693
779
  ...f
694
- } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } = K(), { disabled: m } = I(
780
+ } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: p } = K(), { disabled: m } = B(
695
781
  t,
696
782
  r
697
- ), x = {
783
+ ), y = {
698
784
  ...f,
699
785
  children: l ?? i
700
- }, y = (x == null ? void 0 : x.disabled) ?? m, g = R(async () => {
701
- var p, N, j;
786
+ }, x = (y == null ? void 0 : y.disabled) ?? m, g = R(async () => {
787
+ var b, C, j;
702
788
  try {
703
- const C = {
704
- ...(p = v.getState()[t]) == null ? void 0 : p.entries,
789
+ const N = {
790
+ ...(b = v.getState()[t]) == null ? void 0 : b.entries,
705
791
  [s]: { status: 200 }
706
792
  };
707
- switch (O(t, C), c) {
793
+ switch (O(t, N), c) {
708
794
  case "CLOSE_MODAL":
709
795
  ge(t, !1);
710
796
  break;
@@ -718,32 +804,32 @@ const Zt = (e) => {
718
804
  const w = await _(
719
805
  t,
720
806
  a,
721
- C,
807
+ N,
722
808
  s
723
809
  );
724
- w != null && w.data && A(t, w == null ? void 0 : w.data);
810
+ w != null && w.data && q(t, w == null ? void 0 : w.data);
725
811
  break;
726
812
  }
727
813
  case "FETCH_AND_GO_TO_NEXT_UI": {
728
- const w = await b(
814
+ const w = await p(
729
815
  t,
730
816
  a,
731
- C,
817
+ N,
732
818
  s,
733
819
  n
734
820
  );
735
- w != null && w.data && A(t, w == null ? void 0 : w.data);
821
+ w != null && w.data && q(t, w == null ? void 0 : w.data);
736
822
  break;
737
823
  }
738
824
  case "GET_DATA_SOURCE": {
739
825
  const w = await _(
740
826
  t,
741
827
  a,
742
- C,
828
+ N,
743
829
  s
744
- ), S = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
745
- if ((S == null ? void 0 : S.type) !== "fetch") break;
746
- const D = S == null ? void 0 : S.dataSource, q = await h(
830
+ ), k = (C = w == null ? void 0 : w.data) == null ? void 0 : C.content;
831
+ if ((k == null ? void 0 : k.type) !== "fetch") break;
832
+ const D = k == null ? void 0 : k.dataSource, $ = await h(
747
833
  D,
748
834
  t,
749
835
  // Avoid to handle loading state until all the requests are done
@@ -751,8 +837,8 @@ const Zt = (e) => {
751
837
  ), G = {
752
838
  ...(j = v.getState()[t]) == null ? void 0 : j.entries,
753
839
  [s]: {
754
- status: q == null ? void 0 : q.status,
755
- content: q == null ? void 0 : q.data
840
+ status: $ == null ? void 0 : $.status,
841
+ content: $ == null ? void 0 : $.data
756
842
  }
757
843
  };
758
844
  O(t, G);
@@ -762,7 +848,7 @@ const Zt = (e) => {
762
848
  G,
763
849
  s
764
850
  );
765
- U != null && U.data && A(t, U == null ? void 0 : U.data);
851
+ U != null && U.data && q(t, U == null ? void 0 : U.data);
766
852
  break;
767
853
  }
768
854
  case "REDIRECT":
@@ -772,58 +858,21 @@ const Zt = (e) => {
772
858
  console.warn(`Unhandled actionType: ${c}`);
773
859
  break;
774
860
  }
775
- } catch (C) {
776
- alert(JSON.stringify(C));
861
+ } catch (N) {
862
+ alert(JSON.stringify(N));
777
863
  }
778
864
  }, [c, n, a, s, t]);
779
865
  return /* @__PURE__ */ o.jsx(
780
- tt,
866
+ st,
781
867
  {
782
- ...x,
783
- disabled: y,
784
- onClick: () => !y && (u ?? g)()
868
+ ...y,
869
+ disabled: x,
870
+ onClick: () => !x && (u ?? g)()
785
871
  }
786
872
  );
787
- }, E = (e, t, a, s) => {
788
- var l;
789
- const c = {
790
- accordion: (n) => /* @__PURE__ */ o.jsx(Ks, { ...n, userFlow: e, pageId: t }),
791
- aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Pt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
792
- aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
793
- aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
794
- breadcrumbs: (n) => /* @__PURE__ */ o.jsx(fn, { ...n, userFlow: e, pageId: t }),
795
- button: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
796
- cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
797
- cardNotification: (n) => /* @__PURE__ */ o.jsx(bn, { ...n }),
798
- chart: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e }),
799
- dataCard: (n) => /* @__PURE__ */ o.jsx($n, { ...n, userFlow: e, pageId: t }),
800
- checkbox: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
801
- code: (n) => /* @__PURE__ */ o.jsx(Sn, { ...n, userFlow: e, pageId: t }),
802
- divider: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n }),
803
- drawer: (n) => /* @__PURE__ */ o.jsx(Us, { ...n, userFlow: e, pageId: t }),
804
- heading: (n) => Zt(n),
805
- link: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
806
- pill: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
807
- previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n }),
808
- modal: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
809
- roundButton: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
810
- row: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: e, pageId: t }),
811
- select: (n) => /* @__PURE__ */ o.jsx(_s, { ...n, userFlow: e, pageId: t }),
812
- switch: (n) => /* @__PURE__ */ o.jsx(ws, { ...n, userFlow: e, pageId: t }),
813
- spacing: (n) => /* @__PURE__ */ o.jsx(js, { ...n, userFlow: e, pageId: t }),
814
- table: (n) => /* @__PURE__ */ o.jsx(ks, { ...n, userFlow: e, pageId: t }),
815
- tabs: (n) => /* @__PURE__ */ o.jsx(As, { ...n, userFlow: e, pageId: t }),
816
- text: (n) => Ft(n),
817
- textField: (n) => /* @__PURE__ */ o.jsx(Ds, { ...n, userFlow: e, pageId: t }),
818
- toast: (n) => /* @__PURE__ */ o.jsx(Ls, { ...n, userFlow: e, pageId: t })
819
- };
820
- return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
821
- const d = c[n.component];
822
- return d ? d({ ...n, userFlow: e, pageId: t }) : null;
823
- });
824
- }, yn = "_slotStack_12u4t_5", qe = {
825
- slotStack: yn
826
- }, xn = (e) => {
873
+ }, wn = "_slotStack_12u4t_5", Ae = {
874
+ slotStack: wn
875
+ }, Cn = (e) => {
827
876
  const {
828
877
  userFlow: t,
829
878
  pageId: a,
@@ -834,7 +883,7 @@ const Zt = (e) => {
834
883
  content: n,
835
884
  actionContent: d,
836
885
  ...r
837
- } = e, { disabled: u } = I(
886
+ } = e, { disabled: u } = B(
838
887
  t,
839
888
  l
840
889
  ), f = E(
@@ -845,31 +894,23 @@ const Zt = (e) => {
845
894
  t,
846
895
  a,
847
896
  d && d.length > 0 ? d : null
848
- ), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: f.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-body-${c}-${y}`)) }) : void 0, b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-actions-${c}-${y}`)) }) : void 0, m = r.disabled || u;
897
+ ), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: f.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `card-accordion-body-${c}-${x}`)) }) : void 0, p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `card-accordion-actions-${c}-${x}`)) }) : void 0, m = r.disabled || u;
849
898
  return /* @__PURE__ */ o.jsx(
850
- nt,
899
+ at,
851
900
  {
852
901
  ...r,
853
902
  disabled: m,
854
- actionContent: b,
903
+ actionContent: p,
855
904
  children: h ?? null
856
905
  }
857
906
  );
858
- }, gn = "_cardNotificationNotFront_t7pln_1", pn = {
859
- cardNotificationNotFront: gn
860
- }, bn = (e) => {
907
+ }, Nn = (e) => {
861
908
  const { content: t, description: a, ...s } = e, c = {
862
909
  ...s,
863
910
  children: t ?? a
864
911
  };
865
- return /* @__PURE__ */ o.jsx(
866
- me,
867
- {
868
- ...c,
869
- className: pn.cardNotificationNotFront
870
- }
871
- );
872
- }, jn = (e) => {
912
+ return /* @__PURE__ */ o.jsx(me, { ...c });
913
+ }, vn = (e) => {
873
914
  const {
874
915
  userFlow: t,
875
916
  pageId: a,
@@ -882,55 +923,56 @@ const Zt = (e) => {
882
923
  ...r
883
924
  } = e, u = {
884
925
  ...r
885
- }, { getNextUI: f } = K(), [_, h] = $(l || !1), { disabled: b } = I(
926
+ }, { getNextUI: f } = K(), [_, h] = A(l || !1), { disabled: p } = B(
886
927
  t,
887
928
  d
888
- ), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
929
+ ), m = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
889
930
  var g;
890
931
  try {
891
- const p = !_;
892
- h(p);
893
- const N = {
932
+ const b = !_;
933
+ h(b);
934
+ const C = {
894
935
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
895
- [s]: p
936
+ [s]: b
896
937
  };
897
- switch (O(t, N), c) {
938
+ switch (O(t, C), c) {
898
939
  case "GO_TO_NEXT_UI":
899
940
  const j = await f(
900
941
  t,
901
942
  a,
902
- N,
943
+ C,
903
944
  s
904
945
  );
905
- j != null && j.data && A(t, j == null ? void 0 : j.data);
946
+ j != null && j.data && q(t, j == null ? void 0 : j.data);
906
947
  break;
907
948
  default:
908
949
  console.warn(`Unhandled actionType: ${c}`);
909
950
  break;
910
951
  }
911
- } catch (p) {
912
- console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
952
+ } catch (b) {
953
+ console.error("Error in checkbox action:", b), alert(JSON.stringify(b));
913
954
  }
914
- }, [t, a, s, c, _]), y = (u == null ? void 0 : u.disabled) ?? b;
955
+ }, [t, a, s, c, _]), x = (u == null ? void 0 : u.disabled) ?? p;
915
956
  return /* @__PURE__ */ o.jsx(
916
- st,
957
+ rt,
917
958
  {
918
959
  ...u,
919
960
  labelRight: m,
920
961
  checked: _,
921
- disabled: y,
962
+ disabled: x,
922
963
  onChange: () => {
923
- !y && x();
964
+ !x && y();
924
965
  }
925
966
  }
926
967
  );
927
- }, wn = "_codeEditor_1coz7_1", Cn = "_codeEditor_label_1coz7_4", Nn = "_codeEditor_wrapper_1coz7_13", vn = "_input_1coz7_17", En = "_preview_1coz7_18", Y = {
928
- codeEditor: wn,
929
- codeEditor_label: Cn,
930
- codeEditor_wrapper: Nn,
931
- input: vn,
932
- preview: En
933
- }, Sn = (e) => {
968
+ }, En = "_codeEditor_1wi2p_1", Sn = "_codeEditor_label_1wi2p_4", kn = "_codeEditor_wrapper_1wi2p_13", Tn = "_input_1wi2p_17", $n = "_preview_1wi2p_18", An = "_preview_inner_1wi2p_33", X = {
969
+ codeEditor: En,
970
+ codeEditor_label: Sn,
971
+ codeEditor_wrapper: kn,
972
+ input: Tn,
973
+ preview: $n,
974
+ preview_inner: An
975
+ }, qn = (e) => {
934
976
  const {
935
977
  userFlow: t,
936
978
  responseKey: a,
@@ -941,39 +983,40 @@ const Zt = (e) => {
941
983
  required: n,
942
984
  dependencies: d,
943
985
  disabled: r,
944
- showPreview: u
945
- } = e, [f, _] = $(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: b } = I(
986
+ showPreview: u,
987
+ height: f = "400px"
988
+ } = e, [_, h] = A(l ?? ""), p = te.useThemeStore((C) => C.theme.mode), { disabled: m } = B(
946
989
  t,
947
990
  d
948
- ), m = r ?? b, x = {
991
+ ), y = r ?? m, x = {
949
992
  json: we(),
950
- markdown: Nt(),
951
- sql: vt(),
952
- yaml: Et()
953
- }, y = T(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
954
- _(p);
955
- const N = {
956
- [a]: p
993
+ markdown: Et(),
994
+ sql: St(),
995
+ yaml: kt()
996
+ }, g = T(() => n && s ? `${s} *` : s ?? "", [s, n]), b = (C) => {
997
+ h(C);
998
+ const j = {
999
+ [a]: C
957
1000
  };
958
- O(t, N);
1001
+ O(t, j);
959
1002
  };
960
- return /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor, children: [
961
- y && y !== "" && /* @__PURE__ */ o.jsx("label", { className: Y.codeEditor_label, children: y }),
962
- /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor_wrapper, children: [
1003
+ return /* @__PURE__ */ o.jsxs("div", { className: X.codeEditor, children: [
1004
+ g && g !== "" && /* @__PURE__ */ o.jsx("label", { className: X.codeEditor_label, children: g }),
1005
+ /* @__PURE__ */ o.jsxs("div", { className: X.codeEditor_wrapper, children: [
963
1006
  /* @__PURE__ */ o.jsx(
964
- Ct,
1007
+ vt,
965
1008
  {
966
- className: Y.input,
967
- value: f,
968
- height: "400px",
1009
+ className: X.input,
1010
+ value: _,
1011
+ height: f,
969
1012
  placeholder: i,
970
1013
  extensions: [x[c] ?? we()],
971
- onChange: (p) => g(p),
972
- theme: h,
973
- editable: !m
1014
+ onChange: (C) => b(C),
1015
+ theme: p,
1016
+ editable: !y
974
1017
  }
975
1018
  ),
976
- c == "markdown" && u && /* @__PURE__ */ o.jsx(Ie, { className: Y.preview, children: f })
1019
+ c === "markdown" && u && /* @__PURE__ */ o.jsx("div", { className: X.preview, style: { height: f }, children: /* @__PURE__ */ o.jsx(Ke, { className: X.preview_inner, children: _ }) })
977
1020
  ] })
978
1021
  ] });
979
1022
  };
@@ -983,9 +1026,9 @@ var de = { exports: {} };
983
1026
  Licensed under the MIT License (MIT), see
984
1027
  http://jedwatson.github.io/classnames
985
1028
  */
986
- var $e;
987
- function kn() {
988
- return $e || ($e = 1, (function(e) {
1029
+ var qe;
1030
+ function On() {
1031
+ return qe || (qe = 1, (function(e) {
989
1032
  (function() {
990
1033
  var t = {}.hasOwnProperty;
991
1034
  function a() {
@@ -1016,10 +1059,10 @@ function kn() {
1016
1059
  })();
1017
1060
  })(de)), de.exports;
1018
1061
  }
1019
- var Tn = kn();
1020
- const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1021
- slotStack: qn
1022
- }, $n = (e) => {
1062
+ var Rn = On();
1063
+ const ee = /* @__PURE__ */ Zt(Rn), Dn = "_slotStack_6n2wy_5", Oe = {
1064
+ slotStack: Dn
1065
+ }, Ln = (e) => {
1023
1066
  const {
1024
1067
  userFlow: t,
1025
1068
  pageId: a,
@@ -1039,20 +1082,20 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1039
1082
  t,
1040
1083
  a,
1041
1084
  n && n.length > 0 ? n : null
1042
- ), b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-body-${c}-${y}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-top-${c}-${y}`)) }) : void 0;
1085
+ ), p = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Oe.slotStack, children: _.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `data-card-body-${c}-${x}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Oe.slotStack, children: h.map((y, x) => /* @__PURE__ */ o.jsx(S, { children: y }, `data-card-top-${c}-${x}`)) }) : void 0;
1043
1086
  return /* @__PURE__ */ o.jsx(
1044
- at,
1087
+ ot,
1045
1088
  {
1046
1089
  ...u,
1047
1090
  icon: d,
1048
1091
  headerStatusColor: f,
1049
1092
  topContent: m,
1050
- children: b
1093
+ children: p
1051
1094
  }
1052
1095
  );
1053
- }, An = "_dividerNotFront_tze3j_1", On = {
1054
- dividerNotFront: An
1055
- }, Rn = (e) => /* @__PURE__ */ o.jsx(rt, { ...e, className: On.dividerNotFront }), Dn = (e, t, a) => {
1096
+ }, In = "_dividerNotFront_tze3j_1", Bn = {
1097
+ dividerNotFront: In
1098
+ }, Kn = (e) => /* @__PURE__ */ o.jsx(ct, { ...e, className: Bn.dividerNotFront }), Mn = (e, t, a) => {
1056
1099
  const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
1057
1100
  if (l.push(`${n}=${t}`), typeof a == "string") {
1058
1101
  const u = (c == null ? void 0 : c.text) ?? "text";
@@ -1070,7 +1113,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1070
1113
  const { type: s, url: c, method: i, headers: l } = e;
1071
1114
  return s === "rest" ? {
1072
1115
  type: "rest",
1073
- url: Dn(e, t, a),
1116
+ url: Mn(e, t, a),
1074
1117
  method: i,
1075
1118
  headers: l,
1076
1119
  data: (e == null ? void 0 : e.data) || {}
@@ -1086,19 +1129,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1086
1129
  page: t
1087
1130
  }
1088
1131
  };
1089
- }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ue = (e, t, a, s) => {
1132
+ }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Je = (e, t, a, s) => {
1090
1133
  const c = L.query(e, t), i = c == null ? void 0 : c.map((r) => {
1091
1134
  var u, f;
1092
1135
  if (a) {
1093
1136
  const _ = {};
1094
- for (const [h, b] of Object.entries(a))
1095
- if (typeof b == "object" && "path" in b) {
1096
- const m = b, x = (u = L.query(r, m.path)) == null ? void 0 : u[0];
1097
- m.translations && String(x) in m.translations ? _[h] = _e(
1098
- m.translations[String(x)]
1099
- ) : _[h] = _e(x);
1137
+ for (const [h, p] of Object.entries(a))
1138
+ if (typeof p == "object" && "path" in p) {
1139
+ const m = p, y = (u = L.query(r, m.path)) == null ? void 0 : u[0];
1140
+ m.translations && String(y) in m.translations ? _[h] = _e(
1141
+ m.translations[String(y)]
1142
+ ) : _[h] = _e(y);
1100
1143
  } else {
1101
- const m = b;
1144
+ const m = p;
1102
1145
  _[h] = _e((f = L.query(r, m)) == null ? void 0 : f[0]);
1103
1146
  }
1104
1147
  return _;
@@ -1114,19 +1157,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1114
1157
  };
1115
1158
  return { items: i, pagination: d };
1116
1159
  }, se = ({ withPadding: e = !1 }) => {
1117
- const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: B.labelColor }, children: a });
1160
+ const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: I.labelColor }, children: a });
1118
1161
  return /* @__PURE__ */ o.jsx(
1119
- St,
1162
+ Tt,
1120
1163
  {
1121
1164
  formatter: t,
1122
1165
  wrapperStyle: {
1123
- fontSize: B.fontSize,
1124
- fontFamily: B.fontFamily,
1166
+ fontSize: I.fontSize,
1167
+ fontFamily: I.fontFamily,
1125
1168
  padding: e ? "1rem 0" : "0"
1126
1169
  }
1127
1170
  }
1128
1171
  );
1129
- }, Ln = ({
1172
+ }, zn = ({
1130
1173
  active: e,
1131
1174
  payload: t,
1132
1175
  label: a,
@@ -1136,9 +1179,9 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1136
1179
  if (!e || !t || !t.length)
1137
1180
  return null;
1138
1181
  const c = {
1139
- backgroundColor: B.tooltipBg,
1140
- borderRadius: B.tooltipBorderRadius,
1141
- color: B.tooltipColor,
1182
+ backgroundColor: I.tooltipBg,
1183
+ borderRadius: I.tooltipBorderRadius,
1184
+ color: I.tooltipColor,
1142
1185
  padding: "8px 12px",
1143
1186
  border: "1px solid #e5e7eb"
1144
1187
  };
@@ -1152,38 +1195,38 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1152
1195
  t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
1153
1196
  ] });
1154
1197
  }, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
1155
- kt,
1198
+ $t,
1156
1199
  {
1157
- content: /* @__PURE__ */ o.jsx(Ln, { tooltipKey: e })
1200
+ content: /* @__PURE__ */ o.jsx(zn, { tooltipKey: e })
1158
1201
  }
1159
1202
  ), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
1160
- Tt,
1203
+ At,
1161
1204
  {
1162
1205
  dataKey: e,
1163
1206
  hide: t,
1164
1207
  tick: {
1165
- fill: B.labelColor,
1166
- fontSize: B.fontSize
1208
+ fill: I.labelColor,
1209
+ fontSize: I.fontSize
1167
1210
  }
1168
1211
  }
1169
1212
  ), je = () => /* @__PURE__ */ o.jsx(
1170
1213
  qt,
1171
1214
  {
1172
1215
  tick: {
1173
- fill: B.labelColor,
1174
- fontSize: B.fontSize
1216
+ fill: I.labelColor,
1217
+ fontSize: I.fontSize
1175
1218
  }
1176
1219
  }
1177
- ), Bn = (e) => {
1220
+ ), Gn = (e) => {
1178
1221
  const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1179
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs($t, { data: t, children: [
1222
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ot, { data: t, children: [
1180
1223
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1181
1224
  /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1182
1225
  /* @__PURE__ */ o.jsx(je, {}),
1183
1226
  /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1184
1227
  /* @__PURE__ */ o.jsx(se, {}),
1185
1228
  s.map((i, l) => /* @__PURE__ */ o.jsx(
1186
- At,
1229
+ Rt,
1187
1230
  {
1188
1231
  type: "monotone",
1189
1232
  dataKey: i,
@@ -1193,16 +1236,16 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1193
1236
  i
1194
1237
  ))
1195
1238
  ] }) });
1196
- }, In = (e) => {
1239
+ }, Un = (e) => {
1197
1240
  const { data: t, yKeys: a, xKey: s, tooltipKey: c } = e;
1198
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ot, { data: t, children: [
1241
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
1199
1242
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1200
1243
  /* @__PURE__ */ o.jsx(be, { hide: !0, dataKey: s }),
1201
1244
  /* @__PURE__ */ o.jsx(je, {}),
1202
1245
  /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1203
1246
  /* @__PURE__ */ o.jsx(se, { withPadding: !0 }),
1204
1247
  a.map((i, l) => /* @__PURE__ */ o.jsx(
1205
- Rt,
1248
+ Lt,
1206
1249
  {
1207
1250
  dataKey: i,
1208
1251
  fill: M[l % M.length]
@@ -1210,16 +1253,16 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1210
1253
  i
1211
1254
  ))
1212
1255
  ] }) });
1213
- }, Kn = (e) => {
1256
+ }, Jn = (e) => {
1214
1257
  const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1215
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
1258
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(It, { data: t, children: [
1216
1259
  /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1217
1260
  /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1218
1261
  /* @__PURE__ */ o.jsx(je, {}),
1219
1262
  /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1220
1263
  /* @__PURE__ */ o.jsx(se, {}),
1221
1264
  s.map((i, l) => /* @__PURE__ */ o.jsx(
1222
- Lt,
1265
+ Bt,
1223
1266
  {
1224
1267
  type: "monotone",
1225
1268
  dataKey: i,
@@ -1230,7 +1273,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1230
1273
  i
1231
1274
  ))
1232
1275
  ] }) });
1233
- }, Mn = (e) => {
1276
+ }, Vn = (e) => {
1234
1277
  const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
1235
1278
  cx: l,
1236
1279
  cy: n,
@@ -1239,25 +1282,25 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1239
1282
  outerRadius: u,
1240
1283
  value: f
1241
1284
  }) => {
1242
- const _ = Math.PI / 180, h = 25 + r + (u - r), b = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1285
+ const _ = Math.PI / 180, h = 25 + r + (u - r), p = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1243
1286
  return /* @__PURE__ */ o.jsx(
1244
1287
  "text",
1245
1288
  {
1246
- x: b,
1289
+ x: p,
1247
1290
  y: m,
1248
- fill: B.labelColor,
1249
- color: B.labelColor,
1291
+ fill: I.labelColor,
1292
+ color: I.labelColor,
1250
1293
  textAnchor: "middle",
1251
1294
  dominantBaseline: "central",
1252
1295
  children: f
1253
1296
  }
1254
1297
  );
1255
1298
  };
1256
- return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Bt, { children: [
1299
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Kt, { children: [
1257
1300
  /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1258
1301
  /* @__PURE__ */ o.jsx(se, {}),
1259
1302
  /* @__PURE__ */ o.jsx(
1260
- It,
1303
+ Mt,
1261
1304
  {
1262
1305
  data: t,
1263
1306
  dataKey: s[0],
@@ -1265,7 +1308,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1265
1308
  label: i,
1266
1309
  outerRadius: 120,
1267
1310
  children: t.map((l, n) => /* @__PURE__ */ o.jsx(
1268
- Kt,
1311
+ zt,
1269
1312
  {
1270
1313
  fill: M[n % M.length]
1271
1314
  },
@@ -1274,11 +1317,11 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1274
1317
  }
1275
1318
  )
1276
1319
  ] }) });
1277
- }, zn = {
1278
- area: Bn,
1279
- bar: In,
1280
- line: Kn,
1281
- pie: Mn
1320
+ }, Hn = {
1321
+ area: Gn,
1322
+ bar: Un,
1323
+ line: Jn,
1324
+ pie: Vn
1282
1325
  }, M = [
1283
1326
  "var(--color-primitive-palette-1-50)",
1284
1327
  "var(--color-primitive-palette-2-50)",
@@ -1297,46 +1340,46 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1297
1340
  "var(--color-primitive-palette-15-50)",
1298
1341
  "var(--color-primitive-palette-16-50)",
1299
1342
  "var(--color-primitive-palette-17-50)"
1300
- ], B = {
1343
+ ], I = {
1301
1344
  fontFamily: "Roboto, sans-serif",
1302
1345
  fontSize: 12,
1303
1346
  labelColor: "var(--color-neutral-90)",
1304
1347
  tooltipBg: "#fff",
1305
1348
  tooltipColor: "#000",
1306
1349
  tooltipBorderRadius: "4px"
1307
- }, Gn = (e) => {
1308
- const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = zn[l.type];
1350
+ }, Xn = (e) => {
1351
+ const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = Hn[l.type];
1309
1352
  if (!n)
1310
1353
  return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
1311
- const { fetchDataSource: d } = K(), [r, u] = $(!1), [f, _] = $([]), h = async () => {
1312
- var m, x;
1354
+ const { fetchDataSource: d } = K(), [r, u] = A(!1), [f, _] = A([]), h = async () => {
1355
+ var m, y;
1313
1356
  try {
1314
1357
  u(!0);
1315
- const { jsonPathData: y, mapperData: g } = i, p = pe(
1358
+ const { jsonPathData: x, mapperData: g } = i, b = pe(
1316
1359
  i,
1317
1360
  1
1318
- ), N = await d(
1319
- p,
1361
+ ), C = await d(
1362
+ b,
1320
1363
  a,
1321
1364
  !1
1322
- ), j = y ? (m = Ue(N == null ? void 0 : N.data, y, g)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1365
+ ), j = x ? (m = Je(C == null ? void 0 : C.data, x, g)) == null ? void 0 : m.items : (y = C == null ? void 0 : C.data) == null ? void 0 : y.data;
1323
1366
  _(j), u(!1);
1324
- } catch (y) {
1325
- alert(JSON.stringify(y)), u(!1);
1367
+ } catch (x) {
1368
+ alert(JSON.stringify(x)), u(!1);
1326
1369
  }
1327
1370
  };
1328
1371
  z(() => {
1329
1372
  i ? h() : _(l.data);
1330
1373
  }, []);
1331
- const b = {
1374
+ const p = {
1332
1375
  ...l,
1333
1376
  data: f
1334
1377
  };
1335
- return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(b) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1336
- }, Un = "_header_g1eri_1", Jn = "_header_content_g1eri_5", Oe = {
1337
- header: Un,
1338
- header_content: Jn
1339
- }, Vn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), Hn = (e) => {
1378
+ return r ? /* @__PURE__ */ o.jsx(Me, { height: 400 }) : f.length > 0 ? n(p) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1379
+ }, Wn = "_header_g1eri_1", Qn = "_header_content_g1eri_5", Re = {
1380
+ header: Wn,
1381
+ header_content: Qn
1382
+ }, Yn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Re.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Re.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(S, { children: t }, a)) }) }), Zn = (e) => {
1340
1383
  const {
1341
1384
  userFlow: t,
1342
1385
  pageId: a,
@@ -1349,29 +1392,29 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1349
1392
  component: r,
1350
1393
  hash: u,
1351
1394
  ...f
1352
- } = e, { getNextUI: _ } = K(), { disabled: h } = I(
1395
+ } = e, { getNextUI: _ } = K(), { disabled: h } = B(
1353
1396
  t,
1354
1397
  d
1355
- ), b = c && f ? (() => {
1356
- const { href: y, target: g, download: p, ...N } = f;
1357
- return N;
1398
+ ), p = c && f ? (() => {
1399
+ const { href: x, target: g, download: b, ...C } = f;
1400
+ return C;
1358
1401
  })() : f, m = R(async () => {
1359
- var y;
1402
+ var x;
1360
1403
  if (c)
1361
1404
  try {
1362
1405
  const g = {
1363
- ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1406
+ ...(x = v.getState()[t]) == null ? void 0 : x.entries,
1364
1407
  [s]: { status: 200 }
1365
1408
  };
1366
1409
  switch (O(t, g), c) {
1367
1410
  case "GO_TO_NEXT_UI": {
1368
- const p = await _(
1411
+ const b = await _(
1369
1412
  t,
1370
1413
  a,
1371
1414
  g,
1372
1415
  s
1373
1416
  );
1374
- p != null && p.data && A(t, p == null ? void 0 : p.data);
1417
+ b != null && b.data && q(t, b == null ? void 0 : b.data);
1375
1418
  break;
1376
1419
  }
1377
1420
  case "REDIRECT":
@@ -1388,19 +1431,19 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1388
1431
  } catch (g) {
1389
1432
  alert(JSON.stringify(g));
1390
1433
  }
1391
- }, [c, _, a, l, s, n, t]), x = b.disabled ?? h;
1434
+ }, [c, _, a, l, s, n, t]), y = p.disabled ?? h;
1392
1435
  return /* @__PURE__ */ o.jsx(
1393
- ot,
1436
+ it,
1394
1437
  {
1395
- ...b,
1396
- disabled: x,
1438
+ ...p,
1439
+ disabled: y,
1397
1440
  onClick: c ? m : void 0,
1398
1441
  children: i
1399
1442
  }
1400
1443
  );
1401
- }, Xn = "_modalContent_p06ci_1", Wn = {
1402
- modalContent: Xn
1403
- }, Qn = ({
1444
+ }, Fn = "_modalContent_p06ci_1", Pn = {
1445
+ modalContent: Fn
1446
+ }, es = ({
1404
1447
  userFlow: e,
1405
1448
  pageId: t,
1406
1449
  responseKey: a,
@@ -1410,32 +1453,32 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1410
1453
  headerStatusColor: l,
1411
1454
  ...n
1412
1455
  }) => {
1413
- const d = v((y) => {
1456
+ const d = v((x) => {
1414
1457
  var g;
1415
- return (g = y[e]) == null ? void 0 : g.isModalOpen;
1416
- }), r = v((y) => {
1458
+ return (g = x[e]) == null ? void 0 : g.isModalOpen;
1459
+ }), r = v((x) => {
1417
1460
  var g;
1418
- return (g = y[e]) == null ? void 0 : g.isLoading;
1461
+ return (g = x[e]) == null ? void 0 : g.isLoading;
1419
1462
  }), u = d && !r, f = {
1420
1463
  ...n
1421
1464
  }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
1422
1465
  xe(e), ge(e, !1);
1423
- }, [e, a]), b = Array.isArray(s) ? E(e, t, s) : s, m = E(e, t, c), x = E(e, t, i);
1466
+ }, [e, a]), p = Array.isArray(s) ? E(e, t, s) : s, m = E(e, t, c), y = E(e, t, i);
1424
1467
  return /* @__PURE__ */ o.jsx(
1425
- ct,
1468
+ lt,
1426
1469
  {
1427
1470
  ...f,
1428
1471
  headerStatusColor: _,
1429
- header: typeof b == "string" ? b : /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${g}`)) }),
1430
- children: /* @__PURE__ */ o.jsx("section", { className: Wn.modalContent, children: m.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${g}`)) }),
1431
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${g}`)) }),
1472
+ header: typeof p == "string" ? p : /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((x, g) => /* @__PURE__ */ o.jsx(S, { children: x }, `modal-header-${g}`)) }),
1473
+ children: /* @__PURE__ */ o.jsx("section", { className: Pn.modalContent, children: m.map((x, g) => /* @__PURE__ */ o.jsx(S, { children: x }, `modal-body-${g}`)) }),
1474
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((x, g) => /* @__PURE__ */ o.jsx(S, { children: x }, `modal-footer-${g}`)) }),
1432
1475
  open: u,
1433
1476
  onClose: h
1434
1477
  }
1435
1478
  );
1436
- }, Yn = ({ userFlow: e, pageId: t }) => {
1479
+ }, ts = ({ userFlow: e, pageId: t }) => {
1437
1480
  var i, l;
1438
- const a = Jt(e);
1481
+ const a = Ht(e);
1439
1482
  if (!a)
1440
1483
  return null;
1441
1484
  const s = [
@@ -1449,9 +1492,9 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1449
1492
  );
1450
1493
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
1451
1494
  const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
1452
- return /* @__PURE__ */ o.jsx(k, { children: n }, r);
1495
+ return /* @__PURE__ */ o.jsx(S, { children: n }, r);
1453
1496
  }) });
1454
- }, Zn = {
1497
+ }, ns = {
1455
1498
  success: {
1456
1499
  color: "success-opacity",
1457
1500
  textColor: "success-60",
@@ -1477,8 +1520,8 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1477
1520
  textColor: "neutral-70",
1478
1521
  iconColor: "neutral-70"
1479
1522
  }
1480
- }, Fn = (e) => {
1481
- const { content: t, variant: a = "neutral", ...s } = e, c = Zn[a], i = {
1523
+ }, ss = (e) => {
1524
+ const { content: t, variant: a = "neutral", ...s } = e, c = ns[a], i = {
1482
1525
  ...s,
1483
1526
  children: t,
1484
1527
  color: (s == null ? void 0 : s.color) ?? c.color,
@@ -1486,10 +1529,10 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1486
1529
  iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
1487
1530
  };
1488
1531
  return /* @__PURE__ */ o.jsx(he, { ...i });
1489
- }, Pn = (e) => {
1532
+ }, as = (e) => {
1490
1533
  const { content: t } = e;
1491
- return /* @__PURE__ */ o.jsx(Ie, { children: t });
1492
- }, es = (e) => {
1534
+ return /* @__PURE__ */ o.jsx(Ke, { children: t });
1535
+ }, rs = (e) => {
1493
1536
  const {
1494
1537
  userFlow: t,
1495
1538
  pageId: a,
@@ -1499,38 +1542,38 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1499
1542
  dependencies: l,
1500
1543
  onClick: n,
1501
1544
  ...d
1502
- } = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } = I(
1545
+ } = e, { getNextUI: r, fetchAndGetNextUI: u } = K(), { disabled: f } = B(
1503
1546
  t,
1504
1547
  l
1505
1548
  ), _ = {
1506
1549
  ...d
1507
- }, h = (_ == null ? void 0 : _.disabled) ?? f, b = R(async () => {
1550
+ }, h = (_ == null ? void 0 : _.disabled) ?? f, p = R(async () => {
1508
1551
  var m;
1509
1552
  try {
1510
- const x = {
1553
+ const y = {
1511
1554
  ...(m = v.getState()[t]) == null ? void 0 : m.entries,
1512
1555
  [s]: { status: 200 }
1513
1556
  };
1514
- switch (O(t, x), c) {
1557
+ switch (O(t, y), c) {
1515
1558
  case "GO_TO_NEXT_UI": {
1516
- const y = await r(
1559
+ const x = await r(
1517
1560
  t,
1518
1561
  a,
1519
- x,
1562
+ y,
1520
1563
  s
1521
1564
  );
1522
- y != null && y.data && A(t, y == null ? void 0 : y.data);
1565
+ x != null && x.data && q(t, x == null ? void 0 : x.data);
1523
1566
  break;
1524
1567
  }
1525
1568
  case "FETCH_AND_GO_TO_NEXT_UI": {
1526
- const y = await u(
1569
+ const x = await u(
1527
1570
  t,
1528
1571
  a,
1529
- x,
1572
+ y,
1530
1573
  s,
1531
1574
  i
1532
1575
  );
1533
- y != null && y.data && A(t, y == null ? void 0 : y.data);
1576
+ x != null && x.data && q(t, x == null ? void 0 : x.data);
1534
1577
  break;
1535
1578
  }
1536
1579
  case "CLOSE_MODAL":
@@ -1546,20 +1589,20 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1546
1589
  console.warn(`Unhandled actionType: ${c}`);
1547
1590
  break;
1548
1591
  }
1549
- } catch (x) {
1550
- alert(JSON.stringify(x));
1592
+ } catch (y) {
1593
+ alert(JSON.stringify(y));
1551
1594
  }
1552
1595
  }, [c, i, a, s, t]);
1553
1596
  return /* @__PURE__ */ o.jsx(
1554
- it,
1597
+ dt,
1555
1598
  {
1556
1599
  ..._,
1557
1600
  disabled: h,
1558
- onClick: () => !h && (n ?? b)()
1601
+ onClick: () => !h && (n ?? p)()
1559
1602
  }
1560
1603
  );
1561
- }, ts = "_row_1bqj4_1", ns = "_row_column_1bqj4_65", J = {
1562
- row: ts,
1604
+ }, os = "_row_1bqj4_1", cs = "_row_column_1bqj4_65", J = {
1605
+ row: os,
1563
1606
  "row__gap-none": "_row__gap-none_1bqj4_5",
1564
1607
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
1565
1608
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -1580,7 +1623,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1580
1623
  "row__align-center": "_row__align-center_1bqj4_56",
1581
1624
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
1582
1625
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
1583
- row_column: ns,
1626
+ row_column: cs,
1584
1627
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
1585
1628
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
1586
1629
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -1601,7 +1644,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1601
1644
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
1602
1645
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
1603
1646
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
1604
- }, ss = (e) => {
1647
+ }, is = (e) => {
1605
1648
  const {
1606
1649
  userFlow: t,
1607
1650
  pageId: a,
@@ -1660,7 +1703,7 @@ const ee = /* @__PURE__ */ Wt(Tn), qn = "_slotStack_6n2wy_5", Ae = {
1660
1703
  }
1661
1704
  );
1662
1705
  };
1663
- function Je({
1706
+ function Ve({
1664
1707
  userFlow: e,
1665
1708
  pageId: t,
1666
1709
  responseKey: a,
@@ -1669,7 +1712,7 @@ function Je({
1669
1712
  isMulti: i = !1,
1670
1713
  debounceMs: l
1671
1714
  }) {
1672
- const n = Ze(null);
1715
+ const n = Fe(null);
1673
1716
  z(() => () => {
1674
1717
  n.current !== null && (clearTimeout(n.current), n.current = null);
1675
1718
  }, []);
@@ -1677,10 +1720,9 @@ function Je({
1677
1720
  async (u) => {
1678
1721
  var h;
1679
1722
  const f = {
1680
- ...(h = v.getState()[e]) == null ? void 0 : h.entries,
1681
- [a]: u
1723
+ ...(h = v.getState()[e]) == null ? void 0 : h.entries
1682
1724
  };
1683
- if (O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1725
+ if (u ? (f[a] = u, O(e, f)) : (delete f[a], Xt(e, a)), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1684
1726
  try {
1685
1727
  const m = await c(
1686
1728
  e,
@@ -1689,9 +1731,9 @@ function Je({
1689
1731
  a,
1690
1732
  s === "GO_TO_NEXT_UI"
1691
1733
  );
1692
- m != null && m.data && A(e, m.data);
1693
- } catch (b) {
1694
- console.error("[useSelectChange] Failed to fetch next UI", b);
1734
+ m != null && m.data && q(e, m.data);
1735
+ } catch (p) {
1736
+ console.error("[useSelectChange] Failed to fetch next UI", p);
1695
1737
  }
1696
1738
  },
1697
1739
  [e, t, a, s, c]
@@ -1713,21 +1755,21 @@ function Je({
1713
1755
  [i, l, d]
1714
1756
  );
1715
1757
  }
1716
- const as = /\{([^}]+)\}/g, rs = (e, t) => {
1758
+ const ls = /\{([^}]+)\}/g, ds = (e, t) => {
1717
1759
  var a;
1718
- return t.includes("{") ? t.replace(as, (s, c) => {
1760
+ return t.includes("{") ? t.replace(ls, (s, c) => {
1719
1761
  var l;
1720
1762
  const i = (l = L.query(e, c.trim())) == null ? void 0 : l[0];
1721
1763
  return i != null ? String(i) : "";
1722
1764
  }) : (a = L.query(e, t)) == null ? void 0 : a[0];
1723
- }, os = (e, t, a, s) => {
1765
+ }, _s = (e, t, a, s) => {
1724
1766
  const c = L.query(e, t);
1725
1767
  return (c == null ? void 0 : c.map((i) => {
1726
1768
  var d;
1727
- const l = rs(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
1769
+ const l = ds(i, a), n = s ? (d = L.query(i, s)) == null ? void 0 : d[0] : i;
1728
1770
  return { label: l, value: n };
1729
1771
  })) ?? [];
1730
- }, cs = (e, t, a, s = 10) => {
1772
+ }, us = (e, t, a, s = 10) => {
1731
1773
  var n, d;
1732
1774
  let c, i;
1733
1775
  if (a) {
@@ -1743,9 +1785,9 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1743
1785
  total: i,
1744
1786
  hasMore: l
1745
1787
  };
1746
- }, is = "_selectNotFront_1yw9q_1", Ve = {
1747
- selectNotFront: is
1748
- }, ls = ({
1788
+ }, hs = "_selectNotFront_ch3v5_1", He = {
1789
+ selectNotFront: hs
1790
+ }, fs = ({
1749
1791
  userFlow: e,
1750
1792
  pageId: t,
1751
1793
  responseKey: a,
@@ -1758,16 +1800,17 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1758
1800
  }) => {
1759
1801
  const r = {
1760
1802
  ...d
1761
- }, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = $((r == null ? void 0 : r.value) ?? ""), { disabled: b } = I(
1803
+ }, { getNextUI: u, fetchDataSource: f } = K(), [_, h] = A((r == null ? void 0 : r.value) ?? ""), { disabled: p } = B(
1762
1804
  e,
1763
1805
  l
1764
- ), m = (r == null ? void 0 : r.disabled) ?? b, x = T(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), y = T(() => {
1765
- const j = r != null && r.isMulti ? _ : [_], C = {};
1766
- return typeof j == "object" && "length" in j && (j == null || j.forEach((w) => {
1767
- const S = JSON.stringify(w.value), D = JSON.stringify(w.label);
1768
- C[S] = w, D in C || (C[D] = w);
1769
- })), C;
1770
- }, [_]), g = Je({
1806
+ ), m = (r == null ? void 0 : r.disabled) ?? p, y = T(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), x = T(() => {
1807
+ const j = r != null && r.isMulti ? _ : [_], N = {};
1808
+ return Array.isArray(j) && j.forEach((w) => {
1809
+ if (!w) return;
1810
+ const k = JSON.stringify(w.value), D = JSON.stringify(w.label);
1811
+ N[k] = w, D in N || (N[D] = w);
1812
+ }), N;
1813
+ }, [_]), g = Ve({
1771
1814
  userFlow: e,
1772
1815
  pageId: t,
1773
1816
  responseKey: a,
@@ -1775,13 +1818,13 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1775
1818
  getNextUI: u,
1776
1819
  isMulti: r == null ? void 0 : r.isMulti,
1777
1820
  debounceMs: n
1778
- }), p = (j) => {
1821
+ }), b = (j) => {
1779
1822
  h(j), g(j);
1780
- }, N = async (j, C, { page: w }) => {
1823
+ }, C = async (j, N, { page: w }) => {
1781
1824
  const {
1782
- jsonPathLabel: S,
1825
+ jsonPathLabel: k,
1783
1826
  jsonPathOptions: D,
1784
- jsonPathValue: q,
1827
+ jsonPathValue: $,
1785
1828
  jsonPathPagination: G
1786
1829
  } = c, U = pe(
1787
1830
  c,
@@ -1791,44 +1834,44 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1791
1834
  U,
1792
1835
  e,
1793
1836
  !1
1794
- ), oe = re == null ? void 0 : re.data, Xe = oe ? os(
1837
+ ), oe = re == null ? void 0 : re.data, We = oe ? _s(
1795
1838
  oe,
1796
1839
  D,
1797
- S,
1798
- q
1799
- ) : [], { hasMore: We } = cs(
1840
+ k,
1841
+ $
1842
+ ) : [], { hasMore: Qe } = us(
1800
1843
  oe,
1801
1844
  w,
1802
1845
  G
1803
1846
  );
1804
1847
  return {
1805
- options: Xe,
1806
- hasMore: We,
1848
+ options: We,
1849
+ hasMore: Qe,
1807
1850
  additional: {
1808
1851
  page: j ? 1 : w + 1
1809
1852
  }
1810
1853
  };
1811
1854
  };
1812
1855
  return /* @__PURE__ */ o.jsx(
1813
- lt,
1856
+ _t,
1814
1857
  {
1815
1858
  ...r,
1816
- className: Ve.selectNotFront,
1817
- label: x,
1859
+ className: He.selectNotFront,
1860
+ label: y,
1818
1861
  value: _,
1819
1862
  disabled: m,
1820
1863
  noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
1821
- onChange: (j) => !m && p(j),
1822
- loadOptions: N,
1864
+ onChange: (j) => !m && b(j),
1865
+ loadOptions: C,
1823
1866
  additional: { page: 1 },
1824
1867
  isOptionDisabled: (j) => {
1825
- const C = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
1826
- return !!(y != null && y[C]) || !!(y != null && y[w]);
1868
+ const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
1869
+ return !!(x != null && x[N]) || !!(x != null && x[w]);
1827
1870
  },
1828
1871
  debounceTimeout: 350
1829
1872
  }
1830
1873
  );
1831
- }, ds = ({
1874
+ }, ms = ({
1832
1875
  userFlow: e,
1833
1876
  pageId: t,
1834
1877
  responseKey: a,
@@ -1841,10 +1884,10 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1841
1884
  }) => {
1842
1885
  const r = {
1843
1886
  ...d
1844
- }, { getNextUI: u } = K(), [f, _] = $(r.value || ""), { disabled: h } = I(
1887
+ }, { getNextUI: u } = K(), [f, _] = A(r.value || ""), { disabled: h } = B(
1845
1888
  e,
1846
1889
  l
1847
- ), b = (r == null ? void 0 : r.disabled) ?? h, m = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), x = Je({
1890
+ ), p = (r == null ? void 0 : r.disabled) ?? h, m = T(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), y = Ve({
1848
1891
  userFlow: e,
1849
1892
  pageId: t,
1850
1893
  responseKey: a,
@@ -1852,37 +1895,37 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1852
1895
  getNextUI: u,
1853
1896
  isMulti: r == null ? void 0 : r.isMulti,
1854
1897
  debounceMs: n
1855
- }), y = (g) => {
1856
- _(g), x(g);
1898
+ }), x = (g) => {
1899
+ _(g), y(g);
1857
1900
  };
1858
1901
  return /* @__PURE__ */ o.jsx(
1859
- dt,
1902
+ ut,
1860
1903
  {
1861
1904
  ...r,
1862
- className: Ve.selectNotFront,
1905
+ className: He.selectNotFront,
1863
1906
  label: m,
1864
1907
  value: f,
1865
- disabled: b,
1866
- onChange: (g) => !b && y(g)
1908
+ disabled: p,
1909
+ onChange: (g) => !p && x(g)
1867
1910
  }
1868
1911
  );
1869
- }, _s = (e) => {
1912
+ }, ys = (e) => {
1870
1913
  const { dataSource: t } = e;
1871
- return t ? /* @__PURE__ */ o.jsx(ls, { ...e }) : /* @__PURE__ */ o.jsx(ds, { ...e });
1872
- }, us = "_spacing_19hqa_1", hs = "_spacing__xxs_19hqa_1", fs = "_spacing__xs_19hqa_4", ms = "_spacing__sm_19hqa_7", ys = "_spacing__md_19hqa_10", xs = "_spacing__lg_19hqa_13", gs = "_spacing__xl_19hqa_16", ps = "_spacing__xxl_19hqa_19", bs = "_spacing__xxxl_19hqa_22", Re = {
1873
- spacing: us,
1874
- spacing__xxs: hs,
1875
- spacing__xs: fs,
1876
- spacing__sm: ms,
1877
- spacing__md: ys,
1878
- spacing__lg: xs,
1879
- spacing__xl: gs,
1880
- spacing__xxl: ps,
1881
- spacing__xxxl: bs
1882
- }, js = (e) => {
1883
- const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
1914
+ return t ? /* @__PURE__ */ o.jsx(fs, { ...e }) : /* @__PURE__ */ o.jsx(ms, { ...e });
1915
+ }, xs = "_spacing_19hqa_1", gs = "_spacing__xxs_19hqa_1", ps = "_spacing__xs_19hqa_4", bs = "_spacing__sm_19hqa_7", js = "_spacing__md_19hqa_10", ws = "_spacing__lg_19hqa_13", Cs = "_spacing__xl_19hqa_16", Ns = "_spacing__xxl_19hqa_19", vs = "_spacing__xxxl_19hqa_22", De = {
1916
+ spacing: xs,
1917
+ spacing__xxs: gs,
1918
+ spacing__xs: ps,
1919
+ spacing__sm: bs,
1920
+ spacing__md: js,
1921
+ spacing__lg: ws,
1922
+ spacing__xl: Cs,
1923
+ spacing__xxl: Ns,
1924
+ spacing__xxxl: vs
1925
+ }, Es = (e) => {
1926
+ const { size: t } = e, a = ee(De.spacing, De[`spacing__${t}`]);
1884
1927
  return /* @__PURE__ */ o.jsx("div", { className: a });
1885
- }, ws = (e) => {
1928
+ }, Ss = (e) => {
1886
1929
  const {
1887
1930
  userFlow: t,
1888
1931
  pageId: a,
@@ -1895,59 +1938,59 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1895
1938
  ...r
1896
1939
  } = e, u = {
1897
1940
  ...r
1898
- }, { getNextUI: f } = K(), [_, h] = $(l || !1), { disabled: b } = I(
1941
+ }, { getNextUI: f } = K(), [_, h] = A(l || !1), { disabled: p } = B(
1899
1942
  t,
1900
1943
  d
1901
- ), m = (u == null ? void 0 : u.disabled) ?? b, x = T(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
1944
+ ), m = (u == null ? void 0 : u.disabled) ?? p, y = T(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
1902
1945
  var g;
1903
1946
  try {
1904
- const p = !_;
1905
- h(p);
1906
- const N = {
1947
+ const b = !_;
1948
+ h(b);
1949
+ const C = {
1907
1950
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
1908
- [s]: p
1951
+ [s]: b
1909
1952
  };
1910
- switch (O(t, N), c) {
1953
+ switch (O(t, C), c) {
1911
1954
  case "GO_TO_NEXT_UI":
1912
1955
  const j = await f(
1913
1956
  t,
1914
1957
  a,
1915
- N,
1958
+ C,
1916
1959
  s
1917
1960
  );
1918
- j != null && j.data && A(t, j == null ? void 0 : j.data);
1961
+ j != null && j.data && q(t, j == null ? void 0 : j.data);
1919
1962
  break;
1920
1963
  default:
1921
1964
  console.warn(`Unhandled actionType: ${c}`);
1922
1965
  break;
1923
1966
  }
1924
- } catch (p) {
1925
- console.error("Error in switch action:", p), alert(JSON.stringify(p));
1967
+ } catch (b) {
1968
+ console.error("Error in switch action:", b), alert(JSON.stringify(b));
1926
1969
  }
1927
1970
  }, [t, a, s, c, _]);
1928
1971
  return /* @__PURE__ */ o.jsx(
1929
- _t,
1972
+ ht,
1930
1973
  {
1931
1974
  ...u,
1932
- label: x,
1975
+ label: y,
1933
1976
  checked: _,
1934
1977
  disabled: m,
1935
- onChange: () => !m && y()
1978
+ onChange: () => !m && x()
1936
1979
  }
1937
1980
  );
1938
- }, Cs = "_tableSkeleton_3nr9n_1", Ns = "_tableArrayPills_3nr9n_7", He = {
1939
- tableSkeleton: Cs,
1940
- tableArrayPills: Ns
1941
- }, vs = ({ values: e }) => {
1981
+ }, ks = "_tableSkeleton_3nr9n_1", Ts = "_tableArrayPills_3nr9n_7", Xe = {
1982
+ tableSkeleton: ks,
1983
+ tableArrayPills: Ts
1984
+ }, $s = ({ values: e }) => {
1942
1985
  const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
1943
- return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
1986
+ return /* @__PURE__ */ o.jsxs("div", { className: Xe.tableArrayPills, children: [
1944
1987
  a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
1945
1988
  s > 0 && /* @__PURE__ */ o.jsxs(he, { outlined: !0, children: [
1946
1989
  "+",
1947
1990
  s
1948
1991
  ] })
1949
1992
  ] });
1950
- }, Es = ({
1993
+ }, As = ({
1951
1994
  userFlow: e,
1952
1995
  pageId: t,
1953
1996
  tableResponseKey: a,
@@ -1963,85 +2006,85 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
1963
2006
  responseKey: f,
1964
2007
  dataSource: _
1965
2008
  } = r.props, h = R(async () => {
1966
- var b, m, x;
2009
+ var p, m, y;
1967
2010
  try {
1968
- const y = {
1969
- ...(b = v.getState()[e]) == null ? void 0 : b.entries,
2011
+ const x = {
2012
+ ...(p = v.getState()[e]) == null ? void 0 : p.entries,
1970
2013
  [f]: { status: 200 },
1971
2014
  [a]: [{ ...c }]
1972
2015
  };
1973
- switch (O(e, y), u) {
2016
+ switch (O(e, x), u) {
1974
2017
  case "GO_TO_NEXT_UI": {
1975
2018
  const g = await i(
1976
2019
  e,
1977
2020
  t,
1978
- y,
2021
+ x,
1979
2022
  f
1980
2023
  );
1981
- g != null && g.data && A(e, g == null ? void 0 : g.data);
2024
+ g != null && g.data && q(e, g == null ? void 0 : g.data);
1982
2025
  break;
1983
2026
  }
1984
2027
  case "FETCH_AND_GO_TO_NEXT_UI": {
1985
2028
  const g = await l(
1986
2029
  e,
1987
2030
  t,
1988
- y,
2031
+ x,
1989
2032
  f,
1990
2033
  _
1991
2034
  );
1992
- g != null && g.data && A(e, g == null ? void 0 : g.data);
2035
+ g != null && g.data && q(e, g == null ? void 0 : g.data);
1993
2036
  break;
1994
2037
  }
1995
2038
  case "GET_DATA_SOURCE": {
1996
2039
  const g = await i(
1997
2040
  e,
1998
2041
  t,
1999
- y,
2042
+ x,
2000
2043
  f
2001
- ), p = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
2002
- if ((p == null ? void 0 : p.type) !== "fetch") break;
2003
- const N = p == null ? void 0 : p.dataSource, j = await n(
2004
- N,
2044
+ ), b = (m = g == null ? void 0 : g.data) == null ? void 0 : m.content;
2045
+ if ((b == null ? void 0 : b.type) !== "fetch") break;
2046
+ const C = b == null ? void 0 : b.dataSource, j = await n(
2047
+ C,
2005
2048
  e,
2006
2049
  // Avoid to handle loading state until all the requests are done
2007
2050
  !1
2008
- ), C = {
2009
- ...(x = v.getState()[e]) == null ? void 0 : x.entries,
2051
+ ), N = {
2052
+ ...(y = v.getState()[e]) == null ? void 0 : y.entries,
2010
2053
  [f]: {
2011
2054
  status: j == null ? void 0 : j.status,
2012
2055
  content: j == null ? void 0 : j.data
2013
2056
  }
2014
2057
  };
2015
- O(e, C);
2058
+ O(e, N);
2016
2059
  const w = await i(
2017
2060
  e,
2018
2061
  t,
2019
- C,
2062
+ N,
2020
2063
  f
2021
2064
  );
2022
- w != null && w.data && A(e, w == null ? void 0 : w.data);
2065
+ w != null && w.data && q(e, w == null ? void 0 : w.data);
2023
2066
  break;
2024
2067
  }
2025
2068
  default:
2026
2069
  console.warn(`Unhandled actionType: ${u}`);
2027
2070
  break;
2028
2071
  }
2029
- } catch (y) {
2030
- alert(JSON.stringify(y));
2072
+ } catch (x) {
2073
+ alert(JSON.stringify(x));
2031
2074
  }
2032
2075
  }, [u, _, t, f, e]);
2033
- return Fe(r, {
2076
+ return Pe(r, {
2034
2077
  onClick: h
2035
2078
  });
2036
- }, Ss = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2037
- Ke,
2079
+ }, qs = () => /* @__PURE__ */ o.jsx("div", { className: Xe.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2080
+ Me,
2038
2081
  {
2039
2082
  maxWidth: "100%",
2040
2083
  height: 42,
2041
2084
  radius: 8
2042
2085
  },
2043
2086
  `tableSkeletonBase${t}`
2044
- )) }), ks = ({
2087
+ )) }), Os = ({
2045
2088
  userFlow: e,
2046
2089
  pageId: t,
2047
2090
  responseKey: a,
@@ -2050,86 +2093,86 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2050
2093
  rightActions: i,
2051
2094
  ...l
2052
2095
  }) => {
2053
- var p, N, j;
2054
- const { fetchDataSource: n } = K(), [d, r] = $(!1), [u, f] = $(1), [_, h] = $(null), b = T(() => {
2096
+ var b, C, j;
2097
+ const { fetchDataSource: n } = K(), [d, r] = A(!1), [u, f] = A(1), [_, h] = A(null), p = T(() => {
2055
2098
  if (i != null && i.length)
2056
- return i.map((C, w) => ({
2057
- renderContent: (S) => /* @__PURE__ */ o.jsx(
2058
- Es,
2099
+ return i.map((N, w) => ({
2100
+ renderContent: (k) => /* @__PURE__ */ o.jsx(
2101
+ As,
2059
2102
  {
2060
2103
  userFlow: e,
2061
2104
  pageId: t,
2062
2105
  tableResponseKey: a,
2063
- component: C,
2064
- rowData: S
2106
+ component: N,
2107
+ rowData: k
2065
2108
  },
2066
2109
  `tableRowAction${w}`
2067
2110
  )
2068
2111
  }));
2069
- }, [i, e, t]), m = async (C = 1) => {
2112
+ }, [i, e, t]), m = async (N = 1) => {
2070
2113
  try {
2071
2114
  r(!0);
2072
- const { jsonPathData: w, mapperData: S, jsonPathPagination: D } = c, q = pe(
2115
+ const { jsonPathData: w, mapperData: k, jsonPathPagination: D } = c, $ = pe(
2073
2116
  c,
2074
- C
2117
+ N
2075
2118
  ), G = await n(
2076
- q,
2119
+ $,
2077
2120
  e,
2078
2121
  !1
2079
2122
  );
2080
2123
  h(
2081
- Ue(
2124
+ Je(
2082
2125
  G == null ? void 0 : G.data,
2083
2126
  w,
2084
- S,
2127
+ k,
2085
2128
  D
2086
2129
  )
2087
2130
  ), r(!1);
2088
2131
  } catch (w) {
2089
2132
  alert(JSON.stringify(w)), r(!1);
2090
2133
  }
2091
- }, x = (C) => {
2092
- f(C), m(C);
2134
+ }, y = (N) => {
2135
+ f(N), m(N);
2093
2136
  };
2094
2137
  z(() => {
2095
2138
  m();
2096
2139
  }, []);
2097
- const y = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
2098
- var S;
2099
- return ((S = _ == null ? void 0 : _.items) == null ? void 0 : S.some(
2100
- (D) => Array.isArray(C != null && C.accessor ? D[C == null ? void 0 : C.accessor] : void 0)
2140
+ const x = T(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((N) => {
2141
+ var k;
2142
+ return ((k = _ == null ? void 0 : _.items) == null ? void 0 : k.some(
2143
+ (D) => Array.isArray(N != null && N.accessor ? D[N == null ? void 0 : N.accessor] : void 0)
2101
2144
  )) ? {
2102
- ...C,
2145
+ ...N,
2103
2146
  renderCell: (D) => {
2104
- const q = C.accessor ? D[C.accessor] : void 0;
2105
- return Array.isArray(q) ? /* @__PURE__ */ o.jsx(vs, { values: q }) : q;
2147
+ const $ = N.accessor ? D[N.accessor] : void 0;
2148
+ return Array.isArray($) ? /* @__PURE__ */ o.jsx($s, { values: $ }) : $ ?? "";
2106
2149
  }
2107
- } : C;
2150
+ } : N;
2108
2151
  }), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
2109
2152
  ...l,
2110
2153
  data: _ == null ? void 0 : _.items,
2111
- columns: y,
2112
- rightActions: b
2154
+ columns: x,
2155
+ rightActions: p
2113
2156
  };
2114
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(Ss, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2115
- /* @__PURE__ */ o.jsx(ut, { ...g }),
2116
- (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2117
- ht,
2157
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(qs, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2158
+ /* @__PURE__ */ o.jsx(ft, { ...g }),
2159
+ (_ == null ? void 0 : _.pagination) && ((C = _ == null ? void 0 : _.pagination) == null ? void 0 : C.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2160
+ mt,
2118
2161
  {
2119
2162
  classname: { global: "row__end" },
2120
2163
  page: u,
2121
2164
  size: _ == null ? void 0 : _.pagination.size,
2122
2165
  total: (j = _ == null ? void 0 : _.pagination) == null ? void 0 : j.total,
2123
- onChange: x
2166
+ onChange: y
2124
2167
  }
2125
2168
  )
2126
2169
  ] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
2127
- }, Ts = "_tabsPanel_kvslb_1", qs = {
2128
- tabsPanel: Ts
2129
- }, $s = ({ userFlow: e, pageId: t, components: a }) => {
2170
+ }, Rs = "_tabsPanel_kvslb_1", Ds = {
2171
+ tabsPanel: Rs
2172
+ }, Ls = ({ userFlow: e, pageId: t, components: a }) => {
2130
2173
  const s = E(e, t, a);
2131
- return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: qs.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
2132
- }, As = ({
2174
+ return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: Ds.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(S, { children: c }, `tabs-panel-${i}`)) }) : null;
2175
+ }, Is = ({
2133
2176
  userFlow: e,
2134
2177
  pageId: t,
2135
2178
  hash: a,
@@ -2142,7 +2185,7 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2142
2185
  label: r.label,
2143
2186
  disabled: r.disabled,
2144
2187
  children: /* @__PURE__ */ o.jsx(
2145
- $s,
2188
+ Ls,
2146
2189
  {
2147
2190
  userFlow: e,
2148
2191
  pageId: t,
@@ -2159,7 +2202,7 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2159
2202
  O(e, u);
2160
2203
  };
2161
2204
  return /* @__PURE__ */ o.jsx(
2162
- ft,
2205
+ yt,
2163
2206
  {
2164
2207
  className: i,
2165
2208
  activeIndex: c,
@@ -2167,9 +2210,9 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2167
2210
  onClick: d
2168
2211
  }
2169
2212
  );
2170
- }, Os = "_textFieldNotFront_cps4i_1", Rs = {
2171
- textFieldNotFront: Os
2172
- }, Ds = (e) => {
2213
+ }, Bs = "_textFieldNotFront_1n8fy_1", Ks = {
2214
+ textFieldNotFront: Bs
2215
+ }, Ms = (e) => {
2173
2216
  const {
2174
2217
  userFlow: t,
2175
2218
  pageId: a,
@@ -2181,33 +2224,33 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2181
2224
  ...d
2182
2225
  } = e, r = {
2183
2226
  ...d
2184
- }, [u, f] = $((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = I(
2227
+ }, [u, f] = A((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
2185
2228
  t,
2186
2229
  n
2187
- ), h = (r == null ? void 0 : r.disabled) ?? _, b = T(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (x) => {
2188
- var p;
2189
- const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2190
- f(y);
2230
+ ), h = (r == null ? void 0 : r.disabled) ?? _, p = T(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (y) => {
2231
+ var b;
2232
+ const x = (b = y == null ? void 0 : y.target) == null ? void 0 : b.value;
2233
+ f(x);
2191
2234
  const g = {
2192
- [i]: y
2235
+ [i]: x
2193
2236
  };
2194
2237
  O(t, g);
2195
2238
  };
2196
2239
  return z(() => {
2197
2240
  f((r == null ? void 0 : r.value) ?? "");
2198
2241
  }, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
2199
- mt,
2242
+ xt,
2200
2243
  {
2201
2244
  ...r,
2202
- className: Rs.textFieldNotFront,
2245
+ className: Ks.textFieldNotFront,
2203
2246
  allowClear: !1,
2204
- label: b,
2247
+ label: p,
2205
2248
  value: u,
2206
2249
  disabled: h,
2207
- onChange: (x) => !h && m(x)
2250
+ onChange: (y) => !h && m(y)
2208
2251
  }
2209
2252
  );
2210
- }, Ls = ({
2253
+ }, zs = ({
2211
2254
  userFlow: e,
2212
2255
  pageId: t,
2213
2256
  responseKey: a,
@@ -2233,20 +2276,20 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2233
2276
  }, [i, t, a, e, l]);
2234
2277
  return z(() => {
2235
2278
  ({
2236
- info: W.info,
2237
- error: W.error,
2238
- success: W.success,
2239
- warning: W.warning
2240
- }[s] || W.info)(c, {
2279
+ info: Q.info,
2280
+ error: Q.error,
2281
+ success: Q.success,
2282
+ warning: Q.warning
2283
+ }[s] || Q.info)(c, {
2241
2284
  autoClose: i ? !1 : 4e3,
2242
2285
  containerId: e,
2243
2286
  onClose: n
2244
2287
  });
2245
2288
  }, [n, e]), null;
2246
- }, Bs = "_accordion_1ri2t_1", Is = "_accordionBody_1ri2t_8", De = {
2247
- accordion: Bs,
2248
- accordionBody: Is
2249
- }, Ks = (e) => {
2289
+ }, Gs = "_accordion_1ri2t_1", Us = "_accordionBody_1ri2t_8", Le = {
2290
+ accordion: Gs,
2291
+ accordionBody: Us
2292
+ }, Js = (e) => {
2250
2293
  const {
2251
2294
  userFlow: t,
2252
2295
  pageId: a,
@@ -2256,51 +2299,51 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2256
2299
  actionContent: l,
2257
2300
  components: n,
2258
2301
  ...d
2259
- } = e, { getNextUI: r } = K(), [u, f] = $(
2302
+ } = e, { getNextUI: r } = K(), [u, f] = A(
2260
2303
  d.checkboxChecked || !1
2261
- ), { disabled: _ } = I(
2304
+ ), { disabled: _ } = B(
2262
2305
  t,
2263
2306
  c
2264
- ), h = E(t, a, n), b = l ? E(t, a, l) : void 0, m = i ? E(t, a, i) : void 0, x = R(
2265
- async (p) => {
2266
- var N;
2307
+ ), h = E(t, a, n), p = l ? E(t, a, l) : void 0, m = i ? E(t, a, i) : void 0, y = R(
2308
+ async (b) => {
2309
+ var C;
2267
2310
  try {
2268
- const j = p.target.checked;
2311
+ const j = b.target.checked;
2269
2312
  f(j);
2270
- const C = {
2271
- ...(N = v.getState()[t]) == null ? void 0 : N.entries,
2313
+ const N = {
2314
+ ...(C = v.getState()[t]) == null ? void 0 : C.entries,
2272
2315
  [s]: j
2273
2316
  };
2274
- if (O(t, C), d.actionType === "GO_TO_NEXT_UI") {
2317
+ if (O(t, N), d.actionType === "GO_TO_NEXT_UI") {
2275
2318
  const w = await r(
2276
2319
  t,
2277
2320
  a,
2278
- C,
2321
+ N,
2279
2322
  s
2280
2323
  );
2281
- w != null && w.data && A(t, w == null ? void 0 : w.data);
2324
+ w != null && w.data && q(t, w == null ? void 0 : w.data);
2282
2325
  }
2283
2326
  } catch (j) {
2284
2327
  console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
2285
2328
  }
2286
2329
  },
2287
2330
  [t, a, s, d.actionType, r]
2288
- ), y = d.disabled || _, g = {
2331
+ ), x = d.disabled || _, g = {
2289
2332
  ...d,
2290
- className: De.accordion,
2291
- disabled: y,
2333
+ className: Le.accordion,
2334
+ disabled: x,
2292
2335
  checkboxChecked: u,
2293
- onChanceCheckbox: d.hasCheckbox ? x : void 0,
2294
- actionContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-action-${N}`)) }) : void 0,
2295
- customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-custom-${N}`)) }) : void 0,
2296
- children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${N}`)) }) : void 0
2336
+ onChanceCheckbox: d.hasCheckbox ? y : void 0,
2337
+ actionContent: p ? /* @__PURE__ */ o.jsx(o.Fragment, { children: p.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-action-${C}`)) }) : void 0,
2338
+ customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-custom-${C}`)) }) : void 0,
2339
+ children: h ? /* @__PURE__ */ o.jsx("section", { className: Le.accordionBody, children: h.map((b, C) => /* @__PURE__ */ o.jsx(S, { children: b }, `accordion-child-${C}`)) }) : void 0
2297
2340
  };
2298
- return /* @__PURE__ */ o.jsx(yt, { ...g });
2299
- }, Ms = "_drawer_13pxo_1", zs = "_drawerBody_13pxo_5", Gs = "_drawerFooter_13pxo_11", ue = {
2300
- drawer: Ms,
2301
- drawerBody: zs,
2302
- drawerFooter: Gs
2303
- }, Us = ({
2341
+ return /* @__PURE__ */ o.jsx(gt, { ...g });
2342
+ }, Vs = "_drawer_13pxo_1", Hs = "_drawerBody_13pxo_5", Xs = "_drawerFooter_13pxo_11", ue = {
2343
+ drawer: Vs,
2344
+ drawerBody: Hs,
2345
+ drawerFooter: Xs
2346
+ }, Ws = ({
2304
2347
  userFlow: e,
2305
2348
  pageId: t,
2306
2349
  responseKey: a,
@@ -2310,39 +2353,39 @@ const as = /\{([^}]+)\}/g, rs = (e, t) => {
2310
2353
  ...l
2311
2354
  }) => {
2312
2355
  const n = v((m) => {
2313
- var x;
2314
- return (x = m[e]) == null ? void 0 : x.isDrawerOpen;
2356
+ var y;
2357
+ return (y = m[e]) == null ? void 0 : y.isDrawerOpen;
2315
2358
  }), d = v((m) => {
2316
- var x;
2317
- return (x = m[e]) == null ? void 0 : x.isLoading;
2359
+ var y;
2360
+ return (y = m[e]) == null ? void 0 : y.isLoading;
2318
2361
  }), r = n && !d, u = {
2319
2362
  ...l,
2320
2363
  isOpen: r,
2321
2364
  children: null
2322
2365
  }, f = R(() => {
2323
2366
  xe(e), Z(e, !1);
2324
- }, [e]), _ = Array.isArray(s) ? E(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = E(e, t, c), b = i ? E(e, t, i) : void 0;
2367
+ }, [e]), _ = Array.isArray(s) ? E(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = E(e, t, c), p = i ? E(e, t, i) : void 0;
2325
2368
  return /* @__PURE__ */ o.jsx(
2326
- xt,
2369
+ pt,
2327
2370
  {
2328
2371
  ...u,
2329
2372
  className: ue.drawer,
2330
2373
  isOpen: r,
2331
2374
  onClose: f,
2332
2375
  heightGap: 0,
2333
- title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
2334
- children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${x}`)) }),
2335
- footer: b ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: b.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${x}`)) }) : void 0
2376
+ title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-header-${y}`)) : _ }) : void 0,
2377
+ children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-body-${y}`)) }),
2378
+ footer: p ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: p.map((m, y) => /* @__PURE__ */ o.jsx(S, { children: m }, `drawer-footer-${y}`)) }) : void 0
2336
2379
  }
2337
2380
  );
2338
2381
  };
2339
- function aa({
2382
+ function la({
2340
2383
  routes: e,
2341
2384
  renderPage: t,
2342
2385
  renderFallback: a,
2343
2386
  redirectTo: s = "/"
2344
2387
  }) {
2345
- return /* @__PURE__ */ o.jsxs(Mt, { children: [
2388
+ return /* @__PURE__ */ o.jsxs(Gt, { children: [
2346
2389
  e.map((c) => /* @__PURE__ */ o.jsx(
2347
2390
  Ce,
2348
2391
  {
@@ -2351,16 +2394,16 @@ function aa({
2351
2394
  },
2352
2395
  `${c.path}:${c.sessionName}`
2353
2396
  )),
2354
- /* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(zt, { to: s, replace: !0 }) })
2397
+ /* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(Ut, { to: s, replace: !0 }) })
2355
2398
  ] });
2356
2399
  }
2357
- function ra({
2400
+ function da({
2358
2401
  sessionName: e,
2359
2402
  apiConfig: t,
2360
2403
  onResolveComponentProps: a,
2361
2404
  children: s
2362
2405
  }) {
2363
- const c = Js(
2406
+ const c = Qs(
2364
2407
  e,
2365
2408
  t,
2366
2409
  null,
@@ -2371,7 +2414,7 @@ function ra({
2371
2414
  s
2372
2415
  ] });
2373
2416
  }
2374
- const Le = (e, t, a, s, c) => {
2417
+ const Ie = (e, t, a, s, c) => {
2375
2418
  const i = E(
2376
2419
  e,
2377
2420
  t,
@@ -2381,7 +2424,7 @@ const Le = (e, t, a, s, c) => {
2381
2424
  switch (a) {
2382
2425
  case "body":
2383
2426
  return /* @__PURE__ */ o.jsx(
2384
- ln,
2427
+ un,
2385
2428
  {
2386
2429
  ...s,
2387
2430
  inputs: i || []
@@ -2390,7 +2433,7 @@ const Le = (e, t, a, s, c) => {
2390
2433
  );
2391
2434
  case "header":
2392
2435
  return /* @__PURE__ */ o.jsx(
2393
- Vn,
2436
+ Yn,
2394
2437
  {
2395
2438
  ...s,
2396
2439
  components: i || []
@@ -2400,36 +2443,42 @@ const Le = (e, t, a, s, c) => {
2400
2443
  default:
2401
2444
  return null;
2402
2445
  }
2403
- }, Js = (e, t, a, s) => {
2404
- var _, h, b;
2405
- const [c, i] = $(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? Le(
2446
+ }, Qs = (e, t, a, s) => {
2447
+ var _, h, p;
2448
+ const [c, i] = A(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId;
2449
+ z(() => {
2450
+ if (typeof window > "u") return;
2451
+ const m = new URL(window.location.href), y = m.searchParams.get("sessionId");
2452
+ y && (sessionStorage.setItem("sessionId", y), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
2453
+ }, []);
2454
+ const d = n ? Ie(
2406
2455
  e,
2407
2456
  n,
2408
2457
  "header",
2409
2458
  ((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
2410
2459
  s
2411
- ) : null, r = n ? Le(
2460
+ ) : null, r = n ? Ie(
2412
2461
  e,
2413
2462
  n,
2414
2463
  "body",
2415
- ((b = l[e].pages[n].page) == null ? void 0 : b.body) || null,
2464
+ ((p = l[e].pages[n].page) == null ? void 0 : p.body) || null,
2416
2465
  s
2417
2466
  ) : null, u = T(() => {
2418
2467
  var m;
2419
2468
  return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2420
- ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(gt, {}),
2469
+ ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(bt, {}),
2421
2470
  d,
2422
2471
  r,
2423
- n && /* @__PURE__ */ o.jsx(Yn, { userFlow: e, pageId: n }),
2424
- l[e] && /* @__PURE__ */ o.jsx(pt, {})
2472
+ n && /* @__PURE__ */ o.jsx(ts, { userFlow: e, pageId: n }),
2473
+ l[e] && /* @__PURE__ */ o.jsx(jt, {})
2425
2474
  ] });
2426
2475
  }, [d, r, n, e]), f = async () => {
2427
2476
  try {
2428
- const m = await Ge(
2477
+ const m = await Ue(
2429
2478
  t,
2430
2479
  e
2431
- ), x = m == null ? void 0 : m.data, y = x == null ? void 0 : x.content;
2432
- (m == null ? void 0 : m.status) === 200 ? ce(e, t, y, x == null ? void 0 : x.sessionState) : i(!0);
2480
+ ), y = m == null ? void 0 : m.data, x = y == null ? void 0 : y.content;
2481
+ (m == null ? void 0 : m.status) === 200 ? ce(e, t, x, y == null ? void 0 : y.sessionState) : i(!0);
2433
2482
  } catch (m) {
2434
2483
  console.error("[not-page]: API call failed", m), i(!0);
2435
2484
  }
@@ -2440,21 +2489,21 @@ const Le = (e, t, a, s, c) => {
2440
2489
  "not api config",
2441
2490
  "not userFlow"
2442
2491
  ));
2443
- const m = "avocado-theme-mode-changed", x = (y) => {
2444
- const g = y.detail;
2492
+ const m = "avocado-theme-mode-changed", y = (x) => {
2493
+ const g = x.detail;
2445
2494
  te.setThemeMode(g);
2446
2495
  };
2447
- return window.addEventListener(m, x), () => {
2448
- window.removeEventListener(m, x);
2496
+ return window.addEventListener(m, y), () => {
2497
+ window.removeEventListener(m, y);
2449
2498
  };
2450
2499
  }, []), c && console.error("[not-page]: No render page"), u;
2451
2500
  };
2452
2501
  export {
2453
- Gn as Chart,
2454
- aa as NotFrontDynamicRouter,
2455
- ra as NotFrontPage,
2456
- ss as Row,
2457
- Zt as heading,
2458
- Ft as text,
2459
- Js as usePage
2502
+ Xn as Chart,
2503
+ la as NotFrontDynamicRouter,
2504
+ da as NotFrontPage,
2505
+ is as Row,
2506
+ en as heading,
2507
+ tn as text,
2508
+ Qs as usePage
2460
2509
  };