@socotra/ec-react-utils 2.16.0-next.0 → 2.16.0-next.2
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.d.ts +23 -16
- package/dist/index.es.js +310 -292
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as
|
|
1
|
+
import { z as X } from "zod";
|
|
2
2
|
function Ba(r, t) {
|
|
3
3
|
return r - t * Math.floor(r / t);
|
|
4
4
|
}
|
|
@@ -414,18 +414,18 @@ const Jc = /^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/, eu = /^([+-]\d{6}|\d{4})-(\d{2
|
|
|
414
414
|
function Ja(r) {
|
|
415
415
|
let t = r.match(Jc);
|
|
416
416
|
if (!t) throw new Error("Invalid ISO 8601 date string: " + r);
|
|
417
|
-
let a = new bt(
|
|
418
|
-
return a.day =
|
|
417
|
+
let a = new bt(te(t[1], 0, 9999), te(t[2], 1, 12), 1);
|
|
418
|
+
return a.day = te(t[3], 0, a.calendar.getDaysInMonth(a)), a;
|
|
419
419
|
}
|
|
420
420
|
function gt(r, t) {
|
|
421
421
|
let a = r.match(eu);
|
|
422
422
|
if (!a) throw new Error("Invalid ISO 8601 date time string: " + r);
|
|
423
|
-
let n =
|
|
424
|
-
o.day =
|
|
423
|
+
let n = te(a[1], -9999, 9999), i = n < 1 ? "BC" : "AD", o = new vt(i, n < 1 ? -n + 1 : n, te(a[2], 1, 12), 1, t, 0, a[4] ? te(a[4], 0, 23) : 0, a[5] ? te(a[5], 0, 59) : 0, a[6] ? te(a[6], 0, 59) : 0, a[7] ? te(a[7], 0, 1 / 0) * 1e3 : 0);
|
|
424
|
+
o.day = te(a[3], 0, o.calendar.getDaysInMonth(o));
|
|
425
425
|
var l;
|
|
426
|
-
return a[8] && (o.offset =
|
|
426
|
+
return a[8] && (o.offset = te(a[8], -23, 23) * 36e5 + te((l = a[9]) !== null && l !== void 0 ? l : "0", 0, 59) * 6e4), Ho(o, t);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function te(r, t, a) {
|
|
429
429
|
let n = Number(r);
|
|
430
430
|
if (n < t || n > a) throw new RangeError(`Value out of range: ${t} <= ${n} <= ${a}`);
|
|
431
431
|
return n;
|
|
@@ -624,11 +624,11 @@ class vt {
|
|
|
624
624
|
}
|
|
625
625
|
}
|
|
626
626
|
var Dr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
627
|
-
function
|
|
627
|
+
function ie(r) {
|
|
628
628
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
629
629
|
}
|
|
630
630
|
var su = Array.isArray, Y = su;
|
|
631
|
-
const Ra = /* @__PURE__ */
|
|
631
|
+
const Ra = /* @__PURE__ */ ie(Y);
|
|
632
632
|
var cu = typeof Dr == "object" && Dr && Dr.Object === Object && Dr, rl = cu, uu = rl, du = typeof self == "object" && self && self.Object === Object && self, pu = uu || du || Function("return this")(), ve = pu, gu = ve, mu = gu.Symbol, $t = mu, Ni = $t, al = Object.prototype, fu = al.hasOwnProperty, yu = al.toString, zt = Ni ? Ni.toStringTag : void 0;
|
|
633
633
|
function hu(r) {
|
|
634
634
|
var t = fu.call(r, zt), a = r[zt];
|
|
@@ -668,9 +668,9 @@ function Mu(r) {
|
|
|
668
668
|
var t = typeof r;
|
|
669
669
|
return r != null && (t == "object" || t == "function");
|
|
670
670
|
}
|
|
671
|
-
var
|
|
672
|
-
const en = /* @__PURE__ */
|
|
673
|
-
var Ru = Lt, qu =
|
|
671
|
+
var oe = Mu;
|
|
672
|
+
const en = /* @__PURE__ */ ie(oe);
|
|
673
|
+
var Ru = Lt, qu = oe, Fu = "[object AsyncFunction]", Zu = "[object Function]", Uu = "[object GeneratorFunction]", Gu = "[object Proxy]";
|
|
674
674
|
function Ku(r) {
|
|
675
675
|
if (!qu(r))
|
|
676
676
|
return !1;
|
|
@@ -698,7 +698,7 @@ function Ju(r) {
|
|
|
698
698
|
}
|
|
699
699
|
return "";
|
|
700
700
|
}
|
|
701
|
-
var nl = Ju, ed = oa, td = Yu, rd =
|
|
701
|
+
var nl = Ju, ed = oa, td = Yu, rd = oe, ad = nl, nd = /[\\^$.*+?()[\]{}|]/g, id = /^\[object .+?Constructor\]$/, od = Function.prototype, ld = Object.prototype, sd = od.toString, cd = ld.hasOwnProperty, ud = RegExp(
|
|
702
702
|
"^" + sd.call(cd).replace(nd, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
703
703
|
);
|
|
704
704
|
function dd(r) {
|
|
@@ -927,7 +927,7 @@ function vg(r, t, a) {
|
|
|
927
927
|
return n === void 0 ? a : n;
|
|
928
928
|
}
|
|
929
929
|
var sl = vg;
|
|
930
|
-
const K = /* @__PURE__ */
|
|
930
|
+
const K = /* @__PURE__ */ ie(sl);
|
|
931
931
|
var Tg = /* @__PURE__ */ ((r) => (r.MultiSelect = "multiselect", r))(Tg || {});
|
|
932
932
|
const jg = (r) => {
|
|
933
933
|
const {
|
|
@@ -957,19 +957,19 @@ const jg = (r) => {
|
|
|
957
957
|
}, ot = Object.fromEntries(
|
|
958
958
|
Object.entries(t ?? {}).filter(([I, D]) => {
|
|
959
959
|
var Ce, Ve;
|
|
960
|
-
const
|
|
961
|
-
return (Ve = D.tag) != null && Ve.includes("hidden") ? b.length > 0 ? b.includes(I) : !1 : !!(!
|
|
960
|
+
const pe = (Ce = D.scope) == null ? void 0 : Ce.split(",").map((ke) => ke.trim());
|
|
961
|
+
return (Ve = D.tag) != null && Ve.includes("hidden") ? b.length > 0 ? b.includes(I) : !1 : !!(!pe || a.some((ke) => pe.includes(ke)));
|
|
962
962
|
}).map(([I, D]) => {
|
|
963
963
|
var pi, gi, mi, fi, yi, hi, bi, vi, Ti, ji, Ai, _i, wi, xi, Ei, $i, Li, Si, Ci;
|
|
964
|
-
let
|
|
964
|
+
let pe = !1, Ce = !1, Ve = !1, ke = !1;
|
|
965
965
|
const ci = D.displayName ?? I, Ic = (pi = D.type) == null ? void 0 : pi.slice(-1), $r = D.maxLength, Lr = D.minLength, Sr = D.max, Cr = D.min, Na = D.constraint, ui = D.regex, di = D.precision, Pe = D.tag ?? [];
|
|
966
966
|
let O = D.type ?? "", lt, st = !1;
|
|
967
967
|
switch (Ic) {
|
|
968
968
|
case "*":
|
|
969
|
-
Ce = !0,
|
|
969
|
+
Ce = !0, pe = !0, O = O == null ? void 0 : O.split("*")[0];
|
|
970
970
|
break;
|
|
971
971
|
case "?":
|
|
972
|
-
O = O == null ? void 0 : O.split("?")[0],
|
|
972
|
+
O = O == null ? void 0 : O.split("?")[0], pe = !0;
|
|
973
973
|
break;
|
|
974
974
|
case "+":
|
|
975
975
|
Ce = !0, O = O == null ? void 0 : O.split("+")[0];
|
|
@@ -990,10 +990,10 @@ const jg = (r) => {
|
|
|
990
990
|
O = "number";
|
|
991
991
|
break;
|
|
992
992
|
case "datetime":
|
|
993
|
-
O = "string", lt = "date-time", ke = !0,
|
|
993
|
+
O = "string", lt = "date-time", ke = !0, pe && (st = !0);
|
|
994
994
|
break;
|
|
995
995
|
case "date":
|
|
996
|
-
O = "string", lt = "date", ke = !0,
|
|
996
|
+
O = "string", lt = "date", ke = !0, pe && (st = !0);
|
|
997
997
|
break;
|
|
998
998
|
case "boolean":
|
|
999
999
|
case "bool":
|
|
@@ -1007,7 +1007,7 @@ const jg = (r) => {
|
|
|
1007
1007
|
const z = f ? K(c, [
|
|
1008
1008
|
(g == null ? void 0 : g.locator) ?? "",
|
|
1009
1009
|
`${f}.${I}`
|
|
1010
|
-
]) : K(c, `${g == null ? void 0 : g.locator}.${I}`),
|
|
1010
|
+
]) : K(c, `${g == null ? void 0 : g.locator}.${I}`), ge = f ? K(c, [
|
|
1011
1011
|
(u == null ? void 0 : u.locator) ?? "",
|
|
1012
1012
|
`${f}.${I}`
|
|
1013
1013
|
]) : K(c, `${u == null ? void 0 : u.locator}.${I}`), ut = f ? K(c, [
|
|
@@ -1017,12 +1017,12 @@ const jg = (r) => {
|
|
|
1017
1017
|
c,
|
|
1018
1018
|
`${d == null ? void 0 : d.staticLocator}.${I}`
|
|
1019
1019
|
);
|
|
1020
|
-
g && z && (D.options = z), u &&
|
|
1020
|
+
g && z && (D.options = z), u && ge && (D.options = ge), d && ut && (D.options = ut);
|
|
1021
1021
|
}
|
|
1022
|
-
if (!
|
|
1022
|
+
if (!pe && !Ve && C.push(I), Ve) {
|
|
1023
1023
|
const z = i == null ? void 0 : i[O];
|
|
1024
1024
|
if (z) {
|
|
1025
|
-
let
|
|
1025
|
+
let ge = Ce ? [] : {};
|
|
1026
1026
|
const ut = jg({
|
|
1027
1027
|
data: z.data ?? {},
|
|
1028
1028
|
scope: a,
|
|
@@ -1038,7 +1038,7 @@ const jg = (r) => {
|
|
|
1038
1038
|
truthyLabel: h,
|
|
1039
1039
|
falsyLabel: y
|
|
1040
1040
|
});
|
|
1041
|
-
return u && (mi = (gi = u.element) == null ? void 0 : gi.data) != null && mi[I] && (
|
|
1041
|
+
return u && (mi = (gi = u.element) == null ? void 0 : gi.data) != null && mi[I] && (ge = (yi = (fi = u.element) == null ? void 0 : fi.data) == null ? void 0 : yi[I]), g && (hi = g == null ? void 0 : g.data) != null && hi[I] && (ge = (bi = g == null ? void 0 : g.data) == null ? void 0 : bi[I]), s && (vi = s == null ? void 0 : s.data) != null && vi[I] && (ge = (Ti = s == null ? void 0 : s.data) == null ? void 0 : Ti[I]), Object.entries(ut.definitions ?? {}).forEach(
|
|
1042
1042
|
([Bc, Mc]) => {
|
|
1043
1043
|
_ = {
|
|
1044
1044
|
..._,
|
|
@@ -1053,18 +1053,18 @@ const jg = (r) => {
|
|
|
1053
1053
|
{
|
|
1054
1054
|
title: D.displayName ?? z.displayName ?? I,
|
|
1055
1055
|
type: "array",
|
|
1056
|
-
default:
|
|
1056
|
+
default: ge,
|
|
1057
1057
|
items: {
|
|
1058
1058
|
$ref: `#/definitions/${O}`
|
|
1059
1059
|
},
|
|
1060
1060
|
...Pe && { tag: Pe },
|
|
1061
|
-
...!
|
|
1061
|
+
...!pe && { minItems: 1 }
|
|
1062
1062
|
}
|
|
1063
1063
|
] : [
|
|
1064
1064
|
I,
|
|
1065
1065
|
{
|
|
1066
1066
|
title: z.displayName ?? I,
|
|
1067
|
-
default:
|
|
1067
|
+
default: ge,
|
|
1068
1068
|
$ref: `#/definitions/${O}`,
|
|
1069
1069
|
...Pe && { tag: Pe }
|
|
1070
1070
|
}
|
|
@@ -1101,12 +1101,12 @@ const jg = (r) => {
|
|
|
1101
1101
|
...ke && { timezone: n },
|
|
1102
1102
|
...st && { nullable: st }
|
|
1103
1103
|
},
|
|
1104
|
-
...!
|
|
1104
|
+
...!pe && { minItems: 1 }
|
|
1105
1105
|
}
|
|
1106
1106
|
];
|
|
1107
1107
|
let Ia = null;
|
|
1108
1108
|
if (Pe.some((z) => z.split(".").includes("currency"))) {
|
|
1109
|
-
const z = (Ci = (Si = Pe.find((
|
|
1109
|
+
const z = (Ci = (Si = Pe.find((ge) => ge.split(".").includes("currency"))) == null ? void 0 : Si.split(".")) == null ? void 0 : Ci[1];
|
|
1110
1110
|
z && (Ia = z);
|
|
1111
1111
|
}
|
|
1112
1112
|
return [
|
|
@@ -2477,7 +2477,7 @@ const cl = (r, t) => {
|
|
|
2477
2477
|
resultType: a
|
|
2478
2478
|
});
|
|
2479
2479
|
return i.length ? i[0] : null;
|
|
2480
|
-
},
|
|
2480
|
+
}, nC = ({
|
|
2481
2481
|
dataModel: r,
|
|
2482
2482
|
quote: t,
|
|
2483
2483
|
elementLocator: a
|
|
@@ -2487,7 +2487,7 @@ const cl = (r, t) => {
|
|
|
2487
2487
|
dataModel: r,
|
|
2488
2488
|
elementType: n.type
|
|
2489
2489
|
}) : {};
|
|
2490
|
-
},
|
|
2490
|
+
}, iC = ({
|
|
2491
2491
|
dataModel: r,
|
|
2492
2492
|
segment: t,
|
|
2493
2493
|
elementLocator: a
|
|
@@ -2497,13 +2497,13 @@ const cl = (r, t) => {
|
|
|
2497
2497
|
dataModel: r,
|
|
2498
2498
|
elementType: n.type
|
|
2499
2499
|
}) : {};
|
|
2500
|
-
},
|
|
2500
|
+
}, oC = (r, t) => {
|
|
2501
2501
|
const a = t.endsWith("Quote") ? t : `${t}Quote`;
|
|
2502
2502
|
return r.filter((i) => i.type === a);
|
|
2503
|
-
},
|
|
2503
|
+
}, lC = (r, t) => {
|
|
2504
2504
|
const a = t.endsWith("Policy") ? t : `${t}Policy`;
|
|
2505
2505
|
return r.filter((i) => i.type === a);
|
|
2506
|
-
},
|
|
2506
|
+
}, sC = ({
|
|
2507
2507
|
dataModel: r,
|
|
2508
2508
|
element: { productName: t }
|
|
2509
2509
|
}) => r.products[t] ?? {}, Bg = (r) => {
|
|
@@ -2514,7 +2514,7 @@ const cl = (r, t) => {
|
|
|
2514
2514
|
name: t,
|
|
2515
2515
|
quantifier: a ?? ""
|
|
2516
2516
|
};
|
|
2517
|
-
},
|
|
2517
|
+
}, cC = ({
|
|
2518
2518
|
dataModel: r,
|
|
2519
2519
|
contents: t
|
|
2520
2520
|
}) => {
|
|
@@ -2600,7 +2600,7 @@ const cl = (r, t) => {
|
|
|
2600
2600
|
}
|
|
2601
2601
|
});
|
|
2602
2602
|
}), n;
|
|
2603
|
-
},
|
|
2603
|
+
}, uC = ({
|
|
2604
2604
|
transactionSnapshot: r,
|
|
2605
2605
|
paramsChangeInstruction: t,
|
|
2606
2606
|
modifyChangeInstruction: a,
|
|
@@ -2631,7 +2631,7 @@ const cl = (r, t) => {
|
|
|
2631
2631
|
coverageTerms: n
|
|
2632
2632
|
})
|
|
2633
2633
|
};
|
|
2634
|
-
},
|
|
2634
|
+
}, dC = (r, t, a) => {
|
|
2635
2635
|
const n = Tt({
|
|
2636
2636
|
coverageTermOptions: r.coverageTerms ?? {},
|
|
2637
2637
|
coverageTermDataModel: a,
|
|
@@ -2649,7 +2649,7 @@ const cl = (r, t) => {
|
|
|
2649
2649
|
})
|
|
2650
2650
|
}
|
|
2651
2651
|
};
|
|
2652
|
-
},
|
|
2652
|
+
}, pC = ({
|
|
2653
2653
|
elementResponse: r,
|
|
2654
2654
|
coverageTerms: t,
|
|
2655
2655
|
coverageTermsDataModel: a
|
|
@@ -2776,7 +2776,7 @@ const T = P.arrayToEnum([
|
|
|
2776
2776
|
"not_multiple_of",
|
|
2777
2777
|
"not_finite"
|
|
2778
2778
|
]), Mg = (r) => JSON.stringify(r, null, 2).replace(/"([^"]+)":/g, "$1:");
|
|
2779
|
-
class
|
|
2779
|
+
class J extends Error {
|
|
2780
2780
|
get errors() {
|
|
2781
2781
|
return this.issues;
|
|
2782
2782
|
}
|
|
@@ -2813,7 +2813,7 @@ class X extends Error {
|
|
|
2813
2813
|
return i(this), n;
|
|
2814
2814
|
}
|
|
2815
2815
|
static assert(t) {
|
|
2816
|
-
if (!(t instanceof
|
|
2816
|
+
if (!(t instanceof J))
|
|
2817
2817
|
throw new Error(`Not a ZodError: ${t}`);
|
|
2818
2818
|
}
|
|
2819
2819
|
toString() {
|
|
@@ -2835,7 +2835,7 @@ class X extends Error {
|
|
|
2835
2835
|
return this.flatten();
|
|
2836
2836
|
}
|
|
2837
2837
|
}
|
|
2838
|
-
|
|
2838
|
+
J.create = (r) => new J(r);
|
|
2839
2839
|
const jt = (r, t) => {
|
|
2840
2840
|
let a;
|
|
2841
2841
|
switch (r.code) {
|
|
@@ -3013,7 +3013,7 @@ const Ki = (r, t) => {
|
|
|
3013
3013
|
get error() {
|
|
3014
3014
|
if (this._error)
|
|
3015
3015
|
return this._error;
|
|
3016
|
-
const a = new
|
|
3016
|
+
const a = new J(r.common.issues);
|
|
3017
3017
|
return this._error = a, this._error;
|
|
3018
3018
|
}
|
|
3019
3019
|
};
|
|
@@ -3160,7 +3160,7 @@ class S {
|
|
|
3160
3160
|
return this._refinement((n, i) => t(n) ? !0 : (i.addIssue(typeof a == "function" ? a(n, i) : a), !1));
|
|
3161
3161
|
}
|
|
3162
3162
|
_refinement(t) {
|
|
3163
|
-
return new
|
|
3163
|
+
return new ce({
|
|
3164
3164
|
schema: this,
|
|
3165
3165
|
typeName: w.ZodEffects,
|
|
3166
3166
|
effect: { type: "refinement", refinement: t }
|
|
@@ -3186,7 +3186,7 @@ class S {
|
|
|
3186
3186
|
return this.nullable().optional();
|
|
3187
3187
|
}
|
|
3188
3188
|
array() {
|
|
3189
|
-
return
|
|
3189
|
+
return se.create(this);
|
|
3190
3190
|
}
|
|
3191
3191
|
promise() {
|
|
3192
3192
|
return _t.create(this, this._def);
|
|
@@ -3198,7 +3198,7 @@ class S {
|
|
|
3198
3198
|
return or.create(this, t, this._def);
|
|
3199
3199
|
}
|
|
3200
3200
|
transform(t) {
|
|
3201
|
-
return new
|
|
3201
|
+
return new ce({
|
|
3202
3202
|
...L(this._def),
|
|
3203
3203
|
schema: this,
|
|
3204
3204
|
typeName: w.ZodEffects,
|
|
@@ -3281,7 +3281,7 @@ function im(r, t) {
|
|
|
3281
3281
|
function om(r, t) {
|
|
3282
3282
|
return !!((t === "v4" || !t) && Qg.test(r) || (t === "v6" || !t) && Jg.test(r));
|
|
3283
3283
|
}
|
|
3284
|
-
class
|
|
3284
|
+
class le extends S {
|
|
3285
3285
|
_parse(t) {
|
|
3286
3286
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== T.string) {
|
|
3287
3287
|
const i = this._getOrReturnCtx(t);
|
|
@@ -3444,7 +3444,7 @@ class oe extends S {
|
|
|
3444
3444
|
});
|
|
3445
3445
|
}
|
|
3446
3446
|
_addCheck(t) {
|
|
3447
|
-
return new
|
|
3447
|
+
return new le({
|
|
3448
3448
|
...this._def,
|
|
3449
3449
|
checks: [...this._def.checks, t]
|
|
3450
3450
|
});
|
|
@@ -3581,19 +3581,19 @@ class oe extends S {
|
|
|
3581
3581
|
return this.min(1, A.errToObj(t));
|
|
3582
3582
|
}
|
|
3583
3583
|
trim() {
|
|
3584
|
-
return new
|
|
3584
|
+
return new le({
|
|
3585
3585
|
...this._def,
|
|
3586
3586
|
checks: [...this._def.checks, { kind: "trim" }]
|
|
3587
3587
|
});
|
|
3588
3588
|
}
|
|
3589
3589
|
toLowerCase() {
|
|
3590
|
-
return new
|
|
3590
|
+
return new le({
|
|
3591
3591
|
...this._def,
|
|
3592
3592
|
checks: [...this._def.checks, { kind: "toLowerCase" }]
|
|
3593
3593
|
});
|
|
3594
3594
|
}
|
|
3595
3595
|
toUpperCase() {
|
|
3596
|
-
return new
|
|
3596
|
+
return new le({
|
|
3597
3597
|
...this._def,
|
|
3598
3598
|
checks: [...this._def.checks, { kind: "toUpperCase" }]
|
|
3599
3599
|
});
|
|
@@ -3659,9 +3659,9 @@ class oe extends S {
|
|
|
3659
3659
|
return t;
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
|
-
|
|
3662
|
+
le.create = (r) => {
|
|
3663
3663
|
var t;
|
|
3664
|
-
return new
|
|
3664
|
+
return new le({
|
|
3665
3665
|
checks: [],
|
|
3666
3666
|
typeName: w.ZodString,
|
|
3667
3667
|
coerce: (t = r == null ? void 0 : r.coerce) !== null && t !== void 0 ? t : !1,
|
|
@@ -4182,7 +4182,7 @@ Hr.create = (r) => new Hr({
|
|
|
4182
4182
|
typeName: w.ZodVoid,
|
|
4183
4183
|
...L(r)
|
|
4184
4184
|
});
|
|
4185
|
-
class
|
|
4185
|
+
class se extends S {
|
|
4186
4186
|
_parse(t) {
|
|
4187
4187
|
const { ctx: a, status: n } = this._processInputParams(t), i = this._def;
|
|
4188
4188
|
if (a.parsedType !== T.array)
|
|
@@ -4226,19 +4226,19 @@ class le extends S {
|
|
|
4226
4226
|
return this._def.type;
|
|
4227
4227
|
}
|
|
4228
4228
|
min(t, a) {
|
|
4229
|
-
return new
|
|
4229
|
+
return new se({
|
|
4230
4230
|
...this._def,
|
|
4231
4231
|
minLength: { value: t, message: A.toString(a) }
|
|
4232
4232
|
});
|
|
4233
4233
|
}
|
|
4234
4234
|
max(t, a) {
|
|
4235
|
-
return new
|
|
4235
|
+
return new se({
|
|
4236
4236
|
...this._def,
|
|
4237
4237
|
maxLength: { value: t, message: A.toString(a) }
|
|
4238
4238
|
});
|
|
4239
4239
|
}
|
|
4240
4240
|
length(t, a) {
|
|
4241
|
-
return new
|
|
4241
|
+
return new se({
|
|
4242
4242
|
...this._def,
|
|
4243
4243
|
exactLength: { value: t, message: A.toString(a) }
|
|
4244
4244
|
});
|
|
@@ -4247,7 +4247,7 @@ class le extends S {
|
|
|
4247
4247
|
return this.min(1, t);
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
|
|
4250
|
+
se.create = (r, t) => new se({
|
|
4251
4251
|
type: r,
|
|
4252
4252
|
minLength: null,
|
|
4253
4253
|
maxLength: null,
|
|
@@ -4266,7 +4266,7 @@ function pt(r) {
|
|
|
4266
4266
|
...r._def,
|
|
4267
4267
|
shape: () => t
|
|
4268
4268
|
});
|
|
4269
|
-
} else return r instanceof
|
|
4269
|
+
} else return r instanceof se ? new se({
|
|
4270
4270
|
...r._def,
|
|
4271
4271
|
type: pt(r.element)
|
|
4272
4272
|
}) : r instanceof fe ? fe.create(pt(r.unwrap())) : r instanceof Re ? Re.create(pt(r.unwrap())) : r instanceof he ? he.create(r.items.map((t) => pt(t))) : r;
|
|
@@ -4568,7 +4568,7 @@ class ir extends S {
|
|
|
4568
4568
|
for (const s of o)
|
|
4569
4569
|
if (s.result.status === "dirty")
|
|
4570
4570
|
return a.common.issues.push(...s.ctx.common.issues), s.result;
|
|
4571
|
-
const l = o.map((s) => new
|
|
4571
|
+
const l = o.map((s) => new J(s.ctx.common.issues));
|
|
4572
4572
|
return v(a, {
|
|
4573
4573
|
code: m.invalid_union,
|
|
4574
4574
|
unionErrors: l
|
|
@@ -4615,7 +4615,7 @@ class ir extends S {
|
|
|
4615
4615
|
}
|
|
4616
4616
|
if (o)
|
|
4617
4617
|
return a.common.issues.push(...o.ctx.common.issues), o.result;
|
|
4618
|
-
const s = l.map((c) => new
|
|
4618
|
+
const s = l.map((c) => new J(c));
|
|
4619
4619
|
return v(a, {
|
|
4620
4620
|
code: m.invalid_union,
|
|
4621
4621
|
unionErrors: s
|
|
@@ -4631,7 +4631,7 @@ ir.create = (r, t) => new ir({
|
|
|
4631
4631
|
typeName: w.ZodUnion,
|
|
4632
4632
|
...L(t)
|
|
4633
4633
|
});
|
|
4634
|
-
const Oe = (r) => r instanceof sr ? Oe(r.schema) : r instanceof
|
|
4634
|
+
const Oe = (r) => r instanceof sr ? Oe(r.schema) : r instanceof ce ? Oe(r.innerType()) : r instanceof cr ? [r.value] : r instanceof Me ? r.options : r instanceof ur ? P.objectValues(r.enum) : r instanceof dr ? Oe(r._def.innerType) : r instanceof ar ? [void 0] : r instanceof nr ? [null] : r instanceof fe ? [void 0, ...Oe(r.unwrap())] : r instanceof Re ? [null, ...Oe(r.unwrap())] : r instanceof _n || r instanceof gr ? Oe(r.unwrap()) : r instanceof pr ? Oe(r._def.innerType) : [];
|
|
4635
4635
|
class pa extends S {
|
|
4636
4636
|
_parse(t) {
|
|
4637
4637
|
const { ctx: a } = this._processInputParams(t);
|
|
@@ -4842,7 +4842,7 @@ class lr extends S {
|
|
|
4842
4842
|
typeName: w.ZodRecord,
|
|
4843
4843
|
...L(n)
|
|
4844
4844
|
}) : new lr({
|
|
4845
|
-
keyType:
|
|
4845
|
+
keyType: le.create(),
|
|
4846
4846
|
valueType: t,
|
|
4847
4847
|
typeName: w.ZodRecord,
|
|
4848
4848
|
...L(a)
|
|
@@ -5009,7 +5009,7 @@ class mt extends S {
|
|
|
5009
5009
|
if (this._def.returns instanceof _t) {
|
|
5010
5010
|
const s = this;
|
|
5011
5011
|
return H(async function(...c) {
|
|
5012
|
-
const u = new
|
|
5012
|
+
const u = new J([]), d = await s._def.args.parseAsync(c, o).catch((f) => {
|
|
5013
5013
|
throw u.addIssue(n(c, f)), u;
|
|
5014
5014
|
}), g = await Reflect.apply(l, this, d);
|
|
5015
5015
|
return await s._def.returns._def.type.parseAsync(g, o).catch((f) => {
|
|
@@ -5021,10 +5021,10 @@ class mt extends S {
|
|
|
5021
5021
|
return H(function(...c) {
|
|
5022
5022
|
const u = s._def.args.safeParse(c, o);
|
|
5023
5023
|
if (!u.success)
|
|
5024
|
-
throw new
|
|
5024
|
+
throw new J([n(c, u.error)]);
|
|
5025
5025
|
const d = Reflect.apply(l, this, u.data), g = s._def.returns.safeParse(d, o);
|
|
5026
5026
|
if (!g.success)
|
|
5027
|
-
throw new
|
|
5027
|
+
throw new J([i(d, g.error)]);
|
|
5028
5028
|
return g.data;
|
|
5029
5029
|
});
|
|
5030
5030
|
}
|
|
@@ -5221,7 +5221,7 @@ _t.create = (r, t) => new _t({
|
|
|
5221
5221
|
typeName: w.ZodPromise,
|
|
5222
5222
|
...L(t)
|
|
5223
5223
|
});
|
|
5224
|
-
class
|
|
5224
|
+
class ce extends S {
|
|
5225
5225
|
innerType() {
|
|
5226
5226
|
return this._def.schema;
|
|
5227
5227
|
}
|
|
@@ -5298,13 +5298,13 @@ class se extends S {
|
|
|
5298
5298
|
P.assertNever(i);
|
|
5299
5299
|
}
|
|
5300
5300
|
}
|
|
5301
|
-
|
|
5301
|
+
ce.create = (r, t, a) => new ce({
|
|
5302
5302
|
schema: r,
|
|
5303
5303
|
typeName: w.ZodEffects,
|
|
5304
5304
|
effect: t,
|
|
5305
5305
|
...L(a)
|
|
5306
5306
|
});
|
|
5307
|
-
|
|
5307
|
+
ce.createWithPreprocess = (r, t, a) => new ce({
|
|
5308
5308
|
schema: t,
|
|
5309
5309
|
effect: { type: "preprocess", transform: r },
|
|
5310
5310
|
typeName: w.ZodEffects,
|
|
@@ -5375,7 +5375,7 @@ class pr extends S {
|
|
|
5375
5375
|
status: "valid",
|
|
5376
5376
|
value: o.status === "valid" ? o.value : this._def.catchValue({
|
|
5377
5377
|
get error() {
|
|
5378
|
-
return new
|
|
5378
|
+
return new J(n.common.issues);
|
|
5379
5379
|
},
|
|
5380
5380
|
input: n.data
|
|
5381
5381
|
})
|
|
@@ -5383,7 +5383,7 @@ class pr extends S {
|
|
|
5383
5383
|
status: "valid",
|
|
5384
5384
|
value: i.status === "valid" ? i.value : this._def.catchValue({
|
|
5385
5385
|
get error() {
|
|
5386
|
-
return new
|
|
5386
|
+
return new J(n.common.issues);
|
|
5387
5387
|
},
|
|
5388
5388
|
input: n.data
|
|
5389
5389
|
})
|
|
@@ -5515,8 +5515,8 @@ var w;
|
|
|
5515
5515
|
})(w || (w = {}));
|
|
5516
5516
|
const um = (r, t = {
|
|
5517
5517
|
message: `Input not instance of ${r.name}`
|
|
5518
|
-
}) => hl((a) => a instanceof r, t), bl =
|
|
5519
|
-
string: (r) =>
|
|
5518
|
+
}) => hl((a) => a instanceof r, t), bl = le.create, vl = Ie.create, dm = Yr.create, pm = Be.create, Tl = rr.create, gm = Xe.create, mm = Vr.create, fm = ar.create, ym = nr.create, hm = At.create, bm = We.create, vm = $e.create, Tm = Hr.create, jm = se.create, Am = U.create, _m = U.strictCreate, wm = ir.create, xm = pa.create, Em = or.create, $m = he.create, Lm = lr.create, Sm = Wr.create, Cm = Je.create, km = mt.create, Pm = sr.create, Dm = cr.create, Om = Me.create, Nm = ur.create, Im = _t.create, Vi = ce.create, Bm = fe.create, Mm = Re.create, Rm = ce.createWithPreprocess, qm = hr.create, Fm = () => bl().optional(), Zm = () => vl().optional(), Um = () => Tl().optional(), Gm = {
|
|
5519
|
+
string: (r) => le.create({ ...r, coerce: !0 }),
|
|
5520
5520
|
number: (r) => Ie.create({ ...r, coerce: !0 }),
|
|
5521
5521
|
boolean: (r) => rr.create({
|
|
5522
5522
|
...r,
|
|
@@ -5551,7 +5551,7 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
5551
5551
|
getParsedType: Ae,
|
|
5552
5552
|
ZodType: S,
|
|
5553
5553
|
datetimeRegex: fl,
|
|
5554
|
-
ZodString:
|
|
5554
|
+
ZodString: le,
|
|
5555
5555
|
ZodNumber: Ie,
|
|
5556
5556
|
ZodBigInt: Be,
|
|
5557
5557
|
ZodBoolean: rr,
|
|
@@ -5563,7 +5563,7 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
5563
5563
|
ZodUnknown: We,
|
|
5564
5564
|
ZodNever: $e,
|
|
5565
5565
|
ZodVoid: Hr,
|
|
5566
|
-
ZodArray:
|
|
5566
|
+
ZodArray: se,
|
|
5567
5567
|
ZodObject: U,
|
|
5568
5568
|
ZodUnion: ir,
|
|
5569
5569
|
ZodDiscriminatedUnion: pa,
|
|
@@ -5578,8 +5578,8 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
5578
5578
|
ZodEnum: Me,
|
|
5579
5579
|
ZodNativeEnum: ur,
|
|
5580
5580
|
ZodPromise: _t,
|
|
5581
|
-
ZodEffects:
|
|
5582
|
-
ZodTransformer:
|
|
5581
|
+
ZodEffects: ce,
|
|
5582
|
+
ZodTransformer: ce,
|
|
5583
5583
|
ZodOptional: fe,
|
|
5584
5584
|
ZodNullable: Re,
|
|
5585
5585
|
ZodDefault: dr,
|
|
@@ -5639,7 +5639,7 @@ var e = /* @__PURE__ */ Object.freeze({
|
|
|
5639
5639
|
NEVER: Km,
|
|
5640
5640
|
ZodIssueCode: m,
|
|
5641
5641
|
quotelessJson: Mg,
|
|
5642
|
-
ZodError:
|
|
5642
|
+
ZodError: J
|
|
5643
5643
|
});
|
|
5644
5644
|
const er = e.string(), zm = e.object({
|
|
5645
5645
|
elementType: e.string().optional(),
|
|
@@ -7119,7 +7119,7 @@ const Nf = e.object({
|
|
|
7119
7119
|
e.literal("level2")
|
|
7120
7120
|
]),
|
|
7121
7121
|
value: Pf
|
|
7122
|
-
}),
|
|
7122
|
+
}), ue = e.object({
|
|
7123
7123
|
displayName: e.string(),
|
|
7124
7124
|
type: e.string(),
|
|
7125
7125
|
scope: e.string(),
|
|
@@ -7148,14 +7148,14 @@ const Nf = e.object({
|
|
|
7148
7148
|
}), Mf = e.object({
|
|
7149
7149
|
displayName: e.string(),
|
|
7150
7150
|
extend: e.string(),
|
|
7151
|
-
data: e.record(
|
|
7151
|
+
data: e.record(ue),
|
|
7152
7152
|
defaultSearchable: e.boolean(),
|
|
7153
7153
|
abstract: e.boolean()
|
|
7154
7154
|
}), Rf = e.object({
|
|
7155
7155
|
displayName: e.string(),
|
|
7156
7156
|
extend: e.string(),
|
|
7157
7157
|
defaultSearchable: e.boolean(),
|
|
7158
|
-
data: e.record(
|
|
7158
|
+
data: e.record(ue),
|
|
7159
7159
|
defaultInvoiceDocument: e.string(),
|
|
7160
7160
|
numberingPlan: e.string(),
|
|
7161
7161
|
invoiceNumberingPlan: e.string(),
|
|
@@ -7169,7 +7169,7 @@ const Nf = e.object({
|
|
|
7169
7169
|
contents: e.array(e.string()),
|
|
7170
7170
|
charges: e.array(e.string()),
|
|
7171
7171
|
defaultSearchable: e.boolean(),
|
|
7172
|
-
data: e.record(
|
|
7172
|
+
data: e.record(ue),
|
|
7173
7173
|
availability: fa.optional(),
|
|
7174
7174
|
abstract: e.boolean()
|
|
7175
7175
|
}), qf = e.object({
|
|
@@ -7195,8 +7195,8 @@ const Nf = e.object({
|
|
|
7195
7195
|
contents: e.array(e.string()),
|
|
7196
7196
|
documents: e.array(e.string()),
|
|
7197
7197
|
charges: e.array(e.string()),
|
|
7198
|
-
data: e.record(
|
|
7199
|
-
staticData: e.record(
|
|
7198
|
+
data: e.record(ue),
|
|
7199
|
+
staticData: e.record(ue),
|
|
7200
7200
|
defaultSearchable: e.boolean(),
|
|
7201
7201
|
pluralType: e.string(),
|
|
7202
7202
|
defaultBillingTrigger: e.union([e.literal("accept"), e.literal("issue")]),
|
|
@@ -7213,31 +7213,31 @@ const Nf = e.object({
|
|
|
7213
7213
|
]),
|
|
7214
7214
|
displayName: e.string(),
|
|
7215
7215
|
options: e.record(jf),
|
|
7216
|
-
value:
|
|
7216
|
+
value: ue,
|
|
7217
7217
|
availability: fa.optional()
|
|
7218
7218
|
}), Zf = e.object({
|
|
7219
7219
|
displayName: e.string(),
|
|
7220
7220
|
extend: e.string(),
|
|
7221
7221
|
defaultSearchable: e.boolean(),
|
|
7222
|
-
data: e.record(
|
|
7222
|
+
data: e.record(ue),
|
|
7223
7223
|
abstract: e.boolean()
|
|
7224
7224
|
}), kl = e.object({
|
|
7225
7225
|
displayName: e.string(),
|
|
7226
7226
|
extend: e.string(),
|
|
7227
|
-
data: e.record(
|
|
7227
|
+
data: e.record(ue),
|
|
7228
7228
|
numberingPlan: e.string(),
|
|
7229
7229
|
abstract: e.boolean()
|
|
7230
7230
|
}), Uf = e.object({
|
|
7231
7231
|
extend: e.string(),
|
|
7232
7232
|
lossTypes: e.array(e.string()),
|
|
7233
7233
|
defaultSearchable: e.boolean(),
|
|
7234
|
-
data: e.record(
|
|
7234
|
+
data: e.record(ue),
|
|
7235
7235
|
numberingPlan: e.string(),
|
|
7236
7236
|
contacts: e.record(e.array(e.string())),
|
|
7237
7237
|
abstract: e.boolean()
|
|
7238
7238
|
}), Gf = e.object({
|
|
7239
7239
|
extend: e.string(),
|
|
7240
|
-
data: e.record(
|
|
7240
|
+
data: e.record(ue),
|
|
7241
7241
|
category: e.string(),
|
|
7242
7242
|
coverageTypes: e.array(e.string()),
|
|
7243
7243
|
abstract: e.boolean()
|
|
@@ -7245,7 +7245,7 @@ const Nf = e.object({
|
|
|
7245
7245
|
displayName: e.string(),
|
|
7246
7246
|
extend: e.string(),
|
|
7247
7247
|
defaultSearchable: e.boolean(),
|
|
7248
|
-
data: e.record(
|
|
7248
|
+
data: e.record(ue),
|
|
7249
7249
|
abstract: e.boolean()
|
|
7250
7250
|
}), at = e.object({
|
|
7251
7251
|
defaultTimeZone: e.string(),
|
|
@@ -7382,12 +7382,12 @@ e.union([
|
|
|
7382
7382
|
]);
|
|
7383
7383
|
const br = e.object({
|
|
7384
7384
|
action: e.string()
|
|
7385
|
-
}),
|
|
7385
|
+
}), ne = e.lazy(
|
|
7386
7386
|
() => e.object({
|
|
7387
7387
|
type: e.string(),
|
|
7388
7388
|
locator: e.string(),
|
|
7389
7389
|
parentLocator: e.string(),
|
|
7390
|
-
elements: e.array(
|
|
7390
|
+
elements: e.array(ne),
|
|
7391
7391
|
coverageTerms: e.record(e.string()),
|
|
7392
7392
|
data: e.record(e.record(e.unknown())),
|
|
7393
7393
|
staticLocator: e.string(),
|
|
@@ -7735,7 +7735,7 @@ const Qf = e.object({
|
|
|
7735
7735
|
setCoverageTerms: e.record(e.string()),
|
|
7736
7736
|
removeCoverageTerms: e.record(e.record(e.unknown()))
|
|
7737
7737
|
})
|
|
7738
|
-
),
|
|
7738
|
+
), de = e.object({
|
|
7739
7739
|
installmentPreferences: Ol.optional(),
|
|
7740
7740
|
billingPreferences: Dl.optional()
|
|
7741
7741
|
}), Xf = e.object({
|
|
@@ -7772,7 +7772,7 @@ const Qf = e.object({
|
|
|
7772
7772
|
endTime: e.string(),
|
|
7773
7773
|
expirationTime: e.string(),
|
|
7774
7774
|
elements: e.array(ba),
|
|
7775
|
-
preferences:
|
|
7775
|
+
preferences: de,
|
|
7776
7776
|
billingTrigger: e.union([e.literal("accept"), e.literal("issue")]),
|
|
7777
7777
|
delinquencyPlanName: e.string(),
|
|
7778
7778
|
autoRenewalPlanName: e.string(),
|
|
@@ -7820,7 +7820,7 @@ const Bl = e.object({
|
|
|
7820
7820
|
timezone: e.string(),
|
|
7821
7821
|
coverageTerms: e.record(e.string()),
|
|
7822
7822
|
data: e.record(e.record(e.unknown())),
|
|
7823
|
-
elements: e.array(
|
|
7823
|
+
elements: e.array(ne),
|
|
7824
7824
|
durationBasis: e.union([
|
|
7825
7825
|
e.literal("none"),
|
|
7826
7826
|
e.literal("years"),
|
|
@@ -7895,7 +7895,7 @@ const va = e.object({
|
|
|
7895
7895
|
timezone: e.string(),
|
|
7896
7896
|
coverageTerms: e.record(e.string()),
|
|
7897
7897
|
data: e.record(e.record(e.unknown())),
|
|
7898
|
-
elements: e.array(
|
|
7898
|
+
elements: e.array(ne),
|
|
7899
7899
|
durationBasis: e.union([
|
|
7900
7900
|
e.literal("none"),
|
|
7901
7901
|
e.literal("years"),
|
|
@@ -7905,7 +7905,7 @@ const va = e.object({
|
|
|
7905
7905
|
e.literal("days"),
|
|
7906
7906
|
e.literal("hours")
|
|
7907
7907
|
]),
|
|
7908
|
-
preferences:
|
|
7908
|
+
preferences: de,
|
|
7909
7909
|
delinquencyPlanName: e.string(),
|
|
7910
7910
|
autoRenewalPlanName: e.string(),
|
|
7911
7911
|
billingTrigger: e.union([e.literal("accept"), e.literal("issue")]),
|
|
@@ -7916,7 +7916,7 @@ const va = e.object({
|
|
|
7916
7916
|
]),
|
|
7917
7917
|
region: e.string(),
|
|
7918
7918
|
static: e.record(e.record(e.unknown()))
|
|
7919
|
-
}),
|
|
7919
|
+
}), ee = e.object({
|
|
7920
7920
|
quoteLocator: e.string()
|
|
7921
7921
|
}), ey = e.object({
|
|
7922
7922
|
quoteLocator: e.string(),
|
|
@@ -8043,7 +8043,7 @@ const Nt = e.object({
|
|
|
8043
8043
|
segmentType: e.union([e.literal("coverage"), e.literal("gap")]),
|
|
8044
8044
|
startTime: e.string(),
|
|
8045
8045
|
endTime: e.string(),
|
|
8046
|
-
element:
|
|
8046
|
+
element: ne,
|
|
8047
8047
|
duration: e.number(),
|
|
8048
8048
|
basedOn: e.string().optional()
|
|
8049
8049
|
});
|
|
@@ -8191,7 +8191,7 @@ const E = e.object({
|
|
|
8191
8191
|
transactionType: e.string(),
|
|
8192
8192
|
effectiveTime: e.string(),
|
|
8193
8193
|
issuedTime: e.string(),
|
|
8194
|
-
preferences:
|
|
8194
|
+
preferences: de,
|
|
8195
8195
|
segment: Nt
|
|
8196
8196
|
}), ly = e.lazy(
|
|
8197
8197
|
() => e.object({
|
|
@@ -8289,7 +8289,7 @@ const kn = e.object({
|
|
|
8289
8289
|
});
|
|
8290
8290
|
e.object({
|
|
8291
8291
|
locator: e.string(),
|
|
8292
|
-
requestBody: e.array(
|
|
8292
|
+
requestBody: e.array(ne)
|
|
8293
8293
|
});
|
|
8294
8294
|
e.array(Nt);
|
|
8295
8295
|
e.object({
|
|
@@ -8311,7 +8311,7 @@ const Ke = br.and(
|
|
|
8311
8311
|
e.literal("add"),
|
|
8312
8312
|
e.literal("delete")
|
|
8313
8313
|
]).optional(),
|
|
8314
|
-
elements: e.array(
|
|
8314
|
+
elements: e.array(ne).optional()
|
|
8315
8315
|
})
|
|
8316
8316
|
).and(
|
|
8317
8317
|
e.object({
|
|
@@ -8322,7 +8322,7 @@ const Ke = br.and(
|
|
|
8322
8322
|
e.literal("add"),
|
|
8323
8323
|
e.literal("delete")
|
|
8324
8324
|
]),
|
|
8325
|
-
elements: e.array(
|
|
8325
|
+
elements: e.array(ne)
|
|
8326
8326
|
})
|
|
8327
8327
|
), Te = br.and(
|
|
8328
8328
|
e.object({
|
|
@@ -8335,7 +8335,7 @@ const Ke = br.and(
|
|
|
8335
8335
|
]).optional(),
|
|
8336
8336
|
effectiveTime: e.string().optional(),
|
|
8337
8337
|
newPolicyEndTime: e.string().optional(),
|
|
8338
|
-
preferences:
|
|
8338
|
+
preferences: de.optional(),
|
|
8339
8339
|
billingModeChange: e.boolean().optional(),
|
|
8340
8340
|
triggerBillingChange: e.boolean().optional(),
|
|
8341
8341
|
inheritSettings: e.boolean().optional()
|
|
@@ -8391,7 +8391,7 @@ const Ke = br.and(
|
|
|
8391
8391
|
effectiveTime: e.string(),
|
|
8392
8392
|
aggregatedTransactions: e.array(dy),
|
|
8393
8393
|
termLocator: e.string(),
|
|
8394
|
-
preferences:
|
|
8394
|
+
preferences: de.optional(),
|
|
8395
8395
|
transactionType: e.string(),
|
|
8396
8396
|
issuedTime: e.string().optional(),
|
|
8397
8397
|
billingTrigger: e.union([e.literal("accept"), e.literal("issue")]).optional(),
|
|
@@ -8432,8 +8432,8 @@ const Zl = e.object({
|
|
|
8432
8432
|
currency: e.string().optional(),
|
|
8433
8433
|
underwritingStatus: e.string().optional(),
|
|
8434
8434
|
expirationTime: e.string().optional(),
|
|
8435
|
-
element:
|
|
8436
|
-
preferences:
|
|
8435
|
+
element: ne,
|
|
8436
|
+
preferences: de.optional(),
|
|
8437
8437
|
policyLocator: e.string().optional(),
|
|
8438
8438
|
delinquencyPlanName: e.string().optional(),
|
|
8439
8439
|
durationBasis: e.union([
|
|
@@ -8474,7 +8474,7 @@ e.object({
|
|
|
8474
8474
|
});
|
|
8475
8475
|
e.object({
|
|
8476
8476
|
locator: e.string(),
|
|
8477
|
-
requestBody: e.array(
|
|
8477
|
+
requestBody: e.array(ne)
|
|
8478
8478
|
});
|
|
8479
8479
|
e.object({
|
|
8480
8480
|
locator: e.string(),
|
|
@@ -8482,7 +8482,7 @@ e.object({
|
|
|
8482
8482
|
});
|
|
8483
8483
|
e.object({
|
|
8484
8484
|
locator: e.string(),
|
|
8485
|
-
requestBody: e.array(
|
|
8485
|
+
requestBody: e.array(ne)
|
|
8486
8486
|
});
|
|
8487
8487
|
const py = e.object({
|
|
8488
8488
|
locator: e.string(),
|
|
@@ -8511,7 +8511,7 @@ const py = e.object({
|
|
|
8511
8511
|
e.literal("hours")
|
|
8512
8512
|
]).optional(),
|
|
8513
8513
|
groupLocator: e.string(),
|
|
8514
|
-
element:
|
|
8514
|
+
element: ne,
|
|
8515
8515
|
validationResult: Ge.optional(),
|
|
8516
8516
|
contacts: e.array(Fe)
|
|
8517
8517
|
});
|
|
@@ -8623,7 +8623,7 @@ const Gl = e.object({
|
|
|
8623
8623
|
shortfallTolerancePlanName: e.string(),
|
|
8624
8624
|
autoRenewalPlanName: e.string(),
|
|
8625
8625
|
excessCreditPlanName: e.string(),
|
|
8626
|
-
preferences:
|
|
8626
|
+
preferences: de,
|
|
8627
8627
|
validationResult: Ge.optional(),
|
|
8628
8628
|
billingLevel: e.union([
|
|
8629
8629
|
e.literal("account"),
|
|
@@ -8655,7 +8655,7 @@ const Gl = e.object({
|
|
|
8655
8655
|
shortfallTolerancePlanName: e.string(),
|
|
8656
8656
|
autoRenewalPlanName: e.string(),
|
|
8657
8657
|
excessCreditPlanName: e.string(),
|
|
8658
|
-
preferences:
|
|
8658
|
+
preferences: de,
|
|
8659
8659
|
billingLevel: e.union([
|
|
8660
8660
|
e.literal("account"),
|
|
8661
8661
|
e.literal("inherit"),
|
|
@@ -8680,7 +8680,7 @@ const Gl = e.object({
|
|
|
8680
8680
|
excessCreditPlanName: e.string(),
|
|
8681
8681
|
setData: e.record(e.record(e.unknown())),
|
|
8682
8682
|
removeData: e.record(e.record(e.unknown())),
|
|
8683
|
-
preferences:
|
|
8683
|
+
preferences: de,
|
|
8684
8684
|
billingLevel: e.union([
|
|
8685
8685
|
e.literal("account"),
|
|
8686
8686
|
e.literal("inherit"),
|
|
@@ -8759,8 +8759,8 @@ e.object({
|
|
|
8759
8759
|
currency: e.string().optional(),
|
|
8760
8760
|
underwritingStatus: e.string().optional(),
|
|
8761
8761
|
expirationTime: e.string().optional(),
|
|
8762
|
-
element:
|
|
8763
|
-
preferences:
|
|
8762
|
+
element: ne,
|
|
8763
|
+
preferences: de.optional(),
|
|
8764
8764
|
policyLocator: e.string().optional(),
|
|
8765
8765
|
delinquencyPlanName: e.string().optional(),
|
|
8766
8766
|
durationBasis: e.union([
|
|
@@ -9284,20 +9284,20 @@ const fy = e.object({
|
|
|
9284
9284
|
"policy.account.validate": Ua.optional(),
|
|
9285
9285
|
"policy.account.create": Ua.optional()
|
|
9286
9286
|
}), yy = e.object({
|
|
9287
|
-
"policy.quote.issue":
|
|
9288
|
-
"policy.quote.staticdata.replace":
|
|
9289
|
-
"policy.quote.create":
|
|
9290
|
-
"policy.quote.reset":
|
|
9291
|
-
"policy.quote.staticdata.update":
|
|
9292
|
-
"policy.quote.refuse":
|
|
9293
|
-
"policy.quote.staticdata.add":
|
|
9287
|
+
"policy.quote.issue": ee.optional(),
|
|
9288
|
+
"policy.quote.staticdata.replace": ee.optional(),
|
|
9289
|
+
"policy.quote.create": ee.optional(),
|
|
9290
|
+
"policy.quote.reset": ee.optional(),
|
|
9291
|
+
"policy.quote.staticdata.update": ee.optional(),
|
|
9292
|
+
"policy.quote.refuse": ee.optional(),
|
|
9293
|
+
"policy.quote.staticdata.add": ee.optional(),
|
|
9294
9294
|
"policy.quote.underwrite": ey.optional(),
|
|
9295
9295
|
"policy.quote.manualunderwrite": ty.optional(),
|
|
9296
|
-
"policy.quote.update":
|
|
9297
|
-
"policy.quote.price":
|
|
9298
|
-
"policy.quote.validate":
|
|
9299
|
-
"policy.quote.discard":
|
|
9300
|
-
"policy.quote.accept":
|
|
9296
|
+
"policy.quote.update": ee.optional(),
|
|
9297
|
+
"policy.quote.price": ee.optional(),
|
|
9298
|
+
"policy.quote.validate": ee.optional(),
|
|
9299
|
+
"policy.quote.discard": ee.optional(),
|
|
9300
|
+
"policy.quote.accept": ee.optional()
|
|
9301
9301
|
}), hy = e.object({
|
|
9302
9302
|
"policy.renewal.accept": E.optional(),
|
|
9303
9303
|
"policy.cancellation.reset": E.optional(),
|
|
@@ -9538,7 +9538,8 @@ const Xl = e.enum([
|
|
|
9538
9538
|
"unspecified",
|
|
9539
9539
|
"account",
|
|
9540
9540
|
"quote",
|
|
9541
|
-
"policy"
|
|
9541
|
+
"policy",
|
|
9542
|
+
"diary"
|
|
9542
9543
|
]), Sy = e.enum(["coverage", "gap"]), Nn = e.enum([
|
|
9543
9544
|
"issuance",
|
|
9544
9545
|
"change",
|
|
@@ -10053,35 +10054,46 @@ const Yy = e.object({
|
|
|
10053
10054
|
assignmentRoles: e.record(Vy).optional(),
|
|
10054
10055
|
qualifications: e.record(e.array(e.string())).optional()
|
|
10055
10056
|
}), th = e.object({
|
|
10056
|
-
// TODO: fully support propertyRefSchema
|
|
10057
|
-
// ...propertyRefSchema.shape,
|
|
10058
|
-
type: e.string(),
|
|
10059
|
-
defaultValue: e.string().optional(),
|
|
10060
|
-
min: e.number().or(e.coerce.number()).optional(),
|
|
10061
|
-
max: e.number().or(e.coerce.number()).optional()
|
|
10062
|
-
}), rh = e.object({
|
|
10063
10057
|
generateAutoRenewals: e.boolean(),
|
|
10064
10058
|
newTermDuration: e.number().optional(),
|
|
10065
10059
|
renewalAcceptLeadDays: e.number().optional(),
|
|
10066
10060
|
renewalCreateLeadDays: e.number().optional(),
|
|
10067
10061
|
renewalIssueLeadDays: e.number().optional(),
|
|
10068
10062
|
renewalTransactionType: e.string().optional()
|
|
10069
|
-
}),
|
|
10063
|
+
}), rh = e.record(th), ah = e.object({
|
|
10070
10064
|
selectionStartTime: e.string().optional(),
|
|
10071
10065
|
resourceNames: e.array(e.string()).optional()
|
|
10072
|
-
}),
|
|
10066
|
+
}), nh = e.object({
|
|
10073
10067
|
staticName: e.string().optional()
|
|
10068
|
+
}), ih = e.object({
|
|
10069
|
+
resourceGroups: e.record(ah).optional(),
|
|
10070
|
+
resourceInstances: e.record(nh).optional()
|
|
10074
10071
|
}), oh = e.object({
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
}), lh = e.object({
|
|
10078
|
-
resources: oh.optional()
|
|
10079
|
-
}), sh = e.record(
|
|
10072
|
+
resources: ih.optional()
|
|
10073
|
+
}), lh = e.record(
|
|
10080
10074
|
e.object({
|
|
10081
10075
|
columns: e.record(e.object({ dataType: e.string() })).optional(),
|
|
10082
10076
|
selectionTimeBasis: e.string().optional()
|
|
10083
10077
|
})
|
|
10084
|
-
),
|
|
10078
|
+
), sh = e.object({
|
|
10079
|
+
type: e.string(),
|
|
10080
|
+
defaultValue: e.string().optional(),
|
|
10081
|
+
minLength: e.number().optional(),
|
|
10082
|
+
maxLength: e.number().optional(),
|
|
10083
|
+
regex: e.string().optional(),
|
|
10084
|
+
min: e.string().optional(),
|
|
10085
|
+
multiline: e.boolean().optional(),
|
|
10086
|
+
max: e.string().optional(),
|
|
10087
|
+
options: e.array(e.string()).optional(),
|
|
10088
|
+
overrides: e.string().optional(),
|
|
10089
|
+
scope: e.string().optional(),
|
|
10090
|
+
inherited: e.boolean().optional(),
|
|
10091
|
+
precision: e.number().optional(),
|
|
10092
|
+
readOnly: e.boolean().optional(),
|
|
10093
|
+
searchable: e.boolean().optional(),
|
|
10094
|
+
roundingMode: e.string().optional(),
|
|
10095
|
+
tag: e.array(e.string()).optional()
|
|
10096
|
+
}), ch = e.object({
|
|
10085
10097
|
displayName: e.string().optional(),
|
|
10086
10098
|
value: e.number().optional(),
|
|
10087
10099
|
tag: e.string().optional()
|
|
@@ -10089,7 +10101,7 @@ const Yy = e.object({
|
|
|
10089
10101
|
type: e.string(),
|
|
10090
10102
|
displayName: e.string().optional(),
|
|
10091
10103
|
options: e.record(ch).optional(),
|
|
10092
|
-
value:
|
|
10104
|
+
value: sh.optional()
|
|
10093
10105
|
}), dh = e.record(uh), ph = e.enum(["policy", "invoice"]), gh = e.enum([
|
|
10094
10106
|
"draft",
|
|
10095
10107
|
"validated",
|
|
@@ -10169,12 +10181,12 @@ e.object({
|
|
|
10169
10181
|
products: jh,
|
|
10170
10182
|
coverageTerms: dh.optional(),
|
|
10171
10183
|
delinquencyPlans: fh,
|
|
10172
|
-
autoRenewalPlans:
|
|
10184
|
+
autoRenewalPlans: rh,
|
|
10173
10185
|
transactionTypes: $h.optional(),
|
|
10174
10186
|
reversalTypes: wh.optional(),
|
|
10175
10187
|
dataAccessControl: e.any().optional(),
|
|
10176
|
-
bootstrap:
|
|
10177
|
-
constraintTables:
|
|
10188
|
+
bootstrap: oh.optional(),
|
|
10189
|
+
constraintTables: lh.optional(),
|
|
10178
10190
|
payments: bh.optional(),
|
|
10179
10191
|
documents: Qy.optional(),
|
|
10180
10192
|
disbursements: Wy.optional(),
|
|
@@ -10262,7 +10274,7 @@ const Wi = e.object({
|
|
|
10262
10274
|
type: e.string(),
|
|
10263
10275
|
staticLocator: e.string().optional(),
|
|
10264
10276
|
parentLocator: e.string().optional(),
|
|
10265
|
-
coverageTerms: e.record(e.
|
|
10277
|
+
coverageTerms: e.record(e.any()).optional(),
|
|
10266
10278
|
data: e.record(e.any()).optional()
|
|
10267
10279
|
});
|
|
10268
10280
|
Wi.extend({
|
|
@@ -10357,7 +10369,7 @@ const Yt = e.string().ulid(), Ph = e.object({
|
|
|
10357
10369
|
type: e.string(),
|
|
10358
10370
|
data: e.record(e.any()).optional(),
|
|
10359
10371
|
parentLocator: Yt.optional(),
|
|
10360
|
-
coverageTerms: e.record(e.
|
|
10372
|
+
coverageTerms: e.record(e.any()).optional(),
|
|
10361
10373
|
originalEffectiveTime: e.string().optional()
|
|
10362
10374
|
}), Zn = Ph.extend({
|
|
10363
10375
|
elements: e.lazy(() => Zn.array().optional())
|
|
@@ -10386,7 +10398,7 @@ e.object({
|
|
|
10386
10398
|
autoRenewalPlanName: e.string().optional(),
|
|
10387
10399
|
billingLevel: kh.optional(),
|
|
10388
10400
|
billingTrigger: Ch.optional(),
|
|
10389
|
-
coverageTerms: e.record(e.
|
|
10401
|
+
coverageTerms: e.record(e.any()).optional(),
|
|
10390
10402
|
groupLocator: er.optional()
|
|
10391
10403
|
});
|
|
10392
10404
|
const Dh = e.enum([
|
|
@@ -10505,7 +10517,7 @@ const gs = Ol.merge(
|
|
|
10505
10517
|
})
|
|
10506
10518
|
), ms = Dl.merge(
|
|
10507
10519
|
e.object({ billingLevel: Mt })
|
|
10508
|
-
), Rt =
|
|
10520
|
+
), Rt = de.merge(
|
|
10509
10521
|
e.object({
|
|
10510
10522
|
installmentPreferences: gs.optional(),
|
|
10511
10523
|
billingPreferences: ms.optional()
|
|
@@ -10793,7 +10805,7 @@ e.object({
|
|
|
10793
10805
|
action: e.literal("modify"),
|
|
10794
10806
|
removeCoverageTerms: e.record(e.string(), e.any()).optional(),
|
|
10795
10807
|
removeData: e.record(e.string(), e.any()).optional(),
|
|
10796
|
-
setCoverageTerms: e.record(e.string(), e.
|
|
10808
|
+
setCoverageTerms: e.record(e.string(), e.any()).optional(),
|
|
10797
10809
|
setData: e.record(e.string(), e.any()).optional()
|
|
10798
10810
|
});
|
|
10799
10811
|
e.object({
|
|
@@ -10802,7 +10814,7 @@ e.object({
|
|
|
10802
10814
|
locator: e.string(),
|
|
10803
10815
|
removeCoverageTerms: e.record(e.string(), e.any()).optional(),
|
|
10804
10816
|
removeData: e.record(e.string(), e.any()).optional(),
|
|
10805
|
-
setCoverageTerms: e.record(e.string(), e.
|
|
10817
|
+
setCoverageTerms: e.record(e.string(), e.any()).optional(),
|
|
10806
10818
|
setData: e.record(e.string(), e.any()).optional()
|
|
10807
10819
|
});
|
|
10808
10820
|
e.object({
|
|
@@ -14048,7 +14060,7 @@ e.object({
|
|
|
14048
14060
|
const Yv = e.object({
|
|
14049
14061
|
locator: B,
|
|
14050
14062
|
isDeleted: e.boolean()
|
|
14051
|
-
}),
|
|
14063
|
+
}), ae = e.union([
|
|
14052
14064
|
Ss,
|
|
14053
14065
|
Yv
|
|
14054
14066
|
]), Se = e.object({
|
|
@@ -14270,9 +14282,9 @@ e.object({
|
|
|
14270
14282
|
});
|
|
14271
14283
|
const nT = e.object({
|
|
14272
14284
|
...ss.shape,
|
|
14273
|
-
assignedTo:
|
|
14274
|
-
createdBy:
|
|
14275
|
-
updatedBy:
|
|
14285
|
+
assignedTo: ae.optional(),
|
|
14286
|
+
createdBy: ae.optional(),
|
|
14287
|
+
updatedBy: ae.optional()
|
|
14276
14288
|
});
|
|
14277
14289
|
G(nT);
|
|
14278
14290
|
e.object({
|
|
@@ -14288,10 +14300,10 @@ const iT = e.object({
|
|
|
14288
14300
|
activityState: _a,
|
|
14289
14301
|
underwritingFlagLocators: e.array(e.string()).optional(),
|
|
14290
14302
|
deadlineTime: j.optional(),
|
|
14291
|
-
assignedTo:
|
|
14292
|
-
createdBy:
|
|
14303
|
+
assignedTo: ae.optional(),
|
|
14304
|
+
createdBy: ae,
|
|
14293
14305
|
createdAt: j,
|
|
14294
|
-
updatedBy:
|
|
14306
|
+
updatedBy: ae.optional(),
|
|
14295
14307
|
updatedAt: j.optional()
|
|
14296
14308
|
});
|
|
14297
14309
|
G(iT);
|
|
@@ -14300,15 +14312,15 @@ const oT = e.object({
|
|
|
14300
14312
|
referenceDetails: e.object({
|
|
14301
14313
|
entityNumber: e.string()
|
|
14302
14314
|
}).optional(),
|
|
14303
|
-
assignedTo:
|
|
14304
|
-
createdBy:
|
|
14305
|
-
updatedBy:
|
|
14315
|
+
assignedTo: ae.optional(),
|
|
14316
|
+
createdBy: ae.optional(),
|
|
14317
|
+
updatedBy: ae.optional()
|
|
14306
14318
|
});
|
|
14307
14319
|
G(oT);
|
|
14308
14320
|
const lT = e.object({
|
|
14309
14321
|
...Xn.shape,
|
|
14310
|
-
createdBy:
|
|
14311
|
-
updatedBy:
|
|
14322
|
+
createdBy: ae,
|
|
14323
|
+
updatedBy: ae.optional()
|
|
14312
14324
|
});
|
|
14313
14325
|
G(lT);
|
|
14314
14326
|
e.record(
|
|
@@ -14328,7 +14340,7 @@ const Hs = e.object({
|
|
|
14328
14340
|
G(Hs);
|
|
14329
14341
|
const sT = e.object({
|
|
14330
14342
|
...Hs.shape,
|
|
14331
|
-
user:
|
|
14343
|
+
user: ae
|
|
14332
14344
|
});
|
|
14333
14345
|
G(sT);
|
|
14334
14346
|
const cT = ({
|
|
@@ -14362,7 +14374,7 @@ const cT = ({
|
|
|
14362
14374
|
endTime: d.toAbsoluteString(),
|
|
14363
14375
|
expirationTime: u
|
|
14364
14376
|
};
|
|
14365
|
-
},
|
|
14377
|
+
}, gC = (r, t, a) => {
|
|
14366
14378
|
var o, l, s, c, u;
|
|
14367
14379
|
let n;
|
|
14368
14380
|
r.durationBasis ? n = r.durationBasis : t.defaultDurationBasis ? n = Xr.options.includes(
|
|
@@ -14383,17 +14395,17 @@ const cT = ({
|
|
|
14383
14395
|
...(l = r == null ? void 0 : r.element) == null ? void 0 : l.data
|
|
14384
14396
|
},
|
|
14385
14397
|
default: {
|
|
14386
|
-
...i
|
|
14387
|
-
},
|
|
14388
|
-
advanced: {
|
|
14398
|
+
...i,
|
|
14389
14399
|
currency: (r == null ? void 0 : r.currency) ?? t.defaultCurrency ?? a.defaultCurrency ?? void 0,
|
|
14390
14400
|
timezone: (r == null ? void 0 : r.timezone) ?? t.defaultTimeZone ?? a.defaultTimeZone ?? void 0,
|
|
14401
|
+
installmentPlanName: ((c = (s = r == null ? void 0 : r.preferences) == null ? void 0 : s.installmentPreferences) == null ? void 0 : c.installmentPlanName) ?? (t == null ? void 0 : t.defaultInstallmentPlan) ?? (a == null ? void 0 : a.defaultInstallmentPlan) ?? void 0
|
|
14402
|
+
},
|
|
14403
|
+
advanced: {
|
|
14391
14404
|
billingLevel: (r == null ? void 0 : r.billingLevel) ?? t.defaultBillingLevel ?? void 0,
|
|
14392
14405
|
billingTrigger: (r == null ? void 0 : r.billingTrigger) ?? t.defaultBillingTrigger ?? void 0,
|
|
14393
14406
|
durationBasis: (r == null ? void 0 : r.durationBasis) ?? t.defaultDurationBasis ?? (a == null ? void 0 : a.defaultDurationBasis) ?? void 0,
|
|
14394
14407
|
delinquencyPlanName: (r == null ? void 0 : r.delinquencyPlanName) ?? (t == null ? void 0 : t.defaultDelinquencyPlan) ?? (a == null ? void 0 : a.defaultDelinquencyPlan) ?? void 0,
|
|
14395
|
-
autoRenewalPlanName: (r == null ? void 0 : r.autoRenewalPlanName) ?? (t == null ? void 0 : t.defaultAutoRenewalPlan) ?? (a == null ? void 0 : a.defaultAutoRenewalPlan) ?? void 0
|
|
14396
|
-
installmentPlanName: ((c = (s = r == null ? void 0 : r.preferences) == null ? void 0 : s.installmentPreferences) == null ? void 0 : c.installmentPlanName) ?? (t == null ? void 0 : t.defaultInstallmentPlan) ?? (a == null ? void 0 : a.defaultInstallmentPlan) ?? void 0
|
|
14408
|
+
autoRenewalPlanName: (r == null ? void 0 : r.autoRenewalPlanName) ?? (t == null ? void 0 : t.defaultAutoRenewalPlan) ?? (a == null ? void 0 : a.defaultAutoRenewalPlan) ?? void 0
|
|
14397
14409
|
},
|
|
14398
14410
|
coverageTerms: Tt({
|
|
14399
14411
|
coverageTermDataModel: a.coverageTerms,
|
|
@@ -14427,7 +14439,7 @@ function TT(r, t) {
|
|
|
14427
14439
|
var a = typeof r;
|
|
14428
14440
|
return t = t ?? bT, !!t && (a == "number" || a != "symbol" && vT.test(r)) && r > -1 && r % 1 == 0 && r < t;
|
|
14429
14441
|
}
|
|
14430
|
-
var ka = TT, jT = ei, AT = Pt, _T = ka, ao =
|
|
14442
|
+
var ka = TT, jT = ei, AT = Pt, _T = ka, ao = oe, wT = Dt;
|
|
14431
14443
|
function xT(r, t, a, n) {
|
|
14432
14444
|
if (!ao(r))
|
|
14433
14445
|
return r;
|
|
@@ -14575,14 +14587,14 @@ function Bj(r) {
|
|
|
14575
14587
|
var ac = Bj, Mj = aj, Rj = ac, qj = Rj(function(r, t) {
|
|
14576
14588
|
return r == null ? {} : Mj(r, t);
|
|
14577
14589
|
}), Fj = qj;
|
|
14578
|
-
const Jr = /* @__PURE__ */
|
|
14590
|
+
const Jr = /* @__PURE__ */ ie(Fj);
|
|
14579
14591
|
var Zj = Ys;
|
|
14580
14592
|
function Uj(r, t, a) {
|
|
14581
14593
|
return r == null ? r : Zj(r, t, a);
|
|
14582
14594
|
}
|
|
14583
14595
|
var Gj = Uj;
|
|
14584
|
-
const k = /* @__PURE__ */
|
|
14585
|
-
function
|
|
14596
|
+
const k = /* @__PURE__ */ ie(Gj), Kj = { Date: !0, RegExp: !0, String: !0, Number: !0 };
|
|
14597
|
+
function re(r, t, a = { cyclesFix: !0 }, n = []) {
|
|
14586
14598
|
var s, c;
|
|
14587
14599
|
let i = [];
|
|
14588
14600
|
const o = Array.isArray(r);
|
|
@@ -14597,7 +14609,7 @@ function te(r, t, a = { cyclesFix: !0 }, n = []) {
|
|
|
14597
14609
|
continue;
|
|
14598
14610
|
}
|
|
14599
14611
|
const f = t[u], h = typeof d == "object" && typeof f == "object" && Array.isArray(d) === Array.isArray(f);
|
|
14600
|
-
d && f && h && !Kj[(c = (s = Object.getPrototypeOf(d)) == null ? void 0 : s.constructor) == null ? void 0 : c.name] && (!a.cyclesFix || !n.includes(d)) ? i.push.apply(i,
|
|
14612
|
+
d && f && h && !Kj[(c = (s = Object.getPrototypeOf(d)) == null ? void 0 : s.constructor) == null ? void 0 : c.name] && (!a.cyclesFix || !n.includes(d)) ? i.push.apply(i, re(d, f, a, a.cyclesFix ? n.concat([d]) : []).map((y) => (y.path.unshift(g), y))) : d !== f && // treat NaN values as equivalent
|
|
14601
14613
|
!(Number.isNaN(d) && Number.isNaN(f)) && !(h && (isNaN(d) ? d + "" == f + "" : +d == +f)) && i.push({
|
|
14602
14614
|
path: [g],
|
|
14603
14615
|
type: "CHANGE",
|
|
@@ -14614,7 +14626,7 @@ function te(r, t, a = { cyclesFix: !0 }, n = []) {
|
|
|
14614
14626
|
});
|
|
14615
14627
|
return i;
|
|
14616
14628
|
}
|
|
14617
|
-
const
|
|
14629
|
+
const mC = (r) => {
|
|
14618
14630
|
const {
|
|
14619
14631
|
data: t,
|
|
14620
14632
|
default: a,
|
|
@@ -14629,7 +14641,7 @@ const gC = (r) => {
|
|
|
14629
14641
|
setCoverageTerms: {},
|
|
14630
14642
|
removeCoverageTerms: {}
|
|
14631
14643
|
};
|
|
14632
|
-
|
|
14644
|
+
re((o == null ? void 0 : o.data) ?? {}, t).forEach((y) => {
|
|
14633
14645
|
switch (y.type) {
|
|
14634
14646
|
case "CHANGE":
|
|
14635
14647
|
case "CREATE":
|
|
@@ -14647,7 +14659,7 @@ const gC = (r) => {
|
|
|
14647
14659
|
k(s.removeData ?? {}, y.path, !0);
|
|
14648
14660
|
break;
|
|
14649
14661
|
}
|
|
14650
|
-
}),
|
|
14662
|
+
}), re(
|
|
14651
14663
|
o.coverageTerms ?? {},
|
|
14652
14664
|
i ?? {}
|
|
14653
14665
|
).forEach((y) => {
|
|
@@ -14673,7 +14685,7 @@ const gC = (r) => {
|
|
|
14673
14685
|
"installmentPlan",
|
|
14674
14686
|
"durationBasis",
|
|
14675
14687
|
"delinquencyPlanName"
|
|
14676
|
-
]), f =
|
|
14688
|
+
]), f = re(d ?? {}, a ?? {}), h = re(g ?? {}, n ?? {});
|
|
14677
14689
|
return f.forEach((y) => {
|
|
14678
14690
|
switch (y.type) {
|
|
14679
14691
|
case "CHANGE":
|
|
@@ -14845,7 +14857,7 @@ function k_(r) {
|
|
|
14845
14857
|
t.push(a);
|
|
14846
14858
|
return t;
|
|
14847
14859
|
}
|
|
14848
|
-
var P_ = k_, D_ =
|
|
14860
|
+
var P_ = k_, D_ = oe, O_ = Da, N_ = P_, I_ = Object.prototype, B_ = I_.hasOwnProperty;
|
|
14849
14861
|
function M_(r) {
|
|
14850
14862
|
if (!D_(r))
|
|
14851
14863
|
return N_(r);
|
|
@@ -15003,7 +15015,7 @@ function Rx(r, t, a) {
|
|
|
15003
15015
|
return bx(r);
|
|
15004
15016
|
}
|
|
15005
15017
|
}
|
|
15006
|
-
var qx = Rx, Fx =
|
|
15018
|
+
var qx = Rx, Fx = oe, Ao = Object.create, Zx = /* @__PURE__ */ function() {
|
|
15007
15019
|
function r() {
|
|
15008
15020
|
}
|
|
15009
15021
|
return function(t) {
|
|
@@ -15027,7 +15039,7 @@ var Qx = Yx, Xx = Qx, Jx = ni, _o = ii, wo = _o && _o.isMap, eE = wo ? Jx(wo) :
|
|
|
15027
15039
|
function iE(r) {
|
|
15028
15040
|
return aE(r) && rE(r) == nE;
|
|
15029
15041
|
}
|
|
15030
|
-
var oE = iE, lE = oE, sE = ni, xo = ii, Eo = xo && xo.isSet, cE = Eo ? sE(Eo) : lE, uE = cE, dE = Pa, pE = nc, gE = ei, mE = C_, fE = V_, yE = sc, hE = cc, bE = ow, vE = bw, TE = gc, jE = mc, AE = Er, _E = tx, wE = qx, xE = vc, EE = Y, $E = Zt, LE = tE, SE =
|
|
15042
|
+
var oE = iE, lE = oE, sE = ni, xo = ii, Eo = xo && xo.isSet, cE = Eo ? sE(Eo) : lE, uE = cE, dE = Pa, pE = nc, gE = ei, mE = C_, fE = V_, yE = sc, hE = cc, bE = ow, vE = bw, TE = gc, jE = mc, AE = Er, _E = tx, wE = qx, xE = vc, EE = Y, $E = Zt, LE = tE, SE = oe, CE = uE, kE = wr, PE = xr, DE = 1, OE = 2, NE = 4, Tc = "[object Arguments]", IE = "[object Array]", BE = "[object Boolean]", ME = "[object Date]", RE = "[object Error]", jc = "[object Function]", qE = "[object GeneratorFunction]", FE = "[object Map]", ZE = "[object Number]", Ac = "[object Object]", UE = "[object RegExp]", GE = "[object Set]", KE = "[object String]", zE = "[object Symbol]", VE = "[object WeakMap]", HE = "[object ArrayBuffer]", WE = "[object DataView]", YE = "[object Float32Array]", QE = "[object Float64Array]", XE = "[object Int8Array]", JE = "[object Int16Array]", e$ = "[object Int32Array]", t$ = "[object Uint8Array]", r$ = "[object Uint8ClampedArray]", a$ = "[object Uint16Array]", n$ = "[object Uint32Array]", q = {};
|
|
15031
15043
|
q[Tc] = q[IE] = q[HE] = q[WE] = q[BE] = q[ME] = q[YE] = q[QE] = q[XE] = q[JE] = q[e$] = q[FE] = q[ZE] = q[Ac] = q[UE] = q[GE] = q[KE] = q[zE] = q[t$] = q[r$] = q[a$] = q[n$] = !0;
|
|
15032
15044
|
q[RE] = q[jc] = q[VE] = !1;
|
|
15033
15045
|
function qr(r, t, a, n, i, o) {
|
|
@@ -15114,7 +15126,7 @@ var k$ = C$, P$ = ol, D$ = i$, O$ = v$, N$ = Pt, I$ = Ft, B$ = k$, M$ = ac, R$ =
|
|
|
15114
15126
|
O$(a, t[i]);
|
|
15115
15127
|
return a;
|
|
15116
15128
|
}), G$ = U$;
|
|
15117
|
-
const K$ = /* @__PURE__ */
|
|
15129
|
+
const K$ = /* @__PURE__ */ ie(G$);
|
|
15118
15130
|
function z$(r, t) {
|
|
15119
15131
|
for (var a = -1, n = r == null ? 0 : r.length; ++a < n; )
|
|
15120
15132
|
if (!t(r[a], a, r))
|
|
@@ -15349,7 +15361,7 @@ function hL(r, t, a, n) {
|
|
|
15349
15361
|
}
|
|
15350
15362
|
return !0;
|
|
15351
15363
|
}
|
|
15352
|
-
var bL = hL, vL =
|
|
15364
|
+
var bL = hL, vL = oe;
|
|
15353
15365
|
function TL(r) {
|
|
15354
15366
|
return r === r && !vL(r);
|
|
15355
15367
|
}
|
|
@@ -15401,7 +15413,7 @@ var XL = QL, JL = CL, e0 = FL, t0 = ai, r0 = Y, a0 = XL;
|
|
|
15401
15413
|
function n0(r) {
|
|
15402
15414
|
return typeof r == "function" ? r : r == null ? t0 : typeof r == "object" ? r0(r) ? e0(r[0], r[1]) : JL(r) : a0(r);
|
|
15403
15415
|
}
|
|
15404
|
-
var kc = n0, i0 = yr, o0 = Ut, l0 = ka, s0 =
|
|
15416
|
+
var kc = n0, i0 = yr, o0 = Ut, l0 = ka, s0 = oe;
|
|
15405
15417
|
function c0(r, t, a) {
|
|
15406
15418
|
if (!s0(a))
|
|
15407
15419
|
return !1;
|
|
@@ -15414,7 +15426,7 @@ function f0(r, t, a) {
|
|
|
15414
15426
|
return a && m0(r, t, a) && (t = void 0), n(r, p0(t));
|
|
15415
15427
|
}
|
|
15416
15428
|
var y0 = f0;
|
|
15417
|
-
const h0 = /* @__PURE__ */
|
|
15429
|
+
const h0 = /* @__PURE__ */ ie(y0);
|
|
15418
15430
|
var b0 = Object.prototype, v0 = b0.hasOwnProperty;
|
|
15419
15431
|
function T0(r, t) {
|
|
15420
15432
|
return r != null && v0.call(r, t);
|
|
@@ -15424,7 +15436,7 @@ function w0(r, t) {
|
|
|
15424
15436
|
return r != null && _0(r, t, A0);
|
|
15425
15437
|
}
|
|
15426
15438
|
var x0 = w0;
|
|
15427
|
-
const E0 = /* @__PURE__ */
|
|
15439
|
+
const E0 = /* @__PURE__ */ ie(x0);
|
|
15428
15440
|
var $0 = lc, L0 = Er, S0 = Ar, C0 = Y, k0 = Ut, P0 = Zt, D0 = Da, O0 = _r, N0 = "[object Map]", I0 = "[object Set]", B0 = Object.prototype, M0 = B0.hasOwnProperty;
|
|
15429
15441
|
function R0(r) {
|
|
15430
15442
|
if (r == null)
|
|
@@ -15442,8 +15454,8 @@ function R0(r) {
|
|
|
15442
15454
|
return !0;
|
|
15443
15455
|
}
|
|
15444
15456
|
var q0 = R0;
|
|
15445
|
-
const Mo = /* @__PURE__ */
|
|
15446
|
-
var F0 = nc, Z0 = bc, U0 = Ec, G0 = kc, K0 = Oa, z0 = Y, V0 = Zt, H0 = oa, W0 =
|
|
15457
|
+
const Mo = /* @__PURE__ */ ie(q0);
|
|
15458
|
+
var F0 = nc, Z0 = bc, U0 = Ec, G0 = kc, K0 = Oa, z0 = Y, V0 = Zt, H0 = oa, W0 = oe, Y0 = _r;
|
|
15447
15459
|
function Q0(r, t, a) {
|
|
15448
15460
|
var n = z0(r), i = n || V0(r) || Y0(r);
|
|
15449
15461
|
if (t = G0(t), a == null) {
|
|
@@ -15455,7 +15467,7 @@ function Q0(r, t, a) {
|
|
|
15455
15467
|
}), a;
|
|
15456
15468
|
}
|
|
15457
15469
|
var X0 = Q0;
|
|
15458
|
-
const J0 = /* @__PURE__ */
|
|
15470
|
+
const J0 = /* @__PURE__ */ ie(X0);
|
|
15459
15471
|
function na(r, t) {
|
|
15460
15472
|
return J0(r, (a, n, i) => {
|
|
15461
15473
|
if (!E0(t, i))
|
|
@@ -15471,7 +15483,7 @@ function na(r, t) {
|
|
|
15471
15483
|
}
|
|
15472
15484
|
});
|
|
15473
15485
|
}
|
|
15474
|
-
const
|
|
15486
|
+
const fC = ({
|
|
15475
15487
|
data: r,
|
|
15476
15488
|
transactionSnapshot: t,
|
|
15477
15489
|
staticLocator: a
|
|
@@ -15486,7 +15498,7 @@ const mC = ({
|
|
|
15486
15498
|
);
|
|
15487
15499
|
const o = t.segment.element.data ?? {}, l = K$(i, ["coverageTerms", "default"]);
|
|
15488
15500
|
return n.setData = l, n.removeData = na(o, l), n;
|
|
15489
|
-
},
|
|
15501
|
+
}, yC = ({
|
|
15490
15502
|
data: r,
|
|
15491
15503
|
timezone: t
|
|
15492
15504
|
}) => {
|
|
@@ -15497,18 +15509,24 @@ const mC = ({
|
|
|
15497
15509
|
return r.default.newPolicyEndDate && (a.newPolicyEndTime = Ja(
|
|
15498
15510
|
r.default.newPolicyEndDate
|
|
15499
15511
|
).toDate(t).toISOString()), a;
|
|
15500
|
-
}, eS =
|
|
15501
|
-
"
|
|
15512
|
+
}, eS = X.enum([
|
|
15513
|
+
"startTime",
|
|
15514
|
+
"endTime",
|
|
15515
|
+
"expirationTime",
|
|
15516
|
+
"installmentPlanName",
|
|
15502
15517
|
"timezone",
|
|
15518
|
+
"currency"
|
|
15519
|
+
]);
|
|
15520
|
+
X.record(eS, X.string().optional());
|
|
15521
|
+
const tS = X.enum([
|
|
15503
15522
|
"billingLevel",
|
|
15504
15523
|
"billingTrigger",
|
|
15505
15524
|
"durationBasis",
|
|
15506
15525
|
"delinquencyPlanName",
|
|
15507
|
-
"autoRenewalPlanName"
|
|
15508
|
-
"installmentPlanName"
|
|
15526
|
+
"autoRenewalPlanName"
|
|
15509
15527
|
]);
|
|
15510
|
-
|
|
15511
|
-
const
|
|
15528
|
+
X.record(tS, X.string().optional());
|
|
15529
|
+
const hC = (r) => {
|
|
15512
15530
|
var h, y;
|
|
15513
15531
|
const {
|
|
15514
15532
|
data: t,
|
|
@@ -15522,7 +15540,7 @@ const yC = (r) => {
|
|
|
15522
15540
|
setCoverageTerms: {},
|
|
15523
15541
|
removeCoverageTerms: {}
|
|
15524
15542
|
};
|
|
15525
|
-
|
|
15543
|
+
re(((h = o.element) == null ? void 0 : h.data) ?? {}, t).forEach((b) => {
|
|
15526
15544
|
switch (b.type) {
|
|
15527
15545
|
case "CHANGE":
|
|
15528
15546
|
case "CREATE":
|
|
@@ -15540,7 +15558,7 @@ const yC = (r) => {
|
|
|
15540
15558
|
k(l.removeData ?? {}, b.path, !0);
|
|
15541
15559
|
break;
|
|
15542
15560
|
}
|
|
15543
|
-
}),
|
|
15561
|
+
}), re(
|
|
15544
15562
|
((y = o.element) == null ? void 0 : y.coverageTerms) ?? {},
|
|
15545
15563
|
i ?? {}
|
|
15546
15564
|
).forEach((b) => {
|
|
@@ -15557,23 +15575,27 @@ const yC = (r) => {
|
|
|
15557
15575
|
const u = Jr(o, [
|
|
15558
15576
|
"startTime",
|
|
15559
15577
|
"endTime",
|
|
15560
|
-
"expirationTime"
|
|
15561
|
-
|
|
15562
|
-
"currency",
|
|
15578
|
+
"expirationTime",
|
|
15579
|
+
"installmentPlanName",
|
|
15563
15580
|
"timezone",
|
|
15581
|
+
"currency"
|
|
15582
|
+
]), d = Jr(o, [
|
|
15564
15583
|
"billingPlan",
|
|
15565
15584
|
"defaultTermDuration",
|
|
15566
15585
|
"installmentPlan",
|
|
15567
15586
|
"durationBasis",
|
|
15568
15587
|
"delinquencyPlanName",
|
|
15569
|
-
"autoRenewalPlanName"
|
|
15570
|
-
|
|
15571
|
-
]), g = te(u ?? {}, a ?? {}), f = te(d ?? {}, n ?? {});
|
|
15588
|
+
"autoRenewalPlanName"
|
|
15589
|
+
]), g = re(u ?? {}, a ?? {}), f = re(d ?? {}, n ?? {});
|
|
15572
15590
|
return g.forEach((b) => {
|
|
15573
15591
|
switch (b.type) {
|
|
15574
15592
|
case "CHANGE":
|
|
15575
15593
|
case "CREATE":
|
|
15576
|
-
|
|
15594
|
+
b.path.includes("installmentPlanName") ? k(
|
|
15595
|
+
l,
|
|
15596
|
+
["preferences", "installmentPreferences", ...b.path],
|
|
15597
|
+
b.value
|
|
15598
|
+
) : k(l, b.path, b.value);
|
|
15577
15599
|
break;
|
|
15578
15600
|
case "REMOVE":
|
|
15579
15601
|
k(l, b.path, null);
|
|
@@ -15583,18 +15605,14 @@ const yC = (r) => {
|
|
|
15583
15605
|
switch (b.type) {
|
|
15584
15606
|
case "CHANGE":
|
|
15585
15607
|
case "CREATE":
|
|
15586
|
-
b.path.
|
|
15587
|
-
l,
|
|
15588
|
-
["preferences", "installmentPreferences", ...b.path],
|
|
15589
|
-
b.value
|
|
15590
|
-
) : k(l, b.path, b.value);
|
|
15608
|
+
k(l, b.path, b.value);
|
|
15591
15609
|
break;
|
|
15592
15610
|
case "REMOVE":
|
|
15593
15611
|
k(l, b.path, null);
|
|
15594
15612
|
break;
|
|
15595
15613
|
}
|
|
15596
15614
|
}), l;
|
|
15597
|
-
},
|
|
15615
|
+
}, bC = (r) => {
|
|
15598
15616
|
var i, o;
|
|
15599
15617
|
const t = {
|
|
15600
15618
|
locator: r.element.locator,
|
|
@@ -15603,7 +15621,7 @@ const yC = (r) => {
|
|
|
15603
15621
|
setCoverageTerms: {},
|
|
15604
15622
|
removeCoverageTerms: {}
|
|
15605
15623
|
};
|
|
15606
|
-
return
|
|
15624
|
+
return re(((i = r.element) == null ? void 0 : i.data) ?? {}, r.data).forEach((l) => {
|
|
15607
15625
|
switch (l.type) {
|
|
15608
15626
|
case "CHANGE":
|
|
15609
15627
|
case "CREATE":
|
|
@@ -15621,7 +15639,7 @@ const yC = (r) => {
|
|
|
15621
15639
|
k(t.removeData ?? {}, l.path, !0);
|
|
15622
15640
|
break;
|
|
15623
15641
|
}
|
|
15624
|
-
}),
|
|
15642
|
+
}), re(
|
|
15625
15643
|
((o = r.element) == null ? void 0 : o.coverageTerms) ?? {},
|
|
15626
15644
|
r.coverageTerms ?? {}
|
|
15627
15645
|
).forEach((l) => {
|
|
@@ -15636,10 +15654,10 @@ const yC = (r) => {
|
|
|
15636
15654
|
}
|
|
15637
15655
|
}), t;
|
|
15638
15656
|
};
|
|
15639
|
-
function
|
|
15657
|
+
function vC(r) {
|
|
15640
15658
|
return r.keyword === "pattern" && (r.message = `Invalid format, must match pattern ${r.params.pattern}`), r.keyword === "format" && (r.message = "Invalid format"), r.keyword === "required" && (r.message = "Required"), r.keyword === "minItems" && (r.message = `Must have at least ${r.params.limit} item${r.params.limit !== 1 ? "s" : ""}`), r.keyword === "maxItems" && (r.message = `Must have at most ${r.params.limit} item${r.params.limit !== 1 ? "s" : ""}`), r.keyword === "type" && (r.message = "Invalid format"), r.keyword === "maxLength" && (r.message = `Must be at most ${r.params.limit} character${r.params.limit !== 1 ? "s" : ""}`), r.keyword === "minLength" && (r.message = `Must be at least ${r.params.limit} character${r.params.limit !== 1 ? "s" : ""}`), r.keyword === "minimum" && (r.message = `Must be greater than or equal to ${r.params.limit}`), r.keyword === "maximum" && (r.message = `Must be less than or equal to ${r.params.limit}`), r.keyword === "enum" && (r.message = "Invalid value"), r.keyword === "multipleOf" && (r.message = `Must be a multiple of ${r.params.multipleOf}`), r.message ?? "Unknown error";
|
|
15641
15659
|
}
|
|
15642
|
-
const
|
|
15660
|
+
const TC = ({
|
|
15643
15661
|
dependencyMap: r,
|
|
15644
15662
|
locator: t,
|
|
15645
15663
|
data: a
|
|
@@ -15660,25 +15678,25 @@ const vC = ({
|
|
|
15660
15678
|
};
|
|
15661
15679
|
}), n;
|
|
15662
15680
|
};
|
|
15663
|
-
var
|
|
15664
|
-
function
|
|
15665
|
-
(a !== void 0 && !
|
|
15681
|
+
var rS = Jn, aS = yr;
|
|
15682
|
+
function nS(r, t, a) {
|
|
15683
|
+
(a !== void 0 && !aS(r[t], a) || a === void 0 && !(t in r)) && rS(r, t, a);
|
|
15666
15684
|
}
|
|
15667
|
-
var Dc =
|
|
15668
|
-
function
|
|
15669
|
-
return
|
|
15685
|
+
var Dc = nS, iS = Ut, oS = Le;
|
|
15686
|
+
function lS(r) {
|
|
15687
|
+
return oS(r) && iS(r);
|
|
15670
15688
|
}
|
|
15671
|
-
var
|
|
15672
|
-
function
|
|
15689
|
+
var sS = lS;
|
|
15690
|
+
function cS(r, t) {
|
|
15673
15691
|
if (!(t === "constructor" && typeof r[t] == "function") && t != "__proto__")
|
|
15674
15692
|
return r[t];
|
|
15675
15693
|
}
|
|
15676
|
-
var Oc =
|
|
15677
|
-
function
|
|
15678
|
-
return
|
|
15694
|
+
var Oc = cS, uS = Ft, dS = xr;
|
|
15695
|
+
function pS(r) {
|
|
15696
|
+
return uS(r, dS(r));
|
|
15679
15697
|
}
|
|
15680
|
-
var
|
|
15681
|
-
function
|
|
15698
|
+
var gS = pS, Ro = Dc, mS = sc, fS = hc, yS = cc, hS = vc, qo = Ar, Fo = Y, bS = sS, vS = Zt, TS = oa, jS = oe, AS = wc, _S = _r, Zo = Oc, wS = gS;
|
|
15699
|
+
function xS(r, t, a, n, i, o, l) {
|
|
15682
15700
|
var s = Zo(r, a), c = Zo(t, a), u = l.get(c);
|
|
15683
15701
|
if (u) {
|
|
15684
15702
|
Ro(r, a, u);
|
|
@@ -15686,47 +15704,47 @@ function wS(r, t, a, n, i, o, l) {
|
|
|
15686
15704
|
}
|
|
15687
15705
|
var d = o ? o(s, c, a + "", r, t, l) : void 0, g = d === void 0;
|
|
15688
15706
|
if (g) {
|
|
15689
|
-
var f = Fo(c), h = !f &&
|
|
15690
|
-
d = c, f || h || y ? Fo(s) ? d = s :
|
|
15707
|
+
var f = Fo(c), h = !f && vS(c), y = !f && !h && _S(c);
|
|
15708
|
+
d = c, f || h || y ? Fo(s) ? d = s : bS(s) ? d = yS(s) : h ? (g = !1, d = mS(c, !0)) : y ? (g = !1, d = fS(c, !0)) : d = [] : AS(c) || qo(c) ? (d = s, qo(s) ? d = wS(s) : (!jS(s) || TS(s)) && (d = hS(c))) : g = !1;
|
|
15691
15709
|
}
|
|
15692
15710
|
g && (l.set(c, d), i(d, c, n, o, l), l.delete(c)), Ro(r, a, d);
|
|
15693
15711
|
}
|
|
15694
|
-
var
|
|
15712
|
+
var ES = xS, $S = Pa, LS = Dc, SS = xc, CS = ES, kS = oe, PS = xr, DS = Oc;
|
|
15695
15713
|
function Nc(r, t, a, n, i) {
|
|
15696
|
-
r !== t &&
|
|
15697
|
-
if (i || (i = new
|
|
15698
|
-
|
|
15714
|
+
r !== t && SS(t, function(o, l) {
|
|
15715
|
+
if (i || (i = new $S()), kS(o))
|
|
15716
|
+
CS(r, t, l, a, Nc, n, i);
|
|
15699
15717
|
else {
|
|
15700
|
-
var s = n ? n(
|
|
15701
|
-
s === void 0 && (s = o),
|
|
15718
|
+
var s = n ? n(DS(r, l), o, l + "", r, t, i) : void 0;
|
|
15719
|
+
s === void 0 && (s = o), LS(r, l, s);
|
|
15702
15720
|
}
|
|
15703
|
-
},
|
|
15721
|
+
}, PS);
|
|
15704
15722
|
}
|
|
15705
|
-
var
|
|
15706
|
-
function
|
|
15707
|
-
return IS(
|
|
15723
|
+
var OS = Nc, NS = ai, IS = tc, BS = rc;
|
|
15724
|
+
function MS(r, t) {
|
|
15725
|
+
return BS(IS(r, t, NS), r + "");
|
|
15708
15726
|
}
|
|
15709
|
-
var
|
|
15710
|
-
function
|
|
15711
|
-
return
|
|
15727
|
+
var RS = MS, qS = RS, FS = Pc;
|
|
15728
|
+
function ZS(r) {
|
|
15729
|
+
return qS(function(t, a) {
|
|
15712
15730
|
var n = -1, i = a.length, o = i > 1 ? a[i - 1] : void 0, l = i > 2 ? a[2] : void 0;
|
|
15713
|
-
for (o = r.length > 3 && typeof o == "function" ? (i--, o) : void 0, l &&
|
|
15731
|
+
for (o = r.length > 3 && typeof o == "function" ? (i--, o) : void 0, l && FS(a[0], a[1], l) && (o = i < 3 ? void 0 : o, i = 1), t = Object(t); ++n < i; ) {
|
|
15714
15732
|
var s = a[n];
|
|
15715
15733
|
s && r(t, s, n, o);
|
|
15716
15734
|
}
|
|
15717
15735
|
return t;
|
|
15718
15736
|
});
|
|
15719
15737
|
}
|
|
15720
|
-
var
|
|
15721
|
-
|
|
15722
|
-
}),
|
|
15723
|
-
const
|
|
15738
|
+
var US = ZS, GS = OS, KS = US, zS = KS(function(r, t, a) {
|
|
15739
|
+
GS(r, t, a);
|
|
15740
|
+
}), VS = zS;
|
|
15741
|
+
const HS = /* @__PURE__ */ ie(VS), jC = ({
|
|
15724
15742
|
defaultValues: r,
|
|
15725
15743
|
accountType: t,
|
|
15726
15744
|
account: a
|
|
15727
15745
|
}) => {
|
|
15728
15746
|
var i, o;
|
|
15729
|
-
const n =
|
|
15747
|
+
const n = HS(
|
|
15730
15748
|
r ?? {},
|
|
15731
15749
|
a ?? {}
|
|
15732
15750
|
);
|
|
@@ -15745,12 +15763,12 @@ const VS = /* @__PURE__ */ ne(zS), TC = ({
|
|
|
15745
15763
|
saveAsDraft: !((r == null ? void 0 : r.autoValidate) ?? !0)
|
|
15746
15764
|
};
|
|
15747
15765
|
};
|
|
15748
|
-
var
|
|
15749
|
-
function
|
|
15750
|
-
return
|
|
15766
|
+
var WS = si;
|
|
15767
|
+
function YS(r, t) {
|
|
15768
|
+
return WS(r, t);
|
|
15751
15769
|
}
|
|
15752
|
-
var
|
|
15753
|
-
const
|
|
15770
|
+
var QS = YS;
|
|
15771
|
+
const XS = /* @__PURE__ */ ie(QS), JS = (r, t, a) => {
|
|
15754
15772
|
const n = [];
|
|
15755
15773
|
if (Object.keys(r).length === 0 && Object.keys(t).length === 0)
|
|
15756
15774
|
return n;
|
|
@@ -15763,7 +15781,7 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
|
|
|
15763
15781
|
const l = r[o], s = t[o];
|
|
15764
15782
|
if (Array.isArray(l) && Array.isArray(s))
|
|
15765
15783
|
for (let c = 0; c < s.length; c++) {
|
|
15766
|
-
const u = l[c] ?? {}, d = s[c] ?? {}, g =
|
|
15784
|
+
const u = l[c] ?? {}, d = s[c] ?? {}, g = JS(
|
|
15767
15785
|
u,
|
|
15768
15786
|
d,
|
|
15769
15787
|
a ? [...a, o, `${c}`] : [o, `${c}`]
|
|
@@ -15771,7 +15789,7 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
|
|
|
15771
15789
|
g.length !== 0 && n.push(...g);
|
|
15772
15790
|
}
|
|
15773
15791
|
else if (en(r[o]) && en(t[o])) {
|
|
15774
|
-
if (
|
|
15792
|
+
if (XS(r[o], t[o])) continue;
|
|
15775
15793
|
n.push({
|
|
15776
15794
|
originalValue: r[o],
|
|
15777
15795
|
newValue: t[o],
|
|
@@ -15798,7 +15816,7 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
|
|
|
15798
15816
|
path: a ? [...a, o] : [o]
|
|
15799
15817
|
});
|
|
15800
15818
|
}), n;
|
|
15801
|
-
},
|
|
15819
|
+
}, AC = (r, t, a) => {
|
|
15802
15820
|
const n = t == null ? void 0 : t[a];
|
|
15803
15821
|
if (!n)
|
|
15804
15822
|
return r;
|
|
@@ -15808,16 +15826,16 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
|
|
|
15808
15826
|
s && (typeof s == "string" && l.includes(s) || (i[o] = ""));
|
|
15809
15827
|
}), i;
|
|
15810
15828
|
};
|
|
15811
|
-
|
|
15812
|
-
autoRenewalPlanName:
|
|
15813
|
-
delinquencyPlanName:
|
|
15814
|
-
excessCreditPlanName:
|
|
15815
|
-
shortfallTolerancePlanName:
|
|
15829
|
+
X.object({
|
|
15830
|
+
autoRenewalPlanName: X.string().optional(),
|
|
15831
|
+
delinquencyPlanName: X.string().optional(),
|
|
15832
|
+
excessCreditPlanName: X.string().optional(),
|
|
15833
|
+
shortfallTolerancePlanName: X.string().optional(),
|
|
15816
15834
|
billingLevel: Gn.optional(),
|
|
15817
|
-
invoiceDocument:
|
|
15818
|
-
installmentPlanName:
|
|
15835
|
+
invoiceDocument: X.string().optional(),
|
|
15836
|
+
installmentPlanName: X.string().optional()
|
|
15819
15837
|
});
|
|
15820
|
-
function
|
|
15838
|
+
function _C(r) {
|
|
15821
15839
|
var n;
|
|
15822
15840
|
const t = { ...r.advanced };
|
|
15823
15841
|
delete t.installmentPlanName;
|
|
@@ -15838,7 +15856,7 @@ function AC(r) {
|
|
|
15838
15856
|
} : {}
|
|
15839
15857
|
}
|
|
15840
15858
|
};
|
|
15841
|
-
return
|
|
15859
|
+
return re(((n = r.account) == null ? void 0 : n.data) ?? {}, r.data).forEach((l) => {
|
|
15842
15860
|
switch (l.type) {
|
|
15843
15861
|
case "CHANGE":
|
|
15844
15862
|
case "CREATE":
|
|
@@ -15870,33 +15888,33 @@ function AC(r) {
|
|
|
15870
15888
|
}
|
|
15871
15889
|
export {
|
|
15872
15890
|
Tg as DataFieldTagFeature,
|
|
15873
|
-
|
|
15891
|
+
JS as compareData,
|
|
15874
15892
|
jg as dataModelToJSONSchema,
|
|
15875
15893
|
cl as extractElementByLocator,
|
|
15876
|
-
|
|
15877
|
-
|
|
15894
|
+
nC as extractElementDataModelFromQuote,
|
|
15895
|
+
iC as extractElementDataModelFromSegment,
|
|
15878
15896
|
ul as extractElementDataModelFromType,
|
|
15879
|
-
|
|
15880
|
-
|
|
15881
|
-
|
|
15882
|
-
|
|
15883
|
-
|
|
15897
|
+
oC as extractElementsFromQuote,
|
|
15898
|
+
lC as extractElementsFromTransactionSegment,
|
|
15899
|
+
sC as extractProductDataModel,
|
|
15900
|
+
cC as extractProductElements,
|
|
15901
|
+
_C as getAccountRequest,
|
|
15884
15902
|
Tt as getCoverageTermsDefaultValues,
|
|
15885
|
-
|
|
15886
|
-
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
|
-
|
|
15903
|
+
jC as getDefaultAccountFormValues,
|
|
15904
|
+
uC as getDefaultDraftTransactionValues,
|
|
15905
|
+
dC as getDefaultElementValues,
|
|
15906
|
+
pC as getDefaultInitializedTransactionValues,
|
|
15907
|
+
gC as getDefaultQuoteValues,
|
|
15890
15908
|
Ig as getElementNameByType,
|
|
15891
|
-
|
|
15892
|
-
|
|
15893
|
-
|
|
15894
|
-
|
|
15895
|
-
|
|
15896
|
-
|
|
15909
|
+
bC as getElementRequest,
|
|
15910
|
+
mC as getElementTransactionUpdateRequestFromFormData,
|
|
15911
|
+
TC as getEvaluatedConstraintsRequest,
|
|
15912
|
+
fC as getModifyChangeInstructionCreateRequestFromFormData,
|
|
15913
|
+
yC as getParamsChangeInstructionCreateRequestFromFormData,
|
|
15914
|
+
hC as getQuoteRequest,
|
|
15897
15915
|
na as getRemoveDataFieldValues,
|
|
15898
|
-
|
|
15916
|
+
AC as getUpdatedDataFromConstraints,
|
|
15899
15917
|
Bg as splitInputAndQuantifier,
|
|
15900
|
-
|
|
15918
|
+
vC as translateError
|
|
15901
15919
|
};
|
|
15902
15920
|
//# sourceMappingURL=index.es.js.map
|