@socotra/ec-react-utils 2.16.0-next.1 → 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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { z as ge } from "zod";
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(ee(t[1], 0, 9999), ee(t[2], 1, 12), 1);
418
- return a.day = ee(t[3], 0, a.calendar.getDaysInMonth(a)), a;
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 = ee(a[1], -9999, 9999), i = n < 1 ? "BC" : "AD", o = new vt(i, n < 1 ? -n + 1 : n, ee(a[2], 1, 12), 1, t, 0, a[4] ? ee(a[4], 0, 23) : 0, a[5] ? ee(a[5], 0, 59) : 0, a[6] ? ee(a[6], 0, 59) : 0, a[7] ? ee(a[7], 0, 1 / 0) * 1e3 : 0);
424
- o.day = ee(a[3], 0, o.calendar.getDaysInMonth(o));
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 = ee(a[8], -23, 23) * 36e5 + ee((l = a[9]) !== null && l !== void 0 ? l : "0", 0, 59) * 6e4), Ho(o, t);
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 ee(r, t, a) {
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 ne(r) {
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__ */ ne(Y);
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 ie = Mu;
672
- const en = /* @__PURE__ */ ne(ie);
673
- var Ru = Lt, qu = ie, Fu = "[object AsyncFunction]", Zu = "[object Function]", Uu = "[object GeneratorFunction]", Gu = "[object Proxy]";
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 = ie, ad = nl, nd = /[\\^$.*+?()[\]{}|]/g, id = /^\[object .+?Constructor\]$/, od = Function.prototype, ld = Object.prototype, sd = od.toString, cd = ld.hasOwnProperty, ud = RegExp(
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__ */ ne(sl);
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 de = (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 : !!(!de || a.some((ke) => de.includes(ke)));
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 de = !1, Ce = !1, Ve = !1, ke = !1;
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, de = !0, O = O == null ? void 0 : O.split("*")[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], de = !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, de && (st = !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, de && (st = !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}`), pe = f ? K(c, [
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 && pe && (D.options = pe), d && ut && (D.options = ut);
1020
+ g && z && (D.options = z), u && ge && (D.options = ge), d && ut && (D.options = ut);
1021
1021
  }
1022
- if (!de && !Ve && C.push(I), Ve) {
1022
+ if (!pe && !Ve && C.push(I), Ve) {
1023
1023
  const z = i == null ? void 0 : i[O];
1024
1024
  if (z) {
1025
- let pe = Ce ? [] : {};
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] && (pe = (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] && (pe = (bi = g == null ? void 0 : g.data) == null ? void 0 : bi[I]), s && (vi = s == null ? void 0 : s.data) != null && vi[I] && (pe = (Ti = s == null ? void 0 : s.data) == null ? void 0 : Ti[I]), Object.entries(ut.definitions ?? {}).forEach(
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: pe,
1056
+ default: ge,
1057
1057
  items: {
1058
1058
  $ref: `#/definitions/${O}`
1059
1059
  },
1060
1060
  ...Pe && { tag: Pe },
1061
- ...!de && { minItems: 1 }
1061
+ ...!pe && { minItems: 1 }
1062
1062
  }
1063
1063
  ] : [
1064
1064
  I,
1065
1065
  {
1066
1066
  title: z.displayName ?? I,
1067
- default: pe,
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
- ...!de && { minItems: 1 }
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((pe) => pe.split(".").includes("currency"))) == null ? void 0 : Si.split(".")) == null ? void 0 : Ci[1];
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
- }, aC = ({
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
- }, nC = ({
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
- }, iC = (r, t) => {
2500
+ }, oC = (r, t) => {
2501
2501
  const a = t.endsWith("Quote") ? t : `${t}Quote`;
2502
2502
  return r.filter((i) => i.type === a);
2503
- }, oC = (r, t) => {
2503
+ }, lC = (r, t) => {
2504
2504
  const a = t.endsWith("Policy") ? t : `${t}Policy`;
2505
2505
  return r.filter((i) => i.type === a);
2506
- }, lC = ({
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
- }, sC = ({
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
- }, cC = ({
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
- }, uC = (r, t, a) => {
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
- }, dC = ({
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 X extends Error {
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 X))
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
- X.create = (r) => new X(r);
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 X(r.common.issues);
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 se({
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 le.create(this);
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 se({
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 oe extends S {
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 oe({
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 oe({
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 oe({
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 oe({
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
- oe.create = (r) => {
3662
+ le.create = (r) => {
3663
3663
  var t;
3664
- return new oe({
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 le extends S {
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 le({
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 le({
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 le({
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
- le.create = (r, t) => new le({
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 le ? new le({
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 X(s.ctx.common.issues));
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 X(c));
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 se ? 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) : [];
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: oe.create(),
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 X([]), d = await s._def.args.parseAsync(c, o).catch((f) => {
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 X([n(c, u.error)]);
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 X([i(d, g.error)]);
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 se extends S {
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
- se.create = (r, t, a) => new se({
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
- se.createWithPreprocess = (r, t, a) => new se({
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 X(n.common.issues);
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 X(n.common.issues);
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 = oe.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 = le.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 = se.create, Bm = fe.create, Mm = Re.create, Rm = se.createWithPreprocess, qm = hr.create, Fm = () => bl().optional(), Zm = () => vl().optional(), Um = () => Tl().optional(), Gm = {
5519
- string: (r) => oe.create({ ...r, coerce: !0 }),
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: oe,
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: le,
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: se,
5582
- ZodTransformer: se,
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: X
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
- }), ce = e.object({
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(ce),
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(ce),
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(ce),
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(ce),
7199
- staticData: e.record(ce),
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: ce,
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(ce),
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(ce),
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(ce),
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(ce),
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(ce),
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
- }), ae = e.lazy(
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(ae),
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
- ), ue = e.object({
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: ue,
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(ae),
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(ae),
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: ue,
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
- }), J = e.object({
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: ae,
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: ue,
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(ae)
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(ae).optional()
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(ae)
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: ue.optional(),
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: ue.optional(),
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: ae,
8436
- preferences: ue.optional(),
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(ae)
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(ae)
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: ae,
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: ue,
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: ue,
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: ue,
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: ae,
8763
- preferences: ue.optional(),
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": J.optional(),
9288
- "policy.quote.staticdata.replace": J.optional(),
9289
- "policy.quote.create": J.optional(),
9290
- "policy.quote.reset": J.optional(),
9291
- "policy.quote.staticdata.update": J.optional(),
9292
- "policy.quote.refuse": J.optional(),
9293
- "policy.quote.staticdata.add": J.optional(),
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": J.optional(),
9297
- "policy.quote.price": J.optional(),
9298
- "policy.quote.validate": J.optional(),
9299
- "policy.quote.discard": J.optional(),
9300
- "policy.quote.accept": J.optional()
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(),
@@ -10054,35 +10054,46 @@ const Yy = e.object({
10054
10054
  assignmentRoles: e.record(Vy).optional(),
10055
10055
  qualifications: e.record(e.array(e.string())).optional()
10056
10056
  }), th = e.object({
10057
- // TODO: fully support propertyRefSchema
10058
- // ...propertyRefSchema.shape,
10059
- type: e.string(),
10060
- defaultValue: e.string().optional(),
10061
- min: e.number().or(e.coerce.number()).optional(),
10062
- max: e.number().or(e.coerce.number()).optional()
10063
- }), rh = e.object({
10064
10057
  generateAutoRenewals: e.boolean(),
10065
10058
  newTermDuration: e.number().optional(),
10066
10059
  renewalAcceptLeadDays: e.number().optional(),
10067
10060
  renewalCreateLeadDays: e.number().optional(),
10068
10061
  renewalIssueLeadDays: e.number().optional(),
10069
10062
  renewalTransactionType: e.string().optional()
10070
- }), ah = e.record(rh), nh = e.object({
10063
+ }), rh = e.record(th), ah = e.object({
10071
10064
  selectionStartTime: e.string().optional(),
10072
10065
  resourceNames: e.array(e.string()).optional()
10073
- }), ih = e.object({
10066
+ }), nh = e.object({
10074
10067
  staticName: e.string().optional()
10068
+ }), ih = e.object({
10069
+ resourceGroups: e.record(ah).optional(),
10070
+ resourceInstances: e.record(nh).optional()
10075
10071
  }), oh = e.object({
10076
- resourceGroups: e.record(nh).optional(),
10077
- resourceInstances: e.record(ih).optional()
10078
- }), lh = e.object({
10079
- resources: oh.optional()
10080
- }), sh = e.record(
10072
+ resources: ih.optional()
10073
+ }), lh = e.record(
10081
10074
  e.object({
10082
10075
  columns: e.record(e.object({ dataType: e.string() })).optional(),
10083
10076
  selectionTimeBasis: e.string().optional()
10084
10077
  })
10085
- ), ch = e.object({
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({
10086
10097
  displayName: e.string().optional(),
10087
10098
  value: e.number().optional(),
10088
10099
  tag: e.string().optional()
@@ -10090,7 +10101,7 @@ const Yy = e.object({
10090
10101
  type: e.string(),
10091
10102
  displayName: e.string().optional(),
10092
10103
  options: e.record(ch).optional(),
10093
- value: th.optional()
10104
+ value: sh.optional()
10094
10105
  }), dh = e.record(uh), ph = e.enum(["policy", "invoice"]), gh = e.enum([
10095
10106
  "draft",
10096
10107
  "validated",
@@ -10170,12 +10181,12 @@ e.object({
10170
10181
  products: jh,
10171
10182
  coverageTerms: dh.optional(),
10172
10183
  delinquencyPlans: fh,
10173
- autoRenewalPlans: ah,
10184
+ autoRenewalPlans: rh,
10174
10185
  transactionTypes: $h.optional(),
10175
10186
  reversalTypes: wh.optional(),
10176
10187
  dataAccessControl: e.any().optional(),
10177
- bootstrap: lh.optional(),
10178
- constraintTables: sh.optional(),
10188
+ bootstrap: oh.optional(),
10189
+ constraintTables: lh.optional(),
10179
10190
  payments: bh.optional(),
10180
10191
  documents: Qy.optional(),
10181
10192
  disbursements: Wy.optional(),
@@ -10263,7 +10274,7 @@ const Wi = e.object({
10263
10274
  type: e.string(),
10264
10275
  staticLocator: e.string().optional(),
10265
10276
  parentLocator: e.string().optional(),
10266
- coverageTerms: e.record(e.string()).optional(),
10277
+ coverageTerms: e.record(e.any()).optional(),
10267
10278
  data: e.record(e.any()).optional()
10268
10279
  });
10269
10280
  Wi.extend({
@@ -10358,7 +10369,7 @@ const Yt = e.string().ulid(), Ph = e.object({
10358
10369
  type: e.string(),
10359
10370
  data: e.record(e.any()).optional(),
10360
10371
  parentLocator: Yt.optional(),
10361
- coverageTerms: e.record(e.string()).optional(),
10372
+ coverageTerms: e.record(e.any()).optional(),
10362
10373
  originalEffectiveTime: e.string().optional()
10363
10374
  }), Zn = Ph.extend({
10364
10375
  elements: e.lazy(() => Zn.array().optional())
@@ -10387,7 +10398,7 @@ e.object({
10387
10398
  autoRenewalPlanName: e.string().optional(),
10388
10399
  billingLevel: kh.optional(),
10389
10400
  billingTrigger: Ch.optional(),
10390
- coverageTerms: e.record(e.string()).optional(),
10401
+ coverageTerms: e.record(e.any()).optional(),
10391
10402
  groupLocator: er.optional()
10392
10403
  });
10393
10404
  const Dh = e.enum([
@@ -10506,7 +10517,7 @@ const gs = Ol.merge(
10506
10517
  })
10507
10518
  ), ms = Dl.merge(
10508
10519
  e.object({ billingLevel: Mt })
10509
- ), Rt = ue.merge(
10520
+ ), Rt = de.merge(
10510
10521
  e.object({
10511
10522
  installmentPreferences: gs.optional(),
10512
10523
  billingPreferences: ms.optional()
@@ -10794,7 +10805,7 @@ e.object({
10794
10805
  action: e.literal("modify"),
10795
10806
  removeCoverageTerms: e.record(e.string(), e.any()).optional(),
10796
10807
  removeData: e.record(e.string(), e.any()).optional(),
10797
- setCoverageTerms: e.record(e.string(), e.string()).optional(),
10808
+ setCoverageTerms: e.record(e.string(), e.any()).optional(),
10798
10809
  setData: e.record(e.string(), e.any()).optional()
10799
10810
  });
10800
10811
  e.object({
@@ -10803,7 +10814,7 @@ e.object({
10803
10814
  locator: e.string(),
10804
10815
  removeCoverageTerms: e.record(e.string(), e.any()).optional(),
10805
10816
  removeData: e.record(e.string(), e.any()).optional(),
10806
- setCoverageTerms: e.record(e.string(), e.string()).optional(),
10817
+ setCoverageTerms: e.record(e.string(), e.any()).optional(),
10807
10818
  setData: e.record(e.string(), e.any()).optional()
10808
10819
  });
10809
10820
  e.object({
@@ -14049,7 +14060,7 @@ e.object({
14049
14060
  const Yv = e.object({
14050
14061
  locator: B,
14051
14062
  isDeleted: e.boolean()
14052
- }), re = e.union([
14063
+ }), ae = e.union([
14053
14064
  Ss,
14054
14065
  Yv
14055
14066
  ]), Se = e.object({
@@ -14271,9 +14282,9 @@ e.object({
14271
14282
  });
14272
14283
  const nT = e.object({
14273
14284
  ...ss.shape,
14274
- assignedTo: re.optional(),
14275
- createdBy: re.optional(),
14276
- updatedBy: re.optional()
14285
+ assignedTo: ae.optional(),
14286
+ createdBy: ae.optional(),
14287
+ updatedBy: ae.optional()
14277
14288
  });
14278
14289
  G(nT);
14279
14290
  e.object({
@@ -14289,10 +14300,10 @@ const iT = e.object({
14289
14300
  activityState: _a,
14290
14301
  underwritingFlagLocators: e.array(e.string()).optional(),
14291
14302
  deadlineTime: j.optional(),
14292
- assignedTo: re.optional(),
14293
- createdBy: re,
14303
+ assignedTo: ae.optional(),
14304
+ createdBy: ae,
14294
14305
  createdAt: j,
14295
- updatedBy: re.optional(),
14306
+ updatedBy: ae.optional(),
14296
14307
  updatedAt: j.optional()
14297
14308
  });
14298
14309
  G(iT);
@@ -14301,15 +14312,15 @@ const oT = e.object({
14301
14312
  referenceDetails: e.object({
14302
14313
  entityNumber: e.string()
14303
14314
  }).optional(),
14304
- assignedTo: re.optional(),
14305
- createdBy: re.optional(),
14306
- updatedBy: re.optional()
14315
+ assignedTo: ae.optional(),
14316
+ createdBy: ae.optional(),
14317
+ updatedBy: ae.optional()
14307
14318
  });
14308
14319
  G(oT);
14309
14320
  const lT = e.object({
14310
14321
  ...Xn.shape,
14311
- createdBy: re,
14312
- updatedBy: re.optional()
14322
+ createdBy: ae,
14323
+ updatedBy: ae.optional()
14313
14324
  });
14314
14325
  G(lT);
14315
14326
  e.record(
@@ -14329,7 +14340,7 @@ const Hs = e.object({
14329
14340
  G(Hs);
14330
14341
  const sT = e.object({
14331
14342
  ...Hs.shape,
14332
- user: re
14343
+ user: ae
14333
14344
  });
14334
14345
  G(sT);
14335
14346
  const cT = ({
@@ -14363,7 +14374,7 @@ const cT = ({
14363
14374
  endTime: d.toAbsoluteString(),
14364
14375
  expirationTime: u
14365
14376
  };
14366
- }, pC = (r, t, a) => {
14377
+ }, gC = (r, t, a) => {
14367
14378
  var o, l, s, c, u;
14368
14379
  let n;
14369
14380
  r.durationBasis ? n = r.durationBasis : t.defaultDurationBasis ? n = Xr.options.includes(
@@ -14384,17 +14395,17 @@ const cT = ({
14384
14395
  ...(l = r == null ? void 0 : r.element) == null ? void 0 : l.data
14385
14396
  },
14386
14397
  default: {
14387
- ...i
14388
- },
14389
- advanced: {
14398
+ ...i,
14390
14399
  currency: (r == null ? void 0 : r.currency) ?? t.defaultCurrency ?? a.defaultCurrency ?? void 0,
14391
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: {
14392
14404
  billingLevel: (r == null ? void 0 : r.billingLevel) ?? t.defaultBillingLevel ?? void 0,
14393
14405
  billingTrigger: (r == null ? void 0 : r.billingTrigger) ?? t.defaultBillingTrigger ?? void 0,
14394
14406
  durationBasis: (r == null ? void 0 : r.durationBasis) ?? t.defaultDurationBasis ?? (a == null ? void 0 : a.defaultDurationBasis) ?? void 0,
14395
14407
  delinquencyPlanName: (r == null ? void 0 : r.delinquencyPlanName) ?? (t == null ? void 0 : t.defaultDelinquencyPlan) ?? (a == null ? void 0 : a.defaultDelinquencyPlan) ?? void 0,
14396
- autoRenewalPlanName: (r == null ? void 0 : r.autoRenewalPlanName) ?? (t == null ? void 0 : t.defaultAutoRenewalPlan) ?? (a == null ? void 0 : a.defaultAutoRenewalPlan) ?? void 0,
14397
- 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
14398
14409
  },
14399
14410
  coverageTerms: Tt({
14400
14411
  coverageTermDataModel: a.coverageTerms,
@@ -14428,7 +14439,7 @@ function TT(r, t) {
14428
14439
  var a = typeof r;
14429
14440
  return t = t ?? bT, !!t && (a == "number" || a != "symbol" && vT.test(r)) && r > -1 && r % 1 == 0 && r < t;
14430
14441
  }
14431
- var ka = TT, jT = ei, AT = Pt, _T = ka, ao = ie, wT = Dt;
14442
+ var ka = TT, jT = ei, AT = Pt, _T = ka, ao = oe, wT = Dt;
14432
14443
  function xT(r, t, a, n) {
14433
14444
  if (!ao(r))
14434
14445
  return r;
@@ -14576,14 +14587,14 @@ function Bj(r) {
14576
14587
  var ac = Bj, Mj = aj, Rj = ac, qj = Rj(function(r, t) {
14577
14588
  return r == null ? {} : Mj(r, t);
14578
14589
  }), Fj = qj;
14579
- const Jr = /* @__PURE__ */ ne(Fj);
14590
+ const Jr = /* @__PURE__ */ ie(Fj);
14580
14591
  var Zj = Ys;
14581
14592
  function Uj(r, t, a) {
14582
14593
  return r == null ? r : Zj(r, t, a);
14583
14594
  }
14584
14595
  var Gj = Uj;
14585
- const k = /* @__PURE__ */ ne(Gj), Kj = { Date: !0, RegExp: !0, String: !0, Number: !0 };
14586
- function te(r, t, a = { cyclesFix: !0 }, n = []) {
14596
+ const k = /* @__PURE__ */ ie(Gj), Kj = { Date: !0, RegExp: !0, String: !0, Number: !0 };
14597
+ function re(r, t, a = { cyclesFix: !0 }, n = []) {
14587
14598
  var s, c;
14588
14599
  let i = [];
14589
14600
  const o = Array.isArray(r);
@@ -14598,7 +14609,7 @@ function te(r, t, a = { cyclesFix: !0 }, n = []) {
14598
14609
  continue;
14599
14610
  }
14600
14611
  const f = t[u], h = typeof d == "object" && typeof f == "object" && Array.isArray(d) === Array.isArray(f);
14601
- 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, te(d, f, a, a.cyclesFix ? n.concat([d]) : []).map((y) => (y.path.unshift(g), y))) : d !== f && // treat NaN values as equivalent
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
14602
14613
  !(Number.isNaN(d) && Number.isNaN(f)) && !(h && (isNaN(d) ? d + "" == f + "" : +d == +f)) && i.push({
14603
14614
  path: [g],
14604
14615
  type: "CHANGE",
@@ -14615,7 +14626,7 @@ function te(r, t, a = { cyclesFix: !0 }, n = []) {
14615
14626
  });
14616
14627
  return i;
14617
14628
  }
14618
- const gC = (r) => {
14629
+ const mC = (r) => {
14619
14630
  const {
14620
14631
  data: t,
14621
14632
  default: a,
@@ -14630,7 +14641,7 @@ const gC = (r) => {
14630
14641
  setCoverageTerms: {},
14631
14642
  removeCoverageTerms: {}
14632
14643
  };
14633
- te((o == null ? void 0 : o.data) ?? {}, t).forEach((y) => {
14644
+ re((o == null ? void 0 : o.data) ?? {}, t).forEach((y) => {
14634
14645
  switch (y.type) {
14635
14646
  case "CHANGE":
14636
14647
  case "CREATE":
@@ -14648,7 +14659,7 @@ const gC = (r) => {
14648
14659
  k(s.removeData ?? {}, y.path, !0);
14649
14660
  break;
14650
14661
  }
14651
- }), te(
14662
+ }), re(
14652
14663
  o.coverageTerms ?? {},
14653
14664
  i ?? {}
14654
14665
  ).forEach((y) => {
@@ -14674,7 +14685,7 @@ const gC = (r) => {
14674
14685
  "installmentPlan",
14675
14686
  "durationBasis",
14676
14687
  "delinquencyPlanName"
14677
- ]), f = te(d ?? {}, a ?? {}), h = te(g ?? {}, n ?? {});
14688
+ ]), f = re(d ?? {}, a ?? {}), h = re(g ?? {}, n ?? {});
14678
14689
  return f.forEach((y) => {
14679
14690
  switch (y.type) {
14680
14691
  case "CHANGE":
@@ -14846,7 +14857,7 @@ function k_(r) {
14846
14857
  t.push(a);
14847
14858
  return t;
14848
14859
  }
14849
- var P_ = k_, D_ = ie, O_ = Da, N_ = P_, I_ = Object.prototype, B_ = I_.hasOwnProperty;
14860
+ var P_ = k_, D_ = oe, O_ = Da, N_ = P_, I_ = Object.prototype, B_ = I_.hasOwnProperty;
14850
14861
  function M_(r) {
14851
14862
  if (!D_(r))
14852
14863
  return N_(r);
@@ -15004,7 +15015,7 @@ function Rx(r, t, a) {
15004
15015
  return bx(r);
15005
15016
  }
15006
15017
  }
15007
- var qx = Rx, Fx = ie, Ao = Object.create, Zx = /* @__PURE__ */ function() {
15018
+ var qx = Rx, Fx = oe, Ao = Object.create, Zx = /* @__PURE__ */ function() {
15008
15019
  function r() {
15009
15020
  }
15010
15021
  return function(t) {
@@ -15028,7 +15039,7 @@ var Qx = Yx, Xx = Qx, Jx = ni, _o = ii, wo = _o && _o.isMap, eE = wo ? Jx(wo) :
15028
15039
  function iE(r) {
15029
15040
  return aE(r) && rE(r) == nE;
15030
15041
  }
15031
- 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 = ie, 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 = {};
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 = {};
15032
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;
15033
15044
  q[RE] = q[jc] = q[VE] = !1;
15034
15045
  function qr(r, t, a, n, i, o) {
@@ -15115,7 +15126,7 @@ var k$ = C$, P$ = ol, D$ = i$, O$ = v$, N$ = Pt, I$ = Ft, B$ = k$, M$ = ac, R$ =
15115
15126
  O$(a, t[i]);
15116
15127
  return a;
15117
15128
  }), G$ = U$;
15118
- const K$ = /* @__PURE__ */ ne(G$);
15129
+ const K$ = /* @__PURE__ */ ie(G$);
15119
15130
  function z$(r, t) {
15120
15131
  for (var a = -1, n = r == null ? 0 : r.length; ++a < n; )
15121
15132
  if (!t(r[a], a, r))
@@ -15350,7 +15361,7 @@ function hL(r, t, a, n) {
15350
15361
  }
15351
15362
  return !0;
15352
15363
  }
15353
- var bL = hL, vL = ie;
15364
+ var bL = hL, vL = oe;
15354
15365
  function TL(r) {
15355
15366
  return r === r && !vL(r);
15356
15367
  }
@@ -15402,7 +15413,7 @@ var XL = QL, JL = CL, e0 = FL, t0 = ai, r0 = Y, a0 = XL;
15402
15413
  function n0(r) {
15403
15414
  return typeof r == "function" ? r : r == null ? t0 : typeof r == "object" ? r0(r) ? e0(r[0], r[1]) : JL(r) : a0(r);
15404
15415
  }
15405
- var kc = n0, i0 = yr, o0 = Ut, l0 = ka, s0 = ie;
15416
+ var kc = n0, i0 = yr, o0 = Ut, l0 = ka, s0 = oe;
15406
15417
  function c0(r, t, a) {
15407
15418
  if (!s0(a))
15408
15419
  return !1;
@@ -15415,7 +15426,7 @@ function f0(r, t, a) {
15415
15426
  return a && m0(r, t, a) && (t = void 0), n(r, p0(t));
15416
15427
  }
15417
15428
  var y0 = f0;
15418
- const h0 = /* @__PURE__ */ ne(y0);
15429
+ const h0 = /* @__PURE__ */ ie(y0);
15419
15430
  var b0 = Object.prototype, v0 = b0.hasOwnProperty;
15420
15431
  function T0(r, t) {
15421
15432
  return r != null && v0.call(r, t);
@@ -15425,7 +15436,7 @@ function w0(r, t) {
15425
15436
  return r != null && _0(r, t, A0);
15426
15437
  }
15427
15438
  var x0 = w0;
15428
- const E0 = /* @__PURE__ */ ne(x0);
15439
+ const E0 = /* @__PURE__ */ ie(x0);
15429
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;
15430
15441
  function R0(r) {
15431
15442
  if (r == null)
@@ -15443,8 +15454,8 @@ function R0(r) {
15443
15454
  return !0;
15444
15455
  }
15445
15456
  var q0 = R0;
15446
- const Mo = /* @__PURE__ */ ne(q0);
15447
- var F0 = nc, Z0 = bc, U0 = Ec, G0 = kc, K0 = Oa, z0 = Y, V0 = Zt, H0 = oa, W0 = ie, Y0 = _r;
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;
15448
15459
  function Q0(r, t, a) {
15449
15460
  var n = z0(r), i = n || V0(r) || Y0(r);
15450
15461
  if (t = G0(t), a == null) {
@@ -15456,7 +15467,7 @@ function Q0(r, t, a) {
15456
15467
  }), a;
15457
15468
  }
15458
15469
  var X0 = Q0;
15459
- const J0 = /* @__PURE__ */ ne(X0);
15470
+ const J0 = /* @__PURE__ */ ie(X0);
15460
15471
  function na(r, t) {
15461
15472
  return J0(r, (a, n, i) => {
15462
15473
  if (!E0(t, i))
@@ -15472,7 +15483,7 @@ function na(r, t) {
15472
15483
  }
15473
15484
  });
15474
15485
  }
15475
- const mC = ({
15486
+ const fC = ({
15476
15487
  data: r,
15477
15488
  transactionSnapshot: t,
15478
15489
  staticLocator: a
@@ -15487,7 +15498,7 @@ const mC = ({
15487
15498
  );
15488
15499
  const o = t.segment.element.data ?? {}, l = K$(i, ["coverageTerms", "default"]);
15489
15500
  return n.setData = l, n.removeData = na(o, l), n;
15490
- }, fC = ({
15501
+ }, yC = ({
15491
15502
  data: r,
15492
15503
  timezone: t
15493
15504
  }) => {
@@ -15498,18 +15509,24 @@ const mC = ({
15498
15509
  return r.default.newPolicyEndDate && (a.newPolicyEndTime = Ja(
15499
15510
  r.default.newPolicyEndDate
15500
15511
  ).toDate(t).toISOString()), a;
15501
- }, eS = ge.enum([
15502
- "currency",
15512
+ }, eS = X.enum([
15513
+ "startTime",
15514
+ "endTime",
15515
+ "expirationTime",
15516
+ "installmentPlanName",
15503
15517
  "timezone",
15518
+ "currency"
15519
+ ]);
15520
+ X.record(eS, X.string().optional());
15521
+ const tS = X.enum([
15504
15522
  "billingLevel",
15505
15523
  "billingTrigger",
15506
15524
  "durationBasis",
15507
15525
  "delinquencyPlanName",
15508
- "autoRenewalPlanName",
15509
- "installmentPlanName"
15526
+ "autoRenewalPlanName"
15510
15527
  ]);
15511
- ge.record(eS, ge.string().optional());
15512
- const yC = (r) => {
15528
+ X.record(tS, X.string().optional());
15529
+ const hC = (r) => {
15513
15530
  var h, y;
15514
15531
  const {
15515
15532
  data: t,
@@ -15523,7 +15540,7 @@ const yC = (r) => {
15523
15540
  setCoverageTerms: {},
15524
15541
  removeCoverageTerms: {}
15525
15542
  };
15526
- te(((h = o.element) == null ? void 0 : h.data) ?? {}, t).forEach((b) => {
15543
+ re(((h = o.element) == null ? void 0 : h.data) ?? {}, t).forEach((b) => {
15527
15544
  switch (b.type) {
15528
15545
  case "CHANGE":
15529
15546
  case "CREATE":
@@ -15541,7 +15558,7 @@ const yC = (r) => {
15541
15558
  k(l.removeData ?? {}, b.path, !0);
15542
15559
  break;
15543
15560
  }
15544
- }), te(
15561
+ }), re(
15545
15562
  ((y = o.element) == null ? void 0 : y.coverageTerms) ?? {},
15546
15563
  i ?? {}
15547
15564
  ).forEach((b) => {
@@ -15558,23 +15575,27 @@ const yC = (r) => {
15558
15575
  const u = Jr(o, [
15559
15576
  "startTime",
15560
15577
  "endTime",
15561
- "expirationTime"
15562
- ]), d = Jr(o, [
15563
- "currency",
15578
+ "expirationTime",
15579
+ "installmentPlanName",
15564
15580
  "timezone",
15581
+ "currency"
15582
+ ]), d = Jr(o, [
15565
15583
  "billingPlan",
15566
15584
  "defaultTermDuration",
15567
15585
  "installmentPlan",
15568
15586
  "durationBasis",
15569
15587
  "delinquencyPlanName",
15570
- "autoRenewalPlanName",
15571
- "installmentPlanName"
15572
- ]), g = te(u ?? {}, a ?? {}), f = te(d ?? {}, n ?? {});
15588
+ "autoRenewalPlanName"
15589
+ ]), g = re(u ?? {}, a ?? {}), f = re(d ?? {}, n ?? {});
15573
15590
  return g.forEach((b) => {
15574
15591
  switch (b.type) {
15575
15592
  case "CHANGE":
15576
15593
  case "CREATE":
15577
- k(l, b.path, b.value);
15594
+ b.path.includes("installmentPlanName") ? k(
15595
+ l,
15596
+ ["preferences", "installmentPreferences", ...b.path],
15597
+ b.value
15598
+ ) : k(l, b.path, b.value);
15578
15599
  break;
15579
15600
  case "REMOVE":
15580
15601
  k(l, b.path, null);
@@ -15584,18 +15605,14 @@ const yC = (r) => {
15584
15605
  switch (b.type) {
15585
15606
  case "CHANGE":
15586
15607
  case "CREATE":
15587
- b.path.includes("installmentPlanName") ? k(
15588
- l,
15589
- ["preferences", "installmentPreferences", ...b.path],
15590
- b.value
15591
- ) : k(l, b.path, b.value);
15608
+ k(l, b.path, b.value);
15592
15609
  break;
15593
15610
  case "REMOVE":
15594
15611
  k(l, b.path, null);
15595
15612
  break;
15596
15613
  }
15597
15614
  }), l;
15598
- }, hC = (r) => {
15615
+ }, bC = (r) => {
15599
15616
  var i, o;
15600
15617
  const t = {
15601
15618
  locator: r.element.locator,
@@ -15604,7 +15621,7 @@ const yC = (r) => {
15604
15621
  setCoverageTerms: {},
15605
15622
  removeCoverageTerms: {}
15606
15623
  };
15607
- return te(((i = r.element) == null ? void 0 : i.data) ?? {}, r.data).forEach((l) => {
15624
+ return re(((i = r.element) == null ? void 0 : i.data) ?? {}, r.data).forEach((l) => {
15608
15625
  switch (l.type) {
15609
15626
  case "CHANGE":
15610
15627
  case "CREATE":
@@ -15622,7 +15639,7 @@ const yC = (r) => {
15622
15639
  k(t.removeData ?? {}, l.path, !0);
15623
15640
  break;
15624
15641
  }
15625
- }), te(
15642
+ }), re(
15626
15643
  ((o = r.element) == null ? void 0 : o.coverageTerms) ?? {},
15627
15644
  r.coverageTerms ?? {}
15628
15645
  ).forEach((l) => {
@@ -15637,10 +15654,10 @@ const yC = (r) => {
15637
15654
  }
15638
15655
  }), t;
15639
15656
  };
15640
- function bC(r) {
15657
+ function vC(r) {
15641
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";
15642
15659
  }
15643
- const vC = ({
15660
+ const TC = ({
15644
15661
  dependencyMap: r,
15645
15662
  locator: t,
15646
15663
  data: a
@@ -15661,25 +15678,25 @@ const vC = ({
15661
15678
  };
15662
15679
  }), n;
15663
15680
  };
15664
- var tS = Jn, rS = yr;
15665
- function aS(r, t, a) {
15666
- (a !== void 0 && !rS(r[t], a) || a === void 0 && !(t in r)) && tS(r, t, a);
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);
15667
15684
  }
15668
- var Dc = aS, nS = Ut, iS = Le;
15669
- function oS(r) {
15670
- return iS(r) && nS(r);
15685
+ var Dc = nS, iS = Ut, oS = Le;
15686
+ function lS(r) {
15687
+ return oS(r) && iS(r);
15671
15688
  }
15672
- var lS = oS;
15673
- function sS(r, t) {
15689
+ var sS = lS;
15690
+ function cS(r, t) {
15674
15691
  if (!(t === "constructor" && typeof r[t] == "function") && t != "__proto__")
15675
15692
  return r[t];
15676
15693
  }
15677
- var Oc = sS, cS = Ft, uS = xr;
15678
- function dS(r) {
15679
- return cS(r, uS(r));
15694
+ var Oc = cS, uS = Ft, dS = xr;
15695
+ function pS(r) {
15696
+ return uS(r, dS(r));
15680
15697
  }
15681
- var pS = dS, Ro = Dc, gS = sc, mS = hc, fS = cc, yS = vc, qo = Ar, Fo = Y, hS = lS, bS = Zt, vS = oa, TS = ie, jS = wc, AS = _r, Zo = Oc, _S = pS;
15682
- function wS(r, t, a, n, i, o, l) {
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) {
15683
15700
  var s = Zo(r, a), c = Zo(t, a), u = l.get(c);
15684
15701
  if (u) {
15685
15702
  Ro(r, a, u);
@@ -15687,47 +15704,47 @@ function wS(r, t, a, n, i, o, l) {
15687
15704
  }
15688
15705
  var d = o ? o(s, c, a + "", r, t, l) : void 0, g = d === void 0;
15689
15706
  if (g) {
15690
- var f = Fo(c), h = !f && bS(c), y = !f && !h && AS(c);
15691
- d = c, f || h || y ? Fo(s) ? d = s : hS(s) ? d = fS(s) : h ? (g = !1, d = gS(c, !0)) : y ? (g = !1, d = mS(c, !0)) : d = [] : jS(c) || qo(c) ? (d = s, qo(s) ? d = _S(s) : (!TS(s) || vS(s)) && (d = yS(c))) : g = !1;
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;
15692
15709
  }
15693
15710
  g && (l.set(c, d), i(d, c, n, o, l), l.delete(c)), Ro(r, a, d);
15694
15711
  }
15695
- var xS = wS, ES = Pa, $S = Dc, LS = xc, SS = xS, CS = ie, kS = xr, PS = Oc;
15712
+ var ES = xS, $S = Pa, LS = Dc, SS = xc, CS = ES, kS = oe, PS = xr, DS = Oc;
15696
15713
  function Nc(r, t, a, n, i) {
15697
- r !== t && LS(t, function(o, l) {
15698
- if (i || (i = new ES()), CS(o))
15699
- SS(r, t, l, a, Nc, n, i);
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);
15700
15717
  else {
15701
- var s = n ? n(PS(r, l), o, l + "", r, t, i) : void 0;
15702
- s === void 0 && (s = o), $S(r, l, s);
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);
15703
15720
  }
15704
- }, kS);
15721
+ }, PS);
15705
15722
  }
15706
- var DS = Nc, OS = ai, NS = tc, IS = rc;
15707
- function BS(r, t) {
15708
- return IS(NS(r, t, OS), r + "");
15723
+ var OS = Nc, NS = ai, IS = tc, BS = rc;
15724
+ function MS(r, t) {
15725
+ return BS(IS(r, t, NS), r + "");
15709
15726
  }
15710
- var MS = BS, RS = MS, qS = Pc;
15711
- function FS(r) {
15712
- return RS(function(t, a) {
15727
+ var RS = MS, qS = RS, FS = Pc;
15728
+ function ZS(r) {
15729
+ return qS(function(t, a) {
15713
15730
  var n = -1, i = a.length, o = i > 1 ? a[i - 1] : void 0, l = i > 2 ? a[2] : void 0;
15714
- for (o = r.length > 3 && typeof o == "function" ? (i--, o) : void 0, l && qS(a[0], a[1], l) && (o = i < 3 ? void 0 : o, i = 1), t = Object(t); ++n < i; ) {
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; ) {
15715
15732
  var s = a[n];
15716
15733
  s && r(t, s, n, o);
15717
15734
  }
15718
15735
  return t;
15719
15736
  });
15720
15737
  }
15721
- var ZS = FS, US = DS, GS = ZS, KS = GS(function(r, t, a) {
15722
- US(r, t, a);
15723
- }), zS = KS;
15724
- const VS = /* @__PURE__ */ ne(zS), TC = ({
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 = ({
15725
15742
  defaultValues: r,
15726
15743
  accountType: t,
15727
15744
  account: a
15728
15745
  }) => {
15729
15746
  var i, o;
15730
- const n = VS(
15747
+ const n = HS(
15731
15748
  r ?? {},
15732
15749
  a ?? {}
15733
15750
  );
@@ -15746,12 +15763,12 @@ const VS = /* @__PURE__ */ ne(zS), TC = ({
15746
15763
  saveAsDraft: !((r == null ? void 0 : r.autoValidate) ?? !0)
15747
15764
  };
15748
15765
  };
15749
- var HS = si;
15750
- function WS(r, t) {
15751
- return HS(r, t);
15766
+ var WS = si;
15767
+ function YS(r, t) {
15768
+ return WS(r, t);
15752
15769
  }
15753
- var YS = WS;
15754
- const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
15770
+ var QS = YS;
15771
+ const XS = /* @__PURE__ */ ie(QS), JS = (r, t, a) => {
15755
15772
  const n = [];
15756
15773
  if (Object.keys(r).length === 0 && Object.keys(t).length === 0)
15757
15774
  return n;
@@ -15764,7 +15781,7 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
15764
15781
  const l = r[o], s = t[o];
15765
15782
  if (Array.isArray(l) && Array.isArray(s))
15766
15783
  for (let c = 0; c < s.length; c++) {
15767
- const u = l[c] ?? {}, d = s[c] ?? {}, g = XS(
15784
+ const u = l[c] ?? {}, d = s[c] ?? {}, g = JS(
15768
15785
  u,
15769
15786
  d,
15770
15787
  a ? [...a, o, `${c}`] : [o, `${c}`]
@@ -15772,7 +15789,7 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
15772
15789
  g.length !== 0 && n.push(...g);
15773
15790
  }
15774
15791
  else if (en(r[o]) && en(t[o])) {
15775
- if (QS(r[o], t[o])) continue;
15792
+ if (XS(r[o], t[o])) continue;
15776
15793
  n.push({
15777
15794
  originalValue: r[o],
15778
15795
  newValue: t[o],
@@ -15799,7 +15816,7 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
15799
15816
  path: a ? [...a, o] : [o]
15800
15817
  });
15801
15818
  }), n;
15802
- }, jC = (r, t, a) => {
15819
+ }, AC = (r, t, a) => {
15803
15820
  const n = t == null ? void 0 : t[a];
15804
15821
  if (!n)
15805
15822
  return r;
@@ -15809,16 +15826,16 @@ const QS = /* @__PURE__ */ ne(YS), XS = (r, t, a) => {
15809
15826
  s && (typeof s == "string" && l.includes(s) || (i[o] = ""));
15810
15827
  }), i;
15811
15828
  };
15812
- ge.object({
15813
- autoRenewalPlanName: ge.string().optional(),
15814
- delinquencyPlanName: ge.string().optional(),
15815
- excessCreditPlanName: ge.string().optional(),
15816
- shortfallTolerancePlanName: ge.string().optional(),
15829
+ X.object({
15830
+ autoRenewalPlanName: X.string().optional(),
15831
+ delinquencyPlanName: X.string().optional(),
15832
+ excessCreditPlanName: X.string().optional(),
15833
+ shortfallTolerancePlanName: X.string().optional(),
15817
15834
  billingLevel: Gn.optional(),
15818
- invoiceDocument: ge.string().optional(),
15819
- installmentPlanName: ge.string().optional()
15835
+ invoiceDocument: X.string().optional(),
15836
+ installmentPlanName: X.string().optional()
15820
15837
  });
15821
- function AC(r) {
15838
+ function _C(r) {
15822
15839
  var n;
15823
15840
  const t = { ...r.advanced };
15824
15841
  delete t.installmentPlanName;
@@ -15839,7 +15856,7 @@ function AC(r) {
15839
15856
  } : {}
15840
15857
  }
15841
15858
  };
15842
- return te(((n = r.account) == null ? void 0 : n.data) ?? {}, r.data).forEach((l) => {
15859
+ return re(((n = r.account) == null ? void 0 : n.data) ?? {}, r.data).forEach((l) => {
15843
15860
  switch (l.type) {
15844
15861
  case "CHANGE":
15845
15862
  case "CREATE":
@@ -15871,33 +15888,33 @@ function AC(r) {
15871
15888
  }
15872
15889
  export {
15873
15890
  Tg as DataFieldTagFeature,
15874
- XS as compareData,
15891
+ JS as compareData,
15875
15892
  jg as dataModelToJSONSchema,
15876
15893
  cl as extractElementByLocator,
15877
- aC as extractElementDataModelFromQuote,
15878
- nC as extractElementDataModelFromSegment,
15894
+ nC as extractElementDataModelFromQuote,
15895
+ iC as extractElementDataModelFromSegment,
15879
15896
  ul as extractElementDataModelFromType,
15880
- iC as extractElementsFromQuote,
15881
- oC as extractElementsFromTransactionSegment,
15882
- lC as extractProductDataModel,
15883
- sC as extractProductElements,
15884
- AC as getAccountRequest,
15897
+ oC as extractElementsFromQuote,
15898
+ lC as extractElementsFromTransactionSegment,
15899
+ sC as extractProductDataModel,
15900
+ cC as extractProductElements,
15901
+ _C as getAccountRequest,
15885
15902
  Tt as getCoverageTermsDefaultValues,
15886
- TC as getDefaultAccountFormValues,
15887
- cC as getDefaultDraftTransactionValues,
15888
- uC as getDefaultElementValues,
15889
- dC as getDefaultInitializedTransactionValues,
15890
- pC as getDefaultQuoteValues,
15903
+ jC as getDefaultAccountFormValues,
15904
+ uC as getDefaultDraftTransactionValues,
15905
+ dC as getDefaultElementValues,
15906
+ pC as getDefaultInitializedTransactionValues,
15907
+ gC as getDefaultQuoteValues,
15891
15908
  Ig as getElementNameByType,
15892
- hC as getElementRequest,
15893
- gC as getElementTransactionUpdateRequestFromFormData,
15894
- vC as getEvaluatedConstraintsRequest,
15895
- mC as getModifyChangeInstructionCreateRequestFromFormData,
15896
- fC as getParamsChangeInstructionCreateRequestFromFormData,
15897
- yC as getQuoteRequest,
15909
+ bC as getElementRequest,
15910
+ mC as getElementTransactionUpdateRequestFromFormData,
15911
+ TC as getEvaluatedConstraintsRequest,
15912
+ fC as getModifyChangeInstructionCreateRequestFromFormData,
15913
+ yC as getParamsChangeInstructionCreateRequestFromFormData,
15914
+ hC as getQuoteRequest,
15898
15915
  na as getRemoveDataFieldValues,
15899
- jC as getUpdatedDataFromConstraints,
15916
+ AC as getUpdatedDataFromConstraints,
15900
15917
  Bg as splitInputAndQuantifier,
15901
- bC as translateError
15918
+ vC as translateError
15902
15919
  };
15903
15920
  //# sourceMappingURL=index.es.js.map