@foris/avocado-not-front 5.2.8 → 5.2.10

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