@foris/avocado-not-front 5.2.3 → 5.2.5

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,50 +1,55 @@
1
1
  import X from "axios";
2
- import { create as je } from "zustand";
3
- import Ce, { useMemo as O, useState as $, useCallback as L, Fragment as A, useEffect as U, useRef as ut, cloneElement as we } from "react";
4
- import { Heading as ee, Text as Ne, Accordion as ve, ThemeStore as ht, Box as Ee, RadioButton as ke, Stepper as Te, ProgressBar as Se, Breadcrumbs as Ae, Button as Oe, CardAccordion as $e, Card as Re, CardNotification as xt, SkeletonBase as ne, Checkbox as De, PreviewerMarkdown as se, DataCard as qe, Divider as Ie, Drawer as Le, DropdownButton as Ke, Link as Be, Menu as Me, Modal as He, Pill as Tt, RoundButton as Ge, SelectPagination as Ue, Select as Ve, Switch as ze, Table as It, Pager as Ct, Tabs as Xe, Textarea as Je, TextField as We, toast as lt, Tooltip as Ye, Loading as Qe, Toaster as Ze } from "@foris/avocado-suite";
5
- import { ChatPanel as Fe, PromptCodeEditor as Pe, SummaryCard as tn } from "@foris/ai-agent";
2
+ import { create as ve } from "zustand";
3
+ import Ee, { useMemo as O, useState as $, useCallback as L, Fragment as k, useEffect as U, useRef as ut, cloneElement as ke } from "react";
4
+ import { Heading as se, Text as re, Accordion as Se, ThemeStore as ht, Box as Te, RadioButton as Ae, Stepper as Oe, ProgressBar as $e, Breadcrumbs as Re, Button as De, CardAccordion as Ie, Card as qe, CardNotification as xt, SkeletonBase as ae, Checkbox as Le, PreviewerMarkdown as oe, DataCard as Ke, Divider as Be, Drawer as Me, DropdownButton as He, Link as Ge, Menu as Ue, Modal as Ve, Pill as St, RoundButton as ze, SelectPagination as Xe, Select as Je, Switch as We, Table as Bt, Pager as Ct, Tabs as Ye, Textarea as Qe, TextField as Ze, toast as lt, Tooltip as Fe, Loading as Pe, Toaster as tn } from "@foris/avocado-suite";
5
+ import { ChatPanel as en, PromptCodeEditor as nn, SummaryCard as sn } from "@foris/ai-agent";
6
6
  import B from "jsonpath";
7
- import { ResponsiveContainer as At, Legend as en, Tooltip as nn, XAxis as sn, YAxis as rn, AreaChart as an, CartesianGrid as st, Area as re, BarChart as Ot, Bar as gt, ComposedChart as on, Line as ae, PieChart as oe, Pie as ce, Cell as ie, Sector as Lt, LineChart as cn } from "recharts";
8
- import ln from "@uiw/react-codemirror";
9
- import { json as Kt } from "@codemirror/lang-json";
10
- import { markdown as dn } from "@codemirror/lang-markdown";
11
- import { sql as _n } from "@codemirror/lang-sql";
12
- import { yaml as un } from "@codemirror/lang-yaml";
13
- import { Icon as Bt } from "@foris/avocado-icons";
14
- const v = je(() => ({})), yt = (t, e, s, r) => {
15
- const c = s == null ? void 0 : s.hash, l = r && Object.keys(r).length > 0 ? { ...r } : {};
16
- v.setState((i) => {
17
- var n;
7
+ import { ResponsiveContainer as Ot, Legend as rn, Tooltip as an, XAxis as on, YAxis as cn, AreaChart as ln, CartesianGrid as st, Area as ce, BarChart as $t, Bar as gt, ComposedChart as dn, Line as ie, PieChart as le, Pie as de, Cell as _e, Sector as Mt, LineChart as _n } from "recharts";
8
+ import un from "@uiw/react-codemirror";
9
+ import { json as Ht } from "@codemirror/lang-json";
10
+ import { markdown as hn } from "@codemirror/lang-markdown";
11
+ import { sql as fn } from "@codemirror/lang-sql";
12
+ import { yaml as yn } from "@codemirror/lang-yaml";
13
+ import { Icon as Gt } from "@foris/avocado-icons";
14
+ const Rt = "sessionId", xn = () => sessionStorage.getItem(Rt), Dt = (t) => {
15
+ t && sessionStorage.setItem(Rt, t);
16
+ }, Ta = () => {
17
+ sessionStorage.removeItem(Rt);
18
+ }, v = ve(() => ({})), yt = (t, e, s, r, c) => {
19
+ Dt(c);
20
+ const l = s == null ? void 0 : s.hash, i = r && Object.keys(r).length > 0 ? { ...r } : {};
21
+ v.setState((n) => {
22
+ var d;
18
23
  return {
19
- ...i,
24
+ ...n,
20
25
  [t]: {
21
- ...i[t],
26
+ ...n[t],
22
27
  apiConfig: e,
23
- currentPageId: c,
28
+ currentPageId: l,
24
29
  isLoading: !1,
25
30
  isModalOpen: !0,
26
31
  isDrawerOpen: !1,
27
- entries: l,
32
+ entries: i,
28
33
  overlay: null,
29
34
  pages: {
30
- ...(n = i[t]) == null ? void 0 : n.pages,
31
- [c]: {
35
+ ...(d = n[t]) == null ? void 0 : d.pages,
36
+ [l]: {
32
37
  page: s
33
38
  }
34
39
  }
35
40
  }
36
41
  };
37
42
  });
38
- }, le = (t, e, s) => {
43
+ }, ue = (t, e, s) => {
39
44
  const r = s && Object.keys(s).length > 0 ? { ...t, ...s } : t;
40
45
  return e.length === 0 ? t : Object.fromEntries(
41
46
  Object.entries(r).filter(
42
47
  ([c]) => !e.includes(c)
43
48
  )
44
49
  );
45
- }, hn = (t, e, s, r, c) => {
46
- sessionStorage.setItem("sessionId", s), v.setState((l) => {
47
- const i = l[t] ?? {}, n = i.entries ?? {}, d = le(
50
+ }, mn = (t, e, s, r, c) => {
51
+ Dt(s), v.setState((l) => {
52
+ const i = l[t] ?? {}, n = i.entries ?? {}, d = ue(
48
53
  n,
49
54
  r,
50
55
  c
@@ -66,10 +71,10 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
66
71
  }
67
72
  };
68
73
  });
69
- }, fn = (t, e, s, r) => {
74
+ }, gn = (t, e, s, r) => {
70
75
  v.setState((c) => {
71
76
  var a;
72
- const l = c[t] ?? {}, i = l.entries ?? {}, n = le(
77
+ const l = c[t] ?? {}, i = l.entries ?? {}, n = ue(
73
78
  i,
74
79
  s,
75
80
  r
@@ -88,7 +93,7 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
88
93
  }
89
94
  };
90
95
  });
91
- }, $t = (t) => {
96
+ }, It = (t) => {
92
97
  v.setState((e) => ({
93
98
  ...e,
94
99
  [t]: {
@@ -96,7 +101,7 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
96
101
  overlay: null
97
102
  }
98
103
  }));
99
- }, yn = (t) => {
104
+ }, pn = (t) => {
100
105
  var s;
101
106
  return ((s = v.getState()[t]) == null ? void 0 : s.overlay) ?? null;
102
107
  }, K = (t, e) => {
@@ -106,19 +111,19 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
106
111
  deprecatedStateKeys: c = [],
107
112
  sessionState: l
108
113
  } = e;
109
- s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? hn(
114
+ s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? mn(
110
115
  t,
111
116
  s,
112
117
  r,
113
118
  c,
114
119
  l
115
- ) : fn(
120
+ ) : gn(
116
121
  t,
117
122
  s,
118
123
  c,
119
124
  l
120
125
  ));
121
- }, I = (t, e) => {
126
+ }, q = (t, e) => {
122
127
  v.setState((s) => {
123
128
  var r;
124
129
  return {
@@ -133,7 +138,7 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
133
138
  }
134
139
  };
135
140
  });
136
- }, xn = (t, e) => {
141
+ }, bn = (t, e) => {
137
142
  v.setState((s) => {
138
143
  const r = s[t];
139
144
  if (!r)
@@ -158,7 +163,7 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
158
163
  isLoading: e
159
164
  }
160
165
  }));
161
- }, Rt = (t, e) => {
166
+ }, qt = (t, e) => {
162
167
  v.setState((s) => ({
163
168
  ...s,
164
169
  [t]: {
@@ -174,7 +179,7 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
174
179
  isDrawerOpen: e
175
180
  }
176
181
  }));
177
- }, Mt = (t, e) => {
182
+ }, Ut = (t, e) => {
178
183
  v.setState((s) => {
179
184
  const r = s[t];
180
185
  return r ? {
@@ -189,16 +194,16 @@ const v = je(() => ({})), yt = (t, e, s, r) => {
189
194
  } : s;
190
195
  });
191
196
  };
192
- let wt = !1, mt = [], Ht = !1;
193
- const mn = (t) => t._userFlow || null, Gt = (t) => {
197
+ let wt = !1, mt = [], Vt = !1;
198
+ const jn = (t) => t._userFlow || null, zt = (t) => {
194
199
  mt.forEach(({ resolve: e, reject: s }) => {
195
200
  t ? s(t) : e(void 0);
196
201
  }), mt = [];
197
- }, gn = async (t) => {
202
+ }, Cn = async (t) => {
198
203
  var r, c;
199
204
  const e = t == null ? void 0 : t.config;
200
205
  if (((r = t == null ? void 0 : t.response) == null ? void 0 : r.status) === 401 && !e._retry) {
201
- const l = mn(e);
206
+ const l = jn(e);
202
207
  if (l) {
203
208
  const n = (c = v.getState()[l]) == null ? void 0 : c.apiConfig;
204
209
  if (!n)
@@ -217,7 +222,7 @@ const mn = (t) => t._userFlow || null, Gt = (t) => {
217
222
  a = n.headers();
218
223
  else
219
224
  throw new Error("No refresh handler available");
220
- return n.onAuthenticationError && (typeof n.headers == "string" ? Mt(l, JSON.stringify(a)) : Mt(l, a)), e.headers || (e.headers = {}), Object.assign(e.headers, a), Gt(null), X(e);
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);
221
226
  } catch (a) {
222
227
  return console.error(
223
228
  "[axiosInterceptors] Token refresh failed:",
@@ -225,7 +230,7 @@ const mn = (t) => t._userFlow || null, Gt = (t) => {
225
230
  ), console.error(
226
231
  "[axiosInterceptors] Rejecting queued requests:",
227
232
  mt.length
228
- ), Gt(a), Promise.reject(a);
233
+ ), zt(a), Promise.reject(a);
229
234
  } finally {
230
235
  wt = !1;
231
236
  }
@@ -240,17 +245,17 @@ const mn = (t) => t._userFlow || null, Gt = (t) => {
240
245
  );
241
246
  }
242
247
  return Promise.reject(t);
243
- }, pn = () => {
244
- if (Ht) {
248
+ }, wn = () => {
249
+ if (Vt) {
245
250
  console.debug(
246
251
  "[axiosInterceptors] Interceptors already initialized, skipping"
247
252
  );
248
253
  return;
249
254
  }
250
- console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, gn), console.debug("[axiosInterceptors] Response error interceptor registered"), Ht = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
255
+ console.debug("[axiosInterceptors] Initializing interceptors..."), X.interceptors.response.use(void 0, Cn), console.debug("[axiosInterceptors] Response error interceptor registered"), Vt = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
251
256
  };
252
- pn();
253
- function bn(t) {
257
+ wn();
258
+ function Nn(t) {
254
259
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
255
260
  }
256
261
  var Nt = { exports: {} }, dt = {};
@@ -263,11 +268,11 @@ var Nt = { exports: {} }, dt = {};
263
268
  * This source code is licensed under the MIT license found in the
264
269
  * LICENSE file in the root directory of this source tree.
265
270
  */
266
- var Ut;
267
- function jn() {
268
- if (Ut) return dt;
269
- Ut = 1;
270
- var t = Ce, 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 };
271
+ var Xt;
272
+ function vn() {
273
+ if (Xt) return dt;
274
+ Xt = 1;
275
+ var t = Ee, 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 };
271
276
  function i(n, d, a) {
272
277
  var _, u = {}, h = null, f = null;
273
278
  a !== void 0 && (h = "" + a), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (f = d.ref);
@@ -277,32 +282,32 @@ function jn() {
277
282
  }
278
283
  return dt.Fragment = s, dt.jsx = i, dt.jsxs = i, dt;
279
284
  }
280
- var Vt;
281
- function Cn() {
282
- return Vt || (Vt = 1, Nt.exports = jn()), Nt.exports;
285
+ var Jt;
286
+ function En() {
287
+ return Jt || (Jt = 1, Nt.exports = vn()), Nt.exports;
283
288
  }
284
- var o = Cn();
285
- const wn = (t) => {
289
+ var o = En();
290
+ const kn = (t) => {
286
291
  if (!(t != null && t.content)) return null;
287
292
  const e = {
288
293
  ...t,
289
294
  children: t.content,
290
295
  type: t.variant
291
296
  };
292
- return /* @__PURE__ */ o.jsx(ee, { ...e });
293
- }, Nn = (t) => {
297
+ return /* @__PURE__ */ o.jsx(se, { ...e });
298
+ }, Sn = (t) => {
294
299
  if (!t) return null;
295
300
  const e = {
296
301
  ...t,
297
302
  children: t.content
298
303
  };
299
- return /* @__PURE__ */ o.jsx(Ne, { ...e });
304
+ return /* @__PURE__ */ o.jsx(re, { ...e });
300
305
  }, E = (t, e, s, r) => {
301
306
  var i;
302
307
  const c = {
303
- accordion: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n, userFlow: t, pageId: e }),
308
+ accordion: (n) => /* @__PURE__ */ o.jsx(Ln, { ...n, userFlow: t, pageId: e }),
304
309
  aiChatPanel: (n) => /* @__PURE__ */ o.jsx(
305
- Dn,
310
+ Kn,
306
311
  {
307
312
  ...n,
308
313
  userFlow: t,
@@ -311,7 +316,7 @@ const wn = (t) => {
311
316
  }
312
317
  ),
313
318
  aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(
314
- Mn,
319
+ Vn,
315
320
  {
316
321
  ...n,
317
322
  userFlow: t,
@@ -319,57 +324,57 @@ const wn = (t) => {
319
324
  onResolveProps: r == null ? void 0 : r.aiSummaryCard
320
325
  }
321
326
  ),
322
- aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Ln, { ...n, userFlow: t, pageId: e }),
323
- box: (n) => /* @__PURE__ */ o.jsx(Xn, { ...n, userFlow: t, pageId: e }),
324
- breadcrumbs: (n) => /* @__PURE__ */ o.jsx(rs, { ...n, userFlow: t, pageId: e }),
325
- tooltip: (n) => /* @__PURE__ */ o.jsx(ra, { ...n, userFlow: t, pageId: e }),
326
- textarea: (n) => /* @__PURE__ */ o.jsx(Zr, { ...n, userFlow: t, pageId: e }),
327
- card: (n) => /* @__PURE__ */ o.jsx(ds, { ...n, userFlow: t, pageId: e }),
328
- dropdownButton: (n) => /* @__PURE__ */ o.jsx(rr, { ...n, userFlow: t, pageId: e }),
329
- menu: (n) => /* @__PURE__ */ o.jsx(lr, { ...n, userFlow: t, pageId: e }),
330
- radioGroup: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: t, pageId: e }),
331
- stepper: (n) => /* @__PURE__ */ o.jsx(ns, { ...n, userFlow: t, pageId: e }),
332
- progressBar: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: t, pageId: e }),
333
- button: (n) => /* @__PURE__ */ o.jsx(as, { ...n, userFlow: t, pageId: e }),
334
- cardAccordion: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: t, pageId: e }),
335
- cardNotification: (n) => /* @__PURE__ */ o.jsx(_s, { ...n }),
336
- chart: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: t }),
337
- dataCard: (n) => /* @__PURE__ */ o.jsx(Qs, { ...n, userFlow: t, pageId: e }),
338
- checkbox: (n) => /* @__PURE__ */ o.jsx(Hs, { ...n, userFlow: t, pageId: e }),
339
- code: (n) => /* @__PURE__ */ o.jsx(Ws, { ...n, userFlow: t, pageId: e }),
340
- divider: (n) => /* @__PURE__ */ o.jsx(Ps, { ...n }),
341
- drawer: (n) => /* @__PURE__ */ o.jsx(sr, { ...n, userFlow: t, pageId: e }),
342
- heading: (n) => wn(n),
343
- link: (n) => /* @__PURE__ */ o.jsx(ir, { ...n, userFlow: t, pageId: e }),
344
- pill: (n) => /* @__PURE__ */ o.jsx(yr, { ...n }),
345
- previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(xr, { ...n }),
346
- modal: (n) => /* @__PURE__ */ o.jsx(ur, { ...n, userFlow: t, pageId: e }),
347
- roundButton: (n) => /* @__PURE__ */ o.jsx(mr, { ...n, userFlow: t, pageId: e }),
348
- row: (n) => /* @__PURE__ */ o.jsx(br, { ...n, userFlow: t, pageId: e }),
349
- select: (n) => /* @__PURE__ */ o.jsx(Tr, { ...n, userFlow: t, pageId: e }),
350
- switch: (n) => /* @__PURE__ */ o.jsx(Br, { ...n, userFlow: t, pageId: e }),
351
- spacing: (n) => /* @__PURE__ */ o.jsx(Kr, { ...n, userFlow: t, pageId: e }),
352
- table: (n) => /* @__PURE__ */ o.jsx(Xr, { ...n, userFlow: t, pageId: e }),
353
- tabs: (n) => /* @__PURE__ */ o.jsx(Qr, { ...n, userFlow: t, pageId: e }),
354
- text: (n) => Nn(n),
355
- textField: (n) => /* @__PURE__ */ o.jsx(ta, { ...n, userFlow: t, pageId: e }),
356
- toast: (n) => /* @__PURE__ */ o.jsx(ea, { ...n, userFlow: t, pageId: e })
327
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: t, pageId: e }),
328
+ box: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: t, pageId: e }),
329
+ breadcrumbs: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: t, pageId: e }),
330
+ tooltip: (n) => /* @__PURE__ */ o.jsx(da, { ...n, userFlow: t, pageId: e }),
331
+ textarea: (n) => /* @__PURE__ */ o.jsx(sa, { ...n, userFlow: t, pageId: e }),
332
+ card: (n) => /* @__PURE__ */ o.jsx(fs, { ...n, userFlow: t, pageId: e }),
333
+ dropdownButton: (n) => /* @__PURE__ */ o.jsx(ir, { ...n, userFlow: t, pageId: e }),
334
+ menu: (n) => /* @__PURE__ */ o.jsx(hr, { ...n, userFlow: t, pageId: e }),
335
+ radioGroup: (n) => /* @__PURE__ */ o.jsx(as, { ...n, userFlow: t, pageId: e }),
336
+ stepper: (n) => /* @__PURE__ */ o.jsx(os, { ...n, userFlow: t, pageId: e }),
337
+ progressBar: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: t, pageId: e }),
338
+ button: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: t, pageId: e }),
339
+ cardAccordion: (n) => /* @__PURE__ */ o.jsx(_s, { ...n, userFlow: t, pageId: e }),
340
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: t, pageId: e }),
341
+ chart: (n) => /* @__PURE__ */ o.jsx(Vs, { ...n, userFlow: t }),
342
+ dataCard: (n) => /* @__PURE__ */ o.jsx(tr, { ...n, userFlow: t, pageId: e }),
343
+ checkbox: (n) => /* @__PURE__ */ o.jsx(zs, { ...n, userFlow: t, pageId: e }),
344
+ code: (n) => /* @__PURE__ */ o.jsx(Fs, { ...n, userFlow: t, pageId: e }),
345
+ divider: (n) => /* @__PURE__ */ o.jsx(sr, { ...n }),
346
+ drawer: (n) => /* @__PURE__ */ o.jsx(cr, { ...n, userFlow: t, pageId: e }),
347
+ heading: (n) => kn(n),
348
+ link: (n) => /* @__PURE__ */ o.jsx(ur, { ...n, userFlow: t, pageId: e }),
349
+ pill: (n) => /* @__PURE__ */ o.jsx(jr, { ...n }),
350
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Cr, { ...n }),
351
+ modal: (n) => /* @__PURE__ */ o.jsx(xr, { ...n, userFlow: t, pageId: e }),
352
+ roundButton: (n) => /* @__PURE__ */ o.jsx(wr, { ...n, userFlow: t, pageId: e }),
353
+ row: (n) => /* @__PURE__ */ o.jsx(Er, { ...n, userFlow: t, pageId: e }),
354
+ select: (n) => /* @__PURE__ */ o.jsx(Dr, { ...n, userFlow: t, pageId: e }),
355
+ switch: (n) => /* @__PURE__ */ o.jsx(zr, { ...n, userFlow: t, pageId: e }),
356
+ spacing: (n) => /* @__PURE__ */ o.jsx(Vr, { ...n, userFlow: t, pageId: e }),
357
+ table: (n) => /* @__PURE__ */ o.jsx(Fr, { ...n, userFlow: t, pageId: e }),
358
+ tabs: (n) => /* @__PURE__ */ o.jsx(na, { ...n, userFlow: t, pageId: e }),
359
+ text: (n) => Sn(n),
360
+ textField: (n) => /* @__PURE__ */ o.jsx(oa, { ...n, userFlow: t, pageId: e }),
361
+ toast: (n) => /* @__PURE__ */ o.jsx(ca, { ...n, userFlow: t, pageId: e })
357
362
  };
358
363
  return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
359
364
  const d = c[n.component];
360
365
  return d ? d({ ...n, userFlow: t, pageId: e }) : null;
361
366
  });
362
367
  };
363
- function vn(t) {
368
+ function Tn(t) {
364
369
  return !!(t == null || typeof t == "string" && t.trim() === "" || Array.isArray(t) && t.length === 0);
365
370
  }
366
- function de(t, e) {
371
+ function he(t, e) {
367
372
  if (!(e != null && e.length))
368
373
  return !1;
369
374
  for (const s of e)
370
375
  if (s.when === "empty") {
371
376
  const r = t == null ? void 0 : t[s.key];
372
- if (vn(r))
377
+ if (Tn(r))
373
378
  return !0;
374
379
  }
375
380
  return !1;
@@ -381,7 +386,7 @@ function M(t, e) {
381
386
  });
382
387
  return O(
383
388
  () => ({
384
- disabled: de(s, e)
389
+ disabled: he(s, e)
385
390
  }),
386
391
  [e, s]
387
392
  );
@@ -398,7 +403,7 @@ const rt = (t) => {
398
403
  return { "content-type": "application/json", Authorization: t };
399
404
  }
400
405
  return t;
401
- }, ft = () => new AbortController(), En = (t, e = {}, s = {}, r = !1, c) => {
406
+ }, ft = () => new AbortController(), An = (t, e = {}, s = {}, r = !1, c) => {
402
407
  const l = ft();
403
408
  r && l.abort();
404
409
  const i = rt(e);
@@ -413,7 +418,7 @@ const rt = (t) => {
413
418
  }),
414
419
  controller: l
415
420
  };
416
- }, St = (t, e = {}, s = {}, r = {}, c = !1, l) => {
421
+ }, Tt = (t, e = {}, s = {}, r = {}, c = !1, l) => {
417
422
  const i = ft();
418
423
  c && i.abort();
419
424
  const n = rt(e);
@@ -428,7 +433,7 @@ const rt = (t) => {
428
433
  }),
429
434
  controller: i
430
435
  };
431
- }, kn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
436
+ }, On = (t, e = {}, s = {}, r = {}, c = !1, l) => {
432
437
  const i = ft();
433
438
  c && i.abort();
434
439
  const n = rt(e);
@@ -443,7 +448,7 @@ const rt = (t) => {
443
448
  }),
444
449
  controller: i
445
450
  };
446
- }, Tn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
451
+ }, $n = (t, e = {}, s = {}, r = {}, c = !1, l) => {
447
452
  const i = ft();
448
453
  c && i.abort();
449
454
  const n = rt(e);
@@ -458,7 +463,7 @@ const rt = (t) => {
458
463
  }),
459
464
  controller: i
460
465
  };
461
- }, Sn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
466
+ }, Rn = (t, e = {}, s = {}, r = {}, c = !1, l) => {
462
467
  const i = ft();
463
468
  c && i.abort();
464
469
  const n = rt(e);
@@ -474,7 +479,7 @@ const rt = (t) => {
474
479
  }),
475
480
  controller: i
476
481
  };
477
- }, _e = () => {
482
+ }, fe = () => {
478
483
  let t;
479
484
  return { callEndpoint: async (r) => {
480
485
  r.controller && (t = r.controller);
@@ -488,11 +493,11 @@ const rt = (t) => {
488
493
  }, cancelEndpoint: () => {
489
494
  t && t.abort();
490
495
  } };
491
- }, ue = async (t, e, s = "", r = {}, c = {}) => {
496
+ }, ye = async (t, e, s = "", r = {}, c = {}) => {
492
497
  try {
493
- const { callEndpoint: l } = _e(), { api: i, headers: n } = t, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: e });
498
+ const { callEndpoint: l } = fe(), { api: i, headers: n } = t, d = xn(), a = new URLSearchParams({ session_name: e });
494
499
  s && a.append("hash_code", s), d && a.append("sessionId", d);
495
- const _ = `${i}/not-front/next-ui/?${a.toString()}`, u = rt(n), h = St(
500
+ const _ = `${i}/not-front/next-ui/?${a.toString()}`, u = rt(n), h = Tt(
496
501
  _,
497
502
  u,
498
503
  r,
@@ -504,7 +509,7 @@ const rt = (t) => {
504
509
  } catch (l) {
505
510
  return console.error(l), Promise.reject(l);
506
511
  }
507
- }, he = (t) => {
512
+ }, xe = (t) => {
508
513
  const e = t == null ? void 0 : t.toLowerCase();
509
514
  switch (e) {
510
515
  case "post":
@@ -516,7 +521,7 @@ const rt = (t) => {
516
521
  default:
517
522
  return "get";
518
523
  }
519
- }, An = (t, e, s) => {
524
+ }, Dn = (t, e, s) => {
520
525
  const { url: r, paginationKeys: c, params: l } = t, i = [], n = (c == null ? void 0 : c.page) ?? "page";
521
526
  if (i.push(`${n}=${e}`), typeof s == "string") {
522
527
  const _ = (c == null ? void 0 : c.text) ?? "text";
@@ -530,14 +535,14 @@ const rt = (t) => {
530
535
  }
531
536
  const d = i.join("&");
532
537
  return d ? `${r}?${d}` : r;
533
- }, Dt = (t, e, s, r) => {
538
+ }, Lt = (t, e, s, r) => {
534
539
  const { type: c, url: l, method: i, headers: n } = t;
535
540
  if (c === "rest") {
536
- const d = An(t, e, s), _ = { ...(t == null ? void 0 : t.data) ?? {}, ...r ?? {} };
541
+ const d = Dn(t, e, s), _ = { ...(t == null ? void 0 : t.data) ?? {}, ...r ?? {} };
537
542
  return {
538
543
  type: "rest",
539
544
  url: d,
540
- method: he(i),
545
+ method: xe(i),
541
546
  headers: n,
542
547
  data: _
543
548
  };
@@ -555,14 +560,14 @@ const rt = (t) => {
555
560
  }
556
561
  };
557
562
  }, G = () => {
558
- const t = v((n) => n), { callEndpoint: e } = _e(), s = async (n, d, a, _, u = !0) => {
563
+ const t = v((n) => n), { callEndpoint: e } = fe(), s = async (n, d, a, _, u = !0) => {
559
564
  var h;
560
565
  try {
561
566
  const f = (h = t[n]) == null ? void 0 : h.apiConfig, x = {
562
567
  state: { ...a },
563
568
  triggerKey: _
564
569
  };
565
- return u && F(n, !0), await ue(
570
+ return u && F(n, !0), await ye(
566
571
  f,
567
572
  n,
568
573
  d,
@@ -573,25 +578,25 @@ const rt = (t) => {
573
578
  }
574
579
  }, r = (n, d) => {
575
580
  const { url: a, headers: _, data: u, params: h } = n;
576
- switch (he(n.method)) {
581
+ switch (xe(n.method)) {
577
582
  case "post":
578
- return St(a, _, u, {}, !1, d);
583
+ return Tt(a, _, u, {}, !1, d);
579
584
  case "put":
580
- return kn(a, _, u, {}, !1, d);
585
+ return On(a, _, u, {}, !1, d);
581
586
  case "patch":
582
- return Tn(a, _, u, {}, !1, d);
587
+ return $n(a, _, u, {}, !1, d);
583
588
  case "delete":
584
- return Sn(a, _, u, h, !1, d);
589
+ return Rn(a, _, u, h, !1, d);
585
590
  case "get":
586
591
  default:
587
- return En(a, _, h, !1, d);
592
+ return An(a, _, h, !1, d);
588
593
  }
589
594
  }, c = (n, d) => {
590
595
  const { url: a, headers: _ } = n, u = {
591
596
  query: n == null ? void 0 : n.query,
592
597
  variables: (n == null ? void 0 : n.variables) || {}
593
598
  };
594
- return St(
599
+ return Tt(
595
600
  a,
596
601
  {
597
602
  ..._,
@@ -657,10 +662,10 @@ const rt = (t) => {
657
662
  }
658
663
  }
659
664
  };
660
- }, On = "_accordion_1ri2t_1", $n = "_accordionBody_1ri2t_8", zt = {
661
- accordion: On,
662
- accordionBody: $n
663
- }, Rn = (t) => {
665
+ }, In = "_accordion_1ri2t_1", qn = "_accordionBody_1ri2t_8", Wt = {
666
+ accordion: In,
667
+ accordionBody: qn
668
+ }, Ln = (t) => {
664
669
  const {
665
670
  userFlow: e,
666
671
  pageId: s,
@@ -685,7 +690,7 @@ const rt = (t) => {
685
690
  ...(C = v.getState()[e]) == null ? void 0 : C.entries,
686
691
  [r]: j
687
692
  };
688
- if (I(e, w), d.actionType === "GO_TO_NEXT_UI") {
693
+ if (q(e, w), d.actionType === "GO_TO_NEXT_UI") {
689
694
  const N = await a(
690
695
  e,
691
696
  s,
@@ -701,16 +706,16 @@ const rt = (t) => {
701
706
  [e, s, r, d.actionType, a]
702
707
  ), y = d.disabled || h, m = {
703
708
  ...d,
704
- className: zt.accordion,
709
+ className: Wt.accordion,
705
710
  disabled: y,
706
711
  checkboxChecked: _,
707
712
  onChanceCheckbox: d.hasCheckbox ? g : void 0,
708
- actionContent: x ? /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((p, C) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-action-${C}`)) }) : void 0,
709
- customContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, C) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-custom-${C}`)) }) : void 0,
710
- children: f ? /* @__PURE__ */ o.jsx("section", { className: zt.accordionBody, children: f.map((p, C) => /* @__PURE__ */ o.jsx(A, { children: p }, `accordion-child-${C}`)) }) : 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
711
716
  };
712
- return /* @__PURE__ */ o.jsx(ve, { ...m });
713
- }, Dn = (t) => {
717
+ return /* @__PURE__ */ o.jsx(Se, { ...m });
718
+ }, Kn = (t) => {
714
719
  const e = ht.useThemeStore((i) => i.theme.mode), s = t.dataSource, r = O(() => ({
715
720
  url: t.dataSource.url,
716
721
  method: t.dataSource.method,
@@ -743,7 +748,7 @@ const rt = (t) => {
743
748
  t.initialSuggestions,
744
749
  e
745
750
  ]), t.onResolveProps ? null : /* @__PURE__ */ o.jsx(
746
- Fe,
751
+ en,
747
752
  {
748
753
  dataSource: r,
749
754
  locale: c,
@@ -752,9 +757,9 @@ const rt = (t) => {
752
757
  theme: e
753
758
  }
754
759
  );
755
- }, qn = "_promptCodeEditor_1d57s_1", In = {
756
- promptCodeEditor: qn
757
- }, Ln = (t) => {
760
+ }, Bn = "_promptCodeEditor_1d57s_1", Mn = {
761
+ promptCodeEditor: Bn
762
+ }, Hn = (t) => {
758
763
  const {
759
764
  userFlow: e,
760
765
  responseKey: s,
@@ -781,12 +786,12 @@ const rt = (t) => {
781
786
  const C = {
782
787
  [s]: p
783
788
  };
784
- I(e, C);
789
+ q(e, C);
785
790
  };
786
791
  return U(() => {
787
792
  r !== void 0 && r !== h && f(r);
788
- }, [r]), /* @__PURE__ */ o.jsx("section", { className: In.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
789
- Pe,
793
+ }, [r]), /* @__PURE__ */ o.jsx("section", { className: Mn.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
794
+ nn,
790
795
  {
791
796
  themeMode: u,
792
797
  requestConfig: y,
@@ -799,9 +804,9 @@ const rt = (t) => {
799
804
  onCodeChange: m
800
805
  }
801
806
  ) });
802
- }, Kn = "_summaryCard_jva4h_1", Bn = {
803
- summaryCard: Kn
804
- }, Mn = (t) => {
807
+ }, Gn = "_summaryCard_jva4h_1", Un = {
808
+ summaryCard: Gn
809
+ }, Vn = (t) => {
805
810
  const e = t.dataSource, s = O(() => ({
806
811
  url: t.dataSource.url,
807
812
  method: t.dataSource.method,
@@ -824,20 +829,20 @@ const rt = (t) => {
824
829
  locale: r,
825
830
  translations: c
826
831
  });
827
- }, [t.onResolveProps, s, r, c]), t.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Bn.summaryCard, children: /* @__PURE__ */ o.jsx(
828
- tn,
832
+ }, [t.onResolveProps, s, r, c]), t.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: Un.summaryCard, children: /* @__PURE__ */ o.jsx(
833
+ sn,
829
834
  {
830
835
  dataSource: s,
831
836
  locale: r,
832
837
  translations: c
833
838
  }
834
839
  ) });
835
- }, Hn = "_body_14tsv_1", Gn = "_body_content_14tsv_5", Xt = {
836
- body: Hn,
837
- body_content: Gn
838
- }, Un = ({ inputs: t }) => /* @__PURE__ */ o.jsx("section", { className: Xt.body, children: /* @__PURE__ */ o.jsx("div", { className: Xt.body_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(A, { children: e }, s)) }) }), Vn = "_slotStack_1b4wy_1", zn = {
839
- slotStack: Vn
840
- }, Xn = (t) => {
840
+ }, zn = "_body_14tsv_1", Xn = "_body_content_14tsv_5", Yt = {
841
+ body: zn,
842
+ body_content: Xn
843
+ }, Jn = ({ 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)) }) }), Wn = "_slotStack_1b4wy_1", Yn = {
844
+ slotStack: Wn
845
+ }, Qn = (t) => {
841
846
  const {
842
847
  userFlow: e,
843
848
  pageId: s,
@@ -849,8 +854,8 @@ const rt = (t) => {
849
854
  e,
850
855
  s,
851
856
  i != null && i.length ? i : null
852
- ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: zn.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(A, { children: _ }, `box-${c}-${u}`)) }) : null;
853
- return /* @__PURE__ */ o.jsx(Ee, { darkMode: n, children: a });
857
+ ), a = d && d.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Yn.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(k, { children: _ }, `box-${c}-${u}`)) }) : null;
858
+ return /* @__PURE__ */ o.jsx(Te, { darkMode: n, children: a });
854
859
  };
855
860
  var vt = { exports: {} };
856
861
  /*!
@@ -858,9 +863,9 @@ var vt = { exports: {} };
858
863
  Licensed under the MIT License (MIT), see
859
864
  http://jedwatson.github.io/classnames
860
865
  */
861
- var Jt;
862
- function Jn() {
863
- return Jt || (Jt = 1, (function(t) {
866
+ var Qt;
867
+ function Zn() {
868
+ return Qt || (Qt = 1, (function(t) {
864
869
  (function() {
865
870
  var e = {}.hasOwnProperty;
866
871
  function s() {
@@ -891,15 +896,15 @@ function Jn() {
891
896
  })();
892
897
  })(vt)), vt.exports;
893
898
  }
894
- var Wn = Jn();
895
- const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColumn_1xrth_8", Zn = "_legend_1xrth_14", Fn = "_options_1xrth_20", Pn = "_optionsRow_1xrth_25", ts = "_optionsColumn_1xrth_36", P = {
896
- fieldset: Yn,
897
- fieldsetColumn: Qn,
898
- legend: Zn,
899
- options: Fn,
900
- optionsRow: Pn,
901
- optionsColumn: ts
902
- }, es = (t) => {
899
+ var Fn = Zn();
900
+ const et = /* @__PURE__ */ Nn(Fn), Pn = "_fieldset_1xrth_1", ts = "_fieldsetColumn_1xrth_8", es = "_legend_1xrth_14", ns = "_options_1xrth_20", ss = "_optionsRow_1xrth_25", rs = "_optionsColumn_1xrth_36", P = {
901
+ fieldset: Pn,
902
+ fieldsetColumn: ts,
903
+ legend: es,
904
+ options: ns,
905
+ optionsRow: ss,
906
+ optionsColumn: rs
907
+ }, as = (t) => {
903
908
  const {
904
909
  userFlow: e,
905
910
  pageId: s,
@@ -928,15 +933,15 @@ const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColu
928
933
  ...(C = v.getState()[e]) == null ? void 0 : C.entries,
929
934
  [r]: p
930
935
  };
931
- if (I(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
932
- const k = await h(
936
+ if (q(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
937
+ const S = await h(
933
938
  e,
934
939
  s,
935
940
  j,
936
941
  r,
937
942
  n === "GO_TO_NEXT_UI"
938
943
  );
939
- k != null && k.data && K(e, k == null ? void 0 : k.data);
944
+ S != null && S.data && K(e, S == null ? void 0 : S.data);
940
945
  }
941
946
  } catch (j) {
942
947
  alert(JSON.stringify(j));
@@ -968,7 +973,7 @@ const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColu
968
973
  u === "column" ? P.optionsColumn : P.optionsRow
969
974
  ),
970
975
  children: _.map((p) => /* @__PURE__ */ o.jsx(
971
- ke,
976
+ Ae,
972
977
  {
973
978
  name: r,
974
979
  value: p.value,
@@ -986,7 +991,7 @@ const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColu
986
991
  ]
987
992
  }
988
993
  );
989
- }, ns = ({
994
+ }, os = ({
990
995
  userFlow: t,
991
996
  pageId: e,
992
997
  component: s,
@@ -995,7 +1000,7 @@ const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColu
995
1000
  items: l,
996
1001
  itemActive: i,
997
1002
  darkMode: n
998
- }) => /* @__PURE__ */ o.jsx(Te, { items: l, itemActive: i, darkMode: n }), ss = ({
1003
+ }) => /* @__PURE__ */ o.jsx(Oe, { items: l, itemActive: i, darkMode: n }), cs = ({
999
1004
  userFlow: t,
1000
1005
  pageId: e,
1001
1006
  component: s,
@@ -1004,7 +1009,7 @@ const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColu
1004
1009
  total: l,
1005
1010
  done: i,
1006
1011
  inProgress: n
1007
- }) => /* @__PURE__ */ o.jsx(Se, { total: l, done: i, inProgress: n }), rs = ({
1012
+ }) => /* @__PURE__ */ o.jsx($e, { total: l, done: i, inProgress: n }), is = ({
1008
1013
  userFlow: t,
1009
1014
  items: e,
1010
1015
  responseKey: s
@@ -1039,7 +1044,7 @@ const et = /* @__PURE__ */ bn(Wn), Yn = "_fieldset_1xrth_1", Qn = "_fieldsetColu
1039
1044
  title: i == null ? void 0 : i.title,
1040
1045
  component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(i) })
1041
1046
  })), []);
1042
- return /* @__PURE__ */ o.jsx(Ae, { items: l });
1047
+ return /* @__PURE__ */ o.jsx(Re, { items: l });
1043
1048
  };
1044
1049
  function pt(t, e) {
1045
1050
  const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: c } = G();
@@ -1047,15 +1052,15 @@ function pt(t, e) {
1047
1052
  async (l) => {
1048
1053
  var h, f, x, b;
1049
1054
  const { responseKey: i, actionType: n, dataSource: d, redirectUrl: a, dependencies: _ } = l, u = (h = v.getState()[t]) == null ? void 0 : h.entries;
1050
- if (!de(u, _))
1055
+ if (!he(u, _))
1051
1056
  try {
1052
1057
  const g = {
1053
1058
  ...(f = v.getState()[t]) == null ? void 0 : f.entries,
1054
1059
  [i]: { status: 200 }
1055
1060
  };
1056
- switch (I(t, g), n) {
1061
+ switch (q(t, g), n) {
1057
1062
  case "CLOSE_MODAL":
1058
- Rt(t, !1);
1063
+ qt(t, !1);
1059
1064
  break;
1060
1065
  case "CLOSE_DRAWER":
1061
1066
  _t(t, !1);
@@ -1090,7 +1095,7 @@ function pt(t, e) {
1090
1095
  t,
1091
1096
  !1
1092
1097
  );
1093
- I(t, {
1098
+ q(t, {
1094
1099
  [i]: {
1095
1100
  status: y == null ? void 0 : y.status,
1096
1101
  content: y == null ? void 0 : y.data
@@ -1114,7 +1119,7 @@ function pt(t, e) {
1114
1119
  content: C == null ? void 0 : C.data
1115
1120
  }
1116
1121
  };
1117
- I(t, j);
1122
+ q(t, j);
1118
1123
  const w = await s(
1119
1124
  t,
1120
1125
  e,
@@ -1143,7 +1148,7 @@ function pt(t, e) {
1143
1148
  ]
1144
1149
  );
1145
1150
  }
1146
- const as = (t) => {
1151
+ const ls = (t) => {
1147
1152
  const {
1148
1153
  userFlow: e,
1149
1154
  pageId: s,
@@ -1189,7 +1194,7 @@ const as = (t) => {
1189
1194
  h
1190
1195
  ]);
1191
1196
  return /* @__PURE__ */ o.jsx(
1192
- Oe,
1197
+ De,
1193
1198
  {
1194
1199
  ...x,
1195
1200
  loading: x.loading || g,
@@ -1197,9 +1202,9 @@ const as = (t) => {
1197
1202
  onClick: () => !b && !g && (_ ?? p)()
1198
1203
  }
1199
1204
  );
1200
- }, os = "_slotStack_12u4t_5", Wt = {
1201
- slotStack: os
1202
- }, cs = (t) => {
1205
+ }, ds = "_slotStack_12u4t_5", At = {
1206
+ slotStack: ds
1207
+ }, _s = (t) => {
1203
1208
  const {
1204
1209
  userFlow: e,
1205
1210
  pageId: s,
@@ -1221,9 +1226,9 @@ const as = (t) => {
1221
1226
  e,
1222
1227
  s,
1223
1228
  d && d.length > 0 ? d : null
1224
- ), f = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Wt.slotStack, children: u.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `card-accordion-body-${c}-${y}`)) }) : void 0, x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Wt.slotStack, children: h.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `card-accordion-actions-${c}-${y}`)) }) : void 0, b = a.disabled || _;
1229
+ ), 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 || _;
1225
1230
  return /* @__PURE__ */ o.jsx(
1226
- $e,
1231
+ Ie,
1227
1232
  {
1228
1233
  ...a,
1229
1234
  disabled: b,
@@ -1231,9 +1236,9 @@ const as = (t) => {
1231
1236
  children: f ?? null
1232
1237
  }
1233
1238
  );
1234
- }, is = "_slotStack_ivk5b_1", ls = {
1235
- slotStack: is
1236
- }, ds = (t) => {
1239
+ }, us = "_slotStack_ivk5b_1", hs = {
1240
+ slotStack: us
1241
+ }, fs = (t) => {
1237
1242
  const {
1238
1243
  userFlow: e,
1239
1244
  pageId: s,
@@ -1254,17 +1259,17 @@ const as = (t) => {
1254
1259
  e,
1255
1260
  s,
1256
1261
  i && i.length > 0 ? i : null
1257
- ), p = m && m.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: ls.slotStack, children: m.map((j, w) => /* @__PURE__ */ o.jsx(A, { children: j }, `card-body-${c}-${w}`)) }) : null, C = L(async () => {
1262
+ ), p = m && m.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: hs.slotStack, children: m.map((j, w) => /* @__PURE__ */ o.jsx(k, { children: j }, `card-body-${c}-${w}`)) }) : null, C = L(async () => {
1258
1263
  var j, w, N;
1259
1264
  if (!(!a || y))
1260
1265
  try {
1261
- const k = {
1266
+ const S = {
1262
1267
  ...(j = v.getState()[e]) == null ? void 0 : j.entries,
1263
1268
  [l]: { status: 200 }
1264
1269
  };
1265
- switch (I(e, k), a) {
1270
+ switch (q(e, S), a) {
1266
1271
  case "CLOSE_MODAL":
1267
- Rt(e, !1);
1272
+ qt(e, !1);
1268
1273
  break;
1269
1274
  case "CLOSE_DRAWER":
1270
1275
  _t(e, !1);
@@ -1274,21 +1279,21 @@ const as = (t) => {
1274
1279
  break;
1275
1280
  case "GO_TO_NEXT_UI":
1276
1281
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
1277
- const q = await f(
1282
+ const I = await f(
1278
1283
  e,
1279
1284
  s,
1280
- k,
1285
+ S,
1281
1286
  l,
1282
1287
  a === "GO_TO_NEXT_UI"
1283
1288
  );
1284
- q != null && q.data && K(e, q == null ? void 0 : q.data);
1289
+ I != null && I.data && K(e, I == null ? void 0 : I.data);
1285
1290
  break;
1286
1291
  }
1287
1292
  case "FETCH_AND_GO_TO_NEXT_UI": {
1288
1293
  const D = await b(
1289
1294
  e,
1290
1295
  s,
1291
- k,
1296
+ S,
1292
1297
  l,
1293
1298
  _
1294
1299
  );
@@ -1299,19 +1304,19 @@ const as = (t) => {
1299
1304
  const D = await f(
1300
1305
  e,
1301
1306
  s,
1302
- k,
1307
+ S,
1303
1308
  l
1304
- ), q = (w = D == null ? void 0 : D.data) == null ? void 0 : w.content;
1305
- if ((q == null ? void 0 : q.type) !== "fetch")
1309
+ ), I = (w = D == null ? void 0 : D.data) == null ? void 0 : w.content;
1310
+ if ((I == null ? void 0 : I.type) !== "fetch")
1306
1311
  break;
1307
- const Q = q == null ? void 0 : q.dataSource, V = await x(Q, e, !1), T = {
1312
+ const Q = I == null ? void 0 : I.dataSource, V = await x(Q, e, !1), T = {
1308
1313
  ...(N = v.getState()[e]) == null ? void 0 : N.entries,
1309
1314
  [l]: {
1310
1315
  status: V == null ? void 0 : V.status,
1311
1316
  content: V == null ? void 0 : V.data
1312
1317
  }
1313
1318
  };
1314
- I(e, T);
1319
+ q(e, T);
1315
1320
  const H = await f(
1316
1321
  e,
1317
1322
  s,
@@ -1327,8 +1332,8 @@ const as = (t) => {
1327
1332
  default:
1328
1333
  console.warn(`Unhandled card actionType: ${a}`);
1329
1334
  }
1330
- } catch (k) {
1331
- alert(JSON.stringify(k));
1335
+ } catch (S) {
1336
+ alert(JSON.stringify(S));
1332
1337
  }
1333
1338
  }, [
1334
1339
  a,
@@ -1343,7 +1348,7 @@ const as = (t) => {
1343
1348
  e
1344
1349
  ]);
1345
1350
  return /* @__PURE__ */ o.jsx(
1346
- Re,
1351
+ qe,
1347
1352
  {
1348
1353
  colorId: n,
1349
1354
  disabled: y,
@@ -1351,13 +1356,27 @@ const as = (t) => {
1351
1356
  children: p
1352
1357
  }
1353
1358
  );
1354
- }, _s = (t) => {
1355
- const { content: e, description: s, ...r } = t, c = {
1356
- ...r,
1357
- children: e ?? s
1358
- };
1359
- return /* @__PURE__ */ o.jsx(xt, { ...c });
1360
- }, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, us = (t, e) => {
1359
+ }, ys = (t) => {
1360
+ const {
1361
+ userFlow: e,
1362
+ pageId: s,
1363
+ component: r,
1364
+ hash: c,
1365
+ responseKey: l,
1366
+ content: i,
1367
+ description: n,
1368
+ ...d
1369
+ } = t, a = Array.isArray(i), _ = E(
1370
+ e,
1371
+ s,
1372
+ a && i.length > 0 ? i : null
1373
+ );
1374
+ let u;
1375
+ return _ && _.length > 0 ? u = /* @__PURE__ */ o.jsxs("div", { className: At.slotStack, children: [
1376
+ n ? /* @__PURE__ */ o.jsx(re, { type: "sm", children: n }) : null,
1377
+ _.map((h, f) => /* @__PURE__ */ o.jsx(k, { children: h }, `card-notification-body-${c}-${f}`))
1378
+ ] }) : u = (typeof i == "string" ? i : void 0) ?? n, /* @__PURE__ */ o.jsx(xt, { ...d, children: u });
1379
+ }, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, xs = (t, e) => {
1361
1380
  if (!e || t == null)
1362
1381
  return null;
1363
1382
  const { extractionJsonPath: s, injectionJsonPath: r } = e, c = B.value(t, s);
@@ -1373,7 +1392,7 @@ const as = (t) => {
1373
1392
  l
1374
1393
  ), null;
1375
1394
  }
1376
- }, fe = (t, e, s, r) => {
1395
+ }, me = (t, e, s, r) => {
1377
1396
  const c = B.query(t, e), l = c == null ? void 0 : c.map((_) => {
1378
1397
  var u, h;
1379
1398
  if (s) {
@@ -1410,21 +1429,21 @@ const as = (t) => {
1410
1429
  children: l
1411
1430
  }) => {
1412
1431
  const i = e ?? nt, n = s ? { layout: s } : {};
1413
- return t ? /* @__PURE__ */ o.jsx(c, { width: t, height: i, data: r, ...n, children: l }) : /* @__PURE__ */ o.jsx(At, { width: "100%", height: i, children: /* @__PURE__ */ o.jsx(c, { data: r, ...n, children: l }) });
1432
+ 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 }) });
1414
1433
  }, J = ({ withPadding: t = !1 }) => {
1415
- const e = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: S.labelColor }, children: s });
1434
+ const e = (s) => /* @__PURE__ */ o.jsx("span", { style: { color: A.labelColor }, children: s });
1416
1435
  return /* @__PURE__ */ o.jsx(
1417
- en,
1436
+ rn,
1418
1437
  {
1419
1438
  formatter: e,
1420
1439
  wrapperStyle: {
1421
- fontSize: S.fontSize,
1422
- fontFamily: S.fontFamily,
1440
+ fontSize: A.fontSize,
1441
+ fontFamily: A.fontFamily,
1423
1442
  padding: t ? "1rem 0" : "0"
1424
1443
  }
1425
1444
  }
1426
1445
  );
1427
- }, hs = ({
1446
+ }, ms = ({
1428
1447
  active: t,
1429
1448
  payload: e,
1430
1449
  label: s,
@@ -1435,9 +1454,9 @@ const as = (t) => {
1435
1454
  if (!t || !e || !e.length)
1436
1455
  return null;
1437
1456
  const l = {
1438
- backgroundColor: S.tooltipBg,
1439
- borderRadius: S.tooltipBorderRadius,
1440
- color: S.tooltipColor,
1457
+ backgroundColor: A.tooltipBg,
1458
+ borderRadius: A.tooltipBorderRadius,
1459
+ color: A.tooltipColor,
1441
1460
  padding: "8px 12px",
1442
1461
  border: "1px solid #e5e7eb"
1443
1462
  };
@@ -1460,12 +1479,12 @@ const as = (t) => {
1460
1479
  defaultIndex: s,
1461
1480
  hideContent: r = !1
1462
1481
  } = {}) => /* @__PURE__ */ o.jsx(
1463
- nn,
1482
+ an,
1464
1483
  {
1465
1484
  defaultIndex: s,
1466
1485
  cursor: r ? !1 : void 0,
1467
1486
  content: r ? () => null : (c) => /* @__PURE__ */ o.jsx(
1468
- hs,
1487
+ ms,
1469
1488
  {
1470
1489
  ...c,
1471
1490
  tooltipKey: t,
@@ -1474,14 +1493,14 @@ const as = (t) => {
1474
1493
  )
1475
1494
  }
1476
1495
  ), ot = ({ dataKey: t, hide: e = !1, type: s }) => /* @__PURE__ */ o.jsx(
1477
- sn,
1496
+ on,
1478
1497
  {
1479
1498
  ...t ? { dataKey: t } : {},
1480
1499
  ...s ? { type: s } : {},
1481
1500
  hide: e,
1482
1501
  tick: {
1483
- fill: S.labelColor,
1484
- fontSize: S.fontSize
1502
+ fill: A.labelColor,
1503
+ fontSize: A.fontSize
1485
1504
  }
1486
1505
  }
1487
1506
  ), Y = ({
@@ -1491,7 +1510,7 @@ const as = (t) => {
1491
1510
  yAxisId: r,
1492
1511
  orientation: c
1493
1512
  } = {}) => /* @__PURE__ */ o.jsx(
1494
- rn,
1513
+ cn,
1495
1514
  {
1496
1515
  ...t ? { type: t } : {},
1497
1516
  ...e ? { dataKey: e } : {},
@@ -1499,21 +1518,21 @@ const as = (t) => {
1499
1518
  ...r ? { yAxisId: r } : {},
1500
1519
  ...c ? { orientation: c } : {},
1501
1520
  tick: {
1502
- fill: S.labelColor,
1503
- fontSize: S.fontSize
1521
+ fill: A.labelColor,
1522
+ fontSize: A.fontSize
1504
1523
  },
1505
1524
  tickMargin: 4
1506
1525
  }
1507
- ), fs = (t) => {
1526
+ ), gs = (t) => {
1508
1527
  const { data: e, xKey: s, yKeys: r, tooltipKey: c, width: l } = t;
1509
- return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: an, children: [
1528
+ return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: ln, children: [
1510
1529
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1511
1530
  /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
1512
1531
  /* @__PURE__ */ o.jsx(Y, {}),
1513
1532
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1514
1533
  /* @__PURE__ */ o.jsx(J, {}),
1515
1534
  r.map((i, n) => /* @__PURE__ */ o.jsx(
1516
- re,
1535
+ ce,
1517
1536
  {
1518
1537
  type: "monotone",
1519
1538
  dataKey: i,
@@ -1523,9 +1542,9 @@ const as = (t) => {
1523
1542
  i
1524
1543
  ))
1525
1544
  ] });
1526
- }, ys = (t) => {
1545
+ }, ps = (t) => {
1527
1546
  const { data: e, yKeys: s, xKey: r, tooltipKey: c, width: l } = t;
1528
- return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: Ot, children: [
1547
+ return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: $t, children: [
1529
1548
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1530
1549
  /* @__PURE__ */ o.jsx(ot, { dataKey: r }),
1531
1550
  /* @__PURE__ */ o.jsx(Y, {}),
@@ -1541,8 +1560,8 @@ const as = (t) => {
1541
1560
  ))
1542
1561
  ] });
1543
1562
  };
1544
- var ye = { NODE_ENV: "production" };
1545
- const xs = (t, e) => {
1563
+ var ge = { NODE_ENV: "production" };
1564
+ const bs = (t, e) => {
1546
1565
  if (e != null && e.length)
1547
1566
  return e;
1548
1567
  const s = [
@@ -1552,13 +1571,13 @@ const xs = (t, e) => {
1552
1571
  id: r,
1553
1572
  orientation: c === 1 ? "right" : "left"
1554
1573
  }));
1555
- }, ms = (t, e) => {
1556
- !t.type && ye.NODE_ENV;
1574
+ }, js = (t, e) => {
1575
+ !t.type && ge.NODE_ENV;
1557
1576
  const s = t.color ?? R[e % R.length], r = t.label ?? t.key, c = t.yAxisId ? { yAxisId: t.yAxisId } : {};
1558
1577
  switch (t.type) {
1559
1578
  case "area":
1560
1579
  return /* @__PURE__ */ o.jsx(
1561
- re,
1580
+ ce,
1562
1581
  {
1563
1582
  dataKey: t.key,
1564
1583
  name: r,
@@ -1572,7 +1591,7 @@ const xs = (t, e) => {
1572
1591
  );
1573
1592
  case "line":
1574
1593
  return /* @__PURE__ */ o.jsx(
1575
- ae,
1594
+ ie,
1576
1595
  {
1577
1596
  dataKey: t.key,
1578
1597
  name: r,
@@ -1600,7 +1619,7 @@ const xs = (t, e) => {
1600
1619
  default:
1601
1620
  return null;
1602
1621
  }
1603
- }, gs = (t) => {
1622
+ }, Cs = (t) => {
1604
1623
  const {
1605
1624
  data: e,
1606
1625
  xKey: s,
@@ -1610,9 +1629,9 @@ const xs = (t, e) => {
1610
1629
  showLegend: i = !0,
1611
1630
  yAxes: n
1612
1631
  } = t;
1613
- !r.length && ye.NODE_ENV;
1614
- const d = xs(r, n);
1615
- return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: on, children: [
1632
+ !r.length && ge.NODE_ENV;
1633
+ const d = bs(r, n);
1634
+ return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: dn, children: [
1616
1635
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1617
1636
  /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
1618
1637
  d.length > 0 ? d.map((a) => /* @__PURE__ */ o.jsx(
@@ -1625,9 +1644,9 @@ const xs = (t, e) => {
1625
1644
  )) : /* @__PURE__ */ o.jsx(Y, {}),
1626
1645
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1627
1646
  i && /* @__PURE__ */ o.jsx(J, {}),
1628
- r.map((a, _) => ms(a, _))
1647
+ r.map((a, _) => js(a, _))
1629
1648
  ] });
1630
- }, ps = "55%", bs = 120, js = (t) => (e) => {
1649
+ }, ws = "55%", Ns = 120, vs = (t) => (e) => {
1631
1650
  const s = Math.PI / 180, {
1632
1651
  cx: r = 0,
1633
1652
  cy: c = 0,
@@ -1640,7 +1659,7 @@ const xs = (t, e) => {
1640
1659
  payload: u,
1641
1660
  percent: h = 0,
1642
1661
  value: f = 0
1643
- } = 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, w = b >= 0 ? "start" : "end", N = u, k = String((N == null ? void 0 : N[t]) ?? "");
1662
+ } = 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, w = b >= 0 ? "start" : "end", N = u, S = String((N == null ? void 0 : N[t]) ?? "");
1644
1663
  return /* @__PURE__ */ o.jsxs("g", { children: [
1645
1664
  /* @__PURE__ */ o.jsx(
1646
1665
  "text",
@@ -1649,14 +1668,14 @@ const xs = (t, e) => {
1649
1668
  y: c,
1650
1669
  dy: 8,
1651
1670
  textAnchor: "middle",
1652
- fill: S.labelColor,
1653
- fontSize: S.fontSize + 2,
1654
- fontFamily: S.fontFamily,
1655
- children: k
1671
+ fill: A.labelColor,
1672
+ fontSize: A.fontSize + 2,
1673
+ fontFamily: A.fontFamily,
1674
+ children: S
1656
1675
  }
1657
1676
  ),
1658
1677
  /* @__PURE__ */ o.jsx(
1659
- Lt,
1678
+ Mt,
1660
1679
  {
1661
1680
  cx: r,
1662
1681
  cy: c,
@@ -1668,7 +1687,7 @@ const xs = (t, e) => {
1668
1687
  }
1669
1688
  ),
1670
1689
  /* @__PURE__ */ o.jsx(
1671
- Lt,
1690
+ Mt,
1672
1691
  {
1673
1692
  cx: r,
1674
1693
  cy: c,
@@ -1694,9 +1713,9 @@ const xs = (t, e) => {
1694
1713
  x: C + (b >= 0 ? 1 : -1) * 12,
1695
1714
  y: j,
1696
1715
  textAnchor: w,
1697
- fill: S.labelColor,
1698
- fontSize: S.fontSize + 2,
1699
- fontFamily: S.fontFamily,
1716
+ fill: A.labelColor,
1717
+ fontSize: A.fontSize + 2,
1718
+ fontFamily: A.fontFamily,
1700
1719
  children: f
1701
1720
  }
1702
1721
  ),
@@ -1707,26 +1726,26 @@ const xs = (t, e) => {
1707
1726
  y: j,
1708
1727
  dy: 18,
1709
1728
  textAnchor: w,
1710
- fill: S.labelColorMuted,
1711
- fontSize: S.fontSize,
1712
- fontFamily: S.fontFamily,
1729
+ fill: A.labelColorMuted,
1730
+ fontSize: A.fontSize,
1731
+ fontFamily: A.fontFamily,
1713
1732
  children: `(${(h * 100).toFixed(0)}%)`
1714
1733
  }
1715
1734
  )
1716
1735
  ] });
1717
- }, Cs = (t) => {
1736
+ }, Es = (t) => {
1718
1737
  const {
1719
1738
  data: e,
1720
1739
  xKey: s,
1721
1740
  yKeys: r,
1722
1741
  tooltipKey: c,
1723
- innerRadius: l = ps,
1724
- outerRadius: i = bs,
1742
+ innerRadius: l = ws,
1743
+ outerRadius: i = Ns,
1725
1744
  activeShape: n = !0,
1726
1745
  defaultIndex: d,
1727
1746
  showLegend: a = !0
1728
1747
  } = t, _ = r[0];
1729
- return /* @__PURE__ */ o.jsx(At, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(oe, { children: [
1748
+ return /* @__PURE__ */ o.jsx(Ot, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(le, { children: [
1730
1749
  /* @__PURE__ */ o.jsx(
1731
1750
  W,
1732
1751
  {
@@ -1737,7 +1756,7 @@ const xs = (t, e) => {
1737
1756
  ),
1738
1757
  a && /* @__PURE__ */ o.jsx(J, {}),
1739
1758
  /* @__PURE__ */ o.jsx(
1740
- ce,
1759
+ de,
1741
1760
  {
1742
1761
  data: e,
1743
1762
  dataKey: _,
@@ -1746,9 +1765,9 @@ const xs = (t, e) => {
1746
1765
  cy: "50%",
1747
1766
  innerRadius: l,
1748
1767
  outerRadius: i,
1749
- activeShape: n ? js(s) : void 0,
1768
+ activeShape: n ? vs(s) : void 0,
1750
1769
  children: e.map((u, h) => /* @__PURE__ */ o.jsx(
1751
- ie,
1770
+ _e,
1752
1771
  {
1753
1772
  fill: R[h % R.length]
1754
1773
  },
@@ -1758,13 +1777,13 @@ const xs = (t, e) => {
1758
1777
  )
1759
1778
  ] }) });
1760
1779
  };
1761
- function ws(t, e, s = xe) {
1780
+ function ks(t, e, s = pe) {
1762
1781
  return t <= 0 ? 0 : e <= 0 ? t : Math.max(t, e * s);
1763
1782
  }
1764
- function Ns(t, e = Os, s) {
1783
+ function Ss(t, e = Is, s) {
1765
1784
  return s !== void 0 ? s : t <= 0 ? nt : Math.max(nt, t * e);
1766
1785
  }
1767
- function vs(t, e, s) {
1786
+ function Ts(t, e, s) {
1768
1787
  if (s !== void 0)
1769
1788
  return s;
1770
1789
  const r = t.reduce((c, l) => {
@@ -1772,11 +1791,11 @@ function vs(t, e, s) {
1772
1791
  return Math.max(c, i.length);
1773
1792
  }, 0);
1774
1793
  return Math.max(
1775
- $s,
1776
- r * Rs
1794
+ qs,
1795
+ r * Ls
1777
1796
  );
1778
1797
  }
1779
- const Es = (t) => {
1798
+ const As = (t) => {
1780
1799
  const {
1781
1800
  data: e,
1782
1801
  yKeys: s,
@@ -1788,18 +1807,18 @@ const Es = (t) => {
1788
1807
  showLegend: d = !0,
1789
1808
  yKeyLabels: a,
1790
1809
  yAxisWidth: _
1791
- } = t, u = Ns(
1810
+ } = t, u = Ss(
1792
1811
  e.length,
1793
1812
  l,
1794
1813
  i
1795
- ), h = vs(e, r, _);
1814
+ ), h = Ts(e, r, _);
1796
1815
  return /* @__PURE__ */ o.jsxs(
1797
1816
  at,
1798
1817
  {
1799
1818
  height: u,
1800
1819
  layout: "vertical",
1801
1820
  data: e,
1802
- Chart: Ot,
1821
+ Chart: $t,
1803
1822
  children: [
1804
1823
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3", horizontal: !1 }),
1805
1824
  /* @__PURE__ */ o.jsx(ot, { type: "number" }),
@@ -1818,16 +1837,16 @@ const Es = (t) => {
1818
1837
  ]
1819
1838
  }
1820
1839
  );
1821
- }, ks = (t) => {
1840
+ }, Os = (t) => {
1822
1841
  const { data: e, xKey: s, yKeys: r, tooltipKey: c, width: l } = t;
1823
- return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: cn, children: [
1842
+ return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: _n, children: [
1824
1843
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1825
1844
  /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
1826
1845
  /* @__PURE__ */ o.jsx(Y, {}),
1827
1846
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1828
1847
  /* @__PURE__ */ o.jsx(J, {}),
1829
1848
  r.map((i, n) => /* @__PURE__ */ o.jsx(
1830
- ae,
1849
+ ie,
1831
1850
  {
1832
1851
  type: "monotone",
1833
1852
  dataKey: i,
@@ -1839,10 +1858,10 @@ const Es = (t) => {
1839
1858
  ))
1840
1859
  ] });
1841
1860
  };
1842
- var Ts = { NODE_ENV: "production" };
1843
- const Ss = (t) => {
1861
+ var $s = { NODE_ENV: "production" };
1862
+ const Rs = (t) => {
1844
1863
  const { data: e, xKey: s, series: r = [], tooltipKey: c, width: l } = t;
1845
- return !r.length && Ts.NODE_ENV, /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: Ot, children: [
1864
+ return !r.length && $s.NODE_ENV, /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: $t, children: [
1846
1865
  /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1847
1866
  /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
1848
1867
  /* @__PURE__ */ o.jsx(Y, {}),
@@ -1859,7 +1878,7 @@ const Ss = (t) => {
1859
1878
  i.key
1860
1879
  ))
1861
1880
  ] });
1862
- }, As = (t) => {
1881
+ }, Ds = (t) => {
1863
1882
  const { data: e, xKey: s, yKeys: r, tooltipKey: c } = t, l = ({
1864
1883
  cx: i,
1865
1884
  cy: n,
@@ -1874,19 +1893,19 @@ const Ss = (t) => {
1874
1893
  {
1875
1894
  x,
1876
1895
  y: b,
1877
- fill: S.labelColor,
1878
- color: S.labelColor,
1896
+ fill: A.labelColor,
1897
+ color: A.labelColor,
1879
1898
  textAnchor: "middle",
1880
1899
  dominantBaseline: "central",
1881
1900
  children: u
1882
1901
  }
1883
1902
  );
1884
1903
  };
1885
- return /* @__PURE__ */ o.jsx(At, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(oe, { children: [
1904
+ return /* @__PURE__ */ o.jsx(Ot, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(le, { children: [
1886
1905
  /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1887
1906
  /* @__PURE__ */ o.jsx(J, {}),
1888
1907
  /* @__PURE__ */ o.jsx(
1889
- ce,
1908
+ de,
1890
1909
  {
1891
1910
  data: e,
1892
1911
  dataKey: r[0],
@@ -1894,7 +1913,7 @@ const Ss = (t) => {
1894
1913
  label: l,
1895
1914
  outerRadius: 120,
1896
1915
  children: e.map((i, n) => /* @__PURE__ */ o.jsx(
1897
- ie,
1916
+ _e,
1898
1917
  {
1899
1918
  fill: R[n % R.length]
1900
1919
  },
@@ -1903,21 +1922,21 @@ const Ss = (t) => {
1903
1922
  }
1904
1923
  )
1905
1924
  ] }) });
1906
- }, nt = 400, xe = 56, Os = 28, $s = 100, Rs = 8, Ds = /* @__PURE__ */ new Set([
1925
+ }, nt = 400, pe = 56, Is = 28, qs = 100, Ls = 8, Ks = /* @__PURE__ */ new Set([
1907
1926
  "bar",
1908
1927
  "line",
1909
1928
  "area",
1910
1929
  "mixBar",
1911
1930
  "composed"
1912
- ]), qs = {
1913
- area: fs,
1914
- bar: ys,
1915
- composed: gs,
1916
- donut: Cs,
1917
- horizontalBar: Es,
1918
- line: ks,
1919
- mixBar: Ss,
1920
- pie: As
1931
+ ]), Bs = {
1932
+ area: gs,
1933
+ bar: ps,
1934
+ composed: Cs,
1935
+ donut: Es,
1936
+ horizontalBar: As,
1937
+ line: Os,
1938
+ mixBar: Rs,
1939
+ pie: Ds
1921
1940
  }, R = [
1922
1941
  "var(--color-primitive-palette-1-50)",
1923
1942
  "var(--color-primitive-palette-2-50)",
@@ -1936,7 +1955,7 @@ const Ss = (t) => {
1936
1955
  "var(--color-primitive-palette-15-50)",
1937
1956
  "var(--color-primitive-palette-16-50)",
1938
1957
  "var(--color-primitive-palette-17-50)"
1939
- ], S = {
1958
+ ], A = {
1940
1959
  fontFamily: "Roboto, sans-serif",
1941
1960
  fontSize: 12,
1942
1961
  labelColor: "var(--color-neutral-90)",
@@ -1944,15 +1963,15 @@ const Ss = (t) => {
1944
1963
  tooltipBg: "#fff",
1945
1964
  tooltipColor: "#000",
1946
1965
  tooltipBorderRadius: "4px"
1947
- }, Is = "_chartScrollViewport_sm5hx_1", Ls = "_chartScrollViewport_track_sm5hx_29", Yt = {
1948
- chartScrollViewport: Is,
1949
- chartScrollViewport_track: Ls
1950
- }, Ks = "Scrollable chart area", Bs = ({
1966
+ }, Ms = "_chartScrollViewport_sm5hx_1", Hs = "_chartScrollViewport_track_sm5hx_29", Zt = {
1967
+ chartScrollViewport: Ms,
1968
+ chartScrollViewport_track: Hs
1969
+ }, Gs = "Scrollable chart area", Us = ({
1951
1970
  dataLength: t,
1952
1971
  minCategoryWidth: e,
1953
1972
  children: s
1954
1973
  }) => {
1955
- const r = ut(null), [c, l] = $(0), i = e ?? xe;
1974
+ const r = ut(null), [c, l] = $(0), i = e ?? pe;
1956
1975
  U(() => {
1957
1976
  const _ = r.current;
1958
1977
  if (!_)
@@ -1964,7 +1983,7 @@ const Ss = (t) => {
1964
1983
  const h = new ResizeObserver(u);
1965
1984
  return h.observe(_), () => h.disconnect();
1966
1985
  }, []);
1967
- const n = ws(
1986
+ const n = ks(
1968
1987
  c,
1969
1988
  t,
1970
1989
  i
@@ -1993,34 +2012,34 @@ const Ss = (t) => {
1993
2012
  "div",
1994
2013
  {
1995
2014
  ref: r,
1996
- className: Yt.chartScrollViewport,
2015
+ className: Zt.chartScrollViewport,
1997
2016
  role: d ? "region" : void 0,
1998
2017
  tabIndex: d ? 0 : void 0,
1999
- "aria-label": d ? Ks : void 0,
2018
+ "aria-label": d ? Gs : void 0,
2000
2019
  onKeyDown: d ? a : void 0,
2001
2020
  children: /* @__PURE__ */ o.jsx(
2002
2021
  "div",
2003
2022
  {
2004
- className: Yt.chartScrollViewport_track,
2023
+ className: Zt.chartScrollViewport_track,
2005
2024
  style: { width: n, height: nt },
2006
2025
  children: c > 0 ? s(n) : null
2007
2026
  }
2008
2027
  )
2009
2028
  }
2010
2029
  );
2011
- }, Ms = (t) => {
2012
- const { component: e, userFlow: s, hash: r, responseKey: c, dataSource: l, ...i } = t, n = qs[i.type], { fetchDataSource: d } = G(), [a, _] = $(!1), [u, h] = $([]), f = async () => {
2030
+ }, Vs = (t) => {
2031
+ const { component: e, userFlow: s, hash: r, responseKey: c, dataSource: l, ...i } = t, n = Bs[i.type], { fetchDataSource: d } = G(), [a, _] = $(!1), [u, h] = $([]), f = async () => {
2013
2032
  var g, y;
2014
2033
  try {
2015
2034
  _(!0);
2016
- const { jsonPathData: m, mapperData: p } = l, C = Dt(
2035
+ const { jsonPathData: m, mapperData: p } = l, C = Lt(
2017
2036
  l,
2018
2037
  1
2019
2038
  ), j = await d(
2020
2039
  C,
2021
2040
  s,
2022
2041
  !1
2023
- ), w = m ? (g = fe(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;
2042
+ ), w = m ? (g = me(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;
2024
2043
  h(w), _(!1);
2025
2044
  } catch (m) {
2026
2045
  alert(JSON.stringify(m)), _(!1);
@@ -2034,15 +2053,15 @@ const Ss = (t) => {
2034
2053
  ...i,
2035
2054
  data: u
2036
2055
  };
2037
- return a ? /* @__PURE__ */ o.jsx(ne, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Ds.has(i.type) ? /* @__PURE__ */ o.jsx(
2038
- Bs,
2056
+ return a ? /* @__PURE__ */ o.jsx(ae, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Ks.has(i.type) ? /* @__PURE__ */ o.jsx(
2057
+ Us,
2039
2058
  {
2040
2059
  dataLength: u.length,
2041
2060
  minCategoryWidth: i.minCategoryWidth,
2042
2061
  children: (g) => /* @__PURE__ */ o.jsx(n, { ...x, width: g })
2043
2062
  }
2044
2063
  ) : /* @__PURE__ */ o.jsx(n, { ...x });
2045
- }, Hs = (t) => {
2064
+ }, zs = (t) => {
2046
2065
  const {
2047
2066
  userFlow: e,
2048
2067
  pageId: s,
@@ -2067,7 +2086,7 @@ const Ss = (t) => {
2067
2086
  ...(m = v.getState()[e]) == null ? void 0 : m.entries,
2068
2087
  [r]: p
2069
2088
  };
2070
- switch (I(e, C), c) {
2089
+ switch (q(e, C), c) {
2071
2090
  case "GO_TO_NEXT_UI":
2072
2091
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
2073
2092
  const w = await u(
@@ -2088,7 +2107,7 @@ const Ss = (t) => {
2088
2107
  }
2089
2108
  }, [e, s, r, c, h]), y = (_ == null ? void 0 : _.disabled) ?? x;
2090
2109
  return /* @__PURE__ */ o.jsx(
2091
- De,
2110
+ Le,
2092
2111
  {
2093
2112
  ..._,
2094
2113
  labelRight: b,
@@ -2099,14 +2118,14 @@ const Ss = (t) => {
2099
2118
  }
2100
2119
  }
2101
2120
  );
2102
- }, Gs = "_codeEditor_1wi2p_1", Us = "_codeEditor_label_1wi2p_4", Vs = "_codeEditor_wrapper_1wi2p_13", zs = "_input_1wi2p_17", Xs = "_preview_1wi2p_18", Js = "_preview_inner_1wi2p_33", tt = {
2103
- codeEditor: Gs,
2104
- codeEditor_label: Us,
2105
- codeEditor_wrapper: Vs,
2106
- input: zs,
2107
- preview: Xs,
2108
- preview_inner: Js
2109
- }, Ws = (t) => {
2121
+ }, Xs = "_codeEditor_1wi2p_1", Js = "_codeEditor_label_1wi2p_4", Ws = "_codeEditor_wrapper_1wi2p_13", Ys = "_input_1wi2p_17", Qs = "_preview_1wi2p_18", Zs = "_preview_inner_1wi2p_33", tt = {
2122
+ codeEditor: Xs,
2123
+ codeEditor_label: Js,
2124
+ codeEditor_wrapper: Ws,
2125
+ input: Ys,
2126
+ preview: Qs,
2127
+ preview_inner: Zs
2128
+ }, Fs = (t) => {
2110
2129
  const {
2111
2130
  userFlow: e,
2112
2131
  responseKey: s,
@@ -2123,39 +2142,39 @@ const Ss = (t) => {
2123
2142
  e,
2124
2143
  d
2125
2144
  ), g = a ?? b, y = {
2126
- json: Kt(),
2127
- markdown: dn(),
2128
- sql: _n(),
2129
- yaml: un()
2145
+ json: Ht(),
2146
+ markdown: hn(),
2147
+ sql: fn(),
2148
+ yaml: yn()
2130
2149
  }, m = O(() => n && r ? `${r} *` : r ?? "", [r, n]), p = (C) => {
2131
2150
  f(C);
2132
2151
  const j = {
2133
2152
  [s]: C
2134
2153
  };
2135
- I(e, j);
2154
+ q(e, j);
2136
2155
  };
2137
2156
  return /* @__PURE__ */ o.jsxs("div", { className: tt.codeEditor, children: [
2138
2157
  m && m !== "" && /* @__PURE__ */ o.jsx("label", { className: tt.codeEditor_label, children: m }),
2139
2158
  /* @__PURE__ */ o.jsxs("div", { className: tt.codeEditor_wrapper, children: [
2140
2159
  /* @__PURE__ */ o.jsx(
2141
- ln,
2160
+ un,
2142
2161
  {
2143
2162
  className: tt.input,
2144
2163
  value: h,
2145
2164
  height: u,
2146
2165
  placeholder: l,
2147
- extensions: [y[c] ?? Kt()],
2166
+ extensions: [y[c] ?? Ht()],
2148
2167
  onChange: (C) => p(C),
2149
2168
  theme: x,
2150
2169
  editable: !g
2151
2170
  }
2152
2171
  ),
2153
- c === "markdown" && _ && /* @__PURE__ */ o.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ o.jsx(se, { className: tt.preview_inner, children: h }) })
2172
+ c === "markdown" && _ && /* @__PURE__ */ o.jsx("div", { className: tt.preview, style: { height: u }, children: /* @__PURE__ */ o.jsx(oe, { className: tt.preview_inner, children: h }) })
2154
2173
  ] })
2155
2174
  ] });
2156
- }, Ys = "_slotStack_6n2wy_5", Qt = {
2157
- slotStack: Ys
2158
- }, Qs = (t) => {
2175
+ }, Ps = "_slotStack_6n2wy_5", Ft = {
2176
+ slotStack: Ps
2177
+ }, tr = (t) => {
2159
2178
  const {
2160
2179
  userFlow: e,
2161
2180
  pageId: s,
@@ -2175,9 +2194,9 @@ const Ss = (t) => {
2175
2194
  e,
2176
2195
  s,
2177
2196
  n && n.length > 0 ? n : null
2178
- ), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Qt.slotStack, children: h.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `data-card-body-${c}-${y}`)) }) : void 0, b = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Qt.slotStack, children: f.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `data-card-top-${c}-${y}`)) }) : void 0;
2197
+ ), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ft.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: Ft.slotStack, children: f.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `data-card-top-${c}-${y}`)) }) : void 0;
2179
2198
  return /* @__PURE__ */ o.jsx(
2180
- qe,
2199
+ Ke,
2181
2200
  {
2182
2201
  ..._,
2183
2202
  icon: d,
@@ -2186,13 +2205,13 @@ const Ss = (t) => {
2186
2205
  children: x
2187
2206
  }
2188
2207
  );
2189
- }, Zs = "_dividerNotFront_tze3j_1", Fs = {
2190
- dividerNotFront: Zs
2191
- }, Ps = (t) => /* @__PURE__ */ o.jsx(Ie, { ...t, className: Fs.dividerNotFront }), tr = "_drawer_13pxo_1", er = "_drawerBody_13pxo_5", nr = "_drawerFooter_13pxo_11", kt = {
2192
- drawer: tr,
2193
- drawerBody: er,
2194
- drawerFooter: nr
2195
- }, sr = ({
2208
+ }, er = "_dividerNotFront_tze3j_1", nr = {
2209
+ dividerNotFront: er
2210
+ }, sr = (t) => /* @__PURE__ */ o.jsx(Be, { ...t, className: nr.dividerNotFront }), rr = "_drawer_13pxo_1", ar = "_drawerBody_13pxo_5", or = "_drawerFooter_13pxo_11", kt = {
2211
+ drawer: rr,
2212
+ drawerBody: ar,
2213
+ drawerFooter: or
2214
+ }, cr = ({
2196
2215
  userFlow: t,
2197
2216
  pageId: e,
2198
2217
  responseKey: s,
@@ -2212,22 +2231,22 @@ const Ss = (t) => {
2212
2231
  isOpen: a,
2213
2232
  children: null
2214
2233
  }, u = L(() => {
2215
- $t(t), _t(t, !1);
2216
- }, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */ o.jsx(ee, { type: "h2", children: r }) : void 0, f = E(t, e, c), x = l ? E(t, e, l) : void 0;
2234
+ It(t), _t(t, !1);
2235
+ }, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */ o.jsx(se, { type: "h2", children: r }) : void 0, f = E(t, e, c), x = l ? E(t, e, l) : void 0;
2217
2236
  return /* @__PURE__ */ o.jsx(
2218
- Le,
2237
+ Me,
2219
2238
  {
2220
2239
  ..._,
2221
2240
  className: kt.drawer,
2222
2241
  isOpen: a,
2223
2242
  onClose: u,
2224
2243
  heightGap: 50,
2225
- title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `drawer-header-${y}`)) : h }) : void 0,
2226
- children: /* @__PURE__ */ o.jsx("section", { className: kt.drawerBody, children: f.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `drawer-body-${y}`)) }),
2227
- footer: x ? /* @__PURE__ */ o.jsx("div", { className: kt.drawerFooter, children: x.map((g, y) => /* @__PURE__ */ o.jsx(A, { children: g }, `drawer-footer-${y}`)) }) : void 0
2244
+ 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,
2245
+ children: /* @__PURE__ */ o.jsx("section", { className: kt.drawerBody, children: f.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-body-${y}`)) }),
2246
+ 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
2228
2247
  }
2229
2248
  );
2230
- }, rr = (t) => {
2249
+ }, ir = (t) => {
2231
2250
  const {
2232
2251
  userFlow: e,
2233
2252
  pageId: s,
@@ -2256,14 +2275,14 @@ const Ss = (t) => {
2256
2275
  [n, h]
2257
2276
  );
2258
2277
  return /* @__PURE__ */ o.jsx(
2259
- Ke,
2278
+ He,
2260
2279
  {
2261
2280
  disabled: d,
2262
2281
  variant: a,
2263
2282
  items: f,
2264
- children: /* @__PURE__ */ o.jsxs(A, { children: [
2283
+ children: /* @__PURE__ */ o.jsxs(k, { children: [
2265
2284
  _ ? /* @__PURE__ */ o.jsx(
2266
- Bt,
2285
+ Gt,
2267
2286
  {
2268
2287
  name: _,
2269
2288
  size: "md",
@@ -2272,7 +2291,7 @@ const Ss = (t) => {
2272
2291
  ) : null,
2273
2292
  i,
2274
2293
  u ? /* @__PURE__ */ o.jsx(
2275
- Bt,
2294
+ Gt,
2276
2295
  {
2277
2296
  name: u,
2278
2297
  size: "md",
@@ -2282,10 +2301,10 @@ const Ss = (t) => {
2282
2301
  ] })
2283
2302
  }
2284
2303
  );
2285
- }, ar = "_header_g1eri_1", or = "_header_content_g1eri_5", Zt = {
2286
- header: ar,
2287
- header_content: or
2288
- }, cr = ({ components: t = [] }) => /* @__PURE__ */ o.jsx("section", { className: et(Zt.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Zt.header_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(A, { children: e }, s)) }) }), ir = (t) => {
2304
+ }, lr = "_header_g1eri_1", dr = "_header_content_g1eri_5", Pt = {
2305
+ header: lr,
2306
+ header_content: dr
2307
+ }, _r = ({ components: t = [] }) => /* @__PURE__ */ o.jsx("section", { className: et(Pt.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Pt.header_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(k, { children: e }, s)) }) }), ur = (t) => {
2289
2308
  const {
2290
2309
  userFlow: e,
2291
2310
  pageId: s,
@@ -2312,7 +2331,7 @@ const Ss = (t) => {
2312
2331
  ...(y = v.getState()[e]) == null ? void 0 : y.entries,
2313
2332
  [r]: { status: 200 }
2314
2333
  };
2315
- switch (I(e, m), c) {
2334
+ switch (q(e, m), c) {
2316
2335
  case "GO_TO_NEXT_UI": {
2317
2336
  const p = await h(
2318
2337
  e,
@@ -2339,7 +2358,7 @@ const Ss = (t) => {
2339
2358
  }
2340
2359
  }, [c, h, s, i, r, n, e]), g = x.disabled ?? f;
2341
2360
  return /* @__PURE__ */ o.jsx(
2342
- Be,
2361
+ Ge,
2343
2362
  {
2344
2363
  ...x,
2345
2364
  disabled: g,
@@ -2347,7 +2366,7 @@ const Ss = (t) => {
2347
2366
  children: l
2348
2367
  }
2349
2368
  );
2350
- }, lr = (t) => {
2369
+ }, hr = (t) => {
2351
2370
  const {
2352
2371
  userFlow: e,
2353
2372
  pageId: s,
@@ -2378,7 +2397,7 @@ const Ss = (t) => {
2378
2397
  [i, h]
2379
2398
  );
2380
2399
  return /* @__PURE__ */ o.jsx(
2381
- Me,
2400
+ Ue,
2382
2401
  {
2383
2402
  items: f,
2384
2403
  closeOnClick: n,
@@ -2388,9 +2407,9 @@ const Ss = (t) => {
2388
2407
  variant: u
2389
2408
  }
2390
2409
  );
2391
- }, dr = "_modalContent_p06ci_1", _r = {
2392
- modalContent: dr
2393
- }, ur = ({
2410
+ }, fr = "_modalContent_p06ci_1", yr = {
2411
+ modalContent: fr
2412
+ }, xr = ({
2394
2413
  userFlow: t,
2395
2414
  pageId: e,
2396
2415
  responseKey: s,
@@ -2409,23 +2428,23 @@ const Ss = (t) => {
2409
2428
  }), _ = d && !a, u = {
2410
2429
  ...n
2411
2430
  }, h = (u == null ? void 0 : u.headerStatusColor) ?? i, f = L(() => {
2412
- $t(t), Rt(t, !1);
2431
+ It(t), qt(t, !1);
2413
2432
  }, [t, s]), x = Array.isArray(r) ? E(t, e, r) : r, b = E(t, e, c), g = E(t, e, l);
2414
2433
  return /* @__PURE__ */ o.jsx(
2415
- He,
2434
+ Ve,
2416
2435
  {
2417
2436
  ...u,
2418
2437
  headerStatusColor: h,
2419
- header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, m) => /* @__PURE__ */ o.jsx(A, { children: y }, `modal-header-${m}`)) }),
2420
- children: /* @__PURE__ */ o.jsx("section", { className: _r.modalContent, children: b.map((y, m) => /* @__PURE__ */ o.jsx(A, { children: y }, `modal-body-${m}`)) }),
2421
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((y, m) => /* @__PURE__ */ o.jsx(A, { children: y }, `modal-footer-${m}`)) }),
2438
+ header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${m}`)) }),
2439
+ children: /* @__PURE__ */ o.jsx("section", { className: yr.modalContent, children: b.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${m}`)) }),
2440
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${m}`)) }),
2422
2441
  open: _,
2423
2442
  onClose: f
2424
2443
  }
2425
2444
  );
2426
- }, hr = ({ userFlow: t, pageId: e }) => {
2445
+ }, mr = ({ userFlow: t, pageId: e }) => {
2427
2446
  var l, i;
2428
- const s = yn(t);
2447
+ const s = pn(t);
2429
2448
  if (!s)
2430
2449
  return null;
2431
2450
  const r = [
@@ -2439,9 +2458,15 @@ const Ss = (t) => {
2439
2458
  );
2440
2459
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
2441
2460
  const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
2442
- return /* @__PURE__ */ o.jsx(A, { children: n }, a);
2461
+ return /* @__PURE__ */ o.jsx(k, { children: n }, a);
2443
2462
  }) });
2444
- }, fr = {
2463
+ }, gr = [
2464
+ "success",
2465
+ "warning",
2466
+ "error",
2467
+ "info",
2468
+ "neutral"
2469
+ ], be = {
2445
2470
  success: {
2446
2471
  color: "success-opacity",
2447
2472
  textColor: "success-60",
@@ -2467,19 +2492,22 @@ const Ss = (t) => {
2467
2492
  textColor: "neutral-70",
2468
2493
  iconColor: "neutral-70"
2469
2494
  }
2470
- }, yr = (t) => {
2471
- const { content: e, variant: s = "neutral", ...r } = t, c = fr[s], l = {
2495
+ }, pr = (t) => typeof t == "string" && gr.includes(t), br = (t) => t != null && t.length ? t.length === 2 && pr(t[1]) ? [{ label: String(t[0]), variant: t[1] }] : t.map((e) => ({
2496
+ label: String(e),
2497
+ variant: "neutral"
2498
+ })) : [], jr = (t) => {
2499
+ const { content: e, variant: s = "neutral", ...r } = t, c = be[s], l = {
2472
2500
  ...r,
2473
2501
  children: e,
2474
2502
  color: (r == null ? void 0 : r.color) ?? c.color,
2475
2503
  textColor: (r == null ? void 0 : r.textColor) ?? c.textColor,
2476
2504
  iconColor: (r == null ? void 0 : r.iconColor) ?? c.iconColor
2477
2505
  };
2478
- return /* @__PURE__ */ o.jsx(Tt, { ...l });
2479
- }, xr = (t) => {
2506
+ return /* @__PURE__ */ o.jsx(St, { ...l });
2507
+ }, Cr = (t) => {
2480
2508
  const { content: e } = t;
2481
- return /* @__PURE__ */ o.jsx(se, { children: e });
2482
- }, mr = (t) => {
2509
+ return /* @__PURE__ */ o.jsx(oe, { children: e });
2510
+ }, wr = (t) => {
2483
2511
  const {
2484
2512
  userFlow: e,
2485
2513
  pageId: s,
@@ -2513,7 +2541,7 @@ const Ss = (t) => {
2513
2541
  }
2514
2542
  }, [c, l, i, r, a]);
2515
2543
  return /* @__PURE__ */ o.jsx(
2516
- Ge,
2544
+ ze,
2517
2545
  {
2518
2546
  ...u,
2519
2547
  loading: u.loading || f,
@@ -2521,8 +2549,8 @@ const Ss = (t) => {
2521
2549
  onClick: () => !h && !f && (n ?? g)()
2522
2550
  }
2523
2551
  );
2524
- }, gr = "_row_1bqj4_1", pr = "_row_column_1bqj4_65", z = {
2525
- row: gr,
2552
+ }, Nr = "_row_1bqj4_1", vr = "_row_column_1bqj4_65", z = {
2553
+ row: Nr,
2526
2554
  "row__gap-none": "_row__gap-none_1bqj4_5",
2527
2555
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
2528
2556
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -2543,7 +2571,7 @@ const Ss = (t) => {
2543
2571
  "row__align-center": "_row__align-center_1bqj4_56",
2544
2572
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
2545
2573
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
2546
- row_column: pr,
2574
+ row_column: vr,
2547
2575
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
2548
2576
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
2549
2577
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -2564,7 +2592,7 @@ const Ss = (t) => {
2564
2592
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
2565
2593
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
2566
2594
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
2567
- }, br = (t) => {
2595
+ }, Er = (t) => {
2568
2596
  const {
2569
2597
  userFlow: e,
2570
2598
  pageId: s,
@@ -2623,7 +2651,7 @@ const Ss = (t) => {
2623
2651
  }
2624
2652
  );
2625
2653
  };
2626
- function me({
2654
+ function je({
2627
2655
  userFlow: t,
2628
2656
  pageId: e,
2629
2657
  responseKey: s,
@@ -2642,7 +2670,7 @@ function me({
2642
2670
  const u = {
2643
2671
  ...(f = v.getState()[t]) == null ? void 0 : f.entries
2644
2672
  };
2645
- if (_ ? (u[s] = _, I(t, u)) : (delete u[s], xn(t, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2673
+ if (_ ? (u[s] = _, q(t, u)) : (delete u[s], bn(t, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
2646
2674
  try {
2647
2675
  const b = await c(
2648
2676
  t,
@@ -2675,21 +2703,21 @@ function me({
2675
2703
  [l, i, d]
2676
2704
  );
2677
2705
  }
2678
- const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2706
+ const kr = /\{([^}]+)\}/g, Sr = (t, e) => {
2679
2707
  var s;
2680
- return e.includes("{") ? e.replace(jr, (r, c) => {
2708
+ return e.includes("{") ? e.replace(kr, (r, c) => {
2681
2709
  var i;
2682
2710
  const l = (i = B.query(t, c.trim())) == null ? void 0 : i[0];
2683
2711
  return l != null ? String(l) : "";
2684
2712
  }) : (s = B.query(t, e)) == null ? void 0 : s[0];
2685
- }, wr = (t, e, s, r) => {
2713
+ }, Tr = (t, e, s, r) => {
2686
2714
  const c = B.query(t, e);
2687
2715
  return (c == null ? void 0 : c.map((l) => {
2688
2716
  var d;
2689
- const i = Cr(l, s), n = r ? (d = B.query(l, r)) == null ? void 0 : d[0] : l;
2717
+ const i = Sr(l, s), n = r ? (d = B.query(l, r)) == null ? void 0 : d[0] : l;
2690
2718
  return { label: i, value: n };
2691
2719
  })) ?? [];
2692
- }, Nr = (t, e, s, r = 10) => {
2720
+ }, Ar = (t, e, s, r = 10) => {
2693
2721
  var n, d;
2694
2722
  let c, l;
2695
2723
  if (s) {
@@ -2705,9 +2733,9 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2705
2733
  total: l,
2706
2734
  hasMore: i
2707
2735
  };
2708
- }, vr = "_selectNotFront_ch3v5_1", ge = {
2709
- selectNotFront: vr
2710
- }, Er = ({
2736
+ }, Or = "_selectNotFront_ch3v5_1", Ce = {
2737
+ selectNotFront: Or
2738
+ }, $r = ({
2711
2739
  userFlow: t,
2712
2740
  pageId: e,
2713
2741
  responseKey: s,
@@ -2727,10 +2755,10 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2727
2755
  const j = a != null && a.isMulti ? h : [h], w = {};
2728
2756
  return Array.isArray(j) && j.forEach((N) => {
2729
2757
  if (!N) return;
2730
- const k = JSON.stringify(N.value), D = JSON.stringify(N.label);
2731
- w[k] = N, D in w || (w[D] = N);
2758
+ const S = JSON.stringify(N.value), D = JSON.stringify(N.label);
2759
+ w[S] = N, D in w || (w[D] = N);
2732
2760
  }), w;
2733
- }, [h]), m = me({
2761
+ }, [h]), m = je({
2734
2762
  userFlow: t,
2735
2763
  pageId: e,
2736
2764
  responseKey: s,
@@ -2742,11 +2770,11 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2742
2770
  f(j), m(j);
2743
2771
  }, C = async (j, w, { page: N }) => {
2744
2772
  const {
2745
- jsonPathLabel: k,
2773
+ jsonPathLabel: S,
2746
2774
  jsonPathOptions: D,
2747
- jsonPathValue: q,
2775
+ jsonPathValue: I,
2748
2776
  jsonPathPagination: Q
2749
- } = c, V = Dt(
2777
+ } = c, V = Lt(
2750
2778
  c,
2751
2779
  N,
2752
2780
  j
@@ -2754,12 +2782,12 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2754
2782
  V,
2755
2783
  t,
2756
2784
  !1
2757
- ), H = T == null ? void 0 : T.data, ct = H ? wr(
2785
+ ), H = T == null ? void 0 : T.data, ct = H ? Tr(
2758
2786
  H,
2759
2787
  D,
2760
- k,
2761
- q
2762
- ) : [], { hasMore: bt } = Nr(
2788
+ S,
2789
+ I
2790
+ ) : [], { hasMore: bt } = Ar(
2763
2791
  H,
2764
2792
  N,
2765
2793
  Q
@@ -2773,10 +2801,10 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2773
2801
  };
2774
2802
  };
2775
2803
  return /* @__PURE__ */ o.jsx(
2776
- Ue,
2804
+ Xe,
2777
2805
  {
2778
2806
  ...a,
2779
- className: ge.selectNotFront,
2807
+ className: Ce.selectNotFront,
2780
2808
  label: g,
2781
2809
  value: h,
2782
2810
  disabled: b,
@@ -2791,7 +2819,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2791
2819
  debounceTimeout: 350
2792
2820
  }
2793
2821
  );
2794
- }, kr = ({
2822
+ }, Rr = ({
2795
2823
  userFlow: t,
2796
2824
  pageId: e,
2797
2825
  responseKey: s,
@@ -2807,7 +2835,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2807
2835
  }, { getNextUI: _ } = G(), [u, h] = $(a.value || ""), { disabled: f } = M(
2808
2836
  t,
2809
2837
  i
2810
- ), 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 = me({
2838
+ ), 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 = je({
2811
2839
  userFlow: t,
2812
2840
  pageId: e,
2813
2841
  responseKey: s,
@@ -2819,33 +2847,33 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2819
2847
  h(m), g(m);
2820
2848
  };
2821
2849
  return /* @__PURE__ */ o.jsx(
2822
- Ve,
2850
+ Je,
2823
2851
  {
2824
2852
  ...a,
2825
- className: ge.selectNotFront,
2853
+ className: Ce.selectNotFront,
2826
2854
  label: b,
2827
2855
  value: u,
2828
2856
  disabled: x,
2829
2857
  onChange: (m) => !x && y(m)
2830
2858
  }
2831
2859
  );
2832
- }, Tr = (t) => {
2860
+ }, Dr = (t) => {
2833
2861
  const { dataSource: e } = t;
2834
- return e ? /* @__PURE__ */ o.jsx(Er, { ...t }) : /* @__PURE__ */ o.jsx(kr, { ...t });
2835
- }, Sr = "_spacing_19hqa_1", Ar = "_spacing__xxs_19hqa_1", Or = "_spacing__xs_19hqa_4", $r = "_spacing__sm_19hqa_7", Rr = "_spacing__md_19hqa_10", Dr = "_spacing__lg_19hqa_13", qr = "_spacing__xl_19hqa_16", Ir = "_spacing__xxl_19hqa_19", Lr = "_spacing__xxxl_19hqa_22", Ft = {
2836
- spacing: Sr,
2837
- spacing__xxs: Ar,
2838
- spacing__xs: Or,
2839
- spacing__sm: $r,
2840
- spacing__md: Rr,
2841
- spacing__lg: Dr,
2842
- spacing__xl: qr,
2843
- spacing__xxl: Ir,
2844
- spacing__xxxl: Lr
2845
- }, Kr = (t) => {
2846
- const { size: e } = t, s = et(Ft.spacing, Ft[`spacing__${e}`]);
2862
+ return e ? /* @__PURE__ */ o.jsx($r, { ...t }) : /* @__PURE__ */ o.jsx(Rr, { ...t });
2863
+ }, Ir = "_spacing_19hqa_1", qr = "_spacing__xxs_19hqa_1", Lr = "_spacing__xs_19hqa_4", Kr = "_spacing__sm_19hqa_7", Br = "_spacing__md_19hqa_10", Mr = "_spacing__lg_19hqa_13", Hr = "_spacing__xl_19hqa_16", Gr = "_spacing__xxl_19hqa_19", Ur = "_spacing__xxxl_19hqa_22", te = {
2864
+ spacing: Ir,
2865
+ spacing__xxs: qr,
2866
+ spacing__xs: Lr,
2867
+ spacing__sm: Kr,
2868
+ spacing__md: Br,
2869
+ spacing__lg: Mr,
2870
+ spacing__xl: Hr,
2871
+ spacing__xxl: Gr,
2872
+ spacing__xxxl: Ur
2873
+ }, Vr = (t) => {
2874
+ const { size: e } = t, s = et(te.spacing, te[`spacing__${e}`]);
2847
2875
  return /* @__PURE__ */ o.jsx("div", { className: s });
2848
- }, Br = (t) => {
2876
+ }, zr = (t) => {
2849
2877
  const {
2850
2878
  userFlow: e,
2851
2879
  pageId: s,
@@ -2870,7 +2898,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2870
2898
  ...(m = v.getState()[e]) == null ? void 0 : m.entries,
2871
2899
  [r]: p
2872
2900
  };
2873
- switch (I(e, C), c) {
2901
+ switch (q(e, C), c) {
2874
2902
  case "GO_TO_NEXT_UI":
2875
2903
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
2876
2904
  const w = await u(
@@ -2891,7 +2919,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2891
2919
  }
2892
2920
  }, [e, s, r, c, h]);
2893
2921
  return /* @__PURE__ */ o.jsx(
2894
- ze,
2922
+ We,
2895
2923
  {
2896
2924
  ..._,
2897
2925
  label: g,
@@ -2900,19 +2928,31 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2900
2928
  onChange: () => !b && y()
2901
2929
  }
2902
2930
  );
2903
- }, Mr = "_tableSkeleton_3nr9n_1", Hr = "_tableArrayPills_3nr9n_7", pe = {
2904
- tableSkeleton: Mr,
2905
- tableArrayPills: Hr
2906
- }, Gr = ({ values: t }) => {
2907
- const s = t == null ? void 0 : t.slice(0, 4), r = (t == null ? void 0 : t.length) - 4;
2908
- return /* @__PURE__ */ o.jsxs("div", { className: pe.tableArrayPills, children: [
2909
- s.map((c, l) => /* @__PURE__ */ o.jsx(Tt, { children: String(c) }, l)),
2910
- r > 0 && /* @__PURE__ */ o.jsxs(Tt, { outlined: !0, children: [
2931
+ }, Xr = "_tableSkeleton_3nr9n_1", Jr = "_tableArrayPills_3nr9n_7", we = {
2932
+ tableSkeleton: Xr,
2933
+ tableArrayPills: Jr
2934
+ }, Wr = ({ values: t }) => {
2935
+ const s = br(t ?? []), r = s.slice(0, 4), c = s.length - 4;
2936
+ return /* @__PURE__ */ o.jsxs("div", { className: we.tableArrayPills, children: [
2937
+ r.map((l, i) => {
2938
+ const n = be[l.variant];
2939
+ return /* @__PURE__ */ o.jsx(
2940
+ St,
2941
+ {
2942
+ color: n.color,
2943
+ textColor: n.textColor,
2944
+ iconColor: n.iconColor,
2945
+ children: l.label
2946
+ },
2947
+ `${l.label}-${l.variant}-${i}`
2948
+ );
2949
+ }),
2950
+ c > 0 && /* @__PURE__ */ o.jsxs(St, { outlined: !0, children: [
2911
2951
  "+",
2912
- r
2952
+ c
2913
2953
  ] })
2914
2954
  ] });
2915
- }, Ur = ({
2955
+ }, Yr = ({
2916
2956
  userFlow: t,
2917
2957
  pageId: e,
2918
2958
  tableResponseKey: s,
@@ -2935,7 +2975,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2935
2975
  [u]: { status: 200 },
2936
2976
  [s]: [{ ...c }]
2937
2977
  };
2938
- switch (I(t, y), _) {
2978
+ switch (q(t, y), _) {
2939
2979
  case "GO_TO_NEXT_UI": {
2940
2980
  const m = await l(
2941
2981
  t,
@@ -2977,7 +3017,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2977
3017
  content: j == null ? void 0 : j.data
2978
3018
  }
2979
3019
  };
2980
- I(t, w);
3020
+ q(t, w);
2981
3021
  const N = await l(
2982
3022
  t,
2983
3023
  e,
@@ -2995,18 +3035,18 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
2995
3035
  alert(JSON.stringify(y));
2996
3036
  }
2997
3037
  }, [_, h, e, u, t]);
2998
- return we(a, {
3038
+ return ke(a, {
2999
3039
  onClick: f
3000
3040
  });
3001
- }, Vr = () => /* @__PURE__ */ o.jsx("div", { className: pe.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ o.jsx(
3002
- ne,
3041
+ }, Qr = () => /* @__PURE__ */ o.jsx("div", { className: we.tableSkeleton, children: [...Array(10)].map((t, e) => /* @__PURE__ */ o.jsx(
3042
+ ae,
3003
3043
  {
3004
3044
  maxWidth: "100%",
3005
3045
  height: 42,
3006
3046
  radius: 8
3007
3047
  },
3008
3048
  `tableSkeletonBase${e}`
3009
- )) }), zr = (t, e) => !(e != null && e.length) || !t ? t : t.map((s) => e.some(
3049
+ )) }), Zr = (t, e) => !(e != null && e.length) || !t ? t : t.map((s) => e.some(
3010
3050
  (c) => Array.isArray(
3011
3051
  s != null && s.accessor ? c[s == null ? void 0 : s.accessor] : void 0
3012
3052
  )
@@ -3014,9 +3054,9 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3014
3054
  ...s,
3015
3055
  renderCell: (c) => {
3016
3056
  const l = s.accessor ? c[s.accessor] : void 0;
3017
- return Array.isArray(l) ? /* @__PURE__ */ o.jsx(Gr, { values: l }) : l ?? "";
3057
+ return Array.isArray(l) ? /* @__PURE__ */ o.jsx(Wr, { values: l }) : l ?? "";
3018
3058
  }
3019
- } : s), Xr = ({
3059
+ } : s), Fr = ({
3020
3060
  userFlow: t,
3021
3061
  pageId: e,
3022
3062
  responseKey: s,
@@ -3034,7 +3074,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3034
3074
  if (l != null && l.length)
3035
3075
  return l.map((T, H) => ({
3036
3076
  renderContent: (ct) => /* @__PURE__ */ o.jsx(
3037
- Ur,
3077
+ Yr,
3038
3078
  {
3039
3079
  userFlow: t,
3040
3080
  pageId: e,
@@ -3061,29 +3101,29 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3061
3101
  it && T === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
3062
3102
  try {
3063
3103
  u(!0);
3064
- const jt = it ? m.current.get(T) ?? null : null, be = Dt(
3104
+ const jt = it ? m.current.get(T) ?? null : null, Ne = Lt(
3065
3105
  c,
3066
3106
  T,
3067
3107
  void 0,
3068
3108
  jt
3069
3109
  ), Z = await a(
3070
- be,
3110
+ Ne,
3071
3111
  t,
3072
3112
  !1
3073
3113
  );
3074
3114
  if (b(
3075
- fe(
3115
+ me(
3076
3116
  Z == null ? void 0 : Z.data,
3077
3117
  ct,
3078
3118
  H,
3079
3119
  bt
3080
3120
  )
3081
3121
  ), it) {
3082
- const qt = us(
3122
+ const Kt = xs(
3083
3123
  Z == null ? void 0 : Z.data,
3084
3124
  it
3085
3125
  );
3086
- qt && m.current.set(T + 1, qt);
3126
+ Kt && m.current.set(T + 1, Kt);
3087
3127
  }
3088
3128
  u(!1);
3089
3129
  } catch (jt) {
@@ -3095,7 +3135,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3095
3135
  U(() => {
3096
3136
  g || C();
3097
3137
  }, []);
3098
- const w = g ? i : x == null ? void 0 : x.items, N = g && !!n && ((i == null ? void 0 : i.length) ?? 0) > n, k = O(() => {
3138
+ const w = g ? i : x == null ? void 0 : x.items, N = g && !!n && ((i == null ? void 0 : i.length) ?? 0) > n, S = O(() => {
3099
3139
  if (!N || !i || !n)
3100
3140
  return w ?? [];
3101
3141
  const T = (h - 1) * n;
@@ -3107,19 +3147,19 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3107
3147
  h,
3108
3148
  w
3109
3149
  ]), D = O(
3110
- () => zr(
3150
+ () => Zr(
3111
3151
  d.columns,
3112
3152
  w
3113
3153
  ),
3114
3154
  [w, d.columns]
3115
- ), q = {
3155
+ ), I = {
3116
3156
  ...d,
3117
- data: k,
3157
+ data: S,
3118
3158
  columns: D ?? [],
3119
3159
  rightActions: p
3120
3160
  };
3121
3161
  return g ? !w || w.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: [
3122
- /* @__PURE__ */ o.jsx(It, { ...q }),
3162
+ /* @__PURE__ */ o.jsx(Bt, { ...I }),
3123
3163
  N && n && i && /* @__PURE__ */ o.jsx(
3124
3164
  Ct,
3125
3165
  {
@@ -3130,8 +3170,8 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3130
3170
  onChange: f
3131
3171
  }
3132
3172
  )
3133
- ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Vr, {}) : x && ((V = x == null ? void 0 : x.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3134
- /* @__PURE__ */ o.jsx(It, { ...q }),
3173
+ ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Qr, {}) : x && ((V = x == null ? void 0 : x.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3174
+ /* @__PURE__ */ o.jsx(Bt, { ...I }),
3135
3175
  !y && (x == null ? void 0 : x.pagination) && x.pagination.totalPages > 1 && /* @__PURE__ */ o.jsx(
3136
3176
  Ct,
3137
3177
  {
@@ -3153,12 +3193,12 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3153
3193
  }
3154
3194
  )
3155
3195
  ] }) : /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
3156
- }, Jr = "_tabsPanel_kvslb_1", Wr = {
3157
- tabsPanel: Jr
3158
- }, Yr = ({ userFlow: t, pageId: e, components: s }) => {
3196
+ }, Pr = "_tabsPanel_kvslb_1", ta = {
3197
+ tabsPanel: Pr
3198
+ }, ea = ({ userFlow: t, pageId: e, components: s }) => {
3159
3199
  const r = E(t, e, s);
3160
- return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: Wr.tabsPanel, children: r.map((c, l) => /* @__PURE__ */ o.jsx(A, { children: c }, `tabs-panel-${l}`)) }) : null;
3161
- }, Qr = ({
3200
+ return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: ta.tabsPanel, children: r.map((c, l) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${l}`)) }) : null;
3201
+ }, na = ({
3162
3202
  userFlow: t,
3163
3203
  pageId: e,
3164
3204
  hash: s,
@@ -3171,7 +3211,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3171
3211
  label: a.label,
3172
3212
  disabled: a.disabled,
3173
3213
  children: /* @__PURE__ */ o.jsx(
3174
- Yr,
3214
+ ea,
3175
3215
  {
3176
3216
  userFlow: t,
3177
3217
  pageId: e,
@@ -3185,10 +3225,10 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3185
3225
  ...(u = v.getState()[t]) == null ? void 0 : u.entries,
3186
3226
  [i]: a
3187
3227
  };
3188
- I(t, _);
3228
+ q(t, _);
3189
3229
  };
3190
3230
  return /* @__PURE__ */ o.jsx(
3191
- Xe,
3231
+ Ye,
3192
3232
  {
3193
3233
  className: l,
3194
3234
  activeIndex: c,
@@ -3196,7 +3236,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3196
3236
  onClick: d
3197
3237
  }
3198
3238
  );
3199
- }, Zr = (t) => {
3239
+ }, sa = (t) => {
3200
3240
  const {
3201
3241
  userFlow: e,
3202
3242
  pageId: s,
@@ -3214,12 +3254,12 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3214
3254
  ), 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) => {
3215
3255
  var m;
3216
3256
  const y = (m = g == null ? void 0 : g.target) == null ? void 0 : m.value;
3217
- u(y), I(e, { [l]: y });
3257
+ u(y), q(e, { [l]: y });
3218
3258
  };
3219
3259
  return U(() => {
3220
3260
  u((a == null ? void 0 : a.value) ?? "");
3221
3261
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
3222
- Je,
3262
+ Qe,
3223
3263
  {
3224
3264
  ...a,
3225
3265
  label: x,
@@ -3228,9 +3268,9 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3228
3268
  onChange: (g) => !f && b(g)
3229
3269
  }
3230
3270
  );
3231
- }, Fr = "_textFieldNotFront_1n8fy_1", Pr = {
3232
- textFieldNotFront: Fr
3233
- }, ta = (t) => {
3271
+ }, ra = "_textFieldNotFront_1n8fy_1", aa = {
3272
+ textFieldNotFront: ra
3273
+ }, oa = (t) => {
3234
3274
  const {
3235
3275
  userFlow: e,
3236
3276
  pageId: s,
@@ -3252,15 +3292,15 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3252
3292
  const m = {
3253
3293
  [l]: y
3254
3294
  };
3255
- I(e, m);
3295
+ q(e, m);
3256
3296
  };
3257
3297
  return U(() => {
3258
3298
  u((a == null ? void 0 : a.value) ?? "");
3259
3299
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
3260
- We,
3300
+ Ze,
3261
3301
  {
3262
3302
  ...a,
3263
- className: Pr.textFieldNotFront,
3303
+ className: aa.textFieldNotFront,
3264
3304
  allowClear: !1,
3265
3305
  label: x,
3266
3306
  value: _,
@@ -3268,7 +3308,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3268
3308
  onChange: (g) => !f && b(g)
3269
3309
  }
3270
3310
  );
3271
- }, ea = ({
3311
+ }, ca = ({
3272
3312
  userFlow: t,
3273
3313
  pageId: e,
3274
3314
  responseKey: s,
@@ -3278,7 +3318,7 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3278
3318
  redirectUrl: i
3279
3319
  }) => {
3280
3320
  const n = L(async () => {
3281
- $t(t);
3321
+ It(t);
3282
3322
  try {
3283
3323
  switch (l) {
3284
3324
  case "AUTOCLOSE_AND_REDIRECT":
@@ -3304,10 +3344,10 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3304
3344
  onClose: n
3305
3345
  });
3306
3346
  }, [n, t]), null;
3307
- }, na = "_tooltipNotFront_106iw_1", sa = "_tooltipNotFront_content_106iw_5", Pt = {
3308
- tooltipNotFront: na,
3309
- tooltipNotFront_content: sa
3310
- }, ra = (t) => {
3347
+ }, ia = "_tooltipNotFront_106iw_1", la = "_tooltipNotFront_content_106iw_5", ee = {
3348
+ tooltipNotFront: ia,
3349
+ tooltipNotFront_content: la
3350
+ }, da = (t) => {
3311
3351
  const {
3312
3352
  userFlow: e,
3313
3353
  pageId: s,
@@ -3323,11 +3363,11 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3323
3363
  e,
3324
3364
  s,
3325
3365
  i != null && i.length ? i : null
3326
- ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Pt.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(A, { children: f }, `tooltip-${c}-${x}`)) }) : null;
3366
+ ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: ee.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(k, { children: f }, `tooltip-${c}-${x}`)) }) : null;
3327
3367
  return /* @__PURE__ */ o.jsx(
3328
- Ye,
3368
+ Fe,
3329
3369
  {
3330
- className: Pt.tooltipNotFront,
3370
+ className: ee.tooltipNotFront,
3331
3371
  label: n,
3332
3372
  placement: d,
3333
3373
  notShowArrow: a,
@@ -3336,13 +3376,13 @@ const jr = /\{([^}]+)\}/g, Cr = (t, e) => {
3336
3376
  }
3337
3377
  );
3338
3378
  };
3339
- function wa({
3379
+ function Aa({
3340
3380
  sessionName: t,
3341
3381
  apiConfig: e,
3342
3382
  onResolveComponentProps: s,
3343
3383
  children: r
3344
3384
  }) {
3345
- const c = la(
3385
+ const c = ya(
3346
3386
  t,
3347
3387
  e,
3348
3388
  null,
@@ -3353,7 +3393,7 @@ function wa({
3353
3393
  r
3354
3394
  ] });
3355
3395
  }
3356
- const aa = { api: "", headers: {} }, oa = ({
3396
+ const _a = { api: "", headers: {} }, ua = ({
3357
3397
  userFlow: t,
3358
3398
  components: e,
3359
3399
  hash: s,
@@ -3362,7 +3402,7 @@ const aa = { api: "", headers: {} }, oa = ({
3362
3402
  const c = s ?? `${t}-page`;
3363
3403
  $(() => {
3364
3404
  var d, a;
3365
- return (a = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && a[c] || yt(t, r ?? aa, {
3405
+ return (a = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && a[c] || yt(t, r ?? _a, {
3366
3406
  type: "page",
3367
3407
  hash: c,
3368
3408
  body: { components: e }
@@ -3371,21 +3411,21 @@ const aa = { api: "", headers: {} }, oa = ({
3371
3411
  const l = E(t, c, e);
3372
3412
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: l });
3373
3413
  };
3374
- function ca(t) {
3414
+ function ha(t) {
3375
3415
  if (t == null || typeof t != "object" || !("components" in t) || !Array.isArray(t.components))
3376
3416
  throw new Error(
3377
3417
  "[renderNotFront] payload.display must be an object with a `components` array"
3378
3418
  );
3379
3419
  return t.components;
3380
3420
  }
3381
- const ia = ({ payload: t, userFlow: e }) => {
3382
- const s = ca(t.display), r = oa({
3421
+ const fa = ({ payload: t, userFlow: e }) => {
3422
+ const s = ha(t.display), r = ua({
3383
3423
  userFlow: e,
3384
3424
  hash: t.id,
3385
3425
  components: s
3386
3426
  });
3387
3427
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: r });
3388
- }, Na = ia, te = (t, e, s, r, c) => {
3428
+ }, Oa = fa, ne = (t, e, s, r, c) => {
3389
3429
  const l = E(
3390
3430
  t,
3391
3431
  e,
@@ -3395,7 +3435,7 @@ const ia = ({ payload: t, userFlow: e }) => {
3395
3435
  switch (s) {
3396
3436
  case "body":
3397
3437
  return /* @__PURE__ */ o.jsx(
3398
- Un,
3438
+ Jn,
3399
3439
  {
3400
3440
  ...r,
3401
3441
  inputs: l || []
@@ -3404,7 +3444,7 @@ const ia = ({ payload: t, userFlow: e }) => {
3404
3444
  );
3405
3445
  case "header":
3406
3446
  return /* @__PURE__ */ o.jsx(
3407
- cr,
3447
+ _r,
3408
3448
  {
3409
3449
  ...r,
3410
3450
  components: l || []
@@ -3414,21 +3454,21 @@ const ia = ({ payload: t, userFlow: e }) => {
3414
3454
  default:
3415
3455
  return null;
3416
3456
  }
3417
- }, la = (t, e, s, r) => {
3457
+ }, ya = (t, e, s, r) => {
3418
3458
  var g, y;
3419
3459
  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;
3420
3460
  U(() => {
3421
3461
  if (typeof window > "u") return;
3422
3462
  const m = new URL(window.location.href), p = m.searchParams.get("sessionId");
3423
- p && (sessionStorage.setItem("sessionId", p), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
3463
+ p && (Dt(p), m.searchParams.delete("sessionId"), window.history.replaceState({}, "", m.toString()));
3424
3464
  }, []);
3425
- const f = _ ? te(
3465
+ const f = _ ? ne(
3426
3466
  t,
3427
3467
  _,
3428
3468
  "header",
3429
3469
  ((g = a == null ? void 0 : a.pages[_].page) == null ? void 0 : g.header) || null,
3430
3470
  r
3431
- ) : null, x = _ ? te(
3471
+ ) : null, x = _ ? ne(
3432
3472
  t,
3433
3473
  _,
3434
3474
  "body",
@@ -3436,11 +3476,17 @@ const ia = ({ payload: t, userFlow: e }) => {
3436
3476
  r
3437
3477
  ) : null, b = async () => {
3438
3478
  try {
3439
- const m = await ue(
3479
+ const m = await ye(
3440
3480
  e,
3441
3481
  t
3442
3482
  ), p = m == null ? void 0 : m.data, C = p == null ? void 0 : p.content;
3443
- (m == null ? void 0 : m.status) === 200 ? yt(t, e, C, p == null ? void 0 : p.sessionState) : l(!0);
3483
+ (m == null ? void 0 : m.status) === 200 ? yt(
3484
+ t,
3485
+ e,
3486
+ C,
3487
+ p == null ? void 0 : p.sessionState,
3488
+ p == null ? void 0 : p.sessionId
3489
+ ) : l(!0);
3444
3490
  } catch (m) {
3445
3491
  console.error("[not-page]: API call failed", m), l(!0);
3446
3492
  } finally {
@@ -3461,22 +3507,23 @@ const ia = ({ payload: t, userFlow: e }) => {
3461
3507
  window.removeEventListener(m, p);
3462
3508
  };
3463
3509
  }, []), c && console.error("[not-page]: No render page"), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3464
- h && /* @__PURE__ */ o.jsx(Qe, {}),
3510
+ h && /* @__PURE__ */ o.jsx(Pe, {}),
3465
3511
  f,
3466
3512
  x,
3467
- _ && /* @__PURE__ */ o.jsx(hr, { userFlow: t, pageId: _ }),
3468
- a && /* @__PURE__ */ o.jsx(Ze, {})
3513
+ _ && /* @__PURE__ */ o.jsx(mr, { userFlow: t, pageId: _ }),
3514
+ a && /* @__PURE__ */ o.jsx(tn, {})
3469
3515
  ] });
3470
3516
  };
3471
3517
  export {
3472
- Ms as Chart,
3473
- wa as NotFrontPage,
3474
- ia as RenderNotFront,
3475
- br as Row,
3476
- ca as extractNotFrontComponents,
3477
- wn as heading,
3478
- Na as renderNotFront,
3479
- Nn as text,
3480
- oa as useNotFrontFragment,
3481
- la as usePage
3518
+ Vs as Chart,
3519
+ Aa as NotFrontPage,
3520
+ fa as RenderNotFront,
3521
+ Er as Row,
3522
+ Ta as clearSessionId,
3523
+ ha as extractNotFrontComponents,
3524
+ kn as heading,
3525
+ Oa as renderNotFront,
3526
+ Sn as text,
3527
+ ua as useNotFrontFragment,
3528
+ ya as usePage
3482
3529
  };