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