@wix/form-elements 1.106.0 → 1.108.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-ZAp8oWbK.js} +289 -290
- package/dist/component/{bookings-address-rac-_5S8J8_i.js → bookings-address-rac-x-Az7vHf.js} +1 -1
- package/dist/component/{bookings-email-rac-6vmDR9nS.js → bookings-email-rac-MoF_CaqB.js} +1 -1
- package/dist/component/{bookings-first-name-rac-DtTJ4T2K.js → bookings-first-name-rac-CWh3Rb0M.js} +1 -1
- package/dist/component/{bookings-header-rac-B3dsEwzR.js → bookings-header-rac-BVTiXUWk.js} +1 -1
- package/dist/component/{bookings-last-name-rac-B3idkbi8.js → bookings-last-name-rac-kXRRlyHl.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-CrRBcQwT.js → bookings-login-bar-rac-C4Zr6kXE.js} +23 -24
- package/dist/component/{bookings-phone-rac-BE0yWNnj.js → bookings-phone-rac-2rz1m_xi.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-CYo1l0-6.js → bookings-rich-text-rac-BEjGypQw.js} +1 -1
- package/dist/component/{checkbox-field-rac-boTtXVEt.js → checkbox-field-rac-DwEQLIaz.js} +66 -67
- package/dist/component/{checkbox-group-field-headless-DnkUvDm8.js → checkbox-group-field-headless-BsOww_QB.js} +37 -37
- package/dist/component/{checkbox-group-field-rac-DrDTgHMg.js → checkbox-group-field-rac-DTcZcVS6.js} +6 -6
- package/dist/component/{checkbox-group-rac-v3ozUBpo.js → checkbox-group-rac-DQsML-pW.js} +1 -1
- package/dist/component/{checkbox-rac-YSLE-RnG.js → checkbox-rac-irEBBOxP.js} +1 -1
- package/dist/component/{contacts-address-rac-C653yaHZ.js → contacts-address-rac-B5bSAYrm.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-BeAQ6shx.js → contacts-birthdate-rac-DyScj8f4.js} +1 -1
- package/dist/component/{contacts-company-rac-BglKOoTG.js → contacts-company-rac-C5X9-jXa.js} +1 -1
- package/dist/component/{contacts-email-rac-D6m7ynfc.js → contacts-email-rac-B0vkfmrS.js} +1 -1
- package/dist/component/{contacts-first-name-rac-Dgxn0tUJ.js → contacts-first-name-rac-Cfil3U_e.js} +1 -1
- package/dist/component/{contacts-last-name-rac-1UyIuRKH.js → contacts-last-name-rac-CtPLE-7-.js} +1 -1
- package/dist/component/{contacts-phone-rac-BQ77BlW4.js → contacts-phone-rac-YkzsAoBZ.js} +1 -1
- package/dist/component/{contacts-position-rac-BUDUv7lv.js → contacts-position-rac-BS4j8QC-.js} +1 -1
- package/dist/component/{contacts-subscribe-rac-DdtA0qKW.js → contacts-subscribe-rac-z_9VsEZL.js} +1 -1
- package/dist/component/{contacts-tax-id-rac-WUaKcNl0.js → contacts-tax-id-rac-WFkmKyZv.js} +1 -1
- package/dist/component/{date-availability-XjBFq8jt.js → date-availability-NN3rxosk.js} +1 -1
- package/dist/component/{date-input-field-rac-aY2zuuKs.js → date-input-field-rac-mdhEC3oq.js} +88 -89
- package/dist/component/{date-input-rac-DRiP2_97.js → date-input-rac-CGciuoTx.js} +1 -1
- package/dist/component/{date-picker-field-rac-Bzl-d3Uj.js → date-picker-field-rac-CRZVODfF.js} +90 -91
- package/dist/component/{date-picker-rac-DHHUh8vn.js → date-picker-rac-Bfbvjy8W.js} +1 -1
- package/dist/component/{date-time-input-field-rac-DP_StuLr.js → date-time-input-field-rac-TDWBXZ44.js} +76 -77
- package/dist/component/{date-time-input-rac-B11KIxsf.js → date-time-input-rac-DY0qdSix.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BHZBqyWv.js → dext-checkbox-group-rac-BFGM7SOt.js} +2 -2
- package/dist/component/{dext-checkbox-rac-BIlAqEvV.js → dext-checkbox-rac-DPZvTeUZ.js} +1 -1
- package/dist/component/{dext-date-picker-rac-CHBXNrZi.js → dext-date-picker-rac-Xd5kojsQ.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-BYtliKry.js → dext-date-time-input-rac-C0RIdxJW.js} +1 -1
- package/dist/component/{dext-dropdown-rac-C2VPSFV5.js → dext-dropdown-rac-D1m8vJvm.js} +1 -1
- package/dist/component/{dext-email-rac-Fnb0Ggcs.js → dext-email-rac-BC81RFYY.js} +1 -1
- package/dist/component/{dext-number-input-rac-DopfSyFi.js → dext-number-input-rac-Z_ih9FfX.js} +1 -1
- package/dist/component/{dext-phone-rac-Rn4i_2rc.js → dext-phone-rac-s3BOnXuI.js} +1 -1
- package/dist/component/{dext-radio-group-rac-bNaskJpK.js → dext-radio-group-rac-CL3jcezs.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DL6ZZd7d.js → dext-rating-input-rac-wz1EyP5b.js} +1 -1
- package/dist/component/{dext-tags-rac-TsUPoImO.js → dext-tags-rac-BY4Rf2BP.js} +2 -2
- package/dist/component/{dext-text-area-rac-BIuY7LTd.js → dext-text-area-rac-DRJzlsq8.js} +1 -1
- package/dist/component/{dext-text-input-rac-CSYPW0Qi.js → dext-text-input-rac-BGcRNNAi.js} +1 -1
- package/dist/component/{dext-url-input-rac-_g0lqGfW.js → dext-url-input-rac-CRAIm8yp.js} +1 -1
- package/dist/component/{donation-rac-BYKFtsyR.js → donation-rac-BlTfOIlE.js} +83 -84
- package/dist/component/{dropdown-field-headless-CBaqlNZi.js → dropdown-field-headless-DhzRAMcM.js} +12 -12
- package/dist/component/{dropdown-field-rac-CCAGSMm3.js → dropdown-field-rac-DXyY5we-.js} +5 -5
- package/dist/component/{dropdown-rac-C_EqUsZ1.js → dropdown-rac-C6YM6qxm.js} +1 -1
- package/dist/component/{ecom-address-rac-Bw9eH0iF.js → ecom-address-rac-CAdr7wya.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-B5PVOO2a.js → ecom-subscription-checkbox-rac-Z2VMuCbt.js} +6 -6
- package/dist/component/{email-input-field-rac-B2kqQ6yo.js → email-input-field-rac-DpkfunVK.js} +53 -54
- package/dist/component/{events-repeater-rac--4OnUxWE.js → events-repeater-rac-CuJkdrPo.js} +61 -62
- package/dist/component/{events-rsvp-rac-CczCoo3T.js → events-rsvp-rac-BKWlSeQ9.js} +8 -8
- package/dist/component/{field-error-headless-D3-1L5sf.js → field-error-headless-tsg9FQ-_.js} +12 -12
- package/dist/component/{field-label-headless-Du4ckIVy.js → field-label-headless-CB8dEat8.js} +11 -11
- package/dist/component/{file-upload-rac-DbdkUbWM.js → file-upload-rac-ZdgYt646.js} +67 -68
- package/dist/component/{fixed-payment-rac-f9-01iDN.js → fixed-payment-rac-CuIQEeHh.js} +20 -21
- package/dist/component/{form-DQauhsho.js → form-0jt4L5xo.js} +3045 -2896
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/header-field-rac-CWVGzxKb.js +24 -0
- package/dist/component/{header-rac-CR9T3Pnu.js → header-rac-D6KsV-ko.js} +1 -1
- package/dist/component/{image-choice-rac-DJ_8v467.js → image-choice-rac-CUCyVS8c.js} +29 -30
- package/dist/component/{index-BB7d_9Dv.js → index-TJSnVtCO.js} +72 -72
- package/dist/component/{index-CcUTIUWM.js → index-iOqQidgV.js} +12 -12
- package/dist/component/{isObjectLike-xvPa_08X.js → isObjectLike-DQbx8r1c.js} +1 -1
- package/dist/component/{multiline-address-field-rac-CyaFOloE.js → multiline-address-field-rac-DtZ1NTfD.js} +186 -187
- package/dist/component/{multiline-address-rac-CaHGUN_f.js → multiline-address-rac-ub-_XzHU.js} +1 -1
- package/dist/component/number-input-field-rac-DLItn4DK.js +92 -0
- package/dist/component/{number-input-rac-DMKX6nhk.js → number-input-rac-UuxJzqEx.js} +1 -1
- package/dist/component/{password-rac-0RUXPAn6.js → password-rac-Di6q96Rn.js} +37 -38
- package/dist/component/{payment-input-rac-CHSZ3-Lt.js → payment-input-rac-CG6c4-Ge.js} +52 -53
- package/dist/component/{phone-input-field-rac-JmIFcP1e.js → phone-input-field-rac-D4JphCuT.js} +75 -76
- package/dist/component/{phone-rac-BLRnAPXP.js → phone-rac-_vDw2usa.js} +1 -1
- package/dist/component/{product-list-rac-BkF5tDwt.js → product-list-rac-CgxRlj1f.js} +73 -74
- package/dist/component/{quiz-radio-group-rac-32cCMTUS.js → quiz-radio-group-rac-bi26aGxN.js} +1 -1
- package/dist/component/{radio-button-module-classes-IOulhuSH.js → radio-button-module-classes-DDJq2ESf.js} +33 -33
- package/dist/component/{radio-group-field-rac-CJwku6e0.js → radio-group-field-rac-D1aMVO6l.js} +4 -4
- package/dist/component/{radio-group-rac-BiW-9Abj.js → radio-group-rac-HKC85M6t.js} +1 -1
- package/dist/component/{rating-input-field-rac-B9cwaROK.js → rating-input-field-rac-CpRehxFB.js} +42 -43
- package/dist/component/{rating-input-rac-BpwlNvzQ.js → rating-input-rac-BMuCZ3oj.js} +1 -1
- package/dist/component/{rich-content-rac.module-B1uyPmtK.js → rich-content-rac.module-mZ6xoAOd.js} +4 -4
- package/dist/component/rich-text-field-rac-CUK8V8Kf.js +21 -0
- package/dist/component/{rich-text-rac-VfeZxS27.js → rich-text-rac-B-7sR2FJ.js} +1 -1
- package/dist/component/{service-dropdown-rac-BCfs8IhW.js → service-dropdown-rac-1DDNT5bn.js} +43 -44
- package/dist/component/{services-multi-choice-rac-CCqdF_7P.js → services-multi-choice-rac-CB-6dwxz.js} +21 -22
- package/dist/component/{signature-rac-DOyMo3u0.js → signature-rac-7XBci6P2.js} +35 -36
- package/dist/component/{submit-button-rac-C2uA5DeE.js → submit-button-rac-B1-Mk8Gg.js} +21 -22
- package/dist/component/{tags-field-rac-C_uIw2by.js → tags-field-rac-CQ9Y7mq-.js} +49 -50
- package/dist/component/{tags-rac-1pQ-fpe_.js → tags-rac-Visic-Ml.js} +1 -1
- package/dist/component/{text-area-field-rac-DqlOkm7e.js → text-area-field-rac-C8fP1g-w.js} +31 -32
- package/dist/component/{text-area-rac-DPdkrFcH.js → text-area-rac-B6yZxzxm.js} +1 -1
- package/dist/component/{text-input-field-rac-CmXm6r1w.js → text-input-field-rac-CNjbOxD1.js} +5 -5
- package/dist/component/{text-input-headless-DD__2DFf.js → text-input-headless-Bm8PJGep.js} +12 -12
- package/dist/component/{text-input-rac-DRHyQEH7.js → text-input-rac-BEPC1Z-4.js} +1 -1
- package/dist/component/{time-input-rac-BJPIymQY.js → time-input-rac-3m6C_Jp5.js} +41 -42
- package/dist/component/url-input-field-rac-CIk_6Lf6.js +74 -0
- package/dist/component/{url-input-rac-C0ChQUzq.js → url-input-rac-DyVoygXH.js} +1 -1
- package/dist/component/use-dropdown-option-class-name-McG3ayOT.js +21 -0
- package/dist/component/{use-element-state-class-name-BatTc2bw.js → use-element-state-class-name-B9MBWX44.js} +1 -1
- package/dist/component/{use-is-forced-open-dropdown-B0jiPTmS.js → use-is-forced-open-dropdown-r5G_sZsO.js} +7 -7
- package/dist/component/{use-service-options-base-oeE7xszw.js → use-service-options-base-hcbkvhpw.js} +7 -7
- package/dist/component/use-text-input-class-name-SnurFqAr.js +23 -0
- package/dist/form.d.ts +3 -1
- package/package.json +2 -2
- 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
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import m from "classnames";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { b5 as u, aJ as i, aI as C, aL as R, aj as T, a1 as d } from "./form-0jt4L5xo.js";
|
|
4
|
+
import { u as g, R as p, s as S, T as h } from "./rich-content-rac.module-mZ6xoAOd.js";
|
|
5
|
+
const y = ({ 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
|
+
y as H
|
|
24
|
+
};
|
|
@@ -1,16 +1,15 @@
|
|
|
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 { b5 as b, b2 as x, b7 as P, a_ as B, H as q, T as U, v as w, x as V, u as z, p as K, w as Q, f } from "./form-0jt4L5xo.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-CB8dEat8.js";
|
|
8
|
+
import { D as X, E as Z } from "./field-error-headless-tsg9FQ-_.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-B9MBWX44.js";
|
|
14
13
|
const o = ({ children: t, className: s }) => {
|
|
15
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), A = p(t, o.Description), D = p(t, o.Error), y = H(() => a || [], [
|
|
16
15
|
a
|
|
@@ -22,14 +21,14 @@ 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
34
|
value: y,
|
|
@@ -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
|
+
}, De = () => /* @__PURE__ */ e.createElement(_e, null);
|
|
160
159
|
export {
|
|
161
|
-
|
|
160
|
+
De as ImageChoiceRAC
|
|
162
161
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { e as R, ar as _, aF as de, as as O, a7 as Ge, B as Be, al as qe, ae as He, ad as I, am as Ee, av as re, ap as Fe, c as B, af as M, aR as Te, ah as je, ag as he, ai as q } from "./form-0jt4L5xo.js";
|
|
2
|
+
import { aM as Mn } from "./form-0jt4L5xo.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-NN3rxosk.js";
|
|
10
|
+
import { a as Sn } from "./date-availability-NN3rxosk.js";
|
|
11
11
|
import { C as tt } from "./calling-country-codes-PyWuOTmF.js";
|
|
12
12
|
function rt(e) {
|
|
13
13
|
var t, r;
|
|
@@ -274,10 +274,10 @@ function Tt() {
|
|
|
274
274
|
e.exports = s;
|
|
275
275
|
})(X, X.exports)), X.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 = [
|
|
@@ -723,9 +723,9 @@ const oe = "¡--
|
|
|
723
723
|
"za",
|
|
724
724
|
"zh",
|
|
725
725
|
"zu"
|
|
726
|
-
],
|
|
727
|
-
function
|
|
728
|
-
return
|
|
726
|
+
], Ct = new Set(St);
|
|
727
|
+
function bt(e) {
|
|
728
|
+
return Ct.has(e);
|
|
729
729
|
}
|
|
730
730
|
function Ft(e) {
|
|
731
731
|
try {
|
|
@@ -750,7 +750,7 @@ const ye = {
|
|
|
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: bt,
|
|
754
754
|
"time-zone": Ft
|
|
755
755
|
};
|
|
756
756
|
function Ut(e, t, r) {
|
|
@@ -899,7 +899,7 @@ function jt(e, t, r) {
|
|
|
899
899
|
allErrors: !0,
|
|
900
900
|
multipleOfPrecision: 8
|
|
901
901
|
});
|
|
902
|
-
return We(i), vt(i, t), Ut(i, t, r), ke(i),
|
|
902
|
+
return We(i), vt(i, t), Ut(i, t, r), ke(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);
|
|
@@ -912,7 +912,7 @@ 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), 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,
|
|
@@ -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
|
-
var D = m[3], F = D === 24 ? 0 : D,
|
|
1342
|
-
return (o.utc(
|
|
1341
|
+
var D = m[3], F = D === 24 ? 0 : D, C = m[0] + "-" + m[1] + "-" + m[2] + " " + F + ":" + m[4] + ":" + m[5] + ":000", L = +c;
|
|
1342
|
+
return (o.utc(C).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
|
}
|
|
@@ -1364,12 +1364,12 @@ 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 N = (function(F,
|
|
1368
|
-
var
|
|
1369
|
-
if (
|
|
1370
|
-
var se = f(
|
|
1371
|
-
return $ === se ? [
|
|
1372
|
-
})(o.utc(c, m).valueOf(), g, T),
|
|
1367
|
+
var N = (function(F, C, L) {
|
|
1368
|
+
var b = F - 60 * C * 1e3, $ = f(b, L);
|
|
1369
|
+
if (C === $) return [b, C];
|
|
1370
|
+
var se = f(b -= 60 * ($ - C) * 1e3, L);
|
|
1371
|
+
return $ === se ? [b, $] : [F - 60 * Math.min($, se) * 1e3, Math.max($, se)];
|
|
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;
|
|
@@ -1419,15 +1419,15 @@ 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 C = ("" + F[0]).match(s) || ["-", 0, 0], L = C[0], b = 60 * +C[1] + +C[2];
|
|
1423
|
+
return b === 0 ? 0 : L === "+" ? b : -b;
|
|
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
|
],
|
|
@@ -1663,17 +1663,17 @@ function te(e, t) {
|
|
|
1663
1663
|
type: y.OBJECT,
|
|
1664
1664
|
additionalProperties: !1,
|
|
1665
1665
|
properties: r,
|
|
1666
|
-
...
|
|
1666
|
+
...Cr(e, t)
|
|
1667
1667
|
};
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function Cr(e, t) {
|
|
1670
1670
|
return t !== O.UNRESTRICTED_UPDATE ? {
|
|
1671
|
-
required:
|
|
1671
|
+
required: br(e.properties)
|
|
1672
1672
|
} : {
|
|
1673
1673
|
required: []
|
|
1674
1674
|
};
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function br(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;
|
|
@@ -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: {
|
|
@@ -2048,10 +2048,10 @@ function jr(e, t) {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
};
|
|
2050
2050
|
}
|
|
2051
|
-
var
|
|
2051
|
+
var Ce;
|
|
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
|
+
})(Ce || (Ce = {}));
|
|
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";
|
|
@@ -2076,13 +2076,13 @@ function gn(e, t, r) {
|
|
|
2076
2076
|
if (nn(r)) {
|
|
2077
2077
|
const u = k(r.currentForm), f = k(t);
|
|
2078
2078
|
return {
|
|
2079
|
-
errors:
|
|
2079
|
+
errors: be(n, f, u)
|
|
2080
2080
|
};
|
|
2081
2081
|
}
|
|
2082
2082
|
if (sn(r)) {
|
|
2083
2083
|
const u = k(), f = k(t);
|
|
2084
2084
|
return {
|
|
2085
|
-
errors:
|
|
2085
|
+
errors: be([
|
|
2086
2086
|
...n,
|
|
2087
2087
|
kr(W((a = e.formsLimit) == null ? void 0 : a.limit), h(r.existingFormsCount, r, "existingFormsCount"))
|
|
2088
2088
|
], f, u)
|
|
@@ -2090,7 +2090,7 @@ function gn(e, t, r) {
|
|
|
2090
2090
|
}
|
|
2091
2091
|
throw new Error("Unknown validation action");
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function be(e, t, r) {
|
|
2094
2094
|
return e.map((n) => n(t, r)).filter(Boolean).map((n) => n);
|
|
2095
2095
|
}
|
|
2096
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;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as S, a as p, C as N,
|
|
1
|
+
import { aQ as n } from "./form-0jt4L5xo.js";
|
|
2
|
+
import { A as S, a as p, C as N, ak as g, aA as q, aB as D, aS as L } from "./form-0jt4L5xo.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,
|