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