@foris/avocado-not-front 5.1.4 → 5.2.1

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