@wix/form-elements 1.143.0 → 1.144.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-BAwonF75.js → appointment-rac-BxrHjvGM.js} +93 -93
- package/dist/component/{bookings-address-rac-xhj2n7jK.js → bookings-address-rac-CLWQa4ND.js} +1 -1
- package/dist/component/{bookings-email-rac-BGjeAwgm.js → bookings-email-rac-DZemUnFy.js} +1 -1
- package/dist/component/{bookings-first-name-rac-l392yYAU.js → bookings-first-name-rac-DyGMqRWi.js} +1 -1
- package/dist/component/{bookings-header-rac-JwIo7hsJ.js → bookings-header-rac-DmUeRhWl.js} +1 -1
- package/dist/component/{bookings-last-name-rac-CJp81BPl.js → bookings-last-name-rac-DOuCYe0Q.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-BiPklGE_.js → bookings-login-bar-rac-BnmS1sak.js} +1 -1
- package/dist/component/{bookings-phone-rac-mQfDJGkK.js → bookings-phone-rac-F5YJaXHy.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-BOfHn2EU.js → bookings-rich-text-rac-DAuqLM8j.js} +1 -1
- package/dist/component/{checkbox-field-rac-CA6SeM0c.js → checkbox-field-rac-DsQrwgzd.js} +83 -83
- package/dist/component/{checkbox-group-field-headless-ChLT0zKA.js → checkbox-group-field-headless-oPw2miey.js} +61 -61
- package/dist/component/{checkbox-group-field-rac-_Fkre79S.js → checkbox-group-field-rac-hPscGPkW.js} +4 -4
- package/dist/component/{checkbox-group-rac-esBLJZ6Y.js → checkbox-group-rac-DuIn-RKl.js} +1 -1
- package/dist/component/{checkbox-rac-C3vXtbJh.js → checkbox-rac-C_-b9_8s.js} +1 -1
- package/dist/component/{contacts-address-rac-BuBBBt19.js → contacts-address-rac-CbIN1ubI.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BMBJeVOK.js → contacts-birthdate-rac-B-ek4Puf.js} +1 -1
- package/dist/component/{contacts-company-rac-CZl168-E.js → contacts-company-rac-D2xGgOC0.js} +1 -1
- package/dist/component/{contacts-email-rac-CJgVzCns.js → contacts-email-rac-CpbAyHUl.js} +1 -1
- package/dist/component/{contacts-first-name-rac-9ZNYKQeb.js → contacts-first-name-rac-DM0Uki6x.js} +1 -1
- package/dist/component/{contacts-last-name-rac-KgylQwHW.js → contacts-last-name-rac-DV9wrigX.js} +1 -1
- package/dist/component/{contacts-phone-rac-DYr30FLP.js → contacts-phone-rac-mIYYC0y2.js} +1 -1
- package/dist/component/{contacts-position-rac-B9BZZ3K9.js → contacts-position-rac-fYTx4IXC.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DOQb2GLm.js → contacts-subscribe-rac-nm5CFJHt.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-cYE1ehXN.js → contacts-tax-id-rac-D4RFJf-S.js} +1 -1
- package/dist/component/{date-availability-BOKvA8w-.js → date-availability-DKQ4Swlg.js} +1 -1
- package/dist/component/{date-input-field-rac-BwY53gNr.js → date-input-field-rac-DKZ-7UN1.js} +45 -45
- package/dist/component/{date-input-rac-Cgg4QJbB.js → date-input-rac-BbpWo9w0.js} +1 -1
- package/dist/component/{date-picker-field-rac-0Ue6uiCM.js → date-picker-field-rac-Bza70SYg.js} +11 -11
- package/dist/component/{date-picker-rac-CgICj33f.js → date-picker-rac-Ck7bd17y.js} +1 -1
- package/dist/component/{date-time-input-field-rac-ChRCMk7_.js → date-time-input-field-rac-DpAx183s.js} +21 -21
- package/dist/component/{date-time-input-rac-B8tRZrri.js → date-time-input-rac-CAL-qDqR.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-B_qjx1QD.js → dext-checkbox-group-rac-DLk1zE8Z.js} +4 -4
- package/dist/component/{dext-checkbox-rac-Bw9SyhHA.js → dext-checkbox-rac-K0JY8ypt.js} +1 -1
- package/dist/component/{dext-date-picker-rac-Bzn28zNq.js → dext-date-picker-rac-BIkqhNQ0.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-7Cuk3PoA.js → dext-date-time-input-rac-heYLj9qT.js} +1 -1
- package/dist/component/{dext-dropdown-rac-Md1VI5pc.js → dext-dropdown-rac-CE-hsE0g.js} +1 -1
- package/dist/component/{dext-email-rac-DbHwHGKz.js → dext-email-rac-Djui3aGr.js} +1 -1
- package/dist/component/{dext-number-input-rac-DIVk3zXL.js → dext-number-input-rac-Up-zsZwY.js} +1 -1
- package/dist/component/{dext-phone-rac-ZIya63UJ.js → dext-phone-rac-BnBq1KKf.js} +1 -1
- package/dist/component/{dext-radio-group-rac-DV1xHkOD.js → dext-radio-group-rac-D8EsvhLV.js} +4 -4
- package/dist/component/{dext-rating-input-rac-YRIYgeT4.js → dext-rating-input-rac-BW6NPU1S.js} +1 -1
- package/dist/component/{dext-tags-rac-DTJ6Pz_x.js → dext-tags-rac--c_tiq-o.js} +4 -4
- package/dist/component/{dext-text-area-rac-V-d9i95A.js → dext-text-area-rac-CKFhfgDq.js} +1 -1
- package/dist/component/{dext-text-input-rac-ccrundX-.js → dext-text-input-rac-CEcBfKSe.js} +1 -1
- package/dist/component/{dext-url-input-rac-Bd5SZ2U4.js → dext-url-input-rac-C4tT1NeS.js} +1 -1
- package/dist/component/{donation-rac-BFmpW-3b.js → donation-rac-Bqo7AUci.js} +52 -52
- package/dist/component/{dropdown-field-headless-C2qgeReH.js → dropdown-field-headless-DMQSalL1.js} +22 -22
- package/dist/component/{dropdown-field-rac-Bj1YSgpT.js → dropdown-field-rac-C31YjVhV.js} +4 -4
- package/dist/component/{dropdown-rac-DfdvX5I5.js → dropdown-rac-B6AZlzZ8.js} +1 -1
- package/dist/component/{ecom-address-rac-DOWNQhhX.js → ecom-address-rac-3pW-jse0.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-2ELdC1ql.js → ecom-subscription-checkbox-rac-Ms4JDivZ.js} +5 -5
- package/dist/component/{email-input-field-rac-CY0U6vEM.js → email-input-field-rac-UJOSd8si.js} +46 -46
- package/dist/component/{events-repeater-rac-C2oo_RZt.js → events-repeater-rac-fs9cQREp.js} +4 -4
- package/dist/component/{events-rsvp-rac-BrimIo0r.js → events-rsvp-rac-DRLspNfK.js} +3 -3
- package/dist/component/{field-error-headless-r0fX50xw.js → field-error-headless-CyoNrDMA.js} +9 -9
- package/dist/component/field-label-headless-vs578Vt6.js +52 -0
- package/dist/component/{file-upload-rac-Beb2BcFK.js → file-upload-rac-DDAMgm1b.js} +53 -53
- package/dist/component/{fixed-payment-rac-DGFWYMZG.js → fixed-payment-rac-DRs5yPZ8.js} +12 -12
- package/dist/component/{form-DtzwuBIo.js → form-D-pcluMZ.js} +373 -341
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +2 -2
- package/dist/component/{header-field-rac-CVmGSa0E.js → header-field-rac-BtLFBccj.js} +4 -4
- package/dist/component/{header-rac-C3AEJmYN.js → header-rac-CNx4qpAR.js} +1 -1
- package/dist/component/{image-choice-rac-Ch-mxLgP.js → image-choice-rac-D-PsWyfU.js} +10 -10
- package/dist/component/{index-CmqLlW8X.js → index-B7rRv0cm.js} +43 -43
- package/dist/component/{index-CTn6AQ3A.js → index-D4Jdw7jg.js} +2 -2
- package/dist/component/{isObjectLike-iyypwAQL.js → isObjectLike-DyNk-Hsj.js} +7 -7
- package/dist/component/{multiline-address-field-rac-DJXcb6NG.js → multiline-address-field-rac-CowUg4Dk.js} +94 -94
- package/dist/component/{multiline-address-rac-DcZgTx1c.js → multiline-address-rac-CHLN9iqR.js} +1 -1
- package/dist/component/{number-input-field-rac-W3TqQGhC.js → number-input-field-rac-Clow9sWB.js} +21 -21
- package/dist/component/{number-input-rac-CdXigsba.js → number-input-rac-CeUW4WGL.js} +1 -1
- package/dist/component/{password-rac-Dph6984u.js → password-rac-_FBw3XON.js} +7 -7
- package/dist/component/{payment-input-rac-D5ARk1lF.js → payment-input-rac-CmeiCGKm.js} +17 -17
- package/dist/component/{phone-input-field-rac-BUfe-B2i.js → phone-input-field-rac-PIpEcS6h.js} +24 -24
- package/dist/component/{phone-rac-DTiWT1uy.js → phone-rac-D-RF_Dc1.js} +1 -1
- package/dist/component/{product-list-rac-1_Q2JYwH.js → product-list-rac-CveI0FCQ.js} +31 -31
- package/dist/component/{quiz-radio-group-rac-iyBhi0wJ.js → quiz-radio-group-rac-DmL5sv4m.js} +1 -1
- package/dist/component/{radio-button-module-classes-DwfobXBe.js → radio-button-module-classes-D6eJdPov.js} +11 -11
- package/dist/component/{radio-group-field-rac-BkKNVwMi.js → radio-group-field-rac-CuTxslBP.js} +4 -4
- package/dist/component/{radio-group-rac-CH0nkJ8V.js → radio-group-rac-D1N9mKdI.js} +1 -1
- package/dist/component/{rating-input-field-rac-CUUUlgZi.js → rating-input-field-rac-tPHYwerw.js} +12 -12
- package/dist/component/{rating-input-rac-8yEiqBR5.js → rating-input-rac-BoYlGaYG.js} +1 -1
- package/dist/component/{rich-content-rac.module-DeKU0pwh.js → rich-content-rac.module-BEpM1wGw.js} +3 -3
- package/dist/component/{rich-text-field-rac-Cwd-RWTi.js → rich-text-field-rac-DIBDp9fN.js} +4 -4
- package/dist/component/{rich-text-rac-C5-jPNYP.js → rich-text-rac-QNvqlXOl.js} +1 -1
- package/dist/component/{service-dropdown-rac-DBGAnsut.js → service-dropdown-rac-BUka_sF2.js} +30 -30
- package/dist/component/{services-multi-choice-rac-CqEoGsuw.js → services-multi-choice-rac-Dsy5tWby.js} +5 -5
- package/dist/component/{signature-rac-Cq3y66Cr.js → signature-rac-K1d_jHlU.js} +37 -37
- package/dist/component/submit-button-rac-BRJtuej2.js +228 -0
- package/dist/component/{tags-field-rac-CpJ0O9f_.js → tags-field-rac-BaBbtHcw.js} +16 -16
- package/dist/component/{tags-rac-BPjw67Po.js → tags-rac-DDg6W18e.js} +1 -1
- package/dist/component/{text-area-field-rac-BG6MJuIW.js → text-area-field-rac-CB97Y6o1.js} +9 -9
- package/dist/component/{text-area-rac-BAS4F4VC.js → text-area-rac-E091fvmB.js} +1 -1
- package/dist/component/{text-input-field-rac-BhMktcEd.js → text-input-field-rac-BiSQ4pDp.js} +3 -3
- package/dist/component/{text-input-headless-Bpjd70nh.js → text-input-headless-BKxooAsH.js} +7 -7
- package/dist/component/{text-input-rac-Bj21XKGA.js → text-input-rac-N2D8bqU4.js} +1 -1
- package/dist/component/{time-input-rac-DBpRHdnX.js → time-input-rac-CMVYeoxi.js} +33 -33
- package/dist/component/{url-input-field-rac-B_EMXVWh.js → url-input-field-rac-BWpn4TfK.js} +24 -24
- package/dist/component/{url-input-rac-D0Ck-9KV.js → url-input-rac-U19lGKwd.js} +1 -1
- package/dist/component/{use-dropdown-option-class-name-CkpHwC6t.js → use-dropdown-option-class-name-DK1HCEOC.js} +2 -2
- package/dist/component/{use-dropdown-trigger-class-name-DmDwpAVn.js → use-dropdown-trigger-class-name-XS469pt3.js} +4 -4
- package/dist/component/{use-element-state-class-name-BrgdwHYP.js → use-element-state-class-name-BdjEjAk1.js} +3 -3
- package/dist/component/{use-hoverable-input-class-name-qVo45l-t.js → use-hoverable-input-class-name-7nSuBlNd.js} +6 -6
- package/dist/component/{use-service-options-base-Dlqs4p0Z.js → use-service-options-base-Bxw3_pyC.js} +1 -1
- package/dist/component/use-text-input-class-name-BB5fT5S6.js +6 -0
- package/dist/form.d.ts +36 -0
- package/package.json +2 -2
- package/dist/component/field-label-headless-D-kCfg8j.js +0 -52
- package/dist/component/submit-button-rac-CKM7yUL4.js +0 -172
- package/dist/component/use-text-input-class-name-CP2VJOso.js +0 -6
package/dist/component/form.js
CHANGED
|
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "react";
|
|
3
3
|
import "classnames";
|
|
4
4
|
import "@wix/fed-cli-i18next";
|
|
5
|
-
import {
|
|
5
|
+
import { as as i, aN as s } from "./form-D-pcluMZ.js";
|
|
6
6
|
export {
|
|
7
7
|
i as default,
|
|
8
|
-
|
|
8
|
+
s as defaultProps
|
|
9
9
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import m from "classnames";
|
|
2
2
|
import e from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { u as g, R as p, s as
|
|
3
|
+
import { bn as u, a$ as i, a_ as C, b1 as R, aA as T, ai as d } from "./form-D-pcluMZ.js";
|
|
4
|
+
import { u as g, R as p, s as A, T as S } from "./rich-content-rac.module-BEpM1wGw.js";
|
|
5
5
|
const y = ({ truncate: t = !0 } = {}) => {
|
|
6
6
|
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
7
|
colorPalette: R(),
|
|
@@ -11,10 +11,10 @@ const y = ({ truncate: t = !0 } = {}) => {
|
|
|
11
11
|
}
|
|
12
12
|
}), []), { displayedContent: o, isTruncated: r, isTruncateButtonShown: c, toggleTruncate: l } = g(a, t ? s : void 0);
|
|
13
13
|
return /* @__PURE__ */ e.createElement(p, null, () => /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(T, {
|
|
14
|
-
className: m(d,
|
|
14
|
+
className: m(d, A.richContent),
|
|
15
15
|
content: o,
|
|
16
16
|
customTheme: n
|
|
17
|
-
}), c && /* @__PURE__ */ e.createElement(
|
|
17
|
+
}), c && /* @__PURE__ */ e.createElement(S, {
|
|
18
18
|
isTruncated: r,
|
|
19
19
|
onClick: l
|
|
20
20
|
})));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
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 {
|
|
5
|
-
import { CheckboxGroup as
|
|
4
|
+
import { bn as b, bk as x, bp as P, bg as B, R as q, $ as U, M as w, O as V, G as $, u as z, N as K, f } from "./form-D-pcluMZ.js";
|
|
5
|
+
import { CheckboxGroup as Q, CheckboxField as Y, 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-vs578Vt6.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-CyoNrDMA.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-DfEb7pBp.js";
|
|
12
|
-
import { u as oe } from "./use-element-state-class-name-
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-BdjEjAk1.js";
|
|
13
13
|
const o = ({ children: t, className: n }) => {
|
|
14
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: R } = x(), S = m(t, o.Label), A = m(t, o.Options), D = m(t, o.Description), M = m(t, o.Error), h = H(() => a || [], [
|
|
15
15
|
a
|
|
@@ -28,7 +28,7 @@ const o = ({ children: t, className: n }) => {
|
|
|
28
28
|
required: c,
|
|
29
29
|
onBlur: u,
|
|
30
30
|
onFocus: p
|
|
31
|
-
}, /* @__PURE__ */ e.createElement(
|
|
31
|
+
}, /* @__PURE__ */ e.createElement(Q, {
|
|
32
32
|
className: n,
|
|
33
33
|
"aria-labelledby": _,
|
|
34
34
|
value: h,
|
|
@@ -86,12 +86,12 @@ const o = ({ children: t, className: n }) => {
|
|
|
86
86
|
}));
|
|
87
87
|
}, l);
|
|
88
88
|
const C = m(t, E.Input), L = m(t, E.Image), g = m(t, E.Label);
|
|
89
|
-
return /* @__PURE__ */ e.createElement(
|
|
89
|
+
return /* @__PURE__ */ e.createElement(Y, {
|
|
90
90
|
value: a.label,
|
|
91
91
|
isDisabled: r,
|
|
92
92
|
isReadOnly: c,
|
|
93
93
|
isInvalid: u
|
|
94
|
-
}, /* @__PURE__ */ e.createElement(
|
|
94
|
+
}, /* @__PURE__ */ e.createElement(j, {
|
|
95
95
|
ref: p,
|
|
96
96
|
"aria-label": a.isLabelHidden ? a.label : void 0,
|
|
97
97
|
className: n,
|
|
@@ -127,7 +127,7 @@ const le = "_options_9rde9_1", ie = "_optionInput_9rde9_33", re = "_option_9rde9
|
|
|
127
127
|
hover: d.optionHover
|
|
128
128
|
}, Ie = () => {
|
|
129
129
|
const t = oe({
|
|
130
|
-
globalClasses:
|
|
130
|
+
globalClasses: K,
|
|
131
131
|
moduleClasses: ue
|
|
132
132
|
}), n = B(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, {
|
|
@@ -147,7 +147,7 @@ const le = "_options_9rde9_1", ie = "_optionInput_9rde9_33", re = "_option_9rde9
|
|
|
147
147
|
}))), /* @__PURE__ */ e.createElement(o.Error, {
|
|
148
148
|
className: I($, O.error)
|
|
149
149
|
}, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
150
|
-
className: I(
|
|
150
|
+
className: I(z, O.description)
|
|
151
151
|
}, Ee));
|
|
152
152
|
}, De = () => /* @__PURE__ */ e.createElement(Ie, null);
|
|
153
153
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as R,
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { e as R, aI as _, aX as de, aJ as O, ao as Ge, B as Be, aC as qe, av as He, au as A, aD as Ee, aM as re, aG as Fe, c as B, aw as M, b7 as Te, ay as je, ax as he, az as q } from "./form-D-pcluMZ.js";
|
|
2
|
+
import { b2 as Mn } from "./form-D-pcluMZ.js";
|
|
3
|
+
import Xe from "ajv";
|
|
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-DKQ4Swlg.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-DKQ4Swlg.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -214,7 +214,7 @@ const dt = (e, t) => {
|
|
|
214
214
|
var t;
|
|
215
215
|
return !!((t = e.validation) != null && t.required) && !e.hidden && !e.readOnly;
|
|
216
216
|
};
|
|
217
|
-
var H = { exports: {} },
|
|
217
|
+
var H = { exports: {} }, X = { exports: {} }, Re;
|
|
218
218
|
function Tt() {
|
|
219
219
|
return Re || (Re = 1, (function(e, t) {
|
|
220
220
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
@@ -272,7 +272,7 @@ function Tt() {
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
e.exports = s;
|
|
275
|
-
})(
|
|
275
|
+
})(X, X.exports)), X.exports;
|
|
276
276
|
}
|
|
277
277
|
var Ie = H.exports, Ae;
|
|
278
278
|
function ht() {
|
|
@@ -723,9 +723,9 @@ const oe = "¡--
|
|
|
723
723
|
"za",
|
|
724
724
|
"zh",
|
|
725
725
|
"zu"
|
|
726
|
-
],
|
|
727
|
-
function
|
|
728
|
-
return
|
|
726
|
+
], bt = new Set(St);
|
|
727
|
+
function Ct(e) {
|
|
728
|
+
return bt.has(e);
|
|
729
729
|
}
|
|
730
730
|
function Ft(e) {
|
|
731
731
|
try {
|
|
@@ -750,7 +750,7 @@ const Ne = {
|
|
|
750
750
|
email: Pt,
|
|
751
751
|
"color-hex": /^#(?:[0-9A-F]{3,4}|[0-9A-F]{6}|[0-9A-F]{8})$/i,
|
|
752
752
|
currency: gt,
|
|
753
|
-
language:
|
|
753
|
+
language: Ct,
|
|
754
754
|
"time-zone": Ft
|
|
755
755
|
};
|
|
756
756
|
function Ut(e, t, r) {
|
|
@@ -895,11 +895,11 @@ function Ht(e) {
|
|
|
895
895
|
}
|
|
896
896
|
function jt(e, t, r) {
|
|
897
897
|
return function(s) {
|
|
898
|
-
const i = new
|
|
898
|
+
const i = new Xe({
|
|
899
899
|
allErrors: !0,
|
|
900
900
|
multipleOfPrecision: 8
|
|
901
901
|
});
|
|
902
|
-
return We(i), vt(i, t), Ut(i, t, r),
|
|
902
|
+
return We(i), vt(i, t), Ut(i, t, r), ke(i), It(i), s.forEach((o) => {
|
|
903
903
|
if (!i.getSchema(h(o.id, o, "id"))) {
|
|
904
904
|
const u = e(o);
|
|
905
905
|
u && i.addSchema(u);
|
|
@@ -910,7 +910,7 @@ function jt(e, t, r) {
|
|
|
910
910
|
var N = /* @__PURE__ */ (function(e) {
|
|
911
911
|
return e.OBJECT = "object", e.STRING = "string", e.NUMBER = "number", e.INTEGER = "integer", e.BOOLEAN = "boolean", e.ARRAY = "array", e;
|
|
912
912
|
})({});
|
|
913
|
-
function
|
|
913
|
+
function Xt(e, t) {
|
|
914
914
|
return function(c) {
|
|
915
915
|
const E = c.fields || [], d = c.deletedFields || [], m = E.filter(o), T = d.filter(o), g = r(m, T), y = t === O.UNRESTRICTED_UPDATE ? [] : m.filter((I) => !u(I)).filter(i).map((I) => h(I.target, I, "target"));
|
|
916
916
|
return {
|
|
@@ -967,7 +967,7 @@ function kt(e, t) {
|
|
|
967
967
|
return !!p.nestedFormId || ((E = (c = p.validation) == null ? void 0 : c.predefined) == null ? void 0 : E.format) === _.MULTILINE_ADDRESS;
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function kt(e, t) {
|
|
971
971
|
return function(l) {
|
|
972
972
|
const p = l.formFields || [], c = l.deletedFormFields || [], E = p.filter(a), d = c.filter(a), m = n(E, d);
|
|
973
973
|
return {
|
|
@@ -1338,8 +1338,8 @@ function or() {
|
|
|
1338
1338
|
var g = d[T], y = g.type, I = g.value, P = r[y];
|
|
1339
1339
|
P >= 0 && (m[P] = parseInt(I, 10));
|
|
1340
1340
|
}
|
|
1341
|
-
var D = m[3], F = D === 24 ? 0 : D,
|
|
1342
|
-
return (o.utc(
|
|
1341
|
+
var D = m[3], F = D === 24 ? 0 : D, b = m[0] + "-" + m[1] + "-" + m[2] + " " + F + ":" + m[4] + ":" + m[5] + ":000", L = +c;
|
|
1342
|
+
return (o.utc(b).valueOf() - (L -= L % 1e3)) / 6e4;
|
|
1343
1343
|
}, l = i.prototype;
|
|
1344
1344
|
l.tz = function(c, E) {
|
|
1345
1345
|
c === void 0 && (c = a);
|
|
@@ -1364,11 +1364,11 @@ function or() {
|
|
|
1364
1364
|
}, o.tz = function(c, E, d) {
|
|
1365
1365
|
var m = d && E, T = d || E || a, g = f(+o(), T);
|
|
1366
1366
|
if (typeof c != "string") return o(c).tz(T);
|
|
1367
|
-
var y = (function(F,
|
|
1368
|
-
var
|
|
1369
|
-
if (
|
|
1370
|
-
var se = f(
|
|
1371
|
-
return $ === se ? [
|
|
1367
|
+
var y = (function(F, b, L) {
|
|
1368
|
+
var C = F - 60 * b * 1e3, $ = f(C, L);
|
|
1369
|
+
if (b === $) return [C, b];
|
|
1370
|
+
var se = f(C -= 60 * ($ - b) * 1e3, L);
|
|
1371
|
+
return $ === se ? [C, $] : [F - 60 * Math.min($, se) * 1e3, Math.max($, se)];
|
|
1372
1372
|
})(o.utc(c, m).valueOf(), g, T), I = y[0], P = y[1], D = o(I).utcOffset(P);
|
|
1373
1373
|
return D.$x.$timezone = T, D;
|
|
1374
1374
|
}, o.tz.guess = function() {
|
|
@@ -1419,8 +1419,8 @@ function mr() {
|
|
|
1419
1419
|
D === void 0 && (D = "");
|
|
1420
1420
|
var F = D.match(n);
|
|
1421
1421
|
if (!F) return null;
|
|
1422
|
-
var
|
|
1423
|
-
return
|
|
1422
|
+
var b = ("" + F[0]).match(s) || ["-", 0, 0], L = b[0], C = 60 * +b[1] + +b[2];
|
|
1423
|
+
return C === 0 ? 0 : L === "+" ? C : -C;
|
|
1424
1424
|
})(m), m === null)) return this;
|
|
1425
1425
|
var y = Math.abs(m) <= 16 ? 60 * m : m;
|
|
1426
1426
|
if (y === 0) return this.utc(T);
|
|
@@ -1663,17 +1663,17 @@ function te(e, t) {
|
|
|
1663
1663
|
type: N.OBJECT,
|
|
1664
1664
|
additionalProperties: !1,
|
|
1665
1665
|
properties: r,
|
|
1666
|
-
...
|
|
1666
|
+
...br(e, t)
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function br(e, t) {
|
|
1670
1670
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1671
|
-
required:
|
|
1671
|
+
required: Cr(e.properties)
|
|
1672
1672
|
} : {
|
|
1673
1673
|
required: []
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function Cr(e = {}) {
|
|
1677
1677
|
return Object.keys(e).reduce((r, n) => {
|
|
1678
1678
|
const s = e[n];
|
|
1679
1679
|
return Fr(s) && r.push(n), r;
|
|
@@ -1935,7 +1935,7 @@ class yn {
|
|
|
1935
1935
|
return !!((s = t == null ? void 0 : t.properties) != null && s.disabled || r);
|
|
1936
1936
|
}
|
|
1937
1937
|
getFormSchemaMapper() {
|
|
1938
|
-
return this.platformisedFieldBasedValidation ?
|
|
1938
|
+
return this.platformisedFieldBasedValidation ? kt(wr, this.validationMode ?? O.UNKNOWN) : Xt(Y, this.validationMode ?? O.UNKNOWN);
|
|
1939
1939
|
}
|
|
1940
1940
|
initAJvWithSchemas(t, r) {
|
|
1941
1941
|
const n = this.getFormSchemaMapper(), s = jt(n, this.validationMode !== O.UNRESTRICTED_UPDATE, this.lenientPhoneValidation), i = this.formSchemas.flatMap((u) => (u.nestedForms || []).flatMap(({ targets: f, form: l }) => (f || []).map((p) => ({
|
|
@@ -2048,15 +2048,15 @@ function jr(e, t) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
|
-
var
|
|
2051
|
+
var be;
|
|
2052
2052
|
(function(e) {
|
|
2053
2053
|
e.NOT_ASCEND = "NOT_ASCEND", e.FREE = "FREE", e.BASIC = "BASIC", e.PROFESSIONAL = "PROFESSIONAL", e.UNLIMITED = "UNLIMITED";
|
|
2054
|
-
})(
|
|
2054
|
+
})(be || (be = {}));
|
|
2055
2055
|
var fe;
|
|
2056
2056
|
(function(e) {
|
|
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
|
-
const
|
|
2059
|
+
const Xr = "FILE_UPLOAD";
|
|
2060
2060
|
function gn(e, t, r) {
|
|
2061
2061
|
var s, i, o, a;
|
|
2062
2062
|
const n = [
|
|
@@ -2074,26 +2074,26 @@ function gn(e, t, r) {
|
|
|
2074
2074
|
})
|
|
2075
2075
|
];
|
|
2076
2076
|
if (nn(r)) {
|
|
2077
|
-
const u =
|
|
2077
|
+
const u = k(r.currentForm), f = k(t);
|
|
2078
2078
|
return {
|
|
2079
|
-
errors:
|
|
2079
|
+
errors: Ce(n, f, u)
|
|
2080
2080
|
};
|
|
2081
2081
|
}
|
|
2082
2082
|
if (sn(r)) {
|
|
2083
|
-
const u =
|
|
2083
|
+
const u = k(), f = k(t);
|
|
2084
2084
|
return {
|
|
2085
|
-
errors:
|
|
2085
|
+
errors: Ce([
|
|
2086
2086
|
...n,
|
|
2087
|
-
|
|
2087
|
+
kr(W((a = e.formsLimit) == null ? void 0 : a.limit), h(r.existingFormsCount, r, "existingFormsCount"))
|
|
2088
2088
|
], f, u)
|
|
2089
2089
|
};
|
|
2090
2090
|
}
|
|
2091
2091
|
throw new Error("Unknown validation action");
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function Ce(e, t, r) {
|
|
2094
2094
|
return e.map((n) => n(t, r)).filter(Boolean).map((n) => n);
|
|
2095
2095
|
}
|
|
2096
|
-
const
|
|
2096
|
+
const kr = (e, t) => () => ne(e, t, t + 1) ? Jr(e) : null, Wr = ({ limit: e }) => (t, r) => ne(e, r.inputFieldsCount, t.inputFieldsCount) || le(e, r.inputFieldsCount, t.inputFieldIds, r.inputFieldIds) ? Qr(e) : null, Kr = ({ limit: e }) => (t, r) => ne(e, r.stepsCount, t.stepsCount) || le(e, r.stepsCount, t.stepsIds, r.stepsIds) ? en(e) : null, zr = ({ limit: e }) => (t, r) => ne(e, r.rulesCount, t.rulesCount) || le(e, r.rulesCount, t.rulesIds, r.rulesIds) ? tn(e) : null, Vr = ({ featureRestricted: e }) => (t, r) => Ye(t.fileUploadFieldIds, r.fileUploadFieldIds).length && e(fe.FILE_UPLOAD_FIELD) ? rn() : null;
|
|
2097
2097
|
function Ye(e, t) {
|
|
2098
2098
|
const r = new Set(t);
|
|
2099
2099
|
return e.filter((n) => !r.has(n));
|
|
@@ -2152,7 +2152,7 @@ function rn() {
|
|
|
2152
2152
|
errorMessage: "File upload field is not enabled for the given site"
|
|
2153
2153
|
};
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2155
|
+
function k(e) {
|
|
2156
2156
|
const t = e ?? {}, r = (t.fields ?? []).filter((n) => !!n.target);
|
|
2157
2157
|
return {
|
|
2158
2158
|
inputFieldsCount: r.length,
|
|
@@ -2161,7 +2161,7 @@ function X(e) {
|
|
|
2161
2161
|
inputFieldIds: r.map((n) => n.id),
|
|
2162
2162
|
stepsIds: (t.steps ?? []).map((n) => n.id),
|
|
2163
2163
|
rulesIds: (t.rules ?? []).map((n) => n.id),
|
|
2164
|
-
fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType ===
|
|
2164
|
+
fileUploadFieldIds: (t.fields ?? []).filter((n) => (n.view ?? {}).fieldType === Xr).map((n) => n.id)
|
|
2165
2165
|
};
|
|
2166
2166
|
}
|
|
2167
2167
|
function nn(e) {
|
|
@@ -2276,7 +2276,7 @@ export {
|
|
|
2276
2276
|
S as DateFieldErrorSuffix,
|
|
2277
2277
|
v as DateTimeFieldErrorSuffix,
|
|
2278
2278
|
R as ErrorTypes,
|
|
2279
|
-
|
|
2279
|
+
Xr as FILE_UPLOAD_FIELD_TYPE,
|
|
2280
2280
|
On as FormSchemaValidator,
|
|
2281
2281
|
yn as FormValidator,
|
|
2282
2282
|
O as ValidationMode,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as S, a as p, C as N,
|
|
1
|
+
import { b6 as n } from "./form-D-pcluMZ.js";
|
|
2
|
+
import { A as S, a as p, C as N, aB as g, aS as q, aT as D, b8 as L } from "./form-D-pcluMZ.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aK as c } from "./form-D-pcluMZ.js";
|
|
2
2
|
var b, d;
|
|
3
3
|
function k() {
|
|
4
4
|
if (d) return b;
|
|
@@ -48,7 +48,7 @@ function P() {
|
|
|
48
48
|
return l = t, l;
|
|
49
49
|
}
|
|
50
50
|
var j, q;
|
|
51
|
-
function
|
|
51
|
+
function K() {
|
|
52
52
|
if (q) return j;
|
|
53
53
|
q = 1;
|
|
54
54
|
var r = R(), e = L(), t = P(), i = "[object Null]", o = "[object Undefined]", u = r ? r.toStringTag : void 0;
|
|
@@ -58,7 +58,7 @@ function N() {
|
|
|
58
58
|
return j = n, j;
|
|
59
59
|
}
|
|
60
60
|
var v, m;
|
|
61
|
-
function
|
|
61
|
+
function N() {
|
|
62
62
|
if (m) return v;
|
|
63
63
|
m = 1;
|
|
64
64
|
function r(e) {
|
|
@@ -68,7 +68,7 @@ function U() {
|
|
|
68
68
|
return v = r, v;
|
|
69
69
|
}
|
|
70
70
|
var T, p;
|
|
71
|
-
function
|
|
71
|
+
function U() {
|
|
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
|
+
U as a,
|
|
81
81
|
R as b,
|
|
82
|
-
|
|
82
|
+
K as c,
|
|
83
83
|
k as d,
|
|
84
84
|
I as e,
|
|
85
|
-
|
|
85
|
+
N as r
|
|
86
86
|
};
|