@foris/avocado-not-front 8.1.0 → 8.2.0

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