@wix/form-elements 1.107.0 → 1.109.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-D2F4vgf1.js → appointment-rac-C9-XwsPI.js} +295 -296
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-jrrCPWjw.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-J9-RMEbf.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CH7-6JmA.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-C2JV-ciN.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-0a9CwiaV.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-4Mb7MQYe.js} +21 -22
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-vYx5r5jn.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-CWg1FgUp.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-Dwx1leKA.js} +27 -28
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-AFWgXzx_.js} +41 -41
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-CO8kmWJp.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-_79HsFF4.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-B_tbMfjo.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-SJ5Tvzd0.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-BU1L3sbW.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-Y4B8KhDa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-CQW84o7C.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Dtai-wtH.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac--ixuu3ri.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-HOHfSvT-.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BPMkh6yf.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-D0_RMwJb.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-CZJmMiVf.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-C4dDHvuc.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-8oERZcqh.js} +79 -80
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CYRojmW6.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CIspU7No.js} +87 -88
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-D0Y0zf2J.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-0daWK65I.js} +73 -74
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-BemKPk1j.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BpFNn56W.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DOISgubJ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-CNGhFg_g.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-BuUIvJRr.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-DtND-Dbo.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-CmjLFOi8.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-DHTNg1dh.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-BrrU5qH_.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CD3MGfAM.js} +4 -4
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-BETGJZmt.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-Coo9jN-T.js} +4 -4
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-CNWjqhUT.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-CCWyDexv.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-Dtakkgmk.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BboGm_k_.js} +101 -102
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-BTMJGUwY.js} +16 -16
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-CDRV8ckB.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-kEuU2pXW.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-BgKL9ElH.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-CDhJsNPD.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DdOd86NX.js} +54 -55
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-_VJ30dpB.js} +62 -63
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-DA-261bq.js} +5 -5
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-CovyN0GI.js} +8 -8
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-DVvX2QaH.js} +11 -11
- package/dist/component/file-upload-rac-bhEPUJPs.js +561 -0
- package/dist/component/fixed-payment-rac-DmI6MeKc.js +61 -0
- package/dist/component/{form-DQauhsho.js → form-BTDgyr54.js} +3430 -3244
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +3 -3
- package/dist/component/header-field-rac-C0rUjmo0.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-DRMO22PV.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CQDQ7AlD.js} +32 -33
- package/dist/component/{index-CcUTIUWM.js → index-B9QlosT1.js} +12 -12
- package/dist/component/{index-BB7d_9Dv.js → index-CNWT9t6j.js} +66 -66
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-c0td2WCR.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-D8bVxRsD.js} +124 -125
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-g-6RB7o8.js} +1 -1
- package/dist/component/number-input-field-rac-BaOwQ5Ya.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-BXv8-Pnj.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-BB9XeSSZ.js} +36 -37
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-DwnSV9rM.js} +41 -42
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-CC3C4ToW.js} +56 -57
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-DpNhSaE0.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-BAESk3B6.js} +74 -75
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-PS6AZr63.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-CXcn5unY.js} +30 -30
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-pt8xbDfS.js} +6 -6
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-DkzkM6N_.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-DDHBkR4x.js} +43 -44
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-CcsDmLus.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-B2vsO6fj.js} +4 -4
- package/dist/component/rich-text-field-rac-CvKht2eC.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-CRpSffQB.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-BOpdXNjG.js} +36 -37
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-t0wdSt_T.js} +20 -21
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-2LsIYYIX.js} +141 -142
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-BbE8dS35.js} +26 -27
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-BnsBxReU.js} +44 -45
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-BFH4RINA.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-Ag7_gniM.js} +28 -29
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-ByUX0p2O.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-D3MZ8teu.js} +3 -3
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-CwONErsY.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-DLXdAhkK.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-Bs55lTON.js} +33 -34
- package/dist/component/url-input-field-rac-FG-bCh-E.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-BOKuCMTe.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-DjV7FW5y.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-DB1AzkvF.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-ifUIpuwL.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-B11cq0HH.js} +7 -7
- package/dist/component/use-text-input-class-name-va1PzWFg.js +23 -0
- package/dist/form.d.ts +21 -1
- package/package.json +2 -2
- package/dist/component/file-upload-rac-DbdkUbWM.js +0 -484
- package/dist/component/fixed-payment-rac-f9-01iDN.js +0 -62
- package/dist/component/form-element-classes-bLFmhsKw.js +0 -137
- package/dist/component/header-field-rac-DamDk5BR.js +0 -25
- package/dist/component/number-input-field-rac-BuYUzDWV.js +0 -93
- package/dist/component/rich-text-field-rac-C_qE7Ykg.js +0 -22
- package/dist/component/url-input-field-rac-CFDYkZ6I.js +0 -75
- package/dist/component/use-dropdown-option-class-name-3L5ZmNLK.js +0 -21
- package/dist/component/use-text-input-class-name-LQ5S-NLh.js +0 -24
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 { af as f, aA as i } from "./form-BTDgyr54.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
f as default,
|
|
8
|
+
i as defaultProps
|
|
9
9
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import m from "classnames";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { b9 as u, aN as i, aM as C, aP as R, an as T, a5 as d } from "./form-BTDgyr54.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-B2vsO6fj.js";
|
|
5
|
+
const f = ({ truncate: t = !0 } = {}) => {
|
|
6
|
+
const { content: a, maxShownParagraphs: s } = u(), n = e.useMemo(() => ({
|
|
7
|
+
colorPalette: R(),
|
|
8
|
+
customStyles: {
|
|
9
|
+
...C(),
|
|
10
|
+
...i()
|
|
11
|
+
}
|
|
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(T, {
|
|
14
|
+
className: m(d, S.richContent),
|
|
15
|
+
content: o,
|
|
16
|
+
customTheme: n
|
|
17
|
+
}), c && /* @__PURE__ */ e.createElement(h, {
|
|
18
|
+
isTruncated: r,
|
|
19
|
+
onClick: l
|
|
20
|
+
})));
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
f as H
|
|
24
|
+
};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import e, { useMemo as H, useCallback as T, useRef as
|
|
2
|
-
import { RicosViewer as
|
|
1
|
+
import e, { useMemo as H, useCallback as T, useRef as G } from "react";
|
|
2
|
+
import { RicosViewer as k } from "@wix/ricos/viewer";
|
|
3
3
|
import I from "classnames";
|
|
4
|
-
import {
|
|
5
|
-
import { CheckboxGroup as
|
|
4
|
+
import { b9 as b, b6 as x, bb as P, b2 as B, I as q, U, w, y as V, v as z, p as K, x as Q, f } from "./form-BTDgyr54.js";
|
|
5
|
+
import { CheckboxGroup as Y, CheckboxField as $, CheckboxButton as j } from "react-aria-components";
|
|
6
6
|
import { f as p, a as h } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { L as
|
|
8
|
-
import { D as
|
|
9
|
-
import { F as
|
|
10
|
-
import { E as
|
|
7
|
+
import { L as J, g as W } from "./field-label-headless-DVvX2QaH.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-CovyN0GI.js";
|
|
9
|
+
import { F as ee } from "./fieldset-headless-CD3fds9J.js";
|
|
10
|
+
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
11
11
|
import { s as O } from "./field-rac.module-B4l_0KRU.js";
|
|
12
|
-
import {
|
|
13
|
-
import { u as oe } from "./use-element-state-class-name-BatTc2bw.js";
|
|
12
|
+
import { u as oe } from "./use-element-state-class-name-DB1AzkvF.js";
|
|
14
13
|
const o = ({ children: t, className: s }) => {
|
|
15
|
-
const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: E, hasError: C, FieldLayout: g } = b(), { inputId: L, labelId: _, ariaDescribedBy: N } = x(), R = p(t, o.Label), S = p(t, o.Options),
|
|
14
|
+
const { id: n, value: a, onChange: i, disabled: l, readOnly: r, required: c, onBlur: u, onFocus: E, hasError: C, FieldLayout: g } = b(), { inputId: L, labelId: _, ariaDescribedBy: N } = x(), R = p(t, o.Label), S = p(t, o.Options), y = p(t, o.Description), A = p(t, o.Error), D = H(() => a || [], [
|
|
16
15
|
a
|
|
17
16
|
]), M = T((v) => {
|
|
18
17
|
i == null || i(v);
|
|
@@ -22,24 +21,24 @@ const o = ({ children: t, className: s }) => {
|
|
|
22
21
|
return /* @__PURE__ */ e.createElement(g, {
|
|
23
22
|
fieldId: n,
|
|
24
23
|
renderLabel: () => R,
|
|
25
|
-
renderInput: () => /* @__PURE__ */ e.createElement(
|
|
24
|
+
renderInput: () => /* @__PURE__ */ e.createElement(ee, {
|
|
26
25
|
id: L,
|
|
27
26
|
ariaLabelledBy: _,
|
|
28
27
|
ariaDescribedBy: N,
|
|
29
28
|
required: c,
|
|
30
29
|
onBlur: u,
|
|
31
30
|
onFocus: E
|
|
32
|
-
}, /* @__PURE__ */ e.createElement(
|
|
31
|
+
}, /* @__PURE__ */ e.createElement(Y, {
|
|
33
32
|
className: s,
|
|
34
33
|
"aria-labelledby": _,
|
|
35
|
-
value:
|
|
34
|
+
value: D,
|
|
36
35
|
onChange: M,
|
|
37
36
|
isDisabled: l,
|
|
38
37
|
isReadOnly: r,
|
|
39
38
|
isRequired: c,
|
|
40
39
|
isInvalid: C
|
|
41
40
|
}, S)),
|
|
42
|
-
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
41
|
+
renderDescription: () => /* @__PURE__ */ e.createElement(e.Fragment, null, A, y)
|
|
43
42
|
});
|
|
44
43
|
}, F = ({ children: t, className: s }) => {
|
|
45
44
|
const { id: n, options: a, numberOfColumns: i } = b(), l = p(t, F.Option);
|
|
@@ -57,7 +56,7 @@ const o = ({ children: t, className: s }) => {
|
|
|
57
56
|
className: t
|
|
58
57
|
}), ne = ({ className: t, ...s }) => {
|
|
59
58
|
var u, E;
|
|
60
|
-
const { option: n } = s, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (u = n.media) == null ? void 0 : u.image, r = l &&
|
|
59
|
+
const { option: n } = s, { choiceImageResize: a, choiceImageAlignment: i } = b(), l = (u = n.media) == null ? void 0 : u.image, r = l && W(l, l.width, l.height);
|
|
61
60
|
if (!l || !r)
|
|
62
61
|
return /* @__PURE__ */ e.createElement("div", {
|
|
63
62
|
className: t,
|
|
@@ -79,7 +78,7 @@ const o = ({ children: t, className: s }) => {
|
|
|
79
78
|
className: t
|
|
80
79
|
}, n.label);
|
|
81
80
|
}, d = ({ children: t, className: s, ...n }) => {
|
|
82
|
-
const { option: a, isFirst: i = !1, fieldId: l } = n, { disabled: r, readOnly: c, hasError: u } = b(), E =
|
|
81
|
+
const { option: a, isFirst: i = !1, fieldId: l } = n, { disabled: r, readOnly: c, hasError: u } = b(), E = G(null);
|
|
83
82
|
P(() => {
|
|
84
83
|
var _;
|
|
85
84
|
i && ((_ = E.current) == null || _.focus({
|
|
@@ -87,12 +86,12 @@ const o = ({ children: t, className: s }) => {
|
|
|
87
86
|
}));
|
|
88
87
|
}, l);
|
|
89
88
|
const C = p(t, d.Input), g = p(t, d.Image), L = p(t, d.Label);
|
|
90
|
-
return /* @__PURE__ */ e.createElement(
|
|
89
|
+
return /* @__PURE__ */ e.createElement($, {
|
|
91
90
|
value: a.label,
|
|
92
91
|
isDisabled: r,
|
|
93
92
|
isReadOnly: c,
|
|
94
93
|
isInvalid: u
|
|
95
|
-
}, /* @__PURE__ */ e.createElement(
|
|
94
|
+
}, /* @__PURE__ */ e.createElement(j, {
|
|
96
95
|
ref: E,
|
|
97
96
|
"aria-label": a.isLabelHidden ? a.label : void 0,
|
|
98
97
|
className: s,
|
|
@@ -106,11 +105,11 @@ const o = ({ children: t, className: s }) => {
|
|
|
106
105
|
d.Input = ae;
|
|
107
106
|
d.Image = ne;
|
|
108
107
|
d.Label = se;
|
|
109
|
-
o.Label =
|
|
108
|
+
o.Label = J;
|
|
110
109
|
o.Options = F;
|
|
111
110
|
F.Option = d;
|
|
112
|
-
o.Description =
|
|
113
|
-
o.Error =
|
|
111
|
+
o.Description = X;
|
|
112
|
+
o.Error = Z;
|
|
114
113
|
const le = "_group_1yn0h_1", ie = "_options_1yn0h_5", re = "_optionInput_1yn0h_36", ce = "_option_1yn0h_5", me = "_optionHover_1yn0h_72", pe = "_optionSelected_1yn0h_72", Ee = "_optionLabel_1yn0h_112", de = "_optionImage_1yn0h_143", m = {
|
|
115
114
|
group: le,
|
|
116
115
|
options: ie,
|
|
@@ -120,7 +119,7 @@ const le = "_group_1yn0h_1", ie = "_options_1yn0h_5", re = "_optionInput_1yn0h_3
|
|
|
120
119
|
optionSelected: pe,
|
|
121
120
|
optionLabel: Ee,
|
|
122
121
|
optionImage: de
|
|
123
|
-
}, ue = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(
|
|
122
|
+
}, ue = ({ content: t, locale: s }) => /* @__PURE__ */ e.createElement(k, {
|
|
124
123
|
content: t,
|
|
125
124
|
locale: s
|
|
126
125
|
}), Ie = {
|
|
@@ -129,17 +128,17 @@ const le = "_group_1yn0h_1", ie = "_options_1yn0h_5", re = "_optionInput_1yn0h_3
|
|
|
129
128
|
hover: m.optionHover
|
|
130
129
|
}, _e = () => {
|
|
131
130
|
const t = oe({
|
|
132
|
-
globalClasses:
|
|
131
|
+
globalClasses: Q,
|
|
133
132
|
moduleClasses: Ie
|
|
134
133
|
}), s = B(f.IMAGE_CHOICE, f.IMAGE_CHOICE_OPTION, f.IMAGE_CHOICE_OPTION_IMAGE);
|
|
135
134
|
return /* @__PURE__ */ e.createElement(o, {
|
|
136
135
|
className: m.group
|
|
137
136
|
}, /* @__PURE__ */ e.createElement(o.Label, {
|
|
138
|
-
className: I(
|
|
137
|
+
className: I(q, O.label)
|
|
139
138
|
}, /* @__PURE__ */ e.createElement(o.Label.Required, {
|
|
140
|
-
className: I(
|
|
139
|
+
className: I(U, O.requiredMark)
|
|
141
140
|
})), /* @__PURE__ */ e.createElement(o.Options, {
|
|
142
|
-
className: I(
|
|
141
|
+
className: I(w, m.options)
|
|
143
142
|
}, /* @__PURE__ */ e.createElement(o.Options.Option, {
|
|
144
143
|
className: ({ isSelected: n, isHovered: a }) => t({
|
|
145
144
|
isSelected: n,
|
|
@@ -148,15 +147,15 @@ const le = "_group_1yn0h_1", ie = "_options_1yn0h_5", re = "_optionInput_1yn0h_3
|
|
|
148
147
|
}, /* @__PURE__ */ e.createElement(o.Options.Option.Input, {
|
|
149
148
|
className: m.optionInput
|
|
150
149
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Image, {
|
|
151
|
-
className: I(
|
|
150
|
+
className: I(V, m.optionImage, s)
|
|
152
151
|
}), /* @__PURE__ */ e.createElement(o.Options.Option.Label, {
|
|
153
152
|
className: m.optionLabel
|
|
154
153
|
}))), /* @__PURE__ */ e.createElement(o.Error, {
|
|
155
|
-
className: I(
|
|
156
|
-
}, /* @__PURE__ */ e.createElement(
|
|
157
|
-
className: I(
|
|
154
|
+
className: I(z, O.error)
|
|
155
|
+
}, /* @__PURE__ */ e.createElement(te, null), /* @__PURE__ */ e.createElement(o.Error.Text, null)), /* @__PURE__ */ e.createElement(o.Description, {
|
|
156
|
+
className: I(K, O.description)
|
|
158
157
|
}, ue));
|
|
159
|
-
},
|
|
158
|
+
}, Ae = () => /* @__PURE__ */ e.createElement(_e, null);
|
|
160
159
|
export {
|
|
161
|
-
|
|
160
|
+
Ae as ImageChoiceRAC
|
|
162
161
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as S, a as p, C as N,
|
|
1
|
+
import { aU as n } from "./form-BTDgyr54.js";
|
|
2
|
+
import { A as S, a as p, C as N, ao as g, aE as q, aF as D, aW as L } from "./form-BTDgyr54.js";
|
|
3
3
|
const l = (e = !1) => ({
|
|
4
4
|
country: {
|
|
5
5
|
required: e
|
|
@@ -27,29 +27,29 @@ const l = (e = !1) => ({
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
function i(e) {
|
|
30
|
-
const r = (e == null ? void 0 : e.number) || "",
|
|
31
|
-
return r ? `${r}${
|
|
30
|
+
const r = (e == null ? void 0 : e.number) || "", a = e != null && e.apt ? `-${e.apt}` : "";
|
|
31
|
+
return r ? `${r}${a}` : "";
|
|
32
32
|
}
|
|
33
|
-
function d(e, r,
|
|
33
|
+
function d(e, r, a) {
|
|
34
34
|
if (!e)
|
|
35
|
-
return
|
|
36
|
-
const
|
|
37
|
-
return `${(r == null ? void 0 : r.name) || ""} ${
|
|
35
|
+
return a;
|
|
36
|
+
const t = i(r);
|
|
37
|
+
return `${(r == null ? void 0 : r.name) || ""} ${t}`.trim();
|
|
38
38
|
}
|
|
39
39
|
function m(e, r) {
|
|
40
|
-
const
|
|
40
|
+
const a = e.country ? n.getCountryByShortKey(e.country) : void 0, t = {
|
|
41
41
|
name: e.streetName,
|
|
42
42
|
number: e.streetNumber,
|
|
43
43
|
apt: e.apartment
|
|
44
|
-
}, o = Object.values(
|
|
44
|
+
}, o = Object.values(t).some(Boolean), u = a && (r != null && r.translateCountry) ? r.translateCountry(a.displayName, r.language) : e.country;
|
|
45
45
|
return n.getFormattedAddress({
|
|
46
46
|
country: u,
|
|
47
47
|
subdivision: e.subdivision,
|
|
48
48
|
city: e.city,
|
|
49
49
|
zipCode: e.postalCode,
|
|
50
|
-
addressLine1: d(o,
|
|
50
|
+
addressLine1: d(o, t, e.addressLine),
|
|
51
51
|
addressLine2: e.addressLine2
|
|
52
|
-
},
|
|
52
|
+
}, a == null ? void 0 : a.key).replace(/^[\s,]+|[\s,]+$/g, "");
|
|
53
53
|
}
|
|
54
54
|
export {
|
|
55
55
|
S as ADDRESS_FORM_IDS,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { e as R, av as _, aJ as de, aw as O, ab as Ge, B as Be, ap as qe, ai as He, ah as I, aq as Ee, az as re, at as Fe, c as B, aj as M, aV as Te, al as je, ak as he, am as q } from "./form-BTDgyr54.js";
|
|
2
|
+
import { aQ as Mn } from "./form-BTDgyr54.js";
|
|
3
|
+
import ke from "ajv";
|
|
4
|
+
import Xe 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-C4dDHvuc.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-C4dDHvuc.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: {} }, k = { exports: {} }, Re;
|
|
218
218
|
function Tt() {
|
|
219
219
|
return Re || (Re = 1, (function(e, t) {
|
|
220
220
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
@@ -272,12 +272,12 @@ function Tt() {
|
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
e.exports = s;
|
|
275
|
-
})(
|
|
275
|
+
})(k, k.exports)), k.exports;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
277
|
+
var Ae = H.exports, Ie;
|
|
278
278
|
function ht() {
|
|
279
|
-
return
|
|
280
|
-
var r =
|
|
279
|
+
return Ie || (Ie = 1, (function(e, t) {
|
|
280
|
+
var r = Ae && Ae.__importDefault || function(i) {
|
|
281
281
|
return i && i.__esModule ? i : { default: i };
|
|
282
282
|
};
|
|
283
283
|
Object.defineProperty(t, "__esModule", { value: !0 });
|
|
@@ -286,7 +286,7 @@ function ht() {
|
|
|
286
286
|
})(H, H.exports)), H.exports;
|
|
287
287
|
}
|
|
288
288
|
var Rt = ht();
|
|
289
|
-
const
|
|
289
|
+
const At = /* @__PURE__ */ de(Rt);
|
|
290
290
|
function h(e, t, r) {
|
|
291
291
|
if (typeof w(e) < "u")
|
|
292
292
|
return e;
|
|
@@ -298,7 +298,7 @@ function w(e) {
|
|
|
298
298
|
function j(e) {
|
|
299
299
|
return w(e) !== void 0;
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function It(e) {
|
|
302
302
|
return e !== null;
|
|
303
303
|
}
|
|
304
304
|
const Nt = [
|
|
@@ -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 ke({
|
|
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), Xe(i), At(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,9 +910,9 @@ function jt(e, t, r) {
|
|
|
910
910
|
var y = /* @__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 kt(e, t) {
|
|
914
914
|
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((
|
|
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((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,
|
|
@@ -967,7 +967,7 @@ function Xt(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 Xt(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 {
|
|
@@ -1296,13 +1296,13 @@ const Oe = {
|
|
|
1296
1296
|
properties: {
|
|
1297
1297
|
startDate: {
|
|
1298
1298
|
string: {
|
|
1299
|
-
format:
|
|
1299
|
+
format: I.DATE_TIME
|
|
1300
1300
|
},
|
|
1301
1301
|
required: !0
|
|
1302
1302
|
},
|
|
1303
1303
|
endDate: {
|
|
1304
1304
|
string: {
|
|
1305
|
-
format:
|
|
1305
|
+
format: I.DATE_TIME
|
|
1306
1306
|
},
|
|
1307
1307
|
required: !0
|
|
1308
1308
|
},
|
|
@@ -1329,23 +1329,23 @@ function or() {
|
|
|
1329
1329
|
d === void 0 && (d = {});
|
|
1330
1330
|
var m = new Date(c), T = (function(g, N) {
|
|
1331
1331
|
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:
|
|
1332
|
+
var A = N.timeZoneName || "short", P = g + "|" + A, D = n[P];
|
|
1333
|
+
return D || (D = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: g, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: 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 g = d[T], N = g.type,
|
|
1339
|
-
P >= 0 && (m[P] = parseInt(
|
|
1338
|
+
var g = d[T], N = g.type, A = g.value, P = r[N];
|
|
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;
|
|
1342
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);
|
|
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(
|
|
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), A = 15 * -Math.round(T.getTimezoneOffset() / 15) - N;
|
|
1347
|
+
if (!Number(A)) d = this.utcOffset(0, E);
|
|
1348
|
+
else if (d = o(g, { 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
|
}
|
|
@@ -1369,7 +1369,7 @@ function or() {
|
|
|
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(), g, T),
|
|
1372
|
+
})(o.utc(c, m).valueOf(), g, 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;
|
|
@@ -1424,10 +1424,10 @@ function mr() {
|
|
|
1424
1424
|
})(m), m === null)) return this;
|
|
1425
1425
|
var N = Math.abs(m) <= 16 ? 60 * m : m;
|
|
1426
1426
|
if (N === 0) return this.utc(T);
|
|
1427
|
-
var
|
|
1428
|
-
if (T) return
|
|
1427
|
+
var A = this.clone();
|
|
1428
|
+
if (T) return A.$offset = N, A.$u = !1, A;
|
|
1429
1429
|
var P = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1430
|
-
return (
|
|
1430
|
+
return (A = this.local().add(N + P, r)).$offset = N, A.$x.$localOffset = P, A;
|
|
1431
1431
|
};
|
|
1432
1432
|
var c = u.format;
|
|
1433
1433
|
u.format = function(m) {
|
|
@@ -1450,8 +1450,8 @@ function mr() {
|
|
|
1450
1450
|
var d = u.diff;
|
|
1451
1451
|
u.diff = function(m, T, g) {
|
|
1452
1452
|
if (m && this.$u === m.$u) return d.call(this, m, T, g);
|
|
1453
|
-
var N = this.local(),
|
|
1454
|
-
return d.call(N,
|
|
1453
|
+
var N = this.local(), A = a(m).local();
|
|
1454
|
+
return d.call(N, A, T, g);
|
|
1455
1455
|
};
|
|
1456
1456
|
};
|
|
1457
1457
|
}));
|
|
@@ -1475,20 +1475,20 @@ function hr(e, t, r = () => /* @__PURE__ */ new Date(), n) {
|
|
|
1475
1475
|
} : s;
|
|
1476
1476
|
}
|
|
1477
1477
|
function ae(e, t, r, n) {
|
|
1478
|
-
if (!r ||
|
|
1478
|
+
if (!r || Ar(r))
|
|
1479
1479
|
return r;
|
|
1480
1480
|
if (Rr(r)) {
|
|
1481
|
-
const s = n ? re(t().toISOString()).tz(n) : pr(t().toISOString()), i =
|
|
1482
|
-
return i ? e ===
|
|
1481
|
+
const s = n ? re(t().toISOString()).tz(n) : pr(t().toISOString()), i = Ir(r, s);
|
|
1482
|
+
return i ? e === I.DATE_TIME || e === I.DATE_OPTIONAL_TIME || !n ? i.utc().format(Me(e)) : i.format(Me(e)) : void 0;
|
|
1483
1483
|
}
|
|
1484
1484
|
}
|
|
1485
1485
|
function Rr(e) {
|
|
1486
1486
|
return we.test(e);
|
|
1487
1487
|
}
|
|
1488
|
-
function
|
|
1488
|
+
function Ar(e) {
|
|
1489
1489
|
return lr.test(e) || Er.test(e) || Tr.test(e);
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Ir(e, t) {
|
|
1492
1492
|
if (e === "$now")
|
|
1493
1493
|
return t;
|
|
1494
1494
|
try {
|
|
@@ -1525,12 +1525,12 @@ function gr(e) {
|
|
|
1525
1525
|
}
|
|
1526
1526
|
function Me(e) {
|
|
1527
1527
|
switch (e) {
|
|
1528
|
-
case
|
|
1528
|
+
case I.DATE:
|
|
1529
1529
|
return "YYYY-MM-DD";
|
|
1530
|
-
case
|
|
1530
|
+
case I.TIME:
|
|
1531
1531
|
return "HH:mm:ss";
|
|
1532
|
-
case
|
|
1533
|
-
case
|
|
1532
|
+
case I.DATE_TIME:
|
|
1533
|
+
case I.DATE_OPTIONAL_TIME:
|
|
1534
1534
|
return "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
1535
1535
|
default:
|
|
1536
1536
|
return;
|
|
@@ -1573,43 +1573,43 @@ function Dr(e) {
|
|
|
1573
1573
|
} : {};
|
|
1574
1574
|
}
|
|
1575
1575
|
const Mr = {
|
|
1576
|
-
[
|
|
1576
|
+
[I.DATE]: [
|
|
1577
1577
|
"date"
|
|
1578
1578
|
],
|
|
1579
|
-
[
|
|
1579
|
+
[I.TIME]: [
|
|
1580
1580
|
"time"
|
|
1581
1581
|
],
|
|
1582
|
-
[
|
|
1582
|
+
[I.DATE_TIME]: [
|
|
1583
1583
|
"date-time"
|
|
1584
1584
|
],
|
|
1585
|
-
[
|
|
1585
|
+
[I.EMAIL]: [
|
|
1586
1586
|
"email"
|
|
1587
1587
|
],
|
|
1588
|
-
[
|
|
1588
|
+
[I.URL]: [
|
|
1589
1589
|
"url"
|
|
1590
1590
|
],
|
|
1591
|
-
[
|
|
1591
|
+
[I.UUID]: [
|
|
1592
1592
|
"uuid"
|
|
1593
1593
|
],
|
|
1594
|
-
[
|
|
1594
|
+
[I.PHONE]: [
|
|
1595
1595
|
"phone"
|
|
1596
1596
|
],
|
|
1597
|
-
[
|
|
1597
|
+
[I.URI]: [
|
|
1598
1598
|
"uri"
|
|
1599
1599
|
],
|
|
1600
|
-
[
|
|
1600
|
+
[I.HOSTNAME]: [
|
|
1601
1601
|
"hostname"
|
|
1602
1602
|
],
|
|
1603
|
-
[
|
|
1603
|
+
[I.COLOR_HEX]: [
|
|
1604
1604
|
"color-hex"
|
|
1605
1605
|
],
|
|
1606
|
-
[
|
|
1606
|
+
[I.CURRENCY]: [
|
|
1607
1607
|
"currency"
|
|
1608
1608
|
],
|
|
1609
|
-
[
|
|
1609
|
+
[I.LANGUAGE]: [
|
|
1610
1610
|
"language"
|
|
1611
1611
|
],
|
|
1612
|
-
[
|
|
1612
|
+
[I.DATE_OPTIONAL_TIME]: [
|
|
1613
1613
|
"date-time",
|
|
1614
1614
|
"date"
|
|
1615
1615
|
],
|
|
@@ -1935,7 +1935,7 @@ 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 ?
|
|
1938
|
+
return this.platformisedFieldBasedValidation ? Xt(wr, this.validationMode ?? O.UNKNOWN) : kt(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) => ({
|
|
@@ -1974,7 +1974,7 @@ function Gr(e, t) {
|
|
|
1974
1974
|
...t.fields ?? [],
|
|
1975
1975
|
...t.deletedFields ?? []
|
|
1976
1976
|
].filter(Se).reduce((i, o) => (i[h(o.target, o, "target")] = o, i), {});
|
|
1977
|
-
return r.map((i) => Br(i, n[h(i.target, i, "target")])).filter(
|
|
1977
|
+
return r.map((i) => Br(i, n[h(i.target, i, "target")])).filter(It);
|
|
1978
1978
|
}
|
|
1979
1979
|
function Br(e, t) {
|
|
1980
1980
|
if (!t)
|
|
@@ -2015,7 +2015,7 @@ function pe(e, t) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
2017
|
function qr(e, t) {
|
|
2018
|
-
const r = e.format ??
|
|
2018
|
+
const r = e.format ?? I.UNDEFINED, n = t.format ?? I.UNDEFINED;
|
|
2019
2019
|
return r !== n ? {
|
|
2020
2020
|
errorMessage: "Incompatible string format",
|
|
2021
2021
|
params: {
|
|
@@ -2056,7 +2056,7 @@ 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 kr = "FILE_UPLOAD";
|
|
2060
2060
|
function gn(e, t, r) {
|
|
2061
2061
|
var s, i, o, a;
|
|
2062
2062
|
const n = [
|
|
@@ -2074,17 +2074,17 @@ function gn(e, t, r) {
|
|
|
2074
2074
|
})
|
|
2075
2075
|
];
|
|
2076
2076
|
if (nn(r)) {
|
|
2077
|
-
const u =
|
|
2077
|
+
const u = X(r.currentForm), f = X(t);
|
|
2078
2078
|
return {
|
|
2079
2079
|
errors: Ce(n, f, u)
|
|
2080
2080
|
};
|
|
2081
2081
|
}
|
|
2082
2082
|
if (sn(r)) {
|
|
2083
|
-
const u =
|
|
2083
|
+
const u = X(), f = X(t);
|
|
2084
2084
|
return {
|
|
2085
2085
|
errors: Ce([
|
|
2086
2086
|
...n,
|
|
2087
|
-
|
|
2087
|
+
Xr(W((a = e.formsLimit) == null ? void 0 : a.limit), h(r.existingFormsCount, r, "existingFormsCount"))
|
|
2088
2088
|
], f, u)
|
|
2089
2089
|
};
|
|
2090
2090
|
}
|
|
@@ -2093,7 +2093,7 @@ function gn(e, t, r) {
|
|
|
2093
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 Xr = (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 X(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 k(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 === kr).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
|
+
kr as FILE_UPLOAD_FIELD_TYPE,
|
|
2280
2280
|
On as FormSchemaValidator,
|
|
2281
2281
|
Nn as FormValidator,
|
|
2282
2282
|
O as ValidationMode,
|