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