@wix/form-elements 1.169.0 → 1.170.0

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.
Files changed (109) hide show
  1. package/dist/component/{appointment-rac-BbXyKTd7.js → appointment-rac-DZ0SFXmL.js} +83 -83
  2. package/dist/component/{bookings-address-rac-VJkR_U9L.js → bookings-address-rac-BW9grc77.js} +1 -1
  3. package/dist/component/{bookings-email-rac-_EupwXpQ.js → bookings-email-rac-D8gMaAfB.js} +1 -1
  4. package/dist/component/{bookings-first-name-rac-DTZixHYj.js → bookings-first-name-rac-CAjcs7b6.js} +1 -1
  5. package/dist/component/{bookings-header-rac-BKbKTv5g.js → bookings-header-rac-BhKZ1kku.js} +1 -1
  6. package/dist/component/{bookings-last-name-rac-BDy860-C.js → bookings-last-name-rac-DpsMDuU0.js} +1 -1
  7. package/dist/component/{bookings-login-bar-rac-DgNP-YNZ.js → bookings-login-bar-rac-BVdWmKS8.js} +3 -3
  8. package/dist/component/{bookings-phone-rac-B_I6n96b.js → bookings-phone-rac-DsqNi2mI.js} +1 -1
  9. package/dist/component/{bookings-rich-text-rac-prYPbIiz.js → bookings-rich-text-rac-elM4Ne3f.js} +1 -1
  10. package/dist/component/{checkbox-field-rac-C-4PXuxG.js → checkbox-field-rac-BU4E73fD.js} +43 -43
  11. package/dist/component/{checkbox-group-field-headless-D16bAcaq.js → checkbox-group-field-headless-6yJdIbP2.js} +41 -41
  12. package/dist/component/{checkbox-group-field-rac-GUQ5dO_s.js → checkbox-group-field-rac-CojbCWSF.js} +4 -4
  13. package/dist/component/{checkbox-group-rac-Bl6xL5-H.js → checkbox-group-rac-3qUVUc-C.js} +1 -1
  14. package/dist/component/{checkbox-rac-Blg0KVyP.js → checkbox-rac-DwbTapd_.js} +1 -1
  15. package/dist/component/{contacts-address-rac-BfOhCAj8.js → contacts-address-rac-BL7XDZuP.js} +1 -1
  16. package/dist/component/{contacts-birthdate-rac-DYBvDh62.js → contacts-birthdate-rac-DeJYIHAg.js} +1 -1
  17. package/dist/component/{contacts-company-rac-DIJr7zjA.js → contacts-company-rac-BeImf5uc.js} +1 -1
  18. package/dist/component/{contacts-email-rac-DjmqELhC.js → contacts-email-rac-CtacwrZ0.js} +1 -1
  19. package/dist/component/{contacts-first-name-rac-DGNll7gw.js → contacts-first-name-rac-CAdOqOOA.js} +1 -1
  20. package/dist/component/{contacts-last-name-rac-BJ8AZYQN.js → contacts-last-name-rac-Db9mHzCW.js} +1 -1
  21. package/dist/component/{contacts-phone-rac-BC-QtpEN.js → contacts-phone-rac-W0OLEbzL.js} +1 -1
  22. package/dist/component/{contacts-position-rac-BQia__74.js → contacts-position-rac-CV4Ibt4Z.js} +1 -1
  23. package/dist/component/{contacts-subscribe-rac-CTFptz01.js → contacts-subscribe-rac-CQ3Q1pjZ.js} +1 -1
  24. package/dist/component/{contacts-tax-id-rac-Cy72Jouc.js → contacts-tax-id-rac-Dux-pk6r.js} +1 -1
  25. package/dist/component/{date-availability-BC6updcS.js → date-availability-RkX-Qw7G.js} +1 -1
  26. package/dist/component/date-input-field-rac-CYCT6qoa.js +309 -0
  27. package/dist/component/{date-input-rac-KkRyWRP_.js → date-input-rac-BkYZ7q_o.js} +1 -1
  28. package/dist/component/{date-picker-field-rac-BLWVJbTJ.js → date-picker-field-rac-eMidYtsl.js} +31 -31
  29. package/dist/component/{date-picker-rac-DKCQza7v.js → date-picker-rac-D23rxZcF.js} +1 -1
  30. package/dist/component/{date-time-input-field-rac-CZxZW6fz.js → date-time-input-field-rac-BjIj4dXQ.js} +111 -111
  31. package/dist/component/{date-time-input-rac-DQ-iBwmr.js → date-time-input-rac-BSGAdk9L.js} +1 -1
  32. package/dist/component/{dext-checkbox-group-rac-kp1Jbwt-.js → dext-checkbox-group-rac-Xmb5IKrb.js} +2 -2
  33. package/dist/component/{dext-checkbox-rac-CBm9cRUz.js → dext-checkbox-rac-2eA7y0ld.js} +1 -1
  34. package/dist/component/{dext-date-picker-rac-DsVKWsRy.js → dext-date-picker-rac-CmLxVGGT.js} +1 -1
  35. package/dist/component/{dext-date-time-input-rac-CO26-8Qo.js → dext-date-time-input-rac-Cd9nwSjb.js} +1 -1
  36. package/dist/component/{dext-dropdown-rac-eRzu2C-y.js → dext-dropdown-rac-BKdQ0nGS.js} +1 -1
  37. package/dist/component/{dext-email-rac-DDrZzE_G.js → dext-email-rac-07zDPxyf.js} +1 -1
  38. package/dist/component/{dext-number-input-rac-Dj7sInLk.js → dext-number-input-rac-DRvGuppY.js} +1 -1
  39. package/dist/component/{dext-phone-rac-g8M77F7m.js → dext-phone-rac-CKtTVjFg.js} +1 -1
  40. package/dist/component/{dext-radio-group-rac-BjhygC0R.js → dext-radio-group-rac-BsBmMufq.js} +2 -2
  41. package/dist/component/{dext-rating-input-rac-BraNjvyA.js → dext-rating-input-rac-CcFSTAIh.js} +1 -1
  42. package/dist/component/{dext-tags-rac-B5mAIuDi.js → dext-tags-rac-CCTDlCvX.js} +2 -2
  43. package/dist/component/{dext-text-area-rac-D_YBnaWi.js → dext-text-area-rac-Cif8po9h.js} +1 -1
  44. package/dist/component/{dext-text-input-rac-BzeWH1jv.js → dext-text-input-rac-2118X4iF.js} +1 -1
  45. package/dist/component/{dext-url-input-rac-Cn0h_vx3.js → dext-url-input-rac-DDImGkQe.js} +1 -1
  46. package/dist/component/{donation-rac-CQRdHxWh.js → donation-rac-Dnylss1d.js} +103 -103
  47. package/dist/component/{dropdown-field-rac-C7LL0W5Z.js → dropdown-field-rac-DDI4ZgZH.js} +3 -3
  48. package/dist/component/{dropdown-rac-Nb2VyJ0x.js → dropdown-rac-DX0Z3R_8.js} +1 -1
  49. package/dist/component/{ecom-address-rac-_c2YIIwg.js → ecom-address-rac-D9MeEQsk.js} +1 -1
  50. package/dist/component/{ecom-subscription-checkbox-rac-Bma7TAVj.js → ecom-subscription-checkbox-rac-DKJ9j5dj.js} +2 -2
  51. package/dist/component/{email-input-field-rac-2E2tEaS5.js → email-input-field-rac-DaKrmlwe.js} +55 -55
  52. package/dist/component/{events-repeater-rac-COWHYBFD.js → events-repeater-rac-DWrOLT0Y.js} +45 -45
  53. package/dist/component/{events-rsvp-rac-CXp8j19Y.js → events-rsvp-rac-YBTR1tR0.js} +6 -6
  54. package/dist/component/{field-error-headless-S-ugOQQX.js → field-error-headless-jksFrezt.js} +10 -10
  55. package/dist/component/{field-label-headless-_n4I0_tX.js → field-label-headless-BBvJAVxI.js} +10 -10
  56. package/dist/component/{file-upload-rac-DCH_iwDg.js → file-upload-rac-CgdmfUZG.js} +168 -168
  57. package/dist/component/{fixed-payment-rac-CYkKJUfM.js → fixed-payment-rac-v6rKwzFs.js} +13 -13
  58. package/dist/component/{form-jK8ezTss.js → form-BsiK682r.js} +530 -502
  59. package/dist/component/form.js +1 -1
  60. package/dist/component/{header-field-rac-DnbjI6W5.js → header-field-rac-BuXybl7K.js} +6 -6
  61. package/dist/component/{header-rac-DKUICrni.js → header-rac-CDyaLosW.js} +1 -1
  62. package/dist/component/{image-choice-rac-B_9ponST.js → image-choice-rac-BRlMroBw.js} +41 -41
  63. package/dist/component/{index-BxdMzOvN.js → index-BanOeCAF.js} +242 -236
  64. package/dist/component/{index-ZYnsxY-a.js → index-y9URYGEE.js} +6 -6
  65. package/dist/component/{isObjectLike-BW-9QEQl.js → isObjectLike-BG9nJ-rx.js} +7 -7
  66. package/dist/component/{multiline-address-field-rac-k-P0ijWG.js → multiline-address-field-rac-DRAkxI1l.js} +342 -342
  67. package/dist/component/{multiline-address-rac-Bbn9mNDa.js → multiline-address-rac-JjTzWsEb.js} +1 -1
  68. package/dist/component/{number-input-field-rac--lom-B_X.js → number-input-field-rac-QrouG7Hv.js} +22 -22
  69. package/dist/component/{number-input-rac-Bhbd6T9S.js → number-input-rac-DGmE7cLv.js} +1 -1
  70. package/dist/component/{password-rac-BV_uTHb3.js → password-rac-DeyY228m.js} +28 -28
  71. package/dist/component/{payment-input-rac-cawyGN_t.js → payment-input-rac-DmIennLi.js} +45 -45
  72. package/dist/component/{phone-input-field-rac-CsElHRto.js → phone-input-field-rac-F7e74TGA.js} +76 -76
  73. package/dist/component/{phone-rac-XrHN5Nko.js → phone-rac-CQfB2CQD.js} +1 -1
  74. package/dist/component/{product-list-rac-cxv_xz7K.js → product-list-rac--GGG8vvO.js} +62 -62
  75. package/dist/component/{quiz-radio-group-rac-DGaxOPE1.js → quiz-radio-group-rac-DF2C2vNq.js} +1 -1
  76. package/dist/component/{radio-button-module-classes-Xv2Jn01x.js → radio-button-module-classes-DmpNo6F2.js} +17 -17
  77. package/dist/component/{radio-group-field-rac-DgGqgTql.js → radio-group-field-rac-BGcPYfKO.js} +6 -6
  78. package/dist/component/{radio-group-rac-Bh0E-oe1.js → radio-group-rac-CqysUMCE.js} +1 -1
  79. package/dist/component/{rating-input-field-rac-C3YLV971.js → rating-input-field-rac-D-ei917Y.js} +24 -24
  80. package/dist/component/{rating-input-rac-CfcC5EUh.js → rating-input-rac-a9zJ74fw.js} +1 -1
  81. package/dist/component/{rich-content-rac.module-DUjzLGtX.js → rich-content-rac.module-CvyLVlXL.js} +5 -5
  82. package/dist/component/{rich-text-field-rac-BmguoJhk.js → rich-text-field-rac-vf19nvyw.js} +7 -7
  83. package/dist/component/{rich-text-rac-BWhHcq25.js → rich-text-rac-Cx_wpoxC.js} +1 -1
  84. package/dist/component/{service-dropdown-rac-C5oX-ql7.js → service-dropdown-rac-DITzKQxd.js} +26 -26
  85. package/dist/component/{services-multi-choice-rac-C1fem9NB.js → services-multi-choice-rac-BtisN0Aq.js} +11 -11
  86. package/dist/component/{signature-rac-BtHqiWj1.js → signature-rac-DUeIoS5O.js} +226 -226
  87. package/dist/component/{submit-button-rac-OYeKJFF8.js → submit-button-rac-C8h6zeTw.js} +36 -36
  88. package/dist/component/{tags-field-rac-kA2RSijL.js → tags-field-rac-CjFuiB0n.js} +51 -51
  89. package/dist/component/{tags-rac-B_2qCZGu.js → tags-rac-BO7rwyLl.js} +1 -1
  90. package/dist/component/{text-area-field-rac-DeO609Mv.js → text-area-field-rac-CgUx3nQ0.js} +23 -23
  91. package/dist/component/{text-area-rac-BAQFBOZd.js → text-area-rac-WgXYXIaf.js} +1 -1
  92. package/dist/component/{text-input-field-rac-CCcKwuLZ.js → text-input-field-rac-DaxWFha-.js} +6 -6
  93. package/dist/component/{text-input-headless-D8-jkaYm.js → text-input-headless-hjuRJTZN.js} +6 -6
  94. package/dist/component/{text-input-rac-BVcgjj8g.js → text-input-rac-BzumrJBj.js} +1 -1
  95. package/dist/component/{time-input-rac-BYctyHgU.js → time-input-rac-2FEkpQ7M.js} +18 -18
  96. package/dist/component/{url-input-field-rac-COC9qgcs.js → url-input-field-rac-BZ9f8D8I.js} +26 -26
  97. package/dist/component/{url-input-rac-BZXLh0Ej.js → url-input-rac-D-AVlxkD.js} +1 -1
  98. package/dist/component/{use-dropdown-option-class-name-BTltqRl1.js → use-dropdown-option-class-name-DwAAtzgX.js} +11 -11
  99. package/dist/component/{use-dropdown-trigger-class-name-BjJZfl3i.js → use-dropdown-trigger-class-name-D-6n9YVG.js} +18 -18
  100. package/dist/component/{use-element-state-class-name-CkT6Ga8t.js → use-element-state-class-name-C5auxwhj.js} +3 -3
  101. package/dist/component/{use-hoverable-input-class-name-BkoSr6tr.js → use-hoverable-input-class-name-Nd2jqfz4.js} +2 -2
  102. package/dist/component/use-is-forced-open-dropdown-CKaHhCqp.js +64 -0
  103. package/dist/component/{use-service-options-base-Wp8RZ4Z8.js → use-service-options-base-CvluFheT.js} +3 -3
  104. package/dist/component/use-text-input-class-name-DGTlYJxC.js +6 -0
  105. package/dist/form.d.ts +19 -0
  106. package/package.json +2 -2
  107. package/dist/component/date-input-field-rac-b_T1yf8D.js +0 -309
  108. package/dist/component/use-is-forced-open-dropdown-fo_NCnSk.js +0 -53
  109. package/dist/component/use-text-input-class-name-DS7i03Gk.js +0 -6
@@ -1,13 +1,13 @@
1
- import { e as R, aY as _, bb as de, aZ as g, aE as Ge, B as Be, aS as qe, aL as He, aK as I, aT as Ee, b0 as re, aW as Fe, c as B, aM as M, bn as Te, aO as je, aN as he, aP as q } from "./form-jK8ezTss.js";
2
- import { bi as Mn } from "./form-jK8ezTss.js";
1
+ import { e as R, b3 as _, bi as fe, b4 as O, aL as Ge, B as Be, aZ as qe, aS as He, aR as A, a_ as le, b7 as re, b1 as Ce, c as B, aT as M, bu as Ee, aV as je, aU as Te, aW as q } from "./form-BsiK682r.js";
2
+ import { bp as Sn } from "./form-BsiK682r.js";
3
3
  import Xe from "ajv";
4
4
  import ke from "ajv-errors";
5
5
  import We from "ajv-formats";
6
6
  import Ke from "fast-deep-equal";
7
- import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ze, ParseError as Ve } from "libphonenumber-js/max";
7
+ import { parsePhoneNumber as ze, parsePhoneNumberWithError as Ve, ParseError as Ze } from "libphonenumber-js/max";
8
8
  import Je from "libphonenumber-js/metadata.max.json";
9
- import { p as Qe, i as et } from "./date-availability-BC6updcS.js";
10
- import { a as Sn } from "./date-availability-BC6updcS.js";
9
+ import { p as Qe, i as et } from "./date-availability-RkX-Qw7G.js";
10
+ import { a as Cn } from "./date-availability-RkX-Qw7G.js";
11
11
  import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
12
12
  function rt(e) {
13
13
  var t, r;
@@ -50,11 +50,11 @@ var S = /* @__PURE__ */ (function(e) {
50
50
  })({}), v = /* @__PURE__ */ (function(e) {
51
51
  return e.YEAR_MONTH_TIME = "year-month-time", e.YEAR_DAY_TIME = "year-day-time", e.MONTH_DAY_TIME = "month-day-time", e.YEAR_TIME = "year-time", e.MONTH_TIME = "month-time", e.DAY_TIME = "day-time", e.TIME = "time", e;
52
52
  })({});
53
- function ve(e) {
53
+ function Fe(e) {
54
54
  return e.params && "format" in e.params ? e.params.format : void 0;
55
55
  }
56
56
  function it(e, t, r) {
57
- return t && (ot(t) ?? ut(e, t) ?? at(e, t) ?? ct(e, t) ?? mt(e, t, r == null ? void 0 : r.value) ?? Ue(e, t, r == null ? void 0 : r.value) ?? t);
57
+ return t && (ot(t) ?? ut(e, t) ?? at(e, t) ?? ct(e, t) ?? mt(e, t, r == null ? void 0 : r.value) ?? ve(e, t, r == null ? void 0 : r.value) ?? t);
58
58
  }
59
59
  function ot(e) {
60
60
  if (!(!e || e.errorType !== R.PATTERN_ERROR))
@@ -130,11 +130,11 @@ function ct(e, t) {
130
130
  }
131
131
  }
132
132
  }
133
- function Ue(e, t, r) {
133
+ function ve(e, t, r) {
134
134
  const n = (t == null ? void 0 : t.errorType) === R.FORMAT_ERROR;
135
135
  if (!t || !n)
136
136
  return;
137
- const s = ve(t);
137
+ const s = Fe(t);
138
138
  if (s !== "date" && s !== "date-time")
139
139
  return;
140
140
  const { YEAR: i, MONTH: o, DAY: a } = Le(r), u = (i == null ? void 0 : i.length) === 4;
@@ -151,9 +151,9 @@ function Ue(e, t, r) {
151
151
  }
152
152
  function mt(e, t, r) {
153
153
  const n = (t == null ? void 0 : t.errorType) === R.FORMAT_ERROR;
154
- if (!t || !n || ve(t) !== "date-time")
154
+ if (!t || !n || Fe(t) !== "date-time")
155
155
  return;
156
- const [i, o] = nt(r), a = Ue(e, t, i), { YEAR: u, MONTH: f, DAY: l } = Le(i);
156
+ const [i, o] = nt(r), a = ve(e, t, i), { YEAR: u, MONTH: f, DAY: l } = Le(i);
157
157
  if (!st(o)) {
158
158
  const c = (d) => ({
159
159
  ...t,
@@ -214,9 +214,9 @@ const dt = (e, t) => {
214
214
  var t;
215
215
  return !!((t = e.validation) != null && t.required) && !e.hidden && !e.readOnly;
216
216
  };
217
- var H = { exports: {} }, X = { exports: {} }, Re;
217
+ var H = { exports: {} }, X = { exports: {} }, he;
218
218
  function Tt() {
219
- return Re || (Re = 1, (function(e, t) {
219
+ return he || (he = 1, (function(e, t) {
220
220
  Object.defineProperty(t, "__esModule", { value: !0 });
221
221
  const r = Ke, n = ["number", "integer", "string", "boolean", "null"];
222
222
  function s() {
@@ -274,10 +274,10 @@ function Tt() {
274
274
  e.exports = s;
275
275
  })(X, X.exports)), X.exports;
276
276
  }
277
- var Ae = H.exports, Ie;
277
+ var Re = H.exports, Ae;
278
278
  function ht() {
279
- return Ie || (Ie = 1, (function(e, t) {
280
- var r = Ae && Ae.__importDefault || function(i) {
279
+ return Ae || (Ae = 1, (function(e, t) {
280
+ var r = Re && Re.__importDefault || function(i) {
281
281
  return i && i.__esModule ? i : { default: i };
282
282
  };
283
283
  Object.defineProperty(t, "__esModule", { value: !0 });
@@ -286,7 +286,7 @@ function ht() {
286
286
  })(H, H.exports)), H.exports;
287
287
  }
288
288
  var Rt = ht();
289
- const At = /* @__PURE__ */ de(Rt);
289
+ const At = /* @__PURE__ */ fe(Rt);
290
290
  function h(e, t, r) {
291
291
  if (typeof w(e) < "u")
292
292
  return e;
@@ -531,10 +531,10 @@ const Nt = [
531
531
  "ZWN",
532
532
  "ZWR"
533
533
  ], yt = new Set(Nt.map((e) => e.toLowerCase()));
534
- function Ot(e) {
534
+ function gt(e) {
535
535
  return yt.has(e.toLowerCase());
536
536
  }
537
- const oe = "¡-퟿-￿-a-zA-Z", $e = "0-9", U = `${oe}${$e}`, Ne = "!#$%&'*+/=?^_`{|}~-", gt = `[${U}${Ne}]+(?:\\.[${U}${Ne}]+)*`, _t = "(?:[-\b\v\f-!#-[]-]|\\[- \v\f-])*", Dt = `(?:${gt}|${_t})`, Mt = `(?:[${U}](?:[${U}-]*[${U}])?\\.)+(?:(?:[${$e}]+[${oe}][${U}]*)|(?:[${oe}][${U}]{1,}))`, Pt = "^" + Dt + "@" + Mt + "$", St = [
537
+ const oe = "¡-퟿-￿-a-zA-Z", Ue = "0-9", U = `${oe}${Ue}`, Ie = "!#$%&'*+/=?^_`{|}~-", Ot = `[${U}${Ie}]+(?:\\.[${U}${Ie}]+)*`, _t = "(?:[-\b\v\f-!#-[]-]|\\[- \v\f-])*", Dt = `(?:${Ot}|${_t})`, Mt = `(?:[${U}](?:[${U}-]*[${U}])?\\.)+(?:(?:[${Ue}]+[${oe}][${U}]*)|(?:[${oe}][${U}]{1,}))`, Pt = "^" + Dt + "@" + Mt + "$", St = [
538
538
  "aa",
539
539
  "ab",
540
540
  "ae",
@@ -727,7 +727,7 @@ const oe = "¡-퟿-
727
727
  function Ct(e) {
728
728
  return bt.has(e);
729
729
  }
730
- function Ft(e) {
730
+ function Lt(e) {
731
731
  try {
732
732
  return !Intl || !Intl.DateTimeFormat().resolvedOptions().timeZone ? !1 : (Intl.DateTimeFormat(void 0, {
733
733
  timeZone: e
@@ -736,22 +736,22 @@ function Ft(e) {
736
736
  return !1;
737
737
  }
738
738
  }
739
- const Lt = "^\\+[1-9]\\d{1,14}$";
739
+ const Ft = "^\\+[1-9]\\d{1,14}$";
740
740
  function vt(e, t) {
741
741
  const r = {
742
- ...ye,
743
- phone: t ? Lt : ye.phone
742
+ ...Ne,
743
+ phone: t ? Ft : Ne.phone
744
744
  };
745
745
  for (const [n, s] of Object.entries(r))
746
746
  e.addFormat(n, s);
747
747
  }
748
- const ye = {
748
+ const Ne = {
749
749
  phone: "^[\\d \\u00A0()+\\-.]+$",
750
750
  email: Pt,
751
751
  "color-hex": /^#(?:[0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,
752
- currency: Ot,
752
+ currency: gt,
753
753
  language: Ct,
754
- "time-zone": Ft
754
+ "time-zone": Lt
755
755
  };
756
756
  function Ut(e, t, r) {
757
757
  e.addKeyword({
@@ -792,13 +792,13 @@ function $t(e) {
792
792
  }
793
793
  function xt(e, t) {
794
794
  try {
795
- const r = Ze(e);
795
+ const r = Ve(e);
796
796
  return (t ? r.isPossible() : r.isValid()) ? void 0 : {
797
797
  keyword: "format",
798
798
  message: "Phone number for the country code provided is invalid"
799
799
  };
800
800
  } catch (r) {
801
- return r instanceof Ve ? Yt(r, e) : {
801
+ return r instanceof Ze ? Yt(r, e) : {
802
802
  keyword: "format",
803
803
  message: "Phone number could not be parsed"
804
804
  };
@@ -912,11 +912,11 @@ var y = /* @__PURE__ */ (function(e) {
912
912
  })({});
913
913
  function Xt(e, t) {
914
914
  return function(c) {
915
- const E = c.fields || [], d = c.deletedFields || [], m = E.filter(o), T = d.filter(o), O = r(m, T), N = t === g.UNRESTRICTED_UPDATE ? [] : m.filter((A) => !u(A)).filter(i).map((A) => h(A.target, A, "target"));
915
+ const E = c.fields || [], d = c.deletedFields || [], m = E.filter(o), T = d.filter(o), g = r(m, T), N = t === O.UNRESTRICTED_UPDATE ? [] : m.filter((I) => !u(I)).filter(i).map((I) => h(I.target, I, "target"));
916
916
  return {
917
917
  $id: h(c.id, c, "id"),
918
918
  type: y.OBJECT,
919
- properties: O,
919
+ properties: g,
920
920
  additionalProperties: !1,
921
921
  required: N
922
922
  };
@@ -979,7 +979,7 @@ function kt(e, t) {
979
979
  };
980
980
  };
981
981
  function r(f) {
982
- return t === g.UNRESTRICTED_UPDATE ? [] : f.filter((l) => !s(l)).filter((l) => !i(l)).map((l) => l.inputOptions).filter(o).map((l) => h(l.target, l, "target"));
982
+ return t === O.UNRESTRICTED_UPDATE ? [] : f.filter((l) => !s(l)).filter((l) => !i(l)).map((l) => l.inputOptions).filter(o).map((l) => h(l.target, l, "target"));
983
983
  }
984
984
  function n(f, l) {
985
985
  return [
@@ -1038,7 +1038,7 @@ function J(e, t) {
1038
1038
  };
1039
1039
  }
1040
1040
  function zt(e, t) {
1041
- return t !== g.UNRESTRICTED_UPDATE ? {
1041
+ return t !== O.UNRESTRICTED_UPDATE ? {
1042
1042
  ...G(Be, e)
1043
1043
  } : {};
1044
1044
  }
@@ -1047,11 +1047,11 @@ function Q(e, t) {
1047
1047
  type: y.NUMBER,
1048
1048
  maximum: Number.MAX_SAFE_INTEGER,
1049
1049
  minimum: Number.MIN_SAFE_INTEGER,
1050
- ...Zt(e, t)
1050
+ ...Vt(e, t)
1051
1051
  };
1052
1052
  }
1053
- function Zt(e, t) {
1054
- return t !== g.UNRESTRICTED_UPDATE ? {
1053
+ function Vt(e, t) {
1054
+ return t !== O.UNRESTRICTED_UPDATE ? {
1055
1055
  ...G(qe, e, {
1056
1056
  maximum: (r) => Math.min(r ?? Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER),
1057
1057
  minimum: (r) => Math.max(r ?? Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER),
@@ -1059,11 +1059,11 @@ function Zt(e, t) {
1059
1059
  })
1060
1060
  } : {};
1061
1061
  }
1062
- const Vt = [
1062
+ const Zt = [
1063
1063
  "minItems",
1064
1064
  "maxItems"
1065
1065
  ], ue = 100;
1066
- function Oe(e, t) {
1066
+ function ye(e, t) {
1067
1067
  const n = Qt(t, (e || {}).items);
1068
1068
  return {
1069
1069
  type: y.ARRAY,
@@ -1075,12 +1075,12 @@ function Oe(e, t) {
1075
1075
  };
1076
1076
  }
1077
1077
  function Jt(e, t) {
1078
- return t !== g.UNRESTRICTED_UPDATE ? {
1079
- ...xe(e)
1078
+ return t !== O.UNRESTRICTED_UPDATE ? {
1079
+ ...$e(e)
1080
1080
  } : {};
1081
1081
  }
1082
- function xe(e) {
1083
- return G(Vt, e, {
1082
+ function $e(e) {
1083
+ return G(Zt, e, {
1084
1084
  maxItems: (t) => Math.min(t ?? ue, ue)
1085
1085
  });
1086
1086
  }
@@ -1098,14 +1098,14 @@ function er(e, t) {
1098
1098
  };
1099
1099
  }
1100
1100
  function tr(e, t) {
1101
- return t !== g.UNRESTRICTED_UPDATE ? {
1101
+ return t !== O.UNRESTRICTED_UPDATE ? {
1102
1102
  ...G(He, e, {
1103
1103
  maximum: (r) => Math.min(r ?? Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER),
1104
1104
  minimum: (r) => Math.max(r ?? Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER)
1105
1105
  })
1106
1106
  } : {};
1107
1107
  }
1108
- function K(e, t, r = g.UNKNOWN) {
1108
+ function K(e, t, r = O.UNKNOWN) {
1109
1109
  const { format: n } = t;
1110
1110
  switch (n) {
1111
1111
  case _.WIX_FILE:
@@ -1125,10 +1125,10 @@ function K(e, t, r = g.UNKNOWN) {
1125
1125
  function rr(e, t, r) {
1126
1126
  return {
1127
1127
  type: y.ARRAY,
1128
- ...t.maxItems && r !== g.UNRESTRICTED_UPDATE && {
1128
+ ...t.maxItems && r !== O.UNRESTRICTED_UPDATE && {
1129
1129
  maxItems: t.maxItems
1130
1130
  },
1131
- ...t.minItems && r !== g.UNRESTRICTED_UPDATE && {
1131
+ ...t.minItems && r !== O.UNRESTRICTED_UPDATE && {
1132
1132
  minItems: t.minItems
1133
1133
  },
1134
1134
  items: {
@@ -1137,7 +1137,7 @@ function rr(e, t, r) {
1137
1137
  };
1138
1138
  }
1139
1139
  function nr(e, t) {
1140
- if (t === g.UNRESTRICTED_UPDATE)
1140
+ if (t === O.UNRESTRICTED_UPDATE)
1141
1141
  return {
1142
1142
  type: y.ARRAY,
1143
1143
  items: {
@@ -1208,7 +1208,7 @@ function nr(e, t) {
1208
1208
  type: y.OBJECT,
1209
1209
  anyOf: i
1210
1210
  },
1211
- ...xe({
1211
+ ...$e({
1212
1212
  minItems: n,
1213
1213
  maxItems: s
1214
1214
  }),
@@ -1223,7 +1223,7 @@ function nr(e, t) {
1223
1223
  function sr(e) {
1224
1224
  const { priceType: t } = e;
1225
1225
  switch (t) {
1226
- case Ee.FIXED_PRICE: {
1226
+ case le.FIXED_PRICE: {
1227
1227
  const r = h(e.fixedPriceOptions, e, "fixedPriceOptions");
1228
1228
  return {
1229
1229
  string: {
@@ -1233,7 +1233,7 @@ function sr(e) {
1233
1233
  }
1234
1234
  };
1235
1235
  }
1236
- case Ee.DYNAMIC_PRICE: {
1236
+ case le.DYNAMIC_PRICE: {
1237
1237
  const r = h(e.dynamicPriceOptions, e, "dynamicPriceOptions"), n = h(r.minPrice, r, "minPrice"), { maxPrice: s } = r;
1238
1238
  return {
1239
1239
  number: {
@@ -1296,13 +1296,13 @@ const ge = {
1296
1296
  properties: {
1297
1297
  startDate: {
1298
1298
  string: {
1299
- format: I.DATE_TIME
1299
+ format: A.DATE_TIME
1300
1300
  },
1301
1301
  required: !0
1302
1302
  },
1303
1303
  endDate: {
1304
1304
  string: {
1305
- format: I.DATE_TIME
1305
+ format: A.DATE_TIME
1306
1306
  },
1307
1307
  required: !0
1308
1308
  },
@@ -1317,9 +1317,9 @@ const ge = {
1317
1317
  }
1318
1318
  }
1319
1319
  };
1320
- var z = { exports: {} }, ir = z.exports, _e;
1320
+ var z = { exports: {} }, ir = z.exports, Oe;
1321
1321
  function or() {
1322
- return _e || (_e = 1, (function(e, t) {
1322
+ return Oe || (Oe = 1, (function(e, t) {
1323
1323
  (function(r, n) {
1324
1324
  e.exports = n();
1325
1325
  })(ir, (function() {
@@ -1327,25 +1327,25 @@ function or() {
1327
1327
  return function(s, i, o) {
1328
1328
  var a, u = function(c, E, d) {
1329
1329
  d === void 0 && (d = {});
1330
- var m = new Date(c), T = (function(O, N) {
1330
+ var m = new Date(c), T = (function(g, N) {
1331
1331
  N === void 0 && (N = {});
1332
- var A = N.timeZoneName || "short", P = O + "|" + A, D = n[P];
1333
- return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: O, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: A }), n[P] = D), D;
1332
+ var I = N.timeZoneName || "short", P = g + "|" + I, D = n[P];
1333
+ return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: g, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: I }), n[P] = D), D;
1334
1334
  })(E, d);
1335
1335
  return T.formatToParts(m);
1336
1336
  }, f = function(c, E) {
1337
1337
  for (var d = u(c, E), m = [], T = 0; T < d.length; T += 1) {
1338
- var O = d[T], N = O.type, A = O.value, P = r[N];
1339
- P >= 0 && (m[P] = parseInt(A, 10));
1338
+ var g = d[T], N = g.type, I = g.value, P = r[N];
1339
+ P >= 0 && (m[P] = parseInt(I, 10));
1340
1340
  }
1341
- var D = m[3], F = D === 24 ? 0 : D, b = m[0] + "-" + m[1] + "-" + m[2] + " " + F + ":" + m[4] + ":" + m[5] + ":000", L = +c;
1342
- return (o.utc(b).valueOf() - (L -= L % 1e3)) / 6e4;
1341
+ var D = m[3], L = D === 24 ? 0 : D, b = m[0] + "-" + m[1] + "-" + m[2] + " " + L + ":" + m[4] + ":" + m[5] + ":000", F = +c;
1342
+ return (o.utc(b).valueOf() - (F -= F % 1e3)) / 6e4;
1343
1343
  }, l = i.prototype;
1344
1344
  l.tz = function(c, E) {
1345
1345
  c === void 0 && (c = a);
1346
- var d, m = this.utcOffset(), T = this.toDate(), O = T.toLocaleString("en-US", { timeZone: c }), N = Math.round((T - new Date(O)) / 1e3 / 60), A = 15 * -Math.round(T.getTimezoneOffset() / 15) - N;
1347
- if (!Number(A)) d = this.utcOffset(0, E);
1348
- else if (d = o(O, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(A, !0), E) {
1346
+ var d, m = this.utcOffset(), T = this.toDate(), g = T.toLocaleString("en-US", { timeZone: c }), N = Math.round((T - new Date(g)) / 1e3 / 60), I = 15 * -Math.round(T.getTimezoneOffset() / 15) - N;
1347
+ if (!Number(I)) d = this.utcOffset(0, E);
1348
+ else if (d = o(g, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(I, !0), E) {
1349
1349
  var P = d.utcOffset();
1350
1350
  d = d.add(m - P, "minute");
1351
1351
  }
@@ -1362,14 +1362,14 @@ function or() {
1362
1362
  var d = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
1363
1363
  return p.call(d, c, E).tz(this.$x.$timezone, !0);
1364
1364
  }, o.tz = function(c, E, d) {
1365
- var m = d && E, T = d || E || a, O = f(+o(), T);
1365
+ var m = d && E, T = d || E || a, g = f(+o(), T);
1366
1366
  if (typeof c != "string") return o(c).tz(T);
1367
- var N = (function(F, b, L) {
1368
- var C = F - 60 * b * 1e3, $ = f(C, L);
1367
+ var N = (function(L, b, F) {
1368
+ var C = L - 60 * b * 1e3, $ = f(C, F);
1369
1369
  if (b === $) return [C, b];
1370
- var se = f(C -= 60 * ($ - b) * 1e3, L);
1371
- return $ === se ? [C, $] : [F - 60 * Math.min($, se) * 1e3, Math.max($, se)];
1372
- })(o.utc(c, m).valueOf(), O, T), A = N[0], P = N[1], D = o(A).utcOffset(P);
1370
+ var se = f(C -= 60 * ($ - b) * 1e3, F);
1371
+ return $ === se ? [C, $] : [L - 60 * Math.min($, se) * 1e3, Math.max($, se)];
1372
+ })(o.utc(c, m).valueOf(), g, T), I = N[0], P = N[1], D = o(I).utcOffset(P);
1373
1373
  return D.$x.$timezone = T, D;
1374
1374
  }, o.tz.guess = function() {
1375
1375
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -1381,10 +1381,10 @@ function or() {
1381
1381
  })(z)), z.exports;
1382
1382
  }
1383
1383
  var ur = or();
1384
- const ar = /* @__PURE__ */ de(ur);
1385
- var Z = { exports: {} }, cr = Z.exports, De;
1384
+ const ar = /* @__PURE__ */ fe(ur);
1385
+ var V = { exports: {} }, cr = V.exports, _e;
1386
1386
  function mr() {
1387
- return De || (De = 1, (function(e, t) {
1387
+ return _e || (_e = 1, (function(e, t) {
1388
1388
  (function(r, n) {
1389
1389
  e.exports = n();
1390
1390
  })(cr, (function() {
@@ -1413,21 +1413,21 @@ function mr() {
1413
1413
  };
1414
1414
  var p = u.utcOffset;
1415
1415
  u.utcOffset = function(m, T) {
1416
- var O = this.$utils().u;
1417
- if (O(m)) return this.$u ? 0 : O(this.$offset) ? p.call(this) : this.$offset;
1416
+ var g = this.$utils().u;
1417
+ if (g(m)) return this.$u ? 0 : g(this.$offset) ? p.call(this) : this.$offset;
1418
1418
  if (typeof m == "string" && (m = (function(D) {
1419
1419
  D === void 0 && (D = "");
1420
- var F = D.match(n);
1421
- if (!F) return null;
1422
- var b = ("" + F[0]).match(s) || ["-", 0, 0], L = b[0], C = 60 * +b[1] + +b[2];
1423
- return C === 0 ? 0 : L === "+" ? C : -C;
1420
+ var L = D.match(n);
1421
+ if (!L) return null;
1422
+ var b = ("" + L[0]).match(s) || ["-", 0, 0], F = b[0], C = 60 * +b[1] + +b[2];
1423
+ return C === 0 ? 0 : F === "+" ? C : -C;
1424
1424
  })(m), m === null)) return this;
1425
1425
  var N = Math.abs(m) <= 16 ? 60 * m : m;
1426
1426
  if (N === 0) return this.utc(T);
1427
- var A = this.clone();
1428
- if (T) return A.$offset = N, A.$u = !1, A;
1427
+ var I = this.clone();
1428
+ if (T) return I.$offset = N, I.$u = !1, I;
1429
1429
  var P = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
1430
- return (A = this.local().add(N + P, r)).$offset = N, A.$x.$localOffset = P, A;
1430
+ return (I = this.local().add(N + P, r)).$offset = N, I.$x.$localOffset = P, I;
1431
1431
  };
1432
1432
  var c = u.format;
1433
1433
  u.format = function(m) {
@@ -1448,20 +1448,20 @@ function mr() {
1448
1448
  return m === "s" && this.$offset ? a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : E.call(this);
1449
1449
  };
1450
1450
  var d = u.diff;
1451
- u.diff = function(m, T, O) {
1452
- if (m && this.$u === m.$u) return d.call(this, m, T, O);
1453
- var N = this.local(), A = a(m).local();
1454
- return d.call(N, A, T, O);
1451
+ u.diff = function(m, T, g) {
1452
+ if (m && this.$u === m.$u) return d.call(this, m, T, g);
1453
+ var N = this.local(), I = a(m).local();
1454
+ return d.call(N, I, T, g);
1455
1455
  };
1456
1456
  };
1457
1457
  }));
1458
- })(Z)), Z.exports;
1458
+ })(V)), V.exports;
1459
1459
  }
1460
1460
  var fr = mr();
1461
- const dr = /* @__PURE__ */ de(fr);
1461
+ const dr = /* @__PURE__ */ fe(fr);
1462
1462
  re.extend(dr);
1463
1463
  re.extend(ar);
1464
- const pr = re.utc, we = /^\$now(?:([+-])(\d{1,2})([yMdmh]))?$/, lr = /^\d{4}-\d{2}-\d{2}$/, Er = /^\d{2}:\d{2}:\d{2}(\.\d+)?$/, Tr = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})?$/;
1464
+ const pr = re.utc, xe = /^\$now(?:([+-])(\d{1,2})([yMdmh]))?$/, lr = /^\d{4}-\d{2}-\d{2}$/, Er = /^\d{2}:\d{2}:\d{2}(\.\d+)?$/, Tr = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})?$/;
1465
1465
  function hr(e, t, r = () => /* @__PURE__ */ new Date(), n) {
1466
1466
  var i;
1467
1467
  const s = {
@@ -1479,11 +1479,11 @@ function ae(e, t, r, n) {
1479
1479
  return r;
1480
1480
  if (Rr(r)) {
1481
1481
  const s = n ? re(t().toISOString()).tz(n) : pr(t().toISOString()), i = Ir(r, s);
1482
- return i ? e === I.DATE_TIME || e === I.DATE_OPTIONAL_TIME || !n ? i.utc().format(Me(e)) : i.format(Me(e)) : void 0;
1482
+ return i ? e === A.DATE_TIME || e === A.DATE_OPTIONAL_TIME || !n ? i.utc().format(De(e)) : i.format(De(e)) : void 0;
1483
1483
  }
1484
1484
  }
1485
1485
  function Rr(e) {
1486
- return we.test(e);
1486
+ return xe.test(e);
1487
1487
  }
1488
1488
  function Ar(e) {
1489
1489
  return lr.test(e) || Er.test(e) || Tr.test(e);
@@ -1492,7 +1492,7 @@ function Ir(e, t) {
1492
1492
  if (e === "$now")
1493
1493
  return t;
1494
1494
  try {
1495
- const [, r, n, s] = e.match(we) ?? [], i = Nr(n), o = Or(s);
1495
+ const [, r, n, s] = e.match(xe) ?? [], i = Nr(n), o = gr(s);
1496
1496
  return i && o ? yr(t, r)(i, o) : void 0;
1497
1497
  } catch (r) {
1498
1498
  console.error(`Failed to parse format ${e}`, r);
@@ -1513,7 +1513,7 @@ function yr(e, t) {
1513
1513
  return () => e;
1514
1514
  }
1515
1515
  }
1516
- function Or(e) {
1516
+ function gr(e) {
1517
1517
  if ([
1518
1518
  "d",
1519
1519
  "M",
@@ -1523,47 +1523,53 @@ function Or(e) {
1523
1523
  ].includes(e))
1524
1524
  return e;
1525
1525
  }
1526
- function Me(e) {
1526
+ function De(e) {
1527
1527
  switch (e) {
1528
- case I.DATE:
1528
+ case A.DATE:
1529
1529
  return "YYYY-MM-DD";
1530
- case I.TIME:
1530
+ case A.TIME:
1531
1531
  return "HH:mm:ss";
1532
- case I.DATE_TIME:
1533
- case I.DATE_OPTIONAL_TIME:
1532
+ case A.DATE_TIME:
1533
+ case A.DATE_OPTIONAL_TIME:
1534
1534
  return "YYYY-MM-DDTHH:mm:ss[Z]";
1535
1535
  default:
1536
1536
  return;
1537
1537
  }
1538
1538
  }
1539
- const ce = 2e4;
1539
+ const Or = 2e4, _r = 254;
1540
1540
  function ee(e, t) {
1541
- const r = gr(e) ? Wt(Fe, e) : {};
1541
+ const r = Dr(e) ? Wt(Ce, e) : {};
1542
1542
  return {
1543
1543
  type: y.STRING,
1544
- maxLength: ce,
1544
+ maxLength: we(e),
1545
1545
  ...r,
1546
- ...Dr(e),
1547
- ..._r(e, t)
1546
+ ...Pr(e),
1547
+ ...Mr(e, t)
1548
1548
  };
1549
1549
  }
1550
- function gr(e) {
1550
+ function we(e) {
1551
+ return e.format === A.EMAIL ? _r : Or;
1552
+ }
1553
+ function Dr(e) {
1551
1554
  return "validationMessages" in e;
1552
1555
  }
1553
- function _r(e, t) {
1554
- const r = Sr(e), n = r ? {
1556
+ function Mr(e, t) {
1557
+ const r = Cr(e), n = r ? {
1555
1558
  dateAvailability: r
1556
1559
  } : {};
1557
- return t !== g.UNRESTRICTED_UPDATE ? {
1558
- ...G(Fe.filter((s) => s !== "format"), e, {
1559
- maxLength: (s) => Math.min(s ?? ce, ce)
1560
+ return t !== O.UNRESTRICTED_UPDATE ? {
1561
+ ...G(Ce.filter((s) => s !== "format"), e, {
1562
+ maxLength: (s) => {
1563
+ const i = we(e);
1564
+ return Math.min(s ?? i, i);
1565
+ }
1560
1566
  }),
1561
- ...hr(e.format, Pr(e), void 0, e.phoneOptions),
1567
+ ...hr(e.format, br(e), void 0, e.phoneOptions),
1562
1568
  ...n
1563
1569
  } : n;
1564
1570
  }
1565
- function Dr(e) {
1566
- const t = e.format && Mr[h(e.format, e, "format")];
1571
+ function Pr(e) {
1572
+ const t = e.format && Sr[h(e.format, e, "format")];
1567
1573
  return t ? t.length === 1 ? {
1568
1574
  format: t[0]
1569
1575
  } : {
@@ -1572,44 +1578,44 @@ function Dr(e) {
1572
1578
  }))
1573
1579
  } : {};
1574
1580
  }
1575
- const Mr = {
1576
- [I.DATE]: [
1581
+ const Sr = {
1582
+ [A.DATE]: [
1577
1583
  "date"
1578
1584
  ],
1579
- [I.TIME]: [
1585
+ [A.TIME]: [
1580
1586
  "time"
1581
1587
  ],
1582
- [I.DATE_TIME]: [
1588
+ [A.DATE_TIME]: [
1583
1589
  "date-time"
1584
1590
  ],
1585
- [I.EMAIL]: [
1591
+ [A.EMAIL]: [
1586
1592
  "email"
1587
1593
  ],
1588
- [I.URL]: [
1594
+ [A.URL]: [
1589
1595
  "url"
1590
1596
  ],
1591
- [I.UUID]: [
1597
+ [A.UUID]: [
1592
1598
  "uuid"
1593
1599
  ],
1594
- [I.PHONE]: [
1600
+ [A.PHONE]: [
1595
1601
  "phone"
1596
1602
  ],
1597
- [I.URI]: [
1603
+ [A.URI]: [
1598
1604
  "uri"
1599
1605
  ],
1600
- [I.HOSTNAME]: [
1606
+ [A.HOSTNAME]: [
1601
1607
  "hostname"
1602
1608
  ],
1603
- [I.COLOR_HEX]: [
1609
+ [A.COLOR_HEX]: [
1604
1610
  "color-hex"
1605
1611
  ],
1606
- [I.CURRENCY]: [
1612
+ [A.CURRENCY]: [
1607
1613
  "currency"
1608
1614
  ],
1609
- [I.LANGUAGE]: [
1615
+ [A.LANGUAGE]: [
1610
1616
  "language"
1611
1617
  ],
1612
- [I.DATE_OPTIONAL_TIME]: [
1618
+ [A.DATE_OPTIONAL_TIME]: [
1613
1619
  "date-time",
1614
1620
  "date"
1615
1621
  ],
@@ -1617,7 +1623,7 @@ const Mr = {
1617
1623
  "time-zone"
1618
1624
  ]
1619
1625
  };
1620
- function Pr(e) {
1626
+ function br(e) {
1621
1627
  if ("dateOptions" in e)
1622
1628
  return e.dateOptions;
1623
1629
  if ("dateTimeOptions" in e)
@@ -1627,11 +1633,11 @@ function Pr(e) {
1627
1633
  if ("dateOptionalTimeOptions" in e)
1628
1634
  return e.dateOptionalTimeOptions;
1629
1635
  }
1630
- function Sr(e) {
1636
+ function Cr(e) {
1631
1637
  const t = "dateOptions" in e ? e.dateOptions : void 0;
1632
1638
  return t == null ? void 0 : t.availability;
1633
1639
  }
1634
- function Y(e, t = void 0, r = g.UNKNOWN) {
1640
+ function Y(e, t = void 0, r = O.UNKNOWN) {
1635
1641
  if (e != null && e.string)
1636
1642
  return ee(e.string, r);
1637
1643
  if (e != null && e.stringOptions)
@@ -1647,9 +1653,9 @@ function Y(e, t = void 0, r = g.UNKNOWN) {
1647
1653
  if (e != null && e.booleanOptions)
1648
1654
  return J(e == null ? void 0 : e.booleanOptions, r);
1649
1655
  if (e != null && e.array)
1650
- return Oe(e.array, r);
1656
+ return ye(e.array, r);
1651
1657
  if (e != null && e.arrayOptions)
1652
- return Oe(e.arrayOptions, r);
1658
+ return ye(e.arrayOptions, r);
1653
1659
  if (e != null && e.object)
1654
1660
  return te(e.object, r);
1655
1661
  if (e != null && e.objectOptions)
@@ -1658,92 +1664,92 @@ function Y(e, t = void 0, r = g.UNKNOWN) {
1658
1664
  return K(t, e.predefined, r);
1659
1665
  }
1660
1666
  function te(e, t) {
1661
- const r = Lr(t, e.properties);
1667
+ const r = Ur(t, e.properties);
1662
1668
  return {
1663
1669
  type: y.OBJECT,
1664
1670
  additionalProperties: !1,
1665
1671
  properties: r,
1666
- ...br(e, t)
1672
+ ...Lr(e, t)
1667
1673
  };
1668
1674
  }
1669
- function br(e, t) {
1670
- return t !== g.UNRESTRICTED_UPDATE ? {
1671
- required: Cr(e.properties)
1675
+ function Lr(e, t) {
1676
+ return t !== O.UNRESTRICTED_UPDATE ? {
1677
+ required: Fr(e.properties)
1672
1678
  } : {
1673
1679
  required: []
1674
1680
  };
1675
1681
  }
1676
- function Cr(e = {}) {
1682
+ function Fr(e = {}) {
1677
1683
  return Object.keys(e).reduce((r, n) => {
1678
1684
  const s = e[n];
1679
- return Fr(s) && r.push(n), r;
1685
+ return vr(s) && r.push(n), r;
1680
1686
  }, []);
1681
1687
  }
1682
- function Fr(e) {
1688
+ function vr(e) {
1683
1689
  return (e || {
1684
1690
  required: !1
1685
1691
  }).required;
1686
1692
  }
1687
- function Lr(e, t) {
1693
+ function Ur(e, t) {
1688
1694
  return t ? Object.keys(t).reduce((n, s) => {
1689
1695
  const i = t[s], o = Y(i, void 0, e);
1690
1696
  return o && (n[s] = o), n;
1691
1697
  }, {}) : {};
1692
1698
  }
1693
- const vr = [
1699
+ const $r = [
1694
1700
  "minItems",
1695
1701
  "maxItems"
1696
- ], Pe = 100;
1697
- function Ur(e, t) {
1702
+ ], Me = 100;
1703
+ function xr(e, t) {
1698
1704
  var o, a;
1699
- const r = h(e.arrayOptions, e, "arrayOptions"), n = me(j((o = r.checkboxGroupOptions) == null ? void 0 : o.customOption), (a = r.checkboxGroupOptions) == null ? void 0 : a.options), s = h(r.validation, r, "validation"), i = $r(t, s.items, n);
1705
+ const r = h(e.arrayOptions, e, "arrayOptions"), n = ce(j((o = r.checkboxGroupOptions) == null ? void 0 : o.customOption), (a = r.checkboxGroupOptions) == null ? void 0 : a.options), s = h(r.validation, r, "validation"), i = wr(t, s.items, n);
1700
1706
  return {
1701
1707
  type: y.ARRAY,
1702
- ...G(vr, s, {
1703
- maxItems: (u) => Math.min(u ?? Pe, Pe)
1708
+ ...G($r, s, {
1709
+ maxItems: (u) => Math.min(u ?? Me, Me)
1704
1710
  }),
1705
1711
  ...i && {
1706
1712
  items: i
1707
1713
  }
1708
1714
  };
1709
1715
  }
1710
- function $r(e, t, r = []) {
1716
+ function wr(e, t, r = []) {
1711
1717
  switch ((t == null ? void 0 : t.itemType) ?? B.UNKNOWN_ITEM_TYPE) {
1712
1718
  case B.STRING:
1713
- return ee(V((t == null ? void 0 : t.stringOptions) ?? {}, r), e);
1719
+ return ee(Z((t == null ? void 0 : t.stringOptions) ?? {}, r), e);
1714
1720
  case B.NUMBER:
1715
- return Q(V((t == null ? void 0 : t.numberOptions) ?? {}, r), e);
1721
+ return Q(Z((t == null ? void 0 : t.numberOptions) ?? {}, r), e);
1716
1722
  case B.BOOLEAN:
1717
- return J(V((t == null ? void 0 : t.booleanOptions) ?? {}, r), e);
1723
+ return J(Z((t == null ? void 0 : t.booleanOptions) ?? {}, r), e);
1718
1724
  case B.OBJECT:
1719
1725
  return te((t == null ? void 0 : t.objectOptions) ?? {}, e);
1720
1726
  default:
1721
1727
  throw Error("Required to specify items type for array");
1722
1728
  }
1723
1729
  }
1724
- function me(e, t) {
1730
+ function ce(e, t) {
1725
1731
  if (!(e || !j(t)))
1726
1732
  return t.map((r) => r.value).filter(j);
1727
1733
  }
1728
- function V(e, t) {
1734
+ function Z(e, t) {
1729
1735
  var r;
1730
1736
  return (r = e.enum) != null && r.length ? e : {
1731
1737
  ...e,
1732
1738
  enum: t
1733
1739
  };
1734
1740
  }
1735
- function xr(e, t) {
1741
+ function Yr(e, t) {
1736
1742
  var i, o, a, u;
1737
- const r = h(e.stringOptions, e, "stringOptions"), n = h(r.validation, r, "validation"), s = me(j((i = r.radioGroupOptions) == null ? void 0 : i.customOption), (o = r.radioGroupOptions) == null ? void 0 : o.options) || me(j((a = r.dropdownOptions) == null ? void 0 : a.customOption), (u = r.dropdownOptions) == null ? void 0 : u.options);
1738
- return ee(V(n, s), t);
1743
+ const r = h(e.stringOptions, e, "stringOptions"), n = h(r.validation, r, "validation"), s = ce(j((i = r.radioGroupOptions) == null ? void 0 : i.customOption), (o = r.radioGroupOptions) == null ? void 0 : o.options) || ce(j((a = r.dropdownOptions) == null ? void 0 : a.customOption), (u = r.dropdownOptions) == null ? void 0 : u.options);
1744
+ return ee(Z(n, s), t);
1739
1745
  }
1740
- function wr(e, t) {
1746
+ function Gr(e, t) {
1741
1747
  var r, n, s, i;
1742
1748
  switch (e.inputType) {
1743
1749
  case M.STRING:
1744
- return xr(e, t);
1750
+ return Yr(e, t);
1745
1751
  case M.ARRAY:
1746
- return Ur(e, t);
1752
+ return xr(e, t);
1747
1753
  case M.NUMBER: {
1748
1754
  const o = h((r = e.numberOptions) == null ? void 0 : r.validation, e, "numberOptions.validation");
1749
1755
  return Q(o, t);
@@ -1781,7 +1787,7 @@ function x(e, t, r) {
1781
1787
  writable: !0
1782
1788
  }) : e[t] = r, e;
1783
1789
  }
1784
- class Nn {
1790
+ class gn {
1785
1791
  validateFields(t, r, n) {
1786
1792
  const s = [
1787
1793
  n ?? []
@@ -1816,7 +1822,7 @@ class Nn {
1816
1822
  if (!n)
1817
1823
  throw new Error(`Missing form ${t} for validation`);
1818
1824
  let s = this.submissionValueProvider ? this.submissionValueProvider(r, n) : r;
1819
- return this.validationMode !== g.UNRESTRICTED_UPDATE && (s = dt(s, n)), {
1825
+ return this.validationMode !== O.UNRESTRICTED_UPDATE && (s = dt(s, n)), {
1820
1826
  ajv: this.initAJvWithSchemas(n, s),
1821
1827
  submission: s,
1822
1828
  currentlyValidatableForm: n
@@ -1853,7 +1859,7 @@ class Nn {
1853
1859
  });
1854
1860
  }
1855
1861
  validateCanUpdateFormNotDisabled(t) {
1856
- return this.validationMode !== g.UNRESTRICTED_UPDATE && this.isFormDisabled(t) ? {
1862
+ return this.validationMode !== O.UNRESTRICTED_UPDATE && this.isFormDisabled(t) ? {
1857
1863
  errors: [
1858
1864
  {
1859
1865
  errorPath: "form.properties.disabled",
@@ -1868,14 +1874,14 @@ class Nn {
1868
1874
  if (!s)
1869
1875
  throw new Error(`Missing precompiled schema for form ${r}`);
1870
1876
  s(n);
1871
- const i = Te(s.errors);
1877
+ const i = Ee(s.errors);
1872
1878
  return this.deriveErrors(r, i, n);
1873
1879
  }
1874
1880
  // eslint-disable-next-line max-params
1875
1881
  validateSubmissionWithFieldMask(t, r, n, s) {
1876
1882
  const i = s.reduce((o, a) => {
1877
1883
  const u = t.getSchema(`${r}#/properties/${a}`);
1878
- return u ? (u(n[a]) || o.push(...Te(u.errors, a)), o) : (o.push({
1884
+ return u ? (u(n[a]) || o.push(...Ee(u.errors, a)), o) : (o.push({
1879
1885
  errorPath: `${a}`,
1880
1886
  errorType: R.UNKNOWN_VALUE_ERROR,
1881
1887
  errorMessage: `${a} property not expected in schema`
@@ -1935,10 +1941,10 @@ class Nn {
1935
1941
  return !!((s = t == null ? void 0 : t.properties) != null && s.disabled || r);
1936
1942
  }
1937
1943
  getFormSchemaMapper() {
1938
- return this.platformisedFieldBasedValidation ? kt(wr, this.validationMode ?? g.UNKNOWN) : Xt(Y, this.validationMode ?? g.UNKNOWN);
1944
+ return this.platformisedFieldBasedValidation ? kt(Gr, this.validationMode ?? O.UNKNOWN) : Xt(Y, this.validationMode ?? O.UNKNOWN);
1939
1945
  }
1940
1946
  initAJvWithSchemas(t, r) {
1941
- const n = this.getFormSchemaMapper(), s = jt(n, this.validationMode !== g.UNRESTRICTED_UPDATE, this.lenientPhoneValidation), i = this.formSchemas.flatMap((u) => (u.nestedForms || []).flatMap(({ targets: f, form: l }) => (f || []).map((p) => ({
1947
+ const n = this.getFormSchemaMapper(), s = jt(n, this.validationMode !== O.UNRESTRICTED_UPDATE, this.lenientPhoneValidation), i = this.formSchemas.flatMap((u) => (u.nestedForms || []).flatMap(({ targets: f, form: l }) => (f || []).map((p) => ({
1942
1948
  ...l,
1943
1949
  id: p
1944
1950
  })))), o = this.getAddressForms(t, r), a = this.getObjectArrayForms(t);
@@ -1956,30 +1962,30 @@ class Nn {
1956
1962
  throw new Error("At least one form schema is required for validation");
1957
1963
  }
1958
1964
  }
1959
- function Yr(e) {
1965
+ function Br(e) {
1960
1966
  return e.validation && h(e.target, e, "target"), !!e.validation;
1961
1967
  }
1962
- function Se(e) {
1968
+ function Pe(e) {
1963
1969
  return !!e.target;
1964
1970
  }
1965
- function yn(e, t) {
1971
+ function On(e, t) {
1966
1972
  return {
1967
- errors: Gr(e, t)
1973
+ errors: qr(e, t)
1968
1974
  };
1969
1975
  }
1970
- function Gr(e, t) {
1976
+ function qr(e, t) {
1971
1977
  var s;
1972
- (s = e.fields) == null || s.forEach(Yr);
1973
- const r = (e.fields ?? []).filter(Se), n = [
1978
+ (s = e.fields) == null || s.forEach(Br);
1979
+ const r = (e.fields ?? []).filter(Pe), n = [
1974
1980
  ...t.fields ?? [],
1975
1981
  ...t.deletedFields ?? []
1976
- ].filter(Se).reduce((i, o) => (i[h(o.target, o, "target")] = o, i), {});
1977
- return r.map((i) => Br(i, n[h(i.target, i, "target")])).filter(It);
1982
+ ].filter(Pe).reduce((i, o) => (i[h(o.target, o, "target")] = o, i), {});
1983
+ return r.map((i) => Hr(i, n[h(i.target, i, "target")])).filter(It);
1978
1984
  }
1979
- function Br(e, t) {
1985
+ function Hr(e, t) {
1980
1986
  if (!t)
1981
1987
  return null;
1982
- const [r] = Object.entries(e.validation ?? {}), [n] = Object.entries(t.validation ?? {}), s = pe(r, n);
1988
+ const [r] = Object.entries(e.validation ?? {}), [n] = Object.entries(t.validation ?? {}), s = de(r, n);
1983
1989
  return s ? {
1984
1990
  errorPath: h(e.target, e, "target"),
1985
1991
  errorType: R.FIELDS_COMPATIBILITY_ERROR,
@@ -1987,7 +1993,7 @@ function Br(e, t) {
1987
1993
  params: s.params
1988
1994
  } : null;
1989
1995
  }
1990
- function pe(e, t) {
1996
+ function de(e, t) {
1991
1997
  if (!t)
1992
1998
  return null;
1993
1999
  if (!e)
@@ -2005,17 +2011,17 @@ function pe(e, t) {
2005
2011
  };
2006
2012
  switch (r) {
2007
2013
  case "string":
2008
- return qr(n, i);
2014
+ return jr(n, i);
2009
2015
  case "array":
2010
- return Hr(n, i);
2016
+ return Xr(n, i);
2011
2017
  case "object":
2012
- return jr(n, i);
2018
+ return kr(n, i);
2013
2019
  default:
2014
2020
  return null;
2015
2021
  }
2016
2022
  }
2017
- function qr(e, t) {
2018
- const r = e.format ?? I.UNDEFINED, n = t.format ?? I.UNDEFINED;
2023
+ function jr(e, t) {
2024
+ const r = e.format ?? A.UNDEFINED, n = t.format ?? A.UNDEFINED;
2019
2025
  return r !== n ? {
2020
2026
  errorMessage: "Incompatible string format",
2021
2027
  params: {
@@ -2024,15 +2030,15 @@ function qr(e, t) {
2024
2030
  }
2025
2031
  } : null;
2026
2032
  }
2027
- function Hr(e, t) {
2033
+ function Xr(e, t) {
2028
2034
  const [r] = Object.entries(e.items ?? {}), [n] = Object.entries(t.items ?? {});
2029
- return pe(r, n);
2035
+ return de(r, n);
2030
2036
  }
2031
- function jr(e, t) {
2037
+ function kr(e, t) {
2032
2038
  const r = Object.keys(e.properties ?? {}).slice().sort(), n = Object.keys(t.properties ?? {}).slice().sort();
2033
2039
  if (n.every((s, i) => s === r[i])) {
2034
2040
  const s = n.reduce((i, o) => {
2035
- const [a] = Object.entries((e.properties ?? {})[o]), [u] = Object.entries((t.properties ?? {})[o]), f = pe(a, u);
2041
+ const [a] = Object.entries((e.properties ?? {})[o]), [u] = Object.entries((t.properties ?? {})[o]), f = de(a, u);
2036
2042
  return f && (i[o] = f), i;
2037
2043
  }, {});
2038
2044
  return Object.keys(s).length ? {
@@ -2048,52 +2054,52 @@ function jr(e, t) {
2048
2054
  }
2049
2055
  };
2050
2056
  }
2051
- var be;
2057
+ var Se;
2052
2058
  (function(e) {
2053
2059
  e.NOT_ASCEND = "NOT_ASCEND", e.FREE = "FREE", e.BASIC = "BASIC", e.PROFESSIONAL = "PROFESSIONAL", e.UNLIMITED = "UNLIMITED";
2054
- })(be || (be = {}));
2055
- var fe;
2060
+ })(Se || (Se = {}));
2061
+ var me;
2056
2062
  (function(e) {
2057
2063
  e.UNKNOWN_FEATURE = "UNKNOWN_FEATURE", e.FILE_UPLOAD_FIELD = "FILE_UPLOAD_FIELD", e.ACCEPT_PAYMENTS = "ACCEPT_PAYMENTS", e.REMOVE_WIX_BRANDING = "REMOVE_WIX_BRANDING", e.SIGNATURE_FIELD = "SIGNATURE_FIELD", e.FILE_DOWNLOAD = "FILE_DOWNLOAD";
2058
- })(fe || (fe = {}));
2059
- const Xr = "FILE_UPLOAD";
2060
- function On(e, t, r) {
2064
+ })(me || (me = {}));
2065
+ const Wr = "FILE_UPLOAD";
2066
+ function _n(e, t, r) {
2061
2067
  var s, i, o, a;
2062
2068
  const n = [
2063
- Wr({
2069
+ zr({
2064
2070
  limit: W((s = e.fieldsLimit) == null ? void 0 : s.limit)
2065
2071
  }),
2066
- Kr({
2072
+ Vr({
2067
2073
  limit: W((i = e.stepsLimit) == null ? void 0 : i.limit)
2068
2074
  }),
2069
- zr({
2075
+ Zr({
2070
2076
  limit: W((o = e.rulesLimit) == null ? void 0 : o.limit)
2071
2077
  }),
2072
- Zr({
2073
- featureRestricted: Vr(on(e.features))
2078
+ Jr({
2079
+ featureRestricted: Qr(an(e.features))
2074
2080
  })
2075
2081
  ];
2076
- if (nn(r)) {
2082
+ if (on(r)) {
2077
2083
  const u = k(r.currentForm), f = k(t);
2078
2084
  return {
2079
- errors: Ce(n, f, u)
2085
+ errors: be(n, f, u)
2080
2086
  };
2081
2087
  }
2082
- if (sn(r)) {
2088
+ if (un(r)) {
2083
2089
  const u = k(), f = k(t);
2084
2090
  return {
2085
- errors: Ce([
2091
+ errors: be([
2086
2092
  ...n,
2087
- kr(W((a = e.formsLimit) == null ? void 0 : a.limit), h(r.existingFormsCount, r, "existingFormsCount"))
2093
+ Kr(W((a = e.formsLimit) == null ? void 0 : a.limit), h(r.existingFormsCount, r, "existingFormsCount"))
2088
2094
  ], f, u)
2089
2095
  };
2090
2096
  }
2091
2097
  throw new Error("Unknown validation action");
2092
2098
  }
2093
- function Ce(e, t, r) {
2099
+ function be(e, t, r) {
2094
2100
  return e.map((n) => n(t, r)).filter(Boolean).map((n) => n);
2095
2101
  }
2096
- const kr = (e, t) => () => ne(e, t, t + 1) ? Jr(e) : null, Wr = ({ limit: e }) => (t, r) => ne(e, r.inputFieldsCount, t.inputFieldsCount) || le(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? Qr(e) : null, Kr = ({ limit: e }) => (t, r) => ne(e, r.stepsCount, t.stepsCount) || le(e, r.stepsCount, t.stepsIds, r.stepsIds) ? en(e) : null, zr = ({ limit: e }) => (t, r) => ne(e, r.rulesCount, t.rulesCount) || le(e, r.rulesCount, t.rulesIds, r.rulesIds) ? tn(e) : null, Zr = ({ featureRestricted: e }) => (t, r) => Ye(t.fileUploadFieldIds, r.fileUploadFieldIds).length && e(fe.FILE_UPLOAD_FIELD) ? rn() : null;
2102
+ const Kr = (e, t) => () => ne(e, t, t + 1) ? en(e) : null, zr = ({ limit: e }) => (t, r) => ne(e, r.inputFieldsCount, t.inputFieldsCount) || pe(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? tn(e) : null, Vr = ({ limit: e }) => (t, r) => ne(e, r.stepsCount, t.stepsCount) || pe(e, r.stepsCount, t.stepsIds, r.stepsIds) ? rn(e) : null, Zr = ({ limit: e }) => (t, r) => ne(e, r.rulesCount, t.rulesCount) || pe(e, r.rulesCount, t.rulesIds, r.rulesIds) ? nn(e) : null, Jr = ({ featureRestricted: e }) => (t, r) => Ye(t.fileUploadFieldIds, r.fileUploadFieldIds).length && e(me.FILE_UPLOAD_FIELD) ? sn() : null;
2097
2103
  function Ye(e, t) {
2098
2104
  const r = new Set(t);
2099
2105
  return e.filter((n) => !r.has(n));
@@ -2101,11 +2107,11 @@ function Ye(e, t) {
2101
2107
  function ne(e, t, r) {
2102
2108
  return r > Math.max(e, t);
2103
2109
  }
2104
- function le(e, t, r, n) {
2110
+ function pe(e, t, r, n) {
2105
2111
  return t > e && Ye(r, n).length && r.length > e;
2106
2112
  }
2107
- const Vr = (e) => (t) => !e.some((r) => r === t);
2108
- function Jr(e) {
2113
+ const Qr = (e) => (t) => !e.some((r) => r === t);
2114
+ function en(e) {
2109
2115
  return {
2110
2116
  errorPath: "form",
2111
2117
  errorType: R.FORMS_COUNT_RESTRICTIONS_ERROR,
@@ -2115,7 +2121,7 @@ function Jr(e) {
2115
2121
  }
2116
2122
  };
2117
2123
  }
2118
- function Qr(e) {
2124
+ function tn(e) {
2119
2125
  return {
2120
2126
  errorPath: "form",
2121
2127
  errorType: R.FIELDS_COUNT_RESTRICTIONS_ERROR,
@@ -2125,7 +2131,7 @@ function Qr(e) {
2125
2131
  }
2126
2132
  };
2127
2133
  }
2128
- function en(e) {
2134
+ function rn(e) {
2129
2135
  return {
2130
2136
  errorPath: "form",
2131
2137
  errorType: R.STEPS_COUNT_RESTRICTIONS_ERROR,
@@ -2135,7 +2141,7 @@ function en(e) {
2135
2141
  }
2136
2142
  };
2137
2143
  }
2138
- function tn(e) {
2144
+ function nn(e) {
2139
2145
  return {
2140
2146
  errorPath: "form",
2141
2147
  errorType: R.RULES_COUNT_RESTRICTIONS_ERROR,
@@ -2145,7 +2151,7 @@ function tn(e) {
2145
2151
  }
2146
2152
  };
2147
2153
  }
2148
- function rn() {
2154
+ function sn() {
2149
2155
  return {
2150
2156
  errorPath: "form",
2151
2157
  errorType: R.FILE_UPLOAD_RESTRICTIONS_ERROR,
@@ -2161,34 +2167,34 @@ function k(e) {
2161
2167
  inputFieldIds: r.map((n) => n.id),
2162
2168
  stepsIds: (t.steps ?? []).map((n) => n.id),
2163
2169
  rulesIds: (t.rules ?? []).map((n) => n.id),
2164
- fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType === Xr).map((n) => n.id)
2170
+ fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType === Wr).map((n) => n.id)
2165
2171
  };
2166
2172
  }
2167
- function nn(e) {
2173
+ function on(e) {
2168
2174
  return "currentForm" in e;
2169
2175
  }
2170
- function sn(e) {
2176
+ function un(e) {
2171
2177
  return "existingFormsCount" in e;
2172
2178
  }
2173
2179
  function W(e) {
2174
2180
  return e ?? Number.MAX_SAFE_INTEGER;
2175
2181
  }
2176
- function on(e) {
2182
+ function an(e) {
2177
2183
  return e ?? [];
2178
2184
  }
2179
- function un(e) {
2185
+ function cn(e) {
2180
2186
  switch (e == null ? void 0 : e.inputType) {
2181
2187
  case M.STRING:
2182
- return an(e.stringOptions) ?? void 0;
2188
+ return mn(e.stringOptions) ?? void 0;
2183
2189
  case M.NUMBER:
2184
- return cn(e.numberOptions) ?? void 0;
2190
+ return fn(e.numberOptions) ?? void 0;
2185
2191
  case M.PAYMENT:
2186
- return mn(e.paymentOptions) ?? void 0;
2192
+ return dn(e.paymentOptions) ?? void 0;
2187
2193
  default:
2188
2194
  return;
2189
2195
  }
2190
2196
  }
2191
- function an(e) {
2197
+ function mn(e) {
2192
2198
  var t, r, n, s, i;
2193
2199
  switch (e == null ? void 0 : e.componentType) {
2194
2200
  case q.DATE_TIME:
@@ -2205,18 +2211,18 @@ function an(e) {
2205
2211
  return;
2206
2212
  }
2207
2213
  }
2208
- function cn(e) {
2214
+ function fn(e) {
2209
2215
  var t, r;
2210
2216
  switch (e == null ? void 0 : e.componentType) {
2211
- case he.NUMBER_INPUT:
2217
+ case Te.NUMBER_INPUT:
2212
2218
  return (t = e == null ? void 0 : e.numberInputOptions) == null ? void 0 : t.default;
2213
- case he.RATING_INPUT:
2219
+ case Te.RATING_INPUT:
2214
2220
  return (r = e == null ? void 0 : e.ratingInputOptions) == null ? void 0 : r.defaultValue;
2215
2221
  default:
2216
2222
  return;
2217
2223
  }
2218
2224
  }
2219
- function mn(e) {
2225
+ function dn(e) {
2220
2226
  var t;
2221
2227
  switch (e == null ? void 0 : e.componentType) {
2222
2228
  case je.PAYMENT_INPUT:
@@ -2225,7 +2231,7 @@ function mn(e) {
2225
2231
  return;
2226
2232
  }
2227
2233
  }
2228
- function fn(e, t, r) {
2234
+ function pn(e, t, r) {
2229
2235
  return t in e ? Object.defineProperty(e, t, {
2230
2236
  value: r,
2231
2237
  enumerable: !0,
@@ -2233,11 +2239,11 @@ function fn(e, t, r) {
2233
2239
  writable: !0
2234
2240
  }) : e[t] = r, e;
2235
2241
  }
2236
- class gn {
2242
+ class Dn {
2237
2243
  validate(t, r) {
2238
2244
  var s;
2239
2245
  const n = ((s = t.formFields) == null ? void 0 : s.reduce((i, { inputOptions: o }) => {
2240
- const a = un(o), u = o == null ? void 0 : o.target;
2246
+ const a = cn(o), u = o == null ? void 0 : o.target;
2241
2247
  return a && u && (i[u] = this.buildSubmissionValue(a, o, r)), i;
2242
2248
  }, {})) || {};
2243
2249
  if (Object.keys(n).length) {
@@ -2268,7 +2274,7 @@ class gn {
2268
2274
  }
2269
2275
  }
2270
2276
  constructor(t) {
2271
- fn(this, "submissionValidator", void 0), this.submissionValidator = t;
2277
+ pn(this, "submissionValidator", void 0), this.submissionValidator = t;
2272
2278
  }
2273
2279
  }
2274
2280
  export {
@@ -2276,15 +2282,15 @@ export {
2276
2282
  S as DateFieldErrorSuffix,
2277
2283
  v as DateTimeFieldErrorSuffix,
2278
2284
  R as ErrorTypes,
2279
- Xr as FILE_UPLOAD_FIELD_TYPE,
2280
- gn as FormSchemaValidator,
2281
- Nn as FormValidator,
2282
- g as ValidationMode,
2283
- yn as compareSchemaBackwardCompatibility,
2284
- un as getDefaultValue,
2285
- Mn as groupErrorsByTarget,
2285
+ Wr as FILE_UPLOAD_FIELD_TYPE,
2286
+ Dn as FormSchemaValidator,
2287
+ gn as FormValidator,
2288
+ O as ValidationMode,
2289
+ On as compareSchemaBackwardCompatibility,
2290
+ cn as getDefaultValue,
2291
+ Sn as groupErrorsByTarget,
2286
2292
  et as isDateAvailable,
2287
2293
  Qe as parseDateInput,
2288
- Sn as parseLocalDate,
2289
- On as validatePremiumRestrictions
2294
+ Cn as parseLocalDate,
2295
+ _n as validatePremiumRestrictions
2290
2296
  };