@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
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { RicosViewer as X } from "@wix/ricos/viewer";
|
|
2
2
|
import L from "classnames";
|
|
3
|
-
import r, { useMemo as
|
|
3
|
+
import r, { useMemo as q, createContext as We, useContext as Ce, useState as be, useRef as x, useCallback as R, useEffect as Pe } from "react";
|
|
4
4
|
import { UNSAFE_PortalProvider as Pt } from "react-aria";
|
|
5
|
-
import {
|
|
5
|
+
import { b0 as yt, d as Ct, aX as Tt, aZ as It, aA as Mt, aB as wt, au as qt, az as V, F as K, bf as Te, aQ as lt, b5 as P, b2 as T, b7 as ae, b1 as Lt, aF as xt, C as ve, aO as Bt, aS as kt, bc as $t, b6 as Ut, bb as Wt, aV as Vt, aK as Kt, aU as Yt, b8 as Ht, aa as jt, H as z, T as Q, t as it, J as ge, u as Z, p as ee } from "./form-0jt4L5xo.js";
|
|
6
6
|
import { f as E, a as F } from "./find-child-C60k4CxG.js";
|
|
7
7
|
import { F as Jt, V as Gt } from "./headless-styles-CmcyA_pi.js";
|
|
8
|
-
import { u as Xt } from "./use-is-forced-open-dropdown-
|
|
9
|
-
import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as
|
|
10
|
-
import { D as ie, E as ce } from "./field-error-headless-
|
|
11
|
-
import { L as de } from "./field-label-headless-
|
|
12
|
-
import { e as zt, c as Qt, a as Zt, r as Ot } from "./isObjectLike-
|
|
8
|
+
import { u as Xt } from "./use-is-forced-open-dropdown-r5G_sZsO.js";
|
|
9
|
+
import { TextField as fe, Input as le, ComboBoxStateContext as Ve, ComboBox as Se, Popover as De, ListBox as Re, ListBoxItem as Ae, Group as Nt, Button as gt } from "react-aria-components";
|
|
10
|
+
import { D as ie, E as ce } from "./field-error-headless-tsg9FQ-_.js";
|
|
11
|
+
import { L as de } from "./field-label-headless-CB8dEat8.js";
|
|
12
|
+
import { e as zt, c as Qt, a as Zt, r as Ot } from "./isObjectLike-DQbx8r1c.js";
|
|
13
13
|
import { u as en } from "./use-invoke-callback-UH73A_J3.js";
|
|
14
|
-
import { C as
|
|
15
|
-
import { E as
|
|
14
|
+
import { C as ct } from "./chevron-down-icon-CcpVm6B-.js";
|
|
15
|
+
import { E as te } from "./error-icon-hZxQ6DEy.js";
|
|
16
16
|
import { H as Me } from "./custom-focus-class-_483Pkwp.js";
|
|
17
17
|
import { s as C } from "./field-rac.module-B4l_0KRU.js";
|
|
18
|
-
import {
|
|
19
|
-
import { u as
|
|
20
|
-
import { u as nn } from "./use-text-input-class-name-LQ5S-NLh.js";
|
|
18
|
+
import { u as tn } from "./use-dropdown-option-class-name-McG3ayOT.js";
|
|
19
|
+
import { u as nn } from "./use-text-input-class-name-SnurFqAr.js";
|
|
21
20
|
const rn = (e, t, o) => {
|
|
22
21
|
var l, a, i, s;
|
|
23
22
|
const n = (l = e.steps) == null ? void 0 : l.map((d) => {
|
|
@@ -52,11 +51,11 @@ function on(e, t, o = !1) {
|
|
|
52
51
|
const { country: n, subdivision: l, city: a, addressLine: i, streetAddress: s, addressLine2: d, postalCode: m } = e, u = {};
|
|
53
52
|
return t ? (n && (u.country = n), l && (u.subdivision = l), a && (u.city = a), i ? u.addressLine = i : s != null && s.formattedAddressLine && (u.addressLine = s == null ? void 0 : s.formattedAddressLine), d && (u.addressLine = d), m && (u.postalCode = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.streetName = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.streetName = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.streetNumber = s.number)) : (n && (u.country = n), l && (u.subdivision = l), a && (u.city = a), i ? u.address_line = i : s != null && s.formattedAddressLine && (u.address_line = s == null ? void 0 : s.formattedAddressLine), d && (u.address_line = d), m && (u.postal_code = m), s != null && s.apt && (u.apartment = s == null ? void 0 : s.apt), s != null && s.name ? u.street_name = s == null ? void 0 : s.name : o && (s != null && s.formattedAddressLine) && (u.street_name = s == null ? void 0 : s.formattedAddressLine), s != null && s.number && (u.street_number = s.number)), u;
|
|
54
53
|
}
|
|
55
|
-
const vt = /* @__PURE__ */
|
|
54
|
+
const vt = /* @__PURE__ */ We({
|
|
56
55
|
onAddressSelect: () => {
|
|
57
56
|
}
|
|
58
57
|
}), sn = ({ children: e, onAddressSelect: t, autocompleteEnabled: o }) => {
|
|
59
|
-
const n =
|
|
58
|
+
const n = q(() => ({
|
|
60
59
|
onAddressSelect: t,
|
|
61
60
|
autocompleteEnabled: o
|
|
62
61
|
}), [
|
|
@@ -70,8 +69,8 @@ const vt = /* @__PURE__ */ Ue({
|
|
|
70
69
|
function Ie() {
|
|
71
70
|
return Ce(vt);
|
|
72
71
|
}
|
|
73
|
-
const Ft = /* @__PURE__ */
|
|
74
|
-
const o =
|
|
72
|
+
const Ft = /* @__PURE__ */ We(void 0), an = ({ children: e, countryCode: t }) => {
|
|
73
|
+
const o = q(() => ({
|
|
75
74
|
countryCode: t
|
|
76
75
|
}), [
|
|
77
76
|
t
|
|
@@ -84,7 +83,7 @@ function Le() {
|
|
|
84
83
|
const e = Ce(Ft);
|
|
85
84
|
return e == null ? void 0 : e.countryCode;
|
|
86
85
|
}
|
|
87
|
-
function
|
|
86
|
+
function we(e) {
|
|
88
87
|
return e != null;
|
|
89
88
|
}
|
|
90
89
|
function ln(e, t, o) {
|
|
@@ -98,10 +97,10 @@ function ln(e, t, o) {
|
|
|
98
97
|
...n.view,
|
|
99
98
|
...a
|
|
100
99
|
},
|
|
101
|
-
...
|
|
100
|
+
...we(l) && {
|
|
102
101
|
hidden: !l
|
|
103
102
|
},
|
|
104
|
-
...
|
|
103
|
+
...we(i) && we(n.validation) && {
|
|
105
104
|
validation: {
|
|
106
105
|
...n.validation,
|
|
107
106
|
required: i
|
|
@@ -178,29 +177,29 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
178
177
|
street_number: V(),
|
|
179
178
|
apartment: V()
|
|
180
179
|
}), yn = ({ id: e, target: t, fieldType: o, form: n, country: l, fieldSettings: a, validation: i, required: s }) => {
|
|
181
|
-
const [d] = be(fn), { isExperimentEnabled: m } = yt(), u = m(Ct.USE_FIELDS_V2), { getCountryAddressForm: y } = Tt(), { isMobile: I, breakpoint: b } = It(), p = y(l), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N =
|
|
180
|
+
const [d] = be(fn), { isExperimentEnabled: m } = yt(), u = m(Ct.USE_FIELDS_V2), { getCountryAddressForm: y } = Tt(), { isMobile: I, breakpoint: b } = It(), p = y(l), f = o === K.MULTILINE_ADDRESS || o === K.BOOKINGS_ADDRESS, N = q(() => {
|
|
182
181
|
var O;
|
|
183
182
|
return Mt(s, (O = i == null ? void 0 : i.predefined) == null ? void 0 : O.multilineAddressOptions);
|
|
184
183
|
}, [
|
|
185
184
|
i,
|
|
186
185
|
s
|
|
187
|
-
]),
|
|
186
|
+
]), D = q(() => wt(), []);
|
|
188
187
|
return {
|
|
189
|
-
form:
|
|
188
|
+
form: q(() => {
|
|
190
189
|
var _, g;
|
|
191
190
|
if (!f || !p)
|
|
192
191
|
return n && {
|
|
193
192
|
...n,
|
|
194
193
|
fields: cn(n.fields, d)
|
|
195
194
|
};
|
|
196
|
-
const O =
|
|
195
|
+
const O = qt({
|
|
197
196
|
useFieldsV2: u,
|
|
198
197
|
path: t,
|
|
199
198
|
parentId: e,
|
|
200
199
|
includeHiddenFields: !0,
|
|
201
200
|
isMobile: I,
|
|
202
201
|
breakpoint: b,
|
|
203
|
-
form: ln(rn(p, N,
|
|
202
|
+
form: ln(rn(p, N, D), a, (g = (_ = i == null ? void 0 : i.predefined) == null ? void 0 : _.multilineAddressOptions) == null ? void 0 : g.fields)
|
|
204
203
|
});
|
|
205
204
|
if (!O.fields.some((v) => v.properties.hidden))
|
|
206
205
|
return O;
|
|
@@ -217,7 +216,7 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
217
216
|
i,
|
|
218
217
|
t,
|
|
219
218
|
N,
|
|
220
|
-
|
|
219
|
+
D,
|
|
221
220
|
f,
|
|
222
221
|
u,
|
|
223
222
|
e,
|
|
@@ -226,18 +225,18 @@ const cn = (e, t) => e.map((o) => ({
|
|
|
226
225
|
]),
|
|
227
226
|
isMultilineAddressField: f
|
|
228
227
|
};
|
|
229
|
-
},
|
|
230
|
-
const o =
|
|
228
|
+
}, St = /* @__PURE__ */ We(void 0), Cn = ({ children: e, fields: t }) => {
|
|
229
|
+
const o = q(() => ({
|
|
231
230
|
fields: t
|
|
232
231
|
}), [
|
|
233
232
|
t
|
|
234
233
|
]);
|
|
235
|
-
return /* @__PURE__ */ r.createElement(
|
|
234
|
+
return /* @__PURE__ */ r.createElement(St.Provider, {
|
|
236
235
|
value: o
|
|
237
236
|
}, e);
|
|
238
237
|
};
|
|
239
238
|
function ue(e) {
|
|
240
|
-
const t = Ce(
|
|
239
|
+
const t = Ce(St);
|
|
241
240
|
if (!t)
|
|
242
241
|
throw new Error("useAddressFields must be used within AddressFieldsProvider");
|
|
243
242
|
return t.fields[e];
|
|
@@ -285,7 +284,7 @@ ne.Description = ie;
|
|
|
285
284
|
ne.Error = ce;
|
|
286
285
|
const Ke = ({ enabled: e }) => {
|
|
287
286
|
const { actions: t } = Lt(), [o, n] = be(V()), l = R(() => n(V()), []);
|
|
288
|
-
return
|
|
287
|
+
return q(() => {
|
|
289
288
|
const { predict: a, getPlace: i, searchByPostalCode: s } = t ?? {};
|
|
290
289
|
if (!(!e || !a || !i || !s))
|
|
291
290
|
return {
|
|
@@ -310,14 +309,14 @@ const Ke = ({ enabled: e }) => {
|
|
|
310
309
|
l
|
|
311
310
|
]);
|
|
312
311
|
};
|
|
313
|
-
var
|
|
312
|
+
var qe, dt;
|
|
314
313
|
function Ln() {
|
|
315
|
-
if (dt) return
|
|
314
|
+
if (dt) return qe;
|
|
316
315
|
dt = 1;
|
|
317
316
|
var e = zt(), t = function() {
|
|
318
317
|
return e.Date.now();
|
|
319
318
|
};
|
|
320
|
-
return
|
|
319
|
+
return qe = t, qe;
|
|
321
320
|
}
|
|
322
321
|
var xe, ut;
|
|
323
322
|
function Nn() {
|
|
@@ -373,39 +372,39 @@ function vn() {
|
|
|
373
372
|
}
|
|
374
373
|
return $e = d, $e;
|
|
375
374
|
}
|
|
376
|
-
var
|
|
375
|
+
var Ue, bt;
|
|
377
376
|
function Fn() {
|
|
378
|
-
if (bt) return
|
|
377
|
+
if (bt) return Ue;
|
|
379
378
|
bt = 1;
|
|
380
379
|
var e = Ot(), t = Ln(), o = vn(), n = "Expected a function", l = Math.max, a = Math.min;
|
|
381
380
|
function i(s, d, m) {
|
|
382
|
-
var u, y, I, b, p, f, N = 0,
|
|
381
|
+
var u, y, I, b, p, f, N = 0, D = !1, h = !1, O = !0;
|
|
383
382
|
if (typeof s != "function")
|
|
384
383
|
throw new TypeError(n);
|
|
385
|
-
d = o(d) || 0, e(m) && (
|
|
386
|
-
function A(
|
|
384
|
+
d = o(d) || 0, e(m) && (D = !!m.leading, h = "maxWait" in m, I = h ? l(o(m.maxWait) || 0, d) : I, O = "trailing" in m ? !!m.trailing : O);
|
|
385
|
+
function A(S) {
|
|
387
386
|
var J = u, Ee = y;
|
|
388
|
-
return u = y = void 0, N =
|
|
387
|
+
return u = y = void 0, N = S, b = s.apply(Ee, J), b;
|
|
389
388
|
}
|
|
390
|
-
function M(
|
|
391
|
-
return N =
|
|
389
|
+
function M(S) {
|
|
390
|
+
return N = S, p = setTimeout(v, d), D ? A(S) : b;
|
|
392
391
|
}
|
|
393
|
-
function _(
|
|
394
|
-
var J =
|
|
392
|
+
function _(S) {
|
|
393
|
+
var J = S - f, Ee = S - N, Ne = d - J;
|
|
395
394
|
return h ? a(Ne, I - Ee) : Ne;
|
|
396
395
|
}
|
|
397
|
-
function g(
|
|
398
|
-
var J =
|
|
396
|
+
function g(S) {
|
|
397
|
+
var J = S - f, Ee = S - N;
|
|
399
398
|
return f === void 0 || J >= d || J < 0 || h && Ee >= I;
|
|
400
399
|
}
|
|
401
400
|
function v() {
|
|
402
|
-
var
|
|
403
|
-
if (g(
|
|
404
|
-
return me(
|
|
405
|
-
p = setTimeout(v, _(
|
|
401
|
+
var S = t();
|
|
402
|
+
if (g(S))
|
|
403
|
+
return me(S);
|
|
404
|
+
p = setTimeout(v, _(S));
|
|
406
405
|
}
|
|
407
|
-
function me(
|
|
408
|
-
return p = void 0, O && u ? A(
|
|
406
|
+
function me(S) {
|
|
407
|
+
return p = void 0, O && u ? A(S) : (u = y = void 0, b);
|
|
409
408
|
}
|
|
410
409
|
function j() {
|
|
411
410
|
p !== void 0 && clearTimeout(p), N = 0, u = f = y = p = void 0;
|
|
@@ -413,9 +412,9 @@ function Fn() {
|
|
|
413
412
|
function B() {
|
|
414
413
|
return p === void 0 ? b : me(t());
|
|
415
414
|
}
|
|
416
|
-
function
|
|
417
|
-
var
|
|
418
|
-
if (u = arguments, y = this, f =
|
|
415
|
+
function w() {
|
|
416
|
+
var S = t(), J = g(S);
|
|
417
|
+
if (u = arguments, y = this, f = S, J) {
|
|
419
418
|
if (p === void 0)
|
|
420
419
|
return M(f);
|
|
421
420
|
if (h)
|
|
@@ -423,13 +422,13 @@ function Fn() {
|
|
|
423
422
|
}
|
|
424
423
|
return p === void 0 && (p = setTimeout(v, d)), b;
|
|
425
424
|
}
|
|
426
|
-
return
|
|
425
|
+
return w.cancel = j, w.flush = B, w;
|
|
427
426
|
}
|
|
428
|
-
return
|
|
427
|
+
return Ue = i, Ue;
|
|
429
428
|
}
|
|
430
429
|
var hn = Fn();
|
|
431
|
-
const
|
|
432
|
-
const n = x(e), l = R(
|
|
430
|
+
const Sn = /* @__PURE__ */ xt(hn), Dn = (e, t, o = 200) => {
|
|
431
|
+
const n = x(e), l = R(Sn((...a) => {
|
|
433
432
|
n.current(...a);
|
|
434
433
|
}, o), [
|
|
435
434
|
o
|
|
@@ -448,10 +447,10 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
448
447
|
}, ft = {
|
|
449
448
|
loading: !1,
|
|
450
449
|
predictions: []
|
|
451
|
-
},
|
|
450
|
+
}, Dt = ({ atlas: e, onError: t }) => {
|
|
452
451
|
const [{ loading: n, predictions: l }, a] = be(ft), i = x(0), s = Rn(), d = R(() => {
|
|
453
452
|
i.current++, a(ft);
|
|
454
|
-
}, []), m =
|
|
453
|
+
}, []), m = Dn(async ({ input: u, countryCodes: y }) => {
|
|
455
454
|
if (!e || !s())
|
|
456
455
|
return;
|
|
457
456
|
if (!u) {
|
|
@@ -502,7 +501,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
502
501
|
e
|
|
503
502
|
]), null;
|
|
504
503
|
}, k = ({ children: e }) => {
|
|
505
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label),
|
|
504
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("addressLine1"), N = E(e, k.Label), D = E(e, k.Input), h = E(e, k.Options), O = E(e, k.Description), A = E(e, k.Error);
|
|
506
505
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
507
506
|
fieldId: t,
|
|
508
507
|
renderLabel: () => F(N, {
|
|
@@ -517,7 +516,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
517
516
|
hasError: s,
|
|
518
517
|
onBlur: d,
|
|
519
518
|
onFocus: m
|
|
520
|
-
},
|
|
519
|
+
}, D, h),
|
|
521
520
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
522
521
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
523
522
|
fieldId: t,
|
|
@@ -534,20 +533,20 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
534
533
|
isInvalid: s,
|
|
535
534
|
onBlur: d,
|
|
536
535
|
onFocus: m
|
|
537
|
-
},
|
|
536
|
+
}, D),
|
|
538
537
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
539
538
|
});
|
|
540
539
|
}, An = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
|
|
541
540
|
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), I = Ke({
|
|
542
541
|
enabled: !0
|
|
543
|
-
}), { predictions: b, updatePredictions: p, clearPredictions: f } =
|
|
542
|
+
}), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
|
|
544
543
|
atlas: I
|
|
545
|
-
}), N =
|
|
544
|
+
}), N = q(() => b.map((g) => ({
|
|
546
545
|
id: g.searchId || "",
|
|
547
546
|
label: g.description || ""
|
|
548
547
|
})), [
|
|
549
548
|
b
|
|
550
|
-
]),
|
|
549
|
+
]), D = R((g) => {
|
|
551
550
|
p({
|
|
552
551
|
input: g,
|
|
553
552
|
countryCodes: y ? [
|
|
@@ -580,10 +579,10 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
580
579
|
}, [
|
|
581
580
|
d
|
|
582
581
|
]), M = E(e, k.Input), _ = E(e, k.Options);
|
|
583
|
-
return /* @__PURE__ */ r.createElement(
|
|
582
|
+
return /* @__PURE__ */ r.createElement(Se, {
|
|
584
583
|
"aria-labelledby": m,
|
|
585
584
|
inputValue: t ?? "",
|
|
586
|
-
onInputChange:
|
|
585
|
+
onInputChange: D,
|
|
587
586
|
value: null,
|
|
588
587
|
onChange: h,
|
|
589
588
|
isDisabled: n,
|
|
@@ -617,7 +616,7 @@ const Dn = /* @__PURE__ */ xt(hn), Sn = (e, t, o = 200) => {
|
|
|
617
616
|
});
|
|
618
617
|
}, He = ({ children: e, className: t }) => {
|
|
619
618
|
const o = E(e, He.Option);
|
|
620
|
-
return /* @__PURE__ */ r.createElement(
|
|
619
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
621
620
|
className: t,
|
|
622
621
|
containerPadding: 0,
|
|
623
622
|
offset: 0
|
|
@@ -642,7 +641,7 @@ k.Options = He;
|
|
|
642
641
|
k.Description = ie;
|
|
643
642
|
k.Error = ce;
|
|
644
643
|
const re = ({ children: e }) => {
|
|
645
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description),
|
|
644
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = I("field.mla-apartment.label"), p = E(e, re.Label), f = E(e, re.Input), N = E(e, re.Description), D = E(e, re.Error);
|
|
646
645
|
return /* @__PURE__ */ r.createElement(u, {
|
|
647
646
|
fieldId: t,
|
|
648
647
|
renderLabel: () => F(p, {
|
|
@@ -659,7 +658,7 @@ const re = ({ children: e }) => {
|
|
|
659
658
|
onBlur: d,
|
|
660
659
|
onFocus: m
|
|
661
660
|
}, f),
|
|
662
|
-
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null,
|
|
661
|
+
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, D, N)
|
|
663
662
|
});
|
|
664
663
|
}, Tn = ({ className: e }) => {
|
|
665
664
|
const { id: t, placeholder: o } = P(), { inputId: n, ariaDescribedBy: l } = T(), a = x(null);
|
|
@@ -715,7 +714,7 @@ oe.Label = de;
|
|
|
715
714
|
oe.Input = Mn;
|
|
716
715
|
oe.Description = ie;
|
|
717
716
|
oe.Error = ce;
|
|
718
|
-
const
|
|
717
|
+
const wn = ({ isOpen: e }) => {
|
|
719
718
|
const t = Ce(Ve), o = x(!1);
|
|
720
719
|
return Pe(() => {
|
|
721
720
|
e && t && !t.isOpen && t.open(null, "manual"), e && (t == null ? void 0 : t.selectionManager.focusedKey) != null && t.selectionManager.setFocusedKey(null), !e && o.current && (t == null || t.close()), o.current = e;
|
|
@@ -732,8 +731,8 @@ const qn = ({ isOpen: e }) => {
|
|
|
732
731
|
e,
|
|
733
732
|
t
|
|
734
733
|
]);
|
|
735
|
-
},
|
|
736
|
-
const [a, i] = be(null), s = en(l), d =
|
|
734
|
+
}, qn = (e, t) => e.find((o) => o.label.toLocaleLowerCase() === t.toLocaleLowerCase().trim()), At = ({ options: e, value: t, commit: o, clear: n, onBlur: l }) => {
|
|
735
|
+
const [a, i] = be(null), s = en(l), d = q(() => {
|
|
737
736
|
var b;
|
|
738
737
|
return t ? ((b = e.find((p) => p.value === t)) == null ? void 0 : b.label) ?? "" : "";
|
|
739
738
|
}, [
|
|
@@ -747,7 +746,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
747
746
|
]), u = R((b) => {
|
|
748
747
|
if (i(b), b === "")
|
|
749
748
|
return;
|
|
750
|
-
const p =
|
|
749
|
+
const p = qn(e, b);
|
|
751
750
|
p && p.value !== t && o(p.value);
|
|
752
751
|
}, [
|
|
753
752
|
o,
|
|
@@ -776,19 +775,19 @@ const qn = ({ isOpen: e }) => {
|
|
|
776
775
|
onInputKeyDown: y
|
|
777
776
|
};
|
|
778
777
|
}, Y = ({ children: e, ...t }) => {
|
|
779
|
-
const { isForcedOpen: o = !1 } = t, { id: n, value: l, onChange: a, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: I, options: b } = P(), { labelId: p } = T(), { t: f } = Te(), { language: N } = It(),
|
|
780
|
-
value:
|
|
781
|
-
label: f(`locale-dataset.countries.${ve[
|
|
782
|
-
}),
|
|
778
|
+
const { isForcedOpen: o = !1 } = t, { id: n, value: l, onChange: a, disabled: i, readOnly: s, required: d, hasError: m, onBlur: u, onFocus: y, FieldLayout: I, options: b } = P(), { labelId: p } = T(), { t: f } = Te(), { language: N } = It(), D = q(() => (b || []).reduce((w, S) => (S.value && ve.hasOwnProperty(S.value) && w.push({
|
|
779
|
+
value: S.value,
|
|
780
|
+
label: f(`locale-dataset.countries.${ve[S.value].toUpperCase()}`)
|
|
781
|
+
}), w), []).sort((w, S) => w.label.localeCompare(S.label, N)), [
|
|
783
782
|
b,
|
|
784
783
|
f,
|
|
785
784
|
N
|
|
786
|
-
]), h = R((
|
|
785
|
+
]), h = R((w) => a(w), [
|
|
787
786
|
a
|
|
788
787
|
]), O = R(() => h(""), [
|
|
789
788
|
h
|
|
790
789
|
]), { onInputKeyDown: A, ...M } = At({
|
|
791
|
-
options:
|
|
790
|
+
options: D,
|
|
792
791
|
value: l,
|
|
793
792
|
commit: h,
|
|
794
793
|
clear: O,
|
|
@@ -799,7 +798,7 @@ const qn = ({ isOpen: e }) => {
|
|
|
799
798
|
renderLabel: () => F(g, {
|
|
800
799
|
label: _
|
|
801
800
|
}),
|
|
802
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
801
|
+
renderInput: () => /* @__PURE__ */ r.createElement(Se, {
|
|
803
802
|
"aria-labelledby": p,
|
|
804
803
|
...M,
|
|
805
804
|
isDisabled: i,
|
|
@@ -811,8 +810,8 @@ const qn = ({ isOpen: e }) => {
|
|
|
811
810
|
}, F(v, {
|
|
812
811
|
onKeyDown: A
|
|
813
812
|
}), F(me, {
|
|
814
|
-
options:
|
|
815
|
-
}), /* @__PURE__ */ r.createElement(
|
|
813
|
+
options: D
|
|
814
|
+
}), /* @__PURE__ */ r.createElement(wn, {
|
|
816
815
|
isOpen: o
|
|
817
816
|
})),
|
|
818
817
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, B, j)
|
|
@@ -850,7 +849,7 @@ Fe.Input = xn;
|
|
|
850
849
|
Fe.Trigger = Bn;
|
|
851
850
|
const je = ({ children: e, className: t, ...o }) => {
|
|
852
851
|
const { options: n } = o, l = E(e, je.Option);
|
|
853
|
-
return /* @__PURE__ */ r.createElement(
|
|
852
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
854
853
|
className: t,
|
|
855
854
|
containerPadding: 0,
|
|
856
855
|
offset: 0
|
|
@@ -874,11 +873,11 @@ Y.Options = je;
|
|
|
874
873
|
Y.Description = ie;
|
|
875
874
|
Y.Error = ce;
|
|
876
875
|
const $n = /(\d{7})|(\d{3}-\d{4})/;
|
|
877
|
-
function
|
|
876
|
+
function Un(e) {
|
|
878
877
|
var t;
|
|
879
878
|
return (t = e.match($n)) == null ? void 0 : t[0];
|
|
880
879
|
}
|
|
881
|
-
function
|
|
880
|
+
function Wn({ isAutocompleteEnabled: e }) {
|
|
882
881
|
const t = x({
|
|
883
882
|
hasAddress: !1
|
|
884
883
|
}), o = Ke({
|
|
@@ -886,7 +885,7 @@ function Un({ isAutocompleteEnabled: e }) {
|
|
|
886
885
|
});
|
|
887
886
|
return {
|
|
888
887
|
searchByPostalCode: R(async (l) => {
|
|
889
|
-
const a =
|
|
888
|
+
const a = Un(l);
|
|
890
889
|
if (a) {
|
|
891
890
|
if (t.current.postalCode === a && t.current.hasAddress)
|
|
892
891
|
return t.current.address;
|
|
@@ -911,11 +910,11 @@ function Un({ isAutocompleteEnabled: e }) {
|
|
|
911
910
|
};
|
|
912
911
|
}
|
|
913
912
|
const $ = ({ children: e }) => {
|
|
914
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (y || p) && f,
|
|
913
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), b = Le(), { autocompleteEnabled: p } = Ie(), f = !!(b && ve[b] === ve.JP), N = (y || p) && f, D = pe("zipCode"), h = E(e, $.Label), O = E(e, $.Control), A = E(e, $.Options), M = E(e, $.Description), _ = E(e, $.Error);
|
|
915
914
|
return N ? /* @__PURE__ */ r.createElement(u, {
|
|
916
915
|
fieldId: t,
|
|
917
916
|
renderLabel: () => F(h, {
|
|
918
|
-
label:
|
|
917
|
+
label: D
|
|
919
918
|
}),
|
|
920
919
|
renderInput: () => /* @__PURE__ */ r.createElement(Vn, {
|
|
921
920
|
value: o,
|
|
@@ -931,7 +930,7 @@ const $ = ({ children: e }) => {
|
|
|
931
930
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
932
931
|
fieldId: t,
|
|
933
932
|
renderLabel: () => F(h, {
|
|
934
|
-
label:
|
|
933
|
+
label: D
|
|
935
934
|
}),
|
|
936
935
|
renderInput: () => /* @__PURE__ */ r.createElement(fe, {
|
|
937
936
|
"aria-labelledby": I,
|
|
@@ -947,16 +946,16 @@ const $ = ({ children: e }) => {
|
|
|
947
946
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, _, M)
|
|
948
947
|
});
|
|
949
948
|
}, Vn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
|
|
950
|
-
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, I] = be(!1), { searchByPostalCode: b } =
|
|
949
|
+
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), [y, I] = be(!1), { searchByPostalCode: b } = Wn({
|
|
951
950
|
isAutocompleteEnabled: y
|
|
952
|
-
}), [p, f] = be(), N =
|
|
951
|
+
}), [p, f] = be(), N = q(() => p ? [
|
|
953
952
|
{
|
|
954
953
|
id: V(),
|
|
955
954
|
label: p.formattedAddress || ""
|
|
956
955
|
}
|
|
957
956
|
] : [], [
|
|
958
957
|
p
|
|
959
|
-
]),
|
|
958
|
+
]), D = R(async (g) => {
|
|
960
959
|
o(g);
|
|
961
960
|
const v = await b(g ?? "");
|
|
962
961
|
f(v);
|
|
@@ -977,10 +976,10 @@ const $ = ({ children: e }) => {
|
|
|
977
976
|
}, [
|
|
978
977
|
d
|
|
979
978
|
]), M = E(e, $.Control), _ = E(e, $.Options);
|
|
980
|
-
return /* @__PURE__ */ r.createElement(
|
|
979
|
+
return /* @__PURE__ */ r.createElement(Se, {
|
|
981
980
|
"aria-labelledby": m,
|
|
982
981
|
inputValue: t ?? "",
|
|
983
|
-
onInputChange:
|
|
982
|
+
onInputChange: D,
|
|
984
983
|
value: null,
|
|
985
984
|
onChange: h,
|
|
986
985
|
isDisabled: n,
|
|
@@ -1024,7 +1023,7 @@ const $ = ({ children: e }) => {
|
|
|
1024
1023
|
});
|
|
1025
1024
|
}, Ge = ({ children: e, className: t }) => {
|
|
1026
1025
|
const o = E(e, Ge.Option);
|
|
1027
|
-
return /* @__PURE__ */ r.createElement(
|
|
1026
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
1028
1027
|
className: t,
|
|
1029
1028
|
containerPadding: 0,
|
|
1030
1029
|
offset: 0
|
|
@@ -1049,8 +1048,8 @@ $.Control = Je;
|
|
|
1049
1048
|
$.Options = Ge;
|
|
1050
1049
|
$.Description = ie;
|
|
1051
1050
|
$.Error = ce;
|
|
1052
|
-
const
|
|
1053
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e,
|
|
1051
|
+
const U = ({ children: e }) => {
|
|
1052
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u, autocomplete: y } = P(), { labelId: I } = T(), { autocompleteEnabled: b } = Ie(), p = y || b, f = pe("streetName"), N = E(e, U.Label), D = E(e, U.Input), h = E(e, U.Options), O = E(e, U.Description), A = E(e, U.Error);
|
|
1054
1053
|
return p ? /* @__PURE__ */ r.createElement(u, {
|
|
1055
1054
|
fieldId: t,
|
|
1056
1055
|
renderLabel: () => F(N, {
|
|
@@ -1065,7 +1064,7 @@ const W = ({ children: e }) => {
|
|
|
1065
1064
|
hasError: s,
|
|
1066
1065
|
onBlur: d,
|
|
1067
1066
|
onFocus: m
|
|
1068
|
-
},
|
|
1067
|
+
}, D, h),
|
|
1069
1068
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
1070
1069
|
}) : /* @__PURE__ */ r.createElement(u, {
|
|
1071
1070
|
fieldId: t,
|
|
@@ -1082,15 +1081,15 @@ const W = ({ children: e }) => {
|
|
|
1082
1081
|
isInvalid: s,
|
|
1083
1082
|
onBlur: d,
|
|
1084
1083
|
onFocus: m
|
|
1085
|
-
},
|
|
1084
|
+
}, D),
|
|
1086
1085
|
renderDescription: () => /* @__PURE__ */ r.createElement(r.Fragment, null, A, O)
|
|
1087
1086
|
});
|
|
1088
1087
|
}, Hn = ({ children: e, value: t, onChange: o, disabled: n, readOnly: l, required: a, hasError: i, onBlur: s, onFocus: d }) => {
|
|
1089
1088
|
const { labelId: m } = T(), { onAddressSelect: u } = Ie(), y = Le(), I = Ke({
|
|
1090
1089
|
enabled: !0
|
|
1091
|
-
}), { predictions: b, updatePredictions: p, clearPredictions: f } =
|
|
1090
|
+
}), { predictions: b, updatePredictions: p, clearPredictions: f } = Dt({
|
|
1092
1091
|
atlas: I
|
|
1093
|
-
}), N = E(e,
|
|
1092
|
+
}), N = E(e, U.Input), D = E(e, U.Options), h = q(() => b.reduce((g, v) => (v.searchId && v.description && g.push({
|
|
1094
1093
|
id: v.searchId,
|
|
1095
1094
|
label: v.description
|
|
1096
1095
|
}), g), []), [
|
|
@@ -1127,7 +1126,7 @@ const W = ({ children: e }) => {
|
|
|
1127
1126
|
}, [
|
|
1128
1127
|
d
|
|
1129
1128
|
]);
|
|
1130
|
-
return /* @__PURE__ */ r.createElement(
|
|
1129
|
+
return /* @__PURE__ */ r.createElement(Se, {
|
|
1131
1130
|
"aria-labelledby": m,
|
|
1132
1131
|
inputValue: t ?? "",
|
|
1133
1132
|
onInputChange: O,
|
|
@@ -1144,7 +1143,7 @@ const W = ({ children: e }) => {
|
|
|
1144
1143
|
items: h
|
|
1145
1144
|
}, F(N, {
|
|
1146
1145
|
onFocus: _
|
|
1147
|
-
}), F(
|
|
1146
|
+
}), F(D, {
|
|
1148
1147
|
options: h
|
|
1149
1148
|
}), /* @__PURE__ */ r.createElement(Ye, {
|
|
1150
1149
|
optionCount: h.length
|
|
@@ -1164,7 +1163,7 @@ const W = ({ children: e }) => {
|
|
|
1164
1163
|
});
|
|
1165
1164
|
}, Xe = ({ children: e, className: t }) => {
|
|
1166
1165
|
const o = E(e, Xe.Option);
|
|
1167
|
-
return /* @__PURE__ */ r.createElement(
|
|
1166
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
1168
1167
|
className: t,
|
|
1169
1168
|
containerPadding: 0,
|
|
1170
1169
|
offset: 0
|
|
@@ -1183,11 +1182,11 @@ const W = ({ children: e }) => {
|
|
|
1183
1182
|
}, n);
|
|
1184
1183
|
};
|
|
1185
1184
|
Xe.Option = Jn;
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1185
|
+
U.Label = de;
|
|
1186
|
+
U.Input = jn;
|
|
1187
|
+
U.Options = Xe;
|
|
1188
|
+
U.Description = ie;
|
|
1189
|
+
U.Error = ce;
|
|
1191
1190
|
const se = ({ children: e }) => {
|
|
1192
1191
|
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), I = pe("streetNumber"), b = E(e, se.Label), p = E(e, se.Input), f = E(e, se.Description), N = E(e, se.Error);
|
|
1193
1192
|
return /* @__PURE__ */ r.createElement(u, {
|
|
@@ -1226,23 +1225,23 @@ se.Input = Gn;
|
|
|
1226
1225
|
se.Description = ie;
|
|
1227
1226
|
se.Error = ce;
|
|
1228
1227
|
const H = ({ children: e }) => {
|
|
1229
|
-
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = Le(), p = b ? ve[b] : void 0, f = b && Bt.getCountryByShortKey(b), N =
|
|
1228
|
+
const { id: t, value: o, onChange: n, disabled: l, readOnly: a, required: i, hasError: s, onBlur: d, onFocus: m, FieldLayout: u } = P(), { labelId: y } = T(), { t: I } = Te(), b = Le(), p = b ? ve[b] : void 0, f = b && Bt.getCountryByShortKey(b), N = q(() => {
|
|
1230
1229
|
var B;
|
|
1231
|
-
return (kt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((
|
|
1232
|
-
value:
|
|
1233
|
-
label: I(
|
|
1234
|
-
})).sort((
|
|
1230
|
+
return (kt(((B = f == null ? void 0 : f.subdivisions) == null ? void 0 : B.list) || [], p) || []).map((w) => ({
|
|
1231
|
+
value: w.key,
|
|
1232
|
+
label: I(w.displayName)
|
|
1233
|
+
})).sort((w, S) => w.label.localeCompare(S.label));
|
|
1235
1234
|
}, [
|
|
1236
1235
|
p,
|
|
1237
1236
|
I,
|
|
1238
1237
|
f
|
|
1239
|
-
]),
|
|
1238
|
+
]), D = R(() => n(""), [
|
|
1240
1239
|
n
|
|
1241
1240
|
]), { onInputKeyDown: h, ...O } = At({
|
|
1242
1241
|
options: N,
|
|
1243
1242
|
value: o,
|
|
1244
1243
|
commit: n,
|
|
1245
|
-
clear:
|
|
1244
|
+
clear: D,
|
|
1246
1245
|
onBlur: d
|
|
1247
1246
|
}), A = pe("subdivision"), M = E(e, H.Label), _ = E(e, H.Control), g = E(e, H.Options), v = E(e, H.Description), me = E(e, H.Error);
|
|
1248
1247
|
return /* @__PURE__ */ r.createElement(u, {
|
|
@@ -1250,7 +1249,7 @@ const H = ({ children: e }) => {
|
|
|
1250
1249
|
renderLabel: () => F(M, {
|
|
1251
1250
|
label: A
|
|
1252
1251
|
}),
|
|
1253
|
-
renderInput: () => /* @__PURE__ */ r.createElement(
|
|
1252
|
+
renderInput: () => /* @__PURE__ */ r.createElement(Se, {
|
|
1254
1253
|
"aria-labelledby": y,
|
|
1255
1254
|
...O,
|
|
1256
1255
|
isDisabled: l,
|
|
@@ -1299,7 +1298,7 @@ he.Input = Xn;
|
|
|
1299
1298
|
he.Trigger = zn;
|
|
1300
1299
|
const ze = ({ children: e, className: t, ...o }) => {
|
|
1301
1300
|
const { options: n } = o, l = E(e, ze.Option);
|
|
1302
|
-
return /* @__PURE__ */ r.createElement(
|
|
1301
|
+
return /* @__PURE__ */ r.createElement(De, {
|
|
1303
1302
|
className: t,
|
|
1304
1303
|
containerPadding: 0,
|
|
1305
1304
|
offset: 0
|
|
@@ -1333,12 +1332,12 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1333
1332
|
[K.MLA_STREET_NUMBER]: ar,
|
|
1334
1333
|
[K.MLA_APARTMENT]: lr
|
|
1335
1334
|
}, cr = {}, dr = [], c = ({ children: e }) => {
|
|
1336
|
-
const { id: t, form: o, value: n, onChange: l, onFieldBlur: a, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N,
|
|
1335
|
+
const { id: t, form: o, value: n, onChange: l, onFieldBlur: a, onFieldFocus: i, errors: s, FieldLayout: d, fieldSettings: m, label: u, validation: y, target: I, autocompleteEnabled: b, required: p, fieldType: f } = P(), [N, D] = be(null), h = $t(), O = q(() => ({
|
|
1337
1336
|
...h,
|
|
1338
1337
|
...ir
|
|
1339
1338
|
}), [
|
|
1340
1339
|
h
|
|
1341
|
-
]), { isExperimentEnabled: A } = yt(), M = A(Ct.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } =
|
|
1340
|
+
]), { isExperimentEnabled: A } = yt(), M = A(Ct.STREETLESS_LOCALITY_FALLBACK), { validateFields: _ } = Ut(), g = Wt(), v = Lt(), me = q(() => ({
|
|
1342
1341
|
...v,
|
|
1343
1342
|
actions: {
|
|
1344
1343
|
predict: Yt,
|
|
@@ -1357,10 +1356,10 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1357
1356
|
fieldSettings: m,
|
|
1358
1357
|
validation: y,
|
|
1359
1358
|
required: p
|
|
1360
|
-
}),
|
|
1359
|
+
}), w = R((W) => {
|
|
1361
1360
|
if (!n)
|
|
1362
1361
|
return;
|
|
1363
|
-
const G = on(
|
|
1362
|
+
const G = on(W, B, M), _e = {
|
|
1364
1363
|
...G,
|
|
1365
1364
|
[ye.COUNTRY]: G[ye.COUNTRY] ?? n[ye.COUNTRY]
|
|
1366
1365
|
};
|
|
@@ -1370,8 +1369,8 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1370
1369
|
n,
|
|
1371
1370
|
B,
|
|
1372
1371
|
M
|
|
1373
|
-
]),
|
|
1374
|
-
if (B &&
|
|
1372
|
+
]), S = R((W, G) => {
|
|
1373
|
+
if (B && W === ye.COUNTRY && (n == null ? void 0 : n[W]) !== G) {
|
|
1375
1374
|
l == null || l({
|
|
1376
1375
|
[ye.COUNTRY]: G
|
|
1377
1376
|
});
|
|
@@ -1379,19 +1378,19 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1379
1378
|
}
|
|
1380
1379
|
l == null || l({
|
|
1381
1380
|
...n,
|
|
1382
|
-
[
|
|
1381
|
+
[W]: G
|
|
1383
1382
|
});
|
|
1384
1383
|
}, [
|
|
1385
1384
|
l,
|
|
1386
1385
|
n,
|
|
1387
1386
|
B
|
|
1388
|
-
]), J = R(async (
|
|
1389
|
-
...
|
|
1387
|
+
]), J = R(async (W) => _(B ? [
|
|
1388
|
+
...W,
|
|
1390
1389
|
{
|
|
1391
1390
|
path: `${I}/${ye.COUNTRY}`,
|
|
1392
1391
|
value: n == null ? void 0 : n.country
|
|
1393
1392
|
}
|
|
1394
|
-
] :
|
|
1393
|
+
] : W), [
|
|
1395
1394
|
n,
|
|
1396
1395
|
I,
|
|
1397
1396
|
_,
|
|
@@ -1399,12 +1398,12 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1399
1398
|
]);
|
|
1400
1399
|
Ht(t, () => {
|
|
1401
1400
|
var _e;
|
|
1402
|
-
const
|
|
1401
|
+
const W = s == null ? void 0 : s[0], G = (_e = j == null ? void 0 : j.fields) == null ? void 0 : _e.find((at) => "target" in at && at.target === (W == null ? void 0 : W.errorPath));
|
|
1403
1402
|
return G == null ? void 0 : G.id;
|
|
1404
1403
|
});
|
|
1405
1404
|
const Ee = Xt(t), Ne = F(E(e, c.Country), {
|
|
1406
1405
|
isForcedOpen: Ee
|
|
1407
|
-
}), Qe = E(e, c.Subdivision), Ze = E(e, c.City), et = E(e, c.AddressLine), tt = E(e, c.AddressLine2), nt = E(e, c.PostalCode), rt = E(e, c.StreetName), ot = E(e, c.StreetNumber), st = E(e, c.Apartment), _t =
|
|
1406
|
+
}), Qe = E(e, c.Subdivision), Ze = E(e, c.City), et = E(e, c.AddressLine), tt = E(e, c.AddressLine2), nt = E(e, c.PostalCode), rt = E(e, c.StreetName), ot = E(e, c.StreetNumber), st = E(e, c.Apartment), _t = q(() => ({
|
|
1408
1407
|
country: Ne,
|
|
1409
1408
|
subdivision: Qe,
|
|
1410
1409
|
city: Ze,
|
|
@@ -1431,11 +1430,11 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1431
1430
|
countryCode: n == null ? void 0 : n.country
|
|
1432
1431
|
}, /* @__PURE__ */ r.createElement(sn, {
|
|
1433
1432
|
autocompleteEnabled: b,
|
|
1434
|
-
onAddressSelect:
|
|
1433
|
+
onAddressSelect: w
|
|
1435
1434
|
}, /* @__PURE__ */ r.createElement(Cn, {
|
|
1436
1435
|
fields: _t
|
|
1437
1436
|
}, /* @__PURE__ */ r.createElement("div", {
|
|
1438
|
-
ref:
|
|
1437
|
+
ref: D,
|
|
1439
1438
|
style: {
|
|
1440
1439
|
display: "contents"
|
|
1441
1440
|
}
|
|
@@ -1449,7 +1448,7 @@ const Zn = () => ue("country"), er = () => ue("subdivision"), tr = () => ue("cit
|
|
|
1449
1448
|
formSchema: g,
|
|
1450
1449
|
form: j,
|
|
1451
1450
|
values: n ?? cr,
|
|
1452
|
-
onFieldChange:
|
|
1451
|
+
onFieldChange: S,
|
|
1453
1452
|
onBlur: a,
|
|
1454
1453
|
onFocus: i,
|
|
1455
1454
|
errors: s ?? dr,
|
|
@@ -1464,42 +1463,42 @@ c.City = oe;
|
|
|
1464
1463
|
c.AddressLine = k;
|
|
1465
1464
|
c.AddressLine2 = ne;
|
|
1466
1465
|
c.PostalCode = $;
|
|
1467
|
-
c.StreetName =
|
|
1466
|
+
c.StreetName = U;
|
|
1468
1467
|
c.StreetNumber = se;
|
|
1469
1468
|
c.Apartment = re;
|
|
1470
1469
|
const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_comboTrigger_1tire_19", Oe = {
|
|
1471
1470
|
postalCodeControl: ur,
|
|
1472
1471
|
comboControl: mr,
|
|
1473
1472
|
comboTrigger: pr
|
|
1474
|
-
},
|
|
1473
|
+
}, Tr = () => {
|
|
1475
1474
|
const e = nn(), t = tn(Me);
|
|
1476
1475
|
return /* @__PURE__ */ r.createElement(c, null, /* @__PURE__ */ r.createElement(c.Country, null, /* @__PURE__ */ r.createElement(c.Country.Label, {
|
|
1477
|
-
className: L(
|
|
1476
|
+
className: L(z, C.label)
|
|
1478
1477
|
}, /* @__PURE__ */ r.createElement(c.Country.Label.Required, {
|
|
1479
|
-
className: L(
|
|
1478
|
+
className: L(Q, C.requiredMark)
|
|
1480
1479
|
})), /* @__PURE__ */ r.createElement(c.Country.Control, {
|
|
1481
|
-
className: L(
|
|
1480
|
+
className: L(it, C.input, Oe.comboControl)
|
|
1482
1481
|
}, /* @__PURE__ */ r.createElement(c.Country.Control.Input, {
|
|
1483
1482
|
className: L(C.innerInput, Me)
|
|
1484
1483
|
}), /* @__PURE__ */ r.createElement(c.Country.Control.Trigger, {
|
|
1485
1484
|
className: Oe.comboTrigger
|
|
1486
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1485
|
+
}, /* @__PURE__ */ r.createElement(ct, {
|
|
1487
1486
|
className: C.dropdownIcon
|
|
1488
1487
|
}))), /* @__PURE__ */ r.createElement(c.Country.Options, {
|
|
1489
1488
|
className: L(ge, C.selectPopover, C.dropdownPopover)
|
|
1490
1489
|
}, /* @__PURE__ */ r.createElement(c.Country.Options.Option, {
|
|
1491
1490
|
className: t
|
|
1492
1491
|
})), /* @__PURE__ */ r.createElement(c.Country.Error, {
|
|
1493
|
-
className: L(
|
|
1494
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1495
|
-
className: L(
|
|
1492
|
+
className: L(Z, C.error)
|
|
1493
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Country.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Country.Description, {
|
|
1494
|
+
className: L(ee, C.description)
|
|
1496
1495
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1497
1496
|
content: o,
|
|
1498
1497
|
locale: n
|
|
1499
1498
|
}))), /* @__PURE__ */ r.createElement(c.AddressLine, null, /* @__PURE__ */ r.createElement(c.AddressLine.Label, {
|
|
1500
|
-
className: L(
|
|
1499
|
+
className: L(z, C.label)
|
|
1501
1500
|
}, /* @__PURE__ */ r.createElement(c.AddressLine.Label.Required, {
|
|
1502
|
-
className: L(
|
|
1501
|
+
className: L(Q, C.requiredMark)
|
|
1503
1502
|
})), /* @__PURE__ */ r.createElement(c.AddressLine.Input, {
|
|
1504
1503
|
className: e
|
|
1505
1504
|
}), /* @__PURE__ */ r.createElement(c.AddressLine.Options, {
|
|
@@ -1507,42 +1506,42 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
|
|
|
1507
1506
|
}, /* @__PURE__ */ r.createElement(c.AddressLine.Options.Option, {
|
|
1508
1507
|
className: t
|
|
1509
1508
|
})), /* @__PURE__ */ r.createElement(c.AddressLine.Error, {
|
|
1510
|
-
className: L(
|
|
1511
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1512
|
-
className: L(
|
|
1509
|
+
className: L(Z, C.error)
|
|
1510
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.AddressLine.Error.Text, null)), /* @__PURE__ */ r.createElement(c.AddressLine.Description, {
|
|
1511
|
+
className: L(ee, C.description)
|
|
1513
1512
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1514
1513
|
content: o,
|
|
1515
1514
|
locale: n
|
|
1516
1515
|
}))), /* @__PURE__ */ r.createElement(c.AddressLine2, null, /* @__PURE__ */ r.createElement(c.AddressLine2.Label, {
|
|
1517
|
-
className: L(
|
|
1516
|
+
className: L(z, C.label)
|
|
1518
1517
|
}, /* @__PURE__ */ r.createElement(c.AddressLine2.Label.Required, {
|
|
1519
|
-
className: L(
|
|
1518
|
+
className: L(Q, C.requiredMark)
|
|
1520
1519
|
})), /* @__PURE__ */ r.createElement(c.AddressLine2.Input, {
|
|
1521
1520
|
className: e
|
|
1522
1521
|
}), /* @__PURE__ */ r.createElement(c.AddressLine2.Error, {
|
|
1523
|
-
className: L(
|
|
1524
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1525
|
-
className: L(
|
|
1522
|
+
className: L(Z, C.error)
|
|
1523
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.AddressLine2.Error.Text, null)), /* @__PURE__ */ r.createElement(c.AddressLine2.Description, {
|
|
1524
|
+
className: L(ee, C.description)
|
|
1526
1525
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1527
1526
|
content: o,
|
|
1528
1527
|
locale: n
|
|
1529
1528
|
}))), /* @__PURE__ */ r.createElement(c.City, null, /* @__PURE__ */ r.createElement(c.City.Label, {
|
|
1530
|
-
className: L(
|
|
1529
|
+
className: L(z, C.label)
|
|
1531
1530
|
}, /* @__PURE__ */ r.createElement(c.City.Label.Required, {
|
|
1532
|
-
className: L(
|
|
1531
|
+
className: L(Q, C.requiredMark)
|
|
1533
1532
|
})), /* @__PURE__ */ r.createElement(c.City.Input, {
|
|
1534
1533
|
className: e
|
|
1535
1534
|
}), /* @__PURE__ */ r.createElement(c.City.Error, {
|
|
1536
|
-
className: L(
|
|
1537
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1538
|
-
className: L(
|
|
1535
|
+
className: L(Z, C.error)
|
|
1536
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.City.Error.Text, null)), /* @__PURE__ */ r.createElement(c.City.Description, {
|
|
1537
|
+
className: L(ee, C.description)
|
|
1539
1538
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1540
1539
|
content: o,
|
|
1541
1540
|
locale: n
|
|
1542
1541
|
}))), /* @__PURE__ */ r.createElement(c.PostalCode, null, /* @__PURE__ */ r.createElement(c.PostalCode.Label, {
|
|
1543
|
-
className: L(
|
|
1542
|
+
className: L(z, C.label)
|
|
1544
1543
|
}, /* @__PURE__ */ r.createElement(c.PostalCode.Label.Required, {
|
|
1545
|
-
className: L(
|
|
1544
|
+
className: L(Q, C.requiredMark)
|
|
1546
1545
|
})), /* @__PURE__ */ r.createElement(c.PostalCode.Control, {
|
|
1547
1546
|
className: Oe.postalCodeControl
|
|
1548
1547
|
}, /* @__PURE__ */ r.createElement(c.PostalCode.Control.Input, {
|
|
@@ -1552,39 +1551,39 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
|
|
|
1552
1551
|
}, /* @__PURE__ */ r.createElement(c.PostalCode.Options.Option, {
|
|
1553
1552
|
className: t
|
|
1554
1553
|
})), /* @__PURE__ */ r.createElement(c.PostalCode.Error, {
|
|
1555
|
-
className: L(
|
|
1556
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1557
|
-
className: L(
|
|
1554
|
+
className: L(Z, C.error)
|
|
1555
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.PostalCode.Error.Text, null)), /* @__PURE__ */ r.createElement(c.PostalCode.Description, {
|
|
1556
|
+
className: L(ee, C.description)
|
|
1558
1557
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1559
1558
|
content: o,
|
|
1560
1559
|
locale: n
|
|
1561
1560
|
}))), /* @__PURE__ */ r.createElement(c.Subdivision, null, /* @__PURE__ */ r.createElement(c.Subdivision.Label, {
|
|
1562
|
-
className: L(
|
|
1561
|
+
className: L(z, C.label)
|
|
1563
1562
|
}, /* @__PURE__ */ r.createElement(c.Subdivision.Label.Required, {
|
|
1564
|
-
className: L(
|
|
1563
|
+
className: L(Q, C.requiredMark)
|
|
1565
1564
|
})), /* @__PURE__ */ r.createElement(c.Subdivision.Control, {
|
|
1566
|
-
className: L(
|
|
1565
|
+
className: L(it, C.input, Oe.comboControl)
|
|
1567
1566
|
}, /* @__PURE__ */ r.createElement(c.Subdivision.Control.Input, {
|
|
1568
1567
|
className: L(C.innerInput, Me)
|
|
1569
1568
|
}), /* @__PURE__ */ r.createElement(c.Subdivision.Control.Trigger, {
|
|
1570
1569
|
className: Oe.comboTrigger
|
|
1571
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1570
|
+
}, /* @__PURE__ */ r.createElement(ct, {
|
|
1572
1571
|
className: C.dropdownIcon
|
|
1573
1572
|
}))), /* @__PURE__ */ r.createElement(c.Subdivision.Options, {
|
|
1574
1573
|
className: L(ge, C.selectPopover, C.dropdownPopover)
|
|
1575
1574
|
}, /* @__PURE__ */ r.createElement(c.Subdivision.Options.Option, {
|
|
1576
1575
|
className: t
|
|
1577
1576
|
})), /* @__PURE__ */ r.createElement(c.Subdivision.Error, {
|
|
1578
|
-
className: L(
|
|
1579
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1580
|
-
className: L(
|
|
1577
|
+
className: L(Z, C.error)
|
|
1578
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Subdivision.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Subdivision.Description, {
|
|
1579
|
+
className: L(ee, C.description)
|
|
1581
1580
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1582
1581
|
content: o,
|
|
1583
1582
|
locale: n
|
|
1584
1583
|
}))), /* @__PURE__ */ r.createElement(c.StreetName, null, /* @__PURE__ */ r.createElement(c.StreetName.Label, {
|
|
1585
|
-
className: L(
|
|
1584
|
+
className: L(z, C.label)
|
|
1586
1585
|
}, /* @__PURE__ */ r.createElement(c.StreetName.Label.Required, {
|
|
1587
|
-
className: L(
|
|
1586
|
+
className: L(Q, C.requiredMark)
|
|
1588
1587
|
})), /* @__PURE__ */ r.createElement(c.StreetName.Input, {
|
|
1589
1588
|
className: e
|
|
1590
1589
|
}), /* @__PURE__ */ r.createElement(c.StreetName.Options, {
|
|
@@ -1592,40 +1591,40 @@ const ur = "_postalCodeControl_1tire_1", mr = "_comboControl_1tire_5", pr = "_co
|
|
|
1592
1591
|
}, /* @__PURE__ */ r.createElement(c.StreetName.Options.Option, {
|
|
1593
1592
|
className: t
|
|
1594
1593
|
})), /* @__PURE__ */ r.createElement(c.StreetName.Error, {
|
|
1595
|
-
className: L(
|
|
1596
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1597
|
-
className: L(
|
|
1594
|
+
className: L(Z, C.error)
|
|
1595
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.StreetName.Error.Text, null)), /* @__PURE__ */ r.createElement(c.StreetName.Description, {
|
|
1596
|
+
className: L(ee, C.description)
|
|
1598
1597
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1599
1598
|
content: o,
|
|
1600
1599
|
locale: n
|
|
1601
1600
|
}))), /* @__PURE__ */ r.createElement(c.StreetNumber, null, /* @__PURE__ */ r.createElement(c.StreetNumber.Label, {
|
|
1602
|
-
className: L(
|
|
1601
|
+
className: L(z, C.label)
|
|
1603
1602
|
}, /* @__PURE__ */ r.createElement(c.StreetNumber.Label.Required, {
|
|
1604
|
-
className: L(
|
|
1603
|
+
className: L(Q, C.requiredMark)
|
|
1605
1604
|
})), /* @__PURE__ */ r.createElement(c.StreetNumber.Input, {
|
|
1606
1605
|
className: e
|
|
1607
1606
|
}), /* @__PURE__ */ r.createElement(c.StreetNumber.Error, {
|
|
1608
|
-
className: L(
|
|
1609
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1610
|
-
className: L(
|
|
1607
|
+
className: L(Z, C.error)
|
|
1608
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.StreetNumber.Error.Text, null)), /* @__PURE__ */ r.createElement(c.StreetNumber.Description, {
|
|
1609
|
+
className: L(ee, C.description)
|
|
1611
1610
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1612
1611
|
content: o,
|
|
1613
1612
|
locale: n
|
|
1614
1613
|
}))), /* @__PURE__ */ r.createElement(c.Apartment, null, /* @__PURE__ */ r.createElement(c.Apartment.Label, {
|
|
1615
|
-
className: L(
|
|
1614
|
+
className: L(z, C.label)
|
|
1616
1615
|
}, /* @__PURE__ */ r.createElement(c.Apartment.Label.Required, {
|
|
1617
|
-
className: L(
|
|
1616
|
+
className: L(Q, C.requiredMark)
|
|
1618
1617
|
})), /* @__PURE__ */ r.createElement(c.Apartment.Input, {
|
|
1619
1618
|
className: e
|
|
1620
1619
|
}), /* @__PURE__ */ r.createElement(c.Apartment.Error, {
|
|
1621
|
-
className: L(
|
|
1622
|
-
}, /* @__PURE__ */ r.createElement(
|
|
1623
|
-
className: L(
|
|
1620
|
+
className: L(Z, C.error)
|
|
1621
|
+
}, /* @__PURE__ */ r.createElement(te, null), /* @__PURE__ */ r.createElement(c.Apartment.Error.Text, null)), /* @__PURE__ */ r.createElement(c.Apartment.Description, {
|
|
1622
|
+
className: L(ee, C.description)
|
|
1624
1623
|
}, ({ content: o, locale: n }) => /* @__PURE__ */ r.createElement(X, {
|
|
1625
1624
|
content: o,
|
|
1626
1625
|
locale: n
|
|
1627
1626
|
}))));
|
|
1628
1627
|
};
|
|
1629
1628
|
export {
|
|
1630
|
-
|
|
1629
|
+
Tr as M
|
|
1631
1630
|
};
|