@foris/avocado-not-front 5.2.1 → 5.2.2

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