@foris/avocado-not-front 5.2.7 → 5.2.9

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,69 +1,67 @@
1
1
  import X from "axios";
2
- import { create as Ee } from "zustand";
3
- import ke, { useMemo as O, useState as $, useCallback as L, Fragment as k, useEffect as U, useRef as ut, cloneElement as Se } from "react";
4
- import { Heading as re, Text as ae, Accordion as Te, ThemeStore as ht, Box as Ae, RadioButton as Oe, Stepper as $e, ProgressBar as Re, Breadcrumbs as De, Button as qe, CardAccordion as Ie, Card as Le, CardNotification as xt, SkeletonBase as oe, Checkbox as Ke, PreviewerMarkdown as ce, DataCard as Be, Divider as Me, Drawer as He, DropdownButton as Ge, Link as Ue, Menu as Ve, Modal as ze, Pill as St, RoundButton as Xe, SelectPagination as Je, Select as We, Switch as Ye, Table as Bt, Pager as Ct, Tabs as Qe, Textarea as Ze, TextField as Fe, toast as lt, Tooltip as Pe, Loading as tn, Toaster as en } from "@foris/avocado-suite";
5
- import { ChatPanel as nn, PromptCodeEditor as sn, SummaryCard as rn } from "@foris/ai-agent";
6
- import B from "jsonpath";
7
- import { ResponsiveContainer as Ot, Legend as an, Tooltip as on, XAxis as cn, YAxis as ln, AreaChart as dn, CartesianGrid as st, Area as ie, BarChart as $t, Bar as gt, ComposedChart as _n, Line as le, PieChart as de, Pie as _e, Cell as ue, Sector as Mt, LineChart as un } from "recharts";
8
- import hn from "@uiw/react-codemirror";
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
+ import M from "jsonpath";
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";
10
+ import { markdown as xn } from "@codemirror/lang-markdown";
11
11
  import { sql as yn } from "@codemirror/lang-sql";
12
- import { yaml as xn } from "@codemirror/lang-yaml";
13
- import { Icon as Gt } from "@foris/avocado-icons";
14
- const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
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
- }, $a = () => {
16
+ }, Ka = () => {
17
17
  sessionStorage.removeItem(Rt);
18
- }, v = Ee(() => ({})), yt = (t, e, s, r, c) => {
19
- Dt(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
  }
40
40
  }
41
41
  };
42
42
  });
43
- }, he = (t, e, s) => {
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
- Dt(s), v.setState((l) => {
52
- const i = l[t] ?? {}, n = i.entries ?? {}, d = he(
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,29 +69,29 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (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 = he(
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
  });
96
- }, qt = (t) => {
94
+ }, Lt = (t) => {
97
95
  v.setState((e) => ({
98
96
  ...e,
99
97
  [t]: {
@@ -101,27 +99,27 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (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
124
  }, I = (t, e) => {
127
125
  v.setState((s) => {
@@ -138,20 +136,20 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (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
  });
@@ -194,45 +192,45 @@ const Rt = "sessionId", mn = () => sessionStorage.getItem(Rt), Dt = (t) => {
194
192
  } : s;
195
193
  });
196
194
  };
197
- let Nt = !1, mt = [], Vt = !1;
198
- const Cn = (t) => t._userFlow || null, zt = (t) => {
199
- mt.forEach(({ resolve: e, reject: s }) => {
195
+ let wt = !1, gt = [], zt = !1;
196
+ const wn = (t) => t._userFlow || null, Xt = (t) => {
197
+ gt.forEach(({ resolve: e, reject: s }) => {
200
198
  t ? s(t) : e(void 0);
201
- }), mt = [];
199
+ }), gt = [];
202
200
  }, Nn = async (t) => {
203
- var r, c;
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
- if (Nt)
213
- return new Promise((a, _) => {
214
- mt.push({ resolve: a, reject: _ });
215
- }).then(() => X(e)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
216
- e._retry = !0, Nt = !0;
210
+ if (wt)
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)));
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" ? Ut(l, JSON.stringify(a)) : Ut(l, a)), e.headers || (e.headers = {}), Object.assign(e.headers, a), zt(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
- mt.length
233
- ), zt(a), Promise.reject(a);
230
+ gt.length
231
+ ), Xt(l), Promise.reject(l);
234
232
  } finally {
235
- Nt = !1;
233
+ wt = !1;
236
234
  }
237
235
  } else
238
236
  console.warn(
@@ -245,20 +243,20 @@ const Cn = (t) => t._userFlow || null, zt = (t) => {
245
243
  );
246
244
  }
247
245
  return Promise.reject(t);
248
- }, wn = () => {
249
- if (Vt) {
246
+ }, vn = () => {
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, Nn), console.debug("[axiosInterceptors] Response error interceptor registered"), Vt = !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
- wn();
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
- var wt = { exports: {} }, dt = {};
259
+ var Nt = { exports: {} }, dt = {};
262
260
  /**
263
261
  * @license React
264
262
  * react-jsx-runtime.production.min.js
@@ -268,46 +266,46 @@ var wt = { exports: {} }, dt = {};
268
266
  * This source code is licensed under the MIT license found in the
269
267
  * LICENSE file in the root directory of this source tree.
270
268
  */
271
- var Xt;
272
- function En() {
273
- if (Xt) return dt;
274
- Xt = 1;
275
- var t = ke, e = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, c = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
276
- 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 };
282
- }
283
- return dt.Fragment = s, dt.jsx = i, dt.jsxs = i, dt;
284
- }
285
269
  var Jt;
286
270
  function kn() {
287
- return Jt || (Jt = 1, wt.exports = En()), wt.exports;
271
+ if (Jt) return dt;
272
+ Jt = 1;
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 };
280
+ }
281
+ return dt.Fragment = s, dt.jsx = c, dt.jsxs = c, dt;
288
282
  }
289
- var o = kn();
290
- const Sn = (t) => {
283
+ var Wt;
284
+ function Sn() {
285
+ return Wt || (Wt = 1, Nt.exports = kn()), Nt.exports;
286
+ }
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,69 +322,69 @@ const Sn = (t) => {
324
322
  onResolveProps: r == null ? void 0 : r.aiSummaryCard
325
323
  }
326
324
  ),
327
- aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: t, pageId: e }),
328
- box: (n) => /* @__PURE__ */ o.jsx(Zn, { ...n, userFlow: t, pageId: e }),
329
- breadcrumbs: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: t, pageId: e }),
330
- tooltip: (n) => /* @__PURE__ */ o.jsx(ha, { ...n, userFlow: t, pageId: e }),
331
- textarea: (n) => /* @__PURE__ */ o.jsx(oa, { ...n, userFlow: t, pageId: e }),
332
- card: (n) => /* @__PURE__ */ o.jsx(ys, { ...n, userFlow: t, pageId: e }),
333
- dropdownButton: (n) => /* @__PURE__ */ o.jsx(lr, { ...n, userFlow: t, pageId: e }),
334
- menu: (n) => /* @__PURE__ */ o.jsx(fr, { ...n, userFlow: t, pageId: e }),
335
- radioGroup: (n) => /* @__PURE__ */ o.jsx(os, { ...n, userFlow: t, pageId: e }),
336
- stepper: (n) => /* @__PURE__ */ o.jsx(cs, { ...n, userFlow: t, pageId: e }),
337
- progressBar: (n) => /* @__PURE__ */ o.jsx(is, { ...n, userFlow: t, pageId: e }),
338
- button: (n) => /* @__PURE__ */ o.jsx(ds, { ...n, userFlow: t, pageId: e }),
339
- cardAccordion: (n) => /* @__PURE__ */ o.jsx(us, { ...n, userFlow: t, pageId: e }),
340
- cardNotification: (n) => /* @__PURE__ */ o.jsx(xs, { ...n, userFlow: t, pageId: e }),
341
- chart: (n) => /* @__PURE__ */ o.jsx(zs, { ...n, userFlow: t }),
342
- dataCard: (n) => /* @__PURE__ */ o.jsx(er, { ...n, userFlow: t, pageId: e }),
343
- checkbox: (n) => /* @__PURE__ */ o.jsx(Xs, { ...n, userFlow: t, pageId: e }),
344
- code: (n) => /* @__PURE__ */ o.jsx(Ps, { ...n, userFlow: t, pageId: e }),
345
- divider: (n) => /* @__PURE__ */ o.jsx(rr, { ...n }),
346
- drawer: (n) => /* @__PURE__ */ o.jsx(ir, { ...n, userFlow: t, pageId: e }),
347
- heading: (n) => Sn(n),
348
- link: (n) => /* @__PURE__ */ o.jsx(hr, { ...n, userFlow: t, pageId: e }),
349
- pill: (n) => /* @__PURE__ */ o.jsx(Cr, { ...n }),
350
- previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Nr, { ...n }),
351
- modal: (n) => /* @__PURE__ */ o.jsx(mr, { ...n, userFlow: t, pageId: e }),
352
- roundButton: (n) => /* @__PURE__ */ o.jsx(wr, { ...n, userFlow: t, pageId: e }),
353
- row: (n) => /* @__PURE__ */ o.jsx(kr, { ...n, userFlow: t, pageId: e }),
354
- select: (n) => /* @__PURE__ */ o.jsx(qr, { ...n, userFlow: t, pageId: e }),
355
- switch: (n) => /* @__PURE__ */ o.jsx(Xr, { ...n, userFlow: t, pageId: e }),
356
- spacing: (n) => /* @__PURE__ */ o.jsx(zr, { ...n, userFlow: t, pageId: e }),
357
- table: (n) => /* @__PURE__ */ o.jsx(Pr, { ...n, userFlow: t, pageId: e }),
358
- tabs: (n) => /* @__PURE__ */ o.jsx(sa, { ...n, userFlow: t, pageId: e }),
359
- text: (n) => Tn(n),
360
- textField: (n) => /* @__PURE__ */ o.jsx(la, { ...n, userFlow: t, pageId: e }),
361
- toast: (n) => /* @__PURE__ */ o.jsx(da, { ...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
- function fe(t, e) {
369
+ function xe(t, e) {
372
370
  if (!(e != null && e.length))
373
371
  return !1;
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
- function M(t, e) {
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
- return O(
385
+ return D(
388
386
  () => ({
389
- disabled: fe(s, e)
387
+ disabled: xe(s, e)
390
388
  }),
391
389
  [e, s]
392
390
  );
@@ -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
- }, Rn = (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
- }, Dn = (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,42 +472,42 @@ 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
- }, xe = 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
- }, me = (t) => {
510
+ }, ge = (t) => {
513
511
  const e = t == null ? void 0 : t.toLowerCase();
514
512
  switch (e) {
515
513
  case "post":
@@ -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;
538
- }, Lt = (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 ?? {} };
534
+ const _ = c.join("&");
535
+ return _ ? `${r}?${_}` : r;
536
+ }, Kt = (t, e, s, 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: me(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,
@@ -559,69 +557,69 @@ const rt = (t) => {
559
557
  page: e
560
558
  }
561
559
  };
562
- }, G = () => {
563
- const t = v((n) => n), { callEndpoint: e } = ye(), s = async (n, d, a, _, u = !0) => {
560
+ }, H = () => {
561
+ const t = v((n) => n), { callEndpoint: e } = ye(), s = async (n, _, l, d, u = !0) => {
564
562
  var h;
565
563
  try {
566
- const f = (h = t[n]) == null ? void 0 : h.apiConfig, x = {
567
- state: { ...a },
568
- triggerKey: _
564
+ const f = (h = t[n]) == null ? void 0 : h.apiConfig, y = {
565
+ state: { ...l },
566
+ triggerKey: d
569
567
  };
570
- return u && F(n, !0), await xe(
568
+ return u && F(n, !0), await me(
571
569
  f,
572
570
  n,
573
- d,
574
- x
571
+ _,
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;
581
- switch (me(n.method)) {
577
+ }, r = (n, _) => {
578
+ const { url: l, headers: d, data: u, params: h } = n;
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 Rn(a, _, u, {}, !1, d);
585
+ return Rn(l, d, u, {}, !1, _);
588
586
  case "delete":
589
- return Dn(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,201 +660,201 @@ const rt = (t) => {
662
660
  }
663
661
  }
664
662
  };
665
- }, In = "_accordion_1ri2t_1", Ln = "_accordionBody_1ri2t_8", Wt = {
663
+ }, In = "_accordion_1ri2t_1", Kn = "_accordionBody_1ri2t_8", Yt = {
666
664
  accordion: In,
667
- accordionBody: Ln
668
- }, Kn = (t) => {
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 } = G(), [_, u] = $(
679
- d.checkboxChecked || !1
680
- ), { disabled: h } = M(
675
+ ..._
676
+ } = t, { getNextUI: l } = H(), [d, u] = q(
677
+ _.checkboxChecked || !1
678
+ ), { disabled: h } = B(
681
679
  e,
682
- c
683
- ), f = E(e, s, n), x = i ? E(e, s, i) : void 0, b = l ? E(e, s, l) : void 0, g = L(
684
- 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
- const N = {
687
+ const w = {
690
688
  ...(C = v.getState()[e]) == null ? void 0 : C.entries,
691
689
  [r]: j
692
690
  };
693
- if (I(e, N), d.actionType === "GO_TO_NEXT_UI") {
694
- const w = await a(
691
+ if (I(e, w), _.actionType === "GO_TO_NEXT_UI") {
692
+ const N = await l(
695
693
  e,
696
694
  s,
697
- N,
695
+ w,
698
696
  r
699
697
  );
700
- w != null && w.data && K(e, w == null ? void 0 : w.data);
698
+ N != null && N.data && K(e, N == null ? void 0 : N.data);
701
699
  }
702
700
  } catch (j) {
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
- ), y = d.disabled || h, m = {
708
- ...d,
709
- className: Wt.accordion,
710
- disabled: y,
711
- checkboxChecked: _,
712
- onChanceCheckbox: d.hasCheckbox ? g : void 0,
713
- actionContent: x ? /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((p, C) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-action-${C}`)) }) : void 0,
714
- customContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, C) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-custom-${C}`)) }) : void 0,
715
- children: f ? /* @__PURE__ */ o.jsx("section", { className: Wt.accordionBody, children: f.map((p, C) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${C}`)) }) : void 0
704
+ [e, s, r, _.actionType, l]
705
+ ), x = _.disabled || h, m = {
706
+ ..._,
707
+ className: Yt.accordion,
708
+ disabled: x,
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(Te, { ...m });
718
- }, Bn = (t) => {
719
- const e = ht.useThemeStore((i) => i.theme.mode), s = t.dataSource, r = O(() => ({
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 = O(() => {
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", Hn = {
761
- promptCodeEditor: Mn
762
- }, Gn = (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] = $(
769
+ inputLabel: _,
770
+ inputPlaceholder: l,
771
+ codeBlockLabel: d
772
+ } = t, u = ht.useThemeStore((g) => g.theme.mode), [h, f] = q(
775
773
  r || ""
776
- ), { disabled: x } = M(
774
+ ), { disabled: y } = B(
777
775
  e,
778
- i
779
- ), b = l ?? x, g = c ?? "json", y = {
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
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: Hn.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
- requestConfig: y,
798
- language: g,
795
+ requestConfig: x,
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) => {
810
- const e = t.dataSource, s = O(() => ({
807
+ }, Xn = (t) => {
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 = O(() => {
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", Yt = {
841
- body: Xn,
842
- body_content: Jn
843
- }, Wn = ({ inputs: t }) => /* @__PURE__ */ o.jsx("section", { className: Yt.body, children: /* @__PURE__ */ o.jsx("div", { className: Yt.body_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(k, { children: e }, s)) }) }), Yn = "_boxNotFront_67q2e_1", Qn = "_slotStack_67q2e_5", Qt = {
844
- boxNotFront: Yn,
845
- slotStack: Qn
846
- }, Zn = (t) => {
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: Qt.slotStack, children: d.map((_, u) => /* @__PURE__ */ o.jsx(k, { children: _ }, `box-${c}-${u}`)) }) : null;
859
- return /* @__PURE__ */ o.jsx(Ae, { className: Qt.boxNotFront, darkMode: n, children: a });
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
  /*!
@@ -864,30 +862,30 @@ var vt = { exports: {} };
864
862
  Licensed under the MIT License (MIT), see
865
863
  http://jedwatson.github.io/classnames
866
864
  */
867
- var Zt;
868
- function Fn() {
869
- return Zt || (Zt = 1, (function(t) {
865
+ var Ft;
866
+ function Pn() {
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,52 +895,52 @@ 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 } = G(), { disabled: f } = M(
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
923
- ), x = v(
924
- (p) => {
920
+ _
921
+ ), y = v(
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 = x != null ? String(x) : l ?? "", g = f, y = O(() => c ? i ? `${c} *` : c : null, [c, i]), m = L(
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
935
  if (I(e, j), n === "GO_TO_NEXT_UI" || n === "GO_TO_NEXT_UI_WITHOUT_LOADING") {
938
- const S = await h(
936
+ const k = await h(
939
937
  e,
940
938
  s,
941
939
  j,
942
940
  r,
943
941
  n === "GO_TO_NEXT_UI"
944
942
  );
945
- S != null && S.data && K(e, S == null ? void 0 : S.data);
943
+ k != null && k.data && K(e, k == null ? void 0 : k.data);
946
944
  }
947
945
  } catch (j) {
948
946
  alert(JSON.stringify(j));
@@ -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
- y ? /* @__PURE__ */ o.jsx("legend", { className: P.legend, children: y }) : 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
- Oe,
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($e, { 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 } = G(), c = L(
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 = O(() => 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(De, { items: l });
1046
+ return /* @__PURE__ */ a.jsx(Le, { items: i });
1049
1047
  };
1050
- function pt(t, e) {
1051
- const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: c } = G();
1048
+ function xt(t, e) {
1049
+ const { getNextUI: s, fetchDataSource: r, fetchAndGetNextUI: o } = H();
1052
1050
  return L(
1053
- async (l) => {
1054
- var h, f, x, 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 (!fe(u, _))
1051
+ async (i) => {
1052
+ var h, f, y, b;
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 (I(t, g), n) {
1060
+ switch (I(t, p), n) {
1063
1061
  case "CLOSE_MODAL":
1064
1062
  It(t, !1);
1065
1063
  break;
@@ -1070,78 +1068,78 @@ function pt(t, e) {
1070
1068
  _t(t, !0);
1071
1069
  break;
1072
1070
  case "GO_TO_NEXT_UI": {
1073
- const y = await s(
1071
+ const x = await s(
1074
1072
  t,
1075
1073
  e,
1076
- g,
1077
- i
1074
+ p,
1075
+ c
1078
1076
  );
1079
- y != null && y.data && K(t, y == null ? void 0 : y.data);
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 y = 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
- y != null && y.data && K(t, y == null ? void 0 : y.data);
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
- const y = await r(
1095
- d,
1092
+ const x = await r(
1093
+ _,
1096
1094
  t,
1097
1095
  !1
1098
1096
  );
1099
1097
  I(t, {
1100
- [i]: {
1101
- status: y == null ? void 0 : y.status,
1102
- content: y == null ? void 0 : y.data
1098
+ [c]: {
1099
+ status: x == null ? void 0 : x.status,
1100
+ content: x == null ? void 0 : x.data
1103
1101
  }
1104
1102
  });
1105
1103
  break;
1106
1104
  }
1107
1105
  case "GET_DATA_SOURCE": {
1108
- const y = await s(
1106
+ const x = await s(
1109
1107
  t,
1110
1108
  e,
1111
- g,
1112
- i
1113
- ), m = (x = y == null ? void 0 : y.data) == null ? void 0 : x.content;
1109
+ p,
1110
+ c
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
1121
  I(t, j);
1124
- const N = await s(
1122
+ const w = await s(
1125
1123
  t,
1126
1124
  e,
1127
1125
  j,
1128
- i
1126
+ c
1129
1127
  );
1130
- N != null && N.data && K(t, N == null ? void 0 : N.data);
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,76 +1147,76 @@ function pt(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
- } = t, h = pt(e, s), { disabled: f } = M(
1163
+ } = t, h = xt(e, s), { disabled: f } = B(
1166
1164
  e,
1167
- a
1168
- ), x = {
1165
+ l
1166
+ ), y = {
1169
1167
  ...u,
1170
- children: i ?? l
1171
- }, b = (x == null ? void 0 : x.disabled) ?? f, [g, y] = $(!1), m = ut(!1), p = L(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";
1175
- C && (m.current = !0, y(!0));
1172
+ const C = o === "FETCH_DATA_SOURCE";
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);
1186
1184
  } finally {
1187
- C && (m.current = !1, y(!1));
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
- qe,
1195
+ return /* @__PURE__ */ a.jsx(
1196
+ Ie,
1199
1197
  {
1200
- ...x,
1201
- loading: x.loading || g,
1198
+ ...y,
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: _ } = M(
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, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `card-accordion-body-${c}-${y}`)) }) : void 0, x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: At.slotStack, children: h.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `card-accordion-actions-${c}-${y}`)) }) : void 0, b = a.disabled || _;
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
- actionContent: x,
1234
+ actionContent: y,
1237
1235
  children: f ?? null
1238
1236
  }
1239
1237
  );
1240
- }, hs = "_slotStack_ivk5b_1", fs = {
1241
- slotStack: hs
1238
+ }, fs = "_slotStack_ivk5b_1", xs = {
1239
+ slotStack: fs
1242
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: x, fetchAndGetNextUI: b } = G(), { disabled: g } = M(
1254
+ } = t, { getNextUI: f, fetchDataSource: y, fetchAndGetNextUI: b } = H(), { disabled: p } = B(
1257
1255
  e,
1258
1256
  h
1259
- ), y = 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, N) => /* @__PURE__ */ o.jsx(k, { children: j }, `card-body-${c}-${N}`)) }) : null, C = L(async () => {
1264
- var j, N, w;
1265
- if (!(!a || y))
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 () => {
1262
+ var j, w, N;
1263
+ if (!(!l || x))
1266
1264
  try {
1267
- const S = {
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 (I(e, S), a) {
1269
+ switch (I(e, k), l) {
1272
1270
  case "CLOSE_MODAL":
1273
1271
  It(e, !1);
1274
1272
  break;
@@ -1280,198 +1278,198 @@ const ds = (t) => {
1280
1278
  break;
1281
1279
  case "GO_TO_NEXT_UI":
1282
1280
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
1283
- const q = await f(
1281
+ const $ = await f(
1284
1282
  e,
1285
1283
  s,
1286
- S,
1287
- l,
1288
- a === "GO_TO_NEXT_UI"
1284
+ k,
1285
+ i,
1286
+ l === "GO_TO_NEXT_UI"
1289
1287
  );
1290
- q != null && q.data && K(e, q == null ? void 0 : q.data);
1288
+ $ != null && $.data && K(e, $ == null ? void 0 : $.data);
1291
1289
  break;
1292
1290
  }
1293
1291
  case "FETCH_AND_GO_TO_NEXT_UI": {
1294
- const D = await b(
1292
+ const O = await b(
1295
1293
  e,
1296
1294
  s,
1297
- S,
1298
- l,
1299
- _
1295
+ k,
1296
+ i,
1297
+ d
1300
1298
  );
1301
- D != null && D.data && K(e, D == null ? void 0 : D.data);
1299
+ O != null && O.data && K(e, O == null ? void 0 : O.data);
1302
1300
  break;
1303
1301
  }
1304
1302
  case "GET_DATA_SOURCE": {
1305
- const D = await f(
1303
+ const O = await f(
1306
1304
  e,
1307
1305
  s,
1308
- S,
1309
- l
1310
- ), q = (N = D == null ? void 0 : D.data) == null ? void 0 : N.content;
1311
- if ((q == null ? void 0 : q.type) !== "fetch")
1306
+ k,
1307
+ i
1308
+ ), $ = (w = O == null ? void 0 : O.data) == null ? void 0 : w.content;
1309
+ if (($ == null ? void 0 : $.type) !== "fetch")
1312
1310
  break;
1313
- const Q = q == null ? void 0 : q.dataSource, V = await x(Q, e, !1), T = {
1314
- ...(w = v.getState()[e]) == null ? void 0 : w.entries,
1315
- [l]: {
1311
+ const Q = $ == null ? void 0 : $.dataSource, V = await y(Q, e, !1), S = {
1312
+ ...(N = v.getState()[e]) == null ? void 0 : N.entries,
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
- I(e, T);
1321
- const H = await f(
1318
+ I(e, S);
1319
+ const G = await f(
1322
1320
  e,
1323
1321
  s,
1324
- T,
1325
- l
1322
+ S,
1323
+ i
1326
1324
  );
1327
- H != null && H.data && K(e, H == null ? void 0 : H.data);
1325
+ G != null && G.data && K(e, G == null ? void 0 : G.data);
1328
1326
  break;
1329
1327
  }
1330
1328
  case "REDIRECT":
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
- } catch (S) {
1337
- alert(JSON.stringify(S));
1334
+ } catch (k) {
1335
+ alert(JSON.stringify(k));
1338
1336
  }
1339
1337
  }, [
1340
- a,
1341
- _,
1342
- y,
1343
- b,
1338
+ l,
1339
+ d,
1344
1340
  x,
1341
+ b,
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
- Le,
1349
+ return /* @__PURE__ */ a.jsx(
1350
+ Be,
1353
1351
  {
1354
1352
  colorId: n,
1355
- disabled: y,
1356
- onClick: a && !y ? () => void C() : void 0,
1357
- children: p
1353
+ disabled: x,
1354
+ onClick: l && !x ? () => void C() : void 0,
1355
+ children: g
1358
1356
  }
1359
1357
  );
1360
- }, xs = (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(k, { children: h }, `card-notification-body-${c}-${f}`))
1379
- ] }) : u = (typeof i == "string" ? i : void 0) ?? n, /* @__PURE__ */ o.jsx(xt, { ...d, children: u });
1380
- }, Et = (t) => Array.isArray(t) ? t : typeof t == "object" ? JSON.stringify(t) : t, ms = (t, e) => {
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 = B.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 B.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
- }, ge = (t, e, s, r) => {
1397
- const c = B.query(t, e), l = c == null ? void 0 : c.map((_) => {
1394
+ }, pe = (t, e, s, r) => {
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
- for (const [x, b] of Object.entries(s))
1399
+ for (const [y, b] of Object.entries(s))
1402
1400
  if (typeof b == "object" && "path" in b) {
1403
- const g = b, y = (u = B.query(_, g.path)) == null ? void 0 : u[0];
1404
- g.translations && String(y) in g.translations ? f[x] = Et(
1405
- g.translations[String(y)]
1406
- ) : f[x] = Et(y);
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)]
1404
+ ) : f[y] = Et(x);
1407
1405
  } else {
1408
- const g = b;
1409
- f[x] = Et((h = B.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 = B.value(t, (r == null ? void 0 : r.size) ?? "$.meta.size") ?? c.length, n = B.value(t, (r == null ? void 0 : r.total) ?? "$.meta.total") ?? 0, d = r != null && r.hasMore ? !!B.value(t, r.hasMore) : void 0, a = {
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
- totalPages: r != null && r.totalPages ? B.value(
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(Ot, { 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: A.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: {
1441
- fontSize: A.fontSize,
1442
- fontFamily: A.fontFamily,
1439
+ fontSize: T.fontSize,
1440
+ fontFamily: T.fontFamily,
1443
1441
  padding: t ? "1rem 0" : "0"
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 = {
1458
- backgroundColor: A.tooltipBg,
1459
- borderRadius: A.tooltipBorderRadius,
1460
- color: A.tooltipColor,
1455
+ const i = {
1456
+ backgroundColor: T.tooltipBg,
1457
+ borderRadius: T.tooltipBorderRadius,
1458
+ color: T.tooltipColor,
1461
1459
  padding: "8px 12px",
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,29 +1477,29 @@ 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 } : {},
1501
1499
  hide: e,
1502
1500
  tick: {
1503
- fill: A.labelColor,
1504
- fontSize: A.fontSize
1501
+ fill: T.labelColor,
1502
+ fontSize: T.fontSize
1505
1503
  }
1506
1504
  }
1507
1505
  ), Y = ({
@@ -1509,76 +1507,76 @@ 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
- fill: A.labelColor,
1523
- fontSize: A.fontSize
1520
+ fill: T.labelColor,
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(
1536
- ie,
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(
1534
+ le,
1537
1535
  {
1538
1536
  type: "monotone",
1539
- dataKey: i,
1537
+ dataKey: c,
1540
1538
  stroke: R[n % R.length],
1541
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: $t, 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(
1555
- gt,
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(
1553
+ pt,
1556
1554
  {
1557
- dataKey: i,
1555
+ dataKey: c,
1558
1556
  fill: R[n % R.length]
1559
1557
  },
1560
- i
1558
+ c
1561
1559
  ))
1562
1560
  ] });
1563
1561
  };
1564
- var pe = { NODE_ENV: "production" };
1565
- const js = (t, e) => {
1562
+ var be = { NODE_ENV: "production" };
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) => {
1576
- !t.type && pe.NODE_ENV;
1577
- const s = t.color ?? R[e % R.length], r = t.label ?? t.key, c = t.yAxisId ? { yAxisId: t.yAxisId } : {};
1573
+ }, ws = (t, e) => {
1574
+ !t.type && be.NODE_ENV;
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(
1581
- ie,
1578
+ return /* @__PURE__ */ a.jsx(
1579
+ le,
1582
1580
  {
1583
1581
  dataKey: t.key,
1584
1582
  name: r,
@@ -1586,13 +1584,13 @@ 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(
1595
- le,
1592
+ return /* @__PURE__ */ a.jsx(
1593
+ de,
1596
1594
  {
1597
1595
  dataKey: t.key,
1598
1596
  name: r,
@@ -1600,20 +1598,20 @@ 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(
1609
- gt,
1606
+ return /* @__PURE__ */ a.jsx(
1607
+ pt,
1610
1608
  {
1611
1609
  dataKey: t.key,
1612
1610
  name: r,
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
  );
@@ -1625,150 +1623,150 @@ const js = (t, e) => {
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
- !r.length && pe.NODE_ENV;
1634
- const d = js(r, n);
1635
- return /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: _n, children: [
1636
- /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1637
- /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
1638
- d.length > 0 ? d.map((a) => /* @__PURE__ */ o.jsx(
1631
+ !r.length && be.NODE_ENV;
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
- }, ws = "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: _ = R[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, x = Math.sin(-s * l), b = Math.cos(-s * l), g = r + (n + 10) * b, y = c + (n + 10) * x, m = r + (n + 30) * b, p = c + (n + 30) * x, C = m + (b >= 0 ? 1 : -1) * 22, j = p, N = b >= 0 ? "start" : "end", w = u, S = String((w == null ? void 0 : w[t]) ?? "");
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
- fill: A.labelColor,
1673
- fontSize: A.fontSize + 2,
1674
- fontFamily: A.fontFamily,
1675
- children: S
1670
+ fill: T.labelColor,
1671
+ fontSize: T.fontSize + 2,
1672
+ fontFamily: T.fontFamily,
1673
+ children: k
1676
1674
  }
1677
1675
  ),
1678
- /* @__PURE__ */ o.jsx(
1679
- Mt,
1676
+ /* @__PURE__ */ a.jsx(
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(
1691
- Mt,
1688
+ /* @__PURE__ */ a.jsx(
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},${y}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,
1715
1713
  y: j,
1716
- textAnchor: N,
1717
- fill: A.labelColor,
1718
- fontSize: A.fontSize + 2,
1719
- fontFamily: A.fontFamily,
1714
+ textAnchor: w,
1715
+ fill: T.labelColor,
1716
+ fontSize: T.fontSize + 2,
1717
+ fontFamily: T.fontFamily,
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,
1727
1725
  y: j,
1728
1726
  dy: 18,
1729
- textAnchor: N,
1730
- fill: A.labelColorMuted,
1731
- fontSize: A.fontSize,
1732
- fontFamily: A.fontFamily,
1727
+ textAnchor: w,
1728
+ fill: T.labelColorMuted,
1729
+ fontSize: T.fontSize,
1730
+ fontFamily: T.fontFamily,
1733
1731
  children: `(${(h * 100).toFixed(0)}%)`
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 = ws,
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(Ot, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(de, { 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(
1760
- _e,
1756
+ l && /* @__PURE__ */ a.jsx(J, {}),
1757
+ /* @__PURE__ */ a.jsx(
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(
1771
- ue,
1765
+ innerRadius: i,
1766
+ outerRadius: c,
1767
+ activeShape: n ? ks(s) : void 0,
1768
+ children: e.map((u, h) => /* @__PURE__ */ a.jsx(
1769
+ he,
1772
1770
  {
1773
1771
  fill: R[h % R.length]
1774
1772
  },
@@ -1778,143 +1776,143 @@ const js = (t, e) => {
1778
1776
  )
1779
1777
  ] }) });
1780
1778
  };
1781
- function Ss(t, e, s = be) {
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 = Is, 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
- Ls,
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,
1820
1818
  layout: "vertical",
1821
1819
  data: e,
1822
- Chart: $t,
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, x) => /* @__PURE__ */ o.jsx(
1830
- gt,
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(
1828
+ pt,
1831
1829
  {
1832
1830
  dataKey: f,
1833
- name: (a == null ? void 0 : a[f]) ?? f,
1834
- fill: R[x % R.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(
1850
- le,
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(
1848
+ de,
1851
1849
  {
1852
1850
  type: "monotone",
1853
- dataKey: i,
1851
+ dataKey: c,
1854
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
1860
  var Rs = { NODE_ENV: "production" };
1863
- const Ds = (t) => {
1864
- const { data: e, xKey: s, series: r = [], tooltipKey: c, width: l } = t;
1865
- return !r.length && Rs.NODE_ENV, /* @__PURE__ */ o.jsxs(at, { width: l, data: e, Chart: $t, children: [
1866
- /* @__PURE__ */ o.jsx(st, { strokeDasharray: "3 3" }),
1867
- /* @__PURE__ */ o.jsx(ot, { dataKey: s }),
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(
1872
- gt,
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(
1870
+ pt,
1873
1871
  {
1874
- dataKey: i.key,
1875
- name: i.label ?? i.key,
1876
- stackId: i.stackId,
1877
- fill: i.color ?? R[n % R.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), x = 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
- x,
1893
+ x: y,
1896
1894
  y: b,
1897
- fill: A.labelColor,
1898
- color: A.labelColor,
1895
+ fill: T.labelColor,
1896
+ color: T.labelColor,
1899
1897
  textAnchor: "middle",
1900
1898
  dominantBaseline: "central",
1901
1899
  children: u
1902
1900
  }
1903
1901
  );
1904
1902
  };
1905
- return /* @__PURE__ */ o.jsx(Ot, { width: "100%", height: nt, children: /* @__PURE__ */ o.jsxs(de, { children: [
1906
- /* @__PURE__ */ o.jsx(W, { tooltipKey: c }),
1907
- /* @__PURE__ */ o.jsx(J, {}),
1908
- /* @__PURE__ */ o.jsx(
1909
- _e,
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(
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(
1917
- ue,
1914
+ children: e.map((c, n) => /* @__PURE__ */ a.jsx(
1915
+ he,
1918
1916
  {
1919
1917
  fill: R[n % R.length]
1920
1918
  },
@@ -1923,21 +1921,21 @@ const Ds = (t) => {
1923
1921
  }
1924
1922
  )
1925
1923
  ] }) });
1926
- }, nt = 400, be = 56, Is = 28, Ls = 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,
1930
+ ]), Gs = {
1931
+ area: bs,
1932
+ bar: js,
1935
1933
  composed: Ns,
1936
- donut: ks,
1937
- horizontalBar: Os,
1938
- line: $s,
1939
- mixBar: Ds,
1940
- pie: qs
1934
+ donut: Ss,
1935
+ horizontalBar: $s,
1936
+ line: Ds,
1937
+ mixBar: qs,
1938
+ pie: Ls
1941
1939
  }, R = [
1942
1940
  "var(--color-primitive-palette-1-50)",
1943
1941
  "var(--color-primitive-palette-2-50)",
@@ -1956,7 +1954,7 @@ const Ds = (t) => {
1956
1954
  "var(--color-primitive-palette-15-50)",
1957
1955
  "var(--color-primitive-palette-16-50)",
1958
1956
  "var(--color-primitive-palette-17-50)"
1959
- ], A = {
1957
+ ], T = {
1960
1958
  fontFamily: "Roboto, sans-serif",
1961
1959
  fontSize: 12,
1962
1960
  labelColor: "var(--color-neutral-90)",
@@ -1964,335 +1962,416 @@ const Ds = (t) => {
1964
1962
  tooltipBg: "#fff",
1965
1963
  tooltipColor: "#000",
1966
1964
  tooltipBorderRadius: "4px"
1967
- }, Hs = "_chartScrollViewport_sm5hx_1", Gs = "_chartScrollViewport_track_sm5hx_29", Ft = {
1965
+ }, Hs = "_chartScrollViewport_sm5hx_1", Vs = "_chartScrollViewport_track_sm5hx_29", Pt = {
1968
1966
  chartScrollViewport: Hs,
1969
- chartScrollViewport_track: Gs
1970
- }, Us = "Scrollable chart area", Vs = ({
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] = $(0), i = e ?? be;
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 = L(
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
- className: Ft.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(
2014
+ className: Pt.chartScrollViewport,
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
- className: Ft.chartScrollViewport_track,
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 } = G(), [a, _] = $(!1), [u, h] = $([]), f = async () => {
2033
- var g, y;
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 = Lt(
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
- ), N = m ? (g = ge(j == null ? void 0 : j.data, m, p)) == null ? void 0 : g.items : (y = j == null ? void 0 : j.data) == null ? void 0 : y.data;
2044
- h(N), _(!1);
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" });
2053
- const x = {
2054
- ...i,
2050
+ return /* @__PURE__ */ a.jsx("div", { children: "Not supported chart type" });
2051
+ const y = {
2052
+ ...c,
2055
2053
  data: u
2056
2054
  };
2057
- return a ? /* @__PURE__ */ o.jsx(oe, { height: 400 }) : u.length === 0 ? /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Bs.has(i.type) ? /* @__PURE__ */ o.jsx(
2058
- Vs,
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, { ...x, width: g })
2059
+ minCategoryWidth: c.minCategoryWidth,
2060
+ children: (p) => /* @__PURE__ */ a.jsx(n, { ...y, width: p })
2063
2061
  }
2064
- ) : /* @__PURE__ */ o.jsx(n, { ...x });
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 } = G(), [h, f] = $(i || !1), { disabled: x } = M(
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 = O(() => n && l ? `${l} *` : l ?? "", [l, n]), g = L(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 (I(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
- const N = await u(
2091
+ const w = await u(
2094
2092
  e,
2095
2093
  s,
2096
2094
  C,
2097
2095
  r,
2098
- c === "GO_TO_NEXT_UI"
2096
+ o === "GO_TO_NEXT_UI"
2099
2097
  );
2100
- N != null && N.data && K(e, N == null ? void 0 : N.data);
2098
+ w != null && w.data && K(e, w == null ? void 0 : w.data);
2101
2099
  break;
2102
2100
  }
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]), y = (_ == null ? void 0 : _.disabled) ?? x;
2110
- return /* @__PURE__ */ o.jsx(
2111
- Ke,
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
- disabled: y,
2114
+ disabled: x,
2117
2115
  onChange: () => {
2118
- !y && 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] = $(i ?? ""), x = ht.useThemeStore((C) => C.theme.mode), { disabled: b } = M(
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, y = {
2142
+ _
2143
+ ), p = l ?? b, x = {
2146
2144
  json: Ht(),
2147
- markdown: fn(),
2145
+ markdown: xn(),
2148
2146
  sql: yn(),
2149
- yaml: xn()
2150
- }, m = O(() => n && r ? `${r} *` : r ?? "", [r, n]), p = (C) => {
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
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: [y[c] ?? Ht()],
2168
- onChange: (C) => p(C),
2169
- theme: x,
2170
- editable: !g
2164
+ placeholder: i,
2165
+ extensions: [x[o] ?? Ht()],
2166
+ onChange: (C) => g(C),
2167
+ theme: y,
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", Pt = {
2177
- slotStack: tr
2178
- }, er = (t) => {
2179
- const {
2180
- userFlow: e,
2181
- pageId: s,
2182
- component: r,
2183
- hash: c,
2184
- responseKey: l,
2185
- content: i,
2186
- topContent: n,
2187
- icon: d,
2188
- headerStatusColor: a,
2189
- ..._
2190
- } = t, u = a ? `palette_${a}_50` : void 0, h = E(
2174
+ }, er = "_slotStack_6n2wy_5", nr = {
2175
+ slotStack: er
2176
+ };
2177
+ var sr = { NODE_ENV: "production" };
2178
+ const rr = /* @__PURE__ */ new Set([
2179
+ "accordion",
2180
+ "button",
2181
+ "cardAccordion",
2182
+ "checkbox",
2183
+ "dropdownButton",
2184
+ "link",
2185
+ "menu",
2186
+ "radioGroup",
2187
+ "roundButton",
2188
+ "select",
2189
+ "stepper",
2190
+ "switch",
2191
+ "table",
2192
+ "tabs",
2193
+ "textField",
2194
+ "textarea"
2195
+ ]), Ot = (t, e) => {
2196
+ if (t != null && t.length)
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);
2200
+ }) });
2201
+ }, ar = ({
2202
+ userFlow: t,
2203
+ pageId: e,
2204
+ component: s,
2205
+ hash: r,
2206
+ responseKey: o,
2207
+ content: i,
2208
+ topContent: c,
2209
+ icon: n,
2210
+ headerStatusColor: _,
2211
+ ...l
2212
+ }) => {
2213
+ const d = _ ? `palette_${_}_50` : void 0, u = E(
2214
+ t,
2191
2215
  e,
2192
- s,
2193
- i && i.length > 0 ? i : null
2194
- ), f = E(
2216
+ i != null && i.length ? i : null
2217
+ ), h = E(
2218
+ t,
2195
2219
  e,
2196
- s,
2197
- n && n.length > 0 ? n : null
2198
- ), x = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Pt.slotStack, children: h.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `data-card-body-${c}-${y}`)) }) : void 0, b = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Pt.slotStack, children: f.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `data-card-top-${c}-${y}`)) }) : void 0;
2199
- return /* @__PURE__ */ o.jsx(
2200
- Be,
2220
+ c != null && c.length ? c : null
2221
+ );
2222
+ return /* @__PURE__ */ a.jsx(
2223
+ ie,
2201
2224
  {
2202
- ..._,
2203
- icon: d,
2204
- headerStatusColor: u,
2205
- topContent: b,
2206
- children: x
2225
+ ...l,
2226
+ icon: n,
2227
+ headerStatusColor: d,
2228
+ topContent: Ot(h, c),
2229
+ children: Ot(u, i)
2207
2230
  }
2208
2231
  );
2209
- }, nr = "_dividerNotFront_tze3j_1", sr = {
2210
- dividerNotFront: nr
2211
- }, rr = (t) => /* @__PURE__ */ o.jsx(Me, { ...t, className: sr.dividerNotFront }), ar = "_drawer_13pxo_1", or = "_drawerBody_13pxo_5", cr = "_drawerFooter_13pxo_11", kt = {
2212
- drawer: ar,
2213
- drawerBody: or,
2214
- drawerFooter: cr
2215
- }, ir = ({
2232
+ }, or = ({
2233
+ userFlow: t,
2234
+ pageId: e,
2235
+ responseKey: s,
2236
+ actionType: r,
2237
+ dataSource: o,
2238
+ redirectUrl: i,
2239
+ dependencies: c,
2240
+ content: n,
2241
+ icon: _,
2242
+ ariaLabel: l,
2243
+ description: d,
2244
+ descriptionBottom: u,
2245
+ disabled: h,
2246
+ status: f,
2247
+ headerStyle: y,
2248
+ showBorder: b,
2249
+ borderColor: p,
2250
+ title: x,
2251
+ descriptionTop: m,
2252
+ pillLabel: g
2253
+ }) => {
2254
+ const C = E(
2255
+ t,
2256
+ e,
2257
+ n != null && n.length ? n : null
2258
+ ), j = xt(t, e), { disabled: w } = B(
2259
+ t,
2260
+ c
2261
+ ), N = r ? () => void j({
2262
+ responseKey: s,
2263
+ actionType: r,
2264
+ dataSource: o,
2265
+ redirectUrl: i,
2266
+ dependencies: c
2267
+ }) : void 0, k = h ?? w;
2268
+ N && (n != null && n.some(($) => rr.has($.component))) && sr.NODE_ENV;
2269
+ const O = N ? { onClick: N, disabled: k } : {};
2270
+ return /* @__PURE__ */ a.jsx(
2271
+ ie,
2272
+ {
2273
+ version: "v2",
2274
+ status: f,
2275
+ headerStyle: y,
2276
+ showBorder: b,
2277
+ borderColor: p,
2278
+ title: x,
2279
+ ariaLabel: l,
2280
+ descriptionTop: m,
2281
+ descriptionBottom: u ?? d,
2282
+ pillLabel: g,
2283
+ icon: _,
2284
+ ...O,
2285
+ children: Ot(C, n)
2286
+ }
2287
+ );
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 = ({
2216
2295
  userFlow: t,
2217
2296
  pageId: e,
2218
2297
  responseKey: s,
2219
2298
  header: r,
2220
- body: c,
2221
- footer: l,
2222
- ...i
2299
+ body: o,
2300
+ footer: i,
2301
+ ...c
2223
2302
  }) => {
2224
- const n = v((g) => {
2225
- var y;
2226
- return (y = g[t]) == null ? void 0 : y.isDrawerOpen;
2227
- }), d = v((g) => {
2228
- var y;
2229
- return (y = g[t]) == null ? void 0 : y.isLoading;
2230
- }), a = n && !d, _ = {
2231
- ...i,
2232
- isOpen: a,
2303
+ const n = v((p) => {
2304
+ var x;
2305
+ return (x = p[t]) == null ? void 0 : x.isDrawerOpen;
2306
+ }), _ = v((p) => {
2307
+ var x;
2308
+ return (x = p[t]) == null ? void 0 : x.isLoading;
2309
+ }), l = n && !_, d = {
2310
+ ...c,
2311
+ isOpen: l,
2233
2312
  children: null
2234
2313
  }, u = L(() => {
2235
- qt(t), _t(t, !1);
2236
- }, [t]), h = Array.isArray(r) ? E(t, e, r) : r ? /* @__PURE__ */ o.jsx(re, { type: "h2", children: r }) : void 0, f = E(t, e, c), x = l ? E(t, e, l) : void 0;
2237
- return /* @__PURE__ */ o.jsx(
2314
+ Lt(t), _t(t, !1);
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(
2238
2317
  He,
2239
2318
  {
2240
- ..._,
2319
+ ...d,
2241
2320
  className: kt.drawer,
2242
- isOpen: a,
2321
+ isOpen: l,
2243
2322
  onClose: u,
2244
2323
  heightGap: 50,
2245
- title: h ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(h) ? h.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-header-${y}`)) : h }) : void 0,
2246
- children: /* @__PURE__ */ o.jsx("section", { className: kt.drawerBody, children: f.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-body-${y}`)) }),
2247
- footer: x ? /* @__PURE__ */ o.jsx("div", { className: kt.drawerFooter, children: x.map((g, y) => /* @__PURE__ */ o.jsx(k, { children: g }, `drawer-footer-${y}`)) }) : void 0
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
2248
2327
  }
2249
2328
  );
2250
- }, lr = (t) => {
2329
+ }, xr = (t) => {
2251
2330
  const {
2252
2331
  userFlow: e,
2253
2332
  pageId: s,
2254
2333
  component: r,
2255
- hash: c,
2256
- responseKey: l,
2257
- content: i,
2334
+ hash: o,
2335
+ responseKey: i,
2336
+ content: c,
2258
2337
  items: n,
2259
- disabled: d,
2260
- variant: a,
2261
- leftIcon: _,
2338
+ disabled: _,
2339
+ variant: l,
2340
+ leftIcon: d,
2262
2341
  rightIcon: u
2263
- } = t, h = pt(e, s), f = O(
2264
- () => n.map((x) => ({
2265
- label: x.content ?? x.label ?? "",
2342
+ } = t, h = xt(e, s), f = D(
2343
+ () => n.map((y) => ({
2344
+ label: y.content ?? y.label ?? "",
2266
2345
  onClick: () => {
2267
2346
  h({
2268
- responseKey: x.responseKey,
2269
- actionType: x.actionType,
2270
- dataSource: x.dataSource,
2271
- redirectUrl: x.redirectUrl,
2272
- dependencies: x.dependencies
2347
+ responseKey: y.responseKey,
2348
+ actionType: y.actionType,
2349
+ dataSource: y.dataSource,
2350
+ redirectUrl: y.redirectUrl,
2351
+ dependencies: y.dependencies
2273
2352
  });
2274
2353
  }
2275
2354
  })),
2276
2355
  [n, h]
2277
2356
  );
2278
- return /* @__PURE__ */ o.jsx(
2279
- Ge,
2357
+ return /* @__PURE__ */ a.jsx(
2358
+ Ve,
2280
2359
  {
2281
- disabled: d,
2282
- variant: a,
2360
+ disabled: _,
2361
+ variant: l,
2283
2362
  items: f,
2284
- children: /* @__PURE__ */ o.jsxs(k, { children: [
2285
- _ ? /* @__PURE__ */ o.jsx(
2286
- Gt,
2363
+ children: /* @__PURE__ */ a.jsxs(A, { children: [
2364
+ d ? /* @__PURE__ */ a.jsx(
2365
+ Vt,
2287
2366
  {
2288
- name: _,
2367
+ name: d,
2289
2368
  size: "md",
2290
2369
  style: { marginRight: 8, verticalAlign: "middle" }
2291
2370
  }
2292
2371
  ) : null,
2293
- i,
2294
- u ? /* @__PURE__ */ o.jsx(
2295
- Gt,
2372
+ c,
2373
+ u ? /* @__PURE__ */ a.jsx(
2374
+ Vt,
2296
2375
  {
2297
2376
  name: u,
2298
2377
  size: "md",
@@ -2302,172 +2381,172 @@ const Ds = (t) => {
2302
2381
  ] })
2303
2382
  }
2304
2383
  );
2305
- }, dr = "_header_g1eri_1", _r = "_header_content_g1eri_5", te = {
2306
- header: dr,
2307
- header_content: _r
2308
- }, ur = ({ components: t = [] }) => /* @__PURE__ */ o.jsx("section", { className: et(te.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: te.header_content, children: t.map((e, s) => /* @__PURE__ */ o.jsx(k, { children: e }, s)) }) }), hr = (t) => {
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) => {
2309
2388
  const {
2310
2389
  userFlow: e,
2311
2390
  pageId: s,
2312
2391
  responseKey: r,
2313
- actionType: c,
2314
- content: l,
2315
- redirectUrl: i,
2392
+ actionType: o,
2393
+ content: i,
2394
+ redirectUrl: c,
2316
2395
  target: n,
2317
- dependencies: d,
2318
- component: a,
2319
- hash: _,
2396
+ dependencies: _,
2397
+ component: l,
2398
+ hash: d,
2320
2399
  ...u
2321
- } = t, { getNextUI: h } = G(), { disabled: f } = M(
2400
+ } = t, { getNextUI: h } = H(), { disabled: f } = B(
2322
2401
  e,
2323
- d
2324
- ), x = c && u ? (() => {
2325
- const { href: y, target: m, download: p, ...C } = u;
2402
+ _
2403
+ ), y = o && u ? (() => {
2404
+ const { href: x, target: m, download: g, ...C } = u;
2326
2405
  return C;
2327
2406
  })() : u, b = L(async () => {
2328
- var y;
2329
- if (c)
2407
+ var x;
2408
+ if (o)
2330
2409
  try {
2331
2410
  const m = {
2332
- ...(y = v.getState()[e]) == null ? void 0 : y.entries,
2411
+ ...(x = v.getState()[e]) == null ? void 0 : x.entries,
2333
2412
  [r]: { status: 200 }
2334
2413
  };
2335
- switch (I(e, m), c) {
2414
+ switch (I(e, m), o) {
2336
2415
  case "GO_TO_NEXT_UI": {
2337
- const p = await h(
2416
+ const g = await h(
2338
2417
  e,
2339
2418
  s,
2340
2419
  m,
2341
2420
  r
2342
2421
  );
2343
- 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);
2344
2423
  break;
2345
2424
  }
2346
2425
  case "REDIRECT":
2347
- if (!i) {
2426
+ if (!c) {
2348
2427
  console.warn("Missing redirectUrl for REDIRECT actionType");
2349
2428
  break;
2350
2429
  }
2351
- 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);
2352
2431
  break;
2353
2432
  default:
2354
- console.warn(`Unhandled actionType for link: ${c}`);
2433
+ console.warn(`Unhandled actionType for link: ${o}`);
2355
2434
  break;
2356
2435
  }
2357
2436
  } catch (m) {
2358
2437
  alert(JSON.stringify(m));
2359
2438
  }
2360
- }, [c, h, s, i, r, n, e]), g = x.disabled ?? f;
2361
- return /* @__PURE__ */ o.jsx(
2439
+ }, [o, h, s, c, r, n, e]), p = y.disabled ?? f;
2440
+ return /* @__PURE__ */ a.jsx(
2362
2441
  Ue,
2363
2442
  {
2364
- ...x,
2365
- disabled: g,
2366
- onClick: c ? b : void 0,
2367
- children: l
2443
+ ...y,
2444
+ disabled: p,
2445
+ onClick: o ? b : void 0,
2446
+ children: i
2368
2447
  }
2369
2448
  );
2370
- }, fr = (t) => {
2449
+ }, br = (t) => {
2371
2450
  const {
2372
2451
  userFlow: e,
2373
2452
  pageId: s,
2374
2453
  component: r,
2375
- hash: c,
2376
- responseKey: l,
2377
- items: i,
2454
+ hash: o,
2455
+ responseKey: i,
2456
+ items: c,
2378
2457
  closeOnClick: n,
2379
- disabled: d,
2380
- listOrigin: a,
2381
- size: _,
2458
+ disabled: _,
2459
+ listOrigin: l,
2460
+ size: d,
2382
2461
  variant: u
2383
- } = t, h = pt(e, s), f = O(
2384
- () => i.map((x) => ({
2385
- icon: x.leftIcon,
2386
- label: x.content ?? x.label ?? "",
2462
+ } = t, h = xt(e, s), f = D(
2463
+ () => c.map((y) => ({
2464
+ icon: y.leftIcon,
2465
+ label: y.content ?? y.label ?? "",
2387
2466
  onClick: (b) => {
2388
- var g;
2389
- (g = b == null ? void 0 : b.preventDefault) == null || g.call(b), h({
2390
- responseKey: x.responseKey,
2391
- actionType: x.actionType,
2392
- dataSource: x.dataSource,
2393
- redirectUrl: x.redirectUrl,
2394
- dependencies: x.dependencies
2467
+ var p;
2468
+ (p = b == null ? void 0 : b.preventDefault) == null || p.call(b), h({
2469
+ responseKey: y.responseKey,
2470
+ actionType: y.actionType,
2471
+ dataSource: y.dataSource,
2472
+ redirectUrl: y.redirectUrl,
2473
+ dependencies: y.dependencies
2395
2474
  });
2396
2475
  }
2397
2476
  })),
2398
- [i, h]
2477
+ [c, h]
2399
2478
  );
2400
- return /* @__PURE__ */ o.jsx(
2401
- Ve,
2479
+ return /* @__PURE__ */ a.jsx(
2480
+ ze,
2402
2481
  {
2403
2482
  items: f,
2404
2483
  closeOnClick: n,
2405
- disabled: d,
2406
- listOrigin: a,
2407
- size: _,
2484
+ disabled: _,
2485
+ listOrigin: l,
2486
+ size: d,
2408
2487
  variant: u
2409
2488
  }
2410
2489
  );
2411
- }, yr = "_modalContent_p06ci_1", xr = {
2412
- modalContent: yr
2413
- }, mr = ({
2490
+ }, jr = "_modalContent_p06ci_1", Cr = {
2491
+ modalContent: jr
2492
+ }, wr = ({
2414
2493
  userFlow: t,
2415
2494
  pageId: e,
2416
2495
  responseKey: s,
2417
2496
  header: r,
2418
- body: c,
2419
- footer: l,
2420
- headerStatusColor: i,
2497
+ body: o,
2498
+ footer: i,
2499
+ headerStatusColor: c,
2421
2500
  ...n
2422
2501
  }) => {
2423
- const d = v((y) => {
2502
+ const _ = v((x) => {
2424
2503
  var m;
2425
- return (m = y[t]) == null ? void 0 : m.isModalOpen;
2426
- }), a = v((y) => {
2504
+ return (m = x[t]) == null ? void 0 : m.isModalOpen;
2505
+ }), l = v((x) => {
2427
2506
  var m;
2428
- return (m = y[t]) == null ? void 0 : m.isLoading;
2429
- }), _ = d && !a, u = {
2507
+ return (m = x[t]) == null ? void 0 : m.isLoading;
2508
+ }), d = _ && !l, u = {
2430
2509
  ...n
2431
- }, h = (u == null ? void 0 : u.headerStatusColor) ?? i, f = L(() => {
2432
- qt(t), It(t, !1);
2433
- }, [t, s]), x = Array.isArray(r) ? E(t, e, r) : r, b = E(t, e, c), g = E(t, e, l);
2434
- return /* @__PURE__ */ o.jsx(
2435
- ze,
2510
+ }, h = (u == null ? void 0 : u.headerStatusColor) ?? c, f = L(() => {
2511
+ Lt(t), It(t, !1);
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,
2436
2515
  {
2437
2516
  ...u,
2438
2517
  headerStatusColor: h,
2439
- header: typeof x == "string" ? x : /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${m}`)) }),
2440
- children: /* @__PURE__ */ o.jsx("section", { className: xr.modalContent, children: b.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${m}`)) }),
2441
- actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: g.map((y, m) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${m}`)) }),
2442
- 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,
2443
2522
  onClose: f
2444
2523
  }
2445
2524
  );
2446
- }, gr = ({ userFlow: t, pageId: e }) => {
2447
- var l, i;
2448
- const s = bn(t);
2525
+ }, Nr = ({ userFlow: t, pageId: e }) => {
2526
+ var i, c;
2527
+ const s = jn(t);
2449
2528
  if (!s)
2450
2529
  return null;
2451
2530
  const r = [
2452
2531
  ...(s == null ? void 0 : s.components) || [],
2453
- ...((l = s == null ? void 0 : s.header) == null ? void 0 : l.components) || [],
2454
- ...((i = s == null ? void 0 : s.body) == null ? void 0 : i.components) || []
2455
- ], 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(
2456
2535
  t,
2457
2536
  e,
2458
2537
  r
2459
2538
  );
2460
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
2461
- const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
2462
- return /* @__PURE__ */ o.jsx(k, { 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);
2463
2542
  }) });
2464
- }, pr = [
2543
+ }, vr = [
2465
2544
  "success",
2466
2545
  "warning",
2467
2546
  "error",
2468
2547
  "info",
2469
2548
  "neutral"
2470
- ], je = {
2549
+ ], Ce = {
2471
2550
  success: {
2472
2551
  color: "success-opacity",
2473
2552
  textColor: "success-60",
@@ -2493,65 +2572,65 @@ const Ds = (t) => {
2493
2572
  textColor: "neutral-70",
2494
2573
  iconColor: "neutral-70"
2495
2574
  }
2496
- }, br = (t) => typeof t == "string" && pr.includes(t), jr = (t) => t != null && t.length ? t.length === 2 && br(t[1]) ? [{ label: String(t[0]), variant: t[1] }] : t.map((e) => ({
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) => ({
2497
2576
  label: String(e),
2498
2577
  variant: "neutral"
2499
- })) : [], Cr = (t) => {
2500
- const { content: e, variant: s = "neutral", ...r } = t, c = je[s], l = {
2578
+ })) : [], Sr = (t) => {
2579
+ const { content: e, variant: s = "neutral", ...r } = t, o = Ce[s], i = {
2501
2580
  ...r,
2502
2581
  children: e,
2503
- color: (r == null ? void 0 : r.color) ?? c.color,
2504
- textColor: (r == null ? void 0 : r.textColor) ?? c.textColor,
2505
- 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
2506
2585
  };
2507
- return /* @__PURE__ */ o.jsx(St, { ...l });
2508
- }, Nr = (t) => {
2586
+ return /* @__PURE__ */ a.jsx(St, { ...i });
2587
+ }, Tr = (t) => {
2509
2588
  const { content: e } = t;
2510
- return /* @__PURE__ */ o.jsx(ce, { children: e });
2511
- }, wr = (t) => {
2589
+ return /* @__PURE__ */ a.jsx(ce, { children: e });
2590
+ }, Ar = (t) => {
2512
2591
  const {
2513
2592
  userFlow: e,
2514
2593
  pageId: s,
2515
2594
  responseKey: r,
2516
- actionType: c,
2517
- dataSource: l,
2518
- dependencies: i,
2595
+ actionType: o,
2596
+ dataSource: i,
2597
+ dependencies: c,
2519
2598
  onClick: n,
2520
- ...d
2521
- } = t, a = pt(e, s), { disabled: _ } = M(
2599
+ ..._
2600
+ } = t, l = xt(e, s), { disabled: d } = B(
2522
2601
  e,
2523
- i
2602
+ c
2524
2603
  ), u = {
2525
- ...d
2526
- }, h = (u == null ? void 0 : u.disabled) ?? _, [f, x] = $(!1), b = ut(!1), g = L(async () => {
2604
+ ..._
2605
+ }, h = (u == null ? void 0 : u.disabled) ?? d, [f, y] = q(!1), b = ut(!1), p = L(async () => {
2527
2606
  if (b.current)
2528
2607
  return;
2529
- const y = c === "FETCH_DATA_SOURCE";
2530
- y && (b.current = !0, x(!0));
2608
+ const x = o === "FETCH_DATA_SOURCE";
2609
+ x && (b.current = !0, y(!0));
2531
2610
  try {
2532
- await a({
2611
+ await l({
2533
2612
  responseKey: r,
2534
- actionType: c,
2535
- dataSource: l,
2536
- dependencies: i
2613
+ actionType: o,
2614
+ dataSource: i,
2615
+ dependencies: c
2537
2616
  });
2538
2617
  } catch (m) {
2539
2618
  console.error("[RoundButtonNotFront] Action failed:", m);
2540
2619
  } finally {
2541
- y && (b.current = !1, x(!1));
2620
+ x && (b.current = !1, y(!1));
2542
2621
  }
2543
- }, [c, l, i, r, a]);
2544
- return /* @__PURE__ */ o.jsx(
2545
- Xe,
2622
+ }, [o, i, c, r, l]);
2623
+ return /* @__PURE__ */ a.jsx(
2624
+ Je,
2546
2625
  {
2547
2626
  ...u,
2548
2627
  loading: u.loading || f,
2549
2628
  disabled: h,
2550
- onClick: () => !h && !f && (n ?? g)()
2629
+ onClick: () => !h && !f && (n ?? p)()
2551
2630
  }
2552
2631
  );
2553
- }, vr = "_row_1bqj4_1", Er = "_row_column_1bqj4_65", z = {
2554
- row: vr,
2632
+ }, Or = "_row_1bqj4_1", $r = "_row_column_1bqj4_65", z = {
2633
+ row: Or,
2555
2634
  "row__gap-none": "_row__gap-none_1bqj4_5",
2556
2635
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
2557
2636
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -2572,7 +2651,7 @@ const Ds = (t) => {
2572
2651
  "row__align-center": "_row__align-center_1bqj4_56",
2573
2652
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
2574
2653
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
2575
- row_column: Er,
2654
+ row_column: $r,
2576
2655
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
2577
2656
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
2578
2657
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -2593,27 +2672,27 @@ const Ds = (t) => {
2593
2672
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
2594
2673
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
2595
2674
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
2596
- }, kr = (t) => {
2675
+ }, Dr = (t) => {
2597
2676
  const {
2598
2677
  userFlow: e,
2599
2678
  pageId: s,
2600
2679
  columnWidth: r,
2601
- columns: c,
2602
- gap: l = "md",
2603
- justifyContent: i = "start",
2680
+ columns: o,
2681
+ gap: i = "md",
2682
+ justifyContent: c = "start",
2604
2683
  alignItems: n = "stretch"
2605
- } = t, d = Array.isArray(c) ? c.map((a, _) => {
2606
- const u = `col_${_}`, h = `col_${_}`;
2607
- 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))
2608
2687
  return {
2609
2688
  gap: "md",
2610
2689
  justifyContent: "start",
2611
2690
  alignItems: "start",
2612
- items: a,
2691
+ items: l,
2613
2692
  hash: u,
2614
2693
  responseKey: h
2615
2694
  };
2616
- const f = a;
2695
+ const f = l;
2617
2696
  return {
2618
2697
  gap: (f == null ? void 0 : f.gap) ?? "md",
2619
2698
  justifyContent: (f == null ? void 0 : f.justifyContent) ?? "start",
@@ -2623,57 +2702,57 @@ const Ds = (t) => {
2623
2702
  responseKey: (f == null ? void 0 : f.responseKey) ?? h
2624
2703
  };
2625
2704
  }) : [];
2626
- return d.length === 0 ? null : /* @__PURE__ */ o.jsx(
2705
+ return _.length === 0 ? null : /* @__PURE__ */ a.jsx(
2627
2706
  "div",
2628
2707
  {
2629
2708
  className: et(
2630
2709
  z.row,
2631
- z[`row__gap-${l}`],
2632
- z[`row__justify-${i}`],
2710
+ z[`row__gap-${i}`],
2711
+ z[`row__justify-${c}`],
2633
2712
  z[`row__align-${n}`]
2634
2713
  ),
2635
- children: d == null ? void 0 : d.map((a, _) => {
2636
- const u = (r == null ? void 0 : r[_]) || `${100 / d.length}%`, h = E(e, s, a.items);
2637
- 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(
2638
2717
  "div",
2639
2718
  {
2640
2719
  className: et(
2641
2720
  z.row_column,
2642
- z[`row_column__gap-${a.gap}`],
2643
- z[`row_column__justify-${a.justifyContent}`],
2644
- 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}`]
2645
2724
  ),
2646
2725
  style: { width: u },
2647
2726
  children: h
2648
2727
  },
2649
- a.hash || _
2728
+ l.hash || d
2650
2729
  );
2651
2730
  })
2652
2731
  }
2653
2732
  );
2654
2733
  };
2655
- function Ce({
2734
+ function we({
2656
2735
  userFlow: t,
2657
2736
  pageId: e,
2658
2737
  responseKey: s,
2659
2738
  actionType: r,
2660
- getNextUI: c,
2661
- isMulti: l = !1,
2662
- debounceMs: i
2739
+ getNextUI: o,
2740
+ isMulti: i = !1,
2741
+ debounceMs: c
2663
2742
  }) {
2664
2743
  const n = ut(null);
2665
2744
  U(() => () => {
2666
2745
  n.current !== null && (clearTimeout(n.current), n.current = null);
2667
2746
  }, []);
2668
- const d = L(
2669
- async (_) => {
2747
+ const _ = L(
2748
+ async (d) => {
2670
2749
  var f;
2671
2750
  const u = {
2672
2751
  ...(f = v.getState()[t]) == null ? void 0 : f.entries
2673
2752
  };
2674
- if (_ ? (u[s] = _, I(t, u)) : (delete u[s], jn(t, s)), r && (r === "GO_TO_NEXT_UI" || r === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
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"))
2675
2754
  try {
2676
- const b = await c(
2755
+ const b = await o(
2677
2756
  t,
2678
2757
  e,
2679
2758
  u,
@@ -2681,317 +2760,317 @@ function Ce({
2681
2760
  r === "GO_TO_NEXT_UI"
2682
2761
  );
2683
2762
  b != null && b.data && K(t, b.data);
2684
- } catch (x) {
2685
- console.error("[useSelectChange] Failed to fetch next UI", x);
2763
+ } catch (y) {
2764
+ console.error("[useSelectChange] Failed to fetch next UI", y);
2686
2765
  }
2687
2766
  },
2688
- [t, e, s, r, c]
2767
+ [t, e, s, r, o]
2689
2768
  );
2690
2769
  return L(
2691
- (_) => {
2692
- if (!l) {
2693
- d(_);
2770
+ (d) => {
2771
+ if (!i) {
2772
+ _(d);
2694
2773
  return;
2695
2774
  }
2696
- if (i == null) {
2697
- d(_);
2775
+ if (c == null) {
2776
+ _(d);
2698
2777
  return;
2699
2778
  }
2700
2779
  n.current !== null && (clearTimeout(n.current), n.current = null), n.current = setTimeout(() => {
2701
- d(_), n.current = null;
2702
- }, i);
2780
+ _(d), n.current = null;
2781
+ }, c);
2703
2782
  },
2704
- [l, i, d]
2783
+ [i, c, _]
2705
2784
  );
2706
2785
  }
2707
- const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2786
+ const Rr = /\{([^}]+)\}/g, qr = (t, e) => {
2708
2787
  var s;
2709
- return e.includes("{") ? e.replace(Sr, (r, c) => {
2710
- var i;
2711
- const l = (i = B.query(t, c.trim())) == null ? void 0 : i[0];
2712
- return l != null ? String(l) : "";
2713
- }) : (s = B.query(t, e)) == null ? void 0 : s[0];
2714
- }, Ar = (t, e, s, r) => {
2715
- const c = B.query(t, e);
2716
- return (c == null ? void 0 : c.map((l) => {
2717
- var d;
2718
- const i = Tr(l, s), n = r ? (d = B.query(l, r)) == null ? void 0 : d[0] : l;
2719
- return { label: i, value: n };
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) : "";
2792
+ }) : (s = M.query(t, e)) == null ? void 0 : s[0];
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 };
2720
2799
  })) ?? [];
2721
- }, Or = (t, e, s, r = 10) => {
2722
- var n, d;
2723
- let c, l;
2800
+ }, Ir = (t, e, s, r = 10) => {
2801
+ var n, _;
2802
+ let o, i;
2724
2803
  if (s) {
2725
- const a = B.value(t, s.size ?? "$.meta.size") ?? r, _ = B.value(t, s.total ?? "$.meta.total") ?? 0;
2726
- 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;
2727
2806
  } else {
2728
- const a = t == null ? void 0 : t.meta;
2729
- c = (a == null ? void 0 : a.size) ?? ((n = a == null ? void 0 : a.page) == null ? void 0 : n.size) ?? r, l = (a == null ? void 0 : a.total) ?? ((d = a == null ? void 0 : a.page) == null ? void 0 : d.total) ?? 0;
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;
2730
2809
  }
2731
- const i = l > 0 ? Math.ceil(l / c) > e : !1;
2810
+ const c = i > 0 ? Math.ceil(i / o) > e : !1;
2732
2811
  return {
2733
- pageSize: c,
2734
- total: l,
2735
- hasMore: i
2812
+ pageSize: o,
2813
+ total: i,
2814
+ hasMore: c
2736
2815
  };
2737
- }, $r = "_selectNotFront_ch3v5_1", Ne = {
2738
- selectNotFront: $r
2739
- }, Rr = ({
2816
+ }, Kr = "_selectNotFront_ch3v5_1", Ne = {
2817
+ selectNotFront: Kr
2818
+ }, Br = ({
2740
2819
  userFlow: t,
2741
2820
  pageId: e,
2742
2821
  responseKey: s,
2743
2822
  required: r,
2744
- dataSource: c,
2745
- actionType: l,
2746
- dependencies: i,
2823
+ dataSource: o,
2824
+ actionType: i,
2825
+ dependencies: c,
2747
2826
  debounceMs: n,
2748
- ...d
2827
+ ..._
2749
2828
  }) => {
2750
- const a = {
2751
- ...d
2752
- }, { getNextUI: _, fetchDataSource: u } = G(), [h, f] = $((a == null ? void 0 : a.value) ?? ""), { disabled: x } = M(
2829
+ const l = {
2830
+ ..._
2831
+ }, { getNextUI: d, fetchDataSource: u } = H(), [h, f] = q((l == null ? void 0 : l.value) ?? ""), { disabled: y } = B(
2753
2832
  t,
2754
- i
2755
- ), b = (a == null ? void 0 : a.disabled) ?? x, g = O(() => r && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, r]), y = O(() => {
2756
- const j = a != null && a.isMulti ? h : [h], N = {};
2757
- return Array.isArray(j) && j.forEach((w) => {
2758
- if (!w) return;
2759
- const S = JSON.stringify(w.value), D = JSON.stringify(w.label);
2760
- N[S] = w, D in N || (N[D] = w);
2761
- }), N;
2762
- }, [h]), m = Ce({
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 = {};
2836
+ return Array.isArray(j) && j.forEach((N) => {
2837
+ if (!N) return;
2838
+ const k = JSON.stringify(N.value), O = JSON.stringify(N.label);
2839
+ w[k] = N, O in w || (w[O] = N);
2840
+ }), w;
2841
+ }, [h]), m = we({
2763
2842
  userFlow: t,
2764
2843
  pageId: e,
2765
2844
  responseKey: s,
2766
- actionType: l,
2767
- getNextUI: _,
2768
- isMulti: a == null ? void 0 : a.isMulti,
2845
+ actionType: i,
2846
+ getNextUI: d,
2847
+ isMulti: l == null ? void 0 : l.isMulti,
2769
2848
  debounceMs: n
2770
- }), p = (j) => {
2849
+ }), g = (j) => {
2771
2850
  f(j), m(j);
2772
- }, C = async (j, N, { page: w }) => {
2851
+ }, C = async (j, w, { page: N }) => {
2773
2852
  const {
2774
- jsonPathLabel: S,
2775
- jsonPathOptions: D,
2776
- jsonPathValue: q,
2853
+ jsonPathLabel: k,
2854
+ jsonPathOptions: O,
2855
+ jsonPathValue: $,
2777
2856
  jsonPathPagination: Q
2778
- } = c, V = Lt(
2779
- c,
2780
- w,
2857
+ } = o, V = Kt(
2858
+ o,
2859
+ N,
2781
2860
  j
2782
- ), T = await u(
2861
+ ), S = await u(
2783
2862
  V,
2784
2863
  t,
2785
2864
  !1
2786
- ), H = T == null ? void 0 : T.data, ct = H ? Ar(
2787
- H,
2788
- D,
2789
- S,
2790
- q
2791
- ) : [], { hasMore: bt } = Or(
2792
- H,
2793
- w,
2865
+ ), G = S == null ? void 0 : S.data, ct = G ? Lr(
2866
+ G,
2867
+ O,
2868
+ k,
2869
+ $
2870
+ ) : [], { hasMore: bt } = Ir(
2871
+ G,
2872
+ N,
2794
2873
  Q
2795
2874
  );
2796
2875
  return {
2797
2876
  options: ct,
2798
2877
  hasMore: bt,
2799
2878
  additional: {
2800
- page: w + 1
2879
+ page: N + 1
2801
2880
  }
2802
2881
  };
2803
2882
  };
2804
- return /* @__PURE__ */ o.jsx(
2805
- Je,
2883
+ return /* @__PURE__ */ a.jsx(
2884
+ We,
2806
2885
  {
2807
- ...a,
2886
+ ...l,
2808
2887
  className: Ne.selectNotFront,
2809
- label: g,
2888
+ label: p,
2810
2889
  value: h,
2811
2890
  disabled: b,
2812
- noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
2813
- onChange: (j) => !b && p(j),
2891
+ noOptionsMessage: () => /* @__PURE__ */ a.jsx(a.Fragment, { children: "Sin opciones" }),
2892
+ onChange: (j) => !b && g(j),
2814
2893
  loadOptions: C,
2815
2894
  additional: { page: 1 },
2816
2895
  isOptionDisabled: (j) => {
2817
- const N = JSON.stringify(j == null ? void 0 : j.value), w = JSON.stringify(j == null ? void 0 : j.label);
2818
- return !!(y != null && y[N]) || !!(y != null && y[w]);
2896
+ const w = JSON.stringify(j == null ? void 0 : j.value), N = JSON.stringify(j == null ? void 0 : j.label);
2897
+ return !!(x != null && x[w]) || !!(x != null && x[N]);
2819
2898
  },
2820
2899
  debounceTimeout: 350
2821
2900
  }
2822
2901
  );
2823
- }, Dr = ({
2902
+ }, Mr = ({
2824
2903
  userFlow: t,
2825
2904
  pageId: e,
2826
2905
  responseKey: s,
2827
2906
  dataSource: r,
2828
- required: c,
2829
- actionType: l,
2830
- dependencies: i,
2907
+ required: o,
2908
+ actionType: i,
2909
+ dependencies: c,
2831
2910
  debounceMs: n,
2832
- ...d
2911
+ ..._
2833
2912
  }) => {
2834
- const a = {
2835
- ...d
2836
- }, { getNextUI: _ } = G(), [u, h] = $(a.value || ""), { disabled: f } = M(
2913
+ const l = {
2914
+ ..._
2915
+ }, { getNextUI: d } = H(), [u, h] = q(l.value || ""), { disabled: f } = B(
2837
2916
  t,
2838
- i
2839
- ), x = (a == null ? void 0 : a.disabled) ?? f, b = O(() => c && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, c]), g = Ce({
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({
2840
2919
  userFlow: t,
2841
2920
  pageId: e,
2842
2921
  responseKey: s,
2843
- actionType: l,
2844
- getNextUI: _,
2845
- isMulti: a == null ? void 0 : a.isMulti,
2922
+ actionType: i,
2923
+ getNextUI: d,
2924
+ isMulti: l == null ? void 0 : l.isMulti,
2846
2925
  debounceMs: n
2847
- }), y = (m) => {
2848
- h(m), g(m);
2926
+ }), x = (m) => {
2927
+ h(m), p(m);
2849
2928
  };
2850
- return /* @__PURE__ */ o.jsx(
2851
- We,
2929
+ return /* @__PURE__ */ a.jsx(
2930
+ Ye,
2852
2931
  {
2853
- ...a,
2932
+ ...l,
2854
2933
  className: Ne.selectNotFront,
2855
2934
  label: b,
2856
2935
  value: u,
2857
- disabled: x,
2858
- onChange: (m) => !x && y(m)
2936
+ disabled: y,
2937
+ onChange: (m) => !y && x(m)
2859
2938
  }
2860
2939
  );
2861
- }, qr = (t) => {
2940
+ }, Gr = (t) => {
2862
2941
  const { dataSource: e } = t;
2863
- return e ? /* @__PURE__ */ o.jsx(Rr, { ...t }) : /* @__PURE__ */ o.jsx(Dr, { ...t });
2864
- }, Ir = "_spacing_19hqa_1", Lr = "_spacing__xxs_19hqa_1", Kr = "_spacing__xs_19hqa_4", Br = "_spacing__sm_19hqa_7", Mr = "_spacing__md_19hqa_10", Hr = "_spacing__lg_19hqa_13", Gr = "_spacing__xl_19hqa_16", Ur = "_spacing__xxl_19hqa_19", Vr = "_spacing__xxxl_19hqa_22", ee = {
2865
- spacing: Ir,
2866
- spacing__xxs: Lr,
2867
- spacing__xs: Kr,
2868
- spacing__sm: Br,
2869
- spacing__md: Mr,
2870
- spacing__lg: Hr,
2871
- spacing__xl: Gr,
2872
- spacing__xxl: Ur,
2873
- spacing__xxxl: Vr
2874
- }, zr = (t) => {
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,
2946
+ spacing__xs: Ur,
2947
+ spacing__sm: zr,
2948
+ spacing__md: Xr,
2949
+ spacing__lg: Jr,
2950
+ spacing__xl: Wr,
2951
+ spacing__xxl: Yr,
2952
+ spacing__xxxl: Qr
2953
+ }, Zr = (t) => {
2875
2954
  const { size: e } = t, s = et(ee.spacing, ee[`spacing__${e}`]);
2876
- return /* @__PURE__ */ o.jsx("div", { className: s });
2877
- }, Xr = (t) => {
2955
+ return /* @__PURE__ */ a.jsx("div", { className: s });
2956
+ }, Fr = (t) => {
2878
2957
  const {
2879
2958
  userFlow: e,
2880
2959
  pageId: s,
2881
2960
  responseKey: r,
2882
- actionType: c,
2883
- label: l,
2884
- value: i,
2961
+ actionType: o,
2962
+ label: i,
2963
+ value: c,
2885
2964
  required: n,
2886
- dependencies: d,
2887
- ...a
2888
- } = t, _ = {
2889
- ...a
2890
- }, { getNextUI: u } = G(), [h, f] = $(i || !1), { disabled: x } = M(
2965
+ dependencies: _,
2966
+ ...l
2967
+ } = t, d = {
2968
+ ...l
2969
+ }, { getNextUI: u } = H(), [h, f] = q(c || !1), { disabled: y } = B(
2891
2970
  e,
2892
- d
2893
- ), b = (_ == null ? void 0 : _.disabled) ?? x, g = O(() => n && l ? `${l} *` : l ?? "", [l, n]), y = L(async () => {
2971
+ _
2972
+ ), b = (d == null ? void 0 : d.disabled) ?? y, p = D(() => n && i ? `${i} *` : i ?? "", [i, n]), x = L(async () => {
2894
2973
  var m;
2895
2974
  try {
2896
- const p = !h;
2897
- f(p);
2975
+ const g = !h;
2976
+ f(g);
2898
2977
  const C = {
2899
2978
  ...(m = v.getState()[e]) == null ? void 0 : m.entries,
2900
- [r]: p
2979
+ [r]: g
2901
2980
  };
2902
- switch (I(e, C), c) {
2981
+ switch (I(e, C), o) {
2903
2982
  case "GO_TO_NEXT_UI":
2904
2983
  case "GO_TO_NEXT_UI_WITHOUT_LOADING": {
2905
- const N = await u(
2984
+ const w = await u(
2906
2985
  e,
2907
2986
  s,
2908
2987
  C,
2909
2988
  r,
2910
- c === "GO_TO_NEXT_UI"
2989
+ o === "GO_TO_NEXT_UI"
2911
2990
  );
2912
- N != null && N.data && K(e, N == null ? void 0 : N.data);
2991
+ w != null && w.data && K(e, w == null ? void 0 : w.data);
2913
2992
  break;
2914
2993
  }
2915
2994
  default:
2916
2995
  break;
2917
2996
  }
2918
- } catch (p) {
2919
- 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));
2920
2999
  }
2921
- }, [e, s, r, c, h]);
2922
- return /* @__PURE__ */ o.jsx(
2923
- Ye,
3000
+ }, [e, s, r, o, h]);
3001
+ return /* @__PURE__ */ a.jsx(
3002
+ Qe,
2924
3003
  {
2925
- ..._,
2926
- label: g,
3004
+ ...d,
3005
+ label: p,
2927
3006
  checked: h,
2928
3007
  disabled: b,
2929
- onChange: () => !b && y()
3008
+ onChange: () => !b && x()
2930
3009
  }
2931
3010
  );
2932
- }, Jr = "_tableSkeleton_3nr9n_1", Wr = "_tableArrayPills_3nr9n_7", we = {
2933
- tableSkeleton: Jr,
2934
- tableArrayPills: Wr
2935
- }, Yr = ({ values: t }) => {
2936
- const s = jr(t ?? []), r = s.slice(0, 4), c = s.length - 4;
2937
- return /* @__PURE__ */ o.jsxs("div", { className: we.tableArrayPills, children: [
2938
- r.map((l, i) => {
2939
- const n = je[l.variant];
2940
- return /* @__PURE__ */ o.jsx(
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(
2941
3020
  St,
2942
3021
  {
2943
3022
  color: n.color,
2944
3023
  textColor: n.textColor,
2945
3024
  iconColor: n.iconColor,
2946
- children: l.label
3025
+ children: i.label
2947
3026
  },
2948
- `${l.label}-${l.variant}-${i}`
3027
+ `${i.label}-${i.variant}-${c}`
2949
3028
  );
2950
3029
  }),
2951
- c > 0 && /* @__PURE__ */ o.jsxs(St, { outlined: !0, children: [
3030
+ o > 0 && /* @__PURE__ */ a.jsxs(St, { outlined: !0, children: [
2952
3031
  "+",
2953
- c
3032
+ o
2954
3033
  ] })
2955
3034
  ] });
2956
- }, Qr = ({
3035
+ }, na = ({
2957
3036
  userFlow: t,
2958
3037
  pageId: e,
2959
3038
  tableResponseKey: s,
2960
3039
  component: r,
2961
- rowData: c
3040
+ rowData: o
2962
3041
  }) => {
2963
- const { getNextUI: l, fetchAndGetNextUI: i, fetchDataSource: n } = G(), d = E(t, e, [
3042
+ const { getNextUI: i, fetchAndGetNextUI: c, fetchDataSource: n } = H(), _ = E(t, e, [
2964
3043
  { ...r }
2965
- ]), a = (d == null ? void 0 : d[0]) || null;
2966
- if (!a) return null;
3044
+ ]), l = (_ == null ? void 0 : _[0]) || null;
3045
+ if (!l) return null;
2967
3046
  const {
2968
- actionType: _,
3047
+ actionType: d,
2969
3048
  responseKey: u,
2970
3049
  dataSource: h
2971
- } = a.props, f = L(async () => {
2972
- var x, b, g;
3050
+ } = l.props, f = L(async () => {
3051
+ var y, b, p;
2973
3052
  try {
2974
- const y = {
2975
- ...(x = v.getState()[t]) == null ? void 0 : x.entries,
3053
+ const x = {
3054
+ ...(y = v.getState()[t]) == null ? void 0 : y.entries,
2976
3055
  [u]: { status: 200 },
2977
- [s]: [{ ...c }]
3056
+ [s]: [{ ...o }]
2978
3057
  };
2979
- switch (I(t, y), _) {
3058
+ switch (I(t, x), d) {
2980
3059
  case "GO_TO_NEXT_UI": {
2981
- const m = await l(
3060
+ const m = await i(
2982
3061
  t,
2983
3062
  e,
2984
- y,
3063
+ x,
2985
3064
  u
2986
3065
  );
2987
3066
  m != null && m.data && K(t, m == null ? void 0 : m.data);
2988
3067
  break;
2989
3068
  }
2990
3069
  case "FETCH_AND_GO_TO_NEXT_UI": {
2991
- const m = await i(
3070
+ const m = await c(
2992
3071
  t,
2993
3072
  e,
2994
- y,
3073
+ x,
2995
3074
  u,
2996
3075
  h
2997
3076
  );
@@ -2999,47 +3078,47 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
2999
3078
  break;
3000
3079
  }
3001
3080
  case "GET_DATA_SOURCE": {
3002
- const m = await l(
3081
+ const m = await i(
3003
3082
  t,
3004
3083
  e,
3005
- y,
3084
+ x,
3006
3085
  u
3007
- ), p = (b = m == null ? void 0 : m.data) == null ? void 0 : b.content;
3008
- if ((p == null ? void 0 : p.type) !== "fetch") break;
3009
- 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(
3010
3089
  C,
3011
3090
  t,
3012
3091
  // Avoid to handle loading state until all the requests are done
3013
3092
  !1
3014
- ), N = {
3015
- ...(g = v.getState()[t]) == null ? void 0 : g.entries,
3093
+ ), w = {
3094
+ ...(p = v.getState()[t]) == null ? void 0 : p.entries,
3016
3095
  [u]: {
3017
3096
  status: j == null ? void 0 : j.status,
3018
3097
  content: j == null ? void 0 : j.data
3019
3098
  }
3020
3099
  };
3021
- I(t, N);
3022
- const w = await l(
3100
+ I(t, w);
3101
+ const N = await i(
3023
3102
  t,
3024
3103
  e,
3025
- N,
3104
+ w,
3026
3105
  u
3027
3106
  );
3028
- w != null && w.data && K(t, w == null ? void 0 : w.data);
3107
+ N != null && N.data && K(t, N == null ? void 0 : N.data);
3029
3108
  break;
3030
3109
  }
3031
3110
  default:
3032
- console.warn(`Unhandled actionType: ${_}`);
3111
+ console.warn(`Unhandled actionType: ${d}`);
3033
3112
  break;
3034
3113
  }
3035
- } catch (y) {
3036
- alert(JSON.stringify(y));
3114
+ } catch (x) {
3115
+ alert(JSON.stringify(x));
3037
3116
  }
3038
- }, [_, h, e, u, t]);
3039
- return Se(a, {
3117
+ }, [d, h, e, u, t]);
3118
+ return Ae(l, {
3040
3119
  onClick: f
3041
3120
  });
3042
- }, Zr = () => /* @__PURE__ */ o.jsx("div", { className: we.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(
3043
3122
  oe,
3044
3123
  {
3045
3124
  maxWidth: "100%",
@@ -3047,487 +3126,486 @@ const Sr = /\{([^}]+)\}/g, Tr = (t, e) => {
3047
3126
  radius: 8
3048
3127
  },
3049
3128
  `tableSkeletonBase${e}`
3050
- )) }), Fr = (t, e) => !(e != null && e.length) || !t ? t : t.map((s) => e.some(
3051
- (c) => Array.isArray(
3052
- 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
3053
3132
  )
3054
3133
  ) ? {
3055
3134
  ...s,
3056
- renderCell: (c) => {
3057
- const l = s.accessor ? c[s.accessor] : void 0;
3058
- return Array.isArray(l) ? /* @__PURE__ */ o.jsx(Yr, { 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 ?? "";
3059
3138
  }
3060
- } : s), Pr = ({
3139
+ } : s), aa = ({
3061
3140
  userFlow: t,
3062
3141
  pageId: e,
3063
3142
  responseKey: s,
3064
3143
  component: r,
3065
- dataSource: c,
3066
- rightActions: l,
3067
- data: i,
3144
+ dataSource: o,
3145
+ rightActions: i,
3146
+ data: c,
3068
3147
  pageSize: n,
3069
- ...d
3148
+ ..._
3070
3149
  }) => {
3071
3150
  var Q, V;
3072
- const { fetchDataSource: a } = G(), [_, u] = $(!1), [h, f] = $(1), [x, b] = $(null), g = !c && Array.isArray(i), y = !!(c != null && c.jsonPathCursorPagination) && !!((Q = c == null ? void 0 : c.jsonPathPagination) != null && Q.hasMore), m = ut(
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(
3073
3152
  /* @__PURE__ */ new Map([[1, null]])
3074
- ), p = O(() => {
3075
- if (l != null && l.length)
3076
- return l.map((T, H) => ({
3077
- renderContent: (ct) => /* @__PURE__ */ o.jsx(
3078
- Qr,
3153
+ ), g = D(() => {
3154
+ if (i != null && i.length)
3155
+ return i.map((S, G) => ({
3156
+ renderContent: (ct) => /* @__PURE__ */ a.jsx(
3157
+ na,
3079
3158
  {
3080
3159
  userFlow: t,
3081
3160
  pageId: e,
3082
3161
  tableResponseKey: s,
3083
- component: T,
3162
+ component: S,
3084
3163
  rowData: ct
3085
3164
  },
3086
- `tableRowAction${H}`
3165
+ `tableRowAction${G}`
3087
3166
  )
3088
3167
  }));
3089
- }, [l, t, e, s]), C = async (T = 1) => {
3090
- if (!c)
3168
+ }, [i, t, e, s]), C = async (S = 1) => {
3169
+ if (!o)
3091
3170
  return;
3092
3171
  const {
3093
- mapperData: H,
3172
+ mapperData: G,
3094
3173
  jsonPathData: ct,
3095
3174
  jsonPathPagination: bt,
3096
3175
  jsonPathCursorPagination: it
3097
- } = c;
3098
- if (it && T !== 1 && !m.current.has(T)) {
3176
+ } = o;
3177
+ if (it && S !== 1 && !m.current.has(S)) {
3099
3178
  f(1), C(1);
3100
3179
  return;
3101
3180
  }
3102
- it && T === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
3181
+ it && S === 1 && (m.current = /* @__PURE__ */ new Map([[1, null]]));
3103
3182
  try {
3104
3183
  u(!0);
3105
- const jt = it ? m.current.get(T) ?? null : null, ve = Lt(
3106
- c,
3107
- T,
3184
+ const jt = it ? m.current.get(S) ?? null : null, ke = Kt(
3185
+ o,
3186
+ S,
3108
3187
  void 0,
3109
3188
  jt
3110
- ), Z = await a(
3111
- ve,
3189
+ ), Z = await l(
3190
+ ke,
3112
3191
  t,
3113
3192
  !1
3114
3193
  );
3115
3194
  if (b(
3116
- ge(
3195
+ pe(
3117
3196
  Z == null ? void 0 : Z.data,
3118
3197
  ct,
3119
- H,
3198
+ G,
3120
3199
  bt
3121
3200
  )
3122
3201
  ), it) {
3123
- const Kt = ms(
3202
+ const Bt = gs(
3124
3203
  Z == null ? void 0 : Z.data,
3125
3204
  it
3126
3205
  );
3127
- Kt && m.current.set(T + 1, Kt);
3206
+ Bt && m.current.set(S + 1, Bt);
3128
3207
  }
3129
3208
  u(!1);
3130
3209
  } catch (jt) {
3131
3210
  console.error("[TableNotFront] fetchData:", jt), u(!1);
3132
3211
  }
3133
- }, j = (T) => {
3134
- f(T), C(T);
3212
+ }, j = (S) => {
3213
+ f(S), C(S);
3135
3214
  };
3136
3215
  U(() => {
3137
- g || C();
3216
+ p || C();
3138
3217
  }, []);
3139
- const N = g ? i : x == null ? void 0 : x.items, w = g && !!n && ((i == null ? void 0 : i.length) ?? 0) > n, S = O(() => {
3140
- if (!w || !i || !n)
3141
- return N ?? [];
3142
- const T = (h - 1) * n;
3143
- return i.slice(T, T + n);
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)
3220
+ return w ?? [];
3221
+ const S = (h - 1) * n;
3222
+ return c.slice(S, S + n);
3144
3223
  }, [
3145
- w,
3146
- i,
3224
+ N,
3225
+ c,
3147
3226
  n,
3148
3227
  h,
3149
- N
3150
- ]), D = O(
3151
- () => Fr(
3152
- d.columns,
3153
- N
3228
+ w
3229
+ ]), O = D(
3230
+ () => ra(
3231
+ _.columns,
3232
+ w
3154
3233
  ),
3155
- [N, d.columns]
3156
- ), q = {
3157
- ...d,
3158
- data: S,
3159
- columns: D ?? [],
3160
- rightActions: p
3234
+ [w, _.columns]
3235
+ ), $ = {
3236
+ ..._,
3237
+ data: k,
3238
+ columns: O ?? [],
3239
+ rightActions: g
3161
3240
  };
3162
- return g ? !N || N.length === 0 ? /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3163
- /* @__PURE__ */ o.jsx(Bt, { ...q }),
3164
- w && n && i && /* @__PURE__ */ o.jsx(
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(
3165
3244
  Ct,
3166
3245
  {
3167
3246
  classname: { global: "row__end" },
3168
3247
  page: h,
3169
3248
  size: n,
3170
- total: i.length,
3249
+ total: c.length,
3171
3250
  onChange: f
3172
3251
  }
3173
3252
  )
3174
- ] }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: _ ? /* @__PURE__ */ o.jsx(Zr, {}) : x && ((V = x == null ? void 0 : x.items) == null ? void 0 : V.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3175
- /* @__PURE__ */ o.jsx(Bt, { ...q }),
3176
- !y && (x == null ? void 0 : x.pagination) && x.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(
3177
3256
  Ct,
3178
3257
  {
3179
3258
  classname: { global: "row__end" },
3180
3259
  page: h,
3181
- size: x.pagination.size,
3182
- total: x.pagination.total,
3260
+ size: y.pagination.size,
3261
+ total: y.pagination.total,
3183
3262
  onChange: j
3184
3263
  }
3185
3264
  ),
3186
- y && (x == null ? void 0 : x.pagination) && /* @__PURE__ */ o.jsx(
3265
+ x && (y == null ? void 0 : y.pagination) && /* @__PURE__ */ a.jsx(
3187
3266
  Ct,
3188
3267
  {
3189
3268
  variant: "cursor",
3190
3269
  classname: { global: "row__end" },
3191
3270
  page: h,
3192
- hasNextPage: !!x.pagination.hasMore,
3271
+ hasNextPage: !!y.pagination.hasMore,
3193
3272
  onChange: j
3194
3273
  }
3195
3274
  )
3196
- ] }) : /* @__PURE__ */ o.jsx(xt, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
3197
- }, ta = "_tabsPanel_kvslb_1", ea = {
3198
- tabsPanel: ta
3199
- }, na = ({ userFlow: t, pageId: e, components: s }) => {
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 }) => {
3200
3279
  const r = E(t, e, s);
3201
- return r != null && r.length ? /* @__PURE__ */ o.jsx("section", { className: ea.tabsPanel, children: r.map((c, l) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${l}`)) }) : null;
3202
- }, sa = ({
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 = ({
3203
3282
  userFlow: t,
3204
3283
  pageId: e,
3205
3284
  hash: s,
3206
3285
  items: r,
3207
- activeIndex: c,
3208
- className: l,
3209
- responseKey: i
3286
+ activeIndex: o,
3287
+ className: i,
3288
+ responseKey: c
3210
3289
  }) => {
3211
- const n = r.map((a, _) => ({
3212
- label: a.label,
3213
- disabled: a.disabled,
3214
- children: /* @__PURE__ */ o.jsx(
3215
- na,
3290
+ const n = r.map((l, d) => ({
3291
+ label: l.label,
3292
+ disabled: l.disabled,
3293
+ children: /* @__PURE__ */ a.jsx(
3294
+ ia,
3216
3295
  {
3217
3296
  userFlow: t,
3218
3297
  pageId: e,
3219
- components: a.components
3298
+ components: l.components
3220
3299
  },
3221
- `${s}-tab-${_}`
3300
+ `${s}-tab-${d}`
3222
3301
  )
3223
- })), d = (a) => {
3302
+ })), _ = (l) => {
3224
3303
  var u;
3225
- const _ = {
3304
+ const d = {
3226
3305
  ...(u = v.getState()[t]) == null ? void 0 : u.entries,
3227
- [i]: a
3306
+ [c]: l
3228
3307
  };
3229
- I(t, _);
3308
+ I(t, d);
3230
3309
  };
3231
- return /* @__PURE__ */ o.jsx(
3232
- Qe,
3310
+ return /* @__PURE__ */ a.jsx(
3311
+ Ze,
3233
3312
  {
3234
- className: l,
3235
- activeIndex: c,
3313
+ className: i,
3314
+ activeIndex: o,
3236
3315
  items: n,
3237
- onClick: d
3316
+ onClick: _
3238
3317
  }
3239
3318
  );
3240
- }, ra = "_textareaNotFront_1wpe5_1", aa = {
3241
- textareaNotFront: ra
3242
- }, oa = (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) => {
3243
3333
  const {
3244
3334
  userFlow: e,
3245
3335
  pageId: s,
3246
3336
  component: r,
3247
- hash: c,
3248
- responseKey: l,
3249
- required: i,
3337
+ hash: o,
3338
+ responseKey: i,
3339
+ required: c,
3250
3340
  dependencies: n,
3251
- ...d
3252
- } = t, a = {
3253
- ...d
3254
- }, [_, u] = $((a == null ? void 0 : a.value) ?? ""), { disabled: h } = M(
3341
+ ..._
3342
+ } = t, { value: l, ...d } = _, [u, h] = Ee(
3343
+ e,
3344
+ i,
3345
+ l ?? ""
3346
+ ), { disabled: f } = B(
3255
3347
  e,
3256
3348
  n
3257
- ), f = (a == null ? void 0 : a.disabled) ?? h, x = O(() => i && (a != null && a.label) ? `${a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), b = (g) => {
3258
- var m;
3259
- const y = (m = g == null ? void 0 : g.target) == null ? void 0 : m.value;
3260
- u(y), I(e, { [l]: y });
3261
- };
3262
- return U(() => {
3263
- u((a == null ? void 0 : a.value) ?? "");
3264
- }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
3265
- 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,
3266
3352
  {
3267
- ...a,
3268
- className: aa.textareaNotFront,
3269
- label: x,
3270
- value: _,
3271
- disabled: f,
3272
- 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)
3273
3359
  }
3274
3360
  );
3275
- }, ca = "_textFieldNotFront_1n8fy_1", ia = {
3276
- textFieldNotFront: ca
3277
- }, la = (t) => {
3361
+ }, ha = "_textFieldNotFront_1n8fy_1", fa = {
3362
+ textFieldNotFront: ha
3363
+ }, xa = (t) => {
3278
3364
  const {
3279
3365
  userFlow: e,
3280
3366
  pageId: s,
3281
3367
  component: r,
3282
- hash: c,
3283
- responseKey: l,
3284
- required: i,
3368
+ hash: o,
3369
+ responseKey: i,
3370
+ required: c,
3285
3371
  dependencies: n,
3286
- ...d
3287
- } = t, a = {
3288
- ...d
3289
- }, [_, u] = $((a == null ? void 0 : a.value) ?? ""), { disabled: h } = M(
3372
+ ..._
3373
+ } = t, { value: l, ...d } = _, [u, h] = Ee(
3374
+ e,
3375
+ i,
3376
+ l ?? ""
3377
+ ), { disabled: f } = B(
3290
3378
  e,
3291
3379
  n
3292
- ), f = (a == null ? void 0 : a.disabled) ?? h, x = O(() => i && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, i]), b = (g) => {
3293
- var p;
3294
- const y = (p = g == null ? void 0 : g.target) == null ? void 0 : p.value;
3295
- u(y);
3296
- const m = {
3297
- [l]: y
3298
- };
3299
- I(e, m);
3300
- };
3301
- return U(() => {
3302
- u((a == null ? void 0 : a.value) ?? "");
3303
- }, [a == null ? void 0 : a.value]), /* @__PURE__ */ o.jsx(
3304
- 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,
3305
3383
  {
3306
- ...a,
3307
- className: ia.textFieldNotFront,
3384
+ ...d,
3385
+ className: fa.textFieldNotFront,
3308
3386
  allowClear: !1,
3309
- label: x,
3310
- value: _,
3311
- disabled: f,
3312
- onChange: (g) => !f && b(g)
3387
+ label: b,
3388
+ value: u,
3389
+ disabled: y,
3390
+ onChange: (x) => !y && p(x)
3313
3391
  }
3314
3392
  );
3315
- }, da = ({
3393
+ }, ya = ({
3316
3394
  userFlow: t,
3317
3395
  pageId: e,
3318
3396
  responseKey: s,
3319
3397
  variant: r,
3320
- content: c,
3321
- actionType: l,
3322
- redirectUrl: i
3398
+ content: o,
3399
+ actionType: i,
3400
+ redirectUrl: c
3323
3401
  }) => {
3324
3402
  const n = L(async () => {
3325
- qt(t);
3403
+ Lt(t);
3326
3404
  try {
3327
- switch (l) {
3405
+ switch (i) {
3328
3406
  case "AUTOCLOSE_AND_REDIRECT":
3329
- window.location.href = i;
3407
+ window.location.href = c;
3330
3408
  break;
3331
3409
  default:
3332
- console.warn(`Unhandled actionType: ${l}`);
3410
+ console.warn(`Unhandled actionType: ${i}`);
3333
3411
  break;
3334
3412
  }
3335
- } catch (d) {
3336
- console.error("Error in toast action:", d), alert(JSON.stringify(d));
3413
+ } catch (_) {
3414
+ console.error("Error in toast action:", _), alert(JSON.stringify(_));
3337
3415
  }
3338
- }, [l, e, s, t, i]);
3416
+ }, [i, e, s, t, c]);
3339
3417
  return U(() => {
3340
3418
  ({
3341
3419
  info: lt.info,
3342
3420
  error: lt.error,
3343
3421
  success: lt.success,
3344
3422
  warning: lt.warning
3345
- }[r] || lt.info)(c, {
3346
- autoClose: l ? !1 : 4e3,
3423
+ }[r] || lt.info)(o, {
3424
+ autoClose: i ? !1 : 4e3,
3347
3425
  containerId: t,
3348
3426
  onClose: n
3349
3427
  });
3350
3428
  }, [n, t]), null;
3351
- }, _a = "_tooltipNotFront_106iw_1", ua = "_tooltipNotFront_content_106iw_5", ne = {
3352
- tooltipNotFront: _a,
3353
- tooltipNotFront_content: ua
3354
- }, ha = (t) => {
3429
+ }, ma = "_tooltipNotFront_106iw_1", ga = "_tooltipNotFront_content_106iw_5", ne = {
3430
+ tooltipNotFront: ma,
3431
+ tooltipNotFront_content: ga
3432
+ }, pa = (t) => {
3355
3433
  const {
3356
3434
  userFlow: e,
3357
3435
  pageId: s,
3358
3436
  component: r,
3359
- hash: c,
3360
- responseKey: l,
3361
- content: i,
3437
+ hash: o,
3438
+ responseKey: i,
3439
+ content: c,
3362
3440
  label: n,
3363
- placement: d,
3364
- notShowArrow: a,
3365
- visible: _
3441
+ placement: _,
3442
+ notShowArrow: l,
3443
+ visible: d
3366
3444
  } = t, u = E(
3367
3445
  e,
3368
3446
  s,
3369
- i != null && i.length ? i : null
3370
- ), h = u && u.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: ne.tooltipNotFront_content, children: u.map((f, x) => /* @__PURE__ */ o.jsx(k, { children: f }, `tooltip-${c}-${x}`)) }) : null;
3371
- return /* @__PURE__ */ o.jsx(
3372
- 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,
3373
3451
  {
3374
3452
  className: ne.tooltipNotFront,
3375
3453
  label: n,
3376
- placement: d,
3377
- notShowArrow: a,
3378
- visible: _,
3454
+ placement: _,
3455
+ notShowArrow: l,
3456
+ visible: d,
3379
3457
  children: h
3380
3458
  }
3381
3459
  );
3382
3460
  };
3383
- function Ra({
3461
+ function Ba({
3384
3462
  sessionName: t,
3385
3463
  apiConfig: e,
3386
3464
  onResolveComponentProps: s,
3387
3465
  children: r
3388
3466
  }) {
3389
- const c = ga(
3467
+ const o = Na(
3390
3468
  t,
3391
3469
  e,
3392
3470
  null,
3393
3471
  s
3394
3472
  );
3395
- return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3396
- c,
3473
+ return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
3474
+ o,
3397
3475
  r
3398
3476
  ] });
3399
3477
  }
3400
- const fa = { api: "", headers: {} }, ya = ({
3478
+ const ba = { api: "", headers: {} }, ja = ({
3401
3479
  userFlow: t,
3402
3480
  components: e,
3403
3481
  hash: s,
3404
3482
  apiConfig: r
3405
3483
  }) => {
3406
- const c = s ?? `${t}-page`;
3407
- $(() => {
3408
- var d, a;
3409
- return (a = (d = v.getState()[t]) == null ? void 0 : d.pages) != null && a[c] || yt(t, r ?? fa, {
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, {
3410
3488
  type: "page",
3411
- hash: c,
3489
+ hash: o,
3412
3490
  body: { components: e }
3413
3491
  }), null;
3414
3492
  });
3415
- const l = E(t, c, e);
3416
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: l });
3493
+ const i = E(t, o, e);
3494
+ return /* @__PURE__ */ a.jsx(a.Fragment, { children: i });
3417
3495
  };
3418
- function xa(t) {
3496
+ function Ca(t) {
3419
3497
  if (t == null || typeof t != "object" || !("components" in t) || !Array.isArray(t.components))
3420
3498
  throw new Error(
3421
3499
  "[renderNotFront] payload.display must be an object with a `components` array"
3422
3500
  );
3423
3501
  return t.components;
3424
3502
  }
3425
- const ma = ({ payload: t, userFlow: e }) => {
3426
- const s = xa(t.display), r = ya({
3503
+ const wa = ({ payload: t, userFlow: e }) => {
3504
+ const s = Ca(t.display), r = ja({
3427
3505
  userFlow: e,
3428
3506
  hash: t.id,
3429
3507
  components: s
3430
3508
  });
3431
- return /* @__PURE__ */ o.jsx(o.Fragment, { children: r });
3432
- }, Da = ma, se = (t, e, s, r, c) => {
3433
- 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(
3434
3512
  t,
3435
3513
  e,
3436
3514
  (r == null ? void 0 : r.components) || null,
3437
- c
3515
+ o
3438
3516
  );
3439
3517
  switch (s) {
3440
3518
  case "body":
3441
- return /* @__PURE__ */ o.jsx(
3442
- Wn,
3519
+ return /* @__PURE__ */ a.jsx(
3520
+ Yn,
3443
3521
  {
3444
3522
  ...r,
3445
- inputs: l || []
3523
+ inputs: i || []
3446
3524
  },
3447
3525
  JSON.stringify(r == null ? void 0 : r.components)
3448
3526
  );
3449
3527
  case "header":
3450
- return /* @__PURE__ */ o.jsx(
3451
- ur,
3528
+ return /* @__PURE__ */ a.jsx(
3529
+ gr,
3452
3530
  {
3453
3531
  ...r,
3454
- components: l || []
3532
+ components: i || []
3455
3533
  },
3456
3534
  JSON.stringify(r == null ? void 0 : r.components)
3457
3535
  );
3458
3536
  default:
3459
3537
  return null;
3460
3538
  }
3461
- }, ga = (t, e, s, r) => {
3462
- var g, y;
3463
- const [c, l] = $(!1), i = !!(e != null && e.api && !s && t), [n, d] = $(i), a = v((m) => m[t]), _ = a == null ? void 0 : a.currentPageId, u = (a == null ? void 0 : a.isLoading) ?? !1, h = n || u;
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;
3464
3542
  U(() => {
3465
3543
  if (typeof window > "u") return;
3466
- const m = new URL(window.location.href), p = m.searchParams.get("sessionId");
3467
- p && (Dt(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()));
3468
3546
  }, []);
3469
- const f = _ ? se(
3547
+ const f = d ? se(
3470
3548
  t,
3471
- _,
3549
+ d,
3472
3550
  "header",
3473
- ((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,
3474
3552
  r
3475
- ) : null, x = _ ? se(
3553
+ ) : null, y = d ? se(
3476
3554
  t,
3477
- _,
3555
+ d,
3478
3556
  "body",
3479
- ((y = a == null ? void 0 : a.pages[_].page) == null ? void 0 : y.body) || null,
3557
+ ((x = l == null ? void 0 : l.pages[d].page) == null ? void 0 : x.body) || null,
3480
3558
  r
3481
3559
  ) : null, b = async () => {
3482
3560
  try {
3483
- const m = await xe(
3561
+ const m = await me(
3484
3562
  e,
3485
3563
  t
3486
- ), 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;
3487
3565
  (m == null ? void 0 : m.status) === 200 ? yt(
3488
3566
  t,
3489
3567
  e,
3490
3568
  C,
3491
- p == null ? void 0 : p.sessionState,
3492
- p == null ? void 0 : p.sessionId
3493
- ) : l(!0);
3569
+ g == null ? void 0 : g.sessionState,
3570
+ g == null ? void 0 : g.sessionId
3571
+ ) : i(!0);
3494
3572
  } catch (m) {
3495
- console.error("[not-page]: API call failed", m), l(!0);
3573
+ console.error("[not-page]: API call failed", m), i(!0);
3496
3574
  } finally {
3497
- d(!1);
3575
+ _(!1);
3498
3576
  }
3499
3577
  };
3500
3578
  return U(() => {
3501
- 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(
3502
3580
  "[not-page]: API call failed",
3503
3581
  "not api config",
3504
3582
  "not userFlow"
3505
3583
  ));
3506
- const m = "avocado-theme-mode-changed", p = (C) => {
3584
+ const m = "avocado-theme-mode-changed", g = (C) => {
3507
3585
  const j = C.detail;
3508
3586
  ht.setThemeMode(j);
3509
3587
  };
3510
- return window.addEventListener(m, p), () => {
3511
- window.removeEventListener(m, p);
3588
+ return window.addEventListener(m, g), () => {
3589
+ window.removeEventListener(m, g);
3512
3590
  };
3513
- }, []), c && console.error("[not-page]: No render page"), /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
3514
- 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, {}),
3515
3593
  f,
3516
- x,
3517
- _ && /* @__PURE__ */ o.jsx(gr, { userFlow: t, pageId: _ }),
3518
- a && /* @__PURE__ */ o.jsx(en, {})
3594
+ y,
3595
+ d && /* @__PURE__ */ a.jsx(Nr, { userFlow: t, pageId: d }),
3596
+ l && /* @__PURE__ */ a.jsx(nn, {})
3519
3597
  ] });
3520
3598
  };
3521
3599
  export {
3522
- zs as Chart,
3523
- Ra as NotFrontPage,
3524
- ma as RenderNotFront,
3525
- kr as Row,
3526
- $a as clearSessionId,
3527
- xa as extractNotFrontComponents,
3528
- Sn as heading,
3529
- Da as renderNotFront,
3530
- Tn as text,
3531
- ya as useNotFrontFragment,
3532
- ga 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
3533
3611
  };