@foris/avocado-not-front 5.2.2 → 5.2.4

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