@wix/form-elements 1.73.0 → 1.75.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-Bze1s2XD.js → appointment-rac-7xVKSm2N.js} +27 -27
- package/dist/component/{bookings-address-rac-BcrkXf63.js → bookings-address-rac-VXnUSx8U.js} +1 -1
- package/dist/component/{bookings-email-rac-DYq5RxOP.js → bookings-email-rac-B2_ad7Y2.js} +1 -1
- package/dist/component/{bookings-first-name-rac-ZJ_sQ-01.js → bookings-first-name-rac-9BAY5vLx.js} +1 -1
- package/dist/component/{bookings-header-rac-Cv8kl01f.js → bookings-header-rac-B6IgiMOA.js} +1 -1
- package/dist/component/{bookings-last-name-rac-BmnulSZ6.js → bookings-last-name-rac-DoXEDO8K.js} +1 -1
- package/dist/component/{bookings-login-bar-rac-Bdi4xs9y.js → bookings-login-bar-rac-DprQIFyj.js} +2 -2
- package/dist/component/{bookings-phone-rac-C8DjSzUY.js → bookings-phone-rac-VMoXtejZ.js} +1 -1
- package/dist/component/{bookings-rich-text-rac-DYu011oy.js → bookings-rich-text-rac-DSzD2jBy.js} +1 -1
- package/dist/component/{checkbox-field-rac-BH3yEE5j.js → checkbox-field-rac-BLihwz3C.js} +327 -320
- package/dist/component/checkbox-group-field-headless-BItyo_iD.js +205 -0
- package/dist/component/checkbox-group-field-rac-Bov3yFC6.js +40 -0
- package/dist/component/{checkbox-group-rac-CgW0DnhX.js → checkbox-group-rac-Fit-qssk.js} +1 -1
- package/dist/component/{checkbox-rac-DOAYMMsi.js → checkbox-rac-CSsY83Nx.js} +1 -1
- package/dist/component/{contacts-address-rac-DXJa4J_k.js → contacts-address-rac-iJuzUQe4.js} +1 -1
- package/dist/component/{contacts-birthdate-rac-CVsuRq3B.js → contacts-birthdate-rac-0g2e8cQP.js} +1 -1
- package/dist/component/{contacts-company-rac-b2bwHSNC.js → contacts-company-rac-BC0tK4WQ.js} +1 -1
- package/dist/component/{contacts-email-rac-DMPcpQ1c.js → contacts-email-rac-dkuclkiH.js} +1 -1
- package/dist/component/{contacts-first-name-rac-CL2BsHuJ.js → contacts-first-name-rac-BSUkCuht.js} +1 -1
- package/dist/component/{contacts-last-name-rac-hdBsWaqb.js → contacts-last-name-rac-08bjVdN2.js} +1 -1
- package/dist/component/{contacts-phone-rac-DQF6aV9B.js → contacts-phone-rac-DVb0Z_0M.js} +1 -1
- package/dist/component/{contacts-position-rac-CVX-WCfx.js → contacts-position-rac-AGUDkv7U.js} +1 -1
- package/dist/component/contacts-subscribe-rac-6jAQHibT.js +13 -0
- package/dist/component/{contacts-tax-id-rac-0KTXvF81.js → contacts-tax-id-rac-C7moEz5b.js} +1 -1
- package/dist/component/{date-availability-DBljhBgO.js → date-availability-DagbE0C8.js} +1 -1
- package/dist/component/{date-input-field-rac-CfflD2Ar.js → date-input-field-rac-BWHKsJGy.js} +30 -30
- package/dist/component/{date-input-rac-fQclCKoa.js → date-input-rac-BlZlmf-s.js} +1 -1
- package/dist/component/{date-picker-field-rac-BSmFOaH-.js → date-picker-field-rac-BSNbYirD.js} +36 -36
- package/dist/component/{date-picker-rac-D7I3ramu.js → date-picker-rac-D3IWMst5.js} +1 -1
- package/dist/component/{date-time-input-field-rac-vjZDQ_Fp.js → date-time-input-field-rac-YKTwuIUs.js} +25 -25
- package/dist/component/{date-time-input-rac-CDbS0VZR.js → date-time-input-rac-CZRsKm1P.js} +1 -1
- package/dist/component/{dext-checkbox-group-rac-BBiPt6_a.js → dext-checkbox-group-rac-BE7ILz-f.js} +2 -2
- package/dist/component/{dext-checkbox-rac-Cqp--0SO.js → dext-checkbox-rac-B6-94A1N.js} +1 -1
- package/dist/component/{dext-date-picker-rac-5Wft0w9m.js → dext-date-picker-rac-Bx2hUFNm.js} +1 -1
- package/dist/component/{dext-date-time-input-rac-Bbs7bgtn.js → dext-date-time-input-rac-DPKD6quz.js} +1 -1
- package/dist/component/{dext-dropdown-rac-CSvhtqbc.js → dext-dropdown-rac-WrSfNRa5.js} +1 -1
- package/dist/component/{dext-email-rac-BoLeXqyI.js → dext-email-rac-8PSMKNYG.js} +1 -1
- package/dist/component/{dext-number-input-rac-DzaJYTSz.js → dext-number-input-rac-b9YSzEkN.js} +1 -1
- package/dist/component/{dext-phone-rac-BagPg_CT.js → dext-phone-rac-CkapN3c1.js} +1 -1
- package/dist/component/{dext-radio-group-rac-B5HSQt7a.js → dext-radio-group-rac-CfNMkwUa.js} +2 -2
- package/dist/component/{dext-rating-input-rac-DrtaAf-E.js → dext-rating-input-rac-Cun_t7HQ.js} +1 -1
- package/dist/component/{dext-tags-rac-Cg4jJ4jr.js → dext-tags-rac-DLZ91c3w.js} +2 -2
- package/dist/component/{dext-text-area-rac-C_t-W7lk.js → dext-text-area-rac-N9A7QfYw.js} +1 -1
- package/dist/component/{dext-text-input-rac-ChvV21Jf.js → dext-text-input-rac-XbVzAPHH.js} +1 -1
- package/dist/component/{dext-url-input-rac-DclbSYTr.js → dext-url-input-rac-BiaWZ49r.js} +1 -1
- package/dist/component/{donation-rac-FYQIMm5m.js → donation-rac-BEIBjLHK.js} +46 -47
- package/dist/component/{dropdown-field-headless-CTZ-zGqZ.js → dropdown-field-headless-CQfZ3zPD.js} +3 -3
- package/dist/component/{dropdown-field-rac-C1KVtxwv.js → dropdown-field-rac-ubZN_Abg.js} +7 -7
- package/dist/component/{dropdown-rac-CkkDEDje.js → dropdown-rac-CHYFrEjY.js} +1 -1
- package/dist/component/{ecom-address-rac-BOuugSxX.js → ecom-address-rac-C7qJlrsv.js} +1 -1
- package/dist/component/{ecom-subscription-checkbox-rac-IZeMlljb.js → ecom-subscription-checkbox-rac-CONIZsTy.js} +6 -6
- package/dist/component/{email-input-field-rac-CNzmm1j7.js → email-input-field-rac-Dg0p6WZe.js} +63 -63
- package/dist/component/events-repeater-rac-BoxNl7gn.js +254 -0
- package/dist/component/{events-rsvp-rac-BmjboAco.js → events-rsvp-rac-BU5d2n4k.js} +3 -3
- package/dist/component/{field-error-headless-DQZ5XAdn.js → field-error-headless-uQOcm2Ak.js} +1 -1
- package/dist/component/{field-label-headless-DoxfHHaj.js → field-label-headless-Bzh7f2Ji.js} +1 -1
- package/dist/component/field-rac.module-DjmaTYkc.js +23 -0
- package/dist/component/{file-upload-rac-YEQ7uXhm.js → file-upload-rac-BTt-rJE5.js} +74 -74
- package/dist/component/{fixed-payment-rac-DDufIQBT.js → fixed-payment-rac-1NOx3D-U.js} +17 -17
- package/dist/component/{form-C6WwBcGP.js → form-DCmjj8mZ.js} +69 -69
- package/dist/component/form-element-classes-Dn33C01k.js +111 -0
- package/dist/component/form.css +1 -1
- package/dist/component/form.js +1 -1
- package/dist/component/{header-field-rac-DGfjrjQC.js → header-field-rac-lyvjy6h2.js} +3 -3
- package/dist/component/{header-rac-C_JE2cTg.js → header-rac-B4iPEbNj.js} +1 -1
- package/dist/component/{image-choice-rac-LDLPQwrN.js → image-choice-rac-CmEG-waj.js} +29 -30
- package/dist/component/{index-C2srcuHD.js → index-D-CKLZBh.js} +4 -4
- package/dist/component/{index-CIOoaQ8Z.js → index-UZsDOe8e.js} +2 -2
- package/dist/component/{isObjectLike-E5QfEa1u.js → isObjectLike-BSGOU4jF.js} +1 -1
- package/dist/component/{multiline-address-field-rac-Biyj2tIN.js → multiline-address-field-rac-Dz0NEjSO.js} +125 -125
- package/dist/component/{multiline-address-rac-BCqCvG7a.js → multiline-address-rac-D_MAanxb.js} +1 -1
- package/dist/component/{number-input-field-rac-CwUoIbM8.js → number-input-field-rac-CvjeAm-W.js} +13 -13
- package/dist/component/{number-input-rac-CdYdTDem.js → number-input-rac-oKo2Wx_c.js} +1 -1
- package/dist/component/{password-rac-D62npVHY.js → password-rac-CrnkKtfp.js} +21 -21
- package/dist/component/{payment-input-rac-D4u-3vcW.js → payment-input-rac-BoVdGyvV.js} +18 -18
- package/dist/component/{phone-input-field-rac-uHxR3ozd.js → phone-input-field-rac-DksXoAnr.js} +54 -54
- package/dist/component/{phone-rac-Bf99_BGi.js → phone-rac-BR0iX5TL.js} +1 -1
- package/dist/component/product-list-rac-C4rvv5k-.js +270 -0
- package/dist/component/{quiz-radio-group-rac-CPGS0LEb.js → quiz-radio-group-rac-BxKmUUf8.js} +2 -2
- package/dist/component/{radio-group-field-rac-BWpTNAbO.js → radio-group-field-rac-Dj4rkkKF.js} +3 -3
- package/dist/component/{radio-group-field-rac.module-WxU5zxvM.js → radio-group-field-rac.module-CeBLm9QF.js} +3 -3
- package/dist/component/{radio-group-rac-dA4WZ1Vj.js → radio-group-rac-BpnfptSZ.js} +1 -1
- package/dist/component/{rating-input-field-rac-CJnFsBvH.js → rating-input-field-rac-BP0928qI.js} +30 -31
- package/dist/component/{rating-input-rac-DXVYozFV.js → rating-input-rac-DaEgvjIS.js} +1 -1
- package/dist/component/{rich-content-rac.module-DkKwzJS7.js → rich-content-rac.module-zvvH-tWq.js} +1 -1
- package/dist/component/{rich-text-field-rac-8FWCRrpb.js → rich-text-field-rac-CFCRiMl_.js} +3 -3
- package/dist/component/{rich-text-rac-OeM_mPRy.js → rich-text-rac-BRuLnyN4.js} +1 -1
- package/dist/component/{service-dropdown-rac-mvUMpcS_.js → service-dropdown-rac-C82l5y0C.js} +21 -21
- package/dist/component/services-multi-choice-rac-BAHBSgAT.js +83 -0
- package/dist/component/{signature-rac-D44U9Uyp.js → signature-rac-CIkm3SCW.js} +56 -56
- package/dist/component/{submit-button-rac-BqtcgVAn.js → submit-button-rac-Bz-X9Tbo.js} +2 -2
- package/dist/component/{tags-field-rac-CemsTKWz.js → tags-field-rac-Dn8VyPzT.js} +29 -30
- package/dist/component/{tags-rac-fVjCf6qo.js → tags-rac-BJpVdunR.js} +1 -1
- package/dist/component/{text-area-field-rac-BPciZlZb.js → text-area-field-rac-Pp9HnCS5.js} +18 -18
- package/dist/component/{text-area-rac-CRTORdZM.js → text-area-rac-DbwAFdel.js} +1 -1
- package/dist/component/{text-input-field-rac-CvFoWlRN.js → text-input-field-rac-x4ByKmBv.js} +6 -6
- package/dist/component/{text-input-headless-BQ3TWU9G.js → text-input-headless-fbiKci5q.js} +3 -3
- package/dist/component/{text-input-rac-DSFkEmob.js → text-input-rac-jyCKxyCt.js} +1 -1
- package/dist/component/{time-input-rac-CGgs7ncp.js → time-input-rac-C5Cvmxtt.js} +17 -17
- package/dist/component/{url-input-field-rac-CqvgTc-F.js → url-input-field-rac-CGpCEn2A.js} +20 -20
- package/dist/component/{url-input-rac-C45KOwnr.js → url-input-rac-DhFL8fGq.js} +1 -1
- package/dist/component/use-element-state-class-name-Bnw7sY9P.js +29 -0
- package/dist/component/{use-service-options-base-D4Zl-iGW.js → use-service-options-base-CgT1IKB3.js} +1 -1
- package/package.json +3 -3
- package/dist/component/checkbox-group-field-headless-D_GG5LHM.js +0 -210
- package/dist/component/checkbox-group-field-rac-Cj7Erubs.js +0 -41
- package/dist/component/contacts-subscribe-rac-Dl1ot9qw.js +0 -13
- package/dist/component/events-repeater-rac-CMV0Lmwz.js +0 -247
- package/dist/component/field-rac.module-Cac83bU5.js +0 -21
- package/dist/component/form-element-classes-DDKCTFQj.js +0 -65
- package/dist/component/form-element-keys-D0sEdpFo.js +0 -8
- package/dist/component/product-list-rac-iRf6Ra7i.js +0 -263
- package/dist/component/services-multi-choice-rac-DrgUrn_N.js +0 -76
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { RicosViewer as
|
|
1
|
+
import { RicosViewer as Q } from "@wix/ricos/viewer";
|
|
2
2
|
import C from "classnames";
|
|
3
3
|
import n, { useMemo as w, createContext as We, useContext as De, useState as ye, useRef as B, useCallback as D, useEffect as Ve } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as _t } from "react-aria";
|
|
5
|
-
import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as
|
|
5
|
+
import { ad as bt, c as ft, a9 as Pt, ab as yt, G as Tt, H as Mt, u as qt, z as V, F as K, as as Me, a2 as at, ai as P, af as T, ak as le, ae as Ct, Q as wt, C as he, a0 as xt, a4 as Bt, ap as kt, aj as $t, ao as Ut, a7 as Wt, Y as Vt, a6 as Kt, al as Yt, j as Ht } from "./form-DCmjj8mZ.js";
|
|
6
6
|
import { f as E, a as h } from "./find-child-C60k4CxG.js";
|
|
7
|
-
import { F as
|
|
7
|
+
import { F as jt, V as Jt } from "./headless-styles-CmcyA_pi.js";
|
|
8
8
|
import { TextField as Ce, Input as ie, ComboBoxStateContext as It, ComboBox as Re, Popover as Ae, ListBox as _e, ListBoxItem as Pe, Group as Lt, Button as Nt } from "react-aria-components";
|
|
9
|
-
import { D as ce, E as de } from "./field-error-headless-
|
|
10
|
-
import { L as ue } from "./field-label-headless-
|
|
11
|
-
import { e as
|
|
12
|
-
import { u as
|
|
9
|
+
import { D as ce, E as de } from "./field-error-headless-uQOcm2Ak.js";
|
|
10
|
+
import { L as ue } from "./field-label-headless-Bzh7f2Ji.js";
|
|
11
|
+
import { e as Gt, c as Qt, a as Xt, r as Ot } from "./isObjectLike-BSGOU4jF.js";
|
|
12
|
+
import { u as zt } from "./use-invoke-callback-UH73A_J3.js";
|
|
13
13
|
import { C as lt } from "./chevron-down-icon-CcpVm6B-.js";
|
|
14
14
|
import { E as X } from "./error-icon-hZxQ6DEy.js";
|
|
15
15
|
import { H as fe } from "./custom-focus-class-_483Pkwp.js";
|
|
16
|
-
import { s as f } from "./field-rac.module-
|
|
17
|
-
import {
|
|
16
|
+
import { s as f } from "./field-rac.module-DjmaTYkc.js";
|
|
17
|
+
import { y as z, Q as Z, x as ee, B as ge, p as te, i as ne } from "./form-element-classes-Dn33C01k.js";
|
|
18
18
|
const Zt = (e, t, o) => {
|
|
19
19
|
var a, l, i, s;
|
|
20
20
|
const r = (a = e.steps) == null ? void 0 : a.map((d) => {
|
|
@@ -81,7 +81,7 @@ function Ne() {
|
|
|
81
81
|
const e = De(vt);
|
|
82
82
|
return e == null ? void 0 : e.countryCode;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function qe(e) {
|
|
85
85
|
return e != null;
|
|
86
86
|
}
|
|
87
87
|
function rn(e, t, o) {
|
|
@@ -95,10 +95,10 @@ function rn(e, t, o) {
|
|
|
95
95
|
...r.view,
|
|
96
96
|
...l
|
|
97
97
|
},
|
|
98
|
-
...
|
|
98
|
+
...qe(a) && {
|
|
99
99
|
hidden: !a
|
|
100
100
|
},
|
|
101
|
-
...
|
|
101
|
+
...qe(i) && qe(r.validation) && {
|
|
102
102
|
validation: {
|
|
103
103
|
...r.validation,
|
|
104
104
|
required: i
|
|
@@ -181,7 +181,7 @@ const on = (e, t) => e.map((o) => ({
|
|
|
181
181
|
}, [
|
|
182
182
|
i,
|
|
183
183
|
s
|
|
184
|
-
]), F = w(() =>
|
|
184
|
+
]), F = w(() => Mt(), []);
|
|
185
185
|
return {
|
|
186
186
|
form: w(() => {
|
|
187
187
|
var _, O;
|
|
@@ -190,7 +190,7 @@ const on = (e, t) => e.map((o) => ({
|
|
|
190
190
|
...r,
|
|
191
191
|
fields: on(r.fields, d)
|
|
192
192
|
};
|
|
193
|
-
const g =
|
|
193
|
+
const g = qt({
|
|
194
194
|
useFieldsV2: u,
|
|
195
195
|
path: t,
|
|
196
196
|
parentId: e,
|
|
@@ -201,10 +201,10 @@ const on = (e, t) => e.map((o) => ({
|
|
|
201
201
|
});
|
|
202
202
|
if (!g.fields.some((v) => v.properties.hidden))
|
|
203
203
|
return g;
|
|
204
|
-
const
|
|
204
|
+
const M = un(g);
|
|
205
205
|
return {
|
|
206
|
-
...
|
|
207
|
-
fields:
|
|
206
|
+
...M,
|
|
207
|
+
fields: M.fields.filter((v) => !v.properties.hidden)
|
|
208
208
|
};
|
|
209
209
|
}, [
|
|
210
210
|
p,
|
|
@@ -240,7 +240,7 @@ function me(e) {
|
|
|
240
240
|
return t.fields[e];
|
|
241
241
|
}
|
|
242
242
|
function be(e) {
|
|
243
|
-
const { t } =
|
|
243
|
+
const { t } = Me(), o = Ne(), r = o && at.getCountryByShortKey(o), l = (r ? r.addressPartDisplayNames : at.getDefaultAddressDisplayNames())[e];
|
|
244
244
|
return l ? t(l) : "";
|
|
245
245
|
}
|
|
246
246
|
const re = ({ children: e }) => {
|
|
@@ -311,7 +311,7 @@ var we, it;
|
|
|
311
311
|
function fn() {
|
|
312
312
|
if (it) return we;
|
|
313
313
|
it = 1;
|
|
314
|
-
var e =
|
|
314
|
+
var e = Gt(), t = function() {
|
|
315
315
|
return e.Date.now();
|
|
316
316
|
};
|
|
317
317
|
return we = t, we;
|
|
@@ -342,7 +342,7 @@ var ke, ut;
|
|
|
342
342
|
function In() {
|
|
343
343
|
if (ut) return ke;
|
|
344
344
|
ut = 1;
|
|
345
|
-
var e =
|
|
345
|
+
var e = Qt(), t = Xt(), o = "[object Symbol]";
|
|
346
346
|
function r(a) {
|
|
347
347
|
return typeof a == "symbol" || t(a) && e(a) == o;
|
|
348
348
|
}
|
|
@@ -384,7 +384,7 @@ function Nn() {
|
|
|
384
384
|
var J = u, Ee = I;
|
|
385
385
|
return u = I = void 0, N = A, b = s.apply(Ee, J), b;
|
|
386
386
|
}
|
|
387
|
-
function
|
|
387
|
+
function M(A) {
|
|
388
388
|
return N = A, p = setTimeout(v, d), F ? R(A) : b;
|
|
389
389
|
}
|
|
390
390
|
function _(A) {
|
|
@@ -407,20 +407,20 @@ function Nn() {
|
|
|
407
407
|
function x() {
|
|
408
408
|
p !== void 0 && clearTimeout(p), N = 0, u = y = I = p = void 0;
|
|
409
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function q() {
|
|
411
411
|
return p === void 0 ? b : pe(t());
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function j() {
|
|
414
414
|
var A = t(), J = O(A);
|
|
415
415
|
if (u = arguments, I = this, y = A, J) {
|
|
416
416
|
if (p === void 0)
|
|
417
|
-
return
|
|
417
|
+
return M(y);
|
|
418
418
|
if (S)
|
|
419
419
|
return clearTimeout(p), p = setTimeout(v, d), R(y);
|
|
420
420
|
}
|
|
421
421
|
return p === void 0 && (p = setTimeout(v, d)), b;
|
|
422
422
|
}
|
|
423
|
-
return
|
|
423
|
+
return j.cancel = x, j.flush = q, j;
|
|
424
424
|
}
|
|
425
425
|
return Ue = i, Ue;
|
|
426
426
|
}
|
|
@@ -576,7 +576,7 @@ const gn = /* @__PURE__ */ wt(On), vn = (e, t, o = 200) => {
|
|
|
576
576
|
d == null || d();
|
|
577
577
|
}, [
|
|
578
578
|
d
|
|
579
|
-
]),
|
|
579
|
+
]), M = E(e, k.Input), _ = E(e, k.Options);
|
|
580
580
|
return /* @__PURE__ */ n.createElement(Re, {
|
|
581
581
|
"aria-labelledby": m,
|
|
582
582
|
inputValue: t ?? "",
|
|
@@ -592,7 +592,7 @@ const gn = /* @__PURE__ */ wt(On), vn = (e, t, o = 200) => {
|
|
|
592
592
|
allowsCustomValue: !0,
|
|
593
593
|
menuTrigger: "input",
|
|
594
594
|
items: N
|
|
595
|
-
}, h(
|
|
595
|
+
}, h(M, {
|
|
596
596
|
onFocus: R
|
|
597
597
|
}), h(_, {
|
|
598
598
|
options: N
|
|
@@ -612,8 +612,8 @@ const gn = /* @__PURE__ */ wt(On), vn = (e, t, o = 200) => {
|
|
|
612
612
|
placeholder: r,
|
|
613
613
|
onFocus: i
|
|
614
614
|
});
|
|
615
|
-
},
|
|
616
|
-
const o = E(e,
|
|
615
|
+
}, He = ({ children: e, className: t }) => {
|
|
616
|
+
const o = E(e, He.Option);
|
|
617
617
|
return /* @__PURE__ */ n.createElement(Ae, {
|
|
618
618
|
className: t,
|
|
619
619
|
containerPadding: 0,
|
|
@@ -632,14 +632,14 @@ const gn = /* @__PURE__ */ wt(On), vn = (e, t, o = 200) => {
|
|
|
632
632
|
textValue: r
|
|
633
633
|
}, r);
|
|
634
634
|
};
|
|
635
|
-
|
|
635
|
+
He.Option = Dn;
|
|
636
636
|
k.Label = ue;
|
|
637
637
|
k.Input = Sn;
|
|
638
|
-
k.Options =
|
|
638
|
+
k.Options = He;
|
|
639
639
|
k.Description = ce;
|
|
640
640
|
k.Error = de;
|
|
641
641
|
const oe = ({ children: e }) => {
|
|
642
|
-
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: I } = T(), { t: L } =
|
|
642
|
+
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: I } = T(), { t: L } = Me(), b = L("field.mla-apartment.label"), p = E(e, oe.Label), y = E(e, oe.Input), N = E(e, oe.Description), F = E(e, oe.Error);
|
|
643
643
|
return /* @__PURE__ */ n.createElement(u, {
|
|
644
644
|
fieldId: t,
|
|
645
645
|
renderLabel: () => h(p, {
|
|
@@ -722,7 +722,7 @@ const Dt = ({ readOnly: e, disabled: t } = {}) => {
|
|
|
722
722
|
t
|
|
723
723
|
]);
|
|
724
724
|
}, _n = (e, t) => e.find((o) => o.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), Rt = ({ options: e, value: t, commit: o, clear: r, onBlur: a }) => {
|
|
725
|
-
const [l, i] = ye(null), s =
|
|
725
|
+
const [l, i] = ye(null), s = zt(a), d = w(() => {
|
|
726
726
|
var b;
|
|
727
727
|
return t ? ((b = e.find((p) => p.value === t)) == null ? void 0 : b.label) ?? "" : "";
|
|
728
728
|
}, [
|
|
@@ -765,10 +765,10 @@ const Dt = ({ readOnly: e, disabled: t } = {}) => {
|
|
|
765
765
|
onInputKeyDown: I
|
|
766
766
|
};
|
|
767
767
|
}, Y = ({ children: e }) => {
|
|
768
|
-
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, options: I } = P(), { labelId: L } = T(), { t: b } =
|
|
769
|
-
value:
|
|
770
|
-
label: b(`locale-dataset.countries.${he[
|
|
771
|
-
}), x), []).sort((x,
|
|
768
|
+
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, options: I } = P(), { labelId: L } = T(), { t: b } = Me(), { language: p } = yt(), y = w(() => (I || []).reduce((x, q) => (q.value && he.hasOwnProperty(q.value) && x.push({
|
|
769
|
+
value: q.value,
|
|
770
|
+
label: b(`locale-dataset.countries.${he[q.value].toUpperCase()}`)
|
|
771
|
+
}), x), []).sort((x, q) => x.label.localeCompare(q.label, p)), [
|
|
772
772
|
I,
|
|
773
773
|
b,
|
|
774
774
|
p
|
|
@@ -782,10 +782,10 @@ const Dt = ({ readOnly: e, disabled: t } = {}) => {
|
|
|
782
782
|
commit: N,
|
|
783
783
|
clear: F,
|
|
784
784
|
onBlur: d
|
|
785
|
-
}), R = be("country"),
|
|
785
|
+
}), R = be("country"), M = E(e, Y.Label), _ = E(e, Y.Control), O = E(e, Y.Options), v = E(e, Y.Description), pe = E(e, Y.Error);
|
|
786
786
|
return /* @__PURE__ */ n.createElement(u, {
|
|
787
787
|
fieldId: t,
|
|
788
|
-
renderLabel: () => h(
|
|
788
|
+
renderLabel: () => h(M, {
|
|
789
789
|
label: R
|
|
790
790
|
}),
|
|
791
791
|
renderInput: () => /* @__PURE__ */ n.createElement(Re, {
|
|
@@ -835,8 +835,8 @@ const Dt = ({ readOnly: e, disabled: t } = {}) => {
|
|
|
835
835
|
}, e);
|
|
836
836
|
Fe.Input = Pn;
|
|
837
837
|
Fe.Trigger = Tn;
|
|
838
|
-
const
|
|
839
|
-
const { options: r } = o, a = E(e,
|
|
838
|
+
const je = ({ children: e, className: t, ...o }) => {
|
|
839
|
+
const { options: r } = o, a = E(e, je.Option);
|
|
840
840
|
return /* @__PURE__ */ n.createElement(Ae, {
|
|
841
841
|
className: t,
|
|
842
842
|
containerPadding: 0,
|
|
@@ -846,7 +846,7 @@ const He = ({ children: e, className: t, ...o }) => {
|
|
|
846
846
|
value: l.value,
|
|
847
847
|
label: l.label
|
|
848
848
|
}))));
|
|
849
|
-
},
|
|
849
|
+
}, Mn = ({ className: e, ...t }) => {
|
|
850
850
|
const { value: o, label: r } = t;
|
|
851
851
|
return /* @__PURE__ */ n.createElement(Pe, {
|
|
852
852
|
className: e,
|
|
@@ -854,16 +854,16 @@ const He = ({ children: e, className: t, ...o }) => {
|
|
|
854
854
|
textValue: r
|
|
855
855
|
}, r);
|
|
856
856
|
};
|
|
857
|
-
|
|
857
|
+
je.Option = Mn;
|
|
858
858
|
Y.Label = ue;
|
|
859
859
|
Y.Control = Fe;
|
|
860
|
-
Y.Options =
|
|
860
|
+
Y.Options = je;
|
|
861
861
|
Y.Description = ce;
|
|
862
862
|
Y.Error = de;
|
|
863
|
-
const
|
|
863
|
+
const qn = /(\d{7})|(\d{3}-\d{4})/;
|
|
864
864
|
function wn(e) {
|
|
865
865
|
var t;
|
|
866
|
-
return (t = e.match(
|
|
866
|
+
return (t = e.match(qn)) == null ? void 0 : t[0];
|
|
867
867
|
}
|
|
868
868
|
function xn({ isAutocompleteEnabled: e }) {
|
|
869
869
|
const t = B({
|
|
@@ -898,7 +898,7 @@ function xn({ isAutocompleteEnabled: e }) {
|
|
|
898
898
|
};
|
|
899
899
|
}
|
|
900
900
|
const $ = ({ children: e }) => {
|
|
901
|
-
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: I } = P(), { labelId: L } = T(), b = Ne(), { autocompleteEnabled: p } = Le(), y = !!(b && he[b] === he.JP), N = (I || p) && y, F = be("zipCode"), S = E(e, $.Label), g = E(e, $.Control), R = E(e, $.Options),
|
|
901
|
+
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: I } = P(), { labelId: L } = T(), b = Ne(), { autocompleteEnabled: p } = Le(), y = !!(b && he[b] === he.JP), N = (I || p) && y, F = be("zipCode"), S = E(e, $.Label), g = E(e, $.Control), R = E(e, $.Options), M = E(e, $.Description), _ = E(e, $.Error);
|
|
902
902
|
return N ? /* @__PURE__ */ n.createElement(u, {
|
|
903
903
|
fieldId: t,
|
|
904
904
|
renderLabel: () => h(S, {
|
|
@@ -914,7 +914,7 @@ const $ = ({ children: e }) => {
|
|
|
914
914
|
onBlur: d,
|
|
915
915
|
onFocus: m
|
|
916
916
|
}, g, R),
|
|
917
|
-
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _,
|
|
917
|
+
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _, M)
|
|
918
918
|
}) : /* @__PURE__ */ n.createElement(u, {
|
|
919
919
|
fieldId: t,
|
|
920
920
|
renderLabel: () => h(S, {
|
|
@@ -931,7 +931,7 @@ const $ = ({ children: e }) => {
|
|
|
931
931
|
onBlur: d,
|
|
932
932
|
onFocus: m
|
|
933
933
|
}, g),
|
|
934
|
-
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _,
|
|
934
|
+
renderDescription: () => /* @__PURE__ */ n.createElement(n.Fragment, null, _, M)
|
|
935
935
|
});
|
|
936
936
|
}, Bn = ({ children: e, value: t, onChange: o, disabled: r, readOnly: a, required: l, hasError: i, onBlur: s, onFocus: d }) => {
|
|
937
937
|
const { labelId: m } = T(), { onAddressSelect: u } = Le(), [I, L] = ye(!1), { searchByPostalCode: b } = xn({
|
|
@@ -963,7 +963,7 @@ const $ = ({ children: e }) => {
|
|
|
963
963
|
L(!0), d == null || d();
|
|
964
964
|
}, [
|
|
965
965
|
d
|
|
966
|
-
]),
|
|
966
|
+
]), M = E(e, $.Control), _ = E(e, $.Options);
|
|
967
967
|
return /* @__PURE__ */ n.createElement(Re, {
|
|
968
968
|
"aria-labelledby": m,
|
|
969
969
|
inputValue: t ?? "",
|
|
@@ -979,7 +979,7 @@ const $ = ({ children: e }) => {
|
|
|
979
979
|
allowsCustomValue: !0,
|
|
980
980
|
menuTrigger: "input",
|
|
981
981
|
items: N
|
|
982
|
-
}, h(
|
|
982
|
+
}, h(M, {
|
|
983
983
|
onFocus: R
|
|
984
984
|
}), h(_, {
|
|
985
985
|
options: N
|
|
@@ -1009,8 +1009,8 @@ const $ = ({ children: e }) => {
|
|
|
1009
1009
|
placeholder: r,
|
|
1010
1010
|
onFocus: i
|
|
1011
1011
|
});
|
|
1012
|
-
},
|
|
1013
|
-
const o = E(e,
|
|
1012
|
+
}, Ge = ({ children: e, className: t }) => {
|
|
1013
|
+
const o = E(e, Ge.Option);
|
|
1014
1014
|
return /* @__PURE__ */ n.createElement(Ae, {
|
|
1015
1015
|
className: t,
|
|
1016
1016
|
containerPadding: 0,
|
|
@@ -1029,11 +1029,11 @@ const $ = ({ children: e }) => {
|
|
|
1029
1029
|
textValue: r
|
|
1030
1030
|
}, r);
|
|
1031
1031
|
};
|
|
1032
|
-
|
|
1032
|
+
Ge.Option = $n;
|
|
1033
1033
|
Je.Input = kn;
|
|
1034
1034
|
$.Label = ue;
|
|
1035
1035
|
$.Control = Je;
|
|
1036
|
-
$.Options =
|
|
1036
|
+
$.Options = Ge;
|
|
1037
1037
|
$.Description = ce;
|
|
1038
1038
|
$.Error = de;
|
|
1039
1039
|
const U = ({ children: e }) => {
|
|
@@ -1104,7 +1104,7 @@ const U = ({ children: e }) => {
|
|
|
1104
1104
|
u,
|
|
1105
1105
|
y,
|
|
1106
1106
|
L
|
|
1107
|
-
]),
|
|
1107
|
+
]), M = D(() => {
|
|
1108
1108
|
y(), s == null || s();
|
|
1109
1109
|
}, [
|
|
1110
1110
|
s,
|
|
@@ -1124,7 +1124,7 @@ const U = ({ children: e }) => {
|
|
|
1124
1124
|
isReadOnly: a,
|
|
1125
1125
|
isRequired: l,
|
|
1126
1126
|
isInvalid: i,
|
|
1127
|
-
onBlur:
|
|
1127
|
+
onBlur: M,
|
|
1128
1128
|
onFocus: _,
|
|
1129
1129
|
allowsCustomValue: !0,
|
|
1130
1130
|
menuTrigger: "input",
|
|
@@ -1149,8 +1149,8 @@ const U = ({ children: e }) => {
|
|
|
1149
1149
|
placeholder: r,
|
|
1150
1150
|
onFocus: i
|
|
1151
1151
|
});
|
|
1152
|
-
},
|
|
1153
|
-
const o = E(e,
|
|
1152
|
+
}, Qe = ({ children: e, className: t }) => {
|
|
1153
|
+
const o = E(e, Qe.Option);
|
|
1154
1154
|
return /* @__PURE__ */ n.createElement(Ae, {
|
|
1155
1155
|
className: t,
|
|
1156
1156
|
containerPadding: 0,
|
|
@@ -1169,10 +1169,10 @@ const U = ({ children: e }) => {
|
|
|
1169
1169
|
textValue: r
|
|
1170
1170
|
}, r);
|
|
1171
1171
|
};
|
|
1172
|
-
|
|
1172
|
+
Qe.Option = Vn;
|
|
1173
1173
|
U.Label = ue;
|
|
1174
1174
|
U.Input = Wn;
|
|
1175
|
-
U.Options =
|
|
1175
|
+
U.Options = Qe;
|
|
1176
1176
|
U.Description = ce;
|
|
1177
1177
|
U.Error = de;
|
|
1178
1178
|
const ae = ({ children: e }) => {
|
|
@@ -1212,13 +1212,13 @@ ae.Label = ue;
|
|
|
1212
1212
|
ae.Input = Kn;
|
|
1213
1213
|
ae.Description = ce;
|
|
1214
1214
|
ae.Error = de;
|
|
1215
|
-
const
|
|
1216
|
-
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: I } = T(), { t: L } =
|
|
1217
|
-
var
|
|
1218
|
-
return (Bt(((
|
|
1219
|
-
value:
|
|
1220
|
-
label: L(
|
|
1221
|
-
})).sort((
|
|
1215
|
+
const H = ({ children: e }) => {
|
|
1216
|
+
const { id: t, value: o, onChange: r, disabled: a, readOnly: l, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: I } = T(), { t: L } = Me(), b = Ne(), p = b ? he[b] : void 0, y = b && xt.getCountryByShortKey(b), N = w(() => {
|
|
1217
|
+
var q;
|
|
1218
|
+
return (Bt(((q = y == null ? void 0 : y.subdivisions) == null ? void 0 : q.list) || [], p) || []).map((j) => ({
|
|
1219
|
+
value: j.key,
|
|
1220
|
+
label: L(j.displayName)
|
|
1221
|
+
})).sort((j, A) => j.label.localeCompare(A.label));
|
|
1222
1222
|
}, [
|
|
1223
1223
|
p,
|
|
1224
1224
|
L,
|
|
@@ -1231,10 +1231,10 @@ const j = ({ children: e }) => {
|
|
|
1231
1231
|
commit: r,
|
|
1232
1232
|
clear: F,
|
|
1233
1233
|
onBlur: d
|
|
1234
|
-
}), R = be("subdivision"),
|
|
1234
|
+
}), R = be("subdivision"), M = E(e, H.Label), _ = E(e, H.Control), O = E(e, H.Options), v = E(e, H.Description), pe = E(e, H.Error);
|
|
1235
1235
|
return /* @__PURE__ */ n.createElement(u, {
|
|
1236
1236
|
fieldId: t,
|
|
1237
|
-
renderLabel: () => h(
|
|
1237
|
+
renderLabel: () => h(M, {
|
|
1238
1238
|
label: R
|
|
1239
1239
|
}),
|
|
1240
1240
|
renderInput: () => /* @__PURE__ */ n.createElement(Re, {
|
|
@@ -1279,11 +1279,11 @@ const j = ({ children: e }) => {
|
|
|
1279
1279
|
onClick: u,
|
|
1280
1280
|
onKeyDown: d
|
|
1281
1281
|
});
|
|
1282
|
-
},
|
|
1282
|
+
}, Hn = ({ children: e, className: t }) => /* @__PURE__ */ n.createElement(Nt, {
|
|
1283
1283
|
className: t
|
|
1284
1284
|
}, e);
|
|
1285
1285
|
Se.Input = Yn;
|
|
1286
|
-
Se.Trigger =
|
|
1286
|
+
Se.Trigger = Hn;
|
|
1287
1287
|
const Xe = ({ children: e, className: t, ...o }) => {
|
|
1288
1288
|
const { options: r } = o, a = E(e, Xe.Option);
|
|
1289
1289
|
return /* @__PURE__ */ n.createElement(Ae, {
|
|
@@ -1295,7 +1295,7 @@ const Xe = ({ children: e, className: t, ...o }) => {
|
|
|
1295
1295
|
value: l.value,
|
|
1296
1296
|
label: l.label
|
|
1297
1297
|
}))));
|
|
1298
|
-
},
|
|
1298
|
+
}, jn = ({ className: e, ...t }) => {
|
|
1299
1299
|
const { value: o, label: r } = t;
|
|
1300
1300
|
return /* @__PURE__ */ n.createElement(Pe, {
|
|
1301
1301
|
className: e,
|
|
@@ -1303,18 +1303,18 @@ const Xe = ({ children: e, className: t, ...o }) => {
|
|
|
1303
1303
|
textValue: r
|
|
1304
1304
|
}, r);
|
|
1305
1305
|
};
|
|
1306
|
-
Xe.Option =
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
const Jn = () => me("country"),
|
|
1306
|
+
Xe.Option = jn;
|
|
1307
|
+
H.Label = ue;
|
|
1308
|
+
H.Control = Se;
|
|
1309
|
+
H.Options = Xe;
|
|
1310
|
+
H.Description = ce;
|
|
1311
|
+
H.Error = de;
|
|
1312
|
+
const Jn = () => me("country"), Gn = () => me("subdivision"), Qn = () => me("city"), Xn = () => me("addressLine"), zn = () => me("addressLine2"), Zn = () => me("postalCode"), er = () => me("streetName"), tr = () => me("streetNumber"), nr = () => me("apartment"), rr = {
|
|
1313
1313
|
[K.MLA_COUNTRY]: Jn,
|
|
1314
|
-
[K.MLA_SUBDIVISION]:
|
|
1315
|
-
[K.MLA_CITY]:
|
|
1314
|
+
[K.MLA_SUBDIVISION]: Gn,
|
|
1315
|
+
[K.MLA_CITY]: Qn,
|
|
1316
1316
|
[K.MLA_ADDRESS_LINE]: Xn,
|
|
1317
|
-
[K.MLA_ADDRESS_LINE_2]:
|
|
1317
|
+
[K.MLA_ADDRESS_LINE_2]: zn,
|
|
1318
1318
|
[K.MLA_POSTAL_CODE]: Zn,
|
|
1319
1319
|
[K.MLA_STREET_NAME]: er,
|
|
1320
1320
|
[K.MLA_STREET_NUMBER]: tr,
|
|
@@ -1325,7 +1325,7 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1325
1325
|
...rr
|
|
1326
1326
|
}), [
|
|
1327
1327
|
S
|
|
1328
|
-
]), { isExperimentEnabled: R } = bt(),
|
|
1328
|
+
]), { isExperimentEnabled: R } = bt(), M = R(ft.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = $t(), O = Ut(), v = Ct(), pe = w(() => ({
|
|
1329
1329
|
...v,
|
|
1330
1330
|
actions: {
|
|
1331
1331
|
predict: Kt,
|
|
@@ -1335,7 +1335,7 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1335
1335
|
}
|
|
1336
1336
|
}), [
|
|
1337
1337
|
v
|
|
1338
|
-
]), { form: x, isMultilineAddressField:
|
|
1338
|
+
]), { form: x, isMultilineAddressField: q } = pn({
|
|
1339
1339
|
id: t,
|
|
1340
1340
|
target: L,
|
|
1341
1341
|
fieldType: y,
|
|
@@ -1344,35 +1344,35 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1344
1344
|
fieldSettings: m,
|
|
1345
1345
|
validation: I,
|
|
1346
1346
|
required: p
|
|
1347
|
-
}),
|
|
1347
|
+
}), j = D((W) => {
|
|
1348
1348
|
if (!r)
|
|
1349
1349
|
return;
|
|
1350
|
-
const
|
|
1351
|
-
...
|
|
1352
|
-
[Ie.COUNTRY]:
|
|
1350
|
+
const G = en(W, q, M), Te = {
|
|
1351
|
+
...G,
|
|
1352
|
+
[Ie.COUNTRY]: G[Ie.COUNTRY] ?? r[Ie.COUNTRY]
|
|
1353
1353
|
};
|
|
1354
1354
|
a == null || a(Te);
|
|
1355
1355
|
}, [
|
|
1356
1356
|
a,
|
|
1357
1357
|
r,
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
]), A = D((W,
|
|
1361
|
-
if (
|
|
1358
|
+
q,
|
|
1359
|
+
M
|
|
1360
|
+
]), A = D((W, G) => {
|
|
1361
|
+
if (q && W === Ie.COUNTRY && (r == null ? void 0 : r[W]) !== G) {
|
|
1362
1362
|
a == null || a({
|
|
1363
|
-
[Ie.COUNTRY]:
|
|
1363
|
+
[Ie.COUNTRY]: G
|
|
1364
1364
|
});
|
|
1365
1365
|
return;
|
|
1366
1366
|
}
|
|
1367
1367
|
a == null || a({
|
|
1368
1368
|
...r,
|
|
1369
|
-
[W]:
|
|
1369
|
+
[W]: G
|
|
1370
1370
|
});
|
|
1371
1371
|
}, [
|
|
1372
1372
|
a,
|
|
1373
1373
|
r,
|
|
1374
|
-
|
|
1375
|
-
]), J = D(async (W) => _(
|
|
1374
|
+
q
|
|
1375
|
+
]), J = D(async (W) => _(q ? [
|
|
1376
1376
|
...W,
|
|
1377
1377
|
{
|
|
1378
1378
|
path: `${L}/${Ie.COUNTRY}`,
|
|
@@ -1382,17 +1382,17 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1382
1382
|
r,
|
|
1383
1383
|
L,
|
|
1384
1384
|
_,
|
|
1385
|
-
|
|
1385
|
+
q
|
|
1386
1386
|
]);
|
|
1387
1387
|
Yt(t, () => {
|
|
1388
1388
|
var Te;
|
|
1389
|
-
const W = s == null ? void 0 : s[0],
|
|
1390
|
-
return
|
|
1389
|
+
const W = s == null ? void 0 : s[0], G = (Te = x == null ? void 0 : x.fields) == null ? void 0 : Te.find((st) => "target" in st && st.target === (W == null ? void 0 : W.errorPath));
|
|
1390
|
+
return G == null ? void 0 : G.id;
|
|
1391
1391
|
});
|
|
1392
|
-
const Ee = E(e, c.Country), Oe = E(e, c.Subdivision),
|
|
1392
|
+
const Ee = E(e, c.Country), Oe = E(e, c.Subdivision), ze = E(e, c.City), Ze = E(e, c.AddressLine), et = E(e, c.AddressLine2), tt = E(e, c.PostalCode), nt = E(e, c.StreetName), rt = E(e, c.StreetNumber), ot = E(e, c.Apartment), At = w(() => ({
|
|
1393
1393
|
country: Ee,
|
|
1394
1394
|
subdivision: Oe,
|
|
1395
|
-
city:
|
|
1395
|
+
city: ze,
|
|
1396
1396
|
addressLine: Ze,
|
|
1397
1397
|
addressLine2: et,
|
|
1398
1398
|
postalCode: tt,
|
|
@@ -1402,7 +1402,7 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1402
1402
|
}), [
|
|
1403
1403
|
Ee,
|
|
1404
1404
|
Oe,
|
|
1405
|
-
|
|
1405
|
+
ze,
|
|
1406
1406
|
Ze,
|
|
1407
1407
|
et,
|
|
1408
1408
|
tt,
|
|
@@ -1416,7 +1416,7 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1416
1416
|
countryCode: r == null ? void 0 : r.country
|
|
1417
1417
|
}, /* @__PURE__ */ n.createElement(tn, {
|
|
1418
1418
|
autocompleteEnabled: b,
|
|
1419
|
-
onAddressSelect:
|
|
1419
|
+
onAddressSelect: j
|
|
1420
1420
|
}, /* @__PURE__ */ n.createElement(En, {
|
|
1421
1421
|
fields: At
|
|
1422
1422
|
}, /* @__PURE__ */ n.createElement("div", {
|
|
@@ -1427,10 +1427,10 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1427
1427
|
}), /* @__PURE__ */ n.createElement(_t, {
|
|
1428
1428
|
getContainer: () => N
|
|
1429
1429
|
}, /* @__PURE__ */ n.createElement("fieldset", {
|
|
1430
|
-
style:
|
|
1430
|
+
style: jt
|
|
1431
1431
|
}, /* @__PURE__ */ n.createElement("legend", {
|
|
1432
1432
|
style: Jt
|
|
1433
|
-
}, u), /* @__PURE__ */ n.createElement(
|
|
1433
|
+
}, u), /* @__PURE__ */ n.createElement(Ht, {
|
|
1434
1434
|
formSchema: O,
|
|
1435
1435
|
form: x,
|
|
1436
1436
|
values: r ?? or,
|
|
@@ -1444,7 +1444,7 @@ const Jn = () => me("country"), zn = () => me("subdivision"), Gn = () => me("cit
|
|
|
1444
1444
|
}))))))) : null;
|
|
1445
1445
|
};
|
|
1446
1446
|
c.Country = Y;
|
|
1447
|
-
c.Subdivision =
|
|
1447
|
+
c.Subdivision = H;
|
|
1448
1448
|
c.City = se;
|
|
1449
1449
|
c.AddressLine = k;
|
|
1450
1450
|
c.AddressLine2 = re;
|
|
@@ -1457,7 +1457,7 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1457
1457
|
comboControl: lr,
|
|
1458
1458
|
comboTrigger: ir
|
|
1459
1459
|
}, Fr = () => /* @__PURE__ */ n.createElement(c, null, /* @__PURE__ */ n.createElement(c.Country, null, /* @__PURE__ */ n.createElement(c.Country.Label, {
|
|
1460
|
-
className: C(
|
|
1460
|
+
className: C(z, f.label)
|
|
1461
1461
|
}, /* @__PURE__ */ n.createElement(c.Country.Label.Required, {
|
|
1462
1462
|
className: C(Z, f.requiredMark)
|
|
1463
1463
|
})), /* @__PURE__ */ n.createElement(c.Country.Control, {
|
|
@@ -1476,11 +1476,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1476
1476
|
className: C(te, f.error)
|
|
1477
1477
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Country.Description, {
|
|
1478
1478
|
className: C(ne, f.description)
|
|
1479
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1479
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1480
1480
|
content: e,
|
|
1481
1481
|
locale: t
|
|
1482
1482
|
}))), /* @__PURE__ */ n.createElement(c.AddressLine, null, /* @__PURE__ */ n.createElement(c.AddressLine.Label, {
|
|
1483
|
-
className: C(
|
|
1483
|
+
className: C(z, f.label)
|
|
1484
1484
|
}, /* @__PURE__ */ n.createElement(c.AddressLine.Label.Required, {
|
|
1485
1485
|
className: C(Z, f.requiredMark)
|
|
1486
1486
|
})), /* @__PURE__ */ n.createElement(c.AddressLine.Input, {
|
|
@@ -1493,11 +1493,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1493
1493
|
className: C(te, f.error)
|
|
1494
1494
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine.Description, {
|
|
1495
1495
|
className: C(ne, f.description)
|
|
1496
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1496
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1497
1497
|
content: e,
|
|
1498
1498
|
locale: t
|
|
1499
1499
|
}))), /* @__PURE__ */ n.createElement(c.AddressLine2, null, /* @__PURE__ */ n.createElement(c.AddressLine2.Label, {
|
|
1500
|
-
className: C(
|
|
1500
|
+
className: C(z, f.label)
|
|
1501
1501
|
}, /* @__PURE__ */ n.createElement(c.AddressLine2.Label.Required, {
|
|
1502
1502
|
className: C(Z, f.requiredMark)
|
|
1503
1503
|
})), /* @__PURE__ */ n.createElement(c.AddressLine2.Input, {
|
|
@@ -1506,11 +1506,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1506
1506
|
className: C(te, f.error)
|
|
1507
1507
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ n.createElement(c.AddressLine2.Description, {
|
|
1508
1508
|
className: C(ne, f.description)
|
|
1509
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1509
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1510
1510
|
content: e,
|
|
1511
1511
|
locale: t
|
|
1512
1512
|
}))), /* @__PURE__ */ n.createElement(c.City, null, /* @__PURE__ */ n.createElement(c.City.Label, {
|
|
1513
|
-
className: C(
|
|
1513
|
+
className: C(z, f.label)
|
|
1514
1514
|
}, /* @__PURE__ */ n.createElement(c.City.Label.Required, {
|
|
1515
1515
|
className: C(Z, f.requiredMark)
|
|
1516
1516
|
})), /* @__PURE__ */ n.createElement(c.City.Input, {
|
|
@@ -1519,11 +1519,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1519
1519
|
className: C(te, f.error)
|
|
1520
1520
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.City.Error.Text, null)), /* @__PURE__ */ n.createElement(c.City.Description, {
|
|
1521
1521
|
className: C(ne, f.description)
|
|
1522
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1522
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1523
1523
|
content: e,
|
|
1524
1524
|
locale: t
|
|
1525
1525
|
}))), /* @__PURE__ */ n.createElement(c.PostalCode, null, /* @__PURE__ */ n.createElement(c.PostalCode.Label, {
|
|
1526
|
-
className: C(
|
|
1526
|
+
className: C(z, f.label)
|
|
1527
1527
|
}, /* @__PURE__ */ n.createElement(c.PostalCode.Label.Required, {
|
|
1528
1528
|
className: C(Z, f.requiredMark)
|
|
1529
1529
|
})), /* @__PURE__ */ n.createElement(c.PostalCode.Control, {
|
|
@@ -1538,11 +1538,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1538
1538
|
className: C(te, f.error)
|
|
1539
1539
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ n.createElement(c.PostalCode.Description, {
|
|
1540
1540
|
className: C(ne, f.description)
|
|
1541
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1541
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1542
1542
|
content: e,
|
|
1543
1543
|
locale: t
|
|
1544
1544
|
}))), /* @__PURE__ */ n.createElement(c.Subdivision, null, /* @__PURE__ */ n.createElement(c.Subdivision.Label, {
|
|
1545
|
-
className: C(
|
|
1545
|
+
className: C(z, f.label)
|
|
1546
1546
|
}, /* @__PURE__ */ n.createElement(c.Subdivision.Label.Required, {
|
|
1547
1547
|
className: C(Z, f.requiredMark)
|
|
1548
1548
|
})), /* @__PURE__ */ n.createElement(c.Subdivision.Control, {
|
|
@@ -1561,11 +1561,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1561
1561
|
className: C(te, f.error)
|
|
1562
1562
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Subdivision.Description, {
|
|
1563
1563
|
className: C(ne, f.description)
|
|
1564
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1564
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1565
1565
|
content: e,
|
|
1566
1566
|
locale: t
|
|
1567
1567
|
}))), /* @__PURE__ */ n.createElement(c.StreetName, null, /* @__PURE__ */ n.createElement(c.StreetName.Label, {
|
|
1568
|
-
className: C(
|
|
1568
|
+
className: C(z, f.label)
|
|
1569
1569
|
}, /* @__PURE__ */ n.createElement(c.StreetName.Label.Required, {
|
|
1570
1570
|
className: C(Z, f.requiredMark)
|
|
1571
1571
|
})), /* @__PURE__ */ n.createElement(c.StreetName.Input, {
|
|
@@ -1578,11 +1578,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1578
1578
|
className: C(te, f.error)
|
|
1579
1579
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetName.Description, {
|
|
1580
1580
|
className: C(ne, f.description)
|
|
1581
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1581
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1582
1582
|
content: e,
|
|
1583
1583
|
locale: t
|
|
1584
1584
|
}))), /* @__PURE__ */ n.createElement(c.StreetNumber, null, /* @__PURE__ */ n.createElement(c.StreetNumber.Label, {
|
|
1585
|
-
className: C(
|
|
1585
|
+
className: C(z, f.label)
|
|
1586
1586
|
}, /* @__PURE__ */ n.createElement(c.StreetNumber.Label.Required, {
|
|
1587
1587
|
className: C(Z, f.requiredMark)
|
|
1588
1588
|
})), /* @__PURE__ */ n.createElement(c.StreetNumber.Input, {
|
|
@@ -1591,11 +1591,11 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1591
1591
|
className: C(te, f.error)
|
|
1592
1592
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ n.createElement(c.StreetNumber.Description, {
|
|
1593
1593
|
className: C(ne, f.description)
|
|
1594
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1594
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1595
1595
|
content: e,
|
|
1596
1596
|
locale: t
|
|
1597
1597
|
}))), /* @__PURE__ */ n.createElement(c.Apartment, null, /* @__PURE__ */ n.createElement(c.Apartment.Label, {
|
|
1598
|
-
className: C(
|
|
1598
|
+
className: C(z, f.label)
|
|
1599
1599
|
}, /* @__PURE__ */ n.createElement(c.Apartment.Label.Required, {
|
|
1600
1600
|
className: C(Z, f.requiredMark)
|
|
1601
1601
|
})), /* @__PURE__ */ n.createElement(c.Apartment.Input, {
|
|
@@ -1604,7 +1604,7 @@ const ar = "_postalCodeControl_1tire_1", lr = "_comboControl_1tire_5", ir = "_co
|
|
|
1604
1604
|
className: C(te, f.error)
|
|
1605
1605
|
}, /* @__PURE__ */ n.createElement(X, null), /* @__PURE__ */ n.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ n.createElement(c.Apartment.Description, {
|
|
1606
1606
|
className: C(ne, f.description)
|
|
1607
|
-
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(
|
|
1607
|
+
}, ({ content: e, locale: t }) => /* @__PURE__ */ n.createElement(Q, {
|
|
1608
1608
|
content: e,
|
|
1609
1609
|
locale: t
|
|
1610
1610
|
}))));
|