@isettingkit/business-rules 3.2.2 → 3.2.4
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 +2 -2
- package/dist/index.es.js +370 -365
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as i, jsxs as b, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { MdOutlineDelete as qt, MdOutlinePercent as wr, MdOutlineChevronRight as na, MdOutlineError as ra, MdClear as wt, MdOutlineFilterAltOff as Sr, MdOutlineLockClock as nt, MdAdd as St, MdOutlineCreate as aa, MdExpandLess as oa, MdExpandMore as un, MdInfo as ia, MdCached as la, MdOutlineInfo as sa, MdClose as da, MdOutlineFilterAlt as xr, MdChevronRight as Mn, MdArrowRight as ca, MdOutlineArrowCircleLeft as ua, MdOutlineArrowCircleRight as pa, MdKeyboardArrowUp as ha, MdKeyboardArrowDown as ga, MdOutlineArrowBack as fa } from "react-icons/md";
|
|
3
|
-
import { inube as k, Stack as v, Divider as K, Icon as B, Textfield as mt, Moneyfield as Cr, Date as
|
|
3
|
+
import { inube as k, Stack as v, Divider as K, Icon as B, Textfield as mt, Moneyfield as Cr, Date as Oe, Numberfield as xn, Text as D, Tag as we, Checkpicker as Cn, Grid as Fe, Select as Ae, Label as ma, OptionItem as Dr, Box as Nr, useMediaQuery as Se, Blanket as xt, Button as Z, SkeletonLine as fe, Toggle as rt, Checkbox as Er, Tabs as Ar, SkeletonIcon as ba, Fieldset as Qe, OptionList as ya } from "@inubekit/inubekit";
|
|
4
4
|
import $, { ThemeContext as Dn, keyframes as Nn } from "styled-components";
|
|
5
|
-
import U, { useState as
|
|
5
|
+
import U, { useState as Y, forwardRef as va, useContext as En, useMemo as Yt, useRef as Ke, useEffect as Pe, useCallback as Ta } from "react";
|
|
6
6
|
import { createPortal as Ct } from "react-dom";
|
|
7
7
|
import { useFormik as An } from "formik";
|
|
8
|
-
import { string as
|
|
8
|
+
import { string as Re, mixed as ze, object as ne, number as $e, lazy as bt, date as yt } from "yup";
|
|
9
9
|
import { Link as $r, useNavigate as wa, useLocation as Sa } from "react-router-dom";
|
|
10
10
|
import xa from "axios";
|
|
11
11
|
import { franc as Ca } from "franc-min";
|
|
@@ -119,7 +119,7 @@ const Dt = (e) => {
|
|
|
119
119
|
number: (e) => e,
|
|
120
120
|
alphabetical: (e) => e,
|
|
121
121
|
date: (e) => e
|
|
122
|
-
},
|
|
122
|
+
}, Ue = (e, t) => (Aa[t] || ((r) => r))(e), Pn = {
|
|
123
123
|
render: ({
|
|
124
124
|
name: e,
|
|
125
125
|
label: t,
|
|
@@ -153,7 +153,7 @@ const Dt = (e) => {
|
|
|
153
153
|
statusValidate: o,
|
|
154
154
|
onBlur: s
|
|
155
155
|
}) => /* @__PURE__ */ i(
|
|
156
|
-
|
|
156
|
+
Oe,
|
|
157
157
|
{
|
|
158
158
|
id: e,
|
|
159
159
|
label: t,
|
|
@@ -216,14 +216,14 @@ const Dt = (e) => {
|
|
|
216
216
|
)
|
|
217
217
|
};
|
|
218
218
|
var We = /* @__PURE__ */ ((e) => (e.ALPHABETICAL = "alphabetical", e.CURRENCY = "currency", e.DATE = "date", e.MONETARY = "monetary", e.NUMBER = "number", e.PERCENTAGE = "percentage", e))(We || {});
|
|
219
|
-
const
|
|
219
|
+
const Oa = {
|
|
220
220
|
[We.ALPHABETICAL]: Na,
|
|
221
221
|
[We.CURRENCY]: Pn,
|
|
222
222
|
[We.DATE]: $a,
|
|
223
223
|
[We.MONETARY]: Pn,
|
|
224
224
|
[We.NUMBER]: ka,
|
|
225
225
|
[We.PERCENTAGE]: Ia
|
|
226
|
-
},
|
|
226
|
+
}, Ra = (e) => Oa[e] || null, kr = ({
|
|
227
227
|
type: e,
|
|
228
228
|
name: t,
|
|
229
229
|
label: n,
|
|
@@ -234,7 +234,7 @@ const Ra = {
|
|
|
234
234
|
onBlur: c,
|
|
235
235
|
placeholder: l
|
|
236
236
|
}) => {
|
|
237
|
-
const d =
|
|
237
|
+
const d = Ra(e);
|
|
238
238
|
return d ? /* @__PURE__ */ i(j, { children: d.render({
|
|
239
239
|
name: t,
|
|
240
240
|
label: n,
|
|
@@ -370,7 +370,7 @@ const Ra = {
|
|
|
370
370
|
onBlur: () => t.setFieldTouched("value", !0, !0)
|
|
371
371
|
}
|
|
372
372
|
) });
|
|
373
|
-
},
|
|
373
|
+
}, Or = (e) => {
|
|
374
374
|
const {
|
|
375
375
|
handleInputChangeFrom: t,
|
|
376
376
|
handleInputChangeTo: n,
|
|
@@ -385,7 +385,7 @@ const Ra = {
|
|
|
385
385
|
statusFrom: u,
|
|
386
386
|
statusTo: h,
|
|
387
387
|
onBlur: g
|
|
388
|
-
} = e, [f, y] =
|
|
388
|
+
} = e, [f, y] = Y(c), [m, T] = Y(l), S = (N) => {
|
|
389
389
|
let A;
|
|
390
390
|
a === "currency" ? A = zt(N.target.value) : a === "date" ? A = new Date(N.target.value) : A = Number(N.target.value), y(A), t(A);
|
|
391
391
|
}, E = (N) => {
|
|
@@ -398,7 +398,7 @@ const Ra = {
|
|
|
398
398
|
/* @__PURE__ */ b(v, { alignItems: "baseline", gap: "8px", children: [
|
|
399
399
|
/* @__PURE__ */ i(D, { type: "body", size: "large", appearance: "dark", children: "De" }),
|
|
400
400
|
a === "date" ? /* @__PURE__ */ i(
|
|
401
|
-
|
|
401
|
+
Oe,
|
|
402
402
|
{
|
|
403
403
|
id: `${r}DateFrom`,
|
|
404
404
|
value: C(f, a),
|
|
@@ -428,7 +428,7 @@ const Ra = {
|
|
|
428
428
|
/* @__PURE__ */ b(v, { alignItems: "baseline", gap: "8px", children: [
|
|
429
429
|
/* @__PURE__ */ i(D, { type: "body", size: "large", appearance: "dark", children: "a" }),
|
|
430
430
|
a === "date" ? /* @__PURE__ */ i(
|
|
431
|
-
|
|
431
|
+
Oe,
|
|
432
432
|
{
|
|
433
433
|
id: `${r}DateTo`,
|
|
434
434
|
value: C(m, a),
|
|
@@ -463,7 +463,7 @@ const Ra = {
|
|
|
463
463
|
}) => {
|
|
464
464
|
var n, r, a, o, s, c, l, d;
|
|
465
465
|
return /* @__PURE__ */ i($n, { children: /* @__PURE__ */ i(
|
|
466
|
-
|
|
466
|
+
Or,
|
|
467
467
|
{
|
|
468
468
|
id: e.ruleName,
|
|
469
469
|
label: e.labelName,
|
|
@@ -538,7 +538,7 @@ const Ra = {
|
|
|
538
538
|
}) => {
|
|
539
539
|
var n, r, a, o, s, c, l, d, p, u, h, g, f, y;
|
|
540
540
|
return /* @__PURE__ */ i(
|
|
541
|
-
|
|
541
|
+
Or,
|
|
542
542
|
{
|
|
543
543
|
id: `range-${e.conditionName}`,
|
|
544
544
|
label: e.conditionName,
|
|
@@ -827,7 +827,7 @@ const Ra = {
|
|
|
827
827
|
onBlur: l
|
|
828
828
|
}
|
|
829
829
|
) : /* @__PURE__ */ i(
|
|
830
|
-
|
|
830
|
+
Oe,
|
|
831
831
|
{
|
|
832
832
|
id: t,
|
|
833
833
|
value: r,
|
|
@@ -980,13 +980,13 @@ const Ra = {
|
|
|
980
980
|
);
|
|
981
981
|
}
|
|
982
982
|
};
|
|
983
|
-
var
|
|
983
|
+
var q = /* @__PURE__ */ ((e) => (e.ALPHABETICAL = "alphabetical", e.MONETARY = "monetary", e.DATE = "date", e.NUMBER = "number", e.PERCENTAGE = "percentage", e))(q || {});
|
|
984
984
|
const Ja = {
|
|
985
|
-
[
|
|
986
|
-
[
|
|
987
|
-
[
|
|
988
|
-
[
|
|
989
|
-
[
|
|
985
|
+
[q.ALPHABETICAL]: qa,
|
|
986
|
+
[q.MONETARY]: Ya,
|
|
987
|
+
[q.DATE]: Wa,
|
|
988
|
+
[q.NUMBER]: Qa,
|
|
989
|
+
[q.PERCENTAGE]: Xa
|
|
990
990
|
}, Za = (e) => Ja[e] || null, Gt = (e) => {
|
|
991
991
|
const {
|
|
992
992
|
condition: t,
|
|
@@ -1284,7 +1284,7 @@ const lo = (e) => {
|
|
|
1284
1284
|
)
|
|
1285
1285
|
] });
|
|
1286
1286
|
}, so = va((e, t) => {
|
|
1287
|
-
var _e,
|
|
1287
|
+
var _e, je;
|
|
1288
1288
|
const {
|
|
1289
1289
|
displayList: n,
|
|
1290
1290
|
disabled: r,
|
|
@@ -1307,19 +1307,19 @@ const lo = (e) => {
|
|
|
1307
1307
|
editable: C = !1,
|
|
1308
1308
|
clearable: N,
|
|
1309
1309
|
onKeyUp: A,
|
|
1310
|
-
onBlur:
|
|
1311
|
-
onChange:
|
|
1310
|
+
onBlur: O,
|
|
1311
|
+
onChange: V,
|
|
1312
1312
|
onClick: G,
|
|
1313
1313
|
onFocus: te,
|
|
1314
1314
|
onOptionClick: ie,
|
|
1315
1315
|
onCheckboxChange: ce,
|
|
1316
1316
|
handleClear: re
|
|
1317
|
-
} = e,
|
|
1317
|
+
} = e, L = En(Dn), M = ((je = (_e = L == null ? void 0 : L.input) == null ? void 0 : _e.required) == null ? void 0 : je.appearance) || Ie.required.appearance, Ce = f && !r, De = T || m === "" ? "" : zn(h, m), Ve = Yt(
|
|
1318
1318
|
() => h.filter((Q) => E.includes(Q.id)),
|
|
1319
1319
|
[h, E]
|
|
1320
|
-
), Ye = (Q,
|
|
1320
|
+
), Ye = (Q, W) => {
|
|
1321
1321
|
Q.stopPropagation(), ce({
|
|
1322
|
-
target: { checked: !1, value:
|
|
1322
|
+
target: { checked: !1, value: W }
|
|
1323
1323
|
});
|
|
1324
1324
|
};
|
|
1325
1325
|
return /* @__PURE__ */ b(to, { $fullwidth: o, $disabled: r, ref: t, children: [
|
|
@@ -1372,8 +1372,8 @@ const lo = (e) => {
|
|
|
1372
1372
|
$focused: a,
|
|
1373
1373
|
readOnly: !C,
|
|
1374
1374
|
onFocus: te,
|
|
1375
|
-
onBlur:
|
|
1376
|
-
onChange: (Q) =>
|
|
1375
|
+
onBlur: O,
|
|
1376
|
+
onChange: (Q) => V(u, Q.target.value),
|
|
1377
1377
|
onClick: C ? G : void 0,
|
|
1378
1378
|
onKeyUp: A
|
|
1379
1379
|
}
|
|
@@ -1393,7 +1393,7 @@ const lo = (e) => {
|
|
|
1393
1393
|
label: Q.label,
|
|
1394
1394
|
removable: !0,
|
|
1395
1395
|
displayIcon: !1,
|
|
1396
|
-
onClose: (
|
|
1396
|
+
onClose: (W) => Ye(W, Q.id)
|
|
1397
1397
|
},
|
|
1398
1398
|
Q.id
|
|
1399
1399
|
)) : (m ?? "") !== "" && /* @__PURE__ */ i(
|
|
@@ -1468,70 +1468,70 @@ const lo = (e) => {
|
|
|
1468
1468
|
picker: C = !1,
|
|
1469
1469
|
showChevron: N = !0,
|
|
1470
1470
|
editable: A = !1,
|
|
1471
|
-
clearable:
|
|
1472
|
-
} = e, [
|
|
1473
|
-
|
|
1471
|
+
clearable: O = !0
|
|
1472
|
+
} = e, [V, G] = Y(!1), [te, ie] = Y(!1), [ce, re] = Y([]), L = Ke(null);
|
|
1473
|
+
Pe(() => {
|
|
1474
1474
|
if (C) {
|
|
1475
|
-
const
|
|
1476
|
-
re(
|
|
1475
|
+
const W = S ? S.split(",").map((ee) => ee.trim()) : [];
|
|
1476
|
+
re(W);
|
|
1477
1477
|
}
|
|
1478
1478
|
}, [S, C]);
|
|
1479
1479
|
function M() {
|
|
1480
1480
|
p(l, ""), re([]), G(!1);
|
|
1481
1481
|
}
|
|
1482
|
-
function Ce(
|
|
1482
|
+
function Ce(W) {
|
|
1483
1483
|
if (!t) {
|
|
1484
|
-
G(!
|
|
1484
|
+
G(!V);
|
|
1485
1485
|
try {
|
|
1486
|
-
u && u(
|
|
1486
|
+
u && u(W);
|
|
1487
1487
|
} catch (ee) {
|
|
1488
1488
|
console.error(`Error when clicking over select. ${ee}`);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
}
|
|
1492
|
-
const De = Ta((
|
|
1493
|
-
|
|
1492
|
+
const De = Ta((W) => {
|
|
1493
|
+
L.current && W.target && !L.current.contains(W.target) && G(!1);
|
|
1494
1494
|
}, []);
|
|
1495
|
-
function Ve(
|
|
1495
|
+
function Ve(W) {
|
|
1496
1496
|
try {
|
|
1497
|
-
|
|
1497
|
+
W.type === "focus" && (ie(!0), h && h(W)), W.type === "blur" && (ie(!1), d && d(W));
|
|
1498
1498
|
} catch (ee) {
|
|
1499
1499
|
console.error(`Error executing focus/blur callback. ${ee}`);
|
|
1500
1500
|
}
|
|
1501
1501
|
}
|
|
1502
|
-
function Ye(
|
|
1502
|
+
function Ye(W) {
|
|
1503
1503
|
G(!1);
|
|
1504
1504
|
try {
|
|
1505
|
-
p && p(l,
|
|
1505
|
+
p && p(l, W);
|
|
1506
1506
|
} catch (ee) {
|
|
1507
1507
|
console.error(`Error when changing value using callback. ${ee}`);
|
|
1508
1508
|
}
|
|
1509
1509
|
}
|
|
1510
|
-
function _e(
|
|
1511
|
-
|
|
1510
|
+
function _e(W) {
|
|
1511
|
+
W.key === "Escape" && G(!1), G(!V);
|
|
1512
1512
|
try {
|
|
1513
|
-
g && g(
|
|
1513
|
+
g && g(W);
|
|
1514
1514
|
} catch (ee) {
|
|
1515
1515
|
console.error(`Error when clicking over select. ${ee}`);
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
|
-
function
|
|
1519
|
-
const { value: ee, checked: Et } =
|
|
1518
|
+
function je(W) {
|
|
1519
|
+
const { value: ee, checked: Et } = W.target;
|
|
1520
1520
|
re((it) => {
|
|
1521
1521
|
const lt = Et ? [...it, ee] : it.filter((st) => st !== ee);
|
|
1522
1522
|
return p(l, lt.join(",")), lt;
|
|
1523
1523
|
});
|
|
1524
1524
|
}
|
|
1525
|
-
|
|
1525
|
+
Pe(() => (document.addEventListener("click", De), () => {
|
|
1526
1526
|
document.removeEventListener("click", De);
|
|
1527
1527
|
}), [De]);
|
|
1528
|
-
const Q = Yt(() =>
|
|
1528
|
+
const Q = Yt(() => O || C ? f : [{ id: "empty-option", label: "", value: "" }, ...f], [f, O, C]);
|
|
1529
1529
|
return /* @__PURE__ */ i(
|
|
1530
1530
|
so,
|
|
1531
1531
|
{
|
|
1532
|
-
ref:
|
|
1532
|
+
ref: L,
|
|
1533
1533
|
disabled: t,
|
|
1534
|
-
displayList:
|
|
1534
|
+
displayList: V || E,
|
|
1535
1535
|
focused: te,
|
|
1536
1536
|
fullwidth: n,
|
|
1537
1537
|
id: r,
|
|
@@ -1549,7 +1549,7 @@ const lo = (e) => {
|
|
|
1549
1549
|
showChevron: N,
|
|
1550
1550
|
checkedItems: ce,
|
|
1551
1551
|
editable: A,
|
|
1552
|
-
clearable:
|
|
1552
|
+
clearable: O,
|
|
1553
1553
|
handleClear: M,
|
|
1554
1554
|
onBlur: Ve,
|
|
1555
1555
|
onChange: p,
|
|
@@ -1557,10 +1557,10 @@ const lo = (e) => {
|
|
|
1557
1557
|
onFocus: Ve,
|
|
1558
1558
|
onOptionClick: Ye,
|
|
1559
1559
|
onKeyUp: _e,
|
|
1560
|
-
onCheckboxChange:
|
|
1560
|
+
onCheckboxChange: je
|
|
1561
1561
|
}
|
|
1562
1562
|
);
|
|
1563
|
-
},
|
|
1563
|
+
}, Rr = (e) => {
|
|
1564
1564
|
const {
|
|
1565
1565
|
disabled: t = !1,
|
|
1566
1566
|
fullwidth: n = !1,
|
|
@@ -1615,7 +1615,7 @@ const lo = (e) => {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
),
|
|
1617
1617
|
/* @__PURE__ */ i(
|
|
1618
|
-
|
|
1618
|
+
Rr,
|
|
1619
1619
|
{
|
|
1620
1620
|
name: e.conditionName,
|
|
1621
1621
|
placeholder: r,
|
|
@@ -1649,33 +1649,33 @@ const lo = (e) => {
|
|
|
1649
1649
|
listOfPossibleValues: T,
|
|
1650
1650
|
placeholderFrom: S,
|
|
1651
1651
|
placeholderTo: E
|
|
1652
|
-
} = e, [C, N] =
|
|
1652
|
+
} = e, [C, N] = Y(l), [A, O] = Y(d), V = (L) => {
|
|
1653
1653
|
let M;
|
|
1654
|
-
if (o ===
|
|
1655
|
-
M = zt(String(
|
|
1654
|
+
if (o === q.MONETARY)
|
|
1655
|
+
M = zt(String(L));
|
|
1656
1656
|
else if (o === "date")
|
|
1657
|
-
M =
|
|
1657
|
+
M = L instanceof Date ? L : new Date(String(L));
|
|
1658
1658
|
else if (o === "percentage") {
|
|
1659
|
-
const Ce = Ut(String(
|
|
1660
|
-
N(String(
|
|
1659
|
+
const Ce = Ut(String(L));
|
|
1660
|
+
N(String(L)), n(Ce);
|
|
1661
1661
|
return;
|
|
1662
|
-
} else o === "number" ? M = Number(
|
|
1662
|
+
} else o === "number" ? M = Number(L) : M = String(L);
|
|
1663
1663
|
N(M), n(M);
|
|
1664
|
-
}, G = (
|
|
1664
|
+
}, G = (L) => {
|
|
1665
1665
|
let M;
|
|
1666
|
-
if (o ===
|
|
1667
|
-
M = zt(String(
|
|
1666
|
+
if (o === q.MONETARY)
|
|
1667
|
+
M = zt(String(L));
|
|
1668
1668
|
else if (o === "date")
|
|
1669
|
-
M =
|
|
1669
|
+
M = L instanceof Date ? L : new Date(String(L));
|
|
1670
1670
|
else if (o === "percentage") {
|
|
1671
|
-
const Ce = Ut(String(
|
|
1672
|
-
|
|
1671
|
+
const Ce = Ut(String(L));
|
|
1672
|
+
O(String(L)), r(Ce);
|
|
1673
1673
|
return;
|
|
1674
|
-
} else o === "number" ? M = Number(
|
|
1675
|
-
|
|
1676
|
-
}, te = (
|
|
1677
|
-
|
|
1678
|
-
}, ie = (
|
|
1674
|
+
} else o === "number" ? M = Number(L) : M = String(L);
|
|
1675
|
+
O(M), r(M);
|
|
1676
|
+
}, te = (L, M) => {
|
|
1677
|
+
L === `${a}SelectFrom` && (N(M), n(M)), L === `${a}SelectTo` && (O(M), r(M));
|
|
1678
|
+
}, ie = (L, M) => M === "date" && L instanceof Date ? L.toISOString().split("T")[0] : typeof L == "number" ? L : L ?? "", ce = y ?? f, re = m ?? f;
|
|
1679
1679
|
return /* @__PURE__ */ b(
|
|
1680
1680
|
v,
|
|
1681
1681
|
{
|
|
@@ -1734,8 +1734,8 @@ const lo = (e) => {
|
|
|
1734
1734
|
placeholder: S,
|
|
1735
1735
|
value: ie(C, o),
|
|
1736
1736
|
required: c,
|
|
1737
|
-
onChange: (
|
|
1738
|
-
|
|
1737
|
+
onChange: (L, M) => {
|
|
1738
|
+
V(M);
|
|
1739
1739
|
},
|
|
1740
1740
|
messageValidate: p,
|
|
1741
1741
|
statusValidate: h,
|
|
@@ -1784,7 +1784,7 @@ const lo = (e) => {
|
|
|
1784
1784
|
placeholder: E,
|
|
1785
1785
|
value: ie(A, o),
|
|
1786
1786
|
required: c,
|
|
1787
|
-
onChange: (
|
|
1787
|
+
onChange: (L, M) => {
|
|
1788
1788
|
G(M);
|
|
1789
1789
|
},
|
|
1790
1790
|
messageValidate: u,
|
|
@@ -1859,9 +1859,9 @@ const lo = (e) => {
|
|
|
1859
1859
|
let d = "";
|
|
1860
1860
|
l != null ? typeof l == "object" && !Array.isArray(l) && "value" in l ? d = l.value ?? "" : d = l : e.value !== void 0 && (d = e.value);
|
|
1861
1861
|
const p = s[r], u = c[r], h = typeof p == "string" ? p : p && typeof p == "object" && typeof p.value == "string" ? p.value : "", g = u && typeof u == "object" ? !!u.value : !!u, f = g && h ? "invalid" : g ? "valid" : void 0, y = (N, A) => {
|
|
1862
|
-
const
|
|
1863
|
-
|
|
1864
|
-
...
|
|
1862
|
+
const O = o[r];
|
|
1863
|
+
O && typeof O == "object" && !Array.isArray(O) ? t.setFieldValue(`${a}.value`, A) : t.setFieldValue(a, {
|
|
1864
|
+
...O && typeof O == "object" ? O : {},
|
|
1865
1865
|
value: A
|
|
1866
1866
|
});
|
|
1867
1867
|
};
|
|
@@ -1895,13 +1895,13 @@ const lo = (e) => {
|
|
|
1895
1895
|
label: e.labelName,
|
|
1896
1896
|
valueFrom: a == null ? void 0 : a.from,
|
|
1897
1897
|
valueTo: a == null ? void 0 : a.to,
|
|
1898
|
-
handleInputChangeFrom: (
|
|
1898
|
+
handleInputChangeFrom: (O) => t.setFieldValue(
|
|
1899
1899
|
`conditionsThatEstablishesTheDecision.${n}.${e.conditionName}.value.from`,
|
|
1900
|
-
|
|
1900
|
+
O
|
|
1901
1901
|
),
|
|
1902
|
-
handleInputChangeTo: (
|
|
1902
|
+
handleInputChangeTo: (O) => t.setFieldValue(
|
|
1903
1903
|
`conditionsThatEstablishesTheDecision.${n}.${e.conditionName}.value.to`,
|
|
1904
|
-
|
|
1904
|
+
O
|
|
1905
1905
|
),
|
|
1906
1906
|
messageFrom: c,
|
|
1907
1907
|
messageTo: l,
|
|
@@ -1923,7 +1923,7 @@ const lo = (e) => {
|
|
|
1923
1923
|
return /* @__PURE__ */ b(v, { alignItems: "center", gap: "16px", width: "100%", children: [
|
|
1924
1924
|
/* @__PURE__ */ i(D, { type: "body", weight: "normal", size: "medium", appearance: "dark", children: e.labelName }),
|
|
1925
1925
|
/* @__PURE__ */ i(
|
|
1926
|
-
|
|
1926
|
+
Rr,
|
|
1927
1927
|
{
|
|
1928
1928
|
name: e.conditionName,
|
|
1929
1929
|
placeholder: e.placeholder ?? "Seleccione una opción",
|
|
@@ -2079,11 +2079,11 @@ const lo = (e) => {
|
|
|
2079
2079
|
] })
|
|
2080
2080
|
] });
|
|
2081
2081
|
}, yc = {
|
|
2082
|
-
[
|
|
2083
|
-
[
|
|
2084
|
-
[
|
|
2085
|
-
[
|
|
2086
|
-
[
|
|
2082
|
+
[q.ALPHABETICAL]: (e) => /^[a-zA-Z]+$/.test(e),
|
|
2083
|
+
[q.NUMBER]: (e) => /^[0-9]*$/.test(e),
|
|
2084
|
+
[q.MONETARY]: (e) => /^[0-9]*$/.test(e),
|
|
2085
|
+
[q.PERCENTAGE]: (e) => /^\d{1,2}(\.\d+)?%?$/.test(e),
|
|
2086
|
+
[q.DATE]: (e) => !isNaN(Date.parse(e))
|
|
2087
2087
|
}, To = (e) => {
|
|
2088
2088
|
const t = /* @__PURE__ */ new Date(), n = new Date(e), r = new Date(
|
|
2089
2089
|
t.getFullYear(),
|
|
@@ -2096,7 +2096,7 @@ const lo = (e) => {
|
|
|
2096
2096
|
);
|
|
2097
2097
|
return r <= a;
|
|
2098
2098
|
}, In = (e) => {
|
|
2099
|
-
const [t, n] =
|
|
2099
|
+
const [t, n] = Y(!1), r = To(e);
|
|
2100
2100
|
return { showModal: t, handleOnClick: () => {
|
|
2101
2101
|
n(!t);
|
|
2102
2102
|
}, stillValid: r };
|
|
@@ -2118,14 +2118,14 @@ const lo = (e) => {
|
|
|
2118
2118
|
from: e.from ?? "",
|
|
2119
2119
|
to: e.to ?? ""
|
|
2120
2120
|
}), Do = (e) => e.value, No = (e) => e.value, Eo = (e) => e.value;
|
|
2121
|
-
var
|
|
2121
|
+
var F = /* @__PURE__ */ ((e) => (e.EQUAL = "EqualTo", e.GREATER_THAN = "GreaterThan", e.LESS_THAN = "LessThan", e.LIST_OF_VALUES = "ListOfValues", e.LIST_OF_VALUES_MULTI = "ListOfValuesMulti", e.RANGE = "Range", e))(F || {});
|
|
2122
2122
|
const Ao = {
|
|
2123
|
-
[
|
|
2124
|
-
[
|
|
2125
|
-
[
|
|
2126
|
-
[
|
|
2127
|
-
[
|
|
2128
|
-
[
|
|
2123
|
+
[F.LIST_OF_VALUES]: So,
|
|
2124
|
+
[F.LIST_OF_VALUES_MULTI]: xo,
|
|
2125
|
+
[F.RANGE]: Co,
|
|
2126
|
+
[F.GREATER_THAN]: Do,
|
|
2127
|
+
[F.LESS_THAN]: No,
|
|
2128
|
+
[F.EQUAL]: Eo
|
|
2129
2129
|
}, gt = (e) => {
|
|
2130
2130
|
const t = e == null ? void 0 : e.value, n = typeof t == "object" && t !== null && !Array.isArray(t), r = Ao[e == null ? void 0 : e.howToSetTheDecision] || wo;
|
|
2131
2131
|
return n && r(t) || t || void 0;
|
|
@@ -2175,7 +2175,7 @@ const Ao = {
|
|
|
2175
2175
|
children: t
|
|
2176
2176
|
}
|
|
2177
2177
|
),
|
|
2178
|
-
n === "condition" ? /* @__PURE__ */ i(D, { type: "body", size: "medium", appearance: "gray", children:
|
|
2178
|
+
n === "condition" ? /* @__PURE__ */ i(D, { type: "body", size: "medium", appearance: "gray", children: Ue(a, r) }) : /* @__PURE__ */ i(D, { type: "label", size: "large", appearance: "gray", children: Ue(a, r) })
|
|
2179
2179
|
]
|
|
2180
2180
|
}
|
|
2181
2181
|
);
|
|
@@ -2217,7 +2217,7 @@ const Ao = {
|
|
|
2217
2217
|
label: a
|
|
2218
2218
|
})) : [];
|
|
2219
2219
|
return /* @__PURE__ */ i(ko, { id: e, label: t, options: r });
|
|
2220
|
-
},
|
|
2220
|
+
}, Oo = (e) => {
|
|
2221
2221
|
const {
|
|
2222
2222
|
labelFrom: t = "",
|
|
2223
2223
|
labelType: n = "condition",
|
|
@@ -2260,7 +2260,7 @@ const Ao = {
|
|
|
2260
2260
|
weight: "bold",
|
|
2261
2261
|
size: n === "condition" ? "medium" : "large",
|
|
2262
2262
|
appearance: "gray",
|
|
2263
|
-
children:
|
|
2263
|
+
children: Ue(a, r)
|
|
2264
2264
|
}
|
|
2265
2265
|
),
|
|
2266
2266
|
"a",
|
|
@@ -2272,7 +2272,7 @@ const Ao = {
|
|
|
2272
2272
|
weight: "bold",
|
|
2273
2273
|
size: n === "condition" ? "medium" : "large",
|
|
2274
2274
|
appearance: "gray",
|
|
2275
|
-
children:
|
|
2275
|
+
children: Ue(o, r)
|
|
2276
2276
|
}
|
|
2277
2277
|
)
|
|
2278
2278
|
] })
|
|
@@ -2281,7 +2281,7 @@ const Ao = {
|
|
|
2281
2281
|
]
|
|
2282
2282
|
}
|
|
2283
2283
|
);
|
|
2284
|
-
},
|
|
2284
|
+
}, Ro = ({
|
|
2285
2285
|
nameLabel: e,
|
|
2286
2286
|
type: t,
|
|
2287
2287
|
valueData: n,
|
|
@@ -2289,7 +2289,7 @@ const Ao = {
|
|
|
2289
2289
|
}) => {
|
|
2290
2290
|
const a = (n == null ? void 0 : n.from) || "0", o = (n == null ? void 0 : n.to) || "0";
|
|
2291
2291
|
return /* @__PURE__ */ i(
|
|
2292
|
-
|
|
2292
|
+
Oo,
|
|
2293
2293
|
{
|
|
2294
2294
|
labelFrom: e,
|
|
2295
2295
|
labelType: t,
|
|
@@ -2300,7 +2300,7 @@ const Ao = {
|
|
|
2300
2300
|
);
|
|
2301
2301
|
}, Lo = {
|
|
2302
2302
|
LIST_OF_VALUES_MULTI: Io,
|
|
2303
|
-
RANGE:
|
|
2303
|
+
RANGE: Ro,
|
|
2304
2304
|
GREATER_THAN: kt,
|
|
2305
2305
|
LESS_THAN: kt,
|
|
2306
2306
|
EQUAL: kt,
|
|
@@ -2355,7 +2355,7 @@ const Ao = {
|
|
|
2355
2355
|
padding: 24px;
|
|
2356
2356
|
gap: 24px;
|
|
2357
2357
|
box-sizing: border-box;
|
|
2358
|
-
`, Mo = $.div``,
|
|
2358
|
+
`, Mo = $.div``, On = (e) => {
|
|
2359
2359
|
const {
|
|
2360
2360
|
actionButtonLabel: t,
|
|
2361
2361
|
cancelButtonLabel: n = "",
|
|
@@ -2465,7 +2465,7 @@ const Ao = {
|
|
|
2465
2465
|
type: n === "condition" ? "body" : "title",
|
|
2466
2466
|
size: n === "condition" ? "small" : "medium",
|
|
2467
2467
|
appearance: n === "condition" ? "dark" : "gray",
|
|
2468
|
-
children:
|
|
2468
|
+
children: Ue(a, r)
|
|
2469
2469
|
}
|
|
2470
2470
|
),
|
|
2471
2471
|
o && /* @__PURE__ */ i(
|
|
@@ -2484,7 +2484,7 @@ const Ao = {
|
|
|
2484
2484
|
}
|
|
2485
2485
|
),
|
|
2486
2486
|
c && /* @__PURE__ */ i(
|
|
2487
|
-
|
|
2487
|
+
On,
|
|
2488
2488
|
{
|
|
2489
2489
|
actionButtonLabel: "Aceptar",
|
|
2490
2490
|
onClick: s,
|
|
@@ -2496,7 +2496,7 @@ const Ao = {
|
|
|
2496
2496
|
icon: /* @__PURE__ */ i(nt, {}),
|
|
2497
2497
|
children: /* @__PURE__ */ b(v, { direction: "row", gap: "4px", wrap: "wrap", children: [
|
|
2498
2498
|
/* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: t }),
|
|
2499
|
-
/* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children:
|
|
2499
|
+
/* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: Ue(a, r) }),
|
|
2500
2500
|
/* @__PURE__ */ i(D, { type: "title", size: "medium", weight: "normal", appearance: "gray", children: "estará vigente hasta" }),
|
|
2501
2501
|
/* @__PURE__ */ i(D, { type: "title", size: "medium", appearance: "dark", weight: "bold", children: l })
|
|
2502
2502
|
] })
|
|
@@ -2562,7 +2562,7 @@ const Ao = {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
),
|
|
2564
2564
|
s && /* @__PURE__ */ i(
|
|
2565
|
-
|
|
2565
|
+
On,
|
|
2566
2566
|
{
|
|
2567
2567
|
actionButtonLabel: "Aceptar",
|
|
2568
2568
|
onClick: o,
|
|
@@ -2600,7 +2600,7 @@ const Ao = {
|
|
|
2600
2600
|
), s = r.decisionDataType || r.conditionDataType, c = Array.isArray(n) ? n.map((l, d) => ({
|
|
2601
2601
|
checked: !0,
|
|
2602
2602
|
id: String(d + 1),
|
|
2603
|
-
label: String(
|
|
2603
|
+
label: String(Ue(l, s))
|
|
2604
2604
|
})) : [];
|
|
2605
2605
|
return /* @__PURE__ */ i(
|
|
2606
2606
|
zo,
|
|
@@ -2625,7 +2625,7 @@ const Ao = {
|
|
|
2625
2625
|
handleOnClick: c,
|
|
2626
2626
|
showModal: l,
|
|
2627
2627
|
validDate: d
|
|
2628
|
-
} = e, p = `De ${
|
|
2628
|
+
} = e, p = `De ${Ue(a, r)} a ${Ue(o, r)}`;
|
|
2629
2629
|
return /* @__PURE__ */ b(
|
|
2630
2630
|
v,
|
|
2631
2631
|
{
|
|
@@ -2670,7 +2670,7 @@ const Ao = {
|
|
|
2670
2670
|
}
|
|
2671
2671
|
),
|
|
2672
2672
|
l && /* @__PURE__ */ i(
|
|
2673
|
-
|
|
2673
|
+
On,
|
|
2674
2674
|
{
|
|
2675
2675
|
actionButtonLabel: "Aceptar",
|
|
2676
2676
|
onClick: c,
|
|
@@ -2728,7 +2728,7 @@ const Ao = {
|
|
|
2728
2728
|
ListOfValues: "LIST_OF_VALUES",
|
|
2729
2729
|
ListOfValuesMulti: "LIST_OF_VALUES_MULTI",
|
|
2730
2730
|
Range: "RANGE"
|
|
2731
|
-
})[e] || null,
|
|
2731
|
+
})[e] || null, Ot = (e) => {
|
|
2732
2732
|
const { element: t, valueData: n, type: r } = e, a = qo(
|
|
2733
2733
|
t.howToSetTheDecision || t.howToSetTheCondition
|
|
2734
2734
|
);
|
|
@@ -2855,7 +2855,7 @@ const Ao = {
|
|
|
2855
2855
|
}
|
|
2856
2856
|
) })
|
|
2857
2857
|
] });
|
|
2858
|
-
},
|
|
2858
|
+
}, Rn = (e) => {
|
|
2859
2859
|
var h;
|
|
2860
2860
|
const { decision: t, loading: n = !1, textValues: r } = e, a = !!(t != null && t.effectiveFrom), o = !!(t != null && t.validUntil), s = a && o ? {
|
|
2861
2861
|
element: {
|
|
@@ -3049,7 +3049,7 @@ const Fr = $.div`
|
|
|
3049
3049
|
},
|
|
3050
3050
|
handleView: () => n ? n() : null,
|
|
3051
3051
|
controls: !1,
|
|
3052
|
-
children: /* @__PURE__ */ i(
|
|
3052
|
+
children: /* @__PURE__ */ i(Rn, { loading: !0 })
|
|
3053
3053
|
},
|
|
3054
3054
|
`loading-card-${t}`
|
|
3055
3055
|
);
|
|
@@ -3064,7 +3064,7 @@ const Fr = $.div`
|
|
|
3064
3064
|
handleDelete: () => a ? a(t.decisionId) : null,
|
|
3065
3065
|
handleView: () => r ? r(t) : null,
|
|
3066
3066
|
controls: n,
|
|
3067
|
-
children: /* @__PURE__ */ i(
|
|
3067
|
+
children: /* @__PURE__ */ i(Rn, { decision: t, textValues: o })
|
|
3068
3068
|
}
|
|
3069
3069
|
)
|
|
3070
3070
|
] }) }, t.decisionId) : null;
|
|
@@ -3395,7 +3395,7 @@ const di = $.div`
|
|
|
3395
3395
|
},
|
|
3396
3396
|
handleView: () => n ? n() : null,
|
|
3397
3397
|
controls: !1,
|
|
3398
|
-
children: /* @__PURE__ */ i(
|
|
3398
|
+
children: /* @__PURE__ */ i(Rn, { loading: !0 })
|
|
3399
3399
|
},
|
|
3400
3400
|
`loading-card-${t}`
|
|
3401
3401
|
);
|
|
@@ -3403,12 +3403,12 @@ const di = $.div`
|
|
|
3403
3403
|
from: e.from ?? "",
|
|
3404
3404
|
to: e.to ?? ""
|
|
3405
3405
|
}), mi = (e) => e.value, bi = (e) => e.value, yi = (e) => e.value, vi = {
|
|
3406
|
-
[
|
|
3407
|
-
[
|
|
3408
|
-
[
|
|
3409
|
-
[
|
|
3410
|
-
[
|
|
3411
|
-
[
|
|
3406
|
+
[F.LIST_OF_VALUES]: hi,
|
|
3407
|
+
[F.LIST_OF_VALUES_MULTI]: gi,
|
|
3408
|
+
[F.RANGE]: fi,
|
|
3409
|
+
[F.GREATER_THAN]: mi,
|
|
3410
|
+
[F.LESS_THAN]: bi,
|
|
3411
|
+
[F.EQUAL]: yi
|
|
3412
3412
|
}, Ti = (e, t) => {
|
|
3413
3413
|
if (!e || e.decisionDataType !== le.PERCENTAGE || t == null || typeof t == "string" && t.endsWith("%"))
|
|
3414
3414
|
return t;
|
|
@@ -3716,14 +3716,14 @@ const Ni = (e) => {
|
|
|
3716
3716
|
const { type: t } = e, n = $i[t];
|
|
3717
3717
|
return n ? n(e) : null;
|
|
3718
3718
|
}, ki = (e) => ({
|
|
3719
|
-
schema:
|
|
3719
|
+
schema: Re().required("Requerido").test(
|
|
3720
3720
|
"non-empty",
|
|
3721
3721
|
"El valor no puede estar vacío",
|
|
3722
3722
|
(t) => t != null && t.trim() !== ""
|
|
3723
3723
|
),
|
|
3724
3724
|
value: e
|
|
3725
3725
|
}), Ii = (e) => ({
|
|
3726
|
-
schema:
|
|
3726
|
+
schema: ze().test(
|
|
3727
3727
|
"isArrayOrString",
|
|
3728
3728
|
"Debe ser un array de strings/numbers o un solo string",
|
|
3729
3729
|
(t) => Array.isArray(t) ? t.every(
|
|
@@ -3731,8 +3731,8 @@ const Ni = (e) => {
|
|
|
3731
3731
|
) : typeof t == "string"
|
|
3732
3732
|
),
|
|
3733
3733
|
value: e
|
|
3734
|
-
}),
|
|
3735
|
-
schema:
|
|
3734
|
+
}), Oi = (e) => ({
|
|
3735
|
+
schema: ze().test(
|
|
3736
3736
|
"isArrayOrString",
|
|
3737
3737
|
"Debe ser un array de strings/numbers o un solo string ",
|
|
3738
3738
|
(t) => Array.isArray(t) ? t.every(
|
|
@@ -3740,7 +3740,7 @@ const Ni = (e) => {
|
|
|
3740
3740
|
) : typeof t == "string"
|
|
3741
3741
|
),
|
|
3742
3742
|
value: e
|
|
3743
|
-
}),
|
|
3743
|
+
}), Ri = (e) => {
|
|
3744
3744
|
const t = (e == null ? void 0 : e.from) ?? 0, n = (e == null ? void 0 : e.to) ?? 0;
|
|
3745
3745
|
return {
|
|
3746
3746
|
schema: ne({
|
|
@@ -3760,15 +3760,15 @@ const Ni = (e) => {
|
|
|
3760
3760
|
schema: $e().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
|
|
3761
3761
|
value: e
|
|
3762
3762
|
} : {
|
|
3763
|
-
schema:
|
|
3763
|
+
schema: Re().required("Requerido"),
|
|
3764
3764
|
value: e
|
|
3765
3765
|
}, Li = {
|
|
3766
|
-
[
|
|
3767
|
-
[
|
|
3768
|
-
[
|
|
3769
|
-
[
|
|
3770
|
-
[
|
|
3771
|
-
[
|
|
3766
|
+
[F.LIST_OF_VALUES]: Ii,
|
|
3767
|
+
[F.LIST_OF_VALUES_MULTI]: Oi,
|
|
3768
|
+
[F.RANGE]: Ri,
|
|
3769
|
+
[F.GREATER_THAN]: rn,
|
|
3770
|
+
[F.LESS_THAN]: rn,
|
|
3771
|
+
[F.EQUAL]: rn
|
|
3772
3772
|
}, Fi = (e) => Li[e] || ki, Mt = (e) => e != null && (typeof e != "string" || e.trim() !== "") && (!Array.isArray(e) || e.length > 0), qn = (e, t) => {
|
|
3773
3773
|
var c;
|
|
3774
3774
|
const n = Object.entries(
|
|
@@ -3817,7 +3817,7 @@ function Vi({
|
|
|
3817
3817
|
};
|
|
3818
3818
|
let c;
|
|
3819
3819
|
const l = {
|
|
3820
|
-
ruleName:
|
|
3820
|
+
ruleName: Re().required("El nombre de la regla es requerido"),
|
|
3821
3821
|
value: bt(() => Fi(
|
|
3822
3822
|
c.values.howToSetTheDecision
|
|
3823
3823
|
)(
|
|
@@ -3925,8 +3925,8 @@ const _i = $.div`
|
|
|
3925
3925
|
labelToggle: o,
|
|
3926
3926
|
name: s,
|
|
3927
3927
|
valueToggle: c = ""
|
|
3928
|
-
} = e, [l, d] =
|
|
3929
|
-
return
|
|
3928
|
+
} = e, [l, d] = Y(t);
|
|
3929
|
+
return Pe(() => {
|
|
3930
3930
|
d(t);
|
|
3931
3931
|
}, [t]), /* @__PURE__ */ b(j, { children: [
|
|
3932
3932
|
/* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
|
|
@@ -3960,13 +3960,13 @@ const _i = $.div`
|
|
|
3960
3960
|
messageEnd: u = "",
|
|
3961
3961
|
statusStart: h = "pending",
|
|
3962
3962
|
statusEnd: g = "pending"
|
|
3963
|
-
} = e, [f, y] =
|
|
3964
|
-
y(
|
|
3965
|
-
}, N = (
|
|
3966
|
-
T(
|
|
3967
|
-
}, A = (
|
|
3968
|
-
E(
|
|
3969
|
-
},
|
|
3963
|
+
} = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: V }) => {
|
|
3964
|
+
y(V.checked), r && r(V.checked);
|
|
3965
|
+
}, N = (V) => {
|
|
3966
|
+
T(V.target.value), t(V);
|
|
3967
|
+
}, A = (V) => {
|
|
3968
|
+
E(V.target.value), n(V);
|
|
3969
|
+
}, O = Se("(max-width: 400px)");
|
|
3970
3970
|
return /* @__PURE__ */ b(j, { children: [
|
|
3971
3971
|
/* @__PURE__ */ b(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
|
|
3972
3972
|
/* @__PURE__ */ i(
|
|
@@ -4002,12 +4002,12 @@ const _i = $.div`
|
|
|
4002
4002
|
/* @__PURE__ */ b(
|
|
4003
4003
|
v,
|
|
4004
4004
|
{
|
|
4005
|
-
direction:
|
|
4005
|
+
direction: O ? "column" : "row",
|
|
4006
4006
|
justifyContent: "space-between",
|
|
4007
4007
|
gap: "24px",
|
|
4008
4008
|
children: [
|
|
4009
4009
|
/* @__PURE__ */ i(
|
|
4010
|
-
|
|
4010
|
+
Oe,
|
|
4011
4011
|
{
|
|
4012
4012
|
id: "dateStart",
|
|
4013
4013
|
label: a,
|
|
@@ -4020,7 +4020,7 @@ const _i = $.div`
|
|
|
4020
4020
|
}
|
|
4021
4021
|
),
|
|
4022
4022
|
f && /* @__PURE__ */ i(
|
|
4023
|
-
|
|
4023
|
+
Oe,
|
|
4024
4024
|
{
|
|
4025
4025
|
id: "dateEnd",
|
|
4026
4026
|
label: o,
|
|
@@ -4344,12 +4344,12 @@ const Ui = (e) => {
|
|
|
4344
4344
|
from: e.from ?? "",
|
|
4345
4345
|
to: e.to ?? ""
|
|
4346
4346
|
}), Wi = (e) => e.value, Qi = (e) => e.value, Xi = (e) => e.value, Ji = {
|
|
4347
|
-
[
|
|
4348
|
-
[
|
|
4349
|
-
[
|
|
4350
|
-
[
|
|
4351
|
-
[
|
|
4352
|
-
[
|
|
4347
|
+
[F.LIST_OF_VALUES]: Hi,
|
|
4348
|
+
[F.LIST_OF_VALUES_MULTI]: qi,
|
|
4349
|
+
[F.RANGE]: Yi,
|
|
4350
|
+
[F.GREATER_THAN]: Wi,
|
|
4351
|
+
[F.LESS_THAN]: Qi,
|
|
4352
|
+
[F.EQUAL]: Xi
|
|
4353
4353
|
}, Ze = (e) => {
|
|
4354
4354
|
const t = e == null ? void 0 : e.value;
|
|
4355
4355
|
if (typeof t == "string" && t.includes(" a ")) {
|
|
@@ -4520,7 +4520,7 @@ const nl = (e) => {
|
|
|
4520
4520
|
}
|
|
4521
4521
|
) }),
|
|
4522
4522
|
/* @__PURE__ */ i(tl, { children: /* @__PURE__ */ i(
|
|
4523
|
-
|
|
4523
|
+
Ot,
|
|
4524
4524
|
{
|
|
4525
4525
|
element: a,
|
|
4526
4526
|
valueData: Ze(
|
|
@@ -4608,7 +4608,7 @@ const nl = (e) => {
|
|
|
4608
4608
|
borderRadius: "8px",
|
|
4609
4609
|
background: !0,
|
|
4610
4610
|
children: /* @__PURE__ */ i(
|
|
4611
|
-
|
|
4611
|
+
Ot,
|
|
4612
4612
|
{
|
|
4613
4613
|
element: {
|
|
4614
4614
|
...A,
|
|
@@ -4632,7 +4632,7 @@ const nl = (e) => {
|
|
|
4632
4632
|
borderRadius: "8px",
|
|
4633
4633
|
background: !0,
|
|
4634
4634
|
children: /* @__PURE__ */ i(
|
|
4635
|
-
|
|
4635
|
+
Ot,
|
|
4636
4636
|
{
|
|
4637
4637
|
element: u.element,
|
|
4638
4638
|
valueData: u.valueData,
|
|
@@ -4650,7 +4650,7 @@ const nl = (e) => {
|
|
|
4650
4650
|
borderRadius: "8px",
|
|
4651
4651
|
background: !0,
|
|
4652
4652
|
children: /* @__PURE__ */ i(
|
|
4653
|
-
|
|
4653
|
+
Ot,
|
|
4654
4654
|
{
|
|
4655
4655
|
element: h.element,
|
|
4656
4656
|
valueData: h.valueData,
|
|
@@ -4714,20 +4714,20 @@ const nl = (e) => {
|
|
|
4714
4714
|
if (e == null) return "";
|
|
4715
4715
|
const n = Array.isArray(e) ? e.join(", ") : typeof e == "object" && e !== null ? JSON.stringify(e) : String(e ?? "");
|
|
4716
4716
|
switch (t) {
|
|
4717
|
-
case
|
|
4717
|
+
case F.LESS_THAN:
|
|
4718
4718
|
return `Menor a ${n}`;
|
|
4719
|
-
case
|
|
4719
|
+
case F.GREATER_THAN:
|
|
4720
4720
|
return `Mayor a ${n}`;
|
|
4721
|
-
case
|
|
4721
|
+
case F.LIST_OF_VALUES:
|
|
4722
4722
|
return e;
|
|
4723
|
-
case
|
|
4723
|
+
case F.LIST_OF_VALUES_MULTI:
|
|
4724
4724
|
return e;
|
|
4725
|
-
case
|
|
4725
|
+
case F.RANGE:
|
|
4726
4726
|
return e;
|
|
4727
4727
|
default:
|
|
4728
4728
|
return String(n);
|
|
4729
4729
|
}
|
|
4730
|
-
},
|
|
4730
|
+
}, Rt = (e) => {
|
|
4731
4731
|
if (e == null || e === "") return "";
|
|
4732
4732
|
const t = [
|
|
4733
4733
|
"Ene",
|
|
@@ -4787,10 +4787,10 @@ const nl = (e) => {
|
|
|
4787
4787
|
withEditOption: u = !0
|
|
4788
4788
|
} = e, g = U.useMemo(() => {
|
|
4789
4789
|
if (!n) return null;
|
|
4790
|
-
const { howToSetTheDecision: I, decisionDataType: _, value:
|
|
4791
|
-
if (!(I === z.RANGE && _ ===
|
|
4790
|
+
const { howToSetTheDecision: I, decisionDataType: _, value: R } = n;
|
|
4791
|
+
if (!(I === z.RANGE && _ === q.PERCENTAGE && R && typeof R == "object" && !Array.isArray(R) && "from" in R && "to" in R))
|
|
4792
4792
|
return n;
|
|
4793
|
-
const { from: H, to: P } =
|
|
4793
|
+
const { from: H, to: P } = R, X = String(H).trim(), be = String(P).trim();
|
|
4794
4794
|
return {
|
|
4795
4795
|
...n,
|
|
4796
4796
|
i18nValue: `De ${X}% a ${be}%`
|
|
@@ -4798,26 +4798,26 @@ const nl = (e) => {
|
|
|
4798
4798
|
}, [n]) ?? n, f = !!(g != null && g.effectiveFrom), y = !!(g != null && g.validUntil), m = f ? {
|
|
4799
4799
|
element: {
|
|
4800
4800
|
labelName: "Vigencia desde:",
|
|
4801
|
-
value:
|
|
4801
|
+
value: Rt(g.effectiveFrom),
|
|
4802
4802
|
howToSetTheDecision: z.EQUAL,
|
|
4803
|
-
decisionDataType:
|
|
4803
|
+
decisionDataType: q.DATE
|
|
4804
4804
|
},
|
|
4805
4805
|
valueData: Ze({
|
|
4806
|
-
value:
|
|
4806
|
+
value: Rt(g.effectiveFrom),
|
|
4807
4807
|
howToSetTheDecision: z.EQUAL,
|
|
4808
|
-
decisionDataType:
|
|
4808
|
+
decisionDataType: q.DATE
|
|
4809
4809
|
})
|
|
4810
4810
|
} : null, T = y ? {
|
|
4811
4811
|
element: {
|
|
4812
4812
|
labelName: "Vigencia hasta:",
|
|
4813
|
-
value:
|
|
4813
|
+
value: Rt(g.validUntil),
|
|
4814
4814
|
howToSetTheDecision: z.EQUAL,
|
|
4815
|
-
decisionDataType:
|
|
4815
|
+
decisionDataType: q.DATE
|
|
4816
4816
|
},
|
|
4817
4817
|
valueData: Ze({
|
|
4818
|
-
value:
|
|
4818
|
+
value: Rt(g.validUntil),
|
|
4819
4819
|
howToSetTheDecision: z.EQUAL,
|
|
4820
|
-
decisionDataType:
|
|
4820
|
+
decisionDataType: q.DATE
|
|
4821
4821
|
})
|
|
4822
4822
|
} : null, S = (g == null ? void 0 : g.howToSetTheDecision) || z.EQUAL, E = S === z.RANGE && g && g.value && typeof g.value == "object" && "from" in g.value && "to" in g.value && g.value.from === g.value.to, C = S === z.LIST_OF_VALUES || S === z.LIST_OF_VALUES_MULTI, N = g && (C ? ol(g).list : (() => {
|
|
4823
4823
|
const I = g.i18nValue;
|
|
@@ -4826,40 +4826,40 @@ const nl = (e) => {
|
|
|
4826
4826
|
...g,
|
|
4827
4827
|
howToSetTheDecision: z.EQUAL,
|
|
4828
4828
|
value: w
|
|
4829
|
-
}), P = g.decisionDataType ===
|
|
4829
|
+
}), P = g.decisionDataType === q.PERCENTAGE ? "%" : "";
|
|
4830
4830
|
return `Del ${H}${P}`.trim();
|
|
4831
4831
|
}
|
|
4832
4832
|
const _ = Ze(
|
|
4833
4833
|
g
|
|
4834
4834
|
);
|
|
4835
|
-
let
|
|
4836
|
-
return (g == null ? void 0 : g.decisionDataType) ===
|
|
4835
|
+
let R = I ?? _;
|
|
4836
|
+
return (g == null ? void 0 : g.decisionDataType) === q.PERCENTAGE && typeof R == "string" && !R.includes("%") && (R = `${R}%`), (g == null ? void 0 : g.decisionDataType) === q.PERCENTAGE && typeof R == "number" && (R = `${R}%`), R;
|
|
4837
4837
|
})()), A = g ? {
|
|
4838
4838
|
labelName: t && g.labelName || "",
|
|
4839
|
-
decisionDataType: g.decisionDataType ||
|
|
4839
|
+
decisionDataType: g.decisionDataType || q.ALPHABETICAL,
|
|
4840
4840
|
value: N,
|
|
4841
4841
|
howToSetTheDecision: g.i18nValue || E ? z.EQUAL : S,
|
|
4842
4842
|
validUntil: g.validUntil
|
|
4843
|
-
} : null,
|
|
4843
|
+
} : null, O = U.useMemo(
|
|
4844
4844
|
() => g ? Me(g) : {},
|
|
4845
4845
|
[g]
|
|
4846
|
-
),
|
|
4847
|
-
const I = {}, _ =
|
|
4848
|
-
I["group-primary"] = G === "group-primary" ?
|
|
4849
|
-
for (const w of
|
|
4850
|
-
!w || w === G || w !== "group-primary" &&
|
|
4851
|
-
for (const w of Object.keys(
|
|
4852
|
-
w === "group-primary" || w === G || w in I || (I[w] =
|
|
4846
|
+
), V = ((dt = (st = g == null ? void 0 : g.conditionGroups) == null ? void 0 : st.map((I) => I == null ? void 0 : I.ConditionGroupId)) == null ? void 0 : dt.filter(Boolean)) || Object.keys(O), G = V[0] || "group-primary", te = U.useMemo(() => {
|
|
4847
|
+
const I = {}, _ = O[G] || [], R = O["group-primary"] || [];
|
|
4848
|
+
I["group-primary"] = G === "group-primary" ? R : [..._, ...R];
|
|
4849
|
+
for (const w of V)
|
|
4850
|
+
!w || w === G || w !== "group-primary" && O[w] && (I[w] = O[w]);
|
|
4851
|
+
for (const w of Object.keys(O))
|
|
4852
|
+
w === "group-primary" || w === G || w in I || (I[w] = O[w]);
|
|
4853
4853
|
return I;
|
|
4854
|
-
}, [
|
|
4854
|
+
}, [O, G, V]), ie = U.useMemo(() => {
|
|
4855
4855
|
const I = {};
|
|
4856
4856
|
return Object.keys(te).forEach((_) => {
|
|
4857
|
-
const
|
|
4858
|
-
|
|
4857
|
+
const R = te[_];
|
|
4858
|
+
R && Array.isArray(R) ? I[_] = R.map((w) => {
|
|
4859
4859
|
let H = w.labelName;
|
|
4860
4860
|
w.timeUnit && w.labelName && (H = gn(w.labelName, w.timeUnit));
|
|
4861
4861
|
let P = w.value;
|
|
4862
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) === z.RANGE && (w == null ? void 0 : w.conditionDataType) ===
|
|
4862
|
+
if ((w == null ? void 0 : w.howToSetTheCondition) === z.RANGE && (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && (w == null ? void 0 : w.value) && typeof w.value == "object" && !Array.isArray(w.value) && "from" in w.value && "to" in w.value) {
|
|
4863
4863
|
const { from: ae, to: ve } = w.value, Ne = String(ae).trim(), J = String(ve).trim();
|
|
4864
4864
|
return P = `De ${Ne}% a ${J}%`, {
|
|
4865
4865
|
...w,
|
|
@@ -4868,7 +4868,7 @@ const nl = (e) => {
|
|
|
4868
4868
|
howToSetTheCondition: z.EQUAL
|
|
4869
4869
|
};
|
|
4870
4870
|
}
|
|
4871
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) === z.GREATER_THAN && (w == null ? void 0 : w.conditionDataType) ===
|
|
4871
|
+
if ((w == null ? void 0 : w.howToSetTheCondition) === z.GREATER_THAN && (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
|
|
4872
4872
|
const ae = w.value;
|
|
4873
4873
|
return P = `Mayor a ${String(ae).trim()}%`, {
|
|
4874
4874
|
...w,
|
|
@@ -4877,7 +4877,7 @@ const nl = (e) => {
|
|
|
4877
4877
|
howToSetTheCondition: z.EQUAL
|
|
4878
4878
|
};
|
|
4879
4879
|
}
|
|
4880
|
-
if ((w == null ? void 0 : w.howToSetTheCondition) === z.LESS_THAN && (w == null ? void 0 : w.conditionDataType) ===
|
|
4880
|
+
if ((w == null ? void 0 : w.howToSetTheCondition) === z.LESS_THAN && (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && (w == null ? void 0 : w.value) !== void 0 && (w == null ? void 0 : w.value) !== null && (w == null ? void 0 : w.value) !== "") {
|
|
4881
4881
|
const ae = w.value;
|
|
4882
4882
|
return P = `Menor a ${String(ae).trim()}%`, {
|
|
4883
4883
|
...w,
|
|
@@ -4892,30 +4892,30 @@ const nl = (e) => {
|
|
|
4892
4892
|
) : P = Wn(
|
|
4893
4893
|
w.value,
|
|
4894
4894
|
w.howToSetTheCondition
|
|
4895
|
-
)), (w == null ? void 0 : w.conditionDataType) ===
|
|
4895
|
+
)), (w == null ? void 0 : w.conditionDataType) === q.PERCENTAGE && typeof P == "string" && !P.includes("%") && (P = `${P}%`), {
|
|
4896
4896
|
...w,
|
|
4897
4897
|
labelName: H,
|
|
4898
4898
|
value: P,
|
|
4899
4899
|
howToSetTheCondition: w.i18nValue ? z.EQUAL : w.howToSetTheCondition
|
|
4900
4900
|
};
|
|
4901
|
-
}) : I[_] =
|
|
4901
|
+
}) : I[_] = R;
|
|
4902
4902
|
}), I;
|
|
4903
4903
|
}, [te]), ce = Mr(
|
|
4904
4904
|
ie,
|
|
4905
4905
|
(I) => !I.hidden
|
|
4906
4906
|
), re = U.useMemo(() => {
|
|
4907
4907
|
const I = Object.entries(ce).map(
|
|
4908
|
-
([
|
|
4908
|
+
([R, w]) => [R, w.filter(al)]
|
|
4909
4909
|
), _ = {};
|
|
4910
|
-
for (const [
|
|
4911
|
-
w.length > 0 && (_[
|
|
4910
|
+
for (const [R, w] of I)
|
|
4911
|
+
w.length > 0 && (_[R] = w);
|
|
4912
4912
|
return _;
|
|
4913
|
-
}, [ce]),
|
|
4913
|
+
}, [ce]), L = U.useMemo(() => {
|
|
4914
4914
|
const I = Object.keys(re);
|
|
4915
4915
|
return I.includes("group-primary") ? ["group-primary", ...I.filter((_) => _ !== "group-primary")] : I;
|
|
4916
4916
|
}, [re]), M = {};
|
|
4917
4917
|
let Ce = 1;
|
|
4918
|
-
const De =
|
|
4918
|
+
const De = L.map((I) => {
|
|
4919
4919
|
const _ = I === "group-primary" ? "mainCondition" : `alternateCondition-${Ce++}`;
|
|
4920
4920
|
return M[_] = I, {
|
|
4921
4921
|
id: _,
|
|
@@ -4924,7 +4924,7 @@ const nl = (e) => {
|
|
|
4924
4924
|
};
|
|
4925
4925
|
}), [Ve, Ye] = U.useState(
|
|
4926
4926
|
((ct = De[0]) == null ? void 0 : ct.id) ?? "mainCondition"
|
|
4927
|
-
), _e = (I) => Ye(I),
|
|
4927
|
+
), _e = (I) => Ye(I), je = M[Ve] ?? L[0] ?? "group-primary", Q = re[je] ?? [], W = L.length > 1, ee = Array.from({ length: 5 }), Et = !!(!r && g && A), it = Q.length < 2 ? "start" : "space-between", lt = `N° ${String((a ?? 0) + 1).padStart(2, "0")}`;
|
|
4928
4928
|
return /* @__PURE__ */ i(
|
|
4929
4929
|
nl,
|
|
4930
4930
|
{
|
|
@@ -4947,7 +4947,7 @@ const nl = (e) => {
|
|
|
4947
4947
|
selectedTab: Ve,
|
|
4948
4948
|
onTabChange: _e,
|
|
4949
4949
|
currentConditions: Q,
|
|
4950
|
-
hasMultipleGroups:
|
|
4950
|
+
hasMultipleGroups: W,
|
|
4951
4951
|
editionMode: p,
|
|
4952
4952
|
withEditOption: u
|
|
4953
4953
|
}
|
|
@@ -5198,14 +5198,14 @@ const ll = $.div`
|
|
|
5198
5198
|
c
|
|
5199
5199
|
);
|
|
5200
5200
|
}, gl = (e) => ({
|
|
5201
|
-
schema:
|
|
5201
|
+
schema: Re().required("Requerido").test(
|
|
5202
5202
|
"non-empty",
|
|
5203
5203
|
"El valor no puede estar vacío",
|
|
5204
5204
|
(t) => t != null && t.trim() !== ""
|
|
5205
5205
|
),
|
|
5206
5206
|
value: e
|
|
5207
5207
|
}), fl = (e) => ({
|
|
5208
|
-
schema:
|
|
5208
|
+
schema: ze().test(
|
|
5209
5209
|
"isArrayOrString",
|
|
5210
5210
|
"Por favor selecciona una opcion",
|
|
5211
5211
|
(t) => Array.isArray(t) ? t.every(
|
|
@@ -5214,7 +5214,7 @@ const ll = $.div`
|
|
|
5214
5214
|
),
|
|
5215
5215
|
value: e
|
|
5216
5216
|
}), ml = (e) => ({
|
|
5217
|
-
schema:
|
|
5217
|
+
schema: ze().test(
|
|
5218
5218
|
"isArrayOrString",
|
|
5219
5219
|
"Por favor selecciona al menos una opcion",
|
|
5220
5220
|
(t) => Array.isArray(t) ? t.every(
|
|
@@ -5258,7 +5258,7 @@ const ll = $.div`
|
|
|
5258
5258
|
}), nr = (e) => e && typeof e == "object" && !Array.isArray(e) && "value" in e && e.value !== "" && e.value != null, an = (e, t) => {
|
|
5259
5259
|
if (nr(e))
|
|
5260
5260
|
return {
|
|
5261
|
-
schema:
|
|
5261
|
+
schema: ze().test(
|
|
5262
5262
|
"required-option",
|
|
5263
5263
|
"Por favor selecciona una opcion",
|
|
5264
5264
|
(n) => nr(n)
|
|
@@ -5272,8 +5272,8 @@ const ll = $.div`
|
|
|
5272
5272
|
value: n
|
|
5273
5273
|
} : {
|
|
5274
5274
|
schema: ne({
|
|
5275
|
-
from:
|
|
5276
|
-
to:
|
|
5275
|
+
from: Re().required("Requerido"),
|
|
5276
|
+
to: Re().required("Requerido")
|
|
5277
5277
|
}),
|
|
5278
5278
|
value: n
|
|
5279
5279
|
};
|
|
@@ -5282,20 +5282,20 @@ const ll = $.div`
|
|
|
5282
5282
|
schema: $e().required("El campo porcentaje es requerido").min(0, "El porcentaje no puede ser menor a 0").max(100, "El porcentaje no puede ser mayor a 100"),
|
|
5283
5283
|
value: e
|
|
5284
5284
|
} : {
|
|
5285
|
-
schema:
|
|
5285
|
+
schema: ze().test("required", "Requerido", (n) => n == null ? !1 : typeof n == "string" ? n.trim().length > 0 : typeof n == "number" ? !Number.isNaN(n) : !1),
|
|
5286
5286
|
value: e
|
|
5287
5287
|
};
|
|
5288
5288
|
}, vl = {
|
|
5289
|
-
[
|
|
5290
|
-
[
|
|
5291
|
-
[
|
|
5292
|
-
[
|
|
5293
|
-
[
|
|
5294
|
-
[
|
|
5289
|
+
[F.LIST_OF_VALUES]: fl,
|
|
5290
|
+
[F.LIST_OF_VALUES_MULTI]: ml,
|
|
5291
|
+
[F.RANGE]: bl,
|
|
5292
|
+
[F.GREATER_THAN]: an,
|
|
5293
|
+
[F.LESS_THAN]: an,
|
|
5294
|
+
[F.EQUAL]: an
|
|
5295
5295
|
}, rr = (e) => vl[e] || gl, ar = "El valor desde no puede ser mayor que el valor hasta", or = (e) => {
|
|
5296
5296
|
var t;
|
|
5297
5297
|
return Array.isArray((t = e == null ? void 0 : e.listOfPossibleValues) == null ? void 0 : t.list) && e.listOfPossibleValues.list.length > 0;
|
|
5298
|
-
}, bn =
|
|
5298
|
+
}, bn = ze().test(
|
|
5299
5299
|
"required-option",
|
|
5300
5300
|
"Por favor selecciona una opcion",
|
|
5301
5301
|
(e) => {
|
|
@@ -5368,7 +5368,7 @@ function Sl({
|
|
|
5368
5368
|
}
|
|
5369
5369
|
), c = {
|
|
5370
5370
|
ruleName: e.ruleName || "",
|
|
5371
|
-
decisionDataType: e.decisionDataType ||
|
|
5371
|
+
decisionDataType: e.decisionDataType || q.ALPHABETICAL,
|
|
5372
5372
|
howToSetTheDecision: e.howToSetTheDecision || "",
|
|
5373
5373
|
value: e.value || "",
|
|
5374
5374
|
effectiveFrom: e.effectiveFrom || "",
|
|
@@ -5380,7 +5380,7 @@ function Sl({
|
|
|
5380
5380
|
};
|
|
5381
5381
|
let l;
|
|
5382
5382
|
const d = {
|
|
5383
|
-
ruleName:
|
|
5383
|
+
ruleName: Re().required("El nombre de la decision es requerido"),
|
|
5384
5384
|
value: bt(() => {
|
|
5385
5385
|
const h = l.values.howToSetTheDecision;
|
|
5386
5386
|
return h === ge.RANGE && or(e) ? Tl : or(e) ? bn : rr(h)(
|
|
@@ -5402,16 +5402,16 @@ function Sl({
|
|
|
5402
5402
|
const S = {};
|
|
5403
5403
|
for (const [E, C] of Object.entries(f)) {
|
|
5404
5404
|
const N = y == null ? void 0 : y[E], A = {};
|
|
5405
|
-
C.forEach((
|
|
5406
|
-
const
|
|
5407
|
-
if (!on(
|
|
5408
|
-
const G = yn(
|
|
5409
|
-
|
|
5405
|
+
C.forEach((O) => {
|
|
5406
|
+
const V = N == null ? void 0 : N[O.conditionName];
|
|
5407
|
+
if (!on(V)) return;
|
|
5408
|
+
const G = yn(V), ie = rr(
|
|
5409
|
+
O.howToSetTheCondition
|
|
5410
5410
|
)(
|
|
5411
5411
|
G,
|
|
5412
|
-
|
|
5412
|
+
O.conditionDataType
|
|
5413
5413
|
).schema;
|
|
5414
|
-
A[
|
|
5414
|
+
A[O.conditionName] = wl(ie);
|
|
5415
5415
|
}), S[E] = ne(A);
|
|
5416
5416
|
}
|
|
5417
5417
|
return ne(S);
|
|
@@ -5430,10 +5430,10 @@ function Sl({
|
|
|
5430
5430
|
Object.entries(r).map(([y, m]) => {
|
|
5431
5431
|
var E;
|
|
5432
5432
|
const T = ((E = h.conditionsThatEstablishesTheDecision) == null ? void 0 : E[y]) || {}, S = m.map((C) => {
|
|
5433
|
-
const N = C.conditionName, A = T[N],
|
|
5433
|
+
const N = C.conditionName, A = T[N], O = yn(A);
|
|
5434
5434
|
return {
|
|
5435
5435
|
...C,
|
|
5436
|
-
value:
|
|
5436
|
+
value: O
|
|
5437
5437
|
};
|
|
5438
5438
|
}).filter((C) => on(C.value));
|
|
5439
5439
|
return [y, S];
|
|
@@ -5519,7 +5519,7 @@ const xl = $.div`
|
|
|
5519
5519
|
messageEnd: l = "",
|
|
5520
5520
|
statusStart: d = "pending",
|
|
5521
5521
|
statusEnd: p = "pending"
|
|
5522
|
-
} = e, [u, h] =
|
|
5522
|
+
} = e, [u, h] = Y(o), [g, f] = Y(s), y = (S) => {
|
|
5523
5523
|
h(S.target.value), t(S);
|
|
5524
5524
|
}, m = (S) => {
|
|
5525
5525
|
f(S.target.value), n(S);
|
|
@@ -5532,7 +5532,7 @@ const xl = $.div`
|
|
|
5532
5532
|
gap: "24px",
|
|
5533
5533
|
children: [
|
|
5534
5534
|
/* @__PURE__ */ i(
|
|
5535
|
-
|
|
5535
|
+
Oe,
|
|
5536
5536
|
{
|
|
5537
5537
|
id: "dateStart",
|
|
5538
5538
|
label: r,
|
|
@@ -5547,7 +5547,7 @@ const xl = $.div`
|
|
|
5547
5547
|
}
|
|
5548
5548
|
),
|
|
5549
5549
|
/* @__PURE__ */ i(
|
|
5550
|
-
|
|
5550
|
+
Oe,
|
|
5551
5551
|
{
|
|
5552
5552
|
id: "dateEnd",
|
|
5553
5553
|
label: a,
|
|
@@ -5720,7 +5720,7 @@ function $l(e) {
|
|
|
5720
5720
|
return e.replace(/\s+/g, " ").trim();
|
|
5721
5721
|
}
|
|
5722
5722
|
function kl(e) {
|
|
5723
|
-
const t = Il(e).toLowerCase(), n = /\b(s|es)\b/.test(
|
|
5723
|
+
const t = Il(e).toLowerCase(), n = /\b(s|es)\b/.test(Ol(e).toLowerCase()) && !t.endsWith("és");
|
|
5724
5724
|
return ({
|
|
5725
5725
|
mano: "f",
|
|
5726
5726
|
día: "m",
|
|
@@ -5732,32 +5732,32 @@ function kl(e) {
|
|
|
5732
5732
|
antigüedad: "f",
|
|
5733
5733
|
antiguedad: "f",
|
|
5734
5734
|
puntaje: "m"
|
|
5735
|
-
}[t] ??
|
|
5735
|
+
}[t] ?? Rl(t)) === "f" ? n ? "las" : "la" : n ? "los" : "el";
|
|
5736
5736
|
}
|
|
5737
5737
|
function Il(e) {
|
|
5738
5738
|
return (e.toLowerCase().split(
|
|
5739
5739
|
/\bdel\b|\bde la\b|\bde los\b|\bde las\b|\bde\b/
|
|
5740
5740
|
)[0].trim().split(/\s+/)[0] ?? "").normalize("NFD").replace(/^[^a-záéíóúüñ]+/i, "");
|
|
5741
5741
|
}
|
|
5742
|
-
function
|
|
5742
|
+
function Ol(e) {
|
|
5743
5743
|
const t = e.trim().split(/\s+/);
|
|
5744
5744
|
return t[t.length - 1] || "";
|
|
5745
5745
|
}
|
|
5746
|
-
function
|
|
5746
|
+
function Rl(e) {
|
|
5747
5747
|
return /(?:dad|tad|tud|umbre|ción|sión|ie|sis|itis)$/.test(e) || e.endsWith("ez") || e.endsWith("eza") ? "f" : /(?:aje|or|án|ambre)$/.test(e) ? "m" : e.endsWith("a") ? "f" : "m";
|
|
5748
5748
|
}
|
|
5749
5749
|
function Ll(e) {
|
|
5750
5750
|
switch (e) {
|
|
5751
|
-
case
|
|
5751
|
+
case F.EQUAL:
|
|
5752
5752
|
return "sea";
|
|
5753
|
-
case
|
|
5753
|
+
case F.GREATER_THAN:
|
|
5754
5754
|
return "sea mayor a";
|
|
5755
|
-
case
|
|
5755
|
+
case F.LESS_THAN:
|
|
5756
5756
|
return "sea menor a";
|
|
5757
|
-
case
|
|
5757
|
+
case F.RANGE:
|
|
5758
5758
|
return "esté entre";
|
|
5759
|
-
case
|
|
5760
|
-
case
|
|
5759
|
+
case F.LIST_OF_VALUES:
|
|
5760
|
+
case F.LIST_OF_VALUES_MULTI:
|
|
5761
5761
|
return "esté en";
|
|
5762
5762
|
default:
|
|
5763
5763
|
return "sea";
|
|
@@ -5824,15 +5824,15 @@ const ut = (e) => {
|
|
|
5824
5824
|
] : [], S = {};
|
|
5825
5825
|
let E = 1;
|
|
5826
5826
|
const C = T.map((I) => {
|
|
5827
|
-
const _ = I === m,
|
|
5828
|
-
return S[
|
|
5829
|
-
id:
|
|
5830
|
-
label: _ ? "Condición principal" : mn(I, Number(
|
|
5827
|
+
const _ = I === m, R = _ ? "mainCondition" : `alternateCondition-${E++}`;
|
|
5828
|
+
return S[R] = I, {
|
|
5829
|
+
id: R,
|
|
5830
|
+
label: _ ? "Condición principal" : mn(I, Number(R.split("-").at(-1))),
|
|
5831
5831
|
isDisabled: !1
|
|
5832
5832
|
};
|
|
5833
5833
|
}), [N, A] = U.useState(
|
|
5834
5834
|
((dt = C[0]) == null ? void 0 : dt.id) ?? "mainCondition"
|
|
5835
|
-
),
|
|
5835
|
+
), O = (I) => A(I), V = S[N] ?? m ?? "group-primary";
|
|
5836
5836
|
U.useEffect(() => {
|
|
5837
5837
|
var H;
|
|
5838
5838
|
const I = (H = d.values) == null ? void 0 : H.conditionsThatEstablishesTheDecision;
|
|
@@ -5840,11 +5840,11 @@ const ut = (e) => {
|
|
|
5840
5840
|
if (I && typeof I == "object" && (_ = Object.values(I).some(
|
|
5841
5841
|
(P) => P && typeof P == "object" && Object.keys(P).length > 0
|
|
5842
5842
|
)), _) return;
|
|
5843
|
-
const
|
|
5844
|
-
if (!
|
|
5843
|
+
const R = Me(t);
|
|
5844
|
+
if (!R || Object.keys(R).length === 0)
|
|
5845
5845
|
return;
|
|
5846
5846
|
const w = Object.fromEntries(
|
|
5847
|
-
Object.entries(
|
|
5847
|
+
Object.entries(R).map(([P, X]) => {
|
|
5848
5848
|
const be = Object.fromEntries(
|
|
5849
5849
|
X.map((ye) => {
|
|
5850
5850
|
const ae = ut(ye.howToSetTheCondition), ve = ye.value ?? pt(ae);
|
|
@@ -5863,7 +5863,7 @@ const ut = (e) => {
|
|
|
5863
5863
|
var X;
|
|
5864
5864
|
const I = (X = d.values) == null ? void 0 : X.conditionsThatEstablishesTheDecision;
|
|
5865
5865
|
if (!I || typeof I != "object") return;
|
|
5866
|
-
const _ = Me(u),
|
|
5866
|
+
const _ = Me(u), R = Object.entries(I).map(
|
|
5867
5867
|
([be, ye]) => {
|
|
5868
5868
|
const ae = _[be] || [], ve = Object.keys(ye).map((Ne) => {
|
|
5869
5869
|
const J = ye[Ne], ue = ae.find((ta) => ta.conditionName === Ne) || {}, Zt = ut(
|
|
@@ -5881,11 +5881,11 @@ const ut = (e) => {
|
|
|
5881
5881
|
conditionsThatEstablishesTheDecision: ve
|
|
5882
5882
|
};
|
|
5883
5883
|
}
|
|
5884
|
-
), w = d.values.conditionGroups, H = JSON.stringify(
|
|
5885
|
-
H !== P && d.setFieldValue("conditionGroups",
|
|
5884
|
+
), w = d.values.conditionGroups, H = JSON.stringify(R), P = JSON.stringify(w ?? []);
|
|
5885
|
+
H !== P && d.setFieldValue("conditionGroups", R, !1);
|
|
5886
5886
|
}, [(ct = d.values) == null ? void 0 : ct.conditionsThatEstablishesTheDecision, u]);
|
|
5887
5887
|
const G = U.useMemo(() => {
|
|
5888
|
-
const I = Object.keys(f),
|
|
5888
|
+
const I = Object.keys(f), R = (m != null ? [
|
|
5889
5889
|
...I.filter((w) => w === m),
|
|
5890
5890
|
...I.filter((w) => w !== m)
|
|
5891
5891
|
] : I).map((w) => {
|
|
@@ -5918,8 +5918,8 @@ const ut = (e) => {
|
|
|
5918
5918
|
});
|
|
5919
5919
|
return [w, P];
|
|
5920
5920
|
});
|
|
5921
|
-
return Object.fromEntries(
|
|
5922
|
-
}, [f, d.values, m]), te = G[
|
|
5921
|
+
return Object.fromEntries(R);
|
|
5922
|
+
}, [f, d.values, m]), te = G[V] ?? [], ie = G[m ?? "group-primary"] ?? [], ce = {
|
|
5923
5923
|
decisionDataType: t.decisionDataType,
|
|
5924
5924
|
howToSetTheCondition: t.howToSetTheDecision,
|
|
5925
5925
|
labelName: t.labelName,
|
|
@@ -5927,20 +5927,20 @@ const ut = (e) => {
|
|
|
5927
5927
|
listOfPossibleValues: t.listOfPossibleValues,
|
|
5928
5928
|
ruleName: t.ruleName,
|
|
5929
5929
|
timeUnit: t.timeUnit ? gn("", t.timeUnit, !0).trim() : ""
|
|
5930
|
-
}, re = d.submitCount > 0 || !!d.touched.effectiveFrom,
|
|
5930
|
+
}, re = d.submitCount > 0 || !!d.touched.effectiveFrom, L = d.submitCount > 0 || !!d.touched.validUntil, M = re ? d.errors.effectiveFrom ? "invalid" : "valid" : void 0, Ce = L ? d.errors.validUntil ? "invalid" : "valid" : void 0, De = U.useMemo(() => {
|
|
5931
5931
|
const I = d.errors.conditionsThatEstablishesTheDecision;
|
|
5932
5932
|
if (!I) return;
|
|
5933
5933
|
if (typeof I == "string") return I;
|
|
5934
|
-
const _ = (
|
|
5935
|
-
if (
|
|
5936
|
-
if (typeof
|
|
5937
|
-
if (Array.isArray(
|
|
5938
|
-
for (const w of
|
|
5934
|
+
const _ = (R) => {
|
|
5935
|
+
if (R) {
|
|
5936
|
+
if (typeof R == "string") return R;
|
|
5937
|
+
if (Array.isArray(R))
|
|
5938
|
+
for (const w of R) {
|
|
5939
5939
|
const H = _(w);
|
|
5940
5940
|
if (H) return H;
|
|
5941
5941
|
}
|
|
5942
|
-
else if (typeof
|
|
5943
|
-
for (const w of Object.values(
|
|
5942
|
+
else if (typeof R == "object")
|
|
5943
|
+
for (const w of Object.values(R)) {
|
|
5944
5944
|
const H = _(w);
|
|
5945
5945
|
if (H) return H;
|
|
5946
5946
|
}
|
|
@@ -5950,10 +5950,10 @@ const ut = (e) => {
|
|
|
5950
5950
|
}, [d.errors.conditionsThatEstablishesTheDecision]), Ve = d.submitCount > 0 && !!De, Ye = (I) => {
|
|
5951
5951
|
const _ = (I == null ? void 0 : I.__howToSet) ?? ut(I == null ? void 0 : I.howToSetTheCondition);
|
|
5952
5952
|
return pt(_);
|
|
5953
|
-
}, _e = (I, _,
|
|
5953
|
+
}, _e = (I, _, R) => {
|
|
5954
5954
|
var X, be, ye, ae, ve;
|
|
5955
5955
|
const w = `conditionsThatEstablishesTheDecision.${I}.${_}`, H = (ye = (be = (X = d.values) == null ? void 0 : X.conditionsThatEstablishesTheDecision) == null ? void 0 : be[I]) == null ? void 0 : ye[_];
|
|
5956
|
-
H && typeof H == "object" && !Array.isArray(H) ? d.setFieldValue(`${w}.value`,
|
|
5956
|
+
H && typeof H == "object" && !Array.isArray(H) ? d.setFieldValue(`${w}.value`, R, !1) : d.setFieldValue(w, R, !1);
|
|
5957
5957
|
const P = (ae = d.values) == null ? void 0 : ae.conditionGroups;
|
|
5958
5958
|
if (Array.isArray(P)) {
|
|
5959
5959
|
const Ne = P.findIndex((J) => (J == null ? void 0 : J.ConditionGroupId) === I);
|
|
@@ -5963,23 +5963,23 @@ const ut = (e) => {
|
|
|
5963
5963
|
);
|
|
5964
5964
|
if (J >= 0) {
|
|
5965
5965
|
const ue = JSON.parse(JSON.stringify(P));
|
|
5966
|
-
ue[Ne].conditionsThatEstablishesTheDecision[J].value =
|
|
5966
|
+
ue[Ne].conditionsThatEstablishesTheDecision[J].value = R, d.setFieldValue("conditionGroups", ue, !1);
|
|
5967
5967
|
}
|
|
5968
5968
|
}
|
|
5969
5969
|
}
|
|
5970
|
-
},
|
|
5971
|
-
const [_, ...
|
|
5970
|
+
}, je = (I) => {
|
|
5971
|
+
const [_, ...R] = I.split("."), w = R.join("."), H = Object.values(h).flat().find((X) => X.conditionName === w), P = Ye(H || {});
|
|
5972
5972
|
_e(_, w, P), d.setFieldTouched(
|
|
5973
5973
|
`conditionsThatEstablishesTheDecision.${_}.${w}`,
|
|
5974
5974
|
!1,
|
|
5975
5975
|
!1
|
|
5976
5976
|
);
|
|
5977
5977
|
}, Q = () => {
|
|
5978
|
-
(h[
|
|
5979
|
-
const
|
|
5980
|
-
_e(
|
|
5978
|
+
(h[V] ?? []).forEach((_) => {
|
|
5979
|
+
const R = ut(_ == null ? void 0 : _.howToSetTheCondition), w = pt(R);
|
|
5980
|
+
_e(V, _.conditionName, w);
|
|
5981
5981
|
});
|
|
5982
|
-
}, [
|
|
5982
|
+
}, [W, ee] = U.useState(!1);
|
|
5983
5983
|
return /* @__PURE__ */ i(
|
|
5984
5984
|
Dl,
|
|
5985
5985
|
{
|
|
@@ -5991,9 +5991,9 @@ const ut = (e) => {
|
|
|
5991
5991
|
normalizedDecision: ce,
|
|
5992
5992
|
onCancel: r,
|
|
5993
5993
|
onRedefineCurrentTab: Q,
|
|
5994
|
-
onTabChange:
|
|
5994
|
+
onTabChange: O,
|
|
5995
5995
|
onClearCondition: (I) => {
|
|
5996
|
-
|
|
5996
|
+
je(I), a == null || a(I);
|
|
5997
5997
|
},
|
|
5998
5998
|
showConditionsError: Ve,
|
|
5999
5999
|
tabs: C,
|
|
@@ -6003,13 +6003,13 @@ const ut = (e) => {
|
|
|
6003
6003
|
visibleConditionsByGroup: G,
|
|
6004
6004
|
handleToggleNoneChange: p,
|
|
6005
6005
|
portalId: "redefine-confirm-portal",
|
|
6006
|
-
showRedefineConfirm:
|
|
6006
|
+
showRedefineConfirm: W,
|
|
6007
6007
|
onOpenRedefineConfirm: () => ee(!0),
|
|
6008
6008
|
onCloseRedefineConfirm: () => ee(!1),
|
|
6009
6009
|
onConfirmRedefine: () => {
|
|
6010
6010
|
Q();
|
|
6011
|
-
const I = (h[
|
|
6012
|
-
(_) => `${
|
|
6011
|
+
const I = (h[V] ?? []).map(
|
|
6012
|
+
(_) => `${V}.${_.conditionName}`
|
|
6013
6013
|
);
|
|
6014
6014
|
o == null || o(I), ee(!1);
|
|
6015
6015
|
},
|
|
@@ -6042,7 +6042,12 @@ const ut = (e) => {
|
|
|
6042
6042
|
min-height: auto;
|
|
6043
6043
|
}
|
|
6044
6044
|
`, Ul = (e) => {
|
|
6045
|
-
const { options: t } = e, [n, r] =
|
|
6045
|
+
const { options: t } = e, [n, r] = Y([]);
|
|
6046
|
+
Pe(() => {
|
|
6047
|
+
const d = t.filter((p) => p.value === "true");
|
|
6048
|
+
r(d);
|
|
6049
|
+
}, [t]);
|
|
6050
|
+
const a = (d) => {
|
|
6046
6051
|
r((p) => {
|
|
6047
6052
|
if (p.some((g) => g.id === d))
|
|
6048
6053
|
return p.filter((g) => g.id !== d);
|
|
@@ -6162,19 +6167,19 @@ const ut = (e) => {
|
|
|
6162
6167
|
withEditOption: C,
|
|
6163
6168
|
withTerm: N,
|
|
6164
6169
|
configurateDecisionOptions: A = [],
|
|
6165
|
-
configureDecisionModal:
|
|
6166
|
-
handleCloseRulesModal:
|
|
6170
|
+
configureDecisionModal: O,
|
|
6171
|
+
handleCloseRulesModal: V = () => {
|
|
6167
6172
|
}
|
|
6168
|
-
} = e, [G, te] =
|
|
6173
|
+
} = e, [G, te] = Y(null), { renderedCards: ie } = pl({
|
|
6169
6174
|
cardTitle: t,
|
|
6170
6175
|
controls: n,
|
|
6171
6176
|
customTitleContentAddCard: r,
|
|
6172
6177
|
decisions: o,
|
|
6173
6178
|
loading: p,
|
|
6174
|
-
handleOpenModal: (
|
|
6179
|
+
handleOpenModal: (L) => L !== null && u(L),
|
|
6175
6180
|
handleDelete: f,
|
|
6176
|
-
isOpenFor: (
|
|
6177
|
-
toggleAt: (
|
|
6181
|
+
isOpenFor: (L) => G === L,
|
|
6182
|
+
toggleAt: (L) => te((M) => M === L ? null : L),
|
|
6178
6183
|
editionMode: c,
|
|
6179
6184
|
withEditOption: C
|
|
6180
6185
|
}), ce = ((o == null ? void 0 : o.length) || 0) + 1, re = (o == null ? void 0 : o.length) === 0 && !p;
|
|
@@ -6239,7 +6244,7 @@ const ut = (e) => {
|
|
|
6239
6244
|
children: ie
|
|
6240
6245
|
}
|
|
6241
6246
|
) })) }) }) }),
|
|
6242
|
-
|
|
6247
|
+
O && /* @__PURE__ */ i(
|
|
6243
6248
|
jl,
|
|
6244
6249
|
{
|
|
6245
6250
|
options: A,
|
|
@@ -6252,7 +6257,7 @@ const ut = (e) => {
|
|
|
6252
6257
|
Ur,
|
|
6253
6258
|
{
|
|
6254
6259
|
portalId: "modal-portal",
|
|
6255
|
-
onCloseModal:
|
|
6260
|
+
onCloseModal: V,
|
|
6256
6261
|
title: d ? "Editar Decisión" : "Configurar Decisión",
|
|
6257
6262
|
description: "Diligencia los campos para configurar tu decisión.",
|
|
6258
6263
|
children: /* @__PURE__ */ i(
|
|
@@ -6261,7 +6266,7 @@ const ut = (e) => {
|
|
|
6261
6266
|
decision: d || s,
|
|
6262
6267
|
fullTemplate: S ?? s,
|
|
6263
6268
|
onSubmitEvent: g,
|
|
6264
|
-
onCancel: () =>
|
|
6269
|
+
onCancel: () => V ? V() : () => {
|
|
6265
6270
|
},
|
|
6266
6271
|
onRemoveCondition: y,
|
|
6267
6272
|
onRestoreConditions: m,
|
|
@@ -6312,8 +6317,8 @@ function Hl(e) {
|
|
|
6312
6317
|
);
|
|
6313
6318
|
}
|
|
6314
6319
|
const ql = (e, t) => {
|
|
6315
|
-
const [n, r] =
|
|
6316
|
-
return
|
|
6320
|
+
const [n, r] = Y([]), [a, o] = Y([]), [s, c] = Y(!1), l = Ke(null);
|
|
6321
|
+
return Pe(() => {
|
|
6317
6322
|
if (!e.current || !l.current) return;
|
|
6318
6323
|
const d = e.current, p = l.current, u = () => {
|
|
6319
6324
|
var E;
|
|
@@ -6408,7 +6413,7 @@ const Yl = $.div`
|
|
|
6408
6413
|
}
|
|
6409
6414
|
`, Jl = (e) => {
|
|
6410
6415
|
var h, g, f, y, m, T;
|
|
6411
|
-
const { id: t, label: n, leadingIcon: r, onClose: a } = e, [o, s] =
|
|
6416
|
+
const { id: t, label: n, leadingIcon: r, onClose: a } = e, [o, s] = Y(!1), c = () => s(!0), l = () => s(!1), d = En(Dn), p = ((f = (g = (h = d == null ? void 0 : d.input) == null ? void 0 : h.option) == null ? void 0 : g.appearance) == null ? void 0 : f.hover) ?? vn.option.appearance.hover, u = ((T = (m = (y = d == null ? void 0 : d.input) == null ? void 0 : y.option) == null ? void 0 : m.appearance) == null ? void 0 : T.regular) ?? vn.option.appearance.regular;
|
|
6412
6417
|
return /* @__PURE__ */ i(
|
|
6413
6418
|
Xl,
|
|
6414
6419
|
{
|
|
@@ -6473,14 +6478,14 @@ const Yl = $.div`
|
|
|
6473
6478
|
hidden: u,
|
|
6474
6479
|
showOverflowIndicator: h,
|
|
6475
6480
|
measurementRef: g
|
|
6476
|
-
} = ql(c, t), [f, y] =
|
|
6481
|
+
} = ql(c, t), [f, y] = Y(!1), m = (N) => {
|
|
6477
6482
|
N.stopPropagation(), y((A) => !A);
|
|
6478
6483
|
};
|
|
6479
|
-
|
|
6484
|
+
Pe(() => {
|
|
6480
6485
|
const N = (A) => {
|
|
6481
6486
|
var G, te;
|
|
6482
|
-
const
|
|
6483
|
-
!((G = l.current) != null && G.contains(
|
|
6487
|
+
const O = A.target;
|
|
6488
|
+
!((G = l.current) != null && G.contains(O)) && !((te = d.current) != null && te.contains(O)) && y(!1);
|
|
6484
6489
|
};
|
|
6485
6490
|
return f && window.addEventListener("mousedown", N), () => window.removeEventListener("mousedown", N);
|
|
6486
6491
|
}, [f]);
|
|
@@ -6490,8 +6495,8 @@ const Yl = $.div`
|
|
|
6490
6495
|
label: N.label,
|
|
6491
6496
|
icon: N.icon
|
|
6492
6497
|
})), C = (N) => {
|
|
6493
|
-
var A,
|
|
6494
|
-
(
|
|
6498
|
+
var A, O;
|
|
6499
|
+
(O = (A = u.find((V) => V.label === N)) == null ? void 0 : A.onClose) == null || O.call(A), y(!1);
|
|
6495
6500
|
};
|
|
6496
6501
|
return /* @__PURE__ */ b(Hl, { borderRadius: "8px", width: "100%", children: [
|
|
6497
6502
|
/* @__PURE__ */ i(Wl, { ref: g, children: t.map((N) => /* @__PURE__ */ i("div", { "data-filter-tag": "true", children: /* @__PURE__ */ i(
|
|
@@ -6719,14 +6724,14 @@ const Yl = $.div`
|
|
|
6719
6724
|
} : n;
|
|
6720
6725
|
});
|
|
6721
6726
|
}, Kl = (e) => ({
|
|
6722
|
-
schema:
|
|
6727
|
+
schema: Re().required("Requerido").test(
|
|
6723
6728
|
"non-empty",
|
|
6724
6729
|
"El valor no puede estar vacío",
|
|
6725
6730
|
(t) => t != null && t.trim() !== ""
|
|
6726
6731
|
),
|
|
6727
6732
|
value: e
|
|
6728
6733
|
}), es = (e) => ({
|
|
6729
|
-
schema:
|
|
6734
|
+
schema: ze().test(
|
|
6730
6735
|
"isArrayOrString",
|
|
6731
6736
|
"Debe ser un array de strings/numbers o un solo string",
|
|
6732
6737
|
(t) => Array.isArray(t) ? t.every(
|
|
@@ -6735,7 +6740,7 @@ const Yl = $.div`
|
|
|
6735
6740
|
),
|
|
6736
6741
|
value: e
|
|
6737
6742
|
}), ts = (e) => ({
|
|
6738
|
-
schema:
|
|
6743
|
+
schema: ze().test(
|
|
6739
6744
|
"isArrayOrString",
|
|
6740
6745
|
"Debe ser un array de strings/numbers o un solo string ",
|
|
6741
6746
|
(t) => Array.isArray(t) ? t.every(
|
|
@@ -6763,15 +6768,15 @@ const Yl = $.div`
|
|
|
6763
6768
|
schema: $e().required("El campo tipo porcentaje es requerido").min(0, "El campo tipo porcentaje no puede ser menor que 0").max(100, "El campo tipo porcentaje no puede ser mayor que 100"),
|
|
6764
6769
|
value: e
|
|
6765
6770
|
} : {
|
|
6766
|
-
schema:
|
|
6771
|
+
schema: Re().required("Requerido"),
|
|
6767
6772
|
value: e
|
|
6768
6773
|
}, rs = {
|
|
6769
|
-
[
|
|
6770
|
-
[
|
|
6771
|
-
[
|
|
6772
|
-
[
|
|
6773
|
-
[
|
|
6774
|
-
[
|
|
6774
|
+
[F.LIST_OF_VALUES]: es,
|
|
6775
|
+
[F.LIST_OF_VALUES_MULTI]: ts,
|
|
6776
|
+
[F.RANGE]: ns,
|
|
6777
|
+
[F.GREATER_THAN]: ln,
|
|
6778
|
+
[F.LESS_THAN]: ln,
|
|
6779
|
+
[F.EQUAL]: ln
|
|
6775
6780
|
}, lr = (e) => rs[e] || Kl;
|
|
6776
6781
|
function as({
|
|
6777
6782
|
decision: e,
|
|
@@ -6792,7 +6797,7 @@ function as({
|
|
|
6792
6797
|
};
|
|
6793
6798
|
let a;
|
|
6794
6799
|
const o = {
|
|
6795
|
-
ruleName:
|
|
6800
|
+
ruleName: Re().required("El nombre de la regla es requerido"),
|
|
6796
6801
|
value: bt(() => lr(
|
|
6797
6802
|
a.values.howToSetTheDecision
|
|
6798
6803
|
)(
|
|
@@ -6904,7 +6909,7 @@ function as({
|
|
|
6904
6909
|
void 0
|
|
6905
6910
|
);
|
|
6906
6911
|
else {
|
|
6907
|
-
const u = p.howToSetTheCondition ===
|
|
6912
|
+
const u = p.howToSetTheCondition === F.LIST_OF_VALUES_MULTI ? [] : "";
|
|
6908
6913
|
a.setFieldValue(
|
|
6909
6914
|
`conditionsThatEstablishesTheDecision.${p.conditionName}`,
|
|
6910
6915
|
u
|
|
@@ -6948,10 +6953,10 @@ const os = $.div`
|
|
|
6948
6953
|
labelToggle: o,
|
|
6949
6954
|
name: s,
|
|
6950
6955
|
valueToggle: c = ""
|
|
6951
|
-
} = e, [l, d] =
|
|
6956
|
+
} = e, [l, d] = Y(t), p = (u) => {
|
|
6952
6957
|
d(u.target.checked), r(u);
|
|
6953
6958
|
};
|
|
6954
|
-
return
|
|
6959
|
+
return Pe(() => {
|
|
6955
6960
|
d(t);
|
|
6956
6961
|
}, [t]), /* @__PURE__ */ b(j, { children: [
|
|
6957
6962
|
/* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(
|
|
@@ -6983,13 +6988,13 @@ const os = $.div`
|
|
|
6983
6988
|
messageEnd: u = "",
|
|
6984
6989
|
statusStart: h = "pending",
|
|
6985
6990
|
statusEnd: g = "pending"
|
|
6986
|
-
} = e, [f, y] =
|
|
6987
|
-
y(
|
|
6988
|
-
}, N = (
|
|
6989
|
-
T(
|
|
6990
|
-
}, A = (
|
|
6991
|
-
E(
|
|
6992
|
-
},
|
|
6991
|
+
} = e, [f, y] = Y(s), [m, T] = Y(l), [S, E] = Y(d), C = ({ target: V }) => {
|
|
6992
|
+
y(V.checked), r && r(V.checked);
|
|
6993
|
+
}, N = (V) => {
|
|
6994
|
+
T(V.target.value), t(V);
|
|
6995
|
+
}, A = (V) => {
|
|
6996
|
+
E(V.target.value), n(V);
|
|
6997
|
+
}, O = Se("(max-width: 400px)");
|
|
6993
6998
|
return /* @__PURE__ */ b(j, { children: [
|
|
6994
6999
|
/* @__PURE__ */ b(v, { direction: "row", justifyContent: "space-between", margin: "10px 0", children: [
|
|
6995
7000
|
/* @__PURE__ */ i(
|
|
@@ -7025,12 +7030,12 @@ const os = $.div`
|
|
|
7025
7030
|
/* @__PURE__ */ b(
|
|
7026
7031
|
v,
|
|
7027
7032
|
{
|
|
7028
|
-
direction:
|
|
7033
|
+
direction: O ? "column" : "row",
|
|
7029
7034
|
justifyContent: "space-between",
|
|
7030
7035
|
gap: "24px",
|
|
7031
7036
|
children: [
|
|
7032
7037
|
/* @__PURE__ */ i(
|
|
7033
|
-
|
|
7038
|
+
Oe,
|
|
7034
7039
|
{
|
|
7035
7040
|
id: "dateStart",
|
|
7036
7041
|
label: a,
|
|
@@ -7043,7 +7048,7 @@ const os = $.div`
|
|
|
7043
7048
|
}
|
|
7044
7049
|
),
|
|
7045
7050
|
f && /* @__PURE__ */ i(
|
|
7046
|
-
|
|
7051
|
+
Oe,
|
|
7047
7052
|
{
|
|
7048
7053
|
id: "dateEnd",
|
|
7049
7054
|
label: o,
|
|
@@ -7117,7 +7122,7 @@ const os = $.div`
|
|
|
7117
7122
|
checked: !t.values.toggleNone && t.values.conditionsThatEstablishesTheDecision[u.conditionName] !== void 0,
|
|
7118
7123
|
handleToggleChange: (h) => c(
|
|
7119
7124
|
u.conditionName,
|
|
7120
|
-
u.howToSetTheCondition ===
|
|
7125
|
+
u.howToSetTheCondition === F.LIST_OF_VALUES_MULTI
|
|
7121
7126
|
)(h.target.checked),
|
|
7122
7127
|
children: jt({ condition: u, formik: t })
|
|
7123
7128
|
},
|
|
@@ -7238,7 +7243,7 @@ const os = $.div`
|
|
|
7238
7243
|
)
|
|
7239
7244
|
} : n;
|
|
7240
7245
|
});
|
|
7241
|
-
},
|
|
7246
|
+
}, Ge = {
|
|
7242
7247
|
item: {
|
|
7243
7248
|
background: {
|
|
7244
7249
|
active: k.palette.blue.B50,
|
|
@@ -7260,7 +7265,7 @@ const os = $.div`
|
|
|
7260
7265
|
border: 1px solid
|
|
7261
7266
|
${({ theme: e, $active: t }) => {
|
|
7262
7267
|
var n, r, a, o;
|
|
7263
|
-
return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) ||
|
|
7268
|
+
return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) || Ge.border.expanded.color : ((o = (a = e == null ? void 0 : e.border) == null ? void 0 : a.contracted) == null ? void 0 : o.color) || Ge.border.contracted.color;
|
|
7264
7269
|
}};
|
|
7265
7270
|
}
|
|
7266
7271
|
&:hover {
|
|
@@ -7268,7 +7273,7 @@ const os = $.div`
|
|
|
7268
7273
|
background-color: ${({ theme: e, $disabled: t }) => {
|
|
7269
7274
|
var n, r, a;
|
|
7270
7275
|
if (!t)
|
|
7271
|
-
return ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.hover) ||
|
|
7276
|
+
return ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.hover) || Ge.item.background.hover;
|
|
7272
7277
|
}};
|
|
7273
7278
|
}
|
|
7274
7279
|
`, sr = $.div`
|
|
@@ -7296,7 +7301,7 @@ const os = $.div`
|
|
|
7296
7301
|
border-bottom: 1px solid
|
|
7297
7302
|
${({ theme: e, $active: t }) => {
|
|
7298
7303
|
var n, r, a, o;
|
|
7299
|
-
return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) ||
|
|
7304
|
+
return t ? ((r = (n = e == null ? void 0 : e.border) == null ? void 0 : n.expanded) == null ? void 0 : r.color) || Ge.border.expanded.color : ((o = (a = e == null ? void 0 : e.border) == null ? void 0 : a.contracted) == null ? void 0 : o.color) || Ge.border.contracted.color;
|
|
7300
7305
|
}};
|
|
7301
7306
|
border-radius: 8px 8px 0 0;
|
|
7302
7307
|
}
|
|
@@ -7305,7 +7310,7 @@ const os = $.div`
|
|
|
7305
7310
|
text-decoration: none;
|
|
7306
7311
|
background-color: ${({ theme: e, $active: t }) => {
|
|
7307
7312
|
var n, r, a, o, s, c;
|
|
7308
|
-
return t ? ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.active) ||
|
|
7313
|
+
return t ? ((a = (r = (n = e == null ? void 0 : e.menu) == null ? void 0 : n.item) == null ? void 0 : r.background) == null ? void 0 : a.active) || Ge.item.background.active : ((c = (s = (o = e == null ? void 0 : e.menu) == null ? void 0 : o.item) == null ? void 0 : s.background) == null ? void 0 : c.inactive) || Ge.item.background.inactive;
|
|
7309
7314
|
}};
|
|
7310
7315
|
&:last-child {
|
|
7311
7316
|
border-radius: 0 0 8px 8px;
|
|
@@ -7315,7 +7320,7 @@ const os = $.div`
|
|
|
7315
7320
|
background-color: ${({ $active: e, theme: t, $disabled: n }) => {
|
|
7316
7321
|
var r, a, o;
|
|
7317
7322
|
if (!n && !e)
|
|
7318
|
-
return ((o = (a = (r = t == null ? void 0 : t.menu) == null ? void 0 : r.item) == null ? void 0 : a.background) == null ? void 0 : o.hover) ||
|
|
7323
|
+
return ((o = (a = (r = t == null ? void 0 : t.menu) == null ? void 0 : r.item) == null ? void 0 : a.background) == null ? void 0 : o.hover) || Ge.item.background.hover;
|
|
7319
7324
|
}};
|
|
7320
7325
|
}
|
|
7321
7326
|
`, ms = $.div`
|
|
@@ -7735,11 +7740,11 @@ function $s({
|
|
|
7735
7740
|
handleNodePointerdown: Hs,
|
|
7736
7741
|
handleNodeDragenter: dd,
|
|
7737
7742
|
handleNodeDragleave: cd,
|
|
7738
|
-
handleParentDrop:
|
|
7743
|
+
handleParentDrop: Rs,
|
|
7739
7744
|
multiDrag: r.multiDrag ?? !1,
|
|
7740
7745
|
nativeDrag: r.nativeDrag ?? !0,
|
|
7741
7746
|
performSort: ks,
|
|
7742
|
-
performTransfer:
|
|
7747
|
+
performTransfer: Os,
|
|
7743
7748
|
root: r.root ?? document,
|
|
7744
7749
|
setupNode: Fs,
|
|
7745
7750
|
setupNodeRemap: Jr,
|
|
@@ -7844,7 +7849,7 @@ function Xe(e, t, n) {
|
|
|
7844
7849
|
const r = t.data.config.selectedClass;
|
|
7845
7850
|
if (!n.selectedState) return;
|
|
7846
7851
|
const a = Array.from(e);
|
|
7847
|
-
|
|
7852
|
+
Be(
|
|
7848
7853
|
e.map((o) => o.el),
|
|
7849
7854
|
r
|
|
7850
7855
|
);
|
|
@@ -7867,7 +7872,7 @@ function Is(e, t) {
|
|
|
7867
7872
|
const n = e.targetData.parent.data.enabledNodes[0];
|
|
7868
7873
|
n && (t.selectedState && t.selectedState.parent.el !== e.targetData.parent.el ? Je(e.targetData.parent, n, t) : t.selectedState || Je(e.targetData.parent, n, t));
|
|
7869
7874
|
}
|
|
7870
|
-
function
|
|
7875
|
+
function Os({
|
|
7871
7876
|
currentParent: e,
|
|
7872
7877
|
targetParent: t,
|
|
7873
7878
|
initialParent: n,
|
|
@@ -7907,7 +7912,7 @@ function at(e, t) {
|
|
|
7907
7912
|
function Tn(e, t, n) {
|
|
7908
7913
|
t.setValues(n, e);
|
|
7909
7914
|
}
|
|
7910
|
-
function
|
|
7915
|
+
function Rs(e, t) {
|
|
7911
7916
|
qe(e.e), He = !0;
|
|
7912
7917
|
const n = t.initialParent.data.config.handleEnd;
|
|
7913
7918
|
n(t);
|
|
@@ -8249,7 +8254,7 @@ function qs(e, t, n, r = !1) {
|
|
|
8249
8254
|
t.map((a) => a.el),
|
|
8250
8255
|
r ? n.synthDraggingClass : n.draggingClass
|
|
8251
8256
|
), setTimeout(() => {
|
|
8252
|
-
|
|
8257
|
+
Be(
|
|
8253
8258
|
t.map((a) => a.el),
|
|
8254
8259
|
r ? n.synthDraggingClass : n.draggingClass
|
|
8255
8260
|
), tt(
|
|
@@ -8258,7 +8263,7 @@ function qs(e, t, n, r = !1) {
|
|
|
8258
8263
|
), tt(
|
|
8259
8264
|
t.map((a) => a.el),
|
|
8260
8265
|
r ? n.synthDropZoneClass : n.dropZoneClass
|
|
8261
|
-
),
|
|
8266
|
+
), Be(
|
|
8262
8267
|
t.map((a) => a.el),
|
|
8263
8268
|
n.selectedClass
|
|
8264
8269
|
);
|
|
@@ -8381,7 +8386,7 @@ function td(e) {
|
|
|
8381
8386
|
e.draggedNode && (e.draggedNode.el.draggable = !0);
|
|
8382
8387
|
const t = e.draggedNodes.map((y) => y.el), n = e.initialParent.data, r = me(e), a = (p = oe.get(e.initialParent.el)) == null ? void 0 : p.config, o = 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 : (g = n == null ? void 0 : n.config) == null ? void 0 : g.dragPlaceholderClass, l = e.originalZIndex;
|
|
8383
8388
|
me(e) && (e.clonedDraggedNode && e.clonedDraggedNode.remove(), e.longPressTimeout && clearTimeout(e.longPressTimeout)), wn(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(() => {
|
|
8384
|
-
|
|
8389
|
+
Be(t, o), Be(t, s), Be(t, c);
|
|
8385
8390
|
}), Xe(e.draggedNodes, e.currentParent, e), Je(e.currentParent, void 0, e);
|
|
8386
8391
|
const d = { ...e };
|
|
8387
8392
|
(f = a == null ? void 0 : a.onDragend) == null || f.call(a, {
|
|
@@ -8398,7 +8403,7 @@ function td(e) {
|
|
|
8398
8403
|
function nd(e, t) {
|
|
8399
8404
|
qe(e.e), !t.pointerSelection && t.selectedState && Xe(t.selectedState.nodes, e.targetData.parent, t);
|
|
8400
8405
|
const n = e.targetData.parent.data.config;
|
|
8401
|
-
t.pointerSelection = !1, "longPressTimeout" in t && t.longPressTimeout && clearTimeout(t.longPressTimeout), t.longPress = !1,
|
|
8406
|
+
t.pointerSelection = !1, "longPressTimeout" in t && t.longPressTimeout && clearTimeout(t.longPressTimeout), t.longPress = !1, Be(
|
|
8402
8407
|
e.targetData.parent.data.enabledNodes.map((r) => r.el),
|
|
8403
8408
|
n.longPressClass
|
|
8404
8409
|
), de(t) && n.handleEnd(t);
|
|
@@ -8498,7 +8503,7 @@ function wn(e, t = !0, n = !0) {
|
|
|
8498
8503
|
function Kr(e, t = !1) {
|
|
8499
8504
|
var p;
|
|
8500
8505
|
const { x: n, y: r } = e.coordinates, a = e.startLeft ?? 0, o = e.startTop ?? 0, s = window.scrollX ?? 0, c = window.scrollY ?? 0, l = n - a + s, d = r - o + c;
|
|
8501
|
-
e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${d}px, 0px)`, t && (e.clonedDraggedNode.style.opacity = "1",
|
|
8506
|
+
e.clonedDraggedNode.style.transform = `translate3d(${l}px, ${d}px, 0px)`, t && (e.clonedDraggedNode.style.opacity = "1", Be(
|
|
8502
8507
|
e.draggedNodes.map((u) => u.el),
|
|
8503
8508
|
(p = e.initialParent.data.config) == null ? void 0 : p.longPressClass
|
|
8504
8509
|
));
|
|
@@ -8716,7 +8721,7 @@ function pd(e, t, n, r = !1) {
|
|
|
8716
8721
|
) : e.classList.add(s);
|
|
8717
8722
|
return n.privateClasses = o, n;
|
|
8718
8723
|
}
|
|
8719
|
-
function
|
|
8724
|
+
function Be(e, t) {
|
|
8720
8725
|
if (!t) return;
|
|
8721
8726
|
const n = qr(t);
|
|
8722
8727
|
if (n.length)
|
|
@@ -8886,13 +8891,13 @@ function hr(e) {
|
|
|
8886
8891
|
}));
|
|
8887
8892
|
}
|
|
8888
8893
|
function Td(e, t = {}) {
|
|
8889
|
-
const n = Ke(null), [r, a] =
|
|
8894
|
+
const n = Ke(null), [r, a] = Y(e);
|
|
8890
8895
|
function o(s = {}) {
|
|
8891
8896
|
hr({ parent: n, state: [r, a], ...s });
|
|
8892
8897
|
}
|
|
8893
|
-
return
|
|
8898
|
+
return Pe(() => {
|
|
8894
8899
|
hr({ parent: n, state: [r, a], ...t });
|
|
8895
|
-
}, [r]),
|
|
8900
|
+
}, [r]), Pe(() => () => {
|
|
8896
8901
|
n.current && Xr(n.current);
|
|
8897
8902
|
}, []), [n, r, a, o];
|
|
8898
8903
|
}
|
|
@@ -8956,10 +8961,10 @@ const gr = {
|
|
|
8956
8961
|
},
|
|
8957
8962
|
[l]
|
|
8958
8963
|
), T = (C) => {
|
|
8959
|
-
var
|
|
8964
|
+
var V;
|
|
8960
8965
|
if (l) return;
|
|
8961
|
-
const N = C.target, A = (
|
|
8962
|
-
|
|
8966
|
+
const N = C.target, A = (V = N == null ? void 0 : N.closest) == null ? void 0 : V.call(N, "li.dnd-item"), O = (A == null ? void 0 : A.getAttribute("data-label")) || null;
|
|
8967
|
+
O && (f(O), m(O));
|
|
8963
8968
|
}, S = U.useCallback(() => {
|
|
8964
8969
|
l || (f(null), m(null));
|
|
8965
8970
|
}, [m, l]);
|
|
@@ -8973,10 +8978,10 @@ const gr = {
|
|
|
8973
8978
|
if (l) return;
|
|
8974
8979
|
const C = y.current;
|
|
8975
8980
|
if (h.length !== C.length && h.length === C.length + 1) {
|
|
8976
|
-
const N = new Set(C), A = h.find((
|
|
8981
|
+
const N = new Set(C), A = h.find((O) => !N.has(O)) || null;
|
|
8977
8982
|
if (A) {
|
|
8978
|
-
const
|
|
8979
|
-
c == null || c({ item: A, from:
|
|
8983
|
+
const O = n === "left" ? "right" : "left";
|
|
8984
|
+
c == null || c({ item: A, from: O, to: n });
|
|
8980
8985
|
}
|
|
8981
8986
|
}
|
|
8982
8987
|
y.current = h;
|
|
@@ -9097,7 +9102,7 @@ const gr = {
|
|
|
9097
9102
|
}
|
|
9098
9103
|
}
|
|
9099
9104
|
}
|
|
9100
|
-
`,
|
|
9105
|
+
`, Oc = (e) => /* @__PURE__ */ i(xd, { children: /* @__PURE__ */ i(Z, { ...e }) }), Cd = $.div`
|
|
9101
9106
|
display: flex;
|
|
9102
9107
|
justify-content: space-between;
|
|
9103
9108
|
align-items: center;
|
|
@@ -9126,7 +9131,7 @@ const gr = {
|
|
|
9126
9131
|
}
|
|
9127
9132
|
}
|
|
9128
9133
|
}
|
|
9129
|
-
`,
|
|
9134
|
+
`, Rc = (e) => {
|
|
9130
9135
|
const { handleBack: t, handleNext: n, disabledBack: r, disabledNext: a, textValues: o } = e;
|
|
9131
9136
|
return /* @__PURE__ */ b(Cd, { children: [
|
|
9132
9137
|
/* @__PURE__ */ i(
|
|
@@ -9213,10 +9218,10 @@ const gr = {
|
|
|
9213
9218
|
} catch (c) {
|
|
9214
9219
|
return console.warn(`[Translation] Failed for: "${e}"`, c), e;
|
|
9215
9220
|
}
|
|
9216
|
-
},
|
|
9221
|
+
}, Od = (e) => typeof e == "string" && e.trim().length > 0, br = async (e, t, n) => {
|
|
9217
9222
|
const r = await Promise.all(
|
|
9218
9223
|
Object.entries(e).map(async ([a, o]) => {
|
|
9219
|
-
if (
|
|
9224
|
+
if (Od(o)) {
|
|
9220
9225
|
const s = await Id(o, t, n);
|
|
9221
9226
|
return [a, s];
|
|
9222
9227
|
} else if (Array.isArray(o)) {
|
|
@@ -9235,11 +9240,11 @@ const gr = {
|
|
|
9235
9240
|
);
|
|
9236
9241
|
return Object.fromEntries(r);
|
|
9237
9242
|
};
|
|
9238
|
-
function
|
|
9243
|
+
function Rd(e) {
|
|
9239
9244
|
return typeof e == "function";
|
|
9240
9245
|
}
|
|
9241
9246
|
function Fn(e, t) {
|
|
9242
|
-
return
|
|
9247
|
+
return Rd(e) ? e(t) : e.split(".").reduce((n, r) => n ? n[r] : void 0, t);
|
|
9243
9248
|
}
|
|
9244
9249
|
const Ld = {
|
|
9245
9250
|
1: "1fr",
|
|
@@ -9780,7 +9785,7 @@ const tc = $.div`
|
|
|
9780
9785
|
width: 100%;
|
|
9781
9786
|
cursor: pointer;
|
|
9782
9787
|
`, rc = (e) => {
|
|
9783
|
-
const { title: t, defaultOpen: n = !0, children: r } = e, [a, o] =
|
|
9788
|
+
const { title: t, defaultOpen: n = !0, children: r } = e, [a, o] = Y(n);
|
|
9784
9789
|
return /* @__PURE__ */ b(tc, { children: [
|
|
9785
9790
|
/* @__PURE__ */ b(nc, { onClick: () => {
|
|
9786
9791
|
o(!a);
|
|
@@ -10111,19 +10116,19 @@ function _c(e) {
|
|
|
10111
10116
|
) }, `${p.id}-box`)) });
|
|
10112
10117
|
}
|
|
10113
10118
|
export {
|
|
10114
|
-
|
|
10119
|
+
Rc as BackAndNextButton,
|
|
10115
10120
|
Dt as BusinessRuleCard,
|
|
10116
10121
|
_r as BusinessRuleCardNew,
|
|
10117
|
-
|
|
10122
|
+
Rn as BusinessRuleView,
|
|
10118
10123
|
Pr as BusinessRuleViewNew,
|
|
10119
10124
|
vc as BusinessRules,
|
|
10120
10125
|
wc as BusinessRulesNew,
|
|
10121
10126
|
Tc as BusinessRulesWithGroup,
|
|
10122
|
-
|
|
10127
|
+
Rr as Checkpicker,
|
|
10123
10128
|
jt as DecisionConditionRender,
|
|
10124
10129
|
Un as DecisionConditionRenderNew,
|
|
10125
10130
|
et as DecisionViewConditionRenderer,
|
|
10126
|
-
|
|
10131
|
+
Ot as DecisionViewConditionRendererNew,
|
|
10127
10132
|
Ic as DragAndDropBoxes,
|
|
10128
10133
|
fr as DraggableList,
|
|
10129
10134
|
bs as DropdownMenu,
|
|
@@ -10133,24 +10138,24 @@ export {
|
|
|
10133
10138
|
$o as DynamicViewField,
|
|
10134
10139
|
Po as DynamicViewFieldNew,
|
|
10135
10140
|
We as EFieldType,
|
|
10136
|
-
|
|
10141
|
+
q as EFieldTypeNew,
|
|
10137
10142
|
ge as EValueHowToSetUp,
|
|
10138
10143
|
Sc as Filter,
|
|
10139
|
-
|
|
10144
|
+
On as FilterModal,
|
|
10140
10145
|
xc as FormFilter,
|
|
10141
|
-
|
|
10146
|
+
Or as InputRange,
|
|
10142
10147
|
Lr as InputRangeNew,
|
|
10143
10148
|
Xo as ModalRules,
|
|
10144
10149
|
Ir as MultipleChoices,
|
|
10145
10150
|
bc as MultipleChoicesNew,
|
|
10146
10151
|
cs as RulesForm,
|
|
10147
|
-
|
|
10152
|
+
Oc as SendButton,
|
|
10148
10153
|
le as ValueDataType,
|
|
10149
10154
|
z as ValueHowToSetUp,
|
|
10150
10155
|
_c as Verification,
|
|
10151
10156
|
ko as ViewMultipleChoices,
|
|
10152
10157
|
zo as ViewMultipleChoicesNew,
|
|
10153
|
-
|
|
10158
|
+
Oo as ViewRangeField,
|
|
10154
10159
|
jo as ViewRangeFieldNew,
|
|
10155
10160
|
Nl as buildEsConditionSentence,
|
|
10156
10161
|
Zl as convertRangeToString,
|
|
@@ -10158,7 +10163,7 @@ export {
|
|
|
10158
10163
|
Mr as filterByGroup,
|
|
10159
10164
|
Lc as flatFromGroups,
|
|
10160
10165
|
Cc as formatDecisionForBackend,
|
|
10161
|
-
|
|
10166
|
+
Ue as formatValue,
|
|
10162
10167
|
Me as getConditionsByGroupNew,
|
|
10163
10168
|
Dd as groupsRecordToArrayNew,
|
|
10164
10169
|
Fc as mapByGroupNew,
|