@foris/avocado-not-front 8.2.0 → 8.4.0
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.
- package/dist/avocado-not-front/src/components/table/Table.d.ts +1 -1
- package/dist/avocado-not-front/src/components/table/tableScroll.util.d.ts +5 -8
- package/dist/avocado-not-front/src/components/tabs/Tabs.d.ts +1 -1
- package/dist/avocado-not-front/src/components/tabs/Tabs.test.d.ts +1 -0
- package/dist/avocado-not-front/src/types/components.type.d.ts +4 -5
- package/dist/avocado-not-front.es.js +395 -396
- package/dist/avocado-not-front.umd.js +3 -3
- package/package.json +3 -3
|
@@ -71,12 +71,12 @@ const Ge = "sessionId", Pn = () => sessionStorage.getItem(Ge), Me = (e) => {
|
|
|
71
71
|
});
|
|
72
72
|
}, tr = (e, t, n, s) => {
|
|
73
73
|
E.setState((o) => {
|
|
74
|
-
var
|
|
74
|
+
var l;
|
|
75
75
|
const a = o[e] ?? {}, c = a.entries ?? {}, r = Ot(
|
|
76
76
|
c,
|
|
77
77
|
n,
|
|
78
78
|
s
|
|
79
|
-
), d = (
|
|
79
|
+
), d = (l = t.components) == null ? void 0 : l.some(
|
|
80
80
|
(u) => u.component === "drawer"
|
|
81
81
|
);
|
|
82
82
|
return {
|
|
@@ -208,27 +208,27 @@ const sr = (e) => e._userFlow || null, dt = (e) => {
|
|
|
208
208
|
return Promise.reject(e);
|
|
209
209
|
if (r.onAuthenticationError || typeof r.headers == "function") {
|
|
210
210
|
if (ke)
|
|
211
|
-
return new Promise((
|
|
212
|
-
pe.push({ resolve:
|
|
213
|
-
}).then(() => V(t)).catch((
|
|
211
|
+
return new Promise((l, u) => {
|
|
212
|
+
pe.push({ resolve: l, reject: u });
|
|
213
|
+
}).then(() => V(t)).catch((l) => (console.error("[axiosInterceptors] Queued request failed:", l), Promise.reject(l)));
|
|
214
214
|
t._retry = !0, ke = !0;
|
|
215
215
|
try {
|
|
216
|
-
let
|
|
216
|
+
let l;
|
|
217
217
|
if (r.onAuthenticationError)
|
|
218
|
-
|
|
218
|
+
l = await r.onAuthenticationError();
|
|
219
219
|
else if (typeof r.headers == "function")
|
|
220
|
-
|
|
220
|
+
l = r.headers();
|
|
221
221
|
else
|
|
222
222
|
throw new Error("No refresh handler available");
|
|
223
|
-
return r.onAuthenticationError && (typeof r.headers == "string" ? it(a, JSON.stringify(
|
|
224
|
-
} catch (
|
|
223
|
+
return r.onAuthenticationError && (typeof r.headers == "string" ? it(a, JSON.stringify(l)) : it(a, l)), t.headers || (t.headers = {}), Object.assign(t.headers, l), dt(null), V(t);
|
|
224
|
+
} catch (l) {
|
|
225
225
|
return console.error(
|
|
226
226
|
"[axiosInterceptors] Token refresh failed:",
|
|
227
|
-
|
|
227
|
+
l
|
|
228
228
|
), console.error(
|
|
229
229
|
"[axiosInterceptors] Rejecting queued requests:",
|
|
230
230
|
pe.length
|
|
231
|
-
), dt(
|
|
231
|
+
), dt(l), Promise.reject(l);
|
|
232
232
|
} finally {
|
|
233
233
|
ke = !1;
|
|
234
234
|
}
|
|
@@ -271,9 +271,9 @@ function ir() {
|
|
|
271
271
|
if (ut) return ce;
|
|
272
272
|
ut = 1;
|
|
273
273
|
var e = Ft, 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, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
274
|
-
function c(r, d,
|
|
274
|
+
function c(r, d, l) {
|
|
275
275
|
var u, _ = {}, h = null, f = null;
|
|
276
|
-
|
|
276
|
+
l !== void 0 && (h = "" + l), d.key !== void 0 && (h = "" + d.key), d.ref !== void 0 && (f = d.ref);
|
|
277
277
|
for (u in d) s.call(d, u) && !a.hasOwnProperty(u) && (_[u] = d[u]);
|
|
278
278
|
if (r && r.defaultProps) for (u in d = r.defaultProps, d) _[u] === void 0 && (_[u] = d[u]);
|
|
279
279
|
return { $$typeof: t, type: r, key: h, ref: f, props: _, _owner: o.current };
|
|
@@ -284,7 +284,7 @@ var _t;
|
|
|
284
284
|
function lr() {
|
|
285
285
|
return _t || (_t = 1, Oe.exports = ir()), Oe.exports;
|
|
286
286
|
}
|
|
287
|
-
var
|
|
287
|
+
var i = lr();
|
|
288
288
|
const dr = (e) => {
|
|
289
289
|
if (!(e != null && e.content)) return null;
|
|
290
290
|
const t = {
|
|
@@ -292,19 +292,19 @@ const dr = (e) => {
|
|
|
292
292
|
children: e.content,
|
|
293
293
|
type: e.variant
|
|
294
294
|
};
|
|
295
|
-
return /* @__PURE__ */
|
|
295
|
+
return /* @__PURE__ */ i.jsx(wt, { ...t });
|
|
296
296
|
}, ur = (e) => {
|
|
297
297
|
if (!e) return null;
|
|
298
298
|
const t = {
|
|
299
299
|
...e,
|
|
300
300
|
children: e.content
|
|
301
301
|
};
|
|
302
|
-
return /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ i.jsx(Nt, { ...t });
|
|
303
303
|
}, T = (e, t, n, s) => {
|
|
304
304
|
var c;
|
|
305
305
|
const o = {
|
|
306
|
-
accordion: (r) => /* @__PURE__ */
|
|
307
|
-
aiChatPanel: (r) => /* @__PURE__ */
|
|
306
|
+
accordion: (r) => /* @__PURE__ */ i.jsx(jr, { ...r, userFlow: e, pageId: t }),
|
|
307
|
+
aiChatPanel: (r) => /* @__PURE__ */ i.jsx(
|
|
308
308
|
wr,
|
|
309
309
|
{
|
|
310
310
|
...r,
|
|
@@ -313,7 +313,7 @@ const dr = (e) => {
|
|
|
313
313
|
onResolveProps: s == null ? void 0 : s.aiChatPanel
|
|
314
314
|
}
|
|
315
315
|
),
|
|
316
|
-
aiSummaryCard: (r) => /* @__PURE__ */
|
|
316
|
+
aiSummaryCard: (r) => /* @__PURE__ */ i.jsx(
|
|
317
317
|
Sr,
|
|
318
318
|
{
|
|
319
319
|
...r,
|
|
@@ -322,29 +322,29 @@ const dr = (e) => {
|
|
|
322
322
|
onResolveProps: s == null ? void 0 : s.aiSummaryCard
|
|
323
323
|
}
|
|
324
324
|
),
|
|
325
|
-
aiPromptCodeEditor: (r) => /* @__PURE__ */
|
|
326
|
-
box: (r) => /* @__PURE__ */
|
|
327
|
-
breadcrumbs: (r) => /* @__PURE__ */
|
|
328
|
-
tooltip: (r) => /* @__PURE__ */
|
|
329
|
-
textarea: (r) => /* @__PURE__ */
|
|
330
|
-
card: (r) => /* @__PURE__ */
|
|
331
|
-
dropdownButton: (r) => /* @__PURE__ */
|
|
332
|
-
menu: (r) => /* @__PURE__ */
|
|
333
|
-
radioGroup: (r) => /* @__PURE__ */
|
|
334
|
-
stepper: (r) => /* @__PURE__ */
|
|
335
|
-
progressBar: (r) => /* @__PURE__ */
|
|
336
|
-
button: (r) => /* @__PURE__ */
|
|
337
|
-
cardAccordion: (r) => /* @__PURE__ */
|
|
338
|
-
cardNotification: (r) => /* @__PURE__ */
|
|
339
|
-
chart: (r) => /* @__PURE__ */
|
|
340
|
-
dataCard: (r) => /* @__PURE__ */
|
|
341
|
-
checkbox: (r) => /* @__PURE__ */
|
|
342
|
-
code: (r) => /* @__PURE__ */
|
|
343
|
-
divider: (r) => /* @__PURE__ */
|
|
344
|
-
drawer: (r) => /* @__PURE__ */
|
|
345
|
-
fileUpload: (r) => /* @__PURE__ */
|
|
325
|
+
aiPromptCodeEditor: (r) => /* @__PURE__ */ i.jsx(vr, { ...r, userFlow: e, pageId: t }),
|
|
326
|
+
box: (r) => /* @__PURE__ */ i.jsx(Br, { ...r, userFlow: e, pageId: t }),
|
|
327
|
+
breadcrumbs: (r) => /* @__PURE__ */ i.jsx(Wr, { ...r, userFlow: e, pageId: t }),
|
|
328
|
+
tooltip: (r) => /* @__PURE__ */ i.jsx(Ta, { ...r, userFlow: e, pageId: t }),
|
|
329
|
+
textarea: (r) => /* @__PURE__ */ i.jsx(ba, { ...r, userFlow: e, pageId: t }),
|
|
330
|
+
card: (r) => /* @__PURE__ */ i.jsx(es, { ...r, userFlow: e, pageId: t }),
|
|
331
|
+
dropdownButton: (r) => /* @__PURE__ */ i.jsx(lo, { ...r, userFlow: e, pageId: t }),
|
|
332
|
+
menu: (r) => /* @__PURE__ */ i.jsx(mo, { ...r, userFlow: e, pageId: t }),
|
|
333
|
+
radioGroup: (r) => /* @__PURE__ */ i.jsx(zr, { ...r, userFlow: e, pageId: t }),
|
|
334
|
+
stepper: (r) => /* @__PURE__ */ i.jsx(Xr, { ...r, userFlow: e, pageId: t }),
|
|
335
|
+
progressBar: (r) => /* @__PURE__ */ i.jsx(Jr, { ...r, userFlow: e, pageId: t }),
|
|
336
|
+
button: (r) => /* @__PURE__ */ i.jsx(Yr, { ...r, userFlow: e, pageId: t }),
|
|
337
|
+
cardAccordion: (r) => /* @__PURE__ */ i.jsx(Zr, { ...r, userFlow: e, pageId: t }),
|
|
338
|
+
cardNotification: (r) => /* @__PURE__ */ i.jsx(ts, { ...r, userFlow: e, pageId: t }),
|
|
339
|
+
chart: (r) => /* @__PURE__ */ i.jsx(Bs, { ...r, userFlow: e }),
|
|
340
|
+
dataCard: (r) => /* @__PURE__ */ i.jsx(Ps, { ...r, userFlow: e, pageId: t }),
|
|
341
|
+
checkbox: (r) => /* @__PURE__ */ i.jsx(Hs, { ...r, userFlow: e, pageId: t }),
|
|
342
|
+
code: (r) => /* @__PURE__ */ i.jsx(Xs, { ...r, userFlow: e, pageId: t }),
|
|
343
|
+
divider: (r) => /* @__PURE__ */ i.jsx(no, { ...r }),
|
|
344
|
+
drawer: (r) => /* @__PURE__ */ i.jsx(ao, { ...r, userFlow: e, pageId: t }),
|
|
345
|
+
fileUpload: (r) => /* @__PURE__ */ i.jsx(io, { ...r, userFlow: e, pageId: t }),
|
|
346
346
|
heading: (r) => dr(r),
|
|
347
|
-
headerNavigation: (r) => /* @__PURE__ */
|
|
347
|
+
headerNavigation: (r) => /* @__PURE__ */ i.jsx(
|
|
348
348
|
Ht,
|
|
349
349
|
{
|
|
350
350
|
...r,
|
|
@@ -353,20 +353,20 @@ const dr = (e) => {
|
|
|
353
353
|
onResolveComponentProps: s
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
|
-
link: (r) => /* @__PURE__ */
|
|
357
|
-
pill: (r) => /* @__PURE__ */
|
|
358
|
-
previewerMarkdown: (r) => /* @__PURE__ */
|
|
359
|
-
modal: (r) => /* @__PURE__ */
|
|
360
|
-
roundButton: (r) => /* @__PURE__ */
|
|
361
|
-
row: (r) => /* @__PURE__ */
|
|
362
|
-
select: (r) => /* @__PURE__ */
|
|
363
|
-
switch: (r) => /* @__PURE__ */
|
|
364
|
-
spacing: (r) => /* @__PURE__ */
|
|
365
|
-
table: (r) => /* @__PURE__ */
|
|
366
|
-
tabs: (r) => /* @__PURE__ */
|
|
356
|
+
link: (r) => /* @__PURE__ */ i.jsx(go, { ...r, userFlow: e, pageId: t }),
|
|
357
|
+
pill: (r) => /* @__PURE__ */ i.jsx(vo, { ...r }),
|
|
358
|
+
previewerMarkdown: (r) => /* @__PURE__ */ i.jsx(To, { ...r }),
|
|
359
|
+
modal: (r) => /* @__PURE__ */ i.jsx(po, { ...r, userFlow: e, pageId: t }),
|
|
360
|
+
roundButton: (r) => /* @__PURE__ */ i.jsx(Ao, { ...r, userFlow: e, pageId: t }),
|
|
361
|
+
row: (r) => /* @__PURE__ */ i.jsx(Oo, { ...r, userFlow: e, pageId: t }),
|
|
362
|
+
select: (r) => /* @__PURE__ */ i.jsx(Ho, { ...r, userFlow: e, pageId: t }),
|
|
363
|
+
switch: (r) => /* @__PURE__ */ i.jsx(Qo, { ...r, userFlow: e, pageId: t }),
|
|
364
|
+
spacing: (r) => /* @__PURE__ */ i.jsx(Yo, { ...r, userFlow: e, pageId: t }),
|
|
365
|
+
table: (r) => /* @__PURE__ */ i.jsx(ha, { ...r, userFlow: e, pageId: t }),
|
|
366
|
+
tabs: (r) => /* @__PURE__ */ i.jsx(xa, { ...r, userFlow: e, pageId: t }),
|
|
367
367
|
text: (r) => ur(r),
|
|
368
|
-
textField: (r) => /* @__PURE__ */
|
|
369
|
-
toast: (r) => /* @__PURE__ */
|
|
368
|
+
textField: (r) => /* @__PURE__ */ i.jsx(wa, { ...r, userFlow: e, pageId: t }),
|
|
369
|
+
toast: (r) => /* @__PURE__ */ i.jsx(Na, { ...r, userFlow: e, pageId: t })
|
|
370
370
|
};
|
|
371
371
|
return (c = n == null ? void 0 : n.filter(Boolean)) == null ? void 0 : c.map((r) => {
|
|
372
372
|
const d = o[r.component];
|
|
@@ -503,9 +503,9 @@ const ee = (e) => {
|
|
|
503
503
|
} };
|
|
504
504
|
}, It = async (e, t, n = "", s = {}, o = {}) => {
|
|
505
505
|
try {
|
|
506
|
-
const { callEndpoint: a } = Dt(), { api: c, headers: r } = e, d = Pn(),
|
|
507
|
-
n &&
|
|
508
|
-
const u = `${c}/not-front/next-ui/?${
|
|
506
|
+
const { callEndpoint: a } = Dt(), { api: c, headers: r } = e, d = Pn(), l = new URLSearchParams({ session_name: t });
|
|
507
|
+
n && l.append("hash_code", n), d && l.append("sessionId", d);
|
|
508
|
+
const u = `${c}/not-front/next-ui/?${l.toString()}`, _ = ee(r), h = qe(
|
|
509
509
|
u,
|
|
510
510
|
_,
|
|
511
511
|
s,
|
|
@@ -545,8 +545,8 @@ const ee = (e) => {
|
|
|
545
545
|
);
|
|
546
546
|
r.push(..._);
|
|
547
547
|
}
|
|
548
|
-
const
|
|
549
|
-
return
|
|
548
|
+
const l = r.join("&");
|
|
549
|
+
return l ? `${o}?${l}` : o;
|
|
550
550
|
}, yr = (e, t, n) => {
|
|
551
551
|
var a;
|
|
552
552
|
const o = { ...(e == null ? void 0 : e.data) ?? {}, ...t ?? {} };
|
|
@@ -558,10 +558,10 @@ const ee = (e) => {
|
|
|
558
558
|
}, ze = (e, t, n, s, o) => {
|
|
559
559
|
const { type: a, url: c, method: r, headers: d } = e;
|
|
560
560
|
if (a === "rest") {
|
|
561
|
-
const
|
|
561
|
+
const l = xr(e, t, n, o), u = yr(e, s, o);
|
|
562
562
|
return {
|
|
563
563
|
type: "rest",
|
|
564
|
-
url:
|
|
564
|
+
url: l,
|
|
565
565
|
method: $t(r),
|
|
566
566
|
headers: d,
|
|
567
567
|
data: u
|
|
@@ -591,15 +591,15 @@ async function pr(e, t, n, s, o, a) {
|
|
|
591
591
|
), r = (f = c == null ? void 0 : c.data) == null ? void 0 : f.content;
|
|
592
592
|
if ((r == null ? void 0 : r.type) !== "fetch")
|
|
593
593
|
return;
|
|
594
|
-
const d = r.responseKey ?? n,
|
|
594
|
+
const d = r.responseKey ?? n, l = await a(
|
|
595
595
|
r.dataSource,
|
|
596
596
|
e,
|
|
597
597
|
!1
|
|
598
598
|
), u = {
|
|
599
599
|
...(g = E.getState()[e]) == null ? void 0 : g.entries,
|
|
600
600
|
[d]: {
|
|
601
|
-
status:
|
|
602
|
-
content:
|
|
601
|
+
status: l == null ? void 0 : l.status,
|
|
602
|
+
content: l == null ? void 0 : l.data
|
|
603
603
|
}
|
|
604
604
|
};
|
|
605
605
|
L(e, u);
|
|
@@ -612,7 +612,7 @@ async function pr(e, t, n, s, o, a) {
|
|
|
612
612
|
h != null && h.data && q(e, h.data);
|
|
613
613
|
}
|
|
614
614
|
const H = () => {
|
|
615
|
-
const e = E((d) => d), { callEndpoint: t } = Dt(), n = async (d,
|
|
615
|
+
const e = E((d) => d), { callEndpoint: t } = Dt(), n = async (d, l, u, _, h = !0) => {
|
|
616
616
|
var f;
|
|
617
617
|
try {
|
|
618
618
|
const g = (f = e[d]) == null ? void 0 : f.apiConfig, x = {
|
|
@@ -622,28 +622,28 @@ const H = () => {
|
|
|
622
622
|
return h && Z(d, !0), await It(
|
|
623
623
|
g,
|
|
624
624
|
d,
|
|
625
|
-
|
|
625
|
+
l,
|
|
626
626
|
x
|
|
627
627
|
);
|
|
628
628
|
} catch (g) {
|
|
629
629
|
throw h && Z(d, !1), console.error("[getNextUI] Error fetching next UI:", g), g;
|
|
630
630
|
}
|
|
631
|
-
}, s = (d,
|
|
631
|
+
}, s = (d, l) => {
|
|
632
632
|
const { url: u, headers: _, data: h, params: f } = d;
|
|
633
633
|
switch ($t(d.method)) {
|
|
634
634
|
case "post":
|
|
635
|
-
return qe(u, _, h, {}, !1,
|
|
635
|
+
return qe(u, _, h, {}, !1, l);
|
|
636
636
|
case "put":
|
|
637
|
-
return fr(u, _, h, {}, !1,
|
|
637
|
+
return fr(u, _, h, {}, !1, l);
|
|
638
638
|
case "patch":
|
|
639
|
-
return gr(u, _, h, {}, !1,
|
|
639
|
+
return gr(u, _, h, {}, !1, l);
|
|
640
640
|
case "delete":
|
|
641
|
-
return mr(u, _, h, f, !1,
|
|
641
|
+
return mr(u, _, h, f, !1, l);
|
|
642
642
|
case "get":
|
|
643
643
|
default:
|
|
644
|
-
return hr(u, _, f, !1,
|
|
644
|
+
return hr(u, _, f, !1, l);
|
|
645
645
|
}
|
|
646
|
-
}, o = (d,
|
|
646
|
+
}, o = (d, l) => {
|
|
647
647
|
const { url: u, headers: _ } = d, h = {
|
|
648
648
|
query: d == null ? void 0 : d.query,
|
|
649
649
|
variables: (d == null ? void 0 : d.variables) || {}
|
|
@@ -657,23 +657,23 @@ const H = () => {
|
|
|
657
657
|
h,
|
|
658
658
|
{},
|
|
659
659
|
!1,
|
|
660
|
-
|
|
660
|
+
l
|
|
661
661
|
);
|
|
662
|
-
}, a = async (d,
|
|
662
|
+
}, a = async (d, l, u = !0) => {
|
|
663
663
|
var _, h;
|
|
664
664
|
if (!d) {
|
|
665
665
|
console.warn("[fetchDataSource] Invalid or missing dataSource");
|
|
666
666
|
return;
|
|
667
667
|
}
|
|
668
|
-
u && Z(
|
|
668
|
+
u && Z(l, !0);
|
|
669
669
|
try {
|
|
670
670
|
let f;
|
|
671
671
|
switch (d == null ? void 0 : d.type) {
|
|
672
672
|
case "rest":
|
|
673
|
-
f = s(d,
|
|
673
|
+
f = s(d, l);
|
|
674
674
|
break;
|
|
675
675
|
case "graphql":
|
|
676
|
-
f = o(d,
|
|
676
|
+
f = o(d, l);
|
|
677
677
|
break;
|
|
678
678
|
default:
|
|
679
679
|
throw new Error("[fetchDataSource] Unsupported data source type");
|
|
@@ -690,19 +690,19 @@ const H = () => {
|
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
} finally {
|
|
693
|
-
u && Z(
|
|
693
|
+
u && Z(l, !1);
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
return {
|
|
697
697
|
getNextUI: n,
|
|
698
698
|
fetchDataSource: a,
|
|
699
|
-
fetchAndGetNextUI: async (d,
|
|
699
|
+
fetchAndGetNextUI: async (d, l, u, _, h) => {
|
|
700
700
|
try {
|
|
701
701
|
Z(d, !0);
|
|
702
702
|
const f = await a(h, d, !1);
|
|
703
703
|
return f && await n(
|
|
704
704
|
d,
|
|
705
|
-
|
|
705
|
+
l,
|
|
706
706
|
u,
|
|
707
707
|
_
|
|
708
708
|
);
|
|
@@ -713,9 +713,9 @@ const H = () => {
|
|
|
713
713
|
), f;
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
|
-
runGetDataSource: (d,
|
|
716
|
+
runGetDataSource: (d, l, u, _) => pr(
|
|
717
717
|
d,
|
|
718
|
-
|
|
718
|
+
l,
|
|
719
719
|
u,
|
|
720
720
|
_,
|
|
721
721
|
n,
|
|
@@ -735,7 +735,7 @@ const H = () => {
|
|
|
735
735
|
actionContent: c,
|
|
736
736
|
components: r,
|
|
737
737
|
...d
|
|
738
|
-
} = e, { getNextUI:
|
|
738
|
+
} = e, { getNextUI: l } = H(), [u, _] = O(
|
|
739
739
|
d.checkboxChecked || !1
|
|
740
740
|
), { disabled: h } = I(
|
|
741
741
|
t,
|
|
@@ -751,7 +751,7 @@ const H = () => {
|
|
|
751
751
|
[s]: b
|
|
752
752
|
};
|
|
753
753
|
if (L(t, j), d.actionType === "GO_TO_NEXT_UI") {
|
|
754
|
-
const w = await
|
|
754
|
+
const w = await l(
|
|
755
755
|
t,
|
|
756
756
|
n,
|
|
757
757
|
j,
|
|
@@ -763,18 +763,18 @@ const H = () => {
|
|
|
763
763
|
console.error("Error in accordion checkbox action:", b), alert(JSON.stringify(b));
|
|
764
764
|
}
|
|
765
765
|
},
|
|
766
|
-
[t, n, s, d.actionType,
|
|
766
|
+
[t, n, s, d.actionType, l]
|
|
767
767
|
), y = d.disabled || h, C = {
|
|
768
768
|
...d,
|
|
769
769
|
className: ht.accordion,
|
|
770
770
|
disabled: y,
|
|
771
771
|
checkboxChecked: u,
|
|
772
772
|
onChanceCheckbox: d.hasCheckbox ? m : void 0,
|
|
773
|
-
actionContent: g ? /* @__PURE__ */
|
|
774
|
-
customContent: x ? /* @__PURE__ */
|
|
775
|
-
children: f ? /* @__PURE__ */
|
|
773
|
+
actionContent: g ? /* @__PURE__ */ i.jsx(i.Fragment, { children: g.map((p, N) => /* @__PURE__ */ i.jsx(k, { children: p }, `accordion-action-${N}`)) }) : void 0,
|
|
774
|
+
customContent: x ? /* @__PURE__ */ i.jsx(i.Fragment, { children: x.map((p, N) => /* @__PURE__ */ i.jsx(k, { children: p }, `accordion-custom-${N}`)) }) : void 0,
|
|
775
|
+
children: f ? /* @__PURE__ */ i.jsx("section", { className: ht.accordionBody, children: f.map((p, N) => /* @__PURE__ */ i.jsx(k, { children: p }, `accordion-child-${N}`)) }) : void 0
|
|
776
776
|
};
|
|
777
|
-
return /* @__PURE__ */
|
|
777
|
+
return /* @__PURE__ */ i.jsx(tn, { ...C });
|
|
778
778
|
}, wr = (e) => {
|
|
779
779
|
const t = ue.useThemeStore((c) => c.theme.mode), n = e.dataSource, s = A(() => ({
|
|
780
780
|
url: e.dataSource.url,
|
|
@@ -782,11 +782,11 @@ const H = () => {
|
|
|
782
782
|
headers: e.dataSource.headers,
|
|
783
783
|
params: n == null ? void 0 : n.data
|
|
784
784
|
}), [e.dataSource.url, e.dataSource.method, e.dataSource.headers, n == null ? void 0 : n.data]), o = e.locale ?? "en", a = A(() => {
|
|
785
|
-
var r, d,
|
|
785
|
+
var r, d, l, u, _;
|
|
786
786
|
const c = {
|
|
787
787
|
title: (r = e == null ? void 0 : e.translations) == null ? void 0 : r.title,
|
|
788
788
|
welcomeTitle: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.welcomeTitle,
|
|
789
|
-
welcomeDescription: (
|
|
789
|
+
welcomeDescription: (l = e == null ? void 0 : e.translations) == null ? void 0 : l.welcomeDescription,
|
|
790
790
|
placeholder: (u = e == null ? void 0 : e.translations) == null ? void 0 : u.placeholder,
|
|
791
791
|
disclaimer: (_ = e == null ? void 0 : e.translations) == null ? void 0 : _.disclaimer
|
|
792
792
|
};
|
|
@@ -807,7 +807,7 @@ const H = () => {
|
|
|
807
807
|
a,
|
|
808
808
|
e.initialSuggestions,
|
|
809
809
|
t
|
|
810
|
-
]), e.onResolveProps ? null : /* @__PURE__ */
|
|
810
|
+
]), e.onResolveProps ? null : /* @__PURE__ */ i.jsx(
|
|
811
811
|
$n,
|
|
812
812
|
{
|
|
813
813
|
dataSource: s,
|
|
@@ -829,7 +829,7 @@ const H = () => {
|
|
|
829
829
|
dependencies: c,
|
|
830
830
|
dataSource: r,
|
|
831
831
|
inputLabel: d,
|
|
832
|
-
inputPlaceholder:
|
|
832
|
+
inputPlaceholder: l,
|
|
833
833
|
codeBlockLabel: u
|
|
834
834
|
} = e, _ = ue.useThemeStore((p) => p.theme.mode), [h, f] = O(
|
|
835
835
|
s || ""
|
|
@@ -850,7 +850,7 @@ const H = () => {
|
|
|
850
850
|
};
|
|
851
851
|
return G(() => {
|
|
852
852
|
s !== void 0 && s !== h && f(s);
|
|
853
|
-
}, [s]), /* @__PURE__ */
|
|
853
|
+
}, [s]), /* @__PURE__ */ i.jsx("section", { className: Er.promptCodeEditor, children: /* @__PURE__ */ i.jsx(
|
|
854
854
|
Ln,
|
|
855
855
|
{
|
|
856
856
|
themeMode: _,
|
|
@@ -858,7 +858,7 @@ const H = () => {
|
|
|
858
858
|
language: m,
|
|
859
859
|
disabled: x,
|
|
860
860
|
inputLabel: d,
|
|
861
|
-
inputPlaceholder:
|
|
861
|
+
inputPlaceholder: l,
|
|
862
862
|
codeBlockLabel: u,
|
|
863
863
|
codeBlockValue: h,
|
|
864
864
|
onCodeChange: C
|
|
@@ -880,7 +880,7 @@ const H = () => {
|
|
|
880
880
|
noData: (d = e == null ? void 0 : e.translations) == null ? void 0 : d.noData
|
|
881
881
|
};
|
|
882
882
|
return Object.fromEntries(
|
|
883
|
-
Object.entries(a).filter(([,
|
|
883
|
+
Object.entries(a).filter(([, l]) => !!l)
|
|
884
884
|
);
|
|
885
885
|
}, [e == null ? void 0 : e.translations]);
|
|
886
886
|
return G(() => {
|
|
@@ -889,7 +889,7 @@ const H = () => {
|
|
|
889
889
|
locale: s,
|
|
890
890
|
translations: o
|
|
891
891
|
});
|
|
892
|
-
}, [e.onResolveProps, n, s, o]), e.onResolveProps ? null : /* @__PURE__ */
|
|
892
|
+
}, [e.onResolveProps, n, s, o]), e.onResolveProps ? null : /* @__PURE__ */ i.jsx("section", { className: Ar.summaryCard, children: /* @__PURE__ */ i.jsx(
|
|
893
893
|
qn,
|
|
894
894
|
{
|
|
895
895
|
dataSource: n,
|
|
@@ -942,7 +942,7 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
942
942
|
body: Rr,
|
|
943
943
|
body__embedded: Dr,
|
|
944
944
|
body_content: Ir
|
|
945
|
-
}, $r = ({ inputs: e, embedded: t }) => /* @__PURE__ */
|
|
945
|
+
}, $r = ({ inputs: e, embedded: t }) => /* @__PURE__ */ i.jsx("section", { className: J(De.body, t && De.body__embedded), children: /* @__PURE__ */ i.jsx("div", { className: De.body_content, children: e.map((n, s) => /* @__PURE__ */ i.jsx(k, { children: n }, s)) }) }), Lr = "_boxNotFront_67q2e_1", qr = "_slotStack_67q2e_5", gt = {
|
|
946
946
|
boxNotFront: Lr,
|
|
947
947
|
slotStack: qr
|
|
948
948
|
}, Br = (e) => {
|
|
@@ -957,8 +957,8 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
957
957
|
t,
|
|
958
958
|
n,
|
|
959
959
|
c != null && c.length ? c : null
|
|
960
|
-
),
|
|
961
|
-
return /* @__PURE__ */
|
|
960
|
+
), l = d && d.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: gt.slotStack, children: d.map((u, _) => /* @__PURE__ */ i.jsx(k, { children: u }, `box-${o}-${_}`)) }) : null;
|
|
961
|
+
return /* @__PURE__ */ i.jsx(nn, { className: gt.boxNotFront, darkMode: r, children: l });
|
|
962
962
|
}, Hr = "_fieldset_1xrth_1", Ur = "_fieldsetColumn_1xrth_8", Gr = "_legend_1xrth_14", Mr = "_options_1xrth_20", Kr = "_optionsRow_1xrth_25", Vr = "_optionsColumn_1xrth_36", F = {
|
|
963
963
|
fieldset: Hr,
|
|
964
964
|
fieldsetColumn: Ur,
|
|
@@ -976,9 +976,9 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
976
976
|
required: c,
|
|
977
977
|
actionType: r,
|
|
978
978
|
dependencies: d,
|
|
979
|
-
direction:
|
|
979
|
+
direction: l,
|
|
980
980
|
items: u
|
|
981
|
-
} = e, _ =
|
|
981
|
+
} = e, _ = l === "column" ? "column" : "row", { getNextUI: h } = H(), { disabled: f } = I(
|
|
982
982
|
t,
|
|
983
983
|
d
|
|
984
984
|
), g = E(
|
|
@@ -1018,7 +1018,7 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
1018
1018
|
t
|
|
1019
1019
|
]
|
|
1020
1020
|
);
|
|
1021
|
-
return /* @__PURE__ */
|
|
1021
|
+
return /* @__PURE__ */ i.jsxs(
|
|
1022
1022
|
"fieldset",
|
|
1023
1023
|
{
|
|
1024
1024
|
className: J(
|
|
@@ -1026,15 +1026,15 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
1026
1026
|
_ === "column" && F.fieldsetColumn
|
|
1027
1027
|
),
|
|
1028
1028
|
children: [
|
|
1029
|
-
y ? /* @__PURE__ */
|
|
1030
|
-
/* @__PURE__ */
|
|
1029
|
+
y ? /* @__PURE__ */ i.jsx("legend", { className: F.legend, children: y }) : null,
|
|
1030
|
+
/* @__PURE__ */ i.jsx(
|
|
1031
1031
|
"div",
|
|
1032
1032
|
{
|
|
1033
1033
|
className: J(
|
|
1034
1034
|
F.options,
|
|
1035
1035
|
_ === "column" ? F.optionsColumn : F.optionsRow
|
|
1036
1036
|
),
|
|
1037
|
-
children: u.map((p) => /* @__PURE__ */
|
|
1037
|
+
children: u.map((p) => /* @__PURE__ */ i.jsx(
|
|
1038
1038
|
rn,
|
|
1039
1039
|
{
|
|
1040
1040
|
name: s,
|
|
@@ -1062,7 +1062,7 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
1062
1062
|
items: a,
|
|
1063
1063
|
itemActive: c,
|
|
1064
1064
|
darkMode: r
|
|
1065
|
-
}) => /* @__PURE__ */
|
|
1065
|
+
}) => /* @__PURE__ */ i.jsx(sn, { items: a, itemActive: c, darkMode: r }), Jr = ({
|
|
1066
1066
|
userFlow: e,
|
|
1067
1067
|
pageId: t,
|
|
1068
1068
|
component: n,
|
|
@@ -1071,7 +1071,7 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
1071
1071
|
total: a,
|
|
1072
1072
|
done: c,
|
|
1073
1073
|
inProgress: r
|
|
1074
|
-
}) => /* @__PURE__ */
|
|
1074
|
+
}) => /* @__PURE__ */ i.jsx(on, { total: a, done: c, inProgress: r }), Xe = (e, t) => {
|
|
1075
1075
|
const { getNextUI: n } = H();
|
|
1076
1076
|
return S(
|
|
1077
1077
|
async ({ hashCode: s, responseKey: o }) => {
|
|
@@ -1102,7 +1102,7 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
1102
1102
|
() => t.map((a, c) => c === t.length - 1 ? { title: a.title } : a.actionType === "REDIRECT" ? { title: a.title, path: a.redirectUrl } : a.actionType === "GO_TO_NEXT_UI" ? {
|
|
1103
1103
|
title: a.title,
|
|
1104
1104
|
path: "#",
|
|
1105
|
-
component: /* @__PURE__ */
|
|
1105
|
+
component: /* @__PURE__ */ i.jsx(
|
|
1106
1106
|
"a",
|
|
1107
1107
|
{
|
|
1108
1108
|
onClick: (r) => {
|
|
@@ -1113,14 +1113,14 @@ const J = /* @__PURE__ */ cr(Or), Rr = "_body_6n5z9_1", Dr = "_body__embedded_6n
|
|
|
1113
1113
|
} : { title: a.title }),
|
|
1114
1114
|
[t, s]
|
|
1115
1115
|
);
|
|
1116
|
-
return /* @__PURE__ */
|
|
1116
|
+
return /* @__PURE__ */ i.jsx(an, { items: o });
|
|
1117
1117
|
};
|
|
1118
1118
|
function te(e, t) {
|
|
1119
1119
|
const { getNextUI: n, fetchDataSource: s, fetchAndGetNextUI: o, runGetDataSource: a } = H();
|
|
1120
1120
|
return S(
|
|
1121
1121
|
async (c) => {
|
|
1122
1122
|
var f, g;
|
|
1123
|
-
const { responseKey: r, actionType: d, dataSource:
|
|
1123
|
+
const { responseKey: r, actionType: d, dataSource: l, redirectUrl: u, dependencies: _ } = c, h = (f = E.getState()[e]) == null ? void 0 : f.entries;
|
|
1124
1124
|
if (!Rt(h, _))
|
|
1125
1125
|
try {
|
|
1126
1126
|
const x = {
|
|
@@ -1153,14 +1153,14 @@ function te(e, t) {
|
|
|
1153
1153
|
t,
|
|
1154
1154
|
x,
|
|
1155
1155
|
r,
|
|
1156
|
-
|
|
1156
|
+
l
|
|
1157
1157
|
);
|
|
1158
1158
|
m != null && m.data && q(e, m == null ? void 0 : m.data);
|
|
1159
1159
|
break;
|
|
1160
1160
|
}
|
|
1161
1161
|
case "FETCH_DATA_SOURCE": {
|
|
1162
1162
|
const m = await s(
|
|
1163
|
-
|
|
1163
|
+
l,
|
|
1164
1164
|
e,
|
|
1165
1165
|
!1
|
|
1166
1166
|
);
|
|
@@ -1211,12 +1211,12 @@ const Yr = (e) => {
|
|
|
1211
1211
|
content: c,
|
|
1212
1212
|
dataSource: r,
|
|
1213
1213
|
redirectUrl: d,
|
|
1214
|
-
dependencies:
|
|
1214
|
+
dependencies: l,
|
|
1215
1215
|
onClick: u,
|
|
1216
1216
|
..._
|
|
1217
1217
|
} = e, h = te(t, n), { disabled: f } = I(
|
|
1218
1218
|
t,
|
|
1219
|
-
|
|
1219
|
+
l
|
|
1220
1220
|
), g = {
|
|
1221
1221
|
..._,
|
|
1222
1222
|
children: c ?? a
|
|
@@ -1231,7 +1231,7 @@ const Yr = (e) => {
|
|
|
1231
1231
|
actionType: o,
|
|
1232
1232
|
dataSource: r,
|
|
1233
1233
|
redirectUrl: d,
|
|
1234
|
-
dependencies:
|
|
1234
|
+
dependencies: l
|
|
1235
1235
|
});
|
|
1236
1236
|
} catch (b) {
|
|
1237
1237
|
console.error("[ButtonNotFront] Action failed:", b);
|
|
@@ -1241,12 +1241,12 @@ const Yr = (e) => {
|
|
|
1241
1241
|
}, [
|
|
1242
1242
|
o,
|
|
1243
1243
|
r,
|
|
1244
|
-
|
|
1244
|
+
l,
|
|
1245
1245
|
d,
|
|
1246
1246
|
s,
|
|
1247
1247
|
h
|
|
1248
1248
|
]);
|
|
1249
|
-
return /* @__PURE__ */
|
|
1249
|
+
return /* @__PURE__ */ i.jsx(
|
|
1250
1250
|
cn,
|
|
1251
1251
|
{
|
|
1252
1252
|
...g,
|
|
@@ -1267,7 +1267,7 @@ const Yr = (e) => {
|
|
|
1267
1267
|
dependencies: c,
|
|
1268
1268
|
content: r,
|
|
1269
1269
|
actionContent: d,
|
|
1270
|
-
...
|
|
1270
|
+
...l
|
|
1271
1271
|
} = e, { disabled: u } = I(
|
|
1272
1272
|
t,
|
|
1273
1273
|
c
|
|
@@ -1279,11 +1279,11 @@ const Yr = (e) => {
|
|
|
1279
1279
|
t,
|
|
1280
1280
|
n,
|
|
1281
1281
|
d && d.length > 0 ? d : null
|
|
1282
|
-
), f = _ && _.length > 0 ? /* @__PURE__ */
|
|
1283
|
-
return /* @__PURE__ */
|
|
1282
|
+
), f = _ && _.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: Be.slotStack, children: _.map((m, y) => /* @__PURE__ */ i.jsx(k, { children: m }, `card-accordion-body-${o}-${y}`)) }) : void 0, g = h && h.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: Be.slotStack, children: h.map((m, y) => /* @__PURE__ */ i.jsx(k, { children: m }, `card-accordion-actions-${o}-${y}`)) }) : void 0, x = l.disabled || u;
|
|
1283
|
+
return /* @__PURE__ */ i.jsx(
|
|
1284
1284
|
ln,
|
|
1285
1285
|
{
|
|
1286
|
-
...
|
|
1286
|
+
...l,
|
|
1287
1287
|
disabled: x,
|
|
1288
1288
|
actionContent: g,
|
|
1289
1289
|
children: f ?? null
|
|
@@ -1302,7 +1302,7 @@ const Yr = (e) => {
|
|
|
1302
1302
|
content: c,
|
|
1303
1303
|
colorId: r,
|
|
1304
1304
|
disabled: d,
|
|
1305
|
-
actionType:
|
|
1305
|
+
actionType: l,
|
|
1306
1306
|
dataSource: u,
|
|
1307
1307
|
redirectUrl: _,
|
|
1308
1308
|
dependencies: h
|
|
@@ -1313,15 +1313,15 @@ const Yr = (e) => {
|
|
|
1313
1313
|
t,
|
|
1314
1314
|
n,
|
|
1315
1315
|
c && c.length > 0 ? c : null
|
|
1316
|
-
), N = p && p.length > 0 ? /* @__PURE__ */
|
|
1316
|
+
), N = p && p.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: mt.slotStack, children: p.map((j, w) => /* @__PURE__ */ i.jsx(k, { children: j }, `card-body-${o}-${w}`)) }) : null, b = S(async () => {
|
|
1317
1317
|
var j;
|
|
1318
|
-
if (!(!
|
|
1318
|
+
if (!(!l || C))
|
|
1319
1319
|
try {
|
|
1320
1320
|
const w = {
|
|
1321
1321
|
...(j = E.getState()[t]) == null ? void 0 : j.entries,
|
|
1322
1322
|
[a]: { status: 200 }
|
|
1323
1323
|
};
|
|
1324
|
-
switch (L(t, w),
|
|
1324
|
+
switch (L(t, w), l) {
|
|
1325
1325
|
case "CLOSE_MODAL":
|
|
1326
1326
|
Ve(t, !1);
|
|
1327
1327
|
break;
|
|
@@ -1338,7 +1338,7 @@ const Yr = (e) => {
|
|
|
1338
1338
|
n,
|
|
1339
1339
|
w,
|
|
1340
1340
|
a,
|
|
1341
|
-
|
|
1341
|
+
l === "GO_TO_NEXT_UI"
|
|
1342
1342
|
);
|
|
1343
1343
|
R != null && R.data && q(t, R == null ? void 0 : R.data);
|
|
1344
1344
|
break;
|
|
@@ -1367,13 +1367,13 @@ const Yr = (e) => {
|
|
|
1367
1367
|
_ && (window.location.href = _);
|
|
1368
1368
|
break;
|
|
1369
1369
|
default:
|
|
1370
|
-
console.warn(`Unhandled card actionType: ${
|
|
1370
|
+
console.warn(`Unhandled card actionType: ${l}`);
|
|
1371
1371
|
}
|
|
1372
1372
|
} catch (w) {
|
|
1373
1373
|
alert(JSON.stringify(w));
|
|
1374
1374
|
}
|
|
1375
1375
|
}, [
|
|
1376
|
-
|
|
1376
|
+
l,
|
|
1377
1377
|
u,
|
|
1378
1378
|
C,
|
|
1379
1379
|
x,
|
|
@@ -1385,13 +1385,13 @@ const Yr = (e) => {
|
|
|
1385
1385
|
m,
|
|
1386
1386
|
t
|
|
1387
1387
|
]);
|
|
1388
|
-
return /* @__PURE__ */
|
|
1388
|
+
return /* @__PURE__ */ i.jsx(
|
|
1389
1389
|
dn,
|
|
1390
1390
|
{
|
|
1391
1391
|
className: mt.cardNotFront,
|
|
1392
1392
|
colorId: r,
|
|
1393
1393
|
disabled: C,
|
|
1394
|
-
onClick:
|
|
1394
|
+
onClick: l && !C ? () => void b() : void 0,
|
|
1395
1395
|
children: N
|
|
1396
1396
|
}
|
|
1397
1397
|
);
|
|
@@ -1405,16 +1405,16 @@ const Yr = (e) => {
|
|
|
1405
1405
|
content: c,
|
|
1406
1406
|
description: r,
|
|
1407
1407
|
...d
|
|
1408
|
-
} = e,
|
|
1408
|
+
} = e, l = Array.isArray(c), u = T(
|
|
1409
1409
|
t,
|
|
1410
1410
|
n,
|
|
1411
|
-
|
|
1411
|
+
l && c.length > 0 ? c : null
|
|
1412
1412
|
);
|
|
1413
1413
|
let _;
|
|
1414
|
-
return u && u.length > 0 ? _ = /* @__PURE__ */
|
|
1415
|
-
r ? /* @__PURE__ */
|
|
1416
|
-
u.map((h, f) => /* @__PURE__ */
|
|
1417
|
-
] }) : _ = (typeof c == "string" ? c : void 0) ?? r, /* @__PURE__ */
|
|
1414
|
+
return u && u.length > 0 ? _ = /* @__PURE__ */ i.jsxs("div", { className: Be.slotStack, children: [
|
|
1415
|
+
r ? /* @__PURE__ */ i.jsx(Nt, { type: "sm", children: r }) : null,
|
|
1416
|
+
u.map((h, f) => /* @__PURE__ */ i.jsx(k, { children: h }, `card-notification-body-${o}-${f}`))
|
|
1417
|
+
] }) : _ = (typeof c == "string" ? c : void 0) ?? r, /* @__PURE__ */ i.jsx(ye, { ...d, children: _ });
|
|
1418
1418
|
}, Ie = (e) => Array.isArray(e) ? e : typeof e == "object" ? JSON.stringify(e) : e, ns = (e, t) => {
|
|
1419
1419
|
if (!t || e == null)
|
|
1420
1420
|
return null;
|
|
@@ -1449,7 +1449,7 @@ const Yr = (e) => {
|
|
|
1449
1449
|
return f;
|
|
1450
1450
|
} else
|
|
1451
1451
|
return u;
|
|
1452
|
-
}), c = $.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? o.length, r = $.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = s != null && s.hasMore ? !!$.value(e, s.hasMore) : void 0,
|
|
1452
|
+
}), c = $.value(e, (s == null ? void 0 : s.size) ?? "$.meta.size") ?? o.length, r = $.value(e, (s == null ? void 0 : s.total) ?? "$.meta.total") ?? 0, d = s != null && s.hasMore ? !!$.value(e, s.hasMore) : void 0, l = {
|
|
1453
1453
|
size: c,
|
|
1454
1454
|
total: r,
|
|
1455
1455
|
totalPages: s != null && s.totalPages ? $.value(
|
|
@@ -1458,7 +1458,7 @@ const Yr = (e) => {
|
|
|
1458
1458
|
) : c > 0 ? Math.ceil(r / c) : 0,
|
|
1459
1459
|
...d !== void 0 ? { hasMore: d } : {}
|
|
1460
1460
|
};
|
|
1461
|
-
return { items: a, pagination:
|
|
1461
|
+
return { items: a, pagination: l };
|
|
1462
1462
|
}, je = ({
|
|
1463
1463
|
width: e,
|
|
1464
1464
|
height: t,
|
|
@@ -1468,10 +1468,10 @@ const Yr = (e) => {
|
|
|
1468
1468
|
children: a
|
|
1469
1469
|
}) => {
|
|
1470
1470
|
const c = t ?? z, r = n ? { layout: n } : {};
|
|
1471
|
-
return e ? /* @__PURE__ */
|
|
1471
|
+
return e ? /* @__PURE__ */ i.jsx(o, { width: e, height: c, data: s, ...r, children: a }) : /* @__PURE__ */ i.jsx(At, { width: "100%", height: c, children: /* @__PURE__ */ i.jsx(o, { data: s, ...r, children: a }) });
|
|
1472
1472
|
}, ne = ({ withPadding: e = !1 }) => {
|
|
1473
|
-
const t = (n) => /* @__PURE__ */
|
|
1474
|
-
return /* @__PURE__ */
|
|
1473
|
+
const t = (n) => /* @__PURE__ */ i.jsx("span", { style: { color: U.labelColor }, children: n });
|
|
1474
|
+
return /* @__PURE__ */ i.jsx(
|
|
1475
1475
|
Bn,
|
|
1476
1476
|
{
|
|
1477
1477
|
formatter: t,
|
|
@@ -1502,13 +1502,13 @@ const Yr = (e) => {
|
|
|
1502
1502
|
if (s) {
|
|
1503
1503
|
const h = (u = t[0]) == null ? void 0 : u.payload;
|
|
1504
1504
|
if (h && h[s] !== void 0 && h[s] !== null)
|
|
1505
|
-
return /* @__PURE__ */
|
|
1505
|
+
return /* @__PURE__ */ i.jsx("div", { style: a, children: /* @__PURE__ */ i.jsx("p", { style: { margin: 0 }, children: h[s] }) });
|
|
1506
1506
|
}
|
|
1507
|
-
const c = (_ = t[0]) == null ? void 0 : _.payload, r = (o == null ? void 0 : o.label) ?? "Cobertura", d = o ? c == null ? void 0 : c[o.denominatorKey] : void 0,
|
|
1508
|
-
return /* @__PURE__ */
|
|
1509
|
-
/* @__PURE__ */
|
|
1510
|
-
t.map((h, f) => /* @__PURE__ */
|
|
1511
|
-
|
|
1507
|
+
const c = (_ = t[0]) == null ? void 0 : _.payload, r = (o == null ? void 0 : o.label) ?? "Cobertura", d = o ? c == null ? void 0 : c[o.denominatorKey] : void 0, l = o && d !== void 0 && d !== null && d > 0;
|
|
1508
|
+
return /* @__PURE__ */ i.jsxs("div", { style: a, children: [
|
|
1509
|
+
/* @__PURE__ */ i.jsx("p", { style: { margin: "0 0 4px 0", fontWeight: "bold" }, children: n }),
|
|
1510
|
+
t.map((h, f) => /* @__PURE__ */ i.jsx("p", { style: { margin: "2px 0", color: h.color }, children: `${h.name}: ${h.value}` }, f)),
|
|
1511
|
+
l && /* @__PURE__ */ i.jsx("p", { style: { margin: "2px 0" }, children: `${r}: ${Math.round(
|
|
1512
1512
|
c[o.numeratorKey] / d * 100
|
|
1513
1513
|
)}%` })
|
|
1514
1514
|
] });
|
|
@@ -1516,11 +1516,11 @@ const Yr = (e) => {
|
|
|
1516
1516
|
tooltipKey: e,
|
|
1517
1517
|
tooltipCoverage: t,
|
|
1518
1518
|
defaultIndex: n
|
|
1519
|
-
} = {}) => /* @__PURE__ */
|
|
1519
|
+
} = {}) => /* @__PURE__ */ i.jsx(
|
|
1520
1520
|
Hn,
|
|
1521
1521
|
{
|
|
1522
1522
|
defaultIndex: n,
|
|
1523
|
-
content: (s) => /* @__PURE__ */
|
|
1523
|
+
content: (s) => /* @__PURE__ */ i.jsx(
|
|
1524
1524
|
rs,
|
|
1525
1525
|
{
|
|
1526
1526
|
...s,
|
|
@@ -1529,7 +1529,7 @@ const Yr = (e) => {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
)
|
|
1531
1531
|
}
|
|
1532
|
-
), we = ({ dataKey: e, hide: t = !1, type: n }) => /* @__PURE__ */
|
|
1532
|
+
), we = ({ dataKey: e, hide: t = !1, type: n }) => /* @__PURE__ */ i.jsx(
|
|
1533
1533
|
Un,
|
|
1534
1534
|
{
|
|
1535
1535
|
...e ? { dataKey: e } : {},
|
|
@@ -1546,7 +1546,7 @@ const Yr = (e) => {
|
|
|
1546
1546
|
width: n,
|
|
1547
1547
|
yAxisId: s,
|
|
1548
1548
|
orientation: o
|
|
1549
|
-
} = {}) => /* @__PURE__ */
|
|
1549
|
+
} = {}) => /* @__PURE__ */ i.jsx(
|
|
1550
1550
|
Gn,
|
|
1551
1551
|
{
|
|
1552
1552
|
...e ? { type: e } : {},
|
|
@@ -1562,13 +1562,13 @@ const Yr = (e) => {
|
|
|
1562
1562
|
}
|
|
1563
1563
|
), ss = (e) => {
|
|
1564
1564
|
const { data: t, xKey: n, yKeys: s, tooltipKey: o, width: a } = e;
|
|
1565
|
-
return /* @__PURE__ */
|
|
1566
|
-
/* @__PURE__ */
|
|
1567
|
-
/* @__PURE__ */
|
|
1568
|
-
/* @__PURE__ */
|
|
1569
|
-
/* @__PURE__ */
|
|
1570
|
-
/* @__PURE__ */
|
|
1571
|
-
s.map((c, r) => /* @__PURE__ */
|
|
1565
|
+
return /* @__PURE__ */ i.jsxs(je, { width: a, data: t, Chart: Mn, children: [
|
|
1566
|
+
/* @__PURE__ */ i.jsx(Ce, { strokeDasharray: "3 3" }),
|
|
1567
|
+
/* @__PURE__ */ i.jsx(we, { dataKey: n }),
|
|
1568
|
+
/* @__PURE__ */ i.jsx(le, {}),
|
|
1569
|
+
/* @__PURE__ */ i.jsx(re, { tooltipKey: o }),
|
|
1570
|
+
/* @__PURE__ */ i.jsx(ne, {}),
|
|
1571
|
+
s.map((c, r) => /* @__PURE__ */ i.jsx(
|
|
1572
1572
|
St,
|
|
1573
1573
|
{
|
|
1574
1574
|
type: "monotone",
|
|
@@ -1591,10 +1591,10 @@ const Yr = (e) => {
|
|
|
1591
1591
|
() => os(s, o),
|
|
1592
1592
|
[s, o]
|
|
1593
1593
|
), d = S(
|
|
1594
|
-
(
|
|
1594
|
+
(l) => a ? l[a] : null,
|
|
1595
1595
|
[a]
|
|
1596
1596
|
);
|
|
1597
|
-
return /* @__PURE__ */
|
|
1597
|
+
return /* @__PURE__ */ i.jsx(
|
|
1598
1598
|
un,
|
|
1599
1599
|
{
|
|
1600
1600
|
data: t,
|
|
@@ -1625,7 +1625,7 @@ const cs = (e, t) => {
|
|
|
1625
1625
|
const n = e.color ?? B[t % B.length], s = e.label ?? e.key, o = e.yAxisId ? { yAxisId: e.yAxisId } : {};
|
|
1626
1626
|
switch (e.type) {
|
|
1627
1627
|
case "area":
|
|
1628
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ i.jsx(
|
|
1629
1629
|
St,
|
|
1630
1630
|
{
|
|
1631
1631
|
dataKey: e.key,
|
|
@@ -1639,7 +1639,7 @@ const cs = (e, t) => {
|
|
|
1639
1639
|
e.key
|
|
1640
1640
|
);
|
|
1641
1641
|
case "line":
|
|
1642
|
-
return /* @__PURE__ */
|
|
1642
|
+
return /* @__PURE__ */ i.jsx(
|
|
1643
1643
|
Vn,
|
|
1644
1644
|
{
|
|
1645
1645
|
dataKey: e.key,
|
|
@@ -1653,7 +1653,7 @@ const cs = (e, t) => {
|
|
|
1653
1653
|
e.key
|
|
1654
1654
|
);
|
|
1655
1655
|
case "bar":
|
|
1656
|
-
return /* @__PURE__ */
|
|
1656
|
+
return /* @__PURE__ */ i.jsx(
|
|
1657
1657
|
Ue,
|
|
1658
1658
|
{
|
|
1659
1659
|
dataKey: e.key,
|
|
@@ -1680,20 +1680,20 @@ const cs = (e, t) => {
|
|
|
1680
1680
|
} = e;
|
|
1681
1681
|
!s.length && qt.NODE_ENV;
|
|
1682
1682
|
const d = cs(s, r);
|
|
1683
|
-
return /* @__PURE__ */
|
|
1684
|
-
/* @__PURE__ */
|
|
1685
|
-
/* @__PURE__ */
|
|
1686
|
-
d.length > 0 ? d.map((
|
|
1683
|
+
return /* @__PURE__ */ i.jsxs(je, { width: a, data: t, Chart: Kn, children: [
|
|
1684
|
+
/* @__PURE__ */ i.jsx(Ce, { strokeDasharray: "3 3" }),
|
|
1685
|
+
/* @__PURE__ */ i.jsx(we, { dataKey: n }),
|
|
1686
|
+
d.length > 0 ? d.map((l) => /* @__PURE__ */ i.jsx(
|
|
1687
1687
|
le,
|
|
1688
1688
|
{
|
|
1689
|
-
yAxisId:
|
|
1690
|
-
orientation:
|
|
1689
|
+
yAxisId: l.id,
|
|
1690
|
+
orientation: l.orientation
|
|
1691
1691
|
},
|
|
1692
|
-
|
|
1693
|
-
)) : /* @__PURE__ */
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
c && /* @__PURE__ */
|
|
1696
|
-
s.map((
|
|
1692
|
+
l.id
|
|
1693
|
+
)) : /* @__PURE__ */ i.jsx(le, {}),
|
|
1694
|
+
/* @__PURE__ */ i.jsx(re, { tooltipKey: o }),
|
|
1695
|
+
c && /* @__PURE__ */ i.jsx(ne, {}),
|
|
1696
|
+
s.map((l, u) => is(l, u))
|
|
1697
1697
|
] });
|
|
1698
1698
|
}, ds = (e) => `palette-${e % B.length + 1}-50`, us = (e, t, n) => e.map((s, o) => ({
|
|
1699
1699
|
label: String(s[t] ?? ""),
|
|
@@ -1716,7 +1716,7 @@ const cs = (e, t) => {
|
|
|
1716
1716
|
defaultIndex: c,
|
|
1717
1717
|
showLegend: r = !0
|
|
1718
1718
|
} = e, d = s[0];
|
|
1719
|
-
return /* @__PURE__ */
|
|
1719
|
+
return /* @__PURE__ */ i.jsx("div", { className: fs.donutChart, style: { height: z }, children: /* @__PURE__ */ i.jsx(
|
|
1720
1720
|
_n,
|
|
1721
1721
|
{
|
|
1722
1722
|
segments: us(t, n, d),
|
|
@@ -1725,9 +1725,9 @@ const cs = (e, t) => {
|
|
|
1725
1725
|
autoLegendReserve: r ? As : 0,
|
|
1726
1726
|
defaultIndex: c,
|
|
1727
1727
|
..._s(a),
|
|
1728
|
-
chartChildren: /* @__PURE__ */
|
|
1729
|
-
!a && /* @__PURE__ */
|
|
1730
|
-
r && /* @__PURE__ */
|
|
1728
|
+
chartChildren: /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
1729
|
+
!a && /* @__PURE__ */ i.jsx(re, { tooltipKey: o, defaultIndex: c }),
|
|
1730
|
+
r && /* @__PURE__ */ i.jsx(ne, {})
|
|
1731
1731
|
] })
|
|
1732
1732
|
}
|
|
1733
1733
|
) });
|
|
@@ -1766,14 +1766,14 @@ const Cs = (e) => {
|
|
|
1766
1766
|
chartHeight: c,
|
|
1767
1767
|
tooltipCoverage: r,
|
|
1768
1768
|
showLegend: d = !0,
|
|
1769
|
-
yKeyLabels:
|
|
1769
|
+
yKeyLabels: l,
|
|
1770
1770
|
yAxisWidth: u
|
|
1771
1771
|
} = e, _ = xs(
|
|
1772
1772
|
t.length,
|
|
1773
1773
|
a,
|
|
1774
1774
|
c
|
|
1775
1775
|
), h = ys(t, s, u);
|
|
1776
|
-
return /* @__PURE__ */
|
|
1776
|
+
return /* @__PURE__ */ i.jsxs(
|
|
1777
1777
|
je,
|
|
1778
1778
|
{
|
|
1779
1779
|
height: _,
|
|
@@ -1781,16 +1781,16 @@ const Cs = (e) => {
|
|
|
1781
1781
|
data: t,
|
|
1782
1782
|
Chart: kt,
|
|
1783
1783
|
children: [
|
|
1784
|
-
/* @__PURE__ */
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
/* @__PURE__ */
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
d && /* @__PURE__ */
|
|
1789
|
-
n.map((f, g) => /* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ i.jsx(Ce, { strokeDasharray: "3 3", horizontal: !1 }),
|
|
1785
|
+
/* @__PURE__ */ i.jsx(we, { type: "number" }),
|
|
1786
|
+
/* @__PURE__ */ i.jsx(le, { type: "category", dataKey: s, width: h }),
|
|
1787
|
+
/* @__PURE__ */ i.jsx(re, { tooltipKey: o, tooltipCoverage: r }),
|
|
1788
|
+
d && /* @__PURE__ */ i.jsx(ne, {}),
|
|
1789
|
+
n.map((f, g) => /* @__PURE__ */ i.jsx(
|
|
1790
1790
|
Ue,
|
|
1791
1791
|
{
|
|
1792
1792
|
dataKey: f,
|
|
1793
|
-
name: (
|
|
1793
|
+
name: (l == null ? void 0 : l[f]) ?? f,
|
|
1794
1794
|
fill: B[g % B.length]
|
|
1795
1795
|
},
|
|
1796
1796
|
f
|
|
@@ -1809,42 +1809,42 @@ const Cs = (e) => {
|
|
|
1809
1809
|
chartHeight: r
|
|
1810
1810
|
}) => {
|
|
1811
1811
|
const d = A(
|
|
1812
|
-
() => n.map((
|
|
1812
|
+
() => n.map((l) => {
|
|
1813
1813
|
var u;
|
|
1814
1814
|
return {
|
|
1815
|
-
key:
|
|
1816
|
-
label: ((u = s == null ? void 0 : s[
|
|
1817
|
-
color: bs(o,
|
|
1815
|
+
key: l,
|
|
1816
|
+
label: ((u = s == null ? void 0 : s[l]) == null ? void 0 : u.trim()) || l,
|
|
1817
|
+
color: bs(o, l)
|
|
1818
1818
|
};
|
|
1819
1819
|
}),
|
|
1820
1820
|
[n, s, o]
|
|
1821
1821
|
);
|
|
1822
|
-
return /* @__PURE__ */
|
|
1822
|
+
return /* @__PURE__ */ i.jsx(
|
|
1823
1823
|
hn,
|
|
1824
1824
|
{
|
|
1825
1825
|
data: e,
|
|
1826
1826
|
xKey: t,
|
|
1827
1827
|
series: d,
|
|
1828
|
-
label: d.map(({ label:
|
|
1828
|
+
label: d.map(({ label: l }) => l).join(", "),
|
|
1829
1829
|
height: r ?? z,
|
|
1830
1830
|
maxSeries: d.length || void 0,
|
|
1831
1831
|
showLegend: c,
|
|
1832
1832
|
showTooltip: !0,
|
|
1833
1833
|
showCursor: !0,
|
|
1834
|
-
renderTooltip: a ? (
|
|
1834
|
+
renderTooltip: a ? (l) => l[a] : void 0
|
|
1835
1835
|
}
|
|
1836
1836
|
);
|
|
1837
1837
|
};
|
|
1838
1838
|
var ws = { NODE_ENV: "production" };
|
|
1839
1839
|
const Ns = (e) => {
|
|
1840
1840
|
const { data: t, xKey: n, series: s = [], tooltipKey: o, width: a } = e;
|
|
1841
|
-
return !s.length && ws.NODE_ENV, /* @__PURE__ */
|
|
1842
|
-
/* @__PURE__ */
|
|
1843
|
-
/* @__PURE__ */
|
|
1844
|
-
/* @__PURE__ */
|
|
1845
|
-
/* @__PURE__ */
|
|
1846
|
-
/* @__PURE__ */
|
|
1847
|
-
s.map((c, r) => /* @__PURE__ */
|
|
1841
|
+
return !s.length && ws.NODE_ENV, /* @__PURE__ */ i.jsxs(je, { width: a, data: t, Chart: kt, children: [
|
|
1842
|
+
/* @__PURE__ */ i.jsx(Ce, { strokeDasharray: "3 3" }),
|
|
1843
|
+
/* @__PURE__ */ i.jsx(we, { dataKey: n }),
|
|
1844
|
+
/* @__PURE__ */ i.jsx(le, {}),
|
|
1845
|
+
/* @__PURE__ */ i.jsx(re, { tooltipKey: o }),
|
|
1846
|
+
/* @__PURE__ */ i.jsx(ne, {}),
|
|
1847
|
+
s.map((c, r) => /* @__PURE__ */ i.jsx(
|
|
1848
1848
|
Ue,
|
|
1849
1849
|
{
|
|
1850
1850
|
dataKey: c.key,
|
|
@@ -1860,12 +1860,12 @@ const Ns = (e) => {
|
|
|
1860
1860
|
cx: c,
|
|
1861
1861
|
cy: r,
|
|
1862
1862
|
midAngle: d,
|
|
1863
|
-
innerRadius:
|
|
1863
|
+
innerRadius: l,
|
|
1864
1864
|
outerRadius: u,
|
|
1865
1865
|
value: _
|
|
1866
1866
|
}) => {
|
|
1867
|
-
const h = Math.PI / 180, f = 25 +
|
|
1868
|
-
return /* @__PURE__ */
|
|
1867
|
+
const h = Math.PI / 180, f = 25 + l + (u - l), g = c + f * Math.cos(-(d ?? 0) * h), x = r + f * Math.sin(-(d ?? 0) * h);
|
|
1868
|
+
return /* @__PURE__ */ i.jsx(
|
|
1869
1869
|
"text",
|
|
1870
1870
|
{
|
|
1871
1871
|
x: g,
|
|
@@ -1878,10 +1878,10 @@ const Ns = (e) => {
|
|
|
1878
1878
|
}
|
|
1879
1879
|
);
|
|
1880
1880
|
};
|
|
1881
|
-
return /* @__PURE__ */
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
/* @__PURE__ */
|
|
1881
|
+
return /* @__PURE__ */ i.jsx(At, { width: "100%", height: z, children: /* @__PURE__ */ i.jsxs(zn, { children: [
|
|
1882
|
+
/* @__PURE__ */ i.jsx(re, { tooltipKey: o }),
|
|
1883
|
+
/* @__PURE__ */ i.jsx(ne, {}),
|
|
1884
|
+
/* @__PURE__ */ i.jsx(
|
|
1885
1885
|
Xn,
|
|
1886
1886
|
{
|
|
1887
1887
|
data: t,
|
|
@@ -1889,7 +1889,7 @@ const Ns = (e) => {
|
|
|
1889
1889
|
nameKey: n,
|
|
1890
1890
|
label: a,
|
|
1891
1891
|
outerRadius: 120,
|
|
1892
|
-
children: t.map((c, r) => /* @__PURE__ */
|
|
1892
|
+
children: t.map((c, r) => /* @__PURE__ */ i.jsx(
|
|
1893
1893
|
Jn,
|
|
1894
1894
|
{
|
|
1895
1895
|
fill: B[r % B.length]
|
|
@@ -1945,7 +1945,7 @@ const Ns = (e) => {
|
|
|
1945
1945
|
o,
|
|
1946
1946
|
e,
|
|
1947
1947
|
c
|
|
1948
|
-
), d = o > 0 && r > o,
|
|
1948
|
+
), d = o > 0 && r > o, l = S(
|
|
1949
1949
|
(u) => {
|
|
1950
1950
|
if (u.defaultPrevented || u.target !== u.currentTarget)
|
|
1951
1951
|
return;
|
|
@@ -1968,7 +1968,7 @@ const Ns = (e) => {
|
|
|
1968
1968
|
},
|
|
1969
1969
|
[c]
|
|
1970
1970
|
);
|
|
1971
|
-
return /* @__PURE__ */
|
|
1971
|
+
return /* @__PURE__ */ i.jsx(
|
|
1972
1972
|
"div",
|
|
1973
1973
|
{
|
|
1974
1974
|
ref: s,
|
|
@@ -1976,8 +1976,8 @@ const Ns = (e) => {
|
|
|
1976
1976
|
role: d ? "region" : void 0,
|
|
1977
1977
|
tabIndex: d ? 0 : void 0,
|
|
1978
1978
|
"aria-label": d ? Ls : void 0,
|
|
1979
|
-
onKeyDown: d ?
|
|
1980
|
-
children: /* @__PURE__ */
|
|
1979
|
+
onKeyDown: d ? l : void 0,
|
|
1980
|
+
children: /* @__PURE__ */ i.jsx(
|
|
1981
1981
|
"div",
|
|
1982
1982
|
{
|
|
1983
1983
|
className: xt.chartScrollViewport_track,
|
|
@@ -1988,7 +1988,7 @@ const Ns = (e) => {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
);
|
|
1990
1990
|
}, Bs = (e) => {
|
|
1991
|
-
const { component: t, userFlow: n, hash: s, responseKey: o, dataSource: a, ...c } = e, r = Ds[c.type], { fetchDataSource: d } = H(), [
|
|
1991
|
+
const { component: t, userFlow: n, hash: s, responseKey: o, dataSource: a, ...c } = e, r = Ds[c.type], { fetchDataSource: d } = H(), [l, u] = O(!1), [_, h] = O([]), f = async () => {
|
|
1992
1992
|
var m, y;
|
|
1993
1993
|
try {
|
|
1994
1994
|
u(!0);
|
|
@@ -2008,19 +2008,19 @@ const Ns = (e) => {
|
|
|
2008
2008
|
if (G(() => {
|
|
2009
2009
|
r && (a ? f() : h(c.data));
|
|
2010
2010
|
}, []), !r)
|
|
2011
|
-
return /* @__PURE__ */
|
|
2011
|
+
return /* @__PURE__ */ i.jsx("div", { children: "Not supported chart type" });
|
|
2012
2012
|
const g = {
|
|
2013
2013
|
...c,
|
|
2014
2014
|
data: _
|
|
2015
2015
|
};
|
|
2016
|
-
return
|
|
2016
|
+
return l ? /* @__PURE__ */ i.jsx(Et, { height: 400 }) : _.length === 0 ? /* @__PURE__ */ i.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : Rs.has(c.type) ? /* @__PURE__ */ i.jsx(
|
|
2017
2017
|
qs,
|
|
2018
2018
|
{
|
|
2019
2019
|
dataLength: _.length,
|
|
2020
2020
|
minCategoryWidth: c.minCategoryWidth,
|
|
2021
|
-
children: (m) => /* @__PURE__ */
|
|
2021
|
+
children: (m) => /* @__PURE__ */ i.jsx(r, { ...g, width: m })
|
|
2022
2022
|
}
|
|
2023
|
-
) : /* @__PURE__ */
|
|
2023
|
+
) : /* @__PURE__ */ i.jsx(r, { ...g });
|
|
2024
2024
|
}, Hs = (e) => {
|
|
2025
2025
|
const {
|
|
2026
2026
|
userFlow: t,
|
|
@@ -2031,9 +2031,9 @@ const Ns = (e) => {
|
|
|
2031
2031
|
value: c,
|
|
2032
2032
|
required: r,
|
|
2033
2033
|
dependencies: d,
|
|
2034
|
-
...
|
|
2034
|
+
...l
|
|
2035
2035
|
} = e, u = {
|
|
2036
|
-
...
|
|
2036
|
+
...l
|
|
2037
2037
|
}, { getNextUI: _ } = H(), [h, f] = O(c || !1), { disabled: g } = I(
|
|
2038
2038
|
t,
|
|
2039
2039
|
d
|
|
@@ -2066,7 +2066,7 @@ const Ns = (e) => {
|
|
|
2066
2066
|
console.error("Error in checkbox action:", p), alert(JSON.stringify(p));
|
|
2067
2067
|
}
|
|
2068
2068
|
}, [t, n, s, o, h]), y = (u == null ? void 0 : u.disabled) ?? g;
|
|
2069
|
-
return /* @__PURE__ */
|
|
2069
|
+
return /* @__PURE__ */ i.jsx(
|
|
2070
2070
|
fn,
|
|
2071
2071
|
{
|
|
2072
2072
|
...u,
|
|
@@ -2095,13 +2095,13 @@ const Ns = (e) => {
|
|
|
2095
2095
|
value: c,
|
|
2096
2096
|
required: r,
|
|
2097
2097
|
dependencies: d,
|
|
2098
|
-
disabled:
|
|
2098
|
+
disabled: l,
|
|
2099
2099
|
showPreview: u,
|
|
2100
2100
|
height: _ = "400px"
|
|
2101
2101
|
} = e, [h, f] = O(c ?? ""), g = ue.useThemeStore((N) => N.theme.mode), { disabled: x } = I(
|
|
2102
2102
|
t,
|
|
2103
2103
|
d
|
|
2104
|
-
), m =
|
|
2104
|
+
), m = l ?? x, y = {
|
|
2105
2105
|
json: ct(),
|
|
2106
2106
|
markdown: Qn(),
|
|
2107
2107
|
sql: Zn(),
|
|
@@ -2113,10 +2113,10 @@ const Ns = (e) => {
|
|
|
2113
2113
|
};
|
|
2114
2114
|
L(t, b);
|
|
2115
2115
|
};
|
|
2116
|
-
return /* @__PURE__ */
|
|
2117
|
-
C && C !== "" && /* @__PURE__ */
|
|
2118
|
-
/* @__PURE__ */
|
|
2119
|
-
/* @__PURE__ */
|
|
2116
|
+
return /* @__PURE__ */ i.jsxs("div", { className: P.codeEditor, children: [
|
|
2117
|
+
C && C !== "" && /* @__PURE__ */ i.jsx("label", { className: P.codeEditor_label, children: C }),
|
|
2118
|
+
/* @__PURE__ */ i.jsxs("div", { className: P.codeEditor_wrapper, children: [
|
|
2119
|
+
/* @__PURE__ */ i.jsx(
|
|
2120
2120
|
Yn,
|
|
2121
2121
|
{
|
|
2122
2122
|
className: P.input,
|
|
@@ -2129,7 +2129,7 @@ const Ns = (e) => {
|
|
|
2129
2129
|
editable: !m
|
|
2130
2130
|
}
|
|
2131
2131
|
),
|
|
2132
|
-
o === "markdown" && u && /* @__PURE__ */
|
|
2132
|
+
o === "markdown" && u && /* @__PURE__ */ i.jsx("div", { className: P.preview, style: { height: _ }, children: /* @__PURE__ */ i.jsx(vt, { className: P.preview_inner, children: h }) })
|
|
2133
2133
|
] })
|
|
2134
2134
|
] });
|
|
2135
2135
|
}, Js = "_slotStack_6n2wy_5", Ws = {
|
|
@@ -2155,9 +2155,9 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2155
2155
|
"textarea"
|
|
2156
2156
|
]), He = (e, t) => {
|
|
2157
2157
|
if (e != null && e.length)
|
|
2158
|
-
return /* @__PURE__ */
|
|
2158
|
+
return /* @__PURE__ */ i.jsx("div", { className: Ws.slotStack, children: e.map((n, s) => {
|
|
2159
2159
|
var o;
|
|
2160
|
-
return /* @__PURE__ */
|
|
2160
|
+
return /* @__PURE__ */ i.jsx(k, { children: n }, ((o = t == null ? void 0 : t[s]) == null ? void 0 : o.hash) ?? s);
|
|
2161
2161
|
}) });
|
|
2162
2162
|
}, Zs = ({
|
|
2163
2163
|
userFlow: e,
|
|
@@ -2169,7 +2169,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2169
2169
|
topContent: c,
|
|
2170
2170
|
icon: r,
|
|
2171
2171
|
headerStatusColor: d,
|
|
2172
|
-
...
|
|
2172
|
+
...l
|
|
2173
2173
|
}) => {
|
|
2174
2174
|
const u = d ? `palette_${d}_50` : void 0, _ = T(
|
|
2175
2175
|
e,
|
|
@@ -2180,10 +2180,10 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2180
2180
|
t,
|
|
2181
2181
|
c != null && c.length ? c : null
|
|
2182
2182
|
);
|
|
2183
|
-
return /* @__PURE__ */
|
|
2183
|
+
return /* @__PURE__ */ i.jsx(
|
|
2184
2184
|
Tt,
|
|
2185
2185
|
{
|
|
2186
|
-
...
|
|
2186
|
+
...l,
|
|
2187
2187
|
icon: r,
|
|
2188
2188
|
headerStatusColor: u,
|
|
2189
2189
|
topContent: He(h, c),
|
|
@@ -2200,7 +2200,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2200
2200
|
dependencies: c,
|
|
2201
2201
|
content: r,
|
|
2202
2202
|
icon: d,
|
|
2203
|
-
ariaLabel:
|
|
2203
|
+
ariaLabel: l,
|
|
2204
2204
|
description: u,
|
|
2205
2205
|
descriptionBottom: _,
|
|
2206
2206
|
disabled: h,
|
|
@@ -2228,7 +2228,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2228
2228
|
}) : void 0, v = h ?? j;
|
|
2229
2229
|
w && (r != null && r.some((X) => Qs.has(X.component))) && Ys.NODE_ENV;
|
|
2230
2230
|
const R = w ? { onClick: w, disabled: v } : {};
|
|
2231
|
-
return /* @__PURE__ */
|
|
2231
|
+
return /* @__PURE__ */ i.jsx(
|
|
2232
2232
|
Tt,
|
|
2233
2233
|
{
|
|
2234
2234
|
version: "v2",
|
|
@@ -2237,7 +2237,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2237
2237
|
showBorder: x,
|
|
2238
2238
|
borderColor: m,
|
|
2239
2239
|
title: y,
|
|
2240
|
-
ariaLabel:
|
|
2240
|
+
ariaLabel: l,
|
|
2241
2241
|
descriptionTop: C,
|
|
2242
2242
|
descriptionBottom: _ ?? u,
|
|
2243
2243
|
pillLabel: p,
|
|
@@ -2246,9 +2246,9 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2246
2246
|
children: He(N, r)
|
|
2247
2247
|
}
|
|
2248
2248
|
);
|
|
2249
|
-
}, Ps = (e) => e.version === "v2" ? /* @__PURE__ */
|
|
2249
|
+
}, Ps = (e) => e.version === "v2" ? /* @__PURE__ */ i.jsx(Fs, { ...e }) : /* @__PURE__ */ i.jsx(Zs, { ...e }), eo = "_dividerNotFront_tze3j_1", to = {
|
|
2250
2250
|
dividerNotFront: eo
|
|
2251
|
-
}, no = (e) => /* @__PURE__ */
|
|
2251
|
+
}, no = (e) => /* @__PURE__ */ i.jsx(gn, { ...e, className: to.dividerNotFront }), ro = "_drawer_13pxo_1", so = "_drawerBody_13pxo_5", oo = "_drawerFooter_13pxo_11", $e = {
|
|
2252
2252
|
drawer: ro,
|
|
2253
2253
|
drawerBody: so,
|
|
2254
2254
|
drawerFooter: oo
|
|
@@ -2267,24 +2267,24 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2267
2267
|
}), d = E((m) => {
|
|
2268
2268
|
var y;
|
|
2269
2269
|
return (y = m[e]) == null ? void 0 : y.isLoading;
|
|
2270
|
-
}),
|
|
2270
|
+
}), l = r && !d, u = {
|
|
2271
2271
|
...c,
|
|
2272
|
-
isOpen:
|
|
2272
|
+
isOpen: l,
|
|
2273
2273
|
children: null
|
|
2274
2274
|
}, _ = S(() => {
|
|
2275
2275
|
Ke(e), ie(e, !1);
|
|
2276
|
-
}, [e]), h = Array.isArray(s) ? T(e, t, s) : s ? /* @__PURE__ */
|
|
2277
|
-
return /* @__PURE__ */
|
|
2276
|
+
}, [e]), h = Array.isArray(s) ? T(e, t, s) : s ? /* @__PURE__ */ i.jsx(wt, { type: "h2", children: s }) : void 0, f = T(e, t, o), g = a ? T(e, t, a) : void 0;
|
|
2277
|
+
return /* @__PURE__ */ i.jsx(
|
|
2278
2278
|
mn,
|
|
2279
2279
|
{
|
|
2280
2280
|
...u,
|
|
2281
2281
|
className: $e.drawer,
|
|
2282
|
-
isOpen:
|
|
2282
|
+
isOpen: l,
|
|
2283
2283
|
onClose: _,
|
|
2284
2284
|
heightGap: 50,
|
|
2285
|
-
title: h ? /* @__PURE__ */
|
|
2286
|
-
children: /* @__PURE__ */
|
|
2287
|
-
footer: g ? /* @__PURE__ */
|
|
2285
|
+
title: h ? /* @__PURE__ */ i.jsx(i.Fragment, { children: Array.isArray(h) ? h.map((m, y) => /* @__PURE__ */ i.jsx(k, { children: m }, `drawer-header-${y}`)) : h }) : void 0,
|
|
2286
|
+
children: /* @__PURE__ */ i.jsx("section", { className: $e.drawerBody, children: f.map((m, y) => /* @__PURE__ */ i.jsx(k, { children: m }, `drawer-body-${y}`)) }),
|
|
2287
|
+
footer: g ? /* @__PURE__ */ i.jsx("div", { className: $e.drawerFooter, children: g.map((m, y) => /* @__PURE__ */ i.jsx(k, { children: m }, `drawer-footer-${y}`)) }) : void 0
|
|
2288
2288
|
}
|
|
2289
2289
|
);
|
|
2290
2290
|
}, Je = (e, t, n) => {
|
|
@@ -2310,7 +2310,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2310
2310
|
templateRedirectUrl: c,
|
|
2311
2311
|
templateTarget: r = "_blank",
|
|
2312
2312
|
dependencies: d,
|
|
2313
|
-
uploadStatus:
|
|
2313
|
+
uploadStatus: l = "idle",
|
|
2314
2314
|
notificationVisible: u = !1,
|
|
2315
2315
|
rule1: _,
|
|
2316
2316
|
rule2: h,
|
|
@@ -2328,13 +2328,13 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2328
2328
|
), N = S(() => {
|
|
2329
2329
|
x(null);
|
|
2330
2330
|
}, [x]);
|
|
2331
|
-
return /* @__PURE__ */
|
|
2331
|
+
return /* @__PURE__ */ i.jsx(
|
|
2332
2332
|
xn,
|
|
2333
2333
|
{
|
|
2334
2334
|
...f,
|
|
2335
2335
|
rules: co(_, h),
|
|
2336
2336
|
file: g,
|
|
2337
|
-
uploadStatus:
|
|
2337
|
+
uploadStatus: l,
|
|
2338
2338
|
disabled: y,
|
|
2339
2339
|
notificationVisible: u,
|
|
2340
2340
|
onFileChange: p,
|
|
@@ -2352,7 +2352,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2352
2352
|
content: c,
|
|
2353
2353
|
items: r,
|
|
2354
2354
|
disabled: d,
|
|
2355
|
-
variant:
|
|
2355
|
+
variant: l,
|
|
2356
2356
|
leftIcon: u,
|
|
2357
2357
|
rightIcon: _
|
|
2358
2358
|
} = e, h = te(t, n), f = A(
|
|
@@ -2370,14 +2370,14 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2370
2370
|
})),
|
|
2371
2371
|
[r, h]
|
|
2372
2372
|
);
|
|
2373
|
-
return /* @__PURE__ */
|
|
2373
|
+
return /* @__PURE__ */ i.jsx(
|
|
2374
2374
|
yn,
|
|
2375
2375
|
{
|
|
2376
2376
|
disabled: d,
|
|
2377
|
-
variant:
|
|
2377
|
+
variant: l,
|
|
2378
2378
|
items: f,
|
|
2379
|
-
children: /* @__PURE__ */
|
|
2380
|
-
u ? /* @__PURE__ */
|
|
2379
|
+
children: /* @__PURE__ */ i.jsxs(k, { children: [
|
|
2380
|
+
u ? /* @__PURE__ */ i.jsx(
|
|
2381
2381
|
at,
|
|
2382
2382
|
{
|
|
2383
2383
|
name: u,
|
|
@@ -2386,7 +2386,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2386
2386
|
}
|
|
2387
2387
|
) : null,
|
|
2388
2388
|
c,
|
|
2389
|
-
_ ? /* @__PURE__ */
|
|
2389
|
+
_ ? /* @__PURE__ */ i.jsx(
|
|
2390
2390
|
at,
|
|
2391
2391
|
{
|
|
2392
2392
|
name: _,
|
|
@@ -2400,7 +2400,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2400
2400
|
}, uo = "_header_g1eri_1", _o = "_header_content_g1eri_5", yt = {
|
|
2401
2401
|
header: uo,
|
|
2402
2402
|
header_content: _o
|
|
2403
|
-
}, ho = ({ components: e = [] }) => /* @__PURE__ */
|
|
2403
|
+
}, ho = ({ components: e = [] }) => /* @__PURE__ */ i.jsx("section", { className: J(yt.header, "avocado-dark-theme"), children: /* @__PURE__ */ i.jsx("div", { className: yt.header_content, children: e.map((t, n) => /* @__PURE__ */ i.jsx(k, { children: t }, n)) }) }), fo = (e, t, n, s, o) => {
|
|
2404
2404
|
const a = Xe(
|
|
2405
2405
|
e,
|
|
2406
2406
|
n
|
|
@@ -2409,15 +2409,15 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2409
2409
|
}, d = s.map((u, _) => _ === s.length - 1 || !u.actionType ? { title: u.title } : u.actionType === "REDIRECT" ? { title: u.title, path: u.redirectUrl } : {
|
|
2410
2410
|
title: u.title,
|
|
2411
2411
|
path: "#",
|
|
2412
|
-
component: /* @__PURE__ */
|
|
2413
|
-
}),
|
|
2412
|
+
component: /* @__PURE__ */ i.jsx("a", { onClick: (h) => void r(h, u) })
|
|
2413
|
+
}), l = o.map((u) => ({
|
|
2414
2414
|
label: u.content ?? u.label ?? "",
|
|
2415
2415
|
icon: u.leftIcon,
|
|
2416
2416
|
onClick: (_) => {
|
|
2417
2417
|
_.preventDefault(), c(u);
|
|
2418
2418
|
}
|
|
2419
2419
|
}));
|
|
2420
|
-
return { breadcrumbs: d, menu:
|
|
2420
|
+
return { breadcrumbs: d, menu: l };
|
|
2421
2421
|
}, Ht = ({
|
|
2422
2422
|
userFlow: e,
|
|
2423
2423
|
pageId: t,
|
|
@@ -2428,7 +2428,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2428
2428
|
menuItems: c = [],
|
|
2429
2429
|
components: r,
|
|
2430
2430
|
onResolveComponentProps: d,
|
|
2431
|
-
...
|
|
2431
|
+
...l
|
|
2432
2432
|
}) => {
|
|
2433
2433
|
const { breadcrumbs: u, menu: _ } = fo(
|
|
2434
2434
|
e,
|
|
@@ -2442,9 +2442,9 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2442
2442
|
r ?? null,
|
|
2443
2443
|
d
|
|
2444
2444
|
);
|
|
2445
|
-
return /* @__PURE__ */
|
|
2445
|
+
return /* @__PURE__ */ i.jsx(pn, { ...l, breadcrumbsItems: u, menuItems: _, children: h != null && h.length ? h.map((f, g) => {
|
|
2446
2446
|
var x;
|
|
2447
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ i.jsx(k, { children: f }, ((x = r == null ? void 0 : r[g]) == null ? void 0 : x.hash) ?? g);
|
|
2448
2448
|
}) : void 0 });
|
|
2449
2449
|
}, go = (e) => {
|
|
2450
2450
|
const {
|
|
@@ -2456,7 +2456,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2456
2456
|
redirectUrl: c,
|
|
2457
2457
|
target: r,
|
|
2458
2458
|
dependencies: d,
|
|
2459
|
-
component:
|
|
2459
|
+
component: l,
|
|
2460
2460
|
hash: u,
|
|
2461
2461
|
..._
|
|
2462
2462
|
} = e, { getNextUI: h } = H(), { disabled: f } = I(
|
|
@@ -2499,7 +2499,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2499
2499
|
alert(JSON.stringify(C));
|
|
2500
2500
|
}
|
|
2501
2501
|
}, [o, h, n, c, s, r, t]), m = g.disabled ?? f;
|
|
2502
|
-
return /* @__PURE__ */
|
|
2502
|
+
return /* @__PURE__ */ i.jsx(
|
|
2503
2503
|
bn,
|
|
2504
2504
|
{
|
|
2505
2505
|
...g,
|
|
@@ -2518,7 +2518,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2518
2518
|
items: c,
|
|
2519
2519
|
closeOnClick: r,
|
|
2520
2520
|
disabled: d,
|
|
2521
|
-
listOrigin:
|
|
2521
|
+
listOrigin: l,
|
|
2522
2522
|
size: u,
|
|
2523
2523
|
variant: _
|
|
2524
2524
|
} = e, h = te(t, n), f = A(
|
|
@@ -2538,13 +2538,13 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2538
2538
|
})),
|
|
2539
2539
|
[c, h]
|
|
2540
2540
|
);
|
|
2541
|
-
return /* @__PURE__ */
|
|
2541
|
+
return /* @__PURE__ */ i.jsx(
|
|
2542
2542
|
Cn,
|
|
2543
2543
|
{
|
|
2544
2544
|
items: f,
|
|
2545
2545
|
closeOnClick: r,
|
|
2546
2546
|
disabled: d,
|
|
2547
|
-
listOrigin:
|
|
2547
|
+
listOrigin: l,
|
|
2548
2548
|
size: u,
|
|
2549
2549
|
variant: _
|
|
2550
2550
|
}
|
|
@@ -2564,22 +2564,22 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2564
2564
|
const d = E((y) => {
|
|
2565
2565
|
var C;
|
|
2566
2566
|
return (C = y[e]) == null ? void 0 : C.isModalOpen;
|
|
2567
|
-
}),
|
|
2567
|
+
}), l = E((y) => {
|
|
2568
2568
|
var C;
|
|
2569
2569
|
return (C = y[e]) == null ? void 0 : C.isLoading;
|
|
2570
|
-
}), u = d && !
|
|
2570
|
+
}), u = d && !l, _ = {
|
|
2571
2571
|
...r
|
|
2572
2572
|
}, h = (_ == null ? void 0 : _.headerStatusColor) ?? c, f = S(() => {
|
|
2573
2573
|
Ke(e), Ve(e, !1);
|
|
2574
2574
|
}, [e, n]), g = Array.isArray(s) ? T(e, t, s) : s, x = T(e, t, o), m = T(e, t, a);
|
|
2575
|
-
return /* @__PURE__ */
|
|
2575
|
+
return /* @__PURE__ */ i.jsx(
|
|
2576
2576
|
jn,
|
|
2577
2577
|
{
|
|
2578
2578
|
..._,
|
|
2579
2579
|
headerStatusColor: h,
|
|
2580
|
-
header: typeof g == "string" ? g : /* @__PURE__ */
|
|
2581
|
-
children: /* @__PURE__ */
|
|
2582
|
-
actions: /* @__PURE__ */
|
|
2580
|
+
header: typeof g == "string" ? g : /* @__PURE__ */ i.jsx(i.Fragment, { children: g.map((y, C) => /* @__PURE__ */ i.jsx(k, { children: y }, `modal-header-${C}`)) }),
|
|
2581
|
+
children: /* @__PURE__ */ i.jsx("section", { className: yo.modalContent, children: x.map((y, C) => /* @__PURE__ */ i.jsx(k, { children: y }, `modal-body-${C}`)) }),
|
|
2582
|
+
actions: /* @__PURE__ */ i.jsx(i.Fragment, { children: m.map((y, C) => /* @__PURE__ */ i.jsx(k, { children: y }, `modal-footer-${C}`)) }),
|
|
2583
2583
|
open: u,
|
|
2584
2584
|
onClose: f
|
|
2585
2585
|
}
|
|
@@ -2598,9 +2598,9 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2598
2598
|
t,
|
|
2599
2599
|
s
|
|
2600
2600
|
);
|
|
2601
|
-
return /* @__PURE__ */
|
|
2602
|
-
const
|
|
2603
|
-
return /* @__PURE__ */
|
|
2601
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: o == null ? void 0 : o.map((r, d) => {
|
|
2602
|
+
const l = `overlay-${d}-${n == null ? void 0 : n.hash}`;
|
|
2603
|
+
return /* @__PURE__ */ i.jsx(k, { children: r }, l);
|
|
2604
2604
|
}) });
|
|
2605
2605
|
}, Co = [
|
|
2606
2606
|
"success",
|
|
@@ -2678,10 +2678,10 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2678
2678
|
textColor: (s == null ? void 0 : s.textColor) ?? o.textColor,
|
|
2679
2679
|
iconColor: (s == null ? void 0 : s.iconColor) ?? o.iconColor
|
|
2680
2680
|
};
|
|
2681
|
-
return /* @__PURE__ */
|
|
2681
|
+
return /* @__PURE__ */ i.jsx(Le, { ...a });
|
|
2682
2682
|
}, To = (e) => {
|
|
2683
2683
|
const { content: t } = e;
|
|
2684
|
-
return /* @__PURE__ */
|
|
2684
|
+
return /* @__PURE__ */ i.jsx(vt, { children: t });
|
|
2685
2685
|
}, Ao = (e) => {
|
|
2686
2686
|
const {
|
|
2687
2687
|
userFlow: t,
|
|
@@ -2692,7 +2692,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2692
2692
|
dependencies: c,
|
|
2693
2693
|
onClick: r,
|
|
2694
2694
|
...d
|
|
2695
|
-
} = e,
|
|
2695
|
+
} = e, l = te(t, n), { disabled: u } = I(
|
|
2696
2696
|
t,
|
|
2697
2697
|
c
|
|
2698
2698
|
), _ = {
|
|
@@ -2703,7 +2703,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2703
2703
|
const y = o === "FETCH_DATA_SOURCE";
|
|
2704
2704
|
y && (x.current = !0, g(!0));
|
|
2705
2705
|
try {
|
|
2706
|
-
await
|
|
2706
|
+
await l({
|
|
2707
2707
|
responseKey: s,
|
|
2708
2708
|
actionType: o,
|
|
2709
2709
|
dataSource: a,
|
|
@@ -2714,8 +2714,8 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2714
2714
|
} finally {
|
|
2715
2715
|
y && (x.current = !1, g(!1));
|
|
2716
2716
|
}
|
|
2717
|
-
}, [o, a, c, s,
|
|
2718
|
-
return /* @__PURE__ */
|
|
2717
|
+
}, [o, a, c, s, l]);
|
|
2718
|
+
return /* @__PURE__ */ i.jsx(
|
|
2719
2719
|
wn,
|
|
2720
2720
|
{
|
|
2721
2721
|
..._,
|
|
@@ -2776,18 +2776,18 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2776
2776
|
gap: a = "md",
|
|
2777
2777
|
justifyContent: c = "start",
|
|
2778
2778
|
alignItems: r = "stretch"
|
|
2779
|
-
} = e, d = Array.isArray(o) ? o.map((
|
|
2779
|
+
} = e, d = Array.isArray(o) ? o.map((l, u) => {
|
|
2780
2780
|
const _ = `col_${u}`, h = `col_${u}`;
|
|
2781
|
-
if (Array.isArray(
|
|
2781
|
+
if (Array.isArray(l))
|
|
2782
2782
|
return {
|
|
2783
2783
|
gap: "md",
|
|
2784
2784
|
justifyContent: "start",
|
|
2785
2785
|
alignItems: "start",
|
|
2786
|
-
items:
|
|
2786
|
+
items: l,
|
|
2787
2787
|
hash: _,
|
|
2788
2788
|
responseKey: h
|
|
2789
2789
|
};
|
|
2790
|
-
const f =
|
|
2790
|
+
const f = l;
|
|
2791
2791
|
return {
|
|
2792
2792
|
gap: (f == null ? void 0 : f.gap) ?? "md",
|
|
2793
2793
|
justifyContent: (f == null ? void 0 : f.justifyContent) ?? "start",
|
|
@@ -2797,7 +2797,7 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2797
2797
|
responseKey: (f == null ? void 0 : f.responseKey) ?? h
|
|
2798
2798
|
};
|
|
2799
2799
|
}) : [];
|
|
2800
|
-
return d.length === 0 ? null : /* @__PURE__ */
|
|
2800
|
+
return d.length === 0 ? null : /* @__PURE__ */ i.jsx(
|
|
2801
2801
|
"div",
|
|
2802
2802
|
{
|
|
2803
2803
|
className: J(
|
|
@@ -2806,21 +2806,21 @@ const Qs = /* @__PURE__ */ new Set([
|
|
|
2806
2806
|
K[`row__justify-${c}`],
|
|
2807
2807
|
K[`row__align-${r}`]
|
|
2808
2808
|
),
|
|
2809
|
-
children: d == null ? void 0 : d.map((
|
|
2810
|
-
const _ = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, h = T(t, n,
|
|
2811
|
-
return !h || h.length === 0 ? null : /* @__PURE__ */
|
|
2809
|
+
children: d == null ? void 0 : d.map((l, u) => {
|
|
2810
|
+
const _ = (s == null ? void 0 : s[u]) || `${100 / d.length}%`, h = T(t, n, l.items);
|
|
2811
|
+
return !h || h.length === 0 ? null : /* @__PURE__ */ i.jsx(
|
|
2812
2812
|
"div",
|
|
2813
2813
|
{
|
|
2814
2814
|
className: J(
|
|
2815
2815
|
K.row_column,
|
|
2816
|
-
K[`row_column__gap-${
|
|
2817
|
-
K[`row_column__justify-${
|
|
2818
|
-
K[`row_column__align-${
|
|
2816
|
+
K[`row_column__gap-${l.gap}`],
|
|
2817
|
+
K[`row_column__justify-${l.justifyContent}`],
|
|
2818
|
+
K[`row_column__align-${l.alignItems}`]
|
|
2819
2819
|
),
|
|
2820
2820
|
style: { width: _ },
|
|
2821
2821
|
children: h
|
|
2822
2822
|
},
|
|
2823
|
-
|
|
2823
|
+
l.hash || u
|
|
2824
2824
|
);
|
|
2825
2825
|
})
|
|
2826
2826
|
}
|
|
@@ -2896,11 +2896,11 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
2896
2896
|
var r, d;
|
|
2897
2897
|
let o, a;
|
|
2898
2898
|
if (n) {
|
|
2899
|
-
const
|
|
2900
|
-
o =
|
|
2899
|
+
const l = $.value(e, n.size ?? "$.meta.size") ?? s, u = $.value(e, n.total ?? "$.meta.total") ?? 0;
|
|
2900
|
+
o = l, a = u;
|
|
2901
2901
|
} else {
|
|
2902
|
-
const
|
|
2903
|
-
o = (
|
|
2902
|
+
const l = e == null ? void 0 : e.meta;
|
|
2903
|
+
o = (l == null ? void 0 : l.size) ?? ((r = l == null ? void 0 : l.page) == null ? void 0 : r.size) ?? s, a = (l == null ? void 0 : l.total) ?? ((d = l == null ? void 0 : l.page) == null ? void 0 : d.total) ?? 0;
|
|
2904
2904
|
}
|
|
2905
2905
|
const c = a > 0 ? Math.ceil(a / o) > t : !1;
|
|
2906
2906
|
return {
|
|
@@ -2921,13 +2921,13 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
2921
2921
|
debounceMs: r,
|
|
2922
2922
|
...d
|
|
2923
2923
|
}) => {
|
|
2924
|
-
const
|
|
2924
|
+
const l = {
|
|
2925
2925
|
...d
|
|
2926
|
-
}, { getNextUI: u, fetchDataSource: _ } = H(), [h, f] = O((
|
|
2926
|
+
}, { getNextUI: u, fetchDataSource: _ } = H(), [h, f] = O((l == null ? void 0 : l.value) ?? ""), { disabled: g } = I(
|
|
2927
2927
|
e,
|
|
2928
2928
|
c
|
|
2929
|
-
), x = (
|
|
2930
|
-
const b =
|
|
2929
|
+
), x = (l == null ? void 0 : l.disabled) ?? g, m = A(() => s && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, s]), y = A(() => {
|
|
2930
|
+
const b = l != null && l.isMulti ? h : [h], j = {};
|
|
2931
2931
|
return Array.isArray(b) && b.forEach((w) => {
|
|
2932
2932
|
if (!w) return;
|
|
2933
2933
|
const v = JSON.stringify(w.value), R = JSON.stringify(w.label);
|
|
@@ -2939,7 +2939,7 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
2939
2939
|
responseKey: n,
|
|
2940
2940
|
actionType: a,
|
|
2941
2941
|
getNextUI: u,
|
|
2942
|
-
isMulti:
|
|
2942
|
+
isMulti: l == null ? void 0 : l.isMulti,
|
|
2943
2943
|
debounceMs: r
|
|
2944
2944
|
}), p = (b) => {
|
|
2945
2945
|
f(b), C(b);
|
|
@@ -2975,15 +2975,15 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
2975
2975
|
}
|
|
2976
2976
|
};
|
|
2977
2977
|
};
|
|
2978
|
-
return /* @__PURE__ */
|
|
2978
|
+
return /* @__PURE__ */ i.jsx(
|
|
2979
2979
|
Nn,
|
|
2980
2980
|
{
|
|
2981
|
-
...
|
|
2981
|
+
...l,
|
|
2982
2982
|
className: Gt.selectNotFront,
|
|
2983
2983
|
label: m,
|
|
2984
2984
|
value: h,
|
|
2985
2985
|
disabled: x,
|
|
2986
|
-
noOptionsMessage: () => /* @__PURE__ */
|
|
2986
|
+
noOptionsMessage: () => /* @__PURE__ */ i.jsx(i.Fragment, { children: "Sin opciones" }),
|
|
2987
2987
|
onChange: (b) => !x && p(b),
|
|
2988
2988
|
loadOptions: N,
|
|
2989
2989
|
additional: { page: 1 },
|
|
@@ -3005,26 +3005,26 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3005
3005
|
debounceMs: r,
|
|
3006
3006
|
...d
|
|
3007
3007
|
}) => {
|
|
3008
|
-
const
|
|
3008
|
+
const l = {
|
|
3009
3009
|
...d
|
|
3010
|
-
}, { getNextUI: u } = H(), [_, h] = O(
|
|
3010
|
+
}, { getNextUI: u } = H(), [_, h] = O(l.value || ""), { disabled: f } = I(
|
|
3011
3011
|
e,
|
|
3012
3012
|
c
|
|
3013
|
-
), g = (
|
|
3013
|
+
), g = (l == null ? void 0 : l.disabled) ?? f, x = A(() => o && (l != null && l.label) ? `${l == null ? void 0 : l.label} *` : (l == null ? void 0 : l.label) ?? "", [l == null ? void 0 : l.label, o]), m = Ut({
|
|
3014
3014
|
userFlow: e,
|
|
3015
3015
|
pageId: t,
|
|
3016
3016
|
responseKey: n,
|
|
3017
3017
|
actionType: a,
|
|
3018
3018
|
getNextUI: u,
|
|
3019
|
-
isMulti:
|
|
3019
|
+
isMulti: l == null ? void 0 : l.isMulti,
|
|
3020
3020
|
debounceMs: r
|
|
3021
3021
|
}), y = (C) => {
|
|
3022
3022
|
h(C), m(C);
|
|
3023
3023
|
};
|
|
3024
|
-
return /* @__PURE__ */
|
|
3024
|
+
return /* @__PURE__ */ i.jsx(
|
|
3025
3025
|
En,
|
|
3026
3026
|
{
|
|
3027
|
-
...
|
|
3027
|
+
...l,
|
|
3028
3028
|
className: Gt.selectNotFront,
|
|
3029
3029
|
label: x,
|
|
3030
3030
|
value: _,
|
|
@@ -3034,7 +3034,7 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3034
3034
|
);
|
|
3035
3035
|
}, Ho = (e) => {
|
|
3036
3036
|
const { dataSource: t } = e;
|
|
3037
|
-
return t ? /* @__PURE__ */
|
|
3037
|
+
return t ? /* @__PURE__ */ i.jsx(qo, { ...e }) : /* @__PURE__ */ i.jsx(Bo, { ...e });
|
|
3038
3038
|
}, Uo = "_spacing_19hqa_1", Go = "_spacing__xxs_19hqa_1", Mo = "_spacing__xs_19hqa_4", Ko = "_spacing__sm_19hqa_7", Vo = "_spacing__md_19hqa_10", zo = "_spacing__lg_19hqa_13", Xo = "_spacing__xl_19hqa_16", Jo = "_spacing__xxl_19hqa_19", Wo = "_spacing__xxxl_19hqa_22", bt = {
|
|
3039
3039
|
spacing: Uo,
|
|
3040
3040
|
spacing__xxs: Go,
|
|
@@ -3047,7 +3047,7 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3047
3047
|
spacing__xxxl: Wo
|
|
3048
3048
|
}, Yo = (e) => {
|
|
3049
3049
|
const { size: t } = e, n = J(bt.spacing, bt[`spacing__${t}`]);
|
|
3050
|
-
return /* @__PURE__ */
|
|
3050
|
+
return /* @__PURE__ */ i.jsx("div", { className: n });
|
|
3051
3051
|
}, Qo = (e) => {
|
|
3052
3052
|
const {
|
|
3053
3053
|
userFlow: t,
|
|
@@ -3058,9 +3058,9 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3058
3058
|
value: c,
|
|
3059
3059
|
required: r,
|
|
3060
3060
|
dependencies: d,
|
|
3061
|
-
...
|
|
3061
|
+
...l
|
|
3062
3062
|
} = e, u = {
|
|
3063
|
-
...
|
|
3063
|
+
...l
|
|
3064
3064
|
}, { getNextUI: _ } = H(), [h, f] = O(c || !1), { disabled: g } = I(
|
|
3065
3065
|
t,
|
|
3066
3066
|
d
|
|
@@ -3093,7 +3093,7 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3093
3093
|
console.error("Error in switch action:", p), alert(JSON.stringify(p));
|
|
3094
3094
|
}
|
|
3095
3095
|
}, [t, n, s, o, h]);
|
|
3096
|
-
return /* @__PURE__ */
|
|
3096
|
+
return /* @__PURE__ */ i.jsx(
|
|
3097
3097
|
vn,
|
|
3098
3098
|
{
|
|
3099
3099
|
...u,
|
|
@@ -3106,17 +3106,14 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3106
3106
|
}, Zo = 10, Fo = [10, 20, 50, 100], Po = 72, ea = 120, ta = (e, t) => e != null && t.includes(e) ? e : t[0] ?? Zo, na = ({
|
|
3107
3107
|
maxHeight: e,
|
|
3108
3108
|
stickyHeader: t,
|
|
3109
|
-
|
|
3109
|
+
shouldFitToViewport: n,
|
|
3110
3110
|
availableHeight: s
|
|
3111
|
-
}) =>
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
} : {
|
|
3118
|
-
maxHeight: s,
|
|
3119
|
-
stickyHeader: t ?? !0
|
|
3111
|
+
}) => {
|
|
3112
|
+
const o = e ?? (n ? s : void 0);
|
|
3113
|
+
return {
|
|
3114
|
+
maxHeight: o,
|
|
3115
|
+
stickyHeader: t ?? o != null
|
|
3116
|
+
};
|
|
3120
3117
|
}, ra = ({
|
|
3121
3118
|
viewportHeight: e,
|
|
3122
3119
|
elementTop: t,
|
|
@@ -3168,10 +3165,10 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3168
3165
|
variant: t,
|
|
3169
3166
|
outlined: n
|
|
3170
3167
|
}), a = o.slice(0, 4), c = o.length - 4, r = ia(t, n);
|
|
3171
|
-
return /* @__PURE__ */
|
|
3172
|
-
a.map((d,
|
|
3168
|
+
return /* @__PURE__ */ i.jsxs("div", { className: We.tableArrayPills, children: [
|
|
3169
|
+
a.map((d, l) => {
|
|
3173
3170
|
const u = be(d.variant, d.outlined);
|
|
3174
|
-
return /* @__PURE__ */
|
|
3171
|
+
return /* @__PURE__ */ i.jsx(
|
|
3175
3172
|
Le,
|
|
3176
3173
|
{
|
|
3177
3174
|
color: u.color,
|
|
@@ -3180,10 +3177,10 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3180
3177
|
outlined: d.outlined,
|
|
3181
3178
|
children: d.label
|
|
3182
3179
|
},
|
|
3183
|
-
`${d.label}-${d.variant}-${d.outlined ?? !1}-${
|
|
3180
|
+
`${d.label}-${d.variant}-${d.outlined ?? !1}-${l}`
|
|
3184
3181
|
);
|
|
3185
3182
|
}),
|
|
3186
|
-
c > 0 && /* @__PURE__ */
|
|
3183
|
+
c > 0 && /* @__PURE__ */ i.jsxs(
|
|
3187
3184
|
Le,
|
|
3188
3185
|
{
|
|
3189
3186
|
outlined: !0,
|
|
@@ -3206,13 +3203,13 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3206
3203
|
}) => {
|
|
3207
3204
|
const { getNextUI: a, fetchAndGetNextUI: c, runGetDataSource: r } = H(), d = T(e, t, [
|
|
3208
3205
|
{ ...s }
|
|
3209
|
-
]),
|
|
3210
|
-
if (!
|
|
3206
|
+
]), l = (d == null ? void 0 : d[0]) || null;
|
|
3207
|
+
if (!l) return null;
|
|
3211
3208
|
const {
|
|
3212
3209
|
actionType: u,
|
|
3213
3210
|
responseKey: _,
|
|
3214
3211
|
dataSource: h
|
|
3215
|
-
} =
|
|
3212
|
+
} = l.props, f = S(async () => {
|
|
3216
3213
|
var g;
|
|
3217
3214
|
try {
|
|
3218
3215
|
const x = {
|
|
@@ -3270,10 +3267,10 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3270
3267
|
c,
|
|
3271
3268
|
o
|
|
3272
3269
|
]);
|
|
3273
|
-
return en(
|
|
3270
|
+
return en(l, {
|
|
3274
3271
|
onClick: f
|
|
3275
3272
|
});
|
|
3276
|
-
}, ua = () => /* @__PURE__ */
|
|
3273
|
+
}, ua = () => /* @__PURE__ */ i.jsx("div", { className: We.tableSkeleton, children: [...Array(10)].map((e, t) => /* @__PURE__ */ i.jsx(
|
|
3277
3274
|
Et,
|
|
3278
3275
|
{
|
|
3279
3276
|
maxWidth: "100%",
|
|
@@ -3290,7 +3287,7 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3290
3287
|
...n,
|
|
3291
3288
|
renderCell: (o) => {
|
|
3292
3289
|
const a = n.accessor ? o[n.accessor] : void 0;
|
|
3293
|
-
return Array.isArray(a) ? /* @__PURE__ */
|
|
3290
|
+
return Array.isArray(a) ? /* @__PURE__ */ i.jsx(
|
|
3294
3291
|
la,
|
|
3295
3292
|
{
|
|
3296
3293
|
values: a,
|
|
@@ -3309,20 +3306,20 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3309
3306
|
data: c,
|
|
3310
3307
|
pageSize: r,
|
|
3311
3308
|
showRowsPerPage: d = !1,
|
|
3312
|
-
pageSizeOptions:
|
|
3309
|
+
pageSizeOptions: l,
|
|
3313
3310
|
labelRowsPerPage: u,
|
|
3314
|
-
|
|
3311
|
+
fitToViewport: _ = !1,
|
|
3315
3312
|
...h
|
|
3316
3313
|
}) => {
|
|
3317
3314
|
var et, tt;
|
|
3318
|
-
const { fetchDataSource: f } = H(), [g, x] = O(!1), [m, y] = O(1), C =
|
|
3315
|
+
const { fetchDataSource: f } = H(), [g, x] = O(!1), [m, y] = O(1), C = l ?? Fo, [p, N] = O(
|
|
3319
3316
|
() => ta(r, C)
|
|
3320
3317
|
), [b, j] = O(null), w = !o && Array.isArray(c), v = !!(o != null && o.jsonPathCursorPagination) && !!((et = o == null ? void 0 : o.jsonPathPagination) != null && et.hasMore), R = d && !v, X = d || r != null, he = X ? p : void 0, W = de(
|
|
3321
3318
|
/* @__PURE__ */ new Map([[1, null]])
|
|
3322
3319
|
), se = A(() => {
|
|
3323
3320
|
if (a != null && a.length)
|
|
3324
3321
|
return a.map((D, me) => ({
|
|
3325
|
-
renderContent: (ve) => /* @__PURE__ */
|
|
3322
|
+
renderContent: (ve) => /* @__PURE__ */ i.jsx(
|
|
3326
3323
|
da,
|
|
3327
3324
|
{
|
|
3328
3325
|
userFlow: e,
|
|
@@ -3402,13 +3399,13 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3402
3399
|
]), Kt = A(
|
|
3403
3400
|
() => _a(h.columns, Y),
|
|
3404
3401
|
[Y, h.columns]
|
|
3405
|
-
), ge =
|
|
3402
|
+
), ge = _ && !v, { tableContainerRef: Vt, availableHeight: Ye } = sa({
|
|
3406
3403
|
enabled: ge
|
|
3407
3404
|
}), Qe = A(
|
|
3408
3405
|
() => na({
|
|
3409
3406
|
maxHeight: h.maxHeight,
|
|
3410
3407
|
stickyHeader: h.stickyHeader,
|
|
3411
|
-
|
|
3408
|
+
shouldFitToViewport: ge,
|
|
3412
3409
|
availableHeight: Ye
|
|
3413
3410
|
}),
|
|
3414
3411
|
[
|
|
@@ -3424,16 +3421,16 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3424
3421
|
data: Mt,
|
|
3425
3422
|
columns: Kt ?? [],
|
|
3426
3423
|
rightActions: se
|
|
3427
|
-
}, Ze = /* @__PURE__ */
|
|
3424
|
+
}, Ze = /* @__PURE__ */ i.jsx(Tn, { ...zt }), Fe = ge ? /* @__PURE__ */ i.jsx("div", { ref: Vt, className: We.table_scrollContainer, children: Ze }) : Ze, Pe = {
|
|
3428
3425
|
showRowsPerPage: R,
|
|
3429
3426
|
pageSizeOptions: C,
|
|
3430
3427
|
labelRowsPerPage: u,
|
|
3431
3428
|
onRowsPerPageChange: Ne
|
|
3432
3429
|
};
|
|
3433
3430
|
if (w)
|
|
3434
|
-
return !Y || Y.length === 0 ? /* @__PURE__ */
|
|
3431
|
+
return !Y || Y.length === 0 ? /* @__PURE__ */ i.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) : /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3435
3432
|
Fe,
|
|
3436
|
-
(Ee || d) && c && /* @__PURE__ */
|
|
3433
|
+
(Ee || d) && c && /* @__PURE__ */ i.jsx(
|
|
3437
3434
|
Se,
|
|
3438
3435
|
{
|
|
3439
3436
|
...Pe,
|
|
@@ -3446,9 +3443,9 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3446
3443
|
)
|
|
3447
3444
|
] });
|
|
3448
3445
|
const Xt = !v && (b == null ? void 0 : b.pagination) && (b.pagination.totalPages > 1 || d);
|
|
3449
|
-
return /* @__PURE__ */
|
|
3446
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: g ? /* @__PURE__ */ i.jsx(ua, {}) : b && ((tt = b == null ? void 0 : b.items) == null ? void 0 : tt.length) > 0 ? /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3450
3447
|
Fe,
|
|
3451
|
-
Xt && /* @__PURE__ */
|
|
3448
|
+
Xt && /* @__PURE__ */ i.jsx(
|
|
3452
3449
|
Se,
|
|
3453
3450
|
{
|
|
3454
3451
|
...Pe,
|
|
@@ -3459,7 +3456,7 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3459
3456
|
onChange: fe
|
|
3460
3457
|
}
|
|
3461
3458
|
),
|
|
3462
|
-
v && (b == null ? void 0 : b.pagination) && /* @__PURE__ */
|
|
3459
|
+
v && (b == null ? void 0 : b.pagination) && /* @__PURE__ */ i.jsx(
|
|
3463
3460
|
Se,
|
|
3464
3461
|
{
|
|
3465
3462
|
variant: "cursor",
|
|
@@ -3469,12 +3466,12 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3469
3466
|
onChange: fe
|
|
3470
3467
|
}
|
|
3471
3468
|
)
|
|
3472
|
-
] }) : /* @__PURE__ */
|
|
3469
|
+
] }) : /* @__PURE__ */ i.jsx(ye, { state: "info", title: "Sin registros", children: "No hay datos disponibles para mostrar en este momento" }) });
|
|
3473
3470
|
}, fa = "_tabsPanel_kvslb_1", ga = {
|
|
3474
3471
|
tabsPanel: fa
|
|
3475
3472
|
}, ma = ({ userFlow: e, pageId: t, components: n }) => {
|
|
3476
3473
|
const s = T(e, t, n);
|
|
3477
|
-
return s != null && s.length ? /* @__PURE__ */
|
|
3474
|
+
return s != null && s.length ? /* @__PURE__ */ i.jsx("section", { className: ga.tabsPanel, children: s.map((o, a) => /* @__PURE__ */ i.jsx(k, { children: o }, `tabs-panel-${a}`)) }) : null;
|
|
3478
3475
|
}, xa = ({
|
|
3479
3476
|
userFlow: e,
|
|
3480
3477
|
pageId: t,
|
|
@@ -3482,35 +3479,37 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3482
3479
|
items: s,
|
|
3483
3480
|
activeIndex: o,
|
|
3484
3481
|
className: a,
|
|
3485
|
-
responseKey: c
|
|
3482
|
+
responseKey: c,
|
|
3483
|
+
preserveHeight: r
|
|
3486
3484
|
}) => {
|
|
3487
|
-
const
|
|
3488
|
-
label:
|
|
3489
|
-
disabled:
|
|
3490
|
-
children: /* @__PURE__ */
|
|
3485
|
+
const d = s.map((u, _) => ({
|
|
3486
|
+
label: u.label,
|
|
3487
|
+
disabled: u.disabled,
|
|
3488
|
+
children: /* @__PURE__ */ i.jsx(
|
|
3491
3489
|
ma,
|
|
3492
3490
|
{
|
|
3493
3491
|
userFlow: e,
|
|
3494
3492
|
pageId: t,
|
|
3495
|
-
components:
|
|
3493
|
+
components: u.components
|
|
3496
3494
|
},
|
|
3497
|
-
`${n}-tab-${
|
|
3495
|
+
`${n}-tab-${_}`
|
|
3498
3496
|
)
|
|
3499
|
-
})),
|
|
3500
|
-
var
|
|
3501
|
-
const
|
|
3502
|
-
...(
|
|
3503
|
-
[c]:
|
|
3497
|
+
})), l = (u) => {
|
|
3498
|
+
var h;
|
|
3499
|
+
const _ = {
|
|
3500
|
+
...(h = E.getState()[e]) == null ? void 0 : h.entries,
|
|
3501
|
+
[c]: u
|
|
3504
3502
|
};
|
|
3505
|
-
L(e,
|
|
3503
|
+
L(e, _);
|
|
3506
3504
|
};
|
|
3507
|
-
return /* @__PURE__ */
|
|
3505
|
+
return /* @__PURE__ */ i.jsx(
|
|
3508
3506
|
An,
|
|
3509
3507
|
{
|
|
3510
3508
|
className: a,
|
|
3511
3509
|
activeIndex: o,
|
|
3512
|
-
items:
|
|
3513
|
-
onClick:
|
|
3510
|
+
items: d,
|
|
3511
|
+
onClick: l,
|
|
3512
|
+
preserveHeight: r
|
|
3514
3513
|
}
|
|
3515
3514
|
);
|
|
3516
3515
|
}, ya = "_textareaNotFront_1wpe5_1", pa = {
|
|
@@ -3525,15 +3524,15 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3525
3524
|
required: c,
|
|
3526
3525
|
dependencies: r,
|
|
3527
3526
|
...d
|
|
3528
|
-
} = e, { value:
|
|
3527
|
+
} = e, { value: l, ...u } = d, [_, h] = Je(
|
|
3529
3528
|
t,
|
|
3530
3529
|
a,
|
|
3531
|
-
|
|
3530
|
+
l ?? ""
|
|
3532
3531
|
), { disabled: f } = I(
|
|
3533
3532
|
t,
|
|
3534
3533
|
r
|
|
3535
3534
|
), g = (u == null ? void 0 : u.disabled) ?? f, x = A(() => c && (u != null && u.label) ? `${u.label} *` : (u == null ? void 0 : u.label) ?? "", [u == null ? void 0 : u.label, c]), m = (y) => h(y.target.value);
|
|
3536
|
-
return /* @__PURE__ */
|
|
3535
|
+
return /* @__PURE__ */ i.jsx(
|
|
3537
3536
|
Sn,
|
|
3538
3537
|
{
|
|
3539
3538
|
...u,
|
|
@@ -3556,15 +3555,15 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3556
3555
|
required: c,
|
|
3557
3556
|
dependencies: r,
|
|
3558
3557
|
...d
|
|
3559
|
-
} = e, { value:
|
|
3558
|
+
} = e, { value: l, ...u } = d, [_, h] = Je(
|
|
3560
3559
|
t,
|
|
3561
3560
|
a,
|
|
3562
|
-
|
|
3561
|
+
l ?? ""
|
|
3563
3562
|
), { disabled: f } = I(
|
|
3564
3563
|
t,
|
|
3565
3564
|
r
|
|
3566
3565
|
), g = (u == null ? void 0 : u.disabled) ?? f, x = A(() => c && (u != null && u.label) ? `${u == null ? void 0 : u.label} *` : (u == null ? void 0 : u.label) ?? "", [u == null ? void 0 : u.label, c]), m = (y) => h(y.target.value);
|
|
3567
|
-
return /* @__PURE__ */
|
|
3566
|
+
return /* @__PURE__ */ i.jsx(
|
|
3568
3567
|
kn,
|
|
3569
3568
|
{
|
|
3570
3569
|
...u,
|
|
@@ -3625,20 +3624,20 @@ const Ro = /\{([^}]+)\}/g, Do = (e, t) => {
|
|
|
3625
3624
|
content: c,
|
|
3626
3625
|
label: r,
|
|
3627
3626
|
placement: d,
|
|
3628
|
-
notShowArrow:
|
|
3627
|
+
notShowArrow: l,
|
|
3629
3628
|
visible: u
|
|
3630
3629
|
} = e, _ = T(
|
|
3631
3630
|
t,
|
|
3632
3631
|
n,
|
|
3633
3632
|
c != null && c.length ? c : null
|
|
3634
|
-
), h = _ && _.length > 0 ? /* @__PURE__ */
|
|
3635
|
-
return /* @__PURE__ */
|
|
3633
|
+
), h = _ && _.length > 0 ? /* @__PURE__ */ i.jsx("div", { className: Ct.tooltipNotFront_content, children: _.map((f, g) => /* @__PURE__ */ i.jsx(k, { children: f }, `tooltip-${o}-${g}`)) }) : null;
|
|
3634
|
+
return /* @__PURE__ */ i.jsx(
|
|
3636
3635
|
On,
|
|
3637
3636
|
{
|
|
3638
3637
|
className: Ct.tooltipNotFront,
|
|
3639
3638
|
label: r,
|
|
3640
3639
|
placement: d,
|
|
3641
|
-
notShowArrow:
|
|
3640
|
+
notShowArrow: l,
|
|
3642
3641
|
visible: u,
|
|
3643
3642
|
children: h
|
|
3644
3643
|
}
|
|
@@ -3656,7 +3655,7 @@ function Qa({
|
|
|
3656
3655
|
null,
|
|
3657
3656
|
n
|
|
3658
3657
|
);
|
|
3659
|
-
return /* @__PURE__ */
|
|
3658
|
+
return /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3660
3659
|
o,
|
|
3661
3660
|
s
|
|
3662
3661
|
] });
|
|
@@ -3669,15 +3668,15 @@ const Aa = { api: "", headers: {} }, Sa = ({
|
|
|
3669
3668
|
}) => {
|
|
3670
3669
|
const o = n ?? `${e}-page`;
|
|
3671
3670
|
O(() => {
|
|
3672
|
-
var d,
|
|
3673
|
-
return (
|
|
3671
|
+
var d, l;
|
|
3672
|
+
return (l = (d = E.getState()[e]) == null ? void 0 : d.pages) != null && l[o] || xe(e, s ?? Aa, {
|
|
3674
3673
|
type: "page",
|
|
3675
3674
|
hash: o,
|
|
3676
3675
|
body: { components: t }
|
|
3677
3676
|
}), null;
|
|
3678
3677
|
});
|
|
3679
3678
|
const a = T(e, o, t);
|
|
3680
|
-
return /* @__PURE__ */
|
|
3679
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: a });
|
|
3681
3680
|
};
|
|
3682
3681
|
function ka(e) {
|
|
3683
3682
|
if (e == null || typeof e != "object" || !("components" in e) || !Array.isArray(e.components))
|
|
@@ -3692,7 +3691,7 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3692
3691
|
hash: e.id,
|
|
3693
3692
|
components: n
|
|
3694
3693
|
});
|
|
3695
|
-
return /* @__PURE__ */
|
|
3694
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: s });
|
|
3696
3695
|
}, Za = Oa, jt = (e, t, n, s, {
|
|
3697
3696
|
onResolveComponentProps: o,
|
|
3698
3697
|
embedded: a
|
|
@@ -3705,7 +3704,7 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3705
3704
|
);
|
|
3706
3705
|
switch (n) {
|
|
3707
3706
|
case "body":
|
|
3708
|
-
return /* @__PURE__ */
|
|
3707
|
+
return /* @__PURE__ */ i.jsx(
|
|
3709
3708
|
$r,
|
|
3710
3709
|
{
|
|
3711
3710
|
...s,
|
|
@@ -3715,7 +3714,7 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3715
3714
|
JSON.stringify(s == null ? void 0 : s.components)
|
|
3716
3715
|
);
|
|
3717
3716
|
case "header":
|
|
3718
|
-
return /* @__PURE__ */
|
|
3717
|
+
return /* @__PURE__ */ i.jsx(
|
|
3719
3718
|
ho,
|
|
3720
3719
|
{
|
|
3721
3720
|
...s,
|
|
@@ -3760,7 +3759,7 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3760
3759
|
t,
|
|
3761
3760
|
n
|
|
3762
3761
|
);
|
|
3763
|
-
return /* @__PURE__ */
|
|
3762
|
+
return /* @__PURE__ */ i.jsx(
|
|
3764
3763
|
Rn,
|
|
3765
3764
|
{
|
|
3766
3765
|
...r,
|
|
@@ -3772,7 +3771,7 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3772
3771
|
);
|
|
3773
3772
|
}, $a = (e, t, n, s) => {
|
|
3774
3773
|
var b;
|
|
3775
|
-
const [o, a] = O(!1), c = !!(t != null && t.api && !n && e), [r, d] = O(c),
|
|
3774
|
+
const [o, a] = O(!1), c = !!(t != null && t.api && !n && e), [r, d] = O(c), l = E((j) => j[e]), u = l == null ? void 0 : l.currentPageId, _ = (l == null ? void 0 : l.isLoading) ?? !1, h = r || _, f = u ? (b = l == null ? void 0 : l.pages[u]) == null ? void 0 : b.page : void 0, g = (f == null ? void 0 : f.type) === "page" ? f.headerNavigation : void 0, x = (f == null ? void 0 : f.type) === "page" ? f.contextualNavigation : void 0, m = (f == null ? void 0 : f.header) ?? null, y = !!m || !g;
|
|
3776
3775
|
G(() => {
|
|
3777
3776
|
if (typeof window > "u") return;
|
|
3778
3777
|
const j = new URL(window.location.href), w = j.searchParams.get("sessionId");
|
|
@@ -3818,10 +3817,10 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3818
3817
|
return window.addEventListener(j, w), () => {
|
|
3819
3818
|
window.removeEventListener(j, w);
|
|
3820
3819
|
};
|
|
3821
|
-
}, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */
|
|
3822
|
-
h && /* @__PURE__ */
|
|
3820
|
+
}, []), o && console.error("[not-page]: No render page"), /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
3821
|
+
h && /* @__PURE__ */ i.jsx(Dn, {}),
|
|
3823
3822
|
u && y ? C : null,
|
|
3824
|
-
u && g && /* @__PURE__ */
|
|
3823
|
+
u && g && /* @__PURE__ */ i.jsx(
|
|
3825
3824
|
Ht,
|
|
3826
3825
|
{
|
|
3827
3826
|
...g,
|
|
@@ -3830,7 +3829,7 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3830
3829
|
onResolveComponentProps: s
|
|
3831
3830
|
}
|
|
3832
3831
|
),
|
|
3833
|
-
u && (x ? /* @__PURE__ */
|
|
3832
|
+
u && (x ? /* @__PURE__ */ i.jsx(
|
|
3834
3833
|
Ia,
|
|
3835
3834
|
{
|
|
3836
3835
|
...x,
|
|
@@ -3839,8 +3838,8 @@ const Oa = ({ payload: e, userFlow: t }) => {
|
|
|
3839
3838
|
},
|
|
3840
3839
|
x.hash
|
|
3841
3840
|
) : p),
|
|
3842
|
-
u && /* @__PURE__ */
|
|
3843
|
-
|
|
3841
|
+
u && /* @__PURE__ */ i.jsx(bo, { userFlow: e, pageId: u }),
|
|
3842
|
+
l && /* @__PURE__ */ i.jsx(In, {})
|
|
3844
3843
|
] });
|
|
3845
3844
|
};
|
|
3846
3845
|
export {
|