@isettingkit/business-rules 3.2.11 → 3.2.12
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/index.es.d.ts +0 -1
- package/dist/index.es.js +782 -772
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as m, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import { MdOutlineDelete as Ht, MdOutlinePercent as yr, MdOutlineChevronRight as Kr, MdOutlineError as ea, MdClear as vt, MdOutlineFilterAltOff as vr, MdOutlineLockClock as it, MdAdd as Tt, MdOutlineCreate as ta, MdExpandLess as na, MdExpandMore as dn, MdInfoOutline as ra, MdInfo as aa, MdCached as oa, MdOutlineInfo as ia, MdClose as la, MdOutlineFilterAlt as Tr, MdChevronRight as Vn, MdArrowRight as sa, MdOutlineArrowCircleLeft as da, MdOutlineArrowCircleRight as ca, MdKeyboardArrowUp as ua, MdKeyboardArrowDown as pa, MdOutlineArrowBack as ha } from "react-icons/md";
|
|
3
|
-
import { inube as $, Stack as v, Divider as
|
|
3
|
+
import { inube as $, Stack as v, Divider as re, Icon as j, Textfield as gt, Moneyfield as wr, Date as Le, Numberfield as Tn, Text as C, Tag as De, Checkpicker as wn, Grid as Ae, Select as Ne, Label as ga, OptionItem as Sr, Box as xr, useMediaQuery as Te, Blanket as wt, Button as J, SkeletonLine as be, Toggle as lt, Checkbox as Cr, SkeletonIcon as fa, Fieldset as Xe, Tabs as ma, OptionList as ba } from "@inubekit/inubekit";
|
|
4
4
|
import A, { ThemeContext as Sn, keyframes as xn } from "styled-components";
|
|
5
5
|
import U, { useState as Q, forwardRef as ya, useContext as Cn, useMemo as St, useRef as rt, useEffect as Ue, useCallback as va } from "react";
|
|
6
6
|
import { createPortal as xt } from "react-dom";
|
|
7
7
|
import { useFormik as Dn } from "formik";
|
|
8
|
-
import { string as Re, mixed as je, object as
|
|
8
|
+
import { string as Re, mixed as je, object as ae, number as Ee, lazy as ft, date as mt } from "yup";
|
|
9
9
|
import { Link as Dr, useNavigate as Ta, useLocation as wa } from "react-router-dom";
|
|
10
10
|
const Sa = A.div`
|
|
11
11
|
border-radius: 8px;
|
|
@@ -44,10 +44,10 @@ A.div`
|
|
|
44
44
|
`;
|
|
45
45
|
const Ct = (e) => {
|
|
46
46
|
const { children: t, controls: n = !0, handleDelete: r, id: a } = e;
|
|
47
|
-
return /* @__PURE__ */ o(Sa, { children: /* @__PURE__ */
|
|
47
|
+
return /* @__PURE__ */ o(Sa, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
|
|
48
48
|
t,
|
|
49
|
-
n && /* @__PURE__ */
|
|
50
|
-
/* @__PURE__ */ o(
|
|
49
|
+
n && /* @__PURE__ */ m(G, { children: [
|
|
50
|
+
/* @__PURE__ */ o(re, {}),
|
|
51
51
|
/* @__PURE__ */ o(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ o(
|
|
52
52
|
j,
|
|
53
53
|
{
|
|
@@ -293,16 +293,16 @@ const $a = {
|
|
|
293
293
|
size: p = "wide"
|
|
294
294
|
} = e, u = typeof l == "string" ? l.split(",").filter(Boolean) : [], h = a.filter(
|
|
295
295
|
(y) => u.includes(y.id)
|
|
296
|
-
), f = (y,
|
|
297
|
-
d(y,
|
|
296
|
+
), f = (y, b) => {
|
|
297
|
+
d(y, b);
|
|
298
298
|
}, g = (y) => {
|
|
299
|
-
const
|
|
300
|
-
d(t,
|
|
299
|
+
const b = u.filter((T) => T !== y).join(",");
|
|
300
|
+
d(t, b);
|
|
301
301
|
};
|
|
302
|
-
return /* @__PURE__ */
|
|
303
|
-
h.length > 0 && /* @__PURE__ */
|
|
302
|
+
return /* @__PURE__ */ m(Oa, { children: [
|
|
303
|
+
h.length > 0 && /* @__PURE__ */ m(G, { children: [
|
|
304
304
|
/* @__PURE__ */ o(
|
|
305
|
-
|
|
305
|
+
C,
|
|
306
306
|
{
|
|
307
307
|
margin: "0 0 4px 0",
|
|
308
308
|
padding: "0 0 0 16px",
|
|
@@ -383,18 +383,18 @@ const $a = {
|
|
|
383
383
|
statusFrom: u,
|
|
384
384
|
statusTo: h,
|
|
385
385
|
onBlur: f
|
|
386
|
-
} = e, [g, y] = Q(c), [
|
|
386
|
+
} = e, [g, y] = Q(c), [b, T] = Q(l), S = (N) => {
|
|
387
387
|
let I;
|
|
388
388
|
a === "currency" ? I = Pt(N.target.value) : a === "date" ? I = new Date(N.target.value) : I = Number(N.target.value), y(I), t(I);
|
|
389
389
|
}, E = (N) => {
|
|
390
390
|
let I;
|
|
391
391
|
a === "currency" ? I = Pt(N.target.value) : a === "date" ? I = new Date(N.target.value) : I = Number(N.target.value), T(I), n(I);
|
|
392
392
|
}, D = (N, I) => I === "currency" ? bt(N) : I === "date" && N instanceof Date ? N.toISOString().split("T")[0] : Number(N);
|
|
393
|
-
return /* @__PURE__ */
|
|
394
|
-
/* @__PURE__ */ o(
|
|
395
|
-
/* @__PURE__ */
|
|
396
|
-
/* @__PURE__ */
|
|
397
|
-
/* @__PURE__ */ o(
|
|
393
|
+
return /* @__PURE__ */ m(v, { direction: "column", children: [
|
|
394
|
+
/* @__PURE__ */ o(C, { type: "label", weight: "bold", size: "large", appearance: "dark", children: i }),
|
|
395
|
+
/* @__PURE__ */ m(Ae, { templateColumns: "repeat(2, 1fr)", margin: "10px 0", gap: "12px", children: [
|
|
396
|
+
/* @__PURE__ */ m(v, { alignItems: "baseline", gap: "8px", children: [
|
|
397
|
+
/* @__PURE__ */ o(C, { type: "body", size: "large", appearance: "dark", children: "De" }),
|
|
398
398
|
a === "date" ? /* @__PURE__ */ o(
|
|
399
399
|
Le,
|
|
400
400
|
{
|
|
@@ -423,13 +423,13 @@ const $a = {
|
|
|
423
423
|
}
|
|
424
424
|
)
|
|
425
425
|
] }),
|
|
426
|
-
/* @__PURE__ */
|
|
427
|
-
/* @__PURE__ */ o(
|
|
426
|
+
/* @__PURE__ */ m(v, { alignItems: "baseline", gap: "8px", children: [
|
|
427
|
+
/* @__PURE__ */ o(C, { type: "body", size: "large", appearance: "dark", children: "a" }),
|
|
428
428
|
a === "date" ? /* @__PURE__ */ o(
|
|
429
429
|
Le,
|
|
430
430
|
{
|
|
431
431
|
id: `${r}DateTo`,
|
|
432
|
-
value: D(
|
|
432
|
+
value: D(b, a),
|
|
433
433
|
onChange: E,
|
|
434
434
|
required: s,
|
|
435
435
|
status: h,
|
|
@@ -445,7 +445,7 @@ const $a = {
|
|
|
445
445
|
size: "compact",
|
|
446
446
|
fullwidth: !0,
|
|
447
447
|
type: a === "number" ? "number" : "text",
|
|
448
|
-
value: D(
|
|
448
|
+
value: D(b, a),
|
|
449
449
|
message: p,
|
|
450
450
|
status: h,
|
|
451
451
|
onBlur: f,
|
|
@@ -542,13 +542,13 @@ const $a = {
|
|
|
542
542
|
label: e.conditionName,
|
|
543
543
|
valueFrom: (n = t.values.conditionsThatEstablishesTheDecision[e.conditionName]) == null ? void 0 : n.from,
|
|
544
544
|
valueTo: (r = t.values.conditionsThatEstablishesTheDecision[e.conditionName]) == null ? void 0 : r.to,
|
|
545
|
-
handleInputChangeFrom: (
|
|
545
|
+
handleInputChangeFrom: (b) => t.setFieldValue(
|
|
546
546
|
`conditionsThatEstablishesTheDecision.${e.conditionName}.from`,
|
|
547
|
-
|
|
547
|
+
b
|
|
548
548
|
),
|
|
549
|
-
handleInputChangeTo: (
|
|
549
|
+
handleInputChangeTo: (b) => t.setFieldValue(
|
|
550
550
|
`conditionsThatEstablishesTheDecision.${e.conditionName}.to`,
|
|
551
|
-
|
|
551
|
+
b
|
|
552
552
|
),
|
|
553
553
|
messageFrom: (i = (a = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : a[e.conditionName]) == null ? void 0 : i.from,
|
|
554
554
|
messageTo: (c = (s = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : s[e.conditionName]) == null ? void 0 : c.to,
|
|
@@ -666,7 +666,7 @@ const $a = {
|
|
|
666
666
|
onBlur: l,
|
|
667
667
|
condition: d,
|
|
668
668
|
listOfPossibleValues: p
|
|
669
|
-
}) => /* @__PURE__ */
|
|
669
|
+
}) => /* @__PURE__ */ m(
|
|
670
670
|
v,
|
|
671
671
|
{
|
|
672
672
|
alignItems: c === "invalid" ? "baseline" : "center",
|
|
@@ -674,7 +674,7 @@ const $a = {
|
|
|
674
674
|
width: "100%",
|
|
675
675
|
children: [
|
|
676
676
|
/* @__PURE__ */ o(
|
|
677
|
-
|
|
677
|
+
C,
|
|
678
678
|
{
|
|
679
679
|
type: d ? "body" : "title",
|
|
680
680
|
weight: d ? "normal" : "bold",
|
|
@@ -728,7 +728,7 @@ const $a = {
|
|
|
728
728
|
onBlur: l,
|
|
729
729
|
placeholder: d,
|
|
730
730
|
listOfPossibleValues: p
|
|
731
|
-
}) => /* @__PURE__ */
|
|
731
|
+
}) => /* @__PURE__ */ m(
|
|
732
732
|
v,
|
|
733
733
|
{
|
|
734
734
|
alignItems: c === "invalid" ? "baseline" : "center",
|
|
@@ -736,7 +736,7 @@ const $a = {
|
|
|
736
736
|
width: "100%",
|
|
737
737
|
children: [
|
|
738
738
|
/* @__PURE__ */ o(
|
|
739
|
-
|
|
739
|
+
C,
|
|
740
740
|
{
|
|
741
741
|
type: e ? "body" : "title",
|
|
742
742
|
weight: e ? "normal" : "bold",
|
|
@@ -793,7 +793,7 @@ const $a = {
|
|
|
793
793
|
onBlur: l,
|
|
794
794
|
listOfPossibleValues: d,
|
|
795
795
|
placeholder: p
|
|
796
|
-
}) => /* @__PURE__ */
|
|
796
|
+
}) => /* @__PURE__ */ m(
|
|
797
797
|
v,
|
|
798
798
|
{
|
|
799
799
|
alignItems: c === "invalid" ? "baseline" : "center",
|
|
@@ -801,7 +801,7 @@ const $a = {
|
|
|
801
801
|
width: "100%",
|
|
802
802
|
children: [
|
|
803
803
|
/* @__PURE__ */ o(
|
|
804
|
-
|
|
804
|
+
C,
|
|
805
805
|
{
|
|
806
806
|
type: e ? "body" : "title",
|
|
807
807
|
weight: e ? "normal" : "bold",
|
|
@@ -853,7 +853,7 @@ const $a = {
|
|
|
853
853
|
onBlur: l,
|
|
854
854
|
listOfPossibleValues: d,
|
|
855
855
|
placeholder: p
|
|
856
|
-
}) => /* @__PURE__ */
|
|
856
|
+
}) => /* @__PURE__ */ m(
|
|
857
857
|
v,
|
|
858
858
|
{
|
|
859
859
|
alignItems: c === "invalid" ? "baseline" : "center",
|
|
@@ -861,7 +861,7 @@ const $a = {
|
|
|
861
861
|
width: "100%",
|
|
862
862
|
children: [
|
|
863
863
|
/* @__PURE__ */ o(
|
|
864
|
-
|
|
864
|
+
C,
|
|
865
865
|
{
|
|
866
866
|
type: e ? "body" : "title",
|
|
867
867
|
weight: e ? "normal" : "bold",
|
|
@@ -916,7 +916,7 @@ const $a = {
|
|
|
916
916
|
placeholder: p
|
|
917
917
|
}) => {
|
|
918
918
|
const u = r == null ? "" : String(r);
|
|
919
|
-
return /* @__PURE__ */
|
|
919
|
+
return /* @__PURE__ */ m(
|
|
920
920
|
v,
|
|
921
921
|
{
|
|
922
922
|
alignItems: c === "invalid" ? "baseline" : "center",
|
|
@@ -924,7 +924,7 @@ const $a = {
|
|
|
924
924
|
width: "100%",
|
|
925
925
|
children: [
|
|
926
926
|
/* @__PURE__ */ o(
|
|
927
|
-
|
|
927
|
+
C,
|
|
928
928
|
{
|
|
929
929
|
type: e ? "body" : "title",
|
|
930
930
|
weight: e ? "normal" : "bold",
|
|
@@ -960,8 +960,8 @@ const $a = {
|
|
|
960
960
|
}
|
|
961
961
|
if (!/^-?\d*(?:[.,]\d*)?$/.test(g))
|
|
962
962
|
return;
|
|
963
|
-
const
|
|
964
|
-
Number.isNaN(
|
|
963
|
+
const b = zt(g);
|
|
964
|
+
Number.isNaN(b) ? a(t, g) : a(t, b);
|
|
965
965
|
},
|
|
966
966
|
fullwidth: !0,
|
|
967
967
|
required: i,
|
|
@@ -1261,7 +1261,7 @@ function Mn(e, t) {
|
|
|
1261
1261
|
const ao = (e) => {
|
|
1262
1262
|
var a, i;
|
|
1263
1263
|
const { message: t } = e, n = Cn(Sn), r = ((i = (a = n == null ? void 0 : n.input) == null ? void 0 : a.message) == null ? void 0 : i.appearance) || Oe.message.appearance;
|
|
1264
|
-
return /* @__PURE__ */
|
|
1264
|
+
return /* @__PURE__ */ m(v, { alignItems: "center", gap: "4px", margin: "4px 0 0 16px", children: [
|
|
1265
1265
|
/* @__PURE__ */ o(
|
|
1266
1266
|
j,
|
|
1267
1267
|
{
|
|
@@ -1271,7 +1271,7 @@ const ao = (e) => {
|
|
|
1271
1271
|
}
|
|
1272
1272
|
),
|
|
1273
1273
|
/* @__PURE__ */ o(
|
|
1274
|
-
|
|
1274
|
+
C,
|
|
1275
1275
|
{
|
|
1276
1276
|
type: "body",
|
|
1277
1277
|
size: "small",
|
|
@@ -1282,7 +1282,7 @@ const ao = (e) => {
|
|
|
1282
1282
|
)
|
|
1283
1283
|
] });
|
|
1284
1284
|
}, oo = ya((e, t) => {
|
|
1285
|
-
var
|
|
1285
|
+
var ee, _;
|
|
1286
1286
|
const {
|
|
1287
1287
|
displayList: n,
|
|
1288
1288
|
disabled: r,
|
|
@@ -1298,30 +1298,30 @@ const ao = (e) => {
|
|
|
1298
1298
|
placeholder: f,
|
|
1299
1299
|
required: g,
|
|
1300
1300
|
size: y,
|
|
1301
|
-
value:
|
|
1301
|
+
value: b,
|
|
1302
1302
|
picker: T,
|
|
1303
1303
|
showChevron: S,
|
|
1304
1304
|
checkedItems: E,
|
|
1305
1305
|
editable: D = !1,
|
|
1306
1306
|
clearable: N,
|
|
1307
1307
|
onKeyUp: I,
|
|
1308
|
-
onBlur:
|
|
1309
|
-
onChange:
|
|
1308
|
+
onBlur: k,
|
|
1309
|
+
onChange: O,
|
|
1310
1310
|
onClick: X,
|
|
1311
|
-
onFocus:
|
|
1312
|
-
onOptionClick:
|
|
1311
|
+
onFocus: K,
|
|
1312
|
+
onOptionClick: oe,
|
|
1313
1313
|
onCheckboxChange: pe,
|
|
1314
|
-
handleClear:
|
|
1315
|
-
} = e, F = Cn(Sn),
|
|
1314
|
+
handleClear: Z
|
|
1315
|
+
} = e, F = Cn(Sn), z = ((_ = (ee = F == null ? void 0 : F.input) == null ? void 0 : ee.required) == null ? void 0 : _.appearance) || Oe.required.appearance, Se = g && !r, xe = T || b === "" ? "" : Mn(h, b), Ve = St(
|
|
1316
1316
|
() => h.filter((w) => E.includes(w.id)),
|
|
1317
1317
|
[h, E]
|
|
1318
|
-
), Y = (w,
|
|
1318
|
+
), Y = (w, M) => {
|
|
1319
1319
|
w.stopPropagation(), pe({
|
|
1320
|
-
target: { checked: !1, value:
|
|
1320
|
+
target: { checked: !1, value: M }
|
|
1321
1321
|
});
|
|
1322
1322
|
};
|
|
1323
|
-
return /* @__PURE__ */
|
|
1324
|
-
l && /* @__PURE__ */
|
|
1323
|
+
return /* @__PURE__ */ m(Za, { $fullwidth: i, $disabled: r, ref: t, children: [
|
|
1324
|
+
l && /* @__PURE__ */ m(
|
|
1325
1325
|
Ka,
|
|
1326
1326
|
{
|
|
1327
1327
|
$alignItems: "center",
|
|
@@ -1340,24 +1340,24 @@ const ao = (e) => {
|
|
|
1340
1340
|
children: l
|
|
1341
1341
|
}
|
|
1342
1342
|
),
|
|
1343
|
-
Se && /* @__PURE__ */ o(
|
|
1343
|
+
Se && /* @__PURE__ */ o(C, { appearance: z, size: "small", type: "body", children: "(Requerido)" })
|
|
1344
1344
|
]
|
|
1345
1345
|
}
|
|
1346
1346
|
),
|
|
1347
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ m(
|
|
1348
1348
|
eo,
|
|
1349
1349
|
{
|
|
1350
1350
|
$disabled: r,
|
|
1351
1351
|
$focused: a,
|
|
1352
1352
|
$invalid: c,
|
|
1353
1353
|
onClick: D ? void 0 : X,
|
|
1354
|
-
$value:
|
|
1354
|
+
$value: b,
|
|
1355
1355
|
$size: y,
|
|
1356
1356
|
children: [
|
|
1357
1357
|
/* @__PURE__ */ o(
|
|
1358
1358
|
to,
|
|
1359
1359
|
{
|
|
1360
|
-
$inputWithData: !!
|
|
1360
|
+
$inputWithData: !!b,
|
|
1361
1361
|
autoComplete: "off",
|
|
1362
1362
|
value: xe,
|
|
1363
1363
|
name: u,
|
|
@@ -1369,14 +1369,14 @@ const ao = (e) => {
|
|
|
1369
1369
|
$fullwidth: i,
|
|
1370
1370
|
$focused: a,
|
|
1371
1371
|
readOnly: !D,
|
|
1372
|
-
onFocus:
|
|
1373
|
-
onBlur:
|
|
1374
|
-
onChange: (w) =>
|
|
1372
|
+
onFocus: K,
|
|
1373
|
+
onBlur: k,
|
|
1374
|
+
onChange: (w) => O(u, w.target.value),
|
|
1375
1375
|
onClick: D ? X : void 0,
|
|
1376
1376
|
onKeyUp: I
|
|
1377
1377
|
}
|
|
1378
1378
|
),
|
|
1379
|
-
/* @__PURE__ */
|
|
1379
|
+
/* @__PURE__ */ m(
|
|
1380
1380
|
v,
|
|
1381
1381
|
{
|
|
1382
1382
|
direction: "row",
|
|
@@ -1391,18 +1391,18 @@ const ao = (e) => {
|
|
|
1391
1391
|
label: w.label,
|
|
1392
1392
|
removable: !0,
|
|
1393
1393
|
displayIcon: !1,
|
|
1394
|
-
onClose: (
|
|
1394
|
+
onClose: (M) => Y(M, w.id)
|
|
1395
1395
|
},
|
|
1396
1396
|
w.id
|
|
1397
|
-
)) : (
|
|
1397
|
+
)) : (b ?? "") !== "" && /* @__PURE__ */ o(
|
|
1398
1398
|
De,
|
|
1399
1399
|
{
|
|
1400
1400
|
appearance: "gray",
|
|
1401
|
-
label: Mn(h,
|
|
1401
|
+
label: Mn(h, b),
|
|
1402
1402
|
removable: !0,
|
|
1403
1403
|
displayIcon: !1,
|
|
1404
1404
|
onClose: (w) => {
|
|
1405
|
-
w.stopPropagation(),
|
|
1405
|
+
w.stopPropagation(), Z();
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
1408
|
)) }),
|
|
@@ -1426,7 +1426,7 @@ const ao = (e) => {
|
|
|
1426
1426
|
Ja,
|
|
1427
1427
|
{
|
|
1428
1428
|
maxItems: d,
|
|
1429
|
-
onOptionClick:
|
|
1429
|
+
onOptionClick: oe,
|
|
1430
1430
|
options: h,
|
|
1431
1431
|
children: h.map((w) => /* @__PURE__ */ o(
|
|
1432
1432
|
Sr,
|
|
@@ -1459,63 +1459,63 @@ const ao = (e) => {
|
|
|
1459
1459
|
onKeyUp: f,
|
|
1460
1460
|
options: g,
|
|
1461
1461
|
placeholder: y,
|
|
1462
|
-
required:
|
|
1462
|
+
required: b = !1,
|
|
1463
1463
|
size: T = "wide",
|
|
1464
1464
|
value: S,
|
|
1465
1465
|
showOptions: E = !1,
|
|
1466
1466
|
picker: D = !1,
|
|
1467
1467
|
showChevron: N = !0,
|
|
1468
1468
|
editable: I = !1,
|
|
1469
|
-
clearable:
|
|
1470
|
-
} = e, [
|
|
1469
|
+
clearable: k = !0
|
|
1470
|
+
} = e, [O, X] = Q(!1), [K, oe] = Q(!1), [pe, Z] = Q([]), F = rt(null);
|
|
1471
1471
|
Ue(() => {
|
|
1472
1472
|
if (D) {
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1473
|
+
const M = S ? S.split(",").map((V) => V.trim()) : [];
|
|
1474
|
+
Z(M);
|
|
1475
1475
|
}
|
|
1476
1476
|
}, [S, D]);
|
|
1477
|
-
function
|
|
1478
|
-
p(l, ""),
|
|
1477
|
+
function z() {
|
|
1478
|
+
p(l, ""), Z([]), X(!1);
|
|
1479
1479
|
}
|
|
1480
|
-
function Se(
|
|
1480
|
+
function Se(M) {
|
|
1481
1481
|
if (!t) {
|
|
1482
|
-
X(!
|
|
1482
|
+
X(!O);
|
|
1483
1483
|
try {
|
|
1484
|
-
u && u(
|
|
1484
|
+
u && u(M);
|
|
1485
1485
|
} catch (V) {
|
|
1486
1486
|
console.error(`Error when clicking over select. ${V}`);
|
|
1487
1487
|
}
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
|
-
const xe = va((
|
|
1491
|
-
F.current &&
|
|
1490
|
+
const xe = va((M) => {
|
|
1491
|
+
F.current && M.target && !F.current.contains(M.target) && X(!1);
|
|
1492
1492
|
}, []);
|
|
1493
|
-
function Ve(
|
|
1493
|
+
function Ve(M) {
|
|
1494
1494
|
try {
|
|
1495
|
-
|
|
1495
|
+
M.type === "focus" && (oe(!0), h && h(M)), M.type === "blur" && (oe(!1), d && d(M));
|
|
1496
1496
|
} catch (V) {
|
|
1497
1497
|
console.error(`Error executing focus/blur callback. ${V}`);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
function Y(
|
|
1500
|
+
function Y(M) {
|
|
1501
1501
|
X(!1);
|
|
1502
1502
|
try {
|
|
1503
|
-
p && p(l,
|
|
1503
|
+
p && p(l, M);
|
|
1504
1504
|
} catch (V) {
|
|
1505
1505
|
console.error(`Error when changing value using callback. ${V}`);
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1509
|
-
|
|
1508
|
+
function ee(M) {
|
|
1509
|
+
M.key === "Escape" && X(!1), X(!O);
|
|
1510
1510
|
try {
|
|
1511
|
-
f && f(
|
|
1511
|
+
f && f(M);
|
|
1512
1512
|
} catch (V) {
|
|
1513
1513
|
console.error(`Error when clicking over select. ${V}`);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
|
-
function M
|
|
1517
|
-
const { value: V, checked: ct } =
|
|
1518
|
-
|
|
1516
|
+
function _(M) {
|
|
1517
|
+
const { value: V, checked: ct } = M.target;
|
|
1518
|
+
Z((Ke) => {
|
|
1519
1519
|
const Nt = ct ? [...Ke, V] : Ke.filter((Ge) => Ge !== V);
|
|
1520
1520
|
return p(l, Nt.join(",")), Nt;
|
|
1521
1521
|
});
|
|
@@ -1523,14 +1523,14 @@ const ao = (e) => {
|
|
|
1523
1523
|
Ue(() => (document.addEventListener("click", xe), () => {
|
|
1524
1524
|
document.removeEventListener("click", xe);
|
|
1525
1525
|
}), [xe]);
|
|
1526
|
-
const w = St(() =>
|
|
1526
|
+
const w = St(() => k || D ? g : [{ id: "empty-option", label: "", value: "" }, ...g], [g, k, D]);
|
|
1527
1527
|
return /* @__PURE__ */ o(
|
|
1528
1528
|
oo,
|
|
1529
1529
|
{
|
|
1530
1530
|
ref: F,
|
|
1531
1531
|
disabled: t,
|
|
1532
|
-
displayList:
|
|
1533
|
-
focused:
|
|
1532
|
+
displayList: O || E,
|
|
1533
|
+
focused: K,
|
|
1534
1534
|
fullwidth: n,
|
|
1535
1535
|
id: r,
|
|
1536
1536
|
invalid: a,
|
|
@@ -1540,22 +1540,22 @@ const ao = (e) => {
|
|
|
1540
1540
|
name: l,
|
|
1541
1541
|
options: w,
|
|
1542
1542
|
placeholder: y,
|
|
1543
|
-
required:
|
|
1543
|
+
required: b,
|
|
1544
1544
|
size: T,
|
|
1545
1545
|
value: S,
|
|
1546
1546
|
picker: D,
|
|
1547
1547
|
showChevron: N,
|
|
1548
1548
|
checkedItems: pe,
|
|
1549
1549
|
editable: I,
|
|
1550
|
-
clearable:
|
|
1551
|
-
handleClear:
|
|
1550
|
+
clearable: k,
|
|
1551
|
+
handleClear: z,
|
|
1552
1552
|
onBlur: Ve,
|
|
1553
1553
|
onChange: p,
|
|
1554
1554
|
onClick: Se,
|
|
1555
1555
|
onFocus: Ve,
|
|
1556
1556
|
onOptionClick: Y,
|
|
1557
|
-
onKeyUp:
|
|
1558
|
-
onCheckboxChange:
|
|
1557
|
+
onKeyUp: ee,
|
|
1558
|
+
onCheckboxChange: _
|
|
1559
1559
|
}
|
|
1560
1560
|
);
|
|
1561
1561
|
}, $r = (e) => {
|
|
@@ -1601,9 +1601,9 @@ const ao = (e) => {
|
|
|
1601
1601
|
}) => {
|
|
1602
1602
|
var a;
|
|
1603
1603
|
const n = Array.isArray(t.values.value) && t.values.value.length > 0 ? t.values.value.join(",") : "", r = e.placeholder ?? "Seleccione una opción";
|
|
1604
|
-
return /* @__PURE__ */
|
|
1604
|
+
return /* @__PURE__ */ m(v, { alignItems: "center", gap: "16px", width: "100%", children: [
|
|
1605
1605
|
/* @__PURE__ */ o(
|
|
1606
|
-
|
|
1606
|
+
C,
|
|
1607
1607
|
{
|
|
1608
1608
|
type: e ? "body" : "title",
|
|
1609
1609
|
weight: e ? "normal" : "bold",
|
|
@@ -1643,38 +1643,38 @@ const ao = (e) => {
|
|
|
1643
1643
|
statusTo: f,
|
|
1644
1644
|
onBlur: g,
|
|
1645
1645
|
onBlurFrom: y,
|
|
1646
|
-
onBlurTo:
|
|
1646
|
+
onBlurTo: b,
|
|
1647
1647
|
listOfPossibleValues: T,
|
|
1648
1648
|
placeholderFrom: S,
|
|
1649
1649
|
placeholderTo: E
|
|
1650
|
-
} = e, [D, N] = Q(l), [I,
|
|
1651
|
-
let
|
|
1650
|
+
} = e, [D, N] = Q(l), [I, k] = Q(d), O = (F) => {
|
|
1651
|
+
let z;
|
|
1652
1652
|
if (i === W.MONETARY)
|
|
1653
|
-
|
|
1653
|
+
z = Pt(String(F));
|
|
1654
1654
|
else if (i === "date")
|
|
1655
|
-
|
|
1655
|
+
z = F instanceof Date ? F : new Date(String(F));
|
|
1656
1656
|
else if (i === "percentage") {
|
|
1657
1657
|
const Se = zt(String(F));
|
|
1658
1658
|
N(String(F)), n(Se);
|
|
1659
1659
|
return;
|
|
1660
|
-
} else i === "number" ?
|
|
1661
|
-
N(
|
|
1660
|
+
} else i === "number" ? z = Number(F) : z = String(F);
|
|
1661
|
+
N(z), n(z);
|
|
1662
1662
|
}, X = (F) => {
|
|
1663
|
-
let
|
|
1663
|
+
let z;
|
|
1664
1664
|
if (i === W.MONETARY)
|
|
1665
|
-
|
|
1665
|
+
z = Pt(String(F));
|
|
1666
1666
|
else if (i === "date")
|
|
1667
|
-
|
|
1667
|
+
z = F instanceof Date ? F : new Date(String(F));
|
|
1668
1668
|
else if (i === "percentage") {
|
|
1669
1669
|
const Se = zt(String(F));
|
|
1670
|
-
|
|
1670
|
+
k(String(F)), r(Se);
|
|
1671
1671
|
return;
|
|
1672
|
-
} else i === "number" ?
|
|
1673
|
-
|
|
1674
|
-
},
|
|
1675
|
-
F === `${a}SelectFrom` && (N(
|
|
1676
|
-
},
|
|
1677
|
-
return /* @__PURE__ */
|
|
1672
|
+
} else i === "number" ? z = Number(F) : z = String(F);
|
|
1673
|
+
k(z), r(z);
|
|
1674
|
+
}, K = (F, z) => {
|
|
1675
|
+
F === `${a}SelectFrom` && (N(z), n(z)), F === `${a}SelectTo` && (k(z), r(z));
|
|
1676
|
+
}, oe = (F, z) => z === "date" && F instanceof Date ? F.toISOString().split("T")[0] : typeof F == "number" ? F : F ?? "", pe = y ?? g, Z = b ?? g;
|
|
1677
|
+
return /* @__PURE__ */ m(
|
|
1678
1678
|
v,
|
|
1679
1679
|
{
|
|
1680
1680
|
alignItems: p ? "baseline" : "center",
|
|
@@ -1682,7 +1682,7 @@ const ao = (e) => {
|
|
|
1682
1682
|
width: "100%",
|
|
1683
1683
|
children: [
|
|
1684
1684
|
/* @__PURE__ */ o(
|
|
1685
|
-
|
|
1685
|
+
C,
|
|
1686
1686
|
{
|
|
1687
1687
|
type: t ? "body" : "title",
|
|
1688
1688
|
weight: t ? "normal" : "bold",
|
|
@@ -1691,15 +1691,15 @@ const ao = (e) => {
|
|
|
1691
1691
|
children: s
|
|
1692
1692
|
}
|
|
1693
1693
|
),
|
|
1694
|
-
/* @__PURE__ */
|
|
1695
|
-
/* @__PURE__ */
|
|
1694
|
+
/* @__PURE__ */ m(v, { gap: "16px", alignItems: p ? "baseline" : "center", children: [
|
|
1695
|
+
/* @__PURE__ */ m(
|
|
1696
1696
|
v,
|
|
1697
1697
|
{
|
|
1698
1698
|
alignItems: p || u ? "baseline" : "center",
|
|
1699
1699
|
gap: "8px",
|
|
1700
1700
|
children: [
|
|
1701
1701
|
!t && /* @__PURE__ */ o(
|
|
1702
|
-
|
|
1702
|
+
C,
|
|
1703
1703
|
{
|
|
1704
1704
|
type: "title",
|
|
1705
1705
|
size: "medium",
|
|
@@ -1715,7 +1715,7 @@ const ao = (e) => {
|
|
|
1715
1715
|
id: `${a}SelectFrom`,
|
|
1716
1716
|
options: T.list,
|
|
1717
1717
|
value: String(D),
|
|
1718
|
-
onChange:
|
|
1718
|
+
onChange: K,
|
|
1719
1719
|
message: p,
|
|
1720
1720
|
fullwidth: !0,
|
|
1721
1721
|
placeholder: S,
|
|
@@ -1730,10 +1730,10 @@ const ao = (e) => {
|
|
|
1730
1730
|
name: `${a}DynamicFieldFrom`,
|
|
1731
1731
|
label: "",
|
|
1732
1732
|
placeholder: S,
|
|
1733
|
-
value:
|
|
1733
|
+
value: oe(D, i),
|
|
1734
1734
|
required: c,
|
|
1735
|
-
onChange: (F,
|
|
1736
|
-
|
|
1735
|
+
onChange: (F, z) => {
|
|
1736
|
+
O(z);
|
|
1737
1737
|
},
|
|
1738
1738
|
messageValidate: p,
|
|
1739
1739
|
statusValidate: h,
|
|
@@ -1744,7 +1744,7 @@ const ao = (e) => {
|
|
|
1744
1744
|
}
|
|
1745
1745
|
),
|
|
1746
1746
|
/* @__PURE__ */ o(
|
|
1747
|
-
|
|
1747
|
+
C,
|
|
1748
1748
|
{
|
|
1749
1749
|
type: t ? "body" : "title",
|
|
1750
1750
|
size: "medium",
|
|
@@ -1765,13 +1765,13 @@ const ao = (e) => {
|
|
|
1765
1765
|
id: `${a}SelectTo`,
|
|
1766
1766
|
options: T.list,
|
|
1767
1767
|
value: String(I),
|
|
1768
|
-
onChange:
|
|
1768
|
+
onChange: K,
|
|
1769
1769
|
message: u,
|
|
1770
1770
|
fullwidth: !0,
|
|
1771
1771
|
placeholder: E,
|
|
1772
1772
|
name: `${a}SelectTo`,
|
|
1773
1773
|
invalid: f === "invalid",
|
|
1774
|
-
onBlur:
|
|
1774
|
+
onBlur: Z
|
|
1775
1775
|
}
|
|
1776
1776
|
) : /* @__PURE__ */ o(
|
|
1777
1777
|
jt,
|
|
@@ -1780,14 +1780,14 @@ const ao = (e) => {
|
|
|
1780
1780
|
name: `${a}DynamicFieldTo`,
|
|
1781
1781
|
label: "",
|
|
1782
1782
|
placeholder: E,
|
|
1783
|
-
value:
|
|
1783
|
+
value: oe(I, i),
|
|
1784
1784
|
required: c,
|
|
1785
|
-
onChange: (F,
|
|
1786
|
-
X(
|
|
1785
|
+
onChange: (F, z) => {
|
|
1786
|
+
X(z);
|
|
1787
1787
|
},
|
|
1788
1788
|
messageValidate: u,
|
|
1789
1789
|
statusValidate: f,
|
|
1790
|
-
onBlur:
|
|
1790
|
+
onBlur: Z
|
|
1791
1791
|
}
|
|
1792
1792
|
)
|
|
1793
1793
|
}
|
|
@@ -1800,8 +1800,8 @@ const ao = (e) => {
|
|
|
1800
1800
|
condition: e,
|
|
1801
1801
|
formik: t
|
|
1802
1802
|
}) => {
|
|
1803
|
-
var p, u, h, f, g, y,
|
|
1804
|
-
const n = "value.from", r = "value.to", a = !!((p = t.touched.value) != null && p.from || (u = t.touched) != null && u.from), i = !!((h = t.touched.value) != null && h.to || (f = t.touched) != null && f.to), s = t.submitCount > 0 || a, c = t.submitCount > 0 || i, l = ((g = t.errors.value) == null ? void 0 : g.from) || ((y = t.errors) == null ? void 0 : y.from), d = ((
|
|
1803
|
+
var p, u, h, f, g, y, b, T, S, E, D, N;
|
|
1804
|
+
const n = "value.from", r = "value.to", a = !!((p = t.touched.value) != null && p.from || (u = t.touched) != null && u.from), i = !!((h = t.touched.value) != null && h.to || (f = t.touched) != null && f.to), s = t.submitCount > 0 || a, c = t.submitCount > 0 || i, l = ((g = t.errors.value) == null ? void 0 : g.from) || ((y = t.errors) == null ? void 0 : y.from), d = ((b = t.errors.value) == null ? void 0 : b.to) || ((T = t.errors) == null ? void 0 : T.to);
|
|
1805
1805
|
return /* @__PURE__ */ o(En, { children: /* @__PURE__ */ o(
|
|
1806
1806
|
Ir,
|
|
1807
1807
|
{
|
|
@@ -1831,8 +1831,8 @@ const ao = (e) => {
|
|
|
1831
1831
|
const n = (i, s) => {
|
|
1832
1832
|
t.setFieldValue("value", s);
|
|
1833
1833
|
}, r = e.placeholder ?? `Seleccione una opción para ${e.labelName}`;
|
|
1834
|
-
return /* @__PURE__ */ o(En, { children: /* @__PURE__ */
|
|
1835
|
-
/* @__PURE__ */ o(
|
|
1834
|
+
return /* @__PURE__ */ o(En, { children: /* @__PURE__ */ m(v, { gap: "16px", alignItems: "center", children: [
|
|
1835
|
+
/* @__PURE__ */ o(C, { type: "title", weight: "bold", size: "medium", appearance: "primary", children: e == null ? void 0 : e.labelName }),
|
|
1836
1836
|
/* @__PURE__ */ o(
|
|
1837
1837
|
Ne,
|
|
1838
1838
|
{
|
|
@@ -1852,14 +1852,14 @@ const ao = (e) => {
|
|
|
1852
1852
|
condition: e,
|
|
1853
1853
|
formik: t
|
|
1854
1854
|
}) => {
|
|
1855
|
-
var
|
|
1856
|
-
const n = e.groupKey || "group-primary", r = e.conditionName, a = `conditionsThatEstablishesTheDecision.${n}.${r}`, i = ((
|
|
1855
|
+
var b, T, S, E, D;
|
|
1856
|
+
const n = e.groupKey || "group-primary", r = e.conditionName, a = `conditionsThatEstablishesTheDecision.${n}.${r}`, i = ((b = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : b[n]) || {}, s = ((T = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : T[n]) || {}, c = ((S = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : S[n]) || {}, l = i[r];
|
|
1857
1857
|
let d = "";
|
|
1858
1858
|
l != null ? typeof l == "object" && !Array.isArray(l) && "value" in l ? d = l.value ?? "" : d = l : e.value !== void 0 && (d = e.value);
|
|
1859
1859
|
const p = s[r], u = c[r], h = typeof p == "string" ? p : p && typeof p == "object" && typeof p.value == "string" ? p.value : "", f = u && typeof u == "object" ? !!u.value : !!u, g = f && h ? "invalid" : f ? "valid" : void 0, y = (N, I) => {
|
|
1860
|
-
const
|
|
1861
|
-
|
|
1862
|
-
...
|
|
1860
|
+
const k = i[r];
|
|
1861
|
+
k && typeof k == "object" && !Array.isArray(k) ? t.setFieldValue(`${a}.value`, I) : t.setFieldValue(a, {
|
|
1862
|
+
...k && typeof k == "object" ? k : {},
|
|
1863
1863
|
value: I
|
|
1864
1864
|
});
|
|
1865
1865
|
};
|
|
@@ -1883,8 +1883,8 @@ const ao = (e) => {
|
|
|
1883
1883
|
condition: e,
|
|
1884
1884
|
formik: t
|
|
1885
1885
|
}) => {
|
|
1886
|
-
var u, h, f, g, y,
|
|
1887
|
-
const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? r ?? {}, i = ((g = (f = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : f[n]) == null ? void 0 : g[e.conditionName]) || {}, s = ((
|
|
1886
|
+
var u, h, f, g, y, b, T, S, E, D, N, I;
|
|
1887
|
+
const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? r ?? {}, i = ((g = (f = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : f[n]) == null ? void 0 : g[e.conditionName]) || {}, s = ((b = (y = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : y[n]) == null ? void 0 : b[e.conditionName]) || {}, c = ((T = i == null ? void 0 : i.value) == null ? void 0 : T.from) || (i == null ? void 0 : i.from), l = ((S = i == null ? void 0 : i.value) == null ? void 0 : S.to) || (i == null ? void 0 : i.to), d = (E = s == null ? void 0 : s.value) != null && E.from || s != null && s.from ? c ? "invalid" : "valid" : "pending", p = (D = s == null ? void 0 : s.value) != null && D.to || s != null && s.to ? l ? "invalid" : "valid" : "pending";
|
|
1888
1888
|
return /* @__PURE__ */ o(
|
|
1889
1889
|
Ir,
|
|
1890
1890
|
{
|
|
@@ -1893,13 +1893,13 @@ const ao = (e) => {
|
|
|
1893
1893
|
label: e.labelName,
|
|
1894
1894
|
valueFrom: a == null ? void 0 : a.from,
|
|
1895
1895
|
valueTo: a == null ? void 0 : a.to,
|
|
1896
|
-
handleInputChangeFrom: (
|
|
1896
|
+
handleInputChangeFrom: (k) => t.setFieldValue(
|
|
1897
1897
|
`conditionsThatEstablishesTheDecision.${n}.${e.conditionName}.value.from`,
|
|
1898
|
-
|
|
1898
|
+
k
|
|
1899
1899
|
),
|
|
1900
|
-
handleInputChangeTo: (
|
|
1900
|
+
handleInputChangeTo: (k) => t.setFieldValue(
|
|
1901
1901
|
`conditionsThatEstablishesTheDecision.${n}.${e.conditionName}.value.to`,
|
|
1902
|
-
|
|
1902
|
+
k
|
|
1903
1903
|
),
|
|
1904
1904
|
messageFrom: c,
|
|
1905
1905
|
messageTo: l,
|
|
@@ -1918,8 +1918,8 @@ const ao = (e) => {
|
|
|
1918
1918
|
}) => {
|
|
1919
1919
|
var c, l, d;
|
|
1920
1920
|
const n = e.groupKey || "group-primary", r = (l = (c = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : c[n]) == null ? void 0 : l[e.conditionName], a = (r == null ? void 0 : r.value) ?? r, i = Array.isArray(a) ? a : [], s = i.length > 0 ? i.join(",") : "";
|
|
1921
|
-
return /* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */ o(
|
|
1921
|
+
return /* @__PURE__ */ m(v, { alignItems: "center", gap: "16px", width: "100%", children: [
|
|
1922
|
+
/* @__PURE__ */ o(C, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: e.labelName }),
|
|
1923
1923
|
/* @__PURE__ */ o(
|
|
1924
1924
|
$r,
|
|
1925
1925
|
{
|
|
@@ -1942,8 +1942,8 @@ const ao = (e) => {
|
|
|
1942
1942
|
condition: e,
|
|
1943
1943
|
formik: t
|
|
1944
1944
|
}) => {
|
|
1945
|
-
var u, h, f, g, y,
|
|
1946
|
-
const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? "", i = (g = (f = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : f[n]) == null ? void 0 : g[e.conditionName], s = (
|
|
1945
|
+
var u, h, f, g, y, b, T;
|
|
1946
|
+
const n = e.groupKey || "group-primary", r = (h = (u = t.values.conditionsThatEstablishesTheDecision) == null ? void 0 : u[n]) == null ? void 0 : h[e.conditionName], a = (r == null ? void 0 : r.value) ?? "", i = (g = (f = t.errors.conditionsThatEstablishesTheDecision) == null ? void 0 : f[n]) == null ? void 0 : g[e.conditionName], s = (b = (y = t.touched.conditionsThatEstablishesTheDecision) == null ? void 0 : y[n]) == null ? void 0 : b[e.conditionName], l = ((S) => {
|
|
1947
1947
|
if (S) {
|
|
1948
1948
|
if (typeof S == "string") return S;
|
|
1949
1949
|
if (typeof S == "object" && typeof S.value == "string")
|
|
@@ -1955,8 +1955,8 @@ const ao = (e) => {
|
|
|
1955
1955
|
E
|
|
1956
1956
|
);
|
|
1957
1957
|
};
|
|
1958
|
-
return /* @__PURE__ */
|
|
1959
|
-
/* @__PURE__ */ o(
|
|
1958
|
+
return /* @__PURE__ */ m(v, { gap: "16px", alignItems: "center", children: [
|
|
1959
|
+
/* @__PURE__ */ o(C, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: e == null ? void 0 : e.labelName }),
|
|
1960
1960
|
/* @__PURE__ */ o(
|
|
1961
1961
|
Ne,
|
|
1962
1962
|
{
|
|
@@ -2017,17 +2017,17 @@ const ao = (e) => {
|
|
|
2017
2017
|
onChange: p,
|
|
2018
2018
|
size: u = "wide"
|
|
2019
2019
|
} = e, h = typeof d == "string" ? d.split(",").filter(Boolean) : [], f = i.filter(
|
|
2020
|
-
(
|
|
2021
|
-
), g = (
|
|
2022
|
-
p(
|
|
2023
|
-
}, y = (
|
|
2024
|
-
const T = h.filter((S) => S !==
|
|
2020
|
+
(b) => h.includes(b.id)
|
|
2021
|
+
), g = (b, T) => {
|
|
2022
|
+
p(b, T);
|
|
2023
|
+
}, y = (b) => {
|
|
2024
|
+
const T = h.filter((S) => S !== b).join(",");
|
|
2025
2025
|
p(n, T);
|
|
2026
2026
|
};
|
|
2027
|
-
return /* @__PURE__ */
|
|
2028
|
-
f.length > 0 && /* @__PURE__ */
|
|
2027
|
+
return /* @__PURE__ */ m(v, { direction: "column", padding: "0", gap: "16px", children: [
|
|
2028
|
+
f.length > 0 && /* @__PURE__ */ m(v, { gap: "16px", alignItems: "center", children: [
|
|
2029
2029
|
/* @__PURE__ */ o(
|
|
2030
|
-
|
|
2030
|
+
C,
|
|
2031
2031
|
{
|
|
2032
2032
|
type: t ? "body" : "title",
|
|
2033
2033
|
weight: t ? "normal" : "bold",
|
|
@@ -2036,21 +2036,21 @@ const ao = (e) => {
|
|
|
2036
2036
|
children: a
|
|
2037
2037
|
}
|
|
2038
2038
|
),
|
|
2039
|
-
/* @__PURE__ */ o(xr, { children: /* @__PURE__ */ o(v, { gap: "8px", width: "71.6rem", children: f.map((
|
|
2039
|
+
/* @__PURE__ */ o(xr, { children: /* @__PURE__ */ o(v, { gap: "8px", width: "71.6rem", children: f.map((b) => /* @__PURE__ */ o(
|
|
2040
2040
|
De,
|
|
2041
2041
|
{
|
|
2042
2042
|
appearance: "gray",
|
|
2043
|
-
label:
|
|
2043
|
+
label: b.label,
|
|
2044
2044
|
removable: !0,
|
|
2045
|
-
onClose: () => y(
|
|
2045
|
+
onClose: () => y(b.value),
|
|
2046
2046
|
displayIcon: !1
|
|
2047
2047
|
},
|
|
2048
|
-
|
|
2048
|
+
b.id
|
|
2049
2049
|
)) }) })
|
|
2050
2050
|
] }),
|
|
2051
|
-
/* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ m(v, { gap: "16px", alignItems: "center", children: [
|
|
2052
2052
|
/* @__PURE__ */ o(
|
|
2053
|
-
|
|
2053
|
+
C,
|
|
2054
2054
|
{
|
|
2055
2055
|
type: t ? "body" : "title",
|
|
2056
2056
|
weight: t ? "normal" : "bold",
|
|
@@ -2105,7 +2105,7 @@ const ao = (e) => {
|
|
|
2105
2105
|
DATE: "date",
|
|
2106
2106
|
NUMBER: "number",
|
|
2107
2107
|
PERCENTAGE: "percentage"
|
|
2108
|
-
},
|
|
2108
|
+
}, P = {
|
|
2109
2109
|
EQUAL: "EqualTo",
|
|
2110
2110
|
GREATER_THAN: "GreaterThan",
|
|
2111
2111
|
LESS_THAN: "LessThan",
|
|
@@ -2156,7 +2156,7 @@ const Do = {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
`, No = (e) => {
|
|
2158
2158
|
const { label: t, labelType: n = "condition", type: r, valueInput: a } = e;
|
|
2159
|
-
return /* @__PURE__ */
|
|
2159
|
+
return /* @__PURE__ */ m(
|
|
2160
2160
|
v,
|
|
2161
2161
|
{
|
|
2162
2162
|
direction: "column",
|
|
@@ -2164,7 +2164,7 @@ const Do = {
|
|
|
2164
2164
|
alignItems: n === "condition" ? "flex-start" : "center",
|
|
2165
2165
|
children: [
|
|
2166
2166
|
/* @__PURE__ */ o(
|
|
2167
|
-
|
|
2167
|
+
C,
|
|
2168
2168
|
{
|
|
2169
2169
|
type: "label",
|
|
2170
2170
|
weight: "bold",
|
|
@@ -2173,7 +2173,7 @@ const Do = {
|
|
|
2173
2173
|
children: t
|
|
2174
2174
|
}
|
|
2175
2175
|
),
|
|
2176
|
-
n === "condition" ? /* @__PURE__ */ o(
|
|
2176
|
+
n === "condition" ? /* @__PURE__ */ o(C, { type: "body", size: "medium", appearance: "gray", children: ke(a, r) }) : /* @__PURE__ */ o(C, { type: "label", size: "large", appearance: "gray", children: ke(a, r) })
|
|
2177
2177
|
]
|
|
2178
2178
|
}
|
|
2179
2179
|
);
|
|
@@ -2192,8 +2192,8 @@ const Do = {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
), Eo = (e) => {
|
|
2194
2194
|
const { id: t, label: n, options: r } = e;
|
|
2195
|
-
return /* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */ o(
|
|
2195
|
+
return /* @__PURE__ */ m(v, { direction: "column", gap: "2px", children: [
|
|
2196
|
+
/* @__PURE__ */ o(C, { type: "label", weight: "bold", size: "medium", appearance: "dark", children: n }),
|
|
2197
2197
|
/* @__PURE__ */ o(v, { wrap: "wrap", gap: "8px", children: r.map((a) => /* @__PURE__ */ o(v, { width: "fit-content", children: /* @__PURE__ */ o(
|
|
2198
2198
|
De,
|
|
2199
2199
|
{
|
|
@@ -2223,7 +2223,7 @@ const Do = {
|
|
|
2223
2223
|
valueFrom: a = 0,
|
|
2224
2224
|
valueTo: i = 0
|
|
2225
2225
|
} = e;
|
|
2226
|
-
return /* @__PURE__ */
|
|
2226
|
+
return /* @__PURE__ */ m(
|
|
2227
2227
|
v,
|
|
2228
2228
|
{
|
|
2229
2229
|
direction: "column",
|
|
@@ -2231,7 +2231,7 @@ const Do = {
|
|
|
2231
2231
|
alignItems: n === "condition" ? "flex-start" : "center",
|
|
2232
2232
|
children: [
|
|
2233
2233
|
/* @__PURE__ */ o(
|
|
2234
|
-
|
|
2234
|
+
C,
|
|
2235
2235
|
{
|
|
2236
2236
|
type: "label",
|
|
2237
2237
|
weight: "bold",
|
|
@@ -2241,17 +2241,17 @@ const Do = {
|
|
|
2241
2241
|
}
|
|
2242
2242
|
),
|
|
2243
2243
|
/* @__PURE__ */ o(
|
|
2244
|
-
|
|
2244
|
+
C,
|
|
2245
2245
|
{
|
|
2246
2246
|
as: "span",
|
|
2247
2247
|
type: "label",
|
|
2248
2248
|
weight: n === "condition" ? "normal" : "bold",
|
|
2249
2249
|
size: n === "condition" ? "medium" : "large",
|
|
2250
2250
|
appearance: "gray",
|
|
2251
|
-
children: /* @__PURE__ */
|
|
2251
|
+
children: /* @__PURE__ */ m(v, { gap: "4px", children: [
|
|
2252
2252
|
"De",
|
|
2253
2253
|
/* @__PURE__ */ o(
|
|
2254
|
-
|
|
2254
|
+
C,
|
|
2255
2255
|
{
|
|
2256
2256
|
as: "span",
|
|
2257
2257
|
type: "label",
|
|
@@ -2263,7 +2263,7 @@ const Do = {
|
|
|
2263
2263
|
),
|
|
2264
2264
|
"a",
|
|
2265
2265
|
/* @__PURE__ */ o(
|
|
2266
|
-
|
|
2266
|
+
C,
|
|
2267
2267
|
{
|
|
2268
2268
|
as: "span",
|
|
2269
2269
|
type: "label",
|
|
@@ -2369,8 +2369,8 @@ const Do = {
|
|
|
2369
2369
|
buttonAppearance: h = "primary",
|
|
2370
2370
|
withIconTitle: f = !1,
|
|
2371
2371
|
icon: g
|
|
2372
|
-
} = e, y = Te("(max-width: 768px)"),
|
|
2373
|
-
if (!
|
|
2372
|
+
} = e, y = Te("(max-width: 768px)"), b = document.getElementById(c);
|
|
2373
|
+
if (!b)
|
|
2374
2374
|
throw new Error(
|
|
2375
2375
|
"The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
|
|
2376
2376
|
);
|
|
@@ -2379,15 +2379,15 @@ const Do = {
|
|
|
2379
2379
|
Fo,
|
|
2380
2380
|
{
|
|
2381
2381
|
onClick: (T) => T.stopPropagation(),
|
|
2382
|
-
children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */
|
|
2384
|
-
/* @__PURE__ */
|
|
2385
|
-
/* @__PURE__ */
|
|
2382
|
+
children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ m(Ro, { $smallScreen: y, children: [
|
|
2383
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
|
|
2384
|
+
/* @__PURE__ */ m(v, { alignContent: "center", justifyContent: "space-between", children: [
|
|
2385
|
+
/* @__PURE__ */ m(v, { gap: "8px", children: [
|
|
2386
2386
|
f && /* @__PURE__ */ o(j, { appearance: h, icon: g }),
|
|
2387
|
-
/* @__PURE__ */ o(
|
|
2387
|
+
/* @__PURE__ */ o(C, { appearance: "dark", size: "small", type: "headline", children: l })
|
|
2388
2388
|
] }),
|
|
2389
|
-
/* @__PURE__ */
|
|
2390
|
-
d && /* @__PURE__ */ o(
|
|
2389
|
+
/* @__PURE__ */ m(v, { alignItems: "center", children: [
|
|
2390
|
+
d && /* @__PURE__ */ o(C, { children: "Cerrar" }),
|
|
2391
2391
|
/* @__PURE__ */ o(
|
|
2392
2392
|
j,
|
|
2393
2393
|
{
|
|
@@ -2401,10 +2401,10 @@ const Do = {
|
|
|
2401
2401
|
)
|
|
2402
2402
|
] })
|
|
2403
2403
|
] }),
|
|
2404
|
-
p && /* @__PURE__ */ o(
|
|
2404
|
+
p && /* @__PURE__ */ o(re, {})
|
|
2405
2405
|
] }),
|
|
2406
2406
|
r,
|
|
2407
|
-
/* @__PURE__ */
|
|
2407
|
+
/* @__PURE__ */ m(v, { gap: "20px", justifyContent: "flex-end", children: [
|
|
2408
2408
|
u && /* @__PURE__ */ o(
|
|
2409
2409
|
J,
|
|
2410
2410
|
{
|
|
@@ -2433,7 +2433,7 @@ const Do = {
|
|
|
2433
2433
|
] }) })
|
|
2434
2434
|
}
|
|
2435
2435
|
),
|
|
2436
|
-
|
|
2436
|
+
b
|
|
2437
2437
|
);
|
|
2438
2438
|
}, Vo = (e) => {
|
|
2439
2439
|
const {
|
|
@@ -2446,25 +2446,29 @@ const Do = {
|
|
|
2446
2446
|
showModal: c,
|
|
2447
2447
|
validDate: l
|
|
2448
2448
|
} = e, d = n === "condition" ? `"${ke(a, r)}"` : `${ke(a, r)}`;
|
|
2449
|
-
return /* @__PURE__ */
|
|
2450
|
-
/* @__PURE__ */
|
|
2451
|
-
|
|
2449
|
+
return /* @__PURE__ */ m(v, { alignItems: "center", width: "100%", gap: "4px", children: [
|
|
2450
|
+
/* @__PURE__ */ m(
|
|
2451
|
+
C,
|
|
2452
2452
|
{
|
|
2453
2453
|
type: n === "condition" ? "body" : "label",
|
|
2454
2454
|
weight: n === "condition" ? "normal" : "bold",
|
|
2455
2455
|
size: "medium",
|
|
2456
2456
|
appearance: "dark",
|
|
2457
|
-
children:
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2457
|
+
children: [
|
|
2458
|
+
t,
|
|
2459
|
+
" ",
|
|
2460
|
+
/* @__PURE__ */ o(
|
|
2461
|
+
C,
|
|
2462
|
+
{
|
|
2463
|
+
type: n === "condition" ? "body" : "title",
|
|
2464
|
+
size: "medium",
|
|
2465
|
+
appearance: n === "condition" ? "dark" : "gray",
|
|
2466
|
+
weight: n === "condition" ? "bold" : "normal",
|
|
2467
|
+
as: "span",
|
|
2468
|
+
children: d
|
|
2469
|
+
}
|
|
2470
|
+
)
|
|
2471
|
+
]
|
|
2468
2472
|
}
|
|
2469
2473
|
),
|
|
2470
2474
|
i && /* @__PURE__ */ o(
|
|
@@ -2493,11 +2497,11 @@ const Do = {
|
|
|
2493
2497
|
buttonAppearance: "help",
|
|
2494
2498
|
withIconTitle: !0,
|
|
2495
2499
|
icon: /* @__PURE__ */ o(it, {}),
|
|
2496
|
-
children: /* @__PURE__ */
|
|
2497
|
-
/* @__PURE__ */ o(
|
|
2498
|
-
/* @__PURE__ */ o(
|
|
2499
|
-
/* @__PURE__ */ o(
|
|
2500
|
-
/* @__PURE__ */ o(
|
|
2500
|
+
children: /* @__PURE__ */ m(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
|
|
2501
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: t }),
|
|
2502
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: ke(a, r) }),
|
|
2503
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
|
|
2504
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: l })
|
|
2501
2505
|
] })
|
|
2502
2506
|
}
|
|
2503
2507
|
)
|
|
@@ -2614,20 +2618,24 @@ const tt = (e) => {
|
|
|
2614
2618
|
showModal: s,
|
|
2615
2619
|
validDate: c
|
|
2616
2620
|
} = e;
|
|
2617
|
-
return /* @__PURE__ */
|
|
2618
|
-
/* @__PURE__ */
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2621
|
+
return /* @__PURE__ */ m(v, { gap: "4px", alignItems: "center", width: "100%", children: [
|
|
2622
|
+
/* @__PURE__ */ m(C, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: [
|
|
2623
|
+
n,
|
|
2624
|
+
' "',
|
|
2625
|
+
r.map((l, d) => /* @__PURE__ */ o(
|
|
2626
|
+
C,
|
|
2627
|
+
{
|
|
2628
|
+
as: "span",
|
|
2629
|
+
type: "body",
|
|
2630
|
+
weight: "bold",
|
|
2631
|
+
size: "medium",
|
|
2632
|
+
appearance: "dark",
|
|
2633
|
+
children: d < r.length - 1 ? ` ${l.label} o` : ` ${l.label}`
|
|
2634
|
+
},
|
|
2635
|
+
l.id
|
|
2636
|
+
)),
|
|
2637
|
+
'"'
|
|
2638
|
+
] }),
|
|
2631
2639
|
a && /* @__PURE__ */ o(
|
|
2632
2640
|
j,
|
|
2633
2641
|
{
|
|
@@ -2654,8 +2662,8 @@ const tt = (e) => {
|
|
|
2654
2662
|
buttonAppearance: "help",
|
|
2655
2663
|
withIconTitle: !0,
|
|
2656
2664
|
icon: /* @__PURE__ */ o(it, {}),
|
|
2657
|
-
children: /* @__PURE__ */
|
|
2658
|
-
/* @__PURE__ */ o(
|
|
2665
|
+
children: /* @__PURE__ */ m(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
|
|
2666
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: n }),
|
|
2659
2667
|
r.map((l) => /* @__PURE__ */ o(
|
|
2660
2668
|
De,
|
|
2661
2669
|
{
|
|
@@ -2665,8 +2673,8 @@ const tt = (e) => {
|
|
|
2665
2673
|
displayIcon: !1
|
|
2666
2674
|
}
|
|
2667
2675
|
)),
|
|
2668
|
-
/* @__PURE__ */ o(
|
|
2669
|
-
/* @__PURE__ */ o(
|
|
2676
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
|
|
2677
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: c })
|
|
2670
2678
|
] })
|
|
2671
2679
|
}
|
|
2672
2680
|
)
|
|
@@ -2713,26 +2721,29 @@ const tt = (e) => {
|
|
|
2713
2721
|
showModal: l,
|
|
2714
2722
|
validDate: d
|
|
2715
2723
|
} = e, p = `De ${ke(a, r)} a ${ke(i, r)}`, u = n === "condition" ? `"${p}"` : p;
|
|
2716
|
-
return /* @__PURE__ */
|
|
2717
|
-
/* @__PURE__ */
|
|
2718
|
-
|
|
2724
|
+
return /* @__PURE__ */ m(v, { gap: "8px", alignItems: "center", children: [
|
|
2725
|
+
/* @__PURE__ */ m(
|
|
2726
|
+
C,
|
|
2719
2727
|
{
|
|
2720
2728
|
type: n === "condition" ? "body" : "label",
|
|
2721
2729
|
weight: n === "condition" ? "normal" : "bold",
|
|
2722
2730
|
size: "medium",
|
|
2723
2731
|
appearance: "dark",
|
|
2724
|
-
children:
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2732
|
+
children: [
|
|
2733
|
+
t,
|
|
2734
|
+
" ",
|
|
2735
|
+
/* @__PURE__ */ o(
|
|
2736
|
+
C,
|
|
2737
|
+
{
|
|
2738
|
+
as: "span",
|
|
2739
|
+
type: n === "condition" ? "body" : "title",
|
|
2740
|
+
weight: n === "condition" ? "bold" : "normal",
|
|
2741
|
+
size: "medium",
|
|
2742
|
+
appearance: n === "condition" ? "dark" : "gray",
|
|
2743
|
+
children: u
|
|
2744
|
+
}
|
|
2745
|
+
)
|
|
2746
|
+
]
|
|
2736
2747
|
}
|
|
2737
2748
|
),
|
|
2738
2749
|
s && /* @__PURE__ */ o(
|
|
@@ -2761,11 +2772,11 @@ const tt = (e) => {
|
|
|
2761
2772
|
buttonAppearance: "help",
|
|
2762
2773
|
withIconTitle: !0,
|
|
2763
2774
|
icon: /* @__PURE__ */ o(it, {}),
|
|
2764
|
-
children: /* @__PURE__ */
|
|
2765
|
-
/* @__PURE__ */ o(
|
|
2766
|
-
/* @__PURE__ */ o(
|
|
2767
|
-
/* @__PURE__ */ o(
|
|
2768
|
-
/* @__PURE__ */ o(
|
|
2775
|
+
children: /* @__PURE__ */ m(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
|
|
2776
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: t }),
|
|
2777
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: u }),
|
|
2778
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
|
|
2779
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: d })
|
|
2769
2780
|
] })
|
|
2770
2781
|
}
|
|
2771
2782
|
)
|
|
@@ -2853,7 +2864,7 @@ const tt = (e) => {
|
|
|
2853
2864
|
textValues: l,
|
|
2854
2865
|
visibleConditions: d
|
|
2855
2866
|
} = e;
|
|
2856
|
-
return i ? /* @__PURE__ */
|
|
2867
|
+
return i ? /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
2857
2868
|
/* @__PURE__ */ o(v, { direction: "column", alignItems: "center", children: /* @__PURE__ */ o(
|
|
2858
2869
|
at,
|
|
2859
2870
|
{
|
|
@@ -2864,8 +2875,8 @@ const tt = (e) => {
|
|
|
2864
2875
|
type: "decision"
|
|
2865
2876
|
}
|
|
2866
2877
|
) }, n.ruleName),
|
|
2867
|
-
/* @__PURE__ */ o(
|
|
2868
|
-
/* @__PURE__ */ o(Un, { children: /* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
2879
|
+
/* @__PURE__ */ o(Un, { children: /* @__PURE__ */ m(
|
|
2869
2880
|
v,
|
|
2870
2881
|
{
|
|
2871
2882
|
direction: "column",
|
|
@@ -2874,7 +2885,7 @@ const tt = (e) => {
|
|
|
2874
2885
|
height: "203px",
|
|
2875
2886
|
children: [
|
|
2876
2887
|
d.length > 0 && /* @__PURE__ */ o(
|
|
2877
|
-
|
|
2888
|
+
C,
|
|
2878
2889
|
{
|
|
2879
2890
|
type: "label",
|
|
2880
2891
|
size: "large",
|
|
@@ -2893,7 +2904,7 @@ const tt = (e) => {
|
|
|
2893
2904
|
)
|
|
2894
2905
|
}
|
|
2895
2906
|
) }) }, p.conditionName)),
|
|
2896
|
-
d.length > 0 && /* @__PURE__ */ o(
|
|
2907
|
+
d.length > 0 && /* @__PURE__ */ o(re, { dashed: !0 }),
|
|
2897
2908
|
c && /* @__PURE__ */ o(G, { children: r && /* @__PURE__ */ o(
|
|
2898
2909
|
at,
|
|
2899
2910
|
{
|
|
@@ -2906,13 +2917,13 @@ const tt = (e) => {
|
|
|
2906
2917
|
]
|
|
2907
2918
|
}
|
|
2908
2919
|
) })
|
|
2909
|
-
] }) : /* @__PURE__ */
|
|
2910
|
-
/* @__PURE__ */
|
|
2920
|
+
] }) : /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
2921
|
+
/* @__PURE__ */ m(v, { direction: "column", alignItems: "center", gap: "4px", children: [
|
|
2911
2922
|
/* @__PURE__ */ o(be, { animated: !0, width: "180px" }),
|
|
2912
2923
|
/* @__PURE__ */ o(be, { animated: !0, width: "85px" })
|
|
2913
2924
|
] }, "loading"),
|
|
2914
|
-
/* @__PURE__ */
|
|
2915
|
-
/* @__PURE__ */ o(
|
|
2925
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
2926
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
2916
2927
|
/* @__PURE__ */ o(be, { animated: !0, width: "150px" })
|
|
2917
2928
|
] }),
|
|
2918
2929
|
/* @__PURE__ */ o(Un, { children: /* @__PURE__ */ o(
|
|
@@ -2922,7 +2933,7 @@ const tt = (e) => {
|
|
|
2922
2933
|
gap: "12px",
|
|
2923
2934
|
justifyContent: "space-between",
|
|
2924
2935
|
height: "203px",
|
|
2925
|
-
children: s.map((p, u) => /* @__PURE__ */ o(zn, { children: /* @__PURE__ */
|
|
2936
|
+
children: s.map((p, u) => /* @__PURE__ */ o(zn, { children: /* @__PURE__ */ m(
|
|
2926
2937
|
v,
|
|
2927
2938
|
{
|
|
2928
2939
|
direction: "column",
|
|
@@ -2944,7 +2955,7 @@ const tt = (e) => {
|
|
|
2944
2955
|
element: {
|
|
2945
2956
|
labelName: r == null ? void 0 : r.terms,
|
|
2946
2957
|
value: String(t.effectiveFrom),
|
|
2947
|
-
howToSetTheDecision:
|
|
2958
|
+
howToSetTheDecision: P.RANGE,
|
|
2948
2959
|
decisionDataType: de.DATE
|
|
2949
2960
|
},
|
|
2950
2961
|
valueData: pt({
|
|
@@ -2953,20 +2964,20 @@ const tt = (e) => {
|
|
|
2953
2964
|
from: String(t.effectiveFrom),
|
|
2954
2965
|
to: String(t.validUntil)
|
|
2955
2966
|
},
|
|
2956
|
-
howToSetTheDecision:
|
|
2967
|
+
howToSetTheDecision: P.RANGE,
|
|
2957
2968
|
decisionDataType: de.DATE
|
|
2958
2969
|
})
|
|
2959
2970
|
} : a && !i ? {
|
|
2960
2971
|
element: {
|
|
2961
2972
|
labelName: r == null ? void 0 : r.terms,
|
|
2962
2973
|
value: String(t.effectiveFrom),
|
|
2963
|
-
howToSetTheDecision:
|
|
2974
|
+
howToSetTheDecision: P.EQUAL,
|
|
2964
2975
|
decisionDataType: de.DATE
|
|
2965
2976
|
},
|
|
2966
2977
|
valueData: pt({
|
|
2967
2978
|
labelName: r == null ? void 0 : r.terms,
|
|
2968
2979
|
value: String(t.effectiveFrom),
|
|
2969
|
-
howToSetTheDecision:
|
|
2980
|
+
howToSetTheDecision: P.EQUAL,
|
|
2970
2981
|
decisionDataType: de.DATE
|
|
2971
2982
|
})
|
|
2972
2983
|
} : null, c = t ? {
|
|
@@ -3035,9 +3046,9 @@ const tt = (e) => {
|
|
|
3035
3046
|
);
|
|
3036
3047
|
const s = Te("(max-width: 400px)");
|
|
3037
3048
|
return xt(
|
|
3038
|
-
/* @__PURE__ */ o(ei, { smallScreen: s, children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(ti, { children: /* @__PURE__ */
|
|
3039
|
-
/* @__PURE__ */ o(v, { direction: "column", gap: "24px", children: /* @__PURE__ */
|
|
3040
|
-
/* @__PURE__ */ o(
|
|
3049
|
+
/* @__PURE__ */ o(ei, { smallScreen: s, children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(ti, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
3050
|
+
/* @__PURE__ */ o(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
3051
|
+
/* @__PURE__ */ o(C, { type: "title", size: "large", appearance: "dark", weight: "bold", children: a }),
|
|
3041
3052
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: r })
|
|
3042
3053
|
] }) }),
|
|
3043
3054
|
t
|
|
@@ -3138,8 +3149,8 @@ const Or = A.div`
|
|
|
3138
3149
|
);
|
|
3139
3150
|
}, li = (e) => {
|
|
3140
3151
|
const { decision: t, controls: n, handleOpenModal: r, handleDelete: a, textValues: i } = e;
|
|
3141
|
-
return t ? /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */ o(
|
|
3152
|
+
return t ? /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
|
|
3153
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: t.decisionId }),
|
|
3143
3154
|
/* @__PURE__ */ o(
|
|
3144
3155
|
Ct,
|
|
3145
3156
|
{
|
|
@@ -3158,8 +3169,8 @@ const Or = A.div`
|
|
|
3158
3169
|
handleOpenModal: r,
|
|
3159
3170
|
shouldRenderEmptyMessage: a
|
|
3160
3171
|
} = e, i = t || "Agregar decisión";
|
|
3161
|
-
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */
|
|
3162
|
-
/* @__PURE__ */ o(
|
|
3172
|
+
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
|
|
3173
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
|
|
3163
3174
|
/* @__PURE__ */ o(
|
|
3164
3175
|
Or,
|
|
3165
3176
|
{
|
|
@@ -3172,9 +3183,9 @@ const Or = A.div`
|
|
|
3172
3183
|
},
|
|
3173
3184
|
handleView: () => r ? r() : null,
|
|
3174
3185
|
controls: !1,
|
|
3175
|
-
children: /* @__PURE__ */
|
|
3186
|
+
children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
3176
3187
|
/* @__PURE__ */ o(j, { appearance: "gray", icon: /* @__PURE__ */ o(Tt, {}), size: "35px" }),
|
|
3177
|
-
/* @__PURE__ */ o(
|
|
3188
|
+
/* @__PURE__ */ o(C, { appearance: "gray", type: "body", size: "large", children: i })
|
|
3178
3189
|
] })
|
|
3179
3190
|
}
|
|
3180
3191
|
)
|
|
@@ -3237,7 +3248,7 @@ const Or = A.div`
|
|
|
3237
3248
|
handleSubmitForm: h,
|
|
3238
3249
|
handleDelete: f,
|
|
3239
3250
|
terms: g = !0
|
|
3240
|
-
} = e, y = Te("(max-width: 681px)"),
|
|
3251
|
+
} = e, y = Te("(max-width: 681px)"), b = Te("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = ci({
|
|
3241
3252
|
controls: t,
|
|
3242
3253
|
customTitleContentAddCard: n,
|
|
3243
3254
|
decisions: a,
|
|
@@ -3246,8 +3257,8 @@ const Or = A.div`
|
|
|
3246
3257
|
handleDelete: f,
|
|
3247
3258
|
textValues: i
|
|
3248
3259
|
}), E = (a == null ? void 0 : a.length) === 0 && !d;
|
|
3249
|
-
return /* @__PURE__ */
|
|
3250
|
-
/* @__PURE__ */ o(ai, { children: /* @__PURE__ */ o(oi, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */
|
|
3260
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
3261
|
+
/* @__PURE__ */ o(ai, { children: /* @__PURE__ */ o(oi, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
|
|
3251
3262
|
v,
|
|
3252
3263
|
{
|
|
3253
3264
|
direction: "column",
|
|
@@ -3257,10 +3268,10 @@ const Or = A.div`
|
|
|
3257
3268
|
justifyContent: "center",
|
|
3258
3269
|
alignItems: "center",
|
|
3259
3270
|
children: [
|
|
3260
|
-
/* @__PURE__ */ o(
|
|
3271
|
+
/* @__PURE__ */ o(C, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(G, { children: [
|
|
3261
3272
|
"Aún NO tienes definidas tasas de interés efectivas . Presiona",
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
|
|
3273
|
+
/* @__PURE__ */ m(
|
|
3274
|
+
C,
|
|
3264
3275
|
{
|
|
3265
3276
|
as: "span",
|
|
3266
3277
|
type: "label",
|
|
@@ -3286,10 +3297,10 @@ const Or = A.div`
|
|
|
3286
3297
|
)
|
|
3287
3298
|
]
|
|
3288
3299
|
}
|
|
3289
|
-
) : /* @__PURE__ */
|
|
3300
|
+
) : /* @__PURE__ */ m(
|
|
3290
3301
|
Ae,
|
|
3291
3302
|
{
|
|
3292
|
-
templateColumns:
|
|
3303
|
+
templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
|
|
3293
3304
|
autoFlow: "row dense",
|
|
3294
3305
|
gap: "24px",
|
|
3295
3306
|
alignItems: "start",
|
|
@@ -3379,9 +3390,9 @@ const Or = A.div`
|
|
|
3379
3390
|
);
|
|
3380
3391
|
const s = Te("(max-width: 400px)");
|
|
3381
3392
|
return xt(
|
|
3382
|
-
/* @__PURE__ */ o(ui, { $smallScreen: s, children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(pi, { children: /* @__PURE__ */
|
|
3383
|
-
/* @__PURE__ */ o(v, { direction: "column", gap: "24px", children: /* @__PURE__ */
|
|
3384
|
-
/* @__PURE__ */ o(
|
|
3393
|
+
/* @__PURE__ */ o(ui, { $smallScreen: s, children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(pi, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
3394
|
+
/* @__PURE__ */ o(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
3395
|
+
/* @__PURE__ */ o(C, { type: "title", size: "large", appearance: "dark", weight: "bold", children: a }),
|
|
3385
3396
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: r })
|
|
3386
3397
|
] }) }),
|
|
3387
3398
|
t
|
|
@@ -3543,7 +3554,7 @@ const fi = A.div`
|
|
|
3543
3554
|
textValues: l,
|
|
3544
3555
|
visibleConditions: d
|
|
3545
3556
|
} = e;
|
|
3546
|
-
return i ? /* @__PURE__ */
|
|
3557
|
+
return i ? /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
3547
3558
|
/* @__PURE__ */ o(v, { direction: "column", alignItems: "center", children: /* @__PURE__ */ o(
|
|
3548
3559
|
at,
|
|
3549
3560
|
{
|
|
@@ -3554,8 +3565,8 @@ const fi = A.div`
|
|
|
3554
3565
|
type: "decision"
|
|
3555
3566
|
}
|
|
3556
3567
|
) }, n.ruleName),
|
|
3557
|
-
/* @__PURE__ */ o(
|
|
3558
|
-
/* @__PURE__ */ o(Bn, { children: /* @__PURE__ */
|
|
3568
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
3569
|
+
/* @__PURE__ */ o(Bn, { children: /* @__PURE__ */ m(
|
|
3559
3570
|
v,
|
|
3560
3571
|
{
|
|
3561
3572
|
direction: "column",
|
|
@@ -3564,7 +3575,7 @@ const fi = A.div`
|
|
|
3564
3575
|
height: "203px",
|
|
3565
3576
|
children: [
|
|
3566
3577
|
d.length > 0 && /* @__PURE__ */ o(
|
|
3567
|
-
|
|
3578
|
+
C,
|
|
3568
3579
|
{
|
|
3569
3580
|
type: "label",
|
|
3570
3581
|
size: "large",
|
|
@@ -3583,7 +3594,7 @@ const fi = A.div`
|
|
|
3583
3594
|
)
|
|
3584
3595
|
}
|
|
3585
3596
|
) }) }, p.conditionName)),
|
|
3586
|
-
d.length > 0 && /* @__PURE__ */ o(
|
|
3597
|
+
d.length > 0 && /* @__PURE__ */ o(re, { dashed: !0 }),
|
|
3587
3598
|
c && /* @__PURE__ */ o(G, { children: r && /* @__PURE__ */ o(
|
|
3588
3599
|
at,
|
|
3589
3600
|
{
|
|
@@ -3596,13 +3607,13 @@ const fi = A.div`
|
|
|
3596
3607
|
]
|
|
3597
3608
|
}
|
|
3598
3609
|
) })
|
|
3599
|
-
] }) : /* @__PURE__ */
|
|
3600
|
-
/* @__PURE__ */
|
|
3610
|
+
] }) : /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
3611
|
+
/* @__PURE__ */ m(v, { direction: "column", alignItems: "center", gap: "4px", children: [
|
|
3601
3612
|
/* @__PURE__ */ o(be, { animated: !0, width: "180px" }),
|
|
3602
3613
|
/* @__PURE__ */ o(be, { animated: !0, width: "85px" })
|
|
3603
3614
|
] }, "loading"),
|
|
3604
|
-
/* @__PURE__ */
|
|
3605
|
-
/* @__PURE__ */ o(
|
|
3615
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
3616
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
3606
3617
|
/* @__PURE__ */ o(be, { animated: !0, width: "150px" })
|
|
3607
3618
|
] }),
|
|
3608
3619
|
/* @__PURE__ */ o(Bn, { children: /* @__PURE__ */ o(
|
|
@@ -3612,7 +3623,7 @@ const fi = A.div`
|
|
|
3612
3623
|
gap: "12px",
|
|
3613
3624
|
justifyContent: "space-between",
|
|
3614
3625
|
height: "203px",
|
|
3615
|
-
children: s.map((p, u) => /* @__PURE__ */ o(Gn, { children: /* @__PURE__ */
|
|
3626
|
+
children: s.map((p, u) => /* @__PURE__ */ o(Gn, { children: /* @__PURE__ */ m(
|
|
3616
3627
|
v,
|
|
3617
3628
|
{
|
|
3618
3629
|
direction: "column",
|
|
@@ -3636,7 +3647,7 @@ const fi = A.div`
|
|
|
3636
3647
|
element: {
|
|
3637
3648
|
labelName: r == null ? void 0 : r.terms,
|
|
3638
3649
|
value: String(t.effectiveFrom),
|
|
3639
|
-
howToSetTheDecision:
|
|
3650
|
+
howToSetTheDecision: P.RANGE,
|
|
3640
3651
|
decisionDataType: de.DATE
|
|
3641
3652
|
},
|
|
3642
3653
|
valueData: ht({
|
|
@@ -3645,20 +3656,20 @@ const fi = A.div`
|
|
|
3645
3656
|
from: String(t.effectiveFrom),
|
|
3646
3657
|
to: String(t.validUntil)
|
|
3647
3658
|
},
|
|
3648
|
-
howToSetTheDecision:
|
|
3659
|
+
howToSetTheDecision: P.RANGE,
|
|
3649
3660
|
decisionDataType: de.DATE
|
|
3650
3661
|
})
|
|
3651
3662
|
} : a && !i ? {
|
|
3652
3663
|
element: {
|
|
3653
3664
|
labelName: r == null ? void 0 : r.terms,
|
|
3654
3665
|
value: String(t.effectiveFrom),
|
|
3655
|
-
howToSetTheDecision:
|
|
3666
|
+
howToSetTheDecision: P.EQUAL,
|
|
3656
3667
|
decisionDataType: de.DATE
|
|
3657
3668
|
},
|
|
3658
3669
|
valueData: ht({
|
|
3659
3670
|
labelName: r == null ? void 0 : r.terms,
|
|
3660
3671
|
value: String(t.effectiveFrom),
|
|
3661
|
-
howToSetTheDecision:
|
|
3672
|
+
howToSetTheDecision: P.EQUAL,
|
|
3662
3673
|
decisionDataType: de.DATE
|
|
3663
3674
|
})
|
|
3664
3675
|
} : null, c = t ? {
|
|
@@ -3720,10 +3731,10 @@ A.div`
|
|
|
3720
3731
|
`;
|
|
3721
3732
|
const Oi = (e) => {
|
|
3722
3733
|
const { children: t, controls: n = !0, handleDelete: r, id: a } = e;
|
|
3723
|
-
return /* @__PURE__ */ o(ki, { children: /* @__PURE__ */
|
|
3734
|
+
return /* @__PURE__ */ o(ki, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
|
|
3724
3735
|
t,
|
|
3725
|
-
n && /* @__PURE__ */
|
|
3726
|
-
/* @__PURE__ */ o(
|
|
3736
|
+
n && /* @__PURE__ */ m(G, { children: [
|
|
3737
|
+
/* @__PURE__ */ o(re, {}),
|
|
3727
3738
|
/* @__PURE__ */ o(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ o(
|
|
3728
3739
|
j,
|
|
3729
3740
|
{
|
|
@@ -3742,8 +3753,8 @@ const Oi = (e) => {
|
|
|
3742
3753
|
const { decision: t, controls: n, handleOpenModal: r, handleDelete: a, textValues: i, index: s } = e;
|
|
3743
3754
|
if (!t) return null;
|
|
3744
3755
|
const c = typeof s == "number" ? `Decisión ${s + 1}` : t.decisionId;
|
|
3745
|
-
return /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */
|
|
3746
|
-
/* @__PURE__ */ o(
|
|
3756
|
+
return /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
|
|
3757
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: c }),
|
|
3747
3758
|
/* @__PURE__ */ o(
|
|
3748
3759
|
Oi,
|
|
3749
3760
|
{
|
|
@@ -3768,8 +3779,8 @@ const Oi = (e) => {
|
|
|
3768
3779
|
handleOpenModal: r,
|
|
3769
3780
|
shouldRenderEmptyMessage: a
|
|
3770
3781
|
} = e, i = t || "Agregar decisión";
|
|
3771
|
-
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */
|
|
3772
|
-
/* @__PURE__ */ o(
|
|
3782
|
+
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
|
|
3783
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
|
|
3773
3784
|
/* @__PURE__ */ o(
|
|
3774
3785
|
Or,
|
|
3775
3786
|
{
|
|
@@ -3782,9 +3793,9 @@ const Oi = (e) => {
|
|
|
3782
3793
|
},
|
|
3783
3794
|
handleView: () => r ? r() : null,
|
|
3784
3795
|
controls: !1,
|
|
3785
|
-
children: /* @__PURE__ */
|
|
3796
|
+
children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
3786
3797
|
/* @__PURE__ */ o(j, { appearance: "gray", icon: /* @__PURE__ */ o(Tt, {}), size: "35px" }),
|
|
3787
|
-
/* @__PURE__ */ o(
|
|
3798
|
+
/* @__PURE__ */ o(C, { appearance: "gray", type: "body", size: "large", children: i })
|
|
3788
3799
|
] })
|
|
3789
3800
|
}
|
|
3790
3801
|
)
|
|
@@ -3826,7 +3837,7 @@ const Oi = (e) => {
|
|
|
3826
3837
|
}), Pi = (e) => {
|
|
3827
3838
|
const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
|
|
3828
3839
|
return {
|
|
3829
|
-
schema:
|
|
3840
|
+
schema: ae({
|
|
3830
3841
|
from: Ee().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
|
|
3831
3842
|
to: Ee().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
|
|
3832
3843
|
"is-greater",
|
|
@@ -3907,7 +3918,7 @@ function ji({
|
|
|
3907
3918
|
c.values.value,
|
|
3908
3919
|
c.values.decisionDataType
|
|
3909
3920
|
).schema),
|
|
3910
|
-
conditionsThatEstablishesTheDecision:
|
|
3921
|
+
conditionsThatEstablishesTheDecision: ae().shape({})
|
|
3911
3922
|
};
|
|
3912
3923
|
n.terms && (l.effectiveFrom = mt().required(
|
|
3913
3924
|
"La fecha de inicio es requerida"
|
|
@@ -3922,24 +3933,24 @@ function ji({
|
|
|
3922
3933
|
}
|
|
3923
3934
|
) : g.notRequired()
|
|
3924
3935
|
));
|
|
3925
|
-
const d =
|
|
3936
|
+
const d = ae(l);
|
|
3926
3937
|
return c = Dn({
|
|
3927
3938
|
initialValues: s,
|
|
3928
3939
|
validationSchema: d,
|
|
3929
3940
|
validate: (f) => {
|
|
3930
3941
|
const g = {};
|
|
3931
3942
|
if (!f.toggleNone) {
|
|
3932
|
-
const y = f.conditionsThatEstablishesTheDecision || {},
|
|
3943
|
+
const y = f.conditionsThatEstablishesTheDecision || {}, b = Object.keys(y).filter(
|
|
3933
3944
|
(T) => y[T] !== void 0
|
|
3934
3945
|
);
|
|
3935
|
-
if (
|
|
3946
|
+
if (b.length > 0) {
|
|
3936
3947
|
const T = Hn(
|
|
3937
3948
|
f,
|
|
3938
3949
|
r
|
|
3939
3950
|
), S = new Set(
|
|
3940
3951
|
T.map((D) => D.conditionName).filter((D) => !!D)
|
|
3941
3952
|
);
|
|
3942
|
-
|
|
3953
|
+
b.some(
|
|
3943
3954
|
(D) => !S.has(D)
|
|
3944
3955
|
) && (g.conditionsThatEstablishesTheDecision = "Debes diligenciar los campos de las condiciones activas o desactivar el toggle.");
|
|
3945
3956
|
}
|
|
@@ -3949,7 +3960,7 @@ function ji({
|
|
|
3949
3960
|
validateOnBlur: !0,
|
|
3950
3961
|
onSubmit: (f) => {
|
|
3951
3962
|
var T;
|
|
3952
|
-
const g = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", y = f.toggleNone ? [] : Hn(f, r),
|
|
3963
|
+
const g = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", y = f.toggleNone ? [] : Hn(f, r), b = {
|
|
3953
3964
|
...e,
|
|
3954
3965
|
ruleName: f.ruleName,
|
|
3955
3966
|
decisionDataType: f.decisionDataType,
|
|
@@ -3962,7 +3973,7 @@ function ji({
|
|
|
3962
3973
|
conditionsThatEstablishesTheDecision: y
|
|
3963
3974
|
}
|
|
3964
3975
|
};
|
|
3965
|
-
t(
|
|
3976
|
+
t(b);
|
|
3966
3977
|
}
|
|
3967
3978
|
}), { formik: c, handleToggleNoneChange: (f) => {
|
|
3968
3979
|
c.setFieldValue("toggleNone", f), f && r.forEach((g) => {
|
|
@@ -4011,7 +4022,7 @@ const Gi = A.div`
|
|
|
4011
4022
|
} = e, [l, d] = Q(t);
|
|
4012
4023
|
return Ue(() => {
|
|
4013
4024
|
d(t);
|
|
4014
|
-
}, [t]), /* @__PURE__ */
|
|
4025
|
+
}, [t]), /* @__PURE__ */ m(G, { children: [
|
|
4015
4026
|
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
|
|
4016
4027
|
lt,
|
|
4017
4028
|
{
|
|
@@ -4023,7 +4034,7 @@ const Gi = A.div`
|
|
|
4023
4034
|
},
|
|
4024
4035
|
size: "small",
|
|
4025
4036
|
value: c,
|
|
4026
|
-
children: /* @__PURE__ */ o(
|
|
4037
|
+
children: /* @__PURE__ */ o(C, { size: "medium", type: "label", weight: "bold", as: "span", children: i })
|
|
4027
4038
|
}
|
|
4028
4039
|
) }),
|
|
4029
4040
|
l && /* @__PURE__ */ o(G, { children: n })
|
|
@@ -4043,17 +4054,17 @@ const Gi = A.div`
|
|
|
4043
4054
|
messageEnd: u = "",
|
|
4044
4055
|
statusStart: h = "pending",
|
|
4045
4056
|
statusEnd: f = "pending"
|
|
4046
|
-
} = e, [g, y] = Q(s), [
|
|
4047
|
-
y(
|
|
4048
|
-
}, N = (
|
|
4049
|
-
T(
|
|
4050
|
-
}, I = (
|
|
4051
|
-
E(
|
|
4052
|
-
},
|
|
4053
|
-
return /* @__PURE__ */
|
|
4054
|
-
/* @__PURE__ */
|
|
4057
|
+
} = e, [g, y] = Q(s), [b, T] = Q(l), [S, E] = Q(d), D = ({ target: O }) => {
|
|
4058
|
+
y(O.checked), r && r(O.checked);
|
|
4059
|
+
}, N = (O) => {
|
|
4060
|
+
T(O.target.value), t(O);
|
|
4061
|
+
}, I = (O) => {
|
|
4062
|
+
E(O.target.value), n(O);
|
|
4063
|
+
}, k = Te("(max-width: 400px)");
|
|
4064
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
4065
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
|
|
4055
4066
|
/* @__PURE__ */ o(
|
|
4056
|
-
|
|
4067
|
+
C,
|
|
4057
4068
|
{
|
|
4058
4069
|
appearance: "gray",
|
|
4059
4070
|
margin: "10px 0",
|
|
@@ -4082,10 +4093,10 @@ const Gi = A.div`
|
|
|
4082
4093
|
}
|
|
4083
4094
|
)
|
|
4084
4095
|
] }),
|
|
4085
|
-
/* @__PURE__ */
|
|
4096
|
+
/* @__PURE__ */ m(
|
|
4086
4097
|
v,
|
|
4087
4098
|
{
|
|
4088
|
-
direction:
|
|
4099
|
+
direction: k ? "column" : "row",
|
|
4089
4100
|
justifyContent: "space-between",
|
|
4090
4101
|
gap: "24px",
|
|
4091
4102
|
children: [
|
|
@@ -4095,7 +4106,7 @@ const Gi = A.div`
|
|
|
4095
4106
|
id: "dateStart",
|
|
4096
4107
|
label: a,
|
|
4097
4108
|
onChange: N,
|
|
4098
|
-
value:
|
|
4109
|
+
value: b,
|
|
4099
4110
|
required: c,
|
|
4100
4111
|
size: "compact",
|
|
4101
4112
|
status: h,
|
|
@@ -4134,14 +4145,14 @@ const Yi = (e) => {
|
|
|
4134
4145
|
termStartStatus: d,
|
|
4135
4146
|
termEndStatus: p
|
|
4136
4147
|
} = e;
|
|
4137
|
-
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */
|
|
4148
|
+
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
4138
4149
|
Ut({
|
|
4139
4150
|
condition: i,
|
|
4140
4151
|
formik: t,
|
|
4141
4152
|
isDecision: !0
|
|
4142
4153
|
}),
|
|
4143
|
-
/* @__PURE__ */ o(
|
|
4144
|
-
/* @__PURE__ */ o(Gi, { children: /* @__PURE__ */ o(Bi, { children: /* @__PURE__ */
|
|
4154
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
4155
|
+
/* @__PURE__ */ o(Gi, { children: /* @__PURE__ */ o(Bi, { children: /* @__PURE__ */ m(
|
|
4145
4156
|
v,
|
|
4146
4157
|
{
|
|
4147
4158
|
direction: "column",
|
|
@@ -4149,14 +4160,14 @@ const Yi = (e) => {
|
|
|
4149
4160
|
gap: "16px",
|
|
4150
4161
|
height: "272px",
|
|
4151
4162
|
children: [
|
|
4152
|
-
/* @__PURE__ */
|
|
4163
|
+
/* @__PURE__ */ m(
|
|
4153
4164
|
v,
|
|
4154
4165
|
{
|
|
4155
4166
|
justifyContent: "space-between",
|
|
4156
4167
|
alignItems: "center",
|
|
4157
4168
|
gap: "64px",
|
|
4158
4169
|
children: [
|
|
4159
|
-
/* @__PURE__ */ o(
|
|
4170
|
+
/* @__PURE__ */ o(C, { type: "title", size: "small", weight: "bold", appearance: "gray", children: n.factsThatConditionIt }),
|
|
4160
4171
|
/* @__PURE__ */ o(
|
|
4161
4172
|
lt,
|
|
4162
4173
|
{
|
|
@@ -4164,7 +4175,7 @@ const Yi = (e) => {
|
|
|
4164
4175
|
onChange: () => s(!t.values.toggleNone),
|
|
4165
4176
|
checked: t.values.toggleNone,
|
|
4166
4177
|
size: "small",
|
|
4167
|
-
children: /* @__PURE__ */ o(
|
|
4178
|
+
children: /* @__PURE__ */ o(C, { as: "span", size: "medium", type: "label", weight: "bold", children: n.none })
|
|
4168
4179
|
}
|
|
4169
4180
|
)
|
|
4170
4181
|
]
|
|
@@ -4191,8 +4202,8 @@ const Yi = (e) => {
|
|
|
4191
4202
|
]
|
|
4192
4203
|
}
|
|
4193
4204
|
) }) }),
|
|
4194
|
-
n.terms && /* @__PURE__ */
|
|
4195
|
-
/* @__PURE__ */ o(
|
|
4205
|
+
n.terms && /* @__PURE__ */ m(G, { children: [
|
|
4206
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
4196
4207
|
/* @__PURE__ */ o(
|
|
4197
4208
|
qi,
|
|
4198
4209
|
{
|
|
@@ -4213,9 +4224,9 @@ const Yi = (e) => {
|
|
|
4213
4224
|
}
|
|
4214
4225
|
)
|
|
4215
4226
|
] }),
|
|
4216
|
-
/* @__PURE__ */ o(
|
|
4217
|
-
l && /* @__PURE__ */ o(
|
|
4218
|
-
/* @__PURE__ */
|
|
4227
|
+
/* @__PURE__ */ o(re, {}),
|
|
4228
|
+
l && /* @__PURE__ */ o(C, { type: "label", size: "medium", appearance: "danger", children: typeof t.errors.conditionsThatEstablishesTheDecision == "string" ? t.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
|
|
4229
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
|
|
4219
4230
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: r, children: n.cancel }),
|
|
4220
4231
|
/* @__PURE__ */ o(J, { type: "submit", children: n.confirm })
|
|
4221
4232
|
] })
|
|
@@ -4245,9 +4256,9 @@ const Yi = (e) => {
|
|
|
4245
4256
|
visibleConditions: l,
|
|
4246
4257
|
normalizedDecision: c,
|
|
4247
4258
|
handleToggleNoneChange: s,
|
|
4248
|
-
handleConditionToggleChange: (y,
|
|
4259
|
+
handleConditionToggleChange: (y, b) => (T) => {
|
|
4249
4260
|
if (T) {
|
|
4250
|
-
const S =
|
|
4261
|
+
const S = b ? [] : "";
|
|
4251
4262
|
s(!1), i.setFieldValue(
|
|
4252
4263
|
`conditionsThatEstablishesTheDecision.${y}`,
|
|
4253
4264
|
S
|
|
@@ -4322,7 +4333,7 @@ const Yi = (e) => {
|
|
|
4322
4333
|
handleSubmitForm: h,
|
|
4323
4334
|
handleDelete: f,
|
|
4324
4335
|
terms: g = !0
|
|
4325
|
-
} = e, y = Te("(max-width: 681px)"),
|
|
4336
|
+
} = e, y = Te("(max-width: 681px)"), b = Te("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = Qi({
|
|
4326
4337
|
controls: t,
|
|
4327
4338
|
customTitleContentAddCard: n,
|
|
4328
4339
|
decisions: a,
|
|
@@ -4331,8 +4342,8 @@ const Yi = (e) => {
|
|
|
4331
4342
|
handleDelete: f,
|
|
4332
4343
|
textValues: i
|
|
4333
4344
|
}), E = (a == null ? void 0 : a.length) === 0 && !d;
|
|
4334
|
-
return /* @__PURE__ */
|
|
4335
|
-
/* @__PURE__ */ o(fi, { children: /* @__PURE__ */ o(mi, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */
|
|
4345
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
4346
|
+
/* @__PURE__ */ o(fi, { children: /* @__PURE__ */ o(mi, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
|
|
4336
4347
|
v,
|
|
4337
4348
|
{
|
|
4338
4349
|
direction: "column",
|
|
@@ -4342,10 +4353,10 @@ const Yi = (e) => {
|
|
|
4342
4353
|
justifyContent: "center",
|
|
4343
4354
|
alignItems: "center",
|
|
4344
4355
|
children: [
|
|
4345
|
-
/* @__PURE__ */ o(
|
|
4356
|
+
/* @__PURE__ */ o(C, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(G, { children: [
|
|
4346
4357
|
"Aún NO tienes definidas tasas de interés efectivas . Presiona",
|
|
4347
|
-
/* @__PURE__ */
|
|
4348
|
-
|
|
4358
|
+
/* @__PURE__ */ m(
|
|
4359
|
+
C,
|
|
4349
4360
|
{
|
|
4350
4361
|
as: "span",
|
|
4351
4362
|
type: "label",
|
|
@@ -4371,10 +4382,10 @@ const Yi = (e) => {
|
|
|
4371
4382
|
)
|
|
4372
4383
|
]
|
|
4373
4384
|
}
|
|
4374
|
-
) : /* @__PURE__ */
|
|
4385
|
+
) : /* @__PURE__ */ m(
|
|
4375
4386
|
Ae,
|
|
4376
4387
|
{
|
|
4377
|
-
templateColumns:
|
|
4388
|
+
templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
|
|
4378
4389
|
autoFlow: "row dense",
|
|
4379
4390
|
gap: "24px",
|
|
4380
4391
|
alignItems: "start",
|
|
@@ -4491,7 +4502,7 @@ const Yi = (e) => {
|
|
|
4491
4502
|
border: f,
|
|
4492
4503
|
margin: g = "0px",
|
|
4493
4504
|
padding: y = "0px",
|
|
4494
|
-
boxSizing:
|
|
4505
|
+
boxSizing: b,
|
|
4495
4506
|
scroll: T = !1
|
|
4496
4507
|
} = e;
|
|
4497
4508
|
return /* @__PURE__ */ o(
|
|
@@ -4511,7 +4522,7 @@ const Yi = (e) => {
|
|
|
4511
4522
|
$margin: g,
|
|
4512
4523
|
$padding: y,
|
|
4513
4524
|
$borderRadius: h,
|
|
4514
|
-
$boxSizing:
|
|
4525
|
+
$boxSizing: b,
|
|
4515
4526
|
$scroll: T,
|
|
4516
4527
|
children: n
|
|
4517
4528
|
}
|
|
@@ -4585,16 +4596,16 @@ const ol = A.div`
|
|
|
4585
4596
|
editionMode: f = "versioned",
|
|
4586
4597
|
withEditOption: g = "false",
|
|
4587
4598
|
justOneDecision: y
|
|
4588
|
-
} = e,
|
|
4589
|
-
return a ? /* @__PURE__ */
|
|
4590
|
-
/* @__PURE__ */
|
|
4591
|
-
/* @__PURE__ */
|
|
4599
|
+
} = e, b = !h || Object.values(h).every((T) => T.length === 0);
|
|
4600
|
+
return a ? /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
4601
|
+
/* @__PURE__ */ m(ol, { onClick: c, children: [
|
|
4602
|
+
/* @__PURE__ */ m(
|
|
4592
4603
|
v,
|
|
4593
4604
|
{
|
|
4594
4605
|
alignItems: "start",
|
|
4595
4606
|
justifyContent: "space-between",
|
|
4596
4607
|
children: [
|
|
4597
|
-
/* @__PURE__ */
|
|
4608
|
+
/* @__PURE__ */ m(v, { gap: "12px", children: [
|
|
4598
4609
|
!y && /* @__PURE__ */ o(il, { children: /* @__PURE__ */ o(
|
|
4599
4610
|
De,
|
|
4600
4611
|
{
|
|
@@ -4616,8 +4627,8 @@ const ol = A.div`
|
|
|
4616
4627
|
}
|
|
4617
4628
|
) })
|
|
4618
4629
|
] }),
|
|
4619
|
-
/* @__PURE__ */
|
|
4620
|
-
t && /* @__PURE__ */
|
|
4630
|
+
/* @__PURE__ */ m(v, { gap: "12px", children: [
|
|
4631
|
+
t && /* @__PURE__ */ m(G, { children: [
|
|
4621
4632
|
g && /* @__PURE__ */ o(
|
|
4622
4633
|
j,
|
|
4623
4634
|
{
|
|
@@ -4643,7 +4654,7 @@ const ol = A.div`
|
|
|
4643
4654
|
}
|
|
4644
4655
|
)
|
|
4645
4656
|
] }),
|
|
4646
|
-
/* @__PURE__ */ o(
|
|
4657
|
+
!y && /* @__PURE__ */ o(
|
|
4647
4658
|
j,
|
|
4648
4659
|
{
|
|
4649
4660
|
appearance: "dark",
|
|
@@ -4657,11 +4668,11 @@ const ol = A.div`
|
|
|
4657
4668
|
},
|
|
4658
4669
|
n.ruleName
|
|
4659
4670
|
),
|
|
4660
|
-
/* @__PURE__ */ o(v, { padding: "0 12px", children: /* @__PURE__ */ o(
|
|
4671
|
+
/* @__PURE__ */ o(v, { padding: "0 12px", children: /* @__PURE__ */ o(C, { type: "label", size: "small", appearance: "gray", children: `Vigente desde: ${l == null ? void 0 : l.valueData} ${d ? ` hasta: ${d.valueData}` : "e Indefinidamente"}` }) })
|
|
4661
4672
|
] }),
|
|
4662
|
-
s && /* @__PURE__ */
|
|
4663
|
-
/* @__PURE__ */ o(
|
|
4664
|
-
!
|
|
4673
|
+
s && /* @__PURE__ */ m(G, { children: [
|
|
4674
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
4675
|
+
!b && /* @__PURE__ */ o(v, { direction: "column", gap: "20px", children: /* @__PURE__ */ o(v, { direction: "column", gap: "8px", children: Object.entries(h).map(
|
|
4665
4676
|
([T, S], E) => /* @__PURE__ */ o(
|
|
4666
4677
|
ze,
|
|
4667
4678
|
{
|
|
@@ -4670,7 +4681,7 @@ const ol = A.div`
|
|
|
4670
4681
|
borderRadius: "8px",
|
|
4671
4682
|
background: !0,
|
|
4672
4683
|
justifyContent: "center",
|
|
4673
|
-
children: /* @__PURE__ */
|
|
4684
|
+
children: /* @__PURE__ */ m(
|
|
4674
4685
|
Ae,
|
|
4675
4686
|
{
|
|
4676
4687
|
templateColumns: "39% 1fr",
|
|
@@ -4679,7 +4690,7 @@ const ol = A.div`
|
|
|
4679
4690
|
width: "100%",
|
|
4680
4691
|
children: [
|
|
4681
4692
|
/* @__PURE__ */ o(v, { width: "100%", justifyContent: "end", children: /* @__PURE__ */ o(
|
|
4682
|
-
|
|
4693
|
+
C,
|
|
4683
4694
|
{
|
|
4684
4695
|
type: "label",
|
|
4685
4696
|
size: "medium",
|
|
@@ -4689,15 +4700,15 @@ const ol = A.div`
|
|
|
4689
4700
|
}
|
|
4690
4701
|
) }),
|
|
4691
4702
|
/* @__PURE__ */ o(v, { direction: "column", gap: "4px", children: S.map(
|
|
4692
|
-
(D, N) => /* @__PURE__ */
|
|
4703
|
+
(D, N) => /* @__PURE__ */ m(
|
|
4693
4704
|
v,
|
|
4694
4705
|
{
|
|
4695
4706
|
direction: "row",
|
|
4696
4707
|
gap: "8px",
|
|
4697
4708
|
alignItems: "center",
|
|
4698
4709
|
children: [
|
|
4699
|
-
/* @__PURE__ */
|
|
4700
|
-
|
|
4710
|
+
/* @__PURE__ */ m(
|
|
4711
|
+
C,
|
|
4701
4712
|
{
|
|
4702
4713
|
type: "body",
|
|
4703
4714
|
size: "medium",
|
|
@@ -4736,17 +4747,17 @@ const ol = A.div`
|
|
|
4736
4747
|
T
|
|
4737
4748
|
)
|
|
4738
4749
|
) }) }),
|
|
4739
|
-
/* @__PURE__ */
|
|
4750
|
+
/* @__PURE__ */ m(sl, { children: [
|
|
4740
4751
|
/* @__PURE__ */ o(j, { appearance: "help", icon: /* @__PURE__ */ o(ra, {}), size: "16px" }),
|
|
4741
|
-
/* @__PURE__ */ o(
|
|
4752
|
+
/* @__PURE__ */ o(C, { type: "body", size: "small", appearance: "dark", weight: "bold", children: b ? "Sin condiciones." : "La decisión se cumple si se satisface al menos una condición (cuando hay más de una)." })
|
|
4742
4753
|
] })
|
|
4743
4754
|
] })
|
|
4744
|
-
] }) : /* @__PURE__ */
|
|
4745
|
-
/* @__PURE__ */
|
|
4755
|
+
] }) : /* @__PURE__ */ m(v, { justifyContent: "space-between", children: [
|
|
4756
|
+
/* @__PURE__ */ m(v, { alignItems: "center", gap: "8px", children: [
|
|
4746
4757
|
/* @__PURE__ */ o(be, { animated: !0, width: "150px" }),
|
|
4747
4758
|
/* @__PURE__ */ o(be, { animated: !0, width: "70px" })
|
|
4748
4759
|
] }),
|
|
4749
|
-
/* @__PURE__ */
|
|
4760
|
+
/* @__PURE__ */ m(v, { alignItems: "center", gap: "8px", children: [
|
|
4750
4761
|
/* @__PURE__ */ o(be, { animated: !0, width: "50px" }),
|
|
4751
4762
|
/* @__PURE__ */ o(fa, { animated: !0 })
|
|
4752
4763
|
] })
|
|
@@ -4865,137 +4876,137 @@ const ol = A.div`
|
|
|
4865
4876
|
justOneDecision: h = !1
|
|
4866
4877
|
} = e, g = U.useMemo(() => {
|
|
4867
4878
|
if (!n) return null;
|
|
4868
|
-
const { howToSetTheDecision: Y, decisionDataType:
|
|
4869
|
-
if (!(Y ===
|
|
4879
|
+
const { howToSetTheDecision: Y, decisionDataType: ee, value: _ } = n;
|
|
4880
|
+
if (!(Y === P.RANGE && ee === W.PERCENTAGE && _ && typeof _ == "object" && !Array.isArray(_) && "from" in _ && "to" in _))
|
|
4870
4881
|
return n;
|
|
4871
|
-
const { from:
|
|
4882
|
+
const { from: M, to: V } = _, ct = String(M).trim(), Ke = String(V).trim();
|
|
4872
4883
|
return {
|
|
4873
4884
|
...n,
|
|
4874
4885
|
i18nValue: `De ${ct}% a ${Ke}%`
|
|
4875
4886
|
};
|
|
4876
|
-
}, [n]) ?? n, y = !!(g != null && g.effectiveFrom),
|
|
4887
|
+
}, [n]) ?? n, y = !!(g != null && g.effectiveFrom), b = !!(g != null && g.validUntil), T = y ? {
|
|
4877
4888
|
element: {
|
|
4878
4889
|
labelName: "Vigencia desde:",
|
|
4879
4890
|
value: Ot(g.effectiveFrom),
|
|
4880
|
-
howToSetTheDecision:
|
|
4891
|
+
howToSetTheDecision: P.EQUAL,
|
|
4881
4892
|
decisionDataType: W.DATE
|
|
4882
4893
|
},
|
|
4883
4894
|
valueData: nt({
|
|
4884
4895
|
value: Ot(g.effectiveFrom),
|
|
4885
|
-
howToSetTheDecision:
|
|
4896
|
+
howToSetTheDecision: P.EQUAL,
|
|
4886
4897
|
decisionDataType: W.DATE
|
|
4887
4898
|
})
|
|
4888
|
-
} : null, S =
|
|
4899
|
+
} : null, S = b ? {
|
|
4889
4900
|
element: {
|
|
4890
4901
|
labelName: "Vigencia hasta:",
|
|
4891
4902
|
value: Ot(g.validUntil),
|
|
4892
|
-
howToSetTheDecision:
|
|
4903
|
+
howToSetTheDecision: P.EQUAL,
|
|
4893
4904
|
decisionDataType: W.DATE
|
|
4894
4905
|
},
|
|
4895
4906
|
valueData: nt({
|
|
4896
4907
|
value: Ot(g.validUntil),
|
|
4897
|
-
howToSetTheDecision:
|
|
4908
|
+
howToSetTheDecision: P.EQUAL,
|
|
4898
4909
|
decisionDataType: W.DATE
|
|
4899
4910
|
})
|
|
4900
|
-
} : null, E = (g == null ? void 0 : g.howToSetTheDecision) ||
|
|
4911
|
+
} : null, E = (g == null ? void 0 : g.howToSetTheDecision) || P.EQUAL, D = E === P.RANGE && g && g.value && typeof g.value == "object" && "from" in g.value && "to" in g.value && g.value.from === g.value.to, N = E === P.LIST_OF_VALUES || E === P.LIST_OF_VALUES_MULTI, I = g && (N ? pl(g).list : (() => {
|
|
4901
4912
|
const Y = g.i18nValue;
|
|
4902
4913
|
if (D) {
|
|
4903
|
-
const { from: w } = g.value,
|
|
4914
|
+
const { from: w } = g.value, M = nt({
|
|
4904
4915
|
...g,
|
|
4905
|
-
howToSetTheDecision:
|
|
4916
|
+
howToSetTheDecision: P.EQUAL,
|
|
4906
4917
|
value: w
|
|
4907
4918
|
}), V = g.decisionDataType === W.PERCENTAGE ? "%" : "";
|
|
4908
|
-
return `Del ${
|
|
4919
|
+
return `Del ${M}${V}`.trim();
|
|
4909
4920
|
}
|
|
4910
|
-
const
|
|
4921
|
+
const ee = nt(
|
|
4911
4922
|
g
|
|
4912
4923
|
);
|
|
4913
|
-
let
|
|
4914
|
-
return (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof
|
|
4915
|
-
})()),
|
|
4924
|
+
let _ = Y ?? ee;
|
|
4925
|
+
return (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof _ == "string" && !_.includes("%") && (_ = `${_}%`), (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof _ == "number" && (_ = `${_}%`), _;
|
|
4926
|
+
})()), k = g ? {
|
|
4916
4927
|
labelName: t && g.labelName || "",
|
|
4917
4928
|
decisionDataType: g.decisionDataType || W.ALPHABETICAL,
|
|
4918
4929
|
value: I,
|
|
4919
|
-
howToSetTheDecision: g.i18nValue || D ?
|
|
4930
|
+
howToSetTheDecision: g.i18nValue || D ? P.EQUAL : E,
|
|
4920
4931
|
validUntil: g.validUntil
|
|
4921
|
-
} : null,
|
|
4932
|
+
} : null, O = U.useMemo(
|
|
4922
4933
|
() => g ? Pe(g) : {},
|
|
4923
4934
|
[g]
|
|
4924
|
-
), X = ((Ve = (xe = g == null ? void 0 : g.conditionGroups) == null ? void 0 : xe.map((Y) => Y == null ? void 0 : Y.ConditionGroupId)) == null ? void 0 : Ve.filter(Boolean)) || Object.keys(
|
|
4925
|
-
const Y = {},
|
|
4926
|
-
Y["group-primary"] =
|
|
4935
|
+
), X = ((Ve = (xe = g == null ? void 0 : g.conditionGroups) == null ? void 0 : xe.map((Y) => Y == null ? void 0 : Y.ConditionGroupId)) == null ? void 0 : Ve.filter(Boolean)) || Object.keys(O), K = X[0] || "group-primary", oe = U.useMemo(() => {
|
|
4936
|
+
const Y = {}, ee = O[K] || [], _ = O["group-primary"] || [];
|
|
4937
|
+
Y["group-primary"] = K === "group-primary" ? _ : [...ee, ..._];
|
|
4927
4938
|
for (const w of X)
|
|
4928
|
-
!w || w ===
|
|
4929
|
-
for (const w of Object.keys(
|
|
4930
|
-
w === "group-primary" || w ===
|
|
4939
|
+
!w || w === K || w !== "group-primary" && O[w] && (Y[w] = O[w]);
|
|
4940
|
+
for (const w of Object.keys(O))
|
|
4941
|
+
w === "group-primary" || w === K || w in Y || (Y[w] = O[w]);
|
|
4931
4942
|
return Y;
|
|
4932
|
-
}, [
|
|
4943
|
+
}, [O, K, X]), pe = U.useMemo(() => {
|
|
4933
4944
|
const Y = {};
|
|
4934
|
-
return Object.keys(
|
|
4935
|
-
const
|
|
4936
|
-
|
|
4937
|
-
let
|
|
4938
|
-
w.timeUnit && w.labelName && (
|
|
4945
|
+
return Object.keys(oe).forEach((ee) => {
|
|
4946
|
+
const _ = oe[ee];
|
|
4947
|
+
_ && Array.isArray(_) ? Y[ee] = _.map((w) => {
|
|
4948
|
+
let M = w.labelName;
|
|
4949
|
+
w.timeUnit && w.labelName && (M = pn(w.labelName, w.timeUnit));
|
|
4939
4950
|
let V = w.value;
|
|
4940
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) ===
|
|
4951
|
+
if ((w == null ? void 0 : w.howToSetTheCondition) === P.RANGE && (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && (w == null ? void 0 : w.value) && typeof w.value == "object" && !Array.isArray(w.value) && "from" in w.value && "to" in w.value) {
|
|
4941
4952
|
const { from: Ge, to: et } = w.value, Et = String(Ge).trim(), R = String(et).trim();
|
|
4942
4953
|
return V = `De ${Et}% a ${R}%`, {
|
|
4943
4954
|
...w,
|
|
4944
|
-
labelName:
|
|
4955
|
+
labelName: M,
|
|
4945
4956
|
value: V,
|
|
4946
|
-
howToSetTheCondition:
|
|
4957
|
+
howToSetTheCondition: P.EQUAL
|
|
4947
4958
|
};
|
|
4948
4959
|
}
|
|
4949
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) ===
|
|
4960
|
+
if ((w == null ? void 0 : w.howToSetTheCondition) === P.GREATER_THAN && (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
|
|
4950
4961
|
const Ge = w.value;
|
|
4951
4962
|
return V = `Mayor a ${String(Ge).trim()}%`, {
|
|
4952
4963
|
...w,
|
|
4953
|
-
labelName:
|
|
4964
|
+
labelName: M,
|
|
4954
4965
|
value: V,
|
|
4955
|
-
howToSetTheCondition:
|
|
4966
|
+
howToSetTheCondition: P.EQUAL
|
|
4956
4967
|
};
|
|
4957
4968
|
}
|
|
4958
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) ===
|
|
4969
|
+
if ((w == null ? void 0 : w.howToSetTheCondition) === P.LESS_THAN && (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
|
|
4959
4970
|
const Ge = w.value;
|
|
4960
4971
|
return V = `Menor a ${String(Ge).trim()}%`, {
|
|
4961
4972
|
...w,
|
|
4962
|
-
labelName:
|
|
4973
|
+
labelName: M,
|
|
4963
4974
|
value: V,
|
|
4964
|
-
howToSetTheCondition:
|
|
4975
|
+
howToSetTheCondition: P.EQUAL
|
|
4965
4976
|
};
|
|
4966
4977
|
}
|
|
4967
4978
|
return (w == null ? void 0 : w.howToSetTheCondition) !== void 0 && (w == null ? void 0 : w.howToSetTheCondition) !== null && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "" && (w.i18nValue ? V = Yn(
|
|
4968
4979
|
w.i18nValue,
|
|
4969
|
-
w.i18nValue ?
|
|
4980
|
+
w.i18nValue ? P.EQUAL : w.howToSetTheCondition
|
|
4970
4981
|
) : V = Yn(
|
|
4971
4982
|
w.value,
|
|
4972
4983
|
w.howToSetTheCondition
|
|
4973
4984
|
)), (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && typeof V == "string" && !V.includes("%") && (V = `${V}%`), {
|
|
4974
4985
|
...w,
|
|
4975
|
-
labelName:
|
|
4986
|
+
labelName: M,
|
|
4976
4987
|
value: V,
|
|
4977
|
-
howToSetTheCondition: w.i18nValue ?
|
|
4988
|
+
howToSetTheCondition: w.i18nValue ? P.EQUAL : w.howToSetTheCondition
|
|
4978
4989
|
};
|
|
4979
|
-
}) : Y[
|
|
4990
|
+
}) : Y[ee] = _;
|
|
4980
4991
|
}), Y;
|
|
4981
|
-
}, [
|
|
4992
|
+
}, [oe]), Z = Fr(
|
|
4982
4993
|
pe,
|
|
4983
4994
|
(Y) => !Y.hidden
|
|
4984
4995
|
), F = U.useMemo(() => {
|
|
4985
|
-
const Y = Object.entries(
|
|
4986
|
-
([
|
|
4987
|
-
),
|
|
4988
|
-
for (const [
|
|
4989
|
-
w.length > 0 && (
|
|
4990
|
-
return
|
|
4991
|
-
}, [
|
|
4996
|
+
const Y = Object.entries(Z).map(
|
|
4997
|
+
([_, w]) => [_, w.filter(ul)]
|
|
4998
|
+
), ee = {};
|
|
4999
|
+
for (const [_, w] of Y)
|
|
5000
|
+
w.length > 0 && (ee[_] = w);
|
|
5001
|
+
return ee;
|
|
5002
|
+
}, [Z]), z = !!(!r && g && k), Se = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
|
|
4992
5003
|
return /* @__PURE__ */ o(
|
|
4993
5004
|
dl,
|
|
4994
5005
|
{
|
|
4995
5006
|
controls: d,
|
|
4996
5007
|
decision: g,
|
|
4997
|
-
decisionMapper:
|
|
4998
|
-
loading:
|
|
5008
|
+
decisionMapper: k,
|
|
5009
|
+
loading: z,
|
|
4999
5010
|
tagLabel: Se,
|
|
5000
5011
|
isOpen: i,
|
|
5001
5012
|
onToggle: s,
|
|
@@ -5236,12 +5247,12 @@ const gl = A.div`
|
|
|
5236
5247
|
"The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
|
|
5237
5248
|
);
|
|
5238
5249
|
return xt(
|
|
5239
|
-
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Tl, { $size: s, children: /* @__PURE__ */
|
|
5240
|
-
/* @__PURE__ */
|
|
5241
|
-
/* @__PURE__ */
|
|
5242
|
-
/* @__PURE__ */
|
|
5250
|
+
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Tl, { $size: s, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
5251
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
5252
|
+
/* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
5253
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "8px", children: [
|
|
5243
5254
|
/* @__PURE__ */ o(
|
|
5244
|
-
|
|
5255
|
+
C,
|
|
5245
5256
|
{
|
|
5246
5257
|
type: "title",
|
|
5247
5258
|
size: "medium",
|
|
@@ -5250,11 +5261,11 @@ const gl = A.div`
|
|
|
5250
5261
|
children: i
|
|
5251
5262
|
}
|
|
5252
5263
|
),
|
|
5253
|
-
/* @__PURE__ */ o(
|
|
5264
|
+
/* @__PURE__ */ o(C, { size: "medium", appearance: "gray", children: n })
|
|
5254
5265
|
] }),
|
|
5255
5266
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: a })
|
|
5256
5267
|
] }),
|
|
5257
|
-
/* @__PURE__ */ o(
|
|
5268
|
+
/* @__PURE__ */ o(re, { dashed: !0 })
|
|
5258
5269
|
] }),
|
|
5259
5270
|
t
|
|
5260
5271
|
] }) }) }) }),
|
|
@@ -5289,7 +5300,7 @@ const gl = A.div`
|
|
|
5289
5300
|
if (t !== "")
|
|
5290
5301
|
return e;
|
|
5291
5302
|
}, Cl = (e) => ({
|
|
5292
|
-
schema:
|
|
5303
|
+
schema: ae({
|
|
5293
5304
|
from: Ee().transform(Jn).typeError(Lt).required(Lt).min(0, Qn),
|
|
5294
5305
|
to: Ee().transform(Jn).typeError(Lt).required(Lt).min(0, Qn)
|
|
5295
5306
|
}).test("from<=to", Xn, function(t) {
|
|
@@ -5307,7 +5318,7 @@ const gl = A.div`
|
|
|
5307
5318
|
min: e = 0,
|
|
5308
5319
|
max: t,
|
|
5309
5320
|
pathPrefix: n = ""
|
|
5310
|
-
} = {}) =>
|
|
5321
|
+
} = {}) => ae({
|
|
5311
5322
|
from: Ee().transform(er).typeError(Rt).required(Rt).min(e, Zn).max(t ?? Number.POSITIVE_INFINITY),
|
|
5312
5323
|
to: Ee().transform(er).typeError(Rt).required(Rt).min(e, Zn).max(t ?? Number.POSITIVE_INFINITY)
|
|
5313
5324
|
}).test("from<=to", Kn, function(r) {
|
|
@@ -5334,7 +5345,7 @@ const gl = A.div`
|
|
|
5334
5345
|
schema: Dl({ min: 0, max: 100 }),
|
|
5335
5346
|
value: n
|
|
5336
5347
|
} : {
|
|
5337
|
-
schema:
|
|
5348
|
+
schema: ae({
|
|
5338
5349
|
from: Re().required("Requerido"),
|
|
5339
5350
|
to: Re().required("Requerido")
|
|
5340
5351
|
}),
|
|
@@ -5374,7 +5385,7 @@ const gl = A.div`
|
|
|
5374
5385
|
if (t == null || String(t).trim() === "") return;
|
|
5375
5386
|
const n = Number(t);
|
|
5376
5387
|
return Number.isNaN(n) ? void 0 : n;
|
|
5377
|
-
}, El =
|
|
5388
|
+
}, El = ae({
|
|
5378
5389
|
from: gn,
|
|
5379
5390
|
to: gn
|
|
5380
5391
|
}).test("from<=to", rr, function(e) {
|
|
@@ -5394,7 +5405,7 @@ const gl = A.div`
|
|
|
5394
5405
|
return Object.keys(t).length > 0;
|
|
5395
5406
|
}
|
|
5396
5407
|
return !1;
|
|
5397
|
-
}, Al = (e) =>
|
|
5408
|
+
}, Al = (e) => ae({
|
|
5398
5409
|
value: e.required()
|
|
5399
5410
|
});
|
|
5400
5411
|
function $l({
|
|
@@ -5408,8 +5419,8 @@ function $l({
|
|
|
5408
5419
|
Object.entries(r).map(([h, f]) => {
|
|
5409
5420
|
const g = {};
|
|
5410
5421
|
return f.forEach((y) => {
|
|
5411
|
-
const
|
|
5412
|
-
g[
|
|
5422
|
+
const b = y.conditionName, T = y.value !== void 0 && y.value !== null && y.value !== "", S = y.howToSetTheCondition === me.LIST_OF_VALUES_MULTI ? [] : "";
|
|
5423
|
+
g[b] = {
|
|
5413
5424
|
...y,
|
|
5414
5425
|
value: T ? y.value : S
|
|
5415
5426
|
};
|
|
@@ -5417,10 +5428,10 @@ function $l({
|
|
|
5417
5428
|
})
|
|
5418
5429
|
), s = Object.entries(r).map(
|
|
5419
5430
|
([h, f]) => {
|
|
5420
|
-
const g = i[h] || {}, y = f.map((
|
|
5421
|
-
const T =
|
|
5431
|
+
const g = i[h] || {}, y = f.map((b) => {
|
|
5432
|
+
const T = b.conditionName, S = g[T], E = S && typeof S == "object" && "value" in S ? S.value : b.value;
|
|
5422
5433
|
return {
|
|
5423
|
-
...
|
|
5434
|
+
...b,
|
|
5424
5435
|
value: E
|
|
5425
5436
|
};
|
|
5426
5437
|
});
|
|
@@ -5453,50 +5464,50 @@ function $l({
|
|
|
5453
5464
|
}),
|
|
5454
5465
|
conditionsThatEstablishesTheDecision: ft((h, { parent: f }) => {
|
|
5455
5466
|
const g = Pe(e) || {};
|
|
5456
|
-
if (Object.keys(g).length === 0) return
|
|
5457
|
-
const y = f == null ? void 0 : f.conditionsThatEstablishesTheDecision,
|
|
5467
|
+
if (Object.keys(g).length === 0) return ae().shape({});
|
|
5468
|
+
const y = f == null ? void 0 : f.conditionsThatEstablishesTheDecision, b = !!(f != null && f.toggleNone);
|
|
5458
5469
|
let T = !1;
|
|
5459
5470
|
if (y && typeof y == "object" && (T = Object.values(y).some(
|
|
5460
5471
|
(E) => E && typeof E == "object" && Object.values(E).some(
|
|
5461
5472
|
(D) => rn(D)
|
|
5462
5473
|
)
|
|
5463
|
-
)),
|
|
5464
|
-
if (!T) return
|
|
5474
|
+
)), b && !T) return ae().shape({});
|
|
5475
|
+
if (!T) return ae().shape({});
|
|
5465
5476
|
const S = {};
|
|
5466
5477
|
for (const [E, D] of Object.entries(g)) {
|
|
5467
5478
|
const N = y == null ? void 0 : y[E], I = {};
|
|
5468
|
-
D.forEach((
|
|
5469
|
-
const
|
|
5470
|
-
if (!rn(
|
|
5471
|
-
const X = fn(
|
|
5472
|
-
|
|
5479
|
+
D.forEach((k) => {
|
|
5480
|
+
const O = N == null ? void 0 : N[k.conditionName];
|
|
5481
|
+
if (!rn(O)) return;
|
|
5482
|
+
const X = fn(O), oe = nr(
|
|
5483
|
+
k.howToSetTheCondition
|
|
5473
5484
|
)(
|
|
5474
5485
|
X,
|
|
5475
|
-
|
|
5486
|
+
k.conditionDataType
|
|
5476
5487
|
).schema;
|
|
5477
|
-
I[
|
|
5478
|
-
}), S[E] =
|
|
5488
|
+
I[k.conditionName] = Al(oe);
|
|
5489
|
+
}), S[E] = ae(I);
|
|
5479
5490
|
}
|
|
5480
|
-
return
|
|
5491
|
+
return ae(S);
|
|
5481
5492
|
})
|
|
5482
5493
|
};
|
|
5483
5494
|
n && (d.effectiveFrom = mt().required(
|
|
5484
5495
|
"Se requiere la fecha de vigencia desde"
|
|
5485
5496
|
));
|
|
5486
|
-
const p =
|
|
5497
|
+
const p = ae(d);
|
|
5487
5498
|
return l = Dn({
|
|
5488
5499
|
initialValues: c,
|
|
5489
5500
|
validationSchema: p,
|
|
5490
5501
|
validateOnBlur: !0,
|
|
5491
5502
|
onSubmit: (h) => {
|
|
5492
5503
|
const f = Object.fromEntries(
|
|
5493
|
-
Object.entries(r).map(([y,
|
|
5504
|
+
Object.entries(r).map(([y, b]) => {
|
|
5494
5505
|
var E;
|
|
5495
|
-
const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S =
|
|
5496
|
-
const N = D.conditionName, I = T[N],
|
|
5506
|
+
const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S = b.map((D) => {
|
|
5507
|
+
const N = D.conditionName, I = T[N], k = fn(I);
|
|
5497
5508
|
return {
|
|
5498
5509
|
...D,
|
|
5499
|
-
value:
|
|
5510
|
+
value: k
|
|
5500
5511
|
};
|
|
5501
5512
|
}).filter((D) => rn(D.value));
|
|
5502
5513
|
return [y, S];
|
|
@@ -5519,12 +5530,12 @@ function $l({
|
|
|
5519
5530
|
if (h)
|
|
5520
5531
|
l.setFieldValue(y, void 0);
|
|
5521
5532
|
else {
|
|
5522
|
-
const
|
|
5533
|
+
const b = g.howToSetTheCondition === me.LIST_OF_VALUES_MULTI ? [] : "";
|
|
5523
5534
|
l.setFieldValue(
|
|
5524
5535
|
y,
|
|
5525
5536
|
{
|
|
5526
5537
|
...g,
|
|
5527
|
-
value:
|
|
5538
|
+
value: b
|
|
5528
5539
|
},
|
|
5529
5540
|
!1
|
|
5530
5541
|
);
|
|
@@ -5584,10 +5595,10 @@ const Il = A.div`
|
|
|
5584
5595
|
statusEnd: p = "pending"
|
|
5585
5596
|
} = e, [u, h] = Q(i), [f, g] = Q(s), y = (S) => {
|
|
5586
5597
|
h(S.target.value), t(S);
|
|
5587
|
-
},
|
|
5598
|
+
}, b = (S) => {
|
|
5588
5599
|
g(S.target.value), n(S);
|
|
5589
5600
|
}, T = Te("(max-width: 400px)");
|
|
5590
|
-
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "20px", children: /* @__PURE__ */
|
|
5601
|
+
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "20px", children: /* @__PURE__ */ m(
|
|
5591
5602
|
v,
|
|
5592
5603
|
{
|
|
5593
5604
|
direction: T ? "column" : "row",
|
|
@@ -5614,7 +5625,7 @@ const Il = A.div`
|
|
|
5614
5625
|
{
|
|
5615
5626
|
id: "dateEnd",
|
|
5616
5627
|
label: a,
|
|
5617
|
-
onChange:
|
|
5628
|
+
onChange: b,
|
|
5618
5629
|
value: f,
|
|
5619
5630
|
size: "compact",
|
|
5620
5631
|
status: p,
|
|
@@ -5643,14 +5654,14 @@ const Il = A.div`
|
|
|
5643
5654
|
showRedefineConfirm: f,
|
|
5644
5655
|
onOpenRedefineConfirm: g,
|
|
5645
5656
|
onCloseRedefineConfirm: y,
|
|
5646
|
-
onConfirmRedefine:
|
|
5657
|
+
onConfirmRedefine: b,
|
|
5647
5658
|
withTerm: T,
|
|
5648
5659
|
decisionNumber: S
|
|
5649
5660
|
} = e;
|
|
5650
|
-
return /* @__PURE__ */
|
|
5651
|
-
/* @__PURE__ */ o("form", { onSubmit: r.handleSubmit, autoComplete: "off", children: /* @__PURE__ */
|
|
5652
|
-
/* @__PURE__ */ o(Xe, { legend: `Decisión N° ${S}`, spacing: "wide", children: /* @__PURE__ */
|
|
5653
|
-
/* @__PURE__ */
|
|
5661
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
5662
|
+
/* @__PURE__ */ o("form", { onSubmit: r.handleSubmit, autoComplete: "off", children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", width: "100%", children: [
|
|
5663
|
+
/* @__PURE__ */ o(Xe, { legend: `Decisión N° ${S}`, spacing: "wide", children: /* @__PURE__ */ m(v, { direction: "column", width: "100%", gap: "16px", children: [
|
|
5664
|
+
/* @__PURE__ */ m(
|
|
5654
5665
|
v,
|
|
5655
5666
|
{
|
|
5656
5667
|
justifyContent: "center",
|
|
@@ -5662,7 +5673,7 @@ const Il = A.div`
|
|
|
5662
5673
|
formik: r,
|
|
5663
5674
|
isDecision: !0
|
|
5664
5675
|
}),
|
|
5665
|
-
a.timeUnit && /* @__PURE__ */ o(
|
|
5676
|
+
a.timeUnit && /* @__PURE__ */ o(C, { as: "span", size: "medium", padding: "0 0 0 16px", children: a.timeUnit })
|
|
5666
5677
|
]
|
|
5667
5678
|
}
|
|
5668
5679
|
),
|
|
@@ -5682,7 +5693,7 @@ const Il = A.div`
|
|
|
5682
5693
|
}
|
|
5683
5694
|
) })
|
|
5684
5695
|
] }) }),
|
|
5685
|
-
n && n.length > 0 && /* @__PURE__ */ o(Xe, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */
|
|
5696
|
+
n && n.length > 0 && /* @__PURE__ */ o(Xe, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */ m(v, { direction: "column", gap: "20px", width: "100%", children: [
|
|
5686
5697
|
/* @__PURE__ */ o(
|
|
5687
5698
|
ma,
|
|
5688
5699
|
{
|
|
@@ -5691,7 +5702,7 @@ const Il = A.div`
|
|
|
5691
5702
|
selectedTab: t
|
|
5692
5703
|
}
|
|
5693
5704
|
),
|
|
5694
|
-
/* @__PURE__ */
|
|
5705
|
+
/* @__PURE__ */ m(v, { justifyContent: "flex-end", alignItems: "center", children: [
|
|
5695
5706
|
/* @__PURE__ */ o(
|
|
5696
5707
|
j,
|
|
5697
5708
|
{
|
|
@@ -5716,8 +5727,8 @@ const Il = A.div`
|
|
|
5716
5727
|
] }),
|
|
5717
5728
|
/* @__PURE__ */ o(v, { direction: "column", gap: "20px", children: n == null ? void 0 : n.map((E) => {
|
|
5718
5729
|
const D = E.__scopedName ?? `${E.groupKey}.${E.conditionName}`;
|
|
5719
|
-
return /* @__PURE__ */
|
|
5720
|
-
/* @__PURE__ */
|
|
5730
|
+
return /* @__PURE__ */ m(v, { gap: "16px", alignItems: "center", children: [
|
|
5731
|
+
/* @__PURE__ */ m(Il, { children: [
|
|
5721
5732
|
/* @__PURE__ */ o(
|
|
5722
5733
|
Pn,
|
|
5723
5734
|
{
|
|
@@ -5725,7 +5736,7 @@ const Il = A.div`
|
|
|
5725
5736
|
formik: r
|
|
5726
5737
|
}
|
|
5727
5738
|
),
|
|
5728
|
-
E.timeUnit && /* @__PURE__ */ o(
|
|
5739
|
+
E.timeUnit && /* @__PURE__ */ o(C, { as: "span", size: "medium", padding: "0 0 0 16px", children: E.__unitAfterInput })
|
|
5729
5740
|
] }),
|
|
5730
5741
|
/* @__PURE__ */ o(
|
|
5731
5742
|
j,
|
|
@@ -5738,9 +5749,9 @@ const Il = A.div`
|
|
|
5738
5749
|
)
|
|
5739
5750
|
] }, D);
|
|
5740
5751
|
}) }),
|
|
5741
|
-
l && /* @__PURE__ */ o(
|
|
5752
|
+
l && /* @__PURE__ */ o(C, { type: "label", size: "medium", appearance: "danger", children: "Existen errores en el formulario, por favor revísalos." })
|
|
5742
5753
|
] }) }),
|
|
5743
|
-
/* @__PURE__ */
|
|
5754
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
|
|
5744
5755
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: i, variant: "outlined", children: "Cancelar" }),
|
|
5745
5756
|
/* @__PURE__ */ o(J, { type: "submit", children: "Confirmar" })
|
|
5746
5757
|
] })
|
|
@@ -5752,9 +5763,9 @@ const Il = A.div`
|
|
|
5752
5763
|
title: "Redefinir la condición",
|
|
5753
5764
|
onCloseModal: y,
|
|
5754
5765
|
size: "600px",
|
|
5755
|
-
children: /* @__PURE__ */
|
|
5756
|
-
/* @__PURE__ */ o(
|
|
5757
|
-
/* @__PURE__ */
|
|
5766
|
+
children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
|
|
5767
|
+
/* @__PURE__ */ o(C, { type: "body", size: "large", appearance: "gray", children: "¿Estás seguro? Se perderá todo lo que tienes actualmente definido y deberás reescribir completamente la condición, de esta manera podrás usar las últimas variables condicionales que están definidas en la actualidad para esta decisión ." }),
|
|
5768
|
+
/* @__PURE__ */ m(v, { justifyContent: "end", gap: "12px", children: [
|
|
5758
5769
|
/* @__PURE__ */ o(
|
|
5759
5770
|
J,
|
|
5760
5771
|
{
|
|
@@ -5766,7 +5777,7 @@ const Il = A.div`
|
|
|
5766
5777
|
children: "Cancelar"
|
|
5767
5778
|
}
|
|
5768
5779
|
),
|
|
5769
|
-
/* @__PURE__ */ o(J, { type: "button", onClick:
|
|
5780
|
+
/* @__PURE__ */ o(J, { type: "button", onClick: b, cursorHover: !0, children: "Confirmar" })
|
|
5770
5781
|
] })
|
|
5771
5782
|
] })
|
|
5772
5783
|
}
|
|
@@ -5774,14 +5785,14 @@ const Il = A.div`
|
|
|
5774
5785
|
] });
|
|
5775
5786
|
}, Ll = (e, t) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(t).padStart(2, "0")}`, ut = (e) => {
|
|
5776
5787
|
switch (e) {
|
|
5777
|
-
case
|
|
5788
|
+
case P.LIST_OF_VALUES_MULTI:
|
|
5778
5789
|
return [];
|
|
5779
|
-
case
|
|
5790
|
+
case P.RANGE:
|
|
5780
5791
|
return "";
|
|
5781
|
-
case
|
|
5782
|
-
case
|
|
5783
|
-
case
|
|
5784
|
-
case
|
|
5792
|
+
case P.EQUAL:
|
|
5793
|
+
case P.GREATER_THAN:
|
|
5794
|
+
case P.LESS_THAN:
|
|
5795
|
+
case P.LIST_OF_VALUES:
|
|
5785
5796
|
default:
|
|
5786
5797
|
return "";
|
|
5787
5798
|
}
|
|
@@ -5815,13 +5826,13 @@ const Il = A.div`
|
|
|
5815
5826
|
}), u = s ?? t, h = Pe(u), f = Pe(t), g = Fr(
|
|
5816
5827
|
f,
|
|
5817
5828
|
(R) => !R.hidden
|
|
5818
|
-
), y = Object.keys(g),
|
|
5819
|
-
...y.filter((R) => R ===
|
|
5820
|
-
...y.filter((R) => R !==
|
|
5829
|
+
), y = Object.keys(g), b = y.includes("group-primary") && y.length > 0 ? "group-primary" : y[0], T = b != null ? [
|
|
5830
|
+
...y.filter((R) => R === b),
|
|
5831
|
+
...y.filter((R) => R !== b)
|
|
5821
5832
|
] : [], S = {};
|
|
5822
5833
|
let E = 1;
|
|
5823
5834
|
const D = T.map((R) => {
|
|
5824
|
-
const B = R ===
|
|
5835
|
+
const B = R === b, H = B ? "mainCondition" : `alternateCondition-${E++}`;
|
|
5825
5836
|
return S[H] = R, {
|
|
5826
5837
|
id: H,
|
|
5827
5838
|
label: B ? "Condición principal" : Ll(R, Number(H.split("-").at(-1))),
|
|
@@ -5829,26 +5840,26 @@ const Il = A.div`
|
|
|
5829
5840
|
};
|
|
5830
5841
|
}), [N, I] = U.useState(
|
|
5831
5842
|
((et = D[0]) == null ? void 0 : et.id) ?? "mainCondition"
|
|
5832
|
-
),
|
|
5843
|
+
), k = (R) => I(R), O = S[N] ?? b ?? "group-primary";
|
|
5833
5844
|
U.useEffect(() => {
|
|
5834
|
-
var
|
|
5835
|
-
const R = (
|
|
5845
|
+
var ie;
|
|
5846
|
+
const R = (ie = d.values) == null ? void 0 : ie.conditionsThatEstablishesTheDecision;
|
|
5836
5847
|
let B = !1;
|
|
5837
5848
|
if (R && typeof R == "object" && (B = Object.values(R).some(
|
|
5838
|
-
(
|
|
5849
|
+
(le) => le && typeof le == "object" && Object.keys(le).length > 0
|
|
5839
5850
|
)), B) return;
|
|
5840
5851
|
const H = Pe(t);
|
|
5841
5852
|
if (!H || Object.keys(H).length === 0)
|
|
5842
5853
|
return;
|
|
5843
5854
|
const q = Object.fromEntries(
|
|
5844
|
-
Object.entries(H).map(([
|
|
5855
|
+
Object.entries(H).map(([le, te]) => {
|
|
5845
5856
|
const _e = Object.fromEntries(
|
|
5846
|
-
|
|
5857
|
+
te.map((Ce) => {
|
|
5847
5858
|
const $e = tt(Ce.howToSetTheCondition), Be = Ce.value ?? ut($e);
|
|
5848
5859
|
return [Ce.conditionName, Be];
|
|
5849
5860
|
})
|
|
5850
5861
|
);
|
|
5851
|
-
return [
|
|
5862
|
+
return [le, _e];
|
|
5852
5863
|
})
|
|
5853
5864
|
);
|
|
5854
5865
|
d.setFieldValue(
|
|
@@ -5857,18 +5868,18 @@ const Il = A.div`
|
|
|
5857
5868
|
!1
|
|
5858
5869
|
);
|
|
5859
5870
|
}, [t]), U.useEffect(() => {
|
|
5860
|
-
var
|
|
5861
|
-
const R = (
|
|
5871
|
+
var te;
|
|
5872
|
+
const R = (te = d.values) == null ? void 0 : te.conditionsThatEstablishesTheDecision;
|
|
5862
5873
|
if (!R || typeof R != "object") return;
|
|
5863
5874
|
const B = Pe(u), H = Object.entries(R).map(
|
|
5864
5875
|
([_e, Ce]) => {
|
|
5865
5876
|
const $e = B[_e] || [], Be = Object.keys(Ce).map((Me) => {
|
|
5866
|
-
const
|
|
5867
|
-
he.howToSetTheCondition ?? (
|
|
5868
|
-
), At = he.value ?? ut(Xt), $t =
|
|
5877
|
+
const ne = Ce[Me], he = $e.find((Zr) => Zr.conditionName === Me) || {}, Xt = tt(
|
|
5878
|
+
he.howToSetTheCondition ?? (ne == null ? void 0 : ne.howToSetTheCondition)
|
|
5879
|
+
), At = he.value ?? ut(Xt), $t = ne && typeof ne == "object" && "value" in ne ? ne.value : ne;
|
|
5869
5880
|
return {
|
|
5870
5881
|
...he,
|
|
5871
|
-
...typeof
|
|
5882
|
+
...typeof ne == "object" && !Array.isArray(ne) ? ne : {},
|
|
5872
5883
|
conditionName: Me,
|
|
5873
5884
|
value: $t !== void 0 ? $t : At
|
|
5874
5885
|
};
|
|
@@ -5878,45 +5889,45 @@ const Il = A.div`
|
|
|
5878
5889
|
conditionsThatEstablishesTheDecision: Be
|
|
5879
5890
|
};
|
|
5880
5891
|
}
|
|
5881
|
-
), q = d.values.conditionGroups,
|
|
5882
|
-
|
|
5892
|
+
), q = d.values.conditionGroups, ie = JSON.stringify(H), le = JSON.stringify(q ?? []);
|
|
5893
|
+
ie !== le && d.setFieldValue("conditionGroups", H, !1);
|
|
5883
5894
|
}, [(Et = d.values) == null ? void 0 : Et.conditionsThatEstablishesTheDecision, u]);
|
|
5884
5895
|
const X = U.useMemo(() => {
|
|
5885
|
-
const R = Object.keys(g), H = (
|
|
5886
|
-
...R.filter((q) => q ===
|
|
5887
|
-
...R.filter((q) => q !==
|
|
5896
|
+
const R = Object.keys(g), H = (b != null ? [
|
|
5897
|
+
...R.filter((q) => q === b),
|
|
5898
|
+
...R.filter((q) => q !== b)
|
|
5888
5899
|
] : R).map((q) => {
|
|
5889
|
-
const
|
|
5890
|
-
const Ce = _e === 0, $e = tt(
|
|
5891
|
-
label:
|
|
5900
|
+
const le = (g[q] ?? []).map((te, _e) => {
|
|
5901
|
+
const Ce = _e === 0, $e = tt(te.howToSetTheCondition), Be = kr({
|
|
5902
|
+
label: te.labelName || "",
|
|
5892
5903
|
howToSet: $e,
|
|
5893
5904
|
isFirst: Ce
|
|
5894
|
-
}), Me =
|
|
5905
|
+
}), Me = te.timeUnit ? pn("", te.timeUnit, !0).trim() : "", ne = `${q}.${te.conditionName}`, he = Rl(
|
|
5895
5906
|
d.values,
|
|
5896
5907
|
q,
|
|
5897
|
-
|
|
5908
|
+
te.conditionName
|
|
5898
5909
|
), Xt = Fl(
|
|
5899
5910
|
d.values,
|
|
5900
5911
|
q,
|
|
5901
|
-
|
|
5912
|
+
te.conditionName
|
|
5902
5913
|
), At = he !== void 0 ? he : Xt, $t = At !== void 0 ? At : ut($e);
|
|
5903
5914
|
return {
|
|
5904
|
-
...
|
|
5905
|
-
__originalConditionName:
|
|
5915
|
+
...te,
|
|
5916
|
+
__originalConditionName: te.conditionName,
|
|
5906
5917
|
__groupKey: q,
|
|
5907
5918
|
__howToSet: $e,
|
|
5908
|
-
__scopedName:
|
|
5909
|
-
conditionName:
|
|
5919
|
+
__scopedName: ne,
|
|
5920
|
+
conditionName: te.conditionName,
|
|
5910
5921
|
groupKey: q,
|
|
5911
5922
|
labelName: Be,
|
|
5912
5923
|
__unitAfterInput: Me,
|
|
5913
5924
|
value: $t
|
|
5914
5925
|
};
|
|
5915
5926
|
});
|
|
5916
|
-
return [q,
|
|
5927
|
+
return [q, le];
|
|
5917
5928
|
});
|
|
5918
5929
|
return Object.fromEntries(H);
|
|
5919
|
-
}, [g, d.values,
|
|
5930
|
+
}, [g, d.values, b]), K = X[O] ?? [], oe = X[b ?? "group-primary"] ?? [], pe = {
|
|
5920
5931
|
decisionDataType: t.decisionDataType,
|
|
5921
5932
|
howToSetTheCondition: t.howToSetTheDecision,
|
|
5922
5933
|
labelName: t.labelName,
|
|
@@ -5924,7 +5935,7 @@ const Il = A.div`
|
|
|
5924
5935
|
listOfPossibleValues: t.listOfPossibleValues,
|
|
5925
5936
|
ruleName: t.ruleName,
|
|
5926
5937
|
timeUnit: t.timeUnit ? pn("", t.timeUnit, !0).trim() : ""
|
|
5927
|
-
},
|
|
5938
|
+
}, Z = d.submitCount > 0 || !!d.touched.effectiveFrom, F = d.submitCount > 0 || !!d.touched.validUntil, z = Z ? d.errors.effectiveFrom ? "invalid" : "valid" : void 0, Se = F ? d.errors.validUntil ? "invalid" : "valid" : void 0, xe = U.useMemo(() => {
|
|
5928
5939
|
const R = d.errors.conditionsThatEstablishesTheDecision;
|
|
5929
5940
|
if (!R) return;
|
|
5930
5941
|
if (typeof R == "string") return R;
|
|
@@ -5933,13 +5944,13 @@ const Il = A.div`
|
|
|
5933
5944
|
if (typeof H == "string") return H;
|
|
5934
5945
|
if (Array.isArray(H))
|
|
5935
5946
|
for (const q of H) {
|
|
5936
|
-
const
|
|
5937
|
-
if (
|
|
5947
|
+
const ie = B(q);
|
|
5948
|
+
if (ie) return ie;
|
|
5938
5949
|
}
|
|
5939
5950
|
else if (typeof H == "object")
|
|
5940
5951
|
for (const q of Object.values(H)) {
|
|
5941
|
-
const
|
|
5942
|
-
if (
|
|
5952
|
+
const ie = B(q);
|
|
5953
|
+
if (ie) return ie;
|
|
5943
5954
|
}
|
|
5944
5955
|
}
|
|
5945
5956
|
};
|
|
@@ -5947,66 +5958,66 @@ const Il = A.div`
|
|
|
5947
5958
|
}, [d.errors.conditionsThatEstablishesTheDecision]), Ve = d.submitCount > 0 && !!xe, Y = (R) => {
|
|
5948
5959
|
const B = (R == null ? void 0 : R.__howToSet) ?? tt(R == null ? void 0 : R.howToSetTheCondition);
|
|
5949
5960
|
return ut(B);
|
|
5950
|
-
},
|
|
5951
|
-
var
|
|
5952
|
-
const q = `conditionsThatEstablishesTheDecision.${R}.${B}`,
|
|
5953
|
-
|
|
5954
|
-
const
|
|
5955
|
-
if (Array.isArray(
|
|
5956
|
-
const Me =
|
|
5961
|
+
}, ee = (R, B, H) => {
|
|
5962
|
+
var te, _e, Ce, $e, Be;
|
|
5963
|
+
const q = `conditionsThatEstablishesTheDecision.${R}.${B}`, ie = (Ce = (_e = (te = d.values) == null ? void 0 : te.conditionsThatEstablishesTheDecision) == null ? void 0 : _e[R]) == null ? void 0 : Ce[B];
|
|
5964
|
+
ie && typeof ie == "object" && !Array.isArray(ie) ? d.setFieldValue(`${q}.value`, H, !1) : d.setFieldValue(q, H, !1);
|
|
5965
|
+
const le = ($e = d.values) == null ? void 0 : $e.conditionGroups;
|
|
5966
|
+
if (Array.isArray(le)) {
|
|
5967
|
+
const Me = le.findIndex((ne) => (ne == null ? void 0 : ne.ConditionGroupId) === R);
|
|
5957
5968
|
if (Me >= 0) {
|
|
5958
|
-
const
|
|
5969
|
+
const ne = (Be = le[Me].conditionsThatEstablishesTheDecision) == null ? void 0 : Be.findIndex(
|
|
5959
5970
|
(he) => (he == null ? void 0 : he.conditionName) === B
|
|
5960
5971
|
);
|
|
5961
|
-
if (
|
|
5962
|
-
const he = JSON.parse(JSON.stringify(
|
|
5963
|
-
he[Me].conditionsThatEstablishesTheDecision[
|
|
5972
|
+
if (ne >= 0) {
|
|
5973
|
+
const he = JSON.parse(JSON.stringify(le));
|
|
5974
|
+
he[Me].conditionsThatEstablishesTheDecision[ne].value = H, d.setFieldValue("conditionGroups", he, !1);
|
|
5964
5975
|
}
|
|
5965
5976
|
}
|
|
5966
5977
|
}
|
|
5967
|
-
},
|
|
5968
|
-
const [B, ...H] = R.split("."), q = H.join("."),
|
|
5969
|
-
|
|
5978
|
+
}, _ = (R) => {
|
|
5979
|
+
const [B, ...H] = R.split("."), q = H.join("."), ie = Object.values(h).flat().find((te) => te.conditionName === q), le = Y(ie || {});
|
|
5980
|
+
ee(B, q, le), d.setFieldTouched(
|
|
5970
5981
|
`conditionsThatEstablishesTheDecision.${B}.${q}`,
|
|
5971
5982
|
!1,
|
|
5972
5983
|
!1
|
|
5973
5984
|
);
|
|
5974
5985
|
}, w = () => {
|
|
5975
|
-
(h[
|
|
5986
|
+
(h[O] ?? []).forEach((B) => {
|
|
5976
5987
|
const H = tt(B == null ? void 0 : B.howToSetTheCondition), q = ut(H);
|
|
5977
|
-
|
|
5988
|
+
ee(O, B.conditionName, q);
|
|
5978
5989
|
});
|
|
5979
|
-
}, [
|
|
5990
|
+
}, [M, V] = U.useState(!1);
|
|
5980
5991
|
return /* @__PURE__ */ o(
|
|
5981
5992
|
Ol,
|
|
5982
5993
|
{
|
|
5983
5994
|
activeTab: N,
|
|
5984
5995
|
conditionsErrorText: xe,
|
|
5985
|
-
currentConditions:
|
|
5996
|
+
currentConditions: K,
|
|
5986
5997
|
decision: t,
|
|
5987
5998
|
formik: d,
|
|
5988
5999
|
normalizedDecision: pe,
|
|
5989
6000
|
onCancel: r,
|
|
5990
6001
|
onRedefineCurrentTab: w,
|
|
5991
|
-
onTabChange:
|
|
6002
|
+
onTabChange: k,
|
|
5992
6003
|
onClearCondition: (R) => {
|
|
5993
|
-
|
|
6004
|
+
_(R), a == null || a(R);
|
|
5994
6005
|
},
|
|
5995
6006
|
showConditionsError: Ve,
|
|
5996
6007
|
tabs: D,
|
|
5997
6008
|
termEndStatus: Se,
|
|
5998
|
-
termStartStatus:
|
|
5999
|
-
visibleConditions:
|
|
6009
|
+
termStartStatus: z,
|
|
6010
|
+
visibleConditions: oe,
|
|
6000
6011
|
visibleConditionsByGroup: X,
|
|
6001
6012
|
handleToggleNoneChange: p,
|
|
6002
6013
|
portalId: "redefine-confirm-portal",
|
|
6003
|
-
showRedefineConfirm:
|
|
6014
|
+
showRedefineConfirm: M,
|
|
6004
6015
|
onOpenRedefineConfirm: () => V(!0),
|
|
6005
6016
|
onCloseRedefineConfirm: () => V(!1),
|
|
6006
6017
|
onConfirmRedefine: () => {
|
|
6007
6018
|
w();
|
|
6008
|
-
const R = (h[
|
|
6009
|
-
(B) => `${
|
|
6019
|
+
const R = (h[O] ?? []).map(
|
|
6020
|
+
(B) => `${O}.${B.conditionName}`
|
|
6010
6021
|
);
|
|
6011
6022
|
i == null || i(R), V(!1);
|
|
6012
6023
|
},
|
|
@@ -6078,12 +6089,12 @@ const Il = A.div`
|
|
|
6078
6089
|
handleCheckboxChange: u
|
|
6079
6090
|
} = zl({ options: t });
|
|
6080
6091
|
return xt(
|
|
6081
|
-
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Ml, { children: /* @__PURE__ */
|
|
6082
|
-
/* @__PURE__ */
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
/* @__PURE__ */
|
|
6092
|
+
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Ml, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
6093
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
6094
|
+
/* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
6095
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "8px", children: [
|
|
6085
6096
|
/* @__PURE__ */ o(
|
|
6086
|
-
|
|
6097
|
+
C,
|
|
6087
6098
|
{
|
|
6088
6099
|
type: "title",
|
|
6089
6100
|
size: "medium",
|
|
@@ -6092,15 +6103,15 @@ const Il = A.div`
|
|
|
6092
6103
|
children: "Condiciones"
|
|
6093
6104
|
}
|
|
6094
6105
|
),
|
|
6095
|
-
/* @__PURE__ */ o(
|
|
6106
|
+
/* @__PURE__ */ o(C, { size: "medium", appearance: "gray", children: "Antes de agregar una decisión, selecciona las condiciones que la determinan." })
|
|
6096
6107
|
] }),
|
|
6097
6108
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: r })
|
|
6098
6109
|
] }),
|
|
6099
|
-
/* @__PURE__ */ o(
|
|
6110
|
+
/* @__PURE__ */ o(re, { dashed: !0 })
|
|
6100
6111
|
] }),
|
|
6101
|
-
/* @__PURE__ */ o(_l, { children: /* @__PURE__ */
|
|
6102
|
-
/* @__PURE__ */ o(
|
|
6103
|
-
/* @__PURE__ */
|
|
6112
|
+
/* @__PURE__ */ o(_l, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "20px", children: [
|
|
6113
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", children: " ¿Qué condiciones determinan la decisión?" }),
|
|
6114
|
+
/* @__PURE__ */ m(v, { justifyContent: "space-between", children: [
|
|
6104
6115
|
/* @__PURE__ */ o(
|
|
6105
6116
|
lt,
|
|
6106
6117
|
{
|
|
@@ -6130,7 +6141,7 @@ const Il = A.div`
|
|
|
6130
6141
|
h.id
|
|
6131
6142
|
)) }) })
|
|
6132
6143
|
] }) }),
|
|
6133
|
-
/* @__PURE__ */
|
|
6144
|
+
/* @__PURE__ */ m(v, { justifyContent: "flex-end", gap: "12px", children: [
|
|
6134
6145
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: r, children: "Cancelar" }),
|
|
6135
6146
|
/* @__PURE__ */ o(J, { onClick: () => a(p), children: "Continuar" })
|
|
6136
6147
|
] })
|
|
@@ -6155,33 +6166,32 @@ const Il = A.div`
|
|
|
6155
6166
|
handleSubmitForm: f,
|
|
6156
6167
|
handleDelete: g,
|
|
6157
6168
|
onRemoveCondition: y,
|
|
6158
|
-
onRestoreConditions:
|
|
6169
|
+
onRestoreConditions: b,
|
|
6159
6170
|
handleOpenRulesModal: T = () => {
|
|
6160
6171
|
},
|
|
6161
6172
|
baseDecisionTemplate: S,
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
configureDecisionModal: O,
|
|
6173
|
+
withEditOption: E,
|
|
6174
|
+
withTerm: D,
|
|
6175
|
+
configurateDecisionOptions: N = [],
|
|
6176
|
+
configureDecisionModal: I,
|
|
6167
6177
|
handleCloseRulesModal: k = () => {
|
|
6168
6178
|
}
|
|
6169
|
-
} = e, [
|
|
6179
|
+
} = e, [O, X] = Q(null), { renderedCards: K } = vl({
|
|
6170
6180
|
cardTitle: t,
|
|
6171
6181
|
controls: n,
|
|
6172
6182
|
customTitleContentAddCard: r,
|
|
6173
6183
|
decisions: i,
|
|
6174
6184
|
loading: p,
|
|
6175
|
-
handleOpenModal: (
|
|
6185
|
+
handleOpenModal: (Z) => Z !== null && u(Z),
|
|
6176
6186
|
handleDelete: g,
|
|
6177
|
-
isOpenFor: (
|
|
6178
|
-
toggleAt: (
|
|
6187
|
+
isOpenFor: (Z) => O === Z,
|
|
6188
|
+
toggleAt: (Z) => X((F) => F === Z ? null : Z),
|
|
6179
6189
|
editionMode: c,
|
|
6180
|
-
withEditOption:
|
|
6181
|
-
}),
|
|
6182
|
-
return /* @__PURE__ */
|
|
6183
|
-
/* @__PURE__ */
|
|
6184
|
-
/* @__PURE__ */ o(
|
|
6190
|
+
withEditOption: E
|
|
6191
|
+
}), oe = ((i == null ? void 0 : i.length) || 0) + 1, pe = (i == null ? void 0 : i.length) === 0 && !p;
|
|
6192
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
6193
|
+
/* @__PURE__ */ m(v, { justifyContent: "space-between", padding: "6px", children: [
|
|
6194
|
+
/* @__PURE__ */ o(C, { type: "title", weight: "bold", size: "medium", appearance: "gray", children: "Consulta de las decisiones definidas" }),
|
|
6185
6195
|
/* @__PURE__ */ o(
|
|
6186
6196
|
J,
|
|
6187
6197
|
{
|
|
@@ -6193,7 +6203,7 @@ const Il = A.div`
|
|
|
6193
6203
|
}
|
|
6194
6204
|
)
|
|
6195
6205
|
] }),
|
|
6196
|
-
/* @__PURE__ */ o(gl, { children: /* @__PURE__ */ o(fl, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children:
|
|
6206
|
+
/* @__PURE__ */ o(gl, { children: /* @__PURE__ */ o(fl, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: pe ? /* @__PURE__ */ o(Xe, { legend: "Decisiones", children: /* @__PURE__ */ m(
|
|
6197
6207
|
v,
|
|
6198
6208
|
{
|
|
6199
6209
|
direction: "column",
|
|
@@ -6211,7 +6221,7 @@ const Il = A.div`
|
|
|
6211
6221
|
}
|
|
6212
6222
|
),
|
|
6213
6223
|
/* @__PURE__ */ o(
|
|
6214
|
-
|
|
6224
|
+
C,
|
|
6215
6225
|
{
|
|
6216
6226
|
type: "title",
|
|
6217
6227
|
size: "medium",
|
|
@@ -6220,7 +6230,7 @@ const Il = A.div`
|
|
|
6220
6230
|
children: "Sin decisiones"
|
|
6221
6231
|
}
|
|
6222
6232
|
),
|
|
6223
|
-
/* @__PURE__ */ o(
|
|
6233
|
+
/* @__PURE__ */ o(C, { as: "span", size: "medium", appearance: "gray", children: a || /* @__PURE__ */ m(G, { children: [
|
|
6224
6234
|
"Aun no tienes decisiones definidas, para empezar haz clic en",
|
|
6225
6235
|
r || ' "Agregar decisión"'
|
|
6226
6236
|
] }) })
|
|
@@ -6237,13 +6247,13 @@ const Il = A.div`
|
|
|
6237
6247
|
autoRows: "auto",
|
|
6238
6248
|
justifyItems: "center",
|
|
6239
6249
|
width: "100%",
|
|
6240
|
-
children:
|
|
6250
|
+
children: K
|
|
6241
6251
|
}
|
|
6242
|
-
) })
|
|
6243
|
-
|
|
6252
|
+
) }) }) }) }),
|
|
6253
|
+
I && /* @__PURE__ */ o(
|
|
6244
6254
|
Ul,
|
|
6245
6255
|
{
|
|
6246
|
-
options:
|
|
6256
|
+
options: N,
|
|
6247
6257
|
onCloseModal: h,
|
|
6248
6258
|
portalId: "modal-portal",
|
|
6249
6259
|
onOpenRulesModal: T
|
|
@@ -6265,9 +6275,9 @@ const Il = A.div`
|
|
|
6265
6275
|
onCancel: () => k ? k() : () => {
|
|
6266
6276
|
},
|
|
6267
6277
|
onRemoveCondition: y,
|
|
6268
|
-
onRestoreConditions:
|
|
6269
|
-
withTerm:
|
|
6270
|
-
decisionNumber:
|
|
6278
|
+
onRestoreConditions: b,
|
|
6279
|
+
withTerm: D,
|
|
6280
|
+
decisionNumber: oe
|
|
6271
6281
|
}
|
|
6272
6282
|
)
|
|
6273
6283
|
}
|
|
@@ -6321,11 +6331,11 @@ const Hl = (e, t) => {
|
|
|
6321
6331
|
const f = d.clientWidth, g = Array.from(
|
|
6322
6332
|
p.querySelectorAll('[data-filter-tag="true"]')
|
|
6323
6333
|
), y = 48;
|
|
6324
|
-
let
|
|
6334
|
+
let b = 0;
|
|
6325
6335
|
const T = [], S = [];
|
|
6326
6336
|
for (let D = 0; D < t.length; D++) {
|
|
6327
6337
|
const N = ((E = g[D]) == null ? void 0 : E.offsetWidth) ?? 0;
|
|
6328
|
-
|
|
6338
|
+
b + N + y <= f ? (T.push(t[D]), b += N) : S.push(t[D]);
|
|
6329
6339
|
}
|
|
6330
6340
|
r(T), i(S), c(S.length > 0);
|
|
6331
6341
|
}, h = new ResizeObserver(() => {
|
|
@@ -6408,8 +6418,8 @@ const ql = A.div`
|
|
|
6408
6418
|
}};
|
|
6409
6419
|
}
|
|
6410
6420
|
`, Xl = (e) => {
|
|
6411
|
-
var h, f, g, y,
|
|
6412
|
-
const { id: t, label: n, leadingIcon: r, onClose: a } = e, [i, s] = Q(!1), c = () => s(!0), l = () => s(!1), d = Cn(Sn), p = ((g = (f = (h = d == null ? void 0 : d.input) == null ? void 0 : h.option) == null ? void 0 : f.appearance) == null ? void 0 : g.hover) ?? mn.option.appearance.hover, u = ((T = (
|
|
6421
|
+
var h, f, g, y, b, T;
|
|
6422
|
+
const { id: t, label: n, leadingIcon: r, onClose: a } = e, [i, s] = Q(!1), c = () => s(!0), l = () => s(!1), d = Cn(Sn), p = ((g = (f = (h = d == null ? void 0 : d.input) == null ? void 0 : h.option) == null ? void 0 : f.appearance) == null ? void 0 : g.hover) ?? mn.option.appearance.hover, u = ((T = (b = (y = d == null ? void 0 : d.input) == null ? void 0 : y.option) == null ? void 0 : b.appearance) == null ? void 0 : T.regular) ?? mn.option.appearance.regular;
|
|
6413
6423
|
return /* @__PURE__ */ o(
|
|
6414
6424
|
Ql,
|
|
6415
6425
|
{
|
|
@@ -6419,7 +6429,7 @@ const ql = A.div`
|
|
|
6419
6429
|
onClick: (S) => {
|
|
6420
6430
|
S.stopPropagation();
|
|
6421
6431
|
},
|
|
6422
|
-
children: /* @__PURE__ */
|
|
6432
|
+
children: /* @__PURE__ */ m(
|
|
6423
6433
|
Ae,
|
|
6424
6434
|
{
|
|
6425
6435
|
alignItems: "center",
|
|
@@ -6436,7 +6446,7 @@ const ql = A.div`
|
|
|
6436
6446
|
}
|
|
6437
6447
|
),
|
|
6438
6448
|
/* @__PURE__ */ o(
|
|
6439
|
-
|
|
6449
|
+
C,
|
|
6440
6450
|
{
|
|
6441
6451
|
textAlign: "start",
|
|
6442
6452
|
size: "medium",
|
|
@@ -6474,14 +6484,14 @@ const ql = A.div`
|
|
|
6474
6484
|
hidden: u,
|
|
6475
6485
|
showOverflowIndicator: h,
|
|
6476
6486
|
measurementRef: f
|
|
6477
|
-
} = Hl(c, t), [g, y] = Q(!1),
|
|
6487
|
+
} = Hl(c, t), [g, y] = Q(!1), b = (N) => {
|
|
6478
6488
|
N.stopPropagation(), y((I) => !I);
|
|
6479
6489
|
};
|
|
6480
6490
|
Ue(() => {
|
|
6481
6491
|
const N = (I) => {
|
|
6482
|
-
var X,
|
|
6483
|
-
const
|
|
6484
|
-
!((X = l.current) != null && X.contains(
|
|
6492
|
+
var X, K;
|
|
6493
|
+
const k = I.target;
|
|
6494
|
+
!((X = l.current) != null && X.contains(k)) && !((K = d.current) != null && K.contains(k)) && y(!1);
|
|
6485
6495
|
};
|
|
6486
6496
|
return g && window.addEventListener("mousedown", N), () => window.removeEventListener("mousedown", N);
|
|
6487
6497
|
}, [g]);
|
|
@@ -6491,10 +6501,10 @@ const ql = A.div`
|
|
|
6491
6501
|
label: N.label,
|
|
6492
6502
|
icon: N.icon
|
|
6493
6503
|
})), D = (N) => {
|
|
6494
|
-
var I,
|
|
6495
|
-
(
|
|
6504
|
+
var I, k;
|
|
6505
|
+
(k = (I = u.find((O) => O.label === N)) == null ? void 0 : I.onClose) == null || k.call(I), y(!1);
|
|
6496
6506
|
};
|
|
6497
|
-
return /* @__PURE__ */
|
|
6507
|
+
return /* @__PURE__ */ m(Bl, { borderRadius: "8px", width: "100%", children: [
|
|
6498
6508
|
/* @__PURE__ */ o(Yl, { ref: f, children: t.map((N) => /* @__PURE__ */ o("div", { "data-filter-tag": "true", children: /* @__PURE__ */ o(
|
|
6499
6509
|
De,
|
|
6500
6510
|
{
|
|
@@ -6506,7 +6516,7 @@ const ql = A.div`
|
|
|
6506
6516
|
onClose: N.onClose
|
|
6507
6517
|
}
|
|
6508
6518
|
) }, N.label)) }),
|
|
6509
|
-
/* @__PURE__ */
|
|
6519
|
+
/* @__PURE__ */ m(Ae, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
|
|
6510
6520
|
/* @__PURE__ */ o(
|
|
6511
6521
|
ze,
|
|
6512
6522
|
{
|
|
@@ -6519,7 +6529,7 @@ const ql = A.div`
|
|
|
6519
6529
|
alignItems: "center",
|
|
6520
6530
|
padding: "0px 8px",
|
|
6521
6531
|
border: !0,
|
|
6522
|
-
children: T ? /* @__PURE__ */ o(
|
|
6532
|
+
children: T ? /* @__PURE__ */ o(C, { size: "small", type: "label", appearance: "gray", children: a }) : /* @__PURE__ */ m(G, { children: [
|
|
6523
6533
|
p.map((N) => /* @__PURE__ */ o(
|
|
6524
6534
|
De,
|
|
6525
6535
|
{
|
|
@@ -6533,13 +6543,13 @@ const ql = A.div`
|
|
|
6533
6543
|
},
|
|
6534
6544
|
N.label
|
|
6535
6545
|
)),
|
|
6536
|
-
h && /* @__PURE__ */
|
|
6546
|
+
h && /* @__PURE__ */ m(
|
|
6537
6547
|
"div",
|
|
6538
6548
|
{
|
|
6539
6549
|
ref: d,
|
|
6540
6550
|
style: { position: "relative", display: "inline-block" },
|
|
6541
6551
|
children: [
|
|
6542
|
-
/* @__PURE__ */ o(Wl, { onClick:
|
|
6552
|
+
/* @__PURE__ */ o(Wl, { onClick: b, children: /* @__PURE__ */ o(
|
|
6543
6553
|
De,
|
|
6544
6554
|
{
|
|
6545
6555
|
appearance: "primary",
|
|
@@ -6597,9 +6607,9 @@ const ql = A.div`
|
|
|
6597
6607
|
] });
|
|
6598
6608
|
}, hc = (e) => {
|
|
6599
6609
|
const { appliedFilters: t, fields: n, onChange: r, noFiltersLabel: a } = e, i = Te("(max-width: 768px)"), s = !t || t.length === 0;
|
|
6600
|
-
return /* @__PURE__ */
|
|
6601
|
-
i && /* @__PURE__ */
|
|
6602
|
-
/* @__PURE__ */
|
|
6610
|
+
return /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
|
|
6611
|
+
i && /* @__PURE__ */ m(G, { children: [
|
|
6612
|
+
/* @__PURE__ */ m(v, { gap: "6px", width: "100%", alignItems: "center", children: [
|
|
6603
6613
|
/* @__PURE__ */ o(j, { appearance: "gray", icon: /* @__PURE__ */ o(Tr, {}) }),
|
|
6604
6614
|
/* @__PURE__ */ o(
|
|
6605
6615
|
ze,
|
|
@@ -6613,7 +6623,7 @@ const ql = A.div`
|
|
|
6613
6623
|
border: !0,
|
|
6614
6624
|
width: "100%",
|
|
6615
6625
|
height: "36px",
|
|
6616
|
-
children: s ? /* @__PURE__ */ o(
|
|
6626
|
+
children: s ? /* @__PURE__ */ o(C, { size: "small", type: "label", appearance: "gray", children: a }) : t == null ? void 0 : t.map((c) => /* @__PURE__ */ o(
|
|
6617
6627
|
De,
|
|
6618
6628
|
{
|
|
6619
6629
|
appearance: "primary",
|
|
@@ -6628,9 +6638,9 @@ const ql = A.div`
|
|
|
6628
6638
|
}
|
|
6629
6639
|
)
|
|
6630
6640
|
] }),
|
|
6631
|
-
/* @__PURE__ */ o(
|
|
6641
|
+
/* @__PURE__ */ o(re, { dashed: !0 })
|
|
6632
6642
|
] }),
|
|
6633
|
-
n.map((c) => /* @__PURE__ */
|
|
6643
|
+
n.map((c) => /* @__PURE__ */ m(v, { gap: "6px", alignItems: "center", children: [
|
|
6634
6644
|
/* @__PURE__ */ o(v, { padding: "22px 0 0 0", children: /* @__PURE__ */ o(j, { appearance: "primary", icon: c.icon }) }),
|
|
6635
6645
|
/* @__PURE__ */ o(
|
|
6636
6646
|
wn,
|
|
@@ -6747,7 +6757,7 @@ const ql = A.div`
|
|
|
6747
6757
|
}), ts = (e) => {
|
|
6748
6758
|
const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
|
|
6749
6759
|
return {
|
|
6750
|
-
schema:
|
|
6760
|
+
schema: ae({
|
|
6751
6761
|
from: Ee().required("El campo 'Rango desde' es requerido").max(n, "'Rango desde' no puede ser mayor que 'Rango hasta'").min(0, "'Rango desde' no puede ser menor que 0"),
|
|
6752
6762
|
to: Ee().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
|
|
6753
6763
|
"is-greater",
|
|
@@ -6839,14 +6849,14 @@ function rs({
|
|
|
6839
6849
|
// }),
|
|
6840
6850
|
conditionsThatEstablishesTheDecision: ft((l, { parent: d }) => {
|
|
6841
6851
|
var h;
|
|
6842
|
-
if ((d == null ? void 0 : d.toggleNone) && Object.keys(d.conditionsThatEstablishesTheDecision || {}).length > 0) return
|
|
6852
|
+
if ((d == null ? void 0 : d.toggleNone) && Object.keys(d.conditionsThatEstablishesTheDecision || {}).length > 0) return ae().shape({});
|
|
6843
6853
|
const u = ((h = e.conditionsThatEstablishesTheDecision) == null ? void 0 : h.reduce(
|
|
6844
6854
|
(f, g) => {
|
|
6845
6855
|
if (a.values.conditionsThatEstablishesTheDecision[g.conditionName] !== void 0) {
|
|
6846
|
-
const
|
|
6856
|
+
const b = ir(
|
|
6847
6857
|
g.howToSetTheCondition
|
|
6848
6858
|
);
|
|
6849
|
-
f[g.conditionName] =
|
|
6859
|
+
f[g.conditionName] = b(
|
|
6850
6860
|
g.value,
|
|
6851
6861
|
g.conditionDataType
|
|
6852
6862
|
).schema;
|
|
@@ -6855,7 +6865,7 @@ function rs({
|
|
|
6855
6865
|
},
|
|
6856
6866
|
{}
|
|
6857
6867
|
)) ?? {};
|
|
6858
|
-
return
|
|
6868
|
+
return ae(u);
|
|
6859
6869
|
})
|
|
6860
6870
|
};
|
|
6861
6871
|
n.terms && (i.effectiveFrom = mt().required(
|
|
@@ -6871,7 +6881,7 @@ function rs({
|
|
|
6871
6881
|
}
|
|
6872
6882
|
) : d.notRequired()
|
|
6873
6883
|
));
|
|
6874
|
-
const s =
|
|
6884
|
+
const s = ae(i);
|
|
6875
6885
|
return a = Dn({
|
|
6876
6886
|
initialValues: r,
|
|
6877
6887
|
validationSchema: s,
|
|
@@ -6954,7 +6964,7 @@ const as = A.div`
|
|
|
6954
6964
|
};
|
|
6955
6965
|
return Ue(() => {
|
|
6956
6966
|
d(t);
|
|
6957
|
-
}, [t]), /* @__PURE__ */
|
|
6967
|
+
}, [t]), /* @__PURE__ */ m(G, { children: [
|
|
6958
6968
|
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
|
|
6959
6969
|
lt,
|
|
6960
6970
|
{
|
|
@@ -6964,7 +6974,7 @@ const as = A.div`
|
|
|
6964
6974
|
onChange: p,
|
|
6965
6975
|
size: "small",
|
|
6966
6976
|
value: c,
|
|
6967
|
-
children: /* @__PURE__ */ o(
|
|
6977
|
+
children: /* @__PURE__ */ o(C, { size: "medium", type: "label", weight: "bold", children: i })
|
|
6968
6978
|
}
|
|
6969
6979
|
) }),
|
|
6970
6980
|
l && /* @__PURE__ */ o(G, { children: n })
|
|
@@ -6984,17 +6994,17 @@ const as = A.div`
|
|
|
6984
6994
|
messageEnd: u = "",
|
|
6985
6995
|
statusStart: h = "pending",
|
|
6986
6996
|
statusEnd: f = "pending"
|
|
6987
|
-
} = e, [g, y] = Q(s), [
|
|
6988
|
-
y(
|
|
6989
|
-
}, N = (
|
|
6990
|
-
T(
|
|
6991
|
-
}, I = (
|
|
6992
|
-
E(
|
|
6993
|
-
},
|
|
6994
|
-
return /* @__PURE__ */
|
|
6995
|
-
/* @__PURE__ */
|
|
6997
|
+
} = e, [g, y] = Q(s), [b, T] = Q(l), [S, E] = Q(d), D = ({ target: O }) => {
|
|
6998
|
+
y(O.checked), r && r(O.checked);
|
|
6999
|
+
}, N = (O) => {
|
|
7000
|
+
T(O.target.value), t(O);
|
|
7001
|
+
}, I = (O) => {
|
|
7002
|
+
E(O.target.value), n(O);
|
|
7003
|
+
}, k = Te("(max-width: 400px)");
|
|
7004
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
7005
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
|
|
6996
7006
|
/* @__PURE__ */ o(
|
|
6997
|
-
|
|
7007
|
+
C,
|
|
6998
7008
|
{
|
|
6999
7009
|
appearance: "gray",
|
|
7000
7010
|
margin: "10px 0",
|
|
@@ -7023,10 +7033,10 @@ const as = A.div`
|
|
|
7023
7033
|
}
|
|
7024
7034
|
)
|
|
7025
7035
|
] }),
|
|
7026
|
-
/* @__PURE__ */
|
|
7036
|
+
/* @__PURE__ */ m(
|
|
7027
7037
|
v,
|
|
7028
7038
|
{
|
|
7029
|
-
direction:
|
|
7039
|
+
direction: k ? "column" : "row",
|
|
7030
7040
|
justifyContent: "space-between",
|
|
7031
7041
|
gap: "24px",
|
|
7032
7042
|
children: [
|
|
@@ -7036,7 +7046,7 @@ const as = A.div`
|
|
|
7036
7046
|
id: "dateStart",
|
|
7037
7047
|
label: a,
|
|
7038
7048
|
onChange: N,
|
|
7039
|
-
value:
|
|
7049
|
+
value: b,
|
|
7040
7050
|
required: c,
|
|
7041
7051
|
size: "compact",
|
|
7042
7052
|
status: h,
|
|
@@ -7073,14 +7083,14 @@ const as = A.div`
|
|
|
7073
7083
|
termStartStatus: d,
|
|
7074
7084
|
termEndStatus: p
|
|
7075
7085
|
} = e;
|
|
7076
|
-
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */
|
|
7086
|
+
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
7077
7087
|
Ut({
|
|
7078
7088
|
condition: i,
|
|
7079
7089
|
formik: t,
|
|
7080
7090
|
isDecision: !0
|
|
7081
7091
|
}),
|
|
7082
|
-
/* @__PURE__ */ o(
|
|
7083
|
-
/* @__PURE__ */ o(as, { children: /* @__PURE__ */ o(os, { children: /* @__PURE__ */
|
|
7092
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
7093
|
+
/* @__PURE__ */ o(as, { children: /* @__PURE__ */ o(os, { children: /* @__PURE__ */ m(
|
|
7084
7094
|
v,
|
|
7085
7095
|
{
|
|
7086
7096
|
direction: "column",
|
|
@@ -7088,14 +7098,14 @@ const as = A.div`
|
|
|
7088
7098
|
gap: "16px",
|
|
7089
7099
|
height: "272px",
|
|
7090
7100
|
children: [
|
|
7091
|
-
/* @__PURE__ */
|
|
7101
|
+
/* @__PURE__ */ m(
|
|
7092
7102
|
v,
|
|
7093
7103
|
{
|
|
7094
7104
|
justifyContent: "space-between",
|
|
7095
7105
|
alignItems: "center",
|
|
7096
7106
|
gap: "64px",
|
|
7097
7107
|
children: [
|
|
7098
|
-
/* @__PURE__ */ o(
|
|
7108
|
+
/* @__PURE__ */ o(C, { type: "title", size: "small", weight: "bold", appearance: "gray", children: n.factsThatConditionIt }),
|
|
7099
7109
|
/* @__PURE__ */ o(
|
|
7100
7110
|
lt,
|
|
7101
7111
|
{
|
|
@@ -7103,7 +7113,7 @@ const as = A.div`
|
|
|
7103
7113
|
onChange: () => s(!t.values.toggleNone),
|
|
7104
7114
|
checked: t.values.toggleNone,
|
|
7105
7115
|
size: "small",
|
|
7106
|
-
children: /* @__PURE__ */ o(
|
|
7116
|
+
children: /* @__PURE__ */ o(C, { as: "span", size: "medium", type: "label", weight: "bold", children: n.none })
|
|
7107
7117
|
}
|
|
7108
7118
|
)
|
|
7109
7119
|
]
|
|
@@ -7127,8 +7137,8 @@ const as = A.div`
|
|
|
7127
7137
|
]
|
|
7128
7138
|
}
|
|
7129
7139
|
) }) }),
|
|
7130
|
-
n.terms && /* @__PURE__ */
|
|
7131
|
-
/* @__PURE__ */ o(
|
|
7140
|
+
n.terms && /* @__PURE__ */ m(G, { children: [
|
|
7141
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
7132
7142
|
/* @__PURE__ */ o(
|
|
7133
7143
|
ls,
|
|
7134
7144
|
{
|
|
@@ -7149,9 +7159,9 @@ const as = A.div`
|
|
|
7149
7159
|
}
|
|
7150
7160
|
)
|
|
7151
7161
|
] }),
|
|
7152
|
-
/* @__PURE__ */ o(
|
|
7153
|
-
l && /* @__PURE__ */ o(
|
|
7154
|
-
/* @__PURE__ */
|
|
7162
|
+
/* @__PURE__ */ o(re, {}),
|
|
7163
|
+
l && /* @__PURE__ */ o(C, { type: "label", size: "medium", appearance: "danger", children: typeof t.errors.conditionsThatEstablishesTheDecision == "string" ? t.errors.conditionsThatEstablishesTheDecision : "Existen errores en el formulario, por favor revísalos." }),
|
|
7164
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
|
|
7155
7165
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: r, children: n.cancel }),
|
|
7156
7166
|
/* @__PURE__ */ o(J, { type: "submit", children: n.confirm })
|
|
7157
7167
|
] })
|
|
@@ -7181,8 +7191,8 @@ const as = A.div`
|
|
|
7181
7191
|
visibleConditions: l,
|
|
7182
7192
|
normalizedDecision: c,
|
|
7183
7193
|
handleToggleNoneChange: s,
|
|
7184
|
-
handleConditionToggleChange: (g, y) => (
|
|
7185
|
-
if (!
|
|
7194
|
+
handleConditionToggleChange: (g, y) => (b) => {
|
|
7195
|
+
if (!b)
|
|
7186
7196
|
i.setFieldValue(
|
|
7187
7197
|
`conditionsThatEstablishesTheDecision.${g}`,
|
|
7188
7198
|
void 0
|
|
@@ -7338,13 +7348,13 @@ const as = A.div`
|
|
|
7338
7348
|
l && !await l(T, S) || d(T);
|
|
7339
7349
|
},
|
|
7340
7350
|
[d, l]
|
|
7341
|
-
), g = t || c ? "primary" : "dark", y = t || c ? "bold" : "normal",
|
|
7342
|
-
return /* @__PURE__ */ o(cs, { $active: t, children: /* @__PURE__ */
|
|
7351
|
+
), g = t || c ? "primary" : "dark", y = t || c ? "bold" : "normal", b = U.useId();
|
|
7352
|
+
return /* @__PURE__ */ o(cs, { $active: t, children: /* @__PURE__ */ m(ze, { border: !0, borderRadius: "8px", width: "100%", children: [
|
|
7343
7353
|
/* @__PURE__ */ o(
|
|
7344
7354
|
gs,
|
|
7345
7355
|
{
|
|
7346
7356
|
$active: t && n.length > 0,
|
|
7347
|
-
"aria-controls":
|
|
7357
|
+
"aria-controls": b,
|
|
7348
7358
|
"aria-expanded": t,
|
|
7349
7359
|
onClick: u,
|
|
7350
7360
|
onKeyDown: h,
|
|
@@ -7354,7 +7364,7 @@ const as = A.div`
|
|
|
7354
7364
|
path: s,
|
|
7355
7365
|
label: a
|
|
7356
7366
|
});
|
|
7357
|
-
}, children: /* @__PURE__ */
|
|
7367
|
+
}, children: /* @__PURE__ */ m(
|
|
7358
7368
|
ze,
|
|
7359
7369
|
{
|
|
7360
7370
|
alignItems: "center",
|
|
@@ -7372,7 +7382,7 @@ const as = A.div`
|
|
|
7372
7382
|
}
|
|
7373
7383
|
),
|
|
7374
7384
|
/* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(
|
|
7375
|
-
|
|
7385
|
+
C,
|
|
7376
7386
|
{
|
|
7377
7387
|
appearance: g,
|
|
7378
7388
|
cursorHover: !0,
|
|
@@ -7384,7 +7394,7 @@ const as = A.div`
|
|
|
7384
7394
|
) })
|
|
7385
7395
|
]
|
|
7386
7396
|
}
|
|
7387
|
-
) }) : /* @__PURE__ */
|
|
7397
|
+
) }) : /* @__PURE__ */ m(
|
|
7388
7398
|
ze,
|
|
7389
7399
|
{
|
|
7390
7400
|
alignItems: "center",
|
|
@@ -7404,12 +7414,12 @@ const as = A.div`
|
|
|
7404
7414
|
/* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(
|
|
7405
7415
|
us,
|
|
7406
7416
|
{
|
|
7407
|
-
"aria-controls":
|
|
7417
|
+
"aria-controls": b,
|
|
7408
7418
|
"aria-expanded": t,
|
|
7409
7419
|
onClick: r,
|
|
7410
7420
|
onKeyDown: p,
|
|
7411
7421
|
children: /* @__PURE__ */ o(
|
|
7412
|
-
|
|
7422
|
+
C,
|
|
7413
7423
|
{
|
|
7414
7424
|
appearance: g,
|
|
7415
7425
|
cursorHover: !0,
|
|
@@ -7427,11 +7437,11 @@ const as = A.div`
|
|
|
7427
7437
|
)
|
|
7428
7438
|
}
|
|
7429
7439
|
),
|
|
7430
|
-
t && n.length > 0 && /* @__PURE__ */ o(fs, { id:
|
|
7440
|
+
t && n.length > 0 && /* @__PURE__ */ o(fs, { id: b, children: n.map((T) => {
|
|
7431
7441
|
const S = T.id === i;
|
|
7432
7442
|
return /* @__PURE__ */ o(hs, { to: T.path, onClick: async (E) => {
|
|
7433
7443
|
E.preventDefault(), E.stopPropagation(), await f(T.path, T);
|
|
7434
|
-
}, children: /* @__PURE__ */ o(Pr, { $active: S, children: /* @__PURE__ */
|
|
7444
|
+
}, children: /* @__PURE__ */ o(Pr, { $active: S, children: /* @__PURE__ */ m(
|
|
7435
7445
|
v,
|
|
7436
7446
|
{
|
|
7437
7447
|
alignItems: "center",
|
|
@@ -7441,7 +7451,7 @@ const as = A.div`
|
|
|
7441
7451
|
children: [
|
|
7442
7452
|
S && /* @__PURE__ */ o(j, { appearance: "primary", icon: /* @__PURE__ */ o(sa, {}) }),
|
|
7443
7453
|
/* @__PURE__ */ o(
|
|
7444
|
-
|
|
7454
|
+
C,
|
|
7445
7455
|
{
|
|
7446
7456
|
appearance: S ? "primary" : "dark",
|
|
7447
7457
|
size: "small",
|
|
@@ -7553,7 +7563,7 @@ function dt(e) {
|
|
|
7553
7563
|
return { x: e.clientX, y: e.clientY };
|
|
7554
7564
|
}
|
|
7555
7565
|
Array();
|
|
7556
|
-
var On = typeof window < "u",
|
|
7566
|
+
var On = typeof window < "u", se = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
|
|
7557
7567
|
function Br() {
|
|
7558
7568
|
if (!On) return !1;
|
|
7559
7569
|
if ("userAgentData" in navigator)
|
|
@@ -7595,9 +7605,9 @@ var Ts = {
|
|
|
7595
7605
|
scrollDebounceTimeout: void 0,
|
|
7596
7606
|
frameIdX: void 0,
|
|
7597
7607
|
frameIdY: void 0
|
|
7598
|
-
},
|
|
7608
|
+
}, x = Ts, Ye = !1, sr, on;
|
|
7599
7609
|
function ws() {
|
|
7600
|
-
|
|
7610
|
+
x.scrollDebounceTimeout && clearTimeout(x.scrollDebounceTimeout), x.longPressTimeout && clearTimeout(x.longPressTimeout), x.frameIdX !== void 0 && cancelAnimationFrame(x.frameIdX), x.frameIdY !== void 0 && cancelAnimationFrame(x.frameIdY), x = { ...{
|
|
7601
7611
|
affectedNodes: [],
|
|
7602
7612
|
coordinates: {
|
|
7603
7613
|
x: 0,
|
|
@@ -7638,49 +7648,49 @@ function ws() {
|
|
|
7638
7648
|
} };
|
|
7639
7649
|
}
|
|
7640
7650
|
function Hr(e) {
|
|
7641
|
-
return Object.assign(
|
|
7651
|
+
return Object.assign(x, e), e.initialParent.data.emit("dragStarted", x), Ye = !1, x.emit("dragStarted", x), x;
|
|
7642
7652
|
}
|
|
7643
7653
|
function Ss() {
|
|
7644
|
-
|
|
7654
|
+
x.activeState && Ze(x.activeState.parent, void 0, x), x.selectedState && Je(x.selectedState.nodes, x.selectedState.parent, x), x.selectedState = x.activeState = void 0;
|
|
7645
7655
|
}
|
|
7646
7656
|
function xs() {
|
|
7647
|
-
if (
|
|
7648
|
-
const e =
|
|
7649
|
-
ye(
|
|
7657
|
+
if (x.pointerDown && (x.pointerDown.node.el.draggable = !0), x.pointerDown = void 0, !ye(x)) return;
|
|
7658
|
+
const e = x.currentParent.data.config;
|
|
7659
|
+
ye(x) && e.handleEnd(x);
|
|
7650
7660
|
}
|
|
7651
7661
|
function Cs(e) {
|
|
7652
|
-
e.key === "Escape" && (
|
|
7662
|
+
e.key === "Escape" && (x.selectedState && Je(x.selectedState.nodes, x.selectedState.parent, x), x.activeState && Ze(x.activeState.parent, void 0, x), x.selectedState = x.activeState = void 0);
|
|
7653
7663
|
}
|
|
7654
7664
|
function Ds(e) {
|
|
7655
|
-
if (!ue(
|
|
7665
|
+
if (!ue(x)) return;
|
|
7656
7666
|
Ye = !0;
|
|
7657
|
-
const t =
|
|
7658
|
-
t(
|
|
7667
|
+
const t = x.initialParent.data.config.handleEnd;
|
|
7668
|
+
t(x);
|
|
7659
7669
|
}
|
|
7660
7670
|
function Ns(e) {
|
|
7661
|
-
if (!ue(
|
|
7671
|
+
if (!ue(x)) return;
|
|
7662
7672
|
ce(e);
|
|
7663
7673
|
const { x: t, y: n } = dt(e);
|
|
7664
|
-
ue(
|
|
7674
|
+
ue(x) && Wt({ x: t, y: n }, e, x);
|
|
7665
7675
|
}
|
|
7666
7676
|
function Es(e) {
|
|
7667
|
-
if (!
|
|
7668
|
-
const t =
|
|
7677
|
+
if (!x.pointerDown || !x.pointerDown.validated) return;
|
|
7678
|
+
const t = x.pointerDown.parent.data.config;
|
|
7669
7679
|
if (!(e.pointerType === "mouse" && !Br()))
|
|
7670
|
-
if (ye(
|
|
7671
|
-
ye(
|
|
7680
|
+
if (ye(x))
|
|
7681
|
+
ye(x) && dr(e, x);
|
|
7672
7682
|
else {
|
|
7673
|
-
if (ce(e), t.longPress && !
|
|
7674
|
-
clearTimeout(
|
|
7683
|
+
if (ce(e), t.longPress && !x.longPress) {
|
|
7684
|
+
clearTimeout(x.longPressTimeout), x.longPress = !1;
|
|
7675
7685
|
return;
|
|
7676
7686
|
}
|
|
7677
|
-
const n = t.draggedNodes(
|
|
7678
|
-
t.dragstartClasses(
|
|
7679
|
-
const r =
|
|
7680
|
-
|
|
7681
|
-
|
|
7687
|
+
const n = t.draggedNodes(x.pointerDown);
|
|
7688
|
+
t.dragstartClasses(x.pointerDown.node, n, t, !0);
|
|
7689
|
+
const r = x.pointerDown.node.el.getBoundingClientRect(), a = nd(
|
|
7690
|
+
x.pointerDown.node,
|
|
7691
|
+
x.pointerDown.parent,
|
|
7682
7692
|
e,
|
|
7683
|
-
|
|
7693
|
+
x,
|
|
7684
7694
|
n,
|
|
7685
7695
|
r
|
|
7686
7696
|
);
|
|
@@ -7704,10 +7714,10 @@ function As({
|
|
|
7704
7714
|
pointermove: Es,
|
|
7705
7715
|
pointercancel: ge(r.handlePointercancel),
|
|
7706
7716
|
touchmove: (u) => {
|
|
7707
|
-
ue(
|
|
7717
|
+
ue(x) && u.cancelable && ce(u);
|
|
7708
7718
|
},
|
|
7709
7719
|
contextmenu: (u) => {
|
|
7710
|
-
ye(
|
|
7720
|
+
ye(x) && ce(u);
|
|
7711
7721
|
}
|
|
7712
7722
|
})), Yr(e);
|
|
7713
7723
|
const [a, i] = zr(), s = {
|
|
@@ -7760,7 +7770,7 @@ function As({
|
|
|
7760
7770
|
on: i,
|
|
7761
7771
|
emit: a
|
|
7762
7772
|
};
|
|
7763
|
-
new MutationObserver(Ms).observe(e, { childList: !0 }),
|
|
7773
|
+
new MutationObserver(Ms).observe(e, { childList: !0 }), se.set(e, s), (l = r.plugins) == null || l.forEach((u) => {
|
|
7764
7774
|
var h, f;
|
|
7765
7775
|
(f = (h = u(e)) == null ? void 0 : h.tearDown) == null || f.call(h);
|
|
7766
7776
|
}), (d = r.plugins) == null || d.forEach((u) => {
|
|
@@ -7815,7 +7825,7 @@ function $s({
|
|
|
7815
7825
|
const r = t.map((l) => l.data.value), a = st(e.el, e.data), i = t[0].data.index, s = [...e.data.enabledNodes], c = [
|
|
7816
7826
|
...a.filter((l) => !r.some((d) => yt(l, d)))
|
|
7817
7827
|
];
|
|
7818
|
-
c.splice(n[0].data.index, 0, ...r), "draggedNode" in
|
|
7828
|
+
c.splice(n[0].data.index, 0, ...r), "draggedNode" in x && (x.currentTargetValue = n[0].data.value), bn(e.el, e.data, [...c]), e.data.config.onSort && e.data.config.onSort({
|
|
7819
7829
|
parent: {
|
|
7820
7830
|
el: e.el,
|
|
7821
7831
|
data: e.data
|
|
@@ -7828,7 +7838,7 @@ function $s({
|
|
|
7828
7838
|
previousPosition: i,
|
|
7829
7839
|
position: n[0].data.index,
|
|
7830
7840
|
targetNodes: n,
|
|
7831
|
-
state:
|
|
7841
|
+
state: x
|
|
7832
7842
|
});
|
|
7833
7843
|
}
|
|
7834
7844
|
function Ze(e, t, n) {
|
|
@@ -7914,7 +7924,7 @@ function Os(e, t) {
|
|
|
7914
7924
|
n(t);
|
|
7915
7925
|
}
|
|
7916
7926
|
function Yr(e) {
|
|
7917
|
-
const t =
|
|
7927
|
+
const t = se.get(e);
|
|
7918
7928
|
t && t.abortControllers.mainParent && t.abortControllers.mainParent.abort();
|
|
7919
7929
|
}
|
|
7920
7930
|
function ue(e) {
|
|
@@ -7930,7 +7940,7 @@ function Ls(e, t) {
|
|
|
7930
7940
|
scroll: Vt(t.config.handleParentScroll),
|
|
7931
7941
|
drop: Vt(t.config.handleParentDrop),
|
|
7932
7942
|
hasNestedParent: (n) => {
|
|
7933
|
-
const r =
|
|
7943
|
+
const r = se.get(n.target);
|
|
7934
7944
|
r && (r.nestedParent = n.detail.parent);
|
|
7935
7945
|
},
|
|
7936
7946
|
focus: Vt(t.config.handleParentFocus)
|
|
@@ -7951,8 +7961,8 @@ function Ls(e, t) {
|
|
|
7951
7961
|
if (!a) return;
|
|
7952
7962
|
const i = r.parentNode;
|
|
7953
7963
|
if (!(i instanceof HTMLElement)) return;
|
|
7954
|
-
const s =
|
|
7955
|
-
s && (
|
|
7964
|
+
const s = se.get(i);
|
|
7965
|
+
s && (x.pointerDown = {
|
|
7956
7966
|
parent: {
|
|
7957
7967
|
el: i,
|
|
7958
7968
|
data: s
|
|
@@ -7985,10 +7995,10 @@ function Rs(e) {
|
|
|
7985
7995
|
pointerdown: ge(t.handleNodePointerdown),
|
|
7986
7996
|
handleNodePointerover: t.handleNodePointerover,
|
|
7987
7997
|
touchmove: (r) => {
|
|
7988
|
-
ue(
|
|
7998
|
+
ue(x) && r.cancelable && ce(r);
|
|
7989
7999
|
},
|
|
7990
8000
|
contextmenu: (r) => {
|
|
7991
|
-
ye(
|
|
8001
|
+
ye(x) && ce(r);
|
|
7992
8002
|
}
|
|
7993
8003
|
}), e.node.el.draggable = !0, t.reapplyDragClasses(e.node.el, e.parent.data), (n = e.parent.data.config.plugins) == null || n.forEach((r) => {
|
|
7994
8004
|
var a, i;
|
|
@@ -8003,9 +8013,9 @@ function Wr(e) {
|
|
|
8003
8013
|
});
|
|
8004
8014
|
}
|
|
8005
8015
|
function Fs(e, t) {
|
|
8006
|
-
if (!ue(
|
|
8007
|
-
const n = ye(
|
|
8008
|
-
|
|
8016
|
+
if (!ue(x)) return;
|
|
8017
|
+
const n = ye(x) ? t.config.synthDropZoneClass : t.config.dropZoneClass;
|
|
8018
|
+
x.draggedNode.el === e && ot([e], n, !0);
|
|
8009
8019
|
}
|
|
8010
8020
|
function Vs(e) {
|
|
8011
8021
|
var t;
|
|
@@ -8025,11 +8035,11 @@ function Ms(e) {
|
|
|
8025
8035
|
if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
|
|
8026
8036
|
return;
|
|
8027
8037
|
const t = e[0].target;
|
|
8028
|
-
!(t instanceof HTMLElement) || !
|
|
8038
|
+
!(t instanceof HTMLElement) || !se.get(t) || qt(t);
|
|
8029
8039
|
}
|
|
8030
8040
|
function qt(e, t) {
|
|
8031
8041
|
var c;
|
|
8032
|
-
const n =
|
|
8042
|
+
const n = se.get(e);
|
|
8033
8043
|
if (!n) return;
|
|
8034
8044
|
n.privateClasses = Array.from(e.classList);
|
|
8035
8045
|
const r = [], a = n.config;
|
|
@@ -8068,7 +8078,7 @@ function qt(e, t) {
|
|
|
8068
8078
|
index: l
|
|
8069
8079
|
}
|
|
8070
8080
|
);
|
|
8071
|
-
if (!ue(
|
|
8081
|
+
if (!ue(x) && x.activeState && yt(x.activeState.node.data.value, u.value) && Ze(
|
|
8072
8082
|
{
|
|
8073
8083
|
data: n,
|
|
8074
8084
|
el: e
|
|
@@ -8077,10 +8087,10 @@ function qt(e, t) {
|
|
|
8077
8087
|
el: d,
|
|
8078
8088
|
data: u
|
|
8079
8089
|
},
|
|
8080
|
-
|
|
8081
|
-
), ue(
|
|
8082
|
-
|
|
8083
|
-
const h =
|
|
8090
|
+
x
|
|
8091
|
+
), ue(x) && yt(x.draggedNode.data.value, u.value)) {
|
|
8092
|
+
x.draggedNode.data = u, x.draggedNode.el = d;
|
|
8093
|
+
const h = x.draggedNodes.find(
|
|
8084
8094
|
(f) => f.data.value === u.value
|
|
8085
8095
|
);
|
|
8086
8096
|
h && (h.el = d);
|
|
@@ -8108,13 +8118,13 @@ function qt(e, t) {
|
|
|
8108
8118
|
}
|
|
8109
8119
|
});
|
|
8110
8120
|
}
|
|
8111
|
-
|
|
8121
|
+
se.set(e, { ...n, enabledNodes: s }), a.remapFinished(n), (c = n.config.plugins) == null || c.forEach((l) => {
|
|
8112
8122
|
var d, p;
|
|
8113
8123
|
(p = (d = l(e)) == null ? void 0 : d.remapFinished) == null || p.call(d);
|
|
8114
8124
|
});
|
|
8115
8125
|
}
|
|
8116
8126
|
function Ps() {
|
|
8117
|
-
|
|
8127
|
+
x.remapJustFinished = !0, "draggedNode" in x && (x.affectedNodes = []);
|
|
8118
8128
|
}
|
|
8119
8129
|
function zs(e) {
|
|
8120
8130
|
return !!e.targetData.parent.data.config.nativeDrag;
|
|
@@ -8122,10 +8132,10 @@ function zs(e) {
|
|
|
8122
8132
|
function Us(e) {
|
|
8123
8133
|
var t;
|
|
8124
8134
|
if (e.parent.data.config.multiDrag) {
|
|
8125
|
-
if (
|
|
8135
|
+
if (x.selectedState)
|
|
8126
8136
|
return [
|
|
8127
8137
|
e.node,
|
|
8128
|
-
...(t =
|
|
8138
|
+
...(t = x.selectedState) == null ? void 0 : t.nodes.filter(
|
|
8129
8139
|
(n) => n.el !== e.node.el
|
|
8130
8140
|
)
|
|
8131
8141
|
];
|
|
@@ -8133,8 +8143,8 @@ function Us(e) {
|
|
|
8133
8143
|
return [];
|
|
8134
8144
|
}
|
|
8135
8145
|
function js(e) {
|
|
8136
|
-
ue(
|
|
8137
|
-
|
|
8146
|
+
ue(x) && (x.emit("scrollStarted", x), !ye(x) && (x.preventEnter = !0, on && clearTimeout(on), on = setTimeout(() => {
|
|
8147
|
+
x.preventEnter = !1, x.emit("scrollEnded", x);
|
|
8138
8148
|
}, 100)));
|
|
8139
8149
|
}
|
|
8140
8150
|
function Gs(e, t) {
|
|
@@ -8346,10 +8356,10 @@ function Qs(e, t) {
|
|
|
8346
8356
|
n.nativeDrag && (We(e.e), Ye = !0, n.handleEnd(t));
|
|
8347
8357
|
}
|
|
8348
8358
|
function Xs(e) {
|
|
8349
|
-
e.e.target !== e.e.currentTarget &&
|
|
8359
|
+
e.e.target !== e.e.currentTarget && x.pointerDown && (x.pointerDown.node.el.draggable = !1);
|
|
8350
8360
|
}
|
|
8351
8361
|
function Js(e) {
|
|
8352
|
-
e.e.target !== e.e.currentTarget &&
|
|
8362
|
+
e.e.target !== e.e.currentTarget && x.pointerDown && (x.pointerDown.node.el.draggable = !0);
|
|
8353
8363
|
}
|
|
8354
8364
|
function Zs(e, t) {
|
|
8355
8365
|
const n = e.targetData.parent.data.config;
|
|
@@ -8368,7 +8378,7 @@ function Ks(e, t) {
|
|
|
8368
8378
|
Ye = !1;
|
|
8369
8379
|
return;
|
|
8370
8380
|
}
|
|
8371
|
-
const n = (r =
|
|
8381
|
+
const n = (r = se.get(t.initialParent.el)) == null ? void 0 : r.config;
|
|
8372
8382
|
n != null && n.onDragend && n.onDragend({
|
|
8373
8383
|
parent: t.currentParent,
|
|
8374
8384
|
values: st(t.currentParent.el, t.currentParent.data),
|
|
@@ -8380,7 +8390,7 @@ function Ks(e, t) {
|
|
|
8380
8390
|
function ed(e) {
|
|
8381
8391
|
var p, u, h, f, g;
|
|
8382
8392
|
e.draggedNode && (e.draggedNode.el.draggable = !0);
|
|
8383
|
-
const t = e.draggedNodes.map((y) => y.el), n = e.initialParent.data, r = ye(e), a = (p =
|
|
8393
|
+
const t = e.draggedNodes.map((y) => y.el), n = e.initialParent.data, r = ye(e), a = (p = se.get(e.initialParent.el)) == null ? void 0 : p.config, i = r ? a == null ? void 0 : a.synthDropZoneClass : a == null ? void 0 : a.dropZoneClass, s = (u = n == null ? void 0 : n.config) == null ? void 0 : u.longPressClass, c = r ? (h = n == null ? void 0 : n.config) == null ? void 0 : h.synthDragPlaceholderClass : (f = n == null ? void 0 : n.config) == null ? void 0 : f.dragPlaceholderClass, l = e.originalZIndex;
|
|
8384
8394
|
ye(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), yn(e), e.lastScrollDirectionX = void 0, e.lastScrollDirectionY = void 0, e.preventEnter = !1, e.scrollDebounceTimeout && (clearTimeout(e.scrollDebounceTimeout), e.scrollDebounceTimeout = void 0), l !== void 0 && e.draggedNode && (e.draggedNode.el.style.zIndex = l), requestAnimationFrame(() => {
|
|
8385
8395
|
qe(t, i), qe(t, s), qe(t, c);
|
|
8386
8396
|
}), Je(e.draggedNodes, e.currentParent, e), Ze(e.currentParent, void 0, e);
|
|
@@ -8436,13 +8446,13 @@ function nd(e, t, n, r, a, i) {
|
|
|
8436
8446
|
"height",
|
|
8437
8447
|
"boxSizing",
|
|
8438
8448
|
"overflow"
|
|
8439
|
-
], p = (
|
|
8440
|
-
const S = window.getComputedStyle(
|
|
8449
|
+
], p = (b, T) => {
|
|
8450
|
+
const S = window.getComputedStyle(b);
|
|
8441
8451
|
d.forEach((E) => {
|
|
8442
8452
|
T.style[E] = S[E];
|
|
8443
8453
|
});
|
|
8444
|
-
}, u = (
|
|
8445
|
-
Object.assign(
|
|
8454
|
+
}, u = (b, T = {}) => {
|
|
8455
|
+
Object.assign(b.style, {
|
|
8446
8456
|
position: "absolute",
|
|
8447
8457
|
zIndex: "9999",
|
|
8448
8458
|
pointerEvents: "none",
|
|
@@ -8460,11 +8470,11 @@ function nd(e, t, n, r, a, i) {
|
|
|
8460
8470
|
else if (!s.multiDrag || a.length === 1)
|
|
8461
8471
|
c = e.el.cloneNode(!0), p(e.el, c), c.setAttribute("popover", "manual"), u(c);
|
|
8462
8472
|
else {
|
|
8463
|
-
const
|
|
8464
|
-
|
|
8473
|
+
const b = document.createElement("div");
|
|
8474
|
+
b.setAttribute("popover", "manual"), a.forEach((T) => {
|
|
8465
8475
|
const S = T.el.cloneNode(!0);
|
|
8466
|
-
p(T.el, S), S.style.pointerEvents = "none", S.style.margin = "0",
|
|
8467
|
-
}),
|
|
8476
|
+
p(T.el, S), S.style.pointerEvents = "none", S.style.margin = "0", b.append(S);
|
|
8477
|
+
}), b.style.display = "flex", b.style.flexDirection = "column", b.style.padding = "0", b.style.margin = "0", b.style.position = "absolute", b.style.zIndex = "9999", b.style.pointerEvents = "none", c = b;
|
|
8468
8478
|
}
|
|
8469
8479
|
c.id = "dnd-dragged-node-clone", t.el.appendChild(c), c.showPopover();
|
|
8470
8480
|
const h = {
|
|
@@ -8626,7 +8636,7 @@ function ge(e) {
|
|
|
8626
8636
|
function t(n) {
|
|
8627
8637
|
const r = Fe.get(n);
|
|
8628
8638
|
if (!r) return;
|
|
8629
|
-
const a =
|
|
8639
|
+
const a = se.get(n.parentNode);
|
|
8630
8640
|
if (a)
|
|
8631
8641
|
return {
|
|
8632
8642
|
node: {
|
|
@@ -8647,7 +8657,7 @@ function ge(e) {
|
|
|
8647
8657
|
e: n,
|
|
8648
8658
|
targetData: r
|
|
8649
8659
|
},
|
|
8650
|
-
|
|
8660
|
+
x
|
|
8651
8661
|
);
|
|
8652
8662
|
};
|
|
8653
8663
|
}
|
|
@@ -8670,7 +8680,7 @@ function Yt(e, t) {
|
|
|
8670
8680
|
}
|
|
8671
8681
|
function Vt(e) {
|
|
8672
8682
|
function t(n) {
|
|
8673
|
-
const r =
|
|
8683
|
+
const r = se.get(n);
|
|
8674
8684
|
if (r)
|
|
8675
8685
|
return {
|
|
8676
8686
|
parent: {
|
|
@@ -8687,7 +8697,7 @@ function Vt(e) {
|
|
|
8687
8697
|
e: n,
|
|
8688
8698
|
targetData: r
|
|
8689
8699
|
},
|
|
8690
|
-
|
|
8700
|
+
x
|
|
8691
8701
|
);
|
|
8692
8702
|
};
|
|
8693
8703
|
}
|
|
@@ -8726,7 +8736,7 @@ function qe(e, t) {
|
|
|
8726
8736
|
r.classList.remove(...n);
|
|
8727
8737
|
continue;
|
|
8728
8738
|
}
|
|
8729
|
-
const a = Fe.get(r) ||
|
|
8739
|
+
const a = Fe.get(r) || se.get(r);
|
|
8730
8740
|
if (a)
|
|
8731
8741
|
for (const i of n)
|
|
8732
8742
|
a.privateClasses.includes(i) || r.classList.remove(i);
|
|
@@ -8735,23 +8745,23 @@ function qe(e, t) {
|
|
|
8735
8745
|
function cr(e, t, n, r, a) {
|
|
8736
8746
|
const s = a.axis === "x", c = e === document.scrollingElement, l = s ? "scrollLeft" : "scrollTop", d = s ? "clientWidth" : "clientHeight", p = s ? "offsetWidth" : "offsetHeight", u = s ? "scrollWidth" : "scrollHeight", h = s ? t.clientX : t.clientY, f = s ? r.left : r.top, g = s ? n.overflowX : n.overflowY;
|
|
8737
8747
|
if (c) {
|
|
8738
|
-
const y = e[l],
|
|
8748
|
+
const y = e[l], b = e[d], T = y > 0, S = y + b < (s ? a.state.rootScrollWidth || 0 : e[u]);
|
|
8739
8749
|
return s ? {
|
|
8740
|
-
left: T && h <
|
|
8741
|
-
right: S && h >
|
|
8750
|
+
left: T && h < b * 0.075,
|
|
8751
|
+
right: S && h > b * (1 - 0.075)
|
|
8742
8752
|
} : {
|
|
8743
|
-
up: T && h <
|
|
8744
|
-
down: S && h >
|
|
8753
|
+
up: T && h < b * 0.075,
|
|
8754
|
+
down: S && h > b * (1 - 0.075)
|
|
8745
8755
|
};
|
|
8746
8756
|
}
|
|
8747
8757
|
if ((g === "auto" || g === "scroll") && e !== document.body && e !== document.documentElement) {
|
|
8748
|
-
const y = e[u],
|
|
8758
|
+
const y = e[u], b = e[p], T = e[l], S = T > 0, E = T < y - b;
|
|
8749
8759
|
return s ? {
|
|
8750
|
-
left: S && h < f +
|
|
8751
|
-
right: E && h > f +
|
|
8760
|
+
left: S && h < f + b * 0.075,
|
|
8761
|
+
right: E && h > f + b * (1 - 0.075)
|
|
8752
8762
|
} : {
|
|
8753
|
-
up: S && h < f +
|
|
8754
|
-
down: E && h > f +
|
|
8763
|
+
up: S && h < f + b * 0.075,
|
|
8764
|
+
down: E && h > f + b * (1 - 0.075)
|
|
8755
8765
|
};
|
|
8756
8766
|
}
|
|
8757
8767
|
return s ? { left: !1, right: !1 } : { up: !1, down: !1 };
|
|
@@ -8811,14 +8821,14 @@ function hd(e) {
|
|
|
8811
8821
|
if (!Qt(t)) return;
|
|
8812
8822
|
let n, r = !0;
|
|
8813
8823
|
for (; t && r; ) {
|
|
8814
|
-
if (Fe.has(t) ||
|
|
8815
|
-
r = !1, n =
|
|
8824
|
+
if (Fe.has(t) || se.has(t)) {
|
|
8825
|
+
r = !1, n = se.has(t);
|
|
8816
8826
|
break;
|
|
8817
8827
|
}
|
|
8818
8828
|
t = t.parentNode;
|
|
8819
8829
|
}
|
|
8820
8830
|
if (n) {
|
|
8821
|
-
const a =
|
|
8831
|
+
const a = se.get(t);
|
|
8822
8832
|
return a ? {
|
|
8823
8833
|
parent: {
|
|
8824
8834
|
el: t,
|
|
@@ -8828,7 +8838,7 @@ function hd(e) {
|
|
|
8828
8838
|
} else {
|
|
8829
8839
|
const a = Fe.get(t);
|
|
8830
8840
|
if (!a) return;
|
|
8831
|
-
const i =
|
|
8841
|
+
const i = se.get(t.parentNode);
|
|
8832
8842
|
return i ? {
|
|
8833
8843
|
node: {
|
|
8834
8844
|
el: t,
|
|
@@ -8949,7 +8959,7 @@ const hr = {
|
|
|
8949
8959
|
};
|
|
8950
8960
|
return window.addEventListener(ln, D), () => window.removeEventListener(ln, D);
|
|
8951
8961
|
}, [l]);
|
|
8952
|
-
const
|
|
8962
|
+
const b = U.useCallback(
|
|
8953
8963
|
(D) => {
|
|
8954
8964
|
l || window.dispatchEvent(
|
|
8955
8965
|
new CustomEvent(ln, { detail: D })
|
|
@@ -8957,13 +8967,13 @@ const hr = {
|
|
|
8957
8967
|
},
|
|
8958
8968
|
[l]
|
|
8959
8969
|
), T = (D) => {
|
|
8960
|
-
var
|
|
8970
|
+
var O;
|
|
8961
8971
|
if (l) return;
|
|
8962
|
-
const N = D.target, I = (
|
|
8963
|
-
|
|
8972
|
+
const N = D.target, I = (O = N == null ? void 0 : N.closest) == null ? void 0 : O.call(N, "li.dnd-item"), k = (I == null ? void 0 : I.getAttribute("data-label")) || null;
|
|
8973
|
+
k && (g(k), b(k));
|
|
8964
8974
|
}, S = U.useCallback(() => {
|
|
8965
|
-
l || (g(null),
|
|
8966
|
-
}, [
|
|
8975
|
+
l || (g(null), b(null));
|
|
8976
|
+
}, [b, l]);
|
|
8967
8977
|
U.useEffect(() => {
|
|
8968
8978
|
if (l) return;
|
|
8969
8979
|
const D = () => S();
|
|
@@ -8974,10 +8984,10 @@ const hr = {
|
|
|
8974
8984
|
if (l) return;
|
|
8975
8985
|
const D = y.current;
|
|
8976
8986
|
if (h.length !== D.length && h.length === D.length + 1) {
|
|
8977
|
-
const N = new Set(D), I = h.find((
|
|
8987
|
+
const N = new Set(D), I = h.find((k) => !N.has(k)) || null;
|
|
8978
8988
|
if (I) {
|
|
8979
|
-
const
|
|
8980
|
-
c == null || c({ item: I, from:
|
|
8989
|
+
const k = n === "left" ? "right" : "left";
|
|
8990
|
+
c == null || c({ item: I, from: k, to: n });
|
|
8981
8991
|
}
|
|
8982
8992
|
}
|
|
8983
8993
|
y.current = h;
|
|
@@ -9009,7 +9019,7 @@ const hr = {
|
|
|
9009
9019
|
width: "100%",
|
|
9010
9020
|
alignItems: "center",
|
|
9011
9021
|
justifyContent: "center",
|
|
9012
|
-
children: /* @__PURE__ */ o(
|
|
9022
|
+
children: /* @__PURE__ */ o(C, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: t || "No hay elementos en esta lista" })
|
|
9013
9023
|
}
|
|
9014
9024
|
) : h.map((D, N) => {
|
|
9015
9025
|
const I = !l && f === D;
|
|
@@ -9021,7 +9031,7 @@ const hr = {
|
|
|
9021
9031
|
"data-first": !!(s && N === 0) || void 0,
|
|
9022
9032
|
$active: I,
|
|
9023
9033
|
children: /* @__PURE__ */ o(ze, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ o(
|
|
9024
|
-
|
|
9034
|
+
C,
|
|
9025
9035
|
{
|
|
9026
9036
|
type: "title",
|
|
9027
9037
|
appearance: I ? "primary" : "dark",
|
|
@@ -9043,7 +9053,7 @@ const hr = {
|
|
|
9043
9053
|
const { group: t = "clients", left: n, right: r, onMove: a, locked: i = !1 } = e, s = (c) => {
|
|
9044
9054
|
i || a == null || a(c);
|
|
9045
9055
|
};
|
|
9046
|
-
return /* @__PURE__ */
|
|
9056
|
+
return /* @__PURE__ */ m(
|
|
9047
9057
|
v,
|
|
9048
9058
|
{
|
|
9049
9059
|
justifyContent: "space-between",
|
|
@@ -9129,7 +9139,7 @@ const hr = {
|
|
|
9129
9139
|
}
|
|
9130
9140
|
`, xc = (e) => {
|
|
9131
9141
|
const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: a, textValues: i } = e;
|
|
9132
|
-
return /* @__PURE__ */
|
|
9142
|
+
return /* @__PURE__ */ m(xd, { children: [
|
|
9133
9143
|
/* @__PURE__ */ o(
|
|
9134
9144
|
J,
|
|
9135
9145
|
{
|
|
@@ -9195,7 +9205,7 @@ const Nd = {
|
|
|
9195
9205
|
var we = /* @__PURE__ */ ((e) => (e.DANGER = "danger", e.DARK = "dark", e.GRAY = "gray", e.HELP = "help", e.LIGHT = "light", e.PRIMARY = "primary", e.SUCCESS = "success", e.WARNING = "warning", e))(we || {});
|
|
9196
9206
|
const Id = (e) => {
|
|
9197
9207
|
const { onClick: t, icon: n, value: r } = e;
|
|
9198
|
-
return /* @__PURE__ */
|
|
9208
|
+
return /* @__PURE__ */ m($d, { onClick: t, children: [
|
|
9199
9209
|
n && /* @__PURE__ */ o(
|
|
9200
9210
|
v,
|
|
9201
9211
|
{
|
|
@@ -9205,7 +9215,7 @@ const Id = (e) => {
|
|
|
9205
9215
|
children: /* @__PURE__ */ o(j, { icon: n, appearance: we.DARK })
|
|
9206
9216
|
}
|
|
9207
9217
|
),
|
|
9208
|
-
/* @__PURE__ */ o(
|
|
9218
|
+
/* @__PURE__ */ o(C, { size: "small", as: "span", children: r })
|
|
9209
9219
|
] });
|
|
9210
9220
|
};
|
|
9211
9221
|
function kd(e) {
|
|
@@ -9242,7 +9252,7 @@ const Ld = (e) => {
|
|
|
9242
9252
|
l = String(i);
|
|
9243
9253
|
}
|
|
9244
9254
|
return /* @__PURE__ */ o(
|
|
9245
|
-
|
|
9255
|
+
C,
|
|
9246
9256
|
{
|
|
9247
9257
|
size: s,
|
|
9248
9258
|
appearance: we.GRAY,
|
|
@@ -9367,7 +9377,7 @@ const Ld = (e) => {
|
|
|
9367
9377
|
backgroundColor: f = we.LIGHT,
|
|
9368
9378
|
boxSizing: g,
|
|
9369
9379
|
borderColor: y = we.LIGHT,
|
|
9370
|
-
overflowY:
|
|
9380
|
+
overflowY: b,
|
|
9371
9381
|
overflowX: T,
|
|
9372
9382
|
boxShadow: S,
|
|
9373
9383
|
minHeight: E,
|
|
@@ -9392,7 +9402,7 @@ const Ld = (e) => {
|
|
|
9392
9402
|
$boxSizing: g,
|
|
9393
9403
|
$borderColor: y,
|
|
9394
9404
|
$borderRadius: d,
|
|
9395
|
-
$overflowY:
|
|
9405
|
+
$overflowY: b,
|
|
9396
9406
|
$overflowX: T,
|
|
9397
9407
|
$boxShadow: S,
|
|
9398
9408
|
$minHeight: E,
|
|
@@ -9422,7 +9432,7 @@ const Ld = (e) => {
|
|
|
9422
9432
|
padding: p ? "8px" : "6px 16px",
|
|
9423
9433
|
boxSizing: "border-box",
|
|
9424
9434
|
backgroundColor: we.GRAY,
|
|
9425
|
-
children: /* @__PURE__ */
|
|
9435
|
+
children: /* @__PURE__ */ m(
|
|
9426
9436
|
Ae,
|
|
9427
9437
|
{
|
|
9428
9438
|
templateColumns: s === "column" ? "1fr" : "auto 1fr",
|
|
@@ -9434,7 +9444,7 @@ const Ld = (e) => {
|
|
|
9434
9444
|
height: "auto",
|
|
9435
9445
|
children: [
|
|
9436
9446
|
/* @__PURE__ */ o(
|
|
9437
|
-
|
|
9447
|
+
C,
|
|
9438
9448
|
{
|
|
9439
9449
|
type: "label",
|
|
9440
9450
|
size: p ? "small" : "medium",
|
|
@@ -9717,12 +9727,12 @@ const Yd = A.div`
|
|
|
9717
9727
|
cursor: pointer;
|
|
9718
9728
|
`, Qd = (e) => {
|
|
9719
9729
|
const { title: t, defaultOpen: n = !0, children: r } = e, [a, i] = Q(n);
|
|
9720
|
-
return /* @__PURE__ */
|
|
9721
|
-
/* @__PURE__ */
|
|
9730
|
+
return /* @__PURE__ */ m(Yd, { children: [
|
|
9731
|
+
/* @__PURE__ */ m(Wd, { onClick: () => {
|
|
9722
9732
|
i(!a);
|
|
9723
9733
|
}, children: [
|
|
9724
9734
|
/* @__PURE__ */ o(
|
|
9725
|
-
|
|
9735
|
+
C,
|
|
9726
9736
|
{
|
|
9727
9737
|
type: "label",
|
|
9728
9738
|
size: "large",
|
|
@@ -9743,8 +9753,8 @@ const Yd = A.div`
|
|
|
9743
9753
|
}
|
|
9744
9754
|
)
|
|
9745
9755
|
] }),
|
|
9746
|
-
a && /* @__PURE__ */
|
|
9747
|
-
/* @__PURE__ */ o(
|
|
9756
|
+
a && /* @__PURE__ */ m(G, { children: [
|
|
9757
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
9748
9758
|
r
|
|
9749
9759
|
] })
|
|
9750
9760
|
] });
|
|
@@ -9862,8 +9872,8 @@ function Xd(e) {
|
|
|
9862
9872
|
id: `${a}[${p}].${f}`,
|
|
9863
9873
|
label: fe(f),
|
|
9864
9874
|
value: (g) => {
|
|
9865
|
-
var y,
|
|
9866
|
-
return (
|
|
9875
|
+
var y, b;
|
|
9876
|
+
return (b = (y = g == null ? void 0 : g[a]) == null ? void 0 : y[p]) == null ? void 0 : b[f];
|
|
9867
9877
|
},
|
|
9868
9878
|
render: (g) => ve(g)
|
|
9869
9879
|
}))
|
|
@@ -9920,11 +9930,11 @@ function Xd(e) {
|
|
|
9920
9930
|
items: g.map((y) => ({
|
|
9921
9931
|
id: `${a}.values[${h}].${y}`,
|
|
9922
9932
|
label: fe(y),
|
|
9923
|
-
value: (
|
|
9933
|
+
value: (b) => {
|
|
9924
9934
|
var T, S, E;
|
|
9925
|
-
return (E = (S = (T =
|
|
9935
|
+
return (E = (S = (T = b == null ? void 0 : b[a]) == null ? void 0 : T.values) == null ? void 0 : S[h]) == null ? void 0 : E[y];
|
|
9926
9936
|
},
|
|
9927
|
-
render: (
|
|
9937
|
+
render: (b) => ve(b)
|
|
9928
9938
|
}))
|
|
9929
9939
|
};
|
|
9930
9940
|
})
|
|
@@ -10023,7 +10033,7 @@ function Ec(e) {
|
|
|
10023
10033
|
renderedNodes: u
|
|
10024
10034
|
};
|
|
10025
10035
|
}).filter((p) => p.renderedNodes.length > 0);
|
|
10026
|
-
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "24px", children: d.map((p) => /* @__PURE__ */ o(Qd, { title: p.name, children: /* @__PURE__ */
|
|
10036
|
+
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "24px", children: d.map((p) => /* @__PURE__ */ o(Qd, { title: p.name, children: /* @__PURE__ */ m(
|
|
10027
10037
|
v,
|
|
10028
10038
|
{
|
|
10029
10039
|
direction: "column",
|
|
@@ -10082,7 +10092,7 @@ export {
|
|
|
10082
10092
|
ds as RulesForm,
|
|
10083
10093
|
Sc as SendButton,
|
|
10084
10094
|
de as ValueDataType,
|
|
10085
|
-
|
|
10095
|
+
P as ValueHowToSetUp,
|
|
10086
10096
|
Ec as Verification,
|
|
10087
10097
|
Eo as ViewMultipleChoices,
|
|
10088
10098
|
qo as ViewMultipleChoicesNew,
|