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