@isettingkit/business-rules 3.2.11 → 3.2.13
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 +786 -774
- 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,17 +2497,19 @@ 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
|
)
|
|
2504
2508
|
] });
|
|
2505
2509
|
}, kr = (e) => {
|
|
2506
|
-
const { label: t, howToSet: n, isFirst: r = !1 } = e
|
|
2510
|
+
const { label: t, howToSet: n, isFirst: r = !1 } = e;
|
|
2511
|
+
if (!t) return "";
|
|
2512
|
+
const a = Po(t), i = Mo(a), s = r ? "Que" : "Y que", c = i ? a : `${zo(a)} ${a}`, l = Bo(n);
|
|
2507
2513
|
return `${s} ${c.toLowerCase()} ${l}`;
|
|
2508
2514
|
}, _o = /^(el|la|los|las)\s/i;
|
|
2509
2515
|
function Mo(e) {
|
|
@@ -2572,7 +2578,7 @@ const tt = (e) => {
|
|
|
2572
2578
|
}, Ho = /^(?:y\s+)?que\s+/i, In = (e, t, n) => {
|
|
2573
2579
|
if (n !== "condition")
|
|
2574
2580
|
return e;
|
|
2575
|
-
const r = e.trim();
|
|
2581
|
+
const r = e == null ? void 0 : e.trim();
|
|
2576
2582
|
return !r || Ho.test(r) ? r : kr({
|
|
2577
2583
|
label: r,
|
|
2578
2584
|
howToSet: tt(t),
|
|
@@ -2614,20 +2620,24 @@ const tt = (e) => {
|
|
|
2614
2620
|
showModal: s,
|
|
2615
2621
|
validDate: c
|
|
2616
2622
|
} = e;
|
|
2617
|
-
return /* @__PURE__ */
|
|
2618
|
-
/* @__PURE__ */
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2623
|
+
return /* @__PURE__ */ m(v, { gap: "4px", alignItems: "center", width: "100%", children: [
|
|
2624
|
+
/* @__PURE__ */ m(C, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: [
|
|
2625
|
+
n,
|
|
2626
|
+
' "',
|
|
2627
|
+
r.map((l, d) => /* @__PURE__ */ o(
|
|
2628
|
+
C,
|
|
2629
|
+
{
|
|
2630
|
+
as: "span",
|
|
2631
|
+
type: "body",
|
|
2632
|
+
weight: "bold",
|
|
2633
|
+
size: "medium",
|
|
2634
|
+
appearance: "dark",
|
|
2635
|
+
children: d < r.length - 1 ? ` ${l.label} o` : ` ${l.label}`
|
|
2636
|
+
},
|
|
2637
|
+
l.id
|
|
2638
|
+
)),
|
|
2639
|
+
'"'
|
|
2640
|
+
] }),
|
|
2631
2641
|
a && /* @__PURE__ */ o(
|
|
2632
2642
|
j,
|
|
2633
2643
|
{
|
|
@@ -2654,8 +2664,8 @@ const tt = (e) => {
|
|
|
2654
2664
|
buttonAppearance: "help",
|
|
2655
2665
|
withIconTitle: !0,
|
|
2656
2666
|
icon: /* @__PURE__ */ o(it, {}),
|
|
2657
|
-
children: /* @__PURE__ */
|
|
2658
|
-
/* @__PURE__ */ o(
|
|
2667
|
+
children: /* @__PURE__ */ m(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
|
|
2668
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: n }),
|
|
2659
2669
|
r.map((l) => /* @__PURE__ */ o(
|
|
2660
2670
|
De,
|
|
2661
2671
|
{
|
|
@@ -2665,8 +2675,8 @@ const tt = (e) => {
|
|
|
2665
2675
|
displayIcon: !1
|
|
2666
2676
|
}
|
|
2667
2677
|
)),
|
|
2668
|
-
/* @__PURE__ */ o(
|
|
2669
|
-
/* @__PURE__ */ o(
|
|
2678
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
|
|
2679
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: c })
|
|
2670
2680
|
] })
|
|
2671
2681
|
}
|
|
2672
2682
|
)
|
|
@@ -2713,26 +2723,29 @@ const tt = (e) => {
|
|
|
2713
2723
|
showModal: l,
|
|
2714
2724
|
validDate: d
|
|
2715
2725
|
} = e, p = `De ${ke(a, r)} a ${ke(i, r)}`, u = n === "condition" ? `"${p}"` : p;
|
|
2716
|
-
return /* @__PURE__ */
|
|
2717
|
-
/* @__PURE__ */
|
|
2718
|
-
|
|
2726
|
+
return /* @__PURE__ */ m(v, { gap: "8px", alignItems: "center", children: [
|
|
2727
|
+
/* @__PURE__ */ m(
|
|
2728
|
+
C,
|
|
2719
2729
|
{
|
|
2720
2730
|
type: n === "condition" ? "body" : "label",
|
|
2721
2731
|
weight: n === "condition" ? "normal" : "bold",
|
|
2722
2732
|
size: "medium",
|
|
2723
2733
|
appearance: "dark",
|
|
2724
|
-
children:
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2734
|
+
children: [
|
|
2735
|
+
t,
|
|
2736
|
+
" ",
|
|
2737
|
+
/* @__PURE__ */ o(
|
|
2738
|
+
C,
|
|
2739
|
+
{
|
|
2740
|
+
as: "span",
|
|
2741
|
+
type: n === "condition" ? "body" : "title",
|
|
2742
|
+
weight: n === "condition" ? "bold" : "normal",
|
|
2743
|
+
size: "medium",
|
|
2744
|
+
appearance: n === "condition" ? "dark" : "gray",
|
|
2745
|
+
children: u
|
|
2746
|
+
}
|
|
2747
|
+
)
|
|
2748
|
+
]
|
|
2736
2749
|
}
|
|
2737
2750
|
),
|
|
2738
2751
|
s && /* @__PURE__ */ o(
|
|
@@ -2761,11 +2774,11 @@ const tt = (e) => {
|
|
|
2761
2774
|
buttonAppearance: "help",
|
|
2762
2775
|
withIconTitle: !0,
|
|
2763
2776
|
icon: /* @__PURE__ */ o(it, {}),
|
|
2764
|
-
children: /* @__PURE__ */
|
|
2765
|
-
/* @__PURE__ */ o(
|
|
2766
|
-
/* @__PURE__ */ o(
|
|
2767
|
-
/* @__PURE__ */ o(
|
|
2768
|
-
/* @__PURE__ */ o(
|
|
2777
|
+
children: /* @__PURE__ */ m(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
|
|
2778
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: t }),
|
|
2779
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: u }),
|
|
2780
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
|
|
2781
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: d })
|
|
2769
2782
|
] })
|
|
2770
2783
|
}
|
|
2771
2784
|
)
|
|
@@ -2853,7 +2866,7 @@ const tt = (e) => {
|
|
|
2853
2866
|
textValues: l,
|
|
2854
2867
|
visibleConditions: d
|
|
2855
2868
|
} = e;
|
|
2856
|
-
return i ? /* @__PURE__ */
|
|
2869
|
+
return i ? /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
2857
2870
|
/* @__PURE__ */ o(v, { direction: "column", alignItems: "center", children: /* @__PURE__ */ o(
|
|
2858
2871
|
at,
|
|
2859
2872
|
{
|
|
@@ -2864,8 +2877,8 @@ const tt = (e) => {
|
|
|
2864
2877
|
type: "decision"
|
|
2865
2878
|
}
|
|
2866
2879
|
) }, n.ruleName),
|
|
2867
|
-
/* @__PURE__ */ o(
|
|
2868
|
-
/* @__PURE__ */ o(Un, { children: /* @__PURE__ */
|
|
2880
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
2881
|
+
/* @__PURE__ */ o(Un, { children: /* @__PURE__ */ m(
|
|
2869
2882
|
v,
|
|
2870
2883
|
{
|
|
2871
2884
|
direction: "column",
|
|
@@ -2874,7 +2887,7 @@ const tt = (e) => {
|
|
|
2874
2887
|
height: "203px",
|
|
2875
2888
|
children: [
|
|
2876
2889
|
d.length > 0 && /* @__PURE__ */ o(
|
|
2877
|
-
|
|
2890
|
+
C,
|
|
2878
2891
|
{
|
|
2879
2892
|
type: "label",
|
|
2880
2893
|
size: "large",
|
|
@@ -2893,7 +2906,7 @@ const tt = (e) => {
|
|
|
2893
2906
|
)
|
|
2894
2907
|
}
|
|
2895
2908
|
) }) }, p.conditionName)),
|
|
2896
|
-
d.length > 0 && /* @__PURE__ */ o(
|
|
2909
|
+
d.length > 0 && /* @__PURE__ */ o(re, { dashed: !0 }),
|
|
2897
2910
|
c && /* @__PURE__ */ o(G, { children: r && /* @__PURE__ */ o(
|
|
2898
2911
|
at,
|
|
2899
2912
|
{
|
|
@@ -2906,13 +2919,13 @@ const tt = (e) => {
|
|
|
2906
2919
|
]
|
|
2907
2920
|
}
|
|
2908
2921
|
) })
|
|
2909
|
-
] }) : /* @__PURE__ */
|
|
2910
|
-
/* @__PURE__ */
|
|
2922
|
+
] }) : /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
2923
|
+
/* @__PURE__ */ m(v, { direction: "column", alignItems: "center", gap: "4px", children: [
|
|
2911
2924
|
/* @__PURE__ */ o(be, { animated: !0, width: "180px" }),
|
|
2912
2925
|
/* @__PURE__ */ o(be, { animated: !0, width: "85px" })
|
|
2913
2926
|
] }, "loading"),
|
|
2914
|
-
/* @__PURE__ */
|
|
2915
|
-
/* @__PURE__ */ o(
|
|
2927
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
2928
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
2916
2929
|
/* @__PURE__ */ o(be, { animated: !0, width: "150px" })
|
|
2917
2930
|
] }),
|
|
2918
2931
|
/* @__PURE__ */ o(Un, { children: /* @__PURE__ */ o(
|
|
@@ -2922,7 +2935,7 @@ const tt = (e) => {
|
|
|
2922
2935
|
gap: "12px",
|
|
2923
2936
|
justifyContent: "space-between",
|
|
2924
2937
|
height: "203px",
|
|
2925
|
-
children: s.map((p, u) => /* @__PURE__ */ o(zn, { children: /* @__PURE__ */
|
|
2938
|
+
children: s.map((p, u) => /* @__PURE__ */ o(zn, { children: /* @__PURE__ */ m(
|
|
2926
2939
|
v,
|
|
2927
2940
|
{
|
|
2928
2941
|
direction: "column",
|
|
@@ -2944,7 +2957,7 @@ const tt = (e) => {
|
|
|
2944
2957
|
element: {
|
|
2945
2958
|
labelName: r == null ? void 0 : r.terms,
|
|
2946
2959
|
value: String(t.effectiveFrom),
|
|
2947
|
-
howToSetTheDecision:
|
|
2960
|
+
howToSetTheDecision: P.RANGE,
|
|
2948
2961
|
decisionDataType: de.DATE
|
|
2949
2962
|
},
|
|
2950
2963
|
valueData: pt({
|
|
@@ -2953,20 +2966,20 @@ const tt = (e) => {
|
|
|
2953
2966
|
from: String(t.effectiveFrom),
|
|
2954
2967
|
to: String(t.validUntil)
|
|
2955
2968
|
},
|
|
2956
|
-
howToSetTheDecision:
|
|
2969
|
+
howToSetTheDecision: P.RANGE,
|
|
2957
2970
|
decisionDataType: de.DATE
|
|
2958
2971
|
})
|
|
2959
2972
|
} : a && !i ? {
|
|
2960
2973
|
element: {
|
|
2961
2974
|
labelName: r == null ? void 0 : r.terms,
|
|
2962
2975
|
value: String(t.effectiveFrom),
|
|
2963
|
-
howToSetTheDecision:
|
|
2976
|
+
howToSetTheDecision: P.EQUAL,
|
|
2964
2977
|
decisionDataType: de.DATE
|
|
2965
2978
|
},
|
|
2966
2979
|
valueData: pt({
|
|
2967
2980
|
labelName: r == null ? void 0 : r.terms,
|
|
2968
2981
|
value: String(t.effectiveFrom),
|
|
2969
|
-
howToSetTheDecision:
|
|
2982
|
+
howToSetTheDecision: P.EQUAL,
|
|
2970
2983
|
decisionDataType: de.DATE
|
|
2971
2984
|
})
|
|
2972
2985
|
} : null, c = t ? {
|
|
@@ -3035,9 +3048,9 @@ const tt = (e) => {
|
|
|
3035
3048
|
);
|
|
3036
3049
|
const s = Te("(max-width: 400px)");
|
|
3037
3050
|
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(
|
|
3051
|
+
/* @__PURE__ */ o(ei, { smallScreen: s, children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(ti, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
3052
|
+
/* @__PURE__ */ o(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
3053
|
+
/* @__PURE__ */ o(C, { type: "title", size: "large", appearance: "dark", weight: "bold", children: a }),
|
|
3041
3054
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: r })
|
|
3042
3055
|
] }) }),
|
|
3043
3056
|
t
|
|
@@ -3138,8 +3151,8 @@ const Or = A.div`
|
|
|
3138
3151
|
);
|
|
3139
3152
|
}, li = (e) => {
|
|
3140
3153
|
const { decision: t, controls: n, handleOpenModal: r, handleDelete: a, textValues: i } = e;
|
|
3141
|
-
return t ? /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */ o(
|
|
3154
|
+
return t ? /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
|
|
3155
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: t.decisionId }),
|
|
3143
3156
|
/* @__PURE__ */ o(
|
|
3144
3157
|
Ct,
|
|
3145
3158
|
{
|
|
@@ -3158,8 +3171,8 @@ const Or = A.div`
|
|
|
3158
3171
|
handleOpenModal: r,
|
|
3159
3172
|
shouldRenderEmptyMessage: a
|
|
3160
3173
|
} = e, i = t || "Agregar decisión";
|
|
3161
|
-
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */
|
|
3162
|
-
/* @__PURE__ */ o(
|
|
3174
|
+
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
|
|
3175
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
|
|
3163
3176
|
/* @__PURE__ */ o(
|
|
3164
3177
|
Or,
|
|
3165
3178
|
{
|
|
@@ -3172,9 +3185,9 @@ const Or = A.div`
|
|
|
3172
3185
|
},
|
|
3173
3186
|
handleView: () => r ? r() : null,
|
|
3174
3187
|
controls: !1,
|
|
3175
|
-
children: /* @__PURE__ */
|
|
3188
|
+
children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
3176
3189
|
/* @__PURE__ */ o(j, { appearance: "gray", icon: /* @__PURE__ */ o(Tt, {}), size: "35px" }),
|
|
3177
|
-
/* @__PURE__ */ o(
|
|
3190
|
+
/* @__PURE__ */ o(C, { appearance: "gray", type: "body", size: "large", children: i })
|
|
3178
3191
|
] })
|
|
3179
3192
|
}
|
|
3180
3193
|
)
|
|
@@ -3237,7 +3250,7 @@ const Or = A.div`
|
|
|
3237
3250
|
handleSubmitForm: h,
|
|
3238
3251
|
handleDelete: f,
|
|
3239
3252
|
terms: g = !0
|
|
3240
|
-
} = e, y = Te("(max-width: 681px)"),
|
|
3253
|
+
} = e, y = Te("(max-width: 681px)"), b = Te("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = ci({
|
|
3241
3254
|
controls: t,
|
|
3242
3255
|
customTitleContentAddCard: n,
|
|
3243
3256
|
decisions: a,
|
|
@@ -3246,8 +3259,8 @@ const Or = A.div`
|
|
|
3246
3259
|
handleDelete: f,
|
|
3247
3260
|
textValues: i
|
|
3248
3261
|
}), 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__ */
|
|
3262
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
3263
|
+
/* @__PURE__ */ o(ai, { children: /* @__PURE__ */ o(oi, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
|
|
3251
3264
|
v,
|
|
3252
3265
|
{
|
|
3253
3266
|
direction: "column",
|
|
@@ -3257,10 +3270,10 @@ const Or = A.div`
|
|
|
3257
3270
|
justifyContent: "center",
|
|
3258
3271
|
alignItems: "center",
|
|
3259
3272
|
children: [
|
|
3260
|
-
/* @__PURE__ */ o(
|
|
3273
|
+
/* @__PURE__ */ o(C, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(G, { children: [
|
|
3261
3274
|
"Aún NO tienes definidas tasas de interés efectivas . Presiona",
|
|
3262
|
-
/* @__PURE__ */
|
|
3263
|
-
|
|
3275
|
+
/* @__PURE__ */ m(
|
|
3276
|
+
C,
|
|
3264
3277
|
{
|
|
3265
3278
|
as: "span",
|
|
3266
3279
|
type: "label",
|
|
@@ -3286,10 +3299,10 @@ const Or = A.div`
|
|
|
3286
3299
|
)
|
|
3287
3300
|
]
|
|
3288
3301
|
}
|
|
3289
|
-
) : /* @__PURE__ */
|
|
3302
|
+
) : /* @__PURE__ */ m(
|
|
3290
3303
|
Ae,
|
|
3291
3304
|
{
|
|
3292
|
-
templateColumns:
|
|
3305
|
+
templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
|
|
3293
3306
|
autoFlow: "row dense",
|
|
3294
3307
|
gap: "24px",
|
|
3295
3308
|
alignItems: "start",
|
|
@@ -3379,9 +3392,9 @@ const Or = A.div`
|
|
|
3379
3392
|
);
|
|
3380
3393
|
const s = Te("(max-width: 400px)");
|
|
3381
3394
|
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(
|
|
3395
|
+
/* @__PURE__ */ o(ui, { $smallScreen: s, children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(pi, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
3396
|
+
/* @__PURE__ */ o(v, { direction: "column", gap: "24px", children: /* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
3397
|
+
/* @__PURE__ */ o(C, { type: "title", size: "large", appearance: "dark", weight: "bold", children: a }),
|
|
3385
3398
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: r })
|
|
3386
3399
|
] }) }),
|
|
3387
3400
|
t
|
|
@@ -3543,7 +3556,7 @@ const fi = A.div`
|
|
|
3543
3556
|
textValues: l,
|
|
3544
3557
|
visibleConditions: d
|
|
3545
3558
|
} = e;
|
|
3546
|
-
return i ? /* @__PURE__ */
|
|
3559
|
+
return i ? /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
3547
3560
|
/* @__PURE__ */ o(v, { direction: "column", alignItems: "center", children: /* @__PURE__ */ o(
|
|
3548
3561
|
at,
|
|
3549
3562
|
{
|
|
@@ -3554,8 +3567,8 @@ const fi = A.div`
|
|
|
3554
3567
|
type: "decision"
|
|
3555
3568
|
}
|
|
3556
3569
|
) }, n.ruleName),
|
|
3557
|
-
/* @__PURE__ */ o(
|
|
3558
|
-
/* @__PURE__ */ o(Bn, { children: /* @__PURE__ */
|
|
3570
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
3571
|
+
/* @__PURE__ */ o(Bn, { children: /* @__PURE__ */ m(
|
|
3559
3572
|
v,
|
|
3560
3573
|
{
|
|
3561
3574
|
direction: "column",
|
|
@@ -3564,7 +3577,7 @@ const fi = A.div`
|
|
|
3564
3577
|
height: "203px",
|
|
3565
3578
|
children: [
|
|
3566
3579
|
d.length > 0 && /* @__PURE__ */ o(
|
|
3567
|
-
|
|
3580
|
+
C,
|
|
3568
3581
|
{
|
|
3569
3582
|
type: "label",
|
|
3570
3583
|
size: "large",
|
|
@@ -3583,7 +3596,7 @@ const fi = A.div`
|
|
|
3583
3596
|
)
|
|
3584
3597
|
}
|
|
3585
3598
|
) }) }, p.conditionName)),
|
|
3586
|
-
d.length > 0 && /* @__PURE__ */ o(
|
|
3599
|
+
d.length > 0 && /* @__PURE__ */ o(re, { dashed: !0 }),
|
|
3587
3600
|
c && /* @__PURE__ */ o(G, { children: r && /* @__PURE__ */ o(
|
|
3588
3601
|
at,
|
|
3589
3602
|
{
|
|
@@ -3596,13 +3609,13 @@ const fi = A.div`
|
|
|
3596
3609
|
]
|
|
3597
3610
|
}
|
|
3598
3611
|
) })
|
|
3599
|
-
] }) : /* @__PURE__ */
|
|
3600
|
-
/* @__PURE__ */
|
|
3612
|
+
] }) : /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
3613
|
+
/* @__PURE__ */ m(v, { direction: "column", alignItems: "center", gap: "4px", children: [
|
|
3601
3614
|
/* @__PURE__ */ o(be, { animated: !0, width: "180px" }),
|
|
3602
3615
|
/* @__PURE__ */ o(be, { animated: !0, width: "85px" })
|
|
3603
3616
|
] }, "loading"),
|
|
3604
|
-
/* @__PURE__ */
|
|
3605
|
-
/* @__PURE__ */ o(
|
|
3617
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
3618
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
3606
3619
|
/* @__PURE__ */ o(be, { animated: !0, width: "150px" })
|
|
3607
3620
|
] }),
|
|
3608
3621
|
/* @__PURE__ */ o(Bn, { children: /* @__PURE__ */ o(
|
|
@@ -3612,7 +3625,7 @@ const fi = A.div`
|
|
|
3612
3625
|
gap: "12px",
|
|
3613
3626
|
justifyContent: "space-between",
|
|
3614
3627
|
height: "203px",
|
|
3615
|
-
children: s.map((p, u) => /* @__PURE__ */ o(Gn, { children: /* @__PURE__ */
|
|
3628
|
+
children: s.map((p, u) => /* @__PURE__ */ o(Gn, { children: /* @__PURE__ */ m(
|
|
3616
3629
|
v,
|
|
3617
3630
|
{
|
|
3618
3631
|
direction: "column",
|
|
@@ -3636,7 +3649,7 @@ const fi = A.div`
|
|
|
3636
3649
|
element: {
|
|
3637
3650
|
labelName: r == null ? void 0 : r.terms,
|
|
3638
3651
|
value: String(t.effectiveFrom),
|
|
3639
|
-
howToSetTheDecision:
|
|
3652
|
+
howToSetTheDecision: P.RANGE,
|
|
3640
3653
|
decisionDataType: de.DATE
|
|
3641
3654
|
},
|
|
3642
3655
|
valueData: ht({
|
|
@@ -3645,20 +3658,20 @@ const fi = A.div`
|
|
|
3645
3658
|
from: String(t.effectiveFrom),
|
|
3646
3659
|
to: String(t.validUntil)
|
|
3647
3660
|
},
|
|
3648
|
-
howToSetTheDecision:
|
|
3661
|
+
howToSetTheDecision: P.RANGE,
|
|
3649
3662
|
decisionDataType: de.DATE
|
|
3650
3663
|
})
|
|
3651
3664
|
} : a && !i ? {
|
|
3652
3665
|
element: {
|
|
3653
3666
|
labelName: r == null ? void 0 : r.terms,
|
|
3654
3667
|
value: String(t.effectiveFrom),
|
|
3655
|
-
howToSetTheDecision:
|
|
3668
|
+
howToSetTheDecision: P.EQUAL,
|
|
3656
3669
|
decisionDataType: de.DATE
|
|
3657
3670
|
},
|
|
3658
3671
|
valueData: ht({
|
|
3659
3672
|
labelName: r == null ? void 0 : r.terms,
|
|
3660
3673
|
value: String(t.effectiveFrom),
|
|
3661
|
-
howToSetTheDecision:
|
|
3674
|
+
howToSetTheDecision: P.EQUAL,
|
|
3662
3675
|
decisionDataType: de.DATE
|
|
3663
3676
|
})
|
|
3664
3677
|
} : null, c = t ? {
|
|
@@ -3720,10 +3733,10 @@ A.div`
|
|
|
3720
3733
|
`;
|
|
3721
3734
|
const Oi = (e) => {
|
|
3722
3735
|
const { children: t, controls: n = !0, handleDelete: r, id: a } = e;
|
|
3723
|
-
return /* @__PURE__ */ o(ki, { children: /* @__PURE__ */
|
|
3736
|
+
return /* @__PURE__ */ o(ki, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", padding: "12px 16px", children: [
|
|
3724
3737
|
t,
|
|
3725
|
-
n && /* @__PURE__ */
|
|
3726
|
-
/* @__PURE__ */ o(
|
|
3738
|
+
n && /* @__PURE__ */ m(G, { children: [
|
|
3739
|
+
/* @__PURE__ */ o(re, {}),
|
|
3727
3740
|
/* @__PURE__ */ o(v, { gap: "16px", justifyContent: "end", children: /* @__PURE__ */ o(
|
|
3728
3741
|
j,
|
|
3729
3742
|
{
|
|
@@ -3742,8 +3755,8 @@ const Oi = (e) => {
|
|
|
3742
3755
|
const { decision: t, controls: n, handleOpenModal: r, handleDelete: a, textValues: i, index: s } = e;
|
|
3743
3756
|
if (!t) return null;
|
|
3744
3757
|
const c = typeof s == "number" ? `Decisión ${s + 1}` : t.decisionId;
|
|
3745
|
-
return /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */
|
|
3746
|
-
/* @__PURE__ */ o(
|
|
3758
|
+
return /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", padding: "0 0 12px 0", children: [
|
|
3759
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: c }),
|
|
3747
3760
|
/* @__PURE__ */ o(
|
|
3748
3761
|
Oi,
|
|
3749
3762
|
{
|
|
@@ -3768,8 +3781,8 @@ const Oi = (e) => {
|
|
|
3768
3781
|
handleOpenModal: r,
|
|
3769
3782
|
shouldRenderEmptyMessage: a
|
|
3770
3783
|
} = e, i = t || "Agregar decisión";
|
|
3771
|
-
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */
|
|
3772
|
-
/* @__PURE__ */ o(
|
|
3784
|
+
return /* @__PURE__ */ o(Dt, { children: a ? null : /* @__PURE__ */ m(v, { direction: "column", gap: "4px", width: "100%", height: "100%", children: [
|
|
3785
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", appearance: "gray", weight: "bold", children: "Nueva decisión" }),
|
|
3773
3786
|
/* @__PURE__ */ o(
|
|
3774
3787
|
Or,
|
|
3775
3788
|
{
|
|
@@ -3782,9 +3795,9 @@ const Oi = (e) => {
|
|
|
3782
3795
|
},
|
|
3783
3796
|
handleView: () => r ? r() : null,
|
|
3784
3797
|
controls: !1,
|
|
3785
|
-
children: /* @__PURE__ */
|
|
3798
|
+
children: /* @__PURE__ */ m(v, { direction: "column", gap: "12px", alignItems: "center", children: [
|
|
3786
3799
|
/* @__PURE__ */ o(j, { appearance: "gray", icon: /* @__PURE__ */ o(Tt, {}), size: "35px" }),
|
|
3787
|
-
/* @__PURE__ */ o(
|
|
3800
|
+
/* @__PURE__ */ o(C, { appearance: "gray", type: "body", size: "large", children: i })
|
|
3788
3801
|
] })
|
|
3789
3802
|
}
|
|
3790
3803
|
)
|
|
@@ -3826,7 +3839,7 @@ const Oi = (e) => {
|
|
|
3826
3839
|
}), Pi = (e) => {
|
|
3827
3840
|
const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
|
|
3828
3841
|
return {
|
|
3829
|
-
schema:
|
|
3842
|
+
schema: ae({
|
|
3830
3843
|
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
3844
|
to: Ee().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
|
|
3832
3845
|
"is-greater",
|
|
@@ -3907,7 +3920,7 @@ function ji({
|
|
|
3907
3920
|
c.values.value,
|
|
3908
3921
|
c.values.decisionDataType
|
|
3909
3922
|
).schema),
|
|
3910
|
-
conditionsThatEstablishesTheDecision:
|
|
3923
|
+
conditionsThatEstablishesTheDecision: ae().shape({})
|
|
3911
3924
|
};
|
|
3912
3925
|
n.terms && (l.effectiveFrom = mt().required(
|
|
3913
3926
|
"La fecha de inicio es requerida"
|
|
@@ -3922,24 +3935,24 @@ function ji({
|
|
|
3922
3935
|
}
|
|
3923
3936
|
) : g.notRequired()
|
|
3924
3937
|
));
|
|
3925
|
-
const d =
|
|
3938
|
+
const d = ae(l);
|
|
3926
3939
|
return c = Dn({
|
|
3927
3940
|
initialValues: s,
|
|
3928
3941
|
validationSchema: d,
|
|
3929
3942
|
validate: (f) => {
|
|
3930
3943
|
const g = {};
|
|
3931
3944
|
if (!f.toggleNone) {
|
|
3932
|
-
const y = f.conditionsThatEstablishesTheDecision || {},
|
|
3945
|
+
const y = f.conditionsThatEstablishesTheDecision || {}, b = Object.keys(y).filter(
|
|
3933
3946
|
(T) => y[T] !== void 0
|
|
3934
3947
|
);
|
|
3935
|
-
if (
|
|
3948
|
+
if (b.length > 0) {
|
|
3936
3949
|
const T = Hn(
|
|
3937
3950
|
f,
|
|
3938
3951
|
r
|
|
3939
3952
|
), S = new Set(
|
|
3940
3953
|
T.map((D) => D.conditionName).filter((D) => !!D)
|
|
3941
3954
|
);
|
|
3942
|
-
|
|
3955
|
+
b.some(
|
|
3943
3956
|
(D) => !S.has(D)
|
|
3944
3957
|
) && (g.conditionsThatEstablishesTheDecision = "Debes diligenciar los campos de las condiciones activas o desactivar el toggle.");
|
|
3945
3958
|
}
|
|
@@ -3949,7 +3962,7 @@ function ji({
|
|
|
3949
3962
|
validateOnBlur: !0,
|
|
3950
3963
|
onSubmit: (f) => {
|
|
3951
3964
|
var T;
|
|
3952
|
-
const g = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", y = f.toggleNone ? [] : Hn(f, r),
|
|
3965
|
+
const g = ((T = e.conditionGroups) == null ? void 0 : T.ConditionGroupId) ?? "group-primary", y = f.toggleNone ? [] : Hn(f, r), b = {
|
|
3953
3966
|
...e,
|
|
3954
3967
|
ruleName: f.ruleName,
|
|
3955
3968
|
decisionDataType: f.decisionDataType,
|
|
@@ -3962,7 +3975,7 @@ function ji({
|
|
|
3962
3975
|
conditionsThatEstablishesTheDecision: y
|
|
3963
3976
|
}
|
|
3964
3977
|
};
|
|
3965
|
-
t(
|
|
3978
|
+
t(b);
|
|
3966
3979
|
}
|
|
3967
3980
|
}), { formik: c, handleToggleNoneChange: (f) => {
|
|
3968
3981
|
c.setFieldValue("toggleNone", f), f && r.forEach((g) => {
|
|
@@ -4011,7 +4024,7 @@ const Gi = A.div`
|
|
|
4011
4024
|
} = e, [l, d] = Q(t);
|
|
4012
4025
|
return Ue(() => {
|
|
4013
4026
|
d(t);
|
|
4014
|
-
}, [t]), /* @__PURE__ */
|
|
4027
|
+
}, [t]), /* @__PURE__ */ m(G, { children: [
|
|
4015
4028
|
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
|
|
4016
4029
|
lt,
|
|
4017
4030
|
{
|
|
@@ -4023,7 +4036,7 @@ const Gi = A.div`
|
|
|
4023
4036
|
},
|
|
4024
4037
|
size: "small",
|
|
4025
4038
|
value: c,
|
|
4026
|
-
children: /* @__PURE__ */ o(
|
|
4039
|
+
children: /* @__PURE__ */ o(C, { size: "medium", type: "label", weight: "bold", as: "span", children: i })
|
|
4027
4040
|
}
|
|
4028
4041
|
) }),
|
|
4029
4042
|
l && /* @__PURE__ */ o(G, { children: n })
|
|
@@ -4043,17 +4056,17 @@ const Gi = A.div`
|
|
|
4043
4056
|
messageEnd: u = "",
|
|
4044
4057
|
statusStart: h = "pending",
|
|
4045
4058
|
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__ */
|
|
4059
|
+
} = e, [g, y] = Q(s), [b, T] = Q(l), [S, E] = Q(d), D = ({ target: O }) => {
|
|
4060
|
+
y(O.checked), r && r(O.checked);
|
|
4061
|
+
}, N = (O) => {
|
|
4062
|
+
T(O.target.value), t(O);
|
|
4063
|
+
}, I = (O) => {
|
|
4064
|
+
E(O.target.value), n(O);
|
|
4065
|
+
}, k = Te("(max-width: 400px)");
|
|
4066
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
4067
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
|
|
4055
4068
|
/* @__PURE__ */ o(
|
|
4056
|
-
|
|
4069
|
+
C,
|
|
4057
4070
|
{
|
|
4058
4071
|
appearance: "gray",
|
|
4059
4072
|
margin: "10px 0",
|
|
@@ -4082,10 +4095,10 @@ const Gi = A.div`
|
|
|
4082
4095
|
}
|
|
4083
4096
|
)
|
|
4084
4097
|
] }),
|
|
4085
|
-
/* @__PURE__ */
|
|
4098
|
+
/* @__PURE__ */ m(
|
|
4086
4099
|
v,
|
|
4087
4100
|
{
|
|
4088
|
-
direction:
|
|
4101
|
+
direction: k ? "column" : "row",
|
|
4089
4102
|
justifyContent: "space-between",
|
|
4090
4103
|
gap: "24px",
|
|
4091
4104
|
children: [
|
|
@@ -4095,7 +4108,7 @@ const Gi = A.div`
|
|
|
4095
4108
|
id: "dateStart",
|
|
4096
4109
|
label: a,
|
|
4097
4110
|
onChange: N,
|
|
4098
|
-
value:
|
|
4111
|
+
value: b,
|
|
4099
4112
|
required: c,
|
|
4100
4113
|
size: "compact",
|
|
4101
4114
|
status: h,
|
|
@@ -4134,14 +4147,14 @@ const Yi = (e) => {
|
|
|
4134
4147
|
termStartStatus: d,
|
|
4135
4148
|
termEndStatus: p
|
|
4136
4149
|
} = e;
|
|
4137
|
-
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */
|
|
4150
|
+
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
4138
4151
|
Ut({
|
|
4139
4152
|
condition: i,
|
|
4140
4153
|
formik: t,
|
|
4141
4154
|
isDecision: !0
|
|
4142
4155
|
}),
|
|
4143
|
-
/* @__PURE__ */ o(
|
|
4144
|
-
/* @__PURE__ */ o(Gi, { children: /* @__PURE__ */ o(Bi, { children: /* @__PURE__ */
|
|
4156
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
4157
|
+
/* @__PURE__ */ o(Gi, { children: /* @__PURE__ */ o(Bi, { children: /* @__PURE__ */ m(
|
|
4145
4158
|
v,
|
|
4146
4159
|
{
|
|
4147
4160
|
direction: "column",
|
|
@@ -4149,14 +4162,14 @@ const Yi = (e) => {
|
|
|
4149
4162
|
gap: "16px",
|
|
4150
4163
|
height: "272px",
|
|
4151
4164
|
children: [
|
|
4152
|
-
/* @__PURE__ */
|
|
4165
|
+
/* @__PURE__ */ m(
|
|
4153
4166
|
v,
|
|
4154
4167
|
{
|
|
4155
4168
|
justifyContent: "space-between",
|
|
4156
4169
|
alignItems: "center",
|
|
4157
4170
|
gap: "64px",
|
|
4158
4171
|
children: [
|
|
4159
|
-
/* @__PURE__ */ o(
|
|
4172
|
+
/* @__PURE__ */ o(C, { type: "title", size: "small", weight: "bold", appearance: "gray", children: n.factsThatConditionIt }),
|
|
4160
4173
|
/* @__PURE__ */ o(
|
|
4161
4174
|
lt,
|
|
4162
4175
|
{
|
|
@@ -4164,7 +4177,7 @@ const Yi = (e) => {
|
|
|
4164
4177
|
onChange: () => s(!t.values.toggleNone),
|
|
4165
4178
|
checked: t.values.toggleNone,
|
|
4166
4179
|
size: "small",
|
|
4167
|
-
children: /* @__PURE__ */ o(
|
|
4180
|
+
children: /* @__PURE__ */ o(C, { as: "span", size: "medium", type: "label", weight: "bold", children: n.none })
|
|
4168
4181
|
}
|
|
4169
4182
|
)
|
|
4170
4183
|
]
|
|
@@ -4191,8 +4204,8 @@ const Yi = (e) => {
|
|
|
4191
4204
|
]
|
|
4192
4205
|
}
|
|
4193
4206
|
) }) }),
|
|
4194
|
-
n.terms && /* @__PURE__ */
|
|
4195
|
-
/* @__PURE__ */ o(
|
|
4207
|
+
n.terms && /* @__PURE__ */ m(G, { children: [
|
|
4208
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
4196
4209
|
/* @__PURE__ */ o(
|
|
4197
4210
|
qi,
|
|
4198
4211
|
{
|
|
@@ -4213,9 +4226,9 @@ const Yi = (e) => {
|
|
|
4213
4226
|
}
|
|
4214
4227
|
)
|
|
4215
4228
|
] }),
|
|
4216
|
-
/* @__PURE__ */ o(
|
|
4217
|
-
l && /* @__PURE__ */ o(
|
|
4218
|
-
/* @__PURE__ */
|
|
4229
|
+
/* @__PURE__ */ o(re, {}),
|
|
4230
|
+
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." }),
|
|
4231
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
|
|
4219
4232
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: r, children: n.cancel }),
|
|
4220
4233
|
/* @__PURE__ */ o(J, { type: "submit", children: n.confirm })
|
|
4221
4234
|
] })
|
|
@@ -4245,9 +4258,9 @@ const Yi = (e) => {
|
|
|
4245
4258
|
visibleConditions: l,
|
|
4246
4259
|
normalizedDecision: c,
|
|
4247
4260
|
handleToggleNoneChange: s,
|
|
4248
|
-
handleConditionToggleChange: (y,
|
|
4261
|
+
handleConditionToggleChange: (y, b) => (T) => {
|
|
4249
4262
|
if (T) {
|
|
4250
|
-
const S =
|
|
4263
|
+
const S = b ? [] : "";
|
|
4251
4264
|
s(!1), i.setFieldValue(
|
|
4252
4265
|
`conditionsThatEstablishesTheDecision.${y}`,
|
|
4253
4266
|
S
|
|
@@ -4322,7 +4335,7 @@ const Yi = (e) => {
|
|
|
4322
4335
|
handleSubmitForm: h,
|
|
4323
4336
|
handleDelete: f,
|
|
4324
4337
|
terms: g = !0
|
|
4325
|
-
} = e, y = Te("(max-width: 681px)"),
|
|
4338
|
+
} = e, y = Te("(max-width: 681px)"), b = Te("(max-width: 400px)"), { renderedCards: T, shouldRenderAddCard: S } = Qi({
|
|
4326
4339
|
controls: t,
|
|
4327
4340
|
customTitleContentAddCard: n,
|
|
4328
4341
|
decisions: a,
|
|
@@ -4331,8 +4344,8 @@ const Yi = (e) => {
|
|
|
4331
4344
|
handleDelete: f,
|
|
4332
4345
|
textValues: i
|
|
4333
4346
|
}), 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__ */
|
|
4347
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
4348
|
+
/* @__PURE__ */ o(fi, { children: /* @__PURE__ */ o(mi, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children: E ? /* @__PURE__ */ m(
|
|
4336
4349
|
v,
|
|
4337
4350
|
{
|
|
4338
4351
|
direction: "column",
|
|
@@ -4342,10 +4355,10 @@ const Yi = (e) => {
|
|
|
4342
4355
|
justifyContent: "center",
|
|
4343
4356
|
alignItems: "center",
|
|
4344
4357
|
children: [
|
|
4345
|
-
/* @__PURE__ */ o(
|
|
4358
|
+
/* @__PURE__ */ o(C, { as: "span", type: "label", size: "large", appearance: "gray", children: r || /* @__PURE__ */ m(G, { children: [
|
|
4346
4359
|
"Aún NO tienes definidas tasas de interés efectivas . Presiona",
|
|
4347
|
-
/* @__PURE__ */
|
|
4348
|
-
|
|
4360
|
+
/* @__PURE__ */ m(
|
|
4361
|
+
C,
|
|
4349
4362
|
{
|
|
4350
4363
|
as: "span",
|
|
4351
4364
|
type: "label",
|
|
@@ -4371,10 +4384,10 @@ const Yi = (e) => {
|
|
|
4371
4384
|
)
|
|
4372
4385
|
]
|
|
4373
4386
|
}
|
|
4374
|
-
) : /* @__PURE__ */
|
|
4387
|
+
) : /* @__PURE__ */ m(
|
|
4375
4388
|
Ae,
|
|
4376
4389
|
{
|
|
4377
|
-
templateColumns:
|
|
4390
|
+
templateColumns: b ? "repeat(auto-fill, minmax(200px, 1fr))" : "repeat(auto-fill, minmax(300px, 1fr))",
|
|
4378
4391
|
autoFlow: "row dense",
|
|
4379
4392
|
gap: "24px",
|
|
4380
4393
|
alignItems: "start",
|
|
@@ -4491,7 +4504,7 @@ const Yi = (e) => {
|
|
|
4491
4504
|
border: f,
|
|
4492
4505
|
margin: g = "0px",
|
|
4493
4506
|
padding: y = "0px",
|
|
4494
|
-
boxSizing:
|
|
4507
|
+
boxSizing: b,
|
|
4495
4508
|
scroll: T = !1
|
|
4496
4509
|
} = e;
|
|
4497
4510
|
return /* @__PURE__ */ o(
|
|
@@ -4511,7 +4524,7 @@ const Yi = (e) => {
|
|
|
4511
4524
|
$margin: g,
|
|
4512
4525
|
$padding: y,
|
|
4513
4526
|
$borderRadius: h,
|
|
4514
|
-
$boxSizing:
|
|
4527
|
+
$boxSizing: b,
|
|
4515
4528
|
$scroll: T,
|
|
4516
4529
|
children: n
|
|
4517
4530
|
}
|
|
@@ -4585,16 +4598,16 @@ const ol = A.div`
|
|
|
4585
4598
|
editionMode: f = "versioned",
|
|
4586
4599
|
withEditOption: g = "false",
|
|
4587
4600
|
justOneDecision: y
|
|
4588
|
-
} = e,
|
|
4589
|
-
return a ? /* @__PURE__ */
|
|
4590
|
-
/* @__PURE__ */
|
|
4591
|
-
/* @__PURE__ */
|
|
4601
|
+
} = e, b = !h || Object.values(h).every((T) => T.length === 0);
|
|
4602
|
+
return a ? /* @__PURE__ */ m(v, { direction: "column", gap: "12px", children: [
|
|
4603
|
+
/* @__PURE__ */ m(ol, { onClick: c, children: [
|
|
4604
|
+
/* @__PURE__ */ m(
|
|
4592
4605
|
v,
|
|
4593
4606
|
{
|
|
4594
4607
|
alignItems: "start",
|
|
4595
4608
|
justifyContent: "space-between",
|
|
4596
4609
|
children: [
|
|
4597
|
-
/* @__PURE__ */
|
|
4610
|
+
/* @__PURE__ */ m(v, { gap: "12px", children: [
|
|
4598
4611
|
!y && /* @__PURE__ */ o(il, { children: /* @__PURE__ */ o(
|
|
4599
4612
|
De,
|
|
4600
4613
|
{
|
|
@@ -4616,8 +4629,8 @@ const ol = A.div`
|
|
|
4616
4629
|
}
|
|
4617
4630
|
) })
|
|
4618
4631
|
] }),
|
|
4619
|
-
/* @__PURE__ */
|
|
4620
|
-
t && /* @__PURE__ */
|
|
4632
|
+
/* @__PURE__ */ m(v, { gap: "12px", children: [
|
|
4633
|
+
t && /* @__PURE__ */ m(G, { children: [
|
|
4621
4634
|
g && /* @__PURE__ */ o(
|
|
4622
4635
|
j,
|
|
4623
4636
|
{
|
|
@@ -4643,7 +4656,7 @@ const ol = A.div`
|
|
|
4643
4656
|
}
|
|
4644
4657
|
)
|
|
4645
4658
|
] }),
|
|
4646
|
-
/* @__PURE__ */ o(
|
|
4659
|
+
!y && /* @__PURE__ */ o(
|
|
4647
4660
|
j,
|
|
4648
4661
|
{
|
|
4649
4662
|
appearance: "dark",
|
|
@@ -4657,11 +4670,11 @@ const ol = A.div`
|
|
|
4657
4670
|
},
|
|
4658
4671
|
n.ruleName
|
|
4659
4672
|
),
|
|
4660
|
-
/* @__PURE__ */ o(v, { padding: "0 12px", children: /* @__PURE__ */ o(
|
|
4673
|
+
/* @__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
4674
|
] }),
|
|
4662
|
-
s && /* @__PURE__ */
|
|
4663
|
-
/* @__PURE__ */ o(
|
|
4664
|
-
!
|
|
4675
|
+
s && /* @__PURE__ */ m(G, { children: [
|
|
4676
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
4677
|
+
!b && /* @__PURE__ */ o(v, { direction: "column", gap: "20px", children: /* @__PURE__ */ o(v, { direction: "column", gap: "8px", children: Object.entries(h).map(
|
|
4665
4678
|
([T, S], E) => /* @__PURE__ */ o(
|
|
4666
4679
|
ze,
|
|
4667
4680
|
{
|
|
@@ -4670,7 +4683,7 @@ const ol = A.div`
|
|
|
4670
4683
|
borderRadius: "8px",
|
|
4671
4684
|
background: !0,
|
|
4672
4685
|
justifyContent: "center",
|
|
4673
|
-
children: /* @__PURE__ */
|
|
4686
|
+
children: /* @__PURE__ */ m(
|
|
4674
4687
|
Ae,
|
|
4675
4688
|
{
|
|
4676
4689
|
templateColumns: "39% 1fr",
|
|
@@ -4679,7 +4692,7 @@ const ol = A.div`
|
|
|
4679
4692
|
width: "100%",
|
|
4680
4693
|
children: [
|
|
4681
4694
|
/* @__PURE__ */ o(v, { width: "100%", justifyContent: "end", children: /* @__PURE__ */ o(
|
|
4682
|
-
|
|
4695
|
+
C,
|
|
4683
4696
|
{
|
|
4684
4697
|
type: "label",
|
|
4685
4698
|
size: "medium",
|
|
@@ -4689,15 +4702,15 @@ const ol = A.div`
|
|
|
4689
4702
|
}
|
|
4690
4703
|
) }),
|
|
4691
4704
|
/* @__PURE__ */ o(v, { direction: "column", gap: "4px", children: S.map(
|
|
4692
|
-
(D, N) => /* @__PURE__ */
|
|
4705
|
+
(D, N) => /* @__PURE__ */ m(
|
|
4693
4706
|
v,
|
|
4694
4707
|
{
|
|
4695
4708
|
direction: "row",
|
|
4696
4709
|
gap: "8px",
|
|
4697
4710
|
alignItems: "center",
|
|
4698
4711
|
children: [
|
|
4699
|
-
/* @__PURE__ */
|
|
4700
|
-
|
|
4712
|
+
/* @__PURE__ */ m(
|
|
4713
|
+
C,
|
|
4701
4714
|
{
|
|
4702
4715
|
type: "body",
|
|
4703
4716
|
size: "medium",
|
|
@@ -4736,17 +4749,17 @@ const ol = A.div`
|
|
|
4736
4749
|
T
|
|
4737
4750
|
)
|
|
4738
4751
|
) }) }),
|
|
4739
|
-
/* @__PURE__ */
|
|
4752
|
+
/* @__PURE__ */ m(sl, { children: [
|
|
4740
4753
|
/* @__PURE__ */ o(j, { appearance: "help", icon: /* @__PURE__ */ o(ra, {}), size: "16px" }),
|
|
4741
|
-
/* @__PURE__ */ o(
|
|
4754
|
+
/* @__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
4755
|
] })
|
|
4743
4756
|
] })
|
|
4744
|
-
] }) : /* @__PURE__ */
|
|
4745
|
-
/* @__PURE__ */
|
|
4757
|
+
] }) : /* @__PURE__ */ m(v, { justifyContent: "space-between", children: [
|
|
4758
|
+
/* @__PURE__ */ m(v, { alignItems: "center", gap: "8px", children: [
|
|
4746
4759
|
/* @__PURE__ */ o(be, { animated: !0, width: "150px" }),
|
|
4747
4760
|
/* @__PURE__ */ o(be, { animated: !0, width: "70px" })
|
|
4748
4761
|
] }),
|
|
4749
|
-
/* @__PURE__ */
|
|
4762
|
+
/* @__PURE__ */ m(v, { alignItems: "center", gap: "8px", children: [
|
|
4750
4763
|
/* @__PURE__ */ o(be, { animated: !0, width: "50px" }),
|
|
4751
4764
|
/* @__PURE__ */ o(fa, { animated: !0 })
|
|
4752
4765
|
] })
|
|
@@ -4865,137 +4878,137 @@ const ol = A.div`
|
|
|
4865
4878
|
justOneDecision: h = !1
|
|
4866
4879
|
} = e, g = U.useMemo(() => {
|
|
4867
4880
|
if (!n) return null;
|
|
4868
|
-
const { howToSetTheDecision: Y, decisionDataType:
|
|
4869
|
-
if (!(Y ===
|
|
4881
|
+
const { howToSetTheDecision: Y, decisionDataType: ee, value: _ } = n;
|
|
4882
|
+
if (!(Y === P.RANGE && ee === W.PERCENTAGE && _ && typeof _ == "object" && !Array.isArray(_) && "from" in _ && "to" in _))
|
|
4870
4883
|
return n;
|
|
4871
|
-
const { from:
|
|
4884
|
+
const { from: M, to: V } = _, ct = String(M).trim(), Ke = String(V).trim();
|
|
4872
4885
|
return {
|
|
4873
4886
|
...n,
|
|
4874
4887
|
i18nValue: `De ${ct}% a ${Ke}%`
|
|
4875
4888
|
};
|
|
4876
|
-
}, [n]) ?? n, y = !!(g != null && g.effectiveFrom),
|
|
4889
|
+
}, [n]) ?? n, y = !!(g != null && g.effectiveFrom), b = !!(g != null && g.validUntil), T = y ? {
|
|
4877
4890
|
element: {
|
|
4878
4891
|
labelName: "Vigencia desde:",
|
|
4879
4892
|
value: Ot(g.effectiveFrom),
|
|
4880
|
-
howToSetTheDecision:
|
|
4893
|
+
howToSetTheDecision: P.EQUAL,
|
|
4881
4894
|
decisionDataType: W.DATE
|
|
4882
4895
|
},
|
|
4883
4896
|
valueData: nt({
|
|
4884
4897
|
value: Ot(g.effectiveFrom),
|
|
4885
|
-
howToSetTheDecision:
|
|
4898
|
+
howToSetTheDecision: P.EQUAL,
|
|
4886
4899
|
decisionDataType: W.DATE
|
|
4887
4900
|
})
|
|
4888
|
-
} : null, S =
|
|
4901
|
+
} : null, S = b ? {
|
|
4889
4902
|
element: {
|
|
4890
4903
|
labelName: "Vigencia hasta:",
|
|
4891
4904
|
value: Ot(g.validUntil),
|
|
4892
|
-
howToSetTheDecision:
|
|
4905
|
+
howToSetTheDecision: P.EQUAL,
|
|
4893
4906
|
decisionDataType: W.DATE
|
|
4894
4907
|
},
|
|
4895
4908
|
valueData: nt({
|
|
4896
4909
|
value: Ot(g.validUntil),
|
|
4897
|
-
howToSetTheDecision:
|
|
4910
|
+
howToSetTheDecision: P.EQUAL,
|
|
4898
4911
|
decisionDataType: W.DATE
|
|
4899
4912
|
})
|
|
4900
|
-
} : null, E = (g == null ? void 0 : g.howToSetTheDecision) ||
|
|
4913
|
+
} : 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
4914
|
const Y = g.i18nValue;
|
|
4902
4915
|
if (D) {
|
|
4903
|
-
const { from: w } = g.value,
|
|
4916
|
+
const { from: w } = g.value, M = nt({
|
|
4904
4917
|
...g,
|
|
4905
|
-
howToSetTheDecision:
|
|
4918
|
+
howToSetTheDecision: P.EQUAL,
|
|
4906
4919
|
value: w
|
|
4907
4920
|
}), V = g.decisionDataType === W.PERCENTAGE ? "%" : "";
|
|
4908
|
-
return `Del ${
|
|
4921
|
+
return `Del ${M}${V}`.trim();
|
|
4909
4922
|
}
|
|
4910
|
-
const
|
|
4923
|
+
const ee = nt(
|
|
4911
4924
|
g
|
|
4912
4925
|
);
|
|
4913
|
-
let
|
|
4914
|
-
return (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof
|
|
4915
|
-
})()),
|
|
4926
|
+
let _ = Y ?? ee;
|
|
4927
|
+
return (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof _ == "string" && !_.includes("%") && (_ = `${_}%`), (g == null ? void 0 : g.decisionDataType) === W.PERCENTAGE && typeof _ == "number" && (_ = `${_}%`), _;
|
|
4928
|
+
})()), k = g ? {
|
|
4916
4929
|
labelName: t && g.labelName || "",
|
|
4917
4930
|
decisionDataType: g.decisionDataType || W.ALPHABETICAL,
|
|
4918
4931
|
value: I,
|
|
4919
|
-
howToSetTheDecision: g.i18nValue || D ?
|
|
4932
|
+
howToSetTheDecision: g.i18nValue || D ? P.EQUAL : E,
|
|
4920
4933
|
validUntil: g.validUntil
|
|
4921
|
-
} : null,
|
|
4934
|
+
} : null, O = U.useMemo(
|
|
4922
4935
|
() => g ? Pe(g) : {},
|
|
4923
4936
|
[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"] =
|
|
4937
|
+
), 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(() => {
|
|
4938
|
+
const Y = {}, ee = O[K] || [], _ = O["group-primary"] || [];
|
|
4939
|
+
Y["group-primary"] = K === "group-primary" ? _ : [...ee, ..._];
|
|
4927
4940
|
for (const w of X)
|
|
4928
|
-
!w || w ===
|
|
4929
|
-
for (const w of Object.keys(
|
|
4930
|
-
w === "group-primary" || w ===
|
|
4941
|
+
!w || w === K || w !== "group-primary" && O[w] && (Y[w] = O[w]);
|
|
4942
|
+
for (const w of Object.keys(O))
|
|
4943
|
+
w === "group-primary" || w === K || w in Y || (Y[w] = O[w]);
|
|
4931
4944
|
return Y;
|
|
4932
|
-
}, [
|
|
4945
|
+
}, [O, K, X]), pe = U.useMemo(() => {
|
|
4933
4946
|
const Y = {};
|
|
4934
|
-
return Object.keys(
|
|
4935
|
-
const
|
|
4936
|
-
|
|
4937
|
-
let
|
|
4938
|
-
w.timeUnit && w.labelName && (
|
|
4947
|
+
return Object.keys(oe).forEach((ee) => {
|
|
4948
|
+
const _ = oe[ee];
|
|
4949
|
+
_ && Array.isArray(_) ? Y[ee] = _.map((w) => {
|
|
4950
|
+
let M = w.labelName;
|
|
4951
|
+
w.timeUnit && w.labelName && (M = pn(w.labelName, w.timeUnit));
|
|
4939
4952
|
let V = w.value;
|
|
4940
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) ===
|
|
4953
|
+
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
4954
|
const { from: Ge, to: et } = w.value, Et = String(Ge).trim(), R = String(et).trim();
|
|
4942
4955
|
return V = `De ${Et}% a ${R}%`, {
|
|
4943
4956
|
...w,
|
|
4944
|
-
labelName:
|
|
4957
|
+
labelName: M,
|
|
4945
4958
|
value: V,
|
|
4946
|
-
howToSetTheCondition:
|
|
4959
|
+
howToSetTheCondition: P.EQUAL
|
|
4947
4960
|
};
|
|
4948
4961
|
}
|
|
4949
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) ===
|
|
4962
|
+
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
4963
|
const Ge = w.value;
|
|
4951
4964
|
return V = `Mayor a ${String(Ge).trim()}%`, {
|
|
4952
4965
|
...w,
|
|
4953
|
-
labelName:
|
|
4966
|
+
labelName: M,
|
|
4954
4967
|
value: V,
|
|
4955
|
-
howToSetTheCondition:
|
|
4968
|
+
howToSetTheCondition: P.EQUAL
|
|
4956
4969
|
};
|
|
4957
4970
|
}
|
|
4958
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) ===
|
|
4971
|
+
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
4972
|
const Ge = w.value;
|
|
4960
4973
|
return V = `Menor a ${String(Ge).trim()}%`, {
|
|
4961
4974
|
...w,
|
|
4962
|
-
labelName:
|
|
4975
|
+
labelName: M,
|
|
4963
4976
|
value: V,
|
|
4964
|
-
howToSetTheCondition:
|
|
4977
|
+
howToSetTheCondition: P.EQUAL
|
|
4965
4978
|
};
|
|
4966
4979
|
}
|
|
4967
4980
|
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
4981
|
w.i18nValue,
|
|
4969
|
-
w.i18nValue ?
|
|
4982
|
+
w.i18nValue ? P.EQUAL : w.howToSetTheCondition
|
|
4970
4983
|
) : V = Yn(
|
|
4971
4984
|
w.value,
|
|
4972
4985
|
w.howToSetTheCondition
|
|
4973
4986
|
)), (w == null ? void 0 : w.conditionDataType) === W.PERCENTAGE && typeof V == "string" && !V.includes("%") && (V = `${V}%`), {
|
|
4974
4987
|
...w,
|
|
4975
|
-
labelName:
|
|
4988
|
+
labelName: M,
|
|
4976
4989
|
value: V,
|
|
4977
|
-
howToSetTheCondition: w.i18nValue ?
|
|
4990
|
+
howToSetTheCondition: w.i18nValue ? P.EQUAL : w.howToSetTheCondition
|
|
4978
4991
|
};
|
|
4979
|
-
}) : Y[
|
|
4992
|
+
}) : Y[ee] = _;
|
|
4980
4993
|
}), Y;
|
|
4981
|
-
}, [
|
|
4994
|
+
}, [oe]), Z = Fr(
|
|
4982
4995
|
pe,
|
|
4983
4996
|
(Y) => !Y.hidden
|
|
4984
4997
|
), F = U.useMemo(() => {
|
|
4985
|
-
const Y = Object.entries(
|
|
4986
|
-
([
|
|
4987
|
-
),
|
|
4988
|
-
for (const [
|
|
4989
|
-
w.length > 0 && (
|
|
4990
|
-
return
|
|
4991
|
-
}, [
|
|
4998
|
+
const Y = Object.entries(Z).map(
|
|
4999
|
+
([_, w]) => [_, w.filter(ul)]
|
|
5000
|
+
), ee = {};
|
|
5001
|
+
for (const [_, w] of Y)
|
|
5002
|
+
w.length > 0 && (ee[_] = w);
|
|
5003
|
+
return ee;
|
|
5004
|
+
}, [Z]), z = !!(!r && g && k), Se = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
|
|
4992
5005
|
return /* @__PURE__ */ o(
|
|
4993
5006
|
dl,
|
|
4994
5007
|
{
|
|
4995
5008
|
controls: d,
|
|
4996
5009
|
decision: g,
|
|
4997
|
-
decisionMapper:
|
|
4998
|
-
loading:
|
|
5010
|
+
decisionMapper: k,
|
|
5011
|
+
loading: z,
|
|
4999
5012
|
tagLabel: Se,
|
|
5000
5013
|
isOpen: i,
|
|
5001
5014
|
onToggle: s,
|
|
@@ -5236,12 +5249,12 @@ const gl = A.div`
|
|
|
5236
5249
|
"The portal node is not defined. This can occur when the specific node used to render the portal has not been defined correctly."
|
|
5237
5250
|
);
|
|
5238
5251
|
return xt(
|
|
5239
|
-
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Tl, { $size: s, children: /* @__PURE__ */
|
|
5240
|
-
/* @__PURE__ */
|
|
5241
|
-
/* @__PURE__ */
|
|
5242
|
-
/* @__PURE__ */
|
|
5252
|
+
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Tl, { $size: s, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
5253
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
5254
|
+
/* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
5255
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "8px", children: [
|
|
5243
5256
|
/* @__PURE__ */ o(
|
|
5244
|
-
|
|
5257
|
+
C,
|
|
5245
5258
|
{
|
|
5246
5259
|
type: "title",
|
|
5247
5260
|
size: "medium",
|
|
@@ -5250,11 +5263,11 @@ const gl = A.div`
|
|
|
5250
5263
|
children: i
|
|
5251
5264
|
}
|
|
5252
5265
|
),
|
|
5253
|
-
/* @__PURE__ */ o(
|
|
5266
|
+
/* @__PURE__ */ o(C, { size: "medium", appearance: "gray", children: n })
|
|
5254
5267
|
] }),
|
|
5255
5268
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: a })
|
|
5256
5269
|
] }),
|
|
5257
|
-
/* @__PURE__ */ o(
|
|
5270
|
+
/* @__PURE__ */ o(re, { dashed: !0 })
|
|
5258
5271
|
] }),
|
|
5259
5272
|
t
|
|
5260
5273
|
] }) }) }) }),
|
|
@@ -5289,7 +5302,7 @@ const gl = A.div`
|
|
|
5289
5302
|
if (t !== "")
|
|
5290
5303
|
return e;
|
|
5291
5304
|
}, Cl = (e) => ({
|
|
5292
|
-
schema:
|
|
5305
|
+
schema: ae({
|
|
5293
5306
|
from: Ee().transform(Jn).typeError(Lt).required(Lt).min(0, Qn),
|
|
5294
5307
|
to: Ee().transform(Jn).typeError(Lt).required(Lt).min(0, Qn)
|
|
5295
5308
|
}).test("from<=to", Xn, function(t) {
|
|
@@ -5307,7 +5320,7 @@ const gl = A.div`
|
|
|
5307
5320
|
min: e = 0,
|
|
5308
5321
|
max: t,
|
|
5309
5322
|
pathPrefix: n = ""
|
|
5310
|
-
} = {}) =>
|
|
5323
|
+
} = {}) => ae({
|
|
5311
5324
|
from: Ee().transform(er).typeError(Rt).required(Rt).min(e, Zn).max(t ?? Number.POSITIVE_INFINITY),
|
|
5312
5325
|
to: Ee().transform(er).typeError(Rt).required(Rt).min(e, Zn).max(t ?? Number.POSITIVE_INFINITY)
|
|
5313
5326
|
}).test("from<=to", Kn, function(r) {
|
|
@@ -5334,7 +5347,7 @@ const gl = A.div`
|
|
|
5334
5347
|
schema: Dl({ min: 0, max: 100 }),
|
|
5335
5348
|
value: n
|
|
5336
5349
|
} : {
|
|
5337
|
-
schema:
|
|
5350
|
+
schema: ae({
|
|
5338
5351
|
from: Re().required("Requerido"),
|
|
5339
5352
|
to: Re().required("Requerido")
|
|
5340
5353
|
}),
|
|
@@ -5374,7 +5387,7 @@ const gl = A.div`
|
|
|
5374
5387
|
if (t == null || String(t).trim() === "") return;
|
|
5375
5388
|
const n = Number(t);
|
|
5376
5389
|
return Number.isNaN(n) ? void 0 : n;
|
|
5377
|
-
}, El =
|
|
5390
|
+
}, El = ae({
|
|
5378
5391
|
from: gn,
|
|
5379
5392
|
to: gn
|
|
5380
5393
|
}).test("from<=to", rr, function(e) {
|
|
@@ -5394,7 +5407,7 @@ const gl = A.div`
|
|
|
5394
5407
|
return Object.keys(t).length > 0;
|
|
5395
5408
|
}
|
|
5396
5409
|
return !1;
|
|
5397
|
-
}, Al = (e) =>
|
|
5410
|
+
}, Al = (e) => ae({
|
|
5398
5411
|
value: e.required()
|
|
5399
5412
|
});
|
|
5400
5413
|
function $l({
|
|
@@ -5408,8 +5421,8 @@ function $l({
|
|
|
5408
5421
|
Object.entries(r).map(([h, f]) => {
|
|
5409
5422
|
const g = {};
|
|
5410
5423
|
return f.forEach((y) => {
|
|
5411
|
-
const
|
|
5412
|
-
g[
|
|
5424
|
+
const b = y.conditionName, T = y.value !== void 0 && y.value !== null && y.value !== "", S = y.howToSetTheCondition === me.LIST_OF_VALUES_MULTI ? [] : "";
|
|
5425
|
+
g[b] = {
|
|
5413
5426
|
...y,
|
|
5414
5427
|
value: T ? y.value : S
|
|
5415
5428
|
};
|
|
@@ -5417,10 +5430,10 @@ function $l({
|
|
|
5417
5430
|
})
|
|
5418
5431
|
), s = Object.entries(r).map(
|
|
5419
5432
|
([h, f]) => {
|
|
5420
|
-
const g = i[h] || {}, y = f.map((
|
|
5421
|
-
const T =
|
|
5433
|
+
const g = i[h] || {}, y = f.map((b) => {
|
|
5434
|
+
const T = b.conditionName, S = g[T], E = S && typeof S == "object" && "value" in S ? S.value : b.value;
|
|
5422
5435
|
return {
|
|
5423
|
-
...
|
|
5436
|
+
...b,
|
|
5424
5437
|
value: E
|
|
5425
5438
|
};
|
|
5426
5439
|
});
|
|
@@ -5453,50 +5466,50 @@ function $l({
|
|
|
5453
5466
|
}),
|
|
5454
5467
|
conditionsThatEstablishesTheDecision: ft((h, { parent: f }) => {
|
|
5455
5468
|
const g = Pe(e) || {};
|
|
5456
|
-
if (Object.keys(g).length === 0) return
|
|
5457
|
-
const y = f == null ? void 0 : f.conditionsThatEstablishesTheDecision,
|
|
5469
|
+
if (Object.keys(g).length === 0) return ae().shape({});
|
|
5470
|
+
const y = f == null ? void 0 : f.conditionsThatEstablishesTheDecision, b = !!(f != null && f.toggleNone);
|
|
5458
5471
|
let T = !1;
|
|
5459
5472
|
if (y && typeof y == "object" && (T = Object.values(y).some(
|
|
5460
5473
|
(E) => E && typeof E == "object" && Object.values(E).some(
|
|
5461
5474
|
(D) => rn(D)
|
|
5462
5475
|
)
|
|
5463
|
-
)),
|
|
5464
|
-
if (!T) return
|
|
5476
|
+
)), b && !T) return ae().shape({});
|
|
5477
|
+
if (!T) return ae().shape({});
|
|
5465
5478
|
const S = {};
|
|
5466
5479
|
for (const [E, D] of Object.entries(g)) {
|
|
5467
5480
|
const N = y == null ? void 0 : y[E], I = {};
|
|
5468
|
-
D.forEach((
|
|
5469
|
-
const
|
|
5470
|
-
if (!rn(
|
|
5471
|
-
const X = fn(
|
|
5472
|
-
|
|
5481
|
+
D.forEach((k) => {
|
|
5482
|
+
const O = N == null ? void 0 : N[k.conditionName];
|
|
5483
|
+
if (!rn(O)) return;
|
|
5484
|
+
const X = fn(O), oe = nr(
|
|
5485
|
+
k.howToSetTheCondition
|
|
5473
5486
|
)(
|
|
5474
5487
|
X,
|
|
5475
|
-
|
|
5488
|
+
k.conditionDataType
|
|
5476
5489
|
).schema;
|
|
5477
|
-
I[
|
|
5478
|
-
}), S[E] =
|
|
5490
|
+
I[k.conditionName] = Al(oe);
|
|
5491
|
+
}), S[E] = ae(I);
|
|
5479
5492
|
}
|
|
5480
|
-
return
|
|
5493
|
+
return ae(S);
|
|
5481
5494
|
})
|
|
5482
5495
|
};
|
|
5483
5496
|
n && (d.effectiveFrom = mt().required(
|
|
5484
5497
|
"Se requiere la fecha de vigencia desde"
|
|
5485
5498
|
));
|
|
5486
|
-
const p =
|
|
5499
|
+
const p = ae(d);
|
|
5487
5500
|
return l = Dn({
|
|
5488
5501
|
initialValues: c,
|
|
5489
5502
|
validationSchema: p,
|
|
5490
5503
|
validateOnBlur: !0,
|
|
5491
5504
|
onSubmit: (h) => {
|
|
5492
5505
|
const f = Object.fromEntries(
|
|
5493
|
-
Object.entries(r).map(([y,
|
|
5506
|
+
Object.entries(r).map(([y, b]) => {
|
|
5494
5507
|
var E;
|
|
5495
|
-
const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S =
|
|
5496
|
-
const N = D.conditionName, I = T[N],
|
|
5508
|
+
const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S = b.map((D) => {
|
|
5509
|
+
const N = D.conditionName, I = T[N], k = fn(I);
|
|
5497
5510
|
return {
|
|
5498
5511
|
...D,
|
|
5499
|
-
value:
|
|
5512
|
+
value: k
|
|
5500
5513
|
};
|
|
5501
5514
|
}).filter((D) => rn(D.value));
|
|
5502
5515
|
return [y, S];
|
|
@@ -5519,12 +5532,12 @@ function $l({
|
|
|
5519
5532
|
if (h)
|
|
5520
5533
|
l.setFieldValue(y, void 0);
|
|
5521
5534
|
else {
|
|
5522
|
-
const
|
|
5535
|
+
const b = g.howToSetTheCondition === me.LIST_OF_VALUES_MULTI ? [] : "";
|
|
5523
5536
|
l.setFieldValue(
|
|
5524
5537
|
y,
|
|
5525
5538
|
{
|
|
5526
5539
|
...g,
|
|
5527
|
-
value:
|
|
5540
|
+
value: b
|
|
5528
5541
|
},
|
|
5529
5542
|
!1
|
|
5530
5543
|
);
|
|
@@ -5584,10 +5597,10 @@ const Il = A.div`
|
|
|
5584
5597
|
statusEnd: p = "pending"
|
|
5585
5598
|
} = e, [u, h] = Q(i), [f, g] = Q(s), y = (S) => {
|
|
5586
5599
|
h(S.target.value), t(S);
|
|
5587
|
-
},
|
|
5600
|
+
}, b = (S) => {
|
|
5588
5601
|
g(S.target.value), n(S);
|
|
5589
5602
|
}, T = Te("(max-width: 400px)");
|
|
5590
|
-
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "20px", children: /* @__PURE__ */
|
|
5603
|
+
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "20px", children: /* @__PURE__ */ m(
|
|
5591
5604
|
v,
|
|
5592
5605
|
{
|
|
5593
5606
|
direction: T ? "column" : "row",
|
|
@@ -5614,7 +5627,7 @@ const Il = A.div`
|
|
|
5614
5627
|
{
|
|
5615
5628
|
id: "dateEnd",
|
|
5616
5629
|
label: a,
|
|
5617
|
-
onChange:
|
|
5630
|
+
onChange: b,
|
|
5618
5631
|
value: f,
|
|
5619
5632
|
size: "compact",
|
|
5620
5633
|
status: p,
|
|
@@ -5643,14 +5656,14 @@ const Il = A.div`
|
|
|
5643
5656
|
showRedefineConfirm: f,
|
|
5644
5657
|
onOpenRedefineConfirm: g,
|
|
5645
5658
|
onCloseRedefineConfirm: y,
|
|
5646
|
-
onConfirmRedefine:
|
|
5659
|
+
onConfirmRedefine: b,
|
|
5647
5660
|
withTerm: T,
|
|
5648
5661
|
decisionNumber: S
|
|
5649
5662
|
} = 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__ */
|
|
5663
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
5664
|
+
/* @__PURE__ */ o("form", { onSubmit: r.handleSubmit, autoComplete: "off", children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", width: "100%", children: [
|
|
5665
|
+
/* @__PURE__ */ o(Xe, { legend: `Decisión N° ${S}`, spacing: "wide", children: /* @__PURE__ */ m(v, { direction: "column", width: "100%", gap: "16px", children: [
|
|
5666
|
+
/* @__PURE__ */ m(
|
|
5654
5667
|
v,
|
|
5655
5668
|
{
|
|
5656
5669
|
justifyContent: "center",
|
|
@@ -5662,7 +5675,7 @@ const Il = A.div`
|
|
|
5662
5675
|
formik: r,
|
|
5663
5676
|
isDecision: !0
|
|
5664
5677
|
}),
|
|
5665
|
-
a.timeUnit && /* @__PURE__ */ o(
|
|
5678
|
+
a.timeUnit && /* @__PURE__ */ o(C, { as: "span", size: "medium", padding: "0 0 0 16px", children: a.timeUnit })
|
|
5666
5679
|
]
|
|
5667
5680
|
}
|
|
5668
5681
|
),
|
|
@@ -5682,7 +5695,7 @@ const Il = A.div`
|
|
|
5682
5695
|
}
|
|
5683
5696
|
) })
|
|
5684
5697
|
] }) }),
|
|
5685
|
-
n && n.length > 0 && /* @__PURE__ */ o(Xe, { legend: "Condiciones a evaluar", spacing: "wide", children: /* @__PURE__ */
|
|
5698
|
+
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
5699
|
/* @__PURE__ */ o(
|
|
5687
5700
|
ma,
|
|
5688
5701
|
{
|
|
@@ -5691,7 +5704,7 @@ const Il = A.div`
|
|
|
5691
5704
|
selectedTab: t
|
|
5692
5705
|
}
|
|
5693
5706
|
),
|
|
5694
|
-
/* @__PURE__ */
|
|
5707
|
+
/* @__PURE__ */ m(v, { justifyContent: "flex-end", alignItems: "center", children: [
|
|
5695
5708
|
/* @__PURE__ */ o(
|
|
5696
5709
|
j,
|
|
5697
5710
|
{
|
|
@@ -5716,8 +5729,8 @@ const Il = A.div`
|
|
|
5716
5729
|
] }),
|
|
5717
5730
|
/* @__PURE__ */ o(v, { direction: "column", gap: "20px", children: n == null ? void 0 : n.map((E) => {
|
|
5718
5731
|
const D = E.__scopedName ?? `${E.groupKey}.${E.conditionName}`;
|
|
5719
|
-
return /* @__PURE__ */
|
|
5720
|
-
/* @__PURE__ */
|
|
5732
|
+
return /* @__PURE__ */ m(v, { gap: "16px", alignItems: "center", children: [
|
|
5733
|
+
/* @__PURE__ */ m(Il, { children: [
|
|
5721
5734
|
/* @__PURE__ */ o(
|
|
5722
5735
|
Pn,
|
|
5723
5736
|
{
|
|
@@ -5725,7 +5738,7 @@ const Il = A.div`
|
|
|
5725
5738
|
formik: r
|
|
5726
5739
|
}
|
|
5727
5740
|
),
|
|
5728
|
-
E.timeUnit && /* @__PURE__ */ o(
|
|
5741
|
+
E.timeUnit && /* @__PURE__ */ o(C, { as: "span", size: "medium", padding: "0 0 0 16px", children: E.__unitAfterInput })
|
|
5729
5742
|
] }),
|
|
5730
5743
|
/* @__PURE__ */ o(
|
|
5731
5744
|
j,
|
|
@@ -5738,9 +5751,9 @@ const Il = A.div`
|
|
|
5738
5751
|
)
|
|
5739
5752
|
] }, D);
|
|
5740
5753
|
}) }),
|
|
5741
|
-
l && /* @__PURE__ */ o(
|
|
5754
|
+
l && /* @__PURE__ */ o(C, { type: "label", size: "medium", appearance: "danger", children: "Existen errores en el formulario, por favor revísalos." })
|
|
5742
5755
|
] }) }),
|
|
5743
|
-
/* @__PURE__ */
|
|
5756
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
|
|
5744
5757
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: i, variant: "outlined", children: "Cancelar" }),
|
|
5745
5758
|
/* @__PURE__ */ o(J, { type: "submit", children: "Confirmar" })
|
|
5746
5759
|
] })
|
|
@@ -5752,9 +5765,9 @@ const Il = A.div`
|
|
|
5752
5765
|
title: "Redefinir la condición",
|
|
5753
5766
|
onCloseModal: y,
|
|
5754
5767
|
size: "600px",
|
|
5755
|
-
children: /* @__PURE__ */
|
|
5756
|
-
/* @__PURE__ */ o(
|
|
5757
|
-
/* @__PURE__ */
|
|
5768
|
+
children: /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
|
|
5769
|
+
/* @__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 ." }),
|
|
5770
|
+
/* @__PURE__ */ m(v, { justifyContent: "end", gap: "12px", children: [
|
|
5758
5771
|
/* @__PURE__ */ o(
|
|
5759
5772
|
J,
|
|
5760
5773
|
{
|
|
@@ -5766,7 +5779,7 @@ const Il = A.div`
|
|
|
5766
5779
|
children: "Cancelar"
|
|
5767
5780
|
}
|
|
5768
5781
|
),
|
|
5769
|
-
/* @__PURE__ */ o(J, { type: "button", onClick:
|
|
5782
|
+
/* @__PURE__ */ o(J, { type: "button", onClick: b, cursorHover: !0, children: "Confirmar" })
|
|
5770
5783
|
] })
|
|
5771
5784
|
] })
|
|
5772
5785
|
}
|
|
@@ -5774,14 +5787,14 @@ const Il = A.div`
|
|
|
5774
5787
|
] });
|
|
5775
5788
|
}, Ll = (e, t) => e === "group-primary" ? "Condición principal" : `Condición alterna N° ${String(t).padStart(2, "0")}`, ut = (e) => {
|
|
5776
5789
|
switch (e) {
|
|
5777
|
-
case
|
|
5790
|
+
case P.LIST_OF_VALUES_MULTI:
|
|
5778
5791
|
return [];
|
|
5779
|
-
case
|
|
5792
|
+
case P.RANGE:
|
|
5780
5793
|
return "";
|
|
5781
|
-
case
|
|
5782
|
-
case
|
|
5783
|
-
case
|
|
5784
|
-
case
|
|
5794
|
+
case P.EQUAL:
|
|
5795
|
+
case P.GREATER_THAN:
|
|
5796
|
+
case P.LESS_THAN:
|
|
5797
|
+
case P.LIST_OF_VALUES:
|
|
5785
5798
|
default:
|
|
5786
5799
|
return "";
|
|
5787
5800
|
}
|
|
@@ -5815,13 +5828,13 @@ const Il = A.div`
|
|
|
5815
5828
|
}), u = s ?? t, h = Pe(u), f = Pe(t), g = Fr(
|
|
5816
5829
|
f,
|
|
5817
5830
|
(R) => !R.hidden
|
|
5818
|
-
), y = Object.keys(g),
|
|
5819
|
-
...y.filter((R) => R ===
|
|
5820
|
-
...y.filter((R) => R !==
|
|
5831
|
+
), y = Object.keys(g), b = y.includes("group-primary") && y.length > 0 ? "group-primary" : y[0], T = b != null ? [
|
|
5832
|
+
...y.filter((R) => R === b),
|
|
5833
|
+
...y.filter((R) => R !== b)
|
|
5821
5834
|
] : [], S = {};
|
|
5822
5835
|
let E = 1;
|
|
5823
5836
|
const D = T.map((R) => {
|
|
5824
|
-
const B = R ===
|
|
5837
|
+
const B = R === b, H = B ? "mainCondition" : `alternateCondition-${E++}`;
|
|
5825
5838
|
return S[H] = R, {
|
|
5826
5839
|
id: H,
|
|
5827
5840
|
label: B ? "Condición principal" : Ll(R, Number(H.split("-").at(-1))),
|
|
@@ -5829,26 +5842,26 @@ const Il = A.div`
|
|
|
5829
5842
|
};
|
|
5830
5843
|
}), [N, I] = U.useState(
|
|
5831
5844
|
((et = D[0]) == null ? void 0 : et.id) ?? "mainCondition"
|
|
5832
|
-
),
|
|
5845
|
+
), k = (R) => I(R), O = S[N] ?? b ?? "group-primary";
|
|
5833
5846
|
U.useEffect(() => {
|
|
5834
|
-
var
|
|
5835
|
-
const R = (
|
|
5847
|
+
var ie;
|
|
5848
|
+
const R = (ie = d.values) == null ? void 0 : ie.conditionsThatEstablishesTheDecision;
|
|
5836
5849
|
let B = !1;
|
|
5837
5850
|
if (R && typeof R == "object" && (B = Object.values(R).some(
|
|
5838
|
-
(
|
|
5851
|
+
(le) => le && typeof le == "object" && Object.keys(le).length > 0
|
|
5839
5852
|
)), B) return;
|
|
5840
5853
|
const H = Pe(t);
|
|
5841
5854
|
if (!H || Object.keys(H).length === 0)
|
|
5842
5855
|
return;
|
|
5843
5856
|
const q = Object.fromEntries(
|
|
5844
|
-
Object.entries(H).map(([
|
|
5857
|
+
Object.entries(H).map(([le, te]) => {
|
|
5845
5858
|
const _e = Object.fromEntries(
|
|
5846
|
-
|
|
5859
|
+
te.map((Ce) => {
|
|
5847
5860
|
const $e = tt(Ce.howToSetTheCondition), Be = Ce.value ?? ut($e);
|
|
5848
5861
|
return [Ce.conditionName, Be];
|
|
5849
5862
|
})
|
|
5850
5863
|
);
|
|
5851
|
-
return [
|
|
5864
|
+
return [le, _e];
|
|
5852
5865
|
})
|
|
5853
5866
|
);
|
|
5854
5867
|
d.setFieldValue(
|
|
@@ -5857,18 +5870,18 @@ const Il = A.div`
|
|
|
5857
5870
|
!1
|
|
5858
5871
|
);
|
|
5859
5872
|
}, [t]), U.useEffect(() => {
|
|
5860
|
-
var
|
|
5861
|
-
const R = (
|
|
5873
|
+
var te;
|
|
5874
|
+
const R = (te = d.values) == null ? void 0 : te.conditionsThatEstablishesTheDecision;
|
|
5862
5875
|
if (!R || typeof R != "object") return;
|
|
5863
5876
|
const B = Pe(u), H = Object.entries(R).map(
|
|
5864
5877
|
([_e, Ce]) => {
|
|
5865
5878
|
const $e = B[_e] || [], Be = Object.keys(Ce).map((Me) => {
|
|
5866
|
-
const
|
|
5867
|
-
he.howToSetTheCondition ?? (
|
|
5868
|
-
), At = he.value ?? ut(Xt), $t =
|
|
5879
|
+
const ne = Ce[Me], he = $e.find((Zr) => Zr.conditionName === Me) || {}, Xt = tt(
|
|
5880
|
+
he.howToSetTheCondition ?? (ne == null ? void 0 : ne.howToSetTheCondition)
|
|
5881
|
+
), At = he.value ?? ut(Xt), $t = ne && typeof ne == "object" && "value" in ne ? ne.value : ne;
|
|
5869
5882
|
return {
|
|
5870
5883
|
...he,
|
|
5871
|
-
...typeof
|
|
5884
|
+
...typeof ne == "object" && !Array.isArray(ne) ? ne : {},
|
|
5872
5885
|
conditionName: Me,
|
|
5873
5886
|
value: $t !== void 0 ? $t : At
|
|
5874
5887
|
};
|
|
@@ -5878,45 +5891,45 @@ const Il = A.div`
|
|
|
5878
5891
|
conditionsThatEstablishesTheDecision: Be
|
|
5879
5892
|
};
|
|
5880
5893
|
}
|
|
5881
|
-
), q = d.values.conditionGroups,
|
|
5882
|
-
|
|
5894
|
+
), q = d.values.conditionGroups, ie = JSON.stringify(H), le = JSON.stringify(q ?? []);
|
|
5895
|
+
ie !== le && d.setFieldValue("conditionGroups", H, !1);
|
|
5883
5896
|
}, [(Et = d.values) == null ? void 0 : Et.conditionsThatEstablishesTheDecision, u]);
|
|
5884
5897
|
const X = U.useMemo(() => {
|
|
5885
|
-
const R = Object.keys(g), H = (
|
|
5886
|
-
...R.filter((q) => q ===
|
|
5887
|
-
...R.filter((q) => q !==
|
|
5898
|
+
const R = Object.keys(g), H = (b != null ? [
|
|
5899
|
+
...R.filter((q) => q === b),
|
|
5900
|
+
...R.filter((q) => q !== b)
|
|
5888
5901
|
] : R).map((q) => {
|
|
5889
|
-
const
|
|
5890
|
-
const Ce = _e === 0, $e = tt(
|
|
5891
|
-
label:
|
|
5902
|
+
const le = (g[q] ?? []).map((te, _e) => {
|
|
5903
|
+
const Ce = _e === 0, $e = tt(te.howToSetTheCondition), Be = kr({
|
|
5904
|
+
label: te.labelName || "",
|
|
5892
5905
|
howToSet: $e,
|
|
5893
5906
|
isFirst: Ce
|
|
5894
|
-
}), Me =
|
|
5907
|
+
}), Me = te.timeUnit ? pn("", te.timeUnit, !0).trim() : "", ne = `${q}.${te.conditionName}`, he = Rl(
|
|
5895
5908
|
d.values,
|
|
5896
5909
|
q,
|
|
5897
|
-
|
|
5910
|
+
te.conditionName
|
|
5898
5911
|
), Xt = Fl(
|
|
5899
5912
|
d.values,
|
|
5900
5913
|
q,
|
|
5901
|
-
|
|
5914
|
+
te.conditionName
|
|
5902
5915
|
), At = he !== void 0 ? he : Xt, $t = At !== void 0 ? At : ut($e);
|
|
5903
5916
|
return {
|
|
5904
|
-
...
|
|
5905
|
-
__originalConditionName:
|
|
5917
|
+
...te,
|
|
5918
|
+
__originalConditionName: te.conditionName,
|
|
5906
5919
|
__groupKey: q,
|
|
5907
5920
|
__howToSet: $e,
|
|
5908
|
-
__scopedName:
|
|
5909
|
-
conditionName:
|
|
5921
|
+
__scopedName: ne,
|
|
5922
|
+
conditionName: te.conditionName,
|
|
5910
5923
|
groupKey: q,
|
|
5911
5924
|
labelName: Be,
|
|
5912
5925
|
__unitAfterInput: Me,
|
|
5913
5926
|
value: $t
|
|
5914
5927
|
};
|
|
5915
5928
|
});
|
|
5916
|
-
return [q,
|
|
5929
|
+
return [q, le];
|
|
5917
5930
|
});
|
|
5918
5931
|
return Object.fromEntries(H);
|
|
5919
|
-
}, [g, d.values,
|
|
5932
|
+
}, [g, d.values, b]), K = X[O] ?? [], oe = X[b ?? "group-primary"] ?? [], pe = {
|
|
5920
5933
|
decisionDataType: t.decisionDataType,
|
|
5921
5934
|
howToSetTheCondition: t.howToSetTheDecision,
|
|
5922
5935
|
labelName: t.labelName,
|
|
@@ -5924,7 +5937,7 @@ const Il = A.div`
|
|
|
5924
5937
|
listOfPossibleValues: t.listOfPossibleValues,
|
|
5925
5938
|
ruleName: t.ruleName,
|
|
5926
5939
|
timeUnit: t.timeUnit ? pn("", t.timeUnit, !0).trim() : ""
|
|
5927
|
-
},
|
|
5940
|
+
}, 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
5941
|
const R = d.errors.conditionsThatEstablishesTheDecision;
|
|
5929
5942
|
if (!R) return;
|
|
5930
5943
|
if (typeof R == "string") return R;
|
|
@@ -5933,13 +5946,13 @@ const Il = A.div`
|
|
|
5933
5946
|
if (typeof H == "string") return H;
|
|
5934
5947
|
if (Array.isArray(H))
|
|
5935
5948
|
for (const q of H) {
|
|
5936
|
-
const
|
|
5937
|
-
if (
|
|
5949
|
+
const ie = B(q);
|
|
5950
|
+
if (ie) return ie;
|
|
5938
5951
|
}
|
|
5939
5952
|
else if (typeof H == "object")
|
|
5940
5953
|
for (const q of Object.values(H)) {
|
|
5941
|
-
const
|
|
5942
|
-
if (
|
|
5954
|
+
const ie = B(q);
|
|
5955
|
+
if (ie) return ie;
|
|
5943
5956
|
}
|
|
5944
5957
|
}
|
|
5945
5958
|
};
|
|
@@ -5947,66 +5960,66 @@ const Il = A.div`
|
|
|
5947
5960
|
}, [d.errors.conditionsThatEstablishesTheDecision]), Ve = d.submitCount > 0 && !!xe, Y = (R) => {
|
|
5948
5961
|
const B = (R == null ? void 0 : R.__howToSet) ?? tt(R == null ? void 0 : R.howToSetTheCondition);
|
|
5949
5962
|
return ut(B);
|
|
5950
|
-
},
|
|
5951
|
-
var
|
|
5952
|
-
const q = `conditionsThatEstablishesTheDecision.${R}.${B}`,
|
|
5953
|
-
|
|
5954
|
-
const
|
|
5955
|
-
if (Array.isArray(
|
|
5956
|
-
const Me =
|
|
5963
|
+
}, ee = (R, B, H) => {
|
|
5964
|
+
var te, _e, Ce, $e, Be;
|
|
5965
|
+
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];
|
|
5966
|
+
ie && typeof ie == "object" && !Array.isArray(ie) ? d.setFieldValue(`${q}.value`, H, !1) : d.setFieldValue(q, H, !1);
|
|
5967
|
+
const le = ($e = d.values) == null ? void 0 : $e.conditionGroups;
|
|
5968
|
+
if (Array.isArray(le)) {
|
|
5969
|
+
const Me = le.findIndex((ne) => (ne == null ? void 0 : ne.ConditionGroupId) === R);
|
|
5957
5970
|
if (Me >= 0) {
|
|
5958
|
-
const
|
|
5971
|
+
const ne = (Be = le[Me].conditionsThatEstablishesTheDecision) == null ? void 0 : Be.findIndex(
|
|
5959
5972
|
(he) => (he == null ? void 0 : he.conditionName) === B
|
|
5960
5973
|
);
|
|
5961
|
-
if (
|
|
5962
|
-
const he = JSON.parse(JSON.stringify(
|
|
5963
|
-
he[Me].conditionsThatEstablishesTheDecision[
|
|
5974
|
+
if (ne >= 0) {
|
|
5975
|
+
const he = JSON.parse(JSON.stringify(le));
|
|
5976
|
+
he[Me].conditionsThatEstablishesTheDecision[ne].value = H, d.setFieldValue("conditionGroups", he, !1);
|
|
5964
5977
|
}
|
|
5965
5978
|
}
|
|
5966
5979
|
}
|
|
5967
|
-
},
|
|
5968
|
-
const [B, ...H] = R.split("."), q = H.join("."),
|
|
5969
|
-
|
|
5980
|
+
}, _ = (R) => {
|
|
5981
|
+
const [B, ...H] = R.split("."), q = H.join("."), ie = Object.values(h).flat().find((te) => te.conditionName === q), le = Y(ie || {});
|
|
5982
|
+
ee(B, q, le), d.setFieldTouched(
|
|
5970
5983
|
`conditionsThatEstablishesTheDecision.${B}.${q}`,
|
|
5971
5984
|
!1,
|
|
5972
5985
|
!1
|
|
5973
5986
|
);
|
|
5974
5987
|
}, w = () => {
|
|
5975
|
-
(h[
|
|
5988
|
+
(h[O] ?? []).forEach((B) => {
|
|
5976
5989
|
const H = tt(B == null ? void 0 : B.howToSetTheCondition), q = ut(H);
|
|
5977
|
-
|
|
5990
|
+
ee(O, B.conditionName, q);
|
|
5978
5991
|
});
|
|
5979
|
-
}, [
|
|
5992
|
+
}, [M, V] = U.useState(!1);
|
|
5980
5993
|
return /* @__PURE__ */ o(
|
|
5981
5994
|
Ol,
|
|
5982
5995
|
{
|
|
5983
5996
|
activeTab: N,
|
|
5984
5997
|
conditionsErrorText: xe,
|
|
5985
|
-
currentConditions:
|
|
5998
|
+
currentConditions: K,
|
|
5986
5999
|
decision: t,
|
|
5987
6000
|
formik: d,
|
|
5988
6001
|
normalizedDecision: pe,
|
|
5989
6002
|
onCancel: r,
|
|
5990
6003
|
onRedefineCurrentTab: w,
|
|
5991
|
-
onTabChange:
|
|
6004
|
+
onTabChange: k,
|
|
5992
6005
|
onClearCondition: (R) => {
|
|
5993
|
-
|
|
6006
|
+
_(R), a == null || a(R);
|
|
5994
6007
|
},
|
|
5995
6008
|
showConditionsError: Ve,
|
|
5996
6009
|
tabs: D,
|
|
5997
6010
|
termEndStatus: Se,
|
|
5998
|
-
termStartStatus:
|
|
5999
|
-
visibleConditions:
|
|
6011
|
+
termStartStatus: z,
|
|
6012
|
+
visibleConditions: oe,
|
|
6000
6013
|
visibleConditionsByGroup: X,
|
|
6001
6014
|
handleToggleNoneChange: p,
|
|
6002
6015
|
portalId: "redefine-confirm-portal",
|
|
6003
|
-
showRedefineConfirm:
|
|
6016
|
+
showRedefineConfirm: M,
|
|
6004
6017
|
onOpenRedefineConfirm: () => V(!0),
|
|
6005
6018
|
onCloseRedefineConfirm: () => V(!1),
|
|
6006
6019
|
onConfirmRedefine: () => {
|
|
6007
6020
|
w();
|
|
6008
|
-
const R = (h[
|
|
6009
|
-
(B) => `${
|
|
6021
|
+
const R = (h[O] ?? []).map(
|
|
6022
|
+
(B) => `${O}.${B.conditionName}`
|
|
6010
6023
|
);
|
|
6011
6024
|
i == null || i(R), V(!1);
|
|
6012
6025
|
},
|
|
@@ -6078,12 +6091,12 @@ const Il = A.div`
|
|
|
6078
6091
|
handleCheckboxChange: u
|
|
6079
6092
|
} = zl({ options: t });
|
|
6080
6093
|
return xt(
|
|
6081
|
-
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Ml, { children: /* @__PURE__ */
|
|
6082
|
-
/* @__PURE__ */
|
|
6083
|
-
/* @__PURE__ */
|
|
6084
|
-
/* @__PURE__ */
|
|
6094
|
+
/* @__PURE__ */ o(_r, { children: /* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(Ml, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
6095
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
6096
|
+
/* @__PURE__ */ m(v, { alignItems: "center", justifyContent: "space-between", children: [
|
|
6097
|
+
/* @__PURE__ */ m(v, { direction: "column", gap: "8px", children: [
|
|
6085
6098
|
/* @__PURE__ */ o(
|
|
6086
|
-
|
|
6099
|
+
C,
|
|
6087
6100
|
{
|
|
6088
6101
|
type: "title",
|
|
6089
6102
|
size: "medium",
|
|
@@ -6092,15 +6105,15 @@ const Il = A.div`
|
|
|
6092
6105
|
children: "Condiciones"
|
|
6093
6106
|
}
|
|
6094
6107
|
),
|
|
6095
|
-
/* @__PURE__ */ o(
|
|
6108
|
+
/* @__PURE__ */ o(C, { size: "medium", appearance: "gray", children: "Antes de agregar una decisión, selecciona las condiciones que la determinan." })
|
|
6096
6109
|
] }),
|
|
6097
6110
|
/* @__PURE__ */ o(vt, { size: "24px", cursor: "pointer", onClick: r })
|
|
6098
6111
|
] }),
|
|
6099
|
-
/* @__PURE__ */ o(
|
|
6112
|
+
/* @__PURE__ */ o(re, { dashed: !0 })
|
|
6100
6113
|
] }),
|
|
6101
|
-
/* @__PURE__ */ o(_l, { children: /* @__PURE__ */
|
|
6102
|
-
/* @__PURE__ */ o(
|
|
6103
|
-
/* @__PURE__ */
|
|
6114
|
+
/* @__PURE__ */ o(_l, { children: /* @__PURE__ */ m(v, { direction: "column", gap: "20px", children: [
|
|
6115
|
+
/* @__PURE__ */ o(C, { type: "title", size: "medium", weight: "normal", children: " ¿Qué condiciones determinan la decisión?" }),
|
|
6116
|
+
/* @__PURE__ */ m(v, { justifyContent: "space-between", children: [
|
|
6104
6117
|
/* @__PURE__ */ o(
|
|
6105
6118
|
lt,
|
|
6106
6119
|
{
|
|
@@ -6130,7 +6143,7 @@ const Il = A.div`
|
|
|
6130
6143
|
h.id
|
|
6131
6144
|
)) }) })
|
|
6132
6145
|
] }) }),
|
|
6133
|
-
/* @__PURE__ */
|
|
6146
|
+
/* @__PURE__ */ m(v, { justifyContent: "flex-end", gap: "12px", children: [
|
|
6134
6147
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: r, children: "Cancelar" }),
|
|
6135
6148
|
/* @__PURE__ */ o(J, { onClick: () => a(p), children: "Continuar" })
|
|
6136
6149
|
] })
|
|
@@ -6155,33 +6168,32 @@ const Il = A.div`
|
|
|
6155
6168
|
handleSubmitForm: f,
|
|
6156
6169
|
handleDelete: g,
|
|
6157
6170
|
onRemoveCondition: y,
|
|
6158
|
-
onRestoreConditions:
|
|
6171
|
+
onRestoreConditions: b,
|
|
6159
6172
|
handleOpenRulesModal: T = () => {
|
|
6160
6173
|
},
|
|
6161
6174
|
baseDecisionTemplate: S,
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
configureDecisionModal: O,
|
|
6175
|
+
withEditOption: E,
|
|
6176
|
+
withTerm: D,
|
|
6177
|
+
configurateDecisionOptions: N = [],
|
|
6178
|
+
configureDecisionModal: I,
|
|
6167
6179
|
handleCloseRulesModal: k = () => {
|
|
6168
6180
|
}
|
|
6169
|
-
} = e, [
|
|
6181
|
+
} = e, [O, X] = Q(null), { renderedCards: K } = vl({
|
|
6170
6182
|
cardTitle: t,
|
|
6171
6183
|
controls: n,
|
|
6172
6184
|
customTitleContentAddCard: r,
|
|
6173
6185
|
decisions: i,
|
|
6174
6186
|
loading: p,
|
|
6175
|
-
handleOpenModal: (
|
|
6187
|
+
handleOpenModal: (Z) => Z !== null && u(Z),
|
|
6176
6188
|
handleDelete: g,
|
|
6177
|
-
isOpenFor: (
|
|
6178
|
-
toggleAt: (
|
|
6189
|
+
isOpenFor: (Z) => O === Z,
|
|
6190
|
+
toggleAt: (Z) => X((F) => F === Z ? null : Z),
|
|
6179
6191
|
editionMode: c,
|
|
6180
|
-
withEditOption:
|
|
6181
|
-
}),
|
|
6182
|
-
return /* @__PURE__ */
|
|
6183
|
-
/* @__PURE__ */
|
|
6184
|
-
/* @__PURE__ */ o(
|
|
6192
|
+
withEditOption: E
|
|
6193
|
+
}), oe = ((i == null ? void 0 : i.length) || 0) + 1, pe = (i == null ? void 0 : i.length) === 0 && !p;
|
|
6194
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
6195
|
+
/* @__PURE__ */ m(v, { justifyContent: "space-between", padding: "6px", children: [
|
|
6196
|
+
/* @__PURE__ */ o(C, { type: "title", weight: "bold", size: "medium", appearance: "gray", children: "Consulta de las decisiones definidas" }),
|
|
6185
6197
|
/* @__PURE__ */ o(
|
|
6186
6198
|
J,
|
|
6187
6199
|
{
|
|
@@ -6193,7 +6205,7 @@ const Il = A.div`
|
|
|
6193
6205
|
}
|
|
6194
6206
|
)
|
|
6195
6207
|
] }),
|
|
6196
|
-
/* @__PURE__ */ o(gl, { children: /* @__PURE__ */ o(fl, { children: /* @__PURE__ */ o(v, { direction: "column", gap: "16px", padding: "6px", children:
|
|
6208
|
+
/* @__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
6209
|
v,
|
|
6198
6210
|
{
|
|
6199
6211
|
direction: "column",
|
|
@@ -6211,7 +6223,7 @@ const Il = A.div`
|
|
|
6211
6223
|
}
|
|
6212
6224
|
),
|
|
6213
6225
|
/* @__PURE__ */ o(
|
|
6214
|
-
|
|
6226
|
+
C,
|
|
6215
6227
|
{
|
|
6216
6228
|
type: "title",
|
|
6217
6229
|
size: "medium",
|
|
@@ -6220,7 +6232,7 @@ const Il = A.div`
|
|
|
6220
6232
|
children: "Sin decisiones"
|
|
6221
6233
|
}
|
|
6222
6234
|
),
|
|
6223
|
-
/* @__PURE__ */ o(
|
|
6235
|
+
/* @__PURE__ */ o(C, { as: "span", size: "medium", appearance: "gray", children: a || /* @__PURE__ */ m(G, { children: [
|
|
6224
6236
|
"Aun no tienes decisiones definidas, para empezar haz clic en",
|
|
6225
6237
|
r || ' "Agregar decisión"'
|
|
6226
6238
|
] }) })
|
|
@@ -6237,13 +6249,13 @@ const Il = A.div`
|
|
|
6237
6249
|
autoRows: "auto",
|
|
6238
6250
|
justifyItems: "center",
|
|
6239
6251
|
width: "100%",
|
|
6240
|
-
children:
|
|
6252
|
+
children: K
|
|
6241
6253
|
}
|
|
6242
|
-
) })
|
|
6243
|
-
|
|
6254
|
+
) }) }) }) }),
|
|
6255
|
+
I && /* @__PURE__ */ o(
|
|
6244
6256
|
Ul,
|
|
6245
6257
|
{
|
|
6246
|
-
options:
|
|
6258
|
+
options: N,
|
|
6247
6259
|
onCloseModal: h,
|
|
6248
6260
|
portalId: "modal-portal",
|
|
6249
6261
|
onOpenRulesModal: T
|
|
@@ -6265,9 +6277,9 @@ const Il = A.div`
|
|
|
6265
6277
|
onCancel: () => k ? k() : () => {
|
|
6266
6278
|
},
|
|
6267
6279
|
onRemoveCondition: y,
|
|
6268
|
-
onRestoreConditions:
|
|
6269
|
-
withTerm:
|
|
6270
|
-
decisionNumber:
|
|
6280
|
+
onRestoreConditions: b,
|
|
6281
|
+
withTerm: D,
|
|
6282
|
+
decisionNumber: oe
|
|
6271
6283
|
}
|
|
6272
6284
|
)
|
|
6273
6285
|
}
|
|
@@ -6321,11 +6333,11 @@ const Hl = (e, t) => {
|
|
|
6321
6333
|
const f = d.clientWidth, g = Array.from(
|
|
6322
6334
|
p.querySelectorAll('[data-filter-tag="true"]')
|
|
6323
6335
|
), y = 48;
|
|
6324
|
-
let
|
|
6336
|
+
let b = 0;
|
|
6325
6337
|
const T = [], S = [];
|
|
6326
6338
|
for (let D = 0; D < t.length; D++) {
|
|
6327
6339
|
const N = ((E = g[D]) == null ? void 0 : E.offsetWidth) ?? 0;
|
|
6328
|
-
|
|
6340
|
+
b + N + y <= f ? (T.push(t[D]), b += N) : S.push(t[D]);
|
|
6329
6341
|
}
|
|
6330
6342
|
r(T), i(S), c(S.length > 0);
|
|
6331
6343
|
}, h = new ResizeObserver(() => {
|
|
@@ -6408,8 +6420,8 @@ const ql = A.div`
|
|
|
6408
6420
|
}};
|
|
6409
6421
|
}
|
|
6410
6422
|
`, 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 = (
|
|
6423
|
+
var h, f, g, y, b, T;
|
|
6424
|
+
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
6425
|
return /* @__PURE__ */ o(
|
|
6414
6426
|
Ql,
|
|
6415
6427
|
{
|
|
@@ -6419,7 +6431,7 @@ const ql = A.div`
|
|
|
6419
6431
|
onClick: (S) => {
|
|
6420
6432
|
S.stopPropagation();
|
|
6421
6433
|
},
|
|
6422
|
-
children: /* @__PURE__ */
|
|
6434
|
+
children: /* @__PURE__ */ m(
|
|
6423
6435
|
Ae,
|
|
6424
6436
|
{
|
|
6425
6437
|
alignItems: "center",
|
|
@@ -6436,7 +6448,7 @@ const ql = A.div`
|
|
|
6436
6448
|
}
|
|
6437
6449
|
),
|
|
6438
6450
|
/* @__PURE__ */ o(
|
|
6439
|
-
|
|
6451
|
+
C,
|
|
6440
6452
|
{
|
|
6441
6453
|
textAlign: "start",
|
|
6442
6454
|
size: "medium",
|
|
@@ -6474,14 +6486,14 @@ const ql = A.div`
|
|
|
6474
6486
|
hidden: u,
|
|
6475
6487
|
showOverflowIndicator: h,
|
|
6476
6488
|
measurementRef: f
|
|
6477
|
-
} = Hl(c, t), [g, y] = Q(!1),
|
|
6489
|
+
} = Hl(c, t), [g, y] = Q(!1), b = (N) => {
|
|
6478
6490
|
N.stopPropagation(), y((I) => !I);
|
|
6479
6491
|
};
|
|
6480
6492
|
Ue(() => {
|
|
6481
6493
|
const N = (I) => {
|
|
6482
|
-
var X,
|
|
6483
|
-
const
|
|
6484
|
-
!((X = l.current) != null && X.contains(
|
|
6494
|
+
var X, K;
|
|
6495
|
+
const k = I.target;
|
|
6496
|
+
!((X = l.current) != null && X.contains(k)) && !((K = d.current) != null && K.contains(k)) && y(!1);
|
|
6485
6497
|
};
|
|
6486
6498
|
return g && window.addEventListener("mousedown", N), () => window.removeEventListener("mousedown", N);
|
|
6487
6499
|
}, [g]);
|
|
@@ -6491,10 +6503,10 @@ const ql = A.div`
|
|
|
6491
6503
|
label: N.label,
|
|
6492
6504
|
icon: N.icon
|
|
6493
6505
|
})), D = (N) => {
|
|
6494
|
-
var I,
|
|
6495
|
-
(
|
|
6506
|
+
var I, k;
|
|
6507
|
+
(k = (I = u.find((O) => O.label === N)) == null ? void 0 : I.onClose) == null || k.call(I), y(!1);
|
|
6496
6508
|
};
|
|
6497
|
-
return /* @__PURE__ */
|
|
6509
|
+
return /* @__PURE__ */ m(Bl, { borderRadius: "8px", width: "100%", children: [
|
|
6498
6510
|
/* @__PURE__ */ o(Yl, { ref: f, children: t.map((N) => /* @__PURE__ */ o("div", { "data-filter-tag": "true", children: /* @__PURE__ */ o(
|
|
6499
6511
|
De,
|
|
6500
6512
|
{
|
|
@@ -6506,7 +6518,7 @@ const ql = A.div`
|
|
|
6506
6518
|
onClose: N.onClose
|
|
6507
6519
|
}
|
|
6508
6520
|
) }, N.label)) }),
|
|
6509
|
-
/* @__PURE__ */
|
|
6521
|
+
/* @__PURE__ */ m(Ae, { gap: "12px", templateColumns: "1fr auto auto", width: "100%", children: [
|
|
6510
6522
|
/* @__PURE__ */ o(
|
|
6511
6523
|
ze,
|
|
6512
6524
|
{
|
|
@@ -6519,7 +6531,7 @@ const ql = A.div`
|
|
|
6519
6531
|
alignItems: "center",
|
|
6520
6532
|
padding: "0px 8px",
|
|
6521
6533
|
border: !0,
|
|
6522
|
-
children: T ? /* @__PURE__ */ o(
|
|
6534
|
+
children: T ? /* @__PURE__ */ o(C, { size: "small", type: "label", appearance: "gray", children: a }) : /* @__PURE__ */ m(G, { children: [
|
|
6523
6535
|
p.map((N) => /* @__PURE__ */ o(
|
|
6524
6536
|
De,
|
|
6525
6537
|
{
|
|
@@ -6533,13 +6545,13 @@ const ql = A.div`
|
|
|
6533
6545
|
},
|
|
6534
6546
|
N.label
|
|
6535
6547
|
)),
|
|
6536
|
-
h && /* @__PURE__ */
|
|
6548
|
+
h && /* @__PURE__ */ m(
|
|
6537
6549
|
"div",
|
|
6538
6550
|
{
|
|
6539
6551
|
ref: d,
|
|
6540
6552
|
style: { position: "relative", display: "inline-block" },
|
|
6541
6553
|
children: [
|
|
6542
|
-
/* @__PURE__ */ o(Wl, { onClick:
|
|
6554
|
+
/* @__PURE__ */ o(Wl, { onClick: b, children: /* @__PURE__ */ o(
|
|
6543
6555
|
De,
|
|
6544
6556
|
{
|
|
6545
6557
|
appearance: "primary",
|
|
@@ -6597,9 +6609,9 @@ const ql = A.div`
|
|
|
6597
6609
|
] });
|
|
6598
6610
|
}, hc = (e) => {
|
|
6599
6611
|
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__ */
|
|
6612
|
+
return /* @__PURE__ */ m(v, { direction: "column", gap: "16px", children: [
|
|
6613
|
+
i && /* @__PURE__ */ m(G, { children: [
|
|
6614
|
+
/* @__PURE__ */ m(v, { gap: "6px", width: "100%", alignItems: "center", children: [
|
|
6603
6615
|
/* @__PURE__ */ o(j, { appearance: "gray", icon: /* @__PURE__ */ o(Tr, {}) }),
|
|
6604
6616
|
/* @__PURE__ */ o(
|
|
6605
6617
|
ze,
|
|
@@ -6613,7 +6625,7 @@ const ql = A.div`
|
|
|
6613
6625
|
border: !0,
|
|
6614
6626
|
width: "100%",
|
|
6615
6627
|
height: "36px",
|
|
6616
|
-
children: s ? /* @__PURE__ */ o(
|
|
6628
|
+
children: s ? /* @__PURE__ */ o(C, { size: "small", type: "label", appearance: "gray", children: a }) : t == null ? void 0 : t.map((c) => /* @__PURE__ */ o(
|
|
6617
6629
|
De,
|
|
6618
6630
|
{
|
|
6619
6631
|
appearance: "primary",
|
|
@@ -6628,9 +6640,9 @@ const ql = A.div`
|
|
|
6628
6640
|
}
|
|
6629
6641
|
)
|
|
6630
6642
|
] }),
|
|
6631
|
-
/* @__PURE__ */ o(
|
|
6643
|
+
/* @__PURE__ */ o(re, { dashed: !0 })
|
|
6632
6644
|
] }),
|
|
6633
|
-
n.map((c) => /* @__PURE__ */
|
|
6645
|
+
n.map((c) => /* @__PURE__ */ m(v, { gap: "6px", alignItems: "center", children: [
|
|
6634
6646
|
/* @__PURE__ */ o(v, { padding: "22px 0 0 0", children: /* @__PURE__ */ o(j, { appearance: "primary", icon: c.icon }) }),
|
|
6635
6647
|
/* @__PURE__ */ o(
|
|
6636
6648
|
wn,
|
|
@@ -6747,7 +6759,7 @@ const ql = A.div`
|
|
|
6747
6759
|
}), ts = (e) => {
|
|
6748
6760
|
const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
|
|
6749
6761
|
return {
|
|
6750
|
-
schema:
|
|
6762
|
+
schema: ae({
|
|
6751
6763
|
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
6764
|
to: Ee().min(0, "El campo 'Rango hasta' debe ser mayor o igual a 0").required("El campo 'Rango hasta' es requerido").test(
|
|
6753
6765
|
"is-greater",
|
|
@@ -6839,14 +6851,14 @@ function rs({
|
|
|
6839
6851
|
// }),
|
|
6840
6852
|
conditionsThatEstablishesTheDecision: ft((l, { parent: d }) => {
|
|
6841
6853
|
var h;
|
|
6842
|
-
if ((d == null ? void 0 : d.toggleNone) && Object.keys(d.conditionsThatEstablishesTheDecision || {}).length > 0) return
|
|
6854
|
+
if ((d == null ? void 0 : d.toggleNone) && Object.keys(d.conditionsThatEstablishesTheDecision || {}).length > 0) return ae().shape({});
|
|
6843
6855
|
const u = ((h = e.conditionsThatEstablishesTheDecision) == null ? void 0 : h.reduce(
|
|
6844
6856
|
(f, g) => {
|
|
6845
6857
|
if (a.values.conditionsThatEstablishesTheDecision[g.conditionName] !== void 0) {
|
|
6846
|
-
const
|
|
6858
|
+
const b = ir(
|
|
6847
6859
|
g.howToSetTheCondition
|
|
6848
6860
|
);
|
|
6849
|
-
f[g.conditionName] =
|
|
6861
|
+
f[g.conditionName] = b(
|
|
6850
6862
|
g.value,
|
|
6851
6863
|
g.conditionDataType
|
|
6852
6864
|
).schema;
|
|
@@ -6855,7 +6867,7 @@ function rs({
|
|
|
6855
6867
|
},
|
|
6856
6868
|
{}
|
|
6857
6869
|
)) ?? {};
|
|
6858
|
-
return
|
|
6870
|
+
return ae(u);
|
|
6859
6871
|
})
|
|
6860
6872
|
};
|
|
6861
6873
|
n.terms && (i.effectiveFrom = mt().required(
|
|
@@ -6871,7 +6883,7 @@ function rs({
|
|
|
6871
6883
|
}
|
|
6872
6884
|
) : d.notRequired()
|
|
6873
6885
|
));
|
|
6874
|
-
const s =
|
|
6886
|
+
const s = ae(i);
|
|
6875
6887
|
return a = Dn({
|
|
6876
6888
|
initialValues: r,
|
|
6877
6889
|
validationSchema: s,
|
|
@@ -6954,7 +6966,7 @@ const as = A.div`
|
|
|
6954
6966
|
};
|
|
6955
6967
|
return Ue(() => {
|
|
6956
6968
|
d(t);
|
|
6957
|
-
}, [t]), /* @__PURE__ */
|
|
6969
|
+
}, [t]), /* @__PURE__ */ m(G, { children: [
|
|
6958
6970
|
/* @__PURE__ */ o(v, { children: /* @__PURE__ */ o(
|
|
6959
6971
|
lt,
|
|
6960
6972
|
{
|
|
@@ -6964,7 +6976,7 @@ const as = A.div`
|
|
|
6964
6976
|
onChange: p,
|
|
6965
6977
|
size: "small",
|
|
6966
6978
|
value: c,
|
|
6967
|
-
children: /* @__PURE__ */ o(
|
|
6979
|
+
children: /* @__PURE__ */ o(C, { size: "medium", type: "label", weight: "bold", children: i })
|
|
6968
6980
|
}
|
|
6969
6981
|
) }),
|
|
6970
6982
|
l && /* @__PURE__ */ o(G, { children: n })
|
|
@@ -6984,17 +6996,17 @@ const as = A.div`
|
|
|
6984
6996
|
messageEnd: u = "",
|
|
6985
6997
|
statusStart: h = "pending",
|
|
6986
6998
|
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__ */
|
|
6999
|
+
} = e, [g, y] = Q(s), [b, T] = Q(l), [S, E] = Q(d), D = ({ target: O }) => {
|
|
7000
|
+
y(O.checked), r && r(O.checked);
|
|
7001
|
+
}, N = (O) => {
|
|
7002
|
+
T(O.target.value), t(O);
|
|
7003
|
+
}, I = (O) => {
|
|
7004
|
+
E(O.target.value), n(O);
|
|
7005
|
+
}, k = Te("(max-width: 400px)");
|
|
7006
|
+
return /* @__PURE__ */ m(G, { children: [
|
|
7007
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
|
|
6996
7008
|
/* @__PURE__ */ o(
|
|
6997
|
-
|
|
7009
|
+
C,
|
|
6998
7010
|
{
|
|
6999
7011
|
appearance: "gray",
|
|
7000
7012
|
margin: "10px 0",
|
|
@@ -7023,10 +7035,10 @@ const as = A.div`
|
|
|
7023
7035
|
}
|
|
7024
7036
|
)
|
|
7025
7037
|
] }),
|
|
7026
|
-
/* @__PURE__ */
|
|
7038
|
+
/* @__PURE__ */ m(
|
|
7027
7039
|
v,
|
|
7028
7040
|
{
|
|
7029
|
-
direction:
|
|
7041
|
+
direction: k ? "column" : "row",
|
|
7030
7042
|
justifyContent: "space-between",
|
|
7031
7043
|
gap: "24px",
|
|
7032
7044
|
children: [
|
|
@@ -7036,7 +7048,7 @@ const as = A.div`
|
|
|
7036
7048
|
id: "dateStart",
|
|
7037
7049
|
label: a,
|
|
7038
7050
|
onChange: N,
|
|
7039
|
-
value:
|
|
7051
|
+
value: b,
|
|
7040
7052
|
required: c,
|
|
7041
7053
|
size: "compact",
|
|
7042
7054
|
status: h,
|
|
@@ -7073,14 +7085,14 @@ const as = A.div`
|
|
|
7073
7085
|
termStartStatus: d,
|
|
7074
7086
|
termEndStatus: p
|
|
7075
7087
|
} = e;
|
|
7076
|
-
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */
|
|
7088
|
+
return /* @__PURE__ */ o("form", { onSubmit: t.handleSubmit, children: /* @__PURE__ */ m(v, { direction: "column", gap: "24px", children: [
|
|
7077
7089
|
Ut({
|
|
7078
7090
|
condition: i,
|
|
7079
7091
|
formik: t,
|
|
7080
7092
|
isDecision: !0
|
|
7081
7093
|
}),
|
|
7082
|
-
/* @__PURE__ */ o(
|
|
7083
|
-
/* @__PURE__ */ o(as, { children: /* @__PURE__ */ o(os, { children: /* @__PURE__ */
|
|
7094
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
7095
|
+
/* @__PURE__ */ o(as, { children: /* @__PURE__ */ o(os, { children: /* @__PURE__ */ m(
|
|
7084
7096
|
v,
|
|
7085
7097
|
{
|
|
7086
7098
|
direction: "column",
|
|
@@ -7088,14 +7100,14 @@ const as = A.div`
|
|
|
7088
7100
|
gap: "16px",
|
|
7089
7101
|
height: "272px",
|
|
7090
7102
|
children: [
|
|
7091
|
-
/* @__PURE__ */
|
|
7103
|
+
/* @__PURE__ */ m(
|
|
7092
7104
|
v,
|
|
7093
7105
|
{
|
|
7094
7106
|
justifyContent: "space-between",
|
|
7095
7107
|
alignItems: "center",
|
|
7096
7108
|
gap: "64px",
|
|
7097
7109
|
children: [
|
|
7098
|
-
/* @__PURE__ */ o(
|
|
7110
|
+
/* @__PURE__ */ o(C, { type: "title", size: "small", weight: "bold", appearance: "gray", children: n.factsThatConditionIt }),
|
|
7099
7111
|
/* @__PURE__ */ o(
|
|
7100
7112
|
lt,
|
|
7101
7113
|
{
|
|
@@ -7103,7 +7115,7 @@ const as = A.div`
|
|
|
7103
7115
|
onChange: () => s(!t.values.toggleNone),
|
|
7104
7116
|
checked: t.values.toggleNone,
|
|
7105
7117
|
size: "small",
|
|
7106
|
-
children: /* @__PURE__ */ o(
|
|
7118
|
+
children: /* @__PURE__ */ o(C, { as: "span", size: "medium", type: "label", weight: "bold", children: n.none })
|
|
7107
7119
|
}
|
|
7108
7120
|
)
|
|
7109
7121
|
]
|
|
@@ -7127,8 +7139,8 @@ const as = A.div`
|
|
|
7127
7139
|
]
|
|
7128
7140
|
}
|
|
7129
7141
|
) }) }),
|
|
7130
|
-
n.terms && /* @__PURE__ */
|
|
7131
|
-
/* @__PURE__ */ o(
|
|
7142
|
+
n.terms && /* @__PURE__ */ m(G, { children: [
|
|
7143
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
7132
7144
|
/* @__PURE__ */ o(
|
|
7133
7145
|
ls,
|
|
7134
7146
|
{
|
|
@@ -7149,9 +7161,9 @@ const as = A.div`
|
|
|
7149
7161
|
}
|
|
7150
7162
|
)
|
|
7151
7163
|
] }),
|
|
7152
|
-
/* @__PURE__ */ o(
|
|
7153
|
-
l && /* @__PURE__ */ o(
|
|
7154
|
-
/* @__PURE__ */
|
|
7164
|
+
/* @__PURE__ */ o(re, {}),
|
|
7165
|
+
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." }),
|
|
7166
|
+
/* @__PURE__ */ m(v, { direction: "row", justifyContent: "end", gap: "16px", children: [
|
|
7155
7167
|
/* @__PURE__ */ o(J, { appearance: "gray", onClick: r, children: n.cancel }),
|
|
7156
7168
|
/* @__PURE__ */ o(J, { type: "submit", children: n.confirm })
|
|
7157
7169
|
] })
|
|
@@ -7181,8 +7193,8 @@ const as = A.div`
|
|
|
7181
7193
|
visibleConditions: l,
|
|
7182
7194
|
normalizedDecision: c,
|
|
7183
7195
|
handleToggleNoneChange: s,
|
|
7184
|
-
handleConditionToggleChange: (g, y) => (
|
|
7185
|
-
if (!
|
|
7196
|
+
handleConditionToggleChange: (g, y) => (b) => {
|
|
7197
|
+
if (!b)
|
|
7186
7198
|
i.setFieldValue(
|
|
7187
7199
|
`conditionsThatEstablishesTheDecision.${g}`,
|
|
7188
7200
|
void 0
|
|
@@ -7338,13 +7350,13 @@ const as = A.div`
|
|
|
7338
7350
|
l && !await l(T, S) || d(T);
|
|
7339
7351
|
},
|
|
7340
7352
|
[d, l]
|
|
7341
|
-
), g = t || c ? "primary" : "dark", y = t || c ? "bold" : "normal",
|
|
7342
|
-
return /* @__PURE__ */ o(cs, { $active: t, children: /* @__PURE__ */
|
|
7353
|
+
), g = t || c ? "primary" : "dark", y = t || c ? "bold" : "normal", b = U.useId();
|
|
7354
|
+
return /* @__PURE__ */ o(cs, { $active: t, children: /* @__PURE__ */ m(ze, { border: !0, borderRadius: "8px", width: "100%", children: [
|
|
7343
7355
|
/* @__PURE__ */ o(
|
|
7344
7356
|
gs,
|
|
7345
7357
|
{
|
|
7346
7358
|
$active: t && n.length > 0,
|
|
7347
|
-
"aria-controls":
|
|
7359
|
+
"aria-controls": b,
|
|
7348
7360
|
"aria-expanded": t,
|
|
7349
7361
|
onClick: u,
|
|
7350
7362
|
onKeyDown: h,
|
|
@@ -7354,7 +7366,7 @@ const as = A.div`
|
|
|
7354
7366
|
path: s,
|
|
7355
7367
|
label: a
|
|
7356
7368
|
});
|
|
7357
|
-
}, children: /* @__PURE__ */
|
|
7369
|
+
}, children: /* @__PURE__ */ m(
|
|
7358
7370
|
ze,
|
|
7359
7371
|
{
|
|
7360
7372
|
alignItems: "center",
|
|
@@ -7372,7 +7384,7 @@ const as = A.div`
|
|
|
7372
7384
|
}
|
|
7373
7385
|
),
|
|
7374
7386
|
/* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(
|
|
7375
|
-
|
|
7387
|
+
C,
|
|
7376
7388
|
{
|
|
7377
7389
|
appearance: g,
|
|
7378
7390
|
cursorHover: !0,
|
|
@@ -7384,7 +7396,7 @@ const as = A.div`
|
|
|
7384
7396
|
) })
|
|
7385
7397
|
]
|
|
7386
7398
|
}
|
|
7387
|
-
) }) : /* @__PURE__ */
|
|
7399
|
+
) }) : /* @__PURE__ */ m(
|
|
7388
7400
|
ze,
|
|
7389
7401
|
{
|
|
7390
7402
|
alignItems: "center",
|
|
@@ -7404,12 +7416,12 @@ const as = A.div`
|
|
|
7404
7416
|
/* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(
|
|
7405
7417
|
us,
|
|
7406
7418
|
{
|
|
7407
|
-
"aria-controls":
|
|
7419
|
+
"aria-controls": b,
|
|
7408
7420
|
"aria-expanded": t,
|
|
7409
7421
|
onClick: r,
|
|
7410
7422
|
onKeyDown: p,
|
|
7411
7423
|
children: /* @__PURE__ */ o(
|
|
7412
|
-
|
|
7424
|
+
C,
|
|
7413
7425
|
{
|
|
7414
7426
|
appearance: g,
|
|
7415
7427
|
cursorHover: !0,
|
|
@@ -7427,11 +7439,11 @@ const as = A.div`
|
|
|
7427
7439
|
)
|
|
7428
7440
|
}
|
|
7429
7441
|
),
|
|
7430
|
-
t && n.length > 0 && /* @__PURE__ */ o(fs, { id:
|
|
7442
|
+
t && n.length > 0 && /* @__PURE__ */ o(fs, { id: b, children: n.map((T) => {
|
|
7431
7443
|
const S = T.id === i;
|
|
7432
7444
|
return /* @__PURE__ */ o(hs, { to: T.path, onClick: async (E) => {
|
|
7433
7445
|
E.preventDefault(), E.stopPropagation(), await f(T.path, T);
|
|
7434
|
-
}, children: /* @__PURE__ */ o(Pr, { $active: S, children: /* @__PURE__ */
|
|
7446
|
+
}, children: /* @__PURE__ */ o(Pr, { $active: S, children: /* @__PURE__ */ m(
|
|
7435
7447
|
v,
|
|
7436
7448
|
{
|
|
7437
7449
|
alignItems: "center",
|
|
@@ -7441,7 +7453,7 @@ const as = A.div`
|
|
|
7441
7453
|
children: [
|
|
7442
7454
|
S && /* @__PURE__ */ o(j, { appearance: "primary", icon: /* @__PURE__ */ o(sa, {}) }),
|
|
7443
7455
|
/* @__PURE__ */ o(
|
|
7444
|
-
|
|
7456
|
+
C,
|
|
7445
7457
|
{
|
|
7446
7458
|
appearance: S ? "primary" : "dark",
|
|
7447
7459
|
size: "small",
|
|
@@ -7553,7 +7565,7 @@ function dt(e) {
|
|
|
7553
7565
|
return { x: e.clientX, y: e.clientY };
|
|
7554
7566
|
}
|
|
7555
7567
|
Array();
|
|
7556
|
-
var On = typeof window < "u",
|
|
7568
|
+
var On = typeof window < "u", se = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap();
|
|
7557
7569
|
function Br() {
|
|
7558
7570
|
if (!On) return !1;
|
|
7559
7571
|
if ("userAgentData" in navigator)
|
|
@@ -7595,9 +7607,9 @@ var Ts = {
|
|
|
7595
7607
|
scrollDebounceTimeout: void 0,
|
|
7596
7608
|
frameIdX: void 0,
|
|
7597
7609
|
frameIdY: void 0
|
|
7598
|
-
},
|
|
7610
|
+
}, x = Ts, Ye = !1, sr, on;
|
|
7599
7611
|
function ws() {
|
|
7600
|
-
|
|
7612
|
+
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
7613
|
affectedNodes: [],
|
|
7602
7614
|
coordinates: {
|
|
7603
7615
|
x: 0,
|
|
@@ -7638,49 +7650,49 @@ function ws() {
|
|
|
7638
7650
|
} };
|
|
7639
7651
|
}
|
|
7640
7652
|
function Hr(e) {
|
|
7641
|
-
return Object.assign(
|
|
7653
|
+
return Object.assign(x, e), e.initialParent.data.emit("dragStarted", x), Ye = !1, x.emit("dragStarted", x), x;
|
|
7642
7654
|
}
|
|
7643
7655
|
function Ss() {
|
|
7644
|
-
|
|
7656
|
+
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
7657
|
}
|
|
7646
7658
|
function xs() {
|
|
7647
|
-
if (
|
|
7648
|
-
const e =
|
|
7649
|
-
ye(
|
|
7659
|
+
if (x.pointerDown && (x.pointerDown.node.el.draggable = !0), x.pointerDown = void 0, !ye(x)) return;
|
|
7660
|
+
const e = x.currentParent.data.config;
|
|
7661
|
+
ye(x) && e.handleEnd(x);
|
|
7650
7662
|
}
|
|
7651
7663
|
function Cs(e) {
|
|
7652
|
-
e.key === "Escape" && (
|
|
7664
|
+
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
7665
|
}
|
|
7654
7666
|
function Ds(e) {
|
|
7655
|
-
if (!ue(
|
|
7667
|
+
if (!ue(x)) return;
|
|
7656
7668
|
Ye = !0;
|
|
7657
|
-
const t =
|
|
7658
|
-
t(
|
|
7669
|
+
const t = x.initialParent.data.config.handleEnd;
|
|
7670
|
+
t(x);
|
|
7659
7671
|
}
|
|
7660
7672
|
function Ns(e) {
|
|
7661
|
-
if (!ue(
|
|
7673
|
+
if (!ue(x)) return;
|
|
7662
7674
|
ce(e);
|
|
7663
7675
|
const { x: t, y: n } = dt(e);
|
|
7664
|
-
ue(
|
|
7676
|
+
ue(x) && Wt({ x: t, y: n }, e, x);
|
|
7665
7677
|
}
|
|
7666
7678
|
function Es(e) {
|
|
7667
|
-
if (!
|
|
7668
|
-
const t =
|
|
7679
|
+
if (!x.pointerDown || !x.pointerDown.validated) return;
|
|
7680
|
+
const t = x.pointerDown.parent.data.config;
|
|
7669
7681
|
if (!(e.pointerType === "mouse" && !Br()))
|
|
7670
|
-
if (ye(
|
|
7671
|
-
ye(
|
|
7682
|
+
if (ye(x))
|
|
7683
|
+
ye(x) && dr(e, x);
|
|
7672
7684
|
else {
|
|
7673
|
-
if (ce(e), t.longPress && !
|
|
7674
|
-
clearTimeout(
|
|
7685
|
+
if (ce(e), t.longPress && !x.longPress) {
|
|
7686
|
+
clearTimeout(x.longPressTimeout), x.longPress = !1;
|
|
7675
7687
|
return;
|
|
7676
7688
|
}
|
|
7677
|
-
const n = t.draggedNodes(
|
|
7678
|
-
t.dragstartClasses(
|
|
7679
|
-
const r =
|
|
7680
|
-
|
|
7681
|
-
|
|
7689
|
+
const n = t.draggedNodes(x.pointerDown);
|
|
7690
|
+
t.dragstartClasses(x.pointerDown.node, n, t, !0);
|
|
7691
|
+
const r = x.pointerDown.node.el.getBoundingClientRect(), a = nd(
|
|
7692
|
+
x.pointerDown.node,
|
|
7693
|
+
x.pointerDown.parent,
|
|
7682
7694
|
e,
|
|
7683
|
-
|
|
7695
|
+
x,
|
|
7684
7696
|
n,
|
|
7685
7697
|
r
|
|
7686
7698
|
);
|
|
@@ -7704,10 +7716,10 @@ function As({
|
|
|
7704
7716
|
pointermove: Es,
|
|
7705
7717
|
pointercancel: ge(r.handlePointercancel),
|
|
7706
7718
|
touchmove: (u) => {
|
|
7707
|
-
ue(
|
|
7719
|
+
ue(x) && u.cancelable && ce(u);
|
|
7708
7720
|
},
|
|
7709
7721
|
contextmenu: (u) => {
|
|
7710
|
-
ye(
|
|
7722
|
+
ye(x) && ce(u);
|
|
7711
7723
|
}
|
|
7712
7724
|
})), Yr(e);
|
|
7713
7725
|
const [a, i] = zr(), s = {
|
|
@@ -7760,7 +7772,7 @@ function As({
|
|
|
7760
7772
|
on: i,
|
|
7761
7773
|
emit: a
|
|
7762
7774
|
};
|
|
7763
|
-
new MutationObserver(Ms).observe(e, { childList: !0 }),
|
|
7775
|
+
new MutationObserver(Ms).observe(e, { childList: !0 }), se.set(e, s), (l = r.plugins) == null || l.forEach((u) => {
|
|
7764
7776
|
var h, f;
|
|
7765
7777
|
(f = (h = u(e)) == null ? void 0 : h.tearDown) == null || f.call(h);
|
|
7766
7778
|
}), (d = r.plugins) == null || d.forEach((u) => {
|
|
@@ -7815,7 +7827,7 @@ function $s({
|
|
|
7815
7827
|
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
7828
|
...a.filter((l) => !r.some((d) => yt(l, d)))
|
|
7817
7829
|
];
|
|
7818
|
-
c.splice(n[0].data.index, 0, ...r), "draggedNode" in
|
|
7830
|
+
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
7831
|
parent: {
|
|
7820
7832
|
el: e.el,
|
|
7821
7833
|
data: e.data
|
|
@@ -7828,7 +7840,7 @@ function $s({
|
|
|
7828
7840
|
previousPosition: i,
|
|
7829
7841
|
position: n[0].data.index,
|
|
7830
7842
|
targetNodes: n,
|
|
7831
|
-
state:
|
|
7843
|
+
state: x
|
|
7832
7844
|
});
|
|
7833
7845
|
}
|
|
7834
7846
|
function Ze(e, t, n) {
|
|
@@ -7914,7 +7926,7 @@ function Os(e, t) {
|
|
|
7914
7926
|
n(t);
|
|
7915
7927
|
}
|
|
7916
7928
|
function Yr(e) {
|
|
7917
|
-
const t =
|
|
7929
|
+
const t = se.get(e);
|
|
7918
7930
|
t && t.abortControllers.mainParent && t.abortControllers.mainParent.abort();
|
|
7919
7931
|
}
|
|
7920
7932
|
function ue(e) {
|
|
@@ -7930,7 +7942,7 @@ function Ls(e, t) {
|
|
|
7930
7942
|
scroll: Vt(t.config.handleParentScroll),
|
|
7931
7943
|
drop: Vt(t.config.handleParentDrop),
|
|
7932
7944
|
hasNestedParent: (n) => {
|
|
7933
|
-
const r =
|
|
7945
|
+
const r = se.get(n.target);
|
|
7934
7946
|
r && (r.nestedParent = n.detail.parent);
|
|
7935
7947
|
},
|
|
7936
7948
|
focus: Vt(t.config.handleParentFocus)
|
|
@@ -7951,8 +7963,8 @@ function Ls(e, t) {
|
|
|
7951
7963
|
if (!a) return;
|
|
7952
7964
|
const i = r.parentNode;
|
|
7953
7965
|
if (!(i instanceof HTMLElement)) return;
|
|
7954
|
-
const s =
|
|
7955
|
-
s && (
|
|
7966
|
+
const s = se.get(i);
|
|
7967
|
+
s && (x.pointerDown = {
|
|
7956
7968
|
parent: {
|
|
7957
7969
|
el: i,
|
|
7958
7970
|
data: s
|
|
@@ -7985,10 +7997,10 @@ function Rs(e) {
|
|
|
7985
7997
|
pointerdown: ge(t.handleNodePointerdown),
|
|
7986
7998
|
handleNodePointerover: t.handleNodePointerover,
|
|
7987
7999
|
touchmove: (r) => {
|
|
7988
|
-
ue(
|
|
8000
|
+
ue(x) && r.cancelable && ce(r);
|
|
7989
8001
|
},
|
|
7990
8002
|
contextmenu: (r) => {
|
|
7991
|
-
ye(
|
|
8003
|
+
ye(x) && ce(r);
|
|
7992
8004
|
}
|
|
7993
8005
|
}), e.node.el.draggable = !0, t.reapplyDragClasses(e.node.el, e.parent.data), (n = e.parent.data.config.plugins) == null || n.forEach((r) => {
|
|
7994
8006
|
var a, i;
|
|
@@ -8003,9 +8015,9 @@ function Wr(e) {
|
|
|
8003
8015
|
});
|
|
8004
8016
|
}
|
|
8005
8017
|
function Fs(e, t) {
|
|
8006
|
-
if (!ue(
|
|
8007
|
-
const n = ye(
|
|
8008
|
-
|
|
8018
|
+
if (!ue(x)) return;
|
|
8019
|
+
const n = ye(x) ? t.config.synthDropZoneClass : t.config.dropZoneClass;
|
|
8020
|
+
x.draggedNode.el === e && ot([e], n, !0);
|
|
8009
8021
|
}
|
|
8010
8022
|
function Vs(e) {
|
|
8011
8023
|
var t;
|
|
@@ -8025,11 +8037,11 @@ function Ms(e) {
|
|
|
8025
8037
|
if (e.length === 1 && e[0].addedNodes.length === 1 && !(e[0].addedNodes[0] instanceof HTMLElement))
|
|
8026
8038
|
return;
|
|
8027
8039
|
const t = e[0].target;
|
|
8028
|
-
!(t instanceof HTMLElement) || !
|
|
8040
|
+
!(t instanceof HTMLElement) || !se.get(t) || qt(t);
|
|
8029
8041
|
}
|
|
8030
8042
|
function qt(e, t) {
|
|
8031
8043
|
var c;
|
|
8032
|
-
const n =
|
|
8044
|
+
const n = se.get(e);
|
|
8033
8045
|
if (!n) return;
|
|
8034
8046
|
n.privateClasses = Array.from(e.classList);
|
|
8035
8047
|
const r = [], a = n.config;
|
|
@@ -8068,7 +8080,7 @@ function qt(e, t) {
|
|
|
8068
8080
|
index: l
|
|
8069
8081
|
}
|
|
8070
8082
|
);
|
|
8071
|
-
if (!ue(
|
|
8083
|
+
if (!ue(x) && x.activeState && yt(x.activeState.node.data.value, u.value) && Ze(
|
|
8072
8084
|
{
|
|
8073
8085
|
data: n,
|
|
8074
8086
|
el: e
|
|
@@ -8077,10 +8089,10 @@ function qt(e, t) {
|
|
|
8077
8089
|
el: d,
|
|
8078
8090
|
data: u
|
|
8079
8091
|
},
|
|
8080
|
-
|
|
8081
|
-
), ue(
|
|
8082
|
-
|
|
8083
|
-
const h =
|
|
8092
|
+
x
|
|
8093
|
+
), ue(x) && yt(x.draggedNode.data.value, u.value)) {
|
|
8094
|
+
x.draggedNode.data = u, x.draggedNode.el = d;
|
|
8095
|
+
const h = x.draggedNodes.find(
|
|
8084
8096
|
(f) => f.data.value === u.value
|
|
8085
8097
|
);
|
|
8086
8098
|
h && (h.el = d);
|
|
@@ -8108,13 +8120,13 @@ function qt(e, t) {
|
|
|
8108
8120
|
}
|
|
8109
8121
|
});
|
|
8110
8122
|
}
|
|
8111
|
-
|
|
8123
|
+
se.set(e, { ...n, enabledNodes: s }), a.remapFinished(n), (c = n.config.plugins) == null || c.forEach((l) => {
|
|
8112
8124
|
var d, p;
|
|
8113
8125
|
(p = (d = l(e)) == null ? void 0 : d.remapFinished) == null || p.call(d);
|
|
8114
8126
|
});
|
|
8115
8127
|
}
|
|
8116
8128
|
function Ps() {
|
|
8117
|
-
|
|
8129
|
+
x.remapJustFinished = !0, "draggedNode" in x && (x.affectedNodes = []);
|
|
8118
8130
|
}
|
|
8119
8131
|
function zs(e) {
|
|
8120
8132
|
return !!e.targetData.parent.data.config.nativeDrag;
|
|
@@ -8122,10 +8134,10 @@ function zs(e) {
|
|
|
8122
8134
|
function Us(e) {
|
|
8123
8135
|
var t;
|
|
8124
8136
|
if (e.parent.data.config.multiDrag) {
|
|
8125
|
-
if (
|
|
8137
|
+
if (x.selectedState)
|
|
8126
8138
|
return [
|
|
8127
8139
|
e.node,
|
|
8128
|
-
...(t =
|
|
8140
|
+
...(t = x.selectedState) == null ? void 0 : t.nodes.filter(
|
|
8129
8141
|
(n) => n.el !== e.node.el
|
|
8130
8142
|
)
|
|
8131
8143
|
];
|
|
@@ -8133,8 +8145,8 @@ function Us(e) {
|
|
|
8133
8145
|
return [];
|
|
8134
8146
|
}
|
|
8135
8147
|
function js(e) {
|
|
8136
|
-
ue(
|
|
8137
|
-
|
|
8148
|
+
ue(x) && (x.emit("scrollStarted", x), !ye(x) && (x.preventEnter = !0, on && clearTimeout(on), on = setTimeout(() => {
|
|
8149
|
+
x.preventEnter = !1, x.emit("scrollEnded", x);
|
|
8138
8150
|
}, 100)));
|
|
8139
8151
|
}
|
|
8140
8152
|
function Gs(e, t) {
|
|
@@ -8346,10 +8358,10 @@ function Qs(e, t) {
|
|
|
8346
8358
|
n.nativeDrag && (We(e.e), Ye = !0, n.handleEnd(t));
|
|
8347
8359
|
}
|
|
8348
8360
|
function Xs(e) {
|
|
8349
|
-
e.e.target !== e.e.currentTarget &&
|
|
8361
|
+
e.e.target !== e.e.currentTarget && x.pointerDown && (x.pointerDown.node.el.draggable = !1);
|
|
8350
8362
|
}
|
|
8351
8363
|
function Js(e) {
|
|
8352
|
-
e.e.target !== e.e.currentTarget &&
|
|
8364
|
+
e.e.target !== e.e.currentTarget && x.pointerDown && (x.pointerDown.node.el.draggable = !0);
|
|
8353
8365
|
}
|
|
8354
8366
|
function Zs(e, t) {
|
|
8355
8367
|
const n = e.targetData.parent.data.config;
|
|
@@ -8368,7 +8380,7 @@ function Ks(e, t) {
|
|
|
8368
8380
|
Ye = !1;
|
|
8369
8381
|
return;
|
|
8370
8382
|
}
|
|
8371
|
-
const n = (r =
|
|
8383
|
+
const n = (r = se.get(t.initialParent.el)) == null ? void 0 : r.config;
|
|
8372
8384
|
n != null && n.onDragend && n.onDragend({
|
|
8373
8385
|
parent: t.currentParent,
|
|
8374
8386
|
values: st(t.currentParent.el, t.currentParent.data),
|
|
@@ -8380,7 +8392,7 @@ function Ks(e, t) {
|
|
|
8380
8392
|
function ed(e) {
|
|
8381
8393
|
var p, u, h, f, g;
|
|
8382
8394
|
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 =
|
|
8395
|
+
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
8396
|
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
8397
|
qe(t, i), qe(t, s), qe(t, c);
|
|
8386
8398
|
}), Je(e.draggedNodes, e.currentParent, e), Ze(e.currentParent, void 0, e);
|
|
@@ -8436,13 +8448,13 @@ function nd(e, t, n, r, a, i) {
|
|
|
8436
8448
|
"height",
|
|
8437
8449
|
"boxSizing",
|
|
8438
8450
|
"overflow"
|
|
8439
|
-
], p = (
|
|
8440
|
-
const S = window.getComputedStyle(
|
|
8451
|
+
], p = (b, T) => {
|
|
8452
|
+
const S = window.getComputedStyle(b);
|
|
8441
8453
|
d.forEach((E) => {
|
|
8442
8454
|
T.style[E] = S[E];
|
|
8443
8455
|
});
|
|
8444
|
-
}, u = (
|
|
8445
|
-
Object.assign(
|
|
8456
|
+
}, u = (b, T = {}) => {
|
|
8457
|
+
Object.assign(b.style, {
|
|
8446
8458
|
position: "absolute",
|
|
8447
8459
|
zIndex: "9999",
|
|
8448
8460
|
pointerEvents: "none",
|
|
@@ -8460,11 +8472,11 @@ function nd(e, t, n, r, a, i) {
|
|
|
8460
8472
|
else if (!s.multiDrag || a.length === 1)
|
|
8461
8473
|
c = e.el.cloneNode(!0), p(e.el, c), c.setAttribute("popover", "manual"), u(c);
|
|
8462
8474
|
else {
|
|
8463
|
-
const
|
|
8464
|
-
|
|
8475
|
+
const b = document.createElement("div");
|
|
8476
|
+
b.setAttribute("popover", "manual"), a.forEach((T) => {
|
|
8465
8477
|
const S = T.el.cloneNode(!0);
|
|
8466
|
-
p(T.el, S), S.style.pointerEvents = "none", S.style.margin = "0",
|
|
8467
|
-
}),
|
|
8478
|
+
p(T.el, S), S.style.pointerEvents = "none", S.style.margin = "0", b.append(S);
|
|
8479
|
+
}), 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
8480
|
}
|
|
8469
8481
|
c.id = "dnd-dragged-node-clone", t.el.appendChild(c), c.showPopover();
|
|
8470
8482
|
const h = {
|
|
@@ -8626,7 +8638,7 @@ function ge(e) {
|
|
|
8626
8638
|
function t(n) {
|
|
8627
8639
|
const r = Fe.get(n);
|
|
8628
8640
|
if (!r) return;
|
|
8629
|
-
const a =
|
|
8641
|
+
const a = se.get(n.parentNode);
|
|
8630
8642
|
if (a)
|
|
8631
8643
|
return {
|
|
8632
8644
|
node: {
|
|
@@ -8647,7 +8659,7 @@ function ge(e) {
|
|
|
8647
8659
|
e: n,
|
|
8648
8660
|
targetData: r
|
|
8649
8661
|
},
|
|
8650
|
-
|
|
8662
|
+
x
|
|
8651
8663
|
);
|
|
8652
8664
|
};
|
|
8653
8665
|
}
|
|
@@ -8670,7 +8682,7 @@ function Yt(e, t) {
|
|
|
8670
8682
|
}
|
|
8671
8683
|
function Vt(e) {
|
|
8672
8684
|
function t(n) {
|
|
8673
|
-
const r =
|
|
8685
|
+
const r = se.get(n);
|
|
8674
8686
|
if (r)
|
|
8675
8687
|
return {
|
|
8676
8688
|
parent: {
|
|
@@ -8687,7 +8699,7 @@ function Vt(e) {
|
|
|
8687
8699
|
e: n,
|
|
8688
8700
|
targetData: r
|
|
8689
8701
|
},
|
|
8690
|
-
|
|
8702
|
+
x
|
|
8691
8703
|
);
|
|
8692
8704
|
};
|
|
8693
8705
|
}
|
|
@@ -8726,7 +8738,7 @@ function qe(e, t) {
|
|
|
8726
8738
|
r.classList.remove(...n);
|
|
8727
8739
|
continue;
|
|
8728
8740
|
}
|
|
8729
|
-
const a = Fe.get(r) ||
|
|
8741
|
+
const a = Fe.get(r) || se.get(r);
|
|
8730
8742
|
if (a)
|
|
8731
8743
|
for (const i of n)
|
|
8732
8744
|
a.privateClasses.includes(i) || r.classList.remove(i);
|
|
@@ -8735,23 +8747,23 @@ function qe(e, t) {
|
|
|
8735
8747
|
function cr(e, t, n, r, a) {
|
|
8736
8748
|
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
8749
|
if (c) {
|
|
8738
|
-
const y = e[l],
|
|
8750
|
+
const y = e[l], b = e[d], T = y > 0, S = y + b < (s ? a.state.rootScrollWidth || 0 : e[u]);
|
|
8739
8751
|
return s ? {
|
|
8740
|
-
left: T && h <
|
|
8741
|
-
right: S && h >
|
|
8752
|
+
left: T && h < b * 0.075,
|
|
8753
|
+
right: S && h > b * (1 - 0.075)
|
|
8742
8754
|
} : {
|
|
8743
|
-
up: T && h <
|
|
8744
|
-
down: S && h >
|
|
8755
|
+
up: T && h < b * 0.075,
|
|
8756
|
+
down: S && h > b * (1 - 0.075)
|
|
8745
8757
|
};
|
|
8746
8758
|
}
|
|
8747
8759
|
if ((g === "auto" || g === "scroll") && e !== document.body && e !== document.documentElement) {
|
|
8748
|
-
const y = e[u],
|
|
8760
|
+
const y = e[u], b = e[p], T = e[l], S = T > 0, E = T < y - b;
|
|
8749
8761
|
return s ? {
|
|
8750
|
-
left: S && h < f +
|
|
8751
|
-
right: E && h > f +
|
|
8762
|
+
left: S && h < f + b * 0.075,
|
|
8763
|
+
right: E && h > f + b * (1 - 0.075)
|
|
8752
8764
|
} : {
|
|
8753
|
-
up: S && h < f +
|
|
8754
|
-
down: E && h > f +
|
|
8765
|
+
up: S && h < f + b * 0.075,
|
|
8766
|
+
down: E && h > f + b * (1 - 0.075)
|
|
8755
8767
|
};
|
|
8756
8768
|
}
|
|
8757
8769
|
return s ? { left: !1, right: !1 } : { up: !1, down: !1 };
|
|
@@ -8811,14 +8823,14 @@ function hd(e) {
|
|
|
8811
8823
|
if (!Qt(t)) return;
|
|
8812
8824
|
let n, r = !0;
|
|
8813
8825
|
for (; t && r; ) {
|
|
8814
|
-
if (Fe.has(t) ||
|
|
8815
|
-
r = !1, n =
|
|
8826
|
+
if (Fe.has(t) || se.has(t)) {
|
|
8827
|
+
r = !1, n = se.has(t);
|
|
8816
8828
|
break;
|
|
8817
8829
|
}
|
|
8818
8830
|
t = t.parentNode;
|
|
8819
8831
|
}
|
|
8820
8832
|
if (n) {
|
|
8821
|
-
const a =
|
|
8833
|
+
const a = se.get(t);
|
|
8822
8834
|
return a ? {
|
|
8823
8835
|
parent: {
|
|
8824
8836
|
el: t,
|
|
@@ -8828,7 +8840,7 @@ function hd(e) {
|
|
|
8828
8840
|
} else {
|
|
8829
8841
|
const a = Fe.get(t);
|
|
8830
8842
|
if (!a) return;
|
|
8831
|
-
const i =
|
|
8843
|
+
const i = se.get(t.parentNode);
|
|
8832
8844
|
return i ? {
|
|
8833
8845
|
node: {
|
|
8834
8846
|
el: t,
|
|
@@ -8949,7 +8961,7 @@ const hr = {
|
|
|
8949
8961
|
};
|
|
8950
8962
|
return window.addEventListener(ln, D), () => window.removeEventListener(ln, D);
|
|
8951
8963
|
}, [l]);
|
|
8952
|
-
const
|
|
8964
|
+
const b = U.useCallback(
|
|
8953
8965
|
(D) => {
|
|
8954
8966
|
l || window.dispatchEvent(
|
|
8955
8967
|
new CustomEvent(ln, { detail: D })
|
|
@@ -8957,13 +8969,13 @@ const hr = {
|
|
|
8957
8969
|
},
|
|
8958
8970
|
[l]
|
|
8959
8971
|
), T = (D) => {
|
|
8960
|
-
var
|
|
8972
|
+
var O;
|
|
8961
8973
|
if (l) return;
|
|
8962
|
-
const N = D.target, I = (
|
|
8963
|
-
|
|
8974
|
+
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;
|
|
8975
|
+
k && (g(k), b(k));
|
|
8964
8976
|
}, S = U.useCallback(() => {
|
|
8965
|
-
l || (g(null),
|
|
8966
|
-
}, [
|
|
8977
|
+
l || (g(null), b(null));
|
|
8978
|
+
}, [b, l]);
|
|
8967
8979
|
U.useEffect(() => {
|
|
8968
8980
|
if (l) return;
|
|
8969
8981
|
const D = () => S();
|
|
@@ -8974,10 +8986,10 @@ const hr = {
|
|
|
8974
8986
|
if (l) return;
|
|
8975
8987
|
const D = y.current;
|
|
8976
8988
|
if (h.length !== D.length && h.length === D.length + 1) {
|
|
8977
|
-
const N = new Set(D), I = h.find((
|
|
8989
|
+
const N = new Set(D), I = h.find((k) => !N.has(k)) || null;
|
|
8978
8990
|
if (I) {
|
|
8979
|
-
const
|
|
8980
|
-
c == null || c({ item: I, from:
|
|
8991
|
+
const k = n === "left" ? "right" : "left";
|
|
8992
|
+
c == null || c({ item: I, from: k, to: n });
|
|
8981
8993
|
}
|
|
8982
8994
|
}
|
|
8983
8995
|
y.current = h;
|
|
@@ -9009,7 +9021,7 @@ const hr = {
|
|
|
9009
9021
|
width: "100%",
|
|
9010
9022
|
alignItems: "center",
|
|
9011
9023
|
justifyContent: "center",
|
|
9012
|
-
children: /* @__PURE__ */ o(
|
|
9024
|
+
children: /* @__PURE__ */ o(C, { type: "label", size: "medium", appearance: "gray", padding: "12px", children: t || "No hay elementos en esta lista" })
|
|
9013
9025
|
}
|
|
9014
9026
|
) : h.map((D, N) => {
|
|
9015
9027
|
const I = !l && f === D;
|
|
@@ -9021,7 +9033,7 @@ const hr = {
|
|
|
9021
9033
|
"data-first": !!(s && N === 0) || void 0,
|
|
9022
9034
|
$active: I,
|
|
9023
9035
|
children: /* @__PURE__ */ o(ze, { border: !0, borderRadius: "8px", width: "100%", children: /* @__PURE__ */ o(
|
|
9024
|
-
|
|
9036
|
+
C,
|
|
9025
9037
|
{
|
|
9026
9038
|
type: "title",
|
|
9027
9039
|
appearance: I ? "primary" : "dark",
|
|
@@ -9043,7 +9055,7 @@ const hr = {
|
|
|
9043
9055
|
const { group: t = "clients", left: n, right: r, onMove: a, locked: i = !1 } = e, s = (c) => {
|
|
9044
9056
|
i || a == null || a(c);
|
|
9045
9057
|
};
|
|
9046
|
-
return /* @__PURE__ */
|
|
9058
|
+
return /* @__PURE__ */ m(
|
|
9047
9059
|
v,
|
|
9048
9060
|
{
|
|
9049
9061
|
justifyContent: "space-between",
|
|
@@ -9129,7 +9141,7 @@ const hr = {
|
|
|
9129
9141
|
}
|
|
9130
9142
|
`, xc = (e) => {
|
|
9131
9143
|
const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: a, textValues: i } = e;
|
|
9132
|
-
return /* @__PURE__ */
|
|
9144
|
+
return /* @__PURE__ */ m(xd, { children: [
|
|
9133
9145
|
/* @__PURE__ */ o(
|
|
9134
9146
|
J,
|
|
9135
9147
|
{
|
|
@@ -9195,7 +9207,7 @@ const Nd = {
|
|
|
9195
9207
|
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
9208
|
const Id = (e) => {
|
|
9197
9209
|
const { onClick: t, icon: n, value: r } = e;
|
|
9198
|
-
return /* @__PURE__ */
|
|
9210
|
+
return /* @__PURE__ */ m($d, { onClick: t, children: [
|
|
9199
9211
|
n && /* @__PURE__ */ o(
|
|
9200
9212
|
v,
|
|
9201
9213
|
{
|
|
@@ -9205,7 +9217,7 @@ const Id = (e) => {
|
|
|
9205
9217
|
children: /* @__PURE__ */ o(j, { icon: n, appearance: we.DARK })
|
|
9206
9218
|
}
|
|
9207
9219
|
),
|
|
9208
|
-
/* @__PURE__ */ o(
|
|
9220
|
+
/* @__PURE__ */ o(C, { size: "small", as: "span", children: r })
|
|
9209
9221
|
] });
|
|
9210
9222
|
};
|
|
9211
9223
|
function kd(e) {
|
|
@@ -9242,7 +9254,7 @@ const Ld = (e) => {
|
|
|
9242
9254
|
l = String(i);
|
|
9243
9255
|
}
|
|
9244
9256
|
return /* @__PURE__ */ o(
|
|
9245
|
-
|
|
9257
|
+
C,
|
|
9246
9258
|
{
|
|
9247
9259
|
size: s,
|
|
9248
9260
|
appearance: we.GRAY,
|
|
@@ -9367,7 +9379,7 @@ const Ld = (e) => {
|
|
|
9367
9379
|
backgroundColor: f = we.LIGHT,
|
|
9368
9380
|
boxSizing: g,
|
|
9369
9381
|
borderColor: y = we.LIGHT,
|
|
9370
|
-
overflowY:
|
|
9382
|
+
overflowY: b,
|
|
9371
9383
|
overflowX: T,
|
|
9372
9384
|
boxShadow: S,
|
|
9373
9385
|
minHeight: E,
|
|
@@ -9392,7 +9404,7 @@ const Ld = (e) => {
|
|
|
9392
9404
|
$boxSizing: g,
|
|
9393
9405
|
$borderColor: y,
|
|
9394
9406
|
$borderRadius: d,
|
|
9395
|
-
$overflowY:
|
|
9407
|
+
$overflowY: b,
|
|
9396
9408
|
$overflowX: T,
|
|
9397
9409
|
$boxShadow: S,
|
|
9398
9410
|
$minHeight: E,
|
|
@@ -9422,7 +9434,7 @@ const Ld = (e) => {
|
|
|
9422
9434
|
padding: p ? "8px" : "6px 16px",
|
|
9423
9435
|
boxSizing: "border-box",
|
|
9424
9436
|
backgroundColor: we.GRAY,
|
|
9425
|
-
children: /* @__PURE__ */
|
|
9437
|
+
children: /* @__PURE__ */ m(
|
|
9426
9438
|
Ae,
|
|
9427
9439
|
{
|
|
9428
9440
|
templateColumns: s === "column" ? "1fr" : "auto 1fr",
|
|
@@ -9434,7 +9446,7 @@ const Ld = (e) => {
|
|
|
9434
9446
|
height: "auto",
|
|
9435
9447
|
children: [
|
|
9436
9448
|
/* @__PURE__ */ o(
|
|
9437
|
-
|
|
9449
|
+
C,
|
|
9438
9450
|
{
|
|
9439
9451
|
type: "label",
|
|
9440
9452
|
size: p ? "small" : "medium",
|
|
@@ -9717,12 +9729,12 @@ const Yd = A.div`
|
|
|
9717
9729
|
cursor: pointer;
|
|
9718
9730
|
`, Qd = (e) => {
|
|
9719
9731
|
const { title: t, defaultOpen: n = !0, children: r } = e, [a, i] = Q(n);
|
|
9720
|
-
return /* @__PURE__ */
|
|
9721
|
-
/* @__PURE__ */
|
|
9732
|
+
return /* @__PURE__ */ m(Yd, { children: [
|
|
9733
|
+
/* @__PURE__ */ m(Wd, { onClick: () => {
|
|
9722
9734
|
i(!a);
|
|
9723
9735
|
}, children: [
|
|
9724
9736
|
/* @__PURE__ */ o(
|
|
9725
|
-
|
|
9737
|
+
C,
|
|
9726
9738
|
{
|
|
9727
9739
|
type: "label",
|
|
9728
9740
|
size: "large",
|
|
@@ -9743,8 +9755,8 @@ const Yd = A.div`
|
|
|
9743
9755
|
}
|
|
9744
9756
|
)
|
|
9745
9757
|
] }),
|
|
9746
|
-
a && /* @__PURE__ */
|
|
9747
|
-
/* @__PURE__ */ o(
|
|
9758
|
+
a && /* @__PURE__ */ m(G, { children: [
|
|
9759
|
+
/* @__PURE__ */ o(re, { dashed: !0 }),
|
|
9748
9760
|
r
|
|
9749
9761
|
] })
|
|
9750
9762
|
] });
|
|
@@ -9862,8 +9874,8 @@ function Xd(e) {
|
|
|
9862
9874
|
id: `${a}[${p}].${f}`,
|
|
9863
9875
|
label: fe(f),
|
|
9864
9876
|
value: (g) => {
|
|
9865
|
-
var y,
|
|
9866
|
-
return (
|
|
9877
|
+
var y, b;
|
|
9878
|
+
return (b = (y = g == null ? void 0 : g[a]) == null ? void 0 : y[p]) == null ? void 0 : b[f];
|
|
9867
9879
|
},
|
|
9868
9880
|
render: (g) => ve(g)
|
|
9869
9881
|
}))
|
|
@@ -9920,11 +9932,11 @@ function Xd(e) {
|
|
|
9920
9932
|
items: g.map((y) => ({
|
|
9921
9933
|
id: `${a}.values[${h}].${y}`,
|
|
9922
9934
|
label: fe(y),
|
|
9923
|
-
value: (
|
|
9935
|
+
value: (b) => {
|
|
9924
9936
|
var T, S, E;
|
|
9925
|
-
return (E = (S = (T =
|
|
9937
|
+
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
9938
|
},
|
|
9927
|
-
render: (
|
|
9939
|
+
render: (b) => ve(b)
|
|
9928
9940
|
}))
|
|
9929
9941
|
};
|
|
9930
9942
|
})
|
|
@@ -10023,7 +10035,7 @@ function Ec(e) {
|
|
|
10023
10035
|
renderedNodes: u
|
|
10024
10036
|
};
|
|
10025
10037
|
}).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__ */
|
|
10038
|
+
return /* @__PURE__ */ o(v, { direction: "column", width: "100%", gap: "24px", children: d.map((p) => /* @__PURE__ */ o(Qd, { title: p.name, children: /* @__PURE__ */ m(
|
|
10027
10039
|
v,
|
|
10028
10040
|
{
|
|
10029
10041
|
direction: "column",
|
|
@@ -10082,7 +10094,7 @@ export {
|
|
|
10082
10094
|
ds as RulesForm,
|
|
10083
10095
|
Sc as SendButton,
|
|
10084
10096
|
de as ValueDataType,
|
|
10085
|
-
|
|
10097
|
+
P as ValueHowToSetUp,
|
|
10086
10098
|
Ec as Verification,
|
|
10087
10099
|
Eo as ViewMultipleChoices,
|
|
10088
10100
|
qo as ViewMultipleChoicesNew,
|