@foris/avocado-not-front 4.2.0 → 4.3.1

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 V from "axios";
2
- import { create as We } from "zustand";
3
- import Qe, { useMemo as k, useEffect as K, useState as O, Fragment as q, useCallback as $, useRef as Ye, cloneElement as Ze } from "react";
4
- import { Heading as Le, Text as Fe, ThemeStore as te, Breadcrumbs as Pe, Button as et, CardNotification as me, Checkbox as tt, PreviewerMarkdown as Be, DataCard as nt, Divider as st, SkeletonBase as Ie, Link as at, Modal as rt, Pill as he, RoundButton as ot, SelectPagination as ct, Select as it, Switch as lt, Table as dt, Pager as _t, Tabs as ut, TextField as ht, toast as W, Accordion as ft, Drawer as mt, Loading as yt, Toaster as xt } from "@foris/avocado-suite";
5
- import { ChatPanel as gt, SummaryCard as pt, PromptCodeEditor as bt } from "@foris/ai-agent";
6
- import jt from "@uiw/react-codemirror";
2
+ import { create as Qe } from "zustand";
3
+ import Ye, { useMemo as $, useEffect as M, useState as T, Fragment as k, useCallback as R, useRef as Ze, cloneElement as Fe } from "react";
4
+ import { Heading as Be, Text as Pe, ThemeStore as te, Breadcrumbs as et, Button as tt, CardAccordion as nt, CardNotification as me, Checkbox as st, PreviewerMarkdown as Ie, DataCard as at, Divider as rt, SkeletonBase as Ke, Link as ot, Modal as ct, Pill as he, RoundButton as it, SelectPagination as lt, Select as dt, Switch as _t, Table as ut, Pager as ht, Tabs as ft, TextField as mt, toast as W, Accordion as yt, Drawer as xt, Loading as gt, Toaster as pt } from "@foris/avocado-suite";
5
+ import { ChatPanel as bt, SummaryCard as jt, PromptCodeEditor as wt } from "@foris/ai-agent";
6
+ import Ct from "@uiw/react-codemirror";
7
7
  import { json as we } from "@codemirror/lang-json";
8
- import { markdown as wt } from "@codemirror/lang-markdown";
9
- import { sql as Ct } from "@codemirror/lang-sql";
10
- import { yaml as Nt } from "@codemirror/lang-yaml";
11
- import I from "jsonpath";
12
- import { Legend as vt, Tooltip as Et, XAxis as St, YAxis as kt, ResponsiveContainer as ne, AreaChart as qt, CartesianGrid as ye, Area as Tt, BarChart as Ot, Bar as At, LineChart as $t, Line as Rt, PieChart as Dt, Pie as Lt, Cell as Bt } from "recharts";
13
- import { Routes as It, Route as Ce, Navigate as zt } from "react-router-dom";
14
- const v = We(() => ({})), ce = (e, t, a, s) => {
15
- const o = a == null ? void 0 : a.hash, c = s && Object.keys(s).length > 0 ? { ...s } : {};
8
+ import { markdown as Nt } from "@codemirror/lang-markdown";
9
+ import { sql as vt } from "@codemirror/lang-sql";
10
+ import { yaml as St } from "@codemirror/lang-yaml";
11
+ import K from "jsonpath";
12
+ import { Legend as Et, Tooltip as kt, XAxis as $t, YAxis as qt, ResponsiveContainer as ne, AreaChart as Tt, CartesianGrid as ye, Area as At, BarChart as Ot, Bar as Rt, LineChart as Dt, Line as Lt, PieChart as Bt, Pie as It, Cell as Kt } from "recharts";
13
+ import { Routes as zt, Route as Ce, Navigate as Mt } from "react-router-dom";
14
+ const v = Qe(() => ({})), ce = (e, t, a, s) => {
15
+ const c = a == null ? void 0 : a.hash, i = s && Object.keys(s).length > 0 ? { ...s } : {};
16
16
  v.setState((l) => {
17
17
  var n;
18
18
  return {
@@ -20,15 +20,15 @@ const v = We(() => ({})), ce = (e, t, a, s) => {
20
20
  [e]: {
21
21
  ...l[e],
22
22
  apiConfig: t,
23
- currentPageId: o,
23
+ currentPageId: c,
24
24
  isLoading: !1,
25
25
  isModalOpen: !0,
26
26
  isDrawerOpen: !1,
27
- entries: c,
27
+ entries: i,
28
28
  overlay: null,
29
29
  pages: {
30
30
  ...(n = l[e]) == null ? void 0 : n.pages,
31
- [o]: {
31
+ [c]: {
32
32
  page: a
33
33
  }
34
34
  }
@@ -39,18 +39,18 @@ const v = We(() => ({})), ce = (e, t, a, s) => {
39
39
  const s = a && Object.keys(a).length > 0 ? { ...e, ...a } : e;
40
40
  return t.length === 0 ? e : Object.fromEntries(
41
41
  Object.entries(s).filter(
42
- ([o]) => !t.includes(o)
42
+ ([c]) => !t.includes(c)
43
43
  )
44
44
  );
45
- }, Mt = (e, t, a, s, o) => {
46
- sessionStorage.setItem("sessionId", a), v.setState((c) => {
47
- const l = c[e] ?? {}, n = l.entries ?? {}, d = ze(
45
+ }, Gt = (e, t, a, s, c) => {
46
+ sessionStorage.setItem("sessionId", a), v.setState((i) => {
47
+ const l = i[e] ?? {}, n = l.entries ?? {}, d = ze(
48
48
  n,
49
49
  s,
50
- o
50
+ c
51
51
  );
52
52
  return {
53
- ...c,
53
+ ...i,
54
54
  [e]: {
55
55
  ...l,
56
56
  currentPageId: t.hash,
@@ -66,10 +66,10 @@ const v = We(() => ({})), ce = (e, t, a, s) => {
66
66
  }
67
67
  };
68
68
  });
69
- }, Kt = (e, t, a, s) => {
70
- v.setState((o) => {
69
+ }, Ut = (e, t, a, s) => {
70
+ v.setState((c) => {
71
71
  var r;
72
- const c = o[e] ?? {}, l = c.entries ?? {}, n = ze(
72
+ const i = c[e] ?? {}, l = i.entries ?? {}, n = ze(
73
73
  l,
74
74
  a,
75
75
  s
@@ -77,9 +77,9 @@ const v = We(() => ({})), ce = (e, t, a, s) => {
77
77
  (u) => u.component === "drawer"
78
78
  );
79
79
  return {
80
- ...o,
80
+ ...c,
81
81
  [e]: {
82
- ...c,
82
+ ...i,
83
83
  entries: n,
84
84
  overlay: t,
85
85
  isLoading: !1,
@@ -96,29 +96,29 @@ const v = We(() => ({})), ce = (e, t, a, s) => {
96
96
  overlay: null
97
97
  }
98
98
  }));
99
- }, Gt = (e) => {
99
+ }, Jt = (e) => {
100
100
  var a;
101
101
  return ((a = v.getState()[e]) == null ? void 0 : a.overlay) ?? null;
102
102
  }, A = (e, t) => {
103
103
  const {
104
104
  content: a,
105
105
  sessionId: s,
106
- deprecatedStateKeys: o = [],
107
- sessionState: c
106
+ deprecatedStateKeys: c = [],
107
+ sessionState: i
108
108
  } = t;
109
- a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Mt(
109
+ a.type !== "page" && a.type !== "overlay" || (a.type === "page" ? Gt(
110
110
  e,
111
111
  a,
112
112
  s,
113
- o,
114
- c
115
- ) : Kt(
113
+ c,
114
+ i
115
+ ) : Ut(
116
116
  e,
117
117
  a,
118
- o,
119
- c
118
+ c,
119
+ i
120
120
  ));
121
- }, R = (e, t) => {
121
+ }, O = (e, t) => {
122
122
  v.setState((a) => {
123
123
  var s;
124
124
  return {
@@ -173,17 +173,17 @@ const v = We(() => ({})), ce = (e, t, a, s) => {
173
173
  });
174
174
  };
175
175
  let ie = !1, P = [], ve = !1;
176
- const Ut = (e) => e._userFlow || null, Ee = (e) => {
176
+ const Vt = (e) => e._userFlow || null, Se = (e) => {
177
177
  P.forEach(({ resolve: t, reject: a }) => {
178
178
  e ? a(e) : t(void 0);
179
179
  }), P = [];
180
- }, Jt = async (e) => {
181
- var s, o;
180
+ }, Ht = async (e) => {
181
+ var s, c;
182
182
  const t = e == null ? void 0 : e.config;
183
183
  if (((s = e == null ? void 0 : e.response) == null ? void 0 : s.status) === 401 && !t._retry) {
184
- const c = Ut(t);
185
- if (c) {
186
- const n = (o = v.getState()[c]) == null ? void 0 : o.apiConfig;
184
+ const i = Vt(t);
185
+ if (i) {
186
+ const n = (c = v.getState()[i]) == null ? void 0 : c.apiConfig;
187
187
  if (!n)
188
188
  return Promise.reject(e);
189
189
  if (n.onAuthenticationError || typeof n.headers == "function") {
@@ -200,7 +200,7 @@ const Ut = (e) => e._userFlow || null, Ee = (e) => {
200
200
  r = n.headers();
201
201
  else
202
202
  throw new Error("No refresh handler available");
203
- return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(c, JSON.stringify(r)) : Ne(c, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), Ee(null), V(t);
203
+ return n.onAuthenticationError && (typeof n.headers == "string" ? Ne(i, JSON.stringify(r)) : Ne(i, r)), t.headers || (t.headers = {}), Object.assign(t.headers, r), Se(null), V(t);
204
204
  } catch (r) {
205
205
  return console.error(
206
206
  "[axiosInterceptors] Token refresh failed:",
@@ -208,7 +208,7 @@ const Ut = (e) => e._userFlow || null, Ee = (e) => {
208
208
  ), console.error(
209
209
  "[axiosInterceptors] Rejecting queued requests:",
210
210
  P.length
211
- ), Ee(r), Promise.reject(r);
211
+ ), Se(r), Promise.reject(r);
212
212
  } finally {
213
213
  ie = !1;
214
214
  }
@@ -223,17 +223,17 @@ const Ut = (e) => e._userFlow || null, Ee = (e) => {
223
223
  );
224
224
  }
225
225
  return Promise.reject(e);
226
- }, Vt = () => {
226
+ }, Xt = () => {
227
227
  if (ve) {
228
228
  console.debug(
229
229
  "[axiosInterceptors] Interceptors already initialized, skipping"
230
230
  );
231
231
  return;
232
232
  }
233
- console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Jt), console.debug("[axiosInterceptors] Response error interceptor registered"), ve = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
233
+ console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Ht), console.debug("[axiosInterceptors] Response error interceptor registered"), ve = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
234
234
  };
235
- Vt();
236
- function Ht(e) {
235
+ Xt();
236
+ function Wt(e) {
237
237
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
238
238
  }
239
239
  var le = { exports: {} }, Q = {};
@@ -246,47 +246,47 @@ var le = { exports: {} }, Q = {};
246
246
  * This source code is licensed under the MIT license found in the
247
247
  * LICENSE file in the root directory of this source tree.
248
248
  */
249
- var Se;
250
- function Xt() {
251
- if (Se) return Q;
252
- Se = 1;
253
- var e = Qe, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, c = { key: !0, ref: !0, __self: !0, __source: !0 };
249
+ var Ee;
250
+ function Qt() {
251
+ if (Ee) return Q;
252
+ Ee = 1;
253
+ var e = Ye, t = Symbol.for("react.element"), a = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
254
254
  function l(n, d, r) {
255
255
  var u, f = {}, _ = null, h = null;
256
256
  r !== void 0 && (_ = "" + r), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
257
- for (u in d) s.call(d, u) && !c.hasOwnProperty(u) && (f[u] = d[u]);
257
+ for (u in d) s.call(d, u) && !i.hasOwnProperty(u) && (f[u] = d[u]);
258
258
  if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
259
- return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: o.current };
259
+ return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: c.current };
260
260
  }
261
261
  return Q.Fragment = a, Q.jsx = l, Q.jsxs = l, Q;
262
262
  }
263
263
  var ke;
264
- function Wt() {
265
- return ke || (ke = 1, le.exports = Xt()), le.exports;
264
+ function Yt() {
265
+ return ke || (ke = 1, le.exports = Qt()), le.exports;
266
266
  }
267
- var i = Wt();
268
- const Qt = (e) => {
267
+ var o = Yt();
268
+ const Zt = (e) => {
269
269
  if (!(e != null && e.content)) return null;
270
270
  const t = {
271
271
  ...e,
272
272
  children: e.content,
273
273
  type: e.variant
274
274
  };
275
- return /* @__PURE__ */ i.jsx(Le, { ...t });
276
- }, Yt = (e) => {
275
+ return /* @__PURE__ */ o.jsx(Be, { ...t });
276
+ }, Ft = (e) => {
277
277
  if (!e) return null;
278
278
  const t = {
279
279
  ...e,
280
280
  children: e.content
281
281
  };
282
- return /* @__PURE__ */ i.jsx(Fe, { ...t });
283
- }, Zt = (e) => {
284
- const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = k(() => ({
282
+ return /* @__PURE__ */ o.jsx(Pe, { ...t });
283
+ }, Pt = (e) => {
284
+ const t = te.useThemeStore((l) => l.theme.mode), a = e.dataSource, s = $(() => ({
285
285
  url: e.dataSource.url,
286
286
  method: e.dataSource.method,
287
287
  headers: e.dataSource.headers,
288
288
  params: a == null ? void 0 : a.data
289
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), o = e.locale ?? "en", c = k(() => {
289
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, a == null ? void 0 : a.data]), c = e.locale ?? "en", i = $(() => {
290
290
  var n, d, r, u, f;
291
291
  const l = {
292
292
  title: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.title,
@@ -297,100 +297,100 @@ const Qt = (e) => {
297
297
  };
298
298
  return Object.fromEntries(Object.entries(l).filter(([, _]) => !!_));
299
299
  }, [e == null ? void 0 : e.translations]);
300
- return K(() => {
300
+ return M(() => {
301
301
  e.onResolveProps && e.onResolveProps({
302
302
  dataSource: s,
303
- locale: o,
304
- translations: c,
303
+ locale: c,
304
+ translations: i,
305
305
  initialSuggestions: e.initialSuggestions,
306
306
  theme: t
307
307
  });
308
308
  }, [
309
309
  e.onResolveProps,
310
310
  s,
311
- o,
312
311
  c,
312
+ i,
313
313
  e.initialSuggestions,
314
314
  t
315
- ]), e.onResolveProps ? null : /* @__PURE__ */ i.jsx(
316
- gt,
315
+ ]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx(
316
+ bt,
317
317
  {
318
318
  dataSource: s,
319
- locale: o,
320
- translations: c,
319
+ locale: c,
320
+ translations: i,
321
321
  initialSuggestions: e.initialSuggestions,
322
322
  theme: t
323
323
  }
324
324
  );
325
- }, Ft = "_summaryCard_jva4h_1", Pt = {
326
- summaryCard: Ft
327
- }, en = (e) => {
328
- const t = e.dataSource, a = k(() => ({
325
+ }, en = "_summaryCard_jva4h_1", tn = {
326
+ summaryCard: en
327
+ }, nn = (e) => {
328
+ const t = e.dataSource, a = $(() => ({
329
329
  url: e.dataSource.url,
330
330
  method: e.dataSource.method,
331
331
  headers: e.dataSource.headers,
332
332
  body: t == null ? void 0 : t.data
333
- }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", o = k(() => {
333
+ }), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, t == null ? void 0 : t.data]), s = e.locale ?? "en", c = $(() => {
334
334
  var l, n, d;
335
- const c = {
335
+ const i = {
336
336
  title: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.title,
337
337
  loading: (n = e == null ? void 0 : e.translations) == null ? void 0 : n.loading,
338
338
  noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
339
339
  };
340
340
  return Object.fromEntries(
341
- Object.entries(c).filter(([, r]) => !!r)
341
+ Object.entries(i).filter(([, r]) => !!r)
342
342
  );
343
343
  }, [e == null ? void 0 : e.translations]);
344
- return K(() => {
344
+ return M(() => {
345
345
  e.onResolveProps && e.onResolveProps({
346
346
  dataSource: a,
347
347
  locale: s,
348
- translations: o
348
+ translations: c
349
349
  });
350
- }, [e.onResolveProps, a, s, o]), e.onResolveProps ? null : /* @__PURE__ */ i.jsx("section", { className: Pt.summaryCard, children: /* @__PURE__ */ i.jsx(
351
- pt,
350
+ }, [e.onResolveProps, a, s, c]), e.onResolveProps ? null : /* @__PURE__ */ o.jsx("section", { className: tn.summaryCard, children: /* @__PURE__ */ o.jsx(
351
+ jt,
352
352
  {
353
353
  dataSource: a,
354
354
  locale: s,
355
- translations: o
355
+ translations: c
356
356
  }
357
357
  ) });
358
- }, z = (e, t) => {
358
+ }, B = (e, t) => {
359
359
  const a = v((s) => {
360
- var o;
361
- return ((o = s[e]) == null ? void 0 : o.entries) || {};
360
+ var c;
361
+ return ((c = s[e]) == null ? void 0 : c.entries) || {};
362
362
  });
363
- return k(() => {
363
+ return $(() => {
364
364
  const s = {
365
365
  disabled: !1
366
366
  };
367
- return !t || t.length === 0 || t.forEach((o) => {
368
- const c = a[o.key], l = c == null || c === "" || Array.isArray(c) && c.length === 0;
369
- o.when === "empty" && l && o.actions.forEach((d) => {
367
+ return !t || t.length === 0 || t.forEach((c) => {
368
+ const i = a[c.key], l = i == null || i === "" || Array.isArray(i) && i.length === 0;
369
+ c.when === "empty" && l && c.actions.forEach((d) => {
370
370
  s[d] = !0;
371
371
  });
372
372
  }), s;
373
373
  }, [t, a]);
374
- }, tn = "_promptCodeEditor_1d57s_1", nn = {
375
- promptCodeEditor: tn
376
- }, sn = (e) => {
374
+ }, sn = "_promptCodeEditor_1d57s_1", an = {
375
+ promptCodeEditor: sn
376
+ }, rn = (e) => {
377
377
  const {
378
378
  userFlow: t,
379
379
  responseKey: a,
380
380
  codeBlockValue: s,
381
- language: o,
382
- disabled: c,
381
+ language: c,
382
+ disabled: i,
383
383
  dependencies: l,
384
384
  dataSource: n,
385
385
  inputLabel: d,
386
386
  inputPlaceholder: r,
387
387
  codeBlockLabel: u
388
- } = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = O(
388
+ } = e, f = te.useThemeStore((p) => p.theme.mode), [_, h] = T(
389
389
  s || ""
390
- ), { disabled: b } = z(
390
+ ), { disabled: b } = B(
391
391
  t,
392
392
  l
393
- ), m = c ?? b, x = o ?? "json", y = {
393
+ ), m = i ?? b, x = c ?? "json", y = {
394
394
  url: (n == null ? void 0 : n.url) || "",
395
395
  method: (n == null ? void 0 : n.method) || "post",
396
396
  headers: n == null ? void 0 : n.headers,
@@ -400,12 +400,12 @@ const Qt = (e) => {
400
400
  const N = {
401
401
  [a]: p
402
402
  };
403
- R(t, N);
403
+ O(t, N);
404
404
  };
405
- return K(() => {
405
+ return M(() => {
406
406
  s !== void 0 && s !== _ && h(s);
407
- }, [s]), /* @__PURE__ */ i.jsx("section", { className: nn.promptCodeEditor, children: /* @__PURE__ */ i.jsx(
408
- bt,
407
+ }, [s]), /* @__PURE__ */ o.jsx("section", { className: an.promptCodeEditor, children: /* @__PURE__ */ o.jsx(
408
+ wt,
409
409
  {
410
410
  themeMode: f,
411
411
  requestConfig: y,
@@ -418,10 +418,10 @@ const Qt = (e) => {
418
418
  onCodeChange: g
419
419
  }
420
420
  ) });
421
- }, an = "_body_14tsv_1", rn = "_body_content_14tsv_5", qe = {
422
- body: an,
423
- body_content: rn
424
- }, on = ({ inputs: e }) => /* @__PURE__ */ i.jsx("section", { className: qe.body, children: /* @__PURE__ */ i.jsx("div", { className: qe.body_content, children: e.map((t, a) => /* @__PURE__ */ i.jsx(q, { children: t }, a)) }) }), X = (e) => {
421
+ }, on = "_body_14tsv_1", cn = "_body_content_14tsv_5", $e = {
422
+ body: on,
423
+ body_content: cn
424
+ }, ln = ({ inputs: e }) => /* @__PURE__ */ o.jsx("section", { className: $e.body, children: /* @__PURE__ */ o.jsx("div", { className: $e.body_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), X = (e) => {
425
425
  if (!e)
426
426
  return { "content-type": "application/json" };
427
427
  if (typeof e == "function")
@@ -433,9 +433,9 @@ const Qt = (e) => {
433
433
  return { "content-type": "application/json", Authorization: e };
434
434
  }
435
435
  return e;
436
- }, F = () => new AbortController(), cn = (e, t = {}, a = {}, s = !1, o) => {
437
- const c = F();
438
- s && c.abort();
436
+ }, F = () => new AbortController(), dn = (e, t = {}, a = {}, s = !1, c) => {
437
+ const i = F();
438
+ s && i.abort();
439
439
  const l = X(t);
440
440
  return {
441
441
  call: V.get(e, {
@@ -443,14 +443,14 @@ const Qt = (e) => {
443
443
  ...l
444
444
  },
445
445
  params: a,
446
- signal: c.signal,
447
- _userFlow: o
446
+ signal: i.signal,
447
+ _userFlow: c
448
448
  }),
449
- controller: c
449
+ controller: i
450
450
  };
451
- }, fe = (e, t = {}, a = {}, s = {}, o = !1, c) => {
451
+ }, fe = (e, t = {}, a = {}, s = {}, c = !1, i) => {
452
452
  const l = F();
453
- o && l.abort();
453
+ c && l.abort();
454
454
  const n = X(t);
455
455
  return {
456
456
  call: V.post(e, a, {
@@ -459,13 +459,13 @@ const Qt = (e) => {
459
459
  },
460
460
  params: s,
461
461
  signal: l.signal,
462
- _userFlow: c
462
+ _userFlow: i
463
463
  }),
464
464
  controller: l
465
465
  };
466
- }, ln = (e, t = {}, a = {}, s = {}, o = !1, c) => {
466
+ }, _n = (e, t = {}, a = {}, s = {}, c = !1, i) => {
467
467
  const l = F();
468
- o && l.abort();
468
+ c && l.abort();
469
469
  const n = X(t);
470
470
  return {
471
471
  call: V.put(e, a, {
@@ -474,13 +474,13 @@ const Qt = (e) => {
474
474
  },
475
475
  params: s,
476
476
  signal: l.signal,
477
- _userFlow: c
477
+ _userFlow: i
478
478
  }),
479
479
  controller: l
480
480
  };
481
- }, dn = (e, t = {}, a = {}, s = {}, o = !1, c) => {
481
+ }, un = (e, t = {}, a = {}, s = {}, c = !1, i) => {
482
482
  const l = F();
483
- o && l.abort();
483
+ c && l.abort();
484
484
  const n = X(t);
485
485
  return {
486
486
  call: V.patch(e, a, {
@@ -489,13 +489,13 @@ const Qt = (e) => {
489
489
  },
490
490
  params: s,
491
491
  signal: l.signal,
492
- _userFlow: c
492
+ _userFlow: i
493
493
  }),
494
494
  controller: l
495
495
  };
496
- }, _n = (e, t = {}, a = {}, s = {}, o = !1, c) => {
496
+ }, hn = (e, t = {}, a = {}, s = {}, c = !1, i) => {
497
497
  const l = F();
498
- o && l.abort();
498
+ c && l.abort();
499
499
  const n = X(t);
500
500
  return {
501
501
  call: V.delete(e, {
@@ -505,7 +505,7 @@ const Qt = (e) => {
505
505
  data: a,
506
506
  params: s,
507
507
  signal: l.signal,
508
- _userFlow: c
508
+ _userFlow: i
509
509
  }),
510
510
  controller: l
511
511
  };
@@ -513,33 +513,33 @@ const Qt = (e) => {
513
513
  let e;
514
514
  return { callEndpoint: async (s) => {
515
515
  s.controller && (e = s.controller);
516
- let o = {};
516
+ let c = {};
517
517
  try {
518
- o = await s.call;
519
- } catch (c) {
520
- throw c;
518
+ c = await s.call;
519
+ } catch (i) {
520
+ throw i;
521
521
  }
522
- return o;
522
+ return c;
523
523
  }, cancelEndpoint: () => {
524
524
  e && e.abort();
525
525
  } };
526
- }, Ke = async (e, t, a = "", s = {}, o = {}) => {
526
+ }, Ge = async (e, t, a = "", s = {}, c = {}) => {
527
527
  try {
528
- const { callEndpoint: c } = Me(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
528
+ const { callEndpoint: i } = Me(), { api: l, headers: n } = e, d = sessionStorage.getItem("sessionId"), r = new URLSearchParams({ session_name: t });
529
529
  a && r.append("hash_code", a), d && r.append("sessionId", d);
530
530
  const u = `${l}/not-front/next-ui/?${r.toString()}`, f = X(n), _ = fe(
531
531
  u,
532
532
  f,
533
533
  s,
534
- o,
534
+ c,
535
535
  !1,
536
536
  t
537
537
  );
538
- return await c(_);
539
- } catch (c) {
540
- return console.error(c), Promise.reject(c);
538
+ return await i(_);
539
+ } catch (i) {
540
+ return console.error(i), Promise.reject(i);
541
541
  }
542
- }, B = () => {
542
+ }, I = () => {
543
543
  const e = v((n) => n), { callEndpoint: t } = Me(), a = async (n, d, r, u, f = !0) => {
544
544
  var _;
545
545
  try {
@@ -547,7 +547,7 @@ const Qt = (e) => {
547
547
  state: { ...r },
548
548
  triggerKey: u
549
549
  };
550
- return f && H(n, !0), await Ke(
550
+ return f && H(n, !0), await Ge(
551
551
  h,
552
552
  n,
553
553
  d,
@@ -562,16 +562,16 @@ const Qt = (e) => {
562
562
  case "post":
563
563
  return fe(u, f, _, {}, !1, d);
564
564
  case "put":
565
- return ln(u, f, _, {}, !1, d);
565
+ return _n(u, f, _, {}, !1, d);
566
566
  case "patch":
567
- return dn(u, f, _, {}, !1, d);
567
+ return un(u, f, _, {}, !1, d);
568
568
  case "delete":
569
- return _n(u, f, _, h, !1, d);
569
+ return hn(u, f, _, h, !1, d);
570
570
  case "get":
571
571
  default:
572
- return cn(u, f, h, !1, d);
572
+ return dn(u, f, h, !1, d);
573
573
  }
574
- }, o = (n, d) => {
574
+ }, c = (n, d) => {
575
575
  const { url: r, headers: u } = n, f = {
576
576
  query: n == null ? void 0 : n.query,
577
577
  variables: (n == null ? void 0 : n.variables) || {}
@@ -587,7 +587,7 @@ const Qt = (e) => {
587
587
  !1,
588
588
  d
589
589
  );
590
- }, c = async (n, d, r = !0) => {
590
+ }, i = async (n, d, r = !0) => {
591
591
  var u, f;
592
592
  if (!n) {
593
593
  console.warn("[fetchDataSource] Invalid or missing dataSource");
@@ -601,7 +601,7 @@ const Qt = (e) => {
601
601
  _ = s(n, d);
602
602
  break;
603
603
  case "graphql":
604
- _ = o(n, d);
604
+ _ = c(n, d);
605
605
  break;
606
606
  default:
607
607
  throw new Error("[fetchDataSource] Unsupported data source type");
@@ -623,11 +623,11 @@ const Qt = (e) => {
623
623
  };
624
624
  return {
625
625
  getNextUI: a,
626
- fetchDataSource: c,
626
+ fetchDataSource: i,
627
627
  fetchAndGetNextUI: async (n, d, r, u, f) => {
628
628
  try {
629
629
  H(n, !0);
630
- const _ = await c(f, n, !1);
630
+ const _ = await i(f, n, !1);
631
631
  return _ && await a(
632
632
  n,
633
633
  d,
@@ -642,12 +642,12 @@ const Qt = (e) => {
642
642
  }
643
643
  }
644
644
  };
645
- }, un = ({
645
+ }, fn = ({
646
646
  userFlow: e,
647
647
  items: t,
648
648
  responseKey: a
649
649
  }) => {
650
- const { getNextUI: s } = B(), o = $(
650
+ const { getNextUI: s } = I(), c = R(
651
651
  async ({ actionType: l, hashCode: n, redirectUrl: d }) => {
652
652
  var r;
653
653
  try {
@@ -673,38 +673,38 @@ const Qt = (e) => {
673
673
  }
674
674
  },
675
675
  []
676
- ), c = k(() => t == null ? void 0 : t.map((l) => ({
676
+ ), i = $(() => t == null ? void 0 : t.map((l) => ({
677
677
  title: l == null ? void 0 : l.title,
678
- component: /* @__PURE__ */ i.jsx("div", { onClick: () => o(l) })
678
+ component: /* @__PURE__ */ o.jsx("div", { onClick: () => c(l) })
679
679
  })), []);
680
- return /* @__PURE__ */ i.jsx(Pe, { items: c });
681
- }, hn = (e) => {
680
+ return /* @__PURE__ */ o.jsx(et, { items: i });
681
+ }, mn = (e) => {
682
682
  const {
683
683
  userFlow: t,
684
684
  pageId: a,
685
685
  responseKey: s,
686
- actionType: o,
687
- label: c,
686
+ actionType: c,
687
+ label: i,
688
688
  content: l,
689
689
  dataSource: n,
690
690
  redirectUrl: d,
691
691
  dependencies: r,
692
692
  onClick: u,
693
693
  ...f
694
- } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } = B(), { disabled: m } = z(
694
+ } = e, { getNextUI: _, fetchDataSource: h, fetchAndGetNextUI: b } = I(), { disabled: m } = B(
695
695
  t,
696
696
  r
697
697
  ), x = {
698
698
  ...f,
699
- children: l ?? c
700
- }, y = (x == null ? void 0 : x.disabled) ?? m, g = $(async () => {
699
+ children: l ?? i
700
+ }, y = (x == null ? void 0 : x.disabled) ?? m, g = R(async () => {
701
701
  var p, N, j;
702
702
  try {
703
703
  const C = {
704
704
  ...(p = v.getState()[t]) == null ? void 0 : p.entries,
705
705
  [s]: { status: 200 }
706
706
  };
707
- switch (R(t, C), o) {
707
+ switch (O(t, C), c) {
708
708
  case "CLOSE_MODAL":
709
709
  ge(t, !1);
710
710
  break;
@@ -743,7 +743,7 @@ const Qt = (e) => {
743
743
  s
744
744
  ), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
745
745
  if ((E == null ? void 0 : E.type) !== "fetch") break;
746
- const D = E == null ? void 0 : E.dataSource, T = await h(
746
+ const D = E == null ? void 0 : E.dataSource, q = await h(
747
747
  D,
748
748
  t,
749
749
  // Avoid to handle loading state until all the requests are done
@@ -751,11 +751,11 @@ const Qt = (e) => {
751
751
  ), G = {
752
752
  ...(j = v.getState()[t]) == null ? void 0 : j.entries,
753
753
  [s]: {
754
- status: T == null ? void 0 : T.status,
755
- content: T == null ? void 0 : T.data
754
+ status: q == null ? void 0 : q.status,
755
+ content: q == null ? void 0 : q.data
756
756
  }
757
757
  };
758
- R(t, G);
758
+ O(t, G);
759
759
  const U = await _(
760
760
  t,
761
761
  a,
@@ -769,52 +769,123 @@ const Qt = (e) => {
769
769
  d ? window.location.href = d : console.warn("Missing redirectUrl for REDIRECT actionType");
770
770
  break;
771
771
  default:
772
- console.warn(`Unhandled actionType: ${o}`);
772
+ console.warn(`Unhandled actionType: ${c}`);
773
773
  break;
774
774
  }
775
775
  } catch (C) {
776
776
  alert(JSON.stringify(C));
777
777
  }
778
- }, [o, n, a, s, t]);
779
- return /* @__PURE__ */ i.jsx(
780
- et,
778
+ }, [c, n, a, s, t]);
779
+ return /* @__PURE__ */ o.jsx(
780
+ tt,
781
781
  {
782
782
  ...x,
783
783
  disabled: y,
784
784
  onClick: () => !y && (u ?? g)()
785
785
  }
786
786
  );
787
- }, fn = "_cardNotificationNotFront_t7pln_1", mn = {
788
- cardNotificationNotFront: fn
789
- }, yn = (e) => {
790
- const { content: t, description: a, ...s } = e, o = {
787
+ }, S = (e, t, a, s) => {
788
+ var l;
789
+ const c = {
790
+ accordion: (n) => /* @__PURE__ */ o.jsx(Bs, { ...n, userFlow: e, pageId: t }),
791
+ aiChatPanel: (n) => /* @__PURE__ */ o.jsx(Pt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
792
+ aiSummaryCard: (n) => /* @__PURE__ */ o.jsx(nn, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
793
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ o.jsx(rn, { ...n, userFlow: e, pageId: t }),
794
+ breadcrumbs: (n) => /* @__PURE__ */ o.jsx(fn, { ...n, userFlow: e, pageId: t }),
795
+ button: (n) => /* @__PURE__ */ o.jsx(mn, { ...n, userFlow: e, pageId: t }),
796
+ cardAccordion: (n) => /* @__PURE__ */ o.jsx(xn, { ...n, userFlow: e, pageId: t }),
797
+ cardNotification: (n) => /* @__PURE__ */ o.jsx(bn, { ...n }),
798
+ chart: (n) => /* @__PURE__ */ o.jsx(Gn, { ...n, userFlow: e }),
799
+ dataCard: (n) => /* @__PURE__ */ o.jsx(Tn, { ...n, userFlow: e, pageId: t }),
800
+ checkbox: (n) => /* @__PURE__ */ o.jsx(jn, { ...n, userFlow: e, pageId: t }),
801
+ code: (n) => /* @__PURE__ */ o.jsx(En, { ...n, userFlow: e, pageId: t }),
802
+ divider: (n) => /* @__PURE__ */ o.jsx(Rn, { ...n }),
803
+ drawer: (n) => /* @__PURE__ */ o.jsx(Ms, { ...n, userFlow: e, pageId: t }),
804
+ heading: (n) => Zt(n),
805
+ link: (n) => /* @__PURE__ */ o.jsx(Hn, { ...n, userFlow: e, pageId: t }),
806
+ pill: (n) => /* @__PURE__ */ o.jsx(Fn, { ...n }),
807
+ previewerMarkdown: (n) => /* @__PURE__ */ o.jsx(Pn, { ...n }),
808
+ modal: (n) => /* @__PURE__ */ o.jsx(Qn, { ...n, userFlow: e, pageId: t }),
809
+ roundButton: (n) => /* @__PURE__ */ o.jsx(es, { ...n, userFlow: e, pageId: t }),
810
+ row: (n) => /* @__PURE__ */ o.jsx(ss, { ...n, userFlow: e, pageId: t }),
811
+ select: (n) => /* @__PURE__ */ o.jsx(ls, { ...n, userFlow: e, pageId: t }),
812
+ switch: (n) => /* @__PURE__ */ o.jsx(bs, { ...n, userFlow: e, pageId: t }),
813
+ spacing: (n) => /* @__PURE__ */ o.jsx(ps, { ...n, userFlow: e, pageId: t }),
814
+ table: (n) => /* @__PURE__ */ o.jsx(Ss, { ...n, userFlow: e, pageId: t }),
815
+ tabs: (n) => /* @__PURE__ */ o.jsx(qs, { ...n, userFlow: e, pageId: t }),
816
+ text: (n) => Ft(n),
817
+ textField: (n) => /* @__PURE__ */ o.jsx(Os, { ...n, userFlow: e, pageId: t }),
818
+ toast: (n) => /* @__PURE__ */ o.jsx(Rs, { ...n, userFlow: e, pageId: t })
819
+ };
820
+ return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
821
+ const d = c[n.component];
822
+ return d ? d({ ...n, userFlow: e, pageId: t }) : null;
823
+ });
824
+ }, yn = "_slotStack_12u4t_5", qe = {
825
+ slotStack: yn
826
+ }, xn = (e) => {
827
+ const {
828
+ userFlow: t,
829
+ pageId: a,
830
+ component: s,
831
+ hash: c,
832
+ responseKey: i,
833
+ dependencies: l,
834
+ content: n,
835
+ actionContent: d,
836
+ ...r
837
+ } = e, { disabled: u } = B(
838
+ t,
839
+ l
840
+ ), f = S(
841
+ t,
842
+ a,
843
+ n && n.length > 0 ? n : null
844
+ ), _ = S(
845
+ t,
846
+ a,
847
+ d && d.length > 0 ? d : null
848
+ ), h = f && f.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: f.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-body-${c}-${y}`)) }) : void 0, b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: qe.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `card-accordion-actions-${c}-${y}`)) }) : void 0, m = r.disabled || u;
849
+ return /* @__PURE__ */ o.jsx(
850
+ nt,
851
+ {
852
+ ...r,
853
+ disabled: m,
854
+ actionContent: b,
855
+ children: h ?? null
856
+ }
857
+ );
858
+ }, gn = "_cardNotificationNotFront_t7pln_1", pn = {
859
+ cardNotificationNotFront: gn
860
+ }, bn = (e) => {
861
+ const { content: t, description: a, ...s } = e, c = {
791
862
  ...s,
792
863
  children: t ?? a
793
864
  };
794
- return /* @__PURE__ */ i.jsx(
865
+ return /* @__PURE__ */ o.jsx(
795
866
  me,
796
867
  {
797
- ...o,
798
- className: mn.cardNotificationNotFront
868
+ ...c,
869
+ className: pn.cardNotificationNotFront
799
870
  }
800
871
  );
801
- }, xn = (e) => {
872
+ }, jn = (e) => {
802
873
  const {
803
874
  userFlow: t,
804
875
  pageId: a,
805
876
  responseKey: s,
806
- actionType: o,
807
- label: c,
877
+ actionType: c,
878
+ label: i,
808
879
  value: l,
809
880
  required: n,
810
881
  dependencies: d,
811
882
  ...r
812
883
  } = e, u = {
813
884
  ...r
814
- }, { getNextUI: f } = B(), [_, h] = O(l || !1), { disabled: b } = z(
885
+ }, { getNextUI: f } = I(), [_, h] = T(l || !1), { disabled: b } = B(
815
886
  t,
816
887
  d
817
- ), m = k(() => n && c ? `${c} *` : c ?? "", [c, n]), x = $(async () => {
888
+ ), m = $(() => n && i ? `${i} *` : i ?? "", [i, n]), x = R(async () => {
818
889
  var g;
819
890
  try {
820
891
  const p = !_;
@@ -823,7 +894,7 @@ const Qt = (e) => {
823
894
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
824
895
  [s]: p
825
896
  };
826
- switch (R(t, N), o) {
897
+ switch (O(t, N), c) {
827
898
  case "GO_TO_NEXT_UI":
828
899
  const j = await f(
829
900
  t,
@@ -834,15 +905,15 @@ const Qt = (e) => {
834
905
  j != null && j.data && A(t, j == null ? void 0 : j.data);
835
906
  break;
836
907
  default:
837
- console.warn(`Unhandled actionType: ${o}`);
908
+ console.warn(`Unhandled actionType: ${c}`);
838
909
  break;
839
910
  }
840
911
  } catch (p) {
841
912
  console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
842
913
  }
843
- }, [t, a, s, o, _]), y = (u == null ? void 0 : u.disabled) ?? b;
844
- return /* @__PURE__ */ i.jsx(
845
- tt,
914
+ }, [t, a, s, c, _]), y = (u == null ? void 0 : u.disabled) ?? b;
915
+ return /* @__PURE__ */ o.jsx(
916
+ st,
846
917
  {
847
918
  ...u,
848
919
  labelRight: m,
@@ -853,56 +924,56 @@ const Qt = (e) => {
853
924
  }
854
925
  }
855
926
  );
856
- }, gn = "_codeEditor_1coz7_1", pn = "_codeEditor_label_1coz7_4", bn = "_codeEditor_wrapper_1coz7_13", jn = "_input_1coz7_17", wn = "_preview_1coz7_18", Y = {
857
- codeEditor: gn,
858
- codeEditor_label: pn,
859
- codeEditor_wrapper: bn,
860
- input: jn,
861
- preview: wn
862
- }, Cn = (e) => {
927
+ }, wn = "_codeEditor_1coz7_1", Cn = "_codeEditor_label_1coz7_4", Nn = "_codeEditor_wrapper_1coz7_13", vn = "_input_1coz7_17", Sn = "_preview_1coz7_18", Y = {
928
+ codeEditor: wn,
929
+ codeEditor_label: Cn,
930
+ codeEditor_wrapper: Nn,
931
+ input: vn,
932
+ preview: Sn
933
+ }, En = (e) => {
863
934
  const {
864
935
  userFlow: t,
865
936
  responseKey: a,
866
937
  label: s,
867
- language: o,
868
- placeholder: c,
938
+ language: c,
939
+ placeholder: i,
869
940
  value: l,
870
941
  required: n,
871
942
  dependencies: d,
872
943
  disabled: r,
873
944
  showPreview: u
874
- } = e, [f, _] = O(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: b } = z(
945
+ } = e, [f, _] = T(l ?? ""), h = te.useThemeStore((p) => p.theme.mode), { disabled: b } = B(
875
946
  t,
876
947
  d
877
948
  ), m = r ?? b, x = {
878
949
  json: we(),
879
- markdown: wt(),
880
- sql: Ct(),
881
- yaml: Nt()
882
- }, y = k(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
950
+ markdown: Nt(),
951
+ sql: vt(),
952
+ yaml: St()
953
+ }, y = $(() => n && s ? `${s} *` : s ?? "", [s, n]), g = (p) => {
883
954
  _(p);
884
955
  const N = {
885
956
  [a]: p
886
957
  };
887
- R(t, N);
958
+ O(t, N);
888
959
  };
889
- return /* @__PURE__ */ i.jsxs("div", { className: Y.codeEditor, children: [
890
- y && y !== "" && /* @__PURE__ */ i.jsx("label", { className: Y.codeEditor_label, children: y }),
891
- /* @__PURE__ */ i.jsxs("div", { className: Y.codeEditor_wrapper, children: [
892
- /* @__PURE__ */ i.jsx(
893
- jt,
960
+ return /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor, children: [
961
+ y && y !== "" && /* @__PURE__ */ o.jsx("label", { className: Y.codeEditor_label, children: y }),
962
+ /* @__PURE__ */ o.jsxs("div", { className: Y.codeEditor_wrapper, children: [
963
+ /* @__PURE__ */ o.jsx(
964
+ Ct,
894
965
  {
895
966
  className: Y.input,
896
967
  value: f,
897
968
  height: "400px",
898
- placeholder: c,
899
- extensions: [x[o] ?? we()],
969
+ placeholder: i,
970
+ extensions: [x[c] ?? we()],
900
971
  onChange: (p) => g(p),
901
972
  theme: h,
902
973
  editable: !m
903
974
  }
904
975
  ),
905
- o == "markdown" && u && /* @__PURE__ */ i.jsx(Be, { className: Y.preview, children: f })
976
+ c == "markdown" && u && /* @__PURE__ */ o.jsx(Ie, { className: Y.preview, children: f })
906
977
  ] })
907
978
  ] });
908
979
  };
@@ -913,29 +984,29 @@ var de = { exports: {} };
913
984
  http://jedwatson.github.io/classnames
914
985
  */
915
986
  var Te;
916
- function Nn() {
987
+ function kn() {
917
988
  return Te || (Te = 1, (function(e) {
918
989
  (function() {
919
990
  var t = {}.hasOwnProperty;
920
991
  function a() {
921
- for (var s = [], o = 0; o < arguments.length; o++) {
922
- var c = arguments[o];
923
- if (c) {
924
- var l = typeof c;
992
+ for (var s = [], c = 0; c < arguments.length; c++) {
993
+ var i = arguments[c];
994
+ if (i) {
995
+ var l = typeof i;
925
996
  if (l === "string" || l === "number")
926
- s.push(c);
927
- else if (Array.isArray(c)) {
928
- if (c.length) {
929
- var n = a.apply(null, c);
997
+ s.push(i);
998
+ else if (Array.isArray(i)) {
999
+ if (i.length) {
1000
+ var n = a.apply(null, i);
930
1001
  n && s.push(n);
931
1002
  }
932
1003
  } else if (l === "object") {
933
- if (c.toString !== Object.prototype.toString && !c.toString.toString().includes("[native code]")) {
934
- s.push(c.toString());
1004
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]")) {
1005
+ s.push(i.toString());
935
1006
  continue;
936
1007
  }
937
- for (var d in c)
938
- t.call(c, d) && c[d] && s.push(d);
1008
+ for (var d in i)
1009
+ t.call(i, d) && i[d] && s.push(d);
939
1010
  }
940
1011
  }
941
1012
  }
@@ -945,52 +1016,16 @@ function Nn() {
945
1016
  })();
946
1017
  })(de)), de.exports;
947
1018
  }
948
- var vn = Nn();
949
- const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
950
- var l;
951
- const o = {
952
- accordion: (n) => /* @__PURE__ */ i.jsx($s, { ...n, userFlow: e, pageId: t }),
953
- aiChatPanel: (n) => /* @__PURE__ */ i.jsx(Zt, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiChatPanel }),
954
- aiSummaryCard: (n) => /* @__PURE__ */ i.jsx(en, { ...n, userFlow: e, pageId: t, onResolveProps: s == null ? void 0 : s.aiSummaryCard }),
955
- aiPromptCodeEditor: (n) => /* @__PURE__ */ i.jsx(sn, { ...n, userFlow: e, pageId: t }),
956
- breadcrumbs: (n) => /* @__PURE__ */ i.jsx(un, { ...n, userFlow: e, pageId: t }),
957
- button: (n) => /* @__PURE__ */ i.jsx(hn, { ...n, userFlow: e, pageId: t }),
958
- cardNotification: (n) => /* @__PURE__ */ i.jsx(yn, { ...n }),
959
- chart: (n) => /* @__PURE__ */ i.jsx(In, { ...n, userFlow: e }),
960
- dataCard: (n) => /* @__PURE__ */ i.jsx(Sn, { ...n, userFlow: e, pageId: t }),
961
- checkbox: (n) => /* @__PURE__ */ i.jsx(xn, { ...n, userFlow: e, pageId: t }),
962
- code: (n) => /* @__PURE__ */ i.jsx(Cn, { ...n, userFlow: e, pageId: t }),
963
- divider: (n) => /* @__PURE__ */ i.jsx(Tn, { ...n }),
964
- drawer: (n) => /* @__PURE__ */ i.jsx(Bs, { ...n, userFlow: e, pageId: t }),
965
- heading: (n) => Qt(n),
966
- link: (n) => /* @__PURE__ */ i.jsx(Gn, { ...n, userFlow: e, pageId: t }),
967
- pill: (n) => /* @__PURE__ */ i.jsx(Wn, { ...n }),
968
- previewerMarkdown: (n) => /* @__PURE__ */ i.jsx(Qn, { ...n }),
969
- modal: (n) => /* @__PURE__ */ i.jsx(Vn, { ...n, userFlow: e, pageId: t }),
970
- roundButton: (n) => /* @__PURE__ */ i.jsx(Yn, { ...n, userFlow: e, pageId: t }),
971
- row: (n) => /* @__PURE__ */ i.jsx(Pn, { ...n, userFlow: e, pageId: t }),
972
- select: (n) => /* @__PURE__ */ i.jsx(rs, { ...n, userFlow: e, pageId: t }),
973
- switch: (n) => /* @__PURE__ */ i.jsx(ys, { ...n, userFlow: e, pageId: t }),
974
- spacing: (n) => /* @__PURE__ */ i.jsx(ms, { ...n, userFlow: e, pageId: t }),
975
- table: (n) => /* @__PURE__ */ i.jsx(ws, { ...n, userFlow: e, pageId: t }),
976
- tabs: (n) => /* @__PURE__ */ i.jsx(Es, { ...n, userFlow: e, pageId: t }),
977
- text: (n) => Yt(n),
978
- textField: (n) => /* @__PURE__ */ i.jsx(qs, { ...n, userFlow: e, pageId: t }),
979
- toast: (n) => /* @__PURE__ */ i.jsx(Ts, { ...n, userFlow: e, pageId: t })
980
- };
981
- return (l = a == null ? void 0 : a.filter(Boolean)) == null ? void 0 : l.map((n) => {
982
- const d = o[n.component];
983
- return d ? d({ ...n, userFlow: e, pageId: t }) : null;
984
- });
985
- }, En = "_slotStack_6n2wy_5", Oe = {
986
- slotStack: En
987
- }, Sn = (e) => {
1019
+ var $n = kn();
1020
+ const ee = /* @__PURE__ */ Wt($n), qn = "_slotStack_6n2wy_5", Ae = {
1021
+ slotStack: qn
1022
+ }, Tn = (e) => {
988
1023
  const {
989
1024
  userFlow: t,
990
1025
  pageId: a,
991
1026
  component: s,
992
- hash: o,
993
- responseKey: c,
1027
+ hash: c,
1028
+ responseKey: i,
994
1029
  content: l,
995
1030
  topContent: n,
996
1031
  icon: d,
@@ -1004,9 +1039,9 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1004
1039
  t,
1005
1040
  a,
1006
1041
  n && n.length > 0 ? n : null
1007
- ), b = _ && _.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: Oe.slotStack, children: _.map((x, y) => /* @__PURE__ */ i.jsx(q, { children: x }, `data-card-body-${o}-${y}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: Oe.slotStack, children: h.map((x, y) => /* @__PURE__ */ i.jsx(q, { children: x }, `data-card-top-${o}-${y}`)) }) : void 0;
1008
- return /* @__PURE__ */ i.jsx(
1009
- nt,
1042
+ ), b = _ && _.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: _.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-body-${c}-${y}`)) }) : void 0, m = h && h.length > 0 ? /* @__PURE__ */ o.jsx("div", { className: Ae.slotStack, children: h.map((x, y) => /* @__PURE__ */ o.jsx(k, { children: x }, `data-card-top-${c}-${y}`)) }) : void 0;
1043
+ return /* @__PURE__ */ o.jsx(
1044
+ at,
1010
1045
  {
1011
1046
  ...u,
1012
1047
  icon: d,
@@ -1015,16 +1050,16 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1015
1050
  children: b
1016
1051
  }
1017
1052
  );
1018
- }, kn = "_dividerNotFront_tze3j_1", qn = {
1019
- dividerNotFront: kn
1020
- }, Tn = (e) => /* @__PURE__ */ i.jsx(st, { ...e, className: qn.dividerNotFront }), On = (e, t, a) => {
1021
- const { url: s, paginationKeys: o, params: c } = e, l = [], n = (o == null ? void 0 : o.page) ?? "page";
1053
+ }, An = "_dividerNotFront_tze3j_1", On = {
1054
+ dividerNotFront: An
1055
+ }, Rn = (e) => /* @__PURE__ */ o.jsx(rt, { ...e, className: On.dividerNotFront }), Dn = (e, t, a) => {
1056
+ const { url: s, paginationKeys: c, params: i } = e, l = [], n = (c == null ? void 0 : c.page) ?? "page";
1022
1057
  if (l.push(`${n}=${t}`), typeof a == "string") {
1023
- const u = (o == null ? void 0 : o.text) ?? "text";
1058
+ const u = (c == null ? void 0 : c.text) ?? "text";
1024
1059
  l.push(`${u}=${encodeURIComponent(a || "")}`);
1025
1060
  }
1026
- if (c && typeof c == "object") {
1027
- const u = Object.entries(c).map(
1061
+ if (i && typeof i == "object") {
1062
+ const u = Object.entries(i).map(
1028
1063
  ([f, _]) => `${encodeURIComponent(f)}=${encodeURIComponent(_)}`
1029
1064
  );
1030
1065
  l.push(...u);
@@ -1032,16 +1067,16 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1032
1067
  const d = l.join("&");
1033
1068
  return d ? `${s}?${d}` : s;
1034
1069
  }, pe = (e, t, a) => {
1035
- const { type: s, url: o, method: c, headers: l } = e;
1070
+ const { type: s, url: c, method: i, headers: l } = e;
1036
1071
  return s === "rest" ? {
1037
1072
  type: "rest",
1038
- url: On(e, t, a),
1039
- method: c,
1073
+ url: Dn(e, t, a),
1074
+ method: i,
1040
1075
  headers: l,
1041
1076
  data: (e == null ? void 0 : e.data) || {}
1042
1077
  } : {
1043
1078
  type: "graphql",
1044
- url: o,
1079
+ url: c,
1045
1080
  method: "post",
1046
1081
  headers: l,
1047
1082
  query: e == null ? void 0 : e.query,
@@ -1051,37 +1086,37 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1051
1086
  page: t
1052
1087
  }
1053
1088
  };
1054
- }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ge = (e, t, a, s) => {
1055
- const o = I.query(e, t), c = o == null ? void 0 : o.map((r) => {
1089
+ }, _e = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Ue = (e, t, a, s) => {
1090
+ const c = K.query(e, t), i = c == null ? void 0 : c.map((r) => {
1056
1091
  var u, f;
1057
1092
  if (a) {
1058
1093
  const _ = {};
1059
1094
  for (const [h, b] of Object.entries(a))
1060
1095
  if (typeof b == "object" && "path" in b) {
1061
- const m = b, x = (u = I.query(r, m.path)) == null ? void 0 : u[0];
1096
+ const m = b, x = (u = K.query(r, m.path)) == null ? void 0 : u[0];
1062
1097
  m.translations && String(x) in m.translations ? _[h] = _e(
1063
1098
  m.translations[String(x)]
1064
1099
  ) : _[h] = _e(x);
1065
1100
  } else {
1066
1101
  const m = b;
1067
- _[h] = _e((f = I.query(r, m)) == null ? void 0 : f[0]);
1102
+ _[h] = _e((f = K.query(r, m)) == null ? void 0 : f[0]);
1068
1103
  }
1069
1104
  return _;
1070
1105
  } else
1071
1106
  return r;
1072
- }), l = I.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? o.length, n = I.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
1107
+ }), l = K.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? c.length, n = K.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = {
1073
1108
  size: l,
1074
1109
  total: n,
1075
- totalPages: s != null && s.totalPages ? I.value(
1110
+ totalPages: s != null && s.totalPages ? K.value(
1076
1111
  e,
1077
1112
  (s == null ? void 0 : s.totalPages) ?? "$.meta.totalPages"
1078
1113
  ) : l > 0 ? Math.ceil(n / l) : 0
1079
1114
  };
1080
- return { items: c, pagination: d };
1115
+ return { items: i, pagination: d };
1081
1116
  }, se = ({ withPadding: e = !1 }) => {
1082
- const t = (a) => /* @__PURE__ */ i.jsx("span", { style: { color: L.labelColor }, children: a });
1083
- return /* @__PURE__ */ i.jsx(
1084
- vt,
1117
+ const t = (a) => /* @__PURE__ */ o.jsx("span", { style: { color: L.labelColor }, children: a });
1118
+ return /* @__PURE__ */ o.jsx(
1119
+ Et,
1085
1120
  {
1086
1121
  formatter: t,
1087
1122
  wrapperStyle: {
@@ -1091,16 +1126,16 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1091
1126
  }
1092
1127
  }
1093
1128
  );
1094
- }, An = ({
1129
+ }, Ln = ({
1095
1130
  active: e,
1096
1131
  payload: t,
1097
1132
  label: a,
1098
1133
  tooltipKey: s
1099
1134
  }) => {
1100
- var c;
1135
+ var i;
1101
1136
  if (!e || !t || !t.length)
1102
1137
  return null;
1103
- const o = {
1138
+ const c = {
1104
1139
  backgroundColor: L.tooltipBg,
1105
1140
  borderRadius: L.tooltipBorderRadius,
1106
1141
  color: L.tooltipColor,
@@ -1108,21 +1143,21 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1108
1143
  border: "1px solid #e5e7eb"
1109
1144
  };
1110
1145
  if (s) {
1111
- const l = (c = t[0]) == null ? void 0 : c.payload;
1146
+ const l = (i = t[0]) == null ? void 0 : i.payload;
1112
1147
  if (l && l[s] !== void 0 && l[s] !== null)
1113
- return /* @__PURE__ */ i.jsx("div", { style: o, children: /* @__PURE__ */ i.jsx("p", { style: { margin: 0 }, children: l[s] }) });
1148
+ return /* @__PURE__ */ o.jsx("div", { style: c, children: /* @__PURE__ */ o.jsx("p", { style: { margin: 0 }, children: l[s] }) });
1114
1149
  }
1115
- return /* @__PURE__ */ i.jsxs("div", { style: o, children: [
1116
- /* @__PURE__ */ i.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: a }),
1117
- t.map((l, n) => /* @__PURE__ */ i.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
1150
+ return /* @__PURE__ */ o.jsxs("div", { style: c, children: [
1151
+ /* @__PURE__ */ o.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: a }),
1152
+ t.map((l, n) => /* @__PURE__ */ o.jsx("p", { style: { margin: "2px 0", color: l.color }, children: `${l.name}: ${l.value}` }, n))
1118
1153
  ] });
1119
- }, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ i.jsx(
1120
- Et,
1154
+ }, ae = ({ tooltipKey: e } = {}) => /* @__PURE__ */ o.jsx(
1155
+ kt,
1121
1156
  {
1122
- content: /* @__PURE__ */ i.jsx(An, { tooltipKey: e })
1157
+ content: /* @__PURE__ */ o.jsx(Ln, { tooltipKey: e })
1123
1158
  }
1124
- ), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ i.jsx(
1125
- St,
1159
+ ), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ o.jsx(
1160
+ $t,
1126
1161
  {
1127
1162
  dataKey: e,
1128
1163
  hide: t,
@@ -1131,72 +1166,72 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1131
1166
  fontSize: L.fontSize
1132
1167
  }
1133
1168
  }
1134
- ), je = () => /* @__PURE__ */ i.jsx(
1135
- kt,
1169
+ ), je = () => /* @__PURE__ */ o.jsx(
1170
+ qt,
1136
1171
  {
1137
1172
  tick: {
1138
1173
  fill: L.labelColor,
1139
1174
  fontSize: L.fontSize
1140
1175
  }
1141
1176
  }
1142
- ), $n = (e) => {
1143
- const { data: t, xKey: a, yKeys: s, tooltipKey: o } = e;
1144
- return /* @__PURE__ */ i.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ i.jsxs(qt, { data: t, children: [
1145
- /* @__PURE__ */ i.jsx(ye, { strokeDasharray: "3 3" }),
1146
- /* @__PURE__ */ i.jsx(be, { dataKey: a }),
1147
- /* @__PURE__ */ i.jsx(je, {}),
1148
- /* @__PURE__ */ i.jsx(ae, { tooltipKey: o }),
1149
- /* @__PURE__ */ i.jsx(se, {}),
1150
- s.map((c, l) => /* @__PURE__ */ i.jsx(
1151
- Tt,
1177
+ ), Bn = (e) => {
1178
+ const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1179
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Tt, { data: t, children: [
1180
+ /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1181
+ /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1182
+ /* @__PURE__ */ o.jsx(je, {}),
1183
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1184
+ /* @__PURE__ */ o.jsx(se, {}),
1185
+ s.map((i, l) => /* @__PURE__ */ o.jsx(
1186
+ At,
1152
1187
  {
1153
1188
  type: "monotone",
1154
- dataKey: c,
1155
- stroke: M[l % M.length],
1156
- fill: M[l % M.length]
1189
+ dataKey: i,
1190
+ stroke: z[l % z.length],
1191
+ fill: z[l % z.length]
1157
1192
  },
1158
- c
1193
+ i
1159
1194
  ))
1160
1195
  ] }) });
1161
- }, Rn = (e) => {
1162
- const { data: t, yKeys: a, xKey: s, tooltipKey: o } = e;
1163
- return /* @__PURE__ */ i.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ i.jsxs(Ot, { data: t, children: [
1164
- /* @__PURE__ */ i.jsx(ye, { strokeDasharray: "3 3" }),
1165
- /* @__PURE__ */ i.jsx(be, { hide: !0, dataKey: s }),
1166
- /* @__PURE__ */ i.jsx(je, {}),
1167
- /* @__PURE__ */ i.jsx(ae, { tooltipKey: o }),
1168
- /* @__PURE__ */ i.jsx(se, { withPadding: !0 }),
1169
- a.map((c, l) => /* @__PURE__ */ i.jsx(
1170
- At,
1196
+ }, In = (e) => {
1197
+ const { data: t, yKeys: a, xKey: s, tooltipKey: c } = e;
1198
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Ot, { data: t, children: [
1199
+ /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1200
+ /* @__PURE__ */ o.jsx(be, { hide: !0, dataKey: s }),
1201
+ /* @__PURE__ */ o.jsx(je, {}),
1202
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1203
+ /* @__PURE__ */ o.jsx(se, { withPadding: !0 }),
1204
+ a.map((i, l) => /* @__PURE__ */ o.jsx(
1205
+ Rt,
1171
1206
  {
1172
- dataKey: c,
1173
- fill: M[l % M.length]
1207
+ dataKey: i,
1208
+ fill: z[l % z.length]
1174
1209
  },
1175
- c
1210
+ i
1176
1211
  ))
1177
1212
  ] }) });
1178
- }, Dn = (e) => {
1179
- const { data: t, xKey: a, yKeys: s, tooltipKey: o } = e;
1180
- return /* @__PURE__ */ i.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ i.jsxs($t, { data: t, children: [
1181
- /* @__PURE__ */ i.jsx(ye, { strokeDasharray: "3 3" }),
1182
- /* @__PURE__ */ i.jsx(be, { dataKey: a }),
1183
- /* @__PURE__ */ i.jsx(je, {}),
1184
- /* @__PURE__ */ i.jsx(ae, { tooltipKey: o }),
1185
- /* @__PURE__ */ i.jsx(se, {}),
1186
- s.map((c, l) => /* @__PURE__ */ i.jsx(
1187
- Rt,
1213
+ }, Kn = (e) => {
1214
+ const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e;
1215
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Dt, { data: t, children: [
1216
+ /* @__PURE__ */ o.jsx(ye, { strokeDasharray: "3 3" }),
1217
+ /* @__PURE__ */ o.jsx(be, { dataKey: a }),
1218
+ /* @__PURE__ */ o.jsx(je, {}),
1219
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1220
+ /* @__PURE__ */ o.jsx(se, {}),
1221
+ s.map((i, l) => /* @__PURE__ */ o.jsx(
1222
+ Lt,
1188
1223
  {
1189
1224
  type: "monotone",
1190
- dataKey: c,
1191
- stroke: M[l % M.length],
1225
+ dataKey: i,
1226
+ stroke: z[l % z.length],
1192
1227
  strokeWidth: 2,
1193
1228
  dot: !1
1194
1229
  },
1195
- c
1230
+ i
1196
1231
  ))
1197
1232
  ] }) });
1198
- }, Ln = (e) => {
1199
- const { data: t, xKey: a, yKeys: s, tooltipKey: o } = e, c = ({
1233
+ }, zn = (e) => {
1234
+ const { data: t, xKey: a, yKeys: s, tooltipKey: c } = e, i = ({
1200
1235
  cx: l,
1201
1236
  cy: n,
1202
1237
  midAngle: d,
@@ -1205,7 +1240,7 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1205
1240
  value: f
1206
1241
  }) => {
1207
1242
  const _ = Math.PI / 180, h = 25 + r + (u - r), b = l + h * Math.cos(-(d ?? 0) * _), m = n + h * Math.sin(-(d ?? 0) * _);
1208
- return /* @__PURE__ */ i.jsx(
1243
+ return /* @__PURE__ */ o.jsx(
1209
1244
  "text",
1210
1245
  {
1211
1246
  x: b,
@@ -1218,33 +1253,33 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1218
1253
  }
1219
1254
  );
1220
1255
  };
1221
- return /* @__PURE__ */ i.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ i.jsxs(Dt, { children: [
1222
- /* @__PURE__ */ i.jsx(ae, { tooltipKey: o }),
1223
- /* @__PURE__ */ i.jsx(se, {}),
1224
- /* @__PURE__ */ i.jsx(
1225
- Lt,
1256
+ return /* @__PURE__ */ o.jsx(ne, { width: "100%", height: 400, children: /* @__PURE__ */ o.jsxs(Bt, { children: [
1257
+ /* @__PURE__ */ o.jsx(ae, { tooltipKey: c }),
1258
+ /* @__PURE__ */ o.jsx(se, {}),
1259
+ /* @__PURE__ */ o.jsx(
1260
+ It,
1226
1261
  {
1227
1262
  data: t,
1228
1263
  dataKey: s[0],
1229
1264
  nameKey: a,
1230
- label: c,
1265
+ label: i,
1231
1266
  outerRadius: 120,
1232
- children: t.map((l, n) => /* @__PURE__ */ i.jsx(
1233
- Bt,
1267
+ children: t.map((l, n) => /* @__PURE__ */ o.jsx(
1268
+ Kt,
1234
1269
  {
1235
- fill: M[n % M.length]
1270
+ fill: z[n % z.length]
1236
1271
  },
1237
1272
  `cell-${n}`
1238
1273
  ))
1239
1274
  }
1240
1275
  )
1241
1276
  ] }) });
1242
- }, Bn = {
1243
- area: $n,
1244
- bar: Rn,
1245
- line: Dn,
1246
- pie: Ln
1247
- }, M = [
1277
+ }, Mn = {
1278
+ area: Bn,
1279
+ bar: In,
1280
+ line: Kn,
1281
+ pie: zn
1282
+ }, z = [
1248
1283
  "var(--color-primitive-palette-1-50)",
1249
1284
  "var(--color-primitive-palette-2-50)",
1250
1285
  "var(--color-primitive-palette-3-50)",
@@ -1269,66 +1304,66 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1269
1304
  tooltipBg: "#fff",
1270
1305
  tooltipColor: "#000",
1271
1306
  tooltipBorderRadius: "4px"
1272
- }, In = (e) => {
1273
- const { component: t, userFlow: a, hash: s, responseKey: o, dataSource: c, ...l } = e, n = Bn[l.type];
1307
+ }, Gn = (e) => {
1308
+ const { component: t, userFlow: a, hash: s, responseKey: c, dataSource: i, ...l } = e, n = Mn[l.type];
1274
1309
  if (!n)
1275
- return /* @__PURE__ */ i.jsx("div", { children: "Not supported chart type" });
1276
- const { fetchDataSource: d } = B(), [r, u] = O(!1), [f, _] = O([]), h = async () => {
1310
+ return /* @__PURE__ */ o.jsx("div", { children: "Not supported chart type" });
1311
+ const { fetchDataSource: d } = I(), [r, u] = T(!1), [f, _] = T([]), h = async () => {
1277
1312
  var m, x;
1278
1313
  try {
1279
1314
  u(!0);
1280
- const { jsonPathData: y, mapperData: g } = c, p = pe(
1281
- c,
1315
+ const { jsonPathData: y, mapperData: g } = i, p = pe(
1316
+ i,
1282
1317
  1
1283
1318
  ), N = await d(
1284
1319
  p,
1285
1320
  a,
1286
1321
  !1
1287
- ), j = y ? (m = Ge(N == null ? void 0 : N.data, y, g)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1322
+ ), j = y ? (m = Ue(N == null ? void 0 : N.data, y, g)) == null ? void 0 : m.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1288
1323
  _(j), u(!1);
1289
1324
  } catch (y) {
1290
1325
  alert(JSON.stringify(y)), u(!1);
1291
1326
  }
1292
1327
  };
1293
- K(() => {
1294
- c ? h() : _(l.data);
1328
+ M(() => {
1329
+ i ? h() : _(l.data);
1295
1330
  }, []);
1296
1331
  const b = {
1297
1332
  ...l,
1298
1333
  data: f
1299
1334
  };
1300
- return r ? /* @__PURE__ */ i.jsx(Ie, { height: 400 }) : f.length > 0 ? n(b) : /* @__PURE__ */ i.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1301
- }, zn = "_header_g1eri_1", Mn = "_header_content_g1eri_5", Ae = {
1302
- header: zn,
1303
- header_content: Mn
1304
- }, Kn = ({ components: e = [] }) => /* @__PURE__ */ i.jsx("section", { className: ee(Ae.header, "avocado-dark-theme"), children: /* @__PURE__ */ i.jsx("div", { className: Ae.header_content, children: e.map((t, a) => /* @__PURE__ */ i.jsx(q, { children: t }, a)) }) }), Gn = (e) => {
1335
+ return r ? /* @__PURE__ */ o.jsx(Ke, { height: 400 }) : f.length > 0 ? n(b) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1336
+ }, Un = "_header_g1eri_1", Jn = "_header_content_g1eri_5", Oe = {
1337
+ header: Un,
1338
+ header_content: Jn
1339
+ }, Vn = ({ components: e = [] }) => /* @__PURE__ */ o.jsx("section", { className: ee(Oe.header, "avocado-dark-theme"), children: /* @__PURE__ */ o.jsx("div", { className: Oe.header_content, children: e.map((t, a) => /* @__PURE__ */ o.jsx(k, { children: t }, a)) }) }), Hn = (e) => {
1305
1340
  const {
1306
1341
  userFlow: t,
1307
1342
  pageId: a,
1308
1343
  responseKey: s,
1309
- actionType: o,
1310
- content: c,
1344
+ actionType: c,
1345
+ content: i,
1311
1346
  redirectUrl: l,
1312
1347
  target: n,
1313
1348
  dependencies: d,
1314
1349
  component: r,
1315
1350
  hash: u,
1316
1351
  ...f
1317
- } = e, { getNextUI: _ } = B(), { disabled: h } = z(
1352
+ } = e, { getNextUI: _ } = I(), { disabled: h } = B(
1318
1353
  t,
1319
1354
  d
1320
- ), b = o && f ? (() => {
1355
+ ), b = c && f ? (() => {
1321
1356
  const { href: y, target: g, download: p, ...N } = f;
1322
1357
  return N;
1323
- })() : f, m = $(async () => {
1358
+ })() : f, m = R(async () => {
1324
1359
  var y;
1325
- if (o)
1360
+ if (c)
1326
1361
  try {
1327
1362
  const g = {
1328
1363
  ...(y = v.getState()[t]) == null ? void 0 : y.entries,
1329
1364
  [s]: { status: 200 }
1330
1365
  };
1331
- switch (R(t, g), o) {
1366
+ switch (O(t, g), c) {
1332
1367
  case "GO_TO_NEXT_UI": {
1333
1368
  const p = await _(
1334
1369
  t,
@@ -1347,31 +1382,31 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1347
1382
  n === "_blank" ? window.open(l, "_blank", "noopener,noreferrer") : window.location.assign(l);
1348
1383
  break;
1349
1384
  default:
1350
- console.warn(`Unhandled actionType for link: ${o}`);
1385
+ console.warn(`Unhandled actionType for link: ${c}`);
1351
1386
  break;
1352
1387
  }
1353
1388
  } catch (g) {
1354
1389
  alert(JSON.stringify(g));
1355
1390
  }
1356
- }, [o, _, a, l, s, n, t]), x = b.disabled ?? h;
1357
- return /* @__PURE__ */ i.jsx(
1358
- at,
1391
+ }, [c, _, a, l, s, n, t]), x = b.disabled ?? h;
1392
+ return /* @__PURE__ */ o.jsx(
1393
+ ot,
1359
1394
  {
1360
1395
  ...b,
1361
1396
  disabled: x,
1362
- onClick: o ? m : void 0,
1363
- children: c
1397
+ onClick: c ? m : void 0,
1398
+ children: i
1364
1399
  }
1365
1400
  );
1366
- }, Un = "_modalContent_p06ci_1", Jn = {
1367
- modalContent: Un
1368
- }, Vn = ({
1401
+ }, Xn = "_modalContent_p06ci_1", Wn = {
1402
+ modalContent: Xn
1403
+ }, Qn = ({
1369
1404
  userFlow: e,
1370
1405
  pageId: t,
1371
1406
  responseKey: a,
1372
1407
  header: s,
1373
- body: o,
1374
- footer: c,
1408
+ body: c,
1409
+ footer: i,
1375
1410
  headerStatusColor: l,
1376
1411
  ...n
1377
1412
  }) => {
@@ -1383,40 +1418,40 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1383
1418
  return (g = y[e]) == null ? void 0 : g.isLoading;
1384
1419
  }), u = d && !r, f = {
1385
1420
  ...n
1386
- }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = $(() => {
1421
+ }, _ = (f == null ? void 0 : f.headerStatusColor) ?? l, h = R(() => {
1387
1422
  xe(e), ge(e, !1);
1388
- }, [e, a]), b = Array.isArray(s) ? S(e, t, s) : s, m = S(e, t, o), x = S(e, t, c);
1389
- return /* @__PURE__ */ i.jsx(
1390
- rt,
1423
+ }, [e, a]), b = Array.isArray(s) ? S(e, t, s) : s, m = S(e, t, c), x = S(e, t, i);
1424
+ return /* @__PURE__ */ o.jsx(
1425
+ ct,
1391
1426
  {
1392
1427
  ...f,
1393
1428
  headerStatusColor: _,
1394
- header: typeof b == "string" ? b : /* @__PURE__ */ i.jsx(i.Fragment, { children: b.map((y, g) => /* @__PURE__ */ i.jsx(q, { children: y }, `modal-header-${g}`)) }),
1395
- children: /* @__PURE__ */ i.jsx("section", { className: Jn.modalContent, children: m.map((y, g) => /* @__PURE__ */ i.jsx(q, { children: y }, `modal-body-${g}`)) }),
1396
- actions: /* @__PURE__ */ i.jsx(i.Fragment, { children: x.map((y, g) => /* @__PURE__ */ i.jsx(q, { children: y }, `modal-footer-${g}`)) }),
1429
+ header: typeof b == "string" ? b : /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-header-${g}`)) }),
1430
+ children: /* @__PURE__ */ o.jsx("section", { className: Wn.modalContent, children: m.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-body-${g}`)) }),
1431
+ actions: /* @__PURE__ */ o.jsx(o.Fragment, { children: x.map((y, g) => /* @__PURE__ */ o.jsx(k, { children: y }, `modal-footer-${g}`)) }),
1397
1432
  open: u,
1398
1433
  onClose: h
1399
1434
  }
1400
1435
  );
1401
- }, Hn = ({ userFlow: e, pageId: t }) => {
1402
- var c, l;
1403
- const a = Gt(e);
1436
+ }, Yn = ({ userFlow: e, pageId: t }) => {
1437
+ var i, l;
1438
+ const a = Jt(e);
1404
1439
  if (!a)
1405
1440
  return null;
1406
1441
  const s = [
1407
1442
  ...(a == null ? void 0 : a.components) || [],
1408
- ...((c = a == null ? void 0 : a.header) == null ? void 0 : c.components) || [],
1443
+ ...((i = a == null ? void 0 : a.header) == null ? void 0 : i.components) || [],
1409
1444
  ...((l = a == null ? void 0 : a.body) == null ? void 0 : l.components) || []
1410
- ], o = S(
1445
+ ], c = S(
1411
1446
  e,
1412
1447
  t,
1413
1448
  s
1414
1449
  );
1415
- return /* @__PURE__ */ i.jsx(i.Fragment, { children: o == null ? void 0 : o.map((n, d) => {
1450
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: c == null ? void 0 : c.map((n, d) => {
1416
1451
  const r = `overlay-${d}-${a == null ? void 0 : a.hash}`;
1417
- return /* @__PURE__ */ i.jsx(q, { children: n }, r);
1452
+ return /* @__PURE__ */ o.jsx(k, { children: n }, r);
1418
1453
  }) });
1419
- }, Xn = {
1454
+ }, Zn = {
1420
1455
  success: {
1421
1456
  color: "success-opacity",
1422
1457
  textColor: "success-60",
@@ -1442,41 +1477,41 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1442
1477
  textColor: "neutral-70",
1443
1478
  iconColor: "neutral-70"
1444
1479
  }
1445
- }, Wn = (e) => {
1446
- const { content: t, variant: a = "neutral", ...s } = e, o = Xn[a], c = {
1480
+ }, Fn = (e) => {
1481
+ const { content: t, variant: a = "neutral", ...s } = e, c = Zn[a], i = {
1447
1482
  ...s,
1448
1483
  children: t,
1449
- color: (s == null ? void 0 : s.color) ?? o.color,
1450
- textColor: (s == null ? void 0 : s.textColor) ?? o.textColor,
1451
- iconColor: (s == null ? void 0 : s.iconColor) ?? o.iconColor
1484
+ color: (s == null ? void 0 : s.color) ?? c.color,
1485
+ textColor: (s == null ? void 0 : s.textColor) ?? c.textColor,
1486
+ iconColor: (s == null ? void 0 : s.iconColor) ?? c.iconColor
1452
1487
  };
1453
- return /* @__PURE__ */ i.jsx(he, { ...c });
1454
- }, Qn = (e) => {
1488
+ return /* @__PURE__ */ o.jsx(he, { ...i });
1489
+ }, Pn = (e) => {
1455
1490
  const { content: t } = e;
1456
- return /* @__PURE__ */ i.jsx(Be, { children: t });
1457
- }, Yn = (e) => {
1491
+ return /* @__PURE__ */ o.jsx(Ie, { children: t });
1492
+ }, es = (e) => {
1458
1493
  const {
1459
1494
  userFlow: t,
1460
1495
  pageId: a,
1461
1496
  responseKey: s,
1462
- actionType: o,
1463
- dataSource: c,
1497
+ actionType: c,
1498
+ dataSource: i,
1464
1499
  dependencies: l,
1465
1500
  onClick: n,
1466
1501
  ...d
1467
- } = e, { getNextUI: r, fetchAndGetNextUI: u } = B(), { disabled: f } = z(
1502
+ } = e, { getNextUI: r, fetchAndGetNextUI: u } = I(), { disabled: f } = B(
1468
1503
  t,
1469
1504
  l
1470
1505
  ), _ = {
1471
1506
  ...d
1472
- }, h = (_ == null ? void 0 : _.disabled) ?? f, b = $(async () => {
1507
+ }, h = (_ == null ? void 0 : _.disabled) ?? f, b = R(async () => {
1473
1508
  var m;
1474
1509
  try {
1475
1510
  const x = {
1476
1511
  ...(m = v.getState()[t]) == null ? void 0 : m.entries,
1477
1512
  [s]: { status: 200 }
1478
1513
  };
1479
- switch (R(t, x), o) {
1514
+ switch (O(t, x), c) {
1480
1515
  case "GO_TO_NEXT_UI": {
1481
1516
  const y = await r(
1482
1517
  t,
@@ -1493,7 +1528,7 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1493
1528
  a,
1494
1529
  x,
1495
1530
  s,
1496
- c
1531
+ i
1497
1532
  );
1498
1533
  y != null && y.data && A(t, y == null ? void 0 : y.data);
1499
1534
  break;
@@ -1508,23 +1543,23 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1508
1543
  Z(t, !0);
1509
1544
  break;
1510
1545
  default:
1511
- console.warn(`Unhandled actionType: ${o}`);
1546
+ console.warn(`Unhandled actionType: ${c}`);
1512
1547
  break;
1513
1548
  }
1514
1549
  } catch (x) {
1515
1550
  alert(JSON.stringify(x));
1516
1551
  }
1517
- }, [o, c, a, s, t]);
1518
- return /* @__PURE__ */ i.jsx(
1519
- ot,
1552
+ }, [c, i, a, s, t]);
1553
+ return /* @__PURE__ */ o.jsx(
1554
+ it,
1520
1555
  {
1521
1556
  ..._,
1522
1557
  disabled: h,
1523
1558
  onClick: () => !h && (n ?? b)()
1524
1559
  }
1525
1560
  );
1526
- }, Zn = "_row_1bqj4_1", Fn = "_row_column_1bqj4_65", J = {
1527
- row: Zn,
1561
+ }, ts = "_row_1bqj4_1", ns = "_row_column_1bqj4_65", J = {
1562
+ row: ts,
1528
1563
  "row__gap-none": "_row__gap-none_1bqj4_5",
1529
1564
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
1530
1565
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -1545,7 +1580,7 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1545
1580
  "row__align-center": "_row__align-center_1bqj4_56",
1546
1581
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
1547
1582
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
1548
- row_column: Fn,
1583
+ row_column: ns,
1549
1584
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
1550
1585
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
1551
1586
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -1566,16 +1601,16 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1566
1601
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
1567
1602
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
1568
1603
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
1569
- }, Pn = (e) => {
1604
+ }, ss = (e) => {
1570
1605
  const {
1571
1606
  userFlow: t,
1572
1607
  pageId: a,
1573
1608
  columnWidth: s,
1574
- columns: o,
1575
- gap: c = "md",
1609
+ columns: c,
1610
+ gap: i = "md",
1576
1611
  justifyContent: l = "start",
1577
1612
  alignItems: n = "stretch"
1578
- } = e, d = Array.isArray(o) ? o.map((r, u) => {
1613
+ } = e, d = Array.isArray(c) ? c.map((r, u) => {
1579
1614
  const f = `col_${u}`, _ = `col_${u}`;
1580
1615
  if (Array.isArray(r))
1581
1616
  return {
@@ -1596,18 +1631,18 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1596
1631
  responseKey: (h == null ? void 0 : h.responseKey) ?? _
1597
1632
  };
1598
1633
  }) : [];
1599
- return d.length === 0 ? null : /* @__PURE__ */ i.jsx(
1634
+ return d.length === 0 ? null : /* @__PURE__ */ o.jsx(
1600
1635
  "div",
1601
1636
  {
1602
1637
  className: ee(
1603
1638
  J.row,
1604
- J[`row__gap-${c}`],
1639
+ J[`row__gap-${i}`],
1605
1640
  J[`row__justify-${l}`],
1606
1641
  J[`row__align-${n}`]
1607
1642
  ),
1608
1643
  children: d == null ? void 0 : d.map((r, u) => {
1609
1644
  const f = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, _ = S(t, a, r.items);
1610
- return !_ || _.length === 0 ? null : /* @__PURE__ */ i.jsx(
1645
+ return !_ || _.length === 0 ? null : /* @__PURE__ */ o.jsx(
1611
1646
  "div",
1612
1647
  {
1613
1648
  className: ee(
@@ -1625,29 +1660,29 @@ const ee = /* @__PURE__ */ Ht(vn), S = (e, t, a, s) => {
1625
1660
  }
1626
1661
  );
1627
1662
  };
1628
- function Ue({
1663
+ function Je({
1629
1664
  userFlow: e,
1630
1665
  pageId: t,
1631
1666
  responseKey: a,
1632
1667
  actionType: s,
1633
- getNextUI: o,
1634
- isMulti: c = !1,
1668
+ getNextUI: c,
1669
+ isMulti: i = !1,
1635
1670
  debounceMs: l
1636
1671
  }) {
1637
- const n = Ye(null);
1638
- K(() => () => {
1672
+ const n = Ze(null);
1673
+ M(() => () => {
1639
1674
  n.current !== null && (clearTimeout(n.current), n.current = null);
1640
1675
  }, []);
1641
- const d = $(
1676
+ const d = R(
1642
1677
  async (u) => {
1643
1678
  var h;
1644
1679
  const f = {
1645
1680
  ...(h = v.getState()[e]) == null ? void 0 : h.entries,
1646
1681
  [a]: u
1647
1682
  };
1648
- if (R(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1683
+ if (O(e, f), s && (s === "GO_TO_NEXT_UI" || s === "GO_TO_NEXT_UI_WITHOUT_LOADING"))
1649
1684
  try {
1650
- const m = await o(
1685
+ const m = await c(
1651
1686
  e,
1652
1687
  t,
1653
1688
  f,
@@ -1659,11 +1694,11 @@ function Ue({
1659
1694
  console.error("[useSelectChange] Failed to fetch next UI", b);
1660
1695
  }
1661
1696
  },
1662
- [e, t, a, s, o]
1697
+ [e, t, a, s, c]
1663
1698
  );
1664
- return $(
1699
+ return R(
1665
1700
  (u) => {
1666
- if (!c) {
1701
+ if (!i) {
1667
1702
  d(u);
1668
1703
  return;
1669
1704
  }
@@ -1675,61 +1710,61 @@ function Ue({
1675
1710
  d(u), n.current = null;
1676
1711
  }, l);
1677
1712
  },
1678
- [c, l, d]
1713
+ [i, l, d]
1679
1714
  );
1680
1715
  }
1681
- const es = (e, t, a, s) => {
1682
- const o = I.query(e, t);
1683
- return (o == null ? void 0 : o.map((c) => {
1716
+ const as = (e, t, a, s) => {
1717
+ const c = K.query(e, t);
1718
+ return (c == null ? void 0 : c.map((i) => {
1684
1719
  var d, r;
1685
- const l = (d = I.query(c, a)) == null ? void 0 : d[0], n = s ? (r = I.query(c, s)) == null ? void 0 : r[0] : c;
1720
+ const l = (d = K.query(i, a)) == null ? void 0 : d[0], n = s ? (r = K.query(i, s)) == null ? void 0 : r[0] : i;
1686
1721
  return { label: l, value: n };
1687
1722
  })) ?? [];
1688
- }, ts = (e, t, a, s = 10) => {
1723
+ }, rs = (e, t, a, s = 10) => {
1689
1724
  var n, d;
1690
- let o, c;
1725
+ let c, i;
1691
1726
  if (a) {
1692
- const r = I.value(e, a.size ?? "$.meta.size") ?? s, u = I.value(e, a.total ?? "$.meta.total") ?? 0;
1693
- o = r, c = u;
1727
+ const r = K.value(e, a.size ?? "$.meta.size") ?? s, u = K.value(e, a.total ?? "$.meta.total") ?? 0;
1728
+ c = r, i = u;
1694
1729
  } else {
1695
1730
  const r = e == null ? void 0 : e.meta;
1696
- o = (r == null ? void 0 : r.size) ?? ((n = r == null ? void 0 : r.page) == null ? void 0 : n.size) ?? s, c = (r == null ? void 0 : r.total) ?? ((d = r == null ? void 0 : r.page) == null ? void 0 : d.total) ?? 0;
1731
+ c = (r == null ? void 0 : r.size) ?? ((n = r == null ? void 0 : r.page) == null ? void 0 : n.size) ?? s, i = (r == null ? void 0 : r.total) ?? ((d = r == null ? void 0 : r.page) == null ? void 0 : d.total) ?? 0;
1697
1732
  }
1698
- const l = c > 0 ? Math.ceil(c / o) > t : !1;
1733
+ const l = i > 0 ? Math.ceil(i / c) > t : !1;
1699
1734
  return {
1700
- pageSize: o,
1701
- total: c,
1735
+ pageSize: c,
1736
+ total: i,
1702
1737
  hasMore: l
1703
1738
  };
1704
- }, ns = "_selectNotFront_1yw9q_1", Je = {
1705
- selectNotFront: ns
1706
- }, ss = ({
1739
+ }, os = "_selectNotFront_1yw9q_1", Ve = {
1740
+ selectNotFront: os
1741
+ }, cs = ({
1707
1742
  userFlow: e,
1708
1743
  pageId: t,
1709
1744
  responseKey: a,
1710
1745
  required: s,
1711
- dataSource: o,
1712
- actionType: c,
1746
+ dataSource: c,
1747
+ actionType: i,
1713
1748
  dependencies: l,
1714
1749
  debounceMs: n,
1715
1750
  ...d
1716
1751
  }) => {
1717
1752
  const r = {
1718
1753
  ...d
1719
- }, { getNextUI: u, fetchDataSource: f } = B(), [_, h] = O((r == null ? void 0 : r.value) ?? ""), { disabled: b } = z(
1754
+ }, { getNextUI: u, fetchDataSource: f } = I(), [_, h] = T((r == null ? void 0 : r.value) ?? ""), { disabled: b } = B(
1720
1755
  e,
1721
1756
  l
1722
- ), m = (r == null ? void 0 : r.disabled) ?? b, x = k(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), y = k(() => {
1757
+ ), m = (r == null ? void 0 : r.disabled) ?? b, x = $(() => s && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, s]), y = $(() => {
1723
1758
  const j = r != null && r.isMulti ? _ : [_], C = {};
1724
1759
  return typeof j == "object" && "length" in j && (j == null || j.forEach((w) => {
1725
1760
  const E = JSON.stringify(w.value), D = JSON.stringify(w.label);
1726
1761
  C[E] = w, D in C || (C[D] = w);
1727
1762
  })), C;
1728
- }, [_]), g = Ue({
1763
+ }, [_]), g = Je({
1729
1764
  userFlow: e,
1730
1765
  pageId: t,
1731
1766
  responseKey: a,
1732
- actionType: c,
1767
+ actionType: i,
1733
1768
  getNextUI: u,
1734
1769
  isMulti: r == null ? void 0 : r.isMulti,
1735
1770
  debounceMs: n
@@ -1739,43 +1774,43 @@ const es = (e, t, a, s) => {
1739
1774
  const {
1740
1775
  jsonPathLabel: E,
1741
1776
  jsonPathOptions: D,
1742
- jsonPathValue: T,
1777
+ jsonPathValue: q,
1743
1778
  jsonPathPagination: G
1744
- } = o, U = pe(
1745
- o,
1779
+ } = c, U = pe(
1780
+ c,
1746
1781
  w,
1747
1782
  j
1748
1783
  ), re = await f(
1749
1784
  U,
1750
1785
  e,
1751
1786
  !1
1752
- ), oe = re == null ? void 0 : re.data, He = oe ? es(
1787
+ ), oe = re == null ? void 0 : re.data, Xe = oe ? as(
1753
1788
  oe,
1754
1789
  D,
1755
1790
  E,
1756
- T
1757
- ) : [], { hasMore: Xe } = ts(
1791
+ q
1792
+ ) : [], { hasMore: We } = rs(
1758
1793
  oe,
1759
1794
  w,
1760
1795
  G
1761
1796
  );
1762
1797
  return {
1763
- options: He,
1764
- hasMore: Xe,
1798
+ options: Xe,
1799
+ hasMore: We,
1765
1800
  additional: {
1766
1801
  page: j ? 1 : w + 1
1767
1802
  }
1768
1803
  };
1769
1804
  };
1770
- return /* @__PURE__ */ i.jsx(
1771
- ct,
1805
+ return /* @__PURE__ */ o.jsx(
1806
+ lt,
1772
1807
  {
1773
1808
  ...r,
1774
- className: Je.selectNotFront,
1809
+ className: Ve.selectNotFront,
1775
1810
  label: x,
1776
1811
  value: _,
1777
1812
  disabled: m,
1778
- noOptionsMessage: () => /* @__PURE__ */ i.jsx(i.Fragment, { children: "Sin opciones" }),
1813
+ noOptionsMessage: () => /* @__PURE__ */ o.jsx(o.Fragment, { children: "Sin opciones" }),
1779
1814
  onChange: (j) => !m && p(j),
1780
1815
  loadOptions: N,
1781
1816
  additional: { page: 1 },
@@ -1786,77 +1821,77 @@ const es = (e, t, a, s) => {
1786
1821
  debounceTimeout: 350
1787
1822
  }
1788
1823
  );
1789
- }, as = ({
1824
+ }, is = ({
1790
1825
  userFlow: e,
1791
1826
  pageId: t,
1792
1827
  responseKey: a,
1793
1828
  dataSource: s,
1794
- required: o,
1795
- actionType: c,
1829
+ required: c,
1830
+ actionType: i,
1796
1831
  dependencies: l,
1797
1832
  debounceMs: n,
1798
1833
  ...d
1799
1834
  }) => {
1800
1835
  const r = {
1801
1836
  ...d
1802
- }, { getNextUI: u } = B(), [f, _] = O(r.value || ""), { disabled: h } = z(
1837
+ }, { getNextUI: u } = I(), [f, _] = T(r.value || ""), { disabled: h } = B(
1803
1838
  e,
1804
1839
  l
1805
- ), b = (r == null ? void 0 : r.disabled) ?? h, m = k(() => o && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, o]), x = Ue({
1840
+ ), b = (r == null ? void 0 : r.disabled) ?? h, m = $(() => c && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, c]), x = Je({
1806
1841
  userFlow: e,
1807
1842
  pageId: t,
1808
1843
  responseKey: a,
1809
- actionType: c,
1844
+ actionType: i,
1810
1845
  getNextUI: u,
1811
1846
  isMulti: r == null ? void 0 : r.isMulti,
1812
1847
  debounceMs: n
1813
1848
  }), y = (g) => {
1814
1849
  _(g), x(g);
1815
1850
  };
1816
- return /* @__PURE__ */ i.jsx(
1817
- it,
1851
+ return /* @__PURE__ */ o.jsx(
1852
+ dt,
1818
1853
  {
1819
1854
  ...r,
1820
- className: Je.selectNotFront,
1855
+ className: Ve.selectNotFront,
1821
1856
  label: m,
1822
1857
  value: f,
1823
1858
  disabled: b,
1824
1859
  onChange: (g) => !b && y(g)
1825
1860
  }
1826
1861
  );
1827
- }, rs = (e) => {
1862
+ }, ls = (e) => {
1828
1863
  const { dataSource: t } = e;
1829
- return t ? /* @__PURE__ */ i.jsx(ss, { ...e }) : /* @__PURE__ */ i.jsx(as, { ...e });
1830
- }, os = "_spacing_19hqa_1", cs = "_spacing__xxs_19hqa_1", is = "_spacing__xs_19hqa_4", ls = "_spacing__sm_19hqa_7", ds = "_spacing__md_19hqa_10", _s = "_spacing__lg_19hqa_13", us = "_spacing__xl_19hqa_16", hs = "_spacing__xxl_19hqa_19", fs = "_spacing__xxxl_19hqa_22", $e = {
1831
- spacing: os,
1832
- spacing__xxs: cs,
1833
- spacing__xs: is,
1834
- spacing__sm: ls,
1835
- spacing__md: ds,
1836
- spacing__lg: _s,
1837
- spacing__xl: us,
1838
- spacing__xxl: hs,
1839
- spacing__xxxl: fs
1840
- }, ms = (e) => {
1841
- const { size: t } = e, a = ee($e.spacing, $e[`spacing__${t}`]);
1842
- return /* @__PURE__ */ i.jsx("div", { className: a });
1843
- }, ys = (e) => {
1864
+ return t ? /* @__PURE__ */ o.jsx(cs, { ...e }) : /* @__PURE__ */ o.jsx(is, { ...e });
1865
+ }, ds = "_spacing_19hqa_1", _s = "_spacing__xxs_19hqa_1", us = "_spacing__xs_19hqa_4", hs = "_spacing__sm_19hqa_7", fs = "_spacing__md_19hqa_10", ms = "_spacing__lg_19hqa_13", ys = "_spacing__xl_19hqa_16", xs = "_spacing__xxl_19hqa_19", gs = "_spacing__xxxl_19hqa_22", Re = {
1866
+ spacing: ds,
1867
+ spacing__xxs: _s,
1868
+ spacing__xs: us,
1869
+ spacing__sm: hs,
1870
+ spacing__md: fs,
1871
+ spacing__lg: ms,
1872
+ spacing__xl: ys,
1873
+ spacing__xxl: xs,
1874
+ spacing__xxxl: gs
1875
+ }, ps = (e) => {
1876
+ const { size: t } = e, a = ee(Re.spacing, Re[`spacing__${t}`]);
1877
+ return /* @__PURE__ */ o.jsx("div", { className: a });
1878
+ }, bs = (e) => {
1844
1879
  const {
1845
1880
  userFlow: t,
1846
1881
  pageId: a,
1847
1882
  responseKey: s,
1848
- actionType: o,
1849
- label: c,
1883
+ actionType: c,
1884
+ label: i,
1850
1885
  value: l,
1851
1886
  required: n,
1852
1887
  dependencies: d,
1853
1888
  ...r
1854
1889
  } = e, u = {
1855
1890
  ...r
1856
- }, { getNextUI: f } = B(), [_, h] = O(l || !1), { disabled: b } = z(
1891
+ }, { getNextUI: f } = I(), [_, h] = T(l || !1), { disabled: b } = B(
1857
1892
  t,
1858
1893
  d
1859
- ), m = (u == null ? void 0 : u.disabled) ?? b, x = k(() => n && c ? `${c} *` : c ?? "", [c, n]), y = $(async () => {
1894
+ ), m = (u == null ? void 0 : u.disabled) ?? b, x = $(() => n && i ? `${i} *` : i ?? "", [i, n]), y = R(async () => {
1860
1895
  var g;
1861
1896
  try {
1862
1897
  const p = !_;
@@ -1865,7 +1900,7 @@ const es = (e, t, a, s) => {
1865
1900
  ...(g = v.getState()[t]) == null ? void 0 : g.entries,
1866
1901
  [s]: p
1867
1902
  };
1868
- switch (R(t, N), o) {
1903
+ switch (O(t, N), c) {
1869
1904
  case "GO_TO_NEXT_UI":
1870
1905
  const j = await f(
1871
1906
  t,
@@ -1876,15 +1911,15 @@ const es = (e, t, a, s) => {
1876
1911
  j != null && j.data && A(t, j == null ? void 0 : j.data);
1877
1912
  break;
1878
1913
  default:
1879
- console.warn(`Unhandled actionType: ${o}`);
1914
+ console.warn(`Unhandled actionType: ${c}`);
1880
1915
  break;
1881
1916
  }
1882
1917
  } catch (p) {
1883
1918
  console.error("Error in switch action:", p), alert(JSON.stringify(p));
1884
1919
  }
1885
- }, [t, a, s, o, _]);
1886
- return /* @__PURE__ */ i.jsx(
1887
- lt,
1920
+ }, [t, a, s, c, _]);
1921
+ return /* @__PURE__ */ o.jsx(
1922
+ _t,
1888
1923
  {
1889
1924
  ...u,
1890
1925
  label: x,
@@ -1893,26 +1928,26 @@ const es = (e, t, a, s) => {
1893
1928
  onChange: () => !m && y()
1894
1929
  }
1895
1930
  );
1896
- }, xs = "_tableSkeleton_3nr9n_1", gs = "_tableArrayPills_3nr9n_7", Ve = {
1897
- tableSkeleton: xs,
1898
- tableArrayPills: gs
1899
- }, ps = ({ values: e }) => {
1931
+ }, js = "_tableSkeleton_3nr9n_1", ws = "_tableArrayPills_3nr9n_7", He = {
1932
+ tableSkeleton: js,
1933
+ tableArrayPills: ws
1934
+ }, Cs = ({ values: e }) => {
1900
1935
  const a = e == null ? void 0 : e.slice(0, 4), s = (e == null ? void 0 : e.length) - 4;
1901
- return /* @__PURE__ */ i.jsxs("div", { className: Ve.tableArrayPills, children: [
1902
- a.map((o, c) => /* @__PURE__ */ i.jsx(he, { children: String(o) }, c)),
1903
- s > 0 && /* @__PURE__ */ i.jsxs(he, { outlined: !0, children: [
1936
+ return /* @__PURE__ */ o.jsxs("div", { className: He.tableArrayPills, children: [
1937
+ a.map((c, i) => /* @__PURE__ */ o.jsx(he, { children: String(c) }, i)),
1938
+ s > 0 && /* @__PURE__ */ o.jsxs(he, { outlined: !0, children: [
1904
1939
  "+",
1905
1940
  s
1906
1941
  ] })
1907
1942
  ] });
1908
- }, bs = ({
1943
+ }, Ns = ({
1909
1944
  userFlow: e,
1910
1945
  pageId: t,
1911
1946
  tableResponseKey: a,
1912
1947
  component: s,
1913
- rowData: o
1948
+ rowData: c
1914
1949
  }) => {
1915
- const { getNextUI: c, fetchAndGetNextUI: l, fetchDataSource: n } = B(), d = S(e, t, [
1950
+ const { getNextUI: i, fetchAndGetNextUI: l, fetchDataSource: n } = I(), d = S(e, t, [
1916
1951
  { ...s }
1917
1952
  ]), r = (d == null ? void 0 : d[0]) || null;
1918
1953
  if (!r) return null;
@@ -1920,17 +1955,17 @@ const es = (e, t, a, s) => {
1920
1955
  actionType: u,
1921
1956
  responseKey: f,
1922
1957
  dataSource: _
1923
- } = r.props, h = $(async () => {
1958
+ } = r.props, h = R(async () => {
1924
1959
  var b, m, x;
1925
1960
  try {
1926
1961
  const y = {
1927
1962
  ...(b = v.getState()[e]) == null ? void 0 : b.entries,
1928
1963
  [f]: { status: 200 },
1929
- [a]: [{ ...o }]
1964
+ [a]: [{ ...c }]
1930
1965
  };
1931
- switch (R(e, y), u) {
1966
+ switch (O(e, y), u) {
1932
1967
  case "GO_TO_NEXT_UI": {
1933
- const g = await c(
1968
+ const g = await i(
1934
1969
  e,
1935
1970
  t,
1936
1971
  y,
@@ -1951,7 +1986,7 @@ const es = (e, t, a, s) => {
1951
1986
  break;
1952
1987
  }
1953
1988
  case "GET_DATA_SOURCE": {
1954
- const g = await c(
1989
+ const g = await i(
1955
1990
  e,
1956
1991
  t,
1957
1992
  y,
@@ -1970,8 +2005,8 @@ const es = (e, t, a, s) => {
1970
2005
  content: j == null ? void 0 : j.data
1971
2006
  }
1972
2007
  };
1973
- R(e, C);
1974
- const w = await c(
2008
+ O(e, C);
2009
+ const w = await i(
1975
2010
  e,
1976
2011
  t,
1977
2012
  C,
@@ -1988,32 +2023,32 @@ const es = (e, t, a, s) => {
1988
2023
  alert(JSON.stringify(y));
1989
2024
  }
1990
2025
  }, [u, _, t, f, e]);
1991
- return Ze(r, {
2026
+ return Fe(r, {
1992
2027
  onClick: h
1993
2028
  });
1994
- }, js = () => /* @__PURE__ */ i.jsx("div", { className: Ve.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ i.jsx(
1995
- Ie,
2029
+ }, vs = () => /* @__PURE__ */ o.jsx("div", { className: He.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ o.jsx(
2030
+ Ke,
1996
2031
  {
1997
2032
  maxWidth: "100%",
1998
2033
  height: 42,
1999
2034
  radius: 8
2000
2035
  },
2001
2036
  `tableSkeletonBase${t}`
2002
- )) }), ws = ({
2037
+ )) }), Ss = ({
2003
2038
  userFlow: e,
2004
2039
  pageId: t,
2005
2040
  responseKey: a,
2006
2041
  component: s,
2007
- dataSource: o,
2008
- rightActions: c,
2042
+ dataSource: c,
2043
+ rightActions: i,
2009
2044
  ...l
2010
2045
  }) => {
2011
2046
  var p, N, j;
2012
- const { fetchDataSource: n } = B(), [d, r] = O(!1), [u, f] = O(1), [_, h] = O(null), b = k(() => {
2013
- if (c != null && c.length)
2014
- return c.map((C, w) => ({
2015
- renderContent: (E) => /* @__PURE__ */ i.jsx(
2016
- bs,
2047
+ const { fetchDataSource: n } = I(), [d, r] = T(!1), [u, f] = T(1), [_, h] = T(null), b = $(() => {
2048
+ if (i != null && i.length)
2049
+ return i.map((C, w) => ({
2050
+ renderContent: (E) => /* @__PURE__ */ o.jsx(
2051
+ Ns,
2017
2052
  {
2018
2053
  userFlow: e,
2019
2054
  pageId: t,
@@ -2024,19 +2059,19 @@ const es = (e, t, a, s) => {
2024
2059
  `tableRowAction${w}`
2025
2060
  )
2026
2061
  }));
2027
- }, [c, e, t]), m = async (C = 1) => {
2062
+ }, [i, e, t]), m = async (C = 1) => {
2028
2063
  try {
2029
2064
  r(!0);
2030
- const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = o, T = pe(
2031
- o,
2065
+ const { jsonPathData: w, mapperData: E, jsonPathPagination: D } = c, q = pe(
2066
+ c,
2032
2067
  C
2033
2068
  ), G = await n(
2034
- T,
2069
+ q,
2035
2070
  e,
2036
2071
  !1
2037
2072
  );
2038
2073
  h(
2039
- Ge(
2074
+ Ue(
2040
2075
  G == null ? void 0 : G.data,
2041
2076
  w,
2042
2077
  E,
@@ -2049,18 +2084,18 @@ const es = (e, t, a, s) => {
2049
2084
  }, x = (C) => {
2050
2085
  f(C), m(C);
2051
2086
  };
2052
- K(() => {
2087
+ M(() => {
2053
2088
  m();
2054
2089
  }, []);
2055
- const y = k(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
2090
+ const y = $(() => !(_ != null && _.items) || !(l != null && l.columns) ? l == null ? void 0 : l.columns : l.columns.map((C) => {
2056
2091
  var E;
2057
2092
  return ((E = _ == null ? void 0 : _.items) == null ? void 0 : E.some(
2058
2093
  (D) => Array.isArray(C != null && C.accessor ? D[C == null ? void 0 : C.accessor] : void 0)
2059
2094
  )) ? {
2060
2095
  ...C,
2061
2096
  renderCell: (D) => {
2062
- const T = C.accessor ? D[C.accessor] : void 0;
2063
- return Array.isArray(T) ? /* @__PURE__ */ i.jsx(ps, { values: T }) : T;
2097
+ const q = C.accessor ? D[C.accessor] : void 0;
2098
+ return Array.isArray(q) ? /* @__PURE__ */ o.jsx(Cs, { values: q }) : q;
2064
2099
  }
2065
2100
  } : C;
2066
2101
  }), [_ == null ? void 0 : _.items, l == null ? void 0 : l.columns]), g = {
@@ -2069,10 +2104,10 @@ const es = (e, t, a, s) => {
2069
2104
  columns: y,
2070
2105
  rightActions: b
2071
2106
  };
2072
- return /* @__PURE__ */ i.jsx(i.Fragment, { children: d ? /* @__PURE__ */ i.jsx(js, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2073
- /* @__PURE__ */ i.jsx(dt, { ...g }),
2074
- (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ i.jsx(
2075
- _t,
2107
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: d ? /* @__PURE__ */ o.jsx(vs, {}) : _ && ((p = _ == null ? void 0 : _.items) == null ? void 0 : p.length) > 0 ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2108
+ /* @__PURE__ */ o.jsx(ut, { ...g }),
2109
+ (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ o.jsx(
2110
+ ht,
2076
2111
  {
2077
2112
  classname: { global: "row__end" },
2078
2113
  page: u,
@@ -2081,74 +2116,83 @@ const es = (e, t, a, s) => {
2081
2116
  onChange: x
2082
2117
  }
2083
2118
  )
2084
- ] }) : /* @__PURE__ */ i.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
2085
- }, Cs = "_tabsPanel_kvslb_1", Ns = {
2086
- tabsPanel: Cs
2087
- }, vs = ({ userFlow: e, pageId: t, components: a }) => {
2119
+ ] }) : /* @__PURE__ */ o.jsx(me, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
2120
+ }, Es = "_tabsPanel_kvslb_1", ks = {
2121
+ tabsPanel: Es
2122
+ }, $s = ({ userFlow: e, pageId: t, components: a }) => {
2088
2123
  const s = S(e, t, a);
2089
- return s != null && s.length ? /* @__PURE__ */ i.jsx("section", { className: Ns.tabsPanel, children: s.map((o, c) => /* @__PURE__ */ i.jsx(q, { children: o }, `tabs-panel-${c}`)) }) : null;
2090
- }, Es = ({
2124
+ return s != null && s.length ? /* @__PURE__ */ o.jsx("section", { className: ks.tabsPanel, children: s.map((c, i) => /* @__PURE__ */ o.jsx(k, { children: c }, `tabs-panel-${i}`)) }) : null;
2125
+ }, qs = ({
2091
2126
  userFlow: e,
2092
2127
  pageId: t,
2093
2128
  hash: a,
2094
2129
  items: s,
2095
- activeIndex: o,
2096
- className: c
2130
+ activeIndex: c,
2131
+ className: i,
2132
+ responseKey: l
2097
2133
  }) => {
2098
- const l = s.map((n, d) => ({
2099
- label: n.label,
2100
- disabled: n.disabled,
2101
- children: /* @__PURE__ */ i.jsx(
2102
- vs,
2134
+ const n = s.map((r, u) => ({
2135
+ label: r.label,
2136
+ disabled: r.disabled,
2137
+ children: /* @__PURE__ */ o.jsx(
2138
+ $s,
2103
2139
  {
2104
2140
  userFlow: e,
2105
2141
  pageId: t,
2106
- components: n.components
2142
+ components: r.components
2107
2143
  },
2108
- `${a}-tab-${d}`
2144
+ `${a}-tab-${u}`
2109
2145
  )
2110
- }));
2111
- return /* @__PURE__ */ i.jsx(
2112
- ut,
2146
+ })), d = (r) => {
2147
+ var f;
2148
+ const u = {
2149
+ ...(f = v.getState()[e]) == null ? void 0 : f.entries,
2150
+ [l]: r
2151
+ };
2152
+ O(e, u);
2153
+ };
2154
+ return /* @__PURE__ */ o.jsx(
2155
+ ft,
2113
2156
  {
2114
- className: c,
2115
- activeIndex: o,
2116
- items: l
2157
+ className: i,
2158
+ activeIndex: c,
2159
+ items: n,
2160
+ onClick: d
2117
2161
  }
2118
2162
  );
2119
- }, Ss = "_textFieldNotFront_cps4i_1", ks = {
2120
- textFieldNotFront: Ss
2121
- }, qs = (e) => {
2163
+ }, Ts = "_textFieldNotFront_cps4i_1", As = {
2164
+ textFieldNotFront: Ts
2165
+ }, Os = (e) => {
2122
2166
  const {
2123
2167
  userFlow: t,
2124
2168
  pageId: a,
2125
2169
  component: s,
2126
- hash: o,
2127
- responseKey: c,
2170
+ hash: c,
2171
+ responseKey: i,
2128
2172
  required: l,
2129
2173
  dependencies: n,
2130
2174
  ...d
2131
2175
  } = e, r = {
2132
2176
  ...d
2133
- }, [u, f] = O((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = z(
2177
+ }, [u, f] = T((r == null ? void 0 : r.value) ?? ""), { disabled: _ } = B(
2134
2178
  t,
2135
2179
  n
2136
- ), h = (r == null ? void 0 : r.disabled) ?? _, b = k(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (x) => {
2180
+ ), h = (r == null ? void 0 : r.disabled) ?? _, b = $(() => l && (r != null && r.label) ? `${r == null ? void 0 : r.label} *` : (r == null ? void 0 : r.label) ?? "", [r == null ? void 0 : r.label, l]), m = (x) => {
2137
2181
  var p;
2138
2182
  const y = (p = x == null ? void 0 : x.target) == null ? void 0 : p.value;
2139
2183
  f(y);
2140
2184
  const g = {
2141
- [c]: y
2185
+ [i]: y
2142
2186
  };
2143
- R(t, g);
2187
+ O(t, g);
2144
2188
  };
2145
- return K(() => {
2189
+ return M(() => {
2146
2190
  f((r == null ? void 0 : r.value) ?? "");
2147
- }, [r == null ? void 0 : r.value]), /* @__PURE__ */ i.jsx(
2148
- ht,
2191
+ }, [r == null ? void 0 : r.value]), /* @__PURE__ */ o.jsx(
2192
+ mt,
2149
2193
  {
2150
2194
  ...r,
2151
- className: ks.textFieldNotFront,
2195
+ className: As.textFieldNotFront,
2152
2196
  allowClear: !1,
2153
2197
  label: b,
2154
2198
  value: u,
@@ -2156,61 +2200,61 @@ const es = (e, t, a, s) => {
2156
2200
  onChange: (x) => !h && m(x)
2157
2201
  }
2158
2202
  );
2159
- }, Ts = ({
2203
+ }, Rs = ({
2160
2204
  userFlow: e,
2161
2205
  pageId: t,
2162
2206
  responseKey: a,
2163
2207
  variant: s,
2164
- content: o,
2165
- actionType: c,
2208
+ content: c,
2209
+ actionType: i,
2166
2210
  redirectUrl: l
2167
2211
  }) => {
2168
- const n = $(async () => {
2212
+ const n = R(async () => {
2169
2213
  xe(e);
2170
2214
  try {
2171
- switch (c) {
2215
+ switch (i) {
2172
2216
  case "AUTOCLOSE_AND_REDIRECT":
2173
2217
  window.location.href = l;
2174
2218
  break;
2175
2219
  default:
2176
- console.warn(`Unhandled actionType: ${c}`);
2220
+ console.warn(`Unhandled actionType: ${i}`);
2177
2221
  break;
2178
2222
  }
2179
2223
  } catch (d) {
2180
2224
  console.error("Error in toast action:", d), alert(JSON.stringify(d));
2181
2225
  }
2182
- }, [c, t, a, e, l]);
2183
- return K(() => {
2226
+ }, [i, t, a, e, l]);
2227
+ return M(() => {
2184
2228
  ({
2185
2229
  info: W.info,
2186
2230
  error: W.error,
2187
2231
  success: W.success,
2188
2232
  warning: W.warning
2189
- }[s] || W.info)(o, {
2190
- autoClose: c ? !1 : 4e3,
2233
+ }[s] || W.info)(c, {
2234
+ autoClose: i ? !1 : 4e3,
2191
2235
  containerId: e,
2192
2236
  onClose: n
2193
2237
  });
2194
2238
  }, [n, e]), null;
2195
- }, Os = "_accordion_1ri2t_1", As = "_accordionBody_1ri2t_8", Re = {
2196
- accordion: Os,
2197
- accordionBody: As
2198
- }, $s = (e) => {
2239
+ }, Ds = "_accordion_1ri2t_1", Ls = "_accordionBody_1ri2t_8", De = {
2240
+ accordion: Ds,
2241
+ accordionBody: Ls
2242
+ }, Bs = (e) => {
2199
2243
  const {
2200
2244
  userFlow: t,
2201
2245
  pageId: a,
2202
2246
  responseKey: s,
2203
- dependencies: o,
2204
- customContent: c,
2247
+ dependencies: c,
2248
+ customContent: i,
2205
2249
  actionContent: l,
2206
2250
  components: n,
2207
2251
  ...d
2208
- } = e, { getNextUI: r } = B(), [u, f] = O(
2252
+ } = e, { getNextUI: r } = I(), [u, f] = T(
2209
2253
  d.checkboxChecked || !1
2210
- ), { disabled: _ } = z(
2254
+ ), { disabled: _ } = B(
2211
2255
  t,
2212
- o
2213
- ), h = S(t, a, n), b = l ? S(t, a, l) : void 0, m = c ? S(t, a, c) : void 0, x = $(
2256
+ c
2257
+ ), h = S(t, a, n), b = l ? S(t, a, l) : void 0, m = i ? S(t, a, i) : void 0, x = R(
2214
2258
  async (p) => {
2215
2259
  var N;
2216
2260
  try {
@@ -2220,7 +2264,7 @@ const es = (e, t, a, s) => {
2220
2264
  ...(N = v.getState()[t]) == null ? void 0 : N.entries,
2221
2265
  [s]: j
2222
2266
  };
2223
- if (R(t, C), d.actionType === "GO_TO_NEXT_UI") {
2267
+ if (O(t, C), d.actionType === "GO_TO_NEXT_UI") {
2224
2268
  const w = await r(
2225
2269
  t,
2226
2270
  a,
@@ -2236,26 +2280,26 @@ const es = (e, t, a, s) => {
2236
2280
  [t, a, s, d.actionType, r]
2237
2281
  ), y = d.disabled || _, g = {
2238
2282
  ...d,
2239
- className: Re.accordion,
2283
+ className: De.accordion,
2240
2284
  disabled: y,
2241
2285
  checkboxChecked: u,
2242
2286
  onChanceCheckbox: d.hasCheckbox ? x : void 0,
2243
- actionContent: b ? /* @__PURE__ */ i.jsx(i.Fragment, { children: b.map((p, N) => /* @__PURE__ */ i.jsx(q, { children: p }, `accordion-action-${N}`)) }) : void 0,
2244
- customContent: m ? /* @__PURE__ */ i.jsx(i.Fragment, { children: m.map((p, N) => /* @__PURE__ */ i.jsx(q, { children: p }, `accordion-custom-${N}`)) }) : void 0,
2245
- children: h ? /* @__PURE__ */ i.jsx("section", { className: Re.accordionBody, children: h.map((p, N) => /* @__PURE__ */ i.jsx(q, { children: p }, `accordion-child-${N}`)) }) : void 0
2287
+ actionContent: b ? /* @__PURE__ */ o.jsx(o.Fragment, { children: b.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-action-${N}`)) }) : void 0,
2288
+ customContent: m ? /* @__PURE__ */ o.jsx(o.Fragment, { children: m.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-custom-${N}`)) }) : void 0,
2289
+ children: h ? /* @__PURE__ */ o.jsx("section", { className: De.accordionBody, children: h.map((p, N) => /* @__PURE__ */ o.jsx(k, { children: p }, `accordion-child-${N}`)) }) : void 0
2246
2290
  };
2247
- return /* @__PURE__ */ i.jsx(ft, { ...g });
2248
- }, Rs = "_drawer_13pxo_1", Ds = "_drawerBody_13pxo_5", Ls = "_drawerFooter_13pxo_11", ue = {
2249
- drawer: Rs,
2250
- drawerBody: Ds,
2251
- drawerFooter: Ls
2252
- }, Bs = ({
2291
+ return /* @__PURE__ */ o.jsx(yt, { ...g });
2292
+ }, Is = "_drawer_13pxo_1", Ks = "_drawerBody_13pxo_5", zs = "_drawerFooter_13pxo_11", ue = {
2293
+ drawer: Is,
2294
+ drawerBody: Ks,
2295
+ drawerFooter: zs
2296
+ }, Ms = ({
2253
2297
  userFlow: e,
2254
2298
  pageId: t,
2255
2299
  responseKey: a,
2256
2300
  header: s,
2257
- body: o,
2258
- footer: c,
2301
+ body: c,
2302
+ footer: i,
2259
2303
  ...l
2260
2304
  }) => {
2261
2305
  const n = v((m) => {
@@ -2268,123 +2312,123 @@ const es = (e, t, a, s) => {
2268
2312
  ...l,
2269
2313
  isOpen: r,
2270
2314
  children: null
2271
- }, f = $(() => {
2315
+ }, f = R(() => {
2272
2316
  xe(e), Z(e, !1);
2273
- }, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ i.jsx(Le, { type: "h2", children: s }) : void 0, h = S(e, t, o), b = c ? S(e, t, c) : void 0;
2274
- return /* @__PURE__ */ i.jsx(
2275
- mt,
2317
+ }, [e]), _ = Array.isArray(s) ? S(e, t, s) : s ? /* @__PURE__ */ o.jsx(Be, { type: "h2", children: s }) : void 0, h = S(e, t, c), b = i ? S(e, t, i) : void 0;
2318
+ return /* @__PURE__ */ o.jsx(
2319
+ xt,
2276
2320
  {
2277
2321
  ...u,
2278
2322
  className: ue.drawer,
2279
2323
  isOpen: r,
2280
2324
  onClose: f,
2281
2325
  heightGap: 0,
2282
- title: _ ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ i.jsx(q, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
2283
- children: /* @__PURE__ */ i.jsx("section", { className: ue.drawerBody, children: h.map((m, x) => /* @__PURE__ */ i.jsx(q, { children: m }, `drawer-body-${x}`)) }),
2284
- footer: b ? /* @__PURE__ */ i.jsx("div", { className: ue.drawerFooter, children: b.map((m, x) => /* @__PURE__ */ i.jsx(q, { children: m }, `drawer-footer-${x}`)) }) : void 0
2326
+ title: _ ? /* @__PURE__ */ o.jsx(o.Fragment, { children: Array.isArray(_) ? _.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-header-${x}`)) : _ }) : void 0,
2327
+ children: /* @__PURE__ */ o.jsx("section", { className: ue.drawerBody, children: h.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-body-${x}`)) }),
2328
+ footer: b ? /* @__PURE__ */ o.jsx("div", { className: ue.drawerFooter, children: b.map((m, x) => /* @__PURE__ */ o.jsx(k, { children: m }, `drawer-footer-${x}`)) }) : void 0
2285
2329
  }
2286
2330
  );
2287
2331
  };
2288
- function Fs({
2332
+ function na({
2289
2333
  routes: e,
2290
2334
  renderPage: t,
2291
2335
  renderFallback: a,
2292
2336
  redirectTo: s = "/"
2293
2337
  }) {
2294
- return /* @__PURE__ */ i.jsxs(It, { children: [
2295
- e.map((o) => /* @__PURE__ */ i.jsx(
2338
+ return /* @__PURE__ */ o.jsxs(zt, { children: [
2339
+ e.map((c) => /* @__PURE__ */ o.jsx(
2296
2340
  Ce,
2297
2341
  {
2298
- path: o.path,
2299
- element: o.canAccess ? t(o.sessionName) : (a == null ? void 0 : a()) ?? null
2342
+ path: c.path,
2343
+ element: c.canAccess ? t(c.sessionName) : (a == null ? void 0 : a()) ?? null
2300
2344
  },
2301
- `${o.path}:${o.sessionName}`
2345
+ `${c.path}:${c.sessionName}`
2302
2346
  )),
2303
- /* @__PURE__ */ i.jsx(Ce, { path: "*", element: /* @__PURE__ */ i.jsx(zt, { to: s, replace: !0 }) })
2347
+ /* @__PURE__ */ o.jsx(Ce, { path: "*", element: /* @__PURE__ */ o.jsx(Mt, { to: s, replace: !0 }) })
2304
2348
  ] });
2305
2349
  }
2306
- function Ps({
2350
+ function sa({
2307
2351
  sessionName: e,
2308
2352
  apiConfig: t,
2309
2353
  onResolveComponentProps: a,
2310
2354
  children: s
2311
2355
  }) {
2312
- const o = Is(
2356
+ const c = Gs(
2313
2357
  e,
2314
2358
  t,
2315
2359
  null,
2316
2360
  a
2317
2361
  );
2318
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2319
- o,
2362
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2363
+ c,
2320
2364
  s
2321
2365
  ] });
2322
2366
  }
2323
- const De = (e, t, a, s, o) => {
2324
- const c = S(
2367
+ const Le = (e, t, a, s, c) => {
2368
+ const i = S(
2325
2369
  e,
2326
2370
  t,
2327
2371
  (s == null ? void 0 : s.components) || null,
2328
- o
2372
+ c
2329
2373
  );
2330
2374
  switch (a) {
2331
2375
  case "body":
2332
- return /* @__PURE__ */ i.jsx(
2333
- on,
2376
+ return /* @__PURE__ */ o.jsx(
2377
+ ln,
2334
2378
  {
2335
2379
  ...s,
2336
- inputs: c || []
2380
+ inputs: i || []
2337
2381
  },
2338
2382
  JSON.stringify(s == null ? void 0 : s.components)
2339
2383
  );
2340
2384
  case "header":
2341
- return /* @__PURE__ */ i.jsx(
2342
- Kn,
2385
+ return /* @__PURE__ */ o.jsx(
2386
+ Vn,
2343
2387
  {
2344
2388
  ...s,
2345
- components: c || []
2389
+ components: i || []
2346
2390
  },
2347
2391
  JSON.stringify(s == null ? void 0 : s.components)
2348
2392
  );
2349
2393
  default:
2350
2394
  return null;
2351
2395
  }
2352
- }, Is = (e, t, a, s) => {
2396
+ }, Gs = (e, t, a, s) => {
2353
2397
  var _, h, b;
2354
- const [o, c] = O(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? De(
2398
+ const [c, i] = T(!1), l = v((m) => m), n = (_ = l[e]) == null ? void 0 : _.currentPageId, d = n ? Le(
2355
2399
  e,
2356
2400
  n,
2357
2401
  "header",
2358
2402
  ((h = l[e].pages[n].page) == null ? void 0 : h.header) || null,
2359
2403
  s
2360
- ) : null, r = n ? De(
2404
+ ) : null, r = n ? Le(
2361
2405
  e,
2362
2406
  n,
2363
2407
  "body",
2364
2408
  ((b = l[e].pages[n].page) == null ? void 0 : b.body) || null,
2365
2409
  s
2366
- ) : null, u = k(() => {
2410
+ ) : null, u = $(() => {
2367
2411
  var m;
2368
- return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
2369
- ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ i.jsx(yt, {}),
2412
+ return /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
2413
+ ((m = l[e]) == null ? void 0 : m.isLoading) && /* @__PURE__ */ o.jsx(gt, {}),
2370
2414
  d,
2371
2415
  r,
2372
- n && /* @__PURE__ */ i.jsx(Hn, { userFlow: e, pageId: n }),
2373
- l[e] && /* @__PURE__ */ i.jsx(xt, {})
2416
+ n && /* @__PURE__ */ o.jsx(Yn, { userFlow: e, pageId: n }),
2417
+ l[e] && /* @__PURE__ */ o.jsx(pt, {})
2374
2418
  ] });
2375
2419
  }, [d, r, n, e]), f = async () => {
2376
2420
  try {
2377
- const m = await Ke(
2421
+ const m = await Ge(
2378
2422
  t,
2379
2423
  e
2380
2424
  ), x = m == null ? void 0 : m.data, y = x == null ? void 0 : x.content;
2381
- (m == null ? void 0 : m.status) === 200 ? ce(e, t, y, x == null ? void 0 : x.sessionState) : c(!0);
2425
+ (m == null ? void 0 : m.status) === 200 ? ce(e, t, y, x == null ? void 0 : x.sessionState) : i(!0);
2382
2426
  } catch (m) {
2383
- console.error("[not-page]: API call failed", m), c(!0);
2427
+ console.error("[not-page]: API call failed", m), i(!0);
2384
2428
  }
2385
2429
  };
2386
- return K(() => {
2387
- t != null && t.api && !a && e ? f() : !(t != null && t.api) && a && e || t != null && t.api && a && e ? ce(e, t, a) : (!(t != null && t.api) && !a || !e) && (c(!0), console.error(
2430
+ return M(() => {
2431
+ t != null && t.api && !a && e ? f() : !(t != null && t.api) && a && e || t != null && t.api && a && e ? ce(e, t, a) : (!(t != null && t.api) && !a || !e) && (i(!0), console.error(
2388
2432
  "[not-page]: API call failed",
2389
2433
  "not api config",
2390
2434
  "not userFlow"
@@ -2396,14 +2440,14 @@ const De = (e, t, a, s, o) => {
2396
2440
  return window.addEventListener(m, x), () => {
2397
2441
  window.removeEventListener(m, x);
2398
2442
  };
2399
- }, []), o && console.error("[not-page]: No render page"), u;
2443
+ }, []), c && console.error("[not-page]: No render page"), u;
2400
2444
  };
2401
2445
  export {
2402
- In as Chart,
2403
- Fs as NotFrontDynamicRouter,
2404
- Ps as NotFrontPage,
2405
- Pn as Row,
2406
- Qt as heading,
2407
- Yt as text,
2408
- Is as usePage
2446
+ Gn as Chart,
2447
+ na as NotFrontDynamicRouter,
2448
+ sa as NotFrontPage,
2449
+ ss as Row,
2450
+ Zt as heading,
2451
+ Ft as text,
2452
+ Gs as usePage
2409
2453
  };