@wix/form-elements 1.216.0 → 1.218.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.
- package/dist/component/{appointment-rac-obvkIxlW.js → appointment-rac-BHOy_R7-.js} +4 -4
- package/dist/component/{bookings-address-rac-CZa9a87G.js → bookings-address-rac-BCrQv66p.js} +1 -1
- package/dist/component/{bookings-email-rac-m6v3w8mr.js → bookings-email-rac-DmRfdxfb.js} +1 -1
- package/dist/component/{bookings-first-name-rac-Mofwr9rJ.js → bookings-first-name-rac-BXO3f2gd.js} +1 -1
- package/dist/component/{bookings-header-rac-Do1DvJ7m.js → bookings-header-rac-CO6AOevd.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BlRF6uxD.js → bookings-last-name-rac-BJBEASFi.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-dEw_cBua.js → bookings-login-bar-rac-BIAIfq4E.js} +5 -5
- package/dist/component/{bookings-phone-rac-DSHi8EoI.js → bookings-phone-rac-Ccj4N7sU.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-D1pEioKF.js → bookings-rich-text-rac-B3HZ904h.js} +1 -1
- package/dist/component/{checkbox-field-rac-DB6OkQVn.js → checkbox-field-rac-CMLQboNZ.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-DaZpfrAT.js → checkbox-group-field-headless-BoPu_anP.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DQyoeeOu.js → checkbox-group-field-rac-DDkB4mAS.js} +4 -4
- package/dist/component/{checkbox-group-rac-K1CohuW5.js → checkbox-group-rac-CYRjp2pd.js} +1 -1
- package/dist/component/{checkbox-rac-CGPLFefU.js → checkbox-rac-CZtOcpN3.js} +1 -1
- package/dist/component/{contacts-address-rac-D_whIRtO.js → contacts-address-rac-CTcU_s2X.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-yvBgsleM.js → contacts-birthdate-rac-CfoYd88-.js} +1 -1
- package/dist/component/{contacts-company-rac-dv-M3X8Q.js → contacts-company-rac-BFa1_U3K.js} +1 -1
- package/dist/component/{contacts-email-rac-CKFkxHeH.js → contacts-email-rac-DnAo-YRv.js} +1 -1
- package/dist/component/{contacts-first-name-rac-DH_mqqVL.js → contacts-first-name-rac-CXaZzVt1.js} +1 -1
- package/dist/component/{contacts-last-name-rac-D1hViu7t.js → contacts-last-name-rac-DfpXadTk.js} +1 -1
- package/dist/component/{contacts-phone-rac-D5lEUsgX.js → contacts-phone-rac-CCwC37Ud.js} +1 -1
- package/dist/component/{contacts-position-rac-C5WN-obt.js → contacts-position-rac-CvMNYTKL.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-C0TeOnX-.js → contacts-subscribe-rac-vL2jR6hR.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-K4f8cUph.js → contacts-tax-id-rac-CrFhrlkk.js} +1 -1
- package/dist/component/{date-availability-ta65eupL.js → date-availability-5zvsa_GI.js} +1 -1
- package/dist/component/{date-input-field-rac-Bqkxxe1x.js → date-input-field-rac-BQuCwFBz.js} +43 -43
- package/dist/component/{date-input-rac-DOrOad7M.js → date-input-rac-DKzwySbG.js} +1 -1
- package/dist/component/{date-picker-field-rac-dOXkkSun.js → date-picker-field-rac-D-B3bNeU.js} +35 -35
- package/dist/component/{date-picker-rac-D8KBZ1cw.js → date-picker-rac-DjYsBhgo.js} +1 -1
- package/dist/component/{date-time-input-field-rac-BCHUvKca.js → date-time-input-field-rac-BECpkgB2.js} +30 -30
- package/dist/component/{date-time-input-rac-BDFKogee.js → date-time-input-rac-FbqGdzfB.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-D5KPRINX.js → dext-checkbox-group-rac-BtSRkEFa.js} +2 -2
- package/dist/component/{dext-checkbox-rac-x-lXF3ag.js → dext-checkbox-rac-BnC_NNyy.js} +1 -1
- package/dist/component/{dext-date-picker-rac-B5K5u_Ps.js → dext-date-picker-rac-okrwxNz9.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-iVMwamqD.js → dext-date-time-input-rac-DHKRYBUe.js} +1 -1
- package/dist/component/{dext-dropdown-rac-B44HQTxy.js → dext-dropdown-rac-1T_Ufw_J.js} +1 -1
- package/dist/component/{dext-email-rac-B7QAR6VC.js → dext-email-rac-BY3bKE0q.js} +1 -1
- package/dist/component/{dext-number-input-rac-CNa31Dkr.js → dext-number-input-rac-CFnKXD1l.js} +1 -1
- package/dist/component/{dext-phone-rac-28tGCd-t.js → dext-phone-rac-LT9InJXw.js} +1 -1
- package/dist/component/{dext-radio-group-rac-Bl2Ge5R5.js → dext-radio-group-rac-BUebk1mz.js} +2 -2
- package/dist/component/{dext-rating-input-rac-BkH9oIi5.js → dext-rating-input-rac-Drk4nKuW.js} +1 -1
- package/dist/component/{dext-tags-rac-B5FVVp1v.js → dext-tags-rac-BcW2-hht.js} +2 -2
- package/dist/component/{dext-text-area-rac-DKm2CHff.js → dext-text-area-rac-ew2HEDVz.js} +1 -1
- package/dist/component/{dext-text-input-rac-BC55g3Hi.js → dext-text-input-rac-BhhGEp-y.js} +1 -1
- package/dist/component/{dext-url-input-rac-BhoiLcDo.js → dext-url-input-rac-DKPl-POV.js} +1 -1
- package/dist/component/{donation-rac-BKjG_IJW.js → donation-rac-B9w7zHLs.js} +50 -50
- package/dist/component/{dropdown-field-rac-B7Xh6cx8.js → dropdown-field-rac-CyIgQ8Wg.js} +3 -3
- package/dist/component/{dropdown-rac-D8P7PqXg.js → dropdown-rac-D4zhCab8.js} +1 -1
- package/dist/component/{ecom-address-rac-pQw85I2u.js → ecom-address-rac-Cgc5vi9N.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-CtHEpz27.js → ecom-subscription-checkbox-rac-Ci19HUzq.js} +2 -2
- package/dist/component/{email-input-field-rac-DJKj9_MB.js → email-input-field-rac-DX-z3AgN.js} +29 -29
- package/dist/component/{events-repeater-rac-ByGRYJRW.js → events-repeater-rac-XGxIXTW0.js} +29 -29
- package/dist/component/{events-rsvp-rac-CxCauRvS.js → events-rsvp-rac-CMEcer8W.js} +3 -3
- package/dist/component/{field-error-headless-Eh1lMElk.js → field-error-headless-fX6PeZaI.js} +1 -1
- package/dist/component/{field-label-headless-BqMxU6y-.js → field-label-headless-CoLjciGG.js} +5 -5
- package/dist/component/{file-upload-rac-C-3Xb3kq.js → file-upload-rac-N6_i0ky0.js} +88 -88
- package/dist/component/{fixed-payment-rac-XxysAIq7.js → fixed-payment-rac-DB6BtjkX.js} +7 -7
- package/dist/component/{form-DQjFn9dy.js → form-cgY_BDTU.js} +1444 -1426
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-C9tk53e6.js → header-field-rac-CwNoeHks.js} +2 -2
- package/dist/component/{header-rac-CrgF_o1e.js → header-rac-DefKb4Vd.js} +1 -1
- package/dist/component/{image-choice-rac-N7NLy50u.js → image-choice-rac-CZFYVSzP.js} +25 -25
- package/dist/component/{index-CUqQt_K0.js → index-D1ybDmS5.js} +2 -2
- package/dist/component/{index-D539Cefk.js → index-DUVXPUGc.js} +513 -462
- package/dist/component/{isObjectLike-BXMsjR41.js → isObjectLike-93vxyYs1.js} +1 -1
- package/dist/component/multiline-address-field-rac-BN_Tnrno.js +1738 -0
- package/dist/component/{multiline-address-rac-C-8KYUEy.js → multiline-address-rac-CoF0BwJI.js} +1 -1
- package/dist/component/{number-input-field-rac-DrpgAvrT.js → number-input-field-rac-BVdfzTwW.js} +21 -21
- package/dist/component/{number-input-rac-hZ1UmeEv.js → number-input-rac-D-A2ybtN.js} +1 -1
- package/dist/component/{password-rac-DU5Zii-x.js → password-rac-CbUBNreW.js} +26 -26
- package/dist/component/{payment-input-rac-BzDtJSoa.js → payment-input-rac-BXdDXgXp.js} +46 -46
- package/dist/component/{phone-input-field-rac-CBviQ-on.js → phone-input-field-rac-CjmpG7p9.js} +57 -57
- package/dist/component/{phone-rac-B4n-wlvj.js → phone-rac-D3g5Pi2p.js} +1 -1
- package/dist/component/{product-list-rac-CYxJDesp.js → product-list-rac-gJvJaUnQ.js} +35 -35
- package/dist/component/{quiz-radio-group-rac-BLGXjhrS.js → quiz-radio-group-rac-YCKwAv5G.js} +1 -1
- package/dist/component/{radio-button-module-classes-D0gXibxL.js → radio-button-module-classes-2nfcqSJp.js} +15 -15
- package/dist/component/{radio-group-field-rac-D3JvbED7.js → radio-group-field-rac-BBYaCpeZ.js} +4 -4
- package/dist/component/{radio-group-rac-CTk1SQPS.js → radio-group-rac-fYuYtO48.js} +1 -1
- package/dist/component/{rating-input-field-rac-hDcxRY-7.js → rating-input-field-rac-sPYk1nWc.js} +20 -20
- package/dist/component/{rating-input-rac-CaEUM0ek.js → rating-input-rac-CiWqxkPO.js} +1 -1
- package/dist/component/{rich-content-rac.module-D11y-VmE.js → rich-content-rac.module-BjcbV5CK.js} +5 -5
- package/dist/component/{rich-text-field-rac-BNB_Ek6y.js → rich-text-field-rac-DY0vRG7M.js} +4 -4
- package/dist/component/{rich-text-rac-Jo_aEgLC.js → rich-text-rac-BngE_MAC.js} +1 -1
- package/dist/component/{service-dropdown-rac-CzSP8CC_.js → service-dropdown-rac-Db53P8Fm.js} +13 -13
- package/dist/component/{services-multi-choice-rac-aS5N5-xK.js → services-multi-choice-rac-Cr791rTd.js} +9 -9
- package/dist/component/{signature-rac-_tiY8h_q.js → signature-rac-BCNYIwad.js} +41 -41
- package/dist/component/{submit-button-rac-DKc6QhMf.js → submit-button-rac-CyyEQGsz.js} +10 -10
- package/dist/component/{tags-field-rac-BCO7fpBv.js → tags-field-rac-k3HHiR5C.js} +24 -24
- package/dist/component/{tags-rac-q3HNn7ue.js → tags-rac-nOXYrsHv.js} +1 -1
- package/dist/component/{text-area-field-rac-BtQ8MQSN.js → text-area-field-rac-CwpxShM0.js} +22 -22
- package/dist/component/{text-area-rac-Dc2q2Oxx.js → text-area-rac-CkKcWyW5.js} +1 -1
- package/dist/component/{text-input-field-rac-DO5PDRBN.js → text-input-field-rac-DvIwNwn3.js} +3 -3
- package/dist/component/{text-input-headless-BGSp91Fx.js → text-input-headless-vfGxjFpa.js} +9 -9
- package/dist/component/{text-input-rac-B2OO3yVY.js → text-input-rac-DoVI2HNp.js} +1 -1
- package/dist/component/{time-input-rac-BICb4Q3S.js → time-input-rac-DPbbdnl3.js} +16 -16
- package/dist/component/{url-input-field-rac-ptvkhiHT.js → url-input-field-rac-CiZi4oVe.js} +20 -20
- package/dist/component/{url-input-rac-DOLmuZEu.js → url-input-rac-C-IvLpA8.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CJmAINAg.js → use-dropdown-option-class-name-CMgoymWE.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DA0MtxzO.js → use-dropdown-trigger-class-name-BH0PyTH_.js} +24 -24
- package/dist/component/{use-element-state-class-name-ByxBZ_3F.js → use-element-state-class-name-DiZjY9WE.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-lKS_yzxr.js → use-hoverable-input-class-name-QpNEvrdn.js} +2 -2
- package/dist/component/{use-is-forced-open-dropdown-ByGtfX25.js → use-is-forced-open-dropdown-CHh9nGJz.js} +4 -4
- package/dist/component/{use-service-options-base-CsY2G8DG.js → use-service-options-base-BGB82e2d.js} +4 -4
- package/dist/component/use-text-input-class-name-_CjB7lhB.js +6 -0
- package/package.json +2 -2
- package/dist/component/multiline-address-field-rac-B3NKIdbr.js +0 -1664
- package/dist/component/use-text-input-class-name-CbJQlesN.js +0 -6
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
import { e as R, b5 as _, bk as
|
|
2
|
-
import { br as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { parsePhoneNumber as
|
|
8
|
-
import
|
|
9
|
-
import { p as
|
|
10
|
-
import { a as
|
|
11
|
-
import { C as
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
return
|
|
1
|
+
import { e as R, b5 as _, bk as pe, b6 as O, aM as qe, B as He, a_ as je, aT as Xe, aS as I, b0 as Te, b9 as ne, b3 as Le, c as B, aU as M, bw as he, aW as ke, aV as Re, aX as q } from "./form-cgY_BDTU.js";
|
|
2
|
+
import { br as $n } from "./form-cgY_BDTU.js";
|
|
3
|
+
import We from "ajv";
|
|
4
|
+
import Ke from "ajv-errors";
|
|
5
|
+
import ze from "ajv-formats";
|
|
6
|
+
import Ve from "fast-deep-equal";
|
|
7
|
+
import { parsePhoneNumber as Ze, parsePhoneNumberWithError as Je, ParseError as Qe } from "libphonenumber-js/max";
|
|
8
|
+
import et from "libphonenumber-js/metadata.max.json";
|
|
9
|
+
import { p as tt, i as rt } from "./date-availability-5zvsa_GI.js";
|
|
10
|
+
import { a as wn } from "./date-availability-5zvsa_GI.js";
|
|
11
|
+
import { C as nt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
|
+
function J(e) {
|
|
13
|
+
const [t, r = "0"] = String(Math.abs(e)).split("e"), [n, s = ""] = t.split(".");
|
|
14
|
+
return {
|
|
15
|
+
unscaledValue: BigInt(n + s),
|
|
16
|
+
scale: s.length - Number(r)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function oe({ unscaledValue: e, scale: t }, r) {
|
|
20
|
+
return e * 10n ** BigInt(r - t);
|
|
21
|
+
}
|
|
22
|
+
function st(e) {
|
|
23
|
+
return Number.isFinite(e) ? Math.max(J(e).scale, 0) : 0;
|
|
15
24
|
}
|
|
16
|
-
function
|
|
25
|
+
function ve(e) {
|
|
17
26
|
if (!e)
|
|
18
27
|
return {};
|
|
19
28
|
const t = e.split("-");
|
|
@@ -27,7 +36,7 @@ function Le(e) {
|
|
|
27
36
|
}
|
|
28
37
|
return {};
|
|
29
38
|
}
|
|
30
|
-
function
|
|
39
|
+
function it(e) {
|
|
31
40
|
if (!e)
|
|
32
41
|
return [
|
|
33
42
|
"",
|
|
@@ -39,7 +48,7 @@ function nt(e) {
|
|
|
39
48
|
n || ""
|
|
40
49
|
];
|
|
41
50
|
}
|
|
42
|
-
function
|
|
51
|
+
function ot(e) {
|
|
43
52
|
if (!e)
|
|
44
53
|
return !1;
|
|
45
54
|
const [t, r] = e.split(":");
|
|
@@ -50,24 +59,24 @@ var S = /* @__PURE__ */ (function(e) {
|
|
|
50
59
|
})({}), v = /* @__PURE__ */ (function(e) {
|
|
51
60
|
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
61
|
})({});
|
|
53
|
-
function
|
|
62
|
+
function Ue(e) {
|
|
54
63
|
return e.params && "format" in e.params ? e.params.format : void 0;
|
|
55
64
|
}
|
|
56
|
-
function
|
|
57
|
-
return t && (
|
|
65
|
+
function ut(e, t, r) {
|
|
66
|
+
return t && (at(t) ?? ct(e, t) ?? mt(e, t) ?? ft(e, t) ?? dt(e, t, r == null ? void 0 : r.value) ?? $e(e, t, r == null ? void 0 : r.value) ?? t);
|
|
58
67
|
}
|
|
59
|
-
function
|
|
68
|
+
function at(e) {
|
|
60
69
|
if (!(!e || e.errorType !== R.PATTERN_ERROR))
|
|
61
70
|
return {
|
|
62
71
|
...e,
|
|
63
72
|
errorType: R.INVALID_VALUE_FOR_PATTERN_ERROR
|
|
64
73
|
};
|
|
65
74
|
}
|
|
66
|
-
function
|
|
67
|
-
var o,
|
|
75
|
+
function ct(e, t) {
|
|
76
|
+
var o, u;
|
|
68
77
|
if (!t || !(t.errorType === R.MIN_LENGTH_ERROR || t.errorType === R.MAX_LENGTH_ERROR))
|
|
69
78
|
return;
|
|
70
|
-
const n = (o = e == null ? void 0 : e.string) == null ? void 0 : o.minLength, s = (
|
|
79
|
+
const n = (o = e == null ? void 0 : e.string) == null ? void 0 : o.minLength, s = (u = e == null ? void 0 : e.string) == null ? void 0 : u.maxLength, i = n && s;
|
|
71
80
|
if (i && n === s)
|
|
72
81
|
return {
|
|
73
82
|
...t,
|
|
@@ -85,11 +94,11 @@ function ut(e, t) {
|
|
|
85
94
|
}
|
|
86
95
|
};
|
|
87
96
|
}
|
|
88
|
-
function
|
|
89
|
-
var o,
|
|
97
|
+
function mt(e, t) {
|
|
98
|
+
var o, u;
|
|
90
99
|
if (!t || !(t.errorType === R.MIN_ITEMS_ERROR || t.errorType === R.MAX_ITEMS_ERROR))
|
|
91
100
|
return;
|
|
92
|
-
const n = (o = e == null ? void 0 : e.array) == null ? void 0 : o.minItems, s = (
|
|
101
|
+
const n = (o = e == null ? void 0 : e.array) == null ? void 0 : o.minItems, s = (u = e == null ? void 0 : e.array) == null ? void 0 : u.maxItems;
|
|
93
102
|
if (n && s && n === s)
|
|
94
103
|
return {
|
|
95
104
|
...t,
|
|
@@ -97,13 +106,13 @@ function at(e, t) {
|
|
|
97
106
|
errorMessage: `must choose ${n} options`
|
|
98
107
|
};
|
|
99
108
|
}
|
|
100
|
-
function
|
|
101
|
-
var s, i, o,
|
|
109
|
+
function ft(e, t) {
|
|
110
|
+
var s, i, o, u, a, f, l;
|
|
102
111
|
if (!t)
|
|
103
112
|
return;
|
|
104
113
|
const r = t.errorType === R.MIN_VALUE_ERROR || t.errorType === R.MAX_VALUE_ERROR, n = t.errorType === R.MULTIPLE_OF_VALUE_ERROR;
|
|
105
114
|
if (r) {
|
|
106
|
-
const { minPrice: p, maxPrice: c } = ((
|
|
115
|
+
const { minPrice: p, maxPrice: c } = ((u = (o = (i = (s = e == null ? void 0 : e.predefined) == null ? void 0 : s.paymentOptions) == null ? void 0 : i.products) == null ? void 0 : o[0]) == null ? void 0 : u.dynamicPriceOptions) ?? {}, E = ((a = e == null ? void 0 : e.number) == null ? void 0 : a.minimum) ?? p, d = ((f = e == null ? void 0 : e.number) == null ? void 0 : f.maximum) ?? c;
|
|
107
116
|
if (E !== void 0 && d !== void 0 && E !== d)
|
|
108
117
|
return {
|
|
109
118
|
...t,
|
|
@@ -118,7 +127,7 @@ function ct(e, t) {
|
|
|
118
127
|
if (n) {
|
|
119
128
|
const p = (l = e == null ? void 0 : e.number) == null ? void 0 : l.multipleOf;
|
|
120
129
|
if (p) {
|
|
121
|
-
const c =
|
|
130
|
+
const c = st(p);
|
|
122
131
|
return {
|
|
123
132
|
...t,
|
|
124
133
|
errorType: R.DECIMAL_POINT_ERROR,
|
|
@@ -130,15 +139,15 @@ function ct(e, t) {
|
|
|
130
139
|
}
|
|
131
140
|
}
|
|
132
141
|
}
|
|
133
|
-
function
|
|
142
|
+
function $e(e, t, r) {
|
|
134
143
|
const n = (t == null ? void 0 : t.errorType) === R.FORMAT_ERROR;
|
|
135
144
|
if (!t || !n)
|
|
136
145
|
return;
|
|
137
|
-
const s =
|
|
146
|
+
const s = Ue(t);
|
|
138
147
|
if (s !== "date" && s !== "date-time")
|
|
139
148
|
return;
|
|
140
|
-
const { YEAR: i, MONTH: o, DAY:
|
|
141
|
-
if (!
|
|
149
|
+
const { YEAR: i, MONTH: o, DAY: u } = ve(r), a = (i == null ? void 0 : i.length) === 4;
|
|
150
|
+
if (!a && !o && !u)
|
|
142
151
|
return;
|
|
143
152
|
const f = (l) => ({
|
|
144
153
|
...t,
|
|
@@ -147,14 +156,14 @@ function ve(e, t, r) {
|
|
|
147
156
|
suffix: l
|
|
148
157
|
}
|
|
149
158
|
});
|
|
150
|
-
return !
|
|
159
|
+
return !a && !o ? f(S.YEAR_MONTH) : !a && !u ? f(S.YEAR_DAY) : !o && !u ? f(S.MONTH_DAY) : a ? o ? u ? void 0 : f(S.DAY) : f(S.MONTH) : f(S.YEAR);
|
|
151
160
|
}
|
|
152
|
-
function
|
|
161
|
+
function dt(e, t, r) {
|
|
153
162
|
const n = (t == null ? void 0 : t.errorType) === R.FORMAT_ERROR;
|
|
154
|
-
if (!t || !n ||
|
|
163
|
+
if (!t || !n || Ue(t) !== "date-time")
|
|
155
164
|
return;
|
|
156
|
-
const [i, o] =
|
|
157
|
-
if (!
|
|
165
|
+
const [i, o] = it(r), u = $e(e, t, i), { YEAR: a, MONTH: f, DAY: l } = ve(i);
|
|
166
|
+
if (!ot(o)) {
|
|
158
167
|
const c = (d) => ({
|
|
159
168
|
...t,
|
|
160
169
|
errorType: R.INCOMPLETE_DATE_ERROR,
|
|
@@ -162,8 +171,8 @@ function mt(e, t, r) {
|
|
|
162
171
|
suffix: d
|
|
163
172
|
}
|
|
164
173
|
});
|
|
165
|
-
if (((d) => (d == null ? void 0 : d.errorType) === R.INCOMPLETE_DATE_ERROR)(
|
|
166
|
-
switch (
|
|
174
|
+
if (((d) => (d == null ? void 0 : d.errorType) === R.INCOMPLETE_DATE_ERROR)(u))
|
|
175
|
+
switch (u.params.suffix) {
|
|
167
176
|
case S.YEAR_MONTH:
|
|
168
177
|
return c(v.YEAR_MONTH_TIME);
|
|
169
178
|
case S.YEAR_DAY:
|
|
@@ -177,61 +186,61 @@ function mt(e, t, r) {
|
|
|
177
186
|
case S.DAY:
|
|
178
187
|
return c(v.DAY_TIME);
|
|
179
188
|
}
|
|
180
|
-
if (
|
|
189
|
+
if (a || f || l)
|
|
181
190
|
return c(v.TIME);
|
|
182
191
|
}
|
|
183
|
-
return
|
|
192
|
+
return u;
|
|
184
193
|
}
|
|
185
|
-
function
|
|
186
|
-
return Array.isArray(e) ? e.map((t) =>
|
|
194
|
+
function ue(e) {
|
|
195
|
+
return Array.isArray(e) ? e.map((t) => ue(t)) : pt(e) ? Object.keys(e).filter((t) => {
|
|
187
196
|
const r = e[t];
|
|
188
197
|
return !(r == null || r === "" || Array.isArray(r) && r.length === 0);
|
|
189
198
|
}).reduce((t, r) => ({
|
|
190
199
|
...t,
|
|
191
|
-
[r]:
|
|
200
|
+
[r]: ue(e[r])
|
|
192
201
|
}), {}) : e;
|
|
193
202
|
}
|
|
194
|
-
function
|
|
203
|
+
function pt(e) {
|
|
195
204
|
return typeof e == "object" && !Array.isArray(e) && e !== null;
|
|
196
205
|
}
|
|
197
|
-
const
|
|
206
|
+
const lt = (e, t) => {
|
|
198
207
|
const r = {
|
|
199
208
|
...e
|
|
200
209
|
};
|
|
201
210
|
for (const n of t.fields ?? [])
|
|
202
|
-
|
|
211
|
+
Et(n, r) && (r[n.target] = {});
|
|
203
212
|
return r;
|
|
204
|
-
},
|
|
213
|
+
}, Et = (e, t) => {
|
|
205
214
|
var s, i;
|
|
206
|
-
if (!e.target ||
|
|
215
|
+
if (!e.target || Tt(e))
|
|
207
216
|
return !1;
|
|
208
217
|
const r = t[e.target];
|
|
209
|
-
return !(r == null || r === "") || !
|
|
210
|
-
},
|
|
218
|
+
return !(r == null || r === "") || !ht(e) ? !1 : Object.values(((i = (s = e.validation) == null ? void 0 : s.object) == null ? void 0 : i.properties) ?? {}).some((o) => o == null ? void 0 : o.required);
|
|
219
|
+
}, Tt = (e) => {
|
|
211
220
|
var t, r;
|
|
212
221
|
return !!e.nestedFormId || ((r = (t = e.validation) == null ? void 0 : t.predefined) == null ? void 0 : r.format) === _.MULTILINE_ADDRESS;
|
|
213
|
-
},
|
|
222
|
+
}, ht = (e) => {
|
|
214
223
|
var t;
|
|
215
224
|
return !!((t = e.validation) != null && t.required) && !e.hidden && !e.readOnly;
|
|
216
225
|
};
|
|
217
|
-
var H = { exports: {} }, X = { exports: {} },
|
|
218
|
-
function
|
|
219
|
-
return
|
|
226
|
+
var H = { exports: {} }, X = { exports: {} }, Ie;
|
|
227
|
+
function Rt() {
|
|
228
|
+
return Ie || (Ie = 1, (function(e, t) {
|
|
220
229
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
221
|
-
const r =
|
|
230
|
+
const r = Ve, n = ["number", "integer", "string", "boolean", "null"];
|
|
222
231
|
function s() {
|
|
223
232
|
return {
|
|
224
233
|
keyword: "uniqueItemProperties",
|
|
225
234
|
type: "array",
|
|
226
235
|
schemaType: "array",
|
|
227
|
-
compile(o,
|
|
228
|
-
const
|
|
236
|
+
compile(o, u) {
|
|
237
|
+
const a = i(o, u);
|
|
229
238
|
return (f) => {
|
|
230
239
|
if (f.length <= 1)
|
|
231
240
|
return !0;
|
|
232
241
|
for (let l = 0; l < o.length; l++) {
|
|
233
242
|
const p = o[l];
|
|
234
|
-
if (
|
|
243
|
+
if (a[l]) {
|
|
235
244
|
const c = {};
|
|
236
245
|
for (const E of f) {
|
|
237
246
|
if (!E || typeof E != "object")
|
|
@@ -264,29 +273,29 @@ function Tt() {
|
|
|
264
273
|
};
|
|
265
274
|
}
|
|
266
275
|
t.default = s;
|
|
267
|
-
function i(o,
|
|
268
|
-
return o.map((
|
|
276
|
+
function i(o, u) {
|
|
277
|
+
return o.map((a) => {
|
|
269
278
|
var f, l, p;
|
|
270
|
-
const c = (p = (l = (f =
|
|
279
|
+
const c = (p = (l = (f = u.items) === null || f === void 0 ? void 0 : f.properties) === null || l === void 0 ? void 0 : l[a]) === null || p === void 0 ? void 0 : p.type;
|
|
271
280
|
return Array.isArray(c) ? !c.includes("object") && !c.includes("array") : n.includes(c);
|
|
272
281
|
});
|
|
273
282
|
}
|
|
274
283
|
e.exports = s;
|
|
275
284
|
})(X, X.exports)), X.exports;
|
|
276
285
|
}
|
|
277
|
-
var
|
|
278
|
-
function
|
|
279
|
-
return
|
|
280
|
-
var r =
|
|
286
|
+
var Ae = H.exports, Ne;
|
|
287
|
+
function It() {
|
|
288
|
+
return Ne || (Ne = 1, (function(e, t) {
|
|
289
|
+
var r = Ae && Ae.__importDefault || function(i) {
|
|
281
290
|
return i && i.__esModule ? i : { default: i };
|
|
282
291
|
};
|
|
283
292
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
284
|
-
const n = r(
|
|
293
|
+
const n = r(Rt()), s = (i) => i.addKeyword((0, n.default)());
|
|
285
294
|
t.default = s, e.exports = s;
|
|
286
295
|
})(H, H.exports)), H.exports;
|
|
287
296
|
}
|
|
288
|
-
var
|
|
289
|
-
const
|
|
297
|
+
var At = It();
|
|
298
|
+
const Nt = /* @__PURE__ */ pe(At);
|
|
290
299
|
function h(e, t, r) {
|
|
291
300
|
if (typeof w(e) < "u")
|
|
292
301
|
return e;
|
|
@@ -298,10 +307,10 @@ function w(e) {
|
|
|
298
307
|
function j(e) {
|
|
299
308
|
return w(e) !== void 0;
|
|
300
309
|
}
|
|
301
|
-
function
|
|
310
|
+
function yt(e) {
|
|
302
311
|
return e !== null;
|
|
303
312
|
}
|
|
304
|
-
const
|
|
313
|
+
const gt = [
|
|
305
314
|
"ADP",
|
|
306
315
|
"AED",
|
|
307
316
|
"AFA",
|
|
@@ -530,11 +539,11 @@ const Nt = [
|
|
|
530
539
|
"ZWL",
|
|
531
540
|
"ZWN",
|
|
532
541
|
"ZWR"
|
|
533
|
-
],
|
|
534
|
-
function
|
|
535
|
-
return
|
|
542
|
+
], Ot = new Set(gt.map((e) => e.toLowerCase()));
|
|
543
|
+
function _t(e) {
|
|
544
|
+
return Ot.has(e.toLowerCase());
|
|
536
545
|
}
|
|
537
|
-
const
|
|
546
|
+
const ae = "¡---a-zA-Z", xe = "0-9", U = `${ae}${xe}`, ye = "!#$%&'*+/=?^_`{|}~-", Dt = `[${U}${ye}]+(?:\\.[${U}${ye}]+)*`, Mt = "(?:[-\b\v\f-!#-[]-]|\\[- \v\f-])*", Pt = `(?:${Dt}|${Mt})`, St = `(?:[${U}](?:[${U}-]*[${U}])?\\.)+(?:(?:[${xe}]+[${ae}][${U}]*)|(?:[${ae}][${U}]{1,}))`, bt = "^" + Pt + "@" + St + "$", Ct = [
|
|
538
547
|
"aa",
|
|
539
548
|
"ab",
|
|
540
549
|
"ae",
|
|
@@ -723,11 +732,11 @@ const oe = "¡--
|
|
|
723
732
|
"za",
|
|
724
733
|
"zh",
|
|
725
734
|
"zu"
|
|
726
|
-
],
|
|
727
|
-
function Ct(e) {
|
|
728
|
-
return bt.has(e);
|
|
729
|
-
}
|
|
735
|
+
], Ft = new Set(Ct);
|
|
730
736
|
function Lt(e) {
|
|
737
|
+
return Ft.has(e);
|
|
738
|
+
}
|
|
739
|
+
function vt(e) {
|
|
731
740
|
try {
|
|
732
741
|
return !Intl || !Intl.DateTimeFormat().resolvedOptions().timeZone ? !1 : (Intl.DateTimeFormat(void 0, {
|
|
733
742
|
timeZone: e
|
|
@@ -736,50 +745,76 @@ function Lt(e) {
|
|
|
736
745
|
return !1;
|
|
737
746
|
}
|
|
738
747
|
}
|
|
739
|
-
const
|
|
740
|
-
function
|
|
748
|
+
const Ut = "^\\+[1-9]\\d{1,14}$";
|
|
749
|
+
function $t(e, t) {
|
|
741
750
|
const r = {
|
|
742
|
-
...
|
|
743
|
-
phone: t ?
|
|
751
|
+
...ge,
|
|
752
|
+
phone: t ? Ut : ge.phone
|
|
744
753
|
};
|
|
745
754
|
for (const [n, s] of Object.entries(r))
|
|
746
755
|
e.addFormat(n, s);
|
|
747
756
|
}
|
|
748
|
-
const
|
|
757
|
+
const ge = {
|
|
749
758
|
phone: "^[\\d \\u00A0()+\\-.]+$",
|
|
750
|
-
email:
|
|
759
|
+
email: bt,
|
|
751
760
|
"color-hex": /^#(?:[0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,
|
|
752
|
-
currency:
|
|
753
|
-
language:
|
|
754
|
-
"time-zone":
|
|
755
|
-
};
|
|
756
|
-
function
|
|
757
|
-
|
|
761
|
+
currency: _t,
|
|
762
|
+
language: Lt,
|
|
763
|
+
"time-zone": vt
|
|
764
|
+
}, xt = 4, wt = 1e-6;
|
|
765
|
+
function Yt(e) {
|
|
766
|
+
if (!Number.isFinite(e) || e <= 0)
|
|
767
|
+
return () => !1;
|
|
768
|
+
const t = J(e), r = e * wt;
|
|
769
|
+
return (n) => {
|
|
770
|
+
if (!Number.isFinite(n))
|
|
771
|
+
return !0;
|
|
772
|
+
const s = J(n), i = Math.max(s.scale, t.scale), o = oe(t, i), u = oe(s, i) % o;
|
|
773
|
+
if (u === 0n)
|
|
774
|
+
return !0;
|
|
775
|
+
const a = xt * Math.abs(n) * Number.EPSILON, f = u < o - u ? u : o - u;
|
|
776
|
+
return Gt(f, i, Math.min(a, r));
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
function Gt(e, t, r) {
|
|
780
|
+
const n = J(r), s = Math.max(t, n.scale);
|
|
781
|
+
return e * 10n ** BigInt(s - t) <= oe(n, s);
|
|
782
|
+
}
|
|
783
|
+
function Bt(e, t, r) {
|
|
784
|
+
e.removeKeyword("multipleOf"), e.addKeyword({
|
|
785
|
+
keyword: "multipleOf",
|
|
786
|
+
type: "number",
|
|
787
|
+
schemaType: "number",
|
|
788
|
+
errors: !0,
|
|
789
|
+
compile(n) {
|
|
790
|
+
return zt(n);
|
|
791
|
+
}
|
|
792
|
+
}), e.addKeyword({
|
|
758
793
|
keyword: "dateAvailability",
|
|
759
794
|
type: "string",
|
|
760
795
|
errors: !0,
|
|
761
796
|
compile(n) {
|
|
762
|
-
return
|
|
797
|
+
return Vt(n);
|
|
763
798
|
}
|
|
764
799
|
}), t && (e.addKeyword({
|
|
765
800
|
keyword: "phone",
|
|
766
801
|
type: "string",
|
|
767
802
|
errors: !0,
|
|
768
|
-
compile: () =>
|
|
803
|
+
compile: () => qt(r)
|
|
769
804
|
}), e.addKeyword({
|
|
770
805
|
keyword: "allowedCountryCodes",
|
|
771
806
|
type: "string",
|
|
772
807
|
errors: !0,
|
|
773
808
|
compile(n) {
|
|
774
|
-
return
|
|
809
|
+
return jt(n);
|
|
775
810
|
}
|
|
776
811
|
}));
|
|
777
812
|
}
|
|
778
|
-
function
|
|
813
|
+
function qt(e) {
|
|
779
814
|
const t = (r) => {
|
|
780
815
|
if (typeof r != "string")
|
|
781
816
|
return !0;
|
|
782
|
-
const n = [], s =
|
|
817
|
+
const n = [], s = Ht(r, e);
|
|
783
818
|
return s ? (n.push({
|
|
784
819
|
keyword: s.keyword,
|
|
785
820
|
params: {
|
|
@@ -790,27 +825,27 @@ function $t(e) {
|
|
|
790
825
|
};
|
|
791
826
|
return t;
|
|
792
827
|
}
|
|
793
|
-
function
|
|
828
|
+
function Ht(e, t) {
|
|
794
829
|
try {
|
|
795
|
-
const r =
|
|
830
|
+
const r = Je(e);
|
|
796
831
|
return (t ? r.isPossible() : r.isValid()) ? void 0 : {
|
|
797
832
|
keyword: "format",
|
|
798
833
|
message: "Phone number for the country code provided is invalid"
|
|
799
834
|
};
|
|
800
835
|
} catch (r) {
|
|
801
|
-
return r instanceof
|
|
836
|
+
return r instanceof Qe ? Xt(r, e) : {
|
|
802
837
|
keyword: "format",
|
|
803
838
|
message: "Phone number could not be parsed"
|
|
804
839
|
};
|
|
805
840
|
}
|
|
806
841
|
}
|
|
807
|
-
function
|
|
842
|
+
function jt(e) {
|
|
808
843
|
const t = (r) => {
|
|
809
844
|
if (typeof r != "string")
|
|
810
845
|
return !0;
|
|
811
846
|
const n = [];
|
|
812
847
|
try {
|
|
813
|
-
const s =
|
|
848
|
+
const s = Ze(r), i = s == null ? void 0 : s.country;
|
|
814
849
|
if ((!i || !e.includes(i)) && e.length > 0)
|
|
815
850
|
return n.push({
|
|
816
851
|
keyword: "allowedCountryCodes",
|
|
@@ -827,7 +862,7 @@ function wt(e) {
|
|
|
827
862
|
};
|
|
828
863
|
return t;
|
|
829
864
|
}
|
|
830
|
-
function
|
|
865
|
+
function Xt(e, t) {
|
|
831
866
|
switch (e.message) {
|
|
832
867
|
case "INVALID_COUNTRY":
|
|
833
868
|
return {
|
|
@@ -840,7 +875,7 @@ function Yt(e, t) {
|
|
|
840
875
|
message: "Text provided is not a phone number"
|
|
841
876
|
};
|
|
842
877
|
case "TOO_SHORT":
|
|
843
|
-
return
|
|
878
|
+
return kt(t);
|
|
844
879
|
case "TOO_LONG":
|
|
845
880
|
return {
|
|
846
881
|
keyword: "format",
|
|
@@ -854,9 +889,9 @@ function Yt(e, t) {
|
|
|
854
889
|
};
|
|
855
890
|
}
|
|
856
891
|
}
|
|
857
|
-
function
|
|
858
|
-
const t =
|
|
859
|
-
return t ?
|
|
892
|
+
function kt(e) {
|
|
893
|
+
const t = Wt(e);
|
|
894
|
+
return t ? Kt(t, e) ? {
|
|
860
895
|
keyword: "format",
|
|
861
896
|
message: "Phone number is missing"
|
|
862
897
|
} : {
|
|
@@ -867,24 +902,41 @@ function Gt(e) {
|
|
|
867
902
|
message: "Phone number has incorrect country code"
|
|
868
903
|
};
|
|
869
904
|
}
|
|
870
|
-
function
|
|
905
|
+
function Wt(e) {
|
|
871
906
|
var r;
|
|
872
907
|
const t = e.trim().replace(/^\+/, "");
|
|
873
908
|
for (let n = 4; n > 0; n--) {
|
|
874
909
|
const s = t.substring(0, n);
|
|
875
|
-
if ((r =
|
|
910
|
+
if ((r = et.country_calling_codes[s]) == null ? void 0 : r[0])
|
|
876
911
|
return s;
|
|
877
912
|
}
|
|
878
913
|
}
|
|
879
|
-
function
|
|
914
|
+
function Kt(e, t) {
|
|
880
915
|
return t.replace(/^\+/, "") === e;
|
|
881
916
|
}
|
|
882
|
-
function
|
|
917
|
+
function zt(e) {
|
|
918
|
+
const t = Yt(e), r = (n) => {
|
|
919
|
+
if (typeof n != "number" || t(n))
|
|
920
|
+
return !0;
|
|
921
|
+
const s = [
|
|
922
|
+
{
|
|
923
|
+
keyword: "multipleOf",
|
|
924
|
+
message: `must be multiple of ${e}`,
|
|
925
|
+
params: {
|
|
926
|
+
multipleOf: e
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
];
|
|
930
|
+
return r.errors = s, !1;
|
|
931
|
+
};
|
|
932
|
+
return r;
|
|
933
|
+
}
|
|
934
|
+
function Vt(e) {
|
|
883
935
|
const t = (r) => {
|
|
884
936
|
if (typeof r != "string")
|
|
885
937
|
return !0;
|
|
886
|
-
const n =
|
|
887
|
-
return n ?
|
|
938
|
+
const n = tt(r);
|
|
939
|
+
return n ? rt(n, e) ? !0 : (t.errors = [
|
|
888
940
|
{
|
|
889
941
|
keyword: "dateAvailability",
|
|
890
942
|
message: "Date is not available"
|
|
@@ -893,16 +945,15 @@ function Ht(e) {
|
|
|
893
945
|
};
|
|
894
946
|
return t;
|
|
895
947
|
}
|
|
896
|
-
function
|
|
948
|
+
function Zt(e, t, r) {
|
|
897
949
|
return function(s) {
|
|
898
|
-
const i = new
|
|
899
|
-
allErrors: !0
|
|
900
|
-
multipleOfPrecision: 8
|
|
950
|
+
const i = new We({
|
|
951
|
+
allErrors: !0
|
|
901
952
|
});
|
|
902
|
-
return
|
|
953
|
+
return ze(i), $t(i, t), Bt(i, t, r), Ke(i), Nt(i), s.forEach((o) => {
|
|
903
954
|
if (!i.getSchema(h(o.id, o, "id"))) {
|
|
904
|
-
const
|
|
905
|
-
|
|
955
|
+
const a = e(o);
|
|
956
|
+
a && i.addSchema(a);
|
|
906
957
|
}
|
|
907
958
|
}), i;
|
|
908
959
|
};
|
|
@@ -910,9 +961,9 @@ function jt(e, t, r) {
|
|
|
910
961
|
var y = /* @__PURE__ */ (function(e) {
|
|
911
962
|
return e.OBJECT = "object", e.STRING = "string", e.NUMBER = "number", e.INTEGER = "integer", e.BOOLEAN = "boolean", e.ARRAY = "array", e;
|
|
912
963
|
})({});
|
|
913
|
-
function
|
|
964
|
+
function Jt(e, t) {
|
|
914
965
|
return function(c) {
|
|
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((
|
|
966
|
+
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((A) => !a(A)).filter(i).map((A) => h(A.target, A, "target"));
|
|
916
967
|
return {
|
|
917
968
|
$id: h(c.id, c, "id"),
|
|
918
969
|
type: y.OBJECT,
|
|
@@ -926,7 +977,7 @@ function Xt(e, t) {
|
|
|
926
977
|
...p,
|
|
927
978
|
...c
|
|
928
979
|
].reduce((E, d) => {
|
|
929
|
-
const m =
|
|
980
|
+
const m = u(d);
|
|
930
981
|
return m && (E[h(d.target, d, "target")] = m), E;
|
|
931
982
|
}, {});
|
|
932
983
|
}
|
|
@@ -944,16 +995,16 @@ function Xt(e, t) {
|
|
|
944
995
|
function o(p) {
|
|
945
996
|
return !!Object.keys(p.validation ?? {}).length || i(p);
|
|
946
997
|
}
|
|
947
|
-
function
|
|
998
|
+
function u(p) {
|
|
948
999
|
const c = {
|
|
949
1000
|
$id: h(p.id, p, "id"),
|
|
950
1001
|
...l(p) ? {
|
|
951
1002
|
$ref: p.target
|
|
952
1003
|
} : e(p.validation, w(p.target), t)
|
|
953
1004
|
};
|
|
954
|
-
return
|
|
1005
|
+
return a(p) ? f(c) : c;
|
|
955
1006
|
}
|
|
956
|
-
function
|
|
1007
|
+
function a(p) {
|
|
957
1008
|
return n(p) || s(p);
|
|
958
1009
|
}
|
|
959
1010
|
function f(p) {
|
|
@@ -967,9 +1018,9 @@ function Xt(e, t) {
|
|
|
967
1018
|
return !!p.nestedFormId || ((E = (c = p.validation) == null ? void 0 : c.predefined) == null ? void 0 : E.format) === _.MULTILINE_ADDRESS;
|
|
968
1019
|
}
|
|
969
1020
|
}
|
|
970
|
-
function
|
|
1021
|
+
function Qt(e, t) {
|
|
971
1022
|
return function(l) {
|
|
972
|
-
const p = l.formFields || [], c = l.deletedFormFields || [], E = p.filter(
|
|
1023
|
+
const p = l.formFields || [], c = l.deletedFormFields || [], E = p.filter(u), d = c.filter(u), m = n(E, d);
|
|
973
1024
|
return {
|
|
974
1025
|
$id: h(l.id, l, "id"),
|
|
975
1026
|
type: y.OBJECT,
|
|
@@ -986,7 +1037,7 @@ function kt(e, t) {
|
|
|
986
1037
|
...f,
|
|
987
1038
|
...l
|
|
988
1039
|
].reduce((p, c) => {
|
|
989
|
-
const E = h(c.inputOptions, c, "inputOptions"), d =
|
|
1040
|
+
const E = h(c.inputOptions, c, "inputOptions"), d = a(h(c.id, c, "id"), E);
|
|
990
1041
|
return d && (p[h(E.target, c, "target")] = d), p;
|
|
991
1042
|
}, {});
|
|
992
1043
|
}
|
|
@@ -1000,10 +1051,10 @@ function kt(e, t) {
|
|
|
1000
1051
|
function o(f) {
|
|
1001
1052
|
return f.required ?? !1;
|
|
1002
1053
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return f.fieldType ===
|
|
1054
|
+
function u(f) {
|
|
1055
|
+
return f.fieldType === qe.INPUT;
|
|
1005
1056
|
}
|
|
1006
|
-
function
|
|
1057
|
+
function a(f, l) {
|
|
1007
1058
|
return {
|
|
1008
1059
|
$id: f,
|
|
1009
1060
|
...e(l, t)
|
|
@@ -1013,10 +1064,10 @@ function kt(e, t) {
|
|
|
1013
1064
|
function G(e, t, r = {}) {
|
|
1014
1065
|
return e.reduce((n, s) => {
|
|
1015
1066
|
const i = t[s], o = r[s] ? r[s](i) : i;
|
|
1016
|
-
return typeof w(o) < "u" && !
|
|
1067
|
+
return typeof w(o) < "u" && !tr(s, o) && (n[s] = o), n;
|
|
1017
1068
|
}, {});
|
|
1018
1069
|
}
|
|
1019
|
-
function
|
|
1070
|
+
function er(e, t) {
|
|
1020
1071
|
if (t.validationMessages) {
|
|
1021
1072
|
const r = t.validationMessages;
|
|
1022
1073
|
return {
|
|
@@ -1028,78 +1079,78 @@ function Wt(e, t) {
|
|
|
1028
1079
|
}
|
|
1029
1080
|
return {};
|
|
1030
1081
|
}
|
|
1031
|
-
function
|
|
1082
|
+
function tr(e, t) {
|
|
1032
1083
|
return e === "enum" && Array.isArray(t) && !t.length;
|
|
1033
1084
|
}
|
|
1034
|
-
function
|
|
1085
|
+
function Q(e, t) {
|
|
1035
1086
|
return {
|
|
1036
1087
|
type: y.BOOLEAN,
|
|
1037
|
-
...
|
|
1088
|
+
...rr(e, t)
|
|
1038
1089
|
};
|
|
1039
1090
|
}
|
|
1040
|
-
function
|
|
1091
|
+
function rr(e, t) {
|
|
1041
1092
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1042
|
-
...G(
|
|
1093
|
+
...G(He, e)
|
|
1043
1094
|
} : {};
|
|
1044
1095
|
}
|
|
1045
|
-
function
|
|
1096
|
+
function ee(e, t) {
|
|
1046
1097
|
return {
|
|
1047
1098
|
type: y.NUMBER,
|
|
1048
1099
|
maximum: Number.MAX_SAFE_INTEGER,
|
|
1049
1100
|
minimum: Number.MIN_SAFE_INTEGER,
|
|
1050
|
-
...
|
|
1101
|
+
...nr(e, t)
|
|
1051
1102
|
};
|
|
1052
1103
|
}
|
|
1053
|
-
function
|
|
1104
|
+
function nr(e, t) {
|
|
1054
1105
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1055
|
-
...G(
|
|
1106
|
+
...G(je, e, {
|
|
1056
1107
|
maximum: (r) => Math.min(r ?? Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER),
|
|
1057
1108
|
minimum: (r) => Math.max(r ?? Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER),
|
|
1058
1109
|
multipleOf: (r) => r <= 0 ? 1 : r
|
|
1059
1110
|
})
|
|
1060
1111
|
} : {};
|
|
1061
1112
|
}
|
|
1062
|
-
const
|
|
1113
|
+
const sr = [
|
|
1063
1114
|
"minItems",
|
|
1064
1115
|
"maxItems"
|
|
1065
|
-
],
|
|
1066
|
-
function
|
|
1067
|
-
const n =
|
|
1116
|
+
], ce = 100;
|
|
1117
|
+
function Oe(e, t) {
|
|
1118
|
+
const n = or(t, (e || {}).items);
|
|
1068
1119
|
return {
|
|
1069
1120
|
type: y.ARRAY,
|
|
1070
|
-
maxItems:
|
|
1071
|
-
...
|
|
1121
|
+
maxItems: ce,
|
|
1122
|
+
...ir(e, t),
|
|
1072
1123
|
...n && {
|
|
1073
1124
|
items: n
|
|
1074
1125
|
}
|
|
1075
1126
|
};
|
|
1076
1127
|
}
|
|
1077
|
-
function
|
|
1128
|
+
function ir(e, t) {
|
|
1078
1129
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1079
|
-
|
|
1130
|
+
...we(e)
|
|
1080
1131
|
} : {};
|
|
1081
1132
|
}
|
|
1082
|
-
function
|
|
1083
|
-
return G(
|
|
1084
|
-
maxItems: (t) => Math.min(t ??
|
|
1133
|
+
function we(e) {
|
|
1134
|
+
return G(sr, e, {
|
|
1135
|
+
maxItems: (t) => Math.min(t ?? ce, ce)
|
|
1085
1136
|
});
|
|
1086
1137
|
}
|
|
1087
|
-
function
|
|
1138
|
+
function or(e, t) {
|
|
1088
1139
|
if (t)
|
|
1089
1140
|
return Y(t, void 0, e);
|
|
1090
1141
|
throw Error("Required to specify items type for array");
|
|
1091
1142
|
}
|
|
1092
|
-
function
|
|
1143
|
+
function ur(e, t) {
|
|
1093
1144
|
return {
|
|
1094
1145
|
type: y.INTEGER,
|
|
1095
1146
|
maximum: Number.MAX_SAFE_INTEGER,
|
|
1096
1147
|
minimum: Number.MIN_SAFE_INTEGER,
|
|
1097
|
-
...
|
|
1148
|
+
...ar(e, t)
|
|
1098
1149
|
};
|
|
1099
1150
|
}
|
|
1100
|
-
function
|
|
1151
|
+
function ar(e, t) {
|
|
1101
1152
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1102
|
-
...G(
|
|
1153
|
+
...G(Xe, e, {
|
|
1103
1154
|
maximum: (r) => Math.min(r ?? Number.MAX_SAFE_INTEGER, Number.MAX_SAFE_INTEGER),
|
|
1104
1155
|
minimum: (r) => Math.max(r ?? Number.MIN_SAFE_INTEGER, Number.MIN_SAFE_INTEGER)
|
|
1105
1156
|
})
|
|
@@ -1109,20 +1160,20 @@ function K(e, t, r = O.UNKNOWN) {
|
|
|
1109
1160
|
const { format: n } = t;
|
|
1110
1161
|
switch (n) {
|
|
1111
1162
|
case _.WIX_FILE:
|
|
1112
|
-
return Y(
|
|
1163
|
+
return Y(_e[_.WIX_FILE], r);
|
|
1113
1164
|
case _.SCHEDULING:
|
|
1114
|
-
return Y(
|
|
1165
|
+
return Y(_e[_.SCHEDULING], r);
|
|
1115
1166
|
case _.PAYMENT:
|
|
1116
|
-
return
|
|
1167
|
+
return mr(t.paymentOptions, r);
|
|
1117
1168
|
case _.OBJECT_ARRAY:
|
|
1118
|
-
return
|
|
1169
|
+
return cr(h(e, {}, "target"), t.objectArrayOptions ?? {}, r);
|
|
1119
1170
|
case _.MULTILINE_ADDRESS:
|
|
1120
1171
|
throw new Error("Multiline address field is handled as referenced field");
|
|
1121
1172
|
default:
|
|
1122
1173
|
throw new Error(`Unknown predefined validation type ${n}`);
|
|
1123
1174
|
}
|
|
1124
1175
|
}
|
|
1125
|
-
function
|
|
1176
|
+
function cr(e, t, r) {
|
|
1126
1177
|
return {
|
|
1127
1178
|
type: y.ARRAY,
|
|
1128
1179
|
...t.maxItems && r !== O.UNRESTRICTED_UPDATE && {
|
|
@@ -1136,7 +1187,7 @@ function rr(e, t, r) {
|
|
|
1136
1187
|
}
|
|
1137
1188
|
};
|
|
1138
1189
|
}
|
|
1139
|
-
function
|
|
1190
|
+
function mr(e, t) {
|
|
1140
1191
|
if (t === O.UNRESTRICTED_UPDATE)
|
|
1141
1192
|
return {
|
|
1142
1193
|
type: y.ARRAY,
|
|
@@ -1170,7 +1221,7 @@ function nr(e, t) {
|
|
|
1170
1221
|
}
|
|
1171
1222
|
};
|
|
1172
1223
|
const r = e.products || [], { minItems: n, maxItems: s } = e, i = r.map((o) => {
|
|
1173
|
-
const { minimum:
|
|
1224
|
+
const { minimum: u, maximum: a } = o.quantityLimit || {};
|
|
1174
1225
|
return Y({
|
|
1175
1226
|
object: {
|
|
1176
1227
|
properties: {
|
|
@@ -1183,13 +1234,13 @@ function nr(e, t) {
|
|
|
1183
1234
|
required: !0
|
|
1184
1235
|
},
|
|
1185
1236
|
price: {
|
|
1186
|
-
...
|
|
1237
|
+
...fr(o),
|
|
1187
1238
|
required: !0
|
|
1188
1239
|
},
|
|
1189
1240
|
quantity: {
|
|
1190
1241
|
integer: {
|
|
1191
|
-
minimum:
|
|
1192
|
-
maximum:
|
|
1242
|
+
minimum: u ?? 1,
|
|
1243
|
+
maximum: a ?? 1e5
|
|
1193
1244
|
},
|
|
1194
1245
|
required: !0
|
|
1195
1246
|
},
|
|
@@ -1208,7 +1259,7 @@ function nr(e, t) {
|
|
|
1208
1259
|
type: y.OBJECT,
|
|
1209
1260
|
anyOf: i
|
|
1210
1261
|
},
|
|
1211
|
-
|
|
1262
|
+
...we({
|
|
1212
1263
|
minItems: n,
|
|
1213
1264
|
maxItems: s
|
|
1214
1265
|
}),
|
|
@@ -1220,10 +1271,10 @@ function nr(e, t) {
|
|
|
1220
1271
|
}
|
|
1221
1272
|
};
|
|
1222
1273
|
}
|
|
1223
|
-
function
|
|
1274
|
+
function fr(e) {
|
|
1224
1275
|
const { priceType: t } = e;
|
|
1225
1276
|
switch (t) {
|
|
1226
|
-
case
|
|
1277
|
+
case Te.FIXED_PRICE: {
|
|
1227
1278
|
const r = h(e.fixedPriceOptions, e, "fixedPriceOptions");
|
|
1228
1279
|
return {
|
|
1229
1280
|
string: {
|
|
@@ -1233,7 +1284,7 @@ function sr(e) {
|
|
|
1233
1284
|
}
|
|
1234
1285
|
};
|
|
1235
1286
|
}
|
|
1236
|
-
case
|
|
1287
|
+
case Te.DYNAMIC_PRICE: {
|
|
1237
1288
|
const r = h(e.dynamicPriceOptions, e, "dynamicPriceOptions"), n = h(r.minPrice, r, "minPrice"), { maxPrice: s } = r;
|
|
1238
1289
|
return {
|
|
1239
1290
|
number: {
|
|
@@ -1249,7 +1300,7 @@ function sr(e) {
|
|
|
1249
1300
|
throw new Error(`Unknown price type ${t}`);
|
|
1250
1301
|
}
|
|
1251
1302
|
}
|
|
1252
|
-
const
|
|
1303
|
+
const _e = {
|
|
1253
1304
|
[_.WIX_FILE]: {
|
|
1254
1305
|
array: {
|
|
1255
1306
|
maxItems: 30,
|
|
@@ -1296,13 +1347,13 @@ const ge = {
|
|
|
1296
1347
|
properties: {
|
|
1297
1348
|
startDate: {
|
|
1298
1349
|
string: {
|
|
1299
|
-
format:
|
|
1350
|
+
format: I.DATE_TIME
|
|
1300
1351
|
},
|
|
1301
1352
|
required: !0
|
|
1302
1353
|
},
|
|
1303
1354
|
endDate: {
|
|
1304
1355
|
string: {
|
|
1305
|
-
format:
|
|
1356
|
+
format: I.DATE_TIME
|
|
1306
1357
|
},
|
|
1307
1358
|
required: !0
|
|
1308
1359
|
},
|
|
@@ -1317,41 +1368,41 @@ const ge = {
|
|
|
1317
1368
|
}
|
|
1318
1369
|
}
|
|
1319
1370
|
};
|
|
1320
|
-
var z = { exports: {} },
|
|
1321
|
-
function
|
|
1322
|
-
return
|
|
1371
|
+
var z = { exports: {} }, dr = z.exports, De;
|
|
1372
|
+
function pr() {
|
|
1373
|
+
return De || (De = 1, (function(e, t) {
|
|
1323
1374
|
(function(r, n) {
|
|
1324
1375
|
e.exports = n();
|
|
1325
|
-
})(
|
|
1376
|
+
})(dr, (function() {
|
|
1326
1377
|
var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, n = {};
|
|
1327
1378
|
return function(s, i, o) {
|
|
1328
|
-
var
|
|
1379
|
+
var u, a = function(c, E, d) {
|
|
1329
1380
|
d === void 0 && (d = {});
|
|
1330
1381
|
var m = new Date(c), T = (function(g, N) {
|
|
1331
1382
|
N === void 0 && (N = {});
|
|
1332
|
-
var
|
|
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:
|
|
1383
|
+
var A = N.timeZoneName || "short", P = g + "|" + A, D = n[P];
|
|
1384
|
+
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: A }), n[P] = D), D;
|
|
1334
1385
|
})(E, d);
|
|
1335
1386
|
return T.formatToParts(m);
|
|
1336
1387
|
}, f = function(c, E) {
|
|
1337
|
-
for (var d =
|
|
1338
|
-
var g = d[T], N = g.type,
|
|
1339
|
-
P >= 0 && (m[P] = parseInt(
|
|
1388
|
+
for (var d = a(c, E), m = [], T = 0; T < d.length; T += 1) {
|
|
1389
|
+
var g = d[T], N = g.type, A = g.value, P = r[N];
|
|
1390
|
+
P >= 0 && (m[P] = parseInt(A, 10));
|
|
1340
1391
|
}
|
|
1341
|
-
var D = m[3],
|
|
1342
|
-
return (o.utc(b).valueOf() - (
|
|
1392
|
+
var D = m[3], F = D === 24 ? 0 : D, b = m[0] + "-" + m[1] + "-" + m[2] + " " + F + ":" + m[4] + ":" + m[5] + ":000", L = +c;
|
|
1393
|
+
return (o.utc(b).valueOf() - (L -= L % 1e3)) / 6e4;
|
|
1343
1394
|
}, l = i.prototype;
|
|
1344
1395
|
l.tz = function(c, E) {
|
|
1345
|
-
c === void 0 && (c =
|
|
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),
|
|
1347
|
-
if (!Number(
|
|
1348
|
-
else if (d = o(g, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(
|
|
1396
|
+
c === void 0 && (c = u);
|
|
1397
|
+
var d, m = this.utcOffset(), T = this.toDate(), g = T.toLocaleString("en-US", { timeZone: c }), N = Math.round((T - new Date(g)) / 1e3 / 60), A = 15 * -Math.round(T.getTimezoneOffset() / 15) - N;
|
|
1398
|
+
if (!Number(A)) d = this.utcOffset(0, E);
|
|
1399
|
+
else if (d = o(g, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(A, !0), E) {
|
|
1349
1400
|
var P = d.utcOffset();
|
|
1350
1401
|
d = d.add(m - P, "minute");
|
|
1351
1402
|
}
|
|
1352
1403
|
return d.$x.$timezone = c, d;
|
|
1353
1404
|
}, l.offsetName = function(c) {
|
|
1354
|
-
var E = this.$x.$timezone || o.tz.guess(), d =
|
|
1405
|
+
var E = this.$x.$timezone || o.tz.guess(), d = a(this.valueOf(), E, { timeZoneName: c }).find((function(m) {
|
|
1355
1406
|
return m.type.toLowerCase() === "timezonename";
|
|
1356
1407
|
}));
|
|
1357
1408
|
return d && d.value;
|
|
@@ -1362,148 +1413,148 @@ function or() {
|
|
|
1362
1413
|
var d = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
1363
1414
|
return p.call(d, c, E).tz(this.$x.$timezone, !0);
|
|
1364
1415
|
}, o.tz = function(c, E, d) {
|
|
1365
|
-
var m = d && E, T = d || E ||
|
|
1416
|
+
var m = d && E, T = d || E || u, g = f(+o(), T);
|
|
1366
1417
|
if (typeof c != "string") return o(c).tz(T);
|
|
1367
|
-
var N = (function(
|
|
1368
|
-
var C =
|
|
1418
|
+
var N = (function(F, b, L) {
|
|
1419
|
+
var C = F - 60 * b * 1e3, $ = f(C, L);
|
|
1369
1420
|
if (b === $) return [C, b];
|
|
1370
|
-
var
|
|
1371
|
-
return $ ===
|
|
1372
|
-
})(o.utc(c, m).valueOf(), g, T),
|
|
1421
|
+
var ie = f(C -= 60 * ($ - b) * 1e3, L);
|
|
1422
|
+
return $ === ie ? [C, $] : [F - 60 * Math.min($, ie) * 1e3, Math.max($, ie)];
|
|
1423
|
+
})(o.utc(c, m).valueOf(), g, T), A = N[0], P = N[1], D = o(A).utcOffset(P);
|
|
1373
1424
|
return D.$x.$timezone = T, D;
|
|
1374
1425
|
}, o.tz.guess = function() {
|
|
1375
1426
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1376
1427
|
}, o.tz.setDefault = function(c) {
|
|
1377
|
-
|
|
1428
|
+
u = c;
|
|
1378
1429
|
};
|
|
1379
1430
|
};
|
|
1380
1431
|
}));
|
|
1381
1432
|
})(z)), z.exports;
|
|
1382
1433
|
}
|
|
1383
|
-
var
|
|
1384
|
-
const
|
|
1385
|
-
var V = { exports: {} },
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1434
|
+
var lr = pr();
|
|
1435
|
+
const Er = /* @__PURE__ */ pe(lr);
|
|
1436
|
+
var V = { exports: {} }, Tr = V.exports, Me;
|
|
1437
|
+
function hr() {
|
|
1438
|
+
return Me || (Me = 1, (function(e, t) {
|
|
1388
1439
|
(function(r, n) {
|
|
1389
1440
|
e.exports = n();
|
|
1390
|
-
})(
|
|
1441
|
+
})(Tr, (function() {
|
|
1391
1442
|
var r = "minute", n = /[+-]\d\d(?::?\d\d)?/g, s = /([+-]|\d\d)/g;
|
|
1392
|
-
return function(i, o,
|
|
1393
|
-
var
|
|
1394
|
-
|
|
1443
|
+
return function(i, o, u) {
|
|
1444
|
+
var a = o.prototype;
|
|
1445
|
+
u.utc = function(m) {
|
|
1395
1446
|
var T = { date: m, utc: !0, args: arguments };
|
|
1396
1447
|
return new o(T);
|
|
1397
|
-
},
|
|
1398
|
-
var T =
|
|
1448
|
+
}, a.utc = function(m) {
|
|
1449
|
+
var T = u(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1399
1450
|
return m ? T.add(this.utcOffset(), r) : T;
|
|
1400
|
-
},
|
|
1401
|
-
return
|
|
1451
|
+
}, a.local = function() {
|
|
1452
|
+
return u(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1402
1453
|
};
|
|
1403
|
-
var f =
|
|
1404
|
-
|
|
1454
|
+
var f = a.parse;
|
|
1455
|
+
a.parse = function(m) {
|
|
1405
1456
|
m.utc && (this.$u = !0), this.$utils().u(m.$offset) || (this.$offset = m.$offset), f.call(this, m);
|
|
1406
1457
|
};
|
|
1407
|
-
var l =
|
|
1408
|
-
|
|
1458
|
+
var l = a.init;
|
|
1459
|
+
a.init = function() {
|
|
1409
1460
|
if (this.$u) {
|
|
1410
1461
|
var m = this.$d;
|
|
1411
1462
|
this.$y = m.getUTCFullYear(), this.$M = m.getUTCMonth(), this.$D = m.getUTCDate(), this.$W = m.getUTCDay(), this.$H = m.getUTCHours(), this.$m = m.getUTCMinutes(), this.$s = m.getUTCSeconds(), this.$ms = m.getUTCMilliseconds();
|
|
1412
1463
|
} else l.call(this);
|
|
1413
1464
|
};
|
|
1414
|
-
var p =
|
|
1415
|
-
|
|
1465
|
+
var p = a.utcOffset;
|
|
1466
|
+
a.utcOffset = function(m, T) {
|
|
1416
1467
|
var g = this.$utils().u;
|
|
1417
1468
|
if (g(m)) return this.$u ? 0 : g(this.$offset) ? p.call(this) : this.$offset;
|
|
1418
1469
|
if (typeof m == "string" && (m = (function(D) {
|
|
1419
1470
|
D === void 0 && (D = "");
|
|
1420
|
-
var
|
|
1421
|
-
if (!
|
|
1422
|
-
var b = ("" +
|
|
1423
|
-
return C === 0 ? 0 :
|
|
1471
|
+
var F = D.match(n);
|
|
1472
|
+
if (!F) return null;
|
|
1473
|
+
var b = ("" + F[0]).match(s) || ["-", 0, 0], L = b[0], C = 60 * +b[1] + +b[2];
|
|
1474
|
+
return C === 0 ? 0 : L === "+" ? C : -C;
|
|
1424
1475
|
})(m), m === null)) return this;
|
|
1425
1476
|
var N = Math.abs(m) <= 16 ? 60 * m : m;
|
|
1426
1477
|
if (N === 0) return this.utc(T);
|
|
1427
|
-
var
|
|
1428
|
-
if (T) return
|
|
1478
|
+
var A = this.clone();
|
|
1479
|
+
if (T) return A.$offset = N, A.$u = !1, A;
|
|
1429
1480
|
var P = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1430
|
-
return (
|
|
1481
|
+
return (A = this.local().add(N + P, r)).$offset = N, A.$x.$localOffset = P, A;
|
|
1431
1482
|
};
|
|
1432
|
-
var c =
|
|
1433
|
-
|
|
1483
|
+
var c = a.format;
|
|
1484
|
+
a.format = function(m) {
|
|
1434
1485
|
var T = m || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
1435
1486
|
return c.call(this, T);
|
|
1436
|
-
},
|
|
1487
|
+
}, a.valueOf = function() {
|
|
1437
1488
|
var m = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
1438
1489
|
return this.$d.valueOf() - 6e4 * m;
|
|
1439
|
-
},
|
|
1490
|
+
}, a.isUTC = function() {
|
|
1440
1491
|
return !!this.$u;
|
|
1441
|
-
},
|
|
1492
|
+
}, a.toISOString = function() {
|
|
1442
1493
|
return this.toDate().toISOString();
|
|
1443
|
-
},
|
|
1494
|
+
}, a.toString = function() {
|
|
1444
1495
|
return this.toDate().toUTCString();
|
|
1445
1496
|
};
|
|
1446
|
-
var E =
|
|
1447
|
-
|
|
1448
|
-
return m === "s" && this.$offset ?
|
|
1497
|
+
var E = a.toDate;
|
|
1498
|
+
a.toDate = function(m) {
|
|
1499
|
+
return m === "s" && this.$offset ? u(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : E.call(this);
|
|
1449
1500
|
};
|
|
1450
|
-
var d =
|
|
1451
|
-
|
|
1501
|
+
var d = a.diff;
|
|
1502
|
+
a.diff = function(m, T, g) {
|
|
1452
1503
|
if (m && this.$u === m.$u) return d.call(this, m, T, g);
|
|
1453
|
-
var N = this.local(),
|
|
1454
|
-
return d.call(N,
|
|
1504
|
+
var N = this.local(), A = u(m).local();
|
|
1505
|
+
return d.call(N, A, T, g);
|
|
1455
1506
|
};
|
|
1456
1507
|
};
|
|
1457
1508
|
}));
|
|
1458
1509
|
})(V)), V.exports;
|
|
1459
1510
|
}
|
|
1460
|
-
var
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
const
|
|
1465
|
-
function
|
|
1511
|
+
var Rr = hr();
|
|
1512
|
+
const Ir = /* @__PURE__ */ pe(Rr);
|
|
1513
|
+
ne.extend(Ir);
|
|
1514
|
+
ne.extend(Er);
|
|
1515
|
+
const Ar = ne.utc, Ye = /^\$now(?:([+-])(\d{1,2})([yMdmh]))?$/, Nr = /^\d{4}-\d{2}-\d{2}$/, yr = /^\d{2}:\d{2}:\d{2}(\.\d+)?$/, gr = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}:\d{2})?$/;
|
|
1516
|
+
function Or(e, t, r = () => /* @__PURE__ */ new Date(), n) {
|
|
1466
1517
|
var i;
|
|
1467
1518
|
const s = {
|
|
1468
|
-
formatMinimum:
|
|
1469
|
-
formatMaximum:
|
|
1519
|
+
formatMinimum: me(e, r, w(t == null ? void 0 : t.minimum)),
|
|
1520
|
+
formatMaximum: me(e, r, w(t == null ? void 0 : t.maximum))
|
|
1470
1521
|
};
|
|
1471
1522
|
return e === "PHONE" ? {
|
|
1472
1523
|
...s,
|
|
1473
1524
|
phone: !0,
|
|
1474
|
-
allowedCountryCodes: (i = n == null ? void 0 : n.allowedCountryCodes) != null && i.length ? n.allowedCountryCodes : Object.keys(
|
|
1525
|
+
allowedCountryCodes: (i = n == null ? void 0 : n.allowedCountryCodes) != null && i.length ? n.allowedCountryCodes : Object.keys(nt)
|
|
1475
1526
|
} : s;
|
|
1476
1527
|
}
|
|
1477
|
-
function
|
|
1478
|
-
if (!r ||
|
|
1528
|
+
function me(e, t, r, n) {
|
|
1529
|
+
if (!r || Dr(r))
|
|
1479
1530
|
return r;
|
|
1480
|
-
if (
|
|
1481
|
-
const s = n ?
|
|
1482
|
-
return i ? e ===
|
|
1531
|
+
if (_r(r)) {
|
|
1532
|
+
const s = n ? ne(t().toISOString()).tz(n) : Ar(t().toISOString()), i = Mr(r, s);
|
|
1533
|
+
return i ? e === I.DATE_TIME || e === I.DATE_OPTIONAL_TIME || !n ? i.utc().format(Pe(e)) : i.format(Pe(e)) : void 0;
|
|
1483
1534
|
}
|
|
1484
1535
|
}
|
|
1485
|
-
function
|
|
1486
|
-
return
|
|
1536
|
+
function _r(e) {
|
|
1537
|
+
return Ye.test(e);
|
|
1487
1538
|
}
|
|
1488
|
-
function
|
|
1489
|
-
return
|
|
1539
|
+
function Dr(e) {
|
|
1540
|
+
return Nr.test(e) || yr.test(e) || gr.test(e);
|
|
1490
1541
|
}
|
|
1491
|
-
function
|
|
1542
|
+
function Mr(e, t) {
|
|
1492
1543
|
if (e === "$now")
|
|
1493
1544
|
return t;
|
|
1494
1545
|
try {
|
|
1495
|
-
const [, r, n, s] = e.match(
|
|
1496
|
-
return i && o ?
|
|
1546
|
+
const [, r, n, s] = e.match(Ye) ?? [], i = Pr(n), o = br(s);
|
|
1547
|
+
return i && o ? Sr(t, r)(i, o) : void 0;
|
|
1497
1548
|
} catch (r) {
|
|
1498
1549
|
console.error(`Failed to parse format ${e}`, r);
|
|
1499
1550
|
return;
|
|
1500
1551
|
}
|
|
1501
1552
|
}
|
|
1502
|
-
function
|
|
1553
|
+
function Pr(e) {
|
|
1503
1554
|
const t = parseInt(e, 10);
|
|
1504
1555
|
return isNaN(t) ? void 0 : t;
|
|
1505
1556
|
}
|
|
1506
|
-
function
|
|
1557
|
+
function Sr(e, t) {
|
|
1507
1558
|
switch (t) {
|
|
1508
1559
|
case "+":
|
|
1509
1560
|
return e.add.bind(e);
|
|
@@ -1513,7 +1564,7 @@ function yr(e, t) {
|
|
|
1513
1564
|
return () => e;
|
|
1514
1565
|
}
|
|
1515
1566
|
}
|
|
1516
|
-
function
|
|
1567
|
+
function br(e) {
|
|
1517
1568
|
if ([
|
|
1518
1569
|
"d",
|
|
1519
1570
|
"M",
|
|
@@ -1523,53 +1574,53 @@ function gr(e) {
|
|
|
1523
1574
|
].includes(e))
|
|
1524
1575
|
return e;
|
|
1525
1576
|
}
|
|
1526
|
-
function
|
|
1577
|
+
function Pe(e) {
|
|
1527
1578
|
switch (e) {
|
|
1528
|
-
case
|
|
1579
|
+
case I.DATE:
|
|
1529
1580
|
return "YYYY-MM-DD";
|
|
1530
|
-
case
|
|
1581
|
+
case I.TIME:
|
|
1531
1582
|
return "HH:mm:ss";
|
|
1532
|
-
case
|
|
1533
|
-
case
|
|
1583
|
+
case I.DATE_TIME:
|
|
1584
|
+
case I.DATE_OPTIONAL_TIME:
|
|
1534
1585
|
return "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
1535
1586
|
default:
|
|
1536
1587
|
return;
|
|
1537
1588
|
}
|
|
1538
1589
|
}
|
|
1539
|
-
const
|
|
1540
|
-
function
|
|
1541
|
-
const r =
|
|
1590
|
+
const Cr = 2e4, Fr = 254;
|
|
1591
|
+
function te(e, t) {
|
|
1592
|
+
const r = Lr(e) ? er(Le, e) : {};
|
|
1542
1593
|
return {
|
|
1543
1594
|
type: y.STRING,
|
|
1544
|
-
maxLength:
|
|
1595
|
+
maxLength: Ge(e),
|
|
1545
1596
|
...r,
|
|
1546
|
-
...
|
|
1547
|
-
...
|
|
1597
|
+
...Ur(e),
|
|
1598
|
+
...vr(e, t)
|
|
1548
1599
|
};
|
|
1549
1600
|
}
|
|
1550
|
-
function
|
|
1551
|
-
return e.format ===
|
|
1601
|
+
function Ge(e) {
|
|
1602
|
+
return e.format === I.EMAIL ? Fr : Cr;
|
|
1552
1603
|
}
|
|
1553
|
-
function
|
|
1604
|
+
function Lr(e) {
|
|
1554
1605
|
return "validationMessages" in e;
|
|
1555
1606
|
}
|
|
1556
|
-
function
|
|
1557
|
-
const r =
|
|
1607
|
+
function vr(e, t) {
|
|
1608
|
+
const r = wr(e), n = r ? {
|
|
1558
1609
|
dateAvailability: r
|
|
1559
1610
|
} : {};
|
|
1560
1611
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1561
|
-
...G(
|
|
1612
|
+
...G(Le.filter((s) => s !== "format"), e, {
|
|
1562
1613
|
maxLength: (s) => {
|
|
1563
|
-
const i =
|
|
1614
|
+
const i = Ge(e);
|
|
1564
1615
|
return Math.min(s ?? i, i);
|
|
1565
1616
|
}
|
|
1566
1617
|
}),
|
|
1567
|
-
...
|
|
1618
|
+
...Or(e.format, xr(e), void 0, e.phoneOptions),
|
|
1568
1619
|
...n
|
|
1569
1620
|
} : n;
|
|
1570
1621
|
}
|
|
1571
|
-
function
|
|
1572
|
-
const t = e.format &&
|
|
1622
|
+
function Ur(e) {
|
|
1623
|
+
const t = e.format && $r[h(e.format, e, "format")];
|
|
1573
1624
|
return t ? t.length === 1 ? {
|
|
1574
1625
|
format: t[0]
|
|
1575
1626
|
} : {
|
|
@@ -1578,44 +1629,44 @@ function Pr(e) {
|
|
|
1578
1629
|
}))
|
|
1579
1630
|
} : {};
|
|
1580
1631
|
}
|
|
1581
|
-
const
|
|
1582
|
-
[
|
|
1632
|
+
const $r = {
|
|
1633
|
+
[I.DATE]: [
|
|
1583
1634
|
"date"
|
|
1584
1635
|
],
|
|
1585
|
-
[
|
|
1636
|
+
[I.TIME]: [
|
|
1586
1637
|
"time"
|
|
1587
1638
|
],
|
|
1588
|
-
[
|
|
1639
|
+
[I.DATE_TIME]: [
|
|
1589
1640
|
"date-time"
|
|
1590
1641
|
],
|
|
1591
|
-
[
|
|
1642
|
+
[I.EMAIL]: [
|
|
1592
1643
|
"email"
|
|
1593
1644
|
],
|
|
1594
|
-
[
|
|
1645
|
+
[I.URL]: [
|
|
1595
1646
|
"url"
|
|
1596
1647
|
],
|
|
1597
|
-
[
|
|
1648
|
+
[I.UUID]: [
|
|
1598
1649
|
"uuid"
|
|
1599
1650
|
],
|
|
1600
|
-
[
|
|
1651
|
+
[I.PHONE]: [
|
|
1601
1652
|
"phone"
|
|
1602
1653
|
],
|
|
1603
|
-
[
|
|
1654
|
+
[I.URI]: [
|
|
1604
1655
|
"uri"
|
|
1605
1656
|
],
|
|
1606
|
-
[
|
|
1657
|
+
[I.HOSTNAME]: [
|
|
1607
1658
|
"hostname"
|
|
1608
1659
|
],
|
|
1609
|
-
[
|
|
1660
|
+
[I.COLOR_HEX]: [
|
|
1610
1661
|
"color-hex"
|
|
1611
1662
|
],
|
|
1612
|
-
[
|
|
1663
|
+
[I.CURRENCY]: [
|
|
1613
1664
|
"currency"
|
|
1614
1665
|
],
|
|
1615
|
-
[
|
|
1666
|
+
[I.LANGUAGE]: [
|
|
1616
1667
|
"language"
|
|
1617
1668
|
],
|
|
1618
|
-
[
|
|
1669
|
+
[I.DATE_OPTIONAL_TIME]: [
|
|
1619
1670
|
"date-time",
|
|
1620
1671
|
"date"
|
|
1621
1672
|
],
|
|
@@ -1623,7 +1674,7 @@ const Sr = {
|
|
|
1623
1674
|
"time-zone"
|
|
1624
1675
|
]
|
|
1625
1676
|
};
|
|
1626
|
-
function
|
|
1677
|
+
function xr(e) {
|
|
1627
1678
|
if ("dateOptions" in e)
|
|
1628
1679
|
return e.dateOptions;
|
|
1629
1680
|
if ("dateTimeOptions" in e)
|
|
@@ -1633,101 +1684,101 @@ function br(e) {
|
|
|
1633
1684
|
if ("dateOptionalTimeOptions" in e)
|
|
1634
1685
|
return e.dateOptionalTimeOptions;
|
|
1635
1686
|
}
|
|
1636
|
-
function
|
|
1687
|
+
function wr(e) {
|
|
1637
1688
|
const t = "dateOptions" in e ? e.dateOptions : void 0;
|
|
1638
1689
|
return t == null ? void 0 : t.availability;
|
|
1639
1690
|
}
|
|
1640
1691
|
function Y(e, t = void 0, r = O.UNKNOWN) {
|
|
1641
1692
|
if (e != null && e.string)
|
|
1642
|
-
return
|
|
1693
|
+
return te(e.string, r);
|
|
1643
1694
|
if (e != null && e.stringOptions)
|
|
1644
|
-
return
|
|
1695
|
+
return te(e == null ? void 0 : e.stringOptions, r);
|
|
1645
1696
|
if (e != null && e.number)
|
|
1646
|
-
return
|
|
1697
|
+
return ee(e.number, r);
|
|
1647
1698
|
if (e != null && e.numberOptions)
|
|
1648
|
-
return
|
|
1699
|
+
return ee(e.numberOptions, r);
|
|
1649
1700
|
if (e != null && e.integer)
|
|
1650
|
-
return
|
|
1701
|
+
return ur(e.integer, r);
|
|
1651
1702
|
if (e != null && e.boolean)
|
|
1652
|
-
return
|
|
1703
|
+
return Q(e == null ? void 0 : e.boolean, r);
|
|
1653
1704
|
if (e != null && e.booleanOptions)
|
|
1654
|
-
return
|
|
1705
|
+
return Q(e == null ? void 0 : e.booleanOptions, r);
|
|
1655
1706
|
if (e != null && e.array)
|
|
1656
|
-
return
|
|
1707
|
+
return Oe(e.array, r);
|
|
1657
1708
|
if (e != null && e.arrayOptions)
|
|
1658
|
-
return
|
|
1709
|
+
return Oe(e.arrayOptions, r);
|
|
1659
1710
|
if (e != null && e.object)
|
|
1660
|
-
return
|
|
1711
|
+
return re(e.object, r);
|
|
1661
1712
|
if (e != null && e.objectOptions)
|
|
1662
|
-
return
|
|
1713
|
+
return re(e.objectOptions, r);
|
|
1663
1714
|
if (e != null && e.predefined)
|
|
1664
1715
|
return K(t, e.predefined, r);
|
|
1665
1716
|
}
|
|
1666
|
-
function
|
|
1667
|
-
const r =
|
|
1717
|
+
function re(e, t) {
|
|
1718
|
+
const r = qr(t, e.properties);
|
|
1668
1719
|
return {
|
|
1669
1720
|
type: y.OBJECT,
|
|
1670
1721
|
additionalProperties: !1,
|
|
1671
1722
|
properties: r,
|
|
1672
|
-
...
|
|
1723
|
+
...Yr(e, t)
|
|
1673
1724
|
};
|
|
1674
1725
|
}
|
|
1675
|
-
function
|
|
1726
|
+
function Yr(e, t) {
|
|
1676
1727
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1677
|
-
required:
|
|
1728
|
+
required: Gr(e.properties)
|
|
1678
1729
|
} : {
|
|
1679
1730
|
required: []
|
|
1680
1731
|
};
|
|
1681
1732
|
}
|
|
1682
|
-
function
|
|
1733
|
+
function Gr(e = {}) {
|
|
1683
1734
|
return Object.keys(e).reduce((r, n) => {
|
|
1684
1735
|
const s = e[n];
|
|
1685
|
-
return
|
|
1736
|
+
return Br(s) && r.push(n), r;
|
|
1686
1737
|
}, []);
|
|
1687
1738
|
}
|
|
1688
|
-
function
|
|
1739
|
+
function Br(e) {
|
|
1689
1740
|
return (e || {
|
|
1690
1741
|
required: !1
|
|
1691
1742
|
}).required;
|
|
1692
1743
|
}
|
|
1693
|
-
function
|
|
1744
|
+
function qr(e, t) {
|
|
1694
1745
|
return t ? Object.keys(t).reduce((n, s) => {
|
|
1695
1746
|
const i = t[s], o = Y(i, void 0, e);
|
|
1696
1747
|
return o && (n[s] = o), n;
|
|
1697
1748
|
}, {}) : {};
|
|
1698
1749
|
}
|
|
1699
|
-
const
|
|
1750
|
+
const Hr = [
|
|
1700
1751
|
"minItems",
|
|
1701
1752
|
"maxItems"
|
|
1702
|
-
],
|
|
1703
|
-
function
|
|
1704
|
-
var o,
|
|
1705
|
-
const r = h(e.arrayOptions, e, "arrayOptions"), n =
|
|
1753
|
+
], Se = 100;
|
|
1754
|
+
function jr(e, t) {
|
|
1755
|
+
var o, u;
|
|
1756
|
+
const r = h(e.arrayOptions, e, "arrayOptions"), n = fe(j((o = r.checkboxGroupOptions) == null ? void 0 : o.customOption), (u = r.checkboxGroupOptions) == null ? void 0 : u.options), s = h(r.validation, r, "validation"), i = Xr(t, s.items, n);
|
|
1706
1757
|
return {
|
|
1707
1758
|
type: y.ARRAY,
|
|
1708
|
-
...G(
|
|
1709
|
-
maxItems: (
|
|
1759
|
+
...G(Hr, s, {
|
|
1760
|
+
maxItems: (a) => Math.min(a ?? Se, Se)
|
|
1710
1761
|
}),
|
|
1711
1762
|
...i && {
|
|
1712
1763
|
items: i
|
|
1713
1764
|
}
|
|
1714
1765
|
};
|
|
1715
1766
|
}
|
|
1716
|
-
function
|
|
1767
|
+
function Xr(e, t, r = []) {
|
|
1717
1768
|
switch ((t == null ? void 0 : t.itemType) ?? B.UNKNOWN_ITEM_TYPE) {
|
|
1718
1769
|
case B.STRING:
|
|
1719
|
-
return
|
|
1770
|
+
return te(Z((t == null ? void 0 : t.stringOptions) ?? {}, r), e);
|
|
1720
1771
|
case B.NUMBER:
|
|
1721
|
-
return
|
|
1772
|
+
return ee(Z((t == null ? void 0 : t.numberOptions) ?? {}, r), e);
|
|
1722
1773
|
case B.BOOLEAN:
|
|
1723
|
-
return
|
|
1774
|
+
return Q(Z((t == null ? void 0 : t.booleanOptions) ?? {}, r), e);
|
|
1724
1775
|
case B.OBJECT:
|
|
1725
|
-
return
|
|
1776
|
+
return re((t == null ? void 0 : t.objectOptions) ?? {}, e);
|
|
1726
1777
|
default:
|
|
1727
1778
|
throw Error("Required to specify items type for array");
|
|
1728
1779
|
}
|
|
1729
1780
|
}
|
|
1730
|
-
function
|
|
1781
|
+
function fe(e, t) {
|
|
1731
1782
|
if (!(e || !j(t)))
|
|
1732
1783
|
return t.map((r) => r.value).filter(j);
|
|
1733
1784
|
}
|
|
@@ -1738,29 +1789,29 @@ function Z(e, t) {
|
|
|
1738
1789
|
enum: t
|
|
1739
1790
|
};
|
|
1740
1791
|
}
|
|
1741
|
-
function
|
|
1742
|
-
var i, o,
|
|
1743
|
-
const r = h(e.stringOptions, e, "stringOptions"), n = h(r.validation, r, "validation"), s =
|
|
1744
|
-
return
|
|
1792
|
+
function kr(e, t) {
|
|
1793
|
+
var i, o, u, a;
|
|
1794
|
+
const r = h(e.stringOptions, e, "stringOptions"), n = h(r.validation, r, "validation"), s = fe(j((i = r.radioGroupOptions) == null ? void 0 : i.customOption), (o = r.radioGroupOptions) == null ? void 0 : o.options) || fe(j((u = r.dropdownOptions) == null ? void 0 : u.customOption), (a = r.dropdownOptions) == null ? void 0 : a.options);
|
|
1795
|
+
return te(Z(n, s), t);
|
|
1745
1796
|
}
|
|
1746
|
-
function
|
|
1797
|
+
function Wr(e, t) {
|
|
1747
1798
|
var r, n, s, i;
|
|
1748
1799
|
switch (e.inputType) {
|
|
1749
1800
|
case M.STRING:
|
|
1750
|
-
return
|
|
1801
|
+
return kr(e, t);
|
|
1751
1802
|
case M.ARRAY:
|
|
1752
|
-
return
|
|
1803
|
+
return jr(e, t);
|
|
1753
1804
|
case M.NUMBER: {
|
|
1754
1805
|
const o = h((r = e.numberOptions) == null ? void 0 : r.validation, e, "numberOptions.validation");
|
|
1755
|
-
return
|
|
1806
|
+
return ee(o, t);
|
|
1756
1807
|
}
|
|
1757
1808
|
case M.BOOLEAN: {
|
|
1758
1809
|
const o = h((n = e.booleanOptions) == null ? void 0 : n.validation, e, "booleanOptions.validation");
|
|
1759
|
-
return
|
|
1810
|
+
return Q(o, t);
|
|
1760
1811
|
}
|
|
1761
1812
|
case M.OBJECT: {
|
|
1762
1813
|
const o = h((s = e.objectOptions) == null ? void 0 : s.validation, e, "objectOptions.validation");
|
|
1763
|
-
return
|
|
1814
|
+
return re(o, t);
|
|
1764
1815
|
}
|
|
1765
1816
|
case M.WIX_FILE:
|
|
1766
1817
|
return K(e.target, {
|
|
@@ -1787,17 +1838,17 @@ function x(e, t, r) {
|
|
|
1787
1838
|
writable: !0
|
|
1788
1839
|
}) : e[t] = r, e;
|
|
1789
1840
|
}
|
|
1790
|
-
class
|
|
1841
|
+
class bn {
|
|
1791
1842
|
validateFields(t, r, n) {
|
|
1792
1843
|
const s = [
|
|
1793
1844
|
n ?? []
|
|
1794
|
-
].flat(), { ajv: i, submission: o, currentlyValidatableForm:
|
|
1845
|
+
].flat(), { ajv: i, submission: o, currentlyValidatableForm: u } = this.prepareValidation(t, r), a = ue(o);
|
|
1795
1846
|
return s.length ? {
|
|
1796
|
-
errors: this.validateSubmissionWithFieldMask(i, t,
|
|
1797
|
-
currentlyValidatableForm:
|
|
1847
|
+
errors: this.validateSubmissionWithFieldMask(i, t, a, s),
|
|
1848
|
+
currentlyValidatableForm: u
|
|
1798
1849
|
} : {
|
|
1799
|
-
errors: this.validateWholeSubmission(i,
|
|
1800
|
-
currentlyValidatableForm:
|
|
1850
|
+
errors: this.validateWholeSubmission(i, u.id, a),
|
|
1851
|
+
currentlyValidatableForm: u
|
|
1801
1852
|
};
|
|
1802
1853
|
}
|
|
1803
1854
|
validate(t, r, n) {
|
|
@@ -1809,9 +1860,9 @@ class gn {
|
|
|
1809
1860
|
errors: i
|
|
1810
1861
|
};
|
|
1811
1862
|
if (!s.length) {
|
|
1812
|
-
const
|
|
1813
|
-
if (
|
|
1814
|
-
return
|
|
1863
|
+
const u = this.validateCanUpdateFormNotDisabled(o);
|
|
1864
|
+
if (u.errors)
|
|
1865
|
+
return u;
|
|
1815
1866
|
}
|
|
1816
1867
|
return {
|
|
1817
1868
|
errors: []
|
|
@@ -1822,7 +1873,7 @@ class gn {
|
|
|
1822
1873
|
if (!n)
|
|
1823
1874
|
throw new Error(`Missing form ${t} for validation`);
|
|
1824
1875
|
let s = this.submissionValueProvider ? this.submissionValueProvider(r, n) : r;
|
|
1825
|
-
return this.validationMode !== O.UNRESTRICTED_UPDATE && (s =
|
|
1876
|
+
return this.validationMode !== O.UNRESTRICTED_UPDATE && (s = lt(s, n)), {
|
|
1826
1877
|
ajv: this.initAJvWithSchemas(n, s),
|
|
1827
1878
|
submission: s,
|
|
1828
1879
|
currentlyValidatableForm: n
|
|
@@ -1836,9 +1887,9 @@ class gn {
|
|
|
1836
1887
|
var i, o;
|
|
1837
1888
|
return ((o = (i = s.validation) == null ? void 0 : i.predefined) == null ? void 0 : o.format) === _.MULTILINE_ADDRESS;
|
|
1838
1889
|
}).reduce((s, i) => {
|
|
1839
|
-
const o = r[i.target],
|
|
1840
|
-
return
|
|
1841
|
-
...
|
|
1890
|
+
const o = r[i.target], u = this.addressFormProvider(i, o);
|
|
1891
|
+
return u && s.push({
|
|
1892
|
+
...u,
|
|
1842
1893
|
id: i.target
|
|
1843
1894
|
}), s;
|
|
1844
1895
|
}, []);
|
|
@@ -1874,17 +1925,17 @@ class gn {
|
|
|
1874
1925
|
if (!s)
|
|
1875
1926
|
throw new Error(`Missing precompiled schema for form ${r}`);
|
|
1876
1927
|
s(n);
|
|
1877
|
-
const i =
|
|
1928
|
+
const i = he(s.errors);
|
|
1878
1929
|
return this.deriveErrors(r, i, n);
|
|
1879
1930
|
}
|
|
1880
1931
|
// eslint-disable-next-line max-params
|
|
1881
1932
|
validateSubmissionWithFieldMask(t, r, n, s) {
|
|
1882
|
-
const i = s.reduce((o,
|
|
1883
|
-
const
|
|
1884
|
-
return
|
|
1885
|
-
errorPath: `${
|
|
1933
|
+
const i = s.reduce((o, u) => {
|
|
1934
|
+
const a = t.getSchema(`${r}#/properties/${u}`);
|
|
1935
|
+
return a ? (a(n[u]) || o.push(...he(a.errors, u)), o) : (o.push({
|
|
1936
|
+
errorPath: `${u}`,
|
|
1886
1937
|
errorType: R.UNKNOWN_VALUE_ERROR,
|
|
1887
|
-
errorMessage: `${
|
|
1938
|
+
errorMessage: `${u} property not expected in schema`
|
|
1888
1939
|
}), o);
|
|
1889
1940
|
}, []);
|
|
1890
1941
|
return this.deriveErrors(r, i, n);
|
|
@@ -1892,26 +1943,26 @@ class gn {
|
|
|
1892
1943
|
deriveErrors(t, r, n) {
|
|
1893
1944
|
return r.map((s) => {
|
|
1894
1945
|
const i = this.getFieldValidation(t, s.errorPath), o = this.getFieldValue(n, s.errorPath);
|
|
1895
|
-
return
|
|
1946
|
+
return ut(i, s, {
|
|
1896
1947
|
value: o
|
|
1897
1948
|
});
|
|
1898
1949
|
}).filter((s) => s !== void 0);
|
|
1899
1950
|
}
|
|
1900
1951
|
getFieldValidation(t, r) {
|
|
1901
|
-
const n = this.formSchemas.find((
|
|
1952
|
+
const n = this.formSchemas.find((a) => a.id === t);
|
|
1902
1953
|
if (!n)
|
|
1903
1954
|
return;
|
|
1904
1955
|
const i = r.split("/")[0], o = [
|
|
1905
1956
|
...n.formFields ?? [],
|
|
1906
1957
|
...n.deletedFormFields ?? []
|
|
1907
|
-
].find((
|
|
1958
|
+
].find((a) => {
|
|
1908
1959
|
var l;
|
|
1909
|
-
return
|
|
1910
|
-
}),
|
|
1960
|
+
return a.id === i || ((l = a.inputOptions) == null ? void 0 : l.target) === i;
|
|
1961
|
+
}), u = [
|
|
1911
1962
|
...n.fields ?? [],
|
|
1912
1963
|
...n.deletedFields ?? []
|
|
1913
|
-
].find((
|
|
1914
|
-
return o ? this.getPlatformisedFieldValidation(o) :
|
|
1964
|
+
].find((a) => a.id === i || a.target === i);
|
|
1965
|
+
return o ? this.getPlatformisedFieldValidation(o) : u ? this.getLegacyFieldValidation(u) : void 0;
|
|
1915
1966
|
}
|
|
1916
1967
|
getLegacyFieldValidation(t) {
|
|
1917
1968
|
return t.validation;
|
|
@@ -1941,19 +1992,19 @@ class gn {
|
|
|
1941
1992
|
return !!((s = t == null ? void 0 : t.properties) != null && s.disabled || r);
|
|
1942
1993
|
}
|
|
1943
1994
|
getFormSchemaMapper() {
|
|
1944
|
-
return this.platformisedFieldBasedValidation ?
|
|
1995
|
+
return this.platformisedFieldBasedValidation ? Qt(Wr, this.validationMode ?? O.UNKNOWN) : Jt(Y, this.validationMode ?? O.UNKNOWN);
|
|
1945
1996
|
}
|
|
1946
1997
|
initAJvWithSchemas(t, r) {
|
|
1947
|
-
const n = this.getFormSchemaMapper(), s =
|
|
1998
|
+
const n = this.getFormSchemaMapper(), s = Zt(n, this.validationMode !== O.UNRESTRICTED_UPDATE, this.lenientPhoneValidation), i = this.formSchemas.flatMap((f) => (f.nestedForms || []).flatMap(({ targets: l, form: p }) => (l || []).map((c) => ({
|
|
1948
1999
|
...p,
|
|
1949
2000
|
id: c
|
|
1950
|
-
})))), o = this.getAddressForms(t, r),
|
|
2001
|
+
})))), o = this.getAddressForms(t, r), u = this.getObjectArrayForms(t), a = s([
|
|
1951
2002
|
...this.formSchemas,
|
|
1952
2003
|
...i,
|
|
1953
2004
|
...o,
|
|
1954
|
-
...
|
|
2005
|
+
...u
|
|
1955
2006
|
]);
|
|
1956
|
-
return this.addPlaceholdersForMissingDeletedAddressForms(
|
|
2007
|
+
return this.addPlaceholdersForMissingDeletedAddressForms(a, t), a;
|
|
1957
2008
|
}
|
|
1958
2009
|
// A deleted address field still references its address form. Without that
|
|
1959
2010
|
// form the schema cannot compile, so accept any value for the field instead.
|
|
@@ -1974,30 +2025,30 @@ class gn {
|
|
|
1974
2025
|
throw new Error("At least one form schema is required for validation");
|
|
1975
2026
|
}
|
|
1976
2027
|
}
|
|
1977
|
-
function
|
|
2028
|
+
function Kr(e) {
|
|
1978
2029
|
return e.validation && h(e.target, e, "target"), !!e.validation;
|
|
1979
2030
|
}
|
|
1980
|
-
function
|
|
2031
|
+
function be(e) {
|
|
1981
2032
|
return !!e.target;
|
|
1982
2033
|
}
|
|
1983
|
-
function
|
|
2034
|
+
function Cn(e, t) {
|
|
1984
2035
|
return {
|
|
1985
|
-
errors:
|
|
2036
|
+
errors: zr(e, t)
|
|
1986
2037
|
};
|
|
1987
2038
|
}
|
|
1988
|
-
function
|
|
2039
|
+
function zr(e, t) {
|
|
1989
2040
|
var s;
|
|
1990
|
-
(s = e.fields) == null || s.forEach(
|
|
1991
|
-
const r = (e.fields ?? []).filter(
|
|
2041
|
+
(s = e.fields) == null || s.forEach(Kr);
|
|
2042
|
+
const r = (e.fields ?? []).filter(be), n = [
|
|
1992
2043
|
...t.fields ?? [],
|
|
1993
2044
|
...t.deletedFields ?? []
|
|
1994
|
-
].filter(
|
|
1995
|
-
return r.map((i) =>
|
|
2045
|
+
].filter(be).reduce((i, o) => (i[h(o.target, o, "target")] = o, i), {});
|
|
2046
|
+
return r.map((i) => Vr(i, n[h(i.target, i, "target")])).filter(yt);
|
|
1996
2047
|
}
|
|
1997
|
-
function
|
|
2048
|
+
function Vr(e, t) {
|
|
1998
2049
|
if (!t)
|
|
1999
2050
|
return null;
|
|
2000
|
-
const [r] = Object.entries(e.validation ?? {}), [n] = Object.entries(t.validation ?? {}), s =
|
|
2051
|
+
const [r] = Object.entries(e.validation ?? {}), [n] = Object.entries(t.validation ?? {}), s = le(r, n);
|
|
2001
2052
|
return s ? {
|
|
2002
2053
|
errorPath: h(e.target, e, "target"),
|
|
2003
2054
|
errorType: R.FIELDS_COMPATIBILITY_ERROR,
|
|
@@ -2005,7 +2056,7 @@ function Hr(e, t) {
|
|
|
2005
2056
|
params: s.params
|
|
2006
2057
|
} : null;
|
|
2007
2058
|
}
|
|
2008
|
-
function
|
|
2059
|
+
function le(e, t) {
|
|
2009
2060
|
if (!t)
|
|
2010
2061
|
return null;
|
|
2011
2062
|
if (!e)
|
|
@@ -2023,17 +2074,17 @@ function de(e, t) {
|
|
|
2023
2074
|
};
|
|
2024
2075
|
switch (r) {
|
|
2025
2076
|
case "string":
|
|
2026
|
-
return
|
|
2077
|
+
return Zr(n, i);
|
|
2027
2078
|
case "array":
|
|
2028
|
-
return
|
|
2079
|
+
return Jr(n, i);
|
|
2029
2080
|
case "object":
|
|
2030
|
-
return
|
|
2081
|
+
return Qr(n, i);
|
|
2031
2082
|
default:
|
|
2032
2083
|
return null;
|
|
2033
2084
|
}
|
|
2034
2085
|
}
|
|
2035
|
-
function
|
|
2036
|
-
const r = e.format ??
|
|
2086
|
+
function Zr(e, t) {
|
|
2087
|
+
const r = e.format ?? I.UNDEFINED, n = t.format ?? I.UNDEFINED;
|
|
2037
2088
|
return r !== n ? {
|
|
2038
2089
|
errorMessage: "Incompatible string format",
|
|
2039
2090
|
params: {
|
|
@@ -2042,15 +2093,15 @@ function jr(e, t) {
|
|
|
2042
2093
|
}
|
|
2043
2094
|
} : null;
|
|
2044
2095
|
}
|
|
2045
|
-
function
|
|
2096
|
+
function Jr(e, t) {
|
|
2046
2097
|
const [r] = Object.entries(e.items ?? {}), [n] = Object.entries(t.items ?? {});
|
|
2047
|
-
return
|
|
2098
|
+
return le(r, n);
|
|
2048
2099
|
}
|
|
2049
|
-
function
|
|
2100
|
+
function Qr(e, t) {
|
|
2050
2101
|
const r = Object.keys(e.properties ?? {}).slice().sort(), n = Object.keys(t.properties ?? {}).slice().sort();
|
|
2051
2102
|
if (n.every((s, i) => s === r[i])) {
|
|
2052
2103
|
const s = n.reduce((i, o) => {
|
|
2053
|
-
const [
|
|
2104
|
+
const [u] = Object.entries((e.properties ?? {})[o]), [a] = Object.entries((t.properties ?? {})[o]), f = le(u, a);
|
|
2054
2105
|
return f && (i[o] = f), i;
|
|
2055
2106
|
}, {});
|
|
2056
2107
|
return Object.keys(s).length ? {
|
|
@@ -2066,64 +2117,64 @@ function kr(e, t) {
|
|
|
2066
2117
|
}
|
|
2067
2118
|
};
|
|
2068
2119
|
}
|
|
2069
|
-
var
|
|
2120
|
+
var Ce;
|
|
2070
2121
|
(function(e) {
|
|
2071
2122
|
e.NOT_ASCEND = "NOT_ASCEND", e.FREE = "FREE", e.BASIC = "BASIC", e.PROFESSIONAL = "PROFESSIONAL", e.UNLIMITED = "UNLIMITED";
|
|
2072
|
-
})(
|
|
2073
|
-
var
|
|
2123
|
+
})(Ce || (Ce = {}));
|
|
2124
|
+
var de;
|
|
2074
2125
|
(function(e) {
|
|
2075
2126
|
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";
|
|
2076
|
-
})(
|
|
2077
|
-
const
|
|
2078
|
-
function
|
|
2079
|
-
var s, i, o,
|
|
2127
|
+
})(de || (de = {}));
|
|
2128
|
+
const en = "FILE_UPLOAD";
|
|
2129
|
+
function Fn(e, t, r) {
|
|
2130
|
+
var s, i, o, u;
|
|
2080
2131
|
const n = [
|
|
2081
|
-
|
|
2132
|
+
rn({
|
|
2082
2133
|
limit: W((s = e.fieldsLimit) == null ? void 0 : s.limit)
|
|
2083
2134
|
}),
|
|
2084
|
-
|
|
2135
|
+
nn({
|
|
2085
2136
|
limit: W((i = e.stepsLimit) == null ? void 0 : i.limit)
|
|
2086
2137
|
}),
|
|
2087
|
-
|
|
2138
|
+
sn({
|
|
2088
2139
|
limit: W((o = e.rulesLimit) == null ? void 0 : o.limit)
|
|
2089
2140
|
}),
|
|
2090
|
-
|
|
2091
|
-
featureRestricted:
|
|
2141
|
+
on({
|
|
2142
|
+
featureRestricted: un(En(e.features))
|
|
2092
2143
|
})
|
|
2093
2144
|
];
|
|
2094
|
-
if (
|
|
2095
|
-
const
|
|
2145
|
+
if (pn(r)) {
|
|
2146
|
+
const a = k(r.currentForm), f = k(t);
|
|
2096
2147
|
return {
|
|
2097
|
-
errors:
|
|
2148
|
+
errors: Fe(n, f, a)
|
|
2098
2149
|
};
|
|
2099
2150
|
}
|
|
2100
|
-
if (
|
|
2101
|
-
const
|
|
2151
|
+
if (ln(r)) {
|
|
2152
|
+
const a = k(), f = k(t);
|
|
2102
2153
|
return {
|
|
2103
|
-
errors:
|
|
2154
|
+
errors: Fe([
|
|
2104
2155
|
...n,
|
|
2105
|
-
|
|
2106
|
-
], f,
|
|
2156
|
+
tn(W((u = e.formsLimit) == null ? void 0 : u.limit), h(r.existingFormsCount, r, "existingFormsCount"))
|
|
2157
|
+
], f, a)
|
|
2107
2158
|
};
|
|
2108
2159
|
}
|
|
2109
2160
|
throw new Error("Unknown validation action");
|
|
2110
2161
|
}
|
|
2111
|
-
function
|
|
2162
|
+
function Fe(e, t, r) {
|
|
2112
2163
|
return e.map((n) => n(t, r)).filter(Boolean).map((n) => n);
|
|
2113
2164
|
}
|
|
2114
|
-
const
|
|
2115
|
-
function
|
|
2165
|
+
const tn = (e, t) => () => se(e, t, t + 1) ? an(e) : null, rn = ({ limit: e }) => (t, r) => se(e, r.inputFieldsCount, t.inputFieldsCount) || Ee(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? cn(e) : null, nn = ({ limit: e }) => (t, r) => se(e, r.stepsCount, t.stepsCount) || Ee(e, r.stepsCount, t.stepsIds, r.stepsIds) ? mn(e) : null, sn = ({ limit: e }) => (t, r) => se(e, r.rulesCount, t.rulesCount) || Ee(e, r.rulesCount, t.rulesIds, r.rulesIds) ? fn(e) : null, on = ({ featureRestricted: e }) => (t, r) => Be(t.fileUploadFieldIds, r.fileUploadFieldIds).length && e(de.FILE_UPLOAD_FIELD) ? dn() : null;
|
|
2166
|
+
function Be(e, t) {
|
|
2116
2167
|
const r = new Set(t);
|
|
2117
2168
|
return e.filter((n) => !r.has(n));
|
|
2118
2169
|
}
|
|
2119
|
-
function
|
|
2170
|
+
function se(e, t, r) {
|
|
2120
2171
|
return r > Math.max(e, t);
|
|
2121
2172
|
}
|
|
2122
|
-
function
|
|
2123
|
-
return t > e &&
|
|
2173
|
+
function Ee(e, t, r, n) {
|
|
2174
|
+
return t > e && Be(r, n).length && r.length > e;
|
|
2124
2175
|
}
|
|
2125
|
-
const
|
|
2126
|
-
function
|
|
2176
|
+
const un = (e) => (t) => !e.some((r) => r === t);
|
|
2177
|
+
function an(e) {
|
|
2127
2178
|
return {
|
|
2128
2179
|
errorPath: "form",
|
|
2129
2180
|
errorType: R.FORMS_COUNT_RESTRICTIONS_ERROR,
|
|
@@ -2133,7 +2184,7 @@ function en(e) {
|
|
|
2133
2184
|
}
|
|
2134
2185
|
};
|
|
2135
2186
|
}
|
|
2136
|
-
function
|
|
2187
|
+
function cn(e) {
|
|
2137
2188
|
return {
|
|
2138
2189
|
errorPath: "form",
|
|
2139
2190
|
errorType: R.FIELDS_COUNT_RESTRICTIONS_ERROR,
|
|
@@ -2143,7 +2194,7 @@ function tn(e) {
|
|
|
2143
2194
|
}
|
|
2144
2195
|
};
|
|
2145
2196
|
}
|
|
2146
|
-
function
|
|
2197
|
+
function mn(e) {
|
|
2147
2198
|
return {
|
|
2148
2199
|
errorPath: "form",
|
|
2149
2200
|
errorType: R.STEPS_COUNT_RESTRICTIONS_ERROR,
|
|
@@ -2153,7 +2204,7 @@ function rn(e) {
|
|
|
2153
2204
|
}
|
|
2154
2205
|
};
|
|
2155
2206
|
}
|
|
2156
|
-
function
|
|
2207
|
+
function fn(e) {
|
|
2157
2208
|
return {
|
|
2158
2209
|
errorPath: "form",
|
|
2159
2210
|
errorType: R.RULES_COUNT_RESTRICTIONS_ERROR,
|
|
@@ -2163,7 +2214,7 @@ function nn(e) {
|
|
|
2163
2214
|
}
|
|
2164
2215
|
};
|
|
2165
2216
|
}
|
|
2166
|
-
function
|
|
2217
|
+
function dn() {
|
|
2167
2218
|
return {
|
|
2168
2219
|
errorPath: "form",
|
|
2169
2220
|
errorType: R.FILE_UPLOAD_RESTRICTIONS_ERROR,
|
|
@@ -2179,34 +2230,34 @@ function k(e) {
|
|
|
2179
2230
|
inputFieldIds: r.map((n) => n.id),
|
|
2180
2231
|
stepsIds: (t.steps ?? []).map((n) => n.id),
|
|
2181
2232
|
rulesIds: (t.rules ?? []).map((n) => n.id),
|
|
2182
|
-
fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType ===
|
|
2233
|
+
fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType === en).map((n) => n.id)
|
|
2183
2234
|
};
|
|
2184
2235
|
}
|
|
2185
|
-
function
|
|
2236
|
+
function pn(e) {
|
|
2186
2237
|
return "currentForm" in e;
|
|
2187
2238
|
}
|
|
2188
|
-
function
|
|
2239
|
+
function ln(e) {
|
|
2189
2240
|
return "existingFormsCount" in e;
|
|
2190
2241
|
}
|
|
2191
2242
|
function W(e) {
|
|
2192
2243
|
return e ?? Number.MAX_SAFE_INTEGER;
|
|
2193
2244
|
}
|
|
2194
|
-
function
|
|
2245
|
+
function En(e) {
|
|
2195
2246
|
return e ?? [];
|
|
2196
2247
|
}
|
|
2197
|
-
function
|
|
2248
|
+
function Tn(e) {
|
|
2198
2249
|
switch (e == null ? void 0 : e.inputType) {
|
|
2199
2250
|
case M.STRING:
|
|
2200
|
-
return
|
|
2251
|
+
return hn(e.stringOptions) ?? void 0;
|
|
2201
2252
|
case M.NUMBER:
|
|
2202
|
-
return
|
|
2253
|
+
return Rn(e.numberOptions) ?? void 0;
|
|
2203
2254
|
case M.PAYMENT:
|
|
2204
|
-
return
|
|
2255
|
+
return In(e.paymentOptions) ?? void 0;
|
|
2205
2256
|
default:
|
|
2206
2257
|
return;
|
|
2207
2258
|
}
|
|
2208
2259
|
}
|
|
2209
|
-
function
|
|
2260
|
+
function hn(e) {
|
|
2210
2261
|
var t, r, n, s, i;
|
|
2211
2262
|
switch (e == null ? void 0 : e.componentType) {
|
|
2212
2263
|
case q.DATE_TIME:
|
|
@@ -2223,27 +2274,27 @@ function mn(e) {
|
|
|
2223
2274
|
return;
|
|
2224
2275
|
}
|
|
2225
2276
|
}
|
|
2226
|
-
function
|
|
2277
|
+
function Rn(e) {
|
|
2227
2278
|
var t, r;
|
|
2228
2279
|
switch (e == null ? void 0 : e.componentType) {
|
|
2229
|
-
case
|
|
2280
|
+
case Re.NUMBER_INPUT:
|
|
2230
2281
|
return (t = e == null ? void 0 : e.numberInputOptions) == null ? void 0 : t.default;
|
|
2231
|
-
case
|
|
2282
|
+
case Re.RATING_INPUT:
|
|
2232
2283
|
return (r = e == null ? void 0 : e.ratingInputOptions) == null ? void 0 : r.defaultValue;
|
|
2233
2284
|
default:
|
|
2234
2285
|
return;
|
|
2235
2286
|
}
|
|
2236
2287
|
}
|
|
2237
|
-
function
|
|
2288
|
+
function In(e) {
|
|
2238
2289
|
var t;
|
|
2239
2290
|
switch (e == null ? void 0 : e.componentType) {
|
|
2240
|
-
case
|
|
2291
|
+
case ke.PAYMENT_INPUT:
|
|
2241
2292
|
return (t = e == null ? void 0 : e.paymentInputOptions) == null ? void 0 : t.default;
|
|
2242
2293
|
default:
|
|
2243
2294
|
return;
|
|
2244
2295
|
}
|
|
2245
2296
|
}
|
|
2246
|
-
function
|
|
2297
|
+
function An(e, t, r) {
|
|
2247
2298
|
return t in e ? Object.defineProperty(e, t, {
|
|
2248
2299
|
value: r,
|
|
2249
2300
|
enumerable: !0,
|
|
@@ -2251,12 +2302,12 @@ function pn(e, t, r) {
|
|
|
2251
2302
|
writable: !0
|
|
2252
2303
|
}) : e[t] = r, e;
|
|
2253
2304
|
}
|
|
2254
|
-
class
|
|
2305
|
+
class Ln {
|
|
2255
2306
|
validate(t, r) {
|
|
2256
2307
|
var s;
|
|
2257
2308
|
const n = ((s = t.formFields) == null ? void 0 : s.reduce((i, { inputOptions: o }) => {
|
|
2258
|
-
const
|
|
2259
|
-
return
|
|
2309
|
+
const u = Tn(o), a = o == null ? void 0 : o.target;
|
|
2310
|
+
return u && a && (i[a] = this.buildSubmissionValue(u, o, r)), i;
|
|
2260
2311
|
}, {})) || {};
|
|
2261
2312
|
if (Object.keys(n).length) {
|
|
2262
2313
|
const { errors: i } = this.submissionValidator.validateFields(t.id, n);
|
|
@@ -2269,7 +2320,7 @@ class Dn {
|
|
|
2269
2320
|
};
|
|
2270
2321
|
}
|
|
2271
2322
|
buildSubmissionValue(t, r, n) {
|
|
2272
|
-
var s, i, o,
|
|
2323
|
+
var s, i, o, u, a;
|
|
2273
2324
|
switch (r.inputType) {
|
|
2274
2325
|
case M.PAYMENT:
|
|
2275
2326
|
return (o = (i = (s = r.paymentOptions) == null ? void 0 : s.validation) == null ? void 0 : i.products) == null ? void 0 : o.map((f) => ({
|
|
@@ -2278,31 +2329,31 @@ class Dn {
|
|
|
2278
2329
|
quantity: 1
|
|
2279
2330
|
}));
|
|
2280
2331
|
case M.STRING: {
|
|
2281
|
-
const f = (
|
|
2282
|
-
return !f || typeof t != "string" ? t :
|
|
2332
|
+
const f = (a = (u = r.stringOptions) == null ? void 0 : u.validation) == null ? void 0 : a.format;
|
|
2333
|
+
return !f || typeof t != "string" ? t : me(f, () => /* @__PURE__ */ new Date(), t, n) ?? t;
|
|
2283
2334
|
}
|
|
2284
2335
|
default:
|
|
2285
2336
|
return t;
|
|
2286
2337
|
}
|
|
2287
2338
|
}
|
|
2288
2339
|
constructor(t) {
|
|
2289
|
-
|
|
2340
|
+
An(this, "submissionValidator", void 0), this.submissionValidator = t;
|
|
2290
2341
|
}
|
|
2291
2342
|
}
|
|
2292
2343
|
export {
|
|
2293
|
-
|
|
2344
|
+
nt as CALLING_COUNTRY_CODES,
|
|
2294
2345
|
S as DateFieldErrorSuffix,
|
|
2295
2346
|
v as DateTimeFieldErrorSuffix,
|
|
2296
2347
|
R as ErrorTypes,
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2348
|
+
en as FILE_UPLOAD_FIELD_TYPE,
|
|
2349
|
+
Ln as FormSchemaValidator,
|
|
2350
|
+
bn as FormValidator,
|
|
2300
2351
|
O as ValidationMode,
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2352
|
+
Cn as compareSchemaBackwardCompatibility,
|
|
2353
|
+
Tn as getDefaultValue,
|
|
2354
|
+
$n as groupErrorsByTarget,
|
|
2355
|
+
rt as isDateAvailable,
|
|
2356
|
+
tt as parseDateInput,
|
|
2357
|
+
wn as parseLocalDate,
|
|
2358
|
+
Fn as validatePremiumRestrictions
|
|
2308
2359
|
};
|