@wix/form-elements 1.158.0 → 1.160.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-m5-FH9kU.js → appointment-rac-BmHu56e5.js} +63 -63
- package/dist/component/{bookings-address-rac-VtG7wH0l.js → bookings-address-rac-DY9l2g0h.js} +1 -1
- package/dist/component/{bookings-email-rac-C8T3aTQH.js → bookings-email-rac-B5vNSOsS.js} +1 -1
- package/dist/component/{bookings-first-name-rac-BlhIWWNj.js → bookings-first-name-rac-CJiefCNz.js} +1 -1
- package/dist/component/{bookings-header-rac-adwR7PKJ.js → bookings-header-rac-BFu7Ko5w.js} +1 -1
- package/dist/component/{bookings-last-name-rac-z5z1GJQL.js → bookings-last-name-rac-DegMM13h.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-DMgVxy8J.js → bookings-login-bar-rac-DrA-5tBH.js} +7 -7
- package/dist/component/{bookings-phone-rac-DS7ffO6T.js → bookings-phone-rac-DsaeqxCI.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BNWI0o60.js → bookings-rich-text-rac-jRHiwqi8.js} +1 -1
- package/dist/component/{checkbox-field-rac-CUKZ9NHF.js → checkbox-field-rac-CyoBb6Yf.js} +43 -43
- package/dist/component/{checkbox-group-field-headless-Didam2ZD.js → checkbox-group-field-headless-Bv1gU3oL.js} +54 -54
- package/dist/component/{checkbox-group-field-rac-C3WCeVA8.js → checkbox-group-field-rac-DasArcdV.js} +6 -6
- package/dist/component/{checkbox-group-rac-Bkq-wm7_.js → checkbox-group-rac-CzmufV1U.js} +1 -1
- package/dist/component/{checkbox-rac-66ga9Lph.js → checkbox-rac-6C7XoUoZ.js} +1 -1
- package/dist/component/{contacts-address-rac-DSOk97te.js → contacts-address-rac-BZobbFtz.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-1qguKm9O.js → contacts-birthdate-rac-DIzf41DS.js} +1 -1
- package/dist/component/{contacts-company-rac-Chefzmw3.js → contacts-company-rac-BiBDO28r.js} +1 -1
- package/dist/component/{contacts-email-rac-DG6eAnz2.js → contacts-email-rac-5mqokCSD.js} +1 -1
- package/dist/component/{contacts-first-name-rac-tSGE0w5w.js → contacts-first-name-rac-BXe3_Nz5.js} +1 -1
- package/dist/component/{contacts-last-name-rac-BjZWfbM5.js → contacts-last-name-rac-Cfqgh7u1.js} +1 -1
- package/dist/component/{contacts-phone-rac-jfGNKLoZ.js → contacts-phone-rac-cmLUWnAc.js} +1 -1
- package/dist/component/{contacts-position-rac-kv8I-m_Q.js → contacts-position-rac-DTyvklfN.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-BkUG0AMs.js → contacts-subscribe-rac-D-ZEX1A3.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-BtFrK_Ci.js → contacts-tax-id-rac-B4NYJwWt.js} +1 -1
- package/dist/component/{date-availability-_A9DS6za.js → date-availability-Dach9aRC.js} +1 -1
- package/dist/component/date-input-field-rac-B72mHcya.js +309 -0
- package/dist/component/{date-input-rac-CpseQkV4.js → date-input-rac-CYix11gT.js} +1 -1
- package/dist/component/{date-picker-field-rac-B4gjhxG6.js → date-picker-field-rac-B8pvtPir.js} +86 -86
- package/dist/component/{date-picker-rac-DDJfUDCM.js → date-picker-rac-D6cR0zH9.js} +1 -1
- package/dist/component/date-time-input-field-rac-B7Y3Yf5l.js +441 -0
- package/dist/component/{date-time-input-rac-BkvcyU3H.js → date-time-input-rac-DMN-noQX.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-UWDhIjU-.js → dext-checkbox-group-rac-Kq0GnteP.js} +2 -2
- package/dist/component/{dext-checkbox-rac-q9UJnqsC.js → dext-checkbox-rac-BY9GZ4n1.js} +1 -1
- package/dist/component/{dext-date-picker-rac-C164FDSF.js → dext-date-picker-rac-CXArIddp.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BvbnfRYU.js → dext-date-time-input-rac-B39TtxGq.js} +1 -1
- package/dist/component/{dext-dropdown-rac-z0xU1mRO.js → dext-dropdown-rac-C3y0G8cS.js} +1 -1
- package/dist/component/{dext-email-rac-BkiWpfNw.js → dext-email-rac-BIg3cq7Q.js} +1 -1
- package/dist/component/{dext-number-input-rac-DeQWO-RK.js → dext-number-input-rac-27sHJ7yN.js} +1 -1
- package/dist/component/{dext-phone-rac-CGlVpadW.js → dext-phone-rac-CcohoFQp.js} +1 -1
- package/dist/component/dext-radio-group-rac-eead3Gve.js +18 -0
- package/dist/component/{dext-rating-input-rac-ibIctxU_.js → dext-rating-input-rac-B_E6OcBr.js} +1 -1
- package/dist/component/{dext-tags-rac-snCgM6u0.js → dext-tags-rac-Yd9aAtnF.js} +2 -2
- package/dist/component/{dext-text-area-rac-BHVs8ixR.js → dext-text-area-rac-CMACri2C.js} +1 -1
- package/dist/component/{dext-text-input-rac-DGI747Od.js → dext-text-input-rac-sNjSCfQ-.js} +1 -1
- package/dist/component/{dext-url-input-rac-CpO2VDPE.js → dext-url-input-rac-DwhbzJty.js} +1 -1
- package/dist/component/{donation-rac-Ck6HkRcW.js → donation-rac-BVAN3kMk.js} +90 -90
- package/dist/component/{dropdown-field-rac-e5MjWn5B.js → dropdown-field-rac-DdoGigWx.js} +14 -14
- package/dist/component/{dropdown-rac-B2jprC8G.js → dropdown-rac-CRkt5w47.js} +1 -1
- package/dist/component/{ecom-address-rac-D0stOqRv.js → ecom-address-rac-C36hFHW0.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-BRzaQKx3.js → ecom-subscription-checkbox-rac-BKfQ348w.js} +2 -2
- package/dist/component/{email-input-field-rac-0UIjNipg.js → email-input-field-rac-MOaISYxa.js} +59 -59
- package/dist/component/{events-repeater-rac-BBQZzP7U.js → events-repeater-rac-D6p-NgE8.js} +20 -20
- package/dist/component/{events-rsvp-rac-Ck7BXGKy.js → events-rsvp-rac-DVpgN8gm.js} +18 -18
- package/dist/component/{field-error-headless-vApyo-y9.js → field-error-headless-XNWmDH3E.js} +4 -4
- package/dist/component/{field-label-headless-C8-ShLxy.js → field-label-headless-CORRAJGt.js} +4 -4
- package/dist/component/{file-upload-rac-BzWJOM6C.js → file-upload-rac-DRMr7E4b.js} +89 -89
- package/dist/component/{fixed-payment-rac-C4_xI103.js → fixed-payment-rac-BUXzNex9.js} +18 -18
- package/dist/component/{form-D7ulDPh1.js → form-DSpx-AO8.js} +785 -728
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-BnBbhsOZ.js → header-field-rac-CiDXlNsa.js} +6 -6
- package/dist/component/{header-rac-CEWayr6b.js → header-rac-B5Rg-h8u.js} +1 -1
- package/dist/component/{image-choice-rac-DTZrz6oP.js → image-choice-rac-CtoA_KDp.js} +44 -44
- package/dist/component/{index-CKtw7kvn.js → index-Bz7ZhQsF.js} +53 -53
- package/dist/component/{index-DBbgIHYT.js → index-CwruESwc.js} +5 -5
- package/dist/component/{isObjectLike-BHfPE26c.js → isObjectLike-C5dHxHP0.js} +11 -11
- package/dist/component/multiline-address-field-rac-Z-qF366L.js +1664 -0
- package/dist/component/{multiline-address-rac-YQj_QROS.js → multiline-address-rac-CJIHTMw5.js} +1 -1
- package/dist/component/{number-input-field-rac-A7xM2c6F.js → number-input-field-rac-D4vf6I6N.js} +29 -29
- package/dist/component/{number-input-rac-DeDatLY5.js → number-input-rac-B2jW6JUQ.js} +1 -1
- package/dist/component/{password-rac-7Si7JHee.js → password-rac-DGRZ17Jl.js} +29 -29
- package/dist/component/{payment-input-rac-D4JKZl-5.js → payment-input-rac-BtD-tAKv.js} +27 -27
- package/dist/component/phone-input-field-rac-KD4-APhr.js +512 -0
- package/dist/component/{phone-rac-Y2mWnseb.js → phone-rac-Cw2yccgg.js} +1 -1
- package/dist/component/{product-list-rac-CYUcNqf3.js → product-list-rac-XbzTDdbp.js} +33 -33
- package/dist/component/{quiz-radio-group-rac-f3O7fksW.js → quiz-radio-group-rac-BDw_mAw5.js} +1 -1
- package/dist/component/{radio-button-module-classes-BgVUqcvD.js → radio-button-module-classes-CFGf0Hzh.js} +23 -23
- package/dist/component/{radio-group-field-rac-DrOiyk5C.js → radio-group-field-rac-CXN7tyVu.js} +6 -6
- package/dist/component/{radio-group-rac-Btt_bz_K.js → radio-group-rac-COHzqjBh.js} +1 -1
- package/dist/component/{rating-input-field-rac-CwN7wyaw.js → rating-input-field-rac-DCXNZgf1.js} +37 -37
- package/dist/component/{rating-input-rac-sTy0SV3L.js → rating-input-rac-DwQt9ML7.js} +1 -1
- package/dist/component/{rich-content-rac.module-C11w9mXa.js → rich-content-rac.module-B7rPwNns.js} +8 -8
- package/dist/component/{rich-text-field-rac-kGwuDtNs.js → rich-text-field-rac-DlER7NRD.js} +4 -4
- package/dist/component/{rich-text-rac-T4ic2hrA.js → rich-text-rac-CjicsHA7.js} +1 -1
- package/dist/component/service-dropdown-rac-B81LC_6_.js +145 -0
- package/dist/component/{services-multi-choice-rac-CLQ4dLxO.js → services-multi-choice-rac-BR6gZeHk.js} +16 -16
- package/dist/component/{signature-rac-DLiFeCNL.js → signature-rac-XFj7Ddtp.js} +69 -69
- package/dist/component/{submit-button-rac-CccO80E1.js → submit-button-rac-Bz7zs_3W.js} +12 -12
- package/dist/component/{tags-field-rac-DaghCGJU.js → tags-field-rac-DWWkNKqc.js} +79 -79
- package/dist/component/{tags-rac-3ly5shW2.js → tags-rac-BXyiQ9i1.js} +1 -1
- package/dist/component/{text-area-field-rac-2-TYC5Lb.js → text-area-field-rac-DsIRYi0d.js} +21 -21
- package/dist/component/{text-area-rac-Bx0pgw80.js → text-area-rac-CF9pDP9d.js} +1 -1
- package/dist/component/{text-input-field-rac-Dyur2Wby.js → text-input-field-rac-BwIDZACz.js} +5 -5
- package/dist/component/{text-input-headless-DZ-Pjpm4.js → text-input-headless-5kQs2_Xu.js} +14 -14
- package/dist/component/{text-input-rac-BuBtJDX_.js → text-input-rac-CRmSuw1k.js} +1 -1
- package/dist/component/{time-input-rac-AlDEpfXZ.js → time-input-rac-BRMNpe51.js} +20 -20
- package/dist/component/{url-input-field-rac-BzP4-8yP.js → url-input-field-rac-CKLS3QDk.js} +17 -17
- package/dist/component/{url-input-rac-DaBXuedf.js → url-input-rac-Dv-kp50D.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-BQi_qE_-.js +116 -0
- package/dist/component/use-dropdown-trigger-class-name-bAK8aHiG.js +96 -0
- package/dist/component/{use-element-state-class-name-DY0UyIQg.js → use-element-state-class-name-rXM_lHug.js} +1 -1
- package/dist/component/{use-hoverable-input-class-name-C_Wh4Qfc.js → use-hoverable-input-class-name-BnV_uerV.js} +2 -2
- package/dist/component/use-is-forced-open-dropdown-Bp-5Xpmw.js +53 -0
- package/dist/component/{use-service-options-base-DgSaAuGy.js → use-service-options-base-CLeE9-Tx.js} +10 -10
- package/dist/component/use-text-input-class-name-DIKWvfkm.js +6 -0
- package/dist/form.d.ts +8 -0
- package/package.json +2 -2
- package/dist/component/date-input-field-rac-QZUxFX5e.js +0 -303
- package/dist/component/date-time-input-field-rac-DcwKQKHf.js +0 -433
- package/dist/component/dext-radio-group-rac-D8hMWNIQ.js +0 -18
- package/dist/component/dropdown-field-headless-Bv6LrkeA.js +0 -93
- package/dist/component/multiline-address-field-rac-jhcWn4wT.js +0 -1659
- package/dist/component/phone-input-field-rac-GxcQ_Pyl.js +0 -508
- package/dist/component/service-dropdown-rac-BfliE4hs.js +0 -145
- package/dist/component/use-dropdown-trigger-class-name-BKOFwNvc.js +0 -117
- package/dist/component/use-is-forced-open-dropdown-Bw_IFUKt.js +0 -48
- package/dist/component/use-text-input-class-name-DFMQAg_E.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-
|
|
5
|
-
const
|
|
3
|
+
import { bz as u, bb as i, ba as C, bd as R, aM as d, au as T } from "./form-DSpx-AO8.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-B7rPwNns.js";
|
|
5
|
+
const f = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
8
8
|
customStyles: {
|
|
@@ -10,8 +10,8 @@ const y = ({ truncate: t = !0 } = {}) => {
|
|
|
10
10
|
...i()
|
|
11
11
|
}
|
|
12
12
|
}), []), { displayedContent: o, isTruncated: r, isTruncateButtonShown: c, toggleTruncate: l } = g(a, t ? s : void 0);
|
|
13
|
-
return /* @__PURE__ */ e.createElement(p, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
14
|
-
className: m(
|
|
13
|
+
return /* @__PURE__ */ e.createElement(p, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(d, {
|
|
14
|
+
className: m(T, S.richContent),
|
|
15
15
|
content: o,
|
|
16
16
|
customTheme: n
|
|
17
17
|
}), c && /* @__PURE__ */ e.createElement(h, {
|
|
@@ -20,5 +20,5 @@ const y = ({ truncate: t = !0 } = {}) => {
|
|
|
20
20
|
})));
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
f as H
|
|
24
24
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import e, { useMemo as
|
|
1
|
+
import e, { useMemo as H, useCallback as T, useRef as G } from "react";
|
|
2
2
|
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import {
|
|
4
|
+
import { bz as b, bw as x, bB as B, bs as P, V as q, ab as U, R as w, T as z, L as V, z as K, S as Q, f } from "./form-DSpx-AO8.js";
|
|
5
5
|
import { CheckboxGroup as Y, CheckboxField as $, CheckboxButton as j } from "react-aria-components";
|
|
6
6
|
import { f as m, a as F } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as J, g as W } from "./field-label-headless-
|
|
8
|
-
import { D as X, E as Z } from "./field-error-headless-
|
|
7
|
+
import { L as J, g as W } from "./field-label-headless-CORRAJGt.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-XNWmDH3E.js";
|
|
9
9
|
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
10
|
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-DP0lkkEv.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-rXM_lHug.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
|
-
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError:
|
|
14
|
+
const { id: s, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: p, hasError: C, FieldLayout: L } = b(), { inputId: g, labelId: _, ariaDescribedBy: h } = x(), N = m(t, o.Label), S = m(t, o.Options), A = m(t, o.Description), D = m(t, o.Error), M = H(() => a || [], [
|
|
15
15
|
a
|
|
16
|
-
]), v = T((
|
|
17
|
-
i == null || i(
|
|
16
|
+
]), v = T((y) => {
|
|
17
|
+
i == null || i(y);
|
|
18
18
|
}, [
|
|
19
19
|
i
|
|
20
20
|
]);
|
|
21
|
-
return /* @__PURE__ */ e.createElement(
|
|
21
|
+
return /* @__PURE__ */ e.createElement(L, {
|
|
22
22
|
fieldId: s,
|
|
23
|
-
renderLabel: () =>
|
|
23
|
+
renderLabel: () => N,
|
|
24
24
|
renderInput: () => /* @__PURE__ */ e.createElement(ee, {
|
|
25
|
-
id:
|
|
25
|
+
id: g,
|
|
26
26
|
ariaLabelledBy: _,
|
|
27
|
-
ariaDescribedBy:
|
|
27
|
+
ariaDescribedBy: h,
|
|
28
28
|
required: c,
|
|
29
29
|
onBlur: u,
|
|
30
30
|
onFocus: p
|
|
@@ -36,12 +36,12 @@ const o = ({ children: t, className: n }) => {
|
|
|
36
36
|
isDisabled: l,
|
|
37
37
|
isReadOnly: r,
|
|
38
38
|
isRequired: c,
|
|
39
|
-
isInvalid:
|
|
40
|
-
},
|
|
41
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
39
|
+
isInvalid: C
|
|
40
|
+
}, S)),
|
|
41
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, D, A)
|
|
42
42
|
});
|
|
43
|
-
},
|
|
44
|
-
const { id: s, options: a, numberOfColumns: i } = b(), l = m(t,
|
|
43
|
+
}, R = ({ children: t, className: n }) => {
|
|
44
|
+
const { id: s, options: a, numberOfColumns: i } = b(), l = m(t, R.Option);
|
|
45
45
|
return /* @__PURE__ */ e.createElement("div", {
|
|
46
46
|
className: n,
|
|
47
47
|
"data-columns": i
|
|
@@ -77,15 +77,15 @@ const o = ({ children: t, className: n }) => {
|
|
|
77
77
|
return !s.label || s.isLabelHidden ? null : /* @__PURE__ */ e.createElement("span", {
|
|
78
78
|
className: t
|
|
79
79
|
}, s.label);
|
|
80
|
-
},
|
|
80
|
+
}, E = ({ children: t, className: n, ...s }) => {
|
|
81
81
|
const { option: a, isFirst: i = !1, fieldId: l } = s, { disabled: r, readOnly: c, hasError: u } = b(), p = G(null);
|
|
82
|
-
|
|
82
|
+
B(() => {
|
|
83
83
|
var _;
|
|
84
84
|
i && ((_ = p.current) == null || _.focus({
|
|
85
85
|
preventScroll: !0
|
|
86
86
|
}));
|
|
87
87
|
}, l);
|
|
88
|
-
const
|
|
88
|
+
const C = m(t, E.Input), L = m(t, E.Image), g = m(t, E.Label);
|
|
89
89
|
return /* @__PURE__ */ e.createElement($, {
|
|
90
90
|
value: a.label,
|
|
91
91
|
isDisabled: r,
|
|
@@ -96,60 +96,60 @@ const o = ({ children: t, className: n }) => {
|
|
|
96
96
|
"aria-label": a.isLabelHidden ? a.label : void 0,
|
|
97
97
|
className: n,
|
|
98
98
|
"data-hook": `image-choice-${a.label}`
|
|
99
|
-
},
|
|
99
|
+
}, C, F(L, {
|
|
100
100
|
option: a
|
|
101
|
-
}), F(
|
|
101
|
+
}), F(g, {
|
|
102
102
|
option: a
|
|
103
103
|
})));
|
|
104
104
|
};
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
105
|
+
E.Input = ae;
|
|
106
|
+
E.Image = ne;
|
|
107
|
+
E.Label = se;
|
|
108
108
|
o.Label = J;
|
|
109
|
-
o.Options =
|
|
110
|
-
|
|
109
|
+
o.Options = R;
|
|
110
|
+
R.Option = E;
|
|
111
111
|
o.Description = X;
|
|
112
112
|
o.Error = Z;
|
|
113
|
-
const le = "
|
|
113
|
+
const le = "_options_1h2d0_1", ie = "_optionInput_1h2d0_33", re = "_option_1h2d0_1", ce = "_optionHover_1h2d0_67", me = "_optionSelected_1h2d0_67", pe = "_optionLabel_1h2d0_107", de = "_optionImage_1h2d0_152", d = {
|
|
114
114
|
options: le,
|
|
115
115
|
optionInput: ie,
|
|
116
116
|
option: re,
|
|
117
117
|
optionHover: ce,
|
|
118
118
|
optionSelected: me,
|
|
119
119
|
optionLabel: pe,
|
|
120
|
-
optionImage:
|
|
121
|
-
},
|
|
120
|
+
optionImage: de
|
|
121
|
+
}, Ee = ({ content: t, locale: n }) => /* @__PURE__ */ e.createElement(k, {
|
|
122
122
|
content: t,
|
|
123
123
|
locale: n
|
|
124
124
|
}), ue = {
|
|
125
|
-
base:
|
|
126
|
-
selected:
|
|
127
|
-
hover:
|
|
125
|
+
base: d.option,
|
|
126
|
+
selected: d.optionSelected,
|
|
127
|
+
hover: d.optionHover
|
|
128
128
|
}, Ie = () => {
|
|
129
129
|
const t = oe({
|
|
130
130
|
globalClasses: Q,
|
|
131
131
|
moduleClasses: ue
|
|
132
|
-
}), n =
|
|
132
|
+
}), n = P(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
|
|
133
133
|
return /* @__PURE__ */ e.createElement(o, null, /* @__PURE__ */ e.createElement(o.Label, {
|
|
134
|
-
className: I(
|
|
134
|
+
className: I(q, O.label)
|
|
135
135
|
}, /* @__PURE__ */ e.createElement(o.Label.Required, {
|
|
136
|
-
className: I(
|
|
136
|
+
className: I(U, O.requiredMark)
|
|
137
137
|
})), /* @__PURE__ */ e.createElement(o.Options, {
|
|
138
|
-
className: I(
|
|
138
|
+
className: I(w, d.options)
|
|
139
139
|
}, /* @__PURE__ */ e.createElement(o.Options.Option, {
|
|
140
140
|
className: t
|
|
141
141
|
}, /* @__PURE__ */ e.createElement(o.Options.Option.Input, {
|
|
142
|
-
className:
|
|
142
|
+
className: d.optionInput
|
|
143
143
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Image, {
|
|
144
|
-
className: I(
|
|
144
|
+
className: I(z, d.optionImage, n)
|
|
145
145
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
|
|
146
|
-
className:
|
|
146
|
+
className: d.optionLabel
|
|
147
147
|
}))), /* @__PURE__ */ e.createElement(o.Error, {
|
|
148
|
-
className: I(
|
|
148
|
+
className: I(V, O.error)
|
|
149
149
|
}, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
150
150
|
className: I(K, O.description)
|
|
151
|
-
},
|
|
152
|
-
},
|
|
151
|
+
}, Ee));
|
|
152
|
+
}, Ae = () => /* @__PURE__ */ e.createElement(Ie, null);
|
|
153
153
|
export {
|
|
154
|
-
|
|
154
|
+
Ae as ImageChoiceRAC
|
|
155
155
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R,
|
|
2
|
-
import {
|
|
1
|
+
import { e as R, aU as _, b7 as de, aV as g, aA as Ge, B as Be, aO as qe, aH as He, aG as I, aP as Ee, aY as re, aS as Fe, c as B, aI as M, bj as Te, aK as je, aJ as he, aL as q } from "./form-DSpx-AO8.js";
|
|
2
|
+
import { be as Mn } from "./form-DSpx-AO8.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
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-
|
|
10
|
-
import { a as Sn } from "./date-availability-
|
|
9
|
+
import { p as Qe, i as et } from "./date-availability-Dach9aRC.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-Dach9aRC.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -531,10 +531,10 @@ const Nt = [
|
|
|
531
531
|
"ZWN",
|
|
532
532
|
"ZWR"
|
|
533
533
|
], yt = new Set(Nt.map((e) => e.toLowerCase()));
|
|
534
|
-
function
|
|
534
|
+
function Ot(e) {
|
|
535
535
|
return yt.has(e.toLowerCase());
|
|
536
536
|
}
|
|
537
|
-
const oe = "¡---a-zA-Z", $e = "0-9", U = `${oe}${$e}`, Ne = "!#$%&'*+/=?^_`{|}~-",
|
|
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 = [
|
|
538
538
|
"aa",
|
|
539
539
|
"ab",
|
|
540
540
|
"ae",
|
|
@@ -749,7 +749,7 @@ const ye = {
|
|
|
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:
|
|
752
|
+
currency: Ot,
|
|
753
753
|
language: Ct,
|
|
754
754
|
"time-zone": Ft
|
|
755
755
|
};
|
|
@@ -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),
|
|
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"));
|
|
916
916
|
return {
|
|
917
917
|
$id: h(c.id, c, "id"),
|
|
918
918
|
type: y.OBJECT,
|
|
919
|
-
properties:
|
|
919
|
+
properties: O,
|
|
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 ===
|
|
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"));
|
|
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 !==
|
|
1041
|
+
return t !== g.UNRESTRICTED_UPDATE ? {
|
|
1042
1042
|
...G(Be, e)
|
|
1043
1043
|
} : {};
|
|
1044
1044
|
}
|
|
@@ -1051,7 +1051,7 @@ function Q(e, t) {
|
|
|
1051
1051
|
};
|
|
1052
1052
|
}
|
|
1053
1053
|
function Vt(e, t) {
|
|
1054
|
-
return t !==
|
|
1054
|
+
return t !== g.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),
|
|
@@ -1063,7 +1063,7 @@ const Zt = [
|
|
|
1063
1063
|
"minItems",
|
|
1064
1064
|
"maxItems"
|
|
1065
1065
|
], ue = 100;
|
|
1066
|
-
function
|
|
1066
|
+
function Oe(e, t) {
|
|
1067
1067
|
const n = Qt(t, (e || {}).items);
|
|
1068
1068
|
return {
|
|
1069
1069
|
type: y.ARRAY,
|
|
@@ -1075,7 +1075,7 @@ function ge(e, t) {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
}
|
|
1077
1077
|
function Jt(e, t) {
|
|
1078
|
-
return t !==
|
|
1078
|
+
return t !== g.UNRESTRICTED_UPDATE ? {
|
|
1079
1079
|
...xe(e)
|
|
1080
1080
|
} : {};
|
|
1081
1081
|
}
|
|
@@ -1098,20 +1098,20 @@ function er(e, t) {
|
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
1100
|
function tr(e, t) {
|
|
1101
|
-
return t !==
|
|
1101
|
+
return t !== g.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 =
|
|
1108
|
+
function K(e, t, r = g.UNKNOWN) {
|
|
1109
1109
|
const { format: n } = t;
|
|
1110
1110
|
switch (n) {
|
|
1111
1111
|
case _.WIX_FILE:
|
|
1112
|
-
return Y(
|
|
1112
|
+
return Y(ge[_.WIX_FILE], r);
|
|
1113
1113
|
case _.SCHEDULING:
|
|
1114
|
-
return Y(
|
|
1114
|
+
return Y(ge[_.SCHEDULING], r);
|
|
1115
1115
|
case _.PAYMENT:
|
|
1116
1116
|
return nr(t.paymentOptions, r);
|
|
1117
1117
|
case _.OBJECT_ARRAY:
|
|
@@ -1125,10 +1125,10 @@ function K(e, t, r = O.UNKNOWN) {
|
|
|
1125
1125
|
function rr(e, t, r) {
|
|
1126
1126
|
return {
|
|
1127
1127
|
type: y.ARRAY,
|
|
1128
|
-
...t.maxItems && r !==
|
|
1128
|
+
...t.maxItems && r !== g.UNRESTRICTED_UPDATE && {
|
|
1129
1129
|
maxItems: t.maxItems
|
|
1130
1130
|
},
|
|
1131
|
-
...t.minItems && r !==
|
|
1131
|
+
...t.minItems && r !== g.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 ===
|
|
1140
|
+
if (t === g.UNRESTRICTED_UPDATE)
|
|
1141
1141
|
return {
|
|
1142
1142
|
type: y.ARRAY,
|
|
1143
1143
|
items: {
|
|
@@ -1249,7 +1249,7 @@ function sr(e) {
|
|
|
1249
1249
|
throw new Error(`Unknown price type ${t}`);
|
|
1250
1250
|
}
|
|
1251
1251
|
}
|
|
1252
|
-
const
|
|
1252
|
+
const ge = {
|
|
1253
1253
|
[_.WIX_FILE]: {
|
|
1254
1254
|
array: {
|
|
1255
1255
|
maxItems: 30,
|
|
@@ -1327,15 +1327,15 @@ 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(
|
|
1330
|
+
var m = new Date(c), T = (function(O, N) {
|
|
1331
1331
|
N === void 0 && (N = {});
|
|
1332
|
-
var A = N.timeZoneName || "short", P =
|
|
1333
|
-
return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone:
|
|
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;
|
|
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
|
|
1338
|
+
var O = d[T], N = O.type, A = O.value, P = r[N];
|
|
1339
1339
|
P >= 0 && (m[P] = parseInt(A, 10));
|
|
1340
1340
|
}
|
|
1341
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;
|
|
@@ -1343,9 +1343,9 @@ function or() {
|
|
|
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(),
|
|
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
1347
|
if (!Number(A)) d = this.utcOffset(0, E);
|
|
1348
|
-
else if (d = o(
|
|
1348
|
+
else if (d = o(O, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(A, !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,
|
|
1365
|
+
var m = d && E, T = d || E || a, O = f(+o(), T);
|
|
1366
1366
|
if (typeof c != "string") return o(c).tz(T);
|
|
1367
1367
|
var N = (function(F, b, L) {
|
|
1368
1368
|
var C = F - 60 * b * 1e3, $ = f(C, L);
|
|
1369
1369
|
if (b === $) return [C, b];
|
|
1370
1370
|
var se = f(C -= 60 * ($ - b) * 1e3, L);
|
|
1371
1371
|
return $ === se ? [C, $] : [F - 60 * Math.min($, se) * 1e3, Math.max($, se)];
|
|
1372
|
-
})(o.utc(c, m).valueOf(),
|
|
1372
|
+
})(o.utc(c, m).valueOf(), O, T), A = N[0], P = N[1], D = o(A).utcOffset(P);
|
|
1373
1373
|
return D.$x.$timezone = T, D;
|
|
1374
1374
|
}, o.tz.guess = function() {
|
|
1375
1375
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
@@ -1413,8 +1413,8 @@ function mr() {
|
|
|
1413
1413
|
};
|
|
1414
1414
|
var p = u.utcOffset;
|
|
1415
1415
|
u.utcOffset = function(m, T) {
|
|
1416
|
-
var
|
|
1417
|
-
if (
|
|
1416
|
+
var O = this.$utils().u;
|
|
1417
|
+
if (O(m)) return this.$u ? 0 : O(this.$offset) ? p.call(this) : this.$offset;
|
|
1418
1418
|
if (typeof m == "string" && (m = (function(D) {
|
|
1419
1419
|
D === void 0 && (D = "");
|
|
1420
1420
|
var F = D.match(n);
|
|
@@ -1448,10 +1448,10 @@ 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,
|
|
1452
|
-
if (m && this.$u === m.$u) return d.call(this, m, T,
|
|
1451
|
+
u.diff = function(m, T, O) {
|
|
1452
|
+
if (m && this.$u === m.$u) return d.call(this, m, T, O);
|
|
1453
1453
|
var N = this.local(), A = a(m).local();
|
|
1454
|
-
return d.call(N, A, T,
|
|
1454
|
+
return d.call(N, A, T, O);
|
|
1455
1455
|
};
|
|
1456
1456
|
};
|
|
1457
1457
|
}));
|
|
@@ -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 =
|
|
1495
|
+
const [, r, n, s] = e.match(we) ?? [], i = Nr(n), o = Or(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
|
|
1516
|
+
function Or(e) {
|
|
1517
1517
|
if ([
|
|
1518
1518
|
"d",
|
|
1519
1519
|
"M",
|
|
@@ -1538,7 +1538,7 @@ function Me(e) {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
const ce = 2e4;
|
|
1540
1540
|
function ee(e, t) {
|
|
1541
|
-
const r =
|
|
1541
|
+
const r = gr(e) ? Wt(Fe, e) : {};
|
|
1542
1542
|
return {
|
|
1543
1543
|
type: y.STRING,
|
|
1544
1544
|
maxLength: ce,
|
|
@@ -1547,14 +1547,14 @@ function ee(e, t) {
|
|
|
1547
1547
|
..._r(e, t)
|
|
1548
1548
|
};
|
|
1549
1549
|
}
|
|
1550
|
-
function
|
|
1550
|
+
function gr(e) {
|
|
1551
1551
|
return "validationMessages" in e;
|
|
1552
1552
|
}
|
|
1553
1553
|
function _r(e, t) {
|
|
1554
1554
|
const r = Sr(e), n = r ? {
|
|
1555
1555
|
dateAvailability: r
|
|
1556
1556
|
} : {};
|
|
1557
|
-
return t !==
|
|
1557
|
+
return t !== g.UNRESTRICTED_UPDATE ? {
|
|
1558
1558
|
...G(Fe.filter((s) => s !== "format"), e, {
|
|
1559
1559
|
maxLength: (s) => Math.min(s ?? ce, ce)
|
|
1560
1560
|
}),
|
|
@@ -1631,7 +1631,7 @@ function Sr(e) {
|
|
|
1631
1631
|
const t = "dateOptions" in e ? e.dateOptions : void 0;
|
|
1632
1632
|
return t == null ? void 0 : t.availability;
|
|
1633
1633
|
}
|
|
1634
|
-
function Y(e, t = void 0, r =
|
|
1634
|
+
function Y(e, t = void 0, r = g.UNKNOWN) {
|
|
1635
1635
|
if (e != null && e.string)
|
|
1636
1636
|
return ee(e.string, r);
|
|
1637
1637
|
if (e != null && e.stringOptions)
|
|
@@ -1647,9 +1647,9 @@ function Y(e, t = void 0, r = O.UNKNOWN) {
|
|
|
1647
1647
|
if (e != null && e.booleanOptions)
|
|
1648
1648
|
return J(e == null ? void 0 : e.booleanOptions, r);
|
|
1649
1649
|
if (e != null && e.array)
|
|
1650
|
-
return
|
|
1650
|
+
return Oe(e.array, r);
|
|
1651
1651
|
if (e != null && e.arrayOptions)
|
|
1652
|
-
return
|
|
1652
|
+
return Oe(e.arrayOptions, r);
|
|
1653
1653
|
if (e != null && e.object)
|
|
1654
1654
|
return te(e.object, r);
|
|
1655
1655
|
if (e != null && e.objectOptions)
|
|
@@ -1667,7 +1667,7 @@ function te(e, t) {
|
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
1669
|
function br(e, t) {
|
|
1670
|
-
return t !==
|
|
1670
|
+
return t !== g.UNRESTRICTED_UPDATE ? {
|
|
1671
1671
|
required: Cr(e.properties)
|
|
1672
1672
|
} : {
|
|
1673
1673
|
required: []
|
|
@@ -1816,7 +1816,7 @@ class Nn {
|
|
|
1816
1816
|
if (!n)
|
|
1817
1817
|
throw new Error(`Missing form ${t} for validation`);
|
|
1818
1818
|
let s = this.submissionValueProvider ? this.submissionValueProvider(r, n) : r;
|
|
1819
|
-
return this.validationMode !==
|
|
1819
|
+
return this.validationMode !== g.UNRESTRICTED_UPDATE && (s = dt(s, n)), {
|
|
1820
1820
|
ajv: this.initAJvWithSchemas(n, s),
|
|
1821
1821
|
submission: s,
|
|
1822
1822
|
currentlyValidatableForm: n
|
|
@@ -1853,7 +1853,7 @@ class Nn {
|
|
|
1853
1853
|
});
|
|
1854
1854
|
}
|
|
1855
1855
|
validateCanUpdateFormNotDisabled(t) {
|
|
1856
|
-
return this.validationMode !==
|
|
1856
|
+
return this.validationMode !== g.UNRESTRICTED_UPDATE && this.isFormDisabled(t) ? {
|
|
1857
1857
|
errors: [
|
|
1858
1858
|
{
|
|
1859
1859
|
errorPath: "form.properties.disabled",
|
|
@@ -1935,10 +1935,10 @@ class Nn {
|
|
|
1935
1935
|
return !!((s = t == null ? void 0 : t.properties) != null && s.disabled || r);
|
|
1936
1936
|
}
|
|
1937
1937
|
getFormSchemaMapper() {
|
|
1938
|
-
return this.platformisedFieldBasedValidation ? kt(wr, this.validationMode ??
|
|
1938
|
+
return this.platformisedFieldBasedValidation ? kt(wr, this.validationMode ?? g.UNKNOWN) : Xt(Y, this.validationMode ?? g.UNKNOWN);
|
|
1939
1939
|
}
|
|
1940
1940
|
initAJvWithSchemas(t, r) {
|
|
1941
|
-
const n = this.getFormSchemaMapper(), s = jt(n, this.validationMode !==
|
|
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) => ({
|
|
1942
1942
|
...l,
|
|
1943
1943
|
id: p
|
|
1944
1944
|
})))), o = this.getAddressForms(t, r), a = this.getObjectArrayForms(t);
|
|
@@ -2057,7 +2057,7 @@ var fe;
|
|
|
2057
2057
|
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
2058
|
})(fe || (fe = {}));
|
|
2059
2059
|
const Xr = "FILE_UPLOAD";
|
|
2060
|
-
function
|
|
2060
|
+
function On(e, t, r) {
|
|
2061
2061
|
var s, i, o, a;
|
|
2062
2062
|
const n = [
|
|
2063
2063
|
Wr({
|
|
@@ -2233,7 +2233,7 @@ function fn(e, t, r) {
|
|
|
2233
2233
|
writable: !0
|
|
2234
2234
|
}) : e[t] = r, e;
|
|
2235
2235
|
}
|
|
2236
|
-
class
|
|
2236
|
+
class gn {
|
|
2237
2237
|
validate(t, r) {
|
|
2238
2238
|
var s;
|
|
2239
2239
|
const n = ((s = t.formFields) == null ? void 0 : s.reduce((i, { inputOptions: o }) => {
|
|
@@ -2277,14 +2277,14 @@ export {
|
|
|
2277
2277
|
v as DateTimeFieldErrorSuffix,
|
|
2278
2278
|
R as ErrorTypes,
|
|
2279
2279
|
Xr as FILE_UPLOAD_FIELD_TYPE,
|
|
2280
|
-
|
|
2280
|
+
gn as FormSchemaValidator,
|
|
2281
2281
|
Nn as FormValidator,
|
|
2282
|
-
|
|
2282
|
+
g as ValidationMode,
|
|
2283
2283
|
yn as compareSchemaBackwardCompatibility,
|
|
2284
2284
|
un as getDefaultValue,
|
|
2285
2285
|
Mn as groupErrorsByTarget,
|
|
2286
2286
|
et as isDateAvailable,
|
|
2287
2287
|
Qe as parseDateInput,
|
|
2288
2288
|
Sn as parseLocalDate,
|
|
2289
|
-
|
|
2289
|
+
On as validatePremiumRestrictions
|
|
2290
2290
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as
|
|
1
|
+
import { bi as n } from "./form-DSpx-AO8.js";
|
|
2
|
+
import { A as N, a as S, C as p, aN as g, b2 as q, b3 as D, bk as L } from "./form-DSpx-AO8.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -52,9 +52,9 @@ function m(e, r) {
|
|
|
52
52
|
}, t == null ? void 0 : t.key).replace(/^[\s,]+|[\s,]+$/g, "");
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
N as ADDRESS_FORM_IDS,
|
|
56
|
+
S as ADDRESS_FORM_ID_BY_COUNTRY,
|
|
57
|
+
p as COUNTRY_CODES,
|
|
58
58
|
g as MultilineAddressToolkit,
|
|
59
59
|
m as formatMultilineAddress,
|
|
60
60
|
q as getCountryField,
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aW as c } from "./form-DSpx-AO8.js";
|
|
2
2
|
var b, d;
|
|
3
|
-
function
|
|
3
|
+
function k() {
|
|
4
4
|
if (d) return b;
|
|
5
5
|
d = 1;
|
|
6
6
|
var r = typeof c == "object" && c && c.Object === Object && c;
|
|
7
7
|
return b = r, b;
|
|
8
8
|
}
|
|
9
9
|
var f, S;
|
|
10
|
-
function
|
|
10
|
+
function I() {
|
|
11
11
|
if (S) return f;
|
|
12
12
|
S = 1;
|
|
13
|
-
var r =
|
|
13
|
+
var r = k(), e = typeof self == "object" && self && self.Object === Object && self, t = r || e || Function("return this")();
|
|
14
14
|
return f = t, f;
|
|
15
15
|
}
|
|
16
16
|
var s, O;
|
|
17
17
|
function R() {
|
|
18
18
|
if (O) return s;
|
|
19
19
|
O = 1;
|
|
20
|
-
var r =
|
|
20
|
+
var r = I(), e = r.Symbol;
|
|
21
21
|
return s = e, s;
|
|
22
22
|
}
|
|
23
23
|
var g, _;
|
|
24
|
-
function
|
|
24
|
+
function L() {
|
|
25
25
|
if (_) return g;
|
|
26
26
|
_ = 1;
|
|
27
27
|
var r = R(), e = Object.prototype, t = e.hasOwnProperty, i = e.toString, o = r ? r.toStringTag : void 0;
|
|
@@ -51,7 +51,7 @@ var j, q;
|
|
|
51
51
|
function N() {
|
|
52
52
|
if (q) return j;
|
|
53
53
|
q = 1;
|
|
54
|
-
var r = R(), e =
|
|
54
|
+
var r = R(), e = L(), t = P(), i = "[object Null]", o = "[object Undefined]", u = r ? r.toStringTag : void 0;
|
|
55
55
|
function n(a) {
|
|
56
56
|
return a == null ? a === void 0 ? o : i : u && u in Object(a) ? e(a) : t(a);
|
|
57
57
|
}
|
|
@@ -68,7 +68,7 @@ function U() {
|
|
|
68
68
|
return v = r, v;
|
|
69
69
|
}
|
|
70
70
|
var T, p;
|
|
71
|
-
function
|
|
71
|
+
function W() {
|
|
72
72
|
if (p) return T;
|
|
73
73
|
p = 1;
|
|
74
74
|
function r(e) {
|
|
@@ -77,10 +77,10 @@ function z() {
|
|
|
77
77
|
return T = r, T;
|
|
78
78
|
}
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
W as a,
|
|
81
81
|
R as b,
|
|
82
82
|
N as c,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
k as d,
|
|
84
|
+
I as e,
|
|
85
85
|
U as r
|
|
86
86
|
};
|