@foris/avocado-not-front 5.2.7 → 5.2.8

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,22 +1,22 @@
1
1
  import X from "axios";
2
- import { create as Ee } from "zustand";
3
- import ke, { useMemo as O, useState as $, useCallback as L, Fragment as k, useEffect as U, useRef as ut, cloneElement as Se } from "react";
4
- import { Heading as re, Text as ae, Accordion as Te, ThemeStore as ht, Box as Ae, RadioButton as Oe, Stepper as $e, ProgressBar as Re, Breadcrumbs as De, Button as qe, CardAccordion as Ie, Card as Le, CardNotification as xt, SkeletonBase as oe, Checkbox as Ke, PreviewerMarkdown as ce, DataCard as Be, Divider as Me, Drawer as He, DropdownButton as Ge, Link as Ue, Menu as Ve, Modal as ze, Pill as St, RoundButton as Xe, SelectPagination as Je, Select as We, Switch as Ye, Table as Bt, Pager as Ct, Tabs as Qe, Textarea as Ze, TextField as Fe, toast as lt, Tooltip as Pe, Loading as tn, Toaster as en } from "@foris/avocado-suite";
2
+ import { create as ke } from "zustand";
3
+ import Se, { useMemo as D, useState as R, useCallback as I, Fragment as A, useEffect as U, useRef as ut, cloneElement as Te } from "react";
4
+ import { Heading as re, Text as ae, Accordion as Ae, ThemeStore as ht, Box as Oe, RadioButton as $e, Stepper as De, ProgressBar as Re, Breadcrumbs as qe, Button as Le, CardAccordion as Ie, Card as Ke, CardNotification as mt, SkeletonBase as oe, Checkbox as Be, PreviewerMarkdown as ce, DataCard as ie, Divider as Me, Drawer as Ge, DropdownButton as He, Link as Ue, Menu as Ve, Modal as ze, Pill as St, RoundButton as Xe, SelectPagination as Je, Select as We, Switch as Ye, Table as Mt, Pager as Ct, Tabs as Qe, Textarea as Ze, TextField as Fe, toast as lt, Tooltip as Pe, Loading as tn, Toaster as en } from "@foris/avocado-suite";
5
5
  import { ChatPanel as nn, PromptCodeEditor as sn, SummaryCard as rn } from "@foris/ai-agent";
6
- import B from "jsonpath";
7
- import { ResponsiveContainer as Ot, Legend as an, Tooltip as on, XAxis as cn, YAxis as ln, AreaChart as dn, CartesianGrid as st, Area as ie, BarChart as $t, Bar as gt, ComposedChart as _n, Line as le, PieChart as de, Pie as _e, Cell as ue, Sector as Mt, LineChart as un } from "recharts";
6
+ import M from "jsonpath";
7
+ import { ResponsiveContainer as $t, Legend as an, Tooltip as on, XAxis as cn, YAxis as ln, AreaChart as dn, CartesianGrid as st, Area as le, BarChart as Dt, Bar as pt, ComposedChart as _n, Line as de, PieChart as _e, Pie as ue, Cell as he, Sector as Gt, LineChart as un } from "recharts";
8
8
  import hn from "@uiw/react-codemirror";
9
9
  import { json as Ht } from "@codemirror/lang-json";
10
10
  import { markdown as fn } from "@codemirror/lang-markdown";
11
- import { sql as yn } from "@codemirror/lang-sql";
12
- import { yaml as xn } from "@codemirror/lang-yaml";
13
- import { Icon as Gt } from "@foris/avocado-icons";
14
- const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
11
+ import { sql as xn } from "@codemirror/lang-sql";
12
+ import { yaml as yn } from "@codemirror/lang-yaml";
13
+ import { Icon as Ut } from "@foris/avocado-icons";
14
+ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), qt = (t) => {
15
15
  t && sessionStorage.setItem(Rt, t);
16
- }, $a = () => {
16
+ }, Ia = () => {
17
17
  sessionStorage.removeItem(Rt);
18
- }, v = Ee(() => ({})), yt = (t, e, s, r, c) => {
19
- Dt(c);
18
+ }, v = ke(() => ({})), yt = (t, e, s, r, c) => {
19
+ qt(c);
20
20
  const l = s == null ? void 0 : s.hash, i = r && Object.keys(r).length > 0 ? { ...r } : {};
21
21
  v.setState((n) => {
22
22
  var d;
@@ -40,7 +40,7 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
40
40
  }
41
41
  };
42
42
  });
43
- }, he = (t, e, s) => {
43
+ }, fe = (t, e, s) => {
44
44
  const r = s && Object.keys(s).length > 0 ? { ...t, ...s } : t;
45
45
  return e.length === 0 ? t : Object.fromEntries(
46
46
  Object.entries(r).filter(
@@ -48,8 +48,8 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
48
48
  )
49
49
  );
50
50
  }, gn = (t, e, s, r, c) => {
51
- Dt(s), v.setState((l) => {
52
- const i = l[t] ?? {}, n = i.entries ?? {}, d = he(
51
+ qt(s), v.setState((l) => {
52
+ const i = l[t] ?? {}, n = i.entries ?? {}, d = fe(
53
53
  n,
54
54
  r,
55
55
  c
@@ -74,7 +74,7 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
74
74
  }, pn = (t, e, s, r) => {
75
75
  v.setState((c) => {
76
76
  var a;
77
- const l = c[t] ?? {}, i = l.entries ?? {}, n = he(
77
+ const l = c[t] ?? {}, i = l.entries ?? {}, n = fe(
78
78
  i,
79
79
  s,
80
80
  r
@@ -93,7 +93,7 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
93
93
  }
94
94
  };
95
95
  });
96
- }, qt = (t) => {
96
+ }, Lt = (t) => {
97
97
  v.setState((e) => ({
98
98
  ...e,
99
99
  [t]: {
@@ -123,7 +123,7 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
123
123
  c,
124
124
  l
125
125
  ));
126
- }, I = (t, e) => {
126
+ }, L = (t, e) => {
127
127
  v.setState((s) => {
128
128
  var r;
129
129
  return {
@@ -179,7 +179,7 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
179
179
  isDrawerOpen: e
180
180
  }
181
181
  }));
182
- }, Ut = (t, e) => {
182
+ }, Vt = (t, e) => {
183
183
  v.setState((s) => {
184
184
  const r = s[t];
185
185
  return r ? {
@@ -194,12 +194,12 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
194
194
  } : s;
195
195
  });
196
196
  };
197
- let Nt = !1, mt = [], Vt = !1;
198
- const Cn = (t) => t._userFlow || null, zt = (t) => {
199
- mt.forEach(({ resolve: e, reject: s }) => {
197
+ let wt = !1, gt = [], zt = !1;
198
+ const Cn = (t) => t._userFlow || null, Xt = (t) => {
199
+ gt.forEach(({ resolve: e, reject: s }) => {
200
200
  t ? s(t) : e(void 0);
201
- }), mt = [];
202
- }, Nn = async (t) => {
201
+ }), gt = [];
202
+ }, wn = async (t) => {
203
203
  var r, c;
204
204
  const e = t == null ? void 0 : t.config;
205
205
  if (((r = t == null ? void 0 : t.response) == null ? void 0 : r.status) === 401 && !e._retry) {
@@ -209,11 +209,11 @@ const Cn = (t) => t._userFlow || null, zt = (t) => {
209
209
  if (!n)
210
210
  return Promise.reject(t);
211
211
  if (n.onAuthenticationError || typeof n.headers == "function") {
212
- if (Nt)
212
+ if (wt)
213
213
  return new Promise((a, _) => {
214
- mt.push({ resolve: a, reject: _ });
214
+ gt.push({ resolve: a, reject: _ });
215
215
  }).then(() => X(e)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
216
- e._retry = !0, Nt = !0;
216
+ e._retry = !0, wt = !0;
217
217
  try {
218
218
  let a;
219
219
  if (n.onAuthenticationError)
@@ -222,17 +222,17 @@ const Cn = (t) => t._userFlow || null, zt = (t) => {
222
222
  a = n.headers();
223
223
  else
224
224
  throw new Error("No refresh handler available");
225
- return n.onAuthenticationError && (typeof n.headers == "string" ? Ut(l, JSON.stringify(a)) : Ut(l, a)), e.headers || (e.headers = {}), Object.assign(e.headers, a), zt(null), X(e);
225
+ return n.onAuthenticationError && (typeof n.headers == "string" ? Vt(l, JSON.stringify(a)) : Vt(l, a)), e.headers || (e.headers = {}), Object.assign(e.headers, a), Xt(null), X(e);
226
226
  } catch (a) {
227
227
  return console.error(
228
228
  "[axiosInterceptors] Token refresh failed:",
229
229
  a
230
230
  ), console.error(
231
231
  "[axiosInterceptors] Rejecting queued requests:",
232
- mt.length
233
- ), zt(a), Promise.reject(a);
232
+ gt.length
233
+ ), Xt(a), Promise.reject(a);
234
234
  } finally {
235
- Nt = !1;
235
+ wt = !1;
236
236
  }
237
237
  } else
238
238
  console.warn(
@@ -245,20 +245,20 @@ const Cn = (t) => t._userFlow || null, zt = (t) => {
245
245
  );
246
246
  }
247
247
  return Promise.reject(t);
248
- }, wn = () => {
249
- if (Vt) {
248
+ }, Nn = () => {
249
+ if (zt) {
250
250
  console.debug(
251
251
  "[axiosInterceptors] Interceptors already initialized, skipping"
252
252
  );
253
253
  return;
254
254
  }
255
- console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, Nn), console.debug("[axiosInterceptors] Response error interceptor registered"), Vt = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
255
+ console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, wn), console.debug("[axiosInterceptors] Response error interceptor registered"), zt = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
256
256
  };
257
- wn();
257
+ Nn();
258
258
  function vn(t) {
259
259
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
260
260
  }
261
- var wt = { exports: {} }, dt = {};
261
+ var Nt = { exports: {} }, dt = {};
262
262
  /**
263
263
  * @license React
264
264
  * react-jsx-runtime.production.min.js
@@ -268,11 +268,11 @@ var wt = { exports: {} }, dt = {};
268
268
  * This source code is licensed under the MIT license found in the
269
269
  * LICENSE file in the root directory of this source tree.
270
270
  */
271
- var Xt;
271
+ var Jt;
272
272
  function En() {
273
- if (Xt) return dt;
274
- Xt = 1;
275
- var t = ke, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
273
+ if (Jt) return dt;
274
+ Jt = 1;
275
+ var t = Se, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
276
276
  function i(n, d, a) {
277
277
  var _, u = {}, h = null, f = null;
278
278
  a !== void 0 && (h = "" + a), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (f = d.ref);
@@ -282,9 +282,9 @@ function En() {
282
282
  }
283
283
  return dt.Fragment = s, dt.jsx = i, dt.jsxs = i, dt;
284
284
  }
285
- var Jt;
285
+ var Wt;
286
286
  function kn() {
287
- return Jt || (Jt = 1, wt.exports = En()), wt.exports;
287
+ return Wt || (Wt = 1, Nt.exports = En()), Nt.exports;
288
288
  }
289
289
  var o = kn();
290
290
  const Sn = (t) => {
@@ -324,41 +324,41 @@ const Sn = (t) => {
324
324
  onResolveProps: r == null ? void 0 : r.aiSummaryCard
325
325
  }
326
326
  ),
327
- aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: t, pageId: e }),
327
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: t, pageId: e }),
328
328
  box: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n, userFlow: t, pageId: e }),
329
329
  breadcrumbs: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: t, pageId: e }),
330
- tooltip: (n) => /* @__PURE__ */ o.jsx(ha, { ...n, userFlow: t, pageId: e }),
331
- textarea: (n) => /* @__PURE__ */ o.jsx(oa, { ...n, userFlow: t, pageId: e }),
332
- card: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: t, pageId: e }),
333
- dropdownButton: (n) => /* @__PURE__ */ o.jsx(lr, { ...n, userFlow: t, pageId: e }),
334
- menu: (n) => /* @__PURE__ */ o.jsx(fr, { ...n, userFlow: t, pageId: e }),
330
+ tooltip: (n) => /* @__PURE__ */ o.jsx(ga, { ...n, userFlow: t, pageId: e }),
331
+ textarea: (n) => /* @__PURE__ */ o.jsx(_a, { ...n, userFlow: t, pageId: e }),
332
+ card: (n) => /* @__PURE__ */ o.jsx(xs, { ...n, userFlow: t, pageId: e }),
333
+ dropdownButton: (n) => /* @__PURE__ */ o.jsx(fr, { ...n, userFlow: t, pageId: e }),
334
+ menu: (n) => /* @__PURE__ */ o.jsx(pr, { ...n, userFlow: t, pageId: e }),
335
335
  radioGroup: (n) => /* @__PURE__ */ o.jsx(os, { ...n, userFlow: t, pageId: e }),
336
336
  stepper: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: t, pageId: e }),
337
337
  progressBar: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: t, pageId: e }),
338
338
  button: (n) => /* @__PURE__ */ o.jsx(ds, { ...n, userFlow: t, pageId: e }),
339
339
  cardAccordion: (n) => /* @__PURE__ */ o.jsx(us, { ...n, userFlow: t, pageId: e }),
340
- cardNotification: (n) => /* @__PURE__ */ o.jsx(xs, { ...n, userFlow: t, pageId: e }),
340
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: t, pageId: e }),
341
341
  chart: (n) => /* @__PURE__ */ o.jsx(zs, { ...n, userFlow: t }),
342
- dataCard: (n) => /* @__PURE__ */ o.jsx(er, { ...n, userFlow: t, pageId: e }),
342
+ dataCard: (n) => /* @__PURE__ */ o.jsx(or, { ...n, userFlow: t, pageId: e }),
343
343
  checkbox: (n) => /* @__PURE__ */ o.jsx(Xs, { ...n, userFlow: t, pageId: e }),
344
344
  code: (n) => /* @__PURE__ */ o.jsx(Ps, { ...n, userFlow: t, pageId: e }),
345
- divider: (n) => /* @__PURE__ */ o.jsx(rr, { ...n }),
346
- drawer: (n) => /* @__PURE__ */ o.jsx(ir, { ...n, userFlow: t, pageId: e }),
345
+ divider: (n) => /* @__PURE__ */ o.jsx(lr, { ...n }),
346
+ drawer: (n) => /* @__PURE__ */ o.jsx(hr, { ...n, userFlow: t, pageId: e }),
347
347
  heading: (n) => Sn(n),
348
- link: (n) => /* @__PURE__ */ o.jsx(hr, { ...n, userFlow: t, pageId: e }),
349
- pill: (n) => /* @__PURE__ */ o.jsx(Cr, { ...n }),
350
- previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Nr, { ...n }),
351
- modal: (n) => /* @__PURE__ */ o.jsx(mr, { ...n, userFlow: t, pageId: e }),
352
- roundButton: (n) => /* @__PURE__ */ o.jsx(wr, { ...n, userFlow: t, pageId: e }),
353
- row: (n) => /* @__PURE__ */ o.jsx(kr, { ...n, userFlow: t, pageId: e }),
354
- select: (n) => /* @__PURE__ */ o.jsx(qr, { ...n, userFlow: t, pageId: e }),
355
- switch: (n) => /* @__PURE__ */ o.jsx(Xr, { ...n, userFlow: t, pageId: e }),
356
- spacing: (n) => /* @__PURE__ */ o.jsx(zr, { ...n, userFlow: t, pageId: e }),
357
- table: (n) => /* @__PURE__ */ o.jsx(Pr, { ...n, userFlow: t, pageId: e }),
358
- tabs: (n) => /* @__PURE__ */ o.jsx(sa, { ...n, userFlow: t, pageId: e }),
348
+ link: (n) => /* @__PURE__ */ o.jsx(gr, { ...n, userFlow: t, pageId: e }),
349
+ pill: (n) => /* @__PURE__ */ o.jsx(kr, { ...n }),
350
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Sr, { ...n }),
351
+ modal: (n) => /* @__PURE__ */ o.jsx(Cr, { ...n, userFlow: t, pageId: e }),
352
+ roundButton: (n) => /* @__PURE__ */ o.jsx(Tr, { ...n, userFlow: t, pageId: e }),
353
+ row: (n) => /* @__PURE__ */ o.jsx($r, { ...n, userFlow: t, pageId: e }),
354
+ select: (n) => /* @__PURE__ */ o.jsx(Mr, { ...n, userFlow: t, pageId: e }),
355
+ switch: (n) => /* @__PURE__ */ o.jsx(Zr, { ...n, userFlow: t, pageId: e }),
356
+ spacing: (n) => /* @__PURE__ */ o.jsx(Qr, { ...n, userFlow: t, pageId: e }),
357
+ table: (n) => /* @__PURE__ */ o.jsx(ra, { ...n, userFlow: t, pageId: e }),
358
+ tabs: (n) => /* @__PURE__ */ o.jsx(ia, { ...n, userFlow: t, pageId: e }),
359
359
  text: (n) => Tn(n),
360
- textField: (n) => /* @__PURE__ */ o.jsx(la, { ...n, userFlow: t, pageId: e }),
361
- toast: (n) => /* @__PURE__ */ o.jsx(da, { ...n, userFlow: t, pageId: e })
360
+ textField: (n) => /* @__PURE__ */ o.jsx(fa, { ...n, userFlow: t, pageId: e }),
361
+ toast: (n) => /* @__PURE__ */ o.jsx(xa, { ...n, userFlow: t, pageId: e })
362
362
  };
363
363
  return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
364
364
  const d = c[n.component];
@@ -368,7 +368,7 @@ const Sn = (t) => {
368
368
  function An(t) {
369
369
  return !!(t == null || typeof t == "string" && t.trim() === "" || Array.isArray(t) && t.length === 0);
370
370
  }
371
- function fe(t, e) {
371
+ function xe(t, e) {
372
372
  if (!(e != null && e.length))
373
373
  return !1;
374
374
  for (const s of e)
@@ -379,14 +379,14 @@ function fe(t, e) {
379
379
  }
380
380
  return !1;
381
381
  }
382
- function M(t, e) {
382
+ function B(t, e) {
383
383
  const s = v((r) => {
384
384
  var c;
385
385
  return (c = r[t]) == null ? void 0 : c.entries;
386
386
  });
387
- return O(
387
+ return D(
388
388
  () => ({
389
- disabled: fe(s, e)
389
+ disabled: xe(s, e)
390
390
  }),
391
391
  [e, s]
392
392
  );
@@ -448,7 +448,7 @@ const rt = (t) => {
448
448
  }),
449
449
  controller: i
450
450
  };
451
- }, Rn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
451
+ }, Dn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
452
452
  const i = ft();
453
453
  c && i.abort();
454
454
  const n = rt(e);
@@ -463,7 +463,7 @@ const rt = (t) => {
463
463
  }),
464
464
  controller: i
465
465
  };
466
- }, Dn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
466
+ }, Rn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
467
467
  const i = ft();
468
468
  c && i.abort();
469
469
  const n = rt(e);
@@ -493,7 +493,7 @@ const rt = (t) => {
493
493
  }, cancelEndpoint: () => {
494
494
  t && t.abort();
495
495
  } };
496
- }, xe = async (t, e, s = "", r = {}, c = {}) => {
496
+ }, me = async (t, e, s = "", r = {}, c = {}) => {
497
497
  try {
498
498
  const { callEndpoint: l } = ye(), { api: i, headers: n } = t, d = mn(), a = new URLSearchParams({ session_name: e });
499
499
  s && a.append("hash_code", s), d && a.append("sessionId", d);
@@ -509,7 +509,7 @@ const rt = (t) => {
509
509
  } catch (l) {
510
510
  return console.error(l), Promise.reject(l);
511
511
  }
512
- }, me = (t) => {
512
+ }, ge = (t) => {
513
513
  const e = t == null ? void 0 : t.toLowerCase();
514
514
  switch (e) {
515
515
  case "post":
@@ -535,14 +535,14 @@ const rt = (t) => {
535
535
  }
536
536
  const d = i.join("&");
537
537
  return d ? `${r}?${d}` : r;
538
- }, Lt = (t, e, s, r) => {
538
+ }, Kt = (t, e, s, r) => {
539
539
  const { type: c, url: l, method: i, headers: n } = t;
540
540
  if (c === "rest") {
541
541
  const d = qn(t, e, s), _ = { ...(t == null ? void 0 : t.data) ?? {}, ...r ?? {} };
542
542
  return {
543
543
  type: "rest",
544
544
  url: d,
545
- method: me(i),
545
+ method: ge(i),
546
546
  headers: n,
547
547
  data: _
548
548
  };
@@ -559,34 +559,34 @@ const rt = (t) => {
559
559
  page: e
560
560
  }
561
561
  };
562
- }, G = () => {
562
+ }, H = () => {
563
563
  const t = v((n) => n), { callEndpoint: e } = ye(), s = async (n, d, a, _, u = !0) => {
564
564
  var h;
565
565
  try {
566
- const f = (h = t[n]) == null ? void 0 : h.apiConfig, x = {
566
+ const f = (h = t[n]) == null ? void 0 : h.apiConfig, y = {
567
567
  state: { ...a },
568
568
  triggerKey: _
569
569
  };
570
- return u && F(n, !0), await xe(
570
+ return u && F(n, !0), await me(
571
571
  f,
572
572
  n,
573
573
  d,
574
- x
574
+ y
575
575
  );
576
576
  } catch (f) {
577
577
  throw u && F(n, !1), console.error("[getNextUI] Error fetching next UI:", f), f;
578
578
  }
579
579
  }, r = (n, d) => {
580
580
  const { url: a, headers: _, data: u, params: h } = n;
581
- switch (me(n.method)) {
581
+ switch (ge(n.method)) {
582
582
  case "post":
583
583
  return Tt(a, _, u, {}, !1, d);
584
584
  case "put":
585
585
  return $n(a, _, u, {}, !1, d);
586
586
  case "patch":
587
- return Rn(a, _, u, {}, !1, d);
587
+ return Dn(a, _, u, {}, !1, d);
588
588
  case "delete":
589
- return Dn(a, _, u, h, !1, d);
589
+ return Rn(a, _, u, h, !1, d);
590
590
  case "get":
591
591
  default:
592
592
  return On(a, _, h, !1, d);
@@ -662,9 +662,9 @@ const rt = (t) => {
662
662
  }
663
663
  }
664
664
  };
665
- }, In = "_accordion_1ri2t_1", Ln = "_accordionBody_1ri2t_8", Wt = {
666
- accordion: In,
667
- accordionBody: Ln
665
+ }, Ln = "_accordion_1ri2t_1", In = "_accordionBody_1ri2t_8", Yt = {
666
+ accordion: Ln,
667
+ accordionBody: In
668
668
  }, Kn = (t) => {
669
669
  const {
670
670
  userFlow: e,
@@ -675,53 +675,53 @@ const rt = (t) => {
675
675
  actionContent: i,
676
676
  components: n,
677
677
  ...d
678
- } = t, { getNextUI: a } = G(), [_, u] = $(
678
+ } = t, { getNextUI: a } = H(), [_, u] = R(
679
679
  d.checkboxChecked || !1
680
- ), { disabled: h } = M(
680
+ ), { disabled: h } = B(
681
681
  e,
682
682
  c
683
- ), f = E(e, s, n), x = i ? E(e, s, i) : void 0, b = l ? E(e, s, l) : void 0, g = L(
683
+ ), f = E(e, s, n), y = i ? E(e, s, i) : void 0, b = l ? E(e, s, l) : void 0, g = I(
684
684
  async (p) => {
685
685
  var C;
686
686
  try {
687
687
  const j = p.target.checked;
688
688
  u(j);
689
- const N = {
689
+ const w = {
690
690
  ...(C = v.getState()[e]) == null ? void 0 : C.entries,
691
691
  [r]: j
692
692
  };
693
- if (I(e, N), d.actionType === "GO_TO_NEXT_UI") {
694
- const w = await a(
693
+ if (L(e, w), d.actionType === "GO_TO_NEXT_UI") {
694
+ const N = await a(
695
695
  e,
696
696
  s,
697
- N,
697
+ w,
698
698
  r
699
699
  );
700
- w != null && w.data && K(e, w == null ? void 0 : w.data);
700
+ N != null && N.data && K(e, N == null ? void 0 : N.data);
701
701
  }
702
702
  } catch (j) {
703
703
  console.error("Error in accordion checkbox action:", j), alert(JSON.stringify(j));
704
704
  }
705
705
  },
706
706
  [e, s, r, d.actionType, a]
707
- ), y = d.disabled || h, m = {
707
+ ), x = d.disabled || h, m = {
708
708
  ...d,
709
- className: Wt.accordion,
710
- disabled: y,
709
+ className: Yt.accordion,
710
+ disabled: x,
711
711
  checkboxChecked: _,
712
712
  onChanceCheckbox: d.hasCheckbox ? g : void 0,
713
- actionContent: x ? /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((p, C) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-action-${C}`)) }) : void 0,
714
- customContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, C) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-custom-${C}`)) }) : void 0,
715
- children: f ? /* @__PURE__ */ o.jsx("section", { className: Wt.accordionBody, children: f.map((p, C) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${C}`)) }) : void 0
713
+ actionContent: y ? /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((p, C) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-action-${C}`)) }) : void 0,
714
+ customContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, C) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-custom-${C}`)) }) : void 0,
715
+ children: f ? /* @__PURE__ */ o.jsx("section", { className: Yt.accordionBody, children: f.map((p, C) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-child-${C}`)) }) : void 0
716
716
  };
717
- return /* @__PURE__ */ o.jsx(Te, { ...m });
717
+ return /* @__PURE__ */ o.jsx(Ae, { ...m });
718
718
  }, Bn = (t) => {
719
- const e = ht.useThemeStore((i) => i.theme.mode), s = t.dataSource, r = O(() => ({
719
+ const e = ht.useThemeStore((i) => i.theme.mode), s = t.dataSource, r = D(() => ({
720
720
  url: t.dataSource.url,
721
721
  method: t.dataSource.method,
722
722
  headers: t.dataSource.headers,
723
723
  params: s == null ? void 0 : s.data
724
- }), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, s == null ? void 0 : s.data]), c = t.locale ?? "en", l = O(() => {
724
+ }), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, s == null ? void 0 : s.data]), c = t.locale ?? "en", l = D(() => {
725
725
  var n, d, a, _, u;
726
726
  const i = {
727
727
  title: (n = t == null ? void 0 : t.translations) == null ? void 0 : n.title,
@@ -757,9 +757,9 @@ const rt = (t) => {
757
757
  theme: e
758
758
  }
759
759
  );
760
- }, Mn = "_promptCodeEditor_1d57s_1", Hn = {
760
+ }, Mn = "_promptCodeEditor_1d57s_1", Gn = {
761
761
  promptCodeEditor: Mn
762
- }, Gn = (t) => {
762
+ }, Hn = (t) => {
763
763
  const {
764
764
  userFlow: e,
765
765
  responseKey: s,
@@ -771,12 +771,12 @@ const rt = (t) => {
771
771
  inputLabel: d,
772
772
  inputPlaceholder: a,
773
773
  codeBlockLabel: _
774
- } = t, u = ht.useThemeStore((p) => p.theme.mode), [h, f] = $(
774
+ } = t, u = ht.useThemeStore((p) => p.theme.mode), [h, f] = R(
775
775
  r || ""
776
- ), { disabled: x } = M(
776
+ ), { disabled: y } = B(
777
777
  e,
778
778
  i
779
- ), b = l ?? x, g = c ?? "json", y = {
779
+ ), b = l ?? y, g = c ?? "json", x = {
780
780
  url: (n == null ? void 0 : n.url) || "",
781
781
  method: (n == null ? void 0 : n.method) || "post",
782
782
  headers: n == null ? void 0 : n.headers,
@@ -786,15 +786,15 @@ const rt = (t) => {
786
786
  const C = {
787
787
  [s]: p
788
788
  };
789
- I(e, C);
789
+ L(e, C);
790
790
  };
791
791
  return U(() => {
792
792
  r !== void 0 && r !== h && f(r);
793
- }, [r]), /* @__PURE__ */ o.jsx("section", { className: Hn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
793
+ }, [r]), /* @__PURE__ */ o.jsx("section", { className: Gn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
794
794
  sn,
795
795
  {
796
796
  themeMode: u,
797
- requestConfig: y,
797
+ requestConfig: x,
798
798
  language: g,
799
799
  disabled: b,
800
800
  inputLabel: d,
@@ -807,12 +807,12 @@ const rt = (t) => {
807
807
  }, Un = "_summaryCard_jva4h_1", Vn = {
808
808
  summaryCard: Un
809
809
  }, zn = (t) => {
810
- const e = t.dataSource, s = O(() => ({
810
+ const e = t.dataSource, s = D(() => ({
811
811
  url: t.dataSource.url,
812
812
  method: t.dataSource.method,
813
813
  headers: t.dataSource.headers,
814
814
  body: e == null ? void 0 : e.data
815
- }), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, e == null ? void 0 : e.data]), r = t.locale ?? "en", c = O(() => {
815
+ }), [t.dataSource.url, t.dataSource.method, t.dataSource.headers, e == null ? void 0 : e.data]), r = t.locale ?? "en", c = D(() => {
816
816
  var i, n, d;
817
817
  const l = {
818
818
  title: (i = t == null ? void 0 : t.translations) == null ? void 0 : i.title,
@@ -837,10 +837,10 @@ const rt = (t) => {
837
837
  translations: c
838
838
  }
839
839
  ) });
840
- }, Xn = "_body_14tsv_1", Jn = "_body_content_14tsv_5", Yt = {
840
+ }, Xn = "_body_14tsv_1", Jn = "_body_content_14tsv_5", Qt = {
841
841
  body: Xn,
842
842
  body_content: Jn
843
- }, Wn = ({ inputs: t }) => /* @__PURE__ */ o.jsx("section", { className: Yt.body, children: /* @__PURE__ */ o.jsx("div", { className: Yt.body_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(k, { children: e }, s)) }) }), Yn = "_boxNotFront_67q2e_1", Qn = "_slotStack_67q2e_5", Qt = {
843
+ }, Wn = ({ inputs: t }) => /* @__PURE__ */ o.jsx("section", { className: Qt.body, children: /* @__PURE__ */ o.jsx("div", { className: Qt.body_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(A, { children: e }, s)) }) }), Yn = "_boxNotFront_67q2e_1", Qn = "_slotStack_67q2e_5", Zt = {
844
844
  boxNotFront: Yn,
845
845
  slotStack: Qn
846
846
  }, Zn = (t) => {
@@ -855,8 +855,8 @@ const rt = (t) => {
855
855
  e,
856
856
  s,
857
857
  i != null && i.length ? i : null
858
- ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Qt.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(k, { children: _ }, `box-${c}-${u}`)) }) : null;
859
- return /* @__PURE__ */ o.jsx(Ae, { className: Qt.boxNotFront, darkMode: n, children: a });
858
+ ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Zt.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(A, { children: _ }, `box-${c}-${u}`)) }) : null;
859
+ return /* @__PURE__ */ o.jsx(Oe, { className: Zt.boxNotFront, darkMode: n, children: a });
860
860
  };
861
861
  var vt = { exports: {} };
862
862
  /*!
@@ -864,9 +864,9 @@ var vt = { exports: {} };
864
864
  Licensed under the MIT License (MIT), see
865
865
  http://jedwatson.github.io/classnames
866
866
  */
867
- var Zt;
867
+ var Ft;
868
868
  function Fn() {
869
- return Zt || (Zt = 1, (function(t) {
869
+ return Ft || (Ft = 1, (function(t) {
870
870
  (function() {
871
871
  var e = {}.hasOwnProperty;
872
872
  function s() {
@@ -917,15 +917,15 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
917
917
  dependencies: d,
918
918
  direction: a,
919
919
  items: _
920
- } = t, u = a === "column" ? "column" : "row", { getNextUI: h } = G(), { disabled: f } = M(
920
+ } = t, u = a === "column" ? "column" : "row", { getNextUI: h } = H(), { disabled: f } = B(
921
921
  e,
922
922
  d
923
- ), x = v(
923
+ ), y = v(
924
924
  (p) => {
925
925
  var C, j;
926
926
  return (j = (C = p[e]) == null ? void 0 : C.entries) == null ? void 0 : j[r];
927
927
  }
928
- ), b = x != null ? String(x) : l ?? "", g = f, y = O(() => c ? i ? `${c} *` : c : null, [c, i]), m = L(
928
+ ), b = y != null ? String(y) : l ?? "", g = f, x = D(() => c ? i ? `${c} *` : c : null, [c, i]), m = I(
929
929
  async (p) => {
930
930
  var C;
931
931
  if (!g)
@@ -934,15 +934,15 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
934
934
  ...(C = v.getState()[e]) == null ? void 0 : C.entries,
935
935
  [r]: p
936
936
  };
937
- if (I(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
938
- const S = await h(
937
+ if (L(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
938
+ const k = await h(
939
939
  e,
940
940
  s,
941
941
  j,
942
942
  r,
943
943
  n === "GO_TO_NEXT_UI"
944
944
  );
945
- S != null && S.data && K(e, S == null ? void 0 : S.data);
945
+ k != null && k.data && K(e, k == null ? void 0 : k.data);
946
946
  }
947
947
  } catch (j) {
948
948
  alert(JSON.stringify(j));
@@ -965,7 +965,7 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
965
965
  u === "column" && P.fieldsetColumn
966
966
  ),
967
967
  children: [
968
- y ? /* @__PURE__ */ o.jsx("legend", { className: P.legend, children: y }) : null,
968
+ x ? /* @__PURE__ */ o.jsx("legend", { className: P.legend, children: x }) : null,
969
969
  /* @__PURE__ */ o.jsx(
970
970
  "div",
971
971
  {
@@ -974,7 +974,7 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
974
974
  u === "column" ? P.optionsColumn : P.optionsRow
975
975
  ),
976
976
  children: _.map((p) => /* @__PURE__ */ o.jsx(
977
- Oe,
977
+ $e,
978
978
  {
979
979
  name: r,
980
980
  value: p.value,
@@ -1001,7 +1001,7 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
1001
1001
  items: l,
1002
1002
  itemActive: i,
1003
1003
  darkMode: n
1004
- }) => /* @__PURE__ */ o.jsx($e, { items: l, itemActive: i, darkMode: n }), is = ({
1004
+ }) => /* @__PURE__ */ o.jsx(De, { items: l, itemActive: i, darkMode: n }), is = ({
1005
1005
  userFlow: t,
1006
1006
  pageId: e,
1007
1007
  component: s,
@@ -1015,7 +1015,7 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
1015
1015
  items: e,
1016
1016
  responseKey: s
1017
1017
  }) => {
1018
- const { getNextUI: r } = G(), c = L(
1018
+ const { getNextUI: r } = H(), c = I(
1019
1019
  async ({ actionType: i, hashCode: n, redirectUrl: d }) => {
1020
1020
  var a;
1021
1021
  try {
@@ -1041,25 +1041,25 @@ const et = /* @__PURE__ */ vn(Pn), ts = "_fieldset_1xrth_1", es = "_fieldsetColu
1041
1041
  }
1042
1042
  },
1043
1043
  []
1044
- ), l = O(() => e == null ? void 0 : e.map((i) => ({
1044
+ ), l = D(() => e == null ? void 0 : e.map((i) => ({
1045
1045
  title: i == null ? void 0 : i.title,
1046
1046
  component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(i) })
1047
1047
  })), []);
1048
- return /* @__PURE__ */ o.jsx(De, { items: l });
1048
+ return /* @__PURE__ */ o.jsx(qe, { items: l });
1049
1049
  };
1050
- function pt(t, e) {
1051
- const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: c } = G();
1052
- return L(
1050
+ function xt(t, e) {
1051
+ const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: c } = H();
1052
+ return I(
1053
1053
  async (l) => {
1054
- var h, f, x, b;
1054
+ var h, f, y, b;
1055
1055
  const { responseKey: i, actionType: n, dataSource: d, redirectUrl: a, dependencies: _ } = l, u = (h = v.getState()[t]) == null ? void 0 : h.entries;
1056
- if (!fe(u, _))
1056
+ if (!xe(u, _))
1057
1057
  try {
1058
1058
  const g = {
1059
1059
  ...(f = v.getState()[t]) == null ? void 0 : f.entries,
1060
1060
  [i]: { status: 200 }
1061
1061
  };
1062
- switch (I(t, g), n) {
1062
+ switch (L(t, g), n) {
1063
1063
  case "CLOSE_MODAL":
1064
1064
  It(t, !1);
1065
1065
  break;
@@ -1070,47 +1070,47 @@ function pt(t, e) {
1070
1070
  _t(t, !0);
1071
1071
  break;
1072
1072
  case "GO_TO_NEXT_UI": {
1073
- const y = await s(
1073
+ const x = await s(
1074
1074
  t,
1075
1075
  e,
1076
1076
  g,
1077
1077
  i
1078
1078
  );
1079
- y != null && y.data && K(t, y == null ? void 0 : y.data);
1079
+ x != null && x.data && K(t, x == null ? void 0 : x.data);
1080
1080
  break;
1081
1081
  }
1082
1082
  case "FETCH_AND_GO_TO_NEXT_UI": {
1083
- const y = await c(
1083
+ const x = await c(
1084
1084
  t,
1085
1085
  e,
1086
1086
  g,
1087
1087
  i,
1088
1088
  d
1089
1089
  );
1090
- y != null && y.data && K(t, y == null ? void 0 : y.data);
1090
+ x != null && x.data && K(t, x == null ? void 0 : x.data);
1091
1091
  break;
1092
1092
  }
1093
1093
  case "FETCH_DATA_SOURCE": {
1094
- const y = await r(
1094
+ const x = await r(
1095
1095
  d,
1096
1096
  t,
1097
1097
  !1
1098
1098
  );
1099
- I(t, {
1099
+ L(t, {
1100
1100
  [i]: {
1101
- status: y == null ? void 0 : y.status,
1102
- content: y == null ? void 0 : y.data
1101
+ status: x == null ? void 0 : x.status,
1102
+ content: x == null ? void 0 : x.data
1103
1103
  }
1104
1104
  });
1105
1105
  break;
1106
1106
  }
1107
1107
  case "GET_DATA_SOURCE": {
1108
- const y = await s(
1108
+ const x = await s(
1109
1109
  t,
1110
1110
  e,
1111
1111
  g,
1112
1112
  i
1113
- ), m = (x = y == null ? void 0 : y.data) == null ? void 0 : x.content;
1113
+ ), m = (y = x == null ? void 0 : x.data) == null ? void 0 : y.content;
1114
1114
  if ((m == null ? void 0 : m.type) !== "fetch")
1115
1115
  break;
1116
1116
  const p = m == null ? void 0 : m.dataSource, C = await r(p, t, !1), j = {
@@ -1120,14 +1120,14 @@ function pt(t, e) {
1120
1120
  content: C == null ? void 0 : C.data
1121
1121
  }
1122
1122
  };
1123
- I(t, j);
1124
- const N = await s(
1123
+ L(t, j);
1124
+ const w = await s(
1125
1125
  t,
1126
1126
  e,
1127
1127
  j,
1128
1128
  i
1129
1129
  );
1130
- N != null && N.data && K(t, N == null ? void 0 : N.data);
1130
+ w != null && w.data && K(t, w == null ? void 0 : w.data);
1131
1131
  break;
1132
1132
  }
1133
1133
  case "REDIRECT":
@@ -1162,17 +1162,17 @@ const ds = (t) => {
1162
1162
  dependencies: a,
1163
1163
  onClick: _,
1164
1164
  ...u
1165
- } = t, h = pt(e, s), { disabled: f } = M(
1165
+ } = t, h = xt(e, s), { disabled: f } = B(
1166
1166
  e,
1167
1167
  a
1168
- ), x = {
1168
+ ), y = {
1169
1169
  ...u,
1170
1170
  children: i ?? l
1171
- }, b = (x == null ? void 0 : x.disabled) ?? f, [g, y] = $(!1), m = ut(!1), p = L(async () => {
1171
+ }, b = (y == null ? void 0 : y.disabled) ?? f, [g, x] = R(!1), m = ut(!1), p = I(async () => {
1172
1172
  if (m.current)
1173
1173
  return;
1174
1174
  const C = c === "FETCH_DATA_SOURCE";
1175
- C && (m.current = !0, y(!0));
1175
+ C && (m.current = !0, x(!0));
1176
1176
  try {
1177
1177
  await h({
1178
1178
  responseKey: r,
@@ -1184,7 +1184,7 @@ const ds = (t) => {
1184
1184
  } catch (j) {
1185
1185
  console.error("[ButtonNotFront] Action failed:", j);
1186
1186
  } finally {
1187
- C && (m.current = !1, y(!1));
1187
+ C && (m.current = !1, x(!1));
1188
1188
  }
1189
1189
  }, [
1190
1190
  c,
@@ -1195,10 +1195,10 @@ const ds = (t) => {
1195
1195
  h
1196
1196
  ]);
1197
1197
  return /* @__PURE__ */ o.jsx(
1198
- qe,
1198
+ Le,
1199
1199
  {
1200
- ...x,
1201
- loading: x.loading || g,
1200
+ ...y,
1201
+ loading: y.loading || g,
1202
1202
  disabled: b,
1203
1203
  onClick: () => !b && !g && (_ ?? p)()
1204
1204
  }
@@ -1216,7 +1216,7 @@ const ds = (t) => {
1216
1216
  content: n,
1217
1217
  actionContent: d,
1218
1218
  ...a
1219
- } = t, { disabled: _ } = M(
1219
+ } = t, { disabled: _ } = B(
1220
1220
  e,
1221
1221
  i
1222
1222
  ), u = E(
@@ -1227,19 +1227,19 @@ const ds = (t) => {
1227
1227
  e,
1228
1228
  s,
1229
1229
  d && d.length > 0 ? d : null
1230
- ), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: At.slotStack, children: u.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `card-accordion-body-${c}-${y}`)) }) : void 0, x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: At.slotStack, children: h.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `card-accordion-actions-${c}-${y}`)) }) : void 0, b = a.disabled || _;
1230
+ ), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: At.slotStack, children: u.map((g, x) => /* @__PURE__ */ o.jsx(A, { children: g }, `card-accordion-body-${c}-${x}`)) }) : void 0, y = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: At.slotStack, children: h.map((g, x) => /* @__PURE__ */ o.jsx(A, { children: g }, `card-accordion-actions-${c}-${x}`)) }) : void 0, b = a.disabled || _;
1231
1231
  return /* @__PURE__ */ o.jsx(
1232
1232
  Ie,
1233
1233
  {
1234
1234
  ...a,
1235
1235
  disabled: b,
1236
- actionContent: x,
1236
+ actionContent: y,
1237
1237
  children: f ?? null
1238
1238
  }
1239
1239
  );
1240
1240
  }, hs = "_slotStack_ivk5b_1", fs = {
1241
1241
  slotStack: hs
1242
- }, ys = (t) => {
1242
+ }, xs = (t) => {
1243
1243
  const {
1244
1244
  userFlow: e,
1245
1245
  pageId: s,
@@ -1253,22 +1253,22 @@ const ds = (t) => {
1253
1253
  dataSource: _,
1254
1254
  redirectUrl: u,
1255
1255
  dependencies: h
1256
- } = t, { getNextUI: f, fetchDataSource: x, fetchAndGetNextUI: b } = G(), { disabled: g } = M(
1256
+ } = t, { getNextUI: f, fetchDataSource: y, fetchAndGetNextUI: b } = H(), { disabled: g } = B(
1257
1257
  e,
1258
1258
  h
1259
- ), y = d ?? g, m = E(
1259
+ ), x = d ?? g, m = E(
1260
1260
  e,
1261
1261
  s,
1262
1262
  i && i.length > 0 ? i : null
1263
- ), p = m && m.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: fs.slotStack, children: m.map((j, N) => /* @__PURE__ */ o.jsx(k, { children: j }, `card-body-${c}-${N}`)) }) : null, C = L(async () => {
1264
- var j, N, w;
1265
- if (!(!a || y))
1263
+ ), p = m && m.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: fs.slotStack, children: m.map((j, w) => /* @__PURE__ */ o.jsx(A, { children: j }, `card-body-${c}-${w}`)) }) : null, C = I(async () => {
1264
+ var j, w, N;
1265
+ if (!(!a || x))
1266
1266
  try {
1267
- const S = {
1267
+ const k = {
1268
1268
  ...(j = v.getState()[e]) == null ? void 0 : j.entries,
1269
1269
  [l]: { status: 200 }
1270
1270
  };
1271
- switch (I(e, S), a) {
1271
+ switch (L(e, k), a) {
1272
1272
  case "CLOSE_MODAL":
1273
1273
  It(e, !1);
1274
1274
  break;
@@ -1280,51 +1280,51 @@ const ds = (t) => {
1280
1280
  break;
1281
1281
  case "GO_TO_NEXT_UI":
1282
1282
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
1283
- const q = await f(
1283
+ const $ = await f(
1284
1284
  e,
1285
1285
  s,
1286
- S,
1286
+ k,
1287
1287
  l,
1288
1288
  a === "GO_TO_NEXT_UI"
1289
1289
  );
1290
- q != null && q.data && K(e, q == null ? void 0 : q.data);
1290
+ $ != null && $.data && K(e, $ == null ? void 0 : $.data);
1291
1291
  break;
1292
1292
  }
1293
1293
  case "FETCH_AND_GO_TO_NEXT_UI": {
1294
- const D = await b(
1294
+ const O = await b(
1295
1295
  e,
1296
1296
  s,
1297
- S,
1297
+ k,
1298
1298
  l,
1299
1299
  _
1300
1300
  );
1301
- D != null && D.data && K(e, D == null ? void 0 : D.data);
1301
+ O != null && O.data && K(e, O == null ? void 0 : O.data);
1302
1302
  break;
1303
1303
  }
1304
1304
  case "GET_DATA_SOURCE": {
1305
- const D = await f(
1305
+ const O = await f(
1306
1306
  e,
1307
1307
  s,
1308
- S,
1308
+ k,
1309
1309
  l
1310
- ), q = (N = D == null ? void 0 : D.data) == null ? void 0 : N.content;
1311
- if ((q == null ? void 0 : q.type) !== "fetch")
1310
+ ), $ = (w = O == null ? void 0 : O.data) == null ? void 0 : w.content;
1311
+ if (($ == null ? void 0 : $.type) !== "fetch")
1312
1312
  break;
1313
- const Q = q == null ? void 0 : q.dataSource, V = await x(Q, e, !1), T = {
1314
- ...(w = v.getState()[e]) == null ? void 0 : w.entries,
1313
+ const Q = $ == null ? void 0 : $.dataSource, V = await y(Q, e, !1), S = {
1314
+ ...(N = v.getState()[e]) == null ? void 0 : N.entries,
1315
1315
  [l]: {
1316
1316
  status: V == null ? void 0 : V.status,
1317
1317
  content: V == null ? void 0 : V.data
1318
1318
  }
1319
1319
  };
1320
- I(e, T);
1321
- const H = await f(
1320
+ L(e, S);
1321
+ const G = await f(
1322
1322
  e,
1323
1323
  s,
1324
- T,
1324
+ S,
1325
1325
  l
1326
1326
  );
1327
- H != null && H.data && K(e, H == null ? void 0 : H.data);
1327
+ G != null && G.data && K(e, G == null ? void 0 : G.data);
1328
1328
  break;
1329
1329
  }
1330
1330
  case "REDIRECT":
@@ -1333,15 +1333,15 @@ const ds = (t) => {
1333
1333
  default:
1334
1334
  console.warn(`Unhandled card actionType: ${a}`);
1335
1335
  }
1336
- } catch (S) {
1337
- alert(JSON.stringify(S));
1336
+ } catch (k) {
1337
+ alert(JSON.stringify(k));
1338
1338
  }
1339
1339
  }, [
1340
1340
  a,
1341
1341
  _,
1342
- y,
1343
- b,
1344
1342
  x,
1343
+ b,
1344
+ y,
1345
1345
  f,
1346
1346
  s,
1347
1347
  u,
@@ -1349,15 +1349,15 @@ const ds = (t) => {
1349
1349
  e
1350
1350
  ]);
1351
1351
  return /* @__PURE__ */ o.jsx(
1352
- Le,
1352
+ Ke,
1353
1353
  {
1354
1354
  colorId: n,
1355
- disabled: y,
1356
- onClick: a && !y ? () => void C() : void 0,
1355
+ disabled: x,
1356
+ onClick: a && !x ? () => void C() : void 0,
1357
1357
  children: p
1358
1358
  }
1359
1359
  );
1360
- }, xs = (t) => {
1360
+ }, ys = (t) => {
1361
1361
  const {
1362
1362
  userFlow: e,
1363
1363
  pageId: s,
@@ -1375,17 +1375,17 @@ const ds = (t) => {
1375
1375
  let u;
1376
1376
  return _ && _.length > 0 ? u = /* @__PURE__ */ o.jsxs("div", { className: At.slotStack, children: [
1377
1377
  n ? /* @__PURE__ */ o.jsx(ae, { type: "sm", children: n }) : null,
1378
- _.map((h, f) => /* @__PURE__ */ o.jsx(k, { children: h }, `card-notification-body-${c}-${f}`))
1379
- ] }) : u = (typeof i == "string" ? i : void 0) ?? n, /* @__PURE__ */ o.jsx(xt, { ...d, children: u });
1378
+ _.map((h, f) => /* @__PURE__ */ o.jsx(A, { children: h }, `card-notification-body-${c}-${f}`))
1379
+ ] }) : u = (typeof i == "string" ? i : void 0) ?? n, /* @__PURE__ */ o.jsx(mt, { ...d, children: u });
1380
1380
  }, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, ms = (t, e) => {
1381
1381
  if (!e || t == null)
1382
1382
  return null;
1383
- const { extractionJsonPath: s, injectionJsonPath: r } = e, c = B.value(t, s);
1383
+ const { extractionJsonPath: s, injectionJsonPath: r } = e, c = M.value(t, s);
1384
1384
  if (c == null)
1385
1385
  return null;
1386
1386
  try {
1387
1387
  const l = {};
1388
- return B.value(l, r, c), l;
1388
+ return M.value(l, r, c), l;
1389
1389
  } catch (l) {
1390
1390
  return console.warn(
1391
1391
  "[buildCursorPayload] invalid injectionJsonPath:",
@@ -1393,28 +1393,28 @@ const ds = (t) => {
1393
1393
  l
1394
1394
  ), null;
1395
1395
  }
1396
- }, ge = (t, e, s, r) => {
1397
- const c = B.query(t, e), l = c == null ? void 0 : c.map((_) => {
1396
+ }, pe = (t, e, s, r) => {
1397
+ const c = M.query(t, e), l = c == null ? void 0 : c.map((_) => {
1398
1398
  var u, h;
1399
1399
  if (s) {
1400
1400
  const f = {};
1401
- for (const [x, b] of Object.entries(s))
1401
+ for (const [y, b] of Object.entries(s))
1402
1402
  if (typeof b == "object" && "path" in b) {
1403
- const g = b, y = (u = B.query(_, g.path)) == null ? void 0 : u[0];
1404
- g.translations && String(y) in g.translations ? f[x] = Et(
1405
- g.translations[String(y)]
1406
- ) : f[x] = Et(y);
1403
+ const g = b, x = (u = M.query(_, g.path)) == null ? void 0 : u[0];
1404
+ g.translations && String(x) in g.translations ? f[y] = Et(
1405
+ g.translations[String(x)]
1406
+ ) : f[y] = Et(x);
1407
1407
  } else {
1408
1408
  const g = b;
1409
- f[x] = Et((h = B.query(_, g)) == null ? void 0 : h[0]);
1409
+ f[y] = Et((h = M.query(_, g)) == null ? void 0 : h[0]);
1410
1410
  }
1411
1411
  return f;
1412
1412
  } else
1413
1413
  return _;
1414
- }), i = B.value(t, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? c.length, n = B.value(t, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = r != null && r.hasMore ? !!B.value(t, r.hasMore) : void 0, a = {
1414
+ }), i = M.value(t, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? c.length, n = M.value(t, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = r != null && r.hasMore ? !!M.value(t, r.hasMore) : void 0, a = {
1415
1415
  size: i,
1416
1416
  total: n,
1417
- totalPages: r != null && r.totalPages ? B.value(
1417
+ totalPages: r != null && r.totalPages ? M.value(
1418
1418
  t,
1419
1419
  (r == null ? void 0 : r.totalPages) ?? "$.meta.totalPages"
1420
1420
  ) : i > 0 ? Math.ceil(n / i) : 0,
@@ -1430,16 +1430,16 @@ const ds = (t) => {
1430
1430
  children: l
1431
1431
  }) => {
1432
1432
  const i = e ?? nt, n = s ? { layout: s } : {};
1433
- return t ? /* @__PURE__ */ o.jsx(c, { width: t, height: i, data: r, ...n, children: l }) : /* @__PURE__ */ o.jsx(Ot, { width: "100%", height: i, children: /* @__PURE__ */ o.jsx(c, { data: r, ...n, children: l }) });
1433
+ return t ? /* @__PURE__ */ o.jsx(c, { width: t, height: i, data: r, ...n, children: l }) : /* @__PURE__ */ o.jsx($t, { width: "100%", height: i, children: /* @__PURE__ */ o.jsx(c, { data: r, ...n, children: l }) });
1434
1434
  }, J = ({ withPadding: t = !1 }) => {
1435
- const e = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: A.labelColor }, children: s });
1435
+ const e = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: T.labelColor }, children: s });
1436
1436
  return /* @__PURE__ */ o.jsx(
1437
1437
  an,
1438
1438
  {
1439
1439
  formatter: e,
1440
1440
  wrapperStyle: {
1441
- fontSize: A.fontSize,
1442
- fontFamily: A.fontFamily,
1441
+ fontSize: T.fontSize,
1442
+ fontFamily: T.fontFamily,
1443
1443
  padding: t ? "1rem 0" : "0"
1444
1444
  }
1445
1445
  }
@@ -1455,9 +1455,9 @@ const ds = (t) => {
1455
1455
  if (!t || !e || !e.length)
1456
1456
  return null;
1457
1457
  const l = {
1458
- backgroundColor: A.tooltipBg,
1459
- borderRadius: A.tooltipBorderRadius,
1460
- color: A.tooltipColor,
1458
+ backgroundColor: T.tooltipBg,
1459
+ borderRadius: T.tooltipBorderRadius,
1460
+ color: T.tooltipColor,
1461
1461
  padding: "8px 12px",
1462
1462
  border: "1px solid #e5e7eb"
1463
1463
  };
@@ -1500,8 +1500,8 @@ const ds = (t) => {
1500
1500
  ...s ? { type: s } : {},
1501
1501
  hide: e,
1502
1502
  tick: {
1503
- fill: A.labelColor,
1504
- fontSize: A.fontSize
1503
+ fill: T.labelColor,
1504
+ fontSize: T.fontSize
1505
1505
  }
1506
1506
  }
1507
1507
  ), Y = ({
@@ -1519,8 +1519,8 @@ const ds = (t) => {
1519
1519
  ...r ? { yAxisId: r } : {},
1520
1520
  ...c ? { orientation: c } : {},
1521
1521
  tick: {
1522
- fill: A.labelColor,
1523
- fontSize: A.fontSize
1522
+ fill: T.labelColor,
1523
+ fontSize: T.fontSize
1524
1524
  },
1525
1525
  tickMargin: 4
1526
1526
  }
@@ -1533,35 +1533,35 @@ const ds = (t) => {
1533
1533
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1534
1534
  /* @__PURE__ */ o.jsx(J, {}),
1535
1535
  r.map((i, n) => /* @__PURE__ */ o.jsx(
1536
- ie,
1536
+ le,
1537
1537
  {
1538
1538
  type: "monotone",
1539
1539
  dataKey: i,
1540
- stroke: R[n % R.length],
1541
- fill: R[n % R.length]
1540
+ stroke: q[n % q.length],
1541
+ fill: q[n % q.length]
1542
1542
  },
1543
1543
  i
1544
1544
  ))
1545
1545
  ] });
1546
1546
  }, bs = (t) => {
1547
1547
  const { data: e, yKeys: s, xKey: r, tooltipKey: c, width: l } = t;
1548
- return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: $t, children: [
1548
+ return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: Dt, children: [
1549
1549
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1550
1550
  /* @__PURE__ */ o.jsx(ot, { dataKey: r }),
1551
1551
  /* @__PURE__ */ o.jsx(Y, {}),
1552
1552
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1553
1553
  /* @__PURE__ */ o.jsx(J, {}),
1554
1554
  s.map((i, n) => /* @__PURE__ */ o.jsx(
1555
- gt,
1555
+ pt,
1556
1556
  {
1557
1557
  dataKey: i,
1558
- fill: R[n % R.length]
1558
+ fill: q[n % q.length]
1559
1559
  },
1560
1560
  i
1561
1561
  ))
1562
1562
  ] });
1563
1563
  };
1564
- var pe = { NODE_ENV: "production" };
1564
+ var be = { NODE_ENV: "production" };
1565
1565
  const js = (t, e) => {
1566
1566
  if (e != null && e.length)
1567
1567
  return e;
@@ -1573,12 +1573,12 @@ const js = (t, e) => {
1573
1573
  orientation: c === 1 ? "right" : "left"
1574
1574
  }));
1575
1575
  }, Cs = (t, e) => {
1576
- !t.type && pe.NODE_ENV;
1577
- const s = t.color ?? R[e % R.length], r = t.label ?? t.key, c = t.yAxisId ? { yAxisId: t.yAxisId } : {};
1576
+ !t.type && be.NODE_ENV;
1577
+ const s = t.color ?? q[e % q.length], r = t.label ?? t.key, c = t.yAxisId ? { yAxisId: t.yAxisId } : {};
1578
1578
  switch (t.type) {
1579
1579
  case "area":
1580
1580
  return /* @__PURE__ */ o.jsx(
1581
- ie,
1581
+ le,
1582
1582
  {
1583
1583
  dataKey: t.key,
1584
1584
  name: r,
@@ -1592,7 +1592,7 @@ const js = (t, e) => {
1592
1592
  );
1593
1593
  case "line":
1594
1594
  return /* @__PURE__ */ o.jsx(
1595
- le,
1595
+ de,
1596
1596
  {
1597
1597
  dataKey: t.key,
1598
1598
  name: r,
@@ -1606,7 +1606,7 @@ const js = (t, e) => {
1606
1606
  );
1607
1607
  case "bar":
1608
1608
  return /* @__PURE__ */ o.jsx(
1609
- gt,
1609
+ pt,
1610
1610
  {
1611
1611
  dataKey: t.key,
1612
1612
  name: r,
@@ -1620,7 +1620,7 @@ const js = (t, e) => {
1620
1620
  default:
1621
1621
  return null;
1622
1622
  }
1623
- }, Ns = (t) => {
1623
+ }, ws = (t) => {
1624
1624
  const {
1625
1625
  data: e,
1626
1626
  xKey: s,
@@ -1630,7 +1630,7 @@ const js = (t, e) => {
1630
1630
  showLegend: i = !0,
1631
1631
  yAxes: n
1632
1632
  } = t;
1633
- !r.length && pe.NODE_ENV;
1633
+ !r.length && be.NODE_ENV;
1634
1634
  const d = js(r, n);
1635
1635
  return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: _n, children: [
1636
1636
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
@@ -1647,7 +1647,7 @@ const js = (t, e) => {
1647
1647
  i && /* @__PURE__ */ o.jsx(J, {}),
1648
1648
  r.map((a, _) => Cs(a, _))
1649
1649
  ] });
1650
- }, ws = "55%", vs = 120, Es = (t) => (e) => {
1650
+ }, Ns = "55%", vs = 120, Es = (t) => (e) => {
1651
1651
  const s = Math.PI / 180, {
1652
1652
  cx: r = 0,
1653
1653
  cy: c = 0,
@@ -1656,11 +1656,11 @@ const js = (t, e) => {
1656
1656
  outerRadius: n = 0,
1657
1657
  startAngle: d = 0,
1658
1658
  endAngle: a = 0,
1659
- fill: _ = R[0],
1659
+ fill: _ = q[0],
1660
1660
  payload: u,
1661
1661
  percent: h = 0,
1662
1662
  value: f = 0
1663
- } = e, x = Math.sin(-s * l), b = Math.cos(-s * l), g = r + (n + 10) * b, y = c + (n + 10) * x, m = r + (n + 30) * b, p = c + (n + 30) * x, C = m + (b >= 0 ? 1 : -1) * 22, j = p, N = b >= 0 ? "start" : "end", w = u, S = String((w == null ? void 0 : w[t]) ?? "");
1663
+ } = e, y = Math.sin(-s * l), b = Math.cos(-s * l), g = r + (n + 10) * b, x = c + (n + 10) * y, m = r + (n + 30) * b, p = c + (n + 30) * y, C = m + (b >= 0 ? 1 : -1) * 22, j = p, w = b >= 0 ? "start" : "end", N = u, k = String((N == null ? void 0 : N[t]) ?? "");
1664
1664
  return /* @__PURE__ */ o.jsxs("g", { children: [
1665
1665
  /* @__PURE__ */ o.jsx(
1666
1666
  "text",
@@ -1669,14 +1669,14 @@ const js = (t, e) => {
1669
1669
  y: c,
1670
1670
  dy: 8,
1671
1671
  textAnchor: "middle",
1672
- fill: A.labelColor,
1673
- fontSize: A.fontSize + 2,
1674
- fontFamily: A.fontFamily,
1675
- children: S
1672
+ fill: T.labelColor,
1673
+ fontSize: T.fontSize + 2,
1674
+ fontFamily: T.fontFamily,
1675
+ children: k
1676
1676
  }
1677
1677
  ),
1678
1678
  /* @__PURE__ */ o.jsx(
1679
- Mt,
1679
+ Gt,
1680
1680
  {
1681
1681
  cx: r,
1682
1682
  cy: c,
@@ -1688,7 +1688,7 @@ const js = (t, e) => {
1688
1688
  }
1689
1689
  ),
1690
1690
  /* @__PURE__ */ o.jsx(
1691
- Mt,
1691
+ Gt,
1692
1692
  {
1693
1693
  cx: r,
1694
1694
  cy: c,
@@ -1702,7 +1702,7 @@ const js = (t, e) => {
1702
1702
  /* @__PURE__ */ o.jsx(
1703
1703
  "path",
1704
1704
  {
1705
- d: `M${g},${y}L${m},${p}L${C},${j}`,
1705
+ d: `M${g},${x}L${m},${p}L${C},${j}`,
1706
1706
  stroke: _,
1707
1707
  fill: "none"
1708
1708
  }
@@ -1713,10 +1713,10 @@ const js = (t, e) => {
1713
1713
  {
1714
1714
  x: C + (b >= 0 ? 1 : -1) * 12,
1715
1715
  y: j,
1716
- textAnchor: N,
1717
- fill: A.labelColor,
1718
- fontSize: A.fontSize + 2,
1719
- fontFamily: A.fontFamily,
1716
+ textAnchor: w,
1717
+ fill: T.labelColor,
1718
+ fontSize: T.fontSize + 2,
1719
+ fontFamily: T.fontFamily,
1720
1720
  children: f
1721
1721
  }
1722
1722
  ),
@@ -1726,10 +1726,10 @@ const js = (t, e) => {
1726
1726
  x: C + (b >= 0 ? 1 : -1) * 12,
1727
1727
  y: j,
1728
1728
  dy: 18,
1729
- textAnchor: N,
1730
- fill: A.labelColorMuted,
1731
- fontSize: A.fontSize,
1732
- fontFamily: A.fontFamily,
1729
+ textAnchor: w,
1730
+ fill: T.labelColorMuted,
1731
+ fontSize: T.fontSize,
1732
+ fontFamily: T.fontFamily,
1733
1733
  children: `(${(h * 100).toFixed(0)}%)`
1734
1734
  }
1735
1735
  )
@@ -1740,13 +1740,13 @@ const js = (t, e) => {
1740
1740
  xKey: s,
1741
1741
  yKeys: r,
1742
1742
  tooltipKey: c,
1743
- innerRadius: l = ws,
1743
+ innerRadius: l = Ns,
1744
1744
  outerRadius: i = vs,
1745
1745
  activeShape: n = !0,
1746
1746
  defaultIndex: d,
1747
1747
  showLegend: a = !0
1748
1748
  } = t, _ = r[0];
1749
- return /* @__PURE__ */ o.jsx(Ot, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(de, { children: [
1749
+ return /* @__PURE__ */ o.jsx($t, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(_e, { children: [
1750
1750
  /* @__PURE__ */ o.jsx(
1751
1751
  W,
1752
1752
  {
@@ -1757,7 +1757,7 @@ const js = (t, e) => {
1757
1757
  ),
1758
1758
  a && /* @__PURE__ */ o.jsx(J, {}),
1759
1759
  /* @__PURE__ */ o.jsx(
1760
- _e,
1760
+ ue,
1761
1761
  {
1762
1762
  data: e,
1763
1763
  dataKey: _,
@@ -1768,9 +1768,9 @@ const js = (t, e) => {
1768
1768
  outerRadius: i,
1769
1769
  activeShape: n ? Es(s) : void 0,
1770
1770
  children: e.map((u, h) => /* @__PURE__ */ o.jsx(
1771
- ue,
1771
+ he,
1772
1772
  {
1773
- fill: R[h % R.length]
1773
+ fill: q[h % q.length]
1774
1774
  },
1775
1775
  `cell-${h}`
1776
1776
  ))
@@ -1778,10 +1778,10 @@ const js = (t, e) => {
1778
1778
  )
1779
1779
  ] }) });
1780
1780
  };
1781
- function Ss(t, e, s = be) {
1781
+ function Ss(t, e, s = je) {
1782
1782
  return t <= 0 ? 0 : e <= 0 ? t : Math.max(t, e * s);
1783
1783
  }
1784
- function Ts(t, e = Is, s) {
1784
+ function Ts(t, e = Ls, s) {
1785
1785
  return s !== void 0 ? s : t <= 0 ? nt : Math.max(nt, t * e);
1786
1786
  }
1787
1787
  function As(t, e, s) {
@@ -1792,7 +1792,7 @@ function As(t, e, s) {
1792
1792
  return Math.max(c, i.length);
1793
1793
  }, 0);
1794
1794
  return Math.max(
1795
- Ls,
1795
+ Is,
1796
1796
  r * Ks
1797
1797
  );
1798
1798
  }
@@ -1819,19 +1819,19 @@ const Os = (t) => {
1819
1819
  height: u,
1820
1820
  layout: "vertical",
1821
1821
  data: e,
1822
- Chart: $t,
1822
+ Chart: Dt,
1823
1823
  children: [
1824
1824
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3", horizontal: !1 }),
1825
1825
  /* @__PURE__ */ o.jsx(ot, { type: "number" }),
1826
1826
  /* @__PURE__ */ o.jsx(Y, { type: "category", dataKey: r, width: h }),
1827
1827
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c, tooltipCoverage: n }),
1828
1828
  d && /* @__PURE__ */ o.jsx(J, {}),
1829
- s.map((f, x) => /* @__PURE__ */ o.jsx(
1830
- gt,
1829
+ s.map((f, y) => /* @__PURE__ */ o.jsx(
1830
+ pt,
1831
1831
  {
1832
1832
  dataKey: f,
1833
1833
  name: (a == null ? void 0 : a[f]) ?? f,
1834
- fill: R[x % R.length]
1834
+ fill: q[y % q.length]
1835
1835
  },
1836
1836
  f
1837
1837
  ))
@@ -1847,11 +1847,11 @@ const Os = (t) => {
1847
1847
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1848
1848
  /* @__PURE__ */ o.jsx(J, {}),
1849
1849
  r.map((i, n) => /* @__PURE__ */ o.jsx(
1850
- le,
1850
+ de,
1851
1851
  {
1852
1852
  type: "monotone",
1853
1853
  dataKey: i,
1854
- stroke: R[n % R.length],
1854
+ stroke: q[n % q.length],
1855
1855
  strokeWidth: 2,
1856
1856
  dot: !1
1857
1857
  },
@@ -1859,22 +1859,22 @@ const Os = (t) => {
1859
1859
  ))
1860
1860
  ] });
1861
1861
  };
1862
- var Rs = { NODE_ENV: "production" };
1863
- const Ds = (t) => {
1862
+ var Ds = { NODE_ENV: "production" };
1863
+ const Rs = (t) => {
1864
1864
  const { data: e, xKey: s, series: r = [], tooltipKey: c, width: l } = t;
1865
- return !r.length && Rs.NODE_ENV, /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: $t, children: [
1865
+ return !r.length && Ds.NODE_ENV, /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: Dt, children: [
1866
1866
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1867
1867
  /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
1868
1868
  /* @__PURE__ */ o.jsx(Y, {}),
1869
1869
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1870
1870
  /* @__PURE__ */ o.jsx(J, {}),
1871
1871
  r.map((i, n) => /* @__PURE__ */ o.jsx(
1872
- gt,
1872
+ pt,
1873
1873
  {
1874
1874
  dataKey: i.key,
1875
1875
  name: i.label ?? i.key,
1876
1876
  stackId: i.stackId,
1877
- fill: i.color ?? R[n % R.length]
1877
+ fill: i.color ?? q[n % q.length]
1878
1878
  },
1879
1879
  i.key
1880
1880
  ))
@@ -1888,25 +1888,25 @@ const Ds = (t) => {
1888
1888
  outerRadius: _,
1889
1889
  value: u
1890
1890
  }) => {
1891
- const h = Math.PI / 180, f = 25 + a + (_ - a), x = i + f * Math.cos(-(d ?? 0) * h), b = n + f * Math.sin(-(d ?? 0) * h);
1891
+ const h = Math.PI / 180, f = 25 + a + (_ - a), y = i + f * Math.cos(-(d ?? 0) * h), b = n + f * Math.sin(-(d ?? 0) * h);
1892
1892
  return /* @__PURE__ */ o.jsx(
1893
1893
  "text",
1894
1894
  {
1895
- x,
1895
+ x: y,
1896
1896
  y: b,
1897
- fill: A.labelColor,
1898
- color: A.labelColor,
1897
+ fill: T.labelColor,
1898
+ color: T.labelColor,
1899
1899
  textAnchor: "middle",
1900
1900
  dominantBaseline: "central",
1901
1901
  children: u
1902
1902
  }
1903
1903
  );
1904
1904
  };
1905
- return /* @__PURE__ */ o.jsx(Ot, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(de, { children: [
1905
+ return /* @__PURE__ */ o.jsx($t, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(_e, { children: [
1906
1906
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1907
1907
  /* @__PURE__ */ o.jsx(J, {}),
1908
1908
  /* @__PURE__ */ o.jsx(
1909
- _e,
1909
+ ue,
1910
1910
  {
1911
1911
  data: e,
1912
1912
  dataKey: r[0],
@@ -1914,16 +1914,16 @@ const Ds = (t) => {
1914
1914
  label: l,
1915
1915
  outerRadius: 120,
1916
1916
  children: e.map((i, n) => /* @__PURE__ */ o.jsx(
1917
- ue,
1917
+ he,
1918
1918
  {
1919
- fill: R[n % R.length]
1919
+ fill: q[n % q.length]
1920
1920
  },
1921
1921
  `cell-${n}`
1922
1922
  ))
1923
1923
  }
1924
1924
  )
1925
1925
  ] }) });
1926
- }, nt = 400, be = 56, Is = 28, Ls = 100, Ks = 8, Bs = /* @__PURE__ */ new Set([
1926
+ }, nt = 400, je = 56, Ls = 28, Is = 100, Ks = 8, Bs = /* @__PURE__ */ new Set([
1927
1927
  "bar",
1928
1928
  "line",
1929
1929
  "area",
@@ -1932,13 +1932,13 @@ const Ds = (t) => {
1932
1932
  ]), Ms = {
1933
1933
  area: ps,
1934
1934
  bar: bs,
1935
- composed: Ns,
1935
+ composed: ws,
1936
1936
  donut: ks,
1937
1937
  horizontalBar: Os,
1938
1938
  line: $s,
1939
- mixBar: Ds,
1939
+ mixBar: Rs,
1940
1940
  pie: qs
1941
- }, R = [
1941
+ }, q = [
1942
1942
  "var(--color-primitive-palette-1-50)",
1943
1943
  "var(--color-primitive-palette-2-50)",
1944
1944
  "var(--color-primitive-palette-3-50)",
@@ -1956,7 +1956,7 @@ const Ds = (t) => {
1956
1956
  "var(--color-primitive-palette-15-50)",
1957
1957
  "var(--color-primitive-palette-16-50)",
1958
1958
  "var(--color-primitive-palette-17-50)"
1959
- ], A = {
1959
+ ], T = {
1960
1960
  fontFamily: "Roboto, sans-serif",
1961
1961
  fontSize: 12,
1962
1962
  labelColor: "var(--color-neutral-90)",
@@ -1964,15 +1964,15 @@ const Ds = (t) => {
1964
1964
  tooltipBg: "#fff",
1965
1965
  tooltipColor: "#000",
1966
1966
  tooltipBorderRadius: "4px"
1967
- }, Hs = "_chartScrollViewport_sm5hx_1", Gs = "_chartScrollViewport_track_sm5hx_29", Ft = {
1968
- chartScrollViewport: Hs,
1969
- chartScrollViewport_track: Gs
1967
+ }, Gs = "_chartScrollViewport_sm5hx_1", Hs = "_chartScrollViewport_track_sm5hx_29", Pt = {
1968
+ chartScrollViewport: Gs,
1969
+ chartScrollViewport_track: Hs
1970
1970
  }, Us = "Scrollable chart area", Vs = ({
1971
1971
  dataLength: t,
1972
1972
  minCategoryWidth: e,
1973
1973
  children: s
1974
1974
  }) => {
1975
- const r = ut(null), [c, l] = $(0), i = e ?? be;
1975
+ const r = ut(null), [c, l] = R(0), i = e ?? je;
1976
1976
  U(() => {
1977
1977
  const _ = r.current;
1978
1978
  if (!_)
@@ -1988,7 +1988,7 @@ const Ds = (t) => {
1988
1988
  c,
1989
1989
  t,
1990
1990
  i
1991
- ), d = c > 0 && n > c, a = L(
1991
+ ), d = c > 0 && n > c, a = I(
1992
1992
  (_) => {
1993
1993
  const u = r.current;
1994
1994
  if (u)
@@ -2013,7 +2013,7 @@ const Ds = (t) => {
2013
2013
  "div",
2014
2014
  {
2015
2015
  ref: r,
2016
- className: Ft.chartScrollViewport,
2016
+ className: Pt.chartScrollViewport,
2017
2017
  role: d ? "region" : void 0,
2018
2018
  tabIndex: d ? 0 : void 0,
2019
2019
  "aria-label": d ? Us : void 0,
@@ -2021,7 +2021,7 @@ const Ds = (t) => {
2021
2021
  children: /* @__PURE__ */ o.jsx(
2022
2022
  "div",
2023
2023
  {
2024
- className: Ft.chartScrollViewport_track,
2024
+ className: Pt.chartScrollViewport_track,
2025
2025
  style: { width: n, height: nt },
2026
2026
  children: c > 0 ? s(n) : null
2027
2027
  }
@@ -2029,19 +2029,19 @@ const Ds = (t) => {
2029
2029
  }
2030
2030
  );
2031
2031
  }, zs = (t) => {
2032
- const { component: e, userFlow: s, hash: r, responseKey: c, dataSource: l, ...i } = t, n = Ms[i.type], { fetchDataSource: d } = G(), [a, _] = $(!1), [u, h] = $([]), f = async () => {
2033
- var g, y;
2032
+ const { component: e, userFlow: s, hash: r, responseKey: c, dataSource: l, ...i } = t, n = Ms[i.type], { fetchDataSource: d } = H(), [a, _] = R(!1), [u, h] = R([]), f = async () => {
2033
+ var g, x;
2034
2034
  try {
2035
2035
  _(!0);
2036
- const { jsonPathData: m, mapperData: p } = l, C = Lt(
2036
+ const { jsonPathData: m, mapperData: p } = l, C = Kt(
2037
2037
  l,
2038
2038
  1
2039
2039
  ), j = await d(
2040
2040
  C,
2041
2041
  s,
2042
2042
  !1
2043
- ), N = m ? (g = ge(j == null ? void 0 : j.data, m, p)) == null ? void 0 : g.items : (y = j == null ? void 0 : j.data) == null ? void 0 : y.data;
2044
- h(N), _(!1);
2043
+ ), w = m ? (g = pe(j == null ? void 0 : j.data, m, p)) == null ? void 0 : g.items : (x = j == null ? void 0 : j.data) == null ? void 0 : x.data;
2044
+ h(w), _(!1);
2045
2045
  } catch (m) {
2046
2046
  alert(JSON.stringify(m)), _(!1);
2047
2047
  }
@@ -2050,18 +2050,18 @@ const Ds = (t) => {
2050
2050
  n && (l ? f() : h(i.data));
2051
2051
  }, []), !n)
2052
2052
  return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
2053
- const x = {
2053
+ const y = {
2054
2054
  ...i,
2055
2055
  data: u
2056
2056
  };
2057
- return a ? /* @__PURE__ */ o.jsx(oe, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Bs.has(i.type) ? /* @__PURE__ */ o.jsx(
2057
+ return a ? /* @__PURE__ */ o.jsx(oe, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Bs.has(i.type) ? /* @__PURE__ */ o.jsx(
2058
2058
  Vs,
2059
2059
  {
2060
2060
  dataLength: u.length,
2061
2061
  minCategoryWidth: i.minCategoryWidth,
2062
- children: (g) => /* @__PURE__ */ o.jsx(n, { ...x, width: g })
2062
+ children: (g) => /* @__PURE__ */ o.jsx(n, { ...y, width: g })
2063
2063
  }
2064
- ) : /* @__PURE__ */ o.jsx(n, { ...x });
2064
+ ) : /* @__PURE__ */ o.jsx(n, { ...y });
2065
2065
  }, Xs = (t) => {
2066
2066
  const {
2067
2067
  userFlow: e,
@@ -2075,10 +2075,10 @@ const Ds = (t) => {
2075
2075
  ...a
2076
2076
  } = t, _ = {
2077
2077
  ...a
2078
- }, { getNextUI: u } = G(), [h, f] = $(i || !1), { disabled: x } = M(
2078
+ }, { getNextUI: u } = H(), [h, f] = R(i || !1), { disabled: y } = B(
2079
2079
  e,
2080
2080
  d
2081
- ), b = O(() => n && l ? `${l} *` : l ?? "", [l, n]), g = L(async () => {
2081
+ ), b = D(() => n && l ? `${l} *` : l ?? "", [l, n]), g = I(async () => {
2082
2082
  var m;
2083
2083
  try {
2084
2084
  const p = !h;
@@ -2087,17 +2087,17 @@ const Ds = (t) => {
2087
2087
  ...(m = v.getState()[e]) == null ? void 0 : m.entries,
2088
2088
  [r]: p
2089
2089
  };
2090
- switch (I(e, C), c) {
2090
+ switch (L(e, C), c) {
2091
2091
  case "GO_TO_NEXT_UI":
2092
2092
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
2093
- const N = await u(
2093
+ const w = await u(
2094
2094
  e,
2095
2095
  s,
2096
2096
  C,
2097
2097
  r,
2098
2098
  c === "GO_TO_NEXT_UI"
2099
2099
  );
2100
- N != null && N.data && K(e, N == null ? void 0 : N.data);
2100
+ w != null && w.data && K(e, w == null ? void 0 : w.data);
2101
2101
  break;
2102
2102
  }
2103
2103
  default:
@@ -2106,16 +2106,16 @@ const Ds = (t) => {
2106
2106
  } catch (p) {
2107
2107
  console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
2108
2108
  }
2109
- }, [e, s, r, c, h]), y = (_ == null ? void 0 : _.disabled) ?? x;
2109
+ }, [e, s, r, c, h]), x = (_ == null ? void 0 : _.disabled) ?? y;
2110
2110
  return /* @__PURE__ */ o.jsx(
2111
- Ke,
2111
+ Be,
2112
2112
  {
2113
2113
  ..._,
2114
2114
  labelRight: b,
2115
2115
  checked: h,
2116
- disabled: y,
2116
+ disabled: x,
2117
2117
  onChange: () => {
2118
- !y && g();
2118
+ !x && g();
2119
2119
  }
2120
2120
  }
2121
2121
  );
@@ -2139,20 +2139,20 @@ const Ds = (t) => {
2139
2139
  disabled: a,
2140
2140
  showPreview: _,
2141
2141
  height: u = "400px"
2142
- } = t, [h, f] = $(i ?? ""), x = ht.useThemeStore((C) => C.theme.mode), { disabled: b } = M(
2142
+ } = t, [h, f] = R(i ?? ""), y = ht.useThemeStore((C) => C.theme.mode), { disabled: b } = B(
2143
2143
  e,
2144
2144
  d
2145
- ), g = a ?? b, y = {
2145
+ ), g = a ?? b, x = {
2146
2146
  json: Ht(),
2147
2147
  markdown: fn(),
2148
- sql: yn(),
2149
- yaml: xn()
2150
- }, m = O(() => n && r ? `${r} *` : r ?? "", [r, n]), p = (C) => {
2148
+ sql: xn(),
2149
+ yaml: yn()
2150
+ }, m = D(() => n && r ? `${r} *` : r ?? "", [r, n]), p = (C) => {
2151
2151
  f(C);
2152
2152
  const j = {
2153
2153
  [s]: C
2154
2154
  };
2155
- I(e, j);
2155
+ L(e, j);
2156
2156
  };
2157
2157
  return /* @__PURE__ */ o.jsxs("div", { className: tt.codeEditor, children: [
2158
2158
  m && m !== "" && /* @__PURE__ */ o.jsx("label", { className: tt.codeEditor_label, children: m }),
@@ -2164,55 +2164,136 @@ const Ds = (t) => {
2164
2164
  value: h,
2165
2165
  height: u,
2166
2166
  placeholder: l,
2167
- extensions: [y[c] ?? Ht()],
2167
+ extensions: [x[c] ?? Ht()],
2168
2168
  onChange: (C) => p(C),
2169
- theme: x,
2169
+ theme: y,
2170
2170
  editable: !g
2171
2171
  }
2172
2172
  ),
2173
2173
  c === "markdown" && _ && /* @__PURE__ */ o.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ o.jsx(ce, { className: tt.preview_inner, children: h }) })
2174
2174
  ] })
2175
2175
  ] });
2176
- }, tr = "_slotStack_6n2wy_5", Pt = {
2176
+ }, tr = "_slotStack_6n2wy_5", er = {
2177
2177
  slotStack: tr
2178
- }, er = (t) => {
2179
- const {
2180
- userFlow: e,
2181
- pageId: s,
2182
- component: r,
2183
- hash: c,
2184
- responseKey: l,
2185
- content: i,
2186
- topContent: n,
2187
- icon: d,
2188
- headerStatusColor: a,
2189
- ..._
2190
- } = t, u = a ? `palette_${a}_50` : void 0, h = E(
2178
+ };
2179
+ var nr = { NODE_ENV: "production" };
2180
+ const sr = /* @__PURE__ */ new Set([
2181
+ "accordion",
2182
+ "button",
2183
+ "cardAccordion",
2184
+ "checkbox",
2185
+ "dropdownButton",
2186
+ "link",
2187
+ "menu",
2188
+ "radioGroup",
2189
+ "roundButton",
2190
+ "select",
2191
+ "stepper",
2192
+ "switch",
2193
+ "table",
2194
+ "tabs",
2195
+ "textField",
2196
+ "textarea"
2197
+ ]), Ot = (t, e) => {
2198
+ if (t != null && t.length)
2199
+ return /* @__PURE__ */ o.jsx("div", { className: er.slotStack, children: t.map((s, r) => {
2200
+ var c;
2201
+ return /* @__PURE__ */ o.jsx(A, { children: s }, ((c = e == null ? void 0 : e[r]) == null ? void 0 : c.hash) ?? r);
2202
+ }) });
2203
+ }, rr = ({
2204
+ userFlow: t,
2205
+ pageId: e,
2206
+ component: s,
2207
+ hash: r,
2208
+ responseKey: c,
2209
+ content: l,
2210
+ topContent: i,
2211
+ icon: n,
2212
+ headerStatusColor: d,
2213
+ ...a
2214
+ }) => {
2215
+ const _ = d ? `palette_${d}_50` : void 0, u = E(
2216
+ t,
2191
2217
  e,
2192
- s,
2193
- i && i.length > 0 ? i : null
2194
- ), f = E(
2218
+ l != null && l.length ? l : null
2219
+ ), h = E(
2220
+ t,
2195
2221
  e,
2196
- s,
2197
- n && n.length > 0 ? n : null
2198
- ), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Pt.slotStack, children: h.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `data-card-body-${c}-${y}`)) }) : void 0, b = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Pt.slotStack, children: f.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `data-card-top-${c}-${y}`)) }) : void 0;
2222
+ i != null && i.length ? i : null
2223
+ );
2199
2224
  return /* @__PURE__ */ o.jsx(
2200
- Be,
2225
+ ie,
2201
2226
  {
2202
- ..._,
2227
+ ...a,
2228
+ icon: n,
2229
+ headerStatusColor: _,
2230
+ topContent: Ot(h, i),
2231
+ children: Ot(u, l)
2232
+ }
2233
+ );
2234
+ }, ar = ({
2235
+ userFlow: t,
2236
+ pageId: e,
2237
+ responseKey: s,
2238
+ actionType: r,
2239
+ dataSource: c,
2240
+ redirectUrl: l,
2241
+ dependencies: i,
2242
+ content: n,
2243
+ icon: d,
2244
+ ariaLabel: a,
2245
+ description: _,
2246
+ descriptionBottom: u,
2247
+ disabled: h,
2248
+ status: f,
2249
+ headerStyle: y,
2250
+ showBorder: b,
2251
+ borderColor: g,
2252
+ title: x,
2253
+ descriptionTop: m,
2254
+ pillLabel: p
2255
+ }) => {
2256
+ const C = E(
2257
+ t,
2258
+ e,
2259
+ n != null && n.length ? n : null
2260
+ ), j = xt(t, e), { disabled: w } = B(
2261
+ t,
2262
+ i
2263
+ ), N = r ? () => void j({
2264
+ responseKey: s,
2265
+ actionType: r,
2266
+ dataSource: c,
2267
+ redirectUrl: l,
2268
+ dependencies: i
2269
+ }) : void 0, k = h ?? w;
2270
+ N && (n != null && n.some(($) => sr.has($.component))) && nr.NODE_ENV;
2271
+ const O = N ? { onClick: N, disabled: k } : {};
2272
+ return /* @__PURE__ */ o.jsx(
2273
+ ie,
2274
+ {
2275
+ version: "v2",
2276
+ status: f,
2277
+ headerStyle: y,
2278
+ showBorder: b,
2279
+ borderColor: g,
2280
+ title: x,
2281
+ ariaLabel: a,
2282
+ descriptionTop: m,
2283
+ descriptionBottom: u ?? _,
2284
+ pillLabel: p,
2203
2285
  icon: d,
2204
- headerStatusColor: u,
2205
- topContent: b,
2206
- children: x
2286
+ ...O,
2287
+ children: Ot(C, n)
2207
2288
  }
2208
2289
  );
2209
- }, nr = "_dividerNotFront_tze3j_1", sr = {
2210
- dividerNotFront: nr
2211
- }, rr = (t) => /* @__PURE__ */ o.jsx(Me, { ...t, className: sr.dividerNotFront }), ar = "_drawer_13pxo_1", or = "_drawerBody_13pxo_5", cr = "_drawerFooter_13pxo_11", kt = {
2212
- drawer: ar,
2213
- drawerBody: or,
2214
- drawerFooter: cr
2215
- }, ir = ({
2290
+ }, or = (t) => t.version === "v2" ? /* @__PURE__ */ o.jsx(ar, { ...t }) : /* @__PURE__ */ o.jsx(rr, { ...t }), cr = "_dividerNotFront_tze3j_1", ir = {
2291
+ dividerNotFront: cr
2292
+ }, lr = (t) => /* @__PURE__ */ o.jsx(Me, { ...t, className: ir.dividerNotFront }), dr = "_drawer_13pxo_1", _r = "_drawerBody_13pxo_5", ur = "_drawerFooter_13pxo_11", kt = {
2293
+ drawer: dr,
2294
+ drawerBody: _r,
2295
+ drawerFooter: ur
2296
+ }, hr = ({
2216
2297
  userFlow: t,
2217
2298
  pageId: e,
2218
2299
  responseKey: s,
@@ -2222,32 +2303,32 @@ const Ds = (t) => {
2222
2303
  ...i
2223
2304
  }) => {
2224
2305
  const n = v((g) => {
2225
- var y;
2226
- return (y = g[t]) == null ? void 0 : y.isDrawerOpen;
2306
+ var x;
2307
+ return (x = g[t]) == null ? void 0 : x.isDrawerOpen;
2227
2308
  }), d = v((g) => {
2228
- var y;
2229
- return (y = g[t]) == null ? void 0 : y.isLoading;
2309
+ var x;
2310
+ return (x = g[t]) == null ? void 0 : x.isLoading;
2230
2311
  }), a = n && !d, _ = {
2231
2312
  ...i,
2232
2313
  isOpen: a,
2233
2314
  children: null
2234
- }, u = L(() => {
2235
- qt(t), _t(t, !1);
2236
- }, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */ o.jsx(re, { type: "h2", children: r }) : void 0, f = E(t, e, c), x = l ? E(t, e, l) : void 0;
2315
+ }, u = I(() => {
2316
+ Lt(t), _t(t, !1);
2317
+ }, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */ o.jsx(re, { type: "h2", children: r }) : void 0, f = E(t, e, c), y = l ? E(t, e, l) : void 0;
2237
2318
  return /* @__PURE__ */ o.jsx(
2238
- He,
2319
+ Ge,
2239
2320
  {
2240
2321
  ..._,
2241
2322
  className: kt.drawer,
2242
2323
  isOpen: a,
2243
2324
  onClose: u,
2244
2325
  heightGap: 50,
2245
- title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-header-${y}`)) : h }) : void 0,
2246
- children: /* @__PURE__ */ o.jsx("section", { className: kt.drawerBody, children: f.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-body-${y}`)) }),
2247
- footer: x ? /* @__PURE__ */ o.jsx("div", { className: kt.drawerFooter, children: x.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-footer-${y}`)) }) : void 0
2326
+ title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((g, x) => /* @__PURE__ */ o.jsx(A, { children: g }, `drawer-header-${x}`)) : h }) : void 0,
2327
+ children: /* @__PURE__ */ o.jsx("section", { className: kt.drawerBody, children: f.map((g, x) => /* @__PURE__ */ o.jsx(A, { children: g }, `drawer-body-${x}`)) }),
2328
+ footer: y ? /* @__PURE__ */ o.jsx("div", { className: kt.drawerFooter, children: y.map((g, x) => /* @__PURE__ */ o.jsx(A, { children: g }, `drawer-footer-${x}`)) }) : void 0
2248
2329
  }
2249
2330
  );
2250
- }, lr = (t) => {
2331
+ }, fr = (t) => {
2251
2332
  const {
2252
2333
  userFlow: e,
2253
2334
  pageId: s,
@@ -2260,30 +2341,30 @@ const Ds = (t) => {
2260
2341
  variant: a,
2261
2342
  leftIcon: _,
2262
2343
  rightIcon: u
2263
- } = t, h = pt(e, s), f = O(
2264
- () => n.map((x) => ({
2265
- label: x.content ?? x.label ?? "",
2344
+ } = t, h = xt(e, s), f = D(
2345
+ () => n.map((y) => ({
2346
+ label: y.content ?? y.label ?? "",
2266
2347
  onClick: () => {
2267
2348
  h({
2268
- responseKey: x.responseKey,
2269
- actionType: x.actionType,
2270
- dataSource: x.dataSource,
2271
- redirectUrl: x.redirectUrl,
2272
- dependencies: x.dependencies
2349
+ responseKey: y.responseKey,
2350
+ actionType: y.actionType,
2351
+ dataSource: y.dataSource,
2352
+ redirectUrl: y.redirectUrl,
2353
+ dependencies: y.dependencies
2273
2354
  });
2274
2355
  }
2275
2356
  })),
2276
2357
  [n, h]
2277
2358
  );
2278
2359
  return /* @__PURE__ */ o.jsx(
2279
- Ge,
2360
+ He,
2280
2361
  {
2281
2362
  disabled: d,
2282
2363
  variant: a,
2283
2364
  items: f,
2284
- children: /* @__PURE__ */ o.jsxs(k, { children: [
2365
+ children: /* @__PURE__ */ o.jsxs(A, { children: [
2285
2366
  _ ? /* @__PURE__ */ o.jsx(
2286
- Gt,
2367
+ Ut,
2287
2368
  {
2288
2369
  name: _,
2289
2370
  size: "md",
@@ -2292,7 +2373,7 @@ const Ds = (t) => {
2292
2373
  ) : null,
2293
2374
  i,
2294
2375
  u ? /* @__PURE__ */ o.jsx(
2295
- Gt,
2376
+ Ut,
2296
2377
  {
2297
2378
  name: u,
2298
2379
  size: "md",
@@ -2302,10 +2383,10 @@ const Ds = (t) => {
2302
2383
  ] })
2303
2384
  }
2304
2385
  );
2305
- }, dr = "_header_g1eri_1", _r = "_header_content_g1eri_5", te = {
2306
- header: dr,
2307
- header_content: _r
2308
- }, ur = ({ components: t = [] }) => /* @__PURE__ */ o.jsx("section", { className: et(te.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: te.header_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(k, { children: e }, s)) }) }), hr = (t) => {
2386
+ }, xr = "_header_g1eri_1", yr = "_header_content_g1eri_5", te = {
2387
+ header: xr,
2388
+ header_content: yr
2389
+ }, mr = ({ components: t = [] }) => /* @__PURE__ */ o.jsx("section", { className: et(te.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: te.header_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(A, { children: e }, s)) }) }), gr = (t) => {
2309
2390
  const {
2310
2391
  userFlow: e,
2311
2392
  pageId: s,
@@ -2318,21 +2399,21 @@ const Ds = (t) => {
2318
2399
  component: a,
2319
2400
  hash: _,
2320
2401
  ...u
2321
- } = t, { getNextUI: h } = G(), { disabled: f } = M(
2402
+ } = t, { getNextUI: h } = H(), { disabled: f } = B(
2322
2403
  e,
2323
2404
  d
2324
- ), x = c && u ? (() => {
2325
- const { href: y, target: m, download: p, ...C } = u;
2405
+ ), y = c && u ? (() => {
2406
+ const { href: x, target: m, download: p, ...C } = u;
2326
2407
  return C;
2327
- })() : u, b = L(async () => {
2328
- var y;
2408
+ })() : u, b = I(async () => {
2409
+ var x;
2329
2410
  if (c)
2330
2411
  try {
2331
2412
  const m = {
2332
- ...(y = v.getState()[e]) == null ? void 0 : y.entries,
2413
+ ...(x = v.getState()[e]) == null ? void 0 : x.entries,
2333
2414
  [r]: { status: 200 }
2334
2415
  };
2335
- switch (I(e, m), c) {
2416
+ switch (L(e, m), c) {
2336
2417
  case "GO_TO_NEXT_UI": {
2337
2418
  const p = await h(
2338
2419
  e,
@@ -2357,17 +2438,17 @@ const Ds = (t) => {
2357
2438
  } catch (m) {
2358
2439
  alert(JSON.stringify(m));
2359
2440
  }
2360
- }, [c, h, s, i, r, n, e]), g = x.disabled ?? f;
2441
+ }, [c, h, s, i, r, n, e]), g = y.disabled ?? f;
2361
2442
  return /* @__PURE__ */ o.jsx(
2362
2443
  Ue,
2363
2444
  {
2364
- ...x,
2445
+ ...y,
2365
2446
  disabled: g,
2366
2447
  onClick: c ? b : void 0,
2367
2448
  children: l
2368
2449
  }
2369
2450
  );
2370
- }, fr = (t) => {
2451
+ }, pr = (t) => {
2371
2452
  const {
2372
2453
  userFlow: e,
2373
2454
  pageId: s,
@@ -2380,18 +2461,18 @@ const Ds = (t) => {
2380
2461
  listOrigin: a,
2381
2462
  size: _,
2382
2463
  variant: u
2383
- } = t, h = pt(e, s), f = O(
2384
- () => i.map((x) => ({
2385
- icon: x.leftIcon,
2386
- label: x.content ?? x.label ?? "",
2464
+ } = t, h = xt(e, s), f = D(
2465
+ () => i.map((y) => ({
2466
+ icon: y.leftIcon,
2467
+ label: y.content ?? y.label ?? "",
2387
2468
  onClick: (b) => {
2388
2469
  var g;
2389
2470
  (g = b == null ? void 0 : b.preventDefault) == null || g.call(b), h({
2390
- responseKey: x.responseKey,
2391
- actionType: x.actionType,
2392
- dataSource: x.dataSource,
2393
- redirectUrl: x.redirectUrl,
2394
- dependencies: x.dependencies
2471
+ responseKey: y.responseKey,
2472
+ actionType: y.actionType,
2473
+ dataSource: y.dataSource,
2474
+ redirectUrl: y.redirectUrl,
2475
+ dependencies: y.dependencies
2395
2476
  });
2396
2477
  }
2397
2478
  })),
@@ -2408,9 +2489,9 @@ const Ds = (t) => {
2408
2489
  variant: u
2409
2490
  }
2410
2491
  );
2411
- }, yr = "_modalContent_p06ci_1", xr = {
2412
- modalContent: yr
2413
- }, mr = ({
2492
+ }, br = "_modalContent_p06ci_1", jr = {
2493
+ modalContent: br
2494
+ }, Cr = ({
2414
2495
  userFlow: t,
2415
2496
  pageId: e,
2416
2497
  responseKey: s,
@@ -2420,30 +2501,30 @@ const Ds = (t) => {
2420
2501
  headerStatusColor: i,
2421
2502
  ...n
2422
2503
  }) => {
2423
- const d = v((y) => {
2504
+ const d = v((x) => {
2424
2505
  var m;
2425
- return (m = y[t]) == null ? void 0 : m.isModalOpen;
2426
- }), a = v((y) => {
2506
+ return (m = x[t]) == null ? void 0 : m.isModalOpen;
2507
+ }), a = v((x) => {
2427
2508
  var m;
2428
- return (m = y[t]) == null ? void 0 : m.isLoading;
2509
+ return (m = x[t]) == null ? void 0 : m.isLoading;
2429
2510
  }), _ = d && !a, u = {
2430
2511
  ...n
2431
- }, h = (u == null ? void 0 : u.headerStatusColor) ?? i, f = L(() => {
2432
- qt(t), It(t, !1);
2433
- }, [t, s]), x = Array.isArray(r) ? E(t, e, r) : r, b = E(t, e, c), g = E(t, e, l);
2512
+ }, h = (u == null ? void 0 : u.headerStatusColor) ?? i, f = I(() => {
2513
+ Lt(t), It(t, !1);
2514
+ }, [t, s]), y = Array.isArray(r) ? E(t, e, r) : r, b = E(t, e, c), g = E(t, e, l);
2434
2515
  return /* @__PURE__ */ o.jsx(
2435
2516
  ze,
2436
2517
  {
2437
2518
  ...u,
2438
2519
  headerStatusColor: h,
2439
- header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${m}`)) }),
2440
- children: /* @__PURE__ */ o.jsx("section", { className: xr.modalContent, children: b.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${m}`)) }),
2441
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${m}`)) }),
2520
+ header: typeof y == "string" ? y : /* @__PURE__ */ o.jsx(o.Fragment, { children: y.map((x, m) => /* @__PURE__ */ o.jsx(A, { children: x }, `modal-header-${m}`)) }),
2521
+ children: /* @__PURE__ */ o.jsx("section", { className: jr.modalContent, children: b.map((x, m) => /* @__PURE__ */ o.jsx(A, { children: x }, `modal-body-${m}`)) }),
2522
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((x, m) => /* @__PURE__ */ o.jsx(A, { children: x }, `modal-footer-${m}`)) }),
2442
2523
  open: _,
2443
2524
  onClose: f
2444
2525
  }
2445
2526
  );
2446
- }, gr = ({ userFlow: t, pageId: e }) => {
2527
+ }, wr = ({ userFlow: t, pageId: e }) => {
2447
2528
  var l, i;
2448
2529
  const s = bn(t);
2449
2530
  if (!s)
@@ -2459,15 +2540,15 @@ const Ds = (t) => {
2459
2540
  );
2460
2541
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
2461
2542
  const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
2462
- return /* @__PURE__ */ o.jsx(k, { children: n }, a);
2543
+ return /* @__PURE__ */ o.jsx(A, { children: n }, a);
2463
2544
  }) });
2464
- }, pr = [
2545
+ }, Nr = [
2465
2546
  "success",
2466
2547
  "warning",
2467
2548
  "error",
2468
2549
  "info",
2469
2550
  "neutral"
2470
- ], je = {
2551
+ ], Ce = {
2471
2552
  success: {
2472
2553
  color: "success-opacity",
2473
2554
  textColor: "success-60",
@@ -2493,11 +2574,11 @@ const Ds = (t) => {
2493
2574
  textColor: "neutral-70",
2494
2575
  iconColor: "neutral-70"
2495
2576
  }
2496
- }, br = (t) => typeof t == "string" && pr.includes(t), jr = (t) => t != null && t.length ? t.length === 2 && br(t[1]) ? [{ label: String(t[0]), variant: t[1] }] : t.map((e) => ({
2577
+ }, vr = (t) => typeof t == "string" && Nr.includes(t), Er = (t) => t != null && t.length ? t.length === 2 && vr(t[1]) ? [{ label: String(t[0]), variant: t[1] }] : t.map((e) => ({
2497
2578
  label: String(e),
2498
2579
  variant: "neutral"
2499
- })) : [], Cr = (t) => {
2500
- const { content: e, variant: s = "neutral", ...r } = t, c = je[s], l = {
2580
+ })) : [], kr = (t) => {
2581
+ const { content: e, variant: s = "neutral", ...r } = t, c = Ce[s], l = {
2501
2582
  ...r,
2502
2583
  children: e,
2503
2584
  color: (r == null ? void 0 : r.color) ?? c.color,
@@ -2505,10 +2586,10 @@ const Ds = (t) => {
2505
2586
  iconColor: (r == null ? void 0 : r.iconColor) ?? c.iconColor
2506
2587
  };
2507
2588
  return /* @__PURE__ */ o.jsx(St, { ...l });
2508
- }, Nr = (t) => {
2589
+ }, Sr = (t) => {
2509
2590
  const { content: e } = t;
2510
2591
  return /* @__PURE__ */ o.jsx(ce, { children: e });
2511
- }, wr = (t) => {
2592
+ }, Tr = (t) => {
2512
2593
  const {
2513
2594
  userFlow: e,
2514
2595
  pageId: s,
@@ -2518,16 +2599,16 @@ const Ds = (t) => {
2518
2599
  dependencies: i,
2519
2600
  onClick: n,
2520
2601
  ...d
2521
- } = t, a = pt(e, s), { disabled: _ } = M(
2602
+ } = t, a = xt(e, s), { disabled: _ } = B(
2522
2603
  e,
2523
2604
  i
2524
2605
  ), u = {
2525
2606
  ...d
2526
- }, h = (u == null ? void 0 : u.disabled) ?? _, [f, x] = $(!1), b = ut(!1), g = L(async () => {
2607
+ }, h = (u == null ? void 0 : u.disabled) ?? _, [f, y] = R(!1), b = ut(!1), g = I(async () => {
2527
2608
  if (b.current)
2528
2609
  return;
2529
- const y = c === "FETCH_DATA_SOURCE";
2530
- y && (b.current = !0, x(!0));
2610
+ const x = c === "FETCH_DATA_SOURCE";
2611
+ x && (b.current = !0, y(!0));
2531
2612
  try {
2532
2613
  await a({
2533
2614
  responseKey: r,
@@ -2538,7 +2619,7 @@ const Ds = (t) => {
2538
2619
  } catch (m) {
2539
2620
  console.error("[RoundButtonNotFront] Action failed:", m);
2540
2621
  } finally {
2541
- y && (b.current = !1, x(!1));
2622
+ x && (b.current = !1, y(!1));
2542
2623
  }
2543
2624
  }, [c, l, i, r, a]);
2544
2625
  return /* @__PURE__ */ o.jsx(
@@ -2550,8 +2631,8 @@ const Ds = (t) => {
2550
2631
  onClick: () => !h && !f && (n ?? g)()
2551
2632
  }
2552
2633
  );
2553
- }, vr = "_row_1bqj4_1", Er = "_row_column_1bqj4_65", z = {
2554
- row: vr,
2634
+ }, Ar = "_row_1bqj4_1", Or = "_row_column_1bqj4_65", z = {
2635
+ row: Ar,
2555
2636
  "row__gap-none": "_row__gap-none_1bqj4_5",
2556
2637
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
2557
2638
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -2572,7 +2653,7 @@ const Ds = (t) => {
2572
2653
  "row__align-center": "_row__align-center_1bqj4_56",
2573
2654
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
2574
2655
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
2575
- row_column: Er,
2656
+ row_column: Or,
2576
2657
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
2577
2658
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
2578
2659
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -2593,7 +2674,7 @@ const Ds = (t) => {
2593
2674
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
2594
2675
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
2595
2676
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
2596
- }, kr = (t) => {
2677
+ }, $r = (t) => {
2597
2678
  const {
2598
2679
  userFlow: e,
2599
2680
  pageId: s,
@@ -2652,7 +2733,7 @@ const Ds = (t) => {
2652
2733
  }
2653
2734
  );
2654
2735
  };
2655
- function Ce({
2736
+ function we({
2656
2737
  userFlow: t,
2657
2738
  pageId: e,
2658
2739
  responseKey: s,
@@ -2665,13 +2746,13 @@ function Ce({
2665
2746
  U(() => () => {
2666
2747
  n.current !== null && (clearTimeout(n.current), n.current = null);
2667
2748
  }, []);
2668
- const d = L(
2749
+ const d = I(
2669
2750
  async (_) => {
2670
2751
  var f;
2671
2752
  const u = {
2672
2753
  ...(f = v.getState()[t]) == null ? void 0 : f.entries
2673
2754
  };
2674
- if (_ ? (u[s] = _, I(t, u)) : (delete u[s], jn(t, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2755
+ if (_ ? (u[s] = _, L(t, u)) : (delete u[s], jn(t, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2675
2756
  try {
2676
2757
  const b = await c(
2677
2758
  t,
@@ -2681,13 +2762,13 @@ function Ce({
2681
2762
  r === "GO_TO_NEXT_UI"
2682
2763
  );
2683
2764
  b != null && b.data && K(t, b.data);
2684
- } catch (x) {
2685
- console.error("[useSelectChange] Failed to fetch next UI", x);
2765
+ } catch (y) {
2766
+ console.error("[useSelectChange] Failed to fetch next UI", y);
2686
2767
  }
2687
2768
  },
2688
2769
  [t, e, s, r, c]
2689
2770
  );
2690
- return L(
2771
+ return I(
2691
2772
  (_) => {
2692
2773
  if (!l) {
2693
2774
  d(_);
@@ -2704,25 +2785,25 @@ function Ce({
2704
2785
  [l, i, d]
2705
2786
  );
2706
2787
  }
2707
- const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2788
+ const Dr = /\{([^}]+)\}/g, Rr = (t, e) => {
2708
2789
  var s;
2709
- return e.includes("{") ? e.replace(Sr, (r, c) => {
2790
+ return e.includes("{") ? e.replace(Dr, (r, c) => {
2710
2791
  var i;
2711
- const l = (i = B.query(t, c.trim())) == null ? void 0 : i[0];
2792
+ const l = (i = M.query(t, c.trim())) == null ? void 0 : i[0];
2712
2793
  return l != null ? String(l) : "";
2713
- }) : (s = B.query(t, e)) == null ? void 0 : s[0];
2714
- }, Ar = (t, e, s, r) => {
2715
- const c = B.query(t, e);
2794
+ }) : (s = M.query(t, e)) == null ? void 0 : s[0];
2795
+ }, qr = (t, e, s, r) => {
2796
+ const c = M.query(t, e);
2716
2797
  return (c == null ? void 0 : c.map((l) => {
2717
2798
  var d;
2718
- const i = Tr(l, s), n = r ? (d = B.query(l, r)) == null ? void 0 : d[0] : l;
2799
+ const i = Rr(l, s), n = r ? (d = M.query(l, r)) == null ? void 0 : d[0] : l;
2719
2800
  return { label: i, value: n };
2720
2801
  })) ?? [];
2721
- }, Or = (t, e, s, r = 10) => {
2802
+ }, Lr = (t, e, s, r = 10) => {
2722
2803
  var n, d;
2723
2804
  let c, l;
2724
2805
  if (s) {
2725
- const a = B.value(t, s.size ?? "$.meta.size") ?? r, _ = B.value(t, s.total ?? "$.meta.total") ?? 0;
2806
+ const a = M.value(t, s.size ?? "$.meta.size") ?? r, _ = M.value(t, s.total ?? "$.meta.total") ?? 0;
2726
2807
  c = a, l = _;
2727
2808
  } else {
2728
2809
  const a = t == null ? void 0 : t.meta;
@@ -2734,9 +2815,9 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2734
2815
  total: l,
2735
2816
  hasMore: i
2736
2817
  };
2737
- }, $r = "_selectNotFront_ch3v5_1", Ne = {
2738
- selectNotFront: $r
2739
- }, Rr = ({
2818
+ }, Ir = "_selectNotFront_ch3v5_1", Ne = {
2819
+ selectNotFront: Ir
2820
+ }, Kr = ({
2740
2821
  userFlow: t,
2741
2822
  pageId: e,
2742
2823
  responseKey: s,
@@ -2749,17 +2830,17 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2749
2830
  }) => {
2750
2831
  const a = {
2751
2832
  ...d
2752
- }, { getNextUI: _, fetchDataSource: u } = G(), [h, f] = $((a == null ? void 0 : a.value) ?? ""), { disabled: x } = M(
2833
+ }, { getNextUI: _, fetchDataSource: u } = H(), [h, f] = R((a == null ? void 0 : a.value) ?? ""), { disabled: y } = B(
2753
2834
  t,
2754
2835
  i
2755
- ), b = (a == null ? void 0 : a.disabled) ?? x, g = O(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), y = O(() => {
2756
- const j = a != null && a.isMulti ? h : [h], N = {};
2757
- return Array.isArray(j) && j.forEach((w) => {
2758
- if (!w) return;
2759
- const S = JSON.stringify(w.value), D = JSON.stringify(w.label);
2760
- N[S] = w, D in N || (N[D] = w);
2761
- }), N;
2762
- }, [h]), m = Ce({
2836
+ ), b = (a == null ? void 0 : a.disabled) ?? y, g = D(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), x = D(() => {
2837
+ const j = a != null && a.isMulti ? h : [h], w = {};
2838
+ return Array.isArray(j) && j.forEach((N) => {
2839
+ if (!N) return;
2840
+ const k = JSON.stringify(N.value), O = JSON.stringify(N.label);
2841
+ w[k] = N, O in w || (w[O] = N);
2842
+ }), w;
2843
+ }, [h]), m = we({
2763
2844
  userFlow: t,
2764
2845
  pageId: e,
2765
2846
  responseKey: s,
@@ -2769,35 +2850,35 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2769
2850
  debounceMs: n
2770
2851
  }), p = (j) => {
2771
2852
  f(j), m(j);
2772
- }, C = async (j, N, { page: w }) => {
2853
+ }, C = async (j, w, { page: N }) => {
2773
2854
  const {
2774
- jsonPathLabel: S,
2775
- jsonPathOptions: D,
2776
- jsonPathValue: q,
2855
+ jsonPathLabel: k,
2856
+ jsonPathOptions: O,
2857
+ jsonPathValue: $,
2777
2858
  jsonPathPagination: Q
2778
- } = c, V = Lt(
2859
+ } = c, V = Kt(
2779
2860
  c,
2780
- w,
2861
+ N,
2781
2862
  j
2782
- ), T = await u(
2863
+ ), S = await u(
2783
2864
  V,
2784
2865
  t,
2785
2866
  !1
2786
- ), H = T == null ? void 0 : T.data, ct = H ? Ar(
2787
- H,
2788
- D,
2789
- S,
2790
- q
2791
- ) : [], { hasMore: bt } = Or(
2792
- H,
2793
- w,
2867
+ ), G = S == null ? void 0 : S.data, ct = G ? qr(
2868
+ G,
2869
+ O,
2870
+ k,
2871
+ $
2872
+ ) : [], { hasMore: bt } = Lr(
2873
+ G,
2874
+ N,
2794
2875
  Q
2795
2876
  );
2796
2877
  return {
2797
2878
  options: ct,
2798
2879
  hasMore: bt,
2799
2880
  additional: {
2800
- page: w + 1
2881
+ page: N + 1
2801
2882
  }
2802
2883
  };
2803
2884
  };
@@ -2814,13 +2895,13 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2814
2895
  loadOptions: C,
2815
2896
  additional: { page: 1 },
2816
2897
  isOptionDisabled: (j) => {
2817
- const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
2818
- return !!(y != null && y[N]) || !!(y != null && y[w]);
2898
+ const w = JSON.stringify(j == null ? void 0 : j.value), N = JSON.stringify(j == null ? void 0 : j.label);
2899
+ return !!(x != null && x[w]) || !!(x != null && x[N]);
2819
2900
  },
2820
2901
  debounceTimeout: 350
2821
2902
  }
2822
2903
  );
2823
- }, Dr = ({
2904
+ }, Br = ({
2824
2905
  userFlow: t,
2825
2906
  pageId: e,
2826
2907
  responseKey: s,
@@ -2833,10 +2914,10 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2833
2914
  }) => {
2834
2915
  const a = {
2835
2916
  ...d
2836
- }, { getNextUI: _ } = G(), [u, h] = $(a.value || ""), { disabled: f } = M(
2917
+ }, { getNextUI: _ } = H(), [u, h] = R(a.value || ""), { disabled: f } = B(
2837
2918
  t,
2838
2919
  i
2839
- ), x = (a == null ? void 0 : a.disabled) ?? f, b = O(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = Ce({
2920
+ ), y = (a == null ? void 0 : a.disabled) ?? f, b = D(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = we({
2840
2921
  userFlow: t,
2841
2922
  pageId: e,
2842
2923
  responseKey: s,
@@ -2844,7 +2925,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2844
2925
  getNextUI: _,
2845
2926
  isMulti: a == null ? void 0 : a.isMulti,
2846
2927
  debounceMs: n
2847
- }), y = (m) => {
2928
+ }), x = (m) => {
2848
2929
  h(m), g(m);
2849
2930
  };
2850
2931
  return /* @__PURE__ */ o.jsx(
@@ -2854,27 +2935,27 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2854
2935
  className: Ne.selectNotFront,
2855
2936
  label: b,
2856
2937
  value: u,
2857
- disabled: x,
2858
- onChange: (m) => !x && y(m)
2938
+ disabled: y,
2939
+ onChange: (m) => !y && x(m)
2859
2940
  }
2860
2941
  );
2861
- }, qr = (t) => {
2942
+ }, Mr = (t) => {
2862
2943
  const { dataSource: e } = t;
2863
- return e ? /* @__PURE__ */ o.jsx(Rr, { ...t }) : /* @__PURE__ */ o.jsx(Dr, { ...t });
2864
- }, Ir = "_spacing_19hqa_1", Lr = "_spacing__xxs_19hqa_1", Kr = "_spacing__xs_19hqa_4", Br = "_spacing__sm_19hqa_7", Mr = "_spacing__md_19hqa_10", Hr = "_spacing__lg_19hqa_13", Gr = "_spacing__xl_19hqa_16", Ur = "_spacing__xxl_19hqa_19", Vr = "_spacing__xxxl_19hqa_22", ee = {
2865
- spacing: Ir,
2866
- spacing__xxs: Lr,
2867
- spacing__xs: Kr,
2868
- spacing__sm: Br,
2869
- spacing__md: Mr,
2870
- spacing__lg: Hr,
2871
- spacing__xl: Gr,
2872
- spacing__xxl: Ur,
2873
- spacing__xxxl: Vr
2874
- }, zr = (t) => {
2944
+ return e ? /* @__PURE__ */ o.jsx(Kr, { ...t }) : /* @__PURE__ */ o.jsx(Br, { ...t });
2945
+ }, Gr = "_spacing_19hqa_1", Hr = "_spacing__xxs_19hqa_1", Ur = "_spacing__xs_19hqa_4", Vr = "_spacing__sm_19hqa_7", zr = "_spacing__md_19hqa_10", Xr = "_spacing__lg_19hqa_13", Jr = "_spacing__xl_19hqa_16", Wr = "_spacing__xxl_19hqa_19", Yr = "_spacing__xxxl_19hqa_22", ee = {
2946
+ spacing: Gr,
2947
+ spacing__xxs: Hr,
2948
+ spacing__xs: Ur,
2949
+ spacing__sm: Vr,
2950
+ spacing__md: zr,
2951
+ spacing__lg: Xr,
2952
+ spacing__xl: Jr,
2953
+ spacing__xxl: Wr,
2954
+ spacing__xxxl: Yr
2955
+ }, Qr = (t) => {
2875
2956
  const { size: e } = t, s = et(ee.spacing, ee[`spacing__${e}`]);
2876
2957
  return /* @__PURE__ */ o.jsx("div", { className: s });
2877
- }, Xr = (t) => {
2958
+ }, Zr = (t) => {
2878
2959
  const {
2879
2960
  userFlow: e,
2880
2961
  pageId: s,
@@ -2887,10 +2968,10 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2887
2968
  ...a
2888
2969
  } = t, _ = {
2889
2970
  ...a
2890
- }, { getNextUI: u } = G(), [h, f] = $(i || !1), { disabled: x } = M(
2971
+ }, { getNextUI: u } = H(), [h, f] = R(i || !1), { disabled: y } = B(
2891
2972
  e,
2892
2973
  d
2893
- ), b = (_ == null ? void 0 : _.disabled) ?? x, g = O(() => n && l ? `${l} *` : l ?? "", [l, n]), y = L(async () => {
2974
+ ), b = (_ == null ? void 0 : _.disabled) ?? y, g = D(() => n && l ? `${l} *` : l ?? "", [l, n]), x = I(async () => {
2894
2975
  var m;
2895
2976
  try {
2896
2977
  const p = !h;
@@ -2899,17 +2980,17 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2899
2980
  ...(m = v.getState()[e]) == null ? void 0 : m.entries,
2900
2981
  [r]: p
2901
2982
  };
2902
- switch (I(e, C), c) {
2983
+ switch (L(e, C), c) {
2903
2984
  case "GO_TO_NEXT_UI":
2904
2985
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
2905
- const N = await u(
2986
+ const w = await u(
2906
2987
  e,
2907
2988
  s,
2908
2989
  C,
2909
2990
  r,
2910
2991
  c === "GO_TO_NEXT_UI"
2911
2992
  );
2912
- N != null && N.data && K(e, N == null ? void 0 : N.data);
2993
+ w != null && w.data && K(e, w == null ? void 0 : w.data);
2913
2994
  break;
2914
2995
  }
2915
2996
  default:
@@ -2926,17 +3007,17 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2926
3007
  label: g,
2927
3008
  checked: h,
2928
3009
  disabled: b,
2929
- onChange: () => !b && y()
3010
+ onChange: () => !b && x()
2930
3011
  }
2931
3012
  );
2932
- }, Jr = "_tableSkeleton_3nr9n_1", Wr = "_tableArrayPills_3nr9n_7", we = {
2933
- tableSkeleton: Jr,
2934
- tableArrayPills: Wr
2935
- }, Yr = ({ values: t }) => {
2936
- const s = jr(t ?? []), r = s.slice(0, 4), c = s.length - 4;
2937
- return /* @__PURE__ */ o.jsxs("div", { className: we.tableArrayPills, children: [
3013
+ }, Fr = "_tableSkeleton_3nr9n_1", Pr = "_tableArrayPills_3nr9n_7", ve = {
3014
+ tableSkeleton: Fr,
3015
+ tableArrayPills: Pr
3016
+ }, ta = ({ values: t }) => {
3017
+ const s = Er(t ?? []), r = s.slice(0, 4), c = s.length - 4;
3018
+ return /* @__PURE__ */ o.jsxs("div", { className: ve.tableArrayPills, children: [
2938
3019
  r.map((l, i) => {
2939
- const n = je[l.variant];
3020
+ const n = Ce[l.variant];
2940
3021
  return /* @__PURE__ */ o.jsx(
2941
3022
  St,
2942
3023
  {
@@ -2953,14 +3034,14 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2953
3034
  c
2954
3035
  ] })
2955
3036
  ] });
2956
- }, Qr = ({
3037
+ }, ea = ({
2957
3038
  userFlow: t,
2958
3039
  pageId: e,
2959
3040
  tableResponseKey: s,
2960
3041
  component: r,
2961
3042
  rowData: c
2962
3043
  }) => {
2963
- const { getNextUI: l, fetchAndGetNextUI: i, fetchDataSource: n } = G(), d = E(t, e, [
3044
+ const { getNextUI: l, fetchAndGetNextUI: i, fetchDataSource: n } = H(), d = E(t, e, [
2964
3045
  { ...r }
2965
3046
  ]), a = (d == null ? void 0 : d[0]) || null;
2966
3047
  if (!a) return null;
@@ -2968,20 +3049,20 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2968
3049
  actionType: _,
2969
3050
  responseKey: u,
2970
3051
  dataSource: h
2971
- } = a.props, f = L(async () => {
2972
- var x, b, g;
3052
+ } = a.props, f = I(async () => {
3053
+ var y, b, g;
2973
3054
  try {
2974
- const y = {
2975
- ...(x = v.getState()[t]) == null ? void 0 : x.entries,
3055
+ const x = {
3056
+ ...(y = v.getState()[t]) == null ? void 0 : y.entries,
2976
3057
  [u]: { status: 200 },
2977
3058
  [s]: [{ ...c }]
2978
3059
  };
2979
- switch (I(t, y), _) {
3060
+ switch (L(t, x), _) {
2980
3061
  case "GO_TO_NEXT_UI": {
2981
3062
  const m = await l(
2982
3063
  t,
2983
3064
  e,
2984
- y,
3065
+ x,
2985
3066
  u
2986
3067
  );
2987
3068
  m != null && m.data && K(t, m == null ? void 0 : m.data);
@@ -2991,7 +3072,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2991
3072
  const m = await i(
2992
3073
  t,
2993
3074
  e,
2994
- y,
3075
+ x,
2995
3076
  u,
2996
3077
  h
2997
3078
  );
@@ -3002,7 +3083,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3002
3083
  const m = await l(
3003
3084
  t,
3004
3085
  e,
3005
- y,
3086
+ x,
3006
3087
  u
3007
3088
  ), p = (b = m == null ? void 0 : m.data) == null ? void 0 : b.content;
3008
3089
  if ((p == null ? void 0 : p.type) !== "fetch") break;
@@ -3011,35 +3092,35 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3011
3092
  t,
3012
3093
  // Avoid to handle loading state until all the requests are done
3013
3094
  !1
3014
- ), N = {
3095
+ ), w = {
3015
3096
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
3016
3097
  [u]: {
3017
3098
  status: j == null ? void 0 : j.status,
3018
3099
  content: j == null ? void 0 : j.data
3019
3100
  }
3020
3101
  };
3021
- I(t, N);
3022
- const w = await l(
3102
+ L(t, w);
3103
+ const N = await l(
3023
3104
  t,
3024
3105
  e,
3025
- N,
3106
+ w,
3026
3107
  u
3027
3108
  );
3028
- w != null && w.data && K(t, w == null ? void 0 : w.data);
3109
+ N != null && N.data && K(t, N == null ? void 0 : N.data);
3029
3110
  break;
3030
3111
  }
3031
3112
  default:
3032
3113
  console.warn(`Unhandled actionType: ${_}`);
3033
3114
  break;
3034
3115
  }
3035
- } catch (y) {
3036
- alert(JSON.stringify(y));
3116
+ } catch (x) {
3117
+ alert(JSON.stringify(x));
3037
3118
  }
3038
3119
  }, [_, h, e, u, t]);
3039
- return Se(a, {
3120
+ return Te(a, {
3040
3121
  onClick: f
3041
3122
  });
3042
- }, Zr = () => /* @__PURE__ */ o.jsx("div", { className: we.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ o.jsx(
3123
+ }, na = () => /* @__PURE__ */ o.jsx("div", { className: ve.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ o.jsx(
3043
3124
  oe,
3044
3125
  {
3045
3126
  maxWidth: "100%",
@@ -3047,7 +3128,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3047
3128
  radius: 8
3048
3129
  },
3049
3130
  `tableSkeletonBase${e}`
3050
- )) }), Fr = (t, e) => !(e != null && e.length) || !t ? t : t.map((s) => e.some(
3131
+ )) }), sa = (t, e) => !(e != null && e.length) || !t ? t : t.map((s) => e.some(
3051
3132
  (c) => Array.isArray(
3052
3133
  s != null && s.accessor ? c[s == null ? void 0 : s.accessor] : void 0
3053
3134
  )
@@ -3055,9 +3136,9 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3055
3136
  ...s,
3056
3137
  renderCell: (c) => {
3057
3138
  const l = s.accessor ? c[s.accessor] : void 0;
3058
- return Array.isArray(l) ? /* @__PURE__ */ o.jsx(Yr, { values: l }) : l ?? "";
3139
+ return Array.isArray(l) ? /* @__PURE__ */ o.jsx(ta, { values: l }) : l ?? "";
3059
3140
  }
3060
- } : s), Pr = ({
3141
+ } : s), ra = ({
3061
3142
  userFlow: t,
3062
3143
  pageId: e,
3063
3144
  responseKey: s,
@@ -3069,99 +3150,99 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3069
3150
  ...d
3070
3151
  }) => {
3071
3152
  var Q, V;
3072
- const { fetchDataSource: a } = G(), [_, u] = $(!1), [h, f] = $(1), [x, b] = $(null), g = !c && Array.isArray(i), y = !!(c != null && c.jsonPathCursorPagination) && !!((Q = c == null ? void 0 : c.jsonPathPagination) != null && Q.hasMore), m = ut(
3153
+ const { fetchDataSource: a } = H(), [_, u] = R(!1), [h, f] = R(1), [y, b] = R(null), g = !c && Array.isArray(i), x = !!(c != null && c.jsonPathCursorPagination) && !!((Q = c == null ? void 0 : c.jsonPathPagination) != null && Q.hasMore), m = ut(
3073
3154
  /* @__PURE__ */ new Map([[1, null]])
3074
- ), p = O(() => {
3155
+ ), p = D(() => {
3075
3156
  if (l != null && l.length)
3076
- return l.map((T, H) => ({
3157
+ return l.map((S, G) => ({
3077
3158
  renderContent: (ct) => /* @__PURE__ */ o.jsx(
3078
- Qr,
3159
+ ea,
3079
3160
  {
3080
3161
  userFlow: t,
3081
3162
  pageId: e,
3082
3163
  tableResponseKey: s,
3083
- component: T,
3164
+ component: S,
3084
3165
  rowData: ct
3085
3166
  },
3086
- `tableRowAction${H}`
3167
+ `tableRowAction${G}`
3087
3168
  )
3088
3169
  }));
3089
- }, [l, t, e, s]), C = async (T = 1) => {
3170
+ }, [l, t, e, s]), C = async (S = 1) => {
3090
3171
  if (!c)
3091
3172
  return;
3092
3173
  const {
3093
- mapperData: H,
3174
+ mapperData: G,
3094
3175
  jsonPathData: ct,
3095
3176
  jsonPathPagination: bt,
3096
3177
  jsonPathCursorPagination: it
3097
3178
  } = c;
3098
- if (it && T !== 1 && !m.current.has(T)) {
3179
+ if (it && S !== 1 && !m.current.has(S)) {
3099
3180
  f(1), C(1);
3100
3181
  return;
3101
3182
  }
3102
- it && T === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
3183
+ it && S === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
3103
3184
  try {
3104
3185
  u(!0);
3105
- const jt = it ? m.current.get(T) ?? null : null, ve = Lt(
3186
+ const jt = it ? m.current.get(S) ?? null : null, Ee = Kt(
3106
3187
  c,
3107
- T,
3188
+ S,
3108
3189
  void 0,
3109
3190
  jt
3110
3191
  ), Z = await a(
3111
- ve,
3192
+ Ee,
3112
3193
  t,
3113
3194
  !1
3114
3195
  );
3115
3196
  if (b(
3116
- ge(
3197
+ pe(
3117
3198
  Z == null ? void 0 : Z.data,
3118
3199
  ct,
3119
- H,
3200
+ G,
3120
3201
  bt
3121
3202
  )
3122
3203
  ), it) {
3123
- const Kt = ms(
3204
+ const Bt = ms(
3124
3205
  Z == null ? void 0 : Z.data,
3125
3206
  it
3126
3207
  );
3127
- Kt && m.current.set(T + 1, Kt);
3208
+ Bt && m.current.set(S + 1, Bt);
3128
3209
  }
3129
3210
  u(!1);
3130
3211
  } catch (jt) {
3131
3212
  console.error("[TableNotFront] fetchData:", jt), u(!1);
3132
3213
  }
3133
- }, j = (T) => {
3134
- f(T), C(T);
3214
+ }, j = (S) => {
3215
+ f(S), C(S);
3135
3216
  };
3136
3217
  U(() => {
3137
3218
  g || C();
3138
3219
  }, []);
3139
- const N = g ? i : x == null ? void 0 : x.items, w = g && !!n && ((i == null ? void 0 : i.length) ?? 0) > n, S = O(() => {
3140
- if (!w || !i || !n)
3141
- return N ?? [];
3142
- const T = (h - 1) * n;
3143
- return i.slice(T, T + n);
3220
+ const w = g ? i : y == null ? void 0 : y.items, N = g && !!n && ((i == null ? void 0 : i.length) ?? 0) > n, k = D(() => {
3221
+ if (!N || !i || !n)
3222
+ return w ?? [];
3223
+ const S = (h - 1) * n;
3224
+ return i.slice(S, S + n);
3144
3225
  }, [
3145
- w,
3226
+ N,
3146
3227
  i,
3147
3228
  n,
3148
3229
  h,
3149
- N
3150
- ]), D = O(
3151
- () => Fr(
3230
+ w
3231
+ ]), O = D(
3232
+ () => sa(
3152
3233
  d.columns,
3153
- N
3234
+ w
3154
3235
  ),
3155
- [N, d.columns]
3156
- ), q = {
3236
+ [w, d.columns]
3237
+ ), $ = {
3157
3238
  ...d,
3158
- data: S,
3159
- columns: D ?? [],
3239
+ data: k,
3240
+ columns: O ?? [],
3160
3241
  rightActions: p
3161
3242
  };
3162
- return g ? !N || N.length === 0 ? /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3163
- /* @__PURE__ */ o.jsx(Bt, { ...q }),
3164
- w && n && i && /* @__PURE__ */ o.jsx(
3243
+ return g ? !w || w.length === 0 ? /* @__PURE__ */ o.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3244
+ /* @__PURE__ */ o.jsx(Mt, { ...$ }),
3245
+ N && n && i && /* @__PURE__ */ o.jsx(
3165
3246
  Ct,
3166
3247
  {
3167
3248
  classname: { global: "row__end" },
@@ -3171,35 +3252,35 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3171
3252
  onChange: f
3172
3253
  }
3173
3254
  )
3174
- ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Zr, {}) : x && ((V = x == null ? void 0 : x.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3175
- /* @__PURE__ */ o.jsx(Bt, { ...q }),
3176
- !y && (x == null ? void 0 : x.pagination) && x.pagination.totalPages > 1 && /* @__PURE__ */ o.jsx(
3255
+ ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(na, {}) : y && ((V = y == null ? void 0 : y.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3256
+ /* @__PURE__ */ o.jsx(Mt, { ...$ }),
3257
+ !x && (y == null ? void 0 : y.pagination) && y.pagination.totalPages > 1 && /* @__PURE__ */ o.jsx(
3177
3258
  Ct,
3178
3259
  {
3179
3260
  classname: { global: "row__end" },
3180
3261
  page: h,
3181
- size: x.pagination.size,
3182
- total: x.pagination.total,
3262
+ size: y.pagination.size,
3263
+ total: y.pagination.total,
3183
3264
  onChange: j
3184
3265
  }
3185
3266
  ),
3186
- y && (x == null ? void 0 : x.pagination) && /* @__PURE__ */ o.jsx(
3267
+ x && (y == null ? void 0 : y.pagination) && /* @__PURE__ */ o.jsx(
3187
3268
  Ct,
3188
3269
  {
3189
3270
  variant: "cursor",
3190
3271
  classname: { global: "row__end" },
3191
3272
  page: h,
3192
- hasNextPage: !!x.pagination.hasMore,
3273
+ hasNextPage: !!y.pagination.hasMore,
3193
3274
  onChange: j
3194
3275
  }
3195
3276
  )
3196
- ] }) : /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
3197
- }, ta = "_tabsPanel_kvslb_1", ea = {
3198
- tabsPanel: ta
3199
- }, na = ({ userFlow: t, pageId: e, components: s }) => {
3277
+ ] }) : /* @__PURE__ */ o.jsx(mt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
3278
+ }, aa = "_tabsPanel_kvslb_1", oa = {
3279
+ tabsPanel: aa
3280
+ }, ca = ({ userFlow: t, pageId: e, components: s }) => {
3200
3281
  const r = E(t, e, s);
3201
- return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: ea.tabsPanel, children: r.map((c, l) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${l}`)) }) : null;
3202
- }, sa = ({
3282
+ return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: oa.tabsPanel, children: r.map((c, l) => /* @__PURE__ */ o.jsx(A, { children: c }, `tabs-panel-${l}`)) }) : null;
3283
+ }, ia = ({
3203
3284
  userFlow: t,
3204
3285
  pageId: e,
3205
3286
  hash: s,
@@ -3212,7 +3293,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3212
3293
  label: a.label,
3213
3294
  disabled: a.disabled,
3214
3295
  children: /* @__PURE__ */ o.jsx(
3215
- na,
3296
+ ca,
3216
3297
  {
3217
3298
  userFlow: t,
3218
3299
  pageId: e,
@@ -3226,7 +3307,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3226
3307
  ...(u = v.getState()[t]) == null ? void 0 : u.entries,
3227
3308
  [i]: a
3228
3309
  };
3229
- I(t, _);
3310
+ L(t, _);
3230
3311
  };
3231
3312
  return /* @__PURE__ */ o.jsx(
3232
3313
  Qe,
@@ -3237,9 +3318,9 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3237
3318
  onClick: d
3238
3319
  }
3239
3320
  );
3240
- }, ra = "_textareaNotFront_1wpe5_1", aa = {
3241
- textareaNotFront: ra
3242
- }, oa = (t) => {
3321
+ }, la = "_textareaNotFront_1wpe5_1", da = {
3322
+ textareaNotFront: la
3323
+ }, _a = (t) => {
3243
3324
  const {
3244
3325
  userFlow: e,
3245
3326
  pageId: s,
@@ -3251,13 +3332,13 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3251
3332
  ...d
3252
3333
  } = t, a = {
3253
3334
  ...d
3254
- }, [_, u] = $((a == null ? void 0 : a.value) ?? ""), { disabled: h } = M(
3335
+ }, [_, u] = R((a == null ? void 0 : a.value) ?? ""), { disabled: h } = B(
3255
3336
  e,
3256
3337
  n
3257
- ), f = (a == null ? void 0 : a.disabled) ?? h, x = O(() => i && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), b = (g) => {
3338
+ ), f = (a == null ? void 0 : a.disabled) ?? h, y = D(() => i && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), b = (g) => {
3258
3339
  var m;
3259
- const y = (m = g == null ? void 0 : g.target) == null ? void 0 : m.value;
3260
- u(y), I(e, { [l]: y });
3340
+ const x = (m = g == null ? void 0 : g.target) == null ? void 0 : m.value;
3341
+ u(x), L(e, { [l]: x });
3261
3342
  };
3262
3343
  return U(() => {
3263
3344
  u((a == null ? void 0 : a.value) ?? "");
@@ -3265,16 +3346,16 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3265
3346
  Ze,
3266
3347
  {
3267
3348
  ...a,
3268
- className: aa.textareaNotFront,
3269
- label: x,
3349
+ className: da.textareaNotFront,
3350
+ label: y,
3270
3351
  value: _,
3271
3352
  disabled: f,
3272
3353
  onChange: (g) => !f && b(g)
3273
3354
  }
3274
3355
  );
3275
- }, ca = "_textFieldNotFront_1n8fy_1", ia = {
3276
- textFieldNotFront: ca
3277
- }, la = (t) => {
3356
+ }, ua = "_textFieldNotFront_1n8fy_1", ha = {
3357
+ textFieldNotFront: ua
3358
+ }, fa = (t) => {
3278
3359
  const {
3279
3360
  userFlow: e,
3280
3361
  pageId: s,
@@ -3286,17 +3367,17 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3286
3367
  ...d
3287
3368
  } = t, a = {
3288
3369
  ...d
3289
- }, [_, u] = $((a == null ? void 0 : a.value) ?? ""), { disabled: h } = M(
3370
+ }, [_, u] = R((a == null ? void 0 : a.value) ?? ""), { disabled: h } = B(
3290
3371
  e,
3291
3372
  n
3292
- ), f = (a == null ? void 0 : a.disabled) ?? h, x = O(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), b = (g) => {
3373
+ ), f = (a == null ? void 0 : a.disabled) ?? h, y = D(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), b = (g) => {
3293
3374
  var p;
3294
- const y = (p = g == null ? void 0 : g.target) == null ? void 0 : p.value;
3295
- u(y);
3375
+ const x = (p = g == null ? void 0 : g.target) == null ? void 0 : p.value;
3376
+ u(x);
3296
3377
  const m = {
3297
- [l]: y
3378
+ [l]: x
3298
3379
  };
3299
- I(e, m);
3380
+ L(e, m);
3300
3381
  };
3301
3382
  return U(() => {
3302
3383
  u((a == null ? void 0 : a.value) ?? "");
@@ -3304,15 +3385,15 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3304
3385
  Fe,
3305
3386
  {
3306
3387
  ...a,
3307
- className: ia.textFieldNotFront,
3388
+ className: ha.textFieldNotFront,
3308
3389
  allowClear: !1,
3309
- label: x,
3390
+ label: y,
3310
3391
  value: _,
3311
3392
  disabled: f,
3312
3393
  onChange: (g) => !f && b(g)
3313
3394
  }
3314
3395
  );
3315
- }, da = ({
3396
+ }, xa = ({
3316
3397
  userFlow: t,
3317
3398
  pageId: e,
3318
3399
  responseKey: s,
@@ -3321,8 +3402,8 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3321
3402
  actionType: l,
3322
3403
  redirectUrl: i
3323
3404
  }) => {
3324
- const n = L(async () => {
3325
- qt(t);
3405
+ const n = I(async () => {
3406
+ Lt(t);
3326
3407
  try {
3327
3408
  switch (l) {
3328
3409
  case "AUTOCLOSE_AND_REDIRECT":
@@ -3348,10 +3429,10 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3348
3429
  onClose: n
3349
3430
  });
3350
3431
  }, [n, t]), null;
3351
- }, _a = "_tooltipNotFront_106iw_1", ua = "_tooltipNotFront_content_106iw_5", ne = {
3352
- tooltipNotFront: _a,
3353
- tooltipNotFront_content: ua
3354
- }, ha = (t) => {
3432
+ }, ya = "_tooltipNotFront_106iw_1", ma = "_tooltipNotFront_content_106iw_5", ne = {
3433
+ tooltipNotFront: ya,
3434
+ tooltipNotFront_content: ma
3435
+ }, ga = (t) => {
3355
3436
  const {
3356
3437
  userFlow: e,
3357
3438
  pageId: s,
@@ -3367,7 +3448,7 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3367
3448
  e,
3368
3449
  s,
3369
3450
  i != null && i.length ? i : null
3370
- ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: ne.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(k, { children: f }, `tooltip-${c}-${x}`)) }) : null;
3451
+ ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: ne.tooltipNotFront_content, children: u.map((f, y) => /* @__PURE__ */ o.jsx(A, { children: f }, `tooltip-${c}-${y}`)) }) : null;
3371
3452
  return /* @__PURE__ */ o.jsx(
3372
3453
  Pe,
3373
3454
  {
@@ -3380,13 +3461,13 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3380
3461
  }
3381
3462
  );
3382
3463
  };
3383
- function Ra({
3464
+ function Ka({
3384
3465
  sessionName: t,
3385
3466
  apiConfig: e,
3386
3467
  onResolveComponentProps: s,
3387
3468
  children: r
3388
3469
  }) {
3389
- const c = ga(
3470
+ const c = wa(
3390
3471
  t,
3391
3472
  e,
3392
3473
  null,
@@ -3397,16 +3478,16 @@ function Ra({
3397
3478
  r
3398
3479
  ] });
3399
3480
  }
3400
- const fa = { api: "", headers: {} }, ya = ({
3481
+ const pa = { api: "", headers: {} }, ba = ({
3401
3482
  userFlow: t,
3402
3483
  components: e,
3403
3484
  hash: s,
3404
3485
  apiConfig: r
3405
3486
  }) => {
3406
3487
  const c = s ?? `${t}-page`;
3407
- $(() => {
3488
+ R(() => {
3408
3489
  var d, a;
3409
- return (a = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && a[c] || yt(t, r ?? fa, {
3490
+ return (a = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && a[c] || yt(t, r ?? pa, {
3410
3491
  type: "page",
3411
3492
  hash: c,
3412
3493
  body: { components: e }
@@ -3415,21 +3496,21 @@ const fa = { api: "", headers: {} }, ya = ({
3415
3496
  const l = E(t, c, e);
3416
3497
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: l });
3417
3498
  };
3418
- function xa(t) {
3499
+ function ja(t) {
3419
3500
  if (t == null || typeof t != "object" || !("components" in t) || !Array.isArray(t.components))
3420
3501
  throw new Error(
3421
3502
  "[renderNotFront] payload.display must be an object with a `components` array"
3422
3503
  );
3423
3504
  return t.components;
3424
3505
  }
3425
- const ma = ({ payload: t, userFlow: e }) => {
3426
- const s = xa(t.display), r = ya({
3506
+ const Ca = ({ payload: t, userFlow: e }) => {
3507
+ const s = ja(t.display), r = ba({
3427
3508
  userFlow: e,
3428
3509
  hash: t.id,
3429
3510
  components: s
3430
3511
  });
3431
3512
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: r });
3432
- }, Da = ma, se = (t, e, s, r, c) => {
3513
+ }, Ba = Ca, se = (t, e, s, r, c) => {
3433
3514
  const l = E(
3434
3515
  t,
3435
3516
  e,
@@ -3448,7 +3529,7 @@ const ma = ({ payload: t, userFlow: e }) => {
3448
3529
  );
3449
3530
  case "header":
3450
3531
  return /* @__PURE__ */ o.jsx(
3451
- ur,
3532
+ mr,
3452
3533
  {
3453
3534
  ...r,
3454
3535
  components: l || []
@@ -3458,13 +3539,13 @@ const ma = ({ payload: t, userFlow: e }) => {
3458
3539
  default:
3459
3540
  return null;
3460
3541
  }
3461
- }, ga = (t, e, s, r) => {
3462
- var g, y;
3463
- const [c, l] = $(!1), i = !!(e != null && e.api && !s && t), [n, d] = $(i), a = v((m) => m[t]), _ = a == null ? void 0 : a.currentPageId, u = (a == null ? void 0 : a.isLoading) ?? !1, h = n || u;
3542
+ }, wa = (t, e, s, r) => {
3543
+ var g, x;
3544
+ const [c, l] = R(!1), i = !!(e != null && e.api && !s && t), [n, d] = R(i), a = v((m) => m[t]), _ = a == null ? void 0 : a.currentPageId, u = (a == null ? void 0 : a.isLoading) ?? !1, h = n || u;
3464
3545
  U(() => {
3465
3546
  if (typeof window > "u") return;
3466
3547
  const m = new URL(window.location.href), p = m.searchParams.get("sessionId");
3467
- p && (Dt(p), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
3548
+ p && (qt(p), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
3468
3549
  }, []);
3469
3550
  const f = _ ? se(
3470
3551
  t,
@@ -3472,15 +3553,15 @@ const ma = ({ payload: t, userFlow: e }) => {
3472
3553
  "header",
3473
3554
  ((g = a == null ? void 0 : a.pages[_].page) == null ? void 0 : g.header) || null,
3474
3555
  r
3475
- ) : null, x = _ ? se(
3556
+ ) : null, y = _ ? se(
3476
3557
  t,
3477
3558
  _,
3478
3559
  "body",
3479
- ((y = a == null ? void 0 : a.pages[_].page) == null ? void 0 : y.body) || null,
3560
+ ((x = a == null ? void 0 : a.pages[_].page) == null ? void 0 : x.body) || null,
3480
3561
  r
3481
3562
  ) : null, b = async () => {
3482
3563
  try {
3483
- const m = await xe(
3564
+ const m = await me(
3484
3565
  e,
3485
3566
  t
3486
3567
  ), p = m == null ? void 0 : m.data, C = p == null ? void 0 : p.content;
@@ -3513,21 +3594,21 @@ const ma = ({ payload: t, userFlow: e }) => {
3513
3594
  }, []), c && console.error("[not-page]: No render page"), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3514
3595
  h && /* @__PURE__ */ o.jsx(tn, {}),
3515
3596
  f,
3516
- x,
3517
- _ && /* @__PURE__ */ o.jsx(gr, { userFlow: t, pageId: _ }),
3597
+ y,
3598
+ _ && /* @__PURE__ */ o.jsx(wr, { userFlow: t, pageId: _ }),
3518
3599
  a && /* @__PURE__ */ o.jsx(en, {})
3519
3600
  ] });
3520
3601
  };
3521
3602
  export {
3522
3603
  zs as Chart,
3523
- Ra as NotFrontPage,
3524
- ma as RenderNotFront,
3525
- kr as Row,
3526
- $a as clearSessionId,
3527
- xa as extractNotFrontComponents,
3604
+ Ka as NotFrontPage,
3605
+ Ca as RenderNotFront,
3606
+ $r as Row,
3607
+ Ia as clearSessionId,
3608
+ ja as extractNotFrontComponents,
3528
3609
  Sn as heading,
3529
- Da as renderNotFront,
3610
+ Ba as renderNotFront,
3530
3611
  Tn as text,
3531
- ya as useNotFrontFragment,
3532
- ga as usePage
3612
+ ba as useNotFrontFragment,
3613
+ wa as usePage
3533
3614
  };