@foris/avocado-not-front 2.0.2 → 2.0.3

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,16 +1,16 @@
1
- import V from "axios";
2
- import { create as Ue } from "zustand";
3
- import Ve, { useEffect as J, useMemo as O, useState as q, Fragment as $, useCallback as D, useRef as Je, cloneElement as He } from "react";
4
- import { Heading as Ae, Text as Xe, ThemeStore as ue, Breadcrumbs as We, Button as Qe, CardNotification as he, Checkbox as Ye, PreviewerMarkdown as Ze, Divider as Fe, SkeletonBase as Oe, Modal as Pe, Pill as de, RoundButton as et, SelectPagination as tt, Select as nt, Switch as rt, Table as st, Pager as at, TextField as ot, toast as W, Accordion as ct, Drawer as it, Loading as lt, Toaster as dt } from "@foris/avocado-suite";
5
- import { SummaryCard as _t, PromptCodeEditor as ut } from "@foris/ai-agent";
6
- import ht from "@uiw/react-codemirror";
7
- import { json as be } from "@codemirror/lang-json";
8
- import { markdown as ft } from "@codemirror/lang-markdown";
9
- import { sql as yt } from "@codemirror/lang-sql";
10
- import { yaml as mt } from "@codemirror/lang-yaml";
1
+ import J from "axios";
2
+ import { create as Ve } from "zustand";
3
+ import He, { useEffect as V, useMemo as O, useState as q, Fragment as $, useCallback as D, useRef as Xe, cloneElement as We } from "react";
4
+ import { Heading as Re, Text as Qe, ThemeStore as fe, Breadcrumbs as Ye, Button as Ze, CardNotification as ye, Checkbox as Fe, PreviewerMarkdown as Pe, Divider as et, SkeletonBase as De, Modal as tt, Pill as ue, RoundButton as nt, SelectPagination as rt, Select as st, Switch as at, Table as ot, Pager as ct, TextField as it, toast as W, Accordion as lt, Drawer as dt, Loading as _t, Toaster as ut } from "@foris/avocado-suite";
5
+ import { SummaryCard as ht, PromptCodeEditor as ft } from "@foris/ai-agent";
6
+ import yt from "@uiw/react-codemirror";
7
+ import { json as we } from "@codemirror/lang-json";
8
+ import { markdown as mt } from "@codemirror/lang-markdown";
9
+ import { sql as xt } from "@codemirror/lang-sql";
10
+ import { yaml as gt } from "@codemirror/lang-yaml";
11
11
  import B from "jsonpath";
12
- import { Legend as xt, Tooltip as gt, XAxis as pt, YAxis as bt, ResponsiveContainer as te, AreaChart as jt, CartesianGrid as fe, Area as wt, BarChart as Ct, Bar as Nt, LineChart as vt, Line as Et, PieChart as kt, Pie as qt, Cell as St } from "recharts";
13
- const v = Ue(() => ({})), oe = (e, t, s, r) => {
12
+ import { Legend as pt, Tooltip as bt, XAxis as jt, YAxis as wt, ResponsiveContainer as te, AreaChart as Ct, CartesianGrid as me, Area as Nt, BarChart as vt, Bar as Et, LineChart as kt, Line as qt, PieChart as St, Pie as At, Cell as Ot } from "recharts";
13
+ const v = Ve(() => ({})), oe = (e, t, s, r) => {
14
14
  const l = s == null ? void 0 : s.hash, o = r && Object.keys(r).length > 0 ? { ...r } : {};
15
15
  v.setState((i) => {
16
16
  var n;
@@ -34,16 +34,16 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
34
34
  }
35
35
  };
36
36
  });
37
- }, Te = (e, t, s) => {
37
+ }, Le = (e, t, s) => {
38
38
  const r = s && Object.keys(s).length > 0 ? { ...e, ...s } : e;
39
39
  return t.length === 0 ? e : Object.fromEntries(
40
40
  Object.entries(r).filter(
41
41
  ([l]) => !t.includes(l)
42
42
  )
43
43
  );
44
- }, At = (e, t, s, r, l) => {
44
+ }, Tt = (e, t, s, r, l) => {
45
45
  sessionStorage.setItem("sessionId", s), v.setState((o) => {
46
- const i = o[e] ?? {}, n = i.entries ?? {}, d = Te(
46
+ const i = o[e] ?? {}, n = i.entries ?? {}, d = Le(
47
47
  n,
48
48
  r,
49
49
  l
@@ -65,10 +65,10 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
65
65
  }
66
66
  };
67
67
  });
68
- }, Ot = (e, t, s, r) => {
68
+ }, $t = (e, t, s, r) => {
69
69
  v.setState((l) => {
70
70
  var a;
71
- const o = l[e] ?? {}, i = o.entries ?? {}, n = Te(
71
+ const o = l[e] ?? {}, i = o.entries ?? {}, n = Le(
72
72
  i,
73
73
  s,
74
74
  r
@@ -87,7 +87,7 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
87
87
  }
88
88
  };
89
89
  });
90
- }, ye = (e) => {
90
+ }, xe = (e) => {
91
91
  v.setState((t) => ({
92
92
  ...t,
93
93
  [e]: {
@@ -95,7 +95,7 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
95
95
  overlay: null
96
96
  }
97
97
  }));
98
- }, Tt = (e) => {
98
+ }, Rt = (e) => {
99
99
  var s;
100
100
  return ((s = v.getState()[e]) == null ? void 0 : s.overlay) ?? null;
101
101
  }, S = (e, t) => {
@@ -105,13 +105,13 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
105
105
  deprecatedStateKeys: l = [],
106
106
  sessionState: o
107
107
  } = t;
108
- s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? At(
108
+ s.type !== "page" && s.type !== "overlay" || (s.type === "page" ? Tt(
109
109
  e,
110
110
  s,
111
111
  r,
112
112
  l,
113
113
  o
114
- ) : Ot(
114
+ ) : $t(
115
115
  e,
116
116
  s,
117
117
  l,
@@ -140,7 +140,7 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
140
140
  isLoading: t
141
141
  }
142
142
  }));
143
- }, me = (e, t) => {
143
+ }, ge = (e, t) => {
144
144
  v.setState((s) => ({
145
145
  ...s,
146
146
  [e]: {
@@ -156,7 +156,7 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
156
156
  isDrawerOpen: t
157
157
  }
158
158
  }));
159
- }, je = (e, t) => {
159
+ }, Ce = (e, t) => {
160
160
  v.setState((s) => {
161
161
  const r = s[e];
162
162
  return r ? {
@@ -171,16 +171,16 @@ const v = Ue(() => ({})), oe = (e, t, s, r) => {
171
171
  } : s;
172
172
  });
173
173
  };
174
- let ce = !1, P = [], we = !1;
175
- const $t = (e) => e._userFlow || null, Ce = (e) => {
174
+ let ce = !1, P = [], Ne = !1;
175
+ const Dt = (e) => e._userFlow || null, ve = (e) => {
176
176
  P.forEach(({ resolve: t, reject: s }) => {
177
177
  e ? s(e) : t(void 0);
178
178
  }), P = [];
179
- }, Rt = async (e) => {
179
+ }, Lt = async (e) => {
180
180
  var r, l;
181
181
  const t = e == null ? void 0 : e.config;
182
182
  if (((r = e == null ? void 0 : e.response) == null ? void 0 : r.status) === 401 && !t._retry) {
183
- const o = $t(t);
183
+ const o = Dt(t);
184
184
  if (o) {
185
185
  const n = (l = v.getState()[o]) == null ? void 0 : l.apiConfig;
186
186
  if (!n)
@@ -189,7 +189,7 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
189
189
  if (ce)
190
190
  return new Promise((a, u) => {
191
191
  P.push({ resolve: a, reject: u });
192
- }).then(() => V(t)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
192
+ }).then(() => J(t)).catch((a) => (console.error("[axiosInterceptors] Queued request failed:", a), Promise.reject(a)));
193
193
  t._retry = !0, ce = !0;
194
194
  try {
195
195
  let a;
@@ -199,7 +199,7 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
199
199
  a = n.headers();
200
200
  else
201
201
  throw new Error("No refresh handler available");
202
- return n.onAuthenticationError && (typeof n.headers == "string" ? je(o, JSON.stringify(a)) : je(o, a)), t.headers || (t.headers = {}), Object.assign(t.headers, a), Ce(null), V(t);
202
+ return n.onAuthenticationError && (typeof n.headers == "string" ? Ce(o, JSON.stringify(a)) : Ce(o, a)), t.headers || (t.headers = {}), Object.assign(t.headers, a), ve(null), J(t);
203
203
  } catch (a) {
204
204
  return console.error(
205
205
  "[axiosInterceptors] Token refresh failed:",
@@ -207,7 +207,7 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
207
207
  ), console.error(
208
208
  "[axiosInterceptors] Rejecting queued requests:",
209
209
  P.length
210
- ), Ce(a), Promise.reject(a);
210
+ ), ve(a), Promise.reject(a);
211
211
  } finally {
212
212
  ce = !1;
213
213
  }
@@ -222,20 +222,20 @@ const $t = (e) => e._userFlow || null, Ce = (e) => {
222
222
  );
223
223
  }
224
224
  return Promise.reject(e);
225
- }, Dt = () => {
226
- if (we) {
225
+ }, Bt = () => {
226
+ if (Ne) {
227
227
  console.debug(
228
228
  "[axiosInterceptors] Interceptors already initialized, skipping"
229
229
  );
230
230
  return;
231
231
  }
232
- console.debug("[axiosInterceptors] Initializing interceptors..."), V.interceptors.response.use(void 0, Rt), console.debug("[axiosInterceptors] Response error interceptor registered"), we = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
232
+ console.debug("[axiosInterceptors] Initializing interceptors..."), J.interceptors.response.use(void 0, Lt), console.debug("[axiosInterceptors] Response error interceptor registered"), Ne = !0, console.debug("[axiosInterceptors] Interceptors initialized successfully");
233
233
  };
234
- Dt();
235
- function Lt(e) {
234
+ Bt();
235
+ function It(e) {
236
236
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
237
237
  }
238
- var $e = { exports: {} }, Q = {};
238
+ var ie = { exports: {} }, Q = {};
239
239
  /**
240
240
  * @license React
241
241
  * react-jsx-runtime.production.min.js
@@ -245,48 +245,45 @@ var $e = { exports: {} }, Q = {};
245
245
  * This source code is licensed under the MIT license found in the
246
246
  * LICENSE file in the root directory of this source tree.
247
247
  */
248
- var Ne;
249
- function Bt() {
250
- if (Ne)
251
- return Q;
252
- Ne = 1;
253
- var e = Ve, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
248
+ var Ee;
249
+ function zt() {
250
+ if (Ee) return Q;
251
+ Ee = 1;
252
+ var e = He, t = Symbol.for("react.element"), s = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, l = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
254
253
  function i(n, d, a) {
255
254
  var u, f = {}, _ = null, h = null;
256
255
  a !== void 0 && (_ = "" + a), d.key !== void 0 && (_ = "" + d.key), d.ref !== void 0 && (h = d.ref);
257
- for (u in d)
258
- r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
259
- if (n && n.defaultProps)
260
- for (u in d = n.defaultProps, d)
261
- f[u] === void 0 && (f[u] = d[u]);
256
+ for (u in d) r.call(d, u) && !o.hasOwnProperty(u) && (f[u] = d[u]);
257
+ if (n && n.defaultProps) for (u in d = n.defaultProps, d) f[u] === void 0 && (f[u] = d[u]);
262
258
  return { $$typeof: t, type: n, key: _, ref: h, props: f, _owner: l.current };
263
259
  }
264
260
  return Q.Fragment = s, Q.jsx = i, Q.jsxs = i, Q;
265
261
  }
266
- $e.exports = Bt();
267
- var c = $e.exports;
268
- const It = (e) => {
269
- if (!(e != null && e.content))
270
- return null;
262
+ var ke;
263
+ function Mt() {
264
+ return ke || (ke = 1, ie.exports = zt()), ie.exports;
265
+ }
266
+ var c = Mt();
267
+ const Kt = (e) => {
268
+ if (!(e != null && e.content)) return null;
271
269
  const t = {
272
270
  ...e,
273
271
  children: e.content,
274
272
  type: e.variant
275
273
  };
276
- return /* @__PURE__ */ c.jsx(Ae, { ...t });
277
- }, zt = (e) => {
278
- if (!e)
279
- return null;
274
+ return /* @__PURE__ */ c.jsx(Re, { ...t });
275
+ }, Gt = (e) => {
276
+ if (!e) return null;
280
277
  const t = {
281
278
  ...e,
282
279
  children: e.content
283
280
  };
284
- return /* @__PURE__ */ c.jsx(Xe, { ...t });
285
- }, Mt = (e) => (J(() => {
281
+ return /* @__PURE__ */ c.jsx(Qe, { ...t });
282
+ }, Ut = (e) => (V(() => {
286
283
  e != null && e.chatPanelCallback && (e == null || e.chatPanelCallback(e));
287
- }, [e == null ? void 0 : e.chatPanelCallback]), null), Kt = "_summaryCard_jva4h_1", Gt = {
288
- summaryCard: Kt
289
- }, Ut = (e) => {
284
+ }, [e == null ? void 0 : e.chatPanelCallback]), null), Jt = "_summaryCard_jva4h_1", Vt = {
285
+ summaryCard: Jt
286
+ }, Ht = (e) => {
290
287
  const t = e.dataSource, s = {
291
288
  url: e.dataSource.url,
292
289
  method: e.dataSource.method,
@@ -303,8 +300,8 @@ const It = (e) => {
303
300
  Object.entries(o).filter(([, a]) => !!a)
304
301
  );
305
302
  }, [e == null ? void 0 : e.translations]);
306
- return /* @__PURE__ */ c.jsx("section", { className: Gt.summaryCard, children: /* @__PURE__ */ c.jsx(
307
- _t,
303
+ return /* @__PURE__ */ c.jsx("section", { className: Vt.summaryCard, children: /* @__PURE__ */ c.jsx(
304
+ ht,
308
305
  {
309
306
  dataSource: s,
310
307
  locale: r,
@@ -327,9 +324,9 @@ const It = (e) => {
327
324
  });
328
325
  }), r;
329
326
  }, [t, s]);
330
- }, Vt = "_promptCodeEditor_1d57s_1", Jt = {
331
- promptCodeEditor: Vt
332
- }, Ht = (e) => {
327
+ }, Xt = "_promptCodeEditor_1d57s_1", Wt = {
328
+ promptCodeEditor: Xt
329
+ }, Qt = (e) => {
333
330
  const {
334
331
  userFlow: t,
335
332
  responseKey: s,
@@ -341,7 +338,7 @@ const It = (e) => {
341
338
  inputLabel: d,
342
339
  inputPlaceholder: a,
343
340
  codeBlockLabel: u
344
- } = e, f = ue.useThemeStore((b) => b.theme.mode), [_, h] = q(
341
+ } = e, f = fe.useThemeStore((b) => b.theme.mode), [_, h] = q(
345
342
  r || ""
346
343
  ), { disabled: j } = M(
347
344
  t,
@@ -358,10 +355,10 @@ const It = (e) => {
358
355
  };
359
356
  L(t, N);
360
357
  };
361
- return J(() => {
358
+ return V(() => {
362
359
  r !== void 0 && r !== _ && h(r);
363
- }, [r]), /* @__PURE__ */ c.jsx("section", { className: Jt.promptCodeEditor, children: /* @__PURE__ */ c.jsx(
364
- ut,
360
+ }, [r]), /* @__PURE__ */ c.jsx("section", { className: Wt.promptCodeEditor, children: /* @__PURE__ */ c.jsx(
361
+ ft,
365
362
  {
366
363
  themeMode: f,
367
364
  requestConfig: m,
@@ -374,10 +371,10 @@ const It = (e) => {
374
371
  onCodeChange: g
375
372
  }
376
373
  ) });
377
- }, Xt = "_body_14tsv_1", Wt = "_body_content_14tsv_5", ve = {
378
- body: Xt,
379
- body_content: Wt
380
- }, Qt = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: ve.body, children: /* @__PURE__ */ c.jsx("div", { className: ve.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), X = (e) => {
374
+ }, Yt = "_body_14tsv_1", Zt = "_body_content_14tsv_5", qe = {
375
+ body: Yt,
376
+ body_content: Zt
377
+ }, Ft = ({ inputs: e }) => /* @__PURE__ */ c.jsx("section", { className: qe.body, children: /* @__PURE__ */ c.jsx("div", { className: qe.body_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), X = (e) => {
381
378
  if (!e)
382
379
  return { "content-type": "application/json" };
383
380
  if (typeof e == "function")
@@ -389,12 +386,12 @@ const It = (e) => {
389
386
  return { "content-type": "application/json", Authorization: e };
390
387
  }
391
388
  return e;
392
- }, F = () => new AbortController(), Yt = (e, t = {}, s = {}, r = !1, l) => {
389
+ }, F = () => new AbortController(), Pt = (e, t = {}, s = {}, r = !1, l) => {
393
390
  const o = F();
394
391
  r && o.abort();
395
392
  const i = X(t);
396
393
  return {
397
- call: V.get(e, {
394
+ call: J.get(e, {
398
395
  headers: {
399
396
  ...i
400
397
  },
@@ -404,12 +401,12 @@ const It = (e) => {
404
401
  }),
405
402
  controller: o
406
403
  };
407
- }, _e = (e, t = {}, s = {}, r = {}, l = !1, o) => {
404
+ }, he = (e, t = {}, s = {}, r = {}, l = !1, o) => {
408
405
  const i = F();
409
406
  l && i.abort();
410
407
  const n = X(t);
411
408
  return {
412
- call: V.post(e, s, {
409
+ call: J.post(e, s, {
413
410
  headers: {
414
411
  ...n
415
412
  },
@@ -419,12 +416,12 @@ const It = (e) => {
419
416
  }),
420
417
  controller: i
421
418
  };
422
- }, Zt = (e, t = {}, s = {}, r = {}, l = !1, o) => {
419
+ }, en = (e, t = {}, s = {}, r = {}, l = !1, o) => {
423
420
  const i = F();
424
421
  l && i.abort();
425
422
  const n = X(t);
426
423
  return {
427
- call: V.put(e, s, {
424
+ call: J.put(e, s, {
428
425
  headers: {
429
426
  ...n
430
427
  },
@@ -434,12 +431,12 @@ const It = (e) => {
434
431
  }),
435
432
  controller: i
436
433
  };
437
- }, Ft = (e, t = {}, s = {}, r = {}, l = !1, o) => {
434
+ }, tn = (e, t = {}, s = {}, r = {}, l = !1, o) => {
438
435
  const i = F();
439
436
  l && i.abort();
440
437
  const n = X(t);
441
438
  return {
442
- call: V.patch(e, s, {
439
+ call: J.patch(e, s, {
443
440
  headers: {
444
441
  ...n
445
442
  },
@@ -449,12 +446,12 @@ const It = (e) => {
449
446
  }),
450
447
  controller: i
451
448
  };
452
- }, Pt = (e, t = {}, s = {}, r = {}, l = !1, o) => {
449
+ }, nn = (e, t = {}, s = {}, r = {}, l = !1, o) => {
453
450
  const i = F();
454
451
  l && i.abort();
455
452
  const n = X(t);
456
453
  return {
457
- call: V.delete(e, {
454
+ call: J.delete(e, {
458
455
  headers: {
459
456
  ...n
460
457
  },
@@ -465,7 +462,7 @@ const It = (e) => {
465
462
  }),
466
463
  controller: i
467
464
  };
468
- }, Re = () => {
465
+ }, Be = () => {
469
466
  let e;
470
467
  return { callEndpoint: async (r) => {
471
468
  r.controller && (e = r.controller);
@@ -479,11 +476,11 @@ const It = (e) => {
479
476
  }, cancelEndpoint: () => {
480
477
  e && e.abort();
481
478
  } };
482
- }, De = async (e, t, s = "", r = {}, l = {}) => {
479
+ }, Ie = async (e, t, s = "", r = {}, l = {}) => {
483
480
  try {
484
- const { callEndpoint: o } = Re(), { api: i, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
481
+ const { callEndpoint: o } = Be(), { api: i, headers: n } = e, d = sessionStorage.getItem("sessionId"), a = new URLSearchParams({ session_name: t });
485
482
  s && a.append("hash_code", s), d && a.append("sessionId", d);
486
- const u = `${i}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = _e(
483
+ const u = `${i}/not-front/next-ui/?${a.toString()}`, f = X(n), _ = he(
487
484
  u,
488
485
  f,
489
486
  r,
@@ -496,14 +493,14 @@ const It = (e) => {
496
493
  return console.error(o), Promise.reject(o);
497
494
  }
498
495
  }, I = () => {
499
- const e = v((n) => n), { callEndpoint: t } = Re(), s = async (n, d, a, u, f = !0) => {
496
+ const e = v((n) => n), { callEndpoint: t } = Be(), s = async (n, d, a, u, f = !0) => {
500
497
  var _;
501
498
  try {
502
499
  const h = (_ = e[n]) == null ? void 0 : _.apiConfig, j = {
503
500
  state: { ...a },
504
501
  triggerKey: u
505
502
  };
506
- return f && H(n, !0), await De(
503
+ return f && H(n, !0), await Ie(
507
504
  h,
508
505
  n,
509
506
  d,
@@ -516,23 +513,23 @@ const It = (e) => {
516
513
  const { method: a, url: u, headers: f, data: _, params: h } = n;
517
514
  switch (a) {
518
515
  case "post":
519
- return _e(u, f, _, {}, !1, d);
516
+ return he(u, f, _, {}, !1, d);
520
517
  case "put":
521
- return Zt(u, f, _, {}, !1, d);
518
+ return en(u, f, _, {}, !1, d);
522
519
  case "patch":
523
- return Ft(u, f, _, {}, !1, d);
520
+ return tn(u, f, _, {}, !1, d);
524
521
  case "delete":
525
- return Pt(u, f, _, h, !1, d);
522
+ return nn(u, f, _, h, !1, d);
526
523
  case "get":
527
524
  default:
528
- return Yt(u, f, h, !1, d);
525
+ return Pt(u, f, h, !1, d);
529
526
  }
530
527
  }, l = (n, d) => {
531
528
  const { url: a, headers: u } = n, f = {
532
529
  query: n == null ? void 0 : n.query,
533
530
  variables: (n == null ? void 0 : n.variables) || {}
534
531
  };
535
- return _e(
532
+ return he(
536
533
  a,
537
534
  {
538
535
  ...u,
@@ -598,7 +595,7 @@ const It = (e) => {
598
595
  }
599
596
  }
600
597
  };
601
- }, en = ({
598
+ }, rn = ({
602
599
  userFlow: e,
603
600
  items: t,
604
601
  responseKey: s
@@ -633,8 +630,8 @@ const It = (e) => {
633
630
  title: i == null ? void 0 : i.title,
634
631
  component: /* @__PURE__ */ c.jsx("div", { onClick: () => l(i) })
635
632
  })), []);
636
- return /* @__PURE__ */ c.jsx(We, { items: o });
637
- }, tn = (e) => {
633
+ return /* @__PURE__ */ c.jsx(Ye, { items: o });
634
+ }, sn = (e) => {
638
635
  const {
639
636
  userFlow: t,
640
637
  pageId: s,
@@ -662,7 +659,7 @@ const It = (e) => {
662
659
  };
663
660
  switch (L(t, C), l) {
664
661
  case "CLOSE_MODAL":
665
- me(t, !1);
662
+ ge(t, !1);
666
663
  break;
667
664
  case "CLOSE_DRAWER":
668
665
  Z(t, !1);
@@ -698,8 +695,7 @@ const It = (e) => {
698
695
  C,
699
696
  r
700
697
  ), E = (N = w == null ? void 0 : w.data) == null ? void 0 : N.content;
701
- if ((E == null ? void 0 : E.type) !== "fetch")
702
- break;
698
+ if ((E == null ? void 0 : E.type) !== "fetch") break;
703
699
  const T = E == null ? void 0 : E.dataSource, k = await h(
704
700
  T,
705
701
  t,
@@ -734,28 +730,28 @@ const It = (e) => {
734
730
  }
735
731
  }, [l, n, s, r, t]);
736
732
  return /* @__PURE__ */ c.jsx(
737
- Qe,
733
+ Ze,
738
734
  {
739
735
  ...x,
740
736
  disabled: m,
741
737
  onClick: () => !m && (u ?? g)()
742
738
  }
743
739
  );
744
- }, nn = "_cardNotificationNotFront_t7pln_1", rn = {
745
- cardNotificationNotFront: nn
746
- }, sn = (e) => {
740
+ }, an = "_cardNotificationNotFront_t7pln_1", on = {
741
+ cardNotificationNotFront: an
742
+ }, cn = (e) => {
747
743
  const { content: t, description: s, ...r } = e, l = {
748
744
  ...r,
749
745
  children: t ?? s
750
746
  };
751
747
  return /* @__PURE__ */ c.jsx(
752
- he,
748
+ ye,
753
749
  {
754
750
  ...l,
755
- className: rn.cardNotificationNotFront
751
+ className: on.cardNotificationNotFront
756
752
  }
757
753
  );
758
- }, an = (e) => {
754
+ }, ln = (e) => {
759
755
  const {
760
756
  userFlow: t,
761
757
  pageId: s,
@@ -799,7 +795,7 @@ const It = (e) => {
799
795
  }
800
796
  }, [t, s, r, l, _]), m = (u == null ? void 0 : u.disabled) ?? j;
801
797
  return /* @__PURE__ */ c.jsx(
802
- Ye,
798
+ Fe,
803
799
  {
804
800
  ...u,
805
801
  labelRight: y,
@@ -810,13 +806,13 @@ const It = (e) => {
810
806
  }
811
807
  }
812
808
  );
813
- }, on = "_codeEditor_1coz7_1", cn = "_codeEditor_label_1coz7_4", ln = "_codeEditor_wrapper_1coz7_13", dn = "_input_1coz7_17", _n = "_preview_1coz7_18", Y = {
814
- codeEditor: on,
815
- codeEditor_label: cn,
816
- codeEditor_wrapper: ln,
817
- input: dn,
818
- preview: _n
819
- }, un = (e) => {
809
+ }, dn = "_codeEditor_1coz7_1", _n = "_codeEditor_label_1coz7_4", un = "_codeEditor_wrapper_1coz7_13", hn = "_input_1coz7_17", fn = "_preview_1coz7_18", Y = {
810
+ codeEditor: dn,
811
+ codeEditor_label: _n,
812
+ codeEditor_wrapper: un,
813
+ input: hn,
814
+ preview: fn
815
+ }, yn = (e) => {
820
816
  const {
821
817
  userFlow: t,
822
818
  responseKey: s,
@@ -828,14 +824,14 @@ const It = (e) => {
828
824
  dependencies: d,
829
825
  disabled: a,
830
826
  showPreview: u
831
- } = e, [f, _] = q(i ?? ""), h = ue.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
827
+ } = e, [f, _] = q(i ?? ""), h = fe.useThemeStore((b) => b.theme.mode), { disabled: j } = M(
832
828
  t,
833
829
  d
834
830
  ), y = a ?? j, x = {
835
- json: be(),
836
- markdown: ft(),
837
- sql: yt(),
838
- yaml: mt()
831
+ json: we(),
832
+ markdown: mt(),
833
+ sql: xt(),
834
+ yaml: gt()
839
835
  }, m = O(() => n && r ? `${r} *` : r ?? "", [r, n]), g = (b) => {
840
836
  _(b);
841
837
  const N = {
@@ -847,63 +843,65 @@ const It = (e) => {
847
843
  m && m !== "" && /* @__PURE__ */ c.jsx("label", { className: Y.codeEditor_label, children: m }),
848
844
  /* @__PURE__ */ c.jsxs("div", { className: Y.codeEditor_wrapper, children: [
849
845
  /* @__PURE__ */ c.jsx(
850
- ht,
846
+ yt,
851
847
  {
852
848
  className: Y.input,
853
849
  value: f,
854
850
  height: "400px",
855
851
  placeholder: o,
856
- extensions: [x[l] ?? be()],
852
+ extensions: [x[l] ?? we()],
857
853
  onChange: (b) => g(b),
858
854
  theme: h,
859
855
  editable: !y
860
856
  }
861
857
  ),
862
- l == "markdown" && u && /* @__PURE__ */ c.jsx(Ze, { className: Y.preview, children: f })
858
+ l == "markdown" && u && /* @__PURE__ */ c.jsx(Pe, { className: Y.preview, children: f })
863
859
  ] })
864
860
  ] });
865
861
  };
866
- var Le = { exports: {} };
862
+ var le = { exports: {} };
867
863
  /*!
868
864
  Copyright (c) 2018 Jed Watson.
869
865
  Licensed under the MIT License (MIT), see
870
866
  http://jedwatson.github.io/classnames
871
867
  */
872
- (function(e) {
873
- (function() {
874
- var t = {}.hasOwnProperty;
875
- function s() {
876
- for (var r = [], l = 0; l < arguments.length; l++) {
877
- var o = arguments[l];
878
- if (o) {
879
- var i = typeof o;
880
- if (i === "string" || i === "number")
881
- r.push(o);
882
- else if (Array.isArray(o)) {
883
- if (o.length) {
884
- var n = s.apply(null, o);
885
- n && r.push(n);
886
- }
887
- } else if (i === "object") {
888
- if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
889
- r.push(o.toString());
890
- continue;
868
+ var Se;
869
+ function mn() {
870
+ return Se || (Se = 1, (function(e) {
871
+ (function() {
872
+ var t = {}.hasOwnProperty;
873
+ function s() {
874
+ for (var r = [], l = 0; l < arguments.length; l++) {
875
+ var o = arguments[l];
876
+ if (o) {
877
+ var i = typeof o;
878
+ if (i === "string" || i === "number")
879
+ r.push(o);
880
+ else if (Array.isArray(o)) {
881
+ if (o.length) {
882
+ var n = s.apply(null, o);
883
+ n && r.push(n);
884
+ }
885
+ } else if (i === "object") {
886
+ if (o.toString !== Object.prototype.toString && !o.toString.toString().includes("[native code]")) {
887
+ r.push(o.toString());
888
+ continue;
889
+ }
890
+ for (var d in o)
891
+ t.call(o, d) && o[d] && r.push(d);
891
892
  }
892
- for (var d in o)
893
- t.call(o, d) && o[d] && r.push(d);
894
893
  }
895
894
  }
895
+ return r.join(" ");
896
896
  }
897
- return r.join(" ");
898
- }
899
- e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
900
- })();
901
- })(Le);
902
- var hn = Le.exports;
903
- const ee = /* @__PURE__ */ Lt(hn);
904
- const fn = "_dividerNotFront_tze3j_1", yn = {
905
- dividerNotFront: fn
906
- }, mn = (e) => /* @__PURE__ */ c.jsx(Fe, { ...e, className: yn.dividerNotFront }), xn = (e, t, s) => {
897
+ e.exports ? (s.default = s, e.exports = s) : window.classNames = s;
898
+ })();
899
+ })(le)), le.exports;
900
+ }
901
+ var xn = mn();
902
+ const ee = /* @__PURE__ */ It(xn), gn = "_dividerNotFront_tze3j_1", pn = {
903
+ dividerNotFront: gn
904
+ }, bn = (e) => /* @__PURE__ */ c.jsx(et, { ...e, className: pn.dividerNotFront }), jn = (e, t, s) => {
907
905
  const { url: r, paginationKeys: l, params: o } = e, i = [], n = (l == null ? void 0 : l.page) ?? "page";
908
906
  if (i.push(`${n}=${t}`), typeof s == "string") {
909
907
  const u = (l == null ? void 0 : l.text) ?? "text";
@@ -917,11 +915,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
917
915
  }
918
916
  const d = i.join("&");
919
917
  return d ? `${r}?${d}` : r;
920
- }, xe = (e, t, s) => {
918
+ }, pe = (e, t, s) => {
921
919
  const { type: r, url: l, method: o, headers: i } = e;
922
920
  return r === "rest" ? {
923
921
  type: "rest",
924
- url: xn(e, t, s),
922
+ url: jn(e, t, s),
925
923
  method: o,
926
924
  headers: i,
927
925
  data: (e == null ? void 0 : e.data) || {}
@@ -937,7 +935,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
937
935
  page: t
938
936
  }
939
937
  };
940
- }, ie = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, Be = (e, t, s, r) => {
938
+ }, de = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ze = (e, t, s, r) => {
941
939
  const l = B.query(e, t), o = l == null ? void 0 : l.map((a) => {
942
940
  var u, f;
943
941
  if (s) {
@@ -945,12 +943,12 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
945
943
  for (const [h, j] of Object.entries(s))
946
944
  if (typeof j == "object" && "path" in j) {
947
945
  const y = j, x = (u = B.query(a, y.path)) == null ? void 0 : u[0];
948
- y.translations && String(x) in y.translations ? _[h] = ie(
946
+ y.translations && String(x) in y.translations ? _[h] = de(
949
947
  y.translations[String(x)]
950
- ) : _[h] = ie(x);
948
+ ) : _[h] = de(x);
951
949
  } else {
952
950
  const y = j;
953
- _[h] = ie((f = B.query(a, y)) == null ? void 0 : f[0]);
951
+ _[h] = de((f = B.query(a, y)) == null ? void 0 : f[0]);
954
952
  }
955
953
  return _;
956
954
  } else
@@ -967,7 +965,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
967
965
  }, ne = ({ withPadding: e = !1 }) => {
968
966
  const t = (s) => /* @__PURE__ */ c.jsx("span", { style: { color: R.labelColor }, children: s });
969
967
  return /* @__PURE__ */ c.jsx(
970
- xt,
968
+ pt,
971
969
  {
972
970
  formatter: t,
973
971
  wrapperStyle: {
@@ -977,7 +975,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
977
975
  }
978
976
  }
979
977
  );
980
- }, gn = ({
978
+ }, wn = ({
981
979
  active: e,
982
980
  payload: t,
983
981
  label: s,
@@ -1003,12 +1001,12 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1003
1001
  t.map((i, n) => /* @__PURE__ */ c.jsx("p", { style: { margin: "2px 0", color: i.color }, children: `${i.name}: ${i.value}` }, n))
1004
1002
  ] });
1005
1003
  }, re = ({ tooltipKey: e } = {}) => /* @__PURE__ */ c.jsx(
1006
- gt,
1004
+ bt,
1007
1005
  {
1008
- content: /* @__PURE__ */ c.jsx(gn, { tooltipKey: e })
1006
+ content: /* @__PURE__ */ c.jsx(wn, { tooltipKey: e })
1009
1007
  }
1010
- ), ge = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ c.jsx(
1011
- pt,
1008
+ ), be = ({ dataKey: e, hide: t = !1 }) => /* @__PURE__ */ c.jsx(
1009
+ jt,
1012
1010
  {
1013
1011
  dataKey: e,
1014
1012
  hide: t,
@@ -1017,24 +1015,24 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1017
1015
  fontSize: R.fontSize
1018
1016
  }
1019
1017
  }
1020
- ), pe = () => /* @__PURE__ */ c.jsx(
1021
- bt,
1018
+ ), je = () => /* @__PURE__ */ c.jsx(
1019
+ wt,
1022
1020
  {
1023
1021
  tick: {
1024
1022
  fill: R.labelColor,
1025
1023
  fontSize: R.fontSize
1026
1024
  }
1027
1025
  }
1028
- ), pn = (e) => {
1026
+ ), Cn = (e) => {
1029
1027
  const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
1030
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(jt, { data: t, children: [
1031
- /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1032
- /* @__PURE__ */ c.jsx(ge, { dataKey: s }),
1033
- /* @__PURE__ */ c.jsx(pe, {}),
1028
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Ct, { data: t, children: [
1029
+ /* @__PURE__ */ c.jsx(me, { strokeDasharray: "3 3" }),
1030
+ /* @__PURE__ */ c.jsx(be, { dataKey: s }),
1031
+ /* @__PURE__ */ c.jsx(je, {}),
1034
1032
  /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1035
1033
  /* @__PURE__ */ c.jsx(ne, {}),
1036
1034
  r.map((o, i) => /* @__PURE__ */ c.jsx(
1037
- wt,
1035
+ Nt,
1038
1036
  {
1039
1037
  type: "monotone",
1040
1038
  dataKey: o,
@@ -1044,16 +1042,16 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1044
1042
  o
1045
1043
  ))
1046
1044
  ] }) });
1047
- }, bn = (e) => {
1045
+ }, Nn = (e) => {
1048
1046
  const { data: t, yKeys: s, xKey: r, tooltipKey: l } = e;
1049
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(Ct, { data: t, children: [
1050
- /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1051
- /* @__PURE__ */ c.jsx(ge, { hide: !0, dataKey: r }),
1052
- /* @__PURE__ */ c.jsx(pe, {}),
1047
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(vt, { data: t, children: [
1048
+ /* @__PURE__ */ c.jsx(me, { strokeDasharray: "3 3" }),
1049
+ /* @__PURE__ */ c.jsx(be, { hide: !0, dataKey: r }),
1050
+ /* @__PURE__ */ c.jsx(je, {}),
1053
1051
  /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1054
1052
  /* @__PURE__ */ c.jsx(ne, { withPadding: !0 }),
1055
1053
  s.map((o, i) => /* @__PURE__ */ c.jsx(
1056
- Nt,
1054
+ Et,
1057
1055
  {
1058
1056
  dataKey: o,
1059
1057
  fill: z[i % z.length]
@@ -1061,16 +1059,16 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1061
1059
  o
1062
1060
  ))
1063
1061
  ] }) });
1064
- }, jn = (e) => {
1062
+ }, vn = (e) => {
1065
1063
  const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e;
1066
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(vt, { data: t, children: [
1067
- /* @__PURE__ */ c.jsx(fe, { strokeDasharray: "3 3" }),
1068
- /* @__PURE__ */ c.jsx(ge, { dataKey: s }),
1069
- /* @__PURE__ */ c.jsx(pe, {}),
1064
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(kt, { data: t, children: [
1065
+ /* @__PURE__ */ c.jsx(me, { strokeDasharray: "3 3" }),
1066
+ /* @__PURE__ */ c.jsx(be, { dataKey: s }),
1067
+ /* @__PURE__ */ c.jsx(je, {}),
1070
1068
  /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1071
1069
  /* @__PURE__ */ c.jsx(ne, {}),
1072
1070
  r.map((o, i) => /* @__PURE__ */ c.jsx(
1073
- Et,
1071
+ qt,
1074
1072
  {
1075
1073
  type: "monotone",
1076
1074
  dataKey: o,
@@ -1081,7 +1079,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1081
1079
  o
1082
1080
  ))
1083
1081
  ] }) });
1084
- }, wn = (e) => {
1082
+ }, En = (e) => {
1085
1083
  const { data: t, xKey: s, yKeys: r, tooltipKey: l } = e, o = ({
1086
1084
  cx: i,
1087
1085
  cy: n,
@@ -1104,11 +1102,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1104
1102
  }
1105
1103
  );
1106
1104
  };
1107
- return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(kt, { children: [
1105
+ return /* @__PURE__ */ c.jsx(te, { width: "100%", height: 400, children: /* @__PURE__ */ c.jsxs(St, { children: [
1108
1106
  /* @__PURE__ */ c.jsx(re, { tooltipKey: l }),
1109
1107
  /* @__PURE__ */ c.jsx(ne, {}),
1110
1108
  /* @__PURE__ */ c.jsx(
1111
- qt,
1109
+ At,
1112
1110
  {
1113
1111
  data: t,
1114
1112
  dataKey: r[0],
@@ -1116,7 +1114,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1116
1114
  label: o,
1117
1115
  outerRadius: 120,
1118
1116
  children: t.map((i, n) => /* @__PURE__ */ c.jsx(
1119
- St,
1117
+ Ot,
1120
1118
  {
1121
1119
  fill: z[n % z.length]
1122
1120
  },
@@ -1125,11 +1123,11 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1125
1123
  }
1126
1124
  )
1127
1125
  ] }) });
1128
- }, Cn = {
1129
- area: pn,
1130
- bar: bn,
1131
- line: jn,
1132
- pie: wn
1126
+ }, kn = {
1127
+ area: Cn,
1128
+ bar: Nn,
1129
+ line: vn,
1130
+ pie: En
1133
1131
  }, z = [
1134
1132
  "var(--color-primitive-palette-1-50)",
1135
1133
  "var(--color-primitive-palette-2-50)",
@@ -1155,73 +1153,73 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1155
1153
  tooltipBg: "#fff",
1156
1154
  tooltipColor: "#000",
1157
1155
  tooltipBorderRadius: "4px"
1158
- }, Nn = (e) => {
1159
- const { component: t, userFlow: s, hash: r, responseKey: l, dataSource: o, ...i } = e, n = Cn[i.type];
1156
+ }, qn = (e) => {
1157
+ const { component: t, userFlow: s, hash: r, responseKey: l, dataSource: o, ...i } = e, n = kn[i.type];
1160
1158
  if (!n)
1161
1159
  return /* @__PURE__ */ c.jsx("div", { children: "Not supported chart type" });
1162
1160
  const { fetchDataSource: d } = I(), [a, u] = q(!1), [f, _] = q([]), h = async () => {
1163
1161
  var y, x;
1164
1162
  try {
1165
1163
  u(!0);
1166
- const { jsonPathData: m, mapperData: g } = o, b = xe(
1164
+ const { jsonPathData: m, mapperData: g } = o, b = pe(
1167
1165
  o,
1168
1166
  1
1169
1167
  ), N = await d(
1170
1168
  b,
1171
1169
  s,
1172
1170
  !1
1173
- ), p = m ? (y = Be(N == null ? void 0 : N.data, m, g)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1171
+ ), p = m ? (y = ze(N == null ? void 0 : N.data, m, g)) == null ? void 0 : y.items : (x = N == null ? void 0 : N.data) == null ? void 0 : x.data;
1174
1172
  _(p), u(!1);
1175
1173
  } catch (m) {
1176
1174
  alert(JSON.stringify(m)), u(!1);
1177
1175
  }
1178
1176
  };
1179
- J(() => {
1177
+ V(() => {
1180
1178
  o ? h() : _(i.data);
1181
1179
  }, []);
1182
1180
  const j = {
1183
1181
  ...i,
1184
1182
  data: f
1185
1183
  };
1186
- return a ? /* @__PURE__ */ c.jsx(Oe, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1187
- }, vn = "_header_g1eri_1", En = "_header_content_g1eri_5", Ee = {
1188
- header: vn,
1189
- header_content: En
1190
- }, kn = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ee.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ee.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), A = (e, t, s, r) => {
1184
+ return a ? /* @__PURE__ */ c.jsx(De, { height: 400 }) : f.length > 0 ? n(j) : /* @__PURE__ */ c.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" });
1185
+ }, Sn = "_header_g1eri_1", An = "_header_content_g1eri_5", Ae = {
1186
+ header: Sn,
1187
+ header_content: An
1188
+ }, On = ({ components: e = [] }) => /* @__PURE__ */ c.jsx("section", { className: ee(Ae.header, "avocado-dark-theme"), children: /* @__PURE__ */ c.jsx("div", { className: Ae.header_content, children: e.map((t, s) => /* @__PURE__ */ c.jsx($, { children: t }, s)) }) }), A = (e, t, s, r) => {
1191
1189
  var i;
1192
1190
  const l = {
1193
- accordion: (n) => /* @__PURE__ */ c.jsx(hr, { ...n, userFlow: e, pageId: t }),
1194
- aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Mt, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
1195
- aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Ut, { ...n, userFlow: e, pageId: t }),
1196
- aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(Ht, { ...n, userFlow: e, pageId: t }),
1197
- breadcrumbs: (n) => /* @__PURE__ */ c.jsx(en, { ...n, userFlow: e, pageId: t }),
1198
- button: (n) => /* @__PURE__ */ c.jsx(tn, { ...n, userFlow: e, pageId: t }),
1199
- cardNotification: (n) => /* @__PURE__ */ c.jsx(sn, { ...n }),
1200
- chart: (n) => /* @__PURE__ */ c.jsx(Nn, { ...n, userFlow: e }),
1201
- checkbox: (n) => /* @__PURE__ */ c.jsx(an, { ...n, userFlow: e, pageId: t }),
1202
- code: (n) => /* @__PURE__ */ c.jsx(un, { ...n, userFlow: e, pageId: t }),
1203
- divider: (n) => /* @__PURE__ */ c.jsx(mn, { ...n }),
1204
- drawer: (n) => /* @__PURE__ */ c.jsx(xr, { ...n, userFlow: e, pageId: t }),
1205
- heading: (n) => It(n),
1206
- pill: (n) => /* @__PURE__ */ c.jsx($n, { ...n }),
1207
- modal: (n) => /* @__PURE__ */ c.jsx(An, { ...n, userFlow: e, pageId: t }),
1208
- roundButton: (n) => /* @__PURE__ */ c.jsx(Rn, { ...n, userFlow: e, pageId: t }),
1209
- row: (n) => /* @__PURE__ */ c.jsx(Bn, { ...n, userFlow: e, pageId: t }),
1210
- select: (n) => /* @__PURE__ */ c.jsx(Un, { ...n, userFlow: e, pageId: t }),
1211
- switch: (n) => /* @__PURE__ */ c.jsx(er, { ...n, userFlow: e, pageId: t }),
1212
- spacing: (n) => /* @__PURE__ */ c.jsx(Pn, { ...n, userFlow: e, pageId: t }),
1213
- table: (n) => /* @__PURE__ */ c.jsx(or, { ...n, userFlow: e, pageId: t }),
1214
- text: (n) => zt(n),
1215
- textField: (n) => /* @__PURE__ */ c.jsx(lr, { ...n, userFlow: e, pageId: t }),
1216
- toast: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t })
1191
+ accordion: (n) => /* @__PURE__ */ c.jsx(xr, { ...n, userFlow: e, pageId: t }),
1192
+ aiChatPanel: (n) => /* @__PURE__ */ c.jsx(Ut, { ...n, userFlow: e, pageId: t, chatPanelCallback: r }),
1193
+ aiSummaryCard: (n) => /* @__PURE__ */ c.jsx(Ht, { ...n, userFlow: e, pageId: t }),
1194
+ aiPromptCodeEditor: (n) => /* @__PURE__ */ c.jsx(Qt, { ...n, userFlow: e, pageId: t }),
1195
+ breadcrumbs: (n) => /* @__PURE__ */ c.jsx(rn, { ...n, userFlow: e, pageId: t }),
1196
+ button: (n) => /* @__PURE__ */ c.jsx(sn, { ...n, userFlow: e, pageId: t }),
1197
+ cardNotification: (n) => /* @__PURE__ */ c.jsx(cn, { ...n }),
1198
+ chart: (n) => /* @__PURE__ */ c.jsx(qn, { ...n, userFlow: e }),
1199
+ checkbox: (n) => /* @__PURE__ */ c.jsx(ln, { ...n, userFlow: e, pageId: t }),
1200
+ code: (n) => /* @__PURE__ */ c.jsx(yn, { ...n, userFlow: e, pageId: t }),
1201
+ divider: (n) => /* @__PURE__ */ c.jsx(bn, { ...n }),
1202
+ drawer: (n) => /* @__PURE__ */ c.jsx(jr, { ...n, userFlow: e, pageId: t }),
1203
+ heading: (n) => Kt(n),
1204
+ pill: (n) => /* @__PURE__ */ c.jsx(Bn, { ...n }),
1205
+ modal: (n) => /* @__PURE__ */ c.jsx(Rn, { ...n, userFlow: e, pageId: t }),
1206
+ roundButton: (n) => /* @__PURE__ */ c.jsx(In, { ...n, userFlow: e, pageId: t }),
1207
+ row: (n) => /* @__PURE__ */ c.jsx(Kn, { ...n, userFlow: e, pageId: t }),
1208
+ select: (n) => /* @__PURE__ */ c.jsx(Xn, { ...n, userFlow: e, pageId: t }),
1209
+ switch: (n) => /* @__PURE__ */ c.jsx(sr, { ...n, userFlow: e, pageId: t }),
1210
+ spacing: (n) => /* @__PURE__ */ c.jsx(rr, { ...n, userFlow: e, pageId: t }),
1211
+ table: (n) => /* @__PURE__ */ c.jsx(dr, { ...n, userFlow: e, pageId: t }),
1212
+ text: (n) => Gt(n),
1213
+ textField: (n) => /* @__PURE__ */ c.jsx(hr, { ...n, userFlow: e, pageId: t }),
1214
+ toast: (n) => /* @__PURE__ */ c.jsx(fr, { ...n, userFlow: e, pageId: t })
1217
1215
  };
1218
1216
  return (i = s == null ? void 0 : s.filter(Boolean)) == null ? void 0 : i.map((n) => {
1219
1217
  const d = l[n.component];
1220
1218
  return d ? d({ ...n, userFlow: e, pageId: t }) : null;
1221
1219
  });
1222
- }, qn = "_modalContent_p06ci_1", Sn = {
1223
- modalContent: qn
1224
- }, An = ({
1220
+ }, Tn = "_modalContent_p06ci_1", $n = {
1221
+ modalContent: Tn
1222
+ }, Rn = ({
1225
1223
  userFlow: e,
1226
1224
  pageId: t,
1227
1225
  responseKey: s,
@@ -1240,23 +1238,23 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1240
1238
  }), u = d && !a, f = {
1241
1239
  ...n
1242
1240
  }, _ = (f == null ? void 0 : f.headerStatusColor) ?? i, h = D(() => {
1243
- ye(e), me(e, !1);
1241
+ xe(e), ge(e, !1);
1244
1242
  }, [e, s]), j = Array.isArray(r) ? A(e, t, r) : r, y = A(e, t, l), x = A(e, t, o);
1245
1243
  return /* @__PURE__ */ c.jsx(
1246
- Pe,
1244
+ tt,
1247
1245
  {
1248
1246
  ...f,
1249
1247
  headerStatusColor: _,
1250
1248
  header: typeof j == "string" ? j : /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-header-${g}`)) }),
1251
- children: /* @__PURE__ */ c.jsx("section", { className: Sn.modalContent, children: y.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-body-${g}`)) }),
1249
+ children: /* @__PURE__ */ c.jsx("section", { className: $n.modalContent, children: y.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-body-${g}`)) }),
1252
1250
  actions: /* @__PURE__ */ c.jsx(c.Fragment, { children: x.map((m, g) => /* @__PURE__ */ c.jsx($, { children: m }, `modal-footer-${g}`)) }),
1253
1251
  open: u,
1254
1252
  onClose: h
1255
1253
  }
1256
1254
  );
1257
- }, On = ({ userFlow: e, pageId: t }) => {
1255
+ }, Dn = ({ userFlow: e, pageId: t }) => {
1258
1256
  var o, i;
1259
- const s = Tt(e);
1257
+ const s = Rt(e);
1260
1258
  if (!s)
1261
1259
  return null;
1262
1260
  const r = [
@@ -1272,7 +1270,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1272
1270
  const a = `overlay-${d}-${s == null ? void 0 : s.hash}`;
1273
1271
  return /* @__PURE__ */ c.jsx($, { children: n }, a);
1274
1272
  }) });
1275
- }, Tn = {
1273
+ }, Ln = {
1276
1274
  success: {
1277
1275
  color: "success-opacity",
1278
1276
  textColor: "success-60",
@@ -1298,16 +1296,16 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1298
1296
  textColor: "neutral-70",
1299
1297
  iconColor: "neutral-70"
1300
1298
  }
1301
- }, $n = (e) => {
1302
- const { content: t, variant: s = "neutral", ...r } = e, l = Tn[s], o = {
1299
+ }, Bn = (e) => {
1300
+ const { content: t, variant: s = "neutral", ...r } = e, l = Ln[s], o = {
1303
1301
  ...r,
1304
1302
  children: t,
1305
1303
  color: (r == null ? void 0 : r.color) ?? l.color,
1306
1304
  textColor: (r == null ? void 0 : r.textColor) ?? l.textColor,
1307
1305
  iconColor: (r == null ? void 0 : r.iconColor) ?? l.iconColor
1308
1306
  };
1309
- return /* @__PURE__ */ c.jsx(de, { ...o });
1310
- }, Rn = (e) => {
1307
+ return /* @__PURE__ */ c.jsx(ue, { ...o });
1308
+ }, In = (e) => {
1311
1309
  const {
1312
1310
  userFlow: t,
1313
1311
  pageId: s,
@@ -1352,7 +1350,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1352
1350
  break;
1353
1351
  }
1354
1352
  case "CLOSE_MODAL":
1355
- me(t, !1);
1353
+ ge(t, !1);
1356
1354
  break;
1357
1355
  case "CLOSE_DRAWER":
1358
1356
  Z(t, !1);
@@ -1369,15 +1367,15 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1369
1367
  }
1370
1368
  }, [l, o, s, r, t]);
1371
1369
  return /* @__PURE__ */ c.jsx(
1372
- et,
1370
+ nt,
1373
1371
  {
1374
1372
  ..._,
1375
1373
  disabled: h,
1376
1374
  onClick: () => !h && (n ?? j)()
1377
1375
  }
1378
1376
  );
1379
- }, Dn = "_row_1bqj4_1", Ln = "_row_column_1bqj4_65", U = {
1380
- row: Dn,
1377
+ }, zn = "_row_1bqj4_1", Mn = "_row_column_1bqj4_65", U = {
1378
+ row: zn,
1381
1379
  "row__gap-none": "_row__gap-none_1bqj4_5",
1382
1380
  "row__gap-xxs": "_row__gap-xxs_1bqj4_8",
1383
1381
  "row__gap-xs": "_row__gap-xs_1bqj4_11",
@@ -1398,7 +1396,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1398
1396
  "row__align-center": "_row__align-center_1bqj4_56",
1399
1397
  "row__align-stretch": "_row__align-stretch_1bqj4_59",
1400
1398
  "row__align-baseline": "_row__align-baseline_1bqj4_62",
1401
- row_column: Ln,
1399
+ row_column: Mn,
1402
1400
  "row_column__gap-none": "_row_column__gap-none_1bqj4_72",
1403
1401
  "row_column__gap-xxs": "_row_column__gap-xxs_1bqj4_75",
1404
1402
  "row_column__gap-xs": "_row_column__gap-xs_1bqj4_78",
@@ -1419,7 +1417,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1419
1417
  "row_column__align-center": "_row_column__align-center_1bqj4_123",
1420
1418
  "row_column__align-stretch": "_row_column__align-stretch_1bqj4_126",
1421
1419
  "row_column__align-baseline": "_row_column__align-baseline_1bqj4_129"
1422
- }, Bn = (e) => {
1420
+ }, Kn = (e) => {
1423
1421
  const {
1424
1422
  userFlow: t,
1425
1423
  pageId: s,
@@ -1478,7 +1476,7 @@ const fn = "_dividerNotFront_tze3j_1", yn = {
1478
1476
  }
1479
1477
  );
1480
1478
  };
1481
- function Ie({
1479
+ function Me({
1482
1480
  userFlow: e,
1483
1481
  pageId: t,
1484
1482
  responseKey: s,
@@ -1487,8 +1485,8 @@ function Ie({
1487
1485
  isMulti: o = !1,
1488
1486
  debounceMs: i
1489
1487
  }) {
1490
- const n = Je(null);
1491
- J(() => () => {
1488
+ const n = Xe(null);
1489
+ V(() => () => {
1492
1490
  n.current !== null && (clearTimeout(n.current), n.current = null);
1493
1491
  }, []);
1494
1492
  const d = D(
@@ -1531,14 +1529,14 @@ function Ie({
1531
1529
  [o, i, d]
1532
1530
  );
1533
1531
  }
1534
- const In = (e, t, s, r) => {
1532
+ const Gn = (e, t, s, r) => {
1535
1533
  const l = B.query(e, t);
1536
1534
  return (l == null ? void 0 : l.map((o) => {
1537
1535
  var d, a;
1538
1536
  const i = (d = B.query(o, s)) == null ? void 0 : d[0], n = r ? (a = B.query(o, r)) == null ? void 0 : a[0] : o;
1539
1537
  return { label: i, value: n };
1540
1538
  })) ?? [];
1541
- }, zn = (e, t, s, r = 10) => {
1539
+ }, Un = (e, t, s, r = 10) => {
1542
1540
  var n, d;
1543
1541
  let l, o;
1544
1542
  if (s) {
@@ -1554,9 +1552,9 @@ const In = (e, t, s, r) => {
1554
1552
  total: o,
1555
1553
  hasMore: i
1556
1554
  };
1557
- }, Mn = "_selectNotFront_1yw9q_1", ze = {
1558
- selectNotFront: Mn
1559
- }, Kn = ({
1555
+ }, Jn = "_selectNotFront_1yw9q_1", Ke = {
1556
+ selectNotFront: Jn
1557
+ }, Vn = ({
1560
1558
  userFlow: e,
1561
1559
  pageId: t,
1562
1560
  responseKey: s,
@@ -1578,7 +1576,7 @@ const In = (e, t, s, r) => {
1578
1576
  const E = JSON.stringify(w.value), T = JSON.stringify(w.label);
1579
1577
  C[E] = w, T in C || (C[T] = w);
1580
1578
  })), C;
1581
- }, [_]), g = Ie({
1579
+ }, [_]), g = Me({
1582
1580
  userFlow: e,
1583
1581
  pageId: t,
1584
1582
  responseKey: s,
@@ -1594,7 +1592,7 @@ const In = (e, t, s, r) => {
1594
1592
  jsonPathOptions: T,
1595
1593
  jsonPathValue: k,
1596
1594
  jsonPathPagination: K
1597
- } = l, G = xe(
1595
+ } = l, G = pe(
1598
1596
  l,
1599
1597
  w,
1600
1598
  p
@@ -1602,29 +1600,29 @@ const In = (e, t, s, r) => {
1602
1600
  G,
1603
1601
  e,
1604
1602
  !1
1605
- ), ae = se == null ? void 0 : se.data, Ke = ae ? In(
1603
+ ), ae = se == null ? void 0 : se.data, Ue = ae ? Gn(
1606
1604
  ae,
1607
1605
  T,
1608
1606
  E,
1609
1607
  k
1610
- ) : [], { hasMore: Ge } = zn(
1608
+ ) : [], { hasMore: Je } = Un(
1611
1609
  ae,
1612
1610
  w,
1613
1611
  K
1614
1612
  );
1615
1613
  return {
1616
- options: Ke,
1617
- hasMore: Ge,
1614
+ options: Ue,
1615
+ hasMore: Je,
1618
1616
  additional: {
1619
1617
  page: p ? 1 : w + 1
1620
1618
  }
1621
1619
  };
1622
1620
  };
1623
1621
  return /* @__PURE__ */ c.jsx(
1624
- tt,
1622
+ rt,
1625
1623
  {
1626
1624
  ...a,
1627
- className: ze.selectNotFront,
1625
+ className: Ke.selectNotFront,
1628
1626
  label: x,
1629
1627
  value: _,
1630
1628
  disabled: y,
@@ -1639,7 +1637,7 @@ const In = (e, t, s, r) => {
1639
1637
  debounceTimeout: 350
1640
1638
  }
1641
1639
  );
1642
- }, Gn = ({
1640
+ }, Hn = ({
1643
1641
  userFlow: e,
1644
1642
  pageId: t,
1645
1643
  responseKey: s,
@@ -1655,7 +1653,7 @@ const In = (e, t, s, r) => {
1655
1653
  }, { getNextUI: u } = I(), [f, _] = q(a.value || ""), { disabled: h } = M(
1656
1654
  e,
1657
1655
  i
1658
- ), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), x = Ie({
1656
+ ), j = (a == null ? void 0 : a.disabled) ?? h, y = O(() => l && (a != null && a.label) ? `${a == null ? void 0 : a.label} *` : (a == null ? void 0 : a.label) ?? "", [a == null ? void 0 : a.label, l]), x = Me({
1659
1657
  userFlow: e,
1660
1658
  pageId: t,
1661
1659
  responseKey: s,
@@ -1667,33 +1665,33 @@ const In = (e, t, s, r) => {
1667
1665
  _(g), x(g);
1668
1666
  };
1669
1667
  return /* @__PURE__ */ c.jsx(
1670
- nt,
1668
+ st,
1671
1669
  {
1672
1670
  ...a,
1673
- className: ze.selectNotFront,
1671
+ className: Ke.selectNotFront,
1674
1672
  label: y,
1675
1673
  value: f,
1676
1674
  disabled: j,
1677
1675
  onChange: (g) => !j && m(g)
1678
1676
  }
1679
1677
  );
1680
- }, Un = (e) => {
1678
+ }, Xn = (e) => {
1681
1679
  const { dataSource: t } = e;
1682
- return t ? /* @__PURE__ */ c.jsx(Kn, { ...e }) : /* @__PURE__ */ c.jsx(Gn, { ...e });
1683
- }, Vn = "_spacing_19hqa_1", Jn = "_spacing__xxs_19hqa_1", Hn = "_spacing__xs_19hqa_4", Xn = "_spacing__sm_19hqa_7", Wn = "_spacing__md_19hqa_10", Qn = "_spacing__lg_19hqa_13", Yn = "_spacing__xl_19hqa_16", Zn = "_spacing__xxl_19hqa_19", Fn = "_spacing__xxxl_19hqa_22", ke = {
1684
- spacing: Vn,
1685
- spacing__xxs: Jn,
1686
- spacing__xs: Hn,
1687
- spacing__sm: Xn,
1688
- spacing__md: Wn,
1689
- spacing__lg: Qn,
1690
- spacing__xl: Yn,
1691
- spacing__xxl: Zn,
1692
- spacing__xxxl: Fn
1693
- }, Pn = (e) => {
1694
- const { size: t } = e, s = ee(ke.spacing, ke[`spacing__${t}`]);
1680
+ return t ? /* @__PURE__ */ c.jsx(Vn, { ...e }) : /* @__PURE__ */ c.jsx(Hn, { ...e });
1681
+ }, Wn = "_spacing_19hqa_1", Qn = "_spacing__xxs_19hqa_1", Yn = "_spacing__xs_19hqa_4", Zn = "_spacing__sm_19hqa_7", Fn = "_spacing__md_19hqa_10", Pn = "_spacing__lg_19hqa_13", er = "_spacing__xl_19hqa_16", tr = "_spacing__xxl_19hqa_19", nr = "_spacing__xxxl_19hqa_22", Oe = {
1682
+ spacing: Wn,
1683
+ spacing__xxs: Qn,
1684
+ spacing__xs: Yn,
1685
+ spacing__sm: Zn,
1686
+ spacing__md: Fn,
1687
+ spacing__lg: Pn,
1688
+ spacing__xl: er,
1689
+ spacing__xxl: tr,
1690
+ spacing__xxxl: nr
1691
+ }, rr = (e) => {
1692
+ const { size: t } = e, s = ee(Oe.spacing, Oe[`spacing__${t}`]);
1695
1693
  return /* @__PURE__ */ c.jsx("div", { className: s });
1696
- }, er = (e) => {
1694
+ }, sr = (e) => {
1697
1695
  const {
1698
1696
  userFlow: t,
1699
1697
  pageId: s,
@@ -1737,7 +1735,7 @@ const In = (e, t, s, r) => {
1737
1735
  }
1738
1736
  }, [t, s, r, l, _]);
1739
1737
  return /* @__PURE__ */ c.jsx(
1740
- rt,
1738
+ at,
1741
1739
  {
1742
1740
  ...u,
1743
1741
  label: x,
@@ -1746,19 +1744,19 @@ const In = (e, t, s, r) => {
1746
1744
  onChange: () => !y && m()
1747
1745
  }
1748
1746
  );
1749
- }, tr = "_tableSkeleton_3nr9n_1", nr = "_tableArrayPills_3nr9n_7", Me = {
1750
- tableSkeleton: tr,
1751
- tableArrayPills: nr
1752
- }, rr = ({ values: e }) => {
1747
+ }, ar = "_tableSkeleton_3nr9n_1", or = "_tableArrayPills_3nr9n_7", Ge = {
1748
+ tableSkeleton: ar,
1749
+ tableArrayPills: or
1750
+ }, cr = ({ values: e }) => {
1753
1751
  const s = e == null ? void 0 : e.slice(0, 4), r = (e == null ? void 0 : e.length) - 4;
1754
- return /* @__PURE__ */ c.jsxs("div", { className: Me.tableArrayPills, children: [
1755
- s.map((l, o) => /* @__PURE__ */ c.jsx(de, { children: String(l) }, o)),
1756
- r > 0 && /* @__PURE__ */ c.jsxs(de, { outlined: !0, children: [
1752
+ return /* @__PURE__ */ c.jsxs("div", { className: Ge.tableArrayPills, children: [
1753
+ s.map((l, o) => /* @__PURE__ */ c.jsx(ue, { children: String(l) }, o)),
1754
+ r > 0 && /* @__PURE__ */ c.jsxs(ue, { outlined: !0, children: [
1757
1755
  "+",
1758
1756
  r
1759
1757
  ] })
1760
1758
  ] });
1761
- }, sr = ({
1759
+ }, ir = ({
1762
1760
  userFlow: e,
1763
1761
  pageId: t,
1764
1762
  tableResponseKey: s,
@@ -1768,8 +1766,7 @@ const In = (e, t, s, r) => {
1768
1766
  const { getNextUI: o, fetchAndGetNextUI: i, fetchDataSource: n } = I(), d = A(e, t, [
1769
1767
  { ...r }
1770
1768
  ]), a = (d == null ? void 0 : d[0]) || null;
1771
- if (!a)
1772
- return null;
1769
+ if (!a) return null;
1773
1770
  const {
1774
1771
  actionType: u,
1775
1772
  responseKey: f,
@@ -1811,8 +1808,7 @@ const In = (e, t, s, r) => {
1811
1808
  m,
1812
1809
  f
1813
1810
  ), b = (y = g == null ? void 0 : g.data) == null ? void 0 : y.content;
1814
- if ((b == null ? void 0 : b.type) !== "fetch")
1815
- break;
1811
+ if ((b == null ? void 0 : b.type) !== "fetch") break;
1816
1812
  const N = b == null ? void 0 : b.dataSource, p = await n(
1817
1813
  N,
1818
1814
  e,
@@ -1843,18 +1839,18 @@ const In = (e, t, s, r) => {
1843
1839
  alert(JSON.stringify(m));
1844
1840
  }
1845
1841
  }, [u, _, t, f, e]);
1846
- return He(a, {
1842
+ return We(a, {
1847
1843
  onClick: h
1848
1844
  });
1849
- }, ar = () => /* @__PURE__ */ c.jsx("div", { className: Me.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ c.jsx(
1850
- Oe,
1845
+ }, lr = () => /* @__PURE__ */ c.jsx("div", { className: Ge.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ c.jsx(
1846
+ De,
1851
1847
  {
1852
1848
  maxWidth: "100%",
1853
1849
  height: 42,
1854
1850
  radius: 8
1855
1851
  },
1856
1852
  `tableSkeletonBase${t}`
1857
- )) }), or = ({
1853
+ )) }), dr = ({
1858
1854
  userFlow: e,
1859
1855
  pageId: t,
1860
1856
  responseKey: s,
@@ -1868,7 +1864,7 @@ const In = (e, t, s, r) => {
1868
1864
  if (o != null && o.length)
1869
1865
  return o.map((C, w) => ({
1870
1866
  renderContent: (E) => /* @__PURE__ */ c.jsx(
1871
- sr,
1867
+ ir,
1872
1868
  {
1873
1869
  userFlow: e,
1874
1870
  pageId: t,
@@ -1882,7 +1878,7 @@ const In = (e, t, s, r) => {
1882
1878
  }, [o, e, t]), y = async (C = 1) => {
1883
1879
  try {
1884
1880
  a(!0);
1885
- const { jsonPathData: w, mapperData: E, jsonPathPagination: T } = l, k = xe(
1881
+ const { jsonPathData: w, mapperData: E, jsonPathPagination: T } = l, k = pe(
1886
1882
  l,
1887
1883
  C
1888
1884
  ), K = await n(
@@ -1891,7 +1887,7 @@ const In = (e, t, s, r) => {
1891
1887
  !1
1892
1888
  );
1893
1889
  h(
1894
- Be(
1890
+ ze(
1895
1891
  K == null ? void 0 : K.data,
1896
1892
  w,
1897
1893
  E,
@@ -1904,7 +1900,7 @@ const In = (e, t, s, r) => {
1904
1900
  }, x = (C) => {
1905
1901
  f(C), y(C);
1906
1902
  };
1907
- J(() => {
1903
+ V(() => {
1908
1904
  y();
1909
1905
  }, []);
1910
1906
  const m = O(() => !(_ != null && _.items) || !(i != null && i.columns) ? i == null ? void 0 : i.columns : i.columns.map((C) => {
@@ -1915,7 +1911,7 @@ const In = (e, t, s, r) => {
1915
1911
  ...C,
1916
1912
  renderCell: (T) => {
1917
1913
  const k = C.accessor ? T[C.accessor] : void 0;
1918
- return Array.isArray(k) ? /* @__PURE__ */ c.jsx(rr, { values: k }) : k;
1914
+ return Array.isArray(k) ? /* @__PURE__ */ c.jsx(cr, { values: k }) : k;
1919
1915
  }
1920
1916
  } : C;
1921
1917
  }), [_ == null ? void 0 : _.items, i == null ? void 0 : i.columns]), g = {
@@ -1924,10 +1920,10 @@ const In = (e, t, s, r) => {
1924
1920
  columns: m,
1925
1921
  rightActions: j
1926
1922
  };
1927
- return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(ar, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1928
- /* @__PURE__ */ c.jsx(st, { ...g }),
1923
+ return /* @__PURE__ */ c.jsx(c.Fragment, { children: d ? /* @__PURE__ */ c.jsx(lr, {}) : _ && ((b = _ == null ? void 0 : _.items) == null ? void 0 : b.length) > 0 ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
1924
+ /* @__PURE__ */ c.jsx(ot, { ...g }),
1929
1925
  (_ == null ? void 0 : _.pagination) && ((N = _ == null ? void 0 : _.pagination) == null ? void 0 : N.totalPages) > 1 && /* @__PURE__ */ c.jsx(
1930
- at,
1926
+ ct,
1931
1927
  {
1932
1928
  classname: { global: "row__end" },
1933
1929
  page: u,
@@ -1936,10 +1932,10 @@ const In = (e, t, s, r) => {
1936
1932
  onChange: x
1937
1933
  }
1938
1934
  )
1939
- ] }) : /* @__PURE__ */ c.jsx(he, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
1940
- }, cr = "_textFieldNotFront_cps4i_1", ir = {
1941
- textFieldNotFront: cr
1942
- }, lr = (e) => {
1935
+ ] }) : /* @__PURE__ */ c.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
1936
+ }, _r = "_textFieldNotFront_cps4i_1", ur = {
1937
+ textFieldNotFront: _r
1938
+ }, hr = (e) => {
1943
1939
  const {
1944
1940
  userFlow: t,
1945
1941
  pageId: s,
@@ -1963,13 +1959,13 @@ const In = (e, t, s, r) => {
1963
1959
  };
1964
1960
  L(t, g);
1965
1961
  };
1966
- return J(() => {
1962
+ return V(() => {
1967
1963
  f((a == null ? void 0 : a.value) ?? "");
1968
1964
  }, [a == null ? void 0 : a.value]), /* @__PURE__ */ c.jsx(
1969
- ot,
1965
+ it,
1970
1966
  {
1971
1967
  ...a,
1972
- className: ir.textFieldNotFront,
1968
+ className: ur.textFieldNotFront,
1973
1969
  allowClear: !1,
1974
1970
  label: j,
1975
1971
  value: u,
@@ -1977,7 +1973,7 @@ const In = (e, t, s, r) => {
1977
1973
  onChange: (x) => !h && y(x)
1978
1974
  }
1979
1975
  );
1980
- }, dr = ({
1976
+ }, fr = ({
1981
1977
  userFlow: e,
1982
1978
  pageId: t,
1983
1979
  responseKey: s,
@@ -1987,7 +1983,7 @@ const In = (e, t, s, r) => {
1987
1983
  redirectUrl: i
1988
1984
  }) => {
1989
1985
  const n = D(async () => {
1990
- ye(e);
1986
+ xe(e);
1991
1987
  try {
1992
1988
  switch (o) {
1993
1989
  case "AUTOCLOSE_AND_REDIRECT":
@@ -2001,7 +1997,7 @@ const In = (e, t, s, r) => {
2001
1997
  console.error("Error in toast action:", d), alert(JSON.stringify(d));
2002
1998
  }
2003
1999
  }, [o, t, s, e, i]);
2004
- return J(() => {
2000
+ return V(() => {
2005
2001
  ({
2006
2002
  info: W.info,
2007
2003
  error: W.error,
@@ -2013,10 +2009,10 @@ const In = (e, t, s, r) => {
2013
2009
  onClose: n
2014
2010
  });
2015
2011
  }, [n, e]), null;
2016
- }, _r = "_accordion_1ri2t_1", ur = "_accordionBody_1ri2t_8", qe = {
2017
- accordion: _r,
2018
- accordionBody: ur
2019
- }, hr = (e) => {
2012
+ }, yr = "_accordion_1ri2t_1", mr = "_accordionBody_1ri2t_8", Te = {
2013
+ accordion: yr,
2014
+ accordionBody: mr
2015
+ }, xr = (e) => {
2020
2016
  const {
2021
2017
  userFlow: t,
2022
2018
  pageId: s,
@@ -2057,20 +2053,20 @@ const In = (e, t, s, r) => {
2057
2053
  [t, s, r, d.actionType, a]
2058
2054
  ), m = d.disabled || _, g = {
2059
2055
  ...d,
2060
- className: qe.accordion,
2056
+ className: Te.accordion,
2061
2057
  disabled: m,
2062
2058
  checkboxChecked: u,
2063
2059
  onChanceCheckbox: d.hasCheckbox ? x : void 0,
2064
2060
  actionContent: j ? /* @__PURE__ */ c.jsx(c.Fragment, { children: j.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-action-${N}`)) }) : void 0,
2065
2061
  customContent: y ? /* @__PURE__ */ c.jsx(c.Fragment, { children: y.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-custom-${N}`)) }) : void 0,
2066
- children: h ? /* @__PURE__ */ c.jsx("section", { className: qe.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-child-${N}`)) }) : void 0
2062
+ children: h ? /* @__PURE__ */ c.jsx("section", { className: Te.accordionBody, children: h.map((b, N) => /* @__PURE__ */ c.jsx($, { children: b }, `accordion-child-${N}`)) }) : void 0
2067
2063
  };
2068
- return /* @__PURE__ */ c.jsx(ct, { ...g });
2069
- }, fr = "_drawer_13pxo_1", yr = "_drawerBody_13pxo_5", mr = "_drawerFooter_13pxo_11", le = {
2070
- drawer: fr,
2071
- drawerBody: yr,
2072
- drawerFooter: mr
2073
- }, xr = ({
2064
+ return /* @__PURE__ */ c.jsx(lt, { ...g });
2065
+ }, gr = "_drawer_13pxo_1", pr = "_drawerBody_13pxo_5", br = "_drawerFooter_13pxo_11", _e = {
2066
+ drawer: gr,
2067
+ drawerBody: pr,
2068
+ drawerFooter: br
2069
+ }, jr = ({
2074
2070
  userFlow: e,
2075
2071
  pageId: t,
2076
2072
  responseKey: s,
@@ -2090,22 +2086,22 @@ const In = (e, t, s, r) => {
2090
2086
  isOpen: a,
2091
2087
  children: null
2092
2088
  }, f = D(() => {
2093
- ye(e), Z(e, !1);
2094
- }, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Ae, { type: "h2", children: r }) : void 0, h = A(e, t, l), j = o ? A(e, t, o) : void 0;
2089
+ xe(e), Z(e, !1);
2090
+ }, [e]), _ = Array.isArray(r) ? A(e, t, r) : r ? /* @__PURE__ */ c.jsx(Re, { type: "h2", children: r }) : void 0, h = A(e, t, l), j = o ? A(e, t, o) : void 0;
2095
2091
  return /* @__PURE__ */ c.jsx(
2096
- it,
2092
+ dt,
2097
2093
  {
2098
2094
  ...u,
2099
- className: le.drawer,
2095
+ className: _e.drawer,
2100
2096
  isOpen: a,
2101
2097
  onClose: f,
2102
2098
  heightGap: 0,
2103
2099
  title: _ ? /* @__PURE__ */ c.jsx(c.Fragment, { children: Array.isArray(_) ? _.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-header-${x}`)) : _ }) : void 0,
2104
- children: /* @__PURE__ */ c.jsx("section", { className: le.drawerBody, children: h.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-body-${x}`)) }),
2105
- footer: j ? /* @__PURE__ */ c.jsx("div", { className: le.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-footer-${x}`)) }) : void 0
2100
+ children: /* @__PURE__ */ c.jsx("section", { className: _e.drawerBody, children: h.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-body-${x}`)) }),
2101
+ footer: j ? /* @__PURE__ */ c.jsx("div", { className: _e.drawerFooter, children: j.map((y, x) => /* @__PURE__ */ c.jsx($, { children: y }, `drawer-footer-${x}`)) }) : void 0
2106
2102
  }
2107
2103
  );
2108
- }, Se = (e, t, s, r, l) => {
2104
+ }, $e = (e, t, s, r, l) => {
2109
2105
  const o = A(
2110
2106
  e,
2111
2107
  t,
@@ -2115,7 +2111,7 @@ const In = (e, t, s, r) => {
2115
2111
  switch (s) {
2116
2112
  case "body":
2117
2113
  return /* @__PURE__ */ c.jsx(
2118
- Qt,
2114
+ Ft,
2119
2115
  {
2120
2116
  ...r,
2121
2117
  inputs: o || []
@@ -2124,7 +2120,7 @@ const In = (e, t, s, r) => {
2124
2120
  );
2125
2121
  case "header":
2126
2122
  return /* @__PURE__ */ c.jsx(
2127
- kn,
2123
+ On,
2128
2124
  {
2129
2125
  ...r,
2130
2126
  components: o || []
@@ -2134,15 +2130,15 @@ const In = (e, t, s, r) => {
2134
2130
  default:
2135
2131
  return null;
2136
2132
  }
2137
- }, Ar = (e, t, s, r) => {
2133
+ }, Rr = (e, t, s, r) => {
2138
2134
  var _, h, j;
2139
- const [l, o] = q(!1), i = v((y) => y), n = (_ = i[e]) == null ? void 0 : _.currentPageId, d = n ? Se(
2135
+ const [l, o] = q(!1), i = v((y) => y), n = (_ = i[e]) == null ? void 0 : _.currentPageId, d = n ? $e(
2140
2136
  e,
2141
2137
  n,
2142
2138
  "header",
2143
2139
  ((h = i[e].pages[n].page) == null ? void 0 : h.header) || null,
2144
2140
  r
2145
- ) : null, a = n ? Se(
2141
+ ) : null, a = n ? $e(
2146
2142
  e,
2147
2143
  n,
2148
2144
  "body",
@@ -2151,15 +2147,15 @@ const In = (e, t, s, r) => {
2151
2147
  ) : null, u = O(() => {
2152
2148
  var y;
2153
2149
  return /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
2154
- ((y = i[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(lt, {}),
2150
+ ((y = i[e]) == null ? void 0 : y.isLoading) && /* @__PURE__ */ c.jsx(_t, {}),
2155
2151
  d,
2156
2152
  a,
2157
- n && /* @__PURE__ */ c.jsx(On, { userFlow: e, pageId: n }),
2158
- i[e] && /* @__PURE__ */ c.jsx(dt, {})
2153
+ n && /* @__PURE__ */ c.jsx(Dn, { userFlow: e, pageId: n }),
2154
+ i[e] && /* @__PURE__ */ c.jsx(ut, {})
2159
2155
  ] });
2160
2156
  }, [d, a, n, e]), f = async () => {
2161
2157
  try {
2162
- const y = await De(
2158
+ const y = await Ie(
2163
2159
  t,
2164
2160
  e
2165
2161
  ), x = y == null ? void 0 : y.data, m = x == null ? void 0 : x.content;
@@ -2168,7 +2164,7 @@ const In = (e, t, s, r) => {
2168
2164
  console.error("[not-page]: API call failed", y), o(!0);
2169
2165
  }
2170
2166
  };
2171
- return J(() => {
2167
+ return V(() => {
2172
2168
  t != null && t.api && !s && e ? f() : !(t != null && t.api) && s && e || t != null && t.api && s && e ? oe(e, t, s) : (!(t != null && t.api) && !s || !e) && (o(!0), console.error(
2173
2169
  "[not-page]: API call failed",
2174
2170
  "not api config",
@@ -2176,7 +2172,7 @@ const In = (e, t, s, r) => {
2176
2172
  ));
2177
2173
  const y = "avocado-theme-mode-changed", x = (m) => {
2178
2174
  const g = m.detail;
2179
- ue.setThemeMode(g);
2175
+ fe.setThemeMode(g);
2180
2176
  };
2181
2177
  return window.addEventListener(y, x), () => {
2182
2178
  window.removeEventListener(y, x);
@@ -2184,9 +2180,9 @@ const In = (e, t, s, r) => {
2184
2180
  }, []), l && console.error("[not-page]: No render page"), u;
2185
2181
  };
2186
2182
  export {
2187
- Nn as Chart,
2188
- Bn as Row,
2189
- It as heading,
2190
- zt as text,
2191
- Ar as usePage
2183
+ qn as Chart,
2184
+ Kn as Row,
2185
+ Kt as heading,
2186
+ Gt as text,
2187
+ Rr as usePage
2192
2188
  };