@foris/avocado-not-front 5.2.4 → 5.2.6

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