@isettingkit/business-rules 3.2.12 → 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.js +4 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2507,7 +2507,9 @@ const Do = {
|
|
|
2507
2507
|
)
|
|
2508
2508
|
] });
|
|
2509
2509
|
}, kr = (e) => {
|
|
2510
|
-
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);
|
|
2511
2513
|
return `${s} ${c.toLowerCase()} ${l}`;
|
|
2512
2514
|
}, _o = /^(el|la|los|las)\s/i;
|
|
2513
2515
|
function Mo(e) {
|
|
@@ -2576,7 +2578,7 @@ const tt = (e) => {
|
|
|
2576
2578
|
}, Ho = /^(?:y\s+)?que\s+/i, In = (e, t, n) => {
|
|
2577
2579
|
if (n !== "condition")
|
|
2578
2580
|
return e;
|
|
2579
|
-
const r = e.trim();
|
|
2581
|
+
const r = e == null ? void 0 : e.trim();
|
|
2580
2582
|
return !r || Ho.test(r) ? r : kr({
|
|
2581
2583
|
label: r,
|
|
2582
2584
|
howToSet: tt(t),
|